@ddd-tool/domain-designer-generator 0.1.0-beta.0 → 0.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -5,49 +5,49 @@
5
5
  **/
6
6
  /*! #__NO_SIDE_EFFECTS__ */
7
7
  // @__NO_SIDE_EFFECTS__
8
- function Hn(e) {
8
+ function Kn(e) {
9
9
  const n = /* @__PURE__ */ Object.create(null);
10
10
  for (const t of e.split(",")) n[t] = 1;
11
11
  return (t) => t in n;
12
12
  }
13
13
  process.env.NODE_ENV !== "production" && Object.freeze({});
14
14
  process.env.NODE_ENV !== "production" && Object.freeze([]);
15
- const xe = Object.assign, Mn = Object.prototype.hasOwnProperty, De = (e, n) => Mn.call(e, n), G = Array.isArray, X = (e) => cn(e) === "[object Map]", Ln = (e) => typeof e == "function", Kn = (e) => typeof e == "string", re = (e) => typeof e == "symbol", be = (e) => e !== null && typeof e == "object", zn = Object.prototype.toString, cn = (e) => zn.call(e), un = (e) => cn(e).slice(8, -1), Ge = (e) => Kn(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Un = (e) => {
15
+ const Fe = Object.assign, zn = Object.prototype.hasOwnProperty, Ve = (e, n) => zn.call(e, n), J = Array.isArray, ne = (e) => pn(e) === "[object Map]", Bn = (e) => typeof e == "function", Un = (e) => typeof e == "string", ce = (e) => typeof e == "symbol", ye = (e) => e !== null && typeof e == "object", Gn = Object.prototype.toString, pn = (e) => Gn.call(e), dn = (e) => pn(e).slice(8, -1), Je = (e) => Un(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Wn = (e) => {
16
16
  const n = /* @__PURE__ */ Object.create(null);
17
17
  return (t) => n[t] || (n[t] = e(t));
18
- }, Gn = Un((e) => e.charAt(0).toUpperCase() + e.slice(1)), B = (e, n) => !Object.is(e, n);
18
+ }, Jn = Wn((e) => e.charAt(0).toUpperCase() + e.slice(1)), Y = (e, n) => !Object.is(e, n);
19
19
  /**
20
20
  * @vue/reactivity v3.5.13
21
21
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
22
22
  * @license MIT
23
23
  **/
24
- function Y(e, ...n) {
24
+ function X(e, ...n) {
25
25
  }
26
- let w, ln = 0, Q, ee;
27
- function Bn(e, n = !1) {
26
+ let S, fn = 0, te, oe;
27
+ function Yn(e, n = !1) {
28
28
  if (e.flags |= 8, n) {
29
- e.next = ee, ee = e;
29
+ e.next = oe, oe = e;
30
30
  return;
31
31
  }
32
- e.next = Q, Q = e;
32
+ e.next = te, te = e;
33
33
  }
34
- function Be() {
35
- ln++;
34
+ function Ye() {
35
+ fn++;
36
36
  }
37
- function We() {
38
- if (--ln > 0)
37
+ function Ze() {
38
+ if (--fn > 0)
39
39
  return;
40
- if (ee) {
41
- let n = ee;
42
- for (ee = void 0; n; ) {
40
+ if (oe) {
41
+ let n = oe;
42
+ for (oe = void 0; n; ) {
43
43
  const t = n.next;
44
44
  n.next = void 0, n.flags &= -9, n = t;
45
45
  }
46
46
  }
47
47
  let e;
48
- for (; Q; ) {
49
- let n = Q;
50
- for (Q = void 0; n; ) {
48
+ for (; te; ) {
49
+ let n = te;
50
+ for (te = void 0; n; ) {
51
51
  const t = n.next;
52
52
  if (n.next = void 0, n.flags &= -9, n.flags & 1)
53
53
  try {
@@ -60,106 +60,106 @@ function We() {
60
60
  }
61
61
  if (e) throw e;
62
62
  }
63
- function Wn(e) {
63
+ function Zn(e) {
64
64
  for (let n = e.deps; n; n = n.nextDep)
65
65
  n.version = -1, n.prevActiveLink = n.dep.activeLink, n.dep.activeLink = n;
66
66
  }
67
- function Jn(e) {
67
+ function qn(e) {
68
68
  let n, t = e.depsTail, o = t;
69
69
  for (; o; ) {
70
70
  const s = o.prevDep;
71
- o.version === -1 ? (o === t && (t = s), dn(o), Zn(o)) : n = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
71
+ o.version === -1 ? (o === t && (t = s), hn(o), Qn(o)) : n = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
72
72
  }
73
73
  e.deps = n, e.depsTail = t;
74
74
  }
75
- function Yn(e) {
75
+ function Xn(e) {
76
76
  for (let n = e.deps; n; n = n.nextDep)
77
- if (n.dep.version !== n.version || n.dep.computed && (pn(n.dep.computed) || n.dep.version !== n.version))
77
+ if (n.dep.version !== n.version || n.dep.computed && (mn(n.dep.computed) || n.dep.version !== n.version))
78
78
  return !0;
79
79
  return !!e._dirty;
80
80
  }
81
- function pn(e) {
82
- if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === ne))
81
+ function mn(e) {
82
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === se))
83
83
  return;
84
- e.globalVersion = ne;
84
+ e.globalVersion = se;
85
85
  const n = e.dep;
86
- if (e.flags |= 2, n.version > 0 && !e.isSSR && e.deps && !Yn(e)) {
86
+ if (e.flags |= 2, n.version > 0 && !e.isSSR && e.deps && !Xn(e)) {
87
87
  e.flags &= -3;
88
88
  return;
89
89
  }
90
- const t = w, o = F;
91
- w = e, F = !0;
90
+ const t = S, o = R;
91
+ S = e, R = !0;
92
92
  try {
93
- Wn(e);
93
+ Zn(e);
94
94
  const s = e.fn(e._value);
95
- (n.version === 0 || B(s, e._value)) && (e._value = s, n.version++);
95
+ (n.version === 0 || Y(s, e._value)) && (e._value = s, n.version++);
96
96
  } catch (s) {
97
97
  throw n.version++, s;
98
98
  } finally {
99
- w = t, F = o, Jn(e), e.flags &= -3;
99
+ S = t, R = o, qn(e), e.flags &= -3;
100
100
  }
101
101
  }
102
- function dn(e, n = !1) {
102
+ function hn(e, n = !1) {
103
103
  const { dep: t, prevSub: o, nextSub: s } = e;
104
104
  if (o && (o.nextSub = s, e.prevSub = void 0), s && (s.prevSub = o, e.nextSub = void 0), process.env.NODE_ENV !== "production" && t.subsHead === e && (t.subsHead = s), t.subs === e && (t.subs = o, !o && t.computed)) {
105
105
  t.computed.flags &= -5;
106
- for (let r = t.computed.deps; r; r = r.nextDep)
107
- dn(r, !0);
106
+ for (let a = t.computed.deps; a; a = a.nextDep)
107
+ hn(a, !0);
108
108
  }
109
109
  !n && !--t.sc && t.map && t.map.delete(t.key);
110
110
  }
111
- function Zn(e) {
111
+ function Qn(e) {
112
112
  const { prevDep: n, nextDep: t } = e;
113
113
  n && (n.nextDep = t, e.prevDep = void 0), t && (t.prevDep = n, e.nextDep = void 0);
114
114
  }
115
- let F = !0;
116
- const fn = [];
117
- function qn() {
118
- fn.push(F), F = !1;
115
+ let R = !0;
116
+ const gn = [];
117
+ function et() {
118
+ gn.push(R), R = !1;
119
119
  }
120
- function Xn() {
121
- const e = fn.pop();
122
- F = e === void 0 ? !0 : e;
120
+ function nt() {
121
+ const e = gn.pop();
122
+ R = e === void 0 ? !0 : e;
123
123
  }
124
- let ne = 0;
125
- class Qn {
124
+ let se = 0;
125
+ class tt {
126
126
  constructor(n, t) {
127
127
  this.sub = n, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
128
128
  }
129
129
  }
130
- class Je {
130
+ class qe {
131
131
  constructor(n) {
132
132
  this.computed = n, 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);
133
133
  }
134
134
  track(n) {
135
- if (!w || !F || w === this.computed)
135
+ if (!S || !R || S === this.computed)
136
136
  return;
137
137
  let t = this.activeLink;
138
- if (t === void 0 || t.sub !== w)
139
- t = this.activeLink = new Qn(w, this), w.deps ? (t.prevDep = w.depsTail, w.depsTail.nextDep = t, w.depsTail = t) : w.deps = w.depsTail = t, mn(t);
138
+ if (t === void 0 || t.sub !== S)
139
+ t = this.activeLink = new tt(S, this), S.deps ? (t.prevDep = S.depsTail, S.depsTail.nextDep = t, S.depsTail = t) : S.deps = S.depsTail = t, vn(t);
140
140
  else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
141
141
  const o = t.nextDep;
142
- o.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = o), t.prevDep = w.depsTail, t.nextDep = void 0, w.depsTail.nextDep = t, w.depsTail = t, w.deps === t && (w.deps = o);
142
+ o.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = o), t.prevDep = S.depsTail, t.nextDep = void 0, S.depsTail.nextDep = t, S.depsTail = t, S.deps === t && (S.deps = o);
143
143
  }
144
- return process.env.NODE_ENV !== "production" && w.onTrack && w.onTrack(
145
- xe(
144
+ return process.env.NODE_ENV !== "production" && S.onTrack && S.onTrack(
145
+ Fe(
146
146
  {
147
- effect: w
147
+ effect: S
148
148
  },
149
149
  n
150
150
  )
151
151
  ), t;
152
152
  }
153
153
  trigger(n) {
154
- this.version++, ne++, this.notify(n);
154
+ this.version++, se++, this.notify(n);
155
155
  }
156
156
  notify(n) {
157
- Be();
157
+ Ye();
158
158
  try {
159
159
  if (process.env.NODE_ENV !== "production")
160
160
  for (let t = this.subsHead; t; t = t.nextSub)
161
161
  t.sub.onTrigger && !(t.sub.flags & 8) && t.sub.onTrigger(
162
- xe(
162
+ Fe(
163
163
  {
164
164
  effect: t.sub
165
165
  },
@@ -169,331 +169,331 @@ class Je {
169
169
  for (let t = this.subs; t; t = t.prevSub)
170
170
  t.sub.notify() && t.sub.dep.notify();
171
171
  } finally {
172
- We();
172
+ Ze();
173
173
  }
174
174
  }
175
175
  }
176
- function mn(e) {
176
+ function vn(e) {
177
177
  if (e.dep.sc++, e.sub.flags & 4) {
178
178
  const n = e.dep.computed;
179
179
  if (n && !e.dep.subs) {
180
180
  n.flags |= 20;
181
181
  for (let o = n.deps; o; o = o.nextDep)
182
- mn(o);
182
+ vn(o);
183
183
  }
184
184
  const t = e.dep.subs;
185
185
  t !== e && (e.prevSub = t, t && (t.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
186
186
  }
187
187
  }
188
- const Fe = /* @__PURE__ */ new WeakMap(), k = Symbol(
188
+ const Re = /* @__PURE__ */ new WeakMap(), M = Symbol(
189
189
  process.env.NODE_ENV !== "production" ? "Object iterate" : ""
190
- ), Te = Symbol(
190
+ ), ke = Symbol(
191
191
  process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
192
- ), te = Symbol(
192
+ ), re = Symbol(
193
193
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
194
194
  );
195
- function A(e, n, t) {
196
- if (F && w) {
197
- let o = Fe.get(e);
198
- o || Fe.set(e, o = /* @__PURE__ */ new Map());
195
+ function I(e, n, t) {
196
+ if (R && S) {
197
+ let o = Re.get(e);
198
+ o || Re.set(e, o = /* @__PURE__ */ new Map());
199
199
  let s = o.get(t);
200
- s || (o.set(t, s = new Je()), s.map = o, s.key = t), process.env.NODE_ENV !== "production" ? s.track({
200
+ s || (o.set(t, s = new qe()), s.map = o, s.key = t), process.env.NODE_ENV !== "production" ? s.track({
201
201
  target: e,
202
202
  type: n,
203
203
  key: t
204
204
  }) : s.track();
205
205
  }
206
206
  }
207
- function D(e, n, t, o, s, r) {
208
- const a = Fe.get(e);
209
- if (!a) {
210
- ne++;
207
+ function V(e, n, t, o, s, a) {
208
+ const c = Re.get(e);
209
+ if (!c) {
210
+ se++;
211
211
  return;
212
212
  }
213
- const c = (f) => {
214
- f && (process.env.NODE_ENV !== "production" ? f.trigger({
213
+ const g = (v) => {
214
+ v && (process.env.NODE_ENV !== "production" ? v.trigger({
215
215
  target: e,
216
216
  type: n,
217
217
  key: t,
218
218
  newValue: o,
219
219
  oldValue: s,
220
- oldTarget: r
221
- }) : f.trigger());
220
+ oldTarget: a
221
+ }) : v.trigger());
222
222
  };
223
- if (Be(), n === "clear")
224
- a.forEach(c);
223
+ if (Ye(), n === "clear")
224
+ c.forEach(g);
225
225
  else {
226
- const f = G(e), p = f && Ge(t);
227
- if (f && t === "length") {
228
- const l = Number(o);
229
- a.forEach((i, u) => {
230
- (u === "length" || u === te || !re(u) && u >= l) && c(i);
226
+ const v = J(e), d = v && Je(t);
227
+ if (v && t === "length") {
228
+ const r = Number(o);
229
+ c.forEach((i, l) => {
230
+ (l === "length" || l === re || !ce(l) && l >= r) && g(i);
231
231
  });
232
232
  } else
233
- switch ((t !== void 0 || a.has(void 0)) && c(a.get(t)), p && c(a.get(te)), n) {
233
+ switch ((t !== void 0 || c.has(void 0)) && g(c.get(t)), d && g(c.get(re)), n) {
234
234
  case "add":
235
- f ? p && c(a.get("length")) : (c(a.get(k)), X(e) && c(a.get(Te)));
235
+ v ? d && g(c.get("length")) : (g(c.get(M)), ne(e) && g(c.get(ke)));
236
236
  break;
237
237
  case "delete":
238
- f || (c(a.get(k)), X(e) && c(a.get(Te)));
238
+ v || (g(c.get(M)), ne(e) && g(c.get(ke)));
239
239
  break;
240
240
  case "set":
241
- X(e) && c(a.get(k));
241
+ ne(e) && g(c.get(M));
242
242
  break;
243
243
  }
244
244
  }
245
- We();
245
+ Ze();
246
246
  }
247
- function K(e) {
248
- const n = N(e);
249
- return n === e ? n : (A(n, "iterate", te), T(e) ? n : n.map(S));
247
+ function U(e) {
248
+ const n = E(e);
249
+ return n === e ? n : (I(n, "iterate", re), k(e) ? n : n.map(A));
250
250
  }
251
- function Ye(e) {
252
- return A(e = N(e), "iterate", te), e;
251
+ function Xe(e) {
252
+ return I(e = E(e), "iterate", re), e;
253
253
  }
254
- const et = {
254
+ const ot = {
255
255
  __proto__: null,
256
256
  [Symbol.iterator]() {
257
- return Ee(this, Symbol.iterator, S);
257
+ return Oe(this, Symbol.iterator, A);
258
258
  },
259
259
  concat(...e) {
260
- return K(this).concat(
261
- ...e.map((n) => G(n) ? K(n) : n)
260
+ return U(this).concat(
261
+ ...e.map((n) => J(n) ? U(n) : n)
262
262
  );
263
263
  },
264
264
  entries() {
265
- return Ee(this, "entries", (e) => (e[1] = S(e[1]), e));
265
+ return Oe(this, "entries", (e) => (e[1] = A(e[1]), e));
266
266
  },
267
267
  every(e, n) {
268
- return O(this, "every", e, n, void 0, arguments);
268
+ return P(this, "every", e, n, void 0, arguments);
269
269
  },
270
270
  filter(e, n) {
271
- return O(this, "filter", e, n, (t) => t.map(S), arguments);
271
+ return P(this, "filter", e, n, (t) => t.map(A), arguments);
272
272
  },
273
273
  find(e, n) {
274
- return O(this, "find", e, n, S, arguments);
274
+ return P(this, "find", e, n, A, arguments);
275
275
  },
276
276
  findIndex(e, n) {
277
- return O(this, "findIndex", e, n, void 0, arguments);
277
+ return P(this, "findIndex", e, n, void 0, arguments);
278
278
  },
279
279
  findLast(e, n) {
280
- return O(this, "findLast", e, n, S, arguments);
280
+ return P(this, "findLast", e, n, A, arguments);
281
281
  },
282
282
  findLastIndex(e, n) {
283
- return O(this, "findLastIndex", e, n, void 0, arguments);
283
+ return P(this, "findLastIndex", e, n, void 0, arguments);
284
284
  },
285
285
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
286
286
  forEach(e, n) {
287
- return O(this, "forEach", e, n, void 0, arguments);
287
+ return P(this, "forEach", e, n, void 0, arguments);
288
288
  },
289
289
  includes(...e) {
290
- return Se(this, "includes", e);
290
+ return Ae(this, "includes", e);
291
291
  },
292
292
  indexOf(...e) {
293
- return Se(this, "indexOf", e);
293
+ return Ae(this, "indexOf", e);
294
294
  },
295
295
  join(e) {
296
- return K(this).join(e);
296
+ return U(this).join(e);
297
297
  },
298
298
  // keys() iterator only reads `length`, no optimisation required
299
299
  lastIndexOf(...e) {
300
- return Se(this, "lastIndexOf", e);
300
+ return Ae(this, "lastIndexOf", e);
301
301
  },
302
302
  map(e, n) {
303
- return O(this, "map", e, n, void 0, arguments);
303
+ return P(this, "map", e, n, void 0, arguments);
304
304
  },
305
305
  pop() {
306
- return q(this, "pop");
306
+ return ee(this, "pop");
307
307
  },
308
308
  push(...e) {
309
- return q(this, "push", e);
309
+ return ee(this, "push", e);
310
310
  },
311
311
  reduce(e, ...n) {
312
- return on(this, "reduce", e, n);
312
+ return an(this, "reduce", e, n);
313
313
  },
314
314
  reduceRight(e, ...n) {
315
- return on(this, "reduceRight", e, n);
315
+ return an(this, "reduceRight", e, n);
316
316
  },
317
317
  shift() {
318
- return q(this, "shift");
318
+ return ee(this, "shift");
319
319
  },
320
320
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
321
321
  some(e, n) {
322
- return O(this, "some", e, n, void 0, arguments);
322
+ return P(this, "some", e, n, void 0, arguments);
323
323
  },
324
324
  splice(...e) {
325
- return q(this, "splice", e);
325
+ return ee(this, "splice", e);
326
326
  },
327
327
  toReversed() {
328
- return K(this).toReversed();
328
+ return U(this).toReversed();
329
329
  },
330
330
  toSorted(e) {
331
- return K(this).toSorted(e);
331
+ return U(this).toSorted(e);
332
332
  },
333
333
  toSpliced(...e) {
334
- return K(this).toSpliced(...e);
334
+ return U(this).toSpliced(...e);
335
335
  },
336
336
  unshift(...e) {
337
- return q(this, "unshift", e);
337
+ return ee(this, "unshift", e);
338
338
  },
339
339
  values() {
340
- return Ee(this, "values", S);
340
+ return Oe(this, "values", A);
341
341
  }
342
342
  };
343
- function Ee(e, n, t) {
344
- const o = Ye(e), s = o[n]();
345
- return o !== e && !T(e) && (s._next = s.next, s.next = () => {
346
- const r = s._next();
347
- return r.value && (r.value = t(r.value)), r;
343
+ function Oe(e, n, t) {
344
+ const o = Xe(e), s = o[n]();
345
+ return o !== e && !k(e) && (s._next = s.next, s.next = () => {
346
+ const a = s._next();
347
+ return a.value && (a.value = t(a.value)), a;
348
348
  }), s;
349
349
  }
350
- const nt = Array.prototype;
351
- function O(e, n, t, o, s, r) {
352
- const a = Ye(e), c = a !== e && !T(e), f = a[n];
353
- if (f !== nt[n]) {
354
- const i = f.apply(e, r);
355
- return c ? S(i) : i;
356
- }
357
- let p = t;
358
- a !== e && (c ? p = function(i, u) {
359
- return t.call(this, S(i), u, e);
360
- } : t.length > 2 && (p = function(i, u) {
361
- return t.call(this, i, u, e);
350
+ const st = Array.prototype;
351
+ function P(e, n, t, o, s, a) {
352
+ const c = Xe(e), g = c !== e && !k(e), v = c[n];
353
+ if (v !== st[n]) {
354
+ const i = v.apply(e, a);
355
+ return g ? A(i) : i;
356
+ }
357
+ let d = t;
358
+ c !== e && (g ? d = function(i, l) {
359
+ return t.call(this, A(i), l, e);
360
+ } : t.length > 2 && (d = function(i, l) {
361
+ return t.call(this, i, l, e);
362
362
  }));
363
- const l = f.call(a, p, o);
364
- return c && s ? s(l) : l;
365
- }
366
- function on(e, n, t, o) {
367
- const s = Ye(e);
368
- let r = t;
369
- return s !== e && (T(e) ? t.length > 3 && (r = function(a, c, f) {
370
- return t.call(this, a, c, f, e);
371
- }) : r = function(a, c, f) {
372
- return t.call(this, a, S(c), f, e);
373
- }), s[n](r, ...o);
374
- }
375
- function Se(e, n, t) {
376
- const o = N(e);
377
- A(o, "iterate", te);
363
+ const r = v.call(c, d, o);
364
+ return g && s ? s(r) : r;
365
+ }
366
+ function an(e, n, t, o) {
367
+ const s = Xe(e);
368
+ let a = t;
369
+ return s !== e && (k(e) ? t.length > 3 && (a = function(c, g, v) {
370
+ return t.call(this, c, g, v, e);
371
+ }) : a = function(c, g, v) {
372
+ return t.call(this, c, A(g), v, e);
373
+ }), s[n](a, ...o);
374
+ }
375
+ function Ae(e, n, t) {
376
+ const o = E(e);
377
+ I(o, "iterate", re);
378
378
  const s = o[n](...t);
379
- return (s === -1 || s === !1) && vt(t[0]) ? (t[0] = N(t[0]), o[n](...t)) : s;
379
+ return (s === -1 || s === !1) && Ct(t[0]) ? (t[0] = E(t[0]), o[n](...t)) : s;
380
380
  }
381
- function q(e, n, t = []) {
382
- qn(), Be();
383
- const o = N(e)[n].apply(e, t);
384
- return We(), Xn(), o;
381
+ function ee(e, n, t = []) {
382
+ et(), Ye();
383
+ const o = E(e)[n].apply(e, t);
384
+ return Ze(), nt(), o;
385
385
  }
386
- const tt = /* @__PURE__ */ Hn("__proto__,__v_isRef,__isVue"), hn = new Set(
387
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(re)
386
+ const rt = /* @__PURE__ */ Kn("__proto__,__v_isRef,__isVue"), _n = new Set(
387
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ce)
388
388
  );
389
- function ot(e) {
390
- re(e) || (e = String(e));
391
- const n = N(this);
392
- return A(n, "has", e), n.hasOwnProperty(e);
389
+ function at(e) {
390
+ ce(e) || (e = String(e));
391
+ const n = E(this);
392
+ return I(n, "has", e), n.hasOwnProperty(e);
393
393
  }
394
- class vn {
394
+ class Cn {
395
395
  constructor(n = !1, t = !1) {
396
396
  this._isReadonly = n, this._isShallow = t;
397
397
  }
398
398
  get(n, t, o) {
399
399
  if (t === "__v_skip") return n.__v_skip;
400
- const s = this._isReadonly, r = this._isShallow;
400
+ const s = this._isReadonly, a = this._isShallow;
401
401
  if (t === "__v_isReactive")
402
402
  return !s;
403
403
  if (t === "__v_isReadonly")
404
404
  return s;
405
405
  if (t === "__v_isShallow")
406
- return r;
406
+ return a;
407
407
  if (t === "__v_raw")
408
- return o === (s ? r ? $n : Cn : r ? ft : _n).get(n) || // receiver is not the reactive proxy, but has the same prototype
408
+ return o === (s ? a ? Nn : wn : a ? gt : bn).get(n) || // receiver is not the reactive proxy, but has the same prototype
409
409
  // this means the receiver is a user proxy of the reactive proxy
410
410
  Object.getPrototypeOf(n) === Object.getPrototypeOf(o) ? n : void 0;
411
- const a = G(n);
411
+ const c = J(n);
412
412
  if (!s) {
413
- let f;
414
- if (a && (f = et[t]))
415
- return f;
413
+ let v;
414
+ if (c && (v = ot[t]))
415
+ return v;
416
416
  if (t === "hasOwnProperty")
417
- return ot;
417
+ return at;
418
418
  }
419
- const c = Reflect.get(
419
+ const g = Reflect.get(
420
420
  n,
421
421
  t,
422
422
  // if this is a proxy wrapping a ref, return methods using the raw ref
423
423
  // as receiver so that we don't have to call `toRaw` on the ref in all
424
424
  // its class methods
425
- W(n) ? n : o
425
+ Z(n) ? n : o
426
426
  );
427
- return (re(t) ? hn.has(t) : tt(t)) || (s || A(n, "get", t), r) ? c : W(c) ? a && Ge(t) ? c : c.value : be(c) ? s ? de(c) : bn(c) : c;
427
+ return (ce(t) ? _n.has(t) : rt(t)) || (s || I(n, "get", t), a) ? g : Z(g) ? c && Je(t) ? g : g.value : ye(g) ? s ? he(g) : yn(g) : g;
428
428
  }
429
429
  }
430
- class st extends vn {
430
+ class it extends Cn {
431
431
  constructor(n = !1) {
432
432
  super(!1, n);
433
433
  }
434
434
  set(n, t, o, s) {
435
- let r = n[t];
435
+ let a = n[t];
436
436
  if (!this._isShallow) {
437
- const f = Z(r);
438
- if (!T(o) && !Z(o) && (r = N(r), o = N(o)), !G(n) && W(r) && !W(o))
439
- return f ? !1 : (r.value = o, !0);
437
+ const v = Q(a);
438
+ if (!k(o) && !Q(o) && (a = E(a), o = E(o)), !J(n) && Z(a) && !Z(o))
439
+ return v ? !1 : (a.value = o, !0);
440
440
  }
441
- const a = G(n) && Ge(t) ? Number(t) < n.length : De(n, t), c = Reflect.set(
441
+ const c = J(n) && Je(t) ? Number(t) < n.length : Ve(n, t), g = Reflect.set(
442
442
  n,
443
443
  t,
444
444
  o,
445
- W(n) ? n : s
445
+ Z(n) ? n : s
446
446
  );
447
- return n === N(s) && (a ? B(o, r) && D(n, "set", t, o, r) : D(n, "add", t, o)), c;
447
+ return n === E(s) && (c ? Y(o, a) && V(n, "set", t, o, a) : V(n, "add", t, o)), g;
448
448
  }
449
449
  deleteProperty(n, t) {
450
- const o = De(n, t), s = n[t], r = Reflect.deleteProperty(n, t);
451
- return r && o && D(n, "delete", t, void 0, s), r;
450
+ const o = Ve(n, t), s = n[t], a = Reflect.deleteProperty(n, t);
451
+ return a && o && V(n, "delete", t, void 0, s), a;
452
452
  }
453
453
  has(n, t) {
454
454
  const o = Reflect.has(n, t);
455
- return (!re(t) || !hn.has(t)) && A(n, "has", t), o;
455
+ return (!ce(t) || !_n.has(t)) && I(n, "has", t), o;
456
456
  }
457
457
  ownKeys(n) {
458
- return A(
458
+ return I(
459
459
  n,
460
460
  "iterate",
461
- G(n) ? "length" : k
461
+ J(n) ? "length" : M
462
462
  ), Reflect.ownKeys(n);
463
463
  }
464
464
  }
465
- class gn extends vn {
465
+ class $n extends Cn {
466
466
  constructor(n = !1) {
467
467
  super(!0, n);
468
468
  }
469
469
  set(n, t) {
470
- return process.env.NODE_ENV !== "production" && Y(
470
+ return process.env.NODE_ENV !== "production" && X(
471
471
  `Set operation on key "${String(t)}" failed: target is readonly.`,
472
472
  n
473
473
  ), !0;
474
474
  }
475
475
  deleteProperty(n, t) {
476
- return process.env.NODE_ENV !== "production" && Y(
476
+ return process.env.NODE_ENV !== "production" && X(
477
477
  `Delete operation on key "${String(t)}" failed: target is readonly.`,
478
478
  n
479
479
  ), !0;
480
480
  }
481
481
  }
482
- const rt = /* @__PURE__ */ new st(), at = /* @__PURE__ */ new gn(), it = /* @__PURE__ */ new gn(!0), Re = (e) => e, ie = (e) => Reflect.getPrototypeOf(e);
483
- function ct(e, n, t) {
482
+ const ct = /* @__PURE__ */ new it(), ut = /* @__PURE__ */ new $n(), lt = /* @__PURE__ */ new $n(!0), He = (e) => e, le = (e) => Reflect.getPrototypeOf(e);
483
+ function pt(e, n, t) {
484
484
  return function(...o) {
485
- const s = this.__v_raw, r = N(s), a = X(r), c = e === "entries" || e === Symbol.iterator && a, f = e === "keys" && a, p = s[e](...o), l = t ? Re : n ? ke : S;
486
- return !n && A(
487
- r,
485
+ const s = this.__v_raw, a = E(s), c = ne(a), g = e === "entries" || e === Symbol.iterator && c, v = e === "keys" && c, d = s[e](...o), r = t ? He : n ? Me : A;
486
+ return !n && I(
487
+ a,
488
488
  "iterate",
489
- f ? Te : k
489
+ v ? ke : M
490
490
  ), {
491
491
  // iterator protocol
492
492
  next() {
493
- const { value: i, done: u } = p.next();
494
- return u ? { value: i, done: u } : {
495
- value: c ? [l(i[0]), l(i[1])] : l(i),
496
- done: u
493
+ const { value: i, done: l } = d.next();
494
+ return l ? { value: i, done: l } : {
495
+ value: g ? [r(i[0]), r(i[1])] : r(i),
496
+ done: l
497
497
  };
498
498
  },
499
499
  // iterable protocol
@@ -503,80 +503,80 @@ function ct(e, n, t) {
503
503
  };
504
504
  };
505
505
  }
506
- function ce(e) {
506
+ function pe(e) {
507
507
  return function(...n) {
508
508
  if (process.env.NODE_ENV !== "production") {
509
509
  const t = n[0] ? `on key "${n[0]}" ` : "";
510
- Y(
511
- `${Gn(e)} operation ${t}failed: target is readonly.`,
512
- N(this)
510
+ X(
511
+ `${Jn(e)} operation ${t}failed: target is readonly.`,
512
+ E(this)
513
513
  );
514
514
  }
515
515
  return e === "delete" ? !1 : e === "clear" ? void 0 : this;
516
516
  };
517
517
  }
518
- function ut(e, n) {
518
+ function dt(e, n) {
519
519
  const t = {
520
520
  get(s) {
521
- const r = this.__v_raw, a = N(r), c = N(s);
522
- e || (B(s, c) && A(a, "get", s), A(a, "get", c));
523
- const { has: f } = ie(a), p = n ? Re : e ? ke : S;
524
- if (f.call(a, s))
525
- return p(r.get(s));
526
- if (f.call(a, c))
527
- return p(r.get(c));
528
- r !== a && r.get(s);
521
+ const a = this.__v_raw, c = E(a), g = E(s);
522
+ e || (Y(s, g) && I(c, "get", s), I(c, "get", g));
523
+ const { has: v } = le(c), d = n ? He : e ? Me : A;
524
+ if (v.call(c, s))
525
+ return d(a.get(s));
526
+ if (v.call(c, g))
527
+ return d(a.get(g));
528
+ a !== c && a.get(s);
529
529
  },
530
530
  get size() {
531
531
  const s = this.__v_raw;
532
- return !e && A(N(s), "iterate", k), Reflect.get(s, "size", s);
532
+ return !e && I(E(s), "iterate", M), Reflect.get(s, "size", s);
533
533
  },
534
534
  has(s) {
535
- const r = this.__v_raw, a = N(r), c = N(s);
536
- return e || (B(s, c) && A(a, "has", s), A(a, "has", c)), s === c ? r.has(s) : r.has(s) || r.has(c);
535
+ const a = this.__v_raw, c = E(a), g = E(s);
536
+ return e || (Y(s, g) && I(c, "has", s), I(c, "has", g)), s === g ? a.has(s) : a.has(s) || a.has(g);
537
537
  },
538
- forEach(s, r) {
539
- const a = this, c = a.__v_raw, f = N(c), p = n ? Re : e ? ke : S;
540
- return !e && A(f, "iterate", k), c.forEach((l, i) => s.call(r, p(l), p(i), a));
538
+ forEach(s, a) {
539
+ const c = this, g = c.__v_raw, v = E(g), d = n ? He : e ? Me : A;
540
+ return !e && I(v, "iterate", M), g.forEach((r, i) => s.call(a, d(r), d(i), c));
541
541
  }
542
542
  };
543
- return xe(
543
+ return Fe(
544
544
  t,
545
545
  e ? {
546
- add: ce("add"),
547
- set: ce("set"),
548
- delete: ce("delete"),
549
- clear: ce("clear")
546
+ add: pe("add"),
547
+ set: pe("set"),
548
+ delete: pe("delete"),
549
+ clear: pe("clear")
550
550
  } : {
551
551
  add(s) {
552
- !n && !T(s) && !Z(s) && (s = N(s));
553
- const r = N(this);
554
- return ie(r).has.call(r, s) || (r.add(s), D(r, "add", s, s)), this;
552
+ !n && !k(s) && !Q(s) && (s = E(s));
553
+ const a = E(this);
554
+ return le(a).has.call(a, s) || (a.add(s), V(a, "add", s, s)), this;
555
555
  },
556
- set(s, r) {
557
- !n && !T(r) && !Z(r) && (r = N(r));
558
- const a = N(this), { has: c, get: f } = ie(a);
559
- let p = c.call(a, s);
560
- p ? process.env.NODE_ENV !== "production" && sn(a, c, s) : (s = N(s), p = c.call(a, s));
561
- const l = f.call(a, s);
562
- return a.set(s, r), p ? B(r, l) && D(a, "set", s, r, l) : D(a, "add", s, r), this;
556
+ set(s, a) {
557
+ !n && !k(a) && !Q(a) && (a = E(a));
558
+ const c = E(this), { has: g, get: v } = le(c);
559
+ let d = g.call(c, s);
560
+ d ? process.env.NODE_ENV !== "production" && cn(c, g, s) : (s = E(s), d = g.call(c, s));
561
+ const r = v.call(c, s);
562
+ return c.set(s, a), d ? Y(a, r) && V(c, "set", s, a, r) : V(c, "add", s, a), this;
563
563
  },
564
564
  delete(s) {
565
- const r = N(this), { has: a, get: c } = ie(r);
566
- let f = a.call(r, s);
567
- f ? process.env.NODE_ENV !== "production" && sn(r, a, s) : (s = N(s), f = a.call(r, s));
568
- const p = c ? c.call(r, s) : void 0, l = r.delete(s);
569
- return f && D(r, "delete", s, void 0, p), l;
565
+ const a = E(this), { has: c, get: g } = le(a);
566
+ let v = c.call(a, s);
567
+ v ? process.env.NODE_ENV !== "production" && cn(a, c, s) : (s = E(s), v = c.call(a, s));
568
+ const d = g ? g.call(a, s) : void 0, r = a.delete(s);
569
+ return v && V(a, "delete", s, void 0, d), r;
570
570
  },
571
571
  clear() {
572
- const s = N(this), r = s.size !== 0, a = process.env.NODE_ENV !== "production" ? X(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
573
- return r && D(
572
+ const s = E(this), a = s.size !== 0, c = process.env.NODE_ENV !== "production" ? ne(s) ? new Map(s) : new Set(s) : void 0, g = s.clear();
573
+ return a && V(
574
574
  s,
575
575
  "clear",
576
576
  void 0,
577
577
  void 0,
578
- a
579
- ), c;
578
+ c
579
+ ), g;
580
580
  }
581
581
  }
582
582
  ), [
@@ -585,35 +585,35 @@ function ut(e, n) {
585
585
  "entries",
586
586
  Symbol.iterator
587
587
  ].forEach((s) => {
588
- t[s] = ct(s, e, n);
588
+ t[s] = pt(s, e, n);
589
589
  }), t;
590
590
  }
591
- function Ze(e, n) {
592
- const t = ut(e, n);
593
- return (o, s, r) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? o : Reflect.get(
594
- De(t, s) && s in o ? t : o,
591
+ function Qe(e, n) {
592
+ const t = dt(e, n);
593
+ return (o, s, a) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? o : Reflect.get(
594
+ Ve(t, s) && s in o ? t : o,
595
595
  s,
596
- r
596
+ a
597
597
  );
598
598
  }
599
- const lt = {
600
- get: /* @__PURE__ */ Ze(!1, !1)
601
- }, pt = {
602
- get: /* @__PURE__ */ Ze(!0, !1)
603
- }, dt = {
604
- get: /* @__PURE__ */ Ze(!0, !0)
599
+ const ft = {
600
+ get: /* @__PURE__ */ Qe(!1, !1)
601
+ }, mt = {
602
+ get: /* @__PURE__ */ Qe(!0, !1)
603
+ }, ht = {
604
+ get: /* @__PURE__ */ Qe(!0, !0)
605
605
  };
606
- function sn(e, n, t) {
607
- const o = N(t);
606
+ function cn(e, n, t) {
607
+ const o = E(t);
608
608
  if (o !== t && n.call(e, o)) {
609
- const s = un(e);
610
- Y(
609
+ const s = dn(e);
610
+ X(
611
611
  `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.`
612
612
  );
613
613
  }
614
614
  }
615
- const _n = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap();
616
- function mt(e) {
615
+ const bn = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap();
616
+ function vt(e) {
617
617
  switch (e) {
618
618
  case "Object":
619
619
  case "Array":
@@ -627,83 +627,83 @@ function mt(e) {
627
627
  return 0;
628
628
  }
629
629
  }
630
- function ht(e) {
631
- return e.__v_skip || !Object.isExtensible(e) ? 0 : mt(un(e));
630
+ function _t(e) {
631
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : vt(dn(e));
632
632
  }
633
- function bn(e) {
634
- return Z(e) ? e : qe(
633
+ function yn(e) {
634
+ return Q(e) ? e : en(
635
635
  e,
636
636
  !1,
637
- rt,
638
- lt,
639
- _n
637
+ ct,
638
+ ft,
639
+ bn
640
640
  );
641
641
  }
642
- function de(e) {
643
- return qe(
642
+ function he(e) {
643
+ return en(
644
644
  e,
645
645
  !0,
646
- at,
647
- pt,
648
- Cn
646
+ ut,
647
+ mt,
648
+ wn
649
649
  );
650
650
  }
651
- function le(e) {
652
- return qe(
651
+ function fe(e) {
652
+ return en(
653
653
  e,
654
654
  !0,
655
- it,
656
- dt,
657
- $n
655
+ lt,
656
+ ht,
657
+ Nn
658
658
  );
659
659
  }
660
- function qe(e, n, t, o, s) {
661
- if (!be(e))
662
- return process.env.NODE_ENV !== "production" && Y(
660
+ function en(e, n, t, o, s) {
661
+ if (!ye(e))
662
+ return process.env.NODE_ENV !== "production" && X(
663
663
  `value cannot be made ${n ? "readonly" : "reactive"}: ${String(
664
664
  e
665
665
  )}`
666
666
  ), e;
667
667
  if (e.__v_raw && !(n && e.__v_isReactive))
668
668
  return e;
669
- const r = s.get(e);
670
- if (r)
671
- return r;
672
- const a = ht(e);
673
- if (a === 0)
669
+ const a = s.get(e);
670
+ if (a)
671
+ return a;
672
+ const c = _t(e);
673
+ if (c === 0)
674
674
  return e;
675
- const c = new Proxy(
675
+ const g = new Proxy(
676
676
  e,
677
- a === 2 ? o : t
677
+ c === 2 ? o : t
678
678
  );
679
- return s.set(e, c), c;
679
+ return s.set(e, g), g;
680
680
  }
681
- function Z(e) {
681
+ function Q(e) {
682
682
  return !!(e && e.__v_isReadonly);
683
683
  }
684
- function T(e) {
684
+ function k(e) {
685
685
  return !!(e && e.__v_isShallow);
686
686
  }
687
- function vt(e) {
687
+ function Ct(e) {
688
688
  return e ? !!e.__v_raw : !1;
689
689
  }
690
- function N(e) {
690
+ function E(e) {
691
691
  const n = e && e.__v_raw;
692
- return n ? N(n) : e;
692
+ return n ? E(n) : e;
693
693
  }
694
- const S = (e) => be(e) ? bn(e) : e, ke = (e) => be(e) ? de(e) : e;
695
- function W(e) {
694
+ const A = (e) => ye(e) ? yn(e) : e, Me = (e) => ye(e) ? he(e) : e;
695
+ function Z(e) {
696
696
  return e ? e.__v_isRef === !0 : !1;
697
697
  }
698
- function fe(e) {
699
- return gt(e, !1);
698
+ function ge(e) {
699
+ return $t(e, !1);
700
700
  }
701
- function gt(e, n) {
702
- return W(e) ? e : new _t(e, n);
701
+ function $t(e, n) {
702
+ return Z(e) ? e : new bt(e, n);
703
703
  }
704
- class _t {
704
+ class bt {
705
705
  constructor(n, t) {
706
- this.dep = new Je(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = t ? n : N(n), this._value = t ? n : S(n), this.__v_isShallow = t;
706
+ this.dep = new qe(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = t ? n : E(n), this._value = t ? n : A(n), this.__v_isShallow = t;
707
707
  }
708
708
  get value() {
709
709
  return process.env.NODE_ENV !== "production" ? this.dep.track({
@@ -713,8 +713,8 @@ class _t {
713
713
  }) : this.dep.track(), this._value;
714
714
  }
715
715
  set value(n) {
716
- const t = this._rawValue, o = this.__v_isShallow || T(n) || Z(n);
717
- n = o ? n : N(n), B(n, t) && (this._rawValue = n, this._value = o ? n : S(n), process.env.NODE_ENV !== "production" ? this.dep.trigger({
716
+ const t = this._rawValue, o = this.__v_isShallow || k(n) || Q(n);
717
+ n = o ? n : E(n), Y(n, t) && (this._rawValue = n, this._value = o ? n : A(n), process.env.NODE_ENV !== "production" ? this.dep.trigger({
718
718
  target: this,
719
719
  type: "set",
720
720
  key: "value",
@@ -723,17 +723,17 @@ class _t {
723
723
  }) : this.dep.trigger());
724
724
  }
725
725
  }
726
- class Ct {
726
+ class wt {
727
727
  constructor(n, t, o) {
728
- this.fn = n, this.setter = t, this._value = void 0, this.dep = new Je(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = ne - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = o;
728
+ this.fn = n, this.setter = t, this._value = void 0, this.dep = new qe(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = se - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = o;
729
729
  }
730
730
  /**
731
731
  * @internal
732
732
  */
733
733
  notify() {
734
734
  if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
735
- w !== this)
736
- return Bn(this, !0), !0;
735
+ S !== this)
736
+ return Yn(this, !0), !0;
737
737
  process.env.NODE_ENV;
738
738
  }
739
739
  get value() {
@@ -742,83 +742,83 @@ class Ct {
742
742
  type: "get",
743
743
  key: "value"
744
744
  }) : this.dep.track();
745
- return pn(this), n && (n.version = this.dep.version), this._value;
745
+ return mn(this), n && (n.version = this.dep.version), this._value;
746
746
  }
747
747
  set value(n) {
748
- this.setter ? this.setter(n) : process.env.NODE_ENV !== "production" && Y("Write operation failed: computed value is readonly");
748
+ this.setter ? this.setter(n) : process.env.NODE_ENV !== "production" && X("Write operation failed: computed value is readonly");
749
749
  }
750
750
  }
751
- function Ve(e, n, t = !1) {
751
+ function Le(e, n, t = !1) {
752
752
  let o, s;
753
- Ln(e) ? o = e : (o = e.get, s = e.set);
754
- const r = new Ct(o, s, t);
755
- return process.env.NODE_ENV, r;
753
+ Bn(e) ? o = e : (o = e.get, s = e.set);
754
+ const a = new wt(o, s, t);
755
+ return process.env.NODE_ENV, a;
756
756
  }
757
- const $t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
758
- let bt = (e = 21) => {
757
+ const Nt = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
758
+ let yt = (e = 21) => {
759
759
  let n = "", t = crypto.getRandomValues(new Uint8Array(e |= 0));
760
760
  for (; e--; )
761
- n += $t[t[e] & 63];
761
+ n += Nt[t[e] & 63];
762
762
  return n;
763
763
  };
764
- function Nt(e, n = !0, t = !1) {
765
- const o = fe();
764
+ function Et(e, n = !0, t = !1) {
765
+ const o = ge();
766
766
  let s;
767
- const r = fe(!1);
768
- let a = () => {
767
+ const a = ge(!1);
768
+ let c = () => {
769
769
  };
770
- const c = new Proxy(e, {
771
- apply: function(l, i, u) {
772
- let d;
770
+ const g = new Proxy(e, {
771
+ apply: function(r, i, l) {
772
+ let m;
773
773
  try {
774
- d = l(...u);
775
- } catch (g) {
776
- d = g;
774
+ m = r(...l);
775
+ } catch (C) {
776
+ m = C;
777
777
  }
778
- if (d instanceof Error) {
779
- if (o.value = d, s = d, n)
780
- throw a(), d;
778
+ if (m instanceof Error) {
779
+ if (o.value = m, s = m, n)
780
+ throw c(), m;
781
781
  } else
782
- r.value = !0, o.value = void 0, s = !0, a();
782
+ a.value = !0, o.value = void 0, s = !0, c();
783
783
  }
784
- }), f = () => {
785
- }, p = new Proxy(
786
- (l) => {
787
- o.value = l;
784
+ }), v = () => {
785
+ }, d = new Proxy(
786
+ (r) => {
787
+ o.value = r;
788
788
  },
789
789
  {
790
- apply: function(l, i, u) {
791
- l(...u), f(...u);
790
+ apply: function(r, i, l) {
791
+ r(...l), v(...l);
792
792
  }
793
793
  }
794
794
  );
795
795
  return {
796
- promise: new Promise((l, i) => {
796
+ promise: new Promise((r, i) => {
797
797
  if (n && s instanceof Error) {
798
798
  i(s);
799
799
  return;
800
800
  } else if (s === !0) {
801
- l();
801
+ r();
802
802
  return;
803
803
  }
804
- let u;
805
- t && (u = setTimeout(() => {
806
- const d = new Error("timeout!");
807
- o.value = d, n && i(d);
808
- }, t)), a = () => {
809
- u && (clearTimeout(u), u = void 0), l();
804
+ let l;
805
+ t && (l = setTimeout(() => {
806
+ const m = new Error("timeout!");
807
+ o.value = m, n && i(m);
808
+ }, t)), c = () => {
809
+ l && (clearTimeout(l), l = void 0), r();
810
810
  };
811
811
  }),
812
- callback: c,
813
- onError: p,
814
- resolved: Ve(() => r.value),
815
- error: Ve(() => o.value)
812
+ callback: g,
813
+ onError: d,
814
+ resolved: Le(() => a.value),
815
+ error: Le(() => o.value)
816
816
  };
817
817
  }
818
- function He() {
819
- return bt();
818
+ function Ke() {
819
+ return yt();
820
820
  }
821
- function wt() {
821
+ function St() {
822
822
  const e = {}, n = {}, t = /* @__PURE__ */ new WeakMap(), o = {};
823
823
  return Object.freeze({
824
824
  registerAgg(s) {
@@ -829,32 +829,32 @@ function wt() {
829
829
  s.type === "MultiInstance" && s.api.events.destroyed.watchPublish(() => {
830
830
  delete o[s.__id];
831
831
  }), o[s.__id] = s;
832
- const r = [];
833
- for (const a of Object.values(e))
834
- a.mount({ api: s.api, __aggId: s.__id, isInitialized: s.isInitialized });
835
- for (const a of Object.values(n))
836
- a.mount({ api: s.api, __aggId: s.__id }), r.push(a.__id);
837
- t.set(s, r);
832
+ const a = [];
833
+ for (const c of Object.values(e))
834
+ c.mount({ api: s.api, __aggId: s.__id, isInitialized: s.isInitialized });
835
+ for (const c of Object.values(n))
836
+ c.mount({ api: s.api, __aggId: s.__id }), a.push(c.__id);
837
+ t.set(s, a);
838
838
  },
839
839
  createSetupPlugin(s) {
840
- let r;
841
- return s instanceof Function ? r = s() : r = s, Object.freeze({
842
- __id: He(),
840
+ let a;
841
+ return s instanceof Function ? a = s() : a = s, Object.freeze({
842
+ __id: Ke(),
843
843
  type: "Setup",
844
- mount(a) {
845
- if (a.isInitialized.value)
844
+ mount(c) {
845
+ if (c.isInitialized.value)
846
846
  throw new Error("Can not setup after initialized");
847
- r.mount({ api: a.api, __aggId: a.__aggId });
847
+ a.mount({ api: c.api, __aggId: c.__aggId });
848
848
  }
849
849
  });
850
850
  },
851
851
  createHotSwapPlugin(s) {
852
- let r;
853
- return s instanceof Function ? r = s() : r = s, Object.freeze({
854
- __id: He(),
852
+ let a;
853
+ return s instanceof Function ? a = s() : a = s, Object.freeze({
854
+ __id: Ke(),
855
855
  type: "HotSwap",
856
- mount: r.mount,
857
- unmount: r.unmount
856
+ mount: a.mount,
857
+ unmount: a.unmount
858
858
  });
859
859
  },
860
860
  registerPlugin(s) {
@@ -862,16 +862,16 @@ function wt() {
862
862
  if (e[s.__id])
863
863
  throw new Error("Plugin already registered");
864
864
  e[s.__id] = s;
865
- for (const r in o)
865
+ for (const a in o)
866
866
  s.mount({
867
- api: o[r].api,
868
- __aggId: o[r].__id,
869
- isInitialized: o[r].isInitialized
867
+ api: o[a].api,
868
+ __aggId: o[a].__id,
869
+ isInitialized: o[a].isInitialized
870
870
  });
871
871
  } else if (s.type === "HotSwap") {
872
872
  n[s.__id] = s;
873
- for (const r in o)
874
- t.has(o[r]) && !t.get(o[r]).includes(s.__id) && (s.mount({ api: o[r].api, __aggId: o[r].__id }), t.get(o[r]).push(s.__id));
873
+ for (const a in o)
874
+ t.has(o[a]) && !t.get(o[a]).includes(s.__id) && (s.mount({ api: o[a].api, __aggId: o[a].__id }), t.get(o[a]).push(s.__id));
875
875
  } else
876
876
  isNever(s);
877
877
  },
@@ -879,75 +879,75 @@ function wt() {
879
879
  if (s.type === "Setup")
880
880
  throw new Error("Can not unregister setup plugin");
881
881
  if (s.type === "HotSwap") {
882
- for (const r in o)
883
- t.has(o[r]) && t.get(o[r]).includes(s.__id) && s.unmount({ api: o[r].api, __aggId: o[r].__id });
882
+ for (const a in o)
883
+ t.has(o[a]) && t.get(o[a]).includes(s.__id) && s.unmount({ api: o[a].api, __aggId: o[a].__id });
884
884
  delete n[s.__id];
885
885
  } else
886
886
  isNever(s);
887
887
  }
888
888
  });
889
889
  }
890
- function yt(e) {
891
- return wt();
890
+ function jt(e) {
891
+ return St();
892
892
  }
893
- function Et(e) {
894
- const n = St(e);
895
- return le({
893
+ function Ot(e) {
894
+ const n = At(e);
895
+ return fe({
896
896
  states: n.states,
897
897
  commands: n.commands,
898
898
  events: n.events
899
899
  });
900
900
  }
901
- function St(e) {
901
+ function At(e) {
902
902
  const n = e.states;
903
- for (const a of Object.keys(e.states))
904
- n[a] = de(n[a]);
905
- const t = le(e.states), o = de(e.commands), s = {}, r = e.events;
906
- for (const a in e.events)
907
- s[a] = r[a].api;
908
- return le({
903
+ for (const c of Object.keys(e.states))
904
+ n[c] = he(n[c]);
905
+ const t = fe(e.states), o = he(e.commands), s = {}, a = e.events;
906
+ for (const c in e.events)
907
+ s[c] = a[c].api;
908
+ return fe({
909
909
  states: t,
910
910
  commands: o,
911
- events: le(s),
911
+ events: fe(s),
912
912
  destroy: e.destroy
913
913
  });
914
914
  }
915
- function At(e) {
915
+ function It(e) {
916
916
  const {
917
917
  callback: n,
918
918
  onError: t,
919
919
  promise: o,
920
920
  resolved: s
921
- } = Nt(() => {
921
+ } = Et(() => {
922
922
  }, !1, 5e3);
923
- function r(i) {
923
+ function a(i) {
924
924
  if (s.value === !0)
925
925
  throw new Error("Agg already initialized");
926
- a.push(i());
926
+ c.push(i());
927
927
  }
928
- const a = [], c = e({
928
+ const c = [], g = e({
929
929
  onCreated(i) {
930
930
  Promise.resolve().then(i);
931
931
  },
932
- onBeforeInitialize: r,
933
- isInitialized: Ve(() => s.value),
932
+ onBeforeInitialize: a,
933
+ isInitialized: Le(() => s.value),
934
934
  untilInitialized: o
935
935
  });
936
936
  setTimeout(
937
- () => Promise.all(a).then(() => {
937
+ () => Promise.all(c).then(() => {
938
938
  n();
939
939
  }).catch((i) => {
940
940
  t(i);
941
941
  })
942
942
  );
943
- const f = c.states || {}, p = c.commands || {}, l = c.events || {};
943
+ const v = g.states || {}, d = g.commands || {}, r = g.events || {};
944
944
  return {
945
- __id: He(),
945
+ __id: Ke(),
946
946
  type: "Singleton",
947
- api: Et({
948
- states: f,
949
- commands: p,
950
- events: l,
947
+ api: Ot({
948
+ states: v,
949
+ commands: d,
950
+ events: r,
951
951
  destroy: () => {
952
952
  }
953
953
  }),
@@ -960,11 +960,11 @@ Stack : ${i.stack || "unkown"}`);
960
960
  }
961
961
  };
962
962
  }
963
- let ue;
964
- function jt(e) {
965
- return At(() => {
966
- const n = fe(e), t = fe({});
967
- let o = () => [], s = () => [], r = () => [], a = () => [], c = () => [], f = () => [], p = () => [];
963
+ let de;
964
+ function xt(e) {
965
+ return It(() => {
966
+ const n = ge(e), t = ge({});
967
+ let o = () => [], s = () => [], a = () => [], c = () => [], g = () => [], v = () => [], d = () => [];
968
968
  return {
969
969
  states: {
970
970
  designer: n,
@@ -972,126 +972,126 @@ function jt(e) {
972
972
  },
973
973
  commands: {
974
974
  genCodeFiles() {
975
- return p();
975
+ return d();
976
976
  },
977
977
  clearCaches() {
978
978
  },
979
- setContext(l) {
980
- t.value = l;
979
+ setContext(r) {
980
+ t.value = r;
981
981
  },
982
- setDomainDesigner(l) {
983
- this.clearCaches(), n.value = l;
982
+ setDomainDesigner(r) {
983
+ this.clearCaches(), n.value = r;
984
984
  },
985
- _genInfoCode(...l) {
986
- return o(...l);
985
+ _genInfoCode(...r) {
986
+ return o(...r);
987
987
  },
988
- _setInfoCodeProvider(l) {
989
- o = l;
988
+ _setInfoCodeProvider(r) {
989
+ o = r;
990
990
  },
991
- _genCommandCode(...l) {
992
- return s(...l);
991
+ _genCommandCode(...r) {
992
+ return s(...r);
993
993
  },
994
- _setCommandCodeProvider(l) {
995
- s = l;
994
+ _setCommandCodeProvider(r) {
995
+ s = r;
996
996
  },
997
- _genFacadeCommandCode(...l) {
998
- return r(...l);
997
+ _genFacadeCommandCode(...r) {
998
+ return a(...r);
999
999
  },
1000
- _setFacadeCommandCodeProvider(l) {
1001
- r = l;
1000
+ _setFacadeCommandCodeProvider(r) {
1001
+ a = r;
1002
1002
  },
1003
- _genAggCode(...l) {
1004
- return a(...l);
1003
+ _genAggCode(...r) {
1004
+ return c(...r);
1005
1005
  },
1006
- _setAggCodeProvider(l) {
1007
- a = l;
1006
+ _setAggCodeProvider(r) {
1007
+ c = r;
1008
1008
  },
1009
- _genEventCode(...l) {
1010
- return c(...l);
1009
+ _genEventCode(...r) {
1010
+ return g(...r);
1011
1011
  },
1012
- _setEventCodeProvider(l) {
1013
- c = l;
1012
+ _setEventCodeProvider(r) {
1013
+ g = r;
1014
1014
  },
1015
- _genReadModelCode(...l) {
1016
- return f(...l);
1015
+ _genReadModelCode(...r) {
1016
+ return v(...r);
1017
1017
  },
1018
- _setReadModelCodeProvider(l) {
1019
- f = l;
1018
+ _setReadModelCodeProvider(r) {
1019
+ v = r;
1020
1020
  },
1021
- _setCodeFileProvider(l) {
1022
- p = l;
1021
+ _setCodeFileProvider(r) {
1022
+ d = r;
1023
1023
  }
1024
1024
  }
1025
1025
  };
1026
1026
  });
1027
1027
  }
1028
- const ae = yt();
1029
- function wo(e) {
1030
- if (!ue) {
1028
+ const ue = jt();
1029
+ function So(e) {
1030
+ if (!de) {
1031
1031
  if (!e)
1032
1032
  throw new Error("designer is required");
1033
- ue = jt(e), ae.registerAgg(ue);
1033
+ de = xt(e), ue.registerAgg(de);
1034
1034
  }
1035
- return ue.api;
1035
+ return de.api;
1036
1036
  }
1037
- function Ne(e) {
1037
+ function Ee(e) {
1038
1038
  return e && e._attributes && e._attributes.rule === "Info";
1039
1039
  }
1040
- function It(e) {
1040
+ function Dt(e) {
1041
1041
  return e && e._attributes && e._attributes.rule === "Agg";
1042
1042
  }
1043
- function Ot(e) {
1043
+ function Pt(e) {
1044
1044
  return e && e._attributes && e._attributes.rule === "Command";
1045
1045
  }
1046
- function Pt(e) {
1046
+ function Tt(e) {
1047
1047
  return e && e._attributes && e._attributes.rule === "FacadeCommand";
1048
1048
  }
1049
- function xt(e) {
1049
+ function Ft(e) {
1050
1050
  return e && e._attributes && e._attributes.rule === "Event";
1051
1051
  }
1052
- function Dt(e) {
1052
+ function Vt(e) {
1053
1053
  return e && e._attributes && e._attributes.rule === "ReadModel";
1054
1054
  }
1055
- const Me = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
1055
+ const ze = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
1056
1056
  process.env.NODE_ENV !== "production" && Object.freeze([]);
1057
- const Ft = () => {
1058
- }, Tt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
1059
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), we = Object.assign, I = Array.isArray, L = (e) => typeof e == "function", R = (e) => typeof e == "string", Rt = (e) => typeof e == "symbol", V = (e) => e !== null && typeof e == "object";
1060
- let rn;
1061
- const ye = () => rn || (rn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
1062
- function Xe(e) {
1063
- if (I(e)) {
1057
+ const Rt = () => {
1058
+ }, kt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
1059
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Se = Object.assign, D = Array.isArray, B = (e) => typeof e == "function", H = (e) => typeof e == "string", Ht = (e) => typeof e == "symbol", L = (e) => e !== null && typeof e == "object";
1060
+ let un;
1061
+ const je = () => un || (un = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
1062
+ function nn(e) {
1063
+ if (D(e)) {
1064
1064
  const n = {};
1065
1065
  for (let t = 0; t < e.length; t++) {
1066
- const o = e[t], s = R(o) ? Mt(o) : Xe(o);
1066
+ const o = e[t], s = H(o) ? zt(o) : nn(o);
1067
1067
  if (s)
1068
- for (const r in s)
1069
- n[r] = s[r];
1068
+ for (const a in s)
1069
+ n[a] = s[a];
1070
1070
  }
1071
1071
  return n;
1072
- } else if (R(e) || V(e))
1072
+ } else if (H(e) || L(e))
1073
1073
  return e;
1074
1074
  }
1075
- const kt = /;(?![^(]*\))/g, Vt = /:([^]+)/, Ht = /\/\*[^]*?\*\//g;
1076
- function Mt(e) {
1075
+ const Mt = /;(?![^(]*\))/g, Lt = /:([^]+)/, Kt = /\/\*[^]*?\*\//g;
1076
+ function zt(e) {
1077
1077
  const n = {};
1078
- return e.replace(Ht, "").split(kt).forEach((t) => {
1078
+ return e.replace(Kt, "").split(Mt).forEach((t) => {
1079
1079
  if (t) {
1080
- const o = t.split(Vt);
1080
+ const o = t.split(Lt);
1081
1081
  o.length > 1 && (n[o[0].trim()] = o[1].trim());
1082
1082
  }
1083
1083
  }), n;
1084
1084
  }
1085
- function Qe(e) {
1085
+ function tn(e) {
1086
1086
  let n = "";
1087
- if (R(e))
1087
+ if (H(e))
1088
1088
  n = e;
1089
- else if (I(e))
1089
+ else if (D(e))
1090
1090
  for (let t = 0; t < e.length; t++) {
1091
- const o = Qe(e[t]);
1091
+ const o = tn(e[t]);
1092
1092
  o && (n += o + " ");
1093
1093
  }
1094
- else if (V(e))
1094
+ else if (L(e))
1095
1095
  for (const t in e)
1096
1096
  e[t] && (n += t + " ");
1097
1097
  return n.trim();
@@ -1106,25 +1106,25 @@ Symbol(
1106
1106
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
1107
1107
  );
1108
1108
  new Set(
1109
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Rt)
1109
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Ht)
1110
1110
  );
1111
- function Nn(e) {
1112
- return Le(e) ? Nn(e.__v_raw) : !!(e && e.__v_isReactive);
1111
+ function En(e) {
1112
+ return Be(e) ? En(e.__v_raw) : !!(e && e.__v_isReactive);
1113
1113
  }
1114
- function Le(e) {
1114
+ function Be(e) {
1115
1115
  return !!(e && e.__v_isReadonly);
1116
1116
  }
1117
- function Ae(e) {
1117
+ function Ie(e) {
1118
1118
  return !!(e && e.__v_isShallow);
1119
1119
  }
1120
- function Ke(e) {
1120
+ function Ue(e) {
1121
1121
  return e ? !!e.__v_raw : !1;
1122
1122
  }
1123
- function H(e) {
1123
+ function K(e) {
1124
1124
  const n = e && e.__v_raw;
1125
- return n ? H(n) : e;
1125
+ return n ? K(n) : e;
1126
1126
  }
1127
- function en(e) {
1127
+ function on(e) {
1128
1128
  return e ? e.__v_isRef === !0 : !1;
1129
1129
  }
1130
1130
  /**
@@ -1132,46 +1132,46 @@ function en(e) {
1132
1132
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1133
1133
  * @license MIT
1134
1134
  **/
1135
- const M = [];
1136
- function Lt(e) {
1137
- M.push(e);
1138
- }
1139
- function Kt() {
1140
- M.pop();
1141
- }
1142
- let je = !1;
1143
- function oe(e, ...n) {
1144
- if (je) return;
1145
- je = !0;
1146
- const t = M.length ? M[M.length - 1].component : null, o = t && t.appContext.config.warnHandler, s = zt();
1135
+ const z = [];
1136
+ function Bt(e) {
1137
+ z.push(e);
1138
+ }
1139
+ function Ut() {
1140
+ z.pop();
1141
+ }
1142
+ let xe = !1;
1143
+ function ae(e, ...n) {
1144
+ if (xe) return;
1145
+ xe = !0;
1146
+ const t = z.length ? z[z.length - 1].component : null, o = t && t.appContext.config.warnHandler, s = Gt();
1147
1147
  if (o)
1148
- nn(
1148
+ sn(
1149
1149
  o,
1150
1150
  t,
1151
1151
  11,
1152
1152
  [
1153
1153
  // eslint-disable-next-line no-restricted-syntax
1154
- e + n.map((r) => {
1155
- var a, c;
1156
- return (c = (a = r.toString) == null ? void 0 : a.call(r)) != null ? c : JSON.stringify(r);
1154
+ e + n.map((a) => {
1155
+ var c, g;
1156
+ return (g = (c = a.toString) == null ? void 0 : c.call(a)) != null ? g : JSON.stringify(a);
1157
1157
  }).join(""),
1158
1158
  t && t.proxy,
1159
1159
  s.map(
1160
- ({ vnode: r }) => `at <${Rn(t, r.type)}>`
1160
+ ({ vnode: a }) => `at <${Hn(t, a.type)}>`
1161
1161
  ).join(`
1162
1162
  `),
1163
1163
  s
1164
1164
  ]
1165
1165
  );
1166
1166
  else {
1167
- const r = [`[Vue warn]: ${e}`, ...n];
1168
- s.length && r.push(`
1169
- `, ...Ut(s));
1167
+ const a = [`[Vue warn]: ${e}`, ...n];
1168
+ s.length && a.push(`
1169
+ `, ...Wt(s));
1170
1170
  }
1171
- je = !1;
1171
+ xe = !1;
1172
1172
  }
1173
- function zt() {
1174
- let e = M[M.length - 1];
1173
+ function Gt() {
1174
+ let e = z[z.length - 1];
1175
1175
  if (!e)
1176
1176
  return [];
1177
1177
  const n = [];
@@ -1186,31 +1186,31 @@ function zt() {
1186
1186
  }
1187
1187
  return n;
1188
1188
  }
1189
- function Ut(e) {
1189
+ function Wt(e) {
1190
1190
  const n = [];
1191
1191
  return e.forEach((t, o) => {
1192
1192
  n.push(...o === 0 ? [] : [`
1193
- `], ...Gt(t));
1193
+ `], ...Jt(t));
1194
1194
  }), n;
1195
1195
  }
1196
- function Gt({ vnode: e, recurseCount: n }) {
1197
- const t = n > 0 ? `... (${n} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${Rn(
1196
+ function Jt({ vnode: e, recurseCount: n }) {
1197
+ const t = n > 0 ? `... (${n} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${Hn(
1198
1198
  e.component,
1199
1199
  e.type,
1200
1200
  o
1201
- )}`, r = ">" + t;
1202
- return e.props ? [s, ...Bt(e.props), r] : [s + r];
1201
+ )}`, a = ">" + t;
1202
+ return e.props ? [s, ...Yt(e.props), a] : [s + a];
1203
1203
  }
1204
- function Bt(e) {
1204
+ function Yt(e) {
1205
1205
  const n = [], t = Object.keys(e);
1206
1206
  return t.slice(0, 3).forEach((o) => {
1207
- n.push(...wn(o, e[o]));
1207
+ n.push(...Sn(o, e[o]));
1208
1208
  }), t.length > 3 && n.push(" ..."), n;
1209
1209
  }
1210
- function wn(e, n, t) {
1211
- return R(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : en(n) ? (n = wn(e, H(n.value), !0), t ? n : [`${e}=Ref<`, n, ">"]) : L(n) ? [`${e}=fn${n.name ? `<${n.name}>` : ""}`] : (n = H(n), t ? n : [`${e}=`, n]);
1210
+ function Sn(e, n, t) {
1211
+ return H(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : on(n) ? (n = Sn(e, K(n.value), !0), t ? n : [`${e}=Ref<`, n, ">"]) : B(n) ? [`${e}=fn${n.name ? `<${n.name}>` : ""}`] : (n = K(n), t ? n : [`${e}=`, n]);
1212
1212
  }
1213
- const yn = {
1213
+ const jn = {
1214
1214
  sp: "serverPrefetch hook",
1215
1215
  bc: "beforeCreate hook",
1216
1216
  c: "created hook",
@@ -1243,101 +1243,101 @@ const yn = {
1243
1243
  15: "component update",
1244
1244
  16: "app unmount cleanup function"
1245
1245
  };
1246
- function nn(e, n, t, o) {
1246
+ function sn(e, n, t, o) {
1247
1247
  try {
1248
1248
  return o ? e(...o) : e();
1249
1249
  } catch (s) {
1250
- En(s, n, t);
1250
+ On(s, n, t);
1251
1251
  }
1252
1252
  }
1253
- function En(e, n, t, o = !0) {
1254
- const s = n ? n.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: a } = n && n.appContext.config || Me;
1253
+ function On(e, n, t, o = !0) {
1254
+ const s = n ? n.vnode : null, { errorHandler: a, throwUnhandledErrorInProduction: c } = n && n.appContext.config || ze;
1255
1255
  if (n) {
1256
- let c = n.parent;
1257
- const f = n.proxy, p = process.env.NODE_ENV !== "production" ? yn[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
1258
- for (; c; ) {
1259
- const l = c.ec;
1260
- if (l) {
1261
- for (let i = 0; i < l.length; i++)
1262
- if (l[i](e, f, p) === !1)
1256
+ let g = n.parent;
1257
+ const v = n.proxy, d = process.env.NODE_ENV !== "production" ? jn[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
1258
+ for (; g; ) {
1259
+ const r = g.ec;
1260
+ if (r) {
1261
+ for (let i = 0; i < r.length; i++)
1262
+ if (r[i](e, v, d) === !1)
1263
1263
  return;
1264
1264
  }
1265
- c = c.parent;
1265
+ g = g.parent;
1266
1266
  }
1267
- if (r) {
1268
- nn(r, null, 10, [
1267
+ if (a) {
1268
+ sn(a, null, 10, [
1269
1269
  e,
1270
- f,
1271
- p
1270
+ v,
1271
+ d
1272
1272
  ]);
1273
1273
  return;
1274
1274
  }
1275
1275
  }
1276
- Wt(e, t, s, o, a);
1276
+ Zt(e, t, s, o, c);
1277
1277
  }
1278
- function Wt(e, n, t, o = !0, s = !1) {
1278
+ function Zt(e, n, t, o = !0, s = !1) {
1279
1279
  if (process.env.NODE_ENV !== "production") {
1280
- const r = yn[n];
1281
- if (t && Lt(t), oe(`Unhandled error${r ? ` during execution of ${r}` : ""}`), t && Kt(), o)
1280
+ const a = jn[n];
1281
+ if (t && Bt(t), ae(`Unhandled error${a ? ` during execution of ${a}` : ""}`), t && Ut(), o)
1282
1282
  throw e;
1283
1283
  } else if (s)
1284
1284
  throw e;
1285
1285
  }
1286
- const j = [];
1287
- let P = -1;
1288
- const J = [];
1289
- let x = null, U = 0;
1290
- const Jt = /* @__PURE__ */ Promise.resolve();
1291
- let ze = null;
1292
- const Yt = 100;
1293
- function Zt(e) {
1294
- let n = P + 1, t = j.length;
1286
+ const x = [];
1287
+ let T = -1;
1288
+ const q = [];
1289
+ let F = null, W = 0;
1290
+ const qt = /* @__PURE__ */ Promise.resolve();
1291
+ let Ge = null;
1292
+ const Xt = 100;
1293
+ function Qt(e) {
1294
+ let n = T + 1, t = x.length;
1295
1295
  for (; n < t; ) {
1296
- const o = n + t >>> 1, s = j[o], r = se(s);
1297
- r < e || r === e && s.flags & 2 ? n = o + 1 : t = o;
1296
+ const o = n + t >>> 1, s = x[o], a = ie(s);
1297
+ a < e || a === e && s.flags & 2 ? n = o + 1 : t = o;
1298
1298
  }
1299
1299
  return n;
1300
1300
  }
1301
- function qt(e) {
1301
+ function eo(e) {
1302
1302
  if (!(e.flags & 1)) {
1303
- const n = se(e), t = j[j.length - 1];
1303
+ const n = ie(e), t = x[x.length - 1];
1304
1304
  !t || // fast path when the job id is larger than the tail
1305
- !(e.flags & 2) && n >= se(t) ? j.push(e) : j.splice(Zt(n), 0, e), e.flags |= 1, Sn();
1305
+ !(e.flags & 2) && n >= ie(t) ? x.push(e) : x.splice(Qt(n), 0, e), e.flags |= 1, An();
1306
1306
  }
1307
1307
  }
1308
- function Sn() {
1309
- ze || (ze = Jt.then(An));
1308
+ function An() {
1309
+ Ge || (Ge = qt.then(In));
1310
1310
  }
1311
- function Xt(e) {
1312
- I(e) ? J.push(...e) : x && e.id === -1 ? x.splice(U + 1, 0, e) : e.flags & 1 || (J.push(e), e.flags |= 1), Sn();
1311
+ function no(e) {
1312
+ D(e) ? q.push(...e) : F && e.id === -1 ? F.splice(W + 1, 0, e) : e.flags & 1 || (q.push(e), e.flags |= 1), An();
1313
1313
  }
1314
- function Qt(e) {
1315
- if (J.length) {
1316
- const n = [...new Set(J)].sort(
1317
- (t, o) => se(t) - se(o)
1314
+ function to(e) {
1315
+ if (q.length) {
1316
+ const n = [...new Set(q)].sort(
1317
+ (t, o) => ie(t) - ie(o)
1318
1318
  );
1319
- if (J.length = 0, x) {
1320
- x.push(...n);
1319
+ if (q.length = 0, F) {
1320
+ F.push(...n);
1321
1321
  return;
1322
1322
  }
1323
- for (x = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), U = 0; U < x.length; U++) {
1324
- const t = x[U];
1325
- process.env.NODE_ENV !== "production" && jn(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
1323
+ for (F = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), W = 0; W < F.length; W++) {
1324
+ const t = F[W];
1325
+ process.env.NODE_ENV !== "production" && xn(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
1326
1326
  }
1327
- x = null, U = 0;
1327
+ F = null, W = 0;
1328
1328
  }
1329
1329
  }
1330
- const se = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1331
- function An(e) {
1330
+ const ie = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1331
+ function In(e) {
1332
1332
  process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
1333
- const n = process.env.NODE_ENV !== "production" ? (t) => jn(e, t) : Ft;
1333
+ const n = process.env.NODE_ENV !== "production" ? (t) => xn(e, t) : Rt;
1334
1334
  try {
1335
- for (P = 0; P < j.length; P++) {
1336
- const t = j[P];
1335
+ for (T = 0; T < x.length; T++) {
1336
+ const t = x[T];
1337
1337
  if (t && !(t.flags & 8)) {
1338
1338
  if (process.env.NODE_ENV !== "production" && n(t))
1339
1339
  continue;
1340
- t.flags & 4 && (t.flags &= -2), nn(
1340
+ t.flags & 4 && (t.flags &= -2), sn(
1341
1341
  t,
1342
1342
  t.i,
1343
1343
  t.i ? 15 : 14
@@ -1345,18 +1345,18 @@ function An(e) {
1345
1345
  }
1346
1346
  }
1347
1347
  } finally {
1348
- for (; P < j.length; P++) {
1349
- const t = j[P];
1348
+ for (; T < x.length; T++) {
1349
+ const t = x[T];
1350
1350
  t && (t.flags &= -2);
1351
1351
  }
1352
- P = -1, j.length = 0, Qt(e), ze = null, (j.length || J.length) && An(e);
1352
+ T = -1, x.length = 0, to(e), Ge = null, (x.length || q.length) && In(e);
1353
1353
  }
1354
1354
  }
1355
- function jn(e, n) {
1355
+ function xn(e, n) {
1356
1356
  const t = e.get(n) || 0;
1357
- if (t > Yt) {
1358
- const o = n.i, s = o && Tn(o.type);
1359
- return En(
1357
+ if (t > Xt) {
1358
+ const o = n.i, s = o && kn(o.type);
1359
+ return On(
1360
1360
  `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.`,
1361
1361
  null,
1362
1362
  10
@@ -1364,50 +1364,50 @@ function jn(e, n) {
1364
1364
  }
1365
1365
  return e.set(n, t + 1), !1;
1366
1366
  }
1367
- const Ie = /* @__PURE__ */ new Map();
1368
- process.env.NODE_ENV !== "production" && (ye().__VUE_HMR_RUNTIME__ = {
1369
- createRecord: Oe(eo),
1370
- rerender: Oe(no),
1371
- reload: Oe(to)
1367
+ const De = /* @__PURE__ */ new Map();
1368
+ process.env.NODE_ENV !== "production" && (je().__VUE_HMR_RUNTIME__ = {
1369
+ createRecord: Pe(oo),
1370
+ rerender: Pe(so),
1371
+ reload: Pe(ro)
1372
1372
  });
1373
- const me = /* @__PURE__ */ new Map();
1374
- function eo(e, n) {
1375
- return me.has(e) ? !1 : (me.set(e, {
1376
- initialDef: he(n),
1373
+ const ve = /* @__PURE__ */ new Map();
1374
+ function oo(e, n) {
1375
+ return ve.has(e) ? !1 : (ve.set(e, {
1376
+ initialDef: _e(n),
1377
1377
  instances: /* @__PURE__ */ new Set()
1378
1378
  }), !0);
1379
1379
  }
1380
- function he(e) {
1381
- return kn(e) ? e.__vccOpts : e;
1380
+ function _e(e) {
1381
+ return Mn(e) ? e.__vccOpts : e;
1382
1382
  }
1383
- function no(e, n) {
1384
- const t = me.get(e);
1383
+ function so(e, n) {
1384
+ const t = ve.get(e);
1385
1385
  t && (t.initialDef.render = n, [...t.instances].forEach((o) => {
1386
- n && (o.render = n, he(o.type).render = n), o.renderCache = [], o.update();
1386
+ n && (o.render = n, _e(o.type).render = n), o.renderCache = [], o.update();
1387
1387
  }));
1388
1388
  }
1389
- function to(e, n) {
1390
- const t = me.get(e);
1389
+ function ro(e, n) {
1390
+ const t = ve.get(e);
1391
1391
  if (!t) return;
1392
- n = he(n), an(t.initialDef, n);
1392
+ n = _e(n), ln(t.initialDef, n);
1393
1393
  const o = [...t.instances];
1394
1394
  for (let s = 0; s < o.length; s++) {
1395
- const r = o[s], a = he(r.type);
1396
- let c = Ie.get(a);
1397
- c || (a !== t.initialDef && an(a, n), Ie.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(n.styles), c.delete(r)) : r.parent ? qt(() => {
1398
- r.parent.update(), c.delete(r);
1399
- }) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" && window.location.reload(), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(a);
1400
- }
1401
- Xt(() => {
1402
- Ie.clear();
1395
+ const a = o[s], c = _e(a.type);
1396
+ let g = De.get(c);
1397
+ g || (c !== t.initialDef && ln(c, n), De.set(c, g = /* @__PURE__ */ new Set())), g.add(a), a.appContext.propsCache.delete(a.type), a.appContext.emitsCache.delete(a.type), a.appContext.optionsCache.delete(a.type), a.ceReload ? (g.add(a), a.ceReload(n.styles), g.delete(a)) : a.parent ? eo(() => {
1398
+ a.parent.update(), g.delete(a);
1399
+ }) : a.appContext.reload ? a.appContext.reload() : typeof window < "u" && window.location.reload(), a.root.ce && a !== a.root && a.root.ce._removeChildStyle(c);
1400
+ }
1401
+ no(() => {
1402
+ De.clear();
1403
1403
  });
1404
1404
  }
1405
- function an(e, n) {
1406
- we(e, n);
1405
+ function ln(e, n) {
1406
+ Se(e, n);
1407
1407
  for (const t in e)
1408
1408
  t !== "__file" && !(t in n) && delete e[t];
1409
1409
  }
1410
- function Oe(e) {
1410
+ function Pe(e) {
1411
1411
  return (n, t) => {
1412
1412
  try {
1413
1413
  return e(n, t);
@@ -1415,35 +1415,35 @@ function Oe(e) {
1415
1415
  }
1416
1416
  };
1417
1417
  }
1418
- let ve = null, oo = null;
1419
- const so = (e) => e.__isTeleport;
1420
- function In(e, n) {
1421
- e.shapeFlag & 6 && e.component ? (e.transition = n, In(e.component.subTree, n)) : e.shapeFlag & 128 ? (e.ssContent.transition = n.clone(e.ssContent), e.ssFallback.transition = n.clone(e.ssFallback)) : e.transition = n;
1418
+ let Ce = null, ao = null;
1419
+ const io = (e) => e.__isTeleport;
1420
+ function Dn(e, n) {
1421
+ e.shapeFlag & 6 && e.component ? (e.transition = n, Dn(e.component.subTree, n)) : e.shapeFlag & 128 ? (e.ssContent.transition = n.clone(e.ssContent), e.ssFallback.transition = n.clone(e.ssFallback)) : e.transition = n;
1422
1422
  }
1423
- ye().requestIdleCallback;
1424
- ye().cancelIdleCallback;
1425
- const ro = Symbol.for("v-ndc");
1423
+ je().requestIdleCallback;
1424
+ je().cancelIdleCallback;
1425
+ const co = Symbol.for("v-ndc");
1426
1426
  process.env.NODE_ENV;
1427
- const ao = {}, On = (e) => Object.getPrototypeOf(e) === ao, io = (e) => e.__isSuspense, Pn = Symbol.for("v-fgt"), co = Symbol.for("v-txt"), uo = Symbol.for("v-cmt");
1428
- function lo(e) {
1427
+ const uo = {}, Pn = (e) => Object.getPrototypeOf(e) === uo, lo = (e) => e.__isSuspense, Tn = Symbol.for("v-fgt"), po = Symbol.for("v-txt"), fo = Symbol.for("v-cmt");
1428
+ function mo(e) {
1429
1429
  return e ? e.__v_isVNode === !0 : !1;
1430
1430
  }
1431
- const po = (...e) => Dn(
1431
+ const ho = (...e) => Vn(
1432
1432
  ...e
1433
- ), xn = ({ key: e }) => e ?? null, pe = ({
1433
+ ), Fn = ({ key: e }) => e ?? null, me = ({
1434
1434
  ref: e,
1435
1435
  ref_key: n,
1436
1436
  ref_for: t
1437
- }) => (typeof e == "number" && (e = "" + e), e != null ? R(e) || en(e) || L(e) ? { i: ve, r: e, k: n, f: !!t } : e : null);
1438
- function fo(e, n = null, t = null, o = 0, s = null, r = e === Pn ? 0 : 1, a = !1, c = !1) {
1439
- const f = {
1437
+ }) => (typeof e == "number" && (e = "" + e), e != null ? H(e) || on(e) || B(e) ? { i: Ce, r: e, k: n, f: !!t } : e : null);
1438
+ function go(e, n = null, t = null, o = 0, s = null, a = e === Tn ? 0 : 1, c = !1, g = !1) {
1439
+ const v = {
1440
1440
  __v_isVNode: !0,
1441
1441
  __v_skip: !0,
1442
1442
  type: e,
1443
1443
  props: n,
1444
- key: n && xn(n),
1445
- ref: n && pe(n),
1446
- scopeId: oo,
1444
+ key: n && Fn(n),
1445
+ ref: n && me(n),
1446
+ scopeId: ao,
1447
1447
  slotScopeIds: null,
1448
1448
  children: t,
1449
1449
  component: null,
@@ -1458,67 +1458,67 @@ function fo(e, n = null, t = null, o = 0, s = null, r = e === Pn ? 0 : 1, a = !1
1458
1458
  targetStart: null,
1459
1459
  targetAnchor: null,
1460
1460
  staticCount: 0,
1461
- shapeFlag: r,
1461
+ shapeFlag: a,
1462
1462
  patchFlag: o,
1463
1463
  dynamicProps: s,
1464
1464
  dynamicChildren: null,
1465
1465
  appContext: null,
1466
- ctx: ve
1466
+ ctx: Ce
1467
1467
  };
1468
- return c ? (tn(f, t), r & 128 && e.normalize(f)) : t && (f.shapeFlag |= R(t) ? 8 : 16), process.env.NODE_ENV !== "production" && f.key !== f.key && oe("VNode created with invalid key (NaN). VNode type:", f.type), f;
1468
+ return g ? (rn(v, t), a & 128 && e.normalize(v)) : t && (v.shapeFlag |= H(t) ? 8 : 16), process.env.NODE_ENV !== "production" && v.key !== v.key && ae("VNode created with invalid key (NaN). VNode type:", v.type), v;
1469
1469
  }
1470
- const mo = process.env.NODE_ENV !== "production" ? po : Dn;
1471
- function Dn(e, n = null, t = null, o = 0, s = null, r = !1) {
1472
- if ((!e || e === ro) && (process.env.NODE_ENV !== "production" && !e && oe(`Invalid vnode type when creating vnode: ${e}.`), e = uo), lo(e)) {
1473
- const c = ge(
1470
+ const vo = process.env.NODE_ENV !== "production" ? ho : Vn;
1471
+ function Vn(e, n = null, t = null, o = 0, s = null, a = !1) {
1472
+ if ((!e || e === co) && (process.env.NODE_ENV !== "production" && !e && ae(`Invalid vnode type when creating vnode: ${e}.`), e = fo), mo(e)) {
1473
+ const g = $e(
1474
1474
  e,
1475
1475
  n,
1476
1476
  !0
1477
1477
  /* mergeRef: true */
1478
1478
  );
1479
- return t && tn(c, t), c.patchFlag = -2, c;
1479
+ return t && rn(g, t), g.patchFlag = -2, g;
1480
1480
  }
1481
- if (kn(e) && (e = e.__vccOpts), n) {
1482
- n = ho(n);
1483
- let { class: c, style: f } = n;
1484
- c && !R(c) && (n.class = Qe(c)), V(f) && (Ke(f) && !I(f) && (f = we({}, f)), n.style = Xe(f));
1481
+ if (Mn(e) && (e = e.__vccOpts), n) {
1482
+ n = _o(n);
1483
+ let { class: g, style: v } = n;
1484
+ g && !H(g) && (n.class = tn(g)), L(v) && (Ue(v) && !D(v) && (v = Se({}, v)), n.style = nn(v));
1485
1485
  }
1486
- const a = R(e) ? 1 : io(e) ? 128 : so(e) ? 64 : V(e) ? 4 : L(e) ? 2 : 0;
1487
- return process.env.NODE_ENV !== "production" && a & 4 && Ke(e) && (e = H(e), oe(
1486
+ const c = H(e) ? 1 : lo(e) ? 128 : io(e) ? 64 : L(e) ? 4 : B(e) ? 2 : 0;
1487
+ return process.env.NODE_ENV !== "production" && c & 4 && Ue(e) && (e = K(e), ae(
1488
1488
  "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`.",
1489
1489
  `
1490
1490
  Component that was made reactive: `,
1491
1491
  e
1492
- )), fo(
1492
+ )), go(
1493
1493
  e,
1494
1494
  n,
1495
1495
  t,
1496
1496
  o,
1497
1497
  s,
1498
+ c,
1498
1499
  a,
1499
- r,
1500
1500
  !0
1501
1501
  );
1502
1502
  }
1503
- function ho(e) {
1504
- return e ? Ke(e) || On(e) ? we({}, e) : e : null;
1503
+ function _o(e) {
1504
+ return e ? Ue(e) || Pn(e) ? Se({}, e) : e : null;
1505
1505
  }
1506
- function ge(e, n, t = !1, o = !1) {
1507
- const { props: s, ref: r, patchFlag: a, children: c, transition: f } = e, p = n ? go(s || {}, n) : s, l = {
1506
+ function $e(e, n, t = !1, o = !1) {
1507
+ const { props: s, ref: a, patchFlag: c, children: g, transition: v } = e, d = n ? $o(s || {}, n) : s, r = {
1508
1508
  __v_isVNode: !0,
1509
1509
  __v_skip: !0,
1510
1510
  type: e.type,
1511
- props: p,
1512
- key: p && xn(p),
1511
+ props: d,
1512
+ key: d && Fn(d),
1513
1513
  ref: n && n.ref ? (
1514
1514
  // #2078 in the case of <component :is="vnode" ref="extra"/>
1515
1515
  // if the vnode itself already has a ref, cloneVNode will need to merge
1516
1516
  // the refs so the single vnode can be set on multiple refs
1517
- t && r ? I(r) ? r.concat(pe(n)) : [r, pe(n)] : pe(n)
1518
- ) : r,
1517
+ t && a ? D(a) ? a.concat(me(n)) : [a, me(n)] : me(n)
1518
+ ) : a,
1519
1519
  scopeId: e.scopeId,
1520
1520
  slotScopeIds: e.slotScopeIds,
1521
- children: process.env.NODE_ENV !== "production" && a === -1 && I(c) ? c.map(Fn) : c,
1521
+ children: process.env.NODE_ENV !== "production" && c === -1 && D(g) ? g.map(Rn) : g,
1522
1522
  target: e.target,
1523
1523
  targetStart: e.targetStart,
1524
1524
  targetAnchor: e.targetAnchor,
@@ -1528,75 +1528,75 @@ function ge(e, n, t = !1, o = !1) {
1528
1528
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1529
1529
  // note: preserve flag for fragments since they use the flag for children
1530
1530
  // fast paths only.
1531
- patchFlag: n && e.type !== Pn ? a === -1 ? 16 : a | 16 : a,
1531
+ patchFlag: n && e.type !== Tn ? c === -1 ? 16 : c | 16 : c,
1532
1532
  dynamicProps: e.dynamicProps,
1533
1533
  dynamicChildren: e.dynamicChildren,
1534
1534
  appContext: e.appContext,
1535
1535
  dirs: e.dirs,
1536
- transition: f,
1536
+ transition: v,
1537
1537
  // These should technically only be non-null on mounted VNodes. However,
1538
1538
  // they *should* be copied for kept-alive vnodes. So we just always copy
1539
1539
  // them since them being non-null during a mount doesn't affect the logic as
1540
1540
  // they will simply be overwritten.
1541
1541
  component: e.component,
1542
1542
  suspense: e.suspense,
1543
- ssContent: e.ssContent && ge(e.ssContent),
1544
- ssFallback: e.ssFallback && ge(e.ssFallback),
1543
+ ssContent: e.ssContent && $e(e.ssContent),
1544
+ ssFallback: e.ssFallback && $e(e.ssFallback),
1545
1545
  el: e.el,
1546
1546
  anchor: e.anchor,
1547
1547
  ctx: e.ctx,
1548
1548
  ce: e.ce
1549
1549
  };
1550
- return f && o && In(
1551
- l,
1552
- f.clone(l)
1553
- ), l;
1550
+ return v && o && Dn(
1551
+ r,
1552
+ v.clone(r)
1553
+ ), r;
1554
1554
  }
1555
- function Fn(e) {
1556
- const n = ge(e);
1557
- return I(e.children) && (n.children = e.children.map(Fn)), n;
1555
+ function Rn(e) {
1556
+ const n = $e(e);
1557
+ return D(e.children) && (n.children = e.children.map(Rn)), n;
1558
1558
  }
1559
- function vo(e = " ", n = 0) {
1560
- return mo(co, null, e, n);
1559
+ function Co(e = " ", n = 0) {
1560
+ return vo(po, null, e, n);
1561
1561
  }
1562
- function tn(e, n) {
1562
+ function rn(e, n) {
1563
1563
  let t = 0;
1564
1564
  const { shapeFlag: o } = e;
1565
1565
  if (n == null)
1566
1566
  n = null;
1567
- else if (I(n))
1567
+ else if (D(n))
1568
1568
  t = 16;
1569
1569
  else if (typeof n == "object")
1570
1570
  if (o & 65) {
1571
1571
  const s = n.default;
1572
- s && (s._c && (s._d = !1), tn(e, s()), s._c && (s._d = !0));
1572
+ s && (s._c && (s._d = !1), rn(e, s()), s._c && (s._d = !0));
1573
1573
  return;
1574
1574
  } else
1575
- t = 32, !n._ && !On(n) && (n._ctx = ve);
1576
- else L(n) ? (n = { default: n, _ctx: ve }, t = 32) : (n = String(n), o & 64 ? (t = 16, n = [vo(n)]) : t = 8);
1575
+ t = 32, !n._ && !Pn(n) && (n._ctx = Ce);
1576
+ else B(n) ? (n = { default: n, _ctx: Ce }, t = 32) : (n = String(n), o & 64 ? (t = 16, n = [Co(n)]) : t = 8);
1577
1577
  e.children = n, e.shapeFlag |= t;
1578
1578
  }
1579
- function go(...e) {
1579
+ function $o(...e) {
1580
1580
  const n = {};
1581
1581
  for (let t = 0; t < e.length; t++) {
1582
1582
  const o = e[t];
1583
1583
  for (const s in o)
1584
1584
  if (s === "class")
1585
- n.class !== o.class && (n.class = Qe([n.class, o.class]));
1585
+ n.class !== o.class && (n.class = tn([n.class, o.class]));
1586
1586
  else if (s === "style")
1587
- n.style = Xe([n.style, o.style]);
1588
- else if (Tt(s)) {
1589
- const r = n[s], a = o[s];
1590
- a && r !== a && !(I(r) && r.includes(a)) && (n[s] = r ? [].concat(r, a) : a);
1587
+ n.style = nn([n.style, o.style]);
1588
+ else if (kt(s)) {
1589
+ const a = n[s], c = o[s];
1590
+ c && a !== c && !(D(a) && a.includes(c)) && (n[s] = a ? [].concat(a, c) : c);
1591
1591
  } else s !== "" && (n[s] = o[s]);
1592
1592
  }
1593
1593
  return n;
1594
1594
  }
1595
1595
  {
1596
- const e = ye(), n = (t, o) => {
1596
+ const e = je(), n = (t, o) => {
1597
1597
  let s;
1598
- return (s = e[t]) || (s = e[t] = []), s.push(o), (r) => {
1599
- s.length > 1 ? s.forEach((a) => a(r)) : s[0](r);
1598
+ return (s = e[t]) || (s = e[t] = []), s.push(o), (a) => {
1599
+ s.length > 1 ? s.forEach((c) => c(a)) : s[0](a);
1600
1600
  };
1601
1601
  };
1602
1602
  n(
@@ -1608,58 +1608,58 @@ function go(...e) {
1608
1608
  );
1609
1609
  }
1610
1610
  process.env.NODE_ENV;
1611
- const _o = /(?:^|[-_])(\w)/g, Co = (e) => e.replace(_o, (n) => n.toUpperCase()).replace(/[-_]/g, "");
1612
- function Tn(e, n = !0) {
1613
- return L(e) ? e.displayName || e.name : e.name || n && e.__name;
1611
+ const bo = /(?:^|[-_])(\w)/g, wo = (e) => e.replace(bo, (n) => n.toUpperCase()).replace(/[-_]/g, "");
1612
+ function kn(e, n = !0) {
1613
+ return B(e) ? e.displayName || e.name : e.name || n && e.__name;
1614
1614
  }
1615
- function Rn(e, n, t = !1) {
1616
- let o = Tn(n);
1615
+ function Hn(e, n, t = !1) {
1616
+ let o = kn(n);
1617
1617
  if (!o && n.__file) {
1618
1618
  const s = n.__file.match(/([^/\\]+)\.\w+$/);
1619
1619
  s && (o = s[1]);
1620
1620
  }
1621
1621
  if (!o && e && e.parent) {
1622
- const s = (r) => {
1623
- for (const a in r)
1624
- if (r[a] === n)
1625
- return a;
1622
+ const s = (a) => {
1623
+ for (const c in a)
1624
+ if (a[c] === n)
1625
+ return c;
1626
1626
  };
1627
1627
  o = s(
1628
1628
  e.components || e.parent.type.components
1629
1629
  ) || s(e.appContext.components);
1630
1630
  }
1631
- return o ? Co(o) : t ? "App" : "Anonymous";
1631
+ return o ? wo(o) : t ? "App" : "Anonymous";
1632
1632
  }
1633
- function kn(e) {
1634
- return L(e) && "__vccOpts" in e;
1633
+ function Mn(e) {
1634
+ return B(e) && "__vccOpts" in e;
1635
1635
  }
1636
- function $o() {
1636
+ function No() {
1637
1637
  if (process.env.NODE_ENV === "production" || typeof window > "u")
1638
1638
  return;
1639
1639
  const e = { style: "color:#3ba776" }, n = { style: "color:#1677ff" }, t = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
1640
1640
  __vue_custom_formatter: !0,
1641
1641
  header(i) {
1642
- return V(i) ? i.__isVue ? ["div", e, "VueInstance"] : en(i) ? [
1642
+ return L(i) ? i.__isVue ? ["div", e, "VueInstance"] : on(i) ? [
1643
1643
  "div",
1644
1644
  {},
1645
- ["span", e, l(i)],
1645
+ ["span", e, r(i)],
1646
1646
  "<",
1647
1647
  // avoid debugger accessing value affecting behavior
1648
- c("_value" in i ? i._value : i),
1648
+ g("_value" in i ? i._value : i),
1649
1649
  ">"
1650
- ] : Nn(i) ? [
1650
+ ] : En(i) ? [
1651
1651
  "div",
1652
1652
  {},
1653
- ["span", e, Ae(i) ? "ShallowReactive" : "Reactive"],
1653
+ ["span", e, Ie(i) ? "ShallowReactive" : "Reactive"],
1654
1654
  "<",
1655
- c(i),
1656
- `>${Le(i) ? " (readonly)" : ""}`
1657
- ] : Le(i) ? [
1655
+ g(i),
1656
+ `>${Be(i) ? " (readonly)" : ""}`
1657
+ ] : Be(i) ? [
1658
1658
  "div",
1659
1659
  {},
1660
- ["span", e, Ae(i) ? "ShallowReadonly" : "Readonly"],
1660
+ ["span", e, Ie(i) ? "ShallowReadonly" : "Readonly"],
1661
1661
  "<",
1662
- c(i),
1662
+ g(i),
1663
1663
  ">"
1664
1664
  ] : null : null;
1665
1665
  },
@@ -1671,17 +1671,17 @@ function $o() {
1671
1671
  return [
1672
1672
  "div",
1673
1673
  {},
1674
- ...r(i.$)
1674
+ ...a(i.$)
1675
1675
  ];
1676
1676
  }
1677
1677
  };
1678
- function r(i) {
1679
- const u = [];
1680
- i.type.props && i.props && u.push(a("props", H(i.props))), i.setupState !== Me && u.push(a("setup", i.setupState)), i.data !== Me && u.push(a("data", H(i.data)));
1681
- const d = f(i, "computed");
1682
- d && u.push(a("computed", d));
1683
- const g = f(i, "inject");
1684
- return g && u.push(a("injected", g)), u.push([
1678
+ function a(i) {
1679
+ const l = [];
1680
+ i.type.props && i.props && l.push(c("props", K(i.props))), i.setupState !== ze && l.push(c("setup", i.setupState)), i.data !== ze && l.push(c("data", K(i.data)));
1681
+ const m = v(i, "computed");
1682
+ m && l.push(c("computed", m));
1683
+ const C = v(i, "inject");
1684
+ return C && l.push(c("injected", C)), l.push([
1685
1685
  "div",
1686
1686
  {},
1687
1687
  [
@@ -1692,10 +1692,10 @@ function $o() {
1692
1692
  "$ (internal): "
1693
1693
  ],
1694
1694
  ["object", { object: i }]
1695
- ]), u;
1695
+ ]), l;
1696
1696
  }
1697
- function a(i, u) {
1698
- return u = we({}, u), Object.keys(u).length ? [
1697
+ function c(i, l) {
1698
+ return l = Se({}, l), Object.keys(l).length ? [
1699
1699
  "div",
1700
1700
  { style: "line-height:1.25em;margin-bottom:0.6em" },
1701
1701
  [
@@ -1710,34 +1710,34 @@ function $o() {
1710
1710
  {
1711
1711
  style: "padding-left:1.25em"
1712
1712
  },
1713
- ...Object.keys(u).map((d) => [
1713
+ ...Object.keys(l).map((m) => [
1714
1714
  "div",
1715
1715
  {},
1716
- ["span", o, d + ": "],
1717
- c(u[d], !1)
1716
+ ["span", o, m + ": "],
1717
+ g(l[m], !1)
1718
1718
  ])
1719
1719
  ]
1720
1720
  ] : ["span", {}];
1721
1721
  }
1722
- function c(i, u = !0) {
1723
- return typeof i == "number" ? ["span", n, i] : typeof i == "string" ? ["span", t, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : V(i) ? ["object", { object: u ? H(i) : i }] : ["span", t, String(i)];
1722
+ function g(i, l = !0) {
1723
+ return typeof i == "number" ? ["span", n, i] : typeof i == "string" ? ["span", t, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : L(i) ? ["object", { object: l ? K(i) : i }] : ["span", t, String(i)];
1724
1724
  }
1725
- function f(i, u) {
1726
- const d = i.type;
1727
- if (L(d))
1725
+ function v(i, l) {
1726
+ const m = i.type;
1727
+ if (B(m))
1728
1728
  return;
1729
- const g = {};
1730
- for (const h in i.ctx)
1731
- p(d, h, u) && (g[h] = i.ctx[h]);
1732
- return g;
1733
- }
1734
- function p(i, u, d) {
1735
- const g = i[d];
1736
- if (I(g) && g.includes(u) || V(g) && u in g || i.extends && p(i.extends, u, d) || i.mixins && i.mixins.some((h) => p(h, u, d)))
1729
+ const C = {};
1730
+ for (const p in i.ctx)
1731
+ d(m, p, l) && (C[p] = i.ctx[p]);
1732
+ return C;
1733
+ }
1734
+ function d(i, l, m) {
1735
+ const C = i[m];
1736
+ if (D(C) && C.includes(l) || L(C) && l in C || i.extends && d(i.extends, l, m) || i.mixins && i.mixins.some((p) => d(p, l, m)))
1737
1737
  return !0;
1738
1738
  }
1739
- function l(i) {
1740
- return Ae(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
1739
+ function r(i) {
1740
+ return Ie(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
1741
1741
  }
1742
1742
  window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
1743
1743
  }
@@ -1749,15 +1749,15 @@ process.env.NODE_ENV;
1749
1749
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1750
1750
  * @license MIT
1751
1751
  **/
1752
- function bo() {
1753
- $o();
1752
+ function yo() {
1753
+ No();
1754
1754
  }
1755
- process.env.NODE_ENV !== "production" && bo();
1756
- function No(e) {
1757
- return Ot(e) || Pt(e) || It(e) || xt(e) || Dt(e);
1755
+ process.env.NODE_ENV !== "production" && yo();
1756
+ function Eo(e) {
1757
+ return Pt(e) || Tt(e) || Dt(e) || Ft(e) || Vt(e);
1758
1758
  }
1759
- var Vn = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(Vn || {});
1760
- class y {
1759
+ var Ln = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(Ln || {});
1760
+ class j {
1761
1761
  imports = /* @__PURE__ */ new Set();
1762
1762
  parentDir;
1763
1763
  name;
@@ -1798,814 +1798,865 @@ class y {
1798
1798
  this.parentDir = n;
1799
1799
  }
1800
1800
  }
1801
- var _e;
1801
+ var be;
1802
1802
  ((e) => {
1803
1803
  ((n) => {
1804
1804
  n.Lombok = "Lombok", n.LombokBuilder = "LombokBuilder", n.RecordVakueObject = "RecordVakueObject", n.CommandHandler = "CommandHandler", n.Jpa = "Jpa", n.Timezone = "Timezone", n.SpringFramework = "SpringFramework";
1805
1805
  })(e.JavaGeneratorAddition || (e.JavaGeneratorAddition = {}));
1806
- })(_e || (_e = {}));
1807
- var Ce;
1806
+ })(be || (be = {}));
1807
+ var we;
1808
1808
  ((e) => {
1809
1809
  ((n) => {
1810
1810
  n.ValueClass = "ValueClass", n.CommandHandler = "CommandHandler", n.Timezone = "Timezone";
1811
1811
  })(e.KotlinGeneratorAddition || (e.KotlinGeneratorAddition = {}));
1812
- })(Ce || (Ce = {}));
1813
- var $e;
1812
+ })(we || (we = {}));
1813
+ var Ne;
1814
1814
  ((e) => {
1815
1815
  ((n) => {
1816
1816
  n.Timezone = "Timezone", n.RecordStruct = "RecordStruct", n.PrimaryConstructor = "PrimaryConstructor", n.CommandHandlerInterface = "CommandHandlerInterface", n.AggInterface = "AggInterface";
1817
1817
  })(e.CSharpGeneratorAddition || (e.CSharpGeneratorAddition = {}));
1818
- })($e || ($e = {}));
1819
- var Ue;
1818
+ })(Ne || (Ne = {}));
1819
+ var We;
1820
1820
  ((e) => {
1821
1821
  ((n) => {
1822
1822
  n.SinglePackageEachDesigner = "SinglePackageEachDesigner";
1823
1823
  })(e.GoGeneratorAddition || (e.GoGeneratorAddition = {}));
1824
- })(Ue || (Ue = {}));
1825
- const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1824
+ })(We || (We = {}));
1825
+ const jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1826
1826
  __proto__: null,
1827
- CodeFile: y,
1828
- Language: Vn,
1827
+ CodeFile: j,
1828
+ Language: Ln,
1829
1829
  get csharp() {
1830
- return $e;
1830
+ return Ne;
1831
1831
  },
1832
1832
  get go() {
1833
- return Ue;
1833
+ return We;
1834
1834
  },
1835
- isStruct: No,
1835
+ isStruct: Eo,
1836
1836
  get java() {
1837
- return _e;
1837
+ return be;
1838
1838
  },
1839
1839
  get kotlin() {
1840
- return Ce;
1840
+ return we;
1841
1841
  }
1842
1842
  }, Symbol.toStringTag, { value: "Module" }));
1843
- var $;
1843
+ var N;
1844
1844
  ((e) => {
1845
- function n(p) {
1846
- return p.trim().split(p.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((l) => l.charAt(0).toUpperCase() + l.toLowerCase().slice(1)).join("");
1845
+ function n(d) {
1846
+ return d.trim().split(d.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((r) => r.charAt(0).toUpperCase() + r.toLowerCase().slice(1)).join("");
1847
1847
  }
1848
1848
  e.stringToUpperCamel = n;
1849
- function t(p) {
1850
- let l = !0;
1851
- return p.trim().split(p.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((i) => l ? (l = !1, i.toLowerCase()) : i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
1849
+ function t(d) {
1850
+ let r = !0;
1851
+ return d.trim().split(d.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((i) => r ? (r = !1, i.toLowerCase()) : i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
1852
1852
  }
1853
1853
  e.stringToLowerCamel = t;
1854
- function o(p) {
1855
- return p.includes("_") ? p.toLowerCase() : r(p);
1854
+ function o(d) {
1855
+ return d.includes("_") ? d.toLowerCase() : a(d);
1856
1856
  }
1857
1857
  e.stringToLowerSnake = o;
1858
- function s(p) {
1859
- return p.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
1858
+ function s(d) {
1859
+ return d.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
1860
1860
  }
1861
1861
  e.camelToUpperSnake = s;
1862
- function r(p) {
1863
- return p.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
1862
+ function a(d) {
1863
+ return d.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
1864
1864
  }
1865
- e.camelToLowerSnake = r;
1866
- function a(p) {
1867
- return p.trim().split("_").map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("");
1865
+ e.camelToLowerSnake = a;
1866
+ function c(d) {
1867
+ return d.trim().split("_").map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join("");
1868
1868
  }
1869
- e.snakeToUpperCamel = a;
1870
- function c(p) {
1871
- return p.trim().charAt(0).toLowerCase() + p.slice(1);
1869
+ e.snakeToUpperCamel = c;
1870
+ function g(d) {
1871
+ return d.trim().charAt(0).toLowerCase() + d.slice(1);
1872
1872
  }
1873
- e.lowerFirst = c;
1874
- function f(p) {
1875
- return p.trim().charAt(0).toUpperCase() + p.slice(1);
1873
+ e.lowerFirst = g;
1874
+ function v(d) {
1875
+ return d.trim().charAt(0).toUpperCase() + d.slice(1);
1876
1876
  }
1877
- e.upperFirst = f;
1878
- })($ || ($ = {}));
1879
- const E = _e.JavaGeneratorAddition, Eo = ae.createHotSwapPlugin(() => {
1877
+ e.upperFirst = v;
1878
+ })(N || (N = {}));
1879
+ const O = be.JavaGeneratorAddition, Oo = ue.createHotSwapPlugin(() => {
1880
1880
  const e = "value";
1881
1881
  function n(t) {
1882
- return $.stringToUpperCamel(t._attributes.name);
1882
+ return N.stringToUpperCamel(t._attributes.name);
1883
1883
  }
1884
1884
  return {
1885
1885
  unmount({ api: t }) {
1886
1886
  t.commands.clearCaches(), t.commands._setCommandCodeProvider(() => []), t.commands._setFacadeCommandCodeProvider(() => []), t.commands._setAggCodeProvider(() => []), t.commands._setEventCodeProvider(() => []), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => []), t.commands.setContext({});
1887
1887
  },
1888
1888
  mount({ api: t }) {
1889
- const o = t.states.context;
1890
- function s(a, c) {
1891
- const f = o.value.additions, p = $.stringToLowerSnake(c._attributes.name).replace(/_/, " ");
1892
- return /\b(time|timestamp|date|deadline|expire)\b/.test(p) ? f.has(E.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(p) ? "Integer" : /\b(price)$/.test(p) ? (a.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(p) ? "Boolean" : Ne(c) && (c._attributes.type === "Id" || c._attributes.type === "Version") ? "Long" : "String";
1889
+ const o = t.states.context, s = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((r) => N.stringToLowerCamel(r));
1890
+ function a(r) {
1891
+ return !s.includes(N.stringToLowerCamel(r._attributes.name));
1892
+ }
1893
+ function c(r, i) {
1894
+ return a(i) ? N.stringToUpperCamel(i._attributes.name) : v(r, i);
1895
+ }
1896
+ function g(r, i) {
1897
+ for (const l of i) {
1898
+ if (!a(l)) {
1899
+ v(r, l);
1900
+ continue;
1901
+ }
1902
+ r.add(
1903
+ `${o.value.namespace}.${o.value.moduleName}.${e}.${n(l)}`
1904
+ );
1905
+ }
1906
+ }
1907
+ function v(r, i) {
1908
+ const l = o.value.additions, m = N.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
1909
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(m) ? l.has(O.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(m) ? "Integer" : /\b(price)$/.test(m) ? (r.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(m) ? "Boolean" : Ee(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") ? "Long" : "String";
1893
1910
  }
1894
1911
  t.commands._setInfoCodeProvider(
1895
- (a) => {
1896
- const c = /* @__PURE__ */ new Set();
1897
- c.add(o.value.nonNullAnnotation);
1898
- const f = o.value.nonNullAnnotation.split(".").pop(), p = n(a), l = o.value.additions, i = [];
1899
- return l.has(E.RecordVakueObject) ? (i.push(`public record ${p}(@${f} ${s(c, a)} value) {`), i.push(` public ${p} {`), i.push(" // HACK check value"), i.push(" }"), i.push("}")) : l.has(E.Lombok) ? (i.push("@lombok.Getter"), i.push(`public class ${p} {`), i.push(` private final ${s(c, a)} value;`), i.push(""), i.push(` public ${p} (@${f} ${s(c, a)} value) {`), i.push(" // HACK check value"), i.push(" this.value = value;"), i.push(" }"), i.push("}")) : (i.push(`public class ${n(a)} {`), i.push(` private final ${s(c, a)} value;`), i.push(""), i.push(` public ${p} (@${f} ${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("}")), [
1912
+ (r) => {
1913
+ const i = /* @__PURE__ */ new Set();
1914
+ i.add(o.value.nonNullAnnotation);
1915
+ const l = o.value.nonNullAnnotation.split(".").pop(), m = n(r), C = o.value.additions, p = [];
1916
+ return C.has(O.RecordVakueObject) ? (p.push(`public record ${m}(@${l} ${v(i, r)} value) {`), p.push(` public ${m} {`), p.push(" // HACK check value"), p.push(" }"), p.push("}")) : C.has(O.Lombok) ? (p.push("@lombok.Getter"), p.push(`public class ${m} {`), p.push(` private final ${v(i, r)} value;`), p.push(""), p.push(` public ${m} (@${l} ${v(i, r)} value) {`), p.push(" // HACK check value"), p.push(" this.value = value;"), p.push(" }"), p.push("}")) : (p.push(`public class ${n(r)} {`), p.push(` private final ${v(i, r)} value;`), p.push(""), p.push(` public ${m} (@${l} ${v(i, r)} value) {`), p.push(" // HACK check value"), p.push(" this.value = value;"), p.push(" }"), p.push(""), p.push(` public ${v(i, r)} getValue() {`), p.push(" return this.value;"), p.push(" }"), p.push("}")), [
1900
1917
  {
1901
1918
  type: "Info",
1902
- imports: c,
1903
- content: i.join(`
1919
+ imports: i,
1920
+ content: p.join(`
1904
1921
  `)
1905
1922
  }
1906
1923
  ];
1907
1924
  }
1908
1925
  );
1909
- function r(a) {
1910
- const c = [], f = o.value.additions, p = o.value.nonNullAnnotation.split(".").pop();
1926
+ function d(r) {
1927
+ const i = [], l = o.value.additions, m = o.value.nonNullAnnotation.split(".").pop();
1911
1928
  {
1912
- const l = /* @__PURE__ */ new Set();
1913
- l.add(o.value.nonNullAnnotation);
1914
- const i = n(a), u = [], d = Object.values(a.inner);
1915
- for (const g of d)
1916
- l.add(
1917
- `${o.value.namespace}.${o.value.moduleName}.${e}.${n(g)}`
1918
- );
1919
- if (f.has(E.RecordVakueObject)) {
1920
- f.has(E.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public record ${i}(`);
1921
- const g = [];
1922
- for (const h of d) {
1923
- const v = n(h);
1924
- g.push(` @${p}
1925
- ${v} ${$.lowerFirst(v)}`);
1929
+ const C = /* @__PURE__ */ new Set();
1930
+ C.add(o.value.nonNullAnnotation);
1931
+ const p = n(r), f = [], $ = Object.values(r.inner);
1932
+ if (g(C, $), l.has(O.RecordVakueObject)) {
1933
+ l.has(O.LombokBuilder) && f.push("@lombok.Builder(toBuilder = true)"), f.push(`public record ${p}(`);
1934
+ const _ = [];
1935
+ for (const b of $) {
1936
+ const h = n(b);
1937
+ _.push(
1938
+ ` @${m}
1939
+ ${c(
1940
+ C,
1941
+ b
1942
+ )} ${N.lowerFirst(h)}`
1943
+ );
1926
1944
  }
1927
- u.push(g.join(`,
1928
- `)), u.push(") {"), u.push(` public ${i} {`), u.push(" // HACK check value"), u.push(" }"), u.push("}");
1929
- } else if (f.has(E.Lombok)) {
1930
- u.push("@lombok.AllArgsConstructor"), u.push("@lombok.Getter"), f.has(E.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public class ${i} {`);
1931
- for (const g of d) {
1932
- const h = n(g);
1933
- u.push(` @${p}`), u.push(` private final ${h} ${$.lowerFirst(h)};`);
1945
+ f.push(_.join(`,
1946
+ `)), f.push(") {"), f.push(` public ${p} {`), f.push(" // HACK check value"), f.push(" }"), f.push("}");
1947
+ } else if (l.has(O.Lombok)) {
1948
+ f.push("@lombok.AllArgsConstructor"), f.push("@lombok.Getter"), l.has(O.LombokBuilder) && f.push("@lombok.Builder(toBuilder = true)"), f.push(`public class ${p} {`);
1949
+ for (const _ of $) {
1950
+ const b = n(_);
1951
+ f.push(` @${m}`), f.push(
1952
+ ` private final ${c(C, _)} ${N.lowerFirst(b)};`
1953
+ );
1934
1954
  }
1935
- u.push("}");
1955
+ f.push("}");
1936
1956
  } else {
1937
- u.push(`public class ${i} {`);
1938
- for (const v of d) {
1939
- const m = n(v);
1940
- u.push(` @${p}`), u.push(` private final ${s(l, v)} ${$.lowerFirst(m)};`);
1957
+ f.push(`public class ${p} {`);
1958
+ for (const h of $) {
1959
+ const u = n(h);
1960
+ f.push(` @${m}`), f.push(
1961
+ ` private final ${c(C, h)} ${N.lowerFirst(u)};`
1962
+ );
1941
1963
  }
1942
- u.push("");
1943
- const g = [], h = [];
1944
- for (const v of d) {
1945
- const m = n(v);
1946
- g.push(`@${p} ${s(l, v)} ${$.lowerFirst(m)}`), h.push(`this.${$.lowerFirst(m)} = ${$.lowerFirst(m)};`);
1964
+ f.push("");
1965
+ const _ = [], b = [];
1966
+ for (const h of $) {
1967
+ const u = n(h);
1968
+ _.push(
1969
+ `@${m} ${v(C, h)} ${N.lowerFirst(u)}`
1970
+ ), b.push(`this.${N.lowerFirst(u)} = ${N.lowerFirst(u)};`);
1947
1971
  }
1948
- u.push(` public ${i}(${g.join(", ")}) {`), u.push(` ${h.join(`
1949
- `)}`), u.push(" }");
1950
- for (const v of d) {
1951
- const m = n(v);
1952
- u.push(""), u.push(` public ${s(l, v)} get${m} () {`), u.push(` return this.${$.lowerFirst(m)};`), u.push(" }");
1972
+ f.push(` public ${p}(${_.join(", ")}) {`), f.push(` ${b.join(`
1973
+ `)}`), f.push(" }");
1974
+ for (const h of $) {
1975
+ const u = n(h);
1976
+ f.push(""), f.push(` public ${c(C, h)} get${u} () {`), f.push(` return this.${N.lowerFirst(u)};`), f.push(" }");
1953
1977
  }
1954
- u.push("}");
1978
+ f.push("}");
1955
1979
  }
1956
- c.push({
1980
+ i.push({
1957
1981
  type: "Command",
1958
- imports: l,
1959
- content: u.join(`
1982
+ imports: C,
1983
+ content: f.join(`
1960
1984
  `)
1961
1985
  });
1962
1986
  }
1963
- if (!f.has(E.CommandHandler))
1964
- return c;
1987
+ if (!l.has(O.CommandHandler))
1988
+ return i;
1965
1989
  {
1966
- const l = /* @__PURE__ */ new Set();
1967
- l.add(o.value.nonNullAnnotation);
1968
- const i = n(a), u = [];
1969
- f.has(E.SpringFramework) && (l.add("org.springframework.stereotype.Component"), u.push("@Component")), f.has(E.Lombok) && u.push("@lombok.RequiredArgsConstructor"), u.push(`public class ${i}Handler {`);
1970
- const d = [...t.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
1971
- (g) => g._attributes.rule === "Agg"
1990
+ const C = /* @__PURE__ */ new Set();
1991
+ C.add(o.value.nonNullAnnotation);
1992
+ const p = n(r), f = [];
1993
+ l.has(O.SpringFramework) && (C.add("org.springframework.stereotype.Component"), f.push("@Component")), l.has(O.Lombok) && f.push("@lombok.RequiredArgsConstructor"), f.push(`public class ${p}Handler {`);
1994
+ const $ = [...t.states.designer.value._getContext().getAssociationMap()[r._attributes.__id]].filter(
1995
+ (_) => _._attributes.rule === "Agg"
1972
1996
  );
1973
- for (const g of d)
1974
- l.add(`${o.value.namespace}.${o.value.moduleName}.${n(g)}`), u.push(` public ${n(g)} handle(@${p} ${i} command) {`), u.push(" // HACK Implement"), u.push(" }");
1975
- u.push("}"), c.push({
1997
+ for (const _ of $)
1998
+ C.add(`${o.value.namespace}.${o.value.moduleName}.${n(_)}`), f.push(` public ${n(_)} handle(@${m} ${p} command) {`), f.push(" // HACK Implement"), f.push(" }");
1999
+ f.push("}"), i.push({
1976
2000
  type: "CommandHandler",
1977
- imports: l,
1978
- content: u.join(`
2001
+ imports: C,
2002
+ content: f.join(`
1979
2003
  `)
1980
2004
  });
1981
2005
  }
1982
- return c;
2006
+ return i;
1983
2007
  }
1984
- t.commands._setCommandCodeProvider(r), t.commands._setFacadeCommandCodeProvider(r), t.commands._setAggCodeProvider(
1985
- (a) => {
1986
- const c = o.value.additions, f = t.states.designer.value, p = o.value.nonNullAnnotation.split(".").pop(), l = n(a), i = [];
2008
+ t.commands._setCommandCodeProvider(d), t.commands._setFacadeCommandCodeProvider(d), t.commands._setAggCodeProvider(
2009
+ (r) => {
2010
+ const i = o.value.additions, l = t.states.designer.value, m = o.value.nonNullAnnotation.split(".").pop(), C = n(r), p = [];
1987
2011
  {
1988
- const u = /* @__PURE__ */ new Set();
1989
- u.add(o.value.nonNullAnnotation);
1990
- const d = [], g = [], h = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter((v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand");
1991
- for (const v of h) {
1992
- const m = n(v);
1993
- g.push(`public void handle${m}(@${p} ${m} command);`);
2012
+ const f = /* @__PURE__ */ new Set();
2013
+ f.add(o.value.nonNullAnnotation);
2014
+ const $ = [], _ = [], b = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter((h) => h._attributes.rule === "Command" || h._attributes.rule === "FacadeCommand");
2015
+ for (const h of b) {
2016
+ const u = n(h);
2017
+ _.push(`public void handle${u}(@${m} ${u} command);`);
1994
2018
  }
1995
- d.push(`public interface ${l} {`), d.push(` ${g.join(`
2019
+ $.push(`public interface ${C} {`), $.push(` ${_.join(`
1996
2020
 
1997
- `)}`), d.push("}"), i.push({
2021
+ `)}`), $.push("}"), p.push({
1998
2022
  type: "Agg",
1999
- imports: u,
2000
- content: d.join(`
2023
+ imports: f,
2024
+ content: $.join(`
2001
2025
  `)
2002
2026
  });
2003
2027
  }
2004
2028
  {
2005
- const u = /* @__PURE__ */ new Set();
2006
- u.add(o.value.nonNullAnnotation);
2007
- const d = [], g = Object.values(a.inner);
2008
- for (const h of g)
2009
- u.add(
2010
- `${o.value.namespace}.${o.value.moduleName}.${e}.${n(h)}`
2011
- );
2012
- if (c.has(E.Lombok)) {
2013
- d.push("@lombok.AllArgsConstructor"), d.push("@lombok.Getter"), d.push(`public class ${l}Impl implements ${l} {`);
2014
- for (const v of g) {
2015
- const m = n(v);
2016
- d.push(` @${p}`), d.push(` private ${m} ${$.lowerFirst(m)};`);
2029
+ const f = /* @__PURE__ */ new Set();
2030
+ f.add(o.value.nonNullAnnotation);
2031
+ const $ = [], _ = Object.values(r.inner);
2032
+ if (g(f, _), i.has(O.Lombok)) {
2033
+ $.push("@lombok.AllArgsConstructor"), $.push("@lombok.Getter"), $.push(`public class ${C}Impl implements ${C} {`);
2034
+ for (const h of _) {
2035
+ const u = n(h);
2036
+ $.push(` @${m}`), $.push(` private ${c(f, h)} ${N.lowerFirst(u)};`);
2017
2037
  }
2018
- const h = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter((v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand");
2019
- for (const v of h) {
2020
- const m = n(v);
2021
- d.push(""), d.push(
2022
- ` public void handle${m}(@${p} ${m} ${$.lowerFirst(
2023
- m
2038
+ const b = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter((h) => h._attributes.rule === "Command" || h._attributes.rule === "FacadeCommand");
2039
+ for (const h of b) {
2040
+ const u = n(h);
2041
+ $.push(""), $.push(
2042
+ ` public void handle${u}(@${m} ${u} ${N.lowerFirst(
2043
+ u
2024
2044
  )}) {`
2025
- ), d.push(" // HACK need implement"), d.push(" }");
2045
+ ), $.push(" // HACK need implement"), $.push(" }");
2026
2046
  }
2027
- d.push("}");
2047
+ $.push("}");
2028
2048
  } else {
2029
- d.push(`public class ${l}Impl implements ${l} {`);
2030
- for (const _ of g) {
2031
- const C = n(_);
2032
- d.push(` @${p}`), d.push(` private ${C} ${$.lowerFirst(C)};`);
2049
+ $.push(`public class ${C}Impl implements ${C} {`);
2050
+ for (const w of _) {
2051
+ const y = n(w);
2052
+ $.push(` @${m}`), $.push(` private ${c(f, w)} ${N.lowerFirst(y)};`);
2033
2053
  }
2034
- d.push("");
2035
- const h = [], v = [];
2036
- for (const _ of g) {
2037
- const C = n(_);
2038
- h.push(`@${p} ${C} ${$.lowerFirst(C)}`), v.push(`this.${$.lowerFirst(C)} = ${$.lowerFirst(C)};`);
2054
+ $.push("");
2055
+ const b = [], h = [];
2056
+ for (const w of _) {
2057
+ const y = n(w);
2058
+ b.push(
2059
+ `@${m} ${c(f, w)} ${N.lowerFirst(y)}`
2060
+ ), h.push(`this.${N.lowerFirst(y)} = ${N.lowerFirst(y)};`);
2039
2061
  }
2040
- d.push(` public ${l}(${h.join(", ")}) {`), d.push(` ${v.join(`
2041
- `)}`), d.push(" }");
2042
- for (const _ of g) {
2043
- const C = n(_);
2044
- d.push(""), d.push(` @${p}`), d.push(` public ${C} get${C}() {`), d.push(` return this.${$.lowerFirst(C)};`), d.push(" }");
2062
+ $.push(` public ${C}(${b.join(", ")}) {`), $.push(` ${h.join(`
2063
+ `)}`), $.push(" }");
2064
+ for (const w of _) {
2065
+ const y = n(w);
2066
+ $.push(""), $.push(` @${m}`), $.push(` public ${c(f, w)} get${y}() {`), $.push(` return this.${N.lowerFirst(y)};`), $.push(" }");
2045
2067
  }
2046
- const m = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter(
2047
- (_) => _._attributes.rule === "Command" || _._attributes.rule === "FacadeCommand"
2068
+ const u = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter(
2069
+ (w) => w._attributes.rule === "Command" || w._attributes.rule === "FacadeCommand"
2048
2070
  );
2049
- for (const _ of m) {
2050
- const C = n(_);
2051
- d.push(""), d.push(
2052
- ` public void handle${C}(@${p} ${C} ${$.lowerFirst(
2053
- C
2071
+ for (const w of u) {
2072
+ const y = n(w);
2073
+ $.push(""), $.push(
2074
+ ` public void handle${y}(@${m} ${y} ${N.lowerFirst(
2075
+ y
2054
2076
  )}) {`
2055
- ), d.push(" // HACK need implement"), d.push(" }");
2077
+ ), $.push(" // HACK need implement"), $.push(" }");
2056
2078
  }
2057
- d.push("}");
2079
+ $.push("}");
2058
2080
  }
2059
- i.push({
2081
+ p.push({
2060
2082
  type: "AggImpl",
2061
- imports: u,
2062
- content: d.join(`
2083
+ imports: f,
2084
+ content: $.join(`
2063
2085
  `)
2064
2086
  });
2065
2087
  }
2066
- return i;
2088
+ return p;
2067
2089
  }
2068
2090
  ), t.commands._setEventCodeProvider(
2069
- (a) => {
2070
- const c = /* @__PURE__ */ new Set();
2071
- c.add(o.value.nonNullAnnotation);
2072
- const f = o.value.nonNullAnnotation.split(".").pop(), p = o.value.additions, l = n(a), i = [], u = Object.values(a.inner);
2073
- for (const d of u)
2074
- c.add(
2075
- `${o.value.namespace}.${o.value.moduleName}.${e}.${n(d)}`
2076
- );
2077
- if (p.has(E.RecordVakueObject)) {
2078
- p.has(E.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`public record ${l}(`);
2079
- const d = [];
2080
- for (const g of u) {
2081
- const h = n(g);
2082
- d.push(` @${f}
2083
- ${h} ${$.lowerFirst(h)}`);
2091
+ (r) => {
2092
+ const i = /* @__PURE__ */ new Set();
2093
+ i.add(o.value.nonNullAnnotation);
2094
+ const l = o.value.nonNullAnnotation.split(".").pop(), m = o.value.additions, C = n(r), p = [], f = Object.values(r.inner);
2095
+ if (g(i, f), m.has(O.RecordVakueObject)) {
2096
+ m.has(O.LombokBuilder) && p.push("@lombok.Builder(toBuilder = true)"), p.push(`public record ${C}(`);
2097
+ const $ = [];
2098
+ for (const _ of f) {
2099
+ const b = n(_);
2100
+ $.push(
2101
+ ` @${l}
2102
+ ${c(
2103
+ i,
2104
+ _
2105
+ )} ${N.lowerFirst(b)}`
2106
+ );
2084
2107
  }
2085
- i.push(d.join(`,
2086
- `)), i.push(") {"), i.push(` public ${l} {`), i.push(" // HACK check value"), i.push(" }"), i.push("}");
2087
- } else if (p.has(E.Lombok)) {
2088
- i.push("@lombok.AllArgsConstructor"), i.push("@lombok.Getter"), p.has(E.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`public class ${l} {`);
2089
- for (const d of u) {
2090
- const g = n(d);
2091
- i.push(` @${f}`), i.push(` private final ${g} ${$.lowerFirst(g)};`);
2108
+ p.push($.join(`,
2109
+ `)), p.push(") {"), p.push(` public ${C} {`), p.push(" // HACK check value"), p.push(" }"), p.push("}");
2110
+ } else if (m.has(O.Lombok)) {
2111
+ p.push("@lombok.AllArgsConstructor"), p.push("@lombok.Getter"), m.has(O.LombokBuilder) && p.push("@lombok.Builder(toBuilder = true)"), p.push(`public class ${C} {`);
2112
+ for (const $ of f) {
2113
+ const _ = n($);
2114
+ p.push(` @${l}`), p.push(
2115
+ ` private final ${c(i, $)} ${N.lowerFirst(_)};`
2116
+ );
2092
2117
  }
2093
- i.push("}");
2118
+ p.push("}");
2094
2119
  } else {
2095
- i.push(`public class ${l} {`);
2096
- for (const h of u) {
2097
- const v = n(h);
2098
- i.push(` @${f}`), i.push(` private final ${v} ${$.lowerFirst(v)};`);
2120
+ p.push(`public class ${C} {`);
2121
+ for (const b of f) {
2122
+ const h = n(b);
2123
+ p.push(` @${l}`), p.push(` private final ${h} ${N.lowerFirst(h)};`);
2099
2124
  }
2100
- i.push("");
2101
- const d = [], g = [];
2102
- for (const h of u) {
2103
- const v = n(h);
2104
- d.push(`@${f} ${s(c, h)} ${$.lowerFirst(v)}`), g.push(`this.${$.lowerFirst(v)} = ${$.lowerFirst(v)};`);
2125
+ p.push("");
2126
+ const $ = [], _ = [];
2127
+ for (const b of f) {
2128
+ const h = n(b);
2129
+ $.push(
2130
+ `@${l} ${v(i, b)} ${N.lowerFirst(h)}`
2131
+ ), _.push(`this.${N.lowerFirst(h)} = ${N.lowerFirst(h)};`);
2105
2132
  }
2106
- i.push(` public ${l}(${d.join(", ")}) {`), i.push(` ${g.join(`
2107
- `)}`), i.push(" }");
2108
- for (const h of u) {
2109
- const v = n(h);
2110
- i.push(""), i.push(` public ${v} get${v} () {`), i.push(` return this.${$.lowerFirst(v)};`), i.push(" }");
2133
+ p.push(` public ${C}(${$.join(", ")}) {`), p.push(` ${_.join(`
2134
+ `)}`), p.push(" }");
2135
+ for (const b of f) {
2136
+ const h = n(b);
2137
+ p.push(""), p.push(` public ${h} get${h} () {`), p.push(` return this.${N.lowerFirst(h)};`), p.push(" }");
2111
2138
  }
2112
- i.push("}");
2139
+ p.push("}");
2113
2140
  }
2114
2141
  return [
2115
2142
  {
2116
2143
  type: "Event",
2117
- imports: c,
2118
- content: i.join(`
2144
+ imports: i,
2145
+ content: p.join(`
2119
2146
  `)
2120
2147
  }
2121
2148
  ];
2122
2149
  }
2123
2150
  ), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => {
2124
- const a = [], c = {};
2125
- function f(d) {
2126
- for (const g of Object.values(d)) {
2127
- const h = [...o.value.namespace.split(/\./), o.value.moduleName, e], v = n(g) + ".java";
2128
- if (c[`${h.join("/")}/${v}`] === !0)
2151
+ const r = [], i = {};
2152
+ function l($) {
2153
+ for (const _ of Object.values($)) {
2154
+ if (!a(_))
2129
2155
  continue;
2130
- const m = t.commands._genInfoCode(g);
2131
- if (m.length === 0)
2156
+ const b = [...o.value.namespace.split(/\./), o.value.moduleName, e], h = n(_) + ".java";
2157
+ if (i[`${b.join("/")}/${h}`] === !0)
2132
2158
  continue;
2133
- const _ = new y(h, v);
2134
- _.appendContentln(`package ${o.value.namespace}.${o.value.moduleName}.${e};`), _.appendContentln("");
2135
- for (const C of m[0].imports)
2136
- _.appendContentln(`import ${C};`);
2137
- _.appendContentln(""), _.appendContentln(m[0].content), a.push(_), c[`${h.join("/")}/${v}`] = !0;
2159
+ const u = t.commands._genInfoCode(_);
2160
+ if (u.length === 0)
2161
+ continue;
2162
+ const w = new j(b, h);
2163
+ w.appendContentln(`package ${o.value.namespace}.${o.value.moduleName}.${e};`), w.appendContentln("");
2164
+ for (const y of u[0].imports)
2165
+ w.appendContentln(`import ${y};`);
2166
+ w.appendContentln(""), w.appendContentln(u[0].content), r.push(w), i[`${b.join("/")}/${h}`] = !0;
2138
2167
  }
2139
2168
  }
2140
- const p = t.states.designer.value._getContext().getCommands();
2141
- for (const d of p) {
2142
- f(d.inner);
2143
- const g = t.commands._genCommandCode(d), h = [...o.value.namespace.split(/\./), o.value.moduleName];
2144
- g.forEach((v) => {
2145
- if (v.type === "Command") {
2146
- const m = new y(h, n(d) + ".java");
2147
- m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(v.imports);
2148
- for (const _ of v.imports)
2149
- m.appendContentln(`import ${_};`);
2150
- m.appendContentln(""), m.appendContentln(v.content), a.push(m);
2151
- } else if (v.type === "CommandHandler") {
2152
- const m = new y(h, n(d) + "Handler.java");
2153
- m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(v.imports);
2154
- for (const _ of v.imports)
2155
- m.appendContentln(`import ${_};`);
2156
- m.appendContentln(""), m.appendContentln(v.content), a.push(m);
2169
+ const m = t.states.designer.value._getContext().getCommands();
2170
+ for (const $ of m) {
2171
+ l($.inner);
2172
+ const _ = t.commands._genCommandCode($), b = [...o.value.namespace.split(/\./), o.value.moduleName];
2173
+ _.forEach((h) => {
2174
+ if (h.type === "Command") {
2175
+ const u = new j(b, n($) + ".java");
2176
+ u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
2177
+ for (const w of h.imports)
2178
+ u.appendContentln(`import ${w};`);
2179
+ u.appendContentln(""), u.appendContentln(h.content), r.push(u);
2180
+ } else if (h.type === "CommandHandler") {
2181
+ const u = new j(b, n($) + "Handler.java");
2182
+ u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
2183
+ for (const w of h.imports)
2184
+ u.appendContentln(`import ${w};`);
2185
+ u.appendContentln(""), u.appendContentln(h.content), r.push(u);
2157
2186
  } else
2158
- isNever(v.type);
2187
+ isNever(h.type);
2159
2188
  });
2160
2189
  }
2161
- const l = t.states.designer.value._getContext().getFacadeCommands();
2162
- for (const d of l) {
2163
- f(d.inner);
2164
- const g = t.commands._genFacadeCommandCode(d), h = [...o.value.namespace.split(/\./), o.value.moduleName];
2165
- g.forEach((v) => {
2166
- if (v.type === "FacadeCommand") {
2167
- const m = new y(h, n(d) + ".java");
2168
- m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(v.imports);
2169
- for (const _ of v.imports)
2170
- m.appendContentln(`import ${_};`);
2171
- m.appendContentln(""), m.appendContentln(v.content), a.push(m);
2190
+ const C = t.states.designer.value._getContext().getFacadeCommands();
2191
+ for (const $ of C) {
2192
+ l($.inner);
2193
+ const _ = t.commands._genFacadeCommandCode($), b = [...o.value.namespace.split(/\./), o.value.moduleName];
2194
+ _.forEach((h) => {
2195
+ if (h.type === "FacadeCommand") {
2196
+ const u = new j(b, n($) + ".java");
2197
+ u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
2198
+ for (const w of h.imports)
2199
+ u.appendContentln(`import ${w};`);
2200
+ u.appendContentln(""), u.appendContentln(h.content), r.push(u);
2172
2201
  } else
2173
- isNever(v.type);
2202
+ isNever(h.type);
2174
2203
  });
2175
2204
  }
2176
- const i = t.states.designer.value._getContext().getAggs();
2177
- for (const d of i) {
2178
- f(d.inner);
2179
- const g = t.commands._genAggCode(d), h = [...o.value.namespace.split(/\./), o.value.moduleName];
2180
- g.forEach((v) => {
2181
- if (v.type === "Agg") {
2182
- const m = new y(h, n(d) + ".java");
2183
- m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(v.imports);
2184
- for (const _ of v.imports)
2185
- m.appendContentln(`import ${_};`);
2186
- m.appendContentln(""), m.appendContentln(v.content), a.push(m);
2187
- } else if (v.type === "AggImpl") {
2188
- const m = new y(h, n(d) + "Impl.java");
2189
- m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(v.imports);
2190
- for (const _ of v.imports)
2191
- m.appendContentln(`import ${_};`);
2192
- m.appendContentln(""), m.appendContentln(v.content), a.push(m);
2205
+ const p = t.states.designer.value._getContext().getAggs();
2206
+ for (const $ of p) {
2207
+ l($.inner);
2208
+ const _ = t.commands._genAggCode($), b = [...o.value.namespace.split(/\./), o.value.moduleName];
2209
+ _.forEach((h) => {
2210
+ if (h.type === "Agg") {
2211
+ const u = new j(b, n($) + ".java");
2212
+ u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
2213
+ for (const w of h.imports)
2214
+ u.appendContentln(`import ${w};`);
2215
+ u.appendContentln(""), u.appendContentln(h.content), r.push(u);
2216
+ } else if (h.type === "AggImpl") {
2217
+ const u = new j(b, n($) + "Impl.java");
2218
+ u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
2219
+ for (const w of h.imports)
2220
+ u.appendContentln(`import ${w};`);
2221
+ u.appendContentln(""), u.appendContentln(h.content), r.push(u);
2193
2222
  } else
2194
- isNever(v.type);
2223
+ isNever(h.type);
2195
2224
  });
2196
2225
  }
2197
- const u = t.states.designer.value._getContext().getEvents();
2198
- for (const d of u) {
2199
- f(d.inner);
2200
- const g = t.commands._genEventCode(d), h = [...o.value.namespace.split(/\./), o.value.moduleName];
2201
- g.forEach((v) => {
2202
- const m = new y(h, n(d) + ".java");
2203
- m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(v.imports);
2204
- for (const _ of v.imports)
2205
- m.appendContentln(`import ${_};`);
2206
- m.appendContentln(""), m.appendContentln(v.content), a.push(m);
2226
+ const f = t.states.designer.value._getContext().getEvents();
2227
+ for (const $ of f) {
2228
+ l($.inner);
2229
+ const _ = t.commands._genEventCode($), b = [...o.value.namespace.split(/\./), o.value.moduleName];
2230
+ _.forEach((h) => {
2231
+ const u = new j(b, n($) + ".java");
2232
+ u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
2233
+ for (const w of h.imports)
2234
+ u.appendContentln(`import ${w};`);
2235
+ u.appendContentln(""), u.appendContentln(h.content), r.push(u);
2207
2236
  });
2208
2237
  }
2209
- return a;
2238
+ return r;
2210
2239
  });
2211
2240
  }
2212
2241
  };
2213
- }), Pe = Ce.KotlinGeneratorAddition, So = ae.createHotSwapPlugin(() => ({
2242
+ }), Te = we.KotlinGeneratorAddition, Ao = ue.createHotSwapPlugin(() => ({
2214
2243
  unmount({ api: e }) {
2215
2244
  e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
2216
2245
  },
2217
2246
  mount({ api: e }) {
2218
- const n = "value", t = e.states.context;
2219
- function o(r) {
2220
- return $.stringToUpperCamel(r._attributes.name);
2247
+ const n = "value", t = e.states.context, o = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((d) => N.stringToLowerCamel(d));
2248
+ function s(d) {
2249
+ return !o.includes(N.stringToLowerCamel(d._attributes.name));
2250
+ }
2251
+ function a(d, r) {
2252
+ return s(r) ? N.stringToUpperCamel(r._attributes.name) : v(d, r);
2221
2253
  }
2222
- function s(r, a) {
2223
- const c = t.value.additions, f = $.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
2224
- return /\b(time|timestamp|date|deadline|expire)\b/.test(f) ? c.has(Pe.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(f) ? "Integer" : /\b(price)$/.test(f) ? (r.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(f) ? "Boolean" : Ne(a) && (a._attributes.type === "Id" || a._attributes.type === "Version") ? "Long" : "String";
2254
+ function c(d) {
2255
+ return N.stringToUpperCamel(d._attributes.name);
2256
+ }
2257
+ function g(d, r) {
2258
+ for (const i of r) {
2259
+ if (!s(i)) {
2260
+ v(d, i);
2261
+ continue;
2262
+ }
2263
+ d.add(
2264
+ `${t.value.namespace}.${t.value.moduleName}.${n}.${c(i)}`
2265
+ );
2266
+ }
2267
+ }
2268
+ function v(d, r) {
2269
+ const i = t.value.additions, l = N.stringToLowerSnake(r._attributes.name).replace(/_/, " ");
2270
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(l) ? i.has(Te.Timezone) ? (d.add("java.time.OffsetDateTime"), "OffsetDateTime") : (d.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(l) ? "Integer" : /\b(price)$/.test(l) ? (d.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(l) ? "Boolean" : Ee(r) && (r._attributes.type === "Id" || r._attributes.type === "Version") ? "Long" : "String";
2225
2271
  }
2226
2272
  e.commands._setInfoCodeProvider(
2227
- (r) => {
2228
- const a = /* @__PURE__ */ new Set(), c = o(r), f = t.value.additions, p = [];
2229
- return f.has(Pe.ValueClass) ? (a.add("kotlin.jvm.JvmInline"), p.push("@JvmInline"), p.push(`value class ${c}(val value: ${s(a, r)})`)) : p.push(`data class ${c}(val value: ${s(a, r)})`), [
2273
+ (d) => {
2274
+ const r = /* @__PURE__ */ new Set(), i = c(d), l = t.value.additions, m = [];
2275
+ return l.has(Te.ValueClass) ? (r.add("kotlin.jvm.JvmInline"), m.push("@JvmInline"), m.push(`value class ${i}(val value: ${v(r, d)})`)) : m.push(`data class ${i}(val value: ${v(r, d)})`), [
2230
2276
  {
2231
2277
  type: "Info",
2232
- imports: a,
2233
- content: p.join(`
2278
+ imports: r,
2279
+ content: m.join(`
2234
2280
  `)
2235
2281
  }
2236
2282
  ];
2237
2283
  }
2238
2284
  ), e.commands._setCommandCodeProvider(
2239
- (r) => {
2240
- const a = [], c = t.value.additions;
2285
+ (d) => {
2286
+ const r = [], i = t.value.additions;
2241
2287
  {
2242
- const f = /* @__PURE__ */ new Set(), p = o(r), l = [], i = Object.values(r.inner);
2243
- for (const d of i)
2244
- f.add(
2245
- `${t.value.namespace}.${t.value.moduleName}.${n}.${o(d)}`
2246
- );
2247
- const u = [];
2248
- for (const d of i) {
2249
- const g = o(d);
2250
- u.push(`val ${$.lowerFirst(g)}: ${g}`);
2288
+ const l = /* @__PURE__ */ new Set(), m = c(d), C = [], p = Object.values(d.inner);
2289
+ g(l, p);
2290
+ const f = [];
2291
+ for (const $ of p) {
2292
+ const _ = c($);
2293
+ f.push(`val ${N.lowerFirst(_)}: ${a(l, $)}`);
2251
2294
  }
2252
- l.push(`data class ${p}(${u.join(", ")})`), a.push({
2295
+ C.push(`data class ${m}(${f.join(", ")})`), r.push({
2253
2296
  type: "Command",
2254
- imports: f,
2255
- content: l.join(`
2297
+ imports: l,
2298
+ content: C.join(`
2256
2299
  `)
2257
2300
  });
2258
2301
  }
2259
- if (!c.has(Pe.CommandHandler))
2260
- return a;
2302
+ if (!i.has(Te.CommandHandler))
2303
+ return r;
2261
2304
  {
2262
- const f = /* @__PURE__ */ new Set(), p = o(r), l = [];
2263
- l.push(`class ${p}Handler {`);
2264
- const i = [...e.states.designer.value._getContext().getAssociationMap()[r._attributes.__id]].filter(
2265
- (u) => u._attributes.rule === "Agg"
2305
+ const l = /* @__PURE__ */ new Set(), m = c(d), C = [];
2306
+ C.push(`class ${m}Handler {`);
2307
+ const p = [...e.states.designer.value._getContext().getAssociationMap()[d._attributes.__id]].filter(
2308
+ (f) => f._attributes.rule === "Agg"
2266
2309
  );
2267
- for (const u of i)
2268
- f.add(`${t.value.namespace}.${t.value.moduleName}.${o(u)}`), l.push(` fun handle(command: ${p}): ${o(u)} {`), l.push(" // HACK Implement"), l.push(" }");
2269
- l.push("}"), a.push({
2310
+ for (const f of p)
2311
+ l.add(`${t.value.namespace}.${t.value.moduleName}.${c(f)}`), C.push(` fun handle(command: ${m}): ${c(f)} {`), C.push(" // HACK Implement"), C.push(" }");
2312
+ C.push("}"), r.push({
2270
2313
  type: "CommandHandler",
2271
- imports: f,
2272
- content: l.join(`
2314
+ imports: l,
2315
+ content: C.join(`
2273
2316
  `)
2274
2317
  });
2275
2318
  }
2276
- return a;
2319
+ return r;
2277
2320
  }
2278
2321
  ), e.commands._setFacadeCommandCodeProvider(
2279
- (r) => {
2280
- const a = /* @__PURE__ */ new Set(), c = o(r), f = [], p = Object.values(r.inner);
2281
- for (const i of p)
2282
- a.add(
2283
- `${t.value.namespace}.${t.value.moduleName}.${n}.${o(i)}`
2284
- );
2285
- const l = [];
2286
- for (const i of p) {
2287
- const u = o(i);
2288
- l.push(`val ${$.lowerFirst(u)}: ${u}`);
2322
+ (d) => {
2323
+ const r = /* @__PURE__ */ new Set(), i = c(d), l = [], m = Object.values(d.inner);
2324
+ g(r, m);
2325
+ const C = [];
2326
+ for (const p of m) {
2327
+ const f = c(p);
2328
+ C.push(`val ${N.lowerFirst(f)}: ${a(r, p)}`);
2289
2329
  }
2290
- return f.push(`data class ${c}(${l.join(", ")})`), [
2330
+ return l.push(`data class ${i}(${C.join(", ")})`), [
2291
2331
  {
2292
2332
  type: "FacadeCommand",
2293
- imports: a,
2294
- content: f.join(`
2333
+ imports: r,
2334
+ content: l.join(`
2295
2335
  `)
2296
2336
  }
2297
2337
  ];
2298
2338
  }
2299
- ), e.commands._setAggCodeProvider((r) => {
2300
- const a = /* @__PURE__ */ new Set(), c = e.states.designer.value, f = o(r), p = [], l = Object.values(r.inner);
2301
- for (const g of l)
2302
- a.add(
2303
- `${t.value.namespace}.${t.value.moduleName}.${n}.${o(g)}`
2304
- );
2305
- const i = [], u = [...c._getContext().getAssociationMap()[r._attributes.__id]].filter((g) => g._attributes.rule === "Command" || g._attributes.rule === "FacadeCommand");
2306
- for (const g of u) {
2307
- const h = o(g);
2308
- i.push(`fun handle(command: ${h})`);
2339
+ ), e.commands._setAggCodeProvider((d) => {
2340
+ const r = /* @__PURE__ */ new Set(), i = e.states.designer.value, l = c(d), m = [], C = Object.values(d.inner);
2341
+ g(r, C);
2342
+ const p = [], f = [...i._getContext().getAssociationMap()[d._attributes.__id]].filter((_) => _._attributes.rule === "Command" || _._attributes.rule === "FacadeCommand");
2343
+ for (const _ of f) {
2344
+ const b = c(_);
2345
+ p.push(`fun handle(command: ${b})`);
2309
2346
  }
2310
- p.push(`interface ${f} {`), p.push(` ${i.join(`
2311
- `)}`), p.push("}"), p.push(""), p.push(`class ${f}Impl(`);
2312
- const d = [];
2313
- for (const g of l) {
2314
- const h = o(g);
2315
- d.push(`val ${$.lowerFirst(h)}: ${h}`);
2347
+ m.push(`interface ${l} {`), m.push(` ${p.join(`
2348
+ `)}`), m.push("}"), m.push(""), m.push(`class ${l}Impl(`);
2349
+ const $ = [];
2350
+ for (const _ of C) {
2351
+ const b = c(_);
2352
+ $.push(`val ${N.lowerFirst(b)}: ${a(r, _)}`);
2316
2353
  }
2317
- p.push(` ${d.join(`,
2318
- `)}`), p.push(`): ${f} {`);
2319
- for (const g of u) {
2320
- const h = o(g);
2321
- p.push(` override fun handle(command: ${h}) {`), p.push(" // HACK Implement"), p.push(" }");
2354
+ m.push(` ${$.join(`,
2355
+ `)}`), m.push(`): ${l} {`);
2356
+ for (const _ of f) {
2357
+ const b = c(_);
2358
+ m.push(` override fun handle(command: ${b}) {`), m.push(" // HACK Implement"), m.push(" }");
2322
2359
  }
2323
- return p.push("}"), [
2360
+ return m.push("}"), [
2324
2361
  {
2325
2362
  type: "Agg",
2326
- imports: a,
2327
- content: p.join(`
2363
+ imports: r,
2364
+ content: m.join(`
2328
2365
  `)
2329
2366
  }
2330
2367
  ];
2331
2368
  }), e.commands._setEventCodeProvider(
2332
- (r) => {
2333
- const a = /* @__PURE__ */ new Set(), c = o(r), f = [], p = Object.values(r.inner);
2334
- for (const i of p)
2335
- a.add(
2336
- `${t.value.namespace}.${t.value.moduleName}.${n}.${o(i)}`
2337
- );
2338
- const l = [];
2339
- for (const i of p) {
2340
- const u = o(i);
2341
- l.push(`val ${$.lowerFirst(u)}: ${u}`);
2369
+ (d) => {
2370
+ const r = /* @__PURE__ */ new Set(), i = c(d), l = [], m = Object.values(d.inner);
2371
+ g(r, m);
2372
+ const C = [];
2373
+ for (const p of m) {
2374
+ const f = c(p);
2375
+ C.push(`val ${N.lowerFirst(f)}: ${a(r, p)}`);
2342
2376
  }
2343
- return f.push(`data class ${c}(${l.join(", ")})`), [
2377
+ return l.push(`data class ${i}(${C.join(", ")})`), [
2344
2378
  {
2345
2379
  type: "Event",
2346
- imports: a,
2347
- content: f.join(`
2380
+ imports: r,
2381
+ content: l.join(`
2348
2382
  `)
2349
2383
  }
2350
2384
  ];
2351
2385
  }
2352
2386
  ), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => {
2353
- const r = [], a = {};
2354
- function c(u) {
2355
- for (const d of Object.values(u)) {
2356
- const g = [...t.value.namespace.split(/\./), t.value.moduleName, n], h = o(d) + ".kt";
2357
- if (a[`${g.join("/")}/${h}`] === !0)
2387
+ const d = [], r = {};
2388
+ function i(f) {
2389
+ for (const $ of Object.values(f)) {
2390
+ if (!s($))
2391
+ continue;
2392
+ const _ = [...t.value.namespace.split(/\./), t.value.moduleName, n], b = c($) + ".kt";
2393
+ if (r[`${_.join("/")}/${b}`] === !0)
2358
2394
  continue;
2359
- const v = e.commands._genInfoCode(d);
2360
- if (v.length === 0)
2395
+ const h = e.commands._genInfoCode($);
2396
+ if (h.length === 0)
2361
2397
  continue;
2362
- const m = new y(g, h);
2363
- m.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}.${n}`), m.appendContentln("");
2364
- for (const _ of v[0].imports)
2365
- m.appendContentln(`import ${_}`);
2366
- m.appendContentln(""), m.appendContentln(v[0].content), r.push(m), a[`${g.join("/")}/${h}`] = !0;
2398
+ const u = new j(_, b);
2399
+ u.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}.${n}`), u.appendContentln("");
2400
+ for (const w of h[0].imports)
2401
+ u.appendContentln(`import ${w}`);
2402
+ u.appendContentln(""), u.appendContentln(h[0].content), d.push(u), r[`${_.join("/")}/${b}`] = !0;
2367
2403
  }
2368
2404
  }
2369
- const f = e.states.designer.value._getContext().getCommands();
2370
- for (const u of f) {
2371
- c(u.inner);
2372
- const d = e.commands._genCommandCode(u), g = [...t.value.namespace.split(/\./), t.value.moduleName], h = new y(g, o(u) + ".kt"), v = [];
2373
- h.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), h.appendContentln(""), d.forEach((m) => {
2374
- m.type === "Command" || m.type === "CommandHandler" ? (h.addImports(m.imports), v.push(m.content)) : isNever(m.type);
2405
+ const l = e.states.designer.value._getContext().getCommands();
2406
+ for (const f of l) {
2407
+ i(f.inner);
2408
+ const $ = e.commands._genCommandCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName], b = new j(_, c(f) + ".kt"), h = [];
2409
+ b.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), b.appendContentln(""), $.forEach((u) => {
2410
+ u.type === "Command" || u.type === "CommandHandler" ? (b.addImports(u.imports), h.push(u.content)) : isNever(u.type);
2375
2411
  });
2376
- for (const m of h.getImports())
2377
- h.appendContentln(`import ${m}`);
2378
- h.appendContentln("");
2379
- for (const m of v)
2380
- h.appendContentln(m);
2381
- r.push(h);
2412
+ for (const u of b.getImports())
2413
+ b.appendContentln(`import ${u}`);
2414
+ b.appendContentln("");
2415
+ for (const u of h)
2416
+ b.appendContentln(u);
2417
+ d.push(b);
2382
2418
  }
2383
- const p = e.states.designer.value._getContext().getFacadeCommands();
2384
- for (const u of p) {
2385
- c(u.inner);
2386
- const d = e.commands._genFacadeCommandCode(u), g = [...t.value.namespace.split(/\./), t.value.moduleName];
2387
- d.forEach((h) => {
2388
- if (h.type === "FacadeCommand") {
2389
- const v = new y(g, o(u) + ".kt");
2390
- v.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), v.appendContentln(""), v.addImports(h.imports);
2391
- for (const m of h.imports)
2392
- v.appendContentln(`import ${m}`);
2393
- v.appendContentln(""), v.appendContentln(h.content), r.push(v);
2419
+ const m = e.states.designer.value._getContext().getFacadeCommands();
2420
+ for (const f of m) {
2421
+ i(f.inner);
2422
+ const $ = e.commands._genFacadeCommandCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName];
2423
+ $.forEach((b) => {
2424
+ if (b.type === "FacadeCommand") {
2425
+ const h = new j(_, c(f) + ".kt");
2426
+ h.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), h.appendContentln(""), h.addImports(b.imports);
2427
+ for (const u of b.imports)
2428
+ h.appendContentln(`import ${u}`);
2429
+ h.appendContentln(""), h.appendContentln(b.content), d.push(h);
2394
2430
  } else
2395
- isNever(h.type);
2431
+ isNever(b.type);
2396
2432
  });
2397
2433
  }
2398
- const l = e.states.designer.value._getContext().getAggs();
2399
- for (const u of l) {
2400
- c(u.inner);
2401
- const d = e.commands._genAggCode(u), g = [...t.value.namespace.split(/\./), t.value.moduleName], h = new y(g, o(u) + ".kt"), v = [];
2402
- h.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), h.appendContentln(""), d.forEach((m) => {
2403
- m.type === "Agg" || m.type === "AggImpl" ? (h.addImports(m.imports), v.push(m.content)) : isNever(m.type);
2434
+ const C = e.states.designer.value._getContext().getAggs();
2435
+ for (const f of C) {
2436
+ i(f.inner);
2437
+ const $ = e.commands._genAggCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName], b = new j(_, c(f) + ".kt"), h = [];
2438
+ b.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), b.appendContentln(""), $.forEach((u) => {
2439
+ u.type === "Agg" || u.type === "AggImpl" ? (b.addImports(u.imports), h.push(u.content)) : isNever(u.type);
2404
2440
  });
2405
- for (const m of h.getImports())
2406
- h.appendContentln(`import ${m}`);
2407
- h.appendContentln("");
2408
- for (const m of v)
2409
- h.appendContentln(m);
2410
- r.push(h);
2441
+ for (const u of b.getImports())
2442
+ b.appendContentln(`import ${u}`);
2443
+ b.appendContentln("");
2444
+ for (const u of h)
2445
+ b.appendContentln(u);
2446
+ d.push(b);
2411
2447
  }
2412
- const i = e.states.designer.value._getContext().getEvents();
2413
- for (const u of i) {
2414
- c(u.inner);
2415
- const d = e.commands._genEventCode(u), g = [...t.value.namespace.split(/\./), t.value.moduleName];
2416
- d.forEach((h) => {
2417
- if (h.type === "Event") {
2418
- const v = new y(g, o(u) + ".kt");
2419
- v.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), v.appendContentln(""), v.addImports(h.imports);
2420
- for (const m of h.imports)
2421
- v.appendContentln(`import ${m}`);
2422
- v.appendContentln(""), v.appendContentln(h.content), r.push(v);
2448
+ const p = e.states.designer.value._getContext().getEvents();
2449
+ for (const f of p) {
2450
+ i(f.inner);
2451
+ const $ = e.commands._genEventCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName];
2452
+ $.forEach((b) => {
2453
+ if (b.type === "Event") {
2454
+ const h = new j(_, c(f) + ".kt");
2455
+ h.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), h.appendContentln(""), h.addImports(b.imports);
2456
+ for (const u of b.imports)
2457
+ h.appendContentln(`import ${u}`);
2458
+ h.appendContentln(""), h.appendContentln(b.content), d.push(h);
2423
2459
  } else
2424
- isNever(h.type);
2460
+ isNever(b.type);
2425
2461
  });
2426
2462
  }
2427
- return r;
2463
+ return d;
2428
2464
  });
2429
2465
  }
2430
- })), Ao = ae.createHotSwapPlugin(() => ({
2466
+ })), Io = ue.createHotSwapPlugin(() => ({
2431
2467
  unmount({ api: e }) {
2432
2468
  e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
2433
2469
  },
2434
2470
  mount({ api: e }) {
2435
- const n = e.states.context;
2436
- function t(r) {
2437
- return $.stringToUpperCamel(r._attributes.name);
2471
+ const n = e.states.context, t = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((v) => N.stringToLowerCamel(v));
2472
+ function o(v) {
2473
+ return !t.includes(N.stringToLowerCamel(v._attributes.name));
2474
+ }
2475
+ function s(v, d) {
2476
+ return o(d) ? N.stringToUpperCamel(d._attributes.name) : g(v, d);
2477
+ }
2478
+ function a(v) {
2479
+ return N.stringToUpperCamel(v._attributes.name);
2438
2480
  }
2439
- function o(r) {
2440
- return $.stringToLowerCamel(r._attributes.name);
2481
+ function c(v) {
2482
+ return N.stringToLowerCamel(v._attributes.name);
2441
2483
  }
2442
- function s(r, a) {
2443
- const c = $.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
2444
- 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" : Ne(a) && (a._attributes.type === "Id" || a._attributes.type === "Version") ? "int64" : "string";
2484
+ function g(v, d) {
2485
+ const r = N.stringToLowerSnake(d._attributes.name).replace(/_/, " ");
2486
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(r) ? (v.add("time"), "time.Time") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(r) ? "int" : /\b(price)$/.test(r) ? "string" : /^(if|is)\b/.test(r) ? "bool" : Ee(d) && (d._attributes.type === "Id" || d._attributes.type === "Version") ? "int64" : "string";
2445
2487
  }
2446
2488
  e.commands._setInfoCodeProvider(
2447
- (r) => {
2448
- const a = /* @__PURE__ */ new Set(), c = [];
2449
- return c.push(`type ${t(r)} struct {`), c.push(` value ${s(a, r)}`), c.push("}"), c.push(""), c.push(
2450
- `func New${t(r)}(value ${s(a, r)}) ${t(
2451
- r
2489
+ (v) => {
2490
+ const d = /* @__PURE__ */ new Set(), r = [];
2491
+ return r.push(`type ${a(v)} struct {`), r.push(` value ${g(d, v)}`), r.push("}"), r.push(""), r.push(
2492
+ `func New${a(v)}(value ${g(
2493
+ d,
2494
+ v
2495
+ )}) ${a(v)} {`
2496
+ ), r.push(" // HACK check value"), r.push(` return ${a(v)}{value}`), r.push("}"), r.push(
2497
+ `func (${c(v)} ${a(v)}) GetValue() ${g(
2498
+ d,
2499
+ v
2452
2500
  )} {`
2453
- ), c.push(" // HACK check value"), c.push(` return ${t(r)}{value}`), c.push("}"), c.push(
2454
- `func (${o(r)} ${t(r)}) GetValue() ${s(
2455
- a,
2456
- r
2457
- )} {`
2458
- ), c.push(` return ${o(r)}.value`), c.push("}"), [{ type: "Info", imports: a, content: c.join(`
2501
+ ), r.push(` return ${c(v)}.value`), r.push("}"), [{ type: "Info", imports: d, content: r.join(`
2459
2502
  `) }];
2460
2503
  }
2461
2504
  ), e.commands._setCommandCodeProvider(
2462
- (r) => {
2463
- const a = t(r), c = o(r), f = /* @__PURE__ */ new Set(), p = [];
2464
- p.push(`type ${a} struct {`);
2465
- const l = Object.values(r.inner);
2466
- for (const d of l)
2467
- p.push(` ${o(d)} ${t(d)}`);
2468
- p.push("}");
2469
- for (const d of l)
2470
- p.push(
2471
- `func (${c} ${a}) Get${t(d)} () ${t(
2472
- d
2505
+ (v) => {
2506
+ const d = a(v), r = c(v), i = /* @__PURE__ */ new Set(), l = [];
2507
+ l.push(`type ${d} struct {`);
2508
+ const m = Object.values(v.inner);
2509
+ for (const f of m)
2510
+ l.push(` ${c(f)} ${s(i, f)}`);
2511
+ l.push("}");
2512
+ for (const f of m)
2513
+ l.push(
2514
+ `func (${r} ${d}) Get${a(f)} () ${s(
2515
+ i,
2516
+ f
2473
2517
  )} {`
2474
- ), p.push(` return ${c}.${o(d)}`), p.push("}");
2475
- const i = [], u = [];
2476
- for (const d of l)
2477
- i.push(`${o(d)} ${t(d)}`), u.push(o(d));
2478
- return p.push(`func New${a}(${i.join(", ")}) ${a} {`), p.push(" // HACK check value"), p.push(` return ${a}{`), p.push(` ${u.join(`,
2479
- `)},`), p.push(" }"), p.push("}"), [{ type: "Command", imports: f, content: p.join(`
2518
+ ), l.push(` return ${r}.${c(f)}`), l.push("}");
2519
+ const C = [], p = [];
2520
+ for (const f of m)
2521
+ C.push(`${c(f)} ${s(i, f)}`), p.push(c(f));
2522
+ return l.push(`func New${d}(${C.join(", ")}) ${d} {`), l.push(" // HACK check value"), l.push(` return ${d}{`), l.push(` ${p.join(`,
2523
+ `)},`), l.push(" }"), l.push("}"), [{ type: "Command", imports: i, content: l.join(`
2480
2524
  `) }];
2481
2525
  }
2482
2526
  ), e.commands._setFacadeCommandCodeProvider(
2483
- (r) => {
2484
- const a = t(r), c = o(r), f = Object.values(r.inner), p = /* @__PURE__ */ new Set(), l = [];
2485
- l.push(`type ${a} struct {`);
2486
- for (const d of f)
2487
- l.push(` ${o(d)} ${t(d)}`);
2488
- l.push("}");
2489
- for (const d of f)
2490
- l.push(
2491
- `func (${c} ${a}) Get${t(d)} () ${t(
2492
- d
2527
+ (v) => {
2528
+ const d = a(v), r = c(v), i = Object.values(v.inner), l = /* @__PURE__ */ new Set(), m = [];
2529
+ m.push(`type ${d} struct {`);
2530
+ for (const f of i)
2531
+ m.push(` ${c(f)} ${s(l, f)}`);
2532
+ m.push("}");
2533
+ for (const f of i)
2534
+ m.push(
2535
+ `func (${r} ${d}) Get${a(f)} () ${s(
2536
+ l,
2537
+ f
2493
2538
  )} {`
2494
- ), l.push(` return ${c}.${o(d)}`), l.push("}");
2495
- const i = [], u = [];
2496
- for (const d of f)
2497
- i.push(`${o(d)} ${t(d)}`), u.push(o(d));
2498
- return l.push(`func New${a}(${i.join(", ")}) ${a} {`), l.push(" // HACK check value"), l.push(` return ${a}{`), l.push(` ${u.join(`,
2499
- `)},`), l.push(" }"), l.push("}"), [
2539
+ ), m.push(` return ${r}.${c(f)}`), m.push("}");
2540
+ const C = [], p = [];
2541
+ for (const f of i)
2542
+ C.push(`${c(f)} ${s(l, f)}`), p.push(c(f));
2543
+ return m.push(`func New${d}(${C.join(", ")}) ${d} {`), m.push(" // HACK check value"), m.push(` return ${d}{`), m.push(` ${p.join(`,
2544
+ `)},`), m.push(" }"), m.push("}"), [
2500
2545
  {
2501
2546
  type: "FacadeCommand",
2502
- imports: p,
2503
- content: l.join(`
2547
+ imports: l,
2548
+ content: m.join(`
2504
2549
  `)
2505
2550
  }
2506
2551
  ];
2507
2552
  }
2508
- ), e.commands._setAggCodeProvider((r) => {
2509
- const a = e.states.designer.value, c = t(r), f = o(r), p = Object.values(r.inner), l = /* @__PURE__ */ new Set(), i = [];
2510
- i.push(`type ${c} struct {`);
2511
- for (const h of p)
2512
- i.push(` ${o(h)} ${t(h)}`);
2513
- i.push("}");
2514
- for (const h of p)
2515
- i.push(
2516
- `func (${f} ${c}) Get${t(h)} () ${t(h)} {`
2517
- ), i.push(` return ${f}.${o(h)}`), i.push("}");
2518
- const u = [], d = [];
2519
- for (const h of p)
2520
- u.push(`${o(h)} ${t(h)}`), d.push(o(h));
2521
- i.push(`func New${c}(${u.join(", ")}) ${c} {`), i.push(" // HACK check value"), i.push(` return ${c}{`), i.push(` ${d.join(`,
2522
- `)},`), i.push(" }"), i.push("}"), i.push("");
2523
- const g = [...a._getContext().getAssociationMap()[r._attributes.__id]].filter((h) => h._attributes.rule === "Command" || h._attributes.rule === "FacadeCommand");
2524
- for (const h of g) {
2525
- const v = t(h), m = o(h);
2526
- i.push(`func (${f} ${c}) Handle${v} (${m} ${v}) {`), i.push(" // HACK implement"), i.push("}");
2553
+ ), e.commands._setAggCodeProvider((v) => {
2554
+ const d = e.states.designer.value, r = a(v), i = c(v), l = Object.values(v.inner), m = /* @__PURE__ */ new Set(), C = [];
2555
+ C.push(`type ${r} struct {`);
2556
+ for (const _ of l)
2557
+ C.push(` ${c(_)} ${s(m, _)}`);
2558
+ C.push("}");
2559
+ for (const _ of l)
2560
+ C.push(
2561
+ `func (${i} ${r}) Get${a(_)} () ${s(
2562
+ m,
2563
+ _
2564
+ )} {`
2565
+ ), C.push(` return ${i}.${c(_)}`), C.push("}");
2566
+ const p = [], f = [];
2567
+ for (const _ of l)
2568
+ p.push(`${c(_)} ${s(m, _)}`), f.push(c(_));
2569
+ C.push(`func New${r}(${p.join(", ")}) ${r} {`), C.push(" // HACK check value"), C.push(` return ${r}{`), C.push(` ${f.join(`,
2570
+ `)},`), C.push(" }"), C.push("}"), C.push("");
2571
+ const $ = [...d._getContext().getAssociationMap()[v._attributes.__id]].filter((_) => _._attributes.rule === "Command" || _._attributes.rule === "FacadeCommand");
2572
+ for (const _ of $) {
2573
+ const b = a(_), h = c(_);
2574
+ C.push(`func (${i} ${r}) Handle${b} (${h} ${b}) {`), C.push(" // HACK implement"), C.push("}");
2527
2575
  }
2528
2576
  return [
2529
2577
  {
2530
2578
  type: "Agg",
2531
- imports: l,
2532
- content: i.join(`
2579
+ imports: m,
2580
+ content: C.join(`
2533
2581
  `)
2534
2582
  }
2535
2583
  ];
2536
2584
  }), e.commands._setEventCodeProvider(
2537
- (r) => {
2538
- const a = [], c = /* @__PURE__ */ new Set(), f = Object.values(r.inner), p = t(r), l = o(r);
2539
- a.push(`type ${p} struct {`);
2540
- for (const d of f)
2541
- a.push(` ${o(d)} ${t(d)}`);
2542
- a.push("}");
2543
- for (const d of f)
2544
- a.push(
2545
- `func (${l} ${p}) Get${t(d)} () ${t(
2546
- d
2585
+ (v) => {
2586
+ const d = [], r = /* @__PURE__ */ new Set(), i = Object.values(v.inner), l = a(v), m = c(v);
2587
+ d.push(`type ${l} struct {`);
2588
+ for (const f of i)
2589
+ d.push(` ${c(f)} ${s(r, f)}`);
2590
+ d.push("}");
2591
+ for (const f of i)
2592
+ d.push(
2593
+ `func (${m} ${l}) Get${a(f)} () ${s(
2594
+ r,
2595
+ f
2547
2596
  )} {`
2548
- ), a.push(` return ${l}.${o(d)}`), a.push("}");
2549
- const i = [], u = [];
2550
- for (const d of f)
2551
- i.push(`${o(d)} ${t(d)}`), u.push(o(d));
2552
- return a.push(`func New${p}(${i.join(", ")}) ${p} {`), a.push(" // HACK check value"), a.push(` return ${p}{`), a.push(` ${u.join(`,
2553
- `)},`), a.push(" }"), a.push("}"), [
2597
+ ), d.push(` return ${m}.${c(f)}`), d.push("}");
2598
+ const C = [], p = [];
2599
+ for (const f of i)
2600
+ C.push(`${c(f)} ${s(r, f)}`), p.push(c(f));
2601
+ return d.push(`func New${l}(${C.join(", ")}) ${l} {`), d.push(" // HACK check value"), d.push(` return ${l}{`), d.push(` ${p.join(`,
2602
+ `)},`), d.push(" }"), d.push("}"), [
2554
2603
  {
2555
2604
  type: "Event",
2556
- imports: c,
2557
- content: a.join(`
2605
+ imports: r,
2606
+ content: d.join(`
2558
2607
  `)
2559
2608
  }
2560
2609
  ];
2561
2610
  }
2562
2611
  ), e.commands._setCodeFileProvider(() => {
2563
- const r = [], a = {}, c = [...n.value.namespace.split(/\./), n.value.moduleName], f = new y(c, `${n.value.moduleName}.go`), p = [], l = new y(c, `${n.value.moduleName}_value_object.go`), i = [];
2564
- function u(m) {
2565
- for (const _ of Object.values(m)) {
2566
- const C = t(_);
2567
- if (a[`${c.join("/")}/${C}`] === !0)
2612
+ const v = [], d = {}, r = [...n.value.namespace.split(/\./), n.value.moduleName], i = new j(r, `${n.value.moduleName}.go`), l = [], m = new j(r, `${n.value.moduleName}_value_object.go`), C = [];
2613
+ function p(h) {
2614
+ for (const u of Object.values(h)) {
2615
+ if (!o(u))
2616
+ continue;
2617
+ const w = a(u);
2618
+ if (d[`${r.join("/")}/${w}`] === !0)
2568
2619
  continue;
2569
- const b = e.commands._genInfoCode(_);
2570
- b.length !== 0 && (l.addImports(b[0].imports), i.push(b[0].content), i.push(""), a[`${c.join("/")}/${C}`] = !0);
2620
+ const y = e.commands._genInfoCode(u);
2621
+ y.length !== 0 && (m.addImports(y[0].imports), C.push(y[0].content), C.push(""), d[`${r.join("/")}/${w}`] = !0);
2571
2622
  }
2572
2623
  }
2573
- const d = e.states.designer.value._getContext().getCommands();
2574
- for (const m of d) {
2575
- u(m.inner);
2576
- const _ = e.commands._genCommandCode(m);
2577
- for (const C of _)
2578
- a[C.content] !== !0 && (f.addImports(C.imports), p.push(C.content));
2624
+ const f = e.states.designer.value._getContext().getCommands();
2625
+ for (const h of f) {
2626
+ p(h.inner);
2627
+ const u = e.commands._genCommandCode(h);
2628
+ for (const w of u)
2629
+ d[w.content] !== !0 && (i.addImports(w.imports), l.push(w.content));
2579
2630
  }
2580
- const g = e.states.designer.value._getContext().getFacadeCommands();
2581
- for (const m of g) {
2582
- u(m.inner);
2583
- const _ = e.commands._genFacadeCommandCode(m);
2584
- for (const C of _)
2585
- a[C.content] !== !0 && (f.addImports(C.imports), p.push(C.content));
2631
+ const $ = e.states.designer.value._getContext().getFacadeCommands();
2632
+ for (const h of $) {
2633
+ p(h.inner);
2634
+ const u = e.commands._genFacadeCommandCode(h);
2635
+ for (const w of u)
2636
+ d[w.content] !== !0 && (i.addImports(w.imports), l.push(w.content));
2586
2637
  }
2587
- const h = e.states.designer.value._getContext().getAggs();
2588
- for (const m of h) {
2589
- u(m.inner);
2590
- const _ = e.commands._genAggCode(m);
2591
- for (const C of _)
2592
- a[C.content] !== !0 && (f.addImports(C.imports), p.push(C.content));
2638
+ const _ = e.states.designer.value._getContext().getAggs();
2639
+ for (const h of _) {
2640
+ p(h.inner);
2641
+ const u = e.commands._genAggCode(h);
2642
+ for (const w of u)
2643
+ d[w.content] !== !0 && (i.addImports(w.imports), l.push(w.content));
2593
2644
  }
2594
- const v = e.states.designer.value._getContext().getEvents();
2595
- for (const m of v) {
2596
- u(m.inner);
2597
- const _ = e.commands._genEventCode(m);
2598
- for (const C of _)
2599
- a[C.content] !== !0 && (f.addImports(C.imports), p.push(C.content));
2645
+ const b = e.states.designer.value._getContext().getEvents();
2646
+ for (const h of b) {
2647
+ p(h.inner);
2648
+ const u = e.commands._genEventCode(h);
2649
+ for (const w of u)
2650
+ d[w.content] !== !0 && (i.addImports(w.imports), l.push(w.content));
2600
2651
  }
2601
- return f.appendContentln(`package ${n.value.moduleName}`), f.appendContentln(""), f.getImports().length > 0 && (f.appendContentln("import ("), f.appendContentln(` ${[...f.getImports()].join(`
2602
- `)}`), f.appendContentln(")")), f.appendContentln(p.join(`
2603
- `)), l.appendContentln(`package ${n.value.moduleName}`), l.appendContentln(""), l.getImports().length > 0 && (l.appendContentln("import ("), l.appendContentln(` ${[...l.getImports()].map((m) => `"${m}"`).join(`
2604
- `)}`), l.appendContentln(")"), l.appendContentln("")), l.appendContentln(i.join(`
2605
- `)), r.push(f), r.push(l), r;
2652
+ return i.appendContentln(`package ${n.value.moduleName}`), i.appendContentln(""), i.getImports().length > 0 && (i.appendContentln("import ("), i.appendContentln(` ${[...i.getImports()].join(`
2653
+ `)}`), i.appendContentln(")")), i.appendContentln(l.join(`
2654
+ `)), m.appendContentln(`package ${n.value.moduleName}`), m.appendContentln(""), m.getImports().length > 0 && (m.appendContentln("import ("), m.appendContentln(` ${[...m.getImports()].map((h) => `"${h}"`).join(`
2655
+ `)}`), m.appendContentln(")"), m.appendContentln("")), m.appendContentln(C.join(`
2656
+ `)), v.push(i), v.push(m), v;
2606
2657
  });
2607
2658
  }
2608
- })), z = $e.CSharpGeneratorAddition, jo = ae.createHotSwapPlugin(() => {
2659
+ })), G = Ne.CSharpGeneratorAddition, xo = ue.createHotSwapPlugin(() => {
2609
2660
  const e = " ";
2610
2661
  function n(t, o = 1) {
2611
2662
  return t.split(`
@@ -2617,247 +2668,259 @@ const E = _e.JavaGeneratorAddition, Eo = ae.createHotSwapPlugin(() => {
2617
2668
  t.commands.clearCaches(), t.commands._setCommandCodeProvider(() => []), t.commands._setFacadeCommandCodeProvider(() => []), t.commands._setAggCodeProvider(() => []), t.commands._setEventCodeProvider(() => []), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => []), t.commands.setContext({});
2618
2669
  },
2619
2670
  mount({ api: t }) {
2620
- const o = t.states.context;
2621
- function s(c) {
2622
- return $.stringToUpperCamel(c._attributes.name);
2671
+ const o = t.states.context, s = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((r) => N.stringToLowerCamel(r));
2672
+ function a(r) {
2673
+ return !s.includes(N.stringToLowerCamel(r._attributes.name));
2674
+ }
2675
+ function c(r, i) {
2676
+ return a(i) ? N.stringToUpperCamel(i._attributes.name) : d(r, i);
2623
2677
  }
2624
- function r(c) {
2625
- return c.has(z.RecordStruct) ? " struct" : "";
2678
+ function g(r) {
2679
+ return N.stringToUpperCamel(r._attributes.name);
2626
2680
  }
2627
- function a(c, f) {
2628
- const p = o.value.additions, l = $.stringToLowerSnake(f._attributes.name).replace(/_/, " ");
2629
- return /\b(time|timestamp|date|deadline|expire)\b/.test(l) ? p.has(z.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(l) ? "int" : /\b(price)$/.test(l) ? "decimal" : /^(if|is)\b/.test(l) ? "bool" : Ne(f) && (f._attributes.type === "Id" || f._attributes.type === "Version") ? "long" : "string";
2681
+ function v(r) {
2682
+ return r.has(G.RecordStruct) ? " struct" : "";
2683
+ }
2684
+ function d(r, i) {
2685
+ const l = o.value.additions, m = N.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
2686
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(m) ? l.has(G.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(m) ? "int" : /\b(price)$/.test(m) ? "decimal" : /^(if|is)\b/.test(m) ? "bool" : Ee(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") ? "long" : "string";
2630
2687
  }
2631
2688
  t.commands._setInfoCodeProvider(
2632
- (c) => {
2633
- const f = o.value.additions, p = /* @__PURE__ */ new Set(), l = [];
2634
- return l.push(
2635
- `public record${r(f)} ${s(c)}(${a(
2636
- p,
2637
- c
2689
+ (r) => {
2690
+ const i = o.value.additions, l = /* @__PURE__ */ new Set(), m = [];
2691
+ return m.push(
2692
+ `public record${v(i)} ${g(r)}(${d(
2693
+ l,
2694
+ r
2638
2695
  )} value);`
2639
2696
  ), [
2640
2697
  {
2641
2698
  type: "Info",
2642
- content: l.join(`
2699
+ content: m.join(`
2643
2700
  `),
2644
- imports: p
2701
+ imports: l
2645
2702
  }
2646
2703
  ];
2647
2704
  }
2648
2705
  ), t.commands._setCommandCodeProvider(
2649
- (c) => {
2650
- const f = [], p = o.value.additions, l = /* @__PURE__ */ new Set(), i = s(c);
2706
+ (r) => {
2707
+ const i = [], l = o.value.additions, m = /* @__PURE__ */ new Set(), C = g(r);
2651
2708
  {
2652
- const u = [], d = Object.values(c.inner);
2653
- u.push(`public record${r(p)} ${i}`), u.push("(");
2654
- const g = [];
2655
- for (const h of d) {
2656
- const v = s(h);
2657
- g.push(`${v} ${$.upperFirst(v)}`);
2709
+ const p = [], f = Object.values(r.inner);
2710
+ p.push(`public record${v(l)} ${C}`), p.push("(");
2711
+ const $ = [];
2712
+ for (const _ of f) {
2713
+ const b = g(_);
2714
+ $.push(`${c(m, _)} ${N.upperFirst(b)}`);
2658
2715
  }
2659
- u.push(` ${g.join(`,
2660
- `)}`), u.push(")"), u.push("{"), u.push("}"), f.push({
2716
+ p.push(` ${$.join(`,
2717
+ `)}`), p.push(")"), p.push("{"), p.push("}"), i.push({
2661
2718
  type: "Command",
2662
- content: u.join(`
2719
+ content: p.join(`
2663
2720
  `),
2664
- imports: l
2721
+ imports: m
2665
2722
  });
2666
2723
  }
2667
2724
  {
2668
- const u = p.has(z.CommandHandlerInterface) ? ` : ${o.value.commandHandlerInterface}` : "", d = [];
2669
- d.push(`public class ${i}Handler${u}`), d.push("{"), d.push(` public void Handle(${i} command)`), d.push(" {"), d.push(" // HACK implement"), d.push(" }"), d.push("}"), f.push({
2725
+ const p = l.has(G.CommandHandlerInterface) ? ` : ${o.value.commandHandlerInterface}` : "", f = [];
2726
+ f.push(`public class ${C}Handler${p}`), f.push("{"), f.push(` public void Handle(${C} command)`), f.push(" {"), f.push(" // HACK implement"), f.push(" }"), f.push("}"), i.push({
2670
2727
  type: "CommandHandler",
2671
- content: d.join(`
2728
+ content: f.join(`
2672
2729
  `),
2673
- imports: l
2730
+ imports: m
2674
2731
  });
2675
2732
  }
2676
- return f;
2733
+ return i;
2677
2734
  }
2678
2735
  ), t.commands._setAggCodeProvider(
2679
- (c) => {
2680
- const f = [], p = t.states.designer.value, l = o.value.additions;
2736
+ (r) => {
2737
+ const i = [], l = t.states.designer.value, m = o.value.additions;
2681
2738
  {
2682
- const i = /* @__PURE__ */ new Set(), u = [], d = l.has(z.AggInterface) ? ` : ${o.value.aggInterface}` : "";
2683
- u.push(`public interface I${s(c)}${d}`), u.push("{");
2684
- const g = [], h = [...p._getContext().getAssociationMap()[c._attributes.__id]].filter((v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand");
2685
- for (const v of h) {
2686
- const m = s(v);
2687
- g.push(`void Handle${m}(${m} command);`);
2739
+ const C = /* @__PURE__ */ new Set(), p = [], f = m.has(G.AggInterface) ? ` : ${o.value.aggInterface}` : "";
2740
+ p.push(`public interface I${g(r)}${f}`), p.push("{");
2741
+ const $ = [], _ = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter((b) => b._attributes.rule === "Command" || b._attributes.rule === "FacadeCommand");
2742
+ for (const b of _) {
2743
+ const h = g(b);
2744
+ $.push(`void Handle${h}(${h} command);`);
2688
2745
  }
2689
- u.push(` ${g.join(`
2746
+ p.push(` ${$.join(`
2690
2747
 
2691
- `)}`), u.push("}"), u.push(""), f.push({
2748
+ `)}`), p.push("}"), p.push(""), i.push({
2692
2749
  type: "Agg",
2693
- content: u.join(`
2750
+ content: p.join(`
2694
2751
  `),
2695
- imports: i
2752
+ imports: C
2696
2753
  });
2697
2754
  }
2698
2755
  {
2699
- const i = /* @__PURE__ */ new Set(), u = [], d = s(c), g = Object.values(c.inner), h = l.has(z.AggInterface) ? `, ${o.value.aggInterface}` : "";
2700
- if (l.has(z.PrimaryConstructor)) {
2701
- const v = [...p._getContext().getAssociationMap()[c._attributes.__id]].filter((C) => C._attributes.rule === "Command" || C._attributes.rule === "FacadeCommand"), m = [];
2702
- for (const C of g) {
2703
- const b = s(C);
2704
- m.push(`${b} ${$.lowerFirst(b)}`);
2756
+ const C = /* @__PURE__ */ new Set(), p = [], f = g(r), $ = Object.values(r.inner), _ = m.has(G.AggInterface) ? `, ${o.value.aggInterface}` : "";
2757
+ if (m.has(G.PrimaryConstructor)) {
2758
+ const b = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter((w) => w._attributes.rule === "Command" || w._attributes.rule === "FacadeCommand"), h = [];
2759
+ for (const w of $) {
2760
+ const y = g(w);
2761
+ h.push(`${c(C, w)} ${N.lowerFirst(y)}`);
2705
2762
  }
2706
- u.push(`public class ${d}`), u.push("("), u.push(` ${m.join(`,
2707
- `)}`), u.push(`): I${d}${h}`), u.push("{");
2708
- for (const C of g) {
2709
- const b = s(C);
2710
- u.push(
2711
- ` public ${b} ${$.upperFirst(b)} { get; private set; } = ${$.lowerFirst(
2712
- b
2713
- )};`
2714
- ), u.push("");
2763
+ p.push(`public class ${f}`), p.push("("), p.push(` ${h.join(`,
2764
+ `)}`), p.push(`): I${f}${_}`), p.push("{");
2765
+ for (const w of $) {
2766
+ const y = g(w);
2767
+ p.push(
2768
+ ` public ${c(C, w)} ${N.upperFirst(
2769
+ y
2770
+ )} { get; private set; } = ${N.lowerFirst(y)};`
2771
+ ), p.push("");
2715
2772
  }
2716
- const _ = [];
2717
- for (const C of v) {
2718
- const b = s(C);
2719
- _.push(`public void Handle${b}(${b} command)`), _.push("{"), _.push(" // HACK implement"), _.push("}"), _.push("");
2773
+ const u = [];
2774
+ for (const w of b) {
2775
+ const y = g(w);
2776
+ u.push(`public void Handle${y}(${y} command)`), u.push("{"), u.push(" // HACK implement"), u.push("}"), u.push("");
2720
2777
  }
2721
- u.push(` ${_.join(`
2722
- `)}`), u.push("}");
2778
+ p.push(` ${u.join(`
2779
+ `)}`), p.push("}");
2723
2780
  } else {
2724
- const v = [...p._getContext().getAssociationMap()[c._attributes.__id]].filter((C) => C._attributes.rule === "Command" || C._attributes.rule === "FacadeCommand");
2725
- u.push(`public class ${d} : I${d}${h}`), u.push("{");
2726
- for (const C of g) {
2727
- const b = s(C);
2728
- u.push(` public ${b} ${$.lowerFirst(b)} { get; private set; }`);
2781
+ const b = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter((w) => w._attributes.rule === "Command" || w._attributes.rule === "FacadeCommand");
2782
+ p.push(`public class ${f} : I${f}${_}`), p.push("{");
2783
+ for (const w of $) {
2784
+ const y = g(w);
2785
+ p.push(
2786
+ ` public ${c(C, w)} ${N.lowerFirst(
2787
+ y
2788
+ )} { get; private set; }`
2789
+ );
2729
2790
  }
2730
- u.push("");
2731
- const m = [];
2732
- for (const C of g) {
2733
- const b = s(C);
2734
- m.push(`${b} ${b}`);
2791
+ p.push("");
2792
+ const h = [];
2793
+ for (const w of $) {
2794
+ const y = g(w);
2795
+ h.push(`${c(C, w)} ${y}`);
2735
2796
  }
2736
- u.push(` public ${d}(${m.join(", ")})`), u.push(" {");
2737
- for (const C of g) {
2738
- const b = s(C);
2739
- u.push(` ${b} = ${$.lowerFirst(b)};`);
2797
+ p.push(` public ${f}(${h.join(", ")})`), p.push(" {");
2798
+ for (const w of $) {
2799
+ const y = g(w);
2800
+ p.push(` ${y} = ${N.lowerFirst(y)};`);
2740
2801
  }
2741
- u.push(" }");
2742
- const _ = [];
2743
- for (const C of v) {
2744
- const b = s(C);
2745
- _.push(`public void Handle${b}(${b} command)`), _.push("{"), _.push(" // HACK implement"), _.push("}"), _.push("");
2802
+ p.push(" }");
2803
+ const u = [];
2804
+ for (const w of b) {
2805
+ const y = g(w);
2806
+ u.push(`public void Handle${y}(${y} command)`), u.push("{"), u.push(" // HACK implement"), u.push("}"), u.push("");
2746
2807
  }
2747
- u.push(` ${_.join(`
2748
- `)}`), u.push("}");
2808
+ p.push(` ${u.join(`
2809
+ `)}`), p.push("}");
2749
2810
  }
2750
- f.push({
2811
+ i.push({
2751
2812
  type: "AggImpl",
2752
- content: u.join(`
2813
+ content: p.join(`
2753
2814
  `),
2754
- imports: i
2815
+ imports: C
2755
2816
  });
2756
2817
  }
2757
- return f;
2818
+ return i;
2758
2819
  }
2759
2820
  ), t.commands._setEventCodeProvider(
2760
- (c) => {
2761
- const f = o.value.additions, p = s(c), l = /* @__PURE__ */ new Set(), i = Object.values(c.inner), u = [];
2762
- u.push(`public record${r(f)} ${p}`), u.push("(");
2763
- const d = [];
2764
- for (const g of i) {
2765
- const h = s(g);
2766
- d.push(`${h} ${$.upperFirst(h)}`);
2821
+ (r) => {
2822
+ const i = o.value.additions, l = g(r), m = /* @__PURE__ */ new Set(), C = Object.values(r.inner), p = [];
2823
+ p.push(`public record${v(i)} ${l}`), p.push("(");
2824
+ const f = [];
2825
+ for (const $ of C) {
2826
+ const _ = g($);
2827
+ f.push(`${c(m, $)} ${N.upperFirst(_)}`);
2767
2828
  }
2768
- return u.push(` ${d.join(`,
2769
- `)}`), u.push(")"), u.push("{"), u.push("}"), [
2829
+ return p.push(` ${f.join(`,
2830
+ `)}`), p.push(")"), p.push("{"), p.push("}"), [
2770
2831
  {
2771
2832
  type: "Event",
2772
- content: u.join(`
2833
+ content: p.join(`
2773
2834
  `),
2774
- imports: l
2835
+ imports: m
2775
2836
  }
2776
2837
  ];
2777
2838
  }
2778
2839
  ), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => {
2779
- const c = [], f = {}, p = [...o.value.namespace.split(/\./), $.stringToUpperCamel(o.value.moduleName)];
2780
- function l(h) {
2781
- for (const v of Object.values(h)) {
2782
- const m = s(v) + ".cs";
2783
- if (f[`${p.join("/")}/${m}`] === !0)
2840
+ const r = [], i = {}, l = [...o.value.namespace.split(/\./), N.stringToUpperCamel(o.value.moduleName)];
2841
+ function m(_) {
2842
+ for (const b of Object.values(_)) {
2843
+ if (!a(b))
2844
+ continue;
2845
+ const h = g(b) + ".cs";
2846
+ if (i[`${l.join("/")}/${h}`] === !0)
2784
2847
  continue;
2785
- const _ = t.commands._genInfoCode(v);
2786
- if (_.length === 0)
2848
+ const u = t.commands._genInfoCode(b);
2849
+ if (u.length === 0)
2787
2850
  continue;
2788
- const C = new y(p, m);
2789
- for (const b of _[0].imports)
2790
- C.appendContentln(`using ${b};`);
2791
- C.appendContentln(""), C.appendContentln(
2792
- `namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
2793
- ), C.appendContentln("{"), C.appendContentln(n(_[0].content)), C.appendContentln("}"), c.push(C), f[`${p.join("/")}/${m}`] = !0;
2851
+ const w = new j(l, h);
2852
+ for (const y of u[0].imports)
2853
+ w.appendContentln(`using ${y};`);
2854
+ w.appendContentln(""), w.appendContentln(
2855
+ `namespace ${o.value.namespace}.${N.stringToUpperCamel(o.value.moduleName)}`
2856
+ ), w.appendContentln("{"), w.appendContentln(n(u[0].content)), w.appendContentln("}"), r.push(w), i[`${l.join("/")}/${h}`] = !0;
2794
2857
  }
2795
2858
  }
2796
- const i = t.states.designer.value._getContext().getCommands();
2797
- for (const h of i) {
2798
- l(h.inner);
2799
- const v = s(h) + ".cs", m = t.commands._genCommandCode(h), _ = new y(p, v);
2800
- for (const C of m)
2801
- if (C.type === "Command") {
2802
- _.addImports(C.imports);
2803
- for (const b of C.imports)
2804
- _.appendContentln(`using ${b};`);
2805
- _.appendContentln(""), _.appendContentln(
2806
- `namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
2807
- ), _.appendContentln("{"), _.appendContentln(n(C.content)), _.appendContentln("}");
2859
+ const C = t.states.designer.value._getContext().getCommands();
2860
+ for (const _ of C) {
2861
+ m(_.inner);
2862
+ const b = g(_) + ".cs", h = t.commands._genCommandCode(_), u = new j(l, b);
2863
+ for (const w of h)
2864
+ if (w.type === "Command") {
2865
+ u.addImports(w.imports);
2866
+ for (const y of w.imports)
2867
+ u.appendContentln(`using ${y};`);
2868
+ u.appendContentln(""), u.appendContentln(
2869
+ `namespace ${o.value.namespace}.${N.stringToUpperCamel(o.value.moduleName)}`
2870
+ ), u.appendContentln("{"), u.appendContentln(n(w.content)), u.appendContentln("}");
2808
2871
  }
2809
- c.push(_);
2872
+ r.push(u);
2810
2873
  }
2811
- const u = t.states.designer.value._getContext().getFacadeCommands();
2812
- for (const h of u) {
2813
- l(h.inner);
2814
- const v = s(h) + ".cs", m = t.commands._genFacadeCommandCode(h), _ = new y(p, v);
2815
- _.addImports(m[0].imports);
2816
- for (const C of m[0].imports)
2817
- _.appendContentln(`using ${C};`);
2818
- _.appendContentln(""), _.appendContentln(
2819
- `namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
2820
- ), _.appendContentln("{"), _.appendContentln(n(m[0].content)), _.appendContentln("}"), c.push(_);
2874
+ const p = t.states.designer.value._getContext().getFacadeCommands();
2875
+ for (const _ of p) {
2876
+ m(_.inner);
2877
+ const b = g(_) + ".cs", h = t.commands._genFacadeCommandCode(_), u = new j(l, b);
2878
+ u.addImports(h[0].imports);
2879
+ for (const w of h[0].imports)
2880
+ u.appendContentln(`using ${w};`);
2881
+ u.appendContentln(""), u.appendContentln(
2882
+ `namespace ${o.value.namespace}.${N.stringToUpperCamel(o.value.moduleName)}`
2883
+ ), u.appendContentln("{"), u.appendContentln(n(h[0].content)), u.appendContentln("}"), r.push(u);
2821
2884
  }
2822
- const d = t.states.designer.value._getContext().getAggs();
2823
- for (const h of d) {
2824
- l(h.inner);
2825
- const v = t.commands._genAggCode(h), m = s(h) + ".cs", _ = new y(p, m);
2826
- for (const C of v) {
2827
- _.addImports(C.imports);
2828
- for (const b of C.imports)
2829
- _.appendContentln(`using ${b};`);
2830
- _.appendContentln("");
2885
+ const f = t.states.designer.value._getContext().getAggs();
2886
+ for (const _ of f) {
2887
+ m(_.inner);
2888
+ const b = t.commands._genAggCode(_), h = g(_) + ".cs", u = new j(l, h);
2889
+ for (const w of b) {
2890
+ u.addImports(w.imports);
2891
+ for (const y of w.imports)
2892
+ u.appendContentln(`using ${y};`);
2893
+ u.appendContentln("");
2831
2894
  }
2832
- _.appendContentln(
2833
- `namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
2834
- ), _.appendContentln("{");
2835
- for (const C of v)
2836
- _.appendContentln(n(C.content));
2837
- _.appendContentln("}"), c.push(_);
2895
+ u.appendContentln(
2896
+ `namespace ${o.value.namespace}.${N.stringToUpperCamel(o.value.moduleName)}`
2897
+ ), u.appendContentln("{");
2898
+ for (const w of b)
2899
+ u.appendContentln(n(w.content));
2900
+ u.appendContentln("}"), r.push(u);
2838
2901
  }
2839
- const g = t.states.designer.value._getContext().getEvents();
2840
- for (const h of g) {
2841
- l(h.inner);
2842
- const v = s(h) + ".cs", m = t.commands._genEventCode(h), _ = new y(p, v);
2843
- _.addImports(m[0].imports);
2844
- for (const C of m[0].imports)
2845
- _.appendContentln(`using ${C};`);
2846
- _.appendContentln(""), _.appendContentln(
2847
- `namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
2848
- ), _.appendContentln("{"), _.appendContentln(n(m[0].content)), _.appendContentln("}"), c.push(_);
2902
+ const $ = t.states.designer.value._getContext().getEvents();
2903
+ for (const _ of $) {
2904
+ m(_.inner);
2905
+ const b = g(_) + ".cs", h = t.commands._genEventCode(_), u = new j(l, b);
2906
+ u.addImports(h[0].imports);
2907
+ for (const w of h[0].imports)
2908
+ u.appendContentln(`using ${w};`);
2909
+ u.appendContentln(""), u.appendContentln(
2910
+ `namespace ${o.value.namespace}.${N.stringToUpperCamel(o.value.moduleName)}`
2911
+ ), u.appendContentln("{"), u.appendContentln(n(h[0].content)), u.appendContentln("}"), r.push(u);
2849
2912
  }
2850
- return c;
2913
+ return r;
2851
2914
  });
2852
2915
  }
2853
2916
  };
2854
2917
  });
2855
2918
  export {
2856
- jo as GENERATOR_CSHARP_PLUGIN,
2857
- Ao as GENERATOR_GO_PLUGIN,
2858
- Eo as GENERATOR_JAVA_PLUGIN,
2859
- So as GENERATOR_KOTLIN_PLUGIN,
2860
- ae as GeneratorPliginHelper,
2861
- yo as define,
2862
- wo as useGeneratorAgg
2919
+ xo as GENERATOR_CSHARP_PLUGIN,
2920
+ Io as GENERATOR_GO_PLUGIN,
2921
+ Oo as GENERATOR_JAVA_PLUGIN,
2922
+ Ao as GENERATOR_KOTLIN_PLUGIN,
2923
+ ue as GeneratorPliginHelper,
2924
+ jo as define,
2925
+ So as useGeneratorAgg
2863
2926
  };