@vue-dnd-kit/core 0.0.10 → 0.0.11
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.cjs.js +1 -22
- package/dist/index.esm.js +303 -2548
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,2310 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
7
|
-
// @__NO_SIDE_EFFECTS__
|
|
8
|
-
function Zn(e) {
|
|
9
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
10
|
-
for (const n of e.split(","))
|
|
11
|
-
t[n] = 1;
|
|
12
|
-
return (n) => n in t;
|
|
13
|
-
}
|
|
14
|
-
const z = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Xn = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], me = () => {
|
|
15
|
-
}, Qn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
16
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), A = Object.assign, kn = (e, t) => {
|
|
17
|
-
const n = e.indexOf(t);
|
|
18
|
-
n > -1 && e.splice(n, 1);
|
|
19
|
-
}, er = Object.prototype.hasOwnProperty, S = (e, t) => er.call(e, t), N = Array.isArray, Ee = (e) => Xe(e) === "[object Map]", tr = (e) => Xe(e) === "[object Set]", D = (e) => typeof e == "function", F = (e) => typeof e == "string", Te = (e) => typeof e == "symbol", T = (e) => e !== null && typeof e == "object", nr = (e) => (T(e) || D(e)) && D(e.then) && D(e.catch), rr = Object.prototype.toString, Xe = (e) => rr.call(e), dn = (e) => Xe(e).slice(8, -1), sr = (e) => Xe(e) === "[object Object]", bt = (e) => F(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, xt = (e) => {
|
|
20
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
21
|
-
return (n) => t[n] || (t[n] = e(n));
|
|
22
|
-
}, or = /-(\w)/g, Ke = xt(
|
|
23
|
-
(e) => e.replace(or, (t, n) => n ? n.toUpperCase() : "")
|
|
24
|
-
), De = xt((e) => e.charAt(0).toUpperCase() + e.slice(1)), ir = xt(
|
|
25
|
-
(e) => e ? `on${De(e)}` : ""
|
|
26
|
-
), oe = (e, t) => !Object.is(e, t), cr = (e, t, n, s = !1) => {
|
|
27
|
-
Object.defineProperty(e, t, {
|
|
28
|
-
configurable: !0,
|
|
29
|
-
enumerable: !1,
|
|
30
|
-
writable: s,
|
|
31
|
-
value: n
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
let Qt;
|
|
35
|
-
const Qe = () => Qt || (Qt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
36
|
-
function Pe(e) {
|
|
37
|
-
if (N(e)) {
|
|
38
|
-
const t = {};
|
|
39
|
-
for (let n = 0; n < e.length; n++) {
|
|
40
|
-
const s = e[n], r = F(s) ? fr(s) : Pe(s);
|
|
41
|
-
if (r)
|
|
42
|
-
for (const o in r)
|
|
43
|
-
t[o] = r[o];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
} else if (F(e) || T(e))
|
|
47
|
-
return e;
|
|
48
|
-
}
|
|
49
|
-
const lr = /;(?![^(]*\))/g, ar = /:([^]+)/, ur = /\/\*[^]*?\*\//g;
|
|
50
|
-
function fr(e) {
|
|
51
|
-
const t = {};
|
|
52
|
-
return e.replace(ur, "").split(lr).forEach((n) => {
|
|
53
|
-
if (n) {
|
|
54
|
-
const s = n.split(ar);
|
|
55
|
-
s.length > 1 && (t[s[0].trim()] = s[1].trim());
|
|
56
|
-
}
|
|
57
|
-
}), t;
|
|
58
|
-
}
|
|
59
|
-
function Ot(e) {
|
|
60
|
-
let t = "";
|
|
61
|
-
if (F(e))
|
|
62
|
-
t = e;
|
|
63
|
-
else if (N(e))
|
|
64
|
-
for (let n = 0; n < e.length; n++) {
|
|
65
|
-
const s = Ot(e[n]);
|
|
66
|
-
s && (t += s + " ");
|
|
67
|
-
}
|
|
68
|
-
else if (T(e))
|
|
69
|
-
for (const n in e)
|
|
70
|
-
e[n] && (t += n + " ");
|
|
71
|
-
return t.trim();
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* @vue/reactivity v3.5.13
|
|
75
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
76
|
-
* @license MIT
|
|
77
|
-
**/
|
|
78
|
-
function G(e, ...t) {
|
|
79
|
-
console.warn(`[Vue warn] ${e}`, ...t);
|
|
80
|
-
}
|
|
81
|
-
let L;
|
|
82
|
-
class dr {
|
|
83
|
-
constructor(t = !1) {
|
|
84
|
-
this.detached = t, this._active = !0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.parent = L, !t && L && (this.index = (L.scopes || (L.scopes = [])).push(
|
|
85
|
-
this
|
|
86
|
-
) - 1);
|
|
87
|
-
}
|
|
88
|
-
get active() {
|
|
89
|
-
return this._active;
|
|
90
|
-
}
|
|
91
|
-
pause() {
|
|
92
|
-
if (this._active) {
|
|
93
|
-
this._isPaused = !0;
|
|
94
|
-
let t, n;
|
|
95
|
-
if (this.scopes)
|
|
96
|
-
for (t = 0, n = this.scopes.length; t < n; t++)
|
|
97
|
-
this.scopes[t].pause();
|
|
98
|
-
for (t = 0, n = this.effects.length; t < n; t++)
|
|
99
|
-
this.effects[t].pause();
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Resumes the effect scope, including all child scopes and effects.
|
|
104
|
-
*/
|
|
105
|
-
resume() {
|
|
106
|
-
if (this._active && this._isPaused) {
|
|
107
|
-
this._isPaused = !1;
|
|
108
|
-
let t, n;
|
|
109
|
-
if (this.scopes)
|
|
110
|
-
for (t = 0, n = this.scopes.length; t < n; t++)
|
|
111
|
-
this.scopes[t].resume();
|
|
112
|
-
for (t = 0, n = this.effects.length; t < n; t++)
|
|
113
|
-
this.effects[t].resume();
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
run(t) {
|
|
117
|
-
if (this._active) {
|
|
118
|
-
const n = L;
|
|
119
|
-
try {
|
|
120
|
-
return L = this, t();
|
|
121
|
-
} finally {
|
|
122
|
-
L = n;
|
|
123
|
-
}
|
|
124
|
-
} else
|
|
125
|
-
process.env.NODE_ENV !== "production" && G("cannot run an inactive effect scope.");
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* This should only be called on non-detached scopes
|
|
129
|
-
* @internal
|
|
130
|
-
*/
|
|
131
|
-
on() {
|
|
132
|
-
L = this;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* This should only be called on non-detached scopes
|
|
136
|
-
* @internal
|
|
137
|
-
*/
|
|
138
|
-
off() {
|
|
139
|
-
L = this.parent;
|
|
140
|
-
}
|
|
141
|
-
stop(t) {
|
|
142
|
-
if (this._active) {
|
|
143
|
-
this._active = !1;
|
|
144
|
-
let n, s;
|
|
145
|
-
for (n = 0, s = this.effects.length; n < s; n++)
|
|
146
|
-
this.effects[n].stop();
|
|
147
|
-
for (this.effects.length = 0, n = 0, s = this.cleanups.length; n < s; n++)
|
|
148
|
-
this.cleanups[n]();
|
|
149
|
-
if (this.cleanups.length = 0, this.scopes) {
|
|
150
|
-
for (n = 0, s = this.scopes.length; n < s; n++)
|
|
151
|
-
this.scopes[n].stop(!0);
|
|
152
|
-
this.scopes.length = 0;
|
|
153
|
-
}
|
|
154
|
-
if (!this.detached && this.parent && !t) {
|
|
155
|
-
const r = this.parent.scopes.pop();
|
|
156
|
-
r && r !== this && (this.parent.scopes[this.index] = r, r.index = this.index);
|
|
157
|
-
}
|
|
158
|
-
this.parent = void 0;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
function pr(e) {
|
|
163
|
-
return new dr(e);
|
|
164
|
-
}
|
|
165
|
-
function hr() {
|
|
166
|
-
return L;
|
|
167
|
-
}
|
|
168
|
-
let w;
|
|
169
|
-
const rt = /* @__PURE__ */ new WeakSet();
|
|
170
|
-
class gr {
|
|
171
|
-
constructor(t) {
|
|
172
|
-
this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, L && L.active && L.effects.push(this);
|
|
173
|
-
}
|
|
174
|
-
pause() {
|
|
175
|
-
this.flags |= 64;
|
|
176
|
-
}
|
|
177
|
-
resume() {
|
|
178
|
-
this.flags & 64 && (this.flags &= -65, rt.has(this) && (rt.delete(this), this.trigger()));
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* @internal
|
|
182
|
-
*/
|
|
183
|
-
notify() {
|
|
184
|
-
this.flags & 2 && !(this.flags & 32) || this.flags & 8 || hn(this);
|
|
185
|
-
}
|
|
186
|
-
run() {
|
|
187
|
-
if (!(this.flags & 1))
|
|
188
|
-
return this.fn();
|
|
189
|
-
this.flags |= 2, kt(this), gn(this);
|
|
190
|
-
const t = w, n = J;
|
|
191
|
-
w = this, J = !0;
|
|
192
|
-
try {
|
|
193
|
-
return this.fn();
|
|
194
|
-
} finally {
|
|
195
|
-
process.env.NODE_ENV !== "production" && w !== this && G(
|
|
196
|
-
"Active effect was not restored correctly - this is likely a Vue internal bug."
|
|
197
|
-
), vn(this), w = t, J = n, this.flags &= -3;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
stop() {
|
|
201
|
-
if (this.flags & 1) {
|
|
202
|
-
for (let t = this.deps; t; t = t.nextDep)
|
|
203
|
-
Pt(t);
|
|
204
|
-
this.deps = this.depsTail = void 0, kt(this), this.onStop && this.onStop(), this.flags &= -2;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
trigger() {
|
|
208
|
-
this.flags & 64 ? rt.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* @internal
|
|
212
|
-
*/
|
|
213
|
-
runIfDirty() {
|
|
214
|
-
pt(this) && this.run();
|
|
215
|
-
}
|
|
216
|
-
get dirty() {
|
|
217
|
-
return pt(this);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
let pn = 0, be, xe;
|
|
221
|
-
function hn(e, t = !1) {
|
|
222
|
-
if (e.flags |= 8, t) {
|
|
223
|
-
e.next = xe, xe = e;
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
e.next = be, be = e;
|
|
227
|
-
}
|
|
228
|
-
function St() {
|
|
229
|
-
pn++;
|
|
230
|
-
}
|
|
231
|
-
function Dt() {
|
|
232
|
-
if (--pn > 0)
|
|
233
|
-
return;
|
|
234
|
-
if (xe) {
|
|
235
|
-
let t = xe;
|
|
236
|
-
for (xe = void 0; t; ) {
|
|
237
|
-
const n = t.next;
|
|
238
|
-
t.next = void 0, t.flags &= -9, t = n;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
let e;
|
|
242
|
-
for (; be; ) {
|
|
243
|
-
let t = be;
|
|
244
|
-
for (be = void 0; t; ) {
|
|
245
|
-
const n = t.next;
|
|
246
|
-
if (t.next = void 0, t.flags &= -9, t.flags & 1)
|
|
247
|
-
try {
|
|
248
|
-
t.trigger();
|
|
249
|
-
} catch (s) {
|
|
250
|
-
e || (e = s);
|
|
251
|
-
}
|
|
252
|
-
t = n;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
if (e)
|
|
256
|
-
throw e;
|
|
257
|
-
}
|
|
258
|
-
function gn(e) {
|
|
259
|
-
for (let t = e.deps; t; t = t.nextDep)
|
|
260
|
-
t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
|
|
261
|
-
}
|
|
262
|
-
function vn(e) {
|
|
263
|
-
let t, n = e.depsTail, s = n;
|
|
264
|
-
for (; s; ) {
|
|
265
|
-
const r = s.prevDep;
|
|
266
|
-
s.version === -1 ? (s === n && (n = r), Pt(s), vr(s)) : t = s, s.dep.activeLink = s.prevActiveLink, s.prevActiveLink = void 0, s = r;
|
|
267
|
-
}
|
|
268
|
-
e.deps = t, e.depsTail = n;
|
|
269
|
-
}
|
|
270
|
-
function pt(e) {
|
|
271
|
-
for (let t = e.deps; t; t = t.nextDep)
|
|
272
|
-
if (t.dep.version !== t.version || t.dep.computed && (_n(t.dep.computed) || t.dep.version !== t.version))
|
|
273
|
-
return !0;
|
|
274
|
-
return !!e._dirty;
|
|
275
|
-
}
|
|
276
|
-
function _n(e) {
|
|
277
|
-
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Ce))
|
|
278
|
-
return;
|
|
279
|
-
e.globalVersion = Ce;
|
|
280
|
-
const t = e.dep;
|
|
281
|
-
if (e.flags |= 2, t.version > 0 && !e.isSSR && e.deps && !pt(e)) {
|
|
282
|
-
e.flags &= -3;
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
const n = w, s = J;
|
|
286
|
-
w = e, J = !0;
|
|
287
|
-
try {
|
|
288
|
-
gn(e);
|
|
289
|
-
const r = e.fn(e._value);
|
|
290
|
-
(t.version === 0 || oe(r, e._value)) && (e._value = r, t.version++);
|
|
291
|
-
} catch (r) {
|
|
292
|
-
throw t.version++, r;
|
|
293
|
-
} finally {
|
|
294
|
-
w = n, J = s, vn(e), e.flags &= -3;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
function Pt(e, t = !1) {
|
|
298
|
-
const { dep: n, prevSub: s, nextSub: r } = e;
|
|
299
|
-
if (s && (s.nextSub = r, e.prevSub = void 0), r && (r.prevSub = s, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = r), n.subs === e && (n.subs = s, !s && n.computed)) {
|
|
300
|
-
n.computed.flags &= -5;
|
|
301
|
-
for (let o = n.computed.deps; o; o = o.nextDep)
|
|
302
|
-
Pt(o, !0);
|
|
303
|
-
}
|
|
304
|
-
!t && !--n.sc && n.map && n.map.delete(n.key);
|
|
305
|
-
}
|
|
306
|
-
function vr(e) {
|
|
307
|
-
const { prevDep: t, nextDep: n } = e;
|
|
308
|
-
t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
|
|
309
|
-
}
|
|
310
|
-
let J = !0;
|
|
311
|
-
const mn = [];
|
|
312
|
-
function Me() {
|
|
313
|
-
mn.push(J), J = !1;
|
|
314
|
-
}
|
|
315
|
-
function $e() {
|
|
316
|
-
const e = mn.pop();
|
|
317
|
-
J = e === void 0 ? !0 : e;
|
|
318
|
-
}
|
|
319
|
-
function kt(e) {
|
|
320
|
-
const { cleanup: t } = e;
|
|
321
|
-
if (e.cleanup = void 0, t) {
|
|
322
|
-
const n = w;
|
|
323
|
-
w = void 0;
|
|
324
|
-
try {
|
|
325
|
-
t();
|
|
326
|
-
} finally {
|
|
327
|
-
w = n;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
let Ce = 0;
|
|
332
|
-
class _r {
|
|
333
|
-
constructor(t, n) {
|
|
334
|
-
this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
class Ct {
|
|
338
|
-
constructor(t) {
|
|
339
|
-
this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
340
|
-
}
|
|
341
|
-
track(t) {
|
|
342
|
-
if (!w || !J || w === this.computed)
|
|
343
|
-
return;
|
|
344
|
-
let n = this.activeLink;
|
|
345
|
-
if (n === void 0 || n.sub !== w)
|
|
346
|
-
n = this.activeLink = new _r(w, this), w.deps ? (n.prevDep = w.depsTail, w.depsTail.nextDep = n, w.depsTail = n) : w.deps = w.depsTail = n, En(n);
|
|
347
|
-
else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
|
|
348
|
-
const s = n.nextDep;
|
|
349
|
-
s.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = s), n.prevDep = w.depsTail, n.nextDep = void 0, w.depsTail.nextDep = n, w.depsTail = n, w.deps === n && (w.deps = s);
|
|
350
|
-
}
|
|
351
|
-
return process.env.NODE_ENV !== "production" && w.onTrack && w.onTrack(
|
|
352
|
-
A(
|
|
353
|
-
{
|
|
354
|
-
effect: w
|
|
355
|
-
},
|
|
356
|
-
t
|
|
357
|
-
)
|
|
358
|
-
), n;
|
|
359
|
-
}
|
|
360
|
-
trigger(t) {
|
|
361
|
-
this.version++, Ce++, this.notify(t);
|
|
362
|
-
}
|
|
363
|
-
notify(t) {
|
|
364
|
-
St();
|
|
365
|
-
try {
|
|
366
|
-
if (process.env.NODE_ENV !== "production")
|
|
367
|
-
for (let n = this.subsHead; n; n = n.nextSub)
|
|
368
|
-
n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
|
|
369
|
-
A(
|
|
370
|
-
{
|
|
371
|
-
effect: n.sub
|
|
372
|
-
},
|
|
373
|
-
t
|
|
374
|
-
)
|
|
375
|
-
);
|
|
376
|
-
for (let n = this.subs; n; n = n.prevSub)
|
|
377
|
-
n.sub.notify() && n.sub.dep.notify();
|
|
378
|
-
} finally {
|
|
379
|
-
Dt();
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
function En(e) {
|
|
384
|
-
if (e.dep.sc++, e.sub.flags & 4) {
|
|
385
|
-
const t = e.dep.computed;
|
|
386
|
-
if (t && !e.dep.subs) {
|
|
387
|
-
t.flags |= 20;
|
|
388
|
-
for (let s = t.deps; s; s = s.nextDep)
|
|
389
|
-
En(s);
|
|
390
|
-
}
|
|
391
|
-
const n = e.dep.subs;
|
|
392
|
-
n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
const ht = /* @__PURE__ */ new WeakMap(), fe = Symbol(
|
|
396
|
-
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
397
|
-
), gt = Symbol(
|
|
398
|
-
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
399
|
-
), Re = Symbol(
|
|
400
|
-
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
401
|
-
);
|
|
402
|
-
function P(e, t, n) {
|
|
403
|
-
if (J && w) {
|
|
404
|
-
let s = ht.get(e);
|
|
405
|
-
s || ht.set(e, s = /* @__PURE__ */ new Map());
|
|
406
|
-
let r = s.get(n);
|
|
407
|
-
r || (s.set(n, r = new Ct()), r.map = s, r.key = n), process.env.NODE_ENV !== "production" ? r.track({
|
|
408
|
-
target: e,
|
|
409
|
-
type: t,
|
|
410
|
-
key: n
|
|
411
|
-
}) : r.track();
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
function ne(e, t, n, s, r, o) {
|
|
415
|
-
const i = ht.get(e);
|
|
416
|
-
if (!i) {
|
|
417
|
-
Ce++;
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
const c = (a) => {
|
|
421
|
-
a && (process.env.NODE_ENV !== "production" ? a.trigger({
|
|
422
|
-
target: e,
|
|
423
|
-
type: t,
|
|
424
|
-
key: n,
|
|
425
|
-
newValue: s,
|
|
426
|
-
oldValue: r,
|
|
427
|
-
oldTarget: o
|
|
428
|
-
}) : a.trigger());
|
|
429
|
-
};
|
|
430
|
-
if (St(), t === "clear")
|
|
431
|
-
i.forEach(c);
|
|
432
|
-
else {
|
|
433
|
-
const a = N(e), d = a && bt(n);
|
|
434
|
-
if (a && n === "length") {
|
|
435
|
-
const u = Number(s);
|
|
436
|
-
i.forEach((l, f) => {
|
|
437
|
-
(f === "length" || f === Re || !Te(f) && f >= u) && c(l);
|
|
438
|
-
});
|
|
439
|
-
} else
|
|
440
|
-
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), d && c(i.get(Re)), t) {
|
|
441
|
-
case "add":
|
|
442
|
-
a ? d && c(i.get("length")) : (c(i.get(fe)), Ee(e) && c(i.get(gt)));
|
|
443
|
-
break;
|
|
444
|
-
case "delete":
|
|
445
|
-
a || (c(i.get(fe)), Ee(e) && c(i.get(gt)));
|
|
446
|
-
break;
|
|
447
|
-
case "set":
|
|
448
|
-
Ee(e) && c(i.get(fe));
|
|
449
|
-
break;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
Dt();
|
|
453
|
-
}
|
|
454
|
-
function he(e) {
|
|
455
|
-
const t = m(e);
|
|
456
|
-
return t === e ? t : (P(t, "iterate", Re), M(e) ? t : t.map(R));
|
|
457
|
-
}
|
|
458
|
-
function ke(e) {
|
|
459
|
-
return P(e = m(e), "iterate", Re), e;
|
|
460
|
-
}
|
|
461
|
-
const mr = {
|
|
462
|
-
__proto__: null,
|
|
463
|
-
[Symbol.iterator]() {
|
|
464
|
-
return st(this, Symbol.iterator, R);
|
|
465
|
-
},
|
|
466
|
-
concat(...e) {
|
|
467
|
-
return he(this).concat(
|
|
468
|
-
...e.map((t) => N(t) ? he(t) : t)
|
|
469
|
-
);
|
|
470
|
-
},
|
|
471
|
-
entries() {
|
|
472
|
-
return st(this, "entries", (e) => (e[1] = R(e[1]), e));
|
|
473
|
-
},
|
|
474
|
-
every(e, t) {
|
|
475
|
-
return Q(this, "every", e, t, void 0, arguments);
|
|
476
|
-
},
|
|
477
|
-
filter(e, t) {
|
|
478
|
-
return Q(this, "filter", e, t, (n) => n.map(R), arguments);
|
|
479
|
-
},
|
|
480
|
-
find(e, t) {
|
|
481
|
-
return Q(this, "find", e, t, R, arguments);
|
|
482
|
-
},
|
|
483
|
-
findIndex(e, t) {
|
|
484
|
-
return Q(this, "findIndex", e, t, void 0, arguments);
|
|
485
|
-
},
|
|
486
|
-
findLast(e, t) {
|
|
487
|
-
return Q(this, "findLast", e, t, R, arguments);
|
|
488
|
-
},
|
|
489
|
-
findLastIndex(e, t) {
|
|
490
|
-
return Q(this, "findLastIndex", e, t, void 0, arguments);
|
|
491
|
-
},
|
|
492
|
-
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
493
|
-
forEach(e, t) {
|
|
494
|
-
return Q(this, "forEach", e, t, void 0, arguments);
|
|
495
|
-
},
|
|
496
|
-
includes(...e) {
|
|
497
|
-
return ot(this, "includes", e);
|
|
498
|
-
},
|
|
499
|
-
indexOf(...e) {
|
|
500
|
-
return ot(this, "indexOf", e);
|
|
501
|
-
},
|
|
502
|
-
join(e) {
|
|
503
|
-
return he(this).join(e);
|
|
504
|
-
},
|
|
505
|
-
// keys() iterator only reads `length`, no optimisation required
|
|
506
|
-
lastIndexOf(...e) {
|
|
507
|
-
return ot(this, "lastIndexOf", e);
|
|
508
|
-
},
|
|
509
|
-
map(e, t) {
|
|
510
|
-
return Q(this, "map", e, t, void 0, arguments);
|
|
511
|
-
},
|
|
512
|
-
pop() {
|
|
513
|
-
return ye(this, "pop");
|
|
514
|
-
},
|
|
515
|
-
push(...e) {
|
|
516
|
-
return ye(this, "push", e);
|
|
517
|
-
},
|
|
518
|
-
reduce(e, ...t) {
|
|
519
|
-
return en(this, "reduce", e, t);
|
|
520
|
-
},
|
|
521
|
-
reduceRight(e, ...t) {
|
|
522
|
-
return en(this, "reduceRight", e, t);
|
|
523
|
-
},
|
|
524
|
-
shift() {
|
|
525
|
-
return ye(this, "shift");
|
|
526
|
-
},
|
|
527
|
-
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
528
|
-
some(e, t) {
|
|
529
|
-
return Q(this, "some", e, t, void 0, arguments);
|
|
530
|
-
},
|
|
531
|
-
splice(...e) {
|
|
532
|
-
return ye(this, "splice", e);
|
|
533
|
-
},
|
|
534
|
-
toReversed() {
|
|
535
|
-
return he(this).toReversed();
|
|
536
|
-
},
|
|
537
|
-
toSorted(e) {
|
|
538
|
-
return he(this).toSorted(e);
|
|
539
|
-
},
|
|
540
|
-
toSpliced(...e) {
|
|
541
|
-
return he(this).toSpliced(...e);
|
|
542
|
-
},
|
|
543
|
-
unshift(...e) {
|
|
544
|
-
return ye(this, "unshift", e);
|
|
545
|
-
},
|
|
546
|
-
values() {
|
|
547
|
-
return st(this, "values", R);
|
|
548
|
-
}
|
|
549
|
-
};
|
|
550
|
-
function st(e, t, n) {
|
|
551
|
-
const s = ke(e), r = s[t]();
|
|
552
|
-
return s !== e && !M(e) && (r._next = r.next, r.next = () => {
|
|
553
|
-
const o = r._next();
|
|
554
|
-
return o.value && (o.value = n(o.value)), o;
|
|
555
|
-
}), r;
|
|
556
|
-
}
|
|
557
|
-
const Er = Array.prototype;
|
|
558
|
-
function Q(e, t, n, s, r, o) {
|
|
559
|
-
const i = ke(e), c = i !== e && !M(e), a = i[t];
|
|
560
|
-
if (a !== Er[t]) {
|
|
561
|
-
const l = a.apply(e, o);
|
|
562
|
-
return c ? R(l) : l;
|
|
563
|
-
}
|
|
564
|
-
let d = n;
|
|
565
|
-
i !== e && (c ? d = function(l, f) {
|
|
566
|
-
return n.call(this, R(l), f, e);
|
|
567
|
-
} : n.length > 2 && (d = function(l, f) {
|
|
568
|
-
return n.call(this, l, f, e);
|
|
569
|
-
}));
|
|
570
|
-
const u = a.call(i, d, s);
|
|
571
|
-
return c && r ? r(u) : u;
|
|
572
|
-
}
|
|
573
|
-
function en(e, t, n, s) {
|
|
574
|
-
const r = ke(e);
|
|
575
|
-
let o = n;
|
|
576
|
-
return r !== e && (M(e) ? n.length > 3 && (o = function(i, c, a) {
|
|
577
|
-
return n.call(this, i, c, a, e);
|
|
578
|
-
}) : o = function(i, c, a) {
|
|
579
|
-
return n.call(this, i, R(c), a, e);
|
|
580
|
-
}), r[t](o, ...s);
|
|
581
|
-
}
|
|
582
|
-
function ot(e, t, n) {
|
|
583
|
-
const s = m(e);
|
|
584
|
-
P(s, "iterate", Re);
|
|
585
|
-
const r = s[t](...n);
|
|
586
|
-
return (r === -1 || r === !1) && Ue(n[0]) ? (n[0] = m(n[0]), s[t](...n)) : r;
|
|
587
|
-
}
|
|
588
|
-
function ye(e, t, n = []) {
|
|
589
|
-
Me(), St();
|
|
590
|
-
const s = m(e)[t].apply(e, n);
|
|
591
|
-
return Dt(), $e(), s;
|
|
592
|
-
}
|
|
593
|
-
const wr = /* @__PURE__ */ Zn("__proto__,__v_isRef,__isVue"), wn = new Set(
|
|
594
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Te)
|
|
595
|
-
);
|
|
596
|
-
function yr(e) {
|
|
597
|
-
Te(e) || (e = String(e));
|
|
598
|
-
const t = m(this);
|
|
599
|
-
return P(t, "has", e), t.hasOwnProperty(e);
|
|
600
|
-
}
|
|
601
|
-
class yn {
|
|
602
|
-
constructor(t = !1, n = !1) {
|
|
603
|
-
this._isReadonly = t, this._isShallow = n;
|
|
604
|
-
}
|
|
605
|
-
get(t, n, s) {
|
|
606
|
-
if (n === "__v_skip")
|
|
607
|
-
return t.__v_skip;
|
|
608
|
-
const r = this._isReadonly, o = this._isShallow;
|
|
609
|
-
if (n === "__v_isReactive")
|
|
610
|
-
return !r;
|
|
611
|
-
if (n === "__v_isReadonly")
|
|
612
|
-
return r;
|
|
613
|
-
if (n === "__v_isShallow")
|
|
614
|
-
return o;
|
|
615
|
-
if (n === "__v_raw")
|
|
616
|
-
return s === (r ? o ? On : xn : o ? Vr : bn).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
617
|
-
// this means the receiver is a user proxy of the reactive proxy
|
|
618
|
-
Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
|
|
619
|
-
const i = N(t);
|
|
620
|
-
if (!r) {
|
|
621
|
-
let a;
|
|
622
|
-
if (i && (a = mr[n]))
|
|
623
|
-
return a;
|
|
624
|
-
if (n === "hasOwnProperty")
|
|
625
|
-
return yr;
|
|
626
|
-
}
|
|
627
|
-
const c = Reflect.get(
|
|
628
|
-
t,
|
|
629
|
-
n,
|
|
630
|
-
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
631
|
-
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
632
|
-
// its class methods
|
|
633
|
-
$(t) ? t : s
|
|
634
|
-
);
|
|
635
|
-
return (Te(n) ? wn.has(n) : wr(n)) || (r || P(t, "get", n), o) ? c : $(c) ? i && bt(n) ? c : c.value : T(c) ? r ? Dn(c) : Sn(c) : c;
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
class Nr extends yn {
|
|
639
|
-
constructor(t = !1) {
|
|
640
|
-
super(!1, t);
|
|
641
|
-
}
|
|
642
|
-
set(t, n, s, r) {
|
|
643
|
-
let o = t[n];
|
|
644
|
-
if (!this._isShallow) {
|
|
645
|
-
const a = ee(o);
|
|
646
|
-
if (!M(s) && !ee(s) && (o = m(o), s = m(s)), !N(t) && $(o) && !$(s))
|
|
647
|
-
return a ? !1 : (o.value = s, !0);
|
|
648
|
-
}
|
|
649
|
-
const i = N(t) && bt(n) ? Number(n) < t.length : S(t, n), c = Reflect.set(
|
|
650
|
-
t,
|
|
651
|
-
n,
|
|
652
|
-
s,
|
|
653
|
-
$(t) ? t : r
|
|
654
|
-
);
|
|
655
|
-
return t === m(r) && (i ? oe(s, o) && ne(t, "set", n, s, o) : ne(t, "add", n, s)), c;
|
|
656
|
-
}
|
|
657
|
-
deleteProperty(t, n) {
|
|
658
|
-
const s = S(t, n), r = t[n], o = Reflect.deleteProperty(t, n);
|
|
659
|
-
return o && s && ne(t, "delete", n, void 0, r), o;
|
|
660
|
-
}
|
|
661
|
-
has(t, n) {
|
|
662
|
-
const s = Reflect.has(t, n);
|
|
663
|
-
return (!Te(n) || !wn.has(n)) && P(t, "has", n), s;
|
|
664
|
-
}
|
|
665
|
-
ownKeys(t) {
|
|
666
|
-
return P(
|
|
667
|
-
t,
|
|
668
|
-
"iterate",
|
|
669
|
-
N(t) ? "length" : fe
|
|
670
|
-
), Reflect.ownKeys(t);
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
class Nn extends yn {
|
|
674
|
-
constructor(t = !1) {
|
|
675
|
-
super(!0, t);
|
|
676
|
-
}
|
|
677
|
-
set(t, n) {
|
|
678
|
-
return process.env.NODE_ENV !== "production" && G(
|
|
679
|
-
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
680
|
-
t
|
|
681
|
-
), !0;
|
|
682
|
-
}
|
|
683
|
-
deleteProperty(t, n) {
|
|
684
|
-
return process.env.NODE_ENV !== "production" && G(
|
|
685
|
-
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
686
|
-
t
|
|
687
|
-
), !0;
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
const br = /* @__PURE__ */ new Nr(), xr = /* @__PURE__ */ new Nn(), Or = /* @__PURE__ */ new Nn(!0), vt = (e) => e, Ae = (e) => Reflect.getPrototypeOf(e);
|
|
691
|
-
function Sr(e, t, n) {
|
|
692
|
-
return function(...s) {
|
|
693
|
-
const r = this.__v_raw, o = m(r), i = Ee(o), c = e === "entries" || e === Symbol.iterator && i, a = e === "keys" && i, d = r[e](...s), u = n ? vt : t ? _t : R;
|
|
694
|
-
return !t && P(
|
|
695
|
-
o,
|
|
696
|
-
"iterate",
|
|
697
|
-
a ? gt : fe
|
|
698
|
-
), {
|
|
699
|
-
// iterator protocol
|
|
700
|
-
next() {
|
|
701
|
-
const { value: l, done: f } = d.next();
|
|
702
|
-
return f ? { value: l, done: f } : {
|
|
703
|
-
value: c ? [u(l[0]), u(l[1])] : u(l),
|
|
704
|
-
done: f
|
|
705
|
-
};
|
|
706
|
-
},
|
|
707
|
-
// iterable protocol
|
|
708
|
-
[Symbol.iterator]() {
|
|
709
|
-
return this;
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
function He(e) {
|
|
715
|
-
return function(...t) {
|
|
716
|
-
if (process.env.NODE_ENV !== "production") {
|
|
717
|
-
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
718
|
-
G(
|
|
719
|
-
`${De(e)} operation ${n}failed: target is readonly.`,
|
|
720
|
-
m(this)
|
|
721
|
-
);
|
|
722
|
-
}
|
|
723
|
-
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
function Dr(e, t) {
|
|
727
|
-
const n = {
|
|
728
|
-
get(r) {
|
|
729
|
-
const o = this.__v_raw, i = m(o), c = m(r);
|
|
730
|
-
e || (oe(r, c) && P(i, "get", r), P(i, "get", c));
|
|
731
|
-
const { has: a } = Ae(i), d = t ? vt : e ? _t : R;
|
|
732
|
-
if (a.call(i, r))
|
|
733
|
-
return d(o.get(r));
|
|
734
|
-
if (a.call(i, c))
|
|
735
|
-
return d(o.get(c));
|
|
736
|
-
o !== i && o.get(r);
|
|
737
|
-
},
|
|
738
|
-
get size() {
|
|
739
|
-
const r = this.__v_raw;
|
|
740
|
-
return !e && P(m(r), "iterate", fe), Reflect.get(r, "size", r);
|
|
741
|
-
},
|
|
742
|
-
has(r) {
|
|
743
|
-
const o = this.__v_raw, i = m(o), c = m(r);
|
|
744
|
-
return e || (oe(r, c) && P(i, "has", r), P(i, "has", c)), r === c ? o.has(r) : o.has(r) || o.has(c);
|
|
745
|
-
},
|
|
746
|
-
forEach(r, o) {
|
|
747
|
-
const i = this, c = i.__v_raw, a = m(c), d = t ? vt : e ? _t : R;
|
|
748
|
-
return !e && P(a, "iterate", fe), c.forEach((u, l) => r.call(o, d(u), d(l), i));
|
|
749
|
-
}
|
|
750
|
-
};
|
|
751
|
-
return A(
|
|
752
|
-
n,
|
|
753
|
-
e ? {
|
|
754
|
-
add: He("add"),
|
|
755
|
-
set: He("set"),
|
|
756
|
-
delete: He("delete"),
|
|
757
|
-
clear: He("clear")
|
|
758
|
-
} : {
|
|
759
|
-
add(r) {
|
|
760
|
-
!t && !M(r) && !ee(r) && (r = m(r));
|
|
761
|
-
const o = m(this);
|
|
762
|
-
return Ae(o).has.call(o, r) || (o.add(r), ne(o, "add", r, r)), this;
|
|
763
|
-
},
|
|
764
|
-
set(r, o) {
|
|
765
|
-
!t && !M(o) && !ee(o) && (o = m(o));
|
|
766
|
-
const i = m(this), { has: c, get: a } = Ae(i);
|
|
767
|
-
let d = c.call(i, r);
|
|
768
|
-
d ? process.env.NODE_ENV !== "production" && tn(i, c, r) : (r = m(r), d = c.call(i, r));
|
|
769
|
-
const u = a.call(i, r);
|
|
770
|
-
return i.set(r, o), d ? oe(o, u) && ne(i, "set", r, o, u) : ne(i, "add", r, o), this;
|
|
771
|
-
},
|
|
772
|
-
delete(r) {
|
|
773
|
-
const o = m(this), { has: i, get: c } = Ae(o);
|
|
774
|
-
let a = i.call(o, r);
|
|
775
|
-
a ? process.env.NODE_ENV !== "production" && tn(o, i, r) : (r = m(r), a = i.call(o, r));
|
|
776
|
-
const d = c ? c.call(o, r) : void 0, u = o.delete(r);
|
|
777
|
-
return a && ne(o, "delete", r, void 0, d), u;
|
|
778
|
-
},
|
|
779
|
-
clear() {
|
|
780
|
-
const r = m(this), o = r.size !== 0, i = process.env.NODE_ENV !== "production" ? Ee(r) ? new Map(r) : new Set(r) : void 0, c = r.clear();
|
|
781
|
-
return o && ne(
|
|
782
|
-
r,
|
|
783
|
-
"clear",
|
|
784
|
-
void 0,
|
|
785
|
-
void 0,
|
|
786
|
-
i
|
|
787
|
-
), c;
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
), [
|
|
791
|
-
"keys",
|
|
792
|
-
"values",
|
|
793
|
-
"entries",
|
|
794
|
-
Symbol.iterator
|
|
795
|
-
].forEach((r) => {
|
|
796
|
-
n[r] = Sr(r, e, t);
|
|
797
|
-
}), n;
|
|
798
|
-
}
|
|
799
|
-
function Rt(e, t) {
|
|
800
|
-
const n = Dr(e, t);
|
|
801
|
-
return (s, r, o) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(
|
|
802
|
-
S(n, r) && r in s ? n : s,
|
|
803
|
-
r,
|
|
804
|
-
o
|
|
805
|
-
);
|
|
806
|
-
}
|
|
807
|
-
const Pr = {
|
|
808
|
-
get: /* @__PURE__ */ Rt(!1, !1)
|
|
809
|
-
}, Cr = {
|
|
810
|
-
get: /* @__PURE__ */ Rt(!0, !1)
|
|
811
|
-
}, Rr = {
|
|
812
|
-
get: /* @__PURE__ */ Rt(!0, !0)
|
|
813
|
-
};
|
|
814
|
-
function tn(e, t, n) {
|
|
815
|
-
const s = m(n);
|
|
816
|
-
if (s !== n && t.call(e, s)) {
|
|
817
|
-
const r = dn(e);
|
|
818
|
-
G(
|
|
819
|
-
`Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
820
|
-
);
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
const bn = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap();
|
|
824
|
-
function Ir(e) {
|
|
825
|
-
switch (e) {
|
|
826
|
-
case "Object":
|
|
827
|
-
case "Array":
|
|
828
|
-
return 1;
|
|
829
|
-
case "Map":
|
|
830
|
-
case "Set":
|
|
831
|
-
case "WeakMap":
|
|
832
|
-
case "WeakSet":
|
|
833
|
-
return 2;
|
|
834
|
-
default:
|
|
835
|
-
return 0;
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
function Tr(e) {
|
|
839
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 : Ir(dn(e));
|
|
840
|
-
}
|
|
841
|
-
function Sn(e) {
|
|
842
|
-
return ee(e) ? e : Vt(
|
|
843
|
-
e,
|
|
844
|
-
!1,
|
|
845
|
-
br,
|
|
846
|
-
Pr,
|
|
847
|
-
bn
|
|
848
|
-
);
|
|
849
|
-
}
|
|
850
|
-
function Dn(e) {
|
|
851
|
-
return Vt(
|
|
852
|
-
e,
|
|
853
|
-
!0,
|
|
854
|
-
xr,
|
|
855
|
-
Cr,
|
|
856
|
-
xn
|
|
857
|
-
);
|
|
858
|
-
}
|
|
859
|
-
function Le(e) {
|
|
860
|
-
return Vt(
|
|
861
|
-
e,
|
|
862
|
-
!0,
|
|
863
|
-
Or,
|
|
864
|
-
Rr,
|
|
865
|
-
On
|
|
866
|
-
);
|
|
867
|
-
}
|
|
868
|
-
function Vt(e, t, n, s, r) {
|
|
869
|
-
if (!T(e))
|
|
870
|
-
return process.env.NODE_ENV !== "production" && G(
|
|
871
|
-
`value cannot be made ${t ? "readonly" : "reactive"}: ${String(
|
|
872
|
-
e
|
|
873
|
-
)}`
|
|
874
|
-
), e;
|
|
875
|
-
if (e.__v_raw && !(t && e.__v_isReactive))
|
|
876
|
-
return e;
|
|
877
|
-
const o = r.get(e);
|
|
878
|
-
if (o)
|
|
879
|
-
return o;
|
|
880
|
-
const i = Tr(e);
|
|
881
|
-
if (i === 0)
|
|
882
|
-
return e;
|
|
883
|
-
const c = new Proxy(
|
|
884
|
-
e,
|
|
885
|
-
i === 2 ? s : n
|
|
886
|
-
);
|
|
887
|
-
return r.set(e, c), c;
|
|
888
|
-
}
|
|
889
|
-
function de(e) {
|
|
890
|
-
return ee(e) ? de(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
891
|
-
}
|
|
892
|
-
function ee(e) {
|
|
893
|
-
return !!(e && e.__v_isReadonly);
|
|
894
|
-
}
|
|
895
|
-
function M(e) {
|
|
896
|
-
return !!(e && e.__v_isShallow);
|
|
897
|
-
}
|
|
898
|
-
function Ue(e) {
|
|
899
|
-
return e ? !!e.__v_raw : !1;
|
|
900
|
-
}
|
|
901
|
-
function m(e) {
|
|
902
|
-
const t = e && e.__v_raw;
|
|
903
|
-
return t ? m(t) : e;
|
|
904
|
-
}
|
|
905
|
-
function Pn(e) {
|
|
906
|
-
return !S(e, "__v_skip") && Object.isExtensible(e) && cr(e, "__v_skip", !0), e;
|
|
907
|
-
}
|
|
908
|
-
const R = (e) => T(e) ? Sn(e) : e, _t = (e) => T(e) ? Dn(e) : e;
|
|
909
|
-
function $(e) {
|
|
910
|
-
return e ? e.__v_isRef === !0 : !1;
|
|
911
|
-
}
|
|
912
|
-
function I(e) {
|
|
913
|
-
return Mr(e, !1);
|
|
914
|
-
}
|
|
915
|
-
function Mr(e, t) {
|
|
916
|
-
return $(e) ? e : new $r(e, t);
|
|
917
|
-
}
|
|
918
|
-
class $r {
|
|
919
|
-
constructor(t, n) {
|
|
920
|
-
this.dep = new Ct(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : m(t), this._value = n ? t : R(t), this.__v_isShallow = n;
|
|
921
|
-
}
|
|
922
|
-
get value() {
|
|
923
|
-
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
924
|
-
target: this,
|
|
925
|
-
type: "get",
|
|
926
|
-
key: "value"
|
|
927
|
-
}) : this.dep.track(), this._value;
|
|
928
|
-
}
|
|
929
|
-
set value(t) {
|
|
930
|
-
const n = this._rawValue, s = this.__v_isShallow || M(t) || ee(t);
|
|
931
|
-
t = s ? t : m(t), oe(t, n) && (this._rawValue = t, this._value = s ? t : R(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
932
|
-
target: this,
|
|
933
|
-
type: "set",
|
|
934
|
-
key: "value",
|
|
935
|
-
newValue: t,
|
|
936
|
-
oldValue: n
|
|
937
|
-
}) : this.dep.trigger());
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
function mt(e) {
|
|
941
|
-
return $(e) ? e.value : e;
|
|
942
|
-
}
|
|
943
|
-
const Ar = {
|
|
944
|
-
get: (e, t, n) => t === "__v_raw" ? e : mt(Reflect.get(e, t, n)),
|
|
945
|
-
set: (e, t, n, s) => {
|
|
946
|
-
const r = e[t];
|
|
947
|
-
return $(r) && !$(n) ? (r.value = n, !0) : Reflect.set(e, t, n, s);
|
|
948
|
-
}
|
|
949
|
-
};
|
|
950
|
-
function Hr(e) {
|
|
951
|
-
return de(e) ? e : new Proxy(e, Ar);
|
|
952
|
-
}
|
|
953
|
-
class Lr {
|
|
954
|
-
constructor(t, n, s) {
|
|
955
|
-
this.fn = t, this.setter = n, this._value = void 0, this.dep = new Ct(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Ce - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = s;
|
|
956
|
-
}
|
|
957
|
-
/**
|
|
958
|
-
* @internal
|
|
959
|
-
*/
|
|
960
|
-
notify() {
|
|
961
|
-
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
962
|
-
w !== this)
|
|
963
|
-
return hn(this, !0), !0;
|
|
964
|
-
process.env.NODE_ENV;
|
|
965
|
-
}
|
|
966
|
-
get value() {
|
|
967
|
-
const t = process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
968
|
-
target: this,
|
|
969
|
-
type: "get",
|
|
970
|
-
key: "value"
|
|
971
|
-
}) : this.dep.track();
|
|
972
|
-
return _n(this), t && (t.version = this.dep.version), this._value;
|
|
973
|
-
}
|
|
974
|
-
set value(t) {
|
|
975
|
-
this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && G("Write operation failed: computed value is readonly");
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
function Fr(e, t, n = !1) {
|
|
979
|
-
let s, r;
|
|
980
|
-
D(e) ? s = e : (s = e.get, r = e.set);
|
|
981
|
-
const o = new Lr(s, r, n);
|
|
982
|
-
return process.env.NODE_ENV !== "production" && t && !n && (o.onTrack = t.onTrack, o.onTrigger = t.onTrigger), o;
|
|
983
|
-
}
|
|
984
|
-
const Fe = {}, Ye = /* @__PURE__ */ new WeakMap();
|
|
985
|
-
let ue;
|
|
986
|
-
function jr(e, t = !1, n = ue) {
|
|
987
|
-
if (n) {
|
|
988
|
-
let s = Ye.get(n);
|
|
989
|
-
s || Ye.set(n, s = []), s.push(e);
|
|
990
|
-
} else
|
|
991
|
-
process.env.NODE_ENV !== "production" && !t && G(
|
|
992
|
-
"onWatcherCleanup() was called when there was no active watcher to associate with."
|
|
993
|
-
);
|
|
994
|
-
}
|
|
995
|
-
function zr(e, t, n = z) {
|
|
996
|
-
const { immediate: s, deep: r, once: o, scheduler: i, augmentJob: c, call: a } = n, d = (v) => {
|
|
997
|
-
(n.onWarn || G)(
|
|
998
|
-
"Invalid watch source: ",
|
|
999
|
-
v,
|
|
1000
|
-
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
1001
|
-
);
|
|
1002
|
-
}, u = (v) => r ? v : M(v) || r === !1 || r === 0 ? re(v, 1) : re(v);
|
|
1003
|
-
let l, f, h, p, E = !1, x = !1;
|
|
1004
|
-
if ($(e) ? (f = () => e.value, E = M(e)) : de(e) ? (f = () => u(e), E = !0) : N(e) ? (x = !0, E = e.some((v) => de(v) || M(v)), f = () => e.map((v) => {
|
|
1005
|
-
if ($(v))
|
|
1006
|
-
return v.value;
|
|
1007
|
-
if (de(v))
|
|
1008
|
-
return u(v);
|
|
1009
|
-
if (D(v))
|
|
1010
|
-
return a ? a(v, 2) : v();
|
|
1011
|
-
process.env.NODE_ENV !== "production" && d(v);
|
|
1012
|
-
})) : D(e) ? t ? f = a ? () => a(e, 2) : e : f = () => {
|
|
1013
|
-
if (h) {
|
|
1014
|
-
Me();
|
|
1015
|
-
try {
|
|
1016
|
-
h();
|
|
1017
|
-
} finally {
|
|
1018
|
-
$e();
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
const v = ue;
|
|
1022
|
-
ue = l;
|
|
1023
|
-
try {
|
|
1024
|
-
return a ? a(e, 3, [p]) : e(p);
|
|
1025
|
-
} finally {
|
|
1026
|
-
ue = v;
|
|
1027
|
-
}
|
|
1028
|
-
} : (f = me, process.env.NODE_ENV !== "production" && d(e)), t && r) {
|
|
1029
|
-
const v = f, j = r === !0 ? 1 / 0 : r;
|
|
1030
|
-
f = () => re(v(), j);
|
|
1031
|
-
}
|
|
1032
|
-
const b = hr(), C = () => {
|
|
1033
|
-
l.stop(), b && b.active && kn(b.effects, l);
|
|
1034
|
-
};
|
|
1035
|
-
if (o && t) {
|
|
1036
|
-
const v = t;
|
|
1037
|
-
t = (...j) => {
|
|
1038
|
-
v(...j), C();
|
|
1039
|
-
};
|
|
1040
|
-
}
|
|
1041
|
-
let O = x ? new Array(e.length).fill(Fe) : Fe;
|
|
1042
|
-
const H = (v) => {
|
|
1043
|
-
if (!(!(l.flags & 1) || !l.dirty && !v))
|
|
1044
|
-
if (t) {
|
|
1045
|
-
const j = l.run();
|
|
1046
|
-
if (r || E || (x ? j.some((Z, B) => oe(Z, O[B])) : oe(j, O))) {
|
|
1047
|
-
h && h();
|
|
1048
|
-
const Z = ue;
|
|
1049
|
-
ue = l;
|
|
1050
|
-
try {
|
|
1051
|
-
const B = [
|
|
1052
|
-
j,
|
|
1053
|
-
// pass undefined as the old value when it's changed for the first time
|
|
1054
|
-
O === Fe ? void 0 : x && O[0] === Fe ? [] : O,
|
|
1055
|
-
p
|
|
1056
|
-
];
|
|
1057
|
-
a ? a(t, 3, B) : (
|
|
1058
|
-
// @ts-expect-error
|
|
1059
|
-
t(...B)
|
|
1060
|
-
), O = j;
|
|
1061
|
-
} finally {
|
|
1062
|
-
ue = Z;
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
} else
|
|
1066
|
-
l.run();
|
|
1067
|
-
};
|
|
1068
|
-
return c && c(H), l = new gr(f), l.scheduler = i ? () => i(H, !1) : H, p = (v) => jr(v, !1, l), h = l.onStop = () => {
|
|
1069
|
-
const v = Ye.get(l);
|
|
1070
|
-
if (v) {
|
|
1071
|
-
if (a)
|
|
1072
|
-
a(v, 4);
|
|
1073
|
-
else
|
|
1074
|
-
for (const j of v)
|
|
1075
|
-
j();
|
|
1076
|
-
Ye.delete(l);
|
|
1077
|
-
}
|
|
1078
|
-
}, process.env.NODE_ENV !== "production" && (l.onTrack = n.onTrack, l.onTrigger = n.onTrigger), t ? s ? H(!0) : O = l.run() : i ? i(H.bind(null, !0), !0) : l.run(), C.pause = l.pause.bind(l), C.resume = l.resume.bind(l), C.stop = C, C;
|
|
1079
|
-
}
|
|
1080
|
-
function re(e, t = 1 / 0, n) {
|
|
1081
|
-
if (t <= 0 || !T(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
|
|
1082
|
-
return e;
|
|
1083
|
-
if (n.add(e), t--, $(e))
|
|
1084
|
-
re(e.value, t, n);
|
|
1085
|
-
else if (N(e))
|
|
1086
|
-
for (let s = 0; s < e.length; s++)
|
|
1087
|
-
re(e[s], t, n);
|
|
1088
|
-
else if (tr(e) || Ee(e))
|
|
1089
|
-
e.forEach((s) => {
|
|
1090
|
-
re(s, t, n);
|
|
1091
|
-
});
|
|
1092
|
-
else if (sr(e)) {
|
|
1093
|
-
for (const s in e)
|
|
1094
|
-
re(e[s], t, n);
|
|
1095
|
-
for (const s of Object.getOwnPropertySymbols(e))
|
|
1096
|
-
Object.prototype.propertyIsEnumerable.call(e, s) && re(e[s], t, n);
|
|
1097
|
-
}
|
|
1098
|
-
return e;
|
|
1099
|
-
}
|
|
1100
|
-
/**
|
|
1101
|
-
* @vue/runtime-core v3.5.13
|
|
1102
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1103
|
-
* @license MIT
|
|
1104
|
-
**/
|
|
1105
|
-
const pe = [];
|
|
1106
|
-
function Wr(e) {
|
|
1107
|
-
pe.push(e);
|
|
1108
|
-
}
|
|
1109
|
-
function Kr() {
|
|
1110
|
-
pe.pop();
|
|
1111
|
-
}
|
|
1112
|
-
let it = !1;
|
|
1113
|
-
function y(e, ...t) {
|
|
1114
|
-
if (it)
|
|
1115
|
-
return;
|
|
1116
|
-
it = !0, Me();
|
|
1117
|
-
const n = pe.length ? pe[pe.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Ur();
|
|
1118
|
-
if (s)
|
|
1119
|
-
et(
|
|
1120
|
-
s,
|
|
1121
|
-
n,
|
|
1122
|
-
11,
|
|
1123
|
-
[
|
|
1124
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
1125
|
-
e + t.map((o) => {
|
|
1126
|
-
var i, c;
|
|
1127
|
-
return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
|
|
1128
|
-
}).join(""),
|
|
1129
|
-
n && n.proxy,
|
|
1130
|
-
r.map(
|
|
1131
|
-
({ vnode: o }) => `at <${qn(n, o.type)}>`
|
|
1132
|
-
).join(`
|
|
1133
|
-
`),
|
|
1134
|
-
r
|
|
1135
|
-
]
|
|
1136
|
-
);
|
|
1137
|
-
else {
|
|
1138
|
-
const o = [`[Vue warn]: ${e}`, ...t];
|
|
1139
|
-
r.length && o.push(`
|
|
1140
|
-
`, ...Yr(r)), console.warn(...o);
|
|
1141
|
-
}
|
|
1142
|
-
$e(), it = !1;
|
|
1143
|
-
}
|
|
1144
|
-
function Ur() {
|
|
1145
|
-
let e = pe[pe.length - 1];
|
|
1146
|
-
if (!e)
|
|
1147
|
-
return [];
|
|
1148
|
-
const t = [];
|
|
1149
|
-
for (; e; ) {
|
|
1150
|
-
const n = t[0];
|
|
1151
|
-
n && n.vnode === e ? n.recurseCount++ : t.push({
|
|
1152
|
-
vnode: e,
|
|
1153
|
-
recurseCount: 0
|
|
1154
|
-
});
|
|
1155
|
-
const s = e.component && e.component.parent;
|
|
1156
|
-
e = s && s.vnode;
|
|
1157
|
-
}
|
|
1158
|
-
return t;
|
|
1159
|
-
}
|
|
1160
|
-
function Yr(e) {
|
|
1161
|
-
const t = [];
|
|
1162
|
-
return e.forEach((n, s) => {
|
|
1163
|
-
t.push(...s === 0 ? [] : [`
|
|
1164
|
-
`], ...Jr(n));
|
|
1165
|
-
}), t;
|
|
1166
|
-
}
|
|
1167
|
-
function Jr({ vnode: e, recurseCount: t }) {
|
|
1168
|
-
const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${qn(
|
|
1169
|
-
e.component,
|
|
1170
|
-
e.type,
|
|
1171
|
-
s
|
|
1172
|
-
)}`, o = ">" + n;
|
|
1173
|
-
return e.props ? [r, ...Br(e.props), o] : [r + o];
|
|
1174
|
-
}
|
|
1175
|
-
function Br(e) {
|
|
1176
|
-
const t = [], n = Object.keys(e);
|
|
1177
|
-
return n.slice(0, 3).forEach((s) => {
|
|
1178
|
-
t.push(...Cn(s, e[s]));
|
|
1179
|
-
}), n.length > 3 && t.push(" ..."), t;
|
|
1180
|
-
}
|
|
1181
|
-
function Cn(e, t, n) {
|
|
1182
|
-
return F(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : $(t) ? (t = Cn(e, m(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : D(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = m(t), n ? t : [`${e}=`, t]);
|
|
1183
|
-
}
|
|
1184
|
-
const It = {
|
|
1185
|
-
sp: "serverPrefetch hook",
|
|
1186
|
-
bc: "beforeCreate hook",
|
|
1187
|
-
c: "created hook",
|
|
1188
|
-
bm: "beforeMount hook",
|
|
1189
|
-
m: "mounted hook",
|
|
1190
|
-
bu: "beforeUpdate hook",
|
|
1191
|
-
u: "updated",
|
|
1192
|
-
bum: "beforeUnmount hook",
|
|
1193
|
-
um: "unmounted hook",
|
|
1194
|
-
a: "activated hook",
|
|
1195
|
-
da: "deactivated hook",
|
|
1196
|
-
ec: "errorCaptured hook",
|
|
1197
|
-
rtc: "renderTracked hook",
|
|
1198
|
-
rtg: "renderTriggered hook",
|
|
1199
|
-
0: "setup function",
|
|
1200
|
-
1: "render function",
|
|
1201
|
-
2: "watcher getter",
|
|
1202
|
-
3: "watcher callback",
|
|
1203
|
-
4: "watcher cleanup function",
|
|
1204
|
-
5: "native event handler",
|
|
1205
|
-
6: "component event handler",
|
|
1206
|
-
7: "vnode hook",
|
|
1207
|
-
8: "directive hook",
|
|
1208
|
-
9: "transition hook",
|
|
1209
|
-
10: "app errorHandler",
|
|
1210
|
-
11: "app warnHandler",
|
|
1211
|
-
12: "ref function",
|
|
1212
|
-
13: "async component loader",
|
|
1213
|
-
14: "scheduler flush",
|
|
1214
|
-
15: "component update",
|
|
1215
|
-
16: "app unmount cleanup function"
|
|
1216
|
-
};
|
|
1217
|
-
function et(e, t, n, s) {
|
|
1218
|
-
try {
|
|
1219
|
-
return s ? e(...s) : e();
|
|
1220
|
-
} catch (r) {
|
|
1221
|
-
Mt(r, t, n);
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
function Tt(e, t, n, s) {
|
|
1225
|
-
if (D(e)) {
|
|
1226
|
-
const r = et(e, t, n, s);
|
|
1227
|
-
return r && nr(r) && r.catch((o) => {
|
|
1228
|
-
Mt(o, t, n);
|
|
1229
|
-
}), r;
|
|
1230
|
-
}
|
|
1231
|
-
if (N(e)) {
|
|
1232
|
-
const r = [];
|
|
1233
|
-
for (let o = 0; o < e.length; o++)
|
|
1234
|
-
r.push(Tt(e[o], t, n, s));
|
|
1235
|
-
return r;
|
|
1236
|
-
} else
|
|
1237
|
-
process.env.NODE_ENV !== "production" && y(
|
|
1238
|
-
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
|
|
1239
|
-
);
|
|
1240
|
-
}
|
|
1241
|
-
function Mt(e, t, n, s = !0) {
|
|
1242
|
-
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config || z;
|
|
1243
|
-
if (t) {
|
|
1244
|
-
let c = t.parent;
|
|
1245
|
-
const a = t.proxy, d = process.env.NODE_ENV !== "production" ? It[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1246
|
-
for (; c; ) {
|
|
1247
|
-
const u = c.ec;
|
|
1248
|
-
if (u) {
|
|
1249
|
-
for (let l = 0; l < u.length; l++)
|
|
1250
|
-
if (u[l](e, a, d) === !1)
|
|
1251
|
-
return;
|
|
1252
|
-
}
|
|
1253
|
-
c = c.parent;
|
|
1254
|
-
}
|
|
1255
|
-
if (o) {
|
|
1256
|
-
Me(), et(o, null, 10, [
|
|
1257
|
-
e,
|
|
1258
|
-
a,
|
|
1259
|
-
d
|
|
1260
|
-
]), $e();
|
|
1261
|
-
return;
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
qr(e, n, r, s, i);
|
|
1265
|
-
}
|
|
1266
|
-
function qr(e, t, n, s = !0, r = !1) {
|
|
1267
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1268
|
-
const o = It[t];
|
|
1269
|
-
if (n && Wr(n), y(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Kr(), s)
|
|
1270
|
-
throw e;
|
|
1271
|
-
console.error(e);
|
|
1272
|
-
} else {
|
|
1273
|
-
if (r)
|
|
1274
|
-
throw e;
|
|
1275
|
-
console.error(e);
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
const W = [];
|
|
1279
|
-
let k = -1;
|
|
1280
|
-
const we = [];
|
|
1281
|
-
let te = null, ge = 0;
|
|
1282
|
-
const Rn = /* @__PURE__ */ Promise.resolve();
|
|
1283
|
-
let Je = null;
|
|
1284
|
-
const Gr = 100;
|
|
1285
|
-
function Zr(e) {
|
|
1286
|
-
const t = Je || Rn;
|
|
1287
|
-
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
1288
|
-
}
|
|
1289
|
-
function Xr(e) {
|
|
1290
|
-
let t = k + 1, n = W.length;
|
|
1291
|
-
for (; t < n; ) {
|
|
1292
|
-
const s = t + n >>> 1, r = W[s], o = Ve(r);
|
|
1293
|
-
o < e || o === e && r.flags & 2 ? t = s + 1 : n = s;
|
|
1294
|
-
}
|
|
1295
|
-
return t;
|
|
1296
|
-
}
|
|
1297
|
-
function $t(e) {
|
|
1298
|
-
if (!(e.flags & 1)) {
|
|
1299
|
-
const t = Ve(e), n = W[W.length - 1];
|
|
1300
|
-
!n || // fast path when the job id is larger than the tail
|
|
1301
|
-
!(e.flags & 2) && t >= Ve(n) ? W.push(e) : W.splice(Xr(t), 0, e), e.flags |= 1, Vn();
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
function Vn() {
|
|
1305
|
-
Je || (Je = Rn.then(Tn));
|
|
1306
|
-
}
|
|
1307
|
-
function In(e) {
|
|
1308
|
-
N(e) ? we.push(...e) : te && e.id === -1 ? te.splice(ge + 1, 0, e) : e.flags & 1 || (we.push(e), e.flags |= 1), Vn();
|
|
1309
|
-
}
|
|
1310
|
-
function Qr(e) {
|
|
1311
|
-
if (we.length) {
|
|
1312
|
-
const t = [...new Set(we)].sort(
|
|
1313
|
-
(n, s) => Ve(n) - Ve(s)
|
|
1314
|
-
);
|
|
1315
|
-
if (we.length = 0, te) {
|
|
1316
|
-
te.push(...t);
|
|
1317
|
-
return;
|
|
1318
|
-
}
|
|
1319
|
-
for (te = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), ge = 0; ge < te.length; ge++) {
|
|
1320
|
-
const n = te[ge];
|
|
1321
|
-
process.env.NODE_ENV !== "production" && Mn(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1322
|
-
}
|
|
1323
|
-
te = null, ge = 0;
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
const Ve = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1327
|
-
function Tn(e) {
|
|
1328
|
-
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
1329
|
-
const t = process.env.NODE_ENV !== "production" ? (n) => Mn(e, n) : me;
|
|
1330
|
-
try {
|
|
1331
|
-
for (k = 0; k < W.length; k++) {
|
|
1332
|
-
const n = W[k];
|
|
1333
|
-
if (n && !(n.flags & 8)) {
|
|
1334
|
-
if (process.env.NODE_ENV !== "production" && t(n))
|
|
1335
|
-
continue;
|
|
1336
|
-
n.flags & 4 && (n.flags &= -2), et(
|
|
1337
|
-
n,
|
|
1338
|
-
n.i,
|
|
1339
|
-
n.i ? 15 : 14
|
|
1340
|
-
), n.flags & 4 || (n.flags &= -2);
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
} finally {
|
|
1344
|
-
for (; k < W.length; k++) {
|
|
1345
|
-
const n = W[k];
|
|
1346
|
-
n && (n.flags &= -2);
|
|
1347
|
-
}
|
|
1348
|
-
k = -1, W.length = 0, Qr(e), Je = null, (W.length || we.length) && Tn(e);
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
function Mn(e, t) {
|
|
1352
|
-
const n = e.get(t) || 0;
|
|
1353
|
-
if (n > Gr) {
|
|
1354
|
-
const s = t.i, r = s && zt(s.type);
|
|
1355
|
-
return Mt(
|
|
1356
|
-
`Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
1357
|
-
null,
|
|
1358
|
-
10
|
|
1359
|
-
), !0;
|
|
1360
|
-
}
|
|
1361
|
-
return e.set(t, n + 1), !1;
|
|
1362
|
-
}
|
|
1363
|
-
const ct = /* @__PURE__ */ new Map();
|
|
1364
|
-
process.env.NODE_ENV !== "production" && (Qe().__VUE_HMR_RUNTIME__ = {
|
|
1365
|
-
createRecord: lt(kr),
|
|
1366
|
-
rerender: lt(es),
|
|
1367
|
-
reload: lt(ts)
|
|
1368
|
-
});
|
|
1369
|
-
const Be = /* @__PURE__ */ new Map();
|
|
1370
|
-
function kr(e, t) {
|
|
1371
|
-
return Be.has(e) ? !1 : (Be.set(e, {
|
|
1372
|
-
initialDef: qe(t),
|
|
1373
|
-
instances: /* @__PURE__ */ new Set()
|
|
1374
|
-
}), !0);
|
|
1375
|
-
}
|
|
1376
|
-
function qe(e) {
|
|
1377
|
-
return Gn(e) ? e.__vccOpts : e;
|
|
1378
|
-
}
|
|
1379
|
-
function es(e, t) {
|
|
1380
|
-
const n = Be.get(e);
|
|
1381
|
-
n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
|
|
1382
|
-
t && (s.render = t, qe(s.type).render = t), s.renderCache = [], s.update();
|
|
1383
|
-
}));
|
|
1384
|
-
}
|
|
1385
|
-
function ts(e, t) {
|
|
1386
|
-
const n = Be.get(e);
|
|
1387
|
-
if (!n)
|
|
1388
|
-
return;
|
|
1389
|
-
t = qe(t), nn(n.initialDef, t);
|
|
1390
|
-
const s = [...n.instances];
|
|
1391
|
-
for (let r = 0; r < s.length; r++) {
|
|
1392
|
-
const o = s[r], i = qe(o.type);
|
|
1393
|
-
let c = ct.get(i);
|
|
1394
|
-
c || (i !== n.initialDef && nn(i, t), ct.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(t.styles), c.delete(o)) : o.parent ? $t(() => {
|
|
1395
|
-
o.parent.update(), c.delete(o);
|
|
1396
|
-
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1397
|
-
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1398
|
-
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
1399
|
-
}
|
|
1400
|
-
In(() => {
|
|
1401
|
-
ct.clear();
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
function nn(e, t) {
|
|
1405
|
-
A(e, t);
|
|
1406
|
-
for (const n in e)
|
|
1407
|
-
n !== "__file" && !(n in t) && delete e[n];
|
|
1408
|
-
}
|
|
1409
|
-
function lt(e) {
|
|
1410
|
-
return (t, n) => {
|
|
1411
|
-
try {
|
|
1412
|
-
return e(t, n);
|
|
1413
|
-
} catch (s) {
|
|
1414
|
-
console.error(s), console.warn(
|
|
1415
|
-
"[HMR] Something went wrong during Vue component hot-reload. Full reload required."
|
|
1416
|
-
);
|
|
1417
|
-
}
|
|
1418
|
-
};
|
|
1419
|
-
}
|
|
1420
|
-
let ve, je = [];
|
|
1421
|
-
function $n(e, t) {
|
|
1422
|
-
var n, s;
|
|
1423
|
-
ve = e, ve ? (ve.enabled = !0, je.forEach(({ event: r, args: o }) => ve.emit(r, ...o)), je = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
1424
|
-
window.HTMLElement && // also exclude jsdom
|
|
1425
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
1426
|
-
!((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
1427
|
-
$n(o, t);
|
|
1428
|
-
}), setTimeout(() => {
|
|
1429
|
-
ve || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, je = []);
|
|
1430
|
-
}, 3e3)) : je = [];
|
|
1431
|
-
}
|
|
1432
|
-
let q = null, ns = null;
|
|
1433
|
-
const rs = (e) => e.__isTeleport;
|
|
1434
|
-
function An(e, t) {
|
|
1435
|
-
e.shapeFlag & 6 && e.component ? (e.transition = t, An(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1436
|
-
}
|
|
1437
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
1438
|
-
// @__NO_SIDE_EFFECTS__
|
|
1439
|
-
function Hn(e, t) {
|
|
1440
|
-
return D(e) ? (
|
|
1441
|
-
// #8236: extend call and options.name access are considered side-effects
|
|
1442
|
-
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1443
|
-
/* @__PURE__ */ (() => A({ name: e.name }, t, { setup: e }))()
|
|
1444
|
-
) : e;
|
|
1445
|
-
}
|
|
1446
|
-
Qe().requestIdleCallback;
|
|
1447
|
-
Qe().cancelIdleCallback;
|
|
1448
|
-
function ss(e, t, n = ie, s = !1) {
|
|
1449
|
-
if (n) {
|
|
1450
|
-
const r = n[e] || (n[e] = []), o = t.__weh || (t.__weh = (...i) => {
|
|
1451
|
-
Me();
|
|
1452
|
-
const c = Bn(n), a = Tt(t, n, e, i);
|
|
1453
|
-
return c(), $e(), a;
|
|
1454
|
-
});
|
|
1455
|
-
return s ? r.unshift(o) : r.push(o), o;
|
|
1456
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
1457
|
-
const r = ir(It[e].replace(/ hook$/, ""));
|
|
1458
|
-
y(
|
|
1459
|
-
`${r} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
|
|
1460
|
-
);
|
|
1461
|
-
}
|
|
1462
|
-
}
|
|
1463
|
-
const Ln = (e) => (t, n = ie) => {
|
|
1464
|
-
(!Ie || e === "sp") && ss(e, (...s) => t(...s), n);
|
|
1465
|
-
}, At = Ln("m"), Ht = Ln(
|
|
1466
|
-
"bum"
|
|
1467
|
-
), Et = "components", Fn = Symbol.for("v-ndc");
|
|
1468
|
-
function os(e) {
|
|
1469
|
-
return F(e) ? is(Et, e, !1) || e : e || Fn;
|
|
1470
|
-
}
|
|
1471
|
-
function is(e, t, n = !0, s = !1) {
|
|
1472
|
-
const r = ie;
|
|
1473
|
-
if (r) {
|
|
1474
|
-
const o = r.type;
|
|
1475
|
-
if (e === Et) {
|
|
1476
|
-
const c = zt(
|
|
1477
|
-
o,
|
|
1478
|
-
!1
|
|
1479
|
-
);
|
|
1480
|
-
if (c && (c === t || c === Ke(t) || c === De(Ke(t))))
|
|
1481
|
-
return o;
|
|
1482
|
-
}
|
|
1483
|
-
const i = (
|
|
1484
|
-
// local registration
|
|
1485
|
-
// check instance[type] first which is resolved for options API
|
|
1486
|
-
rn(r[e] || o[e], t) || // global registration
|
|
1487
|
-
rn(r.appContext[e], t)
|
|
1488
|
-
);
|
|
1489
|
-
if (!i && s)
|
|
1490
|
-
return o;
|
|
1491
|
-
if (process.env.NODE_ENV !== "production" && n && !i) {
|
|
1492
|
-
const c = e === Et ? `
|
|
1493
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : "";
|
|
1494
|
-
y(`Failed to resolve ${e.slice(0, -1)}: ${t}${c}`);
|
|
1495
|
-
}
|
|
1496
|
-
return i;
|
|
1497
|
-
} else
|
|
1498
|
-
process.env.NODE_ENV !== "production" && y(
|
|
1499
|
-
`resolve${De(e.slice(0, -1))} can only be used in render() or setup().`
|
|
1500
|
-
);
|
|
1501
|
-
}
|
|
1502
|
-
function rn(e, t) {
|
|
1503
|
-
return e && (e[t] || e[Ke(t)] || e[De(Ke(t))]);
|
|
1504
|
-
}
|
|
1505
|
-
function cs(e, t, n, s) {
|
|
1506
|
-
let r;
|
|
1507
|
-
const o = n && n[s], i = N(e);
|
|
1508
|
-
if (i || F(e)) {
|
|
1509
|
-
const c = i && de(e);
|
|
1510
|
-
let a = !1;
|
|
1511
|
-
c && (a = !M(e), e = ke(e)), r = new Array(e.length);
|
|
1512
|
-
for (let d = 0, u = e.length; d < u; d++)
|
|
1513
|
-
r[d] = t(
|
|
1514
|
-
a ? R(e[d]) : e[d],
|
|
1515
|
-
d,
|
|
1516
|
-
void 0,
|
|
1517
|
-
o && o[d]
|
|
1518
|
-
);
|
|
1519
|
-
} else if (typeof e == "number") {
|
|
1520
|
-
process.env.NODE_ENV !== "production" && !Number.isInteger(e) && y(`The v-for range expect an integer value but got ${e}.`), r = new Array(e);
|
|
1521
|
-
for (let c = 0; c < e; c++)
|
|
1522
|
-
r[c] = t(c + 1, c, void 0, o && o[c]);
|
|
1523
|
-
} else if (T(e))
|
|
1524
|
-
if (e[Symbol.iterator])
|
|
1525
|
-
r = Array.from(
|
|
1526
|
-
e,
|
|
1527
|
-
(c, a) => t(c, a, void 0, o && o[a])
|
|
1528
|
-
);
|
|
1529
|
-
else {
|
|
1530
|
-
const c = Object.keys(e);
|
|
1531
|
-
r = new Array(c.length);
|
|
1532
|
-
for (let a = 0, d = c.length; a < d; a++) {
|
|
1533
|
-
const u = c[a];
|
|
1534
|
-
r[a] = t(e[u], u, a, o && o[a]);
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
else
|
|
1538
|
-
r = [];
|
|
1539
|
-
return n && (n[s] = r), r;
|
|
1540
|
-
}
|
|
1541
|
-
const wt = (e) => e ? Ms(e) ? $s(e) : wt(e.parent) : null, Oe = (
|
|
1542
|
-
// Move PURE marker to new line to workaround compiler discarding it
|
|
1543
|
-
// due to type annotation
|
|
1544
|
-
/* @__PURE__ */ A(/* @__PURE__ */ Object.create(null), {
|
|
1545
|
-
$: (e) => e,
|
|
1546
|
-
$el: (e) => e.vnode.el,
|
|
1547
|
-
$data: (e) => e.data,
|
|
1548
|
-
$props: (e) => process.env.NODE_ENV !== "production" ? Le(e.props) : e.props,
|
|
1549
|
-
$attrs: (e) => process.env.NODE_ENV !== "production" ? Le(e.attrs) : e.attrs,
|
|
1550
|
-
$slots: (e) => process.env.NODE_ENV !== "production" ? Le(e.slots) : e.slots,
|
|
1551
|
-
$refs: (e) => process.env.NODE_ENV !== "production" ? Le(e.refs) : e.refs,
|
|
1552
|
-
$parent: (e) => wt(e.parent),
|
|
1553
|
-
$root: (e) => wt(e.root),
|
|
1554
|
-
$host: (e) => e.ce,
|
|
1555
|
-
$emit: (e) => e.emit,
|
|
1556
|
-
$options: (e) => us(e),
|
|
1557
|
-
$forceUpdate: (e) => e.f || (e.f = () => {
|
|
1558
|
-
$t(e.update);
|
|
1559
|
-
}),
|
|
1560
|
-
$nextTick: (e) => e.n || (e.n = Zr.bind(e.proxy)),
|
|
1561
|
-
$watch: (e) => ys.bind(e)
|
|
1562
|
-
})
|
|
1563
|
-
), ls = (e) => e === "_" || e === "$", at = (e, t) => e !== z && !e.__isScriptSetup && S(e, t), as = {
|
|
1564
|
-
get({ _: e }, t) {
|
|
1565
|
-
if (t === "__v_skip")
|
|
1566
|
-
return !0;
|
|
1567
|
-
const { ctx: n, setupState: s, data: r, props: o, accessCache: i, type: c, appContext: a } = e;
|
|
1568
|
-
if (process.env.NODE_ENV !== "production" && t === "__isVue")
|
|
1569
|
-
return !0;
|
|
1570
|
-
let d;
|
|
1571
|
-
if (t[0] !== "$") {
|
|
1572
|
-
const h = i[t];
|
|
1573
|
-
if (h !== void 0)
|
|
1574
|
-
switch (h) {
|
|
1575
|
-
case 1:
|
|
1576
|
-
return s[t];
|
|
1577
|
-
case 2:
|
|
1578
|
-
return r[t];
|
|
1579
|
-
case 4:
|
|
1580
|
-
return n[t];
|
|
1581
|
-
case 3:
|
|
1582
|
-
return o[t];
|
|
1583
|
-
}
|
|
1584
|
-
else {
|
|
1585
|
-
if (at(s, t))
|
|
1586
|
-
return i[t] = 1, s[t];
|
|
1587
|
-
if (r !== z && S(r, t))
|
|
1588
|
-
return i[t] = 2, r[t];
|
|
1589
|
-
if (
|
|
1590
|
-
// only cache other properties when instance has declared (thus stable)
|
|
1591
|
-
// props
|
|
1592
|
-
(d = e.propsOptions[0]) && S(d, t)
|
|
1593
|
-
)
|
|
1594
|
-
return i[t] = 3, o[t];
|
|
1595
|
-
if (n !== z && S(n, t))
|
|
1596
|
-
return i[t] = 4, n[t];
|
|
1597
|
-
i[t] = 0;
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
const u = Oe[t];
|
|
1601
|
-
let l, f;
|
|
1602
|
-
if (u)
|
|
1603
|
-
return t === "$attrs" ? (P(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && P(e, "get", t), u(e);
|
|
1604
|
-
if (
|
|
1605
|
-
// css module (injected by vue-loader)
|
|
1606
|
-
(l = c.__cssModules) && (l = l[t])
|
|
1607
|
-
)
|
|
1608
|
-
return l;
|
|
1609
|
-
if (n !== z && S(n, t))
|
|
1610
|
-
return i[t] = 4, n[t];
|
|
1611
|
-
if (
|
|
1612
|
-
// global properties
|
|
1613
|
-
f = a.config.globalProperties, S(f, t)
|
|
1614
|
-
)
|
|
1615
|
-
return f[t];
|
|
1616
|
-
process.env.NODE_ENV !== "production" && q && (!F(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
1617
|
-
// to infinite warning loop
|
|
1618
|
-
t.indexOf("__v") !== 0) && (r !== z && ls(t[0]) && S(r, t) ? y(
|
|
1619
|
-
`Property ${JSON.stringify(
|
|
1620
|
-
t
|
|
1621
|
-
)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
|
|
1622
|
-
) : e === q && y(
|
|
1623
|
-
`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
|
|
1624
|
-
));
|
|
1625
|
-
},
|
|
1626
|
-
set({ _: e }, t, n) {
|
|
1627
|
-
const { data: s, setupState: r, ctx: o } = e;
|
|
1628
|
-
return at(r, t) ? (r[t] = n, !0) : process.env.NODE_ENV !== "production" && r.__isScriptSetup && S(r, t) ? (y(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : s !== z && S(s, t) ? (s[t] = n, !0) : S(e.props, t) ? (process.env.NODE_ENV !== "production" && y(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && y(
|
|
1629
|
-
`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
|
|
1630
|
-
), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(o, t, {
|
|
1631
|
-
enumerable: !0,
|
|
1632
|
-
configurable: !0,
|
|
1633
|
-
value: n
|
|
1634
|
-
}) : o[t] = n, !0);
|
|
1635
|
-
},
|
|
1636
|
-
has({
|
|
1637
|
-
_: { data: e, setupState: t, accessCache: n, ctx: s, appContext: r, propsOptions: o }
|
|
1638
|
-
}, i) {
|
|
1639
|
-
let c;
|
|
1640
|
-
return !!n[i] || e !== z && S(e, i) || at(t, i) || (c = o[0]) && S(c, i) || S(s, i) || S(Oe, i) || S(r.config.globalProperties, i);
|
|
1641
|
-
},
|
|
1642
|
-
defineProperty(e, t, n) {
|
|
1643
|
-
return n.get != null ? e._.accessCache[t] = 0 : S(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
1644
|
-
}
|
|
1645
|
-
};
|
|
1646
|
-
process.env.NODE_ENV !== "production" && (as.ownKeys = (e) => (y(
|
|
1647
|
-
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1648
|
-
), Reflect.ownKeys(e)));
|
|
1649
|
-
function sn(e) {
|
|
1650
|
-
return N(e) ? e.reduce(
|
|
1651
|
-
(t, n) => (t[n] = null, t),
|
|
1652
|
-
{}
|
|
1653
|
-
) : e;
|
|
1654
|
-
}
|
|
1655
|
-
function us(e) {
|
|
1656
|
-
const t = e.type, { mixins: n, extends: s } = t, {
|
|
1657
|
-
mixins: r,
|
|
1658
|
-
optionsCache: o,
|
|
1659
|
-
config: { optionMergeStrategies: i }
|
|
1660
|
-
} = e.appContext, c = o.get(t);
|
|
1661
|
-
let a;
|
|
1662
|
-
return c ? a = c : !r.length && !n && !s ? a = t : (a = {}, r.length && r.forEach(
|
|
1663
|
-
(d) => Ge(a, d, i, !0)
|
|
1664
|
-
), Ge(a, t, i)), T(t) && o.set(t, a), a;
|
|
1665
|
-
}
|
|
1666
|
-
function Ge(e, t, n, s = !1) {
|
|
1667
|
-
const { mixins: r, extends: o } = t;
|
|
1668
|
-
o && Ge(e, o, n, !0), r && r.forEach(
|
|
1669
|
-
(i) => Ge(e, i, n, !0)
|
|
1670
|
-
);
|
|
1671
|
-
for (const i in t)
|
|
1672
|
-
if (s && i === "expose")
|
|
1673
|
-
process.env.NODE_ENV !== "production" && y(
|
|
1674
|
-
'"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
|
|
1675
|
-
);
|
|
1676
|
-
else {
|
|
1677
|
-
const c = fs[i] || n && n[i];
|
|
1678
|
-
e[i] = c ? c(e[i], t[i]) : t[i];
|
|
1679
|
-
}
|
|
1680
|
-
return e;
|
|
1681
|
-
}
|
|
1682
|
-
const fs = {
|
|
1683
|
-
data: on,
|
|
1684
|
-
props: ln,
|
|
1685
|
-
emits: ln,
|
|
1686
|
-
// objects
|
|
1687
|
-
methods: Ne,
|
|
1688
|
-
computed: Ne,
|
|
1689
|
-
// lifecycle
|
|
1690
|
-
beforeCreate: V,
|
|
1691
|
-
created: V,
|
|
1692
|
-
beforeMount: V,
|
|
1693
|
-
mounted: V,
|
|
1694
|
-
beforeUpdate: V,
|
|
1695
|
-
updated: V,
|
|
1696
|
-
beforeDestroy: V,
|
|
1697
|
-
beforeUnmount: V,
|
|
1698
|
-
destroyed: V,
|
|
1699
|
-
unmounted: V,
|
|
1700
|
-
activated: V,
|
|
1701
|
-
deactivated: V,
|
|
1702
|
-
errorCaptured: V,
|
|
1703
|
-
serverPrefetch: V,
|
|
1704
|
-
// assets
|
|
1705
|
-
components: Ne,
|
|
1706
|
-
directives: Ne,
|
|
1707
|
-
// watch
|
|
1708
|
-
watch: ps,
|
|
1709
|
-
// provide / inject
|
|
1710
|
-
provide: on,
|
|
1711
|
-
inject: ds
|
|
1712
|
-
};
|
|
1713
|
-
function on(e, t) {
|
|
1714
|
-
return t ? e ? function() {
|
|
1715
|
-
return A(
|
|
1716
|
-
D(e) ? e.call(this, this) : e,
|
|
1717
|
-
D(t) ? t.call(this, this) : t
|
|
1718
|
-
);
|
|
1719
|
-
} : t : e;
|
|
1720
|
-
}
|
|
1721
|
-
function ds(e, t) {
|
|
1722
|
-
return Ne(cn(e), cn(t));
|
|
1723
|
-
}
|
|
1724
|
-
function cn(e) {
|
|
1725
|
-
if (N(e)) {
|
|
1726
|
-
const t = {};
|
|
1727
|
-
for (let n = 0; n < e.length; n++)
|
|
1728
|
-
t[e[n]] = e[n];
|
|
1729
|
-
return t;
|
|
1730
|
-
}
|
|
1731
|
-
return e;
|
|
1732
|
-
}
|
|
1733
|
-
function V(e, t) {
|
|
1734
|
-
return e ? [...new Set([].concat(e, t))] : t;
|
|
1735
|
-
}
|
|
1736
|
-
function Ne(e, t) {
|
|
1737
|
-
return e ? A(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1738
|
-
}
|
|
1739
|
-
function ln(e, t) {
|
|
1740
|
-
return e ? N(e) && N(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : A(
|
|
1741
|
-
/* @__PURE__ */ Object.create(null),
|
|
1742
|
-
sn(e),
|
|
1743
|
-
sn(t ?? {})
|
|
1744
|
-
) : t;
|
|
1745
|
-
}
|
|
1746
|
-
function ps(e, t) {
|
|
1747
|
-
if (!e)
|
|
1748
|
-
return t;
|
|
1749
|
-
if (!t)
|
|
1750
|
-
return e;
|
|
1751
|
-
const n = A(/* @__PURE__ */ Object.create(null), e);
|
|
1752
|
-
for (const s in t)
|
|
1753
|
-
n[s] = V(e[s], t[s]);
|
|
1754
|
-
return n;
|
|
1755
|
-
}
|
|
1756
|
-
let hs = null;
|
|
1757
|
-
function gs(e, t, n = !1) {
|
|
1758
|
-
const s = ie || q;
|
|
1759
|
-
if (s || hs) {
|
|
1760
|
-
const r = s ? s.parent == null ? s.vnode.appContext && s.vnode.appContext.provides : s.parent.provides : void 0;
|
|
1761
|
-
if (r && e in r)
|
|
1762
|
-
return r[e];
|
|
1763
|
-
if (arguments.length > 1)
|
|
1764
|
-
return n && D(t) ? t.call(s && s.proxy) : t;
|
|
1765
|
-
process.env.NODE_ENV !== "production" && y(`injection "${String(e)}" not found.`);
|
|
1766
|
-
} else
|
|
1767
|
-
process.env.NODE_ENV !== "production" && y("inject() can only be used inside setup() or functional components.");
|
|
1768
|
-
}
|
|
1769
|
-
const vs = {}, jn = (e) => Object.getPrototypeOf(e) === vs, _s = xs, ms = Symbol.for("v-scx"), Es = () => {
|
|
1770
|
-
{
|
|
1771
|
-
const e = gs(ms);
|
|
1772
|
-
return e || process.env.NODE_ENV !== "production" && y(
|
|
1773
|
-
"Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
|
|
1774
|
-
), e;
|
|
1775
|
-
}
|
|
1776
|
-
};
|
|
1777
|
-
function ws(e, t, n = z) {
|
|
1778
|
-
const { immediate: s, deep: r, flush: o, once: i } = n;
|
|
1779
|
-
process.env.NODE_ENV !== "production" && !t && (s !== void 0 && y(
|
|
1780
|
-
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1781
|
-
), r !== void 0 && y(
|
|
1782
|
-
'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1783
|
-
), i !== void 0 && y(
|
|
1784
|
-
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1785
|
-
));
|
|
1786
|
-
const c = A({}, n);
|
|
1787
|
-
process.env.NODE_ENV !== "production" && (c.onWarn = y);
|
|
1788
|
-
const a = t && s || !t && o !== "post";
|
|
1789
|
-
let d;
|
|
1790
|
-
if (Ie) {
|
|
1791
|
-
if (o === "sync") {
|
|
1792
|
-
const h = Es();
|
|
1793
|
-
d = h.__watcherHandles || (h.__watcherHandles = []);
|
|
1794
|
-
} else if (!a) {
|
|
1795
|
-
const h = () => {
|
|
1796
|
-
};
|
|
1797
|
-
return h.stop = me, h.resume = me, h.pause = me, h;
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
const u = ie;
|
|
1801
|
-
c.call = (h, p, E) => Tt(h, u, p, E);
|
|
1802
|
-
let l = !1;
|
|
1803
|
-
o === "post" ? c.scheduler = (h) => {
|
|
1804
|
-
_s(h, u && u.suspense);
|
|
1805
|
-
} : o !== "sync" && (l = !0, c.scheduler = (h, p) => {
|
|
1806
|
-
p ? h() : $t(h);
|
|
1807
|
-
}), c.augmentJob = (h) => {
|
|
1808
|
-
t && (h.flags |= 4), l && (h.flags |= 2, u && (h.id = u.uid, h.i = u));
|
|
1809
|
-
};
|
|
1810
|
-
const f = zr(e, t, c);
|
|
1811
|
-
return Ie && (d ? d.push(f) : a && f()), f;
|
|
1812
|
-
}
|
|
1813
|
-
function ys(e, t, n) {
|
|
1814
|
-
const s = this.proxy, r = F(e) ? e.includes(".") ? Ns(s, e) : () => s[e] : e.bind(s, s);
|
|
1815
|
-
let o;
|
|
1816
|
-
D(t) ? o = t : (o = t.handler, n = t);
|
|
1817
|
-
const i = Bn(this), c = ws(r, o.bind(s), n);
|
|
1818
|
-
return i(), c;
|
|
1819
|
-
}
|
|
1820
|
-
function Ns(e, t) {
|
|
1821
|
-
const n = t.split(".");
|
|
1822
|
-
return () => {
|
|
1823
|
-
let s = e;
|
|
1824
|
-
for (let r = 0; r < n.length && s; r++)
|
|
1825
|
-
s = s[n[r]];
|
|
1826
|
-
return s;
|
|
1827
|
-
};
|
|
1828
|
-
}
|
|
1829
|
-
const bs = (e) => e.__isSuspense;
|
|
1830
|
-
function xs(e, t) {
|
|
1831
|
-
t && t.pendingBranch ? N(e) ? t.effects.push(...e) : t.effects.push(e) : In(e);
|
|
1832
|
-
}
|
|
1833
|
-
const Lt = Symbol.for("v-fgt"), Os = Symbol.for("v-txt"), yt = Symbol.for("v-cmt"), ze = [];
|
|
1834
|
-
let Y = null;
|
|
1835
|
-
function Se(e = !1) {
|
|
1836
|
-
ze.push(Y = e ? null : []);
|
|
1837
|
-
}
|
|
1838
|
-
function Ss() {
|
|
1839
|
-
ze.pop(), Y = ze[ze.length - 1] || null;
|
|
1840
|
-
}
|
|
1841
|
-
function zn(e) {
|
|
1842
|
-
return e.dynamicChildren = Y || Xn, Ss(), Y && Y.push(e), e;
|
|
1843
|
-
}
|
|
1844
|
-
function ut(e, t, n, s, r, o) {
|
|
1845
|
-
return zn(
|
|
1846
|
-
Un(
|
|
1847
|
-
e,
|
|
1848
|
-
t,
|
|
1849
|
-
n,
|
|
1850
|
-
s,
|
|
1851
|
-
r,
|
|
1852
|
-
o,
|
|
1853
|
-
!0
|
|
1854
|
-
)
|
|
1855
|
-
);
|
|
1856
|
-
}
|
|
1857
|
-
function Wn(e, t, n, s, r) {
|
|
1858
|
-
return zn(
|
|
1859
|
-
Ft(
|
|
1860
|
-
e,
|
|
1861
|
-
t,
|
|
1862
|
-
n,
|
|
1863
|
-
s,
|
|
1864
|
-
r,
|
|
1865
|
-
!0
|
|
1866
|
-
)
|
|
1867
|
-
);
|
|
1868
|
-
}
|
|
1869
|
-
function Ds(e) {
|
|
1870
|
-
return e ? e.__v_isVNode === !0 : !1;
|
|
1871
|
-
}
|
|
1872
|
-
const Ps = (...e) => Yn(
|
|
1873
|
-
...e
|
|
1874
|
-
), Kn = ({ key: e }) => e ?? null, We = ({
|
|
1875
|
-
ref: e,
|
|
1876
|
-
ref_key: t,
|
|
1877
|
-
ref_for: n
|
|
1878
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? F(e) || $(e) || D(e) ? { i: q, r: e, k: t, f: !!n } : e : null);
|
|
1879
|
-
function Un(e, t = null, n = null, s = 0, r = null, o = e === Lt ? 0 : 1, i = !1, c = !1) {
|
|
1880
|
-
const a = {
|
|
1881
|
-
__v_isVNode: !0,
|
|
1882
|
-
__v_skip: !0,
|
|
1883
|
-
type: e,
|
|
1884
|
-
props: t,
|
|
1885
|
-
key: t && Kn(t),
|
|
1886
|
-
ref: t && We(t),
|
|
1887
|
-
scopeId: ns,
|
|
1888
|
-
slotScopeIds: null,
|
|
1889
|
-
children: n,
|
|
1890
|
-
component: null,
|
|
1891
|
-
suspense: null,
|
|
1892
|
-
ssContent: null,
|
|
1893
|
-
ssFallback: null,
|
|
1894
|
-
dirs: null,
|
|
1895
|
-
transition: null,
|
|
1896
|
-
el: null,
|
|
1897
|
-
anchor: null,
|
|
1898
|
-
target: null,
|
|
1899
|
-
targetStart: null,
|
|
1900
|
-
targetAnchor: null,
|
|
1901
|
-
staticCount: 0,
|
|
1902
|
-
shapeFlag: o,
|
|
1903
|
-
patchFlag: s,
|
|
1904
|
-
dynamicProps: r,
|
|
1905
|
-
dynamicChildren: null,
|
|
1906
|
-
appContext: null,
|
|
1907
|
-
ctx: q
|
|
1908
|
-
};
|
|
1909
|
-
return c ? (jt(a, n), o & 128 && e.normalize(a)) : n && (a.shapeFlag |= F(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && y("VNode created with invalid key (NaN). VNode type:", a.type), // avoid a block node from tracking itself
|
|
1910
|
-
!i && // has current parent block
|
|
1911
|
-
Y && // presence of a patch flag indicates this node needs patching on updates.
|
|
1912
|
-
// component nodes also should always be patched, because even if the
|
|
1913
|
-
// component doesn't need to update, it needs to persist the instance on to
|
|
1914
|
-
// the next vnode so that it can be properly unmounted later.
|
|
1915
|
-
(a.patchFlag > 0 || o & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
|
|
1916
|
-
// vnode should not be considered dynamic due to handler caching.
|
|
1917
|
-
a.patchFlag !== 32 && Y.push(a), a;
|
|
1918
|
-
}
|
|
1919
|
-
const Ft = process.env.NODE_ENV !== "production" ? Ps : Yn;
|
|
1920
|
-
function Yn(e, t = null, n = null, s = 0, r = null, o = !1) {
|
|
1921
|
-
if ((!e || e === Fn) && (process.env.NODE_ENV !== "production" && !e && y(`Invalid vnode type when creating vnode: ${e}.`), e = yt), Ds(e)) {
|
|
1922
|
-
const c = Ze(
|
|
1923
|
-
e,
|
|
1924
|
-
t,
|
|
1925
|
-
!0
|
|
1926
|
-
/* mergeRef: true */
|
|
1927
|
-
);
|
|
1928
|
-
return n && jt(c, n), !o && Y && (c.shapeFlag & 6 ? Y[Y.indexOf(e)] = c : Y.push(c)), c.patchFlag = -2, c;
|
|
1929
|
-
}
|
|
1930
|
-
if (Gn(e) && (e = e.__vccOpts), t) {
|
|
1931
|
-
t = Cs(t);
|
|
1932
|
-
let { class: c, style: a } = t;
|
|
1933
|
-
c && !F(c) && (t.class = Ot(c)), T(a) && (Ue(a) && !N(a) && (a = A({}, a)), t.style = Pe(a));
|
|
1934
|
-
}
|
|
1935
|
-
const i = F(e) ? 1 : bs(e) ? 128 : rs(e) ? 64 : T(e) ? 4 : D(e) ? 2 : 0;
|
|
1936
|
-
return process.env.NODE_ENV !== "production" && i & 4 && Ue(e) && (e = m(e), y(
|
|
1937
|
-
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1938
|
-
`
|
|
1939
|
-
Component that was made reactive: `,
|
|
1940
|
-
e
|
|
1941
|
-
)), Un(
|
|
1942
|
-
e,
|
|
1943
|
-
t,
|
|
1944
|
-
n,
|
|
1945
|
-
s,
|
|
1946
|
-
r,
|
|
1947
|
-
i,
|
|
1948
|
-
o,
|
|
1949
|
-
!0
|
|
1950
|
-
);
|
|
1951
|
-
}
|
|
1952
|
-
function Cs(e) {
|
|
1953
|
-
return e ? Ue(e) || jn(e) ? A({}, e) : e : null;
|
|
1954
|
-
}
|
|
1955
|
-
function Ze(e, t, n = !1, s = !1) {
|
|
1956
|
-
const { props: r, ref: o, patchFlag: i, children: c, transition: a } = e, d = t ? Is(r || {}, t) : r, u = {
|
|
1957
|
-
__v_isVNode: !0,
|
|
1958
|
-
__v_skip: !0,
|
|
1959
|
-
type: e.type,
|
|
1960
|
-
props: d,
|
|
1961
|
-
key: d && Kn(d),
|
|
1962
|
-
ref: t && t.ref ? (
|
|
1963
|
-
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1964
|
-
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1965
|
-
// the refs so the single vnode can be set on multiple refs
|
|
1966
|
-
n && o ? N(o) ? o.concat(We(t)) : [o, We(t)] : We(t)
|
|
1967
|
-
) : o,
|
|
1968
|
-
scopeId: e.scopeId,
|
|
1969
|
-
slotScopeIds: e.slotScopeIds,
|
|
1970
|
-
children: process.env.NODE_ENV !== "production" && i === -1 && N(c) ? c.map(Jn) : c,
|
|
1971
|
-
target: e.target,
|
|
1972
|
-
targetStart: e.targetStart,
|
|
1973
|
-
targetAnchor: e.targetAnchor,
|
|
1974
|
-
staticCount: e.staticCount,
|
|
1975
|
-
shapeFlag: e.shapeFlag,
|
|
1976
|
-
// if the vnode is cloned with extra props, we can no longer assume its
|
|
1977
|
-
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1978
|
-
// note: preserve flag for fragments since they use the flag for children
|
|
1979
|
-
// fast paths only.
|
|
1980
|
-
patchFlag: t && e.type !== Lt ? i === -1 ? 16 : i | 16 : i,
|
|
1981
|
-
dynamicProps: e.dynamicProps,
|
|
1982
|
-
dynamicChildren: e.dynamicChildren,
|
|
1983
|
-
appContext: e.appContext,
|
|
1984
|
-
dirs: e.dirs,
|
|
1985
|
-
transition: a,
|
|
1986
|
-
// These should technically only be non-null on mounted VNodes. However,
|
|
1987
|
-
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
1988
|
-
// them since them being non-null during a mount doesn't affect the logic as
|
|
1989
|
-
// they will simply be overwritten.
|
|
1990
|
-
component: e.component,
|
|
1991
|
-
suspense: e.suspense,
|
|
1992
|
-
ssContent: e.ssContent && Ze(e.ssContent),
|
|
1993
|
-
ssFallback: e.ssFallback && Ze(e.ssFallback),
|
|
1994
|
-
el: e.el,
|
|
1995
|
-
anchor: e.anchor,
|
|
1996
|
-
ctx: e.ctx,
|
|
1997
|
-
ce: e.ce
|
|
1998
|
-
};
|
|
1999
|
-
return a && s && An(
|
|
2000
|
-
u,
|
|
2001
|
-
a.clone(u)
|
|
2002
|
-
), u;
|
|
2003
|
-
}
|
|
2004
|
-
function Jn(e) {
|
|
2005
|
-
const t = Ze(e);
|
|
2006
|
-
return N(e.children) && (t.children = e.children.map(Jn)), t;
|
|
2007
|
-
}
|
|
2008
|
-
function Rs(e = " ", t = 0) {
|
|
2009
|
-
return Ft(Os, null, e, t);
|
|
2010
|
-
}
|
|
2011
|
-
function Vs(e = "", t = !1) {
|
|
2012
|
-
return t ? (Se(), Wn(yt, null, e)) : Ft(yt, null, e);
|
|
2013
|
-
}
|
|
2014
|
-
function jt(e, t) {
|
|
2015
|
-
let n = 0;
|
|
2016
|
-
const { shapeFlag: s } = e;
|
|
2017
|
-
if (t == null)
|
|
2018
|
-
t = null;
|
|
2019
|
-
else if (N(t))
|
|
2020
|
-
n = 16;
|
|
2021
|
-
else if (typeof t == "object")
|
|
2022
|
-
if (s & 65) {
|
|
2023
|
-
const r = t.default;
|
|
2024
|
-
r && (r._c && (r._d = !1), jt(e, r()), r._c && (r._d = !0));
|
|
2025
|
-
return;
|
|
2026
|
-
} else {
|
|
2027
|
-
n = 32;
|
|
2028
|
-
const r = t._;
|
|
2029
|
-
!r && !jn(t) ? t._ctx = q : r === 3 && q && (q.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
2030
|
-
}
|
|
2031
|
-
else
|
|
2032
|
-
D(t) ? (t = { default: t, _ctx: q }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [Rs(t)]) : n = 8);
|
|
2033
|
-
e.children = t, e.shapeFlag |= n;
|
|
2034
|
-
}
|
|
2035
|
-
function Is(...e) {
|
|
2036
|
-
const t = {};
|
|
2037
|
-
for (let n = 0; n < e.length; n++) {
|
|
2038
|
-
const s = e[n];
|
|
2039
|
-
for (const r in s)
|
|
2040
|
-
if (r === "class")
|
|
2041
|
-
t.class !== s.class && (t.class = Ot([t.class, s.class]));
|
|
2042
|
-
else if (r === "style")
|
|
2043
|
-
t.style = Pe([t.style, s.style]);
|
|
2044
|
-
else if (Qn(r)) {
|
|
2045
|
-
const o = t[r], i = s[r];
|
|
2046
|
-
i && o !== i && !(N(o) && o.includes(i)) && (t[r] = o ? [].concat(o, i) : i);
|
|
2047
|
-
} else
|
|
2048
|
-
r !== "" && (t[r] = s[r]);
|
|
2049
|
-
}
|
|
2050
|
-
return t;
|
|
2051
|
-
}
|
|
2052
|
-
let ie = null;
|
|
2053
|
-
const Ts = () => ie || q;
|
|
2054
|
-
let Nt;
|
|
2055
|
-
{
|
|
2056
|
-
const e = Qe(), t = (n, s) => {
|
|
2057
|
-
let r;
|
|
2058
|
-
return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
|
|
2059
|
-
r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
|
|
2060
|
-
};
|
|
2061
|
-
};
|
|
2062
|
-
Nt = t(
|
|
2063
|
-
"__VUE_INSTANCE_SETTERS__",
|
|
2064
|
-
(n) => ie = n
|
|
2065
|
-
), t(
|
|
2066
|
-
"__VUE_SSR_SETTERS__",
|
|
2067
|
-
(n) => Ie = n
|
|
2068
|
-
);
|
|
2069
|
-
}
|
|
2070
|
-
const Bn = (e) => {
|
|
2071
|
-
const t = ie;
|
|
2072
|
-
return Nt(e), e.scope.on(), () => {
|
|
2073
|
-
e.scope.off(), Nt(t);
|
|
2074
|
-
};
|
|
2075
|
-
};
|
|
2076
|
-
function Ms(e) {
|
|
2077
|
-
return e.vnode.shapeFlag & 4;
|
|
2078
|
-
}
|
|
2079
|
-
let Ie = !1;
|
|
2080
|
-
process.env.NODE_ENV;
|
|
2081
|
-
function $s(e) {
|
|
2082
|
-
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Hr(Pn(e.exposed)), {
|
|
2083
|
-
get(t, n) {
|
|
2084
|
-
if (n in t)
|
|
2085
|
-
return t[n];
|
|
2086
|
-
if (n in Oe)
|
|
2087
|
-
return Oe[n](e);
|
|
2088
|
-
},
|
|
2089
|
-
has(t, n) {
|
|
2090
|
-
return n in t || n in Oe;
|
|
2091
|
-
}
|
|
2092
|
-
})) : e.proxy;
|
|
2093
|
-
}
|
|
2094
|
-
const As = /(?:^|[-_])(\w)/g, Hs = (e) => e.replace(As, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
2095
|
-
function zt(e, t = !0) {
|
|
2096
|
-
return D(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
2097
|
-
}
|
|
2098
|
-
function qn(e, t, n = !1) {
|
|
2099
|
-
let s = zt(t);
|
|
2100
|
-
if (!s && t.__file) {
|
|
2101
|
-
const r = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
2102
|
-
r && (s = r[1]);
|
|
2103
|
-
}
|
|
2104
|
-
if (!s && e && e.parent) {
|
|
2105
|
-
const r = (o) => {
|
|
2106
|
-
for (const i in o)
|
|
2107
|
-
if (o[i] === t)
|
|
2108
|
-
return i;
|
|
2109
|
-
};
|
|
2110
|
-
s = r(
|
|
2111
|
-
e.components || e.parent.type.components
|
|
2112
|
-
) || r(e.appContext.components);
|
|
2113
|
-
}
|
|
2114
|
-
return s ? Hs(s) : n ? "App" : "Anonymous";
|
|
2115
|
-
}
|
|
2116
|
-
function Gn(e) {
|
|
2117
|
-
return D(e) && "__vccOpts" in e;
|
|
2118
|
-
}
|
|
2119
|
-
const K = (e, t) => {
|
|
2120
|
-
const n = Fr(e, t, Ie);
|
|
2121
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2122
|
-
const s = Ts();
|
|
2123
|
-
s && s.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
|
|
2124
|
-
}
|
|
2125
|
-
return n;
|
|
2126
|
-
};
|
|
2127
|
-
function Ls() {
|
|
2128
|
-
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
2129
|
-
return;
|
|
2130
|
-
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
2131
|
-
__vue_custom_formatter: !0,
|
|
2132
|
-
header(l) {
|
|
2133
|
-
return T(l) ? l.__isVue ? ["div", e, "VueInstance"] : $(l) ? [
|
|
2134
|
-
"div",
|
|
2135
|
-
{},
|
|
2136
|
-
["span", e, u(l)],
|
|
2137
|
-
"<",
|
|
2138
|
-
// avoid debugger accessing value affecting behavior
|
|
2139
|
-
c("_value" in l ? l._value : l),
|
|
2140
|
-
">"
|
|
2141
|
-
] : de(l) ? [
|
|
2142
|
-
"div",
|
|
2143
|
-
{},
|
|
2144
|
-
["span", e, M(l) ? "ShallowReactive" : "Reactive"],
|
|
2145
|
-
"<",
|
|
2146
|
-
c(l),
|
|
2147
|
-
`>${ee(l) ? " (readonly)" : ""}`
|
|
2148
|
-
] : ee(l) ? [
|
|
2149
|
-
"div",
|
|
2150
|
-
{},
|
|
2151
|
-
["span", e, M(l) ? "ShallowReadonly" : "Readonly"],
|
|
2152
|
-
"<",
|
|
2153
|
-
c(l),
|
|
2154
|
-
">"
|
|
2155
|
-
] : null : null;
|
|
2156
|
-
},
|
|
2157
|
-
hasBody(l) {
|
|
2158
|
-
return l && l.__isVue;
|
|
2159
|
-
},
|
|
2160
|
-
body(l) {
|
|
2161
|
-
if (l && l.__isVue)
|
|
2162
|
-
return [
|
|
2163
|
-
"div",
|
|
2164
|
-
{},
|
|
2165
|
-
...o(l.$)
|
|
2166
|
-
];
|
|
2167
|
-
}
|
|
2168
|
-
};
|
|
2169
|
-
function o(l) {
|
|
2170
|
-
const f = [];
|
|
2171
|
-
l.type.props && l.props && f.push(i("props", m(l.props))), l.setupState !== z && f.push(i("setup", l.setupState)), l.data !== z && f.push(i("data", m(l.data)));
|
|
2172
|
-
const h = a(l, "computed");
|
|
2173
|
-
h && f.push(i("computed", h));
|
|
2174
|
-
const p = a(l, "inject");
|
|
2175
|
-
return p && f.push(i("injected", p)), f.push([
|
|
2176
|
-
"div",
|
|
2177
|
-
{},
|
|
2178
|
-
[
|
|
2179
|
-
"span",
|
|
2180
|
-
{
|
|
2181
|
-
style: s.style + ";opacity:0.66"
|
|
2182
|
-
},
|
|
2183
|
-
"$ (internal): "
|
|
2184
|
-
],
|
|
2185
|
-
["object", { object: l }]
|
|
2186
|
-
]), f;
|
|
2187
|
-
}
|
|
2188
|
-
function i(l, f) {
|
|
2189
|
-
return f = A({}, f), Object.keys(f).length ? [
|
|
2190
|
-
"div",
|
|
2191
|
-
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
2192
|
-
[
|
|
2193
|
-
"div",
|
|
2194
|
-
{
|
|
2195
|
-
style: "color:#476582"
|
|
2196
|
-
},
|
|
2197
|
-
l
|
|
2198
|
-
],
|
|
2199
|
-
[
|
|
2200
|
-
"div",
|
|
2201
|
-
{
|
|
2202
|
-
style: "padding-left:1.25em"
|
|
2203
|
-
},
|
|
2204
|
-
...Object.keys(f).map((h) => [
|
|
2205
|
-
"div",
|
|
2206
|
-
{},
|
|
2207
|
-
["span", s, h + ": "],
|
|
2208
|
-
c(f[h], !1)
|
|
2209
|
-
])
|
|
2210
|
-
]
|
|
2211
|
-
] : ["span", {}];
|
|
2212
|
-
}
|
|
2213
|
-
function c(l, f = !0) {
|
|
2214
|
-
return typeof l == "number" ? ["span", t, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", s, l] : T(l) ? ["object", { object: f ? m(l) : l }] : ["span", n, String(l)];
|
|
2215
|
-
}
|
|
2216
|
-
function a(l, f) {
|
|
2217
|
-
const h = l.type;
|
|
2218
|
-
if (D(h))
|
|
2219
|
-
return;
|
|
2220
|
-
const p = {};
|
|
2221
|
-
for (const E in l.ctx)
|
|
2222
|
-
d(h, E, f) && (p[E] = l.ctx[E]);
|
|
2223
|
-
return p;
|
|
2224
|
-
}
|
|
2225
|
-
function d(l, f, h) {
|
|
2226
|
-
const p = l[h];
|
|
2227
|
-
if (N(p) && p.includes(f) || T(p) && f in p || l.extends && d(l.extends, f, h) || l.mixins && l.mixins.some((E) => d(E, f, h)))
|
|
2228
|
-
return !0;
|
|
2229
|
-
}
|
|
2230
|
-
function u(l) {
|
|
2231
|
-
return M(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
|
|
2232
|
-
}
|
|
2233
|
-
window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
|
|
2234
|
-
}
|
|
2235
|
-
process.env.NODE_ENV;
|
|
2236
|
-
process.env.NODE_ENV;
|
|
2237
|
-
process.env.NODE_ENV;
|
|
2238
|
-
/**
|
|
2239
|
-
* vue v3.5.13
|
|
2240
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
2241
|
-
* @license MIT
|
|
2242
|
-
**/
|
|
2243
|
-
function Fs() {
|
|
2244
|
-
Ls();
|
|
2245
|
-
}
|
|
2246
|
-
process.env.NODE_ENV !== "production" && Fs();
|
|
2247
|
-
let an = !1, ft;
|
|
2248
|
-
const ce = () => (an || (ft = pr(!0).run(() => ({
|
|
1
|
+
import { effectScope as ie, computed as w, ref as p, onMounted as F, onBeforeUnmount as U, defineComponent as oe, unref as b, openBlock as R, createElementBlock as X, normalizeStyle as ee, Fragment as se, renderList as ae, createCommentVNode as ue, createBlock as ce, resolveDynamicComponent as ve, markRaw as de } from "vue";
|
|
2
|
+
let te = !1, Y;
|
|
3
|
+
const M = () => (te || (Y = ie(!0).run(() => ({
|
|
2249
4
|
/** Whether any drag operation is currently active */
|
|
2250
|
-
isDragging:
|
|
2251
|
-
() =>
|
|
5
|
+
isDragging: w(
|
|
6
|
+
() => Y.draggingElements.value.length > 0
|
|
2252
7
|
),
|
|
2253
8
|
/** Active container where dragging occurs */
|
|
2254
9
|
activeContainer: {
|
|
2255
10
|
/** Component instance of active container */
|
|
2256
|
-
component:
|
|
11
|
+
component: p(null),
|
|
2257
12
|
/** DOM reference of active container */
|
|
2258
|
-
ref:
|
|
13
|
+
ref: p(null)
|
|
2259
14
|
},
|
|
2260
15
|
/** All registered draggable elements */
|
|
2261
|
-
elements:
|
|
16
|
+
elements: p([]),
|
|
2262
17
|
/** Elements currently being dragged */
|
|
2263
|
-
draggingElements:
|
|
18
|
+
draggingElements: p([]),
|
|
2264
19
|
/** Elements currently selected (for multi-drag) */
|
|
2265
|
-
selectedElements:
|
|
20
|
+
selectedElements: p([]),
|
|
2266
21
|
/** All registered drop zones */
|
|
2267
|
-
zones:
|
|
22
|
+
zones: p([]),
|
|
2268
23
|
/** Current hover states */
|
|
2269
24
|
hovered: {
|
|
2270
25
|
/** Currently hovered drop zone */
|
|
2271
|
-
zone:
|
|
26
|
+
zone: p(null),
|
|
2272
27
|
/** Currently hovered draggable element */
|
|
2273
|
-
element:
|
|
28
|
+
element: p(null)
|
|
2274
29
|
},
|
|
2275
30
|
/** Pointer position tracking */
|
|
2276
31
|
pointerPosition: {
|
|
2277
32
|
/** Current pointer coordinates */
|
|
2278
|
-
current:
|
|
33
|
+
current: p(null),
|
|
2279
34
|
/** Initial coordinates when drag started */
|
|
2280
|
-
start:
|
|
35
|
+
start: p(null),
|
|
2281
36
|
/** Offset from start position */
|
|
2282
37
|
offset: {
|
|
2283
38
|
/** Offset as percentage of container */
|
|
2284
|
-
percent:
|
|
39
|
+
percent: p(null),
|
|
2285
40
|
/** Offset in pixels */
|
|
2286
|
-
pixel:
|
|
41
|
+
pixel: p(null)
|
|
2287
42
|
}
|
|
2288
43
|
}
|
|
2289
|
-
})),
|
|
2290
|
-
const
|
|
2291
|
-
return
|
|
2292
|
-
|
|
2293
|
-
}),
|
|
2294
|
-
|
|
44
|
+
})), te = !0), Y), ge = () => {
|
|
45
|
+
const t = p(null), { draggingElements: e, pointerPosition: a, isDragging: u, activeContainer: c } = M();
|
|
46
|
+
return F(() => {
|
|
47
|
+
c.ref = t;
|
|
48
|
+
}), U(() => {
|
|
49
|
+
c.ref.value = null;
|
|
2295
50
|
}), {
|
|
2296
|
-
elementRef:
|
|
2297
|
-
draggingElements:
|
|
2298
|
-
pointerPosition:
|
|
2299
|
-
isDragging:
|
|
51
|
+
elementRef: t,
|
|
52
|
+
draggingElements: e,
|
|
53
|
+
pointerPosition: a,
|
|
54
|
+
isDragging: u
|
|
2300
55
|
};
|
|
2301
|
-
},
|
|
56
|
+
}, he = ["innerHTML"], fe = /* @__PURE__ */ oe({
|
|
2302
57
|
__name: "DefaultOverlay",
|
|
2303
|
-
setup(
|
|
2304
|
-
const { elementRef:
|
|
2305
|
-
var i,
|
|
58
|
+
setup(t) {
|
|
59
|
+
const { elementRef: e, pointerPosition: a, isDragging: u, draggingElements: c } = ge(), n = w(() => {
|
|
60
|
+
var i, h, f, y;
|
|
2306
61
|
return {
|
|
2307
|
-
transform: `translate3d(${(((i =
|
|
62
|
+
transform: `translate3d(${(((i = a.current.value) == null ? void 0 : i.x) ?? 0) - (((h = a.offset.pixel.value) == null ? void 0 : h.x) ?? 0)}px, ${(((f = a.current.value) == null ? void 0 : f.y) ?? 0) - (((y = a.offset.pixel.value) == null ? void 0 : y.y) ?? 0)}px, 0)`,
|
|
2308
63
|
zIndex: 1e3,
|
|
2309
64
|
position: "fixed",
|
|
2310
65
|
top: 0,
|
|
@@ -2312,55 +67,55 @@ const ce = () => (an || (ft = pr(!0).run(() => ({
|
|
|
2312
67
|
transition: "0.3s cubic-bezier(0.165, 0.84, 0.44, 1)"
|
|
2313
68
|
};
|
|
2314
69
|
});
|
|
2315
|
-
return (i,
|
|
70
|
+
return (i, h) => b(u) ? (R(), X("div", {
|
|
2316
71
|
key: 0,
|
|
2317
72
|
ref_key: "elementRef",
|
|
2318
|
-
ref:
|
|
2319
|
-
style:
|
|
73
|
+
ref: e,
|
|
74
|
+
style: ee(n.value)
|
|
2320
75
|
}, [
|
|
2321
|
-
(
|
|
2322
|
-
var
|
|
2323
|
-
return
|
|
2324
|
-
key:
|
|
2325
|
-
innerHTML:
|
|
2326
|
-
style:
|
|
2327
|
-
width: `${(
|
|
2328
|
-
height: `${(
|
|
76
|
+
(R(!0), X(se, null, ae(b(c), (f, y) => {
|
|
77
|
+
var l, E;
|
|
78
|
+
return R(), X("div", {
|
|
79
|
+
key: y,
|
|
80
|
+
innerHTML: f.initialHTML,
|
|
81
|
+
style: ee({
|
|
82
|
+
width: `${(l = f.initialRect) == null ? void 0 : l.width}px`,
|
|
83
|
+
height: `${(E = f.initialRect) == null ? void 0 : E.height}px`
|
|
2329
84
|
})
|
|
2330
|
-
}, null, 12,
|
|
85
|
+
}, null, 12, he);
|
|
2331
86
|
}), 128))
|
|
2332
|
-
], 4)) :
|
|
87
|
+
], 4)) : ue("", !0);
|
|
2333
88
|
}
|
|
2334
|
-
}),
|
|
89
|
+
}), Le = /* @__PURE__ */ oe({
|
|
2335
90
|
__name: "DragOverlay",
|
|
2336
|
-
setup(
|
|
2337
|
-
const { activeContainer:
|
|
2338
|
-
() =>
|
|
91
|
+
setup(t) {
|
|
92
|
+
const { activeContainer: e } = M(), a = w(
|
|
93
|
+
() => e.component.value ?? fe
|
|
2339
94
|
);
|
|
2340
|
-
return (
|
|
95
|
+
return (u, c) => (R(), ce(ve(a.value)));
|
|
2341
96
|
}
|
|
2342
|
-
}),
|
|
97
|
+
}), me = "data-dnd-draggable", pe = (t) => {
|
|
2343
98
|
const {
|
|
2344
|
-
elements:
|
|
2345
|
-
draggingElements:
|
|
2346
|
-
hovered:
|
|
2347
|
-
selectedElements:
|
|
2348
|
-
isDragging:
|
|
2349
|
-
} =
|
|
99
|
+
elements: e,
|
|
100
|
+
draggingElements: a,
|
|
101
|
+
hovered: u,
|
|
102
|
+
selectedElements: c,
|
|
103
|
+
isDragging: n
|
|
104
|
+
} = M(), i = p(null), h = w(
|
|
2350
105
|
() => {
|
|
2351
|
-
var
|
|
2352
|
-
return ((
|
|
106
|
+
var m;
|
|
107
|
+
return ((m = u.element.value) == null ? void 0 : m.node) === i.value;
|
|
2353
108
|
}
|
|
2354
|
-
),
|
|
2355
|
-
() =>
|
|
2356
|
-
),
|
|
2357
|
-
if (!i.value || !
|
|
109
|
+
), f = w(
|
|
110
|
+
() => a.value.some((m) => m.node === i.value)
|
|
111
|
+
), y = w(() => {
|
|
112
|
+
if (!i.value || !n.value)
|
|
2358
113
|
return !1;
|
|
2359
|
-
const
|
|
2360
|
-
(
|
|
114
|
+
const m = e.value.find(
|
|
115
|
+
(D) => D.node === i.value
|
|
2361
116
|
);
|
|
2362
|
-
return
|
|
2363
|
-
(
|
|
117
|
+
return m != null && m.groups.length ? !a.value.some((D) => D.groups.length ? !D.groups.some(
|
|
118
|
+
(r) => m.groups.includes(r)
|
|
2364
119
|
) : !1) : !0;
|
|
2365
120
|
});
|
|
2366
121
|
return {
|
|
@@ -2368,44 +123,44 @@ const ce = () => (an || (ft = pr(!0).run(() => ({
|
|
|
2368
123
|
registerElement: () => {
|
|
2369
124
|
if (!i.value)
|
|
2370
125
|
throw new Error("ElementRef is not set");
|
|
2371
|
-
|
|
126
|
+
e.value.push({
|
|
2372
127
|
node: i.value,
|
|
2373
|
-
groups: (
|
|
2374
|
-
layer: (
|
|
2375
|
-
defaultLayer: (
|
|
2376
|
-
events: (
|
|
2377
|
-
data: (
|
|
2378
|
-
}), i.value.setAttribute(
|
|
128
|
+
groups: (t == null ? void 0 : t.groups) ?? [],
|
|
129
|
+
layer: (t == null ? void 0 : t.layer) ?? null,
|
|
130
|
+
defaultLayer: (t == null ? void 0 : t.layer) ?? null,
|
|
131
|
+
events: (t == null ? void 0 : t.events) ?? {},
|
|
132
|
+
data: (t == null ? void 0 : t.data) ?? void 0
|
|
133
|
+
}), i.value.setAttribute(me, "true");
|
|
2379
134
|
},
|
|
2380
135
|
unregisterElement: () => {
|
|
2381
|
-
const
|
|
2382
|
-
(
|
|
136
|
+
const m = e.value.findIndex(
|
|
137
|
+
(r) => r.node === i.value
|
|
2383
138
|
);
|
|
2384
|
-
|
|
2385
|
-
const
|
|
2386
|
-
(
|
|
139
|
+
m !== -1 && e.value.splice(m, 1);
|
|
140
|
+
const D = c.value.findIndex(
|
|
141
|
+
(r) => r.node === i.value
|
|
2387
142
|
);
|
|
2388
|
-
|
|
143
|
+
D !== -1 && c.value.splice(D, 1);
|
|
2389
144
|
},
|
|
2390
|
-
isDragging:
|
|
2391
|
-
isOvered:
|
|
2392
|
-
isAllowed:
|
|
145
|
+
isDragging: f,
|
|
146
|
+
isOvered: h,
|
|
147
|
+
isAllowed: y
|
|
2393
148
|
};
|
|
2394
|
-
},
|
|
2395
|
-
let
|
|
2396
|
-
const
|
|
149
|
+
}, ye = () => {
|
|
150
|
+
let t = "", e = "", a = "";
|
|
151
|
+
const u = () => {
|
|
2397
152
|
const i = document.body;
|
|
2398
|
-
|
|
2399
|
-
},
|
|
153
|
+
t = i.style.userSelect, e = i.style.touchAction, a = i.style.overscrollBehavior, i.style.userSelect = "none", i.style.touchAction = "none", i.style.overscrollBehavior = "none", window.addEventListener("contextmenu", n), window.addEventListener("selectstart", n), window.addEventListener("touchstart", n), window.addEventListener("touchmove", n);
|
|
154
|
+
}, c = () => {
|
|
2400
155
|
const i = document.body;
|
|
2401
|
-
i.style.userSelect =
|
|
2402
|
-
},
|
|
156
|
+
i.style.userSelect = t, i.style.touchAction = e, i.style.overscrollBehavior = a, window.removeEventListener("contextmenu", n), window.removeEventListener("selectstart", n), window.removeEventListener("touchstart", n), window.removeEventListener("touchmove", n);
|
|
157
|
+
}, n = (i) => i.preventDefault();
|
|
2403
158
|
return {
|
|
2404
|
-
disableInteractions:
|
|
2405
|
-
enableInteractions:
|
|
159
|
+
disableInteractions: u,
|
|
160
|
+
enableInteractions: c
|
|
2406
161
|
};
|
|
2407
|
-
},
|
|
2408
|
-
if (!
|
|
162
|
+
}, ne = (t, e) => t.x < e.x + e.width && t.x + t.width > e.x && t.y < e.y + e.height && t.y + t.height > e.y, z = (t) => {
|
|
163
|
+
if (!t)
|
|
2409
164
|
return {
|
|
2410
165
|
x: 0,
|
|
2411
166
|
y: 0,
|
|
@@ -2416,286 +171,286 @@ const ce = () => (an || (ft = pr(!0).run(() => ({
|
|
|
2416
171
|
right: 0,
|
|
2417
172
|
top: 0
|
|
2418
173
|
};
|
|
2419
|
-
const
|
|
174
|
+
const e = t.getBoundingClientRect();
|
|
2420
175
|
return {
|
|
2421
|
-
bottom:
|
|
2422
|
-
left:
|
|
2423
|
-
right:
|
|
2424
|
-
top:
|
|
2425
|
-
x:
|
|
2426
|
-
y:
|
|
2427
|
-
width:
|
|
2428
|
-
height:
|
|
176
|
+
bottom: e.bottom,
|
|
177
|
+
left: e.left,
|
|
178
|
+
right: e.right,
|
|
179
|
+
top: e.top,
|
|
180
|
+
x: e.x,
|
|
181
|
+
y: e.y,
|
|
182
|
+
width: e.width,
|
|
183
|
+
height: e.height
|
|
2429
184
|
};
|
|
2430
|
-
},
|
|
2431
|
-
x:
|
|
2432
|
-
y:
|
|
2433
|
-
}),
|
|
2434
|
-
const
|
|
185
|
+
}, $ = (t) => ({
|
|
186
|
+
x: t.x + t.width / 2,
|
|
187
|
+
y: t.y + t.height / 2
|
|
188
|
+
}), Ee = (t, e) => {
|
|
189
|
+
const a = z(t);
|
|
2435
190
|
return {
|
|
2436
191
|
pixel: {
|
|
2437
|
-
x:
|
|
2438
|
-
y:
|
|
192
|
+
x: e.x - a.x,
|
|
193
|
+
y: e.y - a.y
|
|
2439
194
|
},
|
|
2440
195
|
percent: {
|
|
2441
|
-
x: (
|
|
2442
|
-
y: (
|
|
196
|
+
x: (e.x - a.x) / a.width * 100,
|
|
197
|
+
y: (e.y - a.y) / a.height * 100
|
|
2443
198
|
}
|
|
2444
199
|
};
|
|
2445
|
-
},
|
|
2446
|
-
const
|
|
2447
|
-
return Math.sqrt(
|
|
2448
|
-
},
|
|
2449
|
-
const
|
|
200
|
+
}, re = (t, e) => {
|
|
201
|
+
const a = e.x - t.x, u = e.y - t.y;
|
|
202
|
+
return Math.sqrt(a * a + u * u);
|
|
203
|
+
}, C = (t, e) => t ? e.contains(t) : !1, Pe = (t) => {
|
|
204
|
+
const e = M();
|
|
2450
205
|
return {
|
|
2451
|
-
onPointerStart: (
|
|
2452
|
-
|
|
2453
|
-
x:
|
|
2454
|
-
y:
|
|
206
|
+
onPointerStart: (n) => {
|
|
207
|
+
e.pointerPosition.start.value = { x: n.clientX, y: n.clientY }, e.pointerPosition.current.value = {
|
|
208
|
+
x: n.clientX,
|
|
209
|
+
y: n.clientY
|
|
2455
210
|
};
|
|
2456
|
-
const { pixel: i, percent:
|
|
2457
|
-
x:
|
|
2458
|
-
y:
|
|
211
|
+
const { pixel: i, percent: h } = Ee(t.value, {
|
|
212
|
+
x: n.clientX,
|
|
213
|
+
y: n.clientY
|
|
2459
214
|
});
|
|
2460
|
-
|
|
215
|
+
e.pointerPosition.offset.pixel.value = i, e.pointerPosition.offset.percent.value = h;
|
|
2461
216
|
},
|
|
2462
|
-
onPointerMove: (
|
|
2463
|
-
|
|
2464
|
-
x:
|
|
2465
|
-
y:
|
|
217
|
+
onPointerMove: (n) => {
|
|
218
|
+
e.pointerPosition.current.value = {
|
|
219
|
+
x: n.clientX,
|
|
220
|
+
y: n.clientY
|
|
2466
221
|
};
|
|
2467
222
|
},
|
|
2468
223
|
onPointerEnd: () => {
|
|
2469
|
-
|
|
224
|
+
e.pointerPosition.current.value = null, e.pointerPosition.start.value = null, e.pointerPosition.offset.pixel.value = null, e.pointerPosition.offset.percent.value = null;
|
|
2470
225
|
}
|
|
2471
226
|
};
|
|
2472
|
-
},
|
|
2473
|
-
const
|
|
2474
|
-
let
|
|
2475
|
-
const i = (
|
|
2476
|
-
var
|
|
2477
|
-
const
|
|
2478
|
-
(
|
|
227
|
+
}, we = (t) => {
|
|
228
|
+
const e = M(), { onPointerStart: a, onPointerMove: u, onPointerEnd: c } = Pe(t);
|
|
229
|
+
let n = null;
|
|
230
|
+
const i = (r) => {
|
|
231
|
+
var v, L;
|
|
232
|
+
const d = e.selectedElements.value.some(
|
|
233
|
+
(P) => P.node === r
|
|
2479
234
|
);
|
|
2480
|
-
if (
|
|
2481
|
-
return
|
|
2482
|
-
var
|
|
235
|
+
if (e.selectedElements.value.length && d)
|
|
236
|
+
return e.selectedElements.value.map((P) => {
|
|
237
|
+
var S, T;
|
|
2483
238
|
return {
|
|
2484
|
-
...
|
|
2485
|
-
initialHTML: ((
|
|
2486
|
-
initialRect: (
|
|
239
|
+
...P,
|
|
240
|
+
initialHTML: ((S = P.node) == null ? void 0 : S.outerHTML) ?? "",
|
|
241
|
+
initialRect: (T = P.node) == null ? void 0 : T.getBoundingClientRect()
|
|
2487
242
|
};
|
|
2488
243
|
});
|
|
2489
|
-
|
|
2490
|
-
const
|
|
2491
|
-
(
|
|
244
|
+
e.selectedElements.value = [];
|
|
245
|
+
const g = e.elements.value.find(
|
|
246
|
+
(P) => P.node === r
|
|
2492
247
|
);
|
|
2493
|
-
return
|
|
248
|
+
return g ? [
|
|
2494
249
|
{
|
|
2495
|
-
...
|
|
2496
|
-
initialHTML: ((
|
|
2497
|
-
initialRect: (
|
|
250
|
+
...g,
|
|
251
|
+
initialHTML: ((v = g.node) == null ? void 0 : v.outerHTML) ?? "",
|
|
252
|
+
initialRect: (L = g.node) == null ? void 0 : L.getBoundingClientRect()
|
|
2498
253
|
}
|
|
2499
254
|
] : [];
|
|
2500
|
-
},
|
|
2501
|
-
const
|
|
255
|
+
}, h = (r, d) => {
|
|
256
|
+
const g = Math.max(
|
|
2502
257
|
0,
|
|
2503
|
-
Math.min(
|
|
2504
|
-
),
|
|
258
|
+
Math.min(r.x + r.width, d.x + d.width) - Math.max(r.x, d.x)
|
|
259
|
+
), v = Math.max(
|
|
2505
260
|
0,
|
|
2506
|
-
Math.min(
|
|
2507
|
-
),
|
|
2508
|
-
return (
|
|
2509
|
-
},
|
|
2510
|
-
var
|
|
2511
|
-
const
|
|
2512
|
-
if (!
|
|
2513
|
-
(
|
|
2514
|
-
) ||
|
|
2515
|
-
(
|
|
2516
|
-
(
|
|
261
|
+
Math.min(r.y + r.height, d.y + d.height) - Math.max(r.y, d.y)
|
|
262
|
+
), L = g * v, P = r.width * r.height, S = d.width * d.height;
|
|
263
|
+
return (L / P * 100 + L / S * 100) / 2;
|
|
264
|
+
}, f = () => {
|
|
265
|
+
var q, N, B, V, j, G, J, K, Q, W;
|
|
266
|
+
const r = z(e.activeContainer.ref.value), d = $(r), g = ((q = e.pointerPosition.current.value) == null ? void 0 : q.x) ?? 0, v = ((N = e.pointerPosition.current.value) == null ? void 0 : N.y) ?? 0, P = !(r && g >= r.x && g <= r.x + r.width && v >= r.y && v <= r.y + r.height), S = e.draggingElements.value.map((o) => o.node), T = e.elements.value.filter((o) => {
|
|
267
|
+
if (!o.node || S.some(
|
|
268
|
+
(x) => x && C(o.node, x)
|
|
269
|
+
) || o.groups.length && !!e.draggingElements.value.some(
|
|
270
|
+
(I) => I.groups.length ? !I.groups.some(
|
|
271
|
+
(_) => o.groups.includes(_)
|
|
2517
272
|
) : !1
|
|
2518
273
|
))
|
|
2519
274
|
return !1;
|
|
2520
|
-
const
|
|
2521
|
-
return
|
|
2522
|
-
}).map((
|
|
2523
|
-
const
|
|
2524
|
-
(
|
|
2525
|
-
|
|
2526
|
-
|
|
275
|
+
const s = z(o.node);
|
|
276
|
+
return s && r && ne(s, r);
|
|
277
|
+
}).map((o) => {
|
|
278
|
+
const s = z(o.node), x = $(s), I = g >= s.x && g <= s.x + s.width && v >= s.y && v <= s.y + s.height, _ = h(s, r), Z = re(d, x), A = e.elements.value.filter(
|
|
279
|
+
(O) => O !== o && O.node && o.node && C(
|
|
280
|
+
o.node,
|
|
281
|
+
O.node
|
|
2527
282
|
)
|
|
2528
283
|
).length;
|
|
2529
284
|
return {
|
|
2530
|
-
element:
|
|
2531
|
-
isPointerInElement:
|
|
2532
|
-
overlapPercent:
|
|
2533
|
-
depth:
|
|
2534
|
-
centerDistance:
|
|
285
|
+
element: o,
|
|
286
|
+
isPointerInElement: I,
|
|
287
|
+
overlapPercent: _,
|
|
288
|
+
depth: A,
|
|
289
|
+
centerDistance: Z
|
|
2535
290
|
};
|
|
2536
|
-
}).sort((
|
|
2537
|
-
if (!
|
|
2538
|
-
if (
|
|
2539
|
-
return
|
|
2540
|
-
if (
|
|
2541
|
-
return
|
|
291
|
+
}).sort((o, s) => {
|
|
292
|
+
if (!P) {
|
|
293
|
+
if (o.isPointerInElement && s.isPointerInElement)
|
|
294
|
+
return s.depth - o.depth;
|
|
295
|
+
if (o.isPointerInElement !== s.isPointerInElement)
|
|
296
|
+
return o.isPointerInElement ? -1 : 1;
|
|
2542
297
|
}
|
|
2543
|
-
return Math.abs(
|
|
2544
|
-
}),
|
|
2545
|
-
if (!
|
|
2546
|
-
(
|
|
2547
|
-
) ||
|
|
298
|
+
return Math.abs(o.overlapPercent - s.overlapPercent) <= 1 ? o.centerDistance - s.centerDistance : s.overlapPercent - o.overlapPercent;
|
|
299
|
+
}), le = e.zones.value.filter((o) => {
|
|
300
|
+
if (!o.node || S.some(
|
|
301
|
+
(x) => x && C(o.node, x)
|
|
302
|
+
) || o.groups.length && !!e.draggingElements.value.some((I) => I.groups.length ? !I.groups.some((_) => o.groups.includes(_)) : !1))
|
|
2548
303
|
return !1;
|
|
2549
|
-
const
|
|
2550
|
-
return
|
|
2551
|
-
}).map((
|
|
2552
|
-
const
|
|
2553
|
-
(
|
|
304
|
+
const s = z(o.node);
|
|
305
|
+
return s && r && ne(s, r);
|
|
306
|
+
}).map((o) => {
|
|
307
|
+
const s = z(o.node), x = $(s), I = g >= s.x && g <= s.x + s.width && v >= s.y && v <= s.y + s.height, _ = h(s, r), Z = re(d, x), A = e.zones.value.filter(
|
|
308
|
+
(O) => O !== o && O.node && o.node && C(o.node, O.node)
|
|
2554
309
|
).length;
|
|
2555
310
|
return {
|
|
2556
|
-
zone:
|
|
2557
|
-
isPointerInElement:
|
|
2558
|
-
overlapPercent:
|
|
2559
|
-
depth:
|
|
2560
|
-
centerDistance:
|
|
311
|
+
zone: o,
|
|
312
|
+
isPointerInElement: I,
|
|
313
|
+
overlapPercent: _,
|
|
314
|
+
depth: A,
|
|
315
|
+
centerDistance: Z
|
|
2561
316
|
};
|
|
2562
|
-
}).sort((
|
|
2563
|
-
if (!
|
|
2564
|
-
if (
|
|
2565
|
-
return
|
|
2566
|
-
if (
|
|
2567
|
-
return
|
|
317
|
+
}).sort((o, s) => {
|
|
318
|
+
if (!P) {
|
|
319
|
+
if (o.isPointerInElement && s.isPointerInElement)
|
|
320
|
+
return s.depth - o.depth;
|
|
321
|
+
if (o.isPointerInElement !== s.isPointerInElement)
|
|
322
|
+
return o.isPointerInElement ? -1 : 1;
|
|
2568
323
|
}
|
|
2569
|
-
return Math.abs(
|
|
2570
|
-
}),
|
|
2571
|
-
|
|
2572
|
-
},
|
|
2573
|
-
|
|
2574
|
-
},
|
|
2575
|
-
|
|
324
|
+
return Math.abs(o.overlapPercent - s.overlapPercent) <= 1 ? o.centerDistance - s.centerDistance : s.overlapPercent - o.overlapPercent;
|
|
325
|
+
}), k = e.hovered.element.value, H = e.hovered.zone.value;
|
|
326
|
+
e.hovered.element.value = ((B = T[0]) == null ? void 0 : B.element) ?? null, e.hovered.zone.value = ((V = le[0]) == null ? void 0 : V.zone) ?? null, e.hovered.element.value !== k && ((j = k == null ? void 0 : k.events) != null && j.onLeave && k.events.onLeave(e), (J = (G = e.hovered.element.value) == null ? void 0 : G.events) != null && J.onHover && e.hovered.element.value.events.onHover(e)), e.hovered.zone.value !== H && ((K = H == null ? void 0 : H.events) != null && K.onLeave && H.events.onLeave(e), (W = (Q = e.hovered.zone.value) == null ? void 0 : Q.events) != null && W.onHover && e.hovered.zone.value.events.onHover(e)), n = requestAnimationFrame(f);
|
|
327
|
+
}, y = () => {
|
|
328
|
+
f();
|
|
329
|
+
}, l = () => {
|
|
330
|
+
n !== null && (cancelAnimationFrame(n), n = null);
|
|
2576
331
|
};
|
|
2577
332
|
return {
|
|
2578
|
-
activate: (
|
|
2579
|
-
|
|
333
|
+
activate: (r) => {
|
|
334
|
+
e.draggingElements.value = i(t.value), a(r), y();
|
|
2580
335
|
},
|
|
2581
|
-
track: (
|
|
2582
|
-
|
|
336
|
+
track: (r) => {
|
|
337
|
+
u(r);
|
|
2583
338
|
},
|
|
2584
339
|
deactivate: () => {
|
|
2585
|
-
var
|
|
2586
|
-
|
|
2587
|
-
(
|
|
2588
|
-
var
|
|
2589
|
-
return (
|
|
340
|
+
var r, d;
|
|
341
|
+
c(), e.hovered.zone.value ? (d = (r = e.hovered.zone.value.events).onDrop) == null || d.call(r, e) : e.draggingElements.value.forEach(
|
|
342
|
+
(g) => {
|
|
343
|
+
var v, L;
|
|
344
|
+
return (L = (v = g.events).onEnd) == null ? void 0 : L.call(v, e);
|
|
2590
345
|
}
|
|
2591
|
-
),
|
|
346
|
+
), e.draggingElements.value = [], e.selectedElements.value = [], e.hovered.zone.value = null, e.hovered.element.value = null, l();
|
|
2592
347
|
}
|
|
2593
348
|
};
|
|
2594
|
-
},
|
|
349
|
+
}, Ie = (t) => {
|
|
2595
350
|
const {
|
|
2596
|
-
elementRef:
|
|
2597
|
-
registerElement:
|
|
2598
|
-
unregisterElement:
|
|
2599
|
-
isDragging:
|
|
2600
|
-
isOvered:
|
|
351
|
+
elementRef: e,
|
|
352
|
+
registerElement: a,
|
|
353
|
+
unregisterElement: u,
|
|
354
|
+
isDragging: c,
|
|
355
|
+
isOvered: n,
|
|
2601
356
|
isAllowed: i
|
|
2602
|
-
} =
|
|
2603
|
-
|
|
2604
|
-
},
|
|
2605
|
-
|
|
2606
|
-
},
|
|
2607
|
-
|
|
2608
|
-
},
|
|
2609
|
-
|
|
357
|
+
} = pe(t), { disableInteractions: h, enableInteractions: f } = ye(), y = M(), { activate: l, track: E, deactivate: m } = we(e), D = (v) => {
|
|
358
|
+
t != null && t.container && (y.activeContainer.component.value = de(t.container)), h(), l(v), document.addEventListener("pointermove", r), document.addEventListener("pointerup", g), document.addEventListener("wheel", d);
|
|
359
|
+
}, r = (v) => {
|
|
360
|
+
E(v);
|
|
361
|
+
}, d = (v) => {
|
|
362
|
+
E(v);
|
|
363
|
+
}, g = () => {
|
|
364
|
+
y.activeContainer.component.value = null, f(), m(), document.removeEventListener("pointermove", r), document.removeEventListener("pointerup", g), document.removeEventListener("wheel", d);
|
|
2610
365
|
};
|
|
2611
|
-
return
|
|
2612
|
-
pointerPosition:
|
|
2613
|
-
elementRef:
|
|
2614
|
-
isDragging:
|
|
2615
|
-
isOvered:
|
|
366
|
+
return F(a), U(u), {
|
|
367
|
+
pointerPosition: y.pointerPosition,
|
|
368
|
+
elementRef: e,
|
|
369
|
+
isDragging: c,
|
|
370
|
+
isOvered: n,
|
|
2616
371
|
isAllowed: i,
|
|
2617
|
-
handleDragStart:
|
|
372
|
+
handleDragStart: D
|
|
2618
373
|
};
|
|
2619
|
-
},
|
|
2620
|
-
const { zones:
|
|
2621
|
-
var
|
|
2622
|
-
return ((
|
|
2623
|
-
}),
|
|
2624
|
-
if (!
|
|
374
|
+
}, xe = (t) => {
|
|
375
|
+
const { zones: e, hovered: a, draggingElements: u, isDragging: c } = M(), n = p(null), i = w(() => {
|
|
376
|
+
var l;
|
|
377
|
+
return ((l = a.zone.value) == null ? void 0 : l.node) === n.value;
|
|
378
|
+
}), h = w(() => {
|
|
379
|
+
if (!n.value || !c.value)
|
|
2625
380
|
return !1;
|
|
2626
|
-
const
|
|
2627
|
-
(
|
|
381
|
+
const l = e.value.find(
|
|
382
|
+
(E) => E.node === n.value
|
|
2628
383
|
);
|
|
2629
|
-
return
|
|
2630
|
-
(
|
|
384
|
+
return l != null && l.groups.length ? !u.value.some((E) => E.groups.length ? !E.groups.some(
|
|
385
|
+
(m) => l.groups.includes(m)
|
|
2631
386
|
) : !1) : !0;
|
|
2632
387
|
});
|
|
2633
|
-
return { elementRef:
|
|
2634
|
-
if (!
|
|
388
|
+
return { elementRef: n, registerZone: () => {
|
|
389
|
+
if (!n.value)
|
|
2635
390
|
throw new Error("elementRef is not set");
|
|
2636
|
-
|
|
2637
|
-
node:
|
|
2638
|
-
groups: (
|
|
2639
|
-
events: (
|
|
2640
|
-
data: (
|
|
2641
|
-
}),
|
|
391
|
+
e.value.push({
|
|
392
|
+
node: n.value,
|
|
393
|
+
groups: (t == null ? void 0 : t.groups) ?? [],
|
|
394
|
+
events: (t == null ? void 0 : t.events) ?? {},
|
|
395
|
+
data: (t == null ? void 0 : t.data) ?? void 0
|
|
396
|
+
}), n.value.setAttribute("data-dnd-droppable", "true");
|
|
2642
397
|
}, unregisterZone: () => {
|
|
2643
|
-
if (!
|
|
398
|
+
if (!n.value)
|
|
2644
399
|
throw new Error("elementRef is not set");
|
|
2645
|
-
const
|
|
2646
|
-
(
|
|
400
|
+
const l = e.value.findIndex(
|
|
401
|
+
(E) => E.node === n.value
|
|
2647
402
|
);
|
|
2648
|
-
|
|
2649
|
-
}, isOvered: i, isAllowed:
|
|
2650
|
-
},
|
|
2651
|
-
const { elementRef:
|
|
2652
|
-
return
|
|
2653
|
-
},
|
|
2654
|
-
const { selectedElements:
|
|
2655
|
-
() =>
|
|
2656
|
-
),
|
|
2657
|
-
() =>
|
|
2658
|
-
),
|
|
2659
|
-
(
|
|
2660
|
-
|
|
2661
|
-
|
|
403
|
+
l !== -1 && e.value.splice(l, 1);
|
|
404
|
+
}, isOvered: i, isAllowed: h };
|
|
405
|
+
}, Ce = (t) => {
|
|
406
|
+
const { elementRef: e, registerZone: a, unregisterZone: u, isOvered: c, isAllowed: n } = xe(t);
|
|
407
|
+
return F(a), U(u), { elementRef: e, isOvered: c, isAllowed: n };
|
|
408
|
+
}, Me = (t) => {
|
|
409
|
+
const { selectedElements: e, elements: a } = M(), u = w(
|
|
410
|
+
() => a.value.find((l) => l.node === t.value)
|
|
411
|
+
), c = w(
|
|
412
|
+
() => e.value.some((l) => l.node === t.value)
|
|
413
|
+
), n = w(() => t.value ? e.value.some(
|
|
414
|
+
(l) => l.node && C(
|
|
415
|
+
l.node,
|
|
416
|
+
t.value
|
|
2662
417
|
)
|
|
2663
|
-
) : !1), i =
|
|
2664
|
-
(
|
|
2665
|
-
|
|
2666
|
-
|
|
418
|
+
) : !1), i = w(() => t.value ? e.value.some(
|
|
419
|
+
(l) => l.node && C(
|
|
420
|
+
t.value,
|
|
421
|
+
l.node
|
|
2667
422
|
)
|
|
2668
|
-
) : !1),
|
|
2669
|
-
|
|
2670
|
-
(
|
|
423
|
+
) : !1), h = () => {
|
|
424
|
+
u.value && (e.value = e.value.filter(
|
|
425
|
+
(l) => l.node !== t.value
|
|
2671
426
|
));
|
|
2672
|
-
},
|
|
2673
|
-
|
|
2674
|
-
(
|
|
2675
|
-
|
|
2676
|
-
|
|
427
|
+
}, f = () => {
|
|
428
|
+
u.value && (n.value && (e.value = e.value.filter(
|
|
429
|
+
(l) => l.node && !C(
|
|
430
|
+
l.node,
|
|
431
|
+
t.value
|
|
2677
432
|
)
|
|
2678
|
-
)), i.value && (
|
|
2679
|
-
(
|
|
2680
|
-
|
|
2681
|
-
|
|
433
|
+
)), i.value && (e.value = e.value.filter(
|
|
434
|
+
(l) => l.node && !C(
|
|
435
|
+
t.value,
|
|
436
|
+
l.node
|
|
2682
437
|
)
|
|
2683
|
-
)),
|
|
438
|
+
)), e.value.push(u.value));
|
|
2684
439
|
};
|
|
2685
440
|
return {
|
|
2686
|
-
handleUnselect:
|
|
2687
|
-
handleSelect:
|
|
441
|
+
handleUnselect: h,
|
|
442
|
+
handleSelect: f,
|
|
2688
443
|
handleToggleSelect: () => {
|
|
2689
|
-
|
|
444
|
+
u.value && (e.value.some((l) => l.node === t.value) ? h() : f());
|
|
2690
445
|
},
|
|
2691
|
-
isSelected:
|
|
2692
|
-
isParentOfSelected:
|
|
446
|
+
isSelected: c,
|
|
447
|
+
isParentOfSelected: n
|
|
2693
448
|
};
|
|
2694
449
|
};
|
|
2695
450
|
export {
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
451
|
+
Le as DragOverlay,
|
|
452
|
+
M as useDnDStore,
|
|
453
|
+
Ie as useDraggable,
|
|
454
|
+
Ce as useDroppable,
|
|
455
|
+
Me as useSelection
|
|
2701
456
|
};
|