x-prop-tree 0.6.10 → 0.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,55 +1,55 @@
1
- import { provide as Me, inject as Ue, defineComponent as K, ref as R, computed as G, resolveComponent as O, createBlock as k, openBlock as S, unref as E, isRef as Fe, withCtx as J, createVNode as B, createElementBlock as F, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as q, normalizeStyle as ie, createElementVNode as z, createCommentVNode as I, renderSlot as Un, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as Kt, withKeys as Vn, mergeProps as qt, watchEffect as vt, watch as Re, reactive as Ln, onMounted as Dn, onBeforeUnmount as jn } from "vue";
1
+ import { provide as Te, inject as Se, defineComponent as K, ref as R, computed as k, resolveComponent as x, createBlock as F, openBlock as S, unref as E, isRef as Fe, withCtx as J, createVNode as B, createElementBlock as H, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as q, normalizeStyle as le, createElementVNode as z, createCommentVNode as I, renderSlot as jn, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as Kt, withKeys as En, mergeProps as qt, watchEffect as mt, watch as Re, reactive as Nn, onMounted as Bn, onBeforeUnmount as Rn } from "vue";
2
2
  import { useI18n as ue } from "vue-i18n";
3
- import { useViewStack as ut, useColor as Te, eventBus as _e, useSystem as En } from "x-essential-lib";
4
- import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as Bn } from "x-runtime-lib";
5
- import { useDisplay as Rn } from "vuetify";
6
- import { globalState as kn } from "x-state-lib";
7
- var zt = typeof global == "object" && global && global.Object === Object && global, Fn = typeof self == "object" && self && self.Object === Object && self, Y = zt || Fn || Function("return this")(), se = Y.Symbol, It = Object.prototype, Hn = It.hasOwnProperty, Gn = It.toString, we = se ? se.toStringTag : void 0;
8
- function Kn(e) {
9
- var t = Hn.call(e, we), n = e[we];
3
+ import { useViewStack as ut, useColor as we, eventBus as _e, useSystem as kn } from "x-essential-lib";
4
+ import { getPropDefault as N, pkgs as zt, parsePixelStr as Fn, parsePercentStr as Hn } from "x-runtime-lib";
5
+ import { globalState as Gn } from "x-state-lib";
6
+ import { useDisplay as Kn } from "vuetify";
7
+ var It = typeof global == "object" && global && global.Object === Object && global, qn = typeof self == "object" && self && self.Object === Object && self, Y = It || qn || Function("return this")(), se = Y.Symbol, Xt = Object.prototype, zn = Xt.hasOwnProperty, In = Xt.toString, Ce = se ? se.toStringTag : void 0;
8
+ function Xn(e) {
9
+ var t = zn.call(e, Ce), n = e[Ce];
10
10
  try {
11
- e[we] = void 0;
11
+ e[Ce] = void 0;
12
12
  var r = !0;
13
13
  } catch {
14
14
  }
15
- var l = Gn.call(e);
16
- return r && (t ? e[we] = n : delete e[we]), l;
15
+ var i = In.call(e);
16
+ return r && (t ? e[Ce] = n : delete e[Ce]), i;
17
17
  }
18
- var qn = Object.prototype, zn = qn.toString;
19
- function In(e) {
20
- return zn.call(e);
18
+ var Zn = Object.prototype, Jn = Zn.toString;
19
+ function Wn(e) {
20
+ return Jn.call(e);
21
21
  }
22
- var Xn = "[object Null]", Zn = "[object Undefined]", gt = se ? se.toStringTag : void 0;
23
- function Ve(e) {
24
- return e == null ? e === void 0 ? Zn : Xn : gt && gt in Object(e) ? Kn(e) : In(e);
22
+ var Yn = "[object Null]", Qn = "[object Undefined]", gt = se ? se.toStringTag : void 0;
23
+ function Ue(e) {
24
+ return e == null ? e === void 0 ? Qn : Yn : gt && gt in Object(e) ? Xn(e) : Wn(e);
25
25
  }
26
26
  function de(e) {
27
27
  return e != null && typeof e == "object";
28
28
  }
29
- var Pe = Array.isArray;
29
+ var xe = Array.isArray;
30
30
  function ze(e) {
31
31
  var t = typeof e;
32
32
  return e != null && (t == "object" || t == "function");
33
33
  }
34
- var Jn = "[object AsyncFunction]", Wn = "[object Function]", Yn = "[object GeneratorFunction]", Qn = "[object Proxy]";
35
- function Xt(e) {
34
+ var er = "[object AsyncFunction]", tr = "[object Function]", nr = "[object GeneratorFunction]", rr = "[object Proxy]";
35
+ function Zt(e) {
36
36
  if (!ze(e))
37
37
  return !1;
38
- var t = Ve(e);
39
- return t == Wn || t == Yn || t == Jn || t == Qn;
38
+ var t = Ue(e);
39
+ return t == tr || t == nr || t == er || t == rr;
40
40
  }
41
41
  var Qe = Y["__core-js_shared__"], yt = function() {
42
42
  var e = /[^.]+$/.exec(Qe && Qe.keys && Qe.keys.IE_PROTO || "");
43
43
  return e ? "Symbol(src)_1." + e : "";
44
44
  }();
45
- function er(e) {
45
+ function or(e) {
46
46
  return !!yt && yt in e;
47
47
  }
48
- var tr = Function.prototype, nr = tr.toString;
49
- function me(e) {
48
+ var ir = Function.prototype, lr = ir.toString;
49
+ function ve(e) {
50
50
  if (e != null) {
51
51
  try {
52
- return nr.call(e);
52
+ return lr.call(e);
53
53
  } catch {
54
54
  }
55
55
  try {
@@ -59,23 +59,23 @@ function me(e) {
59
59
  }
60
60
  return "";
61
61
  }
62
- var rr = /[\\^$.*+?()[\]{}|]/g, or = /^\[object .+?Constructor\]$/, lr = Function.prototype, ir = Object.prototype, sr = lr.toString, ar = ir.hasOwnProperty, ur = RegExp(
63
- "^" + sr.call(ar).replace(rr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
62
+ var sr = /[\\^$.*+?()[\]{}|]/g, ar = /^\[object .+?Constructor\]$/, ur = Function.prototype, cr = Object.prototype, fr = ur.toString, dr = cr.hasOwnProperty, pr = RegExp(
63
+ "^" + fr.call(dr).replace(sr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
64
64
  );
65
- function cr(e) {
66
- if (!ze(e) || er(e))
65
+ function vr(e) {
66
+ if (!ze(e) || or(e))
67
67
  return !1;
68
- var t = Xt(e) ? ur : or;
69
- return t.test(me(e));
68
+ var t = Zt(e) ? pr : ar;
69
+ return t.test(ve(e));
70
70
  }
71
- function fr(e, t) {
71
+ function mr(e, t) {
72
72
  return e == null ? void 0 : e[t];
73
73
  }
74
- function ve(e, t) {
75
- var n = fr(e, t);
76
- return cr(n) ? n : void 0;
74
+ function me(e, t) {
75
+ var n = mr(e, t);
76
+ return vr(n) ? n : void 0;
77
77
  }
78
- var rt = ve(Y, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
78
+ var rt = me(Y, "WeakMap"), ht = Object.create, gr = /* @__PURE__ */ function() {
79
79
  function e() {
80
80
  }
81
81
  return function(t) {
@@ -89,22 +89,22 @@ var rt = ve(Y, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
89
89
  };
90
90
  }(), _t = function() {
91
91
  try {
92
- var e = ve(Object, "defineProperty");
92
+ var e = me(Object, "defineProperty");
93
93
  return e({}, "", {}), e;
94
94
  } catch {
95
95
  }
96
96
  }();
97
- function pr(e, t) {
97
+ function yr(e, t) {
98
98
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
99
99
  ;
100
100
  return e;
101
101
  }
102
- var mr = 9007199254740991, vr = /^(?:0|[1-9]\d*)$/;
103
- function gr(e, t) {
102
+ var hr = 9007199254740991, _r = /^(?:0|[1-9]\d*)$/;
103
+ function br(e, t) {
104
104
  var n = typeof e;
105
- return t = t ?? mr, !!t && (n == "number" || n != "symbol" && vr.test(e)) && e > -1 && e % 1 == 0 && e < t;
105
+ return t = t ?? hr, !!t && (n == "number" || n != "symbol" && _r.test(e)) && e > -1 && e % 1 == 0 && e < t;
106
106
  }
107
- function yr(e, t, n) {
107
+ function $r(e, t, n) {
108
108
  t == "__proto__" && _t ? _t(e, t, {
109
109
  configurable: !0,
110
110
  enumerable: !0,
@@ -115,111 +115,111 @@ function yr(e, t, n) {
115
115
  function ct(e, t) {
116
116
  return e === t || e !== e && t !== t;
117
117
  }
118
- var hr = Object.prototype, _r = hr.hasOwnProperty;
119
- function br(e, t, n) {
118
+ var Tr = Object.prototype, Sr = Tr.hasOwnProperty;
119
+ function wr(e, t, n) {
120
120
  var r = e[t];
121
- (!(_r.call(e, t) && ct(r, n)) || n === void 0 && !(t in e)) && yr(e, t, n);
121
+ (!(Sr.call(e, t) && ct(r, n)) || n === void 0 && !(t in e)) && $r(e, t, n);
122
122
  }
123
- var $r = 9007199254740991;
124
- function Zt(e) {
125
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= $r;
123
+ var Ar = 9007199254740991;
124
+ function Jt(e) {
125
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ar;
126
126
  }
127
- function Tr(e) {
128
- return e != null && Zt(e.length) && !Xt(e);
127
+ function Cr(e) {
128
+ return e != null && Jt(e.length) && !Zt(e);
129
129
  }
130
- var Sr = Object.prototype;
131
- function Jt(e) {
132
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || Sr;
130
+ var Pr = Object.prototype;
131
+ function Wt(e) {
132
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || Pr;
133
133
  return e === n;
134
134
  }
135
- function wr(e, t) {
135
+ function Or(e, t) {
136
136
  for (var n = -1, r = Array(e); ++n < e; )
137
137
  r[n] = t(n);
138
138
  return r;
139
139
  }
140
- var Ar = "[object Arguments]";
140
+ var xr = "[object Arguments]";
141
141
  function bt(e) {
142
- return de(e) && Ve(e) == Ar;
142
+ return de(e) && Ue(e) == xr;
143
143
  }
144
- var Wt = Object.prototype, Cr = Wt.hasOwnProperty, Pr = Wt.propertyIsEnumerable, Or = bt(/* @__PURE__ */ function() {
144
+ var Yt = Object.prototype, Vr = Yt.hasOwnProperty, Mr = Yt.propertyIsEnumerable, Ur = bt(/* @__PURE__ */ function() {
145
145
  return arguments;
146
146
  }()) ? bt : function(e) {
147
- return de(e) && Cr.call(e, "callee") && !Pr.call(e, "callee");
147
+ return de(e) && Vr.call(e, "callee") && !Mr.call(e, "callee");
148
148
  };
149
- function xr() {
149
+ function Lr() {
150
150
  return !1;
151
151
  }
152
- var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Yt && typeof module == "object" && module && !module.nodeType && module, Mr = $t && $t.exports === Yt, Tt = Mr ? Y.Buffer : void 0, Ur = Tt ? Tt.isBuffer : void 0, Ge = Ur || xr, Vr = "[object Arguments]", Lr = "[object Array]", Dr = "[object Boolean]", jr = "[object Date]", Er = "[object Error]", Nr = "[object Function]", Br = "[object Map]", Rr = "[object Number]", kr = "[object Object]", Fr = "[object RegExp]", Hr = "[object Set]", Gr = "[object String]", Kr = "[object WeakMap]", qr = "[object ArrayBuffer]", zr = "[object DataView]", Ir = "[object Float32Array]", Xr = "[object Float64Array]", Zr = "[object Int8Array]", Jr = "[object Int16Array]", Wr = "[object Int32Array]", Yr = "[object Uint8Array]", Qr = "[object Uint8ClampedArray]", eo = "[object Uint16Array]", to = "[object Uint32Array]", x = {};
153
- x[Ir] = x[Xr] = x[Zr] = x[Jr] = x[Wr] = x[Yr] = x[Qr] = x[eo] = x[to] = !0;
154
- x[Vr] = x[Lr] = x[qr] = x[Dr] = x[zr] = x[jr] = x[Er] = x[Nr] = x[Br] = x[Rr] = x[kr] = x[Fr] = x[Hr] = x[Gr] = x[Kr] = !1;
155
- function no(e) {
156
- return de(e) && Zt(e.length) && !!x[Ve(e)];
152
+ var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Qt && typeof module == "object" && module && !module.nodeType && module, Dr = $t && $t.exports === Qt, Tt = Dr ? Y.Buffer : void 0, jr = Tt ? Tt.isBuffer : void 0, Ge = jr || Lr, Er = "[object Arguments]", Nr = "[object Array]", Br = "[object Boolean]", Rr = "[object Date]", kr = "[object Error]", Fr = "[object Function]", Hr = "[object Map]", Gr = "[object Number]", Kr = "[object Object]", qr = "[object RegExp]", zr = "[object Set]", Ir = "[object String]", Xr = "[object WeakMap]", Zr = "[object ArrayBuffer]", Jr = "[object DataView]", Wr = "[object Float32Array]", Yr = "[object Float64Array]", Qr = "[object Int8Array]", eo = "[object Int16Array]", to = "[object Int32Array]", no = "[object Uint8Array]", ro = "[object Uint8ClampedArray]", oo = "[object Uint16Array]", io = "[object Uint32Array]", M = {};
153
+ M[Wr] = M[Yr] = M[Qr] = M[eo] = M[to] = M[no] = M[ro] = M[oo] = M[io] = !0;
154
+ M[Er] = M[Nr] = M[Zr] = M[Br] = M[Jr] = M[Rr] = M[kr] = M[Fr] = M[Hr] = M[Gr] = M[Kr] = M[qr] = M[zr] = M[Ir] = M[Xr] = !1;
155
+ function lo(e) {
156
+ return de(e) && Jt(e.length) && !!M[Ue(e)];
157
157
  }
158
158
  function ft(e) {
159
159
  return function(t) {
160
160
  return e(t);
161
161
  };
162
162
  }
163
- var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Qt && typeof module == "object" && module && !module.nodeType && module, ro = Ce && Ce.exports === Qt, et = ro && zt.process, $e = function() {
163
+ var en = typeof exports == "object" && exports && !exports.nodeType && exports, Oe = en && typeof module == "object" && module && !module.nodeType && module, so = Oe && Oe.exports === en, et = so && It.process, $e = function() {
164
164
  try {
165
- var e = Ce && Ce.require && Ce.require("util").types;
165
+ var e = Oe && Oe.require && Oe.require("util").types;
166
166
  return e || et && et.binding && et.binding("util");
167
167
  } catch {
168
168
  }
169
- }(), St = $e && $e.isTypedArray, en = St ? ft(St) : no, oo = Object.prototype, lo = oo.hasOwnProperty;
170
- function io(e, t) {
171
- var n = Pe(e), r = !n && Or(e), l = !n && !r && Ge(e), o = !n && !r && !l && en(e), i = n || r || l || o, s = i ? wr(e.length, String) : [], u = s.length;
172
- for (var a in e)
173
- lo.call(e, a) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
174
- (a == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
175
- l && (a == "offset" || a == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
176
- o && (a == "buffer" || a == "byteLength" || a == "byteOffset") || // Skip index properties.
177
- gr(a, u))) && s.push(a);
178
- return s;
179
- }
180
- function tn(e, t) {
169
+ }(), St = $e && $e.isTypedArray, tn = St ? ft(St) : lo, ao = Object.prototype, uo = ao.hasOwnProperty;
170
+ function co(e, t) {
171
+ var n = xe(e), r = !n && Ur(e), i = !n && !r && Ge(e), o = !n && !r && !i && tn(e), l = n || r || i || o, u = l ? Or(e.length, String) : [], a = u.length;
172
+ for (var s in e)
173
+ uo.call(e, s) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
174
+ (s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
175
+ i && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
176
+ o && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
177
+ br(s, a))) && u.push(s);
178
+ return u;
179
+ }
180
+ function nn(e, t) {
181
181
  return function(n) {
182
182
  return e(t(n));
183
183
  };
184
184
  }
185
- var so = tn(Object.keys, Object), ao = Object.prototype, uo = ao.hasOwnProperty;
186
- function co(e) {
187
- if (!Jt(e))
188
- return so(e);
185
+ var fo = nn(Object.keys, Object), po = Object.prototype, vo = po.hasOwnProperty;
186
+ function mo(e) {
187
+ if (!Wt(e))
188
+ return fo(e);
189
189
  var t = [];
190
190
  for (var n in Object(e))
191
- uo.call(e, n) && n != "constructor" && t.push(n);
191
+ vo.call(e, n) && n != "constructor" && t.push(n);
192
192
  return t;
193
193
  }
194
- function fo(e) {
195
- return Tr(e) ? io(e) : co(e);
194
+ function go(e) {
195
+ return Cr(e) ? co(e) : mo(e);
196
196
  }
197
- var Oe = ve(Object, "create");
198
- function po() {
199
- this.__data__ = Oe ? Oe(null) : {}, this.size = 0;
197
+ var Ve = me(Object, "create");
198
+ function yo() {
199
+ this.__data__ = Ve ? Ve(null) : {}, this.size = 0;
200
200
  }
201
- function mo(e) {
201
+ function ho(e) {
202
202
  var t = this.has(e) && delete this.__data__[e];
203
203
  return this.size -= t ? 1 : 0, t;
204
204
  }
205
- var vo = "__lodash_hash_undefined__", go = Object.prototype, yo = go.hasOwnProperty;
206
- function ho(e) {
205
+ var _o = "__lodash_hash_undefined__", bo = Object.prototype, $o = bo.hasOwnProperty;
206
+ function To(e) {
207
207
  var t = this.__data__;
208
- if (Oe) {
208
+ if (Ve) {
209
209
  var n = t[e];
210
- return n === vo ? void 0 : n;
210
+ return n === _o ? void 0 : n;
211
211
  }
212
- return yo.call(t, e) ? t[e] : void 0;
212
+ return $o.call(t, e) ? t[e] : void 0;
213
213
  }
214
- var _o = Object.prototype, bo = _o.hasOwnProperty;
215
- function $o(e) {
214
+ var So = Object.prototype, wo = So.hasOwnProperty;
215
+ function Ao(e) {
216
216
  var t = this.__data__;
217
- return Oe ? t[e] !== void 0 : bo.call(t, e);
217
+ return Ve ? t[e] !== void 0 : wo.call(t, e);
218
218
  }
219
- var To = "__lodash_hash_undefined__";
220
- function So(e, t) {
219
+ var Co = "__lodash_hash_undefined__";
220
+ function Po(e, t) {
221
221
  var n = this.__data__;
222
- return this.size += this.has(e) ? 0 : 1, n[e] = Oe && t === void 0 ? To : t, this;
222
+ return this.size += this.has(e) ? 0 : 1, n[e] = Ve && t === void 0 ? Co : t, this;
223
223
  }
224
224
  function pe(e) {
225
225
  var t = -1, n = e == null ? 0 : e.length;
@@ -228,12 +228,12 @@ function pe(e) {
228
228
  this.set(r[0], r[1]);
229
229
  }
230
230
  }
231
- pe.prototype.clear = po;
232
- pe.prototype.delete = mo;
233
- pe.prototype.get = ho;
234
- pe.prototype.has = $o;
235
- pe.prototype.set = So;
236
- function wo() {
231
+ pe.prototype.clear = yo;
232
+ pe.prototype.delete = ho;
233
+ pe.prototype.get = To;
234
+ pe.prototype.has = Ao;
235
+ pe.prototype.set = Po;
236
+ function Oo() {
237
237
  this.__data__ = [], this.size = 0;
238
238
  }
239
239
  function Ie(e, t) {
@@ -242,64 +242,64 @@ function Ie(e, t) {
242
242
  return n;
243
243
  return -1;
244
244
  }
245
- var Ao = Array.prototype, Co = Ao.splice;
246
- function Po(e) {
245
+ var xo = Array.prototype, Vo = xo.splice;
246
+ function Mo(e) {
247
247
  var t = this.__data__, n = Ie(t, e);
248
248
  if (n < 0)
249
249
  return !1;
250
250
  var r = t.length - 1;
251
- return n == r ? t.pop() : Co.call(t, n, 1), --this.size, !0;
251
+ return n == r ? t.pop() : Vo.call(t, n, 1), --this.size, !0;
252
252
  }
253
- function Oo(e) {
253
+ function Uo(e) {
254
254
  var t = this.__data__, n = Ie(t, e);
255
255
  return n < 0 ? void 0 : t[n][1];
256
256
  }
257
- function xo(e) {
257
+ function Lo(e) {
258
258
  return Ie(this.__data__, e) > -1;
259
259
  }
260
- function Mo(e, t) {
260
+ function Do(e, t) {
261
261
  var n = this.__data__, r = Ie(n, e);
262
262
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
263
263
  }
264
- function le(e) {
264
+ function ie(e) {
265
265
  var t = -1, n = e == null ? 0 : e.length;
266
266
  for (this.clear(); ++t < n; ) {
267
267
  var r = e[t];
268
268
  this.set(r[0], r[1]);
269
269
  }
270
270
  }
271
- le.prototype.clear = wo;
272
- le.prototype.delete = Po;
273
- le.prototype.get = Oo;
274
- le.prototype.has = xo;
275
- le.prototype.set = Mo;
276
- var xe = ve(Y, "Map");
277
- function Uo() {
271
+ ie.prototype.clear = Oo;
272
+ ie.prototype.delete = Mo;
273
+ ie.prototype.get = Uo;
274
+ ie.prototype.has = Lo;
275
+ ie.prototype.set = Do;
276
+ var Me = me(Y, "Map");
277
+ function jo() {
278
278
  this.size = 0, this.__data__ = {
279
279
  hash: new pe(),
280
- map: new (xe || le)(),
280
+ map: new (Me || ie)(),
281
281
  string: new pe()
282
282
  };
283
283
  }
284
- function Vo(e) {
284
+ function Eo(e) {
285
285
  var t = typeof e;
286
286
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
287
287
  }
288
288
  function Xe(e, t) {
289
289
  var n = e.__data__;
290
- return Vo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
290
+ return Eo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
291
291
  }
292
- function Lo(e) {
292
+ function No(e) {
293
293
  var t = Xe(this, e).delete(e);
294
294
  return this.size -= t ? 1 : 0, t;
295
295
  }
296
- function Do(e) {
296
+ function Bo(e) {
297
297
  return Xe(this, e).get(e);
298
298
  }
299
- function jo(e) {
299
+ function Ro(e) {
300
300
  return Xe(this, e).has(e);
301
301
  }
302
- function Eo(e, t) {
302
+ function ko(e, t) {
303
303
  var n = Xe(this, e), r = n.size;
304
304
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
305
305
  }
@@ -310,214 +310,214 @@ function ge(e) {
310
310
  this.set(r[0], r[1]);
311
311
  }
312
312
  }
313
- ge.prototype.clear = Uo;
314
- ge.prototype.delete = Lo;
315
- ge.prototype.get = Do;
316
- ge.prototype.has = jo;
317
- ge.prototype.set = Eo;
318
- function No(e, t) {
319
- for (var n = -1, r = t.length, l = e.length; ++n < r; )
320
- e[l + n] = t[n];
313
+ ge.prototype.clear = jo;
314
+ ge.prototype.delete = No;
315
+ ge.prototype.get = Bo;
316
+ ge.prototype.has = Ro;
317
+ ge.prototype.set = ko;
318
+ function Fo(e, t) {
319
+ for (var n = -1, r = t.length, i = e.length; ++n < r; )
320
+ e[i + n] = t[n];
321
321
  return e;
322
322
  }
323
- var Bo = tn(Object.getPrototypeOf, Object);
324
- function Ro() {
325
- this.__data__ = new le(), this.size = 0;
323
+ var Ho = nn(Object.getPrototypeOf, Object);
324
+ function Go() {
325
+ this.__data__ = new ie(), this.size = 0;
326
326
  }
327
- function ko(e) {
327
+ function Ko(e) {
328
328
  var t = this.__data__, n = t.delete(e);
329
329
  return this.size = t.size, n;
330
330
  }
331
- function Fo(e) {
331
+ function qo(e) {
332
332
  return this.__data__.get(e);
333
333
  }
334
- function Ho(e) {
334
+ function zo(e) {
335
335
  return this.__data__.has(e);
336
336
  }
337
- var Go = 200;
338
- function Ko(e, t) {
337
+ var Io = 200;
338
+ function Xo(e, t) {
339
339
  var n = this.__data__;
340
- if (n instanceof le) {
340
+ if (n instanceof ie) {
341
341
  var r = n.__data__;
342
- if (!xe || r.length < Go - 1)
342
+ if (!Me || r.length < Io - 1)
343
343
  return r.push([e, t]), this.size = ++n.size, this;
344
344
  n = this.__data__ = new ge(r);
345
345
  }
346
346
  return n.set(e, t), this.size = n.size, this;
347
347
  }
348
348
  function te(e) {
349
- var t = this.__data__ = new le(e);
349
+ var t = this.__data__ = new ie(e);
350
350
  this.size = t.size;
351
351
  }
352
- te.prototype.clear = Ro;
353
- te.prototype.delete = ko;
354
- te.prototype.get = Fo;
355
- te.prototype.has = Ho;
356
- te.prototype.set = Ko;
357
- var nn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = nn && typeof module == "object" && module && !module.nodeType && module, qo = wt && wt.exports === nn, At = qo ? Y.Buffer : void 0;
352
+ te.prototype.clear = Go;
353
+ te.prototype.delete = Ko;
354
+ te.prototype.get = qo;
355
+ te.prototype.has = zo;
356
+ te.prototype.set = Xo;
357
+ var rn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = rn && typeof module == "object" && module && !module.nodeType && module, Zo = wt && wt.exports === rn, At = Zo ? Y.Buffer : void 0;
358
358
  At && At.allocUnsafe;
359
- function zo(e, t) {
359
+ function Jo(e, t) {
360
360
  return e.slice();
361
361
  }
362
- function Io(e, t) {
363
- for (var n = -1, r = e == null ? 0 : e.length, l = 0, o = []; ++n < r; ) {
364
- var i = e[n];
365
- t(i, n, e) && (o[l++] = i);
362
+ function Wo(e, t) {
363
+ for (var n = -1, r = e == null ? 0 : e.length, i = 0, o = []; ++n < r; ) {
364
+ var l = e[n];
365
+ t(l, n, e) && (o[i++] = l);
366
366
  }
367
367
  return o;
368
368
  }
369
- function Xo() {
369
+ function Yo() {
370
370
  return [];
371
371
  }
372
- var Zo = Object.prototype, Jo = Zo.propertyIsEnumerable, Ct = Object.getOwnPropertySymbols, Wo = Ct ? function(e) {
373
- return e == null ? [] : (e = Object(e), Io(Ct(e), function(t) {
374
- return Jo.call(e, t);
372
+ var Qo = Object.prototype, ei = Qo.propertyIsEnumerable, Ct = Object.getOwnPropertySymbols, ti = Ct ? function(e) {
373
+ return e == null ? [] : (e = Object(e), Wo(Ct(e), function(t) {
374
+ return ei.call(e, t);
375
375
  }));
376
- } : Xo;
377
- function Yo(e, t, n) {
376
+ } : Yo;
377
+ function ni(e, t, n) {
378
378
  var r = t(e);
379
- return Pe(e) ? r : No(r, n(e));
379
+ return xe(e) ? r : Fo(r, n(e));
380
380
  }
381
381
  function ot(e) {
382
- return Yo(e, fo, Wo);
382
+ return ni(e, go, ti);
383
383
  }
384
- var lt = ve(Y, "DataView"), it = ve(Y, "Promise"), st = ve(Y, "Set"), Pt = "[object Map]", Qo = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Mt = "[object WeakMap]", Ut = "[object DataView]", el = me(lt), tl = me(xe), nl = me(it), rl = me(st), ol = me(rt), Z = Ve;
385
- (lt && Z(new lt(new ArrayBuffer(1))) != Ut || xe && Z(new xe()) != Pt || it && Z(it.resolve()) != Ot || st && Z(new st()) != xt || rt && Z(new rt()) != Mt) && (Z = function(e) {
386
- var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ? me(n) : "";
384
+ var it = me(Y, "DataView"), lt = me(Y, "Promise"), st = me(Y, "Set"), Pt = "[object Map]", ri = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Vt = "[object WeakMap]", Mt = "[object DataView]", oi = ve(it), ii = ve(Me), li = ve(lt), si = ve(st), ai = ve(rt), Z = Ue;
385
+ (it && Z(new it(new ArrayBuffer(1))) != Mt || Me && Z(new Me()) != Pt || lt && Z(lt.resolve()) != Ot || st && Z(new st()) != xt || rt && Z(new rt()) != Vt) && (Z = function(e) {
386
+ var t = Ue(e), n = t == ri ? e.constructor : void 0, r = n ? ve(n) : "";
387
387
  if (r)
388
388
  switch (r) {
389
- case el:
390
- return Ut;
391
- case tl:
389
+ case oi:
390
+ return Mt;
391
+ case ii:
392
392
  return Pt;
393
- case nl:
393
+ case li:
394
394
  return Ot;
395
- case rl:
395
+ case si:
396
396
  return xt;
397
- case ol:
398
- return Mt;
397
+ case ai:
398
+ return Vt;
399
399
  }
400
400
  return t;
401
401
  });
402
- var ll = Object.prototype, il = ll.hasOwnProperty;
403
- function sl(e) {
402
+ var ui = Object.prototype, ci = ui.hasOwnProperty;
403
+ function fi(e) {
404
404
  var t = e.length, n = new e.constructor(t);
405
- return t && typeof e[0] == "string" && il.call(e, "index") && (n.index = e.index, n.input = e.input), n;
405
+ return t && typeof e[0] == "string" && ci.call(e, "index") && (n.index = e.index, n.input = e.input), n;
406
406
  }
407
407
  var Ke = Y.Uint8Array;
408
408
  function dt(e) {
409
409
  var t = new e.constructor(e.byteLength);
410
410
  return new Ke(t).set(new Ke(e)), t;
411
411
  }
412
- function al(e, t) {
412
+ function di(e, t) {
413
413
  var n = dt(e.buffer);
414
414
  return new e.constructor(n, e.byteOffset, e.byteLength);
415
415
  }
416
- var ul = /\w*$/;
417
- function cl(e) {
418
- var t = new e.constructor(e.source, ul.exec(e));
416
+ var pi = /\w*$/;
417
+ function vi(e) {
418
+ var t = new e.constructor(e.source, pi.exec(e));
419
419
  return t.lastIndex = e.lastIndex, t;
420
420
  }
421
- var Vt = se ? se.prototype : void 0, Lt = Vt ? Vt.valueOf : void 0;
422
- function fl(e) {
421
+ var Ut = se ? se.prototype : void 0, Lt = Ut ? Ut.valueOf : void 0;
422
+ function mi(e) {
423
423
  return Lt ? Object(Lt.call(e)) : {};
424
424
  }
425
- function dl(e, t) {
425
+ function gi(e, t) {
426
426
  var n = dt(e.buffer);
427
427
  return new e.constructor(n, e.byteOffset, e.length);
428
428
  }
429
- var pl = "[object Boolean]", ml = "[object Date]", vl = "[object Map]", gl = "[object Number]", yl = "[object RegExp]", hl = "[object Set]", _l = "[object String]", bl = "[object Symbol]", $l = "[object ArrayBuffer]", Tl = "[object DataView]", Sl = "[object Float32Array]", wl = "[object Float64Array]", Al = "[object Int8Array]", Cl = "[object Int16Array]", Pl = "[object Int32Array]", Ol = "[object Uint8Array]", xl = "[object Uint8ClampedArray]", Ml = "[object Uint16Array]", Ul = "[object Uint32Array]";
430
- function Vl(e, t, n) {
429
+ var yi = "[object Boolean]", hi = "[object Date]", _i = "[object Map]", bi = "[object Number]", $i = "[object RegExp]", Ti = "[object Set]", Si = "[object String]", wi = "[object Symbol]", Ai = "[object ArrayBuffer]", Ci = "[object DataView]", Pi = "[object Float32Array]", Oi = "[object Float64Array]", xi = "[object Int8Array]", Vi = "[object Int16Array]", Mi = "[object Int32Array]", Ui = "[object Uint8Array]", Li = "[object Uint8ClampedArray]", Di = "[object Uint16Array]", ji = "[object Uint32Array]";
430
+ function Ei(e, t, n) {
431
431
  var r = e.constructor;
432
432
  switch (t) {
433
- case $l:
433
+ case Ai:
434
434
  return dt(e);
435
- case pl:
436
- case ml:
435
+ case yi:
436
+ case hi:
437
437
  return new r(+e);
438
- case Tl:
439
- return al(e);
440
- case Sl:
441
- case wl:
442
- case Al:
443
- case Cl:
444
- case Pl:
445
- case Ol:
446
- case xl:
447
- case Ml:
448
- case Ul:
449
- return dl(e);
450
- case vl:
438
+ case Ci:
439
+ return di(e);
440
+ case Pi:
441
+ case Oi:
442
+ case xi:
443
+ case Vi:
444
+ case Mi:
445
+ case Ui:
446
+ case Li:
447
+ case Di:
448
+ case ji:
449
+ return gi(e);
450
+ case _i:
451
451
  return new r();
452
- case gl:
453
- case _l:
452
+ case bi:
453
+ case Si:
454
454
  return new r(e);
455
- case yl:
456
- return cl(e);
457
- case hl:
455
+ case $i:
456
+ return vi(e);
457
+ case Ti:
458
458
  return new r();
459
- case bl:
460
- return fl(e);
459
+ case wi:
460
+ return mi(e);
461
461
  }
462
462
  }
463
- function Ll(e) {
464
- return typeof e.constructor == "function" && !Jt(e) ? dr(Bo(e)) : {};
463
+ function Ni(e) {
464
+ return typeof e.constructor == "function" && !Wt(e) ? gr(Ho(e)) : {};
465
465
  }
466
- var Dl = "[object Map]";
467
- function jl(e) {
468
- return de(e) && Z(e) == Dl;
466
+ var Bi = "[object Map]";
467
+ function Ri(e) {
468
+ return de(e) && Z(e) == Bi;
469
469
  }
470
- var Dt = $e && $e.isMap, El = Dt ? ft(Dt) : jl, Nl = "[object Set]";
471
- function Bl(e) {
472
- return de(e) && Z(e) == Nl;
470
+ var Dt = $e && $e.isMap, ki = Dt ? ft(Dt) : Ri, Fi = "[object Set]";
471
+ function Hi(e) {
472
+ return de(e) && Z(e) == Fi;
473
473
  }
474
- var jt = $e && $e.isSet, Rl = jt ? ft(jt) : Bl, rn = "[object Arguments]", kl = "[object Array]", Fl = "[object Boolean]", Hl = "[object Date]", Gl = "[object Error]", on = "[object Function]", Kl = "[object GeneratorFunction]", ql = "[object Map]", zl = "[object Number]", ln = "[object Object]", Il = "[object RegExp]", Xl = "[object Set]", Zl = "[object String]", Jl = "[object Symbol]", Wl = "[object WeakMap]", Yl = "[object ArrayBuffer]", Ql = "[object DataView]", ei = "[object Float32Array]", ti = "[object Float64Array]", ni = "[object Int8Array]", ri = "[object Int16Array]", oi = "[object Int32Array]", li = "[object Uint8Array]", ii = "[object Uint8ClampedArray]", si = "[object Uint16Array]", ai = "[object Uint32Array]", P = {};
475
- P[rn] = P[kl] = P[Yl] = P[Ql] = P[Fl] = P[Hl] = P[ei] = P[ti] = P[ni] = P[ri] = P[oi] = P[ql] = P[zl] = P[ln] = P[Il] = P[Xl] = P[Zl] = P[Jl] = P[li] = P[ii] = P[si] = P[ai] = !0;
476
- P[Gl] = P[on] = P[Wl] = !1;
477
- function ke(e, t, n, r, l, o) {
478
- var i;
479
- if (i !== void 0)
480
- return i;
474
+ var jt = $e && $e.isSet, Gi = jt ? ft(jt) : Hi, on = "[object Arguments]", Ki = "[object Array]", qi = "[object Boolean]", zi = "[object Date]", Ii = "[object Error]", ln = "[object Function]", Xi = "[object GeneratorFunction]", Zi = "[object Map]", Ji = "[object Number]", sn = "[object Object]", Wi = "[object RegExp]", Yi = "[object Set]", Qi = "[object String]", el = "[object Symbol]", tl = "[object WeakMap]", nl = "[object ArrayBuffer]", rl = "[object DataView]", ol = "[object Float32Array]", il = "[object Float64Array]", ll = "[object Int8Array]", sl = "[object Int16Array]", al = "[object Int32Array]", ul = "[object Uint8Array]", cl = "[object Uint8ClampedArray]", fl = "[object Uint16Array]", dl = "[object Uint32Array]", O = {};
475
+ O[on] = O[Ki] = O[nl] = O[rl] = O[qi] = O[zi] = O[ol] = O[il] = O[ll] = O[sl] = O[al] = O[Zi] = O[Ji] = O[sn] = O[Wi] = O[Yi] = O[Qi] = O[el] = O[ul] = O[cl] = O[fl] = O[dl] = !0;
476
+ O[Ii] = O[ln] = O[tl] = !1;
477
+ function ke(e, t, n, r, i, o) {
478
+ var l;
479
+ if (l !== void 0)
480
+ return l;
481
481
  if (!ze(e))
482
482
  return e;
483
- var s = Pe(e);
484
- if (s)
485
- i = sl(e);
483
+ var u = xe(e);
484
+ if (u)
485
+ l = fi(e);
486
486
  else {
487
- var u = Z(e), a = u == on || u == Kl;
487
+ var a = Z(e), s = a == ln || a == Xi;
488
488
  if (Ge(e))
489
- return zo(e);
490
- if (u == ln || u == rn || a && !l)
491
- i = a ? {} : Ll(e);
489
+ return Jo(e);
490
+ if (a == sn || a == on || s && !i)
491
+ l = s ? {} : Ni(e);
492
492
  else {
493
- if (!P[u])
494
- return l ? e : {};
495
- i = Vl(e, u);
493
+ if (!O[a])
494
+ return i ? e : {};
495
+ l = Ei(e, a);
496
496
  }
497
497
  }
498
498
  o || (o = new te());
499
- var d = o.get(e);
500
- if (d)
501
- return d;
502
- o.set(e, i), Rl(e) ? e.forEach(function(y) {
503
- i.add(ke(y, t, n, y, e, o));
504
- }) : El(e) && e.forEach(function(y, h) {
505
- i.set(h, ke(y, t, n, h, e, o));
499
+ var p = o.get(e);
500
+ if (p)
501
+ return p;
502
+ o.set(e, l), Gi(e) ? e.forEach(function(v) {
503
+ l.add(ke(v, t, n, v, e, o));
504
+ }) : ki(e) && e.forEach(function(v, h) {
505
+ l.set(h, ke(v, t, n, h, e, o));
506
506
  });
507
- var c = ot, g = s ? void 0 : c(e);
508
- return pr(g || e, function(y, h) {
509
- g && (h = y, y = e[h]), br(i, h, ke(y, t, n, h, e, o));
510
- }), i;
507
+ var f = ot, d = u ? void 0 : f(e);
508
+ return yr(d || e, function(v, h) {
509
+ d && (h = v, v = e[h]), wr(l, h, ke(v, t, n, h, e, o));
510
+ }), l;
511
511
  }
512
- var ui = 1, ci = 4;
513
- function sn(e) {
514
- return ke(e, ui | ci);
512
+ var pl = 1, vl = 4;
513
+ function an(e) {
514
+ return ke(e, pl | vl);
515
515
  }
516
- var fi = "__lodash_hash_undefined__";
517
- function di(e) {
518
- return this.__data__.set(e, fi), this;
516
+ var ml = "__lodash_hash_undefined__";
517
+ function gl(e) {
518
+ return this.__data__.set(e, ml), this;
519
519
  }
520
- function pi(e) {
520
+ function yl(e) {
521
521
  return this.__data__.has(e);
522
522
  }
523
523
  function qe(e) {
@@ -525,189 +525,189 @@ function qe(e) {
525
525
  for (this.__data__ = new ge(); ++t < n; )
526
526
  this.add(e[t]);
527
527
  }
528
- qe.prototype.add = qe.prototype.push = di;
529
- qe.prototype.has = pi;
530
- function mi(e, t) {
528
+ qe.prototype.add = qe.prototype.push = gl;
529
+ qe.prototype.has = yl;
530
+ function hl(e, t) {
531
531
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
532
532
  if (t(e[n], n, e))
533
533
  return !0;
534
534
  return !1;
535
535
  }
536
- function vi(e, t) {
536
+ function _l(e, t) {
537
537
  return e.has(t);
538
538
  }
539
- var gi = 1, yi = 2;
540
- function an(e, t, n, r, l, o) {
541
- var i = n & gi, s = e.length, u = t.length;
542
- if (s != u && !(i && u > s))
539
+ var bl = 1, $l = 2;
540
+ function un(e, t, n, r, i, o) {
541
+ var l = n & bl, u = e.length, a = t.length;
542
+ if (u != a && !(l && a > u))
543
543
  return !1;
544
- var a = o.get(e), d = o.get(t);
545
- if (a && d)
546
- return a == t && d == e;
547
- var c = -1, g = !0, y = n & yi ? new qe() : void 0;
548
- for (o.set(e, t), o.set(t, e); ++c < s; ) {
549
- var h = e[c], M = t[c];
544
+ var s = o.get(e), p = o.get(t);
545
+ if (s && p)
546
+ return s == t && p == e;
547
+ var f = -1, d = !0, v = n & $l ? new qe() : void 0;
548
+ for (o.set(e, t), o.set(t, e); ++f < u; ) {
549
+ var h = e[f], V = t[f];
550
550
  if (r)
551
- var b = i ? r(M, h, c, t, e, o) : r(h, M, c, e, t, o);
552
- if (b !== void 0) {
553
- if (b)
551
+ var w = l ? r(V, h, f, t, e, o) : r(h, V, f, e, t, o);
552
+ if (w !== void 0) {
553
+ if (w)
554
554
  continue;
555
- g = !1;
555
+ d = !1;
556
556
  break;
557
557
  }
558
- if (y) {
559
- if (!mi(t, function(D, w) {
560
- if (!vi(y, w) && (h === D || l(h, D, n, r, o)))
561
- return y.push(w);
558
+ if (v) {
559
+ if (!hl(t, function(A, b) {
560
+ if (!_l(v, b) && (h === A || i(h, A, n, r, o)))
561
+ return v.push(b);
562
562
  })) {
563
- g = !1;
563
+ d = !1;
564
564
  break;
565
565
  }
566
- } else if (!(h === M || l(h, M, n, r, o))) {
567
- g = !1;
566
+ } else if (!(h === V || i(h, V, n, r, o))) {
567
+ d = !1;
568
568
  break;
569
569
  }
570
570
  }
571
- return o.delete(e), o.delete(t), g;
571
+ return o.delete(e), o.delete(t), d;
572
572
  }
573
- function hi(e) {
573
+ function Tl(e) {
574
574
  var t = -1, n = Array(e.size);
575
- return e.forEach(function(r, l) {
576
- n[++t] = [l, r];
575
+ return e.forEach(function(r, i) {
576
+ n[++t] = [i, r];
577
577
  }), n;
578
578
  }
579
- function _i(e) {
579
+ function Sl(e) {
580
580
  var t = -1, n = Array(e.size);
581
581
  return e.forEach(function(r) {
582
582
  n[++t] = r;
583
583
  }), n;
584
584
  }
585
- var bi = 1, $i = 2, Ti = "[object Boolean]", Si = "[object Date]", wi = "[object Error]", Ai = "[object Map]", Ci = "[object Number]", Pi = "[object RegExp]", Oi = "[object Set]", xi = "[object String]", Mi = "[object Symbol]", Ui = "[object ArrayBuffer]", Vi = "[object DataView]", Et = se ? se.prototype : void 0, tt = Et ? Et.valueOf : void 0;
586
- function Li(e, t, n, r, l, o, i) {
585
+ var wl = 1, Al = 2, Cl = "[object Boolean]", Pl = "[object Date]", Ol = "[object Error]", xl = "[object Map]", Vl = "[object Number]", Ml = "[object RegExp]", Ul = "[object Set]", Ll = "[object String]", Dl = "[object Symbol]", jl = "[object ArrayBuffer]", El = "[object DataView]", Et = se ? se.prototype : void 0, tt = Et ? Et.valueOf : void 0;
586
+ function Nl(e, t, n, r, i, o, l) {
587
587
  switch (n) {
588
- case Vi:
588
+ case El:
589
589
  if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
590
590
  return !1;
591
591
  e = e.buffer, t = t.buffer;
592
- case Ui:
592
+ case jl:
593
593
  return !(e.byteLength != t.byteLength || !o(new Ke(e), new Ke(t)));
594
- case Ti:
595
- case Si:
596
- case Ci:
594
+ case Cl:
595
+ case Pl:
596
+ case Vl:
597
597
  return ct(+e, +t);
598
- case wi:
598
+ case Ol:
599
599
  return e.name == t.name && e.message == t.message;
600
- case Pi:
601
- case xi:
600
+ case Ml:
601
+ case Ll:
602
602
  return e == t + "";
603
- case Ai:
604
- var s = hi;
605
- case Oi:
606
- var u = r & bi;
607
- if (s || (s = _i), e.size != t.size && !u)
603
+ case xl:
604
+ var u = Tl;
605
+ case Ul:
606
+ var a = r & wl;
607
+ if (u || (u = Sl), e.size != t.size && !a)
608
608
  return !1;
609
- var a = i.get(e);
610
- if (a)
611
- return a == t;
612
- r |= $i, i.set(e, t);
613
- var d = an(s(e), s(t), r, l, o, i);
614
- return i.delete(e), d;
615
- case Mi:
609
+ var s = l.get(e);
610
+ if (s)
611
+ return s == t;
612
+ r |= Al, l.set(e, t);
613
+ var p = un(u(e), u(t), r, i, o, l);
614
+ return l.delete(e), p;
615
+ case Dl:
616
616
  if (tt)
617
617
  return tt.call(e) == tt.call(t);
618
618
  }
619
619
  return !1;
620
620
  }
621
- var Di = 1, ji = Object.prototype, Ei = ji.hasOwnProperty;
622
- function Ni(e, t, n, r, l, o) {
623
- var i = n & Di, s = ot(e), u = s.length, a = ot(t), d = a.length;
624
- if (u != d && !i)
621
+ var Bl = 1, Rl = Object.prototype, kl = Rl.hasOwnProperty;
622
+ function Fl(e, t, n, r, i, o) {
623
+ var l = n & Bl, u = ot(e), a = u.length, s = ot(t), p = s.length;
624
+ if (a != p && !l)
625
625
  return !1;
626
- for (var c = u; c--; ) {
627
- var g = s[c];
628
- if (!(i ? g in t : Ei.call(t, g)))
626
+ for (var f = a; f--; ) {
627
+ var d = u[f];
628
+ if (!(l ? d in t : kl.call(t, d)))
629
629
  return !1;
630
630
  }
631
- var y = o.get(e), h = o.get(t);
632
- if (y && h)
633
- return y == t && h == e;
634
- var M = !0;
631
+ var v = o.get(e), h = o.get(t);
632
+ if (v && h)
633
+ return v == t && h == e;
634
+ var V = !0;
635
635
  o.set(e, t), o.set(t, e);
636
- for (var b = i; ++c < u; ) {
637
- g = s[c];
638
- var D = e[g], w = t[g];
636
+ for (var w = l; ++f < a; ) {
637
+ d = u[f];
638
+ var A = e[d], b = t[d];
639
639
  if (r)
640
- var U = i ? r(w, D, g, t, e, o) : r(D, w, g, e, t, o);
641
- if (!(U === void 0 ? D === w || l(D, w, n, r, o) : U)) {
642
- M = !1;
640
+ var U = l ? r(b, A, d, t, e, o) : r(A, b, d, e, t, o);
641
+ if (!(U === void 0 ? A === b || i(A, b, n, r, o) : U)) {
642
+ V = !1;
643
643
  break;
644
644
  }
645
- b || (b = g == "constructor");
645
+ w || (w = d == "constructor");
646
646
  }
647
- if (M && !b) {
648
- var A = e.constructor, V = t.constructor;
649
- A != V && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof V == "function" && V instanceof V) && (M = !1);
647
+ if (V && !w) {
648
+ var C = e.constructor, L = t.constructor;
649
+ C != L && "constructor" in e && "constructor" in t && !(typeof C == "function" && C instanceof C && typeof L == "function" && L instanceof L) && (V = !1);
650
650
  }
651
- return o.delete(e), o.delete(t), M;
652
- }
653
- var Bi = 1, Nt = "[object Arguments]", Bt = "[object Array]", Ee = "[object Object]", Ri = Object.prototype, Rt = Ri.hasOwnProperty;
654
- function ki(e, t, n, r, l, o) {
655
- var i = Pe(e), s = Pe(t), u = i ? Bt : Z(e), a = s ? Bt : Z(t);
656
- u = u == Nt ? Ee : u, a = a == Nt ? Ee : a;
657
- var d = u == Ee, c = a == Ee, g = u == a;
658
- if (g && Ge(e)) {
651
+ return o.delete(e), o.delete(t), V;
652
+ }
653
+ var Hl = 1, Nt = "[object Arguments]", Bt = "[object Array]", Ee = "[object Object]", Gl = Object.prototype, Rt = Gl.hasOwnProperty;
654
+ function Kl(e, t, n, r, i, o) {
655
+ var l = xe(e), u = xe(t), a = l ? Bt : Z(e), s = u ? Bt : Z(t);
656
+ a = a == Nt ? Ee : a, s = s == Nt ? Ee : s;
657
+ var p = a == Ee, f = s == Ee, d = a == s;
658
+ if (d && Ge(e)) {
659
659
  if (!Ge(t))
660
660
  return !1;
661
- i = !0, d = !1;
661
+ l = !0, p = !1;
662
662
  }
663
- if (g && !d)
664
- return o || (o = new te()), i || en(e) ? an(e, t, n, r, l, o) : Li(e, t, u, n, r, l, o);
665
- if (!(n & Bi)) {
666
- var y = d && Rt.call(e, "__wrapped__"), h = c && Rt.call(t, "__wrapped__");
667
- if (y || h) {
668
- var M = y ? e.value() : e, b = h ? t.value() : t;
669
- return o || (o = new te()), l(M, b, n, r, o);
663
+ if (d && !p)
664
+ return o || (o = new te()), l || tn(e) ? un(e, t, n, r, i, o) : Nl(e, t, a, n, r, i, o);
665
+ if (!(n & Hl)) {
666
+ var v = p && Rt.call(e, "__wrapped__"), h = f && Rt.call(t, "__wrapped__");
667
+ if (v || h) {
668
+ var V = v ? e.value() : e, w = h ? t.value() : t;
669
+ return o || (o = new te()), i(V, w, n, r, o);
670
670
  }
671
671
  }
672
- return g ? (o || (o = new te()), Ni(e, t, n, r, l, o)) : !1;
672
+ return d ? (o || (o = new te()), Fl(e, t, n, r, i, o)) : !1;
673
673
  }
674
- function un(e, t, n, r, l) {
675
- return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : ki(e, t, n, r, un, l);
674
+ function cn(e, t, n, r, i) {
675
+ return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : Kl(e, t, n, r, cn, i);
676
676
  }
677
677
  function Ze(e, t) {
678
- return un(e, t);
678
+ return cn(e, t);
679
679
  }
680
- function Fi(e, t) {
680
+ function ql(e, t) {
681
681
  const n = [];
682
682
  let r = [];
683
- e.forEach((i) => {
684
- i.type === 0 ? n.push(i) : i.type === 1 ? r.push(i) : console.assert(!1);
685
- }), n.sort((i, s) => i.position - s.position), r.sort((i, s) => i.position - s.position);
686
- const l = [];
687
- r.forEach((i) => {
688
- n.find((s) => s.id === i.group) || l.push(i.id);
689
- }), r = r.filter((i) => !l.find((s) => s === i.id));
683
+ e.forEach((l) => {
684
+ l.type === 0 ? n.push(l) : l.type === 1 ? r.push(l) : console.assert(!1);
685
+ }), n.sort((l, u) => l.position - u.position), r.sort((l, u) => l.position - u.position);
686
+ const i = [];
687
+ r.forEach((l) => {
688
+ n.find((u) => u.id === l.group) || i.push(l.id);
689
+ }), r = r.filter((l) => !i.find((u) => u === l.id));
690
690
  const o = [];
691
- return n.forEach((i) => {
692
- const s = [];
693
- r.forEach((u) => {
694
- u.group === i.id && (u.show = !i.collapse, s.push(u));
695
- }), i.count = s.length, i.count > 0 && (o.push(i), o.push(...s));
691
+ return n.forEach((l) => {
692
+ const u = [];
693
+ r.forEach((a) => {
694
+ a.group === l.id && (a.show = !l.collapse, u.push(a));
695
+ }), l.count = u.length, l.count > 0 && (o.push(l), o.push(...u));
696
696
  }), o;
697
697
  }
698
- function cn(e, t) {
698
+ function fn(e, t) {
699
699
  return e.value.find((n) => n.id === t);
700
700
  }
701
- function Hi(e, t, n) {
701
+ function zl(e, t, n) {
702
702
  for (let r = 0; r < e.value.length; r++) {
703
- let l = e.value[r];
704
- if (l.id === t) {
705
- if (l.type !== 0) {
703
+ let i = e.value[r];
704
+ if (i.id === t) {
705
+ if (i.type !== 0) {
706
706
  console.assert(!1, "type must be 0");
707
707
  break;
708
708
  }
709
- for (l.collapse = n, r++; r < e.value.length && (l = e.value[r], l.type !== 0); r++)
710
- l.show = !n;
709
+ for (i.collapse = n, r++; r < e.value.length && (i = e.value[r], i.type !== 0); r++)
710
+ i.show = !n;
711
711
  break;
712
712
  }
713
713
  }
@@ -724,10 +724,10 @@ const Ne = (e, t) => {
724
724
  console.assert(!1, `unpkgProp prop ui must be invalid keys=${t}`);
725
725
  return;
726
726
  }
727
- n = n.children.find((l) => l.key === r);
727
+ n = n.children.find((i) => i.key === r);
728
728
  }
729
729
  }), n;
730
- }, Ae = (e, t) => {
730
+ }, Pe = (e, t) => {
731
731
  let n = e;
732
732
  return t.forEach((r) => {
733
733
  if (!n) {
@@ -736,131 +736,131 @@ const Ne = (e, t) => {
736
736
  }
737
737
  n = n[r];
738
738
  }), n;
739
- }, kt = (e) => !(e instanceof Array), nt = (e) => e instanceof Array, Gi = (e, t) => {
740
- const n = (r, l) => {
741
- if (r.ui !== l.ui || r.array !== l.array)
739
+ }, kt = (e) => !(e instanceof Array), nt = (e) => e instanceof Array, Il = (e, t) => {
740
+ const n = (r, i) => {
741
+ if (r.ui !== i.ui || r.array !== i.array)
742
742
  return !1;
743
- if (r.ui || l.ui)
743
+ if (r.ui || i.ui)
744
744
  return !0;
745
- if (r.children.length !== l.children.length)
745
+ if (r.children.length !== i.children.length)
746
746
  return !1;
747
747
  for (let o = 0; o < r.children.length; o++)
748
- if (!n(r.children[o], l.children[o]))
748
+ if (!n(r.children[o], i.children[o]))
749
749
  return !1;
750
750
  return !0;
751
751
  };
752
752
  return n(e, t);
753
- }, pt = (e) => !(e instanceof Array), Je = (e) => e instanceof Array, Ki = [
753
+ }, pt = (e) => !(e instanceof Array), Je = (e) => e instanceof Array, Xl = [
754
754
  ["basic", "id"],
755
755
  ["basic", "name"]
756
- ], qi = (e) => Ki.find((t) => Ze(e, t)), We = (e, t, n, r, l, o, i) => (e = sn(e), o !== void 0 ? (e.push(o), i && e.push(t.key)) : e.push(t.key), qi(e) ? (r.change = !1, r.change) : t.ui ? t.array && r.children && Je(r.children) ? Xi(
756
+ ], Zl = (e) => Xl.find((t) => Ze(e, t)), We = (e, t, n, r, i, o, l) => (e = an(e), o !== void 0 ? (e.push(o), l && e.push(t.key)) : e.push(t.key), Zl(e) ? (r.change = !1, r.change) : t.ui ? t.array && r.children && Je(r.children) ? Yl(
757
757
  e,
758
758
  t,
759
759
  n,
760
760
  r,
761
- l,
761
+ i,
762
762
  o,
763
- i
764
- ) : Zi(t, n, r, o, i) : t.array ? zi(
763
+ l
764
+ ) : Ql(t, n, r, o, l) : t.array ? Jl(
765
765
  e,
766
766
  t,
767
767
  n,
768
768
  r,
769
- l,
769
+ i,
770
770
  o,
771
- i
772
- ) : Ii(
771
+ l
772
+ ) : Wl(
773
773
  e,
774
774
  t,
775
775
  n,
776
776
  r,
777
- l,
777
+ i,
778
778
  o,
779
- i
780
- )), zi = (e, t, n, r, l, o, i) => {
779
+ l
780
+ )), Jl = (e, t, n, r, i, o, l) => {
781
781
  if (t.ui)
782
782
  return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
783
783
  if (!t.array)
784
784
  return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
785
785
  if (!r.children || !Je(r.children))
786
786
  return console.assert(!1, "execPropBranchArray state children must be array"), !1;
787
- let s;
788
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = N(t), l == null || l(e, n[o])), s = n[o]) : (n[t.key] instanceof Array || (n[t.key] = N(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
789
- for (let u = 0; u < s.length; u++) {
787
+ let u;
788
+ o !== void 0 && !l ? (n[o] instanceof Array || (n[o] = N(t), i == null || i(e, n[o])), u = n[o]) : (n[t.key] instanceof Array || (n[t.key] = N(t), i == null || i(e, n[t.key])), u = n[t.key]), r.change = !1;
789
+ for (let a = 0; a < u.length; a++) {
790
790
  r.children.push({
791
791
  change: !1,
792
792
  children: {}
793
793
  });
794
- const a = r.children[u];
795
- t.children.forEach((d) => {
796
- if (!a.children || !pt(a.children)) {
794
+ const s = r.children[a];
795
+ t.children.forEach((p) => {
796
+ if (!s.children || !pt(s.children)) {
797
797
  console.assert(!1);
798
798
  return;
799
799
  }
800
- a.children[d.key] = {
800
+ s.children[p.key] = {
801
801
  change: !1,
802
- children: d.array ? [] : {}
802
+ children: p.array ? [] : {}
803
803
  }, We(
804
804
  e,
805
- d,
806
- s[u],
807
- a.children[d.key],
808
- l,
809
- u,
805
+ p,
806
+ u[a],
807
+ s.children[p.key],
808
+ i,
809
+ a,
810
810
  !0
811
- ) && (a.change = !0), a.change && (r.change = !0);
811
+ ) && (s.change = !0), s.change && (r.change = !0);
812
812
  });
813
813
  }
814
- return r.change || (r.change = !Ze(s, N(t))), r.change;
815
- }, Ii = (e, t, n, r, l, o, i) => {
814
+ return r.change || (r.change = !Ze(u, N(t))), r.change;
815
+ }, Wl = (e, t, n, r, i, o, l) => {
816
816
  if (t.ui)
817
817
  return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
818
818
  if (t.array)
819
819
  return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
820
820
  if (!r.children || !pt(r.children))
821
821
  return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
822
- let s;
823
- o !== void 0 && !i ? (n[o] || (n[o] = {}), s = n[o]) : (n[t.key] || (n[t.key] = {}), s = n[t.key]), r.change = !1;
824
- for (let u = 0; u < t.children.length; u++) {
825
- const a = t.children[u];
826
- r.children[a.key] = {
822
+ let u;
823
+ o !== void 0 && !l ? (n[o] || (n[o] = {}), u = n[o]) : (n[t.key] || (n[t.key] = {}), u = n[t.key]), r.change = !1;
824
+ for (let a = 0; a < t.children.length; a++) {
825
+ const s = t.children[a];
826
+ r.children[s.key] = {
827
827
  change: !1,
828
- children: a.array ? [] : {}
829
- }, We(e, a, s, r.children[a.key], l) && (r.change = !0);
828
+ children: s.array ? [] : {}
829
+ }, We(e, s, u, r.children[s.key], i) && (r.change = !0);
830
830
  }
831
831
  return r.change;
832
- }, Xi = (e, t, n, r, l, o, i) => {
832
+ }, Yl = (e, t, n, r, i, o, l) => {
833
833
  if (!t.ui)
834
834
  return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
835
835
  if (!t.array)
836
836
  return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
837
837
  if (!r.children || !Je(r.children))
838
838
  return console.assert(!1, "execPropLeafArray state children must be array"), !1;
839
- let s;
840
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = N(t), l == null || l(e, n[o])), s = n[o]) : (n[t.key] instanceof Array || (n[t.key] = N(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
841
- for (let u = 0; u < s.length; u++)
842
- r.children[u] = {
839
+ let u;
840
+ o !== void 0 && !l ? (n[o] instanceof Array || (n[o] = N(t), i == null || i(e, n[o])), u = n[o]) : (n[t.key] instanceof Array || (n[t.key] = N(t), i == null || i(e, n[t.key])), u = n[t.key]), r.change = !1;
841
+ for (let a = 0; a < u.length; a++)
842
+ r.children[a] = {
843
843
  change: !1,
844
844
  children: {}
845
- }, We(e, t, s, r.children[u], l, u, !1) && (r.change = !0);
846
- return r.change || (r.change = !Ze(s, N(t))), r.change;
847
- }, Zi = (e, t, n, r, l) => {
845
+ }, We(e, t, u, r.children[a], i, a, !1) && (r.change = !0);
846
+ return r.change || (r.change = !Ze(u, N(t))), r.change;
847
+ }, Ql = (e, t, n, r, i) => {
848
848
  if (!e.ui)
849
849
  return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
850
850
  let o;
851
- return r !== void 0 && !l ? o = t[r] : o = t[e.key], n.change = !Ze(o, N(e, !0)), n.change;
851
+ return r !== void 0 && !i ? o = t[r] : o = t[e.key], n.change = !Ze(o, N(e, !0)), n.change;
852
852
  }, Ft = (e, t, n, r) => {
853
853
  if (t.length <= 0 || !n) {
854
854
  e.value = {};
855
855
  return;
856
856
  }
857
- const l = {};
857
+ const i = {};
858
858
  t.forEach((o) => {
859
- l[o.key] = {
859
+ i[o.key] = {
860
860
  change: !1,
861
861
  children: o.array ? [] : {}
862
- }, We([], o, n, l[o.key], r);
863
- }), e.value = l;
862
+ }, We([], o, n, i[o.key], r);
863
+ }), e.value = i;
864
864
  }, be = (e, t) => {
865
865
  let n = { change: !1, children: e };
866
866
  return t.forEach((r) => {
@@ -870,145 +870,151 @@ const Ne = (e, t) => {
870
870
  return console.assert(!1, `isPropChanged state must be valid keys=${t}`), !1;
871
871
  typeof r == "string" ? pt(n.children) && (n = n.children[r]) : Je(n.children) && (n = n.children[r]);
872
872
  }), (n == null ? void 0 : n.change) ?? !1;
873
- }, fn = Symbol(), dn = Symbol(), pn = Symbol(), mn = Symbol(), vn = Symbol();
874
- function Ji(e) {
875
- Me(fn, e);
873
+ }, dn = Symbol(), pn = Symbol(), vn = Symbol(), mn = Symbol(), gn = Symbol(), yn = Symbol();
874
+ function es(e) {
875
+ Te(dn, e);
876
876
  }
877
- function Wi() {
878
- return Ue(fn);
877
+ function hn() {
878
+ return Se(dn);
879
879
  }
880
- function Yi(e) {
881
- Me(dn, e);
880
+ function ts(e) {
881
+ Te(pn, e);
882
882
  }
883
- function Qi() {
884
- return Ue(dn);
883
+ function ns() {
884
+ return Se(pn);
885
885
  }
886
- function es(e) {
887
- Me(pn, e);
886
+ function rs(e) {
887
+ Te(vn, e);
888
+ }
889
+ function os() {
890
+ return Se(vn);
891
+ }
892
+ function is(e) {
893
+ Te(mn, e);
888
894
  }
889
- function ts() {
890
- return Ue(pn);
895
+ function ls() {
896
+ return Se(mn);
891
897
  }
892
- function ns(e) {
893
- Me(mn, e);
898
+ function ss(e) {
899
+ Te(gn, e);
894
900
  }
895
- function rs() {
896
- return Ue(mn);
901
+ function as() {
902
+ return Se(gn);
897
903
  }
898
- function os(e) {
899
- Me(vn, e);
904
+ function us(e) {
905
+ Te(yn, e);
900
906
  }
901
- function gn() {
902
- return Ue(vn);
907
+ function _n() {
908
+ return Se(yn);
903
909
  }
904
- const ls = /* @__PURE__ */ K({
910
+ const cs = /* @__PURE__ */ K({
905
911
  __name: "menu",
906
912
  setup(e) {
907
- const { t } = ue(), n = Wi(), r = Qi(), l = ts(), o = rs(), i = R(0), s = R(0), u = R([]), a = G(() => [i.value, s.value]), d = (b) => {
908
- const D = () => !(u.value.length <= 0 || !be(l.value, u.value)), w = () => {
909
- if (!D())
913
+ const { t } = ue(), n = ns(), r = os(), i = ls(), o = as(), l = R(0), u = R(0), a = R([]), s = k(() => [l.value, u.value]), p = (w) => {
914
+ const A = () => !(a.value.length <= 0 || !be(i.value, a.value)), b = () => {
915
+ if (!A())
910
916
  return;
911
- const U = Ne(n.value, u.value);
917
+ const U = Ne(n.value, a.value);
912
918
  if (U)
913
919
  if (U.ui) {
914
- const A = Ae(r.value, u.value.slice(0, -1));
915
- if (!A)
920
+ const C = Pe(r.value, a.value.slice(0, -1));
921
+ if (!C)
916
922
  return;
917
- A[u.value.at(-1)] = N(U), o(u.value, A[u.value.at(-1)]);
923
+ C[a.value.at(-1)] = N(U), o(a.value, C[a.value.at(-1)]);
918
924
  } else if (U.array) {
919
- const A = u.value.at(-1);
920
- if (A === void 0) {
925
+ const C = a.value.at(-1);
926
+ if (C === void 0) {
921
927
  console.assert(!1, "invalid last key");
922
928
  return;
923
929
  }
924
- if (typeof A == "string") {
925
- const V = Ae(r.value, u.value.slice(0, -1));
926
- if (!V)
930
+ if (typeof C == "string") {
931
+ const L = Pe(r.value, a.value.slice(0, -1));
932
+ if (!L)
927
933
  return;
928
- V[u.value.at(-1)] = N(U), o(u.value, V[u.value.at(-1)]);
934
+ L[a.value.at(-1)] = N(U), o(a.value, L[a.value.at(-1)]);
929
935
  } else {
930
- const V = Ae(r.value, u.value);
931
- if (!V)
936
+ const L = Pe(r.value, a.value);
937
+ if (!L)
932
938
  return;
933
939
  U.children.forEach((W) => {
934
- V[W.key] = N(U), o([...u.value, W.key], V[W.key]);
940
+ L[W.key] = N(U), o([...a.value, W.key], L[W.key]);
935
941
  });
936
942
  }
937
943
  } else {
938
- const A = Ae(r.value, u.value);
939
- if (!A)
944
+ const C = Pe(r.value, a.value);
945
+ if (!C)
940
946
  return;
941
- U.children.forEach((V) => {
942
- A[V.key] = N(U), o([...u.value, V.key], A[V.key]);
947
+ U.children.forEach((L) => {
948
+ C[L.key] = N(U), o([...a.value, L.key], C[L.key]);
943
949
  });
944
950
  }
945
951
  };
946
- D() && b.push({
952
+ A() && w.push({
947
953
  title: t("x-prop-tree.reset"),
948
- func: w
954
+ func: b
949
955
  });
950
- }, c = (b) => {
951
- const D = () => {
952
- const w = Ne(n.value, u.value), U = Ae(r.value, u.value);
953
- localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object: U }));
956
+ }, f = (w) => {
957
+ const A = () => {
958
+ const b = Ne(n.value, a.value), U = Pe(r.value, a.value);
959
+ localStorage.setItem("propTreeCopy", JSON.stringify({ prop: b, object: U }));
954
960
  };
955
- b.push({
961
+ w.push({
956
962
  title: t("x-prop-tree.copy"),
957
- func: D
963
+ func: A
958
964
  });
959
- }, g = (b) => {
960
- const D = () => {
965
+ }, d = (w) => {
966
+ const A = () => {
961
967
  const U = localStorage.getItem("propTreeCopy");
962
968
  if (!U)
963
969
  return !1;
964
970
  try {
965
- const { prop: A } = JSON.parse(U), V = Ne(n.value, u.value);
966
- return Gi(A, V);
967
- } catch (A) {
968
- console.error(A);
971
+ const { prop: C } = JSON.parse(U), L = Ne(n.value, a.value);
972
+ return Il(C, L);
973
+ } catch (C) {
974
+ console.error(C);
969
975
  }
970
976
  return !1;
971
- }, w = () => {
972
- if (!D())
977
+ }, b = () => {
978
+ if (!A())
973
979
  return;
974
980
  const U = localStorage.getItem("propTreeCopy");
975
981
  if (U)
976
982
  try {
977
- const { object: A } = JSON.parse(U), V = Ne(n.value, u.value);
978
- console.log(A, V);
979
- } catch (A) {
980
- console.error(A);
983
+ const { object: C } = JSON.parse(U), L = Ne(n.value, a.value);
984
+ console.log(C, L);
985
+ } catch (C) {
986
+ console.error(C);
981
987
  }
982
988
  };
983
- D() && b.push({
989
+ A() && w.push({
984
990
  title: t("x-prop-tree.paste"),
985
- func: w
991
+ func: b
986
992
  });
987
- }, y = G(() => {
988
- const b = [];
989
- return d(b), c(b), g(b), b;
990
- }), h = (b) => {
991
- i.value = b.x, s.value = b.y, u.value = b.keys;
992
- }, { open: M } = ut("propTreeMenu", h);
993
- return (b, D) => {
994
- const w = O("v-list-item-title"), U = O("v-list-item"), A = O("v-list"), V = O("v-menu");
995
- return S(), k(V, {
996
- modelValue: E(M),
997
- "onUpdate:modelValue": D[0] || (D[0] = (W) => Fe(M) ? M.value = W : null),
993
+ }, v = k(() => {
994
+ const w = [];
995
+ return p(w), f(w), d(w), w;
996
+ }), h = (w) => {
997
+ l.value = w.x, u.value = w.y, a.value = w.keys;
998
+ }, { open: V } = ut("propTreeMenu", h);
999
+ return (w, A) => {
1000
+ const b = x("v-list-item-title"), U = x("v-list-item"), C = x("v-list"), L = x("v-menu");
1001
+ return S(), F(L, {
1002
+ modelValue: E(V),
1003
+ "onUpdate:modelValue": A[0] || (A[0] = (W) => Fe(V) ? V.value = W : null),
998
1004
  "location-strategy": "connected",
999
- target: a.value,
1005
+ target: s.value,
1000
1006
  scrim: "transparent"
1001
1007
  }, {
1002
1008
  default: J(() => [
1003
- B(A, null, {
1009
+ B(C, null, {
1004
1010
  default: J(() => [
1005
- (S(!0), F(He, null, Ht(y.value, (W, Ye) => (S(), k(U, {
1011
+ (S(!0), H(He, null, Ht(v.value, (W, Ye) => (S(), F(U, {
1006
1012
  key: Ye,
1007
1013
  link: "",
1008
1014
  onClick: W.func
1009
1015
  }, {
1010
1016
  default: J(() => [
1011
- B(w, null, {
1017
+ B(b, null, {
1012
1018
  default: J(() => [
1013
1019
  at(ne(W.title), 1)
1014
1020
  ]),
@@ -1026,7 +1032,7 @@ const ls = /* @__PURE__ */ K({
1026
1032
  };
1027
1033
  }
1028
1034
  });
1029
- var yn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", hn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", is = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ye = "M19,13H5V11H19V13Z", ss = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
1035
+ var bn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", $n = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", fs = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ye = "M19,13H5V11H19V13Z", ds = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
1030
1036
  const Be = /* @__PURE__ */ K({
1031
1037
  __name: "title",
1032
1038
  props: {
@@ -1038,128 +1044,128 @@ const Be = /* @__PURE__ */ K({
1038
1044
  },
1039
1045
  emits: ["collapse", "menu", "create", "delete"],
1040
1046
  setup(e, { emit: t }) {
1041
- const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = R(!1), i = G(() => ({
1047
+ const { backgroundColor2: n, highlightColor: r } = we(), i = t, o = R(!1), l = k(() => ({
1042
1048
  background: o.value ? r.value : n.value,
1043
1049
  height: "36px",
1044
1050
  marginBottom: "1px",
1045
1051
  userSelect: "none"
1046
- })), s = () => {
1047
- l("collapse", !e.collapse);
1048
- }, u = (a) => {
1049
- l("menu", a.clientX, a.clientY);
1052
+ })), u = () => {
1053
+ i("collapse", !e.collapse);
1054
+ }, a = (s) => {
1055
+ i("menu", s.clientX, s.clientY);
1050
1056
  };
1051
- return (a, d) => {
1052
- const c = O("v-icon"), g = O("v-spacer"), y = ae("ripple");
1053
- return re((S(), F("div", {
1057
+ return (s, p) => {
1058
+ const f = x("v-icon"), d = x("v-spacer"), v = ae("ripple");
1059
+ return re((S(), H("div", {
1054
1060
  class: "d-flex align-center cursor-pointer",
1055
- style: ie(i.value),
1056
- onClick: s,
1057
- onContextmenu: q(u, ["prevent"]),
1058
- onMouseover: d[2] || (d[2] = (h) => o.value = !0),
1059
- onMouseout: d[3] || (d[3] = (h) => o.value = !1)
1061
+ style: le(l.value),
1062
+ onClick: u,
1063
+ onContextmenu: q(a, ["prevent"]),
1064
+ onMouseover: p[2] || (p[2] = (h) => o.value = !0),
1065
+ onMouseout: p[3] || (p[3] = (h) => o.value = !1)
1060
1066
  }, [
1061
- B(c, {
1067
+ B(f, {
1062
1068
  class: "mr-1",
1063
- icon: a.collapse ? E(hn) : E(yn)
1069
+ icon: s.collapse ? E($n) : E(bn)
1064
1070
  }, null, 8, ["icon"]),
1065
- z("span", null, ne(a.title), 1),
1066
- B(g),
1067
- a.hasCreate ? (S(), k(c, {
1071
+ z("span", null, ne(s.title), 1),
1072
+ B(d),
1073
+ s.hasCreate ? (S(), F(f, {
1068
1074
  key: 0,
1069
1075
  class: "mx-3",
1070
- icon: E(ss),
1071
- onClick: d[0] || (d[0] = q((h) => l("create"), ["stop"]))
1076
+ icon: E(ds),
1077
+ onClick: p[0] || (p[0] = q((h) => i("create"), ["stop"]))
1072
1078
  }, null, 8, ["icon"])) : I("", !0),
1073
- a.hasDelete ? (S(), k(c, {
1079
+ s.hasDelete ? (S(), F(f, {
1074
1080
  key: 1,
1075
1081
  class: "mx-3",
1076
1082
  icon: E(ye),
1077
- onClick: d[1] || (d[1] = q((h) => l("delete", a.index), ["stop"]))
1083
+ onClick: p[1] || (p[1] = q((h) => i("delete", s.index), ["stop"]))
1078
1084
  }, null, 8, ["icon"])) : I("", !0)
1079
1085
  ], 36)), [
1080
- [y]
1086
+ [v]
1081
1087
  ]);
1082
1088
  };
1083
1089
  }
1084
- }), as = /* @__PURE__ */ K({
1090
+ }), ps = /* @__PURE__ */ K({
1085
1091
  __name: "entry",
1086
1092
  props: {
1087
1093
  minHeight: {}
1088
1094
  },
1089
1095
  emits: ["menu"],
1090
1096
  setup(e, { emit: t }) {
1091
- const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = R(!1), i = G(() => ({
1097
+ const { backgroundColor2: n, highlightColor: r } = we(), i = t, o = R(!1), l = k(() => ({
1092
1098
  background: o.value ? r.value : n.value,
1093
1099
  minHeight: e.minHeight,
1094
1100
  paddingRight: "4px",
1095
1101
  marginBottom: "1px",
1096
1102
  userSelect: "none"
1097
- })), s = (u) => {
1098
- l("menu", u.clientX, u.clientY);
1103
+ })), u = (a) => {
1104
+ i("menu", a.clientX, a.clientY);
1099
1105
  };
1100
- return (u, a) => {
1101
- const d = ae("ripple");
1102
- return re((S(), F("div", {
1106
+ return (a, s) => {
1107
+ const p = ae("ripple");
1108
+ return re((S(), H("div", {
1103
1109
  class: "d-flex justify-space-between align-center cursor-pointer",
1104
- style: ie(i.value),
1105
- onContextmenu: q(s, ["prevent"]),
1106
- onMouseover: a[0] || (a[0] = (c) => o.value = !0),
1107
- onMouseout: a[1] || (a[1] = (c) => o.value = !1)
1110
+ style: le(l.value),
1111
+ onContextmenu: q(u, ["prevent"]),
1112
+ onMouseover: s[0] || (s[0] = (f) => o.value = !0),
1113
+ onMouseout: s[1] || (s[1] = (f) => o.value = !1)
1108
1114
  }, [
1109
- Un(u.$slots, "default")
1115
+ jn(a.$slots, "default")
1110
1116
  ], 36)), [
1111
- [d]
1117
+ [p]
1112
1118
  ]);
1113
1119
  };
1114
1120
  }
1115
1121
  });
1116
- function us(e, t, n) {
1122
+ function vs(e, t, n) {
1117
1123
  const { t: r } = ue();
1118
- return { renderProp: (o, i, s) => {
1119
- const u = o.at(-1);
1120
- let d = typeof u == "number" ? `[${u + 1}]` : r(i.name);
1121
- return be(e.value, o) && (d += " *"), _(
1122
- as,
1124
+ return { renderProp: (o, l, u) => {
1125
+ const a = o.at(-1);
1126
+ let p = typeof a == "number" ? `[${a + 1}]` : r(l.name);
1127
+ return be(e.value, o) && (p += " *"), _(
1128
+ ps,
1123
1129
  {
1124
1130
  minHeight: t.value,
1125
- onMenu: (c, g) => {
1126
- _e.emit("propTreeMenu", { x: c, y: g, keys: o });
1131
+ onMenu: (f, d) => {
1132
+ _e.emit("propTreeMenu", { x: f, y: d, keys: o });
1127
1133
  }
1128
1134
  },
1129
1135
  () => [
1130
- _("span", { class: "ml-1", innerHTML: d }),
1131
- _("div", { style: { width: n.value } }, s)
1136
+ _("span", { class: "ml-1", innerHTML: p }),
1137
+ _("div", { style: { width: n.value } }, u)
1132
1138
  ]
1133
1139
  );
1134
1140
  } };
1135
1141
  }
1136
- const ce = (e, t, n, r, l, o) => {
1137
- if (l !== void 0 && !o) {
1138
- if (n[l] === void 0) {
1139
- const i = N(t, !0);
1140
- i !== void 0 && (n[l] = i, r(e, n[l]));
1142
+ const ce = (e, t, n, r, i, o) => {
1143
+ if (i !== void 0 && !o) {
1144
+ if (n[i] === void 0) {
1145
+ const l = N(t, !0);
1146
+ l !== void 0 && (n[i] = l, r(e, n[i]));
1141
1147
  }
1142
- return n[l];
1148
+ return n[i];
1143
1149
  } else {
1144
1150
  if (n[t.key] === void 0) {
1145
- const i = N(t);
1146
- i !== void 0 && (n[t.key] = i, r(e, n[t.key]));
1151
+ const l = N(t);
1152
+ l !== void 0 && (n[t.key] = l, r(e, n[t.key]));
1147
1153
  }
1148
1154
  return n[t.key];
1149
1155
  }
1150
- }, he = (e, t, n, r, l, o, i) => {
1151
- o !== void 0 && !i ? r !== n[o] && (n[o] = r, l(e, n[o])) : r !== n[t.key] && (n[t.key] = r, l(e, n[t.key]));
1156
+ }, he = (e, t, n, r, i, o, l) => {
1157
+ o !== void 0 && !l ? r !== n[o] && (n[o] = r, i(e, n[o])) : r !== n[t.key] && (n[t.key] = r, i(e, n[t.key]));
1152
1158
  };
1153
- function cs(e) {
1154
- return { renderUiDummy: (n, r, l, o, i) => {
1159
+ function ms(e) {
1160
+ return { renderUiDummy: (n, r, i, o, l) => {
1155
1161
  if (r.ui !== "dummy") {
1156
1162
  console.assert(!1, "renderUiDummy prop ui must be dummy");
1157
1163
  return;
1158
1164
  }
1159
- ce(n, r, l, e, o, i);
1165
+ ce(n, r, i, e, o, l);
1160
1166
  } };
1161
1167
  }
1162
- const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PURE__ */ K({
1168
+ const gs = { class: "d-flex justify-space-between align-center" }, ys = /* @__PURE__ */ K({
1163
1169
  __name: "strInput",
1164
1170
  props: /* @__PURE__ */ X({
1165
1171
  hasDelete: { type: Boolean, default: !1 },
@@ -1171,63 +1177,63 @@ const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PU
1171
1177
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1172
1178
  setup(e, { emit: t }) {
1173
1179
  const n = oe(e, "modelValue"), r = t;
1174
- return (l, o) => {
1175
- const i = O("v-text-field"), s = O("v-icon"), u = ae("ripple");
1176
- return S(), F("div", fs, [
1177
- re(B(i, {
1180
+ return (i, o) => {
1181
+ const l = x("v-text-field"), u = x("v-icon"), a = ae("ripple");
1182
+ return S(), H("div", gs, [
1183
+ re(B(l, {
1178
1184
  modelValue: n.value,
1179
- "onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
1185
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
1180
1186
  density: "compact",
1181
1187
  "hide-details": "",
1182
1188
  "single-line": "",
1183
- readonly: l.readonly
1189
+ readonly: i.readonly
1184
1190
  }, null, 8, ["modelValue", "readonly"]), [
1185
1191
  [
1186
- u,
1192
+ a,
1187
1193
  void 0,
1188
1194
  void 0,
1189
1195
  { stop: !0 }
1190
1196
  ]
1191
1197
  ]),
1192
- l.hasDelete ? (S(), k(s, {
1198
+ i.hasDelete ? (S(), F(u, {
1193
1199
  key: 0,
1194
1200
  class: "mx-2",
1195
1201
  icon: E(ye),
1196
- onClick: o[1] || (o[1] = q((a) => r("delete"), ["stop"]))
1202
+ onClick: o[1] || (o[1] = q((s) => r("delete"), ["stop"]))
1197
1203
  }, null, 8, ["icon"])) : I("", !0)
1198
1204
  ]);
1199
1205
  };
1200
1206
  }
1201
1207
  });
1202
- function ps(e) {
1203
- return { renderUiStrInput: (n, r, l, o, i) => r.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(ds, {
1208
+ function hs(e) {
1209
+ return { renderUiStrInput: (n, r, i, o, l) => r.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(ys, {
1204
1210
  modelValue: r.static ? r.value : ce(
1205
1211
  n,
1206
1212
  r,
1207
- l,
1213
+ i,
1208
1214
  e,
1209
1215
  o,
1210
- i
1216
+ l
1211
1217
  ),
1212
- "onUpdate:modelValue": (s) => {
1218
+ "onUpdate:modelValue": (u) => {
1213
1219
  r.static || he(
1214
1220
  n,
1215
1221
  r,
1216
- l,
1217
- s,
1222
+ i,
1223
+ u,
1218
1224
  e,
1219
1225
  o,
1220
- i
1226
+ l
1221
1227
  );
1222
1228
  },
1223
- hasDelete: o !== void 0 && !i,
1229
+ hasDelete: o !== void 0 && !l,
1224
1230
  onDelete: () => {
1225
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1231
+ o === void 0 || l || (i.splice(o, 1), e(n.slice(0, -1), i));
1226
1232
  },
1227
1233
  readonly: r.static || r.readonly
1228
1234
  }) };
1229
1235
  }
1230
- const ms = { class: "d-flex justify-space-between align-center" }, vs = /* @__PURE__ */ K({
1236
+ const _s = { class: "d-flex justify-space-between align-center" }, bs = /* @__PURE__ */ K({
1231
1237
  __name: "numInput",
1232
1238
  props: /* @__PURE__ */ X({
1233
1239
  hasDelete: { type: Boolean, default: !1 },
@@ -1244,63 +1250,63 @@ const ms = { class: "d-flex justify-space-between align-center" }, vs = /* @__PU
1244
1250
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1245
1251
  setup(e, { emit: t }) {
1246
1252
  const n = oe(e, "modelValue"), r = t;
1247
- return (l, o) => {
1248
- const i = O("v-number-input"), s = O("v-icon"), u = ae("ripple");
1249
- return S(), F("div", ms, [
1250
- re(B(i, {
1253
+ return (i, o) => {
1254
+ const l = x("v-number-input"), u = x("v-icon"), a = ae("ripple");
1255
+ return S(), H("div", _s, [
1256
+ re(B(l, {
1251
1257
  modelValue: n.value,
1252
- "onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
1258
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
1253
1259
  density: "compact",
1254
1260
  "control-variant": "stacked",
1255
- precision: l.precision,
1256
- min: l.min,
1257
- max: l.max,
1258
- step: l.step,
1261
+ precision: i.precision,
1262
+ min: i.min,
1263
+ max: i.max,
1264
+ step: i.step,
1259
1265
  "hide-details": "",
1260
1266
  "single-line": "",
1261
- readonly: l.readonly
1267
+ readonly: i.readonly
1262
1268
  }, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
1263
1269
  [
1264
- u,
1270
+ a,
1265
1271
  void 0,
1266
1272
  void 0,
1267
1273
  { stop: !0 }
1268
1274
  ]
1269
1275
  ]),
1270
- l.hasDelete ? (S(), k(s, {
1276
+ i.hasDelete ? (S(), F(u, {
1271
1277
  key: 0,
1272
1278
  class: "mx-2",
1273
1279
  icon: E(ye),
1274
- onClick: o[1] || (o[1] = q((a) => r("delete"), ["stop"]))
1280
+ onClick: o[1] || (o[1] = q((s) => r("delete"), ["stop"]))
1275
1281
  }, null, 8, ["icon"])) : I("", !0)
1276
1282
  ]);
1277
1283
  };
1278
1284
  }
1279
1285
  });
1280
- function gs(e) {
1281
- return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(vs, {
1286
+ function $s(e) {
1287
+ return { renderUiNumInput: (n, r, i, o, l) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(bs, {
1282
1288
  modelValue: ce(
1283
1289
  n,
1284
1290
  r,
1285
- l,
1291
+ i,
1286
1292
  e,
1287
1293
  o,
1288
- i
1294
+ l
1289
1295
  ),
1290
- "onUpdate:modelValue": (s) => {
1296
+ "onUpdate:modelValue": (u) => {
1291
1297
  he(
1292
1298
  n,
1293
1299
  r,
1294
- l,
1295
- s,
1300
+ i,
1301
+ u,
1296
1302
  e,
1297
1303
  o,
1298
- i
1304
+ l
1299
1305
  );
1300
1306
  },
1301
- hasDelete: o !== void 0 && !i,
1307
+ hasDelete: o !== void 0 && !l,
1302
1308
  onDelete: () => {
1303
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1309
+ o === void 0 || l || (i.splice(o, 1), e(n.slice(0, -1), i));
1304
1310
  },
1305
1311
  precision: r.precision,
1306
1312
  min: r.min,
@@ -1309,7 +1315,7 @@ function gs(e) {
1309
1315
  readonly: r.readonly
1310
1316
  }) };
1311
1317
  }
1312
- const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */ K({
1318
+ const Ts = { class: "d-flex justify-space-between align-center" }, Ss = /* @__PURE__ */ K({
1313
1319
  __name: "switch",
1314
1320
  props: /* @__PURE__ */ X({
1315
1321
  hasDelete: { type: Boolean, default: !1 },
@@ -1321,57 +1327,57 @@ const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PU
1321
1327
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1322
1328
  setup(e, { emit: t }) {
1323
1329
  const n = oe(e, "modelValue"), r = t;
1324
- return (l, o) => {
1325
- const i = O("v-switch"), s = O("v-icon");
1326
- return S(), F("div", ys, [
1327
- B(i, {
1330
+ return (i, o) => {
1331
+ const l = x("v-switch"), u = x("v-icon");
1332
+ return S(), H("div", Ts, [
1333
+ B(l, {
1328
1334
  modelValue: n.value,
1329
- "onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
1335
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
1330
1336
  class: "ml-1",
1331
1337
  density: "compact",
1332
1338
  color: "primary",
1333
1339
  "hide-details": "",
1334
- readonly: l.readonly
1340
+ readonly: i.readonly
1335
1341
  }, null, 8, ["modelValue", "readonly"]),
1336
- l.hasDelete ? (S(), k(s, {
1342
+ i.hasDelete ? (S(), F(u, {
1337
1343
  key: 0,
1338
1344
  class: "mx-2",
1339
1345
  icon: E(ye),
1340
- onClick: o[1] || (o[1] = q((u) => r("delete"), ["stop"]))
1346
+ onClick: o[1] || (o[1] = q((a) => r("delete"), ["stop"]))
1341
1347
  }, null, 8, ["icon"])) : I("", !0)
1342
1348
  ]);
1343
1349
  };
1344
1350
  }
1345
1351
  });
1346
- function _s(e) {
1347
- return { renderUiSwitch: (n, r, l, o, i) => r.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(hs, {
1352
+ function ws(e) {
1353
+ return { renderUiSwitch: (n, r, i, o, l) => r.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(Ss, {
1348
1354
  modelValue: ce(
1349
1355
  n,
1350
1356
  r,
1351
- l,
1357
+ i,
1352
1358
  e,
1353
1359
  o,
1354
- i
1360
+ l
1355
1361
  ),
1356
- "onUpdate:modelValue": (s) => {
1362
+ "onUpdate:modelValue": (u) => {
1357
1363
  he(
1358
1364
  n,
1359
1365
  r,
1360
- l,
1361
- s,
1366
+ i,
1367
+ u,
1362
1368
  e,
1363
1369
  o,
1364
- i
1370
+ l
1365
1371
  );
1366
1372
  },
1367
- hasDelete: o !== void 0 && !i,
1373
+ hasDelete: o !== void 0 && !l,
1368
1374
  onDelete: () => {
1369
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, 1), l));
1375
+ o === void 0 || l || (i.splice(o, 1), e(n.slice(0, 1), i));
1370
1376
  },
1371
1377
  readonly: r.readonly
1372
1378
  }) };
1373
1379
  }
1374
- const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */ K({
1380
+ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PURE__ */ K({
1375
1381
  __name: "select",
1376
1382
  props: /* @__PURE__ */ X({
1377
1383
  hasDelete: { type: Boolean, default: !1 },
@@ -1383,75 +1389,71 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
1383
1389
  }),
1384
1390
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1385
1391
  setup(e, { emit: t }) {
1386
- const n = oe(e, "modelValue"), r = t;
1387
- return (l, o) => {
1388
- const i = O("v-select"), s = O("v-icon"), u = ae("ripple");
1389
- return S(), F("div", bs, [
1390
- re(B(i, {
1391
- modelValue: n.value,
1392
- "onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
1392
+ const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = k(() => {
1393
+ const u = [];
1394
+ return zt[o.value].items[e.items].forEach(({ title: a, value: s }) => {
1395
+ u.push({ title: n(a), value: s });
1396
+ }), u;
1397
+ });
1398
+ return (u, a) => {
1399
+ const s = x("v-select"), p = x("v-icon"), f = ae("ripple");
1400
+ return S(), H("div", As, [
1401
+ re(B(s, {
1402
+ modelValue: r.value,
1403
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => r.value = d),
1393
1404
  density: "compact",
1394
- items: l.items,
1405
+ items: l.value,
1395
1406
  "hide-details": "",
1396
1407
  "single-line": "",
1397
- readonly: l.readonly
1408
+ readonly: u.readonly
1398
1409
  }, null, 8, ["modelValue", "items", "readonly"]), [
1399
1410
  [
1400
- u,
1411
+ f,
1401
1412
  void 0,
1402
1413
  void 0,
1403
1414
  { stop: !0 }
1404
1415
  ]
1405
1416
  ]),
1406
- l.hasDelete ? (S(), k(s, {
1417
+ u.hasDelete ? (S(), F(p, {
1407
1418
  key: 0,
1408
1419
  class: "mx-2",
1409
1420
  icon: E(ye),
1410
- onClick: o[1] || (o[1] = q((a) => r("delete"), ["stop"]))
1421
+ onClick: a[1] || (a[1] = q((d) => i("delete"), ["stop"]))
1411
1422
  }, null, 8, ["icon"])) : I("", !0)
1412
1423
  ]);
1413
1424
  };
1414
1425
  }
1415
1426
  });
1416
- function Ts(e) {
1417
- const { t } = ue();
1418
- return { renderUiSelect: (r, l, o, i, s) => l.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _($s, {
1427
+ function Ps(e) {
1428
+ return { renderUiSelect: (n, r, i, o, l) => r.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _(Cs, {
1419
1429
  modelValue: ce(
1430
+ n,
1420
1431
  r,
1421
- l,
1422
- o,
1423
- e,
1424
1432
  i,
1425
- s
1433
+ e,
1434
+ o,
1435
+ l
1426
1436
  ),
1427
1437
  "onUpdate:modelValue": (u) => {
1428
1438
  he(
1439
+ n,
1429
1440
  r,
1430
- l,
1431
- o,
1441
+ i,
1432
1442
  u,
1433
1443
  e,
1434
- i,
1435
- s
1444
+ o,
1445
+ l
1436
1446
  );
1437
1447
  },
1438
- hasDelete: i !== void 0 && !s,
1448
+ hasDelete: o !== void 0 && !l,
1439
1449
  onDelete: () => {
1440
- i === void 0 || s || (o.splice(i, 1), e(r.slice(0, -1), o));
1450
+ o === void 0 || l || (i.splice(o, 1), e(n.slice(0, -1), i));
1441
1451
  },
1442
- items: (() => {
1443
- const u = [];
1444
- return l.items.forEach(({ title: a, value: d }) => {
1445
- u.push({
1446
- title: t(a),
1447
- value: d
1448
- });
1449
- }), u;
1450
- })(),
1451
- readonly: l.readonly
1452
+ items: r.items,
1453
+ readonly: r.readonly
1452
1454
  }) };
1453
1455
  }
1454
- const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-grey ml-1" }, As = /* @__PURE__ */ K({
1456
+ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-grey ml-1" }, Vs = /* @__PURE__ */ K({
1455
1457
  __name: "group",
1456
1458
  props: {
1457
1459
  id: {},
@@ -1461,33 +1463,33 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
1461
1463
  },
1462
1464
  emits: ["x-click"],
1463
1465
  setup(e, { emit: t }) {
1464
- const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = R(!1), s = G(() => ({
1465
- background: i.value ? r.value : n.value,
1466
+ const { backgroundColor2: n, highlightColor: r } = we(), i = e, o = t, l = R(!1), u = k(() => ({
1467
+ background: l.value ? r.value : n.value,
1466
1468
  height: "30px",
1467
1469
  marginBottom: "1px",
1468
1470
  userSelect: "none"
1469
1471
  }));
1470
- return (u, a) => {
1471
- const d = O("v-icon"), c = ae("ripple");
1472
- return re((S(), F("div", {
1472
+ return (a, s) => {
1473
+ const p = x("v-icon"), f = ae("ripple");
1474
+ return re((S(), H("div", {
1473
1475
  class: "d-flex align-center cursor-pointer",
1474
- style: ie(s.value),
1475
- onClick: a[0] || (a[0] = (g) => o("x-click", l.id)),
1476
- onMouseover: a[1] || (a[1] = (g) => i.value = !0),
1477
- onMouseout: a[2] || (a[2] = (g) => i.value = !1)
1476
+ style: le(u.value),
1477
+ onClick: s[0] || (s[0] = (d) => o("x-click", i.id)),
1478
+ onMouseover: s[1] || (s[1] = (d) => l.value = !0),
1479
+ onMouseout: s[2] || (s[2] = (d) => l.value = !1)
1478
1480
  }, [
1479
- B(d, {
1480
- icon: l.collapse ? E(hn) : E(yn),
1481
+ B(p, {
1482
+ icon: i.collapse ? E($n) : E(bn),
1481
1483
  size: "small"
1482
1484
  }, null, 8, ["icon"]),
1483
- z("span", Ss, ne(l.title), 1),
1484
- z("span", ws, ne(l.count), 1)
1485
+ z("span", Os, ne(i.title), 1),
1486
+ z("span", xs, ne(i.count), 1)
1485
1487
  ], 36)), [
1486
- [c]
1488
+ [f]
1487
1489
  ]);
1488
1490
  };
1489
1491
  }
1490
- }), Cs = { class: "text-subtitle-1 ml-6" }, Ps = /* @__PURE__ */ K({
1492
+ }), Ms = { class: "text-subtitle-1 ml-6" }, Us = /* @__PURE__ */ K({
1491
1493
  __name: "item",
1492
1494
  props: {
1493
1495
  id: {},
@@ -1495,31 +1497,31 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
1495
1497
  },
1496
1498
  emits: ["x-click"],
1497
1499
  setup(e, { emit: t }) {
1498
- const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = R(!1), s = G(() => ({
1499
- background: i.value ? r.value : n.value,
1500
+ const { backgroundColor2: n, highlightColor: r } = we(), i = e, o = t, l = R(!1), u = k(() => ({
1501
+ background: l.value ? r.value : n.value,
1500
1502
  height: "48px",
1501
1503
  marginBottom: "1px",
1502
1504
  userSelect: "none"
1503
1505
  }));
1504
- return (u, a) => {
1505
- const d = ae("ripple");
1506
- return re((S(), F("div", {
1506
+ return (a, s) => {
1507
+ const p = ae("ripple");
1508
+ return re((S(), H("div", {
1507
1509
  class: "d-flex align-center cursor-pointer",
1508
- style: ie(s.value),
1509
- onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
1510
- onMouseover: a[1] || (a[1] = (c) => i.value = !0),
1511
- onMouseout: a[2] || (a[2] = (c) => i.value = !1)
1510
+ style: le(u.value),
1511
+ onClick: s[0] || (s[0] = (f) => o("x-click", i.id)),
1512
+ onMouseover: s[1] || (s[1] = (f) => l.value = !0),
1513
+ onMouseout: s[2] || (s[2] = (f) => l.value = !1)
1512
1514
  }, [
1513
- z("span", Cs, ne(l.title), 1)
1515
+ z("span", Ms, ne(i.title), 1)
1514
1516
  ], 36)), [
1515
- [d]
1517
+ [p]
1516
1518
  ]);
1517
1519
  };
1518
1520
  }
1519
- }), Os = { key: 0 }, xs = {
1521
+ }), Ls = { key: 0 }, Ds = {
1520
1522
  key: 1,
1521
1523
  class: "text-body-2 text-grey ml-3"
1522
- }, Ms = /* @__PURE__ */ K({
1524
+ }, js = /* @__PURE__ */ K({
1523
1525
  __name: "index",
1524
1526
  props: {
1525
1527
  modelValue: {},
@@ -1529,34 +1531,34 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
1529
1531
  },
1530
1532
  emits: ["update:modelValue", "update:open"],
1531
1533
  setup(e) {
1532
- const { t } = ue(), n = oe(e, "modelValue"), r = oe(e, "open"), l = gn(), o = (s) => {
1533
- const u = cn(l, s);
1534
- u && Hi(l, s, !u.collapse);
1535
- }, i = (s) => {
1536
- n.value = s, r.value = !1, _e.emit("refreshDepends");
1534
+ const { t } = ue(), n = oe(e, "modelValue"), r = oe(e, "open"), i = _n(), o = (u) => {
1535
+ const a = fn(i, u);
1536
+ a && zl(i, u, !a.collapse);
1537
+ }, l = (u) => {
1538
+ n.value = u, r.value = !1, _e.emit("refreshDepends");
1537
1539
  };
1538
- return (s, u) => E(l).length > 0 ? (S(), F("div", Os, [
1539
- (S(!0), F(He, null, Ht(E(l), (a) => (S(), F(He, {
1540
- key: a.id
1540
+ return (u, a) => E(i).length > 0 ? (S(), H("div", Ls, [
1541
+ (S(!0), H(He, null, Ht(E(i), (s) => (S(), H(He, {
1542
+ key: s.id
1541
1543
  }, [
1542
- a.type === 0 ? (S(), k(As, {
1544
+ s.type === 0 ? (S(), F(Vs, {
1543
1545
  key: 0,
1544
- id: a.id,
1545
- title: a.name,
1546
- collapse: a.collapse,
1547
- count: a.count ?? 0,
1546
+ id: s.id,
1547
+ title: s.name,
1548
+ collapse: s.collapse,
1549
+ count: s.count ?? 0,
1548
1550
  onXClick: o
1549
1551
  }, null, 8, ["id", "title", "collapse", "count"])) : I("", !0),
1550
- a.type === 1 && a.show ? (S(), k(Ps, {
1552
+ s.type === 1 && s.show ? (S(), F(Us, {
1551
1553
  key: 1,
1552
- id: a.id,
1553
- title: a.name,
1554
- onXClick: i
1554
+ id: s.id,
1555
+ title: s.name,
1556
+ onXClick: l
1555
1557
  }, null, 8, ["id", "title"])) : I("", !0)
1556
1558
  ], 64))), 128))
1557
- ])) : (S(), F("div", xs, ne(E(t)("x-prop-tree.noComp")), 1));
1559
+ ])) : (S(), H("div", Ds, ne(E(t)("x-prop-tree.noComp")), 1));
1558
1560
  }
1559
- }), Us = { class: "text-subtitle-1 ml-3" }, Vs = /* @__PURE__ */ K({
1561
+ }), Es = { class: "text-subtitle-1 ml-3" }, Ns = /* @__PURE__ */ K({
1560
1562
  __name: "index",
1561
1563
  props: {
1562
1564
  modelValue: {},
@@ -1564,47 +1566,47 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
1564
1566
  },
1565
1567
  emits: ["update:modelValue"],
1566
1568
  setup(e) {
1567
- const { t } = ue(), n = Rn(), { sysBarAvail: r } = En(), { backgroundColor1: l } = Te(), o = oe(e, "modelValue"), i = gn(), s = G(() => {
1568
- let g = "100%";
1569
- return n.mdAndUp.value && (g = "400px"), {
1570
- background: l.value,
1571
- width: g,
1569
+ const { t } = ue(), n = Kn(), { sysBarAvail: r } = kn(), { backgroundColor1: i } = we(), o = oe(e, "modelValue"), l = _n(), u = k(() => {
1570
+ let d = "100%";
1571
+ return n.mdAndUp.value && (d = "400px"), {
1572
+ background: i.value,
1573
+ width: d,
1572
1574
  height: "100%"
1573
1575
  };
1574
- }), u = G(() => {
1575
- let g = 48;
1576
- return r.value && (g += 24), {
1576
+ }), a = k(() => {
1577
+ let d = 48;
1578
+ return r.value && (d += 24), {
1577
1579
  position: "relative",
1578
- height: `calc(100% - ${g}px)`
1580
+ height: `calc(100% - ${d}px)`
1579
1581
  };
1580
- }), a = G(() => ({
1582
+ }), s = k(() => ({
1581
1583
  height: "60px"
1582
- })), d = G(() => {
1584
+ })), p = k(() => {
1583
1585
  if (!o.value)
1584
1586
  return t("x-runtime-lib.notSet");
1585
- const g = cn(i, o.value);
1586
- return g ? g.name : t("x-runtime-lib.compNotAvail");
1587
- }), { open: c } = ut(`propTreeCompSelectDlg${Gt()}`);
1587
+ const d = fn(l, o.value);
1588
+ return d ? d.name : t("x-runtime-lib.compNotAvail");
1589
+ }), { open: f } = ut(`propTreeCompSelectDlg${Gt()}`);
1588
1590
  return Kt(() => {
1589
- c.value = !1;
1590
- }), (g, y) => {
1591
- const h = O("v-btn"), M = O("v-sheet"), b = O("v-icon"), D = O("v-dialog");
1592
- return S(), k(D, {
1593
- modelValue: E(c),
1594
- "onUpdate:modelValue": y[5] || (y[5] = (w) => Fe(c) ? c.value = w : null),
1591
+ f.value = !1;
1592
+ }), (d, v) => {
1593
+ const h = x("v-btn"), V = x("v-sheet"), w = x("v-icon"), A = x("v-dialog");
1594
+ return S(), F(A, {
1595
+ modelValue: E(f),
1596
+ "onUpdate:modelValue": v[5] || (v[5] = (b) => Fe(f) ? f.value = b : null),
1595
1597
  transition: "scroll-x-reverse-transition",
1596
1598
  persistent: "",
1597
1599
  "no-click-animation": "",
1598
1600
  fullscreen: "",
1599
- onKeydown: y[6] || (y[6] = Vn(q((w) => c.value = !1, ["stop", "prevent"]), ["esc"]))
1601
+ onKeydown: v[6] || (v[6] = En(q((b) => f.value = !1, ["stop", "prevent"]), ["esc"]))
1600
1602
  }, {
1601
- activator: J(({ props: w }) => [
1602
- B(h, qt(w, {
1603
+ activator: J(({ props: b }) => [
1604
+ B(h, qt(b, {
1603
1605
  density: "comfortable",
1604
1606
  block: ""
1605
1607
  }), {
1606
1608
  default: J(() => [
1607
- at(ne(d.value), 1)
1609
+ at(ne(p.value), 1)
1608
1610
  ]),
1609
1611
  _: 2
1610
1612
  }, 1040)
@@ -1612,44 +1614,44 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
1612
1614
  default: J(() => [
1613
1615
  z("div", {
1614
1616
  class: "w-100 h-100 d-flex flex-row-reverse",
1615
- onClick: y[3] || (y[3] = q((w) => c.value = !1, ["self"])),
1616
- onContextmenu: y[4] || (y[4] = q((w) => c.value = !1, ["self", "prevent"]))
1617
+ onClick: v[3] || (v[3] = q((b) => f.value = !1, ["self"])),
1618
+ onContextmenu: v[4] || (v[4] = q((b) => f.value = !1, ["self", "prevent"]))
1617
1619
  }, [
1618
1620
  z("div", {
1619
1621
  class: "elevation-2",
1620
- style: ie(s.value)
1622
+ style: le(u.value)
1621
1623
  }, [
1622
- E(r) ? (S(), k(M, {
1624
+ E(r) ? (S(), F(V, {
1623
1625
  key: 0,
1624
1626
  color: "transparent",
1625
1627
  height: 24
1626
1628
  })) : I("", !0),
1627
- B(M, {
1629
+ B(V, {
1628
1630
  class: "d-flex align-center px-3",
1629
1631
  color: "transparent",
1630
1632
  height: 48
1631
1633
  }, {
1632
1634
  default: J(() => [
1633
- B(b, {
1634
- icon: E(is),
1635
- onClick: y[0] || (y[0] = (w) => c.value = !1)
1635
+ B(w, {
1636
+ icon: E(fs),
1637
+ onClick: v[0] || (v[0] = (b) => f.value = !1)
1636
1638
  }, null, 8, ["icon"]),
1637
- z("span", Us, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
1639
+ z("span", Es, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
1638
1640
  ]),
1639
1641
  _: 1
1640
1642
  }),
1641
1643
  z("div", {
1642
1644
  class: "overflow-y-auto",
1643
- style: ie(u.value)
1645
+ style: le(a.value)
1644
1646
  }, [
1645
- B(Ms, {
1647
+ B(js, {
1646
1648
  modelValue: o.value,
1647
- "onUpdate:modelValue": y[1] || (y[1] = (w) => o.value = w),
1648
- open: E(c),
1649
- "onUpdate:open": y[2] || (y[2] = (w) => Fe(c) ? c.value = w : null)
1649
+ "onUpdate:modelValue": v[1] || (v[1] = (b) => o.value = b),
1650
+ open: E(f),
1651
+ "onUpdate:open": v[2] || (v[2] = (b) => Fe(f) ? f.value = b : null)
1650
1652
  }, null, 8, ["modelValue", "open"]),
1651
1653
  z("div", {
1652
- style: ie(a.value)
1654
+ style: le(s.value)
1653
1655
  }, null, 4)
1654
1656
  ], 4)
1655
1657
  ], 4)
@@ -1660,30 +1662,30 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
1660
1662
  };
1661
1663
  }
1662
1664
  });
1663
- function Ls(e) {
1664
- return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(Vs, {
1665
+ function Bs(e) {
1666
+ return { renderUiCompSelect: (n, r, i, o, l) => r.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(Ns, {
1665
1667
  modelValue: ce(
1666
1668
  n,
1667
1669
  r,
1668
- l,
1670
+ i,
1669
1671
  e,
1670
1672
  o,
1671
- i
1673
+ l
1672
1674
  ),
1673
- "onUpdate:modelValue": (s) => {
1675
+ "onUpdate:modelValue": (u) => {
1674
1676
  he(
1675
1677
  n,
1676
1678
  r,
1677
- l,
1678
- s,
1679
+ i,
1680
+ u,
1679
1681
  e,
1680
1682
  o,
1681
- i
1683
+ l
1682
1684
  );
1683
1685
  }
1684
1686
  }) };
1685
1687
  }
1686
- const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */ K({
1688
+ const Rs = { class: "d-flex justify-space-between align-center" }, ks = /* @__PURE__ */ K({
1687
1689
  __name: "colorPicker",
1688
1690
  props: /* @__PURE__ */ X({
1689
1691
  hasDelete: { type: Boolean, default: !1 },
@@ -1694,33 +1696,33 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
1694
1696
  }),
1695
1697
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1696
1698
  setup(e, { emit: t }) {
1697
- const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o = G(() => {
1698
- let u = "100%";
1699
- return e.hasDelete && (u = "calc(100% - 37px)"), {
1700
- width: u
1699
+ const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = k(() => {
1700
+ let a = "100%";
1701
+ return e.hasDelete && (a = "calc(100% - 37px)"), {
1702
+ width: a
1701
1703
  };
1702
- }), i = G(() => e.readonly), { open: s } = ut(`propTreeColorPickerMenu${Gt()}`);
1704
+ }), l = k(() => e.readonly), { open: u } = ut(`propTreeColorPickerMenu${Gt()}`);
1703
1705
  return Kt(() => {
1704
- s.value = !1;
1705
- }), (u, a) => {
1706
- const d = O("v-btn"), c = O("v-icon"), g = O("v-color-picker"), y = O("v-menu");
1707
- return S(), k(y, {
1708
- modelValue: E(s),
1709
- "onUpdate:modelValue": a[2] || (a[2] = (h) => Fe(s) ? s.value = h : null),
1706
+ u.value = !1;
1707
+ }), (a, s) => {
1708
+ const p = x("v-btn"), f = x("v-icon"), d = x("v-color-picker"), v = x("v-menu");
1709
+ return S(), F(v, {
1710
+ modelValue: E(u),
1711
+ "onUpdate:modelValue": s[2] || (s[2] = (h) => Fe(u) ? u.value = h : null),
1710
1712
  "close-on-content-click": !1,
1711
1713
  scrim: "transparent"
1712
1714
  }, {
1713
1715
  activator: J(({ props: h }) => [
1714
- z("div", Ds, [
1716
+ z("div", Rs, [
1715
1717
  z("div", {
1716
1718
  class: "flex-grow-1",
1717
- style: ie(o.value)
1719
+ style: le(o.value)
1718
1720
  }, [
1719
- B(d, qt(h, {
1721
+ B(p, qt(h, {
1720
1722
  density: "comfortable",
1721
1723
  color: r.value,
1722
1724
  block: "",
1723
- disabled: i.value
1725
+ disabled: l.value
1724
1726
  }), {
1725
1727
  default: J(() => [
1726
1728
  at(ne(r.value ? r.value : E(n)("x-runtime-lib.notSet")), 1)
@@ -1728,18 +1730,18 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
1728
1730
  _: 2
1729
1731
  }, 1040, ["color", "disabled"])
1730
1732
  ], 4),
1731
- u.hasDelete ? (S(), k(c, {
1733
+ a.hasDelete ? (S(), F(f, {
1732
1734
  key: 0,
1733
1735
  class: "mx-2",
1734
1736
  icon: E(ye),
1735
- onClick: a[0] || (a[0] = q((M) => l("delete"), ["stop"]))
1737
+ onClick: s[0] || (s[0] = q((V) => i("delete"), ["stop"]))
1736
1738
  }, null, 8, ["icon"])) : I("", !0)
1737
1739
  ])
1738
1740
  ]),
1739
1741
  default: J(() => [
1740
- B(g, {
1742
+ B(d, {
1741
1743
  modelValue: r.value,
1742
- "onUpdate:modelValue": a[1] || (a[1] = (h) => r.value = h),
1744
+ "onUpdate:modelValue": s[1] || (s[1] = (h) => r.value = h),
1743
1745
  mode: "hexa",
1744
1746
  "show-swatches": "",
1745
1747
  "swatches-max-height": "150px"
@@ -1750,35 +1752,35 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
1750
1752
  };
1751
1753
  }
1752
1754
  });
1753
- function Es(e) {
1754
- return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(js, {
1755
+ function Fs(e) {
1756
+ return { renderUiColorPicker: (n, r, i, o, l) => r.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(ks, {
1755
1757
  modelValue: ce(
1756
1758
  n,
1757
1759
  r,
1758
- l,
1760
+ i,
1759
1761
  e,
1760
1762
  o,
1761
- i
1763
+ l
1762
1764
  ),
1763
- "onUpdate:modelValue": (s) => {
1765
+ "onUpdate:modelValue": (u) => {
1764
1766
  he(
1765
1767
  n,
1766
1768
  r,
1767
- l,
1768
- s,
1769
+ i,
1770
+ u,
1769
1771
  e,
1770
1772
  o,
1771
- i
1773
+ l
1772
1774
  );
1773
1775
  },
1774
- hasDelete: o !== void 0 && !i,
1776
+ hasDelete: o !== void 0 && !l,
1775
1777
  onDelete: () => {
1776
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1778
+ o === void 0 || l || (i.splice(o, 1), e(n.slice(0, -1), i));
1777
1779
  },
1778
1780
  readonly: r.readonly
1779
1781
  }) };
1780
1782
  }
1781
- const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { class: "flex-grow-1" }, Rs = /* @__PURE__ */ K({
1783
+ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { class: "flex-grow-1" }, Ks = /* @__PURE__ */ K({
1782
1784
  __name: "multiTypes",
1783
1785
  props: /* @__PURE__ */ X({
1784
1786
  hasDelete: { type: Boolean, default: !1 },
@@ -1789,51 +1791,51 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
1789
1791
  }),
1790
1792
  emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1791
1793
  setup(e, { emit: t }) {
1792
- const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o = R(0), i = G(() => {
1794
+ const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = k(() => zt[o.value].types[e.types]), u = R(0), a = k(() => {
1793
1795
  const d = [];
1794
- return e.types.forEach(({ title: c }, g) => {
1796
+ return l.value.forEach(({ title: v }, h) => {
1795
1797
  d.push({
1796
- title: n(c),
1797
- value: g
1798
+ title: n(v),
1799
+ value: h
1798
1800
  });
1799
1801
  }), d;
1800
1802
  });
1801
- vt(() => {
1802
- e.types.some((d, c) => d.validator(r.value) ? (o.value = c, !0) : !1);
1803
+ mt(() => {
1804
+ l.value.some((d, v) => d.validator(r.value) ? (u.value = v, !0) : !1);
1803
1805
  });
1804
- const s = G(() => e.types[o.value]), u = () => {
1806
+ const s = k(() => l.value[u.value]), p = () => {
1805
1807
  r.value = s.value.default;
1806
- }, a = R(0);
1807
- return vt(() => {
1808
- s.value.ui === "pixelInput" ? a.value = Nn(r.value) : s.value.ui === "percentInput" && (a.value = Bn(r.value));
1809
- }), Re(a, (d) => {
1808
+ }, f = R(0);
1809
+ return mt(() => {
1810
+ s.value.ui === "pixelInput" ? f.value = Fn(r.value) : s.value.ui === "percentInput" && (f.value = Hn(r.value));
1811
+ }), Re(f, (d) => {
1810
1812
  s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
1811
- }), (d, c) => {
1812
- const g = O("v-select"), y = O("v-number-input"), h = O("v-icon"), M = ae("ripple");
1813
- return S(), F("div", Ns, [
1814
- z("div", Bs, [
1815
- re(B(g, {
1816
- modelValue: o.value,
1813
+ }), (d, v) => {
1814
+ const h = x("v-select"), V = x("v-number-input"), w = x("v-icon"), A = ae("ripple");
1815
+ return S(), H("div", Hs, [
1816
+ z("div", Gs, [
1817
+ re(B(h, {
1818
+ modelValue: u.value,
1817
1819
  "onUpdate:modelValue": [
1818
- c[0] || (c[0] = (b) => o.value = b),
1819
- u
1820
+ v[0] || (v[0] = (b) => u.value = b),
1821
+ p
1820
1822
  ],
1821
1823
  density: "compact",
1822
- items: i.value,
1824
+ items: a.value,
1823
1825
  "hide-details": "",
1824
1826
  "single-line": ""
1825
1827
  }, null, 8, ["modelValue", "items"]), [
1826
1828
  [
1827
- M,
1829
+ A,
1828
1830
  void 0,
1829
1831
  void 0,
1830
1832
  { stop: !0 }
1831
1833
  ]
1832
1834
  ]),
1833
- s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(), k(y, {
1835
+ s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(), F(V, {
1834
1836
  key: 0,
1835
- modelValue: a.value,
1836
- "onUpdate:modelValue": c[1] || (c[1] = (b) => a.value = b),
1837
+ modelValue: f.value,
1838
+ "onUpdate:modelValue": v[1] || (v[1] = (b) => f.value = b),
1837
1839
  density: "compact",
1838
1840
  "control-variant": "stacked",
1839
1841
  precision: s.value.precision,
@@ -1844,202 +1846,205 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
1844
1846
  "single-line": ""
1845
1847
  }, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
1846
1848
  [
1847
- M,
1849
+ A,
1848
1850
  void 0,
1849
1851
  void 0,
1850
1852
  { stop: !0 }
1851
1853
  ]
1852
1854
  ]) : I("", !0)
1853
1855
  ]),
1854
- d.hasDelete ? (S(), k(h, {
1856
+ d.hasDelete ? (S(), F(w, {
1855
1857
  key: 0,
1856
1858
  class: "mx-2",
1857
1859
  icon: E(ye),
1858
- onClick: c[2] || (c[2] = q((b) => l("delete"), ["stop"]))
1860
+ onClick: v[2] || (v[2] = q((b) => i("delete"), ["stop"]))
1859
1861
  }, null, 8, ["icon"])) : I("", !0)
1860
1862
  ]);
1861
1863
  };
1862
1864
  }
1863
1865
  });
1864
- function ks(e) {
1865
- return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(Rs, {
1866
+ function qs(e) {
1867
+ return { renderUiMultiTypes: (n, r, i, o, l) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(Ks, {
1866
1868
  modelValue: ce(
1867
1869
  n,
1868
1870
  r,
1869
- l,
1871
+ i,
1870
1872
  e,
1871
1873
  o,
1872
- i
1874
+ l
1873
1875
  ),
1874
- "onUpdate:modelValue": (s) => {
1876
+ "onUpdate:modelValue": (u) => {
1875
1877
  he(
1876
1878
  n,
1877
1879
  r,
1878
- l,
1879
- s,
1880
+ i,
1881
+ u,
1880
1882
  e,
1881
1883
  o,
1882
- i
1884
+ l
1883
1885
  );
1884
1886
  },
1885
- hasDelete: o !== void 0 && !i,
1887
+ hasDelete: o !== void 0 && !l,
1886
1888
  onDelete: () => {
1887
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1889
+ o === void 0 || l || (i.splice(o, 1), e(n.slice(0, -1), i));
1888
1890
  },
1889
1891
  types: r.types
1890
1892
  }) };
1891
1893
  }
1892
- const Fs = /* @__PURE__ */ K({
1894
+ const zs = /* @__PURE__ */ K({
1893
1895
  __name: "index",
1894
1896
  props: {
1895
1897
  unique: {},
1896
1898
  config: {},
1897
- object: {}
1899
+ object: {},
1900
+ version: {}
1898
1901
  },
1899
1902
  emits: ["change"],
1900
1903
  setup(e, { emit: t }) {
1901
- const { t: n } = ue(), { backgroundColor1: r } = Te(), l = e, o = t, i = R("20px"), s = R("56px"), u = R("200px"), a = Ln({}), d = R({}), c = (m, f) => {
1902
- Ft(d, l.config, l.object), o("change", m, f);
1904
+ const { t: n } = ue(), { backgroundColor1: r } = we(), i = e, o = t, l = R("20px"), u = R("56px"), a = R("200px"), s = Nn({}), p = R({}), f = (g, c) => {
1905
+ Ft(p, i.config, i.object), o("change", g, c);
1903
1906
  };
1904
1907
  Re(
1905
- [() => l.config, () => l.object],
1908
+ [() => i.config, () => i.object],
1906
1909
  () => {
1907
- Ft(d, l.config, l.object, (m, f) => {
1908
- o("change", m, f);
1910
+ Ft(p, i.config, i.object, (g, c) => {
1911
+ o("change", g, c);
1909
1912
  });
1910
1913
  },
1911
1914
  { immediate: !0 }
1912
1915
  );
1913
- const g = R(l.config);
1914
- Ji(g), Re(
1915
- () => l.config,
1916
+ const d = R(i.version);
1917
+ es(d);
1918
+ const v = R(i.config);
1919
+ ts(v), Re(
1920
+ () => i.config,
1916
1921
  () => {
1917
- g.value = l.config;
1922
+ v.value = i.config;
1918
1923
  }
1919
1924
  );
1920
- const y = R(l.object);
1921
- Yi(y), Re(
1922
- () => l.object,
1925
+ const h = R(i.object);
1926
+ rs(h), Re(
1927
+ () => i.object,
1923
1928
  () => {
1924
- y.value = l.object;
1929
+ h.value = i.object;
1925
1930
  }
1926
- ), es(d), ns(c);
1927
- const h = R([]);
1928
- os(h);
1929
- const M = () => {
1930
- const { compGroups: m, comps: f } = kn.app.activeApp, v = [];
1931
- m.forEach(({ id: p, name: $, position: C }) => {
1932
- const L = h.value.find((Q) => Q.id === p);
1933
- v.push({
1934
- id: p,
1931
+ ), is(p), ss(f);
1932
+ const V = R([]);
1933
+ us(V);
1934
+ const w = () => {
1935
+ const { compGroups: g, comps: c } = Gn.app.activeApp, y = [];
1936
+ g.forEach(({ id: m, name: $, position: P }) => {
1937
+ const D = V.value.find((Q) => Q.id === m);
1938
+ y.push({
1939
+ id: m,
1935
1940
  type: 0,
1936
1941
  name: $,
1937
- position: C,
1938
- collapse: (L == null ? void 0 : L.collapse) ?? !0
1942
+ position: P,
1943
+ collapse: (D == null ? void 0 : D.collapse) ?? !0
1939
1944
  });
1940
- }), f.forEach(({ id: p, groupid: $, name: C, position: L }) => {
1941
- v.push({ id: p, type: 1, name: C, position: L, group: $ });
1942
- }), Fi(v, !0), h.value = v;
1945
+ }), c.forEach(({ id: m, groupid: $, name: P, position: D }) => {
1946
+ y.push({ id: m, type: 1, name: P, position: D, group: $ });
1947
+ }), ql(y, !0), V.value = y;
1943
1948
  };
1944
- let b;
1945
- const D = () => {
1946
- clearTimeout(b), b = window.setTimeout(() => {
1947
- M(), b && D();
1949
+ let A;
1950
+ const b = () => {
1951
+ clearTimeout(A), A = window.setTimeout(() => {
1952
+ w(), A && b();
1948
1953
  }, 1e3);
1949
- }, w = () => {
1950
- clearTimeout(b), b = void 0;
1954
+ }, U = () => {
1955
+ clearTimeout(A), A = void 0;
1951
1956
  };
1952
- Dn(() => {
1953
- D();
1954
- }), jn(() => {
1955
- w();
1957
+ Bn(() => {
1958
+ b();
1959
+ }), Rn(() => {
1960
+ U();
1956
1961
  });
1957
- const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(c), { renderUiStrInput: V } = ps(c), { renderUiNumInput: W } = gs(c), { renderUiSwitch: Ye } = _s(c), { renderUiSelect: _n } = Ts(c), { renderUiColorPicker: bn } = Es(c), { renderUiMultiTypes: $n } = ks(c), { renderUiCompSelect: Tn } = Ls(c), Le = (m, f, v, p, $, C) => (m = sn(m), $ !== void 0 ? (m.push($), C && m.push(f.key)) : m.push(f.key), f.ui ? f.array && p ? An(m, f, v, p, $, C) : Cn(m, f, v, $, C) : f.array ? Sn(m, f, v, p, $, C) : wn(
1962
+ const { renderProp: C } = vs(p, u, a), { renderUiDummy: L } = ms(f), { renderUiStrInput: W } = hs(f), { renderUiNumInput: Ye } = $s(f), { renderUiSwitch: Tn } = ws(f), { renderUiSelect: Sn } = Ps(f), { renderUiColorPicker: wn } = Fs(f), { renderUiMultiTypes: An } = qs(f), { renderUiCompSelect: Cn } = Bs(f), Le = (g, c, y, m, $, P) => (g = an(g), $ !== void 0 ? (g.push($), P && g.push(c.key)) : g.push(c.key), c.ui ? c.array && m ? xn(g, c, y, m, $, P) : Vn(g, c, y, $, P) : c.array ? Pn(g, c, y, m, $, P) : On(
1963
+ g,
1964
+ c,
1965
+ y,
1958
1966
  m,
1959
- f,
1960
- v,
1961
- p,
1962
1967
  $,
1963
- C
1964
- )), Sn = (m, f, v, p, $, C) => {
1965
- if (f.ui)
1968
+ P
1969
+ )), Pn = (g, c, y, m, $, P) => {
1970
+ if (c.ui)
1966
1971
  return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
1967
- if (!f.array)
1972
+ if (!c.array)
1968
1973
  return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
1969
- if (!p)
1974
+ if (!m)
1970
1975
  return console.assert(!1), _("div", "renderBranchArray branch must be valid");
1971
- let L;
1972
- $ !== void 0 && !C ? (v[$] instanceof Array || (v[$] = N(f), c(m, v[f.key])), L = v[$]) : (v[f.key] instanceof Array || (v[f.key] = N(f), c(m, v[f.key])), L = v[f.key]);
1973
- let Q = n(f.name);
1974
- p.collapse && be(d.value, m) && (Q += " *");
1975
- const Se = _(Be, {
1976
+ let D;
1977
+ $ !== void 0 && !P ? (y[$] instanceof Array || (y[$] = N(c), f(g, y[c.key])), D = y[$]) : (y[c.key] instanceof Array || (y[c.key] = N(c), f(g, y[c.key])), D = y[c.key]);
1978
+ let Q = n(c.name);
1979
+ m.collapse && be(p.value, g) && (Q += " *");
1980
+ const Ae = _(Be, {
1976
1981
  title: Q,
1977
- collapse: p.collapse,
1982
+ collapse: m.collapse,
1978
1983
  hasCreate: !0,
1979
1984
  onCollapse: (T) => {
1980
- p.collapse = T;
1985
+ m.collapse = T;
1981
1986
  },
1982
1987
  onMenu: (T, j) => {
1983
- _e.emit("propTreeMenu", { x: T, y: j, keys: m });
1988
+ _e.emit("propTreeMenu", { x: T, y: j, keys: g });
1984
1989
  },
1985
1990
  onCreate: () => {
1986
- L.push({}), c(m, L);
1991
+ D.push({}), f(g, D);
1987
1992
  }
1988
- }), H = _(
1993
+ }), G = _(
1989
1994
  "div",
1990
1995
  {
1991
1996
  style: {
1992
- paddingLeft: i.value
1997
+ paddingLeft: l.value
1993
1998
  }
1994
1999
  },
1995
2000
  (() => {
1996
2001
  const T = [];
1997
- for (let j = 0; j < L.length; j++) {
1998
- if (!nt(p.children)) {
2002
+ for (let j = 0; j < D.length; j++) {
2003
+ if (!nt(m.children)) {
1999
2004
  console.assert(!1);
2000
2005
  break;
2001
2006
  }
2002
- p.children[j] || p.children.push({
2007
+ m.children[j] || m.children.push({
2003
2008
  collapse: !0,
2004
2009
  children: {}
2005
2010
  });
2006
- const De = [...m, j], je = p.children[j];
2007
- let mt = `[${j + 1}]`;
2008
- p.children[j].collapse && be(d.value, De) && (mt += " *");
2009
- const On = _(Be, {
2010
- title: mt,
2011
- collapse: p.children[j].collapse,
2011
+ const De = [...g, j], je = m.children[j];
2012
+ let vt = `[${j + 1}]`;
2013
+ m.children[j].collapse && be(p.value, De) && (vt += " *");
2014
+ const Un = _(Be, {
2015
+ title: vt,
2016
+ collapse: m.children[j].collapse,
2012
2017
  hasDelete: !0,
2013
2018
  index: j,
2014
2019
  onCollapse: (ee) => {
2015
- if (!nt(p.children)) {
2020
+ if (!nt(m.children)) {
2016
2021
  console.assert(!1);
2017
2022
  return;
2018
2023
  }
2019
- p.children[j].collapse = ee;
2024
+ m.children[j].collapse = ee;
2020
2025
  },
2021
2026
  onMenu: (ee, fe) => {
2022
2027
  _e.emit("propTreeMenu", { x: ee, y: fe, keys: De });
2023
2028
  },
2024
2029
  onDelete: (ee) => {
2025
- if (!nt(p.children)) {
2030
+ if (!nt(m.children)) {
2026
2031
  console.assert(!1);
2027
2032
  return;
2028
2033
  }
2029
- p.children.splice(ee, 1), L.splice(ee, 1), c(m, L);
2034
+ m.children.splice(ee, 1), D.splice(ee, 1), f(g, D);
2030
2035
  }
2031
2036
  });
2032
- T.push(On);
2033
- const xn = _(
2037
+ T.push(Un);
2038
+ const Ln = _(
2034
2039
  "div",
2035
2040
  {
2036
2041
  style: {
2037
- paddingLeft: i.value
2042
+ paddingLeft: l.value
2038
2043
  }
2039
2044
  },
2040
2045
  (() => {
2041
2046
  const ee = [];
2042
- return f.children.forEach((fe) => {
2047
+ return c.children.forEach((fe) => {
2043
2048
  if (!kt(je.children)) {
2044
2049
  console.assert(!1);
2045
2050
  return;
@@ -2048,19 +2053,19 @@ const Fs = /* @__PURE__ */ K({
2048
2053
  collapse: !0,
2049
2054
  children: fe.array ? [] : {}
2050
2055
  });
2051
- const Mn = Le(
2052
- m,
2056
+ const Dn = Le(
2057
+ g,
2053
2058
  fe,
2054
- L[j],
2059
+ D[j],
2055
2060
  je.children[fe.key],
2056
2061
  j,
2057
2062
  !0
2058
2063
  );
2059
- ee.push(Mn);
2064
+ ee.push(Dn);
2060
2065
  }), ee;
2061
2066
  })()
2062
2067
  );
2063
- p.children[j].collapse || T.push(xn);
2068
+ m.children[j].collapse || T.push(Ln);
2064
2069
  }
2065
2070
  return T;
2066
2071
  })()
@@ -2074,57 +2079,57 @@ const Fs = /* @__PURE__ */ K({
2074
2079
  },
2075
2080
  (() => {
2076
2081
  const T = [];
2077
- return T.push(Se), p.collapse || T.push(H), T;
2082
+ return T.push(Ae), m.collapse || T.push(G), T;
2078
2083
  })()
2079
2084
  );
2080
- }, wn = (m, f, v, p, $, C) => {
2081
- if (f.ui)
2085
+ }, On = (g, c, y, m, $, P) => {
2086
+ if (c.ui)
2082
2087
  return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
2083
- if (f.array)
2088
+ if (c.array)
2084
2089
  return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
2085
- if (!p)
2090
+ if (!m)
2086
2091
  return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
2087
- let L = n(f.name);
2088
- p.collapse && be(d.value, m) && (L += " *");
2092
+ let D = n(c.name);
2093
+ m.collapse && be(p.value, g) && (D += " *");
2089
2094
  const Q = _(Be, {
2090
- title: L,
2091
- collapse: p.collapse,
2092
- hasDelete: $ !== void 0 && !C,
2093
- onCollapse: (H) => {
2094
- p.collapse = H;
2095
+ title: D,
2096
+ collapse: m.collapse,
2097
+ hasDelete: $ !== void 0 && !P,
2098
+ onCollapse: (G) => {
2099
+ m.collapse = G;
2095
2100
  },
2096
- onMenu: (H, T) => {
2097
- _e.emit("propTreeMenu", { x: H, y: T, keys: m });
2101
+ onMenu: (G, T) => {
2102
+ _e.emit("propTreeMenu", { x: G, y: T, keys: g });
2098
2103
  },
2099
2104
  onDelete: () => {
2100
- $ === void 0 || C || (v.splice($, 1), c(m.slice(0, -1), v));
2105
+ $ === void 0 || P || (y.splice($, 1), f(g.slice(0, -1), y));
2101
2106
  }
2102
- }), Se = _(
2107
+ }), Ae = _(
2103
2108
  "div",
2104
2109
  {
2105
2110
  style: {
2106
- paddingLeft: i.value
2111
+ paddingLeft: l.value
2107
2112
  }
2108
2113
  },
2109
2114
  (() => {
2110
- const H = [];
2111
- return f.children.forEach((T) => {
2112
- if (!kt(p.children)) {
2115
+ const G = [];
2116
+ return c.children.forEach((T) => {
2117
+ if (!kt(m.children)) {
2113
2118
  console.assert(!1);
2114
2119
  return;
2115
2120
  }
2116
- p.children[T.key] || (p.children[T.key] = {
2121
+ m.children[T.key] || (m.children[T.key] = {
2117
2122
  collapse: !0,
2118
2123
  children: !T.ui && T.array ? [] : {}
2119
2124
  });
2120
2125
  const j = Le(
2121
- m,
2126
+ g,
2122
2127
  T,
2123
- (typeof v[f.key] != "object" && (v[f.key] = {}, c(m, v[f.key])), v[f.key]),
2124
- p.children[T.key]
2128
+ (typeof y[c.key] != "object" && (y[c.key] = {}, f(g, y[c.key])), y[c.key]),
2129
+ m.children[T.key]
2125
2130
  );
2126
- H.push(j);
2127
- }), H;
2131
+ G.push(j);
2132
+ }), G;
2128
2133
  })()
2129
2134
  );
2130
2135
  return _(
@@ -2135,45 +2140,45 @@ const Fs = /* @__PURE__ */ K({
2135
2140
  }
2136
2141
  },
2137
2142
  (() => {
2138
- const H = [];
2139
- return H.push(Q), p.collapse || H.push(Se), H;
2143
+ const G = [];
2144
+ return G.push(Q), m.collapse || G.push(Ae), G;
2140
2145
  })()
2141
2146
  );
2142
- }, An = (m, f, v, p, $, C) => {
2143
- if (!f.ui)
2147
+ }, xn = (g, c, y, m, $, P) => {
2148
+ if (!c.ui)
2144
2149
  return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
2145
- if (!f.array)
2150
+ if (!c.array)
2146
2151
  return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
2147
- if (!p)
2152
+ if (!m)
2148
2153
  return console.assert(!1), _("div", "renderLeafArray branch must be valid");
2149
- let L;
2150
- $ !== void 0 && !C ? (v[$] instanceof Array || (v[$] = N(f), c(m, v[$])), L = v[$]) : (v[f.key] instanceof Array || (v[f.key] = N(f), c(m, v[f.key])), L = v[f.key]);
2151
- let Q = n(f.name);
2152
- p.collapse && be(d.value, m) && (Q += " *");
2153
- const Se = _(Be, {
2154
+ let D;
2155
+ $ !== void 0 && !P ? (y[$] instanceof Array || (y[$] = N(c), f(g, y[$])), D = y[$]) : (y[c.key] instanceof Array || (y[c.key] = N(c), f(g, y[c.key])), D = y[c.key]);
2156
+ let Q = n(c.name);
2157
+ m.collapse && be(p.value, g) && (Q += " *");
2158
+ const Ae = _(Be, {
2154
2159
  title: Q,
2155
- collapse: p.collapse,
2160
+ collapse: m.collapse,
2156
2161
  hasCreate: !0,
2157
2162
  onCollapse: (T) => {
2158
- p.collapse = T;
2163
+ m.collapse = T;
2159
2164
  },
2160
2165
  onMenu: (T, j) => {
2161
- _e.emit("propTreeMenu", { x: T, y: j, keys: m });
2166
+ _e.emit("propTreeMenu", { x: T, y: j, keys: g });
2162
2167
  },
2163
2168
  onCreate: () => {
2164
- L.push(N(f, !0)), c(m, L);
2169
+ D.push(N(c, !0)), f(g, D);
2165
2170
  }
2166
- }), H = _(
2171
+ }), G = _(
2167
2172
  "div",
2168
2173
  {
2169
2174
  style: {
2170
- paddingLeft: i.value
2175
+ paddingLeft: l.value
2171
2176
  }
2172
2177
  },
2173
2178
  (() => {
2174
2179
  const T = [];
2175
- for (let j = 0; j < L.length; j++) {
2176
- const De = Le(m, f, L, void 0, j, !1);
2180
+ for (let j = 0; j < D.length; j++) {
2181
+ const De = Le(g, c, D, void 0, j, !1);
2177
2182
  T.push(De);
2178
2183
  }
2179
2184
  return T;
@@ -2188,15 +2193,15 @@ const Fs = /* @__PURE__ */ K({
2188
2193
  },
2189
2194
  (() => {
2190
2195
  const T = [];
2191
- return T.push(Se), p.collapse || T.push(H), T;
2196
+ return T.push(Ae), m.collapse || T.push(G), T;
2192
2197
  })()
2193
2198
  );
2194
- }, Cn = (m, f, v, p, $) => {
2195
- if (!f.ui)
2199
+ }, Vn = (g, c, y, m, $) => {
2200
+ if (!c.ui)
2196
2201
  return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
2197
- let C;
2198
- return f.ui === "dummy" ? C = A(m, f, v, p, $) : f.ui === "strInput" ? C = V(m, f, v, p, $) : f.ui === "numInput" ? C = W(m, f, v, p, $) : f.ui === "switch" ? C = Ye(m, f, v, p, $) : f.ui === "select" ? C = _n(m, f, v, p, $) : f.ui === "colorPicker" ? C = bn(m, f, v, p, $) : f.ui === "multiTypes" ? C = $n(m, f, v, p, $) : f.ui === "compSelect" ? C = Tn(m, f, v, p, $) : console.assert(!1, "renderLeafScalar not implemented"), C ? U(m, f, C) : _("div");
2199
- }, Pn = () => _(
2202
+ let P;
2203
+ return c.ui === "dummy" ? P = L(g, c, y, m, $) : c.ui === "strInput" ? P = W(g, c, y, m, $) : c.ui === "numInput" ? P = Ye(g, c, y, m, $) : c.ui === "switch" ? P = Tn(g, c, y, m, $) : c.ui === "select" ? P = Sn(g, c, y, m, $) : c.ui === "colorPicker" ? P = wn(g, c, y, m, $) : c.ui === "multiTypes" ? P = An(g, c, y, m, $) : c.ui === "compSelect" ? P = Cn(g, c, y, m, $) : console.assert(!1, "renderLeafScalar not implemented"), P ? C(g, c, P) : _("div");
2204
+ }, Mn = () => _(
2200
2205
  "div",
2201
2206
  {
2202
2207
  class: "text-body-2",
@@ -2205,36 +2210,36 @@ const Fs = /* @__PURE__ */ K({
2205
2210
  }
2206
2211
  },
2207
2212
  (() => {
2208
- const m = [];
2209
- if (l.unique && l.config.length > 0 && l.object) {
2210
- a[l.unique] || (a[l.unique] = {});
2211
- const f = a[l.unique];
2212
- l.config.forEach((v) => {
2213
- f[v.key] || (f[v.key] = {
2213
+ const g = [];
2214
+ if (i.unique && i.config.length > 0 && i.object) {
2215
+ s[i.unique] || (s[i.unique] = {});
2216
+ const c = s[i.unique];
2217
+ i.config.forEach((y) => {
2218
+ c[y.key] || (c[y.key] = {
2214
2219
  collapse: !0,
2215
- children: !v.ui && v.array ? [] : {}
2220
+ children: !y.ui && y.array ? [] : {}
2216
2221
  });
2217
- const p = Le([], v, l.object, f[v.key]);
2218
- m.push(p);
2222
+ const m = Le([], y, i.object, c[y.key]);
2223
+ g.push(m);
2219
2224
  });
2220
2225
  }
2221
- return m;
2226
+ return g;
2222
2227
  })()
2223
2228
  );
2224
- return (m, f) => (S(), F(He, null, [
2225
- B(Pn),
2226
- B(ls, {
2227
- config: l.config,
2228
- object: l.object,
2229
- "prop-states": d.value
2229
+ return (g, c) => (S(), H(He, null, [
2230
+ B(Mn),
2231
+ B(cs, {
2232
+ config: i.config,
2233
+ object: i.object,
2234
+ "prop-states": p.value
2230
2235
  }, null, 8, ["config", "object", "prop-states"])
2231
2236
  ], 64));
2232
2237
  }
2233
- }), Hs = (e) => {
2234
- e.component("XPropTree", Fs);
2235
- }, Gs = (e, t, n) => {
2238
+ }), Is = (e) => {
2239
+ e.component("XPropTree", zs);
2240
+ }, Xs = (e, t, n) => {
2236
2241
  const r = e[t];
2237
- return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((l, o) => {
2242
+ return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((i, o) => {
2238
2243
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
2239
2244
  o.bind(
2240
2245
  null,
@@ -2245,11 +2250,11 @@ const Fs = /* @__PURE__ */ K({
2245
2250
  );
2246
2251
  });
2247
2252
  };
2248
- async function Js(e) {
2249
- return (await Gs(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-g2bvdvq4.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-enket0x3.js") }), `./locales/${e}/index.ts`, 4)).default;
2253
+ async function ta(e) {
2254
+ return (await Xs(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-g2bvdvq4.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-enket0x3.js") }), `./locales/${e}/index.ts`, 4)).default;
2250
2255
  }
2251
- const Ws = { install: Hs };
2256
+ const na = { install: Is };
2252
2257
  export {
2253
- Ws as default,
2254
- Js as loadLocaleMessagePropTree
2258
+ na as default,
2259
+ ta as loadLocaleMessagePropTree
2255
2260
  };