x-prop-tree 0.5.1 → 0.5.2
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/components/propTree/util.d.ts +2 -2
- package/dist/index.js +1375 -587
- package/package.json +6 -2
package/dist/index.js
CHANGED
|
@@ -1,633 +1,633 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.id="x-prop-tree",e.appendChild(document.createTextNode('.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useColor as
|
|
5
|
-
import { parsePixelStr as
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
return (n) => Object.keys(e).reduce((
|
|
9
|
-
const
|
|
10
|
-
type: e[
|
|
2
|
+
import { Fragment as Ye, reactive as Qt, computed as I, watchEffect as Xe, toRefs as kn, warn as Rn, getCurrentInstance as Nn, inject as Ze, shallowRef as Un, provide as en, defineComponent as L, isRef as Je, createVNode as P, mergeProps as Qe, unref as z, ref as M, toRef as zn, Text as Hn, resolveDirective as ae, withDirectives as W, openBlock as E, createElementBlock as ye, normalizeStyle as tn, withModifiers as we, renderSlot as Gn, resolveComponent as V, createBlock as D, withCtx as R, renderList as Wn, createTextVNode as et, toDisplayString as Pe, createElementVNode as Kn, createCommentVNode as Re, mergeModels as K, useModel as se, watch as Ne, h as _ } from "vue";
|
|
3
|
+
import { useI18n as tt } from "vue-i18n";
|
|
4
|
+
import { useColor as nt, eventBus as nn, useViewStack as rn } from "x-essential-lib";
|
|
5
|
+
import { parsePixelStr as qn, parsePercentStr as Yn, getPropDefault as k } from "x-runtime-lib";
|
|
6
|
+
var Xn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Zn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", an = "M19,13H5V11H19V13Z", sn = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
7
|
+
function X(e, t) {
|
|
8
|
+
return (n) => Object.keys(e).reduce((r, i) => {
|
|
9
|
+
const o = typeof e[i] == "object" && e[i] != null && !Array.isArray(e[i]) ? e[i] : {
|
|
10
|
+
type: e[i]
|
|
11
11
|
};
|
|
12
|
-
return n &&
|
|
13
|
-
...
|
|
14
|
-
default: n[
|
|
15
|
-
} :
|
|
12
|
+
return n && i in n ? r[i] = {
|
|
13
|
+
...o,
|
|
14
|
+
default: n[i]
|
|
15
|
+
} : r[i] = o, t && !r[i].source && (r[i].source = t), r;
|
|
16
16
|
}, {});
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const Jn = X({
|
|
19
19
|
class: [String, Array, Object],
|
|
20
20
|
style: {
|
|
21
21
|
type: [String, Array, Object],
|
|
22
22
|
default: null
|
|
23
23
|
}
|
|
24
24
|
}, "component");
|
|
25
|
-
function
|
|
25
|
+
function le(e) {
|
|
26
26
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "px";
|
|
27
27
|
if (!(e == null || e === ""))
|
|
28
28
|
return isNaN(+e) ? String(e) : isFinite(+e) ? `${Number(e)}${t}` : void 0;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function ct(e) {
|
|
31
31
|
let t;
|
|
32
32
|
return e !== null && typeof e == "object" && ((t = Object.getPrototypeOf(e)) === Object.prototype || t === null);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Fe(e, t) {
|
|
35
35
|
return t.every((n) => e.hasOwnProperty(n));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n = {},
|
|
39
|
-
for (const
|
|
40
|
-
|
|
37
|
+
function Qn(e, t) {
|
|
38
|
+
const n = {}, r = new Set(Object.keys(e));
|
|
39
|
+
for (const i of t)
|
|
40
|
+
r.has(i) && (n[i] = e[i]);
|
|
41
41
|
return n;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ft(e, t) {
|
|
44
44
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0";
|
|
45
45
|
return e + n.repeat(Math.max(0, t - e.length));
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function er(e) {
|
|
48
48
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
49
49
|
const n = [];
|
|
50
|
-
let
|
|
51
|
-
for (;
|
|
52
|
-
n.push(e.substr(
|
|
50
|
+
let r = 0;
|
|
51
|
+
for (; r < e.length; )
|
|
52
|
+
n.push(e.substr(r, t)), r += t;
|
|
53
53
|
return n;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function on() {
|
|
56
56
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
|
|
57
|
-
const
|
|
58
|
-
for (const
|
|
59
|
-
|
|
60
|
-
for (const
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
63
|
-
|
|
57
|
+
const r = {};
|
|
58
|
+
for (const i in e)
|
|
59
|
+
r[i] = e[i];
|
|
60
|
+
for (const i in t) {
|
|
61
|
+
const a = e[i], o = t[i];
|
|
62
|
+
if (ct(a) && ct(o)) {
|
|
63
|
+
r[i] = on(a, o, n);
|
|
64
64
|
continue;
|
|
65
65
|
}
|
|
66
|
-
if (n && Array.isArray(
|
|
67
|
-
|
|
66
|
+
if (n && Array.isArray(a) && Array.isArray(o)) {
|
|
67
|
+
r[i] = n(a, o);
|
|
68
68
|
continue;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
r[i] = o;
|
|
71
71
|
}
|
|
72
|
-
return
|
|
72
|
+
return r;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return e.map((t) => t.type ===
|
|
74
|
+
function ln(e) {
|
|
75
|
+
return e.map((t) => t.type === Ye ? ln(t.children) : t).flat();
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function ne() {
|
|
78
78
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
79
|
-
if (
|
|
79
|
+
if (ne.cache.has(e)) return ne.cache.get(e);
|
|
80
80
|
const t = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
|
|
81
|
-
return
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function
|
|
85
|
-
const t =
|
|
86
|
-
return
|
|
87
|
-
for (const
|
|
88
|
-
t[
|
|
81
|
+
return ne.cache.set(e, t), t;
|
|
82
|
+
}
|
|
83
|
+
ne.cache = /* @__PURE__ */ new Map();
|
|
84
|
+
function un(e) {
|
|
85
|
+
const t = Qt({}), n = I(e);
|
|
86
|
+
return Xe(() => {
|
|
87
|
+
for (const r in n.value)
|
|
88
|
+
t[r] = n.value[r];
|
|
89
89
|
}, {
|
|
90
90
|
flush: "sync"
|
|
91
|
-
}),
|
|
91
|
+
}), kn(t);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function tr(e, t) {
|
|
94
94
|
return e.includes(t);
|
|
95
95
|
}
|
|
96
|
-
const
|
|
97
|
-
function
|
|
98
|
-
const n = (e.r / 255) **
|
|
99
|
-
let
|
|
100
|
-
if (
|
|
101
|
-
let
|
|
102
|
-
if (c >
|
|
103
|
-
const
|
|
104
|
-
|
|
96
|
+
const te = 2.4, dt = 0.2126729, gt = 0.7151522, mt = 0.072175, nr = 0.55, rr = 0.58, ar = 0.57, sr = 0.62, be = 0.03, yt = 1.45, ir = 5e-4, or = 1.25, lr = 1.25, vt = 0.078, pt = 12.82051282051282, Te = 0.06, ht = 1e-3;
|
|
97
|
+
function _t(e, t) {
|
|
98
|
+
const n = (e.r / 255) ** te, r = (e.g / 255) ** te, i = (e.b / 255) ** te, a = (t.r / 255) ** te, o = (t.g / 255) ** te, f = (t.b / 255) ** te;
|
|
99
|
+
let l = n * dt + r * gt + i * mt, c = a * dt + o * gt + f * mt;
|
|
100
|
+
if (l <= be && (l += (be - l) ** yt), c <= be && (c += (be - c) ** yt), Math.abs(c - l) < ir) return 0;
|
|
101
|
+
let y;
|
|
102
|
+
if (c > l) {
|
|
103
|
+
const d = (c ** nr - l ** rr) * or;
|
|
104
|
+
y = d < ht ? 0 : d < vt ? d - d * pt * Te : d - Te;
|
|
105
105
|
} else {
|
|
106
|
-
const
|
|
107
|
-
|
|
106
|
+
const d = (c ** sr - l ** ar) * lr;
|
|
107
|
+
y = d > -ht ? 0 : d > -vt ? d - d * pt * Te : d + Te;
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return y * 100;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
111
|
+
function ue(e) {
|
|
112
|
+
Rn(`Vuetify: ${e}`);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ue(e) {
|
|
115
115
|
return !!e && /^(#|var\(--|(rgb|hsl)a?\()/.test(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
117
|
+
function ur(e) {
|
|
118
|
+
return Ue(e) && !/^((rgb|hsl)a?\()?var\(--/.test(e);
|
|
119
119
|
}
|
|
120
|
-
const
|
|
121
|
-
rgb: (e, t, n,
|
|
120
|
+
const bt = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, cr = {
|
|
121
|
+
rgb: (e, t, n, r) => ({
|
|
122
122
|
r: e,
|
|
123
123
|
g: t,
|
|
124
124
|
b: n,
|
|
125
|
-
a:
|
|
125
|
+
a: r
|
|
126
126
|
}),
|
|
127
|
-
rgba: (e, t, n,
|
|
127
|
+
rgba: (e, t, n, r) => ({
|
|
128
128
|
r: e,
|
|
129
129
|
g: t,
|
|
130
130
|
b: n,
|
|
131
|
-
a:
|
|
131
|
+
a: r
|
|
132
132
|
}),
|
|
133
|
-
hsl: (e, t, n,
|
|
133
|
+
hsl: (e, t, n, r) => Tt({
|
|
134
134
|
h: e,
|
|
135
135
|
s: t,
|
|
136
136
|
l: n,
|
|
137
|
-
a:
|
|
137
|
+
a: r
|
|
138
138
|
}),
|
|
139
|
-
hsla: (e, t, n,
|
|
139
|
+
hsla: (e, t, n, r) => Tt({
|
|
140
140
|
h: e,
|
|
141
141
|
s: t,
|
|
142
142
|
l: n,
|
|
143
|
-
a:
|
|
143
|
+
a: r
|
|
144
144
|
}),
|
|
145
|
-
hsv: (e, t, n,
|
|
145
|
+
hsv: (e, t, n, r) => fe({
|
|
146
146
|
h: e,
|
|
147
147
|
s: t,
|
|
148
148
|
v: n,
|
|
149
|
-
a:
|
|
149
|
+
a: r
|
|
150
150
|
}),
|
|
151
|
-
hsva: (e, t, n,
|
|
151
|
+
hsva: (e, t, n, r) => fe({
|
|
152
152
|
h: e,
|
|
153
153
|
s: t,
|
|
154
154
|
v: n,
|
|
155
|
-
a:
|
|
155
|
+
a: r
|
|
156
156
|
})
|
|
157
157
|
};
|
|
158
|
-
function
|
|
158
|
+
function oe(e) {
|
|
159
159
|
if (typeof e == "number")
|
|
160
|
-
return (isNaN(e) || e < 0 || e > 16777215) &&
|
|
160
|
+
return (isNaN(e) || e < 0 || e > 16777215) && ue(`'${e}' is not a valid hex color`), {
|
|
161
161
|
r: (e & 16711680) >> 16,
|
|
162
162
|
g: (e & 65280) >> 8,
|
|
163
163
|
b: e & 255
|
|
164
164
|
};
|
|
165
|
-
if (typeof e == "string" &&
|
|
165
|
+
if (typeof e == "string" && bt.test(e)) {
|
|
166
166
|
const {
|
|
167
167
|
groups: t
|
|
168
|
-
} = e.match(
|
|
168
|
+
} = e.match(bt), {
|
|
169
169
|
fn: n,
|
|
170
|
-
values:
|
|
171
|
-
} = t,
|
|
172
|
-
return
|
|
170
|
+
values: r
|
|
171
|
+
} = t, i = r.split(/,\s*/).map((a) => a.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(n) ? parseFloat(a) / 100 : parseFloat(a));
|
|
172
|
+
return cr[n](...i);
|
|
173
173
|
} else if (typeof e == "string") {
|
|
174
174
|
let t = e.startsWith("#") ? e.slice(1) : e;
|
|
175
|
-
[3, 4].includes(t.length) ? t = t.split("").map((
|
|
175
|
+
[3, 4].includes(t.length) ? t = t.split("").map((r) => r + r).join("") : [6, 8].includes(t.length) || ue(`'${e}' is not a valid hex(a) color`);
|
|
176
176
|
const n = parseInt(t, 16);
|
|
177
|
-
return (isNaN(n) || n < 0 || n > 4294967295) &&
|
|
177
|
+
return (isNaN(n) || n < 0 || n > 4294967295) && ue(`'${e}' is not a valid hex(a) color`), fr(t);
|
|
178
178
|
} else if (typeof e == "object") {
|
|
179
|
-
if (
|
|
179
|
+
if (Fe(e, ["r", "g", "b"]))
|
|
180
180
|
return e;
|
|
181
|
-
if (
|
|
182
|
-
return
|
|
183
|
-
if (
|
|
184
|
-
return
|
|
181
|
+
if (Fe(e, ["h", "s", "l"]))
|
|
182
|
+
return fe(cn(e));
|
|
183
|
+
if (Fe(e, ["h", "s", "v"]))
|
|
184
|
+
return fe(e);
|
|
185
185
|
}
|
|
186
186
|
throw new TypeError(`Invalid color: ${e == null ? e : String(e) || e.constructor.name}
|
|
187
187
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function fe(e) {
|
|
190
190
|
const {
|
|
191
191
|
h: t,
|
|
192
192
|
s: n,
|
|
193
|
-
v:
|
|
194
|
-
a
|
|
195
|
-
} = e,
|
|
196
|
-
const
|
|
197
|
-
return
|
|
198
|
-
},
|
|
193
|
+
v: r,
|
|
194
|
+
a: i
|
|
195
|
+
} = e, a = (f) => {
|
|
196
|
+
const l = (f + t / 60) % 6;
|
|
197
|
+
return r - r * n * Math.max(Math.min(l, 4 - l, 1), 0);
|
|
198
|
+
}, o = [a(5), a(3), a(1)].map((f) => Math.round(f * 255));
|
|
199
199
|
return {
|
|
200
|
-
r:
|
|
201
|
-
g:
|
|
202
|
-
b:
|
|
203
|
-
a
|
|
200
|
+
r: o[0],
|
|
201
|
+
g: o[1],
|
|
202
|
+
b: o[2],
|
|
203
|
+
a: i
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
return
|
|
206
|
+
function Tt(e) {
|
|
207
|
+
return fe(cn(e));
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function cn(e) {
|
|
210
210
|
const {
|
|
211
211
|
h: t,
|
|
212
212
|
s: n,
|
|
213
|
-
l,
|
|
214
|
-
a
|
|
215
|
-
} = e,
|
|
213
|
+
l: r,
|
|
214
|
+
a: i
|
|
215
|
+
} = e, a = r + n * Math.min(r, 1 - r), o = a === 0 ? 0 : 2 - 2 * r / a;
|
|
216
216
|
return {
|
|
217
217
|
h: t,
|
|
218
|
-
s:
|
|
219
|
-
v:
|
|
220
|
-
a
|
|
218
|
+
s: o,
|
|
219
|
+
v: a,
|
|
220
|
+
a: i
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
e =
|
|
225
|
-
let [t, n,
|
|
226
|
-
return
|
|
223
|
+
function fr(e) {
|
|
224
|
+
e = dr(e);
|
|
225
|
+
let [t, n, r, i] = er(e, 2).map((a) => parseInt(a, 16));
|
|
226
|
+
return i = i === void 0 ? i : i / 255, {
|
|
227
227
|
r: t,
|
|
228
228
|
g: n,
|
|
229
|
-
b:
|
|
230
|
-
a
|
|
229
|
+
b: r,
|
|
230
|
+
a: i
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
return e.startsWith("#") && (e = e.slice(1)), e = e.replace(/([^0-9a-f])/gi, "F"), (e.length === 3 || e.length === 4) && (e = e.split("").map((t) => t + t).join("")), e.length !== 6 && (e =
|
|
233
|
+
function dr(e) {
|
|
234
|
+
return e.startsWith("#") && (e = e.slice(1)), e = e.replace(/([^0-9a-f])/gi, "F"), (e.length === 3 || e.length === 4) && (e = e.split("").map((t) => t + t).join("")), e.length !== 6 && (e = ft(ft(e, 6), 8, "F")), e;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
const t = Math.abs(
|
|
238
|
-
return Math.abs(
|
|
236
|
+
function gr(e) {
|
|
237
|
+
const t = Math.abs(_t(oe(0), oe(e)));
|
|
238
|
+
return Math.abs(_t(oe(16777215), oe(e))) > Math.min(t, 50) ? "#fff" : "#000";
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
const n =
|
|
240
|
+
function ve(e, t) {
|
|
241
|
+
const n = Nn();
|
|
242
242
|
if (!n)
|
|
243
243
|
throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);
|
|
244
244
|
return n;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function mr() {
|
|
247
247
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
|
|
248
|
-
const t =
|
|
249
|
-
return
|
|
248
|
+
const t = ve(e).type;
|
|
249
|
+
return ne((t == null ? void 0 : t.aliasName) || (t == null ? void 0 : t.name));
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
251
|
+
function yr(e) {
|
|
252
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ve("injectSelf");
|
|
253
253
|
const {
|
|
254
254
|
provides: n
|
|
255
255
|
} = t;
|
|
256
256
|
if (n && e in n)
|
|
257
257
|
return n[e];
|
|
258
258
|
}
|
|
259
|
-
const
|
|
260
|
-
function
|
|
261
|
-
const e =
|
|
259
|
+
const ze = Symbol.for("vuetify:defaults");
|
|
260
|
+
function fn() {
|
|
261
|
+
const e = Ze(ze);
|
|
262
262
|
if (!e) throw new Error("[Vuetify] Could not find defaults instance");
|
|
263
263
|
return e;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
var n,
|
|
267
|
-
return typeof ((n = e.props) == null ? void 0 : n[t]) < "u" || typeof ((
|
|
265
|
+
function vr(e, t) {
|
|
266
|
+
var n, r;
|
|
267
|
+
return typeof ((n = e.props) == null ? void 0 : n[t]) < "u" || typeof ((r = e.props) == null ? void 0 : r[ne(t)]) < "u";
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
271
|
-
const
|
|
272
|
-
if (t = t ??
|
|
269
|
+
function pr() {
|
|
270
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fn();
|
|
271
|
+
const r = ve("useDefaults");
|
|
272
|
+
if (t = t ?? r.type.name ?? r.type.__name, !t)
|
|
273
273
|
throw new Error("[Vuetify] Could not determine component name");
|
|
274
|
-
const
|
|
275
|
-
var
|
|
276
|
-
return (
|
|
277
|
-
}),
|
|
278
|
-
get(
|
|
279
|
-
var
|
|
280
|
-
const
|
|
281
|
-
return c === "class" || c === "style" ? [(
|
|
274
|
+
const i = I(() => {
|
|
275
|
+
var l;
|
|
276
|
+
return (l = n.value) == null ? void 0 : l[e._as ?? t];
|
|
277
|
+
}), a = new Proxy(e, {
|
|
278
|
+
get(l, c) {
|
|
279
|
+
var d, v, T, h, $, A, x;
|
|
280
|
+
const y = Reflect.get(l, c);
|
|
281
|
+
return c === "class" || c === "style" ? [(d = i.value) == null ? void 0 : d[c], y].filter((B) => B != null) : typeof c == "string" && !vr(r.vnode, c) ? ((v = i.value) == null ? void 0 : v[c]) !== void 0 ? (T = i.value) == null ? void 0 : T[c] : (($ = (h = n.value) == null ? void 0 : h.global) == null ? void 0 : $[c]) !== void 0 ? (x = (A = n.value) == null ? void 0 : A.global) == null ? void 0 : x[c] : y : y;
|
|
282
282
|
}
|
|
283
|
-
}),
|
|
284
|
-
|
|
285
|
-
if (
|
|
286
|
-
const
|
|
287
|
-
let [
|
|
288
|
-
return
|
|
283
|
+
}), o = Un();
|
|
284
|
+
Xe(() => {
|
|
285
|
+
if (i.value) {
|
|
286
|
+
const l = Object.entries(i.value).filter((c) => {
|
|
287
|
+
let [y] = c;
|
|
288
|
+
return y.startsWith(y[0].toUpperCase());
|
|
289
289
|
});
|
|
290
|
-
|
|
290
|
+
o.value = l.length ? Object.fromEntries(l) : void 0;
|
|
291
291
|
} else
|
|
292
|
-
|
|
292
|
+
o.value = void 0;
|
|
293
293
|
});
|
|
294
|
-
function
|
|
295
|
-
const
|
|
296
|
-
|
|
294
|
+
function f() {
|
|
295
|
+
const l = yr(ze, r);
|
|
296
|
+
en(ze, I(() => o.value ? on((l == null ? void 0 : l.value) ?? {}, o.value) : l == null ? void 0 : l.value));
|
|
297
297
|
}
|
|
298
298
|
return {
|
|
299
|
-
props:
|
|
300
|
-
provideSubDefaults:
|
|
299
|
+
props: a,
|
|
300
|
+
provideSubDefaults: f
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Ve(e) {
|
|
304
304
|
if (e._setup = e._setup ?? e.setup, !e.name)
|
|
305
|
-
return
|
|
305
|
+
return ue("The component is missing an explicit name, unable to generate default prop value"), e;
|
|
306
306
|
if (e._setup) {
|
|
307
|
-
e.props =
|
|
307
|
+
e.props = X(e.props ?? {}, e.name)();
|
|
308
308
|
const t = Object.keys(e.props).filter((n) => n !== "class" && n !== "style");
|
|
309
|
-
e.filterProps = function(
|
|
310
|
-
return
|
|
311
|
-
}, e.props._as = String, e.setup = function(
|
|
312
|
-
const
|
|
313
|
-
if (!
|
|
309
|
+
e.filterProps = function(r) {
|
|
310
|
+
return Qn(r, t);
|
|
311
|
+
}, e.props._as = String, e.setup = function(r, i) {
|
|
312
|
+
const a = fn();
|
|
313
|
+
if (!a.value) return e._setup(r, i);
|
|
314
314
|
const {
|
|
315
|
-
props:
|
|
316
|
-
provideSubDefaults:
|
|
317
|
-
} =
|
|
318
|
-
return
|
|
315
|
+
props: o,
|
|
316
|
+
provideSubDefaults: f
|
|
317
|
+
} = pr(r, r._as ?? e.name, a), l = e._setup(o, i);
|
|
318
|
+
return f(), l;
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
return e;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function dn() {
|
|
324
324
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
325
|
-
return (t) => (e ?
|
|
325
|
+
return (t) => (e ? Ve : L)(t);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
const t =
|
|
327
|
+
function hr(e) {
|
|
328
|
+
const t = ve("useRender");
|
|
329
329
|
t.render = e;
|
|
330
330
|
}
|
|
331
|
-
const $
|
|
331
|
+
const $t = Symbol.for("vuetify:theme"), _r = X({
|
|
332
332
|
theme: String
|
|
333
333
|
}, "theme");
|
|
334
|
-
function
|
|
335
|
-
|
|
336
|
-
const t =
|
|
334
|
+
function br(e) {
|
|
335
|
+
ve("provideTheme");
|
|
336
|
+
const t = Ze($t, null);
|
|
337
337
|
if (!t) throw new Error("Could not find Vuetify theme injection");
|
|
338
|
-
const n =
|
|
338
|
+
const n = I(() => e.theme ?? t.name.value), r = I(() => t.themes.value[n.value]), i = I(() => t.isDisabled ? void 0 : `v-theme--${n.value}`), a = {
|
|
339
339
|
...t,
|
|
340
340
|
name: n,
|
|
341
|
-
current:
|
|
342
|
-
themeClasses:
|
|
341
|
+
current: r,
|
|
342
|
+
themeClasses: i
|
|
343
343
|
};
|
|
344
|
-
return
|
|
344
|
+
return en($t, a), a;
|
|
345
345
|
}
|
|
346
|
-
const
|
|
346
|
+
const Tr = X({
|
|
347
347
|
tag: {
|
|
348
348
|
type: String,
|
|
349
349
|
default: "div"
|
|
350
350
|
}
|
|
351
351
|
}, "tag");
|
|
352
|
-
function
|
|
353
|
-
return
|
|
352
|
+
function $r(e) {
|
|
353
|
+
return un(() => {
|
|
354
354
|
const t = [], n = {};
|
|
355
355
|
if (e.value.background)
|
|
356
|
-
if (
|
|
357
|
-
if (n.backgroundColor = e.value.background, !e.value.text &&
|
|
358
|
-
const
|
|
359
|
-
if (
|
|
360
|
-
const
|
|
361
|
-
n.color =
|
|
356
|
+
if (Ue(e.value.background)) {
|
|
357
|
+
if (n.backgroundColor = e.value.background, !e.value.text && ur(e.value.background)) {
|
|
358
|
+
const r = oe(e.value.background);
|
|
359
|
+
if (r.a == null || r.a === 1) {
|
|
360
|
+
const i = gr(r);
|
|
361
|
+
n.color = i, n.caretColor = i;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
} else
|
|
365
365
|
t.push(`bg-${e.value.background}`);
|
|
366
|
-
return e.value.text && (
|
|
366
|
+
return e.value.text && (Ue(e.value.text) ? (n.color = e.value.text, n.caretColor = e.value.text) : t.push(`text-${e.value.text}`)), {
|
|
367
367
|
colorClasses: t,
|
|
368
368
|
colorStyles: n
|
|
369
369
|
};
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
const n =
|
|
374
|
-
text:
|
|
372
|
+
function Cr(e, t) {
|
|
373
|
+
const n = I(() => ({
|
|
374
|
+
text: Je(e) ? e.value : null
|
|
375
375
|
})), {
|
|
376
|
-
colorClasses:
|
|
377
|
-
colorStyles:
|
|
378
|
-
} =
|
|
376
|
+
colorClasses: r,
|
|
377
|
+
colorStyles: i
|
|
378
|
+
} = $r(n);
|
|
379
379
|
return {
|
|
380
|
-
textColorClasses:
|
|
381
|
-
textColorStyles:
|
|
380
|
+
textColorClasses: r,
|
|
381
|
+
textColorStyles: i
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
const
|
|
384
|
+
const gn = [String, Function, Object, Array], wr = Symbol.for("vuetify:icons"), Ie = X({
|
|
385
385
|
icon: {
|
|
386
|
-
type:
|
|
386
|
+
type: gn
|
|
387
387
|
},
|
|
388
388
|
// Could not remove this and use makeTagProps, types complained because it is not required
|
|
389
389
|
tag: {
|
|
390
390
|
type: String,
|
|
391
391
|
required: !0
|
|
392
392
|
}
|
|
393
|
-
}, "icon"),
|
|
393
|
+
}, "icon"), Ct = dn()({
|
|
394
394
|
name: "VComponentIcon",
|
|
395
|
-
props:
|
|
395
|
+
props: Ie(),
|
|
396
396
|
setup(e, t) {
|
|
397
397
|
let {
|
|
398
398
|
slots: n
|
|
399
399
|
} = t;
|
|
400
400
|
return () => {
|
|
401
|
-
const
|
|
402
|
-
return
|
|
401
|
+
const r = e.icon;
|
|
402
|
+
return P(e.tag, null, {
|
|
403
403
|
default: () => {
|
|
404
|
-
var
|
|
405
|
-
return [e.icon ?
|
|
404
|
+
var i;
|
|
405
|
+
return [e.icon ? P(r, null, null) : (i = n.default) == null ? void 0 : i.call(n)];
|
|
406
406
|
}
|
|
407
407
|
});
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
|
-
}),
|
|
410
|
+
}), Ar = Ve({
|
|
411
411
|
name: "VSvgIcon",
|
|
412
412
|
inheritAttrs: !1,
|
|
413
|
-
props:
|
|
413
|
+
props: Ie(),
|
|
414
414
|
setup(e, t) {
|
|
415
415
|
let {
|
|
416
416
|
attrs: n
|
|
417
417
|
} = t;
|
|
418
|
-
return () =>
|
|
418
|
+
return () => P(e.tag, Qe(n, {
|
|
419
419
|
style: null
|
|
420
420
|
}), {
|
|
421
|
-
default: () => [
|
|
421
|
+
default: () => [P("svg", {
|
|
422
422
|
class: "v-icon__svg",
|
|
423
423
|
xmlns: "http://www.w3.org/2000/svg",
|
|
424
424
|
viewBox: "0 0 24 24",
|
|
425
425
|
role: "img",
|
|
426
426
|
"aria-hidden": "true"
|
|
427
|
-
}, [Array.isArray(e.icon) ? e.icon.map((
|
|
428
|
-
d:
|
|
429
|
-
"fill-opacity":
|
|
430
|
-
}, null) :
|
|
431
|
-
d:
|
|
432
|
-
}, null)) :
|
|
427
|
+
}, [Array.isArray(e.icon) ? e.icon.map((r) => Array.isArray(r) ? P("path", {
|
|
428
|
+
d: r[0],
|
|
429
|
+
"fill-opacity": r[1]
|
|
430
|
+
}, null) : P("path", {
|
|
431
|
+
d: r
|
|
432
|
+
}, null)) : P("path", {
|
|
433
433
|
d: e.icon
|
|
434
434
|
}, null)])]
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
|
-
|
|
438
|
+
Ve({
|
|
439
439
|
name: "VLigatureIcon",
|
|
440
|
-
props:
|
|
440
|
+
props: Ie(),
|
|
441
441
|
setup(e) {
|
|
442
|
-
return () =>
|
|
442
|
+
return () => P(e.tag, null, {
|
|
443
443
|
default: () => [e.icon]
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
|
-
|
|
447
|
+
Ve({
|
|
448
448
|
name: "VClassIcon",
|
|
449
|
-
props:
|
|
449
|
+
props: Ie(),
|
|
450
450
|
setup(e) {
|
|
451
|
-
return () =>
|
|
451
|
+
return () => P(e.tag, {
|
|
452
452
|
class: e.icon
|
|
453
453
|
}, null);
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
|
-
const
|
|
457
|
-
const t =
|
|
456
|
+
const Sr = (e) => {
|
|
457
|
+
const t = Ze(wr);
|
|
458
458
|
if (!t) throw new Error("Missing Vuetify Icons provide!");
|
|
459
459
|
return {
|
|
460
|
-
iconData:
|
|
461
|
-
var
|
|
462
|
-
const
|
|
463
|
-
if (!
|
|
464
|
-
component:
|
|
460
|
+
iconData: I(() => {
|
|
461
|
+
var l;
|
|
462
|
+
const r = z(e);
|
|
463
|
+
if (!r) return {
|
|
464
|
+
component: Ct
|
|
465
465
|
};
|
|
466
|
-
let
|
|
467
|
-
if (typeof
|
|
466
|
+
let i = r;
|
|
467
|
+
if (typeof i == "string" && (i = i.trim(), i.startsWith("$") && (i = (l = t.aliases) == null ? void 0 : l[i.slice(1)])), i || ue(`Could not find aliased icon "${r}"`), Array.isArray(i))
|
|
468
468
|
return {
|
|
469
|
-
component:
|
|
470
|
-
icon:
|
|
469
|
+
component: Ar,
|
|
470
|
+
icon: i
|
|
471
471
|
};
|
|
472
|
-
if (typeof
|
|
472
|
+
if (typeof i != "string")
|
|
473
473
|
return {
|
|
474
|
-
component:
|
|
475
|
-
icon:
|
|
474
|
+
component: Ct,
|
|
475
|
+
icon: i
|
|
476
476
|
};
|
|
477
|
-
const
|
|
477
|
+
const a = Object.keys(t.sets).find((c) => typeof i == "string" && i.startsWith(`${c}:`)), o = a ? i.slice(a.length + 1) : i;
|
|
478
478
|
return {
|
|
479
|
-
component: t.sets[
|
|
480
|
-
icon:
|
|
479
|
+
component: t.sets[a ?? t.defaultSet].component,
|
|
480
|
+
icon: o
|
|
481
481
|
};
|
|
482
482
|
})
|
|
483
483
|
};
|
|
484
|
-
},
|
|
484
|
+
}, xr = ["x-small", "small", "default", "large", "x-large"], Or = X({
|
|
485
485
|
size: {
|
|
486
486
|
type: [String, Number],
|
|
487
487
|
default: "default"
|
|
488
488
|
}
|
|
489
489
|
}, "size");
|
|
490
|
-
function
|
|
491
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
492
|
-
return
|
|
493
|
-
let n,
|
|
494
|
-
return
|
|
495
|
-
width:
|
|
496
|
-
height:
|
|
490
|
+
function Pr(e) {
|
|
491
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : mr();
|
|
492
|
+
return un(() => {
|
|
493
|
+
let n, r;
|
|
494
|
+
return tr(xr, e.size) ? n = `${t}--size-${e.size}` : e.size && (r = {
|
|
495
|
+
width: le(e.size),
|
|
496
|
+
height: le(e.size)
|
|
497
497
|
}), {
|
|
498
498
|
sizeClasses: n,
|
|
499
|
-
sizeStyles:
|
|
499
|
+
sizeStyles: r
|
|
500
500
|
};
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
|
-
const
|
|
503
|
+
const Vr = X({
|
|
504
504
|
color: String,
|
|
505
505
|
disabled: Boolean,
|
|
506
506
|
start: Boolean,
|
|
507
507
|
end: Boolean,
|
|
508
|
-
icon:
|
|
509
|
-
...
|
|
510
|
-
...
|
|
511
|
-
...
|
|
508
|
+
icon: gn,
|
|
509
|
+
...Jn(),
|
|
510
|
+
...Or(),
|
|
511
|
+
...Tr({
|
|
512
512
|
tag: "i"
|
|
513
513
|
}),
|
|
514
|
-
|
|
515
|
-
}, "VIcon"),
|
|
514
|
+
..._r()
|
|
515
|
+
}, "VIcon"), Ir = dn()({
|
|
516
516
|
name: "VIcon",
|
|
517
|
-
props:
|
|
517
|
+
props: Vr(),
|
|
518
518
|
setup(e, t) {
|
|
519
519
|
let {
|
|
520
520
|
attrs: n,
|
|
521
|
-
slots:
|
|
521
|
+
slots: r
|
|
522
522
|
} = t;
|
|
523
|
-
const
|
|
524
|
-
themeClasses:
|
|
525
|
-
} =
|
|
526
|
-
iconData:
|
|
527
|
-
} =
|
|
528
|
-
sizeClasses:
|
|
529
|
-
} =
|
|
530
|
-
textColorClasses:
|
|
523
|
+
const i = M(), {
|
|
524
|
+
themeClasses: a
|
|
525
|
+
} = br(e), {
|
|
526
|
+
iconData: o
|
|
527
|
+
} = Sr(I(() => i.value || e.icon)), {
|
|
528
|
+
sizeClasses: f
|
|
529
|
+
} = Pr(e), {
|
|
530
|
+
textColorClasses: l,
|
|
531
531
|
textColorStyles: c
|
|
532
|
-
} =
|
|
533
|
-
return
|
|
534
|
-
var
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
const
|
|
538
|
-
return
|
|
532
|
+
} = Cr(zn(e, "color"));
|
|
533
|
+
return hr(() => {
|
|
534
|
+
var v, T;
|
|
535
|
+
const y = (v = r.default) == null ? void 0 : v.call(r);
|
|
536
|
+
y && (i.value = (T = ln(y).filter((h) => h.type === Hn && h.children && typeof h.children == "string")[0]) == null ? void 0 : T.children);
|
|
537
|
+
const d = !!(n.onClick || n.onClickOnce);
|
|
538
|
+
return P(o.value.component, {
|
|
539
539
|
tag: e.tag,
|
|
540
|
-
icon:
|
|
541
|
-
class: ["v-icon", "notranslate",
|
|
542
|
-
"v-icon--clickable":
|
|
540
|
+
icon: o.value.icon,
|
|
541
|
+
class: ["v-icon", "notranslate", a.value, f.value, l.value, {
|
|
542
|
+
"v-icon--clickable": d,
|
|
543
543
|
"v-icon--disabled": e.disabled,
|
|
544
544
|
"v-icon--start": e.start,
|
|
545
545
|
"v-icon--end": e.end
|
|
546
546
|
}, e.class],
|
|
547
|
-
style: [
|
|
548
|
-
fontSize:
|
|
549
|
-
height:
|
|
550
|
-
width:
|
|
547
|
+
style: [f.value ? void 0 : {
|
|
548
|
+
fontSize: le(e.size),
|
|
549
|
+
height: le(e.size),
|
|
550
|
+
width: le(e.size)
|
|
551
551
|
}, c.value, e.style],
|
|
552
|
-
role:
|
|
553
|
-
"aria-hidden": !
|
|
554
|
-
tabindex:
|
|
552
|
+
role: d ? "button" : void 0,
|
|
553
|
+
"aria-hidden": !d,
|
|
554
|
+
tabindex: d ? e.disabled ? -1 : 0 : void 0
|
|
555
555
|
}, {
|
|
556
|
-
default: () => [
|
|
556
|
+
default: () => [y]
|
|
557
557
|
});
|
|
558
558
|
}), {};
|
|
559
559
|
}
|
|
560
|
-
}),
|
|
560
|
+
}), Er = /* @__PURE__ */ L({
|
|
561
561
|
__name: "entry",
|
|
562
562
|
props: {
|
|
563
563
|
minHeight: {}
|
|
564
564
|
},
|
|
565
565
|
setup(e) {
|
|
566
|
-
const { backgroundColor2: t, highlightColor: n } =
|
|
567
|
-
background:
|
|
566
|
+
const { backgroundColor2: t, highlightColor: n } = nt(), r = M(!1), i = I(() => ({
|
|
567
|
+
background: r.value ? n.value : t.value,
|
|
568
568
|
minHeight: e.minHeight,
|
|
569
569
|
paddingRight: "4px",
|
|
570
570
|
marginBottom: "1px",
|
|
571
571
|
userSelect: "none"
|
|
572
|
-
})),
|
|
573
|
-
|
|
574
|
-
x:
|
|
575
|
-
y:
|
|
572
|
+
})), a = (o) => {
|
|
573
|
+
nn.emit("propTreeMenu", {
|
|
574
|
+
x: o.clientX,
|
|
575
|
+
y: o.clientY
|
|
576
576
|
});
|
|
577
577
|
};
|
|
578
|
-
return (
|
|
579
|
-
const
|
|
580
|
-
return
|
|
578
|
+
return (o, f) => {
|
|
579
|
+
const l = ae("ripple");
|
|
580
|
+
return W((E(), ye("div", {
|
|
581
581
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
582
|
-
style:
|
|
583
|
-
onContextmenu:
|
|
584
|
-
onMouseover:
|
|
585
|
-
onMouseout:
|
|
582
|
+
style: tn(i.value),
|
|
583
|
+
onContextmenu: we(a, ["prevent"]),
|
|
584
|
+
onMouseover: f[0] || (f[0] = (c) => r.value = !0),
|
|
585
|
+
onMouseout: f[1] || (f[1] = (c) => r.value = !1)
|
|
586
586
|
}, [
|
|
587
|
-
|
|
587
|
+
Gn(o.$slots, "default")
|
|
588
588
|
], 36)), [
|
|
589
|
-
[
|
|
589
|
+
[l]
|
|
590
590
|
]);
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
|
-
}),
|
|
593
|
+
}), Mr = /* @__PURE__ */ L({
|
|
594
594
|
__name: "menu",
|
|
595
595
|
setup(e) {
|
|
596
|
-
const { t } =
|
|
597
|
-
const
|
|
596
|
+
const { t } = tt(), n = M(0), r = M(0), i = I(() => [n.value, r.value]), a = (c) => {
|
|
597
|
+
const y = () => {
|
|
598
598
|
console.log("reset");
|
|
599
599
|
};
|
|
600
600
|
c.push({
|
|
601
601
|
title: t("x-prop-tree.reset"),
|
|
602
|
-
func:
|
|
602
|
+
func: y
|
|
603
603
|
});
|
|
604
|
-
},
|
|
604
|
+
}, o = I(() => {
|
|
605
605
|
const c = [];
|
|
606
|
-
return
|
|
607
|
-
}),
|
|
608
|
-
n.value = c.x,
|
|
609
|
-
}, { open:
|
|
610
|
-
return (c,
|
|
611
|
-
const
|
|
612
|
-
return
|
|
613
|
-
modelValue:
|
|
614
|
-
"onUpdate:modelValue":
|
|
606
|
+
return a(c), c;
|
|
607
|
+
}), f = (c) => {
|
|
608
|
+
n.value = c.x, r.value = c.y;
|
|
609
|
+
}, { open: l } = rn("propTreeMenu", f);
|
|
610
|
+
return (c, y) => {
|
|
611
|
+
const d = V("v-list-item-title"), v = V("v-list-item"), T = V("v-list"), h = V("v-menu");
|
|
612
|
+
return E(), D(h, {
|
|
613
|
+
modelValue: z(l),
|
|
614
|
+
"onUpdate:modelValue": y[0] || (y[0] = ($) => Je(l) ? l.value = $ : null),
|
|
615
615
|
"location-strategy": "connected",
|
|
616
|
-
target:
|
|
616
|
+
target: i.value,
|
|
617
617
|
scrim: "transparent"
|
|
618
618
|
}, {
|
|
619
|
-
default:
|
|
620
|
-
|
|
621
|
-
default:
|
|
622
|
-
(
|
|
619
|
+
default: R(() => [
|
|
620
|
+
P(T, null, {
|
|
621
|
+
default: R(() => [
|
|
622
|
+
(E(!0), ye(Ye, null, Wn(o.value, ($, A) => (E(), D(v, {
|
|
623
623
|
key: A,
|
|
624
624
|
link: "",
|
|
625
|
-
onClick:
|
|
625
|
+
onClick: $.func
|
|
626
626
|
}, {
|
|
627
|
-
default:
|
|
628
|
-
|
|
629
|
-
default:
|
|
630
|
-
|
|
627
|
+
default: R(() => [
|
|
628
|
+
P(d, null, {
|
|
629
|
+
default: R(() => [
|
|
630
|
+
et(Pe($.title), 1)
|
|
631
631
|
]),
|
|
632
632
|
_: 2
|
|
633
633
|
}, 1024)
|
|
@@ -642,7 +642,7 @@ const Ht = O({
|
|
|
642
642
|
}, 8, ["modelValue", "target"]);
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
|
-
}),
|
|
645
|
+
}), wt = /* @__PURE__ */ L({
|
|
646
646
|
__name: "title",
|
|
647
647
|
props: {
|
|
648
648
|
title: {},
|
|
@@ -653,55 +653,55 @@ const Ht = O({
|
|
|
653
653
|
},
|
|
654
654
|
emits: ["collapse", "create", "delete"],
|
|
655
655
|
setup(e, { emit: t }) {
|
|
656
|
-
const { backgroundColor2: n, highlightColor:
|
|
657
|
-
background:
|
|
656
|
+
const { backgroundColor2: n, highlightColor: r } = nt(), i = t, a = M(!1), o = I(() => ({
|
|
657
|
+
background: a.value ? r.value : n.value,
|
|
658
658
|
height: "36px",
|
|
659
659
|
marginBottom: "1px",
|
|
660
660
|
userSelect: "none"
|
|
661
|
-
})),
|
|
662
|
-
|
|
663
|
-
},
|
|
664
|
-
|
|
661
|
+
})), f = () => {
|
|
662
|
+
i("collapse", !e.collapse);
|
|
663
|
+
}, l = (c) => {
|
|
664
|
+
nn.emit("propTreeMenu", {
|
|
665
665
|
x: c.clientX,
|
|
666
666
|
y: c.clientY
|
|
667
667
|
});
|
|
668
668
|
};
|
|
669
|
-
return (c,
|
|
670
|
-
const
|
|
671
|
-
return
|
|
669
|
+
return (c, y) => {
|
|
670
|
+
const d = V("v-icon"), v = V("v-spacer"), T = ae("ripple");
|
|
671
|
+
return W((E(), ye("div", {
|
|
672
672
|
class: "d-flex align-center cursor-pointer",
|
|
673
|
-
style:
|
|
674
|
-
onClick:
|
|
675
|
-
onContextmenu:
|
|
676
|
-
onMouseover:
|
|
677
|
-
onMouseout:
|
|
673
|
+
style: tn(o.value),
|
|
674
|
+
onClick: f,
|
|
675
|
+
onContextmenu: we(l, ["prevent"]),
|
|
676
|
+
onMouseover: y[2] || (y[2] = (h) => a.value = !0),
|
|
677
|
+
onMouseout: y[3] || (y[3] = (h) => a.value = !1)
|
|
678
678
|
}, [
|
|
679
|
-
|
|
679
|
+
P(d, {
|
|
680
680
|
class: "mr-1",
|
|
681
|
-
icon: c.collapse ?
|
|
681
|
+
icon: c.collapse ? z(Zn) : z(Xn)
|
|
682
682
|
}, null, 8, ["icon"]),
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
c.hasCreate ? (
|
|
683
|
+
Kn("span", null, Pe(c.title), 1),
|
|
684
|
+
P(v),
|
|
685
|
+
c.hasCreate ? (E(), D(d, {
|
|
686
686
|
key: 0,
|
|
687
687
|
class: "ml-3",
|
|
688
|
-
icon:
|
|
689
|
-
onClick:
|
|
690
|
-
}, null, 8, ["icon"])) :
|
|
691
|
-
c.hasDelete ? (
|
|
688
|
+
icon: z(sn),
|
|
689
|
+
onClick: y[0] || (y[0] = we((h) => i("create"), ["stop"]))
|
|
690
|
+
}, null, 8, ["icon"])) : Re("", !0),
|
|
691
|
+
c.hasDelete ? (E(), D(d, {
|
|
692
692
|
key: 1,
|
|
693
693
|
class: "ml-3",
|
|
694
|
-
icon:
|
|
695
|
-
onClick:
|
|
696
|
-
}, null, 8, ["icon"])) :
|
|
694
|
+
icon: z(an),
|
|
695
|
+
onClick: y[1] || (y[1] = we((h) => i("delete", c.index), ["stop"]))
|
|
696
|
+
}, null, 8, ["icon"])) : Re("", !0)
|
|
697
697
|
], 36)), [
|
|
698
|
-
[
|
|
698
|
+
[T]
|
|
699
699
|
]);
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
|
-
}),
|
|
702
|
+
}), Lr = /* @__PURE__ */ L({
|
|
703
703
|
__name: "colorPicker",
|
|
704
|
-
props: /* @__PURE__ */
|
|
704
|
+
props: /* @__PURE__ */ K({
|
|
705
705
|
readonly: { type: Boolean, default: !1 }
|
|
706
706
|
}, {
|
|
707
707
|
modelValue: {},
|
|
@@ -709,29 +709,29 @@ const Ht = O({
|
|
|
709
709
|
}),
|
|
710
710
|
emits: ["update:modelValue"],
|
|
711
711
|
setup(e) {
|
|
712
|
-
const t =
|
|
713
|
-
return (
|
|
714
|
-
const
|
|
715
|
-
return
|
|
716
|
-
activator:
|
|
717
|
-
|
|
712
|
+
const t = se(e, "modelValue"), n = I(() => e.readonly), r = M("hexa");
|
|
713
|
+
return (i, a) => {
|
|
714
|
+
const o = V("v-btn"), f = V("v-color-picker"), l = V("v-menu");
|
|
715
|
+
return E(), D(l, { "close-on-content-click": !1 }, {
|
|
716
|
+
activator: R(({ props: c }) => [
|
|
717
|
+
P(o, Qe(c, {
|
|
718
718
|
density: "comfortable",
|
|
719
719
|
color: t.value,
|
|
720
720
|
block: "",
|
|
721
721
|
disabled: n.value
|
|
722
722
|
}), {
|
|
723
|
-
default:
|
|
724
|
-
|
|
723
|
+
default: R(() => [
|
|
724
|
+
et(Pe(t.value), 1)
|
|
725
725
|
]),
|
|
726
726
|
_: 2
|
|
727
727
|
}, 1040, ["color", "disabled"])
|
|
728
728
|
]),
|
|
729
|
-
default:
|
|
730
|
-
|
|
729
|
+
default: R(() => [
|
|
730
|
+
P(f, {
|
|
731
731
|
modelValue: t.value,
|
|
732
|
-
"onUpdate:modelValue":
|
|
733
|
-
mode:
|
|
734
|
-
"onUpdate:mode":
|
|
732
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => t.value = c),
|
|
733
|
+
mode: r.value,
|
|
734
|
+
"onUpdate:mode": a[1] || (a[1] = (c) => r.value = c),
|
|
735
735
|
"show-swatches": "",
|
|
736
736
|
"swatches-max-height": "150px"
|
|
737
737
|
}, null, 8, ["modelValue", "mode"])
|
|
@@ -740,24 +740,24 @@ const Ht = O({
|
|
|
740
740
|
});
|
|
741
741
|
};
|
|
742
742
|
}
|
|
743
|
-
}),
|
|
743
|
+
}), Br = /* @__PURE__ */ L({
|
|
744
744
|
__name: "compSelect",
|
|
745
745
|
setup(e) {
|
|
746
|
-
const t =
|
|
747
|
-
}, { open:
|
|
748
|
-
return (
|
|
749
|
-
const
|
|
750
|
-
return
|
|
751
|
-
modelValue:
|
|
752
|
-
"onUpdate:modelValue":
|
|
746
|
+
const t = I(() => "<n/a>"), n = () => {
|
|
747
|
+
}, { open: r } = rn("compSelectDlg", n);
|
|
748
|
+
return (i, a) => {
|
|
749
|
+
const o = V("v-btn"), f = V("v-dialog");
|
|
750
|
+
return E(), D(f, {
|
|
751
|
+
modelValue: z(r),
|
|
752
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => Je(r) ? r.value = l : null)
|
|
753
753
|
}, {
|
|
754
|
-
activator:
|
|
755
|
-
|
|
754
|
+
activator: R(({ props: l }) => [
|
|
755
|
+
P(o, Qe(l, {
|
|
756
756
|
density: "comfortable",
|
|
757
757
|
block: ""
|
|
758
758
|
}), {
|
|
759
|
-
default:
|
|
760
|
-
|
|
759
|
+
default: R(() => [
|
|
760
|
+
et(Pe(t.value), 1)
|
|
761
761
|
]),
|
|
762
762
|
_: 2
|
|
763
763
|
}, 1040)
|
|
@@ -766,9 +766,9 @@ const Ht = O({
|
|
|
766
766
|
}, 8, ["modelValue"]);
|
|
767
767
|
};
|
|
768
768
|
}
|
|
769
|
-
}),
|
|
769
|
+
}), Fr = { class: "my-2" }, Dr = /* @__PURE__ */ L({
|
|
770
770
|
__name: "multiTypes",
|
|
771
|
-
props: /* @__PURE__ */
|
|
771
|
+
props: /* @__PURE__ */ K({
|
|
772
772
|
types: {}
|
|
773
773
|
}, {
|
|
774
774
|
modelValue: { default: "" },
|
|
@@ -776,69 +776,69 @@ const Ht = O({
|
|
|
776
776
|
}),
|
|
777
777
|
emits: ["update:modelValue"],
|
|
778
778
|
setup(e) {
|
|
779
|
-
const { t } =
|
|
780
|
-
const
|
|
781
|
-
return e.types.forEach((
|
|
782
|
-
|
|
783
|
-
title: t(
|
|
779
|
+
const { t } = tt(), n = se(e, "modelValue"), r = M(0), i = I(() => {
|
|
780
|
+
const f = [];
|
|
781
|
+
return e.types.forEach((l, c) => {
|
|
782
|
+
f.push({
|
|
783
|
+
title: t(l.name),
|
|
784
784
|
value: c
|
|
785
785
|
});
|
|
786
|
-
}),
|
|
786
|
+
}), f;
|
|
787
787
|
});
|
|
788
|
-
e.types.some((
|
|
789
|
-
const
|
|
790
|
-
|
|
791
|
-
n.value =
|
|
788
|
+
e.types.some((f, l) => f.validator(n.value) ? (r.value = l, !0) : !1);
|
|
789
|
+
const a = I(() => e.types[r.value]);
|
|
790
|
+
Ne(a, (f) => {
|
|
791
|
+
n.value = f.default;
|
|
792
792
|
});
|
|
793
|
-
const
|
|
794
|
-
return
|
|
795
|
-
|
|
796
|
-
}),
|
|
797
|
-
|
|
798
|
-
}), (
|
|
799
|
-
const c =
|
|
800
|
-
return
|
|
801
|
-
P(
|
|
802
|
-
modelValue:
|
|
803
|
-
"onUpdate:modelValue":
|
|
793
|
+
const o = M(0);
|
|
794
|
+
return Xe(() => {
|
|
795
|
+
a.value.ui === "pixelInput" ? o.value = qn(n.value) : a.value.ui === "percentInput" && (o.value = Yn(n.value));
|
|
796
|
+
}), Ne(o, (f) => {
|
|
797
|
+
a.value.ui === "pixelInput" ? n.value = f + "px" : a.value.ui === "percentInput" && (n.value = f + "%");
|
|
798
|
+
}), (f, l) => {
|
|
799
|
+
const c = V("v-select"), y = V("v-number-input"), d = ae("ripple");
|
|
800
|
+
return E(), ye("div", Fr, [
|
|
801
|
+
W(P(c, {
|
|
802
|
+
modelValue: r.value,
|
|
803
|
+
"onUpdate:modelValue": l[0] || (l[0] = (v) => r.value = v),
|
|
804
804
|
density: "compact",
|
|
805
|
-
items:
|
|
805
|
+
items: i.value,
|
|
806
806
|
"hide-details": "",
|
|
807
807
|
"single-line": ""
|
|
808
808
|
}, null, 8, ["modelValue", "items"]), [
|
|
809
809
|
[
|
|
810
|
-
|
|
810
|
+
d,
|
|
811
811
|
void 0,
|
|
812
812
|
void 0,
|
|
813
813
|
{ stop: !0 }
|
|
814
814
|
]
|
|
815
815
|
]),
|
|
816
|
-
|
|
816
|
+
a.value.ui === "pixelInput" || a.value.ui === "percentInput" ? W((E(), D(y, {
|
|
817
817
|
key: 0,
|
|
818
|
-
modelValue:
|
|
819
|
-
"onUpdate:modelValue":
|
|
818
|
+
modelValue: o.value,
|
|
819
|
+
"onUpdate:modelValue": l[1] || (l[1] = (v) => o.value = v),
|
|
820
820
|
density: "compact",
|
|
821
821
|
"control-variant": "stacked",
|
|
822
|
-
precision:
|
|
823
|
-
min:
|
|
824
|
-
max:
|
|
825
|
-
step:
|
|
822
|
+
precision: a.value.precision,
|
|
823
|
+
min: a.value.min,
|
|
824
|
+
max: a.value.max,
|
|
825
|
+
step: a.value.step,
|
|
826
826
|
"hide-details": "",
|
|
827
827
|
"single-line": ""
|
|
828
828
|
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
829
829
|
[
|
|
830
|
-
|
|
830
|
+
d,
|
|
831
831
|
void 0,
|
|
832
832
|
void 0,
|
|
833
833
|
{ stop: !0 }
|
|
834
834
|
]
|
|
835
|
-
]) :
|
|
835
|
+
]) : Re("", !0)
|
|
836
836
|
]);
|
|
837
837
|
};
|
|
838
838
|
}
|
|
839
|
-
}),
|
|
839
|
+
}), jr = /* @__PURE__ */ L({
|
|
840
840
|
__name: "numInput",
|
|
841
|
-
props: /* @__PURE__ */
|
|
841
|
+
props: /* @__PURE__ */ K({
|
|
842
842
|
precision: { default: 4 },
|
|
843
843
|
min: { default: () => -1 / 0 },
|
|
844
844
|
max: { default: () => 1 / 0 },
|
|
@@ -850,12 +850,12 @@ const Ht = O({
|
|
|
850
850
|
}),
|
|
851
851
|
emits: ["update:modelValue"],
|
|
852
852
|
setup(e) {
|
|
853
|
-
const t =
|
|
854
|
-
return (n,
|
|
855
|
-
const
|
|
856
|
-
return
|
|
853
|
+
const t = se(e, "modelValue");
|
|
854
|
+
return (n, r) => {
|
|
855
|
+
const i = V("v-number-input"), a = ae("ripple");
|
|
856
|
+
return W((E(), D(i, {
|
|
857
857
|
modelValue: t.value,
|
|
858
|
-
"onUpdate:modelValue":
|
|
858
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
|
|
859
859
|
density: "compact",
|
|
860
860
|
"control-variant": "stacked",
|
|
861
861
|
precision: n.precision,
|
|
@@ -867,7 +867,7 @@ const Ht = O({
|
|
|
867
867
|
readonly: n.readonly
|
|
868
868
|
}, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"])), [
|
|
869
869
|
[
|
|
870
|
-
|
|
870
|
+
a,
|
|
871
871
|
void 0,
|
|
872
872
|
void 0,
|
|
873
873
|
{ stop: !0 }
|
|
@@ -875,9 +875,9 @@ const Ht = O({
|
|
|
875
875
|
]);
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
|
-
}),
|
|
878
|
+
}), kr = /* @__PURE__ */ L({
|
|
879
879
|
__name: "select",
|
|
880
|
-
props: /* @__PURE__ */
|
|
880
|
+
props: /* @__PURE__ */ K({
|
|
881
881
|
readonly: { type: Boolean, default: !1 },
|
|
882
882
|
items: {}
|
|
883
883
|
}, {
|
|
@@ -886,12 +886,12 @@ const Ht = O({
|
|
|
886
886
|
}),
|
|
887
887
|
emits: ["update:modelValue"],
|
|
888
888
|
setup(e) {
|
|
889
|
-
const t =
|
|
890
|
-
return (n,
|
|
891
|
-
const
|
|
892
|
-
return
|
|
889
|
+
const t = se(e, "modelValue");
|
|
890
|
+
return (n, r) => {
|
|
891
|
+
const i = V("v-select"), a = ae("ripple");
|
|
892
|
+
return W((E(), D(i, {
|
|
893
893
|
modelValue: t.value,
|
|
894
|
-
"onUpdate:modelValue":
|
|
894
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
|
|
895
895
|
density: "compact",
|
|
896
896
|
items: n.items,
|
|
897
897
|
"hide-details": "",
|
|
@@ -899,7 +899,7 @@ const Ht = O({
|
|
|
899
899
|
readonly: n.readonly
|
|
900
900
|
}, null, 8, ["modelValue", "items", "readonly"])), [
|
|
901
901
|
[
|
|
902
|
-
|
|
902
|
+
a,
|
|
903
903
|
void 0,
|
|
904
904
|
void 0,
|
|
905
905
|
{ stop: !0 }
|
|
@@ -907,32 +907,32 @@ const Ht = O({
|
|
|
907
907
|
]);
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
|
-
}),
|
|
910
|
+
}), At = /* @__PURE__ */ L({
|
|
911
911
|
__name: "strInput",
|
|
912
|
-
props: /* @__PURE__ */
|
|
912
|
+
props: /* @__PURE__ */ K({
|
|
913
913
|
readonly: { type: Boolean, default: !1 },
|
|
914
914
|
hasDelete: { type: Boolean, default: !1 }
|
|
915
915
|
}, {
|
|
916
916
|
modelValue: {},
|
|
917
917
|
modelModifiers: {}
|
|
918
918
|
}),
|
|
919
|
-
emits: /* @__PURE__ */
|
|
919
|
+
emits: /* @__PURE__ */ K(["delete"], ["update:modelValue"]),
|
|
920
920
|
setup(e, { emit: t }) {
|
|
921
|
-
const n =
|
|
922
|
-
return (
|
|
923
|
-
const
|
|
924
|
-
return
|
|
921
|
+
const n = se(e, "modelValue"), r = t;
|
|
922
|
+
return (i, a) => {
|
|
923
|
+
const o = V("v-text-field"), f = ae("ripple");
|
|
924
|
+
return W((E(), D(o, {
|
|
925
925
|
modelValue: n.value,
|
|
926
|
-
"onUpdate:modelValue":
|
|
926
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
|
|
927
927
|
density: "compact",
|
|
928
|
-
"append-inner-icon":
|
|
928
|
+
"append-inner-icon": i.hasDelete ? z(an) : "",
|
|
929
929
|
"hide-details": "",
|
|
930
930
|
"single-line": "",
|
|
931
|
-
readonly:
|
|
932
|
-
"onClick:appendInner":
|
|
931
|
+
readonly: i.readonly,
|
|
932
|
+
"onClick:appendInner": a[1] || (a[1] = (l) => r("delete"))
|
|
933
933
|
}, null, 8, ["modelValue", "append-inner-icon", "readonly"])), [
|
|
934
934
|
[
|
|
935
|
-
|
|
935
|
+
f,
|
|
936
936
|
void 0,
|
|
937
937
|
void 0,
|
|
938
938
|
{ stop: !0 }
|
|
@@ -940,9 +940,9 @@ const Ht = O({
|
|
|
940
940
|
]);
|
|
941
941
|
};
|
|
942
942
|
}
|
|
943
|
-
}),
|
|
943
|
+
}), Rr = /* @__PURE__ */ L({
|
|
944
944
|
__name: "switch",
|
|
945
|
-
props: /* @__PURE__ */
|
|
945
|
+
props: /* @__PURE__ */ K({
|
|
946
946
|
readonly: { type: Boolean, default: !1 }
|
|
947
947
|
}, {
|
|
948
948
|
modelValue: { type: Boolean },
|
|
@@ -950,12 +950,12 @@ const Ht = O({
|
|
|
950
950
|
}),
|
|
951
951
|
emits: ["update:modelValue"],
|
|
952
952
|
setup(e) {
|
|
953
|
-
const t =
|
|
954
|
-
return (n,
|
|
955
|
-
const
|
|
956
|
-
return
|
|
953
|
+
const t = se(e, "modelValue");
|
|
954
|
+
return (n, r) => {
|
|
955
|
+
const i = V("v-switch");
|
|
956
|
+
return E(), D(i, {
|
|
957
957
|
modelValue: t.value,
|
|
958
|
-
"onUpdate:modelValue":
|
|
958
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => t.value = a),
|
|
959
959
|
class: "ml-1",
|
|
960
960
|
density: "compact",
|
|
961
961
|
color: "primary",
|
|
@@ -965,21 +965,751 @@ const Ht = O({
|
|
|
965
965
|
};
|
|
966
966
|
}
|
|
967
967
|
});
|
|
968
|
-
function
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
968
|
+
function St(e, t) {
|
|
969
|
+
let n = e;
|
|
970
|
+
return t.forEach((r) => {
|
|
971
|
+
n[r] || (n[r] = {}), n = n[r];
|
|
972
|
+
}), n.collapse === void 0 && (n.collapse = !0), n.collapse;
|
|
973
|
+
}
|
|
974
|
+
function Nr(e, t, n) {
|
|
975
|
+
let r = e;
|
|
976
|
+
t.forEach((i) => {
|
|
977
|
+
r[i] || (r[i] = {}), r = r[i];
|
|
978
|
+
}), r.collapse = n;
|
|
979
|
+
}
|
|
980
|
+
var mn = typeof global == "object" && global && global.Object === Object && global, Ur = typeof self == "object" && self && self.Object === Object && self, j = mn || Ur || Function("return this")(), H = j.Symbol, yn = Object.prototype, zr = yn.hasOwnProperty, Hr = yn.toString, ie = H ? H.toStringTag : void 0;
|
|
981
|
+
function Gr(e) {
|
|
982
|
+
var t = zr.call(e, ie), n = e[ie];
|
|
983
|
+
try {
|
|
984
|
+
e[ie] = void 0;
|
|
985
|
+
var r = !0;
|
|
986
|
+
} catch {
|
|
987
|
+
}
|
|
988
|
+
var i = Hr.call(e);
|
|
989
|
+
return r && (t ? e[ie] = n : delete e[ie]), i;
|
|
990
|
+
}
|
|
991
|
+
var Wr = Object.prototype, Kr = Wr.toString;
|
|
992
|
+
function qr(e) {
|
|
993
|
+
return Kr.call(e);
|
|
994
|
+
}
|
|
995
|
+
var Yr = "[object Null]", Xr = "[object Undefined]", xt = H ? H.toStringTag : void 0;
|
|
996
|
+
function pe(e) {
|
|
997
|
+
return e == null ? e === void 0 ? Xr : Yr : xt && xt in Object(e) ? Gr(e) : qr(e);
|
|
998
|
+
}
|
|
999
|
+
function q(e) {
|
|
1000
|
+
return e != null && typeof e == "object";
|
|
1001
|
+
}
|
|
1002
|
+
var de = Array.isArray;
|
|
1003
|
+
function he(e) {
|
|
1004
|
+
var t = typeof e;
|
|
1005
|
+
return e != null && (t == "object" || t == "function");
|
|
1006
|
+
}
|
|
1007
|
+
var Zr = "[object AsyncFunction]", Jr = "[object Function]", Qr = "[object GeneratorFunction]", ea = "[object Proxy]";
|
|
1008
|
+
function vn(e) {
|
|
1009
|
+
if (!he(e))
|
|
1010
|
+
return !1;
|
|
1011
|
+
var t = pe(e);
|
|
1012
|
+
return t == Jr || t == Qr || t == Zr || t == ea;
|
|
1013
|
+
}
|
|
1014
|
+
var De = j["__core-js_shared__"], Ot = function() {
|
|
1015
|
+
var e = /[^.]+$/.exec(De && De.keys && De.keys.IE_PROTO || "");
|
|
1016
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
1017
|
+
}();
|
|
1018
|
+
function ta(e) {
|
|
1019
|
+
return !!Ot && Ot in e;
|
|
1020
|
+
}
|
|
1021
|
+
var na = Function.prototype, ra = na.toString;
|
|
1022
|
+
function Z(e) {
|
|
1023
|
+
if (e != null) {
|
|
1024
|
+
try {
|
|
1025
|
+
return ra.call(e);
|
|
1026
|
+
} catch {
|
|
1027
|
+
}
|
|
1028
|
+
try {
|
|
1029
|
+
return e + "";
|
|
1030
|
+
} catch {
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
return "";
|
|
1034
|
+
}
|
|
1035
|
+
var aa = /[\\^$.*+?()[\]{}|]/g, sa = /^\[object .+?Constructor\]$/, ia = Function.prototype, oa = Object.prototype, la = ia.toString, ua = oa.hasOwnProperty, ca = RegExp(
|
|
1036
|
+
"^" + la.call(ua).replace(aa, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1037
|
+
);
|
|
1038
|
+
function fa(e) {
|
|
1039
|
+
if (!he(e) || ta(e))
|
|
1040
|
+
return !1;
|
|
1041
|
+
var t = vn(e) ? ca : sa;
|
|
1042
|
+
return t.test(Z(e));
|
|
1043
|
+
}
|
|
1044
|
+
function da(e, t) {
|
|
1045
|
+
return e == null ? void 0 : e[t];
|
|
1046
|
+
}
|
|
1047
|
+
function J(e, t) {
|
|
1048
|
+
var n = da(e, t);
|
|
1049
|
+
return fa(n) ? n : void 0;
|
|
1050
|
+
}
|
|
1051
|
+
var He = J(j, "WeakMap"), Pt = Object.create, ga = /* @__PURE__ */ function() {
|
|
1052
|
+
function e() {
|
|
1053
|
+
}
|
|
1054
|
+
return function(t) {
|
|
1055
|
+
if (!he(t))
|
|
1056
|
+
return {};
|
|
1057
|
+
if (Pt)
|
|
1058
|
+
return Pt(t);
|
|
1059
|
+
e.prototype = t;
|
|
1060
|
+
var n = new e();
|
|
1061
|
+
return e.prototype = void 0, n;
|
|
1062
|
+
};
|
|
1063
|
+
}();
|
|
1064
|
+
function ma(e, t) {
|
|
1065
|
+
var n = -1, r = e.length;
|
|
1066
|
+
for (t || (t = Array(r)); ++n < r; )
|
|
1067
|
+
t[n] = e[n];
|
|
1068
|
+
return t;
|
|
1069
|
+
}
|
|
1070
|
+
var Vt = function() {
|
|
1071
|
+
try {
|
|
1072
|
+
var e = J(Object, "defineProperty");
|
|
1073
|
+
return e({}, "", {}), e;
|
|
1074
|
+
} catch {
|
|
1075
|
+
}
|
|
1076
|
+
}();
|
|
1077
|
+
function ya(e, t) {
|
|
1078
|
+
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
1079
|
+
;
|
|
1080
|
+
return e;
|
|
1081
|
+
}
|
|
1082
|
+
var va = 9007199254740991, pa = /^(?:0|[1-9]\d*)$/;
|
|
1083
|
+
function ha(e, t) {
|
|
1084
|
+
var n = typeof e;
|
|
1085
|
+
return t = t ?? va, !!t && (n == "number" || n != "symbol" && pa.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
1086
|
+
}
|
|
1087
|
+
function pn(e, t, n) {
|
|
1088
|
+
t == "__proto__" && Vt ? Vt(e, t, {
|
|
1089
|
+
configurable: !0,
|
|
1090
|
+
enumerable: !0,
|
|
1091
|
+
value: n,
|
|
1092
|
+
writable: !0
|
|
1093
|
+
}) : e[t] = n;
|
|
1094
|
+
}
|
|
1095
|
+
function rt(e, t) {
|
|
1096
|
+
return e === t || e !== e && t !== t;
|
|
1097
|
+
}
|
|
1098
|
+
var _a = Object.prototype, ba = _a.hasOwnProperty;
|
|
1099
|
+
function hn(e, t, n) {
|
|
1100
|
+
var r = e[t];
|
|
1101
|
+
(!(ba.call(e, t) && rt(r, n)) || n === void 0 && !(t in e)) && pn(e, t, n);
|
|
1102
|
+
}
|
|
1103
|
+
function Ee(e, t, n, r) {
|
|
1104
|
+
var i = !n;
|
|
1105
|
+
n || (n = {});
|
|
1106
|
+
for (var a = -1, o = t.length; ++a < o; ) {
|
|
1107
|
+
var f = t[a], l = void 0;
|
|
1108
|
+
l === void 0 && (l = e[f]), i ? pn(n, f, l) : hn(n, f, l);
|
|
1109
|
+
}
|
|
1110
|
+
return n;
|
|
1111
|
+
}
|
|
1112
|
+
var Ta = 9007199254740991;
|
|
1113
|
+
function _n(e) {
|
|
1114
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ta;
|
|
1115
|
+
}
|
|
1116
|
+
function bn(e) {
|
|
1117
|
+
return e != null && _n(e.length) && !vn(e);
|
|
1118
|
+
}
|
|
1119
|
+
var $a = Object.prototype;
|
|
1120
|
+
function at(e) {
|
|
1121
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || $a;
|
|
1122
|
+
return e === n;
|
|
1123
|
+
}
|
|
1124
|
+
function Ca(e, t) {
|
|
1125
|
+
for (var n = -1, r = Array(e); ++n < e; )
|
|
1126
|
+
r[n] = t(n);
|
|
1127
|
+
return r;
|
|
1128
|
+
}
|
|
1129
|
+
var wa = "[object Arguments]";
|
|
1130
|
+
function It(e) {
|
|
1131
|
+
return q(e) && pe(e) == wa;
|
|
1132
|
+
}
|
|
1133
|
+
var Tn = Object.prototype, Aa = Tn.hasOwnProperty, Sa = Tn.propertyIsEnumerable, xa = It(/* @__PURE__ */ function() {
|
|
1134
|
+
return arguments;
|
|
1135
|
+
}()) ? It : function(e) {
|
|
1136
|
+
return q(e) && Aa.call(e, "callee") && !Sa.call(e, "callee");
|
|
1137
|
+
};
|
|
1138
|
+
function Oa() {
|
|
1139
|
+
return !1;
|
|
1140
|
+
}
|
|
1141
|
+
var $n = typeof exports == "object" && exports && !exports.nodeType && exports, Et = $n && typeof module == "object" && module && !module.nodeType && module, Pa = Et && Et.exports === $n, Mt = Pa ? j.Buffer : void 0, Va = Mt ? Mt.isBuffer : void 0, Se = Va || Oa, Ia = "[object Arguments]", Ea = "[object Array]", Ma = "[object Boolean]", La = "[object Date]", Ba = "[object Error]", Fa = "[object Function]", Da = "[object Map]", ja = "[object Number]", ka = "[object Object]", Ra = "[object RegExp]", Na = "[object Set]", Ua = "[object String]", za = "[object WeakMap]", Ha = "[object ArrayBuffer]", Ga = "[object DataView]", Wa = "[object Float32Array]", Ka = "[object Float64Array]", qa = "[object Int8Array]", Ya = "[object Int16Array]", Xa = "[object Int32Array]", Za = "[object Uint8Array]", Ja = "[object Uint8ClampedArray]", Qa = "[object Uint16Array]", es = "[object Uint32Array]", w = {};
|
|
1142
|
+
w[Wa] = w[Ka] = w[qa] = w[Ya] = w[Xa] = w[Za] = w[Ja] = w[Qa] = w[es] = !0;
|
|
1143
|
+
w[Ia] = w[Ea] = w[Ha] = w[Ma] = w[Ga] = w[La] = w[Ba] = w[Fa] = w[Da] = w[ja] = w[ka] = w[Ra] = w[Na] = w[Ua] = w[za] = !1;
|
|
1144
|
+
function ts(e) {
|
|
1145
|
+
return q(e) && _n(e.length) && !!w[pe(e)];
|
|
1146
|
+
}
|
|
1147
|
+
function st(e) {
|
|
1148
|
+
return function(t) {
|
|
1149
|
+
return e(t);
|
|
1150
|
+
};
|
|
1151
|
+
}
|
|
1152
|
+
var Cn = typeof exports == "object" && exports && !exports.nodeType && exports, ce = Cn && typeof module == "object" && module && !module.nodeType && module, ns = ce && ce.exports === Cn, je = ns && mn.process, re = function() {
|
|
1153
|
+
try {
|
|
1154
|
+
var e = ce && ce.require && ce.require("util").types;
|
|
1155
|
+
return e || je && je.binding && je.binding("util");
|
|
1156
|
+
} catch {
|
|
1157
|
+
}
|
|
1158
|
+
}(), Lt = re && re.isTypedArray, wn = Lt ? st(Lt) : ts, rs = Object.prototype, as = rs.hasOwnProperty;
|
|
1159
|
+
function An(e, t) {
|
|
1160
|
+
var n = de(e), r = !n && xa(e), i = !n && !r && Se(e), a = !n && !r && !i && wn(e), o = n || r || i || a, f = o ? Ca(e.length, String) : [], l = f.length;
|
|
1161
|
+
for (var c in e)
|
|
1162
|
+
(t || as.call(e, c)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1163
|
+
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1164
|
+
i && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1165
|
+
a && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
1166
|
+
ha(c, l))) && f.push(c);
|
|
1167
|
+
return f;
|
|
1168
|
+
}
|
|
1169
|
+
function Sn(e, t) {
|
|
1170
|
+
return function(n) {
|
|
1171
|
+
return e(t(n));
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1174
|
+
var ss = Sn(Object.keys, Object), is = Object.prototype, os = is.hasOwnProperty;
|
|
1175
|
+
function ls(e) {
|
|
1176
|
+
if (!at(e))
|
|
1177
|
+
return ss(e);
|
|
1178
|
+
var t = [];
|
|
1179
|
+
for (var n in Object(e))
|
|
1180
|
+
os.call(e, n) && n != "constructor" && t.push(n);
|
|
1181
|
+
return t;
|
|
1182
|
+
}
|
|
1183
|
+
function it(e) {
|
|
1184
|
+
return bn(e) ? An(e) : ls(e);
|
|
1185
|
+
}
|
|
1186
|
+
function us(e) {
|
|
1187
|
+
var t = [];
|
|
1188
|
+
if (e != null)
|
|
1189
|
+
for (var n in Object(e))
|
|
1190
|
+
t.push(n);
|
|
1191
|
+
return t;
|
|
1192
|
+
}
|
|
1193
|
+
var cs = Object.prototype, fs = cs.hasOwnProperty;
|
|
1194
|
+
function ds(e) {
|
|
1195
|
+
if (!he(e))
|
|
1196
|
+
return us(e);
|
|
1197
|
+
var t = at(e), n = [];
|
|
1198
|
+
for (var r in e)
|
|
1199
|
+
r == "constructor" && (t || !fs.call(e, r)) || n.push(r);
|
|
1200
|
+
return n;
|
|
1201
|
+
}
|
|
1202
|
+
function ot(e) {
|
|
1203
|
+
return bn(e) ? An(e, !0) : ds(e);
|
|
1204
|
+
}
|
|
1205
|
+
var ge = J(Object, "create");
|
|
1206
|
+
function gs() {
|
|
1207
|
+
this.__data__ = ge ? ge(null) : {}, this.size = 0;
|
|
1208
|
+
}
|
|
1209
|
+
function ms(e) {
|
|
1210
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
1211
|
+
return this.size -= t ? 1 : 0, t;
|
|
1212
|
+
}
|
|
1213
|
+
var ys = "__lodash_hash_undefined__", vs = Object.prototype, ps = vs.hasOwnProperty;
|
|
1214
|
+
function hs(e) {
|
|
1215
|
+
var t = this.__data__;
|
|
1216
|
+
if (ge) {
|
|
1217
|
+
var n = t[e];
|
|
1218
|
+
return n === ys ? void 0 : n;
|
|
1219
|
+
}
|
|
1220
|
+
return ps.call(t, e) ? t[e] : void 0;
|
|
1221
|
+
}
|
|
1222
|
+
var _s = Object.prototype, bs = _s.hasOwnProperty;
|
|
1223
|
+
function Ts(e) {
|
|
1224
|
+
var t = this.__data__;
|
|
1225
|
+
return ge ? t[e] !== void 0 : bs.call(t, e);
|
|
1226
|
+
}
|
|
1227
|
+
var $s = "__lodash_hash_undefined__";
|
|
1228
|
+
function Cs(e, t) {
|
|
1229
|
+
var n = this.__data__;
|
|
1230
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = ge && t === void 0 ? $s : t, this;
|
|
1231
|
+
}
|
|
1232
|
+
function Y(e) {
|
|
1233
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
1234
|
+
for (this.clear(); ++t < n; ) {
|
|
1235
|
+
var r = e[t];
|
|
1236
|
+
this.set(r[0], r[1]);
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
Y.prototype.clear = gs;
|
|
1240
|
+
Y.prototype.delete = ms;
|
|
1241
|
+
Y.prototype.get = hs;
|
|
1242
|
+
Y.prototype.has = Ts;
|
|
1243
|
+
Y.prototype.set = Cs;
|
|
1244
|
+
function ws() {
|
|
1245
|
+
this.__data__ = [], this.size = 0;
|
|
1246
|
+
}
|
|
1247
|
+
function Me(e, t) {
|
|
1248
|
+
for (var n = e.length; n--; )
|
|
1249
|
+
if (rt(e[n][0], t))
|
|
1250
|
+
return n;
|
|
1251
|
+
return -1;
|
|
1252
|
+
}
|
|
1253
|
+
var As = Array.prototype, Ss = As.splice;
|
|
1254
|
+
function xs(e) {
|
|
1255
|
+
var t = this.__data__, n = Me(t, e);
|
|
1256
|
+
if (n < 0)
|
|
1257
|
+
return !1;
|
|
1258
|
+
var r = t.length - 1;
|
|
1259
|
+
return n == r ? t.pop() : Ss.call(t, n, 1), --this.size, !0;
|
|
1260
|
+
}
|
|
1261
|
+
function Os(e) {
|
|
1262
|
+
var t = this.__data__, n = Me(t, e);
|
|
1263
|
+
return n < 0 ? void 0 : t[n][1];
|
|
1264
|
+
}
|
|
1265
|
+
function Ps(e) {
|
|
1266
|
+
return Me(this.__data__, e) > -1;
|
|
1267
|
+
}
|
|
1268
|
+
function Vs(e, t) {
|
|
1269
|
+
var n = this.__data__, r = Me(n, e);
|
|
1270
|
+
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
1271
|
+
}
|
|
1272
|
+
function U(e) {
|
|
1273
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
1274
|
+
for (this.clear(); ++t < n; ) {
|
|
1275
|
+
var r = e[t];
|
|
1276
|
+
this.set(r[0], r[1]);
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
U.prototype.clear = ws;
|
|
1280
|
+
U.prototype.delete = xs;
|
|
1281
|
+
U.prototype.get = Os;
|
|
1282
|
+
U.prototype.has = Ps;
|
|
1283
|
+
U.prototype.set = Vs;
|
|
1284
|
+
var me = J(j, "Map");
|
|
1285
|
+
function Is() {
|
|
1286
|
+
this.size = 0, this.__data__ = {
|
|
1287
|
+
hash: new Y(),
|
|
1288
|
+
map: new (me || U)(),
|
|
1289
|
+
string: new Y()
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
function Es(e) {
|
|
1293
|
+
var t = typeof e;
|
|
1294
|
+
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
1295
|
+
}
|
|
1296
|
+
function Le(e, t) {
|
|
1297
|
+
var n = e.__data__;
|
|
1298
|
+
return Es(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
1299
|
+
}
|
|
1300
|
+
function Ms(e) {
|
|
1301
|
+
var t = Le(this, e).delete(e);
|
|
1302
|
+
return this.size -= t ? 1 : 0, t;
|
|
1303
|
+
}
|
|
1304
|
+
function Ls(e) {
|
|
1305
|
+
return Le(this, e).get(e);
|
|
1306
|
+
}
|
|
1307
|
+
function Bs(e) {
|
|
1308
|
+
return Le(this, e).has(e);
|
|
1309
|
+
}
|
|
1310
|
+
function Fs(e, t) {
|
|
1311
|
+
var n = Le(this, e), r = n.size;
|
|
1312
|
+
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
1313
|
+
}
|
|
1314
|
+
function Q(e) {
|
|
1315
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
1316
|
+
for (this.clear(); ++t < n; ) {
|
|
1317
|
+
var r = e[t];
|
|
1318
|
+
this.set(r[0], r[1]);
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
Q.prototype.clear = Is;
|
|
1322
|
+
Q.prototype.delete = Ms;
|
|
1323
|
+
Q.prototype.get = Ls;
|
|
1324
|
+
Q.prototype.has = Bs;
|
|
1325
|
+
Q.prototype.set = Fs;
|
|
1326
|
+
function xn(e, t) {
|
|
1327
|
+
for (var n = -1, r = t.length, i = e.length; ++n < r; )
|
|
1328
|
+
e[i + n] = t[n];
|
|
1329
|
+
return e;
|
|
1330
|
+
}
|
|
1331
|
+
var On = Sn(Object.getPrototypeOf, Object);
|
|
1332
|
+
function Ds() {
|
|
1333
|
+
this.__data__ = new U(), this.size = 0;
|
|
1334
|
+
}
|
|
1335
|
+
function js(e) {
|
|
1336
|
+
var t = this.__data__, n = t.delete(e);
|
|
1337
|
+
return this.size = t.size, n;
|
|
1338
|
+
}
|
|
1339
|
+
function ks(e) {
|
|
1340
|
+
return this.__data__.get(e);
|
|
1341
|
+
}
|
|
1342
|
+
function Rs(e) {
|
|
1343
|
+
return this.__data__.has(e);
|
|
1344
|
+
}
|
|
1345
|
+
var Ns = 200;
|
|
1346
|
+
function Us(e, t) {
|
|
1347
|
+
var n = this.__data__;
|
|
1348
|
+
if (n instanceof U) {
|
|
1349
|
+
var r = n.__data__;
|
|
1350
|
+
if (!me || r.length < Ns - 1)
|
|
1351
|
+
return r.push([e, t]), this.size = ++n.size, this;
|
|
1352
|
+
n = this.__data__ = new Q(r);
|
|
1353
|
+
}
|
|
1354
|
+
return n.set(e, t), this.size = n.size, this;
|
|
1355
|
+
}
|
|
1356
|
+
function N(e) {
|
|
1357
|
+
var t = this.__data__ = new U(e);
|
|
1358
|
+
this.size = t.size;
|
|
1359
|
+
}
|
|
1360
|
+
N.prototype.clear = Ds;
|
|
1361
|
+
N.prototype.delete = js;
|
|
1362
|
+
N.prototype.get = ks;
|
|
1363
|
+
N.prototype.has = Rs;
|
|
1364
|
+
N.prototype.set = Us;
|
|
1365
|
+
function zs(e, t) {
|
|
1366
|
+
return e && Ee(t, it(t), e);
|
|
1367
|
+
}
|
|
1368
|
+
function Hs(e, t) {
|
|
1369
|
+
return e && Ee(t, ot(t), e);
|
|
1370
|
+
}
|
|
1371
|
+
var Pn = typeof exports == "object" && exports && !exports.nodeType && exports, Bt = Pn && typeof module == "object" && module && !module.nodeType && module, Gs = Bt && Bt.exports === Pn, Ft = Gs ? j.Buffer : void 0, Dt = Ft ? Ft.allocUnsafe : void 0;
|
|
1372
|
+
function Ws(e, t) {
|
|
1373
|
+
if (t)
|
|
1374
|
+
return e.slice();
|
|
1375
|
+
var n = e.length, r = Dt ? Dt(n) : new e.constructor(n);
|
|
1376
|
+
return e.copy(r), r;
|
|
1377
|
+
}
|
|
1378
|
+
function Ks(e, t) {
|
|
1379
|
+
for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r; ) {
|
|
1380
|
+
var o = e[n];
|
|
1381
|
+
t(o, n, e) && (a[i++] = o);
|
|
1382
|
+
}
|
|
1383
|
+
return a;
|
|
1384
|
+
}
|
|
1385
|
+
function Vn() {
|
|
1386
|
+
return [];
|
|
1387
|
+
}
|
|
1388
|
+
var qs = Object.prototype, Ys = qs.propertyIsEnumerable, jt = Object.getOwnPropertySymbols, lt = jt ? function(e) {
|
|
1389
|
+
return e == null ? [] : (e = Object(e), Ks(jt(e), function(t) {
|
|
1390
|
+
return Ys.call(e, t);
|
|
1391
|
+
}));
|
|
1392
|
+
} : Vn;
|
|
1393
|
+
function Xs(e, t) {
|
|
1394
|
+
return Ee(e, lt(e), t);
|
|
1395
|
+
}
|
|
1396
|
+
var Zs = Object.getOwnPropertySymbols, In = Zs ? function(e) {
|
|
1397
|
+
for (var t = []; e; )
|
|
1398
|
+
xn(t, lt(e)), e = On(e);
|
|
1399
|
+
return t;
|
|
1400
|
+
} : Vn;
|
|
1401
|
+
function Js(e, t) {
|
|
1402
|
+
return Ee(e, In(e), t);
|
|
1403
|
+
}
|
|
1404
|
+
function En(e, t, n) {
|
|
1405
|
+
var r = t(e);
|
|
1406
|
+
return de(e) ? r : xn(r, n(e));
|
|
1407
|
+
}
|
|
1408
|
+
function Ge(e) {
|
|
1409
|
+
return En(e, it, lt);
|
|
1410
|
+
}
|
|
1411
|
+
function Qs(e) {
|
|
1412
|
+
return En(e, ot, In);
|
|
1413
|
+
}
|
|
1414
|
+
var We = J(j, "DataView"), Ke = J(j, "Promise"), qe = J(j, "Set"), kt = "[object Map]", ei = "[object Object]", Rt = "[object Promise]", Nt = "[object Set]", Ut = "[object WeakMap]", zt = "[object DataView]", ti = Z(We), ni = Z(me), ri = Z(Ke), ai = Z(qe), si = Z(He), F = pe;
|
|
1415
|
+
(We && F(new We(new ArrayBuffer(1))) != zt || me && F(new me()) != kt || Ke && F(Ke.resolve()) != Rt || qe && F(new qe()) != Nt || He && F(new He()) != Ut) && (F = function(e) {
|
|
1416
|
+
var t = pe(e), n = t == ei ? e.constructor : void 0, r = n ? Z(n) : "";
|
|
1417
|
+
if (r)
|
|
1418
|
+
switch (r) {
|
|
1419
|
+
case ti:
|
|
1420
|
+
return zt;
|
|
1421
|
+
case ni:
|
|
1422
|
+
return kt;
|
|
1423
|
+
case ri:
|
|
1424
|
+
return Rt;
|
|
1425
|
+
case ai:
|
|
1426
|
+
return Nt;
|
|
1427
|
+
case si:
|
|
1428
|
+
return Ut;
|
|
1429
|
+
}
|
|
1430
|
+
return t;
|
|
1431
|
+
});
|
|
1432
|
+
var ii = Object.prototype, oi = ii.hasOwnProperty;
|
|
1433
|
+
function li(e) {
|
|
1434
|
+
var t = e.length, n = new e.constructor(t);
|
|
1435
|
+
return t && typeof e[0] == "string" && oi.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
1436
|
+
}
|
|
1437
|
+
var xe = j.Uint8Array;
|
|
1438
|
+
function ut(e) {
|
|
1439
|
+
var t = new e.constructor(e.byteLength);
|
|
1440
|
+
return new xe(t).set(new xe(e)), t;
|
|
1441
|
+
}
|
|
1442
|
+
function ui(e, t) {
|
|
1443
|
+
var n = t ? ut(e.buffer) : e.buffer;
|
|
1444
|
+
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
1445
|
+
}
|
|
1446
|
+
var ci = /\w*$/;
|
|
1447
|
+
function fi(e) {
|
|
1448
|
+
var t = new e.constructor(e.source, ci.exec(e));
|
|
1449
|
+
return t.lastIndex = e.lastIndex, t;
|
|
1450
|
+
}
|
|
1451
|
+
var Ht = H ? H.prototype : void 0, Gt = Ht ? Ht.valueOf : void 0;
|
|
1452
|
+
function di(e) {
|
|
1453
|
+
return Gt ? Object(Gt.call(e)) : {};
|
|
1454
|
+
}
|
|
1455
|
+
function gi(e, t) {
|
|
1456
|
+
var n = t ? ut(e.buffer) : e.buffer;
|
|
1457
|
+
return new e.constructor(n, e.byteOffset, e.length);
|
|
1458
|
+
}
|
|
1459
|
+
var mi = "[object Boolean]", yi = "[object Date]", vi = "[object Map]", pi = "[object Number]", hi = "[object RegExp]", _i = "[object Set]", bi = "[object String]", Ti = "[object Symbol]", $i = "[object ArrayBuffer]", Ci = "[object DataView]", wi = "[object Float32Array]", Ai = "[object Float64Array]", Si = "[object Int8Array]", xi = "[object Int16Array]", Oi = "[object Int32Array]", Pi = "[object Uint8Array]", Vi = "[object Uint8ClampedArray]", Ii = "[object Uint16Array]", Ei = "[object Uint32Array]";
|
|
1460
|
+
function Mi(e, t, n) {
|
|
1461
|
+
var r = e.constructor;
|
|
1462
|
+
switch (t) {
|
|
1463
|
+
case $i:
|
|
1464
|
+
return ut(e);
|
|
1465
|
+
case mi:
|
|
1466
|
+
case yi:
|
|
1467
|
+
return new r(+e);
|
|
1468
|
+
case Ci:
|
|
1469
|
+
return ui(e, n);
|
|
1470
|
+
case wi:
|
|
1471
|
+
case Ai:
|
|
1472
|
+
case Si:
|
|
1473
|
+
case xi:
|
|
1474
|
+
case Oi:
|
|
1475
|
+
case Pi:
|
|
1476
|
+
case Vi:
|
|
1477
|
+
case Ii:
|
|
1478
|
+
case Ei:
|
|
1479
|
+
return gi(e, n);
|
|
1480
|
+
case vi:
|
|
1481
|
+
return new r();
|
|
1482
|
+
case pi:
|
|
1483
|
+
case bi:
|
|
1484
|
+
return new r(e);
|
|
1485
|
+
case hi:
|
|
1486
|
+
return fi(e);
|
|
1487
|
+
case _i:
|
|
1488
|
+
return new r();
|
|
1489
|
+
case Ti:
|
|
1490
|
+
return di(e);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
function Li(e) {
|
|
1494
|
+
return typeof e.constructor == "function" && !at(e) ? ga(On(e)) : {};
|
|
1495
|
+
}
|
|
1496
|
+
var Bi = "[object Map]";
|
|
1497
|
+
function Fi(e) {
|
|
1498
|
+
return q(e) && F(e) == Bi;
|
|
1499
|
+
}
|
|
1500
|
+
var Wt = re && re.isMap, Di = Wt ? st(Wt) : Fi, ji = "[object Set]";
|
|
1501
|
+
function ki(e) {
|
|
1502
|
+
return q(e) && F(e) == ji;
|
|
1503
|
+
}
|
|
1504
|
+
var Kt = re && re.isSet, Ri = Kt ? st(Kt) : ki, Ni = 1, Ui = 2, zi = 4, Mn = "[object Arguments]", Hi = "[object Array]", Gi = "[object Boolean]", Wi = "[object Date]", Ki = "[object Error]", Ln = "[object Function]", qi = "[object GeneratorFunction]", Yi = "[object Map]", Xi = "[object Number]", Bn = "[object Object]", Zi = "[object RegExp]", Ji = "[object Set]", Qi = "[object String]", eo = "[object Symbol]", to = "[object WeakMap]", no = "[object ArrayBuffer]", ro = "[object DataView]", ao = "[object Float32Array]", so = "[object Float64Array]", io = "[object Int8Array]", oo = "[object Int16Array]", lo = "[object Int32Array]", uo = "[object Uint8Array]", co = "[object Uint8ClampedArray]", fo = "[object Uint16Array]", go = "[object Uint32Array]", b = {};
|
|
1505
|
+
b[Mn] = b[Hi] = b[no] = b[ro] = b[Gi] = b[Wi] = b[ao] = b[so] = b[io] = b[oo] = b[lo] = b[Yi] = b[Xi] = b[Bn] = b[Zi] = b[Ji] = b[Qi] = b[eo] = b[uo] = b[co] = b[fo] = b[go] = !0;
|
|
1506
|
+
b[Ki] = b[Ln] = b[to] = !1;
|
|
1507
|
+
function Ae(e, t, n, r, i, a) {
|
|
1508
|
+
var o, f = t & Ni, l = t & Ui, c = t & zi;
|
|
1509
|
+
if (o !== void 0)
|
|
1510
|
+
return o;
|
|
1511
|
+
if (!he(e))
|
|
1512
|
+
return e;
|
|
1513
|
+
var y = de(e);
|
|
1514
|
+
if (y) {
|
|
1515
|
+
if (o = li(e), !f)
|
|
1516
|
+
return ma(e, o);
|
|
1517
|
+
} else {
|
|
1518
|
+
var d = F(e), v = d == Ln || d == qi;
|
|
1519
|
+
if (Se(e))
|
|
1520
|
+
return Ws(e, f);
|
|
1521
|
+
if (d == Bn || d == Mn || v && !i) {
|
|
1522
|
+
if (o = l || v ? {} : Li(e), !f)
|
|
1523
|
+
return l ? Js(e, Hs(o, e)) : Xs(e, zs(o, e));
|
|
1524
|
+
} else {
|
|
1525
|
+
if (!b[d])
|
|
1526
|
+
return i ? e : {};
|
|
1527
|
+
o = Mi(e, d, f);
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
a || (a = new N());
|
|
1531
|
+
var T = a.get(e);
|
|
1532
|
+
if (T)
|
|
1533
|
+
return T;
|
|
1534
|
+
a.set(e, o), Ri(e) ? e.forEach(function(A) {
|
|
1535
|
+
o.add(Ae(A, t, n, A, e, a));
|
|
1536
|
+
}) : Di(e) && e.forEach(function(A, x) {
|
|
1537
|
+
o.set(x, Ae(A, t, n, x, e, a));
|
|
1538
|
+
});
|
|
1539
|
+
var h = c ? l ? Qs : Ge : l ? ot : it, $ = y ? void 0 : h(e);
|
|
1540
|
+
return ya($ || e, function(A, x) {
|
|
1541
|
+
$ && (x = A, A = e[x]), hn(o, x, Ae(A, t, n, x, e, a));
|
|
1542
|
+
}), o;
|
|
1543
|
+
}
|
|
1544
|
+
var mo = 1, yo = 4;
|
|
1545
|
+
function qt(e) {
|
|
1546
|
+
return Ae(e, mo | yo);
|
|
1547
|
+
}
|
|
1548
|
+
var vo = "__lodash_hash_undefined__";
|
|
1549
|
+
function po(e) {
|
|
1550
|
+
return this.__data__.set(e, vo), this;
|
|
1551
|
+
}
|
|
1552
|
+
function ho(e) {
|
|
1553
|
+
return this.__data__.has(e);
|
|
1554
|
+
}
|
|
1555
|
+
function Oe(e) {
|
|
1556
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
1557
|
+
for (this.__data__ = new Q(); ++t < n; )
|
|
1558
|
+
this.add(e[t]);
|
|
1559
|
+
}
|
|
1560
|
+
Oe.prototype.add = Oe.prototype.push = po;
|
|
1561
|
+
Oe.prototype.has = ho;
|
|
1562
|
+
function _o(e, t) {
|
|
1563
|
+
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
1564
|
+
if (t(e[n], n, e))
|
|
1565
|
+
return !0;
|
|
1566
|
+
return !1;
|
|
1567
|
+
}
|
|
1568
|
+
function bo(e, t) {
|
|
1569
|
+
return e.has(t);
|
|
1570
|
+
}
|
|
1571
|
+
var To = 1, $o = 2;
|
|
1572
|
+
function Fn(e, t, n, r, i, a) {
|
|
1573
|
+
var o = n & To, f = e.length, l = t.length;
|
|
1574
|
+
if (f != l && !(o && l > f))
|
|
1575
|
+
return !1;
|
|
1576
|
+
var c = a.get(e), y = a.get(t);
|
|
1577
|
+
if (c && y)
|
|
1578
|
+
return c == t && y == e;
|
|
1579
|
+
var d = -1, v = !0, T = n & $o ? new Oe() : void 0;
|
|
1580
|
+
for (a.set(e, t), a.set(t, e); ++d < f; ) {
|
|
1581
|
+
var h = e[d], $ = t[d];
|
|
1582
|
+
if (r)
|
|
1583
|
+
var A = o ? r($, h, d, t, e, a) : r(h, $, d, e, t, a);
|
|
1584
|
+
if (A !== void 0) {
|
|
1585
|
+
if (A)
|
|
1586
|
+
continue;
|
|
1587
|
+
v = !1;
|
|
1588
|
+
break;
|
|
1589
|
+
}
|
|
1590
|
+
if (T) {
|
|
1591
|
+
if (!_o(t, function(x, B) {
|
|
1592
|
+
if (!bo(T, B) && (h === x || i(h, x, n, r, a)))
|
|
1593
|
+
return T.push(B);
|
|
1594
|
+
})) {
|
|
1595
|
+
v = !1;
|
|
1596
|
+
break;
|
|
1597
|
+
}
|
|
1598
|
+
} else if (!(h === $ || i(h, $, n, r, a))) {
|
|
1599
|
+
v = !1;
|
|
1600
|
+
break;
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
return a.delete(e), a.delete(t), v;
|
|
1604
|
+
}
|
|
1605
|
+
function Co(e) {
|
|
1606
|
+
var t = -1, n = Array(e.size);
|
|
1607
|
+
return e.forEach(function(r, i) {
|
|
1608
|
+
n[++t] = [i, r];
|
|
1609
|
+
}), n;
|
|
1610
|
+
}
|
|
1611
|
+
function wo(e) {
|
|
1612
|
+
var t = -1, n = Array(e.size);
|
|
1613
|
+
return e.forEach(function(r) {
|
|
1614
|
+
n[++t] = r;
|
|
1615
|
+
}), n;
|
|
1616
|
+
}
|
|
1617
|
+
var Ao = 1, So = 2, xo = "[object Boolean]", Oo = "[object Date]", Po = "[object Error]", Vo = "[object Map]", Io = "[object Number]", Eo = "[object RegExp]", Mo = "[object Set]", Lo = "[object String]", Bo = "[object Symbol]", Fo = "[object ArrayBuffer]", Do = "[object DataView]", Yt = H ? H.prototype : void 0, ke = Yt ? Yt.valueOf : void 0;
|
|
1618
|
+
function jo(e, t, n, r, i, a, o) {
|
|
1619
|
+
switch (n) {
|
|
1620
|
+
case Do:
|
|
1621
|
+
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
1622
|
+
return !1;
|
|
1623
|
+
e = e.buffer, t = t.buffer;
|
|
1624
|
+
case Fo:
|
|
1625
|
+
return !(e.byteLength != t.byteLength || !a(new xe(e), new xe(t)));
|
|
1626
|
+
case xo:
|
|
1627
|
+
case Oo:
|
|
1628
|
+
case Io:
|
|
1629
|
+
return rt(+e, +t);
|
|
1630
|
+
case Po:
|
|
1631
|
+
return e.name == t.name && e.message == t.message;
|
|
1632
|
+
case Eo:
|
|
1633
|
+
case Lo:
|
|
1634
|
+
return e == t + "";
|
|
1635
|
+
case Vo:
|
|
1636
|
+
var f = Co;
|
|
1637
|
+
case Mo:
|
|
1638
|
+
var l = r & Ao;
|
|
1639
|
+
if (f || (f = wo), e.size != t.size && !l)
|
|
1640
|
+
return !1;
|
|
1641
|
+
var c = o.get(e);
|
|
1642
|
+
if (c)
|
|
1643
|
+
return c == t;
|
|
1644
|
+
r |= So, o.set(e, t);
|
|
1645
|
+
var y = Fn(f(e), f(t), r, i, a, o);
|
|
1646
|
+
return o.delete(e), y;
|
|
1647
|
+
case Bo:
|
|
1648
|
+
if (ke)
|
|
1649
|
+
return ke.call(e) == ke.call(t);
|
|
1650
|
+
}
|
|
1651
|
+
return !1;
|
|
1652
|
+
}
|
|
1653
|
+
var ko = 1, Ro = Object.prototype, No = Ro.hasOwnProperty;
|
|
1654
|
+
function Uo(e, t, n, r, i, a) {
|
|
1655
|
+
var o = n & ko, f = Ge(e), l = f.length, c = Ge(t), y = c.length;
|
|
1656
|
+
if (l != y && !o)
|
|
1657
|
+
return !1;
|
|
1658
|
+
for (var d = l; d--; ) {
|
|
1659
|
+
var v = f[d];
|
|
1660
|
+
if (!(o ? v in t : No.call(t, v)))
|
|
1661
|
+
return !1;
|
|
1662
|
+
}
|
|
1663
|
+
var T = a.get(e), h = a.get(t);
|
|
1664
|
+
if (T && h)
|
|
1665
|
+
return T == t && h == e;
|
|
1666
|
+
var $ = !0;
|
|
1667
|
+
a.set(e, t), a.set(t, e);
|
|
1668
|
+
for (var A = o; ++d < l; ) {
|
|
1669
|
+
v = f[d];
|
|
1670
|
+
var x = e[v], B = t[v];
|
|
1671
|
+
if (r)
|
|
1672
|
+
var _e = o ? r(B, x, v, t, e, a) : r(x, B, v, e, t, a);
|
|
1673
|
+
if (!(_e === void 0 ? x === B || i(x, B, n, r, a) : _e)) {
|
|
1674
|
+
$ = !1;
|
|
1675
|
+
break;
|
|
1676
|
+
}
|
|
1677
|
+
A || (A = v == "constructor");
|
|
1678
|
+
}
|
|
1679
|
+
if ($ && !A) {
|
|
1680
|
+
var G = e.constructor, ee = t.constructor;
|
|
1681
|
+
G != ee && "constructor" in e && "constructor" in t && !(typeof G == "function" && G instanceof G && typeof ee == "function" && ee instanceof ee) && ($ = !1);
|
|
1682
|
+
}
|
|
1683
|
+
return a.delete(e), a.delete(t), $;
|
|
1684
|
+
}
|
|
1685
|
+
var zo = 1, Xt = "[object Arguments]", Zt = "[object Array]", $e = "[object Object]", Ho = Object.prototype, Jt = Ho.hasOwnProperty;
|
|
1686
|
+
function Go(e, t, n, r, i, a) {
|
|
1687
|
+
var o = de(e), f = de(t), l = o ? Zt : F(e), c = f ? Zt : F(t);
|
|
1688
|
+
l = l == Xt ? $e : l, c = c == Xt ? $e : c;
|
|
1689
|
+
var y = l == $e, d = c == $e, v = l == c;
|
|
1690
|
+
if (v && Se(e)) {
|
|
1691
|
+
if (!Se(t))
|
|
1692
|
+
return !1;
|
|
1693
|
+
o = !0, y = !1;
|
|
1694
|
+
}
|
|
1695
|
+
if (v && !y)
|
|
1696
|
+
return a || (a = new N()), o || wn(e) ? Fn(e, t, n, r, i, a) : jo(e, t, l, n, r, i, a);
|
|
1697
|
+
if (!(n & zo)) {
|
|
1698
|
+
var T = y && Jt.call(e, "__wrapped__"), h = d && Jt.call(t, "__wrapped__");
|
|
1699
|
+
if (T || h) {
|
|
1700
|
+
var $ = T ? e.value() : e, A = h ? t.value() : t;
|
|
1701
|
+
return a || (a = new N()), i($, A, n, r, a);
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
return v ? (a || (a = new N()), Uo(e, t, n, r, i, a)) : !1;
|
|
1705
|
+
}
|
|
1706
|
+
function Dn(e, t, n, r, i) {
|
|
1707
|
+
return e === t ? !0 : e == null || t == null || !q(e) && !q(t) ? e !== e && t !== t : Go(e, t, n, r, Dn, i);
|
|
1708
|
+
}
|
|
1709
|
+
function Ce(e, t) {
|
|
1710
|
+
return Dn(e, t);
|
|
1711
|
+
}
|
|
1712
|
+
const Wo = /* @__PURE__ */ L({
|
|
983
1713
|
__name: "index",
|
|
984
1714
|
props: {
|
|
985
1715
|
unique: {},
|
|
@@ -988,76 +1718,123 @@ const Jt = /* @__PURE__ */ w({
|
|
|
988
1718
|
},
|
|
989
1719
|
emits: ["change"],
|
|
990
1720
|
setup(e, { emit: t }) {
|
|
991
|
-
const { t: n } =
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1721
|
+
const { t: n } = tt(), { backgroundColor1: r, backgroundColor2: i } = nt(), a = e, o = t, f = M("20px"), l = M("56px"), c = M("200px"), y = Qt({}), d = (g, s) => {
|
|
1722
|
+
T(), o("change", g, s);
|
|
1723
|
+
}, v = M({}), T = () => {
|
|
1724
|
+
if (!a.config || !a.object) {
|
|
1725
|
+
v.value = {};
|
|
1726
|
+
return;
|
|
1727
|
+
}
|
|
1728
|
+
const g = (u, m, O, p) => {
|
|
1729
|
+
if (u = qt(u), u.push(m.key), p[m.key] || (p[m.key] = {}), m.ui) {
|
|
1730
|
+
if (Ce(u, ["basic", "id"]) || Ce(u, ["basic", "name"]))
|
|
1731
|
+
return !1;
|
|
1732
|
+
const S = !Ce(m.default, O[m.key]);
|
|
1733
|
+
return p[m.key].__change__ = S, S;
|
|
1734
|
+
} else if (m.array) {
|
|
1735
|
+
const S = !Ce(m.default, O[m.key]);
|
|
1736
|
+
return p[m.key].__change__ = S, S;
|
|
1737
|
+
} else {
|
|
1738
|
+
let S = !1;
|
|
1739
|
+
return m.children.forEach((C) => {
|
|
1740
|
+
g(u, C, O[m.key], p[m.key]) && (S = !0);
|
|
1741
|
+
}), p[m.key].__change__ = S, S;
|
|
1742
|
+
}
|
|
1743
|
+
}, s = {};
|
|
1744
|
+
a.config.forEach((u) => {
|
|
1745
|
+
g([], u, a.object, s);
|
|
1746
|
+
}), v.value = s;
|
|
1747
|
+
};
|
|
1748
|
+
Ne([() => a.unique, () => a.config, () => a.object], () => {
|
|
1749
|
+
T();
|
|
1750
|
+
});
|
|
1751
|
+
const h = (g) => {
|
|
1752
|
+
let s = v.value;
|
|
1753
|
+
return g.forEach((u) => {
|
|
1754
|
+
if (s = s[u], !s)
|
|
1755
|
+
return console.assert(!1, "isPropChanged unpkg failed"), !1;
|
|
1756
|
+
}), s.__change__ ?? !1;
|
|
1757
|
+
}, $ = (g, s, u, m) => (g = qt(g), g.push(s.key), s.ui ? s.array ? B(g, s, u) : _e(g, s, u) : s.array ? A(g, s, u, m) : x(g, s, u, m)), A = (g, s, u, m) => {
|
|
1758
|
+
if (s.ui)
|
|
1759
|
+
return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
|
|
1760
|
+
if (!s.array)
|
|
1761
|
+
return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
|
|
1762
|
+
u[s.key] instanceof Array || (u[s.key] = k(s), d(g, u[s.key]));
|
|
1763
|
+
let O = n(s.name);
|
|
1764
|
+
h(g) && (O += " *");
|
|
1765
|
+
const p = _(wt, {
|
|
1766
|
+
title: O,
|
|
1767
|
+
collapse: (typeof m.collapse != "boolean" && (m.collapse = !0), m.collapse),
|
|
1768
|
+
onCollapse: (C) => {
|
|
1769
|
+
m.collapse = C;
|
|
998
1770
|
},
|
|
999
1771
|
onCreate: () => {
|
|
1000
|
-
|
|
1772
|
+
u[s.key].push({}), d(g, u[s.key]);
|
|
1001
1773
|
}
|
|
1002
|
-
}),
|
|
1774
|
+
}), S = _(
|
|
1003
1775
|
"div",
|
|
1004
1776
|
{
|
|
1005
1777
|
style: {
|
|
1006
|
-
paddingLeft:
|
|
1778
|
+
paddingLeft: f.value
|
|
1007
1779
|
}
|
|
1008
1780
|
},
|
|
1009
1781
|
(() => {
|
|
1010
|
-
|
|
1011
|
-
for (let
|
|
1012
|
-
typeof
|
|
1782
|
+
m[s.key] instanceof Array || (m[s.key] = []);
|
|
1783
|
+
for (let C = 0; C < u[s.key].length; C++)
|
|
1784
|
+
typeof m[s.key][C] != "object" && (m[s.key][C] = {
|
|
1013
1785
|
collapse: !0
|
|
1014
1786
|
});
|
|
1015
1787
|
return [];
|
|
1016
1788
|
})()
|
|
1017
1789
|
);
|
|
1018
|
-
return
|
|
1790
|
+
return _(
|
|
1019
1791
|
"div",
|
|
1020
1792
|
{
|
|
1021
1793
|
style: {
|
|
1022
|
-
background:
|
|
1794
|
+
background: i.value,
|
|
1023
1795
|
marginBottom: "1px"
|
|
1024
1796
|
}
|
|
1025
1797
|
},
|
|
1026
1798
|
(() => {
|
|
1027
|
-
const
|
|
1028
|
-
return
|
|
1799
|
+
const C = [];
|
|
1800
|
+
return C.push(p), m.collapse || C.push(S), C;
|
|
1029
1801
|
})()
|
|
1030
1802
|
);
|
|
1031
|
-
},
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1803
|
+
}, x = (g, s, u, m) => {
|
|
1804
|
+
if (s.ui)
|
|
1805
|
+
return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
|
|
1806
|
+
if (s.array)
|
|
1807
|
+
return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
|
|
1808
|
+
let O = n(s.name);
|
|
1809
|
+
h(g) && (O += " *");
|
|
1810
|
+
const p = _(wt, {
|
|
1811
|
+
title: O,
|
|
1812
|
+
collapse: St(m, g),
|
|
1813
|
+
onCollapse: (C) => {
|
|
1814
|
+
Nr(m, g, C);
|
|
1037
1815
|
}
|
|
1038
|
-
}),
|
|
1816
|
+
}), S = _(
|
|
1039
1817
|
"div",
|
|
1040
1818
|
{
|
|
1041
1819
|
style: {
|
|
1042
|
-
background:
|
|
1043
|
-
paddingLeft:
|
|
1820
|
+
background: r.value,
|
|
1821
|
+
paddingLeft: f.value
|
|
1044
1822
|
}
|
|
1045
1823
|
},
|
|
1046
1824
|
(() => {
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
v
|
|
1825
|
+
const C = [];
|
|
1826
|
+
return s.children.forEach((Be) => {
|
|
1827
|
+
const jn = $(
|
|
1828
|
+
g,
|
|
1829
|
+
Be,
|
|
1830
|
+
(typeof u[s.key] != "object" && (u[s.key] = {}, d(g, u[s.key])), u[s.key]),
|
|
1831
|
+
m
|
|
1055
1832
|
);
|
|
1056
|
-
|
|
1057
|
-
}),
|
|
1833
|
+
C.push(jn);
|
|
1834
|
+
}), C;
|
|
1058
1835
|
})()
|
|
1059
1836
|
);
|
|
1060
|
-
return
|
|
1837
|
+
return _(
|
|
1061
1838
|
"div",
|
|
1062
1839
|
{
|
|
1063
1840
|
style: {
|
|
@@ -1065,40 +1842,44 @@ const Jt = /* @__PURE__ */ w({
|
|
|
1065
1842
|
}
|
|
1066
1843
|
},
|
|
1067
1844
|
(() => {
|
|
1068
|
-
const
|
|
1069
|
-
return
|
|
1845
|
+
const C = [];
|
|
1846
|
+
return C.push(p), St(m, g) || C.push(S), C;
|
|
1070
1847
|
})()
|
|
1071
1848
|
);
|
|
1072
|
-
},
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1849
|
+
}, B = (g, s, u) => {
|
|
1850
|
+
if (!s.ui)
|
|
1851
|
+
return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
|
|
1852
|
+
if (!s.array)
|
|
1853
|
+
return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
|
|
1854
|
+
u[s.key] instanceof Array || (u[s.key] = k(s), d(g, u[s.key]));
|
|
1855
|
+
let m = () => [];
|
|
1856
|
+
return s.ui === "strInput" ? m = () => {
|
|
1857
|
+
const O = [];
|
|
1858
|
+
for (let S = 0; S < u[s.key].length; S++) {
|
|
1859
|
+
const C = _(
|
|
1079
1860
|
"div",
|
|
1080
1861
|
{
|
|
1081
1862
|
class: "d-flex align-center justify-center",
|
|
1082
1863
|
style: {
|
|
1083
|
-
height:
|
|
1864
|
+
height: l.value
|
|
1084
1865
|
}
|
|
1085
1866
|
},
|
|
1086
1867
|
[
|
|
1087
|
-
|
|
1088
|
-
modelValue:
|
|
1089
|
-
"onUpdate:modelValue": (
|
|
1090
|
-
|
|
1868
|
+
_(At, {
|
|
1869
|
+
modelValue: u[s.key][S],
|
|
1870
|
+
"onUpdate:modelValue": (Be) => {
|
|
1871
|
+
u[s.key][S] = Be, d(g, u[s.key]);
|
|
1091
1872
|
},
|
|
1092
1873
|
hasDelete: !0,
|
|
1093
1874
|
onDelete: () => {
|
|
1094
|
-
|
|
1875
|
+
u[s.key].splice(S, 1), d(g, u[s.key]);
|
|
1095
1876
|
}
|
|
1096
1877
|
})
|
|
1097
1878
|
]
|
|
1098
1879
|
);
|
|
1099
|
-
|
|
1880
|
+
O.push(C);
|
|
1100
1881
|
}
|
|
1101
|
-
const
|
|
1882
|
+
const p = _(
|
|
1102
1883
|
"div",
|
|
1103
1884
|
{
|
|
1104
1885
|
class: "d-flex align-center justify-center",
|
|
@@ -1112,96 +1893,103 @@ const Jt = /* @__PURE__ */ w({
|
|
|
1112
1893
|
border: "thin dashed #bdbdbd"
|
|
1113
1894
|
},
|
|
1114
1895
|
onClick: () => {
|
|
1115
|
-
|
|
1896
|
+
u[s.key].push(""), d(g, u[s.key]);
|
|
1116
1897
|
}
|
|
1117
1898
|
},
|
|
1118
|
-
[
|
|
1899
|
+
[_(Ir, { icon: sn })]
|
|
1119
1900
|
);
|
|
1120
|
-
return
|
|
1121
|
-
} : console.assert(!1, "
|
|
1122
|
-
},
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1901
|
+
return O.push(p), O;
|
|
1902
|
+
} : console.assert(!1, "renderLeafArray not implemented"), G(g, s, m());
|
|
1903
|
+
}, _e = (g, s, u) => {
|
|
1904
|
+
if (!s.ui)
|
|
1905
|
+
return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
|
|
1906
|
+
if (s.array)
|
|
1907
|
+
return console.assert(!1), _("div", "renderLeafScalar prop array must be invalid");
|
|
1908
|
+
let m = () => [];
|
|
1909
|
+
return s.ui === "dummy" ? u[s.key] === void 0 && (u[s.key] = k(s), d(g, u[s.key])) : s.ui === "strInput" ? m = () => [_(At, {
|
|
1910
|
+
modelValue: s.static ? s.value : (typeof u[s.key] != "string" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1911
|
+
"onUpdate:modelValue": (p) => {
|
|
1912
|
+
s.static || p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1128
1913
|
},
|
|
1129
1914
|
readonly: s.static || s.readonly
|
|
1130
|
-
})] : s.ui === "numInput" ?
|
|
1131
|
-
modelValue: (typeof
|
|
1132
|
-
"onUpdate:modelValue": (
|
|
1133
|
-
|
|
1915
|
+
})] : s.ui === "numInput" ? m = () => [_(jr, {
|
|
1916
|
+
modelValue: (typeof u[s.key] != "number" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1917
|
+
"onUpdate:modelValue": (p) => {
|
|
1918
|
+
p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1134
1919
|
},
|
|
1135
1920
|
readonly: s.readonly
|
|
1136
|
-
})] : s.ui === "switch" ?
|
|
1137
|
-
modelValue: (typeof
|
|
1138
|
-
"onUpdate:modelValue": (
|
|
1139
|
-
|
|
1921
|
+
})] : s.ui === "switch" ? m = () => [_(Rr, {
|
|
1922
|
+
modelValue: (typeof u[s.key] != "boolean" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1923
|
+
"onUpdate:modelValue": (p) => {
|
|
1924
|
+
p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1140
1925
|
},
|
|
1141
1926
|
readonly: s.readonly
|
|
1142
|
-
})] : s.ui === "select" ?
|
|
1143
|
-
modelValue: (typeof
|
|
1144
|
-
"onUpdate:modelValue": (
|
|
1145
|
-
|
|
1927
|
+
})] : s.ui === "select" ? m = () => [_(kr, {
|
|
1928
|
+
modelValue: (typeof u[s.key] != "string" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1929
|
+
"onUpdate:modelValue": (p) => {
|
|
1930
|
+
p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1146
1931
|
},
|
|
1147
1932
|
items: (() => {
|
|
1148
|
-
const
|
|
1149
|
-
return s.items.forEach(({ title:
|
|
1150
|
-
|
|
1151
|
-
title: n(
|
|
1152
|
-
value:
|
|
1933
|
+
const p = [];
|
|
1934
|
+
return s.items.forEach(({ title: S, value: C }) => {
|
|
1935
|
+
p.push({
|
|
1936
|
+
title: n(S),
|
|
1937
|
+
value: C
|
|
1153
1938
|
});
|
|
1154
|
-
}),
|
|
1939
|
+
}), p;
|
|
1155
1940
|
})(),
|
|
1156
1941
|
readonly: s.readonly
|
|
1157
|
-
})] : s.ui === "colorPicker" ?
|
|
1158
|
-
modelValue: (typeof
|
|
1159
|
-
"onUpdate:modelValue": (
|
|
1160
|
-
|
|
1942
|
+
})] : s.ui === "colorPicker" ? m = () => [_(Lr, {
|
|
1943
|
+
modelValue: (typeof u[s.key] != "string" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1944
|
+
"onUpdate:modelValue": (p) => {
|
|
1945
|
+
p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1161
1946
|
},
|
|
1162
1947
|
readonly: s.readonly
|
|
1163
|
-
})] : s.ui === "multiTypes" ?
|
|
1164
|
-
modelValue: (typeof
|
|
1165
|
-
"onUpdate:modelValue": (
|
|
1166
|
-
|
|
1948
|
+
})] : s.ui === "multiTypes" ? m = () => [_(Dr, {
|
|
1949
|
+
modelValue: (typeof u[s.key] != "string" && (u[s.key] = k(s), d(g, u[s.key])), u[s.key]),
|
|
1950
|
+
"onUpdate:modelValue": (p) => {
|
|
1951
|
+
p !== u[s.key] && (u[s.key] = p, d(g, u[s.key]));
|
|
1167
1952
|
},
|
|
1168
1953
|
types: s.types
|
|
1169
|
-
})] : s.ui === "compSelect" ?
|
|
1170
|
-
},
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1954
|
+
})] : s.ui === "compSelect" ? m = () => [_(Br, {})] : console.assert(!1, "renderLeafScalar not implemented"), G(g, s, m());
|
|
1955
|
+
}, G = (g, s, u) => {
|
|
1956
|
+
let m = n(s.name);
|
|
1957
|
+
return h(g) && (m += " *"), _(
|
|
1958
|
+
Er,
|
|
1959
|
+
{
|
|
1960
|
+
minHeight: l.value
|
|
1961
|
+
},
|
|
1962
|
+
() => [
|
|
1963
|
+
_("span", { class: "ml-1", innerHTML: m }),
|
|
1964
|
+
_("div", { style: { width: c.value } }, u)
|
|
1965
|
+
]
|
|
1966
|
+
);
|
|
1967
|
+
}, ee = () => _(
|
|
1180
1968
|
"div",
|
|
1181
1969
|
{
|
|
1182
1970
|
class: "text-body-2"
|
|
1183
1971
|
},
|
|
1184
1972
|
(() => {
|
|
1185
|
-
const
|
|
1186
|
-
if (
|
|
1187
|
-
|
|
1188
|
-
const s =
|
|
1189
|
-
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1973
|
+
const g = [];
|
|
1974
|
+
if (a.unique && a.config && a.object) {
|
|
1975
|
+
y[a.unique] || (y[a.unique] = {});
|
|
1976
|
+
const s = y[a.unique];
|
|
1977
|
+
a.config.forEach((u) => {
|
|
1978
|
+
const m = $([], u, a.object, s);
|
|
1979
|
+
g.push(m);
|
|
1192
1980
|
});
|
|
1193
1981
|
}
|
|
1194
|
-
return
|
|
1982
|
+
return g;
|
|
1195
1983
|
})()
|
|
1196
1984
|
);
|
|
1197
|
-
return (
|
|
1198
|
-
|
|
1199
|
-
|
|
1985
|
+
return (g, s) => (E(), ye(Ye, null, [
|
|
1986
|
+
P(ee),
|
|
1987
|
+
P(Mr)
|
|
1200
1988
|
], 64));
|
|
1201
1989
|
}
|
|
1202
|
-
}),
|
|
1203
|
-
e.component("XPropTree",
|
|
1204
|
-
},
|
|
1990
|
+
}), Ko = (e) => {
|
|
1991
|
+
e.component("XPropTree", Wo);
|
|
1992
|
+
}, Jo = { install: Ko };
|
|
1205
1993
|
export {
|
|
1206
|
-
|
|
1994
|
+
Jo as default
|
|
1207
1995
|
};
|