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

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.
@@ -13380,12 +13380,14 @@ var enDict = {
13380
13380
  "question.subcommand.genCode.kotlin.additions.timezone": "Use [OffsetDateTime] to represent time",
13381
13381
  "question.subcommand.genCode.java.additions": "Select additional options",
13382
13382
  "question.subcommand.genCode.java.additions.springFramework": "Use spring container for development",
13383
+ "question.subcommand.genCode.java.additions.jpa": "Use jpa for persistence",
13383
13384
  "question.subcommand.genCode.java.additions.lombok": "Use [@Getter, @RequiredArgsConstructor...] of lombok",
13384
13385
  "question.subcommand.genCode.java.additions.lombokBuilder": "Use [@Builder] of lombok to avoid long parameter lists",
13385
13386
  "question.subcommand.genCode.java.additions.commandHandler": "Generate CommandHandler for each command",
13386
- "question.subcommand.genCode.java.additions.recordVakueObject": "Use [java record] to generate value object (JDK16+)",
13387
+ "question.subcommand.genCode.java.additions.recordValueObject": "Use [java record] to generate value object (JDK16+)",
13387
13388
  "question.subcommand.genCode.java.additions.timezone": "Use [OffsetDateTime] to represent time",
13388
13389
  "question.subcommand.genCode.java.nonNullAnnotation": "Select non-null annotation",
13390
+ "question.subcommand.genCode.java.idGenStrategy": "Select ID generation strategy",
13389
13391
  "question.subcommand.genCode.additions.hint": "- Space to select. Return to submit",
13390
13392
  "question.subcommand.init": "Initialize project",
13391
13393
  "question.subcommand.updateWorkspace": "Update Workspace",
@@ -13428,12 +13430,14 @@ var zhDict = {
13428
13430
  "question.subcommand.genCode.kotlin.additions.timezone": "\u4F7F\u7528\u5E26\u65F6\u533A\u7684OffsetDateTime\u8868\u793A\u65F6\u95F4",
13429
13431
  "question.subcommand.genCode.java.additions": "\u9009\u62E9\u9644\u52A0\u9009\u9879",
13430
13432
  "question.subcommand.genCode.java.additions.springFramework": "\u4F7F\u7528spring\u5BB9\u5668\u8FDB\u884C\u5F00\u53D1",
13433
+ "question.subcommand.genCode.java.additions.jpa": "\u4F7F\u7528jpa\u8FDB\u884C\u6301\u4E45\u5316",
13431
13434
  "question.subcommand.genCode.java.additions.lombok": "\u4F7F\u7528lombok\u5E38\u7528\u7684Getter\u7B49\u6CE8\u89E3",
13432
13435
  "question.subcommand.genCode.java.additions.lombokBuilder": "\u4F7F\u7528lombok\u7684Builder\u6CE8\u89E3\u907F\u514D\u957F\u53C2\u6570\u5217\u8868",
13433
13436
  "question.subcommand.genCode.java.additions.commandHandler": "\u4E3A\u6BCF\u4E2A\u547D\u4EE4\u751F\u6210CommandHandler",
13434
- "question.subcommand.genCode.java.additions.recordVakueObject": "\u4F7F\u7528record\u7C7B\u751F\u6210\u503C\u5BF9\u8C61\uFF08JDK16+\uFF09",
13437
+ "question.subcommand.genCode.java.additions.recordValueObject": "\u4F7F\u7528record\u7C7B\u751F\u6210\u503C\u5BF9\u8C61\uFF08JDK16+\uFF09",
13435
13438
  "question.subcommand.genCode.java.additions.timezone": "\u4F7F\u7528\u5E26\u65F6\u533A\u7684OffsetDateTime\u8868\u793A\u65F6\u95F4",
13436
13439
  "question.subcommand.genCode.java.nonNullAnnotation": "\u9009\u62E9\u975E\u7A7A\u6CE8\u89E3",
13440
+ "question.subcommand.genCode.java.idGenStrategy": "\u9009\u62E9ID\u751F\u6210\u7B56\u7565",
13437
13441
  "question.subcommand.genCode.additions.hint": "- \u7A7A\u683C\u52FE\u9009\uFF0C\u56DE\u8F66\u63D0\u4EA4",
13438
13442
  "question.subcommand.init": "\u521D\u59CB\u5316\u9879\u76EE",
13439
13443
  "question.subcommand.updateWorkspace": "\u66F4\u65B0\u4F9D\u8D56",
@@ -13507,7 +13511,7 @@ function onCancel() {
13507
13511
  // src/utils/package-info.ts
13508
13512
  var package_info_default = {
13509
13513
  "name": "@ddd-tool/domain-designer-cli",
13510
- "version": "0.1.0-beta.6",
13514
+ "version": "0.1.0-beta.8",
13511
13515
  "private": true,
13512
13516
  "type": "module",
13513
13517
  "files": [
@@ -13522,7 +13526,7 @@ var package_info_default = {
13522
13526
  },
13523
13527
  "readme": "ERROR: No README data found!",
13524
13528
  "homepage": "https://github.com/ddd-tool/domain-designer-cli-node#readme",
13525
- "_id": "@ddd-tool/domain-designer-cli@0.1.0-beta.6"
13529
+ "_id": "@ddd-tool/domain-designer-cli@0.1.0-beta.8"
13526
13530
  };
13527
13531
 
13528
13532
  // src/domain/environment-agg/index.ts
@@ -13636,7 +13640,7 @@ var agg2 = X(() => {
13636
13640
  );
13637
13641
  const executable = import_path2.default.basename(process.argv[0]);
13638
13642
  const packageManager = (0, import_reactivity3.ref)("npm" /* NPM */);
13639
- if (executable.includes("bun")) {
13643
+ if (executable.includes("bun") || process.argv[1].includes("/.bun/")) {
13640
13644
  packageManager.value = "bun" /* BUN */;
13641
13645
  } else if (executable.includes("node")) {
13642
13646
  if (checkPnpm()) {
@@ -14890,70 +14894,70 @@ function Mn() {
14890
14894
  }
14891
14895
  process.env.NODE_ENV !== "production" && Mn();
14892
14896
 
14893
- // node_modules/.pnpm/@ddd-tool+domain-designer-g_df80efa3415c88fc496f78b3e9988a46/node_modules/@ddd-tool/domain-designer-generator/index.js
14897
+ // node_modules/.pnpm/@ddd-tool+domain-designer-g_65c72307a129f35df6ab1b69bad098eb/node_modules/@ddd-tool/domain-designer-generator/index.js
14894
14898
  // @__NO_SIDE_EFFECTS__
14895
- function Kn(e) {
14899
+ function Bn(e) {
14896
14900
  const n = /* @__PURE__ */ Object.create(null);
14897
14901
  for (const t of e.split(",")) n[t] = 1;
14898
14902
  return (t) => t in n;
14899
14903
  }
14900
14904
  process.env.NODE_ENV !== "production" && Object.freeze({});
14901
14905
  process.env.NODE_ENV !== "production" && Object.freeze([]);
14902
- var Fe = Object.assign;
14903
- var zn = Object.prototype.hasOwnProperty;
14904
- var Ve2 = (e, n) => zn.call(e, n);
14905
- var J = Array.isArray;
14906
- var ne2 = (e) => pn2(e) === "[object Map]";
14907
- var Bn = (e) => typeof e == "function";
14908
- var Un = (e) => typeof e == "string";
14909
- var ce2 = (e) => typeof e == "symbol";
14910
- var ye = (e) => e !== null && typeof e == "object";
14911
- var Gn = Object.prototype.toString;
14912
- var pn2 = (e) => Gn.call(e);
14913
- var dn2 = (e) => pn2(e).slice(8, -1);
14914
- var Je = (e) => Un(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e;
14906
+ var Pe = Object.assign;
14907
+ var Gn = Object.prototype.hasOwnProperty;
14908
+ var Ve2 = (e, n) => Gn.call(e, n);
14909
+ var Y = Array.isArray;
14910
+ var te = (e) => dn2(e) === "[object Map]";
14911
+ var Un = (e) => typeof e == "function";
14912
+ var zn = (e) => typeof e == "string";
14913
+ var ue = (e) => typeof e == "symbol";
14914
+ var je = (e) => e !== null && typeof e == "object";
14915
+ var Jn = Object.prototype.toString;
14916
+ var dn2 = (e) => Jn.call(e);
14917
+ var mn2 = (e) => dn2(e).slice(8, -1);
14918
+ var Ye = (e) => zn(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e;
14915
14919
  var Wn = (e) => {
14916
14920
  const n = /* @__PURE__ */ Object.create(null);
14917
14921
  return (t) => n[t] || (n[t] = e(t));
14918
14922
  };
14919
- var Jn = Wn((e) => e.charAt(0).toUpperCase() + e.slice(1));
14920
- var Y = (e, n) => !Object.is(e, n);
14923
+ var Yn = Wn((e) => e.charAt(0).toUpperCase() + e.slice(1));
14924
+ var q = (e, n) => !Object.is(e, n);
14921
14925
  function X3(e, ...n) {
14922
14926
  }
14923
- var S2;
14927
+ var A;
14924
14928
  var fn2 = 0;
14925
- var te;
14926
14929
  var oe2;
14927
- function Yn(e, n = false) {
14930
+ var se2;
14931
+ function qn(e, n = false) {
14928
14932
  if (e.flags |= 8, n) {
14929
- e.next = oe2, oe2 = e;
14933
+ e.next = se2, se2 = e;
14930
14934
  return;
14931
14935
  }
14932
- e.next = te, te = e;
14936
+ e.next = oe2, oe2 = e;
14933
14937
  }
14934
- function Ye() {
14938
+ function qe() {
14935
14939
  fn2++;
14936
14940
  }
14937
14941
  function Ze() {
14938
14942
  if (--fn2 > 0)
14939
14943
  return;
14940
- if (oe2) {
14941
- let n = oe2;
14942
- for (oe2 = void 0; n; ) {
14944
+ if (se2) {
14945
+ let n = se2;
14946
+ for (se2 = void 0; n; ) {
14943
14947
  const t = n.next;
14944
14948
  n.next = void 0, n.flags &= -9, n = t;
14945
14949
  }
14946
14950
  }
14947
14951
  let e;
14948
- for (; te; ) {
14949
- let n = te;
14950
- for (te = void 0; n; ) {
14952
+ for (; oe2; ) {
14953
+ let n = oe2;
14954
+ for (oe2 = void 0; n; ) {
14951
14955
  const t = n.next;
14952
14956
  if (n.next = void 0, n.flags &= -9, n.flags & 1)
14953
14957
  try {
14954
14958
  n.trigger();
14955
- } catch (o) {
14956
- e || (e = o);
14959
+ } catch (r2) {
14960
+ e || (e = r2);
14957
14961
  }
14958
14962
  n = t;
14959
14963
  }
@@ -14964,102 +14968,102 @@ function Zn(e) {
14964
14968
  for (let n = e.deps; n; n = n.nextDep)
14965
14969
  n.version = -1, n.prevActiveLink = n.dep.activeLink, n.dep.activeLink = n;
14966
14970
  }
14967
- function qn(e) {
14968
- let n, t = e.depsTail, o = t;
14969
- for (; o; ) {
14970
- const s = o.prevDep;
14971
- o.version === -1 ? (o === t && (t = s), hn2(o), Qn(o)) : n = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
14971
+ function Qn(e) {
14972
+ let n, t = e.depsTail, r2 = t;
14973
+ for (; r2; ) {
14974
+ const o = r2.prevDep;
14975
+ r2.version === -1 ? (r2 === t && (t = o), vn2(r2), et(r2)) : n = r2, r2.dep.activeLink = r2.prevActiveLink, r2.prevActiveLink = void 0, r2 = o;
14972
14976
  }
14973
14977
  e.deps = n, e.depsTail = t;
14974
14978
  }
14975
14979
  function Xn(e) {
14976
14980
  for (let n = e.deps; n; n = n.nextDep)
14977
- if (n.dep.version !== n.version || n.dep.computed && (mn2(n.dep.computed) || n.dep.version !== n.version))
14981
+ if (n.dep.version !== n.version || n.dep.computed && (hn2(n.dep.computed) || n.dep.version !== n.version))
14978
14982
  return true;
14979
14983
  return !!e._dirty;
14980
14984
  }
14981
- function mn2(e) {
14982
- if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === se2))
14985
+ function hn2(e) {
14986
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === re2))
14983
14987
  return;
14984
- e.globalVersion = se2;
14988
+ e.globalVersion = re2;
14985
14989
  const n = e.dep;
14986
14990
  if (e.flags |= 2, n.version > 0 && !e.isSSR && e.deps && !Xn(e)) {
14987
14991
  e.flags &= -3;
14988
14992
  return;
14989
14993
  }
14990
- const t = S2, o = R2;
14991
- S2 = e, R2 = true;
14994
+ const t = A, r2 = R2;
14995
+ A = e, R2 = true;
14992
14996
  try {
14993
14997
  Zn(e);
14994
- const s = e.fn(e._value);
14995
- (n.version === 0 || Y(s, e._value)) && (e._value = s, n.version++);
14996
- } catch (s) {
14997
- throw n.version++, s;
14998
+ const o = e.fn(e._value);
14999
+ (n.version === 0 || q(o, e._value)) && (e._value = o, n.version++);
15000
+ } catch (o) {
15001
+ throw n.version++, o;
14998
15002
  } finally {
14999
- S2 = t, R2 = o, qn(e), e.flags &= -3;
15003
+ A = t, R2 = r2, Qn(e), e.flags &= -3;
15000
15004
  }
15001
15005
  }
15002
- function hn2(e, n = false) {
15003
- const { dep: t, prevSub: o, nextSub: s } = e;
15004
- if (o && (o.nextSub = s, e.prevSub = void 0), s && (s.prevSub = o, e.nextSub = void 0), process.env.NODE_ENV !== "production" && t.subsHead === e && (t.subsHead = s), t.subs === e && (t.subs = o, !o && t.computed)) {
15006
+ function vn2(e, n = false) {
15007
+ const { dep: t, prevSub: r2, nextSub: o } = e;
15008
+ if (r2 && (r2.nextSub = o, e.prevSub = void 0), o && (o.prevSub = r2, e.nextSub = void 0), process.env.NODE_ENV !== "production" && t.subsHead === e && (t.subsHead = o), t.subs === e && (t.subs = r2, !r2 && t.computed)) {
15005
15009
  t.computed.flags &= -5;
15006
- for (let a = t.computed.deps; a; a = a.nextDep)
15007
- hn2(a, true);
15010
+ for (let s = t.computed.deps; s; s = s.nextDep)
15011
+ vn2(s, true);
15008
15012
  }
15009
15013
  !n && !--t.sc && t.map && t.map.delete(t.key);
15010
15014
  }
15011
- function Qn(e) {
15015
+ function et(e) {
15012
15016
  const { prevDep: n, nextDep: t } = e;
15013
15017
  n && (n.nextDep = t, e.prevDep = void 0), t && (t.prevDep = n, e.nextDep = void 0);
15014
15018
  }
15015
15019
  var R2 = true;
15016
15020
  var gn2 = [];
15017
- function et() {
15021
+ function nt() {
15018
15022
  gn2.push(R2), R2 = false;
15019
15023
  }
15020
- function nt() {
15024
+ function tt() {
15021
15025
  const e = gn2.pop();
15022
15026
  R2 = e === void 0 ? true : e;
15023
15027
  }
15024
- var se2 = 0;
15025
- var tt = class {
15028
+ var re2 = 0;
15029
+ var ot2 = class {
15026
15030
  constructor(n, t) {
15027
15031
  this.sub = n, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
15028
15032
  }
15029
15033
  };
15030
- var qe = class {
15034
+ var Qe = class {
15031
15035
  constructor(n) {
15032
15036
  this.computed = n, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
15033
15037
  }
15034
15038
  track(n) {
15035
- if (!S2 || !R2 || S2 === this.computed)
15039
+ if (!A || !R2 || A === this.computed)
15036
15040
  return;
15037
15041
  let t = this.activeLink;
15038
- if (t === void 0 || t.sub !== S2)
15039
- t = this.activeLink = new tt(S2, this), S2.deps ? (t.prevDep = S2.depsTail, S2.depsTail.nextDep = t, S2.depsTail = t) : S2.deps = S2.depsTail = t, vn2(t);
15042
+ if (t === void 0 || t.sub !== A)
15043
+ t = this.activeLink = new ot2(A, this), A.deps ? (t.prevDep = A.depsTail, A.depsTail.nextDep = t, A.depsTail = t) : A.deps = A.depsTail = t, _n2(t);
15040
15044
  else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
15041
- const o = t.nextDep;
15042
- o.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = o), t.prevDep = S2.depsTail, t.nextDep = void 0, S2.depsTail.nextDep = t, S2.depsTail = t, S2.deps === t && (S2.deps = o);
15045
+ const r2 = t.nextDep;
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);
15043
15047
  }
15044
- return process.env.NODE_ENV !== "production" && S2.onTrack && S2.onTrack(
15045
- Fe(
15048
+ return process.env.NODE_ENV !== "production" && A.onTrack && A.onTrack(
15049
+ Pe(
15046
15050
  {
15047
- effect: S2
15051
+ effect: A
15048
15052
  },
15049
15053
  n
15050
15054
  )
15051
15055
  ), t;
15052
15056
  }
15053
15057
  trigger(n) {
15054
- this.version++, se2++, this.notify(n);
15058
+ this.version++, re2++, this.notify(n);
15055
15059
  }
15056
15060
  notify(n) {
15057
- Ye();
15061
+ qe();
15058
15062
  try {
15059
15063
  if (process.env.NODE_ENV !== "production")
15060
15064
  for (let t = this.subsHead; t; t = t.nextSub)
15061
15065
  t.sub.onTrigger && !(t.sub.flags & 8) && t.sub.onTrigger(
15062
- Fe(
15066
+ Pe(
15063
15067
  {
15064
15068
  effect: t.sub
15065
15069
  },
@@ -15073,300 +15077,300 @@ var qe = class {
15073
15077
  }
15074
15078
  }
15075
15079
  };
15076
- function vn2(e) {
15080
+ function _n2(e) {
15077
15081
  if (e.dep.sc++, e.sub.flags & 4) {
15078
15082
  const n = e.dep.computed;
15079
15083
  if (n && !e.dep.subs) {
15080
15084
  n.flags |= 20;
15081
- for (let o = n.deps; o; o = o.nextDep)
15082
- vn2(o);
15085
+ for (let r2 = n.deps; r2; r2 = r2.nextDep)
15086
+ _n2(r2);
15083
15087
  }
15084
15088
  const t = e.dep.subs;
15085
15089
  t !== e && (e.prevSub = t, t && (t.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
15086
15090
  }
15087
15091
  }
15088
15092
  var Re2 = /* @__PURE__ */ new WeakMap();
15089
- var M3 = Symbol(
15093
+ var K2 = Symbol(
15090
15094
  process.env.NODE_ENV !== "production" ? "Object iterate" : ""
15091
15095
  );
15092
- var ke = Symbol(
15096
+ var He = Symbol(
15093
15097
  process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
15094
15098
  );
15095
- var re2 = Symbol(
15099
+ var ae2 = Symbol(
15096
15100
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
15097
15101
  );
15098
- function I2(e, n, t) {
15099
- if (R2 && S2) {
15100
- let o = Re2.get(e);
15101
- o || Re2.set(e, o = /* @__PURE__ */ new Map());
15102
- let s = o.get(t);
15103
- s || (o.set(t, s = new qe()), s.map = o, s.key = t), process.env.NODE_ENV !== "production" ? s.track({
15102
+ function T(e, n, t) {
15103
+ if (R2 && A) {
15104
+ let r2 = Re2.get(e);
15105
+ r2 || Re2.set(e, r2 = /* @__PURE__ */ new Map());
15106
+ let o = r2.get(t);
15107
+ o || (r2.set(t, o = new Qe()), o.map = r2, o.key = t), process.env.NODE_ENV !== "production" ? o.track({
15104
15108
  target: e,
15105
15109
  type: n,
15106
15110
  key: t
15107
- }) : s.track();
15111
+ }) : o.track();
15108
15112
  }
15109
15113
  }
15110
- function V2(e, n, t, o, s, a) {
15111
- const c = Re2.get(e);
15112
- if (!c) {
15113
- se2++;
15114
+ function V2(e, n, t, r2, o, s) {
15115
+ const p = Re2.get(e);
15116
+ if (!p) {
15117
+ re2++;
15114
15118
  return;
15115
15119
  }
15116
- const g2 = (v) => {
15117
- v && (process.env.NODE_ENV !== "production" ? v.trigger({
15120
+ const _ = (C2) => {
15121
+ C2 && (process.env.NODE_ENV !== "production" ? C2.trigger({
15118
15122
  target: e,
15119
15123
  type: n,
15120
15124
  key: t,
15121
- newValue: o,
15122
- oldValue: s,
15123
- oldTarget: a
15124
- }) : v.trigger());
15125
+ newValue: r2,
15126
+ oldValue: o,
15127
+ oldTarget: s
15128
+ }) : C2.trigger());
15125
15129
  };
15126
- if (Ye(), n === "clear")
15127
- c.forEach(g2);
15130
+ if (qe(), n === "clear")
15131
+ p.forEach(_);
15128
15132
  else {
15129
- const v = J(e), d = v && Je(t);
15130
- if (v && t === "length") {
15131
- const r2 = Number(o);
15132
- c.forEach((i, l2) => {
15133
- (l2 === "length" || l2 === re2 || !ce2(l2) && l2 >= r2) && g2(i);
15133
+ const C2 = Y(e), d = C2 && Ye(t);
15134
+ if (C2 && t === "length") {
15135
+ const i = Number(r2);
15136
+ p.forEach((a, l2) => {
15137
+ (l2 === "length" || l2 === ae2 || !ue(l2) && l2 >= i) && _(a);
15134
15138
  });
15135
15139
  } else
15136
- switch ((t !== void 0 || c.has(void 0)) && g2(c.get(t)), d && g2(c.get(re2)), n) {
15140
+ switch ((t !== void 0 || p.has(void 0)) && _(p.get(t)), d && _(p.get(ae2)), n) {
15137
15141
  case "add":
15138
- v ? d && g2(c.get("length")) : (g2(c.get(M3)), ne2(e) && g2(c.get(ke)));
15142
+ C2 ? d && _(p.get("length")) : (_(p.get(K2)), te(e) && _(p.get(He)));
15139
15143
  break;
15140
15144
  case "delete":
15141
- v || (g2(c.get(M3)), ne2(e) && g2(c.get(ke)));
15145
+ C2 || (_(p.get(K2)), te(e) && _(p.get(He)));
15142
15146
  break;
15143
15147
  case "set":
15144
- ne2(e) && g2(c.get(M3));
15148
+ te(e) && _(p.get(K2));
15145
15149
  break;
15146
15150
  }
15147
15151
  }
15148
15152
  Ze();
15149
15153
  }
15150
- function U(e) {
15154
+ function J(e) {
15151
15155
  const n = E2(e);
15152
- return n === e ? n : (I2(n, "iterate", re2), k2(e) ? n : n.map(A));
15156
+ return n === e ? n : (T(n, "iterate", ae2), H(e) ? n : n.map(O2));
15153
15157
  }
15154
15158
  function Xe(e) {
15155
- return I2(e = E2(e), "iterate", re2), e;
15159
+ return T(e = E2(e), "iterate", ae2), e;
15156
15160
  }
15157
- var ot2 = {
15161
+ var st2 = {
15158
15162
  __proto__: null,
15159
15163
  [Symbol.iterator]() {
15160
- return Oe(this, Symbol.iterator, A);
15164
+ return Ie2(this, Symbol.iterator, O2);
15161
15165
  },
15162
15166
  concat(...e) {
15163
- return U(this).concat(
15164
- ...e.map((n) => J(n) ? U(n) : n)
15167
+ return J(this).concat(
15168
+ ...e.map((n) => Y(n) ? J(n) : n)
15165
15169
  );
15166
15170
  },
15167
15171
  entries() {
15168
- return Oe(this, "entries", (e) => (e[1] = A(e[1]), e));
15172
+ return Ie2(this, "entries", (e) => (e[1] = O2(e[1]), e));
15169
15173
  },
15170
15174
  every(e, n) {
15171
- return P3(this, "every", e, n, void 0, arguments);
15175
+ return D2(this, "every", e, n, void 0, arguments);
15172
15176
  },
15173
15177
  filter(e, n) {
15174
- return P3(this, "filter", e, n, (t) => t.map(A), arguments);
15178
+ return D2(this, "filter", e, n, (t) => t.map(O2), arguments);
15175
15179
  },
15176
15180
  find(e, n) {
15177
- return P3(this, "find", e, n, A, arguments);
15181
+ return D2(this, "find", e, n, O2, arguments);
15178
15182
  },
15179
15183
  findIndex(e, n) {
15180
- return P3(this, "findIndex", e, n, void 0, arguments);
15184
+ return D2(this, "findIndex", e, n, void 0, arguments);
15181
15185
  },
15182
15186
  findLast(e, n) {
15183
- return P3(this, "findLast", e, n, A, arguments);
15187
+ return D2(this, "findLast", e, n, O2, arguments);
15184
15188
  },
15185
15189
  findLastIndex(e, n) {
15186
- return P3(this, "findLastIndex", e, n, void 0, arguments);
15190
+ return D2(this, "findLastIndex", e, n, void 0, arguments);
15187
15191
  },
15188
15192
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
15189
15193
  forEach(e, n) {
15190
- return P3(this, "forEach", e, n, void 0, arguments);
15194
+ return D2(this, "forEach", e, n, void 0, arguments);
15191
15195
  },
15192
15196
  includes(...e) {
15193
- return Ae2(this, "includes", e);
15197
+ return Oe(this, "includes", e);
15194
15198
  },
15195
15199
  indexOf(...e) {
15196
- return Ae2(this, "indexOf", e);
15200
+ return Oe(this, "indexOf", e);
15197
15201
  },
15198
15202
  join(e) {
15199
- return U(this).join(e);
15203
+ return J(this).join(e);
15200
15204
  },
15201
15205
  // keys() iterator only reads `length`, no optimisation required
15202
15206
  lastIndexOf(...e) {
15203
- return Ae2(this, "lastIndexOf", e);
15207
+ return Oe(this, "lastIndexOf", e);
15204
15208
  },
15205
15209
  map(e, n) {
15206
- return P3(this, "map", e, n, void 0, arguments);
15210
+ return D2(this, "map", e, n, void 0, arguments);
15207
15211
  },
15208
15212
  pop() {
15209
- return ee2(this, "pop");
15213
+ return ne2(this, "pop");
15210
15214
  },
15211
15215
  push(...e) {
15212
- return ee2(this, "push", e);
15216
+ return ne2(this, "push", e);
15213
15217
  },
15214
15218
  reduce(e, ...n) {
15215
- return an2(this, "reduce", e, n);
15219
+ return cn2(this, "reduce", e, n);
15216
15220
  },
15217
15221
  reduceRight(e, ...n) {
15218
- return an2(this, "reduceRight", e, n);
15222
+ return cn2(this, "reduceRight", e, n);
15219
15223
  },
15220
15224
  shift() {
15221
- return ee2(this, "shift");
15225
+ return ne2(this, "shift");
15222
15226
  },
15223
15227
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
15224
15228
  some(e, n) {
15225
- return P3(this, "some", e, n, void 0, arguments);
15229
+ return D2(this, "some", e, n, void 0, arguments);
15226
15230
  },
15227
15231
  splice(...e) {
15228
- return ee2(this, "splice", e);
15232
+ return ne2(this, "splice", e);
15229
15233
  },
15230
15234
  toReversed() {
15231
- return U(this).toReversed();
15235
+ return J(this).toReversed();
15232
15236
  },
15233
15237
  toSorted(e) {
15234
- return U(this).toSorted(e);
15238
+ return J(this).toSorted(e);
15235
15239
  },
15236
15240
  toSpliced(...e) {
15237
- return U(this).toSpliced(...e);
15241
+ return J(this).toSpliced(...e);
15238
15242
  },
15239
15243
  unshift(...e) {
15240
- return ee2(this, "unshift", e);
15244
+ return ne2(this, "unshift", e);
15241
15245
  },
15242
15246
  values() {
15243
- return Oe(this, "values", A);
15247
+ return Ie2(this, "values", O2);
15244
15248
  }
15245
15249
  };
15246
- function Oe(e, n, t) {
15247
- const o = Xe(e), s = o[n]();
15248
- return o !== e && !k2(e) && (s._next = s.next, s.next = () => {
15249
- const a = s._next();
15250
- return a.value && (a.value = t(a.value)), a;
15251
- }), s;
15250
+ function Ie2(e, n, t) {
15251
+ const r2 = Xe(e), o = r2[n]();
15252
+ return r2 !== e && !H(e) && (o._next = o.next, o.next = () => {
15253
+ const s = o._next();
15254
+ return s.value && (s.value = t(s.value)), s;
15255
+ }), o;
15252
15256
  }
15253
- var st2 = Array.prototype;
15254
- function P3(e, n, t, o, s, a) {
15255
- const c = Xe(e), g2 = c !== e && !k2(e), v = c[n];
15256
- if (v !== st2[n]) {
15257
- const i = v.apply(e, a);
15258
- return g2 ? A(i) : i;
15257
+ var rt = Array.prototype;
15258
+ function D2(e, n, t, r2, o, s) {
15259
+ const p = Xe(e), _ = p !== e && !H(e), C2 = p[n];
15260
+ if (C2 !== rt[n]) {
15261
+ const a = C2.apply(e, s);
15262
+ return _ ? O2(a) : a;
15259
15263
  }
15260
15264
  let d = t;
15261
- c !== e && (g2 ? d = function(i, l2) {
15262
- return t.call(this, A(i), l2, e);
15263
- } : t.length > 2 && (d = function(i, l2) {
15264
- return t.call(this, i, l2, e);
15265
+ p !== e && (_ ? d = function(a, l2) {
15266
+ return t.call(this, O2(a), l2, e);
15267
+ } : t.length > 2 && (d = function(a, l2) {
15268
+ return t.call(this, a, l2, e);
15265
15269
  }));
15266
- const r2 = v.call(c, d, o);
15267
- return g2 && s ? s(r2) : r2;
15270
+ const i = C2.call(p, d, r2);
15271
+ return _ && o ? o(i) : i;
15268
15272
  }
15269
- function an2(e, n, t, o) {
15270
- const s = Xe(e);
15271
- let a = t;
15272
- return s !== e && (k2(e) ? t.length > 3 && (a = function(c, g2, v) {
15273
- return t.call(this, c, g2, v, e);
15274
- }) : a = function(c, g2, v) {
15275
- return t.call(this, c, A(g2), v, e);
15276
- }), s[n](a, ...o);
15273
+ function cn2(e, n, t, r2) {
15274
+ const o = Xe(e);
15275
+ let s = t;
15276
+ return o !== e && (H(e) ? t.length > 3 && (s = function(p, _, C2) {
15277
+ return t.call(this, p, _, C2, e);
15278
+ }) : s = function(p, _, C2) {
15279
+ return t.call(this, p, O2(_), C2, e);
15280
+ }), o[n](s, ...r2);
15277
15281
  }
15278
- function Ae2(e, n, t) {
15279
- const o = E2(e);
15280
- I2(o, "iterate", re2);
15281
- const s = o[n](...t);
15282
- return (s === -1 || s === false) && Ct(t[0]) ? (t[0] = E2(t[0]), o[n](...t)) : s;
15282
+ function Oe(e, n, t) {
15283
+ const r2 = E2(e);
15284
+ T(r2, "iterate", ae2);
15285
+ const o = r2[n](...t);
15286
+ return (o === -1 || o === false) && $t5(t[0]) ? (t[0] = E2(t[0]), r2[n](...t)) : o;
15283
15287
  }
15284
- function ee2(e, n, t = []) {
15285
- et(), Ye();
15286
- const o = E2(e)[n].apply(e, t);
15287
- return Ze(), nt(), o;
15288
+ function ne2(e, n, t = []) {
15289
+ nt(), qe();
15290
+ const r2 = E2(e)[n].apply(e, t);
15291
+ return Ze(), tt(), r2;
15288
15292
  }
15289
- var rt = /* @__PURE__ */ Kn("__proto__,__v_isRef,__isVue");
15290
- var _n2 = new Set(
15291
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ce2)
15293
+ var at2 = /* @__PURE__ */ Bn("__proto__,__v_isRef,__isVue");
15294
+ var Cn2 = new Set(
15295
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ue)
15292
15296
  );
15293
- function at2(e) {
15294
- ce2(e) || (e = String(e));
15297
+ function it(e) {
15298
+ ue(e) || (e = String(e));
15295
15299
  const n = E2(this);
15296
- return I2(n, "has", e), n.hasOwnProperty(e);
15300
+ return T(n, "has", e), n.hasOwnProperty(e);
15297
15301
  }
15298
- var Cn2 = class {
15302
+ var $n = class {
15299
15303
  constructor(n = false, t = false) {
15300
15304
  this._isReadonly = n, this._isShallow = t;
15301
15305
  }
15302
- get(n, t, o) {
15306
+ get(n, t, r2) {
15303
15307
  if (t === "__v_skip") return n.__v_skip;
15304
- const s = this._isReadonly, a = this._isShallow;
15308
+ const o = this._isReadonly, s = this._isShallow;
15305
15309
  if (t === "__v_isReactive")
15306
- return !s;
15310
+ return !o;
15307
15311
  if (t === "__v_isReadonly")
15308
- return s;
15312
+ return o;
15309
15313
  if (t === "__v_isShallow")
15310
- return a;
15314
+ return s;
15311
15315
  if (t === "__v_raw")
15312
- return o === (s ? a ? Nn2 : wn2 : a ? gt2 : bn2).get(n) || // receiver is not the reactive proxy, but has the same prototype
15316
+ return r2 === (o ? s ? yn2 : Nn2 : s ? gt2 : wn2).get(n) || // receiver is not the reactive proxy, but has the same prototype
15313
15317
  // this means the receiver is a user proxy of the reactive proxy
15314
- Object.getPrototypeOf(n) === Object.getPrototypeOf(o) ? n : void 0;
15315
- const c = J(n);
15316
- if (!s) {
15317
- let v;
15318
- if (c && (v = ot2[t]))
15319
- return v;
15318
+ Object.getPrototypeOf(n) === Object.getPrototypeOf(r2) ? n : void 0;
15319
+ const p = Y(n);
15320
+ if (!o) {
15321
+ let C2;
15322
+ if (p && (C2 = st2[t]))
15323
+ return C2;
15320
15324
  if (t === "hasOwnProperty")
15321
- return at2;
15325
+ return it;
15322
15326
  }
15323
- const g2 = Reflect.get(
15327
+ const _ = Reflect.get(
15324
15328
  n,
15325
15329
  t,
15326
15330
  // if this is a proxy wrapping a ref, return methods using the raw ref
15327
15331
  // as receiver so that we don't have to call `toRaw` on the ref in all
15328
15332
  // its class methods
15329
- Z2(n) ? n : o
15333
+ Z2(n) ? n : r2
15330
15334
  );
15331
- return (ce2(t) ? _n2.has(t) : rt(t)) || (s || I2(n, "get", t), a) ? g2 : Z2(g2) ? c && Je(t) ? g2 : g2.value : ye(g2) ? s ? he2(g2) : yn2(g2) : g2;
15335
+ return (ue(t) ? Cn2.has(t) : at2(t)) || (o || T(n, "get", t), s) ? _ : Z2(_) ? p && Ye(t) ? _ : _.value : je(_) ? o ? ve(_) : jn(_) : _;
15332
15336
  }
15333
15337
  };
15334
- var it = class extends Cn2 {
15338
+ var ct2 = class extends $n {
15335
15339
  constructor(n = false) {
15336
15340
  super(false, n);
15337
15341
  }
15338
- set(n, t, o, s) {
15339
- let a = n[t];
15342
+ set(n, t, r2, o) {
15343
+ let s = n[t];
15340
15344
  if (!this._isShallow) {
15341
- const v = Q2(a);
15342
- if (!k2(o) && !Q2(o) && (a = E2(a), o = E2(o)), !J(n) && Z2(a) && !Z2(o))
15343
- return v ? false : (a.value = o, true);
15345
+ const C2 = ee2(s);
15346
+ if (!H(r2) && !ee2(r2) && (s = E2(s), r2 = E2(r2)), !Y(n) && Z2(s) && !Z2(r2))
15347
+ return C2 ? false : (s.value = r2, true);
15344
15348
  }
15345
- const c = J(n) && Je(t) ? Number(t) < n.length : Ve2(n, t), g2 = Reflect.set(
15349
+ const p = Y(n) && Ye(t) ? Number(t) < n.length : Ve2(n, t), _ = Reflect.set(
15346
15350
  n,
15347
15351
  t,
15348
- o,
15349
- Z2(n) ? n : s
15352
+ r2,
15353
+ Z2(n) ? n : o
15350
15354
  );
15351
- return n === E2(s) && (c ? Y(o, a) && V2(n, "set", t, o, a) : V2(n, "add", t, o)), g2;
15355
+ return n === E2(o) && (p ? q(r2, s) && V2(n, "set", t, r2, s) : V2(n, "add", t, r2)), _;
15352
15356
  }
15353
15357
  deleteProperty(n, t) {
15354
- const o = Ve2(n, t), s = n[t], a = Reflect.deleteProperty(n, t);
15355
- return a && o && V2(n, "delete", t, void 0, s), a;
15358
+ const r2 = Ve2(n, t), o = n[t], s = Reflect.deleteProperty(n, t);
15359
+ return s && r2 && V2(n, "delete", t, void 0, o), s;
15356
15360
  }
15357
15361
  has(n, t) {
15358
- const o = Reflect.has(n, t);
15359
- return (!ce2(t) || !_n2.has(t)) && I2(n, "has", t), o;
15362
+ const r2 = Reflect.has(n, t);
15363
+ return (!ue(t) || !Cn2.has(t)) && T(n, "has", t), r2;
15360
15364
  }
15361
15365
  ownKeys(n) {
15362
- return I2(
15366
+ return T(
15363
15367
  n,
15364
15368
  "iterate",
15365
- J(n) ? "length" : M3
15369
+ Y(n) ? "length" : K2
15366
15370
  ), Reflect.ownKeys(n);
15367
15371
  }
15368
15372
  };
15369
- var $n = class extends Cn2 {
15373
+ var bn2 = class extends $n {
15370
15374
  constructor(n = false) {
15371
15375
  super(true, n);
15372
15376
  }
@@ -15383,24 +15387,24 @@ var $n = class extends Cn2 {
15383
15387
  ), true;
15384
15388
  }
15385
15389
  };
15386
- var ct2 = /* @__PURE__ */ new it();
15387
- var ut2 = /* @__PURE__ */ new $n();
15388
- var lt2 = /* @__PURE__ */ new $n(true);
15389
- var He = (e) => e;
15390
- var le2 = (e) => Reflect.getPrototypeOf(e);
15391
- function pt(e, n, t) {
15392
- return function(...o) {
15393
- const s = this.__v_raw, a = E2(s), c = ne2(a), g2 = e === "entries" || e === Symbol.iterator && c, v = e === "keys" && c, d = s[e](...o), r2 = t ? He : n ? Me2 : A;
15394
- return !n && I2(
15395
- a,
15390
+ var ut2 = /* @__PURE__ */ new ct2();
15391
+ var lt2 = /* @__PURE__ */ new bn2();
15392
+ var pt = /* @__PURE__ */ new bn2(true);
15393
+ var Le = (e) => e;
15394
+ var pe2 = (e) => Reflect.getPrototypeOf(e);
15395
+ function dt2(e, n, t) {
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(
15399
+ s,
15396
15400
  "iterate",
15397
- v ? ke : M3
15401
+ C2 ? He : K2
15398
15402
  ), {
15399
15403
  // iterator protocol
15400
15404
  next() {
15401
- const { value: i, done: l2 } = d.next();
15402
- return l2 ? { value: i, done: l2 } : {
15403
- value: g2 ? [r2(i[0]), r2(i[1])] : r2(i),
15405
+ const { value: a, done: l2 } = d.next();
15406
+ return l2 ? { value: a, done: l2 } : {
15407
+ value: _ ? [i(a[0]), i(a[1])] : i(a),
15404
15408
  done: l2
15405
15409
  };
15406
15410
  },
@@ -15411,80 +15415,80 @@ function pt(e, n, t) {
15411
15415
  };
15412
15416
  };
15413
15417
  }
15414
- function pe2(e) {
15418
+ function de2(e) {
15415
15419
  return function(...n) {
15416
15420
  if (process.env.NODE_ENV !== "production") {
15417
15421
  const t = n[0] ? `on key "${n[0]}" ` : "";
15418
15422
  X3(
15419
- `${Jn(e)} operation ${t}failed: target is readonly.`,
15423
+ `${Yn(e)} operation ${t}failed: target is readonly.`,
15420
15424
  E2(this)
15421
15425
  );
15422
15426
  }
15423
15427
  return e === "delete" ? false : e === "clear" ? void 0 : this;
15424
15428
  };
15425
15429
  }
15426
- function dt2(e, n) {
15430
+ function mt2(e, n) {
15427
15431
  const t = {
15428
- get(s) {
15429
- const a = this.__v_raw, c = E2(a), g2 = E2(s);
15430
- e || (Y(s, g2) && I2(c, "get", s), I2(c, "get", g2));
15431
- const { has: v } = le2(c), d = n ? He : e ? Me2 : A;
15432
- if (v.call(c, s))
15433
- return d(a.get(s));
15434
- if (v.call(c, g2))
15435
- return d(a.get(g2));
15436
- a !== c && a.get(s);
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;
15436
+ if (C2.call(p, o))
15437
+ return d(s.get(o));
15438
+ if (C2.call(p, _))
15439
+ return d(s.get(_));
15440
+ s !== p && s.get(o);
15437
15441
  },
15438
15442
  get size() {
15439
- const s = this.__v_raw;
15440
- return !e && I2(E2(s), "iterate", M3), Reflect.get(s, "size", s);
15443
+ const o = this.__v_raw;
15444
+ return !e && T(E2(o), "iterate", K2), Reflect.get(o, "size", o);
15441
15445
  },
15442
- has(s) {
15443
- const a = this.__v_raw, c = E2(a), g2 = E2(s);
15444
- return e || (Y(s, g2) && I2(c, "has", s), I2(c, "has", g2)), s === g2 ? a.has(s) : a.has(s) || a.has(g2);
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(_);
15445
15449
  },
15446
- forEach(s, a) {
15447
- const c = this, g2 = c.__v_raw, v = E2(g2), d = n ? He : e ? Me2 : A;
15448
- return !e && I2(v, "iterate", M3), g2.forEach((r2, i) => s.call(a, d(r2), d(i), c));
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));
15449
15453
  }
15450
15454
  };
15451
- return Fe(
15455
+ return Pe(
15452
15456
  t,
15453
15457
  e ? {
15454
- add: pe2("add"),
15455
- set: pe2("set"),
15456
- delete: pe2("delete"),
15457
- clear: pe2("clear")
15458
+ add: de2("add"),
15459
+ set: de2("set"),
15460
+ delete: de2("delete"),
15461
+ clear: de2("clear")
15458
15462
  } : {
15459
- add(s) {
15460
- !n && !k2(s) && !Q2(s) && (s = E2(s));
15461
- const a = E2(this);
15462
- return le2(a).has.call(a, s) || (a.add(s), V2(a, "add", s, s)), this;
15463
+ add(o) {
15464
+ !n && !H(o) && !ee2(o) && (o = E2(o));
15465
+ const s = E2(this);
15466
+ return pe2(s).has.call(s, o) || (s.add(o), V2(s, "add", o, o)), this;
15463
15467
  },
15464
- set(s, a) {
15465
- !n && !k2(a) && !Q2(a) && (a = E2(a));
15466
- const c = E2(this), { has: g2, get: v } = le2(c);
15467
- let d = g2.call(c, s);
15468
- d ? process.env.NODE_ENV !== "production" && cn2(c, g2, s) : (s = E2(s), d = g2.call(c, s));
15469
- const r2 = v.call(c, s);
15470
- return c.set(s, a), d ? Y(a, r2) && V2(c, "set", s, a, r2) : V2(c, "add", s, a), this;
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));
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;
15471
15475
  },
15472
- delete(s) {
15473
- const a = E2(this), { has: c, get: g2 } = le2(a);
15474
- let v = c.call(a, s);
15475
- v ? process.env.NODE_ENV !== "production" && cn2(a, c, s) : (s = E2(s), v = c.call(a, s));
15476
- const d = g2 ? g2.call(a, s) : void 0, r2 = a.delete(s);
15477
- return v && V2(a, "delete", s, void 0, d), r2;
15476
+ delete(o) {
15477
+ const s = E2(this), { has: p, get: _ } = pe2(s);
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;
15478
15482
  },
15479
15483
  clear() {
15480
- const s = E2(this), a = s.size !== 0, c = process.env.NODE_ENV !== "production" ? ne2(s) ? new Map(s) : new Set(s) : void 0, g2 = s.clear();
15481
- return a && V2(
15482
- s,
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();
15485
+ return s && V2(
15486
+ o,
15483
15487
  "clear",
15484
15488
  void 0,
15485
15489
  void 0,
15486
- c
15487
- ), g2;
15490
+ p
15491
+ ), _;
15488
15492
  }
15489
15493
  }
15490
15494
  ), [
@@ -15492,41 +15496,41 @@ function dt2(e, n) {
15492
15496
  "values",
15493
15497
  "entries",
15494
15498
  Symbol.iterator
15495
- ].forEach((s) => {
15496
- t[s] = pt(s, e, n);
15499
+ ].forEach((o) => {
15500
+ t[o] = dt2(o, e, n);
15497
15501
  }), t;
15498
15502
  }
15499
- function Qe(e, n) {
15500
- const t = dt2(e, n);
15501
- return (o, s, a) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? o : Reflect.get(
15502
- Ve2(t, s) && s in o ? t : o,
15503
- s,
15504
- a
15503
+ function en2(e, n) {
15504
+ const t = mt2(e, n);
15505
+ return (r2, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r2 : Reflect.get(
15506
+ Ve2(t, o) && o in r2 ? t : r2,
15507
+ o,
15508
+ s
15505
15509
  );
15506
15510
  }
15507
15511
  var ft2 = {
15508
- get: /* @__PURE__ */ Qe(false, false)
15509
- };
15510
- var mt2 = {
15511
- get: /* @__PURE__ */ Qe(true, false)
15512
+ get: /* @__PURE__ */ en2(false, false)
15512
15513
  };
15513
15514
  var ht = {
15514
- get: /* @__PURE__ */ Qe(true, true)
15515
+ get: /* @__PURE__ */ en2(true, false)
15516
+ };
15517
+ var vt = {
15518
+ get: /* @__PURE__ */ en2(true, true)
15515
15519
  };
15516
- function cn2(e, n, t) {
15517
- const o = E2(t);
15518
- if (o !== t && n.call(e, o)) {
15519
- const s = dn2(e);
15520
+ function un2(e, n, t) {
15521
+ const r2 = E2(t);
15522
+ if (r2 !== t && n.call(e, r2)) {
15523
+ const o = mn2(e);
15520
15524
  X3(
15521
- `Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
15525
+ `Reactive ${o} contains both the raw and reactive versions of the same object${o === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
15522
15526
  );
15523
15527
  }
15524
15528
  }
15525
- var bn2 = /* @__PURE__ */ new WeakMap();
15526
- var gt2 = /* @__PURE__ */ new WeakMap();
15527
15529
  var wn2 = /* @__PURE__ */ new WeakMap();
15530
+ var gt2 = /* @__PURE__ */ new WeakMap();
15528
15531
  var Nn2 = /* @__PURE__ */ new WeakMap();
15529
- function vt(e) {
15532
+ var yn2 = /* @__PURE__ */ new WeakMap();
15533
+ function _t(e) {
15530
15534
  switch (e) {
15531
15535
  case "Object":
15532
15536
  case "Array":
@@ -15540,38 +15544,38 @@ function vt(e) {
15540
15544
  return 0;
15541
15545
  }
15542
15546
  }
15543
- function _t(e) {
15544
- return e.__v_skip || !Object.isExtensible(e) ? 0 : vt(dn2(e));
15547
+ function Ct(e) {
15548
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : _t(mn2(e));
15545
15549
  }
15546
- function yn2(e) {
15547
- return Q2(e) ? e : en2(
15550
+ function jn(e) {
15551
+ return ee2(e) ? e : nn2(
15548
15552
  e,
15549
15553
  false,
15550
- ct2,
15554
+ ut2,
15551
15555
  ft2,
15552
- bn2
15556
+ wn2
15553
15557
  );
15554
15558
  }
15555
- function he2(e) {
15556
- return en2(
15559
+ function ve(e) {
15560
+ return nn2(
15557
15561
  e,
15558
15562
  true,
15559
- ut2,
15560
- mt2,
15561
- wn2
15563
+ lt2,
15564
+ ht,
15565
+ Nn2
15562
15566
  );
15563
15567
  }
15564
15568
  function fe2(e) {
15565
- return en2(
15569
+ return nn2(
15566
15570
  e,
15567
15571
  true,
15568
- lt2,
15569
- ht,
15570
- Nn2
15572
+ pt,
15573
+ vt,
15574
+ yn2
15571
15575
  );
15572
15576
  }
15573
- function en2(e, n, t, o, s) {
15574
- if (!ye(e))
15577
+ function nn2(e, n, t, r2, o) {
15578
+ if (!je(e))
15575
15579
  return process.env.NODE_ENV !== "production" && X3(
15576
15580
  `value cannot be made ${n ? "readonly" : "reactive"}: ${String(
15577
15581
  e
@@ -15579,45 +15583,45 @@ function en2(e, n, t, o, s) {
15579
15583
  ), e;
15580
15584
  if (e.__v_raw && !(n && e.__v_isReactive))
15581
15585
  return e;
15582
- const a = s.get(e);
15583
- if (a)
15584
- return a;
15585
- const c = _t(e);
15586
- if (c === 0)
15586
+ const s = o.get(e);
15587
+ if (s)
15588
+ return s;
15589
+ const p = Ct(e);
15590
+ if (p === 0)
15587
15591
  return e;
15588
- const g2 = new Proxy(
15592
+ const _ = new Proxy(
15589
15593
  e,
15590
- c === 2 ? o : t
15594
+ p === 2 ? r2 : t
15591
15595
  );
15592
- return s.set(e, g2), g2;
15596
+ return o.set(e, _), _;
15593
15597
  }
15594
- function Q2(e) {
15598
+ function ee2(e) {
15595
15599
  return !!(e && e.__v_isReadonly);
15596
15600
  }
15597
- function k2(e) {
15601
+ function H(e) {
15598
15602
  return !!(e && e.__v_isShallow);
15599
15603
  }
15600
- function Ct(e) {
15604
+ function $t5(e) {
15601
15605
  return e ? !!e.__v_raw : false;
15602
15606
  }
15603
15607
  function E2(e) {
15604
15608
  const n = e && e.__v_raw;
15605
15609
  return n ? E2(n) : e;
15606
15610
  }
15607
- var A = (e) => ye(e) ? yn2(e) : e;
15608
- var Me2 = (e) => ye(e) ? he2(e) : e;
15611
+ var O2 = (e) => je(e) ? jn(e) : e;
15612
+ var Me2 = (e) => je(e) ? ve(e) : e;
15609
15613
  function Z2(e) {
15610
15614
  return e ? e.__v_isRef === true : false;
15611
15615
  }
15612
15616
  function ge2(e) {
15613
- return $t5(e, false);
15617
+ return bt2(e, false);
15614
15618
  }
15615
- function $t5(e, n) {
15616
- return Z2(e) ? e : new bt2(e, n);
15619
+ function bt2(e, n) {
15620
+ return Z2(e) ? e : new wt(e, n);
15617
15621
  }
15618
- var bt2 = class {
15622
+ var wt = class {
15619
15623
  constructor(n, t) {
15620
- this.dep = new qe(), this.__v_isRef = true, this.__v_isShallow = false, this._rawValue = t ? n : E2(n), this._value = t ? n : A(n), this.__v_isShallow = 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;
15621
15625
  }
15622
15626
  get value() {
15623
15627
  return process.env.NODE_ENV !== "production" ? this.dep.track({
@@ -15627,8 +15631,8 @@ var bt2 = class {
15627
15631
  }) : this.dep.track(), this._value;
15628
15632
  }
15629
15633
  set value(n) {
15630
- const t = this._rawValue, o = this.__v_isShallow || k2(n) || Q2(n);
15631
- n = o ? n : E2(n), Y(n, t) && (this._rawValue = n, this._value = o ? n : A(n), process.env.NODE_ENV !== "production" ? this.dep.trigger({
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({
15632
15636
  target: this,
15633
15637
  type: "set",
15634
15638
  key: "value",
@@ -15637,17 +15641,17 @@ var bt2 = class {
15637
15641
  }) : this.dep.trigger());
15638
15642
  }
15639
15643
  };
15640
- var wt = class {
15641
- constructor(n, t, o) {
15642
- 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 = se2 - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = o;
15644
+ var Nt2 = class {
15645
+ constructor(n, t, r2) {
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;
15643
15647
  }
15644
15648
  /**
15645
15649
  * @internal
15646
15650
  */
15647
15651
  notify() {
15648
15652
  if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
15649
- S2 !== this)
15650
- return Yn(this, true), true;
15653
+ A !== this)
15654
+ return qn(this, true), true;
15651
15655
  process.env.NODE_ENV;
15652
15656
  }
15653
15657
  get value() {
@@ -15656,230 +15660,230 @@ var wt = class {
15656
15660
  type: "get",
15657
15661
  key: "value"
15658
15662
  }) : this.dep.track();
15659
- return mn2(this), n && (n.version = this.dep.version), this._value;
15663
+ return hn2(this), n && (n.version = this.dep.version), this._value;
15660
15664
  }
15661
15665
  set value(n) {
15662
15666
  this.setter ? this.setter(n) : process.env.NODE_ENV !== "production" && X3("Write operation failed: computed value is readonly");
15663
15667
  }
15664
15668
  };
15665
- function Le(e, n, t = false) {
15666
- let o, s;
15667
- Bn(e) ? o = e : (o = e.get, s = e.set);
15668
- const a = new wt(o, s, t);
15669
- return process.env.NODE_ENV, a;
15669
+ function Ke(e, n, t = false) {
15670
+ let r2, o;
15671
+ Un(e) ? r2 = e : (r2 = e.get, o = e.set);
15672
+ const s = new Nt2(r2, o, t);
15673
+ return process.env.NODE_ENV, s;
15670
15674
  }
15671
- var Nt2 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
15672
- var yt2 = (e = 21) => {
15675
+ var yt2 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
15676
+ var jt = (e = 21) => {
15673
15677
  let n = "", t = crypto.getRandomValues(new Uint8Array(e |= 0));
15674
15678
  for (; e--; )
15675
- n += Nt2[t[e] & 63];
15679
+ n += yt2[t[e] & 63];
15676
15680
  return n;
15677
15681
  };
15678
15682
  function Et(e, n = true, t = false) {
15679
- const o = ge2();
15680
- let s;
15681
- const a = ge2(false);
15682
- let c = () => {
15683
+ const r2 = ge2();
15684
+ let o;
15685
+ const s = ge2(false);
15686
+ let p = () => {
15683
15687
  };
15684
- const g2 = new Proxy(e, {
15685
- apply: function(r2, i, l2) {
15686
- let m2;
15688
+ const _ = new Proxy(e, {
15689
+ apply: function(i, a, l2) {
15690
+ let f;
15687
15691
  try {
15688
- m2 = r2(...l2);
15689
- } catch (C2) {
15690
- m2 = C2;
15692
+ f = i(...l2);
15693
+ } catch (b2) {
15694
+ f = b2;
15691
15695
  }
15692
- if (m2 instanceof Error) {
15693
- if (o.value = m2, s = m2, n)
15694
- throw c(), m2;
15696
+ if (f instanceof Error) {
15697
+ if (r2.value = f, o = f, n)
15698
+ throw p(), f;
15695
15699
  } else
15696
- a.value = true, o.value = void 0, s = true, c();
15700
+ s.value = true, r2.value = void 0, o = true, p();
15697
15701
  }
15698
- }), v = () => {
15702
+ }), C2 = () => {
15699
15703
  }, d = new Proxy(
15700
- (r2) => {
15701
- o.value = r2;
15704
+ (i) => {
15705
+ r2.value = i;
15702
15706
  },
15703
15707
  {
15704
- apply: function(r2, i, l2) {
15705
- r2(...l2), v(...l2);
15708
+ apply: function(i, a, l2) {
15709
+ i(...l2), C2(...l2);
15706
15710
  }
15707
15711
  }
15708
15712
  );
15709
15713
  return {
15710
- promise: new Promise((r2, i) => {
15711
- if (n && s instanceof Error) {
15712
- i(s);
15714
+ promise: new Promise((i, a) => {
15715
+ if (n && o instanceof Error) {
15716
+ a(o);
15713
15717
  return;
15714
- } else if (s === true) {
15715
- r2();
15718
+ } else if (o === true) {
15719
+ i();
15716
15720
  return;
15717
15721
  }
15718
15722
  let l2;
15719
15723
  t && (l2 = setTimeout(() => {
15720
- const m2 = new Error("timeout!");
15721
- o.value = m2, n && i(m2);
15722
- }, t)), c = () => {
15723
- l2 && (clearTimeout(l2), l2 = void 0), r2();
15724
+ const f = new Error("timeout!");
15725
+ r2.value = f, n && a(f);
15726
+ }, t)), p = () => {
15727
+ l2 && (clearTimeout(l2), l2 = void 0), i();
15724
15728
  };
15725
15729
  }),
15726
- callback: g2,
15730
+ callback: _,
15727
15731
  onError: d,
15728
- resolved: Le(() => a.value),
15729
- error: Le(() => o.value)
15732
+ resolved: Ke(() => s.value),
15733
+ error: Ke(() => r2.value)
15730
15734
  };
15731
15735
  }
15732
- function Ke() {
15733
- return yt2();
15736
+ function Be() {
15737
+ return jt();
15734
15738
  }
15735
- function St() {
15736
- const e = {}, n = {}, t = /* @__PURE__ */ new WeakMap(), o = {};
15739
+ function At2() {
15740
+ const e = {}, n = {}, t = /* @__PURE__ */ new WeakMap(), r2 = {};
15737
15741
  return Object.freeze({
15738
- registerAgg(s) {
15739
- if (s.isInitialized.value)
15742
+ registerAgg(o) {
15743
+ if (o.isInitialized.value)
15740
15744
  throw new Error("Agg must register before initialized");
15741
- if (o[s.__id])
15745
+ if (r2[o.__id])
15742
15746
  throw new Error("Agg already registered");
15743
- s.type === "MultiInstance" && s.api.events.destroyed.watchPublish(() => {
15744
- delete o[s.__id];
15745
- }), o[s.__id] = s;
15746
- const a = [];
15747
- for (const c of Object.values(e))
15748
- c.mount({ api: s.api, __aggId: s.__id, isInitialized: s.isInitialized });
15749
- for (const c of Object.values(n))
15750
- c.mount({ api: s.api, __aggId: s.__id }), a.push(c.__id);
15751
- t.set(s, a);
15747
+ o.type === "MultiInstance" && o.api.events.destroyed.watchPublish(() => {
15748
+ delete r2[o.__id];
15749
+ }), r2[o.__id] = o;
15750
+ const s = [];
15751
+ for (const p of Object.values(e))
15752
+ p.mount({ api: o.api, __aggId: o.__id, isInitialized: o.isInitialized });
15753
+ for (const p of Object.values(n))
15754
+ p.mount({ api: o.api, __aggId: o.__id }), s.push(p.__id);
15755
+ t.set(o, s);
15752
15756
  },
15753
- createSetupPlugin(s) {
15754
- let a;
15755
- return s instanceof Function ? a = s() : a = s, Object.freeze({
15756
- __id: Ke(),
15757
+ createSetupPlugin(o) {
15758
+ let s;
15759
+ return o instanceof Function ? s = o() : s = o, Object.freeze({
15760
+ __id: Be(),
15757
15761
  type: "Setup",
15758
- mount(c) {
15759
- if (c.isInitialized.value)
15762
+ mount(p) {
15763
+ if (p.isInitialized.value)
15760
15764
  throw new Error("Can not setup after initialized");
15761
- a.mount({ api: c.api, __aggId: c.__aggId });
15765
+ s.mount({ api: p.api, __aggId: p.__aggId });
15762
15766
  }
15763
15767
  });
15764
15768
  },
15765
- createHotSwapPlugin(s) {
15766
- let a;
15767
- return s instanceof Function ? a = s() : a = s, Object.freeze({
15768
- __id: Ke(),
15769
+ createHotSwapPlugin(o) {
15770
+ let s;
15771
+ return o instanceof Function ? s = o() : s = o, Object.freeze({
15772
+ __id: Be(),
15769
15773
  type: "HotSwap",
15770
- mount: a.mount,
15771
- unmount: a.unmount
15774
+ mount: s.mount,
15775
+ unmount: s.unmount
15772
15776
  });
15773
15777
  },
15774
- registerPlugin(s) {
15775
- if (s.type === "Setup") {
15776
- if (e[s.__id])
15778
+ registerPlugin(o) {
15779
+ if (o.type === "Setup") {
15780
+ if (e[o.__id])
15777
15781
  throw new Error("Plugin already registered");
15778
- e[s.__id] = s;
15779
- for (const a in o)
15780
- s.mount({
15781
- api: o[a].api,
15782
- __aggId: o[a].__id,
15783
- isInitialized: o[a].isInitialized
15782
+ e[o.__id] = o;
15783
+ for (const s in r2)
15784
+ o.mount({
15785
+ api: r2[s].api,
15786
+ __aggId: r2[s].__id,
15787
+ isInitialized: r2[s].isInitialized
15784
15788
  });
15785
- } else if (s.type === "HotSwap") {
15786
- n[s.__id] = s;
15787
- for (const a in o)
15788
- t.has(o[a]) && !t.get(o[a]).includes(s.__id) && (s.mount({ api: o[a].api, __aggId: o[a].__id }), t.get(o[a]).push(s.__id));
15789
+ } else if (o.type === "HotSwap") {
15790
+ n[o.__id] = o;
15791
+ for (const s in r2)
15792
+ t.has(r2[s]) && !t.get(r2[s]).includes(o.__id) && (o.mount({ api: r2[s].api, __aggId: r2[s].__id }), t.get(r2[s]).push(o.__id));
15789
15793
  } else
15790
- isNever(s);
15794
+ isNever(o);
15791
15795
  },
15792
- unregisterPlugin(s) {
15793
- if (s.type === "Setup")
15796
+ unregisterPlugin(o) {
15797
+ if (o.type === "Setup")
15794
15798
  throw new Error("Can not unregister setup plugin");
15795
- if (s.type === "HotSwap") {
15796
- for (const a in o)
15797
- t.has(o[a]) && t.get(o[a]).includes(s.__id) && s.unmount({ api: o[a].api, __aggId: o[a].__id });
15798
- delete n[s.__id];
15799
+ if (o.type === "HotSwap") {
15800
+ for (const s in r2)
15801
+ t.has(r2[s]) && t.get(r2[s]).includes(o.__id) && o.unmount({ api: r2[s].api, __aggId: r2[s].__id });
15802
+ delete n[o.__id];
15799
15803
  } else
15800
- isNever(s);
15804
+ isNever(o);
15801
15805
  }
15802
15806
  });
15803
15807
  }
15804
- function jt(e) {
15805
- return St();
15808
+ function St(e) {
15809
+ return At2();
15806
15810
  }
15807
- function Ot2(e) {
15808
- const n = At2(e);
15811
+ function It2(e) {
15812
+ const n = Ot2(e);
15809
15813
  return fe2({
15810
15814
  states: n.states,
15811
15815
  commands: n.commands,
15812
15816
  events: n.events
15813
15817
  });
15814
15818
  }
15815
- function At2(e) {
15819
+ function Ot2(e) {
15816
15820
  const n = e.states;
15817
- for (const c of Object.keys(e.states))
15818
- n[c] = he2(n[c]);
15819
- const t = fe2(e.states), o = he2(e.commands), s = {}, a = e.events;
15820
- for (const c in e.events)
15821
- s[c] = a[c].api;
15821
+ for (const p of Object.keys(e.states))
15822
+ n[p] = ve(n[p]);
15823
+ const t = fe2(e.states), r2 = ve(e.commands), o = {}, s = e.events;
15824
+ for (const p in e.events)
15825
+ o[p] = s[p].api;
15822
15826
  return fe2({
15823
15827
  states: t,
15824
- commands: o,
15825
- events: fe2(s),
15828
+ commands: r2,
15829
+ events: fe2(o),
15826
15830
  destroy: e.destroy
15827
15831
  });
15828
15832
  }
15829
- function It2(e) {
15833
+ function Tt(e) {
15830
15834
  const {
15831
15835
  callback: n,
15832
15836
  onError: t,
15833
- promise: o,
15834
- resolved: s
15837
+ promise: r2,
15838
+ resolved: o
15835
15839
  } = Et(() => {
15836
15840
  }, false, 5e3);
15837
- function a(i) {
15838
- if (s.value === true)
15841
+ function s(a) {
15842
+ if (o.value === true)
15839
15843
  throw new Error("Agg already initialized");
15840
- c.push(i());
15844
+ p.push(a());
15841
15845
  }
15842
- const c = [], g2 = e({
15843
- onCreated(i) {
15844
- Promise.resolve().then(i);
15846
+ const p = [], _ = e({
15847
+ onCreated(a) {
15848
+ Promise.resolve().then(a);
15845
15849
  },
15846
- onBeforeInitialize: a,
15847
- isInitialized: Le(() => s.value),
15848
- untilInitialized: o
15850
+ onBeforeInitialize: s,
15851
+ isInitialized: Ke(() => o.value),
15852
+ untilInitialized: r2
15849
15853
  });
15850
15854
  setTimeout(
15851
- () => Promise.all(c).then(() => {
15855
+ () => Promise.all(p).then(() => {
15852
15856
  n();
15853
- }).catch((i) => {
15854
- t(i);
15857
+ }).catch((a) => {
15858
+ t(a);
15855
15859
  }),
15856
15860
  0
15857
15861
  );
15858
- const v = g2.states || {}, d = g2.commands || {}, r2 = g2.events || {};
15862
+ const C2 = _.states || {}, d = _.commands || {}, i = _.events || {};
15859
15863
  return {
15860
- __id: Ke(),
15864
+ __id: Be(),
15861
15865
  type: "Singleton",
15862
- api: Ot2({
15863
- states: v,
15866
+ api: It2({
15867
+ states: C2,
15864
15868
  commands: d,
15865
- events: r2,
15869
+ events: i,
15866
15870
  destroy: () => {
15867
15871
  }
15868
15872
  }),
15869
- isInitialized: s,
15873
+ isInitialized: o,
15870
15874
  async untilInitialized() {
15871
- return await o.catch((i) => {
15872
- throw new Error(`Failed to initialize Agg: ${i.message}
15873
- Stack : ${i.stack || "unkown"}`);
15875
+ return await r2.catch((a) => {
15876
+ throw new Error(`Failed to initialize Agg: ${a.message}
15877
+ Stack : ${a.stack || "unkown"}`);
15874
15878
  });
15875
15879
  }
15876
15880
  };
15877
15881
  }
15878
- var de2;
15882
+ var me;
15879
15883
  function xt2(e) {
15880
- return It2(() => {
15884
+ return Tt(() => {
15881
15885
  const n = ge2(e), t = ge2({});
15882
- let o = () => [], s = () => [], a = () => [], c = () => [], g2 = () => [], v = () => [], d = () => [];
15886
+ let r2 = () => [], o = () => [], s = () => [], p = () => [], _ = () => [], C2 = () => [], d = () => [];
15883
15887
  return {
15884
15888
  states: {
15885
15889
  designer: n,
@@ -15891,131 +15895,131 @@ function xt2(e) {
15891
15895
  },
15892
15896
  clearCaches() {
15893
15897
  },
15894
- setContext(r2) {
15895
- t.value = r2;
15898
+ setContext(i) {
15899
+ t.value = i;
15896
15900
  },
15897
- setDomainDesigner(r2) {
15898
- this.clearCaches(), n.value = r2;
15901
+ setDomainDesigner(i) {
15902
+ this.clearCaches(), n.value = i;
15899
15903
  },
15900
- _genInfoCode(...r2) {
15901
- return o(...r2);
15904
+ _genInfoCode(...i) {
15905
+ return r2(...i);
15902
15906
  },
15903
- _setInfoCodeProvider(r2) {
15904
- o = r2;
15907
+ _setInfoCodeProvider(i) {
15908
+ r2 = i;
15905
15909
  },
15906
- _genCommandCode(...r2) {
15907
- return s(...r2);
15910
+ _genCommandCode(...i) {
15911
+ return o(...i);
15908
15912
  },
15909
- _setCommandCodeProvider(r2) {
15910
- s = r2;
15913
+ _setCommandCodeProvider(i) {
15914
+ o = i;
15911
15915
  },
15912
- _genFacadeCommandCode(...r2) {
15913
- return a(...r2);
15916
+ _genFacadeCommandCode(...i) {
15917
+ return s(...i);
15914
15918
  },
15915
- _setFacadeCommandCodeProvider(r2) {
15916
- a = r2;
15919
+ _setFacadeCommandCodeProvider(i) {
15920
+ s = i;
15917
15921
  },
15918
- _genAggCode(...r2) {
15919
- return c(...r2);
15922
+ _genAggCode(...i) {
15923
+ return p(...i);
15920
15924
  },
15921
- _setAggCodeProvider(r2) {
15922
- c = r2;
15925
+ _setAggCodeProvider(i) {
15926
+ p = i;
15923
15927
  },
15924
- _genEventCode(...r2) {
15925
- return g2(...r2);
15928
+ _genEventCode(...i) {
15929
+ return _(...i);
15926
15930
  },
15927
- _setEventCodeProvider(r2) {
15928
- g2 = r2;
15931
+ _setEventCodeProvider(i) {
15932
+ _ = i;
15929
15933
  },
15930
- _genReadModelCode(...r2) {
15931
- return v(...r2);
15934
+ _genReadModelCode(...i) {
15935
+ return C2(...i);
15932
15936
  },
15933
- _setReadModelCodeProvider(r2) {
15934
- v = r2;
15937
+ _setReadModelCodeProvider(i) {
15938
+ C2 = i;
15935
15939
  },
15936
- _setCodeFileProvider(r2) {
15937
- d = r2;
15940
+ _setCodeFileProvider(i) {
15941
+ d = i;
15938
15942
  }
15939
15943
  }
15940
15944
  };
15941
15945
  });
15942
15946
  }
15943
- var ue = jt();
15944
- function So(e) {
15945
- if (!de2) {
15947
+ var le2 = St();
15948
+ function Ao(e) {
15949
+ if (!me) {
15946
15950
  if (!e)
15947
15951
  throw new Error("designer is required");
15948
- de2 = xt2(e), ue.registerAgg(de2);
15952
+ me = xt2(e), le2.registerAgg(me);
15949
15953
  }
15950
- return de2.api;
15954
+ return me.api;
15951
15955
  }
15952
15956
  function Ee(e) {
15953
15957
  return e && e._attributes && e._attributes.rule === "Info";
15954
15958
  }
15955
- function Dt(e) {
15959
+ function kt(e) {
15956
15960
  return e && e._attributes && e._attributes.rule === "Agg";
15957
15961
  }
15958
- function Pt(e) {
15962
+ function Dt(e) {
15959
15963
  return e && e._attributes && e._attributes.rule === "Command";
15960
15964
  }
15961
- function Tt(e) {
15965
+ function Ft2(e) {
15962
15966
  return e && e._attributes && e._attributes.rule === "FacadeCommand";
15963
15967
  }
15964
- function Ft2(e) {
15968
+ function Pt(e) {
15965
15969
  return e && e._attributes && e._attributes.rule === "Event";
15966
15970
  }
15967
15971
  function Vt(e) {
15968
15972
  return e && e._attributes && e._attributes.rule === "ReadModel";
15969
15973
  }
15970
- var ze = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
15974
+ var Ge = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
15971
15975
  process.env.NODE_ENV !== "production" && Object.freeze([]);
15972
15976
  var Rt2 = () => {
15973
15977
  };
15974
- var kt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
15978
+ var Ht2 = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
15975
15979
  (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
15976
- var Se = Object.assign;
15977
- var D2 = Array.isArray;
15978
- var B2 = (e) => typeof e == "function";
15979
- var H = (e) => typeof e == "string";
15980
- var Ht2 = (e) => typeof e == "symbol";
15981
- var L2 = (e) => e !== null && typeof e == "object";
15982
- var un2;
15983
- var je = () => un2 || (un2 = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
15984
- function nn2(e) {
15985
- if (D2(e)) {
15980
+ var Ae2 = Object.assign;
15981
+ var k2 = Array.isArray;
15982
+ var z = (e) => typeof e == "function";
15983
+ var L2 = (e) => typeof e == "string";
15984
+ var Lt2 = (e) => typeof e == "symbol";
15985
+ var B2 = (e) => e !== null && typeof e == "object";
15986
+ var ln2;
15987
+ var Se = () => ln2 || (ln2 = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
15988
+ function tn2(e) {
15989
+ if (k2(e)) {
15986
15990
  const n = {};
15987
15991
  for (let t = 0; t < e.length; t++) {
15988
- const o = e[t], s = H(o) ? zt(o) : nn2(o);
15989
- if (s)
15990
- for (const a in s)
15991
- n[a] = s[a];
15992
+ const r2 = e[t], o = L2(r2) ? Gt(r2) : tn2(r2);
15993
+ if (o)
15994
+ for (const s in o)
15995
+ n[s] = o[s];
15992
15996
  }
15993
15997
  return n;
15994
- } else if (H(e) || L2(e))
15998
+ } else if (L2(e) || B2(e))
15995
15999
  return e;
15996
16000
  }
15997
16001
  var Mt2 = /;(?![^(]*\))/g;
15998
- var Lt2 = /:([^]+)/;
15999
- var Kt = /\/\*[^]*?\*\//g;
16000
- function zt(e) {
16002
+ var Kt = /:([^]+)/;
16003
+ var Bt = /\/\*[^]*?\*\//g;
16004
+ function Gt(e) {
16001
16005
  const n = {};
16002
- return e.replace(Kt, "").split(Mt2).forEach((t) => {
16006
+ return e.replace(Bt, "").split(Mt2).forEach((t) => {
16003
16007
  if (t) {
16004
- const o = t.split(Lt2);
16005
- o.length > 1 && (n[o[0].trim()] = o[1].trim());
16008
+ const r2 = t.split(Kt);
16009
+ r2.length > 1 && (n[r2[0].trim()] = r2[1].trim());
16006
16010
  }
16007
16011
  }), n;
16008
16012
  }
16009
- function tn2(e) {
16013
+ function on2(e) {
16010
16014
  let n = "";
16011
- if (H(e))
16015
+ if (L2(e))
16012
16016
  n = e;
16013
- else if (D2(e))
16017
+ else if (k2(e))
16014
16018
  for (let t = 0; t < e.length; t++) {
16015
- const o = tn2(e[t]);
16016
- o && (n += o + " ");
16019
+ const r2 = on2(e[t]);
16020
+ r2 && (n += r2 + " ");
16017
16021
  }
16018
- else if (L2(e))
16022
+ else if (B2(e))
16019
16023
  for (const t in e)
16020
16024
  e[t] && (n += t + " ");
16021
16025
  return n.trim();
@@ -16030,67 +16034,67 @@ Symbol(
16030
16034
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
16031
16035
  );
16032
16036
  new Set(
16033
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Ht2)
16037
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Lt2)
16034
16038
  );
16035
16039
  function En2(e) {
16036
- return Be(e) ? En2(e.__v_raw) : !!(e && e.__v_isReactive);
16040
+ return Ue(e) ? En2(e.__v_raw) : !!(e && e.__v_isReactive);
16037
16041
  }
16038
- function Be(e) {
16042
+ function Ue(e) {
16039
16043
  return !!(e && e.__v_isReadonly);
16040
16044
  }
16041
- function Ie2(e) {
16045
+ function Te(e) {
16042
16046
  return !!(e && e.__v_isShallow);
16043
16047
  }
16044
- function Ue(e) {
16048
+ function ze(e) {
16045
16049
  return e ? !!e.__v_raw : false;
16046
16050
  }
16047
- function K2(e) {
16051
+ function G(e) {
16048
16052
  const n = e && e.__v_raw;
16049
- return n ? K2(n) : e;
16053
+ return n ? G(n) : e;
16050
16054
  }
16051
- function on2(e) {
16055
+ function sn2(e) {
16052
16056
  return e ? e.__v_isRef === true : false;
16053
16057
  }
16054
- var z = [];
16055
- function Bt(e) {
16056
- z.push(e);
16058
+ var U = [];
16059
+ function Ut(e) {
16060
+ U.push(e);
16057
16061
  }
16058
- function Ut() {
16059
- z.pop();
16062
+ function zt() {
16063
+ U.pop();
16060
16064
  }
16061
16065
  var xe2 = false;
16062
- function ae2(e, ...n) {
16066
+ function ie2(e, ...n) {
16063
16067
  if (xe2) return;
16064
16068
  xe2 = true;
16065
- const t = z.length ? z[z.length - 1].component : null, o = t && t.appContext.config.warnHandler, s = Gt();
16066
- if (o)
16067
- sn2(
16068
- o,
16069
+ const t = U.length ? U[U.length - 1].component : null, r2 = t && t.appContext.config.warnHandler, o = Jt();
16070
+ if (r2)
16071
+ rn2(
16072
+ r2,
16069
16073
  t,
16070
16074
  11,
16071
16075
  [
16072
16076
  // eslint-disable-next-line no-restricted-syntax
16073
- e + n.map((a) => {
16074
- var c, g2;
16075
- return (g2 = (c = a.toString) == null ? void 0 : c.call(a)) != null ? g2 : JSON.stringify(a);
16077
+ e + n.map((s) => {
16078
+ var p, _;
16079
+ return (_ = (p = s.toString) == null ? void 0 : p.call(s)) != null ? _ : JSON.stringify(s);
16076
16080
  }).join(""),
16077
16081
  t && t.proxy,
16078
- s.map(
16079
- ({ vnode: a }) => `at <${Hn(t, a.type)}>`
16082
+ o.map(
16083
+ ({ vnode: s }) => `at <${Ln(t, s.type)}>`
16080
16084
  ).join(`
16081
16085
  `),
16082
- s
16086
+ o
16083
16087
  ]
16084
16088
  );
16085
16089
  else {
16086
- const a = [`[Vue warn]: ${e}`, ...n];
16087
- s.length && a.push(`
16088
- `, ...Wt(s));
16090
+ const s = [`[Vue warn]: ${e}`, ...n];
16091
+ o.length && s.push(`
16092
+ `, ...Wt(o));
16089
16093
  }
16090
16094
  xe2 = false;
16091
16095
  }
16092
- function Gt() {
16093
- let e = z[z.length - 1];
16096
+ function Jt() {
16097
+ let e = U[U.length - 1];
16094
16098
  if (!e)
16095
16099
  return [];
16096
16100
  const n = [];
@@ -16100,36 +16104,36 @@ function Gt() {
16100
16104
  vnode: e,
16101
16105
  recurseCount: 0
16102
16106
  });
16103
- const o = e.component && e.component.parent;
16104
- e = o && o.vnode;
16107
+ const r2 = e.component && e.component.parent;
16108
+ e = r2 && r2.vnode;
16105
16109
  }
16106
16110
  return n;
16107
16111
  }
16108
16112
  function Wt(e) {
16109
16113
  const n = [];
16110
- return e.forEach((t, o) => {
16111
- n.push(...o === 0 ? [] : [`
16112
- `], ...Jt(t));
16114
+ return e.forEach((t, r2) => {
16115
+ n.push(...r2 === 0 ? [] : [`
16116
+ `], ...Yt2(t));
16113
16117
  }), n;
16114
16118
  }
16115
- function Jt({ vnode: e, recurseCount: n }) {
16116
- const t = n > 0 ? `... (${n} recursive calls)` : "", o = e.component ? e.component.parent == null : false, s = ` at <${Hn(
16119
+ function Yt2({ vnode: e, recurseCount: n }) {
16120
+ const t = n > 0 ? `... (${n} recursive calls)` : "", r2 = e.component ? e.component.parent == null : false, o = ` at <${Ln(
16117
16121
  e.component,
16118
16122
  e.type,
16119
- o
16120
- )}`, a = ">" + t;
16121
- return e.props ? [s, ...Yt2(e.props), a] : [s + a];
16123
+ r2
16124
+ )}`, s = ">" + t;
16125
+ return e.props ? [o, ...qt2(e.props), s] : [o + s];
16122
16126
  }
16123
- function Yt2(e) {
16127
+ function qt2(e) {
16124
16128
  const n = [], t = Object.keys(e);
16125
- return t.slice(0, 3).forEach((o) => {
16126
- n.push(...Sn2(o, e[o]));
16129
+ return t.slice(0, 3).forEach((r2) => {
16130
+ n.push(...An2(r2, e[r2]));
16127
16131
  }), t.length > 3 && n.push(" ..."), n;
16128
16132
  }
16129
- function Sn2(e, n, t) {
16130
- return H(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : on2(n) ? (n = Sn2(e, K2(n.value), true), t ? n : [`${e}=Ref<`, n, ">"]) : B2(n) ? [`${e}=fn${n.name ? `<${n.name}>` : ""}`] : (n = K2(n), t ? n : [`${e}=`, n]);
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]);
16131
16135
  }
16132
- var jn = {
16136
+ var Sn2 = {
16133
16137
  sp: "serverPrefetch hook",
16134
16138
  bc: "beforeCreate hook",
16135
16139
  c: "created hook",
@@ -16162,102 +16166,102 @@ var jn = {
16162
16166
  15: "component update",
16163
16167
  16: "app unmount cleanup function"
16164
16168
  };
16165
- function sn2(e, n, t, o) {
16169
+ function rn2(e, n, t, r2) {
16166
16170
  try {
16167
- return o ? e(...o) : e();
16168
- } catch (s) {
16169
- On2(s, n, t);
16171
+ return r2 ? e(...r2) : e();
16172
+ } catch (o) {
16173
+ In2(o, n, t);
16170
16174
  }
16171
16175
  }
16172
- function On2(e, n, t, o = true) {
16173
- const s = n ? n.vnode : null, { errorHandler: a, throwUnhandledErrorInProduction: c } = n && n.appContext.config || ze;
16176
+ function In2(e, n, t, r2 = true) {
16177
+ const o = n ? n.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: p } = n && n.appContext.config || Ge;
16174
16178
  if (n) {
16175
- let g2 = n.parent;
16176
- const v = n.proxy, d = process.env.NODE_ENV !== "production" ? jn[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
16177
- for (; g2; ) {
16178
- const r2 = g2.ec;
16179
- if (r2) {
16180
- for (let i = 0; i < r2.length; i++)
16181
- if (r2[i](e, v, d) === false)
16179
+ let _ = n.parent;
16180
+ const C2 = n.proxy, d = process.env.NODE_ENV !== "production" ? Sn2[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
16181
+ for (; _; ) {
16182
+ const i = _.ec;
16183
+ if (i) {
16184
+ for (let a = 0; a < i.length; a++)
16185
+ if (i[a](e, C2, d) === false)
16182
16186
  return;
16183
16187
  }
16184
- g2 = g2.parent;
16188
+ _ = _.parent;
16185
16189
  }
16186
- if (a) {
16187
- sn2(a, null, 10, [
16190
+ if (s) {
16191
+ rn2(s, null, 10, [
16188
16192
  e,
16189
- v,
16193
+ C2,
16190
16194
  d
16191
16195
  ]);
16192
16196
  return;
16193
16197
  }
16194
16198
  }
16195
- Zt(e, t, s, o, c);
16199
+ Zt(e, t, o, r2, p);
16196
16200
  }
16197
- function Zt(e, n, t, o = true, s = false) {
16201
+ function Zt(e, n, t, r2 = true, o = false) {
16198
16202
  if (process.env.NODE_ENV !== "production") {
16199
- const a = jn[n];
16200
- if (t && Bt(t), ae2(`Unhandled error${a ? ` during execution of ${a}` : ""}`), t && Ut(), o)
16203
+ const s = Sn2[n];
16204
+ if (t && Ut(t), ie2(`Unhandled error${s ? ` during execution of ${s}` : ""}`), t && zt(), r2)
16201
16205
  throw e;
16202
- } else if (s)
16206
+ } else if (o)
16203
16207
  throw e;
16204
16208
  }
16205
16209
  var x2 = [];
16206
- var T = -1;
16207
- var q = [];
16208
- var F3 = null;
16210
+ var F3 = -1;
16211
+ var Q2 = [];
16212
+ var P3 = null;
16209
16213
  var W2 = 0;
16210
- var qt2 = /* @__PURE__ */ Promise.resolve();
16211
- var Ge = null;
16214
+ var Qt = /* @__PURE__ */ Promise.resolve();
16215
+ var Je = null;
16212
16216
  var Xt = 100;
16213
- function Qt(e) {
16214
- let n = T + 1, t = x2.length;
16217
+ function eo(e) {
16218
+ let n = F3 + 1, t = x2.length;
16215
16219
  for (; n < t; ) {
16216
- const o = n + t >>> 1, s = x2[o], a = ie2(s);
16217
- a < e || a === e && s.flags & 2 ? n = o + 1 : t = o;
16220
+ const r2 = n + t >>> 1, o = x2[r2], s = ce2(o);
16221
+ s < e || s === e && o.flags & 2 ? n = r2 + 1 : t = r2;
16218
16222
  }
16219
16223
  return n;
16220
16224
  }
16221
- function eo(e) {
16225
+ function no(e) {
16222
16226
  if (!(e.flags & 1)) {
16223
- const n = ie2(e), t = x2[x2.length - 1];
16227
+ const n = ce2(e), t = x2[x2.length - 1];
16224
16228
  !t || // fast path when the job id is larger than the tail
16225
- !(e.flags & 2) && n >= ie2(t) ? x2.push(e) : x2.splice(Qt(n), 0, e), e.flags |= 1, An2();
16229
+ !(e.flags & 2) && n >= ce2(t) ? x2.push(e) : x2.splice(eo(n), 0, e), e.flags |= 1, On2();
16226
16230
  }
16227
16231
  }
16228
- function An2() {
16229
- Ge || (Ge = qt2.then(In2));
16230
- }
16231
- function no(e) {
16232
- D2(e) ? q.push(...e) : F3 && e.id === -1 ? F3.splice(W2 + 1, 0, e) : e.flags & 1 || (q.push(e), e.flags |= 1), An2();
16232
+ function On2() {
16233
+ Je || (Je = Qt.then(Tn2));
16233
16234
  }
16234
16235
  function to(e) {
16235
- if (q.length) {
16236
- const n = [...new Set(q)].sort(
16237
- (t, o) => ie2(t) - ie2(o)
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();
16237
+ }
16238
+ function oo(e) {
16239
+ if (Q2.length) {
16240
+ const n = [...new Set(Q2)].sort(
16241
+ (t, r2) => ce2(t) - ce2(r2)
16238
16242
  );
16239
- if (q.length = 0, F3) {
16240
- F3.push(...n);
16243
+ if (Q2.length = 0, P3) {
16244
+ P3.push(...n);
16241
16245
  return;
16242
16246
  }
16243
- for (F3 = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), W2 = 0; W2 < F3.length; W2++) {
16244
- const t = F3[W2];
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];
16245
16249
  process.env.NODE_ENV !== "production" && xn2(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
16246
16250
  }
16247
- F3 = null, W2 = 0;
16251
+ P3 = null, W2 = 0;
16248
16252
  }
16249
16253
  }
16250
- var ie2 = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
16251
- function In2(e) {
16254
+ var ce2 = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
16255
+ function Tn2(e) {
16252
16256
  process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
16253
16257
  const n = process.env.NODE_ENV !== "production" ? (t) => xn2(e, t) : Rt2;
16254
16258
  try {
16255
- for (T = 0; T < x2.length; T++) {
16256
- const t = x2[T];
16259
+ for (F3 = 0; F3 < x2.length; F3++) {
16260
+ const t = x2[F3];
16257
16261
  if (t && !(t.flags & 8)) {
16258
16262
  if (process.env.NODE_ENV !== "production" && n(t))
16259
16263
  continue;
16260
- t.flags & 4 && (t.flags &= -2), sn2(
16264
+ t.flags & 4 && (t.flags &= -2), rn2(
16261
16265
  t,
16262
16266
  t.i,
16263
16267
  t.i ? 15 : 14
@@ -16265,69 +16269,69 @@ function In2(e) {
16265
16269
  }
16266
16270
  }
16267
16271
  } finally {
16268
- for (; T < x2.length; T++) {
16269
- const t = x2[T];
16272
+ for (; F3 < x2.length; F3++) {
16273
+ const t = x2[F3];
16270
16274
  t && (t.flags &= -2);
16271
16275
  }
16272
- T = -1, x2.length = 0, to(e), Ge = null, (x2.length || q.length) && In2(e);
16276
+ F3 = -1, x2.length = 0, oo(e), Je = null, (x2.length || Q2.length) && Tn2(e);
16273
16277
  }
16274
16278
  }
16275
16279
  function xn2(e, n) {
16276
16280
  const t = e.get(n) || 0;
16277
16281
  if (t > Xt) {
16278
- const o = n.i, s = o && kn(o.type);
16279
- return On2(
16280
- `Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
16282
+ const r2 = n.i, o = r2 && Hn(r2.type);
16283
+ return In2(
16284
+ `Maximum recursive updates exceeded${o ? ` in component <${o}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
16281
16285
  null,
16282
16286
  10
16283
16287
  ), true;
16284
16288
  }
16285
16289
  return e.set(n, t + 1), false;
16286
16290
  }
16287
- var De2 = /* @__PURE__ */ new Map();
16288
- process.env.NODE_ENV !== "production" && (je().__VUE_HMR_RUNTIME__ = {
16289
- createRecord: Pe(oo),
16290
- rerender: Pe(so),
16291
- reload: Pe(ro)
16291
+ var ke = /* @__PURE__ */ new Map();
16292
+ process.env.NODE_ENV !== "production" && (Se().__VUE_HMR_RUNTIME__ = {
16293
+ createRecord: De2(so),
16294
+ rerender: De2(ro),
16295
+ reload: De2(ao)
16292
16296
  });
16293
- var ve = /* @__PURE__ */ new Map();
16294
- function oo(e, n) {
16295
- return ve.has(e) ? false : (ve.set(e, {
16296
- initialDef: _e2(n),
16297
+ var _e2 = /* @__PURE__ */ new Map();
16298
+ function so(e, n) {
16299
+ return _e2.has(e) ? false : (_e2.set(e, {
16300
+ initialDef: Ce(n),
16297
16301
  instances: /* @__PURE__ */ new Set()
16298
16302
  }), true);
16299
16303
  }
16300
- function _e2(e) {
16304
+ function Ce(e) {
16301
16305
  return Mn2(e) ? e.__vccOpts : e;
16302
16306
  }
16303
- function so(e, n) {
16304
- const t = ve.get(e);
16305
- t && (t.initialDef.render = n, [...t.instances].forEach((o) => {
16306
- n && (o.render = n, _e2(o.type).render = n), o.renderCache = [], o.update();
16307
+ function ro(e, n) {
16308
+ const t = _e2.get(e);
16309
+ t && (t.initialDef.render = n, [...t.instances].forEach((r2) => {
16310
+ n && (r2.render = n, Ce(r2.type).render = n), r2.renderCache = [], r2.update();
16307
16311
  }));
16308
16312
  }
16309
- function ro(e, n) {
16310
- const t = ve.get(e);
16313
+ function ao(e, n) {
16314
+ const t = _e2.get(e);
16311
16315
  if (!t) return;
16312
- n = _e2(n), ln2(t.initialDef, n);
16313
- const o = [...t.instances];
16314
- for (let s = 0; s < o.length; s++) {
16315
- const a = o[s], c = _e2(a.type);
16316
- let g2 = De2.get(c);
16317
- g2 || (c !== t.initialDef && ln2(c, n), De2.set(c, g2 = /* @__PURE__ */ new Set())), g2.add(a), a.appContext.propsCache.delete(a.type), a.appContext.emitsCache.delete(a.type), a.appContext.optionsCache.delete(a.type), a.ceReload ? (g2.add(a), a.ceReload(n.styles), g2.delete(a)) : a.parent ? eo(() => {
16318
- a.parent.update(), g2.delete(a);
16319
- }) : a.appContext.reload ? a.appContext.reload() : typeof window < "u" && window.location.reload(), a.root.ce && a !== a.root && a.root.ce._removeChildStyle(c);
16320
- }
16321
- no(() => {
16322
- De2.clear();
16316
+ n = Ce(n), pn2(t.initialDef, n);
16317
+ const r2 = [...t.instances];
16318
+ for (let o = 0; o < r2.length; o++) {
16319
+ const s = r2[o], p = Ce(s.type);
16320
+ let _ = ke.get(p);
16321
+ _ || (p !== t.initialDef && pn2(p, n), ke.set(p, _ = /* @__PURE__ */ new Set())), _.add(s), s.appContext.propsCache.delete(s.type), s.appContext.emitsCache.delete(s.type), s.appContext.optionsCache.delete(s.type), s.ceReload ? (_.add(s), s.ceReload(n.styles), _.delete(s)) : s.parent ? no(() => {
16322
+ s.parent.update(), _.delete(s);
16323
+ }) : s.appContext.reload ? s.appContext.reload() : typeof window < "u" && window.location.reload(), s.root.ce && s !== s.root && s.root.ce._removeChildStyle(p);
16324
+ }
16325
+ to(() => {
16326
+ ke.clear();
16323
16327
  });
16324
16328
  }
16325
- function ln2(e, n) {
16326
- Se(e, n);
16329
+ function pn2(e, n) {
16330
+ Ae2(e, n);
16327
16331
  for (const t in e)
16328
16332
  t !== "__file" && !(t in n) && delete e[t];
16329
16333
  }
16330
- function Pe(e) {
16334
+ function De2(e) {
16331
16335
  return (n, t) => {
16332
16336
  try {
16333
16337
  return e(n, t);
@@ -16335,43 +16339,43 @@ function Pe(e) {
16335
16339
  }
16336
16340
  };
16337
16341
  }
16338
- var Ce = null;
16339
- var ao = null;
16340
- var io = (e) => e.__isTeleport;
16341
- function Dn2(e, n) {
16342
- e.shapeFlag & 6 && e.component ? (e.transition = n, Dn2(e.component.subTree, n)) : e.shapeFlag & 128 ? (e.ssContent.transition = n.clone(e.ssContent), e.ssFallback.transition = n.clone(e.ssFallback)) : e.transition = n;
16342
+ var $e2 = null;
16343
+ var io = null;
16344
+ var co = (e) => e.__isTeleport;
16345
+ function kn(e, n) {
16346
+ e.shapeFlag & 6 && e.component ? (e.transition = n, kn(e.component.subTree, n)) : e.shapeFlag & 128 ? (e.ssContent.transition = n.clone(e.ssContent), e.ssFallback.transition = n.clone(e.ssFallback)) : e.transition = n;
16343
16347
  }
16344
- je().requestIdleCallback;
16345
- je().cancelIdleCallback;
16346
- var co = Symbol.for("v-ndc");
16348
+ Se().requestIdleCallback;
16349
+ Se().cancelIdleCallback;
16350
+ var uo = Symbol.for("v-ndc");
16347
16351
  process.env.NODE_ENV;
16348
- var uo = {};
16349
- var Pn = (e) => Object.getPrototypeOf(e) === uo;
16350
- var lo = (e) => e.__isSuspense;
16351
- var Tn2 = Symbol.for("v-fgt");
16352
- var po = Symbol.for("v-txt");
16352
+ var lo = {};
16353
+ var Dn2 = (e) => Object.getPrototypeOf(e) === lo;
16354
+ var po = (e) => e.__isSuspense;
16355
+ var Fn2 = Symbol.for("v-fgt");
16356
+ var mo = Symbol.for("v-txt");
16353
16357
  var fo = Symbol.for("v-cmt");
16354
- function mo(e) {
16358
+ function ho(e) {
16355
16359
  return e ? e.__v_isVNode === true : false;
16356
16360
  }
16357
- var ho = (...e) => Vn2(
16361
+ var vo = (...e) => Vn2(
16358
16362
  ...e
16359
16363
  );
16360
- var Fn2 = ({ key: e }) => e ?? null;
16361
- var me = ({
16364
+ var Pn = ({ key: e }) => e ?? null;
16365
+ var he2 = ({
16362
16366
  ref: e,
16363
16367
  ref_key: n,
16364
16368
  ref_for: t
16365
- }) => (typeof e == "number" && (e = "" + e), e != null ? H(e) || on2(e) || B2(e) ? { i: Ce, r: e, k: n, f: !!t } : e : null);
16366
- function go(e, n = null, t = null, o = 0, s = null, a = e === Tn2 ? 0 : 1, c = false, g2 = false) {
16367
- const v = {
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) {
16371
+ const C2 = {
16368
16372
  __v_isVNode: true,
16369
16373
  __v_skip: true,
16370
16374
  type: e,
16371
16375
  props: n,
16372
- key: n && Fn2(n),
16373
- ref: n && me(n),
16374
- scopeId: ao,
16376
+ key: n && Pn(n),
16377
+ ref: n && he2(n),
16378
+ scopeId: io,
16375
16379
  slotScopeIds: null,
16376
16380
  children: t,
16377
16381
  component: null,
@@ -16386,33 +16390,33 @@ function go(e, n = null, t = null, o = 0, s = null, a = e === Tn2 ? 0 : 1, c = f
16386
16390
  targetStart: null,
16387
16391
  targetAnchor: null,
16388
16392
  staticCount: 0,
16389
- shapeFlag: a,
16390
- patchFlag: o,
16391
- dynamicProps: s,
16393
+ shapeFlag: s,
16394
+ patchFlag: r2,
16395
+ dynamicProps: o,
16392
16396
  dynamicChildren: null,
16393
16397
  appContext: null,
16394
- ctx: Ce
16398
+ ctx: $e2
16395
16399
  };
16396
- return g2 ? (rn2(v, t), a & 128 && e.normalize(v)) : t && (v.shapeFlag |= H(t) ? 8 : 16), process.env.NODE_ENV !== "production" && v.key !== v.key && ae2("VNode created with invalid key (NaN). VNode type:", v.type), v;
16400
+ return _ ? (an2(C2, t), s & 128 && e.normalize(C2)) : t && (C2.shapeFlag |= L2(t) ? 8 : 16), process.env.NODE_ENV !== "production" && C2.key !== C2.key && ie2("VNode created with invalid key (NaN). VNode type:", C2.type), C2;
16397
16401
  }
16398
- var vo = process.env.NODE_ENV !== "production" ? ho : Vn2;
16399
- function Vn2(e, n = null, t = null, o = 0, s = null, a = false) {
16400
- if ((!e || e === co) && (process.env.NODE_ENV !== "production" && !e && ae2(`Invalid vnode type when creating vnode: ${e}.`), e = fo), mo(e)) {
16401
- const g2 = $e2(
16402
+ var _o = process.env.NODE_ENV !== "production" ? vo : Vn2;
16403
+ function Vn2(e, n = null, t = null, r2 = 0, o = null, s = false) {
16404
+ if ((!e || e === uo) && (process.env.NODE_ENV !== "production" && !e && ie2(`Invalid vnode type when creating vnode: ${e}.`), e = fo), ho(e)) {
16405
+ const _ = be2(
16402
16406
  e,
16403
16407
  n,
16404
16408
  true
16405
16409
  /* mergeRef: true */
16406
16410
  );
16407
- return t && rn2(g2, t), g2.patchFlag = -2, g2;
16411
+ return t && an2(_, t), _.patchFlag = -2, _;
16408
16412
  }
16409
16413
  if (Mn2(e) && (e = e.__vccOpts), n) {
16410
- n = _o(n);
16411
- let { class: g2, style: v } = n;
16412
- g2 && !H(g2) && (n.class = tn2(g2)), L2(v) && (Ue(v) && !D2(v) && (v = Se({}, v)), n.style = nn2(v));
16414
+ n = Co(n);
16415
+ let { class: _, style: C2 } = n;
16416
+ _ && !L2(_) && (n.class = on2(_)), B2(C2) && (ze(C2) && !k2(C2) && (C2 = Ae2({}, C2)), n.style = tn2(C2));
16413
16417
  }
16414
- const c = H(e) ? 1 : lo(e) ? 128 : io(e) ? 64 : L2(e) ? 4 : B2(e) ? 2 : 0;
16415
- return process.env.NODE_ENV !== "production" && c & 4 && Ue(e) && (e = K2(e), ae2(
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(
16416
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`.",
16417
16421
  `
16418
16422
  Component that was made reactive: `,
@@ -16421,32 +16425,32 @@ Component that was made reactive: `,
16421
16425
  e,
16422
16426
  n,
16423
16427
  t,
16428
+ r2,
16424
16429
  o,
16430
+ p,
16425
16431
  s,
16426
- c,
16427
- a,
16428
16432
  true
16429
16433
  );
16430
16434
  }
16431
- function _o(e) {
16432
- return e ? Ue(e) || Pn(e) ? Se({}, e) : e : null;
16435
+ function Co(e) {
16436
+ return e ? ze(e) || Dn2(e) ? Ae2({}, e) : e : null;
16433
16437
  }
16434
- function $e2(e, n, t = false, o = false) {
16435
- const { props: s, ref: a, patchFlag: c, children: g2, transition: v } = e, d = n ? $o(s || {}, n) : s, r2 = {
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 = {
16436
16440
  __v_isVNode: true,
16437
16441
  __v_skip: true,
16438
16442
  type: e.type,
16439
16443
  props: d,
16440
- key: d && Fn2(d),
16444
+ key: d && Pn(d),
16441
16445
  ref: n && n.ref ? (
16442
16446
  // #2078 in the case of <component :is="vnode" ref="extra"/>
16443
16447
  // if the vnode itself already has a ref, cloneVNode will need to merge
16444
16448
  // the refs so the single vnode can be set on multiple refs
16445
- t && a ? D2(a) ? a.concat(me(n)) : [a, me(n)] : me(n)
16446
- ) : a,
16449
+ t && s ? k2(s) ? s.concat(he2(n)) : [s, he2(n)] : he2(n)
16450
+ ) : s,
16447
16451
  scopeId: e.scopeId,
16448
16452
  slotScopeIds: e.slotScopeIds,
16449
- children: process.env.NODE_ENV !== "production" && c === -1 && D2(g2) ? g2.map(Rn2) : g2,
16453
+ children: process.env.NODE_ENV !== "production" && p === -1 && k2(_) ? _.map(Rn2) : _,
16450
16454
  target: e.target,
16451
16455
  targetStart: e.targetStart,
16452
16456
  targetAnchor: e.targetAnchor,
@@ -16456,75 +16460,75 @@ function $e2(e, n, t = false, o = false) {
16456
16460
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
16457
16461
  // note: preserve flag for fragments since they use the flag for children
16458
16462
  // fast paths only.
16459
- patchFlag: n && e.type !== Tn2 ? c === -1 ? 16 : c | 16 : c,
16463
+ patchFlag: n && e.type !== Fn2 ? p === -1 ? 16 : p | 16 : p,
16460
16464
  dynamicProps: e.dynamicProps,
16461
16465
  dynamicChildren: e.dynamicChildren,
16462
16466
  appContext: e.appContext,
16463
16467
  dirs: e.dirs,
16464
- transition: v,
16468
+ transition: C2,
16465
16469
  // These should technically only be non-null on mounted VNodes. However,
16466
16470
  // they *should* be copied for kept-alive vnodes. So we just always copy
16467
16471
  // them since them being non-null during a mount doesn't affect the logic as
16468
16472
  // they will simply be overwritten.
16469
16473
  component: e.component,
16470
16474
  suspense: e.suspense,
16471
- ssContent: e.ssContent && $e2(e.ssContent),
16472
- ssFallback: e.ssFallback && $e2(e.ssFallback),
16475
+ ssContent: e.ssContent && be2(e.ssContent),
16476
+ ssFallback: e.ssFallback && be2(e.ssFallback),
16473
16477
  el: e.el,
16474
16478
  anchor: e.anchor,
16475
16479
  ctx: e.ctx,
16476
16480
  ce: e.ce
16477
16481
  };
16478
- return v && o && Dn2(
16479
- r2,
16480
- v.clone(r2)
16481
- ), r2;
16482
+ return C2 && r2 && kn(
16483
+ i,
16484
+ C2.clone(i)
16485
+ ), i;
16482
16486
  }
16483
16487
  function Rn2(e) {
16484
- const n = $e2(e);
16485
- return D2(e.children) && (n.children = e.children.map(Rn2)), n;
16488
+ const n = be2(e);
16489
+ return k2(e.children) && (n.children = e.children.map(Rn2)), n;
16486
16490
  }
16487
- function Co(e = " ", n = 0) {
16488
- return vo(po, null, e, n);
16491
+ function $o(e = " ", n = 0) {
16492
+ return _o(mo, null, e, n);
16489
16493
  }
16490
- function rn2(e, n) {
16494
+ function an2(e, n) {
16491
16495
  let t = 0;
16492
- const { shapeFlag: o } = e;
16496
+ const { shapeFlag: r2 } = e;
16493
16497
  if (n == null)
16494
16498
  n = null;
16495
- else if (D2(n))
16499
+ else if (k2(n))
16496
16500
  t = 16;
16497
16501
  else if (typeof n == "object")
16498
- if (o & 65) {
16499
- const s = n.default;
16500
- s && (s._c && (s._d = false), rn2(e, s()), s._c && (s._d = true));
16502
+ if (r2 & 65) {
16503
+ const o = n.default;
16504
+ o && (o._c && (o._d = false), an2(e, o()), o._c && (o._d = true));
16501
16505
  return;
16502
16506
  } else
16503
- t = 32, !n._ && !Pn(n) && (n._ctx = Ce);
16504
- else B2(n) ? (n = { default: n, _ctx: Ce }, t = 32) : (n = String(n), o & 64 ? (t = 16, n = [Co(n)]) : t = 8);
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);
16505
16509
  e.children = n, e.shapeFlag |= t;
16506
16510
  }
16507
- function $o(...e) {
16511
+ function bo(...e) {
16508
16512
  const n = {};
16509
16513
  for (let t = 0; t < e.length; t++) {
16510
- const o = e[t];
16511
- for (const s in o)
16512
- if (s === "class")
16513
- n.class !== o.class && (n.class = tn2([n.class, o.class]));
16514
- else if (s === "style")
16515
- n.style = nn2([n.style, o.style]);
16516
- else if (kt(s)) {
16517
- const a = n[s], c = o[s];
16518
- c && a !== c && !(D2(a) && a.includes(c)) && (n[s] = a ? [].concat(a, c) : c);
16519
- } else s !== "" && (n[s] = o[s]);
16514
+ const r2 = e[t];
16515
+ for (const o in r2)
16516
+ if (o === "class")
16517
+ n.class !== r2.class && (n.class = on2([n.class, r2.class]));
16518
+ else if (o === "style")
16519
+ n.style = tn2([n.style, r2.style]);
16520
+ else if (Ht2(o)) {
16521
+ const s = n[o], p = r2[o];
16522
+ p && s !== p && !(k2(s) && s.includes(p)) && (n[o] = s ? [].concat(s, p) : p);
16523
+ } else o !== "" && (n[o] = r2[o]);
16520
16524
  }
16521
16525
  return n;
16522
16526
  }
16523
16527
  {
16524
- const e = je(), n = (t, o) => {
16525
- let s;
16526
- return (s = e[t]) || (s = e[t] = []), s.push(o), (a) => {
16527
- s.length > 1 ? s.forEach((c) => c(a)) : s[0](a);
16528
+ const e = Se(), n = (t, r2) => {
16529
+ let o;
16530
+ return (o = e[t]) || (o = e[t] = []), o.push(r2), (s) => {
16531
+ o.length > 1 ? o.forEach((p) => p(s)) : o[0](s);
16528
16532
  };
16529
16533
  };
16530
16534
  n(
@@ -16536,95 +16540,95 @@ function $o(...e) {
16536
16540
  );
16537
16541
  }
16538
16542
  process.env.NODE_ENV;
16539
- var bo = /(?:^|[-_])(\w)/g;
16540
- var wo = (e) => e.replace(bo, (n) => n.toUpperCase()).replace(/[-_]/g, "");
16541
- function kn(e, n = true) {
16542
- return B2(e) ? e.displayName || e.name : e.name || n && e.__name;
16543
+ var wo = /(?:^|[-_])(\w)/g;
16544
+ var No = (e) => e.replace(wo, (n) => n.toUpperCase()).replace(/[-_]/g, "");
16545
+ function Hn(e, n = true) {
16546
+ return z(e) ? e.displayName || e.name : e.name || n && e.__name;
16543
16547
  }
16544
- function Hn(e, n, t = false) {
16545
- let o = kn(n);
16546
- if (!o && n.__file) {
16547
- const s = n.__file.match(/([^/\\]+)\.\w+$/);
16548
- s && (o = s[1]);
16549
- }
16550
- if (!o && e && e.parent) {
16551
- const s = (a) => {
16552
- for (const c in a)
16553
- if (a[c] === n)
16554
- return c;
16548
+ function Ln(e, n, t = false) {
16549
+ let r2 = Hn(n);
16550
+ if (!r2 && n.__file) {
16551
+ const o = n.__file.match(/([^/\\]+)\.\w+$/);
16552
+ o && (r2 = o[1]);
16553
+ }
16554
+ if (!r2 && e && e.parent) {
16555
+ const o = (s) => {
16556
+ for (const p in s)
16557
+ if (s[p] === n)
16558
+ return p;
16555
16559
  };
16556
- o = s(
16560
+ r2 = o(
16557
16561
  e.components || e.parent.type.components
16558
- ) || s(e.appContext.components);
16562
+ ) || o(e.appContext.components);
16559
16563
  }
16560
- return o ? wo(o) : t ? "App" : "Anonymous";
16564
+ return r2 ? No(r2) : t ? "App" : "Anonymous";
16561
16565
  }
16562
16566
  function Mn2(e) {
16563
- return B2(e) && "__vccOpts" in e;
16567
+ return z(e) && "__vccOpts" in e;
16564
16568
  }
16565
- function No() {
16569
+ function yo() {
16566
16570
  if (process.env.NODE_ENV === "production" || typeof window > "u")
16567
16571
  return;
16568
- const e = { style: "color:#3ba776" }, n = { style: "color:#1677ff" }, t = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
16572
+ const e = { style: "color:#3ba776" }, n = { style: "color:#1677ff" }, t = { style: "color:#f5222d" }, r2 = { style: "color:#eb2f96" }, o = {
16569
16573
  __vue_custom_formatter: true,
16570
- header(i) {
16571
- return L2(i) ? i.__isVue ? ["div", e, "VueInstance"] : on2(i) ? [
16574
+ header(a) {
16575
+ return B2(a) ? a.__isVue ? ["div", e, "VueInstance"] : sn2(a) ? [
16572
16576
  "div",
16573
16577
  {},
16574
- ["span", e, r2(i)],
16578
+ ["span", e, i(a)],
16575
16579
  "<",
16576
16580
  // avoid debugger accessing value affecting behavior
16577
- g2("_value" in i ? i._value : i),
16581
+ _("_value" in a ? a._value : a),
16578
16582
  ">"
16579
- ] : En2(i) ? [
16583
+ ] : En2(a) ? [
16580
16584
  "div",
16581
16585
  {},
16582
- ["span", e, Ie2(i) ? "ShallowReactive" : "Reactive"],
16586
+ ["span", e, Te(a) ? "ShallowReactive" : "Reactive"],
16583
16587
  "<",
16584
- g2(i),
16585
- `>${Be(i) ? " (readonly)" : ""}`
16586
- ] : Be(i) ? [
16588
+ _(a),
16589
+ `>${Ue(a) ? " (readonly)" : ""}`
16590
+ ] : Ue(a) ? [
16587
16591
  "div",
16588
16592
  {},
16589
- ["span", e, Ie2(i) ? "ShallowReadonly" : "Readonly"],
16593
+ ["span", e, Te(a) ? "ShallowReadonly" : "Readonly"],
16590
16594
  "<",
16591
- g2(i),
16595
+ _(a),
16592
16596
  ">"
16593
16597
  ] : null : null;
16594
16598
  },
16595
- hasBody(i) {
16596
- return i && i.__isVue;
16599
+ hasBody(a) {
16600
+ return a && a.__isVue;
16597
16601
  },
16598
- body(i) {
16599
- if (i && i.__isVue)
16602
+ body(a) {
16603
+ if (a && a.__isVue)
16600
16604
  return [
16601
16605
  "div",
16602
16606
  {},
16603
- ...a(i.$)
16607
+ ...s(a.$)
16604
16608
  ];
16605
16609
  }
16606
16610
  };
16607
- function a(i) {
16611
+ function s(a) {
16608
16612
  const l2 = [];
16609
- i.type.props && i.props && l2.push(c("props", K2(i.props))), i.setupState !== ze && l2.push(c("setup", i.setupState)), i.data !== ze && l2.push(c("data", K2(i.data)));
16610
- const m2 = v(i, "computed");
16611
- m2 && l2.push(c("computed", m2));
16612
- const C2 = v(i, "inject");
16613
- return C2 && l2.push(c("injected", C2)), l2.push([
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));
16616
+ const b2 = C2(a, "inject");
16617
+ return b2 && l2.push(p("injected", b2)), l2.push([
16614
16618
  "div",
16615
16619
  {},
16616
16620
  [
16617
16621
  "span",
16618
16622
  {
16619
- style: o.style + ";opacity:0.66"
16623
+ style: r2.style + ";opacity:0.66"
16620
16624
  },
16621
16625
  "$ (internal): "
16622
16626
  ],
16623
- ["object", { object: i }]
16627
+ ["object", { object: a }]
16624
16628
  ]), l2;
16625
16629
  }
16626
- function c(i, l2) {
16627
- return l2 = Se({}, l2), Object.keys(l2).length ? [
16630
+ function p(a, l2) {
16631
+ return l2 = Ae2({}, l2), Object.keys(l2).length ? [
16628
16632
  "div",
16629
16633
  { style: "line-height:1.25em;margin-bottom:0.6em" },
16630
16634
  [
@@ -16632,56 +16636,56 @@ function No() {
16632
16636
  {
16633
16637
  style: "color:#476582"
16634
16638
  },
16635
- i
16639
+ a
16636
16640
  ],
16637
16641
  [
16638
16642
  "div",
16639
16643
  {
16640
16644
  style: "padding-left:1.25em"
16641
16645
  },
16642
- ...Object.keys(l2).map((m2) => [
16646
+ ...Object.keys(l2).map((f) => [
16643
16647
  "div",
16644
16648
  {},
16645
- ["span", o, m2 + ": "],
16646
- g2(l2[m2], false)
16649
+ ["span", r2, f + ": "],
16650
+ _(l2[f], false)
16647
16651
  ])
16648
16652
  ]
16649
16653
  ] : ["span", {}];
16650
16654
  }
16651
- function g2(i, l2 = true) {
16652
- return typeof i == "number" ? ["span", n, i] : typeof i == "string" ? ["span", t, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : L2(i) ? ["object", { object: l2 ? K2(i) : i }] : ["span", t, String(i)];
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)];
16653
16657
  }
16654
- function v(i, l2) {
16655
- const m2 = i.type;
16656
- if (B2(m2))
16658
+ function C2(a, l2) {
16659
+ const f = a.type;
16660
+ if (z(f))
16657
16661
  return;
16658
- const C2 = {};
16659
- for (const p in i.ctx)
16660
- d(m2, p, l2) && (C2[p] = i.ctx[p]);
16661
- return C2;
16662
- }
16663
- function d(i, l2, m2) {
16664
- const C2 = i[m2];
16665
- if (D2(C2) && C2.includes(l2) || L2(C2) && l2 in C2 || i.extends && d(i.extends, l2, m2) || i.mixins && i.mixins.some((p) => d(p, l2, m2)))
16662
+ const b2 = {};
16663
+ for (const g2 in a.ctx)
16664
+ d(f, g2, l2) && (b2[g2] = a.ctx[g2]);
16665
+ return b2;
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)))
16666
16670
  return true;
16667
16671
  }
16668
- function r2(i) {
16669
- return Ie2(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
16672
+ function i(a) {
16673
+ return Te(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
16670
16674
  }
16671
- window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
16675
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
16672
16676
  }
16673
16677
  process.env.NODE_ENV;
16674
16678
  process.env.NODE_ENV;
16675
16679
  process.env.NODE_ENV;
16676
- function yo() {
16677
- No();
16680
+ function jo() {
16681
+ yo();
16678
16682
  }
16679
- process.env.NODE_ENV !== "production" && yo();
16683
+ process.env.NODE_ENV !== "production" && jo();
16680
16684
  function Eo(e) {
16681
- return Pt(e) || Tt(e) || Dt(e) || Ft2(e) || Vt(e);
16685
+ return Dt(e) || Ft2(e) || kt(e) || Pt(e) || Vt(e);
16682
16686
  }
16683
- var Ln = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(Ln || {});
16684
- var j3 = class {
16687
+ var Kn = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(Kn || {});
16688
+ var S2 = class {
16685
16689
  imports = /* @__PURE__ */ new Set();
16686
16690
  parentDir;
16687
16691
  name;
@@ -16722,875 +16726,1001 @@ var j3 = class {
16722
16726
  this.parentDir = n;
16723
16727
  }
16724
16728
  };
16725
- var be2;
16729
+ var we;
16726
16730
  ((e) => {
16727
16731
  ((n) => {
16728
- n.Lombok = "Lombok", n.LombokBuilder = "LombokBuilder", n.RecordVakueObject = "RecordVakueObject", n.CommandHandler = "CommandHandler", n.Jpa = "Jpa", n.Timezone = "Timezone", n.SpringFramework = "SpringFramework";
16729
- })(e.JavaGeneratorAddition || (e.JavaGeneratorAddition = {}));
16730
- })(be2 || (be2 = {}));
16731
- var we;
16732
+ n.Lombok = "Lombok", n.LombokBuilder = "LombokBuilder", n.RecordValueObject = "RecordValueObject", n.CommandHandler = "CommandHandler", n.Jpa = "Jpa", n.Timezone = "Timezone", n.SpringFramework = "SpringFramework";
16733
+ })(e.JavaGeneratorAddition || (e.JavaGeneratorAddition = {})), ((n) => {
16734
+ n.TABLE = "TABLE", n.SEQUENCE = "SEQUENCE", n.IDENTITY = "IDENTITY", n.UUID = "UUID", n.AUTO = "AUTO";
16735
+ })(e.IdGenStrategy || (e.IdGenStrategy = {}));
16736
+ })(we || (we = {}));
16737
+ var Ne;
16732
16738
  ((e) => {
16733
16739
  ((n) => {
16734
16740
  n.ValueClass = "ValueClass", n.CommandHandler = "CommandHandler", n.Timezone = "Timezone";
16735
16741
  })(e.KotlinGeneratorAddition || (e.KotlinGeneratorAddition = {}));
16736
- })(we || (we = {}));
16737
- var Ne;
16742
+ })(Ne || (Ne = {}));
16743
+ var ye;
16738
16744
  ((e) => {
16739
16745
  ((n) => {
16740
16746
  n.Timezone = "Timezone", n.RecordStruct = "RecordStruct", n.PrimaryConstructor = "PrimaryConstructor", n.CommandHandlerInterface = "CommandHandlerInterface", n.AggInterface = "AggInterface";
16741
16747
  })(e.CSharpGeneratorAddition || (e.CSharpGeneratorAddition = {}));
16742
- })(Ne || (Ne = {}));
16748
+ })(ye || (ye = {}));
16743
16749
  var We;
16744
16750
  ((e) => {
16745
16751
  ((n) => {
16746
16752
  n.SinglePackageEachDesigner = "SinglePackageEachDesigner";
16747
16753
  })(e.GoGeneratorAddition || (e.GoGeneratorAddition = {}));
16748
16754
  })(We || (We = {}));
16749
- var jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16755
+ var So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16750
16756
  __proto__: null,
16751
- CodeFile: j3,
16752
- Language: Ln,
16757
+ CodeFile: S2,
16758
+ Language: Kn,
16753
16759
  get csharp() {
16754
- return Ne;
16760
+ return ye;
16755
16761
  },
16756
16762
  get go() {
16757
16763
  return We;
16758
16764
  },
16759
16765
  isStruct: Eo,
16760
16766
  get java() {
16761
- return be2;
16767
+ return we;
16762
16768
  },
16763
16769
  get kotlin() {
16764
- return we;
16770
+ return Ne;
16765
16771
  }
16766
16772
  }, Symbol.toStringTag, { value: "Module" }));
16767
16773
  var N2;
16768
16774
  ((e) => {
16769
16775
  function n(d) {
16770
- return d.trim().split(d.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((r2) => r2.charAt(0).toUpperCase() + r2.toLowerCase().slice(1)).join("");
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("");
16771
16777
  }
16772
16778
  e.stringToUpperCamel = n;
16773
16779
  function t(d) {
16774
- let r2 = true;
16775
- return d.trim().split(d.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((i) => r2 ? (r2 = false, i.toLowerCase()) : i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
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("");
16776
16782
  }
16777
16783
  e.stringToLowerCamel = t;
16778
- function o(d) {
16779
- return d.includes("_") ? d.toLowerCase() : a(d);
16784
+ function r2(d) {
16785
+ return d = d.trim(), d.includes("_") ? d.toLowerCase() : d.includes(" ") || d.includes("-") ? d.split(/\s|-/).join("_").toLowerCase() : s(d);
16780
16786
  }
16781
- e.stringToLowerSnake = o;
16782
- function s(d) {
16787
+ e.stringToLowerSnake = r2;
16788
+ function o(d) {
16783
16789
  return d.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
16784
16790
  }
16785
- e.camelToUpperSnake = s;
16786
- function a(d) {
16791
+ e.camelToUpperSnake = o;
16792
+ function s(d) {
16787
16793
  return d.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
16788
16794
  }
16789
- e.camelToLowerSnake = a;
16790
- function c(d) {
16791
- return d.trim().split("_").map((r2) => r2.charAt(0).toUpperCase() + r2.slice(1)).join("");
16795
+ e.camelToLowerSnake = s;
16796
+ function p(d) {
16797
+ return d.trim().split("_").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join("");
16792
16798
  }
16793
- e.snakeToUpperCamel = c;
16794
- function g2(d) {
16799
+ e.snakeToUpperCamel = p;
16800
+ function _(d) {
16795
16801
  return d.trim().charAt(0).toLowerCase() + d.slice(1);
16796
16802
  }
16797
- e.lowerFirst = g2;
16798
- function v(d) {
16803
+ e.lowerFirst = _;
16804
+ function C2(d) {
16799
16805
  return d.trim().charAt(0).toUpperCase() + d.slice(1);
16800
16806
  }
16801
- e.upperFirst = v;
16807
+ e.upperFirst = C2;
16802
16808
  })(N2 || (N2 = {}));
16803
- var O2 = be2.JavaGeneratorAddition;
16804
- var Oo = ue.createHotSwapPlugin(() => {
16805
- const e = "value";
16806
- function n(t) {
16807
- return N2.stringToUpperCamel(t._attributes.name);
16809
+ var j3 = we.JavaGeneratorAddition;
16810
+ var Io = le2.createHotSwapPlugin(() => {
16811
+ const e = "value", n = "command", t = "event";
16812
+ function r2(o) {
16813
+ return N2.stringToUpperCamel(o._attributes.name);
16808
16814
  }
16809
16815
  return {
16810
- unmount({ api: t }) {
16811
- t.commands.clearCaches(), t.commands._setCommandCodeProvider(() => []), t.commands._setFacadeCommandCodeProvider(() => []), t.commands._setAggCodeProvider(() => []), t.commands._setEventCodeProvider(() => []), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => []), t.commands.setContext({});
16816
+ unmount({ api: o }) {
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({});
16812
16818
  },
16813
- mount({ api: t }) {
16814
- const o = t.states.context, s = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((r2) => N2.stringToLowerCamel(r2));
16815
- function a(r2) {
16816
- return !s.includes(N2.stringToLowerCamel(r2._attributes.name));
16817
- }
16818
- function c(r2, i) {
16819
- return a(i) ? N2.stringToUpperCamel(i._attributes.name) : v(r2, i);
16820
- }
16821
- function g2(r2, i) {
16822
- for (const l2 of i) {
16823
- if (!a(l2)) {
16824
- v(r2, l2);
16819
+ mount({ api: o }) {
16820
+ const s = o.states.context, p = o.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((a) => N2.stringToLowerCamel(a));
16821
+ function _(a) {
16822
+ return !p.includes(N2.stringToLowerCamel(a._attributes.name));
16823
+ }
16824
+ function C2(a, l2) {
16825
+ return _(l2) ? N2.stringToUpperCamel(l2._attributes.name) : i(a, l2);
16826
+ }
16827
+ function d(a, l2) {
16828
+ for (const f of l2) {
16829
+ if (!_(f)) {
16830
+ i(a, f);
16825
16831
  continue;
16826
16832
  }
16827
- r2.add(
16828
- `${o.value.namespace}.${o.value.moduleName}.${e}.${n(l2)}`
16833
+ a.add(
16834
+ `${s.value.namespace}.${s.value.moduleName}.${e}.${r2(f)}`
16829
16835
  );
16830
16836
  }
16831
16837
  }
16832
- function v(r2, i) {
16833
- const l2 = o.value.additions, m2 = N2.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
16834
- return /\b(time|timestamp|date|deadline|expire)\b/.test(m2) ? l2.has(O2.Timezone) ? (r2.add("java.time.OffsetDateTime"), "OffsetDateTime") : (r2.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(m2) ? "Integer" : /\b(price)$/.test(m2) ? (r2.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(m2) ? "Boolean" : Ee(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") ? "Long" : "String";
16835
- }
16836
- t.commands._setInfoCodeProvider(
16837
- (r2) => {
16838
- const i = /* @__PURE__ */ new Set();
16839
- i.add(o.value.nonNullAnnotation);
16840
- const l2 = o.value.nonNullAnnotation.split(".").pop(), m2 = n(r2), C2 = o.value.additions, p = [];
16841
- return C2.has(O2.RecordVakueObject) ? (p.push(`public record ${m2}(@${l2} ${v(i, r2)} value) {`), p.push(` public ${m2} {`), p.push(" // HACK check value"), p.push(" }"), p.push("}")) : C2.has(O2.Lombok) ? (p.push("@lombok.Getter"), p.push(`public class ${m2} {`), p.push(` private final ${v(i, r2)} value;`), p.push(""), p.push(` public ${m2} (@${l2} ${v(i, r2)} value) {`), p.push(" // HACK check value"), p.push(" this.value = value;"), p.push(" }"), p.push("}")) : (p.push(`public class ${n(r2)} {`), p.push(` private final ${v(i, r2)} value;`), p.push(""), p.push(` public ${m2} (@${l2} ${v(i, r2)} value) {`), p.push(" // HACK check value"), p.push(" this.value = value;"), p.push(" }"), p.push(""), p.push(` public ${v(i, r2)} getValue() {`), p.push(" return this.value;"), p.push(" }"), p.push("}")), [
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";
16841
+ }
16842
+ o.commands._setInfoCodeProvider(
16843
+ (a) => {
16844
+ const l2 = /* @__PURE__ */ new Set();
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(
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(
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(
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("}")), [
16842
16854
  {
16843
16855
  type: "Info",
16844
- imports: i,
16845
- content: p.join(`
16856
+ imports: l2,
16857
+ content: u.join(`
16846
16858
  `)
16847
16859
  }
16848
16860
  ];
16849
16861
  }
16850
- );
16851
- function d(r2) {
16852
- const i = [], l2 = o.value.additions, m2 = o.value.nonNullAnnotation.split(".").pop();
16862
+ ), o.commands._setCommandCodeProvider(
16863
+ (a) => {
16864
+ const l2 = [], f = s.value.additions, b2 = s.value.nonNullAnnotation.split(".").pop();
16865
+ {
16866
+ const g2 = /* @__PURE__ */ new Set();
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(
16875
+ ` @${b2}
16876
+ ${C2(
16877
+ g2,
16878
+ w2
16879
+ )} ${N2.lowerFirst(c)}`
16880
+ );
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)};`
16890
+ );
16891
+ }
16892
+ v.push("}");
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)};`
16899
+ );
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)};`);
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(" }");
16914
+ }
16915
+ v.push("}");
16916
+ }
16917
+ l2.push({
16918
+ type: "Command",
16919
+ imports: g2,
16920
+ content: v.join(`
16921
+ `)
16922
+ });
16923
+ }
16924
+ if (!f.has(j3.CommandHandler))
16925
+ return l2;
16926
+ {
16927
+ const g2 = /* @__PURE__ */ new Set();
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"
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({
16937
+ type: "CommandHandler",
16938
+ imports: g2,
16939
+ content: v.join(`
16940
+ `)
16941
+ });
16942
+ }
16943
+ return l2;
16944
+ }
16945
+ ), o.commands._setFacadeCommandCodeProvider((a) => {
16946
+ const l2 = [], f = s.value.additions, b2 = s.value.nonNullAnnotation.split(".").pop();
16853
16947
  {
16854
- const C2 = /* @__PURE__ */ new Set();
16855
- C2.add(o.value.nonNullAnnotation);
16856
- const p = n(r2), f = [], $2 = Object.values(r2.inner);
16857
- if (g2(C2, $2), l2.has(O2.RecordVakueObject)) {
16858
- l2.has(O2.LombokBuilder) && f.push("@lombok.Builder(toBuilder = true)"), f.push(`public record ${p}(`);
16859
- const _ = [];
16860
- for (const b2 of $2) {
16861
- const h2 = n(b2);
16862
- _.push(
16863
- ` @${m2}
16864
- ${c(
16865
- C2,
16866
- b2
16867
- )} ${N2.lowerFirst(h2)}`
16948
+ const g2 = /* @__PURE__ */ new Set();
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(
16957
+ ` @${b2}
16958
+ ${C2(
16959
+ g2,
16960
+ w2
16961
+ )} ${N2.lowerFirst(c)}`
16868
16962
  );
16869
16963
  }
16870
- f.push(_.join(`,
16871
- `)), f.push(") {"), f.push(` public ${p} {`), f.push(" // HACK check value"), f.push(" }"), f.push("}");
16872
- } else if (l2.has(O2.Lombok)) {
16873
- f.push("@lombok.AllArgsConstructor"), f.push("@lombok.Getter"), l2.has(O2.LombokBuilder) && f.push("@lombok.Builder(toBuilder = true)"), f.push(`public class ${p} {`);
16874
- for (const _ of $2) {
16875
- const b2 = n(_);
16876
- f.push(` @${m2}`), f.push(
16877
- ` private final ${c(C2, _)} ${N2.lowerFirst(b2)};`
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)};`
16878
16972
  );
16879
16973
  }
16880
- f.push("}");
16974
+ v.push("}");
16881
16975
  } else {
16882
- f.push(`public class ${p} {`);
16883
- for (const h2 of $2) {
16884
- const u = n(h2);
16885
- f.push(` @${m2}`), f.push(
16886
- ` private final ${c(C2, h2)} ${N2.lowerFirst(u)};`
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)};`
16887
16981
  );
16888
16982
  }
16889
- f.push("");
16890
- const _ = [], b2 = [];
16891
- for (const h2 of $2) {
16892
- const u = n(h2);
16893
- _.push(
16894
- `@${m2} ${v(C2, h2)} ${N2.lowerFirst(u)}`
16895
- ), b2.push(`this.${N2.lowerFirst(u)} = ${N2.lowerFirst(u)};`);
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)};`);
16896
16990
  }
16897
- f.push(` public ${p}(${_.join(", ")}) {`), f.push(` ${b2.join(`
16898
- `)}`), f.push(" }");
16899
- for (const h2 of $2) {
16900
- const u = n(h2);
16901
- f.push(""), f.push(` public ${c(C2, h2)} get${u} () {`), f.push(` return this.${N2.lowerFirst(u)};`), f.push(" }");
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(" }");
16902
16996
  }
16903
- f.push("}");
16997
+ v.push("}");
16904
16998
  }
16905
- i.push({
16906
- type: "Command",
16907
- imports: C2,
16908
- content: f.join(`
16999
+ l2.push({
17000
+ type: "FacadeCommand",
17001
+ imports: g2,
17002
+ content: v.join(`
16909
17003
  `)
16910
17004
  });
16911
17005
  }
16912
- if (!l2.has(O2.CommandHandler))
16913
- return i;
17006
+ if (!f.has(j3.CommandHandler))
17007
+ return l2;
16914
17008
  {
16915
- const C2 = /* @__PURE__ */ new Set();
16916
- C2.add(o.value.nonNullAnnotation);
16917
- const p = n(r2), f = [];
16918
- l2.has(O2.SpringFramework) && (C2.add("org.springframework.stereotype.Component"), f.push("@Component")), l2.has(O2.Lombok) && f.push("@lombok.RequiredArgsConstructor"), f.push(`public class ${p}Handler {`);
16919
- const $2 = [...t.states.designer.value._getContext().getAssociationMap()[r2._attributes.__id]].filter(
16920
- (_) => _._attributes.rule === "Agg"
17009
+ const g2 = /* @__PURE__ */ new Set();
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"
16921
17015
  );
16922
- for (const _ of $2)
16923
- C2.add(`${o.value.namespace}.${o.value.moduleName}.${n(_)}`), f.push(` public ${n(_)} handle(@${m2} ${p} command) {`), f.push(" // HACK Implement"), f.push(" }");
16924
- f.push("}"), i.push({
16925
- type: "CommandHandler",
16926
- imports: C2,
16927
- content: f.join(`
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({
17019
+ type: "FacadeCommandHandler",
17020
+ imports: g2,
17021
+ content: v.join(`
16928
17022
  `)
16929
17023
  });
16930
17024
  }
16931
- return i;
16932
- }
16933
- t.commands._setCommandCodeProvider(d), t.commands._setFacadeCommandCodeProvider(d), t.commands._setAggCodeProvider(
16934
- (r2) => {
16935
- const i = o.value.additions, l2 = t.states.designer.value, m2 = o.value.nonNullAnnotation.split(".").pop(), C2 = n(r2), p = [];
17025
+ return l2;
17026
+ }), o.commands._setAggCodeProvider(
17027
+ (a) => {
17028
+ const l2 = s.value.additions, f = o.states.designer.value, b2 = s.value.nonNullAnnotation.split(".").pop(), g2 = r2(a), u = [];
16936
17029
  {
16937
- const f = /* @__PURE__ */ new Set();
16938
- f.add(o.value.nonNullAnnotation);
16939
- const $2 = [], _ = [], b2 = [...l2._getContext().getAssociationMap()[r2._attributes.__id]].filter((h2) => h2._attributes.rule === "Command" || h2._attributes.rule === "FacadeCommand");
16940
- for (const h2 of b2) {
16941
- const u = n(h2);
16942
- _.push(`public void handle${u}(@${m2} ${u} command);`);
17030
+ const v = /* @__PURE__ */ new Set();
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);`);
16943
17036
  }
16944
- $2.push(`public interface ${C2} {`), $2.push(` ${_.join(`
17037
+ m2.push(`public interface ${g2} {`), m2.push(` ${$2.join(`
16945
17038
 
16946
- `)}`), $2.push("}"), p.push({
17039
+ `)}`), m2.push("}"), u.push({
16947
17040
  type: "Agg",
16948
- imports: f,
16949
- content: $2.join(`
17041
+ imports: v,
17042
+ content: m2.join(`
16950
17043
  `)
16951
17044
  });
16952
17045
  }
16953
17046
  {
16954
- const f = /* @__PURE__ */ new Set();
16955
- f.add(o.value.nonNullAnnotation);
16956
- const $2 = [], _ = Object.values(r2.inner);
16957
- if (g2(f, _), i.has(O2.Lombok)) {
16958
- $2.push("@lombok.AllArgsConstructor"), $2.push("@lombok.Getter"), $2.push(`public class ${C2}Impl implements ${C2} {`);
16959
- for (const h2 of _) {
16960
- const u = n(h2);
16961
- $2.push(` @${m2}`), $2.push(` private ${c(f, h2)} ${N2.lowerFirst(u)};`);
17047
+ const v = /* @__PURE__ */ new Set();
17048
+ 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(
17054
+ 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} {`);
17056
+ 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(
17063
+ s.value.jdkVersion === "8" ? "javax.persistence.AttributeOverride" : "jakarta.persistence.AttributeOverride"
17064
+ ), v.add(
17065
+ 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)};`);
16962
17071
  }
16963
- const b2 = [...l2._getContext().getAssociationMap()[r2._attributes.__id]].filter((h2) => h2._attributes.rule === "Command" || h2._attributes.rule === "FacadeCommand");
16964
- for (const h2 of b2) {
16965
- const u = n(h2);
16966
- $2.push(""), $2.push(
16967
- ` public void handle${u}(@${m2} ${u} ${N2.lowerFirst(
16968
- u
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
16969
17078
  )}) {`
16970
- ), $2.push(" // HACK need implement"), $2.push(" }");
17079
+ ), m2.push(" // HACK need implement"), m2.push(" }");
16971
17080
  }
16972
- $2.push("}");
17081
+ m2.push("}");
16973
17082
  } else {
16974
- $2.push(`public class ${C2}Impl implements ${C2} {`);
16975
- for (const w2 of _) {
16976
- const y3 = n(w2);
16977
- $2.push(` @${m2}`), $2.push(` private ${c(f, w2)} ${N2.lowerFirst(y3)};`);
17083
+ l2.has(j3.Jpa) && (v.add(
17084
+ 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} {`);
17086
+ for (const y3 of $2) {
17087
+ 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(
17093
+ s.value.jdkVersion === "8" ? "javax.persistence.AttributeOverride" : "jakarta.persistence.AttributeOverride"
17094
+ ), v.add(
17095
+ s.value.jdkVersion === "8" ? "javax.persistence.Column" : "jakarta.persistence.Column"
17096
+ ), m2.push(
17097
+ ` @AttributeOverride(name = "value", column = @Column(name = "${N2.camelToLowerSnake(
17098
+ I2
17099
+ )}"))`
17100
+ )), m2.push(` private ${C2(v, y3)} ${N2.lowerFirst(I2)};`);
16978
17101
  }
16979
- $2.push("");
16980
- const b2 = [], h2 = [];
16981
- for (const w2 of _) {
16982
- const y3 = n(w2);
16983
- b2.push(
16984
- `@${m2} ${c(f, w2)} ${N2.lowerFirst(y3)}`
16985
- ), h2.push(`this.${N2.lowerFirst(y3)} = ${N2.lowerFirst(y3)};`);
17102
+ m2.push("");
17103
+ const w2 = [], c = [];
17104
+ for (const y3 of $2) {
17105
+ if (l2.has(j3.Jpa))
17106
+ break;
17107
+ 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)};`);
16986
17111
  }
16987
- $2.push(` public ${C2}(${b2.join(", ")}) {`), $2.push(` ${h2.join(`
16988
- `)}`), $2.push(" }");
16989
- for (const w2 of _) {
16990
- const y3 = n(w2);
16991
- $2.push(""), $2.push(` @${m2}`), $2.push(` public ${c(f, w2)} get${y3}() {`), $2.push(` return this.${N2.lowerFirst(y3)};`), $2.push(" }");
17112
+ m2.push(` public ${g2}Impl(${w2.join(", ")}) {`), m2.push(` ${c.join(`
17113
+ `)}`), m2.push(" }");
17114
+ for (const y3 of $2) {
17115
+ 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(" }");
16992
17117
  }
16993
- const u = [...l2._getContext().getAssociationMap()[r2._attributes.__id]].filter(
16994
- (w2) => w2._attributes.rule === "Command" || w2._attributes.rule === "FacadeCommand"
17118
+ const h2 = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter(
17119
+ (y3) => y3._attributes.rule === "Command" || y3._attributes.rule === "FacadeCommand"
16995
17120
  );
16996
- for (const w2 of u) {
16997
- const y3 = n(w2);
16998
- $2.push(""), $2.push(
16999
- ` public void handle${y3}(@${m2} ${y3} ${N2.lowerFirst(
17000
- y3
17121
+ for (const y3 of h2) {
17122
+ 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(
17125
+ I2
17001
17126
  )}) {`
17002
- ), $2.push(" // HACK need implement"), $2.push(" }");
17127
+ ), m2.push(" // HACK need implement"), m2.push(" }");
17003
17128
  }
17004
- $2.push("}");
17129
+ m2.push("}");
17005
17130
  }
17006
- p.push({
17131
+ u.push({
17007
17132
  type: "AggImpl",
17008
- imports: f,
17009
- content: $2.join(`
17133
+ imports: v,
17134
+ content: m2.join(`
17010
17135
  `)
17011
17136
  });
17012
17137
  }
17013
- return p;
17014
- }
17015
- ), t.commands._setEventCodeProvider(
17016
- (r2) => {
17017
- const i = /* @__PURE__ */ new Set();
17018
- i.add(o.value.nonNullAnnotation);
17019
- const l2 = o.value.nonNullAnnotation.split(".").pop(), m2 = o.value.additions, C2 = n(r2), p = [], f = Object.values(r2.inner);
17020
- if (g2(i, f), m2.has(O2.RecordVakueObject)) {
17021
- m2.has(O2.LombokBuilder) && p.push("@lombok.Builder(toBuilder = true)"), p.push(`public record ${C2}(`);
17022
- const $2 = [];
17023
- for (const _ of f) {
17024
- const b2 = n(_);
17025
- $2.push(
17026
- ` @${l2}
17027
- ${c(
17028
- i,
17029
- _
17030
- )} ${N2.lowerFirst(b2)}`
17138
+ return u;
17139
+ }
17140
+ ), o.commands._setEventCodeProvider(
17141
+ (a) => {
17142
+ const l2 = /* @__PURE__ */ new Set();
17143
+ 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}
17152
+ ${C2(
17153
+ l2,
17154
+ $2
17155
+ )} ${N2.lowerFirst(w2)}`
17031
17156
  );
17032
17157
  }
17033
- p.push($2.join(`,
17034
- `)), p.push(") {"), p.push(` public ${C2} {`), p.push(" // HACK check value"), p.push(" }"), p.push("}");
17035
- } else if (m2.has(O2.Lombok)) {
17036
- p.push("@lombok.AllArgsConstructor"), p.push("@lombok.Getter"), m2.has(O2.LombokBuilder) && p.push("@lombok.Builder(toBuilder = true)"), p.push(`public class ${C2} {`);
17037
- for (const $2 of f) {
17038
- const _ = n($2);
17039
- p.push(` @${l2}`), p.push(
17040
- ` private final ${c(i, $2)} ${N2.lowerFirst(_)};`
17158
+ u.push(m2.join(`,
17159
+ `)), 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)};`
17041
17166
  );
17042
17167
  }
17043
- p.push("}");
17168
+ u.push("}");
17044
17169
  } else {
17045
- p.push(`public class ${C2} {`);
17046
- for (const b2 of f) {
17047
- const h2 = n(b2);
17048
- p.push(` @${l2}`), p.push(` private final ${h2} ${N2.lowerFirst(h2)};`);
17170
+ 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)};`);
17049
17174
  }
17050
- p.push("");
17051
- const $2 = [], _ = [];
17052
- for (const b2 of f) {
17053
- const h2 = n(b2);
17054
- $2.push(
17055
- `@${l2} ${v(i, b2)} ${N2.lowerFirst(h2)}`
17056
- ), _.push(`this.${N2.lowerFirst(h2)} = ${N2.lowerFirst(h2)};`);
17175
+ 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)};`);
17057
17182
  }
17058
- p.push(` public ${C2}(${$2.join(", ")}) {`), p.push(` ${_.join(`
17059
- `)}`), p.push(" }");
17060
- for (const b2 of f) {
17061
- const h2 = n(b2);
17062
- p.push(""), p.push(` public ${h2} get${h2} () {`), p.push(` return this.${N2.lowerFirst(h2)};`), p.push(" }");
17183
+ u.push(` public ${g2}(${m2.join(", ")}) {`), u.push(` ${$2.join(`
17184
+ `)}`), 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(" }");
17063
17188
  }
17064
- p.push("}");
17189
+ u.push("}");
17065
17190
  }
17066
17191
  return [
17067
17192
  {
17068
17193
  type: "Event",
17069
- imports: i,
17070
- content: p.join(`
17194
+ imports: l2,
17195
+ content: u.join(`
17071
17196
  `)
17072
17197
  }
17073
17198
  ];
17074
17199
  }
17075
- ), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => {
17076
- const r2 = [], i = {};
17077
- function l2($2) {
17078
- for (const _ of Object.values($2)) {
17079
- if (!a(_))
17200
+ ), o.commands._setReadModelCodeProvider(() => []), o.commands._setCodeFileProvider(() => {
17201
+ const a = [], l2 = {};
17202
+ function f(m2) {
17203
+ for (const $2 of Object.values(m2)) {
17204
+ if (!_($2))
17080
17205
  continue;
17081
- const b2 = [...o.value.namespace.split(/\./), o.value.moduleName, e], h2 = n(_) + ".java";
17082
- if (i[`${b2.join("/")}/${h2}`] === true)
17206
+ const w2 = [...s.value.namespace.split(/\./), s.value.moduleName, e], c = r2($2) + ".java";
17207
+ if (l2[`${w2.join("/")}/${c}`] === true)
17083
17208
  continue;
17084
- const u = t.commands._genInfoCode(_);
17085
- if (u.length === 0)
17209
+ const h2 = o.commands._genInfoCode($2);
17210
+ if (h2.length === 0)
17086
17211
  continue;
17087
- const w2 = new j3(b2, h2);
17088
- w2.appendContentln(`package ${o.value.namespace}.${o.value.moduleName}.${e};`), w2.appendContentln("");
17089
- for (const y3 of u[0].imports)
17090
- w2.appendContentln(`import ${y3};`);
17091
- w2.appendContentln(""), w2.appendContentln(u[0].content), r2.push(w2), i[`${b2.join("/")}/${h2}`] = true;
17212
+ const y3 = new S2(w2, c);
17213
+ y3.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${e};`), y3.appendContentln("");
17214
+ for (const I2 of h2[0].imports)
17215
+ y3.appendContentln(`import ${I2};`);
17216
+ y3.appendContentln(""), y3.appendContentln(h2[0].content), a.push(y3), l2[`${w2.join("/")}/${c}`] = true;
17092
17217
  }
17093
17218
  }
17094
- const m2 = t.states.designer.value._getContext().getCommands();
17095
- for (const $2 of m2) {
17096
- l2($2.inner);
17097
- const _ = t.commands._genCommandCode($2), b2 = [...o.value.namespace.split(/\./), o.value.moduleName];
17098
- _.forEach((h2) => {
17099
- if (h2.type === "Command") {
17100
- const u = new j3(b2, n($2) + ".java");
17101
- u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h2.imports);
17102
- for (const w2 of h2.imports)
17103
- u.appendContentln(`import ${w2};`);
17104
- u.appendContentln(""), u.appendContentln(h2.content), r2.push(u);
17105
- } else if (h2.type === "CommandHandler") {
17106
- const u = new j3(b2, n($2) + "Handler.java");
17107
- u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h2.imports);
17108
- for (const w2 of h2.imports)
17109
- u.appendContentln(`import ${w2};`);
17110
- u.appendContentln(""), u.appendContentln(h2.content), r2.push(u);
17219
+ 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
+ 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);
17227
+ for (const y3 of c.imports)
17228
+ h2.appendContentln(`import ${y3};`);
17229
+ h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17230
+ } 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);
17233
+ for (const y3 of c.imports)
17234
+ h2.appendContentln(`import ${y3};`);
17235
+ h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17111
17236
  } else
17112
- isNever(h2.type);
17237
+ isNever(c.type);
17113
17238
  });
17114
17239
  }
17115
- const C2 = t.states.designer.value._getContext().getFacadeCommands();
17116
- for (const $2 of C2) {
17117
- l2($2.inner);
17118
- const _ = t.commands._genFacadeCommandCode($2), b2 = [...o.value.namespace.split(/\./), o.value.moduleName];
17119
- _.forEach((h2) => {
17120
- if (h2.type === "FacadeCommand") {
17121
- const u = new j3(b2, n($2) + ".java");
17122
- u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h2.imports);
17123
- for (const w2 of h2.imports)
17124
- u.appendContentln(`import ${w2};`);
17125
- u.appendContentln(""), u.appendContentln(h2.content), r2.push(u);
17240
+ 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
+ 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);
17248
+ for (const y3 of c.imports)
17249
+ h2.appendContentln(`import ${y3};`);
17250
+ h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17251
+ } 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);
17254
+ for (const y3 of c.imports)
17255
+ h2.appendContentln(`import ${y3};`);
17256
+ h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17126
17257
  } else
17127
- isNever(h2.type);
17258
+ isNever(c.type);
17128
17259
  });
17129
17260
  }
17130
- const p = t.states.designer.value._getContext().getAggs();
17131
- for (const $2 of p) {
17132
- l2($2.inner);
17133
- const _ = t.commands._genAggCode($2), b2 = [...o.value.namespace.split(/\./), o.value.moduleName];
17134
- _.forEach((h2) => {
17135
- if (h2.type === "Agg") {
17136
- const u = new j3(b2, n($2) + ".java");
17137
- u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h2.imports);
17138
- for (const w2 of h2.imports)
17139
- u.appendContentln(`import ${w2};`);
17140
- u.appendContentln(""), u.appendContentln(h2.content), r2.push(u);
17141
- } else if (h2.type === "AggImpl") {
17142
- const u = new j3(b2, n($2) + "Impl.java");
17143
- u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h2.imports);
17144
- for (const w2 of h2.imports)
17145
- u.appendContentln(`import ${w2};`);
17146
- u.appendContentln(""), u.appendContentln(h2.content), r2.push(u);
17261
+ 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
+ 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);
17269
+ for (const y3 of c.imports)
17270
+ h2.appendContentln(`import ${y3};`);
17271
+ h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17272
+ } 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);
17275
+ for (const y3 of c.imports)
17276
+ h2.appendContentln(`import ${y3};`);
17277
+ h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17147
17278
  } else
17148
- isNever(h2.type);
17279
+ isNever(c.type);
17149
17280
  });
17150
17281
  }
17151
- const f = t.states.designer.value._getContext().getEvents();
17152
- for (const $2 of f) {
17153
- l2($2.inner);
17154
- const _ = t.commands._genEventCode($2), b2 = [...o.value.namespace.split(/\./), o.value.moduleName];
17155
- _.forEach((h2) => {
17156
- const u = new j3(b2, n($2) + ".java");
17157
- u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h2.imports);
17158
- for (const w2 of h2.imports)
17159
- u.appendContentln(`import ${w2};`);
17160
- u.appendContentln(""), u.appendContentln(h2.content), r2.push(u);
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);
17289
+ for (const y3 of c.imports)
17290
+ h2.appendContentln(`import ${y3};`);
17291
+ h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
17161
17292
  });
17162
17293
  }
17163
- return r2;
17294
+ return a;
17164
17295
  });
17165
17296
  }
17166
17297
  };
17167
17298
  });
17168
- var Te = we.KotlinGeneratorAddition;
17169
- var Ao = ue.createHotSwapPlugin(() => ({
17299
+ var Fe = Ne.KotlinGeneratorAddition;
17300
+ var Oo = le2.createHotSwapPlugin(() => ({
17170
17301
  unmount({ api: e }) {
17171
17302
  e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
17172
17303
  },
17173
17304
  mount({ api: e }) {
17174
- const n = "value", t = e.states.context, o = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((d) => N2.stringToLowerCamel(d));
17175
- function s(d) {
17176
- return !o.includes(N2.stringToLowerCamel(d._attributes.name));
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));
17177
17308
  }
17178
- function a(d, r2) {
17179
- return s(r2) ? N2.stringToUpperCamel(r2._attributes.name) : v(d, r2);
17309
+ function s(d, i) {
17310
+ return o(i) ? N2.stringToUpperCamel(i._attributes.name) : C2(d, i);
17180
17311
  }
17181
- function c(d) {
17312
+ function p(d) {
17182
17313
  return N2.stringToUpperCamel(d._attributes.name);
17183
17314
  }
17184
- function g2(d, r2) {
17185
- for (const i of r2) {
17186
- if (!s(i)) {
17187
- v(d, i);
17315
+ function _(d, i) {
17316
+ for (const a of i) {
17317
+ if (!o(a)) {
17318
+ C2(d, a);
17188
17319
  continue;
17189
17320
  }
17190
17321
  d.add(
17191
- `${t.value.namespace}.${t.value.moduleName}.${n}.${c(i)}`
17322
+ `${t.value.namespace}.${t.value.moduleName}.${n}.${p(a)}`
17192
17323
  );
17193
17324
  }
17194
17325
  }
17195
- function v(d, r2) {
17196
- const i = t.value.additions, l2 = N2.stringToLowerSnake(r2._attributes.name).replace(/_/, " ");
17197
- return /\b(time|timestamp|date|deadline|expire)\b/.test(l2) ? i.has(Te.Timezone) ? (d.add("java.time.OffsetDateTime"), "OffsetDateTime") : (d.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(l2) ? "Integer" : /\b(price)$/.test(l2) ? (d.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(l2) ? "Boolean" : Ee(r2) && (r2._attributes.type === "Id" || r2._attributes.type === "Version") ? "Long" : "String";
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";
17198
17329
  }
17199
17330
  e.commands._setInfoCodeProvider(
17200
17331
  (d) => {
17201
- const r2 = /* @__PURE__ */ new Set(), i = c(d), l2 = t.value.additions, m2 = [];
17202
- return l2.has(Te.ValueClass) ? (r2.add("kotlin.jvm.JvmInline"), m2.push("@JvmInline"), m2.push(`value class ${i}(val value: ${v(r2, d)})`)) : m2.push(`data class ${i}(val value: ${v(r2, 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)})`), [
17203
17334
  {
17204
17335
  type: "Info",
17205
- imports: r2,
17206
- content: m2.join(`
17336
+ imports: i,
17337
+ content: f.join(`
17207
17338
  `)
17208
17339
  }
17209
17340
  ];
17210
17341
  }
17211
17342
  ), e.commands._setCommandCodeProvider(
17212
17343
  (d) => {
17213
- const r2 = [], i = t.value.additions;
17344
+ const i = [], a = t.value.additions;
17214
17345
  {
17215
- const l2 = /* @__PURE__ */ new Set(), m2 = c(d), C2 = [], p = Object.values(d.inner);
17216
- g2(l2, p);
17217
- const f = [];
17218
- for (const $2 of p) {
17219
- const _ = c($2);
17220
- f.push(`val ${N2.lowerFirst(_)}: ${a(l2, $2)}`);
17346
+ const l2 = /* @__PURE__ */ new Set(), f = p(d), b2 = [], g2 = Object.values(d.inner);
17347
+ _(l2, g2);
17348
+ const u = [];
17349
+ for (const v of g2) {
17350
+ const m2 = p(v);
17351
+ u.push(`val ${N2.lowerFirst(m2)}: ${s(l2, v)}`);
17221
17352
  }
17222
- C2.push(`data class ${m2}(${f.join(", ")})`), r2.push({
17353
+ b2.push(`data class ${f}(${u.join(", ")})`), i.push({
17223
17354
  type: "Command",
17224
17355
  imports: l2,
17225
- content: C2.join(`
17356
+ content: b2.join(`
17226
17357
  `)
17227
17358
  });
17228
17359
  }
17229
- if (!i.has(Te.CommandHandler))
17230
- return r2;
17360
+ if (!a.has(Fe.CommandHandler))
17361
+ return i;
17231
17362
  {
17232
- const l2 = /* @__PURE__ */ new Set(), m2 = c(d), C2 = [];
17233
- C2.push(`class ${m2}Handler {`);
17234
- const p = [...e.states.designer.value._getContext().getAssociationMap()[d._attributes.__id]].filter(
17235
- (f) => f._attributes.rule === "Agg"
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(
17366
+ (u) => u._attributes.rule === "Agg"
17236
17367
  );
17237
- for (const f of p)
17238
- l2.add(`${t.value.namespace}.${t.value.moduleName}.${c(f)}`), C2.push(` fun handle(command: ${m2}): ${c(f)} {`), C2.push(" // HACK Implement"), C2.push(" }");
17239
- C2.push("}"), r2.push({
17368
+ 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(" }");
17370
+ b2.push("}"), i.push({
17240
17371
  type: "CommandHandler",
17241
17372
  imports: l2,
17242
- content: C2.join(`
17373
+ content: b2.join(`
17243
17374
  `)
17244
17375
  });
17245
17376
  }
17246
- return r2;
17377
+ return i;
17247
17378
  }
17248
17379
  ), e.commands._setFacadeCommandCodeProvider(
17249
17380
  (d) => {
17250
- const r2 = /* @__PURE__ */ new Set(), i = c(d), l2 = [], m2 = Object.values(d.inner);
17251
- g2(r2, m2);
17252
- const C2 = [];
17253
- for (const p of m2) {
17254
- const f = c(p);
17255
- C2.push(`val ${N2.lowerFirst(f)}: ${a(r2, p)}`);
17256
- }
17257
- return l2.push(`data class ${i}(${C2.join(", ")})`), [
17381
+ const i = /* @__PURE__ */ new Set(), a = p(d), l2 = [], f = Object.values(d.inner);
17382
+ _(i, f);
17383
+ const b2 = [];
17384
+ for (const g2 of f) {
17385
+ const u = p(g2);
17386
+ b2.push(`val ${N2.lowerFirst(u)}: ${s(i, g2)}`);
17387
+ }
17388
+ return l2.push(`data class ${a}(${b2.join(", ")})`), [
17258
17389
  {
17259
17390
  type: "FacadeCommand",
17260
- imports: r2,
17391
+ imports: i,
17261
17392
  content: l2.join(`
17262
17393
  `)
17263
17394
  }
17264
17395
  ];
17265
17396
  }
17266
17397
  ), e.commands._setAggCodeProvider((d) => {
17267
- const r2 = /* @__PURE__ */ new Set(), i = e.states.designer.value, l2 = c(d), m2 = [], C2 = Object.values(d.inner);
17268
- g2(r2, C2);
17269
- const p = [], f = [...i._getContext().getAssociationMap()[d._attributes.__id]].filter((_) => _._attributes.rule === "Command" || _._attributes.rule === "FacadeCommand");
17270
- for (const _ of f) {
17271
- const b2 = c(_);
17272
- p.push(`fun handle(command: ${b2})`);
17273
- }
17274
- m2.push(`interface ${l2} {`), m2.push(` ${p.join(`
17275
- `)}`), m2.push("}"), m2.push(""), m2.push(`class ${l2}Impl(`);
17276
- const $2 = [];
17277
- for (const _ of C2) {
17278
- const b2 = c(_);
17279
- $2.push(`val ${N2.lowerFirst(b2)}: ${a(r2, _)}`);
17280
- }
17281
- m2.push(` ${$2.join(`,
17282
- `)}`), m2.push(`): ${l2} {`);
17283
- for (const _ of f) {
17284
- const b2 = c(_);
17285
- m2.push(` override fun handle(command: ${b2}) {`), m2.push(" // HACK Implement"), m2.push(" }");
17286
- }
17287
- return m2.push("}"), [
17398
+ const i = /* @__PURE__ */ new Set(), a = e.states.designer.value, l2 = p(d), f = [], b2 = Object.values(d.inner);
17399
+ _(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("}"), [
17288
17419
  {
17289
17420
  type: "Agg",
17290
- imports: r2,
17291
- content: m2.join(`
17421
+ imports: i,
17422
+ content: f.join(`
17292
17423
  `)
17293
17424
  }
17294
17425
  ];
17295
17426
  }), e.commands._setEventCodeProvider(
17296
17427
  (d) => {
17297
- const r2 = /* @__PURE__ */ new Set(), i = c(d), l2 = [], m2 = Object.values(d.inner);
17298
- g2(r2, m2);
17299
- const C2 = [];
17300
- for (const p of m2) {
17301
- const f = c(p);
17302
- C2.push(`val ${N2.lowerFirst(f)}: ${a(r2, p)}`);
17303
- }
17304
- return l2.push(`data class ${i}(${C2.join(", ")})`), [
17428
+ const i = /* @__PURE__ */ new Set(), a = p(d), l2 = [], f = Object.values(d.inner);
17429
+ _(i, f);
17430
+ const b2 = [];
17431
+ for (const g2 of f) {
17432
+ const u = p(g2);
17433
+ b2.push(`val ${N2.lowerFirst(u)}: ${s(i, g2)}`);
17434
+ }
17435
+ return l2.push(`data class ${a}(${b2.join(", ")})`), [
17305
17436
  {
17306
17437
  type: "Event",
17307
- imports: r2,
17438
+ imports: i,
17308
17439
  content: l2.join(`
17309
17440
  `)
17310
17441
  }
17311
17442
  ];
17312
17443
  }
17313
17444
  ), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => {
17314
- const d = [], r2 = {};
17315
- function i(f) {
17316
- for (const $2 of Object.values(f)) {
17317
- if (!s($2))
17445
+ const d = [], i = {};
17446
+ function a(u) {
17447
+ for (const v of Object.values(u)) {
17448
+ if (!o(v))
17318
17449
  continue;
17319
- const _ = [...t.value.namespace.split(/\./), t.value.moduleName, n], b2 = c($2) + ".kt";
17320
- if (r2[`${_.join("/")}/${b2}`] === true)
17450
+ const m2 = [...t.value.namespace.split(/\./), t.value.moduleName, n], $2 = p(v) + ".kt";
17451
+ if (i[`${m2.join("/")}/${$2}`] === true)
17321
17452
  continue;
17322
- const h2 = e.commands._genInfoCode($2);
17323
- if (h2.length === 0)
17453
+ const w2 = e.commands._genInfoCode(v);
17454
+ if (w2.length === 0)
17324
17455
  continue;
17325
- const u = new j3(_, b2);
17326
- u.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}.${n}`), u.appendContentln("");
17327
- for (const w2 of h2[0].imports)
17328
- u.appendContentln(`import ${w2}`);
17329
- u.appendContentln(""), u.appendContentln(h2[0].content), d.push(u), r2[`${_.join("/")}/${b2}`] = true;
17456
+ const c = new S2(m2, $2);
17457
+ 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;
17330
17461
  }
17331
17462
  }
17332
17463
  const l2 = e.states.designer.value._getContext().getCommands();
17333
- for (const f of l2) {
17334
- i(f.inner);
17335
- const $2 = e.commands._genCommandCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName], b2 = new j3(_, c(f) + ".kt"), h2 = [];
17336
- b2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), b2.appendContentln(""), $2.forEach((u) => {
17337
- u.type === "Command" || u.type === "CommandHandler" ? (b2.addImports(u.imports), h2.push(u.content)) : isNever(u.type);
17464
+ for (const u of l2) {
17465
+ 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);
17338
17469
  });
17339
- for (const u of b2.getImports())
17340
- b2.appendContentln(`import ${u}`);
17341
- b2.appendContentln("");
17342
- for (const u of h2)
17343
- b2.appendContentln(u);
17344
- d.push(b2);
17345
- }
17346
- const m2 = e.states.designer.value._getContext().getFacadeCommands();
17347
- for (const f of m2) {
17348
- i(f.inner);
17349
- const $2 = e.commands._genFacadeCommandCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName];
17350
- $2.forEach((b2) => {
17351
- if (b2.type === "FacadeCommand") {
17352
- const h2 = new j3(_, c(f) + ".kt");
17353
- h2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), h2.appendContentln(""), h2.addImports(b2.imports);
17354
- for (const u of b2.imports)
17355
- h2.appendContentln(`import ${u}`);
17356
- h2.appendContentln(""), h2.appendContentln(b2.content), d.push(h2);
17357
- } else
17358
- isNever(b2.type);
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) {
17479
+ 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);
17359
17483
  });
17360
- }
17361
- const C2 = e.states.designer.value._getContext().getAggs();
17362
- for (const f of C2) {
17363
- i(f.inner);
17364
- const $2 = e.commands._genAggCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName], b2 = new j3(_, c(f) + ".kt"), h2 = [];
17365
- b2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), b2.appendContentln(""), $2.forEach((u) => {
17366
- u.type === "Agg" || u.type === "AggImpl" ? (b2.addImports(u.imports), h2.push(u.content)) : isNever(u.type);
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);
17490
+ }
17491
+ const b2 = e.states.designer.value._getContext().getAggs();
17492
+ for (const u of b2) {
17493
+ 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);
17367
17497
  });
17368
- for (const u of b2.getImports())
17369
- b2.appendContentln(`import ${u}`);
17370
- b2.appendContentln("");
17371
- for (const u of h2)
17372
- b2.appendContentln(u);
17373
- d.push(b2);
17374
- }
17375
- const p = e.states.designer.value._getContext().getEvents();
17376
- for (const f of p) {
17377
- i(f.inner);
17378
- const $2 = e.commands._genEventCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName];
17379
- $2.forEach((b2) => {
17380
- if (b2.type === "Event") {
17381
- const h2 = new j3(_, c(f) + ".kt");
17382
- h2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), h2.appendContentln(""), h2.addImports(b2.imports);
17383
- for (const u of b2.imports)
17384
- h2.appendContentln(`import ${u}`);
17385
- h2.appendContentln(""), h2.appendContentln(b2.content), d.push(h2);
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);
17504
+ }
17505
+ const g2 = e.states.designer.value._getContext().getEvents();
17506
+ for (const u of g2) {
17507
+ 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);
17386
17516
  } else
17387
- isNever(b2.type);
17517
+ isNever($2.type);
17388
17518
  });
17389
17519
  }
17390
17520
  return d;
17391
17521
  });
17392
17522
  }
17393
17523
  }));
17394
- var Io = ue.createHotSwapPlugin(() => ({
17524
+ var To = le2.createHotSwapPlugin(() => ({
17395
17525
  unmount({ api: e }) {
17396
17526
  e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
17397
17527
  },
17398
17528
  mount({ api: e }) {
17399
- const n = e.states.context, t = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((v) => N2.stringToLowerCamel(v));
17400
- function o(v) {
17401
- return !t.includes(N2.stringToLowerCamel(v._attributes.name));
17529
+ const n = e.states.context, t = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((C2) => N2.stringToLowerCamel(C2));
17530
+ function r2(C2) {
17531
+ return !t.includes(N2.stringToLowerCamel(C2._attributes.name));
17402
17532
  }
17403
- function s(v, d) {
17404
- return o(d) ? N2.stringToUpperCamel(d._attributes.name) : g2(v, d);
17533
+ function o(C2, d) {
17534
+ return r2(d) ? N2.stringToUpperCamel(d._attributes.name) : _(C2, d);
17405
17535
  }
17406
- function a(v) {
17407
- return N2.stringToUpperCamel(v._attributes.name);
17536
+ function s(C2) {
17537
+ return N2.stringToUpperCamel(C2._attributes.name);
17408
17538
  }
17409
- function c(v) {
17410
- return N2.stringToLowerCamel(v._attributes.name);
17539
+ function p(C2) {
17540
+ return N2.stringToLowerCamel(C2._attributes.name);
17411
17541
  }
17412
- function g2(v, d) {
17413
- const r2 = N2.stringToLowerSnake(d._attributes.name).replace(/_/, " ");
17414
- return /\b(time|timestamp|date|deadline|expire)\b/.test(r2) ? (v.add("time"), "time.Time") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(r2) ? "int" : /\b(price)$/.test(r2) ? "string" : /^(if|is)\b/.test(r2) ? "bool" : Ee(d) && (d._attributes.type === "Id" || d._attributes.type === "Version") ? "int64" : "string";
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";
17415
17545
  }
17416
17546
  e.commands._setInfoCodeProvider(
17417
- (v) => {
17418
- const d = /* @__PURE__ */ new Set(), r2 = [];
17419
- return r2.push(`type ${a(v)} struct {`), r2.push(` value ${g2(d, v)}`), r2.push("}"), r2.push(""), r2.push(
17420
- `func New${a(v)}(value ${g2(
17547
+ (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(
17550
+ `func New${s(C2)}(value ${_(
17421
17551
  d,
17422
- v
17423
- )}) ${a(v)} {`
17424
- ), r2.push(" // HACK check value"), r2.push(` return ${a(v)}{value}`), r2.push("}"), r2.push(
17425
- `func (${c(v)} ${a(v)}) GetValue() ${g2(
17552
+ C2
17553
+ )}) ${s(C2)} {`
17554
+ ), i.push(" // HACK check value"), i.push(` return ${s(C2)}{value}`), i.push("}"), i.push(
17555
+ `func (${p(C2)} ${s(C2)}) GetValue() ${_(
17426
17556
  d,
17427
- v
17557
+ C2
17428
17558
  )} {`
17429
- ), r2.push(` return ${c(v)}.value`), r2.push("}"), [{ type: "Info", imports: d, content: r2.join(`
17559
+ ), i.push(` return ${p(C2)}.value`), i.push("}"), [{ type: "Info", imports: d, content: i.join(`
17430
17560
  `) }];
17431
17561
  }
17432
17562
  ), e.commands._setCommandCodeProvider(
17433
- (v) => {
17434
- const d = a(v), r2 = c(v), i = /* @__PURE__ */ new Set(), l2 = [];
17563
+ (C2) => {
17564
+ const d = s(C2), i = p(C2), a = /* @__PURE__ */ new Set(), l2 = [];
17435
17565
  l2.push(`type ${d} struct {`);
17436
- const m2 = Object.values(v.inner);
17437
- for (const f of m2)
17438
- l2.push(` ${c(f)} ${s(i, f)}`);
17566
+ const f = Object.values(C2.inner);
17567
+ for (const u of f)
17568
+ l2.push(` ${p(u)} ${o(a, u)}`);
17439
17569
  l2.push("}");
17440
- for (const f of m2)
17570
+ for (const u of f)
17441
17571
  l2.push(
17442
- `func (${r2} ${d}) Get${a(f)} () ${s(
17443
- i,
17444
- f
17572
+ `func (${i} ${d}) Get${s(u)} () ${o(
17573
+ a,
17574
+ u
17445
17575
  )} {`
17446
- ), l2.push(` return ${r2}.${c(f)}`), l2.push("}");
17447
- const C2 = [], p = [];
17448
- for (const f of m2)
17449
- C2.push(`${c(f)} ${s(i, f)}`), p.push(c(f));
17450
- return l2.push(`func New${d}(${C2.join(", ")}) ${d} {`), l2.push(" // HACK check value"), l2.push(` return ${d}{`), l2.push(` ${p.join(`,
17451
- `)},`), l2.push(" }"), l2.push("}"), [{ type: "Command", imports: i, content: l2.join(`
17576
+ ), l2.push(` return ${i}.${p(u)}`), l2.push("}");
17577
+ const b2 = [], g2 = [];
17578
+ for (const u of f)
17579
+ 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(`,
17581
+ `)},`), l2.push(" }"), l2.push("}"), [{ type: "Command", imports: a, content: l2.join(`
17452
17582
  `) }];
17453
17583
  }
17454
17584
  ), e.commands._setFacadeCommandCodeProvider(
17455
- (v) => {
17456
- const d = a(v), r2 = c(v), i = Object.values(v.inner), l2 = /* @__PURE__ */ new Set(), m2 = [];
17457
- m2.push(`type ${d} struct {`);
17458
- for (const f of i)
17459
- m2.push(` ${c(f)} ${s(l2, f)}`);
17460
- m2.push("}");
17461
- for (const f of i)
17462
- m2.push(
17463
- `func (${r2} ${d}) Get${a(f)} () ${s(
17585
+ (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 {`);
17588
+ for (const u of a)
17589
+ f.push(` ${p(u)} ${o(l2, u)}`);
17590
+ f.push("}");
17591
+ for (const u of a)
17592
+ f.push(
17593
+ `func (${i} ${d}) Get${s(u)} () ${o(
17464
17594
  l2,
17465
- f
17595
+ u
17466
17596
  )} {`
17467
- ), m2.push(` return ${r2}.${c(f)}`), m2.push("}");
17468
- const C2 = [], p = [];
17469
- for (const f of i)
17470
- C2.push(`${c(f)} ${s(l2, f)}`), p.push(c(f));
17471
- return m2.push(`func New${d}(${C2.join(", ")}) ${d} {`), m2.push(" // HACK check value"), m2.push(` return ${d}{`), m2.push(` ${p.join(`,
17472
- `)},`), m2.push(" }"), m2.push("}"), [
17597
+ ), f.push(` return ${i}.${p(u)}`), f.push("}");
17598
+ const b2 = [], g2 = [];
17599
+ for (const u of a)
17600
+ 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("}"), [
17473
17603
  {
17474
17604
  type: "FacadeCommand",
17475
17605
  imports: l2,
17476
- content: m2.join(`
17606
+ content: f.join(`
17477
17607
  `)
17478
17608
  }
17479
17609
  ];
17480
17610
  }
17481
- ), e.commands._setAggCodeProvider((v) => {
17482
- const d = e.states.designer.value, r2 = a(v), i = c(v), l2 = Object.values(v.inner), m2 = /* @__PURE__ */ new Set(), C2 = [];
17483
- C2.push(`type ${r2} struct {`);
17484
- for (const _ of l2)
17485
- C2.push(` ${c(_)} ${s(m2, _)}`);
17486
- C2.push("}");
17487
- for (const _ of l2)
17488
- C2.push(
17489
- `func (${i} ${r2}) Get${a(_)} () ${s(
17490
- m2,
17491
- _
17611
+ ), 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 = [];
17613
+ b2.push(`type ${i} struct {`);
17614
+ for (const m2 of l2)
17615
+ b2.push(` ${p(m2)} ${o(f, m2)}`);
17616
+ b2.push("}");
17617
+ for (const m2 of l2)
17618
+ b2.push(
17619
+ `func (${a} ${i}) Get${s(m2)} () ${o(
17620
+ f,
17621
+ m2
17492
17622
  )} {`
17493
- ), C2.push(` return ${i}.${c(_)}`), C2.push("}");
17494
- const p = [], f = [];
17495
- for (const _ of l2)
17496
- p.push(`${c(_)} ${s(m2, _)}`), f.push(c(_));
17497
- C2.push(`func New${r2}(${p.join(", ")}) ${r2} {`), C2.push(" // HACK check value"), C2.push(` return ${r2}{`), C2.push(` ${f.join(`,
17498
- `)},`), C2.push(" }"), C2.push("}"), C2.push("");
17499
- const $2 = [...d._getContext().getAssociationMap()[v._attributes.__id]].filter((_) => _._attributes.rule === "Command" || _._attributes.rule === "FacadeCommand");
17500
- for (const _ of $2) {
17501
- const b2 = a(_), h2 = c(_);
17502
- C2.push(`func (${i} ${r2}) Handle${b2} (${h2} ${b2}) {`), C2.push(" // HACK implement"), C2.push("}");
17623
+ ), b2.push(` return ${a}.${p(m2)}`), b2.push("}");
17624
+ const g2 = [], u = [];
17625
+ for (const m2 of l2)
17626
+ g2.push(`${p(m2)} ${o(f, m2)}`), u.push(p(m2));
17627
+ b2.push(`func New${i}(${g2.join(", ")}) ${i} {`), b2.push(" // HACK check value"), b2.push(` return ${i}{`), b2.push(` ${u.join(`,
17628
+ `)},`), 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("}");
17503
17633
  }
17504
17634
  return [
17505
17635
  {
17506
17636
  type: "Agg",
17507
- imports: m2,
17508
- content: C2.join(`
17637
+ imports: f,
17638
+ content: b2.join(`
17509
17639
  `)
17510
17640
  }
17511
17641
  ];
17512
17642
  }), e.commands._setEventCodeProvider(
17513
- (v) => {
17514
- const d = [], r2 = /* @__PURE__ */ new Set(), i = Object.values(v.inner), l2 = a(v), m2 = c(v);
17643
+ (C2) => {
17644
+ const d = [], i = /* @__PURE__ */ new Set(), a = Object.values(C2.inner), l2 = s(C2), f = p(C2);
17515
17645
  d.push(`type ${l2} struct {`);
17516
- for (const f of i)
17517
- d.push(` ${c(f)} ${s(r2, f)}`);
17646
+ for (const u of a)
17647
+ d.push(` ${p(u)} ${o(i, u)}`);
17518
17648
  d.push("}");
17519
- for (const f of i)
17649
+ for (const u of a)
17520
17650
  d.push(
17521
- `func (${m2} ${l2}) Get${a(f)} () ${s(
17522
- r2,
17523
- f
17651
+ `func (${f} ${l2}) Get${s(u)} () ${o(
17652
+ i,
17653
+ u
17524
17654
  )} {`
17525
- ), d.push(` return ${m2}.${c(f)}`), d.push("}");
17526
- const C2 = [], p = [];
17527
- for (const f of i)
17528
- C2.push(`${c(f)} ${s(r2, f)}`), p.push(c(f));
17529
- return d.push(`func New${l2}(${C2.join(", ")}) ${l2} {`), d.push(" // HACK check value"), d.push(` return ${l2}{`), d.push(` ${p.join(`,
17655
+ ), d.push(` return ${f}.${p(u)}`), d.push("}");
17656
+ const b2 = [], g2 = [];
17657
+ for (const u of a)
17658
+ 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(`,
17530
17660
  `)},`), d.push(" }"), d.push("}"), [
17531
17661
  {
17532
17662
  type: "Event",
17533
- imports: r2,
17663
+ imports: i,
17534
17664
  content: d.join(`
17535
17665
  `)
17536
17666
  }
17537
17667
  ];
17538
17668
  }
17539
17669
  ), e.commands._setCodeFileProvider(() => {
17540
- const v = [], d = {}, r2 = [...n.value.namespace.split(/\./), n.value.moduleName], i = new j3(r2, `${n.value.moduleName}.go`), l2 = [], m2 = new j3(r2, `${n.value.moduleName}_value_object.go`), C2 = [];
17541
- function p(h2) {
17542
- for (const u of Object.values(h2)) {
17543
- if (!o(u))
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)) {
17673
+ if (!r2(c))
17544
17674
  continue;
17545
- const w2 = a(u);
17546
- if (d[`${r2.join("/")}/${w2}`] === true)
17675
+ const h2 = s(c);
17676
+ if (d[`${i.join("/")}/${h2}`] === true)
17547
17677
  continue;
17548
- const y3 = e.commands._genInfoCode(u);
17549
- y3.length !== 0 && (m2.addImports(y3[0].imports), C2.push(y3[0].content), C2.push(""), d[`${r2.join("/")}/${w2}`] = true);
17550
- }
17551
- }
17552
- const f = e.states.designer.value._getContext().getCommands();
17553
- for (const h2 of f) {
17554
- p(h2.inner);
17555
- const u = e.commands._genCommandCode(h2);
17556
- for (const w2 of u)
17557
- d[w2.content] !== true && (i.addImports(w2.imports), l2.push(w2.content));
17558
- }
17559
- const $2 = e.states.designer.value._getContext().getFacadeCommands();
17560
- for (const h2 of $2) {
17561
- p(h2.inner);
17562
- const u = e.commands._genFacadeCommandCode(h2);
17563
- for (const w2 of u)
17564
- d[w2.content] !== true && (i.addImports(w2.imports), l2.push(w2.content));
17565
- }
17566
- const _ = e.states.designer.value._getContext().getAggs();
17567
- for (const h2 of _) {
17568
- p(h2.inner);
17569
- const u = e.commands._genAggCode(h2);
17570
- for (const w2 of u)
17571
- d[w2.content] !== true && (i.addImports(w2.imports), l2.push(w2.content));
17572
- }
17573
- const b2 = e.states.designer.value._getContext().getEvents();
17574
- for (const h2 of b2) {
17575
- p(h2.inner);
17576
- const u = e.commands._genEventCode(h2);
17577
- for (const w2 of u)
17578
- d[w2.content] !== true && (i.addImports(w2.imports), l2.push(w2.content));
17579
- }
17580
- return i.appendContentln(`package ${n.value.moduleName}`), i.appendContentln(""), i.getImports().length > 0 && (i.appendContentln("import ("), i.appendContentln(` ${[...i.getImports()].join(`
17581
- `)}`), i.appendContentln(")")), i.appendContentln(l2.join(`
17582
- `)), m2.appendContentln(`package ${n.value.moduleName}`), m2.appendContentln(""), m2.getImports().length > 0 && (m2.appendContentln("import ("), m2.appendContentln(` ${[...m2.getImports()].map((h2) => `"${h2}"`).join(`
17583
- `)}`), m2.appendContentln(")"), m2.appendContentln("")), m2.appendContentln(C2.join(`
17584
- `)), v.push(i), v.push(m2), v;
17678
+ 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);
17680
+ }
17681
+ }
17682
+ 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));
17709
+ }
17710
+ return a.appendContentln(`package ${n.value.moduleName}`), a.appendContentln(""), a.getImports().length > 0 && (a.appendContentln("import ("), a.appendContentln(` ${[...a.getImports()].join(`
17711
+ `)}`), 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;
17585
17715
  });
17586
17716
  }
17587
17717
  }));
17588
- var G = Ne.CSharpGeneratorAddition;
17589
- var xo = ue.createHotSwapPlugin(() => {
17718
+ var M3 = ye.CSharpGeneratorAddition;
17719
+ var xo = le2.createHotSwapPlugin(() => {
17590
17720
  const e = " ";
17591
- function n(t, o = 1) {
17721
+ function n(t, r2 = 1) {
17592
17722
  return t.split(`
17593
- `).map((s) => e.repeat(o) + s).join(`
17723
+ `).map((o) => e.repeat(r2) + o).join(`
17594
17724
  `);
17595
17725
  }
17596
17726
  return {
@@ -17598,249 +17728,279 @@ var xo = ue.createHotSwapPlugin(() => {
17598
17728
  t.commands.clearCaches(), t.commands._setCommandCodeProvider(() => []), t.commands._setFacadeCommandCodeProvider(() => []), t.commands._setAggCodeProvider(() => []), t.commands._setEventCodeProvider(() => []), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => []), t.commands.setContext({});
17599
17729
  },
17600
17730
  mount({ api: t }) {
17601
- const o = t.states.context, s = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((r2) => N2.stringToLowerCamel(r2));
17602
- function a(r2) {
17603
- return !s.includes(N2.stringToLowerCamel(r2._attributes.name));
17731
+ const r2 = t.states.context, o = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((i) => N2.stringToLowerCamel(i));
17732
+ function s(i) {
17733
+ return !o.includes(N2.stringToLowerCamel(i._attributes.name));
17604
17734
  }
17605
- function c(r2, i) {
17606
- return a(i) ? N2.stringToUpperCamel(i._attributes.name) : d(r2, i);
17735
+ function p(i, a) {
17736
+ return s(a) ? N2.stringToUpperCamel(a._attributes.name) : d(i, a);
17607
17737
  }
17608
- function g2(r2) {
17609
- return N2.stringToUpperCamel(r2._attributes.name);
17738
+ function _(i) {
17739
+ return N2.stringToUpperCamel(i._attributes.name);
17610
17740
  }
17611
- function v(r2) {
17612
- return r2.has(G.RecordStruct) ? " struct" : "";
17741
+ function C2(i) {
17742
+ return i.has(M3.RecordStruct) ? " struct" : "";
17613
17743
  }
17614
- function d(r2, i) {
17615
- const l2 = o.value.additions, m2 = N2.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
17616
- return /\b(time|timestamp|date|deadline|expire)\b/.test(m2) ? l2.has(G.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(m2) ? "int" : /\b(price)$/.test(m2) ? "decimal" : /^(if|is)\b/.test(m2) ? "bool" : Ee(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") ? "long" : "string";
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";
17617
17747
  }
17618
17748
  t.commands._setInfoCodeProvider(
17619
- (r2) => {
17620
- const i = o.value.additions, l2 = /* @__PURE__ */ new Set(), m2 = [];
17621
- return m2.push(
17622
- `public record${v(i)} ${g2(r2)}(${d(
17749
+ (i) => {
17750
+ const a = r2.value.additions, l2 = /* @__PURE__ */ new Set(), f = [];
17751
+ return f.push(
17752
+ `public record${C2(a)} ${_(i)}(${d(
17623
17753
  l2,
17624
- r2
17754
+ i
17625
17755
  )} value);`
17626
17756
  ), [
17627
17757
  {
17628
17758
  type: "Info",
17629
- content: m2.join(`
17759
+ content: f.join(`
17630
17760
  `),
17631
17761
  imports: l2
17632
17762
  }
17633
17763
  ];
17634
17764
  }
17635
17765
  ), t.commands._setCommandCodeProvider(
17636
- (r2) => {
17637
- const i = [], l2 = o.value.additions, m2 = /* @__PURE__ */ new Set(), C2 = g2(r2);
17766
+ (i) => {
17767
+ const a = [], l2 = r2.value.additions, f = /* @__PURE__ */ new Set(), b2 = _(i);
17638
17768
  {
17639
- const p = [], f = Object.values(r2.inner);
17640
- p.push(`public record${v(l2)} ${C2}`), p.push("(");
17641
- const $2 = [];
17642
- for (const _ of f) {
17643
- const b2 = g2(_);
17644
- $2.push(`${c(m2, _)} ${N2.upperFirst(b2)}`);
17769
+ const g2 = [], u = Object.values(i.inner);
17770
+ 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)}`);
17645
17775
  }
17646
- p.push(` ${$2.join(`,
17647
- `)}`), p.push(")"), p.push("{"), p.push("}"), i.push({
17776
+ g2.push(` ${v.join(`,
17777
+ `)}`), g2.push(")"), g2.push("{"), g2.push("}"), a.push({
17648
17778
  type: "Command",
17649
- content: p.join(`
17779
+ content: g2.join(`
17650
17780
  `),
17651
- imports: m2
17781
+ imports: f
17652
17782
  });
17653
17783
  }
17654
17784
  {
17655
- const p = l2.has(G.CommandHandlerInterface) ? ` : ${o.value.commandHandlerInterface}` : "", f = [];
17656
- f.push(`public class ${C2}Handler${p}`), f.push("{"), f.push(` public void Handle(${C2} command)`), f.push(" {"), f.push(" // HACK implement"), f.push(" }"), f.push("}"), i.push({
17785
+ const g2 = l2.has(M3.CommandHandlerInterface) ? ` : ${r2.value.commandHandlerInterface}` : "", u = [];
17786
+ u.push(`public class ${b2}Handler${g2}`), u.push("{"), u.push(` public void Handle(${b2} command)`), u.push(" {"), u.push(" // HACK implement"), u.push(" }"), u.push("}"), a.push({
17657
17787
  type: "CommandHandler",
17658
- content: f.join(`
17788
+ content: u.join(`
17659
17789
  `),
17660
- imports: m2
17790
+ imports: f
17661
17791
  });
17662
17792
  }
17663
- return i;
17793
+ return a;
17794
+ }
17795
+ ), t.commands._setFacadeCommandCodeProvider(
17796
+ (i) => {
17797
+ const a = [], l2 = r2.value.additions, f = /* @__PURE__ */ new Set(), b2 = _(i);
17798
+ {
17799
+ const g2 = [], u = Object.values(i.inner);
17800
+ 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
+ }
17806
+ g2.push(` ${v.join(`,
17807
+ `)}`), g2.push(")"), g2.push("{"), g2.push("}"), a.push({
17808
+ type: "FacadeCommand",
17809
+ content: g2.join(`
17810
+ `),
17811
+ imports: f
17812
+ });
17813
+ }
17814
+ {
17815
+ const g2 = l2.has(M3.CommandHandlerInterface) ? ` : ${r2.value.commandHandlerInterface}` : "", u = [];
17816
+ u.push(`public class ${b2}Handler${g2}`), u.push("{"), u.push(` public void Handle(${b2} command)`), u.push(" {"), u.push(" // HACK implement"), u.push(" }"), u.push("}"), a.push({
17817
+ type: "FacadeCommandHandler",
17818
+ content: u.join(`
17819
+ `),
17820
+ imports: f
17821
+ });
17822
+ }
17823
+ return a;
17664
17824
  }
17665
17825
  ), t.commands._setAggCodeProvider(
17666
- (r2) => {
17667
- const i = [], l2 = t.states.designer.value, m2 = o.value.additions;
17826
+ (i) => {
17827
+ const a = [], l2 = t.states.designer.value, f = r2.value.additions;
17668
17828
  {
17669
- const C2 = /* @__PURE__ */ new Set(), p = [], f = m2.has(G.AggInterface) ? ` : ${o.value.aggInterface}` : "";
17670
- p.push(`public interface I${g2(r2)}${f}`), p.push("{");
17671
- const $2 = [], _ = [...l2._getContext().getAssociationMap()[r2._attributes.__id]].filter((b2) => b2._attributes.rule === "Command" || b2._attributes.rule === "FacadeCommand");
17672
- for (const b2 of _) {
17673
- const h2 = g2(b2);
17674
- $2.push(`void Handle${h2}(${h2} command);`);
17829
+ const b2 = /* @__PURE__ */ new Set(), g2 = [], u = f.has(M3.AggInterface) ? ` : ${r2.value.aggInterface}` : "";
17830
+ 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);`);
17675
17835
  }
17676
- p.push(` ${$2.join(`
17836
+ g2.push(` ${v.join(`
17677
17837
 
17678
- `)}`), p.push("}"), p.push(""), i.push({
17838
+ `)}`), g2.push("}"), g2.push(""), a.push({
17679
17839
  type: "Agg",
17680
- content: p.join(`
17840
+ content: g2.join(`
17681
17841
  `),
17682
- imports: C2
17842
+ imports: b2
17683
17843
  });
17684
17844
  }
17685
17845
  {
17686
- const C2 = /* @__PURE__ */ new Set(), p = [], f = g2(r2), $2 = Object.values(r2.inner), _ = m2.has(G.AggInterface) ? `, ${o.value.aggInterface}` : "";
17687
- if (m2.has(G.PrimaryConstructor)) {
17688
- const b2 = [...l2._getContext().getAssociationMap()[r2._attributes.__id]].filter((w2) => w2._attributes.rule === "Command" || w2._attributes.rule === "FacadeCommand"), h2 = [];
17689
- for (const w2 of $2) {
17690
- const y3 = g2(w2);
17691
- h2.push(`${c(C2, w2)} ${N2.lowerFirst(y3)}`);
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)}`);
17692
17852
  }
17693
- p.push(`public class ${f}`), p.push("("), p.push(` ${h2.join(`,
17694
- `)}`), p.push(`): I${f}${_}`), p.push("{");
17695
- for (const w2 of $2) {
17696
- const y3 = g2(w2);
17697
- p.push(
17698
- ` public ${c(C2, w2)} ${N2.upperFirst(
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(
17858
+ ` public ${p(b2, h2)} ${N2.upperFirst(
17699
17859
  y3
17700
17860
  )} { get; private set; } = ${N2.lowerFirst(y3)};`
17701
- ), p.push("");
17861
+ ), g2.push("");
17702
17862
  }
17703
- const u = [];
17704
- for (const w2 of b2) {
17705
- const y3 = g2(w2);
17706
- u.push(`public void Handle${y3}(${y3} command)`), u.push("{"), u.push(" // HACK implement"), u.push("}"), u.push("");
17863
+ const c = [];
17864
+ for (const h2 of $2) {
17865
+ const y3 = _(h2);
17866
+ c.push(`public void Handle${y3}(${y3} command)`), c.push("{"), c.push(" // HACK implement"), c.push("}"), c.push("");
17707
17867
  }
17708
- p.push(` ${u.join(`
17709
- `)}`), p.push("}");
17868
+ g2.push(` ${c.join(`
17869
+ `)}`), g2.push("}");
17710
17870
  } else {
17711
- const b2 = [...l2._getContext().getAssociationMap()[r2._attributes.__id]].filter((w2) => w2._attributes.rule === "Command" || w2._attributes.rule === "FacadeCommand");
17712
- p.push(`public class ${f} : I${f}${_}`), p.push("{");
17713
- for (const w2 of $2) {
17714
- const y3 = g2(w2);
17715
- p.push(
17716
- ` public ${c(C2, w2)} ${N2.lowerFirst(
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
+ g2.push(
17876
+ ` public ${p(b2, h2)} ${N2.lowerFirst(
17717
17877
  y3
17718
17878
  )} { get; private set; }`
17719
17879
  );
17720
17880
  }
17721
- p.push("");
17722
- const h2 = [];
17723
- for (const w2 of $2) {
17724
- const y3 = g2(w2);
17725
- h2.push(`${c(C2, w2)} ${y3}`);
17881
+ g2.push("");
17882
+ const w2 = [];
17883
+ for (const h2 of v) {
17884
+ const y3 = _(h2);
17885
+ w2.push(`${p(b2, h2)} ${y3}`);
17726
17886
  }
17727
- p.push(` public ${f}(${h2.join(", ")})`), p.push(" {");
17728
- for (const w2 of $2) {
17729
- const y3 = g2(w2);
17730
- p.push(` ${y3} = ${N2.lowerFirst(y3)};`);
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)};`);
17731
17891
  }
17732
- p.push(" }");
17733
- const u = [];
17734
- for (const w2 of b2) {
17735
- const y3 = g2(w2);
17736
- u.push(`public void Handle${y3}(${y3} command)`), u.push("{"), u.push(" // HACK implement"), u.push("}"), u.push("");
17892
+ g2.push(" }");
17893
+ const c = [];
17894
+ for (const h2 of $2) {
17895
+ const y3 = _(h2);
17896
+ c.push(`public void Handle${y3}(${y3} command)`), c.push("{"), c.push(" // HACK implement"), c.push("}"), c.push("");
17737
17897
  }
17738
- p.push(` ${u.join(`
17739
- `)}`), p.push("}");
17898
+ g2.push(` ${c.join(`
17899
+ `)}`), g2.push("}");
17740
17900
  }
17741
- i.push({
17901
+ a.push({
17742
17902
  type: "AggImpl",
17743
- content: p.join(`
17903
+ content: g2.join(`
17744
17904
  `),
17745
- imports: C2
17905
+ imports: b2
17746
17906
  });
17747
17907
  }
17748
- return i;
17908
+ return a;
17749
17909
  }
17750
17910
  ), t.commands._setEventCodeProvider(
17751
- (r2) => {
17752
- const i = o.value.additions, l2 = g2(r2), m2 = /* @__PURE__ */ new Set(), C2 = Object.values(r2.inner), p = [];
17753
- p.push(`public record${v(i)} ${l2}`), p.push("(");
17754
- const f = [];
17755
- for (const $2 of C2) {
17756
- const _ = g2($2);
17757
- f.push(`${c(m2, $2)} ${N2.upperFirst(_)}`);
17911
+ (i) => {
17912
+ const a = r2.value.additions, l2 = _(i), f = /* @__PURE__ */ new Set(), b2 = Object.values(i.inner), g2 = [];
17913
+ g2.push(`public record${C2(a)} ${l2}`), g2.push("(");
17914
+ const u = [];
17915
+ for (const v of b2) {
17916
+ const m2 = _(v);
17917
+ u.push(`${p(f, v)} ${N2.upperFirst(m2)}`);
17758
17918
  }
17759
- return p.push(` ${f.join(`,
17760
- `)}`), p.push(")"), p.push("{"), p.push("}"), [
17919
+ return g2.push(` ${u.join(`,
17920
+ `)}`), g2.push(")"), g2.push("{"), g2.push("}"), [
17761
17921
  {
17762
17922
  type: "Event",
17763
- content: p.join(`
17923
+ content: g2.join(`
17764
17924
  `),
17765
- imports: m2
17925
+ imports: f
17766
17926
  }
17767
17927
  ];
17768
17928
  }
17769
17929
  ), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => {
17770
- const r2 = [], i = {}, l2 = [...o.value.namespace.split(/\./), N2.stringToUpperCamel(o.value.moduleName)];
17771
- function m2(_) {
17772
- for (const b2 of Object.values(_)) {
17773
- if (!a(b2))
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))
17774
17934
  continue;
17775
- const h2 = g2(b2) + ".cs";
17776
- if (i[`${l2.join("/")}/${h2}`] === true)
17935
+ const w2 = _($2) + ".cs";
17936
+ if (a[`${l2.join("/")}/${w2}`] === true)
17777
17937
  continue;
17778
- const u = t.commands._genInfoCode(b2);
17779
- if (u.length === 0)
17938
+ const c = t.commands._genInfoCode($2);
17939
+ if (c.length === 0)
17780
17940
  continue;
17781
- const w2 = new j3(l2, h2);
17782
- for (const y3 of u[0].imports)
17783
- w2.appendContentln(`using ${y3};`);
17784
- w2.appendContentln(""), w2.appendContentln(
17785
- `namespace ${o.value.namespace}.${N2.stringToUpperCamel(o.value.moduleName)}`
17786
- ), w2.appendContentln("{"), w2.appendContentln(n(u[0].content)), w2.appendContentln("}"), r2.push(w2), i[`${l2.join("/")}/${h2}`] = true;
17941
+ const h2 = new S2(l2, w2);
17942
+ 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;
17787
17947
  }
17788
17948
  }
17789
- const C2 = t.states.designer.value._getContext().getCommands();
17790
- for (const _ of C2) {
17791
- m2(_.inner);
17792
- const b2 = g2(_) + ".cs", h2 = t.commands._genCommandCode(_), u = new j3(l2, b2);
17793
- for (const w2 of h2)
17794
- if (w2.type === "Command") {
17795
- u.addImports(w2.imports);
17796
- for (const y3 of w2.imports)
17797
- u.appendContentln(`using ${y3};`);
17798
- u.appendContentln(""), u.appendContentln(
17799
- `namespace ${o.value.namespace}.${N2.stringToUpperCamel(o.value.moduleName)}`
17800
- ), u.appendContentln("{"), u.appendContentln(n(w2.content)), u.appendContentln("}");
17949
+ 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)
17957
+ c.appendContentln(`using ${y3};`);
17958
+ c.appendContentln(""), c.appendContentln(
17959
+ `namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
17960
+ ), c.appendContentln("{"), c.appendContentln(n(h2.content)), c.appendContentln("}");
17801
17961
  }
17802
- r2.push(u);
17803
- }
17804
- const p = t.states.designer.value._getContext().getFacadeCommands();
17805
- for (const _ of p) {
17806
- m2(_.inner);
17807
- const b2 = g2(_) + ".cs", h2 = t.commands._genFacadeCommandCode(_), u = new j3(l2, b2);
17808
- u.addImports(h2[0].imports);
17809
- for (const w2 of h2[0].imports)
17810
- u.appendContentln(`using ${w2};`);
17811
- u.appendContentln(""), u.appendContentln(
17812
- `namespace ${o.value.namespace}.${N2.stringToUpperCamel(o.value.moduleName)}`
17813
- ), u.appendContentln("{"), u.appendContentln(n(h2[0].content)), u.appendContentln("}"), r2.push(u);
17814
- }
17815
- const f = t.states.designer.value._getContext().getAggs();
17816
- for (const _ of f) {
17817
- m2(_.inner);
17818
- const b2 = t.commands._genAggCode(_), h2 = g2(_) + ".cs", u = new j3(l2, h2);
17819
- for (const w2 of b2) {
17820
- u.addImports(w2.imports);
17821
- for (const y3 of w2.imports)
17822
- u.appendContentln(`using ${y3};`);
17823
- u.appendContentln("");
17962
+ i.push(c);
17963
+ }
17964
+ 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};`);
17971
+ 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);
17974
+ }
17975
+ 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)
17982
+ c.appendContentln(`using ${y3};`);
17983
+ c.appendContentln("");
17824
17984
  }
17825
- u.appendContentln(
17826
- `namespace ${o.value.namespace}.${N2.stringToUpperCamel(o.value.moduleName)}`
17827
- ), u.appendContentln("{");
17828
- for (const w2 of b2)
17829
- u.appendContentln(n(w2.content));
17830
- u.appendContentln("}"), r2.push(u);
17831
- }
17832
- const $2 = t.states.designer.value._getContext().getEvents();
17833
- for (const _ of $2) {
17834
- m2(_.inner);
17835
- const b2 = g2(_) + ".cs", h2 = t.commands._genEventCode(_), u = new j3(l2, b2);
17836
- u.addImports(h2[0].imports);
17837
- for (const w2 of h2[0].imports)
17838
- u.appendContentln(`using ${w2};`);
17839
- u.appendContentln(""), u.appendContentln(
17840
- `namespace ${o.value.namespace}.${N2.stringToUpperCamel(o.value.moduleName)}`
17841
- ), u.appendContentln("{"), u.appendContentln(n(h2[0].content)), u.appendContentln("}"), r2.push(u);
17842
- }
17843
- return r2;
17985
+ c.appendContentln(
17986
+ `namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
17987
+ ), c.appendContentln("{");
17988
+ for (const h2 of $2)
17989
+ c.appendContentln(n(h2.content));
17990
+ c.appendContentln("}"), i.push(c);
17991
+ }
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};`);
17999
+ 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);
18002
+ }
18003
+ return i;
17844
18004
  });
17845
18005
  }
17846
18006
  };
@@ -17868,36 +18028,42 @@ async function requireGenJavaContext() {
17868
18028
  message: $t6("question.subcommand.genCode.java.additions"),
17869
18029
  choices: [
17870
18030
  {
17871
- title: jo.java.JavaGeneratorAddition.SpringFramework,
17872
- value: jo.java.JavaGeneratorAddition.SpringFramework,
18031
+ title: So.java.JavaGeneratorAddition.SpringFramework,
18032
+ value: So.java.JavaGeneratorAddition.SpringFramework,
17873
18033
  selected: true,
17874
18034
  description: $t6("question.subcommand.genCode.java.additions.springFramework")
17875
18035
  },
17876
18036
  {
17877
- title: jo.java.JavaGeneratorAddition.Lombok,
17878
- value: jo.java.JavaGeneratorAddition.Lombok,
18037
+ title: So.java.JavaGeneratorAddition.Jpa,
18038
+ value: So.java.JavaGeneratorAddition.Jpa,
18039
+ selected: false,
18040
+ description: $t6("question.subcommand.genCode.java.additions.jpa")
18041
+ },
18042
+ {
18043
+ title: So.java.JavaGeneratorAddition.Lombok,
18044
+ value: So.java.JavaGeneratorAddition.Lombok,
17879
18045
  selected: true,
17880
18046
  description: $t6("question.subcommand.genCode.java.additions.lombok")
17881
18047
  },
17882
18048
  {
17883
- title: jo.java.JavaGeneratorAddition.LombokBuilder,
17884
- value: jo.java.JavaGeneratorAddition.LombokBuilder,
18049
+ title: So.java.JavaGeneratorAddition.LombokBuilder,
18050
+ value: So.java.JavaGeneratorAddition.LombokBuilder,
17885
18051
  description: $t6("question.subcommand.genCode.java.additions.lombokBuilder")
17886
18052
  },
17887
18053
  {
17888
- title: jo.java.JavaGeneratorAddition.CommandHandler,
17889
- value: jo.java.JavaGeneratorAddition.CommandHandler,
18054
+ title: So.java.JavaGeneratorAddition.CommandHandler,
18055
+ value: So.java.JavaGeneratorAddition.CommandHandler,
17890
18056
  selected: true,
17891
18057
  description: $t6("question.subcommand.genCode.java.additions.commandHandler")
17892
18058
  },
17893
18059
  {
17894
- title: jo.java.JavaGeneratorAddition.RecordVakueObject,
17895
- value: jo.java.JavaGeneratorAddition.RecordVakueObject,
17896
- description: $t6("question.subcommand.genCode.java.additions.recordVakueObject")
18060
+ title: So.java.JavaGeneratorAddition.RecordValueObject,
18061
+ value: So.java.JavaGeneratorAddition.RecordValueObject,
18062
+ description: $t6("question.subcommand.genCode.java.additions.recordValueObject")
17897
18063
  },
17898
18064
  {
17899
- title: jo.java.JavaGeneratorAddition.Timezone,
17900
- value: jo.java.JavaGeneratorAddition.Timezone,
18065
+ title: So.java.JavaGeneratorAddition.Timezone,
18066
+ value: So.java.JavaGeneratorAddition.Timezone,
17901
18067
  selected: true,
17902
18068
  description: $t6("question.subcommand.genCode.java.additions.timezone")
17903
18069
  }
@@ -17908,7 +18074,7 @@ async function requireGenJavaContext() {
17908
18074
  { onCancel }
17909
18075
  );
17910
18076
  let nonNullAnnotation = additions.includes(
17911
- jo.java.JavaGeneratorAddition.SpringFramework
18077
+ So.java.JavaGeneratorAddition.SpringFramework
17912
18078
  ) ? "org.springframework.lang.NonNull" : void 0;
17913
18079
  if (nonNullAnnotation === void 0) {
17914
18080
  nonNullAnnotation = (await (0, import_prompts.default)(
@@ -17927,6 +18093,26 @@ async function requireGenJavaContext() {
17927
18093
  { onCancel }
17928
18094
  )).nonNullAnnotation;
17929
18095
  }
18096
+ if (additions.includes(So.java.JavaGeneratorAddition.Jpa)) {
18097
+ const { idGenStrategy } = await (0, import_prompts.default)(
18098
+ [
18099
+ {
18100
+ name: "idGenStrategy",
18101
+ type: "select",
18102
+ message: $t6("question.subcommand.genCode.java.idGenStrategy"),
18103
+ choices: [
18104
+ { title: "TABLE", value: So.java.IdGenStrategy.TABLE },
18105
+ { title: "SEQUENCE", value: So.java.IdGenStrategy.SEQUENCE },
18106
+ { title: "IDENTITY", value: So.java.IdGenStrategy.IDENTITY },
18107
+ { title: "UUID", value: So.java.IdGenStrategy.UUID },
18108
+ { title: "AUTO", value: So.java.IdGenStrategy.AUTO }
18109
+ ]
18110
+ }
18111
+ ],
18112
+ { onCancel }
18113
+ );
18114
+ context.idGenStrategy = idGenStrategy;
18115
+ }
17930
18116
  context.namespace = namespace;
17931
18117
  context.additions = new Set(additions);
17932
18118
  context.moduleName = "";
@@ -17953,20 +18139,20 @@ async function requireGenKotlinContext() {
17953
18139
  message: $t7("question.subcommand.genCode.kotlin.additions"),
17954
18140
  choices: [
17955
18141
  {
17956
- title: jo.kotlin.KotlinGeneratorAddition.CommandHandler,
17957
- value: jo.kotlin.KotlinGeneratorAddition.CommandHandler,
18142
+ title: So.kotlin.KotlinGeneratorAddition.CommandHandler,
18143
+ value: So.kotlin.KotlinGeneratorAddition.CommandHandler,
17958
18144
  selected: true,
17959
18145
  description: $t7("question.subcommand.genCode.kotlin.additions.commandHandler")
17960
18146
  },
17961
18147
  {
17962
- title: jo.kotlin.KotlinGeneratorAddition.ValueClass,
17963
- value: jo.kotlin.KotlinGeneratorAddition.ValueClass,
18148
+ title: So.kotlin.KotlinGeneratorAddition.ValueClass,
18149
+ value: So.kotlin.KotlinGeneratorAddition.ValueClass,
17964
18150
  selected: true,
17965
18151
  description: $t7("question.subcommand.genCode.kotlin.additions.valueClass")
17966
18152
  },
17967
18153
  {
17968
- title: jo.kotlin.KotlinGeneratorAddition.Timezone,
17969
- value: jo.kotlin.KotlinGeneratorAddition.Timezone,
18154
+ title: So.kotlin.KotlinGeneratorAddition.Timezone,
18155
+ value: So.kotlin.KotlinGeneratorAddition.Timezone,
17970
18156
  description: $t7("question.subcommand.genCode.kotlin.additions.timezone")
17971
18157
  }
17972
18158
  ],
@@ -17999,32 +18185,32 @@ async function requireGenCsharpContext() {
17999
18185
  message: $t8("question.subcommand.genCode.csharp.additions"),
18000
18186
  choices: [
18001
18187
  {
18002
- title: jo.csharp.CSharpGeneratorAddition.Timezone,
18003
- value: jo.csharp.CSharpGeneratorAddition.Timezone,
18188
+ title: So.csharp.CSharpGeneratorAddition.Timezone,
18189
+ value: So.csharp.CSharpGeneratorAddition.Timezone,
18004
18190
  selected: true,
18005
18191
  description: $t8("question.subcommand.genCode.csharp.additions.timezone")
18006
18192
  },
18007
18193
  {
18008
- title: jo.csharp.CSharpGeneratorAddition.RecordStruct,
18009
- value: jo.csharp.CSharpGeneratorAddition.RecordStruct,
18194
+ title: So.csharp.CSharpGeneratorAddition.RecordStruct,
18195
+ value: So.csharp.CSharpGeneratorAddition.RecordStruct,
18010
18196
  selected: true,
18011
18197
  description: $t8("question.subcommand.genCode.csharp.additions.recordStruct")
18012
18198
  },
18013
18199
  {
18014
- title: jo.csharp.CSharpGeneratorAddition.PrimaryConstructor,
18015
- value: jo.csharp.CSharpGeneratorAddition.PrimaryConstructor,
18200
+ title: So.csharp.CSharpGeneratorAddition.PrimaryConstructor,
18201
+ value: So.csharp.CSharpGeneratorAddition.PrimaryConstructor,
18016
18202
  selected: true,
18017
18203
  description: $t8("question.subcommand.genCode.csharp.additions.primaryConstructor")
18018
18204
  },
18019
18205
  {
18020
- title: jo.csharp.CSharpGeneratorAddition.CommandHandlerInterface,
18021
- value: jo.csharp.CSharpGeneratorAddition.CommandHandlerInterface,
18206
+ title: So.csharp.CSharpGeneratorAddition.CommandHandlerInterface,
18207
+ value: So.csharp.CSharpGeneratorAddition.CommandHandlerInterface,
18022
18208
  selected: false,
18023
18209
  description: $t8("question.subcommand.genCode.csharp.additions.commandHandlerInterface")
18024
18210
  },
18025
18211
  {
18026
- title: jo.csharp.CSharpGeneratorAddition.AggInterface,
18027
- value: jo.csharp.CSharpGeneratorAddition.AggInterface,
18212
+ title: So.csharp.CSharpGeneratorAddition.AggInterface,
18213
+ value: So.csharp.CSharpGeneratorAddition.AggInterface,
18028
18214
  selected: false,
18029
18215
  description: $t8("question.subcommand.genCode.csharp.additions.aggInterface")
18030
18216
  }
@@ -18036,7 +18222,7 @@ async function requireGenCsharpContext() {
18036
18222
  );
18037
18223
  context.additions = new Set(additions);
18038
18224
  context.namespace = namespace;
18039
- if (context.additions.has(jo.csharp.CSharpGeneratorAddition.CommandHandlerInterface)) {
18225
+ if (context.additions.has(So.csharp.CSharpGeneratorAddition.CommandHandlerInterface)) {
18040
18226
  const { commandHandlerInterface } = await (0, import_prompts3.default)(
18041
18227
  [
18042
18228
  {
@@ -18049,7 +18235,7 @@ async function requireGenCsharpContext() {
18049
18235
  );
18050
18236
  context.commandHandlerInterface = commandHandlerInterface;
18051
18237
  }
18052
- if (context.additions.has(jo.csharp.CSharpGeneratorAddition.AggInterface)) {
18238
+ if (context.additions.has(So.csharp.CSharpGeneratorAddition.AggInterface)) {
18053
18239
  const { aggInterface } = await (0, import_prompts3.default)(
18054
18240
  [
18055
18241
  {
@@ -18116,20 +18302,20 @@ async function requireGenCodeCommandArgs(params) {
18116
18302
  message: $t10("question.subcommand.genCode.language"),
18117
18303
  choices: [
18118
18304
  {
18119
- title: jo.Language.CSharp,
18120
- value: jo.Language.CSharp
18305
+ title: So.Language.CSharp,
18306
+ value: So.Language.CSharp
18121
18307
  },
18122
18308
  {
18123
- title: jo.Language.Go,
18124
- value: jo.Language.Go
18309
+ title: So.Language.Go,
18310
+ value: So.Language.Go
18125
18311
  },
18126
18312
  {
18127
- title: jo.Language.Java,
18128
- value: jo.Language.Java
18313
+ title: So.Language.Java,
18314
+ value: So.Language.Java
18129
18315
  },
18130
18316
  {
18131
- title: jo.Language.Kotlin,
18132
- value: jo.Language.Kotlin
18317
+ title: So.Language.Kotlin,
18318
+ value: So.Language.Kotlin
18133
18319
  }
18134
18320
  ]
18135
18321
  }
@@ -18137,13 +18323,13 @@ async function requireGenCodeCommandArgs(params) {
18137
18323
  { onCancel }
18138
18324
  )).language;
18139
18325
  params.args.language = language;
18140
- if (language === jo.Language.Java) {
18326
+ if (language === So.Language.Java) {
18141
18327
  params.args.context = await requireGenJavaContext();
18142
- } else if (language === jo.Language.Kotlin) {
18328
+ } else if (language === So.Language.Kotlin) {
18143
18329
  params.args.context = await requireGenKotlinContext();
18144
- } else if (language === jo.Language.CSharp) {
18330
+ } else if (language === So.Language.CSharp) {
18145
18331
  params.args.context = await requireGenCsharpContext();
18146
- } else if (language === jo.Language.Go) {
18332
+ } else if (language === So.Language.Go) {
18147
18333
  params.args.context = await requireGenGoContext();
18148
18334
  } else {
18149
18335
  isNever(language);
@@ -18195,20 +18381,20 @@ async function execute5(args) {
18195
18381
  }
18196
18382
  const designer = m2.default;
18197
18383
  if (!pluginLoaded) {
18198
- if (args.language === jo.Language.Java) {
18199
- ue.registerPlugin(Oo);
18200
- } else if (args.language === jo.Language.Kotlin) {
18201
- ue.registerPlugin(Ao);
18202
- } else if (args.language === jo.Language.CSharp) {
18203
- ue.registerPlugin(xo);
18204
- } else if (args.language === jo.Language.Go) {
18205
- ue.registerPlugin(Io);
18384
+ if (args.language === So.Language.Java) {
18385
+ le2.registerPlugin(Io);
18386
+ } else if (args.language === So.Language.Kotlin) {
18387
+ le2.registerPlugin(Oo);
18388
+ } else if (args.language === So.Language.CSharp) {
18389
+ le2.registerPlugin(xo);
18390
+ } else if (args.language === So.Language.Go) {
18391
+ le2.registerPlugin(To);
18206
18392
  } else {
18207
18393
  isNever(args.language);
18208
18394
  }
18209
18395
  pluginLoaded = true;
18210
18396
  }
18211
- agg4 = So(designer);
18397
+ agg4 = Ao(designer);
18212
18398
  agg4.commands.setDomainDesigner(designer);
18213
18399
  args.context.moduleName = designer._getContext().getDesignerOptions().moduleName || file.split(".")[0];
18214
18400
  agg4.commands.setContext(args.context);
@@ -18385,6 +18571,8 @@ async function start() {
18385
18571
  log_default.print("");
18386
18572
  log_default.print(`Script Version:`, log_default.info(package_info_default.version));
18387
18573
  log_default.print("");
18574
+ log_default.printDebug("argv:", process.argv);
18575
+ log_default.print("");
18388
18576
  await cliArgsAgg.commands.init();
18389
18577
  await cliArgsAgg.commands.exec();
18390
18578
  }