@chamn/render 0.2.0 → 0.2.1
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +618 -605
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ const da = (t) => () => {
|
|
|
25
25
|
var o;
|
|
26
26
|
return t != null && t[n] ? r[n] = (o = t[n]) == null ? void 0 : o.bind(t) : Br.includes(n) && (r[n] = da), r;
|
|
27
27
|
}, {});
|
|
28
|
-
var
|
|
28
|
+
var va = Object.defineProperty, ga = (t, e, r) => e in t ? va(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e, r) => ga(t, typeof e != "symbol" ? e + "" : e, r), Gn = typeof global == "object" && global && global.Object === Object && global, ya = typeof self == "object" && self && self.Object === Object && self, K = Gn || ya || Function("return this")(), V = K.Symbol, Vn = Object.prototype, ba = Vn.hasOwnProperty, _a = Vn.toString, Ut = V ? V.toStringTag : void 0;
|
|
29
29
|
function Sa(t) {
|
|
30
30
|
var e = ba.call(t, Ut), r = t[Ut];
|
|
31
31
|
try {
|
|
@@ -40,23 +40,23 @@ var ja = Object.prototype, Oa = ja.toString;
|
|
|
40
40
|
function wa(t) {
|
|
41
41
|
return Oa.call(t);
|
|
42
42
|
}
|
|
43
|
-
var Ca = "[object Null]", Ea = "[object Undefined]", Fr =
|
|
44
|
-
function
|
|
43
|
+
var Ca = "[object Null]", Ea = "[object Undefined]", Fr = V ? V.toStringTag : void 0;
|
|
44
|
+
function mt(t) {
|
|
45
45
|
return t == null ? t === void 0 ? Ea : Ca : Fr && Fr in Object(t) ? Sa(t) : wa(t);
|
|
46
46
|
}
|
|
47
47
|
function X(t) {
|
|
48
48
|
return t != null && typeof t == "object";
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var $a = "[object Symbol]";
|
|
51
51
|
function or(t) {
|
|
52
|
-
return typeof t == "symbol" || X(t) &&
|
|
52
|
+
return typeof t == "symbol" || X(t) && mt(t) == $a;
|
|
53
53
|
}
|
|
54
54
|
function ar(t, e) {
|
|
55
55
|
for (var r = -1, n = t == null ? 0 : t.length, o = Array(n); ++r < n; )
|
|
56
56
|
o[r] = e(t[r], r, t);
|
|
57
57
|
return o;
|
|
58
58
|
}
|
|
59
|
-
var R = Array.isArray,
|
|
59
|
+
var R = Array.isArray, Na = 1 / 0, kr = V ? V.prototype : void 0, Ur = kr ? kr.toString : void 0;
|
|
60
60
|
function zn(t) {
|
|
61
61
|
if (typeof t == "string")
|
|
62
62
|
return t;
|
|
@@ -65,7 +65,7 @@ function zn(t) {
|
|
|
65
65
|
if (or(t))
|
|
66
66
|
return Ur ? Ur.call(t) : "";
|
|
67
67
|
var e = t + "";
|
|
68
|
-
return e == "0" && 1 / t ==
|
|
68
|
+
return e == "0" && 1 / t == -Na ? "-0" : e;
|
|
69
69
|
}
|
|
70
70
|
function Q(t) {
|
|
71
71
|
var e = typeof t;
|
|
@@ -78,21 +78,21 @@ var xa = "[object AsyncFunction]", Ta = "[object Function]", Aa = "[object Gener
|
|
|
78
78
|
function sr(t) {
|
|
79
79
|
if (!Q(t))
|
|
80
80
|
return !1;
|
|
81
|
-
var e =
|
|
81
|
+
var e = mt(t);
|
|
82
82
|
return e == Ta || e == Aa || e == xa || e == Ma;
|
|
83
83
|
}
|
|
84
|
-
var Te = K["__core-js_shared__"],
|
|
84
|
+
var Te = K["__core-js_shared__"], Gr = function() {
|
|
85
85
|
var t = /[^.]+$/.exec(Te && Te.keys && Te.keys.IE_PROTO || "");
|
|
86
86
|
return t ? "Symbol(src)_1." + t : "";
|
|
87
87
|
}();
|
|
88
88
|
function Pa(t) {
|
|
89
|
-
return !!
|
|
89
|
+
return !!Gr && Gr in t;
|
|
90
90
|
}
|
|
91
|
-
var Ra = Function.prototype,
|
|
92
|
-
function
|
|
91
|
+
var Ra = Function.prototype, Da = Ra.toString;
|
|
92
|
+
function vt(t) {
|
|
93
93
|
if (t != null) {
|
|
94
94
|
try {
|
|
95
|
-
return
|
|
95
|
+
return Da.call(t);
|
|
96
96
|
} catch {
|
|
97
97
|
}
|
|
98
98
|
try {
|
|
@@ -102,30 +102,30 @@ function mt(t) {
|
|
|
102
102
|
}
|
|
103
103
|
return "";
|
|
104
104
|
}
|
|
105
|
-
var
|
|
106
|
-
"^" + ka.call(Ua).replace(
|
|
105
|
+
var Ia = /[\\^$.*+?()[\]{}|]/g, La = /^\[object .+?Constructor\]$/, Ba = Function.prototype, Fa = Object.prototype, ka = Ba.toString, Ua = Fa.hasOwnProperty, Ga = RegExp(
|
|
106
|
+
"^" + ka.call(Ua).replace(Ia, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
107
107
|
);
|
|
108
|
-
function
|
|
108
|
+
function Va(t) {
|
|
109
109
|
if (!Q(t) || Pa(t))
|
|
110
110
|
return !1;
|
|
111
|
-
var e = sr(t) ?
|
|
112
|
-
return e.test(
|
|
111
|
+
var e = sr(t) ? Ga : La;
|
|
112
|
+
return e.test(vt(t));
|
|
113
113
|
}
|
|
114
114
|
function za(t, e) {
|
|
115
115
|
return t == null ? void 0 : t[e];
|
|
116
116
|
}
|
|
117
117
|
function gt(t, e) {
|
|
118
118
|
var r = za(t, e);
|
|
119
|
-
return
|
|
119
|
+
return Va(r) ? r : void 0;
|
|
120
120
|
}
|
|
121
|
-
var Ue = gt(K, "WeakMap"),
|
|
121
|
+
var Ue = gt(K, "WeakMap"), Vr = Object.create, Ha = /* @__PURE__ */ function() {
|
|
122
122
|
function t() {
|
|
123
123
|
}
|
|
124
124
|
return function(e) {
|
|
125
125
|
if (!Q(e))
|
|
126
126
|
return {};
|
|
127
|
-
if (
|
|
128
|
-
return
|
|
127
|
+
if (Vr)
|
|
128
|
+
return Vr(e);
|
|
129
129
|
t.prototype = e;
|
|
130
130
|
var r = new t();
|
|
131
131
|
return t.prototype = void 0, r;
|
|
@@ -212,7 +212,7 @@ function ai(t, e) {
|
|
|
212
212
|
return !!r && oi(t, e, 0) > -1;
|
|
213
213
|
}
|
|
214
214
|
var ii = 9007199254740991, si = /^(?:0|[1-9]\d*)$/;
|
|
215
|
-
function
|
|
215
|
+
function ve(t, e) {
|
|
216
216
|
var r = typeof t;
|
|
217
217
|
return e = e ?? ii, !!e && (r == "number" || r != "symbol" && si.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
218
218
|
}
|
|
@@ -232,7 +232,7 @@ function ur(t, e, r) {
|
|
|
232
232
|
var n = t[e];
|
|
233
233
|
(!(ui.call(t, e) && ee(n, r)) || r === void 0 && !(e in t)) && cr(t, e, r);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function xt(t, e, r, n) {
|
|
236
236
|
var o = !r;
|
|
237
237
|
r || (r = {});
|
|
238
238
|
for (var a = -1, s = e.length; ++a < s; ) {
|
|
@@ -259,14 +259,14 @@ var li = 9007199254740991;
|
|
|
259
259
|
function lr(t) {
|
|
260
260
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= li;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function ge(t) {
|
|
263
263
|
return t != null && lr(t.length) && !sr(t);
|
|
264
264
|
}
|
|
265
265
|
function fi(t, e, r) {
|
|
266
266
|
if (!Q(r))
|
|
267
267
|
return !1;
|
|
268
268
|
var n = typeof e;
|
|
269
|
-
return (n == "number" ?
|
|
269
|
+
return (n == "number" ? ge(r) && ve(e, r.length) : n == "string" && e in r) ? ee(r[e], t) : !1;
|
|
270
270
|
}
|
|
271
271
|
function pi(t) {
|
|
272
272
|
return qn(function(e, r) {
|
|
@@ -290,34 +290,34 @@ function hi(t, e) {
|
|
|
290
290
|
}
|
|
291
291
|
var mi = "[object Arguments]";
|
|
292
292
|
function Hr(t) {
|
|
293
|
-
return X(t) &&
|
|
293
|
+
return X(t) && mt(t) == mi;
|
|
294
294
|
}
|
|
295
|
-
var Qn = Object.prototype,
|
|
295
|
+
var Qn = Object.prototype, vi = Qn.hasOwnProperty, gi = Qn.propertyIsEnumerable, qt = Hr(/* @__PURE__ */ function() {
|
|
296
296
|
return arguments;
|
|
297
297
|
}()) ? Hr : function(t) {
|
|
298
|
-
return X(t) &&
|
|
298
|
+
return X(t) && vi.call(t, "callee") && !gi.call(t, "callee");
|
|
299
299
|
};
|
|
300
300
|
function yi() {
|
|
301
301
|
return !1;
|
|
302
302
|
}
|
|
303
|
-
var Yn = typeof exports == "object" && exports && !exports.nodeType && exports, Jr = Yn && typeof module == "object" && module && !module.nodeType && module, bi = Jr && Jr.exports === Yn, Wr = bi ? K.Buffer : void 0, _i = Wr ? Wr.isBuffer : void 0, Qt = _i || yi, Si = "[object Arguments]", ji = "[object Array]", Oi = "[object Boolean]", wi = "[object Date]", Ci = "[object Error]", Ei = "[object Function]",
|
|
304
|
-
x[
|
|
305
|
-
x[Si] = x[ji] = x[Ri] = x[Oi] = x[
|
|
303
|
+
var Yn = typeof exports == "object" && exports && !exports.nodeType && exports, Jr = Yn && typeof module == "object" && module && !module.nodeType && module, bi = Jr && Jr.exports === Yn, Wr = bi ? K.Buffer : void 0, _i = Wr ? Wr.isBuffer : void 0, Qt = _i || yi, Si = "[object Arguments]", ji = "[object Array]", Oi = "[object Boolean]", wi = "[object Date]", Ci = "[object Error]", Ei = "[object Function]", $i = "[object Map]", Ni = "[object Number]", xi = "[object Object]", Ti = "[object RegExp]", Ai = "[object Set]", Mi = "[object String]", Pi = "[object WeakMap]", Ri = "[object ArrayBuffer]", Di = "[object DataView]", Ii = "[object Float32Array]", Li = "[object Float64Array]", Bi = "[object Int8Array]", Fi = "[object Int16Array]", ki = "[object Int32Array]", Ui = "[object Uint8Array]", Gi = "[object Uint8ClampedArray]", Vi = "[object Uint16Array]", zi = "[object Uint32Array]", x = {};
|
|
304
|
+
x[Ii] = x[Li] = x[Bi] = x[Fi] = x[ki] = x[Ui] = x[Gi] = x[Vi] = x[zi] = !0;
|
|
305
|
+
x[Si] = x[ji] = x[Ri] = x[Oi] = x[Di] = x[wi] = x[Ci] = x[Ei] = x[$i] = x[Ni] = x[xi] = x[Ti] = x[Ai] = x[Mi] = x[Pi] = !1;
|
|
306
306
|
function Hi(t) {
|
|
307
|
-
return X(t) && lr(t.length) && !!x[
|
|
307
|
+
return X(t) && lr(t.length) && !!x[mt(t)];
|
|
308
308
|
}
|
|
309
309
|
function pr(t) {
|
|
310
310
|
return function(e) {
|
|
311
311
|
return t(e);
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
|
-
var Xn = typeof exports == "object" && exports && !exports.nodeType && exports, zt = Xn && typeof module == "object" && module && !module.nodeType && module, Ji = zt && zt.exports === Xn, Ae = Ji &&
|
|
314
|
+
var Xn = typeof exports == "object" && exports && !exports.nodeType && exports, zt = Xn && typeof module == "object" && module && !module.nodeType && module, Ji = zt && zt.exports === Xn, Ae = Ji && Gn.process, jt = function() {
|
|
315
315
|
try {
|
|
316
316
|
var t = zt && zt.require && zt.require("util").types;
|
|
317
317
|
return t || Ae && Ae.binding && Ae.binding("util");
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
|
-
}(), qr =
|
|
320
|
+
}(), qr = jt && jt.isTypedArray, dr = qr ? pr(qr) : Hi, Wi = Object.prototype, qi = Wi.hasOwnProperty;
|
|
321
321
|
function Kn(t, e) {
|
|
322
322
|
var r = R(t), n = !r && qt(t), o = !r && !n && Qt(t), a = !r && !n && !o && dr(t), s = r || n || o || a, i = s ? hi(t.length, String) : [], c = i.length;
|
|
323
323
|
for (var u in t)
|
|
@@ -325,7 +325,7 @@ function Kn(t, e) {
|
|
|
325
325
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
326
326
|
o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
327
327
|
a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
328
|
-
|
|
328
|
+
ve(u, c))) && i.push(u);
|
|
329
329
|
return i;
|
|
330
330
|
}
|
|
331
331
|
function Zn(t, e) {
|
|
@@ -343,7 +343,7 @@ function Ki(t) {
|
|
|
343
343
|
return e;
|
|
344
344
|
}
|
|
345
345
|
function ye(t) {
|
|
346
|
-
return
|
|
346
|
+
return ge(t) ? Kn(t) : Ki(t);
|
|
347
347
|
}
|
|
348
348
|
function Zi(t) {
|
|
349
349
|
var e = [];
|
|
@@ -362,7 +362,7 @@ function rs(t) {
|
|
|
362
362
|
return r;
|
|
363
363
|
}
|
|
364
364
|
function re(t) {
|
|
365
|
-
return
|
|
365
|
+
return ge(t) ? Kn(t, !0) : rs(t);
|
|
366
366
|
}
|
|
367
367
|
var ns = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, os = /^\w*$/;
|
|
368
368
|
function hr(t, e) {
|
|
@@ -398,19 +398,19 @@ function ms(t, e) {
|
|
|
398
398
|
var r = this.__data__;
|
|
399
399
|
return this.size += this.has(t) ? 0 : 1, r[t] = Yt && e === void 0 ? hs : e, this;
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function ft(t) {
|
|
402
402
|
var e = -1, r = t == null ? 0 : t.length;
|
|
403
403
|
for (this.clear(); ++e < r; ) {
|
|
404
404
|
var n = t[e];
|
|
405
405
|
this.set(n[0], n[1]);
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
function
|
|
408
|
+
ft.prototype.clear = as;
|
|
409
|
+
ft.prototype.delete = is;
|
|
410
|
+
ft.prototype.get = ls;
|
|
411
|
+
ft.prototype.has = ds;
|
|
412
|
+
ft.prototype.set = ms;
|
|
413
|
+
function vs() {
|
|
414
414
|
this.__data__ = [], this.size = 0;
|
|
415
415
|
}
|
|
416
416
|
function be(t, e) {
|
|
@@ -419,7 +419,7 @@ function be(t, e) {
|
|
|
419
419
|
return r;
|
|
420
420
|
return -1;
|
|
421
421
|
}
|
|
422
|
-
var
|
|
422
|
+
var gs = Array.prototype, ys = gs.splice;
|
|
423
423
|
function bs(t) {
|
|
424
424
|
var e = this.__data__, r = be(e, t);
|
|
425
425
|
if (r < 0)
|
|
@@ -438,24 +438,24 @@ function js(t, e) {
|
|
|
438
438
|
var r = this.__data__, n = be(r, t);
|
|
439
439
|
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function rt(t) {
|
|
442
442
|
var e = -1, r = t == null ? 0 : t.length;
|
|
443
443
|
for (this.clear(); ++e < r; ) {
|
|
444
444
|
var n = t[e];
|
|
445
445
|
this.set(n[0], n[1]);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
448
|
+
rt.prototype.clear = vs;
|
|
449
|
+
rt.prototype.delete = bs;
|
|
450
|
+
rt.prototype.get = _s;
|
|
451
|
+
rt.prototype.has = Ss;
|
|
452
|
+
rt.prototype.set = js;
|
|
453
453
|
var Xt = gt(K, "Map");
|
|
454
454
|
function Os() {
|
|
455
455
|
this.size = 0, this.__data__ = {
|
|
456
|
-
hash: new
|
|
457
|
-
map: new (Xt ||
|
|
458
|
-
string: new
|
|
456
|
+
hash: new ft(),
|
|
457
|
+
map: new (Xt || rt)(),
|
|
458
|
+
string: new ft()
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
461
|
function ws(t) {
|
|
@@ -473,25 +473,25 @@ function Cs(t) {
|
|
|
473
473
|
function Es(t) {
|
|
474
474
|
return _e(this, t).get(t);
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function $s(t) {
|
|
477
477
|
return _e(this, t).has(t);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Ns(t, e) {
|
|
480
480
|
var r = _e(this, t), n = r.size;
|
|
481
481
|
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function nt(t) {
|
|
484
484
|
var e = -1, r = t == null ? 0 : t.length;
|
|
485
485
|
for (this.clear(); ++e < r; ) {
|
|
486
486
|
var n = t[e];
|
|
487
487
|
this.set(n[0], n[1]);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
490
|
+
nt.prototype.clear = Os;
|
|
491
|
+
nt.prototype.delete = Cs;
|
|
492
|
+
nt.prototype.get = Es;
|
|
493
|
+
nt.prototype.has = $s;
|
|
494
|
+
nt.prototype.set = Ns;
|
|
495
495
|
var xs = "Expected a function";
|
|
496
496
|
function mr(t, e) {
|
|
497
497
|
if (typeof t != "function" || e != null && typeof e != "function")
|
|
@@ -503,9 +503,9 @@ function mr(t, e) {
|
|
|
503
503
|
var s = t.apply(this, n);
|
|
504
504
|
return r.cache = a.set(o, s) || a, s;
|
|
505
505
|
};
|
|
506
|
-
return r.cache = new (mr.Cache ||
|
|
506
|
+
return r.cache = new (mr.Cache || nt)(), r;
|
|
507
507
|
}
|
|
508
|
-
mr.Cache =
|
|
508
|
+
mr.Cache = nt;
|
|
509
509
|
var Ts = 500;
|
|
510
510
|
function As(t) {
|
|
511
511
|
var e = mr(t, function(n) {
|
|
@@ -519,35 +519,35 @@ var Ms = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
519
519
|
e.push(o ? a.replace(Ps, "$1") : n || r);
|
|
520
520
|
}), e;
|
|
521
521
|
});
|
|
522
|
-
function
|
|
522
|
+
function Ds(t) {
|
|
523
523
|
return t == null ? "" : zn(t);
|
|
524
524
|
}
|
|
525
|
-
function
|
|
526
|
-
return R(t) ? t : hr(t, e) ? [t] : Rs(
|
|
525
|
+
function Tt(t, e) {
|
|
526
|
+
return R(t) ? t : hr(t, e) ? [t] : Rs(Ds(t));
|
|
527
527
|
}
|
|
528
|
-
var
|
|
529
|
-
function
|
|
528
|
+
var Is = 1 / 0;
|
|
529
|
+
function At(t) {
|
|
530
530
|
if (typeof t == "string" || or(t))
|
|
531
531
|
return t;
|
|
532
532
|
var e = t + "";
|
|
533
|
-
return e == "0" && 1 / t == -
|
|
533
|
+
return e == "0" && 1 / t == -Is ? "-0" : e;
|
|
534
534
|
}
|
|
535
535
|
function Se(t, e) {
|
|
536
|
-
e =
|
|
536
|
+
e = Tt(e, t);
|
|
537
537
|
for (var r = 0, n = e.length; t != null && r < n; )
|
|
538
|
-
t = t[
|
|
538
|
+
t = t[At(e[r++])];
|
|
539
539
|
return r && r == n ? t : void 0;
|
|
540
540
|
}
|
|
541
541
|
function to(t, e, r) {
|
|
542
542
|
var n = t == null ? void 0 : Se(t, e);
|
|
543
543
|
return n === void 0 ? r : n;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function vr(t, e) {
|
|
546
546
|
for (var r = -1, n = e.length, o = t.length; ++r < n; )
|
|
547
547
|
t[o + r] = e[r];
|
|
548
548
|
return t;
|
|
549
549
|
}
|
|
550
|
-
var Qr =
|
|
550
|
+
var Qr = V ? V.isConcatSpreadable : void 0;
|
|
551
551
|
function Ls(t) {
|
|
552
552
|
return R(t) || qt(t) || !!(Qr && t && t[Qr]);
|
|
553
553
|
}
|
|
@@ -555,7 +555,7 @@ function eo(t, e, r, n, o) {
|
|
|
555
555
|
var a = -1, s = t.length;
|
|
556
556
|
for (r || (r = Ls), o || (o = []); ++a < s; ) {
|
|
557
557
|
var i = t[a];
|
|
558
|
-
r(i) ?
|
|
558
|
+
r(i) ? vr(o, i) : n || (o[o.length] = i);
|
|
559
559
|
}
|
|
560
560
|
return o;
|
|
561
561
|
}
|
|
@@ -566,14 +566,14 @@ function Bs(t) {
|
|
|
566
566
|
function Fs(t) {
|
|
567
567
|
return Jn(Wn(t, void 0, Bs), t + "");
|
|
568
568
|
}
|
|
569
|
-
var
|
|
570
|
-
function
|
|
571
|
-
if (!X(t) ||
|
|
569
|
+
var gr = Zn(Object.getPrototypeOf, Object), ks = "[object Object]", Us = Function.prototype, Gs = Object.prototype, ro = Us.toString, Vs = Gs.hasOwnProperty, zs = ro.call(Object);
|
|
570
|
+
function k(t) {
|
|
571
|
+
if (!X(t) || mt(t) != ks)
|
|
572
572
|
return !1;
|
|
573
|
-
var e =
|
|
573
|
+
var e = gr(t);
|
|
574
574
|
if (e === null)
|
|
575
575
|
return !0;
|
|
576
|
-
var r =
|
|
576
|
+
var r = Vs.call(e, "constructor") && e.constructor;
|
|
577
577
|
return typeof r == "function" && r instanceof r && ro.call(r) == zs;
|
|
578
578
|
}
|
|
579
579
|
function Hs(t, e, r) {
|
|
@@ -584,7 +584,7 @@ function Hs(t, e, r) {
|
|
|
584
584
|
return a;
|
|
585
585
|
}
|
|
586
586
|
function Js() {
|
|
587
|
-
this.__data__ = new
|
|
587
|
+
this.__data__ = new rt(), this.size = 0;
|
|
588
588
|
}
|
|
589
589
|
function Ws(t) {
|
|
590
590
|
var e = this.__data__, r = e.delete(t);
|
|
@@ -599,16 +599,16 @@ function Qs(t) {
|
|
|
599
599
|
var Ys = 200;
|
|
600
600
|
function Xs(t, e) {
|
|
601
601
|
var r = this.__data__;
|
|
602
|
-
if (r instanceof
|
|
602
|
+
if (r instanceof rt) {
|
|
603
603
|
var n = r.__data__;
|
|
604
604
|
if (!Xt || n.length < Ys - 1)
|
|
605
605
|
return n.push([t, e]), this.size = ++r.size, this;
|
|
606
|
-
r = this.__data__ = new
|
|
606
|
+
r = this.__data__ = new nt(n);
|
|
607
607
|
}
|
|
608
608
|
return r.set(t, e), this.size = r.size, this;
|
|
609
609
|
}
|
|
610
610
|
function W(t) {
|
|
611
|
-
var e = this.__data__ = new
|
|
611
|
+
var e = this.__data__ = new rt(t);
|
|
612
612
|
this.size = e.size;
|
|
613
613
|
}
|
|
614
614
|
W.prototype.clear = Js;
|
|
@@ -617,10 +617,10 @@ W.prototype.get = qs;
|
|
|
617
617
|
W.prototype.has = Qs;
|
|
618
618
|
W.prototype.set = Xs;
|
|
619
619
|
function Ks(t, e) {
|
|
620
|
-
return t &&
|
|
620
|
+
return t && xt(e, ye(e), t);
|
|
621
621
|
}
|
|
622
622
|
function Zs(t, e) {
|
|
623
|
-
return t &&
|
|
623
|
+
return t && xt(e, re(e), t);
|
|
624
624
|
}
|
|
625
625
|
var no = typeof exports == "object" && exports && !exports.nodeType && exports, Yr = no && typeof module == "object" && module && !module.nodeType && module, tc = Yr && Yr.exports === no, Xr = tc ? K.Buffer : void 0, Kr = Xr ? Xr.allocUnsafe : void 0;
|
|
626
626
|
function oo(t, e) {
|
|
@@ -645,29 +645,29 @@ var rc = Object.prototype, nc = rc.propertyIsEnumerable, Zr = Object.getOwnPrope
|
|
|
645
645
|
}));
|
|
646
646
|
} : ao;
|
|
647
647
|
function oc(t, e) {
|
|
648
|
-
return
|
|
648
|
+
return xt(t, yr(t), e);
|
|
649
649
|
}
|
|
650
650
|
var ac = Object.getOwnPropertySymbols, io = ac ? function(t) {
|
|
651
651
|
for (var e = []; t; )
|
|
652
|
-
|
|
652
|
+
vr(e, yr(t)), t = gr(t);
|
|
653
653
|
return e;
|
|
654
654
|
} : ao;
|
|
655
655
|
function ic(t, e) {
|
|
656
|
-
return
|
|
656
|
+
return xt(t, io(t), e);
|
|
657
657
|
}
|
|
658
658
|
function so(t, e, r) {
|
|
659
659
|
var n = e(t);
|
|
660
|
-
return R(t) ? n :
|
|
660
|
+
return R(t) ? n : vr(n, r(t));
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Ge(t) {
|
|
663
663
|
return so(t, ye, yr);
|
|
664
664
|
}
|
|
665
665
|
function br(t) {
|
|
666
666
|
return so(t, re, io);
|
|
667
667
|
}
|
|
668
|
-
var
|
|
669
|
-
(
|
|
670
|
-
var e =
|
|
668
|
+
var Ve = gt(K, "DataView"), ze = gt(K, "Promise"), St = gt(K, "Set"), tn = "[object Map]", sc = "[object Object]", en = "[object Promise]", rn = "[object Set]", nn = "[object WeakMap]", on = "[object DataView]", cc = vt(Ve), uc = vt(Xt), lc = vt(ze), fc = vt(St), pc = vt(Ue), J = mt;
|
|
669
|
+
(Ve && J(new Ve(new ArrayBuffer(1))) != on || Xt && J(new Xt()) != tn || ze && J(ze.resolve()) != en || St && J(new St()) != rn || Ue && J(new Ue()) != nn) && (J = function(t) {
|
|
670
|
+
var e = mt(t), r = e == sc ? t.constructor : void 0, n = r ? vt(r) : "";
|
|
671
671
|
if (n)
|
|
672
672
|
switch (n) {
|
|
673
673
|
case cc:
|
|
@@ -693,16 +693,16 @@ function _r(t) {
|
|
|
693
693
|
var e = new t.constructor(t.byteLength);
|
|
694
694
|
return new pe(e).set(new pe(t)), e;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function vc(t, e) {
|
|
697
697
|
var r = e ? _r(t.buffer) : t.buffer;
|
|
698
698
|
return new t.constructor(r, t.byteOffset, t.byteLength);
|
|
699
699
|
}
|
|
700
|
-
var
|
|
700
|
+
var gc = /\w*$/;
|
|
701
701
|
function yc(t) {
|
|
702
|
-
var e = new t.constructor(t.source,
|
|
702
|
+
var e = new t.constructor(t.source, gc.exec(t));
|
|
703
703
|
return e.lastIndex = t.lastIndex, e;
|
|
704
704
|
}
|
|
705
|
-
var an =
|
|
705
|
+
var an = V ? V.prototype : void 0, sn = an ? an.valueOf : void 0;
|
|
706
706
|
function bc(t) {
|
|
707
707
|
return sn ? Object(sn.call(t)) : {};
|
|
708
708
|
}
|
|
@@ -710,24 +710,24 @@ function co(t, e) {
|
|
|
710
710
|
var r = e ? _r(t.buffer) : t.buffer;
|
|
711
711
|
return new t.constructor(r, t.byteOffset, t.length);
|
|
712
712
|
}
|
|
713
|
-
var _c = "[object Boolean]", Sc = "[object Date]", jc = "[object Map]", Oc = "[object Number]", wc = "[object RegExp]", Cc = "[object Set]", Ec = "[object String]",
|
|
713
|
+
var _c = "[object Boolean]", Sc = "[object Date]", jc = "[object Map]", Oc = "[object Number]", wc = "[object RegExp]", Cc = "[object Set]", Ec = "[object String]", $c = "[object Symbol]", Nc = "[object ArrayBuffer]", xc = "[object DataView]", Tc = "[object Float32Array]", Ac = "[object Float64Array]", Mc = "[object Int8Array]", Pc = "[object Int16Array]", Rc = "[object Int32Array]", Dc = "[object Uint8Array]", Ic = "[object Uint8ClampedArray]", Lc = "[object Uint16Array]", Bc = "[object Uint32Array]";
|
|
714
714
|
function Fc(t, e, r) {
|
|
715
715
|
var n = t.constructor;
|
|
716
716
|
switch (e) {
|
|
717
|
-
case
|
|
717
|
+
case Nc:
|
|
718
718
|
return _r(t);
|
|
719
719
|
case _c:
|
|
720
720
|
case Sc:
|
|
721
721
|
return new n(+t);
|
|
722
722
|
case xc:
|
|
723
|
-
return
|
|
723
|
+
return vc(t, r);
|
|
724
724
|
case Tc:
|
|
725
725
|
case Ac:
|
|
726
726
|
case Mc:
|
|
727
727
|
case Pc:
|
|
728
728
|
case Rc:
|
|
729
|
-
case Ic:
|
|
730
729
|
case Dc:
|
|
730
|
+
case Ic:
|
|
731
731
|
case Lc:
|
|
732
732
|
case Bc:
|
|
733
733
|
return co(t, r);
|
|
@@ -740,24 +740,24 @@ function Fc(t, e, r) {
|
|
|
740
740
|
return yc(t);
|
|
741
741
|
case Cc:
|
|
742
742
|
return new n();
|
|
743
|
-
case
|
|
743
|
+
case $c:
|
|
744
744
|
return bc(t);
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
747
|
function uo(t) {
|
|
748
|
-
return typeof t.constructor == "function" && !fr(t) ? Ha(
|
|
748
|
+
return typeof t.constructor == "function" && !fr(t) ? Ha(gr(t)) : {};
|
|
749
749
|
}
|
|
750
750
|
var kc = "[object Map]";
|
|
751
751
|
function Uc(t) {
|
|
752
752
|
return X(t) && J(t) == kc;
|
|
753
753
|
}
|
|
754
|
-
var cn =
|
|
754
|
+
var cn = jt && jt.isMap, Gc = cn ? pr(cn) : Uc, Vc = "[object Set]";
|
|
755
755
|
function zc(t) {
|
|
756
|
-
return X(t) && J(t) ==
|
|
756
|
+
return X(t) && J(t) == Vc;
|
|
757
757
|
}
|
|
758
|
-
var un =
|
|
759
|
-
|
|
760
|
-
|
|
758
|
+
var un = jt && jt.isSet, Hc = un ? pr(un) : zc, Jc = 1, Wc = 2, qc = 4, lo = "[object Arguments]", Qc = "[object Array]", Yc = "[object Boolean]", Xc = "[object Date]", Kc = "[object Error]", fo = "[object Function]", Zc = "[object GeneratorFunction]", tu = "[object Map]", eu = "[object Number]", po = "[object Object]", ru = "[object RegExp]", nu = "[object Set]", ou = "[object String]", au = "[object Symbol]", iu = "[object WeakMap]", su = "[object ArrayBuffer]", cu = "[object DataView]", uu = "[object Float32Array]", lu = "[object Float64Array]", fu = "[object Int8Array]", pu = "[object Int16Array]", du = "[object Int32Array]", hu = "[object Uint8Array]", mu = "[object Uint8ClampedArray]", vu = "[object Uint16Array]", gu = "[object Uint32Array]", $ = {};
|
|
759
|
+
$[lo] = $[Qc] = $[su] = $[cu] = $[Yc] = $[Xc] = $[uu] = $[lu] = $[fu] = $[pu] = $[du] = $[tu] = $[eu] = $[po] = $[ru] = $[nu] = $[ou] = $[au] = $[hu] = $[mu] = $[vu] = $[gu] = !0;
|
|
760
|
+
$[Kc] = $[fo] = $[iu] = !1;
|
|
761
761
|
function Ht(t, e, r, n, o, a) {
|
|
762
762
|
var s, i = e & Jc, c = e & Wc, u = e & qc;
|
|
763
763
|
if (r && (s = o ? r(t, n, o, a) : r(t)), s !== void 0)
|
|
@@ -776,7 +776,7 @@ function Ht(t, e, r, n, o, a) {
|
|
|
776
776
|
if (s = c || f ? {} : uo(t), !i)
|
|
777
777
|
return c ? ic(t, Zs(s, t)) : oc(t, Ks(s, t));
|
|
778
778
|
} else {
|
|
779
|
-
if (
|
|
779
|
+
if (!$[p])
|
|
780
780
|
return o ? t : {};
|
|
781
781
|
s = Fc(t, p, i);
|
|
782
782
|
}
|
|
@@ -787,12 +787,12 @@ function Ht(t, e, r, n, o, a) {
|
|
|
787
787
|
return d;
|
|
788
788
|
a.set(t, s), Hc(t) ? t.forEach(function(b) {
|
|
789
789
|
s.add(Ht(b, e, r, b, t, a));
|
|
790
|
-
}) :
|
|
790
|
+
}) : Gc(t) && t.forEach(function(b, S) {
|
|
791
791
|
s.set(S, Ht(b, e, r, S, t, a));
|
|
792
792
|
});
|
|
793
|
-
var h = u ? c ? br :
|
|
794
|
-
return ti(
|
|
795
|
-
|
|
793
|
+
var h = u ? c ? br : Ge : c ? re : ye, g = l ? void 0 : h(t);
|
|
794
|
+
return ti(g || t, function(b, S) {
|
|
795
|
+
g && (S = b, b = t[S]), ur(s, S, Ht(b, e, r, S, t, a));
|
|
796
796
|
}), s;
|
|
797
797
|
}
|
|
798
798
|
var yu = 1, bu = 4;
|
|
@@ -808,7 +808,7 @@ function ju(t) {
|
|
|
808
808
|
}
|
|
809
809
|
function Kt(t) {
|
|
810
810
|
var e = -1, r = t == null ? 0 : t.length;
|
|
811
|
-
for (this.__data__ = new
|
|
811
|
+
for (this.__data__ = new nt(); ++e < r; )
|
|
812
812
|
this.add(t[e]);
|
|
813
813
|
}
|
|
814
814
|
Kt.prototype.add = Kt.prototype.push = Su;
|
|
@@ -823,7 +823,7 @@ function mo(t, e) {
|
|
|
823
823
|
return t.has(e);
|
|
824
824
|
}
|
|
825
825
|
var wu = 1, Cu = 2;
|
|
826
|
-
function
|
|
826
|
+
function vo(t, e, r, n, o, a) {
|
|
827
827
|
var s = r & wu, i = t.length, c = e.length;
|
|
828
828
|
if (i != c && !(s && c > i))
|
|
829
829
|
return !1;
|
|
@@ -832,9 +832,9 @@ function go(t, e, r, n, o, a) {
|
|
|
832
832
|
return u == e && l == t;
|
|
833
833
|
var p = -1, f = !0, d = r & Cu ? new Kt() : void 0;
|
|
834
834
|
for (a.set(t, e), a.set(e, t); ++p < i; ) {
|
|
835
|
-
var h = t[p],
|
|
835
|
+
var h = t[p], g = e[p];
|
|
836
836
|
if (n)
|
|
837
|
-
var b = s ? n(
|
|
837
|
+
var b = s ? n(g, h, p, e, t, a) : n(h, g, p, t, e, a);
|
|
838
838
|
if (b !== void 0) {
|
|
839
839
|
if (b)
|
|
840
840
|
continue;
|
|
@@ -849,7 +849,7 @@ function go(t, e, r, n, o, a) {
|
|
|
849
849
|
f = !1;
|
|
850
850
|
break;
|
|
851
851
|
}
|
|
852
|
-
} else if (!(h ===
|
|
852
|
+
} else if (!(h === g || o(h, g, r, n, a))) {
|
|
853
853
|
f = !1;
|
|
854
854
|
break;
|
|
855
855
|
}
|
|
@@ -868,7 +868,7 @@ function Sr(t) {
|
|
|
868
868
|
r[++e] = n;
|
|
869
869
|
}), r;
|
|
870
870
|
}
|
|
871
|
-
var
|
|
871
|
+
var $u = 1, Nu = 2, xu = "[object Boolean]", Tu = "[object Date]", Au = "[object Error]", Mu = "[object Map]", Pu = "[object Number]", Ru = "[object RegExp]", Du = "[object Set]", Iu = "[object String]", Lu = "[object Symbol]", Bu = "[object ArrayBuffer]", Fu = "[object DataView]", ln = V ? V.prototype : void 0, Me = ln ? ln.valueOf : void 0;
|
|
872
872
|
function ku(t, e, r, n, o, a, s) {
|
|
873
873
|
switch (r) {
|
|
874
874
|
case Fu:
|
|
@@ -884,19 +884,19 @@ function ku(t, e, r, n, o, a, s) {
|
|
|
884
884
|
case Au:
|
|
885
885
|
return t.name == e.name && t.message == e.message;
|
|
886
886
|
case Ru:
|
|
887
|
-
case
|
|
887
|
+
case Iu:
|
|
888
888
|
return t == e + "";
|
|
889
889
|
case Mu:
|
|
890
890
|
var i = Eu;
|
|
891
|
-
case
|
|
892
|
-
var c = n &
|
|
891
|
+
case Du:
|
|
892
|
+
var c = n & $u;
|
|
893
893
|
if (i || (i = Sr), t.size != e.size && !c)
|
|
894
894
|
return !1;
|
|
895
895
|
var u = s.get(t);
|
|
896
896
|
if (u)
|
|
897
897
|
return u == e;
|
|
898
|
-
n |=
|
|
899
|
-
var l =
|
|
898
|
+
n |= Nu, s.set(t, e);
|
|
899
|
+
var l = vo(i(t), i(e), n, o, a, s);
|
|
900
900
|
return s.delete(t), l;
|
|
901
901
|
case Lu:
|
|
902
902
|
if (Me)
|
|
@@ -904,37 +904,37 @@ function ku(t, e, r, n, o, a, s) {
|
|
|
904
904
|
}
|
|
905
905
|
return !1;
|
|
906
906
|
}
|
|
907
|
-
var Uu = 1,
|
|
907
|
+
var Uu = 1, Gu = Object.prototype, Vu = Gu.hasOwnProperty;
|
|
908
908
|
function zu(t, e, r, n, o, a) {
|
|
909
|
-
var s = r & Uu, i =
|
|
909
|
+
var s = r & Uu, i = Ge(t), c = i.length, u = Ge(e), l = u.length;
|
|
910
910
|
if (c != l && !s)
|
|
911
911
|
return !1;
|
|
912
912
|
for (var p = c; p--; ) {
|
|
913
913
|
var f = i[p];
|
|
914
|
-
if (!(s ? f in e :
|
|
914
|
+
if (!(s ? f in e : Vu.call(e, f)))
|
|
915
915
|
return !1;
|
|
916
916
|
}
|
|
917
917
|
var d = a.get(t), h = a.get(e);
|
|
918
918
|
if (d && h)
|
|
919
919
|
return d == e && h == t;
|
|
920
|
-
var
|
|
920
|
+
var g = !0;
|
|
921
921
|
a.set(t, e), a.set(e, t);
|
|
922
922
|
for (var b = s; ++p < c; ) {
|
|
923
923
|
f = i[p];
|
|
924
924
|
var S = t[f], j = e[f];
|
|
925
925
|
if (n)
|
|
926
|
-
var
|
|
927
|
-
if (!(
|
|
928
|
-
|
|
926
|
+
var N = s ? n(j, S, f, e, t, a) : n(S, j, f, t, e, a);
|
|
927
|
+
if (!(N === void 0 ? S === j || o(S, j, r, n, a) : N)) {
|
|
928
|
+
g = !1;
|
|
929
929
|
break;
|
|
930
930
|
}
|
|
931
931
|
b || (b = f == "constructor");
|
|
932
932
|
}
|
|
933
|
-
if (
|
|
934
|
-
var E = t.constructor,
|
|
935
|
-
E !=
|
|
933
|
+
if (g && !b) {
|
|
934
|
+
var E = t.constructor, I = e.constructor;
|
|
935
|
+
E != I && "constructor" in t && "constructor" in e && !(typeof E == "function" && E instanceof E && typeof I == "function" && I instanceof I) && (g = !1);
|
|
936
936
|
}
|
|
937
|
-
return a.delete(t), a.delete(e),
|
|
937
|
+
return a.delete(t), a.delete(e), g;
|
|
938
938
|
}
|
|
939
939
|
var Hu = 1, fn = "[object Arguments]", pn = "[object Array]", ce = "[object Object]", Ju = Object.prototype, dn = Ju.hasOwnProperty;
|
|
940
940
|
function Wu(t, e, r, n, o, a) {
|
|
@@ -947,12 +947,12 @@ function Wu(t, e, r, n, o, a) {
|
|
|
947
947
|
s = !0, l = !1;
|
|
948
948
|
}
|
|
949
949
|
if (f && !l)
|
|
950
|
-
return a || (a = new W()), s || dr(t) ?
|
|
950
|
+
return a || (a = new W()), s || dr(t) ? vo(t, e, r, n, o, a) : ku(t, e, c, r, n, o, a);
|
|
951
951
|
if (!(r & Hu)) {
|
|
952
952
|
var d = l && dn.call(t, "__wrapped__"), h = p && dn.call(e, "__wrapped__");
|
|
953
953
|
if (d || h) {
|
|
954
|
-
var
|
|
955
|
-
return a || (a = new W()), o(
|
|
954
|
+
var g = d ? t.value() : t, b = h ? e.value() : e;
|
|
955
|
+
return a || (a = new W()), o(g, b, r, n, a);
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
958
|
return f ? (a || (a = new W()), zu(t, e, r, n, o, a)) : !1;
|
|
@@ -984,13 +984,13 @@ function Yu(t, e, r, n) {
|
|
|
984
984
|
}
|
|
985
985
|
return !0;
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function go(t) {
|
|
988
988
|
return t === t && !Q(t);
|
|
989
989
|
}
|
|
990
990
|
function Xu(t) {
|
|
991
991
|
for (var e = ye(t), r = e.length; r--; ) {
|
|
992
992
|
var n = e[r], o = t[n];
|
|
993
|
-
e[r] = [n, o,
|
|
993
|
+
e[r] = [n, o, go(o)];
|
|
994
994
|
}
|
|
995
995
|
return e;
|
|
996
996
|
}
|
|
@@ -1009,21 +1009,21 @@ function Zu(t, e) {
|
|
|
1009
1009
|
return t != null && e in Object(t);
|
|
1010
1010
|
}
|
|
1011
1011
|
function tl(t, e, r) {
|
|
1012
|
-
e =
|
|
1012
|
+
e = Tt(e, t);
|
|
1013
1013
|
for (var n = -1, o = e.length, a = !1; ++n < o; ) {
|
|
1014
|
-
var s =
|
|
1014
|
+
var s = At(e[n]);
|
|
1015
1015
|
if (!(a = t != null && r(t, s)))
|
|
1016
1016
|
break;
|
|
1017
1017
|
t = t[s];
|
|
1018
1018
|
}
|
|
1019
|
-
return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && lr(o) &&
|
|
1019
|
+
return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && lr(o) && ve(s, o) && (R(t) || qt(t)));
|
|
1020
1020
|
}
|
|
1021
1021
|
function el(t, e) {
|
|
1022
1022
|
return t != null && tl(t, e, Zu);
|
|
1023
1023
|
}
|
|
1024
1024
|
var rl = 1, nl = 2;
|
|
1025
1025
|
function ol(t, e) {
|
|
1026
|
-
return hr(t) &&
|
|
1026
|
+
return hr(t) && go(e) ? yo(At(t), e) : function(r) {
|
|
1027
1027
|
var n = to(r, t);
|
|
1028
1028
|
return n === void 0 && n === e ? el(r, t) : jr(e, n, rl | nl);
|
|
1029
1029
|
};
|
|
@@ -1039,7 +1039,7 @@ function il(t) {
|
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
1041
|
function sl(t) {
|
|
1042
|
-
return hr(t) ? al(
|
|
1042
|
+
return hr(t) ? al(At(t)) : il(t);
|
|
1043
1043
|
}
|
|
1044
1044
|
function Or(t) {
|
|
1045
1045
|
return typeof t == "function" ? t : t == null ? ir : typeof t == "object" ? R(t) ? ol(t[0], t[1]) : Ku(t) : sl(t);
|
|
@@ -1059,14 +1059,14 @@ function He(t, e, r) {
|
|
|
1059
1059
|
(r !== void 0 && !ee(t[e], r) || r === void 0 && !(e in t)) && cr(t, e, r);
|
|
1060
1060
|
}
|
|
1061
1061
|
function Je(t) {
|
|
1062
|
-
return X(t) &&
|
|
1062
|
+
return X(t) && ge(t);
|
|
1063
1063
|
}
|
|
1064
1064
|
function We(t, e) {
|
|
1065
1065
|
if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
|
|
1066
1066
|
return t[e];
|
|
1067
1067
|
}
|
|
1068
1068
|
function ll(t) {
|
|
1069
|
-
return
|
|
1069
|
+
return xt(t, re(t));
|
|
1070
1070
|
}
|
|
1071
1071
|
function fl(t, e, r, n, o, a, s) {
|
|
1072
1072
|
var i = We(t, r), c = We(e, r), u = s.get(c);
|
|
@@ -1077,7 +1077,7 @@ function fl(t, e, r, n, o, a, s) {
|
|
|
1077
1077
|
var l = a ? a(i, c, r + "", t, e, s) : void 0, p = l === void 0;
|
|
1078
1078
|
if (p) {
|
|
1079
1079
|
var f = R(c), d = !f && Qt(c), h = !f && !d && dr(c);
|
|
1080
|
-
l = c, f || d || h ? R(i) ? l = i : Je(i) ? l = Hn(i) : d ? (p = !1, l = oo(c, !0)) : h ? (p = !1, l = co(c, !0)) : l = [] :
|
|
1080
|
+
l = c, f || d || h ? R(i) ? l = i : Je(i) ? l = Hn(i) : d ? (p = !1, l = oo(c, !0)) : h ? (p = !1, l = co(c, !0)) : l = [] : k(c) || qt(c) ? (l = i, qt(i) ? l = ll(i) : (!Q(i) || sr(i)) && (l = uo(c))) : p = !1;
|
|
1081
1081
|
}
|
|
1082
1082
|
p && (s.set(c, l), o(l, c, n, a, s), s.delete(c)), He(t, r, l);
|
|
1083
1083
|
}
|
|
@@ -1120,19 +1120,19 @@ function hl(t) {
|
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
1122
|
function ml(t, e) {
|
|
1123
|
-
return e =
|
|
1123
|
+
return e = Tt(e, t), t = pl(t, e), t == null || delete t[At(_o(e))];
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1126
|
-
return
|
|
1125
|
+
function vl(t) {
|
|
1126
|
+
return k(t) ? void 0 : t;
|
|
1127
1127
|
}
|
|
1128
|
-
var
|
|
1128
|
+
var gl = 1, yl = 2, bl = 4, jo = Fs(function(t, e) {
|
|
1129
1129
|
var r = {};
|
|
1130
1130
|
if (t == null)
|
|
1131
1131
|
return r;
|
|
1132
1132
|
var n = !1;
|
|
1133
1133
|
e = ar(e, function(a) {
|
|
1134
|
-
return a =
|
|
1135
|
-
}),
|
|
1134
|
+
return a = Tt(a, t), n || (n = a.length > 1), a;
|
|
1135
|
+
}), xt(t, br(t), r), n && (r = Ht(r, gl | yl | bl, vl));
|
|
1136
1136
|
for (var o = e.length; o--; )
|
|
1137
1137
|
ml(r, e[o]);
|
|
1138
1138
|
return r;
|
|
@@ -1140,14 +1140,14 @@ var vl = 1, yl = 2, bl = 4, jo = Fs(function(t, e) {
|
|
|
1140
1140
|
function _l(t, e, r, n) {
|
|
1141
1141
|
if (!Q(t))
|
|
1142
1142
|
return t;
|
|
1143
|
-
e =
|
|
1143
|
+
e = Tt(e, t);
|
|
1144
1144
|
for (var o = -1, a = e.length, s = a - 1, i = t; i != null && ++o < a; ) {
|
|
1145
|
-
var c =
|
|
1145
|
+
var c = At(e[o]), u = r;
|
|
1146
1146
|
if (c === "__proto__" || c === "constructor" || c === "prototype")
|
|
1147
1147
|
return t;
|
|
1148
1148
|
if (o != s) {
|
|
1149
1149
|
var l = i[c];
|
|
1150
|
-
u = void 0, u === void 0 && (u = Q(l) ? l :
|
|
1150
|
+
u = void 0, u === void 0 && (u = Q(l) ? l : ve(e[o + 1]) ? [] : {});
|
|
1151
1151
|
}
|
|
1152
1152
|
ur(i, c, u), i = i[c];
|
|
1153
1153
|
}
|
|
@@ -1156,7 +1156,7 @@ function _l(t, e, r, n) {
|
|
|
1156
1156
|
function Sl(t, e, r) {
|
|
1157
1157
|
for (var n = -1, o = e.length, a = {}; ++n < o; ) {
|
|
1158
1158
|
var s = e[n], i = Se(t, s);
|
|
1159
|
-
r(i, s) && _l(a,
|
|
1159
|
+
r(i, s) && _l(a, Tt(s, t), i);
|
|
1160
1160
|
}
|
|
1161
1161
|
return a;
|
|
1162
1162
|
}
|
|
@@ -1173,10 +1173,10 @@ function jl(t, e) {
|
|
|
1173
1173
|
function Ol(t, e) {
|
|
1174
1174
|
return jl(t, hl(Or(e)));
|
|
1175
1175
|
}
|
|
1176
|
-
var wl = 1 / 0, Cl =
|
|
1177
|
-
return new
|
|
1176
|
+
var wl = 1 / 0, Cl = St && 1 / Sr(new St([, -0]))[1] == wl ? function(t) {
|
|
1177
|
+
return new St(t);
|
|
1178
1178
|
} : Wa, El = 200;
|
|
1179
|
-
function
|
|
1179
|
+
function $l(t, e, r) {
|
|
1180
1180
|
var n = -1, o = ai, a = t.length, s = !0, i = [], c = i;
|
|
1181
1181
|
if (a >= El) {
|
|
1182
1182
|
var u = e ? null : Cl(t);
|
|
@@ -1197,9 +1197,9 @@ function Nl(t, e, r) {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
return i;
|
|
1199
1199
|
}
|
|
1200
|
-
var
|
|
1200
|
+
var Nl = qn(function(t) {
|
|
1201
1201
|
var e = _o(t);
|
|
1202
|
-
return Je(e) && (e = void 0),
|
|
1202
|
+
return Je(e) && (e = void 0), $l(eo(t, 1, Je, !0), Or(e));
|
|
1203
1203
|
});
|
|
1204
1204
|
class Oo extends TypeError {
|
|
1205
1205
|
constructor(e, r) {
|
|
@@ -1219,7 +1219,7 @@ function xl(t) {
|
|
|
1219
1219
|
function q(t) {
|
|
1220
1220
|
return typeof t == "object" && t != null;
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function U(t) {
|
|
1223
1223
|
return typeof t == "symbol" ? t.toString() : typeof t == "string" ? JSON.stringify(t) : `${t}`;
|
|
1224
1224
|
}
|
|
1225
1225
|
function Tl(t) {
|
|
@@ -1242,7 +1242,7 @@ function Al(t, e, r, n) {
|
|
|
1242
1242
|
type: s
|
|
1243
1243
|
} = r, {
|
|
1244
1244
|
refinement: i,
|
|
1245
|
-
message: c = `Expected a value of type \`${s}\`${i ? ` with refinement \`${i}\`` : ""}, but received: \`${
|
|
1245
|
+
message: c = `Expected a value of type \`${s}\`${i ? ` with refinement \`${i}\`` : ""}, but received: \`${U(n)}\``
|
|
1246
1246
|
} = t;
|
|
1247
1247
|
return {
|
|
1248
1248
|
value: n,
|
|
@@ -1348,16 +1348,16 @@ class Z {
|
|
|
1348
1348
|
* contain the coerced result when successful.
|
|
1349
1349
|
*/
|
|
1350
1350
|
validate(e, r) {
|
|
1351
|
-
return r === void 0 && (r = {}),
|
|
1351
|
+
return r === void 0 && (r = {}), Mt(e, this, r);
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
function wo(t, e) {
|
|
1355
|
-
const r =
|
|
1355
|
+
const r = Mt(t, e);
|
|
1356
1356
|
if (r[0])
|
|
1357
1357
|
throw r[0];
|
|
1358
1358
|
}
|
|
1359
1359
|
function Ml(t, e) {
|
|
1360
|
-
const r =
|
|
1360
|
+
const r = Mt(t, e, {
|
|
1361
1361
|
coerce: !0
|
|
1362
1362
|
});
|
|
1363
1363
|
if (r[0])
|
|
@@ -1365,7 +1365,7 @@ function Ml(t, e) {
|
|
|
1365
1365
|
return r[1];
|
|
1366
1366
|
}
|
|
1367
1367
|
function Pl(t, e) {
|
|
1368
|
-
const r =
|
|
1368
|
+
const r = Mt(t, e, {
|
|
1369
1369
|
coerce: !0,
|
|
1370
1370
|
mask: !0
|
|
1371
1371
|
});
|
|
@@ -1374,9 +1374,9 @@ function Pl(t, e) {
|
|
|
1374
1374
|
return r[1];
|
|
1375
1375
|
}
|
|
1376
1376
|
function Rl(t, e) {
|
|
1377
|
-
return !
|
|
1377
|
+
return !Mt(t, e)[0];
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function Mt(t, e, r) {
|
|
1380
1380
|
r === void 0 && (r = {});
|
|
1381
1381
|
const n = wr(t, e, r), o = Tl(n);
|
|
1382
1382
|
return o[0] ? [new Oo(o[0], function* () {
|
|
@@ -1388,16 +1388,16 @@ function Cr() {
|
|
|
1388
1388
|
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
1389
1389
|
e[r] = arguments[r];
|
|
1390
1390
|
const n = e[0].type === "type", o = e.map((s) => s.schema), a = Object.assign({}, ...o);
|
|
1391
|
-
return n ?
|
|
1391
|
+
return n ? No(a) : w(a);
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function ct(t, e) {
|
|
1394
1394
|
return new Z({
|
|
1395
1395
|
type: t,
|
|
1396
1396
|
schema: null,
|
|
1397
1397
|
validator: e
|
|
1398
1398
|
});
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Ot(t) {
|
|
1401
1401
|
return new Z({
|
|
1402
1402
|
type: "dynamic",
|
|
1403
1403
|
schema: null,
|
|
@@ -1425,13 +1425,13 @@ function Co(t, e) {
|
|
|
1425
1425
|
delete n[o];
|
|
1426
1426
|
switch (t.type) {
|
|
1427
1427
|
case "type":
|
|
1428
|
-
return
|
|
1428
|
+
return No(n);
|
|
1429
1429
|
default:
|
|
1430
1430
|
return w(n);
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
1433
|
function A() {
|
|
1434
|
-
return
|
|
1434
|
+
return ct("any", () => !0);
|
|
1435
1435
|
}
|
|
1436
1436
|
function P(t) {
|
|
1437
1437
|
return new Z({
|
|
@@ -1446,46 +1446,46 @@ function P(t) {
|
|
|
1446
1446
|
return Array.isArray(e) ? e.slice() : e;
|
|
1447
1447
|
},
|
|
1448
1448
|
validator(e) {
|
|
1449
|
-
return Array.isArray(e) || `Expected an array value, but received: ${
|
|
1449
|
+
return Array.isArray(e) || `Expected an array value, but received: ${U(e)}`;
|
|
1450
1450
|
}
|
|
1451
1451
|
});
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1454
|
-
return
|
|
1453
|
+
function pt() {
|
|
1454
|
+
return ct("boolean", (t) => typeof t == "boolean");
|
|
1455
1455
|
}
|
|
1456
1456
|
function qe(t) {
|
|
1457
|
-
const e = {}, r = t.map((n) =>
|
|
1457
|
+
const e = {}, r = t.map((n) => U(n)).join();
|
|
1458
1458
|
for (const n of t)
|
|
1459
1459
|
e[n] = n;
|
|
1460
1460
|
return new Z({
|
|
1461
1461
|
type: "enums",
|
|
1462
1462
|
schema: e,
|
|
1463
1463
|
validator(n) {
|
|
1464
|
-
return t.includes(n) || `Expected one of \`${r}\`, but received: ${
|
|
1464
|
+
return t.includes(n) || `Expected one of \`${r}\`, but received: ${U(n)}`;
|
|
1465
1465
|
}
|
|
1466
1466
|
});
|
|
1467
1467
|
}
|
|
1468
1468
|
function Eo() {
|
|
1469
|
-
return
|
|
1469
|
+
return ct("func", (t) => typeof t == "function" || `Expected a function, but received: ${U(t)}`);
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1472
|
-
const e =
|
|
1471
|
+
function B(t) {
|
|
1472
|
+
const e = U(t), r = typeof t;
|
|
1473
1473
|
return new Z({
|
|
1474
1474
|
type: "literal",
|
|
1475
1475
|
schema: r === "string" || r === "number" || r === "boolean" ? t : null,
|
|
1476
1476
|
validator(n) {
|
|
1477
|
-
return n === t || `Expected the literal \`${e}\`, but received: ${
|
|
1477
|
+
return n === t || `Expected the literal \`${e}\`, but received: ${U(n)}`;
|
|
1478
1478
|
}
|
|
1479
1479
|
});
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1482
|
-
return
|
|
1481
|
+
function Dl() {
|
|
1482
|
+
return ct("never", () => !1);
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1485
|
-
return
|
|
1484
|
+
function $o() {
|
|
1485
|
+
return ct("number", (t) => typeof t == "number" && !isNaN(t) || `Expected a number, but received: ${U(t)}`);
|
|
1486
1486
|
}
|
|
1487
1487
|
function w(t) {
|
|
1488
|
-
const e = t ? Object.keys(t) : [], r =
|
|
1488
|
+
const e = t ? Object.keys(t) : [], r = Dl();
|
|
1489
1489
|
return new Z({
|
|
1490
1490
|
type: "object",
|
|
1491
1491
|
schema: t || null,
|
|
@@ -1499,7 +1499,7 @@ function w(t) {
|
|
|
1499
1499
|
}
|
|
1500
1500
|
},
|
|
1501
1501
|
validator(n) {
|
|
1502
|
-
return q(n) || `Expected an object, but received: ${
|
|
1502
|
+
return q(n) || `Expected an object, but received: ${U(n)}`;
|
|
1503
1503
|
},
|
|
1504
1504
|
coercer(n) {
|
|
1505
1505
|
return q(n) ? {
|
|
@@ -1527,14 +1527,14 @@ function Jt(t, e) {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
},
|
|
1529
1529
|
validator(r) {
|
|
1530
|
-
return q(r) || `Expected an object, but received: ${
|
|
1530
|
+
return q(r) || `Expected an object, but received: ${U(r)}`;
|
|
1531
1531
|
}
|
|
1532
1532
|
});
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return
|
|
1534
|
+
function v() {
|
|
1535
|
+
return ct("string", (t) => typeof t == "string" || `Expected a string, but received: ${U(t)}`);
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function No(t) {
|
|
1538
1538
|
const e = Object.keys(t);
|
|
1539
1539
|
return new Z({
|
|
1540
1540
|
type: "type",
|
|
@@ -1545,11 +1545,11 @@ function $o(t) {
|
|
|
1545
1545
|
yield [n, r[n], t[n]];
|
|
1546
1546
|
},
|
|
1547
1547
|
validator(r) {
|
|
1548
|
-
return q(r) || `Expected an object, but received: ${
|
|
1548
|
+
return q(r) || `Expected an object, but received: ${U(r)}`;
|
|
1549
1549
|
}
|
|
1550
1550
|
});
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function F(t) {
|
|
1553
1553
|
const e = t.map((r) => r.type).join(" | ");
|
|
1554
1554
|
return new Z({
|
|
1555
1555
|
type: "union",
|
|
@@ -1560,7 +1560,7 @@ function B(t) {
|
|
|
1560
1560
|
coerce: !0
|
|
1561
1561
|
});
|
|
1562
1562
|
return !a;
|
|
1563
|
-
}) ||
|
|
1563
|
+
}) || Il()).coercer(r, n);
|
|
1564
1564
|
},
|
|
1565
1565
|
validator(r, n) {
|
|
1566
1566
|
const o = [];
|
|
@@ -1572,22 +1572,22 @@ function B(t) {
|
|
|
1572
1572
|
else
|
|
1573
1573
|
return [];
|
|
1574
1574
|
}
|
|
1575
|
-
return [`Expected the value to satisfy a union of \`${e}\`, but received: ${
|
|
1575
|
+
return [`Expected the value to satisfy a union of \`${e}\`, but received: ${U(r)}`, ...o];
|
|
1576
1576
|
}
|
|
1577
1577
|
});
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1580
|
-
return
|
|
1579
|
+
function Il() {
|
|
1580
|
+
return ct("unknown", () => !0);
|
|
1581
1581
|
}
|
|
1582
1582
|
const Er = w({
|
|
1583
|
-
package:
|
|
1584
|
-
version:
|
|
1585
|
-
name:
|
|
1586
|
-
exportName: m(
|
|
1587
|
-
destructuring: m(
|
|
1588
|
-
subName: m(
|
|
1589
|
-
main: m(
|
|
1590
|
-
cssPaths: m(P(
|
|
1583
|
+
package: v(),
|
|
1584
|
+
version: v(),
|
|
1585
|
+
name: v(),
|
|
1586
|
+
exportName: m(v()),
|
|
1587
|
+
destructuring: m(pt()),
|
|
1588
|
+
subName: m(v()),
|
|
1589
|
+
main: m(v()),
|
|
1590
|
+
cssPaths: m(P(v()))
|
|
1591
1591
|
}), Ll = P(Er), Bl = [
|
|
1592
1592
|
"CBlock",
|
|
1593
1593
|
"CContainer",
|
|
@@ -1598,100 +1598,100 @@ const Er = w({
|
|
|
1598
1598
|
"CText",
|
|
1599
1599
|
"CNativeTag"
|
|
1600
1600
|
];
|
|
1601
|
-
var
|
|
1602
|
-
const Fl = () =>
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1601
|
+
var G = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t))(G || {}), $r = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))($r || {}), Qe = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(Qe || {});
|
|
1602
|
+
const Fl = () => ct("normalObj", (t) => !k(t) || [G.SLOT, G.EXPRESSION, G.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Mt(t, Jt(v(), Nr)), !0)), Nr = F([
|
|
1603
|
+
v(),
|
|
1604
|
+
$o(),
|
|
1605
|
+
pt(),
|
|
1606
1606
|
w({
|
|
1607
|
-
type:
|
|
1607
|
+
type: B(G.SLOT),
|
|
1608
1608
|
renderType: qe([Qe.FUNC, Qe.COMP]),
|
|
1609
1609
|
// if renderType is Func, params will be useful
|
|
1610
|
-
params: m(P(
|
|
1610
|
+
params: m(P(v())),
|
|
1611
1611
|
// here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
|
|
1612
|
-
value:
|
|
1612
|
+
value: Ot(() => F([wt, P(wt)]))
|
|
1613
1613
|
}),
|
|
1614
1614
|
w({
|
|
1615
|
-
type:
|
|
1616
|
-
value:
|
|
1615
|
+
type: B(G.EXPRESSION),
|
|
1616
|
+
value: v()
|
|
1617
1617
|
}),
|
|
1618
1618
|
w({
|
|
1619
|
-
type:
|
|
1620
|
-
value:
|
|
1619
|
+
type: B(G.FUNCTION),
|
|
1620
|
+
value: v()
|
|
1621
1621
|
}),
|
|
1622
1622
|
Fl(),
|
|
1623
1623
|
P(
|
|
1624
|
-
|
|
1624
|
+
Ot(() => Nr)
|
|
1625
1625
|
)
|
|
1626
1626
|
]), mn = w({
|
|
1627
|
-
type:
|
|
1628
|
-
value:
|
|
1629
|
-
}),
|
|
1630
|
-
id: m(
|
|
1631
|
-
title: m(
|
|
1632
|
-
componentName:
|
|
1633
|
-
props: m(Jt(
|
|
1634
|
-
nodeName: m(
|
|
1635
|
-
state: m(Jt(
|
|
1636
|
-
children:
|
|
1627
|
+
type: B(G.EXPRESSION),
|
|
1628
|
+
value: v()
|
|
1629
|
+
}), wt = w({
|
|
1630
|
+
id: m(v()),
|
|
1631
|
+
title: m(v()),
|
|
1632
|
+
componentName: v(),
|
|
1633
|
+
props: m(Jt(v(), Nr)),
|
|
1634
|
+
nodeName: m(v()),
|
|
1635
|
+
state: m(Jt(v(), A())),
|
|
1636
|
+
children: Ot(() => m(P(F([v(), wt])))),
|
|
1637
1637
|
configure: m(A()),
|
|
1638
1638
|
css: m(A()),
|
|
1639
1639
|
style: m(A()),
|
|
1640
1640
|
classNames: m(P(A())),
|
|
1641
|
-
refId: m(
|
|
1641
|
+
refId: m(v()),
|
|
1642
1642
|
extra: m(Jt(A(), A())),
|
|
1643
|
-
condition: m(
|
|
1643
|
+
condition: m(F([pt(), mn])),
|
|
1644
1644
|
loop: m(
|
|
1645
1645
|
w({
|
|
1646
|
-
open:
|
|
1647
|
-
data:
|
|
1648
|
-
args: m(P(
|
|
1649
|
-
forName: m(
|
|
1650
|
-
forIndex: m(
|
|
1646
|
+
open: pt(),
|
|
1647
|
+
data: F([P(A()), mn]),
|
|
1648
|
+
args: m(P(v())),
|
|
1649
|
+
forName: m(v()),
|
|
1650
|
+
forIndex: m(v()),
|
|
1651
1651
|
key: m(A()),
|
|
1652
|
-
name: m(
|
|
1652
|
+
name: m(v())
|
|
1653
1653
|
})
|
|
1654
1654
|
),
|
|
1655
1655
|
methods: m(P(A()))
|
|
1656
|
-
}), de =
|
|
1657
|
-
|
|
1656
|
+
}), de = F([
|
|
1657
|
+
v(),
|
|
1658
1658
|
w({
|
|
1659
|
-
label:
|
|
1660
|
-
tip: m(
|
|
1659
|
+
label: v(),
|
|
1660
|
+
tip: m(v())
|
|
1661
1661
|
})
|
|
1662
1662
|
]), kl = w({
|
|
1663
|
-
type:
|
|
1663
|
+
type: B(
|
|
1664
1664
|
"shape"
|
|
1665
1665
|
/* SHAPE */
|
|
1666
1666
|
),
|
|
1667
1667
|
value: P(
|
|
1668
1668
|
w({
|
|
1669
|
-
name:
|
|
1669
|
+
name: v(),
|
|
1670
1670
|
title: de,
|
|
1671
|
-
valueType:
|
|
1671
|
+
valueType: Ot(() => je)
|
|
1672
1672
|
})
|
|
1673
1673
|
)
|
|
1674
1674
|
}), Ul = w({
|
|
1675
|
-
type:
|
|
1675
|
+
type: B(
|
|
1676
1676
|
"enums"
|
|
1677
1677
|
/* ENUMS */
|
|
1678
1678
|
),
|
|
1679
|
-
value: P(
|
|
1679
|
+
value: P(v())
|
|
1680
1680
|
});
|
|
1681
1681
|
w({
|
|
1682
|
-
type:
|
|
1682
|
+
type: B(
|
|
1683
1683
|
"array"
|
|
1684
1684
|
/* ARRAY */
|
|
1685
1685
|
),
|
|
1686
|
-
value:
|
|
1686
|
+
value: Ot(() => je)
|
|
1687
1687
|
});
|
|
1688
|
-
const
|
|
1689
|
-
type:
|
|
1688
|
+
const Gl = w({
|
|
1689
|
+
type: B(
|
|
1690
1690
|
"array"
|
|
1691
1691
|
/* ARRAY */
|
|
1692
1692
|
),
|
|
1693
|
-
value:
|
|
1694
|
-
}), je =
|
|
1693
|
+
value: Ot(() => P(je))
|
|
1694
|
+
}), je = F([
|
|
1695
1695
|
qe([
|
|
1696
1696
|
"array",
|
|
1697
1697
|
"boolean",
|
|
@@ -1708,78 +1708,78 @@ const Vl = w({
|
|
|
1708
1708
|
]),
|
|
1709
1709
|
kl,
|
|
1710
1710
|
Ul,
|
|
1711
|
-
|
|
1712
|
-
]),
|
|
1713
|
-
|
|
1711
|
+
Gl
|
|
1712
|
+
]), Vl = F([
|
|
1713
|
+
v(),
|
|
1714
1714
|
w({
|
|
1715
|
-
componentName:
|
|
1715
|
+
componentName: v(),
|
|
1716
1716
|
props: m(A()),
|
|
1717
1717
|
/** 用于标记当前数据的初始值,如添加一个数组元素可以使用该值填充 */
|
|
1718
1718
|
initialValue: m(A()),
|
|
1719
1719
|
component: m(A()),
|
|
1720
|
-
hiddenLabel: m(
|
|
1720
|
+
hiddenLabel: m(pt())
|
|
1721
1721
|
})
|
|
1722
1722
|
]), Pe = w({
|
|
1723
|
-
name:
|
|
1723
|
+
name: v(),
|
|
1724
1724
|
title: de,
|
|
1725
1725
|
// 描述 name 对应值的类型
|
|
1726
1726
|
valueType: je,
|
|
1727
|
-
description: m(
|
|
1727
|
+
description: m(v()),
|
|
1728
1728
|
defaultValue: A(),
|
|
1729
1729
|
//用于产生 valueType 类型的值
|
|
1730
|
-
setters: m(P(
|
|
1730
|
+
setters: m(P(Vl)),
|
|
1731
1731
|
condition: m(Eo())
|
|
1732
1732
|
});
|
|
1733
|
-
|
|
1733
|
+
F([v(), Eo()]);
|
|
1734
1734
|
var Ye = /* @__PURE__ */ ((t) => (t.SINGLE = "single", t.GROUP = "group", t))(Ye || {});
|
|
1735
|
-
|
|
1736
|
-
|
|
1735
|
+
F([
|
|
1736
|
+
v(),
|
|
1737
1737
|
w({
|
|
1738
|
-
name:
|
|
1739
|
-
describe: m(
|
|
1738
|
+
name: v(),
|
|
1739
|
+
describe: m(v()),
|
|
1740
1740
|
params: m(
|
|
1741
1741
|
w({
|
|
1742
|
-
name:
|
|
1743
|
-
description:
|
|
1742
|
+
name: v(),
|
|
1743
|
+
description: v()
|
|
1744
1744
|
})
|
|
1745
1745
|
),
|
|
1746
|
-
template:
|
|
1746
|
+
template: v()
|
|
1747
1747
|
})
|
|
1748
1748
|
]);
|
|
1749
1749
|
const zl = w({
|
|
1750
|
-
id: m(
|
|
1751
|
-
title:
|
|
1752
|
-
snapshot:
|
|
1753
|
-
snapshotText: m(
|
|
1754
|
-
description: m(
|
|
1750
|
+
id: m(v()),
|
|
1751
|
+
title: v(),
|
|
1752
|
+
snapshot: F([v(), A()]),
|
|
1753
|
+
snapshotText: m(v()),
|
|
1754
|
+
description: m(v()),
|
|
1755
1755
|
// 组件分类,用于搜索
|
|
1756
|
-
tags: m(P(
|
|
1756
|
+
tags: m(P(v())),
|
|
1757
1757
|
// 分 tab 面板
|
|
1758
|
-
groupName: m(
|
|
1758
|
+
groupName: m(v()),
|
|
1759
1759
|
// 分类
|
|
1760
|
-
category: m(
|
|
1761
|
-
schema: Cr(Co(
|
|
1760
|
+
category: m(v()),
|
|
1761
|
+
schema: Cr(Co(wt, ["id"]), w({ componentName: m(v()) }))
|
|
1762
1762
|
}), Hl = w({
|
|
1763
|
-
componentName:
|
|
1764
|
-
title:
|
|
1765
|
-
screenshot: m(
|
|
1766
|
-
icon: m(
|
|
1763
|
+
componentName: v(),
|
|
1764
|
+
title: v(),
|
|
1765
|
+
screenshot: m(v()),
|
|
1766
|
+
icon: m(v()),
|
|
1767
1767
|
// 组件分类,用于搜索
|
|
1768
|
-
tags: m(P(
|
|
1768
|
+
tags: m(P(v())),
|
|
1769
1769
|
// 分 tab 面板
|
|
1770
|
-
groupName: m(
|
|
1770
|
+
groupName: m(v()),
|
|
1771
1771
|
// 分类
|
|
1772
|
-
category: m(
|
|
1772
|
+
category: m(v()),
|
|
1773
1773
|
// 排序
|
|
1774
|
-
priority: m(
|
|
1774
|
+
priority: m($o()),
|
|
1775
1775
|
npm: m(Er),
|
|
1776
1776
|
snippets: P(zl),
|
|
1777
1777
|
props: P(
|
|
1778
|
-
|
|
1778
|
+
F([
|
|
1779
1779
|
Pe,
|
|
1780
1780
|
w({
|
|
1781
1781
|
title: m(de),
|
|
1782
|
-
type:
|
|
1782
|
+
type: B(
|
|
1783
1783
|
"single"
|
|
1784
1784
|
/* SINGLE */
|
|
1785
1785
|
),
|
|
@@ -1787,7 +1787,7 @@ const zl = w({
|
|
|
1787
1787
|
}),
|
|
1788
1788
|
w({
|
|
1789
1789
|
title: m(de),
|
|
1790
|
-
type:
|
|
1790
|
+
type: B(
|
|
1791
1791
|
"group"
|
|
1792
1792
|
/* GROUP */
|
|
1793
1793
|
),
|
|
@@ -1798,19 +1798,19 @@ const zl = w({
|
|
|
1798
1798
|
fixedProps: m(A()),
|
|
1799
1799
|
// 可以拖入组件
|
|
1800
1800
|
isContainer: m(
|
|
1801
|
-
|
|
1802
|
-
|
|
1801
|
+
F([
|
|
1802
|
+
pt(),
|
|
1803
1803
|
w({
|
|
1804
|
-
placeholder:
|
|
1805
|
-
width:
|
|
1806
|
-
height:
|
|
1804
|
+
placeholder: v(),
|
|
1805
|
+
width: v(),
|
|
1806
|
+
height: v()
|
|
1807
1807
|
})
|
|
1808
1808
|
])
|
|
1809
1809
|
),
|
|
1810
1810
|
disableEditorDragDom: m(A()),
|
|
1811
1811
|
// 如果是布局组件,可以考虑将拖拽控制权转移 or 实现 resize
|
|
1812
|
-
isLayout: m(
|
|
1813
|
-
rootSelector: m(
|
|
1812
|
+
isLayout: m(pt()),
|
|
1813
|
+
rootSelector: m(v()),
|
|
1814
1814
|
// selectionToolBarView: optional(func()),
|
|
1815
1815
|
advanceCustom: m(A()),
|
|
1816
1816
|
// 扩展配置
|
|
@@ -1844,14 +1844,14 @@ const zl = w({
|
|
|
1844
1844
|
}
|
|
1845
1845
|
})({ data: e, message: r, throwError: n });
|
|
1846
1846
|
};
|
|
1847
|
-
var
|
|
1847
|
+
var Pt = /* @__PURE__ */ ((t) => (t.ROOT_CONTAINER = "RootContainer", t))(Pt || {});
|
|
1848
1848
|
const Wl = w({
|
|
1849
|
-
type:
|
|
1850
|
-
value:
|
|
1849
|
+
type: B(G.FUNCTION),
|
|
1850
|
+
value: v()
|
|
1851
1851
|
}), ql = Cr(
|
|
1852
|
-
Co(
|
|
1852
|
+
Co(wt, ["componentName"]),
|
|
1853
1853
|
w({
|
|
1854
|
-
componentName:
|
|
1854
|
+
componentName: B(
|
|
1855
1855
|
"RootContainer"
|
|
1856
1856
|
/* ROOT_CONTAINER */
|
|
1857
1857
|
)
|
|
@@ -1878,23 +1878,23 @@ const ne = Ql(), Yl = (t, e) => {
|
|
|
1878
1878
|
...t,
|
|
1879
1879
|
value: []
|
|
1880
1880
|
}, n = t.value;
|
|
1881
|
-
let o = new
|
|
1882
|
-
return e && (o = e.materialsMode || new
|
|
1881
|
+
let o = new dt([]);
|
|
1882
|
+
return e && (o = e.materialsMode || new dt([])), n && (R(n) ? r.value = n.map(
|
|
1883
1883
|
(a) => new M(a, {
|
|
1884
1884
|
parent: e,
|
|
1885
1885
|
materials: o
|
|
1886
1886
|
})
|
|
1887
|
-
) :
|
|
1887
|
+
) : k(n) && r.value.push(
|
|
1888
1888
|
new M(n, {
|
|
1889
1889
|
parent: e,
|
|
1890
1890
|
materials: o
|
|
1891
1891
|
})
|
|
1892
1892
|
)), r;
|
|
1893
1893
|
};
|
|
1894
|
-
class
|
|
1894
|
+
class Ct {
|
|
1895
1895
|
constructor(e, r) {
|
|
1896
1896
|
_(this, "nodeType", "SLOT"), _(this, "rawData"), _(this, "parent"), _(this, "emitter", ne), _(this, "data"), _(this, "id"), _(this, "materialsMode"), this.parent = (r == null ? void 0 : r.parent) || null, this.rawData = e;
|
|
1897
|
-
const n = (r == null ? void 0 : r.materials) || new
|
|
1897
|
+
const n = (r == null ? void 0 : r.materials) || new dt([]);
|
|
1898
1898
|
this.materialsMode = n, this.id = tt(), this.data = Yl(e, this);
|
|
1899
1899
|
}
|
|
1900
1900
|
get value() {
|
|
@@ -1904,7 +1904,7 @@ class wt {
|
|
|
1904
1904
|
const r = this.data, n = (o) => {
|
|
1905
1905
|
if (o instanceof M)
|
|
1906
1906
|
return o.export(e);
|
|
1907
|
-
if (
|
|
1907
|
+
if (k(o)) {
|
|
1908
1908
|
const a = {};
|
|
1909
1909
|
return Object.keys(o || {}).forEach((s) => {
|
|
1910
1910
|
a[s] = n(o[s]);
|
|
@@ -1923,18 +1923,18 @@ const xo = (t) => {
|
|
|
1923
1923
|
}), e;
|
|
1924
1924
|
}, Xe = (t, e, r) => {
|
|
1925
1925
|
if (t.type)
|
|
1926
|
-
return t.type ===
|
|
1927
|
-
if (
|
|
1926
|
+
return t.type === G.SLOT ? new Ct(t, { parent: e, materials: r }) : t;
|
|
1927
|
+
if (k(t)) {
|
|
1928
1928
|
const n = {};
|
|
1929
1929
|
return Object.keys(t).forEach((o) => {
|
|
1930
1930
|
n[o] = Ke(t[o], e, r);
|
|
1931
1931
|
}), n;
|
|
1932
1932
|
} else return Array.isArray(t) ? t.map((n) => Xe(n, e, r)) : t;
|
|
1933
|
-
}, Ke = (t, e, r) =>
|
|
1934
|
-
class
|
|
1933
|
+
}, Ke = (t, e, r) => k(t) ? Xe(t, e, r) : R(t) ? t.map((n) => Xe(n, e, r)) : t;
|
|
1934
|
+
class st {
|
|
1935
1935
|
constructor(e, r, n) {
|
|
1936
1936
|
_(this, "nodeType", "PROP"), _(this, "rawData"), _(this, "parent"), _(this, "emitter", ne), _(this, "data"), _(this, "name"), _(this, "materialsMode");
|
|
1937
|
-
const o = (n == null ? void 0 : n.materials) || new
|
|
1937
|
+
const o = (n == null ? void 0 : n.materials) || new dt([]);
|
|
1938
1938
|
this.materialsMode = o, this.parent = n == null ? void 0 : n.parent, this.rawData = r, this.name = e, this.data = Ke(r, this, o);
|
|
1939
1939
|
}
|
|
1940
1940
|
// TODO:
|
|
@@ -1954,7 +1954,7 @@ class it {
|
|
|
1954
1954
|
value: this.data,
|
|
1955
1955
|
preValue: r,
|
|
1956
1956
|
node: this
|
|
1957
|
-
}), this.parent && !(this.parent instanceof
|
|
1957
|
+
}), this.parent && !(this.parent instanceof Ct) && this.emitter.emit("onNodeChange", {
|
|
1958
1958
|
value: this.parent.value,
|
|
1959
1959
|
preValue: this.parent.value,
|
|
1960
1960
|
node: this.parent
|
|
@@ -1970,11 +1970,11 @@ class it {
|
|
|
1970
1970
|
}
|
|
1971
1971
|
export(e) {
|
|
1972
1972
|
const r = this.data, n = (o) => {
|
|
1973
|
-
if (o instanceof
|
|
1973
|
+
if (o instanceof st || o instanceof Ct || o instanceof M)
|
|
1974
1974
|
return o.export(e);
|
|
1975
1975
|
if (R(o))
|
|
1976
1976
|
return o.map((a) => n(a));
|
|
1977
|
-
if (
|
|
1977
|
+
if (k(o)) {
|
|
1978
1978
|
const a = {};
|
|
1979
1979
|
return Object.keys(o || {}).forEach((s) => {
|
|
1980
1980
|
a[s] = n(o[s]);
|
|
@@ -1990,10 +1990,10 @@ const Xl = (t) => {
|
|
|
1990
1990
|
return !0;
|
|
1991
1991
|
xr({
|
|
1992
1992
|
data: t,
|
|
1993
|
-
dataStruct:
|
|
1993
|
+
dataStruct: wt,
|
|
1994
1994
|
throwError: !1
|
|
1995
1995
|
});
|
|
1996
|
-
},
|
|
1996
|
+
}, vn = (t, e, r = new dt([])) => {
|
|
1997
1997
|
if (typeof t == "string")
|
|
1998
1998
|
return t;
|
|
1999
1999
|
const n = {
|
|
@@ -2010,18 +2010,18 @@ const Xl = (t) => {
|
|
|
2010
2010
|
return o.length && o.forEach((a) => {
|
|
2011
2011
|
var s;
|
|
2012
2012
|
const i = (s = t.props) == null ? void 0 : s[a];
|
|
2013
|
-
if (i instanceof
|
|
2013
|
+
if (i instanceof st) {
|
|
2014
2014
|
n.props[a] = i;
|
|
2015
2015
|
return;
|
|
2016
2016
|
}
|
|
2017
|
-
n.props[a] = new
|
|
2017
|
+
n.props[a] = new st(a, i || "", {
|
|
2018
2018
|
parent: e,
|
|
2019
2019
|
materials: r
|
|
2020
2020
|
});
|
|
2021
2021
|
}), t.children && (Array.isArray(t.children) ? n.children = t.children.map((a) => {
|
|
2022
2022
|
if (a instanceof M)
|
|
2023
2023
|
return a;
|
|
2024
|
-
if (
|
|
2024
|
+
if (k(a)) {
|
|
2025
2025
|
const s = a;
|
|
2026
2026
|
return new M(s, {
|
|
2027
2027
|
parent: e,
|
|
@@ -2039,8 +2039,8 @@ const Xl = (t) => {
|
|
|
2039
2039
|
class M {
|
|
2040
2040
|
constructor(e, r) {
|
|
2041
2041
|
_(this, "nodeType", "NODE"), _(this, "rawData"), _(this, "data"), _(this, "emitter", ne), _(this, "parent"), _(this, "materialsModel"), _(this, "listenerHandle"), _(this, "onChangeCbQueue"), this.rawData = JSON.parse(JSON.stringify(e)), Xl(e);
|
|
2042
|
-
const n = (r == null ? void 0 : r.materials) || new
|
|
2043
|
-
this.parent = (r == null ? void 0 : r.parent) || null, this.materialsModel = n, this.data =
|
|
2042
|
+
const n = (r == null ? void 0 : r.materials) || new dt([]);
|
|
2043
|
+
this.parent = (r == null ? void 0 : r.parent) || null, this.materialsModel = n, this.data = vn(e, this, n), this.listenerHandle = [], this.onChangeCbQueue = [], this.registerListener();
|
|
2044
2044
|
}
|
|
2045
2045
|
registerListener() {
|
|
2046
2046
|
const e = (r) => {
|
|
@@ -2079,7 +2079,7 @@ class M {
|
|
|
2079
2079
|
...this.data,
|
|
2080
2080
|
...e
|
|
2081
2081
|
};
|
|
2082
|
-
return this.data =
|
|
2082
|
+
return this.data = vn(r, this), r;
|
|
2083
2083
|
}
|
|
2084
2084
|
updateValue(e) {
|
|
2085
2085
|
const r = this.data, n = this.updateWithPlainObj(e);
|
|
@@ -2144,12 +2144,12 @@ class M {
|
|
|
2144
2144
|
return e === "design" && delete l.id, l = Tr(l), l;
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
|
-
const
|
|
2147
|
+
const gn = (t, e, r) => {
|
|
2148
2148
|
const n = {
|
|
2149
2149
|
...t,
|
|
2150
2150
|
id: tt(),
|
|
2151
2151
|
props: {},
|
|
2152
|
-
componentName:
|
|
2152
|
+
componentName: Pt.ROOT_CONTAINER,
|
|
2153
2153
|
children: [],
|
|
2154
2154
|
methods: t.methods || [],
|
|
2155
2155
|
configure: So(t.configure || {}, {
|
|
@@ -2158,12 +2158,12 @@ const vn = (t, e, r) => {
|
|
|
2158
2158
|
})
|
|
2159
2159
|
};
|
|
2160
2160
|
let o = [];
|
|
2161
|
-
R(t.children) ? o = t.children.map((s) => s instanceof M ? s :
|
|
2161
|
+
R(t.children) ? o = t.children.map((s) => s instanceof M ? s : k(s) ? new M(s, { parent: e, materials: r }) : s) : t.children instanceof M ? o.push(t.children) : t.children && k(t.children) && o.push(new M(t.children, { parent: e, materials: r }));
|
|
2162
2162
|
const a = Object.keys(t.props || {});
|
|
2163
2163
|
return a.length && a.forEach((s) => {
|
|
2164
2164
|
var i;
|
|
2165
2165
|
const c = (i = t.props) == null ? void 0 : i[s];
|
|
2166
|
-
c instanceof
|
|
2166
|
+
c instanceof st ? n.props[s] = c : n.props[s] = new st(s, c || "", {
|
|
2167
2167
|
parent: e,
|
|
2168
2168
|
materials: r
|
|
2169
2169
|
});
|
|
@@ -2171,7 +2171,7 @@ const vn = (t, e, r) => {
|
|
|
2171
2171
|
};
|
|
2172
2172
|
class Zt {
|
|
2173
2173
|
constructor(e, { parent: r, materials: n }) {
|
|
2174
|
-
_(this, "rawData"), _(this, "data"), _(this, "nodeType",
|
|
2174
|
+
_(this, "rawData"), _(this, "data"), _(this, "nodeType", Pt.ROOT_CONTAINER), _(this, "emitter", ne), _(this, "materialsModel"), _(this, "listenerHandle"), _(this, "onChangeCbQueue"), _(this, "parent"), this.materialsModel = n, this.rawData = JSON.parse(JSON.stringify(e)), this.data = gn(e, this, n), this.listenerHandle = [], this.onChangeCbQueue = [], this.registerListener(), this.parent = r;
|
|
2175
2175
|
}
|
|
2176
2176
|
registerListener() {
|
|
2177
2177
|
const e = (r) => {
|
|
@@ -2205,7 +2205,7 @@ class Zt {
|
|
|
2205
2205
|
...this.data,
|
|
2206
2206
|
...e
|
|
2207
2207
|
};
|
|
2208
|
-
return this.data =
|
|
2208
|
+
return this.data = gn(r, this, this.materialsModel), r;
|
|
2209
2209
|
}
|
|
2210
2210
|
updateValue(e) {
|
|
2211
2211
|
const r = this.data;
|
|
@@ -2230,7 +2230,7 @@ class Zt {
|
|
|
2230
2230
|
isContainer() {
|
|
2231
2231
|
return this.getMaterialConfig("isContainer");
|
|
2232
2232
|
}
|
|
2233
|
-
export(e =
|
|
2233
|
+
export(e = $r.SAVE) {
|
|
2234
2234
|
var r;
|
|
2235
2235
|
const n = this.data, o = {};
|
|
2236
2236
|
Object.keys(n.props || {}).forEach((c) => {
|
|
@@ -2268,7 +2268,7 @@ class Zt {
|
|
|
2268
2268
|
});
|
|
2269
2269
|
}
|
|
2270
2270
|
}
|
|
2271
|
-
const
|
|
2271
|
+
const lt = (t) => (t == null ? void 0 : t.type) === G.EXPRESSION, Kl = (t) => (t == null ? void 0 : t.type) === G.FUNCTION, tt = () => Math.random().toString(32).slice(3, 9), Zl = (t) => (t == null ? void 0 : t.nodeType) === "NODE", Re = (t) => (t == null ? void 0 : t.nodeType) === "PROP", tf = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Tr = (t) => Ol(t, (e) => k(e) ? !Object.keys(e).length : R(e) ? !e.length : !e);
|
|
2272
2272
|
function ef(t, e) {
|
|
2273
2273
|
const r = [t];
|
|
2274
2274
|
for (; r.length; ) {
|
|
@@ -2280,11 +2280,11 @@ function ef(t, e) {
|
|
|
2280
2280
|
r.push(i);
|
|
2281
2281
|
return;
|
|
2282
2282
|
}
|
|
2283
|
-
if (i instanceof
|
|
2283
|
+
if (i instanceof Ct && a(i.value.value), i instanceof st) {
|
|
2284
2284
|
a(i.value);
|
|
2285
2285
|
return;
|
|
2286
2286
|
}
|
|
2287
|
-
if (
|
|
2287
|
+
if (k(i)) {
|
|
2288
2288
|
const c = i;
|
|
2289
2289
|
Object.keys(c).forEach((u) => {
|
|
2290
2290
|
a(c[u]);
|
|
@@ -2344,7 +2344,7 @@ class nf {
|
|
|
2344
2344
|
return this.data.snippets.find((r) => r.id === e);
|
|
2345
2345
|
}
|
|
2346
2346
|
}
|
|
2347
|
-
const
|
|
2347
|
+
const De = (t) => {
|
|
2348
2348
|
if (!R(t))
|
|
2349
2349
|
throw new Error("Materials must be a array");
|
|
2350
2350
|
return t.map((e) => new nf(e));
|
|
@@ -2357,12 +2357,12 @@ const Ie = (t) => {
|
|
|
2357
2357
|
});
|
|
2358
2358
|
});
|
|
2359
2359
|
};
|
|
2360
|
-
class
|
|
2360
|
+
class dt {
|
|
2361
2361
|
constructor(e) {
|
|
2362
|
-
_(this, "rawData"), _(this, "data"), _(this, "usedMaterials", []), this.rawData = e, of(e), this.data =
|
|
2362
|
+
_(this, "rawData"), _(this, "data"), _(this, "usedMaterials", []), this.rawData = e, of(e), this.data = De(e);
|
|
2363
2363
|
}
|
|
2364
2364
|
addMaterials(e) {
|
|
2365
|
-
const r =
|
|
2365
|
+
const r = De(e), n = [], o = this.data.map((s) => {
|
|
2366
2366
|
const i = r.findIndex((c) => c.componentName === s.componentName);
|
|
2367
2367
|
return i >= 0 ? (n.push(i), r[i]) : s;
|
|
2368
2368
|
}), a = r.filter((s, i) => !n.includes(i));
|
|
@@ -2370,7 +2370,7 @@ class pt {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
// 使用新的物料整个替换现有的物料列表
|
|
2372
2372
|
replaceMaterials(e) {
|
|
2373
|
-
const r =
|
|
2373
|
+
const r = De(e);
|
|
2374
2374
|
this.data = [...r];
|
|
2375
2375
|
}
|
|
2376
2376
|
removeMaterial(e) {
|
|
@@ -2430,13 +2430,13 @@ class pt {
|
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
2432
|
const af = w({
|
|
2433
|
-
version:
|
|
2434
|
-
name:
|
|
2435
|
-
css: m(
|
|
2436
|
-
renderType: m(
|
|
2433
|
+
version: v(),
|
|
2434
|
+
name: v(),
|
|
2435
|
+
css: m(v()),
|
|
2436
|
+
renderType: m(F([B(
|
|
2437
2437
|
"COMPONENT"
|
|
2438
2438
|
/* COMPONENT */
|
|
2439
|
-
),
|
|
2439
|
+
), B(
|
|
2440
2440
|
"PAGE"
|
|
2441
2441
|
/* PAGE */
|
|
2442
2442
|
)])),
|
|
@@ -2447,7 +2447,7 @@ const af = w({
|
|
|
2447
2447
|
componentsMeta: P(
|
|
2448
2448
|
Cr(
|
|
2449
2449
|
w({
|
|
2450
|
-
componentName:
|
|
2450
|
+
componentName: v()
|
|
2451
2451
|
}),
|
|
2452
2452
|
Er
|
|
2453
2453
|
)
|
|
@@ -2459,7 +2459,7 @@ const af = w({
|
|
|
2459
2459
|
data: t,
|
|
2460
2460
|
dataStruct: af,
|
|
2461
2461
|
throwError: !1
|
|
2462
|
-
}), t),
|
|
2462
|
+
}), t), Ie = (t, e, r) => ({
|
|
2463
2463
|
...t,
|
|
2464
2464
|
componentsTree: new Zt(t.componentsTree, {
|
|
2465
2465
|
parent: e,
|
|
@@ -2468,11 +2468,11 @@ const af = w({
|
|
|
2468
2468
|
});
|
|
2469
2469
|
class he {
|
|
2470
2470
|
constructor(e, r) {
|
|
2471
|
-
_(this, "nodeType", "PAGE"), _(this, "rawData"), _(this, "emitter", ne), _(this, "data"), _(this, "parent"), _(this, "materialsModel"), _(this, "assetPackagesList"), To(e), this.rawData = JSON.parse(JSON.stringify(e)), this.materialsModel = new
|
|
2471
|
+
_(this, "nodeType", "PAGE"), _(this, "rawData"), _(this, "emitter", ne), _(this, "data"), _(this, "parent"), _(this, "materialsModel"), _(this, "assetPackagesList"), To(e), this.rawData = JSON.parse(JSON.stringify(e)), this.materialsModel = new dt((r == null ? void 0 : r.materials) || []), this.data = Ie(e, this, this.materialsModel), this.assetPackagesList = [...(r == null ? void 0 : r.assetPackagesList) || [], ...this.data.assets || []];
|
|
2472
2472
|
}
|
|
2473
2473
|
updatePage(e) {
|
|
2474
2474
|
const r = this.data;
|
|
2475
|
-
this.rawData = JSON.parse(JSON.stringify(e)), this.data =
|
|
2475
|
+
this.rawData = JSON.parse(JSON.stringify(e)), this.data = Ie(e, this, this.materialsModel), this.emitter.emit("onPageChange", {
|
|
2476
2476
|
value: this.data,
|
|
2477
2477
|
preValue: r,
|
|
2478
2478
|
node: this
|
|
@@ -2480,7 +2480,7 @@ class he {
|
|
|
2480
2480
|
}
|
|
2481
2481
|
reloadPage(e) {
|
|
2482
2482
|
const r = this.data;
|
|
2483
|
-
e && (this.rawData = JSON.parse(JSON.stringify(e)), this.data =
|
|
2483
|
+
e && (this.rawData = JSON.parse(JSON.stringify(e)), this.data = Ie(e, this, this.materialsModel)), this.emitter.emit("onReloadPage", {
|
|
2484
2484
|
value: this.data,
|
|
2485
2485
|
preValue: r,
|
|
2486
2486
|
node: this
|
|
@@ -2501,9 +2501,9 @@ class he {
|
|
|
2501
2501
|
const a = r.parent;
|
|
2502
2502
|
if (a === null && r instanceof Zt)
|
|
2503
2503
|
return console.warn("Not found parent node"), !1;
|
|
2504
|
-
if (a instanceof
|
|
2504
|
+
if (a instanceof st)
|
|
2505
2505
|
return console.warn("CProp can not add node"), !1;
|
|
2506
|
-
if (a instanceof
|
|
2506
|
+
if (a instanceof Ct) {
|
|
2507
2507
|
const i = a.value.value, c = i.findIndex((u) => u === r) ?? -1;
|
|
2508
2508
|
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;
|
|
2509
2509
|
}
|
|
@@ -2516,7 +2516,7 @@ class he {
|
|
|
2516
2516
|
return r.value.children.unshift(e), e.parent = r, r.updateValue(), !0;
|
|
2517
2517
|
if (n === "CHILD_END")
|
|
2518
2518
|
return r.value.children.push(e), e.parent = r, r.updateValue(), !0;
|
|
2519
|
-
if (
|
|
2519
|
+
if (k(n)) {
|
|
2520
2520
|
const a = n;
|
|
2521
2521
|
if (a.type === "CHILD") {
|
|
2522
2522
|
const s = a.pos, i = a.index || 0;
|
|
@@ -2564,7 +2564,7 @@ class he {
|
|
|
2564
2564
|
const n = e.parent;
|
|
2565
2565
|
if (!n)
|
|
2566
2566
|
throw new Error("parent node is null or undefined, pls check it");
|
|
2567
|
-
if (n instanceof
|
|
2567
|
+
if (n instanceof Ct) {
|
|
2568
2568
|
const o = n.value.value, a = o.findIndex((i) => i === e), s = o[a];
|
|
2569
2569
|
return o.splice(a, 1), (r = n.parent) == null || r.updateValue(), s;
|
|
2570
2570
|
}
|
|
@@ -2578,7 +2578,7 @@ class he {
|
|
|
2578
2578
|
if (r)
|
|
2579
2579
|
return this.deleteNode(r);
|
|
2580
2580
|
}
|
|
2581
|
-
export(e =
|
|
2581
|
+
export(e = $r.SAVE) {
|
|
2582
2582
|
var r;
|
|
2583
2583
|
const n = this.data.componentsTree.export(e), o = this.assetPackagesList, a = [], s = this.materialsModel.usedMaterials.map((c) => {
|
|
2584
2584
|
const u = o.find((l) => {
|
|
@@ -2601,56 +2601,56 @@ class he {
|
|
|
2601
2601
|
return (r = this.data.thirdLibs) == null || r.forEach((c) => {
|
|
2602
2602
|
const u = o.find((l) => c.package === l.package);
|
|
2603
2603
|
u && a.push(u);
|
|
2604
|
-
}), i.assets =
|
|
2604
|
+
}), i.assets = Nl(a, (c) => c.package), i = jo(i, ["id"]), JSON.parse(JSON.stringify(i));
|
|
2605
2605
|
}
|
|
2606
2606
|
getRootNode() {
|
|
2607
2607
|
return this.data.componentsTree;
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
|
-
|
|
2611
|
-
var Ao = typeof global == "object" && global && global.Object === Object && global, sf = typeof self == "object" && self && self.Object === Object && self,
|
|
2610
|
+
Pt.ROOT_CONTAINER;
|
|
2611
|
+
var Ao = typeof global == "object" && global && global.Object === Object && global, sf = typeof self == "object" && self && self.Object === Object && self, Rt = Ao || sf || Function("return this")(), Et = Rt.Symbol, Mo = Object.prototype, cf = Mo.hasOwnProperty, uf = Mo.toString, Gt = Et ? Et.toStringTag : void 0;
|
|
2612
2612
|
function lf(t) {
|
|
2613
|
-
var e = cf.call(t,
|
|
2613
|
+
var e = cf.call(t, Gt), r = t[Gt];
|
|
2614
2614
|
try {
|
|
2615
|
-
t[
|
|
2615
|
+
t[Gt] = void 0;
|
|
2616
2616
|
var n = !0;
|
|
2617
2617
|
} catch {
|
|
2618
2618
|
}
|
|
2619
2619
|
var o = uf.call(t);
|
|
2620
|
-
return n && (e ? t[
|
|
2620
|
+
return n && (e ? t[Gt] = r : delete t[Gt]), o;
|
|
2621
2621
|
}
|
|
2622
2622
|
var ff = Object.prototype, pf = ff.toString;
|
|
2623
2623
|
function df(t) {
|
|
2624
2624
|
return pf.call(t);
|
|
2625
2625
|
}
|
|
2626
|
-
var hf = "[object Null]", mf = "[object Undefined]", yn =
|
|
2626
|
+
var hf = "[object Null]", mf = "[object Undefined]", yn = Et ? Et.toStringTag : void 0;
|
|
2627
2627
|
function oe(t) {
|
|
2628
2628
|
return t == null ? t === void 0 ? mf : hf : yn && yn in Object(t) ? lf(t) : df(t);
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2630
|
+
function Dt(t) {
|
|
2631
2631
|
return t != null && typeof t == "object";
|
|
2632
2632
|
}
|
|
2633
|
-
var
|
|
2634
|
-
function
|
|
2635
|
-
return typeof t == "symbol" ||
|
|
2633
|
+
var vf = "[object Symbol]";
|
|
2634
|
+
function gf(t) {
|
|
2635
|
+
return typeof t == "symbol" || Dt(t) && oe(t) == vf;
|
|
2636
2636
|
}
|
|
2637
2637
|
function yf(t, e) {
|
|
2638
2638
|
for (var r = -1, n = t == null ? 0 : t.length, o = Array(n); ++r < n; )
|
|
2639
2639
|
o[r] = e(t[r], r, t);
|
|
2640
2640
|
return o;
|
|
2641
2641
|
}
|
|
2642
|
-
var
|
|
2642
|
+
var $t = Array.isArray, bf = 1 / 0, bn = Et ? Et.prototype : void 0, _n = bn ? bn.toString : void 0;
|
|
2643
2643
|
function Po(t) {
|
|
2644
2644
|
if (typeof t == "string")
|
|
2645
2645
|
return t;
|
|
2646
|
-
if (
|
|
2646
|
+
if ($t(t))
|
|
2647
2647
|
return yf(t, Po) + "";
|
|
2648
|
-
if (
|
|
2648
|
+
if (gf(t))
|
|
2649
2649
|
return _n ? _n.call(t) : "";
|
|
2650
2650
|
var e = t + "";
|
|
2651
2651
|
return e == "0" && 1 / t == -bf ? "-0" : e;
|
|
2652
2652
|
}
|
|
2653
|
-
function
|
|
2653
|
+
function yt(t) {
|
|
2654
2654
|
var e = typeof t;
|
|
2655
2655
|
return t != null && (e == "object" || e == "function");
|
|
2656
2656
|
}
|
|
@@ -2659,12 +2659,12 @@ function Ro(t) {
|
|
|
2659
2659
|
}
|
|
2660
2660
|
var _f = "[object AsyncFunction]", Sf = "[object Function]", jf = "[object GeneratorFunction]", Of = "[object Proxy]";
|
|
2661
2661
|
function Mr(t) {
|
|
2662
|
-
if (!
|
|
2662
|
+
if (!yt(t))
|
|
2663
2663
|
return !1;
|
|
2664
2664
|
var e = oe(t);
|
|
2665
2665
|
return e == Sf || e == jf || e == _f || e == Of;
|
|
2666
2666
|
}
|
|
2667
|
-
var Le =
|
|
2667
|
+
var Le = Rt["__core-js_shared__"], Sn = function() {
|
|
2668
2668
|
var t = /[^.]+$/.exec(Le && Le.keys && Le.keys.IE_PROTO || "");
|
|
2669
2669
|
return t ? "Symbol(src)_1." + t : "";
|
|
2670
2670
|
}();
|
|
@@ -2672,7 +2672,7 @@ function wf(t) {
|
|
|
2672
2672
|
return !!Sn && Sn in t;
|
|
2673
2673
|
}
|
|
2674
2674
|
var Cf = Function.prototype, Ef = Cf.toString;
|
|
2675
|
-
function
|
|
2675
|
+
function $f(t) {
|
|
2676
2676
|
if (t != null) {
|
|
2677
2677
|
try {
|
|
2678
2678
|
return Ef.call(t);
|
|
@@ -2685,27 +2685,27 @@ function Nf(t) {
|
|
|
2685
2685
|
}
|
|
2686
2686
|
return "";
|
|
2687
2687
|
}
|
|
2688
|
-
var
|
|
2689
|
-
"^" + Mf.call(Pf).replace(
|
|
2688
|
+
var Nf = /[\\^$.*+?()[\]{}|]/g, xf = /^\[object .+?Constructor\]$/, Tf = Function.prototype, Af = Object.prototype, Mf = Tf.toString, Pf = Af.hasOwnProperty, Rf = RegExp(
|
|
2689
|
+
"^" + Mf.call(Pf).replace(Nf, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2690
2690
|
);
|
|
2691
|
-
function
|
|
2692
|
-
if (!
|
|
2691
|
+
function Df(t) {
|
|
2692
|
+
if (!yt(t) || wf(t))
|
|
2693
2693
|
return !1;
|
|
2694
2694
|
var e = Mr(t) ? Rf : xf;
|
|
2695
|
-
return e.test(
|
|
2695
|
+
return e.test($f(t));
|
|
2696
2696
|
}
|
|
2697
|
-
function
|
|
2697
|
+
function If(t, e) {
|
|
2698
2698
|
return t == null ? void 0 : t[e];
|
|
2699
2699
|
}
|
|
2700
2700
|
function Pr(t, e) {
|
|
2701
|
-
var r =
|
|
2702
|
-
return
|
|
2701
|
+
var r = If(t, e);
|
|
2702
|
+
return Df(r) ? r : void 0;
|
|
2703
2703
|
}
|
|
2704
2704
|
var jn = Object.create, Lf = /* @__PURE__ */ function() {
|
|
2705
2705
|
function t() {
|
|
2706
2706
|
}
|
|
2707
2707
|
return function(e) {
|
|
2708
|
-
if (!
|
|
2708
|
+
if (!yt(e))
|
|
2709
2709
|
return {};
|
|
2710
2710
|
if (jn)
|
|
2711
2711
|
return jn(e);
|
|
@@ -2733,11 +2733,11 @@ function Ff(t, e) {
|
|
|
2733
2733
|
e[r] = t[r];
|
|
2734
2734
|
return e;
|
|
2735
2735
|
}
|
|
2736
|
-
var kf = 800, Uf = 16,
|
|
2737
|
-
function
|
|
2736
|
+
var kf = 800, Uf = 16, Gf = Date.now;
|
|
2737
|
+
function Vf(t) {
|
|
2738
2738
|
var e = 0, r = 0;
|
|
2739
2739
|
return function() {
|
|
2740
|
-
var n =
|
|
2740
|
+
var n = Gf(), o = Uf - (n - r);
|
|
2741
2741
|
if (r = n, o > 0) {
|
|
2742
2742
|
if (++e >= kf)
|
|
2743
2743
|
return arguments[0];
|
|
@@ -2764,8 +2764,8 @@ var me = function() {
|
|
|
2764
2764
|
value: zf(e),
|
|
2765
2765
|
writable: !0
|
|
2766
2766
|
});
|
|
2767
|
-
} : Ro, Jf =
|
|
2768
|
-
function
|
|
2767
|
+
} : Ro, Jf = Vf(Hf), Wf = 9007199254740991, qf = /^(?:0|[1-9]\d*)$/;
|
|
2768
|
+
function Do(t, e) {
|
|
2769
2769
|
var r = typeof t;
|
|
2770
2770
|
return e = e ?? Wf, !!e && (r == "number" || r != "symbol" && qf.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
2771
2771
|
}
|
|
@@ -2809,17 +2809,17 @@ function tp(t, e) {
|
|
|
2809
2809
|
return Jf(Zf(t, e, Ro), t + "");
|
|
2810
2810
|
}
|
|
2811
2811
|
var ep = 9007199254740991;
|
|
2812
|
-
function
|
|
2812
|
+
function Io(t) {
|
|
2813
2813
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= ep;
|
|
2814
2814
|
}
|
|
2815
|
-
function
|
|
2816
|
-
return t != null &&
|
|
2815
|
+
function Dr(t) {
|
|
2816
|
+
return t != null && Io(t.length) && !Mr(t);
|
|
2817
2817
|
}
|
|
2818
2818
|
function rp(t, e, r) {
|
|
2819
|
-
if (!
|
|
2819
|
+
if (!yt(r))
|
|
2820
2820
|
return !1;
|
|
2821
2821
|
var n = typeof e;
|
|
2822
|
-
return (n == "number" ?
|
|
2822
|
+
return (n == "number" ? Dr(r) && Do(e, r.length) : n == "string" && e in r) ? Oe(r[e], t) : !1;
|
|
2823
2823
|
}
|
|
2824
2824
|
function np(t) {
|
|
2825
2825
|
return tp(function(e, r) {
|
|
@@ -2843,42 +2843,42 @@ function ap(t, e) {
|
|
|
2843
2843
|
}
|
|
2844
2844
|
var ip = "[object Arguments]";
|
|
2845
2845
|
function wn(t) {
|
|
2846
|
-
return
|
|
2846
|
+
return Dt(t) && oe(t) == ip;
|
|
2847
2847
|
}
|
|
2848
2848
|
var Bo = Object.prototype, sp = Bo.hasOwnProperty, cp = Bo.propertyIsEnumerable, Ze = wn(/* @__PURE__ */ function() {
|
|
2849
2849
|
return arguments;
|
|
2850
2850
|
}()) ? wn : function(t) {
|
|
2851
|
-
return
|
|
2851
|
+
return Dt(t) && sp.call(t, "callee") && !cp.call(t, "callee");
|
|
2852
2852
|
};
|
|
2853
2853
|
function up() {
|
|
2854
2854
|
return !1;
|
|
2855
2855
|
}
|
|
2856
|
-
var Fo = typeof exports == "object" && exports && !exports.nodeType && exports, Cn = Fo && typeof module == "object" && module && !module.nodeType && module, lp = Cn && Cn.exports === Fo, En = lp ?
|
|
2857
|
-
T[
|
|
2858
|
-
T[pp] = T[dp] = T[Cp] = T[hp] = T[Ep] = T[mp] = T[
|
|
2859
|
-
function
|
|
2860
|
-
return
|
|
2856
|
+
var Fo = typeof exports == "object" && exports && !exports.nodeType && exports, Cn = Fo && typeof module == "object" && module && !module.nodeType && module, lp = Cn && Cn.exports === Fo, En = lp ? Rt.Buffer : void 0, fp = En ? En.isBuffer : void 0, ko = fp || up, pp = "[object Arguments]", dp = "[object Array]", hp = "[object Boolean]", mp = "[object Date]", vp = "[object Error]", gp = "[object Function]", yp = "[object Map]", bp = "[object Number]", _p = "[object Object]", Sp = "[object RegExp]", jp = "[object Set]", Op = "[object String]", wp = "[object WeakMap]", Cp = "[object ArrayBuffer]", Ep = "[object DataView]", $p = "[object Float32Array]", Np = "[object Float64Array]", xp = "[object Int8Array]", Tp = "[object Int16Array]", Ap = "[object Int32Array]", Mp = "[object Uint8Array]", Pp = "[object Uint8ClampedArray]", Rp = "[object Uint16Array]", Dp = "[object Uint32Array]", T = {};
|
|
2857
|
+
T[$p] = T[Np] = T[xp] = T[Tp] = T[Ap] = T[Mp] = T[Pp] = T[Rp] = T[Dp] = !0;
|
|
2858
|
+
T[pp] = T[dp] = T[Cp] = T[hp] = T[Ep] = T[mp] = T[vp] = T[gp] = T[yp] = T[bp] = T[_p] = T[Sp] = T[jp] = T[Op] = T[wp] = !1;
|
|
2859
|
+
function Ip(t) {
|
|
2860
|
+
return Dt(t) && Io(t.length) && !!T[oe(t)];
|
|
2861
2861
|
}
|
|
2862
2862
|
function Lp(t) {
|
|
2863
2863
|
return function(e) {
|
|
2864
2864
|
return t(e);
|
|
2865
2865
|
};
|
|
2866
2866
|
}
|
|
2867
|
-
var Uo = typeof exports == "object" && exports && !exports.nodeType && exports, Wt = Uo && typeof module == "object" && module && !module.nodeType && module, Bp = Wt && Wt.exports === Uo, Be = Bp && Ao.process,
|
|
2867
|
+
var Uo = typeof exports == "object" && exports && !exports.nodeType && exports, Wt = Uo && typeof module == "object" && module && !module.nodeType && module, Bp = Wt && Wt.exports === Uo, Be = Bp && Ao.process, $n = function() {
|
|
2868
2868
|
try {
|
|
2869
2869
|
var t = Wt && Wt.require && Wt.require("util").types;
|
|
2870
2870
|
return t || Be && Be.binding && Be.binding("util");
|
|
2871
2871
|
} catch {
|
|
2872
2872
|
}
|
|
2873
|
-
}(),
|
|
2873
|
+
}(), Nn = $n && $n.isTypedArray, Go = Nn ? Lp(Nn) : Ip;
|
|
2874
2874
|
function Fp(t, e) {
|
|
2875
|
-
var r =
|
|
2875
|
+
var r = $t(t), n = !r && Ze(t), o = !r && !n && ko(t), a = !r && !n && !o && Go(t), s = r || n || o || a, i = s ? ap(t.length, String) : [], c = i.length;
|
|
2876
2876
|
for (var u in t)
|
|
2877
2877
|
s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2878
2878
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2879
2879
|
o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2880
2880
|
a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
2881
|
-
|
|
2881
|
+
Do(u, c)) || i.push(u);
|
|
2882
2882
|
return i;
|
|
2883
2883
|
}
|
|
2884
2884
|
function kp(t, e) {
|
|
@@ -2893,17 +2893,17 @@ function Up(t) {
|
|
|
2893
2893
|
e.push(r);
|
|
2894
2894
|
return e;
|
|
2895
2895
|
}
|
|
2896
|
-
var
|
|
2896
|
+
var Gp = Object.prototype, Vp = Gp.hasOwnProperty;
|
|
2897
2897
|
function zp(t) {
|
|
2898
|
-
if (!
|
|
2898
|
+
if (!yt(t))
|
|
2899
2899
|
return Up(t);
|
|
2900
2900
|
var e = Lo(t), r = [];
|
|
2901
2901
|
for (var n in t)
|
|
2902
|
-
n == "constructor" && (e || !
|
|
2902
|
+
n == "constructor" && (e || !Vp.call(t, n)) || r.push(n);
|
|
2903
2903
|
return r;
|
|
2904
2904
|
}
|
|
2905
|
-
function
|
|
2906
|
-
return
|
|
2905
|
+
function Vo(t) {
|
|
2906
|
+
return Dr(t) ? Fp(t) : zp(t);
|
|
2907
2907
|
}
|
|
2908
2908
|
var te = Pr(Object, "create");
|
|
2909
2909
|
function Hp() {
|
|
@@ -2932,18 +2932,18 @@ function ed(t, e) {
|
|
|
2932
2932
|
var r = this.__data__;
|
|
2933
2933
|
return this.size += this.has(t) ? 0 : 1, r[t] = te && e === void 0 ? td : e, this;
|
|
2934
2934
|
}
|
|
2935
|
-
function
|
|
2935
|
+
function ht(t) {
|
|
2936
2936
|
var e = -1, r = t == null ? 0 : t.length;
|
|
2937
2937
|
for (this.clear(); ++e < r; ) {
|
|
2938
2938
|
var n = t[e];
|
|
2939
2939
|
this.set(n[0], n[1]);
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2942
|
+
ht.prototype.clear = Hp;
|
|
2943
|
+
ht.prototype.delete = Jp;
|
|
2944
|
+
ht.prototype.get = Yp;
|
|
2945
|
+
ht.prototype.has = Zp;
|
|
2946
|
+
ht.prototype.set = ed;
|
|
2947
2947
|
function rd() {
|
|
2948
2948
|
this.__data__ = [], this.size = 0;
|
|
2949
2949
|
}
|
|
@@ -2972,24 +2972,24 @@ function cd(t, e) {
|
|
|
2972
2972
|
var r = this.__data__, n = we(r, t);
|
|
2973
2973
|
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function ot(t) {
|
|
2976
2976
|
var e = -1, r = t == null ? 0 : t.length;
|
|
2977
2977
|
for (this.clear(); ++e < r; ) {
|
|
2978
2978
|
var n = t[e];
|
|
2979
2979
|
this.set(n[0], n[1]);
|
|
2980
2980
|
}
|
|
2981
2981
|
}
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
var zo = Pr(
|
|
2982
|
+
ot.prototype.clear = rd;
|
|
2983
|
+
ot.prototype.delete = ad;
|
|
2984
|
+
ot.prototype.get = id;
|
|
2985
|
+
ot.prototype.has = sd;
|
|
2986
|
+
ot.prototype.set = cd;
|
|
2987
|
+
var zo = Pr(Rt, "Map");
|
|
2988
2988
|
function ud() {
|
|
2989
2989
|
this.size = 0, this.__data__ = {
|
|
2990
|
-
hash: new
|
|
2991
|
-
map: new (zo ||
|
|
2992
|
-
string: new
|
|
2990
|
+
hash: new ht(),
|
|
2991
|
+
map: new (zo || ot)(),
|
|
2992
|
+
string: new ht()
|
|
2993
2993
|
};
|
|
2994
2994
|
}
|
|
2995
2995
|
function ld(t) {
|
|
@@ -3029,9 +3029,9 @@ It.prototype.set = hd;
|
|
|
3029
3029
|
function Ho(t) {
|
|
3030
3030
|
return t == null ? "" : Po(t);
|
|
3031
3031
|
}
|
|
3032
|
-
var Jo = kp(Object.getPrototypeOf, Object), md = "[object Object]",
|
|
3032
|
+
var Jo = kp(Object.getPrototypeOf, Object), md = "[object Object]", vd = Function.prototype, gd = Object.prototype, Wo = vd.toString, yd = gd.hasOwnProperty, bd = Wo.call(Object);
|
|
3033
3033
|
function Nt(t) {
|
|
3034
|
-
if (!
|
|
3034
|
+
if (!Dt(t) || oe(t) != md)
|
|
3035
3035
|
return !1;
|
|
3036
3036
|
var e = Jo(t);
|
|
3037
3037
|
if (e === null)
|
|
@@ -3050,19 +3050,19 @@ function Sd(t, e, r) {
|
|
|
3050
3050
|
var n = t.length;
|
|
3051
3051
|
return r = r === void 0 ? n : r, !e && r >= n ? t : _d(t, e, r);
|
|
3052
3052
|
}
|
|
3053
|
-
var jd = "\\ud800-\\udfff", Od = "\\u0300-\\u036f", wd = "\\ufe20-\\ufe2f", Cd = "\\u20d0-\\u20ff", Ed = Od + wd + Cd,
|
|
3053
|
+
var jd = "\\ud800-\\udfff", Od = "\\u0300-\\u036f", wd = "\\ufe20-\\ufe2f", Cd = "\\u20d0-\\u20ff", Ed = Od + wd + Cd, $d = "\\ufe0e\\ufe0f", Nd = "\\u200d", xd = RegExp("[" + Nd + jd + Ed + $d + "]");
|
|
3054
3054
|
function qo(t) {
|
|
3055
3055
|
return xd.test(t);
|
|
3056
3056
|
}
|
|
3057
3057
|
function Td(t) {
|
|
3058
3058
|
return t.split("");
|
|
3059
3059
|
}
|
|
3060
|
-
var Qo = "\\ud800-\\udfff", Ad = "\\u0300-\\u036f", Md = "\\ufe20-\\ufe2f", Pd = "\\u20d0-\\u20ff", Rd = Ad + Md + Pd,
|
|
3061
|
-
function
|
|
3062
|
-
return t.match(
|
|
3060
|
+
var Qo = "\\ud800-\\udfff", Ad = "\\u0300-\\u036f", Md = "\\ufe20-\\ufe2f", Pd = "\\u20d0-\\u20ff", Rd = Ad + Md + Pd, Dd = "\\ufe0e\\ufe0f", Id = "[" + Qo + "]", tr = "[" + Rd + "]", er = "\\ud83c[\\udffb-\\udfff]", Ld = "(?:" + tr + "|" + er + ")", Yo = "[^" + Qo + "]", Xo = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ko = "[\\ud800-\\udbff][\\udc00-\\udfff]", Bd = "\\u200d", Zo = Ld + "?", ta = "[" + Dd + "]?", Fd = "(?:" + Bd + "(?:" + [Yo, Xo, Ko].join("|") + ")" + ta + Zo + ")*", kd = ta + Zo + Fd, Ud = "(?:" + [Yo + tr + "?", tr, Xo, Ko, Id].join("|") + ")", Gd = RegExp(er + "(?=" + er + ")|" + Ud + kd, "g");
|
|
3061
|
+
function Vd(t) {
|
|
3062
|
+
return t.match(Gd) || [];
|
|
3063
3063
|
}
|
|
3064
3064
|
function zd(t) {
|
|
3065
|
-
return qo(t) ?
|
|
3065
|
+
return qo(t) ? Vd(t) : Td(t);
|
|
3066
3066
|
}
|
|
3067
3067
|
function Hd(t) {
|
|
3068
3068
|
return function(e) {
|
|
@@ -3076,7 +3076,7 @@ function Wd(t) {
|
|
|
3076
3076
|
return Jd(Ho(t).toLowerCase());
|
|
3077
3077
|
}
|
|
3078
3078
|
function qd() {
|
|
3079
|
-
this.__data__ = new
|
|
3079
|
+
this.__data__ = new ot(), this.size = 0;
|
|
3080
3080
|
}
|
|
3081
3081
|
function Qd(t) {
|
|
3082
3082
|
var e = this.__data__, r = e.delete(t);
|
|
@@ -3091,7 +3091,7 @@ function Xd(t) {
|
|
|
3091
3091
|
var Kd = 200;
|
|
3092
3092
|
function Zd(t, e) {
|
|
3093
3093
|
var r = this.__data__;
|
|
3094
|
-
if (r instanceof
|
|
3094
|
+
if (r instanceof ot) {
|
|
3095
3095
|
var n = r.__data__;
|
|
3096
3096
|
if (!zo || n.length < Kd - 1)
|
|
3097
3097
|
return n.push([t, e]), this.size = ++r.size, this;
|
|
@@ -3099,21 +3099,21 @@ function Zd(t, e) {
|
|
|
3099
3099
|
}
|
|
3100
3100
|
return r.set(t, e), this.size = r.size, this;
|
|
3101
3101
|
}
|
|
3102
|
-
function
|
|
3103
|
-
var e = this.__data__ = new
|
|
3102
|
+
function Lt(t) {
|
|
3103
|
+
var e = this.__data__ = new ot(t);
|
|
3104
3104
|
this.size = e.size;
|
|
3105
3105
|
}
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
var ea = typeof exports == "object" && exports && !exports.nodeType && exports, xn = ea && typeof module == "object" && module && !module.nodeType && module, th = xn && xn.exports === ea, Tn = th ?
|
|
3106
|
+
Lt.prototype.clear = qd;
|
|
3107
|
+
Lt.prototype.delete = Qd;
|
|
3108
|
+
Lt.prototype.get = Yd;
|
|
3109
|
+
Lt.prototype.has = Xd;
|
|
3110
|
+
Lt.prototype.set = Zd;
|
|
3111
|
+
var ea = typeof exports == "object" && exports && !exports.nodeType && exports, xn = ea && typeof module == "object" && module && !module.nodeType && module, th = xn && xn.exports === ea, Tn = th ? Rt.Buffer : void 0;
|
|
3112
3112
|
Tn && Tn.allocUnsafe;
|
|
3113
3113
|
function eh(t, e) {
|
|
3114
3114
|
return t.slice();
|
|
3115
3115
|
}
|
|
3116
|
-
var An =
|
|
3116
|
+
var An = Rt.Uint8Array;
|
|
3117
3117
|
function rh(t) {
|
|
3118
3118
|
var e = new t.constructor(t.byteLength);
|
|
3119
3119
|
return new An(e).set(new An(t)), e;
|
|
@@ -3140,14 +3140,14 @@ function rr(t, e, r) {
|
|
|
3140
3140
|
(r !== void 0 && !Oe(t[e], r) || r === void 0 && !(e in t)) && Rr(t, e, r);
|
|
3141
3141
|
}
|
|
3142
3142
|
function sh(t) {
|
|
3143
|
-
return
|
|
3143
|
+
return Dt(t) && Dr(t);
|
|
3144
3144
|
}
|
|
3145
3145
|
function nr(t, e) {
|
|
3146
3146
|
if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
|
|
3147
3147
|
return t[e];
|
|
3148
3148
|
}
|
|
3149
3149
|
function ch(t) {
|
|
3150
|
-
return Kf(t,
|
|
3150
|
+
return Kf(t, Vo(t));
|
|
3151
3151
|
}
|
|
3152
3152
|
function uh(t, e, r, n, o, a, s) {
|
|
3153
3153
|
var i = nr(t, r), c = nr(e, r), u = s.get(c);
|
|
@@ -3157,20 +3157,20 @@ function uh(t, e, r, n, o, a, s) {
|
|
|
3157
3157
|
}
|
|
3158
3158
|
var l = a ? a(i, c, r + "", t, e, s) : void 0, p = l === void 0;
|
|
3159
3159
|
if (p) {
|
|
3160
|
-
var f =
|
|
3161
|
-
l = c, f || d || h ?
|
|
3160
|
+
var f = $t(c), d = !f && ko(c), h = !f && !d && Go(c);
|
|
3161
|
+
l = c, f || d || h ? $t(i) ? l = i : sh(i) ? l = Ff(i) : d ? (p = !1, l = eh(c)) : h ? (p = !1, l = nh(c)) : l = [] : Nt(c) || Ze(c) ? (l = i, Ze(i) ? l = ch(i) : (!yt(i) || Mr(i)) && (l = oh(c))) : p = !1;
|
|
3162
3162
|
}
|
|
3163
3163
|
p && (s.set(c, l), o(l, c, n, a, s), s.delete(c)), rr(t, r, l);
|
|
3164
3164
|
}
|
|
3165
3165
|
function ra(t, e, r, n, o) {
|
|
3166
3166
|
t !== e && ih(e, function(a, s) {
|
|
3167
|
-
if (o || (o = new
|
|
3167
|
+
if (o || (o = new Lt()), yt(a))
|
|
3168
3168
|
uh(t, e, s, r, ra, n, o);
|
|
3169
3169
|
else {
|
|
3170
3170
|
var i = n ? n(nr(t, s), a, s + "", t, e, o) : void 0;
|
|
3171
3171
|
i === void 0 && (i = a), rr(t, s, i);
|
|
3172
3172
|
}
|
|
3173
|
-
},
|
|
3173
|
+
}, Vo);
|
|
3174
3174
|
}
|
|
3175
3175
|
var lh = np(function(t, e, r) {
|
|
3176
3176
|
ra(t, e, r);
|
|
@@ -3195,7 +3195,7 @@ function dh(t) {
|
|
|
3195
3195
|
}
|
|
3196
3196
|
return e.displayName = t.displayName, e;
|
|
3197
3197
|
}
|
|
3198
|
-
const
|
|
3198
|
+
const _t = (t, e) => {
|
|
3199
3199
|
const r = (n) => {
|
|
3200
3200
|
const a = `
|
|
3201
3201
|
${Object.keys(e).map((s) => `const ${s} = $$context['${s}'];`).join(`
|
|
@@ -3278,13 +3278,13 @@ return $$_run_$$();
|
|
|
3278
3278
|
}, Zh = (t, e) => na(t, e), tm = (t, e) => na(t, e), Fe = (t) => {
|
|
3279
3279
|
var r;
|
|
3280
3280
|
return ((r = t.value.css) == null ? void 0 : r.class) || `c_${t.id}`;
|
|
3281
|
-
},
|
|
3281
|
+
}, vh = (t, e) => {
|
|
3282
3282
|
const r = t.split(".");
|
|
3283
3283
|
let n, o = e;
|
|
3284
3284
|
return r.forEach((a) => {
|
|
3285
3285
|
n = o == null ? void 0 : o[a], o = n;
|
|
3286
3286
|
}), n || (() => `Component [${t}] not found`);
|
|
3287
|
-
}, ue = "DYNAMIC",
|
|
3287
|
+
}, ue = "DYNAMIC", gh = ["$$context", "$$nodeModel"], yh = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_CJS_TRACE: "true" }, Rn = (t) => {
|
|
3288
3288
|
let e;
|
|
3289
3289
|
const r = /* @__PURE__ */ new Set(), n = (l, p) => {
|
|
3290
3290
|
const f = typeof l == "function" ? l(e) : l;
|
|
@@ -3393,7 +3393,7 @@ class jh {
|
|
|
3393
3393
|
getComponent(e) {
|
|
3394
3394
|
var o;
|
|
3395
3395
|
const r = e.value.componentName;
|
|
3396
|
-
let n =
|
|
3396
|
+
let n = vh(r, this.components);
|
|
3397
3397
|
return ph(n) || (n = dh(n), this.components[r] = n), this.onGetComponent && (n = (o = this.onGetComponent) == null ? void 0 : o.call(this, n, e)), n;
|
|
3398
3398
|
}
|
|
3399
3399
|
getContext(e = {}, r) {
|
|
@@ -3414,8 +3414,8 @@ class jh {
|
|
|
3414
3414
|
}) {
|
|
3415
3415
|
this.renderMode = c, this.components = r, this.onGetRef = n, this.onGetComponent = a, this.onComponentMount = s, this.onComponentDestroy = i, this.processNodeConfigHook = u;
|
|
3416
3416
|
const l = e.value.componentsTree, p = this.getComponent(l), f = this.convertModelToComponent(p, e.value.componentsTree), d = {}, h = l.props;
|
|
3417
|
-
return Object.keys(h).forEach((
|
|
3418
|
-
d[
|
|
3417
|
+
return Object.keys(h).forEach((g) => {
|
|
3418
|
+
d[g] = h[g].value;
|
|
3419
3419
|
}), d.$$context = o, this.render(f, d);
|
|
3420
3420
|
}
|
|
3421
3421
|
transformProps(e = {}, {
|
|
@@ -3441,14 +3441,14 @@ class jh {
|
|
|
3441
3441
|
const f = this.getComponent(l), d = this.convertModelToComponent(f, l), h = i.params || [];
|
|
3442
3442
|
return {
|
|
3443
3443
|
component: (...S) => {
|
|
3444
|
-
const j = Mn(S, h),
|
|
3444
|
+
const j = Mn(S, h), N = this.getContext(
|
|
3445
3445
|
{
|
|
3446
3446
|
params: j
|
|
3447
3447
|
},
|
|
3448
3448
|
r
|
|
3449
3449
|
);
|
|
3450
3450
|
return this.render(d, {
|
|
3451
|
-
$$context:
|
|
3451
|
+
$$context: N,
|
|
3452
3452
|
key: p
|
|
3453
3453
|
});
|
|
3454
3454
|
},
|
|
@@ -3472,8 +3472,8 @@ class jh {
|
|
|
3472
3472
|
} else
|
|
3473
3473
|
return u(c).component;
|
|
3474
3474
|
} else {
|
|
3475
|
-
if (
|
|
3476
|
-
return
|
|
3475
|
+
if (lt(s))
|
|
3476
|
+
return _t(s.value, r || {});
|
|
3477
3477
|
if (Kl(s))
|
|
3478
3478
|
return hh(s.value, r, this.storeManager);
|
|
3479
3479
|
if (Nt(s)) {
|
|
@@ -3498,7 +3498,7 @@ class jh {
|
|
|
3498
3498
|
Re(s) && (i = s.value), r(i) ? n.push({
|
|
3499
3499
|
keyPath: a,
|
|
3500
3500
|
val: i
|
|
3501
|
-
}) :
|
|
3501
|
+
}) : $t(i) ? i.forEach((c, u) => {
|
|
3502
3502
|
o([...a, String(u)], c);
|
|
3503
3503
|
}) : Nt(i) && Object.keys(i).forEach((c) => {
|
|
3504
3504
|
o([...a, c], i[c]);
|
|
@@ -3549,7 +3549,7 @@ class jh {
|
|
|
3549
3549
|
h.innerText = `.${f} { ${l.text} }`, i == null || i.appendChild(h);
|
|
3550
3550
|
}
|
|
3551
3551
|
(d = l.media) != null && d.length && l.media.forEach((h) => {
|
|
3552
|
-
const
|
|
3552
|
+
const g = `${p}_${h.type}_${h.value}`, b = this.getStyleDomById(g);
|
|
3553
3553
|
b.media = `screen and (${h.type}:${h.value}px)`, b.innerHTML = `.${f} { ${h.text} }`, i == null || i.appendChild(b);
|
|
3554
3554
|
});
|
|
3555
3555
|
});
|
|
@@ -3584,12 +3584,12 @@ class jh {
|
|
|
3584
3584
|
}, n.variableManager.add(c, this.variableSpace));
|
|
3585
3585
|
}
|
|
3586
3586
|
connectStore() {
|
|
3587
|
-
const i = n.collectSpecialProps(r.props, (f) => !!
|
|
3587
|
+
const i = n.collectSpecialProps(r.props, (f) => !!lt(f)), c = n.collectSpecialProps(
|
|
3588
3588
|
{
|
|
3589
3589
|
css: r.value.css,
|
|
3590
3590
|
class: r.value.classNames
|
|
3591
3591
|
},
|
|
3592
|
-
(f) => !!
|
|
3592
|
+
(f) => !!lt(f)
|
|
3593
3593
|
);
|
|
3594
3594
|
let u = [];
|
|
3595
3595
|
[...i, ...c].map((f) => {
|
|
@@ -3601,15 +3601,15 @@ class jh {
|
|
|
3601
3601
|
/getStateObj\("(.+?)"\)/gim,
|
|
3602
3602
|
/getStateById\('(.+?)'\)/gim,
|
|
3603
3603
|
/getStateById\("(.+?)"\)/gim
|
|
3604
|
-
],
|
|
3605
|
-
u = [...u, ...
|
|
3604
|
+
], g = mh(d.value, h);
|
|
3605
|
+
u = [...u, ...g];
|
|
3606
3606
|
}).filter(Boolean);
|
|
3607
3607
|
const l = Array.from(new Set(u)), p = [];
|
|
3608
3608
|
l.length && l.forEach((f) => {
|
|
3609
3609
|
n.storeManager.getStore(f) || (n.storeManager.addStore(f, () => ({})), console.warn(n.storeManager, f, "not exits"));
|
|
3610
|
-
const h = n.storeManager.connect(f, (
|
|
3610
|
+
const h = n.storeManager.connect(f, (g) => {
|
|
3611
3611
|
this.setState({
|
|
3612
|
-
...
|
|
3612
|
+
...g
|
|
3613
3613
|
});
|
|
3614
3614
|
});
|
|
3615
3615
|
p.push(h);
|
|
@@ -3643,51 +3643,51 @@ class jh {
|
|
|
3643
3643
|
storeManager: n.storeManager,
|
|
3644
3644
|
getState: () => n.storeManager.getStateObj(u),
|
|
3645
3645
|
getStateObj: () => n.storeManager.getStateObj(u),
|
|
3646
|
-
getStateObjById: (
|
|
3646
|
+
getStateObjById: (D) => n.storeManager.getStateObj(D),
|
|
3647
3647
|
stateManager: n.storeManager.getStateSnapshot(),
|
|
3648
3648
|
getMethods: () => n.variableManager.get(u).methods,
|
|
3649
|
-
getMethodsById: (
|
|
3649
|
+
getMethodsById: (D) => n.variableManager.get(D).methods,
|
|
3650
3650
|
getStaticVar: () => n.variableManager.get(u).staticVar,
|
|
3651
|
-
getStaticVarById: (
|
|
3651
|
+
getStaticVarById: (D) => n.variableManager.get(D).staticVar
|
|
3652
3652
|
};
|
|
3653
|
-
r.value.componentName ===
|
|
3654
|
-
const f = n.getContext(p, i),
|
|
3653
|
+
r.value.componentName === Pt.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState, p.getGlobalState = () => this.state);
|
|
3654
|
+
const f = n.getContext(p, i), g = n.transformProps(
|
|
3655
3655
|
{
|
|
3656
3656
|
methods: r.value.methods
|
|
3657
3657
|
},
|
|
3658
3658
|
{
|
|
3659
3659
|
$$context: f
|
|
3660
3660
|
}
|
|
3661
|
-
).methods.reduce((
|
|
3662
|
-
f.methods =
|
|
3661
|
+
).methods.reduce((D, z) => (D[z.name] = z.define, D), {});
|
|
3662
|
+
f.methods = g, this.variableSpace.methods = Object.assign(this.variableSpace.methods, g);
|
|
3663
3663
|
const b = r.value.loop;
|
|
3664
3664
|
let S = [];
|
|
3665
3665
|
if (b && b.open) {
|
|
3666
3666
|
this.targetComponentRef.current = [];
|
|
3667
|
-
let
|
|
3668
|
-
if (
|
|
3667
|
+
let D = b.data || [];
|
|
3668
|
+
if (lt(b.data)) {
|
|
3669
3669
|
const z = b.data;
|
|
3670
|
-
|
|
3670
|
+
D = _t(z.value, f || {});
|
|
3671
3671
|
}
|
|
3672
|
-
return S =
|
|
3673
|
-
var
|
|
3674
|
-
const Bt = z[1],
|
|
3675
|
-
let
|
|
3676
|
-
b.name && (
|
|
3672
|
+
return S = D.map((...z) => {
|
|
3673
|
+
var Ir;
|
|
3674
|
+
const Bt = z[1], bt = [b.forName || "item", b.forIndex || "index"], Ee = Mn(z, bt);
|
|
3675
|
+
let $e = "loopData";
|
|
3676
|
+
b.name && ($e = `${$e}${b.name}`);
|
|
3677
3677
|
const Ft = n.getContext(
|
|
3678
3678
|
{
|
|
3679
|
-
[
|
|
3679
|
+
[$e]: Ee
|
|
3680
3680
|
},
|
|
3681
3681
|
f
|
|
3682
3682
|
), Y = n.transformProps(l, {
|
|
3683
3683
|
$$context: Ft
|
|
3684
|
-
}), ia = ((
|
|
3684
|
+
}), ia = ((Ir = r.value.classNames) == null ? void 0 : Ir.map((H) => {
|
|
3685
3685
|
var se;
|
|
3686
3686
|
const kt = H.name;
|
|
3687
|
-
return (
|
|
3687
|
+
return (lt(H.status) ? _t(String(((se = H.status) == null ? void 0 : se.value) || ""), Ft) : !1) ? kt : "";
|
|
3688
3688
|
})) || [];
|
|
3689
|
-
let
|
|
3690
|
-
r.value.css && (
|
|
3689
|
+
let Ne = `${Y.className ?? ""} ${ia.join(" ")}`.trim();
|
|
3690
|
+
r.value.css && (Ne = `${Fe(r)} ${Ne}`.trim()), Y.className = Ne;
|
|
3691
3691
|
const sa = n.transformProps(
|
|
3692
3692
|
{
|
|
3693
3693
|
style: r.value.style
|
|
@@ -3711,8 +3711,8 @@ class jh {
|
|
|
3711
3711
|
H.push(ca);
|
|
3712
3712
|
}), xe = H;
|
|
3713
3713
|
}
|
|
3714
|
-
if (Y.key = `${Y.key}-${Bt}`,
|
|
3715
|
-
const H = b.key, kt =
|
|
3714
|
+
if (Y.key = `${Y.key}-${Bt}`, lt(b.key)) {
|
|
3715
|
+
const H = b.key, kt = _t(H.value, Ft || {});
|
|
3716
3716
|
Y.key += `-${kt}`;
|
|
3717
3717
|
}
|
|
3718
3718
|
return Y.ref = (H) => {
|
|
@@ -3722,51 +3722,51 @@ class jh {
|
|
|
3722
3722
|
}
|
|
3723
3723
|
const j = n.transformProps(l, {
|
|
3724
3724
|
$$context: f
|
|
3725
|
-
}), { children:
|
|
3725
|
+
}), { children: N } = j;
|
|
3726
3726
|
let E = [];
|
|
3727
|
-
if (
|
|
3728
|
-
delete j.children, E = Array.isArray(
|
|
3727
|
+
if (N !== void 0)
|
|
3728
|
+
delete j.children, E = Array.isArray(N) ? N : [N];
|
|
3729
3729
|
else {
|
|
3730
|
-
const
|
|
3731
|
-
r.value.children.forEach((Bt,
|
|
3730
|
+
const D = [];
|
|
3731
|
+
r.value.children.forEach((Bt, bt) => {
|
|
3732
3732
|
const Ee = n.buildComponent(Bt, {
|
|
3733
3733
|
$$context: f,
|
|
3734
|
-
idx:
|
|
3734
|
+
idx: bt
|
|
3735
3735
|
});
|
|
3736
|
-
|
|
3737
|
-
}), E =
|
|
3736
|
+
D.push(Ee);
|
|
3737
|
+
}), E = D;
|
|
3738
3738
|
}
|
|
3739
3739
|
j.ref = this.targetComponentRef;
|
|
3740
|
-
const
|
|
3741
|
-
var
|
|
3742
|
-
const z =
|
|
3743
|
-
return (
|
|
3740
|
+
const I = ((ae = r.value.classNames) == null ? void 0 : ae.map((D) => {
|
|
3741
|
+
var bt;
|
|
3742
|
+
const z = D.name;
|
|
3743
|
+
return (lt(D.status) ? _t(((bt = D.status) == null ? void 0 : bt.value) || "", f) : !1) ? z : "";
|
|
3744
3744
|
})) || [];
|
|
3745
|
-
let
|
|
3746
|
-
r.value.css && (
|
|
3747
|
-
const
|
|
3745
|
+
let L = `${j.className ?? ""} ${I.join(" ")}`.trim();
|
|
3746
|
+
r.value.css && (L = `${Fe(r)} ${L}`.trim()), j.className = L;
|
|
3747
|
+
const et = n.transformProps(
|
|
3748
3748
|
{ style: r.value.style },
|
|
3749
3749
|
{
|
|
3750
3750
|
$$context: f
|
|
3751
3751
|
}
|
|
3752
3752
|
);
|
|
3753
|
-
r.value.style && (j.style = Pn(
|
|
3753
|
+
r.value.style && (j.style = Pn(et.style || []));
|
|
3754
3754
|
let C = r.value.condition ?? !0;
|
|
3755
|
-
typeof C != "boolean" && (C =
|
|
3756
|
-
let
|
|
3755
|
+
typeof C != "boolean" && (C = _t(C.value, f || {}));
|
|
3756
|
+
let it = {
|
|
3757
3757
|
condition: C,
|
|
3758
3758
|
props: j
|
|
3759
3759
|
};
|
|
3760
|
-
n.processNodeConfigHook && (
|
|
3761
|
-
const
|
|
3762
|
-
return this._CONDITION =
|
|
3760
|
+
n.processNodeConfigHook && (it = n.processNodeConfigHook(it, r));
|
|
3761
|
+
const ut = n.render(e, it.props, ...E);
|
|
3762
|
+
return this._CONDITION = it.condition, it.condition ? ut : O.createElement(
|
|
3763
3763
|
"div",
|
|
3764
3764
|
{
|
|
3765
3765
|
style: {
|
|
3766
3766
|
display: "none"
|
|
3767
3767
|
}
|
|
3768
3768
|
},
|
|
3769
|
-
|
|
3769
|
+
ut
|
|
3770
3770
|
);
|
|
3771
3771
|
}
|
|
3772
3772
|
}
|
|
@@ -3801,7 +3801,7 @@ class jh {
|
|
|
3801
3801
|
}
|
|
3802
3802
|
// 真实渲染
|
|
3803
3803
|
render(e, r = {}, ...n) {
|
|
3804
|
-
return typeof e == "string" || typeof e == "number" ? String(e) : (
|
|
3804
|
+
return typeof e == "string" || typeof e == "number" ? String(e) : (gh.forEach((a) => {
|
|
3805
3805
|
a in r && e.__CP_TYPE__ !== ue && delete r[a];
|
|
3806
3806
|
}), O.createElement(e, r, ...n));
|
|
3807
3807
|
}
|
|
@@ -3813,7 +3813,7 @@ const em = ma(new jh());
|
|
|
3813
3813
|
function Oh(t) {
|
|
3814
3814
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3815
3815
|
}
|
|
3816
|
-
var ke = { exports: {} },
|
|
3816
|
+
var ke = { exports: {} }, Vt = {};
|
|
3817
3817
|
/**
|
|
3818
3818
|
* @license React
|
|
3819
3819
|
* react-jsx-runtime.production.min.js
|
|
@@ -3823,10 +3823,10 @@ var ke = { exports: {} }, Gt = {};
|
|
|
3823
3823
|
* This source code is licensed under the MIT license found in the
|
|
3824
3824
|
* LICENSE file in the root directory of this source tree.
|
|
3825
3825
|
*/
|
|
3826
|
-
var
|
|
3826
|
+
var Dn;
|
|
3827
3827
|
function wh() {
|
|
3828
|
-
if (
|
|
3829
|
-
|
|
3828
|
+
if (Dn) return Vt;
|
|
3829
|
+
Dn = 1;
|
|
3830
3830
|
var t = O, 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 };
|
|
3831
3831
|
function s(i, c, u) {
|
|
3832
3832
|
var l, p = {}, f = null, d = null;
|
|
@@ -3835,14 +3835,14 @@ function wh() {
|
|
|
3835
3835
|
if (i && i.defaultProps) for (l in c = i.defaultProps, c) p[l] === void 0 && (p[l] = c[l]);
|
|
3836
3836
|
return { $$typeof: e, type: i, key: f, ref: d, props: p, _owner: o.current };
|
|
3837
3837
|
}
|
|
3838
|
-
return
|
|
3838
|
+
return Vt.Fragment = r, Vt.jsx = s, Vt.jsxs = s, Vt;
|
|
3839
3839
|
}
|
|
3840
|
-
var
|
|
3840
|
+
var In;
|
|
3841
3841
|
function Ch() {
|
|
3842
|
-
return
|
|
3842
|
+
return In || (In = 1, ke.exports = wh()), ke.exports;
|
|
3843
3843
|
}
|
|
3844
3844
|
var Eh = Ch();
|
|
3845
|
-
const
|
|
3845
|
+
const $h = [
|
|
3846
3846
|
"a",
|
|
3847
3847
|
"abbr",
|
|
3848
3848
|
"acronym",
|
|
@@ -3992,25 +3992,25 @@ const Nh = [
|
|
|
3992
3992
|
"video",
|
|
3993
3993
|
"wbr",
|
|
3994
3994
|
"xmp"
|
|
3995
|
-
],
|
|
3995
|
+
], at = (t) => {
|
|
3996
3996
|
const e = {};
|
|
3997
3997
|
return t.forEach((r) => {
|
|
3998
3998
|
e[r.key] = r.value;
|
|
3999
3999
|
}), e;
|
|
4000
|
-
},
|
|
4000
|
+
}, Nh = [...$h, ...Bl], xh = Nh.reduce((t, e) => (t[e] = ({ children: r, $$attributes: n = [], ...o }) => {
|
|
4001
4001
|
let a = r;
|
|
4002
4002
|
return Array.isArray(r) || (a = [r]), O.createElement(
|
|
4003
4003
|
e,
|
|
4004
4004
|
{
|
|
4005
4005
|
...o,
|
|
4006
|
-
...
|
|
4006
|
+
...at(n)
|
|
4007
4007
|
},
|
|
4008
4008
|
...a
|
|
4009
4009
|
);
|
|
4010
4010
|
}, t), {}), Th = ({ children: t, width: e, height: r, $$attributes: n = [], ...o }) => {
|
|
4011
4011
|
let a = t;
|
|
4012
4012
|
Array.isArray(t) || (a = [t]), a = a.filter((u) => u !== void 0);
|
|
4013
|
-
const { style: s = {}, ...i } =
|
|
4013
|
+
const { style: s = {}, ...i } = at(n), c = {
|
|
4014
4014
|
height: r,
|
|
4015
4015
|
width: e,
|
|
4016
4016
|
...s,
|
|
@@ -4029,14 +4029,14 @@ const Nh = [
|
|
|
4029
4029
|
e == null || e(n);
|
|
4030
4030
|
}), []), O.createElement("canvas", {
|
|
4031
4031
|
...n,
|
|
4032
|
-
...
|
|
4032
|
+
...at(r)
|
|
4033
4033
|
})), Mh = ({ children: t, $$attributes: e = [], ...r }) => {
|
|
4034
4034
|
let n = t;
|
|
4035
4035
|
return Array.isArray(t) || (n = [t]), O.createElement(
|
|
4036
4036
|
"img",
|
|
4037
4037
|
{
|
|
4038
4038
|
...r,
|
|
4039
|
-
...
|
|
4039
|
+
...at(e)
|
|
4040
4040
|
},
|
|
4041
4041
|
...n
|
|
4042
4042
|
);
|
|
@@ -4046,7 +4046,7 @@ const Nh = [
|
|
|
4046
4046
|
"video",
|
|
4047
4047
|
{
|
|
4048
4048
|
...r,
|
|
4049
|
-
...
|
|
4049
|
+
...at(e)
|
|
4050
4050
|
},
|
|
4051
4051
|
...n
|
|
4052
4052
|
);
|
|
@@ -4056,26 +4056,26 @@ const Nh = [
|
|
|
4056
4056
|
"audio",
|
|
4057
4057
|
{
|
|
4058
4058
|
...r,
|
|
4059
|
-
...
|
|
4059
|
+
...at(e)
|
|
4060
4060
|
},
|
|
4061
4061
|
...n
|
|
4062
4062
|
);
|
|
4063
|
-
},
|
|
4063
|
+
}, Dh = ({ $$attributes: t = [], content: e, ...r }) => O.createElement(
|
|
4064
4064
|
"span",
|
|
4065
4065
|
{
|
|
4066
4066
|
...r,
|
|
4067
|
-
...
|
|
4067
|
+
...at(t)
|
|
4068
4068
|
},
|
|
4069
4069
|
e
|
|
4070
|
-
),
|
|
4070
|
+
), Ih = ({ children: t, $$attributes: e = [], afterMount: r, beforeDestroy: n, ...o }) => {
|
|
4071
4071
|
let a = t;
|
|
4072
4072
|
return Array.isArray(t) || (a = [t]), Fn(() => (r == null || r(o), () => {
|
|
4073
4073
|
n == null || n(o);
|
|
4074
|
-
}), []), /* @__PURE__ */ Eh.jsx("div", { ...o, ...
|
|
4074
|
+
}), []), /* @__PURE__ */ Eh.jsx("div", { ...o, ...at(e), children: a });
|
|
4075
4075
|
}, Lh = ({ children: t, $$attributes: e = [], htmlTag: r = "div", ...n }) => {
|
|
4076
4076
|
let o = t;
|
|
4077
4077
|
Array.isArray(t) || (o = [t]);
|
|
4078
|
-
const { style: a = {}, ...s } =
|
|
4078
|
+
const { style: a = {}, ...s } = at(e), i = {
|
|
4079
4079
|
...a,
|
|
4080
4080
|
...n.style || {}
|
|
4081
4081
|
};
|
|
@@ -4091,12 +4091,12 @@ const Nh = [
|
|
|
4091
4091
|
}, Bh = {
|
|
4092
4092
|
RootContainer: ({ children: t }) => t,
|
|
4093
4093
|
...xh,
|
|
4094
|
-
CContainer:
|
|
4094
|
+
CContainer: Ih,
|
|
4095
4095
|
CVideo: Ph,
|
|
4096
4096
|
CAudio: Rh,
|
|
4097
4097
|
CBlock: Th,
|
|
4098
4098
|
CImage: Mh,
|
|
4099
|
-
CText:
|
|
4099
|
+
CText: Dh,
|
|
4100
4100
|
CCanvas: Ah,
|
|
4101
4101
|
CNativeTag: Lh
|
|
4102
4102
|
};
|
|
@@ -4252,7 +4252,7 @@ class Uh extends O.Component {
|
|
|
4252
4252
|
return this.props.children;
|
|
4253
4253
|
}
|
|
4254
4254
|
}
|
|
4255
|
-
class
|
|
4255
|
+
class Gh {
|
|
4256
4256
|
constructor() {
|
|
4257
4257
|
y(this, "instanceMap", /* @__PURE__ */ new Map());
|
|
4258
4258
|
}
|
|
@@ -4275,7 +4275,7 @@ class Vh {
|
|
|
4275
4275
|
this.instanceMap.clear();
|
|
4276
4276
|
}
|
|
4277
4277
|
}
|
|
4278
|
-
const
|
|
4278
|
+
const Vh = (t) => {
|
|
4279
4279
|
const { node: e } = t, r = Un(() => {
|
|
4280
4280
|
const i = e.isContainer();
|
|
4281
4281
|
return Nt(i) ? i : {
|
|
@@ -4312,9 +4312,9 @@ const Gh = (t) => {
|
|
|
4312
4312
|
class nm extends O.Component {
|
|
4313
4313
|
constructor(r) {
|
|
4314
4314
|
super(r);
|
|
4315
|
-
y(this, "instanceManager", new
|
|
4315
|
+
y(this, "instanceManager", new Gh());
|
|
4316
4316
|
y(this, "renderRef");
|
|
4317
|
-
y(this, "dropPlaceholder",
|
|
4317
|
+
y(this, "dropPlaceholder", Vh);
|
|
4318
4318
|
y(this, "_components", {});
|
|
4319
4319
|
y(this, "onGetComponent", (r, n) => {
|
|
4320
4320
|
var c, u;
|
|
@@ -4346,36 +4346,49 @@ class nm extends O.Component {
|
|
|
4346
4346
|
this._STATUS = "DESTROY", o.instanceManager.remove(n.id, this);
|
|
4347
4347
|
}
|
|
4348
4348
|
getDom() {
|
|
4349
|
-
var
|
|
4350
|
-
return (d = (
|
|
4349
|
+
var d, h, g, b;
|
|
4350
|
+
return ((h = (d = n.material) == null ? void 0 : d.value.advanceCustom) == null ? void 0 : h.autoGetDom) ?? !0 ? (b = (g = this._dom) == null ? void 0 : g.children) == null ? void 0 : b[0] : this._dom;
|
|
4351
4351
|
}
|
|
4352
4352
|
render() {
|
|
4353
|
-
var j,
|
|
4353
|
+
var j, N, E, I;
|
|
4354
4354
|
const { children: f = [], onlyRenderChild: d, ...h } = this.props;
|
|
4355
|
-
let
|
|
4356
|
-
if (
|
|
4357
|
-
const
|
|
4358
|
-
|
|
4359
|
-
O.createElement(
|
|
4355
|
+
let g = f;
|
|
4356
|
+
if ($t(f) || (g = [f]), !!!g.filter(Boolean).length && (n.isContainer() || n.value.componentName === Pt.ROOT_CONTAINER)) {
|
|
4357
|
+
const L = (N = (j = n.material) == null ? void 0 : j.value.advanceCustom) == null ? void 0 : N.dropPlaceholder;
|
|
4358
|
+
g.push(
|
|
4359
|
+
O.createElement(L || o.dropPlaceholder, {
|
|
4360
4360
|
node: n
|
|
4361
4361
|
})
|
|
4362
4362
|
);
|
|
4363
4363
|
}
|
|
4364
4364
|
if (d)
|
|
4365
|
-
return
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4365
|
+
return g;
|
|
4366
|
+
if (((I = (E = n.material) == null ? void 0 : E.value.advanceCustom) == null ? void 0 : I.autoGetDom) ?? !0) {
|
|
4367
|
+
const L = O.createElement(a, h, ...g);
|
|
4368
|
+
return O.createElement(
|
|
4369
|
+
"div",
|
|
4370
|
+
{
|
|
4371
|
+
style: {
|
|
4372
|
+
display: "contents"
|
|
4373
|
+
},
|
|
4374
|
+
ref: (et) => {
|
|
4375
|
+
this._dom = et;
|
|
4376
|
+
}
|
|
4372
4377
|
},
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4378
|
+
L
|
|
4379
|
+
);
|
|
4380
|
+
} else
|
|
4381
|
+
return O.createElement(
|
|
4382
|
+
a,
|
|
4383
|
+
{
|
|
4384
|
+
...h,
|
|
4385
|
+
// 注入到组件中, 配合设计器使用
|
|
4386
|
+
$SET_DOM: (et) => {
|
|
4387
|
+
this._dom = et;
|
|
4388
|
+
}
|
|
4389
|
+
},
|
|
4390
|
+
...g
|
|
4391
|
+
);
|
|
4379
4392
|
}
|
|
4380
4393
|
}
|
|
4381
4394
|
return O.forwardRef(function(p, f) {
|
|
@@ -4454,12 +4467,12 @@ class nm extends O.Component {
|
|
|
4454
4467
|
* @returns
|
|
4455
4468
|
*/
|
|
4456
4469
|
processNodeConfigHook: (s, i) => {
|
|
4457
|
-
var h,
|
|
4470
|
+
var h, g;
|
|
4458
4471
|
if (i.nodeType !== "NODE")
|
|
4459
4472
|
return s;
|
|
4460
4473
|
const { props: c, condition: u } = s;
|
|
4461
4474
|
let l = { ...c };
|
|
4462
|
-
const p = ((h = i.value.configure) == null ? void 0 : h.devState) || {}, f = (
|
|
4475
|
+
const p = ((h = i.value.configure) == null ? void 0 : h.devState) || {}, f = (g = i.material) == null ? void 0 : g.value.fixedProps;
|
|
4463
4476
|
if (f !== void 0) {
|
|
4464
4477
|
if (Nt(f))
|
|
4465
4478
|
l = {
|
|
@@ -4528,12 +4541,12 @@ function Hh() {
|
|
|
4528
4541
|
}, n = {}, o = {}, a = {};
|
|
4529
4542
|
function s(f, d) {
|
|
4530
4543
|
f = f.push ? f : [f];
|
|
4531
|
-
var h = [],
|
|
4532
|
-
for (S = function(
|
|
4533
|
-
|
|
4534
|
-
};
|
|
4535
|
-
if (j = f[
|
|
4536
|
-
S(j,
|
|
4544
|
+
var h = [], g = f.length, b = g, S, j, N, E;
|
|
4545
|
+
for (S = function(I, L) {
|
|
4546
|
+
L.length && h.push(I), b--, b || d(h);
|
|
4547
|
+
}; g--; ) {
|
|
4548
|
+
if (j = f[g], N = o[j], N) {
|
|
4549
|
+
S(j, N);
|
|
4537
4550
|
continue;
|
|
4538
4551
|
}
|
|
4539
4552
|
E = a[j] = a[j] || [], E.push(S);
|
|
@@ -4550,60 +4563,60 @@ function Hh() {
|
|
|
4550
4563
|
function c(f, d) {
|
|
4551
4564
|
f.call && (f = { success: f }), d.length ? (f.error || r)(d) : (f.success || r)(f);
|
|
4552
4565
|
}
|
|
4553
|
-
function u(f, d, h,
|
|
4554
|
-
var b = document, S = h.async, j = (h.numRetries || 0) + 1,
|
|
4555
|
-
if (
|
|
4556
|
-
C = b.createElement("link"), C.rel = "stylesheet", C.href =
|
|
4566
|
+
function u(f, d, h, g) {
|
|
4567
|
+
var b = document, S = h.async, j = (h.numRetries || 0) + 1, N = h.before || r, E = f.replace(/[\?|#].*$/, ""), I = f.replace(/^(css|img|module|nomodule)!/, ""), L, et, C;
|
|
4568
|
+
if (g = g || 0, /(^css!|\.css$)/.test(E))
|
|
4569
|
+
C = b.createElement("link"), C.rel = "stylesheet", C.href = I, L = "hideFocus" in C, L && C.relList && (L = 0, C.rel = "preload", C.as = "style");
|
|
4557
4570
|
else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(E))
|
|
4558
|
-
C = b.createElement("img"), C.src =
|
|
4559
|
-
else if (C = b.createElement("script"), C.src =
|
|
4560
|
-
if (!
|
|
4571
|
+
C = b.createElement("img"), C.src = I;
|
|
4572
|
+
else if (C = b.createElement("script"), C.src = I, C.async = S === void 0 ? !0 : S, et = "noModule" in C, /^module!/.test(E)) {
|
|
4573
|
+
if (!et) return d(f, "l");
|
|
4561
4574
|
C.type = "module";
|
|
4562
|
-
} else if (/^nomodule!/.test(E) &&
|
|
4563
|
-
C.onload = C.onerror = C.onbeforeload = function(
|
|
4564
|
-
var
|
|
4565
|
-
if (
|
|
4575
|
+
} else if (/^nomodule!/.test(E) && et) return d(f, "l");
|
|
4576
|
+
C.onload = C.onerror = C.onbeforeload = function(it) {
|
|
4577
|
+
var ut = it.type[0];
|
|
4578
|
+
if (L)
|
|
4566
4579
|
try {
|
|
4567
|
-
C.sheet.cssText.length || (
|
|
4580
|
+
C.sheet.cssText.length || (ut = "e");
|
|
4568
4581
|
} catch (ae) {
|
|
4569
|
-
ae.code != 18 && (
|
|
4582
|
+
ae.code != 18 && (ut = "e");
|
|
4570
4583
|
}
|
|
4571
|
-
if (
|
|
4572
|
-
if (
|
|
4573
|
-
return u(f, d, h,
|
|
4584
|
+
if (ut == "e") {
|
|
4585
|
+
if (g += 1, g < j)
|
|
4586
|
+
return u(f, d, h, g);
|
|
4574
4587
|
} else if (C.rel == "preload" && C.as == "style")
|
|
4575
4588
|
return C.rel = "stylesheet";
|
|
4576
|
-
d(f,
|
|
4577
|
-
},
|
|
4589
|
+
d(f, ut, it.defaultPrevented);
|
|
4590
|
+
}, N(f, C) !== !1 && b.head.appendChild(C);
|
|
4578
4591
|
}
|
|
4579
4592
|
function l(f, d, h) {
|
|
4580
4593
|
f = f.push ? f : [f];
|
|
4581
|
-
var
|
|
4582
|
-
for (j = function(E,
|
|
4583
|
-
if (
|
|
4584
|
-
if (
|
|
4594
|
+
var g = f.length, b = g, S = [], j, N;
|
|
4595
|
+
for (j = function(E, I, L) {
|
|
4596
|
+
if (I == "e" && S.push(E), I == "b")
|
|
4597
|
+
if (L) S.push(E);
|
|
4585
4598
|
else return;
|
|
4586
|
-
|
|
4587
|
-
},
|
|
4599
|
+
g--, g || d(S);
|
|
4600
|
+
}, N = 0; N < b; N++) u(f[N], j, h);
|
|
4588
4601
|
}
|
|
4589
4602
|
function p(f, d, h) {
|
|
4590
|
-
var
|
|
4591
|
-
if (d && d.trim && (
|
|
4592
|
-
if (
|
|
4603
|
+
var g, b;
|
|
4604
|
+
if (d && d.trim && (g = d), b = (g ? h : d) || {}, g) {
|
|
4605
|
+
if (g in n)
|
|
4593
4606
|
throw "LoadJS";
|
|
4594
|
-
n[
|
|
4607
|
+
n[g] = !0;
|
|
4595
4608
|
}
|
|
4596
|
-
function S(j,
|
|
4609
|
+
function S(j, N) {
|
|
4597
4610
|
l(f, function(E) {
|
|
4598
|
-
c(b, E), j && c({ success: j, error:
|
|
4611
|
+
c(b, E), j && c({ success: j, error: N }, E), i(g, E);
|
|
4599
4612
|
}, b);
|
|
4600
4613
|
}
|
|
4601
4614
|
if (b.returnPromise) return new Promise(S);
|
|
4602
4615
|
S();
|
|
4603
4616
|
}
|
|
4604
4617
|
return p.ready = function(d, h) {
|
|
4605
|
-
return s(d, function(
|
|
4606
|
-
c(h,
|
|
4618
|
+
return s(d, function(g) {
|
|
4619
|
+
c(h, g);
|
|
4607
4620
|
}), p;
|
|
4608
4621
|
}, p.done = function(d) {
|
|
4609
4622
|
i(d, []);
|
|
@@ -4661,8 +4674,8 @@ class am {
|
|
|
4661
4674
|
}
|
|
4662
4675
|
export {
|
|
4663
4676
|
am as AssetLoader,
|
|
4664
|
-
|
|
4665
|
-
|
|
4677
|
+
Gh as ComponentInstanceManager,
|
|
4678
|
+
Vh as DefaultDropPlaceholder,
|
|
4666
4679
|
jh as DefineReactAdapter,
|
|
4667
4680
|
nm as DesignRender,
|
|
4668
4681
|
em as ReactAdapter,
|
|
@@ -4671,7 +4684,7 @@ export {
|
|
|
4671
4684
|
Xh as collectVariable,
|
|
4672
4685
|
dh as compWrapper,
|
|
4673
4686
|
hh as convertCodeStringToFunction,
|
|
4674
|
-
|
|
4687
|
+
vh as findComponentByChainRefer,
|
|
4675
4688
|
Kh as flatObject,
|
|
4676
4689
|
Pn as formatSourceStylePropertyName,
|
|
4677
4690
|
ma as getAdapter,
|
|
@@ -4682,7 +4695,7 @@ export {
|
|
|
4682
4695
|
Mn as getObjFromArrayMap,
|
|
4683
4696
|
tm as getThirdLibs,
|
|
4684
4697
|
Qh as isClass,
|
|
4685
|
-
|
|
4698
|
+
_t as runExpression,
|
|
4686
4699
|
fh as shouldConstruct,
|
|
4687
4700
|
om as useDesignRender,
|
|
4688
4701
|
rm as useRender
|