@chamn/render 0.3.3 → 0.3.5

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.js CHANGED
@@ -287,12 +287,12 @@ var Qn = typeof exports == "object" && exports && !exports.nodeType && exports,
287
287
  }(), zr = Br && Br.isTypedArray, Yn = zr ? Ys(zr) : Qs;
288
288
  function Xs(t, e) {
289
289
  var r = Ot(t), n = !r && Ie(t), o = !r && !n && Wn(t), a = !r && !n && !o && Yn(t), s = r || n || o || a, i = s ? ys(t.length, String) : [], c = i.length;
290
- for (var f in t)
290
+ for (var u in t)
291
291
  s && // Safari 9 has enumerable `arguments.length` in strict mode.
292
- (f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
293
- o && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
294
- a && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
295
- zn(f, c)) || i.push(f);
292
+ (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
293
+ o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
294
+ a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
295
+ zn(u, c)) || i.push(u);
296
296
  return i;
297
297
  }
298
298
  function Zs(t, e) {
@@ -564,17 +564,17 @@ function Sc(t) {
564
564
  return fs(t, Kn(t));
565
565
  }
566
566
  function Cc(t, e, r, n, o, a, s) {
567
- var i = Fe(t, r), c = Fe(e, r), f = s.get(c);
568
- if (f) {
569
- Le(t, r, f);
567
+ var i = Fe(t, r), c = Fe(e, r), u = s.get(c);
568
+ if (u) {
569
+ Le(t, r, u);
570
570
  return;
571
571
  }
572
- var u = a ? a(i, c, r + "", t, e, s) : void 0, d = u === void 0;
573
- if (d) {
574
- var l = Ot(c), h = !l && Wn(c), y = !l && !h && Yn(c);
575
- u = c, l || h || y ? Ot(i) ? u = i : _c(i) ? u = Xa(i) : h ? (d = !1, u = hc(c)) : y ? (d = !1, u = gc(c)) : u = [] : Tt(c) || Ie(c) ? (u = i, Ie(i) ? u = Sc(i) : (!ht(i) || Ze(i)) && (u = vc(c))) : d = !1;
572
+ var f = a ? a(i, c, r + "", t, e, s) : void 0, l = f === void 0;
573
+ if (l) {
574
+ var d = Ot(c), h = !d && Wn(c), y = !d && !h && Yn(c);
575
+ f = c, d || h || y ? Ot(i) ? f = i : _c(i) ? f = Xa(i) : h ? (l = !1, f = hc(c)) : y ? (l = !1, f = gc(c)) : f = [] : Tt(c) || Ie(c) ? (f = i, Ie(i) ? f = Sc(i) : (!ht(i) || Ze(i)) && (f = vc(c))) : l = !1;
576
576
  }
577
- d && (s.set(c, u), o(u, c, n, a, s), s.delete(c)), Le(t, r, u);
577
+ l && (s.set(c, f), o(f, c, n, a, s), s.delete(c)), Le(t, r, f);
578
578
  }
579
579
  function lo(t, e, r, n, o) {
580
580
  t !== e && bc(e, function(a, s) {
@@ -635,11 +635,11 @@ const bt = (t, e) => {
635
635
  actionVariableSpace: s
636
636
  } = t, i = r || "anonymous";
637
637
  return {
638
- [i]: function(...f) {
639
- let u;
640
- const l = Object.keys(s || {}).map((h) => `var ${h}=$$actionVariableSpace[${JSON.stringify(h)}];`);
638
+ [i]: function(...u) {
639
+ let f;
640
+ const d = Object.keys(s || {}).map((h) => `var ${h}=$$actionVariableSpace[${JSON.stringify(h)}];`);
641
641
  try {
642
- return u = `
642
+ return f = `
643
643
  var $$$__args__$$$ = Array.from(arguments);
644
644
  function $$_run_$$() {
645
645
  var extraParams = $$$__args__$$$.pop();
@@ -648,7 +648,7 @@ const bt = (t, e) => {
648
648
  var $$response = extraParams.$$response;
649
649
  var $$actionVariableSpace = extraParams.actionVariableSpace;
650
650
  $$context.stateManager = __$$storeManager__.getStateSnapshot();
651
- ${l.join(`;
651
+ ${d.join(`;
652
652
  `)}
653
653
 
654
654
  var $$_f_$$ = ${e.trim() || "function () {}"};
@@ -656,9 +656,9 @@ const bt = (t, e) => {
656
656
  return $$_f_$$.apply($$_f_$$, $$$__args__$$$);
657
657
  }
658
658
  return $$_run_$$();
659
- `, new Function(u)(...f, { $$context: n, storeManager: o, $$response: a, actionVariableSpace: s });
659
+ `, new Function(f)(...u, { $$context: n, storeManager: o, $$response: a, actionVariableSpace: s });
660
660
  } catch (h) {
661
- console.log(u), console.warn(h);
661
+ console.log(f), console.warn(h);
662
662
  }
663
663
  }
664
664
  }[i];
@@ -725,17 +725,17 @@ const bt = (t, e) => {
725
725
  return r.__proto__ = e, r;
726
726
  }, Rc = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_CJS_TRACE: "true" }, Qr = (t) => {
727
727
  let e;
728
- const r = /* @__PURE__ */ new Set(), n = (u, d) => {
729
- const l = typeof u == "function" ? u(e) : u;
730
- if (!Object.is(l, e)) {
728
+ const r = /* @__PURE__ */ new Set(), n = (f, l) => {
729
+ const d = typeof f == "function" ? f(e) : f;
730
+ if (!Object.is(d, e)) {
731
731
  const h = e;
732
- e = d ?? (typeof l != "object" || l === null) ? l : Object.assign({}, e, l), r.forEach((y) => y(e, h));
732
+ e = l ?? (typeof d != "object" || d === null) ? d : Object.assign({}, e, d), r.forEach((y) => y(e, h));
733
733
  }
734
- }, o = () => e, c = { setState: n, getState: o, getInitialState: () => f, subscribe: (u) => (r.add(u), () => r.delete(u)), destroy: () => {
734
+ }, o = () => e, c = { setState: n, getState: o, getInitialState: () => u, subscribe: (f) => (r.add(f), () => r.delete(f)), destroy: () => {
735
735
  (Rc ? "production" : void 0) !== "production" && console.warn(
736
736
  "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
737
737
  ), r.clear();
738
- } }, f = e = t(n, o, c);
738
+ } }, u = e = t(n, o, c);
739
739
  return c;
740
740
  }, Tc = (t) => t ? Qr(t) : Qr;
741
741
  class Ac {
@@ -1124,12 +1124,12 @@ var wo = typeof exports == "object" && exports && !exports.nodeType && exports,
1124
1124
  }(), an = wt && wt.isTypedArray, dr = an ? fr(an) : ul, fl = Object.prototype, dl = fl.hasOwnProperty;
1125
1125
  function jo(t, e) {
1126
1126
  var r = L(t), n = !r && Jt(t), o = !r && !n && qt(t), a = !r && !n && !o && dr(t), s = r || n || o || a, i = s ? Au(t.length, String) : [], c = i.length;
1127
- for (var f in t)
1128
- (e || dl.call(t, f)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
1129
- (f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1130
- o && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1131
- a && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
1132
- me(f, c))) && i.push(f);
1127
+ for (var u in t)
1128
+ (e || dl.call(t, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
1129
+ (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1130
+ o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1131
+ a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
1132
+ me(u, c))) && i.push(u);
1133
1133
  return i;
1134
1134
  }
1135
1135
  function Eo(t, e) {
@@ -1563,40 +1563,40 @@ var _n = wt && wt.isSet, ld = _n ? fr(_n) : ud, fd = 1, dd = 2, pd = 4, Lo = "[o
1563
1563
  T[Lo] = T[hd] = T[Ed] = T[Nd] = T[md] = T[gd] = T[$d] = T[xd] = T[Rd] = T[Td] = T[Ad] = T[bd] = T[_d] = T[Vo] = T[Sd] = T[Cd] = T[Od] = T[wd] = T[Md] = T[Id] = T[Pd] = T[Dd] = !0;
1564
1564
  T[vd] = T[Fo] = T[jd] = !1;
1565
1565
  function zt(t, e, r, n, o, a) {
1566
- var s, i = e & fd, c = e & dd, f = e & pd;
1566
+ var s, i = e & fd, c = e & dd, u = e & pd;
1567
1567
  if (r && (s = o ? r(t, n, o, a) : r(t)), s !== void 0)
1568
1568
  return s;
1569
1569
  if (!W(t))
1570
1570
  return t;
1571
- var u = L(t);
1572
- if (u) {
1571
+ var f = L(t);
1572
+ if (f) {
1573
1573
  if (s = If(t), !i)
1574
1574
  return yo(t, s);
1575
1575
  } else {
1576
- var d = H(t), l = d == Fo || d == yd;
1576
+ var l = H(t), d = l == Fo || l == yd;
1577
1577
  if (qt(t))
1578
1578
  return To(t, i);
1579
- if (d == Vo || d == Lo || l && !o) {
1580
- if (s = c || l ? {} : Do(t), !i)
1579
+ if (l == Vo || l == Lo || d && !o) {
1580
+ if (s = c || d ? {} : Do(t), !i)
1581
1581
  return c ? jf(t, yf(s, t)) : Of(t, vf(s, t));
1582
1582
  } else {
1583
- if (!T[d])
1583
+ if (!T[l])
1584
1584
  return o ? t : {};
1585
- s = od(t, d, i);
1585
+ s = od(t, l, i);
1586
1586
  }
1587
1587
  }
1588
1588
  a || (a = new J());
1589
1589
  var h = a.get(t);
1590
1590
  if (h)
1591
1591
  return h;
1592
- a.set(t, s), ld(t) ? t.forEach(function(g) {
1593
- s.add(zt(g, e, r, g, t, a));
1594
- }) : id(t) && t.forEach(function(g, m) {
1595
- s.set(m, zt(g, e, r, m, t, a));
1592
+ a.set(t, s), ld(t) ? t.forEach(function(m) {
1593
+ s.add(zt(m, e, r, m, t, a));
1594
+ }) : id(t) && t.forEach(function(m, g) {
1595
+ s.set(g, zt(m, e, r, g, t, a));
1596
1596
  });
1597
- var y = f ? c ? yr : ke : c ? ee : ve, p = u ? void 0 : y(t);
1598
- return yu(p || t, function(g, m) {
1599
- p && (m = g, g = t[m]), cr(s, m, zt(g, e, r, m, t, a));
1597
+ var y = u ? c ? yr : ke : c ? ee : ve, p = f ? void 0 : y(t);
1598
+ return yu(p || t, function(m, g) {
1599
+ p && (g = m, m = t[g]), cr(s, g, zt(m, e, r, g, t, a));
1600
1600
  }), s;
1601
1601
  }
1602
1602
  var Ld = 1, Fd = 4;
@@ -1631,34 +1631,34 @@ function Bo(t, e, r, n, o, a) {
1631
1631
  var s = r & zd, i = t.length, c = e.length;
1632
1632
  if (i != c && !(s && c > i))
1633
1633
  return !1;
1634
- var f = a.get(t), u = a.get(e);
1635
- if (f && u)
1636
- return f == e && u == t;
1637
- var d = -1, l = !0, h = r & Gd ? new Yt() : void 0;
1638
- for (a.set(t, e), a.set(e, t); ++d < i; ) {
1639
- var y = t[d], p = e[d];
1634
+ var u = a.get(t), f = a.get(e);
1635
+ if (u && f)
1636
+ return u == e && f == t;
1637
+ var l = -1, d = !0, h = r & Gd ? new Yt() : void 0;
1638
+ for (a.set(t, e), a.set(e, t); ++l < i; ) {
1639
+ var y = t[l], p = e[l];
1640
1640
  if (n)
1641
- var g = s ? n(p, y, d, e, t, a) : n(y, p, d, t, e, a);
1642
- if (g !== void 0) {
1643
- if (g)
1641
+ var m = s ? n(p, y, l, e, t, a) : n(y, p, l, t, e, a);
1642
+ if (m !== void 0) {
1643
+ if (m)
1644
1644
  continue;
1645
- l = !1;
1645
+ d = !1;
1646
1646
  break;
1647
1647
  }
1648
1648
  if (h) {
1649
- if (!Bd(e, function(m, v) {
1650
- if (!Uo(h, v) && (y === m || o(y, m, r, n, a)))
1649
+ if (!Bd(e, function(g, v) {
1650
+ if (!Uo(h, v) && (y === g || o(y, g, r, n, a)))
1651
1651
  return h.push(v);
1652
1652
  })) {
1653
- l = !1;
1653
+ d = !1;
1654
1654
  break;
1655
1655
  }
1656
1656
  } else if (!(y === p || o(y, p, r, n, a))) {
1657
- l = !1;
1657
+ d = !1;
1658
1658
  break;
1659
1659
  }
1660
1660
  }
1661
- return a.delete(t), a.delete(e), l;
1661
+ return a.delete(t), a.delete(e), d;
1662
1662
  }
1663
1663
  function Hd(t) {
1664
1664
  var e = -1, r = Array(t.size);
@@ -1696,12 +1696,12 @@ function ap(t, e, r, n, o, a, s) {
1696
1696
  var c = n & Jd;
1697
1697
  if (i || (i = _r), t.size != e.size && !c)
1698
1698
  return !1;
1699
- var f = s.get(t);
1700
- if (f)
1701
- return f == e;
1699
+ var u = s.get(t);
1700
+ if (u)
1701
+ return u == e;
1702
1702
  n |= qd, s.set(t, e);
1703
- var u = Bo(i(t), i(e), n, o, a, s);
1704
- return s.delete(t), u;
1703
+ var f = Bo(i(t), i(e), n, o, a, s);
1704
+ return s.delete(t), f;
1705
1705
  case rp:
1706
1706
  if ($e)
1707
1707
  return $e.call(t) == $e.call(e);
@@ -1710,12 +1710,12 @@ function ap(t, e, r, n, o, a, s) {
1710
1710
  }
1711
1711
  var sp = 1, ip = Object.prototype, cp = ip.hasOwnProperty;
1712
1712
  function up(t, e, r, n, o, a) {
1713
- var s = r & sp, i = ke(t), c = i.length, f = ke(e), u = f.length;
1714
- if (c != u && !s)
1713
+ var s = r & sp, i = ke(t), c = i.length, u = ke(e), f = u.length;
1714
+ if (c != f && !s)
1715
1715
  return !1;
1716
- for (var d = c; d--; ) {
1717
- var l = i[d];
1718
- if (!(s ? l in e : cp.call(e, l)))
1716
+ for (var l = c; l--; ) {
1717
+ var d = i[l];
1718
+ if (!(s ? d in e : cp.call(e, d)))
1719
1719
  return !1;
1720
1720
  }
1721
1721
  var h = a.get(t), y = a.get(e);
@@ -1723,18 +1723,18 @@ function up(t, e, r, n, o, a) {
1723
1723
  return h == e && y == t;
1724
1724
  var p = !0;
1725
1725
  a.set(t, e), a.set(e, t);
1726
- for (var g = s; ++d < c; ) {
1727
- l = i[d];
1728
- var m = t[l], v = e[l];
1726
+ for (var m = s; ++l < c; ) {
1727
+ d = i[l];
1728
+ var g = t[d], v = e[d];
1729
1729
  if (n)
1730
- var S = s ? n(v, m, l, e, t, a) : n(m, v, l, t, e, a);
1731
- if (!(S === void 0 ? m === v || o(m, v, r, n, a) : S)) {
1730
+ var S = s ? n(v, g, d, e, t, a) : n(g, v, d, t, e, a);
1731
+ if (!(S === void 0 ? g === v || o(g, v, r, n, a) : S)) {
1732
1732
  p = !1;
1733
1733
  break;
1734
1734
  }
1735
- g || (g = l == "constructor");
1735
+ m || (m = d == "constructor");
1736
1736
  }
1737
- if (p && !g) {
1737
+ if (p && !m) {
1738
1738
  var C = t.constructor, w = e.constructor;
1739
1739
  C != w && "constructor" in t && "constructor" in e && !(typeof C == "function" && C instanceof C && typeof w == "function" && w instanceof w) && (p = !1);
1740
1740
  }
@@ -1742,24 +1742,24 @@ function up(t, e, r, n, o, a) {
1742
1742
  }
1743
1743
  var lp = 1, Cn = "[object Arguments]", On = "[object Array]", ne = "[object Object]", fp = Object.prototype, wn = fp.hasOwnProperty;
1744
1744
  function dp(t, e, r, n, o, a) {
1745
- var s = L(t), i = L(e), c = s ? On : H(t), f = i ? On : H(e);
1746
- c = c == Cn ? ne : c, f = f == Cn ? ne : f;
1747
- var u = c == ne, d = f == ne, l = c == f;
1748
- if (l && qt(t)) {
1745
+ var s = L(t), i = L(e), c = s ? On : H(t), u = i ? On : H(e);
1746
+ c = c == Cn ? ne : c, u = u == Cn ? ne : u;
1747
+ var f = c == ne, l = u == ne, d = c == u;
1748
+ if (d && qt(t)) {
1749
1749
  if (!qt(e))
1750
1750
  return !1;
1751
- s = !0, u = !1;
1751
+ s = !0, f = !1;
1752
1752
  }
1753
- if (l && !u)
1753
+ if (d && !f)
1754
1754
  return a || (a = new J()), s || dr(t) ? Bo(t, e, r, n, o, a) : ap(t, e, c, r, n, o, a);
1755
1755
  if (!(r & lp)) {
1756
- var h = u && wn.call(t, "__wrapped__"), y = d && wn.call(e, "__wrapped__");
1756
+ var h = f && wn.call(t, "__wrapped__"), y = l && wn.call(e, "__wrapped__");
1757
1757
  if (h || y) {
1758
- var p = h ? t.value() : t, g = y ? e.value() : e;
1759
- return a || (a = new J()), o(p, g, r, n, a);
1758
+ var p = h ? t.value() : t, m = y ? e.value() : e;
1759
+ return a || (a = new J()), o(p, m, r, n, a);
1760
1760
  }
1761
1761
  }
1762
- return l ? (a || (a = new J()), up(t, e, r, n, o, a)) : !1;
1762
+ return d ? (a || (a = new J()), up(t, e, r, n, o, a)) : !1;
1763
1763
  }
1764
1764
  function Sr(t, e, r, n, o) {
1765
1765
  return t === e ? !0 : t == null || e == null || !Y(t) && !Y(e) ? t !== t && e !== e : dp(t, e, r, n, Sr, o);
@@ -1776,13 +1776,13 @@ function mp(t, e, r, n) {
1776
1776
  }
1777
1777
  for (; ++o < a; ) {
1778
1778
  s = r[o];
1779
- var i = s[0], c = t[i], f = s[1];
1779
+ var i = s[0], c = t[i], u = s[1];
1780
1780
  if (s[2]) {
1781
1781
  if (c === void 0 && !(i in t))
1782
1782
  return !1;
1783
1783
  } else {
1784
- var u = new J(), d;
1785
- if (!(d === void 0 ? Sr(f, c, pp | hp, n, u) : d))
1784
+ var f = new J(), l;
1785
+ if (!(l === void 0 ? Sr(u, c, pp | hp, n, f) : l))
1786
1786
  return !1;
1787
1787
  }
1788
1788
  }
@@ -1873,17 +1873,17 @@ function xp(t) {
1873
1873
  return Mt(t, ee(t));
1874
1874
  }
1875
1875
  function Rp(t, e, r, n, o, a, s) {
1876
- var i = He(t, r), c = He(e, r), f = s.get(c);
1877
- if (f) {
1878
- ze(t, r, f);
1876
+ var i = He(t, r), c = He(e, r), u = s.get(c);
1877
+ if (u) {
1878
+ ze(t, r, u);
1879
1879
  return;
1880
1880
  }
1881
- var u = a ? a(i, c, r + "", t, e, s) : void 0, d = u === void 0;
1882
- if (d) {
1883
- var l = L(c), h = !l && qt(c), y = !l && !h && dr(c);
1884
- u = c, l || h || y ? L(i) ? u = i : Ge(i) ? u = yo(i) : h ? (d = !1, u = To(c, !0)) : y ? (d = !1, u = Po(c, !0)) : u = [] : U(c) || Jt(c) ? (u = i, Jt(i) ? u = xp(i) : (!W(i) || sr(i)) && (u = Do(c))) : d = !1;
1881
+ var f = a ? a(i, c, r + "", t, e, s) : void 0, l = f === void 0;
1882
+ if (l) {
1883
+ var d = L(c), h = !d && qt(c), y = !d && !h && dr(c);
1884
+ f = c, d || h || y ? L(i) ? f = i : Ge(i) ? f = yo(i) : h ? (l = !1, f = To(c, !0)) : y ? (l = !1, f = Po(c, !0)) : f = [] : U(c) || Jt(c) ? (f = i, Jt(i) ? f = xp(i) : (!W(i) || sr(i)) && (f = Do(c))) : l = !1;
1885
1885
  }
1886
- d && (s.set(c, u), o(u, c, n, a, s), s.delete(c)), ze(t, r, u);
1886
+ l && (s.set(c, f), o(f, c, n, a, s), s.delete(c)), ze(t, r, f);
1887
1887
  }
1888
1888
  function Ho(t, e, r, n, o) {
1889
1889
  t !== e && $p(e, function(a, s) {
@@ -1946,14 +1946,14 @@ function Vp(t, e, r, n) {
1946
1946
  return t;
1947
1947
  e = It(e, t);
1948
1948
  for (var o = -1, a = e.length, s = a - 1, i = t; i != null && ++o < a; ) {
1949
- var c = Pt(e[o]), f = r;
1949
+ var c = Pt(e[o]), u = r;
1950
1950
  if (c === "__proto__" || c === "constructor" || c === "prototype")
1951
1951
  return t;
1952
1952
  if (o != s) {
1953
- var u = i[c];
1954
- f = void 0, f === void 0 && (f = W(u) ? u : me(e[o + 1]) ? [] : {});
1953
+ var f = i[c];
1954
+ u = void 0, u === void 0 && (u = W(f) ? f : me(e[o + 1]) ? [] : {});
1955
1955
  }
1956
- cr(i, c, f), i = i[c];
1956
+ cr(i, c, u), i = i[c];
1957
1957
  }
1958
1958
  return t;
1959
1959
  }
@@ -1983,21 +1983,21 @@ var zp = 1 / 0, Gp = _t && 1 / _r(new _t([, -0]))[1] == zp ? function(t) {
1983
1983
  function Jp(t, e, r) {
1984
1984
  var n = -1, o = Ou, a = t.length, s = !0, i = [], c = i;
1985
1985
  if (a >= Hp) {
1986
- var f = e ? null : Gp(t);
1987
- if (f)
1988
- return _r(f);
1986
+ var u = e ? null : Gp(t);
1987
+ if (u)
1988
+ return _r(u);
1989
1989
  s = !1, o = Uo, c = new Yt();
1990
1990
  } else
1991
1991
  c = e ? [] : i;
1992
1992
  t:
1993
1993
  for (; ++n < a; ) {
1994
- var u = t[n], d = e ? e(u) : u;
1995
- if (u = u !== 0 ? u : 0, s && d === d) {
1996
- for (var l = c.length; l--; )
1997
- if (c[l] === d)
1994
+ var f = t[n], l = e ? e(f) : f;
1995
+ if (f = f !== 0 ? f : 0, s && l === l) {
1996
+ for (var d = c.length; d--; )
1997
+ if (c[d] === l)
1998
1998
  continue t;
1999
- e && c.push(d), i.push(u);
2000
- } else o(c, d, r) || (c !== i && c.push(d), i.push(u));
1999
+ e && c.push(l), i.push(f);
2000
+ } else o(c, l, r) || (c !== i && c.push(l), i.push(f));
2001
2001
  }
2002
2002
  return i;
2003
2003
  }
@@ -2078,24 +2078,24 @@ function* Or(t, e, r) {
2078
2078
  branch: o
2079
2079
  };
2080
2080
  if (a && (t = e.coercer(t, i), s && e.type !== "type" && q(e.schema) && q(t) && !Array.isArray(t)))
2081
- for (const f in t)
2082
- e.schema[f] === void 0 && delete t[f];
2081
+ for (const u in t)
2082
+ e.schema[u] === void 0 && delete t[u];
2083
2083
  let c = "valid";
2084
- for (const f of e.validator(t, i))
2085
- c = "not_valid", yield [f, void 0];
2086
- for (let [f, u, d] of e.entries(t, i)) {
2087
- const l = Or(u, d, {
2088
- path: f === void 0 ? n : [...n, f],
2089
- branch: f === void 0 ? o : [...o, u],
2084
+ for (const u of e.validator(t, i))
2085
+ c = "not_valid", yield [u, void 0];
2086
+ for (let [u, f, l] of e.entries(t, i)) {
2087
+ const d = Or(f, l, {
2088
+ path: u === void 0 ? n : [...n, u],
2089
+ branch: u === void 0 ? o : [...o, f],
2090
2090
  coerce: a,
2091
2091
  mask: s
2092
2092
  });
2093
- for (const h of l)
2094
- h[0] ? (c = h[0].refinement != null ? "not_refined" : "not_valid", yield [h[0], void 0]) : a && (u = h[1], f === void 0 ? t = u : t instanceof Map ? t.set(f, u) : t instanceof Set ? t.add(u) : q(t) && (u !== void 0 || f in t) && (t[f] = u));
2093
+ for (const h of d)
2094
+ h[0] ? (c = h[0].refinement != null ? "not_refined" : "not_valid", yield [h[0], void 0]) : a && (f = h[1], u === void 0 ? t = f : t instanceof Map ? t.set(u, f) : t instanceof Set ? t.add(f) : q(t) && (f !== void 0 || u in t) && (t[u] = f));
2095
2095
  }
2096
2096
  if (c !== "not_valid")
2097
- for (const f of e.refiner(t, i))
2098
- c = "not_refined", yield [f, void 0];
2097
+ for (const u of e.refiner(t, i))
2098
+ c = "not_refined", yield [u, void 0];
2099
2099
  c === "valid" && (yield [void 0, t]);
2100
2100
  }
2101
2101
  class X {
@@ -2110,12 +2110,12 @@ class X {
2110
2110
  entries: i = function* () {
2111
2111
  }
2112
2112
  } = e;
2113
- this.type = r, this.schema = n, this.entries = i, this.coercer = s, o ? this.validator = (c, f) => {
2114
- const u = o(c, f);
2115
- return jn(u, f, this, c);
2116
- } : this.validator = () => [], a ? this.refiner = (c, f) => {
2117
- const u = a(c, f);
2118
- return jn(u, f, this, c);
2113
+ this.type = r, this.schema = n, this.entries = i, this.coercer = s, o ? this.validator = (c, u) => {
2114
+ const f = o(c, u);
2115
+ return jn(f, u, this, c);
2116
+ } : this.validator = () => [], a ? this.refiner = (c, u) => {
2117
+ const f = a(c, u);
2118
+ return jn(f, u, this, c);
2119
2119
  } : this.refiner = () => [];
2120
2120
  }
2121
2121
  /**
@@ -2935,29 +2935,29 @@ class P {
2935
2935
  if (typeof n == "string")
2936
2936
  return n;
2937
2937
  const o = {};
2938
- Object.keys(n.props || {}).forEach((d) => {
2939
- o[d] = n.props[d].export(e);
2938
+ Object.keys(n.props || {}).forEach((l) => {
2939
+ o[l] = n.props[l].export(e);
2940
2940
  });
2941
- const a = (r = n.children) == null ? void 0 : r.map((d) => d instanceof P ? d.export(e) : d), s = n.configure || {}, i = s.propsSetter || {}, c = {};
2942
- Object.keys(i).forEach((d) => {
2943
- const l = No(i, d, !1);
2944
- l && (c[d] = l);
2941
+ const a = (r = n.children) == null ? void 0 : r.map((l) => l instanceof P ? l.export(e) : l), s = n.configure || {}, i = s.propsSetter || {}, c = {};
2942
+ Object.keys(i).forEach((l) => {
2943
+ const d = No(i, l, !1);
2944
+ d && (c[l] = d);
2945
2945
  }), s.propsSetter = c;
2946
- const f = this.materialsModel.usedMaterials.find(
2947
- (d) => {
2948
- var l;
2949
- return d.componentName === ((l = this.material) == null ? void 0 : l.componentName);
2946
+ const u = this.materialsModel.usedMaterials.find(
2947
+ (l) => {
2948
+ var d;
2949
+ return l.componentName === ((d = this.material) == null ? void 0 : d.componentName);
2950
2950
  }
2951
2951
  );
2952
- this.material && !f && this.materialsModel.usedMaterials.push(this.material);
2953
- let u = {
2952
+ this.material && !u && this.materialsModel.usedMaterials.push(this.material);
2953
+ let f = {
2954
2954
  ...n,
2955
2955
  configure: s,
2956
2956
  props: o,
2957
2957
  children: a,
2958
2958
  condition: n.condition
2959
2959
  };
2960
- return e === "design" && delete u.id, u = xr(u), u;
2960
+ return e === "design" && delete f.id, f = xr(f), f;
2961
2961
  }
2962
2962
  }
2963
2963
  const $n = (t, e, r) => {
@@ -3053,8 +3053,8 @@ class Kt {
3053
3053
  o[c] = n.props[c].export(e);
3054
3054
  });
3055
3055
  const a = ((r = n.children) == null ? void 0 : r.map((c) => {
3056
- var f;
3057
- return (f = c == null ? void 0 : c.export) == null ? void 0 : f.call(c, e);
3056
+ var u;
3057
+ return (u = c == null ? void 0 : c.export) == null ? void 0 : u.call(c, e);
3058
3058
  })) || [], s = {
3059
3059
  ...n,
3060
3060
  props: o,
@@ -3102,8 +3102,8 @@ function _h(t, e) {
3102
3102
  }
3103
3103
  if (U(i)) {
3104
3104
  const c = i;
3105
- Object.keys(c).forEach((f) => {
3106
- a(c[f]);
3105
+ Object.keys(c).forEach((u) => {
3106
+ a(c[u]);
3107
3107
  });
3108
3108
  return;
3109
3109
  }
@@ -3219,22 +3219,22 @@ class pt {
3219
3219
  default: []
3220
3220
  }, c = n[a];
3221
3221
  if (c.length !== 0) {
3222
- c.forEach((d) => {
3223
- const l = d.category || "default";
3224
- s.includes(l) || (s.push(l), i[l] = []), i[l].push(d);
3222
+ c.forEach((l) => {
3223
+ const d = l.category || "default";
3224
+ s.includes(d) || (s.push(d), i[d] = []), i[d].push(l);
3225
3225
  });
3226
- const f = [];
3227
- s.forEach((d) => {
3228
- i[d].length && f.push({
3229
- name: d,
3230
- list: i[d]
3226
+ const u = [];
3227
+ s.forEach((l) => {
3228
+ i[l].length && u.push({
3229
+ name: l,
3230
+ list: i[l]
3231
3231
  });
3232
3232
  });
3233
- const u = {
3233
+ const f = {
3234
3234
  name: a,
3235
- list: f
3235
+ list: u
3236
3236
  };
3237
- o.push(u);
3237
+ o.push(f);
3238
3238
  }
3239
3239
  }), o = o.sort((a, s) => (a.name || "") > (s.name || "") ? 1 : -1), o;
3240
3240
  }
@@ -3320,7 +3320,7 @@ class le {
3320
3320
  if (a instanceof st)
3321
3321
  return console.warn("CProp can not add node"), !1;
3322
3322
  if (a instanceof Nt) {
3323
- const i = a.value.value, c = i.findIndex((f) => f === r) ?? -1;
3323
+ const i = a.value.value, c = i.findIndex((u) => u === r) ?? -1;
3324
3324
  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;
3325
3325
  }
3326
3326
  if (a instanceof le)
@@ -3397,11 +3397,11 @@ class le {
3397
3397
  export(e = Er.SAVE) {
3398
3398
  var r;
3399
3399
  const n = this.data.componentsTree.export(e), o = this.assetPackagesList, a = [], s = this.materialsModel.usedMaterials.map((c) => {
3400
- const f = o.find((u) => {
3401
- var d;
3402
- return u.package === ((d = c.value.npm) == null ? void 0 : d.package);
3400
+ const u = o.find((f) => {
3401
+ var l;
3402
+ return f.package === ((l = c.value.npm) == null ? void 0 : l.package);
3403
3403
  });
3404
- return f && a.push(f), {
3404
+ return u && a.push(u), {
3405
3405
  componentName: c.componentName,
3406
3406
  ...ko(c.value.npm || {})
3407
3407
  };
@@ -3415,8 +3415,8 @@ class le {
3415
3415
  assets: []
3416
3416
  };
3417
3417
  return (r = this.data.thirdLibs) == null || r.forEach((c) => {
3418
- const f = o.find((u) => c.package === u.package);
3419
- f && a.push(f);
3418
+ const u = o.find((f) => c.package === f.package);
3419
+ u && a.push(u);
3420
3420
  }), i.assets = qp(a, (c) => c.package), i = Wo(i, ["id"]), JSON.parse(JSON.stringify(i));
3421
3421
  }
3422
3422
  getRootNode() {
@@ -3448,58 +3448,68 @@ const Ce = "DYNAMIC", jh = ["$$context", "$$nodeModel"], oa = "ON_DID_RENDER", a
3448
3448
  const r = t.handler, { context: n, storeManager: o } = e;
3449
3449
  return e.actionVariableSpace || (e.actionVariableSpace = {}), async function(...a) {
3450
3450
  const s = {}, i = async (f) => {
3451
- const u = f;
3452
- if (u.type === "RUN_CODE") {
3451
+ const l = f;
3452
+ if (l.type === "RUN_CODE") {
3453
3453
  const d = he({
3454
3454
  funcName: "",
3455
3455
  funcBody: `function() {
3456
- ${u.value} }`,
3456
+ ${l.value} }`,
3457
3457
  nodeContext: n,
3458
3458
  storeManager: o,
3459
3459
  $$response: e.$$response,
3460
3460
  actionVariableSpace: e.actionVariableSpace
3461
3461
  });
3462
- let l;
3463
- e.$$response !== void 0 ? l = d(e.$$response, ...a) : l = d(...a), l != null && l.then ? s[u.id] = await l : s[u.id] = l;
3462
+ let h;
3463
+ e.$$response !== void 0 ? h = d(e.$$response, ...a) : h = d(...a), h != null && h.then ? s[l.id] = await h : s[l.id] = h;
3464
3464
  }
3465
- if (u.type === "JUMP_LINK") {
3466
- const l = Nh(u, e)(...a);
3467
- l != null && l.then ? s[u.id] = await l : s[u.id] = l;
3465
+ if (l.type === "JUMP_LINK") {
3466
+ const h = Nh(l, e)(...a);
3467
+ h != null && h.then ? s[l.id] = await h : s[l.id] = h;
3468
3468
  }
3469
- if (u.type === "REQUEST_API") {
3470
- const { run: d, afterFailedResponse: l, afterSuccessResponse: h } = $h(u, e);
3469
+ if (l.type === "REQUEST_API") {
3470
+ const { run: d, afterFailedResponse: h, afterSuccessResponse: y } = $h(l, e);
3471
3471
  try {
3472
- const y = d(...a);
3473
- y != null && y.then ? s[u.id] = await y : s[u.id] = y, u.responseVarName && (e.actionVariableSpace[u.responseVarName] = s[u.id]);
3474
- const p = h(s[u.id], ...a);
3475
- return p != null && p.then ? await p : p;
3476
- } catch (y) {
3477
- const p = await l(y);
3478
- return p != null && p.then ? await p : p;
3472
+ const p = d(...a);
3473
+ p != null && p.then ? s[l.id] = await p : s[l.id] = p, l.responseVarName && (e.actionVariableSpace[l.responseVarName] = s[l.id]);
3474
+ const m = y(s[l.id], ...a);
3475
+ return m != null && m.then ? await m : m;
3476
+ } catch (p) {
3477
+ const m = await h(p);
3478
+ return m != null && m.then ? await m : m;
3479
3479
  }
3480
3480
  }
3481
- if (u.type === "CALL_NODE_METHOD") {
3482
- const l = xh(u, e)(...a);
3483
- l != null && l.then ? s[u.id] = await l : s[u.id] = l, u.returnVarName && (e.actionVariableSpace[u.returnVarName] = s[u.id]);
3481
+ if (l.type === "CALL_NODE_METHOD") {
3482
+ const h = xh(l, e)(...a);
3483
+ h != null && h.then ? s[l.id] = await h : s[l.id] = h, l.returnVarName && (e.actionVariableSpace[l.returnVarName] = s[l.id]);
3484
3484
  }
3485
- if (u.type === "ASSIGN_VALUE") {
3486
- const d = Rh(u, e);
3487
- let l = [...a];
3488
- e.$$response !== void 0 && (l = [e.$$response, l]);
3489
- const h = d(...l);
3490
- s[u.id] = await h;
3485
+ if (l.type === "ASSIGN_VALUE") {
3486
+ const d = Rh(l, e);
3487
+ let h = [...a];
3488
+ e.$$response !== void 0 && (h = [e.$$response, h]);
3489
+ const y = d(...h);
3490
+ s[l.id] = await y;
3491
3491
  }
3492
3492
  };
3493
3493
  let c = r[0];
3494
- for (; c; )
3495
- await i(c), c = r.find((u) => (c == null ? void 0 : c.next) && u.id === (c == null ? void 0 : c.next));
3494
+ const u = /* @__PURE__ */ new Set();
3495
+ for (; c; ) {
3496
+ if (u.has(c.id))
3497
+ return;
3498
+ await i(c), u.add(c.id), c = r.find((l) => (c == null ? void 0 : c.next) && l.id === (c == null ? void 0 : c.next));
3499
+ }
3496
3500
  };
3497
3501
  };
3498
3502
  function Nh(t, e) {
3499
3503
  return ut(t.link, e);
3500
3504
  }
3501
3505
  const ut = (t, e) => function(...r) {
3502
- return ct(t) ? bt(t.value, e.context) : ra(t) ? he({
3506
+ return ct(t) ? bt(t.value, {
3507
+ ...e.context,
3508
+ nodeContext: e.context,
3509
+ storeManager: e.storeManager,
3510
+ $$response: e.$$response,
3511
+ actionVariableSpace: e.actionVariableSpace
3512
+ }) : ra(t) ? he({
3503
3513
  funcName: t.name || "",
3504
3514
  funcBody: t.value,
3505
3515
  nodeContext: e.context,
@@ -3509,7 +3519,7 @@ const ut = (t, e) => function(...r) {
3509
3519
  })(...r) : t;
3510
3520
  }, $h = (t, e) => ({
3511
3521
  run: function(...a) {
3512
- var l, h;
3522
+ var d, h;
3513
3523
  let s = "";
3514
3524
  t.apiPath && (s = ut(t.apiPath, e)(...a));
3515
3525
  const i = t.body || {};
@@ -3520,15 +3530,15 @@ const ut = (t, e) => function(...r) {
3520
3530
  Object.keys(c).forEach((y) => {
3521
3531
  c[y] = ut(c[y], e)(...a);
3522
3532
  });
3523
- const f = t.header || {};
3524
- Object.keys(f).forEach((y) => {
3525
- f[y] = ut(f[y], e)(...a);
3533
+ const u = t.header || {};
3534
+ Object.keys(u).forEach((y) => {
3535
+ u[y] = ut(u[y], e)(...a);
3526
3536
  });
3527
- const u = t.method || "GET";
3528
- return (h = (l = e.context).requestAPI) == null ? void 0 : h.call(l, {
3537
+ const f = t.method || "GET";
3538
+ return (h = (d = e.context).requestAPI) == null ? void 0 : h.call(d, {
3529
3539
  url: s,
3530
- method: u,
3531
- header: f,
3540
+ method: f,
3541
+ header: u,
3532
3542
  body: i,
3533
3543
  query: c
3534
3544
  });
@@ -3597,36 +3607,36 @@ const ut = (t, e) => function(...r) {
3597
3607
  } else t.valueType === "MEMORY" && (e.actionVariableSpace[t.targetValueName] = a);
3598
3608
  return a;
3599
3609
  }, oe = (t = {}, e) => {
3600
- const { $$context: r, runtimeComponentCache: n, getComponent: o, storeManager: a } = e, s = t, i = (f) => {
3601
- if (Array.isArray(f))
3602
- return f.map((u) => i(u));
3603
- if (Ke(f))
3604
- return i(f.value);
3605
- if (bh(f)) {
3606
- const u = f.value, d = u.value;
3607
- if (!d)
3610
+ const { $$context: r, runtimeComponentCache: n, getComponent: o, storeManager: a } = e, s = t, i = (u) => {
3611
+ if (Array.isArray(u))
3612
+ return u.map((f) => i(f));
3613
+ if (Ke(u))
3614
+ return i(u.value);
3615
+ if (bh(u)) {
3616
+ const f = u.value, l = f.value;
3617
+ if (!l)
3608
3618
  return console.warn("slot value is null, this maybe cause some error, pls check it", t), () => {
3609
3619
  };
3610
- const l = (h) => {
3620
+ const d = (h) => {
3611
3621
  const y = `${h.id}-${Ce}`;
3612
3622
  if (n.get(h.id))
3613
3623
  return {
3614
3624
  key: y,
3615
3625
  component: n.get(h.id)
3616
3626
  };
3617
- const p = o(h), g = Tr(p, h, {
3627
+ const p = o(h), m = Tr(p, h, {
3618
3628
  ...e
3619
- }), m = u.params || [];
3629
+ }), g = f.params || [];
3620
3630
  return {
3621
3631
  component: (...C) => {
3622
- const w = fo(C, m), j = Xe(
3632
+ const w = fo(C, g), j = Xe(
3623
3633
  {
3624
3634
  params: w,
3625
3635
  nodeRefs: r.nodeRefs
3626
3636
  },
3627
3637
  r
3628
3638
  );
3629
- return Xt(g, {
3639
+ return Xt(m, {
3630
3640
  $$context: j,
3631
3641
  key: y
3632
3642
  });
@@ -3634,74 +3644,74 @@ const ut = (t, e) => function(...r) {
3634
3644
  key: y
3635
3645
  };
3636
3646
  };
3637
- if (Array.isArray(d)) {
3638
- const h = d == null ? void 0 : d.map((y) => l(y));
3647
+ if (Array.isArray(l)) {
3648
+ const h = l == null ? void 0 : l.map((y) => d(y));
3639
3649
  return (...y) => h.map((p) => {
3640
3650
  if (wc(p.component)) {
3641
- const m = p.component;
3642
- return N.createElement(m, {
3651
+ const g = p.component;
3652
+ return N.createElement(g, {
3643
3653
  $$context: r,
3644
3654
  key: p.key
3645
3655
  });
3646
3656
  } else {
3647
- const m = p.component;
3648
- return m == null ? void 0 : m(...y);
3657
+ const g = p.component;
3658
+ return g == null ? void 0 : g(...y);
3649
3659
  }
3650
3660
  });
3651
3661
  } else
3652
- return l(d).component;
3662
+ return d(l).component;
3653
3663
  } else {
3654
- if (ct(f))
3655
- return bt(f.value, r || {});
3656
- if (ra(f)) {
3657
- const u = f;
3664
+ if (ct(u))
3665
+ return bt(u.value, r || {});
3666
+ if (ra(u)) {
3667
+ const f = u;
3658
3668
  return he({
3659
- funcBody: u.value,
3660
- funcName: u.name || "",
3669
+ funcBody: f.value,
3670
+ funcName: f.name || "",
3661
3671
  nodeContext: r,
3662
3672
  storeManager: a
3663
3673
  });
3664
3674
  } else {
3665
- if (vh(f))
3666
- return St(f, {
3675
+ if (vh(u))
3676
+ return St(u, {
3667
3677
  context: r,
3668
3678
  storeManager: a,
3669
3679
  actionVariableSpace: {}
3670
3680
  });
3671
- if (Tt(f)) {
3672
- let u = f;
3673
- Ke(f) && (u = f.value);
3674
- const d = u, l = {};
3675
- return Object.keys(u).forEach((h) => {
3676
- l[h] = i(d[h]);
3677
- }), l;
3681
+ if (Tt(u)) {
3682
+ let f = u;
3683
+ Ke(u) && (f = u.value);
3684
+ const l = f, d = {};
3685
+ return Object.keys(f).forEach((h) => {
3686
+ d[h] = i(l[h]);
3687
+ }), d;
3678
3688
  } else
3679
- return f;
3689
+ return u;
3680
3690
  }
3681
3691
  }
3682
3692
  }, c = {};
3683
- return Object.keys(s).forEach((f) => {
3684
- const u = s[f];
3685
- c[f] = i(u);
3693
+ return Object.keys(s).forEach((u) => {
3694
+ const f = s[u];
3695
+ c[u] = i(f);
3686
3696
  }), c;
3687
3697
  }, Th = (t, e) => {
3688
3698
  const { runtimeComponentCache: r, $$context: n = {}, getComponent: o, renderMode: a } = e, { $$context: s, idx: i, ...c } = e;
3689
- return typeof t == "string" ? Xt(t) : yh(t) ? (({ currentNode: u }) => {
3690
- const d = u.value.id;
3691
- let l = null;
3692
- if (r.get(d)) {
3693
- const p = r.get(d);
3694
- l = p == null ? void 0 : p.component;
3699
+ return typeof t == "string" ? Xt(t) : yh(t) ? (({ currentNode: f }) => {
3700
+ const l = f.value.id;
3701
+ let d = null;
3702
+ if (r.get(l)) {
3703
+ const p = r.get(l);
3704
+ d = p == null ? void 0 : p.component;
3695
3705
  } else {
3696
- const p = o(u);
3697
- l = Tr(p, u, {
3706
+ const p = o(f);
3707
+ d = Tr(p, f, {
3698
3708
  ...c
3699
- }), !r.get(d) && a !== "design" && r.set(d, {
3700
- component: l
3709
+ }), !r.get(l) && a !== "design" && r.set(l, {
3710
+ component: d
3701
3711
  });
3702
3712
  }
3703
- const h = `${d}-${Ce}`;
3704
- return Xt(l, {
3713
+ const h = `${l}-${Ce}`;
3714
+ return Xt(d, {
3705
3715
  $$context: n,
3706
3716
  $$nodeModel: t,
3707
3717
  key: h
@@ -3717,10 +3727,10 @@ const ut = (t, e) => function(...r) {
3717
3727
  onComponentMount: s,
3718
3728
  onComponentDestroy: i,
3719
3729
  refManager: c,
3720
- processNodeConfigHook: f,
3721
- requestAPI: u
3722
- } = r, { ...d } = r;
3723
- class l extends N.Component {
3730
+ processNodeConfigHook: u,
3731
+ requestAPI: f
3732
+ } = r, { ...l } = r;
3733
+ class d extends N.Component {
3724
3734
  constructor(p) {
3725
3735
  super(p);
3726
3736
  O(this, "_CONDITION", !0);
@@ -3742,17 +3752,17 @@ const ut = (t, e) => function(...r) {
3742
3752
  this.storeState.setState(p);
3743
3753
  });
3744
3754
  O(this, "getStyleDomById", (p) => {
3745
- const g = this.mediaStyleDomMap;
3746
- let m = g[p];
3747
- return m || (m = document.createElement("style"), g[p] = m), m.id = p, m;
3755
+ const m = this.mediaStyleDomMap;
3756
+ let g = m[p];
3757
+ return g || (g = document.createElement("style"), m[p] = g), g.id = p, g;
3748
3758
  });
3749
3759
  O(this, "addMediaCSS", () => {
3750
- var m;
3760
+ var g;
3751
3761
  let p = this.domHeader;
3752
- if (p || (p = (m = document.getElementsByTagName("head")) == null ? void 0 : m[0], this.domHeader = p), !this.domHeader)
3762
+ if (p || (p = (g = document.getElementsByTagName("head")) == null ? void 0 : g[0], this.domHeader = p), !this.domHeader)
3753
3763
  return;
3754
- const g = this._NODE_MODEL.value.css;
3755
- g && g.value.forEach((v) => {
3764
+ const m = this._NODE_MODEL.value.css;
3765
+ m && m.value.forEach((v) => {
3756
3766
  var w;
3757
3767
  const S = `${this.UNIQUE_ID}_${v.state}`;
3758
3768
  let C = qr(this._NODE_MODEL);
@@ -3768,43 +3778,43 @@ const ut = (t, e) => function(...r) {
3768
3778
  });
3769
3779
  O(this, "removeMediaCSS", () => {
3770
3780
  const p = this.mediaStyleDomMap;
3771
- Object.keys(p).forEach((g) => {
3772
- var m;
3773
- (m = this.domHeader) == null || m.removeChild(p[g]);
3781
+ Object.keys(p).forEach((m) => {
3782
+ var g;
3783
+ (g = this.domHeader) == null || g.removeChild(p[m]);
3774
3784
  }), this.mediaStyleDomMap = {};
3775
3785
  });
3776
3786
  O(this, "rebuildNode", () => {
3777
3787
  this.storeListenDisposeList.forEach((p) => p()), this.removeMediaCSS(), this.connectStore(), this.addMediaCSS(), this.forceUpdate();
3778
3788
  });
3779
3789
  this.targetComponentRef = N.createRef(), this.state = e.value.state || {};
3780
- const g = e.value.nodeName || e.id;
3781
- this.nodeName = g;
3782
- const m = n.getStore(g);
3783
- m ? (this.storeState = m, m.setState({
3790
+ const m = e.value.nodeName || e.id;
3791
+ this.nodeName = m;
3792
+ const g = n.getStore(m);
3793
+ g ? (this.storeState = g, g.setState({
3784
3794
  ...e.value.state || {}
3785
- })) : this.storeState = n.addStore(g, () => ({
3795
+ })) : this.storeState = n.addStore(m, () => ({
3786
3796
  ...e.value.state || {}
3787
3797
  })), this.storeState.subscribe((S) => {
3788
3798
  this.setState({
3789
3799
  ...S
3790
3800
  });
3791
3801
  }), this.connectStore();
3792
- const v = o.get(g);
3802
+ const v = o.get(m);
3793
3803
  v ? this.variableSpace = v : (this.variableSpace = {
3794
3804
  staticVar: {},
3795
3805
  methods: {}
3796
- }, o.add(g, this.variableSpace));
3806
+ }, o.add(m, this.variableSpace));
3797
3807
  }
3798
3808
  connectStore() {
3799
- const p = xn(e.props, (C) => !!ct(C)), g = xn(
3809
+ const p = xn(e.props, (C) => !!ct(C)), m = xn(
3800
3810
  {
3801
3811
  css: e.value.css,
3802
3812
  class: e.value.classNames
3803
3813
  },
3804
3814
  (C) => !!ct(C)
3805
3815
  );
3806
- let m = [];
3807
- [...p, ...g].map((C) => {
3816
+ let g = [];
3817
+ [...p, ...m].map((C) => {
3808
3818
  const w = C.val, j = [
3809
3819
  /\$\$context.stateManager\.(.+?)\./gim,
3810
3820
  /\$\$context.stateManager\["(.+?)"\]/gim,
@@ -3814,9 +3824,9 @@ const ut = (t, e) => function(...r) {
3814
3824
  /getStateById\('(.+?)'\)/gim,
3815
3825
  /getStateById\("(.+?)"\)/gim
3816
3826
  ], D = $c(w.value, j);
3817
- m = [...m, ...D];
3827
+ g = [...g, ...D];
3818
3828
  }).filter(Boolean);
3819
- const v = Array.from(new Set(m)), S = [];
3829
+ const v = Array.from(new Set(g)), S = [];
3820
3830
  v.length && v.forEach((C) => {
3821
3831
  n.getStore(C) || (n.addStore(C, () => ({})), console.warn(n, C, "not exits"));
3822
3832
  const j = n.connect(C, (D) => {
@@ -3835,18 +3845,18 @@ const ut = (t, e) => function(...r) {
3835
3845
  ...this.state,
3836
3846
  ...e.value.state || {}
3837
3847
  }), this.rebuildNode();
3838
- }, g = oa, m = (v = e.value.eventListener) == null ? void 0 : v.find((S) => S.name === g);
3839
- m && St(m.func, {
3848
+ }, m = oa, g = (v = e.value.eventListener) == null ? void 0 : v.find((S) => S.name === m);
3849
+ g && St(g.func, {
3840
3850
  context: this.createCurrentNodeCtx(),
3841
3851
  storeManager: n,
3842
3852
  actionVariableSpace: {}
3843
3853
  })(), e.onChange(p);
3844
3854
  }
3845
3855
  componentWillUnmount() {
3846
- var m;
3856
+ var g;
3847
3857
  this.storeListenDisposeList.forEach((v) => v()), this.removeMediaCSS(), i == null || i(this, e);
3848
- const p = aa, g = (m = e.value.eventListener) == null ? void 0 : m.find((v) => v.name === p);
3849
- g && St(g.func, {
3858
+ const p = aa, m = (g = e.value.eventListener) == null ? void 0 : g.find((v) => v.name === p);
3859
+ m && St(m.func, {
3850
3860
  context: this.createCurrentNodeCtx(),
3851
3861
  storeManager: n,
3852
3862
  actionVariableSpace: {}
@@ -3854,69 +3864,69 @@ const ut = (t, e) => function(...r) {
3854
3864
  }
3855
3865
  /** 转换节点的 methods */
3856
3866
  transformMethods(p) {
3857
- const { context: g } = p, m = oe(
3867
+ const { context: m } = p, g = oe(
3858
3868
  {
3859
3869
  methods: e.value.methods
3860
3870
  },
3861
3871
  {
3862
- $$context: g,
3863
- ...d
3872
+ $$context: m,
3873
+ ...l
3864
3874
  }
3865
- ), v = e.value.methods || [], S = m.methods, C = v.reduce((w, j, D) => (w[j.name] = S[D], w), {});
3866
- g.methods = C, this.variableSpace.methods = Object.assign(this.variableSpace.methods, C);
3875
+ ), v = e.value.methods || [], S = g.methods, C = v.reduce((w, j, D) => (w[j.name] = S[D], w), {});
3876
+ m.methods = C, this.variableSpace.methods = Object.assign(this.variableSpace.methods, C);
3867
3877
  }
3868
3878
  /** 处理根节点的 context */
3869
3879
  processRootContext(p) {
3870
- e.value.componentName === Lt.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState, p.requestAPI = u, p.getGlobalState = () => this.state);
3880
+ e.value.componentName === Lt.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState, p.requestAPI = f, p.getGlobalState = () => this.state);
3871
3881
  }
3872
- processNodeClassName(p, g) {
3882
+ processNodeClassName(p, m) {
3873
3883
  var S;
3874
- const m = ((S = e.value.classNames) == null ? void 0 : S.map((C) => {
3884
+ const g = ((S = e.value.classNames) == null ? void 0 : S.map((C) => {
3875
3885
  var D;
3876
3886
  const w = C.name;
3877
- return (ct(C.status) ? bt(((D = C.status) == null ? void 0 : D.value) || "", g) : !1) ? w : "";
3887
+ return (ct(C.status) ? bt(((D = C.status) == null ? void 0 : D.value) || "", m) : !1) ? w : "";
3878
3888
  })) || [];
3879
- let v = `${p ?? ""} ${m.join(" ")}`.trim();
3889
+ let v = `${p ?? ""} ${g.join(" ")}`.trim();
3880
3890
  return e.value.css && (v = `${qr(e)} ${v}`.trim()), v;
3881
3891
  }
3882
3892
  processNodeStyle(p) {
3883
3893
  if (!e.value.style)
3884
3894
  return {};
3885
- const g = oe(
3895
+ const m = oe(
3886
3896
  { style: e.value.style },
3887
3897
  {
3888
3898
  $$context: p,
3889
- ...d
3899
+ ...l
3890
3900
  }
3891
3901
  );
3892
- return Nc(g.style || []);
3902
+ return Nc(m.style || []);
3893
3903
  }
3894
- processNodeChild(p, g) {
3895
- let m = [];
3904
+ processNodeChild(p, m) {
3905
+ let g = [];
3896
3906
  if (p !== void 0)
3897
- m = Array.isArray(p) ? p : [p];
3907
+ g = Array.isArray(p) ? p : [p];
3898
3908
  else {
3899
3909
  const v = [];
3900
3910
  e.value.children.forEach((C, w) => {
3901
3911
  const j = Th(C, {
3902
- $$context: g,
3912
+ $$context: m,
3903
3913
  idx: w,
3904
- ...d
3914
+ ...l
3905
3915
  });
3906
3916
  v.push(j);
3907
- }), m = v;
3917
+ }), g = v;
3908
3918
  }
3909
- return m;
3919
+ return g;
3910
3920
  }
3911
- processNodeConditionAndConfigHook(p, g, m) {
3921
+ processNodeConditionAndConfigHook(p, m, g) {
3912
3922
  let v = e.value.condition ?? !0;
3913
- typeof v != "boolean" && (v = bt(v.value, m || {}));
3923
+ typeof v != "boolean" && (v = bt(v.value, g || {}));
3914
3924
  let S = {
3915
3925
  condition: v,
3916
3926
  props: p
3917
3927
  };
3918
- f && (S = f(S, e));
3919
- const C = Xt(t, S.props, ...g);
3928
+ u && (S = u(S, e));
3929
+ const C = Xt(t, S.props, ...m);
3920
3930
  return this._CONDITION = S.condition, S.condition ? C : N.createElement(
3921
3931
  "div",
3922
3932
  {
@@ -3928,8 +3938,8 @@ const ut = (t, e) => function(...r) {
3928
3938
  );
3929
3939
  }
3930
3940
  processNodeEventListener(p) {
3931
- const g = e.value.eventListener, m = {};
3932
- return g == null || g.forEach((v) => {
3941
+ const m = e.value.eventListener, g = {};
3942
+ return m == null || m.forEach((v) => {
3933
3943
  if (Eh.includes(v.name))
3934
3944
  return;
3935
3945
  const S = St(v.func, {
@@ -3937,43 +3947,43 @@ const ut = (t, e) => function(...r) {
3937
3947
  storeManager: n,
3938
3948
  actionVariableSpace: {}
3939
3949
  });
3940
- m[v.name] = S;
3941
- }), m;
3950
+ g[v.name] = S;
3951
+ }), g;
3942
3952
  }
3943
3953
  createCurrentNodeCtx() {
3944
- const { $$context: p } = this.props, g = e.value.nodeName || e.id, m = e.id, v = {
3954
+ const { $$context: p } = this.props, m = e.value.nodeName || e.id, g = e.id, v = {
3945
3955
  state: this.state || {},
3946
3956
  staticVar: this.variableSpace.staticVar,
3947
3957
  updateState: this.updateState,
3948
3958
  storeManager: n,
3949
- getState: () => n.getStateObj(g),
3950
- getStateObj: () => n.getStateObj(g),
3959
+ getState: () => n.getStateObj(m),
3960
+ getStateObj: () => n.getStateObj(m),
3951
3961
  getStateObjById: (C) => n.getStateObj(C),
3952
3962
  stateManager: n.getStateSnapshot(),
3953
3963
  getMethods: () => {
3954
- const C = o.get(m).methods, w = c.get(m).current;
3964
+ const C = o.get(g).methods, w = c.get(g).current;
3955
3965
  return Wr(C, w);
3956
3966
  },
3957
3967
  getMethodsById: (C) => {
3958
3968
  const w = o.get(C).methods, j = c.get(C).current;
3959
3969
  return Wr(w, j);
3960
3970
  },
3961
- getStaticVar: () => o.get(g).staticVar,
3971
+ getStaticVar: () => o.get(m).staticVar,
3962
3972
  getStaticVarById: (C) => o.get(C).staticVar,
3963
3973
  nodeRefs: p.nodeRefs
3964
3974
  };
3965
3975
  return this.processRootContext(v), Xe(v, p);
3966
3976
  }
3967
3977
  renderCore() {
3968
- const { $$context: p, ...g } = this.props, m = {
3978
+ const { $$context: p, ...m } = this.props, g = {
3969
3979
  key: e.id,
3970
3980
  ...e.props,
3971
- ...g
3981
+ ...m
3972
3982
  }, v = this.createCurrentNodeCtx();
3973
3983
  this.transformMethods({ context: v });
3974
- let S = oe(m, {
3984
+ let S = oe(g, {
3975
3985
  $$context: v,
3976
- ...d
3986
+ ...l
3977
3987
  });
3978
3988
  const C = this.processNodeClassName(S.className, v);
3979
3989
  S.className = C;
@@ -3992,10 +4002,10 @@ const ut = (t, e) => function(...r) {
3992
4002
  return this.processNodeConditionAndConfigHook(S, D, v);
3993
4003
  }
3994
4004
  renderLoop() {
3995
- const { $$context: p, ...g } = this.props, m = {
4005
+ const { $$context: p, ...m } = this.props, g = {
3996
4006
  key: e.id,
3997
4007
  ...e.props,
3998
- ...g
4008
+ ...m
3999
4009
  }, v = this.createCurrentNodeCtx();
4000
4010
  this.transformMethods({ context: v });
4001
4011
  const S = e.value.loop;
@@ -4017,9 +4027,9 @@ const ut = (t, e) => function(...r) {
4017
4027
  nodeRefs: v.nodeRefs
4018
4028
  },
4019
4029
  v
4020
- ), Q = oe(m, {
4030
+ ), Q = oe(g, {
4021
4031
  $$context: at,
4022
- ...d
4032
+ ...l
4023
4033
  }), ca = this.processNodeClassName(Q.className, at);
4024
4034
  Q.className = ca;
4025
4035
  const ua = this.processNodeStyle(at);
@@ -4042,7 +4052,7 @@ const ut = (t, e) => function(...r) {
4042
4052
  return p && p.open ? this.renderLoop() : this.renderCore();
4043
4053
  }
4044
4054
  }
4045
- return O(l, "__CP_TYPE__", Ce), l.displayName = `${e.value.componentName}Dynamic`, l;
4055
+ return O(d, "__CP_TYPE__", Ce), d.displayName = `${e.value.componentName}Dynamic`, d;
4046
4056
  };
4047
4057
  class Ah {
4048
4058
  constructor() {
@@ -4087,26 +4097,26 @@ class Ah {
4087
4097
  onGetComponent: s,
4088
4098
  onComponentMount: i,
4089
4099
  onComponentDestroy: c,
4090
- renderMode: f,
4091
- processNodeConfigHook: u,
4092
- requestAPI: d
4100
+ renderMode: u,
4101
+ processNodeConfigHook: f,
4102
+ requestAPI: l
4093
4103
  }) {
4094
- this.renderMode = f, this.components = r, this.onGetRef = n, this.onGetComponent = s, this.onComponentMount = i, this.onComponentDestroy = c, this.processNodeConfigHook = u, this.refManager = o, this.requestAPI = d;
4095
- const l = e.value.componentsTree, h = this.getComponent(l), y = Tr(h, e.value.componentsTree, {
4104
+ this.renderMode = u, this.components = r, this.onGetRef = n, this.onGetComponent = s, this.onComponentMount = i, this.onComponentDestroy = c, this.processNodeConfigHook = f, this.refManager = o, this.requestAPI = l;
4105
+ const d = e.value.componentsTree, h = this.getComponent(d), y = Tr(h, e.value.componentsTree, {
4096
4106
  storeManager: this.storeManager,
4097
4107
  variableManager: this.variableManager,
4098
4108
  runtimeComponentCache: this.runtimeComponentCache,
4099
4109
  getComponent: this.getComponent.bind(this),
4100
4110
  refManager: this.refManager,
4101
4111
  onGetRef: this.onGetRef,
4102
- processNodeConfigHook: u,
4112
+ processNodeConfigHook: f,
4103
4113
  onComponentMount: i,
4104
4114
  onComponentDestroy: c,
4105
- renderMode: f,
4106
- requestAPI: d
4107
- }), p = {}, g = l.props;
4108
- return Object.keys(g).forEach((m) => {
4109
- p[m] = g[m].value;
4115
+ renderMode: u,
4116
+ requestAPI: l
4117
+ }), p = {}, m = d.props;
4118
+ return Object.keys(m).forEach((g) => {
4119
+ p[g] = m[g].value;
4110
4120
  }), p.$$context = a, Xt(y, p);
4111
4121
  }
4112
4122
  clear() {
@@ -4132,12 +4142,12 @@ function Ih() {
4132
4142
  if (Rn) return kt;
4133
4143
  Rn = 1;
4134
4144
  var t = N, 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 };
4135
- function s(i, c, f) {
4136
- var u, d = {}, l = null, h = null;
4137
- f !== void 0 && (l = "" + f), c.key !== void 0 && (l = "" + c.key), c.ref !== void 0 && (h = c.ref);
4138
- for (u in c) n.call(c, u) && !a.hasOwnProperty(u) && (d[u] = c[u]);
4139
- if (i && i.defaultProps) for (u in c = i.defaultProps, c) d[u] === void 0 && (d[u] = c[u]);
4140
- return { $$typeof: e, type: i, key: l, ref: h, props: d, _owner: o.current };
4145
+ function s(i, c, u) {
4146
+ var f, l = {}, d = null, h = null;
4147
+ u !== void 0 && (d = "" + u), c.key !== void 0 && (d = "" + c.key), c.ref !== void 0 && (h = c.ref);
4148
+ for (f in c) n.call(c, f) && !a.hasOwnProperty(f) && (l[f] = c[f]);
4149
+ if (i && i.defaultProps) for (f in c = i.defaultProps, c) l[f] === void 0 && (l[f] = c[f]);
4150
+ return { $$typeof: e, type: i, key: d, ref: h, props: l, _owner: o.current };
4141
4151
  }
4142
4152
  return kt.Fragment = r, kt.jsx = s, kt.jsxs = s, kt;
4143
4153
  }
@@ -4313,7 +4323,7 @@ const Lh = [
4313
4323
  );
4314
4324
  }, t), {}), kh = ({ children: t, width: e, height: r, $$attributes: n = [], ...o }) => {
4315
4325
  let a = t;
4316
- Array.isArray(t) || (a = [t]), a = a.filter((f) => f !== void 0);
4326
+ Array.isArray(t) || (a = [t]), a = a.filter((u) => u !== void 0);
4317
4327
  const { style: s = {}, ...i } = nt(n), c = {
4318
4328
  height: r,
4319
4329
  width: e,
@@ -4449,7 +4459,7 @@ class Qh extends N.Component {
4449
4459
  const c = {
4450
4460
  ...Wh,
4451
4461
  ...r.components
4452
- }, f = this.props.$$context || {};
4462
+ }, u = this.props.$$context || {};
4453
4463
  return n.pageRender(i, {
4454
4464
  libs: {},
4455
4465
  components: c,
@@ -4459,7 +4469,7 @@ class Qh extends N.Component {
4459
4469
  onComponentMount: s,
4460
4470
  onComponentDestroy: a,
4461
4471
  $$context: {
4462
- ...f,
4472
+ ...u,
4463
4473
  nodeRefs: this.refManager
4464
4474
  },
4465
4475
  renderMode: r.renderMode,
@@ -4588,54 +4598,54 @@ function Kh() {
4588
4598
  if (i = e(s), i === null) throw Error(t(188));
4589
4599
  return i !== s ? null : s;
4590
4600
  }
4591
- for (var c = s, f = i; ; ) {
4592
- var u = c.return;
4593
- if (u === null) break;
4594
- var d = u.alternate;
4595
- if (d === null) {
4596
- if (f = u.return, f !== null) {
4597
- c = f;
4601
+ for (var c = s, u = i; ; ) {
4602
+ var f = c.return;
4603
+ if (f === null) break;
4604
+ var l = f.alternate;
4605
+ if (l === null) {
4606
+ if (u = f.return, u !== null) {
4607
+ c = u;
4598
4608
  continue;
4599
4609
  }
4600
4610
  break;
4601
4611
  }
4602
- if (u.child === d.child) {
4603
- for (d = u.child; d; ) {
4604
- if (d === c) return r(u), s;
4605
- if (d === f) return r(u), i;
4606
- d = d.sibling;
4612
+ if (f.child === l.child) {
4613
+ for (l = f.child; l; ) {
4614
+ if (l === c) return r(f), s;
4615
+ if (l === u) return r(f), i;
4616
+ l = l.sibling;
4607
4617
  }
4608
4618
  throw Error(t(188));
4609
4619
  }
4610
- if (c.return !== f.return) c = u, f = d;
4620
+ if (c.return !== u.return) c = f, u = l;
4611
4621
  else {
4612
- for (var l = !1, h = u.child; h; ) {
4622
+ for (var d = !1, h = f.child; h; ) {
4613
4623
  if (h === c) {
4614
- l = !0, c = u, f = d;
4624
+ d = !0, c = f, u = l;
4615
4625
  break;
4616
4626
  }
4617
- if (h === f) {
4618
- l = !0, f = u, c = d;
4627
+ if (h === u) {
4628
+ d = !0, u = f, c = l;
4619
4629
  break;
4620
4630
  }
4621
4631
  h = h.sibling;
4622
4632
  }
4623
- if (!l) {
4624
- for (h = d.child; h; ) {
4633
+ if (!d) {
4634
+ for (h = l.child; h; ) {
4625
4635
  if (h === c) {
4626
- l = !0, c = d, f = u;
4636
+ d = !0, c = l, u = f;
4627
4637
  break;
4628
4638
  }
4629
- if (h === f) {
4630
- l = !0, f = d, c = u;
4639
+ if (h === u) {
4640
+ d = !0, u = l, c = f;
4631
4641
  break;
4632
4642
  }
4633
4643
  h = h.sibling;
4634
4644
  }
4635
- if (!l) throw Error(t(189));
4645
+ if (!d) throw Error(t(189));
4636
4646
  }
4637
4647
  }
4638
- if (c.alternate !== f) throw Error(t(190));
4648
+ if (c.alternate !== u) throw Error(t(190));
4639
4649
  }
4640
4650
  if (c.tag !== 3) throw Error(t(188));
4641
4651
  return c.stateNode.current === c ? s : i;
@@ -4776,10 +4786,10 @@ class bm extends N.Component {
4776
4786
  O(this, "dropPlaceholder", om);
4777
4787
  O(this, "_components", {});
4778
4788
  O(this, "onGetComponent", (r, n) => {
4779
- var c, f;
4789
+ var c, u;
4780
4790
  const o = this;
4781
4791
  let a = r;
4782
- const s = (f = (c = n.material) == null ? void 0 : c.value.advanceCustom) == null ? void 0 : f.wrapComponent;
4792
+ const s = (u = (c = n.material) == null ? void 0 : c.value.advanceCustom) == null ? void 0 : u.wrapComponent;
4783
4793
  s && (a = s(r, {
4784
4794
  node: n,
4785
4795
  ctx: window.__C_ENGINE_DESIGNER_PLUGIN_CTX__
@@ -4810,9 +4820,9 @@ class bm extends N.Component {
4810
4820
  }
4811
4821
  render() {
4812
4822
  var v, S, C, w;
4813
- const { children: l = [], onlyRenderChild: h, ...y } = this.props;
4814
- let p = l;
4815
- if (Ot(l) || (p = [l]), !!!p.filter(Boolean).length && (n.isContainer() || n.value.componentName === Lt.ROOT_CONTAINER)) {
4823
+ const { children: d = [], onlyRenderChild: h, ...y } = this.props;
4824
+ let p = d;
4825
+ if (Ot(d) || (p = [d]), !!!p.filter(Boolean).length && (n.isContainer() || n.value.componentName === Lt.ROOT_CONTAINER)) {
4816
4826
  const j = (S = (v = n.material) == null ? void 0 : v.value.advanceCustom) == null ? void 0 : S.dropPlaceholder;
4817
4827
  p.push(
4818
4828
  N.createElement(j || o.dropPlaceholder, {
@@ -4833,7 +4843,7 @@ class bm extends N.Component {
4833
4843
  );
4834
4844
  }
4835
4845
  }
4836
- return N.forwardRef(function(d, l) {
4846
+ return N.forwardRef(function(l, d) {
4837
4847
  return N.createElement(
4838
4848
  Yh,
4839
4849
  {
@@ -4841,8 +4851,8 @@ class bm extends N.Component {
4841
4851
  targetComponent: i
4842
4852
  },
4843
4853
  N.createElement(i, {
4844
- ref: l,
4845
- ...d
4854
+ ref: d,
4855
+ ...l
4846
4856
  })
4847
4857
  );
4848
4858
  });
@@ -4884,8 +4894,8 @@ class bm extends N.Component {
4884
4894
  const i = s.getDom();
4885
4895
  if (i && !(i instanceof Text))
4886
4896
  if (n) {
4887
- const f = Array.from(((c = i.querySelectorAll) == null ? void 0 : c.call(i, n)) || []);
4888
- a.push(...f);
4897
+ const u = Array.from(((c = i.querySelectorAll) == null ? void 0 : c.call(i, n)) || []);
4898
+ a.push(...u);
4889
4899
  } else
4890
4900
  a.push(i);
4891
4901
  }), a;
@@ -4912,26 +4922,26 @@ class bm extends N.Component {
4912
4922
  var y, p;
4913
4923
  if (i.nodeType !== "NODE")
4914
4924
  return s;
4915
- const { props: c, condition: f } = s;
4916
- let u = { ...c };
4917
- const d = ((y = i.value.configure) == null ? void 0 : y.devState) || {}, l = (p = i.material) == null ? void 0 : p.value.fixedProps;
4918
- if (l !== void 0) {
4919
- if (Tt(l))
4920
- u = {
4921
- ...u,
4922
- ...l
4925
+ const { props: c, condition: u } = s;
4926
+ let f = { ...c };
4927
+ const l = ((y = i.value.configure) == null ? void 0 : y.devState) || {}, d = (p = i.material) == null ? void 0 : p.value.fixedProps;
4928
+ if (d !== void 0) {
4929
+ if (Tt(d))
4930
+ f = {
4931
+ ...f,
4932
+ ...d
4923
4933
  };
4924
- else if (typeof l == "function") {
4925
- const g = l(u);
4926
- u = {
4927
- ...u,
4928
- ...g
4934
+ else if (typeof d == "function") {
4935
+ const m = d(f);
4936
+ f = {
4937
+ ...f,
4938
+ ...m
4929
4939
  };
4930
4940
  }
4931
4941
  }
4932
- let h = f;
4933
- return d.condition === !1 && (h = d.condition), {
4934
- props: Oc(u, d.props || {}),
4942
+ let h = u;
4943
+ return l.condition === !1 && (h = l.condition), {
4944
+ props: Oc(f, l.props || {}),
4935
4945
  condition: h
4936
4946
  };
4937
4947
  },
@@ -4981,40 +4991,40 @@ function sm() {
4981
4991
  })(am, function() {
4982
4992
  var r = function() {
4983
4993
  }, n = {}, o = {}, a = {};
4984
- function s(l, h) {
4985
- l = l.push ? l : [l];
4986
- var y = [], p = l.length, g = p, m, v, S, C;
4987
- for (m = function(w, j) {
4988
- j.length && y.push(w), g--, g || h(y);
4994
+ function s(d, h) {
4995
+ d = d.push ? d : [d];
4996
+ var y = [], p = d.length, m = p, g, v, S, C;
4997
+ for (g = function(w, j) {
4998
+ j.length && y.push(w), m--, m || h(y);
4989
4999
  }; p--; ) {
4990
- if (v = l[p], S = o[v], S) {
4991
- m(v, S);
5000
+ if (v = d[p], S = o[v], S) {
5001
+ g(v, S);
4992
5002
  continue;
4993
5003
  }
4994
- C = a[v] = a[v] || [], C.push(m);
5004
+ C = a[v] = a[v] || [], C.push(g);
4995
5005
  }
4996
5006
  }
4997
- function i(l, h) {
4998
- if (l) {
4999
- var y = a[l];
5000
- if (o[l] = h, !!y)
5007
+ function i(d, h) {
5008
+ if (d) {
5009
+ var y = a[d];
5010
+ if (o[d] = h, !!y)
5001
5011
  for (; y.length; )
5002
- y[0](l, h), y.splice(0, 1);
5012
+ y[0](d, h), y.splice(0, 1);
5003
5013
  }
5004
5014
  }
5005
- function c(l, h) {
5006
- l.call && (l = { success: l }), h.length ? (l.error || r)(h) : (l.success || r)(l);
5015
+ function c(d, h) {
5016
+ d.call && (d = { success: d }), h.length ? (d.error || r)(h) : (d.success || r)(d);
5007
5017
  }
5008
- function f(l, h, y, p) {
5009
- var g = document, m = y.async, v = (y.numRetries || 0) + 1, S = y.before || r, C = l.replace(/[\?|#].*$/, ""), w = l.replace(/^(css|img|module|nomodule)!/, ""), j, D, $;
5018
+ function u(d, h, y, p) {
5019
+ var m = document, g = y.async, v = (y.numRetries || 0) + 1, S = y.before || r, C = d.replace(/[\?|#].*$/, ""), w = d.replace(/^(css|img|module|nomodule)!/, ""), j, D, $;
5010
5020
  if (p = p || 0, /(^css!|\.css$)/.test(C))
5011
- $ = g.createElement("link"), $.rel = "stylesheet", $.href = w, j = "hideFocus" in $, j && $.relList && (j = 0, $.rel = "preload", $.as = "style");
5021
+ $ = m.createElement("link"), $.rel = "stylesheet", $.href = w, j = "hideFocus" in $, j && $.relList && (j = 0, $.rel = "preload", $.as = "style");
5012
5022
  else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(C))
5013
- $ = g.createElement("img"), $.src = w;
5014
- else if ($ = g.createElement("script"), $.src = w, $.async = m === void 0 ? !0 : m, D = "noModule" in $, /^module!/.test(C)) {
5015
- if (!D) return h(l, "l");
5023
+ $ = m.createElement("img"), $.src = w;
5024
+ else if ($ = m.createElement("script"), $.src = w, $.async = g === void 0 ? !0 : g, D = "noModule" in $, /^module!/.test(C)) {
5025
+ if (!D) return h(d, "l");
5016
5026
  $.type = "module";
5017
- } else if (/^nomodule!/.test(C) && D) return h(l, "l");
5027
+ } else if (/^nomodule!/.test(C) && D) return h(d, "l");
5018
5028
  $.onload = $.onerror = $.onbeforeload = function(yt) {
5019
5029
  var ot = yt.type[0];
5020
5030
  if (j)
@@ -5025,48 +5035,48 @@ function sm() {
5025
5035
  }
5026
5036
  if (ot == "e") {
5027
5037
  if (p += 1, p < v)
5028
- return f(l, h, y, p);
5038
+ return u(d, h, y, p);
5029
5039
  } else if ($.rel == "preload" && $.as == "style")
5030
5040
  return $.rel = "stylesheet";
5031
- h(l, ot, yt.defaultPrevented);
5032
- }, S(l, $) !== !1 && g.head.appendChild($);
5041
+ h(d, ot, yt.defaultPrevented);
5042
+ }, S(d, $) !== !1 && m.head.appendChild($);
5033
5043
  }
5034
- function u(l, h, y) {
5035
- l = l.push ? l : [l];
5036
- var p = l.length, g = p, m = [], v, S;
5044
+ function f(d, h, y) {
5045
+ d = d.push ? d : [d];
5046
+ var p = d.length, m = p, g = [], v, S;
5037
5047
  for (v = function(C, w, j) {
5038
- if (w == "e" && m.push(C), w == "b")
5039
- if (j) m.push(C);
5048
+ if (w == "e" && g.push(C), w == "b")
5049
+ if (j) g.push(C);
5040
5050
  else return;
5041
- p--, p || h(m);
5042
- }, S = 0; S < g; S++) f(l[S], v, y);
5051
+ p--, p || h(g);
5052
+ }, S = 0; S < m; S++) u(d[S], v, y);
5043
5053
  }
5044
- function d(l, h, y) {
5045
- var p, g;
5046
- if (h && h.trim && (p = h), g = (p ? y : h) || {}, p) {
5054
+ function l(d, h, y) {
5055
+ var p, m;
5056
+ if (h && h.trim && (p = h), m = (p ? y : h) || {}, p) {
5047
5057
  if (p in n)
5048
5058
  throw "LoadJS";
5049
5059
  n[p] = !0;
5050
5060
  }
5051
- function m(v, S) {
5052
- u(l, function(C) {
5053
- c(g, C), v && c({ success: v, error: S }, C), i(p, C);
5054
- }, g);
5061
+ function g(v, S) {
5062
+ f(d, function(C) {
5063
+ c(m, C), v && c({ success: v, error: S }, C), i(p, C);
5064
+ }, m);
5055
5065
  }
5056
- if (g.returnPromise) return new Promise(m);
5057
- m();
5066
+ if (m.returnPromise) return new Promise(g);
5067
+ g();
5058
5068
  }
5059
- return d.ready = function(h, y) {
5069
+ return l.ready = function(h, y) {
5060
5070
  return s(h, function(p) {
5061
5071
  c(y, p);
5062
- }), d;
5063
- }, d.done = function(h) {
5072
+ }), l;
5073
+ }, l.done = function(h) {
5064
5074
  i(h, []);
5065
- }, d.reset = function() {
5075
+ }, l.reset = function() {
5066
5076
  n = {}, o = {}, a = {};
5067
- }, d.isDefined = function(h) {
5077
+ }, l.isDefined = function(h) {
5068
5078
  return h in n;
5069
- }, d;
5079
+ }, l;
5070
5080
  });
5071
5081
  }(ae)), ae.exports;
5072
5082
  }