@ddd-tool/domain-designer-cli 0.1.0-beta.8 → 0.1.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8165,9 +8165,9 @@ var require_wrap = __commonJS({
8165
8165
  module2.exports = (msg, opts = {}) => {
8166
8166
  const tab = Number.isSafeInteger(parseInt(opts.margin)) ? new Array(parseInt(opts.margin)).fill(" ").join("") : opts.margin || "";
8167
8167
  const width = opts.width;
8168
- return (msg || "").split(/\r?\n/g).map((line) => line.split(/\s+/g).reduce((arr, w2) => {
8169
- if (w2.length + tab.length >= width || arr[arr.length - 1].length + w2.length + 1 < width) arr[arr.length - 1] += ` ${w2}`;
8170
- else arr.push(`${tab}${w2}`);
8168
+ return (msg || "").split(/\r?\n/g).map((line) => line.split(/\s+/g).reduce((arr, w3) => {
8169
+ if (w3.length + tab.length >= width || arr[arr.length - 1].length + w3.length + 1 < width) arr[arr.length - 1] += ` ${w3}`;
8170
+ else arr.push(`${tab}${w3}`);
8171
8171
  return arr;
8172
8172
  }, [tab]).join("\n")).join("\n");
8173
8173
  };
@@ -10633,10 +10633,10 @@ var require_wrap2 = __commonJS({
10633
10633
  module2.exports = (msg, opts = {}) => {
10634
10634
  const tab = Number.isSafeInteger(parseInt(opts.margin)) ? new Array(parseInt(opts.margin)).fill(" ").join("") : opts.margin || "";
10635
10635
  const width = opts.width;
10636
- return (msg || "").split(/\r?\n/g).map((line) => line.split(/\s+/g).reduce((arr, w2) => {
10637
- if (w2.length + tab.length >= width || arr[arr.length - 1].length + w2.length + 1 < width)
10638
- arr[arr.length - 1] += ` ${w2}`;
10639
- else arr.push(`${tab}${w2}`);
10636
+ return (msg || "").split(/\r?\n/g).map((line) => line.split(/\s+/g).reduce((arr, w3) => {
10637
+ if (w3.length + tab.length >= width || arr[arr.length - 1].length + w3.length + 1 < width)
10638
+ arr[arr.length - 1] += ` ${w3}`;
10639
+ else arr.push(`${tab}${w3}`);
10640
10640
  return arr;
10641
10641
  }, [tab]).join("\n")).join("\n");
10642
10642
  };
@@ -13511,7 +13511,7 @@ function onCancel() {
13511
13511
  // src/utils/package-info.ts
13512
13512
  var package_info_default = {
13513
13513
  "name": "@ddd-tool/domain-designer-cli",
13514
- "version": "0.1.0-beta.8",
13514
+ "version": "0.1.0-beta.9",
13515
13515
  "private": true,
13516
13516
  "type": "module",
13517
13517
  "files": [
@@ -13526,7 +13526,7 @@ var package_info_default = {
13526
13526
  },
13527
13527
  "readme": "ERROR: No README data found!",
13528
13528
  "homepage": "https://github.com/ddd-tool/domain-designer-cli-node#readme",
13529
- "_id": "@ddd-tool/domain-designer-cli@0.1.0-beta.8"
13529
+ "_id": "@ddd-tool/domain-designer-cli@0.1.0-beta.9"
13530
13530
  };
13531
13531
 
13532
13532
  // src/domain/environment-agg/index.ts
@@ -14160,12 +14160,12 @@ var import_fs6 = __toESM(require("fs"), 1);
14160
14160
  var import_path7 = __toESM(require("path"), 1);
14161
14161
  var import_child_process5 = require("child_process");
14162
14162
 
14163
- // node_modules/.pnpm/@ddd-tool+domain-designer-core@0.1.0-beta.5/node_modules/@ddd-tool/domain-designer-core/index.js
14163
+ // node_modules/.pnpm/@ddd-tool+domain-designer-core@0.1.0-beta.7/node_modules/@ddd-tool/domain-designer-core/index.js
14164
14164
  function tr(t) {
14165
14165
  const e = t;
14166
14166
  return e && typeof e.actor == "function" && typeof e.startWorkflow == "function" && typeof e.defineUserStory == "function" && typeof e._getContext == "function" && typeof e.note == "function" && typeof e.info == "object" && typeof e.command == "function" && typeof e.facadeCmd == "function" && typeof e.agg == "function" && typeof e.event == "function" && typeof e.system == "function" && typeof e.policy == "function" && typeof e.service == "function" && typeof e.readModel == "function";
14167
14167
  }
14168
- var yt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
14168
+ var Et = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
14169
14169
  process.env.NODE_ENV !== "production" && Object.freeze([]);
14170
14170
  var Lt = () => {
14171
14171
  };
@@ -14184,11 +14184,11 @@ var De = (t) => {
14184
14184
  var xe = De((t) => t.charAt(0).toUpperCase() + t.slice(1));
14185
14185
  var $t4;
14186
14186
  var dt = () => $t4 || ($t4 = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
14187
- function Rt(t) {
14187
+ function Ft(t) {
14188
14188
  if (y2(t)) {
14189
14189
  const e = {};
14190
14190
  for (let n = 0; n < t.length; n++) {
14191
- const s = t[n], r2 = x(s) ? Me(s) : Rt(s);
14191
+ const s = t[n], r2 = x(s) ? Me(s) : Ft(s);
14192
14192
  if (r2)
14193
14193
  for (const o in r2)
14194
14194
  e[o] = r2[o];
@@ -14209,13 +14209,13 @@ function Me(t) {
14209
14209
  }
14210
14210
  }), e;
14211
14211
  }
14212
- function Ft(t) {
14212
+ function Ct(t) {
14213
14213
  let e = "";
14214
14214
  if (x(t))
14215
14215
  e = t;
14216
14216
  else if (y2(t))
14217
14217
  for (let n = 0; n < t.length; n++) {
14218
- const s = Ft(t[n]);
14218
+ const s = Ct(t[n]);
14219
14219
  s && (e += s + " ");
14220
14220
  }
14221
14221
  else if (R(t))
@@ -14225,17 +14225,17 @@ function Ft(t) {
14225
14225
  }
14226
14226
  var st = true;
14227
14227
  var Yt = [];
14228
- function xt() {
14228
+ function At() {
14229
14229
  Yt.push(st), st = false;
14230
14230
  }
14231
- function At() {
14231
+ function Vt() {
14232
14232
  const t = Yt.pop();
14233
14233
  st = t === void 0 ? true : t;
14234
14234
  }
14235
14235
  var j2 = Symbol(
14236
14236
  process.env.NODE_ENV !== "production" ? "Object iterate" : ""
14237
14237
  );
14238
- var Nt = Symbol(
14238
+ var vt = Symbol(
14239
14239
  process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
14240
14240
  );
14241
14241
  var Q = Symbol(
@@ -14271,13 +14271,13 @@ function tn(t) {
14271
14271
  function en() {
14272
14272
  k.pop();
14273
14273
  }
14274
- var gt = false;
14274
+ var bt = false;
14275
14275
  function W(t, ...e) {
14276
- if (gt) return;
14277
- gt = true, xt();
14276
+ if (bt) return;
14277
+ bt = true, At();
14278
14278
  const n = k.length ? k[k.length - 1].component : null, s = n && n.appContext.config.warnHandler, r2 = nn();
14279
14279
  if (s)
14280
- It(
14280
+ Mt(
14281
14281
  s,
14282
14282
  n,
14283
14283
  11,
@@ -14300,7 +14300,7 @@ function W(t, ...e) {
14300
14300
  r2.length && o.push(`
14301
14301
  `, ...rn(r2));
14302
14302
  }
14303
- At(), gt = false;
14303
+ Vt(), bt = false;
14304
14304
  }
14305
14305
  function nn() {
14306
14306
  let t = k[k.length - 1];
@@ -14375,7 +14375,7 @@ var re = {
14375
14375
  15: "component update",
14376
14376
  16: "app unmount cleanup function"
14377
14377
  };
14378
- function It(t, e, n, s) {
14378
+ function Mt(t, e, n, s) {
14379
14379
  try {
14380
14380
  return s ? t(...s) : t();
14381
14381
  } catch (r2) {
@@ -14383,7 +14383,7 @@ function It(t, e, n, s) {
14383
14383
  }
14384
14384
  }
14385
14385
  function oe(t, e, n, s = true) {
14386
- const r2 = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: c } = e && e.appContext.config || yt;
14386
+ const r2 = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: c } = e && e.appContext.config || Et;
14387
14387
  if (e) {
14388
14388
  let i = e.parent;
14389
14389
  const a = e.proxy, d = process.env.NODE_ENV !== "production" ? re[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
@@ -14397,11 +14397,11 @@ function oe(t, e, n, s = true) {
14397
14397
  i = i.parent;
14398
14398
  }
14399
14399
  if (o) {
14400
- xt(), It(o, null, 10, [
14400
+ At(), Mt(o, null, 10, [
14401
14401
  t,
14402
14402
  a,
14403
14403
  d
14404
- ]), At();
14404
+ ]), Vt();
14405
14405
  return;
14406
14406
  }
14407
14407
  }
@@ -14421,7 +14421,7 @@ var L = [];
14421
14421
  var V = null;
14422
14422
  var K = 0;
14423
14423
  var un = /* @__PURE__ */ Promise.resolve();
14424
- var Ot = null;
14424
+ var Tt = null;
14425
14425
  var an = 100;
14426
14426
  function ln(t) {
14427
14427
  let e = D + 1, n = O.length;
@@ -14439,7 +14439,7 @@ function fn(t) {
14439
14439
  }
14440
14440
  }
14441
14441
  function se() {
14442
- Ot || (Ot = un.then(ie));
14442
+ Tt || (Tt = un.then(ie));
14443
14443
  }
14444
14444
  function dn(t) {
14445
14445
  y2(t) ? L.push(...t) : V && t.id === -1 ? V.splice(K + 1, 0, t) : t.flags & 1 || (L.push(t), t.flags |= 1), se();
@@ -14470,7 +14470,7 @@ function ie(t) {
14470
14470
  if (n && !(n.flags & 8)) {
14471
14471
  if (process.env.NODE_ENV !== "production" && e(n))
14472
14472
  continue;
14473
- n.flags & 4 && (n.flags &= -2), It(
14473
+ n.flags & 4 && (n.flags &= -2), Mt(
14474
14474
  n,
14475
14475
  n.i,
14476
14476
  n.i ? 15 : 14
@@ -14482,7 +14482,7 @@ function ie(t) {
14482
14482
  const n = O[D];
14483
14483
  n && (n.flags &= -2);
14484
14484
  }
14485
- D = -1, O.length = 0, _n(t), Ot = null, (O.length || L.length) && ie(t);
14485
+ D = -1, O.length = 0, _n(t), Tt = null, (O.length || L.length) && ie(t);
14486
14486
  }
14487
14487
  }
14488
14488
  function ce(t, e) {
@@ -14497,11 +14497,11 @@ function ce(t, e) {
14497
14497
  }
14498
14498
  return t.set(e, n + 1), false;
14499
14499
  }
14500
- var bt = /* @__PURE__ */ new Map();
14500
+ var mt = /* @__PURE__ */ new Map();
14501
14501
  process.env.NODE_ENV !== "production" && (dt().__VUE_HMR_RUNTIME__ = {
14502
- createRecord: mt(pn),
14503
- rerender: mt(hn),
14504
- reload: mt(gn)
14502
+ createRecord: yt(pn),
14503
+ rerender: yt(hn),
14504
+ reload: yt(gn)
14505
14505
  });
14506
14506
  var ut = /* @__PURE__ */ new Map();
14507
14507
  function pn(t, e) {
@@ -14526,13 +14526,13 @@ function gn(t, e) {
14526
14526
  const s = [...n.instances];
14527
14527
  for (let r2 = 0; r2 < s.length; r2++) {
14528
14528
  const o = s[r2], c = at(o.type);
14529
- let i = bt.get(c);
14530
- i || (c !== n.initialDef && Ht(c, e), bt.set(c, i = /* @__PURE__ */ new Set())), i.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (i.add(o), o.ceReload(e.styles), i.delete(o)) : o.parent ? fn(() => {
14529
+ let i = mt.get(c);
14530
+ i || (c !== n.initialDef && Ht(c, e), mt.set(c, i = /* @__PURE__ */ new Set())), i.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (i.add(o), o.ceReload(e.styles), i.delete(o)) : o.parent ? fn(() => {
14531
14531
  o.parent.update(), i.delete(o);
14532
14532
  }) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" && window.location.reload(), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(c);
14533
14533
  }
14534
14534
  dn(() => {
14535
- bt.clear();
14535
+ mt.clear();
14536
14536
  });
14537
14537
  }
14538
14538
  function Ht(t, e) {
@@ -14540,7 +14540,7 @@ function Ht(t, e) {
14540
14540
  for (const n in t)
14541
14541
  n !== "__file" && !(n in e) && delete t[n];
14542
14542
  }
14543
- function mt(t) {
14543
+ function yt(t) {
14544
14544
  return (e, n) => {
14545
14545
  try {
14546
14546
  return t(e, n);
@@ -14609,7 +14609,7 @@ function Rn(t, e = null, n = null, s = 0, r2 = null, o = t === fe ? 0 : 1, c = f
14609
14609
  appContext: null,
14610
14610
  ctx: lt
14611
14611
  };
14612
- return i ? (Mt(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= x(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && W("VNode created with invalid key (NaN). VNode type:", a.type), a;
14612
+ return i ? (Pt(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= x(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && W("VNode created with invalid key (NaN). VNode type:", a.type), a;
14613
14613
  }
14614
14614
  var Fn = process.env.NODE_ENV !== "production" ? Tn : _e;
14615
14615
  function _e(t, e = null, n = null, s = 0, r2 = null, o = false) {
@@ -14620,12 +14620,12 @@ function _e(t, e = null, n = null, s = 0, r2 = null, o = false) {
14620
14620
  true
14621
14621
  /* mergeRef: true */
14622
14622
  );
14623
- return n && Mt(i, n), i.patchFlag = -2, i;
14623
+ return n && Pt(i, n), i.patchFlag = -2, i;
14624
14624
  }
14625
14625
  if (be(t) && (t = t.__vccOpts), e) {
14626
14626
  e = Cn(e);
14627
14627
  let { class: i, style: a } = e;
14628
- i && !x(i) && (e.class = Ft(i)), R(a) && (ct(a) && !y2(a) && (a = B({}, a)), e.style = Rt(a));
14628
+ i && !x(i) && (e.class = Ct(i)), R(a) && (ct(a) && !y2(a) && (a = B({}, a)), e.style = Ft(a));
14629
14629
  }
14630
14630
  const c = x(t) ? 1 : Nn(t) ? 128 : mn(t) ? 64 : R(t) ? 4 : $(t) ? 2 : 0;
14631
14631
  return process.env.NODE_ENV !== "production" && c & 4 && ct(t) && (t = h(t), W(
@@ -14703,7 +14703,7 @@ function pe(t) {
14703
14703
  function Dn(t = " ", e = 0) {
14704
14704
  return Fn(vn, null, t, e);
14705
14705
  }
14706
- function Mt(t, e) {
14706
+ function Pt(t, e) {
14707
14707
  let n = 0;
14708
14708
  const { shapeFlag: s } = t;
14709
14709
  if (e == null)
@@ -14713,7 +14713,7 @@ function Mt(t, e) {
14713
14713
  else if (typeof e == "object")
14714
14714
  if (s & 65) {
14715
14715
  const r2 = e.default;
14716
- r2 && (r2._c && (r2._d = false), Mt(t, r2()), r2._c && (r2._d = true));
14716
+ r2 && (r2._c && (r2._d = false), Pt(t, r2()), r2._c && (r2._d = true));
14717
14717
  return;
14718
14718
  } else
14719
14719
  n = 32, !e._ && !le(e) && (e._ctx = lt);
@@ -14726,9 +14726,9 @@ function xn(...t) {
14726
14726
  const s = t[n];
14727
14727
  for (const r2 in s)
14728
14728
  if (r2 === "class")
14729
- e.class !== s.class && (e.class = Ft([e.class, s.class]));
14729
+ e.class !== s.class && (e.class = Ct([e.class, s.class]));
14730
14730
  else if (r2 === "style")
14731
- e.style = Rt([e.style, s.style]);
14731
+ e.style = Ft([e.style, s.style]);
14732
14732
  else if (Re(r2)) {
14733
14733
  const o = e[r2], c = s[r2];
14734
14734
  c && o !== c && !(y2(o) && o.includes(c)) && (e[r2] = o ? [].concat(o, c) : c);
@@ -14822,7 +14822,7 @@ function In() {
14822
14822
  };
14823
14823
  function o(u) {
14824
14824
  const f = [];
14825
- u.type.props && u.props && f.push(c("props", h(u.props))), u.setupState !== yt && f.push(c("setup", u.setupState)), u.data !== yt && f.push(c("data", h(u.data)));
14825
+ u.type.props && u.props && f.push(c("props", h(u.props))), u.setupState !== Et && f.push(c("setup", u.setupState)), u.data !== Et && f.push(c("data", h(u.data)));
14826
14826
  const _ = a(u, "computed");
14827
14827
  _ && f.push(c("computed", _));
14828
14828
  const g2 = a(u, "inject");
@@ -14894,7 +14894,7 @@ function Mn() {
14894
14894
  }
14895
14895
  process.env.NODE_ENV !== "production" && Mn();
14896
14896
 
14897
- // node_modules/.pnpm/@ddd-tool+domain-designer-g_65c72307a129f35df6ab1b69bad098eb/node_modules/@ddd-tool/domain-designer-generator/index.js
14897
+ // node_modules/.pnpm/@ddd-tool+domain-designer-g_4317c16e63e68913844905c11cdc60a7/node_modules/@ddd-tool/domain-designer-generator/index.js
14898
14898
  // @__NO_SIDE_EFFECTS__
14899
14899
  function Bn(e) {
14900
14900
  const n = /* @__PURE__ */ Object.create(null);
@@ -14903,19 +14903,19 @@ function Bn(e) {
14903
14903
  }
14904
14904
  process.env.NODE_ENV !== "production" && Object.freeze({});
14905
14905
  process.env.NODE_ENV !== "production" && Object.freeze([]);
14906
- var Pe = Object.assign;
14907
- var Gn = Object.prototype.hasOwnProperty;
14908
- var Ve2 = (e, n) => Gn.call(e, n);
14906
+ var Fe = Object.assign;
14907
+ var Un = Object.prototype.hasOwnProperty;
14908
+ var Ve2 = (e, n) => Un.call(e, n);
14909
14909
  var Y = Array.isArray;
14910
14910
  var te = (e) => dn2(e) === "[object Map]";
14911
- var Un = (e) => typeof e == "function";
14912
- var zn = (e) => typeof e == "string";
14911
+ var zn = (e) => typeof e == "function";
14912
+ var Gn = (e) => typeof e == "string";
14913
14913
  var ue = (e) => typeof e == "symbol";
14914
- var je = (e) => e !== null && typeof e == "object";
14914
+ var Ee = (e) => e !== null && typeof e == "object";
14915
14915
  var Jn = Object.prototype.toString;
14916
14916
  var dn2 = (e) => Jn.call(e);
14917
14917
  var mn2 = (e) => dn2(e).slice(8, -1);
14918
- var Ye = (e) => zn(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e;
14918
+ var Ye = (e) => Gn(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e;
14919
14919
  var Wn = (e) => {
14920
14920
  const n = /* @__PURE__ */ Object.create(null);
14921
14921
  return (t) => n[t] || (n[t] = e(t));
@@ -15046,7 +15046,7 @@ var Qe = class {
15046
15046
  r2.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = r2), t.prevDep = A.depsTail, t.nextDep = void 0, A.depsTail.nextDep = t, A.depsTail = t, A.deps === t && (A.deps = r2);
15047
15047
  }
15048
15048
  return process.env.NODE_ENV !== "production" && A.onTrack && A.onTrack(
15049
- Pe(
15049
+ Fe(
15050
15050
  {
15051
15051
  effect: A
15052
15052
  },
@@ -15063,7 +15063,7 @@ var Qe = class {
15063
15063
  if (process.env.NODE_ENV !== "production")
15064
15064
  for (let t = this.subsHead; t; t = t.nextSub)
15065
15065
  t.sub.onTrigger && !(t.sub.flags & 8) && t.sub.onTrigger(
15066
- Pe(
15066
+ Fe(
15067
15067
  {
15068
15068
  effect: t.sub
15069
15069
  },
@@ -15099,7 +15099,7 @@ var He = Symbol(
15099
15099
  var ae2 = Symbol(
15100
15100
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
15101
15101
  );
15102
- function T(e, n, t) {
15102
+ function x2(e, n, t) {
15103
15103
  if (R2 && A) {
15104
15104
  let r2 = Re2.get(e);
15105
15105
  r2 || Re2.set(e, r2 = /* @__PURE__ */ new Map());
@@ -15130,16 +15130,16 @@ function V2(e, n, t, r2, o, s) {
15130
15130
  if (qe(), n === "clear")
15131
15131
  p.forEach(_);
15132
15132
  else {
15133
- const C2 = Y(e), d = C2 && Ye(t);
15133
+ const C2 = Y(e), m2 = C2 && Ye(t);
15134
15134
  if (C2 && t === "length") {
15135
15135
  const i = Number(r2);
15136
15136
  p.forEach((a, l2) => {
15137
15137
  (l2 === "length" || l2 === ae2 || !ue(l2) && l2 >= i) && _(a);
15138
15138
  });
15139
15139
  } else
15140
- switch ((t !== void 0 || p.has(void 0)) && _(p.get(t)), d && _(p.get(ae2)), n) {
15140
+ switch ((t !== void 0 || p.has(void 0)) && _(p.get(t)), m2 && _(p.get(ae2)), n) {
15141
15141
  case "add":
15142
- C2 ? d && _(p.get("length")) : (_(p.get(K2)), te(e) && _(p.get(He)));
15142
+ C2 ? m2 && _(p.get("length")) : (_(p.get(K2)), te(e) && _(p.get(He)));
15143
15143
  break;
15144
15144
  case "delete":
15145
15145
  C2 || (_(p.get(K2)), te(e) && _(p.get(He)));
@@ -15152,11 +15152,11 @@ function V2(e, n, t, r2, o, s) {
15152
15152
  Ze();
15153
15153
  }
15154
15154
  function J(e) {
15155
- const n = E2(e);
15156
- return n === e ? n : (T(n, "iterate", ae2), H(e) ? n : n.map(O2));
15155
+ const n = j3(e);
15156
+ return n === e ? n : (x2(n, "iterate", ae2), H(e) ? n : n.map(O2));
15157
15157
  }
15158
15158
  function Xe(e) {
15159
- return T(e = E2(e), "iterate", ae2), e;
15159
+ return x2(e = j3(e), "iterate", ae2), e;
15160
15160
  }
15161
15161
  var st2 = {
15162
15162
  __proto__: null,
@@ -15261,13 +15261,13 @@ function D2(e, n, t, r2, o, s) {
15261
15261
  const a = C2.apply(e, s);
15262
15262
  return _ ? O2(a) : a;
15263
15263
  }
15264
- let d = t;
15265
- p !== e && (_ ? d = function(a, l2) {
15264
+ let m2 = t;
15265
+ p !== e && (_ ? m2 = function(a, l2) {
15266
15266
  return t.call(this, O2(a), l2, e);
15267
- } : t.length > 2 && (d = function(a, l2) {
15267
+ } : t.length > 2 && (m2 = function(a, l2) {
15268
15268
  return t.call(this, a, l2, e);
15269
15269
  }));
15270
- const i = C2.call(p, d, r2);
15270
+ const i = C2.call(p, m2, r2);
15271
15271
  return _ && o ? o(i) : i;
15272
15272
  }
15273
15273
  function cn2(e, n, t, r2) {
@@ -15280,14 +15280,14 @@ function cn2(e, n, t, r2) {
15280
15280
  }), o[n](s, ...r2);
15281
15281
  }
15282
15282
  function Oe(e, n, t) {
15283
- const r2 = E2(e);
15284
- T(r2, "iterate", ae2);
15283
+ const r2 = j3(e);
15284
+ x2(r2, "iterate", ae2);
15285
15285
  const o = r2[n](...t);
15286
- return (o === -1 || o === false) && $t5(t[0]) ? (t[0] = E2(t[0]), r2[n](...t)) : o;
15286
+ return (o === -1 || o === false) && $t5(t[0]) ? (t[0] = j3(t[0]), r2[n](...t)) : o;
15287
15287
  }
15288
15288
  function ne2(e, n, t = []) {
15289
15289
  nt(), qe();
15290
- const r2 = E2(e)[n].apply(e, t);
15290
+ const r2 = j3(e)[n].apply(e, t);
15291
15291
  return Ze(), tt(), r2;
15292
15292
  }
15293
15293
  var at2 = /* @__PURE__ */ Bn("__proto__,__v_isRef,__isVue");
@@ -15296,8 +15296,8 @@ var Cn2 = new Set(
15296
15296
  );
15297
15297
  function it(e) {
15298
15298
  ue(e) || (e = String(e));
15299
- const n = E2(this);
15300
- return T(n, "has", e), n.hasOwnProperty(e);
15299
+ const n = j3(this);
15300
+ return x2(n, "has", e), n.hasOwnProperty(e);
15301
15301
  }
15302
15302
  var $n = class {
15303
15303
  constructor(n = false, t = false) {
@@ -15313,7 +15313,7 @@ var $n = class {
15313
15313
  if (t === "__v_isShallow")
15314
15314
  return s;
15315
15315
  if (t === "__v_raw")
15316
- return r2 === (o ? s ? yn2 : Nn2 : s ? gt2 : wn2).get(n) || // receiver is not the reactive proxy, but has the same prototype
15316
+ return r2 === (o ? s ? yn2 : wn2 : s ? gt : Nn2).get(n) || // receiver is not the reactive proxy, but has the same prototype
15317
15317
  // this means the receiver is a user proxy of the reactive proxy
15318
15318
  Object.getPrototypeOf(n) === Object.getPrototypeOf(r2) ? n : void 0;
15319
15319
  const p = Y(n);
@@ -15332,7 +15332,7 @@ var $n = class {
15332
15332
  // its class methods
15333
15333
  Z2(n) ? n : r2
15334
15334
  );
15335
- return (ue(t) ? Cn2.has(t) : at2(t)) || (o || T(n, "get", t), s) ? _ : Z2(_) ? p && Ye(t) ? _ : _.value : je(_) ? o ? ve(_) : jn(_) : _;
15335
+ return (ue(t) ? Cn2.has(t) : at2(t)) || (o || x2(n, "get", t), s) ? _ : Z2(_) ? p && Ye(t) ? _ : _.value : Ee(_) ? o ? ve(_) : En2(_) : _;
15336
15336
  }
15337
15337
  };
15338
15338
  var ct2 = class extends $n {
@@ -15343,7 +15343,7 @@ var ct2 = class extends $n {
15343
15343
  let s = n[t];
15344
15344
  if (!this._isShallow) {
15345
15345
  const C2 = ee2(s);
15346
- if (!H(r2) && !ee2(r2) && (s = E2(s), r2 = E2(r2)), !Y(n) && Z2(s) && !Z2(r2))
15346
+ if (!H(r2) && !ee2(r2) && (s = j3(s), r2 = j3(r2)), !Y(n) && Z2(s) && !Z2(r2))
15347
15347
  return C2 ? false : (s.value = r2, true);
15348
15348
  }
15349
15349
  const p = Y(n) && Ye(t) ? Number(t) < n.length : Ve2(n, t), _ = Reflect.set(
@@ -15352,7 +15352,7 @@ var ct2 = class extends $n {
15352
15352
  r2,
15353
15353
  Z2(n) ? n : o
15354
15354
  );
15355
- return n === E2(o) && (p ? q(r2, s) && V2(n, "set", t, r2, s) : V2(n, "add", t, r2)), _;
15355
+ return n === j3(o) && (p ? q(r2, s) && V2(n, "set", t, r2, s) : V2(n, "add", t, r2)), _;
15356
15356
  }
15357
15357
  deleteProperty(n, t) {
15358
15358
  const r2 = Ve2(n, t), o = n[t], s = Reflect.deleteProperty(n, t);
@@ -15360,10 +15360,10 @@ var ct2 = class extends $n {
15360
15360
  }
15361
15361
  has(n, t) {
15362
15362
  const r2 = Reflect.has(n, t);
15363
- return (!ue(t) || !Cn2.has(t)) && T(n, "has", t), r2;
15363
+ return (!ue(t) || !Cn2.has(t)) && x2(n, "has", t), r2;
15364
15364
  }
15365
15365
  ownKeys(n) {
15366
- return T(
15366
+ return x2(
15367
15367
  n,
15368
15368
  "iterate",
15369
15369
  Y(n) ? "length" : K2
@@ -15394,15 +15394,15 @@ var Le = (e) => e;
15394
15394
  var pe2 = (e) => Reflect.getPrototypeOf(e);
15395
15395
  function dt2(e, n, t) {
15396
15396
  return function(...r2) {
15397
- const o = this.__v_raw, s = E2(o), p = te(s), _ = e === "entries" || e === Symbol.iterator && p, C2 = e === "keys" && p, d = o[e](...r2), i = t ? Le : n ? Me2 : O2;
15398
- return !n && T(
15397
+ const o = this.__v_raw, s = j3(o), p = te(s), _ = e === "entries" || e === Symbol.iterator && p, C2 = e === "keys" && p, m2 = o[e](...r2), i = t ? Le : n ? Me2 : O2;
15398
+ return !n && x2(
15399
15399
  s,
15400
15400
  "iterate",
15401
15401
  C2 ? He : K2
15402
15402
  ), {
15403
15403
  // iterator protocol
15404
15404
  next() {
15405
- const { value: a, done: l2 } = d.next();
15405
+ const { value: a, done: l2 } = m2.next();
15406
15406
  return l2 ? { value: a, done: l2 } : {
15407
15407
  value: _ ? [i(a[0]), i(a[1])] : i(a),
15408
15408
  done: l2
@@ -15421,7 +15421,7 @@ function de2(e) {
15421
15421
  const t = n[0] ? `on key "${n[0]}" ` : "";
15422
15422
  X3(
15423
15423
  `${Yn(e)} operation ${t}failed: target is readonly.`,
15424
- E2(this)
15424
+ j3(this)
15425
15425
  );
15426
15426
  }
15427
15427
  return e === "delete" ? false : e === "clear" ? void 0 : this;
@@ -15430,29 +15430,29 @@ function de2(e) {
15430
15430
  function mt2(e, n) {
15431
15431
  const t = {
15432
15432
  get(o) {
15433
- const s = this.__v_raw, p = E2(s), _ = E2(o);
15434
- e || (q(o, _) && T(p, "get", o), T(p, "get", _));
15435
- const { has: C2 } = pe2(p), d = n ? Le : e ? Me2 : O2;
15433
+ const s = this.__v_raw, p = j3(s), _ = j3(o);
15434
+ e || (q(o, _) && x2(p, "get", o), x2(p, "get", _));
15435
+ const { has: C2 } = pe2(p), m2 = n ? Le : e ? Me2 : O2;
15436
15436
  if (C2.call(p, o))
15437
- return d(s.get(o));
15437
+ return m2(s.get(o));
15438
15438
  if (C2.call(p, _))
15439
- return d(s.get(_));
15439
+ return m2(s.get(_));
15440
15440
  s !== p && s.get(o);
15441
15441
  },
15442
15442
  get size() {
15443
15443
  const o = this.__v_raw;
15444
- return !e && T(E2(o), "iterate", K2), Reflect.get(o, "size", o);
15444
+ return !e && x2(j3(o), "iterate", K2), Reflect.get(o, "size", o);
15445
15445
  },
15446
15446
  has(o) {
15447
- const s = this.__v_raw, p = E2(s), _ = E2(o);
15448
- return e || (q(o, _) && T(p, "has", o), T(p, "has", _)), o === _ ? s.has(o) : s.has(o) || s.has(_);
15447
+ const s = this.__v_raw, p = j3(s), _ = j3(o);
15448
+ return e || (q(o, _) && x2(p, "has", o), x2(p, "has", _)), o === _ ? s.has(o) : s.has(o) || s.has(_);
15449
15449
  },
15450
15450
  forEach(o, s) {
15451
- const p = this, _ = p.__v_raw, C2 = E2(_), d = n ? Le : e ? Me2 : O2;
15452
- return !e && T(C2, "iterate", K2), _.forEach((i, a) => o.call(s, d(i), d(a), p));
15451
+ const p = this, _ = p.__v_raw, C2 = j3(_), m2 = n ? Le : e ? Me2 : O2;
15452
+ return !e && x2(C2, "iterate", K2), _.forEach((i, a) => o.call(s, m2(i), m2(a), p));
15453
15453
  }
15454
15454
  };
15455
- return Pe(
15455
+ return Fe(
15456
15456
  t,
15457
15457
  e ? {
15458
15458
  add: de2("add"),
@@ -15461,27 +15461,27 @@ function mt2(e, n) {
15461
15461
  clear: de2("clear")
15462
15462
  } : {
15463
15463
  add(o) {
15464
- !n && !H(o) && !ee2(o) && (o = E2(o));
15465
- const s = E2(this);
15464
+ !n && !H(o) && !ee2(o) && (o = j3(o));
15465
+ const s = j3(this);
15466
15466
  return pe2(s).has.call(s, o) || (s.add(o), V2(s, "add", o, o)), this;
15467
15467
  },
15468
15468
  set(o, s) {
15469
- !n && !H(s) && !ee2(s) && (s = E2(s));
15470
- const p = E2(this), { has: _, get: C2 } = pe2(p);
15471
- let d = _.call(p, o);
15472
- d ? process.env.NODE_ENV !== "production" && un2(p, _, o) : (o = E2(o), d = _.call(p, o));
15469
+ !n && !H(s) && !ee2(s) && (s = j3(s));
15470
+ const p = j3(this), { has: _, get: C2 } = pe2(p);
15471
+ let m2 = _.call(p, o);
15472
+ m2 ? process.env.NODE_ENV !== "production" && un2(p, _, o) : (o = j3(o), m2 = _.call(p, o));
15473
15473
  const i = C2.call(p, o);
15474
- return p.set(o, s), d ? q(s, i) && V2(p, "set", o, s, i) : V2(p, "add", o, s), this;
15474
+ return p.set(o, s), m2 ? q(s, i) && V2(p, "set", o, s, i) : V2(p, "add", o, s), this;
15475
15475
  },
15476
15476
  delete(o) {
15477
- const s = E2(this), { has: p, get: _ } = pe2(s);
15477
+ const s = j3(this), { has: p, get: _ } = pe2(s);
15478
15478
  let C2 = p.call(s, o);
15479
- C2 ? process.env.NODE_ENV !== "production" && un2(s, p, o) : (o = E2(o), C2 = p.call(s, o));
15480
- const d = _ ? _.call(s, o) : void 0, i = s.delete(o);
15481
- return C2 && V2(s, "delete", o, void 0, d), i;
15479
+ C2 ? process.env.NODE_ENV !== "production" && un2(s, p, o) : (o = j3(o), C2 = p.call(s, o));
15480
+ const m2 = _ ? _.call(s, o) : void 0, i = s.delete(o);
15481
+ return C2 && V2(s, "delete", o, void 0, m2), i;
15482
15482
  },
15483
15483
  clear() {
15484
- const o = E2(this), s = o.size !== 0, p = process.env.NODE_ENV !== "production" ? te(o) ? new Map(o) : new Set(o) : void 0, _ = o.clear();
15484
+ const o = j3(this), s = o.size !== 0, p = process.env.NODE_ENV !== "production" ? te(o) ? new Map(o) : new Set(o) : void 0, _ = o.clear();
15485
15485
  return s && V2(
15486
15486
  o,
15487
15487
  "clear",
@@ -15514,11 +15514,11 @@ var ft2 = {
15514
15514
  var ht = {
15515
15515
  get: /* @__PURE__ */ en2(true, false)
15516
15516
  };
15517
- var vt = {
15517
+ var vt2 = {
15518
15518
  get: /* @__PURE__ */ en2(true, true)
15519
15519
  };
15520
15520
  function un2(e, n, t) {
15521
- const r2 = E2(t);
15521
+ const r2 = j3(t);
15522
15522
  if (r2 !== t && n.call(e, r2)) {
15523
15523
  const o = mn2(e);
15524
15524
  X3(
@@ -15526,9 +15526,9 @@ function un2(e, n, t) {
15526
15526
  );
15527
15527
  }
15528
15528
  }
15529
- var wn2 = /* @__PURE__ */ new WeakMap();
15530
- var gt2 = /* @__PURE__ */ new WeakMap();
15531
15529
  var Nn2 = /* @__PURE__ */ new WeakMap();
15530
+ var gt = /* @__PURE__ */ new WeakMap();
15531
+ var wn2 = /* @__PURE__ */ new WeakMap();
15532
15532
  var yn2 = /* @__PURE__ */ new WeakMap();
15533
15533
  function _t(e) {
15534
15534
  switch (e) {
@@ -15544,16 +15544,16 @@ function _t(e) {
15544
15544
  return 0;
15545
15545
  }
15546
15546
  }
15547
- function Ct(e) {
15547
+ function Ct2(e) {
15548
15548
  return e.__v_skip || !Object.isExtensible(e) ? 0 : _t(mn2(e));
15549
15549
  }
15550
- function jn(e) {
15550
+ function En2(e) {
15551
15551
  return ee2(e) ? e : nn2(
15552
15552
  e,
15553
15553
  false,
15554
15554
  ut2,
15555
15555
  ft2,
15556
- wn2
15556
+ Nn2
15557
15557
  );
15558
15558
  }
15559
15559
  function ve(e) {
@@ -15562,7 +15562,7 @@ function ve(e) {
15562
15562
  true,
15563
15563
  lt2,
15564
15564
  ht,
15565
- Nn2
15565
+ wn2
15566
15566
  );
15567
15567
  }
15568
15568
  function fe2(e) {
@@ -15570,12 +15570,12 @@ function fe2(e) {
15570
15570
  e,
15571
15571
  true,
15572
15572
  pt,
15573
- vt,
15573
+ vt2,
15574
15574
  yn2
15575
15575
  );
15576
15576
  }
15577
15577
  function nn2(e, n, t, r2, o) {
15578
- if (!je(e))
15578
+ if (!Ee(e))
15579
15579
  return process.env.NODE_ENV !== "production" && X3(
15580
15580
  `value cannot be made ${n ? "readonly" : "reactive"}: ${String(
15581
15581
  e
@@ -15586,7 +15586,7 @@ function nn2(e, n, t, r2, o) {
15586
15586
  const s = o.get(e);
15587
15587
  if (s)
15588
15588
  return s;
15589
- const p = Ct(e);
15589
+ const p = Ct2(e);
15590
15590
  if (p === 0)
15591
15591
  return e;
15592
15592
  const _ = new Proxy(
@@ -15604,12 +15604,12 @@ function H(e) {
15604
15604
  function $t5(e) {
15605
15605
  return e ? !!e.__v_raw : false;
15606
15606
  }
15607
- function E2(e) {
15607
+ function j3(e) {
15608
15608
  const n = e && e.__v_raw;
15609
- return n ? E2(n) : e;
15609
+ return n ? j3(n) : e;
15610
15610
  }
15611
- var O2 = (e) => je(e) ? jn(e) : e;
15612
- var Me2 = (e) => je(e) ? ve(e) : e;
15611
+ var O2 = (e) => Ee(e) ? En2(e) : e;
15612
+ var Me2 = (e) => Ee(e) ? ve(e) : e;
15613
15613
  function Z2(e) {
15614
15614
  return e ? e.__v_isRef === true : false;
15615
15615
  }
@@ -15617,11 +15617,11 @@ function ge2(e) {
15617
15617
  return bt2(e, false);
15618
15618
  }
15619
15619
  function bt2(e, n) {
15620
- return Z2(e) ? e : new wt(e, n);
15620
+ return Z2(e) ? e : new Nt(e, n);
15621
15621
  }
15622
- var wt = class {
15622
+ var Nt = class {
15623
15623
  constructor(n, t) {
15624
- this.dep = new Qe(), this.__v_isRef = true, this.__v_isShallow = false, this._rawValue = t ? n : E2(n), this._value = t ? n : O2(n), this.__v_isShallow = t;
15624
+ this.dep = new Qe(), this.__v_isRef = true, this.__v_isShallow = false, this._rawValue = t ? n : j3(n), this._value = t ? n : O2(n), this.__v_isShallow = t;
15625
15625
  }
15626
15626
  get value() {
15627
15627
  return process.env.NODE_ENV !== "production" ? this.dep.track({
@@ -15632,7 +15632,7 @@ var wt = class {
15632
15632
  }
15633
15633
  set value(n) {
15634
15634
  const t = this._rawValue, r2 = this.__v_isShallow || H(n) || ee2(n);
15635
- n = r2 ? n : E2(n), q(n, t) && (this._rawValue = n, this._value = r2 ? n : O2(n), process.env.NODE_ENV !== "production" ? this.dep.trigger({
15635
+ n = r2 ? n : j3(n), q(n, t) && (this._rawValue = n, this._value = r2 ? n : O2(n), process.env.NODE_ENV !== "production" ? this.dep.trigger({
15636
15636
  target: this,
15637
15637
  type: "set",
15638
15638
  key: "value",
@@ -15641,7 +15641,7 @@ var wt = class {
15641
15641
  }) : this.dep.trigger());
15642
15642
  }
15643
15643
  };
15644
- var Nt2 = class {
15644
+ var wt = class {
15645
15645
  constructor(n, t, r2) {
15646
15646
  this.fn = n, this.setter = t, this._value = void 0, this.dep = new Qe(this), this.__v_isRef = true, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = re2 - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = r2;
15647
15647
  }
@@ -15668,18 +15668,18 @@ var Nt2 = class {
15668
15668
  };
15669
15669
  function Ke(e, n, t = false) {
15670
15670
  let r2, o;
15671
- Un(e) ? r2 = e : (r2 = e.get, o = e.set);
15672
- const s = new Nt2(r2, o, t);
15671
+ zn(e) ? r2 = e : (r2 = e.get, o = e.set);
15672
+ const s = new wt(r2, o, t);
15673
15673
  return process.env.NODE_ENV, s;
15674
15674
  }
15675
15675
  var yt2 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
15676
- var jt = (e = 21) => {
15676
+ var Et2 = (e = 21) => {
15677
15677
  let n = "", t = crypto.getRandomValues(new Uint8Array(e |= 0));
15678
15678
  for (; e--; )
15679
15679
  n += yt2[t[e] & 63];
15680
15680
  return n;
15681
15681
  };
15682
- function Et(e, n = true, t = false) {
15682
+ function jt(e, n = true, t = false) {
15683
15683
  const r2 = ge2();
15684
15684
  let o;
15685
15685
  const s = ge2(false);
@@ -15687,20 +15687,20 @@ function Et(e, n = true, t = false) {
15687
15687
  };
15688
15688
  const _ = new Proxy(e, {
15689
15689
  apply: function(i, a, l2) {
15690
- let f;
15690
+ let h2;
15691
15691
  try {
15692
- f = i(...l2);
15692
+ h2 = i(...l2);
15693
15693
  } catch (b2) {
15694
- f = b2;
15694
+ h2 = b2;
15695
15695
  }
15696
- if (f instanceof Error) {
15697
- if (r2.value = f, o = f, n)
15698
- throw p(), f;
15696
+ if (h2 instanceof Error) {
15697
+ if (r2.value = h2, o = h2, n)
15698
+ throw p(), h2;
15699
15699
  } else
15700
15700
  s.value = true, r2.value = void 0, o = true, p();
15701
15701
  }
15702
15702
  }), C2 = () => {
15703
- }, d = new Proxy(
15703
+ }, m2 = new Proxy(
15704
15704
  (i) => {
15705
15705
  r2.value = i;
15706
15706
  },
@@ -15721,20 +15721,20 @@ function Et(e, n = true, t = false) {
15721
15721
  }
15722
15722
  let l2;
15723
15723
  t && (l2 = setTimeout(() => {
15724
- const f = new Error("timeout!");
15725
- r2.value = f, n && a(f);
15724
+ const h2 = new Error("timeout!");
15725
+ r2.value = h2, n && a(h2);
15726
15726
  }, t)), p = () => {
15727
15727
  l2 && (clearTimeout(l2), l2 = void 0), i();
15728
15728
  };
15729
15729
  }),
15730
15730
  callback: _,
15731
- onError: d,
15731
+ onError: m2,
15732
15732
  resolved: Ke(() => s.value),
15733
15733
  error: Ke(() => r2.value)
15734
15734
  };
15735
15735
  }
15736
15736
  function Be() {
15737
- return jt();
15737
+ return Et2();
15738
15738
  }
15739
15739
  function At2() {
15740
15740
  const e = {}, n = {}, t = /* @__PURE__ */ new WeakMap(), r2 = {};
@@ -15808,15 +15808,15 @@ function At2() {
15808
15808
  function St(e) {
15809
15809
  return At2();
15810
15810
  }
15811
- function It2(e) {
15812
- const n = Ot2(e);
15811
+ function It(e) {
15812
+ const n = Ot(e);
15813
15813
  return fe2({
15814
15814
  states: n.states,
15815
15815
  commands: n.commands,
15816
15816
  events: n.events
15817
15817
  });
15818
15818
  }
15819
- function Ot2(e) {
15819
+ function Ot(e) {
15820
15820
  const n = e.states;
15821
15821
  for (const p of Object.keys(e.states))
15822
15822
  n[p] = ve(n[p]);
@@ -15830,13 +15830,13 @@ function Ot2(e) {
15830
15830
  destroy: e.destroy
15831
15831
  });
15832
15832
  }
15833
- function Tt(e) {
15833
+ function xt(e) {
15834
15834
  const {
15835
15835
  callback: n,
15836
15836
  onError: t,
15837
15837
  promise: r2,
15838
15838
  resolved: o
15839
- } = Et(() => {
15839
+ } = jt(() => {
15840
15840
  }, false, 5e3);
15841
15841
  function s(a) {
15842
15842
  if (o.value === true)
@@ -15859,13 +15859,13 @@ function Tt(e) {
15859
15859
  }),
15860
15860
  0
15861
15861
  );
15862
- const C2 = _.states || {}, d = _.commands || {}, i = _.events || {};
15862
+ const C2 = _.states || {}, m2 = _.commands || {}, i = _.events || {};
15863
15863
  return {
15864
15864
  __id: Be(),
15865
15865
  type: "Singleton",
15866
- api: It2({
15866
+ api: It({
15867
15867
  states: C2,
15868
- commands: d,
15868
+ commands: m2,
15869
15869
  events: i,
15870
15870
  destroy: () => {
15871
15871
  }
@@ -15880,10 +15880,10 @@ Stack : ${a.stack || "unkown"}`);
15880
15880
  };
15881
15881
  }
15882
15882
  var me;
15883
- function xt2(e) {
15884
- return Tt(() => {
15883
+ function Tt2(e) {
15884
+ return xt(() => {
15885
15885
  const n = ge2(e), t = ge2({});
15886
- let r2 = () => [], o = () => [], s = () => [], p = () => [], _ = () => [], C2 = () => [], d = () => [];
15886
+ let r2 = () => [], o = () => [], s = () => [], p = () => [], _ = () => [], C2 = () => [], m2 = () => [];
15887
15887
  return {
15888
15888
  states: {
15889
15889
  designer: n,
@@ -15891,7 +15891,7 @@ function xt2(e) {
15891
15891
  },
15892
15892
  commands: {
15893
15893
  genCodeFiles() {
15894
- return d();
15894
+ return m2();
15895
15895
  },
15896
15896
  clearCaches() {
15897
15897
  },
@@ -15938,7 +15938,7 @@ function xt2(e) {
15938
15938
  C2 = i;
15939
15939
  },
15940
15940
  _setCodeFileProvider(i) {
15941
- d = i;
15941
+ m2 = i;
15942
15942
  }
15943
15943
  }
15944
15944
  };
@@ -15949,11 +15949,11 @@ function Ao(e) {
15949
15949
  if (!me) {
15950
15950
  if (!e)
15951
15951
  throw new Error("designer is required");
15952
- me = xt2(e), le2.registerAgg(me);
15952
+ me = Tt2(e), le2.registerAgg(me);
15953
15953
  }
15954
15954
  return me.api;
15955
15955
  }
15956
- function Ee(e) {
15956
+ function je(e) {
15957
15957
  return e && e._attributes && e._attributes.rule === "Info";
15958
15958
  }
15959
15959
  function kt(e) {
@@ -15962,24 +15962,24 @@ function kt(e) {
15962
15962
  function Dt(e) {
15963
15963
  return e && e._attributes && e._attributes.rule === "Command";
15964
15964
  }
15965
- function Ft2(e) {
15965
+ function Pt2(e) {
15966
15966
  return e && e._attributes && e._attributes.rule === "FacadeCommand";
15967
15967
  }
15968
- function Pt(e) {
15968
+ function Ft2(e) {
15969
15969
  return e && e._attributes && e._attributes.rule === "Event";
15970
15970
  }
15971
- function Vt(e) {
15971
+ function Vt2(e) {
15972
15972
  return e && e._attributes && e._attributes.rule === "ReadModel";
15973
15973
  }
15974
- var Ge = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
15974
+ var Ue = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
15975
15975
  process.env.NODE_ENV !== "production" && Object.freeze([]);
15976
- var Rt2 = () => {
15976
+ var Rt = () => {
15977
15977
  };
15978
15978
  var Ht2 = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
15979
15979
  (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
15980
15980
  var Ae2 = Object.assign;
15981
15981
  var k2 = Array.isArray;
15982
- var z = (e) => typeof e == "function";
15982
+ var G = (e) => typeof e == "function";
15983
15983
  var L2 = (e) => typeof e == "string";
15984
15984
  var Lt2 = (e) => typeof e == "symbol";
15985
15985
  var B2 = (e) => e !== null && typeof e == "object";
@@ -15989,7 +15989,7 @@ function tn2(e) {
15989
15989
  if (k2(e)) {
15990
15990
  const n = {};
15991
15991
  for (let t = 0; t < e.length; t++) {
15992
- const r2 = e[t], o = L2(r2) ? Gt(r2) : tn2(r2);
15992
+ const r2 = e[t], o = L2(r2) ? Ut(r2) : tn2(r2);
15993
15993
  if (o)
15994
15994
  for (const s in o)
15995
15995
  n[s] = o[s];
@@ -16001,7 +16001,7 @@ function tn2(e) {
16001
16001
  var Mt2 = /;(?![^(]*\))/g;
16002
16002
  var Kt = /:([^]+)/;
16003
16003
  var Bt = /\/\*[^]*?\*\//g;
16004
- function Gt(e) {
16004
+ function Ut(e) {
16005
16005
  const n = {};
16006
16006
  return e.replace(Bt, "").split(Mt2).forEach((t) => {
16007
16007
  if (t) {
@@ -16036,37 +16036,37 @@ Symbol(
16036
16036
  new Set(
16037
16037
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Lt2)
16038
16038
  );
16039
- function En2(e) {
16040
- return Ue(e) ? En2(e.__v_raw) : !!(e && e.__v_isReactive);
16039
+ function jn(e) {
16040
+ return ze(e) ? jn(e.__v_raw) : !!(e && e.__v_isReactive);
16041
16041
  }
16042
- function Ue(e) {
16042
+ function ze(e) {
16043
16043
  return !!(e && e.__v_isReadonly);
16044
16044
  }
16045
- function Te(e) {
16045
+ function xe2(e) {
16046
16046
  return !!(e && e.__v_isShallow);
16047
16047
  }
16048
- function ze(e) {
16048
+ function Ge(e) {
16049
16049
  return e ? !!e.__v_raw : false;
16050
16050
  }
16051
- function G(e) {
16051
+ function U(e) {
16052
16052
  const n = e && e.__v_raw;
16053
- return n ? G(n) : e;
16053
+ return n ? U(n) : e;
16054
16054
  }
16055
16055
  function sn2(e) {
16056
16056
  return e ? e.__v_isRef === true : false;
16057
16057
  }
16058
- var U = [];
16059
- function Ut(e) {
16060
- U.push(e);
16058
+ var z = [];
16059
+ function zt(e) {
16060
+ z.push(e);
16061
16061
  }
16062
- function zt() {
16063
- U.pop();
16062
+ function Gt() {
16063
+ z.pop();
16064
16064
  }
16065
- var xe2 = false;
16065
+ var Te = false;
16066
16066
  function ie2(e, ...n) {
16067
- if (xe2) return;
16068
- xe2 = true;
16069
- const t = U.length ? U[U.length - 1].component : null, r2 = t && t.appContext.config.warnHandler, o = Jt();
16067
+ if (Te) return;
16068
+ Te = true;
16069
+ const t = z.length ? z[z.length - 1].component : null, r2 = t && t.appContext.config.warnHandler, o = Jt();
16070
16070
  if (r2)
16071
16071
  rn2(
16072
16072
  r2,
@@ -16091,10 +16091,10 @@ function ie2(e, ...n) {
16091
16091
  o.length && s.push(`
16092
16092
  `, ...Wt(o));
16093
16093
  }
16094
- xe2 = false;
16094
+ Te = false;
16095
16095
  }
16096
16096
  function Jt() {
16097
- let e = U[U.length - 1];
16097
+ let e = z[z.length - 1];
16098
16098
  if (!e)
16099
16099
  return [];
16100
16100
  const n = [];
@@ -16131,7 +16131,7 @@ function qt2(e) {
16131
16131
  }), t.length > 3 && n.push(" ..."), n;
16132
16132
  }
16133
16133
  function An2(e, n, t) {
16134
- return L2(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : sn2(n) ? (n = An2(e, G(n.value), true), t ? n : [`${e}=Ref<`, n, ">"]) : z(n) ? [`${e}=fn${n.name ? `<${n.name}>` : ""}`] : (n = G(n), t ? n : [`${e}=`, n]);
16134
+ return L2(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : sn2(n) ? (n = An2(e, U(n.value), true), t ? n : [`${e}=Ref<`, n, ">"]) : G(n) ? [`${e}=fn${n.name ? `<${n.name}>` : ""}`] : (n = U(n), t ? n : [`${e}=`, n]);
16135
16135
  }
16136
16136
  var Sn2 = {
16137
16137
  sp: "serverPrefetch hook",
@@ -16174,15 +16174,15 @@ function rn2(e, n, t, r2) {
16174
16174
  }
16175
16175
  }
16176
16176
  function In2(e, n, t, r2 = true) {
16177
- const o = n ? n.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: p } = n && n.appContext.config || Ge;
16177
+ const o = n ? n.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: p } = n && n.appContext.config || Ue;
16178
16178
  if (n) {
16179
16179
  let _ = n.parent;
16180
- const C2 = n.proxy, d = process.env.NODE_ENV !== "production" ? Sn2[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
16180
+ const C2 = n.proxy, m2 = process.env.NODE_ENV !== "production" ? Sn2[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
16181
16181
  for (; _; ) {
16182
16182
  const i = _.ec;
16183
16183
  if (i) {
16184
16184
  for (let a = 0; a < i.length; a++)
16185
- if (i[a](e, C2, d) === false)
16185
+ if (i[a](e, C2, m2) === false)
16186
16186
  return;
16187
16187
  }
16188
16188
  _ = _.parent;
@@ -16191,7 +16191,7 @@ function In2(e, n, t, r2 = true) {
16191
16191
  rn2(s, null, 10, [
16192
16192
  e,
16193
16193
  C2,
16194
- d
16194
+ m2
16195
16195
  ]);
16196
16196
  return;
16197
16197
  }
@@ -16201,63 +16201,63 @@ function In2(e, n, t, r2 = true) {
16201
16201
  function Zt(e, n, t, r2 = true, o = false) {
16202
16202
  if (process.env.NODE_ENV !== "production") {
16203
16203
  const s = Sn2[n];
16204
- if (t && Ut(t), ie2(`Unhandled error${s ? ` during execution of ${s}` : ""}`), t && zt(), r2)
16204
+ if (t && zt(t), ie2(`Unhandled error${s ? ` during execution of ${s}` : ""}`), t && Gt(), r2)
16205
16205
  throw e;
16206
16206
  } else if (o)
16207
16207
  throw e;
16208
16208
  }
16209
- var x2 = [];
16210
- var F3 = -1;
16209
+ var T = [];
16210
+ var P3 = -1;
16211
16211
  var Q2 = [];
16212
- var P3 = null;
16212
+ var F3 = null;
16213
16213
  var W2 = 0;
16214
16214
  var Qt = /* @__PURE__ */ Promise.resolve();
16215
16215
  var Je = null;
16216
16216
  var Xt = 100;
16217
16217
  function eo(e) {
16218
- let n = F3 + 1, t = x2.length;
16218
+ let n = P3 + 1, t = T.length;
16219
16219
  for (; n < t; ) {
16220
- const r2 = n + t >>> 1, o = x2[r2], s = ce2(o);
16220
+ const r2 = n + t >>> 1, o = T[r2], s = ce2(o);
16221
16221
  s < e || s === e && o.flags & 2 ? n = r2 + 1 : t = r2;
16222
16222
  }
16223
16223
  return n;
16224
16224
  }
16225
16225
  function no(e) {
16226
16226
  if (!(e.flags & 1)) {
16227
- const n = ce2(e), t = x2[x2.length - 1];
16227
+ const n = ce2(e), t = T[T.length - 1];
16228
16228
  !t || // fast path when the job id is larger than the tail
16229
- !(e.flags & 2) && n >= ce2(t) ? x2.push(e) : x2.splice(eo(n), 0, e), e.flags |= 1, On2();
16229
+ !(e.flags & 2) && n >= ce2(t) ? T.push(e) : T.splice(eo(n), 0, e), e.flags |= 1, On2();
16230
16230
  }
16231
16231
  }
16232
16232
  function On2() {
16233
- Je || (Je = Qt.then(Tn2));
16233
+ Je || (Je = Qt.then(xn2));
16234
16234
  }
16235
16235
  function to(e) {
16236
- k2(e) ? Q2.push(...e) : P3 && e.id === -1 ? P3.splice(W2 + 1, 0, e) : e.flags & 1 || (Q2.push(e), e.flags |= 1), On2();
16236
+ k2(e) ? Q2.push(...e) : F3 && e.id === -1 ? F3.splice(W2 + 1, 0, e) : e.flags & 1 || (Q2.push(e), e.flags |= 1), On2();
16237
16237
  }
16238
16238
  function oo(e) {
16239
16239
  if (Q2.length) {
16240
16240
  const n = [...new Set(Q2)].sort(
16241
16241
  (t, r2) => ce2(t) - ce2(r2)
16242
16242
  );
16243
- if (Q2.length = 0, P3) {
16244
- P3.push(...n);
16243
+ if (Q2.length = 0, F3) {
16244
+ F3.push(...n);
16245
16245
  return;
16246
16246
  }
16247
- for (P3 = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), W2 = 0; W2 < P3.length; W2++) {
16248
- const t = P3[W2];
16249
- process.env.NODE_ENV !== "production" && xn2(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
16247
+ for (F3 = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), W2 = 0; W2 < F3.length; W2++) {
16248
+ const t = F3[W2];
16249
+ process.env.NODE_ENV !== "production" && Tn2(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
16250
16250
  }
16251
- P3 = null, W2 = 0;
16251
+ F3 = null, W2 = 0;
16252
16252
  }
16253
16253
  }
16254
16254
  var ce2 = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
16255
- function Tn2(e) {
16255
+ function xn2(e) {
16256
16256
  process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
16257
- const n = process.env.NODE_ENV !== "production" ? (t) => xn2(e, t) : Rt2;
16257
+ const n = process.env.NODE_ENV !== "production" ? (t) => Tn2(e, t) : Rt;
16258
16258
  try {
16259
- for (F3 = 0; F3 < x2.length; F3++) {
16260
- const t = x2[F3];
16259
+ for (P3 = 0; P3 < T.length; P3++) {
16260
+ const t = T[P3];
16261
16261
  if (t && !(t.flags & 8)) {
16262
16262
  if (process.env.NODE_ENV !== "production" && n(t))
16263
16263
  continue;
@@ -16269,14 +16269,14 @@ function Tn2(e) {
16269
16269
  }
16270
16270
  }
16271
16271
  } finally {
16272
- for (; F3 < x2.length; F3++) {
16273
- const t = x2[F3];
16272
+ for (; P3 < T.length; P3++) {
16273
+ const t = T[P3];
16274
16274
  t && (t.flags &= -2);
16275
16275
  }
16276
- F3 = -1, x2.length = 0, oo(e), Je = null, (x2.length || Q2.length) && Tn2(e);
16276
+ P3 = -1, T.length = 0, oo(e), Je = null, (T.length || Q2.length) && xn2(e);
16277
16277
  }
16278
16278
  }
16279
- function xn2(e, n) {
16279
+ function Tn2(e, n) {
16280
16280
  const t = e.get(n) || 0;
16281
16281
  if (t > Xt) {
16282
16282
  const r2 = n.i, o = r2 && Hn(r2.type);
@@ -16352,7 +16352,7 @@ process.env.NODE_ENV;
16352
16352
  var lo = {};
16353
16353
  var Dn2 = (e) => Object.getPrototypeOf(e) === lo;
16354
16354
  var po = (e) => e.__isSuspense;
16355
- var Fn2 = Symbol.for("v-fgt");
16355
+ var Pn = Symbol.for("v-fgt");
16356
16356
  var mo = Symbol.for("v-txt");
16357
16357
  var fo = Symbol.for("v-cmt");
16358
16358
  function ho(e) {
@@ -16361,19 +16361,19 @@ function ho(e) {
16361
16361
  var vo = (...e) => Vn2(
16362
16362
  ...e
16363
16363
  );
16364
- var Pn = ({ key: e }) => e ?? null;
16364
+ var Fn2 = ({ key: e }) => e ?? null;
16365
16365
  var he2 = ({
16366
16366
  ref: e,
16367
16367
  ref_key: n,
16368
16368
  ref_for: t
16369
- }) => (typeof e == "number" && (e = "" + e), e != null ? L2(e) || sn2(e) || z(e) ? { i: $e2, r: e, k: n, f: !!t } : e : null);
16370
- function go(e, n = null, t = null, r2 = 0, o = null, s = e === Fn2 ? 0 : 1, p = false, _ = false) {
16369
+ }) => (typeof e == "number" && (e = "" + e), e != null ? L2(e) || sn2(e) || G(e) ? { i: $e2, r: e, k: n, f: !!t } : e : null);
16370
+ function go(e, n = null, t = null, r2 = 0, o = null, s = e === Pn ? 0 : 1, p = false, _ = false) {
16371
16371
  const C2 = {
16372
16372
  __v_isVNode: true,
16373
16373
  __v_skip: true,
16374
16374
  type: e,
16375
16375
  props: n,
16376
- key: n && Pn(n),
16376
+ key: n && Fn2(n),
16377
16377
  ref: n && he2(n),
16378
16378
  scopeId: io,
16379
16379
  slotScopeIds: null,
@@ -16413,10 +16413,10 @@ function Vn2(e, n = null, t = null, r2 = 0, o = null, s = false) {
16413
16413
  if (Mn2(e) && (e = e.__vccOpts), n) {
16414
16414
  n = Co(n);
16415
16415
  let { class: _, style: C2 } = n;
16416
- _ && !L2(_) && (n.class = on2(_)), B2(C2) && (ze(C2) && !k2(C2) && (C2 = Ae2({}, C2)), n.style = tn2(C2));
16416
+ _ && !L2(_) && (n.class = on2(_)), B2(C2) && (Ge(C2) && !k2(C2) && (C2 = Ae2({}, C2)), n.style = tn2(C2));
16417
16417
  }
16418
- const p = L2(e) ? 1 : po(e) ? 128 : co(e) ? 64 : B2(e) ? 4 : z(e) ? 2 : 0;
16419
- return process.env.NODE_ENV !== "production" && p & 4 && ze(e) && (e = G(e), ie2(
16418
+ const p = L2(e) ? 1 : po(e) ? 128 : co(e) ? 64 : B2(e) ? 4 : G(e) ? 2 : 0;
16419
+ return process.env.NODE_ENV !== "production" && p & 4 && Ge(e) && (e = U(e), ie2(
16420
16420
  "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`.",
16421
16421
  `
16422
16422
  Component that was made reactive: `,
@@ -16433,15 +16433,15 @@ Component that was made reactive: `,
16433
16433
  );
16434
16434
  }
16435
16435
  function Co(e) {
16436
- return e ? ze(e) || Dn2(e) ? Ae2({}, e) : e : null;
16436
+ return e ? Ge(e) || Dn2(e) ? Ae2({}, e) : e : null;
16437
16437
  }
16438
16438
  function be2(e, n, t = false, r2 = false) {
16439
- const { props: o, ref: s, patchFlag: p, children: _, transition: C2 } = e, d = n ? bo(o || {}, n) : o, i = {
16439
+ const { props: o, ref: s, patchFlag: p, children: _, transition: C2 } = e, m2 = n ? bo(o || {}, n) : o, i = {
16440
16440
  __v_isVNode: true,
16441
16441
  __v_skip: true,
16442
16442
  type: e.type,
16443
- props: d,
16444
- key: d && Pn(d),
16443
+ props: m2,
16444
+ key: m2 && Fn2(m2),
16445
16445
  ref: n && n.ref ? (
16446
16446
  // #2078 in the case of <component :is="vnode" ref="extra"/>
16447
16447
  // if the vnode itself already has a ref, cloneVNode will need to merge
@@ -16460,7 +16460,7 @@ function be2(e, n, t = false, r2 = false) {
16460
16460
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
16461
16461
  // note: preserve flag for fragments since they use the flag for children
16462
16462
  // fast paths only.
16463
- patchFlag: n && e.type !== Fn2 ? p === -1 ? 16 : p | 16 : p,
16463
+ patchFlag: n && e.type !== Pn ? p === -1 ? 16 : p | 16 : p,
16464
16464
  dynamicProps: e.dynamicProps,
16465
16465
  dynamicChildren: e.dynamicChildren,
16466
16466
  appContext: e.appContext,
@@ -16505,7 +16505,7 @@ function an2(e, n) {
16505
16505
  return;
16506
16506
  } else
16507
16507
  t = 32, !n._ && !Dn2(n) && (n._ctx = $e2);
16508
- else z(n) ? (n = { default: n, _ctx: $e2 }, t = 32) : (n = String(n), r2 & 64 ? (t = 16, n = [$o(n)]) : t = 8);
16508
+ else G(n) ? (n = { default: n, _ctx: $e2 }, t = 32) : (n = String(n), r2 & 64 ? (t = 16, n = [$o(n)]) : t = 8);
16509
16509
  e.children = n, e.shapeFlag |= t;
16510
16510
  }
16511
16511
  function bo(...e) {
@@ -16540,10 +16540,10 @@ function bo(...e) {
16540
16540
  );
16541
16541
  }
16542
16542
  process.env.NODE_ENV;
16543
- var wo = /(?:^|[-_])(\w)/g;
16544
- var No = (e) => e.replace(wo, (n) => n.toUpperCase()).replace(/[-_]/g, "");
16543
+ var No = /(?:^|[-_])(\w)/g;
16544
+ var wo = (e) => e.replace(No, (n) => n.toUpperCase()).replace(/[-_]/g, "");
16545
16545
  function Hn(e, n = true) {
16546
- return z(e) ? e.displayName || e.name : e.name || n && e.__name;
16546
+ return G(e) ? e.displayName || e.name : e.name || n && e.__name;
16547
16547
  }
16548
16548
  function Ln(e, n, t = false) {
16549
16549
  let r2 = Hn(n);
@@ -16561,10 +16561,10 @@ function Ln(e, n, t = false) {
16561
16561
  e.components || e.parent.type.components
16562
16562
  ) || o(e.appContext.components);
16563
16563
  }
16564
- return r2 ? No(r2) : t ? "App" : "Anonymous";
16564
+ return r2 ? wo(r2) : t ? "App" : "Anonymous";
16565
16565
  }
16566
16566
  function Mn2(e) {
16567
- return z(e) && "__vccOpts" in e;
16567
+ return G(e) && "__vccOpts" in e;
16568
16568
  }
16569
16569
  function yo() {
16570
16570
  if (process.env.NODE_ENV === "production" || typeof window > "u")
@@ -16580,17 +16580,17 @@ function yo() {
16580
16580
  // avoid debugger accessing value affecting behavior
16581
16581
  _("_value" in a ? a._value : a),
16582
16582
  ">"
16583
- ] : En2(a) ? [
16583
+ ] : jn(a) ? [
16584
16584
  "div",
16585
16585
  {},
16586
- ["span", e, Te(a) ? "ShallowReactive" : "Reactive"],
16586
+ ["span", e, xe2(a) ? "ShallowReactive" : "Reactive"],
16587
16587
  "<",
16588
16588
  _(a),
16589
- `>${Ue(a) ? " (readonly)" : ""}`
16590
- ] : Ue(a) ? [
16589
+ `>${ze(a) ? " (readonly)" : ""}`
16590
+ ] : ze(a) ? [
16591
16591
  "div",
16592
16592
  {},
16593
- ["span", e, Te(a) ? "ShallowReadonly" : "Readonly"],
16593
+ ["span", e, xe2(a) ? "ShallowReadonly" : "Readonly"],
16594
16594
  "<",
16595
16595
  _(a),
16596
16596
  ">"
@@ -16610,9 +16610,9 @@ function yo() {
16610
16610
  };
16611
16611
  function s(a) {
16612
16612
  const l2 = [];
16613
- a.type.props && a.props && l2.push(p("props", G(a.props))), a.setupState !== Ge && l2.push(p("setup", a.setupState)), a.data !== Ge && l2.push(p("data", G(a.data)));
16614
- const f = C2(a, "computed");
16615
- f && l2.push(p("computed", f));
16613
+ a.type.props && a.props && l2.push(p("props", U(a.props))), a.setupState !== Ue && l2.push(p("setup", a.setupState)), a.data !== Ue && l2.push(p("data", U(a.data)));
16614
+ const h2 = C2(a, "computed");
16615
+ h2 && l2.push(p("computed", h2));
16616
16616
  const b2 = C2(a, "inject");
16617
16617
  return b2 && l2.push(p("injected", b2)), l2.push([
16618
16618
  "div",
@@ -16643,46 +16643,46 @@ function yo() {
16643
16643
  {
16644
16644
  style: "padding-left:1.25em"
16645
16645
  },
16646
- ...Object.keys(l2).map((f) => [
16646
+ ...Object.keys(l2).map((h2) => [
16647
16647
  "div",
16648
16648
  {},
16649
- ["span", r2, f + ": "],
16650
- _(l2[f], false)
16649
+ ["span", r2, h2 + ": "],
16650
+ _(l2[h2], false)
16651
16651
  ])
16652
16652
  ]
16653
16653
  ] : ["span", {}];
16654
16654
  }
16655
16655
  function _(a, l2 = true) {
16656
- return typeof a == "number" ? ["span", n, a] : typeof a == "string" ? ["span", t, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r2, a] : B2(a) ? ["object", { object: l2 ? G(a) : a }] : ["span", t, String(a)];
16656
+ return typeof a == "number" ? ["span", n, a] : typeof a == "string" ? ["span", t, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r2, a] : B2(a) ? ["object", { object: l2 ? U(a) : a }] : ["span", t, String(a)];
16657
16657
  }
16658
16658
  function C2(a, l2) {
16659
- const f = a.type;
16660
- if (z(f))
16659
+ const h2 = a.type;
16660
+ if (G(h2))
16661
16661
  return;
16662
16662
  const b2 = {};
16663
16663
  for (const g2 in a.ctx)
16664
- d(f, g2, l2) && (b2[g2] = a.ctx[g2]);
16664
+ m2(h2, g2, l2) && (b2[g2] = a.ctx[g2]);
16665
16665
  return b2;
16666
16666
  }
16667
- function d(a, l2, f) {
16668
- const b2 = a[f];
16669
- if (k2(b2) && b2.includes(l2) || B2(b2) && l2 in b2 || a.extends && d(a.extends, l2, f) || a.mixins && a.mixins.some((g2) => d(g2, l2, f)))
16667
+ function m2(a, l2, h2) {
16668
+ const b2 = a[h2];
16669
+ if (k2(b2) && b2.includes(l2) || B2(b2) && l2 in b2 || a.extends && m2(a.extends, l2, h2) || a.mixins && a.mixins.some((g2) => m2(g2, l2, h2)))
16670
16670
  return true;
16671
16671
  }
16672
16672
  function i(a) {
16673
- return Te(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
16673
+ return xe2(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
16674
16674
  }
16675
16675
  window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
16676
16676
  }
16677
16677
  process.env.NODE_ENV;
16678
16678
  process.env.NODE_ENV;
16679
16679
  process.env.NODE_ENV;
16680
- function jo() {
16680
+ function Eo() {
16681
16681
  yo();
16682
16682
  }
16683
- process.env.NODE_ENV !== "production" && jo();
16684
- function Eo(e) {
16685
- return Dt(e) || Ft2(e) || kt(e) || Pt(e) || Vt(e);
16683
+ process.env.NODE_ENV !== "production" && Eo();
16684
+ function jo(e) {
16685
+ return Dt(e) || Pt2(e) || kt(e) || Ft2(e) || Vt2(e);
16686
16686
  }
16687
16687
  var Kn = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(Kn || {});
16688
16688
  var S2 = class {
@@ -16726,20 +16726,20 @@ var S2 = class {
16726
16726
  this.parentDir = n;
16727
16727
  }
16728
16728
  };
16729
- var we;
16729
+ var Ne;
16730
16730
  ((e) => {
16731
16731
  ((n) => {
16732
16732
  n.Lombok = "Lombok", n.LombokBuilder = "LombokBuilder", n.RecordValueObject = "RecordValueObject", n.CommandHandler = "CommandHandler", n.Jpa = "Jpa", n.Timezone = "Timezone", n.SpringFramework = "SpringFramework";
16733
16733
  })(e.JavaGeneratorAddition || (e.JavaGeneratorAddition = {})), ((n) => {
16734
16734
  n.TABLE = "TABLE", n.SEQUENCE = "SEQUENCE", n.IDENTITY = "IDENTITY", n.UUID = "UUID", n.AUTO = "AUTO";
16735
16735
  })(e.IdGenStrategy || (e.IdGenStrategy = {}));
16736
- })(we || (we = {}));
16737
- var Ne;
16736
+ })(Ne || (Ne = {}));
16737
+ var we;
16738
16738
  ((e) => {
16739
16739
  ((n) => {
16740
16740
  n.ValueClass = "ValueClass", n.CommandHandler = "CommandHandler", n.Timezone = "Timezone";
16741
16741
  })(e.KotlinGeneratorAddition || (e.KotlinGeneratorAddition = {}));
16742
- })(Ne || (Ne = {}));
16742
+ })(we || (we = {}));
16743
16743
  var ye;
16744
16744
  ((e) => {
16745
16745
  ((n) => {
@@ -16762,95 +16762,95 @@ var So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16762
16762
  get go() {
16763
16763
  return We;
16764
16764
  },
16765
- isStruct: Eo,
16765
+ isStruct: jo,
16766
16766
  get java() {
16767
- return we;
16767
+ return Ne;
16768
16768
  },
16769
16769
  get kotlin() {
16770
- return Ne;
16770
+ return we;
16771
16771
  }
16772
16772
  }, Symbol.toStringTag, { value: "Module" }));
16773
- var N2;
16773
+ var w2;
16774
16774
  ((e) => {
16775
- function n(d) {
16776
- return d.trim().split(d.includes("_") || d.includes("-") || d.includes(" ") ? /_|\s|-/ : /(?=[A-Z])/g).map((i) => i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
16775
+ function n(m2) {
16776
+ return m2.trim().split(m2.includes("_") || m2.includes("-") || m2.includes(" ") ? /_|\s|-/ : /(?=[A-Z])/g).map((i) => i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
16777
16777
  }
16778
16778
  e.stringToUpperCamel = n;
16779
- function t(d) {
16779
+ function t(m2) {
16780
16780
  let i = true;
16781
- return d.trim().split(d.includes("_") || d.includes("-") || d.includes(" ") ? /_|\s|-/ : /(?=[A-Z])/g).map((a) => i ? (i = false, a.toLowerCase()) : a.charAt(0).toUpperCase() + a.toLowerCase().slice(1)).join("");
16781
+ return m2.trim().split(m2.includes("_") || m2.includes("-") || m2.includes(" ") ? /_|\s|-/ : /(?=[A-Z])/g).map((a) => i ? (i = false, a.toLowerCase()) : a.charAt(0).toUpperCase() + a.toLowerCase().slice(1)).join("");
16782
16782
  }
16783
16783
  e.stringToLowerCamel = t;
16784
- function r2(d) {
16785
- return d = d.trim(), d.includes("_") ? d.toLowerCase() : d.includes(" ") || d.includes("-") ? d.split(/\s|-/).join("_").toLowerCase() : s(d);
16784
+ function r2(m2) {
16785
+ return m2 = m2.trim(), m2.includes("_") ? m2.toLowerCase() : m2.includes(" ") || m2.includes("-") ? m2.split(/\s|-/).join("_").toLowerCase() : s(m2);
16786
16786
  }
16787
16787
  e.stringToLowerSnake = r2;
16788
- function o(d) {
16789
- return d.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
16788
+ function o(m2) {
16789
+ return m2.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
16790
16790
  }
16791
16791
  e.camelToUpperSnake = o;
16792
- function s(d) {
16793
- return d.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
16792
+ function s(m2) {
16793
+ return m2.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
16794
16794
  }
16795
16795
  e.camelToLowerSnake = s;
16796
- function p(d) {
16797
- return d.trim().split("_").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join("");
16796
+ function p(m2) {
16797
+ return m2.trim().split("_").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join("");
16798
16798
  }
16799
16799
  e.snakeToUpperCamel = p;
16800
- function _(d) {
16801
- return d.trim().charAt(0).toLowerCase() + d.slice(1);
16800
+ function _(m2) {
16801
+ return m2.trim().charAt(0).toLowerCase() + m2.slice(1);
16802
16802
  }
16803
16803
  e.lowerFirst = _;
16804
- function C2(d) {
16805
- return d.trim().charAt(0).toUpperCase() + d.slice(1);
16804
+ function C2(m2) {
16805
+ return m2.trim().charAt(0).toUpperCase() + m2.slice(1);
16806
16806
  }
16807
16807
  e.upperFirst = C2;
16808
- })(N2 || (N2 = {}));
16809
- var j3 = we.JavaGeneratorAddition;
16808
+ })(w2 || (w2 = {}));
16809
+ var E2 = Ne.JavaGeneratorAddition;
16810
16810
  var Io = le2.createHotSwapPlugin(() => {
16811
16811
  const e = "value", n = "command", t = "event";
16812
16812
  function r2(o) {
16813
- return N2.stringToUpperCamel(o._attributes.name);
16813
+ return w2.stringToUpperCamel(o._attributes.name);
16814
16814
  }
16815
16815
  return {
16816
16816
  unmount({ api: o }) {
16817
16817
  o.commands.clearCaches(), o.commands._setCommandCodeProvider(() => []), o.commands._setFacadeCommandCodeProvider(() => []), o.commands._setAggCodeProvider(() => []), o.commands._setEventCodeProvider(() => []), o.commands._setReadModelCodeProvider(() => []), o.commands._setCodeFileProvider(() => []), o.commands.setContext({});
16818
16818
  },
16819
16819
  mount({ api: o }) {
16820
- const s = o.states.context, p = o.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((a) => N2.stringToLowerCamel(a));
16820
+ const s = o.states.context, p = o.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((a) => w2.stringToLowerCamel(a));
16821
16821
  function _(a) {
16822
- return !p.includes(N2.stringToLowerCamel(a._attributes.name));
16822
+ return !p.includes(w2.stringToLowerCamel(a._attributes.name));
16823
16823
  }
16824
16824
  function C2(a, l2) {
16825
- return _(l2) ? N2.stringToUpperCamel(l2._attributes.name) : i(a, l2);
16825
+ return _(l2) ? w2.stringToUpperCamel(l2._attributes.name) : i(a, l2);
16826
16826
  }
16827
- function d(a, l2) {
16828
- for (const f of l2) {
16829
- if (!_(f)) {
16830
- i(a, f);
16827
+ function m2(a, l2) {
16828
+ for (const h2 of l2) {
16829
+ if (!_(h2)) {
16830
+ i(a, h2);
16831
16831
  continue;
16832
16832
  }
16833
16833
  a.add(
16834
- `${s.value.namespace}.${s.value.moduleName}.${e}.${r2(f)}`
16834
+ `${s.value.namespace}.${s.value.moduleName}.${e}.${r2(h2)}`
16835
16835
  );
16836
16836
  }
16837
16837
  }
16838
16838
  function i(a, l2) {
16839
- const f = s.value.additions, b2 = N2.stringToLowerSnake(l2._attributes.name).replace(/_/, " ");
16840
- return /\b(time|timestamp|date|deadline|expire)\b/.test(b2) ? f.has(j3.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(b2) ? "Integer" : /\b(price)$/.test(b2) ? (a.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(b2) ? "Boolean" : Ee(l2) && (l2._attributes.type === "Id" || l2._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(b2)) ? "Long" : "String";
16839
+ const h2 = s.value.additions, b2 = w2.stringToLowerSnake(l2._attributes.name).replace(/_/, " ");
16840
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(b2) ? h2.has(E2.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(b2) ? "Integer" : /\b(price)$/.test(b2) ? (a.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(b2) ? "Boolean" : je(l2) && (l2._attributes.type === "Id" || l2._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(b2)) ? "Long" : "String";
16841
16841
  }
16842
16842
  o.commands._setInfoCodeProvider(
16843
16843
  (a) => {
16844
16844
  const l2 = /* @__PURE__ */ new Set();
16845
16845
  l2.add(s.value.nonNullAnnotation);
16846
- const f = s.value.nonNullAnnotation.split(".").pop(), b2 = r2(a), g2 = s.value.additions, u = [];
16847
- return g2.has(j3.RecordValueObject) ? (g2.has(j3.Jpa) && (l2.add(
16846
+ const h2 = s.value.nonNullAnnotation.split(".").pop(), b2 = r2(a), g2 = s.value.additions, u = [];
16847
+ return g2.has(E2.RecordValueObject) ? (g2.has(E2.Jpa) && (l2.add(
16848
16848
  s.value.jdkVersion === "8" ? "javax.persistence.Embeddable" : "jakarta.persistence.Embeddable"
16849
- ), u.push("@Embeddable")), u.push(`public record ${b2}(@${f} ${i(l2, a)} value) {`), u.push(` public ${b2} {`), u.push(" // HACK check value"), u.push(" }"), u.push("}")) : g2.has(j3.Lombok) ? (u.push("@lombok.Getter"), g2.has(j3.Jpa) && (l2.add(
16849
+ ), u.push("@Embeddable")), u.push(`public record ${b2}(@${h2} ${i(l2, a)} value) {`), u.push(` public ${b2} {`), u.push(" // HACK check value"), u.push(" }"), u.push("}")) : g2.has(E2.Lombok) ? (u.push("@lombok.Getter"), g2.has(E2.Jpa) && (l2.add(
16850
16850
  s.value.jdkVersion === "8" ? "javax.persistence.Embeddable" : "jakarta.persistence.Embeddable"
16851
- ), u.push("@Embeddable")), u.push(`public class ${b2} {`), u.push(` private final ${i(l2, a)} value;`), u.push(""), u.push(` public ${b2} (@${f} ${i(l2, a)} value) {`), u.push(" // HACK check value"), u.push(" this.value = value;"), u.push(" }"), u.push("}")) : (g2.has(j3.Jpa) && (l2.add(
16851
+ ), u.push("@Embeddable")), u.push(`public class ${b2} {`), u.push(` private final ${i(l2, a)} value;`), u.push(""), u.push(` public ${b2} (@${h2} ${i(l2, a)} value) {`), u.push(" // HACK check value"), u.push(" this.value = value;"), u.push(" }"), u.push("}")) : (g2.has(E2.Jpa) && (l2.add(
16852
16852
  s.value.jdkVersion === "8" ? "javax.persistence.Embeddable" : "jakarta.persistence.Embeddable"
16853
- ), u.push("@Embeddable")), u.push(`public class ${r2(a)} {`), u.push(` private final ${i(l2, a)} value;`), u.push(""), u.push(` public ${b2} (@${f} ${i(l2, a)} value) {`), u.push(" // HACK check value"), u.push(" this.value = value;"), u.push(" }"), u.push(""), u.push(` public ${i(l2, a)} getValue() {`), u.push(" return this.value;"), u.push(" }"), u.push("}")), [
16853
+ ), u.push("@Embeddable")), u.push(`public class ${r2(a)} {`), u.push(` private final ${i(l2, a)} value;`), u.push(""), u.push(` public ${b2} (@${h2} ${i(l2, a)} value) {`), u.push(" // HACK check value"), u.push(" this.value = value;"), u.push(" }"), u.push(""), u.push(` public ${i(l2, a)} getValue() {`), u.push(" return this.value;"), u.push(" }"), u.push("}")), [
16854
16854
  {
16855
16855
  type: "Info",
16856
16856
  imports: l2,
@@ -16861,277 +16861,281 @@ var Io = le2.createHotSwapPlugin(() => {
16861
16861
  }
16862
16862
  ), o.commands._setCommandCodeProvider(
16863
16863
  (a) => {
16864
- const l2 = [], f = s.value.additions, b2 = s.value.nonNullAnnotation.split(".").pop();
16864
+ const l2 = [], h2 = s.value.additions, b2 = s.value.nonNullAnnotation.split(".").pop();
16865
16865
  {
16866
16866
  const g2 = /* @__PURE__ */ new Set();
16867
16867
  g2.add(s.value.nonNullAnnotation);
16868
- const u = r2(a), v = [], m2 = Object.values(a.inner);
16869
- if (d(g2, m2), f.has(j3.RecordValueObject)) {
16870
- f.has(j3.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public record ${u}(`);
16871
- const $2 = [];
16872
- for (const w2 of m2) {
16873
- const c = r2(w2);
16874
- $2.push(
16868
+ const u = r2(a), $2 = [], v = Object.values(a.inner);
16869
+ if (m2(g2, v), h2.has(E2.RecordValueObject)) {
16870
+ h2.has(E2.LombokBuilder) && $2.push("@lombok.Builder(toBuilder = true)"), $2.push(`public record ${u}(`);
16871
+ const d = [];
16872
+ for (const N2 of v) {
16873
+ const c = r2(N2);
16874
+ d.push(
16875
16875
  ` @${b2}
16876
16876
  ${C2(
16877
16877
  g2,
16878
- w2
16879
- )} ${N2.lowerFirst(c)}`
16878
+ N2
16879
+ )} ${w2.lowerFirst(c)}`
16880
16880
  );
16881
16881
  }
16882
- v.push($2.join(`,
16883
- `)), v.push(") {"), v.push(` public ${u} {`), v.push(" // HACK check value"), v.push(" }"), v.push("}");
16884
- } else if (f.has(j3.Lombok)) {
16885
- v.push("@lombok.AllArgsConstructor"), v.push("@lombok.Getter"), f.has(j3.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public class ${u} {`);
16886
- for (const $2 of m2) {
16887
- const w2 = r2($2);
16888
- v.push(` @${b2}`), v.push(
16889
- ` private final ${C2(g2, $2)} ${N2.lowerFirst(w2)};`
16882
+ $2.push(d.join(`,
16883
+ `)), $2.push(") {"), $2.push(` public ${u} {`), $2.push(" // HACK check value"), $2.push(" }"), $2.push("}");
16884
+ } else if (h2.has(E2.Lombok)) {
16885
+ $2.push("@lombok.AllArgsConstructor"), $2.push("@lombok.Getter"), h2.has(E2.LombokBuilder) && $2.push("@lombok.Builder(toBuilder = true)"), $2.push(`public class ${u} {`);
16886
+ for (const d of v) {
16887
+ const N2 = r2(d);
16888
+ $2.push(` @${b2}`), $2.push(
16889
+ ` private final ${C2(g2, d)} ${w2.lowerFirst(N2)};`
16890
16890
  );
16891
16891
  }
16892
- v.push("}");
16892
+ $2.push("}");
16893
16893
  } else {
16894
- v.push(`public class ${u} {`);
16895
- for (const c of m2) {
16896
- const h2 = r2(c);
16897
- v.push(` @${b2}`), v.push(
16898
- ` private final ${C2(g2, c)} ${N2.lowerFirst(h2)};`
16894
+ $2.push(`public class ${u} {`);
16895
+ for (const c of v) {
16896
+ const f = r2(c);
16897
+ $2.push(` @${b2}`), $2.push(
16898
+ ` private final ${C2(g2, c)} ${w2.lowerFirst(f)};`
16899
16899
  );
16900
16900
  }
16901
- v.push("");
16902
- const $2 = [], w2 = [];
16903
- for (const c of m2) {
16904
- const h2 = r2(c);
16905
- $2.push(
16906
- `@${b2} ${i(g2, c)} ${N2.lowerFirst(h2)}`
16907
- ), w2.push(`this.${N2.lowerFirst(h2)} = ${N2.lowerFirst(h2)};`);
16901
+ $2.push("");
16902
+ const d = [], N2 = [];
16903
+ for (const c of v) {
16904
+ const f = r2(c);
16905
+ d.push(
16906
+ `@${b2} ${i(g2, c)} ${w2.lowerFirst(f)}`
16907
+ ), N2.push(`this.${w2.lowerFirst(f)} = ${w2.lowerFirst(f)};`);
16908
16908
  }
16909
- v.push(` public ${u}(${$2.join(", ")}) {`), v.push(` ${w2.join(`
16910
- `)}`), v.push(" }");
16911
- for (const c of m2) {
16912
- const h2 = r2(c);
16913
- v.push(""), v.push(` public ${C2(g2, c)} get${h2} () {`), v.push(` return this.${N2.lowerFirst(h2)};`), v.push(" }");
16909
+ $2.push(` public ${u}(${d.join(", ")}) {`), $2.push(` ${N2.join(`
16910
+ `)}`), $2.push(" }");
16911
+ for (const c of v) {
16912
+ const f = r2(c);
16913
+ $2.push(""), $2.push(` public ${C2(g2, c)} get${f} () {`), $2.push(` return this.${w2.lowerFirst(f)};`), $2.push(" }");
16914
16914
  }
16915
- v.push("}");
16915
+ $2.push("}");
16916
16916
  }
16917
16917
  l2.push({
16918
16918
  type: "Command",
16919
16919
  imports: g2,
16920
- content: v.join(`
16920
+ content: $2.join(`
16921
16921
  `)
16922
16922
  });
16923
16923
  }
16924
- if (!f.has(j3.CommandHandler))
16924
+ if (!h2.has(E2.CommandHandler))
16925
16925
  return l2;
16926
16926
  {
16927
16927
  const g2 = /* @__PURE__ */ new Set();
16928
16928
  g2.add(s.value.nonNullAnnotation);
16929
- const u = r2(a), v = [];
16930
- f.has(j3.SpringFramework) && (g2.add("org.springframework.stereotype.Component"), v.push("@Component")), f.has(j3.Lombok) && v.push("@lombok.RequiredArgsConstructor"), v.push(`public class ${u}Handler {`);
16931
- const m2 = [...o.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
16932
- ($2) => $2._attributes.rule === "Agg"
16929
+ const u = r2(a), $2 = [];
16930
+ h2.has(E2.SpringFramework) && (g2.add("org.springframework.stereotype.Component"), $2.push("@Component")), h2.has(E2.Lombok) && $2.push("@lombok.RequiredArgsConstructor"), $2.push(`public class ${u}Handler {`);
16931
+ const v = [...o.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
16932
+ (d) => d._attributes.rule === "Agg"
16933
16933
  );
16934
- for (const $2 of m2)
16935
- g2.add(`${s.value.namespace}.${s.value.moduleName}.${r2($2)}`), v.push(` public ${r2($2)} handle(@${b2} ${u} command) {`), v.push(" // HACK Implement"), v.push(" }");
16936
- v.push("}"), l2.push({
16934
+ for (const d of v)
16935
+ g2.add(`${s.value.namespace}.${s.value.moduleName}.${r2(d)}`), $2.push(` public ${r2(d)} handle(@${b2} ${u} command) {`), $2.push(" // HACK Implement"), $2.push(" }");
16936
+ $2.push("}"), l2.push({
16937
16937
  type: "CommandHandler",
16938
16938
  imports: g2,
16939
- content: v.join(`
16939
+ content: $2.join(`
16940
16940
  `)
16941
16941
  });
16942
16942
  }
16943
16943
  return l2;
16944
16944
  }
16945
16945
  ), o.commands._setFacadeCommandCodeProvider((a) => {
16946
- const l2 = [], f = s.value.additions, b2 = s.value.nonNullAnnotation.split(".").pop();
16946
+ const l2 = [], h2 = s.value.additions, b2 = s.value.nonNullAnnotation.split(".").pop();
16947
16947
  {
16948
16948
  const g2 = /* @__PURE__ */ new Set();
16949
16949
  g2.add(s.value.nonNullAnnotation);
16950
- const u = r2(a), v = [], m2 = Object.values(a.inner);
16951
- if (d(g2, m2), f.has(j3.RecordValueObject)) {
16952
- f.has(j3.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public record ${u}(`);
16953
- const $2 = [];
16954
- for (const w2 of m2) {
16955
- const c = r2(w2);
16956
- $2.push(
16950
+ const u = r2(a), $2 = [], v = Object.values(a.inner);
16951
+ if (m2(g2, v), h2.has(E2.RecordValueObject)) {
16952
+ h2.has(E2.LombokBuilder) && $2.push("@lombok.Builder(toBuilder = true)"), $2.push(`public record ${u}(`);
16953
+ const d = [];
16954
+ for (const N2 of v) {
16955
+ const c = r2(N2);
16956
+ d.push(
16957
16957
  ` @${b2}
16958
16958
  ${C2(
16959
16959
  g2,
16960
- w2
16961
- )} ${N2.lowerFirst(c)}`
16960
+ N2
16961
+ )} ${w2.lowerFirst(c)}`
16962
16962
  );
16963
16963
  }
16964
- v.push($2.join(`,
16965
- `)), v.push(") {"), v.push(` public ${u} {`), v.push(" // HACK check value"), v.push(" }"), v.push("}");
16966
- } else if (f.has(j3.Lombok)) {
16967
- v.push("@lombok.AllArgsConstructor"), v.push("@lombok.Getter"), f.has(j3.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public class ${u} {`);
16968
- for (const $2 of m2) {
16969
- const w2 = r2($2);
16970
- v.push(` @${b2}`), v.push(
16971
- ` private final ${C2(g2, $2)} ${N2.lowerFirst(w2)};`
16964
+ $2.push(d.join(`,
16965
+ `)), $2.push(") {"), $2.push(` public ${u} {`), $2.push(" // HACK check value"), $2.push(" }"), $2.push("}");
16966
+ } else if (h2.has(E2.Lombok)) {
16967
+ $2.push("@lombok.AllArgsConstructor"), $2.push("@lombok.Getter"), h2.has(E2.LombokBuilder) && $2.push("@lombok.Builder(toBuilder = true)"), $2.push(`public class ${u} {`);
16968
+ for (const d of v) {
16969
+ const N2 = r2(d);
16970
+ $2.push(` @${b2}`), $2.push(
16971
+ ` private final ${C2(g2, d)} ${w2.lowerFirst(N2)};`
16972
16972
  );
16973
16973
  }
16974
- v.push("}");
16974
+ $2.push("}");
16975
16975
  } else {
16976
- v.push(`public class ${u} {`);
16977
- for (const c of m2) {
16978
- const h2 = r2(c);
16979
- v.push(` @${b2}`), v.push(
16980
- ` private final ${C2(g2, c)} ${N2.lowerFirst(h2)};`
16976
+ $2.push(`public class ${u} {`);
16977
+ for (const c of v) {
16978
+ const f = r2(c);
16979
+ $2.push(` @${b2}`), $2.push(
16980
+ ` private final ${C2(g2, c)} ${w2.lowerFirst(f)};`
16981
16981
  );
16982
16982
  }
16983
- v.push("");
16984
- const $2 = [], w2 = [];
16985
- for (const c of m2) {
16986
- const h2 = r2(c);
16987
- $2.push(
16988
- `@${b2} ${i(g2, c)} ${N2.lowerFirst(h2)}`
16989
- ), w2.push(`this.${N2.lowerFirst(h2)} = ${N2.lowerFirst(h2)};`);
16983
+ $2.push("");
16984
+ const d = [], N2 = [];
16985
+ for (const c of v) {
16986
+ const f = r2(c);
16987
+ d.push(
16988
+ `@${b2} ${i(g2, c)} ${w2.lowerFirst(f)}`
16989
+ ), N2.push(`this.${w2.lowerFirst(f)} = ${w2.lowerFirst(f)};`);
16990
16990
  }
16991
- v.push(` public ${u}(${$2.join(", ")}) {`), v.push(` ${w2.join(`
16992
- `)}`), v.push(" }");
16993
- for (const c of m2) {
16994
- const h2 = r2(c);
16995
- v.push(""), v.push(` public ${C2(g2, c)} get${h2} () {`), v.push(` return this.${N2.lowerFirst(h2)};`), v.push(" }");
16991
+ $2.push(` public ${u}(${d.join(", ")}) {`), $2.push(` ${N2.join(`
16992
+ `)}`), $2.push(" }");
16993
+ for (const c of v) {
16994
+ const f = r2(c);
16995
+ $2.push(""), $2.push(` public ${C2(g2, c)} get${f} () {`), $2.push(` return this.${w2.lowerFirst(f)};`), $2.push(" }");
16996
16996
  }
16997
- v.push("}");
16997
+ $2.push("}");
16998
16998
  }
16999
16999
  l2.push({
17000
17000
  type: "FacadeCommand",
17001
17001
  imports: g2,
17002
- content: v.join(`
17002
+ content: $2.join(`
17003
17003
  `)
17004
17004
  });
17005
17005
  }
17006
- if (!f.has(j3.CommandHandler))
17006
+ if (!h2.has(E2.CommandHandler))
17007
17007
  return l2;
17008
17008
  {
17009
17009
  const g2 = /* @__PURE__ */ new Set();
17010
17010
  g2.add(s.value.nonNullAnnotation);
17011
- const u = r2(a), v = [];
17012
- f.has(j3.SpringFramework) && (g2.add("org.springframework.stereotype.Component"), v.push("@Component")), f.has(j3.Lombok) && v.push("@lombok.RequiredArgsConstructor"), v.push(`public class ${u}Handler {`);
17013
- const m2 = [...o.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
17014
- ($2) => $2._attributes.rule === "Agg"
17011
+ const u = r2(a), $2 = [];
17012
+ h2.has(E2.SpringFramework) && (g2.add("org.springframework.stereotype.Component"), $2.push("@Component")), h2.has(E2.Lombok) && $2.push("@lombok.RequiredArgsConstructor"), $2.push(`public class ${u}Handler {`);
17013
+ const v = [...o.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
17014
+ (d) => d._attributes.rule === "Agg"
17015
17015
  );
17016
- for (const $2 of m2)
17017
- g2.add(`${s.value.namespace}.${s.value.moduleName}.${r2($2)}`), v.push(` public ${r2($2)} handle(@${b2} ${u} command) {`), v.push(" // HACK Implement"), v.push(" }");
17018
- v.push("}"), l2.push({
17016
+ for (const d of v)
17017
+ g2.add(`${s.value.namespace}.${s.value.moduleName}.${r2(d)}`), $2.push(` public ${r2(d)} handle(@${b2} ${u} command) {`), $2.push(" // HACK Implement"), $2.push(" }");
17018
+ $2.push("}"), l2.push({
17019
17019
  type: "FacadeCommandHandler",
17020
17020
  imports: g2,
17021
- content: v.join(`
17021
+ content: $2.join(`
17022
17022
  `)
17023
17023
  });
17024
17024
  }
17025
17025
  return l2;
17026
17026
  }), o.commands._setAggCodeProvider(
17027
17027
  (a) => {
17028
- const l2 = s.value.additions, f = o.states.designer.value, b2 = s.value.nonNullAnnotation.split(".").pop(), g2 = r2(a), u = [];
17028
+ const l2 = s.value.additions, h2 = o.states.designer.value, b2 = s.value.nonNullAnnotation.split(".").pop(), g2 = r2(a), u = [], $2 = Object.values(a.inner);
17029
17029
  {
17030
17030
  const v = /* @__PURE__ */ new Set();
17031
17031
  v.add(s.value.nonNullAnnotation);
17032
- const m2 = [], $2 = [], w2 = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter((c) => c._attributes.rule === "Command" || c._attributes.rule === "FacadeCommand");
17033
- for (const c of w2) {
17034
- const h2 = r2(c);
17035
- v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${h2}`), $2.push(`public void handle${h2}(@${b2} ${h2} command);`);
17032
+ const d = [];
17033
+ d.push(`public interface ${g2} {`);
17034
+ for (const c of $2) {
17035
+ const f = r2(c);
17036
+ v.add(`${s.value.namespace}.${s.value.moduleName}.${e}.${f}`), d.push(` public ${f} get${f}();`), d.push("");
17036
17037
  }
17037
- m2.push(`public interface ${g2} {`), m2.push(` ${$2.join(`
17038
-
17039
- `)}`), m2.push("}"), u.push({
17038
+ const N2 = [...h2._getContext().getAssociationMap()[a._attributes.__id]].filter((c) => c._attributes.rule === "Command" || c._attributes.rule === "FacadeCommand");
17039
+ for (const c of N2) {
17040
+ const f = r2(c);
17041
+ v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${f}`), d.push(` public void handle${f}(@${b2} ${f} command);`), d.push("");
17042
+ }
17043
+ d.push("}"), u.push({
17040
17044
  type: "Agg",
17041
17045
  imports: v,
17042
- content: m2.join(`
17046
+ content: d.join(`
17043
17047
  `)
17044
17048
  });
17045
17049
  }
17046
17050
  {
17047
17051
  const v = /* @__PURE__ */ new Set();
17048
17052
  v.add(s.value.nonNullAnnotation);
17049
- const m2 = [], $2 = Object.values(a.inner);
17050
- if (d(v, $2), l2.has(j3.Lombok)) {
17051
- m2.push(
17052
- l2.has(j3.Jpa) ? "@lombok.NoArgsConstructor" : "@lombok.AllArgsConstructor"
17053
- ), m2.push("@lombok.Getter"), l2.has(j3.Jpa) && (v.add(
17053
+ const d = [];
17054
+ if (m2(v, $2), l2.has(E2.Lombok)) {
17055
+ d.push(
17056
+ l2.has(E2.Jpa) ? "@lombok.NoArgsConstructor" : "@lombok.AllArgsConstructor"
17057
+ ), d.push("@lombok.Getter"), l2.has(E2.Jpa) && (v.add(
17054
17058
  s.value.jdkVersion === "8" ? "javax.persistence.Entity" : "jakarta.persistence.Entity"
17055
- ), m2.push("@Entity"), v.add(s.value.jdkVersion === "8" ? "javax.persistence.Table" : "jakarta.persistence.Table"), m2.push(`@Table(name = "${N2.camelToLowerSnake(g2)}")`)), m2.push(`public class ${g2}Impl implements ${g2} {`);
17059
+ ), d.push("@Entity"), v.add(s.value.jdkVersion === "8" ? "javax.persistence.Table" : "jakarta.persistence.Table"), d.push(`@Table(name = "${w2.camelToLowerSnake(g2)}")`)), d.push(`public class ${g2}Impl implements ${g2} {`);
17056
17060
  for (const c of $2) {
17057
- const h2 = r2(c);
17058
- m2.push(` @${b2}`), l2.has(j3.Jpa) && (c._attributes.type === "Id" && (v.add(s.value.jdkVersion === "8" ? "javax.persistence.Id" : "jakarta.persistence.Id"), v.add(
17059
- s.value.jdkVersion === "8" ? "javax.persistence.GeneratedValue" : "jakarta.persistence.GeneratedValue"
17060
- ), v.add(
17061
- s.value.jdkVersion === "8" ? "javax.persistence.GenerationType" : "jakarta.persistence.GenerationType"
17062
- ), m2.push(` @GeneratedValue(strategy = GenerationType.${s.value.idGenStrategy})`), m2.push(" @Id")), v.add(
17061
+ const f = r2(c);
17062
+ d.push(` @${b2}`), l2.has(E2.Jpa) && (c._attributes.type === "Id" ? (v.add(
17063
+ s.value.jdkVersion === "8" ? "javax.persistence.EmbeddedId" : "jakarta.persistence.EmbeddedId"
17064
+ ), d.push(" @EmbeddedId")) : (v.add(
17065
+ s.value.jdkVersion === "8" ? "javax.persistence.Embedded" : "jakarta.persistence.Embedded"
17066
+ ), d.push(" @Embedded")), v.add(
17063
17067
  s.value.jdkVersion === "8" ? "javax.persistence.AttributeOverride" : "jakarta.persistence.AttributeOverride"
17064
17068
  ), v.add(
17065
17069
  s.value.jdkVersion === "8" ? "javax.persistence.Column" : "jakarta.persistence.Column"
17066
- ), m2.push(
17067
- ` @AttributeOverride(name = "value", column = @Column(name = "${N2.camelToLowerSnake(
17068
- h2
17069
- )}"))`
17070
- )), m2.push(` private ${C2(v, c)} ${N2.lowerFirst(h2)};`);
17070
+ ), d.push(
17071
+ ` @AttributeOverride(name = "value", column = @Column(name = "${w2.camelToLowerSnake(
17072
+ f
17073
+ )}"${c._attributes.type === "Id" ? ", updatable = false" : ""}))`
17074
+ )), d.push(` private ${C2(v, c)} ${w2.lowerFirst(f)};`);
17071
17075
  }
17072
- const w2 = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter((c) => c._attributes.rule === "Command" || c._attributes.rule === "FacadeCommand");
17073
- for (const c of w2) {
17074
- const h2 = r2(c);
17075
- v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${h2}`), m2.push(""), m2.push(
17076
- ` public void handle${h2}(@${b2} ${h2} ${N2.lowerFirst(
17077
- h2
17076
+ const N2 = [...h2._getContext().getAssociationMap()[a._attributes.__id]].filter((c) => c._attributes.rule === "Command" || c._attributes.rule === "FacadeCommand");
17077
+ for (const c of N2) {
17078
+ const f = r2(c);
17079
+ v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${f}`), d.push(""), d.push(
17080
+ ` public void handle${f}(@${b2} ${f} ${w2.lowerFirst(
17081
+ f
17078
17082
  )}) {`
17079
- ), m2.push(" // HACK need implement"), m2.push(" }");
17083
+ ), d.push(" // HACK need implement"), d.push(" }");
17080
17084
  }
17081
- m2.push("}");
17085
+ d.push("}");
17082
17086
  } else {
17083
- l2.has(j3.Jpa) && (v.add(
17087
+ l2.has(E2.Jpa) && (v.add(
17084
17088
  s.value.jdkVersion === "8" ? "javax.persistence.Entity" : "jakarta.persistence.Entity"
17085
- ), m2.push("@Entity"), v.add(s.value.jdkVersion === "8" ? "javax.persistence.Table" : "jakarta.persistence.Table"), m2.push(`@Table(name = "${N2.camelToLowerSnake(g2)}")`)), m2.push(`public class ${g2}Impl implements ${g2} {`);
17089
+ ), d.push("@Entity"), v.add(s.value.jdkVersion === "8" ? "javax.persistence.Table" : "jakarta.persistence.Table"), d.push(`@Table(name = "${w2.camelToLowerSnake(g2)}")`)), d.push(`public class ${g2}Impl implements ${g2} {`);
17086
17090
  for (const y3 of $2) {
17087
17091
  const I2 = r2(y3);
17088
- m2.push(` @${b2}`), l2.has(j3.Jpa) && (y3._attributes.type === "Id" && (v.add(s.value.jdkVersion === "8" ? "javax.persistence.Id" : "jakarta.persistence.Id"), v.add(
17089
- s.value.jdkVersion === "8" ? "javax.persistence.GeneratedValue" : "jakarta.persistence.GeneratedValue"
17090
- ), v.add(
17091
- s.value.jdkVersion === "8" ? "javax.persistence.GenerationType" : "jakarta.persistence.GenerationType"
17092
- ), m2.push(` @GeneratedValue(strategy = GenerationType.${s.value.idGenStrategy})`), m2.push(" @Id")), v.add(
17092
+ d.push(` @${b2}`), l2.has(E2.Jpa) && (y3._attributes.type === "Id" ? (v.add(
17093
+ s.value.jdkVersion === "8" ? "javax.persistence.EmbeddedId" : "jakarta.persistence.EmbeddedId"
17094
+ ), d.push(" @EmbeddedId")) : (v.add(
17095
+ s.value.jdkVersion === "8" ? "javax.persistence.Embedded" : "jakarta.persistence.Embedded"
17096
+ ), d.push(" @Embedded")), v.add(
17093
17097
  s.value.jdkVersion === "8" ? "javax.persistence.AttributeOverride" : "jakarta.persistence.AttributeOverride"
17094
17098
  ), v.add(
17095
17099
  s.value.jdkVersion === "8" ? "javax.persistence.Column" : "jakarta.persistence.Column"
17096
- ), m2.push(
17097
- ` @AttributeOverride(name = "value", column = @Column(name = "${N2.camelToLowerSnake(
17100
+ ), d.push(
17101
+ ` @AttributeOverride(name = "value", column = @Column(name = "${w2.camelToLowerSnake(
17098
17102
  I2
17099
- )}"))`
17100
- )), m2.push(` private ${C2(v, y3)} ${N2.lowerFirst(I2)};`);
17103
+ )}"${y3._attributes.type === "Id" ? ", updatable = false" : ""}))`
17104
+ )), d.push(` private ${C2(v, y3)} ${w2.lowerFirst(I2)};`);
17101
17105
  }
17102
- m2.push("");
17103
- const w2 = [], c = [];
17106
+ d.push("");
17107
+ const N2 = [], c = [];
17104
17108
  for (const y3 of $2) {
17105
- if (l2.has(j3.Jpa))
17109
+ if (l2.has(E2.Jpa))
17106
17110
  break;
17107
17111
  const I2 = r2(y3);
17108
- w2.push(
17109
- `@${b2} ${C2(v, y3)} ${N2.lowerFirst(I2)}`
17110
- ), c.push(`this.${N2.lowerFirst(I2)} = ${N2.lowerFirst(I2)};`);
17112
+ N2.push(
17113
+ `@${b2} ${C2(v, y3)} ${w2.lowerFirst(I2)}`
17114
+ ), c.push(`this.${w2.lowerFirst(I2)} = ${w2.lowerFirst(I2)};`);
17111
17115
  }
17112
- m2.push(` public ${g2}Impl(${w2.join(", ")}) {`), m2.push(` ${c.join(`
17113
- `)}`), m2.push(" }");
17116
+ d.push(` public ${g2}Impl(${N2.join(", ")}) {`), d.push(` ${c.join(`
17117
+ `)}`), d.push(" }");
17114
17118
  for (const y3 of $2) {
17115
17119
  const I2 = r2(y3);
17116
- m2.push(""), m2.push(` @${b2}`), m2.push(` public ${C2(v, y3)} get${I2}() {`), m2.push(` return this.${N2.lowerFirst(I2)};`), m2.push(" }");
17120
+ d.push(""), d.push(` @${b2}`), d.push(` public ${C2(v, y3)} get${I2}() {`), d.push(` return this.${w2.lowerFirst(I2)};`), d.push(" }");
17117
17121
  }
17118
- const h2 = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter(
17122
+ const f = [...h2._getContext().getAssociationMap()[a._attributes.__id]].filter(
17119
17123
  (y3) => y3._attributes.rule === "Command" || y3._attributes.rule === "FacadeCommand"
17120
17124
  );
17121
- for (const y3 of h2) {
17125
+ for (const y3 of f) {
17122
17126
  const I2 = r2(y3);
17123
- v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${I2}`), m2.push(""), m2.push(
17124
- ` public void handle${I2}(@${b2} ${I2} ${N2.lowerFirst(
17127
+ v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${I2}`), d.push(""), d.push(
17128
+ ` public void handle${I2}(@${b2} ${I2} ${w2.lowerFirst(
17125
17129
  I2
17126
17130
  )}) {`
17127
- ), m2.push(" // HACK need implement"), m2.push(" }");
17131
+ ), d.push(" // HACK need implement"), d.push(" }");
17128
17132
  }
17129
- m2.push("}");
17133
+ d.push("}");
17130
17134
  }
17131
17135
  u.push({
17132
17136
  type: "AggImpl",
17133
17137
  imports: v,
17134
- content: m2.join(`
17138
+ content: d.join(`
17135
17139
  `)
17136
17140
  });
17137
17141
  }
@@ -17141,50 +17145,50 @@ var Io = le2.createHotSwapPlugin(() => {
17141
17145
  (a) => {
17142
17146
  const l2 = /* @__PURE__ */ new Set();
17143
17147
  l2.add(s.value.nonNullAnnotation);
17144
- const f = s.value.nonNullAnnotation.split(".").pop(), b2 = s.value.additions, g2 = r2(a), u = [], v = Object.values(a.inner);
17145
- if (d(l2, v), b2.has(j3.RecordValueObject)) {
17146
- b2.has(j3.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public record ${g2}(`);
17147
- const m2 = [];
17148
- for (const $2 of v) {
17149
- const w2 = r2($2);
17150
- m2.push(
17151
- ` @${f}
17148
+ const h2 = s.value.nonNullAnnotation.split(".").pop(), b2 = s.value.additions, g2 = r2(a), u = [], $2 = Object.values(a.inner);
17149
+ if (m2(l2, $2), b2.has(E2.RecordValueObject)) {
17150
+ b2.has(E2.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public record ${g2}(`);
17151
+ const v = [];
17152
+ for (const d of $2) {
17153
+ const N2 = r2(d);
17154
+ v.push(
17155
+ ` @${h2}
17152
17156
  ${C2(
17153
17157
  l2,
17154
- $2
17155
- )} ${N2.lowerFirst(w2)}`
17158
+ d
17159
+ )} ${w2.lowerFirst(N2)}`
17156
17160
  );
17157
17161
  }
17158
- u.push(m2.join(`,
17162
+ u.push(v.join(`,
17159
17163
  `)), u.push(") {"), u.push(` public ${g2} {`), u.push(" // HACK check value"), u.push(" }"), u.push("}");
17160
- } else if (b2.has(j3.Lombok)) {
17161
- u.push("@lombok.AllArgsConstructor"), u.push("@lombok.Getter"), b2.has(j3.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public class ${g2} {`);
17162
- for (const m2 of v) {
17163
- const $2 = r2(m2);
17164
- u.push(` @${f}`), u.push(
17165
- ` private final ${C2(l2, m2)} ${N2.lowerFirst($2)};`
17164
+ } else if (b2.has(E2.Lombok)) {
17165
+ u.push("@lombok.AllArgsConstructor"), u.push("@lombok.Getter"), b2.has(E2.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public class ${g2} {`);
17166
+ for (const v of $2) {
17167
+ const d = r2(v);
17168
+ u.push(` @${h2}`), u.push(
17169
+ ` private final ${C2(l2, v)} ${w2.lowerFirst(d)};`
17166
17170
  );
17167
17171
  }
17168
17172
  u.push("}");
17169
17173
  } else {
17170
17174
  u.push(`public class ${g2} {`);
17171
- for (const w2 of v) {
17172
- const c = r2(w2);
17173
- u.push(` @${f}`), u.push(` private final ${c} ${N2.lowerFirst(c)};`);
17175
+ for (const N2 of $2) {
17176
+ const c = r2(N2);
17177
+ u.push(` @${h2}`), u.push(` private final ${c} ${w2.lowerFirst(c)};`);
17174
17178
  }
17175
17179
  u.push("");
17176
- const m2 = [], $2 = [];
17177
- for (const w2 of v) {
17178
- const c = r2(w2);
17179
- m2.push(
17180
- `@${f} ${i(l2, w2)} ${N2.lowerFirst(c)}`
17181
- ), $2.push(`this.${N2.lowerFirst(c)} = ${N2.lowerFirst(c)};`);
17180
+ const v = [], d = [];
17181
+ for (const N2 of $2) {
17182
+ const c = r2(N2);
17183
+ v.push(
17184
+ `@${h2} ${i(l2, N2)} ${w2.lowerFirst(c)}`
17185
+ ), d.push(`this.${w2.lowerFirst(c)} = ${w2.lowerFirst(c)};`);
17182
17186
  }
17183
- u.push(` public ${g2}(${m2.join(", ")}) {`), u.push(` ${$2.join(`
17187
+ u.push(` public ${g2}(${v.join(", ")}) {`), u.push(` ${d.join(`
17184
17188
  `)}`), u.push(" }");
17185
- for (const w2 of v) {
17186
- const c = r2(w2);
17187
- u.push(""), u.push(` public ${c} get${c} () {`), u.push(` return this.${N2.lowerFirst(c)};`), u.push(" }");
17189
+ for (const N2 of $2) {
17190
+ const c = r2(N2);
17191
+ u.push(""), u.push(` public ${c} get${c} () {`), u.push(` return this.${w2.lowerFirst(c)};`), u.push(" }");
17188
17192
  }
17189
17193
  u.push("}");
17190
17194
  }
@@ -17199,96 +17203,96 @@ var Io = le2.createHotSwapPlugin(() => {
17199
17203
  }
17200
17204
  ), o.commands._setReadModelCodeProvider(() => []), o.commands._setCodeFileProvider(() => {
17201
17205
  const a = [], l2 = {};
17202
- function f(m2) {
17203
- for (const $2 of Object.values(m2)) {
17204
- if (!_($2))
17206
+ function h2(v) {
17207
+ for (const d of Object.values(v)) {
17208
+ if (!_(d))
17205
17209
  continue;
17206
- const w2 = [...s.value.namespace.split(/\./), s.value.moduleName, e], c = r2($2) + ".java";
17207
- if (l2[`${w2.join("/")}/${c}`] === true)
17210
+ const N2 = [...s.value.namespace.split(/\./), s.value.moduleName, e], c = r2(d) + ".java";
17211
+ if (l2[`${N2.join("/")}/${c}`] === true)
17208
17212
  continue;
17209
- const h2 = o.commands._genInfoCode($2);
17210
- if (h2.length === 0)
17213
+ const f = o.commands._genInfoCode(d);
17214
+ if (f.length === 0)
17211
17215
  continue;
17212
- const y3 = new S2(w2, c);
17216
+ const y3 = new S2(N2, c);
17213
17217
  y3.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${e};`), y3.appendContentln("");
17214
- for (const I2 of h2[0].imports)
17218
+ for (const I2 of f[0].imports)
17215
17219
  y3.appendContentln(`import ${I2};`);
17216
- y3.appendContentln(""), y3.appendContentln(h2[0].content), a.push(y3), l2[`${w2.join("/")}/${c}`] = true;
17220
+ y3.appendContentln(""), y3.appendContentln(f[0].content), a.push(y3), l2[`${N2.join("/")}/${c}`] = true;
17217
17221
  }
17218
17222
  }
17219
17223
  const b2 = o.states.designer.value._getContext().getCommands();
17220
- for (const m2 of b2) {
17221
- f(m2.inner);
17222
- const $2 = o.commands._genCommandCode(m2), w2 = [...s.value.namespace.split(/\./), s.value.moduleName, n];
17223
- $2.forEach((c) => {
17224
+ for (const v of b2) {
17225
+ h2(v.inner);
17226
+ const d = o.commands._genCommandCode(v), N2 = [...s.value.namespace.split(/\./), s.value.moduleName, n];
17227
+ d.forEach((c) => {
17224
17228
  if (c.type === "Command") {
17225
- const h2 = new S2(w2, r2(m2) + ".java");
17226
- h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h2.appendContentln(""), h2.addImports(c.imports);
17229
+ const f = new S2(N2, r2(v) + ".java");
17230
+ f.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), f.appendContentln(""), f.addImports(c.imports);
17227
17231
  for (const y3 of c.imports)
17228
- h2.appendContentln(`import ${y3};`);
17229
- h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17232
+ f.appendContentln(`import ${y3};`);
17233
+ f.appendContentln(""), f.appendContentln(c.content), a.push(f);
17230
17234
  } else if (c.type === "CommandHandler") {
17231
- const h2 = new S2(w2, r2(m2) + "Handler.java");
17232
- h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h2.appendContentln(""), h2.addImports(c.imports);
17235
+ const f = new S2(N2, r2(v) + "Handler.java");
17236
+ f.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), f.appendContentln(""), f.addImports(c.imports);
17233
17237
  for (const y3 of c.imports)
17234
- h2.appendContentln(`import ${y3};`);
17235
- h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17238
+ f.appendContentln(`import ${y3};`);
17239
+ f.appendContentln(""), f.appendContentln(c.content), a.push(f);
17236
17240
  } else
17237
17241
  isNever(c.type);
17238
17242
  });
17239
17243
  }
17240
17244
  const g2 = o.states.designer.value._getContext().getFacadeCommands();
17241
- for (const m2 of g2) {
17242
- f(m2.inner);
17243
- const $2 = o.commands._genFacadeCommandCode(m2), w2 = [...s.value.namespace.split(/\./), s.value.moduleName, n];
17244
- $2.forEach((c) => {
17245
+ for (const v of g2) {
17246
+ h2(v.inner);
17247
+ const d = o.commands._genFacadeCommandCode(v), N2 = [...s.value.namespace.split(/\./), s.value.moduleName, n];
17248
+ d.forEach((c) => {
17245
17249
  if (c.type === "FacadeCommand") {
17246
- const h2 = new S2(w2, r2(m2) + ".java");
17247
- h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h2.appendContentln(""), h2.addImports(c.imports);
17250
+ const f = new S2(N2, r2(v) + ".java");
17251
+ f.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), f.appendContentln(""), f.addImports(c.imports);
17248
17252
  for (const y3 of c.imports)
17249
- h2.appendContentln(`import ${y3};`);
17250
- h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17253
+ f.appendContentln(`import ${y3};`);
17254
+ f.appendContentln(""), f.appendContentln(c.content), a.push(f);
17251
17255
  } else if (c.type === "FacadeCommandHandler") {
17252
- const h2 = new S2(w2, r2(m2) + "Handler.java");
17253
- h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h2.appendContentln(""), h2.addImports(c.imports);
17256
+ const f = new S2(N2, r2(v) + "Handler.java");
17257
+ f.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), f.appendContentln(""), f.addImports(c.imports);
17254
17258
  for (const y3 of c.imports)
17255
- h2.appendContentln(`import ${y3};`);
17256
- h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17259
+ f.appendContentln(`import ${y3};`);
17260
+ f.appendContentln(""), f.appendContentln(c.content), a.push(f);
17257
17261
  } else
17258
17262
  isNever(c.type);
17259
17263
  });
17260
17264
  }
17261
17265
  const u = o.states.designer.value._getContext().getAggs();
17262
- for (const m2 of u) {
17263
- f(m2.inner);
17264
- const $2 = o.commands._genAggCode(m2), w2 = [...s.value.namespace.split(/\./), s.value.moduleName];
17265
- $2.forEach((c) => {
17266
+ for (const v of u) {
17267
+ h2(v.inner);
17268
+ const d = o.commands._genAggCode(v), N2 = [...s.value.namespace.split(/\./), s.value.moduleName];
17269
+ d.forEach((c) => {
17266
17270
  if (c.type === "Agg") {
17267
- const h2 = new S2(w2, r2(m2) + ".java");
17268
- h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName};`), h2.appendContentln(""), h2.addImports(c.imports);
17271
+ const f = new S2(N2, r2(v) + ".java");
17272
+ f.appendContentln(`package ${s.value.namespace}.${s.value.moduleName};`), f.appendContentln(""), f.addImports(c.imports);
17269
17273
  for (const y3 of c.imports)
17270
- h2.appendContentln(`import ${y3};`);
17271
- h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17274
+ f.appendContentln(`import ${y3};`);
17275
+ f.appendContentln(""), f.appendContentln(c.content), a.push(f);
17272
17276
  } else if (c.type === "AggImpl") {
17273
- const h2 = new S2(w2, r2(m2) + "Impl.java");
17274
- h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName};`), h2.appendContentln(""), h2.addImports(c.imports);
17277
+ const f = new S2(N2, r2(v) + "Impl.java");
17278
+ f.appendContentln(`package ${s.value.namespace}.${s.value.moduleName};`), f.appendContentln(""), f.addImports(c.imports);
17275
17279
  for (const y3 of c.imports)
17276
- h2.appendContentln(`import ${y3};`);
17277
- h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17280
+ f.appendContentln(`import ${y3};`);
17281
+ f.appendContentln(""), f.appendContentln(c.content), a.push(f);
17278
17282
  } else
17279
17283
  isNever(c.type);
17280
17284
  });
17281
17285
  }
17282
- const v = o.states.designer.value._getContext().getEvents();
17283
- for (const m2 of v) {
17284
- f(m2.inner);
17285
- const $2 = o.commands._genEventCode(m2), w2 = [...s.value.namespace.split(/\./), s.value.moduleName, t];
17286
- $2.forEach((c) => {
17287
- const h2 = new S2(w2, r2(m2) + ".java");
17288
- h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${t};`), h2.appendContentln(""), h2.addImports(c.imports);
17286
+ const $2 = o.states.designer.value._getContext().getEvents();
17287
+ for (const v of $2) {
17288
+ h2(v.inner);
17289
+ const d = o.commands._genEventCode(v), N2 = [...s.value.namespace.split(/\./), s.value.moduleName, t];
17290
+ d.forEach((c) => {
17291
+ const f = new S2(N2, r2(v) + ".java");
17292
+ f.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${t};`), f.appendContentln(""), f.addImports(c.imports);
17289
17293
  for (const y3 of c.imports)
17290
- h2.appendContentln(`import ${y3};`);
17291
- h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17294
+ f.appendContentln(`import ${y3};`);
17295
+ f.appendContentln(""), f.appendContentln(c.content), a.push(f);
17292
17296
  });
17293
17297
  }
17294
17298
  return a;
@@ -17296,77 +17300,77 @@ var Io = le2.createHotSwapPlugin(() => {
17296
17300
  }
17297
17301
  };
17298
17302
  });
17299
- var Fe = Ne.KotlinGeneratorAddition;
17303
+ var Pe = we.KotlinGeneratorAddition;
17300
17304
  var Oo = le2.createHotSwapPlugin(() => ({
17301
17305
  unmount({ api: e }) {
17302
17306
  e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
17303
17307
  },
17304
17308
  mount({ api: e }) {
17305
- const n = "value", t = e.states.context, r2 = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((d) => N2.stringToLowerCamel(d));
17306
- function o(d) {
17307
- return !r2.includes(N2.stringToLowerCamel(d._attributes.name));
17309
+ const n = "value", t = e.states.context, r2 = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((m2) => w2.stringToLowerCamel(m2));
17310
+ function o(m2) {
17311
+ return !r2.includes(w2.stringToLowerCamel(m2._attributes.name));
17308
17312
  }
17309
- function s(d, i) {
17310
- return o(i) ? N2.stringToUpperCamel(i._attributes.name) : C2(d, i);
17313
+ function s(m2, i) {
17314
+ return o(i) ? w2.stringToUpperCamel(i._attributes.name) : C2(m2, i);
17311
17315
  }
17312
- function p(d) {
17313
- return N2.stringToUpperCamel(d._attributes.name);
17316
+ function p(m2) {
17317
+ return w2.stringToUpperCamel(m2._attributes.name);
17314
17318
  }
17315
- function _(d, i) {
17319
+ function _(m2, i) {
17316
17320
  for (const a of i) {
17317
17321
  if (!o(a)) {
17318
- C2(d, a);
17322
+ C2(m2, a);
17319
17323
  continue;
17320
17324
  }
17321
- d.add(
17325
+ m2.add(
17322
17326
  `${t.value.namespace}.${t.value.moduleName}.${n}.${p(a)}`
17323
17327
  );
17324
17328
  }
17325
17329
  }
17326
- function C2(d, i) {
17327
- const a = t.value.additions, l2 = N2.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
17328
- return /\b(time|timestamp|date|deadline|expire)\b/.test(l2) ? a.has(Fe.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(l2) ? "Integer" : /\b(price)$/.test(l2) ? (d.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(l2) ? "Boolean" : Ee(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") || /\b(id|identifier|ver|version)$/.test(l2) ? "Long" : "String";
17330
+ function C2(m2, i) {
17331
+ const a = t.value.additions, l2 = w2.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
17332
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(l2) ? a.has(Pe.Timezone) ? (m2.add("java.time.OffsetDateTime"), "OffsetDateTime") : (m2.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(l2) ? "Integer" : /\b(price)$/.test(l2) ? (m2.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(l2) ? "Boolean" : je(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") || /\b(id|identifier|ver|version)$/.test(l2) ? "Long" : "String";
17329
17333
  }
17330
17334
  e.commands._setInfoCodeProvider(
17331
- (d) => {
17332
- const i = /* @__PURE__ */ new Set(), a = p(d), l2 = t.value.additions, f = [];
17333
- return l2.has(Fe.ValueClass) ? (i.add("kotlin.jvm.JvmInline"), f.push("@JvmInline"), f.push(`value class ${a}(val value: ${C2(i, d)})`)) : f.push(`data class ${a}(val value: ${C2(i, d)})`), [
17335
+ (m2) => {
17336
+ const i = /* @__PURE__ */ new Set(), a = p(m2), l2 = t.value.additions, h2 = [];
17337
+ return l2.has(Pe.ValueClass) ? (i.add("kotlin.jvm.JvmInline"), h2.push("@JvmInline"), h2.push(`value class ${a}(val value: ${C2(i, m2)})`)) : h2.push(`data class ${a}(val value: ${C2(i, m2)})`), [
17334
17338
  {
17335
17339
  type: "Info",
17336
17340
  imports: i,
17337
- content: f.join(`
17341
+ content: h2.join(`
17338
17342
  `)
17339
17343
  }
17340
17344
  ];
17341
17345
  }
17342
17346
  ), e.commands._setCommandCodeProvider(
17343
- (d) => {
17347
+ (m2) => {
17344
17348
  const i = [], a = t.value.additions;
17345
17349
  {
17346
- const l2 = /* @__PURE__ */ new Set(), f = p(d), b2 = [], g2 = Object.values(d.inner);
17350
+ const l2 = /* @__PURE__ */ new Set(), h2 = p(m2), b2 = [], g2 = Object.values(m2.inner);
17347
17351
  _(l2, g2);
17348
17352
  const u = [];
17349
- for (const v of g2) {
17350
- const m2 = p(v);
17351
- u.push(`val ${N2.lowerFirst(m2)}: ${s(l2, v)}`);
17353
+ for (const $2 of g2) {
17354
+ const v = p($2);
17355
+ u.push(`val ${w2.lowerFirst(v)}: ${s(l2, $2)}`);
17352
17356
  }
17353
- b2.push(`data class ${f}(${u.join(", ")})`), i.push({
17357
+ b2.push(`data class ${h2}(${u.join(", ")})`), i.push({
17354
17358
  type: "Command",
17355
17359
  imports: l2,
17356
17360
  content: b2.join(`
17357
17361
  `)
17358
17362
  });
17359
17363
  }
17360
- if (!a.has(Fe.CommandHandler))
17364
+ if (!a.has(Pe.CommandHandler))
17361
17365
  return i;
17362
17366
  {
17363
- const l2 = /* @__PURE__ */ new Set(), f = p(d), b2 = [];
17364
- b2.push(`class ${f}Handler {`);
17365
- const g2 = [...e.states.designer.value._getContext().getAssociationMap()[d._attributes.__id]].filter(
17367
+ const l2 = /* @__PURE__ */ new Set(), h2 = p(m2), b2 = [];
17368
+ b2.push(`class ${h2}Handler {`);
17369
+ const g2 = [...e.states.designer.value._getContext().getAssociationMap()[m2._attributes.__id]].filter(
17366
17370
  (u) => u._attributes.rule === "Agg"
17367
17371
  );
17368
17372
  for (const u of g2)
17369
- l2.add(`${t.value.namespace}.${t.value.moduleName}.${p(u)}`), b2.push(` fun handle(command: ${f}): ${p(u)} {`), b2.push(" // HACK Implement"), b2.push(" }");
17373
+ l2.add(`${t.value.namespace}.${t.value.moduleName}.${p(u)}`), b2.push(` fun handle(command: ${h2}): ${p(u)} {`), b2.push(" // HACK Implement"), b2.push(" }");
17370
17374
  b2.push("}"), i.push({
17371
17375
  type: "CommandHandler",
17372
17376
  imports: l2,
@@ -17377,13 +17381,13 @@ var Oo = le2.createHotSwapPlugin(() => ({
17377
17381
  return i;
17378
17382
  }
17379
17383
  ), e.commands._setFacadeCommandCodeProvider(
17380
- (d) => {
17381
- const i = /* @__PURE__ */ new Set(), a = p(d), l2 = [], f = Object.values(d.inner);
17382
- _(i, f);
17384
+ (m2) => {
17385
+ const i = /* @__PURE__ */ new Set(), a = p(m2), l2 = [], h2 = Object.values(m2.inner);
17386
+ _(i, h2);
17383
17387
  const b2 = [];
17384
- for (const g2 of f) {
17388
+ for (const g2 of h2) {
17385
17389
  const u = p(g2);
17386
- b2.push(`val ${N2.lowerFirst(u)}: ${s(i, g2)}`);
17390
+ b2.push(`val ${w2.lowerFirst(u)}: ${s(i, g2)}`);
17387
17391
  }
17388
17392
  return l2.push(`data class ${a}(${b2.join(", ")})`), [
17389
17393
  {
@@ -17394,43 +17398,43 @@ var Oo = le2.createHotSwapPlugin(() => ({
17394
17398
  }
17395
17399
  ];
17396
17400
  }
17397
- ), e.commands._setAggCodeProvider((d) => {
17398
- const i = /* @__PURE__ */ new Set(), a = e.states.designer.value, l2 = p(d), f = [], b2 = Object.values(d.inner);
17401
+ ), e.commands._setAggCodeProvider((m2) => {
17402
+ const i = /* @__PURE__ */ new Set(), a = e.states.designer.value, l2 = p(m2), h2 = [], b2 = Object.values(m2.inner);
17399
17403
  _(i, b2);
17400
- const g2 = [], u = [...a._getContext().getAssociationMap()[d._attributes.__id]].filter((m2) => m2._attributes.rule === "Command" || m2._attributes.rule === "FacadeCommand");
17401
- for (const m2 of u) {
17402
- const $2 = p(m2);
17403
- g2.push(`fun handle(command: ${$2})`);
17404
- }
17405
- f.push(`interface ${l2} {`), f.push(` ${g2.join(`
17406
- `)}`), f.push("}"), f.push(""), f.push(`class ${l2}Impl(`);
17407
- const v = [];
17408
- for (const m2 of b2) {
17409
- const $2 = p(m2);
17410
- v.push(`val ${N2.lowerFirst($2)}: ${s(i, m2)}`);
17411
- }
17412
- f.push(` ${v.join(`,
17413
- `)}`), f.push(`): ${l2} {`);
17414
- for (const m2 of u) {
17415
- const $2 = p(m2);
17416
- f.push(` override fun handle(command: ${$2}) {`), f.push(" // HACK Implement"), f.push(" }");
17417
- }
17418
- return f.push("}"), [
17404
+ const g2 = [], u = [...a._getContext().getAssociationMap()[m2._attributes.__id]].filter((v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand");
17405
+ for (const v of u) {
17406
+ const d = p(v);
17407
+ g2.push(`fun handle(command: ${d})`);
17408
+ }
17409
+ h2.push(`interface ${l2} {`), h2.push(` ${g2.join(`
17410
+ `)}`), h2.push("}"), h2.push(""), h2.push(`class ${l2}Impl(`);
17411
+ const $2 = [];
17412
+ for (const v of b2) {
17413
+ const d = p(v);
17414
+ $2.push(`val ${w2.lowerFirst(d)}: ${s(i, v)}`);
17415
+ }
17416
+ h2.push(` ${$2.join(`,
17417
+ `)}`), h2.push(`): ${l2} {`);
17418
+ for (const v of u) {
17419
+ const d = p(v);
17420
+ h2.push(` override fun handle(command: ${d}) {`), h2.push(" // HACK Implement"), h2.push(" }");
17421
+ }
17422
+ return h2.push("}"), [
17419
17423
  {
17420
17424
  type: "Agg",
17421
17425
  imports: i,
17422
- content: f.join(`
17426
+ content: h2.join(`
17423
17427
  `)
17424
17428
  }
17425
17429
  ];
17426
17430
  }), e.commands._setEventCodeProvider(
17427
- (d) => {
17428
- const i = /* @__PURE__ */ new Set(), a = p(d), l2 = [], f = Object.values(d.inner);
17429
- _(i, f);
17431
+ (m2) => {
17432
+ const i = /* @__PURE__ */ new Set(), a = p(m2), l2 = [], h2 = Object.values(m2.inner);
17433
+ _(i, h2);
17430
17434
  const b2 = [];
17431
- for (const g2 of f) {
17435
+ for (const g2 of h2) {
17432
17436
  const u = p(g2);
17433
- b2.push(`val ${N2.lowerFirst(u)}: ${s(i, g2)}`);
17437
+ b2.push(`val ${w2.lowerFirst(u)}: ${s(i, g2)}`);
17434
17438
  }
17435
17439
  return l2.push(`data class ${a}(${b2.join(", ")})`), [
17436
17440
  {
@@ -17442,281 +17446,281 @@ var Oo = le2.createHotSwapPlugin(() => ({
17442
17446
  ];
17443
17447
  }
17444
17448
  ), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => {
17445
- const d = [], i = {};
17449
+ const m2 = [], i = {};
17446
17450
  function a(u) {
17447
- for (const v of Object.values(u)) {
17448
- if (!o(v))
17451
+ for (const $2 of Object.values(u)) {
17452
+ if (!o($2))
17449
17453
  continue;
17450
- const m2 = [...t.value.namespace.split(/\./), t.value.moduleName, n], $2 = p(v) + ".kt";
17451
- if (i[`${m2.join("/")}/${$2}`] === true)
17454
+ const v = [...t.value.namespace.split(/\./), t.value.moduleName, n], d = p($2) + ".kt";
17455
+ if (i[`${v.join("/")}/${d}`] === true)
17452
17456
  continue;
17453
- const w2 = e.commands._genInfoCode(v);
17454
- if (w2.length === 0)
17457
+ const N2 = e.commands._genInfoCode($2);
17458
+ if (N2.length === 0)
17455
17459
  continue;
17456
- const c = new S2(m2, $2);
17460
+ const c = new S2(v, d);
17457
17461
  c.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}.${n}`), c.appendContentln("");
17458
- for (const h2 of w2[0].imports)
17459
- c.appendContentln(`import ${h2}`);
17460
- c.appendContentln(""), c.appendContentln(w2[0].content), d.push(c), i[`${m2.join("/")}/${$2}`] = true;
17462
+ for (const f of N2[0].imports)
17463
+ c.appendContentln(`import ${f}`);
17464
+ c.appendContentln(""), c.appendContentln(N2[0].content), m2.push(c), i[`${v.join("/")}/${d}`] = true;
17461
17465
  }
17462
17466
  }
17463
17467
  const l2 = e.states.designer.value._getContext().getCommands();
17464
17468
  for (const u of l2) {
17465
17469
  a(u.inner);
17466
- const v = e.commands._genCommandCode(u), m2 = [...t.value.namespace.split(/\./), t.value.moduleName], $2 = new S2(m2, p(u) + ".kt"), w2 = [];
17467
- $2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), $2.appendContentln(""), v.forEach((c) => {
17468
- c.type === "Command" || c.type === "CommandHandler" ? ($2.addImports(c.imports), w2.push(c.content)) : isNever(c.type);
17470
+ const $2 = e.commands._genCommandCode(u), v = [...t.value.namespace.split(/\./), t.value.moduleName], d = new S2(v, p(u) + ".kt"), N2 = [];
17471
+ d.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), d.appendContentln(""), $2.forEach((c) => {
17472
+ c.type === "Command" || c.type === "CommandHandler" ? (d.addImports(c.imports), N2.push(c.content)) : isNever(c.type);
17469
17473
  });
17470
- for (const c of $2.getImports())
17471
- $2.appendContentln(`import ${c}`);
17472
- $2.appendContentln("");
17473
- for (const c of w2)
17474
- $2.appendContentln(c);
17475
- d.push($2);
17476
- }
17477
- const f = e.states.designer.value._getContext().getFacadeCommands();
17478
- for (const u of f) {
17474
+ for (const c of d.getImports())
17475
+ d.appendContentln(`import ${c}`);
17476
+ d.appendContentln("");
17477
+ for (const c of N2)
17478
+ d.appendContentln(c);
17479
+ m2.push(d);
17480
+ }
17481
+ const h2 = e.states.designer.value._getContext().getFacadeCommands();
17482
+ for (const u of h2) {
17479
17483
  a(u.inner);
17480
- const v = e.commands._genFacadeCommandCode(u), m2 = [...t.value.namespace.split(/\./), t.value.moduleName], $2 = new S2(m2, p(u) + ".kt"), w2 = [];
17481
- $2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), $2.appendContentln(""), v.forEach((c) => {
17482
- c.type === "FacadeCommand" || c.type === "FacadeCommandHandler" ? ($2.addImports(c.imports), w2.push(c.content)) : isNever(c.type);
17484
+ const $2 = e.commands._genFacadeCommandCode(u), v = [...t.value.namespace.split(/\./), t.value.moduleName], d = new S2(v, p(u) + ".kt"), N2 = [];
17485
+ d.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), d.appendContentln(""), $2.forEach((c) => {
17486
+ c.type === "FacadeCommand" || c.type === "FacadeCommandHandler" ? (d.addImports(c.imports), N2.push(c.content)) : isNever(c.type);
17483
17487
  });
17484
- for (const c of $2.getImports())
17485
- $2.appendContentln(`import ${c}`);
17486
- $2.appendContentln("");
17487
- for (const c of w2)
17488
- $2.appendContentln(c);
17489
- d.push($2);
17488
+ for (const c of d.getImports())
17489
+ d.appendContentln(`import ${c}`);
17490
+ d.appendContentln("");
17491
+ for (const c of N2)
17492
+ d.appendContentln(c);
17493
+ m2.push(d);
17490
17494
  }
17491
17495
  const b2 = e.states.designer.value._getContext().getAggs();
17492
17496
  for (const u of b2) {
17493
17497
  a(u.inner);
17494
- const v = e.commands._genAggCode(u), m2 = [...t.value.namespace.split(/\./), t.value.moduleName], $2 = new S2(m2, p(u) + ".kt"), w2 = [];
17495
- $2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), $2.appendContentln(""), v.forEach((c) => {
17496
- c.type === "Agg" || c.type === "AggImpl" ? ($2.addImports(c.imports), w2.push(c.content)) : isNever(c.type);
17498
+ const $2 = e.commands._genAggCode(u), v = [...t.value.namespace.split(/\./), t.value.moduleName], d = new S2(v, p(u) + ".kt"), N2 = [];
17499
+ d.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), d.appendContentln(""), $2.forEach((c) => {
17500
+ c.type === "Agg" || c.type === "AggImpl" ? (d.addImports(c.imports), N2.push(c.content)) : isNever(c.type);
17497
17501
  });
17498
- for (const c of $2.getImports())
17499
- $2.appendContentln(`import ${c}`);
17500
- $2.appendContentln("");
17501
- for (const c of w2)
17502
- $2.appendContentln(c);
17503
- d.push($2);
17502
+ for (const c of d.getImports())
17503
+ d.appendContentln(`import ${c}`);
17504
+ d.appendContentln("");
17505
+ for (const c of N2)
17506
+ d.appendContentln(c);
17507
+ m2.push(d);
17504
17508
  }
17505
17509
  const g2 = e.states.designer.value._getContext().getEvents();
17506
17510
  for (const u of g2) {
17507
17511
  a(u.inner);
17508
- const v = e.commands._genEventCode(u), m2 = [...t.value.namespace.split(/\./), t.value.moduleName];
17509
- v.forEach(($2) => {
17510
- if ($2.type === "Event") {
17511
- const w2 = new S2(m2, p(u) + ".kt");
17512
- w2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), w2.appendContentln(""), w2.addImports($2.imports);
17513
- for (const c of $2.imports)
17514
- w2.appendContentln(`import ${c}`);
17515
- w2.appendContentln(""), w2.appendContentln($2.content), d.push(w2);
17512
+ const $2 = e.commands._genEventCode(u), v = [...t.value.namespace.split(/\./), t.value.moduleName];
17513
+ $2.forEach((d) => {
17514
+ if (d.type === "Event") {
17515
+ const N2 = new S2(v, p(u) + ".kt");
17516
+ N2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), N2.appendContentln(""), N2.addImports(d.imports);
17517
+ for (const c of d.imports)
17518
+ N2.appendContentln(`import ${c}`);
17519
+ N2.appendContentln(""), N2.appendContentln(d.content), m2.push(N2);
17516
17520
  } else
17517
- isNever($2.type);
17521
+ isNever(d.type);
17518
17522
  });
17519
17523
  }
17520
- return d;
17524
+ return m2;
17521
17525
  });
17522
17526
  }
17523
17527
  }));
17524
- var To = le2.createHotSwapPlugin(() => ({
17528
+ var xo = le2.createHotSwapPlugin(() => ({
17525
17529
  unmount({ api: e }) {
17526
17530
  e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
17527
17531
  },
17528
17532
  mount({ api: e }) {
17529
- const n = e.states.context, t = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((C2) => N2.stringToLowerCamel(C2));
17533
+ const n = e.states.context, t = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((C2) => w2.stringToLowerCamel(C2));
17530
17534
  function r2(C2) {
17531
- return !t.includes(N2.stringToLowerCamel(C2._attributes.name));
17535
+ return !t.includes(w2.stringToLowerCamel(C2._attributes.name));
17532
17536
  }
17533
- function o(C2, d) {
17534
- return r2(d) ? N2.stringToUpperCamel(d._attributes.name) : _(C2, d);
17537
+ function o(C2, m2) {
17538
+ return r2(m2) ? w2.stringToUpperCamel(m2._attributes.name) : _(C2, m2);
17535
17539
  }
17536
17540
  function s(C2) {
17537
- return N2.stringToUpperCamel(C2._attributes.name);
17541
+ return w2.stringToUpperCamel(C2._attributes.name);
17538
17542
  }
17539
17543
  function p(C2) {
17540
- return N2.stringToLowerCamel(C2._attributes.name);
17544
+ return w2.stringToLowerCamel(C2._attributes.name);
17541
17545
  }
17542
- function _(C2, d) {
17543
- const i = N2.stringToLowerSnake(d._attributes.name).replace(/_/, " ");
17544
- return /\b(time|timestamp|date|deadline|expire)\b/.test(i) ? (C2.add("time"), "time.Time") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(i) ? "int" : /\b(price)$/.test(i) ? "string" : /^(if|is)\b/.test(i) ? "bool" : Ee(d) && (d._attributes.type === "Id" || d._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(i)) ? "int64" : "string";
17546
+ function _(C2, m2) {
17547
+ const i = w2.stringToLowerSnake(m2._attributes.name).replace(/_/, " ");
17548
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(i) ? (C2.add("time"), "time.Time") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(i) ? "int" : /\b(price)$/.test(i) ? "string" : /^(if|is)\b/.test(i) ? "bool" : je(m2) && (m2._attributes.type === "Id" || m2._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(i)) ? "int64" : "string";
17545
17549
  }
17546
17550
  e.commands._setInfoCodeProvider(
17547
17551
  (C2) => {
17548
- const d = /* @__PURE__ */ new Set(), i = [];
17549
- return i.push(`type ${s(C2)} struct {`), i.push(` value ${_(d, C2)}`), i.push("}"), i.push(""), i.push(
17552
+ const m2 = /* @__PURE__ */ new Set(), i = [];
17553
+ return i.push(`type ${s(C2)} struct {`), i.push(` value ${_(m2, C2)}`), i.push("}"), i.push(""), i.push(
17550
17554
  `func New${s(C2)}(value ${_(
17551
- d,
17555
+ m2,
17552
17556
  C2
17553
17557
  )}) ${s(C2)} {`
17554
17558
  ), i.push(" // HACK check value"), i.push(` return ${s(C2)}{value}`), i.push("}"), i.push(
17555
17559
  `func (${p(C2)} ${s(C2)}) GetValue() ${_(
17556
- d,
17560
+ m2,
17557
17561
  C2
17558
17562
  )} {`
17559
- ), i.push(` return ${p(C2)}.value`), i.push("}"), [{ type: "Info", imports: d, content: i.join(`
17563
+ ), i.push(` return ${p(C2)}.value`), i.push("}"), [{ type: "Info", imports: m2, content: i.join(`
17560
17564
  `) }];
17561
17565
  }
17562
17566
  ), e.commands._setCommandCodeProvider(
17563
17567
  (C2) => {
17564
- const d = s(C2), i = p(C2), a = /* @__PURE__ */ new Set(), l2 = [];
17565
- l2.push(`type ${d} struct {`);
17566
- const f = Object.values(C2.inner);
17567
- for (const u of f)
17568
+ const m2 = s(C2), i = p(C2), a = /* @__PURE__ */ new Set(), l2 = [];
17569
+ l2.push(`type ${m2} struct {`);
17570
+ const h2 = Object.values(C2.inner);
17571
+ for (const u of h2)
17568
17572
  l2.push(` ${p(u)} ${o(a, u)}`);
17569
17573
  l2.push("}");
17570
- for (const u of f)
17574
+ for (const u of h2)
17571
17575
  l2.push(
17572
- `func (${i} ${d}) Get${s(u)} () ${o(
17576
+ `func (${i} ${m2}) Get${s(u)} () ${o(
17573
17577
  a,
17574
17578
  u
17575
17579
  )} {`
17576
17580
  ), l2.push(` return ${i}.${p(u)}`), l2.push("}");
17577
17581
  const b2 = [], g2 = [];
17578
- for (const u of f)
17582
+ for (const u of h2)
17579
17583
  b2.push(`${p(u)} ${o(a, u)}`), g2.push(p(u));
17580
- return l2.push(`func New${d}(${b2.join(", ")}) ${d} {`), l2.push(" // HACK check value"), l2.push(` return ${d}{`), l2.push(` ${g2.join(`,
17584
+ return l2.push(`func New${m2}(${b2.join(", ")}) ${m2} {`), l2.push(" // HACK check value"), l2.push(` return ${m2}{`), l2.push(` ${g2.join(`,
17581
17585
  `)},`), l2.push(" }"), l2.push("}"), [{ type: "Command", imports: a, content: l2.join(`
17582
17586
  `) }];
17583
17587
  }
17584
17588
  ), e.commands._setFacadeCommandCodeProvider(
17585
17589
  (C2) => {
17586
- const d = s(C2), i = p(C2), a = Object.values(C2.inner), l2 = /* @__PURE__ */ new Set(), f = [];
17587
- f.push(`type ${d} struct {`);
17590
+ const m2 = s(C2), i = p(C2), a = Object.values(C2.inner), l2 = /* @__PURE__ */ new Set(), h2 = [];
17591
+ h2.push(`type ${m2} struct {`);
17588
17592
  for (const u of a)
17589
- f.push(` ${p(u)} ${o(l2, u)}`);
17590
- f.push("}");
17593
+ h2.push(` ${p(u)} ${o(l2, u)}`);
17594
+ h2.push("}");
17591
17595
  for (const u of a)
17592
- f.push(
17593
- `func (${i} ${d}) Get${s(u)} () ${o(
17596
+ h2.push(
17597
+ `func (${i} ${m2}) Get${s(u)} () ${o(
17594
17598
  l2,
17595
17599
  u
17596
17600
  )} {`
17597
- ), f.push(` return ${i}.${p(u)}`), f.push("}");
17601
+ ), h2.push(` return ${i}.${p(u)}`), h2.push("}");
17598
17602
  const b2 = [], g2 = [];
17599
17603
  for (const u of a)
17600
17604
  b2.push(`${p(u)} ${o(l2, u)}`), g2.push(p(u));
17601
- return f.push(`func New${d}(${b2.join(", ")}) ${d} {`), f.push(" // HACK check value"), f.push(` return ${d}{`), f.push(` ${g2.join(`,
17602
- `)},`), f.push(" }"), f.push("}"), [
17605
+ return h2.push(`func New${m2}(${b2.join(", ")}) ${m2} {`), h2.push(" // HACK check value"), h2.push(` return ${m2}{`), h2.push(` ${g2.join(`,
17606
+ `)},`), h2.push(" }"), h2.push("}"), [
17603
17607
  {
17604
17608
  type: "FacadeCommand",
17605
17609
  imports: l2,
17606
- content: f.join(`
17610
+ content: h2.join(`
17607
17611
  `)
17608
17612
  }
17609
17613
  ];
17610
17614
  }
17611
17615
  ), e.commands._setAggCodeProvider((C2) => {
17612
- const d = e.states.designer.value, i = s(C2), a = p(C2), l2 = Object.values(C2.inner), f = /* @__PURE__ */ new Set(), b2 = [];
17616
+ const m2 = e.states.designer.value, i = s(C2), a = p(C2), l2 = Object.values(C2.inner), h2 = /* @__PURE__ */ new Set(), b2 = [];
17613
17617
  b2.push(`type ${i} struct {`);
17614
- for (const m2 of l2)
17615
- b2.push(` ${p(m2)} ${o(f, m2)}`);
17618
+ for (const v of l2)
17619
+ b2.push(` ${p(v)} ${o(h2, v)}`);
17616
17620
  b2.push("}");
17617
- for (const m2 of l2)
17621
+ for (const v of l2)
17618
17622
  b2.push(
17619
- `func (${a} ${i}) Get${s(m2)} () ${o(
17620
- f,
17621
- m2
17623
+ `func (${a} ${i}) Get${s(v)} () ${o(
17624
+ h2,
17625
+ v
17622
17626
  )} {`
17623
- ), b2.push(` return ${a}.${p(m2)}`), b2.push("}");
17627
+ ), b2.push(` return ${a}.${p(v)}`), b2.push("}");
17624
17628
  const g2 = [], u = [];
17625
- for (const m2 of l2)
17626
- g2.push(`${p(m2)} ${o(f, m2)}`), u.push(p(m2));
17629
+ for (const v of l2)
17630
+ g2.push(`${p(v)} ${o(h2, v)}`), u.push(p(v));
17627
17631
  b2.push(`func New${i}(${g2.join(", ")}) ${i} {`), b2.push(" // HACK check value"), b2.push(` return ${i}{`), b2.push(` ${u.join(`,
17628
17632
  `)},`), b2.push(" }"), b2.push("}"), b2.push("");
17629
- const v = [...d._getContext().getAssociationMap()[C2._attributes.__id]].filter((m2) => m2._attributes.rule === "Command" || m2._attributes.rule === "FacadeCommand");
17630
- for (const m2 of v) {
17631
- const $2 = s(m2), w2 = p(m2);
17632
- b2.push(`func (${a} ${i}) Handle${$2} (${w2} ${$2}) {`), b2.push(" // HACK implement"), b2.push("}");
17633
+ const $2 = [...m2._getContext().getAssociationMap()[C2._attributes.__id]].filter((v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand");
17634
+ for (const v of $2) {
17635
+ const d = s(v), N2 = p(v);
17636
+ b2.push(`func (${a} ${i}) Handle${d} (${N2} ${d}) {`), b2.push(" // HACK implement"), b2.push("}");
17633
17637
  }
17634
17638
  return [
17635
17639
  {
17636
17640
  type: "Agg",
17637
- imports: f,
17641
+ imports: h2,
17638
17642
  content: b2.join(`
17639
17643
  `)
17640
17644
  }
17641
17645
  ];
17642
17646
  }), e.commands._setEventCodeProvider(
17643
17647
  (C2) => {
17644
- const d = [], i = /* @__PURE__ */ new Set(), a = Object.values(C2.inner), l2 = s(C2), f = p(C2);
17645
- d.push(`type ${l2} struct {`);
17648
+ const m2 = [], i = /* @__PURE__ */ new Set(), a = Object.values(C2.inner), l2 = s(C2), h2 = p(C2);
17649
+ m2.push(`type ${l2} struct {`);
17646
17650
  for (const u of a)
17647
- d.push(` ${p(u)} ${o(i, u)}`);
17648
- d.push("}");
17651
+ m2.push(` ${p(u)} ${o(i, u)}`);
17652
+ m2.push("}");
17649
17653
  for (const u of a)
17650
- d.push(
17651
- `func (${f} ${l2}) Get${s(u)} () ${o(
17654
+ m2.push(
17655
+ `func (${h2} ${l2}) Get${s(u)} () ${o(
17652
17656
  i,
17653
17657
  u
17654
17658
  )} {`
17655
- ), d.push(` return ${f}.${p(u)}`), d.push("}");
17659
+ ), m2.push(` return ${h2}.${p(u)}`), m2.push("}");
17656
17660
  const b2 = [], g2 = [];
17657
17661
  for (const u of a)
17658
17662
  b2.push(`${p(u)} ${o(i, u)}`), g2.push(p(u));
17659
- return d.push(`func New${l2}(${b2.join(", ")}) ${l2} {`), d.push(" // HACK check value"), d.push(` return ${l2}{`), d.push(` ${g2.join(`,
17660
- `)},`), d.push(" }"), d.push("}"), [
17663
+ return m2.push(`func New${l2}(${b2.join(", ")}) ${l2} {`), m2.push(" // HACK check value"), m2.push(` return ${l2}{`), m2.push(` ${g2.join(`,
17664
+ `)},`), m2.push(" }"), m2.push("}"), [
17661
17665
  {
17662
17666
  type: "Event",
17663
17667
  imports: i,
17664
- content: d.join(`
17668
+ content: m2.join(`
17665
17669
  `)
17666
17670
  }
17667
17671
  ];
17668
17672
  }
17669
17673
  ), e.commands._setCodeFileProvider(() => {
17670
- const C2 = [], d = {}, i = [...n.value.namespace.split(/\./), n.value.moduleName], a = new S2(i, `${n.value.moduleName}.go`), l2 = [], f = new S2(i, `${n.value.moduleName}_value_object.go`), b2 = [];
17671
- function g2(w2) {
17672
- for (const c of Object.values(w2)) {
17674
+ const C2 = [], m2 = {}, i = [...n.value.namespace.split(/\./), n.value.moduleName], a = new S2(i, `${n.value.moduleName}.go`), l2 = [], h2 = new S2(i, `${n.value.moduleName}_value_object.go`), b2 = [];
17675
+ function g2(N2) {
17676
+ for (const c of Object.values(N2)) {
17673
17677
  if (!r2(c))
17674
17678
  continue;
17675
- const h2 = s(c);
17676
- if (d[`${i.join("/")}/${h2}`] === true)
17679
+ const f = s(c);
17680
+ if (m2[`${i.join("/")}/${f}`] === true)
17677
17681
  continue;
17678
17682
  const y3 = e.commands._genInfoCode(c);
17679
- y3.length !== 0 && (f.addImports(y3[0].imports), b2.push(y3[0].content), b2.push(""), d[`${i.join("/")}/${h2}`] = true);
17683
+ y3.length !== 0 && (h2.addImports(y3[0].imports), b2.push(y3[0].content), b2.push(""), m2[`${i.join("/")}/${f}`] = true);
17680
17684
  }
17681
17685
  }
17682
17686
  const u = e.states.designer.value._getContext().getCommands();
17683
- for (const w2 of u) {
17684
- g2(w2.inner);
17685
- const c = e.commands._genCommandCode(w2);
17686
- for (const h2 of c)
17687
- d[h2.content] !== true && (a.addImports(h2.imports), l2.push(h2.content));
17688
- }
17689
- const v = e.states.designer.value._getContext().getFacadeCommands();
17690
- for (const w2 of v) {
17691
- g2(w2.inner);
17692
- const c = e.commands._genFacadeCommandCode(w2);
17693
- for (const h2 of c)
17694
- d[h2.content] !== true && (a.addImports(h2.imports), l2.push(h2.content));
17695
- }
17696
- const m2 = e.states.designer.value._getContext().getAggs();
17697
- for (const w2 of m2) {
17698
- g2(w2.inner);
17699
- const c = e.commands._genAggCode(w2);
17700
- for (const h2 of c)
17701
- d[h2.content] !== true && (a.addImports(h2.imports), l2.push(h2.content));
17702
- }
17703
- const $2 = e.states.designer.value._getContext().getEvents();
17704
- for (const w2 of $2) {
17705
- g2(w2.inner);
17706
- const c = e.commands._genEventCode(w2);
17707
- for (const h2 of c)
17708
- d[h2.content] !== true && (a.addImports(h2.imports), l2.push(h2.content));
17687
+ for (const N2 of u) {
17688
+ g2(N2.inner);
17689
+ const c = e.commands._genCommandCode(N2);
17690
+ for (const f of c)
17691
+ m2[f.content] !== true && (a.addImports(f.imports), l2.push(f.content));
17692
+ }
17693
+ const $2 = e.states.designer.value._getContext().getFacadeCommands();
17694
+ for (const N2 of $2) {
17695
+ g2(N2.inner);
17696
+ const c = e.commands._genFacadeCommandCode(N2);
17697
+ for (const f of c)
17698
+ m2[f.content] !== true && (a.addImports(f.imports), l2.push(f.content));
17699
+ }
17700
+ const v = e.states.designer.value._getContext().getAggs();
17701
+ for (const N2 of v) {
17702
+ g2(N2.inner);
17703
+ const c = e.commands._genAggCode(N2);
17704
+ for (const f of c)
17705
+ m2[f.content] !== true && (a.addImports(f.imports), l2.push(f.content));
17706
+ }
17707
+ const d = e.states.designer.value._getContext().getEvents();
17708
+ for (const N2 of d) {
17709
+ g2(N2.inner);
17710
+ const c = e.commands._genEventCode(N2);
17711
+ for (const f of c)
17712
+ m2[f.content] !== true && (a.addImports(f.imports), l2.push(f.content));
17709
17713
  }
17710
17714
  return a.appendContentln(`package ${n.value.moduleName}`), a.appendContentln(""), a.getImports().length > 0 && (a.appendContentln("import ("), a.appendContentln(` ${[...a.getImports()].join(`
17711
17715
  `)}`), a.appendContentln(")")), a.appendContentln(l2.join(`
17712
- `)), f.appendContentln(`package ${n.value.moduleName}`), f.appendContentln(""), f.getImports().length > 0 && (f.appendContentln("import ("), f.appendContentln(` ${[...f.getImports()].map((w2) => `"${w2}"`).join(`
17713
- `)}`), f.appendContentln(")"), f.appendContentln("")), f.appendContentln(b2.join(`
17714
- `)), C2.push(a), C2.push(f), C2;
17716
+ `)), h2.appendContentln(`package ${n.value.moduleName}`), h2.appendContentln(""), h2.getImports().length > 0 && (h2.appendContentln("import ("), h2.appendContentln(` ${[...h2.getImports()].map((N2) => `"${N2}"`).join(`
17717
+ `)}`), h2.appendContentln(")"), h2.appendContentln("")), h2.appendContentln(b2.join(`
17718
+ `)), C2.push(a), C2.push(h2), C2;
17715
17719
  });
17716
17720
  }
17717
17721
  }));
17718
17722
  var M3 = ye.CSharpGeneratorAddition;
17719
- var xo = le2.createHotSwapPlugin(() => {
17723
+ var To = le2.createHotSwapPlugin(() => {
17720
17724
  const e = " ";
17721
17725
  function n(t, r2 = 1) {
17722
17726
  return t.split(`
@@ -17728,35 +17732,35 @@ var xo = le2.createHotSwapPlugin(() => {
17728
17732
  t.commands.clearCaches(), t.commands._setCommandCodeProvider(() => []), t.commands._setFacadeCommandCodeProvider(() => []), t.commands._setAggCodeProvider(() => []), t.commands._setEventCodeProvider(() => []), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => []), t.commands.setContext({});
17729
17733
  },
17730
17734
  mount({ api: t }) {
17731
- const r2 = t.states.context, o = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((i) => N2.stringToLowerCamel(i));
17735
+ const r2 = t.states.context, o = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((i) => w2.stringToLowerCamel(i));
17732
17736
  function s(i) {
17733
- return !o.includes(N2.stringToLowerCamel(i._attributes.name));
17737
+ return !o.includes(w2.stringToLowerCamel(i._attributes.name));
17734
17738
  }
17735
17739
  function p(i, a) {
17736
- return s(a) ? N2.stringToUpperCamel(a._attributes.name) : d(i, a);
17740
+ return s(a) ? w2.stringToUpperCamel(a._attributes.name) : m2(i, a);
17737
17741
  }
17738
17742
  function _(i) {
17739
- return N2.stringToUpperCamel(i._attributes.name);
17743
+ return w2.stringToUpperCamel(i._attributes.name);
17740
17744
  }
17741
17745
  function C2(i) {
17742
17746
  return i.has(M3.RecordStruct) ? " struct" : "";
17743
17747
  }
17744
- function d(i, a) {
17745
- const l2 = r2.value.additions, f = N2.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
17746
- return /\b(time|timestamp|date|deadline|expire)\b/.test(f) ? l2.has(M3.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(f) ? "int" : /\b(price)$/.test(f) ? "decimal" : /^(if|is)\b/.test(f) ? "bool" : Ee(a) && (a._attributes.type === "Id" || a._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(f)) ? "long" : "string";
17748
+ function m2(i, a) {
17749
+ const l2 = r2.value.additions, h2 = w2.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
17750
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(h2) ? l2.has(M3.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(h2) ? "int" : /\b(price)$/.test(h2) ? "decimal" : /^(if|is)\b/.test(h2) ? "bool" : je(a) && (a._attributes.type === "Id" || a._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(h2)) ? "long" : "string";
17747
17751
  }
17748
17752
  t.commands._setInfoCodeProvider(
17749
17753
  (i) => {
17750
- const a = r2.value.additions, l2 = /* @__PURE__ */ new Set(), f = [];
17751
- return f.push(
17752
- `public record${C2(a)} ${_(i)}(${d(
17754
+ const a = r2.value.additions, l2 = /* @__PURE__ */ new Set(), h2 = [];
17755
+ return h2.push(
17756
+ `public record${C2(a)} ${_(i)}(${m2(
17753
17757
  l2,
17754
17758
  i
17755
17759
  )} value);`
17756
17760
  ), [
17757
17761
  {
17758
17762
  type: "Info",
17759
- content: f.join(`
17763
+ content: h2.join(`
17760
17764
  `),
17761
17765
  imports: l2
17762
17766
  }
@@ -17764,21 +17768,21 @@ var xo = le2.createHotSwapPlugin(() => {
17764
17768
  }
17765
17769
  ), t.commands._setCommandCodeProvider(
17766
17770
  (i) => {
17767
- const a = [], l2 = r2.value.additions, f = /* @__PURE__ */ new Set(), b2 = _(i);
17771
+ const a = [], l2 = r2.value.additions, h2 = /* @__PURE__ */ new Set(), b2 = _(i);
17768
17772
  {
17769
17773
  const g2 = [], u = Object.values(i.inner);
17770
17774
  g2.push(`public record${C2(l2)} ${b2}`), g2.push("(");
17771
- const v = [];
17772
- for (const m2 of u) {
17773
- const $2 = _(m2);
17774
- v.push(`${p(f, m2)} ${N2.upperFirst($2)}`);
17775
+ const $2 = [];
17776
+ for (const v of u) {
17777
+ const d = _(v);
17778
+ $2.push(`${p(h2, v)} ${w2.upperFirst(d)}`);
17775
17779
  }
17776
- g2.push(` ${v.join(`,
17780
+ g2.push(` ${$2.join(`,
17777
17781
  `)}`), g2.push(")"), g2.push("{"), g2.push("}"), a.push({
17778
17782
  type: "Command",
17779
17783
  content: g2.join(`
17780
17784
  `),
17781
- imports: f
17785
+ imports: h2
17782
17786
  });
17783
17787
  }
17784
17788
  {
@@ -17787,28 +17791,28 @@ var xo = le2.createHotSwapPlugin(() => {
17787
17791
  type: "CommandHandler",
17788
17792
  content: u.join(`
17789
17793
  `),
17790
- imports: f
17794
+ imports: h2
17791
17795
  });
17792
17796
  }
17793
17797
  return a;
17794
17798
  }
17795
17799
  ), t.commands._setFacadeCommandCodeProvider(
17796
17800
  (i) => {
17797
- const a = [], l2 = r2.value.additions, f = /* @__PURE__ */ new Set(), b2 = _(i);
17801
+ const a = [], l2 = r2.value.additions, h2 = /* @__PURE__ */ new Set(), b2 = _(i);
17798
17802
  {
17799
17803
  const g2 = [], u = Object.values(i.inner);
17800
17804
  g2.push(`public record${C2(l2)} ${b2}`), g2.push("(");
17801
- const v = [];
17802
- for (const m2 of u) {
17803
- const $2 = _(m2);
17804
- v.push(`${p(f, m2)} ${N2.upperFirst($2)}`);
17805
+ const $2 = [];
17806
+ for (const v of u) {
17807
+ const d = _(v);
17808
+ $2.push(`${p(h2, v)} ${w2.upperFirst(d)}`);
17805
17809
  }
17806
- g2.push(` ${v.join(`,
17810
+ g2.push(` ${$2.join(`,
17807
17811
  `)}`), g2.push(")"), g2.push("{"), g2.push("}"), a.push({
17808
17812
  type: "FacadeCommand",
17809
17813
  content: g2.join(`
17810
17814
  `),
17811
- imports: f
17815
+ imports: h2
17812
17816
  });
17813
17817
  }
17814
17818
  {
@@ -17817,23 +17821,23 @@ var xo = le2.createHotSwapPlugin(() => {
17817
17821
  type: "FacadeCommandHandler",
17818
17822
  content: u.join(`
17819
17823
  `),
17820
- imports: f
17824
+ imports: h2
17821
17825
  });
17822
17826
  }
17823
17827
  return a;
17824
17828
  }
17825
17829
  ), t.commands._setAggCodeProvider(
17826
17830
  (i) => {
17827
- const a = [], l2 = t.states.designer.value, f = r2.value.additions;
17831
+ const a = [], l2 = t.states.designer.value, h2 = r2.value.additions;
17828
17832
  {
17829
- const b2 = /* @__PURE__ */ new Set(), g2 = [], u = f.has(M3.AggInterface) ? ` : ${r2.value.aggInterface}` : "";
17833
+ const b2 = /* @__PURE__ */ new Set(), g2 = [], u = h2.has(M3.AggInterface) ? ` : ${r2.value.aggInterface}` : "";
17830
17834
  g2.push(`public interface I${_(i)}${u}`), g2.push("{");
17831
- const v = [], m2 = [...l2._getContext().getAssociationMap()[i._attributes.__id]].filter(($2) => $2._attributes.rule === "Command" || $2._attributes.rule === "FacadeCommand");
17832
- for (const $2 of m2) {
17833
- const w2 = _($2);
17834
- v.push(`void Handle${w2}(${w2} command);`);
17835
+ const $2 = [], v = [...l2._getContext().getAssociationMap()[i._attributes.__id]].filter((d) => d._attributes.rule === "Command" || d._attributes.rule === "FacadeCommand");
17836
+ for (const d of v) {
17837
+ const N2 = _(d);
17838
+ $2.push(`void Handle${N2}(${N2} command);`);
17835
17839
  }
17836
- g2.push(` ${v.join(`
17840
+ g2.push(` ${$2.join(`
17837
17841
 
17838
17842
  `)}`), g2.push("}"), g2.push(""), a.push({
17839
17843
  type: "Agg",
@@ -17843,56 +17847,56 @@ var xo = le2.createHotSwapPlugin(() => {
17843
17847
  });
17844
17848
  }
17845
17849
  {
17846
- const b2 = /* @__PURE__ */ new Set(), g2 = [], u = _(i), v = Object.values(i.inner), m2 = f.has(M3.AggInterface) ? `, ${r2.value.aggInterface}` : "";
17847
- if (f.has(M3.PrimaryConstructor)) {
17848
- const $2 = [...l2._getContext().getAssociationMap()[i._attributes.__id]].filter((h2) => h2._attributes.rule === "Command" || h2._attributes.rule === "FacadeCommand"), w2 = [];
17849
- for (const h2 of v) {
17850
- const y3 = _(h2);
17851
- w2.push(`${p(b2, h2)} ${N2.lowerFirst(y3)}`);
17850
+ const b2 = /* @__PURE__ */ new Set(), g2 = [], u = _(i), $2 = Object.values(i.inner), v = h2.has(M3.AggInterface) ? `, ${r2.value.aggInterface}` : "";
17851
+ if (h2.has(M3.PrimaryConstructor)) {
17852
+ const d = [...l2._getContext().getAssociationMap()[i._attributes.__id]].filter((f) => f._attributes.rule === "Command" || f._attributes.rule === "FacadeCommand"), N2 = [];
17853
+ for (const f of $2) {
17854
+ const y3 = _(f);
17855
+ N2.push(`${p(b2, f)} ${w2.lowerFirst(y3)}`);
17852
17856
  }
17853
- g2.push(`public class ${u}`), g2.push("("), g2.push(` ${w2.join(`,
17854
- `)}`), g2.push(`): I${u}${m2}`), g2.push("{");
17855
- for (const h2 of v) {
17856
- const y3 = _(h2);
17857
+ g2.push(`public class ${u}`), g2.push("("), g2.push(` ${N2.join(`,
17858
+ `)}`), g2.push(`): I${u}${v}`), g2.push("{");
17859
+ for (const f of $2) {
17860
+ const y3 = _(f);
17857
17861
  g2.push(
17858
- ` public ${p(b2, h2)} ${N2.upperFirst(
17862
+ ` public ${p(b2, f)} ${w2.upperFirst(
17859
17863
  y3
17860
- )} { get; private set; } = ${N2.lowerFirst(y3)};`
17864
+ )} { get; private set; } = ${w2.lowerFirst(y3)};`
17861
17865
  ), g2.push("");
17862
17866
  }
17863
17867
  const c = [];
17864
- for (const h2 of $2) {
17865
- const y3 = _(h2);
17868
+ for (const f of d) {
17869
+ const y3 = _(f);
17866
17870
  c.push(`public void Handle${y3}(${y3} command)`), c.push("{"), c.push(" // HACK implement"), c.push("}"), c.push("");
17867
17871
  }
17868
17872
  g2.push(` ${c.join(`
17869
17873
  `)}`), g2.push("}");
17870
17874
  } else {
17871
- const $2 = [...l2._getContext().getAssociationMap()[i._attributes.__id]].filter((h2) => h2._attributes.rule === "Command" || h2._attributes.rule === "FacadeCommand");
17872
- g2.push(`public class ${u} : I${u}${m2}`), g2.push("{");
17873
- for (const h2 of v) {
17874
- const y3 = _(h2);
17875
+ const d = [...l2._getContext().getAssociationMap()[i._attributes.__id]].filter((f) => f._attributes.rule === "Command" || f._attributes.rule === "FacadeCommand");
17876
+ g2.push(`public class ${u} : I${u}${v}`), g2.push("{");
17877
+ for (const f of $2) {
17878
+ const y3 = _(f);
17875
17879
  g2.push(
17876
- ` public ${p(b2, h2)} ${N2.lowerFirst(
17880
+ ` public ${p(b2, f)} ${w2.lowerFirst(
17877
17881
  y3
17878
17882
  )} { get; private set; }`
17879
17883
  );
17880
17884
  }
17881
17885
  g2.push("");
17882
- const w2 = [];
17883
- for (const h2 of v) {
17884
- const y3 = _(h2);
17885
- w2.push(`${p(b2, h2)} ${y3}`);
17886
+ const N2 = [];
17887
+ for (const f of $2) {
17888
+ const y3 = _(f);
17889
+ N2.push(`${p(b2, f)} ${y3}`);
17886
17890
  }
17887
- g2.push(` public ${u}(${w2.join(", ")})`), g2.push(" {");
17888
- for (const h2 of v) {
17889
- const y3 = _(h2);
17890
- g2.push(` ${y3} = ${N2.lowerFirst(y3)};`);
17891
+ g2.push(` public ${u}(${N2.join(", ")})`), g2.push(" {");
17892
+ for (const f of $2) {
17893
+ const y3 = _(f);
17894
+ g2.push(` ${y3} = ${w2.lowerFirst(y3)};`);
17891
17895
  }
17892
17896
  g2.push(" }");
17893
17897
  const c = [];
17894
- for (const h2 of $2) {
17895
- const y3 = _(h2);
17898
+ for (const f of d) {
17899
+ const y3 = _(f);
17896
17900
  c.push(`public void Handle${y3}(${y3} command)`), c.push("{"), c.push(" // HACK implement"), c.push("}"), c.push("");
17897
17901
  }
17898
17902
  g2.push(` ${c.join(`
@@ -17909,12 +17913,12 @@ var xo = le2.createHotSwapPlugin(() => {
17909
17913
  }
17910
17914
  ), t.commands._setEventCodeProvider(
17911
17915
  (i) => {
17912
- const a = r2.value.additions, l2 = _(i), f = /* @__PURE__ */ new Set(), b2 = Object.values(i.inner), g2 = [];
17916
+ const a = r2.value.additions, l2 = _(i), h2 = /* @__PURE__ */ new Set(), b2 = Object.values(i.inner), g2 = [];
17913
17917
  g2.push(`public record${C2(a)} ${l2}`), g2.push("(");
17914
17918
  const u = [];
17915
- for (const v of b2) {
17916
- const m2 = _(v);
17917
- u.push(`${p(f, v)} ${N2.upperFirst(m2)}`);
17919
+ for (const $2 of b2) {
17920
+ const v = _($2);
17921
+ u.push(`${p(h2, $2)} ${w2.upperFirst(v)}`);
17918
17922
  }
17919
17923
  return g2.push(` ${u.join(`,
17920
17924
  `)}`), g2.push(")"), g2.push("{"), g2.push("}"), [
@@ -17922,83 +17926,83 @@ var xo = le2.createHotSwapPlugin(() => {
17922
17926
  type: "Event",
17923
17927
  content: g2.join(`
17924
17928
  `),
17925
- imports: f
17929
+ imports: h2
17926
17930
  }
17927
17931
  ];
17928
17932
  }
17929
17933
  ), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => {
17930
- const i = [], a = {}, l2 = [...r2.value.namespace.split(/\./), N2.stringToUpperCamel(r2.value.moduleName)];
17931
- function f(m2) {
17932
- for (const $2 of Object.values(m2)) {
17933
- if (!s($2))
17934
+ const i = [], a = {}, l2 = [...r2.value.namespace.split(/\./), w2.stringToUpperCamel(r2.value.moduleName)];
17935
+ function h2(v) {
17936
+ for (const d of Object.values(v)) {
17937
+ if (!s(d))
17934
17938
  continue;
17935
- const w2 = _($2) + ".cs";
17936
- if (a[`${l2.join("/")}/${w2}`] === true)
17939
+ const N2 = _(d) + ".cs";
17940
+ if (a[`${l2.join("/")}/${N2}`] === true)
17937
17941
  continue;
17938
- const c = t.commands._genInfoCode($2);
17942
+ const c = t.commands._genInfoCode(d);
17939
17943
  if (c.length === 0)
17940
17944
  continue;
17941
- const h2 = new S2(l2, w2);
17945
+ const f = new S2(l2, N2);
17942
17946
  for (const y3 of c[0].imports)
17943
- h2.appendContentln(`using ${y3};`);
17944
- h2.appendContentln(""), h2.appendContentln(
17945
- `namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
17946
- ), h2.appendContentln("{"), h2.appendContentln(n(c[0].content)), h2.appendContentln("}"), i.push(h2), a[`${l2.join("/")}/${w2}`] = true;
17947
+ f.appendContentln(`using ${y3};`);
17948
+ f.appendContentln(""), f.appendContentln(
17949
+ `namespace ${r2.value.namespace}.${w2.stringToUpperCamel(r2.value.moduleName)}`
17950
+ ), f.appendContentln("{"), f.appendContentln(n(c[0].content)), f.appendContentln("}"), i.push(f), a[`${l2.join("/")}/${N2}`] = true;
17947
17951
  }
17948
17952
  }
17949
17953
  const b2 = t.states.designer.value._getContext().getCommands();
17950
- for (const m2 of b2) {
17951
- f(m2.inner);
17952
- const $2 = _(m2) + ".cs", w2 = t.commands._genCommandCode(m2), c = new S2(l2, $2);
17953
- for (const h2 of w2)
17954
- if (h2.type === "Command") {
17955
- c.addImports(h2.imports);
17956
- for (const y3 of h2.imports)
17954
+ for (const v of b2) {
17955
+ h2(v.inner);
17956
+ const d = _(v) + ".cs", N2 = t.commands._genCommandCode(v), c = new S2(l2, d);
17957
+ for (const f of N2)
17958
+ if (f.type === "Command") {
17959
+ c.addImports(f.imports);
17960
+ for (const y3 of f.imports)
17957
17961
  c.appendContentln(`using ${y3};`);
17958
17962
  c.appendContentln(""), c.appendContentln(
17959
- `namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
17960
- ), c.appendContentln("{"), c.appendContentln(n(h2.content)), c.appendContentln("}");
17963
+ `namespace ${r2.value.namespace}.${w2.stringToUpperCamel(r2.value.moduleName)}`
17964
+ ), c.appendContentln("{"), c.appendContentln(n(f.content)), c.appendContentln("}");
17961
17965
  }
17962
17966
  i.push(c);
17963
17967
  }
17964
17968
  const g2 = t.states.designer.value._getContext().getFacadeCommands();
17965
- for (const m2 of g2) {
17966
- f(m2.inner);
17967
- const $2 = _(m2) + ".cs", w2 = t.commands._genFacadeCommandCode(m2), c = new S2(l2, $2);
17968
- c.addImports(w2[0].imports);
17969
- for (const h2 of w2[0].imports)
17970
- c.appendContentln(`using ${h2};`);
17969
+ for (const v of g2) {
17970
+ h2(v.inner);
17971
+ const d = _(v) + ".cs", N2 = t.commands._genFacadeCommandCode(v), c = new S2(l2, d);
17972
+ c.addImports(N2[0].imports);
17973
+ for (const f of N2[0].imports)
17974
+ c.appendContentln(`using ${f};`);
17971
17975
  c.appendContentln(""), c.appendContentln(
17972
- `namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
17973
- ), c.appendContentln("{"), c.appendContentln(n(w2[0].content)), c.appendContentln("}"), i.push(c);
17976
+ `namespace ${r2.value.namespace}.${w2.stringToUpperCamel(r2.value.moduleName)}`
17977
+ ), c.appendContentln("{"), c.appendContentln(n(N2[0].content)), c.appendContentln("}"), i.push(c);
17974
17978
  }
17975
17979
  const u = t.states.designer.value._getContext().getAggs();
17976
- for (const m2 of u) {
17977
- f(m2.inner);
17978
- const $2 = t.commands._genAggCode(m2), w2 = _(m2) + ".cs", c = new S2(l2, w2);
17979
- for (const h2 of $2) {
17980
- c.addImports(h2.imports);
17981
- for (const y3 of h2.imports)
17980
+ for (const v of u) {
17981
+ h2(v.inner);
17982
+ const d = t.commands._genAggCode(v), N2 = _(v) + ".cs", c = new S2(l2, N2);
17983
+ for (const f of d) {
17984
+ c.addImports(f.imports);
17985
+ for (const y3 of f.imports)
17982
17986
  c.appendContentln(`using ${y3};`);
17983
17987
  c.appendContentln("");
17984
17988
  }
17985
17989
  c.appendContentln(
17986
- `namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
17990
+ `namespace ${r2.value.namespace}.${w2.stringToUpperCamel(r2.value.moduleName)}`
17987
17991
  ), c.appendContentln("{");
17988
- for (const h2 of $2)
17989
- c.appendContentln(n(h2.content));
17992
+ for (const f of d)
17993
+ c.appendContentln(n(f.content));
17990
17994
  c.appendContentln("}"), i.push(c);
17991
17995
  }
17992
- const v = t.states.designer.value._getContext().getEvents();
17993
- for (const m2 of v) {
17994
- f(m2.inner);
17995
- const $2 = _(m2) + ".cs", w2 = t.commands._genEventCode(m2), c = new S2(l2, $2);
17996
- c.addImports(w2[0].imports);
17997
- for (const h2 of w2[0].imports)
17998
- c.appendContentln(`using ${h2};`);
17996
+ const $2 = t.states.designer.value._getContext().getEvents();
17997
+ for (const v of $2) {
17998
+ h2(v.inner);
17999
+ const d = _(v) + ".cs", N2 = t.commands._genEventCode(v), c = new S2(l2, d);
18000
+ c.addImports(N2[0].imports);
18001
+ for (const f of N2[0].imports)
18002
+ c.appendContentln(`using ${f};`);
17999
18003
  c.appendContentln(""), c.appendContentln(
18000
- `namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
18001
- ), c.appendContentln("{"), c.appendContentln(n(w2[0].content)), c.appendContentln("}"), i.push(c);
18004
+ `namespace ${r2.value.namespace}.${w2.stringToUpperCamel(r2.value.moduleName)}`
18005
+ ), c.appendContentln("{"), c.appendContentln(n(N2[0].content)), c.appendContentln("}"), i.push(c);
18002
18006
  }
18003
18007
  return i;
18004
18008
  });
@@ -18386,9 +18390,9 @@ async function execute5(args) {
18386
18390
  } else if (args.language === So.Language.Kotlin) {
18387
18391
  le2.registerPlugin(Oo);
18388
18392
  } else if (args.language === So.Language.CSharp) {
18389
- le2.registerPlugin(xo);
18390
- } else if (args.language === So.Language.Go) {
18391
18393
  le2.registerPlugin(To);
18394
+ } else if (args.language === So.Language.Go) {
18395
+ le2.registerPlugin(xo);
18392
18396
  } else {
18393
18397
  isNever(args.language);
18394
18398
  }