@ddd-tool/domain-designer-generator 0.0.0-alpha.5 → 0.0.0-alpha.6
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/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const j = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
|
14
14
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
15
15
|
const oe = () => {
|
|
16
16
|
}, po = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
17
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), T = Object.assign, fo = Object.prototype.hasOwnProperty,
|
|
17
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), T = Object.assign, fo = Object.prototype.hasOwnProperty, $ = (e, t) => fo.call(e, t), C = Array.isArray, _e = (e) => nt(e) === "[object Map]", ho = (e) => nt(e) === "[object Set]", O = (e) => typeof e == "function", M = (e) => typeof e == "string", Ae = (e) => typeof e == "symbol", R = (e) => e !== null && typeof e == "object", mo = (e) => (R(e) || O(e)) && O(e.then) && O(e.catch), go = Object.prototype.toString, nt = (e) => go.call(e), dn = (e) => nt(e).slice(8, -1), _o = (e) => nt(e) === "[object Object]", jt = (e) => M(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, vo = (e) => {
|
|
18
18
|
const t = /* @__PURE__ */ Object.create(null);
|
|
19
19
|
return (n) => t[n] || (t[n] = e(n));
|
|
20
20
|
}, bo = vo((e) => e.charAt(0).toUpperCase() + e.slice(1)), Q = (e, t) => !Object.is(e, t), Eo = (e, t, n, o = !1) => {
|
|
@@ -28,7 +28,7 @@ const oe = () => {
|
|
|
28
28
|
let tn;
|
|
29
29
|
const ot = () => tn || (tn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
30
30
|
function kt(e) {
|
|
31
|
-
if (
|
|
31
|
+
if (C(e)) {
|
|
32
32
|
const t = {};
|
|
33
33
|
for (let n = 0; n < e.length; n++) {
|
|
34
34
|
const o = e[n], r = M(o) ? yo(o) : kt(o);
|
|
@@ -54,7 +54,7 @@ function Ht(e) {
|
|
|
54
54
|
let t = "";
|
|
55
55
|
if (M(e))
|
|
56
56
|
t = e;
|
|
57
|
-
else if (
|
|
57
|
+
else if (C(e))
|
|
58
58
|
for (let n = 0; n < e.length; n++) {
|
|
59
59
|
const o = Ht(e[n]);
|
|
60
60
|
o && (t += o + " ");
|
|
@@ -71,9 +71,9 @@ function Ht(e) {
|
|
|
71
71
|
**/
|
|
72
72
|
function W(e, ...t) {
|
|
73
73
|
}
|
|
74
|
-
let
|
|
74
|
+
let N;
|
|
75
75
|
const ut = /* @__PURE__ */ new WeakSet();
|
|
76
|
-
class
|
|
76
|
+
class $o {
|
|
77
77
|
constructor(t) {
|
|
78
78
|
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;
|
|
79
79
|
}
|
|
@@ -93,14 +93,14 @@ class So {
|
|
|
93
93
|
if (!(this.flags & 1))
|
|
94
94
|
return this.fn();
|
|
95
95
|
this.flags |= 2, nn(this), gn(this);
|
|
96
|
-
const t =
|
|
97
|
-
|
|
96
|
+
const t = N, n = k;
|
|
97
|
+
N = this, k = !0;
|
|
98
98
|
try {
|
|
99
99
|
return this.fn();
|
|
100
100
|
} finally {
|
|
101
|
-
process.env.NODE_ENV !== "production" &&
|
|
101
|
+
process.env.NODE_ENV !== "production" && N !== this && W(
|
|
102
102
|
"Active effect was not restored correctly - this is likely a Vue internal bug."
|
|
103
|
-
), _n(this),
|
|
103
|
+
), _n(this), N = t, k = n, this.flags &= -3;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
stop() {
|
|
@@ -168,7 +168,7 @@ function _n(e) {
|
|
|
168
168
|
let t, n = e.depsTail, o = n;
|
|
169
169
|
for (; o; ) {
|
|
170
170
|
const r = o.prevDep;
|
|
171
|
-
o.version === -1 ? (o === n && (n = r), Kt(o),
|
|
171
|
+
o.version === -1 ? (o === n && (n = r), Kt(o), So(o)) : t = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = r;
|
|
172
172
|
}
|
|
173
173
|
e.deps = t, e.depsTail = n;
|
|
174
174
|
}
|
|
@@ -179,16 +179,16 @@ function Nt(e) {
|
|
|
179
179
|
return !!e._dirty;
|
|
180
180
|
}
|
|
181
181
|
function vn(e) {
|
|
182
|
-
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion ===
|
|
182
|
+
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Se))
|
|
183
183
|
return;
|
|
184
|
-
e.globalVersion =
|
|
184
|
+
e.globalVersion = Se;
|
|
185
185
|
const t = e.dep;
|
|
186
186
|
if (e.flags |= 2, t.version > 0 && !e.isSSR && e.deps && !Nt(e)) {
|
|
187
187
|
e.flags &= -3;
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
|
-
const n =
|
|
191
|
-
|
|
190
|
+
const n = N, o = k;
|
|
191
|
+
N = e, k = !0;
|
|
192
192
|
try {
|
|
193
193
|
gn(e);
|
|
194
194
|
const r = e.fn(e._value);
|
|
@@ -196,7 +196,7 @@ function vn(e) {
|
|
|
196
196
|
} catch (r) {
|
|
197
197
|
throw t.version++, r;
|
|
198
198
|
} finally {
|
|
199
|
-
|
|
199
|
+
N = n, k = o, _n(e), e.flags &= -3;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
function Kt(e, t = !1) {
|
|
@@ -208,7 +208,7 @@ function Kt(e, t = !1) {
|
|
|
208
208
|
}
|
|
209
209
|
!t && !--n.sc && n.map && n.map.delete(n.key);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function So(e) {
|
|
212
212
|
const { prevDep: t, nextDep: n } = e;
|
|
213
213
|
t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
|
|
214
214
|
}
|
|
@@ -224,17 +224,17 @@ function st() {
|
|
|
224
224
|
function nn(e) {
|
|
225
225
|
const { cleanup: t } = e;
|
|
226
226
|
if (e.cleanup = void 0, t) {
|
|
227
|
-
const n =
|
|
228
|
-
|
|
227
|
+
const n = N;
|
|
228
|
+
N = void 0;
|
|
229
229
|
try {
|
|
230
230
|
t();
|
|
231
231
|
} finally {
|
|
232
|
-
|
|
232
|
+
N = n;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
let
|
|
237
|
-
class
|
|
236
|
+
let Se = 0;
|
|
237
|
+
class Oo {
|
|
238
238
|
constructor(t, n) {
|
|
239
239
|
this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
240
240
|
}
|
|
@@ -244,26 +244,26 @@ class zt {
|
|
|
244
244
|
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);
|
|
245
245
|
}
|
|
246
246
|
track(t) {
|
|
247
|
-
if (!
|
|
247
|
+
if (!N || !k || N === this.computed)
|
|
248
248
|
return;
|
|
249
249
|
let n = this.activeLink;
|
|
250
|
-
if (n === void 0 || n.sub !==
|
|
251
|
-
n = this.activeLink = new
|
|
250
|
+
if (n === void 0 || n.sub !== N)
|
|
251
|
+
n = this.activeLink = new Oo(N, this), N.deps ? (n.prevDep = N.depsTail, N.depsTail.nextDep = n, N.depsTail = n) : N.deps = N.depsTail = n, En(n);
|
|
252
252
|
else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
|
|
253
253
|
const o = n.nextDep;
|
|
254
|
-
o.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = o), n.prevDep =
|
|
254
|
+
o.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = o), n.prevDep = N.depsTail, n.nextDep = void 0, N.depsTail.nextDep = n, N.depsTail = n, N.deps === n && (N.deps = o);
|
|
255
255
|
}
|
|
256
|
-
return process.env.NODE_ENV !== "production" &&
|
|
256
|
+
return process.env.NODE_ENV !== "production" && N.onTrack && N.onTrack(
|
|
257
257
|
T(
|
|
258
258
|
{
|
|
259
|
-
effect:
|
|
259
|
+
effect: N
|
|
260
260
|
},
|
|
261
261
|
t
|
|
262
262
|
)
|
|
263
263
|
), n;
|
|
264
264
|
}
|
|
265
265
|
trigger(t) {
|
|
266
|
-
this.version++,
|
|
266
|
+
this.version++, Se++, this.notify(t);
|
|
267
267
|
}
|
|
268
268
|
notify(t) {
|
|
269
269
|
Mt();
|
|
@@ -301,11 +301,11 @@ const wt = /* @__PURE__ */ new WeakMap(), re = Symbol(
|
|
|
301
301
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
302
302
|
), Ct = Symbol(
|
|
303
303
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
304
|
-
),
|
|
304
|
+
), Oe = Symbol(
|
|
305
305
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
306
306
|
);
|
|
307
|
-
function
|
|
308
|
-
if (k &&
|
|
307
|
+
function S(e, t, n) {
|
|
308
|
+
if (k && N) {
|
|
309
309
|
let o = wt.get(e);
|
|
310
310
|
o || wt.set(e, o = /* @__PURE__ */ new Map());
|
|
311
311
|
let r = o.get(n);
|
|
@@ -319,7 +319,7 @@ function O(e, t, n) {
|
|
|
319
319
|
function q(e, t, n, o, r, s) {
|
|
320
320
|
const c = wt.get(e);
|
|
321
321
|
if (!c) {
|
|
322
|
-
|
|
322
|
+
Se++;
|
|
323
323
|
return;
|
|
324
324
|
}
|
|
325
325
|
const a = (u) => {
|
|
@@ -335,14 +335,14 @@ function q(e, t, n, o, r, s) {
|
|
|
335
335
|
if (Mt(), t === "clear")
|
|
336
336
|
c.forEach(a);
|
|
337
337
|
else {
|
|
338
|
-
const u =
|
|
338
|
+
const u = C(e), f = u && jt(n);
|
|
339
339
|
if (u && n === "length") {
|
|
340
340
|
const p = Number(o);
|
|
341
341
|
c.forEach((i, l) => {
|
|
342
|
-
(l === "length" || l ===
|
|
342
|
+
(l === "length" || l === Oe || !Ae(l) && l >= p) && a(i);
|
|
343
343
|
});
|
|
344
344
|
} else
|
|
345
|
-
switch ((n !== void 0 || c.has(void 0)) && a(c.get(n)), f && a(c.get(
|
|
345
|
+
switch ((n !== void 0 || c.has(void 0)) && a(c.get(n)), f && a(c.get(Oe)), t) {
|
|
346
346
|
case "add":
|
|
347
347
|
u ? f && a(c.get("length")) : (a(c.get(re)), _e(e) && a(c.get(Ct)));
|
|
348
348
|
break;
|
|
@@ -357,11 +357,11 @@ function q(e, t, n, o, r, s) {
|
|
|
357
357
|
Lt();
|
|
358
358
|
}
|
|
359
359
|
function pe(e) {
|
|
360
|
-
const t =
|
|
361
|
-
return t === e ? t : (
|
|
360
|
+
const t = b(e);
|
|
361
|
+
return t === e ? t : (S(t, "iterate", Oe), I(e) ? t : t.map(V));
|
|
362
362
|
}
|
|
363
363
|
function Ut(e) {
|
|
364
|
-
return
|
|
364
|
+
return S(e = b(e), "iterate", Oe), e;
|
|
365
365
|
}
|
|
366
366
|
const xo = {
|
|
367
367
|
__proto__: null,
|
|
@@ -370,7 +370,7 @@ const xo = {
|
|
|
370
370
|
},
|
|
371
371
|
concat(...e) {
|
|
372
372
|
return pe(this).concat(
|
|
373
|
-
...e.map((t) =>
|
|
373
|
+
...e.map((t) => C(t) ? pe(t) : t)
|
|
374
374
|
);
|
|
375
375
|
},
|
|
376
376
|
entries() {
|
|
@@ -485,14 +485,14 @@ function on(e, t, n, o) {
|
|
|
485
485
|
}), r[t](s, ...o);
|
|
486
486
|
}
|
|
487
487
|
function ft(e, t, n) {
|
|
488
|
-
const o =
|
|
489
|
-
|
|
488
|
+
const o = b(e);
|
|
489
|
+
S(o, "iterate", Oe);
|
|
490
490
|
const r = o[t](...n);
|
|
491
|
-
return (r === -1 || r === !1) && Ke(n[0]) ? (n[0] =
|
|
491
|
+
return (r === -1 || r === !1) && Ke(n[0]) ? (n[0] = b(n[0]), o[t](...n)) : r;
|
|
492
492
|
}
|
|
493
493
|
function Ne(e, t, n = []) {
|
|
494
494
|
rt(), Mt();
|
|
495
|
-
const o =
|
|
495
|
+
const o = b(e)[t].apply(e, n);
|
|
496
496
|
return Lt(), st(), o;
|
|
497
497
|
}
|
|
498
498
|
const Vo = /* @__PURE__ */ uo("__proto__,__v_isRef,__isVue"), Nn = new Set(
|
|
@@ -500,8 +500,8 @@ const Vo = /* @__PURE__ */ uo("__proto__,__v_isRef,__isVue"), Nn = new Set(
|
|
|
500
500
|
);
|
|
501
501
|
function Ao(e) {
|
|
502
502
|
Ae(e) || (e = String(e));
|
|
503
|
-
const t =
|
|
504
|
-
return
|
|
503
|
+
const t = b(this);
|
|
504
|
+
return S(t, "has", e), t.hasOwnProperty(e);
|
|
505
505
|
}
|
|
506
506
|
class wn {
|
|
507
507
|
constructor(t = !1, n = !1) {
|
|
@@ -517,10 +517,10 @@ class wn {
|
|
|
517
517
|
if (n === "__v_isShallow")
|
|
518
518
|
return s;
|
|
519
519
|
if (n === "__v_raw")
|
|
520
|
-
return o === (r ? s ?
|
|
520
|
+
return o === (r ? s ? Sn : $n : s ? Lo : yn).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
521
521
|
// this means the receiver is a user proxy of the reactive proxy
|
|
522
522
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(o) ? t : void 0;
|
|
523
|
-
const c =
|
|
523
|
+
const c = C(t);
|
|
524
524
|
if (!r) {
|
|
525
525
|
let u;
|
|
526
526
|
if (c && (u = xo[n]))
|
|
@@ -536,7 +536,7 @@ class wn {
|
|
|
536
536
|
// its class methods
|
|
537
537
|
A(t) ? t : o
|
|
538
538
|
);
|
|
539
|
-
return (Ae(n) ? Nn.has(n) : Vo(n)) || (r ||
|
|
539
|
+
return (Ae(n) ? Nn.has(n) : Vo(n)) || (r || S(t, "get", n), s) ? a : A(a) ? c && jt(n) ? a : a.value : R(a) ? r ? Le(a) : On(a) : a;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
class Ro extends wn {
|
|
@@ -546,31 +546,31 @@ class Ro extends wn {
|
|
|
546
546
|
set(t, n, o, r) {
|
|
547
547
|
let s = t[n];
|
|
548
548
|
if (!this._isShallow) {
|
|
549
|
-
const u =
|
|
550
|
-
if (!I(o) && !
|
|
549
|
+
const u = B(s);
|
|
550
|
+
if (!I(o) && !B(o) && (s = b(s), o = b(o)), !C(t) && A(s) && !A(o))
|
|
551
551
|
return u ? !1 : (s.value = o, !0);
|
|
552
552
|
}
|
|
553
|
-
const c =
|
|
553
|
+
const c = C(t) && jt(n) ? Number(n) < t.length : $(t, n), a = Reflect.set(
|
|
554
554
|
t,
|
|
555
555
|
n,
|
|
556
556
|
o,
|
|
557
557
|
A(t) ? t : r
|
|
558
558
|
);
|
|
559
|
-
return t ===
|
|
559
|
+
return t === b(r) && (c ? Q(o, s) && q(t, "set", n, o, s) : q(t, "add", n, o)), a;
|
|
560
560
|
}
|
|
561
561
|
deleteProperty(t, n) {
|
|
562
|
-
const o =
|
|
562
|
+
const o = $(t, n), r = t[n], s = Reflect.deleteProperty(t, n);
|
|
563
563
|
return s && o && q(t, "delete", n, void 0, r), s;
|
|
564
564
|
}
|
|
565
565
|
has(t, n) {
|
|
566
566
|
const o = Reflect.has(t, n);
|
|
567
|
-
return (!Ae(n) || !Nn.has(n)) &&
|
|
567
|
+
return (!Ae(n) || !Nn.has(n)) && S(t, "has", n), o;
|
|
568
568
|
}
|
|
569
569
|
ownKeys(t) {
|
|
570
|
-
return
|
|
570
|
+
return S(
|
|
571
571
|
t,
|
|
572
572
|
"iterate",
|
|
573
|
-
|
|
573
|
+
C(t) ? "length" : re
|
|
574
574
|
), Reflect.ownKeys(t);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
@@ -594,8 +594,8 @@ class Cn extends wn {
|
|
|
594
594
|
const Io = /* @__PURE__ */ new Ro(), To = /* @__PURE__ */ new Cn(), Po = /* @__PURE__ */ new Cn(!0), yt = (e) => e, Te = (e) => Reflect.getPrototypeOf(e);
|
|
595
595
|
function Fo(e, t, n) {
|
|
596
596
|
return function(...o) {
|
|
597
|
-
const r = this.__v_raw, s =
|
|
598
|
-
return !t &&
|
|
597
|
+
const r = this.__v_raw, s = b(r), c = _e(s), a = e === "entries" || e === Symbol.iterator && c, u = e === "keys" && c, f = r[e](...o), p = n ? yt : t ? $t : V;
|
|
598
|
+
return !t && S(
|
|
599
599
|
s,
|
|
600
600
|
"iterate",
|
|
601
601
|
u ? Ct : re
|
|
@@ -621,7 +621,7 @@ function Pe(e) {
|
|
|
621
621
|
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
622
622
|
W(
|
|
623
623
|
`${bo(e)} operation ${n}failed: target is readonly.`,
|
|
624
|
-
|
|
624
|
+
b(this)
|
|
625
625
|
);
|
|
626
626
|
}
|
|
627
627
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
@@ -630,9 +630,9 @@ function Pe(e) {
|
|
|
630
630
|
function jo(e, t) {
|
|
631
631
|
const n = {
|
|
632
632
|
get(r) {
|
|
633
|
-
const s = this.__v_raw, c =
|
|
634
|
-
e || (Q(r, a) &&
|
|
635
|
-
const { has: u } = Te(c), f = t ? yt : e ?
|
|
633
|
+
const s = this.__v_raw, c = b(s), a = b(r);
|
|
634
|
+
e || (Q(r, a) && S(c, "get", r), S(c, "get", a));
|
|
635
|
+
const { has: u } = Te(c), f = t ? yt : e ? $t : V;
|
|
636
636
|
if (u.call(c, r))
|
|
637
637
|
return f(s.get(r));
|
|
638
638
|
if (u.call(c, a))
|
|
@@ -641,15 +641,15 @@ function jo(e, t) {
|
|
|
641
641
|
},
|
|
642
642
|
get size() {
|
|
643
643
|
const r = this.__v_raw;
|
|
644
|
-
return !e &&
|
|
644
|
+
return !e && S(b(r), "iterate", re), Reflect.get(r, "size", r);
|
|
645
645
|
},
|
|
646
646
|
has(r) {
|
|
647
|
-
const s = this.__v_raw, c =
|
|
648
|
-
return e || (Q(r, a) &&
|
|
647
|
+
const s = this.__v_raw, c = b(s), a = b(r);
|
|
648
|
+
return e || (Q(r, a) && S(c, "has", r), S(c, "has", a)), r === a ? s.has(r) : s.has(r) || s.has(a);
|
|
649
649
|
},
|
|
650
650
|
forEach(r, s) {
|
|
651
|
-
const c = this, a = c.__v_raw, u =
|
|
652
|
-
return !e &&
|
|
651
|
+
const c = this, a = c.__v_raw, u = b(a), f = t ? yt : e ? $t : V;
|
|
652
|
+
return !e && S(u, "iterate", re), a.forEach((p, i) => r.call(s, f(p), f(i), c));
|
|
653
653
|
}
|
|
654
654
|
};
|
|
655
655
|
return T(
|
|
@@ -661,27 +661,27 @@ function jo(e, t) {
|
|
|
661
661
|
clear: Pe("clear")
|
|
662
662
|
} : {
|
|
663
663
|
add(r) {
|
|
664
|
-
!t && !I(r) && !
|
|
665
|
-
const s =
|
|
664
|
+
!t && !I(r) && !B(r) && (r = b(r));
|
|
665
|
+
const s = b(this);
|
|
666
666
|
return Te(s).has.call(s, r) || (s.add(r), q(s, "add", r, r)), this;
|
|
667
667
|
},
|
|
668
668
|
set(r, s) {
|
|
669
|
-
!t && !I(s) && !
|
|
670
|
-
const c =
|
|
669
|
+
!t && !I(s) && !B(s) && (s = b(s));
|
|
670
|
+
const c = b(this), { has: a, get: u } = Te(c);
|
|
671
671
|
let f = a.call(c, r);
|
|
672
|
-
f ? process.env.NODE_ENV !== "production" && rn(c, a, r) : (r =
|
|
672
|
+
f ? process.env.NODE_ENV !== "production" && rn(c, a, r) : (r = b(r), f = a.call(c, r));
|
|
673
673
|
const p = u.call(c, r);
|
|
674
674
|
return c.set(r, s), f ? Q(s, p) && q(c, "set", r, s, p) : q(c, "add", r, s), this;
|
|
675
675
|
},
|
|
676
676
|
delete(r) {
|
|
677
|
-
const s =
|
|
677
|
+
const s = b(this), { has: c, get: a } = Te(s);
|
|
678
678
|
let u = c.call(s, r);
|
|
679
|
-
u ? process.env.NODE_ENV !== "production" && rn(s, c, r) : (r =
|
|
679
|
+
u ? process.env.NODE_ENV !== "production" && rn(s, c, r) : (r = b(r), u = c.call(s, r));
|
|
680
680
|
const f = a ? a.call(s, r) : void 0, p = s.delete(r);
|
|
681
681
|
return u && q(s, "delete", r, void 0, f), p;
|
|
682
682
|
},
|
|
683
683
|
clear() {
|
|
684
|
-
const r =
|
|
684
|
+
const r = b(this), s = r.size !== 0, c = process.env.NODE_ENV !== "production" ? _e(r) ? new Map(r) : new Set(r) : void 0, a = r.clear();
|
|
685
685
|
return s && q(
|
|
686
686
|
r,
|
|
687
687
|
"clear",
|
|
@@ -703,7 +703,7 @@ function jo(e, t) {
|
|
|
703
703
|
function Wt(e, t) {
|
|
704
704
|
const n = jo(e, t);
|
|
705
705
|
return (o, r, s) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? o : Reflect.get(
|
|
706
|
-
|
|
706
|
+
$(n, r) && r in o ? n : o,
|
|
707
707
|
r,
|
|
708
708
|
s
|
|
709
709
|
);
|
|
@@ -716,7 +716,7 @@ const ko = {
|
|
|
716
716
|
get: /* @__PURE__ */ Wt(!0, !0)
|
|
717
717
|
};
|
|
718
718
|
function rn(e, t, n) {
|
|
719
|
-
const o =
|
|
719
|
+
const o = b(n);
|
|
720
720
|
if (o !== n && t.call(e, o)) {
|
|
721
721
|
const r = dn(e);
|
|
722
722
|
W(
|
|
@@ -724,7 +724,7 @@ function rn(e, t, n) {
|
|
|
724
724
|
);
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
-
const yn = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(),
|
|
727
|
+
const yn = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap();
|
|
728
728
|
function Ko(e) {
|
|
729
729
|
switch (e) {
|
|
730
730
|
case "Object":
|
|
@@ -742,8 +742,8 @@ function Ko(e) {
|
|
|
742
742
|
function zo(e) {
|
|
743
743
|
return e.__v_skip || !Object.isExtensible(e) ? 0 : Ko(dn(e));
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
return
|
|
745
|
+
function On(e) {
|
|
746
|
+
return B(e) ? e : Bt(
|
|
747
747
|
e,
|
|
748
748
|
!1,
|
|
749
749
|
Io,
|
|
@@ -752,24 +752,24 @@ function $n(e) {
|
|
|
752
752
|
);
|
|
753
753
|
}
|
|
754
754
|
function Le(e) {
|
|
755
|
-
return
|
|
755
|
+
return Bt(
|
|
756
756
|
e,
|
|
757
757
|
!0,
|
|
758
758
|
To,
|
|
759
759
|
Ho,
|
|
760
|
-
|
|
760
|
+
$n
|
|
761
761
|
);
|
|
762
762
|
}
|
|
763
763
|
function Z(e) {
|
|
764
|
-
return
|
|
764
|
+
return Bt(
|
|
765
765
|
e,
|
|
766
766
|
!0,
|
|
767
767
|
Po,
|
|
768
768
|
Mo,
|
|
769
|
-
|
|
769
|
+
Sn
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Bt(e, t, n, o, r) {
|
|
773
773
|
if (!R(e))
|
|
774
774
|
return process.env.NODE_ENV !== "production" && W(
|
|
775
775
|
`value cannot be made ${t ? "readonly" : "reactive"}: ${String(
|
|
@@ -791,9 +791,9 @@ function Gt(e, t, n, o, r) {
|
|
|
791
791
|
return r.set(e, a), a;
|
|
792
792
|
}
|
|
793
793
|
function ve(e) {
|
|
794
|
-
return
|
|
794
|
+
return B(e) ? ve(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function B(e) {
|
|
797
797
|
return !!(e && e.__v_isReadonly);
|
|
798
798
|
}
|
|
799
799
|
function I(e) {
|
|
@@ -802,14 +802,14 @@ function I(e) {
|
|
|
802
802
|
function Ke(e) {
|
|
803
803
|
return e ? !!e.__v_raw : !1;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function b(e) {
|
|
806
806
|
const t = e && e.__v_raw;
|
|
807
|
-
return t ?
|
|
807
|
+
return t ? b(t) : e;
|
|
808
808
|
}
|
|
809
809
|
function Uo(e) {
|
|
810
|
-
return
|
|
810
|
+
return !$(e, "__v_skip") && Object.isExtensible(e) && Eo(e, "__v_skip", !0), e;
|
|
811
811
|
}
|
|
812
|
-
const V = (e) => R(e) ?
|
|
812
|
+
const V = (e) => R(e) ? On(e) : e, $t = (e) => R(e) ? Le(e) : e;
|
|
813
813
|
function A(e) {
|
|
814
814
|
return e ? e.__v_isRef === !0 : !1;
|
|
815
815
|
}
|
|
@@ -817,11 +817,11 @@ function ze(e) {
|
|
|
817
817
|
return Wo(e, !1);
|
|
818
818
|
}
|
|
819
819
|
function Wo(e, t) {
|
|
820
|
-
return A(e) ? e : new
|
|
820
|
+
return A(e) ? e : new Bo(e, t);
|
|
821
821
|
}
|
|
822
|
-
class
|
|
822
|
+
class Bo {
|
|
823
823
|
constructor(t, n) {
|
|
824
|
-
this.dep = new zt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t :
|
|
824
|
+
this.dep = new zt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : b(t), this._value = n ? t : V(t), this.__v_isShallow = n;
|
|
825
825
|
}
|
|
826
826
|
get value() {
|
|
827
827
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -831,8 +831,8 @@ class Go {
|
|
|
831
831
|
}) : this.dep.track(), this._value;
|
|
832
832
|
}
|
|
833
833
|
set value(t) {
|
|
834
|
-
const n = this._rawValue, o = this.__v_isShallow || I(t) ||
|
|
835
|
-
t = o ? t :
|
|
834
|
+
const n = this._rawValue, o = this.__v_isShallow || I(t) || B(t);
|
|
835
|
+
t = o ? t : b(t), Q(t, n) && (this._rawValue = t, this._value = o ? t : V(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
836
836
|
target: this,
|
|
837
837
|
type: "set",
|
|
838
838
|
key: "value",
|
|
@@ -841,11 +841,11 @@ class Go {
|
|
|
841
841
|
}) : this.dep.trigger());
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Go(e) {
|
|
845
845
|
return A(e) ? e.value : e;
|
|
846
846
|
}
|
|
847
847
|
const Jo = {
|
|
848
|
-
get: (e, t, n) => t === "__v_raw" ? e :
|
|
848
|
+
get: (e, t, n) => t === "__v_raw" ? e : Go(Reflect.get(e, t, n)),
|
|
849
849
|
set: (e, t, n, o) => {
|
|
850
850
|
const r = e[t];
|
|
851
851
|
return A(r) && !A(n) ? (r.value = n, !0) : Reflect.set(e, t, n, o);
|
|
@@ -856,14 +856,14 @@ function qo(e) {
|
|
|
856
856
|
}
|
|
857
857
|
class Yo {
|
|
858
858
|
constructor(t, n, o) {
|
|
859
|
-
this.fn = t, this.setter = n, this._value = void 0, this.dep = new zt(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion =
|
|
859
|
+
this.fn = t, this.setter = n, this._value = void 0, this.dep = new zt(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Se - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = o;
|
|
860
860
|
}
|
|
861
861
|
/**
|
|
862
862
|
* @internal
|
|
863
863
|
*/
|
|
864
864
|
notify() {
|
|
865
865
|
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
866
|
-
|
|
866
|
+
N !== this)
|
|
867
867
|
return mn(this, !0), !0;
|
|
868
868
|
process.env.NODE_ENV;
|
|
869
869
|
}
|
|
@@ -881,7 +881,7 @@ class Yo {
|
|
|
881
881
|
}
|
|
882
882
|
function Zo(e, t, n = !1) {
|
|
883
883
|
let o, r;
|
|
884
|
-
|
|
884
|
+
O(e) ? o = e : (o = e.get, r = e.set);
|
|
885
885
|
const s = new Yo(o, r, n);
|
|
886
886
|
return process.env.NODE_ENV, s;
|
|
887
887
|
}
|
|
@@ -896,23 +896,23 @@ function Qo(e, t = !1, n = te) {
|
|
|
896
896
|
);
|
|
897
897
|
}
|
|
898
898
|
function Xo(e, t, n = j) {
|
|
899
|
-
const { immediate: o, deep: r, once: s, scheduler: c, augmentJob: a, call: u } = n, f = (
|
|
899
|
+
const { immediate: o, deep: r, once: s, scheduler: c, augmentJob: a, call: u } = n, f = (E) => {
|
|
900
900
|
(n.onWarn || W)(
|
|
901
901
|
"Invalid watch source: ",
|
|
902
|
-
|
|
902
|
+
E,
|
|
903
903
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
904
904
|
);
|
|
905
|
-
}, p = (
|
|
906
|
-
let i, l, d,
|
|
907
|
-
if (A(e) ? (l = () => e.value,
|
|
908
|
-
if (A(
|
|
909
|
-
return
|
|
910
|
-
if (ve(
|
|
911
|
-
return p(
|
|
912
|
-
if (
|
|
913
|
-
return u ? u(
|
|
914
|
-
process.env.NODE_ENV !== "production" && f(
|
|
915
|
-
})) :
|
|
905
|
+
}, p = (E) => r ? E : I(E) || r === !1 || r === 0 ? Y(E, 1) : Y(E);
|
|
906
|
+
let i, l, d, h, m = !1, _ = !1;
|
|
907
|
+
if (A(e) ? (l = () => e.value, m = I(e)) : ve(e) ? (l = () => p(e), m = !0) : C(e) ? (_ = !0, m = e.some((E) => ve(E) || I(E)), l = () => e.map((E) => {
|
|
908
|
+
if (A(E))
|
|
909
|
+
return E.value;
|
|
910
|
+
if (ve(E))
|
|
911
|
+
return p(E);
|
|
912
|
+
if (O(E))
|
|
913
|
+
return u ? u(E, 2) : E();
|
|
914
|
+
process.env.NODE_ENV !== "production" && f(E);
|
|
915
|
+
})) : O(e) ? t ? l = u ? () => u(e, 2) : e : l = () => {
|
|
916
916
|
if (d) {
|
|
917
917
|
rt();
|
|
918
918
|
try {
|
|
@@ -921,32 +921,32 @@ function Xo(e, t, n = j) {
|
|
|
921
921
|
st();
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
const
|
|
924
|
+
const E = te;
|
|
925
925
|
te = i;
|
|
926
926
|
try {
|
|
927
|
-
return u ? u(e, 3, [
|
|
927
|
+
return u ? u(e, 3, [h]) : e(h);
|
|
928
928
|
} finally {
|
|
929
|
-
te =
|
|
929
|
+
te = E;
|
|
930
930
|
}
|
|
931
931
|
} : (l = oe, process.env.NODE_ENV !== "production" && f(e)), t && r) {
|
|
932
|
-
const
|
|
933
|
-
l = () => Y(
|
|
932
|
+
const E = l, H = r === !0 ? 1 / 0 : r;
|
|
933
|
+
l = () => Y(E(), H);
|
|
934
934
|
}
|
|
935
|
-
const
|
|
935
|
+
const g = () => {
|
|
936
936
|
i.stop();
|
|
937
937
|
};
|
|
938
938
|
if (s && t) {
|
|
939
|
-
const
|
|
939
|
+
const E = t;
|
|
940
940
|
t = (...H) => {
|
|
941
|
-
|
|
941
|
+
E(...H), g();
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
|
-
let
|
|
945
|
-
const ee = (
|
|
946
|
-
if (!(!(i.flags & 1) || !i.dirty && !
|
|
944
|
+
let v = _ ? new Array(e.length).fill(Fe) : Fe;
|
|
945
|
+
const ee = (E) => {
|
|
946
|
+
if (!(!(i.flags & 1) || !i.dirty && !E))
|
|
947
947
|
if (t) {
|
|
948
948
|
const H = i.run();
|
|
949
|
-
if (r ||
|
|
949
|
+
if (r || m || (_ ? H.some((lt, Ie) => Q(lt, v[Ie])) : Q(H, v))) {
|
|
950
950
|
d && d();
|
|
951
951
|
const lt = te;
|
|
952
952
|
te = i;
|
|
@@ -954,13 +954,13 @@ function Xo(e, t, n = j) {
|
|
|
954
954
|
const Ie = [
|
|
955
955
|
H,
|
|
956
956
|
// pass undefined as the old value when it's changed for the first time
|
|
957
|
-
|
|
958
|
-
|
|
957
|
+
v === Fe ? void 0 : _ && v[0] === Fe ? [] : v,
|
|
958
|
+
h
|
|
959
959
|
];
|
|
960
960
|
u ? u(t, 3, Ie) : (
|
|
961
961
|
// @ts-expect-error
|
|
962
962
|
t(...Ie)
|
|
963
|
-
),
|
|
963
|
+
), v = H;
|
|
964
964
|
} finally {
|
|
965
965
|
te = lt;
|
|
966
966
|
}
|
|
@@ -968,23 +968,23 @@ function Xo(e, t, n = j) {
|
|
|
968
968
|
} else
|
|
969
969
|
i.run();
|
|
970
970
|
};
|
|
971
|
-
return a && a(ee), i = new
|
|
972
|
-
const
|
|
973
|
-
if (
|
|
971
|
+
return a && a(ee), i = new $o(l), i.scheduler = c ? () => c(ee, !1) : ee, h = (E) => Qo(E, !1, i), d = i.onStop = () => {
|
|
972
|
+
const E = Ue.get(i);
|
|
973
|
+
if (E) {
|
|
974
974
|
if (u)
|
|
975
|
-
u(
|
|
975
|
+
u(E, 4);
|
|
976
976
|
else
|
|
977
|
-
for (const H of
|
|
977
|
+
for (const H of E) H();
|
|
978
978
|
Ue.delete(i);
|
|
979
979
|
}
|
|
980
|
-
}, process.env.NODE_ENV !== "production" && (i.onTrack = n.onTrack, i.onTrigger = n.onTrigger), t ? o ? ee(!0) :
|
|
980
|
+
}, process.env.NODE_ENV !== "production" && (i.onTrack = n.onTrack, i.onTrigger = n.onTrigger), t ? o ? ee(!0) : v = i.run() : c ? c(ee.bind(null, !0), !0) : i.run(), g.pause = i.pause.bind(i), g.resume = i.resume.bind(i), g.stop = g, g;
|
|
981
981
|
}
|
|
982
982
|
function Y(e, t = 1 / 0, n) {
|
|
983
983
|
if (t <= 0 || !R(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
|
|
984
984
|
return e;
|
|
985
985
|
if (n.add(e), t--, A(e))
|
|
986
986
|
Y(e.value, t, n);
|
|
987
|
-
else if (
|
|
987
|
+
else if (C(e))
|
|
988
988
|
for (let o = 0; o < e.length; o++)
|
|
989
989
|
Y(e[o], t, n);
|
|
990
990
|
else if (ho(e) || _e(e))
|
|
@@ -1080,7 +1080,7 @@ function sr(e) {
|
|
|
1080
1080
|
}), n.length > 3 && t.push(" ..."), t;
|
|
1081
1081
|
}
|
|
1082
1082
|
function xn(e, t, n) {
|
|
1083
|
-
return M(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : A(t) ? (t = xn(e,
|
|
1083
|
+
return M(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : A(t) ? (t = xn(e, b(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : O(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = b(t), n ? t : [`${e}=`, t]);
|
|
1084
1084
|
}
|
|
1085
1085
|
const Dn = {
|
|
1086
1086
|
sp: "serverPrefetch hook",
|
|
@@ -1119,17 +1119,17 @@ function it(e, t, n, o) {
|
|
|
1119
1119
|
try {
|
|
1120
1120
|
return o ? e(...o) : e();
|
|
1121
1121
|
} catch (r) {
|
|
1122
|
-
|
|
1122
|
+
Gt(r, t, n);
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
function Vn(e, t, n, o) {
|
|
1126
|
-
if (
|
|
1126
|
+
if (O(e)) {
|
|
1127
1127
|
const r = it(e, t, n, o);
|
|
1128
1128
|
return r && mo(r) && r.catch((s) => {
|
|
1129
|
-
|
|
1129
|
+
Gt(s, t, n);
|
|
1130
1130
|
}), r;
|
|
1131
1131
|
}
|
|
1132
|
-
if (
|
|
1132
|
+
if (C(e)) {
|
|
1133
1133
|
const r = [];
|
|
1134
1134
|
for (let s = 0; s < e.length; s++)
|
|
1135
1135
|
r.push(Vn(e[s], t, n, o));
|
|
@@ -1138,7 +1138,7 @@ function Vn(e, t, n, o) {
|
|
|
1138
1138
|
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
|
|
1139
1139
|
);
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Gt(e, t, n, o = !0) {
|
|
1142
1142
|
const r = t ? t.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: c } = t && t.appContext.config || j;
|
|
1143
1143
|
if (t) {
|
|
1144
1144
|
let a = t.parent;
|
|
@@ -1174,7 +1174,7 @@ function ir(e, t, n, o = !0, r = !1) {
|
|
|
1174
1174
|
const P = [];
|
|
1175
1175
|
let z = -1;
|
|
1176
1176
|
const be = [];
|
|
1177
|
-
let
|
|
1177
|
+
let G = null, fe = 0;
|
|
1178
1178
|
const An = /* @__PURE__ */ Promise.resolve();
|
|
1179
1179
|
let We = null;
|
|
1180
1180
|
const cr = 100;
|
|
@@ -1201,22 +1201,22 @@ function Rn() {
|
|
|
1201
1201
|
We || (We = An.then(Tn));
|
|
1202
1202
|
}
|
|
1203
1203
|
function In(e) {
|
|
1204
|
-
|
|
1204
|
+
C(e) ? be.push(...e) : G && e.id === -1 ? G.splice(fe + 1, 0, e) : e.flags & 1 || (be.push(e), e.flags |= 1), Rn();
|
|
1205
1205
|
}
|
|
1206
1206
|
function ur(e) {
|
|
1207
1207
|
if (be.length) {
|
|
1208
1208
|
const t = [...new Set(be)].sort(
|
|
1209
1209
|
(n, o) => xe(n) - xe(o)
|
|
1210
1210
|
);
|
|
1211
|
-
if (be.length = 0,
|
|
1212
|
-
|
|
1211
|
+
if (be.length = 0, G) {
|
|
1212
|
+
G.push(...t);
|
|
1213
1213
|
return;
|
|
1214
1214
|
}
|
|
1215
|
-
for (
|
|
1216
|
-
const n =
|
|
1215
|
+
for (G = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), fe = 0; fe < G.length; fe++) {
|
|
1216
|
+
const n = G[fe];
|
|
1217
1217
|
process.env.NODE_ENV !== "production" && Pn(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1218
1218
|
}
|
|
1219
|
-
|
|
1219
|
+
G = null, fe = 0;
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
const xe = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
@@ -1248,7 +1248,7 @@ function Pn(e, t) {
|
|
|
1248
1248
|
const n = e.get(t) || 0;
|
|
1249
1249
|
if (n > cr) {
|
|
1250
1250
|
const o = t.i, r = o && zn(o.type);
|
|
1251
|
-
return
|
|
1251
|
+
return Gt(
|
|
1252
1252
|
`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.`,
|
|
1253
1253
|
null,
|
|
1254
1254
|
10
|
|
@@ -1262,29 +1262,29 @@ process.env.NODE_ENV !== "production" && (ot().__VUE_HMR_RUNTIME__ = {
|
|
|
1262
1262
|
rerender: mt(fr),
|
|
1263
1263
|
reload: mt(dr)
|
|
1264
1264
|
});
|
|
1265
|
-
const
|
|
1265
|
+
const Be = /* @__PURE__ */ new Map();
|
|
1266
1266
|
function pr(e, t) {
|
|
1267
|
-
return
|
|
1268
|
-
initialDef:
|
|
1267
|
+
return Be.has(e) ? !1 : (Be.set(e, {
|
|
1268
|
+
initialDef: Ge(t),
|
|
1269
1269
|
instances: /* @__PURE__ */ new Set()
|
|
1270
1270
|
}), !0);
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Ge(e) {
|
|
1273
1273
|
return Wn(e) ? e.__vccOpts : e;
|
|
1274
1274
|
}
|
|
1275
1275
|
function fr(e, t) {
|
|
1276
|
-
const n =
|
|
1276
|
+
const n = Be.get(e);
|
|
1277
1277
|
n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
|
|
1278
|
-
t && (o.render = t,
|
|
1278
|
+
t && (o.render = t, Ge(o.type).render = t), o.renderCache = [], o.update();
|
|
1279
1279
|
}));
|
|
1280
1280
|
}
|
|
1281
1281
|
function dr(e, t) {
|
|
1282
|
-
const n =
|
|
1282
|
+
const n = Be.get(e);
|
|
1283
1283
|
if (!n) return;
|
|
1284
|
-
t =
|
|
1284
|
+
t = Ge(t), sn(n.initialDef, t);
|
|
1285
1285
|
const o = [...n.instances];
|
|
1286
1286
|
for (let r = 0; r < o.length; r++) {
|
|
1287
|
-
const s = o[r], c =
|
|
1287
|
+
const s = o[r], c = Ge(s.type);
|
|
1288
1288
|
let a = ht.get(c);
|
|
1289
1289
|
a || (c !== n.initialDef && sn(c, t), ht.set(c, a = /* @__PURE__ */ new Set())), a.add(s), s.appContext.propsCache.delete(s.type), s.appContext.emitsCache.delete(s.type), s.appContext.optionsCache.delete(s.type), s.ceReload ? (a.add(s), s.ceReload(t.styles), a.delete(s)) : s.parent ? Jt(() => {
|
|
1290
1290
|
s.parent.update(), a.delete(s);
|
|
@@ -1326,7 +1326,7 @@ function jn(e, t) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
ot().requestIdleCallback;
|
|
1328
1328
|
ot().cancelIdleCallback;
|
|
1329
|
-
const gr = Symbol.for("v-ndc"),
|
|
1329
|
+
const gr = Symbol.for("v-ndc"), St = (e) => e ? Wr(e) ? Br(e) : St(e.parent) : null, $e = (
|
|
1330
1330
|
// Move PURE marker to new line to workaround compiler discarding it
|
|
1331
1331
|
// due to type annotation
|
|
1332
1332
|
/* @__PURE__ */ T(/* @__PURE__ */ Object.create(null), {
|
|
@@ -1337,8 +1337,8 @@ const gr = Symbol.for("v-ndc"), Ot = (e) => e ? Wr(e) ? Gr(e) : Ot(e.parent) : n
|
|
|
1337
1337
|
$attrs: (e) => process.env.NODE_ENV !== "production" ? Z(e.attrs) : e.attrs,
|
|
1338
1338
|
$slots: (e) => process.env.NODE_ENV !== "production" ? Z(e.slots) : e.slots,
|
|
1339
1339
|
$refs: (e) => process.env.NODE_ENV !== "production" ? Z(e.refs) : e.refs,
|
|
1340
|
-
$parent: (e) =>
|
|
1341
|
-
$root: (e) =>
|
|
1340
|
+
$parent: (e) => St(e.parent),
|
|
1341
|
+
$root: (e) => St(e.root),
|
|
1342
1342
|
$host: (e) => e.ce,
|
|
1343
1343
|
$emit: (e) => e.emit,
|
|
1344
1344
|
$options: (e) => __VUE_OPTIONS_API__ ? br(e) : e.type,
|
|
@@ -1348,7 +1348,7 @@ const gr = Symbol.for("v-ndc"), Ot = (e) => e ? Wr(e) ? Gr(e) : Ot(e.parent) : n
|
|
|
1348
1348
|
$nextTick: (e) => e.n || (e.n = ar.bind(e.proxy)),
|
|
1349
1349
|
$watch: (e) => __VUE_OPTIONS_API__ ? Vr.bind(e) : oe
|
|
1350
1350
|
})
|
|
1351
|
-
), gt = (e, t) => e !== j && !e.__isScriptSetup &&
|
|
1351
|
+
), gt = (e, t) => e !== j && !e.__isScriptSetup && $(e, t), _r = {
|
|
1352
1352
|
get({ _: e }, t) {
|
|
1353
1353
|
if (t === "__v_skip")
|
|
1354
1354
|
return !0;
|
|
@@ -1372,40 +1372,40 @@ const gr = Symbol.for("v-ndc"), Ot = (e) => e ? Wr(e) ? Gr(e) : Ot(e.parent) : n
|
|
|
1372
1372
|
else {
|
|
1373
1373
|
if (gt(o, t))
|
|
1374
1374
|
return c[t] = 1, o[t];
|
|
1375
|
-
if (r !== j &&
|
|
1375
|
+
if (r !== j && $(r, t))
|
|
1376
1376
|
return c[t] = 2, r[t];
|
|
1377
1377
|
if (
|
|
1378
1378
|
// only cache other properties when instance has declared (thus stable)
|
|
1379
1379
|
// props
|
|
1380
|
-
(f = e.propsOptions[0]) &&
|
|
1380
|
+
(f = e.propsOptions[0]) && $(f, t)
|
|
1381
1381
|
)
|
|
1382
1382
|
return c[t] = 3, s[t];
|
|
1383
|
-
if (n !== j &&
|
|
1383
|
+
if (n !== j && $(n, t))
|
|
1384
1384
|
return c[t] = 4, n[t];
|
|
1385
1385
|
(!__VUE_OPTIONS_API__ || vr) && (c[t] = 0);
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
const p =
|
|
1388
|
+
const p = $e[t];
|
|
1389
1389
|
let i, l;
|
|
1390
1390
|
if (p)
|
|
1391
|
-
return t === "$attrs" ? (
|
|
1391
|
+
return t === "$attrs" ? (S(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && S(e, "get", t), p(e);
|
|
1392
1392
|
if (
|
|
1393
1393
|
// css module (injected by vue-loader)
|
|
1394
1394
|
(i = a.__cssModules) && (i = i[t])
|
|
1395
1395
|
)
|
|
1396
1396
|
return i;
|
|
1397
|
-
if (n !== j &&
|
|
1397
|
+
if (n !== j && $(n, t))
|
|
1398
1398
|
return c[t] = 4, n[t];
|
|
1399
1399
|
if (
|
|
1400
1400
|
// global properties
|
|
1401
|
-
l = u.config.globalProperties,
|
|
1401
|
+
l = u.config.globalProperties, $(l, t)
|
|
1402
1402
|
)
|
|
1403
1403
|
return l[t];
|
|
1404
1404
|
process.env.NODE_ENV;
|
|
1405
1405
|
},
|
|
1406
1406
|
set({ _: e }, t, n) {
|
|
1407
1407
|
const { data: o, setupState: r, ctx: s } = e;
|
|
1408
|
-
return gt(r, t) ? (r[t] = n, !0) : process.env.NODE_ENV !== "production" && r.__isScriptSetup &&
|
|
1408
|
+
return gt(r, t) ? (r[t] = n, !0) : process.env.NODE_ENV !== "production" && r.__isScriptSetup && $(r, t) ? (y(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : o !== j && $(o, t) ? (o[t] = n, !0) : $(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(
|
|
1409
1409
|
`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
|
|
1410
1410
|
), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(s, t, {
|
|
1411
1411
|
enumerable: !0,
|
|
@@ -1417,17 +1417,17 @@ const gr = Symbol.for("v-ndc"), Ot = (e) => e ? Wr(e) ? Gr(e) : Ot(e.parent) : n
|
|
|
1417
1417
|
_: { data: e, setupState: t, accessCache: n, ctx: o, appContext: r, propsOptions: s }
|
|
1418
1418
|
}, c) {
|
|
1419
1419
|
let a;
|
|
1420
|
-
return !!n[c] || e !== j &&
|
|
1420
|
+
return !!n[c] || e !== j && $(e, c) || gt(t, c) || (a = s[0]) && $(a, c) || $(o, c) || $($e, c) || $(r.config.globalProperties, c);
|
|
1421
1421
|
},
|
|
1422
1422
|
defineProperty(e, t, n) {
|
|
1423
|
-
return n.get != null ? e._.accessCache[t] = 0 :
|
|
1423
|
+
return n.get != null ? e._.accessCache[t] = 0 : $(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
1426
|
process.env.NODE_ENV !== "production" && (_r.ownKeys = (e) => (y(
|
|
1427
1427
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1428
1428
|
), Reflect.ownKeys(e)));
|
|
1429
1429
|
function cn(e) {
|
|
1430
|
-
return
|
|
1430
|
+
return C(e) ? e.reduce(
|
|
1431
1431
|
(t, n) => (t[n] = null, t),
|
|
1432
1432
|
{}
|
|
1433
1433
|
) : e;
|
|
@@ -1494,8 +1494,8 @@ const Er = {
|
|
|
1494
1494
|
function an(e, t) {
|
|
1495
1495
|
return t ? e ? function() {
|
|
1496
1496
|
return T(
|
|
1497
|
-
|
|
1498
|
-
|
|
1497
|
+
O(e) ? e.call(this, this) : e,
|
|
1498
|
+
O(t) ? t.call(this, this) : t
|
|
1499
1499
|
);
|
|
1500
1500
|
} : t : e;
|
|
1501
1501
|
}
|
|
@@ -1503,7 +1503,7 @@ function Nr(e, t) {
|
|
|
1503
1503
|
return we(ln(e), ln(t));
|
|
1504
1504
|
}
|
|
1505
1505
|
function ln(e) {
|
|
1506
|
-
if (
|
|
1506
|
+
if (C(e)) {
|
|
1507
1507
|
const t = {};
|
|
1508
1508
|
for (let n = 0; n < e.length; n++)
|
|
1509
1509
|
t[e[n]] = e[n];
|
|
@@ -1518,7 +1518,7 @@ function we(e, t) {
|
|
|
1518
1518
|
return e ? T(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1519
1519
|
}
|
|
1520
1520
|
function un(e, t) {
|
|
1521
|
-
return e ?
|
|
1521
|
+
return e ? C(e) && C(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : T(
|
|
1522
1522
|
/* @__PURE__ */ Object.create(null),
|
|
1523
1523
|
cn(e),
|
|
1524
1524
|
cn(t ?? {})
|
|
@@ -1540,13 +1540,13 @@ function yr(e, t, n = !1) {
|
|
|
1540
1540
|
if (r && e in r)
|
|
1541
1541
|
return r[e];
|
|
1542
1542
|
if (arguments.length > 1)
|
|
1543
|
-
return n &&
|
|
1543
|
+
return n && O(t) ? t.call(o && o.proxy) : t;
|
|
1544
1544
|
process.env.NODE_ENV !== "production" && y(`injection "${String(e)}" not found.`);
|
|
1545
1545
|
} else process.env.NODE_ENV !== "production" && y("inject() can only be used inside setup() or functional components.");
|
|
1546
1546
|
}
|
|
1547
|
-
const
|
|
1547
|
+
const $r = {}, kn = (e) => Object.getPrototypeOf(e) === $r, Sr = Ir, Or = Symbol.for("v-scx"), xr = () => {
|
|
1548
1548
|
{
|
|
1549
|
-
const e = yr(
|
|
1549
|
+
const e = yr(Or);
|
|
1550
1550
|
return e || process.env.NODE_ENV !== "production" && y(
|
|
1551
1551
|
"Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
|
|
1552
1552
|
), e;
|
|
@@ -1576,12 +1576,12 @@ function Dr(e, t, n = j) {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
1578
|
const p = Re;
|
|
1579
|
-
a.call = (d,
|
|
1579
|
+
a.call = (d, h, m) => Vn(d, p, h, m);
|
|
1580
1580
|
let i = !1;
|
|
1581
1581
|
s === "post" ? a.scheduler = (d) => {
|
|
1582
|
-
|
|
1583
|
-
} : s !== "sync" && (i = !0, a.scheduler = (d,
|
|
1584
|
-
|
|
1582
|
+
Sr(d, p && p.suspense);
|
|
1583
|
+
} : s !== "sync" && (i = !0, a.scheduler = (d, h) => {
|
|
1584
|
+
h ? d() : Jt(d);
|
|
1585
1585
|
}), a.augmentJob = (d) => {
|
|
1586
1586
|
t && (d.flags |= 4), i && (d.flags |= 2, p && (d.id = p.uid, d.i = p));
|
|
1587
1587
|
};
|
|
@@ -1591,7 +1591,7 @@ function Dr(e, t, n = j) {
|
|
|
1591
1591
|
function Vr(e, t, n) {
|
|
1592
1592
|
const o = this.proxy, r = M(e) ? e.includes(".") ? Ar(o, e) : () => o[e] : e.bind(o, o);
|
|
1593
1593
|
let s;
|
|
1594
|
-
|
|
1594
|
+
O(t) ? s = t : (s = t.handler, n = t);
|
|
1595
1595
|
const c = Ur(this), a = Dr(r, s.bind(o), n);
|
|
1596
1596
|
return c(), a;
|
|
1597
1597
|
}
|
|
@@ -1606,7 +1606,7 @@ function Ar(e, t) {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
const Rr = (e) => e.__isSuspense;
|
|
1608
1608
|
function Ir(e, t) {
|
|
1609
|
-
t && t.pendingBranch ?
|
|
1609
|
+
t && t.pendingBranch ? C(e) ? t.effects.push(...e) : t.effects.push(e) : In(e);
|
|
1610
1610
|
}
|
|
1611
1611
|
const Hn = Symbol.for("v-fgt"), Tr = Symbol.for("v-txt"), Pr = Symbol.for("v-cmt");
|
|
1612
1612
|
let me = null;
|
|
@@ -1619,7 +1619,7 @@ const jr = (...e) => Ln(
|
|
|
1619
1619
|
ref: e,
|
|
1620
1620
|
ref_key: t,
|
|
1621
1621
|
ref_for: n
|
|
1622
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? M(e) || A(e) ||
|
|
1622
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? M(e) || A(e) || O(e) ? { i: le, r: e, k: t, f: !!n } : e : null);
|
|
1623
1623
|
function kr(e, t = null, n = null, o = 0, r = null, s = e === Hn ? 0 : 1, c = !1, a = !1) {
|
|
1624
1624
|
const u = {
|
|
1625
1625
|
__v_isVNode: !0,
|
|
@@ -1674,10 +1674,10 @@ function Ln(e, t = null, n = null, o = 0, r = null, s = !1) {
|
|
|
1674
1674
|
if (Wn(e) && (e = e.__vccOpts), t) {
|
|
1675
1675
|
t = Mr(t);
|
|
1676
1676
|
let { class: a, style: u } = t;
|
|
1677
|
-
a && !M(a) && (t.class = Ht(a)), R(u) && (Ke(u) && !
|
|
1677
|
+
a && !M(a) && (t.class = Ht(a)), R(u) && (Ke(u) && !C(u) && (u = T({}, u)), t.style = kt(u));
|
|
1678
1678
|
}
|
|
1679
|
-
const c = M(e) ? 1 : Rr(e) ? 128 : mr(e) ? 64 : R(e) ? 4 :
|
|
1680
|
-
return process.env.NODE_ENV !== "production" && c & 4 && Ke(e) && (e =
|
|
1679
|
+
const c = M(e) ? 1 : Rr(e) ? 128 : mr(e) ? 64 : R(e) ? 4 : O(e) ? 2 : 0;
|
|
1680
|
+
return process.env.NODE_ENV !== "production" && c & 4 && Ke(e) && (e = b(e), y(
|
|
1681
1681
|
"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`.",
|
|
1682
1682
|
`
|
|
1683
1683
|
Component that was made reactive: `,
|
|
@@ -1707,11 +1707,11 @@ function qe(e, t, n = !1, o = !1) {
|
|
|
1707
1707
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1708
1708
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1709
1709
|
// the refs so the single vnode can be set on multiple refs
|
|
1710
|
-
n && s ?
|
|
1710
|
+
n && s ? C(s) ? s.concat(He(t)) : [s, He(t)] : He(t)
|
|
1711
1711
|
) : s,
|
|
1712
1712
|
scopeId: e.scopeId,
|
|
1713
1713
|
slotScopeIds: e.slotScopeIds,
|
|
1714
|
-
children: process.env.NODE_ENV !== "production" && c === -1 &&
|
|
1714
|
+
children: process.env.NODE_ENV !== "production" && c === -1 && C(a) ? a.map(Kn) : a,
|
|
1715
1715
|
target: e.target,
|
|
1716
1716
|
targetStart: e.targetStart,
|
|
1717
1717
|
targetAnchor: e.targetAnchor,
|
|
@@ -1747,7 +1747,7 @@ function qe(e, t, n = !1, o = !1) {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
function Kn(e) {
|
|
1749
1749
|
const t = qe(e);
|
|
1750
|
-
return
|
|
1750
|
+
return C(e.children) && (t.children = e.children.map(Kn)), t;
|
|
1751
1751
|
}
|
|
1752
1752
|
function Lr(e = " ", t = 0) {
|
|
1753
1753
|
return Hr(Tr, null, e, t);
|
|
@@ -1757,7 +1757,7 @@ function qt(e, t) {
|
|
|
1757
1757
|
const { shapeFlag: o } = e;
|
|
1758
1758
|
if (t == null)
|
|
1759
1759
|
t = null;
|
|
1760
|
-
else if (
|
|
1760
|
+
else if (C(t))
|
|
1761
1761
|
n = 16;
|
|
1762
1762
|
else if (typeof t == "object")
|
|
1763
1763
|
if (o & 65) {
|
|
@@ -1766,7 +1766,7 @@ function qt(e, t) {
|
|
|
1766
1766
|
return;
|
|
1767
1767
|
} else
|
|
1768
1768
|
n = 32, !t._ && !kn(t) && (t._ctx = le);
|
|
1769
|
-
else
|
|
1769
|
+
else O(t) ? (t = { default: t, _ctx: le }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [Lr(t)]) : n = 8);
|
|
1770
1770
|
e.children = t, e.shapeFlag |= n;
|
|
1771
1771
|
}
|
|
1772
1772
|
function Kr(...e) {
|
|
@@ -1780,14 +1780,14 @@ function Kr(...e) {
|
|
|
1780
1780
|
t.style = kt([t.style, o.style]);
|
|
1781
1781
|
else if (po(r)) {
|
|
1782
1782
|
const s = t[r], c = o[r];
|
|
1783
|
-
c && s !== c && !(
|
|
1783
|
+
c && s !== c && !(C(s) && s.includes(c)) && (t[r] = s ? [].concat(s, c) : c);
|
|
1784
1784
|
} else r !== "" && (t[r] = o[r]);
|
|
1785
1785
|
}
|
|
1786
1786
|
return t;
|
|
1787
1787
|
}
|
|
1788
1788
|
let Re = null;
|
|
1789
1789
|
const zr = () => Re || le;
|
|
1790
|
-
let
|
|
1790
|
+
let Ot;
|
|
1791
1791
|
{
|
|
1792
1792
|
const e = ot(), t = (n, o) => {
|
|
1793
1793
|
let r;
|
|
@@ -1795,7 +1795,7 @@ let $t;
|
|
|
1795
1795
|
r.length > 1 ? r.forEach((c) => c(s)) : r[0](s);
|
|
1796
1796
|
};
|
|
1797
1797
|
};
|
|
1798
|
-
|
|
1798
|
+
Ot = t(
|
|
1799
1799
|
"__VUE_INSTANCE_SETTERS__",
|
|
1800
1800
|
(n) => Re = n
|
|
1801
1801
|
), t(
|
|
@@ -1805,8 +1805,8 @@ let $t;
|
|
|
1805
1805
|
}
|
|
1806
1806
|
const Ur = (e) => {
|
|
1807
1807
|
const t = Re;
|
|
1808
|
-
return
|
|
1809
|
-
e.scope.off(),
|
|
1808
|
+
return Ot(e), e.scope.on(), () => {
|
|
1809
|
+
e.scope.off(), Ot(t);
|
|
1810
1810
|
};
|
|
1811
1811
|
};
|
|
1812
1812
|
function Wr(e) {
|
|
@@ -1814,22 +1814,22 @@ function Wr(e) {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
let Ye = !1;
|
|
1816
1816
|
process.env.NODE_ENV;
|
|
1817
|
-
function
|
|
1817
|
+
function Br(e) {
|
|
1818
1818
|
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(qo(Uo(e.exposed)), {
|
|
1819
1819
|
get(t, n) {
|
|
1820
1820
|
if (n in t)
|
|
1821
1821
|
return t[n];
|
|
1822
|
-
if (n in
|
|
1823
|
-
return
|
|
1822
|
+
if (n in $e)
|
|
1823
|
+
return $e[n](e);
|
|
1824
1824
|
},
|
|
1825
1825
|
has(t, n) {
|
|
1826
|
-
return n in t || n in
|
|
1826
|
+
return n in t || n in $e;
|
|
1827
1827
|
}
|
|
1828
1828
|
})) : e.proxy;
|
|
1829
1829
|
}
|
|
1830
|
-
const
|
|
1830
|
+
const Gr = /(?:^|[-_])(\w)/g, Jr = (e) => e.replace(Gr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
1831
1831
|
function zn(e, t = !0) {
|
|
1832
|
-
return
|
|
1832
|
+
return O(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
1833
1833
|
}
|
|
1834
1834
|
function Un(e, t, n = !1) {
|
|
1835
1835
|
let o = zn(t);
|
|
@@ -1850,7 +1850,7 @@ function Un(e, t, n = !1) {
|
|
|
1850
1850
|
return o ? Jr(o) : n ? "App" : "Anonymous";
|
|
1851
1851
|
}
|
|
1852
1852
|
function Wn(e) {
|
|
1853
|
-
return
|
|
1853
|
+
return O(e) && "__vccOpts" in e;
|
|
1854
1854
|
}
|
|
1855
1855
|
const xt = (e, t) => {
|
|
1856
1856
|
const n = Zo(e, t, Ye);
|
|
@@ -1880,8 +1880,8 @@ function qr() {
|
|
|
1880
1880
|
["span", e, I(i) ? "ShallowReactive" : "Reactive"],
|
|
1881
1881
|
"<",
|
|
1882
1882
|
a(i),
|
|
1883
|
-
`>${
|
|
1884
|
-
] :
|
|
1883
|
+
`>${B(i) ? " (readonly)" : ""}`
|
|
1884
|
+
] : B(i) ? [
|
|
1885
1885
|
"div",
|
|
1886
1886
|
{},
|
|
1887
1887
|
["span", e, I(i) ? "ShallowReadonly" : "Readonly"],
|
|
@@ -1904,11 +1904,11 @@ function qr() {
|
|
|
1904
1904
|
};
|
|
1905
1905
|
function s(i) {
|
|
1906
1906
|
const l = [];
|
|
1907
|
-
i.type.props && i.props && l.push(c("props",
|
|
1907
|
+
i.type.props && i.props && l.push(c("props", b(i.props))), i.setupState !== j && l.push(c("setup", i.setupState)), i.data !== j && l.push(c("data", b(i.data)));
|
|
1908
1908
|
const d = u(i, "computed");
|
|
1909
1909
|
d && l.push(c("computed", d));
|
|
1910
|
-
const
|
|
1911
|
-
return
|
|
1910
|
+
const h = u(i, "inject");
|
|
1911
|
+
return h && l.push(c("injected", h)), l.push([
|
|
1912
1912
|
"div",
|
|
1913
1913
|
{},
|
|
1914
1914
|
[
|
|
@@ -1947,20 +1947,20 @@ function qr() {
|
|
|
1947
1947
|
] : ["span", {}];
|
|
1948
1948
|
}
|
|
1949
1949
|
function a(i, l = !0) {
|
|
1950
|
-
return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : R(i) ? ["object", { object: l ?
|
|
1950
|
+
return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : R(i) ? ["object", { object: l ? b(i) : i }] : ["span", n, String(i)];
|
|
1951
1951
|
}
|
|
1952
1952
|
function u(i, l) {
|
|
1953
1953
|
const d = i.type;
|
|
1954
|
-
if (
|
|
1954
|
+
if (O(d))
|
|
1955
1955
|
return;
|
|
1956
|
-
const
|
|
1957
|
-
for (const
|
|
1958
|
-
f(d,
|
|
1959
|
-
return
|
|
1956
|
+
const h = {};
|
|
1957
|
+
for (const m in i.ctx)
|
|
1958
|
+
f(d, m, l) && (h[m] = i.ctx[m]);
|
|
1959
|
+
return h;
|
|
1960
1960
|
}
|
|
1961
1961
|
function f(i, l, d) {
|
|
1962
|
-
const
|
|
1963
|
-
if (
|
|
1962
|
+
const h = i[d];
|
|
1963
|
+
if (C(h) && h.includes(l) || R(h) && l in h || i.extends && f(i.extends, l, d) || i.mixins && i.mixins.some((m) => f(m, l, d)))
|
|
1964
1964
|
return !0;
|
|
1965
1965
|
}
|
|
1966
1966
|
function p(i) {
|
|
@@ -2246,12 +2246,12 @@ function ss(e) {
|
|
|
2246
2246
|
};
|
|
2247
2247
|
});
|
|
2248
2248
|
}
|
|
2249
|
-
const
|
|
2249
|
+
const Bn = ts();
|
|
2250
2250
|
function ei(e) {
|
|
2251
2251
|
if (!ke) {
|
|
2252
2252
|
if (!e)
|
|
2253
2253
|
throw new Error("designer is required");
|
|
2254
|
-
ke = ss(e),
|
|
2254
|
+
ke = ss(e), Bn.registerAgg(ke);
|
|
2255
2255
|
}
|
|
2256
2256
|
return ke.api;
|
|
2257
2257
|
}
|
|
@@ -2329,8 +2329,8 @@ Symbol(
|
|
|
2329
2329
|
new Set(
|
|
2330
2330
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(hs)
|
|
2331
2331
|
);
|
|
2332
|
-
function
|
|
2333
|
-
return At(e) ?
|
|
2332
|
+
function Gn(e) {
|
|
2333
|
+
return At(e) ? Gn(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
2334
2334
|
}
|
|
2335
2335
|
function At(e) {
|
|
2336
2336
|
return !!(e && e.__v_isReadonly);
|
|
@@ -2494,9 +2494,9 @@ function Yn(e, t, n, o = !0) {
|
|
|
2494
2494
|
return;
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
2497
|
-
|
|
2497
|
+
$s(e, n, r, o, c);
|
|
2498
2498
|
}
|
|
2499
|
-
function
|
|
2499
|
+
function $s(e, t, n, o = !0, r = !1) {
|
|
2500
2500
|
if (process.env.NODE_ENV !== "production") {
|
|
2501
2501
|
const s = qn[t];
|
|
2502
2502
|
if (n && bs(n), De(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && Es(), o)
|
|
@@ -2508,9 +2508,9 @@ const F = [];
|
|
|
2508
2508
|
let U = -1;
|
|
2509
2509
|
const Ee = [];
|
|
2510
2510
|
let J = null, he = 0;
|
|
2511
|
-
const
|
|
2511
|
+
const Ss = /* @__PURE__ */ Promise.resolve();
|
|
2512
2512
|
let It = null;
|
|
2513
|
-
const
|
|
2513
|
+
const Os = 100;
|
|
2514
2514
|
function xs(e) {
|
|
2515
2515
|
let t = U + 1, n = F.length;
|
|
2516
2516
|
for (; t < n; ) {
|
|
@@ -2527,7 +2527,7 @@ function Ds(e) {
|
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
2529
|
function Zn() {
|
|
2530
|
-
It || (It =
|
|
2530
|
+
It || (It = Ss.then(Qn));
|
|
2531
2531
|
}
|
|
2532
2532
|
function Vs(e) {
|
|
2533
2533
|
L(e) ? Ee.push(...e) : J && e.id === -1 ? J.splice(he + 1, 0, e) : e.flags & 1 || (Ee.push(e), e.flags |= 1), Zn();
|
|
@@ -2575,7 +2575,7 @@ function Qn(e) {
|
|
|
2575
2575
|
}
|
|
2576
2576
|
function Xn(e, t) {
|
|
2577
2577
|
const n = e.get(t) || 0;
|
|
2578
|
-
if (n >
|
|
2578
|
+
if (n > Os) {
|
|
2579
2579
|
const o = t.i, r = o && io(o.type);
|
|
2580
2580
|
return Yn(
|
|
2581
2581
|
`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.`,
|
|
@@ -2709,7 +2709,7 @@ function ro(e, t = null, n = null, o = 0, r = null, s = !1) {
|
|
|
2709
2709
|
return n && en(a, n), !s && ge && (a.shapeFlag & 6 ? ge[ge.indexOf(e)] = a : ge.push(a)), a.patchFlag = -2, a;
|
|
2710
2710
|
}
|
|
2711
2711
|
if (ao(e) && (e = e.__vccOpts), t) {
|
|
2712
|
-
t =
|
|
2712
|
+
t = Bs(t);
|
|
2713
2713
|
let { class: a, style: u } = t;
|
|
2714
2714
|
a && !X(a) && (t.class = Zt(a)), ie(u) && (Rt(u) && !L(u) && (u = ct({}, u)), t.style = Yt(u));
|
|
2715
2715
|
}
|
|
@@ -2730,7 +2730,7 @@ Component that was made reactive: `,
|
|
|
2730
2730
|
!0
|
|
2731
2731
|
);
|
|
2732
2732
|
}
|
|
2733
|
-
function
|
|
2733
|
+
function Bs(e) {
|
|
2734
2734
|
return e ? Rt(e) || to(e) ? ct({}, e) : e : null;
|
|
2735
2735
|
}
|
|
2736
2736
|
function et(e, t, n = !1, o = !1) {
|
|
@@ -2786,7 +2786,7 @@ function so(e) {
|
|
|
2786
2786
|
const t = et(e);
|
|
2787
2787
|
return L(e.children) && (t.children = e.children.map(so)), t;
|
|
2788
2788
|
}
|
|
2789
|
-
function
|
|
2789
|
+
function Gs(e = " ", t = 0) {
|
|
2790
2790
|
return Ws(Ms, null, e, t);
|
|
2791
2791
|
}
|
|
2792
2792
|
function en(e, t) {
|
|
@@ -2803,7 +2803,7 @@ function en(e, t) {
|
|
|
2803
2803
|
return;
|
|
2804
2804
|
} else
|
|
2805
2805
|
n = 32, !t._ && !to(t) && (t._ctx = Xe);
|
|
2806
|
-
else ue(t) ? (t = { default: t, _ctx: Xe }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [
|
|
2806
|
+
else ue(t) ? (t = { default: t, _ctx: Xe }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [Gs(t)]) : n = 8);
|
|
2807
2807
|
e.children = t, e.shapeFlag |= n;
|
|
2808
2808
|
}
|
|
2809
2809
|
function Js(...e) {
|
|
@@ -2877,7 +2877,7 @@ function Zs() {
|
|
|
2877
2877
|
// avoid debugger accessing value affecting behavior
|
|
2878
2878
|
a("_value" in i ? i._value : i),
|
|
2879
2879
|
">"
|
|
2880
|
-
] :
|
|
2880
|
+
] : Gn(i) ? [
|
|
2881
2881
|
"div",
|
|
2882
2882
|
{},
|
|
2883
2883
|
["span", e, _t(i) ? "ShallowReactive" : "Reactive"],
|
|
@@ -2910,8 +2910,8 @@ function Zs() {
|
|
|
2910
2910
|
i.type.props && i.props && l.push(c("props", ce(i.props))), i.setupState !== Vt && l.push(c("setup", i.setupState)), i.data !== Vt && l.push(c("data", ce(i.data)));
|
|
2911
2911
|
const d = u(i, "computed");
|
|
2912
2912
|
d && l.push(c("computed", d));
|
|
2913
|
-
const
|
|
2914
|
-
return
|
|
2913
|
+
const h = u(i, "inject");
|
|
2914
|
+
return h && l.push(c("injected", h)), l.push([
|
|
2915
2915
|
"div",
|
|
2916
2916
|
{},
|
|
2917
2917
|
[
|
|
@@ -2956,14 +2956,14 @@ function Zs() {
|
|
|
2956
2956
|
const d = i.type;
|
|
2957
2957
|
if (ue(d))
|
|
2958
2958
|
return;
|
|
2959
|
-
const
|
|
2960
|
-
for (const
|
|
2961
|
-
f(d,
|
|
2962
|
-
return
|
|
2959
|
+
const h = {};
|
|
2960
|
+
for (const m in i.ctx)
|
|
2961
|
+
f(d, m, l) && (h[m] = i.ctx[m]);
|
|
2962
|
+
return h;
|
|
2963
2963
|
}
|
|
2964
2964
|
function f(i, l, d) {
|
|
2965
|
-
const
|
|
2966
|
-
if (L(
|
|
2965
|
+
const h = i[d];
|
|
2966
|
+
if (L(h) && h.includes(l) || ie(h) && l in h || i.extends && f(i.extends, l, d) || i.mixins && i.mixins.some((m) => f(m, l, d)))
|
|
2967
2967
|
return !0;
|
|
2968
2968
|
}
|
|
2969
2969
|
function p(i) {
|
|
@@ -3064,7 +3064,7 @@ const ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3064
3064
|
return Tt;
|
|
3065
3065
|
}
|
|
3066
3066
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3067
|
-
var
|
|
3067
|
+
var w;
|
|
3068
3068
|
((e) => {
|
|
3069
3069
|
function t(f) {
|
|
3070
3070
|
return f.trim().split(f.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((p) => p.charAt(0).toUpperCase() + p.toLowerCase().slice(1)).join("");
|
|
@@ -3099,11 +3099,11 @@ var C;
|
|
|
3099
3099
|
return f.trim().charAt(0).toUpperCase() + f.slice(1);
|
|
3100
3100
|
}
|
|
3101
3101
|
e.upperFirst = u;
|
|
3102
|
-
})(
|
|
3103
|
-
const x = tt.JavaGeneratorAddition, ni =
|
|
3102
|
+
})(w || (w = {}));
|
|
3103
|
+
const x = tt.JavaGeneratorAddition, ni = Bn.createHotSwapPlugin(() => {
|
|
3104
3104
|
const e = "value";
|
|
3105
3105
|
function t(n) {
|
|
3106
|
-
return
|
|
3106
|
+
return w.stringToUpperCamel(n._attributes.name);
|
|
3107
3107
|
}
|
|
3108
3108
|
return {
|
|
3109
3109
|
unmount({ api: n }) {
|
|
@@ -3112,15 +3112,15 @@ const x = tt.JavaGeneratorAddition, ni = Gn.createHotSwapPlugin(() => {
|
|
|
3112
3112
|
mount({ api: n }) {
|
|
3113
3113
|
const o = n.states.context;
|
|
3114
3114
|
function r(c, a) {
|
|
3115
|
-
const u = o.value.additions, f =
|
|
3116
|
-
return /\b(time|timestamp|date|deadline|expire)\b/.test(f) ? u.has(x.Timezone) ? (c.add("java.time.OffsetDateTime"), "OffsetDateTime") : (c.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|flag|times)\b/.test(f) ? "Integer" : /^(if|is)\b/.test(f) ? "Boolean" : is(a) && (a._attributes.type === "Id" || a._attributes.type === "Version") ? "Long" : "String";
|
|
3115
|
+
const u = o.value.additions, f = w.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
|
|
3116
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(f) ? u.has(x.Timezone) ? (c.add("java.time.OffsetDateTime"), "OffsetDateTime") : (c.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(f) ? "Integer" : /\b(price)$/.test(f) ? (c.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(f) ? "Boolean" : is(a) && (a._attributes.type === "Id" || a._attributes.type === "Version") ? "Long" : "String";
|
|
3117
3117
|
}
|
|
3118
3118
|
n.commands._setInfoCodeProvider(
|
|
3119
3119
|
(c) => {
|
|
3120
3120
|
const a = /* @__PURE__ */ new Set();
|
|
3121
3121
|
a.add(o.value.nonNullAnnotation);
|
|
3122
3122
|
const u = o.value.nonNullAnnotation.split(".").pop(), f = t(c), p = o.value.additions, i = [];
|
|
3123
|
-
return p.has(x.RecordVakueObject) ? (i.push(`public record ${f}
|
|
3123
|
+
return p.has(x.RecordVakueObject) ? (i.push(`public record ${f}(@${u} ${r(a, c)} value) {`), i.push(` public ${f} {`), i.push(" // HACK check value"), i.push(" }"), i.push("}")) : p.has(x.Lombok) ? (i.push("@lombok.AllArgsConstructor"), i.push("@lombok.Getter"), i.push(`public class ${f} {`), i.push(` private final ${r(a, c)} value;`), i.push(""), i.push(` public ${f} (@${u} ${r(a, c)} value) {`), i.push(" // HACK check value"), i.push(" this.value = value;"), i.push(" }"), i.push("}")) : (i.push(`public class ${t(c)} {`), i.push(` private final ${r(a, c)} value;`), i.push(""), i.push(` public ${f} (@${u} ${r(a, c)} value) {`), i.push(" // HACK check value"), i.push(" this.value = value;"), i.push(" }"), i.push(""), i.push(` public ${r(a, c)} getValue() {`), i.push(" return this.value;"), i.push(" }"), i.push("}")), [
|
|
3124
3124
|
{
|
|
3125
3125
|
type: "Info",
|
|
3126
3126
|
imports: a,
|
|
@@ -3136,49 +3136,49 @@ const x = tt.JavaGeneratorAddition, ni = Gn.createHotSwapPlugin(() => {
|
|
|
3136
3136
|
const p = /* @__PURE__ */ new Set();
|
|
3137
3137
|
p.add(o.value.nonNullAnnotation);
|
|
3138
3138
|
const i = t(c), l = [], d = Object.values(c.inner);
|
|
3139
|
-
for (const
|
|
3139
|
+
for (const h of d)
|
|
3140
3140
|
p.add(
|
|
3141
|
-
`${o.value.namespace}.${o.value.moduleName}.${e}.${t(
|
|
3141
|
+
`${o.value.namespace}.${o.value.moduleName}.${e}.${t(h)}`
|
|
3142
3142
|
);
|
|
3143
3143
|
if (u.has(x.RecordVakueObject)) {
|
|
3144
|
-
u.has(x.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public record ${i}
|
|
3145
|
-
const
|
|
3146
|
-
for (const
|
|
3147
|
-
const
|
|
3148
|
-
|
|
3149
|
-
${
|
|
3144
|
+
u.has(x.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public record ${i}(`);
|
|
3145
|
+
const h = [];
|
|
3146
|
+
for (const m of d) {
|
|
3147
|
+
const _ = t(m);
|
|
3148
|
+
h.push(` @${f}
|
|
3149
|
+
${_} ${w.lowerFirst(_)}`);
|
|
3150
3150
|
}
|
|
3151
|
-
l.push(
|
|
3151
|
+
l.push(h.join(`,
|
|
3152
3152
|
`)), l.push(") {"), l.push(` public ${i} {`), l.push(" // HACK check value"), l.push(" }"), l.push("}");
|
|
3153
3153
|
} else if (u.has(x.Lombok)) {
|
|
3154
|
-
l.push("@lombok.AllArgsConstructor"), l.push("@lombok.Getter"), u.has(x.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`
|
|
3155
|
-
for (const
|
|
3156
|
-
const
|
|
3157
|
-
l.push(` @${f}`), l.push(` private final ${
|
|
3154
|
+
l.push("@lombok.AllArgsConstructor"), l.push("@lombok.Getter"), u.has(x.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public class ${i} {`);
|
|
3155
|
+
for (const m of d) {
|
|
3156
|
+
const _ = t(m);
|
|
3157
|
+
l.push(` @${f}`), l.push(` private final ${_} ${w.lowerFirst(_)};`);
|
|
3158
3158
|
}
|
|
3159
3159
|
l.push("");
|
|
3160
|
-
const
|
|
3161
|
-
for (const
|
|
3162
|
-
const
|
|
3163
|
-
|
|
3160
|
+
const h = [];
|
|
3161
|
+
for (const m of d) {
|
|
3162
|
+
const _ = t(m);
|
|
3163
|
+
h.push(`@${f} ${_} ${w.lowerFirst(_)}`);
|
|
3164
3164
|
}
|
|
3165
|
-
l.push(` public ${i}(${
|
|
3165
|
+
l.push(` public ${i}(${h.join(", ")}) {`), l.push(" // HACK check value"), l.push(" }"), l.push("}");
|
|
3166
3166
|
} else {
|
|
3167
|
-
l.push(`
|
|
3168
|
-
for (const
|
|
3169
|
-
const
|
|
3170
|
-
l.push(` @${f}`), l.push(` private final ${r(p,
|
|
3167
|
+
l.push(`public class ${i} {`);
|
|
3168
|
+
for (const m of d) {
|
|
3169
|
+
const _ = t(m);
|
|
3170
|
+
l.push(` @${f}`), l.push(` private final ${r(p, m)} ${w.lowerFirst(_)};`);
|
|
3171
3171
|
}
|
|
3172
3172
|
l.push("");
|
|
3173
|
-
const
|
|
3174
|
-
for (const
|
|
3175
|
-
const
|
|
3176
|
-
|
|
3173
|
+
const h = [];
|
|
3174
|
+
for (const m of d) {
|
|
3175
|
+
const _ = t(m);
|
|
3176
|
+
h.push(`@${f} ${r(p, m)} ${w.lowerFirst(_)}`);
|
|
3177
3177
|
}
|
|
3178
|
-
l.push(` public ${i}(${
|
|
3179
|
-
for (const
|
|
3180
|
-
const
|
|
3181
|
-
l.push(""), l.push(` public ${r(p,
|
|
3178
|
+
l.push(` public ${i}(${h.join(", ")}) {`), l.push(" // HACK check value"), l.push(" }");
|
|
3179
|
+
for (const m of d) {
|
|
3180
|
+
const _ = t(m);
|
|
3181
|
+
l.push(""), l.push(` public ${r(p, m)} get${_} () {`), l.push(` return this.${w.lowerFirst(_)};`), l.push(" }");
|
|
3182
3182
|
}
|
|
3183
3183
|
l.push("}");
|
|
3184
3184
|
}
|
|
@@ -3194,17 +3194,13 @@ const x = tt.JavaGeneratorAddition, ni = Gn.createHotSwapPlugin(() => {
|
|
|
3194
3194
|
{
|
|
3195
3195
|
const p = /* @__PURE__ */ new Set();
|
|
3196
3196
|
p.add(o.value.nonNullAnnotation);
|
|
3197
|
-
const i = t(c), l = []
|
|
3198
|
-
for (const h of d)
|
|
3199
|
-
p.add(
|
|
3200
|
-
`${o.value.namespace}.${o.value.moduleName}.${e}.${t(h)}`
|
|
3201
|
-
);
|
|
3197
|
+
const i = t(c), l = [];
|
|
3202
3198
|
u.has(x.SpringFramework) && (p.add("org.springframework.stereotype.Component"), l.push("@Component")), u.has(x.Lombok) && l.push("@lombok.RequiredArgsConstructor"), l.push(`public class ${i}Handler {`);
|
|
3203
|
-
const
|
|
3199
|
+
const d = [...n.states.designer.value._getContext().getAssociationMap()[c._attributes.__id]].filter(
|
|
3204
3200
|
(h) => h._attributes.rule === "Agg"
|
|
3205
3201
|
);
|
|
3206
|
-
for (const h of
|
|
3207
|
-
p.add(`${o.value.namespace}.${o.value.moduleName}.${t(h)}`), l.push(` public ${t(h)} handle(${i} command) {`), l.push(" // HACK Implement"), l.push(" }");
|
|
3202
|
+
for (const h of d)
|
|
3203
|
+
p.add(`${o.value.namespace}.${o.value.moduleName}.${t(h)}`), l.push(` public ${t(h)} handle(@${f} ${i} command) {`), l.push(" // HACK Implement"), l.push(" }");
|
|
3208
3204
|
l.push("}"), a.push({
|
|
3209
3205
|
type: "CommandHandler",
|
|
3210
3206
|
imports: p,
|
|
@@ -3218,38 +3214,54 @@ const x = tt.JavaGeneratorAddition, ni = Gn.createHotSwapPlugin(() => {
|
|
|
3218
3214
|
const a = /* @__PURE__ */ new Set();
|
|
3219
3215
|
a.add(o.value.nonNullAnnotation);
|
|
3220
3216
|
const u = o.value.nonNullAnnotation.split(".").pop(), f = o.value.additions, p = n.states.designer.value, i = t(c), l = [], d = Object.values(c.inner);
|
|
3221
|
-
for (const
|
|
3217
|
+
for (const h of d)
|
|
3222
3218
|
a.add(
|
|
3223
|
-
`${o.value.namespace}.${o.value.moduleName}.${e}.${t(
|
|
3219
|
+
`${o.value.namespace}.${o.value.moduleName}.${e}.${t(h)}`
|
|
3224
3220
|
);
|
|
3225
3221
|
if (f.has(x.Lombok)) {
|
|
3226
3222
|
l.push("@lombok.AllArgsConstructor"), l.push("@lombok.Getter"), l.push(`public class ${i} {`);
|
|
3227
|
-
for (const
|
|
3228
|
-
const
|
|
3229
|
-
l.push(` @${u}`), l.push(` private ${
|
|
3223
|
+
for (const m of d) {
|
|
3224
|
+
const _ = t(m);
|
|
3225
|
+
l.push(` @${u}`), l.push(` private ${_} ${w.lowerFirst(_)};`);
|
|
3230
3226
|
}
|
|
3231
|
-
const
|
|
3232
|
-
for (const
|
|
3233
|
-
const
|
|
3234
|
-
l.push(""), l.push(
|
|
3227
|
+
const h = [...p._getContext().getAssociationMap()[c._attributes.__id]].filter((m) => m._attributes.rule === "Command" || m._attributes.rule === "FacadeCommand");
|
|
3228
|
+
for (const m of h) {
|
|
3229
|
+
const _ = t(m);
|
|
3230
|
+
l.push(""), l.push(
|
|
3231
|
+
` public void handle${_}(@${u} ${_} ${w.lowerFirst(
|
|
3232
|
+
_
|
|
3233
|
+
)}) {`
|
|
3234
|
+
), l.push(" // HACK need implement"), l.push(" }");
|
|
3235
3235
|
}
|
|
3236
3236
|
l.push("}");
|
|
3237
3237
|
} else {
|
|
3238
3238
|
l.push(`public class ${i} {`);
|
|
3239
|
-
for (const
|
|
3240
|
-
const
|
|
3241
|
-
l.push(` @${u}`), l.push(` private ${
|
|
3239
|
+
for (const g of d) {
|
|
3240
|
+
const v = t(g);
|
|
3241
|
+
l.push(` @${u}`), l.push(` private ${v} ${w.lowerFirst(v)};`);
|
|
3242
|
+
}
|
|
3243
|
+
l.push("");
|
|
3244
|
+
const h = [], m = [];
|
|
3245
|
+
for (const g of d) {
|
|
3246
|
+
const v = t(g);
|
|
3247
|
+
h.push(`@${u} ${v} ${w.lowerFirst(v)}`), m.push(`this.${w.lowerFirst(v)} = ${w.lowerFirst(v)};`);
|
|
3242
3248
|
}
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3249
|
+
l.push(` public ${i}(${h.join(", ")}) {`), l.push(` ${m.join(`
|
|
3250
|
+
`)}`), l.push(" }");
|
|
3251
|
+
for (const g of d) {
|
|
3252
|
+
const v = t(g);
|
|
3253
|
+
l.push(""), l.push(` @${u}`), l.push(` public ${v} get${v}() {`), l.push(` return this.${w.lowerFirst(v)};`), l.push(" }");
|
|
3246
3254
|
}
|
|
3247
|
-
const
|
|
3248
|
-
(
|
|
3255
|
+
const _ = [...p._getContext().getAssociationMap()[c._attributes.__id]].filter(
|
|
3256
|
+
(g) => g._attributes.rule === "Command" || g._attributes.rule === "FacadeCommand"
|
|
3249
3257
|
);
|
|
3250
|
-
for (const
|
|
3251
|
-
const
|
|
3252
|
-
l.push(""), l.push(
|
|
3258
|
+
for (const g of _) {
|
|
3259
|
+
const v = t(g);
|
|
3260
|
+
l.push(""), l.push(
|
|
3261
|
+
` public void handle${v}(@${u} ${v} ${w.lowerFirst(
|
|
3262
|
+
v
|
|
3263
|
+
)}) {`
|
|
3264
|
+
), l.push(" // HACK need implement"), l.push(" }");
|
|
3253
3265
|
}
|
|
3254
3266
|
l.push("}");
|
|
3255
3267
|
}
|
|
@@ -3271,44 +3283,44 @@ const x = tt.JavaGeneratorAddition, ni = Gn.createHotSwapPlugin(() => {
|
|
|
3271
3283
|
`${o.value.namespace}.${o.value.moduleName}.${e}.${t(d)}`
|
|
3272
3284
|
);
|
|
3273
3285
|
if (f.has(x.RecordVakueObject)) {
|
|
3274
|
-
f.has(x.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`
|
|
3286
|
+
f.has(x.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`public record ${p}(`);
|
|
3275
3287
|
const d = [];
|
|
3276
|
-
for (const
|
|
3277
|
-
const
|
|
3288
|
+
for (const h of l) {
|
|
3289
|
+
const m = t(h);
|
|
3278
3290
|
d.push(` @${u}
|
|
3279
|
-
${
|
|
3291
|
+
${m} ${w.lowerFirst(m)}`);
|
|
3280
3292
|
}
|
|
3281
3293
|
i.push(d.join(`,
|
|
3282
3294
|
`)), i.push(") {"), i.push(` public ${p} {`), i.push(" // HACK check value"), i.push(" }"), i.push("}");
|
|
3283
3295
|
} else if (f.has(x.Lombok)) {
|
|
3284
|
-
i.push("@lombok.AllArgsConstructor"), i.push("@lombok.Getter"), f.has(x.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`
|
|
3285
|
-
for (const
|
|
3286
|
-
const
|
|
3287
|
-
i.push(` @${u}`), i.push(` private final ${
|
|
3296
|
+
i.push("@lombok.AllArgsConstructor"), i.push("@lombok.Getter"), f.has(x.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`public class ${p} {`);
|
|
3297
|
+
for (const h of l) {
|
|
3298
|
+
const m = t(h);
|
|
3299
|
+
i.push(` @${u}`), i.push(` private final ${m} ${w.lowerFirst(m)};`);
|
|
3288
3300
|
}
|
|
3289
3301
|
i.push("");
|
|
3290
3302
|
const d = [];
|
|
3291
|
-
for (const
|
|
3292
|
-
const
|
|
3293
|
-
d.push(`@${u} ${
|
|
3303
|
+
for (const h of l) {
|
|
3304
|
+
const m = t(h);
|
|
3305
|
+
d.push(`@${u} ${m} ${w.lowerFirst(m)}`);
|
|
3294
3306
|
}
|
|
3295
3307
|
i.push(` public ${p}(${d.join(", ")}) {`), i.push(" // HACK check value"), i.push(" }"), i.push("}");
|
|
3296
3308
|
} else {
|
|
3297
|
-
i.push(`
|
|
3298
|
-
for (const
|
|
3299
|
-
const
|
|
3300
|
-
i.push(` @${u}`), i.push(` private final ${
|
|
3309
|
+
i.push(`public class ${p} {`);
|
|
3310
|
+
for (const h of l) {
|
|
3311
|
+
const m = t(h);
|
|
3312
|
+
i.push(` @${u}`), i.push(` private final ${m} ${w.lowerFirst(m)};`);
|
|
3301
3313
|
}
|
|
3302
3314
|
i.push("");
|
|
3303
3315
|
const d = [];
|
|
3304
|
-
for (const
|
|
3305
|
-
const
|
|
3306
|
-
d.push(`@${u} ${r(a,
|
|
3316
|
+
for (const h of l) {
|
|
3317
|
+
const m = t(h);
|
|
3318
|
+
d.push(`@${u} ${r(a, h)} ${w.lowerFirst(m)}`);
|
|
3307
3319
|
}
|
|
3308
3320
|
i.push(` public ${p}(${d.join(", ")}) {`), i.push(" // HACK check value"), i.push(" }");
|
|
3309
|
-
for (const
|
|
3310
|
-
const
|
|
3311
|
-
i.push(""), i.push(` public ${
|
|
3321
|
+
for (const h of l) {
|
|
3322
|
+
const m = t(h);
|
|
3323
|
+
i.push(""), i.push(` public ${m} get${m} () {`), i.push(` return this.${w.lowerFirst(m)};`), i.push(" }");
|
|
3312
3324
|
}
|
|
3313
3325
|
i.push("}");
|
|
3314
3326
|
}
|
|
@@ -3324,78 +3336,78 @@ const x = tt.JavaGeneratorAddition, ni = Gn.createHotSwapPlugin(() => {
|
|
|
3324
3336
|
), n.commands._setReadModelCodeProvider(() => []), n.commands._setCodeFileProvider(() => {
|
|
3325
3337
|
const c = [], a = {};
|
|
3326
3338
|
function u(d) {
|
|
3327
|
-
for (const
|
|
3328
|
-
const
|
|
3329
|
-
if (a[`${
|
|
3339
|
+
for (const h of Object.values(d)) {
|
|
3340
|
+
const m = [...o.value.namespace.split(/\./), o.value.moduleName, e], _ = t(h) + ".java";
|
|
3341
|
+
if (a[`${m}/${_}`] === !0)
|
|
3330
3342
|
continue;
|
|
3331
|
-
const
|
|
3332
|
-
if (
|
|
3343
|
+
const g = n.commands._genInfoCode(h);
|
|
3344
|
+
if (g.length === 0)
|
|
3333
3345
|
continue;
|
|
3334
|
-
const
|
|
3335
|
-
|
|
3336
|
-
for (const ee of
|
|
3337
|
-
|
|
3338
|
-
|
|
3346
|
+
const v = new ne(m, _);
|
|
3347
|
+
v.appendContentln(`package ${o.value.namespace}.${o.value.moduleName}.${e};`), v.appendContentln("");
|
|
3348
|
+
for (const ee of g[0].imports)
|
|
3349
|
+
v.appendContentln(`import ${ee};`);
|
|
3350
|
+
v.appendContentln(""), v.appendContentln(g[0].content), c.push(v), a[`${m}/${_}`] = !0;
|
|
3339
3351
|
}
|
|
3340
3352
|
}
|
|
3341
3353
|
const f = n.states.designer.value._getContext().getCommands();
|
|
3342
3354
|
for (const d of f) {
|
|
3343
3355
|
u(d.inner);
|
|
3344
|
-
const
|
|
3345
|
-
|
|
3346
|
-
if (
|
|
3347
|
-
const
|
|
3348
|
-
|
|
3349
|
-
for (const
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
} else if (
|
|
3353
|
-
const
|
|
3354
|
-
|
|
3355
|
-
for (const
|
|
3356
|
-
|
|
3357
|
-
|
|
3356
|
+
const h = n.commands._genCommandCode(d), m = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
3357
|
+
h.forEach((_) => {
|
|
3358
|
+
if (_.type === "Command") {
|
|
3359
|
+
const g = new ne(m, t(d) + ".java");
|
|
3360
|
+
g.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), g.appendContentln(""), g.addImports(_.imports);
|
|
3361
|
+
for (const v of _.imports)
|
|
3362
|
+
g.appendContentln(`import ${v};`);
|
|
3363
|
+
g.appendContentln(""), g.appendContentln(_.content), c.push(g);
|
|
3364
|
+
} else if (_.type === "CommandHandler") {
|
|
3365
|
+
const g = new ne(m, t(d) + "Handler.java");
|
|
3366
|
+
g.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), g.appendContentln(""), g.addImports(_.imports);
|
|
3367
|
+
for (const v of _.imports)
|
|
3368
|
+
g.appendContentln(`import ${v};`);
|
|
3369
|
+
g.appendContentln(""), g.appendContentln(_.content), c.push(g);
|
|
3358
3370
|
} else
|
|
3359
|
-
isNever(
|
|
3371
|
+
isNever(_.type);
|
|
3360
3372
|
});
|
|
3361
3373
|
}
|
|
3362
3374
|
const p = n.states.designer.value._getContext().getFacadeCommands();
|
|
3363
3375
|
for (const d of p) {
|
|
3364
3376
|
u(d.inner);
|
|
3365
|
-
const
|
|
3366
|
-
|
|
3367
|
-
if (
|
|
3368
|
-
const
|
|
3369
|
-
|
|
3370
|
-
for (const
|
|
3371
|
-
|
|
3372
|
-
|
|
3377
|
+
const h = n.commands._genFacadeCommandCode(d), m = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
3378
|
+
h.forEach((_) => {
|
|
3379
|
+
if (_.type === "FacadeCommand") {
|
|
3380
|
+
const g = new ne(m, t(d) + ".java");
|
|
3381
|
+
g.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), g.appendContentln(""), g.addImports(_.imports);
|
|
3382
|
+
for (const v of _.imports)
|
|
3383
|
+
g.appendContentln(`import ${v};`);
|
|
3384
|
+
g.appendContentln(""), g.appendContentln(_.content), c.push(g);
|
|
3373
3385
|
} else
|
|
3374
|
-
isNever(
|
|
3386
|
+
isNever(_.type);
|
|
3375
3387
|
});
|
|
3376
3388
|
}
|
|
3377
3389
|
const i = n.states.designer.value._getContext().getAggs();
|
|
3378
3390
|
for (const d of i) {
|
|
3379
3391
|
u(d.inner);
|
|
3380
|
-
const
|
|
3381
|
-
|
|
3382
|
-
const
|
|
3383
|
-
|
|
3384
|
-
for (const
|
|
3385
|
-
|
|
3386
|
-
|
|
3392
|
+
const h = n.commands._genAggCode(d), m = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
3393
|
+
h.forEach((_) => {
|
|
3394
|
+
const g = new ne(m, t(d) + ".java");
|
|
3395
|
+
g.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), g.appendContentln(""), g.addImports(_.imports);
|
|
3396
|
+
for (const v of _.imports)
|
|
3397
|
+
g.appendContentln(`import ${v};`);
|
|
3398
|
+
g.appendContentln(""), g.appendContentln(_.content), c.push(g);
|
|
3387
3399
|
});
|
|
3388
3400
|
}
|
|
3389
3401
|
const l = n.states.designer.value._getContext().getEvents();
|
|
3390
3402
|
for (const d of l) {
|
|
3391
3403
|
u(d.inner);
|
|
3392
|
-
const
|
|
3393
|
-
|
|
3394
|
-
const
|
|
3395
|
-
|
|
3396
|
-
for (const
|
|
3397
|
-
|
|
3398
|
-
|
|
3404
|
+
const h = n.commands._genEventCode(d), m = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
3405
|
+
h.forEach((_) => {
|
|
3406
|
+
const g = new ne(m, t(d) + ".java");
|
|
3407
|
+
g.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), g.appendContentln(""), g.addImports(_.imports);
|
|
3408
|
+
for (const v of _.imports)
|
|
3409
|
+
g.appendContentln(`import ${v};`);
|
|
3410
|
+
g.appendContentln(""), g.appendContentln(_.content), c.push(g);
|
|
3399
3411
|
});
|
|
3400
3412
|
}
|
|
3401
3413
|
return c;
|
|
@@ -3405,7 +3417,7 @@ const x = tt.JavaGeneratorAddition, ni = Gn.createHotSwapPlugin(() => {
|
|
|
3405
3417
|
});
|
|
3406
3418
|
export {
|
|
3407
3419
|
ni as GENERATOR_JAVA_PLUGIN,
|
|
3408
|
-
|
|
3420
|
+
Bn as GeneratorPliginHelper,
|
|
3409
3421
|
ti as define,
|
|
3410
3422
|
ei as useGeneratorAgg
|
|
3411
3423
|
};
|