@ddd-tool/domain-designer-generator 0.0.0-alpha.8 → 0.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domain/define.d.ts +15 -0
- package/domain/generator-agg.d.ts +872 -872
- package/domain-plugin/generator-csharp-plugin.d.ts +194 -0
- package/domain-plugin/generator-go-plugin.d.ts +194 -0
- package/domain-plugin/generator-java-plugin.d.ts +28 -28
- package/domain-plugin/generator-kotlin-plugin.d.ts +28 -28
- package/index.d.ts +4 -0
- package/index.js +1651 -1259
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
**/
|
|
6
6
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
7
7
|
// @__NO_SIDE_EFFECTS__
|
|
8
|
-
function
|
|
8
|
+
function mo(e) {
|
|
9
9
|
const t = /* @__PURE__ */ Object.create(null);
|
|
10
10
|
for (const n of e.split(",")) t[n] = 1;
|
|
11
11
|
return (n) => n in t;
|
|
@@ -13,8 +13,8 @@ function fo(e) {
|
|
|
13
13
|
const H = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
14
14
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
15
15
|
const oe = () => {
|
|
16
|
-
},
|
|
17
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), F = Object.assign,
|
|
16
|
+
}, ho = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
17
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), F = Object.assign, go = Object.prototype.hasOwnProperty, O = (e, t) => go.call(e, t), E = Array.isArray, ve = (e) => it(e) === "[object Map]", _o = (e) => it(e) === "[object Set]", x = (e) => typeof e == "function", K = (e) => typeof e == "string", Pe = (e) => typeof e == "symbol", T = (e) => e !== null && typeof e == "object", vo = (e) => (T(e) || x(e)) && x(e.then) && x(e.catch), Co = Object.prototype.toString, it = (e) => Co.call(e), _n = (e) => it(e).slice(8, -1), $o = (e) => it(e) === "[object Object]", Lt = (e) => K(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, bo = (e) => {
|
|
18
18
|
const t = /* @__PURE__ */ Object.create(null);
|
|
19
19
|
return (n) => t[n] || (t[n] = e(n));
|
|
20
20
|
}, No = bo((e) => e.charAt(0).toUpperCase() + e.slice(1)), ee = (e, t) => !Object.is(e, t), wo = (e, t, n, o = !1) => {
|
|
@@ -25,41 +25,41 @@ const oe = () => {
|
|
|
25
25
|
value: n
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
let
|
|
29
|
-
const
|
|
30
|
-
function
|
|
28
|
+
let rn;
|
|
29
|
+
const at = () => rn || (rn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
30
|
+
function Kt(e) {
|
|
31
31
|
if (E(e)) {
|
|
32
32
|
const t = {};
|
|
33
33
|
for (let n = 0; n < e.length; n++) {
|
|
34
|
-
const o = e[n], s = K(o) ?
|
|
34
|
+
const o = e[n], s = K(o) ? Oo(o) : Kt(o);
|
|
35
35
|
if (s)
|
|
36
36
|
for (const r in s)
|
|
37
37
|
t[r] = s[r];
|
|
38
38
|
}
|
|
39
39
|
return t;
|
|
40
|
-
} else if (K(e) ||
|
|
40
|
+
} else if (K(e) || T(e))
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
|
-
const Eo = /;(?![^(]*\))/g, yo = /:([^]+)/,
|
|
44
|
-
function
|
|
43
|
+
const Eo = /;(?![^(]*\))/g, yo = /:([^]+)/, So = /\/\*[^]*?\*\//g;
|
|
44
|
+
function Oo(e) {
|
|
45
45
|
const t = {};
|
|
46
|
-
return e.replace(
|
|
46
|
+
return e.replace(So, "").split(Eo).forEach((n) => {
|
|
47
47
|
if (n) {
|
|
48
48
|
const o = n.split(yo);
|
|
49
49
|
o.length > 1 && (t[o[0].trim()] = o[1].trim());
|
|
50
50
|
}
|
|
51
51
|
}), t;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ut(e) {
|
|
54
54
|
let t = "";
|
|
55
55
|
if (K(e))
|
|
56
56
|
t = e;
|
|
57
57
|
else if (E(e))
|
|
58
58
|
for (let n = 0; n < e.length; n++) {
|
|
59
|
-
const o =
|
|
59
|
+
const o = Ut(e[n]);
|
|
60
60
|
o && (t += o + " ");
|
|
61
61
|
}
|
|
62
|
-
else if (
|
|
62
|
+
else if (T(e))
|
|
63
63
|
for (const n in e)
|
|
64
64
|
e[n] && (t += n + " ");
|
|
65
65
|
return t.trim();
|
|
@@ -69,11 +69,11 @@ function Mt(e) {
|
|
|
69
69
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
70
70
|
* @license MIT
|
|
71
71
|
**/
|
|
72
|
-
function
|
|
72
|
+
function W(e, ...t) {
|
|
73
73
|
}
|
|
74
74
|
let w;
|
|
75
|
-
const
|
|
76
|
-
class
|
|
75
|
+
const ht = /* @__PURE__ */ new WeakSet();
|
|
76
|
+
class Io {
|
|
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
|
}
|
|
@@ -81,61 +81,61 @@ class Oo {
|
|
|
81
81
|
this.flags |= 64;
|
|
82
82
|
}
|
|
83
83
|
resume() {
|
|
84
|
-
this.flags & 64 && (this.flags &= -65,
|
|
84
|
+
this.flags & 64 && (this.flags &= -65, ht.has(this) && (ht.delete(this), this.trigger()));
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
87
|
* @internal
|
|
88
88
|
*/
|
|
89
89
|
notify() {
|
|
90
|
-
this.flags & 2 && !(this.flags & 32) || this.flags & 8 ||
|
|
90
|
+
this.flags & 2 && !(this.flags & 32) || this.flags & 8 || Cn(this);
|
|
91
91
|
}
|
|
92
92
|
run() {
|
|
93
93
|
if (!(this.flags & 1))
|
|
94
94
|
return this.fn();
|
|
95
|
-
this.flags |= 2,
|
|
95
|
+
this.flags |= 2, an(this), $n(this);
|
|
96
96
|
const t = w, n = M;
|
|
97
97
|
w = this, M = !0;
|
|
98
98
|
try {
|
|
99
99
|
return this.fn();
|
|
100
100
|
} finally {
|
|
101
|
-
process.env.NODE_ENV !== "production" && w !== this &&
|
|
101
|
+
process.env.NODE_ENV !== "production" && w !== this && W(
|
|
102
102
|
"Active effect was not restored correctly - this is likely a Vue internal bug."
|
|
103
|
-
),
|
|
103
|
+
), bn(this), w = t, M = n, this.flags &= -3;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
stop() {
|
|
107
107
|
if (this.flags & 1) {
|
|
108
108
|
for (let t = this.deps; t; t = t.nextDep)
|
|
109
|
-
|
|
110
|
-
this.deps = this.depsTail = void 0,
|
|
109
|
+
Bt(t);
|
|
110
|
+
this.deps = this.depsTail = void 0, an(this), this.onStop && this.onStop(), this.flags &= -2;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
trigger() {
|
|
114
|
-
this.flags & 64 ?
|
|
114
|
+
this.flags & 64 ? ht.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
117
|
* @internal
|
|
118
118
|
*/
|
|
119
119
|
runIfDirty() {
|
|
120
|
-
|
|
120
|
+
Ot(this) && this.run();
|
|
121
121
|
}
|
|
122
122
|
get dirty() {
|
|
123
|
-
return
|
|
123
|
+
return Ot(this);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
let
|
|
127
|
-
function
|
|
126
|
+
let vn = 0, Ee, ye;
|
|
127
|
+
function Cn(e, t = !1) {
|
|
128
128
|
if (e.flags |= 8, t) {
|
|
129
129
|
e.next = ye, ye = e;
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
132
|
e.next = Ee, Ee = e;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
134
|
+
function zt() {
|
|
135
|
+
vn++;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
if (--
|
|
137
|
+
function Gt() {
|
|
138
|
+
if (--vn > 0)
|
|
139
139
|
return;
|
|
140
140
|
if (ye) {
|
|
141
141
|
let t = ye;
|
|
@@ -160,51 +160,51 @@ function Kt() {
|
|
|
160
160
|
}
|
|
161
161
|
if (e) throw e;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function $n(e) {
|
|
164
164
|
for (let t = e.deps; t; t = t.nextDep)
|
|
165
165
|
t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function bn(e) {
|
|
168
168
|
let t, n = e.depsTail, o = n;
|
|
169
169
|
for (; o; ) {
|
|
170
170
|
const s = o.prevDep;
|
|
171
|
-
o.version === -1 ? (o === n && (n = s),
|
|
171
|
+
o.version === -1 ? (o === n && (n = s), Bt(o), xo(o)) : t = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
|
|
172
172
|
}
|
|
173
173
|
e.deps = t, e.depsTail = n;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Ot(e) {
|
|
176
176
|
for (let t = e.deps; t; t = t.nextDep)
|
|
177
|
-
if (t.dep.version !== t.version || t.dep.computed && (
|
|
177
|
+
if (t.dep.version !== t.version || t.dep.computed && (Nn(t.dep.computed) || t.dep.version !== t.version))
|
|
178
178
|
return !0;
|
|
179
179
|
return !!e._dirty;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion ===
|
|
181
|
+
function Nn(e) {
|
|
182
|
+
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Oe))
|
|
183
183
|
return;
|
|
184
|
-
e.globalVersion =
|
|
184
|
+
e.globalVersion = Oe;
|
|
185
185
|
const t = e.dep;
|
|
186
|
-
if (e.flags |= 2, t.version > 0 && !e.isSSR && e.deps && !
|
|
186
|
+
if (e.flags |= 2, t.version > 0 && !e.isSSR && e.deps && !Ot(e)) {
|
|
187
187
|
e.flags &= -3;
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
190
|
const n = w, o = M;
|
|
191
191
|
w = e, M = !0;
|
|
192
192
|
try {
|
|
193
|
-
|
|
193
|
+
$n(e);
|
|
194
194
|
const s = e.fn(e._value);
|
|
195
195
|
(t.version === 0 || ee(s, e._value)) && (e._value = s, t.version++);
|
|
196
196
|
} catch (s) {
|
|
197
197
|
throw t.version++, s;
|
|
198
198
|
} finally {
|
|
199
|
-
w = n, M = o,
|
|
199
|
+
w = n, M = o, bn(e), e.flags &= -3;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Bt(e, t = !1) {
|
|
203
203
|
const { dep: n, prevSub: o, nextSub: s } = e;
|
|
204
204
|
if (o && (o.nextSub = s, e.prevSub = void 0), s && (s.prevSub = o, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = s), n.subs === e && (n.subs = o, !o && n.computed)) {
|
|
205
205
|
n.computed.flags &= -5;
|
|
206
206
|
for (let r = n.computed.deps; r; r = r.nextDep)
|
|
207
|
-
|
|
207
|
+
Bt(r, !0);
|
|
208
208
|
}
|
|
209
209
|
!t && !--n.sc && n.map && n.map.delete(n.key);
|
|
210
210
|
}
|
|
@@ -213,15 +213,15 @@ function xo(e) {
|
|
|
213
213
|
t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
|
|
214
214
|
}
|
|
215
215
|
let M = !0;
|
|
216
|
-
const
|
|
217
|
-
function
|
|
218
|
-
|
|
216
|
+
const wn = [];
|
|
217
|
+
function ct() {
|
|
218
|
+
wn.push(M), M = !1;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const e =
|
|
220
|
+
function ut() {
|
|
221
|
+
const e = wn.pop();
|
|
222
222
|
M = e === void 0 ? !0 : e;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function an(e) {
|
|
225
225
|
const { cleanup: t } = e;
|
|
226
226
|
if (e.cleanup = void 0, t) {
|
|
227
227
|
const n = w;
|
|
@@ -233,13 +233,13 @@ function sn(e) {
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
let
|
|
237
|
-
class
|
|
236
|
+
let Oe = 0;
|
|
237
|
+
class Ao {
|
|
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
|
}
|
|
241
241
|
}
|
|
242
|
-
class
|
|
242
|
+
class Wt {
|
|
243
243
|
constructor(t) {
|
|
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
|
}
|
|
@@ -248,7 +248,7 @@ class Ut {
|
|
|
248
248
|
return;
|
|
249
249
|
let n = this.activeLink;
|
|
250
250
|
if (n === void 0 || n.sub !== w)
|
|
251
|
-
n = this.activeLink = new
|
|
251
|
+
n = this.activeLink = new Ao(w, this), w.deps ? (n.prevDep = w.depsTail, w.depsTail.nextDep = n, w.depsTail = n) : w.deps = w.depsTail = n, En(n);
|
|
252
252
|
else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
|
|
253
253
|
const o = n.nextDep;
|
|
254
254
|
o.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = o), n.prevDep = w.depsTail, n.nextDep = void 0, w.depsTail.nextDep = n, w.depsTail = n, w.deps === n && (w.deps = o);
|
|
@@ -263,10 +263,10 @@ class Ut {
|
|
|
263
263
|
), n;
|
|
264
264
|
}
|
|
265
265
|
trigger(t) {
|
|
266
|
-
this.version++,
|
|
266
|
+
this.version++, Oe++, this.notify(t);
|
|
267
267
|
}
|
|
268
268
|
notify(t) {
|
|
269
|
-
|
|
269
|
+
zt();
|
|
270
270
|
try {
|
|
271
271
|
if (process.env.NODE_ENV !== "production")
|
|
272
272
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
@@ -281,35 +281,35 @@ class Ut {
|
|
|
281
281
|
for (let n = this.subs; n; n = n.prevSub)
|
|
282
282
|
n.sub.notify() && n.sub.dep.notify();
|
|
283
283
|
} finally {
|
|
284
|
-
|
|
284
|
+
Gt();
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function En(e) {
|
|
289
289
|
if (e.dep.sc++, e.sub.flags & 4) {
|
|
290
290
|
const t = e.dep.computed;
|
|
291
291
|
if (t && !e.dep.subs) {
|
|
292
292
|
t.flags |= 20;
|
|
293
293
|
for (let o = t.deps; o; o = o.nextDep)
|
|
294
|
-
|
|
294
|
+
En(o);
|
|
295
295
|
}
|
|
296
296
|
const n = e.dep.subs;
|
|
297
297
|
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;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const It = /* @__PURE__ */ new WeakMap(), se = Symbol(
|
|
301
301
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
302
|
-
),
|
|
302
|
+
), xt = Symbol(
|
|
303
303
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
304
|
-
),
|
|
304
|
+
), Ie = Symbol(
|
|
305
305
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
306
306
|
);
|
|
307
|
-
function
|
|
307
|
+
function I(e, t, n) {
|
|
308
308
|
if (M && w) {
|
|
309
|
-
let o =
|
|
310
|
-
o ||
|
|
309
|
+
let o = It.get(e);
|
|
310
|
+
o || It.set(e, o = /* @__PURE__ */ new Map());
|
|
311
311
|
let s = o.get(n);
|
|
312
|
-
s || (o.set(n, s = new
|
|
312
|
+
s || (o.set(n, s = new Wt()), s.map = o, s.key = n), process.env.NODE_ENV !== "production" ? s.track({
|
|
313
313
|
target: e,
|
|
314
314
|
type: t,
|
|
315
315
|
key: n
|
|
@@ -317,56 +317,56 @@ function O(e, t, n) {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
function Z(e, t, n, o, s, r) {
|
|
320
|
-
const a =
|
|
320
|
+
const a = It.get(e);
|
|
321
321
|
if (!a) {
|
|
322
|
-
|
|
322
|
+
Oe++;
|
|
323
323
|
return;
|
|
324
324
|
}
|
|
325
|
-
const c = (
|
|
326
|
-
|
|
325
|
+
const c = (u) => {
|
|
326
|
+
u && (process.env.NODE_ENV !== "production" ? u.trigger({
|
|
327
327
|
target: e,
|
|
328
328
|
type: t,
|
|
329
329
|
key: n,
|
|
330
330
|
newValue: o,
|
|
331
331
|
oldValue: s,
|
|
332
332
|
oldTarget: r
|
|
333
|
-
}) :
|
|
333
|
+
}) : u.trigger());
|
|
334
334
|
};
|
|
335
|
-
if (
|
|
335
|
+
if (zt(), t === "clear")
|
|
336
336
|
a.forEach(c);
|
|
337
337
|
else {
|
|
338
|
-
const
|
|
339
|
-
if (
|
|
340
|
-
const
|
|
341
|
-
a.forEach((i,
|
|
342
|
-
(
|
|
338
|
+
const u = E(e), f = u && Lt(n);
|
|
339
|
+
if (u && n === "length") {
|
|
340
|
+
const d = Number(o);
|
|
341
|
+
a.forEach((i, l) => {
|
|
342
|
+
(l === "length" || l === Ie || !Pe(l) && l >= d) && c(i);
|
|
343
343
|
});
|
|
344
344
|
} else
|
|
345
|
-
switch ((n !== void 0 || a.has(void 0)) && c(a.get(n)),
|
|
345
|
+
switch ((n !== void 0 || a.has(void 0)) && c(a.get(n)), f && c(a.get(Ie)), t) {
|
|
346
346
|
case "add":
|
|
347
|
-
|
|
347
|
+
u ? f && c(a.get("length")) : (c(a.get(se)), ve(e) && c(a.get(xt)));
|
|
348
348
|
break;
|
|
349
349
|
case "delete":
|
|
350
|
-
|
|
350
|
+
u || (c(a.get(se)), ve(e) && c(a.get(xt)));
|
|
351
351
|
break;
|
|
352
352
|
case "set":
|
|
353
|
-
|
|
353
|
+
ve(e) && c(a.get(se));
|
|
354
354
|
break;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
Gt();
|
|
358
358
|
}
|
|
359
359
|
function pe(e) {
|
|
360
|
-
const t =
|
|
361
|
-
return t === e ? t : (
|
|
360
|
+
const t = N(e);
|
|
361
|
+
return t === e ? t : (I(t, "iterate", Ie), j(e) ? t : t.map(P));
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
return
|
|
363
|
+
function Jt(e) {
|
|
364
|
+
return I(e = N(e), "iterate", Ie), e;
|
|
365
365
|
}
|
|
366
|
-
const
|
|
366
|
+
const Do = {
|
|
367
367
|
__proto__: null,
|
|
368
368
|
[Symbol.iterator]() {
|
|
369
|
-
return
|
|
369
|
+
return gt(this, Symbol.iterator, P);
|
|
370
370
|
},
|
|
371
371
|
concat(...e) {
|
|
372
372
|
return pe(this).concat(
|
|
@@ -374,45 +374,45 @@ const Ao = {
|
|
|
374
374
|
);
|
|
375
375
|
},
|
|
376
376
|
entries() {
|
|
377
|
-
return
|
|
377
|
+
return gt(this, "entries", (e) => (e[1] = P(e[1]), e));
|
|
378
378
|
},
|
|
379
379
|
every(e, t) {
|
|
380
|
-
return
|
|
380
|
+
return z(this, "every", e, t, void 0, arguments);
|
|
381
381
|
},
|
|
382
382
|
filter(e, t) {
|
|
383
|
-
return
|
|
383
|
+
return z(this, "filter", e, t, (n) => n.map(P), arguments);
|
|
384
384
|
},
|
|
385
385
|
find(e, t) {
|
|
386
|
-
return
|
|
386
|
+
return z(this, "find", e, t, P, arguments);
|
|
387
387
|
},
|
|
388
388
|
findIndex(e, t) {
|
|
389
|
-
return
|
|
389
|
+
return z(this, "findIndex", e, t, void 0, arguments);
|
|
390
390
|
},
|
|
391
391
|
findLast(e, t) {
|
|
392
|
-
return
|
|
392
|
+
return z(this, "findLast", e, t, P, arguments);
|
|
393
393
|
},
|
|
394
394
|
findLastIndex(e, t) {
|
|
395
|
-
return
|
|
395
|
+
return z(this, "findLastIndex", e, t, void 0, arguments);
|
|
396
396
|
},
|
|
397
397
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
398
398
|
forEach(e, t) {
|
|
399
|
-
return
|
|
399
|
+
return z(this, "forEach", e, t, void 0, arguments);
|
|
400
400
|
},
|
|
401
401
|
includes(...e) {
|
|
402
|
-
return
|
|
402
|
+
return _t(this, "includes", e);
|
|
403
403
|
},
|
|
404
404
|
indexOf(...e) {
|
|
405
|
-
return
|
|
405
|
+
return _t(this, "indexOf", e);
|
|
406
406
|
},
|
|
407
407
|
join(e) {
|
|
408
408
|
return pe(this).join(e);
|
|
409
409
|
},
|
|
410
410
|
// keys() iterator only reads `length`, no optimisation required
|
|
411
411
|
lastIndexOf(...e) {
|
|
412
|
-
return
|
|
412
|
+
return _t(this, "lastIndexOf", e);
|
|
413
413
|
},
|
|
414
414
|
map(e, t) {
|
|
415
|
-
return
|
|
415
|
+
return z(this, "map", e, t, void 0, arguments);
|
|
416
416
|
},
|
|
417
417
|
pop() {
|
|
418
418
|
return Ne(this, "pop");
|
|
@@ -421,17 +421,17 @@ const Ao = {
|
|
|
421
421
|
return Ne(this, "push", e);
|
|
422
422
|
},
|
|
423
423
|
reduce(e, ...t) {
|
|
424
|
-
return
|
|
424
|
+
return cn(this, "reduce", e, t);
|
|
425
425
|
},
|
|
426
426
|
reduceRight(e, ...t) {
|
|
427
|
-
return
|
|
427
|
+
return cn(this, "reduceRight", e, t);
|
|
428
428
|
},
|
|
429
429
|
shift() {
|
|
430
430
|
return Ne(this, "shift");
|
|
431
431
|
},
|
|
432
432
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
433
433
|
some(e, t) {
|
|
434
|
-
return
|
|
434
|
+
return z(this, "some", e, t, void 0, arguments);
|
|
435
435
|
},
|
|
436
436
|
splice(...e) {
|
|
437
437
|
return Ne(this, "splice", e);
|
|
@@ -449,61 +449,61 @@ const Ao = {
|
|
|
449
449
|
return Ne(this, "unshift", e);
|
|
450
450
|
},
|
|
451
451
|
values() {
|
|
452
|
-
return
|
|
452
|
+
return gt(this, "values", P);
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
|
-
function
|
|
456
|
-
const o =
|
|
457
|
-
return o !== e && !
|
|
455
|
+
function gt(e, t, n) {
|
|
456
|
+
const o = Jt(e), s = o[t]();
|
|
457
|
+
return o !== e && !j(e) && (s._next = s.next, s.next = () => {
|
|
458
458
|
const r = s._next();
|
|
459
459
|
return r.value && (r.value = n(r.value)), r;
|
|
460
460
|
}), s;
|
|
461
461
|
}
|
|
462
|
-
const
|
|
463
|
-
function
|
|
464
|
-
const a =
|
|
465
|
-
if (
|
|
466
|
-
const i =
|
|
467
|
-
return c ?
|
|
468
|
-
}
|
|
469
|
-
let
|
|
470
|
-
a !== e && (c ?
|
|
471
|
-
return n.call(this,
|
|
472
|
-
} : n.length > 2 && (
|
|
473
|
-
return n.call(this, i,
|
|
462
|
+
const Po = Array.prototype;
|
|
463
|
+
function z(e, t, n, o, s, r) {
|
|
464
|
+
const a = Jt(e), c = a !== e && !j(e), u = a[t];
|
|
465
|
+
if (u !== Po[t]) {
|
|
466
|
+
const i = u.apply(e, r);
|
|
467
|
+
return c ? P(i) : i;
|
|
468
|
+
}
|
|
469
|
+
let f = n;
|
|
470
|
+
a !== e && (c ? f = function(i, l) {
|
|
471
|
+
return n.call(this, P(i), l, e);
|
|
472
|
+
} : n.length > 2 && (f = function(i, l) {
|
|
473
|
+
return n.call(this, i, l, e);
|
|
474
474
|
}));
|
|
475
|
-
const
|
|
476
|
-
return c && s ? s(
|
|
475
|
+
const d = u.call(a, f, o);
|
|
476
|
+
return c && s ? s(d) : d;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
479
|
-
const s =
|
|
478
|
+
function cn(e, t, n, o) {
|
|
479
|
+
const s = Jt(e);
|
|
480
480
|
let r = n;
|
|
481
|
-
return s !== e && (
|
|
482
|
-
return n.call(this, a, c,
|
|
483
|
-
}) : r = function(a, c,
|
|
484
|
-
return n.call(this, a,
|
|
481
|
+
return s !== e && (j(e) ? n.length > 3 && (r = function(a, c, u) {
|
|
482
|
+
return n.call(this, a, c, u, e);
|
|
483
|
+
}) : r = function(a, c, u) {
|
|
484
|
+
return n.call(this, a, P(c), u, e);
|
|
485
485
|
}), s[t](r, ...o);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
const o =
|
|
489
|
-
|
|
487
|
+
function _t(e, t, n) {
|
|
488
|
+
const o = N(e);
|
|
489
|
+
I(o, "iterate", Ie);
|
|
490
490
|
const s = o[t](...n);
|
|
491
|
-
return (s === -1 || s === !1) &&
|
|
491
|
+
return (s === -1 || s === !1) && ze(n[0]) ? (n[0] = N(n[0]), o[t](...n)) : s;
|
|
492
492
|
}
|
|
493
493
|
function Ne(e, t, n = []) {
|
|
494
|
-
|
|
495
|
-
const o =
|
|
496
|
-
return
|
|
494
|
+
ct(), zt();
|
|
495
|
+
const o = N(e)[t].apply(e, n);
|
|
496
|
+
return Gt(), ut(), o;
|
|
497
497
|
}
|
|
498
|
-
const
|
|
499
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
498
|
+
const Vo = /* @__PURE__ */ mo("__proto__,__v_isRef,__isVue"), yn = new Set(
|
|
499
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Pe)
|
|
500
500
|
);
|
|
501
|
-
function
|
|
502
|
-
|
|
503
|
-
const t =
|
|
504
|
-
return
|
|
501
|
+
function To(e) {
|
|
502
|
+
Pe(e) || (e = String(e));
|
|
503
|
+
const t = N(this);
|
|
504
|
+
return I(t, "has", e), t.hasOwnProperty(e);
|
|
505
505
|
}
|
|
506
|
-
class
|
|
506
|
+
class Sn {
|
|
507
507
|
constructor(t = !1, n = !1) {
|
|
508
508
|
this._isReadonly = t, this._isShallow = n;
|
|
509
509
|
}
|
|
@@ -517,16 +517,16 @@ class yn {
|
|
|
517
517
|
if (n === "__v_isShallow")
|
|
518
518
|
return r;
|
|
519
519
|
if (n === "__v_raw")
|
|
520
|
-
return o === (s ? r ?
|
|
520
|
+
return o === (s ? r ? An : xn : r ? zo : In).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
523
|
const a = E(t);
|
|
524
524
|
if (!s) {
|
|
525
|
-
let
|
|
526
|
-
if (a && (
|
|
527
|
-
return
|
|
525
|
+
let u;
|
|
526
|
+
if (a && (u = Do[n]))
|
|
527
|
+
return u;
|
|
528
528
|
if (n === "hasOwnProperty")
|
|
529
|
-
return
|
|
529
|
+
return To;
|
|
530
530
|
}
|
|
531
531
|
const c = Reflect.get(
|
|
532
532
|
t,
|
|
@@ -534,78 +534,78 @@ class yn {
|
|
|
534
534
|
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
535
535
|
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
536
536
|
// its class methods
|
|
537
|
-
|
|
537
|
+
V(t) ? t : o
|
|
538
538
|
);
|
|
539
|
-
return (
|
|
539
|
+
return (Pe(n) ? yn.has(n) : Vo(n)) || (s || I(t, "get", n), r) ? c : V(c) ? a && Lt(n) ? c : c.value : T(c) ? s ? Ue(c) : Dn(c) : c;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
class
|
|
542
|
+
class jo extends Sn {
|
|
543
543
|
constructor(t = !1) {
|
|
544
544
|
super(!1, t);
|
|
545
545
|
}
|
|
546
546
|
set(t, n, o, s) {
|
|
547
547
|
let r = t[n];
|
|
548
548
|
if (!this._isShallow) {
|
|
549
|
-
const
|
|
550
|
-
if (!
|
|
551
|
-
return
|
|
549
|
+
const u = J(r);
|
|
550
|
+
if (!j(o) && !J(o) && (r = N(r), o = N(o)), !E(t) && V(r) && !V(o))
|
|
551
|
+
return u ? !1 : (r.value = o, !0);
|
|
552
552
|
}
|
|
553
|
-
const a = E(t) &&
|
|
553
|
+
const a = E(t) && Lt(n) ? Number(n) < t.length : O(t, n), c = Reflect.set(
|
|
554
554
|
t,
|
|
555
555
|
n,
|
|
556
556
|
o,
|
|
557
|
-
|
|
557
|
+
V(t) ? t : s
|
|
558
558
|
);
|
|
559
|
-
return t ===
|
|
559
|
+
return t === N(s) && (a ? ee(o, r) && Z(t, "set", n, o, r) : Z(t, "add", n, o)), c;
|
|
560
560
|
}
|
|
561
561
|
deleteProperty(t, n) {
|
|
562
|
-
const o =
|
|
562
|
+
const o = O(t, n), s = t[n], r = Reflect.deleteProperty(t, n);
|
|
563
563
|
return r && o && Z(t, "delete", n, void 0, s), r;
|
|
564
564
|
}
|
|
565
565
|
has(t, n) {
|
|
566
566
|
const o = Reflect.has(t, n);
|
|
567
|
-
return (!
|
|
567
|
+
return (!Pe(n) || !yn.has(n)) && I(t, "has", n), o;
|
|
568
568
|
}
|
|
569
569
|
ownKeys(t) {
|
|
570
|
-
return
|
|
570
|
+
return I(
|
|
571
571
|
t,
|
|
572
572
|
"iterate",
|
|
573
573
|
E(t) ? "length" : se
|
|
574
574
|
), Reflect.ownKeys(t);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
class
|
|
577
|
+
class On extends Sn {
|
|
578
578
|
constructor(t = !1) {
|
|
579
579
|
super(!0, t);
|
|
580
580
|
}
|
|
581
581
|
set(t, n) {
|
|
582
|
-
return process.env.NODE_ENV !== "production" &&
|
|
582
|
+
return process.env.NODE_ENV !== "production" && W(
|
|
583
583
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
584
584
|
t
|
|
585
585
|
), !0;
|
|
586
586
|
}
|
|
587
587
|
deleteProperty(t, n) {
|
|
588
|
-
return process.env.NODE_ENV !== "production" &&
|
|
588
|
+
return process.env.NODE_ENV !== "production" && W(
|
|
589
589
|
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
590
590
|
t
|
|
591
591
|
), !0;
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
const
|
|
595
|
-
function
|
|
594
|
+
const Fo = /* @__PURE__ */ new jo(), Ro = /* @__PURE__ */ new On(), ko = /* @__PURE__ */ new On(!0), At = (e) => e, Fe = (e) => Reflect.getPrototypeOf(e);
|
|
595
|
+
function Ho(e, t, n) {
|
|
596
596
|
return function(...o) {
|
|
597
|
-
const s = this.__v_raw, r =
|
|
598
|
-
return !t &&
|
|
597
|
+
const s = this.__v_raw, r = N(s), a = ve(r), c = e === "entries" || e === Symbol.iterator && a, u = e === "keys" && a, f = s[e](...o), d = n ? At : t ? Dt : P;
|
|
598
|
+
return !t && I(
|
|
599
599
|
r,
|
|
600
600
|
"iterate",
|
|
601
|
-
|
|
601
|
+
u ? xt : se
|
|
602
602
|
), {
|
|
603
603
|
// iterator protocol
|
|
604
604
|
next() {
|
|
605
|
-
const { value: i, done:
|
|
606
|
-
return
|
|
607
|
-
value: c ? [
|
|
608
|
-
done:
|
|
605
|
+
const { value: i, done: l } = f.next();
|
|
606
|
+
return l ? { value: i, done: l } : {
|
|
607
|
+
value: c ? [d(i[0]), d(i[1])] : d(i),
|
|
608
|
+
done: l
|
|
609
609
|
};
|
|
610
610
|
},
|
|
611
611
|
// iterable protocol
|
|
@@ -619,37 +619,37 @@ function Re(e) {
|
|
|
619
619
|
return function(...t) {
|
|
620
620
|
if (process.env.NODE_ENV !== "production") {
|
|
621
621
|
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
622
|
-
|
|
622
|
+
W(
|
|
623
623
|
`${No(e)} operation ${n}failed: target is readonly.`,
|
|
624
|
-
|
|
624
|
+
N(this)
|
|
625
625
|
);
|
|
626
626
|
}
|
|
627
627
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
628
628
|
};
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Mo(e, t) {
|
|
631
631
|
const n = {
|
|
632
632
|
get(s) {
|
|
633
|
-
const r = this.__v_raw, a =
|
|
634
|
-
e || (ee(s, c) &&
|
|
635
|
-
const { has:
|
|
636
|
-
if (
|
|
637
|
-
return
|
|
638
|
-
if (
|
|
639
|
-
return
|
|
633
|
+
const r = this.__v_raw, a = N(r), c = N(s);
|
|
634
|
+
e || (ee(s, c) && I(a, "get", s), I(a, "get", c));
|
|
635
|
+
const { has: u } = Fe(a), f = t ? At : e ? Dt : P;
|
|
636
|
+
if (u.call(a, s))
|
|
637
|
+
return f(r.get(s));
|
|
638
|
+
if (u.call(a, c))
|
|
639
|
+
return f(r.get(c));
|
|
640
640
|
r !== a && r.get(s);
|
|
641
641
|
},
|
|
642
642
|
get size() {
|
|
643
643
|
const s = this.__v_raw;
|
|
644
|
-
return !e &&
|
|
644
|
+
return !e && I(N(s), "iterate", se), Reflect.get(s, "size", s);
|
|
645
645
|
},
|
|
646
646
|
has(s) {
|
|
647
|
-
const r = this.__v_raw, a =
|
|
648
|
-
return e || (ee(s, c) &&
|
|
647
|
+
const r = this.__v_raw, a = N(r), c = N(s);
|
|
648
|
+
return e || (ee(s, c) && I(a, "has", s), I(a, "has", c)), s === c ? r.has(s) : r.has(s) || r.has(c);
|
|
649
649
|
},
|
|
650
650
|
forEach(s, r) {
|
|
651
|
-
const a = this, c = a.__v_raw,
|
|
652
|
-
return !e &&
|
|
651
|
+
const a = this, c = a.__v_raw, u = N(c), f = t ? At : e ? Dt : P;
|
|
652
|
+
return !e && I(u, "iterate", se), c.forEach((d, i) => s.call(r, f(d), f(i), a));
|
|
653
653
|
}
|
|
654
654
|
};
|
|
655
655
|
return F(
|
|
@@ -661,27 +661,27 @@ function Ho(e, t) {
|
|
|
661
661
|
clear: Re("clear")
|
|
662
662
|
} : {
|
|
663
663
|
add(s) {
|
|
664
|
-
!t && !
|
|
665
|
-
const r =
|
|
666
|
-
return
|
|
664
|
+
!t && !j(s) && !J(s) && (s = N(s));
|
|
665
|
+
const r = N(this);
|
|
666
|
+
return Fe(r).has.call(r, s) || (r.add(s), Z(r, "add", s, s)), this;
|
|
667
667
|
},
|
|
668
668
|
set(s, r) {
|
|
669
|
-
!t && !
|
|
670
|
-
const a =
|
|
671
|
-
let
|
|
672
|
-
|
|
673
|
-
const
|
|
674
|
-
return a.set(s, r),
|
|
669
|
+
!t && !j(r) && !J(r) && (r = N(r));
|
|
670
|
+
const a = N(this), { has: c, get: u } = Fe(a);
|
|
671
|
+
let f = c.call(a, s);
|
|
672
|
+
f ? process.env.NODE_ENV !== "production" && un(a, c, s) : (s = N(s), f = c.call(a, s));
|
|
673
|
+
const d = u.call(a, s);
|
|
674
|
+
return a.set(s, r), f ? ee(r, d) && Z(a, "set", s, r, d) : Z(a, "add", s, r), this;
|
|
675
675
|
},
|
|
676
676
|
delete(s) {
|
|
677
|
-
const r =
|
|
678
|
-
let
|
|
679
|
-
|
|
680
|
-
const
|
|
681
|
-
return
|
|
677
|
+
const r = N(this), { has: a, get: c } = Fe(r);
|
|
678
|
+
let u = a.call(r, s);
|
|
679
|
+
u ? process.env.NODE_ENV !== "production" && un(r, a, s) : (s = N(s), u = a.call(r, s));
|
|
680
|
+
const f = c ? c.call(r, s) : void 0, d = r.delete(s);
|
|
681
|
+
return u && Z(r, "delete", s, void 0, f), d;
|
|
682
682
|
},
|
|
683
683
|
clear() {
|
|
684
|
-
const s =
|
|
684
|
+
const s = N(this), r = s.size !== 0, a = process.env.NODE_ENV !== "production" ? ve(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
|
|
685
685
|
return r && Z(
|
|
686
686
|
s,
|
|
687
687
|
"clear",
|
|
@@ -697,35 +697,35 @@ function Ho(e, t) {
|
|
|
697
697
|
"entries",
|
|
698
698
|
Symbol.iterator
|
|
699
699
|
].forEach((s) => {
|
|
700
|
-
n[s] =
|
|
700
|
+
n[s] = Ho(s, e, t);
|
|
701
701
|
}), n;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
704
|
-
const n =
|
|
703
|
+
function qt(e, t) {
|
|
704
|
+
const n = Mo(e, t);
|
|
705
705
|
return (o, s, r) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? o : Reflect.get(
|
|
706
|
-
|
|
706
|
+
O(n, s) && s in o ? n : o,
|
|
707
707
|
s,
|
|
708
708
|
r
|
|
709
709
|
);
|
|
710
710
|
}
|
|
711
|
-
const
|
|
712
|
-
get: /* @__PURE__ */
|
|
713
|
-
}, Lo = {
|
|
714
|
-
get: /* @__PURE__ */ Wt(!0, !1)
|
|
711
|
+
const Lo = {
|
|
712
|
+
get: /* @__PURE__ */ qt(!1, !1)
|
|
715
713
|
}, Ko = {
|
|
716
|
-
get: /* @__PURE__ */
|
|
714
|
+
get: /* @__PURE__ */ qt(!0, !1)
|
|
715
|
+
}, Uo = {
|
|
716
|
+
get: /* @__PURE__ */ qt(!0, !0)
|
|
717
717
|
};
|
|
718
|
-
function
|
|
719
|
-
const o =
|
|
718
|
+
function un(e, t, n) {
|
|
719
|
+
const o = N(n);
|
|
720
720
|
if (o !== n && t.call(e, o)) {
|
|
721
|
-
const s =
|
|
722
|
-
|
|
721
|
+
const s = _n(e);
|
|
722
|
+
W(
|
|
723
723
|
`Reactive ${s} contains both the raw and reactive versions of the same object${s === "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.`
|
|
724
724
|
);
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
-
const
|
|
728
|
-
function
|
|
727
|
+
const In = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap();
|
|
728
|
+
function Go(e) {
|
|
729
729
|
switch (e) {
|
|
730
730
|
case "Object":
|
|
731
731
|
case "Array":
|
|
@@ -740,38 +740,38 @@ function Uo(e) {
|
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
function Bo(e) {
|
|
743
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 :
|
|
743
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : Go(_n(e));
|
|
744
744
|
}
|
|
745
745
|
function Dn(e) {
|
|
746
|
-
return J(e) ? e :
|
|
746
|
+
return J(e) ? e : Yt(
|
|
747
747
|
e,
|
|
748
748
|
!1,
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
749
|
+
Fo,
|
|
750
|
+
Lo,
|
|
751
|
+
In
|
|
752
752
|
);
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
return
|
|
754
|
+
function Ue(e) {
|
|
755
|
+
return Yt(
|
|
756
756
|
e,
|
|
757
757
|
!0,
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
758
|
+
Ro,
|
|
759
|
+
Ko,
|
|
760
|
+
xn
|
|
761
761
|
);
|
|
762
762
|
}
|
|
763
763
|
function X(e) {
|
|
764
|
-
return
|
|
764
|
+
return Yt(
|
|
765
765
|
e,
|
|
766
766
|
!0,
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
767
|
+
ko,
|
|
768
|
+
Uo,
|
|
769
|
+
An
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
if (!
|
|
774
|
-
return process.env.NODE_ENV !== "production" &&
|
|
772
|
+
function Yt(e, t, n, o, s) {
|
|
773
|
+
if (!T(e))
|
|
774
|
+
return process.env.NODE_ENV !== "production" && W(
|
|
775
775
|
`value cannot be made ${t ? "readonly" : "reactive"}: ${String(
|
|
776
776
|
e
|
|
777
777
|
)}`
|
|
@@ -790,38 +790,38 @@ function Gt(e, t, n, o, s) {
|
|
|
790
790
|
);
|
|
791
791
|
return s.set(e, c), c;
|
|
792
792
|
}
|
|
793
|
-
function
|
|
794
|
-
return J(e) ?
|
|
793
|
+
function Ce(e) {
|
|
794
|
+
return J(e) ? Ce(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
795
795
|
}
|
|
796
796
|
function J(e) {
|
|
797
797
|
return !!(e && e.__v_isReadonly);
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function j(e) {
|
|
800
800
|
return !!(e && e.__v_isShallow);
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function ze(e) {
|
|
803
803
|
return e ? !!e.__v_raw : !1;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function N(e) {
|
|
806
806
|
const t = e && e.__v_raw;
|
|
807
|
-
return t ?
|
|
807
|
+
return t ? N(t) : e;
|
|
808
808
|
}
|
|
809
809
|
function Wo(e) {
|
|
810
|
-
return !
|
|
810
|
+
return !O(e, "__v_skip") && Object.isExtensible(e) && wo(e, "__v_skip", !0), e;
|
|
811
811
|
}
|
|
812
|
-
const
|
|
813
|
-
function
|
|
812
|
+
const P = (e) => T(e) ? Dn(e) : e, Dt = (e) => T(e) ? Ue(e) : e;
|
|
813
|
+
function V(e) {
|
|
814
814
|
return e ? e.__v_isRef === !0 : !1;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
817
|
-
return
|
|
816
|
+
function Ge(e) {
|
|
817
|
+
return Jo(e, !1);
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
return
|
|
819
|
+
function Jo(e, t) {
|
|
820
|
+
return V(e) ? e : new qo(e, t);
|
|
821
821
|
}
|
|
822
|
-
class
|
|
822
|
+
class qo {
|
|
823
823
|
constructor(t, n) {
|
|
824
|
-
this.dep = new
|
|
824
|
+
this.dep = new Wt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : N(t), this._value = n ? t : P(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 Jo {
|
|
|
831
831
|
}) : this.dep.track(), this._value;
|
|
832
832
|
}
|
|
833
833
|
set value(t) {
|
|
834
|
-
const n = this._rawValue, o = this.__v_isShallow ||
|
|
835
|
-
t = o ? t :
|
|
834
|
+
const n = this._rawValue, o = this.__v_isShallow || j(t) || J(t);
|
|
835
|
+
t = o ? t : N(t), ee(t, n) && (this._rawValue = t, this._value = o ? t : P(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
836
836
|
target: this,
|
|
837
837
|
type: "set",
|
|
838
838
|
key: "value",
|
|
@@ -841,22 +841,22 @@ class Jo {
|
|
|
841
841
|
}) : this.dep.trigger());
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
|
-
function
|
|
845
|
-
return
|
|
844
|
+
function Yo(e) {
|
|
845
|
+
return V(e) ? e.value : e;
|
|
846
846
|
}
|
|
847
|
-
const
|
|
848
|
-
get: (e, t, n) => t === "__v_raw" ? e :
|
|
847
|
+
const Zo = {
|
|
848
|
+
get: (e, t, n) => t === "__v_raw" ? e : Yo(Reflect.get(e, t, n)),
|
|
849
849
|
set: (e, t, n, o) => {
|
|
850
850
|
const s = e[t];
|
|
851
|
-
return
|
|
851
|
+
return V(s) && !V(n) ? (s.value = n, !0) : Reflect.set(e, t, n, o);
|
|
852
852
|
}
|
|
853
853
|
};
|
|
854
|
-
function
|
|
855
|
-
return
|
|
854
|
+
function Qo(e) {
|
|
855
|
+
return Ce(e) ? e : new Proxy(e, Zo);
|
|
856
856
|
}
|
|
857
|
-
class
|
|
857
|
+
class Xo {
|
|
858
858
|
constructor(t, n, o) {
|
|
859
|
-
this.fn = t, this.setter = n, this._value = void 0, this.dep = new
|
|
859
|
+
this.fn = t, this.setter = n, this._value = void 0, this.dep = new Wt(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Oe - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = o;
|
|
860
860
|
}
|
|
861
861
|
/**
|
|
862
862
|
* @internal
|
|
@@ -864,7 +864,7 @@ class Qo {
|
|
|
864
864
|
notify() {
|
|
865
865
|
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
866
866
|
w !== this)
|
|
867
|
-
return
|
|
867
|
+
return Cn(this, !0), !0;
|
|
868
868
|
process.env.NODE_ENV;
|
|
869
869
|
}
|
|
870
870
|
get value() {
|
|
@@ -873,64 +873,64 @@ class Qo {
|
|
|
873
873
|
type: "get",
|
|
874
874
|
key: "value"
|
|
875
875
|
}) : this.dep.track();
|
|
876
|
-
return
|
|
876
|
+
return Nn(this), t && (t.version = this.dep.version), this._value;
|
|
877
877
|
}
|
|
878
878
|
set value(t) {
|
|
879
|
-
this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" &&
|
|
879
|
+
this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && W("Write operation failed: computed value is readonly");
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function es(e, t, n = !1) {
|
|
883
883
|
let o, s;
|
|
884
884
|
x(e) ? o = e : (o = e.get, s = e.set);
|
|
885
|
-
const r = new
|
|
885
|
+
const r = new Xo(o, s, n);
|
|
886
886
|
return process.env.NODE_ENV, r;
|
|
887
887
|
}
|
|
888
|
-
const
|
|
888
|
+
const ke = {}, Be = /* @__PURE__ */ new WeakMap();
|
|
889
889
|
let ne;
|
|
890
|
-
function
|
|
890
|
+
function ts(e, t = !1, n = ne) {
|
|
891
891
|
if (n) {
|
|
892
|
-
let o =
|
|
893
|
-
o ||
|
|
894
|
-
} else process.env.NODE_ENV !== "production" && !t &&
|
|
892
|
+
let o = Be.get(n);
|
|
893
|
+
o || Be.set(n, o = []), o.push(e);
|
|
894
|
+
} else process.env.NODE_ENV !== "production" && !t && W(
|
|
895
895
|
"onWatcherCleanup() was called when there was no active watcher to associate with."
|
|
896
896
|
);
|
|
897
897
|
}
|
|
898
|
-
function
|
|
899
|
-
const { immediate: o, deep: s, once: r, scheduler: a, augmentJob: c, call:
|
|
900
|
-
(n.onWarn ||
|
|
898
|
+
function ns(e, t, n = H) {
|
|
899
|
+
const { immediate: o, deep: s, once: r, scheduler: a, augmentJob: c, call: u } = n, f = (b) => {
|
|
900
|
+
(n.onWarn || W)(
|
|
901
901
|
"Invalid watch source: ",
|
|
902
902
|
b,
|
|
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
|
-
},
|
|
906
|
-
let i,
|
|
907
|
-
if (
|
|
908
|
-
if (
|
|
905
|
+
}, d = (b) => s ? b : j(b) || s === !1 || s === 0 ? Q(b, 1) : Q(b);
|
|
906
|
+
let i, l, p, _, h = !1, g = !1;
|
|
907
|
+
if (V(e) ? (l = () => e.value, h = j(e)) : Ce(e) ? (l = () => d(e), h = !0) : E(e) ? (g = !0, h = e.some((b) => Ce(b) || j(b)), l = () => e.map((b) => {
|
|
908
|
+
if (V(b))
|
|
909
909
|
return b.value;
|
|
910
|
-
if (
|
|
911
|
-
return
|
|
910
|
+
if (Ce(b))
|
|
911
|
+
return d(b);
|
|
912
912
|
if (x(b))
|
|
913
|
-
return
|
|
914
|
-
process.env.NODE_ENV !== "production" &&
|
|
915
|
-
})) : x(e) ? t ?
|
|
913
|
+
return u ? u(b, 2) : b();
|
|
914
|
+
process.env.NODE_ENV !== "production" && f(b);
|
|
915
|
+
})) : x(e) ? t ? l = u ? () => u(e, 2) : e : l = () => {
|
|
916
916
|
if (p) {
|
|
917
|
-
|
|
917
|
+
ct();
|
|
918
918
|
try {
|
|
919
919
|
p();
|
|
920
920
|
} finally {
|
|
921
|
-
|
|
921
|
+
ut();
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
const b = ne;
|
|
925
925
|
ne = i;
|
|
926
926
|
try {
|
|
927
|
-
return
|
|
927
|
+
return u ? u(e, 3, [_]) : e(_);
|
|
928
928
|
} finally {
|
|
929
929
|
ne = b;
|
|
930
930
|
}
|
|
931
|
-
} : (
|
|
932
|
-
const b =
|
|
933
|
-
|
|
931
|
+
} : (l = oe, process.env.NODE_ENV !== "production" && f(e)), t && s) {
|
|
932
|
+
const b = l, L = s === !0 ? 1 / 0 : s;
|
|
933
|
+
l = () => Q(b(), L);
|
|
934
934
|
}
|
|
935
935
|
const m = () => {
|
|
936
936
|
i.stop();
|
|
@@ -941,57 +941,57 @@ function ts(e, t, n = H) {
|
|
|
941
941
|
b(...L), m();
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
|
-
let v =
|
|
945
|
-
const
|
|
944
|
+
let v = g ? new Array(e.length).fill(ke) : ke;
|
|
945
|
+
const C = (b) => {
|
|
946
946
|
if (!(!(i.flags & 1) || !i.dirty && !b))
|
|
947
947
|
if (t) {
|
|
948
948
|
const L = i.run();
|
|
949
|
-
if (s ||
|
|
949
|
+
if (s || h || (g ? L.some((mt, je) => ee(mt, v[je])) : ee(L, v))) {
|
|
950
950
|
p && p();
|
|
951
|
-
const
|
|
951
|
+
const mt = ne;
|
|
952
952
|
ne = i;
|
|
953
953
|
try {
|
|
954
|
-
const
|
|
954
|
+
const je = [
|
|
955
955
|
L,
|
|
956
956
|
// pass undefined as the old value when it's changed for the first time
|
|
957
|
-
v ===
|
|
957
|
+
v === ke ? void 0 : g && v[0] === ke ? [] : v,
|
|
958
958
|
_
|
|
959
959
|
];
|
|
960
|
-
|
|
960
|
+
u ? u(t, 3, je) : (
|
|
961
961
|
// @ts-expect-error
|
|
962
|
-
t(...
|
|
962
|
+
t(...je)
|
|
963
963
|
), v = L;
|
|
964
964
|
} finally {
|
|
965
|
-
ne =
|
|
965
|
+
ne = mt;
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
} else
|
|
969
969
|
i.run();
|
|
970
970
|
};
|
|
971
|
-
return c && c(
|
|
972
|
-
const b =
|
|
971
|
+
return c && c(C), i = new Io(l), i.scheduler = a ? () => a(C, !1) : C, _ = (b) => ts(b, !1, i), p = i.onStop = () => {
|
|
972
|
+
const b = Be.get(i);
|
|
973
973
|
if (b) {
|
|
974
|
-
if (
|
|
975
|
-
|
|
974
|
+
if (u)
|
|
975
|
+
u(b, 4);
|
|
976
976
|
else
|
|
977
977
|
for (const L of b) L();
|
|
978
|
-
|
|
978
|
+
Be.delete(i);
|
|
979
979
|
}
|
|
980
|
-
}, process.env.NODE_ENV !== "production" && (i.onTrack = n.onTrack, i.onTrigger = n.onTrigger), t ? o ?
|
|
980
|
+
}, process.env.NODE_ENV !== "production" && (i.onTrack = n.onTrack, i.onTrigger = n.onTrigger), t ? o ? C(!0) : v = i.run() : a ? a(C.bind(null, !0), !0) : i.run(), m.pause = i.pause.bind(i), m.resume = i.resume.bind(i), m.stop = m, m;
|
|
981
981
|
}
|
|
982
982
|
function Q(e, t = 1 / 0, n) {
|
|
983
|
-
if (t <= 0 || !
|
|
983
|
+
if (t <= 0 || !T(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
|
|
984
984
|
return e;
|
|
985
|
-
if (n.add(e), t--,
|
|
985
|
+
if (n.add(e), t--, V(e))
|
|
986
986
|
Q(e.value, t, n);
|
|
987
987
|
else if (E(e))
|
|
988
988
|
for (let o = 0; o < e.length; o++)
|
|
989
989
|
Q(e[o], t, n);
|
|
990
|
-
else if (
|
|
990
|
+
else if (_o(e) || ve(e))
|
|
991
991
|
e.forEach((o) => {
|
|
992
992
|
Q(o, t, n);
|
|
993
993
|
});
|
|
994
|
-
else if (
|
|
994
|
+
else if ($o(e)) {
|
|
995
995
|
for (const o in e)
|
|
996
996
|
Q(e[o], t, n);
|
|
997
997
|
for (const o of Object.getOwnPropertySymbols(e))
|
|
@@ -1005,19 +1005,19 @@ function Q(e, t = 1 / 0, n) {
|
|
|
1005
1005
|
* @license MIT
|
|
1006
1006
|
**/
|
|
1007
1007
|
const re = [];
|
|
1008
|
-
function
|
|
1008
|
+
function os(e) {
|
|
1009
1009
|
re.push(e);
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function ss() {
|
|
1012
1012
|
re.pop();
|
|
1013
1013
|
}
|
|
1014
|
-
let
|
|
1015
|
-
function
|
|
1016
|
-
if (
|
|
1017
|
-
|
|
1018
|
-
const n = re.length ? re[re.length - 1].component : null, o = n && n.appContext.config.warnHandler, s =
|
|
1014
|
+
let vt = !1;
|
|
1015
|
+
function S(e, ...t) {
|
|
1016
|
+
if (vt) return;
|
|
1017
|
+
vt = !0, ct();
|
|
1018
|
+
const n = re.length ? re[re.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = rs();
|
|
1019
1019
|
if (o)
|
|
1020
|
-
|
|
1020
|
+
lt(
|
|
1021
1021
|
o,
|
|
1022
1022
|
n,
|
|
1023
1023
|
11,
|
|
@@ -1029,7 +1029,7 @@ function $(e, ...t) {
|
|
|
1029
1029
|
}).join(""),
|
|
1030
1030
|
n && n.proxy,
|
|
1031
1031
|
s.map(
|
|
1032
|
-
({ vnode: r }) => `at <${
|
|
1032
|
+
({ vnode: r }) => `at <${Jn(n, r.type)}>`
|
|
1033
1033
|
).join(`
|
|
1034
1034
|
`),
|
|
1035
1035
|
s
|
|
@@ -1038,11 +1038,11 @@ function $(e, ...t) {
|
|
|
1038
1038
|
else {
|
|
1039
1039
|
const r = [`[Vue warn]: ${e}`, ...t];
|
|
1040
1040
|
s.length && r.push(`
|
|
1041
|
-
`, ...
|
|
1041
|
+
`, ...is(s));
|
|
1042
1042
|
}
|
|
1043
|
-
|
|
1043
|
+
ut(), vt = !1;
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function rs() {
|
|
1046
1046
|
let e = re[re.length - 1];
|
|
1047
1047
|
if (!e)
|
|
1048
1048
|
return [];
|
|
@@ -1058,29 +1058,29 @@ function ss() {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
return t;
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function is(e) {
|
|
1062
1062
|
const t = [];
|
|
1063
1063
|
return e.forEach((n, o) => {
|
|
1064
1064
|
t.push(...o === 0 ? [] : [`
|
|
1065
|
-
`], ...
|
|
1065
|
+
`], ...as(n));
|
|
1066
1066
|
}), t;
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${
|
|
1068
|
+
function as({ vnode: e, recurseCount: t }) {
|
|
1069
|
+
const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${Jn(
|
|
1070
1070
|
e.component,
|
|
1071
1071
|
e.type,
|
|
1072
1072
|
o
|
|
1073
1073
|
)}`, r = ">" + n;
|
|
1074
|
-
return e.props ? [s, ...
|
|
1074
|
+
return e.props ? [s, ...cs(e.props), r] : [s + r];
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function cs(e) {
|
|
1077
1077
|
const t = [], n = Object.keys(e);
|
|
1078
1078
|
return n.slice(0, 3).forEach((o) => {
|
|
1079
|
-
t.push(...
|
|
1079
|
+
t.push(...Pn(o, e[o]));
|
|
1080
1080
|
}), n.length > 3 && t.push(" ..."), t;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1083
|
-
return K(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] :
|
|
1082
|
+
function Pn(e, t, n) {
|
|
1083
|
+
return K(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : V(t) ? (t = Pn(e, N(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : x(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = N(t), n ? t : [`${e}=`, t]);
|
|
1084
1084
|
}
|
|
1085
1085
|
const Vn = {
|
|
1086
1086
|
sp: "serverPrefetch hook",
|
|
@@ -1115,121 +1115,121 @@ const Vn = {
|
|
|
1115
1115
|
15: "component update",
|
|
1116
1116
|
16: "app unmount cleanup function"
|
|
1117
1117
|
};
|
|
1118
|
-
function
|
|
1118
|
+
function lt(e, t, n, o) {
|
|
1119
1119
|
try {
|
|
1120
1120
|
return o ? e(...o) : e();
|
|
1121
1121
|
} catch (s) {
|
|
1122
|
-
|
|
1122
|
+
Zt(s, t, n);
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function Tn(e, t, n, o) {
|
|
1126
1126
|
if (x(e)) {
|
|
1127
|
-
const s =
|
|
1128
|
-
return s &&
|
|
1129
|
-
|
|
1127
|
+
const s = lt(e, t, n, o);
|
|
1128
|
+
return s && vo(s) && s.catch((r) => {
|
|
1129
|
+
Zt(r, t, n);
|
|
1130
1130
|
}), s;
|
|
1131
1131
|
}
|
|
1132
1132
|
if (E(e)) {
|
|
1133
1133
|
const s = [];
|
|
1134
1134
|
for (let r = 0; r < e.length; r++)
|
|
1135
|
-
s.push(
|
|
1135
|
+
s.push(Tn(e[r], t, n, o));
|
|
1136
1136
|
return s;
|
|
1137
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
1137
|
+
} else process.env.NODE_ENV !== "production" && S(
|
|
1138
1138
|
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
|
|
1139
1139
|
);
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Zt(e, t, n, o = !0) {
|
|
1142
1142
|
const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: a } = t && t.appContext.config || H;
|
|
1143
1143
|
if (t) {
|
|
1144
1144
|
let c = t.parent;
|
|
1145
|
-
const
|
|
1145
|
+
const u = t.proxy, f = process.env.NODE_ENV !== "production" ? Vn[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1146
1146
|
for (; c; ) {
|
|
1147
|
-
const
|
|
1148
|
-
if (
|
|
1149
|
-
for (let i = 0; i <
|
|
1150
|
-
if (
|
|
1147
|
+
const d = c.ec;
|
|
1148
|
+
if (d) {
|
|
1149
|
+
for (let i = 0; i < d.length; i++)
|
|
1150
|
+
if (d[i](e, u, f) === !1)
|
|
1151
1151
|
return;
|
|
1152
1152
|
}
|
|
1153
1153
|
c = c.parent;
|
|
1154
1154
|
}
|
|
1155
1155
|
if (r) {
|
|
1156
|
-
|
|
1156
|
+
ct(), lt(r, null, 10, [
|
|
1157
1157
|
e,
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
]),
|
|
1158
|
+
u,
|
|
1159
|
+
f
|
|
1160
|
+
]), ut();
|
|
1161
1161
|
return;
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
|
-
|
|
1164
|
+
us(e, n, s, o, a);
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function us(e, t, n, o = !0, s = !1) {
|
|
1167
1167
|
if (process.env.NODE_ENV !== "production") {
|
|
1168
1168
|
const r = Vn[t];
|
|
1169
|
-
if (n &&
|
|
1169
|
+
if (n && os(n), S(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && ss(), o)
|
|
1170
1170
|
throw e;
|
|
1171
1171
|
} else if (s)
|
|
1172
1172
|
throw e;
|
|
1173
1173
|
}
|
|
1174
|
-
const
|
|
1175
|
-
let
|
|
1176
|
-
const
|
|
1174
|
+
const R = [];
|
|
1175
|
+
let G = -1;
|
|
1176
|
+
const $e = [];
|
|
1177
1177
|
let q = null, fe = 0;
|
|
1178
|
-
const
|
|
1179
|
-
let
|
|
1178
|
+
const jn = /* @__PURE__ */ Promise.resolve();
|
|
1179
|
+
let We = null;
|
|
1180
1180
|
const ls = 100;
|
|
1181
|
-
function
|
|
1182
|
-
const t =
|
|
1181
|
+
function ps(e) {
|
|
1182
|
+
const t = We || jn;
|
|
1183
1183
|
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1186
|
-
let t =
|
|
1185
|
+
function ds(e) {
|
|
1186
|
+
let t = G + 1, n = R.length;
|
|
1187
1187
|
for (; t < n; ) {
|
|
1188
|
-
const o = t + n >>> 1, s =
|
|
1188
|
+
const o = t + n >>> 1, s = R[o], r = xe(s);
|
|
1189
1189
|
r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
|
|
1190
1190
|
}
|
|
1191
1191
|
return t;
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function Qt(e) {
|
|
1194
1194
|
if (!(e.flags & 1)) {
|
|
1195
|
-
const t = xe(e), n =
|
|
1195
|
+
const t = xe(e), n = R[R.length - 1];
|
|
1196
1196
|
!n || // fast path when the job id is larger than the tail
|
|
1197
|
-
!(e.flags & 2) && t >= xe(n) ?
|
|
1197
|
+
!(e.flags & 2) && t >= xe(n) ? R.push(e) : R.splice(ds(t), 0, e), e.flags |= 1, Fn();
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1201
|
-
|
|
1200
|
+
function Fn() {
|
|
1201
|
+
We || (We = jn.then(kn));
|
|
1202
1202
|
}
|
|
1203
1203
|
function Rn(e) {
|
|
1204
|
-
E(e) ?
|
|
1204
|
+
E(e) ? $e.push(...e) : q && e.id === -1 ? q.splice(fe + 1, 0, e) : e.flags & 1 || ($e.push(e), e.flags |= 1), Fn();
|
|
1205
1205
|
}
|
|
1206
1206
|
function fs(e) {
|
|
1207
|
-
if (
|
|
1208
|
-
const t = [...new Set(
|
|
1207
|
+
if ($e.length) {
|
|
1208
|
+
const t = [...new Set($e)].sort(
|
|
1209
1209
|
(n, o) => xe(n) - xe(o)
|
|
1210
1210
|
);
|
|
1211
|
-
if (
|
|
1211
|
+
if ($e.length = 0, q) {
|
|
1212
1212
|
q.push(...t);
|
|
1213
1213
|
return;
|
|
1214
1214
|
}
|
|
1215
1215
|
for (q = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), fe = 0; fe < q.length; fe++) {
|
|
1216
1216
|
const n = q[fe];
|
|
1217
|
-
process.env.NODE_ENV !== "production" &&
|
|
1217
|
+
process.env.NODE_ENV !== "production" && Hn(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1218
1218
|
}
|
|
1219
1219
|
q = null, fe = 0;
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
const xe = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1223
|
-
function
|
|
1223
|
+
function kn(e) {
|
|
1224
1224
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
1225
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
1225
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => Hn(e, n) : oe;
|
|
1226
1226
|
try {
|
|
1227
|
-
for (
|
|
1228
|
-
const n =
|
|
1227
|
+
for (G = 0; G < R.length; G++) {
|
|
1228
|
+
const n = R[G];
|
|
1229
1229
|
if (n && !(n.flags & 8)) {
|
|
1230
1230
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
1231
1231
|
continue;
|
|
1232
|
-
n.flags & 4 && (n.flags &= -2),
|
|
1232
|
+
n.flags & 4 && (n.flags &= -2), lt(
|
|
1233
1233
|
n,
|
|
1234
1234
|
n.i,
|
|
1235
1235
|
n.i ? 15 : 14
|
|
@@ -1237,18 +1237,18 @@ function Fn(e) {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
} finally {
|
|
1240
|
-
for (;
|
|
1241
|
-
const n =
|
|
1240
|
+
for (; G < R.length; G++) {
|
|
1241
|
+
const n = R[G];
|
|
1242
1242
|
n && (n.flags &= -2);
|
|
1243
1243
|
}
|
|
1244
|
-
|
|
1244
|
+
G = -1, R.length = 0, fs(e), We = null, (R.length || $e.length) && kn(e);
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function Hn(e, t) {
|
|
1248
1248
|
const n = e.get(t) || 0;
|
|
1249
1249
|
if (n > ls) {
|
|
1250
|
-
const o = t.i, s = o &&
|
|
1251
|
-
return
|
|
1250
|
+
const o = t.i, s = o && Wn(o.type);
|
|
1251
|
+
return Zt(
|
|
1252
1252
|
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. 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
|
|
@@ -1256,50 +1256,50 @@ function jn(e, t) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
return e.set(t, n + 1), !1;
|
|
1258
1258
|
}
|
|
1259
|
-
const
|
|
1260
|
-
process.env.NODE_ENV !== "production" && (
|
|
1261
|
-
createRecord:
|
|
1262
|
-
rerender:
|
|
1263
|
-
reload:
|
|
1259
|
+
const Ct = /* @__PURE__ */ new Map();
|
|
1260
|
+
process.env.NODE_ENV !== "production" && (at().__VUE_HMR_RUNTIME__ = {
|
|
1261
|
+
createRecord: $t(ms),
|
|
1262
|
+
rerender: $t(hs),
|
|
1263
|
+
reload: $t(gs)
|
|
1264
1264
|
});
|
|
1265
|
-
const
|
|
1266
|
-
function
|
|
1267
|
-
return
|
|
1268
|
-
initialDef:
|
|
1265
|
+
const Je = /* @__PURE__ */ new Map();
|
|
1266
|
+
function ms(e, t) {
|
|
1267
|
+
return Je.has(e) ? !1 : (Je.set(e, {
|
|
1268
|
+
initialDef: qe(t),
|
|
1269
1269
|
instances: /* @__PURE__ */ new Set()
|
|
1270
1270
|
}), !0);
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return
|
|
1272
|
+
function qe(e) {
|
|
1273
|
+
return qn(e) ? e.__vccOpts : e;
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1276
|
-
const n =
|
|
1275
|
+
function hs(e, t) {
|
|
1276
|
+
const n = Je.get(e);
|
|
1277
1277
|
n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
|
|
1278
|
-
t && (o.render = t,
|
|
1278
|
+
t && (o.render = t, qe(o.type).render = t), o.renderCache = [], o.update();
|
|
1279
1279
|
}));
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1282
|
-
const n =
|
|
1281
|
+
function gs(e, t) {
|
|
1282
|
+
const n = Je.get(e);
|
|
1283
1283
|
if (!n) return;
|
|
1284
|
-
t =
|
|
1284
|
+
t = qe(t), ln(n.initialDef, t);
|
|
1285
1285
|
const o = [...n.instances];
|
|
1286
1286
|
for (let s = 0; s < o.length; s++) {
|
|
1287
|
-
const r = o[s], a =
|
|
1288
|
-
let c =
|
|
1289
|
-
c || (a !== n.initialDef &&
|
|
1287
|
+
const r = o[s], a = qe(r.type);
|
|
1288
|
+
let c = Ct.get(a);
|
|
1289
|
+
c || (a !== n.initialDef && ln(a, t), Ct.set(a, c = /* @__PURE__ */ new Set())), c.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (c.add(r), r.ceReload(t.styles), c.delete(r)) : r.parent ? Qt(() => {
|
|
1290
1290
|
r.parent.update(), c.delete(r);
|
|
1291
1291
|
}) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" && window.location.reload(), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(a);
|
|
1292
1292
|
}
|
|
1293
1293
|
Rn(() => {
|
|
1294
|
-
|
|
1294
|
+
Ct.clear();
|
|
1295
1295
|
});
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function ln(e, t) {
|
|
1298
1298
|
F(e, t);
|
|
1299
1299
|
for (const n in e)
|
|
1300
1300
|
n !== "__file" && !(n in t) && delete e[n];
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function $t(e) {
|
|
1303
1303
|
return (t, n) => {
|
|
1304
1304
|
try {
|
|
1305
1305
|
return e(t, n);
|
|
@@ -1307,26 +1307,26 @@ function gt(e) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
};
|
|
1309
1309
|
}
|
|
1310
|
-
let
|
|
1311
|
-
function
|
|
1310
|
+
let me, He = [];
|
|
1311
|
+
function Mn(e, t) {
|
|
1312
1312
|
var n, o;
|
|
1313
|
-
|
|
1313
|
+
me = e, me ? (me.enabled = !0, He.forEach(({ event: s, args: r }) => me.emit(s, ...r)), He = []) : /* 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
|
|
1314
1314
|
window.HTMLElement && // also exclude jsdom
|
|
1315
1315
|
// eslint-disable-next-line no-restricted-syntax
|
|
1316
1316
|
!((o = (n = window.navigator) == null ? void 0 : n.userAgent) != null && o.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((r) => {
|
|
1317
|
-
|
|
1317
|
+
Mn(r, t);
|
|
1318
1318
|
}), setTimeout(() => {
|
|
1319
|
-
|
|
1320
|
-
}, 3e3)) :
|
|
1319
|
+
me || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, He = []);
|
|
1320
|
+
}, 3e3)) : He = [];
|
|
1321
1321
|
}
|
|
1322
|
-
let
|
|
1323
|
-
const
|
|
1324
|
-
function
|
|
1325
|
-
e.shapeFlag & 6 && e.component ? (e.transition = t,
|
|
1322
|
+
let ue = null, _s = null;
|
|
1323
|
+
const vs = (e) => e.__isTeleport;
|
|
1324
|
+
function Ln(e, t) {
|
|
1325
|
+
e.shapeFlag & 6 && e.component ? (e.transition = t, Ln(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1326
1326
|
}
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
const
|
|
1327
|
+
at().requestIdleCallback;
|
|
1328
|
+
at().cancelIdleCallback;
|
|
1329
|
+
const Cs = Symbol.for("v-ndc"), Pt = (e) => e ? Js(e) ? qs(e) : Pt(e.parent) : null, Se = (
|
|
1330
1330
|
// Move PURE marker to new line to workaround compiler discarding it
|
|
1331
1331
|
// due to type annotation
|
|
1332
1332
|
/* @__PURE__ */ F(/* @__PURE__ */ Object.create(null), {
|
|
@@ -1337,25 +1337,25 @@ const vs = Symbol.for("v-ndc"), xt = (e) => e ? Gs(e) ? Js(e) : xt(e.parent) : n
|
|
|
1337
1337
|
$attrs: (e) => process.env.NODE_ENV !== "production" ? X(e.attrs) : e.attrs,
|
|
1338
1338
|
$slots: (e) => process.env.NODE_ENV !== "production" ? X(e.slots) : e.slots,
|
|
1339
1339
|
$refs: (e) => process.env.NODE_ENV !== "production" ? X(e.refs) : e.refs,
|
|
1340
|
-
$parent: (e) =>
|
|
1341
|
-
$root: (e) =>
|
|
1340
|
+
$parent: (e) => Pt(e.parent),
|
|
1341
|
+
$root: (e) => Pt(e.root),
|
|
1342
1342
|
$host: (e) => e.ce,
|
|
1343
1343
|
$emit: (e) => e.emit,
|
|
1344
1344
|
$options: (e) => __VUE_OPTIONS_API__ ? Ns(e) : e.type,
|
|
1345
1345
|
$forceUpdate: (e) => e.f || (e.f = () => {
|
|
1346
|
-
|
|
1346
|
+
Qt(e.update);
|
|
1347
1347
|
}),
|
|
1348
|
-
$nextTick: (e) => e.n || (e.n =
|
|
1349
|
-
$watch: (e) => __VUE_OPTIONS_API__ ?
|
|
1348
|
+
$nextTick: (e) => e.n || (e.n = ps.bind(e.proxy)),
|
|
1349
|
+
$watch: (e) => __VUE_OPTIONS_API__ ? Vs.bind(e) : oe
|
|
1350
1350
|
})
|
|
1351
|
-
),
|
|
1351
|
+
), bt = (e, t) => e !== H && !e.__isScriptSetup && O(e, t), $s = {
|
|
1352
1352
|
get({ _: e }, t) {
|
|
1353
1353
|
if (t === "__v_skip")
|
|
1354
1354
|
return !0;
|
|
1355
|
-
const { ctx: n, setupState: o, data: s, props: r, accessCache: a, type: c, appContext:
|
|
1355
|
+
const { ctx: n, setupState: o, data: s, props: r, accessCache: a, type: c, appContext: u } = e;
|
|
1356
1356
|
if (process.env.NODE_ENV !== "production" && t === "__isVue")
|
|
1357
1357
|
return !0;
|
|
1358
|
-
let
|
|
1358
|
+
let f;
|
|
1359
1359
|
if (t[0] !== "$") {
|
|
1360
1360
|
const p = a[t];
|
|
1361
1361
|
if (p !== void 0)
|
|
@@ -1370,42 +1370,42 @@ const vs = Symbol.for("v-ndc"), xt = (e) => e ? Gs(e) ? Js(e) : xt(e.parent) : n
|
|
|
1370
1370
|
return r[t];
|
|
1371
1371
|
}
|
|
1372
1372
|
else {
|
|
1373
|
-
if (
|
|
1373
|
+
if (bt(o, t))
|
|
1374
1374
|
return a[t] = 1, o[t];
|
|
1375
|
-
if (s !== H &&
|
|
1375
|
+
if (s !== H && O(s, t))
|
|
1376
1376
|
return a[t] = 2, s[t];
|
|
1377
1377
|
if (
|
|
1378
1378
|
// only cache other properties when instance has declared (thus stable)
|
|
1379
1379
|
// props
|
|
1380
|
-
(
|
|
1380
|
+
(f = e.propsOptions[0]) && O(f, t)
|
|
1381
1381
|
)
|
|
1382
1382
|
return a[t] = 3, r[t];
|
|
1383
|
-
if (n !== H &&
|
|
1383
|
+
if (n !== H && O(n, t))
|
|
1384
1384
|
return a[t] = 4, n[t];
|
|
1385
1385
|
(!__VUE_OPTIONS_API__ || bs) && (a[t] = 0);
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
const
|
|
1389
|
-
let i,
|
|
1390
|
-
if (
|
|
1391
|
-
return t === "$attrs" ? (
|
|
1388
|
+
const d = Se[t];
|
|
1389
|
+
let i, l;
|
|
1390
|
+
if (d)
|
|
1391
|
+
return t === "$attrs" ? (I(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && I(e, "get", t), d(e);
|
|
1392
1392
|
if (
|
|
1393
1393
|
// css module (injected by vue-loader)
|
|
1394
1394
|
(i = c.__cssModules) && (i = i[t])
|
|
1395
1395
|
)
|
|
1396
1396
|
return i;
|
|
1397
|
-
if (n !== H &&
|
|
1397
|
+
if (n !== H && O(n, t))
|
|
1398
1398
|
return a[t] = 4, n[t];
|
|
1399
1399
|
if (
|
|
1400
1400
|
// global properties
|
|
1401
|
-
|
|
1401
|
+
l = u.config.globalProperties, O(l, t)
|
|
1402
1402
|
)
|
|
1403
|
-
return
|
|
1403
|
+
return l[t];
|
|
1404
1404
|
process.env.NODE_ENV;
|
|
1405
1405
|
},
|
|
1406
1406
|
set({ _: e }, t, n) {
|
|
1407
1407
|
const { data: o, setupState: s, ctx: r } = e;
|
|
1408
|
-
return
|
|
1408
|
+
return bt(s, t) ? (s[t] = n, !0) : process.env.NODE_ENV !== "production" && s.__isScriptSetup && O(s, t) ? (S(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : o !== H && O(o, t) ? (o[t] = n, !0) : O(e.props, t) ? (process.env.NODE_ENV !== "production" && S(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && S(
|
|
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(r, t, {
|
|
1411
1411
|
enumerable: !0,
|
|
@@ -1417,16 +1417,16 @@ const vs = Symbol.for("v-ndc"), xt = (e) => e ? Gs(e) ? Js(e) : xt(e.parent) : n
|
|
|
1417
1417
|
_: { data: e, setupState: t, accessCache: n, ctx: o, appContext: s, propsOptions: r }
|
|
1418
1418
|
}, a) {
|
|
1419
1419
|
let c;
|
|
1420
|
-
return !!n[a] || e !== H &&
|
|
1420
|
+
return !!n[a] || e !== H && O(e, a) || bt(t, a) || (c = r[0]) && O(c, a) || O(o, a) || O(Se, a) || O(s.config.globalProperties, a);
|
|
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 : O(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
|
-
process.env.NODE_ENV !== "production" && (
|
|
1426
|
+
process.env.NODE_ENV !== "production" && ($s.ownKeys = (e) => (S(
|
|
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
|
-
function
|
|
1429
|
+
function pn(e) {
|
|
1430
1430
|
return E(e) ? e.reduce(
|
|
1431
1431
|
(t, n) => (t[n] = null, t),
|
|
1432
1432
|
{}
|
|
@@ -1439,19 +1439,19 @@ function Ns(e) {
|
|
|
1439
1439
|
optionsCache: r,
|
|
1440
1440
|
config: { optionMergeStrategies: a }
|
|
1441
1441
|
} = e.appContext, c = r.get(t);
|
|
1442
|
-
let
|
|
1443
|
-
return c ?
|
|
1444
|
-
(
|
|
1445
|
-
),
|
|
1442
|
+
let u;
|
|
1443
|
+
return c ? u = c : !s.length && !n && !o ? u = t : (u = {}, s.length && s.forEach(
|
|
1444
|
+
(f) => Ye(u, f, a, !0)
|
|
1445
|
+
), Ye(u, t, a)), T(t) && r.set(t, u), u;
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function Ye(e, t, n, o = !1) {
|
|
1448
1448
|
const { mixins: s, extends: r } = t;
|
|
1449
|
-
r &&
|
|
1450
|
-
(a) =>
|
|
1449
|
+
r && Ye(e, r, n, !0), s && s.forEach(
|
|
1450
|
+
(a) => Ye(e, a, n, !0)
|
|
1451
1451
|
);
|
|
1452
1452
|
for (const a in t)
|
|
1453
1453
|
if (o && a === "expose")
|
|
1454
|
-
process.env.NODE_ENV !== "production" &&
|
|
1454
|
+
process.env.NODE_ENV !== "production" && S(
|
|
1455
1455
|
'"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
|
|
1456
1456
|
);
|
|
1457
1457
|
else {
|
|
@@ -1461,37 +1461,37 @@ function Je(e, t, n, o = !1) {
|
|
|
1461
1461
|
return e;
|
|
1462
1462
|
}
|
|
1463
1463
|
const ws = {
|
|
1464
|
-
data:
|
|
1465
|
-
props:
|
|
1466
|
-
emits:
|
|
1464
|
+
data: dn,
|
|
1465
|
+
props: mn,
|
|
1466
|
+
emits: mn,
|
|
1467
1467
|
// objects
|
|
1468
1468
|
methods: we,
|
|
1469
1469
|
computed: we,
|
|
1470
1470
|
// lifecycle
|
|
1471
|
-
beforeCreate:
|
|
1472
|
-
created:
|
|
1473
|
-
beforeMount:
|
|
1474
|
-
mounted:
|
|
1475
|
-
beforeUpdate:
|
|
1476
|
-
updated:
|
|
1477
|
-
beforeDestroy:
|
|
1478
|
-
beforeUnmount:
|
|
1479
|
-
destroyed:
|
|
1480
|
-
unmounted:
|
|
1481
|
-
activated:
|
|
1482
|
-
deactivated:
|
|
1483
|
-
errorCaptured:
|
|
1484
|
-
serverPrefetch:
|
|
1471
|
+
beforeCreate: D,
|
|
1472
|
+
created: D,
|
|
1473
|
+
beforeMount: D,
|
|
1474
|
+
mounted: D,
|
|
1475
|
+
beforeUpdate: D,
|
|
1476
|
+
updated: D,
|
|
1477
|
+
beforeDestroy: D,
|
|
1478
|
+
beforeUnmount: D,
|
|
1479
|
+
destroyed: D,
|
|
1480
|
+
unmounted: D,
|
|
1481
|
+
activated: D,
|
|
1482
|
+
deactivated: D,
|
|
1483
|
+
errorCaptured: D,
|
|
1484
|
+
serverPrefetch: D,
|
|
1485
1485
|
// assets
|
|
1486
1486
|
components: we,
|
|
1487
1487
|
directives: we,
|
|
1488
1488
|
// watch
|
|
1489
1489
|
watch: ys,
|
|
1490
1490
|
// provide / inject
|
|
1491
|
-
provide:
|
|
1491
|
+
provide: dn,
|
|
1492
1492
|
inject: Es
|
|
1493
1493
|
};
|
|
1494
|
-
function
|
|
1494
|
+
function dn(e, t) {
|
|
1495
1495
|
return t ? e ? function() {
|
|
1496
1496
|
return F(
|
|
1497
1497
|
x(e) ? e.call(this, this) : e,
|
|
@@ -1500,9 +1500,9 @@ function un(e, t) {
|
|
|
1500
1500
|
} : t : e;
|
|
1501
1501
|
}
|
|
1502
1502
|
function Es(e, t) {
|
|
1503
|
-
return we(
|
|
1503
|
+
return we(fn(e), fn(t));
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function fn(e) {
|
|
1506
1506
|
if (E(e)) {
|
|
1507
1507
|
const t = {};
|
|
1508
1508
|
for (let n = 0; n < e.length; n++)
|
|
@@ -1511,17 +1511,17 @@ function pn(e) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
return e;
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1514
|
+
function D(e, t) {
|
|
1515
1515
|
return e ? [...new Set([].concat(e, t))] : t;
|
|
1516
1516
|
}
|
|
1517
1517
|
function we(e, t) {
|
|
1518
1518
|
return e ? F(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function mn(e, t) {
|
|
1521
1521
|
return e ? E(e) && E(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : F(
|
|
1522
1522
|
/* @__PURE__ */ Object.create(null),
|
|
1523
|
-
|
|
1524
|
-
|
|
1523
|
+
pn(e),
|
|
1524
|
+
pn(t ?? {})
|
|
1525
1525
|
) : t;
|
|
1526
1526
|
}
|
|
1527
1527
|
function ys(e, t) {
|
|
@@ -1529,73 +1529,73 @@ function ys(e, t) {
|
|
|
1529
1529
|
if (!t) return e;
|
|
1530
1530
|
const n = F(/* @__PURE__ */ Object.create(null), e);
|
|
1531
1531
|
for (const o in t)
|
|
1532
|
-
n[o] =
|
|
1532
|
+
n[o] = D(e[o], t[o]);
|
|
1533
1533
|
return n;
|
|
1534
1534
|
}
|
|
1535
|
-
let
|
|
1536
|
-
function
|
|
1537
|
-
const o =
|
|
1538
|
-
if (o ||
|
|
1535
|
+
let Ss = null;
|
|
1536
|
+
function Os(e, t, n = !1) {
|
|
1537
|
+
const o = Ve || ue;
|
|
1538
|
+
if (o || Ss) {
|
|
1539
1539
|
const s = o ? o.parent == null ? o.vnode.appContext && o.vnode.appContext.provides : o.parent.provides : void 0;
|
|
1540
1540
|
if (s && e in s)
|
|
1541
1541
|
return s[e];
|
|
1542
1542
|
if (arguments.length > 1)
|
|
1543
1543
|
return n && x(t) ? t.call(o && o.proxy) : t;
|
|
1544
|
-
process.env.NODE_ENV !== "production" &&
|
|
1545
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
1544
|
+
process.env.NODE_ENV !== "production" && S(`injection "${String(e)}" not found.`);
|
|
1545
|
+
} else process.env.NODE_ENV !== "production" && S("inject() can only be used inside setup() or functional components.");
|
|
1546
1546
|
}
|
|
1547
|
-
const
|
|
1547
|
+
const Is = {}, Kn = (e) => Object.getPrototypeOf(e) === Is, xs = Fs, As = Symbol.for("v-scx"), Ds = () => {
|
|
1548
1548
|
{
|
|
1549
|
-
const e =
|
|
1550
|
-
return e || process.env.NODE_ENV !== "production" &&
|
|
1549
|
+
const e = Os(As);
|
|
1550
|
+
return e || process.env.NODE_ENV !== "production" && S(
|
|
1551
1551
|
"Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
|
|
1552
1552
|
), e;
|
|
1553
1553
|
}
|
|
1554
1554
|
};
|
|
1555
|
-
function
|
|
1555
|
+
function Ps(e, t, n = H) {
|
|
1556
1556
|
const { immediate: o, deep: s, flush: r, once: a } = n;
|
|
1557
|
-
process.env.NODE_ENV !== "production" && !t && (o !== void 0 &&
|
|
1557
|
+
process.env.NODE_ENV !== "production" && !t && (o !== void 0 && S(
|
|
1558
1558
|
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1559
|
-
), s !== void 0 &&
|
|
1559
|
+
), s !== void 0 && S(
|
|
1560
1560
|
'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1561
|
-
), a !== void 0 &&
|
|
1561
|
+
), a !== void 0 && S(
|
|
1562
1562
|
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1563
1563
|
));
|
|
1564
1564
|
const c = F({}, n);
|
|
1565
|
-
process.env.NODE_ENV !== "production" && (c.onWarn =
|
|
1566
|
-
const
|
|
1567
|
-
let
|
|
1568
|
-
if (
|
|
1565
|
+
process.env.NODE_ENV !== "production" && (c.onWarn = S);
|
|
1566
|
+
const u = t && o || !t && r !== "post";
|
|
1567
|
+
let f;
|
|
1568
|
+
if (Qe) {
|
|
1569
1569
|
if (r === "sync") {
|
|
1570
|
-
const p =
|
|
1571
|
-
|
|
1572
|
-
} else if (!
|
|
1570
|
+
const p = Ds();
|
|
1571
|
+
f = p.__watcherHandles || (p.__watcherHandles = []);
|
|
1572
|
+
} else if (!u) {
|
|
1573
1573
|
const p = () => {
|
|
1574
1574
|
};
|
|
1575
1575
|
return p.stop = oe, p.resume = oe, p.pause = oe, p;
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
|
-
const
|
|
1579
|
-
c.call = (p, _,
|
|
1578
|
+
const d = Ve;
|
|
1579
|
+
c.call = (p, _, h) => Tn(p, d, _, h);
|
|
1580
1580
|
let i = !1;
|
|
1581
1581
|
r === "post" ? c.scheduler = (p) => {
|
|
1582
|
-
xs(p,
|
|
1582
|
+
xs(p, d && d.suspense);
|
|
1583
1583
|
} : r !== "sync" && (i = !0, c.scheduler = (p, _) => {
|
|
1584
|
-
_ ? p() :
|
|
1584
|
+
_ ? p() : Qt(p);
|
|
1585
1585
|
}), c.augmentJob = (p) => {
|
|
1586
|
-
t && (p.flags |= 4), i && (p.flags |= 2,
|
|
1586
|
+
t && (p.flags |= 4), i && (p.flags |= 2, d && (p.id = d.uid, p.i = d));
|
|
1587
1587
|
};
|
|
1588
|
-
const
|
|
1589
|
-
return
|
|
1588
|
+
const l = ns(e, t, c);
|
|
1589
|
+
return Qe && (f ? f.push(l) : u && l()), l;
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1592
|
-
const o = this.proxy, s = K(e) ? e.includes(".") ?
|
|
1591
|
+
function Vs(e, t, n) {
|
|
1592
|
+
const o = this.proxy, s = K(e) ? e.includes(".") ? Ts(o, e) : () => o[e] : e.bind(o, o);
|
|
1593
1593
|
let r;
|
|
1594
1594
|
x(t) ? r = t : (r = t.handler, n = t);
|
|
1595
|
-
const a = Ws(this), c =
|
|
1595
|
+
const a = Ws(this), c = Ps(s, r.bind(o), n);
|
|
1596
1596
|
return a(), c;
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function Ts(e, t) {
|
|
1599
1599
|
const n = t.split(".");
|
|
1600
1600
|
return () => {
|
|
1601
1601
|
let o = e;
|
|
@@ -1604,31 +1604,31 @@ function Ps(e, t) {
|
|
|
1604
1604
|
return o;
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
|
-
const
|
|
1608
|
-
function
|
|
1607
|
+
const js = (e) => e.__isSuspense;
|
|
1608
|
+
function Fs(e, t) {
|
|
1609
1609
|
t && t.pendingBranch ? E(e) ? t.effects.push(...e) : t.effects.push(e) : Rn(e);
|
|
1610
1610
|
}
|
|
1611
|
-
const
|
|
1612
|
-
let
|
|
1613
|
-
function
|
|
1611
|
+
const Un = Symbol.for("v-fgt"), Rs = Symbol.for("v-txt"), ks = Symbol.for("v-cmt");
|
|
1612
|
+
let ge = null;
|
|
1613
|
+
function Hs(e) {
|
|
1614
1614
|
return e ? e.__v_isVNode === !0 : !1;
|
|
1615
1615
|
}
|
|
1616
|
-
const
|
|
1616
|
+
const Ms = (...e) => Gn(
|
|
1617
1617
|
...e
|
|
1618
|
-
),
|
|
1618
|
+
), zn = ({ key: e }) => e ?? null, Le = ({
|
|
1619
1619
|
ref: e,
|
|
1620
1620
|
ref_key: t,
|
|
1621
1621
|
ref_for: n
|
|
1622
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? K(e) ||
|
|
1623
|
-
function
|
|
1624
|
-
const
|
|
1622
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? K(e) || V(e) || x(e) ? { i: ue, r: e, k: t, f: !!n } : e : null);
|
|
1623
|
+
function Ls(e, t = null, n = null, o = 0, s = null, r = e === Un ? 0 : 1, a = !1, c = !1) {
|
|
1624
|
+
const u = {
|
|
1625
1625
|
__v_isVNode: !0,
|
|
1626
1626
|
__v_skip: !0,
|
|
1627
1627
|
type: e,
|
|
1628
1628
|
props: t,
|
|
1629
|
-
key: t &&
|
|
1630
|
-
ref: t &&
|
|
1631
|
-
scopeId:
|
|
1629
|
+
key: t && zn(t),
|
|
1630
|
+
ref: t && Le(t),
|
|
1631
|
+
scopeId: _s,
|
|
1632
1632
|
slotScopeIds: null,
|
|
1633
1633
|
children: n,
|
|
1634
1634
|
component: null,
|
|
@@ -1648,41 +1648,41 @@ function Ms(e, t = null, n = null, o = 0, s = null, r = e === Ln ? 0 : 1, a = !1
|
|
|
1648
1648
|
dynamicProps: s,
|
|
1649
1649
|
dynamicChildren: null,
|
|
1650
1650
|
appContext: null,
|
|
1651
|
-
ctx:
|
|
1651
|
+
ctx: ue
|
|
1652
1652
|
};
|
|
1653
|
-
return c ? (
|
|
1653
|
+
return c ? (Xt(u, n), r & 128 && e.normalize(u)) : n && (u.shapeFlag |= K(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && S("VNode created with invalid key (NaN). VNode type:", u.type), // avoid a block node from tracking itself
|
|
1654
1654
|
!a && // has current parent block
|
|
1655
|
-
|
|
1655
|
+
ge && // presence of a patch flag indicates this node needs patching on updates.
|
|
1656
1656
|
// component nodes also should always be patched, because even if the
|
|
1657
1657
|
// component doesn't need to update, it needs to persist the instance on to
|
|
1658
1658
|
// the next vnode so that it can be properly unmounted later.
|
|
1659
|
-
(
|
|
1659
|
+
(u.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
|
|
1660
1660
|
// vnode should not be considered dynamic due to handler caching.
|
|
1661
|
-
|
|
1661
|
+
u.patchFlag !== 32 && ge.push(u), u;
|
|
1662
1662
|
}
|
|
1663
|
-
const
|
|
1664
|
-
function
|
|
1665
|
-
if ((!e || e ===
|
|
1666
|
-
const c =
|
|
1663
|
+
const Ks = process.env.NODE_ENV !== "production" ? Ms : Gn;
|
|
1664
|
+
function Gn(e, t = null, n = null, o = 0, s = null, r = !1) {
|
|
1665
|
+
if ((!e || e === Cs) && (process.env.NODE_ENV !== "production" && !e && S(`Invalid vnode type when creating vnode: ${e}.`), e = ks), Hs(e)) {
|
|
1666
|
+
const c = Ze(
|
|
1667
1667
|
e,
|
|
1668
1668
|
t,
|
|
1669
1669
|
!0
|
|
1670
1670
|
/* mergeRef: true */
|
|
1671
1671
|
);
|
|
1672
|
-
return n &&
|
|
1672
|
+
return n && Xt(c, n), !r && ge && (c.shapeFlag & 6 ? ge[ge.indexOf(e)] = c : ge.push(c)), c.patchFlag = -2, c;
|
|
1673
1673
|
}
|
|
1674
|
-
if (
|
|
1675
|
-
t =
|
|
1676
|
-
let { class: c, style:
|
|
1677
|
-
c && !K(c) && (t.class =
|
|
1674
|
+
if (qn(e) && (e = e.__vccOpts), t) {
|
|
1675
|
+
t = Us(t);
|
|
1676
|
+
let { class: c, style: u } = t;
|
|
1677
|
+
c && !K(c) && (t.class = Ut(c)), T(u) && (ze(u) && !E(u) && (u = F({}, u)), t.style = Kt(u));
|
|
1678
1678
|
}
|
|
1679
|
-
const a = K(e) ? 1 :
|
|
1680
|
-
return process.env.NODE_ENV !== "production" && a & 4 &&
|
|
1679
|
+
const a = K(e) ? 1 : js(e) ? 128 : vs(e) ? 64 : T(e) ? 4 : x(e) ? 2 : 0;
|
|
1680
|
+
return process.env.NODE_ENV !== "production" && a & 4 && ze(e) && (e = N(e), S(
|
|
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: `,
|
|
1684
1684
|
e
|
|
1685
|
-
)),
|
|
1685
|
+
)), Ls(
|
|
1686
1686
|
e,
|
|
1687
1687
|
t,
|
|
1688
1688
|
n,
|
|
@@ -1693,25 +1693,25 @@ Component that was made reactive: `,
|
|
|
1693
1693
|
!0
|
|
1694
1694
|
);
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1697
|
-
return e ?
|
|
1696
|
+
function Us(e) {
|
|
1697
|
+
return e ? ze(e) || Kn(e) ? F({}, e) : e : null;
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1700
|
-
const { props: s, ref: r, patchFlag: a, children: c, transition:
|
|
1699
|
+
function Ze(e, t, n = !1, o = !1) {
|
|
1700
|
+
const { props: s, ref: r, patchFlag: a, children: c, transition: u } = e, f = t ? Gs(s || {}, t) : s, d = {
|
|
1701
1701
|
__v_isVNode: !0,
|
|
1702
1702
|
__v_skip: !0,
|
|
1703
1703
|
type: e.type,
|
|
1704
|
-
props:
|
|
1705
|
-
key:
|
|
1704
|
+
props: f,
|
|
1705
|
+
key: f && zn(f),
|
|
1706
1706
|
ref: t && t.ref ? (
|
|
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 && r ? E(r) ? r.concat(
|
|
1710
|
+
n && r ? E(r) ? r.concat(Le(t)) : [r, Le(t)] : Le(t)
|
|
1711
1711
|
) : r,
|
|
1712
1712
|
scopeId: e.scopeId,
|
|
1713
1713
|
slotScopeIds: e.slotScopeIds,
|
|
1714
|
-
children: process.env.NODE_ENV !== "production" && a === -1 && E(c) ? c.map(
|
|
1714
|
+
children: process.env.NODE_ENV !== "production" && a === -1 && E(c) ? c.map(Bn) : c,
|
|
1715
1715
|
target: e.target,
|
|
1716
1716
|
targetStart: e.targetStart,
|
|
1717
1717
|
targetAnchor: e.targetAnchor,
|
|
@@ -1721,38 +1721,38 @@ function qe(e, t, n = !1, o = !1) {
|
|
|
1721
1721
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1722
1722
|
// note: preserve flag for fragments since they use the flag for children
|
|
1723
1723
|
// fast paths only.
|
|
1724
|
-
patchFlag: t && e.type !==
|
|
1724
|
+
patchFlag: t && e.type !== Un ? a === -1 ? 16 : a | 16 : a,
|
|
1725
1725
|
dynamicProps: e.dynamicProps,
|
|
1726
1726
|
dynamicChildren: e.dynamicChildren,
|
|
1727
1727
|
appContext: e.appContext,
|
|
1728
1728
|
dirs: e.dirs,
|
|
1729
|
-
transition:
|
|
1729
|
+
transition: u,
|
|
1730
1730
|
// These should technically only be non-null on mounted VNodes. However,
|
|
1731
1731
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
1732
1732
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
1733
1733
|
// they will simply be overwritten.
|
|
1734
1734
|
component: e.component,
|
|
1735
1735
|
suspense: e.suspense,
|
|
1736
|
-
ssContent: e.ssContent &&
|
|
1737
|
-
ssFallback: e.ssFallback &&
|
|
1736
|
+
ssContent: e.ssContent && Ze(e.ssContent),
|
|
1737
|
+
ssFallback: e.ssFallback && Ze(e.ssFallback),
|
|
1738
1738
|
el: e.el,
|
|
1739
1739
|
anchor: e.anchor,
|
|
1740
1740
|
ctx: e.ctx,
|
|
1741
1741
|
ce: e.ce
|
|
1742
1742
|
};
|
|
1743
|
-
return
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
),
|
|
1743
|
+
return u && o && Ln(
|
|
1744
|
+
d,
|
|
1745
|
+
u.clone(d)
|
|
1746
|
+
), d;
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1749
|
-
const t =
|
|
1750
|
-
return E(e.children) && (t.children = e.children.map(
|
|
1748
|
+
function Bn(e) {
|
|
1749
|
+
const t = Ze(e);
|
|
1750
|
+
return E(e.children) && (t.children = e.children.map(Bn)), t;
|
|
1751
1751
|
}
|
|
1752
1752
|
function zs(e = " ", t = 0) {
|
|
1753
|
-
return
|
|
1753
|
+
return Ks(Rs, null, e, t);
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function Xt(e, t) {
|
|
1756
1756
|
let n = 0;
|
|
1757
1757
|
const { shapeFlag: o } = e;
|
|
1758
1758
|
if (t == null)
|
|
@@ -1762,77 +1762,77 @@ function Yt(e, t) {
|
|
|
1762
1762
|
else if (typeof t == "object")
|
|
1763
1763
|
if (o & 65) {
|
|
1764
1764
|
const s = t.default;
|
|
1765
|
-
s && (s._c && (s._d = !1),
|
|
1765
|
+
s && (s._c && (s._d = !1), Xt(e, s()), s._c && (s._d = !0));
|
|
1766
1766
|
return;
|
|
1767
1767
|
} else
|
|
1768
|
-
n = 32, !t._ && !
|
|
1769
|
-
else x(t) ? (t = { default: t, _ctx:
|
|
1768
|
+
n = 32, !t._ && !Kn(t) && (t._ctx = ue);
|
|
1769
|
+
else x(t) ? (t = { default: t, _ctx: ue }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [zs(t)]) : n = 8);
|
|
1770
1770
|
e.children = t, e.shapeFlag |= n;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function Gs(...e) {
|
|
1773
1773
|
const t = {};
|
|
1774
1774
|
for (let n = 0; n < e.length; n++) {
|
|
1775
1775
|
const o = e[n];
|
|
1776
1776
|
for (const s in o)
|
|
1777
1777
|
if (s === "class")
|
|
1778
|
-
t.class !== o.class && (t.class =
|
|
1778
|
+
t.class !== o.class && (t.class = Ut([t.class, o.class]));
|
|
1779
1779
|
else if (s === "style")
|
|
1780
|
-
t.style =
|
|
1781
|
-
else if (
|
|
1780
|
+
t.style = Kt([t.style, o.style]);
|
|
1781
|
+
else if (ho(s)) {
|
|
1782
1782
|
const r = t[s], a = o[s];
|
|
1783
1783
|
a && r !== a && !(E(r) && r.includes(a)) && (t[s] = r ? [].concat(r, a) : a);
|
|
1784
1784
|
} else s !== "" && (t[s] = o[s]);
|
|
1785
1785
|
}
|
|
1786
1786
|
return t;
|
|
1787
1787
|
}
|
|
1788
|
-
let
|
|
1789
|
-
const Bs = () =>
|
|
1790
|
-
let
|
|
1788
|
+
let Ve = null;
|
|
1789
|
+
const Bs = () => Ve || ue;
|
|
1790
|
+
let Vt;
|
|
1791
1791
|
{
|
|
1792
|
-
const e =
|
|
1792
|
+
const e = at(), t = (n, o) => {
|
|
1793
1793
|
let s;
|
|
1794
1794
|
return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
|
|
1795
1795
|
s.length > 1 ? s.forEach((a) => a(r)) : s[0](r);
|
|
1796
1796
|
};
|
|
1797
1797
|
};
|
|
1798
|
-
|
|
1798
|
+
Vt = t(
|
|
1799
1799
|
"__VUE_INSTANCE_SETTERS__",
|
|
1800
|
-
(n) =>
|
|
1800
|
+
(n) => Ve = n
|
|
1801
1801
|
), t(
|
|
1802
1802
|
"__VUE_SSR_SETTERS__",
|
|
1803
|
-
(n) =>
|
|
1803
|
+
(n) => Qe = n
|
|
1804
1804
|
);
|
|
1805
1805
|
}
|
|
1806
1806
|
const Ws = (e) => {
|
|
1807
|
-
const t =
|
|
1808
|
-
return
|
|
1809
|
-
e.scope.off(),
|
|
1807
|
+
const t = Ve;
|
|
1808
|
+
return Vt(e), e.scope.on(), () => {
|
|
1809
|
+
e.scope.off(), Vt(t);
|
|
1810
1810
|
};
|
|
1811
1811
|
};
|
|
1812
|
-
function
|
|
1812
|
+
function Js(e) {
|
|
1813
1813
|
return e.vnode.shapeFlag & 4;
|
|
1814
1814
|
}
|
|
1815
|
-
let
|
|
1815
|
+
let Qe = !1;
|
|
1816
1816
|
process.env.NODE_ENV;
|
|
1817
|
-
function
|
|
1818
|
-
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(
|
|
1817
|
+
function qs(e) {
|
|
1818
|
+
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Qo(Wo(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 Se)
|
|
1823
|
+
return Se[n](e);
|
|
1824
1824
|
},
|
|
1825
1825
|
has(t, n) {
|
|
1826
|
-
return n in t || n in
|
|
1826
|
+
return n in t || n in Se;
|
|
1827
1827
|
}
|
|
1828
1828
|
})) : e.proxy;
|
|
1829
1829
|
}
|
|
1830
|
-
const
|
|
1831
|
-
function
|
|
1830
|
+
const Ys = /(?:^|[-_])(\w)/g, Zs = (e) => e.replace(Ys, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
1831
|
+
function Wn(e, t = !0) {
|
|
1832
1832
|
return x(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1835
|
-
let o =
|
|
1834
|
+
function Jn(e, t, n = !1) {
|
|
1835
|
+
let o = Wn(t);
|
|
1836
1836
|
if (!o && t.__file) {
|
|
1837
1837
|
const s = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
1838
1838
|
s && (o = s[1]);
|
|
@@ -1847,44 +1847,44 @@ function Wn(e, t, n = !1) {
|
|
|
1847
1847
|
e.components || e.parent.type.components
|
|
1848
1848
|
) || s(e.appContext.components);
|
|
1849
1849
|
}
|
|
1850
|
-
return o ?
|
|
1850
|
+
return o ? Zs(o) : n ? "App" : "Anonymous";
|
|
1851
1851
|
}
|
|
1852
|
-
function
|
|
1852
|
+
function qn(e) {
|
|
1853
1853
|
return x(e) && "__vccOpts" in e;
|
|
1854
1854
|
}
|
|
1855
|
-
const
|
|
1856
|
-
const n =
|
|
1855
|
+
const Tt = (e, t) => {
|
|
1856
|
+
const n = es(e, t, Qe);
|
|
1857
1857
|
if (process.env.NODE_ENV !== "production") {
|
|
1858
1858
|
const o = Bs();
|
|
1859
1859
|
o && o.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
|
|
1860
1860
|
}
|
|
1861
1861
|
return n;
|
|
1862
1862
|
};
|
|
1863
|
-
function
|
|
1863
|
+
function Qs() {
|
|
1864
1864
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1865
1865
|
return;
|
|
1866
1866
|
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
|
|
1867
1867
|
__vue_custom_formatter: !0,
|
|
1868
1868
|
header(i) {
|
|
1869
|
-
return
|
|
1869
|
+
return T(i) ? i.__isVue ? ["div", e, "VueInstance"] : V(i) ? [
|
|
1870
1870
|
"div",
|
|
1871
1871
|
{},
|
|
1872
|
-
["span", e,
|
|
1872
|
+
["span", e, d(i)],
|
|
1873
1873
|
"<",
|
|
1874
1874
|
// avoid debugger accessing value affecting behavior
|
|
1875
1875
|
c("_value" in i ? i._value : i),
|
|
1876
1876
|
">"
|
|
1877
|
-
] :
|
|
1877
|
+
] : Ce(i) ? [
|
|
1878
1878
|
"div",
|
|
1879
1879
|
{},
|
|
1880
|
-
["span", e,
|
|
1880
|
+
["span", e, j(i) ? "ShallowReactive" : "Reactive"],
|
|
1881
1881
|
"<",
|
|
1882
1882
|
c(i),
|
|
1883
1883
|
`>${J(i) ? " (readonly)" : ""}`
|
|
1884
1884
|
] : J(i) ? [
|
|
1885
1885
|
"div",
|
|
1886
1886
|
{},
|
|
1887
|
-
["span", e,
|
|
1887
|
+
["span", e, j(i) ? "ShallowReadonly" : "Readonly"],
|
|
1888
1888
|
"<",
|
|
1889
1889
|
c(i),
|
|
1890
1890
|
">"
|
|
@@ -1903,12 +1903,12 @@ function Zs() {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
};
|
|
1905
1905
|
function r(i) {
|
|
1906
|
-
const
|
|
1907
|
-
i.type.props && i.props &&
|
|
1908
|
-
const p =
|
|
1909
|
-
p &&
|
|
1910
|
-
const _ =
|
|
1911
|
-
return _ &&
|
|
1906
|
+
const l = [];
|
|
1907
|
+
i.type.props && i.props && l.push(a("props", N(i.props))), i.setupState !== H && l.push(a("setup", i.setupState)), i.data !== H && l.push(a("data", N(i.data)));
|
|
1908
|
+
const p = u(i, "computed");
|
|
1909
|
+
p && l.push(a("computed", p));
|
|
1910
|
+
const _ = u(i, "inject");
|
|
1911
|
+
return _ && l.push(a("injected", _)), l.push([
|
|
1912
1912
|
"div",
|
|
1913
1913
|
{},
|
|
1914
1914
|
[
|
|
@@ -1919,10 +1919,10 @@ function Zs() {
|
|
|
1919
1919
|
"$ (internal): "
|
|
1920
1920
|
],
|
|
1921
1921
|
["object", { object: i }]
|
|
1922
|
-
]),
|
|
1922
|
+
]), l;
|
|
1923
1923
|
}
|
|
1924
|
-
function a(i,
|
|
1925
|
-
return
|
|
1924
|
+
function a(i, l) {
|
|
1925
|
+
return l = F({}, l), Object.keys(l).length ? [
|
|
1926
1926
|
"div",
|
|
1927
1927
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1928
1928
|
[
|
|
@@ -1937,34 +1937,34 @@ function Zs() {
|
|
|
1937
1937
|
{
|
|
1938
1938
|
style: "padding-left:1.25em"
|
|
1939
1939
|
},
|
|
1940
|
-
...Object.keys(
|
|
1940
|
+
...Object.keys(l).map((p) => [
|
|
1941
1941
|
"div",
|
|
1942
1942
|
{},
|
|
1943
1943
|
["span", o, p + ": "],
|
|
1944
|
-
c(
|
|
1944
|
+
c(l[p], !1)
|
|
1945
1945
|
])
|
|
1946
1946
|
]
|
|
1947
1947
|
] : ["span", {}];
|
|
1948
1948
|
}
|
|
1949
|
-
function c(i,
|
|
1950
|
-
return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] :
|
|
1949
|
+
function c(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] : T(i) ? ["object", { object: l ? N(i) : i }] : ["span", n, String(i)];
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function u(i, l) {
|
|
1953
1953
|
const p = i.type;
|
|
1954
1954
|
if (x(p))
|
|
1955
1955
|
return;
|
|
1956
1956
|
const _ = {};
|
|
1957
|
-
for (const
|
|
1958
|
-
|
|
1957
|
+
for (const h in i.ctx)
|
|
1958
|
+
f(p, h, l) && (_[h] = i.ctx[h]);
|
|
1959
1959
|
return _;
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1961
|
+
function f(i, l, p) {
|
|
1962
1962
|
const _ = i[p];
|
|
1963
|
-
if (E(_) && _.includes(
|
|
1963
|
+
if (E(_) && _.includes(l) || T(_) && l in _ || i.extends && f(i.extends, l, p) || i.mixins && i.mixins.some((h) => f(h, l, p)))
|
|
1964
1964
|
return !0;
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1967
|
-
return
|
|
1966
|
+
function d(i) {
|
|
1967
|
+
return j(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
|
|
1968
1968
|
}
|
|
1969
1969
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
1970
1970
|
}
|
|
@@ -1976,103 +1976,103 @@ process.env.NODE_ENV;
|
|
|
1976
1976
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1977
1977
|
* @license MIT
|
|
1978
1978
|
**/
|
|
1979
|
-
function
|
|
1980
|
-
|
|
1979
|
+
function Xs() {
|
|
1980
|
+
Qs();
|
|
1981
1981
|
}
|
|
1982
|
-
process.env.NODE_ENV !== "production" &&
|
|
1983
|
-
const
|
|
1984
|
-
let
|
|
1982
|
+
process.env.NODE_ENV !== "production" && Xs();
|
|
1983
|
+
const er = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1984
|
+
let tr = (e = 21) => {
|
|
1985
1985
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
1986
1986
|
for (; e--; )
|
|
1987
|
-
t +=
|
|
1987
|
+
t += er[n[e] & 63];
|
|
1988
1988
|
return t;
|
|
1989
1989
|
};
|
|
1990
|
-
function
|
|
1991
|
-
const o =
|
|
1990
|
+
function nr(e, t = !0, n = !1) {
|
|
1991
|
+
const o = Ge();
|
|
1992
1992
|
let s;
|
|
1993
|
-
const r =
|
|
1993
|
+
const r = Ge(!1);
|
|
1994
1994
|
let a = () => {
|
|
1995
1995
|
};
|
|
1996
1996
|
const c = new Proxy(e, {
|
|
1997
|
-
apply: function(
|
|
1998
|
-
let p =
|
|
1997
|
+
apply: function(d, i, l) {
|
|
1998
|
+
let p = d(...l);
|
|
1999
1999
|
if (p instanceof Error) {
|
|
2000
2000
|
if (o.value = p, s = p, t)
|
|
2001
2001
|
throw a(), p;
|
|
2002
2002
|
} else
|
|
2003
2003
|
r.value = !0, o.value = void 0, s = !0, a();
|
|
2004
2004
|
}
|
|
2005
|
-
}),
|
|
2006
|
-
},
|
|
2007
|
-
(
|
|
2008
|
-
o.value =
|
|
2005
|
+
}), u = () => {
|
|
2006
|
+
}, f = new Proxy(
|
|
2007
|
+
(d) => {
|
|
2008
|
+
o.value = d;
|
|
2009
2009
|
},
|
|
2010
2010
|
{
|
|
2011
|
-
apply: function(
|
|
2012
|
-
|
|
2011
|
+
apply: function(d, i, l) {
|
|
2012
|
+
d(...l), u(...l);
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
2015
|
);
|
|
2016
2016
|
return {
|
|
2017
|
-
promise: new Promise((
|
|
2017
|
+
promise: new Promise((d, i) => {
|
|
2018
2018
|
if (t && s instanceof Error) {
|
|
2019
2019
|
i(s);
|
|
2020
2020
|
return;
|
|
2021
2021
|
} else if (s === !0) {
|
|
2022
|
-
|
|
2022
|
+
d();
|
|
2023
2023
|
return;
|
|
2024
2024
|
}
|
|
2025
|
-
let
|
|
2026
|
-
n && (
|
|
2025
|
+
let l;
|
|
2026
|
+
n && (l = setTimeout(() => {
|
|
2027
2027
|
const p = new Error("timeout!");
|
|
2028
2028
|
o.value = p, t && i(p);
|
|
2029
2029
|
}, n)), a = () => {
|
|
2030
|
-
|
|
2030
|
+
l && (clearTimeout(l), l = void 0), d();
|
|
2031
2031
|
};
|
|
2032
2032
|
}),
|
|
2033
2033
|
callback: c,
|
|
2034
|
-
onError:
|
|
2035
|
-
resolved:
|
|
2036
|
-
error:
|
|
2034
|
+
onError: f,
|
|
2035
|
+
resolved: Tt(() => r.value),
|
|
2036
|
+
error: Tt(() => o.value)
|
|
2037
2037
|
};
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2040
|
-
return
|
|
2039
|
+
function jt() {
|
|
2040
|
+
return tr();
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function or() {
|
|
2043
2043
|
const e = {}, t = {}, n = /* @__PURE__ */ new WeakMap(), o = {};
|
|
2044
2044
|
return Object.freeze({
|
|
2045
2045
|
registerAgg(s) {
|
|
2046
2046
|
if (s.isInitialized.value)
|
|
2047
2047
|
throw new Error("Agg must register before initialized");
|
|
2048
|
-
if (o[s.
|
|
2048
|
+
if (o[s.__id])
|
|
2049
2049
|
throw new Error("Agg already registered");
|
|
2050
2050
|
s.type === "MultiInstance" && s.api.events.destroyed.watchPublish(() => {
|
|
2051
|
-
delete o[s.
|
|
2052
|
-
}), o[s.
|
|
2051
|
+
delete o[s.__id];
|
|
2052
|
+
}), o[s.__id] = s;
|
|
2053
2053
|
const r = [];
|
|
2054
2054
|
for (const a of Object.values(e))
|
|
2055
|
-
a.mount({ api: s.api,
|
|
2055
|
+
a.mount({ api: s.api, __aggId: s.__id, isInitialized: s.isInitialized });
|
|
2056
2056
|
for (const a of Object.values(t))
|
|
2057
|
-
a.mount({ api: s.api,
|
|
2057
|
+
a.mount({ api: s.api, __aggId: s.__id }), r.push(a.__id);
|
|
2058
2058
|
n.set(s, r);
|
|
2059
2059
|
},
|
|
2060
2060
|
createSetupPlugin(s) {
|
|
2061
2061
|
let r;
|
|
2062
2062
|
return s instanceof Function ? r = s() : r = s, Object.freeze({
|
|
2063
|
-
|
|
2063
|
+
__id: jt(),
|
|
2064
2064
|
type: "Setup",
|
|
2065
2065
|
mount(a) {
|
|
2066
2066
|
if (a.isInitialized.value)
|
|
2067
2067
|
throw new Error("Can not setup after initialized");
|
|
2068
|
-
r.mount({ api: a.api,
|
|
2068
|
+
r.mount({ api: a.api, __aggId: a.__aggId });
|
|
2069
2069
|
}
|
|
2070
2070
|
});
|
|
2071
2071
|
},
|
|
2072
2072
|
createHotSwapPlugin(s) {
|
|
2073
2073
|
let r;
|
|
2074
2074
|
return s instanceof Function ? r = s() : r = s, Object.freeze({
|
|
2075
|
-
|
|
2075
|
+
__id: jt(),
|
|
2076
2076
|
type: "HotSwap",
|
|
2077
2077
|
mount: r.mount,
|
|
2078
2078
|
unmount: r.unmount
|
|
@@ -2080,19 +2080,19 @@ function nr() {
|
|
|
2080
2080
|
},
|
|
2081
2081
|
registerPlugin(s) {
|
|
2082
2082
|
if (s.type === "Setup") {
|
|
2083
|
-
if (e[s.
|
|
2083
|
+
if (e[s.__id])
|
|
2084
2084
|
throw new Error("Plugin already registered");
|
|
2085
|
-
e[s.
|
|
2085
|
+
e[s.__id] = s;
|
|
2086
2086
|
for (const r in o)
|
|
2087
2087
|
s.mount({
|
|
2088
2088
|
api: o[r].api,
|
|
2089
|
-
|
|
2089
|
+
__aggId: o[r].__id,
|
|
2090
2090
|
isInitialized: o[r].isInitialized
|
|
2091
2091
|
});
|
|
2092
2092
|
} else if (s.type === "HotSwap") {
|
|
2093
|
-
t[s.
|
|
2093
|
+
t[s.__id] = s;
|
|
2094
2094
|
for (const r in o)
|
|
2095
|
-
n.has(o[r]) && !n.get(o[r]).includes(s.
|
|
2095
|
+
n.has(o[r]) && !n.get(o[r]).includes(s.__id) && (s.mount({ api: o[r].api, __aggId: o[r].__id }), n.get(o[r]).push(s.__id));
|
|
2096
2096
|
} else
|
|
2097
2097
|
isNever(s);
|
|
2098
2098
|
},
|
|
@@ -2101,29 +2101,29 @@ function nr() {
|
|
|
2101
2101
|
throw new Error("Can not unregister setup plugin");
|
|
2102
2102
|
if (s.type === "HotSwap") {
|
|
2103
2103
|
for (const r in o)
|
|
2104
|
-
n.has(o[r]) && n.get(o[r]).includes(s.
|
|
2105
|
-
delete t[s.
|
|
2104
|
+
n.has(o[r]) && n.get(o[r]).includes(s.__id) && s.unmount({ api: o[r].api, __aggId: o[r].__id });
|
|
2105
|
+
delete t[s.__id];
|
|
2106
2106
|
} else
|
|
2107
2107
|
isNever(s);
|
|
2108
2108
|
}
|
|
2109
2109
|
});
|
|
2110
2110
|
}
|
|
2111
|
-
function or(e) {
|
|
2112
|
-
return nr();
|
|
2113
|
-
}
|
|
2114
2111
|
function sr(e) {
|
|
2115
|
-
|
|
2112
|
+
return or();
|
|
2113
|
+
}
|
|
2114
|
+
function rr(e) {
|
|
2115
|
+
const t = ir(e);
|
|
2116
2116
|
return X({
|
|
2117
2117
|
states: t.states,
|
|
2118
2118
|
commands: t.commands,
|
|
2119
2119
|
events: t.events
|
|
2120
2120
|
});
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function ir(e) {
|
|
2123
2123
|
const t = e.states;
|
|
2124
2124
|
for (const a of Object.keys(e.states))
|
|
2125
|
-
t[a] =
|
|
2126
|
-
const n = X(e.states), o =
|
|
2125
|
+
t[a] = Ue(t[a]);
|
|
2126
|
+
const n = X(e.states), o = Ue(e.commands), s = {}, r = e.events;
|
|
2127
2127
|
for (const a in e.events)
|
|
2128
2128
|
s[a] = r[a].api;
|
|
2129
2129
|
return X({
|
|
@@ -2133,13 +2133,13 @@ function rr(e) {
|
|
|
2133
2133
|
destroy: e.destroy
|
|
2134
2134
|
});
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2136
|
+
function ar(e) {
|
|
2137
2137
|
const {
|
|
2138
2138
|
callback: t,
|
|
2139
2139
|
onError: n,
|
|
2140
2140
|
promise: o,
|
|
2141
2141
|
resolved: s
|
|
2142
|
-
} =
|
|
2142
|
+
} = nr(() => {
|
|
2143
2143
|
}, !1, 5e3);
|
|
2144
2144
|
function r(i) {
|
|
2145
2145
|
if (s.value === !0)
|
|
@@ -2151,7 +2151,7 @@ function ir(e) {
|
|
|
2151
2151
|
Promise.resolve().then(i);
|
|
2152
2152
|
},
|
|
2153
2153
|
onBeforeInitialize: r,
|
|
2154
|
-
isInitialized:
|
|
2154
|
+
isInitialized: Tt(() => s.value),
|
|
2155
2155
|
untilInitialized: o
|
|
2156
2156
|
});
|
|
2157
2157
|
setTimeout(
|
|
@@ -2161,14 +2161,14 @@ function ir(e) {
|
|
|
2161
2161
|
n(i);
|
|
2162
2162
|
})
|
|
2163
2163
|
);
|
|
2164
|
-
const
|
|
2164
|
+
const u = c.states || {}, f = c.commands || {}, d = c.events || {};
|
|
2165
2165
|
return {
|
|
2166
|
-
|
|
2166
|
+
__id: jt(),
|
|
2167
2167
|
type: "Singleton",
|
|
2168
|
-
api:
|
|
2169
|
-
states:
|
|
2170
|
-
commands:
|
|
2171
|
-
events:
|
|
2168
|
+
api: rr({
|
|
2169
|
+
states: u,
|
|
2170
|
+
commands: f,
|
|
2171
|
+
events: d,
|
|
2172
2172
|
destroy: () => {
|
|
2173
2173
|
}
|
|
2174
2174
|
}),
|
|
@@ -2181,11 +2181,11 @@ Stack : ${i.stack || "unkown"}`);
|
|
|
2181
2181
|
}
|
|
2182
2182
|
};
|
|
2183
2183
|
}
|
|
2184
|
-
let
|
|
2185
|
-
function
|
|
2186
|
-
return
|
|
2187
|
-
const t =
|
|
2188
|
-
let o = () => [], s = () => [], r = () => [], a = () => [], c = () => [],
|
|
2184
|
+
let Me;
|
|
2185
|
+
function cr(e) {
|
|
2186
|
+
return ar(() => {
|
|
2187
|
+
const t = Ge(e), n = Ge({});
|
|
2188
|
+
let o = () => [], s = () => [], r = () => [], a = () => [], c = () => [], u = () => [], f = () => [];
|
|
2189
2189
|
return {
|
|
2190
2190
|
states: {
|
|
2191
2191
|
designer: t,
|
|
@@ -2193,98 +2193,98 @@ function ar(e) {
|
|
|
2193
2193
|
},
|
|
2194
2194
|
commands: {
|
|
2195
2195
|
genCodeFiles() {
|
|
2196
|
-
return
|
|
2196
|
+
return f();
|
|
2197
2197
|
},
|
|
2198
2198
|
clearCaches() {
|
|
2199
2199
|
},
|
|
2200
|
-
setContext(
|
|
2201
|
-
n.value =
|
|
2200
|
+
setContext(d) {
|
|
2201
|
+
n.value = d;
|
|
2202
2202
|
},
|
|
2203
|
-
setDomainDesigner(
|
|
2204
|
-
this.clearCaches(), t.value =
|
|
2203
|
+
setDomainDesigner(d) {
|
|
2204
|
+
this.clearCaches(), t.value = d;
|
|
2205
2205
|
},
|
|
2206
|
-
_genInfoCode(...
|
|
2207
|
-
return o(...
|
|
2206
|
+
_genInfoCode(...d) {
|
|
2207
|
+
return o(...d);
|
|
2208
2208
|
},
|
|
2209
|
-
_setInfoCodeProvider(
|
|
2210
|
-
o =
|
|
2209
|
+
_setInfoCodeProvider(d) {
|
|
2210
|
+
o = d;
|
|
2211
2211
|
},
|
|
2212
|
-
_genCommandCode(...
|
|
2213
|
-
return s(...
|
|
2212
|
+
_genCommandCode(...d) {
|
|
2213
|
+
return s(...d);
|
|
2214
2214
|
},
|
|
2215
|
-
_setCommandCodeProvider(
|
|
2216
|
-
s =
|
|
2215
|
+
_setCommandCodeProvider(d) {
|
|
2216
|
+
s = d;
|
|
2217
2217
|
},
|
|
2218
|
-
_genFacadeCommandCode(...
|
|
2219
|
-
return r(...
|
|
2218
|
+
_genFacadeCommandCode(...d) {
|
|
2219
|
+
return r(...d);
|
|
2220
2220
|
},
|
|
2221
|
-
_setFacadeCommandCodeProvider(
|
|
2222
|
-
r =
|
|
2221
|
+
_setFacadeCommandCodeProvider(d) {
|
|
2222
|
+
r = d;
|
|
2223
2223
|
},
|
|
2224
|
-
_genAggCode(...
|
|
2225
|
-
return a(...
|
|
2224
|
+
_genAggCode(...d) {
|
|
2225
|
+
return a(...d);
|
|
2226
2226
|
},
|
|
2227
|
-
_setAggCodeProvider(
|
|
2228
|
-
a =
|
|
2227
|
+
_setAggCodeProvider(d) {
|
|
2228
|
+
a = d;
|
|
2229
2229
|
},
|
|
2230
|
-
_genEventCode(...
|
|
2231
|
-
return c(...
|
|
2230
|
+
_genEventCode(...d) {
|
|
2231
|
+
return c(...d);
|
|
2232
2232
|
},
|
|
2233
|
-
_setEventCodeProvider(
|
|
2234
|
-
c =
|
|
2233
|
+
_setEventCodeProvider(d) {
|
|
2234
|
+
c = d;
|
|
2235
2235
|
},
|
|
2236
|
-
_genReadModelCode(...
|
|
2237
|
-
return
|
|
2236
|
+
_genReadModelCode(...d) {
|
|
2237
|
+
return u(...d);
|
|
2238
2238
|
},
|
|
2239
|
-
_setReadModelCodeProvider(
|
|
2240
|
-
|
|
2239
|
+
_setReadModelCodeProvider(d) {
|
|
2240
|
+
u = d;
|
|
2241
2241
|
},
|
|
2242
|
-
_setCodeFileProvider(
|
|
2243
|
-
|
|
2242
|
+
_setCodeFileProvider(d) {
|
|
2243
|
+
f = d;
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
2246
|
};
|
|
2247
2247
|
});
|
|
2248
2248
|
}
|
|
2249
|
-
const
|
|
2250
|
-
function
|
|
2251
|
-
if (!
|
|
2249
|
+
const Te = sr();
|
|
2250
|
+
function ni(e) {
|
|
2251
|
+
if (!Me) {
|
|
2252
2252
|
if (!e)
|
|
2253
2253
|
throw new Error("designer is required");
|
|
2254
|
-
|
|
2254
|
+
Me = cr(e), Te.registerAgg(Me);
|
|
2255
2255
|
}
|
|
2256
|
-
return
|
|
2256
|
+
return Me.api;
|
|
2257
2257
|
}
|
|
2258
|
-
function
|
|
2258
|
+
function pt(e) {
|
|
2259
2259
|
return e && e._attributes && e._attributes.rule === "Info";
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2261
|
+
function ur(e) {
|
|
2262
2262
|
return e && e._attributes && e._attributes.rule === "Agg";
|
|
2263
2263
|
}
|
|
2264
2264
|
function lr(e) {
|
|
2265
2265
|
return e && e._attributes && e._attributes.rule === "Command";
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function pr(e) {
|
|
2268
2268
|
return e && e._attributes && e._attributes.rule === "FacadeCommand";
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2270
|
+
function dr(e) {
|
|
2271
2271
|
return e && e._attributes && e._attributes.rule === "Event";
|
|
2272
2272
|
}
|
|
2273
2273
|
function fr(e) {
|
|
2274
2274
|
return e && e._attributes && e._attributes.rule === "ReadModel";
|
|
2275
2275
|
}
|
|
2276
|
-
const
|
|
2276
|
+
const Ft = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
2277
2277
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
2278
|
-
const
|
|
2279
|
-
},
|
|
2280
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97),
|
|
2281
|
-
let
|
|
2282
|
-
const
|
|
2283
|
-
function
|
|
2284
|
-
if (
|
|
2278
|
+
const mr = () => {
|
|
2279
|
+
}, hr = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
2280
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), dt = Object.assign, U = Array.isArray, le = (e) => typeof e == "function", te = (e) => typeof e == "string", gr = (e) => typeof e == "symbol", ie = (e) => e !== null && typeof e == "object";
|
|
2281
|
+
let hn;
|
|
2282
|
+
const ft = () => hn || (hn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
2283
|
+
function en(e) {
|
|
2284
|
+
if (U(e)) {
|
|
2285
2285
|
const t = {};
|
|
2286
2286
|
for (let n = 0; n < e.length; n++) {
|
|
2287
|
-
const o = e[n], s = te(o) ?
|
|
2287
|
+
const o = e[n], s = te(o) ? $r(o) : en(o);
|
|
2288
2288
|
if (s)
|
|
2289
2289
|
for (const r in s)
|
|
2290
2290
|
t[r] = s[r];
|
|
@@ -2293,23 +2293,23 @@ function Qt(e) {
|
|
|
2293
2293
|
} else if (te(e) || ie(e))
|
|
2294
2294
|
return e;
|
|
2295
2295
|
}
|
|
2296
|
-
const
|
|
2297
|
-
function
|
|
2296
|
+
const _r = /;(?![^(]*\))/g, vr = /:([^]+)/, Cr = /\/\*[^]*?\*\//g;
|
|
2297
|
+
function $r(e) {
|
|
2298
2298
|
const t = {};
|
|
2299
|
-
return e.replace(
|
|
2299
|
+
return e.replace(Cr, "").split(_r).forEach((n) => {
|
|
2300
2300
|
if (n) {
|
|
2301
|
-
const o = n.split(
|
|
2301
|
+
const o = n.split(vr);
|
|
2302
2302
|
o.length > 1 && (t[o[0].trim()] = o[1].trim());
|
|
2303
2303
|
}
|
|
2304
2304
|
}), t;
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2306
|
+
function tn(e) {
|
|
2307
2307
|
let t = "";
|
|
2308
2308
|
if (te(e))
|
|
2309
2309
|
t = e;
|
|
2310
|
-
else if (
|
|
2310
|
+
else if (U(e))
|
|
2311
2311
|
for (let n = 0; n < e.length; n++) {
|
|
2312
|
-
const o =
|
|
2312
|
+
const o = tn(e[n]);
|
|
2313
2313
|
o && (t += o + " ");
|
|
2314
2314
|
}
|
|
2315
2315
|
else if (ie(e))
|
|
@@ -2327,25 +2327,25 @@ Symbol(
|
|
|
2327
2327
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
2328
2328
|
);
|
|
2329
2329
|
new Set(
|
|
2330
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
2330
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(gr)
|
|
2331
2331
|
);
|
|
2332
|
-
function
|
|
2333
|
-
return
|
|
2332
|
+
function Yn(e) {
|
|
2333
|
+
return Rt(e) ? Yn(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function Rt(e) {
|
|
2336
2336
|
return !!(e && e.__v_isReadonly);
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function Nt(e) {
|
|
2339
2339
|
return !!(e && e.__v_isShallow);
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2341
|
+
function kt(e) {
|
|
2342
2342
|
return e ? !!e.__v_raw : !1;
|
|
2343
2343
|
}
|
|
2344
2344
|
function ae(e) {
|
|
2345
2345
|
const t = e && e.__v_raw;
|
|
2346
2346
|
return t ? ae(t) : e;
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function nn(e) {
|
|
2349
2349
|
return e ? e.__v_isRef === !0 : !1;
|
|
2350
2350
|
}
|
|
2351
2351
|
/**
|
|
@@ -2360,13 +2360,13 @@ function br(e) {
|
|
|
2360
2360
|
function Nr() {
|
|
2361
2361
|
ce.pop();
|
|
2362
2362
|
}
|
|
2363
|
-
let
|
|
2364
|
-
function
|
|
2365
|
-
if (
|
|
2366
|
-
|
|
2363
|
+
let wt = !1;
|
|
2364
|
+
function Ae(e, ...t) {
|
|
2365
|
+
if (wt) return;
|
|
2366
|
+
wt = !0;
|
|
2367
2367
|
const n = ce.length ? ce[ce.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = wr();
|
|
2368
2368
|
if (o)
|
|
2369
|
-
|
|
2369
|
+
on(
|
|
2370
2370
|
o,
|
|
2371
2371
|
n,
|
|
2372
2372
|
11,
|
|
@@ -2389,7 +2389,7 @@ function De(e, ...t) {
|
|
|
2389
2389
|
s.length && r.push(`
|
|
2390
2390
|
`, ...Er(s));
|
|
2391
2391
|
}
|
|
2392
|
-
|
|
2392
|
+
wt = !1;
|
|
2393
2393
|
}
|
|
2394
2394
|
function wr() {
|
|
2395
2395
|
let e = ce[ce.length - 1];
|
|
@@ -2420,18 +2420,18 @@ function yr({ vnode: e, recurseCount: t }) {
|
|
|
2420
2420
|
e.type,
|
|
2421
2421
|
o
|
|
2422
2422
|
)}`, r = ">" + n;
|
|
2423
|
-
return e.props ? [s,
|
|
2423
|
+
return e.props ? [s, ...Sr(e.props), r] : [s + r];
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2425
|
+
function Sr(e) {
|
|
2426
2426
|
const t = [], n = Object.keys(e);
|
|
2427
2427
|
return n.slice(0, 3).forEach((o) => {
|
|
2428
|
-
t.push(...
|
|
2428
|
+
t.push(...Zn(o, e[o]));
|
|
2429
2429
|
}), n.length > 3 && t.push(" ..."), t;
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2432
|
-
return te(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] :
|
|
2431
|
+
function Zn(e, t, n) {
|
|
2432
|
+
return te(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : nn(t) ? (t = Zn(e, ae(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : le(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = ae(t), n ? t : [`${e}=`, t]);
|
|
2433
2433
|
}
|
|
2434
|
-
const
|
|
2434
|
+
const Qn = {
|
|
2435
2435
|
sp: "serverPrefetch hook",
|
|
2436
2436
|
bc: "beforeCreate hook",
|
|
2437
2437
|
c: "created hook",
|
|
@@ -2464,101 +2464,101 @@ const Zn = {
|
|
|
2464
2464
|
15: "component update",
|
|
2465
2465
|
16: "app unmount cleanup function"
|
|
2466
2466
|
};
|
|
2467
|
-
function
|
|
2467
|
+
function on(e, t, n, o) {
|
|
2468
2468
|
try {
|
|
2469
2469
|
return o ? e(...o) : e();
|
|
2470
2470
|
} catch (s) {
|
|
2471
|
-
|
|
2471
|
+
Xn(s, t, n);
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
|
-
function
|
|
2475
|
-
const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: a } = t && t.appContext.config ||
|
|
2474
|
+
function Xn(e, t, n, o = !0) {
|
|
2475
|
+
const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: a } = t && t.appContext.config || Ft;
|
|
2476
2476
|
if (t) {
|
|
2477
2477
|
let c = t.parent;
|
|
2478
|
-
const
|
|
2478
|
+
const u = t.proxy, f = process.env.NODE_ENV !== "production" ? Qn[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
2479
2479
|
for (; c; ) {
|
|
2480
|
-
const
|
|
2481
|
-
if (
|
|
2482
|
-
for (let i = 0; i <
|
|
2483
|
-
if (
|
|
2480
|
+
const d = c.ec;
|
|
2481
|
+
if (d) {
|
|
2482
|
+
for (let i = 0; i < d.length; i++)
|
|
2483
|
+
if (d[i](e, u, f) === !1)
|
|
2484
2484
|
return;
|
|
2485
2485
|
}
|
|
2486
2486
|
c = c.parent;
|
|
2487
2487
|
}
|
|
2488
2488
|
if (r) {
|
|
2489
|
-
|
|
2489
|
+
on(r, null, 10, [
|
|
2490
2490
|
e,
|
|
2491
|
-
|
|
2492
|
-
|
|
2491
|
+
u,
|
|
2492
|
+
f
|
|
2493
2493
|
]);
|
|
2494
2494
|
return;
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
2497
|
-
|
|
2497
|
+
Or(e, n, s, o, a);
|
|
2498
2498
|
}
|
|
2499
|
-
function
|
|
2499
|
+
function Or(e, t, n, o = !0, s = !1) {
|
|
2500
2500
|
if (process.env.NODE_ENV !== "production") {
|
|
2501
|
-
const r =
|
|
2502
|
-
if (n && br(n),
|
|
2501
|
+
const r = Qn[t];
|
|
2502
|
+
if (n && br(n), Ae(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Nr(), o)
|
|
2503
2503
|
throw e;
|
|
2504
2504
|
} else if (s)
|
|
2505
2505
|
throw e;
|
|
2506
2506
|
}
|
|
2507
2507
|
const k = [];
|
|
2508
|
-
let
|
|
2508
|
+
let B = -1;
|
|
2509
2509
|
const be = [];
|
|
2510
|
-
let Y = null,
|
|
2511
|
-
const
|
|
2512
|
-
let
|
|
2510
|
+
let Y = null, he = 0;
|
|
2511
|
+
const Ir = /* @__PURE__ */ Promise.resolve();
|
|
2512
|
+
let Ht = null;
|
|
2513
2513
|
const xr = 100;
|
|
2514
|
-
function
|
|
2515
|
-
let t =
|
|
2514
|
+
function Ar(e) {
|
|
2515
|
+
let t = B + 1, n = k.length;
|
|
2516
2516
|
for (; t < n; ) {
|
|
2517
|
-
const o = t + n >>> 1, s = k[o], r =
|
|
2517
|
+
const o = t + n >>> 1, s = k[o], r = De(s);
|
|
2518
2518
|
r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
|
|
2519
2519
|
}
|
|
2520
2520
|
return t;
|
|
2521
2521
|
}
|
|
2522
|
-
function
|
|
2522
|
+
function Dr(e) {
|
|
2523
2523
|
if (!(e.flags & 1)) {
|
|
2524
|
-
const t =
|
|
2524
|
+
const t = De(e), n = k[k.length - 1];
|
|
2525
2525
|
!n || // fast path when the job id is larger than the tail
|
|
2526
|
-
!(e.flags & 2) && t >=
|
|
2526
|
+
!(e.flags & 2) && t >= De(n) ? k.push(e) : k.splice(Ar(t), 0, e), e.flags |= 1, eo();
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
|
-
function
|
|
2530
|
-
|
|
2529
|
+
function eo() {
|
|
2530
|
+
Ht || (Ht = Ir.then(to));
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2533
|
-
|
|
2532
|
+
function Pr(e) {
|
|
2533
|
+
U(e) ? be.push(...e) : Y && e.id === -1 ? Y.splice(he + 1, 0, e) : e.flags & 1 || (be.push(e), e.flags |= 1), eo();
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function Vr(e) {
|
|
2536
2536
|
if (be.length) {
|
|
2537
2537
|
const t = [...new Set(be)].sort(
|
|
2538
|
-
(n, o) =>
|
|
2538
|
+
(n, o) => De(n) - De(o)
|
|
2539
2539
|
);
|
|
2540
2540
|
if (be.length = 0, Y) {
|
|
2541
2541
|
Y.push(...t);
|
|
2542
2542
|
return;
|
|
2543
2543
|
}
|
|
2544
|
-
for (Y = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()),
|
|
2545
|
-
const n = Y[
|
|
2546
|
-
process.env.NODE_ENV !== "production" &&
|
|
2544
|
+
for (Y = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), he = 0; he < Y.length; he++) {
|
|
2545
|
+
const n = Y[he];
|
|
2546
|
+
process.env.NODE_ENV !== "production" && no(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
2547
2547
|
}
|
|
2548
|
-
Y = null,
|
|
2548
|
+
Y = null, he = 0;
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
|
-
const
|
|
2552
|
-
function
|
|
2551
|
+
const De = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
2552
|
+
function to(e) {
|
|
2553
2553
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
2554
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
2554
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => no(e, n) : mr;
|
|
2555
2555
|
try {
|
|
2556
|
-
for (
|
|
2557
|
-
const n = k[
|
|
2556
|
+
for (B = 0; B < k.length; B++) {
|
|
2557
|
+
const n = k[B];
|
|
2558
2558
|
if (n && !(n.flags & 8)) {
|
|
2559
2559
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
2560
2560
|
continue;
|
|
2561
|
-
n.flags & 4 && (n.flags &= -2),
|
|
2561
|
+
n.flags & 4 && (n.flags &= -2), on(
|
|
2562
2562
|
n,
|
|
2563
2563
|
n.i,
|
|
2564
2564
|
n.i ? 15 : 14
|
|
@@ -2566,18 +2566,18 @@ function eo(e) {
|
|
|
2566
2566
|
}
|
|
2567
2567
|
}
|
|
2568
2568
|
} finally {
|
|
2569
|
-
for (;
|
|
2570
|
-
const n = k[
|
|
2569
|
+
for (; B < k.length; B++) {
|
|
2570
|
+
const n = k[B];
|
|
2571
2571
|
n && (n.flags &= -2);
|
|
2572
2572
|
}
|
|
2573
|
-
|
|
2573
|
+
B = -1, k.length = 0, Vr(e), Ht = null, (k.length || be.length) && to(e);
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
2576
|
-
function
|
|
2576
|
+
function no(e, t) {
|
|
2577
2577
|
const n = e.get(t) || 0;
|
|
2578
2578
|
if (n > xr) {
|
|
2579
|
-
const o = t.i, s = o &&
|
|
2580
|
-
return
|
|
2579
|
+
const o = t.i, s = o && uo(o.type);
|
|
2580
|
+
return Xn(
|
|
2581
2581
|
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. 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.`,
|
|
2582
2582
|
null,
|
|
2583
2583
|
10
|
|
@@ -2585,50 +2585,50 @@ function to(e, t) {
|
|
|
2585
2585
|
}
|
|
2586
2586
|
return e.set(t, n + 1), !1;
|
|
2587
2587
|
}
|
|
2588
|
-
const
|
|
2589
|
-
process.env.NODE_ENV !== "production" && (
|
|
2590
|
-
createRecord:
|
|
2591
|
-
rerender:
|
|
2592
|
-
reload:
|
|
2588
|
+
const Et = /* @__PURE__ */ new Map();
|
|
2589
|
+
process.env.NODE_ENV !== "production" && (ft().__VUE_HMR_RUNTIME__ = {
|
|
2590
|
+
createRecord: yt(Tr),
|
|
2591
|
+
rerender: yt(jr),
|
|
2592
|
+
reload: yt(Fr)
|
|
2593
2593
|
});
|
|
2594
|
-
const
|
|
2595
|
-
function
|
|
2596
|
-
return
|
|
2597
|
-
initialDef:
|
|
2594
|
+
const Xe = /* @__PURE__ */ new Map();
|
|
2595
|
+
function Tr(e, t) {
|
|
2596
|
+
return Xe.has(e) ? !1 : (Xe.set(e, {
|
|
2597
|
+
initialDef: et(t),
|
|
2598
2598
|
instances: /* @__PURE__ */ new Set()
|
|
2599
2599
|
}), !0);
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2602
|
-
return
|
|
2601
|
+
function et(e) {
|
|
2602
|
+
return po(e) ? e.__vccOpts : e;
|
|
2603
2603
|
}
|
|
2604
|
-
function
|
|
2605
|
-
const n =
|
|
2604
|
+
function jr(e, t) {
|
|
2605
|
+
const n = Xe.get(e);
|
|
2606
2606
|
n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
|
|
2607
|
-
t && (o.render = t,
|
|
2607
|
+
t && (o.render = t, et(o.type).render = t), o.renderCache = [], o.update();
|
|
2608
2608
|
}));
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2611
|
-
const n =
|
|
2610
|
+
function Fr(e, t) {
|
|
2611
|
+
const n = Xe.get(e);
|
|
2612
2612
|
if (!n) return;
|
|
2613
|
-
t =
|
|
2613
|
+
t = et(t), gn(n.initialDef, t);
|
|
2614
2614
|
const o = [...n.instances];
|
|
2615
2615
|
for (let s = 0; s < o.length; s++) {
|
|
2616
|
-
const r = o[s], a =
|
|
2617
|
-
let c =
|
|
2618
|
-
c || (a !== n.initialDef &&
|
|
2616
|
+
const r = o[s], a = et(r.type);
|
|
2617
|
+
let c = Et.get(a);
|
|
2618
|
+
c || (a !== n.initialDef && gn(a, t), Et.set(a, c = /* @__PURE__ */ new Set())), c.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (c.add(r), r.ceReload(t.styles), c.delete(r)) : r.parent ? Dr(() => {
|
|
2619
2619
|
r.parent.update(), c.delete(r);
|
|
2620
2620
|
}) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" && window.location.reload(), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(a);
|
|
2621
2621
|
}
|
|
2622
|
-
|
|
2623
|
-
|
|
2622
|
+
Pr(() => {
|
|
2623
|
+
Et.clear();
|
|
2624
2624
|
});
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2627
|
-
|
|
2626
|
+
function gn(e, t) {
|
|
2627
|
+
dt(e, t);
|
|
2628
2628
|
for (const n in e)
|
|
2629
2629
|
n !== "__file" && !(n in t) && delete e[n];
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function yt(e) {
|
|
2632
2632
|
return (t, n) => {
|
|
2633
2633
|
try {
|
|
2634
2634
|
return e(t, n);
|
|
@@ -2636,36 +2636,36 @@ function Nt(e) {
|
|
|
2636
2636
|
}
|
|
2637
2637
|
};
|
|
2638
2638
|
}
|
|
2639
|
-
let
|
|
2640
|
-
const
|
|
2641
|
-
function
|
|
2642
|
-
e.shapeFlag & 6 && e.component ? (e.transition = t,
|
|
2639
|
+
let tt = null, Rr = null;
|
|
2640
|
+
const kr = (e) => e.__isTeleport;
|
|
2641
|
+
function oo(e, t) {
|
|
2642
|
+
e.shapeFlag & 6 && e.component ? (e.transition = t, oo(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
2643
2643
|
}
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
const
|
|
2644
|
+
ft().requestIdleCallback;
|
|
2645
|
+
ft().cancelIdleCallback;
|
|
2646
|
+
const Hr = Symbol.for("v-ndc");
|
|
2647
2647
|
process.env.NODE_ENV;
|
|
2648
|
-
const
|
|
2649
|
-
let
|
|
2648
|
+
const Mr = {}, so = (e) => Object.getPrototypeOf(e) === Mr, Lr = (e) => e.__isSuspense, ro = Symbol.for("v-fgt"), Kr = Symbol.for("v-txt"), Ur = Symbol.for("v-cmt");
|
|
2649
|
+
let _e = null;
|
|
2650
2650
|
function zr(e) {
|
|
2651
2651
|
return e ? e.__v_isVNode === !0 : !1;
|
|
2652
2652
|
}
|
|
2653
|
-
const
|
|
2653
|
+
const Gr = (...e) => ao(
|
|
2654
2654
|
...e
|
|
2655
|
-
),
|
|
2655
|
+
), io = ({ key: e }) => e ?? null, Ke = ({
|
|
2656
2656
|
ref: e,
|
|
2657
2657
|
ref_key: t,
|
|
2658
2658
|
ref_for: n
|
|
2659
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? te(e) ||
|
|
2660
|
-
function Br(e, t = null, n = null, o = 0, s = null, r = e ===
|
|
2661
|
-
const
|
|
2659
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? te(e) || nn(e) || le(e) ? { i: tt, r: e, k: t, f: !!n } : e : null);
|
|
2660
|
+
function Br(e, t = null, n = null, o = 0, s = null, r = e === ro ? 0 : 1, a = !1, c = !1) {
|
|
2661
|
+
const u = {
|
|
2662
2662
|
__v_isVNode: !0,
|
|
2663
2663
|
__v_skip: !0,
|
|
2664
2664
|
type: e,
|
|
2665
2665
|
props: t,
|
|
2666
|
-
key: t &&
|
|
2667
|
-
ref: t &&
|
|
2668
|
-
scopeId:
|
|
2666
|
+
key: t && io(t),
|
|
2667
|
+
ref: t && Ke(t),
|
|
2668
|
+
scopeId: Rr,
|
|
2669
2669
|
slotScopeIds: null,
|
|
2670
2670
|
children: n,
|
|
2671
2671
|
component: null,
|
|
@@ -2685,36 +2685,36 @@ function Br(e, t = null, n = null, o = 0, s = null, r = e === so ? 0 : 1, a = !1
|
|
|
2685
2685
|
dynamicProps: s,
|
|
2686
2686
|
dynamicChildren: null,
|
|
2687
2687
|
appContext: null,
|
|
2688
|
-
ctx:
|
|
2688
|
+
ctx: tt
|
|
2689
2689
|
};
|
|
2690
|
-
return c ? (
|
|
2690
|
+
return c ? (sn(u, n), r & 128 && e.normalize(u)) : n && (u.shapeFlag |= te(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && Ae("VNode created with invalid key (NaN). VNode type:", u.type), // avoid a block node from tracking itself
|
|
2691
2691
|
!a && // has current parent block
|
|
2692
|
-
|
|
2692
|
+
_e && // presence of a patch flag indicates this node needs patching on updates.
|
|
2693
2693
|
// component nodes also should always be patched, because even if the
|
|
2694
2694
|
// component doesn't need to update, it needs to persist the instance on to
|
|
2695
2695
|
// the next vnode so that it can be properly unmounted later.
|
|
2696
|
-
(
|
|
2696
|
+
(u.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
|
|
2697
2697
|
// vnode should not be considered dynamic due to handler caching.
|
|
2698
|
-
|
|
2698
|
+
u.patchFlag !== 32 && _e.push(u), u;
|
|
2699
2699
|
}
|
|
2700
|
-
const Wr = process.env.NODE_ENV !== "production" ?
|
|
2701
|
-
function
|
|
2702
|
-
if ((!e || e ===
|
|
2703
|
-
const c =
|
|
2700
|
+
const Wr = process.env.NODE_ENV !== "production" ? Gr : ao;
|
|
2701
|
+
function ao(e, t = null, n = null, o = 0, s = null, r = !1) {
|
|
2702
|
+
if ((!e || e === Hr) && (process.env.NODE_ENV !== "production" && !e && Ae(`Invalid vnode type when creating vnode: ${e}.`), e = Ur), zr(e)) {
|
|
2703
|
+
const c = nt(
|
|
2704
2704
|
e,
|
|
2705
2705
|
t,
|
|
2706
2706
|
!0
|
|
2707
2707
|
/* mergeRef: true */
|
|
2708
2708
|
);
|
|
2709
|
-
return n &&
|
|
2709
|
+
return n && sn(c, n), !r && _e && (c.shapeFlag & 6 ? _e[_e.indexOf(e)] = c : _e.push(c)), c.patchFlag = -2, c;
|
|
2710
2710
|
}
|
|
2711
|
-
if (
|
|
2712
|
-
t =
|
|
2713
|
-
let { class: c, style:
|
|
2714
|
-
c && !te(c) && (t.class =
|
|
2711
|
+
if (po(e) && (e = e.__vccOpts), t) {
|
|
2712
|
+
t = Jr(t);
|
|
2713
|
+
let { class: c, style: u } = t;
|
|
2714
|
+
c && !te(c) && (t.class = tn(c)), ie(u) && (kt(u) && !U(u) && (u = dt({}, u)), t.style = en(u));
|
|
2715
2715
|
}
|
|
2716
|
-
const a = te(e) ? 1 :
|
|
2717
|
-
return process.env.NODE_ENV !== "production" && a & 4 &&
|
|
2716
|
+
const a = te(e) ? 1 : Lr(e) ? 128 : kr(e) ? 64 : ie(e) ? 4 : le(e) ? 2 : 0;
|
|
2717
|
+
return process.env.NODE_ENV !== "production" && a & 4 && kt(e) && (e = ae(e), Ae(
|
|
2718
2718
|
"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`.",
|
|
2719
2719
|
`
|
|
2720
2720
|
Component that was made reactive: `,
|
|
@@ -2730,25 +2730,25 @@ Component that was made reactive: `,
|
|
|
2730
2730
|
!0
|
|
2731
2731
|
);
|
|
2732
2732
|
}
|
|
2733
|
-
function
|
|
2734
|
-
return e ?
|
|
2733
|
+
function Jr(e) {
|
|
2734
|
+
return e ? kt(e) || so(e) ? dt({}, e) : e : null;
|
|
2735
2735
|
}
|
|
2736
|
-
function
|
|
2737
|
-
const { props: s, ref: r, patchFlag: a, children: c, transition:
|
|
2736
|
+
function nt(e, t, n = !1, o = !1) {
|
|
2737
|
+
const { props: s, ref: r, patchFlag: a, children: c, transition: u } = e, f = t ? Yr(s || {}, t) : s, d = {
|
|
2738
2738
|
__v_isVNode: !0,
|
|
2739
2739
|
__v_skip: !0,
|
|
2740
2740
|
type: e.type,
|
|
2741
|
-
props:
|
|
2742
|
-
key:
|
|
2741
|
+
props: f,
|
|
2742
|
+
key: f && io(f),
|
|
2743
2743
|
ref: t && t.ref ? (
|
|
2744
2744
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
2745
2745
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
2746
2746
|
// the refs so the single vnode can be set on multiple refs
|
|
2747
|
-
n && r ?
|
|
2747
|
+
n && r ? U(r) ? r.concat(Ke(t)) : [r, Ke(t)] : Ke(t)
|
|
2748
2748
|
) : r,
|
|
2749
2749
|
scopeId: e.scopeId,
|
|
2750
2750
|
slotScopeIds: e.slotScopeIds,
|
|
2751
|
-
children: process.env.NODE_ENV !== "production" && a === -1 &&
|
|
2751
|
+
children: process.env.NODE_ENV !== "production" && a === -1 && U(c) ? c.map(co) : c,
|
|
2752
2752
|
target: e.target,
|
|
2753
2753
|
targetStart: e.targetStart,
|
|
2754
2754
|
targetAnchor: e.targetAnchor,
|
|
@@ -2758,72 +2758,72 @@ function et(e, t, n = !1, o = !1) {
|
|
|
2758
2758
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
2759
2759
|
// note: preserve flag for fragments since they use the flag for children
|
|
2760
2760
|
// fast paths only.
|
|
2761
|
-
patchFlag: t && e.type !==
|
|
2761
|
+
patchFlag: t && e.type !== ro ? a === -1 ? 16 : a | 16 : a,
|
|
2762
2762
|
dynamicProps: e.dynamicProps,
|
|
2763
2763
|
dynamicChildren: e.dynamicChildren,
|
|
2764
2764
|
appContext: e.appContext,
|
|
2765
2765
|
dirs: e.dirs,
|
|
2766
|
-
transition:
|
|
2766
|
+
transition: u,
|
|
2767
2767
|
// These should technically only be non-null on mounted VNodes. However,
|
|
2768
2768
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
2769
2769
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
2770
2770
|
// they will simply be overwritten.
|
|
2771
2771
|
component: e.component,
|
|
2772
2772
|
suspense: e.suspense,
|
|
2773
|
-
ssContent: e.ssContent &&
|
|
2774
|
-
ssFallback: e.ssFallback &&
|
|
2773
|
+
ssContent: e.ssContent && nt(e.ssContent),
|
|
2774
|
+
ssFallback: e.ssFallback && nt(e.ssFallback),
|
|
2775
2775
|
el: e.el,
|
|
2776
2776
|
anchor: e.anchor,
|
|
2777
2777
|
ctx: e.ctx,
|
|
2778
2778
|
ce: e.ce
|
|
2779
2779
|
};
|
|
2780
|
-
return
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
),
|
|
2780
|
+
return u && o && oo(
|
|
2781
|
+
d,
|
|
2782
|
+
u.clone(d)
|
|
2783
|
+
), d;
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2786
|
-
const t =
|
|
2787
|
-
return
|
|
2785
|
+
function co(e) {
|
|
2786
|
+
const t = nt(e);
|
|
2787
|
+
return U(e.children) && (t.children = e.children.map(co)), t;
|
|
2788
2788
|
}
|
|
2789
|
-
function
|
|
2790
|
-
return Wr(
|
|
2789
|
+
function qr(e = " ", t = 0) {
|
|
2790
|
+
return Wr(Kr, null, e, t);
|
|
2791
2791
|
}
|
|
2792
|
-
function
|
|
2792
|
+
function sn(e, t) {
|
|
2793
2793
|
let n = 0;
|
|
2794
2794
|
const { shapeFlag: o } = e;
|
|
2795
2795
|
if (t == null)
|
|
2796
2796
|
t = null;
|
|
2797
|
-
else if (
|
|
2797
|
+
else if (U(t))
|
|
2798
2798
|
n = 16;
|
|
2799
2799
|
else if (typeof t == "object")
|
|
2800
2800
|
if (o & 65) {
|
|
2801
2801
|
const s = t.default;
|
|
2802
|
-
s && (s._c && (s._d = !1),
|
|
2802
|
+
s && (s._c && (s._d = !1), sn(e, s()), s._c && (s._d = !0));
|
|
2803
2803
|
return;
|
|
2804
2804
|
} else
|
|
2805
|
-
n = 32, !t._ && !
|
|
2806
|
-
else
|
|
2805
|
+
n = 32, !t._ && !so(t) && (t._ctx = tt);
|
|
2806
|
+
else le(t) ? (t = { default: t, _ctx: tt }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [qr(t)]) : n = 8);
|
|
2807
2807
|
e.children = t, e.shapeFlag |= n;
|
|
2808
2808
|
}
|
|
2809
|
-
function
|
|
2809
|
+
function Yr(...e) {
|
|
2810
2810
|
const t = {};
|
|
2811
2811
|
for (let n = 0; n < e.length; n++) {
|
|
2812
2812
|
const o = e[n];
|
|
2813
2813
|
for (const s in o)
|
|
2814
2814
|
if (s === "class")
|
|
2815
|
-
t.class !== o.class && (t.class =
|
|
2815
|
+
t.class !== o.class && (t.class = tn([t.class, o.class]));
|
|
2816
2816
|
else if (s === "style")
|
|
2817
|
-
t.style =
|
|
2818
|
-
else if (
|
|
2817
|
+
t.style = en([t.style, o.style]);
|
|
2818
|
+
else if (hr(s)) {
|
|
2819
2819
|
const r = t[s], a = o[s];
|
|
2820
|
-
a && r !== a && !(
|
|
2820
|
+
a && r !== a && !(U(r) && r.includes(a)) && (t[s] = r ? [].concat(r, a) : a);
|
|
2821
2821
|
} else s !== "" && (t[s] = o[s]);
|
|
2822
2822
|
}
|
|
2823
2823
|
return t;
|
|
2824
2824
|
}
|
|
2825
2825
|
{
|
|
2826
|
-
const e =
|
|
2826
|
+
const e = ft(), t = (n, o) => {
|
|
2827
2827
|
let s;
|
|
2828
2828
|
return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
|
|
2829
2829
|
s.length > 1 ? s.forEach((a) => a(r)) : s[0](r);
|
|
@@ -2838,12 +2838,12 @@ function qr(...e) {
|
|
|
2838
2838
|
);
|
|
2839
2839
|
}
|
|
2840
2840
|
process.env.NODE_ENV;
|
|
2841
|
-
const
|
|
2842
|
-
function
|
|
2843
|
-
return
|
|
2841
|
+
const Zr = /(?:^|[-_])(\w)/g, Qr = (e) => e.replace(Zr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
2842
|
+
function uo(e, t = !0) {
|
|
2843
|
+
return le(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
2844
2844
|
}
|
|
2845
2845
|
function lo(e, t, n = !1) {
|
|
2846
|
-
let o =
|
|
2846
|
+
let o = uo(t);
|
|
2847
2847
|
if (!o && t.__file) {
|
|
2848
2848
|
const s = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
2849
2849
|
s && (o = s[1]);
|
|
@@ -2858,36 +2858,36 @@ function lo(e, t, n = !1) {
|
|
|
2858
2858
|
e.components || e.parent.type.components
|
|
2859
2859
|
) || s(e.appContext.components);
|
|
2860
2860
|
}
|
|
2861
|
-
return o ?
|
|
2861
|
+
return o ? Qr(o) : n ? "App" : "Anonymous";
|
|
2862
2862
|
}
|
|
2863
|
-
function
|
|
2864
|
-
return
|
|
2863
|
+
function po(e) {
|
|
2864
|
+
return le(e) && "__vccOpts" in e;
|
|
2865
2865
|
}
|
|
2866
|
-
function
|
|
2866
|
+
function Xr() {
|
|
2867
2867
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
2868
2868
|
return;
|
|
2869
2869
|
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
|
|
2870
2870
|
__vue_custom_formatter: !0,
|
|
2871
2871
|
header(i) {
|
|
2872
|
-
return ie(i) ? i.__isVue ? ["div", e, "VueInstance"] :
|
|
2872
|
+
return ie(i) ? i.__isVue ? ["div", e, "VueInstance"] : nn(i) ? [
|
|
2873
2873
|
"div",
|
|
2874
2874
|
{},
|
|
2875
|
-
["span", e,
|
|
2875
|
+
["span", e, d(i)],
|
|
2876
2876
|
"<",
|
|
2877
2877
|
// avoid debugger accessing value affecting behavior
|
|
2878
2878
|
c("_value" in i ? i._value : i),
|
|
2879
2879
|
">"
|
|
2880
|
-
] :
|
|
2880
|
+
] : Yn(i) ? [
|
|
2881
2881
|
"div",
|
|
2882
2882
|
{},
|
|
2883
|
-
["span", e,
|
|
2883
|
+
["span", e, Nt(i) ? "ShallowReactive" : "Reactive"],
|
|
2884
2884
|
"<",
|
|
2885
2885
|
c(i),
|
|
2886
|
-
`>${
|
|
2887
|
-
] :
|
|
2886
|
+
`>${Rt(i) ? " (readonly)" : ""}`
|
|
2887
|
+
] : Rt(i) ? [
|
|
2888
2888
|
"div",
|
|
2889
2889
|
{},
|
|
2890
|
-
["span", e,
|
|
2890
|
+
["span", e, Nt(i) ? "ShallowReadonly" : "Readonly"],
|
|
2891
2891
|
"<",
|
|
2892
2892
|
c(i),
|
|
2893
2893
|
">"
|
|
@@ -2906,12 +2906,12 @@ function Qr() {
|
|
|
2906
2906
|
}
|
|
2907
2907
|
};
|
|
2908
2908
|
function r(i) {
|
|
2909
|
-
const
|
|
2910
|
-
i.type.props && i.props &&
|
|
2911
|
-
const p =
|
|
2912
|
-
p &&
|
|
2913
|
-
const _ =
|
|
2914
|
-
return _ &&
|
|
2909
|
+
const l = [];
|
|
2910
|
+
i.type.props && i.props && l.push(a("props", ae(i.props))), i.setupState !== Ft && l.push(a("setup", i.setupState)), i.data !== Ft && l.push(a("data", ae(i.data)));
|
|
2911
|
+
const p = u(i, "computed");
|
|
2912
|
+
p && l.push(a("computed", p));
|
|
2913
|
+
const _ = u(i, "inject");
|
|
2914
|
+
return _ && l.push(a("injected", _)), l.push([
|
|
2915
2915
|
"div",
|
|
2916
2916
|
{},
|
|
2917
2917
|
[
|
|
@@ -2922,10 +2922,10 @@ function Qr() {
|
|
|
2922
2922
|
"$ (internal): "
|
|
2923
2923
|
],
|
|
2924
2924
|
["object", { object: i }]
|
|
2925
|
-
]),
|
|
2925
|
+
]), l;
|
|
2926
2926
|
}
|
|
2927
|
-
function a(i,
|
|
2928
|
-
return
|
|
2927
|
+
function a(i, l) {
|
|
2928
|
+
return l = dt({}, l), Object.keys(l).length ? [
|
|
2929
2929
|
"div",
|
|
2930
2930
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
2931
2931
|
[
|
|
@@ -2940,34 +2940,34 @@ function Qr() {
|
|
|
2940
2940
|
{
|
|
2941
2941
|
style: "padding-left:1.25em"
|
|
2942
2942
|
},
|
|
2943
|
-
...Object.keys(
|
|
2943
|
+
...Object.keys(l).map((p) => [
|
|
2944
2944
|
"div",
|
|
2945
2945
|
{},
|
|
2946
2946
|
["span", o, p + ": "],
|
|
2947
|
-
c(
|
|
2947
|
+
c(l[p], !1)
|
|
2948
2948
|
])
|
|
2949
2949
|
]
|
|
2950
2950
|
] : ["span", {}];
|
|
2951
2951
|
}
|
|
2952
|
-
function c(i,
|
|
2953
|
-
return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : ie(i) ? ["object", { object:
|
|
2952
|
+
function c(i, l = !0) {
|
|
2953
|
+
return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : ie(i) ? ["object", { object: l ? ae(i) : i }] : ["span", n, String(i)];
|
|
2954
2954
|
}
|
|
2955
|
-
function
|
|
2955
|
+
function u(i, l) {
|
|
2956
2956
|
const p = i.type;
|
|
2957
|
-
if (
|
|
2957
|
+
if (le(p))
|
|
2958
2958
|
return;
|
|
2959
2959
|
const _ = {};
|
|
2960
|
-
for (const
|
|
2961
|
-
|
|
2960
|
+
for (const h in i.ctx)
|
|
2961
|
+
f(p, h, l) && (_[h] = i.ctx[h]);
|
|
2962
2962
|
return _;
|
|
2963
2963
|
}
|
|
2964
|
-
function
|
|
2964
|
+
function f(i, l, p) {
|
|
2965
2965
|
const _ = i[p];
|
|
2966
|
-
if (
|
|
2966
|
+
if (U(_) && _.includes(l) || ie(_) && l in _ || i.extends && f(i.extends, l, p) || i.mixins && i.mixins.some((h) => f(h, l, p)))
|
|
2967
2967
|
return !0;
|
|
2968
2968
|
}
|
|
2969
|
-
function
|
|
2970
|
-
return
|
|
2969
|
+
function d(i) {
|
|
2970
|
+
return Nt(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
|
|
2971
2971
|
}
|
|
2972
2972
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
2973
2973
|
}
|
|
@@ -2979,15 +2979,15 @@ process.env.NODE_ENV;
|
|
|
2979
2979
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
2980
2980
|
* @license MIT
|
|
2981
2981
|
**/
|
|
2982
|
-
function
|
|
2983
|
-
|
|
2982
|
+
function ei() {
|
|
2983
|
+
Xr();
|
|
2984
2984
|
}
|
|
2985
|
-
process.env.NODE_ENV !== "production" &&
|
|
2986
|
-
function
|
|
2987
|
-
return lr(e) ||
|
|
2985
|
+
process.env.NODE_ENV !== "production" && ei();
|
|
2986
|
+
function ti(e) {
|
|
2987
|
+
return lr(e) || pr(e) || ur(e) || dr(e) || fr(e);
|
|
2988
2988
|
}
|
|
2989
|
-
var
|
|
2990
|
-
class
|
|
2989
|
+
var fo = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(fo || {});
|
|
2990
|
+
class y {
|
|
2991
2991
|
imports = /* @__PURE__ */ new Set();
|
|
2992
2992
|
parentDir;
|
|
2993
2993
|
name;
|
|
@@ -3028,84 +3028,88 @@ class R {
|
|
|
3028
3028
|
this.parentDir = t;
|
|
3029
3029
|
}
|
|
3030
3030
|
}
|
|
3031
|
-
var
|
|
3031
|
+
var ot;
|
|
3032
3032
|
((e) => {
|
|
3033
3033
|
((t) => {
|
|
3034
3034
|
t.Lombok = "Lombok", t.LombokBuilder = "LombokBuilder", t.RecordVakueObject = "RecordVakueObject", t.CommandHandler = "CommandHandler", t.Jpa = "Jpa", t.Timezone = "Timezone", t.SpringFramework = "SpringFramework";
|
|
3035
3035
|
})(e.JavaGeneratorAddition || (e.JavaGeneratorAddition = {}));
|
|
3036
|
-
})(
|
|
3037
|
-
var
|
|
3036
|
+
})(ot || (ot = {}));
|
|
3037
|
+
var st;
|
|
3038
3038
|
((e) => {
|
|
3039
3039
|
((t) => {
|
|
3040
3040
|
t.ValueClass = "ValueClass", t.CommandHandler = "CommandHandler", t.Timezone = "Timezone";
|
|
3041
3041
|
})(e.KotlinGeneratorAddition || (e.KotlinGeneratorAddition = {}));
|
|
3042
|
-
})(
|
|
3043
|
-
var
|
|
3042
|
+
})(st || (st = {}));
|
|
3043
|
+
var rt;
|
|
3044
3044
|
((e) => {
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3045
|
+
((t) => {
|
|
3046
|
+
t.Timezone = "Timezone", t.RecordStruct = "RecordStruct", t.CommandInterface = "CommandInterface", t.CommandHandlerInterface = "CommandHandlerInterface", t.AggInterface = "AggInterface", t.EventInterface = "EventInterface";
|
|
3047
|
+
})(e.CSharpGeneratorAddition || (e.CSharpGeneratorAddition = {}));
|
|
3048
|
+
})(rt || (rt = {}));
|
|
3049
|
+
var Mt;
|
|
3048
3050
|
((e) => {
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3051
|
+
((t) => {
|
|
3052
|
+
t.SinglePackageEachDesigner = "SinglePackageEachDesigner";
|
|
3053
|
+
})(e.GoGeneratorAddition || (e.GoGeneratorAddition = {}));
|
|
3054
|
+
})(Mt || (Mt = {}));
|
|
3055
|
+
const oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3052
3056
|
__proto__: null,
|
|
3053
|
-
CodeFile:
|
|
3054
|
-
Language:
|
|
3057
|
+
CodeFile: y,
|
|
3058
|
+
Language: fo,
|
|
3055
3059
|
get csharp() {
|
|
3056
|
-
return
|
|
3060
|
+
return rt;
|
|
3057
3061
|
},
|
|
3058
3062
|
get go() {
|
|
3059
|
-
return
|
|
3063
|
+
return Mt;
|
|
3060
3064
|
},
|
|
3061
|
-
isStruct:
|
|
3065
|
+
isStruct: ti,
|
|
3062
3066
|
get java() {
|
|
3063
|
-
return
|
|
3067
|
+
return ot;
|
|
3064
3068
|
},
|
|
3065
3069
|
get kotlin() {
|
|
3066
|
-
return
|
|
3070
|
+
return st;
|
|
3067
3071
|
}
|
|
3068
3072
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3069
|
-
var
|
|
3073
|
+
var $;
|
|
3070
3074
|
((e) => {
|
|
3071
|
-
function t(
|
|
3072
|
-
return
|
|
3075
|
+
function t(f) {
|
|
3076
|
+
return f.trim().split(f.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((d) => d.charAt(0).toUpperCase() + d.toLowerCase().slice(1)).join("");
|
|
3073
3077
|
}
|
|
3074
3078
|
e.stringToUpperCamel = t;
|
|
3075
|
-
function n(
|
|
3076
|
-
let
|
|
3077
|
-
return
|
|
3079
|
+
function n(f) {
|
|
3080
|
+
let d = !0;
|
|
3081
|
+
return f.trim().split(f.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((i) => d ? (d = !1, i.toLowerCase()) : i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
|
|
3078
3082
|
}
|
|
3079
3083
|
e.stringToLowerCamel = n;
|
|
3080
|
-
function o(
|
|
3081
|
-
return
|
|
3084
|
+
function o(f) {
|
|
3085
|
+
return f.includes("_") ? f.toLowerCase() : r(f);
|
|
3082
3086
|
}
|
|
3083
3087
|
e.stringToLowerSnake = o;
|
|
3084
|
-
function s(
|
|
3085
|
-
return
|
|
3088
|
+
function s(f) {
|
|
3089
|
+
return f.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
|
|
3086
3090
|
}
|
|
3087
3091
|
e.camelToUpperSnake = s;
|
|
3088
|
-
function r(
|
|
3089
|
-
return
|
|
3092
|
+
function r(f) {
|
|
3093
|
+
return f.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
|
|
3090
3094
|
}
|
|
3091
3095
|
e.camelToLowerSnake = r;
|
|
3092
|
-
function a(
|
|
3093
|
-
return
|
|
3096
|
+
function a(f) {
|
|
3097
|
+
return f.trim().split("_").map((d) => d.charAt(0).toUpperCase() + d.slice(1)).join("");
|
|
3094
3098
|
}
|
|
3095
3099
|
e.snakeToUpperCamel = a;
|
|
3096
|
-
function c(
|
|
3097
|
-
return
|
|
3100
|
+
function c(f) {
|
|
3101
|
+
return f.trim().charAt(0).toLowerCase() + f.slice(1);
|
|
3098
3102
|
}
|
|
3099
3103
|
e.lowerFirst = c;
|
|
3100
|
-
function
|
|
3101
|
-
return
|
|
3104
|
+
function u(f) {
|
|
3105
|
+
return f.trim().charAt(0).toUpperCase() + f.slice(1);
|
|
3102
3106
|
}
|
|
3103
|
-
e.upperFirst =
|
|
3104
|
-
})(
|
|
3105
|
-
const
|
|
3107
|
+
e.upperFirst = u;
|
|
3108
|
+
})($ || ($ = {}));
|
|
3109
|
+
const A = ot.JavaGeneratorAddition, si = Te.createHotSwapPlugin(() => {
|
|
3106
3110
|
const e = "value";
|
|
3107
3111
|
function t(n) {
|
|
3108
|
-
return
|
|
3112
|
+
return $.stringToUpperCamel(n._attributes.name);
|
|
3109
3113
|
}
|
|
3110
3114
|
return {
|
|
3111
3115
|
unmount({ api: n }) {
|
|
@@ -3114,15 +3118,15 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
|
|
|
3114
3118
|
mount({ api: n }) {
|
|
3115
3119
|
const o = n.states.context;
|
|
3116
3120
|
function s(a, c) {
|
|
3117
|
-
const
|
|
3118
|
-
return /\b(time|timestamp|date|deadline|expire)\b/.test(
|
|
3121
|
+
const u = o.value.additions, f = $.stringToLowerSnake(c._attributes.name).replace(/_/, " ");
|
|
3122
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(f) ? u.has(A.Timezone) ? (a.add("java.time.OffsetDateTime"), "OffsetDateTime") : (a.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(f) ? "Integer" : /\b(price)$/.test(f) ? (a.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(f) ? "Boolean" : pt(c) && (c._attributes.type === "Id" || c._attributes.type === "Version") ? "Long" : "String";
|
|
3119
3123
|
}
|
|
3120
3124
|
n.commands._setInfoCodeProvider(
|
|
3121
3125
|
(a) => {
|
|
3122
3126
|
const c = /* @__PURE__ */ new Set();
|
|
3123
3127
|
c.add(o.value.nonNullAnnotation);
|
|
3124
|
-
const
|
|
3125
|
-
return
|
|
3128
|
+
const u = o.value.nonNullAnnotation.split(".").pop(), f = t(a), d = o.value.additions, i = [];
|
|
3129
|
+
return d.has(A.RecordVakueObject) ? (i.push(`public record ${f}(@${u} ${s(c, a)} value) {`), i.push(` public ${f} {`), i.push(" // HACK check value"), i.push(" }"), i.push("}")) : d.has(A.Lombok) ? (i.push("@lombok.Getter"), i.push(`public class ${f} {`), i.push(` private final ${s(c, a)} value;`), i.push(""), i.push(` public ${f} (@${u} ${s(c, a)} value) {`), i.push(" // HACK check value"), i.push(" this.value = value;"), i.push(" }"), i.push("}")) : (i.push(`public class ${t(a)} {`), i.push(` private final ${s(c, a)} value;`), i.push(""), i.push(` public ${f} (@${u} ${s(c, a)} value) {`), i.push(" // HACK check value"), i.push(" this.value = value;"), i.push(" }"), i.push(""), i.push(` public ${s(c, a)} getValue() {`), i.push(" return this.value;"), i.push(" }"), i.push("}")), [
|
|
3126
3130
|
{
|
|
3127
3131
|
type: "Info",
|
|
3128
3132
|
imports: c,
|
|
@@ -3133,75 +3137,75 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
|
|
|
3133
3137
|
}
|
|
3134
3138
|
);
|
|
3135
3139
|
function r(a) {
|
|
3136
|
-
const c = [],
|
|
3140
|
+
const c = [], u = o.value.additions, f = o.value.nonNullAnnotation.split(".").pop();
|
|
3137
3141
|
{
|
|
3138
|
-
const
|
|
3139
|
-
|
|
3140
|
-
const i = t(a),
|
|
3142
|
+
const d = /* @__PURE__ */ new Set();
|
|
3143
|
+
d.add(o.value.nonNullAnnotation);
|
|
3144
|
+
const i = t(a), l = [], p = Object.values(a.inner);
|
|
3141
3145
|
for (const _ of p)
|
|
3142
|
-
|
|
3146
|
+
d.add(
|
|
3143
3147
|
`${o.value.namespace}.${o.value.moduleName}.${e}.${t(_)}`
|
|
3144
3148
|
);
|
|
3145
|
-
if (
|
|
3146
|
-
|
|
3149
|
+
if (u.has(A.RecordVakueObject)) {
|
|
3150
|
+
u.has(A.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public record ${i}(`);
|
|
3147
3151
|
const _ = [];
|
|
3148
|
-
for (const
|
|
3149
|
-
const
|
|
3150
|
-
_.push(` @${
|
|
3151
|
-
${
|
|
3152
|
+
for (const h of p) {
|
|
3153
|
+
const g = t(h);
|
|
3154
|
+
_.push(` @${f}
|
|
3155
|
+
${g} ${$.lowerFirst(g)}`);
|
|
3152
3156
|
}
|
|
3153
|
-
|
|
3154
|
-
`)),
|
|
3155
|
-
} else if (
|
|
3156
|
-
|
|
3157
|
+
l.push(_.join(`,
|
|
3158
|
+
`)), l.push(") {"), l.push(` public ${i} {`), l.push(" // HACK check value"), l.push(" }"), l.push("}");
|
|
3159
|
+
} else if (u.has(A.Lombok)) {
|
|
3160
|
+
l.push("@lombok.AllArgsConstructor"), l.push("@lombok.Getter"), u.has(A.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public class ${i} {`);
|
|
3157
3161
|
for (const _ of p) {
|
|
3158
|
-
const
|
|
3159
|
-
|
|
3162
|
+
const h = t(_);
|
|
3163
|
+
l.push(` @${f}`), l.push(` private final ${h} ${$.lowerFirst(h)};`);
|
|
3160
3164
|
}
|
|
3161
|
-
|
|
3165
|
+
l.push("}");
|
|
3162
3166
|
} else {
|
|
3163
|
-
|
|
3164
|
-
for (const
|
|
3165
|
-
const m = t(
|
|
3166
|
-
|
|
3167
|
+
l.push(`public class ${i} {`);
|
|
3168
|
+
for (const g of p) {
|
|
3169
|
+
const m = t(g);
|
|
3170
|
+
l.push(` @${f}`), l.push(` private final ${s(d, g)} ${$.lowerFirst(m)};`);
|
|
3167
3171
|
}
|
|
3168
|
-
|
|
3169
|
-
const _ = [],
|
|
3170
|
-
for (const
|
|
3171
|
-
const m = t(
|
|
3172
|
-
_.push(`@${
|
|
3172
|
+
l.push("");
|
|
3173
|
+
const _ = [], h = [];
|
|
3174
|
+
for (const g of p) {
|
|
3175
|
+
const m = t(g);
|
|
3176
|
+
_.push(`@${f} ${s(d, g)} ${$.lowerFirst(m)}`), h.push(`this.${$.lowerFirst(m)} = ${$.lowerFirst(m)};`);
|
|
3173
3177
|
}
|
|
3174
|
-
|
|
3175
|
-
`)}`),
|
|
3176
|
-
for (const
|
|
3177
|
-
const m = t(
|
|
3178
|
-
|
|
3178
|
+
l.push(` public ${i}(${_.join(", ")}) {`), l.push(` ${h.join(`
|
|
3179
|
+
`)}`), l.push(" }");
|
|
3180
|
+
for (const g of p) {
|
|
3181
|
+
const m = t(g);
|
|
3182
|
+
l.push(""), l.push(` public ${s(d, g)} get${m} () {`), l.push(` return this.${$.lowerFirst(m)};`), l.push(" }");
|
|
3179
3183
|
}
|
|
3180
|
-
|
|
3184
|
+
l.push("}");
|
|
3181
3185
|
}
|
|
3182
3186
|
c.push({
|
|
3183
3187
|
type: "Command",
|
|
3184
|
-
imports:
|
|
3185
|
-
content:
|
|
3188
|
+
imports: d,
|
|
3189
|
+
content: l.join(`
|
|
3186
3190
|
`)
|
|
3187
3191
|
});
|
|
3188
3192
|
}
|
|
3189
|
-
if (!
|
|
3193
|
+
if (!u.has(A.CommandHandler))
|
|
3190
3194
|
return c;
|
|
3191
3195
|
{
|
|
3192
|
-
const
|
|
3193
|
-
|
|
3194
|
-
const i = t(a),
|
|
3195
|
-
|
|
3196
|
+
const d = /* @__PURE__ */ new Set();
|
|
3197
|
+
d.add(o.value.nonNullAnnotation);
|
|
3198
|
+
const i = t(a), l = [];
|
|
3199
|
+
u.has(A.SpringFramework) && (d.add("org.springframework.stereotype.Component"), l.push("@Component")), u.has(A.Lombok) && l.push("@lombok.RequiredArgsConstructor"), l.push(`public class ${i}Handler {`);
|
|
3196
3200
|
const p = [...n.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
|
|
3197
3201
|
(_) => _._attributes.rule === "Agg"
|
|
3198
3202
|
);
|
|
3199
3203
|
for (const _ of p)
|
|
3200
|
-
|
|
3201
|
-
|
|
3204
|
+
d.add(`${o.value.namespace}.${o.value.moduleName}.${t(_)}`), l.push(` public ${t(_)} handle(@${f} ${i} command) {`), l.push(" // HACK Implement"), l.push(" }");
|
|
3205
|
+
l.push("}"), c.push({
|
|
3202
3206
|
type: "CommandHandler",
|
|
3203
|
-
imports:
|
|
3204
|
-
content:
|
|
3207
|
+
imports: d,
|
|
3208
|
+
content: l.join(`
|
|
3205
3209
|
`)
|
|
3206
3210
|
});
|
|
3207
3211
|
}
|
|
@@ -3209,74 +3213,74 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
|
|
|
3209
3213
|
}
|
|
3210
3214
|
n.commands._setCommandCodeProvider(r), n.commands._setFacadeCommandCodeProvider(r), n.commands._setAggCodeProvider(
|
|
3211
3215
|
(a) => {
|
|
3212
|
-
const c = o.value.additions,
|
|
3216
|
+
const c = o.value.additions, u = n.states.designer.value, f = o.value.nonNullAnnotation.split(".").pop(), d = t(a), i = [];
|
|
3213
3217
|
{
|
|
3214
|
-
const
|
|
3215
|
-
|
|
3216
|
-
const p = [], _ = [],
|
|
3217
|
-
for (const
|
|
3218
|
-
const m = t(
|
|
3219
|
-
_.push(`public void handle${m}(@${
|
|
3218
|
+
const l = /* @__PURE__ */ new Set();
|
|
3219
|
+
l.add(o.value.nonNullAnnotation);
|
|
3220
|
+
const p = [], _ = [], h = [...u._getContext().getAssociationMap()[a._attributes.__id]].filter((g) => g._attributes.rule === "Command" || g._attributes.rule === "FacadeCommand");
|
|
3221
|
+
for (const g of h) {
|
|
3222
|
+
const m = t(g);
|
|
3223
|
+
_.push(`public void handle${m}(@${f} ${m} command);`);
|
|
3220
3224
|
}
|
|
3221
|
-
p.push(`public interface ${
|
|
3225
|
+
p.push(`public interface ${d} {`), p.push(` ${_.join(`
|
|
3222
3226
|
|
|
3223
3227
|
`)}`), p.push("}"), i.push({
|
|
3224
3228
|
type: "Agg",
|
|
3225
|
-
imports:
|
|
3229
|
+
imports: l,
|
|
3226
3230
|
content: p.join(`
|
|
3227
3231
|
`)
|
|
3228
3232
|
});
|
|
3229
3233
|
}
|
|
3230
3234
|
{
|
|
3231
|
-
const
|
|
3232
|
-
|
|
3235
|
+
const l = /* @__PURE__ */ new Set();
|
|
3236
|
+
l.add(o.value.nonNullAnnotation);
|
|
3233
3237
|
const p = [], _ = Object.values(a.inner);
|
|
3234
|
-
for (const
|
|
3235
|
-
|
|
3236
|
-
`${o.value.namespace}.${o.value.moduleName}.${e}.${t(
|
|
3238
|
+
for (const h of _)
|
|
3239
|
+
l.add(
|
|
3240
|
+
`${o.value.namespace}.${o.value.moduleName}.${e}.${t(h)}`
|
|
3237
3241
|
);
|
|
3238
|
-
if (c.has(
|
|
3239
|
-
p.push("@lombok.AllArgsConstructor"), p.push("@lombok.Getter"), p.push(`public class ${
|
|
3240
|
-
for (const
|
|
3241
|
-
const m = t(
|
|
3242
|
-
p.push(` @${
|
|
3242
|
+
if (c.has(A.Lombok)) {
|
|
3243
|
+
p.push("@lombok.AllArgsConstructor"), p.push("@lombok.Getter"), p.push(`public class ${d}Impl implements ${d} {`);
|
|
3244
|
+
for (const g of _) {
|
|
3245
|
+
const m = t(g);
|
|
3246
|
+
p.push(` @${f}`), p.push(` private ${m} ${$.lowerFirst(m)};`);
|
|
3243
3247
|
}
|
|
3244
|
-
const
|
|
3245
|
-
for (const
|
|
3246
|
-
const m = t(
|
|
3248
|
+
const h = [...u._getContext().getAssociationMap()[a._attributes.__id]].filter((g) => g._attributes.rule === "Command" || g._attributes.rule === "FacadeCommand");
|
|
3249
|
+
for (const g of h) {
|
|
3250
|
+
const m = t(g);
|
|
3247
3251
|
p.push(""), p.push(
|
|
3248
|
-
` public void handle${m}(@${
|
|
3252
|
+
` public void handle${m}(@${f} ${m} ${$.lowerFirst(
|
|
3249
3253
|
m
|
|
3250
3254
|
)}) {`
|
|
3251
3255
|
), p.push(" // HACK need implement"), p.push(" }");
|
|
3252
3256
|
}
|
|
3253
3257
|
p.push("}");
|
|
3254
3258
|
} else {
|
|
3255
|
-
p.push(`public class ${
|
|
3259
|
+
p.push(`public class ${d}Impl implements ${d} {`);
|
|
3256
3260
|
for (const v of _) {
|
|
3257
|
-
const
|
|
3258
|
-
p.push(` @${
|
|
3261
|
+
const C = t(v);
|
|
3262
|
+
p.push(` @${f}`), p.push(` private ${C} ${$.lowerFirst(C)};`);
|
|
3259
3263
|
}
|
|
3260
3264
|
p.push("");
|
|
3261
|
-
const
|
|
3265
|
+
const h = [], g = [];
|
|
3262
3266
|
for (const v of _) {
|
|
3263
|
-
const
|
|
3264
|
-
|
|
3267
|
+
const C = t(v);
|
|
3268
|
+
h.push(`@${f} ${C} ${$.lowerFirst(C)}`), g.push(`this.${$.lowerFirst(C)} = ${$.lowerFirst(C)};`);
|
|
3265
3269
|
}
|
|
3266
|
-
p.push(` public ${
|
|
3270
|
+
p.push(` public ${d}(${h.join(", ")}) {`), p.push(` ${g.join(`
|
|
3267
3271
|
`)}`), p.push(" }");
|
|
3268
3272
|
for (const v of _) {
|
|
3269
|
-
const
|
|
3270
|
-
p.push(""), p.push(` @${
|
|
3273
|
+
const C = t(v);
|
|
3274
|
+
p.push(""), p.push(` @${f}`), p.push(` public ${C} get${C}() {`), p.push(` return this.${$.lowerFirst(C)};`), p.push(" }");
|
|
3271
3275
|
}
|
|
3272
|
-
const m = [...
|
|
3276
|
+
const m = [...u._getContext().getAssociationMap()[a._attributes.__id]].filter(
|
|
3273
3277
|
(v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand"
|
|
3274
3278
|
);
|
|
3275
3279
|
for (const v of m) {
|
|
3276
|
-
const
|
|
3280
|
+
const C = t(v);
|
|
3277
3281
|
p.push(""), p.push(
|
|
3278
|
-
` public void handle${
|
|
3279
|
-
|
|
3282
|
+
` public void handle${C}(@${f} ${C} ${$.lowerFirst(
|
|
3283
|
+
C
|
|
3280
3284
|
)}) {`
|
|
3281
3285
|
), p.push(" // HACK need implement"), p.push(" }");
|
|
3282
3286
|
}
|
|
@@ -3284,7 +3288,7 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
|
|
|
3284
3288
|
}
|
|
3285
3289
|
i.push({
|
|
3286
3290
|
type: "AggImpl",
|
|
3287
|
-
imports:
|
|
3291
|
+
imports: l,
|
|
3288
3292
|
content: p.join(`
|
|
3289
3293
|
`)
|
|
3290
3294
|
});
|
|
@@ -3295,45 +3299,45 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
|
|
|
3295
3299
|
(a) => {
|
|
3296
3300
|
const c = /* @__PURE__ */ new Set();
|
|
3297
3301
|
c.add(o.value.nonNullAnnotation);
|
|
3298
|
-
const
|
|
3299
|
-
for (const p of
|
|
3302
|
+
const u = o.value.nonNullAnnotation.split(".").pop(), f = o.value.additions, d = t(a), i = [], l = Object.values(a.inner);
|
|
3303
|
+
for (const p of l)
|
|
3300
3304
|
c.add(
|
|
3301
3305
|
`${o.value.namespace}.${o.value.moduleName}.${e}.${t(p)}`
|
|
3302
3306
|
);
|
|
3303
|
-
if (
|
|
3304
|
-
|
|
3307
|
+
if (f.has(A.RecordVakueObject)) {
|
|
3308
|
+
f.has(A.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`public record ${d}(`);
|
|
3305
3309
|
const p = [];
|
|
3306
|
-
for (const _ of
|
|
3307
|
-
const
|
|
3308
|
-
p.push(` @${
|
|
3309
|
-
${
|
|
3310
|
+
for (const _ of l) {
|
|
3311
|
+
const h = t(_);
|
|
3312
|
+
p.push(` @${u}
|
|
3313
|
+
${h} ${$.lowerFirst(h)}`);
|
|
3310
3314
|
}
|
|
3311
3315
|
i.push(p.join(`,
|
|
3312
|
-
`)), i.push(") {"), i.push(` public ${
|
|
3313
|
-
} else if (
|
|
3314
|
-
i.push("@lombok.AllArgsConstructor"), i.push("@lombok.Getter"),
|
|
3315
|
-
for (const p of
|
|
3316
|
+
`)), i.push(") {"), i.push(` public ${d} {`), i.push(" // HACK check value"), i.push(" }"), i.push("}");
|
|
3317
|
+
} else if (f.has(A.Lombok)) {
|
|
3318
|
+
i.push("@lombok.AllArgsConstructor"), i.push("@lombok.Getter"), f.has(A.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`public class ${d} {`);
|
|
3319
|
+
for (const p of l) {
|
|
3316
3320
|
const _ = t(p);
|
|
3317
|
-
i.push(` @${
|
|
3321
|
+
i.push(` @${u}`), i.push(` private final ${_} ${$.lowerFirst(_)};`);
|
|
3318
3322
|
}
|
|
3319
3323
|
i.push("}");
|
|
3320
3324
|
} else {
|
|
3321
|
-
i.push(`public class ${
|
|
3322
|
-
for (const
|
|
3323
|
-
const
|
|
3324
|
-
i.push(` @${
|
|
3325
|
+
i.push(`public class ${d} {`);
|
|
3326
|
+
for (const h of l) {
|
|
3327
|
+
const g = t(h);
|
|
3328
|
+
i.push(` @${u}`), i.push(` private final ${g} ${$.lowerFirst(g)};`);
|
|
3325
3329
|
}
|
|
3326
3330
|
i.push("");
|
|
3327
3331
|
const p = [], _ = [];
|
|
3328
|
-
for (const
|
|
3329
|
-
const
|
|
3330
|
-
p.push(`@${
|
|
3332
|
+
for (const h of l) {
|
|
3333
|
+
const g = t(h);
|
|
3334
|
+
p.push(`@${u} ${s(c, h)} ${$.lowerFirst(g)}`), _.push(`this.${$.lowerFirst(g)} = ${$.lowerFirst(g)};`);
|
|
3331
3335
|
}
|
|
3332
|
-
i.push(` public ${
|
|
3336
|
+
i.push(` public ${d}(${p.join(", ")}) {`), i.push(` ${_.join(`
|
|
3333
3337
|
`)}`), i.push(" }");
|
|
3334
|
-
for (const
|
|
3335
|
-
const
|
|
3336
|
-
i.push(""), i.push(` public ${
|
|
3338
|
+
for (const h of l) {
|
|
3339
|
+
const g = t(h);
|
|
3340
|
+
i.push(""), i.push(` public ${g} get${g} () {`), i.push(` return this.${$.lowerFirst(g)};`), i.push(" }");
|
|
3337
3341
|
}
|
|
3338
3342
|
i.push("}");
|
|
3339
3343
|
}
|
|
@@ -3348,115 +3352,115 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
|
|
|
3348
3352
|
}
|
|
3349
3353
|
), n.commands._setReadModelCodeProvider(() => []), n.commands._setCodeFileProvider(() => {
|
|
3350
3354
|
const a = [], c = {};
|
|
3351
|
-
function
|
|
3355
|
+
function u(p) {
|
|
3352
3356
|
for (const _ of Object.values(p)) {
|
|
3353
|
-
const
|
|
3354
|
-
if (c[`${
|
|
3357
|
+
const h = [...o.value.namespace.split(/\./), o.value.moduleName, e], g = t(_) + ".java";
|
|
3358
|
+
if (c[`${h.join("/")}/${g}`] === !0)
|
|
3355
3359
|
continue;
|
|
3356
3360
|
const m = n.commands._genInfoCode(_);
|
|
3357
3361
|
if (m.length === 0)
|
|
3358
3362
|
continue;
|
|
3359
|
-
const v = new
|
|
3363
|
+
const v = new y(h, g);
|
|
3360
3364
|
v.appendContentln(`package ${o.value.namespace}.${o.value.moduleName}.${e};`), v.appendContentln("");
|
|
3361
|
-
for (const
|
|
3362
|
-
v.appendContentln(`import ${
|
|
3363
|
-
v.appendContentln(""), v.appendContentln(m[0].content), a.push(v), c[`${
|
|
3365
|
+
for (const C of m[0].imports)
|
|
3366
|
+
v.appendContentln(`import ${C};`);
|
|
3367
|
+
v.appendContentln(""), v.appendContentln(m[0].content), a.push(v), c[`${h.join("/")}/${g}`] = !0;
|
|
3364
3368
|
}
|
|
3365
3369
|
}
|
|
3366
|
-
const
|
|
3367
|
-
for (const p of
|
|
3368
|
-
|
|
3369
|
-
const _ = n.commands._genCommandCode(p),
|
|
3370
|
-
_.forEach((
|
|
3371
|
-
if (
|
|
3372
|
-
const m = new
|
|
3373
|
-
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(
|
|
3374
|
-
for (const v of
|
|
3370
|
+
const f = n.states.designer.value._getContext().getCommands();
|
|
3371
|
+
for (const p of f) {
|
|
3372
|
+
u(p.inner);
|
|
3373
|
+
const _ = n.commands._genCommandCode(p), h = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
3374
|
+
_.forEach((g) => {
|
|
3375
|
+
if (g.type === "Command") {
|
|
3376
|
+
const m = new y(h, t(p) + ".java");
|
|
3377
|
+
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
|
|
3378
|
+
for (const v of g.imports)
|
|
3375
3379
|
m.appendContentln(`import ${v};`);
|
|
3376
|
-
m.appendContentln(""), m.appendContentln(
|
|
3377
|
-
} else if (
|
|
3378
|
-
const m = new
|
|
3379
|
-
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(
|
|
3380
|
-
for (const v of
|
|
3380
|
+
m.appendContentln(""), m.appendContentln(g.content), a.push(m);
|
|
3381
|
+
} else if (g.type === "CommandHandler") {
|
|
3382
|
+
const m = new y(h, t(p) + "Handler.java");
|
|
3383
|
+
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
|
|
3384
|
+
for (const v of g.imports)
|
|
3381
3385
|
m.appendContentln(`import ${v};`);
|
|
3382
|
-
m.appendContentln(""), m.appendContentln(
|
|
3386
|
+
m.appendContentln(""), m.appendContentln(g.content), a.push(m);
|
|
3383
3387
|
} else
|
|
3384
|
-
isNever(
|
|
3388
|
+
isNever(g.type);
|
|
3385
3389
|
});
|
|
3386
3390
|
}
|
|
3387
|
-
const
|
|
3388
|
-
for (const p of
|
|
3389
|
-
|
|
3390
|
-
const _ = n.commands._genFacadeCommandCode(p),
|
|
3391
|
-
_.forEach((
|
|
3392
|
-
if (
|
|
3393
|
-
const m = new
|
|
3394
|
-
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(
|
|
3395
|
-
for (const v of
|
|
3391
|
+
const d = n.states.designer.value._getContext().getFacadeCommands();
|
|
3392
|
+
for (const p of d) {
|
|
3393
|
+
u(p.inner);
|
|
3394
|
+
const _ = n.commands._genFacadeCommandCode(p), h = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
3395
|
+
_.forEach((g) => {
|
|
3396
|
+
if (g.type === "FacadeCommand") {
|
|
3397
|
+
const m = new y(h, t(p) + ".java");
|
|
3398
|
+
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
|
|
3399
|
+
for (const v of g.imports)
|
|
3396
3400
|
m.appendContentln(`import ${v};`);
|
|
3397
|
-
m.appendContentln(""), m.appendContentln(
|
|
3401
|
+
m.appendContentln(""), m.appendContentln(g.content), a.push(m);
|
|
3398
3402
|
} else
|
|
3399
|
-
isNever(
|
|
3403
|
+
isNever(g.type);
|
|
3400
3404
|
});
|
|
3401
3405
|
}
|
|
3402
3406
|
const i = n.states.designer.value._getContext().getAggs();
|
|
3403
3407
|
for (const p of i) {
|
|
3404
|
-
|
|
3405
|
-
const _ = n.commands._genAggCode(p),
|
|
3406
|
-
_.forEach((
|
|
3407
|
-
if (
|
|
3408
|
-
const m = new
|
|
3409
|
-
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(
|
|
3410
|
-
for (const v of
|
|
3408
|
+
u(p.inner);
|
|
3409
|
+
const _ = n.commands._genAggCode(p), h = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
3410
|
+
_.forEach((g) => {
|
|
3411
|
+
if (g.type === "Agg") {
|
|
3412
|
+
const m = new y(h, t(p) + ".java");
|
|
3413
|
+
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
|
|
3414
|
+
for (const v of g.imports)
|
|
3411
3415
|
m.appendContentln(`import ${v};`);
|
|
3412
|
-
m.appendContentln(""), m.appendContentln(
|
|
3413
|
-
} else if (
|
|
3414
|
-
const m = new
|
|
3415
|
-
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(
|
|
3416
|
-
for (const v of
|
|
3416
|
+
m.appendContentln(""), m.appendContentln(g.content), a.push(m);
|
|
3417
|
+
} else if (g.type === "AggImpl") {
|
|
3418
|
+
const m = new y(h, t(p) + "Impl.java");
|
|
3419
|
+
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
|
|
3420
|
+
for (const v of g.imports)
|
|
3417
3421
|
m.appendContentln(`import ${v};`);
|
|
3418
|
-
m.appendContentln(""), m.appendContentln(
|
|
3422
|
+
m.appendContentln(""), m.appendContentln(g.content), a.push(m);
|
|
3419
3423
|
} else
|
|
3420
|
-
isNever(
|
|
3424
|
+
isNever(g.type);
|
|
3421
3425
|
});
|
|
3422
3426
|
}
|
|
3423
|
-
const
|
|
3424
|
-
for (const p of
|
|
3425
|
-
|
|
3426
|
-
const _ = n.commands._genEventCode(p),
|
|
3427
|
-
_.forEach((
|
|
3428
|
-
const m = new
|
|
3429
|
-
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(
|
|
3430
|
-
for (const v of
|
|
3427
|
+
const l = n.states.designer.value._getContext().getEvents();
|
|
3428
|
+
for (const p of l) {
|
|
3429
|
+
u(p.inner);
|
|
3430
|
+
const _ = n.commands._genEventCode(p), h = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
3431
|
+
_.forEach((g) => {
|
|
3432
|
+
const m = new y(h, t(p) + ".java");
|
|
3433
|
+
m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
|
|
3434
|
+
for (const v of g.imports)
|
|
3431
3435
|
m.appendContentln(`import ${v};`);
|
|
3432
|
-
m.appendContentln(""), m.appendContentln(
|
|
3436
|
+
m.appendContentln(""), m.appendContentln(g.content), a.push(m);
|
|
3433
3437
|
});
|
|
3434
3438
|
}
|
|
3435
3439
|
return a;
|
|
3436
3440
|
});
|
|
3437
3441
|
}
|
|
3438
3442
|
};
|
|
3439
|
-
}),
|
|
3443
|
+
}), St = st.KotlinGeneratorAddition, ri = Te.createHotSwapPlugin(() => ({
|
|
3440
3444
|
unmount({ api: e }) {
|
|
3441
3445
|
e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
|
|
3442
3446
|
},
|
|
3443
3447
|
mount({ api: e }) {
|
|
3444
3448
|
const t = "value", n = e.states.context;
|
|
3445
3449
|
function o(r) {
|
|
3446
|
-
return
|
|
3450
|
+
return $.stringToUpperCamel(r._attributes.name);
|
|
3447
3451
|
}
|
|
3448
3452
|
function s(r, a) {
|
|
3449
|
-
const c = n.value.additions,
|
|
3450
|
-
return /\b(time|timestamp|date|deadline|expire)\b/.test(
|
|
3453
|
+
const c = n.value.additions, u = $.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
|
|
3454
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(u) ? c.has(St.Timezone) ? (r.add("java.time.OffsetDateTime"), "OffsetDateTime") : (r.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(u) ? "Integer" : /\b(price)$/.test(u) ? (r.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(u) ? "Boolean" : pt(a) && (a._attributes.type === "Id" || a._attributes.type === "Version") ? "Long" : "String";
|
|
3451
3455
|
}
|
|
3452
3456
|
e.commands._setInfoCodeProvider(
|
|
3453
3457
|
(r) => {
|
|
3454
|
-
const a = /* @__PURE__ */ new Set(), c = o(r),
|
|
3455
|
-
return
|
|
3458
|
+
const a = /* @__PURE__ */ new Set(), c = o(r), u = n.value.additions, f = [];
|
|
3459
|
+
return u.has(St.ValueClass) ? (a.add("kotlin.jvm.JvmInline"), f.push("@JvmInline"), f.push(`value class ${c}(val value: ${s(a, r)})`)) : f.push(`data class ${c}(val value: ${s(a, r)})`), [
|
|
3456
3460
|
{
|
|
3457
3461
|
type: "Info",
|
|
3458
3462
|
imports: a,
|
|
3459
|
-
content:
|
|
3463
|
+
content: f.join(`
|
|
3460
3464
|
`)
|
|
3461
3465
|
}
|
|
3462
3466
|
];
|
|
@@ -3465,37 +3469,37 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
|
|
|
3465
3469
|
(r) => {
|
|
3466
3470
|
const a = [], c = n.value.additions;
|
|
3467
3471
|
{
|
|
3468
|
-
const
|
|
3472
|
+
const u = /* @__PURE__ */ new Set(), f = o(r), d = [], i = Object.values(r.inner);
|
|
3469
3473
|
for (const p of i)
|
|
3470
|
-
|
|
3474
|
+
u.add(
|
|
3471
3475
|
`${n.value.namespace}.${n.value.moduleName}.${t}.${o(p)}`
|
|
3472
3476
|
);
|
|
3473
|
-
const
|
|
3477
|
+
const l = [];
|
|
3474
3478
|
for (const p of i) {
|
|
3475
3479
|
const _ = o(p);
|
|
3476
|
-
|
|
3480
|
+
l.push(`val ${$.lowerFirst(_)}: ${_}`);
|
|
3477
3481
|
}
|
|
3478
|
-
|
|
3482
|
+
d.push(`data class ${f}(${l.join(", ")})`), a.push({
|
|
3479
3483
|
type: "Command",
|
|
3480
|
-
imports:
|
|
3481
|
-
content:
|
|
3484
|
+
imports: u,
|
|
3485
|
+
content: d.join(`
|
|
3482
3486
|
`)
|
|
3483
3487
|
});
|
|
3484
3488
|
}
|
|
3485
|
-
if (!c.has(
|
|
3489
|
+
if (!c.has(St.CommandHandler))
|
|
3486
3490
|
return a;
|
|
3487
3491
|
{
|
|
3488
|
-
const
|
|
3489
|
-
|
|
3492
|
+
const u = /* @__PURE__ */ new Set(), f = o(r), d = [];
|
|
3493
|
+
d.push(`class ${f}Handler {`);
|
|
3490
3494
|
const i = [...e.states.designer.value._getContext().getAssociationMap()[r._attributes.__id]].filter(
|
|
3491
|
-
(
|
|
3495
|
+
(l) => l._attributes.rule === "Agg"
|
|
3492
3496
|
);
|
|
3493
|
-
for (const
|
|
3494
|
-
|
|
3495
|
-
|
|
3497
|
+
for (const l of i)
|
|
3498
|
+
u.add(`${n.value.namespace}.${n.value.moduleName}.${o(l)}`), d.push(` fun handle(command: ${f}): ${o(l)} {`), d.push(" // HACK Implement"), d.push(" }");
|
|
3499
|
+
d.push("}"), a.push({
|
|
3496
3500
|
type: "CommandHandler",
|
|
3497
|
-
imports:
|
|
3498
|
-
content:
|
|
3501
|
+
imports: u,
|
|
3502
|
+
content: d.join(`
|
|
3499
3503
|
`)
|
|
3500
3504
|
});
|
|
3501
3505
|
}
|
|
@@ -3503,161 +3507,549 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
|
|
|
3503
3507
|
}
|
|
3504
3508
|
), e.commands._setFacadeCommandCodeProvider(
|
|
3505
3509
|
(r) => {
|
|
3506
|
-
const a = /* @__PURE__ */ new Set(), c = o(r),
|
|
3507
|
-
for (const i of
|
|
3510
|
+
const a = /* @__PURE__ */ new Set(), c = o(r), u = [], f = Object.values(r.inner);
|
|
3511
|
+
for (const i of f)
|
|
3508
3512
|
a.add(
|
|
3509
3513
|
`${n.value.namespace}.${n.value.moduleName}.${t}.${o(i)}`
|
|
3510
3514
|
);
|
|
3511
|
-
const
|
|
3512
|
-
for (const i of
|
|
3513
|
-
const
|
|
3514
|
-
|
|
3515
|
+
const d = [];
|
|
3516
|
+
for (const i of f) {
|
|
3517
|
+
const l = o(i);
|
|
3518
|
+
d.push(`val ${$.lowerFirst(l)}: ${l}`);
|
|
3515
3519
|
}
|
|
3516
|
-
return
|
|
3520
|
+
return u.push(`data class ${c}(${d.join(", ")})`), [
|
|
3517
3521
|
{
|
|
3518
3522
|
type: "FacadeCommand",
|
|
3519
3523
|
imports: a,
|
|
3520
|
-
content:
|
|
3524
|
+
content: u.join(`
|
|
3521
3525
|
`)
|
|
3522
3526
|
}
|
|
3523
3527
|
];
|
|
3524
3528
|
}
|
|
3525
3529
|
), e.commands._setAggCodeProvider((r) => {
|
|
3526
|
-
const a = /* @__PURE__ */ new Set(), c = e.states.designer.value,
|
|
3527
|
-
for (const _ of
|
|
3530
|
+
const a = /* @__PURE__ */ new Set(), c = e.states.designer.value, u = o(r), f = [], d = Object.values(r.inner);
|
|
3531
|
+
for (const _ of d)
|
|
3528
3532
|
a.add(
|
|
3529
3533
|
`${n.value.namespace}.${n.value.moduleName}.${t}.${o(_)}`
|
|
3530
3534
|
);
|
|
3531
|
-
const i = [],
|
|
3532
|
-
for (const _ of
|
|
3533
|
-
const
|
|
3534
|
-
i.push(`fun handle(command: ${
|
|
3535
|
+
const i = [], l = [...c._getContext().getAssociationMap()[r._attributes.__id]].filter((_) => _._attributes.rule === "Command" || _._attributes.rule === "FacadeCommand");
|
|
3536
|
+
for (const _ of l) {
|
|
3537
|
+
const h = o(_);
|
|
3538
|
+
i.push(`fun handle(command: ${h})`);
|
|
3535
3539
|
}
|
|
3536
|
-
|
|
3537
|
-
`)}`),
|
|
3540
|
+
f.push(`interface ${u} {`), f.push(` ${i.join(`
|
|
3541
|
+
`)}`), f.push("}"), f.push(""), f.push(`class ${u}Impl(`);
|
|
3538
3542
|
const p = [];
|
|
3539
|
-
for (const _ of
|
|
3540
|
-
const
|
|
3541
|
-
p.push(`val ${
|
|
3543
|
+
for (const _ of d) {
|
|
3544
|
+
const h = o(_);
|
|
3545
|
+
p.push(`val ${$.lowerFirst(h)}: ${h}`);
|
|
3542
3546
|
}
|
|
3543
|
-
|
|
3544
|
-
`)}`),
|
|
3545
|
-
for (const _ of
|
|
3546
|
-
const
|
|
3547
|
-
|
|
3547
|
+
f.push(` ${p.join(`,
|
|
3548
|
+
`)}`), f.push(`): ${u} {`);
|
|
3549
|
+
for (const _ of l) {
|
|
3550
|
+
const h = o(_);
|
|
3551
|
+
f.push(` override fun handle(command: ${h}) {`), f.push(" // HACK Implement"), f.push(" }");
|
|
3548
3552
|
}
|
|
3549
|
-
return
|
|
3553
|
+
return f.push("}"), [
|
|
3550
3554
|
{
|
|
3551
3555
|
type: "Agg",
|
|
3552
3556
|
imports: a,
|
|
3553
|
-
content:
|
|
3557
|
+
content: f.join(`
|
|
3554
3558
|
`)
|
|
3555
3559
|
}
|
|
3556
3560
|
];
|
|
3557
3561
|
}), e.commands._setEventCodeProvider(
|
|
3558
3562
|
(r) => {
|
|
3559
|
-
const a = /* @__PURE__ */ new Set(), c = o(r),
|
|
3560
|
-
for (const i of
|
|
3563
|
+
const a = /* @__PURE__ */ new Set(), c = o(r), u = [], f = Object.values(r.inner);
|
|
3564
|
+
for (const i of f)
|
|
3561
3565
|
a.add(
|
|
3562
3566
|
`${n.value.namespace}.${n.value.moduleName}.${t}.${o(i)}`
|
|
3563
3567
|
);
|
|
3564
|
-
const
|
|
3565
|
-
for (const i of
|
|
3566
|
-
const
|
|
3567
|
-
|
|
3568
|
+
const d = [];
|
|
3569
|
+
for (const i of f) {
|
|
3570
|
+
const l = o(i);
|
|
3571
|
+
d.push(`val ${$.lowerFirst(l)}: ${l}`);
|
|
3568
3572
|
}
|
|
3569
|
-
return
|
|
3573
|
+
return u.push(`data class ${c}(${d.join(", ")})`), [
|
|
3570
3574
|
{
|
|
3571
3575
|
type: "Event",
|
|
3572
3576
|
imports: a,
|
|
3573
|
-
content:
|
|
3577
|
+
content: u.join(`
|
|
3574
3578
|
`)
|
|
3575
3579
|
}
|
|
3576
3580
|
];
|
|
3577
3581
|
}
|
|
3578
3582
|
), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => {
|
|
3579
3583
|
const r = [], a = {};
|
|
3580
|
-
function c(
|
|
3581
|
-
for (const p of Object.values(
|
|
3582
|
-
const _ = [...n.value.namespace.split(/\./), n.value.moduleName, t],
|
|
3583
|
-
if (a[`${_}/${
|
|
3584
|
+
function c(l) {
|
|
3585
|
+
for (const p of Object.values(l)) {
|
|
3586
|
+
const _ = [...n.value.namespace.split(/\./), n.value.moduleName, t], h = o(p) + ".kt";
|
|
3587
|
+
if (a[`${_.join("/")}/${h}`] === !0)
|
|
3584
3588
|
continue;
|
|
3585
|
-
const
|
|
3586
|
-
if (
|
|
3589
|
+
const g = e.commands._genInfoCode(p);
|
|
3590
|
+
if (g.length === 0)
|
|
3587
3591
|
continue;
|
|
3588
|
-
const m = new
|
|
3592
|
+
const m = new y(_, h);
|
|
3589
3593
|
m.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}.${t}`), m.appendContentln("");
|
|
3590
|
-
for (const v of
|
|
3594
|
+
for (const v of g[0].imports)
|
|
3591
3595
|
m.appendContentln(`import ${v}`);
|
|
3592
|
-
m.appendContentln(""), m.appendContentln(
|
|
3596
|
+
m.appendContentln(""), m.appendContentln(g[0].content), r.push(m), a[`${_.join("/")}/${h}`] = !0;
|
|
3593
3597
|
}
|
|
3594
3598
|
}
|
|
3595
|
-
const
|
|
3596
|
-
for (const
|
|
3597
|
-
c(
|
|
3598
|
-
const p = e.commands._genCommandCode(
|
|
3599
|
-
|
|
3600
|
-
m.type === "Command" || m.type === "CommandHandler" ? (
|
|
3599
|
+
const u = e.states.designer.value._getContext().getCommands();
|
|
3600
|
+
for (const l of u) {
|
|
3601
|
+
c(l.inner);
|
|
3602
|
+
const p = e.commands._genCommandCode(l), _ = [...n.value.namespace.split(/\./), n.value.moduleName], h = new y(_, o(l) + ".kt"), g = [];
|
|
3603
|
+
h.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), h.appendContentln(""), p.forEach((m) => {
|
|
3604
|
+
m.type === "Command" || m.type === "CommandHandler" ? (h.addImports(m.imports), g.push(m.content)) : isNever(m.type);
|
|
3601
3605
|
});
|
|
3602
|
-
for (const m of
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
for (const m of
|
|
3606
|
-
|
|
3607
|
-
r.push(
|
|
3606
|
+
for (const m of h.getImports())
|
|
3607
|
+
h.appendContentln(`import ${m}`);
|
|
3608
|
+
h.appendContentln("");
|
|
3609
|
+
for (const m of g)
|
|
3610
|
+
h.appendContentln(m);
|
|
3611
|
+
r.push(h);
|
|
3608
3612
|
}
|
|
3609
|
-
const
|
|
3610
|
-
for (const
|
|
3611
|
-
c(
|
|
3612
|
-
const p = e.commands._genFacadeCommandCode(
|
|
3613
|
-
p.forEach((
|
|
3614
|
-
if (
|
|
3615
|
-
const
|
|
3616
|
-
|
|
3617
|
-
for (const m of
|
|
3618
|
-
|
|
3619
|
-
|
|
3613
|
+
const f = e.states.designer.value._getContext().getFacadeCommands();
|
|
3614
|
+
for (const l of f) {
|
|
3615
|
+
c(l.inner);
|
|
3616
|
+
const p = e.commands._genFacadeCommandCode(l), _ = [...n.value.namespace.split(/\./), n.value.moduleName];
|
|
3617
|
+
p.forEach((h) => {
|
|
3618
|
+
if (h.type === "FacadeCommand") {
|
|
3619
|
+
const g = new y(_, o(l) + ".kt");
|
|
3620
|
+
g.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), g.appendContentln(""), g.addImports(h.imports);
|
|
3621
|
+
for (const m of h.imports)
|
|
3622
|
+
g.appendContentln(`import ${m}`);
|
|
3623
|
+
g.appendContentln(""), g.appendContentln(h.content), r.push(g);
|
|
3620
3624
|
} else
|
|
3621
|
-
isNever(
|
|
3625
|
+
isNever(h.type);
|
|
3622
3626
|
});
|
|
3623
3627
|
}
|
|
3624
|
-
const
|
|
3625
|
-
for (const
|
|
3626
|
-
c(
|
|
3627
|
-
const p = e.commands._genAggCode(
|
|
3628
|
-
|
|
3629
|
-
m.type === "Agg" || m.type === "AggImpl" ? (
|
|
3628
|
+
const d = e.states.designer.value._getContext().getAggs();
|
|
3629
|
+
for (const l of d) {
|
|
3630
|
+
c(l.inner);
|
|
3631
|
+
const p = e.commands._genAggCode(l), _ = [...n.value.namespace.split(/\./), n.value.moduleName], h = new y(_, o(l) + ".kt"), g = [];
|
|
3632
|
+
h.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), h.appendContentln(""), p.forEach((m) => {
|
|
3633
|
+
m.type === "Agg" || m.type === "AggImpl" ? (h.addImports(m.imports), g.push(m.content)) : isNever(m.type);
|
|
3630
3634
|
});
|
|
3631
|
-
for (const m of
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
for (const m of
|
|
3635
|
-
|
|
3636
|
-
r.push(
|
|
3635
|
+
for (const m of h.getImports())
|
|
3636
|
+
h.appendContentln(`import ${m}`);
|
|
3637
|
+
h.appendContentln("");
|
|
3638
|
+
for (const m of g)
|
|
3639
|
+
h.appendContentln(m);
|
|
3640
|
+
r.push(h);
|
|
3637
3641
|
}
|
|
3638
3642
|
const i = e.states.designer.value._getContext().getEvents();
|
|
3639
|
-
for (const
|
|
3640
|
-
c(
|
|
3641
|
-
const p = e.commands._genEventCode(
|
|
3642
|
-
p.forEach((
|
|
3643
|
-
if (
|
|
3644
|
-
const
|
|
3645
|
-
|
|
3646
|
-
for (const m of
|
|
3647
|
-
|
|
3648
|
-
|
|
3643
|
+
for (const l of i) {
|
|
3644
|
+
c(l.inner);
|
|
3645
|
+
const p = e.commands._genEventCode(l), _ = [...n.value.namespace.split(/\./), n.value.moduleName];
|
|
3646
|
+
p.forEach((h) => {
|
|
3647
|
+
if (h.type === "Event") {
|
|
3648
|
+
const g = new y(_, o(l) + ".kt");
|
|
3649
|
+
g.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), g.appendContentln(""), g.addImports(h.imports);
|
|
3650
|
+
for (const m of h.imports)
|
|
3651
|
+
g.appendContentln(`import ${m}`);
|
|
3652
|
+
g.appendContentln(""), g.appendContentln(h.content), r.push(g);
|
|
3649
3653
|
} else
|
|
3650
|
-
isNever(
|
|
3654
|
+
isNever(h.type);
|
|
3651
3655
|
});
|
|
3652
3656
|
}
|
|
3653
3657
|
return r;
|
|
3654
3658
|
});
|
|
3655
3659
|
}
|
|
3656
|
-
}))
|
|
3660
|
+
})), ii = Te.createHotSwapPlugin(() => ({
|
|
3661
|
+
unmount({ api: e }) {
|
|
3662
|
+
e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
|
|
3663
|
+
},
|
|
3664
|
+
mount({ api: e }) {
|
|
3665
|
+
const t = e.states.context;
|
|
3666
|
+
function n(r) {
|
|
3667
|
+
return $.stringToUpperCamel(r._attributes.name);
|
|
3668
|
+
}
|
|
3669
|
+
function o(r) {
|
|
3670
|
+
return $.stringToLowerCamel(r._attributes.name);
|
|
3671
|
+
}
|
|
3672
|
+
function s(r, a) {
|
|
3673
|
+
const c = $.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
|
|
3674
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(c) ? (r.add("time"), "time.Time") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(c) ? "int" : /\b(price)$/.test(c) ? "string" : /^(if|is)\b/.test(c) ? "bool" : pt(a) && (a._attributes.type === "Id" || a._attributes.type === "Version") ? "int64" : "string";
|
|
3675
|
+
}
|
|
3676
|
+
e.commands._setInfoCodeProvider(
|
|
3677
|
+
(r) => {
|
|
3678
|
+
const a = /* @__PURE__ */ new Set(), c = [];
|
|
3679
|
+
return c.push(`type ${n(r)} struct {`), c.push(` value ${s(a, r)}`), c.push("}"), c.push(""), c.push(
|
|
3680
|
+
`func New${n(r)}(value ${s(a, r)}) ${n(
|
|
3681
|
+
r
|
|
3682
|
+
)} {`
|
|
3683
|
+
), c.push(" // HACK check value"), c.push(` return ${n(r)}{value}`), c.push("}"), c.push(
|
|
3684
|
+
`func (${o(r)} ${n(r)}) GetValue() ${s(
|
|
3685
|
+
a,
|
|
3686
|
+
r
|
|
3687
|
+
)} {`
|
|
3688
|
+
), c.push(` return ${o(r)}.value`), c.push("}"), [{ type: "Info", imports: a, content: c.join(`
|
|
3689
|
+
`) }];
|
|
3690
|
+
}
|
|
3691
|
+
), e.commands._setCommandCodeProvider(
|
|
3692
|
+
(r) => {
|
|
3693
|
+
const a = n(r), c = o(r), u = /* @__PURE__ */ new Set(), f = [];
|
|
3694
|
+
f.push(`type ${a} struct {`);
|
|
3695
|
+
const d = Object.values(r.inner);
|
|
3696
|
+
for (const p of d)
|
|
3697
|
+
f.push(` ${o(p)} ${n(p)}`);
|
|
3698
|
+
f.push("}");
|
|
3699
|
+
for (const p of d)
|
|
3700
|
+
f.push(
|
|
3701
|
+
`func (${c} ${a}) Get${n(p)} () ${n(
|
|
3702
|
+
p
|
|
3703
|
+
)} {`
|
|
3704
|
+
), f.push(` return ${c}.${o(p)}`), f.push("}");
|
|
3705
|
+
const i = [], l = [];
|
|
3706
|
+
for (const p of d)
|
|
3707
|
+
i.push(`${o(p)} ${n(p)}`), l.push(o(p));
|
|
3708
|
+
return f.push(`func New${a}(${i.join(", ")}) ${a} {`), f.push(" // HACK check value"), f.push(` return ${a}{`), f.push(` ${l.join(`,
|
|
3709
|
+
`)},`), f.push(" }"), f.push("}"), [{ type: "Command", imports: u, content: f.join(`
|
|
3710
|
+
`) }];
|
|
3711
|
+
}
|
|
3712
|
+
), e.commands._setFacadeCommandCodeProvider(
|
|
3713
|
+
(r) => {
|
|
3714
|
+
const a = n(r), c = o(r), u = Object.values(r.inner), f = /* @__PURE__ */ new Set(), d = [];
|
|
3715
|
+
d.push(`type ${a} struct {`);
|
|
3716
|
+
for (const p of u)
|
|
3717
|
+
d.push(` ${o(p)} ${n(p)}`);
|
|
3718
|
+
d.push("}");
|
|
3719
|
+
for (const p of u)
|
|
3720
|
+
d.push(
|
|
3721
|
+
`func (${c} ${a}) Get${n(p)} () ${n(
|
|
3722
|
+
p
|
|
3723
|
+
)} {`
|
|
3724
|
+
), d.push(` return ${c}.${o(p)}`), d.push("}");
|
|
3725
|
+
const i = [], l = [];
|
|
3726
|
+
for (const p of u)
|
|
3727
|
+
i.push(`${o(p)} ${n(p)}`), l.push(o(p));
|
|
3728
|
+
return d.push(`func New${a}(${i.join(", ")}) ${a} {`), d.push(" // HACK check value"), d.push(` return ${a}{`), d.push(` ${l.join(`,
|
|
3729
|
+
`)},`), d.push(" }"), d.push("}"), [
|
|
3730
|
+
{
|
|
3731
|
+
type: "FacadeCommand",
|
|
3732
|
+
imports: f,
|
|
3733
|
+
content: d.join(`
|
|
3734
|
+
`)
|
|
3735
|
+
}
|
|
3736
|
+
];
|
|
3737
|
+
}
|
|
3738
|
+
), e.commands._setAggCodeProvider((r) => {
|
|
3739
|
+
const a = e.states.designer.value, c = n(r), u = o(r), f = Object.values(r.inner), d = /* @__PURE__ */ new Set(), i = [];
|
|
3740
|
+
i.push(`type ${c} struct {`);
|
|
3741
|
+
for (const h of f)
|
|
3742
|
+
i.push(` ${o(h)} ${n(h)}`);
|
|
3743
|
+
i.push("}");
|
|
3744
|
+
for (const h of f)
|
|
3745
|
+
i.push(
|
|
3746
|
+
`func (${u} ${c}) Get${n(h)} () ${n(h)} {`
|
|
3747
|
+
), i.push(` return ${u}.${o(h)}`), i.push("}");
|
|
3748
|
+
const l = [], p = [];
|
|
3749
|
+
for (const h of f)
|
|
3750
|
+
l.push(`${o(h)} ${n(h)}`), p.push(o(h));
|
|
3751
|
+
i.push(`func New${c}(${l.join(", ")}) ${c} {`), i.push(" // HACK check value"), i.push(` return ${c}{`), i.push(` ${p.join(`,
|
|
3752
|
+
`)},`), i.push(" }"), i.push("}"), i.push("");
|
|
3753
|
+
const _ = [...a._getContext().getAssociationMap()[r._attributes.__id]].filter((h) => h._attributes.rule === "Command" || h._attributes.rule === "FacadeCommand");
|
|
3754
|
+
for (const h of _) {
|
|
3755
|
+
const g = n(h), m = o(h);
|
|
3756
|
+
i.push(`func (${u} ${c}) Handle${g} (${m} ${g}) {`), i.push(" // HACK implement"), i.push("}");
|
|
3757
|
+
}
|
|
3758
|
+
return [
|
|
3759
|
+
{
|
|
3760
|
+
type: "Agg",
|
|
3761
|
+
imports: d,
|
|
3762
|
+
content: i.join(`
|
|
3763
|
+
`)
|
|
3764
|
+
}
|
|
3765
|
+
];
|
|
3766
|
+
}), e.commands._setEventCodeProvider(
|
|
3767
|
+
(r) => {
|
|
3768
|
+
const a = [], c = /* @__PURE__ */ new Set(), u = Object.values(r.inner), f = n(r), d = o(r);
|
|
3769
|
+
a.push(`type ${f} struct {`);
|
|
3770
|
+
for (const p of u)
|
|
3771
|
+
a.push(` ${o(p)} ${n(p)}`);
|
|
3772
|
+
a.push("}");
|
|
3773
|
+
for (const p of u)
|
|
3774
|
+
a.push(
|
|
3775
|
+
`func (${d} ${f}) Get${n(p)} () ${n(
|
|
3776
|
+
p
|
|
3777
|
+
)} {`
|
|
3778
|
+
), a.push(` return ${d}.${o(p)}`), a.push("}");
|
|
3779
|
+
const i = [], l = [];
|
|
3780
|
+
for (const p of u)
|
|
3781
|
+
i.push(`${o(p)} ${n(p)}`), l.push(o(p));
|
|
3782
|
+
return a.push(`func New${f}(${i.join(", ")}) ${f} {`), a.push(" // HACK check value"), a.push(` return ${f}{`), a.push(` ${l.join(`,
|
|
3783
|
+
`)},`), a.push(" }"), a.push("}"), [
|
|
3784
|
+
{
|
|
3785
|
+
type: "Event",
|
|
3786
|
+
imports: c,
|
|
3787
|
+
content: a.join(`
|
|
3788
|
+
`)
|
|
3789
|
+
}
|
|
3790
|
+
];
|
|
3791
|
+
}
|
|
3792
|
+
), e.commands._setCodeFileProvider(() => {
|
|
3793
|
+
const r = [], a = {}, c = [...t.value.namespace.split(/\./), t.value.moduleName], u = new y(c, `${t.value.moduleName}.go`), f = [], d = new y(c, `${t.value.moduleName}_value_object.go`), i = [];
|
|
3794
|
+
function l(m) {
|
|
3795
|
+
for (const v of Object.values(m)) {
|
|
3796
|
+
const C = n(v);
|
|
3797
|
+
if (a[`${c.join("/")}/${C}`] === !0)
|
|
3798
|
+
continue;
|
|
3799
|
+
const b = e.commands._genInfoCode(v);
|
|
3800
|
+
b.length !== 0 && (d.addImports(b[0].imports), i.push(b[0].content), i.push(""), a[`${c.join("/")}/${C}`] = !0);
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3803
|
+
const p = e.states.designer.value._getContext().getCommands();
|
|
3804
|
+
for (const m of p) {
|
|
3805
|
+
l(m.inner);
|
|
3806
|
+
const v = e.commands._genCommandCode(m);
|
|
3807
|
+
for (const C of v)
|
|
3808
|
+
a[C.content] !== !0 && (u.addImports(C.imports), f.push(C.content));
|
|
3809
|
+
}
|
|
3810
|
+
const _ = e.states.designer.value._getContext().getFacadeCommands();
|
|
3811
|
+
for (const m of _) {
|
|
3812
|
+
l(m.inner);
|
|
3813
|
+
const v = e.commands._genFacadeCommandCode(m);
|
|
3814
|
+
for (const C of v)
|
|
3815
|
+
a[C.content] !== !0 && (u.addImports(C.imports), f.push(C.content));
|
|
3816
|
+
}
|
|
3817
|
+
const h = e.states.designer.value._getContext().getAggs();
|
|
3818
|
+
for (const m of h) {
|
|
3819
|
+
l(m.inner);
|
|
3820
|
+
const v = e.commands._genAggCode(m);
|
|
3821
|
+
for (const C of v)
|
|
3822
|
+
a[C.content] !== !0 && (u.addImports(C.imports), f.push(C.content));
|
|
3823
|
+
}
|
|
3824
|
+
const g = e.states.designer.value._getContext().getEvents();
|
|
3825
|
+
for (const m of g) {
|
|
3826
|
+
l(m.inner);
|
|
3827
|
+
const v = e.commands._genEventCode(m);
|
|
3828
|
+
for (const C of v)
|
|
3829
|
+
a[C.content] !== !0 && (u.addImports(C.imports), f.push(C.content));
|
|
3830
|
+
}
|
|
3831
|
+
return u.appendContentln(`package ${t.value.moduleName}`), u.appendContentln(""), u.getImports().length > 0 && (u.appendContentln("import ("), u.appendContentln(` ${[...u.getImports()].join(`
|
|
3832
|
+
`)}`), u.appendContentln(")")), u.appendContentln(f.join(`
|
|
3833
|
+
`)), d.appendContentln(`package ${t.value.moduleName}`), d.appendContentln(""), d.getImports().length > 0 && (d.appendContentln("import ("), d.appendContentln(` ${[...d.getImports()].map((m) => `"${m}"`).join(`
|
|
3834
|
+
`)}`), d.appendContentln(")"), d.appendContentln("")), d.appendContentln(i.join(`
|
|
3835
|
+
`)), r.push(u), r.push(d), r;
|
|
3836
|
+
});
|
|
3837
|
+
}
|
|
3838
|
+
})), de = rt.CSharpGeneratorAddition, ai = Te.createHotSwapPlugin(() => {
|
|
3839
|
+
const e = " ";
|
|
3840
|
+
function t(n, o = 1) {
|
|
3841
|
+
return n.split(`
|
|
3842
|
+
`).map((s) => e.repeat(o) + s).join(`
|
|
3843
|
+
`);
|
|
3844
|
+
}
|
|
3845
|
+
return {
|
|
3846
|
+
unmount({ api: n }) {
|
|
3847
|
+
n.commands.clearCaches(), n.commands._setCommandCodeProvider(() => []), n.commands._setFacadeCommandCodeProvider(() => []), n.commands._setAggCodeProvider(() => []), n.commands._setEventCodeProvider(() => []), n.commands._setReadModelCodeProvider(() => []), n.commands._setCodeFileProvider(() => []), n.commands.setContext({});
|
|
3848
|
+
},
|
|
3849
|
+
mount({ api: n }) {
|
|
3850
|
+
const o = n.states.context;
|
|
3851
|
+
function s(c) {
|
|
3852
|
+
return $.stringToUpperCamel(c._attributes.name);
|
|
3853
|
+
}
|
|
3854
|
+
function r(c) {
|
|
3855
|
+
return c.has(de.RecordStruct) ? " struct" : "";
|
|
3856
|
+
}
|
|
3857
|
+
function a(c, u) {
|
|
3858
|
+
const f = o.value.additions, d = $.stringToLowerSnake(u._attributes.name).replace(/_/, " ");
|
|
3859
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(d) ? f.has(de.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(d) ? "int" : /\b(price)$/.test(d) ? "decimal" : /^(if|is)\b/.test(d) ? "bool" : pt(u) && (u._attributes.type === "Id" || u._attributes.type === "Version") ? "long" : "string";
|
|
3860
|
+
}
|
|
3861
|
+
n.commands._setInfoCodeProvider(
|
|
3862
|
+
(c) => {
|
|
3863
|
+
const u = o.value.additions, f = /* @__PURE__ */ new Set(), d = [];
|
|
3864
|
+
return d.push(
|
|
3865
|
+
`public record${r(u)} ${s(c)}(${a(
|
|
3866
|
+
f,
|
|
3867
|
+
c
|
|
3868
|
+
)} value);`
|
|
3869
|
+
), [
|
|
3870
|
+
{
|
|
3871
|
+
type: "Info",
|
|
3872
|
+
content: d.join(`
|
|
3873
|
+
`),
|
|
3874
|
+
imports: f
|
|
3875
|
+
}
|
|
3876
|
+
];
|
|
3877
|
+
}
|
|
3878
|
+
), n.commands._setCommandCodeProvider(
|
|
3879
|
+
(c) => {
|
|
3880
|
+
const u = [], f = o.value.additions, d = /* @__PURE__ */ new Set(), i = s(c);
|
|
3881
|
+
{
|
|
3882
|
+
const l = [], p = Object.values(c.inner), _ = f.has(de.CommandInterface) ? ` : ${o.value.commandInterface}` : "";
|
|
3883
|
+
l.push(`public record${r(f)} ${i}${_}`), l.push("(");
|
|
3884
|
+
const h = [];
|
|
3885
|
+
for (const g of p) {
|
|
3886
|
+
const m = s(g);
|
|
3887
|
+
h.push(` ${m} ${$.upperFirst(m)}`);
|
|
3888
|
+
}
|
|
3889
|
+
l.push(` ${h.join(`,
|
|
3890
|
+
`)}`), l.push(");"), u.push({
|
|
3891
|
+
type: "Command",
|
|
3892
|
+
content: l.join(`
|
|
3893
|
+
`),
|
|
3894
|
+
imports: d
|
|
3895
|
+
});
|
|
3896
|
+
}
|
|
3897
|
+
{
|
|
3898
|
+
const l = f.has(de.CommandHandlerInterface) ? ` : ${o.value.commandHandlerInterface}` : "", p = [];
|
|
3899
|
+
p.push(`public class ${i}Handler${l}`), p.push("{"), p.push(` public void Handle(${i} command)`), p.push(" {"), p.push(" // HACK implement"), p.push(" }"), p.push("}"), u.push({
|
|
3900
|
+
type: "CommandHandler",
|
|
3901
|
+
content: p.join(`
|
|
3902
|
+
`),
|
|
3903
|
+
imports: d
|
|
3904
|
+
});
|
|
3905
|
+
}
|
|
3906
|
+
return u;
|
|
3907
|
+
}
|
|
3908
|
+
), n.commands._setAggCodeProvider(
|
|
3909
|
+
(c) => {
|
|
3910
|
+
const u = [], f = n.states.designer.value, d = o.value.additions;
|
|
3911
|
+
{
|
|
3912
|
+
const i = /* @__PURE__ */ new Set(), l = [], p = d.has(de.AggInterface) ? ` : ${o.value.aggInterface}` : "";
|
|
3913
|
+
l.push(`public interface I${s(c)}${p}`), l.push("{");
|
|
3914
|
+
const _ = [], h = [...f._getContext().getAssociationMap()[c._attributes.__id]].filter((g) => g._attributes.rule === "Command" || g._attributes.rule === "FacadeCommand");
|
|
3915
|
+
for (const g of h) {
|
|
3916
|
+
const m = s(g);
|
|
3917
|
+
_.push(` void Handle${m}(${m} command);`);
|
|
3918
|
+
}
|
|
3919
|
+
l.push(` ${_.join(`
|
|
3920
|
+
|
|
3921
|
+
`)}`), l.push("}"), u.push({
|
|
3922
|
+
type: "Agg",
|
|
3923
|
+
content: l.join(`
|
|
3924
|
+
`),
|
|
3925
|
+
imports: i
|
|
3926
|
+
});
|
|
3927
|
+
}
|
|
3928
|
+
{
|
|
3929
|
+
const i = /* @__PURE__ */ new Set(), l = [], p = s(c);
|
|
3930
|
+
l.push(`public class ${p}: I${p}`), l.push("{");
|
|
3931
|
+
const _ = [...f._getContext().getAssociationMap()[c._attributes.__id]].filter((g) => g._attributes.rule === "Command" || g._attributes.rule === "FacadeCommand");
|
|
3932
|
+
for (const g of _) {
|
|
3933
|
+
const m = s(g);
|
|
3934
|
+
l.push(` ${m} ${$.lowerFirst(m)} { get; private set; }`), l.push("");
|
|
3935
|
+
}
|
|
3936
|
+
const h = [];
|
|
3937
|
+
for (const g of _) {
|
|
3938
|
+
const m = s(g);
|
|
3939
|
+
h.push(`public void Handle${m}(${m} command)`), h.push("{"), h.push(" // HACK implement"), h.push("}"), h.push("");
|
|
3940
|
+
}
|
|
3941
|
+
l.push(` ${h.join(`
|
|
3942
|
+
`)}`), u.push({
|
|
3943
|
+
type: "AggImpl",
|
|
3944
|
+
content: l.join(`
|
|
3945
|
+
`),
|
|
3946
|
+
imports: i
|
|
3947
|
+
});
|
|
3948
|
+
}
|
|
3949
|
+
return u;
|
|
3950
|
+
}
|
|
3951
|
+
), n.commands._setEventCodeProvider(
|
|
3952
|
+
(c) => {
|
|
3953
|
+
const u = o.value.additions, f = s(c), d = /* @__PURE__ */ new Set(), i = u.has(de.EventInterface) ? ` : ${o.value.eventInterface}` : "", l = Object.values(c.inner), p = [];
|
|
3954
|
+
p.push(`public record${r(u)} ${f}${i}`), p.push("(");
|
|
3955
|
+
const _ = [];
|
|
3956
|
+
for (const h of l) {
|
|
3957
|
+
const g = s(h);
|
|
3958
|
+
_.push(` ${g} ${$.upperFirst(g)}`);
|
|
3959
|
+
}
|
|
3960
|
+
return p.push(` ${_.join(`,
|
|
3961
|
+
`)}`), p.push(");"), [
|
|
3962
|
+
{
|
|
3963
|
+
type: "Event",
|
|
3964
|
+
content: p.join(`
|
|
3965
|
+
`),
|
|
3966
|
+
imports: d
|
|
3967
|
+
}
|
|
3968
|
+
];
|
|
3969
|
+
}
|
|
3970
|
+
), n.commands._setReadModelCodeProvider(() => []), n.commands._setCodeFileProvider(() => {
|
|
3971
|
+
const c = [], u = {}, f = [...o.value.namespace.split(/\./), $.stringToUpperCamel(o.value.moduleName)];
|
|
3972
|
+
function d(h) {
|
|
3973
|
+
for (const g of Object.values(h)) {
|
|
3974
|
+
const m = s(g) + ".cs";
|
|
3975
|
+
if (u[`${f.join("/")}/${m}`] === !0)
|
|
3976
|
+
continue;
|
|
3977
|
+
const v = n.commands._genInfoCode(g);
|
|
3978
|
+
if (v.length === 0)
|
|
3979
|
+
continue;
|
|
3980
|
+
const C = new y(f, m);
|
|
3981
|
+
for (const b of v[0].imports)
|
|
3982
|
+
C.appendContentln(`using ${b};`);
|
|
3983
|
+
C.appendContentln(""), C.appendContentln(
|
|
3984
|
+
`namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
|
|
3985
|
+
), C.appendContentln("{"), C.appendContentln(t(v[0].content)), C.appendContentln("}"), c.push(C), u[`${f.join("/")}/${m}`] = !0;
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
const i = n.states.designer.value._getContext().getCommands();
|
|
3989
|
+
for (const h of i) {
|
|
3990
|
+
d(h.inner);
|
|
3991
|
+
const g = s(h) + ".cs", m = n.commands._genCommandCode(h), v = new y(f, g);
|
|
3992
|
+
for (const C of m)
|
|
3993
|
+
if (C.type === "Command") {
|
|
3994
|
+
v.addImports(C.imports);
|
|
3995
|
+
for (const b of C.imports)
|
|
3996
|
+
v.appendContentln(`using ${b};`);
|
|
3997
|
+
v.appendContentln(""), v.appendContentln(
|
|
3998
|
+
`namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
|
|
3999
|
+
), v.appendContentln("{"), v.appendContentln(t(C.content)), v.appendContentln("}");
|
|
4000
|
+
}
|
|
4001
|
+
c.push(v);
|
|
4002
|
+
}
|
|
4003
|
+
const l = n.states.designer.value._getContext().getFacadeCommands();
|
|
4004
|
+
for (const h of l) {
|
|
4005
|
+
d(h.inner);
|
|
4006
|
+
const g = s(h) + ".cs", m = n.commands._genFacadeCommandCode(h), v = new y(f, g);
|
|
4007
|
+
v.addImports(m[0].imports);
|
|
4008
|
+
for (const C of m[0].imports)
|
|
4009
|
+
v.appendContentln(`using ${C};`);
|
|
4010
|
+
v.appendContentln(""), v.appendContentln(
|
|
4011
|
+
`namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
|
|
4012
|
+
), v.appendContentln("{"), v.appendContentln(t(m[0].content)), v.appendContentln("}"), c.push(v);
|
|
4013
|
+
}
|
|
4014
|
+
const p = n.states.designer.value._getContext().getAggs();
|
|
4015
|
+
for (const h of p) {
|
|
4016
|
+
d(h.inner);
|
|
4017
|
+
const g = n.commands._genAggCode(h), m = s(h) + ".cs", v = new y(f, m);
|
|
4018
|
+
for (const C of g) {
|
|
4019
|
+
v.addImports(C.imports);
|
|
4020
|
+
for (const b of C.imports)
|
|
4021
|
+
v.appendContentln(`using ${b};`);
|
|
4022
|
+
v.appendContentln("");
|
|
4023
|
+
}
|
|
4024
|
+
v.appendContentln(
|
|
4025
|
+
`namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
|
|
4026
|
+
), v.appendContentln("{");
|
|
4027
|
+
for (const C of g)
|
|
4028
|
+
v.appendContentln(t(C.content));
|
|
4029
|
+
v.appendContentln("}"), c.push(v);
|
|
4030
|
+
}
|
|
4031
|
+
const _ = n.states.designer.value._getContext().getEvents();
|
|
4032
|
+
for (const h of _) {
|
|
4033
|
+
d(h.inner);
|
|
4034
|
+
const g = s(h) + ".cs", m = n.commands._genEventCode(h), v = new y(f, g);
|
|
4035
|
+
v.addImports(m[0].imports);
|
|
4036
|
+
for (const C of m[0].imports)
|
|
4037
|
+
v.appendContentln(`using ${C};`);
|
|
4038
|
+
v.appendContentln(""), v.appendContentln(
|
|
4039
|
+
`namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
|
|
4040
|
+
), v.appendContentln("{"), v.appendContentln(t(m[0].content)), v.appendContentln("}"), c.push(v);
|
|
4041
|
+
}
|
|
4042
|
+
return c;
|
|
4043
|
+
});
|
|
4044
|
+
}
|
|
4045
|
+
};
|
|
4046
|
+
});
|
|
3657
4047
|
export {
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
4048
|
+
ai as GENERATOR_CSHARP_PLUGIN,
|
|
4049
|
+
ii as GENERATOR_GO_PLUGIN,
|
|
4050
|
+
si as GENERATOR_JAVA_PLUGIN,
|
|
4051
|
+
ri as GENERATOR_KOTLIN_PLUGIN,
|
|
4052
|
+
Te as GeneratorPliginHelper,
|
|
4053
|
+
oi as define,
|
|
4054
|
+
ni as useGeneratorAgg
|
|
3663
4055
|
};
|