x-prop-tree 0.5.7 → 0.5.9

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.
Files changed (26) hide show
  1. package/dist/components/propTree/composables/common.d.ts +4 -0
  2. package/dist/components/propTree/composables/uiColorPicker.d.ts +7 -0
  3. package/dist/components/propTree/composables/uiCompSelect.d.ts +7 -0
  4. package/dist/components/propTree/composables/uiDummy.d.ts +7 -0
  5. package/dist/components/propTree/composables/uiMultiTypes.d.ts +7 -0
  6. package/dist/components/propTree/composables/uiNumInput.d.ts +7 -0
  7. package/dist/components/propTree/composables/uiProp.d.ts +8 -0
  8. package/dist/components/propTree/composables/uiSelect.d.ts +7 -0
  9. package/dist/components/propTree/composables/uiStrInput.d.ts +7 -0
  10. package/dist/components/propTree/composables/uiSwitch.d.ts +7 -0
  11. package/dist/components/propTree/utils/propState.d.ts +3 -1
  12. package/dist/{i18n-en-g17k76yy.js → i18n-en-eyioipy9.js} +1 -1
  13. package/dist/{i18n-zhHans-f1nv26or.js → i18n-zhHans-mtvnapj8.js} +1 -1
  14. package/dist/index.js +1009 -977
  15. package/package.json +1 -1
  16. package/dist/components/propTree/utils/index.d.ts +0 -2
  17. /package/dist/components/propTree/{entry.vue.d.ts → components/common/entry.vue.d.ts} +0 -0
  18. /package/dist/components/propTree/{menu.vue.d.ts → components/common/menu.vue.d.ts} +0 -0
  19. /package/dist/components/propTree/{title.vue.d.ts → components/common/title.vue.d.ts} +0 -0
  20. /package/dist/components/propTree/{values → components/values}/colorPicker.vue.d.ts +0 -0
  21. /package/dist/components/propTree/{values → components/values}/compSelect.vue.d.ts +0 -0
  22. /package/dist/components/propTree/{values → components/values}/multiTypes.vue.d.ts +0 -0
  23. /package/dist/components/propTree/{values → components/values}/numInput.vue.d.ts +0 -0
  24. /package/dist/components/propTree/{values → components/values}/select.vue.d.ts +0 -0
  25. /package/dist/components/propTree/{values → components/values}/strInput.vue.d.ts +0 -0
  26. /package/dist/components/propTree/{values → components/values}/switch.vue.d.ts +0 -0
