@chamn/render 0.0.6 → 0.0.7

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.es.js CHANGED
@@ -1,13 +1,16 @@
1
- var ea = Object.defineProperty;
2
- var ra = (t, e, r) => e in t ? ea(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var g = (t, e, r) => (ra(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- import w, { Component as na, createElement as oa, useEffect as aa, useRef as Dn, useMemo as sa } from "react";
5
- import * as ia from "react-dom";
6
- const ca = (t) => () => {
1
+ var Xo = Object.defineProperty;
2
+ var Ko = (t, e, r) => e in t ? Xo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var g = (t, e, r) => (Ko(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ import w, { Component as Zo, createElement as ta, useEffect as ea, useRef as An, useMemo as ra } from "react";
5
+ import * as na from "react-dom";
6
+ const oa = (t) => () => {
7
7
  console.warn(`${t} need to be implement getComponent`);
8
- }, ua = ["customPageRootRender"], Dr = [
8
+ }, aa = ["customPageRootRender"], Mr = [
9
+ // 页面渲染
9
10
  "pageRender",
11
+ // 渲染一个组件
10
12
  "render",
13
+ // 将一个 组件 model 节点 转换为一个可被运行的渲染函数
11
14
  "convertModelToComponent",
12
15
  "getComponent",
13
16
  "getContext",
@@ -19,88 +22,88 @@ const ca = (t) => () => {
19
22
  "transformGlobalData",
20
23
  "errorCatch",
21
24
  "clear"
22
- ], la = (t) => [...Dr, ...ua].reduce((r, n) => {
25
+ ], sa = (t) => [...Mr, ...aa].reduce((r, n) => {
23
26
  var o;
24
- return t != null && t[n] ? r[n] = (o = t[n]) == null ? void 0 : o.bind(t) : Dr.includes(n) && (r[n] = ca), r;
27
+ return t != null && t[n] ? r[n] = (o = t[n]) == null ? void 0 : o.bind(t) : Mr.includes(n) && (r[n] = oa), r;
25
28
  }, {});
26
- var fa = Object.defineProperty, pa = (t, e, r) => e in t ? fa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e, r) => (pa(t, typeof e != "symbol" ? e + "" : e, r), r), da = typeof global == "object" && global && global.Object === Object && global;
27
- const Rn = da;
28
- var ha = typeof self == "object" && self && self.Object === Object && self, va = Rn || ha || Function("return this")();
29
- const Y = va;
30
- var ma = Y.Symbol;
31
- const z = ma;
32
- var In = Object.prototype, ya = In.hasOwnProperty, ga = In.toString, Bt = z ? z.toStringTag : void 0;
33
- function ba(t) {
34
- var e = ya.call(t, Bt), r = t[Bt];
29
+ var ia = Object.defineProperty, ca = (t, e, r) => e in t ? ia(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e, r) => (ca(t, typeof e != "symbol" ? e + "" : e, r), r), ua = typeof global == "object" && global && global.Object === Object && global;
30
+ const Mn = ua;
31
+ var la = typeof self == "object" && self && self.Object === Object && self, fa = Mn || la || Function("return this")();
32
+ const X = fa;
33
+ var pa = X.Symbol;
34
+ const k = pa;
35
+ var Pn = Object.prototype, da = Pn.hasOwnProperty, ha = Pn.toString, Lt = k ? k.toStringTag : void 0;
36
+ function va(t) {
37
+ var e = da.call(t, Lt), r = t[Lt];
35
38
  try {
36
- t[Bt] = void 0;
39
+ t[Lt] = void 0;
37
40
  var n = !0;
38
41
  } catch {
39
42
  }
40
- var o = ga.call(t);
41
- return n && (e ? t[Bt] = r : delete t[Bt]), o;
43
+ var o = ha.call(t);
44
+ return n && (e ? t[Lt] = r : delete t[Lt]), o;
42
45
  }
43
- var _a = Object.prototype, ja = _a.toString;
44
- function wa(t) {
45
- return ja.call(t);
46
+ var ma = Object.prototype, ya = ma.toString;
47
+ function ga(t) {
48
+ return ya.call(t);
46
49
  }
47
- var Sa = "[object Null]", Oa = "[object Undefined]", Rr = z ? z.toStringTag : void 0;
48
- function pt(t) {
49
- return t == null ? t === void 0 ? Oa : Sa : Rr && Rr in Object(t) ? ba(t) : wa(t);
50
+ var ba = "[object Null]", _a = "[object Undefined]", Pr = k ? k.toStringTag : void 0;
51
+ function dt(t) {
52
+ return t == null ? t === void 0 ? _a : ba : Pr && Pr in Object(t) ? va(t) : ga(t);
50
53
  }
51
- function Q(t) {
54
+ function Y(t) {
52
55
  return t != null && typeof t == "object";
53
56
  }
54
- var Ca = "[object Symbol]";
55
- function Ke(t) {
56
- return typeof t == "symbol" || Q(t) && pt(t) == Ca;
57
+ var ja = "[object Symbol]";
58
+ function Xe(t) {
59
+ return typeof t == "symbol" || Y(t) && dt(t) == ja;
57
60
  }
58
- function Ze(t, e) {
61
+ function Ke(t, e) {
59
62
  for (var r = -1, n = t == null ? 0 : t.length, o = Array(n); ++r < n; )
60
63
  o[r] = e(t[r], r, t);
61
64
  return o;
62
65
  }
63
- var Ea = Array.isArray;
64
- const M = Ea;
65
- var xa = 1 / 0, Ir = z ? z.prototype : void 0, Lr = Ir ? Ir.toString : void 0;
66
- function Ln(t) {
66
+ var Sa = Array.isArray;
67
+ const M = Sa;
68
+ var wa = 1 / 0, Rr = k ? k.prototype : void 0, Dr = Rr ? Rr.toString : void 0;
69
+ function Rn(t) {
67
70
  if (typeof t == "string")
68
71
  return t;
69
72
  if (M(t))
70
- return Ze(t, Ln) + "";
71
- if (Ke(t))
72
- return Lr ? Lr.call(t) : "";
73
+ return Ke(t, Rn) + "";
74
+ if (Xe(t))
75
+ return Dr ? Dr.call(t) : "";
73
76
  var e = t + "";
74
- return e == "0" && 1 / t == -xa ? "-0" : e;
77
+ return e == "0" && 1 / t == -wa ? "-0" : e;
75
78
  }
76
- function J(t) {
79
+ function W(t) {
77
80
  var e = typeof t;
78
81
  return t != null && (e == "object" || e == "function");
79
82
  }
80
- function tr(t) {
83
+ function Ze(t) {
81
84
  return t;
82
85
  }
83
- var Na = "[object AsyncFunction]", $a = "[object Function]", Ta = "[object GeneratorFunction]", Aa = "[object Proxy]";
84
- function er(t) {
85
- if (!J(t))
86
+ var Oa = "[object AsyncFunction]", Ca = "[object Function]", Ea = "[object GeneratorFunction]", xa = "[object Proxy]";
87
+ function tr(t) {
88
+ if (!W(t))
86
89
  return !1;
87
- var e = pt(t);
88
- return e == $a || e == Ta || e == Na || e == Aa;
90
+ var e = dt(t);
91
+ return e == Ca || e == Ea || e == Oa || e == xa;
89
92
  }
90
- var Ma = Y["__core-js_shared__"];
91
- const xe = Ma;
92
- var Fr = function() {
93
- var t = /[^.]+$/.exec(xe && xe.keys && xe.keys.IE_PROTO || "");
93
+ var Na = X["__core-js_shared__"];
94
+ const Ee = Na;
95
+ var Ir = function() {
96
+ var t = /[^.]+$/.exec(Ee && Ee.keys && Ee.keys.IE_PROTO || "");
94
97
  return t ? "Symbol(src)_1." + t : "";
95
98
  }();
96
- function Pa(t) {
97
- return !!Fr && Fr in t;
99
+ function $a(t) {
100
+ return !!Ir && Ir in t;
98
101
  }
99
- var Da = Function.prototype, Ra = Da.toString;
100
- function dt(t) {
102
+ var Ta = Function.prototype, Aa = Ta.toString;
103
+ function ht(t) {
101
104
  if (t != null) {
102
105
  try {
103
- return Ra.call(t);
106
+ return Aa.call(t);
104
107
  } catch {
105
108
  }
106
109
  try {
@@ -110,39 +113,39 @@ function dt(t) {
110
113
  }
111
114
  return "";
112
115
  }
113
- var Ia = /[\\^$.*+?()[\]{}|]/g, La = /^\[object .+?Constructor\]$/, Fa = Function.prototype, Ba = Object.prototype, Ua = Fa.toString, ka = Ba.hasOwnProperty, za = RegExp(
114
- "^" + Ua.call(ka).replace(Ia, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
116
+ var Ma = /[\\^$.*+?()[\]{}|]/g, Pa = /^\[object .+?Constructor\]$/, Ra = Function.prototype, Da = Object.prototype, Ia = Ra.toString, La = Da.hasOwnProperty, Fa = RegExp(
117
+ "^" + Ia.call(La).replace(Ma, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
115
118
  );
116
- function Ga(t) {
117
- if (!J(t) || Pa(t))
119
+ function Ba(t) {
120
+ if (!W(t) || $a(t))
118
121
  return !1;
119
- var e = er(t) ? za : La;
120
- return e.test(dt(t));
122
+ var e = tr(t) ? Fa : Pa;
123
+ return e.test(ht(t));
121
124
  }
122
- function Ha(t, e) {
125
+ function Ua(t, e) {
123
126
  return t == null ? void 0 : t[e];
124
127
  }
125
- function ht(t, e) {
126
- var r = Ha(t, e);
127
- return Ga(r) ? r : void 0;
128
+ function vt(t, e) {
129
+ var r = Ua(t, e);
130
+ return Ba(r) ? r : void 0;
128
131
  }
129
- var Va = ht(Y, "WeakMap");
130
- const Re = Va;
131
- var Br = Object.create, Wa = function() {
132
+ var ka = vt(X, "WeakMap");
133
+ const Re = ka;
134
+ var Lr = Object.create, za = function() {
132
135
  function t() {
133
136
  }
134
137
  return function(e) {
135
- if (!J(e))
138
+ if (!W(e))
136
139
  return {};
137
- if (Br)
138
- return Br(e);
140
+ if (Lr)
141
+ return Lr(e);
139
142
  t.prototype = e;
140
143
  var r = new t();
141
144
  return t.prototype = void 0, r;
142
145
  };
143
146
  }();
144
- const Ja = Wa;
145
- function qa(t, e, r) {
147
+ const Ga = za;
148
+ function Ha(t, e, r) {
146
149
  switch (r.length) {
147
150
  case 0:
148
151
  return t.call(e);
@@ -155,309 +158,313 @@ function qa(t, e, r) {
155
158
  }
156
159
  return t.apply(e, r);
157
160
  }
158
- function Qa() {
161
+ function Va() {
159
162
  }
160
- function Fn(t, e) {
163
+ function Dn(t, e) {
161
164
  var r = -1, n = t.length;
162
165
  for (e || (e = Array(n)); ++r < n; )
163
166
  e[r] = t[r];
164
167
  return e;
165
168
  }
166
- var Ya = 800, Xa = 16, Ka = Date.now;
167
- function Za(t) {
169
+ var Wa = 800, Ja = 16, qa = Date.now;
170
+ function Qa(t) {
168
171
  var e = 0, r = 0;
169
172
  return function() {
170
- var n = Ka(), o = Xa - (n - r);
173
+ var n = qa(), o = Ja - (n - r);
171
174
  if (r = n, o > 0) {
172
- if (++e >= Ya)
175
+ if (++e >= Wa)
173
176
  return arguments[0];
174
177
  } else
175
178
  e = 0;
176
179
  return t.apply(void 0, arguments);
177
180
  };
178
181
  }
179
- function ts(t) {
182
+ function Ya(t) {
180
183
  return function() {
181
184
  return t;
182
185
  };
183
186
  }
184
- var es = function() {
187
+ var Xa = function() {
185
188
  try {
186
- var t = ht(Object, "defineProperty");
189
+ var t = vt(Object, "defineProperty");
187
190
  return t({}, "", {}), t;
188
191
  } catch {
189
192
  }
190
193
  }();
191
- const ce = es;
192
- var rs = ce ? function(t, e) {
193
- return ce(t, "toString", {
194
+ const se = Xa;
195
+ var Ka = se ? function(t, e) {
196
+ return se(t, "toString", {
194
197
  configurable: !0,
195
198
  enumerable: !1,
196
- value: ts(e),
199
+ value: Ya(e),
197
200
  writable: !0
198
201
  });
199
- } : tr;
200
- const ns = rs;
201
- var os = Za(ns);
202
- const Bn = os;
203
- function as(t, e) {
202
+ } : Ze;
203
+ const Za = Ka;
204
+ var ts = Qa(Za);
205
+ const In = ts;
206
+ function es(t, e) {
204
207
  for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; )
205
208
  ;
206
209
  return t;
207
210
  }
208
- function ss(t, e, r, n) {
211
+ function rs(t, e, r, n) {
209
212
  for (var o = t.length, a = r + (n ? 1 : -1); n ? a-- : ++a < o; )
210
213
  if (e(t[a], a, t))
211
214
  return a;
212
215
  return -1;
213
216
  }
214
- function is(t) {
217
+ function ns(t) {
215
218
  return t !== t;
216
219
  }
217
- function cs(t, e, r) {
220
+ function os(t, e, r) {
218
221
  for (var n = r - 1, o = t.length; ++n < o; )
219
222
  if (t[n] === e)
220
223
  return n;
221
224
  return -1;
222
225
  }
223
- function us(t, e, r) {
224
- return e === e ? cs(t, e, r) : ss(t, is, r);
226
+ function as(t, e, r) {
227
+ return e === e ? os(t, e, r) : rs(t, ns, r);
225
228
  }
226
- function ls(t, e) {
229
+ function ss(t, e) {
227
230
  var r = t == null ? 0 : t.length;
228
- return !!r && us(t, e, 0) > -1;
231
+ return !!r && as(t, e, 0) > -1;
229
232
  }
230
- var fs = 9007199254740991, ps = /^(?:0|[1-9]\d*)$/;
231
- function de(t, e) {
233
+ var is = 9007199254740991, cs = /^(?:0|[1-9]\d*)$/;
234
+ function pe(t, e) {
232
235
  var r = typeof t;
233
- return e = e == null ? fs : e, !!e && (r == "number" || r != "symbol" && ps.test(t)) && t > -1 && t % 1 == 0 && t < e;
236
+ return e = e ?? is, !!e && (r == "number" || r != "symbol" && cs.test(t)) && t > -1 && t % 1 == 0 && t < e;
234
237
  }
235
- function rr(t, e, r) {
236
- e == "__proto__" && ce ? ce(t, e, {
238
+ function er(t, e, r) {
239
+ e == "__proto__" && se ? se(t, e, {
237
240
  configurable: !0,
238
241
  enumerable: !0,
239
242
  value: r,
240
243
  writable: !0
241
244
  }) : t[e] = r;
242
245
  }
243
- function Zt(t, e) {
246
+ function Xt(t, e) {
244
247
  return t === e || t !== t && e !== e;
245
248
  }
246
- var ds = Object.prototype, hs = ds.hasOwnProperty;
247
- function nr(t, e, r) {
249
+ var us = Object.prototype, ls = us.hasOwnProperty;
250
+ function rr(t, e, r) {
248
251
  var n = t[e];
249
- (!(hs.call(t, e) && Zt(n, r)) || r === void 0 && !(e in t)) && rr(t, e, r);
252
+ (!(ls.call(t, e) && Xt(n, r)) || r === void 0 && !(e in t)) && er(t, e, r);
250
253
  }
251
254
  function xt(t, e, r, n) {
252
255
  var o = !r;
253
256
  r || (r = {});
254
257
  for (var a = -1, i = e.length; ++a < i; ) {
255
258
  var s = e[a], c = n ? n(r[s], t[s], s, r, t) : void 0;
256
- c === void 0 && (c = t[s]), o ? rr(r, s, c) : nr(r, s, c);
259
+ c === void 0 && (c = t[s]), o ? er(r, s, c) : rr(r, s, c);
257
260
  }
258
261
  return r;
259
262
  }
260
- var Ur = Math.max;
261
- function Un(t, e, r) {
262
- return e = Ur(e === void 0 ? t.length - 1 : e, 0), function() {
263
- for (var n = arguments, o = -1, a = Ur(n.length - e, 0), i = Array(a); ++o < a; )
263
+ var Fr = Math.max;
264
+ function Ln(t, e, r) {
265
+ return e = Fr(e === void 0 ? t.length - 1 : e, 0), function() {
266
+ for (var n = arguments, o = -1, a = Fr(n.length - e, 0), i = Array(a); ++o < a; )
264
267
  i[o] = n[e + o];
265
268
  o = -1;
266
269
  for (var s = Array(e + 1); ++o < e; )
267
270
  s[o] = n[o];
268
- return s[e] = r(i), qa(t, this, s);
271
+ return s[e] = r(i), Ha(t, this, s);
269
272
  };
270
273
  }
271
- function kn(t, e) {
272
- return Bn(Un(t, e, tr), t + "");
274
+ function Fn(t, e) {
275
+ return In(Ln(t, e, Ze), t + "");
273
276
  }
274
- var vs = 9007199254740991;
275
- function or(t) {
276
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= vs;
277
+ var fs = 9007199254740991;
278
+ function nr(t) {
279
+ return typeof t == "number" && t > -1 && t % 1 == 0 && t <= fs;
277
280
  }
278
- function he(t) {
279
- return t != null && or(t.length) && !er(t);
281
+ function de(t) {
282
+ return t != null && nr(t.length) && !tr(t);
280
283
  }
281
- function ms(t, e, r) {
282
- if (!J(r))
284
+ function ps(t, e, r) {
285
+ if (!W(r))
283
286
  return !1;
284
287
  var n = typeof e;
285
- return (n == "number" ? he(r) && de(e, r.length) : n == "string" && e in r) ? Zt(r[e], t) : !1;
288
+ return (n == "number" ? de(r) && pe(e, r.length) : n == "string" && e in r) ? Xt(r[e], t) : !1;
286
289
  }
287
- function ys(t) {
288
- return kn(function(e, r) {
290
+ function ds(t) {
291
+ return Fn(function(e, r) {
289
292
  var n = -1, o = r.length, a = o > 1 ? r[o - 1] : void 0, i = o > 2 ? r[2] : void 0;
290
- for (a = t.length > 3 && typeof a == "function" ? (o--, a) : void 0, i && ms(r[0], r[1], i) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++n < o; ) {
293
+ for (a = t.length > 3 && typeof a == "function" ? (o--, a) : void 0, i && ps(r[0], r[1], i) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++n < o; ) {
291
294
  var s = r[n];
292
295
  s && t(e, s, n, a);
293
296
  }
294
297
  return e;
295
298
  });
296
299
  }
297
- var gs = Object.prototype;
298
- function ar(t) {
299
- var e = t && t.constructor, r = typeof e == "function" && e.prototype || gs;
300
+ var hs = Object.prototype;
301
+ function or(t) {
302
+ var e = t && t.constructor, r = typeof e == "function" && e.prototype || hs;
300
303
  return t === r;
301
304
  }
302
- function bs(t, e) {
305
+ function vs(t, e) {
303
306
  for (var r = -1, n = Array(t); ++r < t; )
304
307
  n[r] = e(r);
305
308
  return n;
306
309
  }
307
- var _s = "[object Arguments]";
308
- function kr(t) {
309
- return Q(t) && pt(t) == _s;
310
+ var ms = "[object Arguments]";
311
+ function Br(t) {
312
+ return Y(t) && dt(t) == ms;
310
313
  }
311
- var zn = Object.prototype, js = zn.hasOwnProperty, ws = zn.propertyIsEnumerable, Ss = kr(function() {
314
+ var Bn = Object.prototype, ys = Bn.hasOwnProperty, gs = Bn.propertyIsEnumerable, bs = Br(function() {
312
315
  return arguments;
313
- }()) ? kr : function(t) {
314
- return Q(t) && js.call(t, "callee") && !ws.call(t, "callee");
316
+ }()) ? Br : function(t) {
317
+ return Y(t) && ys.call(t, "callee") && !gs.call(t, "callee");
315
318
  };
316
- const Vt = Ss;
317
- function Os() {
319
+ const Gt = bs;
320
+ function _s() {
318
321
  return !1;
319
322
  }
320
- var Gn = typeof exports == "object" && exports && !exports.nodeType && exports, zr = Gn && typeof module == "object" && module && !module.nodeType && module, Cs = zr && zr.exports === Gn, Gr = Cs ? Y.Buffer : void 0, Es = Gr ? Gr.isBuffer : void 0, xs = Es || Os;
321
- const Wt = xs;
322
- var Ns = "[object Arguments]", $s = "[object Array]", Ts = "[object Boolean]", As = "[object Date]", Ms = "[object Error]", Ps = "[object Function]", Ds = "[object Map]", Rs = "[object Number]", Is = "[object Object]", Ls = "[object RegExp]", Fs = "[object Set]", Bs = "[object String]", Us = "[object WeakMap]", ks = "[object ArrayBuffer]", zs = "[object DataView]", Gs = "[object Float32Array]", Hs = "[object Float64Array]", Vs = "[object Int8Array]", Ws = "[object Int16Array]", Js = "[object Int32Array]", qs = "[object Uint8Array]", Qs = "[object Uint8ClampedArray]", Ys = "[object Uint16Array]", Xs = "[object Uint32Array]", x = {};
323
- x[Gs] = x[Hs] = x[Vs] = x[Ws] = x[Js] = x[qs] = x[Qs] = x[Ys] = x[Xs] = !0;
324
- x[Ns] = x[$s] = x[ks] = x[Ts] = x[zs] = x[As] = x[Ms] = x[Ps] = x[Ds] = x[Rs] = x[Is] = x[Ls] = x[Fs] = x[Bs] = x[Us] = !1;
325
- function Ks(t) {
326
- return Q(t) && or(t.length) && !!x[pt(t)];
323
+ var Un = typeof exports == "object" && exports && !exports.nodeType && exports, Ur = Un && typeof module == "object" && module && !module.nodeType && module, js = Ur && Ur.exports === Un, kr = js ? X.Buffer : void 0, Ss = kr ? kr.isBuffer : void 0, ws = Ss || _s;
324
+ const Ht = ws;
325
+ var Os = "[object Arguments]", Cs = "[object Array]", Es = "[object Boolean]", xs = "[object Date]", Ns = "[object Error]", $s = "[object Function]", Ts = "[object Map]", As = "[object Number]", Ms = "[object Object]", Ps = "[object RegExp]", Rs = "[object Set]", Ds = "[object String]", Is = "[object WeakMap]", Ls = "[object ArrayBuffer]", Fs = "[object DataView]", Bs = "[object Float32Array]", Us = "[object Float64Array]", ks = "[object Int8Array]", zs = "[object Int16Array]", Gs = "[object Int32Array]", Hs = "[object Uint8Array]", Vs = "[object Uint8ClampedArray]", Ws = "[object Uint16Array]", Js = "[object Uint32Array]", x = {};
326
+ x[Bs] = x[Us] = x[ks] = x[zs] = x[Gs] = x[Hs] = x[Vs] = x[Ws] = x[Js] = !0;
327
+ x[Os] = x[Cs] = x[Ls] = x[Es] = x[Fs] = x[xs] = x[Ns] = x[$s] = x[Ts] = x[As] = x[Ms] = x[Ps] = x[Rs] = x[Ds] = x[Is] = !1;
328
+ function qs(t) {
329
+ return Y(t) && nr(t.length) && !!x[dt(t)];
327
330
  }
328
- function sr(t) {
331
+ function ar(t) {
329
332
  return function(e) {
330
333
  return t(e);
331
334
  };
332
335
  }
333
- var Hn = typeof exports == "object" && exports && !exports.nodeType && exports, kt = Hn && typeof module == "object" && module && !module.nodeType && module, Zs = kt && kt.exports === Hn, Ne = Zs && Rn.process, ti = function() {
336
+ var kn = typeof exports == "object" && exports && !exports.nodeType && exports, Bt = kn && typeof module == "object" && module && !module.nodeType && module, Qs = Bt && Bt.exports === kn, xe = Qs && Mn.process, Ys = function() {
334
337
  try {
335
- var t = kt && kt.require && kt.require("util").types;
336
- return t || Ne && Ne.binding && Ne.binding("util");
338
+ var t = Bt && Bt.require && Bt.require("util").types;
339
+ return t || xe && xe.binding && xe.binding("util");
337
340
  } catch {
338
341
  }
339
342
  }();
340
- const _t = ti;
341
- var Hr = _t && _t.isTypedArray, ei = Hr ? sr(Hr) : Ks;
342
- const ir = ei;
343
- var ri = Object.prototype, ni = ri.hasOwnProperty;
344
- function Vn(t, e) {
345
- var r = M(t), n = !r && Vt(t), o = !r && !n && Wt(t), a = !r && !n && !o && ir(t), i = r || n || o || a, s = i ? bs(t.length, String) : [], c = s.length;
343
+ const _t = Ys;
344
+ var zr = _t && _t.isTypedArray, Xs = zr ? ar(zr) : qs;
345
+ const sr = Xs;
346
+ var Ks = Object.prototype, Zs = Ks.hasOwnProperty;
347
+ function zn(t, e) {
348
+ var r = M(t), n = !r && Gt(t), o = !r && !n && Ht(t), a = !r && !n && !o && sr(t), i = r || n || o || a, s = i ? vs(t.length, String) : [], c = s.length;
346
349
  for (var u in t)
347
- (e || ni.call(t, u)) && !(i && (u == "length" || o && (u == "offset" || u == "parent") || a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || de(u, c))) && s.push(u);
350
+ (e || Zs.call(t, u)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
351
+ (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
352
+ o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
353
+ a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
354
+ pe(u, c))) && s.push(u);
348
355
  return s;
349
356
  }
350
- function Wn(t, e) {
357
+ function Gn(t, e) {
351
358
  return function(r) {
352
359
  return t(e(r));
353
360
  };
354
361
  }
355
- var oi = Wn(Object.keys, Object);
356
- const ai = oi;
357
- var si = Object.prototype, ii = si.hasOwnProperty;
358
- function ci(t) {
359
- if (!ar(t))
360
- return ai(t);
362
+ var ti = Gn(Object.keys, Object);
363
+ const ei = ti;
364
+ var ri = Object.prototype, ni = ri.hasOwnProperty;
365
+ function oi(t) {
366
+ if (!or(t))
367
+ return ei(t);
361
368
  var e = [];
362
369
  for (var r in Object(t))
363
- ii.call(t, r) && r != "constructor" && e.push(r);
370
+ ni.call(t, r) && r != "constructor" && e.push(r);
364
371
  return e;
365
372
  }
366
- function ve(t) {
367
- return he(t) ? Vn(t) : ci(t);
373
+ function he(t) {
374
+ return de(t) ? zn(t) : oi(t);
368
375
  }
369
- function ui(t) {
376
+ function ai(t) {
370
377
  var e = [];
371
378
  if (t != null)
372
379
  for (var r in Object(t))
373
380
  e.push(r);
374
381
  return e;
375
382
  }
376
- var li = Object.prototype, fi = li.hasOwnProperty;
377
- function pi(t) {
378
- if (!J(t))
379
- return ui(t);
380
- var e = ar(t), r = [];
383
+ var si = Object.prototype, ii = si.hasOwnProperty;
384
+ function ci(t) {
385
+ if (!W(t))
386
+ return ai(t);
387
+ var e = or(t), r = [];
381
388
  for (var n in t)
382
- n == "constructor" && (e || !fi.call(t, n)) || r.push(n);
389
+ n == "constructor" && (e || !ii.call(t, n)) || r.push(n);
383
390
  return r;
384
391
  }
385
- function te(t) {
386
- return he(t) ? Vn(t, !0) : pi(t);
392
+ function Kt(t) {
393
+ return de(t) ? zn(t, !0) : ci(t);
387
394
  }
388
- var di = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, hi = /^\w*$/;
389
- function cr(t, e) {
395
+ var ui = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, li = /^\w*$/;
396
+ function ir(t, e) {
390
397
  if (M(t))
391
398
  return !1;
392
399
  var r = typeof t;
393
- return r == "number" || r == "symbol" || r == "boolean" || t == null || Ke(t) ? !0 : hi.test(t) || !di.test(t) || e != null && t in Object(e);
400
+ return r == "number" || r == "symbol" || r == "boolean" || t == null || Xe(t) ? !0 : li.test(t) || !ui.test(t) || e != null && t in Object(e);
394
401
  }
395
- var vi = ht(Object, "create");
396
- const Jt = vi;
397
- function mi() {
398
- this.__data__ = Jt ? Jt(null) : {}, this.size = 0;
402
+ var fi = vt(Object, "create");
403
+ const Vt = fi;
404
+ function pi() {
405
+ this.__data__ = Vt ? Vt(null) : {}, this.size = 0;
399
406
  }
400
- function yi(t) {
407
+ function di(t) {
401
408
  var e = this.has(t) && delete this.__data__[t];
402
409
  return this.size -= e ? 1 : 0, e;
403
410
  }
404
- var gi = "__lodash_hash_undefined__", bi = Object.prototype, _i = bi.hasOwnProperty;
405
- function ji(t) {
411
+ var hi = "__lodash_hash_undefined__", vi = Object.prototype, mi = vi.hasOwnProperty;
412
+ function yi(t) {
406
413
  var e = this.__data__;
407
- if (Jt) {
414
+ if (Vt) {
408
415
  var r = e[t];
409
- return r === gi ? void 0 : r;
416
+ return r === hi ? void 0 : r;
410
417
  }
411
- return _i.call(e, t) ? e[t] : void 0;
418
+ return mi.call(e, t) ? e[t] : void 0;
412
419
  }
413
- var wi = Object.prototype, Si = wi.hasOwnProperty;
414
- function Oi(t) {
420
+ var gi = Object.prototype, bi = gi.hasOwnProperty;
421
+ function _i(t) {
415
422
  var e = this.__data__;
416
- return Jt ? e[t] !== void 0 : Si.call(e, t);
423
+ return Vt ? e[t] !== void 0 : bi.call(e, t);
417
424
  }
418
- var Ci = "__lodash_hash_undefined__";
419
- function Ei(t, e) {
425
+ var ji = "__lodash_hash_undefined__";
426
+ function Si(t, e) {
420
427
  var r = this.__data__;
421
- return this.size += this.has(t) ? 0 : 1, r[t] = Jt && e === void 0 ? Ci : e, this;
428
+ return this.size += this.has(t) ? 0 : 1, r[t] = Vt && e === void 0 ? ji : e, this;
422
429
  }
423
- function ut(t) {
430
+ function lt(t) {
424
431
  var e = -1, r = t == null ? 0 : t.length;
425
432
  for (this.clear(); ++e < r; ) {
426
433
  var n = t[e];
427
434
  this.set(n[0], n[1]);
428
435
  }
429
436
  }
430
- ut.prototype.clear = mi;
431
- ut.prototype.delete = yi;
432
- ut.prototype.get = ji;
433
- ut.prototype.has = Oi;
434
- ut.prototype.set = Ei;
435
- function xi() {
437
+ lt.prototype.clear = pi;
438
+ lt.prototype.delete = di;
439
+ lt.prototype.get = yi;
440
+ lt.prototype.has = _i;
441
+ lt.prototype.set = Si;
442
+ function wi() {
436
443
  this.__data__ = [], this.size = 0;
437
444
  }
438
- function me(t, e) {
445
+ function ve(t, e) {
439
446
  for (var r = t.length; r--; )
440
- if (Zt(t[r][0], e))
447
+ if (Xt(t[r][0], e))
441
448
  return r;
442
449
  return -1;
443
450
  }
444
- var Ni = Array.prototype, $i = Ni.splice;
445
- function Ti(t) {
446
- var e = this.__data__, r = me(e, t);
451
+ var Oi = Array.prototype, Ci = Oi.splice;
452
+ function Ei(t) {
453
+ var e = this.__data__, r = ve(e, t);
447
454
  if (r < 0)
448
455
  return !1;
449
456
  var n = e.length - 1;
450
- return r == n ? e.pop() : $i.call(e, r, 1), --this.size, !0;
457
+ return r == n ? e.pop() : Ci.call(e, r, 1), --this.size, !0;
451
458
  }
452
- function Ai(t) {
453
- var e = this.__data__, r = me(e, t);
459
+ function xi(t) {
460
+ var e = this.__data__, r = ve(e, t);
454
461
  return r < 0 ? void 0 : e[r][1];
455
462
  }
456
- function Mi(t) {
457
- return me(this.__data__, t) > -1;
463
+ function Ni(t) {
464
+ return ve(this.__data__, t) > -1;
458
465
  }
459
- function Pi(t, e) {
460
- var r = this.__data__, n = me(r, t);
466
+ function $i(t, e) {
467
+ var r = this.__data__, n = ve(r, t);
461
468
  return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
462
469
  }
463
470
  function et(t) {
@@ -467,40 +474,40 @@ function et(t) {
467
474
  this.set(n[0], n[1]);
468
475
  }
469
476
  }
470
- et.prototype.clear = xi;
471
- et.prototype.delete = Ti;
472
- et.prototype.get = Ai;
473
- et.prototype.has = Mi;
474
- et.prototype.set = Pi;
475
- var Di = ht(Y, "Map");
476
- const qt = Di;
477
- function Ri() {
477
+ et.prototype.clear = wi;
478
+ et.prototype.delete = Ei;
479
+ et.prototype.get = xi;
480
+ et.prototype.has = Ni;
481
+ et.prototype.set = $i;
482
+ var Ti = vt(X, "Map");
483
+ const Wt = Ti;
484
+ function Ai() {
478
485
  this.size = 0, this.__data__ = {
479
- hash: new ut(),
480
- map: new (qt || et)(),
481
- string: new ut()
486
+ hash: new lt(),
487
+ map: new (Wt || et)(),
488
+ string: new lt()
482
489
  };
483
490
  }
484
- function Ii(t) {
491
+ function Mi(t) {
485
492
  var e = typeof t;
486
493
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
487
494
  }
488
- function ye(t, e) {
495
+ function me(t, e) {
489
496
  var r = t.__data__;
490
- return Ii(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
497
+ return Mi(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
491
498
  }
492
- function Li(t) {
493
- var e = ye(this, t).delete(t);
499
+ function Pi(t) {
500
+ var e = me(this, t).delete(t);
494
501
  return this.size -= e ? 1 : 0, e;
495
502
  }
496
- function Fi(t) {
497
- return ye(this, t).get(t);
503
+ function Ri(t) {
504
+ return me(this, t).get(t);
498
505
  }
499
- function Bi(t) {
500
- return ye(this, t).has(t);
506
+ function Di(t) {
507
+ return me(this, t).has(t);
501
508
  }
502
- function Ui(t, e) {
503
- var r = ye(this, t), n = r.size;
509
+ function Ii(t, e) {
510
+ var r = me(this, t), n = r.size;
504
511
  return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
505
512
  }
506
513
  function rt(t) {
@@ -510,15 +517,15 @@ function rt(t) {
510
517
  this.set(n[0], n[1]);
511
518
  }
512
519
  }
513
- rt.prototype.clear = Ri;
514
- rt.prototype.delete = Li;
515
- rt.prototype.get = Fi;
516
- rt.prototype.has = Bi;
517
- rt.prototype.set = Ui;
518
- var ki = "Expected a function";
519
- function ur(t, e) {
520
+ rt.prototype.clear = Ai;
521
+ rt.prototype.delete = Pi;
522
+ rt.prototype.get = Ri;
523
+ rt.prototype.has = Di;
524
+ rt.prototype.set = Ii;
525
+ var Li = "Expected a function";
526
+ function cr(t, e) {
520
527
  if (typeof t != "function" || e != null && typeof e != "function")
521
- throw new TypeError(ki);
528
+ throw new TypeError(Li);
522
529
  var r = function() {
523
530
  var n = arguments, o = e ? e.apply(this, n) : n[0], a = r.cache;
524
531
  if (a.has(o))
@@ -526,351 +533,351 @@ function ur(t, e) {
526
533
  var i = t.apply(this, n);
527
534
  return r.cache = a.set(o, i) || a, i;
528
535
  };
529
- return r.cache = new (ur.Cache || rt)(), r;
536
+ return r.cache = new (cr.Cache || rt)(), r;
530
537
  }
531
- ur.Cache = rt;
532
- var zi = 500;
533
- function Gi(t) {
534
- var e = ur(t, function(n) {
535
- return r.size === zi && r.clear(), n;
538
+ cr.Cache = rt;
539
+ var Fi = 500;
540
+ function Bi(t) {
541
+ var e = cr(t, function(n) {
542
+ return r.size === Fi && r.clear(), n;
536
543
  }), r = e.cache;
537
544
  return e;
538
545
  }
539
- var Hi = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Vi = /\\(\\)?/g, Wi = Gi(function(t) {
546
+ var Ui = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ki = /\\(\\)?/g, zi = Bi(function(t) {
540
547
  var e = [];
541
- return t.charCodeAt(0) === 46 && e.push(""), t.replace(Hi, function(r, n, o, a) {
542
- e.push(o ? a.replace(Vi, "$1") : n || r);
548
+ return t.charCodeAt(0) === 46 && e.push(""), t.replace(Ui, function(r, n, o, a) {
549
+ e.push(o ? a.replace(ki, "$1") : n || r);
543
550
  }), e;
544
551
  });
545
- const Ji = Wi;
546
- function qi(t) {
547
- return t == null ? "" : Ln(t);
552
+ const Gi = zi;
553
+ function Hi(t) {
554
+ return t == null ? "" : Rn(t);
548
555
  }
549
556
  function Nt(t, e) {
550
- return M(t) ? t : cr(t, e) ? [t] : Ji(qi(t));
557
+ return M(t) ? t : ir(t, e) ? [t] : Gi(Hi(t));
551
558
  }
552
- var Qi = 1 / 0;
559
+ var Vi = 1 / 0;
553
560
  function $t(t) {
554
- if (typeof t == "string" || Ke(t))
561
+ if (typeof t == "string" || Xe(t))
555
562
  return t;
556
563
  var e = t + "";
557
- return e == "0" && 1 / t == -Qi ? "-0" : e;
564
+ return e == "0" && 1 / t == -Vi ? "-0" : e;
558
565
  }
559
- function ge(t, e) {
566
+ function ye(t, e) {
560
567
  e = Nt(e, t);
561
568
  for (var r = 0, n = e.length; t != null && r < n; )
562
569
  t = t[$t(e[r++])];
563
570
  return r && r == n ? t : void 0;
564
571
  }
565
- function Jn(t, e, r) {
566
- var n = t == null ? void 0 : ge(t, e);
572
+ function Hn(t, e, r) {
573
+ var n = t == null ? void 0 : ye(t, e);
567
574
  return n === void 0 ? r : n;
568
575
  }
569
- function lr(t, e) {
576
+ function ur(t, e) {
570
577
  for (var r = -1, n = e.length, o = t.length; ++r < n; )
571
578
  t[o + r] = e[r];
572
579
  return t;
573
580
  }
574
- var Vr = z ? z.isConcatSpreadable : void 0;
575
- function Yi(t) {
576
- return M(t) || Vt(t) || !!(Vr && t && t[Vr]);
581
+ var Gr = k ? k.isConcatSpreadable : void 0;
582
+ function Wi(t) {
583
+ return M(t) || Gt(t) || !!(Gr && t && t[Gr]);
577
584
  }
578
- function fr(t, e, r, n, o) {
585
+ function lr(t, e, r, n, o) {
579
586
  var a = -1, i = t.length;
580
- for (r || (r = Yi), o || (o = []); ++a < i; ) {
587
+ for (r || (r = Wi), o || (o = []); ++a < i; ) {
581
588
  var s = t[a];
582
- e > 0 && r(s) ? e > 1 ? fr(s, e - 1, r, n, o) : lr(o, s) : n || (o[o.length] = s);
589
+ e > 0 && r(s) ? e > 1 ? lr(s, e - 1, r, n, o) : ur(o, s) : n || (o[o.length] = s);
583
590
  }
584
591
  return o;
585
592
  }
586
- function Xi(t) {
593
+ function Ji(t) {
587
594
  var e = t == null ? 0 : t.length;
588
- return e ? fr(t, 1) : [];
595
+ return e ? lr(t, 1) : [];
589
596
  }
590
- function Ki(t) {
591
- return Bn(Un(t, void 0, Xi), t + "");
597
+ function qi(t) {
598
+ return In(Ln(t, void 0, Ji), t + "");
592
599
  }
593
- var Zi = Wn(Object.getPrototypeOf, Object);
594
- const pr = Zi;
595
- var tc = "[object Object]", ec = Function.prototype, rc = Object.prototype, qn = ec.toString, nc = rc.hasOwnProperty, oc = qn.call(Object);
596
- function B(t) {
597
- if (!Q(t) || pt(t) != tc)
600
+ var Qi = Gn(Object.getPrototypeOf, Object);
601
+ const fr = Qi;
602
+ var Yi = "[object Object]", Xi = Function.prototype, Ki = Object.prototype, Vn = Xi.toString, Zi = Ki.hasOwnProperty, tc = Vn.call(Object);
603
+ function F(t) {
604
+ if (!Y(t) || dt(t) != Yi)
598
605
  return !1;
599
- var e = pr(t);
606
+ var e = fr(t);
600
607
  if (e === null)
601
608
  return !0;
602
- var r = nc.call(e, "constructor") && e.constructor;
603
- return typeof r == "function" && r instanceof r && qn.call(r) == oc;
609
+ var r = Zi.call(e, "constructor") && e.constructor;
610
+ return typeof r == "function" && r instanceof r && Vn.call(r) == tc;
604
611
  }
605
- function ac(t, e, r) {
612
+ function ec(t, e, r) {
606
613
  var n = -1, o = t.length;
607
614
  e < 0 && (e = -e > o ? 0 : o + e), r = r > o ? o : r, r < 0 && (r += o), o = e > r ? 0 : r - e >>> 0, e >>>= 0;
608
615
  for (var a = Array(o); ++n < o; )
609
616
  a[n] = t[n + e];
610
617
  return a;
611
618
  }
612
- function sc() {
619
+ function rc() {
613
620
  this.__data__ = new et(), this.size = 0;
614
621
  }
615
- function ic(t) {
622
+ function nc(t) {
616
623
  var e = this.__data__, r = e.delete(t);
617
624
  return this.size = e.size, r;
618
625
  }
619
- function cc(t) {
626
+ function oc(t) {
620
627
  return this.__data__.get(t);
621
628
  }
622
- function uc(t) {
629
+ function ac(t) {
623
630
  return this.__data__.has(t);
624
631
  }
625
- var lc = 200;
626
- function fc(t, e) {
632
+ var sc = 200;
633
+ function ic(t, e) {
627
634
  var r = this.__data__;
628
635
  if (r instanceof et) {
629
636
  var n = r.__data__;
630
- if (!qt || n.length < lc - 1)
637
+ if (!Wt || n.length < sc - 1)
631
638
  return n.push([t, e]), this.size = ++r.size, this;
632
639
  r = this.__data__ = new rt(n);
633
640
  }
634
641
  return r.set(t, e), this.size = r.size, this;
635
642
  }
636
- function V(t) {
643
+ function H(t) {
637
644
  var e = this.__data__ = new et(t);
638
645
  this.size = e.size;
639
646
  }
640
- V.prototype.clear = sc;
641
- V.prototype.delete = ic;
642
- V.prototype.get = cc;
643
- V.prototype.has = uc;
644
- V.prototype.set = fc;
645
- function pc(t, e) {
646
- return t && xt(e, ve(e), t);
647
+ H.prototype.clear = rc;
648
+ H.prototype.delete = nc;
649
+ H.prototype.get = oc;
650
+ H.prototype.has = ac;
651
+ H.prototype.set = ic;
652
+ function cc(t, e) {
653
+ return t && xt(e, he(e), t);
647
654
  }
648
- function dc(t, e) {
649
- return t && xt(e, te(e), t);
655
+ function uc(t, e) {
656
+ return t && xt(e, Kt(e), t);
650
657
  }
651
- var Qn = typeof exports == "object" && exports && !exports.nodeType && exports, Wr = Qn && typeof module == "object" && module && !module.nodeType && module, hc = Wr && Wr.exports === Qn, Jr = hc ? Y.Buffer : void 0, qr = Jr ? Jr.allocUnsafe : void 0;
652
- function Yn(t, e) {
658
+ var Wn = typeof exports == "object" && exports && !exports.nodeType && exports, Hr = Wn && typeof module == "object" && module && !module.nodeType && module, lc = Hr && Hr.exports === Wn, Vr = lc ? X.Buffer : void 0, Wr = Vr ? Vr.allocUnsafe : void 0;
659
+ function Jn(t, e) {
653
660
  if (e)
654
661
  return t.slice();
655
- var r = t.length, n = qr ? qr(r) : new t.constructor(r);
662
+ var r = t.length, n = Wr ? Wr(r) : new t.constructor(r);
656
663
  return t.copy(n), n;
657
664
  }
658
- function vc(t, e) {
665
+ function fc(t, e) {
659
666
  for (var r = -1, n = t == null ? 0 : t.length, o = 0, a = []; ++r < n; ) {
660
667
  var i = t[r];
661
668
  e(i, r, t) && (a[o++] = i);
662
669
  }
663
670
  return a;
664
671
  }
665
- function Xn() {
672
+ function qn() {
666
673
  return [];
667
674
  }
668
- var mc = Object.prototype, yc = mc.propertyIsEnumerable, Qr = Object.getOwnPropertySymbols, gc = Qr ? function(t) {
669
- return t == null ? [] : (t = Object(t), vc(Qr(t), function(e) {
670
- return yc.call(t, e);
675
+ var pc = Object.prototype, dc = pc.propertyIsEnumerable, Jr = Object.getOwnPropertySymbols, hc = Jr ? function(t) {
676
+ return t == null ? [] : (t = Object(t), fc(Jr(t), function(e) {
677
+ return dc.call(t, e);
671
678
  }));
672
- } : Xn;
673
- const dr = gc;
674
- function bc(t, e) {
675
- return xt(t, dr(t), e);
679
+ } : qn;
680
+ const pr = hc;
681
+ function vc(t, e) {
682
+ return xt(t, pr(t), e);
676
683
  }
677
- var _c = Object.getOwnPropertySymbols, jc = _c ? function(t) {
684
+ var mc = Object.getOwnPropertySymbols, yc = mc ? function(t) {
678
685
  for (var e = []; t; )
679
- lr(e, dr(t)), t = pr(t);
686
+ ur(e, pr(t)), t = fr(t);
680
687
  return e;
681
- } : Xn;
682
- const Kn = jc;
683
- function wc(t, e) {
684
- return xt(t, Kn(t), e);
688
+ } : qn;
689
+ const Qn = yc;
690
+ function gc(t, e) {
691
+ return xt(t, Qn(t), e);
685
692
  }
686
- function Zn(t, e, r) {
693
+ function Yn(t, e, r) {
687
694
  var n = e(t);
688
- return M(t) ? n : lr(n, r(t));
689
- }
690
- function Ie(t) {
691
- return Zn(t, ve, dr);
692
- }
693
- function hr(t) {
694
- return Zn(t, te, Kn);
695
- }
696
- var Sc = ht(Y, "DataView");
697
- const Le = Sc;
698
- var Oc = ht(Y, "Promise");
699
- const Fe = Oc;
700
- var Cc = ht(Y, "Set");
701
- const bt = Cc;
702
- var Yr = "[object Map]", Ec = "[object Object]", Xr = "[object Promise]", Kr = "[object Set]", Zr = "[object WeakMap]", tn = "[object DataView]", xc = dt(Le), Nc = dt(qt), $c = dt(Fe), Tc = dt(bt), Ac = dt(Re), ct = pt;
703
- (Le && ct(new Le(new ArrayBuffer(1))) != tn || qt && ct(new qt()) != Yr || Fe && ct(Fe.resolve()) != Xr || bt && ct(new bt()) != Kr || Re && ct(new Re()) != Zr) && (ct = function(t) {
704
- var e = pt(t), r = e == Ec ? t.constructor : void 0, n = r ? dt(r) : "";
695
+ return M(t) ? n : ur(n, r(t));
696
+ }
697
+ function De(t) {
698
+ return Yn(t, he, pr);
699
+ }
700
+ function dr(t) {
701
+ return Yn(t, Kt, Qn);
702
+ }
703
+ var bc = vt(X, "DataView");
704
+ const Ie = bc;
705
+ var _c = vt(X, "Promise");
706
+ const Le = _c;
707
+ var jc = vt(X, "Set");
708
+ const bt = jc;
709
+ var qr = "[object Map]", Sc = "[object Object]", Qr = "[object Promise]", Yr = "[object Set]", Xr = "[object WeakMap]", Kr = "[object DataView]", wc = ht(Ie), Oc = ht(Wt), Cc = ht(Le), Ec = ht(bt), xc = ht(Re), ut = dt;
710
+ (Ie && ut(new Ie(new ArrayBuffer(1))) != Kr || Wt && ut(new Wt()) != qr || Le && ut(Le.resolve()) != Qr || bt && ut(new bt()) != Yr || Re && ut(new Re()) != Xr) && (ut = function(t) {
711
+ var e = dt(t), r = e == Sc ? t.constructor : void 0, n = r ? ht(r) : "";
705
712
  if (n)
706
713
  switch (n) {
707
- case xc:
708
- return tn;
709
- case Nc:
714
+ case wc:
715
+ return Kr;
716
+ case Oc:
717
+ return qr;
718
+ case Cc:
719
+ return Qr;
720
+ case Ec:
710
721
  return Yr;
711
- case $c:
722
+ case xc:
712
723
  return Xr;
713
- case Tc:
714
- return Kr;
715
- case Ac:
716
- return Zr;
717
724
  }
718
725
  return e;
719
726
  });
720
- const Qt = ct;
721
- var Mc = Object.prototype, Pc = Mc.hasOwnProperty;
722
- function Dc(t) {
727
+ const Jt = ut;
728
+ var Nc = Object.prototype, $c = Nc.hasOwnProperty;
729
+ function Tc(t) {
723
730
  var e = t.length, r = new t.constructor(e);
724
- return e && typeof t[0] == "string" && Pc.call(t, "index") && (r.index = t.index, r.input = t.input), r;
731
+ return e && typeof t[0] == "string" && $c.call(t, "index") && (r.index = t.index, r.input = t.input), r;
725
732
  }
726
- var Rc = Y.Uint8Array;
727
- const ue = Rc;
728
- function vr(t) {
733
+ var Ac = X.Uint8Array;
734
+ const ie = Ac;
735
+ function hr(t) {
729
736
  var e = new t.constructor(t.byteLength);
730
- return new ue(e).set(new ue(t)), e;
737
+ return new ie(e).set(new ie(t)), e;
731
738
  }
732
- function Ic(t, e) {
733
- var r = e ? vr(t.buffer) : t.buffer;
739
+ function Mc(t, e) {
740
+ var r = e ? hr(t.buffer) : t.buffer;
734
741
  return new t.constructor(r, t.byteOffset, t.byteLength);
735
742
  }
736
- var Lc = /\w*$/;
737
- function Fc(t) {
738
- var e = new t.constructor(t.source, Lc.exec(t));
743
+ var Pc = /\w*$/;
744
+ function Rc(t) {
745
+ var e = new t.constructor(t.source, Pc.exec(t));
739
746
  return e.lastIndex = t.lastIndex, e;
740
747
  }
741
- var en = z ? z.prototype : void 0, rn = en ? en.valueOf : void 0;
742
- function Bc(t) {
743
- return rn ? Object(rn.call(t)) : {};
748
+ var Zr = k ? k.prototype : void 0, tn = Zr ? Zr.valueOf : void 0;
749
+ function Dc(t) {
750
+ return tn ? Object(tn.call(t)) : {};
744
751
  }
745
- function to(t, e) {
746
- var r = e ? vr(t.buffer) : t.buffer;
752
+ function Xn(t, e) {
753
+ var r = e ? hr(t.buffer) : t.buffer;
747
754
  return new t.constructor(r, t.byteOffset, t.length);
748
755
  }
749
- var Uc = "[object Boolean]", kc = "[object Date]", zc = "[object Map]", Gc = "[object Number]", Hc = "[object RegExp]", Vc = "[object Set]", Wc = "[object String]", Jc = "[object Symbol]", qc = "[object ArrayBuffer]", Qc = "[object DataView]", Yc = "[object Float32Array]", Xc = "[object Float64Array]", Kc = "[object Int8Array]", Zc = "[object Int16Array]", tu = "[object Int32Array]", eu = "[object Uint8Array]", ru = "[object Uint8ClampedArray]", nu = "[object Uint16Array]", ou = "[object Uint32Array]";
750
- function au(t, e, r) {
756
+ var Ic = "[object Boolean]", Lc = "[object Date]", Fc = "[object Map]", Bc = "[object Number]", Uc = "[object RegExp]", kc = "[object Set]", zc = "[object String]", Gc = "[object Symbol]", Hc = "[object ArrayBuffer]", Vc = "[object DataView]", Wc = "[object Float32Array]", Jc = "[object Float64Array]", qc = "[object Int8Array]", Qc = "[object Int16Array]", Yc = "[object Int32Array]", Xc = "[object Uint8Array]", Kc = "[object Uint8ClampedArray]", Zc = "[object Uint16Array]", tu = "[object Uint32Array]";
757
+ function eu(t, e, r) {
751
758
  var n = t.constructor;
752
759
  switch (e) {
753
- case qc:
754
- return vr(t);
755
- case Uc:
756
- case kc:
760
+ case Hc:
761
+ return hr(t);
762
+ case Ic:
763
+ case Lc:
757
764
  return new n(+t);
765
+ case Vc:
766
+ return Mc(t, r);
767
+ case Wc:
768
+ case Jc:
769
+ case qc:
758
770
  case Qc:
759
- return Ic(t, r);
760
771
  case Yc:
761
772
  case Xc:
762
773
  case Kc:
763
774
  case Zc:
764
775
  case tu:
765
- case eu:
766
- case ru:
767
- case nu:
768
- case ou:
769
- return to(t, r);
770
- case zc:
776
+ return Xn(t, r);
777
+ case Fc:
771
778
  return new n();
772
- case Gc:
773
- case Wc:
779
+ case Bc:
780
+ case zc:
774
781
  return new n(t);
775
- case Hc:
776
- return Fc(t);
777
- case Vc:
782
+ case Uc:
783
+ return Rc(t);
784
+ case kc:
778
785
  return new n();
779
- case Jc:
780
- return Bc(t);
786
+ case Gc:
787
+ return Dc(t);
781
788
  }
782
789
  }
783
- function eo(t) {
784
- return typeof t.constructor == "function" && !ar(t) ? Ja(pr(t)) : {};
790
+ function Kn(t) {
791
+ return typeof t.constructor == "function" && !or(t) ? Ga(fr(t)) : {};
792
+ }
793
+ var ru = "[object Map]";
794
+ function nu(t) {
795
+ return Y(t) && Jt(t) == ru;
785
796
  }
786
- var su = "[object Map]";
797
+ var en = _t && _t.isMap, ou = en ? ar(en) : nu;
798
+ const au = ou;
799
+ var su = "[object Set]";
787
800
  function iu(t) {
788
- return Q(t) && Qt(t) == su;
801
+ return Y(t) && Jt(t) == su;
789
802
  }
790
- var nn = _t && _t.isMap, cu = nn ? sr(nn) : iu;
803
+ var rn = _t && _t.isSet, cu = rn ? ar(rn) : iu;
791
804
  const uu = cu;
792
- var lu = "[object Set]";
793
- function fu(t) {
794
- return Q(t) && Qt(t) == lu;
795
- }
796
- var on = _t && _t.isSet, pu = on ? sr(on) : fu;
797
- const du = pu;
798
- var hu = 1, vu = 2, mu = 4, ro = "[object Arguments]", yu = "[object Array]", gu = "[object Boolean]", bu = "[object Date]", _u = "[object Error]", no = "[object Function]", ju = "[object GeneratorFunction]", wu = "[object Map]", Su = "[object Number]", oo = "[object Object]", Ou = "[object RegExp]", Cu = "[object Set]", Eu = "[object String]", xu = "[object Symbol]", Nu = "[object WeakMap]", $u = "[object ArrayBuffer]", Tu = "[object DataView]", Au = "[object Float32Array]", Mu = "[object Float64Array]", Pu = "[object Int8Array]", Du = "[object Int16Array]", Ru = "[object Int32Array]", Iu = "[object Uint8Array]", Lu = "[object Uint8ClampedArray]", Fu = "[object Uint16Array]", Bu = "[object Uint32Array]", E = {};
799
- E[ro] = E[yu] = E[$u] = E[Tu] = E[gu] = E[bu] = E[Au] = E[Mu] = E[Pu] = E[Du] = E[Ru] = E[wu] = E[Su] = E[oo] = E[Ou] = E[Cu] = E[Eu] = E[xu] = E[Iu] = E[Lu] = E[Fu] = E[Bu] = !0;
800
- E[_u] = E[no] = E[Nu] = !1;
801
- function zt(t, e, r, n, o, a) {
802
- var i, s = e & hu, c = e & vu, u = e & mu;
805
+ var lu = 1, fu = 2, pu = 4, Zn = "[object Arguments]", du = "[object Array]", hu = "[object Boolean]", vu = "[object Date]", mu = "[object Error]", to = "[object Function]", yu = "[object GeneratorFunction]", gu = "[object Map]", bu = "[object Number]", eo = "[object Object]", _u = "[object RegExp]", ju = "[object Set]", Su = "[object String]", wu = "[object Symbol]", Ou = "[object WeakMap]", Cu = "[object ArrayBuffer]", Eu = "[object DataView]", xu = "[object Float32Array]", Nu = "[object Float64Array]", $u = "[object Int8Array]", Tu = "[object Int16Array]", Au = "[object Int32Array]", Mu = "[object Uint8Array]", Pu = "[object Uint8ClampedArray]", Ru = "[object Uint16Array]", Du = "[object Uint32Array]", E = {};
806
+ E[Zn] = E[du] = E[Cu] = E[Eu] = E[hu] = E[vu] = E[xu] = E[Nu] = E[$u] = E[Tu] = E[Au] = E[gu] = E[bu] = E[eo] = E[_u] = E[ju] = E[Su] = E[wu] = E[Mu] = E[Pu] = E[Ru] = E[Du] = !0;
807
+ E[mu] = E[to] = E[Ou] = !1;
808
+ function Ut(t, e, r, n, o, a) {
809
+ var i, s = e & lu, c = e & fu, u = e & pu;
803
810
  if (r && (i = o ? r(t, n, o, a) : r(t)), i !== void 0)
804
811
  return i;
805
- if (!J(t))
812
+ if (!W(t))
806
813
  return t;
807
814
  var l = M(t);
808
815
  if (l) {
809
- if (i = Dc(t), !s)
810
- return Fn(t, i);
816
+ if (i = Tc(t), !s)
817
+ return Dn(t, i);
811
818
  } else {
812
- var p = Qt(t), f = p == no || p == ju;
813
- if (Wt(t))
814
- return Yn(t, s);
815
- if (p == oo || p == ro || f && !o) {
816
- if (i = c || f ? {} : eo(t), !s)
817
- return c ? wc(t, dc(i, t)) : bc(t, pc(i, t));
819
+ var p = Jt(t), f = p == to || p == yu;
820
+ if (Ht(t))
821
+ return Jn(t, s);
822
+ if (p == eo || p == Zn || f && !o) {
823
+ if (i = c || f ? {} : Kn(t), !s)
824
+ return c ? gc(t, uc(i, t)) : vc(t, cc(i, t));
818
825
  } else {
819
826
  if (!E[p])
820
827
  return o ? t : {};
821
- i = au(t, p, s);
828
+ i = eu(t, p, s);
822
829
  }
823
830
  }
824
- a || (a = new V());
831
+ a || (a = new H());
825
832
  var d = a.get(t);
826
833
  if (d)
827
834
  return d;
828
- a.set(t, i), du(t) ? t.forEach(function(b) {
829
- i.add(zt(b, e, r, b, t, a));
830
- }) : uu(t) && t.forEach(function(b, j) {
831
- i.set(j, zt(b, e, r, j, t, a));
835
+ a.set(t, i), uu(t) ? t.forEach(function(b) {
836
+ i.add(Ut(b, e, r, b, t, a));
837
+ }) : au(t) && t.forEach(function(b, S) {
838
+ i.set(S, Ut(b, e, r, S, t, a));
832
839
  });
833
- var h = u ? c ? hr : Ie : c ? te : ve, y = l ? void 0 : h(t);
834
- return as(y || t, function(b, j) {
835
- y && (j = b, b = t[j]), nr(i, j, zt(b, e, r, j, t, a));
840
+ var h = u ? c ? dr : De : c ? Kt : he, y = l ? void 0 : h(t);
841
+ return es(y || t, function(b, S) {
842
+ y && (S = b, b = t[S]), rr(i, S, Ut(b, e, r, S, t, a));
836
843
  }), i;
837
844
  }
838
- var Uu = 1, ku = 4;
839
- function ao(t) {
840
- return zt(t, Uu | ku);
845
+ var Iu = 1, Lu = 4;
846
+ function ro(t) {
847
+ return Ut(t, Iu | Lu);
841
848
  }
842
- var zu = "__lodash_hash_undefined__";
843
- function Gu(t) {
844
- return this.__data__.set(t, zu), this;
849
+ var Fu = "__lodash_hash_undefined__";
850
+ function Bu(t) {
851
+ return this.__data__.set(t, Fu), this;
845
852
  }
846
- function Hu(t) {
853
+ function Uu(t) {
847
854
  return this.__data__.has(t);
848
855
  }
849
- function Yt(t) {
856
+ function qt(t) {
850
857
  var e = -1, r = t == null ? 0 : t.length;
851
858
  for (this.__data__ = new rt(); ++e < r; )
852
859
  this.add(t[e]);
853
860
  }
854
- Yt.prototype.add = Yt.prototype.push = Gu;
855
- Yt.prototype.has = Hu;
856
- function Vu(t, e) {
861
+ qt.prototype.add = qt.prototype.push = Bu;
862
+ qt.prototype.has = Uu;
863
+ function ku(t, e) {
857
864
  for (var r = -1, n = t == null ? 0 : t.length; ++r < n; )
858
865
  if (e(t[r], r, t))
859
866
  return !0;
860
867
  return !1;
861
868
  }
862
- function so(t, e) {
869
+ function no(t, e) {
863
870
  return t.has(e);
864
871
  }
865
- var Wu = 1, Ju = 2;
866
- function io(t, e, r, n, o, a) {
867
- var i = r & Wu, s = t.length, c = e.length;
872
+ var zu = 1, Gu = 2;
873
+ function oo(t, e, r, n, o, a) {
874
+ var i = r & zu, s = t.length, c = e.length;
868
875
  if (s != c && !(i && c > s))
869
876
  return !1;
870
877
  var u = a.get(t), l = a.get(e);
871
878
  if (u && l)
872
879
  return u == e && l == t;
873
- var p = -1, f = !0, d = r & Ju ? new Yt() : void 0;
880
+ var p = -1, f = !0, d = r & Gu ? new qt() : void 0;
874
881
  for (a.set(t, e), a.set(e, t); ++p < s; ) {
875
882
  var h = t[p], y = e[p];
876
883
  if (n)
@@ -882,9 +889,9 @@ function io(t, e, r, n, o, a) {
882
889
  break;
883
890
  }
884
891
  if (d) {
885
- if (!Vu(e, function(j, O) {
886
- if (!so(d, O) && (h === j || o(h, j, r, n, a)))
887
- return d.push(O);
892
+ if (!ku(e, function(S, C) {
893
+ if (!no(d, C) && (h === S || o(h, S, r, n, a)))
894
+ return d.push(C);
888
895
  })) {
889
896
  f = !1;
890
897
  break;
@@ -896,62 +903,62 @@ function io(t, e, r, n, o, a) {
896
903
  }
897
904
  return a.delete(t), a.delete(e), f;
898
905
  }
899
- function qu(t) {
906
+ function Hu(t) {
900
907
  var e = -1, r = Array(t.size);
901
908
  return t.forEach(function(n, o) {
902
909
  r[++e] = [o, n];
903
910
  }), r;
904
911
  }
905
- function mr(t) {
912
+ function vr(t) {
906
913
  var e = -1, r = Array(t.size);
907
914
  return t.forEach(function(n) {
908
915
  r[++e] = n;
909
916
  }), r;
910
917
  }
911
- var Qu = 1, Yu = 2, Xu = "[object Boolean]", Ku = "[object Date]", Zu = "[object Error]", tl = "[object Map]", el = "[object Number]", rl = "[object RegExp]", nl = "[object Set]", ol = "[object String]", al = "[object Symbol]", sl = "[object ArrayBuffer]", il = "[object DataView]", an = z ? z.prototype : void 0, $e = an ? an.valueOf : void 0;
912
- function cl(t, e, r, n, o, a, i) {
918
+ var Vu = 1, Wu = 2, Ju = "[object Boolean]", qu = "[object Date]", Qu = "[object Error]", Yu = "[object Map]", Xu = "[object Number]", Ku = "[object RegExp]", Zu = "[object Set]", tl = "[object String]", el = "[object Symbol]", rl = "[object ArrayBuffer]", nl = "[object DataView]", nn = k ? k.prototype : void 0, Ne = nn ? nn.valueOf : void 0;
919
+ function ol(t, e, r, n, o, a, i) {
913
920
  switch (r) {
914
- case il:
921
+ case nl:
915
922
  if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
916
923
  return !1;
917
924
  t = t.buffer, e = e.buffer;
918
- case sl:
919
- return !(t.byteLength != e.byteLength || !a(new ue(t), new ue(e)));
925
+ case rl:
926
+ return !(t.byteLength != e.byteLength || !a(new ie(t), new ie(e)));
927
+ case Ju:
928
+ case qu:
920
929
  case Xu:
921
- case Ku:
922
- case el:
923
- return Zt(+t, +e);
924
- case Zu:
930
+ return Xt(+t, +e);
931
+ case Qu:
925
932
  return t.name == e.name && t.message == e.message;
926
- case rl:
927
- case ol:
928
- return t == e + "";
933
+ case Ku:
929
934
  case tl:
930
- var s = qu;
931
- case nl:
932
- var c = n & Qu;
933
- if (s || (s = mr), t.size != e.size && !c)
935
+ return t == e + "";
936
+ case Yu:
937
+ var s = Hu;
938
+ case Zu:
939
+ var c = n & Vu;
940
+ if (s || (s = vr), t.size != e.size && !c)
934
941
  return !1;
935
942
  var u = i.get(t);
936
943
  if (u)
937
944
  return u == e;
938
- n |= Yu, i.set(t, e);
939
- var l = io(s(t), s(e), n, o, a, i);
945
+ n |= Wu, i.set(t, e);
946
+ var l = oo(s(t), s(e), n, o, a, i);
940
947
  return i.delete(t), l;
941
- case al:
942
- if ($e)
943
- return $e.call(t) == $e.call(e);
948
+ case el:
949
+ if (Ne)
950
+ return Ne.call(t) == Ne.call(e);
944
951
  }
945
952
  return !1;
946
953
  }
947
- var ul = 1, ll = Object.prototype, fl = ll.hasOwnProperty;
948
- function pl(t, e, r, n, o, a) {
949
- var i = r & ul, s = Ie(t), c = s.length, u = Ie(e), l = u.length;
954
+ var al = 1, sl = Object.prototype, il = sl.hasOwnProperty;
955
+ function cl(t, e, r, n, o, a) {
956
+ var i = r & al, s = De(t), c = s.length, u = De(e), l = u.length;
950
957
  if (c != l && !i)
951
958
  return !1;
952
959
  for (var p = c; p--; ) {
953
960
  var f = s[p];
954
- if (!(i ? f in e : fl.call(e, f)))
961
+ if (!(i ? f in e : il.call(e, f)))
955
962
  return !1;
956
963
  }
957
964
  var d = a.get(t), h = a.get(e);
@@ -961,47 +968,47 @@ function pl(t, e, r, n, o, a) {
961
968
  a.set(t, e), a.set(e, t);
962
969
  for (var b = i; ++p < c; ) {
963
970
  f = s[p];
964
- var j = t[f], O = e[f];
971
+ var S = t[f], C = e[f];
965
972
  if (n)
966
- var P = i ? n(O, j, f, e, t, a) : n(j, O, f, t, e, a);
967
- if (!(P === void 0 ? j === O || o(j, O, r, n, a) : P)) {
973
+ var P = i ? n(C, S, f, e, t, a) : n(S, C, f, t, e, a);
974
+ if (!(P === void 0 ? S === C || o(S, C, r, n, a) : P)) {
968
975
  y = !1;
969
976
  break;
970
977
  }
971
978
  b || (b = f == "constructor");
972
979
  }
973
980
  if (y && !b) {
974
- var $ = t.constructor, D = e.constructor;
975
- $ != D && "constructor" in t && "constructor" in e && !(typeof $ == "function" && $ instanceof $ && typeof D == "function" && D instanceof D) && (y = !1);
981
+ var $ = t.constructor, R = e.constructor;
982
+ $ != R && "constructor" in t && "constructor" in e && !(typeof $ == "function" && $ instanceof $ && typeof R == "function" && R instanceof R) && (y = !1);
976
983
  }
977
984
  return a.delete(t), a.delete(e), y;
978
985
  }
979
- var dl = 1, sn = "[object Arguments]", cn = "[object Array]", se = "[object Object]", hl = Object.prototype, un = hl.hasOwnProperty;
980
- function vl(t, e, r, n, o, a) {
981
- var i = M(t), s = M(e), c = i ? cn : Qt(t), u = s ? cn : Qt(e);
982
- c = c == sn ? se : c, u = u == sn ? se : u;
983
- var l = c == se, p = u == se, f = c == u;
984
- if (f && Wt(t)) {
985
- if (!Wt(e))
986
+ var ul = 1, on = "[object Arguments]", an = "[object Array]", oe = "[object Object]", ll = Object.prototype, sn = ll.hasOwnProperty;
987
+ function fl(t, e, r, n, o, a) {
988
+ var i = M(t), s = M(e), c = i ? an : Jt(t), u = s ? an : Jt(e);
989
+ c = c == on ? oe : c, u = u == on ? oe : u;
990
+ var l = c == oe, p = u == oe, f = c == u;
991
+ if (f && Ht(t)) {
992
+ if (!Ht(e))
986
993
  return !1;
987
994
  i = !0, l = !1;
988
995
  }
989
996
  if (f && !l)
990
- return a || (a = new V()), i || ir(t) ? io(t, e, r, n, o, a) : cl(t, e, c, r, n, o, a);
991
- if (!(r & dl)) {
992
- var d = l && un.call(t, "__wrapped__"), h = p && un.call(e, "__wrapped__");
997
+ return a || (a = new H()), i || sr(t) ? oo(t, e, r, n, o, a) : ol(t, e, c, r, n, o, a);
998
+ if (!(r & ul)) {
999
+ var d = l && sn.call(t, "__wrapped__"), h = p && sn.call(e, "__wrapped__");
993
1000
  if (d || h) {
994
1001
  var y = d ? t.value() : t, b = h ? e.value() : e;
995
- return a || (a = new V()), o(y, b, r, n, a);
1002
+ return a || (a = new H()), o(y, b, r, n, a);
996
1003
  }
997
1004
  }
998
- return f ? (a || (a = new V()), pl(t, e, r, n, o, a)) : !1;
1005
+ return f ? (a || (a = new H()), cl(t, e, r, n, o, a)) : !1;
999
1006
  }
1000
- function yr(t, e, r, n, o) {
1001
- return t === e ? !0 : t == null || e == null || !Q(t) && !Q(e) ? t !== t && e !== e : vl(t, e, r, n, yr, o);
1007
+ function mr(t, e, r, n, o) {
1008
+ return t === e ? !0 : t == null || e == null || !Y(t) && !Y(e) ? t !== t && e !== e : fl(t, e, r, n, mr, o);
1002
1009
  }
1003
- var ml = 1, yl = 2;
1004
- function gl(t, e, r, n) {
1010
+ var pl = 1, dl = 2;
1011
+ function hl(t, e, r, n) {
1005
1012
  var o = r.length, a = o, i = !n;
1006
1013
  if (t == null)
1007
1014
  return !a;
@@ -1017,40 +1024,40 @@ function gl(t, e, r, n) {
1017
1024
  if (u === void 0 && !(c in t))
1018
1025
  return !1;
1019
1026
  } else {
1020
- var p = new V();
1027
+ var p = new H();
1021
1028
  if (n)
1022
1029
  var f = n(u, l, c, t, e, p);
1023
- if (!(f === void 0 ? yr(l, u, ml | yl, n, p) : f))
1030
+ if (!(f === void 0 ? mr(l, u, pl | dl, n, p) : f))
1024
1031
  return !1;
1025
1032
  }
1026
1033
  }
1027
1034
  return !0;
1028
1035
  }
1029
- function co(t) {
1030
- return t === t && !J(t);
1036
+ function ao(t) {
1037
+ return t === t && !W(t);
1031
1038
  }
1032
- function bl(t) {
1033
- for (var e = ve(t), r = e.length; r--; ) {
1039
+ function vl(t) {
1040
+ for (var e = he(t), r = e.length; r--; ) {
1034
1041
  var n = e[r], o = t[n];
1035
- e[r] = [n, o, co(o)];
1042
+ e[r] = [n, o, ao(o)];
1036
1043
  }
1037
1044
  return e;
1038
1045
  }
1039
- function uo(t, e) {
1046
+ function so(t, e) {
1040
1047
  return function(r) {
1041
1048
  return r == null ? !1 : r[t] === e && (e !== void 0 || t in Object(r));
1042
1049
  };
1043
1050
  }
1044
- function _l(t) {
1045
- var e = bl(t);
1046
- return e.length == 1 && e[0][2] ? uo(e[0][0], e[0][1]) : function(r) {
1047
- return r === t || gl(r, t, e);
1051
+ function ml(t) {
1052
+ var e = vl(t);
1053
+ return e.length == 1 && e[0][2] ? so(e[0][0], e[0][1]) : function(r) {
1054
+ return r === t || hl(r, t, e);
1048
1055
  };
1049
1056
  }
1050
- function jl(t, e) {
1057
+ function yl(t, e) {
1051
1058
  return t != null && e in Object(t);
1052
1059
  }
1053
- function wl(t, e, r) {
1060
+ function gl(t, e, r) {
1054
1061
  e = Nt(e, t);
1055
1062
  for (var n = -1, o = e.length, a = !1; ++n < o; ) {
1056
1063
  var i = $t(e[n]);
@@ -1058,35 +1065,35 @@ function wl(t, e, r) {
1058
1065
  break;
1059
1066
  t = t[i];
1060
1067
  }
1061
- return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && or(o) && de(i, o) && (M(t) || Vt(t)));
1068
+ return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && nr(o) && pe(i, o) && (M(t) || Gt(t)));
1062
1069
  }
1063
- function Sl(t, e) {
1064
- return t != null && wl(t, e, jl);
1070
+ function bl(t, e) {
1071
+ return t != null && gl(t, e, yl);
1065
1072
  }
1066
- var Ol = 1, Cl = 2;
1067
- function El(t, e) {
1068
- return cr(t) && co(e) ? uo($t(t), e) : function(r) {
1069
- var n = Jn(r, t);
1070
- return n === void 0 && n === e ? Sl(r, t) : yr(e, n, Ol | Cl);
1073
+ var _l = 1, jl = 2;
1074
+ function Sl(t, e) {
1075
+ return ir(t) && ao(e) ? so($t(t), e) : function(r) {
1076
+ var n = Hn(r, t);
1077
+ return n === void 0 && n === e ? bl(r, t) : mr(e, n, _l | jl);
1071
1078
  };
1072
1079
  }
1073
- function xl(t) {
1080
+ function wl(t) {
1074
1081
  return function(e) {
1075
1082
  return e == null ? void 0 : e[t];
1076
1083
  };
1077
1084
  }
1078
- function Nl(t) {
1085
+ function Ol(t) {
1079
1086
  return function(e) {
1080
- return ge(e, t);
1087
+ return ye(e, t);
1081
1088
  };
1082
1089
  }
1083
- function $l(t) {
1084
- return cr(t) ? xl($t(t)) : Nl(t);
1090
+ function Cl(t) {
1091
+ return ir(t) ? wl($t(t)) : Ol(t);
1085
1092
  }
1086
- function gr(t) {
1087
- return typeof t == "function" ? t : t == null ? tr : typeof t == "object" ? M(t) ? El(t[0], t[1]) : _l(t) : $l(t);
1093
+ function yr(t) {
1094
+ return typeof t == "function" ? t : t == null ? Ze : typeof t == "object" ? M(t) ? Sl(t[0], t[1]) : ml(t) : Cl(t);
1088
1095
  }
1089
- function Tl(t) {
1096
+ function El(t) {
1090
1097
  return function(e, r, n) {
1091
1098
  for (var o = -1, a = Object(e), i = n(e), s = i.length; s--; ) {
1092
1099
  var c = i[t ? s : ++o];
@@ -1096,65 +1103,65 @@ function Tl(t) {
1096
1103
  return e;
1097
1104
  };
1098
1105
  }
1099
- var Al = Tl();
1100
- const Ml = Al;
1101
- function Be(t, e, r) {
1102
- (r !== void 0 && !Zt(t[e], r) || r === void 0 && !(e in t)) && rr(t, e, r);
1106
+ var xl = El();
1107
+ const Nl = xl;
1108
+ function Fe(t, e, r) {
1109
+ (r !== void 0 && !Xt(t[e], r) || r === void 0 && !(e in t)) && er(t, e, r);
1103
1110
  }
1104
- function Ue(t) {
1105
- return Q(t) && he(t);
1111
+ function Be(t) {
1112
+ return Y(t) && de(t);
1106
1113
  }
1107
- function ke(t, e) {
1114
+ function Ue(t, e) {
1108
1115
  if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
1109
1116
  return t[e];
1110
1117
  }
1111
- function Pl(t) {
1112
- return xt(t, te(t));
1118
+ function $l(t) {
1119
+ return xt(t, Kt(t));
1113
1120
  }
1114
- function Dl(t, e, r, n, o, a, i) {
1115
- var s = ke(t, r), c = ke(e, r), u = i.get(c);
1121
+ function Tl(t, e, r, n, o, a, i) {
1122
+ var s = Ue(t, r), c = Ue(e, r), u = i.get(c);
1116
1123
  if (u) {
1117
- Be(t, r, u);
1124
+ Fe(t, r, u);
1118
1125
  return;
1119
1126
  }
1120
1127
  var l = a ? a(s, c, r + "", t, e, i) : void 0, p = l === void 0;
1121
1128
  if (p) {
1122
- var f = M(c), d = !f && Wt(c), h = !f && !d && ir(c);
1123
- l = c, f || d || h ? M(s) ? l = s : Ue(s) ? l = Fn(s) : d ? (p = !1, l = Yn(c, !0)) : h ? (p = !1, l = to(c, !0)) : l = [] : B(c) || Vt(c) ? (l = s, Vt(s) ? l = Pl(s) : (!J(s) || er(s)) && (l = eo(c))) : p = !1;
1129
+ var f = M(c), d = !f && Ht(c), h = !f && !d && sr(c);
1130
+ l = c, f || d || h ? M(s) ? l = s : Be(s) ? l = Dn(s) : d ? (p = !1, l = Jn(c, !0)) : h ? (p = !1, l = Xn(c, !0)) : l = [] : F(c) || Gt(c) ? (l = s, Gt(s) ? l = $l(s) : (!W(s) || tr(s)) && (l = Kn(c))) : p = !1;
1124
1131
  }
1125
- p && (i.set(c, l), o(l, c, n, a, i), i.delete(c)), Be(t, r, l);
1132
+ p && (i.set(c, l), o(l, c, n, a, i), i.delete(c)), Fe(t, r, l);
1126
1133
  }
1127
- function lo(t, e, r, n, o) {
1128
- t !== e && Ml(e, function(a, i) {
1129
- if (o || (o = new V()), J(a))
1130
- Dl(t, e, i, r, lo, n, o);
1134
+ function io(t, e, r, n, o) {
1135
+ t !== e && Nl(e, function(a, i) {
1136
+ if (o || (o = new H()), W(a))
1137
+ Tl(t, e, i, r, io, n, o);
1131
1138
  else {
1132
- var s = n ? n(ke(t, i), a, i + "", t, e, o) : void 0;
1133
- s === void 0 && (s = a), Be(t, i, s);
1139
+ var s = n ? n(Ue(t, i), a, i + "", t, e, o) : void 0;
1140
+ s === void 0 && (s = a), Fe(t, i, s);
1134
1141
  }
1135
- }, te);
1142
+ }, Kt);
1136
1143
  }
1137
- function Rl(t, e, r) {
1144
+ function Al(t, e, r) {
1138
1145
  for (var n = -1, o = t == null ? 0 : t.length; ++n < o; )
1139
1146
  if (r(e, t[n]))
1140
1147
  return !0;
1141
1148
  return !1;
1142
1149
  }
1143
- function fo(t) {
1150
+ function co(t) {
1144
1151
  var e = t == null ? 0 : t.length;
1145
1152
  return e ? t[e - 1] : void 0;
1146
1153
  }
1147
- function Il(t, e) {
1148
- return e.length < 2 ? t : ge(t, ac(e, 0, -1));
1154
+ function Ml(t, e) {
1155
+ return e.length < 2 ? t : ye(t, ec(e, 0, -1));
1149
1156
  }
1150
- var Ll = ys(function(t, e, r) {
1151
- lo(t, e, r);
1157
+ var Pl = ds(function(t, e, r) {
1158
+ io(t, e, r);
1152
1159
  });
1153
- const po = Ll;
1154
- var Fl = "Expected a function";
1155
- function Bl(t) {
1160
+ const uo = Pl;
1161
+ var Rl = "Expected a function";
1162
+ function Dl(t) {
1156
1163
  if (typeof t != "function")
1157
- throw new TypeError(Fl);
1164
+ throw new TypeError(Rl);
1158
1165
  return function() {
1159
1166
  var e = arguments;
1160
1167
  switch (e.length) {
@@ -1170,27 +1177,27 @@ function Bl(t) {
1170
1177
  return !t.apply(this, e);
1171
1178
  };
1172
1179
  }
1173
- function Ul(t, e) {
1174
- return e = Nt(e, t), t = Il(t, e), t == null || delete t[$t(fo(e))];
1180
+ function Il(t, e) {
1181
+ return e = Nt(e, t), t = Ml(t, e), t == null || delete t[$t(co(e))];
1175
1182
  }
1176
- function kl(t) {
1177
- return B(t) ? void 0 : t;
1183
+ function Ll(t) {
1184
+ return F(t) ? void 0 : t;
1178
1185
  }
1179
- var zl = 1, Gl = 2, Hl = 4, Vl = Ki(function(t, e) {
1186
+ var Fl = 1, Bl = 2, Ul = 4, kl = qi(function(t, e) {
1180
1187
  var r = {};
1181
1188
  if (t == null)
1182
1189
  return r;
1183
1190
  var n = !1;
1184
- e = Ze(e, function(a) {
1191
+ e = Ke(e, function(a) {
1185
1192
  return a = Nt(a, t), n || (n = a.length > 1), a;
1186
- }), xt(t, hr(t), r), n && (r = zt(r, zl | Gl | Hl, kl));
1193
+ }), xt(t, dr(t), r), n && (r = Ut(r, Fl | Bl | Ul, Ll));
1187
1194
  for (var o = e.length; o--; )
1188
- Ul(r, e[o]);
1195
+ Il(r, e[o]);
1189
1196
  return r;
1190
1197
  });
1191
- const ho = Vl;
1192
- function Wl(t, e, r, n) {
1193
- if (!J(t))
1198
+ const lo = kl;
1199
+ function zl(t, e, r, n) {
1200
+ if (!W(t))
1194
1201
  return t;
1195
1202
  e = Nt(e, t);
1196
1203
  for (var o = -1, a = e.length, i = a - 1, s = t; s != null && ++o < a; ) {
@@ -1199,46 +1206,46 @@ function Wl(t, e, r, n) {
1199
1206
  return t;
1200
1207
  if (o != i) {
1201
1208
  var l = s[c];
1202
- u = n ? n(l, c, s) : void 0, u === void 0 && (u = J(l) ? l : de(e[o + 1]) ? [] : {});
1209
+ u = n ? n(l, c, s) : void 0, u === void 0 && (u = W(l) ? l : pe(e[o + 1]) ? [] : {});
1203
1210
  }
1204
- nr(s, c, u), s = s[c];
1211
+ rr(s, c, u), s = s[c];
1205
1212
  }
1206
1213
  return t;
1207
1214
  }
1208
- function Jl(t, e, r) {
1215
+ function Gl(t, e, r) {
1209
1216
  for (var n = -1, o = e.length, a = {}; ++n < o; ) {
1210
- var i = e[n], s = ge(t, i);
1211
- r(s, i) && Wl(a, Nt(i, t), s);
1217
+ var i = e[n], s = ye(t, i);
1218
+ r(s, i) && zl(a, Nt(i, t), s);
1212
1219
  }
1213
1220
  return a;
1214
1221
  }
1215
- function ql(t, e) {
1222
+ function Hl(t, e) {
1216
1223
  if (t == null)
1217
1224
  return {};
1218
- var r = Ze(hr(t), function(n) {
1225
+ var r = Ke(dr(t), function(n) {
1219
1226
  return [n];
1220
1227
  });
1221
- return e = gr(e), Jl(t, r, function(n, o) {
1228
+ return e = yr(e), Gl(t, r, function(n, o) {
1222
1229
  return e(n, o[0]);
1223
1230
  });
1224
1231
  }
1225
- function Ql(t, e) {
1226
- return ql(t, Bl(gr(e)));
1232
+ function Vl(t, e) {
1233
+ return Hl(t, Dl(yr(e)));
1227
1234
  }
1228
- var Yl = 1 / 0, Xl = bt && 1 / mr(new bt([, -0]))[1] == Yl ? function(t) {
1235
+ var Wl = 1 / 0, Jl = bt && 1 / vr(new bt([, -0]))[1] == Wl ? function(t) {
1229
1236
  return new bt(t);
1230
- } : Qa;
1231
- const Kl = Xl;
1232
- var Zl = 200;
1233
- function tf(t, e, r) {
1234
- var n = -1, o = ls, a = t.length, i = !0, s = [], c = s;
1237
+ } : Va;
1238
+ const ql = Jl;
1239
+ var Ql = 200;
1240
+ function Yl(t, e, r) {
1241
+ var n = -1, o = ss, a = t.length, i = !0, s = [], c = s;
1235
1242
  if (r)
1236
- i = !1, o = Rl;
1237
- else if (a >= Zl) {
1238
- var u = e ? null : Kl(t);
1243
+ i = !1, o = Al;
1244
+ else if (a >= Ql) {
1245
+ var u = e ? null : ql(t);
1239
1246
  if (u)
1240
- return mr(u);
1241
- i = !1, o = so, c = new Yt();
1247
+ return vr(u);
1248
+ i = !1, o = no, c = new qt();
1242
1249
  } else
1243
1250
  c = e ? [] : s;
1244
1251
  t:
@@ -1254,12 +1261,12 @@ function tf(t, e, r) {
1254
1261
  }
1255
1262
  return s;
1256
1263
  }
1257
- var ef = kn(function(t) {
1258
- var e = fo(t);
1259
- return Ue(e) && (e = void 0), tf(fr(t, 1, Ue, !0), gr(e));
1264
+ var Xl = Fn(function(t) {
1265
+ var e = co(t);
1266
+ return Be(e) && (e = void 0), Yl(lr(t, 1, Be, !0), yr(e));
1260
1267
  });
1261
- const rf = ef;
1262
- class vo extends TypeError {
1268
+ const Kl = Xl;
1269
+ class fo extends TypeError {
1263
1270
  constructor(e, r) {
1264
1271
  let n;
1265
1272
  const {
@@ -1268,26 +1275,26 @@ class vo extends TypeError {
1268
1275
  } = e, {
1269
1276
  path: i
1270
1277
  } = e, s = i.length === 0 ? o : `At path: ${i.join(".")} -- ${o}`;
1271
- super(s), this.value = void 0, this.key = void 0, this.type = void 0, this.refinement = void 0, this.path = void 0, this.branch = void 0, this.failures = void 0, Object.assign(this, a), this.name = this.constructor.name, this.failures = () => n != null ? n : n = [e, ...r()];
1278
+ super(s), this.value = void 0, this.key = void 0, this.type = void 0, this.refinement = void 0, this.path = void 0, this.branch = void 0, this.failures = void 0, Object.assign(this, a), this.name = this.constructor.name, this.failures = () => n ?? (n = [e, ...r()]);
1272
1279
  }
1273
1280
  }
1274
- function nf(t) {
1275
- return W(t) && typeof t[Symbol.iterator] == "function";
1281
+ function Zl(t) {
1282
+ return V(t) && typeof t[Symbol.iterator] == "function";
1276
1283
  }
1277
- function W(t) {
1284
+ function V(t) {
1278
1285
  return typeof t == "object" && t != null;
1279
1286
  }
1280
- function U(t) {
1287
+ function B(t) {
1281
1288
  return typeof t == "symbol" ? t.toString() : typeof t == "string" ? JSON.stringify(t) : `${t}`;
1282
1289
  }
1283
- function of(t) {
1290
+ function tf(t) {
1284
1291
  const {
1285
1292
  done: e,
1286
1293
  value: r
1287
1294
  } = t.next();
1288
1295
  return e ? void 0 : r;
1289
1296
  }
1290
- function af(t, e, r, n) {
1297
+ function ef(t, e, r, n) {
1291
1298
  if (t === !0)
1292
1299
  return;
1293
1300
  t === !1 ? t = {} : typeof t == "string" && (t = {
@@ -1300,7 +1307,7 @@ function af(t, e, r, n) {
1300
1307
  type: i
1301
1308
  } = r, {
1302
1309
  refinement: s,
1303
- message: c = `Expected a value of type \`${i}\`${s ? ` with refinement \`${s}\`` : ""}, but received: \`${U(n)}\``
1310
+ message: c = `Expected a value of type \`${i}\`${s ? ` with refinement \`${s}\`` : ""}, but received: \`${B(n)}\``
1304
1311
  } = t;
1305
1312
  return {
1306
1313
  value: n,
@@ -1313,14 +1320,14 @@ function af(t, e, r, n) {
1313
1320
  message: c
1314
1321
  };
1315
1322
  }
1316
- function* ln(t, e, r, n) {
1317
- nf(t) || (t = [t]);
1323
+ function* cn(t, e, r, n) {
1324
+ Zl(t) || (t = [t]);
1318
1325
  for (const o of t) {
1319
- const a = af(o, e, r, n);
1326
+ const a = ef(o, e, r, n);
1320
1327
  a && (yield a);
1321
1328
  }
1322
1329
  }
1323
- function* br(t, e, r) {
1330
+ function* gr(t, e, r) {
1324
1331
  r === void 0 && (r = {});
1325
1332
  const {
1326
1333
  path: n = [],
@@ -1331,28 +1338,28 @@ function* br(t, e, r) {
1331
1338
  path: n,
1332
1339
  branch: o
1333
1340
  };
1334
- if (a && (t = e.coercer(t, s), i && e.type !== "type" && W(e.schema) && W(t) && !Array.isArray(t)))
1341
+ if (a && (t = e.coercer(t, s), i && e.type !== "type" && V(e.schema) && V(t) && !Array.isArray(t)))
1335
1342
  for (const u in t)
1336
1343
  e.schema[u] === void 0 && delete t[u];
1337
1344
  let c = "valid";
1338
1345
  for (const u of e.validator(t, s))
1339
1346
  c = "not_valid", yield [u, void 0];
1340
1347
  for (let [u, l, p] of e.entries(t, s)) {
1341
- const f = br(l, p, {
1348
+ const f = gr(l, p, {
1342
1349
  path: u === void 0 ? n : [...n, u],
1343
1350
  branch: u === void 0 ? o : [...o, l],
1344
1351
  coerce: a,
1345
1352
  mask: i
1346
1353
  });
1347
1354
  for (const d of f)
1348
- d[0] ? (c = d[0].refinement != null ? "not_refined" : "not_valid", yield [d[0], void 0]) : a && (l = d[1], u === void 0 ? t = l : t instanceof Map ? t.set(u, l) : t instanceof Set ? t.add(l) : W(t) && (l !== void 0 || u in t) && (t[u] = l));
1355
+ d[0] ? (c = d[0].refinement != null ? "not_refined" : "not_valid", yield [d[0], void 0]) : a && (l = d[1], u === void 0 ? t = l : t instanceof Map ? t.set(u, l) : t instanceof Set ? t.add(l) : V(t) && (l !== void 0 || u in t) && (t[u] = l));
1349
1356
  }
1350
1357
  if (c !== "not_valid")
1351
1358
  for (const u of e.refiner(t, s))
1352
1359
  c = "not_refined", yield [u, void 0];
1353
1360
  c === "valid" && (yield [void 0, t]);
1354
1361
  }
1355
- class X {
1362
+ class K {
1356
1363
  constructor(e) {
1357
1364
  this.TYPE = void 0, this.type = void 0, this.schema = void 0, this.coercer = void 0, this.validator = void 0, this.refiner = void 0, this.entries = void 0;
1358
1365
  const {
@@ -1366,34 +1373,55 @@ class X {
1366
1373
  } = e;
1367
1374
  this.type = r, this.schema = n, this.entries = s, this.coercer = i, o ? this.validator = (c, u) => {
1368
1375
  const l = o(c, u);
1369
- return ln(l, u, this, c);
1376
+ return cn(l, u, this, c);
1370
1377
  } : this.validator = () => [], a ? this.refiner = (c, u) => {
1371
1378
  const l = a(c, u);
1372
- return ln(l, u, this, c);
1379
+ return cn(l, u, this, c);
1373
1380
  } : this.refiner = () => [];
1374
1381
  }
1382
+ /**
1383
+ * Assert that a value passes the struct's validation, throwing if it doesn't.
1384
+ */
1375
1385
  assert(e) {
1376
- return mo(e, this);
1386
+ return po(e, this);
1377
1387
  }
1388
+ /**
1389
+ * Create a value with the struct's coercion logic, then validate it.
1390
+ */
1378
1391
  create(e) {
1379
- return sf(e, this);
1392
+ return rf(e, this);
1380
1393
  }
1394
+ /**
1395
+ * Check if a value passes the struct's validation.
1396
+ */
1381
1397
  is(e) {
1382
- return uf(e, this);
1398
+ return of(e, this);
1383
1399
  }
1400
+ /**
1401
+ * Mask a value, coercing and validating it, but returning only the subset of
1402
+ * properties defined by the struct's schema.
1403
+ */
1384
1404
  mask(e) {
1385
- return cf(e, this);
1386
- }
1405
+ return nf(e, this);
1406
+ }
1407
+ /**
1408
+ * Validate a value with the struct's validation logic, returning a tuple
1409
+ * representing the result.
1410
+ *
1411
+ * You may optionally pass `true` for the `withCoercion` argument to coerce
1412
+ * the value before attempting to validate it. If you do, the result will
1413
+ * contain the coerced result when successful.
1414
+ */
1387
1415
  validate(e, r) {
1388
1416
  return r === void 0 && (r = {}), Tt(e, this, r);
1389
1417
  }
1390
1418
  }
1391
- function mo(t, e) {
1419
+ function po(t, e) {
1392
1420
  const r = Tt(t, e);
1393
1421
  if (r[0])
1394
1422
  throw r[0];
1395
1423
  }
1396
- function sf(t, e) {
1424
+ function rf(t, e) {
1397
1425
  const r = Tt(t, e, {
1398
1426
  coerce: !0
1399
1427
  });
@@ -1401,7 +1429,7 @@ function sf(t, e) {
1401
1429
  throw r[0];
1402
1430
  return r[1];
1403
1431
  }
1404
- function cf(t, e) {
1432
+ function nf(t, e) {
1405
1433
  const r = Tt(t, e, {
1406
1434
  coerce: !0,
1407
1435
  mask: !0
@@ -1410,32 +1438,32 @@ function cf(t, e) {
1410
1438
  throw r[0];
1411
1439
  return r[1];
1412
1440
  }
1413
- function uf(t, e) {
1441
+ function of(t, e) {
1414
1442
  return !Tt(t, e)[0];
1415
1443
  }
1416
1444
  function Tt(t, e, r) {
1417
1445
  r === void 0 && (r = {});
1418
- const n = br(t, e, r), o = of(n);
1419
- return o[0] ? [new vo(o[0], function* () {
1446
+ const n = gr(t, e, r), o = tf(n);
1447
+ return o[0] ? [new fo(o[0], function* () {
1420
1448
  for (const a of n)
1421
1449
  a[0] && (yield a[0]);
1422
1450
  }), void 0] : [void 0, o[1]];
1423
1451
  }
1424
- function _r() {
1452
+ function br() {
1425
1453
  for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
1426
1454
  e[r] = arguments[r];
1427
1455
  const n = e[0].type === "type", o = e.map((i) => i.schema), a = Object.assign({}, ...o);
1428
- return n ? _o(a) : S(a);
1456
+ return n ? yo(a) : O(a);
1429
1457
  }
1430
- function st(t, e) {
1431
- return new X({
1458
+ function it(t, e) {
1459
+ return new K({
1432
1460
  type: t,
1433
1461
  schema: null,
1434
1462
  validator: e
1435
1463
  });
1436
1464
  }
1437
1465
  function jt(t) {
1438
- return new X({
1466
+ return new K({
1439
1467
  type: "dynamic",
1440
1468
  schema: null,
1441
1469
  *entries(e, r) {
@@ -1452,7 +1480,7 @@ function jt(t) {
1452
1480
  }
1453
1481
  });
1454
1482
  }
1455
- function yo(t, e) {
1483
+ function ho(t, e) {
1456
1484
  const {
1457
1485
  schema: r
1458
1486
  } = t, n = {
@@ -1462,16 +1490,16 @@ function yo(t, e) {
1462
1490
  delete n[o];
1463
1491
  switch (t.type) {
1464
1492
  case "type":
1465
- return _o(n);
1493
+ return yo(n);
1466
1494
  default:
1467
- return S(n);
1495
+ return O(n);
1468
1496
  }
1469
1497
  }
1470
- function R() {
1471
- return st("any", () => !0);
1498
+ function D() {
1499
+ return it("any", () => !0);
1472
1500
  }
1473
1501
  function A(t) {
1474
- return new X({
1502
+ return new K({
1475
1503
  type: "array",
1476
1504
  schema: t,
1477
1505
  *entries(e) {
@@ -1483,51 +1511,51 @@ function A(t) {
1483
1511
  return Array.isArray(e) ? e.slice() : e;
1484
1512
  },
1485
1513
  validator(e) {
1486
- return Array.isArray(e) || `Expected an array value, but received: ${U(e)}`;
1514
+ return Array.isArray(e) || `Expected an array value, but received: ${B(e)}`;
1487
1515
  }
1488
1516
  });
1489
1517
  }
1490
1518
  function tt() {
1491
- return st("boolean", (t) => typeof t == "boolean");
1519
+ return it("boolean", (t) => typeof t == "boolean");
1492
1520
  }
1493
- function ze(t) {
1494
- const e = {}, r = t.map((n) => U(n)).join();
1521
+ function ke(t) {
1522
+ const e = {}, r = t.map((n) => B(n)).join();
1495
1523
  for (const n of t)
1496
1524
  e[n] = n;
1497
- return new X({
1525
+ return new K({
1498
1526
  type: "enums",
1499
1527
  schema: e,
1500
1528
  validator(n) {
1501
- return t.includes(n) || `Expected one of \`${r}\`, but received: ${U(n)}`;
1529
+ return t.includes(n) || `Expected one of \`${r}\`, but received: ${B(n)}`;
1502
1530
  }
1503
1531
  });
1504
1532
  }
1505
- function go() {
1506
- return st("func", (t) => typeof t == "function" || `Expected a function, but received: ${U(t)}`);
1533
+ function vo() {
1534
+ return it("func", (t) => typeof t == "function" || `Expected a function, but received: ${B(t)}`);
1507
1535
  }
1508
- function F(t) {
1509
- const e = U(t), r = typeof t;
1510
- return new X({
1536
+ function L(t) {
1537
+ const e = B(t), r = typeof t;
1538
+ return new K({
1511
1539
  type: "literal",
1512
1540
  schema: r === "string" || r === "number" || r === "boolean" ? t : null,
1513
1541
  validator(n) {
1514
- return n === t || `Expected the literal \`${e}\`, but received: ${U(n)}`;
1542
+ return n === t || `Expected the literal \`${e}\`, but received: ${B(n)}`;
1515
1543
  }
1516
1544
  });
1517
1545
  }
1518
- function lf() {
1519
- return st("never", () => !1);
1546
+ function af() {
1547
+ return it("never", () => !1);
1520
1548
  }
1521
- function bo() {
1522
- return st("number", (t) => typeof t == "number" && !isNaN(t) || `Expected a number, but received: ${U(t)}`);
1549
+ function mo() {
1550
+ return it("number", (t) => typeof t == "number" && !isNaN(t) || `Expected a number, but received: ${B(t)}`);
1523
1551
  }
1524
- function S(t) {
1525
- const e = t ? Object.keys(t) : [], r = lf();
1526
- return new X({
1552
+ function O(t) {
1553
+ const e = t ? Object.keys(t) : [], r = af();
1554
+ return new K({
1527
1555
  type: "object",
1528
1556
  schema: t || null,
1529
1557
  *entries(n) {
1530
- if (t && W(n)) {
1558
+ if (t && V(n)) {
1531
1559
  const o = new Set(Object.keys(n));
1532
1560
  for (const a of e)
1533
1561
  o.delete(a), yield [a, n[a], t[a]];
@@ -1536,59 +1564,59 @@ function S(t) {
1536
1564
  }
1537
1565
  },
1538
1566
  validator(n) {
1539
- return W(n) || `Expected an object, but received: ${U(n)}`;
1567
+ return V(n) || `Expected an object, but received: ${B(n)}`;
1540
1568
  },
1541
1569
  coercer(n) {
1542
- return W(n) ? {
1570
+ return V(n) ? {
1543
1571
  ...n
1544
1572
  } : n;
1545
1573
  }
1546
1574
  });
1547
1575
  }
1548
1576
  function m(t) {
1549
- return new X({
1577
+ return new K({
1550
1578
  ...t,
1551
1579
  validator: (e, r) => e === void 0 || t.validator(e, r),
1552
1580
  refiner: (e, r) => e === void 0 || t.refiner(e, r)
1553
1581
  });
1554
1582
  }
1555
- function Gt(t, e) {
1556
- return new X({
1583
+ function kt(t, e) {
1584
+ return new K({
1557
1585
  type: "record",
1558
1586
  schema: null,
1559
1587
  *entries(r) {
1560
- if (W(r))
1588
+ if (V(r))
1561
1589
  for (const n in r) {
1562
1590
  const o = r[n];
1563
1591
  yield [n, n, t], yield [n, o, e];
1564
1592
  }
1565
1593
  },
1566
1594
  validator(r) {
1567
- return W(r) || `Expected an object, but received: ${U(r)}`;
1595
+ return V(r) || `Expected an object, but received: ${B(r)}`;
1568
1596
  }
1569
1597
  });
1570
1598
  }
1571
1599
  function v() {
1572
- return st("string", (t) => typeof t == "string" || `Expected a string, but received: ${U(t)}`);
1600
+ return it("string", (t) => typeof t == "string" || `Expected a string, but received: ${B(t)}`);
1573
1601
  }
1574
- function _o(t) {
1602
+ function yo(t) {
1575
1603
  const e = Object.keys(t);
1576
- return new X({
1604
+ return new K({
1577
1605
  type: "type",
1578
1606
  schema: t,
1579
1607
  *entries(r) {
1580
- if (W(r))
1608
+ if (V(r))
1581
1609
  for (const n of e)
1582
1610
  yield [n, r[n], t[n]];
1583
1611
  },
1584
1612
  validator(r) {
1585
- return W(r) || `Expected an object, but received: ${U(r)}`;
1613
+ return V(r) || `Expected an object, but received: ${B(r)}`;
1586
1614
  }
1587
1615
  });
1588
1616
  }
1589
- function L(t) {
1617
+ function I(t) {
1590
1618
  const e = t.map((r) => r.type).join(" | ");
1591
- return new X({
1619
+ return new K({
1592
1620
  type: "union",
1593
1621
  schema: null,
1594
1622
  coercer(r, n) {
@@ -1597,33 +1625,33 @@ function L(t) {
1597
1625
  coerce: !0
1598
1626
  });
1599
1627
  return !a;
1600
- }) || ff()).coercer(r, n);
1628
+ }) || sf()).coercer(r, n);
1601
1629
  },
1602
1630
  validator(r, n) {
1603
1631
  const o = [];
1604
1632
  for (const a of t) {
1605
- const [...i] = br(r, a, n), [s] = i;
1633
+ const [...i] = gr(r, a, n), [s] = i;
1606
1634
  if (s[0])
1607
1635
  for (const [c] of i)
1608
1636
  c && o.push(c);
1609
1637
  else
1610
1638
  return [];
1611
1639
  }
1612
- return [`Expected the value to satisfy a union of \`${e}\`, but received: ${U(r)}`, ...o];
1640
+ return [`Expected the value to satisfy a union of \`${e}\`, but received: ${B(r)}`, ...o];
1613
1641
  }
1614
1642
  });
1615
1643
  }
1616
- function ff() {
1617
- return st("unknown", () => !0);
1644
+ function sf() {
1645
+ return it("unknown", () => !0);
1618
1646
  }
1619
- const jr = S({
1647
+ const _r = O({
1620
1648
  package: v(),
1621
1649
  version: v(),
1622
1650
  exportName: v(),
1623
1651
  destructuring: m(tt()),
1624
1652
  subName: m(v()),
1625
1653
  main: m(v())
1626
- }), pf = A(jr), df = [
1654
+ }), cf = A(_r), uf = [
1627
1655
  "CBlock",
1628
1656
  "CContainer",
1629
1657
  "CImage",
@@ -1633,116 +1661,145 @@ const jr = S({
1633
1661
  "CText",
1634
1662
  "CNativeTag"
1635
1663
  ];
1636
- var k = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t))(k || {}), wr = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(wr || {}), Ge = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(Ge || {});
1637
- const hf = () => st("normalObj", (t) => !B(t) || [k.SLOT, k.EXPRESSION, k.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Tt(t, Gt(v(), Sr)), !0)), Sr = L([
1664
+ var U = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t))(U || {}), jr = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(jr || {}), ze = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(ze || {});
1665
+ const lf = () => it("normalObj", (t) => !F(t) || [U.SLOT, U.EXPRESSION, U.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Tt(t, kt(v(), Sr)), !0)), Sr = I([
1638
1666
  v(),
1639
- bo(),
1667
+ mo(),
1640
1668
  tt(),
1641
- S({
1642
- type: F(k.SLOT),
1643
- renderType: ze([Ge.FUNC, Ge.COMP]),
1669
+ O({
1670
+ type: L(U.SLOT),
1671
+ renderType: ke([ze.FUNC, ze.COMP]),
1672
+ // if renderType is Func, params will be useful
1644
1673
  params: m(A(v())),
1645
- value: jt(() => L([wt, A(wt)]))
1674
+ // here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
1675
+ value: jt(() => I([St, A(St)]))
1646
1676
  }),
1647
- S({
1648
- type: F(k.EXPRESSION),
1677
+ O({
1678
+ type: L(U.EXPRESSION),
1649
1679
  value: v()
1650
1680
  }),
1651
- S({
1652
- type: F(k.FUNCTION),
1681
+ O({
1682
+ type: L(U.FUNCTION),
1653
1683
  value: v()
1654
1684
  }),
1655
- hf(),
1685
+ lf(),
1656
1686
  A(
1657
1687
  jt(() => Sr)
1658
1688
  )
1659
- ]), fn = S({
1660
- type: F(k.EXPRESSION),
1689
+ ]), un = O({
1690
+ type: L(U.EXPRESSION),
1661
1691
  value: v()
1662
- }), wt = S({
1692
+ }), St = O({
1663
1693
  id: m(v()),
1664
1694
  title: m(v()),
1665
1695
  componentName: v(),
1666
- props: m(Gt(v(), Sr)),
1696
+ props: m(kt(v(), Sr)),
1667
1697
  stateName: m(v()),
1668
- state: m(Gt(v(), R())),
1669
- children: jt(() => m(A(L([v(), wt])))),
1670
- configure: m(R()),
1671
- css: m(R()),
1672
- style: m(R()),
1673
- classNames: m(A(R())),
1698
+ state: m(kt(v(), D())),
1699
+ children: jt(() => m(A(I([v(), St])))),
1700
+ configure: m(D()),
1701
+ css: m(D()),
1702
+ style: m(D()),
1703
+ classNames: m(A(D())),
1674
1704
  refId: m(v()),
1675
- extra: m(Gt(R(), R())),
1676
- condition: m(L([tt(), fn])),
1677
- tempDevConfig: m(R()),
1705
+ extra: m(kt(D(), D())),
1706
+ condition: m(I([tt(), un])),
1707
+ tempDevConfig: m(D()),
1678
1708
  loop: m(
1679
- S({
1709
+ O({
1680
1710
  open: tt(),
1681
- data: L([A(R()), fn]),
1711
+ data: I([A(D()), un]),
1682
1712
  args: m(A(v())),
1683
1713
  forName: m(v()),
1684
1714
  forIndex: m(v()),
1685
- key: m(R()),
1715
+ key: m(D()),
1686
1716
  name: m(v())
1687
1717
  })
1688
1718
  )
1689
- }), le = L([
1719
+ }), ce = I([
1690
1720
  v(),
1691
- S({
1721
+ O({
1692
1722
  label: v(),
1693
1723
  tip: m(v())
1694
1724
  })
1695
- ]), vf = S({
1696
- type: F("shape"),
1725
+ ]), ff = O({
1726
+ type: L(
1727
+ "shape"
1728
+ /* SHAPE */
1729
+ ),
1697
1730
  value: A(
1698
- S({
1731
+ O({
1699
1732
  name: v(),
1700
- title: le,
1701
- valueType: jt(() => be)
1733
+ title: ce,
1734
+ valueType: jt(() => ge)
1702
1735
  })
1703
1736
  )
1704
- }), mf = S({
1705
- type: F("enums"),
1737
+ }), pf = O({
1738
+ type: L(
1739
+ "enums"
1740
+ /* ENUMS */
1741
+ ),
1706
1742
  value: A(v())
1707
1743
  });
1708
- S({
1709
- type: F("array"),
1710
- value: jt(() => be)
1744
+ O({
1745
+ type: L(
1746
+ "array"
1747
+ /* ARRAY */
1748
+ ),
1749
+ value: jt(() => ge)
1711
1750
  });
1712
- const yf = S({
1713
- type: F("array"),
1714
- value: jt(() => A(be))
1715
- }), be = L([
1716
- ze(["array", "boolean", "number", "object", "string"]),
1717
- ze(["component", "expression", "function"]),
1718
- vf,
1719
- mf,
1720
- yf
1721
- ]), gf = L([
1751
+ const df = O({
1752
+ type: L(
1753
+ "array"
1754
+ /* ARRAY */
1755
+ ),
1756
+ value: jt(() => A(ge))
1757
+ }), ge = I([
1758
+ ke([
1759
+ "array",
1760
+ "boolean",
1761
+ "number",
1762
+ "object",
1763
+ "string"
1764
+ /* STRING */
1765
+ ]),
1766
+ ke([
1767
+ "component",
1768
+ "expression",
1769
+ "function"
1770
+ /* FUNCTION */
1771
+ ]),
1772
+ ff,
1773
+ pf,
1774
+ df
1775
+ ]), hf = I([
1722
1776
  v(),
1723
- S({
1777
+ O({
1724
1778
  componentName: v(),
1725
- props: m(R()),
1726
- initialValue: m(R()),
1727
- component: m(R())
1779
+ props: m(D()),
1780
+ /** 用于标记当前数据的初始值,如添加一个数组元素可以使用该值填充 */
1781
+ initialValue: m(D()),
1782
+ component: m(D())
1728
1783
  })
1729
- ]), Te = S({
1784
+ ]), $e = O({
1730
1785
  name: v(),
1731
- title: le,
1732
- valueType: be,
1786
+ title: ce,
1787
+ // 描述 name 对应值的类型
1788
+ valueType: ge,
1733
1789
  description: m(v()),
1734
- defaultValue: R(),
1735
- setters: m(A(gf)),
1736
- condition: m(go())
1737
- }), bf = L([v(), go()]);
1738
- var He = /* @__PURE__ */ ((t) => (t.SINGLE = "single", t.GROUP = "group", t))(He || {});
1739
- L([
1790
+ defaultValue: D(),
1791
+ //用于产生 valueType 类型的值
1792
+ setters: m(A(hf)),
1793
+ condition: m(vo())
1794
+ }), vf = I([v(), vo()]);
1795
+ var Ge = /* @__PURE__ */ ((t) => (t.SINGLE = "single", t.GROUP = "group", t))(Ge || {});
1796
+ I([
1740
1797
  v(),
1741
- S({
1798
+ O({
1742
1799
  name: v(),
1743
1800
  describe: m(v()),
1744
1801
  params: m(
1745
- S({
1802
+ O({
1746
1803
  name: v(),
1747
1804
  description: v()
1748
1805
  })
@@ -1750,47 +1807,61 @@ L([
1750
1807
  template: v()
1751
1808
  })
1752
1809
  ]);
1753
- const _f = S({
1810
+ const mf = O({
1754
1811
  id: m(v()),
1755
1812
  title: v(),
1756
- snapshot: L([v(), R()]),
1813
+ snapshot: I([v(), D()]),
1757
1814
  snapshotText: m(v()),
1758
1815
  description: m(v()),
1816
+ // 组件分类,用于搜索
1759
1817
  tags: m(A(v())),
1818
+ // 分 tab 面板
1760
1819
  groupName: m(v()),
1820
+ // 分类
1761
1821
  category: m(v()),
1762
- schema: _r(yo(wt, ["id"]), S({ componentName: m(v()) }))
1763
- }), jf = S({
1822
+ schema: br(ho(St, ["id"]), O({ componentName: m(v()) }))
1823
+ }), yf = O({
1764
1824
  componentName: v(),
1765
1825
  title: v(),
1766
1826
  screenshot: m(v()),
1767
1827
  icon: m(v()),
1828
+ // 组件分类,用于搜索
1768
1829
  tags: m(A(v())),
1830
+ // 分 tab 面板
1769
1831
  groupName: m(v()),
1832
+ // 分类
1770
1833
  category: m(v()),
1771
- priority: m(bo()),
1772
- npm: m(jr),
1773
- snippets: A(_f),
1834
+ // 排序
1835
+ priority: m(mo()),
1836
+ npm: m(_r),
1837
+ snippets: A(mf),
1774
1838
  props: A(
1775
- L([
1776
- Te,
1777
- S({
1778
- title: m(le),
1779
- type: F("single"),
1780
- content: Te
1839
+ I([
1840
+ $e,
1841
+ O({
1842
+ title: m(ce),
1843
+ type: L(
1844
+ "single"
1845
+ /* SINGLE */
1846
+ ),
1847
+ content: $e
1781
1848
  }),
1782
- S({
1783
- title: m(le),
1784
- type: F("group"),
1785
- content: A(Te)
1849
+ O({
1850
+ title: m(ce),
1851
+ type: L(
1852
+ "group"
1853
+ /* GROUP */
1854
+ ),
1855
+ content: A($e)
1786
1856
  })
1787
1857
  ])
1788
1858
  ),
1789
- fixedProps: m(R()),
1859
+ fixedProps: m(D()),
1860
+ // 可以拖入组件
1790
1861
  isContainer: m(
1791
- L([
1862
+ I([
1792
1863
  tt(),
1793
- S({
1864
+ O({
1794
1865
  placeholder: v(),
1795
1866
  width: v(),
1796
1867
  height: v()
@@ -1798,20 +1869,22 @@ const _f = S({
1798
1869
  ])
1799
1870
  ),
1800
1871
  isModal: m(
1801
- L([
1872
+ I([
1802
1873
  tt(),
1803
- S({
1874
+ O({
1804
1875
  visibleKey: v()
1805
1876
  })
1806
1877
  ])
1807
1878
  ),
1808
1879
  isSupportStyle: m(tt()),
1809
1880
  isSupportDispatchNativeEvent: m(tt()),
1881
+ // 如果是布局组件,可以考虑将拖拽控制权转移 or 实现 resize
1810
1882
  isLayout: m(tt()),
1811
1883
  rootSelector: m(v()),
1812
- selectionToolBars: m(A(bf)),
1813
- extra: m(Gt(R(), R()))
1814
- }), wf = (t) => ({ data: e, message: r, throwError: n }) => {
1884
+ selectionToolBars: m(A(vf)),
1885
+ // 扩展配置
1886
+ extra: m(kt(D(), D()))
1887
+ }), gf = (t) => ({ data: e, message: r, throwError: n }) => {
1815
1888
  const o = t({ data: e, message: r, throwError: n });
1816
1889
  if (o.isValidate)
1817
1890
  return o;
@@ -1826,16 +1899,16 @@ const _f = S({
1826
1899
  data struct format is invalidate`
1827
1900
  );
1828
1901
  return o;
1829
- }, Or = (t) => {
1902
+ }, wr = (t) => {
1830
1903
  const { data: e, message: r, throwError: n, dataStruct: o } = t;
1831
- return wf(({ data: a }) => {
1904
+ return gf(({ data: a }) => {
1832
1905
  try {
1833
- return mo(a, o), {
1906
+ return po(a, o), {
1834
1907
  isValidate: !0
1835
1908
  };
1836
1909
  } catch (i) {
1837
1910
  let s = i;
1838
- return i instanceof vo && (s = i.failures().map((c) => `\u3010${c.path.join(".")}\u3011: ${c.message}
1911
+ return i instanceof fo && (s = i.failures().map((c) => `【${c.path.join(".")}】: ${c.message}
1839
1912
  `)), {
1840
1913
  isValidate: !1,
1841
1914
  message: s,
@@ -1845,16 +1918,19 @@ const _f = S({
1845
1918
  })({ data: e, message: r, throwError: n });
1846
1919
  };
1847
1920
  var At = /* @__PURE__ */ ((t) => (t.ROOT_CONTAINER = "RootContainer", t))(At || {});
1848
- const Sf = S({
1849
- type: F(k.FUNCTION),
1921
+ const bf = O({
1922
+ type: L(U.FUNCTION),
1850
1923
  value: v()
1851
- }), Of = _r(
1852
- yo(wt, ["componentName"]),
1853
- S({
1854
- componentName: F("RootContainer")
1924
+ }), _f = br(
1925
+ ho(St, ["componentName"]),
1926
+ O({
1927
+ componentName: L(
1928
+ "RootContainer"
1929
+ /* ROOT_CONTAINER */
1930
+ )
1855
1931
  })
1856
1932
  );
1857
- function Cf(t) {
1933
+ function jf(t) {
1858
1934
  return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, r) {
1859
1935
  var n = t.get(e);
1860
1936
  n ? n.push(r) : t.set(e, [r]);
@@ -1870,29 +1946,29 @@ function Cf(t) {
1870
1946
  });
1871
1947
  } };
1872
1948
  }
1873
- const ee = Cf(), Ef = (t, e) => {
1949
+ const Zt = jf(), Sf = (t, e) => {
1874
1950
  const r = {
1875
1951
  ...t,
1876
1952
  value: []
1877
1953
  }, n = t.value;
1878
- let o = new lt([]);
1879
- return e && (o = e.materialsMode || new lt([])), n && (M(n) ? r.value = n.map(
1954
+ let o = new ft([]);
1955
+ return e && (o = e.materialsMode || new ft([])), n && (M(n) ? r.value = n.map(
1880
1956
  (a) => new T(a, {
1881
1957
  parent: e,
1882
1958
  materials: o
1883
1959
  })
1884
- ) : B(n) && r.value.push(
1960
+ ) : F(n) && r.value.push(
1885
1961
  new T(n, {
1886
1962
  parent: e,
1887
1963
  materials: o
1888
1964
  })
1889
1965
  )), r;
1890
1966
  };
1891
- class St {
1967
+ class wt {
1892
1968
  constructor(e, r) {
1893
- _(this, "nodeType", "SLOT"), _(this, "rawData"), _(this, "parent"), _(this, "emitter", ee), _(this, "data"), _(this, "id"), _(this, "materialsMode"), this.parent = (r == null ? void 0 : r.parent) || null, this.rawData = e;
1894
- const n = (r == null ? void 0 : r.materials) || new lt([]);
1895
- this.materialsMode = n, this.id = K(), this.data = Ef(e, this);
1969
+ _(this, "nodeType", "SLOT"), _(this, "rawData"), _(this, "parent"), _(this, "emitter", Zt), _(this, "data"), _(this, "id"), _(this, "materialsMode"), this.parent = (r == null ? void 0 : r.parent) || null, this.rawData = e;
1970
+ const n = (r == null ? void 0 : r.materials) || new ft([]);
1971
+ this.materialsMode = n, this.id = Z(), this.data = Sf(e, this);
1896
1972
  }
1897
1973
  get value() {
1898
1974
  return this.data;
@@ -1901,7 +1977,7 @@ class St {
1901
1977
  const r = this.data, n = (o) => {
1902
1978
  if (o instanceof T)
1903
1979
  return o.export(e);
1904
- if (B(o)) {
1980
+ if (F(o)) {
1905
1981
  const a = {};
1906
1982
  return Object.keys(o || {}).forEach((i) => {
1907
1983
  a[i] = n(o[i]);
@@ -1912,32 +1988,34 @@ class St {
1912
1988
  return n(r);
1913
1989
  }
1914
1990
  }
1915
- const jo = (t) => {
1991
+ const go = (t) => {
1916
1992
  let e = [];
1917
1993
  return t.forEach((r) => {
1918
1994
  const n = r;
1919
- n.type ? n.type === He.SINGLE ? e.push(n.content) : n.type === He.GROUP && (e = [...e, ...jo(n.content)]) : e.push(r);
1995
+ n.type ? n.type === Ge.SINGLE ? e.push(n.content) : n.type === Ge.GROUP && (e = [...e, ...go(n.content)]) : e.push(r);
1920
1996
  }), e;
1921
- }, Ve = (t, e, r) => {
1997
+ }, He = (t, e, r) => {
1922
1998
  if (t.type)
1923
- return t.type === k.SLOT ? new St(t, { parent: e, materials: r }) : t;
1924
- if (B(t)) {
1999
+ return t.type === U.SLOT ? new wt(t, { parent: e, materials: r }) : t;
2000
+ if (F(t)) {
1925
2001
  const n = {};
1926
2002
  return Object.keys(t).forEach((o) => {
1927
- n[o] = We(t[o], e, r);
2003
+ n[o] = Ve(t[o], e, r);
1928
2004
  }), n;
1929
2005
  } else
1930
- return Array.isArray(t) ? t.map((n) => Ve(n, e, r)) : t;
1931
- }, We = (t, e, r) => B(t) ? Ve(t, e, r) : M(t) ? t.map((n) => Ve(n, e, r)) : t;
1932
- class at {
2006
+ return Array.isArray(t) ? t.map((n) => He(n, e, r)) : t;
2007
+ }, Ve = (t, e, r) => F(t) ? He(t, e, r) : M(t) ? t.map((n) => He(n, e, r)) : t;
2008
+ class st {
1933
2009
  constructor(e, r, n) {
1934
- _(this, "nodeType", "PROP"), _(this, "rawData"), _(this, "parent"), _(this, "emitter", ee), _(this, "data"), _(this, "name"), _(this, "materialsMode");
1935
- const o = (n == null ? void 0 : n.materials) || new lt([]);
1936
- this.materialsMode = o, this.parent = n == null ? void 0 : n.parent, this.rawData = r, this.name = e, this.data = We(r, this, o);
2010
+ _(this, "nodeType", "PROP"), _(this, "rawData"), _(this, "parent"), _(this, "emitter", Zt), _(this, "data"), _(this, "name"), _(this, "materialsMode");
2011
+ const o = (n == null ? void 0 : n.materials) || new ft([]);
2012
+ this.materialsMode = o, this.parent = n == null ? void 0 : n.parent, this.rawData = r, this.name = e, this.data = Ve(r, this, o);
1937
2013
  }
2014
+ // TODO:
1938
2015
  isIncludeSlot() {
1939
2016
  return !1;
1940
2017
  }
2018
+ // TODO:
1941
2019
  isIncludeExpression() {
1942
2020
  return !1;
1943
2021
  }
@@ -1946,11 +2024,11 @@ class at {
1946
2024
  }
1947
2025
  updateValue(e) {
1948
2026
  const r = this.data;
1949
- this.data = We(e != null ? e : r, this, this.materialsMode), this.emitter.emit("onPropChange", {
2027
+ this.data = Ve(e ?? r, this, this.materialsMode), this.emitter.emit("onPropChange", {
1950
2028
  value: this.data,
1951
2029
  preValue: r,
1952
2030
  node: this
1953
- }), this.parent && !(this.parent instanceof St) && this.emitter.emit("onNodeChange", {
2031
+ }), this.parent && !(this.parent instanceof wt) && this.emitter.emit("onNodeChange", {
1954
2032
  value: this.parent.value,
1955
2033
  preValue: this.parent.value,
1956
2034
  node: this.parent
@@ -1960,17 +2038,17 @@ class at {
1960
2038
  const e = this.parent;
1961
2039
  if (e instanceof T) {
1962
2040
  const r = e.material;
1963
- return jo((r == null ? void 0 : r.value.props) || []).find((n) => n.name === this.name);
2041
+ return go((r == null ? void 0 : r.value.props) || []).find((n) => n.name === this.name);
1964
2042
  } else
1965
2043
  return null;
1966
2044
  }
1967
2045
  export(e) {
1968
2046
  const r = this.data, n = (o) => {
1969
- if (o instanceof at || o instanceof St || o instanceof T)
2047
+ if (o instanceof st || o instanceof wt || o instanceof T)
1970
2048
  return o.export(e);
1971
2049
  if (M(o))
1972
2050
  return o.map((a) => n(a));
1973
- if (B(o)) {
2051
+ if (F(o)) {
1974
2052
  const a = {};
1975
2053
  return Object.keys(o || {}).forEach((i) => {
1976
2054
  a[i] = n(o[i]);
@@ -1981,62 +2059,61 @@ class at {
1981
2059
  return n(r);
1982
2060
  }
1983
2061
  }
1984
- const xf = (t) => {
2062
+ const wf = (t) => {
1985
2063
  if (typeof t == "string")
1986
2064
  return !0;
1987
- Or({
2065
+ wr({
1988
2066
  data: t,
1989
- dataStruct: wt,
2067
+ dataStruct: St,
1990
2068
  throwError: !0
1991
2069
  });
1992
- }, pn = (t, e, r = new lt([])) => {
1993
- var n;
2070
+ }, ln = (t, e, r = new ft([])) => {
1994
2071
  if (typeof t == "string")
1995
2072
  return t;
1996
- const o = {
2073
+ const n = {
1997
2074
  ...t,
1998
- id: (n = t.id) != null ? n : K(),
2075
+ id: t.id ?? Z(),
1999
2076
  children: [],
2000
2077
  props: {},
2001
- configure: po(t.configure || {}, {
2078
+ configure: uo(t.configure || {}, {
2002
2079
  propsSetter: {},
2003
2080
  advanceSetter: {}
2004
2081
  })
2005
- }, a = Object.keys(t.props || {});
2006
- return a.length && a.forEach((i) => {
2007
- var s;
2008
- const c = (s = t.props) == null ? void 0 : s[i];
2009
- if (c instanceof at) {
2010
- o.props[i] = c;
2082
+ }, o = Object.keys(t.props || {});
2083
+ return o.length && o.forEach((a) => {
2084
+ var i;
2085
+ const s = (i = t.props) == null ? void 0 : i[a];
2086
+ if (s instanceof st) {
2087
+ n.props[a] = s;
2011
2088
  return;
2012
2089
  }
2013
- o.props[i] = new at(i, c || "", {
2090
+ n.props[a] = new st(a, s || "", {
2014
2091
  parent: e,
2015
2092
  materials: r
2016
2093
  });
2017
- }), t.children && (Array.isArray(t.children) ? o.children = t.children.map((i) => {
2018
- if (i instanceof T)
2019
- return i;
2020
- if (B(i)) {
2021
- const s = i;
2022
- return new T(s, {
2094
+ }), t.children && (Array.isArray(t.children) ? n.children = t.children.map((a) => {
2095
+ if (a instanceof T)
2096
+ return a;
2097
+ if (F(a)) {
2098
+ const i = a;
2099
+ return new T(i, {
2023
2100
  parent: e,
2024
2101
  materials: r
2025
2102
  });
2026
2103
  } else
2027
- return i;
2028
- }) : (t.children instanceof T && (o.children = [t.children]), o.children = [
2104
+ return a;
2105
+ }) : (t.children instanceof T && (n.children = [t.children]), n.children = [
2029
2106
  new T(t.children, {
2030
2107
  parent: e,
2031
2108
  materials: r
2032
2109
  })
2033
- ])), o;
2110
+ ])), n;
2034
2111
  };
2035
2112
  class T {
2036
2113
  constructor(e, r) {
2037
- _(this, "nodeType", "NODE"), _(this, "rawData"), _(this, "data"), _(this, "emitter", ee), _(this, "parent"), _(this, "materialsModel"), _(this, "listenerHandle"), _(this, "onChangeCbQueue"), this.rawData = JSON.parse(JSON.stringify(e)), xf(e);
2038
- const n = (r == null ? void 0 : r.materials) || new lt([]);
2039
- this.parent = (r == null ? void 0 : r.parent) || null, this.materialsModel = n, this.data = pn(e, this, n), this.listenerHandle = [], this.onChangeCbQueue = [], this.registerListener();
2114
+ _(this, "nodeType", "NODE"), _(this, "rawData"), _(this, "data"), _(this, "emitter", Zt), _(this, "parent"), _(this, "materialsModel"), _(this, "listenerHandle"), _(this, "onChangeCbQueue"), this.rawData = JSON.parse(JSON.stringify(e)), wf(e);
2115
+ const n = (r == null ? void 0 : r.materials) || new ft([]);
2116
+ this.parent = (r == null ? void 0 : r.parent) || null, this.materialsModel = n, this.data = ln(e, this, n), this.listenerHandle = [], this.onChangeCbQueue = [], this.registerListener();
2040
2117
  }
2041
2118
  registerListener() {
2042
2119
  const e = (r) => {
@@ -2064,7 +2141,7 @@ class T {
2064
2141
  clone(e) {
2065
2142
  const r = {
2066
2143
  ...this.export("design"),
2067
- id: e || K()
2144
+ id: e || Z()
2068
2145
  };
2069
2146
  return new T(r, {
2070
2147
  materials: this.materialsModel
@@ -2075,14 +2152,14 @@ class T {
2075
2152
  ...this.data,
2076
2153
  ...e
2077
2154
  };
2078
- this.data = pn(n, this), this.emitter.emit("onNodeChange", {
2155
+ this.data = ln(n, this), this.emitter.emit("onNodeChange", {
2079
2156
  value: n,
2080
2157
  preValue: r,
2081
2158
  node: this
2082
2159
  });
2083
2160
  }
2084
2161
  contains(e) {
2085
- return Er(this, e);
2162
+ return Cr(this, e);
2086
2163
  }
2087
2164
  get props() {
2088
2165
  return this.data.props;
@@ -2108,7 +2185,7 @@ class T {
2108
2185
  });
2109
2186
  const a = (r = n.children) == null ? void 0 : r.map((l) => l instanceof T ? l.export(e) : l), i = n.configure || {}, s = i.propsSetter || {}, c = {};
2110
2187
  Object.keys(s).forEach((l) => {
2111
- const p = Jn(s, l, !1);
2188
+ const p = Hn(s, l, !1);
2112
2189
  p && (c[l] = p);
2113
2190
  }), i.propsSetter = c, this.material && this.materialsModel.usedMaterials.push(this.material);
2114
2191
  let u = {
@@ -2117,36 +2194,36 @@ class T {
2117
2194
  props: o,
2118
2195
  children: a
2119
2196
  };
2120
- return e === "design" && delete u.id, u = Cr(u), u;
2197
+ return e === "design" && delete u.id, u = Or(u), u;
2121
2198
  }
2122
2199
  }
2123
- const dn = (t, e, r) => {
2200
+ const fn = (t, e, r) => {
2124
2201
  const n = {
2125
2202
  ...t,
2126
- id: K(),
2203
+ id: Z(),
2127
2204
  props: {},
2128
2205
  componentName: At.ROOT_CONTAINER,
2129
2206
  children: [],
2130
- configure: po(t.configure || {}, {
2207
+ configure: uo(t.configure || {}, {
2131
2208
  propsSetter: {},
2132
2209
  advanceSetter: {}
2133
2210
  })
2134
2211
  };
2135
2212
  let o = [];
2136
- M(t.children) ? o = t.children.map((i) => i instanceof T ? i : B(i) ? new T(i, { parent: e, materials: r }) : i) : t.children instanceof T ? o.push(t.children) : t.children && B(t.children) && o.push(new T(t.children, { parent: e, materials: r }));
2213
+ M(t.children) ? o = t.children.map((i) => i instanceof T ? i : F(i) ? new T(i, { parent: e, materials: r }) : i) : t.children instanceof T ? o.push(t.children) : t.children && F(t.children) && o.push(new T(t.children, { parent: e, materials: r }));
2137
2214
  const a = Object.keys(t.props || {});
2138
2215
  return a.length && a.forEach((i) => {
2139
2216
  var s;
2140
2217
  const c = (s = t.props) == null ? void 0 : s[i];
2141
- c instanceof at ? n.props[i] = c : n.props[i] = new at(i, c || "", {
2218
+ c instanceof st ? n.props[i] = c : n.props[i] = new st(i, c || "", {
2142
2219
  parent: e,
2143
2220
  materials: r
2144
2221
  });
2145
2222
  }), n.children = o, n;
2146
2223
  };
2147
- class Xt {
2224
+ class Qt {
2148
2225
  constructor(e, { parent: r, materials: n }) {
2149
- _(this, "rawData"), _(this, "data"), _(this, "nodeType", At.ROOT_CONTAINER), _(this, "emitter", ee), _(this, "materialsModel"), _(this, "listenerHandle"), _(this, "onChangeCbQueue"), _(this, "parent"), this.materialsModel = n, this.rawData = JSON.parse(JSON.stringify(e)), this.data = dn(e, this, n), this.listenerHandle = [], this.onChangeCbQueue = [], this.registerListener(), this.parent = r;
2226
+ _(this, "rawData"), _(this, "data"), _(this, "nodeType", At.ROOT_CONTAINER), _(this, "emitter", Zt), _(this, "materialsModel"), _(this, "listenerHandle"), _(this, "onChangeCbQueue"), _(this, "parent"), this.materialsModel = n, this.rawData = JSON.parse(JSON.stringify(e)), this.data = fn(e, this, n), this.listenerHandle = [], this.onChangeCbQueue = [], this.registerListener(), this.parent = r;
2150
2227
  }
2151
2228
  registerListener() {
2152
2229
  const e = (r) => {
@@ -2180,16 +2257,16 @@ class Xt {
2180
2257
  ...this.data,
2181
2258
  ...e
2182
2259
  };
2183
- this.data = dn(n, this, this.materialsModel), this.emitter.emit("onNodeChange", {
2260
+ this.data = fn(n, this, this.materialsModel), this.emitter.emit("onNodeChange", {
2184
2261
  value: this.data,
2185
2262
  preValue: r,
2186
2263
  node: this
2187
2264
  });
2188
2265
  }
2189
2266
  contains(e) {
2190
- return Er(this, e);
2267
+ return Cr(this, e);
2191
2268
  }
2192
- export(e = wr.SAVE) {
2269
+ export(e = jr.SAVE) {
2193
2270
  var r;
2194
2271
  const n = this.data, o = {};
2195
2272
  Object.keys(n.props || {}).forEach((c) => {
@@ -2203,8 +2280,8 @@ class Xt {
2203
2280
  props: o,
2204
2281
  children: a.filter((c) => c)
2205
2282
  };
2206
- let s = ho(i, ["id"]);
2207
- return s = Cr(s), s;
2283
+ let s = lo(i, ["id"]);
2284
+ return s = Or(s), s;
2208
2285
  }
2209
2286
  getPlainProps() {
2210
2287
  const e = this.data, r = {};
@@ -2218,16 +2295,16 @@ class Xt {
2218
2295
  clone(e) {
2219
2296
  const r = {
2220
2297
  ...this.export("design"),
2221
- id: e || K()
2298
+ id: e || Z()
2222
2299
  };
2223
- return new Xt(r, {
2300
+ return new Qt(r, {
2224
2301
  materials: this.materialsModel,
2225
2302
  parent: null
2226
2303
  });
2227
2304
  }
2228
2305
  }
2229
- const it = (t) => (t == null ? void 0 : t.type) === k.EXPRESSION, Nf = (t) => (t == null ? void 0 : t.type) == k.FUNCTION, K = () => Math.random().toString(32).slice(3, 9), $f = (t) => (t == null ? void 0 : t.nodeType) === "NODE", Ae = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Tf = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Cr = (t) => Ql(t, (e) => B(e) ? !Object.keys(e).length : M(e) ? !e.length : !e);
2230
- function Er(t, e) {
2306
+ const ct = (t) => (t == null ? void 0 : t.type) === U.EXPRESSION, Of = (t) => (t == null ? void 0 : t.type) == U.FUNCTION, Z = () => Math.random().toString(32).slice(3, 9), Cf = (t) => (t == null ? void 0 : t.nodeType) === "NODE", Te = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Ef = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Or = (t) => Vl(t, (e) => F(e) ? !Object.keys(e).length : M(e) ? !e.length : !e);
2307
+ function Cr(t, e) {
2231
2308
  const r = [t];
2232
2309
  for (; r.length; ) {
2233
2310
  const n = r.shift();
@@ -2238,11 +2315,11 @@ function Er(t, e) {
2238
2315
  r.push(s);
2239
2316
  return;
2240
2317
  }
2241
- if (s instanceof St && a(s.value.value), s instanceof at) {
2318
+ if (s instanceof wt && a(s.value.value), s instanceof st) {
2242
2319
  a(s.value);
2243
2320
  return;
2244
2321
  }
2245
- if (B(s)) {
2322
+ if (F(s)) {
2246
2323
  const c = s;
2247
2324
  Object.keys(c).map((u) => {
2248
2325
  a(c[u]);
@@ -2262,12 +2339,12 @@ function Er(t, e) {
2262
2339
  }
2263
2340
  return null;
2264
2341
  }
2265
- const Af = (t) => {
2266
- const e = ao(t), r = e.snippets;
2342
+ const xf = (t) => {
2343
+ const e = ro(t), r = e.snippets;
2267
2344
  return delete e.snippets, e.snippets = r.map((n) => ({
2268
2345
  ...e,
2269
2346
  ...n,
2270
- id: n.id || `${t.componentName}-${K()}`,
2347
+ id: n.id || `${t.componentName}-${Z()}`,
2271
2348
  title: n.title || t.title,
2272
2349
  category: n.category || t.category,
2273
2350
  tags: [...n.tags || [], ...t.tags || []],
@@ -2280,9 +2357,9 @@ const Af = (t) => {
2280
2357
  }
2281
2358
  })), e;
2282
2359
  };
2283
- class Mf {
2360
+ class Nf {
2284
2361
  constructor(e) {
2285
- _(this, "rawData"), _(this, "data"), this.rawData = e, this.data = Af(e);
2362
+ _(this, "rawData"), _(this, "data"), this.rawData = e, this.data = xf(e);
2286
2363
  }
2287
2364
  get value() {
2288
2365
  return this.data;
@@ -2300,22 +2377,22 @@ class Mf {
2300
2377
  return this.data.snippets.find((r) => r.id === e);
2301
2378
  }
2302
2379
  }
2303
- const Pf = (t) => {
2380
+ const $f = (t) => {
2304
2381
  if (!M(t))
2305
2382
  throw new Error("Materials must be a array");
2306
- return t.map((e) => new Mf(e));
2307
- }, Df = (t) => {
2383
+ return t.map((e) => new Nf(e));
2384
+ }, Tf = (t) => {
2308
2385
  t == null || t.forEach((e) => {
2309
- Or({
2386
+ wr({
2310
2387
  data: e,
2311
- dataStruct: jf,
2388
+ dataStruct: yf,
2312
2389
  throwError: !0
2313
2390
  });
2314
2391
  });
2315
2392
  };
2316
- class lt {
2393
+ class ft {
2317
2394
  constructor(e) {
2318
- _(this, "rawData"), _(this, "data"), _(this, "usedMaterials", []), this.rawData = e, Df(e), this.data = Pf(e);
2395
+ _(this, "rawData"), _(this, "data"), _(this, "usedMaterials", []), this.rawData = e, Tf(e), this.data = $f(e);
2319
2396
  }
2320
2397
  findByComponentName(e) {
2321
2398
  return this.data.find((r) => r.componentName === e);
@@ -2370,41 +2447,47 @@ class lt {
2370
2447
  return this.rawData;
2371
2448
  }
2372
2449
  }
2373
- const Rf = S({
2450
+ const Af = O({
2374
2451
  version: v(),
2375
2452
  name: v(),
2376
2453
  css: m(v()),
2377
- renderType: m(L([F("COMPONENT"), F("PAGE")])),
2378
- methods: m(A(Sf)),
2454
+ renderType: m(I([L(
2455
+ "COMPONENT"
2456
+ /* COMPONENT */
2457
+ ), L(
2458
+ "PAGE"
2459
+ /* PAGE */
2460
+ )])),
2461
+ methods: m(A(bf)),
2379
2462
  componentsMeta: A(
2380
- _r(
2381
- S({
2463
+ br(
2464
+ O({
2382
2465
  componentName: v()
2383
2466
  }),
2384
- jr
2467
+ _r
2385
2468
  )
2386
2469
  ),
2387
- thirdLibs: m(pf),
2388
- componentsTree: Of,
2389
- assets: m(A(R()))
2390
- }), wo = (t) => (Or({
2470
+ thirdLibs: m(cf),
2471
+ componentsTree: _f,
2472
+ assets: m(A(D()))
2473
+ }), bo = (t) => (wr({
2391
2474
  data: t,
2392
- dataStruct: Rf,
2475
+ dataStruct: Af,
2393
2476
  throwError: !0
2394
- }), t), Me = (t, e, r) => ({
2477
+ }), t), Ae = (t, e, r) => ({
2395
2478
  ...t,
2396
- componentsTree: new Xt(t.componentsTree, {
2479
+ componentsTree: new Qt(t.componentsTree, {
2397
2480
  parent: e,
2398
2481
  materials: r
2399
2482
  })
2400
2483
  });
2401
- class fe {
2484
+ class ue {
2402
2485
  constructor(e, r) {
2403
- _(this, "nodeType", "PAGE"), _(this, "rawData"), _(this, "emitter", ee), _(this, "data"), _(this, "parent"), _(this, "materialsModel"), _(this, "assetPackagesList"), wo(e), this.assetPackagesList = (r == null ? void 0 : r.assetPackagesList) || [], this.rawData = JSON.parse(JSON.stringify(e)), this.materialsModel = new lt((r == null ? void 0 : r.materials) || []), this.data = Me(e, this, this.materialsModel);
2486
+ _(this, "nodeType", "PAGE"), _(this, "rawData"), _(this, "emitter", Zt), _(this, "data"), _(this, "parent"), _(this, "materialsModel"), _(this, "assetPackagesList"), bo(e), this.assetPackagesList = (r == null ? void 0 : r.assetPackagesList) || [], this.rawData = JSON.parse(JSON.stringify(e)), this.materialsModel = new ft((r == null ? void 0 : r.materials) || []), this.data = Ae(e, this, this.materialsModel);
2404
2487
  }
2405
2488
  updatePage(e) {
2406
2489
  const r = this.data;
2407
- this.rawData = JSON.parse(JSON.stringify(e)), this.data = Me(e, this, this.materialsModel), this.emitter.emit("onPageChange", {
2490
+ this.rawData = JSON.parse(JSON.stringify(e)), this.data = Ae(e, this, this.materialsModel), this.emitter.emit("onPageChange", {
2408
2491
  value: this.data,
2409
2492
  preValue: r,
2410
2493
  node: this
@@ -2412,7 +2495,7 @@ class fe {
2412
2495
  }
2413
2496
  reloadPage(e) {
2414
2497
  const r = this.data;
2415
- this.rawData = JSON.parse(JSON.stringify(e)), this.data = Me(e, this, this.materialsModel), this.emitter.emit("onReloadPage", {
2498
+ this.rawData = JSON.parse(JSON.stringify(e)), this.data = Ae(e, this, this.materialsModel), this.emitter.emit("onReloadPage", {
2416
2499
  value: this.data,
2417
2500
  preValue: r,
2418
2501
  node: this
@@ -2421,36 +2504,37 @@ class fe {
2421
2504
  get value() {
2422
2505
  return this.data;
2423
2506
  }
2507
+ // moveNode(from, to, pos) {}
2424
2508
  getNode(e) {
2425
2509
  const r = this.data.componentsTree;
2426
- return Er(r, e);
2510
+ return Cr(r, e);
2427
2511
  }
2428
2512
  addNode(e, r, n = "AFTER") {
2429
- var o, a, i;
2513
+ var o;
2430
2514
  if (n === "AFTER" || n === "BEFORE") {
2431
- const s = r.parent;
2432
- if (s === null && r instanceof Xt)
2515
+ const a = r.parent;
2516
+ if (a === null && r instanceof Qt)
2433
2517
  return console.warn("Not found parent node"), !1;
2434
- if (s instanceof at)
2518
+ if (a instanceof st)
2435
2519
  return console.warn("CProp can not add node"), !1;
2436
- if (s instanceof St) {
2437
- const u = s.value.value, l = (o = u.findIndex((p) => p === r)) != null ? o : -1;
2438
- return l >= 0 ? (n === "BEFORE" ? u.splice(l, 0, e) : u.splice(l + 1, 0, e), e.parent = s, (a = s.parent) == null || a.updateValue(), !0) : !1;
2520
+ if (a instanceof wt) {
2521
+ const s = a.value.value, c = s.findIndex((u) => u === r) ?? -1;
2522
+ return c >= 0 ? (n === "BEFORE" ? s.splice(c, 0, e) : s.splice(c + 1, 0, e), e.parent = a, (o = a.parent) == null || o.updateValue(), !0) : !1;
2439
2523
  }
2440
- if (s instanceof fe)
2524
+ if (a instanceof ue)
2441
2525
  return !1;
2442
- const c = (i = s == null ? void 0 : s.value.children.findIndex((u) => u === r)) != null ? i : -1;
2443
- return c >= 0 ? (n === "BEFORE" ? s == null || s.value.children.splice(c, 0, e) : s == null || s.value.children.splice(c + 1, 0, e), e.parent = s, s == null || s.updateValue(), !0) : (console.warn("Not found target node"), !1);
2526
+ const i = (a == null ? void 0 : a.value.children.findIndex((s) => s === r)) ?? -1;
2527
+ return i >= 0 ? (n === "BEFORE" ? a == null || a.value.children.splice(i, 0, e) : a == null || a.value.children.splice(i + 1, 0, e), e.parent = a, a == null || a.updateValue(), !0) : (console.warn("Not found target node"), !1);
2444
2528
  }
2445
2529
  if (n === "CHILD_START")
2446
2530
  return r.value.children.unshift(e), e.parent = r, r.updateValue(), !0;
2447
2531
  if (n === "CHILD_END")
2448
2532
  return r.value.children.push(e), e.parent = r, r.updateValue(), !0;
2449
- if (B(n)) {
2450
- const s = n;
2451
- if (s.type === "CHILD") {
2452
- const c = s.pos, u = s.index || 0;
2453
- return c === "BEFORE" ? r == null || r.value.children.splice(u, 0, e) : r == null || r.value.children.splice(u + 1, 0, e), e.parent = r, r.updateValue(), !0;
2533
+ if (F(n)) {
2534
+ const a = n;
2535
+ if (a.type === "CHILD") {
2536
+ const i = a.pos, s = a.index || 0;
2537
+ return i === "BEFORE" ? r == null || r.value.children.splice(s, 0, e) : r == null || r.value.children.splice(s + 1, 0, e), e.parent = r, r.updateValue(), !0;
2454
2538
  } else
2455
2539
  console.warn("Can not parse pos obj");
2456
2540
  }
@@ -2468,7 +2552,7 @@ class fe {
2468
2552
  }
2469
2553
  copyNode(e) {
2470
2554
  const r = e.export("design");
2471
- r.id = K();
2555
+ r.id = Z();
2472
2556
  const n = new T(r, {
2473
2557
  parent: e.parent,
2474
2558
  materials: this.materialsModel
@@ -2488,16 +2572,17 @@ class fe {
2488
2572
  const o = this.getNode(e), a = this.getNode(r);
2489
2573
  return o && a && o instanceof T && a instanceof T ? this.moveNode(o, a, n) : !1;
2490
2574
  }
2575
+ // replaceNode(targetNode, node) {}
2491
2576
  deleteNode(e) {
2492
2577
  var r;
2493
2578
  const n = e.parent;
2494
2579
  if (!n)
2495
2580
  throw new Error("parent node is null or undefined, pls check it");
2496
- if (n instanceof St) {
2581
+ if (n instanceof wt) {
2497
2582
  const o = n.value.value, a = o.findIndex((s) => s === e), i = o[a];
2498
2583
  return o.splice(a, 1), (r = n.parent) == null || r.updateValue(), i;
2499
2584
  }
2500
- if (n instanceof T || n instanceof Xt) {
2585
+ if (n instanceof T || n instanceof Qt) {
2501
2586
  const o = n.value.children, a = o.findIndex((s) => s === e), i = o[a];
2502
2587
  return o.splice(a, 1), n.updateValue(), i;
2503
2588
  }
@@ -2507,7 +2592,8 @@ class fe {
2507
2592
  if (r)
2508
2593
  return this.deleteNode(r);
2509
2594
  }
2510
- export(e = wr.SAVE) {
2595
+ // TODO
2596
+ export(e = jr.SAVE) {
2511
2597
  var r;
2512
2598
  const n = this.data.componentsTree.export(e), o = this.assetPackagesList, a = [], i = this.materialsModel.usedMaterials.map((c) => {
2513
2599
  const u = o.find((l) => {
@@ -2516,7 +2602,7 @@ class fe {
2516
2602
  });
2517
2603
  return u && a.push(u), {
2518
2604
  componentName: c.componentName,
2519
- ...ao(c.value.npm || {})
2605
+ ...ro(c.value.npm || {})
2520
2606
  };
2521
2607
  }).filter((c) => {
2522
2608
  if (c.componentName && c.package && c.version)
@@ -2525,7 +2611,7 @@ class fe {
2525
2611
  this.materialsModel.usedMaterials = [];
2526
2612
  let s = {
2527
2613
  ...this.data,
2528
- componentsTree: Cr(n),
2614
+ componentsTree: Or(n),
2529
2615
  componentsMeta: i,
2530
2616
  thirdLibs: this.data.thirdLibs,
2531
2617
  assets: []
@@ -2535,88 +2621,88 @@ class fe {
2535
2621
  l.package, l.package;
2536
2622
  });
2537
2623
  u && a.push(u);
2538
- }), s.assets = rf(a, (c) => c.package), s = ho(s, ["id"]), JSON.parse(JSON.stringify(s));
2624
+ }), s.assets = Kl(a, (c) => c.package), s = lo(s, ["id"]), JSON.parse(JSON.stringify(s));
2539
2625
  }
2540
2626
  }
2541
2627
  At.ROOT_CONTAINER;
2542
- var If = typeof global == "object" && global && global.Object === Object && global;
2543
- const So = If;
2544
- var Lf = typeof self == "object" && self && self.Object === Object && self, Ff = So || Lf || Function("return this")();
2545
- const Mt = Ff;
2546
- var Bf = Mt.Symbol;
2547
- const Ot = Bf;
2548
- var Oo = Object.prototype, Uf = Oo.hasOwnProperty, kf = Oo.toString, Ut = Ot ? Ot.toStringTag : void 0;
2549
- function zf(t) {
2550
- var e = Uf.call(t, Ut), r = t[Ut];
2628
+ var Mf = typeof global == "object" && global && global.Object === Object && global;
2629
+ const _o = Mf;
2630
+ var Pf = typeof self == "object" && self && self.Object === Object && self, Rf = _o || Pf || Function("return this")();
2631
+ const Mt = Rf;
2632
+ var Df = Mt.Symbol;
2633
+ const Ot = Df;
2634
+ var jo = Object.prototype, If = jo.hasOwnProperty, Lf = jo.toString, Ft = Ot ? Ot.toStringTag : void 0;
2635
+ function Ff(t) {
2636
+ var e = If.call(t, Ft), r = t[Ft];
2551
2637
  try {
2552
- t[Ut] = void 0;
2638
+ t[Ft] = void 0;
2553
2639
  var n = !0;
2554
2640
  } catch {
2555
2641
  }
2556
- var o = kf.call(t);
2557
- return n && (e ? t[Ut] = r : delete t[Ut]), o;
2642
+ var o = Lf.call(t);
2643
+ return n && (e ? t[Ft] = r : delete t[Ft]), o;
2558
2644
  }
2559
- var Gf = Object.prototype, Hf = Gf.toString;
2560
- function Vf(t) {
2561
- return Hf.call(t);
2645
+ var Bf = Object.prototype, Uf = Bf.toString;
2646
+ function kf(t) {
2647
+ return Uf.call(t);
2562
2648
  }
2563
- var Wf = "[object Null]", Jf = "[object Undefined]", hn = Ot ? Ot.toStringTag : void 0;
2564
- function re(t) {
2565
- return t == null ? t === void 0 ? Jf : Wf : hn && hn in Object(t) ? zf(t) : Vf(t);
2649
+ var zf = "[object Null]", Gf = "[object Undefined]", pn = Ot ? Ot.toStringTag : void 0;
2650
+ function te(t) {
2651
+ return t == null ? t === void 0 ? Gf : zf : pn && pn in Object(t) ? Ff(t) : kf(t);
2566
2652
  }
2567
2653
  function Pt(t) {
2568
2654
  return t != null && typeof t == "object";
2569
2655
  }
2570
- var qf = "[object Symbol]";
2571
- function Qf(t) {
2572
- return typeof t == "symbol" || Pt(t) && re(t) == qf;
2656
+ var Hf = "[object Symbol]";
2657
+ function Vf(t) {
2658
+ return typeof t == "symbol" || Pt(t) && te(t) == Hf;
2573
2659
  }
2574
- function Yf(t, e) {
2660
+ function Wf(t, e) {
2575
2661
  for (var r = -1, n = t == null ? 0 : t.length, o = Array(n); ++r < n; )
2576
2662
  o[r] = e(t[r], r, t);
2577
2663
  return o;
2578
2664
  }
2579
- var Xf = Array.isArray;
2580
- const Ct = Xf;
2581
- var Kf = 1 / 0, vn = Ot ? Ot.prototype : void 0, mn = vn ? vn.toString : void 0;
2582
- function Co(t) {
2665
+ var Jf = Array.isArray;
2666
+ const Ct = Jf;
2667
+ var qf = 1 / 0, dn = Ot ? Ot.prototype : void 0, hn = dn ? dn.toString : void 0;
2668
+ function So(t) {
2583
2669
  if (typeof t == "string")
2584
2670
  return t;
2585
2671
  if (Ct(t))
2586
- return Yf(t, Co) + "";
2587
- if (Qf(t))
2588
- return mn ? mn.call(t) : "";
2672
+ return Wf(t, So) + "";
2673
+ if (Vf(t))
2674
+ return hn ? hn.call(t) : "";
2589
2675
  var e = t + "";
2590
- return e == "0" && 1 / t == -Kf ? "-0" : e;
2676
+ return e == "0" && 1 / t == -qf ? "-0" : e;
2591
2677
  }
2592
- function vt(t) {
2678
+ function mt(t) {
2593
2679
  var e = typeof t;
2594
2680
  return t != null && (e == "object" || e == "function");
2595
2681
  }
2596
- function Eo(t) {
2682
+ function wo(t) {
2597
2683
  return t;
2598
2684
  }
2599
- var Zf = "[object AsyncFunction]", tp = "[object Function]", ep = "[object GeneratorFunction]", rp = "[object Proxy]";
2600
- function xr(t) {
2601
- if (!vt(t))
2685
+ var Qf = "[object AsyncFunction]", Yf = "[object Function]", Xf = "[object GeneratorFunction]", Kf = "[object Proxy]";
2686
+ function Er(t) {
2687
+ if (!mt(t))
2602
2688
  return !1;
2603
- var e = re(t);
2604
- return e == tp || e == ep || e == Zf || e == rp;
2689
+ var e = te(t);
2690
+ return e == Yf || e == Xf || e == Qf || e == Kf;
2605
2691
  }
2606
- var np = Mt["__core-js_shared__"];
2607
- const Pe = np;
2608
- var yn = function() {
2609
- var t = /[^.]+$/.exec(Pe && Pe.keys && Pe.keys.IE_PROTO || "");
2692
+ var Zf = Mt["__core-js_shared__"];
2693
+ const Me = Zf;
2694
+ var vn = function() {
2695
+ var t = /[^.]+$/.exec(Me && Me.keys && Me.keys.IE_PROTO || "");
2610
2696
  return t ? "Symbol(src)_1." + t : "";
2611
2697
  }();
2612
- function op(t) {
2613
- return !!yn && yn in t;
2698
+ function tp(t) {
2699
+ return !!vn && vn in t;
2614
2700
  }
2615
- var ap = Function.prototype, sp = ap.toString;
2616
- function ip(t) {
2701
+ var ep = Function.prototype, rp = ep.toString;
2702
+ function np(t) {
2617
2703
  if (t != null) {
2618
2704
  try {
2619
- return sp.call(t);
2705
+ return rp.call(t);
2620
2706
  } catch {
2621
2707
  }
2622
2708
  try {
@@ -2626,37 +2712,37 @@ function ip(t) {
2626
2712
  }
2627
2713
  return "";
2628
2714
  }
2629
- var cp = /[\\^$.*+?()[\]{}|]/g, up = /^\[object .+?Constructor\]$/, lp = Function.prototype, fp = Object.prototype, pp = lp.toString, dp = fp.hasOwnProperty, hp = RegExp(
2630
- "^" + pp.call(dp).replace(cp, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2715
+ var op = /[\\^$.*+?()[\]{}|]/g, ap = /^\[object .+?Constructor\]$/, sp = Function.prototype, ip = Object.prototype, cp = sp.toString, up = ip.hasOwnProperty, lp = RegExp(
2716
+ "^" + cp.call(up).replace(op, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2631
2717
  );
2632
- function vp(t) {
2633
- if (!vt(t) || op(t))
2718
+ function fp(t) {
2719
+ if (!mt(t) || tp(t))
2634
2720
  return !1;
2635
- var e = xr(t) ? hp : up;
2636
- return e.test(ip(t));
2721
+ var e = Er(t) ? lp : ap;
2722
+ return e.test(np(t));
2637
2723
  }
2638
- function mp(t, e) {
2724
+ function pp(t, e) {
2639
2725
  return t == null ? void 0 : t[e];
2640
2726
  }
2641
- function Nr(t, e) {
2642
- var r = mp(t, e);
2643
- return vp(r) ? r : void 0;
2727
+ function xr(t, e) {
2728
+ var r = pp(t, e);
2729
+ return fp(r) ? r : void 0;
2644
2730
  }
2645
- var gn = Object.create, yp = function() {
2731
+ var mn = Object.create, dp = function() {
2646
2732
  function t() {
2647
2733
  }
2648
2734
  return function(e) {
2649
- if (!vt(e))
2735
+ if (!mt(e))
2650
2736
  return {};
2651
- if (gn)
2652
- return gn(e);
2737
+ if (mn)
2738
+ return mn(e);
2653
2739
  t.prototype = e;
2654
2740
  var r = new t();
2655
2741
  return t.prototype = void 0, r;
2656
2742
  };
2657
2743
  }();
2658
- const gp = yp;
2659
- function bp(t, e, r) {
2744
+ const hp = dp;
2745
+ function vp(t, e, r) {
2660
2746
  switch (r.length) {
2661
2747
  case 0:
2662
2748
  return t.call(e);
@@ -2669,259 +2755,263 @@ function bp(t, e, r) {
2669
2755
  }
2670
2756
  return t.apply(e, r);
2671
2757
  }
2672
- function _p(t, e) {
2758
+ function mp(t, e) {
2673
2759
  var r = -1, n = t.length;
2674
2760
  for (e || (e = Array(n)); ++r < n; )
2675
2761
  e[r] = t[r];
2676
2762
  return e;
2677
2763
  }
2678
- var jp = 800, wp = 16, Sp = Date.now;
2679
- function Op(t) {
2764
+ var yp = 800, gp = 16, bp = Date.now;
2765
+ function _p(t) {
2680
2766
  var e = 0, r = 0;
2681
2767
  return function() {
2682
- var n = Sp(), o = wp - (n - r);
2768
+ var n = bp(), o = gp - (n - r);
2683
2769
  if (r = n, o > 0) {
2684
- if (++e >= jp)
2770
+ if (++e >= yp)
2685
2771
  return arguments[0];
2686
2772
  } else
2687
2773
  e = 0;
2688
2774
  return t.apply(void 0, arguments);
2689
2775
  };
2690
2776
  }
2691
- function Cp(t) {
2777
+ function jp(t) {
2692
2778
  return function() {
2693
2779
  return t;
2694
2780
  };
2695
2781
  }
2696
- var Ep = function() {
2782
+ var Sp = function() {
2697
2783
  try {
2698
- var t = Nr(Object, "defineProperty");
2784
+ var t = xr(Object, "defineProperty");
2699
2785
  return t({}, "", {}), t;
2700
2786
  } catch {
2701
2787
  }
2702
2788
  }();
2703
- const pe = Ep;
2704
- var xp = pe ? function(t, e) {
2705
- return pe(t, "toString", {
2789
+ const le = Sp;
2790
+ var wp = le ? function(t, e) {
2791
+ return le(t, "toString", {
2706
2792
  configurable: !0,
2707
2793
  enumerable: !1,
2708
- value: Cp(e),
2794
+ value: jp(e),
2709
2795
  writable: !0
2710
2796
  });
2711
- } : Eo;
2712
- const Np = xp;
2713
- var $p = Op(Np);
2714
- const Tp = $p;
2715
- var Ap = 9007199254740991, Mp = /^(?:0|[1-9]\d*)$/;
2716
- function xo(t, e) {
2797
+ } : wo;
2798
+ const Op = wp;
2799
+ var Cp = _p(Op);
2800
+ const Ep = Cp;
2801
+ var xp = 9007199254740991, Np = /^(?:0|[1-9]\d*)$/;
2802
+ function Oo(t, e) {
2717
2803
  var r = typeof t;
2718
- return e = e == null ? Ap : e, !!e && (r == "number" || r != "symbol" && Mp.test(t)) && t > -1 && t % 1 == 0 && t < e;
2804
+ return e = e ?? xp, !!e && (r == "number" || r != "symbol" && Np.test(t)) && t > -1 && t % 1 == 0 && t < e;
2719
2805
  }
2720
- function $r(t, e, r) {
2721
- e == "__proto__" && pe ? pe(t, e, {
2806
+ function Nr(t, e, r) {
2807
+ e == "__proto__" && le ? le(t, e, {
2722
2808
  configurable: !0,
2723
2809
  enumerable: !0,
2724
2810
  value: r,
2725
2811
  writable: !0
2726
2812
  }) : t[e] = r;
2727
2813
  }
2728
- function _e(t, e) {
2814
+ function be(t, e) {
2729
2815
  return t === e || t !== t && e !== e;
2730
2816
  }
2731
- var Pp = Object.prototype, Dp = Pp.hasOwnProperty;
2732
- function Rp(t, e, r) {
2817
+ var $p = Object.prototype, Tp = $p.hasOwnProperty;
2818
+ function Ap(t, e, r) {
2733
2819
  var n = t[e];
2734
- (!(Dp.call(t, e) && _e(n, r)) || r === void 0 && !(e in t)) && $r(t, e, r);
2820
+ (!(Tp.call(t, e) && be(n, r)) || r === void 0 && !(e in t)) && Nr(t, e, r);
2735
2821
  }
2736
- function Ip(t, e, r, n) {
2822
+ function Mp(t, e, r, n) {
2737
2823
  var o = !r;
2738
2824
  r || (r = {});
2739
2825
  for (var a = -1, i = e.length; ++a < i; ) {
2740
2826
  var s = e[a], c = n ? n(r[s], t[s], s, r, t) : void 0;
2741
- c === void 0 && (c = t[s]), o ? $r(r, s, c) : Rp(r, s, c);
2827
+ c === void 0 && (c = t[s]), o ? Nr(r, s, c) : Ap(r, s, c);
2742
2828
  }
2743
2829
  return r;
2744
2830
  }
2745
- var bn = Math.max;
2746
- function Lp(t, e, r) {
2747
- return e = bn(e === void 0 ? t.length - 1 : e, 0), function() {
2748
- for (var n = arguments, o = -1, a = bn(n.length - e, 0), i = Array(a); ++o < a; )
2831
+ var yn = Math.max;
2832
+ function Pp(t, e, r) {
2833
+ return e = yn(e === void 0 ? t.length - 1 : e, 0), function() {
2834
+ for (var n = arguments, o = -1, a = yn(n.length - e, 0), i = Array(a); ++o < a; )
2749
2835
  i[o] = n[e + o];
2750
2836
  o = -1;
2751
2837
  for (var s = Array(e + 1); ++o < e; )
2752
2838
  s[o] = n[o];
2753
- return s[e] = r(i), bp(t, this, s);
2839
+ return s[e] = r(i), vp(t, this, s);
2754
2840
  };
2755
2841
  }
2756
- function Fp(t, e) {
2757
- return Tp(Lp(t, e, Eo), t + "");
2842
+ function Rp(t, e) {
2843
+ return Ep(Pp(t, e, wo), t + "");
2758
2844
  }
2759
- var Bp = 9007199254740991;
2760
- function No(t) {
2761
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Bp;
2845
+ var Dp = 9007199254740991;
2846
+ function Co(t) {
2847
+ return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Dp;
2762
2848
  }
2763
- function Tr(t) {
2764
- return t != null && No(t.length) && !xr(t);
2849
+ function $r(t) {
2850
+ return t != null && Co(t.length) && !Er(t);
2765
2851
  }
2766
- function Up(t, e, r) {
2767
- if (!vt(r))
2852
+ function Ip(t, e, r) {
2853
+ if (!mt(r))
2768
2854
  return !1;
2769
2855
  var n = typeof e;
2770
- return (n == "number" ? Tr(r) && xo(e, r.length) : n == "string" && e in r) ? _e(r[e], t) : !1;
2856
+ return (n == "number" ? $r(r) && Oo(e, r.length) : n == "string" && e in r) ? be(r[e], t) : !1;
2771
2857
  }
2772
- function kp(t) {
2773
- return Fp(function(e, r) {
2858
+ function Lp(t) {
2859
+ return Rp(function(e, r) {
2774
2860
  var n = -1, o = r.length, a = o > 1 ? r[o - 1] : void 0, i = o > 2 ? r[2] : void 0;
2775
- for (a = t.length > 3 && typeof a == "function" ? (o--, a) : void 0, i && Up(r[0], r[1], i) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++n < o; ) {
2861
+ for (a = t.length > 3 && typeof a == "function" ? (o--, a) : void 0, i && Ip(r[0], r[1], i) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++n < o; ) {
2776
2862
  var s = r[n];
2777
2863
  s && t(e, s, n, a);
2778
2864
  }
2779
2865
  return e;
2780
2866
  });
2781
2867
  }
2782
- var zp = Object.prototype;
2783
- function $o(t) {
2784
- var e = t && t.constructor, r = typeof e == "function" && e.prototype || zp;
2868
+ var Fp = Object.prototype;
2869
+ function Eo(t) {
2870
+ var e = t && t.constructor, r = typeof e == "function" && e.prototype || Fp;
2785
2871
  return t === r;
2786
2872
  }
2787
- function Gp(t, e) {
2873
+ function Bp(t, e) {
2788
2874
  for (var r = -1, n = Array(t); ++r < t; )
2789
2875
  n[r] = e(r);
2790
2876
  return n;
2791
2877
  }
2792
- var Hp = "[object Arguments]";
2793
- function _n(t) {
2794
- return Pt(t) && re(t) == Hp;
2878
+ var Up = "[object Arguments]";
2879
+ function gn(t) {
2880
+ return Pt(t) && te(t) == Up;
2795
2881
  }
2796
- var To = Object.prototype, Vp = To.hasOwnProperty, Wp = To.propertyIsEnumerable, Jp = _n(function() {
2882
+ var xo = Object.prototype, kp = xo.hasOwnProperty, zp = xo.propertyIsEnumerable, Gp = gn(function() {
2797
2883
  return arguments;
2798
- }()) ? _n : function(t) {
2799
- return Pt(t) && Vp.call(t, "callee") && !Wp.call(t, "callee");
2884
+ }()) ? gn : function(t) {
2885
+ return Pt(t) && kp.call(t, "callee") && !zp.call(t, "callee");
2800
2886
  };
2801
- const Je = Jp;
2802
- function qp() {
2887
+ const We = Gp;
2888
+ function Hp() {
2803
2889
  return !1;
2804
2890
  }
2805
- var Ao = typeof exports == "object" && exports && !exports.nodeType && exports, jn = Ao && typeof module == "object" && module && !module.nodeType && module, Qp = jn && jn.exports === Ao, wn = Qp ? Mt.Buffer : void 0, Yp = wn ? wn.isBuffer : void 0, Xp = Yp || qp;
2806
- const Mo = Xp;
2807
- var Kp = "[object Arguments]", Zp = "[object Array]", td = "[object Boolean]", ed = "[object Date]", rd = "[object Error]", nd = "[object Function]", od = "[object Map]", ad = "[object Number]", sd = "[object Object]", id = "[object RegExp]", cd = "[object Set]", ud = "[object String]", ld = "[object WeakMap]", fd = "[object ArrayBuffer]", pd = "[object DataView]", dd = "[object Float32Array]", hd = "[object Float64Array]", vd = "[object Int8Array]", md = "[object Int16Array]", yd = "[object Int32Array]", gd = "[object Uint8Array]", bd = "[object Uint8ClampedArray]", _d = "[object Uint16Array]", jd = "[object Uint32Array]", N = {};
2808
- N[dd] = N[hd] = N[vd] = N[md] = N[yd] = N[gd] = N[bd] = N[_d] = N[jd] = !0;
2809
- N[Kp] = N[Zp] = N[fd] = N[td] = N[pd] = N[ed] = N[rd] = N[nd] = N[od] = N[ad] = N[sd] = N[id] = N[cd] = N[ud] = N[ld] = !1;
2810
- function wd(t) {
2811
- return Pt(t) && No(t.length) && !!N[re(t)];
2891
+ var No = typeof exports == "object" && exports && !exports.nodeType && exports, bn = No && typeof module == "object" && module && !module.nodeType && module, Vp = bn && bn.exports === No, _n = Vp ? Mt.Buffer : void 0, Wp = _n ? _n.isBuffer : void 0, Jp = Wp || Hp;
2892
+ const $o = Jp;
2893
+ var qp = "[object Arguments]", Qp = "[object Array]", Yp = "[object Boolean]", Xp = "[object Date]", Kp = "[object Error]", Zp = "[object Function]", td = "[object Map]", ed = "[object Number]", rd = "[object Object]", nd = "[object RegExp]", od = "[object Set]", ad = "[object String]", sd = "[object WeakMap]", id = "[object ArrayBuffer]", cd = "[object DataView]", ud = "[object Float32Array]", ld = "[object Float64Array]", fd = "[object Int8Array]", pd = "[object Int16Array]", dd = "[object Int32Array]", hd = "[object Uint8Array]", vd = "[object Uint8ClampedArray]", md = "[object Uint16Array]", yd = "[object Uint32Array]", N = {};
2894
+ N[ud] = N[ld] = N[fd] = N[pd] = N[dd] = N[hd] = N[vd] = N[md] = N[yd] = !0;
2895
+ N[qp] = N[Qp] = N[id] = N[Yp] = N[cd] = N[Xp] = N[Kp] = N[Zp] = N[td] = N[ed] = N[rd] = N[nd] = N[od] = N[ad] = N[sd] = !1;
2896
+ function gd(t) {
2897
+ return Pt(t) && Co(t.length) && !!N[te(t)];
2812
2898
  }
2813
- function Sd(t) {
2899
+ function bd(t) {
2814
2900
  return function(e) {
2815
2901
  return t(e);
2816
2902
  };
2817
2903
  }
2818
- var Po = typeof exports == "object" && exports && !exports.nodeType && exports, Ht = Po && typeof module == "object" && module && !module.nodeType && module, Od = Ht && Ht.exports === Po, De = Od && So.process, Cd = function() {
2904
+ var To = typeof exports == "object" && exports && !exports.nodeType && exports, zt = To && typeof module == "object" && module && !module.nodeType && module, _d = zt && zt.exports === To, Pe = _d && _o.process, jd = function() {
2819
2905
  try {
2820
- var t = Ht && Ht.require && Ht.require("util").types;
2821
- return t || De && De.binding && De.binding("util");
2906
+ var t = zt && zt.require && zt.require("util").types;
2907
+ return t || Pe && Pe.binding && Pe.binding("util");
2822
2908
  } catch {
2823
2909
  }
2824
2910
  }();
2825
- const Sn = Cd;
2826
- var On = Sn && Sn.isTypedArray, Ed = On ? Sd(On) : wd;
2827
- const Do = Ed;
2828
- var xd = Object.prototype, Nd = xd.hasOwnProperty;
2829
- function $d(t, e) {
2830
- var r = Ct(t), n = !r && Je(t), o = !r && !n && Mo(t), a = !r && !n && !o && Do(t), i = r || n || o || a, s = i ? Gp(t.length, String) : [], c = s.length;
2911
+ const jn = jd;
2912
+ var Sn = jn && jn.isTypedArray, Sd = Sn ? bd(Sn) : gd;
2913
+ const Ao = Sd;
2914
+ var wd = Object.prototype, Od = wd.hasOwnProperty;
2915
+ function Cd(t, e) {
2916
+ var r = Ct(t), n = !r && We(t), o = !r && !n && $o(t), a = !r && !n && !o && Ao(t), i = r || n || o || a, s = i ? Bp(t.length, String) : [], c = s.length;
2831
2917
  for (var u in t)
2832
- (e || Nd.call(t, u)) && !(i && (u == "length" || o && (u == "offset" || u == "parent") || a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || xo(u, c))) && s.push(u);
2918
+ (e || Od.call(t, u)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
2919
+ (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
2920
+ o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
2921
+ a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
2922
+ Oo(u, c))) && s.push(u);
2833
2923
  return s;
2834
2924
  }
2835
- function Td(t, e) {
2925
+ function Ed(t, e) {
2836
2926
  return function(r) {
2837
2927
  return t(e(r));
2838
2928
  };
2839
2929
  }
2840
- function Ad(t) {
2930
+ function xd(t) {
2841
2931
  var e = [];
2842
2932
  if (t != null)
2843
2933
  for (var r in Object(t))
2844
2934
  e.push(r);
2845
2935
  return e;
2846
2936
  }
2847
- var Md = Object.prototype, Pd = Md.hasOwnProperty;
2848
- function Dd(t) {
2849
- if (!vt(t))
2850
- return Ad(t);
2851
- var e = $o(t), r = [];
2937
+ var Nd = Object.prototype, $d = Nd.hasOwnProperty;
2938
+ function Td(t) {
2939
+ if (!mt(t))
2940
+ return xd(t);
2941
+ var e = Eo(t), r = [];
2852
2942
  for (var n in t)
2853
- n == "constructor" && (e || !Pd.call(t, n)) || r.push(n);
2943
+ n == "constructor" && (e || !$d.call(t, n)) || r.push(n);
2854
2944
  return r;
2855
2945
  }
2856
- function Ro(t) {
2857
- return Tr(t) ? $d(t, !0) : Dd(t);
2946
+ function Mo(t) {
2947
+ return $r(t) ? Cd(t, !0) : Td(t);
2858
2948
  }
2859
- var Rd = Nr(Object, "create");
2860
- const Kt = Rd;
2861
- function Id() {
2862
- this.__data__ = Kt ? Kt(null) : {}, this.size = 0;
2949
+ var Ad = xr(Object, "create");
2950
+ const Yt = Ad;
2951
+ function Md() {
2952
+ this.__data__ = Yt ? Yt(null) : {}, this.size = 0;
2863
2953
  }
2864
- function Ld(t) {
2954
+ function Pd(t) {
2865
2955
  var e = this.has(t) && delete this.__data__[t];
2866
2956
  return this.size -= e ? 1 : 0, e;
2867
2957
  }
2868
- var Fd = "__lodash_hash_undefined__", Bd = Object.prototype, Ud = Bd.hasOwnProperty;
2869
- function kd(t) {
2958
+ var Rd = "__lodash_hash_undefined__", Dd = Object.prototype, Id = Dd.hasOwnProperty;
2959
+ function Ld(t) {
2870
2960
  var e = this.__data__;
2871
- if (Kt) {
2961
+ if (Yt) {
2872
2962
  var r = e[t];
2873
- return r === Fd ? void 0 : r;
2963
+ return r === Rd ? void 0 : r;
2874
2964
  }
2875
- return Ud.call(e, t) ? e[t] : void 0;
2965
+ return Id.call(e, t) ? e[t] : void 0;
2876
2966
  }
2877
- var zd = Object.prototype, Gd = zd.hasOwnProperty;
2878
- function Hd(t) {
2967
+ var Fd = Object.prototype, Bd = Fd.hasOwnProperty;
2968
+ function Ud(t) {
2879
2969
  var e = this.__data__;
2880
- return Kt ? e[t] !== void 0 : Gd.call(e, t);
2970
+ return Yt ? e[t] !== void 0 : Bd.call(e, t);
2881
2971
  }
2882
- var Vd = "__lodash_hash_undefined__";
2883
- function Wd(t, e) {
2972
+ var kd = "__lodash_hash_undefined__";
2973
+ function zd(t, e) {
2884
2974
  var r = this.__data__;
2885
- return this.size += this.has(t) ? 0 : 1, r[t] = Kt && e === void 0 ? Vd : e, this;
2975
+ return this.size += this.has(t) ? 0 : 1, r[t] = Yt && e === void 0 ? kd : e, this;
2886
2976
  }
2887
- function ft(t) {
2977
+ function pt(t) {
2888
2978
  var e = -1, r = t == null ? 0 : t.length;
2889
2979
  for (this.clear(); ++e < r; ) {
2890
2980
  var n = t[e];
2891
2981
  this.set(n[0], n[1]);
2892
2982
  }
2893
2983
  }
2894
- ft.prototype.clear = Id;
2895
- ft.prototype.delete = Ld;
2896
- ft.prototype.get = kd;
2897
- ft.prototype.has = Hd;
2898
- ft.prototype.set = Wd;
2899
- function Jd() {
2984
+ pt.prototype.clear = Md;
2985
+ pt.prototype.delete = Pd;
2986
+ pt.prototype.get = Ld;
2987
+ pt.prototype.has = Ud;
2988
+ pt.prototype.set = zd;
2989
+ function Gd() {
2900
2990
  this.__data__ = [], this.size = 0;
2901
2991
  }
2902
- function je(t, e) {
2992
+ function _e(t, e) {
2903
2993
  for (var r = t.length; r--; )
2904
- if (_e(t[r][0], e))
2994
+ if (be(t[r][0], e))
2905
2995
  return r;
2906
2996
  return -1;
2907
2997
  }
2908
- var qd = Array.prototype, Qd = qd.splice;
2909
- function Yd(t) {
2910
- var e = this.__data__, r = je(e, t);
2998
+ var Hd = Array.prototype, Vd = Hd.splice;
2999
+ function Wd(t) {
3000
+ var e = this.__data__, r = _e(e, t);
2911
3001
  if (r < 0)
2912
3002
  return !1;
2913
3003
  var n = e.length - 1;
2914
- return r == n ? e.pop() : Qd.call(e, r, 1), --this.size, !0;
3004
+ return r == n ? e.pop() : Vd.call(e, r, 1), --this.size, !0;
2915
3005
  }
2916
- function Xd(t) {
2917
- var e = this.__data__, r = je(e, t);
3006
+ function Jd(t) {
3007
+ var e = this.__data__, r = _e(e, t);
2918
3008
  return r < 0 ? void 0 : e[r][1];
2919
3009
  }
2920
- function Kd(t) {
2921
- return je(this.__data__, t) > -1;
3010
+ function qd(t) {
3011
+ return _e(this.__data__, t) > -1;
2922
3012
  }
2923
- function Zd(t, e) {
2924
- var r = this.__data__, n = je(r, t);
3013
+ function Qd(t, e) {
3014
+ var r = this.__data__, n = _e(r, t);
2925
3015
  return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
2926
3016
  }
2927
3017
  function nt(t) {
@@ -2931,160 +3021,160 @@ function nt(t) {
2931
3021
  this.set(n[0], n[1]);
2932
3022
  }
2933
3023
  }
2934
- nt.prototype.clear = Jd;
2935
- nt.prototype.delete = Yd;
2936
- nt.prototype.get = Xd;
2937
- nt.prototype.has = Kd;
2938
- nt.prototype.set = Zd;
2939
- var th = Nr(Mt, "Map");
2940
- const Io = th;
2941
- function eh() {
3024
+ nt.prototype.clear = Gd;
3025
+ nt.prototype.delete = Wd;
3026
+ nt.prototype.get = Jd;
3027
+ nt.prototype.has = qd;
3028
+ nt.prototype.set = Qd;
3029
+ var Yd = xr(Mt, "Map");
3030
+ const Po = Yd;
3031
+ function Xd() {
2942
3032
  this.size = 0, this.__data__ = {
2943
- hash: new ft(),
2944
- map: new (Io || nt)(),
2945
- string: new ft()
3033
+ hash: new pt(),
3034
+ map: new (Po || nt)(),
3035
+ string: new pt()
2946
3036
  };
2947
3037
  }
2948
- function rh(t) {
3038
+ function Kd(t) {
2949
3039
  var e = typeof t;
2950
3040
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
2951
3041
  }
2952
- function we(t, e) {
3042
+ function je(t, e) {
2953
3043
  var r = t.__data__;
2954
- return rh(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
3044
+ return Kd(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
2955
3045
  }
2956
- function nh(t) {
2957
- var e = we(this, t).delete(t);
3046
+ function Zd(t) {
3047
+ var e = je(this, t).delete(t);
2958
3048
  return this.size -= e ? 1 : 0, e;
2959
3049
  }
2960
- function oh(t) {
2961
- return we(this, t).get(t);
3050
+ function th(t) {
3051
+ return je(this, t).get(t);
2962
3052
  }
2963
- function ah(t) {
2964
- return we(this, t).has(t);
3053
+ function eh(t) {
3054
+ return je(this, t).has(t);
2965
3055
  }
2966
- function sh(t, e) {
2967
- var r = we(this, t), n = r.size;
3056
+ function rh(t, e) {
3057
+ var r = je(this, t), n = r.size;
2968
3058
  return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
2969
3059
  }
2970
- function Dt(t) {
3060
+ function Rt(t) {
2971
3061
  var e = -1, r = t == null ? 0 : t.length;
2972
3062
  for (this.clear(); ++e < r; ) {
2973
3063
  var n = t[e];
2974
3064
  this.set(n[0], n[1]);
2975
3065
  }
2976
3066
  }
2977
- Dt.prototype.clear = eh;
2978
- Dt.prototype.delete = nh;
2979
- Dt.prototype.get = oh;
2980
- Dt.prototype.has = ah;
2981
- Dt.prototype.set = sh;
2982
- function Lo(t) {
2983
- return t == null ? "" : Co(t);
3067
+ Rt.prototype.clear = Xd;
3068
+ Rt.prototype.delete = Zd;
3069
+ Rt.prototype.get = th;
3070
+ Rt.prototype.has = eh;
3071
+ Rt.prototype.set = rh;
3072
+ function Ro(t) {
3073
+ return t == null ? "" : So(t);
2984
3074
  }
2985
- var ih = Td(Object.getPrototypeOf, Object);
2986
- const Fo = ih;
2987
- var ch = "[object Object]", uh = Function.prototype, lh = Object.prototype, Bo = uh.toString, fh = lh.hasOwnProperty, ph = Bo.call(Object);
3075
+ var nh = Ed(Object.getPrototypeOf, Object);
3076
+ const Do = nh;
3077
+ var oh = "[object Object]", ah = Function.prototype, sh = Object.prototype, Io = ah.toString, ih = sh.hasOwnProperty, ch = Io.call(Object);
2988
3078
  function Et(t) {
2989
- if (!Pt(t) || re(t) != ch)
3079
+ if (!Pt(t) || te(t) != oh)
2990
3080
  return !1;
2991
- var e = Fo(t);
3081
+ var e = Do(t);
2992
3082
  if (e === null)
2993
3083
  return !0;
2994
- var r = fh.call(e, "constructor") && e.constructor;
2995
- return typeof r == "function" && r instanceof r && Bo.call(r) == ph;
3084
+ var r = ih.call(e, "constructor") && e.constructor;
3085
+ return typeof r == "function" && r instanceof r && Io.call(r) == ch;
2996
3086
  }
2997
- function dh(t, e, r) {
3087
+ function uh(t, e, r) {
2998
3088
  var n = -1, o = t.length;
2999
3089
  e < 0 && (e = -e > o ? 0 : o + e), r = r > o ? o : r, r < 0 && (r += o), o = e > r ? 0 : r - e >>> 0, e >>>= 0;
3000
3090
  for (var a = Array(o); ++n < o; )
3001
3091
  a[n] = t[n + e];
3002
3092
  return a;
3003
3093
  }
3004
- function hh(t, e, r) {
3094
+ function lh(t, e, r) {
3005
3095
  var n = t.length;
3006
- return r = r === void 0 ? n : r, !e && r >= n ? t : dh(t, e, r);
3096
+ return r = r === void 0 ? n : r, !e && r >= n ? t : uh(t, e, r);
3007
3097
  }
3008
- var vh = "\\ud800-\\udfff", mh = "\\u0300-\\u036f", yh = "\\ufe20-\\ufe2f", gh = "\\u20d0-\\u20ff", bh = mh + yh + gh, _h = "\\ufe0e\\ufe0f", jh = "\\u200d", wh = RegExp("[" + jh + vh + bh + _h + "]");
3009
- function Uo(t) {
3010
- return wh.test(t);
3098
+ var fh = "\\ud800-\\udfff", ph = "\\u0300-\\u036f", dh = "\\ufe20-\\ufe2f", hh = "\\u20d0-\\u20ff", vh = ph + dh + hh, mh = "\\ufe0e\\ufe0f", yh = "\\u200d", gh = RegExp("[" + yh + fh + vh + mh + "]");
3099
+ function Lo(t) {
3100
+ return gh.test(t);
3011
3101
  }
3012
- function Sh(t) {
3102
+ function bh(t) {
3013
3103
  return t.split("");
3014
3104
  }
3015
- var ko = "\\ud800-\\udfff", Oh = "\\u0300-\\u036f", Ch = "\\ufe20-\\ufe2f", Eh = "\\u20d0-\\u20ff", xh = Oh + Ch + Eh, Nh = "\\ufe0e\\ufe0f", $h = "[" + ko + "]", qe = "[" + xh + "]", Qe = "\\ud83c[\\udffb-\\udfff]", Th = "(?:" + qe + "|" + Qe + ")", zo = "[^" + ko + "]", Go = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ho = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ah = "\\u200d", Vo = Th + "?", Wo = "[" + Nh + "]?", Mh = "(?:" + Ah + "(?:" + [zo, Go, Ho].join("|") + ")" + Wo + Vo + ")*", Ph = Wo + Vo + Mh, Dh = "(?:" + [zo + qe + "?", qe, Go, Ho, $h].join("|") + ")", Rh = RegExp(Qe + "(?=" + Qe + ")|" + Dh + Ph, "g");
3016
- function Ih(t) {
3017
- return t.match(Rh) || [];
3105
+ var Fo = "\\ud800-\\udfff", _h = "\\u0300-\\u036f", jh = "\\ufe20-\\ufe2f", Sh = "\\u20d0-\\u20ff", wh = _h + jh + Sh, Oh = "\\ufe0e\\ufe0f", Ch = "[" + Fo + "]", Je = "[" + wh + "]", qe = "\\ud83c[\\udffb-\\udfff]", Eh = "(?:" + Je + "|" + qe + ")", Bo = "[^" + Fo + "]", Uo = "(?:\\ud83c[\\udde6-\\uddff]){2}", ko = "[\\ud800-\\udbff][\\udc00-\\udfff]", xh = "\\u200d", zo = Eh + "?", Go = "[" + Oh + "]?", Nh = "(?:" + xh + "(?:" + [Bo, Uo, ko].join("|") + ")" + Go + zo + ")*", $h = Go + zo + Nh, Th = "(?:" + [Bo + Je + "?", Je, Uo, ko, Ch].join("|") + ")", Ah = RegExp(qe + "(?=" + qe + ")|" + Th + $h, "g");
3106
+ function Mh(t) {
3107
+ return t.match(Ah) || [];
3018
3108
  }
3019
- function Lh(t) {
3020
- return Uo(t) ? Ih(t) : Sh(t);
3109
+ function Ph(t) {
3110
+ return Lo(t) ? Mh(t) : bh(t);
3021
3111
  }
3022
- function Fh(t) {
3112
+ function Rh(t) {
3023
3113
  return function(e) {
3024
- e = Lo(e);
3025
- var r = Uo(e) ? Lh(e) : void 0, n = r ? r[0] : e.charAt(0), o = r ? hh(r, 1).join("") : e.slice(1);
3114
+ e = Ro(e);
3115
+ var r = Lo(e) ? Ph(e) : void 0, n = r ? r[0] : e.charAt(0), o = r ? lh(r, 1).join("") : e.slice(1);
3026
3116
  return n[t]() + o;
3027
3117
  };
3028
3118
  }
3029
- var Bh = Fh("toUpperCase");
3030
- const Uh = Bh;
3031
- function kh(t) {
3032
- return Uh(Lo(t).toLowerCase());
3119
+ var Dh = Rh("toUpperCase");
3120
+ const Ih = Dh;
3121
+ function Lh(t) {
3122
+ return Ih(Ro(t).toLowerCase());
3033
3123
  }
3034
- function zh() {
3124
+ function Fh() {
3035
3125
  this.__data__ = new nt(), this.size = 0;
3036
3126
  }
3037
- function Gh(t) {
3127
+ function Bh(t) {
3038
3128
  var e = this.__data__, r = e.delete(t);
3039
3129
  return this.size = e.size, r;
3040
3130
  }
3041
- function Hh(t) {
3131
+ function Uh(t) {
3042
3132
  return this.__data__.get(t);
3043
3133
  }
3044
- function Vh(t) {
3134
+ function kh(t) {
3045
3135
  return this.__data__.has(t);
3046
3136
  }
3047
- var Wh = 200;
3048
- function Jh(t, e) {
3137
+ var zh = 200;
3138
+ function Gh(t, e) {
3049
3139
  var r = this.__data__;
3050
3140
  if (r instanceof nt) {
3051
3141
  var n = r.__data__;
3052
- if (!Io || n.length < Wh - 1)
3142
+ if (!Po || n.length < zh - 1)
3053
3143
  return n.push([t, e]), this.size = ++r.size, this;
3054
- r = this.__data__ = new Dt(n);
3144
+ r = this.__data__ = new Rt(n);
3055
3145
  }
3056
3146
  return r.set(t, e), this.size = r.size, this;
3057
3147
  }
3058
- function Rt(t) {
3148
+ function Dt(t) {
3059
3149
  var e = this.__data__ = new nt(t);
3060
3150
  this.size = e.size;
3061
3151
  }
3062
- Rt.prototype.clear = zh;
3063
- Rt.prototype.delete = Gh;
3064
- Rt.prototype.get = Hh;
3065
- Rt.prototype.has = Vh;
3066
- Rt.prototype.set = Jh;
3067
- var Jo = typeof exports == "object" && exports && !exports.nodeType && exports, Cn = Jo && typeof module == "object" && module && !module.nodeType && module, qh = Cn && Cn.exports === Jo, En = qh ? Mt.Buffer : void 0, xn = En ? En.allocUnsafe : void 0;
3068
- function Qh(t, e) {
3152
+ Dt.prototype.clear = Fh;
3153
+ Dt.prototype.delete = Bh;
3154
+ Dt.prototype.get = Uh;
3155
+ Dt.prototype.has = kh;
3156
+ Dt.prototype.set = Gh;
3157
+ var Ho = typeof exports == "object" && exports && !exports.nodeType && exports, wn = Ho && typeof module == "object" && module && !module.nodeType && module, Hh = wn && wn.exports === Ho, On = Hh ? Mt.Buffer : void 0, Cn = On ? On.allocUnsafe : void 0;
3158
+ function Vh(t, e) {
3069
3159
  if (e)
3070
3160
  return t.slice();
3071
- var r = t.length, n = xn ? xn(r) : new t.constructor(r);
3161
+ var r = t.length, n = Cn ? Cn(r) : new t.constructor(r);
3072
3162
  return t.copy(n), n;
3073
3163
  }
3074
- var Yh = Mt.Uint8Array;
3075
- const Nn = Yh;
3076
- function Xh(t) {
3164
+ var Wh = Mt.Uint8Array;
3165
+ const En = Wh;
3166
+ function Jh(t) {
3077
3167
  var e = new t.constructor(t.byteLength);
3078
- return new Nn(e).set(new Nn(t)), e;
3168
+ return new En(e).set(new En(t)), e;
3079
3169
  }
3080
- function Kh(t, e) {
3081
- var r = e ? Xh(t.buffer) : t.buffer;
3170
+ function qh(t, e) {
3171
+ var r = e ? Jh(t.buffer) : t.buffer;
3082
3172
  return new t.constructor(r, t.byteOffset, t.length);
3083
3173
  }
3084
- function Zh(t) {
3085
- return typeof t.constructor == "function" && !$o(t) ? gp(Fo(t)) : {};
3174
+ function Qh(t) {
3175
+ return typeof t.constructor == "function" && !Eo(t) ? hp(Do(t)) : {};
3086
3176
  }
3087
- function tv(t) {
3177
+ function Yh(t) {
3088
3178
  return function(e, r, n) {
3089
3179
  for (var o = -1, a = Object(e), i = n(e), s = i.length; s--; ) {
3090
3180
  var c = i[t ? s : ++o];
@@ -3094,61 +3184,61 @@ function tv(t) {
3094
3184
  return e;
3095
3185
  };
3096
3186
  }
3097
- var ev = tv();
3098
- const rv = ev;
3099
- function Ye(t, e, r) {
3100
- (r !== void 0 && !_e(t[e], r) || r === void 0 && !(e in t)) && $r(t, e, r);
3187
+ var Xh = Yh();
3188
+ const Kh = Xh;
3189
+ function Qe(t, e, r) {
3190
+ (r !== void 0 && !be(t[e], r) || r === void 0 && !(e in t)) && Nr(t, e, r);
3101
3191
  }
3102
- function nv(t) {
3103
- return Pt(t) && Tr(t);
3192
+ function Zh(t) {
3193
+ return Pt(t) && $r(t);
3104
3194
  }
3105
- function Xe(t, e) {
3195
+ function Ye(t, e) {
3106
3196
  if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
3107
3197
  return t[e];
3108
3198
  }
3109
- function ov(t) {
3110
- return Ip(t, Ro(t));
3199
+ function tv(t) {
3200
+ return Mp(t, Mo(t));
3111
3201
  }
3112
- function av(t, e, r, n, o, a, i) {
3113
- var s = Xe(t, r), c = Xe(e, r), u = i.get(c);
3202
+ function ev(t, e, r, n, o, a, i) {
3203
+ var s = Ye(t, r), c = Ye(e, r), u = i.get(c);
3114
3204
  if (u) {
3115
- Ye(t, r, u);
3205
+ Qe(t, r, u);
3116
3206
  return;
3117
3207
  }
3118
3208
  var l = a ? a(s, c, r + "", t, e, i) : void 0, p = l === void 0;
3119
3209
  if (p) {
3120
- var f = Ct(c), d = !f && Mo(c), h = !f && !d && Do(c);
3121
- l = c, f || d || h ? Ct(s) ? l = s : nv(s) ? l = _p(s) : d ? (p = !1, l = Qh(c, !0)) : h ? (p = !1, l = Kh(c, !0)) : l = [] : Et(c) || Je(c) ? (l = s, Je(s) ? l = ov(s) : (!vt(s) || xr(s)) && (l = Zh(c))) : p = !1;
3210
+ var f = Ct(c), d = !f && $o(c), h = !f && !d && Ao(c);
3211
+ l = c, f || d || h ? Ct(s) ? l = s : Zh(s) ? l = mp(s) : d ? (p = !1, l = Vh(c, !0)) : h ? (p = !1, l = qh(c, !0)) : l = [] : Et(c) || We(c) ? (l = s, We(s) ? l = tv(s) : (!mt(s) || Er(s)) && (l = Qh(c))) : p = !1;
3122
3212
  }
3123
- p && (i.set(c, l), o(l, c, n, a, i), i.delete(c)), Ye(t, r, l);
3213
+ p && (i.set(c, l), o(l, c, n, a, i), i.delete(c)), Qe(t, r, l);
3124
3214
  }
3125
- function qo(t, e, r, n, o) {
3126
- t !== e && rv(e, function(a, i) {
3127
- if (o || (o = new Rt()), vt(a))
3128
- av(t, e, i, r, qo, n, o);
3215
+ function Vo(t, e, r, n, o) {
3216
+ t !== e && Kh(e, function(a, i) {
3217
+ if (o || (o = new Dt()), mt(a))
3218
+ ev(t, e, i, r, Vo, n, o);
3129
3219
  else {
3130
- var s = n ? n(Xe(t, i), a, i + "", t, e, o) : void 0;
3131
- s === void 0 && (s = a), Ye(t, i, s);
3220
+ var s = n ? n(Ye(t, i), a, i + "", t, e, o) : void 0;
3221
+ s === void 0 && (s = a), Qe(t, i, s);
3132
3222
  }
3133
- }, Ro);
3223
+ }, Mo);
3134
3224
  }
3135
- var sv = kp(function(t, e, r) {
3136
- qo(t, e, r);
3225
+ var rv = Lp(function(t, e, r) {
3226
+ Vo(t, e, r);
3137
3227
  });
3138
- const iv = sv;
3139
- function cv(t) {
3228
+ const nv = rv;
3229
+ function ov(t) {
3140
3230
  const e = t.prototype;
3141
3231
  return !!(e && e.isReactComponent);
3142
3232
  }
3143
- function uv(t) {
3233
+ function av(t) {
3144
3234
  var n, o;
3145
3235
  const r = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.forward_ref") : 60112;
3146
3236
  return (t == null ? void 0 : t.$$typeof) === r || ((n = t == null ? void 0 : t.prototype) == null ? void 0 : n.isReactComponent) || ((o = t == null ? void 0 : t.prototype) == null ? void 0 : o.setState) || t._forwardRef;
3147
3237
  }
3148
- function lv(t) {
3149
- class e extends na {
3238
+ function sv(t) {
3239
+ class e extends Zo {
3150
3240
  render() {
3151
- return oa(t, this.props);
3241
+ return ta(t, this.props);
3152
3242
  }
3153
3243
  }
3154
3244
  return e.displayName = t.displayName, e;
@@ -3169,7 +3259,7 @@ const gt = (t, e) => {
3169
3259
  const o = `[${t}] expression run failed`;
3170
3260
  return console.warn(o), null;
3171
3261
  }
3172
- }, fv = (t, e, r) => function(...o) {
3262
+ }, iv = (t, e, r) => function(...o) {
3173
3263
  try {
3174
3264
  const a = `
3175
3265
  var f = ${t};
@@ -3183,48 +3273,48 @@ const gt = (t, e) => {
3183
3273
  } catch (a) {
3184
3274
  console.warn(a);
3185
3275
  }
3186
- }, $n = (t, e) => {
3276
+ }, xn = (t, e) => {
3187
3277
  const r = {};
3188
3278
  return e.forEach((n, o) => {
3189
3279
  r[n] = t[o];
3190
3280
  }), r;
3191
- }, Tn = (t) => {
3281
+ }, Nn = (t) => {
3192
3282
  const e = {};
3193
3283
  return Object.keys(t).forEach((r) => {
3194
3284
  let n = r.replace("-webkit", "Webkit");
3195
3285
  n = n.replace("-ms", "ms"), n = n.replace("-moz", "Moz"), n = n.replace("-o", "O");
3196
3286
  let o = n.split("-");
3197
- o.length >= 2 && (o = o.map((a, i) => i !== 0 ? kh(a) : a)), e[o.join("")] = t[r];
3287
+ o.length >= 2 && (o = o.map((a, i) => i !== 0 ? Lh(a) : a)), e[o.join("")] = t[r];
3198
3288
  }), e;
3199
- }, An = (t) => {
3289
+ }, $n = (t) => {
3200
3290
  let e = "";
3201
3291
  return Object.keys(t).forEach((r) => {
3202
3292
  e += `${r}:${t[r]};`;
3203
3293
  }), e;
3204
- }, ie = "DYNAMIC", pv = ["$$context", "$$nodeModel"], Mn = (t) => {
3294
+ }, ae = "DYNAMIC", cv = ["$$context", "$$nodeModel"], Tn = (t) => {
3205
3295
  let e;
3206
3296
  const r = /* @__PURE__ */ new Set(), n = (c, u) => {
3207
3297
  const l = typeof c == "function" ? c(e) : c;
3208
3298
  if (!Object.is(l, e)) {
3209
3299
  const p = e;
3210
- e = (u != null ? u : typeof l != "object") ? l : Object.assign({}, e, l), r.forEach((f) => f(e, p));
3300
+ e = u ?? typeof l != "object" ? l : Object.assign({}, e, l), r.forEach((f) => f(e, p));
3211
3301
  }
3212
3302
  }, o = () => e, s = { setState: n, getState: o, subscribe: (c) => (r.add(c), () => r.delete(c)), destroy: () => {
3213
- ({ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0 } && "production") !== "production" && console.warn(
3303
+ ({ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn(
3214
3304
  "[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."
3215
3305
  ), r.clear();
3216
3306
  } };
3217
3307
  return e = t(n, o, s), s;
3218
- }, dv = (t) => t ? Mn(t) : Mn;
3219
- var hv = (t) => (({ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0 } && "production") !== "production" && console.warn(
3308
+ }, uv = (t) => t ? Tn(t) : Tn;
3309
+ var lv = (t) => (({ BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn(
3220
3310
  "[DEPRECATED] Default export is deprecated. Instead use import { createStore } from 'zustand/vanilla'."
3221
- ), dv(t));
3222
- class vv {
3311
+ ), uv(t));
3312
+ class fv {
3223
3313
  constructor() {
3224
3314
  g(this, "storeMap", /* @__PURE__ */ new Map());
3225
3315
  }
3226
3316
  addStore(e, r) {
3227
- const n = hv(r);
3317
+ const n = lv(r);
3228
3318
  return this.storeMap.set(e, n), n.name = e, n;
3229
3319
  }
3230
3320
  setStore(e, r) {
@@ -3241,6 +3331,7 @@ class vv {
3241
3331
  return n ? n.subscribe(r) : (console.warn("store not exits"), () => {
3242
3332
  });
3243
3333
  }
3334
+ // storeManger 赋值以及 获取需要做转换
3244
3335
  getStateSnapshot() {
3245
3336
  const e = {};
3246
3337
  return this.storeMap.forEach((r, n) => {
@@ -3258,23 +3349,24 @@ class vv {
3258
3349
  }), this.storeMap = /* @__PURE__ */ new Map();
3259
3350
  }
3260
3351
  }
3261
- class mv {
3352
+ class pv {
3262
3353
  constructor() {
3263
3354
  g(this, "renderMode", "normal");
3264
3355
  g(this, "components", {});
3265
- g(this, "storeManager", new vv());
3356
+ g(this, "storeManager", new fv());
3266
3357
  g(this, "runtimeComponentCache", /* @__PURE__ */ new Map());
3267
3358
  g(this, "onGetRef");
3268
3359
  g(this, "onGetComponent");
3269
3360
  g(this, "onComponentMount");
3270
3361
  g(this, "onComponentDestroy");
3362
+ // 处理 props 钩子
3271
3363
  g(this, "processNodeConfigHook");
3272
3364
  }
3273
3365
  getComponent(e) {
3274
3366
  var o;
3275
3367
  const r = e.value.componentName;
3276
3368
  let n = this.components[r] || (() => `Component [${r}] not found`);
3277
- return uv(n) || (n = lv(n), this.components[r] = n), this.onGetComponent && (n = (o = this.onGetComponent) == null ? void 0 : o.call(this, n, e)), n;
3369
+ return av(n) || (n = sv(n), this.components[r] = n), this.onGetComponent && (n = (o = this.onGetComponent) == null ? void 0 : o.call(this, n, e)), n;
3278
3370
  }
3279
3371
  getContext(e = {}, r) {
3280
3372
  let n = e;
@@ -3304,15 +3396,15 @@ class mv {
3304
3396
  const n = e, o = (i) => {
3305
3397
  if (Array.isArray(i))
3306
3398
  return i.map((s) => o(s));
3307
- if (Ae(i))
3399
+ if (Te(i))
3308
3400
  return o(i.value);
3309
- if (Tf(i)) {
3401
+ if (Ef(i)) {
3310
3402
  const s = i.value, c = s.value;
3311
3403
  if (!c)
3312
3404
  return console.warn("slot value is null, this maybe cause some error, pls check it", e), () => {
3313
3405
  };
3314
3406
  const u = (l) => {
3315
- const p = `${l.id}-${ie}`;
3407
+ const p = `${l.id}-${ae}`;
3316
3408
  if (this.runtimeComponentCache.get(l.id))
3317
3409
  return {
3318
3410
  key: p,
@@ -3320,10 +3412,10 @@ class mv {
3320
3412
  };
3321
3413
  const f = this.getComponent(l), d = this.convertModelToComponent(f, l), h = s.params || [];
3322
3414
  return {
3323
- component: (...j) => {
3324
- const O = $n(j, h), P = this.getContext(
3415
+ component: (...S) => {
3416
+ const C = xn(S, h), P = this.getContext(
3325
3417
  {
3326
- params: O
3418
+ params: C
3327
3419
  },
3328
3420
  r
3329
3421
  );
@@ -3337,20 +3429,20 @@ class mv {
3337
3429
  };
3338
3430
  if (Array.isArray(c)) {
3339
3431
  const l = c == null ? void 0 : c.map((p) => u(p));
3340
- return (...p) => l.map((f) => cv(f.component) ? w.createElement(f.component, {
3432
+ return (...p) => l.map((f) => ov(f.component) ? w.createElement(f.component, {
3341
3433
  $$context: r,
3342
3434
  key: f.key
3343
3435
  }) : f.component(...p));
3344
3436
  } else
3345
3437
  return u(c).component;
3346
3438
  } else {
3347
- if (it(i))
3439
+ if (ct(i))
3348
3440
  return gt(i.value, r || {});
3349
- if (Nf(i))
3350
- return fv(i.value, r, this.storeManager);
3441
+ if (Of(i))
3442
+ return iv(i.value, r, this.storeManager);
3351
3443
  if (Et(i)) {
3352
3444
  let s = i;
3353
- Ae(i) && (s = i.value);
3445
+ Te(i) && (s = i.value);
3354
3446
  const c = s, u = {};
3355
3447
  return Object.keys(s).forEach((l) => {
3356
3448
  u[l] = o(c[l]);
@@ -3367,7 +3459,7 @@ class mv {
3367
3459
  collectSpecialProps(e = {}, r) {
3368
3460
  const n = [], o = (a, i) => {
3369
3461
  let s = i;
3370
- Ae(i) && (s = i.value), r(s) ? n.push({
3462
+ Te(i) && (s = i.value), r(s) ? n.push({
3371
3463
  keyPath: a,
3372
3464
  val: s
3373
3465
  }) : Ct(s) ? s.forEach((c, u) => {
@@ -3387,12 +3479,14 @@ class mv {
3387
3479
  g(this, "_DESIGN_BOX", !1);
3388
3480
  g(this, "_NODE_MODEL", r);
3389
3481
  g(this, "_NODE_ID", r.id);
3390
- g(this, "UNIQUE_ID", `${r.id}_${K()}`);
3482
+ g(this, "UNIQUE_ID", `${r.id}_${Z()}`);
3391
3483
  g(this, "targetComponentRef");
3392
3484
  g(this, "listenerHandle", []);
3393
3485
  g(this, "storeState");
3486
+ // not react data
3394
3487
  g(this, "staticState", {});
3395
3488
  g(this, "storeListenDisposeLint", []);
3489
+ // save dom and media css
3396
3490
  g(this, "domHeader");
3397
3491
  g(this, "mediaStyleDomMap", {});
3398
3492
  g(this, "updateState", (s) => {
@@ -3409,17 +3503,17 @@ class mv {
3409
3503
  if (s || (s = (u = document.getElementsByTagName("head")) == null ? void 0 : u[0], this.domHeader = s), !this.domHeader)
3410
3504
  return;
3411
3505
  const c = this._NODE_MODEL.value.css;
3412
- !c || c.value.forEach((l) => {
3506
+ c && c.value.forEach((l) => {
3413
3507
  var d;
3414
3508
  const p = `${this.UNIQUE_ID}_${l.state}`;
3415
3509
  let f = `.${c.class}`;
3416
3510
  if (l.state !== "normal" && (f = `${f}:${l.state}`), Object.keys(l.style).length !== 0) {
3417
3511
  const h = this.getStyleDomById(p);
3418
- h.innerText = `${f} { ${An(l.style)} }`, s == null || s.appendChild(h);
3512
+ h.innerText = `${f} { ${$n(l.style)} }`, s == null || s.appendChild(h);
3419
3513
  }
3420
3514
  (d = l.media) != null && d.length && l.media.forEach((h) => {
3421
3515
  const y = `${p}_${h.type}_${h.value}`, b = this.getStyleDomById(y);
3422
- b.media = `screen and (${h.type}:${h.value}px)`, b.innerHTML = `${f} { ${An(h.style)} }`, s == null || s.appendChild(b);
3516
+ b.media = `screen and (${h.type}:${h.value}px)`, b.innerHTML = `${f} { ${$n(h.style)} }`, s == null || s.appendChild(b);
3423
3517
  });
3424
3518
  });
3425
3519
  });
@@ -3446,12 +3540,12 @@ class mv {
3446
3540
  }), this.connectStore();
3447
3541
  }
3448
3542
  connectStore() {
3449
- const s = n.collectSpecialProps(r.props, (f) => !!it(f)), c = n.collectSpecialProps(
3543
+ const s = n.collectSpecialProps(r.props, (f) => !!ct(f)), c = n.collectSpecialProps(
3450
3544
  {
3451
3545
  css: r.value.css,
3452
3546
  class: r.value.classNames
3453
3547
  },
3454
- (f) => !!it(f)
3548
+ (f) => !!ct(f)
3455
3549
  ), u = [...s, ...c].map((f) => {
3456
3550
  const d = f.val, y = /\$\$context.stateManager\.(.+?)\./gim.exec(d.value);
3457
3551
  return y != null && y.length ? y[1] : "";
@@ -3480,7 +3574,7 @@ class mv {
3480
3574
  this.storeListenDisposeLint.forEach((c) => c()), this.removeMediaCSS(), (s = n.onComponentDestroy) == null || s.call(n, this, r);
3481
3575
  }
3482
3576
  render() {
3483
- var mt, C, It;
3577
+ var yt;
3484
3578
  const { $$context: s, ...c } = this.props, u = {
3485
3579
  key: r.id,
3486
3580
  ...r.props,
@@ -3495,56 +3589,56 @@ class mv {
3495
3589
  let d = [];
3496
3590
  if (f && f.open) {
3497
3591
  this.targetComponentRef.current = [];
3498
- let I = f.data || [];
3499
- if (it(f.data)) {
3500
- const Z = f.data;
3501
- I = gt(Z.value, p || {});
3592
+ let j = f.data || [];
3593
+ if (ct(f.data)) {
3594
+ const J = f.data;
3595
+ j = gt(J.value, p || {});
3502
3596
  }
3503
- return d = I.map((...Z) => {
3504
- var Ar, Mr;
3505
- const Lt = Z[1], yt = [f.forName || "item", f.forIndex || "index"], Se = $n(Z, yt);
3506
- let Oe = "loopData";
3507
- f.name && (Oe = `${Oe}${f.name}`);
3508
- const Ft = n.getContext(
3597
+ return d = j.map((...J) => {
3598
+ var Tr;
3599
+ const q = J[1], at = [f.forName || "item", f.forIndex || "index"], Se = xn(J, at);
3600
+ let we = "loopData";
3601
+ f.name && (we = `${we}${f.name}`);
3602
+ const It = n.getContext(
3509
3603
  {
3510
- [Oe]: Se,
3604
+ [we]: Se,
3511
3605
  staticState: this.staticState
3512
3606
  },
3513
3607
  p
3514
- ), q = n.transformProps(u, {
3515
- $$context: Ft
3516
- }), Ko = ((Ar = r.value.classNames) == null ? void 0 : Ar.map((H) => {
3517
- var ae;
3518
- const oe = H.name;
3519
- return (it(H.status) ? gt(String(((ae = H.status) == null ? void 0 : ae.value) || ""), Ft) : !1) ? oe : "";
3608
+ ), Q = n.transformProps(u, {
3609
+ $$context: It
3610
+ }), qo = ((Tr = r.value.classNames) == null ? void 0 : Tr.map((G) => {
3611
+ var ne;
3612
+ const re = G.name;
3613
+ return (ct(G.status) ? gt(String(((ne = G.status) == null ? void 0 : ne.value) || ""), It) : !1) ? re : "";
3520
3614
  })) || [];
3521
- let Ce = `${(Mr = q.className) != null ? Mr : ""} ${Ko.join(" ")}`.trim();
3522
- r.value.css && (Ce = `${r.value.css.class} ${Ce}`.trim()), q.className = Ce;
3523
- const Zo = n.transformProps(r.value.style, {
3524
- $$context: Ft
3615
+ let Oe = `${Q.className ?? ""} ${qo.join(" ")}`.trim();
3616
+ r.value.css && (Oe = `${r.value.css.class} ${Oe}`.trim()), Q.className = Oe;
3617
+ const Qo = n.transformProps(r.value.style, {
3618
+ $$context: It
3525
3619
  });
3526
- r.value.style && (q.style = Tn(Zo || {}));
3527
- const { children: ne } = q;
3528
- let Ee = [];
3529
- if (ne !== void 0)
3530
- delete q.children, Ee = Array.isArray(ne) ? ne : [ne];
3620
+ r.value.style && (Q.style = Nn(Qo || {}));
3621
+ const { children: ee } = Q;
3622
+ let Ce = [];
3623
+ if (ee !== void 0)
3624
+ delete Q.children, Ce = Array.isArray(ee) ? ee : [ee];
3531
3625
  else {
3532
- const H = [];
3533
- r.value.children.forEach((Pr, ae) => {
3534
- const ta = n.buildComponent(Pr, {
3535
- $$context: Ft,
3536
- idx: ae
3626
+ const G = [];
3627
+ r.value.children.forEach((Ar, ne) => {
3628
+ const Yo = n.buildComponent(Ar, {
3629
+ $$context: It,
3630
+ idx: ne
3537
3631
  });
3538
- H.push(ta);
3539
- }), Ee = H;
3632
+ G.push(Yo);
3633
+ }), Ce = G;
3540
3634
  }
3541
- if (q.key = `${q.key}-${Lt}`, it(f.key)) {
3542
- const H = f.key, oe = gt(H.value, Ft || {});
3543
- q.key += `-${oe}`;
3635
+ if (Q.key = `${Q.key}-${q}`, ct(f.key)) {
3636
+ const G = f.key, re = gt(G.value, It || {});
3637
+ Q.key += `-${re}`;
3544
3638
  }
3545
- return q.ref = (H) => {
3546
- this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[Lt] = H;
3547
- }, n.render(e, q, ...Ee);
3639
+ return Q.ref = (G) => {
3640
+ this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[q] = G;
3641
+ }, n.render(e, Q, ...Ce);
3548
3642
  }), d;
3549
3643
  }
3550
3644
  const h = n.transformProps(u, {
@@ -3554,53 +3648,54 @@ class mv {
3554
3648
  if (y !== void 0)
3555
3649
  delete h.children, b = Array.isArray(y) ? y : [y];
3556
3650
  else {
3557
- const I = [];
3558
- r.value.children.forEach((Lt, yt) => {
3559
- const Se = n.buildComponent(Lt, {
3651
+ const j = [];
3652
+ r.value.children.forEach((q, at) => {
3653
+ const Se = n.buildComponent(q, {
3560
3654
  $$context: p,
3561
- idx: yt
3655
+ idx: at
3562
3656
  });
3563
- I.push(Se);
3564
- }), b = I;
3657
+ j.push(Se);
3658
+ }), b = j;
3565
3659
  }
3566
3660
  h.ref = this.targetComponentRef;
3567
- const j = ((mt = r.value.classNames) == null ? void 0 : mt.map((I) => {
3568
- var yt;
3569
- const Z = I.name;
3570
- return (it(I.status) ? gt(((yt = I.status) == null ? void 0 : yt.value) || "", p) : !1) ? Z : "";
3661
+ const S = ((yt = r.value.classNames) == null ? void 0 : yt.map((j) => {
3662
+ var at;
3663
+ const J = j.name;
3664
+ return (ct(j.status) ? gt(((at = j.status) == null ? void 0 : at.value) || "", p) : !1) ? J : "";
3571
3665
  })) || [];
3572
- let O = `${(C = h.className) != null ? C : ""} ${j.join(" ")}`.trim();
3573
- r.value.css && (O = `${r.value.css.class} ${O}`.trim()), h.className = O;
3666
+ let C = `${h.className ?? ""} ${S.join(" ")}`.trim();
3667
+ r.value.css && (C = `${r.value.css.class} ${C}`.trim()), h.className = C;
3574
3668
  const P = n.transformProps(r.value.style, {
3575
3669
  $$context: p
3576
3670
  });
3577
- r.value.style && (h.style = Tn(P || {}));
3578
- let $ = (It = r.value.condition) != null ? It : !0;
3671
+ r.value.style && (h.style = Nn(P || {}));
3672
+ let $ = r.value.condition ?? !0;
3579
3673
  typeof $ != "boolean" && ($ = gt($.value, p || {}));
3580
- let D = {
3674
+ let R = {
3581
3675
  condition: $,
3582
3676
  props: h
3583
3677
  };
3584
- n.processNodeConfigHook && (D = n.processNodeConfigHook(D, r));
3585
- const G = n.render(e, D.props, ...b);
3586
- return this._CONDITION = D.condition, D.condition ? G : w.createElement(
3678
+ n.processNodeConfigHook && (R = n.processNodeConfigHook(R, r));
3679
+ const z = n.render(e, R.props, ...b);
3680
+ return this._CONDITION = R.condition, R.condition ? z : w.createElement(
3587
3681
  "div",
3588
3682
  {
3589
3683
  style: {
3590
3684
  display: "none"
3591
3685
  }
3592
3686
  },
3593
- G
3687
+ z
3594
3688
  );
3595
3689
  }
3596
3690
  }
3597
- return g(o, "__CP_TYPE__", ie), o.displayName = `${r.value.componentName}Dynamic`, o;
3691
+ return g(o, "__CP_TYPE__", ae), o.displayName = `${r.value.componentName}Dynamic`, o;
3598
3692
  }
3693
+ // 递归建页面组件结构
3599
3694
  buildComponent(e, {
3600
3695
  $$context: r = {}
3601
3696
  }) {
3602
3697
  const n = this.runtimeComponentCache;
3603
- return typeof e == "string" ? this.render(e) : $f(e) ? (({ currentNode: a }) => {
3698
+ return typeof e == "string" ? this.render(e) : Cf(e) ? (({ currentNode: a }) => {
3604
3699
  const i = a.value.id;
3605
3700
  let s = null;
3606
3701
  if (n.get(i))
@@ -3610,7 +3705,7 @@ class mv {
3610
3705
  s = this.convertModelToComponent(l, a);
3611
3706
  }
3612
3707
  !n.get(i) && this.renderMode !== "design" && n.set(i, s);
3613
- const c = `${i}-${ie}`, u = {
3708
+ const c = `${i}-${ae}`, u = {
3614
3709
  $$context: r,
3615
3710
  $$nodeModel: e,
3616
3711
  key: c
@@ -3620,16 +3715,17 @@ class mv {
3620
3715
  currentNode: e
3621
3716
  }) : void 0;
3622
3717
  }
3718
+ // 真实渲染
3623
3719
  render(e, r = {}, ...n) {
3624
- return typeof e == "string" || typeof e == "number" ? String(e) : (pv.forEach((a) => {
3625
- a in r && e.__CP_TYPE__ !== ie && delete r[a];
3720
+ return typeof e == "string" || typeof e == "number" ? String(e) : (cv.forEach((a) => {
3721
+ a in r && e.__CP_TYPE__ !== ae && delete r[a];
3626
3722
  }), w.createElement(e, r, ...n));
3627
3723
  }
3628
3724
  clear() {
3629
3725
  this.runtimeComponentCache.clear(), this.storeManager.destroy();
3630
3726
  }
3631
3727
  }
3632
- const Lv = la(new mv()), yv = [
3728
+ const Rv = sa(new pv()), dv = [
3633
3729
  "a",
3634
3730
  "abbr",
3635
3731
  "acronym",
@@ -3784,7 +3880,7 @@ const Lv = la(new mv()), yv = [
3784
3880
  return t.forEach((r) => {
3785
3881
  e[r.key] = r.value;
3786
3882
  }), e;
3787
- }, gv = [...yv, ...df], bv = gv.reduce((t, e) => (t[e] = ({
3883
+ }, hv = [...dv, ...uf], vv = hv.reduce((t, e) => (t[e] = ({
3788
3884
  children: r,
3789
3885
  $$attributes: n = [],
3790
3886
  ...o
@@ -3794,7 +3890,7 @@ const Lv = la(new mv()), yv = [
3794
3890
  ...o,
3795
3891
  ...ot(n)
3796
3892
  }, ...a);
3797
- }, t), {}), _v = ({
3893
+ }, t), {}), mv = ({
3798
3894
  children: t,
3799
3895
  width: e,
3800
3896
  height: r,
@@ -3817,7 +3913,7 @@ const Lv = la(new mv()), yv = [
3817
3913
  ...s,
3818
3914
  style: c
3819
3915
  }, ...a);
3820
- }, jv = ({
3916
+ }, yv = ({
3821
3917
  children: t,
3822
3918
  $$attributes: e = [],
3823
3919
  ...r
@@ -3827,7 +3923,7 @@ const Lv = la(new mv()), yv = [
3827
3923
  ...r,
3828
3924
  ...ot(e)
3829
3925
  }, ...n);
3830
- }, wv = ({
3926
+ }, gv = ({
3831
3927
  children: t,
3832
3928
  $$attributes: e = [],
3833
3929
  ...r
@@ -3837,7 +3933,7 @@ const Lv = la(new mv()), yv = [
3837
3933
  ...r,
3838
3934
  ...ot(e)
3839
3935
  }, ...n);
3840
- }, Sv = ({
3936
+ }, bv = ({
3841
3937
  children: t,
3842
3938
  $$attributes: e = [],
3843
3939
  ...r
@@ -3847,7 +3943,7 @@ const Lv = la(new mv()), yv = [
3847
3943
  ...r,
3848
3944
  ...ot(e)
3849
3945
  }, ...n);
3850
- }, Ov = ({
3946
+ }, _v = ({
3851
3947
  children: t,
3852
3948
  $$attributes: e = [],
3853
3949
  ...r
@@ -3857,7 +3953,7 @@ const Lv = la(new mv()), yv = [
3857
3953
  ...r,
3858
3954
  ...ot(e)
3859
3955
  }, ...n);
3860
- }, Cv = ({
3956
+ }, jv = ({
3861
3957
  children: t,
3862
3958
  $$attributes: e = [],
3863
3959
  content: r,
@@ -3865,7 +3961,7 @@ const Lv = la(new mv()), yv = [
3865
3961
  }) => w.createElement("span", {
3866
3962
  ...n,
3867
3963
  ...ot(e)
3868
- }, r), Ev = ({
3964
+ }, r), Sv = ({
3869
3965
  children: t,
3870
3966
  $$attributes: e = [],
3871
3967
  afterMount: r,
@@ -3873,13 +3969,13 @@ const Lv = la(new mv()), yv = [
3873
3969
  ...o
3874
3970
  }) => {
3875
3971
  let a = t;
3876
- return Array.isArray(t) || (a = [t]), aa(() => (r == null || r(o), () => {
3972
+ return Array.isArray(t) || (a = [t]), ea(() => (r == null || r(o), () => {
3877
3973
  n == null || n(o);
3878
3974
  }), []), w.createElement("div", {
3879
3975
  ...o,
3880
3976
  ...ot(e)
3881
3977
  }, ...a);
3882
- }, xv = ({
3978
+ }, wv = ({
3883
3979
  children: t,
3884
3980
  $$attributes: e = [],
3885
3981
  htmlTag: r = "div",
@@ -3890,21 +3986,21 @@ const Lv = la(new mv()), yv = [
3890
3986
  ...n,
3891
3987
  ...ot(e)
3892
3988
  }, ...o);
3893
- }, Nv = {
3989
+ }, Ov = {
3894
3990
  RootContainer: ({
3895
3991
  children: t
3896
3992
  }) => t,
3897
- ...bv,
3898
- CContainer: Ev,
3899
- CVideo: Sv,
3900
- CAudio: Ov,
3901
- CBlock: _v,
3902
- CImage: wv,
3903
- CText: Cv,
3904
- CCanvas: jv,
3905
- CNativeTag: xv
3993
+ ...vv,
3994
+ CContainer: Sv,
3995
+ CVideo: bv,
3996
+ CAudio: _v,
3997
+ CBlock: mv,
3998
+ CImage: gv,
3999
+ CText: jv,
4000
+ CCanvas: yv,
4001
+ CNativeTag: wv
3906
4002
  };
3907
- class $v {
4003
+ class Cv {
3908
4004
  constructor() {
3909
4005
  g(this, "refMap", /* @__PURE__ */ new Map());
3910
4006
  }
@@ -3921,10 +4017,11 @@ class $v {
3921
4017
  this.refMap.clear();
3922
4018
  }
3923
4019
  }
3924
- class Tv extends w.Component {
4020
+ class Ev extends w.Component {
3925
4021
  constructor(r) {
3926
4022
  super(r);
3927
4023
  g(this, "refManager");
4024
+ // save component instance
3928
4025
  g(this, "dynamicComponentInstanceMap", /* @__PURE__ */ new Map());
3929
4026
  g(this, "onGetRef", (r, n, o) => {
3930
4027
  var a, i;
@@ -3935,18 +4032,18 @@ class Tv extends w.Component {
3935
4032
  this.setState({
3936
4033
  pageModel: r
3937
4034
  });
3938
- else if (Et(r) && wo(r)) {
4035
+ else if (Et(r) && bo(r)) {
3939
4036
  const n = r;
3940
4037
  this.setState({
3941
- pageModel: new fe(n, {
4038
+ pageModel: new ue(n, {
3942
4039
  materials: this.state.pageModel.materialsModel.rawValue
3943
4040
  })
3944
4041
  });
3945
4042
  }
3946
4043
  });
3947
4044
  this.state = {
3948
- pageModel: r.pageModel || new fe(r.page)
3949
- }, this.refManager = new $v();
4045
+ pageModel: r.pageModel || new ue(r.page)
4046
+ }, this.refManager = new Cv();
3950
4047
  }
3951
4048
  getPageModel() {
3952
4049
  return this.state.pageModel;
@@ -3963,7 +4060,7 @@ class Tv extends w.Component {
3963
4060
  if (!s)
3964
4061
  return console.warn("pageModel is null"), null;
3965
4062
  const c = {
3966
- ...Nv,
4063
+ ...Ov,
3967
4064
  ...r.components
3968
4065
  };
3969
4066
  return n.pageRender(s, {
@@ -3981,8 +4078,8 @@ class Tv extends w.Component {
3981
4078
  });
3982
4079
  }
3983
4080
  }
3984
- const Fv = () => {
3985
- const t = Dn(null);
4081
+ const Dv = () => {
4082
+ const t = An(null);
3986
4083
  return {
3987
4084
  ref: t,
3988
4085
  rerender: function(...e) {
@@ -3990,7 +4087,7 @@ const Fv = () => {
3990
4087
  }
3991
4088
  };
3992
4089
  };
3993
- class Av extends w.Component {
4090
+ class xv extends w.Component {
3994
4091
  constructor(r) {
3995
4092
  super(r);
3996
4093
  g(this, "onDoubleClick", () => {
@@ -4025,9 +4122,9 @@ class Av extends w.Component {
4025
4122
  },
4026
4123
  "Render error, node id: ",
4027
4124
  n.id,
4028
- ", node name\uFF1A",
4125
+ ", node name",
4029
4126
  n.title,
4030
- " component name\uFF1A",
4127
+ " component name",
4031
4128
  n.title || n.componentName,
4032
4129
  w.createElement("p", null, "msg: ", String(this.state.error)),
4033
4130
  w.createElement(
@@ -4057,7 +4154,7 @@ class Av extends w.Component {
4057
4154
  return this.props.children;
4058
4155
  }
4059
4156
  }
4060
- class Mv {
4157
+ class Nv {
4061
4158
  constructor() {
4062
4159
  g(this, "instanceMap", /* @__PURE__ */ new Map());
4063
4160
  }
@@ -4080,8 +4177,8 @@ class Mv {
4080
4177
  this.instanceMap.clear();
4081
4178
  }
4082
4179
  }
4083
- const Pv = (t) => {
4084
- const { node: e } = t, r = sa(() => {
4180
+ const $v = (t) => {
4181
+ const { node: e } = t, r = ra(() => {
4085
4182
  var c, u;
4086
4183
  const s = (u = (c = e.material) == null ? void 0 : c.value) == null ? void 0 : u.isContainer;
4087
4184
  return Et(s) ? s : {
@@ -4114,12 +4211,12 @@ const Pv = (t) => {
4114
4211
  n
4115
4212
  );
4116
4213
  };
4117
- class Bv extends w.Component {
4214
+ class Iv extends w.Component {
4118
4215
  constructor(r) {
4119
4216
  super(r);
4120
- g(this, "instanceManager", new Mv());
4217
+ g(this, "instanceManager", new Nv());
4121
4218
  g(this, "renderRef");
4122
- g(this, "dropPlaceholder", Pv);
4219
+ g(this, "dropPlaceholder", $v);
4123
4220
  g(this, "onGetComponent", (r, n) => {
4124
4221
  const o = this;
4125
4222
  class a extends w.Component {
@@ -4128,7 +4225,7 @@ class Bv extends w.Component {
4128
4225
  g(this, "_DESIGN_BOX", !0);
4129
4226
  g(this, "_NODE_MODEL", n);
4130
4227
  g(this, "_NODE_ID", n.id);
4131
- g(this, "_UNIQUE_ID", `${n.id}_${K()}`);
4228
+ g(this, "_UNIQUE_ID", `${n.id}_${Z()}`);
4132
4229
  g(this, "_STATUS");
4133
4230
  }
4134
4231
  componentDidMount() {
@@ -4141,7 +4238,7 @@ class Bv extends w.Component {
4141
4238
  var d;
4142
4239
  const { children: c = [], onlyRenderChild: u, ...l } = this.props;
4143
4240
  let p = c;
4144
- return Ct(c) || (p = [c]), !Boolean(p.filter(Boolean).length) && (((d = n.material) == null ? void 0 : d.value.isContainer) || n.value.componentName === At.ROOT_CONTAINER) && p.push(
4241
+ return Ct(c) || (p = [c]), !!!p.filter(Boolean).length && ((d = n.material) != null && d.value.isContainer || n.value.componentName === At.ROOT_CONTAINER) && p.push(
4145
4242
  w.createElement(o.dropPlaceholder, {
4146
4243
  node: n
4147
4244
  })
@@ -4150,7 +4247,7 @@ class Bv extends w.Component {
4150
4247
  }
4151
4248
  return w.forwardRef(function(s, c) {
4152
4249
  return w.createElement(
4153
- Av,
4250
+ xv,
4154
4251
  {
4155
4252
  node: n,
4156
4253
  targetComponent: a
@@ -4181,10 +4278,10 @@ class Bv extends w.Component {
4181
4278
  return n !== void 0 && (o = o.filter((a) => n === (a == null ? void 0 : a._UNIQUE_ID))), o;
4182
4279
  }
4183
4280
  getInstanceByDom(r) {
4184
- const n = Qo(r);
4281
+ const n = Wo(r);
4185
4282
  if (!n)
4186
4283
  return null;
4187
- const o = Yo(n);
4284
+ const o = Jo(n);
4188
4285
  return (o == null ? void 0 : o.stateNode) || null;
4189
4286
  }
4190
4287
  getDomsById(r, n) {
@@ -4192,7 +4289,7 @@ class Bv extends w.Component {
4192
4289
  return o == null || o.forEach((i) => {
4193
4290
  if ((i == null ? void 0 : i._STATUS) === "DESTROY")
4194
4291
  return;
4195
- const s = ia.findDOMNode(i);
4292
+ const s = na.findDOMNode(i);
4196
4293
  if (s && !(s instanceof Text))
4197
4294
  if (n) {
4198
4295
  const c = Array.from(s.querySelectorAll(n));
@@ -4206,9 +4303,10 @@ class Bv extends w.Component {
4206
4303
  }
4207
4304
  render() {
4208
4305
  const { props: r, onGetComponent: n } = this, { render: o, ...a } = r;
4209
- return o && (o.ref.current = this), w.createElement(Tv, {
4306
+ return o && (o.ref.current = this), w.createElement(Ev, {
4210
4307
  onGetComponent: n,
4211
4308
  ...a,
4309
+ // 拦截特殊属性配置, 配合开发模式使用
4212
4310
  processNodeConfigHook: (i, s) => {
4213
4311
  var h, y;
4214
4312
  if (s.nodeType !== "NODE")
@@ -4232,24 +4330,25 @@ class Bv extends w.Component {
4232
4330
  }
4233
4331
  let d = u;
4234
4332
  return p.condition === !1 && (d = p.condition), {
4235
- props: iv(l, p.props || {}),
4333
+ props: nv(l, p.props || {}),
4236
4334
  condition: d
4237
4335
  };
4238
4336
  },
4337
+ // renderMode: 'design',
4239
4338
  ref: this.renderRef
4240
4339
  });
4241
4340
  }
4242
4341
  }
4243
- const Qo = (t) => {
4342
+ const Wo = (t) => {
4244
4343
  if (!t)
4245
4344
  return null;
4246
4345
  const e = Object.keys(t).find((r) => r.startsWith("__reactInternalInstance$") || r.startsWith("__reactFiber$")) || "";
4247
- return e ? t[e] : Qo(t.parentElement);
4248
- }, Yo = (t) => {
4346
+ return e ? t[e] : Wo(t.parentElement);
4347
+ }, Jo = (t) => {
4249
4348
  var e;
4250
- return t ? (e = t == null ? void 0 : t.stateNode) != null && e._DESIGN_BOX ? t : Yo(t.return) : null;
4251
- }, Uv = () => {
4252
- const t = Dn(null);
4349
+ return t ? (e = t == null ? void 0 : t.stateNode) != null && e._DESIGN_BOX ? t : Jo(t.return) : null;
4350
+ }, Lv = () => {
4351
+ const t = An(null);
4253
4352
  return {
4254
4353
  ref: t,
4255
4354
  rerender: function(...e) {
@@ -4273,28 +4372,35 @@ const Qo = (t) => {
4273
4372
  }
4274
4373
  };
4275
4374
  };
4276
- var Dv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Xo = { exports: {} };
4375
+ var Tv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, fe = {}, Av = {
4376
+ get exports() {
4377
+ return fe;
4378
+ },
4379
+ set exports(t) {
4380
+ fe = t;
4381
+ }
4382
+ };
4277
4383
  (function(t, e) {
4278
4384
  (function(r, n) {
4279
4385
  t.exports = n();
4280
- })(Dv, function() {
4386
+ })(Tv, function() {
4281
4387
  var r = function() {
4282
4388
  }, n = {}, o = {}, a = {};
4283
4389
  function i(f, d) {
4284
4390
  f = f.push ? f : [f];
4285
- var h = [], y = f.length, b = y, j, O, P, $;
4286
- for (j = function(D, G) {
4287
- G.length && h.push(D), b--, b || d(h);
4391
+ var h = [], y = f.length, b = y, S, C, P, $;
4392
+ for (S = function(R, z) {
4393
+ z.length && h.push(R), b--, b || d(h);
4288
4394
  }; y--; ) {
4289
- if (O = f[y], P = o[O], P) {
4290
- j(O, P);
4395
+ if (C = f[y], P = o[C], P) {
4396
+ S(C, P);
4291
4397
  continue;
4292
4398
  }
4293
- $ = a[O] = a[O] || [], $.push(j);
4399
+ $ = a[C] = a[C] || [], $.push(S);
4294
4400
  }
4295
4401
  }
4296
4402
  function s(f, d) {
4297
- if (!!f) {
4403
+ if (f) {
4298
4404
  var h = a[f];
4299
4405
  if (o[f] = d, !!h)
4300
4406
  for (; h.length; )
@@ -4305,45 +4411,45 @@ var Dv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4305
4411
  f.call && (f = { success: f }), d.length ? (f.error || r)(d) : (f.success || r)(f);
4306
4412
  }
4307
4413
  function u(f, d, h, y) {
4308
- var b = document, j = h.async, O = (h.numRetries || 0) + 1, P = h.before || r, $ = f.replace(/[\?|#].*$/, ""), D = f.replace(/^(css|img|module|nomodule)!/, ""), G, mt, C;
4414
+ var b = document, S = h.async, C = (h.numRetries || 0) + 1, P = h.before || r, $ = f.replace(/[\?|#].*$/, ""), R = f.replace(/^(css|img|module|nomodule)!/, ""), z, yt, j;
4309
4415
  if (y = y || 0, /(^css!|\.css$)/.test($))
4310
- C = b.createElement("link"), C.rel = "stylesheet", C.href = D, G = "hideFocus" in C, G && C.relList && (G = 0, C.rel = "preload", C.as = "style");
4416
+ j = b.createElement("link"), j.rel = "stylesheet", j.href = R, z = "hideFocus" in j, z && j.relList && (z = 0, j.rel = "preload", j.as = "style");
4311
4417
  else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test($))
4312
- C = b.createElement("img"), C.src = D;
4313
- else if (C = b.createElement("script"), C.src = D, C.async = j === void 0 ? !0 : j, mt = "noModule" in C, /^module!/.test($)) {
4314
- if (!mt)
4418
+ j = b.createElement("img"), j.src = R;
4419
+ else if (j = b.createElement("script"), j.src = R, j.async = S === void 0 ? !0 : S, yt = "noModule" in j, /^module!/.test($)) {
4420
+ if (!yt)
4315
4421
  return d(f, "l");
4316
- C.type = "module";
4317
- } else if (/^nomodule!/.test($) && mt)
4422
+ j.type = "module";
4423
+ } else if (/^nomodule!/.test($) && yt)
4318
4424
  return d(f, "l");
4319
- C.onload = C.onerror = C.onbeforeload = function(It) {
4320
- var I = It.type[0];
4321
- if (G)
4425
+ j.onload = j.onerror = j.onbeforeload = function(J) {
4426
+ var q = J.type[0];
4427
+ if (z)
4322
4428
  try {
4323
- C.sheet.cssText.length || (I = "e");
4324
- } catch (Z) {
4325
- Z.code != 18 && (I = "e");
4429
+ j.sheet.cssText.length || (q = "e");
4430
+ } catch (at) {
4431
+ at.code != 18 && (q = "e");
4326
4432
  }
4327
- if (I == "e") {
4328
- if (y += 1, y < O)
4433
+ if (q == "e") {
4434
+ if (y += 1, y < C)
4329
4435
  return u(f, d, h, y);
4330
- } else if (C.rel == "preload" && C.as == "style")
4331
- return C.rel = "stylesheet";
4332
- d(f, I, It.defaultPrevented);
4333
- }, P(f, C) !== !1 && b.head.appendChild(C);
4436
+ } else if (j.rel == "preload" && j.as == "style")
4437
+ return j.rel = "stylesheet";
4438
+ d(f, q, J.defaultPrevented);
4439
+ }, P(f, j) !== !1 && b.head.appendChild(j);
4334
4440
  }
4335
4441
  function l(f, d, h) {
4336
4442
  f = f.push ? f : [f];
4337
- var y = f.length, b = y, j = [], O, P;
4338
- for (O = function($, D, G) {
4339
- if (D == "e" && j.push($), D == "b")
4340
- if (G)
4341
- j.push($);
4443
+ var y = f.length, b = y, S = [], C, P;
4444
+ for (C = function($, R, z) {
4445
+ if (R == "e" && S.push($), R == "b")
4446
+ if (z)
4447
+ S.push($);
4342
4448
  else
4343
4449
  return;
4344
- y--, y || d(j);
4450
+ y--, y || d(S);
4345
4451
  }, P = 0; P < b; P++)
4346
- u(f[P], O, h);
4452
+ u(f[P], C, h);
4347
4453
  }
4348
4454
  function p(f, d, h) {
4349
4455
  var y, b;
@@ -4352,14 +4458,14 @@ var Dv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4352
4458
  throw "LoadJS";
4353
4459
  n[y] = !0;
4354
4460
  }
4355
- function j(O, P) {
4461
+ function S(C, P) {
4356
4462
  l(f, function($) {
4357
- c(b, $), O && c({ success: O, error: P }, $), s(y, $);
4463
+ c(b, $), C && c({ success: C, error: P }, $), s(y, $);
4358
4464
  }, b);
4359
4465
  }
4360
4466
  if (b.returnPromise)
4361
- return new Promise(j);
4362
- j();
4467
+ return new Promise(S);
4468
+ S();
4363
4469
  }
4364
4470
  return p.ready = function(d, h) {
4365
4471
  return i(d, function(y) {
@@ -4373,9 +4479,8 @@ var Dv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4373
4479
  return d in n;
4374
4480
  }, p;
4375
4481
  });
4376
- })(Xo);
4377
- const Pn = Xo.exports;
4378
- class kv {
4482
+ })(Av);
4483
+ class Fv {
4379
4484
  constructor(e, r) {
4380
4485
  g(this, "assets");
4381
4486
  g(this, "loadStatus");
@@ -4388,9 +4493,9 @@ class kv {
4388
4493
  const e = this.assets || [], r = [];
4389
4494
  for (let n = 0; n < e.length; n++) {
4390
4495
  const o = e[n];
4391
- o.id || (o.id = K()), r.push(o.id);
4496
+ o.id || (o.id = Z()), r.push(o.id);
4392
4497
  const a = o.resources.map((i) => i.src);
4393
- Pn(a, o.id, {
4498
+ fe(a, o.id, {
4394
4499
  async: !1,
4395
4500
  before: (i, s) => (this.win.document.body.appendChild(s), !1)
4396
4501
  });
@@ -4400,7 +4505,7 @@ class kv {
4400
4505
  return;
4401
4506
  }
4402
4507
  return setTimeout(() => {
4403
- Pn.ready(r, {
4508
+ fe.ready(r, {
4404
4509
  success: () => {
4405
4510
  this._onSuccessList.forEach((n) => n());
4406
4511
  },
@@ -4418,15 +4523,15 @@ class kv {
4418
4523
  }
4419
4524
  }
4420
4525
  export {
4421
- kv as AssetLoader,
4422
- Mv as ComponentInstanceManager,
4423
- Pv as DefaultDropPlaceholder,
4424
- mv as DefineReactAdapter,
4425
- Bv as DesignRender,
4426
- Lv as ReactAdapter,
4427
- Tv as Render,
4428
- la as getAdapter,
4429
- Uv as useDesignRender,
4430
- Fv as useRender
4526
+ Fv as AssetLoader,
4527
+ Nv as ComponentInstanceManager,
4528
+ $v as DefaultDropPlaceholder,
4529
+ pv as DefineReactAdapter,
4530
+ Iv as DesignRender,
4531
+ Rv as ReactAdapter,
4532
+ Ev as Render,
4533
+ sa as getAdapter,
4534
+ Lv as useDesignRender,
4535
+ Dv as useRender
4431
4536
  };
4432
4537
  //# sourceMappingURL=index.es.js.map