package/dist/index.js CHANGED
@@ -1,50 +1,50 @@
1
- import { defineComponent as H, ref as R, computed as Y, resolveDirective as fe, withDirectives as k, openBlock as C, createElementBlock as W, normalizeStyle as Ie, withModifiers as j, renderSlot as Tn, resolveComponent as P, createBlock as U, unref as N, isRef as xt, withCtx as K, createVNode as M, Fragment as Nt, renderList as $n, createTextVNode as Je, toDisplayString as xe, createElementVNode as Ee, createCommentVNode as Z, mergeModels as F, useModel as de, mergeProps as Ft, watch as qe, watchEffect as bn, reactive as An, h as _ } from "vue";
2
- import { useI18n as Qe } from "vue-i18n";
3
- import { useColor as ke, eventBus as Bt, useViewStack as Rt } from "x-essential-lib";
4
- import { getPropDefault as L, parsePixelStr as wn, parsePercentStr as Sn } from "x-runtime-lib";
5
- var Ht = typeof global == "object" && global && global.Object === Object && global, Pn = typeof self == "object" && self && self.Object === Object && self, G = Ht || Pn || Function("return this")(), J = G.Symbol, jt = Object.prototype, On = jt.hasOwnProperty, Cn = jt.toString, me = J ? J.toStringTag : void 0;
6
- function Vn(e) {
7
- var t = On.call(e, me), n = e[me];
1
+ import { defineComponent as H, ref as R, computed as X, resolveComponent as P, openBlock as O, createBlock as L, unref as N, isRef as xt, withCtx as K, createVNode as M, createElementBlock as Z, Fragment as Nt, renderList as Tn, createTextVNode as Je, toDisplayString as Ne, resolveDirective as ue, withDirectives as ee, normalizeStyle as Qe, withModifiers as j, createElementVNode as De, createCommentVNode as Y, renderSlot as $n, h as g, mergeModels as F, useModel as ce, mergeProps as Ft, watch as Ke, watchEffect as bn, reactive as An } from "vue";
2
+ import { useI18n as $e } from "vue-i18n";
3
+ import { useViewStack as Bt, useColor as ke, eventBus as Rt } from "x-essential-lib";
4
+ import { getPropDefault as E, parsePixelStr as wn, parsePercentStr as Sn } from "x-runtime-lib";
5
+ var Ht = typeof global == "object" && global && global.Object === Object && global, Pn = typeof self == "object" && self && self.Object === Object && self, G = Ht || Pn || Function("return this")(), J = G.Symbol, jt = Object.prototype, On = jt.hasOwnProperty, Cn = jt.toString, ve = J ? J.toStringTag : void 0;
6
+ function Un(e) {
7
+ var t = On.call(e, ve), n = e[ve];
8
8
  try {
9
- e[me] = void 0;
9
+ e[ve] = void 0;
10
10
  var r = !0;
11
11
  } catch {
12
12
  }
13
- var s = Cn.call(e);
14
- return r && (t ? e[me] = n : delete e[me]), s;
13
+ var l = Cn.call(e);
14
+ return r && (t ? e[ve] = n : delete e[ve]), l;
15
15
  }
16
- var En = Object.prototype, Dn = En.toString;
17
- function Ln(e) {
16
+ var Vn = Object.prototype, Dn = Vn.toString;
17
+ function En(e) {
18
18
  return Dn.call(e);
19
19
  }
20
- var Mn = "[object Null]", Un = "[object Undefined]", st = J ? J.toStringTag : void 0;
21
- function Te(e) {
22
- return e == null ? e === void 0 ? Un : Mn : st && st in Object(e) ? Vn(e) : Ln(e);
20
+ var Mn = "[object Null]", Ln = "[object Undefined]", ot = J ? J.toStringTag : void 0;
21
+ function be(e) {
22
+ return e == null ? e === void 0 ? Ln : Mn : ot && ot in Object(e) ? Un(e) : En(e);
23
23
  }
24
- function ee(e) {
24
+ function te(e) {
25
25
  return e != null && typeof e == "object";
26
26
  }
27
- var ye = Array.isArray;
28
- function $e(e) {
27
+ var _e = Array.isArray;
28
+ function Ae(e) {
29
29
  var t = typeof e;
30
30
  return e != null && (t == "object" || t == "function");
31
31
  }
32
32
  var xn = "[object AsyncFunction]", Nn = "[object Function]", Fn = "[object GeneratorFunction]", Bn = "[object Proxy]";
33
33
  function Gt(e) {
34
- if (!$e(e))
34
+ if (!Ae(e))
35
35
  return !1;
36
- var t = Te(e);
36
+ var t = be(e);
37
37
  return t == Nn || t == Fn || t == xn || t == Bn;
38
38
  }
39
- var je = G["__core-js_shared__"], ut = function() {
40
- var e = /[^.]+$/.exec(je && je.keys && je.keys.IE_PROTO || "");
39
+ var Ge = G["__core-js_shared__"], ut = function() {
40
+ var e = /[^.]+$/.exec(Ge && Ge.keys && Ge.keys.IE_PROTO || "");
41
41
  return e ? "Symbol(src)_1." + e : "";
42
42
  }();
43
43
  function Rn(e) {
44
44
  return !!ut && ut in e;
45
45
  }
46
46
  var Hn = Function.prototype, jn = Hn.toString;
47
- function ne(e) {
47
+ function re(e) {
48
48
  if (e != null) {
49
49
  try {
50
50
  return jn.call(e);
@@ -57,27 +57,27 @@ function ne(e) {
57
57
  }
58
58
  return "";
59
59
  }
60
- var Gn = /[\\^$.*+?()[\]{}|]/g, zn = /^\[object .+?Constructor\]$/, qn = Function.prototype, Kn = Object.prototype, Xn = qn.toString, Yn = Kn.hasOwnProperty, Zn = RegExp(
61
- "^" + Xn.call(Yn).replace(Gn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
60
+ var Gn = /[\\^$.*+?()[\]{}|]/g, zn = /^\[object .+?Constructor\]$/, qn = Function.prototype, Kn = Object.prototype, In = qn.toString, Xn = Kn.hasOwnProperty, Yn = RegExp(
61
+ "^" + In.call(Xn).replace(Gn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
62
62
  );
63
- function Wn(e) {
64
- if (!$e(e) || Rn(e))
63
+ function Zn(e) {
64
+ if (!Ae(e) || Rn(e))
65
65
  return !1;
66
- var t = Gt(e) ? Zn : zn;
67
- return t.test(ne(e));
66
+ var t = Gt(e) ? Yn : zn;
67
+ return t.test(re(e));
68
68
  }
69
- function In(e, t) {
69
+ function Wn(e, t) {
70
70
  return e == null ? void 0 : e[t];
71
71
  }
72
- function re(e, t) {
73
- var n = In(e, t);
74
- return Wn(n) ? n : void 0;
72
+ function ie(e, t) {
73
+ var n = Wn(e, t);
74
+ return Zn(n) ? n : void 0;
75
75
  }
76
- var Ke = re(G, "WeakMap"), ct = Object.create, Jn = /* @__PURE__ */ function() {
76
+ var Ie = ie(G, "WeakMap"), ct = Object.create, Jn = /* @__PURE__ */ function() {
77
77
  function e() {
78
78
  }
79
79
  return function(t) {
80
- if (!$e(t))
80
+ if (!Ae(t))
81
81
  return {};
82
82
  if (ct)
83
83
  return ct(t);
@@ -94,7 +94,7 @@ function Qn(e, t) {
94
94
  }
95
95
  var ft = function() {
96
96
  try {
97
- var e = re(Object, "defineProperty");
97
+ var e = ie(Object, "defineProperty");
98
98
  return e({}, "", {}), e;
99
99
  } catch {
100
100
  }
@@ -125,71 +125,71 @@ function qt(e, t, n) {
125
125
  var r = e[t];
126
126
  (!(ir.call(e, t) && et(r, n)) || n === void 0 && !(t in e)) && zt(e, t, n);
127
127
  }
128
- function Ne(e, t, n, r) {
129
- var s = !n;
128
+ function Fe(e, t, n, r) {
129
+ var l = !n;
130
130
  n || (n = {});
131
- for (var a = -1, d = t.length; ++a < d; ) {
132
- var f = t[a], p = void 0;
133
- p === void 0 && (p = e[f]), s ? zt(n, f, p) : qt(n, f, p);
131
+ for (var i = -1, a = t.length; ++i < a; ) {
132
+ var s = t[i], o = void 0;
133
+ o === void 0 && (o = e[s]), l ? zt(n, s, o) : qt(n, s, o);
134
134
  }
135
135
  return n;
136
136
  }
137
- var ar = 9007199254740991;
137
+ var lr = 9007199254740991;
138
138
  function Kt(e) {
139
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= ar;
139
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= lr;
140
140
  }
141
- function Xt(e) {
141
+ function It(e) {
142
142
  return e != null && Kt(e.length) && !Gt(e);
143
143
  }
144
- var lr = Object.prototype;
144
+ var ar = Object.prototype;
145
145
  function tt(e) {
146
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || lr;
146
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || ar;
147
147
  return e === n;
148
148
  }
149
- function or(e, t) {
149
+ function sr(e, t) {
150
150
  for (var n = -1, r = Array(e); ++n < e; )
151
151
  r[n] = t(n);
152
152
  return r;
153
153
  }
154
- var sr = "[object Arguments]";
154
+ var or = "[object Arguments]";
155
155
  function dt(e) {
156
- return ee(e) && Te(e) == sr;
156
+ return te(e) && be(e) == or;
157
157
  }
158
- var Yt = Object.prototype, ur = Yt.hasOwnProperty, cr = Yt.propertyIsEnumerable, fr = dt(/* @__PURE__ */ function() {
158
+ var Xt = Object.prototype, ur = Xt.hasOwnProperty, cr = Xt.propertyIsEnumerable, fr = dt(/* @__PURE__ */ function() {
159
159
  return arguments;
160
160
  }()) ? dt : function(e) {
161
- return ee(e) && ur.call(e, "callee") && !cr.call(e, "callee");
161
+ return te(e) && ur.call(e, "callee") && !cr.call(e, "callee");
162
162
  };
163
163
  function dr() {
164
164
  return !1;
165
165
  }
166
- var Zt = typeof exports == "object" && exports && !exports.nodeType && exports, pt = Zt && typeof module == "object" && module && !module.nodeType && module, pr = pt && pt.exports === Zt, vt = pr ? G.Buffer : void 0, vr = vt ? vt.isBuffer : void 0, De = vr || dr, mr = "[object Arguments]", gr = "[object Array]", yr = "[object Boolean]", _r = "[object Date]", hr = "[object Error]", Tr = "[object Function]", $r = "[object Map]", br = "[object Number]", Ar = "[object Object]", wr = "[object RegExp]", Sr = "[object Set]", Pr = "[object String]", Or = "[object WeakMap]", Cr = "[object ArrayBuffer]", Vr = "[object DataView]", Er = "[object Float32Array]", Dr = "[object Float64Array]", Lr = "[object Int8Array]", Mr = "[object Int16Array]", Ur = "[object Int32Array]", xr = "[object Uint8Array]", Nr = "[object Uint8ClampedArray]", Fr = "[object Uint16Array]", Br = "[object Uint32Array]", S = {};
167
- S[Er] = S[Dr] = S[Lr] = S[Mr] = S[Ur] = S[xr] = S[Nr] = S[Fr] = S[Br] = !0;
168
- S[mr] = S[gr] = S[Cr] = S[yr] = S[Vr] = S[_r] = S[hr] = S[Tr] = S[$r] = S[br] = S[Ar] = S[wr] = S[Sr] = S[Pr] = S[Or] = !1;
166
+ var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, pt = Yt && typeof module == "object" && module && !module.nodeType && module, pr = pt && pt.exports === Yt, mt = pr ? G.Buffer : void 0, mr = mt ? mt.isBuffer : void 0, Ee = mr || dr, vr = "[object Arguments]", gr = "[object Array]", yr = "[object Boolean]", _r = "[object Date]", hr = "[object Error]", Tr = "[object Function]", $r = "[object Map]", br = "[object Number]", Ar = "[object Object]", wr = "[object RegExp]", Sr = "[object Set]", Pr = "[object String]", Or = "[object WeakMap]", Cr = "[object ArrayBuffer]", Ur = "[object DataView]", Vr = "[object Float32Array]", Dr = "[object Float64Array]", Er = "[object Int8Array]", Mr = "[object Int16Array]", Lr = "[object Int32Array]", xr = "[object Uint8Array]", Nr = "[object Uint8ClampedArray]", Fr = "[object Uint16Array]", Br = "[object Uint32Array]", w = {};
167
+ w[Vr] = w[Dr] = w[Er] = w[Mr] = w[Lr] = w[xr] = w[Nr] = w[Fr] = w[Br] = !0;
168
+ w[vr] = w[gr] = w[Cr] = w[yr] = w[Ur] = w[_r] = w[hr] = w[Tr] = w[$r] = w[br] = w[Ar] = w[wr] = w[Sr] = w[Pr] = w[Or] = !1;
169
169
  function Rr(e) {
170
- return ee(e) && Kt(e.length) && !!S[Te(e)];
170
+ return te(e) && Kt(e.length) && !!w[be(e)];
171
171
  }
172
172
  function nt(e) {
173
173
  return function(t) {
174
174
  return e(t);
175
175
  };
176
176
  }
177
- var Wt = typeof exports == "object" && exports && !exports.nodeType && exports, ge = Wt && typeof module == "object" && module && !module.nodeType && module, Hr = ge && ge.exports === Wt, Ge = Hr && Ht.process, ce = function() {
177
+ var Zt = typeof exports == "object" && exports && !exports.nodeType && exports, ye = Zt && typeof module == "object" && module && !module.nodeType && module, Hr = ye && ye.exports === Zt, ze = Hr && Ht.process, oe = function() {
178
178
  try {
179
- var e = ge && ge.require && ge.require("util").types;
180
- return e || Ge && Ge.binding && Ge.binding("util");
179
+ var e = ye && ye.require && ye.require("util").types;
180
+ return e || ze && ze.binding && ze.binding("util");
181
181
  } catch {
182
182
  }
183
- }(), mt = ce && ce.isTypedArray, It = mt ? nt(mt) : Rr, jr = Object.prototype, Gr = jr.hasOwnProperty;
183
+ }(), vt = oe && oe.isTypedArray, Wt = vt ? nt(vt) : Rr, jr = Object.prototype, Gr = jr.hasOwnProperty;
184
184
  function Jt(e, t) {
185
- var n = ye(e), r = !n && fr(e), s = !n && !r && De(e), a = !n && !r && !s && It(e), d = n || r || s || a, f = d ? or(e.length, String) : [], p = f.length;
186
- for (var c in e)
187
- (t || Gr.call(e, c)) && !(d && // Safari 9 has enumerable `arguments.length` in strict mode.
188
- (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
189
- s && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
190
- a && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
191
- nr(c, p))) && f.push(c);
192
- return f;
185
+ var n = _e(e), r = !n && fr(e), l = !n && !r && Ee(e), i = !n && !r && !l && Wt(e), a = n || r || l || i, s = a ? sr(e.length, String) : [], o = s.length;
186
+ for (var u in e)
187
+ (t || Gr.call(e, u)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
188
+ (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
189
+ l && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
190
+ i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
191
+ nr(u, o))) && s.push(u);
192
+ return s;
193
193
  }
194
194
  function Qt(e, t) {
195
195
  return function(n) {
@@ -197,7 +197,7 @@ function Qt(e, t) {
197
197
  };
198
198
  }
199
199
  var zr = Qt(Object.keys, Object), qr = Object.prototype, Kr = qr.hasOwnProperty;
200
- function Xr(e) {
200
+ function Ir(e) {
201
201
  if (!tt(e))
202
202
  return zr(e);
203
203
  var t = [];
@@ -206,30 +206,30 @@ function Xr(e) {
206
206
  return t;
207
207
  }
208
208
  function rt(e) {
209
- return Xt(e) ? Jt(e) : Xr(e);
209
+ return It(e) ? Jt(e) : Ir(e);
210
210
  }
211
- function Yr(e) {
211
+ function Xr(e) {
212
212
  var t = [];
213
213
  if (e != null)
214
214
  for (var n in Object(e))
215
215
  t.push(n);
216
216
  return t;
217
217
  }
218
- var Zr = Object.prototype, Wr = Zr.hasOwnProperty;
219
- function Ir(e) {
220
- if (!$e(e))
221
- return Yr(e);
218
+ var Yr = Object.prototype, Zr = Yr.hasOwnProperty;
219
+ function Wr(e) {
220
+ if (!Ae(e))
221
+ return Xr(e);
222
222
  var t = tt(e), n = [];
223
223
  for (var r in e)
224
- r == "constructor" && (t || !Wr.call(e, r)) || n.push(r);
224
+ r == "constructor" && (t || !Zr.call(e, r)) || n.push(r);
225
225
  return n;
226
226
  }
227
227
  function it(e) {
228
- return Xt(e) ? Jt(e, !0) : Ir(e);
228
+ return It(e) ? Jt(e, !0) : Wr(e);
229
229
  }
230
- var _e = re(Object, "create");
230
+ var he = ie(Object, "create");
231
231
  function Jr() {
232
- this.__data__ = _e ? _e(null) : {}, this.size = 0;
232
+ this.__data__ = he ? he(null) : {}, this.size = 0;
233
233
  }
234
234
  function Qr(e) {
235
235
  var t = this.has(e) && delete this.__data__[e];
@@ -238,38 +238,38 @@ function Qr(e) {
238
238
  var kr = "__lodash_hash_undefined__", ei = Object.prototype, ti = ei.hasOwnProperty;
239
239
  function ni(e) {
240
240
  var t = this.__data__;
241
- if (_e) {
241
+ if (he) {
242
242
  var n = t[e];
243
243
  return n === kr ? void 0 : n;
244
244
  }
245
245
  return ti.call(t, e) ? t[e] : void 0;
246
246
  }
247
247
  var ri = Object.prototype, ii = ri.hasOwnProperty;
248
- function ai(e) {
248
+ function li(e) {
249
249
  var t = this.__data__;
250
- return _e ? t[e] !== void 0 : ii.call(t, e);
250
+ return he ? t[e] !== void 0 : ii.call(t, e);
251
251
  }
252
- var li = "__lodash_hash_undefined__";
253
- function oi(e, t) {
252
+ var ai = "__lodash_hash_undefined__";
253
+ function si(e, t) {
254
254
  var n = this.__data__;
255
- return this.size += this.has(e) ? 0 : 1, n[e] = _e && t === void 0 ? li : t, this;
255
+ return this.size += this.has(e) ? 0 : 1, n[e] = he && t === void 0 ? ai : t, this;
256
256
  }
257
- function te(e) {
257
+ function ne(e) {
258
258
  var t = -1, n = e == null ? 0 : e.length;
259
259
  for (this.clear(); ++t < n; ) {
260
260
  var r = e[t];
261
261
  this.set(r[0], r[1]);
262
262
  }
263
263
  }
264
- te.prototype.clear = Jr;
265
- te.prototype.delete = Qr;
266
- te.prototype.get = ni;
267
- te.prototype.has = ai;
268
- te.prototype.set = oi;
269
- function si() {
264
+ ne.prototype.clear = Jr;
265
+ ne.prototype.delete = Qr;
266
+ ne.prototype.get = ni;
267
+ ne.prototype.has = li;
268
+ ne.prototype.set = si;
269
+ function oi() {
270
270
  this.__data__ = [], this.size = 0;
271
271
  }
272
- function Fe(e, t) {
272
+ function Be(e, t) {
273
273
  for (var n = e.length; n--; )
274
274
  if (et(e[n][0], t))
275
275
  return n;
@@ -277,85 +277,85 @@ function Fe(e, t) {
277
277
  }
278
278
  var ui = Array.prototype, ci = ui.splice;
279
279
  function fi(e) {
280
- var t = this.__data__, n = Fe(t, e);
280
+ var t = this.__data__, n = Be(t, e);
281
281
  if (n < 0)
282
282
  return !1;
283
283
  var r = t.length - 1;
284
284
  return n == r ? t.pop() : ci.call(t, n, 1), --this.size, !0;
285
285
  }
286
286
  function di(e) {
287
- var t = this.__data__, n = Fe(t, e);
287
+ var t = this.__data__, n = Be(t, e);
288
288
  return n < 0 ? void 0 : t[n][1];
289
289
  }
290
290
  function pi(e) {
291
- return Fe(this.__data__, e) > -1;
291
+ return Be(this.__data__, e) > -1;
292
292
  }
293
- function vi(e, t) {
294
- var n = this.__data__, r = Fe(n, e);
293
+ function mi(e, t) {
294
+ var n = this.__data__, r = Be(n, e);
295
295
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
296
296
  }
297
- function I(e) {
297
+ function W(e) {
298
298
  var t = -1, n = e == null ? 0 : e.length;
299
299
  for (this.clear(); ++t < n; ) {
300
300
  var r = e[t];
301
301
  this.set(r[0], r[1]);
302
302
  }
303
303
  }
304
- I.prototype.clear = si;
305
- I.prototype.delete = fi;
306
- I.prototype.get = di;
307
- I.prototype.has = pi;
308
- I.prototype.set = vi;
309
- var he = re(G, "Map");
310
- function mi() {
304
+ W.prototype.clear = oi;
305
+ W.prototype.delete = fi;
306
+ W.prototype.get = di;
307
+ W.prototype.has = pi;
308
+ W.prototype.set = mi;
309
+ var Te = ie(G, "Map");
310
+ function vi() {
311
311
  this.size = 0, this.__data__ = {
312
- hash: new te(),
313
- map: new (he || I)(),
314
- string: new te()
312
+ hash: new ne(),
313
+ map: new (Te || W)(),
314
+ string: new ne()
315
315
  };
316
316
  }
317
317
  function gi(e) {
318
318
  var t = typeof e;
319
319
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
320
320
  }
321
- function Be(e, t) {
321
+ function Re(e, t) {
322
322
  var n = e.__data__;
323
323
  return gi(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
324
324
  }
325
325
  function yi(e) {
326
- var t = Be(this, e).delete(e);
326
+ var t = Re(this, e).delete(e);
327
327
  return this.size -= t ? 1 : 0, t;
328
328
  }
329
329
  function _i(e) {
330
- return Be(this, e).get(e);
330
+ return Re(this, e).get(e);
331
331
  }
332
332
  function hi(e) {
333
- return Be(this, e).has(e);
333
+ return Re(this, e).has(e);
334
334
  }
335
335
  function Ti(e, t) {
336
- var n = Be(this, e), r = n.size;
336
+ var n = Re(this, e), r = n.size;
337
337
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
338
338
  }
339
- function ie(e) {
339
+ function le(e) {
340
340
  var t = -1, n = e == null ? 0 : e.length;
341
341
  for (this.clear(); ++t < n; ) {
342
342
  var r = e[t];
343
343
  this.set(r[0], r[1]);
344
344
  }
345
345
  }
346
- ie.prototype.clear = mi;
347
- ie.prototype.delete = yi;
348
- ie.prototype.get = _i;
349
- ie.prototype.has = hi;
350
- ie.prototype.set = Ti;
346
+ le.prototype.clear = vi;
347
+ le.prototype.delete = yi;
348
+ le.prototype.get = _i;
349
+ le.prototype.has = hi;
350
+ le.prototype.set = Ti;
351
351
  function kt(e, t) {
352
- for (var n = -1, r = t.length, s = e.length; ++n < r; )
353
- e[s + n] = t[n];
352
+ for (var n = -1, r = t.length, l = e.length; ++n < r; )
353
+ e[l + n] = t[n];
354
354
  return e;
355
355
  }
356
356
  var en = Qt(Object.getPrototypeOf, Object);
357
357
  function $i() {
358
- this.__data__ = new I(), this.size = 0;
358
+ this.__data__ = new W(), this.size = 0;
359
359
  }
360
360
  function bi(e) {
361
361
  var t = this.__data__, n = t.delete(e);
@@ -370,75 +370,75 @@ function wi(e) {
370
370
  var Si = 200;
371
371
  function Pi(e, t) {
372
372
  var n = this.__data__;
373
- if (n instanceof I) {
373
+ if (n instanceof W) {
374
374
  var r = n.__data__;
375
- if (!he || r.length < Si - 1)
375
+ if (!Te || r.length < Si - 1)
376
376
  return r.push([e, t]), this.size = ++n.size, this;
377
- n = this.__data__ = new ie(r);
377
+ n = this.__data__ = new le(r);
378
378
  }
379
379
  return n.set(e, t), this.size = n.size, this;
380
380
  }
381
- function X(e) {
382
- var t = this.__data__ = new I(e);
381
+ function I(e) {
382
+ var t = this.__data__ = new W(e);
383
383
  this.size = t.size;
384
384
  }
385
- X.prototype.clear = $i;
386
- X.prototype.delete = bi;
387
- X.prototype.get = Ai;
388
- X.prototype.has = wi;
389
- X.prototype.set = Pi;
385
+ I.prototype.clear = $i;
386
+ I.prototype.delete = bi;
387
+ I.prototype.get = Ai;
388
+ I.prototype.has = wi;
389
+ I.prototype.set = Pi;
390
390
  function Oi(e, t) {
391
- return e && Ne(t, rt(t), e);
391
+ return e && Fe(t, rt(t), e);
392
392
  }
393
393
  function Ci(e, t) {
394
- return e && Ne(t, it(t), e);
394
+ return e && Fe(t, it(t), e);
395
395
  }
396
- var tn = typeof exports == "object" && exports && !exports.nodeType && exports, gt = tn && typeof module == "object" && module && !module.nodeType && module, Vi = gt && gt.exports === tn, yt = Vi ? G.Buffer : void 0, _t = yt ? yt.allocUnsafe : void 0;
397
- function Ei(e, t) {
396
+ var tn = typeof exports == "object" && exports && !exports.nodeType && exports, gt = tn && typeof module == "object" && module && !module.nodeType && module, Ui = gt && gt.exports === tn, yt = Ui ? G.Buffer : void 0, _t = yt ? yt.allocUnsafe : void 0;
397
+ function Vi(e, t) {
398
398
  if (t)
399
399
  return e.slice();
400
400
  var n = e.length, r = _t ? _t(n) : new e.constructor(n);
401
401
  return e.copy(r), r;
402
402
  }
403
403
  function Di(e, t) {
404
- for (var n = -1, r = e == null ? 0 : e.length, s = 0, a = []; ++n < r; ) {
405
- var d = e[n];
406
- t(d, n, e) && (a[s++] = d);
404
+ for (var n = -1, r = e == null ? 0 : e.length, l = 0, i = []; ++n < r; ) {
405
+ var a = e[n];
406
+ t(a, n, e) && (i[l++] = a);
407
407
  }
408
- return a;
408
+ return i;
409
409
  }
410
410
  function nn() {
411
411
  return [];
412
412
  }
413
- var Li = Object.prototype, Mi = Li.propertyIsEnumerable, ht = Object.getOwnPropertySymbols, at = ht ? function(e) {
413
+ var Ei = Object.prototype, Mi = Ei.propertyIsEnumerable, ht = Object.getOwnPropertySymbols, lt = ht ? function(e) {
414
414
  return e == null ? [] : (e = Object(e), Di(ht(e), function(t) {
415
415
  return Mi.call(e, t);
416
416
  }));
417
417
  } : nn;
418
- function Ui(e, t) {
419
- return Ne(e, at(e), t);
418
+ function Li(e, t) {
419
+ return Fe(e, lt(e), t);
420
420
  }
421
421
  var xi = Object.getOwnPropertySymbols, rn = xi ? function(e) {
422
422
  for (var t = []; e; )
423
- kt(t, at(e)), e = en(e);
423
+ kt(t, lt(e)), e = en(e);
424
424
  return t;
425
425
  } : nn;
426
426
  function Ni(e, t) {
427
- return Ne(e, rn(e), t);
427
+ return Fe(e, rn(e), t);
428
428
  }
429
- function an(e, t, n) {
429
+ function ln(e, t, n) {
430
430
  var r = t(e);
431
- return ye(e) ? r : kt(r, n(e));
431
+ return _e(e) ? r : kt(r, n(e));
432
432
  }
433
433
  function Xe(e) {
434
- return an(e, rt, at);
434
+ return ln(e, rt, lt);
435
435
  }
436
436
  function Fi(e) {
437
- return an(e, it, rn);
437
+ return ln(e, it, rn);
438
438
  }
439
- var Ye = re(G, "DataView"), Ze = re(G, "Promise"), We = re(G, "Set"), Tt = "[object Map]", Bi = "[object Object]", $t = "[object Promise]", bt = "[object Set]", At = "[object WeakMap]", wt = "[object DataView]", Ri = ne(Ye), Hi = ne(he), ji = ne(Ze), Gi = ne(We), zi = ne(Ke), B = Te;
440
- (Ye && B(new Ye(new ArrayBuffer(1))) != wt || he && B(new he()) != Tt || Ze && B(Ze.resolve()) != $t || We && B(new We()) != bt || Ke && B(new Ke()) != At) && (B = function(e) {
441
- var t = Te(e), n = t == Bi ? e.constructor : void 0, r = n ? ne(n) : "";
439
+ var Ye = ie(G, "DataView"), Ze = ie(G, "Promise"), We = ie(G, "Set"), Tt = "[object Map]", Bi = "[object Object]", $t = "[object Promise]", bt = "[object Set]", At = "[object WeakMap]", wt = "[object DataView]", Ri = re(Ye), Hi = re(Te), ji = re(Ze), Gi = re(We), zi = re(Ie), B = be;
440
+ (Ye && B(new Ye(new ArrayBuffer(1))) != wt || Te && B(new Te()) != Tt || Ze && B(Ze.resolve()) != $t || We && B(new We()) != bt || Ie && B(new Ie()) != At) && (B = function(e) {
441
+ var t = be(e), n = t == Bi ? e.constructor : void 0, r = n ? re(n) : "";
442
442
  if (r)
443
443
  switch (r) {
444
444
  case Ri:
@@ -455,356 +455,323 @@ var Ye = re(G, "DataView"), Ze = re(G, "Promise"), We = re(G, "Set"), Tt = "[obj
455
455
  return t;
456
456
  });
457
457
  var qi = Object.prototype, Ki = qi.hasOwnProperty;
458
- function Xi(e) {
458
+ function Ii(e) {
459
459
  var t = e.length, n = new e.constructor(t);
460
460
  return t && typeof e[0] == "string" && Ki.call(e, "index") && (n.index = e.index, n.input = e.input), n;
461
461
  }
462
- var Le = G.Uint8Array;
463
- function lt(e) {
462
+ var Me = G.Uint8Array;
463
+ function at(e) {
464
464
  var t = new e.constructor(e.byteLength);
465
- return new Le(t).set(new Le(e)), t;
465
+ return new Me(t).set(new Me(e)), t;
466
466
  }
467
- function Yi(e, t) {
468
- var n = t ? lt(e.buffer) : e.buffer;
467
+ function Xi(e, t) {
468
+ var n = t ? at(e.buffer) : e.buffer;
469
469
  return new e.constructor(n, e.byteOffset, e.byteLength);
470
470
  }
471
- var Zi = /\w*$/;
472
- function Wi(e) {
473
- var t = new e.constructor(e.source, Zi.exec(e));
471
+ var Yi = /\w*$/;
472
+ function Zi(e) {
473
+ var t = new e.constructor(e.source, Yi.exec(e));
474
474
  return t.lastIndex = e.lastIndex, t;
475
475
  }
476
476
  var St = J ? J.prototype : void 0, Pt = St ? St.valueOf : void 0;
477
- function Ii(e) {
477
+ function Wi(e) {
478
478
  return Pt ? Object(Pt.call(e)) : {};
479
479
  }
480
480
  function Ji(e, t) {
481
- var n = t ? lt(e.buffer) : e.buffer;
481
+ var n = t ? at(e.buffer) : e.buffer;
482
482
  return new e.constructor(n, e.byteOffset, e.length);
483
483
  }
484
- var Qi = "[object Boolean]", ki = "[object Date]", ea = "[object Map]", ta = "[object Number]", na = "[object RegExp]", ra = "[object Set]", ia = "[object String]", aa = "[object Symbol]", la = "[object ArrayBuffer]", oa = "[object DataView]", sa = "[object Float32Array]", ua = "[object Float64Array]", ca = "[object Int8Array]", fa = "[object Int16Array]", da = "[object Int32Array]", pa = "[object Uint8Array]", va = "[object Uint8ClampedArray]", ma = "[object Uint16Array]", ga = "[object Uint32Array]";
485
- function ya(e, t, n) {
484
+ var Qi = "[object Boolean]", ki = "[object Date]", el = "[object Map]", tl = "[object Number]", nl = "[object RegExp]", rl = "[object Set]", il = "[object String]", ll = "[object Symbol]", al = "[object ArrayBuffer]", sl = "[object DataView]", ol = "[object Float32Array]", ul = "[object Float64Array]", cl = "[object Int8Array]", fl = "[object Int16Array]", dl = "[object Int32Array]", pl = "[object Uint8Array]", ml = "[object Uint8ClampedArray]", vl = "[object Uint16Array]", gl = "[object Uint32Array]";
485
+ function yl(e, t, n) {
486
486
  var r = e.constructor;
487
487
  switch (t) {
488
- case la:
489
- return lt(e);
488
+ case al:
489
+ return at(e);
490
490
  case Qi:
491
491
  case ki:
492
492
  return new r(+e);
493
- case oa:
494
- return Yi(e, n);
495
- case sa:
496
- case ua:
497
- case ca:
498
- case fa:
499
- case da:
500
- case pa:
501
- case va:
502
- case ma:
503
- case ga:
493
+ case sl:
494
+ return Xi(e, n);
495
+ case ol:
496
+ case ul:
497
+ case cl:
498
+ case fl:
499
+ case dl:
500
+ case pl:
501
+ case ml:
502
+ case vl:
503
+ case gl:
504
504
  return Ji(e, n);
505
- case ea:
505
+ case el:
506
506
  return new r();
507
- case ta:
508
- case ia:
507
+ case tl:
508
+ case il:
509
509
  return new r(e);
510
- case na:
511
- return Wi(e);
512
- case ra:
510
+ case nl:
511
+ return Zi(e);
512
+ case rl:
513
513
  return new r();
514
- case aa:
515
- return Ii(e);
514
+ case ll:
515
+ return Wi(e);
516
516
  }
517
517
  }
518
- function _a(e) {
518
+ function _l(e) {
519
519
  return typeof e.constructor == "function" && !tt(e) ? Jn(en(e)) : {};
520
520
  }
521
- var ha = "[object Map]";
522
- function Ta(e) {
523
- return ee(e) && B(e) == ha;
524
- }
525
- var Ot = ce && ce.isMap, $a = Ot ? nt(Ot) : Ta, ba = "[object Set]";
526
- function Aa(e) {
527
- return ee(e) && B(e) == ba;
528
- }
529
- var Ct = ce && ce.isSet, wa = Ct ? nt(Ct) : Aa, Sa = 1, Pa = 2, Oa = 4, ln = "[object Arguments]", Ca = "[object Array]", Va = "[object Boolean]", Ea = "[object Date]", Da = "[object Error]", on = "[object Function]", La = "[object GeneratorFunction]", Ma = "[object Map]", Ua = "[object Number]", sn = "[object Object]", xa = "[object RegExp]", Na = "[object Set]", Fa = "[object String]", Ba = "[object Symbol]", Ra = "[object WeakMap]", Ha = "[object ArrayBuffer]", ja = "[object DataView]", Ga = "[object Float32Array]", za = "[object Float64Array]", qa = "[object Int8Array]", Ka = "[object Int16Array]", Xa = "[object Int32Array]", Ya = "[object Uint8Array]", Za = "[object Uint8ClampedArray]", Wa = "[object Uint16Array]", Ia = "[object Uint32Array]", A = {};
530
- A[ln] = A[Ca] = A[Ha] = A[ja] = A[Va] = A[Ea] = A[Ga] = A[za] = A[qa] = A[Ka] = A[Xa] = A[Ma] = A[Ua] = A[sn] = A[xa] = A[Na] = A[Fa] = A[Ba] = A[Ya] = A[Za] = A[Wa] = A[Ia] = !0;
531
- A[Da] = A[on] = A[Ra] = !1;
532
- function Ve(e, t, n, r, s, a) {
533
- var d, f = t & Sa, p = t & Pa, c = t & Oa;
534
- if (d !== void 0)
535
- return d;
536
- if (!$e(e))
521
+ var hl = "[object Map]";
522
+ function Tl(e) {
523
+ return te(e) && B(e) == hl;
524
+ }
525
+ var Ot = oe && oe.isMap, $l = Ot ? nt(Ot) : Tl, bl = "[object Set]";
526
+ function Al(e) {
527
+ return te(e) && B(e) == bl;
528
+ }
529
+ var Ct = oe && oe.isSet, wl = Ct ? nt(Ct) : Al, Sl = 1, Pl = 2, Ol = 4, an = "[object Arguments]", Cl = "[object Array]", Ul = "[object Boolean]", Vl = "[object Date]", Dl = "[object Error]", sn = "[object Function]", El = "[object GeneratorFunction]", Ml = "[object Map]", Ll = "[object Number]", on = "[object Object]", xl = "[object RegExp]", Nl = "[object Set]", Fl = "[object String]", Bl = "[object Symbol]", Rl = "[object WeakMap]", Hl = "[object ArrayBuffer]", jl = "[object DataView]", Gl = "[object Float32Array]", zl = "[object Float64Array]", ql = "[object Int8Array]", Kl = "[object Int16Array]", Il = "[object Int32Array]", Xl = "[object Uint8Array]", Yl = "[object Uint8ClampedArray]", Zl = "[object Uint16Array]", Wl = "[object Uint32Array]", b = {};
530
+ b[an] = b[Cl] = b[Hl] = b[jl] = b[Ul] = b[Vl] = b[Gl] = b[zl] = b[ql] = b[Kl] = b[Il] = b[Ml] = b[Ll] = b[on] = b[xl] = b[Nl] = b[Fl] = b[Bl] = b[Xl] = b[Yl] = b[Zl] = b[Wl] = !0;
531
+ b[Dl] = b[sn] = b[Rl] = !1;
532
+ function Ve(e, t, n, r, l, i) {
533
+ var a, s = t & Sl, o = t & Pl, u = t & Ol;
534
+ if (a !== void 0)
535
+ return a;
536
+ if (!Ae(e))
537
537
  return e;
538
- var g = ye(e);
539
- if (g) {
540
- if (d = Xi(e), !f)
541
- return Qn(e, d);
538
+ var f = _e(e);
539
+ if (f) {
540
+ if (a = Ii(e), !s)
541
+ return Qn(e, a);
542
542
  } else {
543
- var h = B(e), y = h == on || h == La;
544
- if (De(e))
545
- return Ei(e, f);
546
- if (h == sn || h == ln || y && !s) {
547
- if (d = p || y ? {} : _a(e), !f)
548
- return p ? Ni(e, Ci(d, e)) : Ui(e, Oi(d, e));
543
+ var d = B(e), _ = d == sn || d == El;
544
+ if (Ee(e))
545
+ return Vi(e, s);
546
+ if (d == on || d == an || _ && !l) {
547
+ if (a = o || _ ? {} : _l(e), !s)
548
+ return o ? Ni(e, Ci(a, e)) : Li(e, Oi(a, e));
549
549
  } else {
550
- if (!A[h])
551
- return s ? e : {};
552
- d = ya(e, h, f);
550
+ if (!b[d])
551
+ return l ? e : {};
552
+ a = yl(e, d, s);
553
553
  }
554
554
  }
555
- a || (a = new X());
556
- var T = a.get(e);
557
- if (T)
558
- return T;
559
- a.set(e, d), wa(e) ? e.forEach(function(V) {
560
- d.add(Ve(V, t, n, V, e, a));
561
- }) : $a(e) && e.forEach(function(V, E) {
562
- d.set(E, Ve(V, t, n, E, e, a));
555
+ i || (i = new I());
556
+ var h = i.get(e);
557
+ if (h)
558
+ return h;
559
+ i.set(e, a), wl(e) ? e.forEach(function(C) {
560
+ a.add(Ve(C, t, n, C, e, i));
561
+ }) : $l(e) && e.forEach(function(C, D) {
562
+ a.set(D, Ve(C, t, n, D, e, i));
563
563
  });
564
- var $ = c ? p ? Fi : Xe : p ? it : rt, b = g ? void 0 : $(e);
565
- return kn(b || e, function(V, E) {
566
- b && (E = V, V = e[E]), qt(d, E, Ve(V, t, n, E, e, a));
567
- }), d;
564
+ var T = u ? o ? Fi : Xe : o ? it : rt, $ = f ? void 0 : T(e);
565
+ return kn($ || e, function(C, D) {
566
+ $ && (D = C, C = e[D]), qt(a, D, Ve(C, t, n, D, e, i));
567
+ }), a;
568
568
  }
569
- var Ja = 1, Qa = 4;
569
+ var Jl = 1, Ql = 4;
570
570
  function un(e) {
571
- return Ve(e, Ja | Qa);
571
+ return Ve(e, Jl | Ql);
572
572
  }
573
- var ka = "__lodash_hash_undefined__";
574
- function el(e) {
575
- return this.__data__.set(e, ka), this;
573
+ var kl = "__lodash_hash_undefined__";
574
+ function ea(e) {
575
+ return this.__data__.set(e, kl), this;
576
576
  }
577
- function tl(e) {
577
+ function ta(e) {
578
578
  return this.__data__.has(e);
579
579
  }
580
- function Me(e) {
580
+ function Le(e) {
581
581
  var t = -1, n = e == null ? 0 : e.length;
582
- for (this.__data__ = new ie(); ++t < n; )
582
+ for (this.__data__ = new le(); ++t < n; )
583
583
  this.add(e[t]);
584
584
  }
585
- Me.prototype.add = Me.prototype.push = el;
586
- Me.prototype.has = tl;
587
- function nl(e, t) {
585
+ Le.prototype.add = Le.prototype.push = ea;
586
+ Le.prototype.has = ta;
587
+ function na(e, t) {
588
588
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
589
589
  if (t(e[n], n, e))
590
590
  return !0;
591
591
  return !1;
592
592
  }
593
- function rl(e, t) {
593
+ function ra(e, t) {
594
594
  return e.has(t);
595
595
  }
596
- var il = 1, al = 2;
597
- function cn(e, t, n, r, s, a) {
598
- var d = n & il, f = e.length, p = t.length;
599
- if (f != p && !(d && p > f))
596
+ var ia = 1, la = 2;
597
+ function cn(e, t, n, r, l, i) {
598
+ var a = n & ia, s = e.length, o = t.length;
599
+ if (s != o && !(a && o > s))
600
600
  return !1;
601
- var c = a.get(e), g = a.get(t);
602
- if (c && g)
603
- return c == t && g == e;
604
- var h = -1, y = !0, T = n & al ? new Me() : void 0;
605
- for (a.set(e, t), a.set(t, e); ++h < f; ) {
606
- var $ = e[h], b = t[h];
601
+ var u = i.get(e), f = i.get(t);
602
+ if (u && f)
603
+ return u == t && f == e;
604
+ var d = -1, _ = !0, h = n & la ? new Le() : void 0;
605
+ for (i.set(e, t), i.set(t, e); ++d < s; ) {
606
+ var T = e[d], $ = t[d];
607
607
  if (r)
608
- var V = d ? r(b, $, h, t, e, a) : r($, b, h, e, t, a);
609
- if (V !== void 0) {
610
- if (V)
608
+ var C = a ? r($, T, d, t, e, i) : r(T, $, d, e, t, i);
609
+ if (C !== void 0) {
610
+ if (C)
611
611
  continue;
612
- y = !1;
612
+ _ = !1;
613
613
  break;
614
614
  }
615
- if (T) {
616
- if (!nl(t, function(E, z) {
617
- if (!rl(T, z) && ($ === E || s($, E, n, r, a)))
618
- return T.push(z);
615
+ if (h) {
616
+ if (!na(t, function(D, z) {
617
+ if (!ra(h, z) && (T === D || l(T, D, n, r, i)))
618
+ return h.push(z);
619
619
  })) {
620
- y = !1;
620
+ _ = !1;
621
621
  break;
622
622
  }
623
- } else if (!($ === b || s($, b, n, r, a))) {
624
- y = !1;
623
+ } else if (!(T === $ || l(T, $, n, r, i))) {
624
+ _ = !1;
625
625
  break;
626
626
  }
627
627
  }
628
- return a.delete(e), a.delete(t), y;
628
+ return i.delete(e), i.delete(t), _;
629
629
  }
630
- function ll(e) {
630
+ function aa(e) {
631
631
  var t = -1, n = Array(e.size);
632
- return e.forEach(function(r, s) {
633
- n[++t] = [s, r];
632
+ return e.forEach(function(r, l) {
633
+ n[++t] = [l, r];
634
634
  }), n;
635
635
  }
636
- function ol(e) {
636
+ function sa(e) {
637
637
  var t = -1, n = Array(e.size);
638
638
  return e.forEach(function(r) {
639
639
  n[++t] = r;
640
640
  }), n;
641
641
  }
642
- var sl = 1, ul = 2, cl = "[object Boolean]", fl = "[object Date]", dl = "[object Error]", pl = "[object Map]", vl = "[object Number]", ml = "[object RegExp]", gl = "[object Set]", yl = "[object String]", _l = "[object Symbol]", hl = "[object ArrayBuffer]", Tl = "[object DataView]", Vt = J ? J.prototype : void 0, ze = Vt ? Vt.valueOf : void 0;
643
- function $l(e, t, n, r, s, a, d) {
642
+ var oa = 1, ua = 2, ca = "[object Boolean]", fa = "[object Date]", da = "[object Error]", pa = "[object Map]", ma = "[object Number]", va = "[object RegExp]", ga = "[object Set]", ya = "[object String]", _a = "[object Symbol]", ha = "[object ArrayBuffer]", Ta = "[object DataView]", Ut = J ? J.prototype : void 0, qe = Ut ? Ut.valueOf : void 0;
643
+ function $a(e, t, n, r, l, i, a) {
644
644
  switch (n) {
645
- case Tl:
645
+ case Ta:
646
646
  if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
647
647
  return !1;
648
648
  e = e.buffer, t = t.buffer;
649
- case hl:
650
- return !(e.byteLength != t.byteLength || !a(new Le(e), new Le(t)));
651
- case cl:
652
- case fl:
653
- case vl:
649
+ case ha:
650
+ return !(e.byteLength != t.byteLength || !i(new Me(e), new Me(t)));
651
+ case ca:
652
+ case fa:
653
+ case ma:
654
654
  return et(+e, +t);
655
- case dl:
655
+ case da:
656
656
  return e.name == t.name && e.message == t.message;
657
- case ml:
658
- case yl:
657
+ case va:
658
+ case ya:
659
659
  return e == t + "";
660
- case pl:
661
- var f = ll;
662
- case gl:
663
- var p = r & sl;
664
- if (f || (f = ol), e.size != t.size && !p)
660
+ case pa:
661
+ var s = aa;
662
+ case ga:
663
+ var o = r & oa;
664
+ if (s || (s = sa), e.size != t.size && !o)
665
665
  return !1;
666
- var c = d.get(e);
667
- if (c)
668
- return c == t;
669
- r |= ul, d.set(e, t);
670
- var g = cn(f(e), f(t), r, s, a, d);
671
- return d.delete(e), g;
672
- case _l:
673
- if (ze)
674
- return ze.call(e) == ze.call(t);
666
+ var u = a.get(e);
667
+ if (u)
668
+ return u == t;
669
+ r |= ua, a.set(e, t);
670
+ var f = cn(s(e), s(t), r, l, i, a);
671
+ return a.delete(e), f;
672
+ case _a:
673
+ if (qe)
674
+ return qe.call(e) == qe.call(t);
675
675
  }
676
676
  return !1;
677
677
  }
678
- var bl = 1, Al = Object.prototype, wl = Al.hasOwnProperty;
679
- function Sl(e, t, n, r, s, a) {
680
- var d = n & bl, f = Xe(e), p = f.length, c = Xe(t), g = c.length;
681
- if (p != g && !d)
678
+ var ba = 1, Aa = Object.prototype, wa = Aa.hasOwnProperty;
679
+ function Sa(e, t, n, r, l, i) {
680
+ var a = n & ba, s = Xe(e), o = s.length, u = Xe(t), f = u.length;
681
+ if (o != f && !a)
682
682
  return !1;
683
- for (var h = p; h--; ) {
684
- var y = f[h];
685
- if (!(d ? y in t : wl.call(t, y)))
683
+ for (var d = o; d--; ) {
684
+ var _ = s[d];
685
+ if (!(a ? _ in t : wa.call(t, _)))
686
686
  return !1;
687
687
  }
688
- var T = a.get(e), $ = a.get(t);
689
- if (T && $)
690
- return T == t && $ == e;
691
- var b = !0;
692
- a.set(e, t), a.set(t, e);
693
- for (var V = d; ++h < p; ) {
694
- y = f[h];
695
- var E = e[y], z = t[y];
688
+ var h = i.get(e), T = i.get(t);
689
+ if (h && T)
690
+ return h == t && T == e;
691
+ var $ = !0;
692
+ i.set(e, t), i.set(t, e);
693
+ for (var C = a; ++d < o; ) {
694
+ _ = s[d];
695
+ var D = e[_], z = t[_];
696
696
  if (r)
697
- var be = d ? r(z, E, y, t, e, a) : r(E, z, y, e, t, a);
698
- if (!(be === void 0 ? E === z || s(E, z, n, r, a) : be)) {
699
- b = !1;
697
+ var we = a ? r(z, D, _, t, e, i) : r(D, z, _, e, t, i);
698
+ if (!(we === void 0 ? D === z || l(D, z, n, r, i) : we)) {
699
+ $ = !1;
700
700
  break;
701
701
  }
702
- V || (V = y == "constructor");
702
+ C || (C = _ == "constructor");
703
703
  }
704
- if (b && !V) {
705
- var le = e.constructor, oe = t.constructor;
706
- le != oe && "constructor" in e && "constructor" in t && !(typeof le == "function" && le instanceof le && typeof oe == "function" && oe instanceof oe) && (b = !1);
704
+ if ($ && !C) {
705
+ var se = e.constructor, q = t.constructor;
706
+ se != q && "constructor" in e && "constructor" in t && !(typeof se == "function" && se instanceof se && typeof q == "function" && q instanceof q) && ($ = !1);
707
707
  }
708
- return a.delete(e), a.delete(t), b;
709
- }
710
- var Pl = 1, Et = "[object Arguments]", Dt = "[object Array]", Pe = "[object Object]", Ol = Object.prototype, Lt = Ol.hasOwnProperty;
711
- function Cl(e, t, n, r, s, a) {
712
- var d = ye(e), f = ye(t), p = d ? Dt : B(e), c = f ? Dt : B(t);
713
- p = p == Et ? Pe : p, c = c == Et ? Pe : c;
714
- var g = p == Pe, h = c == Pe, y = p == c;
715
- if (y && De(e)) {
716
- if (!De(t))
708
+ return i.delete(e), i.delete(t), $;
709
+ }
710
+ var Pa = 1, Vt = "[object Arguments]", Dt = "[object Array]", Oe = "[object Object]", Oa = Object.prototype, Et = Oa.hasOwnProperty;
711
+ function Ca(e, t, n, r, l, i) {
712
+ var a = _e(e), s = _e(t), o = a ? Dt : B(e), u = s ? Dt : B(t);
713
+ o = o == Vt ? Oe : o, u = u == Vt ? Oe : u;
714
+ var f = o == Oe, d = u == Oe, _ = o == u;
715
+ if (_ && Ee(e)) {
716
+ if (!Ee(t))
717
717
  return !1;
718
- d = !0, g = !1;
718
+ a = !0, f = !1;
719
719
  }
720
- if (y && !g)
721
- return a || (a = new X()), d || It(e) ? cn(e, t, n, r, s, a) : $l(e, t, p, n, r, s, a);
722
- if (!(n & Pl)) {
723
- var T = g && Lt.call(e, "__wrapped__"), $ = h && Lt.call(t, "__wrapped__");
724
- if (T || $) {
725
- var b = T ? e.value() : e, V = $ ? t.value() : t;
726
- return a || (a = new X()), s(b, V, n, r, a);
720
+ if (_ && !f)
721
+ return i || (i = new I()), a || Wt(e) ? cn(e, t, n, r, l, i) : $a(e, t, o, n, r, l, i);
722
+ if (!(n & Pa)) {
723
+ var h = f && Et.call(e, "__wrapped__"), T = d && Et.call(t, "__wrapped__");
724
+ if (h || T) {
725
+ var $ = h ? e.value() : e, C = T ? t.value() : t;
726
+ return i || (i = new I()), l($, C, n, r, i);
727
727
  }
728
728
  }
729
- return y ? (a || (a = new X()), Sl(e, t, n, r, s, a)) : !1;
729
+ return _ ? (i || (i = new I()), Sa(e, t, n, r, l, i)) : !1;
730
730
  }
731
- function fn(e, t, n, r, s) {
732
- return e === t ? !0 : e == null || t == null || !ee(e) && !ee(t) ? e !== e && t !== t : Cl(e, t, n, r, fn, s);
731
+ function fn(e, t, n, r, l) {
732
+ return e === t ? !0 : e == null || t == null || !te(e) && !te(t) ? e !== e && t !== t : Ca(e, t, n, r, fn, l);
733
733
  }
734
- function Re(e, t) {
734
+ function He(e, t) {
735
735
  return fn(e, t);
736
736
  }
737
- const Vl = /* @__PURE__ */ H({
738
- __name: "entry",
739
- props: {
740
- minHeight: {}
741
- },
742
- setup(e) {
743
- const { backgroundColor2: t, highlightColor: n } = ke(), r = R(!1), s = Y(() => ({
744
- background: r.value ? n.value : t.value,
745
- minHeight: e.minHeight,
746
- paddingRight: "4px",
747
- marginBottom: "1px",
748
- userSelect: "none"
749
- })), a = (d) => {
750
- Bt.emit("propTreeMenu", {
751
- x: d.clientX,
752
- y: d.clientY
753
- });
754
- };
755
- return (d, f) => {
756
- const p = fe("ripple");
757
- return k((C(), W("div", {
758
- class: "d-flex justify-space-between align-center cursor-pointer",
759
- style: Ie(s.value),
760
- onContextmenu: j(a, ["prevent"]),
761
- onMouseover: f[0] || (f[0] = (c) => r.value = !0),
762
- onMouseout: f[1] || (f[1] = (c) => r.value = !1)
763
- }, [
764
- Tn(d.$slots, "default")
765
- ], 36)), [
766
- [p]
767
- ]);
768
- };
769
- }
770
- }), El = /* @__PURE__ */ H({
737
+ const Ua = /* @__PURE__ */ H({
771
738
  __name: "menu",
772
739
  setup(e) {
773
- const { t } = Qe(), n = R(0), r = R(0), s = Y(() => [n.value, r.value]), a = (c) => {
774
- const g = () => {
740
+ const { t } = $e(), n = R(0), r = R(0), l = X(() => [n.value, r.value]), i = (u) => {
741
+ const f = () => {
775
742
  console.log("reset");
776
743
  };
777
- c.push({
744
+ u.push({
778
745
  title: t("x-prop-tree.reset"),
779
- func: g
746
+ func: f
780
747
  });
781
- }, d = Y(() => {
782
- const c = [];
783
- return a(c), c;
784
- }), f = (c) => {
785
- n.value = c.x, r.value = c.y;
786
- }, { open: p } = Rt("propTreeMenu", f);
787
- return (c, g) => {
788
- const h = P("v-list-item-title"), y = P("v-list-item"), T = P("v-list"), $ = P("v-menu");
789
- return C(), U($, {
790
- modelValue: N(p),
791
- "onUpdate:modelValue": g[0] || (g[0] = (b) => xt(p) ? p.value = b : null),
748
+ }, a = X(() => {
749
+ const u = [];
750
+ return i(u), u;
751
+ }), s = (u) => {
752
+ n.value = u.x, r.value = u.y;
753
+ }, { open: o } = Bt("propTreeMenu", s);
754
+ return (u, f) => {
755
+ const d = P("v-list-item-title"), _ = P("v-list-item"), h = P("v-list"), T = P("v-menu");
756
+ return O(), L(T, {
757
+ modelValue: N(o),
758
+ "onUpdate:modelValue": f[0] || (f[0] = ($) => xt(o) ? o.value = $ : null),
792
759
  "location-strategy": "connected",
793
- target: s.value,
760
+ target: l.value,
794
761
  scrim: "transparent"
795
762
  }, {
796
763
  default: K(() => [
797
- M(T, null, {
764
+ M(h, null, {
798
765
  default: K(() => [
799
- (C(!0), W(Nt, null, $n(d.value, (b, V) => (C(), U(y, {
800
- key: V,
766
+ (O(!0), Z(Nt, null, Tn(a.value, ($, C) => (O(), L(_, {
767
+ key: C,
801
768
  link: "",
802
- onClick: b.func
769
+ onClick: $.func
803
770
  }, {
804
771
  default: K(() => [
805
- M(h, null, {
772
+ M(d, null, {
806
773
  default: K(() => [
807
- Je(xe(b.title), 1)
774
+ Je(Ne($.title), 1)
808
775
  ]),
809
776
  _: 2
810
777
  }, 1024)
@@ -820,8 +787,8 @@ const Vl = /* @__PURE__ */ H({
820
787
  };
821
788
  }
822
789
  });
823
- var Dl = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Ll = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", ae = "M19,13H5V11H19V13Z", Ml = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
824
- const Oe = /* @__PURE__ */ H({
790
+ var Va = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Da = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", ae = "M19,13H5V11H19V13Z", Ea = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
791
+ const Ce = /* @__PURE__ */ H({
825
792
  __name: "title",
826
793
  props: {
827
794
  title: {},
@@ -832,168 +799,238 @@ const Oe = /* @__PURE__ */ H({
832
799
  },
833
800
  emits: ["collapse", "create", "delete"],
834
801
  setup(e, { emit: t }) {
835
- const { backgroundColor2: n, highlightColor: r } = ke(), s = t, a = R(!1), d = Y(() => ({
836
- background: a.value ? r.value : n.value,
802
+ const { backgroundColor2: n, highlightColor: r } = ke(), l = t, i = R(!1), a = X(() => ({
803
+ background: i.value ? r.value : n.value,
837
804
  height: "36px",
838
805
  marginBottom: "1px",
839
806
  userSelect: "none"
840
- })), f = () => {
841
- s("collapse", !e.collapse);
842
- }, p = (c) => {
843
- Bt.emit("propTreeMenu", {
844
- x: c.clientX,
845
- y: c.clientY
807
+ })), s = () => {
808
+ l("collapse", !e.collapse);
809
+ }, o = (u) => {
810
+ Rt.emit("propTreeMenu", {
811
+ x: u.clientX,
812
+ y: u.clientY
846
813
  });
847
814
  };
848
- return (c, g) => {
849
- const h = P("v-icon"), y = P("v-spacer"), T = fe("ripple");
850
- return k((C(), W("div", {
815
+ return (u, f) => {
816
+ const d = P("v-icon"), _ = P("v-spacer"), h = ue("ripple");
817
+ return ee((O(), Z("div", {
851
818
  class: "d-flex align-center cursor-pointer",
852
- style: Ie(d.value),
853
- onClick: f,
854
- onContextmenu: j(p, ["prevent"]),
855
- onMouseover: g[2] || (g[2] = ($) => a.value = !0),
856
- onMouseout: g[3] || (g[3] = ($) => a.value = !1)
819
+ style: Qe(a.value),
820
+ onClick: s,
821
+ onContextmenu: j(o, ["prevent"]),
822
+ onMouseover: f[2] || (f[2] = (T) => i.value = !0),
823
+ onMouseout: f[3] || (f[3] = (T) => i.value = !1)
857
824
  }, [
858
- M(h, {
825
+ M(d, {
859
826
  class: "mr-1",
860
- icon: c.collapse ? N(Ll) : N(Dl)
827
+ icon: u.collapse ? N(Da) : N(Va)
861
828
  }, null, 8, ["icon"]),
862
- Ee("span", null, xe(c.title), 1),
863
- M(y),
864
- c.hasCreate ? (C(), U(h, {
829
+ De("span", null, Ne(u.title), 1),
830
+ M(_),
831
+ u.hasCreate ? (O(), L(d, {
865
832
  key: 0,
866
833
  class: "mx-3",
867
- icon: N(Ml),
868
- onClick: g[0] || (g[0] = j(($) => s("create"), ["stop"]))
869
- }, null, 8, ["icon"])) : Z("", !0),
870
- c.hasDelete ? (C(), U(h, {
834
+ icon: N(Ea),
835
+ onClick: f[0] || (f[0] = j((T) => l("create"), ["stop"]))
836
+ }, null, 8, ["icon"])) : Y("", !0),
837
+ u.hasDelete ? (O(), L(d, {
871
838
  key: 1,
872
839
  class: "mx-3",
873
840
  icon: N(ae),
874
- onClick: g[1] || (g[1] = j(($) => s("delete", c.index), ["stop"]))
875
- }, null, 8, ["icon"])) : Z("", !0)
841
+ onClick: f[1] || (f[1] = j((T) => l("delete", u.index), ["stop"]))
842
+ }, null, 8, ["icon"])) : Y("", !0)
843
+ ], 36)), [
844
+ [h]
845
+ ]);
846
+ };
847
+ }
848
+ }), Ma = /* @__PURE__ */ H({
849
+ __name: "entry",
850
+ props: {
851
+ minHeight: {}
852
+ },
853
+ setup(e) {
854
+ const { backgroundColor2: t, highlightColor: n } = ke(), r = R(!1), l = X(() => ({
855
+ background: r.value ? n.value : t.value,
856
+ minHeight: e.minHeight,
857
+ paddingRight: "4px",
858
+ marginBottom: "1px",
859
+ userSelect: "none"
860
+ })), i = (a) => {
861
+ Rt.emit("propTreeMenu", {
862
+ x: a.clientX,
863
+ y: a.clientY
864
+ });
865
+ };
866
+ return (a, s) => {
867
+ const o = ue("ripple");
868
+ return ee((O(), Z("div", {
869
+ class: "d-flex justify-space-between align-center cursor-pointer",
870
+ style: Qe(l.value),
871
+ onContextmenu: j(i, ["prevent"]),
872
+ onMouseover: s[0] || (s[0] = (u) => r.value = !0),
873
+ onMouseout: s[1] || (s[1] = (u) => r.value = !1)
874
+ }, [
875
+ $n(a.$slots, "default")
876
876
  ], 36)), [
877
- [T]
877
+ [o]
878
878
  ]);
879
879
  };
880
880
  }
881
- }), Mt = (e) => !(e instanceof Array), Ce = (e) => e instanceof Array, ot = (e) => !(e instanceof Array), Ue = (e) => e instanceof Array, Ul = [
881
+ }), st = (e) => !(e instanceof Array), xe = (e) => e instanceof Array, La = [
882
882
  ["basic", "id"],
883
883
  ["basic", "name"]
884
- ], xl = (e) => (Ul.forEach((t) => {
885
- if (Re(e, t))
886
- return !0;
887
- }), !1), He = (e, t, n, r, s, a, d) => (e = un(e), a !== void 0 ? (e.push(a), d && e.push(t.key)) : e.push(t.key), xl(e), t.ui ? t.array && a === void 0 ? Bl(
884
+ ], xa = (e) => La.find((t) => He(e, t)), je = (e, t, n, r, l, i, a) => (e = un(e), i !== void 0 ? (e.push(i), a && e.push(t.key)) : e.push(t.key), xa(e) ? (r.change = !1, r.change) : t.ui ? t.array && i === void 0 ? Ba(
888
885
  e,
889
886
  t,
890
887
  n,
891
888
  r,
892
- s,
893
- a,
894
- d
895
- ) : Rl(t, n, r, a, d) : t.array ? Nl(
889
+ l,
890
+ i,
891
+ a
892
+ ) : Ra(t, n, r, i, a) : t.array ? Na(
896
893
  e,
897
894
  t,
898
895
  n,
899
896
  r,
900
- s,
901
- a,
902
- d
903
- ) : Fl(
897
+ l,
898
+ i,
899
+ a
900
+ ) : Fa(
904
901
  e,
905
902
  t,
906
903
  n,
907
904
  r,
908
- s,
909
- a,
910
- d
911
- )), Nl = (e, t, n, r, s, a, d) => {
905
+ l,
906
+ i,
907
+ a
908
+ )), Na = (e, t, n, r, l, i, a) => {
912
909
  if (t.ui)
913
910
  return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
914
911
  if (!t.array)
915
912
  return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
916
- if (!Ue(r.children))
913
+ if (!xe(r.children))
917
914
  return console.assert(!1, "execPropBranchArray state children must be array"), !1;
918
- let f;
919
- a !== void 0 && !d ? (n[a] instanceof Array || (n[a] = L(t), s == null || s(e, n[a])), f = n[a]) : (n[t.key] instanceof Array || (n[t.key] = L(t), s == null || s(e, n[t.key])), f = n[t.key]), r.change = !1;
920
- for (let p = 0; p < f.length; p++)
915
+ let s;
916
+ i !== void 0 && !a ? (n[i] instanceof Array || (n[i] = E(t), l == null || l(e, n[i])), s = n[i]) : (n[t.key] instanceof Array || (n[t.key] = E(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
917
+ for (let o = 0; o < s.length; o++)
921
918
  r.children.push({
922
919
  change: !1,
923
920
  children: {}
924
- }), t.children.forEach((c) => {
925
- if (!Ue(r.children)) {
921
+ }), t.children.forEach((u) => {
922
+ if (!xe(r.children)) {
926
923
  console.assert(!1);
927
924
  return;
928
925
  }
929
- const g = r.children[p];
930
- if (!ot(g.children)) {
926
+ const f = r.children[o];
927
+ if (!st(f.children)) {
931
928
  console.assert(!1);
932
929
  return;
933
930
  }
934
- g.children[c.key] = {
931
+ f.children[u.key] = {
935
932
  change: !1,
936
- children: c.array ? [] : {}
937
- }, He(
933
+ children: u.array ? [] : {}
934
+ }, je(
938
935
  e,
939
- c,
940
- f[p],
941
- g.children[c.key],
942
- s,
943
- p,
936
+ u,
937
+ s[o],
938
+ f.children[u.key],
939
+ l,
940
+ o,
944
941
  !0
945
- ) && (g.change = !0), g.change && (r.change = !0);
942
+ ) && (f.change = !0), f.change && (r.change = !0);
946
943
  });
947
- return r.change || (r.change = !Re(f, L(t))), r.change;
948
- }, Fl = (e, t, n, r, s, a, d) => {
944
+ return r.change || (r.change = !He(s, E(t))), r.change;
945
+ }, Fa = (e, t, n, r, l, i, a) => {
949
946
  if (t.ui)
950
947
  return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
951
948
  if (t.array)
952
949
  return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
953
- if (!ot(r.children))
950
+ if (!st(r.children))
954
951
  return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
955
- let f;
956
- a !== void 0 && !d ? (n[a] || (n[a] = {}), f = n[a]) : (n[t.key] || (n[t.key] = {}), f = n[t.key]), r.change = !1;
957
- for (let p = 0; p < t.children.length; p++) {
958
- const c = t.children[p];
959
- r.children[c.key] = {
952
+ let s;
953
+ i !== void 0 && !a ? (n[i] || (n[i] = {}), s = n[i]) : (n[t.key] || (n[t.key] = {}), s = n[t.key]), r.change = !1;
954
+ for (let o = 0; o < t.children.length; o++) {
955
+ const u = t.children[o];
956
+ r.children[u.key] = {
960
957
  change: !1,
961
- children: c.array ? [] : {}
962
- }, He(e, c, f, r.children[c.key], s) && (r.change = !0);
958
+ children: u.array ? [] : {}
959
+ }, je(e, u, s, r.children[u.key], l) && (r.change = !0);
963
960
  }
964
961
  return r.change;
965
- }, Bl = (e, t, n, r, s, a, d) => {
962
+ }, Ba = (e, t, n, r, l, i, a) => {
966
963
  if (!t.ui)
967
964
  return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
968
965
  if (!t.array)
969
966
  return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
970
- if (!Ue(r.children))
967
+ if (!xe(r.children))
971
968
  return console.assert(!1, "execPropLeafArray state children must be array"), !1;
972
- let f;
973
- a !== void 0 && !d ? (n[a] instanceof Array || (n[a] = L(t), s == null || s(e, n[a])), f = n[a]) : (n[t.key] instanceof Array || (n[t.key] = L(t), s == null || s(e, n[t.key])), f = n[t.key]), r.change = !1;
974
- for (let p = 0; p < f.length; p++)
975
- r.children[p] = {
969
+ let s;
970
+ i !== void 0 && !a ? (n[i] instanceof Array || (n[i] = E(t), l == null || l(e, n[i])), s = n[i]) : (n[t.key] instanceof Array || (n[t.key] = E(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
971
+ for (let o = 0; o < s.length; o++)
972
+ r.children[o] = {
976
973
  change: !1,
977
974
  children: {}
978
- }, He(e, t, f, r.children[p], s, p, !1) && (r.change = !0);
979
- return r.change || (r.change = !Re(f, L(t))), r.change;
980
- }, Rl = (e, t, n, r, s) => {
975
+ }, je(e, t, s, r.children[o], l, o, !1) && (r.change = !0);
976
+ return r.change || (r.change = !He(s, E(t))), r.change;
977
+ }, Ra = (e, t, n, r, l) => {
981
978
  if (!e.ui)
982
979
  return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
983
- let a;
984
- return r !== void 0 && !s ? a = t[r] : a = t[e.key], n.change = !Re(a, L(e, !0)), n.change;
985
- }, Ut = (e, t, n) => {
986
- if (e.length <= 0 || !t)
987
- return {};
988
- const r = {};
989
- return e.forEach((s) => {
990
- r[s.key] = {
980
+ let i;
981
+ return r !== void 0 && !l ? i = t[r] : i = t[e.key], n.change = !He(i, E(e, !0)), n.change;
982
+ }, Mt = (e, t, n, r) => {
983
+ if (t.length <= 0 || !n) {
984
+ e.value = {};
985
+ return;
986
+ }
987
+ const l = {};
988
+ t.forEach((i) => {
989
+ l[i.key] = {
991
990
  change: !1,
992
- children: s.array ? [] : {}
993
- }, He([], s, t, r[s.key], n);
994
- }), r;
995
- }, Hl = { class: "d-flex justify-space-between align-center" }, jl = /* @__PURE__ */ H({
996
- __name: "colorPicker",
991
+ children: i.array ? [] : {}
992
+ }, je([], i, n, l[i.key], r);
993
+ }), e.value = l;
994
+ }, ge = (e, t) => {
995
+ let n, r = e.value;
996
+ return t.forEach((l) => {
997
+ let i;
998
+ if (typeof l == "string" ? st(r) && (i = r[l]) : xe(r) && (i = r[l]), !i)
999
+ return console.assert(!1, `isPropChanged unpkg failed keys=${t}`), !1;
1000
+ n = i, r = i.children;
1001
+ }), (n == null ? void 0 : n.change) ?? !1;
1002
+ };
1003
+ function Ha(e, t, n) {
1004
+ const { t: r } = $e();
1005
+ return { renderProp: (i, a, s) => {
1006
+ let o = r(a.name);
1007
+ return ge(e, i) && (o += " *"), g(
1008
+ Ma,
1009
+ {
1010
+ minHeight: t.value
1011
+ },
1012
+ () => [
1013
+ g("span", { class: "ml-1", innerHTML: o }),
1014
+ g("div", { style: { width: n.value } }, s)
1015
+ ]
1016
+ );
1017
+ } };
1018
+ }
1019
+ function ja(e) {
1020
+ return { renderUiDummy: (n, r, l, i, a) => {
1021
+ if (r.ui !== "dummy")
1022
+ return console.assert(!1), g("div", "renderUiDummy prop ui must be dummy");
1023
+ if (i !== void 0 && !a) {
1024
+ const s = E(r, !0);
1025
+ typeof l[i] != typeof s && (l[i] = s, e(n, l[i]));
1026
+ } else {
1027
+ const s = E(r);
1028
+ typeof l[r.key] != typeof s && (l[r.key] = s, e(n, l[r.key]));
1029
+ }
1030
+ } };
1031
+ }
1032
+ const Ga = { class: "d-flex justify-space-between align-center" }, za = /* @__PURE__ */ H({
1033
+ __name: "strInput",
997
1034
  props: /* @__PURE__ */ F({
998
1035
  hasDelete: { type: Boolean, default: !1 },
999
1036
  readonly: { type: Boolean, default: !1 }
@@ -1003,160 +1040,59 @@ const Oe = /* @__PURE__ */ H({
1003
1040
  }),
1004
1041
  emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
1005
1042
  setup(e, { emit: t }) {
1006
- const n = de(e, "modelValue"), r = t, s = Y(() => {
1007
- let f = "100%";
1008
- return e.hasDelete && (f = "calc(100% - 37px)"), {
1009
- width: f
1010
- };
1011
- }), a = Y(() => e.readonly), d = R("hexa");
1012
- return (f, p) => {
1013
- const c = P("v-btn"), g = P("v-icon"), h = P("v-color-picker"), y = P("v-menu");
1014
- return C(), U(y, { "close-on-content-click": !1 }, {
1015
- activator: K(({ props: T }) => [
1016
- Ee("div", Hl, [
1017
- Ee("div", {
1018
- style: Ie(s.value)
1019
- }, [
1020
- M(c, Ft(T, {
1021
- density: "comfortable",
1022
- color: n.value,
1023
- block: "",
1024
- disabled: a.value
1025
- }), {
1026
- default: K(() => [
1027
- Je(xe(n.value), 1)
1028
- ]),
1029
- _: 2
1030
- }, 1040, ["color", "disabled"])
1031
- ], 4),
1032
- f.hasDelete ? (C(), U(g, {
1033
- key: 0,
1034
- class: "mx-2",
1035
- icon: N(ae),
1036
- onClick: p[0] || (p[0] = j(($) => r("delete"), ["stop"]))
1037
- }, null, 8, ["icon"])) : Z("", !0)
1038
- ])
1039
- ]),
1040
- default: K(() => [
1041
- M(h, {
1042
- modelValue: n.value,
1043
- "onUpdate:modelValue": p[1] || (p[1] = (T) => n.value = T),
1044
- mode: d.value,
1045
- "onUpdate:mode": p[2] || (p[2] = (T) => d.value = T),
1046
- "show-swatches": "",
1047
- "swatches-max-height": "150px"
1048
- }, null, 8, ["modelValue", "mode"])
1049
- ]),
1050
- _: 1
1051
- });
1052
- };
1053
- }
1054
- }), Gl = /* @__PURE__ */ H({
1055
- __name: "compSelect",
1056
- setup(e) {
1057
- const t = Y(() => "<n/a>"), n = () => {
1058
- }, { open: r } = Rt("compSelectDlg", n);
1059
- return (s, a) => {
1060
- const d = P("v-btn"), f = P("v-dialog");
1061
- return C(), U(f, {
1062
- modelValue: N(r),
1063
- "onUpdate:modelValue": a[0] || (a[0] = (p) => xt(r) ? r.value = p : null)
1064
- }, {
1065
- activator: K(({ props: p }) => [
1066
- M(d, Ft(p, {
1067
- density: "comfortable",
1068
- block: ""
1069
- }), {
1070
- default: K(() => [
1071
- Je(xe(t.value), 1)
1072
- ]),
1073
- _: 2
1074
- }, 1040)
1075
- ]),
1076
- _: 1
1077
- }, 8, ["modelValue"]);
1078
- };
1079
- }
1080
- }), zl = { class: "d-flex justify-space-between align-center my-2" }, ql = /* @__PURE__ */ H({
1081
- __name: "multiTypes",
1082
- props: /* @__PURE__ */ F({
1083
- hasDelete: { type: Boolean, default: !1 },
1084
- types: {}
1085
- }, {
1086
- modelValue: { default: "" },
1087
- modelModifiers: {}
1088
- }),
1089
- emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
1090
- setup(e, { emit: t }) {
1091
- const { t: n } = Qe(), r = de(e, "modelValue"), s = t, a = R(0), d = Y(() => {
1092
- const c = [];
1093
- return e.types.forEach((g, h) => {
1094
- c.push({
1095
- title: n(g.name),
1096
- value: h
1097
- });
1098
- }), c;
1099
- });
1100
- e.types.some((c, g) => c.validator(r.value) ? (a.value = g, !0) : !1);
1101
- const f = Y(() => e.types[a.value]);
1102
- qe(f, (c) => {
1103
- r.value = c.default;
1104
- });
1105
- const p = R(0);
1106
- return bn(() => {
1107
- f.value.ui === "pixelInput" ? p.value = wn(r.value) : f.value.ui === "percentInput" && (p.value = Sn(r.value));
1108
- }), qe(p, (c) => {
1109
- f.value.ui === "pixelInput" ? r.value = c + "px" : f.value.ui === "percentInput" && (r.value = c + "%");
1110
- }), (c, g) => {
1111
- const h = P("v-select"), y = P("v-number-input"), T = P("v-icon"), $ = fe("ripple");
1112
- return C(), W("div", zl, [
1113
- Ee("div", null, [
1114
- k(M(h, {
1115
- modelValue: a.value,
1116
- "onUpdate:modelValue": g[0] || (g[0] = (b) => a.value = b),
1117
- density: "compact",
1118
- items: d.value,
1119
- "hide-details": "",
1120
- "single-line": ""
1121
- }, null, 8, ["modelValue", "items"]), [
1122
- [
1123
- $,
1124
- void 0,
1125
- void 0,
1126
- { stop: !0 }
1127
- ]
1128
- ]),
1129
- f.value.ui === "pixelInput" || f.value.ui === "percentInput" ? k((C(), U(y, {
1130
- key: 0,
1131
- modelValue: p.value,
1132
- "onUpdate:modelValue": g[1] || (g[1] = (b) => p.value = b),
1133
- density: "compact",
1134
- "control-variant": "stacked",
1135
- precision: f.value.precision,
1136
- min: f.value.min,
1137
- max: f.value.max,
1138
- step: f.value.step,
1139
- "hide-details": "",
1140
- "single-line": ""
1141
- }, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
1142
- [
1143
- $,
1144
- void 0,
1145
- void 0,
1146
- { stop: !0 }
1147
- ]
1148
- ]) : Z("", !0)
1043
+ const n = ce(e, "modelValue"), r = t;
1044
+ return (l, i) => {
1045
+ const a = P("v-text-field"), s = P("v-icon"), o = ue("ripple");
1046
+ return O(), Z("div", Ga, [
1047
+ ee(M(a, {
1048
+ modelValue: n.value,
1049
+ "onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
1050
+ density: "compact",
1051
+ "hide-details": "",
1052
+ "single-line": "",
1053
+ readonly: l.readonly
1054
+ }, null, 8, ["modelValue", "readonly"]), [
1055
+ [
1056
+ o,
1057
+ void 0,
1058
+ void 0,
1059
+ { stop: !0 }
1060
+ ]
1149
1061
  ]),
1150
- c.hasDelete ? (C(), U(T, {
1062
+ l.hasDelete ? (O(), L(s, {
1151
1063
  key: 0,
1152
1064
  class: "mx-2",
1153
1065
  icon: N(ae),
1154
- onClick: g[2] || (g[2] = j((b) => s("delete"), ["stop"]))
1155
- }, null, 8, ["icon"])) : Z("", !0)
1066
+ onClick: i[1] || (i[1] = j((u) => r("delete"), ["stop"]))
1067
+ }, null, 8, ["icon"])) : Y("", !0)
1156
1068
  ]);
1157
1069
  };
1158
1070
  }
1159
- }), Kl = { class: "d-flex justify-space-between align-center" }, Xl = /* @__PURE__ */ H({
1071
+ }), fe = (e, t, n, r, l, i) => {
1072
+ const a = E(t, !0);
1073
+ return l !== void 0 && !i ? (typeof n[l] != typeof a && (n[l] = a, r(e, n[l])), n[l]) : (typeof n[t.key] != typeof a && (n[t.key] = a, r(e, n[t.key])), n[t.key]);
1074
+ }, de = (e, t, n, r, l, i, a) => {
1075
+ const s = E(t, !0);
1076
+ if (typeof r != typeof s) {
1077
+ console.assert(!1);
1078
+ return;
1079
+ }
1080
+ i !== void 0 && !a ? r !== n[i] && (n[i] = r, l(e, n[i])) : r !== n[t.key] && (n[t.key] = r, l(e, n[t.key]));
1081
+ };
1082
+ function qa(e) {
1083
+ return { renderUiStrInput: (n, r, l, i, a) => r.ui !== "strInput" ? (console.assert(!1), g("div", "renderUiStrInput prop ui must be strInput")) : g(za, {
1084
+ modelValue: r.static ? r.value : fe(n, r, l, e, i, a),
1085
+ "onUpdate:modelValue": (s) => {
1086
+ r.static || de(n, r, l, s, e, i, a);
1087
+ },
1088
+ hasDelete: i !== void 0 && !a,
1089
+ onDelete: () => {
1090
+ i === void 0 || a || (l.splice(i, 1), e(n.slice(0, -1), l));
1091
+ },
1092
+ readonly: r.static || r.readonly
1093
+ }) };
1094
+ }
1095
+ const Ka = { class: "d-flex justify-space-between align-center" }, Ia = /* @__PURE__ */ H({
1160
1096
  __name: "numInput",
1161
1097
  props: /* @__PURE__ */ F({
1162
1098
  hasDelete: { type: Boolean, default: !1 },
@@ -1171,153 +1107,362 @@ const Oe = /* @__PURE__ */ H({
1171
1107
  }),
1172
1108
  emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
1173
1109
  setup(e, { emit: t }) {
1174
- const n = de(e, "modelValue"), r = t;
1175
- return (s, a) => {
1176
- const d = P("v-number-input"), f = P("v-icon"), p = fe("ripple");
1177
- return C(), W("div", Kl, [
1178
- k(M(d, {
1110
+ const n = ce(e, "modelValue"), r = t;
1111
+ return (l, i) => {
1112
+ const a = P("v-number-input"), s = P("v-icon"), o = ue("ripple");
1113
+ return O(), Z("div", Ka, [
1114
+ ee(M(a, {
1179
1115
  modelValue: n.value,
1180
- "onUpdate:modelValue": a[0] || (a[0] = (c) => n.value = c),
1116
+ "onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
1181
1117
  density: "compact",
1182
1118
  "control-variant": "stacked",
1183
- precision: s.precision,
1184
- min: s.min,
1185
- max: s.max,
1186
- step: s.step,
1119
+ precision: l.precision,
1120
+ min: l.min,
1121
+ max: l.max,
1122
+ step: l.step,
1187
1123
  "hide-details": "",
1188
1124
  "single-line": "",
1189
- readonly: s.readonly
1125
+ readonly: l.readonly
1190
1126
  }, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
1191
1127
  [
1192
- p,
1128
+ o,
1193
1129
  void 0,
1194
1130
  void 0,
1195
1131
  { stop: !0 }
1196
1132
  ]
1197
1133
  ]),
1198
- s.hasDelete ? (C(), U(f, {
1134
+ l.hasDelete ? (O(), L(s, {
1199
1135
  key: 0,
1200
1136
  class: "mx-2",
1201
1137
  icon: N(ae),
1202
- onClick: a[1] || (a[1] = j((c) => r("delete"), ["stop"]))
1203
- }, null, 8, ["icon"])) : Z("", !0)
1138
+ onClick: i[1] || (i[1] = j((u) => r("delete"), ["stop"]))
1139
+ }, null, 8, ["icon"])) : Y("", !0)
1204
1140
  ]);
1205
1141
  };
1206
1142
  }
1207
- }), Yl = { class: "d-flex justify-space-between align-center" }, Zl = /* @__PURE__ */ H({
1208
- __name: "select",
1143
+ });
1144
+ function Xa(e) {
1145
+ return { renderUiNumInput: (n, r, l, i, a) => r.ui !== "numInput" ? (console.assert(!1), g("div", "renderUiNumInput prop ui must be numInput")) : g(Ia, {
1146
+ modelValue: fe(n, r, l, e, i, a),
1147
+ "onUpdate:modelValue": (s) => {
1148
+ de(n, r, l, s, e, i, a);
1149
+ },
1150
+ hasDelete: i !== void 0 && !a,
1151
+ onDelete: () => {
1152
+ i === void 0 || a || (l.splice(i, 1), e(n.slice(0, -1), l));
1153
+ },
1154
+ readonly: r.readonly
1155
+ }) };
1156
+ }
1157
+ const Ya = { class: "d-flex justify-space-between align-center" }, Za = /* @__PURE__ */ H({
1158
+ __name: "switch",
1209
1159
  props: /* @__PURE__ */ F({
1210
1160
  hasDelete: { type: Boolean, default: !1 },
1211
- readonly: { type: Boolean, default: !1 },
1212
- items: {}
1161
+ readonly: { type: Boolean, default: !1 }
1213
1162
  }, {
1214
- modelValue: {},
1163
+ modelValue: { type: Boolean },
1215
1164
  modelModifiers: {}
1216
1165
  }),
1217
1166
  emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
1218
1167
  setup(e, { emit: t }) {
1219
- const n = de(e, "modelValue"), r = t;
1220
- return (s, a) => {
1221
- const d = P("v-select"), f = P("v-icon"), p = fe("ripple");
1222
- return C(), W("div", Yl, [
1223
- k(M(d, {
1168
+ const n = ce(e, "modelValue"), r = t;
1169
+ return (l, i) => {
1170
+ const a = P("v-switch"), s = P("v-icon");
1171
+ return O(), Z("div", Ya, [
1172
+ M(a, {
1224
1173
  modelValue: n.value,
1225
- "onUpdate:modelValue": a[0] || (a[0] = (c) => n.value = c),
1174
+ "onUpdate:modelValue": i[0] || (i[0] = (o) => n.value = o),
1175
+ class: "ml-1",
1226
1176
  density: "compact",
1227
- items: s.items,
1177
+ color: "primary",
1228
1178
  "hide-details": "",
1229
- "single-line": "",
1230
- readonly: s.readonly
1231
- }, null, 8, ["modelValue", "items", "readonly"]), [
1232
- [
1233
- p,
1234
- void 0,
1235
- void 0,
1236
- { stop: !0 }
1237
- ]
1238
- ]),
1239
- s.hasDelete ? (C(), U(f, {
1179
+ readonly: l.readonly
1180
+ }, null, 8, ["modelValue", "readonly"]),
1181
+ l.hasDelete ? (O(), L(s, {
1240
1182
  key: 0,
1241
1183
  class: "mx-2",
1242
1184
  icon: N(ae),
1243
- onClick: a[1] || (a[1] = j((c) => r("delete"), ["stop"]))
1244
- }, null, 8, ["icon"])) : Z("", !0)
1185
+ onClick: i[1] || (i[1] = j((o) => r("delete"), ["stop"]))
1186
+ }, null, 8, ["icon"])) : Y("", !0)
1245
1187
  ]);
1246
1188
  };
1247
1189
  }
1248
- }), Wl = { class: "d-flex justify-space-between align-center" }, Il = /* @__PURE__ */ H({
1249
- __name: "strInput",
1190
+ });
1191
+ function Wa(e) {
1192
+ return { renderUiSwitch: (n, r, l, i, a) => r.ui !== "switch" ? (console.assert(!1), g("div", "renderUiSwitch prop ui must be switch")) : g(Za, {
1193
+ modelValue: fe(n, r, l, e, i, a),
1194
+ "onUpdate:modelValue": (s) => {
1195
+ de(n, r, l, s, e, i, a);
1196
+ },
1197
+ hasDelete: i !== void 0 && !a,
1198
+ onDelete: () => {
1199
+ i === void 0 || a || (l.splice(i, 1), e(n.slice(0, 1), l));
1200
+ },
1201
+ readonly: r.readonly
1202
+ }) };
1203
+ }
1204
+ const Ja = { class: "d-flex justify-space-between align-center" }, Qa = /* @__PURE__ */ H({
1205
+ __name: "select",
1250
1206
  props: /* @__PURE__ */ F({
1251
1207
  hasDelete: { type: Boolean, default: !1 },
1252
- readonly: { type: Boolean, default: !1 }
1208
+ readonly: { type: Boolean, default: !1 },
1209
+ items: {}
1253
1210
  }, {
1254
1211
  modelValue: {},
1255
1212
  modelModifiers: {}
1256
1213
  }),
1257
1214
  emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
1258
1215
  setup(e, { emit: t }) {
1259
- const n = de(e, "modelValue"), r = t;
1260
- return (s, a) => {
1261
- const d = P("v-text-field"), f = P("v-icon"), p = fe("ripple");
1262
- return C(), W("div", Wl, [
1263
- k(M(d, {
1216
+ const n = ce(e, "modelValue"), r = t;
1217
+ return (l, i) => {
1218
+ const a = P("v-select"), s = P("v-icon"), o = ue("ripple");
1219
+ return O(), Z("div", Ja, [
1220
+ ee(M(a, {
1264
1221
  modelValue: n.value,
1265
- "onUpdate:modelValue": a[0] || (a[0] = (c) => n.value = c),
1222
+ "onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
1266
1223
  density: "compact",
1224
+ items: l.items,
1267
1225
  "hide-details": "",
1268
1226
  "single-line": "",
1269
- readonly: s.readonly
1270
- }, null, 8, ["modelValue", "readonly"]), [
1227
+ readonly: l.readonly
1228
+ }, null, 8, ["modelValue", "items", "readonly"]), [
1271
1229
  [
1272
- p,
1230
+ o,
1273
1231
  void 0,
1274
1232
  void 0,
1275
1233
  { stop: !0 }
1276
1234
  ]
1277
1235
  ]),
1278
- s.hasDelete ? (C(), U(f, {
1236
+ l.hasDelete ? (O(), L(s, {
1279
1237
  key: 0,
1280
1238
  class: "mx-2",
1281
1239
  icon: N(ae),
1282
- onClick: a[1] || (a[1] = j((c) => r("delete"), ["stop"]))
1283
- }, null, 8, ["icon"])) : Z("", !0)
1240
+ onClick: i[1] || (i[1] = j((u) => r("delete"), ["stop"]))
1241
+ }, null, 8, ["icon"])) : Y("", !0)
1284
1242
  ]);
1285
1243
  };
1286
1244
  }
1287
- }), Jl = { class: "d-flex justify-space-between align-center" }, Ql = /* @__PURE__ */ H({
1288
- __name: "switch",
1245
+ });
1246
+ function ka(e) {
1247
+ const { t } = $e();
1248
+ return { renderUiSelect: (r, l, i, a, s) => l.ui !== "select" ? (console.assert(!1), g("div", "renderUiSelect prop ui must be select")) : g(Qa, {
1249
+ modelValue: fe(r, l, i, e, a, s),
1250
+ "onUpdate:modelValue": (o) => {
1251
+ de(r, l, i, o, e, a, s);
1252
+ },
1253
+ hasDelete: a !== void 0 && !s,
1254
+ onDelete: () => {
1255
+ a === void 0 || s || (i.splice(a, 1), e(r.slice(0, -1), i));
1256
+ },
1257
+ items: (() => {
1258
+ const o = [];
1259
+ return l.items.forEach(({ title: u, value: f }) => {
1260
+ o.push({
1261
+ title: t(u),
1262
+ value: f
1263
+ });
1264
+ }), o;
1265
+ })(),
1266
+ readonly: l.readonly
1267
+ }) };
1268
+ }
1269
+ const es = /* @__PURE__ */ H({
1270
+ __name: "compSelect",
1271
+ setup(e) {
1272
+ const t = X(() => "<n/a>"), n = () => {
1273
+ }, { open: r } = Bt("compSelectDlg", n);
1274
+ return (l, i) => {
1275
+ const a = P("v-btn"), s = P("v-dialog");
1276
+ return O(), L(s, {
1277
+ modelValue: N(r),
1278
+ "onUpdate:modelValue": i[0] || (i[0] = (o) => xt(r) ? r.value = o : null)
1279
+ }, {
1280
+ activator: K(({ props: o }) => [
1281
+ M(a, Ft(o, {
1282
+ density: "comfortable",
1283
+ block: ""
1284
+ }), {
1285
+ default: K(() => [
1286
+ Je(Ne(t.value), 1)
1287
+ ]),
1288
+ _: 2
1289
+ }, 1040)
1290
+ ]),
1291
+ _: 1
1292
+ }, 8, ["modelValue"]);
1293
+ };
1294
+ }
1295
+ });
1296
+ function ts(e) {
1297
+ return { renderUiCompSelect: (n, r, l, i, a) => r.ui !== "compSelect" ? (console.assert(!1), g("div", "renderUiCompSelect prop ui must be compSelect")) : (console.log(n, r, l, i, a, e), g(es, {})) };
1298
+ }
1299
+ const ns = { class: "d-flex justify-space-between align-center" }, rs = /* @__PURE__ */ H({
1300
+ __name: "colorPicker",
1289
1301
  props: /* @__PURE__ */ F({
1290
1302
  hasDelete: { type: Boolean, default: !1 },
1291
1303
  readonly: { type: Boolean, default: !1 }
1292
1304
  }, {
1293
- modelValue: { type: Boolean },
1305
+ modelValue: {},
1294
1306
  modelModifiers: {}
1295
1307
  }),
1296
1308
  emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
1297
1309
  setup(e, { emit: t }) {
1298
- const n = de(e, "modelValue"), r = t;
1299
- return (s, a) => {
1300
- const d = P("v-switch"), f = P("v-icon");
1301
- return C(), W("div", Jl, [
1302
- M(d, {
1303
- modelValue: n.value,
1304
- "onUpdate:modelValue": a[0] || (a[0] = (p) => n.value = p),
1305
- class: "ml-1",
1306
- density: "compact",
1307
- color: "primary",
1308
- "hide-details": "",
1309
- readonly: s.readonly
1310
- }, null, 8, ["modelValue", "readonly"]),
1311
- s.hasDelete ? (C(), U(f, {
1310
+ const n = ce(e, "modelValue"), r = t, l = X(() => {
1311
+ let s = "100%";
1312
+ return e.hasDelete && (s = "calc(100% - 37px)"), {
1313
+ width: s
1314
+ };
1315
+ }), i = X(() => e.readonly), a = R("hexa");
1316
+ return (s, o) => {
1317
+ const u = P("v-btn"), f = P("v-icon"), d = P("v-color-picker"), _ = P("v-menu");
1318
+ return O(), L(_, { "close-on-content-click": !1 }, {
1319
+ activator: K(({ props: h }) => [
1320
+ De("div", ns, [
1321
+ De("div", {
1322
+ style: Qe(l.value)
1323
+ }, [
1324
+ M(u, Ft(h, {
1325
+ density: "comfortable",
1326
+ color: n.value,
1327
+ block: "",
1328
+ disabled: i.value
1329
+ }), {
1330
+ default: K(() => [
1331
+ Je(Ne(n.value), 1)
1332
+ ]),
1333
+ _: 2
1334
+ }, 1040, ["color", "disabled"])
1335
+ ], 4),
1336
+ s.hasDelete ? (O(), L(f, {
1337
+ key: 0,
1338
+ class: "mx-2",
1339
+ icon: N(ae),
1340
+ onClick: o[0] || (o[0] = j((T) => r("delete"), ["stop"]))
1341
+ }, null, 8, ["icon"])) : Y("", !0)
1342
+ ])
1343
+ ]),
1344
+ default: K(() => [
1345
+ M(d, {
1346
+ modelValue: n.value,
1347
+ "onUpdate:modelValue": o[1] || (o[1] = (h) => n.value = h),
1348
+ mode: a.value,
1349
+ "onUpdate:mode": o[2] || (o[2] = (h) => a.value = h),
1350
+ "show-swatches": "",
1351
+ "swatches-max-height": "150px"
1352
+ }, null, 8, ["modelValue", "mode"])
1353
+ ]),
1354
+ _: 1
1355
+ });
1356
+ };
1357
+ }
1358
+ });
1359
+ function is(e) {
1360
+ return { renderUiColorPicker: (n, r, l, i, a) => r.ui !== "colorPicker" ? (console.assert(!1), g("div", "renderUiColorPicker prop ui must be colorPicker")) : g(rs, {
1361
+ modelValue: fe(n, r, l, e, i, a),
1362
+ "onUpdate:modelValue": (s) => {
1363
+ de(n, r, l, s, e, i, a);
1364
+ },
1365
+ hasDelete: i !== void 0 && !a,
1366
+ onDelete: () => {
1367
+ i === void 0 || a || (l.splice(i, 1), e(n.slice(0, -1), l));
1368
+ },
1369
+ readonly: r.readonly
1370
+ }) };
1371
+ }
1372
+ const ls = { class: "d-flex justify-space-between align-center my-2" }, as = /* @__PURE__ */ H({
1373
+ __name: "multiTypes",
1374
+ props: /* @__PURE__ */ F({
1375
+ hasDelete: { type: Boolean, default: !1 },
1376
+ types: {}
1377
+ }, {
1378
+ modelValue: { default: "" },
1379
+ modelModifiers: {}
1380
+ }),
1381
+ emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
1382
+ setup(e, { emit: t }) {
1383
+ const { t: n } = $e(), r = ce(e, "modelValue"), l = t, i = R(0), a = X(() => {
1384
+ const u = [];
1385
+ return e.types.forEach((f, d) => {
1386
+ u.push({
1387
+ title: n(f.name),
1388
+ value: d
1389
+ });
1390
+ }), u;
1391
+ });
1392
+ e.types.some((u, f) => u.validator(r.value) ? (i.value = f, !0) : !1);
1393
+ const s = X(() => e.types[i.value]);
1394
+ Ke(s, (u) => {
1395
+ r.value = u.default;
1396
+ });
1397
+ const o = R(0);
1398
+ return bn(() => {
1399
+ s.value.ui === "pixelInput" ? o.value = wn(r.value) : s.value.ui === "percentInput" && (o.value = Sn(r.value));
1400
+ }), Ke(o, (u) => {
1401
+ s.value.ui === "pixelInput" ? r.value = u + "px" : s.value.ui === "percentInput" && (r.value = u + "%");
1402
+ }), (u, f) => {
1403
+ const d = P("v-select"), _ = P("v-number-input"), h = P("v-icon"), T = ue("ripple");
1404
+ return O(), Z("div", ls, [
1405
+ De("div", null, [
1406
+ ee(M(d, {
1407
+ modelValue: i.value,
1408
+ "onUpdate:modelValue": f[0] || (f[0] = ($) => i.value = $),
1409
+ density: "compact",
1410
+ items: a.value,
1411
+ "hide-details": "",
1412
+ "single-line": ""
1413
+ }, null, 8, ["modelValue", "items"]), [
1414
+ [
1415
+ T,
1416
+ void 0,
1417
+ void 0,
1418
+ { stop: !0 }
1419
+ ]
1420
+ ]),
1421
+ s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? ee((O(), L(_, {
1422
+ key: 0,
1423
+ modelValue: o.value,
1424
+ "onUpdate:modelValue": f[1] || (f[1] = ($) => o.value = $),
1425
+ density: "compact",
1426
+ "control-variant": "stacked",
1427
+ precision: s.value.precision,
1428
+ min: s.value.min,
1429
+ max: s.value.max,
1430
+ step: s.value.step,
1431
+ "hide-details": "",
1432
+ "single-line": ""
1433
+ }, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
1434
+ [
1435
+ T,
1436
+ void 0,
1437
+ void 0,
1438
+ { stop: !0 }
1439
+ ]
1440
+ ]) : Y("", !0)
1441
+ ]),
1442
+ u.hasDelete ? (O(), L(h, {
1312
1443
  key: 0,
1313
1444
  class: "mx-2",
1314
1445
  icon: N(ae),
1315
- onClick: a[1] || (a[1] = j((p) => r("delete"), ["stop"]))
1316
- }, null, 8, ["icon"])) : Z("", !0)
1446
+ onClick: f[2] || (f[2] = j(($) => l("delete"), ["stop"]))
1447
+ }, null, 8, ["icon"])) : Y("", !0)
1317
1448
  ]);
1318
1449
  };
1319
1450
  }
1320
- }), kl = /* @__PURE__ */ H({
1451
+ });
1452
+ function ss(e) {
1453
+ return { renderUiMultiTypes: (n, r, l, i, a) => r.ui !== "multiTypes" ? (console.assert(!1), g("div", "renderUiMultiTypes prop ui must be multiTypes")) : g(as, {
1454
+ modelValue: fe(n, r, l, e, i, a),
1455
+ "onUpdate:modelValue": (s) => {
1456
+ de(n, r, l, s, e, i, a);
1457
+ },
1458
+ hasDelete: i !== void 0 && !a,
1459
+ onDelete: () => {
1460
+ i === void 0 || a || (l.splice(i, 1), e(n.slice(0, -1), l));
1461
+ },
1462
+ types: r.types
1463
+ }) };
1464
+ }
1465
+ const Lt = (e) => !(e instanceof Array), Ue = (e) => e instanceof Array, os = /* @__PURE__ */ H({
1321
1466
  __name: "index",
1322
1467
  props: {
1323
1468
  unique: {},
@@ -1326,241 +1471,128 @@ const Oe = /* @__PURE__ */ H({
1326
1471
  },
1327
1472
  emits: ["change"],
1328
1473
  setup(e, { emit: t }) {
1329
- const { t: n } = Qe(), { backgroundColor1: r } = ke(), s = e, a = t, d = R("20px"), f = R("56px"), p = R("200px"), c = An({}), g = R({});
1330
- qe(
1331
- [() => s.config, () => s.object],
1474
+ const { t: n } = $e(), { backgroundColor1: r } = ke(), l = e, i = t, a = R("20px"), s = R("56px"), o = R("200px"), u = An({}), f = R({}), d = (m, c) => {
1475
+ Mt(f, l.config, l.object), i("change", m, c);
1476
+ };
1477
+ Ke(
1478
+ [() => l.config, () => l.object],
1332
1479
  () => {
1333
- g.value = Ut(
1334
- s.config,
1335
- s.object,
1336
- (u, i) => {
1337
- a("change", u, i);
1338
- }
1339
- );
1480
+ Mt(f, l.config, l.object, (m, c) => {
1481
+ i("change", m, c);
1482
+ });
1340
1483
  },
1341
1484
  { immediate: !0 }
1342
1485
  );
1343
- const h = (u) => {
1344
- let i, l = g.value;
1345
- return u.forEach((o) => {
1346
- let v;
1347
- if (typeof o == "string" ? ot(l) && (v = l[o]) : Ue(l) && (v = l[o]), !v)
1348
- return console.assert(!1, `isPropChanged unpkg failed keys=${u}`), !1;
1349
- i = v, l = v.children;
1350
- }), (i == null ? void 0 : i.change) ?? !1;
1351
- }, y = (u, i) => {
1352
- g.value = Ut(s.config, s.object), a("change", u, i);
1353
- }, T = (u, i, l) => {
1354
- let o = n(i.name);
1355
- return h(u) && (o += " *"), _(
1356
- Vl,
1357
- {
1358
- minHeight: f.value
1359
- },
1360
- () => [
1361
- _("span", { class: "ml-1", innerHTML: o }),
1362
- _("div", { style: { width: p.value } }, l)
1363
- ]
1364
- );
1365
- }, $ = (u, i, l, o, v) => {
1366
- if (i.ui !== "dummy")
1367
- return console.assert(!1), _("div", "renderUiDummy prop ui must be dummy");
1368
- if (o !== void 0 && !v) {
1369
- const m = L(i, !0);
1370
- typeof l[o] != typeof m && (l[o] = m, y(u, l[o]));
1371
- } else {
1372
- const m = L(i);
1373
- typeof l[i.key] != typeof m && (l[i.key] = m, y(u, l[i.key]));
1374
- }
1375
- }, b = (u, i, l, o, v) => i.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(Il, {
1376
- modelValue: i.static ? i.value : se(u, i, l, o, v),
1377
- "onUpdate:modelValue": (m) => {
1378
- i.static || ue(u, i, l, m, o, v);
1379
- },
1380
- hasDelete: o !== void 0 && !v,
1381
- onDelete: () => {
1382
- o === void 0 || v || (l.splice(o, 1), y(u.slice(0, -1), l));
1383
- },
1384
- readonly: i.static || i.readonly
1385
- }), V = (u, i, l, o, v) => i.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(Xl, {
1386
- modelValue: se(u, i, l, o, v),
1387
- "onUpdate:modelValue": (m) => {
1388
- ue(u, i, l, m, o, v);
1389
- },
1390
- hasDelete: o !== void 0 && !v,
1391
- onDelete: () => {
1392
- o === void 0 || v || (l.splice(o, 1), y(u.slice(0, -1), l));
1393
- },
1394
- readonly: i.readonly
1395
- }), E = (u, i, l, o, v) => i.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(Ql, {
1396
- modelValue: se(u, i, l, o, v),
1397
- "onUpdate:modelValue": (m) => {
1398
- ue(u, i, l, m, o, v);
1399
- },
1400
- hasDelete: o !== void 0 && !v,
1401
- onDelete: () => {
1402
- o === void 0 || v || (l.splice(o, 1), y(u.slice(0, 1), l));
1403
- },
1404
- readonly: i.readonly
1405
- }), z = (u, i, l, o, v) => i.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _(Zl, {
1406
- modelValue: se(u, i, l, o, v),
1407
- "onUpdate:modelValue": (m) => {
1408
- ue(u, i, l, m, o, v);
1409
- },
1410
- hasDelete: o !== void 0 && !v,
1411
- onDelete: () => {
1412
- o === void 0 || v || (l.splice(o, 1), y(u.slice(0, -1), l));
1413
- },
1414
- items: (() => {
1415
- const m = [];
1416
- return i.items.forEach(({ title: O, value: q }) => {
1417
- m.push({
1418
- title: n(O),
1419
- value: q
1420
- });
1421
- }), m;
1422
- })(),
1423
- readonly: i.readonly
1424
- }), be = (u, i, l, o, v) => i.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(jl, {
1425
- modelValue: se(u, i, l, o, v),
1426
- "onUpdate:modelValue": (m) => {
1427
- ue(u, i, l, m, o, v);
1428
- },
1429
- hasDelete: o !== void 0 && !v,
1430
- onDelete: () => {
1431
- o === void 0 || v || (l.splice(o, 1), y(u.slice(0, -1), l));
1432
- },
1433
- readonly: i.readonly
1434
- }), le = (u, i, l, o, v) => i.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(ql, {
1435
- modelValue: se(u, i, l, o, v),
1436
- "onUpdate:modelValue": (m) => {
1437
- ue(u, i, l, m, o, v);
1438
- },
1439
- hasDelete: o !== void 0 && !v,
1440
- onDelete: () => {
1441
- o === void 0 || v || (l.splice(o, 1), y(u.slice(0, -1), l));
1442
- },
1443
- types: i.types
1444
- }), oe = (u, i, l, o, v) => i.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : (console.log(u, i, l, o, v), _(Gl, {})), se = (u, i, l, o, v) => {
1445
- const m = L(i, !0);
1446
- return o !== void 0 && !v ? (typeof l[o] != typeof m && (l[o] = m, y(u, l[o])), l[o]) : (typeof l[i.key] != typeof m && (l[i.key] = m, y(u, l[i.key])), l[i.key]);
1447
- }, ue = (u, i, l, o, v, m) => {
1448
- const O = L(i, !0);
1449
- if (typeof o != typeof O) {
1450
- console.assert(!1);
1451
- return;
1452
- }
1453
- v !== void 0 && !m ? o !== l[v] && (l[v] = o, y(u, l[v])) : o !== l[i.key] && (l[i.key] = o, y(u, l[i.key]));
1454
- }, Ae = (u, i, l, o, v, m) => (u = un(u), v !== void 0 ? (u.push(v), m && u.push(i.key)) : u.push(i.key), i.ui ? i.array && v === void 0 ? vn(u, i, l, o, v, m) : mn(u, i, l, v, m) : i.array ? dn(u, i, l, o, v, m) : pn(
1455
- u,
1456
- i,
1457
- l,
1458
- o,
1486
+ const { renderProp: _ } = Ha(f, s, o), { renderUiDummy: h } = ja(d), { renderUiStrInput: T } = qa(d), { renderUiNumInput: $ } = Xa(d), { renderUiSwitch: C } = Wa(d), { renderUiSelect: D } = ka(d), { renderUiColorPicker: z } = is(d), { renderUiMultiTypes: we } = ss(d), { renderUiCompSelect: se } = ts(d), q = (m, c, v, p, y, S) => (m = un(m), y !== void 0 ? (m.push(y), S && m.push(c.key)) : m.push(c.key), c.ui ? c.array && y === void 0 ? mn(m, c, v, p, y, S) : vn(m, c, v, y, S) : c.array ? dn(m, c, v, p, y, S) : pn(
1487
+ m,
1488
+ c,
1459
1489
  v,
1460
- m
1461
- )), dn = (u, i, l, o, v, m) => {
1462
- if (i.ui)
1463
- return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
1464
- if (!i.array)
1465
- return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
1466
- if (!o)
1467
- return console.assert(!1), _("div", "renderBranchArray branch must be valid");
1468
- let O;
1469
- v !== void 0 && !m ? (l[v] instanceof Array || (l[v] = L(i), y(u, l[i.key])), O = l[v]) : (l[i.key] instanceof Array || (l[i.key] = L(i), y(u, l[i.key])), O = l[i.key]);
1470
- let q = n(i.name);
1471
- h(u) && (q += " *");
1472
- const pe = _(Oe, {
1473
- title: q,
1474
- collapse: o.collapse,
1490
+ p,
1491
+ y,
1492
+ S
1493
+ )), dn = (m, c, v, p, y, S) => {
1494
+ if (c.ui)
1495
+ return console.assert(!1), g("div", "renderBranchArray prop ui must be invalid");
1496
+ if (!c.array)
1497
+ return console.assert(!1), g("div", "renderBranchArray prop array must be valid");
1498
+ if (!p)
1499
+ return console.assert(!1), g("div", "renderBranchArray branch must be valid");
1500
+ let V;
1501
+ y !== void 0 && !S ? (v[y] instanceof Array || (v[y] = E(c), d(m, v[c.key])), V = v[y]) : (v[c.key] instanceof Array || (v[c.key] = E(c), d(m, v[c.key])), V = v[c.key]);
1502
+ let Q = n(c.name);
1503
+ p.collapse && ge(f, m) && (Q += " *");
1504
+ const pe = g(Ce, {
1505
+ title: Q,
1506
+ collapse: p.collapse,
1475
1507
  hasCreate: !0,
1476
- onCollapse: (w) => {
1477
- o.collapse = w;
1508
+ onCollapse: (A) => {
1509
+ p.collapse = A;
1478
1510
  },
1479
1511
  onCreate: () => {
1480
- O.push({}), y(u, O);
1512
+ V.push({}), d(m, V);
1481
1513
  }
1482
- }), x = _(
1514
+ }), x = g(
1483
1515
  "div",
1484
1516
  {
1485
1517
  style: {
1486
- paddingLeft: d.value
1518
+ paddingLeft: a.value
1487
1519
  }
1488
1520
  },
1489
1521
  (() => {
1490
- const w = [];
1491
- for (let D = 0; D < O.length; D++) {
1492
- if (!Ce(o.children)) {
1522
+ const A = [];
1523
+ for (let U = 0; U < V.length; U++) {
1524
+ if (!Ue(p.children)) {
1493
1525
  console.assert(!1);
1494
1526
  break;
1495
1527
  }
1496
- o.children[D] || o.children.push({
1528
+ p.children[U] || p.children.push({
1497
1529
  collapse: !0,
1498
1530
  children: {}
1499
1531
  });
1500
- let we = n("x-prop-tree.entry");
1501
- h([...u, D]) && (we += " *");
1502
- const yn = _(Oe, {
1503
- title: we,
1504
- collapse: o.children[D].collapse,
1532
+ let Se = n("x-prop-tree.entry", { index: U });
1533
+ p.children[U].collapse && ge(f, [...m, U]) && (Se += " *");
1534
+ const yn = g(Ce, {
1535
+ title: Se,
1536
+ collapse: p.children[U].collapse,
1505
1537
  hasDelete: !0,
1506
- index: D,
1507
- onCollapse: (Q) => {
1508
- if (!Ce(o.children)) {
1538
+ index: U,
1539
+ onCollapse: (k) => {
1540
+ if (!Ue(p.children)) {
1509
1541
  console.assert(!1);
1510
1542
  return;
1511
1543
  }
1512
- o.children[D].collapse = Q;
1544
+ p.children[U].collapse = k;
1513
1545
  },
1514
- onDelete: (Q) => {
1515
- if (!Ce(o.children)) {
1546
+ onDelete: (k) => {
1547
+ if (!Ue(p.children)) {
1516
1548
  console.assert(!1);
1517
1549
  return;
1518
1550
  }
1519
- o.children.splice(Q, 1), O.splice(Q, 1), y(u, O);
1551
+ p.children.splice(k, 1), V.splice(k, 1), d(m, V);
1520
1552
  }
1521
1553
  });
1522
- w.push(yn);
1523
- const _n = _(
1554
+ A.push(yn);
1555
+ const _n = g(
1524
1556
  "div",
1525
1557
  {
1526
1558
  style: {
1527
- paddingLeft: d.value
1559
+ paddingLeft: a.value
1528
1560
  }
1529
1561
  },
1530
1562
  (() => {
1531
- const Q = [];
1532
- return i.children.forEach((ve) => {
1533
- if (!Ce(o.children)) {
1563
+ const k = [];
1564
+ return c.children.forEach((me) => {
1565
+ if (!Ue(p.children)) {
1534
1566
  console.assert(!1);
1535
1567
  return;
1536
1568
  }
1537
- const Se = o.children[D];
1538
- if (!Mt(Se.children)) {
1569
+ const Pe = p.children[U];
1570
+ if (!Lt(Pe.children)) {
1539
1571
  console.assert(!1);
1540
1572
  return;
1541
1573
  }
1542
- Se.children[ve.key] || (Se.children[ve.key] = {
1574
+ Pe.children[me.key] || (Pe.children[me.key] = {
1543
1575
  collapse: !0,
1544
- children: ve.array ? [] : {}
1576
+ children: me.array ? [] : {}
1545
1577
  });
1546
- const hn = Ae(
1547
- u,
1548
- ve,
1549
- O[D],
1550
- Se.children[ve.key],
1551
- D,
1578
+ const hn = q(
1579
+ m,
1580
+ me,
1581
+ V[U],
1582
+ Pe.children[me.key],
1583
+ U,
1552
1584
  !0
1553
1585
  );
1554
- Q.push(hn);
1555
- }), Q;
1586
+ k.push(hn);
1587
+ }), k;
1556
1588
  })()
1557
1589
  );
1558
- o.children[D].collapse || w.push(_n);
1590
+ p.children[U].collapse || A.push(_n);
1559
1591
  }
1560
- return w;
1592
+ return A;
1561
1593
  })()
1562
1594
  );
1563
- return _(
1595
+ return g(
1564
1596
  "div",
1565
1597
  {
1566
1598
  style: {
@@ -1568,58 +1600,58 @@ const Oe = /* @__PURE__ */ H({
1568
1600
  }
1569
1601
  },
1570
1602
  (() => {
1571
- const w = [];
1572
- return w.push(pe), o.collapse || w.push(x), w;
1603
+ const A = [];
1604
+ return A.push(pe), p.collapse || A.push(x), A;
1573
1605
  })()
1574
1606
  );
1575
- }, pn = (u, i, l, o, v, m) => {
1576
- if (i.ui)
1577
- return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
1578
- if (i.array)
1579
- return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
1580
- if (!o)
1581
- return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
1582
- let O = n(i.name);
1583
- h(u) && (O += " *");
1584
- const q = _(Oe, {
1585
- title: O,
1586
- collapse: o.collapse,
1607
+ }, pn = (m, c, v, p, y, S) => {
1608
+ if (c.ui)
1609
+ return console.assert(!1), g("div", "renderBranchScalar prop ui must be invalid");
1610
+ if (c.array)
1611
+ return console.assert(!1), g("div", "renderBranchScalar prop array must be invalid");
1612
+ if (!p)
1613
+ return console.assert(!1), g("div", "renderBranchScalar branch must be valid");
1614
+ let V = n(c.name);
1615
+ p.collapse && ge(f, m) && (V += " *");
1616
+ const Q = g(Ce, {
1617
+ title: V,
1618
+ collapse: p.collapse,
1587
1619
  onCollapse: (x) => {
1588
- o.collapse = x;
1620
+ p.collapse = x;
1589
1621
  },
1590
- hasDelete: v !== void 0 && !m,
1622
+ hasDelete: y !== void 0 && !S,
1591
1623
  onDelete: () => {
1592
- v === void 0 || m || (l.splice(v, 1), y(u.slice(0, -1), l));
1624
+ y === void 0 || S || (v.splice(y, 1), d(m.slice(0, -1), v));
1593
1625
  }
1594
- }), pe = _(
1626
+ }), pe = g(
1595
1627
  "div",
1596
1628
  {
1597
1629
  style: {
1598
- paddingLeft: d.value
1630
+ paddingLeft: a.value
1599
1631
  }
1600
1632
  },
1601
1633
  (() => {
1602
1634
  const x = [];
1603
- return i.children.forEach((w) => {
1604
- if (!Mt(o.children)) {
1635
+ return c.children.forEach((A) => {
1636
+ if (!Lt(p.children)) {
1605
1637
  console.assert(!1);
1606
1638
  return;
1607
1639
  }
1608
- o.children[w.key] || (o.children[w.key] = {
1640
+ p.children[A.key] || (p.children[A.key] = {
1609
1641
  collapse: !0,
1610
- children: !w.ui && w.array ? [] : {}
1642
+ children: !A.ui && A.array ? [] : {}
1611
1643
  });
1612
- const D = Ae(
1613
- u,
1614
- w,
1615
- (typeof l[i.key] != "object" && (l[i.key] = {}, y(u, l[i.key])), l[i.key]),
1616
- o.children[w.key]
1644
+ const U = q(
1645
+ m,
1646
+ A,
1647
+ (typeof v[c.key] != "object" && (v[c.key] = {}, d(m, v[c.key])), v[c.key]),
1648
+ p.children[A.key]
1617
1649
  );
1618
- x.push(D);
1650
+ x.push(U);
1619
1651
  }), x;
1620
1652
  })()
1621
1653
  );
1622
- return _(
1654
+ return g(
1623
1655
  "div",
1624
1656
  {
1625
1657
  style: {
@@ -1628,47 +1660,47 @@ const Oe = /* @__PURE__ */ H({
1628
1660
  },
1629
1661
  (() => {
1630
1662
  const x = [];
1631
- return x.push(q), o.collapse || x.push(pe), x;
1663
+ return x.push(Q), p.collapse || x.push(pe), x;
1632
1664
  })()
1633
1665
  );
1634
- }, vn = (u, i, l, o, v, m) => {
1635
- if (!i.ui)
1636
- return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
1637
- if (!i.array)
1638
- return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
1639
- if (!o)
1640
- return console.assert(!1), _("div", "renderLeafArray branch must be valid");
1641
- let O;
1642
- v !== void 0 && !m ? (l[v] instanceof Array || (l[v] = L(i), y(u, l[v])), O = l[v]) : (l[i.key] instanceof Array || (l[i.key] = L(i), y(u, l[i.key])), O = l[i.key]);
1643
- let q = n(i.name);
1644
- h(u) && (q += " *");
1645
- const pe = _(Oe, {
1646
- title: q,
1647
- collapse: o.collapse,
1666
+ }, mn = (m, c, v, p, y, S) => {
1667
+ if (!c.ui)
1668
+ return console.assert(!1), g("div", "renderLeafArray prop ui must be valid");
1669
+ if (!c.array)
1670
+ return console.assert(!1), g("div", "renderLeafArray prop array must be valid");
1671
+ if (!p)
1672
+ return console.assert(!1), g("div", "renderLeafArray branch must be valid");
1673
+ let V;
1674
+ y !== void 0 && !S ? (v[y] instanceof Array || (v[y] = E(c), d(m, v[y])), V = v[y]) : (v[c.key] instanceof Array || (v[c.key] = E(c), d(m, v[c.key])), V = v[c.key]);
1675
+ let Q = n(c.name);
1676
+ p.collapse && ge(f, m) && (Q += " *");
1677
+ const pe = g(Ce, {
1678
+ title: Q,
1679
+ collapse: p.collapse,
1648
1680
  hasCreate: !0,
1649
- onCollapse: (w) => {
1650
- o.collapse = w;
1681
+ onCollapse: (A) => {
1682
+ p.collapse = A;
1651
1683
  },
1652
1684
  onCreate: () => {
1653
- O.push(L(i, !0)), y(u, O);
1685
+ V.push(E(c, !0)), d(m, V);
1654
1686
  }
1655
- }), x = _(
1687
+ }), x = g(
1656
1688
  "div",
1657
1689
  {
1658
1690
  style: {
1659
- paddingLeft: d.value
1691
+ paddingLeft: a.value
1660
1692
  }
1661
1693
  },
1662
1694
  (() => {
1663
- const w = [];
1664
- for (let D = 0; D < O.length; D++) {
1665
- const we = Ae(u, i, O, void 0, D, !1);
1666
- w.push(we);
1695
+ const A = [];
1696
+ for (let U = 0; U < V.length; U++) {
1697
+ const Se = q(m, c, V, void 0, U, !1);
1698
+ A.push(Se);
1667
1699
  }
1668
- return w;
1700
+ return A;
1669
1701
  })()
1670
1702
  );
1671
- return _(
1703
+ return g(
1672
1704
  "div",
1673
1705
  {
1674
1706
  style: {
@@ -1676,16 +1708,16 @@ const Oe = /* @__PURE__ */ H({
1676
1708
  }
1677
1709
  },
1678
1710
  (() => {
1679
- const w = [];
1680
- return w.push(pe), o.collapse || w.push(x), w;
1711
+ const A = [];
1712
+ return A.push(pe), p.collapse || A.push(x), A;
1681
1713
  })()
1682
1714
  );
1683
- }, mn = (u, i, l, o, v) => {
1684
- if (!i.ui)
1685
- return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
1686
- let m;
1687
- return i.ui === "dummy" ? m = $(u, i, l, o, v) : i.ui === "strInput" ? m = b(u, i, l, o, v) : i.ui === "numInput" ? m = V(u, i, l, o, v) : i.ui === "switch" ? m = E(u, i, l, o, v) : i.ui === "select" ? m = z(u, i, l, o, v) : i.ui === "colorPicker" ? m = be(u, i, l, o, v) : i.ui === "multiTypes" ? m = le(u, i, l, o, v) : i.ui === "compSelect" ? m = oe(u, i, l, o, v) : console.assert(!1, "renderLeafScalar not implemented"), T(u, i, m ? [m] : []);
1688
- }, gn = () => _(
1715
+ }, vn = (m, c, v, p, y) => {
1716
+ if (!c.ui)
1717
+ return console.assert(!1), g("div", "renderLeafScalar prop ui must be valid");
1718
+ let S;
1719
+ return c.ui === "dummy" ? S = h(m, c, v, p, y) : c.ui === "strInput" ? S = T(m, c, v, p, y) : c.ui === "numInput" ? S = $(m, c, v, p, y) : c.ui === "switch" ? S = C(m, c, v, p, y) : c.ui === "select" ? S = D(m, c, v, p, y) : c.ui === "colorPicker" ? S = z(m, c, v, p, y) : c.ui === "multiTypes" ? S = we(m, c, v, p, y) : c.ui === "compSelect" ? S = se(m, c, v, p, y) : console.assert(!1, "renderLeafScalar not implemented"), _(m, c, S ? [S] : []);
1720
+ }, gn = () => g(
1689
1721
  "div",
1690
1722
  {
1691
1723
  class: "text-body-2",
@@ -1694,34 +1726,34 @@ const Oe = /* @__PURE__ */ H({
1694
1726
  }
1695
1727
  },
1696
1728
  (() => {
1697
- const u = [];
1698
- if (s.unique && s.config.length > 0 && s.object) {
1699
- c[s.unique] || (c[s.unique] = {});
1700
- const i = c[s.unique];
1701
- s.config.forEach((l) => {
1702
- i[l.key] || (i[l.key] = {
1729
+ const m = [];
1730
+ if (l.unique && l.config.length > 0 && l.object) {
1731
+ u[l.unique] || (u[l.unique] = {});
1732
+ const c = u[l.unique];
1733
+ l.config.forEach((v) => {
1734
+ c[v.key] || (c[v.key] = {
1703
1735
  collapse: !0,
1704
- children: !l.ui && l.array ? [] : {}
1736
+ children: !v.ui && v.array ? [] : {}
1705
1737
  });
1706
- const o = Ae([], l, s.object, i[l.key]);
1707
- u.push(o);
1738
+ const p = q([], v, l.object, c[v.key]);
1739
+ m.push(p);
1708
1740
  });
1709
1741
  }
1710
- return u;
1742
+ return m;
1711
1743
  })()
1712
1744
  );
1713
- return (u, i) => (C(), W(Nt, null, [
1745
+ return (m, c) => (O(), Z(Nt, null, [
1714
1746
  M(gn),
1715
- M(El)
1747
+ M(Ua)
1716
1748
  ], 64));
1717
1749
  }
1718
- }), eo = (e) => {
1719
- e.component("XPropTree", kl);
1720
- }, to = (e, t, n) => {
1750
+ }), us = (e) => {
1751
+ e.component("XPropTree", os);
1752
+ }, cs = (e, t, n) => {
1721
1753
  const r = e[t];
1722
- return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((s, a) => {
1754
+ return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((l, i) => {
1723
1755
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
1724
- a.bind(
1756
+ i.bind(
1725
1757
  null,
1726
1758
  new Error(
1727
1759
  "Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
@@ -1730,11 +1762,11 @@ const Oe = /* @__PURE__ */ H({
1730
1762
  );
1731
1763
  });
1732
1764
  };
1733
- async function lo(e) {
1734
- return (await to(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-g17k76yy.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-f1nv26or.js") }), `./locales/${e}/index.ts`, 4)).default;
1765
+ async function vs(e) {
1766
+ return (await cs(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-eyioipy9.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-mtvnapj8.js") }), `./locales/${e}/index.ts`, 4)).default;
1735
1767
  }
1736
- const oo = { install: eo };
1768
+ const gs = { install: us };
1737
1769
  export {
1738
- oo as default,
1739
- lo as loadLocaleMessagePropTree
1770
+ gs as default,
1771
+ vs as loadLocaleMessagePropTree
1740
1772
  };