@g1cloud/entity-modeler-next 5.0.0-alpha.6 → 5.0.0-alpha.7

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.
@@ -1,7 +1,7 @@
1
1
  var cf = Object.defineProperty;
2
2
  var ff = (e, t, n) => t in e ? cf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var st = (e, t, n) => ff(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { getCurrentScope as du, inject as dt, effectScope as cu, watch as Ge, provide as Mt, defineComponent as ze, useSlots as fu, onUnmounted as mf, openBlock as S, createElementBlock as z, unref as $, createVNode as W, withCtx as Xe, renderSlot as rt, createPropsRestProxy as pf, toRef as et, ref as $e, computed as U, onMounted as cn, normalizeClass as Re, getCurrentInstance as wo, reactive as Xl, onScopeDispose as Vi, nextTick as _t, onBeforeMount as hf, shallowRef as kn, createElementVNode as w, Fragment as Ce, renderList as Ue, normalizeStyle as Ze, onBeforeUnmount as ui, isMemoSame as vf, createBlock as Ve, createCommentVNode as Ee, toDisplayString as Se, isRef as jl, toRefs as yf, customRef as gf, toValue as Ke, resolveComponent as mu, h as nt, useAttrs as Zl, mergeProps as ji, resolveDynamicComponent as Rn, createTextVNode as fn, markRaw as Go, readonly as bf, withDirectives as nn, vModelText as ga, Teleport as pu, withModifiers as ut, withKeys as qo, watchEffect as _f, normalizeProps as to, guardReactiveProps as No, Transition as fl, vShow as Do } from "vue";
4
+ import { getCurrentScope as du, inject as dt, effectScope as cu, watch as Ge, provide as Tt, defineComponent as ze, useSlots as fu, onUnmounted as mf, openBlock as S, createElementBlock as z, unref as $, createVNode as W, withCtx as Xe, renderSlot as rt, createPropsRestProxy as pf, toRef as et, ref as $e, computed as U, onMounted as cn, normalizeClass as Re, getCurrentInstance as wo, reactive as Xl, onScopeDispose as Vi, nextTick as _t, onBeforeMount as hf, shallowRef as kn, createElementVNode as w, Fragment as Ce, renderList as Ue, normalizeStyle as Ze, onBeforeUnmount as ui, isMemoSame as vf, createBlock as Ve, createCommentVNode as Ee, toDisplayString as Se, isRef as jl, toRefs as yf, customRef as gf, toValue as Ke, resolveComponent as mu, h as nt, useAttrs as Zl, mergeProps as ji, resolveDynamicComponent as Rn, createTextVNode as fn, markRaw as Go, readonly as bf, withDirectives as nn, vModelText as ga, Teleport as pu, withModifiers as ut, withKeys as qo, watchEffect as _f, normalizeProps as to, guardReactiveProps as No, Transition as fl, vShow as Do } from "vue";
5
5
  import { BSTextArea as wf, BSTextInput as We, BSSelect as je, BSCheckbox as Qe, BSNumberInput as On, BSButton as qe, useModalHandle as Jl, BSModalFrame as Ql, useModal as Eo, showNotification as ks } from "@g1cloud/open-bluesea-core";
6
6
  const Ef = {
7
7
  startX: 40,
@@ -251,7 +251,7 @@ function Cs(e) {
251
251
  return "1..*";
252
252
  }
253
253
  }
254
- function Mf(e) {
254
+ function Tf(e) {
255
255
  var a, l, s;
256
256
  const t = new Map(e.entities.map((r) => [r.modelId, r.name])), n = /* @__PURE__ */ new Map();
257
257
  for (const r of e.entities) for (const u of r.attributes) n.set(u.modelId, u.name);
@@ -297,9 +297,9 @@ function Mf(e) {
297
297
  return i.join(`
298
298
  `).trim();
299
299
  }
300
- const Tf = /[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g;
300
+ const Mf = /[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g;
301
301
  function Rt(e) {
302
- return e.replace(Tf, "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
302
+ return e.replace(Mf, "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
303
303
  }
304
304
  function Be(e) {
305
305
  return Number.isInteger(e) ? String(e) : e.toFixed(2).replace(/\.?0+$/, "");
@@ -478,6 +478,15 @@ const Fn = "CustomType", ba = "GroupCodeEnum", Rs = "String", $u = [
478
478
  { value: "Double", label: "Double" },
479
479
  { value: "Boolean", label: "Boolean" },
480
480
  { value: "Date", label: "Date" },
481
+ // 레거시 java.util.Date. 아래 JSR-310 타입은 forward 추가(레거시 enum 미존재)
482
+ // JSR-310 시간 타입 — forward 확장(레거시엔 java.util.Date만). 코드→모델 동기화에서 LocalDateTime·
483
+ // ZonedDateTime 등을 단일 Date로 뭉개던 손실([저신뢰])을 결정적 1:1 매핑으로 격상하기 위한 별도 저장값.
484
+ // 물리 dataType 짝(DATE/TIMESTAMP/TIMESTAMP_WITH_TIMEZONE)은 type과 독립 보관이라 여기 고정하지 않는다.
485
+ { value: "LocalDate", label: "LocalDate" },
486
+ { value: "LocalDateTime", label: "LocalDateTime" },
487
+ { value: "Instant", label: "Instant" },
488
+ { value: "ZonedDateTime", label: "ZonedDateTime" },
489
+ { value: "OffsetDateTime", label: "OffsetDateTime" },
481
490
  { value: "BigDecimal", label: "BigDecimal" },
482
491
  { value: "BigInteger", label: "BigInteger" },
483
492
  { value: "ByteArray", label: "Byte[]" },
@@ -545,7 +554,7 @@ function Ha(e) {
545
554
  function As(e) {
546
555
  return e.dataType ? e.length == null ? e.dataType : e.scale == null ? `${e.dataType}(${e.length})` : `${e.dataType}(${e.length},${e.scale})` : "(미지정)";
547
556
  }
548
- function Tt(e) {
557
+ function Mt(e) {
549
558
  return !e || e.trim() === "";
550
559
  }
551
560
  function Co(e) {
@@ -576,7 +585,7 @@ function qf(e) {
576
585
  }
577
586
  function Xf(e, t, n, o, i) {
578
587
  var a, l, s, r, u;
579
- if (!Tt(t.physicalName)) return t.physicalName;
588
+ if (!Mt(t.physicalName)) return t.physicalName;
580
589
  if (e.attrType === "EMBED_PREDEF")
581
590
  return ((s = (l = (a = i == null ? void 0 : i.embeddableCatalog) == null ? void 0 : a.find((d) => d.type === e.type)) == null ? void 0 : l.fields[n]) == null ? void 0 : s.physicalName) ?? "";
582
591
  if (e.attrType === "EMBED_OWN") {
@@ -611,7 +620,7 @@ function jf(e, t) {
611
620
  });
612
621
  for (const r of e.entities) {
613
622
  const u = r.attributes.filter((m) => m.attrType !== "DIVIDER");
614
- if (Tt(r.name) && n.push({
623
+ if (Mt(r.name) && n.push({
615
624
  ruleId: "CHK-NAME-4",
616
625
  severity: "info",
617
626
  targetKind: "entity",
@@ -623,7 +632,7 @@ function jf(e, t) {
623
632
  targetKind: "entity",
624
633
  targetRef: r.modelId,
625
634
  message: "JPA 엔티티에 식별자(PK) 속성이 없습니다"
626
- }), Tt((a = r.table) == null ? void 0 : a.physicalName) && n.push({
635
+ }), Mt((a = r.table) == null ? void 0 : a.physicalName) && n.push({
627
636
  ruleId: "CHK-JPA-8",
628
637
  severity: "warning",
629
638
  targetKind: "entity",
@@ -651,7 +660,7 @@ function jf(e, t) {
651
660
  for (const m of u)
652
661
  if (!m.identifier)
653
662
  for (const v of m.dbAttrs)
654
- !v.autoIncrement && Tt(v.sequenceName) || n.push({
663
+ !v.autoIncrement && Mt(v.sequenceName) || n.push({
655
664
  ruleId: "CHK-JPA-13",
656
665
  severity: "error",
657
666
  targetKind: "column",
@@ -709,7 +718,7 @@ function jf(e, t) {
709
718
  message: `속성 이름이 중복됩니다: "${m.name}"`
710
719
  });
711
720
  for (const m of u)
712
- Tt(m.name) && n.push({
721
+ Mt(m.name) && n.push({
713
722
  ruleId: "CHK-NAME-4",
714
723
  severity: "info",
715
724
  targetKind: "attribute",
@@ -738,21 +747,21 @@ function jf(e, t) {
738
747
  targetRef: m.modelId,
739
748
  contextRef: r.modelId,
740
749
  message: v
741
- }), t != null && t.reservedWords && !Tt(m.physicalName) && t.reservedWords.has(m.physicalName.toUpperCase()) && n.push({
750
+ }), t != null && t.reservedWords && !Mt(m.physicalName) && t.reservedWords.has(m.physicalName.toUpperCase()) && n.push({
742
751
  ruleId: "CHK-NAME-6",
743
752
  severity: "warning",
744
753
  targetKind: "column",
745
754
  targetRef: m.modelId,
746
755
  contextRef: r.modelId,
747
756
  message: `컬럼 물리명이 SQL 예약어입니다: "${m.physicalName}"`
748
- }), t != null && t.selectableDataTypes && !Tt(m.dataType) && !t.selectableDataTypes.has(m.dataType) && n.push({
757
+ }), t != null && t.selectableDataTypes && !Mt(m.dataType) && !t.selectableDataTypes.has(m.dataType) && n.push({
749
758
  ruleId: "CHK-TYPE-1",
750
759
  severity: "warning",
751
760
  targetKind: "column",
752
761
  targetRef: m.modelId,
753
762
  contextRef: r.modelId,
754
763
  message: `타겟 DB가 지원하지 않는 컬럼 타입입니다: "${m.dataType}"`
755
- }), !Tt(m.dataType) && Ff.has(m.dataType) && !m.length && n.push({
764
+ }), !Mt(m.dataType) && Ff.has(m.dataType) && !m.length && n.push({
756
765
  ruleId: "CHK-TYPE-2",
757
766
  severity: "warning",
758
767
  targetKind: "column",
@@ -800,7 +809,7 @@ function jf(e, t) {
800
809
  targetKind: "entity",
801
810
  targetRef: r.modelId,
802
811
  message: f
803
- }), t != null && t.reservedWords && !Tt(p) && t.reservedWords.has(p.toUpperCase()) && n.push({
812
+ }), t != null && t.reservedWords && !Mt(p) && t.reservedWords.has(p.toUpperCase()) && n.push({
804
813
  ruleId: "CHK-NAME-6",
805
814
  severity: "warning",
806
815
  targetKind: "entity",
@@ -816,7 +825,7 @@ function jf(e, t) {
816
825
  targetRef: m.modelId,
817
826
  contextRef: r.modelId,
818
827
  message: v
819
- }), t != null && t.reservedWords && !Tt(m.name) && t.reservedWords.has(m.name.toUpperCase()) && n.push({
828
+ }), t != null && t.reservedWords && !Mt(m.name) && t.reservedWords.has(m.name.toUpperCase()) && n.push({
820
829
  ruleId: "CHK-NAME-6",
821
830
  severity: "warning",
822
831
  targetKind: "index",
@@ -907,7 +916,7 @@ function jf(e, t) {
907
916
  for (const d of e.entities) {
908
917
  for (const c of d.attributes)
909
918
  c.embedded && (r.add(d.modelId), r.add(c.embedded.embeddableRef));
910
- if (!Tt(d.superClass)) {
919
+ if (!Mt(d.superClass)) {
911
920
  r.add(d.modelId);
912
921
  const c = u.get(d.superClass);
913
922
  c && r.add(c);
@@ -987,7 +996,7 @@ function tm(e, t) {
987
996
  const n = new Set(e), o = new Set(t), i = t.filter((l) => !n.has(l)).sort(), a = e.filter((l) => !o.has(l)).sort();
988
997
  return { added: i, removed: a };
989
998
  }
990
- const nm = /* @__PURE__ */ new Set(["attributes", "operations", "indexes", "rev"]), om = /* @__PURE__ */ new Set(["end1", "end2", "rev"]), im = /* @__PURE__ */ new Set(["memberEntityRefs", "rev"]), Ms = /* @__PURE__ */ new Set(["modelId"]), am = /* @__PURE__ */ new Set(["modelId", "columns"]), lm = /* @__PURE__ */ new Set([]);
999
+ const nm = /* @__PURE__ */ new Set(["attributes", "operations", "indexes", "rev"]), om = /* @__PURE__ */ new Set(["end1", "end2", "rev"]), im = /* @__PURE__ */ new Set(["memberEntityRefs", "rev"]), Ts = /* @__PURE__ */ new Set(["modelId"]), am = /* @__PURE__ */ new Set(["modelId", "columns"]), lm = /* @__PURE__ */ new Set([]);
991
1000
  function sm(e, t, n, o) {
992
1001
  const i = zn(t.attributes ?? [], n.attributes ?? [], (s) => s.modelId);
993
1002
  for (const s of i.removed)
@@ -995,7 +1004,7 @@ function sm(e, t, n, o) {
995
1004
  for (const s of i.added)
996
1005
  o.push({ kind: "attribute.add", casUnit: "logical", containerRef: e, entityRef: e, value: s });
997
1006
  for (const { cur: s, tgt: r } of i.common) {
998
- const u = Dn(s, r, Ms);
1007
+ const u = Dn(s, r, Ts);
999
1008
  u && o.push({ kind: "attribute.update", casUnit: "logical", containerRef: e, entityRef: e, attributeRef: s.modelId, patch: u });
1000
1009
  }
1001
1010
  const a = zn(t.operations ?? [], n.operations ?? [], (s) => s.modelId);
@@ -1004,7 +1013,7 @@ function sm(e, t, n, o) {
1004
1013
  for (const s of a.added)
1005
1014
  o.push({ kind: "operation.add", casUnit: "logical", containerRef: e, entityRef: e, value: s });
1006
1015
  for (const { cur: s, tgt: r } of a.common) {
1007
- const u = Dn(s, r, Ms);
1016
+ const u = Dn(s, r, Ts);
1008
1017
  u && o.push({ kind: "operation.update", casUnit: "logical", containerRef: e, entityRef: e, operationRef: s.modelId, patch: u });
1009
1018
  }
1010
1019
  const l = zn(t.indexes ?? [], n.indexes ?? [], (s) => s.modelId);
@@ -1265,7 +1274,7 @@ function hm(e, t) {
1265
1274
  for (const s of a) l.push(...gi(Ln(n, { entityRef: t, indexRef: s }), { kind: "index", ref: s }));
1266
1275
  return l.map((s, r) => ({ e: s, i: r })).sort((s, r) => s.e.seq - r.e.seq || s.i - r.i).map(({ e: s }) => s);
1267
1276
  }
1268
- function Ts(e) {
1277
+ function Ms(e) {
1269
1278
  return `${e.kind}:${e.ref}:${e.end ?? ""}`;
1270
1279
  }
1271
1280
  function vm(e) {
@@ -1335,14 +1344,14 @@ function gm(e) {
1335
1344
  function bm(e) {
1336
1345
  const t = gm(e), n = vm(e), o = /* @__PURE__ */ new Map();
1337
1346
  for (const l of t) {
1338
- const s = Ts(l.subject), r = o.get(s);
1347
+ const s = Ms(l.subject), r = o.get(s);
1339
1348
  (r === void 0 || l.seq < r) && o.set(s, l.seq);
1340
1349
  }
1341
1350
  const i = /* @__PURE__ */ new Map();
1342
1351
  for (const l of t) {
1343
1352
  let s = i.get(l.seq);
1344
1353
  s || (s = { meta: l, subjects: /* @__PURE__ */ new Map() }, i.set(l.seq, s));
1345
- const r = Ts(l.subject);
1354
+ const r = Ms(l.subject);
1346
1355
  let u = s.subjects.get(r);
1347
1356
  if (!u) {
1348
1357
  const d = l.removed ? "remove" : o.get(r) === l.seq && n.has(r) ? "add" : "update";
@@ -1734,7 +1743,7 @@ function yl(e, t) {
1734
1743
  }
1735
1744
  };
1736
1745
  }
1737
- function Mu(e, t) {
1746
+ function Tu(e, t) {
1738
1747
  const n = {}, o = (i) => {
1739
1748
  const a = i.logical.groups.find((l) => l.modelId === e);
1740
1749
  if (!a) throw new Error(`그룹 없음: ${e}`);
@@ -1781,7 +1790,7 @@ function gl(e) {
1781
1790
  }
1782
1791
  };
1783
1792
  }
1784
- function Tu(e, t) {
1793
+ function Mu(e, t) {
1785
1794
  let n = !1;
1786
1795
  const o = (i) => i.logical.groups.find((a) => a.modelId === e);
1787
1796
  return {
@@ -2674,7 +2683,7 @@ const zC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2674
2683
  addAssociation: _l,
2675
2684
  addAttribute: en,
2676
2685
  addEntity: pl,
2677
- addEntityToGroup: Tu,
2686
+ addEntityToGroup: Mu,
2678
2687
  addGroup: yl,
2679
2688
  addIndex: Hu,
2680
2689
  addNote: ju,
@@ -2722,7 +2731,7 @@ const zC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2722
2731
  updateAssociationEnd: oo,
2723
2732
  updateAttribute: Sn,
2724
2733
  updateEntity: Nu,
2725
- updateGroup: Mu,
2734
+ updateGroup: Tu,
2726
2735
  updateIndex: Fu,
2727
2736
  updateOperation: Vu
2728
2737
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3364,7 +3373,7 @@ const dd = {
3364
3373
  },
3365
3374
  required: ["from", "to"],
3366
3375
  additionalProperties: !1
3367
- }, Mm = {
3376
+ }, Tm = {
3368
3377
  type: "object",
3369
3378
  description: "신규 엔티티. 자식(속성·인덱스·operation)은 별도 attribute.add 등이 아니라 여기 inline 배열로 담아라 — 같은 배치에서 갓 추가된 엔티티에 닿는 child op은 silent no-op이 된다(서버가 pending-entity-ref로 거부). 관계는 inline 불가 → 엔티티 추가 배치 확정 후 별도 배치로 association.add.",
3370
3379
  properties: {
@@ -3406,7 +3415,7 @@ const dd = {
3406
3415
  zh: { type: "string" }
3407
3416
  },
3408
3417
  additionalProperties: !1
3409
- }, Tm = {
3418
+ }, Mm = {
3410
3419
  type: "object",
3411
3420
  properties: {
3412
3421
  name: { type: "string" },
@@ -3613,8 +3622,8 @@ const zm = {
3613
3622
  $defs: {
3614
3623
  handle: dd,
3615
3624
  assocHandle: Am,
3616
- entitySpec: Mm,
3617
- attrSpec: Tm,
3625
+ entitySpec: Tm,
3626
+ attrSpec: Mm,
3618
3627
  assocSpec: Om,
3619
3628
  indexSpec: Dm,
3620
3629
  operationSpec: Lm,
@@ -4707,21 +4716,21 @@ function Sp(e) {
4707
4716
  function Ap(e) {
4708
4717
  return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
4709
4718
  }
4710
- function Mp() {
4719
+ function Tp() {
4711
4720
  return [];
4712
4721
  }
4713
4722
  function Ed(e) {
4714
- return e == null ? Mp : function() {
4723
+ return e == null ? Tp : function() {
4715
4724
  return this.querySelectorAll(e);
4716
4725
  };
4717
4726
  }
4718
- function Tp(e) {
4727
+ function Mp(e) {
4719
4728
  return function() {
4720
4729
  return Ap(e.apply(this, arguments));
4721
4730
  };
4722
4731
  }
4723
4732
  function Op(e) {
4724
- typeof e == "function" ? e = Tp(e) : e = Ed(e);
4733
+ typeof e == "function" ? e = Mp(e) : e = Ed(e);
4725
4734
  for (var t = this._groups, n = t.length, o = [], i = [], a = 0; a < n; ++a)
4726
4735
  for (var l = t[a], s = l.length, r, u = 0; u < s; ++u)
4727
4736
  (r = l[u]) && (o.push(e.call(r, r.__data__, u, l)), i.push(r));
@@ -5058,10 +5067,10 @@ function Sh(e) {
5058
5067
  function Ah(e) {
5059
5068
  return arguments.length ? this.each(e == null ? Ch : (typeof e == "function" ? Sh : Rh)(e)) : this.node().textContent;
5060
5069
  }
5061
- function Mh() {
5070
+ function Th() {
5062
5071
  this.innerHTML = "";
5063
5072
  }
5064
- function Th(e) {
5073
+ function Mh(e) {
5065
5074
  return function() {
5066
5075
  this.innerHTML = e;
5067
5076
  };
@@ -5073,7 +5082,7 @@ function Oh(e) {
5073
5082
  };
5074
5083
  }
5075
5084
  function Dh(e) {
5076
- return arguments.length ? this.each(e == null ? Mh : (typeof e == "function" ? Oh : Th)(e)) : this.node().innerHTML;
5085
+ return arguments.length ? this.each(e == null ? Th : (typeof e == "function" ? Oh : Mh)(e)) : this.node().innerHTML;
5077
5086
  }
5078
5087
  function Lh() {
5079
5088
  this.nextSibling && this.parentNode.appendChild(this);
@@ -5195,12 +5204,12 @@ function* ov() {
5195
5204
  for (var o = e[t], i = 0, a = o.length, l; i < a; ++i)
5196
5205
  (l = o[i]) && (yield l);
5197
5206
  }
5198
- var Md = [null];
5207
+ var Td = [null];
5199
5208
  function St(e, t) {
5200
5209
  this._groups = e, this._parents = t;
5201
5210
  }
5202
5211
  function fi() {
5203
- return new St([[document.documentElement]], Md);
5212
+ return new St([[document.documentElement]], Td);
5204
5213
  }
5205
5214
  function iv() {
5206
5215
  return this;
@@ -5244,7 +5253,7 @@ St.prototype = fi.prototype = {
5244
5253
  [Symbol.iterator]: ov
5245
5254
  };
5246
5255
  function Ot(e) {
5247
- return typeof e == "string" ? new St([[document.querySelector(e)]], [document.documentElement]) : new St([[e]], Md);
5256
+ return typeof e == "string" ? new St([[document.querySelector(e)]], [document.documentElement]) : new St([[e]], Td);
5248
5257
  }
5249
5258
  function av(e) {
5250
5259
  let t;
@@ -5273,7 +5282,7 @@ function Ka(e) {
5273
5282
  function so(e) {
5274
5283
  e.preventDefault(), e.stopImmediatePropagation();
5275
5284
  }
5276
- function Td(e) {
5285
+ function Md(e) {
5277
5286
  var t = e.document.documentElement, n = Ot(e).on("dragstart.drag", so, Zo);
5278
5287
  "onselectstart" in t ? n.on("selectstart.drag", so, Zo) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
5279
5288
  }
@@ -5334,7 +5343,7 @@ function cv() {
5334
5343
  function f(C, Q) {
5335
5344
  if (!(d || !e.call(this, C, Q))) {
5336
5345
  var F = h(this, t.call(this, C, Q), C, Q, "mouse");
5337
- F && (Ot(C.view).on("mousemove.drag", m, Zo).on("mouseup.drag", v, Zo), Td(C.view), Ka(C), u = !1, s = C.clientX, r = C.clientY, F("start", C));
5346
+ F && (Ot(C.view).on("mousemove.drag", m, Zo).on("mouseup.drag", v, Zo), Md(C.view), Ka(C), u = !1, s = C.clientX, r = C.clientY, F("start", C));
5338
5347
  }
5339
5348
  }
5340
5349
  function m(C) {
@@ -5807,12 +5816,12 @@ function Av(e, t) {
5807
5816
  };
5808
5817
  }
5809
5818
  var Rl = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Xa = new RegExp(Rl.source, "g");
5810
- function Mv(e) {
5819
+ function Tv(e) {
5811
5820
  return function() {
5812
5821
  return e;
5813
5822
  };
5814
5823
  }
5815
- function Tv(e) {
5824
+ function Mv(e) {
5816
5825
  return function(t) {
5817
5826
  return e(t) + "";
5818
5827
  };
@@ -5821,7 +5830,7 @@ function Vd(e, t) {
5821
5830
  var n = Rl.lastIndex = Xa.lastIndex = 0, o, i, a, l = -1, s = [], r = [];
5822
5831
  for (e = e + "", t = t + ""; (o = Rl.exec(e)) && (i = Xa.exec(t)); )
5823
5832
  (a = i.index) > n && (a = t.slice(n, a), s[l] ? s[l] += a : s[++l] = a), (o = o[0]) === (i = i[0]) ? s[l] ? s[l] += i : s[++l] = i : (s[++l] = null, r.push({ i: l, x: Yt(o, i) })), n = Xa.lastIndex;
5824
- return n < t.length && (a = t.slice(n), s[l] ? s[l] += a : s[++l] = a), s.length < 2 ? r[0] ? Tv(r[0].x) : Mv(t) : (t = r.length, function(u) {
5833
+ return n < t.length && (a = t.slice(n), s[l] ? s[l] += a : s[++l] = a), s.length < 2 ? r[0] ? Mv(r[0].x) : Tv(t) : (t = r.length, function(u) {
5825
5834
  for (var d = 0, c; d < t; ++d)
5826
5835
  s[(c = r[d]).i] = c.x(u);
5827
5836
  return s.join("");
@@ -5991,7 +6000,7 @@ function lr(e, t, n) {
5991
6000
  o.stop(), e(i + t);
5992
6001
  }, t, n), o;
5993
6002
  }
5994
- var Yv = $a("start", "end", "cancel", "interrupt"), Wv = [], Gd = 0, sr = 1, Ml = 2, Fi = 3, rr = 4, Tl = 5, Gi = 6;
6003
+ var Yv = $a("start", "end", "cancel", "interrupt"), Wv = [], Gd = 0, sr = 1, Tl = 2, Fi = 3, rr = 4, Ml = 5, Gi = 6;
5995
6004
  function xa(e, t, n, o, i, a) {
5996
6005
  var l = e.__transition;
5997
6006
  if (!l)
@@ -6050,16 +6059,16 @@ function Kv(e, t, n) {
6050
6059
  }
6051
6060
  if (lr(function() {
6052
6061
  n.state === Fi && (n.state = rr, n.timer.restart(s, n.delay, n.time), s(u));
6053
- }), n.state = Ml, n.on.call("start", e, e.__data__, n.index, n.group), n.state === Ml) {
6062
+ }), n.state = Tl, n.on.call("start", e, e.__data__, n.index, n.group), n.state === Tl) {
6054
6063
  for (n.state = Fi, i = new Array(p = n.tween.length), d = 0, c = -1; d < p; ++d)
6055
6064
  (f = n.tween[d].value.call(e, e.__data__, n.index, n.group)) && (i[++c] = f);
6056
6065
  i.length = c + 1;
6057
6066
  }
6058
6067
  }
6059
6068
  function s(u) {
6060
- for (var d = u < n.duration ? n.ease.call(null, u / n.duration) : (n.timer.restart(r), n.state = Tl, 1), c = -1, p = i.length; ++c < p; )
6069
+ for (var d = u < n.duration ? n.ease.call(null, u / n.duration) : (n.timer.restart(r), n.state = Ml, 1), c = -1, p = i.length; ++c < p; )
6061
6070
  i[c].call(e, d);
6062
- n.state === Tl && (n.on.call("end", e, e.__data__, n.index, n.group), r());
6071
+ n.state === Ml && (n.on.call("end", e, e.__data__, n.index, n.group), r());
6063
6072
  }
6064
6073
  function r() {
6065
6074
  n.state = Gi, n.timer.stop(), delete o[t];
@@ -6077,7 +6086,7 @@ function Yi(e, t) {
6077
6086
  a = !1;
6078
6087
  continue;
6079
6088
  }
6080
- i = o.state > Ml && o.state < Tl, o.state = Gi, o.timer.stop(), o.on.call(i ? "interrupt" : "cancel", e, e.__data__, o.index, o.group), delete n[l];
6089
+ i = o.state > Tl && o.state < Ml, o.state = Gi, o.timer.stop(), o.on.call(i ? "interrupt" : "cancel", e, e.__data__, o.index, o.group), delete n[l];
6081
6090
  }
6082
6091
  a && delete e.__transition;
6083
6092
  }
@@ -6356,14 +6365,14 @@ function Wd(e) {
6356
6365
  this.style.removeProperty(e);
6357
6366
  };
6358
6367
  }
6359
- function My(e, t, n) {
6368
+ function Ty(e, t, n) {
6360
6369
  var o, i = n + "", a;
6361
6370
  return function() {
6362
6371
  var l = fo(this, e);
6363
6372
  return l === i ? null : l === o ? a : a = t(o = l, n);
6364
6373
  };
6365
6374
  }
6366
- function Ty(e, t, n) {
6375
+ function My(e, t, n) {
6367
6376
  var o, i, a;
6368
6377
  return function() {
6369
6378
  var l = fo(this, e), s = n(this), r = s + "";
@@ -6379,7 +6388,7 @@ function Oy(e, t) {
6379
6388
  }
6380
6389
  function Dy(e, t, n) {
6381
6390
  var o = (e += "") == "transform" ? Lv : Yd;
6382
- return t == null ? this.styleTween(e, Ay(e, o)).on("end.style." + e, Wd(e)) : typeof t == "function" ? this.styleTween(e, Ty(e, o, rs(this, "style." + e, t))).each(Oy(this._id, e)) : this.styleTween(e, My(e, o, t), n).on("end.style." + e, null);
6391
+ return t == null ? this.styleTween(e, Ay(e, o)).on("end.style." + e, Wd(e)) : typeof t == "function" ? this.styleTween(e, My(e, o, rs(this, "style." + e, t))).each(Oy(this._id, e)) : this.styleTween(e, Ty(e, o, t), n).on("end.style." + e, null);
6383
6392
  }
6384
6393
  function Ly(e, t, n) {
6385
6394
  return function(o) {
@@ -6675,8 +6684,8 @@ function ig() {
6675
6684
  if (Ie === 1)
6676
6685
  Ie = ce;
6677
6686
  else {
6678
- var Te = _e(Ie), Le = we / Te[2];
6679
- Ie = new on(Le, fe[0] - Te[0] * Le, fe[1] - Te[1] * Le);
6687
+ var Me = _e(Ie), Le = we / Me[2];
6688
+ Ie = new on(Le, fe[0] - Me[0] * Le, fe[1] - Me[1] * Le);
6680
6689
  }
6681
6690
  O.zoom(null, Ie);
6682
6691
  };
@@ -6736,7 +6745,7 @@ function ig() {
6736
6745
  if (p || !e.apply(this, arguments))
6737
6746
  return;
6738
6747
  var x = E.currentTarget, P = F(this, R, !0).event(E), X = Ot(E.view).on("mousemove.zoom", fe, !0).on("mouseup.zoom", we, !0), ee = Gt(E, x), O = E.clientX, de = E.clientY;
6739
- Td(E.view), ja(E), P.mouse = [ee, this.__zoom.invert(ee)], Yi(this), P.start();
6748
+ Md(E.view), ja(E), P.mouse = [ee, this.__zoom.invert(ee)], Yi(this), P.start();
6740
6749
  function fe(ke) {
6741
6750
  if (Ao(ke), !P.moved) {
6742
6751
  var ce = ke.clientX - O, _e = ke.clientY - de;
@@ -6770,8 +6779,8 @@ function ig() {
6770
6779
  for (Ao(E), ee = 0; ee < X; ++ee)
6771
6780
  O = P[ee], de = Gt(O, this), x.touch0 && x.touch0[2] === O.identifier ? x.touch0[0] = de : x.touch1 && x.touch1[2] === O.identifier && (x.touch1[0] = de);
6772
6781
  if (O = x.that.__zoom, x.touch1) {
6773
- var we = x.touch0[0], ke = x.touch0[1], ce = x.touch1[0], _e = x.touch1[1], Ie = (Ie = ce[0] - we[0]) * Ie + (Ie = ce[1] - we[1]) * Ie, Te = (Te = _e[0] - ke[0]) * Te + (Te = _e[1] - ke[1]) * Te;
6774
- O = k(O, Math.sqrt(Ie / Te)), de = [(we[0] + ce[0]) / 2, (we[1] + ce[1]) / 2], fe = [(ke[0] + _e[0]) / 2, (ke[1] + _e[1]) / 2];
6782
+ var we = x.touch0[0], ke = x.touch0[1], ce = x.touch1[0], _e = x.touch1[1], Ie = (Ie = ce[0] - we[0]) * Ie + (Ie = ce[1] - we[1]) * Ie, Me = (Me = _e[0] - ke[0]) * Me + (Me = _e[1] - ke[1]) * Me;
6783
+ O = k(O, Math.sqrt(Ie / Me)), de = [(we[0] + ce[0]) / 2, (we[1] + ce[1]) / 2], fe = [(ke[0] + _e[0]) / 2, (ke[1] + _e[1]) / 2];
6775
6784
  } else if (x.touch0)
6776
6785
  de = x.touch0[0], fe = x.touch0[1];
6777
6786
  else
@@ -7111,7 +7120,7 @@ function ic(e, t, n = { x: 0, y: 0, zoom: 1 }, o = !1, i = !1) {
7111
7120
  }
7112
7121
  return l;
7113
7122
  }
7114
- function Mn(e, t) {
7123
+ function Tn(e, t) {
7115
7124
  const n = /* @__PURE__ */ new Set();
7116
7125
  if (typeof e == "string")
7117
7126
  n.add(e);
@@ -7680,11 +7689,11 @@ function Er(e, {
7680
7689
  function rc(e, t) {
7681
7690
  return e || (t != null && t.classList.contains("target") ? "target" : t != null && t.classList.contains("source") ? "source" : null);
7682
7691
  }
7683
- function Mg(e, t) {
7692
+ function Tg(e, t) {
7684
7693
  let n = null;
7685
7694
  return t ? n = "valid" : e && !t && (n = "invalid"), n;
7686
7695
  }
7687
- function Tg(e, t) {
7696
+ function Mg(e, t) {
7688
7697
  let n = null;
7689
7698
  return t ? n = !0 : e && !t && (n = !1), n;
7690
7699
  }
@@ -7862,39 +7871,39 @@ function mc(e) {
7862
7871
  emits: C
7863
7872
  } = Je(), { onStart: Q, onDrag: F, onStop: J, onClick: D, el: ue, disabled: le, id: ve, selectable: L, dragHandle: se } = e, E = kn(!1);
7864
7873
  let R = [], x, P = null, X = { x: void 0, y: void 0 }, ee = { x: 0, y: 0 }, O = null, de = !1, fe = !1, we = 0, ke = !1;
7865
- const ce = Bg(), _e = ({ x: Y, y: T }) => {
7866
- X = { x: Y, y: T };
7874
+ const ce = Bg(), _e = ({ x: Y, y: M }) => {
7875
+ X = { x: Y, y: M };
7867
7876
  let A = !1;
7868
- if (R = R.map((M) => {
7869
- const B = { x: Y - M.distance.x, y: T - M.distance.y }, { computedPosition: re } = cs(
7870
- M,
7877
+ if (R = R.map((T) => {
7878
+ const B = { x: Y - T.distance.x, y: M - T.distance.y }, { computedPosition: re } = cs(
7879
+ T,
7871
7880
  n.value ? Ca(B, o.value) : B,
7872
7881
  C.error,
7873
7882
  l.value,
7874
- M.parentNode ? f(M.parentNode) : void 0
7883
+ T.parentNode ? f(T.parentNode) : void 0
7875
7884
  );
7876
- return A = A || M.position.x !== re.x || M.position.y !== re.y, M.position = re, M;
7885
+ return A = A || T.position.x !== re.x || T.position.y !== re.y, T.position = re, T;
7877
7886
  }), fe = fe || A, !!A && (h(R, !0, !0), E.value = !0, O)) {
7878
- const [M, B] = Ja({
7887
+ const [T, B] = Ja({
7879
7888
  id: ve,
7880
7889
  dragItems: R,
7881
7890
  findNode: f
7882
7891
  });
7883
- F({ event: O, node: M, nodes: B });
7892
+ F({ event: O, node: T, nodes: B });
7884
7893
  }
7885
7894
  }, Ie = () => {
7886
7895
  if (!P)
7887
7896
  return;
7888
- const [Y, T] = lc(ee, P, d.value);
7889
- if (Y !== 0 || T !== 0) {
7897
+ const [Y, M] = lc(ee, P, d.value);
7898
+ if (Y !== 0 || M !== 0) {
7890
7899
  const A = {
7891
7900
  x: (X.x ?? 0) - Y / r.value.zoom,
7892
- y: (X.y ?? 0) - T / r.value.zoom
7901
+ y: (X.y ?? 0) - M / r.value.zoom
7893
7902
  };
7894
- p({ x: Y, y: T }) && _e(A);
7903
+ p({ x: Y, y: M }) && _e(A);
7895
7904
  }
7896
7905
  we = requestAnimationFrame(Ie);
7897
- }, Te = (Y, T) => {
7906
+ }, Me = (Y, M) => {
7898
7907
  de = !0;
7899
7908
  const A = f(ve);
7900
7909
  !y.value && !m.value && A && (A.selected || g()), A && Ke(L) && y.value && Vl(
@@ -7904,10 +7913,10 @@ function mc(e) {
7904
7913
  g,
7905
7914
  v,
7906
7915
  !1,
7907
- T
7916
+ M
7908
7917
  );
7909
- const M = ce(Y.sourceEvent);
7910
- if (X = M, R = _g(a.value, c.value, M, ve), R.length) {
7918
+ const T = ce(Y.sourceEvent);
7919
+ if (X = T, R = _g(a.value, c.value, T, ve), R.length) {
7911
7920
  const [B, re] = Ja({
7912
7921
  id: ve,
7913
7922
  dragItems: R,
@@ -7915,40 +7924,40 @@ function mc(e) {
7915
7924
  });
7916
7925
  Q({ event: Y.sourceEvent, node: B, nodes: re });
7917
7926
  }
7918
- }, Le = (Y, T) => {
7927
+ }, Le = (Y, M) => {
7919
7928
  var A;
7920
- Y.sourceEvent.type === "touchmove" && Y.sourceEvent.touches.length > 1 || (fe = !1, s.value === 0 && Te(Y, T), X = ce(Y.sourceEvent), P = ((A = t.value) == null ? void 0 : A.getBoundingClientRect()) || null, ee = Wt(Y.sourceEvent, P));
7921
- }, Pe = (Y, T) => {
7929
+ Y.sourceEvent.type === "touchmove" && Y.sourceEvent.touches.length > 1 || (fe = !1, s.value === 0 && Me(Y, M), X = ce(Y.sourceEvent), P = ((A = t.value) == null ? void 0 : A.getBoundingClientRect()) || null, ee = Wt(Y.sourceEvent, P));
7930
+ }, Pe = (Y, M) => {
7922
7931
  const A = ce(Y.sourceEvent);
7923
7932
  if (!ke && de && u.value && (ke = !0, Ie()), !de) {
7924
- const M = A.xSnapped - (X.x ?? 0), B = A.ySnapped - (X.y ?? 0);
7925
- Math.sqrt(M * M + B * B) > s.value && Te(Y, T);
7933
+ const T = A.xSnapped - (X.x ?? 0), B = A.ySnapped - (X.y ?? 0);
7934
+ Math.sqrt(T * T + B * B) > s.value && Me(Y, M);
7926
7935
  }
7927
7936
  (X.x !== A.xSnapped || X.y !== A.ySnapped) && R.length && de && (O = Y.sourceEvent, ee = Wt(Y.sourceEvent, P), _e(A));
7928
7937
  }, j = (Y) => {
7929
- let T = !1;
7938
+ let M = !1;
7930
7939
  if (!de && !E.value && !m.value) {
7931
- const A = Y.sourceEvent, M = ce(A), B = M.xSnapped - (X.x ?? 0), re = M.ySnapped - (X.y ?? 0), te = Math.sqrt(B * B + re * re);
7932
- te !== 0 && te <= s.value && (D == null || D(A), T = !0);
7940
+ const A = Y.sourceEvent, T = ce(A), B = T.xSnapped - (X.x ?? 0), re = T.ySnapped - (X.y ?? 0), te = Math.sqrt(B * B + re * re);
7941
+ te !== 0 && te <= s.value && (D == null || D(A), M = !0);
7933
7942
  }
7934
- if (R.length && !T) {
7943
+ if (R.length && !M) {
7935
7944
  fe && (h(R, !1, !1), fe = !1);
7936
- const [A, M] = Ja({
7945
+ const [A, T] = Ja({
7937
7946
  id: ve,
7938
7947
  dragItems: R,
7939
7948
  findNode: f
7940
7949
  });
7941
- J({ event: Y.sourceEvent, node: A, nodes: M });
7950
+ J({ event: Y.sourceEvent, node: A, nodes: T });
7942
7951
  }
7943
7952
  R = [], E.value = !1, ke = !1, de = !1, X = { x: void 0, y: void 0 }, cancelAnimationFrame(we);
7944
7953
  };
7945
- return Ge([() => Ke(le), ue], ([Y, T], A, M) => {
7946
- if (T) {
7947
- const B = Ot(T);
7948
- Y || (x = cv().on("start", (re) => Le(re, T)).on("drag", (re) => Pe(re, T)).on("end", (re) => j(re)).filter((re) => {
7954
+ return Ge([() => Ke(le), ue], ([Y, M], A, T) => {
7955
+ if (M) {
7956
+ const B = Ot(M);
7957
+ Y || (x = cv().on("start", (re) => Le(re, M)).on("drag", (re) => Pe(re, M)).on("end", (re) => j(re)).filter((re) => {
7949
7958
  const te = re.target, I = Ke(se);
7950
- return !re.button && (!i.value || !br(te, `.${i.value}`, T) && (!I || br(te, I, T)));
7951
- }), B.call(x)), M(() => {
7959
+ return !re.button && (!i.value || !br(te, `.${i.value}`, M) && (!I || br(te, I, M)));
7960
+ }), B.call(x)), T(() => {
7952
7961
  B.on(".drag", null), x && (x.on("start", null), x.on("drag", null), x.on("end", null));
7953
7962
  });
7954
7963
  }
@@ -8058,7 +8067,7 @@ function pc({
8058
8067
  d.value,
8059
8068
  le.value,
8060
8069
  re
8061
- ), M || (B(), M = !0);
8070
+ ), T || (B(), T = !0);
8062
8071
  const me = Er(
8063
8072
  ie,
8064
8073
  {
@@ -8078,7 +8087,7 @@ function pc({
8078
8087
  y,
8079
8088
  le.value
8080
8089
  );
8081
- se = me.handleDomNode, ve = me.connection, L = Tg(!!_e, me.isValid);
8090
+ se = me.handleDomNode, ve = me.connection, L = Mg(!!_e, me.isValid);
8082
8091
  const ye = {
8083
8092
  // from stays the same
8084
8093
  ...H,
@@ -8100,24 +8109,24 @@ function pc({
8100
8109
  F.value
8101
8110
  ) : A,
8102
8111
  be,
8103
- Mg(!!be, L)
8112
+ Tg(!!be, L)
8104
8113
  ), H = ye, !_e && !L && !se)
8105
- return Qa(T);
8106
- ve && ve.source !== ve.target && se && (Qa(T), T = se, se.classList.add("connecting", "vue-flow__handle-connecting"), se.classList.toggle("valid", !!L), se.classList.toggle("vue-flow__handle-valid", !!L));
8114
+ return Qa(M);
8115
+ ve && ve.source !== ve.target && se && (Qa(M), M = se, se.classList.add("connecting", "vue-flow__handle-connecting"), se.classList.toggle("valid", !!L), se.classList.toggle("vue-flow__handle-valid", !!L));
8107
8116
  }, we = function(ie) {
8108
- "touches" in ie && ie.touches.length > 0 || ((_e || se) && ve && L && (a ? a(ie, ve) : Q.connect(ve)), Q.connectEnd(ie), i && (l == null || l(ie)), Qa(T), cancelAnimationFrame(Ie), C(ie), M = !1, L = !1, ve = null, se = null, O.removeEventListener("mousemove", fe), O.removeEventListener("mouseup", we), O.removeEventListener("touchmove", fe), O.removeEventListener("touchend", we));
8117
+ "touches" in ie && ie.touches.length > 0 || ((_e || se) && ve && L && (a ? a(ie, ve) : Q.connect(ve)), Q.connectEnd(ie), i && (l == null || l(ie)), Qa(M), cancelAnimationFrame(Ie), C(ie), T = !1, L = !1, ve = null, se = null, O.removeEventListener("mousemove", fe), O.removeEventListener("mouseup", we), O.removeEventListener("touchmove", fe), O.removeEventListener("touchend", we));
8109
8118
  };
8110
8119
  const ke = y(Ke(t));
8111
8120
  let ce = Ke(o) || ue.value || ki;
8112
8121
  !ce && ke && (ce = (X ? ke.isValidSourcePos : ke.isValidTargetPos) || ki);
8113
8122
  let _e, Ie = 0;
8114
- const { x: Te, y: Le } = Wt(x), Pe = rc(Ke(i), de), j = (P = r.value) == null ? void 0 : P.getBoundingClientRect();
8123
+ const { x: Me, y: Le } = Wt(x), Pe = rc(Ke(i), de), j = (P = r.value) == null ? void 0 : P.getBoundingClientRect();
8115
8124
  if (!j || !Pe)
8116
8125
  return;
8117
8126
  const Y = uc(Ke(t), Pe, Ke(e), le.value, u.value);
8118
8127
  if (!Y)
8119
8128
  return;
8120
- let T, A = Wt(x, j), M = !1;
8129
+ let M, A = Wt(x, j), T = !1;
8121
8130
  const B = () => {
8122
8131
  if (!m.value)
8123
8132
  return;
@@ -8149,7 +8158,7 @@ function pc({
8149
8158
  ...A
8150
8159
  },
8151
8160
  {
8152
- x: Te - j.left,
8161
+ x: Me - j.left,
8153
8162
  y: Le - j.top
8154
8163
  }
8155
8164
  ), Q.connectStart({ event: x, nodeId: Ke(t), handleId: Ke(e), handleType: Pe });
@@ -8222,7 +8231,7 @@ function hc(e) {
8222
8231
  nodeEl: n,
8223
8232
  node: l,
8224
8233
  parentNode: U(() => o(l.parentNode)),
8225
- connectedEdges: U(() => Mn([l], i.value))
8234
+ connectedEdges: U(() => Tn([l], i.value))
8226
8235
  };
8227
8236
  }
8228
8237
  function Fg() {
@@ -8796,11 +8805,11 @@ const Jg = [
8796
8805
  ];
8797
8806
  function Qg(e, t, n) {
8798
8807
  const o = Kg(e), i = (A) => {
8799
- const M = A ?? [];
8800
- e.hooks.updateNodeInternals.trigger(M);
8801
- }, a = (A) => pg(A, e.nodes, e.edges), l = (A) => mg(A, e.nodes, e.edges), s = (A) => Mn(A, e.edges), r = ({ id: A, type: M, nodeId: B }) => {
8808
+ const T = A ?? [];
8809
+ e.hooks.updateNodeInternals.trigger(T);
8810
+ }, a = (A) => pg(A, e.nodes, e.edges), l = (A) => mg(A, e.nodes, e.edges), s = (A) => Tn(A, e.edges), r = ({ id: A, type: T, nodeId: B }) => {
8802
8811
  var re;
8803
- const te = A ? `-${M}-${A}` : `-${M}`;
8812
+ const te = A ? `-${T}-${A}` : `-${T}`;
8804
8813
  return Array.from(((re = e.connectionLookup.get(`${B}${te}`)) == null ? void 0 : re.values()) ?? []);
8805
8814
  }, u = (A) => {
8806
8815
  if (A)
@@ -8808,7 +8817,7 @@ function Qg(e, t, n) {
8808
8817
  }, d = (A) => {
8809
8818
  if (A)
8810
8819
  return n.value.get(A);
8811
- }, c = (A, M, B) => {
8820
+ }, c = (A, T, B) => {
8812
8821
  var re, te;
8813
8822
  const I = [];
8814
8823
  for (const N of A) {
@@ -8818,7 +8827,7 @@ function Qg(e, t, n) {
8818
8827
  dragging: B,
8819
8828
  from: N.from
8820
8829
  };
8821
- if (M && (H.position = N.position, N.parentNode)) {
8830
+ if (T && (H.position = N.position, N.parentNode)) {
8822
8831
  const ie = u(N.parentNode);
8823
8832
  H.position = {
8824
8833
  x: H.position.x - (((re = ie == null ? void 0 : ie.computedPosition) == null ? void 0 : re.x) ?? 0),
@@ -8831,10 +8840,10 @@ function Qg(e, t, n) {
8831
8840
  }, p = (A) => {
8832
8841
  if (!e.vueFlowRef)
8833
8842
  return;
8834
- const M = e.vueFlowRef.querySelector(".vue-flow__transformationpane");
8835
- if (!M)
8843
+ const T = e.vueFlowRef.querySelector(".vue-flow__transformationpane");
8844
+ if (!T)
8836
8845
  return;
8837
- const B = window.getComputedStyle(M), { m22: re } = new window.DOMMatrixReadOnly(B.transform), te = [];
8846
+ const B = window.getComputedStyle(T), { m22: re } = new window.DOMMatrixReadOnly(B.transform), te = [];
8838
8847
  for (const I of A) {
8839
8848
  const N = I, H = u(N.id);
8840
8849
  if (H) {
@@ -8852,32 +8861,32 @@ function Qg(e, t, n) {
8852
8861
  !e.fitViewOnInitDone && e.fitViewOnInit && o.value.fitView().then(() => {
8853
8862
  e.fitViewOnInitDone = !0;
8854
8863
  }), te.length && e.hooks.nodesChange.trigger(te);
8855
- }, f = (A, M) => {
8864
+ }, f = (A, T) => {
8856
8865
  const B = /* @__PURE__ */ new Set(), re = /* @__PURE__ */ new Set();
8857
8866
  for (const N of A)
8858
8867
  Bn(N) ? B.add(N.id) : Nn(N) && re.add(N.id);
8859
8868
  const te = wn(t.value, B, !0), I = wn(n.value, re);
8860
8869
  if (e.multiSelectionActive) {
8861
8870
  for (const N of B)
8862
- te.push(gn(N, M));
8871
+ te.push(gn(N, T));
8863
8872
  for (const N of re)
8864
- I.push(gn(N, M));
8873
+ I.push(gn(N, T));
8865
8874
  }
8866
8875
  te.length && e.hooks.nodesChange.trigger(te), I.length && e.hooks.edgesChange.trigger(I);
8867
8876
  }, m = (A) => {
8868
8877
  if (e.multiSelectionActive) {
8869
- const M = A.map((B) => gn(B.id, !0));
8870
- e.hooks.nodesChange.trigger(M);
8878
+ const T = A.map((B) => gn(B.id, !0));
8879
+ e.hooks.nodesChange.trigger(T);
8871
8880
  return;
8872
8881
  }
8873
- e.hooks.nodesChange.trigger(wn(t.value, new Set(A.map((M) => M.id)), !0)), e.hooks.edgesChange.trigger(wn(n.value));
8882
+ e.hooks.nodesChange.trigger(wn(t.value, new Set(A.map((T) => T.id)), !0)), e.hooks.edgesChange.trigger(wn(n.value));
8874
8883
  }, v = (A) => {
8875
8884
  if (e.multiSelectionActive) {
8876
- const M = A.map((B) => gn(B.id, !0));
8877
- e.hooks.edgesChange.trigger(M);
8885
+ const T = A.map((B) => gn(B.id, !0));
8886
+ e.hooks.edgesChange.trigger(T);
8878
8887
  return;
8879
8888
  }
8880
- e.hooks.edgesChange.trigger(wn(n.value, new Set(A.map((M) => M.id)))), e.hooks.nodesChange.trigger(wn(t.value, /* @__PURE__ */ new Set(), !0));
8889
+ e.hooks.edgesChange.trigger(wn(n.value, new Set(A.map((T) => T.id)))), e.hooks.nodesChange.trigger(wn(t.value, /* @__PURE__ */ new Set(), !0));
8881
8890
  }, y = (A) => {
8882
8891
  f(A, !0);
8883
8892
  }, g = (A) => {
@@ -8889,39 +8898,39 @@ function Qg(e, t, n) {
8889
8898
  }, h = (A) => {
8890
8899
  if (!A || !A.length)
8891
8900
  return f([], !1);
8892
- const M = A.reduce(
8901
+ const T = A.reduce(
8893
8902
  (B, re) => {
8894
8903
  const te = gn(re.id, !1);
8895
8904
  return Bn(re) ? B.nodes.push(te) : B.edges.push(te), B;
8896
8905
  },
8897
8906
  { nodes: [], edges: [] }
8898
8907
  );
8899
- M.nodes.length && e.hooks.nodesChange.trigger(M.nodes), M.edges.length && e.hooks.edgesChange.trigger(M.edges);
8908
+ T.nodes.length && e.hooks.nodesChange.trigger(T.nodes), T.edges.length && e.hooks.edgesChange.trigger(T.edges);
8900
8909
  }, C = (A) => {
8901
- var M;
8902
- (M = e.d3Zoom) == null || M.scaleExtent([A, e.maxZoom]), e.minZoom = A;
8910
+ var T;
8911
+ (T = e.d3Zoom) == null || T.scaleExtent([A, e.maxZoom]), e.minZoom = A;
8903
8912
  }, Q = (A) => {
8904
- var M;
8905
- (M = e.d3Zoom) == null || M.scaleExtent([e.minZoom, A]), e.maxZoom = A;
8913
+ var T;
8914
+ (T = e.d3Zoom) == null || T.scaleExtent([e.minZoom, A]), e.maxZoom = A;
8906
8915
  }, F = (A) => {
8907
- var M;
8908
- (M = e.d3Zoom) == null || M.translateExtent(A), e.translateExtent = A;
8916
+ var T;
8917
+ (T = e.d3Zoom) == null || T.translateExtent(A), e.translateExtent = A;
8909
8918
  }, J = (A) => {
8910
8919
  e.nodeExtent = A, i();
8911
8920
  }, D = (A) => {
8912
- var M;
8913
- (M = e.d3Zoom) == null || M.clickDistance(A);
8921
+ var T;
8922
+ (T = e.d3Zoom) == null || T.clickDistance(A);
8914
8923
  }, ue = (A) => {
8915
8924
  e.nodesDraggable = A, e.nodesConnectable = A, e.elementsSelectable = A;
8916
8925
  }, le = (A) => {
8917
- const M = A instanceof Function ? A(e.nodes) : A;
8918
- !e.initialized && !M.length || (e.nodes = Ir(M, u, e.hooks.error.trigger));
8926
+ const T = A instanceof Function ? A(e.nodes) : A;
8927
+ !e.initialized && !T.length || (e.nodes = Ir(T, u, e.hooks.error.trigger));
8919
8928
  }, ve = (A) => {
8920
- const M = A instanceof Function ? A(e.edges) : A;
8921
- if (!e.initialized && !M.length)
8929
+ const T = A instanceof Function ? A(e.edges) : A;
8930
+ if (!e.initialized && !T.length)
8922
8931
  return;
8923
8932
  const B = tl(
8924
- M,
8933
+ T,
8925
8934
  e.isValidConnection,
8926
8935
  u,
8927
8936
  d,
@@ -8932,20 +8941,20 @@ function Qg(e, t, n) {
8932
8941
  );
8933
8942
  el(e.connectionLookup, n.value, B), e.edges = B;
8934
8943
  }, L = (A) => {
8935
- const M = A instanceof Function ? A([...e.nodes, ...e.edges]) : A;
8936
- !e.initialized && !M.length || (le(M.filter(Bn)), ve(M.filter(Nn)));
8944
+ const T = A instanceof Function ? A([...e.nodes, ...e.edges]) : A;
8945
+ !e.initialized && !T.length || (le(T.filter(Bn)), ve(T.filter(Nn)));
8937
8946
  }, se = (A) => {
8938
- let M = A instanceof Function ? A(e.nodes) : A;
8939
- M = Array.isArray(M) ? M : [M];
8940
- const B = Ir(M, u, e.hooks.error.trigger), re = [];
8947
+ let T = A instanceof Function ? A(e.nodes) : A;
8948
+ T = Array.isArray(T) ? T : [T];
8949
+ const B = Ir(T, u, e.hooks.error.trigger), re = [];
8941
8950
  for (const te of B)
8942
8951
  re.push(hr(te));
8943
8952
  re.length && e.hooks.nodesChange.trigger(re);
8944
8953
  }, E = (A) => {
8945
- let M = A instanceof Function ? A(e.edges) : A;
8946
- M = Array.isArray(M) ? M : [M];
8954
+ let T = A instanceof Function ? A(e.edges) : A;
8955
+ T = Array.isArray(T) ? T : [T];
8947
8956
  const B = tl(
8948
- M,
8957
+ T,
8949
8958
  e.isValidConnection,
8950
8959
  u,
8951
8960
  d,
@@ -8957,7 +8966,7 @@ function Qg(e, t, n) {
8957
8966
  for (const te of B)
8958
8967
  re.push(hr(te));
8959
8968
  re.length && e.hooks.edgesChange.trigger(re);
8960
- }, R = (A, M = !0, B = !1) => {
8969
+ }, R = (A, T = !0, B = !1) => {
8961
8970
  const re = A instanceof Function ? A(e.nodes) : A, te = Array.isArray(re) ? re : [re], I = [], N = [];
8962
8971
  function H(me) {
8963
8972
  const ye = s(me);
@@ -8971,18 +8980,18 @@ function Qg(e, t, n) {
8971
8980
  if (ye.length) {
8972
8981
  for (const be of ye)
8973
8982
  I.push(vr(be.id));
8974
- M && H(ye);
8983
+ T && H(ye);
8975
8984
  for (const be of ye)
8976
8985
  ie(be.id);
8977
8986
  }
8978
8987
  }
8979
8988
  for (const me of te) {
8980
8989
  const ye = typeof me == "string" ? u(me) : me;
8981
- ye && (ct(ye.deletable) && !ye.deletable || (I.push(vr(ye.id)), M && H([ye]), B && ie(ye.id)));
8990
+ ye && (ct(ye.deletable) && !ye.deletable || (I.push(vr(ye.id)), T && H([ye]), B && ie(ye.id)));
8982
8991
  }
8983
8992
  N.length && e.hooks.edgesChange.trigger(N), I.length && e.hooks.nodesChange.trigger(I);
8984
8993
  }, x = (A) => {
8985
- const M = A instanceof Function ? A(e.edges) : A, B = Array.isArray(M) ? M : [M], re = [];
8994
+ const T = A instanceof Function ? A(e.edges) : A, B = Array.isArray(T) ? T : [T], re = [];
8986
8995
  for (const te of B) {
8987
8996
  const I = typeof te == "string" ? d(te) : te;
8988
8997
  I && (ct(I.deletable) && !I.deletable || re.push(
@@ -8996,11 +9005,11 @@ function Qg(e, t, n) {
8996
9005
  ));
8997
9006
  }
8998
9007
  e.hooks.edgesChange.trigger(re);
8999
- }, P = (A, M, B = !0) => {
9008
+ }, P = (A, T, B = !0) => {
9000
9009
  const re = d(A.id);
9001
9010
  if (!re)
9002
9011
  return !1;
9003
- const te = e.edges.indexOf(re), I = Lg(A, M, re, B, e.hooks.error.trigger);
9012
+ const te = e.edges.indexOf(re), I = Lg(A, T, re, B, e.hooks.error.trigger);
9004
9013
  if (I) {
9005
9014
  const [N] = tl(
9006
9015
  [I],
@@ -9015,37 +9024,37 @@ function Qg(e, t, n) {
9015
9024
  return e.edges = e.edges.map((H, ie) => ie === te ? N : H), el(e.connectionLookup, n.value, [N]), N;
9016
9025
  }
9017
9026
  return !1;
9018
- }, X = (A, M, B = { replace: !1 }) => {
9027
+ }, X = (A, T, B = { replace: !1 }) => {
9019
9028
  const re = d(A);
9020
9029
  if (!re)
9021
9030
  return;
9022
- const te = typeof M == "function" ? M(re) : M;
9031
+ const te = typeof T == "function" ? T(re) : T;
9023
9032
  re.data = B.replace ? te : { ...re.data, ...te };
9024
9033
  }, ee = (A) => pr(A, e.nodes), O = (A) => {
9025
- const M = pr(A, e.edges);
9026
- return el(e.connectionLookup, n.value, M), M;
9027
- }, de = (A, M, B = { replace: !1 }) => {
9034
+ const T = pr(A, e.edges);
9035
+ return el(e.connectionLookup, n.value, T), T;
9036
+ }, de = (A, T, B = { replace: !1 }) => {
9028
9037
  const re = u(A);
9029
9038
  if (!re)
9030
9039
  return;
9031
- const te = typeof M == "function" ? M(re) : M;
9040
+ const te = typeof T == "function" ? T(re) : T;
9032
9041
  B.replace ? e.nodes.splice(e.nodes.indexOf(re), 1, te) : Object.assign(re, te);
9033
- }, fe = (A, M, B = { replace: !1 }) => {
9042
+ }, fe = (A, T, B = { replace: !1 }) => {
9034
9043
  const re = u(A);
9035
9044
  if (!re)
9036
9045
  return;
9037
- const te = typeof M == "function" ? M(re) : M;
9046
+ const te = typeof T == "function" ? T(re) : T;
9038
9047
  re.data = B.replace ? te : { ...re.data, ...te };
9039
- }, we = (A, M, B = !1) => {
9040
- B ? e.connectionClickStartHandle = A : e.connectionStartHandle = A, e.connectionEndHandle = null, e.connectionStatus = null, M && (e.connectionPosition = M);
9041
- }, ke = (A, M = null, B = null) => {
9042
- e.connectionStartHandle && (e.connectionPosition = A, e.connectionEndHandle = M, e.connectionStatus = B);
9043
- }, ce = (A, M) => {
9044
- e.connectionPosition = { x: Number.NaN, y: Number.NaN }, e.connectionEndHandle = null, e.connectionStatus = null, M ? e.connectionClickStartHandle = null : e.connectionStartHandle = null;
9048
+ }, we = (A, T, B = !1) => {
9049
+ B ? e.connectionClickStartHandle = A : e.connectionStartHandle = A, e.connectionEndHandle = null, e.connectionStatus = null, T && (e.connectionPosition = T);
9050
+ }, ke = (A, T = null, B = null) => {
9051
+ e.connectionStartHandle && (e.connectionPosition = A, e.connectionEndHandle = T, e.connectionStatus = B);
9052
+ }, ce = (A, T) => {
9053
+ e.connectionPosition = { x: Number.NaN, y: Number.NaN }, e.connectionEndHandle = null, e.connectionStatus = null, T ? e.connectionClickStartHandle = null : e.connectionStartHandle = null;
9045
9054
  }, _e = (A) => {
9046
- const M = cg(A), B = M ? null : Uo(A) ? A : u(A.id);
9047
- return !M && !B ? [null, null, M] : [M ? A : sa(B), B, M];
9048
- }, Ie = (A, M = !0, B = e.nodes) => {
9055
+ const T = cg(A), B = T ? null : Uo(A) ? A : u(A.id);
9056
+ return !T && !B ? [null, null, T] : [T ? A : sa(B), B, T];
9057
+ }, Ie = (A, T = !0, B = e.nodes) => {
9049
9058
  const [re, te, I] = _e(A);
9050
9059
  if (!re)
9051
9060
  return [];
@@ -9054,26 +9063,26 @@ function Qg(e, t, n) {
9054
9063
  if (!I && (H.id === te.id || !H.computedPosition))
9055
9064
  continue;
9056
9065
  const ie = sa(H), me = ra(ie, re);
9057
- (M && me > 0 || me >= ie.width * ie.height || me >= Number(re.width) * Number(re.height)) && N.push(H);
9066
+ (T && me > 0 || me >= ie.width * ie.height || me >= Number(re.width) * Number(re.height)) && N.push(H);
9058
9067
  }
9059
9068
  return N;
9060
- }, Te = (A, M, B = !0) => {
9069
+ }, Me = (A, T, B = !0) => {
9061
9070
  const [re] = _e(A);
9062
9071
  if (!re)
9063
9072
  return !1;
9064
- const te = ra(re, M);
9073
+ const te = ra(re, T);
9065
9074
  return B && te > 0 || te >= Number(re.width) * Number(re.height);
9066
9075
  }, Le = (A) => {
9067
- const { viewport: M, dimensions: B, d3Zoom: re, d3Selection: te, translateExtent: I } = e;
9076
+ const { viewport: T, dimensions: B, d3Zoom: re, d3Selection: te, translateExtent: I } = e;
9068
9077
  if (!re || !te || !A.x && !A.y)
9069
9078
  return !1;
9070
- const N = po.translate(M.x + A.x, M.y + A.y).scale(M.zoom), H = [
9079
+ const N = po.translate(T.x + A.x, T.y + A.y).scale(T.zoom), H = [
9071
9080
  [0, 0],
9072
9081
  [B.width, B.height]
9073
9082
  ], ie = re.constrain()(N, H, I), me = e.viewport.x !== ie.x || e.viewport.y !== ie.y || e.viewport.zoom !== ie.k;
9074
9083
  return re.transform(te, ie), me;
9075
9084
  }, Pe = (A) => {
9076
- const M = A instanceof Function ? A(e) : A, B = [
9085
+ const T = A instanceof Function ? A(e) : A, B = [
9077
9086
  "d3Zoom",
9078
9087
  "d3Selection",
9079
9088
  "d3ZoomHandler",
@@ -9082,14 +9091,14 @@ function Qg(e, t, n) {
9082
9091
  "dimensions",
9083
9092
  "hooks"
9084
9093
  ];
9085
- ct(M.defaultEdgeOptions) && (e.defaultEdgeOptions = M.defaultEdgeOptions);
9086
- const re = M.modelValue || M.nodes || M.edges ? [] : void 0;
9087
- re && (M.modelValue && re.push(...M.modelValue), M.nodes && re.push(...M.nodes), M.edges && re.push(...M.edges), L(re));
9094
+ ct(T.defaultEdgeOptions) && (e.defaultEdgeOptions = T.defaultEdgeOptions);
9095
+ const re = T.modelValue || T.nodes || T.edges ? [] : void 0;
9096
+ re && (T.modelValue && re.push(...T.modelValue), T.nodes && re.push(...T.nodes), T.edges && re.push(...T.edges), L(re));
9088
9097
  const te = () => {
9089
- ct(M.maxZoom) && Q(M.maxZoom), ct(M.minZoom) && C(M.minZoom), ct(M.translateExtent) && F(M.translateExtent);
9098
+ ct(T.maxZoom) && Q(T.maxZoom), ct(T.minZoom) && C(T.minZoom), ct(T.translateExtent) && F(T.translateExtent);
9090
9099
  };
9091
- for (const I of Object.keys(M)) {
9092
- const N = I, H = M[N];
9100
+ for (const I of Object.keys(T)) {
9101
+ const N = I, H = T[N];
9093
9102
  ![...Jg, ...B].includes(N) && ct(H) && (e[N] = H);
9094
9103
  }
9095
9104
  kl(() => e.d3Zoom).not.toBeNull().then(te), e.initialized || (e.initialized = !0);
@@ -9133,23 +9142,23 @@ function Qg(e, t, n) {
9133
9142
  getOutgoers: l,
9134
9143
  getConnectedEdges: s,
9135
9144
  getHandleConnections: r,
9136
- isNodeIntersecting: Te,
9145
+ isNodeIntersecting: Me,
9137
9146
  panBy: Le,
9138
9147
  fitView: (A) => o.value.fitView(A),
9139
9148
  zoomIn: (A) => o.value.zoomIn(A),
9140
9149
  zoomOut: (A) => o.value.zoomOut(A),
9141
- zoomTo: (A, M) => o.value.zoomTo(A, M),
9142
- setViewport: (A, M) => o.value.setViewport(A, M),
9143
- setTransform: (A, M) => o.value.setTransform(A, M),
9150
+ zoomTo: (A, T) => o.value.zoomTo(A, T),
9151
+ setViewport: (A, T) => o.value.setViewport(A, T),
9152
+ setTransform: (A, T) => o.value.setTransform(A, T),
9144
9153
  getViewport: () => o.value.getViewport(),
9145
9154
  getTransform: () => o.value.getTransform(),
9146
- setCenter: (A, M, B) => o.value.setCenter(A, M, B),
9147
- fitBounds: (A, M) => o.value.fitBounds(A, M),
9155
+ setCenter: (A, T, B) => o.value.setCenter(A, T, B),
9156
+ fitBounds: (A, T) => o.value.fitBounds(A, T),
9148
9157
  project: (A) => o.value.project(A),
9149
9158
  screenToFlowCoordinate: (A) => o.value.screenToFlowCoordinate(A),
9150
9159
  flowToScreenCoordinate: (A) => o.value.flowToScreenCoordinate(A),
9151
9160
  toObject: () => {
9152
- const A = [], M = [];
9161
+ const A = [], T = [];
9153
9162
  for (const B of e.nodes) {
9154
9163
  const {
9155
9164
  computedPosition: re,
@@ -9166,19 +9175,19 @@ function Qg(e, t, n) {
9166
9175
  }
9167
9176
  for (const B of e.edges) {
9168
9177
  const { selected: re, sourceNode: te, targetNode: I, events: N, ...H } = B;
9169
- M.push(H);
9178
+ T.push(H);
9170
9179
  }
9171
9180
  return JSON.parse(
9172
9181
  JSON.stringify({
9173
9182
  nodes: A,
9174
- edges: M,
9183
+ edges: T,
9175
9184
  position: [e.viewport.x, e.viewport.y],
9176
9185
  zoom: e.viewport.zoom,
9177
9186
  viewport: e.viewport
9178
9187
  })
9179
9188
  );
9180
9189
  },
9181
- fromObject: (A) => new Promise((M) => {
9190
+ fromObject: (A) => new Promise((T) => {
9182
9191
  const { nodes: B, edges: re, position: te, zoom: I, viewport: N } = A;
9183
9192
  B && le(B), re && ve(re);
9184
9193
  const [H, ie] = N != null && N.x && (N != null && N.y) ? [N.x, N.y] : te ?? [null, null];
@@ -9190,21 +9199,21 @@ function Qg(e, t, n) {
9190
9199
  y: ie,
9191
9200
  zoom: me
9192
9201
  }).then(() => {
9193
- M(!0);
9202
+ T(!0);
9194
9203
  });
9195
9204
  });
9196
9205
  } else
9197
- M(!0);
9206
+ T(!0);
9198
9207
  }),
9199
9208
  updateNodeInternals: i,
9200
9209
  viewportHelper: o,
9201
9210
  $reset: () => {
9202
9211
  const A = yc();
9203
9212
  if (e.edges = [], e.nodes = [], e.d3Zoom && e.d3Selection) {
9204
- const M = po.translate(A.defaultViewport.x ?? 0, A.defaultViewport.y ?? 0).scale(Wn(A.defaultViewport.zoom ?? 1, A.minZoom, A.maxZoom)), B = e.viewportRef.getBoundingClientRect(), re = [
9213
+ const T = po.translate(A.defaultViewport.x ?? 0, A.defaultViewport.y ?? 0).scale(Wn(A.defaultViewport.zoom ?? 1, A.minZoom, A.maxZoom)), B = e.viewportRef.getBoundingClientRect(), re = [
9205
9214
  [0, 0],
9206
9215
  [B.width, B.height]
9207
- ], te = e.d3Zoom.constrain()(M, re, A.translateExtent);
9216
+ ], te = e.d3Zoom.constrain()(T, re, A.translateExtent);
9208
9217
  e.d3Zoom.transform(e.d3Selection, te);
9209
9218
  }
9210
9219
  Pe(A);
@@ -9355,7 +9364,7 @@ const nb = Sa, Aa = function({
9355
9364
  Aa.props = ["targetPosition", "label", "isValidTargetPos", "connectable", "data"];
9356
9365
  Aa.inheritAttrs = !1;
9357
9366
  Aa.compatConfig = { MODE: 3 };
9358
- const ob = Aa, Ma = function({
9367
+ const ob = Aa, Ta = function({
9359
9368
  sourcePosition: e = Oe.Bottom,
9360
9369
  label: t,
9361
9370
  connectable: n = !0,
@@ -9368,10 +9377,10 @@ const ob = Aa, Ma = function({
9368
9377
  nt(Kn, { type: "source", position: e, connectable: n, isValidConnection: o })
9369
9378
  ];
9370
9379
  };
9371
- Ma.props = ["sourcePosition", "label", "isValidSourcePos", "connectable", "data"];
9372
- Ma.inheritAttrs = !1;
9373
- Ma.compatConfig = { MODE: 3 };
9374
- const ib = Ma, ab = ["transform"], lb = ["width", "height", "x", "y", "rx", "ry"], sb = ["y"], rb = {
9380
+ Ta.props = ["sourcePosition", "label", "isValidSourcePos", "connectable", "data"];
9381
+ Ta.inheritAttrs = !1;
9382
+ Ta.compatConfig = { MODE: 3 };
9383
+ const ib = Ta, ab = ["transform"], lb = ["width", "height", "x", "y", "rx", "ry"], sb = ["y"], rb = {
9375
9384
  name: "EdgeText",
9376
9385
  compatConfig: { MODE: 3 }
9377
9386
  }, ub = /* @__PURE__ */ ze({
@@ -9430,7 +9439,7 @@ const ib = Ma, ab = ["transform"], lb = ["width", "height", "x", "y", "rx", "ry"
9430
9439
  name: "BaseEdge",
9431
9440
  inheritAttrs: !1,
9432
9441
  compatConfig: { MODE: 3 }
9433
- }, Ta = /* @__PURE__ */ ze({
9442
+ }, Ma = /* @__PURE__ */ ze({
9434
9443
  ...fb,
9435
9444
  props: {
9436
9445
  id: {},
@@ -9761,7 +9770,7 @@ const yb = ze({
9761
9770
  setup(e, { attrs: t }) {
9762
9771
  return () => {
9763
9772
  const [n, o, i] = vb(e);
9764
- return nt(Ta, {
9773
+ return nt(Ma, {
9765
9774
  path: n,
9766
9775
  labelX: o,
9767
9776
  labelY: i,
@@ -9799,7 +9808,7 @@ const yb = ze({
9799
9808
  sourcePosition: e.sourcePosition ?? Oe.Bottom,
9800
9809
  targetPosition: e.targetPosition ?? Oe.Top
9801
9810
  });
9802
- return nt(Ta, {
9811
+ return nt(Ma, {
9803
9812
  path: n,
9804
9813
  labelX: o,
9805
9814
  labelY: i,
@@ -9858,7 +9867,7 @@ const yb = ze({
9858
9867
  sourcePosition: e.sourcePosition ?? Oe.Bottom,
9859
9868
  targetPosition: e.targetPosition ?? Oe.Top
9860
9869
  });
9861
- return nt(Ta, {
9870
+ return nt(Ma, {
9862
9871
  path: n,
9863
9872
  labelX: o,
9864
9873
  labelY: i,
@@ -9894,7 +9903,7 @@ const yb = ze({
9894
9903
  sourcePosition: e.sourcePosition ?? Oe.Bottom,
9895
9904
  targetPosition: e.targetPosition ?? Oe.Top
9896
9905
  });
9897
- return nt(Ta, {
9906
+ return nt(Ma, {
9898
9907
  path: n,
9899
9908
  labelX: o,
9900
9909
  labelY: i,
@@ -9997,14 +10006,14 @@ function Cb(e, t, n) {
9997
10006
  areNodesInitialized: m
9998
10007
  };
9999
10008
  }
10000
- class Tn {
10009
+ class Mn {
10001
10010
  constructor() {
10002
10011
  this.currentId = 0, this.flows = /* @__PURE__ */ new Map();
10003
10012
  }
10004
10013
  static getInstance() {
10005
10014
  var t;
10006
- const n = (t = wo()) == null ? void 0 : t.appContext.app, o = (n == null ? void 0 : n.config.globalProperties.$vueFlowStorage) ?? Tn.instance;
10007
- return Tn.instance = o ?? new Tn(), n && (n.config.globalProperties.$vueFlowStorage = Tn.instance), Tn.instance;
10015
+ const n = (t = wo()) == null ? void 0 : t.appContext.app, o = (n == null ? void 0 : n.config.globalProperties.$vueFlowStorage) ?? Mn.instance;
10016
+ return Mn.instance = o ?? new Mn(), n && (n.config.globalProperties.$vueFlowStorage = Mn.instance), Mn.instance;
10008
10017
  }
10009
10018
  set(t, n) {
10010
10019
  return this.flows.set(t, n);
@@ -10057,7 +10066,7 @@ class Tn {
10057
10066
  }
10058
10067
  }
10059
10068
  function Je(e) {
10060
- const t = Tn.getInstance(), n = du(), o = typeof e == "object", i = o ? e : { id: e }, a = i.id, l = a ?? (n == null ? void 0 : n.vueFlowId);
10069
+ const t = Mn.getInstance(), n = du(), o = typeof e == "object", i = o ? e : { id: e }, a = i.id, l = a ?? (n == null ? void 0 : n.vueFlowId);
10061
10070
  let s;
10062
10071
  if (n) {
10063
10072
  const r = dt(Nr, null);
@@ -10088,7 +10097,7 @@ function Je(e) {
10088
10097
  });
10089
10098
  } else
10090
10099
  o && s.setState(i);
10091
- if (n && (Mt(Nr, s), n.vueFlowId = s.id), o) {
10100
+ if (n && (Tt(Nr, s), n.vueFlowId = s.id), o) {
10092
10101
  const r = wo();
10093
10102
  (r == null ? void 0 : r.type.name) !== "VueFlow" && s.emits.error(new mt(ft.USEVUEFLOW_OPTIONS));
10094
10103
  }
@@ -10128,11 +10137,11 @@ const Sb = {
10128
10137
  })
10129
10138
  }, null, 4));
10130
10139
  }
10131
- }), Mb = ["tabIndex"], Tb = {
10140
+ }), Tb = ["tabIndex"], Mb = {
10132
10141
  name: "NodesSelection",
10133
10142
  compatConfig: { MODE: 3 }
10134
10143
  }, Ob = /* @__PURE__ */ ze({
10135
- ...Tb,
10144
+ ...Mb,
10136
10145
  setup(e) {
10137
10146
  const { emits: t, viewport: n, getSelectedNodes: o, noPanClassName: i, disableKeyboardA11y: a, userSelectionActive: l } = Je(), s = vc(), r = $e(null), u = mc({
10138
10147
  el: r,
@@ -10181,7 +10190,7 @@ const Sb = {
10181
10190
  tabIndex: $(a) ? void 0 : -1,
10182
10191
  onContextmenu: p,
10183
10192
  onKeydown: f
10184
- }, null, 46, Mb)
10193
+ }, null, 46, Tb)
10185
10194
  ], 6)) : Ee("", !0);
10186
10195
  }
10187
10196
  });
@@ -10257,10 +10266,10 @@ const Lb = {
10257
10266
  i.paneScroll(ce);
10258
10267
  }
10259
10268
  function fe(ce) {
10260
- var _e, Ie, Te;
10269
+ var _e, Ie, Me;
10261
10270
  if (ve.value = ((_e = t.value) == null ? void 0 : _e.getBoundingClientRect()) ?? null, !r.value || !e.isSelecting || ce.button !== 0 || ce.target !== D.value || !ve.value)
10262
10271
  return;
10263
- (Te = (Ie = ce.target) == null ? void 0 : Ie.setPointerCapture) == null || Te.call(Ie, ce.pointerId);
10272
+ (Me = (Ie = ce.target) == null ? void 0 : Ie.setPointerCapture) == null || Me.call(Ie, ce.pointerId);
10264
10273
  const { x: Le, y: Pe } = Db(ce, ve.value);
10265
10274
  R = !0, E = !1, l(), s.value = {
10266
10275
  width: 0,
@@ -10276,22 +10285,22 @@ const Lb = {
10276
10285
  if (!ve.value || !s.value)
10277
10286
  return;
10278
10287
  E = !0;
10279
- const { x: Ie, y: Te } = Wt(ce, ve.value), { startX: Le = 0, startY: Pe = 0 } = s.value, j = {
10288
+ const { x: Ie, y: Me } = Wt(ce, ve.value), { startX: Le = 0, startY: Pe = 0 } = s.value, j = {
10280
10289
  startX: Le,
10281
10290
  startY: Pe,
10282
10291
  x: Ie < Le ? Ie : Le,
10283
- y: Te < Pe ? Te : Pe,
10292
+ y: Me < Pe ? Me : Pe,
10284
10293
  width: Math.abs(Ie - Le),
10285
- height: Math.abs(Te - Pe)
10286
- }, Y = ue.value, T = le.value;
10294
+ height: Math.abs(Me - Pe)
10295
+ }, Y = ue.value, M = le.value;
10287
10296
  ue.value = new Set(
10288
10297
  ic(n.value, j, o.value, m.value === us.Partial, !0).map(
10289
- (M) => M.id
10298
+ (T) => T.id
10290
10299
  )
10291
10300
  ), le.value = /* @__PURE__ */ new Set();
10292
10301
  const A = ((_e = Q.value) == null ? void 0 : _e.selectable) ?? !0;
10293
- for (const M of ue.value) {
10294
- const B = C.value.get(M);
10302
+ for (const T of ue.value) {
10303
+ const B = C.value.get(T);
10295
10304
  if (B)
10296
10305
  for (const { edgeId: re } of B.values()) {
10297
10306
  const te = k.value.get(re);
@@ -10299,12 +10308,12 @@ const Lb = {
10299
10308
  }
10300
10309
  }
10301
10310
  if (!xr(Y, ue.value)) {
10302
- const M = wn(h.value, ue.value, !0);
10303
- i.nodesChange(M);
10311
+ const T = wn(h.value, ue.value, !0);
10312
+ i.nodesChange(T);
10304
10313
  }
10305
- if (!xr(T, le.value)) {
10306
- const M = wn(k.value, le.value);
10307
- i.edgesChange(M);
10314
+ if (!xr(M, le.value)) {
10315
+ const T = wn(k.value, le.value);
10316
+ i.edgesChange(T);
10308
10317
  }
10309
10318
  s.value = j, a.value = !0, u.value = !1;
10310
10319
  }
@@ -10399,22 +10408,22 @@ const Lb = {
10399
10408
  pi("Viewport element is missing");
10400
10409
  return;
10401
10410
  }
10402
- const Pe = le.value, j = Pe.getBoundingClientRect(), Y = ig().clickDistance(ve.value).scaleExtent([t.value, n.value]).translateExtent(i.value), T = Ot(Pe).call(Y), A = T.on("wheel.zoom"), M = po.translate(o.value.x ?? 0, o.value.y ?? 0).scale(Wn(o.value.zoom ?? 1, t.value, n.value)), B = [
10411
+ const Pe = le.value, j = Pe.getBoundingClientRect(), Y = ig().clickDistance(ve.value).scaleExtent([t.value, n.value]).translateExtent(i.value), M = Ot(Pe).call(Y), A = M.on("wheel.zoom"), T = po.translate(o.value.x ?? 0, o.value.y ?? 0).scale(Wn(o.value.zoom ?? 1, t.value, n.value)), B = [
10403
10412
  [0, 0],
10404
10413
  [j.width, j.height]
10405
- ], re = Y.constrain()(M, B, i.value);
10406
- Y.transform(T, re), Y.wheelDelta(Ll), F.value = Y, J.value = T, D.value = A, ue.value = { x: re.x, y: re.y, zoom: re.k }, Y.on("start", (te) => {
10414
+ ], re = Y.constrain()(T, B, i.value);
10415
+ Y.transform(M, re), Y.wheelDelta(Ll), F.value = Y, J.value = M, D.value = A, ue.value = { x: re.x, y: re.y, zoom: re.k }, Y.on("start", (te) => {
10407
10416
  var I;
10408
10417
  if (!te.sourceEvent)
10409
10418
  return null;
10410
10419
  x = te.sourceEvent.button, L.value = !0;
10411
- const N = Te(te.transform);
10420
+ const N = Me(te.transform);
10412
10421
  ((I = te.sourceEvent) == null ? void 0 : I.type) === "mousedown" && (Q.value = !0), P = N, k.viewportChangeStart(N), k.moveStart({ event: te, flowTransform: N });
10413
10422
  }), Y.on("end", (te) => {
10414
10423
  if (!te.sourceEvent)
10415
10424
  return null;
10416
10425
  if (L.value = !1, Q.value = !1, _e(de.value, x ?? 0) && !R && k.paneContextMenu(te.sourceEvent), R = !1, Ie(P, te.transform)) {
10417
- const I = Te(te.transform);
10426
+ const I = Me(te.transform);
10418
10427
  P = I, k.viewportChangeEnd(I), k.moveEnd({ event: te, flowTransform: I });
10419
10428
  }
10420
10429
  }), Y.filter((te) => {
@@ -10435,7 +10444,7 @@ const Lb = {
10435
10444
  () => {
10436
10445
  C.value && !L.value ? Y.on("zoom", null) : C.value || Y.on("zoom", (te) => {
10437
10446
  ue.value = { x: te.transform.x, y: te.transform.y, zoom: te.transform.k };
10438
- const I = Te(te.transform);
10447
+ const I = Me(te.transform);
10439
10448
  R = _e(de.value, x ?? 0), k.viewportChange(I), k.move({ event: te, flowTransform: I });
10440
10449
  });
10441
10450
  },
@@ -10443,7 +10452,7 @@ const Lb = {
10443
10452
  ), Ge(
10444
10453
  [C, fe, u, O, f, v, y],
10445
10454
  () => {
10446
- fe.value && !O.value && !C.value ? T.on(
10455
+ fe.value && !O.value && !C.value ? M.on(
10447
10456
  "wheel.zoom",
10448
10457
  (te) => {
10449
10458
  if (Le(te, y.value))
@@ -10452,26 +10461,26 @@ const Lb = {
10452
10461
  if (!(!v.value || fe.value || I || N))
10453
10462
  return !1;
10454
10463
  te.preventDefault(), te.stopImmediatePropagation();
10455
- const ie = T.property("__zoom").k || 1, me = ii();
10464
+ const ie = M.property("__zoom").k || 1, me = ii();
10456
10465
  if (!X.value && te.ctrlKey && f.value && me) {
10457
10466
  const b = Gt(te), _ = Ll(te), G = ie * 2 ** _;
10458
- Y.scaleTo(T, G, b, te);
10467
+ Y.scaleTo(M, G, b, te);
10459
10468
  return;
10460
10469
  }
10461
10470
  const ye = te.deltaMode === 1 ? 20 : 1;
10462
10471
  let be = u.value === Wo.Vertical ? 0 : te.deltaX * ye, xe = u.value === Wo.Horizontal ? 0 : te.deltaY * ye;
10463
10472
  !me && te.shiftKey && u.value !== Wo.Vertical && !be && xe && (be = xe, xe = 0), Y.translateBy(
10464
- T,
10473
+ M,
10465
10474
  -(be / ie) * d.value,
10466
10475
  -(xe / ie) * d.value
10467
10476
  );
10468
- const V = Te(T.property("__zoom"));
10477
+ const V = Me(M.property("__zoom"));
10469
10478
  E && clearTimeout(E), se.value ? (k.move({ event: te, flowTransform: V }), k.viewportChange(V), E = setTimeout(() => {
10470
10479
  k.moveEnd({ event: te, flowTransform: V }), k.viewportChangeEnd(V), se.value = !1;
10471
10480
  }, 150)) : (se.value = !0, k.moveStart({ event: te, flowTransform: V }), k.viewportChangeStart(V));
10472
10481
  },
10473
10482
  { passive: !1 }
10474
- ) : typeof A < "u" && T.on(
10483
+ ) : typeof A < "u" && M.on(
10475
10484
  "wheel.zoom",
10476
10485
  function(te, I) {
10477
10486
  const N = !v.value && te.type === "wheel" && !te.ctrlKey, H = O.value || m.value, ie = f.value && te.ctrlKey;
@@ -10491,7 +10500,7 @@ const Lb = {
10491
10500
  function Ie(Pe, j) {
10492
10501
  return Pe.x !== j.x && !Number.isNaN(j.x) || Pe.y !== j.y && !Number.isNaN(j.y) || Pe.zoom !== j.k && !Number.isNaN(j.k);
10493
10502
  }
10494
- function Te(Pe) {
10503
+ function Me(Pe) {
10495
10504
  return {
10496
10505
  x: Pe.x,
10497
10506
  y: Pe.y,
@@ -10588,7 +10597,7 @@ const ms = function({
10588
10597
  };
10589
10598
  ms.props = ["radius", "centerX", "centerY", "position", "type"];
10590
10599
  ms.compatConfig = { MODE: 3 };
10591
- const Mr = ms, jb = ze({
10600
+ const Tr = ms, jb = ze({
10592
10601
  name: "Edge",
10593
10602
  compatConfig: { MODE: 3 },
10594
10603
  props: ["id"],
@@ -10615,15 +10624,15 @@ const Mr = ms, jb = ze({
10615
10624
  } = Je(), h = U(() => d(e.id)), { emit: C, on: Q } = Ug(h.value, a), F = dt(Ra), J = wo(), D = $e(!1), ue = $e(!1), le = $e(""), ve = $e(null), L = $e("source"), se = $e(null), E = et(
10616
10625
  () => typeof h.value.selectable > "u" ? v.value : h.value.selectable
10617
10626
  ), R = et(() => typeof h.value.updatable > "u" ? y.value : h.value.updatable), x = et(() => typeof h.value.focusable > "u" ? g.value : h.value.focusable);
10618
- Mt(Pg, e.id), Mt(Vg, se);
10627
+ Tt(Pg, e.id), Tt(Vg, se);
10619
10628
  const P = U(() => h.value.class instanceof Function ? h.value.class(h.value) : h.value.class), X = U(() => h.value.style instanceof Function ? h.value.style(h.value) : h.value.style), ee = U(() => {
10620
- const M = h.value.type || "default", B = F == null ? void 0 : F[`edge-${M}`];
10629
+ const T = h.value.type || "default", B = F == null ? void 0 : F[`edge-${T}`];
10621
10630
  if (B)
10622
10631
  return B;
10623
- let re = h.value.template ?? r.value[M];
10632
+ let re = h.value.template ?? r.value[T];
10624
10633
  if (typeof re == "string" && J) {
10625
10634
  const te = Object.keys(J.appContext.components);
10626
- te && te.includes(M) && (re = mu(M, !1));
10635
+ te && te.includes(T) && (re = mu(T, !1));
10627
10636
  }
10628
10637
  return re && typeof re != "string" ? re : (a.error(new mt(ft.EDGE_TYPE_MISSING, re)), !1);
10629
10638
  }), { handlePointerDown: O } = pc({
@@ -10636,21 +10645,21 @@ const Mr = ms, jb = ze({
10636
10645
  onEdgeUpdateEnd: ke
10637
10646
  });
10638
10647
  return () => {
10639
- const M = c(h.value.source), B = c(h.value.target), re = "pathOptions" in h.value ? h.value.pathOptions : {};
10640
- if (!M && !B)
10648
+ const T = c(h.value.source), B = c(h.value.target), re = "pathOptions" in h.value ? h.value.pathOptions : {};
10649
+ if (!T && !B)
10641
10650
  return a.error(new mt(ft.EDGE_SOURCE_TARGET_MISSING, h.value.id, h.value.source, h.value.target)), null;
10642
- if (!M)
10651
+ if (!T)
10643
10652
  return a.error(new mt(ft.EDGE_SOURCE_MISSING, h.value.id, h.value.source)), null;
10644
10653
  if (!B)
10645
10654
  return a.error(new mt(ft.EDGE_TARGET_MISSING, h.value.id, h.value.target)), null;
10646
- if (!h.value || h.value.hidden || M.hidden || B.hidden)
10655
+ if (!h.value || h.value.hidden || T.hidden || B.hidden)
10647
10656
  return null;
10648
10657
  let te;
10649
- o.value === un.Strict ? te = M.handleBounds.source : te = [...M.handleBounds.source || [], ...M.handleBounds.target || []];
10658
+ o.value === un.Strict ? te = T.handleBounds.source : te = [...T.handleBounds.source || [], ...T.handleBounds.target || []];
10650
10659
  const I = _r(te, h.value.sourceHandle);
10651
10660
  let N;
10652
10661
  o.value === un.Strict ? N = B.handleBounds.target : N = [...B.handleBounds.target || [], ...B.handleBounds.source || []];
10653
- const H = _r(N, h.value.targetHandle), ie = (I == null ? void 0 : I.position) || Oe.Bottom, me = (H == null ? void 0 : H.position) || Oe.Top, { x: ye, y: be } = ho(M, I, ie), { x: xe, y: V } = ho(B, H, me);
10662
+ const H = _r(N, h.value.targetHandle), ie = (I == null ? void 0 : I.position) || Oe.Bottom, me = (H == null ? void 0 : H.position) || Oe.Top, { x: ye, y: be } = ho(T, I, ie), { x: xe, y: V } = ho(B, H, me);
10654
10663
  return h.value.sourceX = ye, h.value.sourceY = be, h.value.targetX = xe, h.value.targetY = V, nt(
10655
10664
  "g",
10656
10665
  {
@@ -10677,7 +10686,7 @@ const Mr = ms, jb = ze({
10677
10686
  ...h.value.domAttributes,
10678
10687
  onClick: _e,
10679
10688
  onContextmenu: Ie,
10680
- onDblclick: Te,
10689
+ onDblclick: Me,
10681
10690
  onMouseenter: Le,
10682
10691
  onMousemove: Pe,
10683
10692
  onMouseleave: j,
@@ -10686,7 +10695,7 @@ const Mr = ms, jb = ze({
10686
10695
  [
10687
10696
  ue.value ? null : nt(ee.value === !1 ? r.value.default : ee.value, {
10688
10697
  id: e.id,
10689
- sourceNode: M,
10698
+ sourceNode: T,
10690
10699
  targetNode: B,
10691
10700
  source: h.value.source,
10692
10701
  target: h.value.target,
@@ -10725,7 +10734,7 @@ const Mr = ms, jb = ze({
10725
10734
  onMouseenter: de,
10726
10735
  onMouseout: fe
10727
10736
  },
10728
- nt(Mr, {
10737
+ nt(Tr, {
10729
10738
  position: ie,
10730
10739
  centerX: ye,
10731
10740
  centerY: be,
@@ -10739,11 +10748,11 @@ const Mr = ms, jb = ze({
10739
10748
  nt(
10740
10749
  "g",
10741
10750
  {
10742
- onMousedown: T,
10751
+ onMousedown: M,
10743
10752
  onMouseenter: de,
10744
10753
  onMouseout: fe
10745
10754
  },
10746
- nt(Mr, {
10755
+ nt(Tr, {
10747
10756
  position: me,
10748
10757
  centerX: xe,
10749
10758
  centerY: V,
@@ -10763,44 +10772,44 @@ const Mr = ms, jb = ze({
10763
10772
  function fe() {
10764
10773
  D.value = !1;
10765
10774
  }
10766
- function we(M, B) {
10767
- C.update({ event: M, edge: h.value, connection: B });
10775
+ function we(T, B) {
10776
+ C.update({ event: T, edge: h.value, connection: B });
10768
10777
  }
10769
- function ke(M) {
10770
- C.updateEnd({ event: M, edge: h.value }), ue.value = !1;
10778
+ function ke(T) {
10779
+ C.updateEnd({ event: T, edge: h.value }), ue.value = !1;
10771
10780
  }
10772
- function ce(M, B) {
10773
- M.button === 0 && (ue.value = !0, le.value = B ? h.value.target : h.value.source, ve.value = (B ? h.value.targetHandle : h.value.sourceHandle) ?? null, L.value = B ? "target" : "source", C.updateStart({ event: M, edge: h.value }), O(M));
10781
+ function ce(T, B) {
10782
+ T.button === 0 && (ue.value = !0, le.value = B ? h.value.target : h.value.source, ve.value = (B ? h.value.targetHandle : h.value.sourceHandle) ?? null, L.value = B ? "target" : "source", C.updateStart({ event: T, edge: h.value }), O(T));
10774
10783
  }
10775
- function _e(M) {
10784
+ function _e(T) {
10776
10785
  var B;
10777
- const re = { event: M, edge: h.value };
10786
+ const re = { event: T, edge: h.value };
10778
10787
  E.value && (l.value = !1, h.value.selected && f.value ? (u([h.value]), (B = se.value) == null || B.blur()) : n([h.value])), C.click(re);
10779
10788
  }
10780
- function Ie(M) {
10781
- C.contextMenu({ event: M, edge: h.value });
10789
+ function Ie(T) {
10790
+ C.contextMenu({ event: T, edge: h.value });
10782
10791
  }
10783
- function Te(M) {
10784
- C.doubleClick({ event: M, edge: h.value });
10792
+ function Me(T) {
10793
+ C.doubleClick({ event: T, edge: h.value });
10785
10794
  }
10786
- function Le(M) {
10787
- C.mouseEnter({ event: M, edge: h.value });
10795
+ function Le(T) {
10796
+ C.mouseEnter({ event: T, edge: h.value });
10788
10797
  }
10789
- function Pe(M) {
10790
- C.mouseMove({ event: M, edge: h.value });
10798
+ function Pe(T) {
10799
+ C.mouseMove({ event: T, edge: h.value });
10791
10800
  }
10792
- function j(M) {
10793
- C.mouseLeave({ event: M, edge: h.value });
10801
+ function j(T) {
10802
+ C.mouseLeave({ event: T, edge: h.value });
10794
10803
  }
10795
- function Y(M) {
10796
- ce(M, !0);
10804
+ function Y(T) {
10805
+ ce(T, !0);
10797
10806
  }
10798
- function T(M) {
10799
- ce(M, !1);
10807
+ function M(T) {
10808
+ ce(T, !1);
10800
10809
  }
10801
- function A(M) {
10810
+ function A(T) {
10802
10811
  var B;
10803
- !m.value && Zd.includes(M.key) && E.value && (M.key === "Escape" ? ((B = se.value) == null || B.blur(), u([d(e.id)])) : n([d(e.id)]));
10812
+ !m.value && Zd.includes(T.key) && E.value && (T.key === "Escape" ? ((B = se.value) == null || B.blur(), u([d(e.id)])) : n([d(e.id)]));
10804
10813
  }
10805
10814
  }
10806
10815
  }), Zb = jb, Jb = ze({
@@ -11050,7 +11059,7 @@ const Mr = ms, jb = ze({
11050
11059
  nodesFocusable: F,
11051
11060
  hooks: J
11052
11061
  } = Je(), D = $e(null);
11053
- Mt(fc, D), Mt(cc, e.id);
11062
+ Tt(fc, D), Tt(cc, e.id);
11054
11063
  const ue = dt(Ra), le = wo(), ve = vc(), { node: L, parentNode: se } = hc(e.id), { emit: E, on: R } = Gg(L, l), x = et(() => typeof L.draggable > "u" ? h.value : L.draggable), P = et(() => typeof L.selectable > "u" ? C.value : L.selectable), X = et(() => typeof L.connectable > "u" ? Q.value : L.connectable), ee = et(() => typeof L.focusable > "u" ? F.value : L.focusable), O = U(
11055
11064
  () => P.value || x.value || J.value.nodeClick.hasListeners() || J.value.nodeDoubleClick.hasListeners() || J.value.nodeMouseEnter.hasListeners() || J.value.nodeMouseMove.hasListeners() || J.value.nodeMouseLeave.hasListeners()
11056
11065
  ), de = et(() => !!L.dimensions.width && !!L.dimensions.height), fe = U(() => {
@@ -11086,7 +11095,7 @@ const Mr = ms, jb = ze({
11086
11095
  return !B.width && re && (B.width = typeof re == "string" ? re : `${re}px`), !B.height && te && (B.height = typeof te == "string" ? te : `${te}px`), B;
11087
11096
  }), _e = et(() => Number(L.zIndex ?? ce.value.zIndex ?? 0));
11088
11097
  return d((B) => {
11089
- (B.includes(e.id) || !B.length) && Te();
11098
+ (B.includes(e.id) || !B.length) && Me();
11090
11099
  }), cn(() => {
11091
11100
  Ge(
11092
11101
  () => L.hidden,
@@ -11177,8 +11186,8 @@ const Mr = ms, jb = ze({
11177
11186
  onMouseleave: j,
11178
11187
  onContextmenu: Y,
11179
11188
  onClick: A,
11180
- onDblclick: T,
11181
- onKeydown: M
11189
+ onDblclick: M,
11190
+ onKeydown: T
11182
11191
  },
11183
11192
  [
11184
11193
  nt(fe.value === !1 ? c.value.default : fe.value, {
@@ -11201,7 +11210,7 @@ const Mr = ms, jb = ze({
11201
11210
  sourcePosition: L.sourcePosition,
11202
11211
  label: L.label,
11203
11212
  dragHandle: L.dragHandle,
11204
- onUpdateNodeInternals: Te
11213
+ onUpdateNodeInternals: Me
11205
11214
  })
11206
11215
  ]
11207
11216
  );
@@ -11215,7 +11224,7 @@ const Mr = ms, jb = ze({
11215
11224
  );
11216
11225
  (L.computedPosition.x !== re.x || L.computedPosition.y !== re.y) && (L.computedPosition = { ...L.computedPosition, ...re }), (L.position.x !== te.x || L.position.y !== te.y) && (L.position = te);
11217
11226
  }
11218
- function Te() {
11227
+ function Me() {
11219
11228
  D.value && u([{ id: e.id, nodeElement: D.value, forceUpdate: !0 }]);
11220
11229
  }
11221
11230
  function Le(B) {
@@ -11230,7 +11239,7 @@ const Mr = ms, jb = ze({
11230
11239
  function Y(B) {
11231
11240
  return E.contextMenu({ event: B, node: L });
11232
11241
  }
11233
- function T(B) {
11242
+ function M(B) {
11234
11243
  return E.doubleClick({ event: B, node: L });
11235
11244
  }
11236
11245
  function A(B) {
@@ -11244,7 +11253,7 @@ const Mr = ms, jb = ze({
11244
11253
  D.value
11245
11254
  ), E.click({ event: B, node: L });
11246
11255
  }
11247
- function M(B) {
11256
+ function T(B) {
11248
11257
  if (!(Dl(B) || m.value))
11249
11258
  if (Zd.includes(B.key) && P.value) {
11250
11259
  const re = B.key === "Escape";
@@ -11398,7 +11407,7 @@ const h0 = /* @__PURE__ */ w("div", { class: "vue-flow__edge-labels" }, null, -1
11398
11407
  emits: ["nodesChange", "edgesChange", "nodesInitialized", "paneReady", "init", "updateNodeInternals", "error", "connect", "connectStart", "connectEnd", "clickConnectStart", "clickConnectEnd", "moveStart", "move", "moveEnd", "selectionDragStart", "selectionDrag", "selectionDragStop", "selectionContextMenu", "selectionStart", "selectionEnd", "viewportChangeStart", "viewportChange", "viewportChangeEnd", "paneScroll", "paneClick", "paneContextMenu", "paneMouseEnter", "paneMouseMove", "paneMouseLeave", "edgeUpdate", "edgeContextMenu", "edgeMouseEnter", "edgeMouseMove", "edgeMouseLeave", "edgeDoubleClick", "edgeClick", "edgeUpdateStart", "edgeUpdateEnd", "nodeContextMenu", "nodeMouseEnter", "nodeMouseMove", "nodeMouseLeave", "nodeDoubleClick", "nodeClick", "nodeDragStart", "nodeDrag", "nodeDragStop", "miniMapNodeClick", "miniMapNodeDoubleClick", "miniMapNodeMouseEnter", "miniMapNodeMouseMove", "miniMapNodeMouseLeave", "update:modelValue", "update:nodes", "update:edges"],
11399
11408
  setup(e, { expose: t, emit: n }) {
11400
11409
  const o = e, i = fu(), a = Wa(o, "modelValue", n), l = Wa(o, "nodes", n), s = Wa(o, "edges", n), r = Je(o), u = qg({ modelValue: a, nodes: l, edges: s }, o, r);
11401
- return jg(n, r.hooks), Kb(), p0(), Mt(Ra, i), mf(u), t(r), (d, c) => (S(), z("div", {
11410
+ return jg(n, r.hooks), Kb(), p0(), Tt(Ra, i), mf(u), t(r), (d, c) => (S(), z("div", {
11402
11411
  ref: $(r).vueFlowRef,
11403
11412
  class: "vue-flow"
11404
11413
  }, [
@@ -11525,7 +11534,7 @@ const I0 = {
11525
11534
  violet: "color-mix(in srgb, var(--em-swatch-violet-bar) 22%, transparent)",
11526
11535
  pink: "color-mix(in srgb, var(--em-swatch-pink-bar) 22%, transparent)"
11527
11536
  };
11528
- function Tr(e, t = !1) {
11537
+ function Mr(e, t = !1) {
11529
11538
  return e ? t ? k0[e] : I0[e] : null;
11530
11539
  }
11531
11540
  function vo(e) {
@@ -11668,7 +11677,7 @@ const x0 = ["width", "height", "innerHTML"], N0 = /* @__PURE__ */ ze({
11668
11677
  }), Xn = /* @__PURE__ */ ot(R0, [["__scopeId", "data-v-17f46a25"]]), S0 = { class: "em-mlang" }, A0 = {
11669
11678
  class: "em-mlang__tabs",
11670
11679
  role: "tablist"
11671
- }, M0 = ["aria-selected", "onClick"], T0 = {
11680
+ }, T0 = ["aria-selected", "onClick"], M0 = {
11672
11681
  key: 0,
11673
11682
  class: "em-mlang__dot"
11674
11683
  }, O0 = /* @__PURE__ */ ze({
@@ -11719,8 +11728,8 @@ const x0 = ["width", "height", "innerHTML"], N0 = /* @__PURE__ */ ze({
11719
11728
  onClick: (p) => a.value = c
11720
11729
  }, [
11721
11730
  fn(Se(c), 1),
11722
- l(c) ? (S(), z("span", T0, "•")) : Ee("", !0)
11723
- ], 10, M0))), 128))
11731
+ l(c) ? (S(), z("span", M0, "•")) : Ee("", !0)
11732
+ ], 10, T0))), 128))
11724
11733
  ]),
11725
11734
  e.multiline ? (S(), Ve($(wf), {
11726
11735
  key: 0,
@@ -12167,7 +12176,7 @@ const o1 = ["aria-expanded"], i1 = ["aria-selected", "onClick", "onMouseenter"],
12167
12176
  }), Nc = /* @__PURE__ */ ot(l1, [["__scopeId", "data-v-3f798ab1"]]), s1 = ["disabled"], r1 = { class: "em-aw__toolbar" }, u1 = { class: "em-aw__count" }, d1 = { class: "em-aw__scroll" }, c1 = { class: "em-aw__table" }, f1 = {
12168
12177
  key: 0,
12169
12178
  class: "c-code"
12170
- }, m1 = ["colspan"], p1 = { class: "c-del" }, h1 = { class: "c-flag" }, v1 = { class: "c-flag" }, y1 = { class: "c-flag" }, g1 = { class: "c-flag" }, b1 = { class: "c-flag" }, _1 = { class: "c-flag" }, w1 = { class: "c-flag" }, E1 = { class: "c-flag" }, $1 = { key: 0 }, I1 = { class: "c-del" }, k1 = ["colspan"], x1 = { class: "c-del" }, N1 = { class: "em-aw__embed-label" }, C1 = { class: "em-aw__ro" }, R1 = { class: "em-aw__ro" }, S1 = { class: "em-aw__ro" }, A1 = { class: "em-aw__ro" }, M1 = { colspan: "8" }, T1 = ["colspan"], O1 = { key: 0 }, Ci = "__OWN__", D1 = /* @__PURE__ */ ze({
12179
+ }, m1 = ["colspan"], p1 = { class: "c-del" }, h1 = { class: "c-flag" }, v1 = { class: "c-flag" }, y1 = { class: "c-flag" }, g1 = { class: "c-flag" }, b1 = { class: "c-flag" }, _1 = { class: "c-flag" }, w1 = { class: "c-flag" }, E1 = { class: "c-flag" }, $1 = { key: 0 }, I1 = { class: "c-del" }, k1 = ["colspan"], x1 = { class: "c-del" }, N1 = { class: "em-aw__embed-label" }, C1 = { class: "em-aw__ro" }, R1 = { class: "em-aw__ro" }, S1 = { class: "em-aw__ro" }, A1 = { class: "em-aw__ro" }, T1 = { colspan: "8" }, M1 = ["colspan"], O1 = { key: 0 }, Ci = "__OWN__", D1 = /* @__PURE__ */ ze({
12171
12180
  __name: "EntityAttributesWide",
12172
12181
  props: {
12173
12182
  controller: {},
@@ -12326,7 +12335,7 @@ const o1 = ["aria-expanded"], i1 = ["aria-selected", "onClick", "onMouseenter"],
12326
12335
  var _, G;
12327
12336
  return ((_ = ce(V, b)) == null ? void 0 : _.length) ?? ((G = V.dbAttrs[b]) == null ? void 0 : G.length);
12328
12337
  }
12329
- function Te(V, b) {
12338
+ function Me(V, b) {
12330
12339
  var _, G;
12331
12340
  return ((_ = ce(V, b)) == null ? void 0 : _.scale) ?? ((G = V.dbAttrs[b]) == null ? void 0 : G.scale);
12332
12341
  }
@@ -12340,11 +12349,11 @@ const o1 = ["aria-expanded"], i1 = ["aria-selected", "onClick", "onMouseenter"],
12340
12349
  function Y(V, b, _) {
12341
12350
  we(V, b, { updatable: _ === "inherit" ? void 0 : _ === "true" });
12342
12351
  }
12343
- function T(V, b) {
12352
+ function M(V, b) {
12344
12353
  Q(V, { updatable: b === "inherit" ? void 0 : b === "true" });
12345
12354
  }
12346
12355
  const A = ["inherit", "true", "false"];
12347
- function M(V) {
12356
+ function T(V) {
12348
12357
  return V === "inherit" ? "기본(따름)" : V;
12349
12358
  }
12350
12359
  function B(V) {
@@ -12443,7 +12452,7 @@ const o1 = ["aria-expanded"], i1 = ["aria-selected", "onClick", "onMouseenter"],
12443
12452
  ]),
12444
12453
  w("tbody", null, [
12445
12454
  (S(!0), z(Ce, null, Ue(o.value.attributes, (_) => {
12446
- var G, ge, oe, ne, Z, pe, Me, De, K, ae, q;
12455
+ var G, ge, oe, ne, Z, pe, Te, De, K, ae, q;
12447
12456
  return S(), z(Ce, {
12448
12457
  key: _.modelId
12449
12458
  }, [
@@ -12546,9 +12555,9 @@ const o1 = ["aria-expanded"], i1 = ["aria-selected", "onClick", "onMouseenter"],
12546
12555
  w("span", S1, Se(Ie(_, Fe) ?? ""), 1)
12547
12556
  ]),
12548
12557
  w("td", null, [
12549
- w("span", A1, Se(Te(_, Fe) ?? ""), 1)
12558
+ w("span", A1, Se(Me(_, Fe) ?? ""), 1)
12550
12559
  ]),
12551
- w("td", M1, [
12560
+ w("td", T1, [
12552
12561
  (hn = ce(_, Fe)) != null && hn.shareable ? (S(), Ve($(je), {
12553
12562
  key: 0,
12554
12563
  width: "100%",
@@ -12566,7 +12575,7 @@ const o1 = ["aria-expanded"], i1 = ["aria-selected", "onClick", "onMouseenter"],
12566
12575
  "model-value": be(he) ? "false" : B(he),
12567
12576
  items: A,
12568
12577
  "value-provider": d,
12569
- "label-provider": M,
12578
+ "label-provider": T,
12570
12579
  "onUpdate:modelValue": (pt) => pt && re(_, Fe, pt)
12571
12580
  }, null, 8, ["disabled", "model-value", "onUpdate:modelValue"])
12572
12581
  ]),
@@ -12583,7 +12592,7 @@ const o1 = ["aria-expanded"], i1 = ["aria-selected", "onClick", "onMouseenter"],
12583
12592
  ]),
12584
12593
  w("td", {
12585
12594
  colspan: E.value.length ? 4 : 3
12586
- }, null, 8, T1)
12595
+ }, null, 8, M1)
12587
12596
  ]);
12588
12597
  }), 128))
12589
12598
  ], 64)) : (S(), z("tr", {
@@ -12662,7 +12671,7 @@ const o1 = ["aria-expanded"], i1 = ["aria-selected", "onClick", "onMouseenter"],
12662
12671
  width: "100%",
12663
12672
  placeholder: "len",
12664
12673
  disabled: y(_),
12665
- "model-value": (Me = _.dbAttrs[0]) == null ? void 0 : Me.length,
12674
+ "model-value": (Te = _.dbAttrs[0]) == null ? void 0 : Te.length,
12666
12675
  "onUpdate:modelValue": (he) => Q(_, { length: he || void 0 })
12667
12676
  }, null, 8, ["name", "disabled", "model-value", "onUpdate:modelValue"])
12668
12677
  ]),
@@ -12748,7 +12757,7 @@ const o1 = ["aria-expanded"], i1 = ["aria-selected", "onClick", "onMouseenter"],
12748
12757
  "model-value": B(_.dbAttrs[0]),
12749
12758
  items: A,
12750
12759
  "value-provider": d,
12751
- "label-provider": M,
12760
+ "label-provider": T,
12752
12761
  "onUpdate:modelValue": (he) => he && te(_, he)
12753
12762
  }, null, 8, ["name", "disabled", "model-value", "onUpdate:modelValue"])
12754
12763
  ]),
@@ -12761,7 +12770,7 @@ const o1 = ["aria-expanded"], i1 = ["aria-selected", "onClick", "onMouseenter"],
12761
12770
  items: Le,
12762
12771
  "value-provider": d,
12763
12772
  "label-provider": Pe,
12764
- "onUpdate:modelValue": (he) => he && T(_, he)
12773
+ "onUpdate:modelValue": (he) => he && M(_, he)
12765
12774
  }, null, 8, ["name", "disabled", "model-value", "onUpdate:modelValue"])
12766
12775
  ]),
12767
12776
  w("td", null, [
@@ -13315,9 +13324,9 @@ function da(e, t, n) {
13315
13324
  bind: { controller: Go(t), entityId: n }
13316
13325
  });
13317
13326
  }
13318
- const Rc = () => crypto.randomUUID(), A_ = (e) => e.add.length === 0 && e.update.length === 0 && e.remove.length === 0, M_ = (e) => e && e[0].toLowerCase() + e.slice(1), T_ = (e) => e && e[0].toUpperCase() + e.slice(1), O_ = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[-\s]+/g, "_").toLowerCase();
13327
+ const Rc = () => crypto.randomUUID(), A_ = (e) => e.add.length === 0 && e.update.length === 0 && e.remove.length === 0, T_ = (e) => e && e[0].toLowerCase() + e.slice(1), M_ = (e) => e && e[0].toUpperCase() + e.slice(1), O_ = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[-\s]+/g, "_").toLowerCase();
13319
13328
  function D_(e, t) {
13320
- return M_(e) + T_(t);
13329
+ return T_(e) + M_(t);
13321
13330
  }
13322
13331
  function L_(e, t) {
13323
13332
  const n = e.entities.find((l) => l.modelId === t.end1.entityRef);
@@ -13642,7 +13651,7 @@ function WC(e = F_(), t = {}) {
13642
13651
  function Ie() {
13643
13652
  _e == null || _e(), _e = null, ce = null;
13644
13653
  }
13645
- function Te() {
13654
+ function Me() {
13646
13655
  if (Ie(), !h.value || !t.opTransport) return;
13647
13656
  const I = new wm({
13648
13657
  diagramId: n.layout.diagramId,
@@ -13656,7 +13665,7 @@ function WC(e = F_(), t = {}) {
13656
13665
  });
13657
13666
  I.seed((we == null ? void 0 : we.revSeed) ?? {}), _e = I.attach(o), ce = I;
13658
13667
  }
13659
- Te();
13668
+ Me();
13660
13669
  const Le = U(() => If(n.logical, n.layout)), Pe = U(() => ({
13661
13670
  reservedWords: u.value,
13662
13671
  selectableDataTypes: d.value,
@@ -13672,7 +13681,7 @@ function WC(e = F_(), t = {}) {
13672
13681
  H ? H.push(N) : I.set(N.targetRef, [N]);
13673
13682
  }
13674
13683
  return I;
13675
- }), T = (I) => {
13684
+ }), M = (I) => {
13676
13685
  le.value && o.execute(I);
13677
13686
  }, A = (I, N, H) => {
13678
13687
  const ie = Sn(I, N, H), me = io(
@@ -13680,9 +13689,9 @@ function WC(e = F_(), t = {}) {
13680
13689
  I,
13681
13690
  (be) => be.map((xe) => xe.modelId === N ? { ...xe, ...H } : xe)
13682
13691
  ), ye = lo(me, I);
13683
- T(ye.length ? it("속성 수정", [ie, ...ye]) : ie);
13692
+ M(ye.length ? it("속성 수정", [ie, ...ye]) : ie);
13684
13693
  };
13685
- function M(I) {
13694
+ function T(I) {
13686
13695
  const N = I.map((V) => n.layout.entityLayouts.find((b) => b.entityRef === V)).filter((V) => !!V);
13687
13696
  if (!N.length) return { location: { x: 40, y: 40 }, size: { width: 400, height: 300 } };
13688
13697
  let H = 1 / 0, ie = 1 / 0, me = -1 / 0, ye = -1 / 0;
@@ -13820,7 +13829,7 @@ function WC(e = F_(), t = {}) {
13820
13829
  b = V + 1;
13821
13830
  }
13822
13831
  const _ = ie.filter((G) => me.has(G.modelId)).map((G) => G.modelId);
13823
- return T(bl(N.entityId, _, b)), !0;
13832
+ return M(bl(N.entityId, _, b)), !0;
13824
13833
  },
13825
13834
  deleteSelection() {
13826
13835
  if (!le.value) return !1;
@@ -13829,8 +13838,8 @@ function WC(e = F_(), t = {}) {
13829
13838
  if (I.kind === "attribute") {
13830
13839
  const N = I.ids;
13831
13840
  if (!N.length) return !1;
13832
- N.length === 1 ? T($n(I.entityId, N[0])) : T(it("속성 삭제", N.map((H) => $n(I.entityId, H))));
13833
- } else I.kind === "entity" ? T(hl(I.id)) : I.kind === "note" ? T(El(I.id)) : I.kind === "group" ? T(gl(I.id)) : T(wl(I.id));
13841
+ N.length === 1 ? M($n(I.entityId, N[0])) : M(it("속성 삭제", N.map((H) => $n(I.entityId, H))));
13842
+ } else I.kind === "entity" ? M(hl(I.id)) : I.kind === "note" ? M(El(I.id)) : I.kind === "group" ? M(gl(I.id)) : M(wl(I.id));
13834
13843
  return R.value = null, !0;
13835
13844
  },
13836
13845
  nudgeNodes(I, N, H) {
@@ -13848,7 +13857,7 @@ function WC(e = F_(), t = {}) {
13848
13857
  if (!_) continue;
13849
13858
  const G = n.logical.groups.find((ne) => ne.modelId === b), ge = ((G == null ? void 0 : G.memberEntityRefs) ?? []).map((ne) => {
13850
13859
  var pe;
13851
- const Z = ((pe = n.layout.entityLayouts.find((Me) => Me.entityRef === ne)) == null ? void 0 : pe.geo.location) ?? {
13860
+ const Z = ((pe = n.layout.entityLayouts.find((Te) => Te.entityRef === ne)) == null ? void 0 : pe.geo.location) ?? {
13852
13861
  x: 0,
13853
13862
  y: 0
13854
13863
  };
@@ -13865,7 +13874,7 @@ function WC(e = F_(), t = {}) {
13865
13874
  if (!_) continue;
13866
13875
  xe.push(Po(b, { x: _.geo.location.x + N, y: _.geo.location.y + H })), V.push("n:" + b);
13867
13876
  }
13868
- return xe.length ? (T(it("이동", xe, "nudge:" + V.sort().join(","))), !0) : !1;
13877
+ return xe.length ? (M(it("이동", xe, "nudge:" + V.sort().join(","))), !0) : !1;
13869
13878
  },
13870
13879
  requestFocus(I) {
13871
13880
  ee.value = { id: I, nonce: ++O };
@@ -13880,7 +13889,7 @@ function WC(e = F_(), t = {}) {
13880
13889
  le.value && (ce == null || ce.flush(), o.markSavePoint());
13881
13890
  },
13882
13891
  loadDiagram(I, N) {
13883
- Ie(), n.logical = I.logical, n.layout = I.layout, o = new Os(n), ke(), g.value = (N == null ? void 0 : N.schemaVersion) ?? 1, k.value = (N == null ? void 0 : N.opWriteEnabled) ?? !1, le.value = !(g.value >= 2 && k.value === !1), we = N, fe.value = null, R.value = null, f.value = o.canUndo, m.value = o.canRedo, v.value = o.isDirty, Te();
13892
+ Ie(), n.logical = I.logical, n.layout = I.layout, o = new Os(n), ke(), g.value = (N == null ? void 0 : N.schemaVersion) ?? 1, k.value = (N == null ? void 0 : N.opWriteEnabled) ?? !1, le.value = !(g.value >= 2 && k.value === !1), we = N, fe.value = null, R.value = null, f.value = o.canUndo, m.value = o.canRedo, v.value = o.isDirty, Me();
13884
13893
  },
13885
13894
  flush() {
13886
13895
  ce == null || ce.flush();
@@ -13907,10 +13916,10 @@ function WC(e = F_(), t = {}) {
13907
13916
  }
13908
13917
  ]
13909
13918
  };
13910
- return T(pl(ie, { location: { ...N }, size: { width: 220, height: 140 } })), H;
13919
+ return M(pl(ie, { location: { ...N }, size: { width: 220, height: 140 } })), H;
13911
13920
  },
13912
13921
  renameEntity(I, N) {
13913
- T(Cu(I, N));
13922
+ M(Cu(I, N));
13914
13923
  },
13915
13924
  updateEntity(I, N) {
13916
13925
  const H = Nu(I, N), ie = n.logical.entities.find((be) => be.modelId === I), me = N.stereotype === "JPA_EMBEDDABLE" && !!ie && ie.stereotype !== "JPA_EMBEDDABLE", ye = !!N.stereotype && N.stereotype !== "JPA_EMBEDDABLE" && !!ie && ie.stereotype === "JPA_EMBEDDABLE";
@@ -13920,51 +13929,51 @@ function WC(e = F_(), t = {}) {
13920
13929
  I,
13921
13930
  (G) => G.map((ge) => ge.identifier && !ge.derivedFrom ? { ...ge, identifier: !1 } : ge)
13922
13931
  ), V = al(xe, I), b = Y_(n.logical, I), _ = [H, ...be, ...V, ...b];
13923
- T(_.length > 1 ? it("임베더블 변환", _) : H);
13932
+ M(_.length > 1 ? it("임베더블 변환", _) : H);
13924
13933
  return;
13925
13934
  }
13926
13935
  if (ye) {
13927
13936
  const be = G_(n.logical, I), xe = [H, ...be];
13928
- T(xe.length > 1 ? it("엔터티 전환", xe) : H);
13937
+ M(xe.length > 1 ? it("엔터티 전환", xe) : H);
13929
13938
  return;
13930
13939
  }
13931
- T(H);
13940
+ M(H);
13932
13941
  },
13933
13942
  moveEntity(I, N) {
13934
- T(no(I, N));
13943
+ M(no(I, N));
13935
13944
  },
13936
13945
  resizeEntity(I, N) {
13937
- T(Ru(I, N));
13946
+ M(Ru(I, N));
13938
13947
  },
13939
13948
  removeEntity(I) {
13940
- T(hl(I));
13949
+ M(hl(I));
13941
13950
  },
13942
13951
  setEntitySwatch(I, N) {
13943
- T(Su(I, N));
13952
+ M(Su(I, N));
13944
13953
  },
13945
13954
  setEntityCollapsed(I, N) {
13946
- T(Au(I, N));
13955
+ M(Au(I, N));
13947
13956
  },
13948
13957
  collapseAll() {
13949
- T(vl(!0));
13958
+ M(vl(!0));
13950
13959
  },
13951
13960
  expandAll() {
13952
- T(vl(!1));
13961
+ M(vl(!1));
13953
13962
  },
13954
13963
  setAttributeSwatch(I, N, H) {
13955
- T(zi(I, N, H));
13964
+ M(zi(I, N, H));
13956
13965
  },
13957
13966
  dragGroup(I, N, H) {
13958
- T(it("그룹 이동", B(I, N, H)));
13967
+ M(it("그룹 이동", B(I, N, H)));
13959
13968
  },
13960
13969
  resizeGroup(I, N) {
13961
- T(Du(I, N));
13970
+ M(Du(I, N));
13962
13971
  },
13963
13972
  setGroupSwatch(I, N) {
13964
- T(Lu(I, N));
13973
+ M(Lu(I, N));
13965
13974
  },
13966
13975
  updateGroup(I, N) {
13967
- T(Mu(I, N));
13976
+ M(Tu(I, N));
13968
13977
  },
13969
13978
  createGroup(I, N) {
13970
13979
  if (!I.length) return null;
@@ -13978,11 +13987,11 @@ function WC(e = F_(), t = {}) {
13978
13987
  excludeDDLGeneration: !1,
13979
13988
  memberEntityRefs: [...I]
13980
13989
  };
13981
- return H.push(yl(me, M(I))), T(it("그룹 생성", H)), R.value = null, ie;
13990
+ return H.push(yl(me, T(I))), M(it("그룹 생성", H)), R.value = null, ie;
13982
13991
  },
13983
13992
  addEmptyGroup(I, N) {
13984
13993
  const H = Ye();
13985
- return T(
13994
+ return M(
13986
13995
  yl(
13987
13996
  {
13988
13997
  modelId: H,
@@ -13995,16 +14004,16 @@ function WC(e = F_(), t = {}) {
13995
14004
  ), H;
13996
14005
  },
13997
14006
  removeGroup(I) {
13998
- T(gl(I));
14007
+ M(gl(I));
13999
14008
  },
14000
14009
  dropEntity(I, N, H) {
14001
14010
  var ye;
14002
14011
  const ie = ((ye = n.logical.groups.find((be) => be.memberEntityRefs.includes(I))) == null ? void 0 : ye.modelId) ?? null, me = [no(I, N)];
14003
- ie !== H && (ie && me.push(Ui(ie, I)), H && me.push(Tu(H, I))), T(it("이동", me));
14012
+ ie !== H && (ie && me.push(Ui(ie, I)), H && me.push(Mu(H, I))), M(it("이동", me));
14004
14013
  },
14005
14014
  ungroupEntity(I) {
14006
14015
  const N = n.logical.groups.find((H) => H.memberEntityRefs.includes(I));
14007
- N && T(Ui(N.modelId, I));
14016
+ N && M(Ui(N.modelId, I));
14008
14017
  },
14009
14018
  dropNote(I, N, H) {
14010
14019
  var ye;
@@ -14012,7 +14021,7 @@ function WC(e = F_(), t = {}) {
14012
14021
  var xe;
14013
14022
  return (xe = be.memberNoteRefs) == null ? void 0 : xe.includes(I);
14014
14023
  })) == null ? void 0 : ye.groupRef) ?? null, me = [Po(I, N)];
14015
- ie !== H && (ie && me.push(td(ie, I)), H && me.push(ed(H, I))), T(it("이동", me));
14024
+ ie !== H && (ie && me.push(td(ie, I)), H && me.push(ed(H, I))), M(it("이동", me));
14016
14025
  },
14017
14026
  addPredefinedEmbed(I, N) {
14018
14027
  const H = i.value.find((V) => V.type === N), ie = n.logical.entities.find((V) => V.modelId === I);
@@ -14031,7 +14040,7 @@ function WC(e = F_(), t = {}) {
14031
14040
  order: me,
14032
14041
  dbAttrs: be
14033
14042
  };
14034
- return T(en(I, xe)), ye;
14043
+ return M(en(I, xe)), ye;
14035
14044
  },
14036
14045
  addAttribute(I, N = {}) {
14037
14046
  const H = n.logical.entities.find((_) => _.modelId === I), ie = H ? H.attributes.length : 0, me = N.modelId ?? Ye(), ye = N.name ?? `field${ie}`, be = {
@@ -14047,11 +14056,11 @@ function WC(e = F_(), t = {}) {
14047
14056
  ],
14048
14057
  ...N
14049
14058
  }, xe = en(I, be), V = io(n.logical, I, (_) => [..._, be]), b = lo(V, I);
14050
- return T(b.length ? it("속성 추가", [xe, ...b]) : xe), me;
14059
+ return M(b.length ? it("속성 추가", [xe, ...b]) : xe), me;
14051
14060
  },
14052
14061
  addDivider(I) {
14053
14062
  const N = n.logical.entities.find((ye) => ye.modelId === I), H = N ? N.attributes.length : 0, ie = Ye();
14054
- return T(en(I, {
14063
+ return M(en(I, {
14055
14064
  modelId: ie,
14056
14065
  name: "",
14057
14066
  type: "",
@@ -14074,7 +14083,7 @@ function WC(e = F_(), t = {}) {
14074
14083
  setEmbedColumns(I, N, H) {
14075
14084
  var V, b;
14076
14085
  const ie = Sn(I, N, { dbAttrs: H }), me = (V = n.logical.entities.find((_) => _.modelId === I)) == null ? void 0 : V.attributes.find((_) => _.modelId === N), ye = (b = me == null ? void 0 : me.embedded) == null ? void 0 : b.associationRef, be = ye ? n.logical.associations.find((_) => _.modelId === ye) : void 0, xe = [];
14077
- be && ye && (be.end1.legacyEmbedRaw && xe.push(oo(ye, "end1", { legacyEmbedRaw: void 0 })), be.end2.legacyEmbedRaw && xe.push(oo(ye, "end2", { legacyEmbedRaw: void 0 }))), T(xe.length ? it("임베드 컬럼 수정", [ie, ...xe]) : ie);
14086
+ be && ye && (be.end1.legacyEmbedRaw && xe.push(oo(ye, "end1", { legacyEmbedRaw: void 0 })), be.end2.legacyEmbedRaw && xe.push(oo(ye, "end2", { legacyEmbedRaw: void 0 }))), M(xe.length ? it("임베드 컬럼 수정", [ie, ...xe]) : ie);
14078
14087
  },
14079
14088
  removeAttribute(I, N) {
14080
14089
  const H = $n(I, N), ie = io(
@@ -14082,7 +14091,7 @@ function WC(e = F_(), t = {}) {
14082
14091
  I,
14083
14092
  (ye) => ye.filter((be) => be.modelId !== N)
14084
14093
  ), me = lo(ie, I);
14085
- T(me.length ? it("속성 삭제", [H, ...me]) : H);
14094
+ M(me.length ? it("속성 삭제", [H, ...me]) : H);
14086
14095
  },
14087
14096
  removeAttributes(I, N) {
14088
14097
  var be;
@@ -14092,10 +14101,10 @@ function WC(e = F_(), t = {}) {
14092
14101
  I,
14093
14102
  (xe) => xe.filter((V) => !ie.has(V.modelId))
14094
14103
  ), ye = [...H, ...lo(me, I)];
14095
- T(ye.length === 1 ? ye[0] : it("속성 삭제", ye)), ((be = R.value) == null ? void 0 : be.kind) === "attribute" && R.value.entityId === I && (R.value = null);
14104
+ M(ye.length === 1 ? ye[0] : it("속성 삭제", ye)), ((be = R.value) == null ? void 0 : be.kind) === "attribute" && R.value.entityId === I && (R.value = null);
14096
14105
  },
14097
14106
  setAttributeSwatches(I, N, H) {
14098
- N.length && (N.length === 1 ? T(zi(I, N[0], H)) : T(
14107
+ N.length && (N.length === 1 ? M(zi(I, N[0], H)) : M(
14099
14108
  it(
14100
14109
  "속성 색상",
14101
14110
  N.map((ie) => zi(I, ie, H))
@@ -14103,16 +14112,16 @@ function WC(e = F_(), t = {}) {
14103
14112
  ));
14104
14113
  },
14105
14114
  reorderAttributes(I, N, H) {
14106
- N.length && T(bl(I, N, H));
14115
+ N.length && M(bl(I, N, H));
14107
14116
  },
14108
14117
  addIndex(I, N) {
14109
- T(Hu(I, N));
14118
+ M(Hu(I, N));
14110
14119
  },
14111
14120
  updateIndex(I, N, H) {
14112
- T(Fu(I, N, H));
14121
+ M(Fu(I, N, H));
14113
14122
  },
14114
14123
  removeIndex(I, N) {
14115
- T(Gu(I, N));
14124
+ M(Gu(I, N));
14116
14125
  },
14117
14126
  addOperation(I, N = {}) {
14118
14127
  var be;
@@ -14123,19 +14132,19 @@ function WC(e = F_(), t = {}) {
14123
14132
  order: ie,
14124
14133
  ...N
14125
14134
  };
14126
- return T(Pu(I, ye)), me;
14135
+ return M(Pu(I, ye)), me;
14127
14136
  },
14128
14137
  updateOperation(I, N, H) {
14129
- T(Vu(I, N, H));
14138
+ M(Vu(I, N, H));
14130
14139
  },
14131
14140
  removeOperation(I, N) {
14132
- T(zu(I, N));
14141
+ M(zu(I, N));
14133
14142
  },
14134
14143
  reorderOperations(I, N, H) {
14135
- N.length && T(Uu(I, N, H));
14144
+ N.length && M(Uu(I, N, H));
14136
14145
  },
14137
14146
  setOperationSwatch(I, N, H) {
14138
- T(Bu(I, N, H));
14147
+ M(Bu(I, N, H));
14139
14148
  },
14140
14149
  addAssociation(I, N, H, ie) {
14141
14150
  const me = Ye(), ye = {
@@ -14166,12 +14175,12 @@ function WC(e = F_(), t = {}) {
14166
14175
  sourceColumnRef: H,
14167
14176
  targetColumnRef: (V == null ? void 0 : V.modelId) ?? ie
14168
14177
  }, _ = _l(ye, b), G = Da(N, xe);
14169
- return T(G.length ? it("관계 추가", [_, ...G]) : _), me;
14178
+ return M(G.length ? it("관계 추가", [_, ...G]) : _), me;
14170
14179
  },
14171
14180
  addEmbedAssociation(I, N) {
14172
14181
  const H = n.logical.entities.find((pe) => pe.modelId === I), ie = n.logical.entities.find((pe) => pe.modelId === N);
14173
14182
  if (!H || !ie || ie.stereotype !== "JPA_EMBEDDABLE") return;
14174
- const me = Ye(), ye = Ye(), be = Ye(), xe = H.attributes.reduce((pe, Me) => Math.max(pe, Me.order), -1) + 1, V = Or(ie), b = (pe) => pe && pe.charAt(0).toLowerCase() + pe.slice(1), _ = new Set(H.attributes.map((pe) => pe.name)), G = b(ie.name);
14183
+ const me = Ye(), ye = Ye(), be = Ye(), xe = H.attributes.reduce((pe, Te) => Math.max(pe, Te.order), -1) + 1, V = Or(ie), b = (pe) => pe && pe.charAt(0).toLowerCase() + pe.slice(1), _ = new Set(H.attributes.map((pe) => pe.name)), G = b(ie.name);
14175
14184
  let ge = G;
14176
14185
  for (let pe = 2; _.has(ge); pe++) ge = `${G}${pe}`;
14177
14186
  const oe = {
@@ -14207,7 +14216,7 @@ function WC(e = F_(), t = {}) {
14207
14216
  sourceColumnRef: ye,
14208
14217
  targetColumnRef: void 0
14209
14218
  };
14210
- return T(
14219
+ return M(
14211
14220
  it("임베드 추가", [
14212
14221
  en(I, oe),
14213
14222
  _l(ne, Z)
@@ -14232,7 +14241,7 @@ function WC(e = F_(), t = {}) {
14232
14241
  const ye = me.embedded.embeddableRef, be = H.end2.entityRef === ye ? "end2" : "end1", xe = H[be], V = xe.multiplicity !== "EXACTLY_ONE_INSTANCE";
14233
14242
  if (!(N === "COLLECTION" ? V : !V))
14234
14243
  if (N === "COLLECTION")
14235
- T(
14244
+ M(
14236
14245
  it("임베드 컬렉션 전환", [
14237
14246
  Sn(ie, me.modelId, { dbAttrs: [] }),
14238
14247
  oo(I, be, {
@@ -14244,7 +14253,7 @@ function WC(e = F_(), t = {}) {
14244
14253
  else {
14245
14254
  const b = n.logical.entities.find((_) => _.modelId === ye);
14246
14255
  if (!b) return;
14247
- T(
14256
+ M(
14248
14257
  it("임베드 단일 전환", [
14249
14258
  Sn(ie, me.modelId, { dbAttrs: Or(b) }),
14250
14259
  oo(I, be, {
@@ -14258,7 +14267,7 @@ function WC(e = F_(), t = {}) {
14258
14267
  removeAssociation(I) {
14259
14268
  const N = n.logical.associations.find((be) => be.modelId === I), H = wl(I);
14260
14269
  if (!N) {
14261
- T(H);
14270
+ M(H);
14262
14271
  return;
14263
14272
  }
14264
14273
  for (const be of n.logical.entities) {
@@ -14267,7 +14276,7 @@ function WC(e = F_(), t = {}) {
14267
14276
  return ((b = V.embedded) == null ? void 0 : b.associationRef) === I;
14268
14277
  });
14269
14278
  if (xe) {
14270
- T(it("임베드 삭제", [H, $n(be.modelId, xe.modelId)]));
14279
+ M(it("임베드 삭제", [H, $n(be.modelId, xe.modelId)]));
14271
14280
  return;
14272
14281
  }
14273
14282
  }
@@ -14275,12 +14284,12 @@ function WC(e = F_(), t = {}) {
14275
14284
  ...n.logical,
14276
14285
  associations: n.logical.associations.filter((be) => be.modelId !== I)
14277
14286
  }, ye = al(me, ie);
14278
- T(ye.length ? it("관계 삭제", [H, ...ye]) : H);
14287
+ M(ye.length ? it("관계 삭제", [H, ...ye]) : H);
14279
14288
  },
14280
14289
  setAssociationIdentifying(I, N) {
14281
14290
  const H = n.logical.associations.find((xe) => xe.modelId === I), ie = wa(I, { identifying: N });
14282
14291
  if (!H || H.identifying === N) {
14283
- T(ie);
14292
+ M(ie);
14284
14293
  return;
14285
14294
  }
14286
14295
  const me = H.end2.entityRef, ye = {
@@ -14289,26 +14298,26 @@ function WC(e = F_(), t = {}) {
14289
14298
  (xe) => xe.modelId === I ? { ...xe, identifying: N } : xe
14290
14299
  )
14291
14300
  }, be = al(ye, me);
14292
- T(be.length ? it("식별 관계 변경", [ie, ...be]) : ie);
14301
+ M(be.length ? it("식별 관계 변경", [ie, ...be]) : ie);
14293
14302
  },
14294
14303
  updateAssociationEnd(I, N, H) {
14295
- T(oo(I, N, H));
14304
+ M(oo(I, N, H));
14296
14305
  },
14297
14306
  moveWaypoint(I, N, H) {
14298
- T(Yu(I, N, H));
14307
+ M(Yu(I, N, H));
14299
14308
  },
14300
14309
  addWaypoint(I, N, H) {
14301
- T(Xu(I, N, H));
14310
+ M(Xu(I, N, H));
14302
14311
  },
14303
14312
  removeWaypoint(I, N) {
14304
- T(Wu(I, N));
14313
+ M(Wu(I, N));
14305
14314
  },
14306
14315
  clearWaypoints(I) {
14307
- T(qu(I));
14316
+ M(qu(I));
14308
14317
  },
14309
14318
  addNote(I = "메모", N = { x: 80, y: 80 }) {
14310
14319
  const H = Ye();
14311
- return T(
14320
+ return M(
14312
14321
  ju({
14313
14322
  modelId: H,
14314
14323
  memo: I,
@@ -14317,41 +14326,41 @@ function WC(e = F_(), t = {}) {
14317
14326
  ), H;
14318
14327
  },
14319
14328
  removeNote(I) {
14320
- T(El(I));
14329
+ M(El(I));
14321
14330
  },
14322
14331
  moveNote(I, N) {
14323
- T(Po(I, N));
14332
+ M(Po(I, N));
14324
14333
  },
14325
14334
  resizeNote(I, N) {
14326
- T(Zu(I, N));
14335
+ M(Zu(I, N));
14327
14336
  },
14328
14337
  setNoteMemo(I, N) {
14329
- T(Ju(I, N));
14338
+ M(Ju(I, N));
14330
14339
  },
14331
14340
  setNoteSwatch(I, N) {
14332
- T(Qu(I, N));
14341
+ M(Qu(I, N));
14333
14342
  },
14334
14343
  addNoteConnection(I, N) {
14335
- T(nd(I, N));
14344
+ M(nd(I, N));
14336
14345
  },
14337
14346
  removeNoteConnection(I, N) {
14338
- T(od(I, N));
14347
+ M(od(I, N));
14339
14348
  },
14340
14349
  moveNoteConnectionWaypoint(I, N, H, ie) {
14341
- T(id(I, N, H, ie));
14350
+ M(id(I, N, H, ie));
14342
14351
  },
14343
14352
  addNoteConnectionWaypoint(I, N, H, ie) {
14344
- T(ad(I, N, H, ie));
14353
+ M(ad(I, N, H, ie));
14345
14354
  },
14346
14355
  removeNoteConnectionWaypoint(I, N, H) {
14347
- T(ld(I, N, H));
14356
+ M(ld(I, N, H));
14348
14357
  },
14349
14358
  clearNoteConnectionWaypoints(I, N) {
14350
- T(sd(I, N));
14359
+ M(sd(I, N));
14351
14360
  },
14352
14361
  autoLayout() {
14353
14362
  const I = Sf(n.logical, n.layout);
14354
- I.length && T(it("자동 배치", I.map((N) => no(N.id, N.location))));
14363
+ I.length && M(it("자동 배치", I.map((N) => no(N.id, N.location))));
14355
14364
  },
14356
14365
  copy() {
14357
14366
  const I = R.value;
@@ -14388,14 +14397,14 @@ function WC(e = F_(), t = {}) {
14388
14397
  oe.physicalName && be.has(oe.physicalName) && (oe.physicalName = `${oe.physicalName}_copy`);
14389
14398
  return ge.order = xe + G, V.push(ge.modelId), en(ie, ge);
14390
14399
  });
14391
- T(b.length === 1 ? b[0] : it("속성 붙여넣기", b)), R.value = { kind: "attribute", entityId: ie, ids: V, anchor: V[V.length - 1] };
14400
+ M(b.length === 1 ? b[0] : it("속성 붙여넣기", b)), R.value = { kind: "attribute", entityId: ie, ids: V, anchor: V[V.length - 1] };
14392
14401
  return;
14393
14402
  }
14394
14403
  const N = H_(I.entity), H = {
14395
14404
  location: { x: I.geo.location.x + 40, y: I.geo.location.y + 40 },
14396
14405
  size: { ...I.geo.size }
14397
14406
  };
14398
- T(pl(N, H)), R.value = { kind: "entity", id: N.modelId };
14407
+ M(pl(N, H)), R.value = { kind: "entity", id: N.modelId };
14399
14408
  }
14400
14409
  };
14401
14410
  }
@@ -14530,8 +14539,8 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14530
14539
  const ne = n == null ? void 0 : n.embeddableCatalog.value.find((pe) => pe.type === oe.type);
14531
14540
  if (!ne) return oe.dbAttrs;
14532
14541
  const Z = _a(h.value.attributes.flatMap((pe) => pe.dbAttrs));
14533
- return oe.dbAttrs.map((pe, Me) => {
14534
- const De = ne.fields[Me], K = ts(pe, Z);
14542
+ return oe.dbAttrs.map((pe, Te) => {
14543
+ const De = ne.fields[Te], K = ts(pe, Z);
14535
14544
  return K ? { ...pe, physicalName: K.physicalName, logicalName: pe.logicalName ?? (De == null ? void 0 : De.logicalName), dataType: pe.dataType || (De == null ? void 0 : De.dataType) || "" } : De ? {
14536
14545
  ...pe,
14537
14546
  physicalName: pe.physicalName || De.physicalName,
@@ -14555,7 +14564,7 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14555
14564
  return P(h.value.name, (ne = (oe = h.value.table) == null ? void 0 : oe.logicalName) == null ? void 0 : ne.ko, ((Z = h.value.table) == null ? void 0 : Z.physicalName) ?? "");
14556
14565
  }
14557
14566
  ), ce = $e(!1), _e = $e(""), Ie = $e(null);
14558
- async function Te() {
14567
+ async function Me() {
14559
14568
  var oe, ne;
14560
14569
  s.value && (_e.value = h.value.name, ce.value = !0, await _t(), (oe = Ie.value) == null || oe.focus(), (ne = Ie.value) == null || ne.select());
14561
14570
  }
@@ -14571,17 +14580,17 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14571
14580
  function j() {
14572
14581
  n == null || n.addDivider(t.id);
14573
14582
  }
14574
- const { screenToFlowCoordinate: Y, findNode: T } = Je(), A = $e(null), M = U(() => {
14583
+ const { screenToFlowCoordinate: Y, findNode: M } = Je(), A = $e(null), T = U(() => {
14575
14584
  const oe = A.value ?? t.data.size;
14576
14585
  return oe ? { width: `${oe.width}px`, minHeight: `${oe.height}px` } : void 0;
14577
14586
  });
14578
14587
  let B = null;
14579
14588
  function re(oe) {
14580
- var pe, Me, De;
14589
+ var pe, Te, De;
14581
14590
  if (!s.value) return;
14582
14591
  oe.stopPropagation();
14583
- const ne = (pe = T(t.id)) == null ? void 0 : pe.dimensions, Z = Y({ x: oe.clientX, y: oe.clientY });
14584
- B = { fx: Z.x, fy: Z.y, w: (ne == null ? void 0 : ne.width) ?? ((Me = t.data.size) == null ? void 0 : Me.width) ?? 200, h: (ne == null ? void 0 : ne.height) ?? ((De = t.data.size) == null ? void 0 : De.height) ?? 120 }, oe.target.setPointerCapture(oe.pointerId);
14592
+ const ne = (pe = M(t.id)) == null ? void 0 : pe.dimensions, Z = Y({ x: oe.clientX, y: oe.clientY });
14593
+ B = { fx: Z.x, fy: Z.y, w: (ne == null ? void 0 : ne.width) ?? ((Te = t.data.size) == null ? void 0 : Te.width) ?? 200, h: (ne == null ? void 0 : ne.height) ?? ((De = t.data.size) == null ? void 0 : De.height) ?? 120 }, oe.target.setPointerCapture(oe.pointerId);
14585
14594
  }
14586
14595
  function te(oe) {
14587
14596
  if (!B) return;
@@ -14594,10 +14603,10 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14594
14603
  function I(oe) {
14595
14604
  var ne, Z, pe;
14596
14605
  if (B && A.value && n) {
14597
- const Me = (ne = T(t.id)) == null ? void 0 : ne.dimensions;
14606
+ const Te = (ne = M(t.id)) == null ? void 0 : ne.dimensions;
14598
14607
  n.resizeEntity(t.id, {
14599
- width: Math.round((Me == null ? void 0 : Me.width) ?? A.value.width),
14600
- height: Math.round((Me == null ? void 0 : Me.height) ?? A.value.height)
14608
+ width: Math.round((Te == null ? void 0 : Te.width) ?? A.value.width),
14609
+ height: Math.round((Te == null ? void 0 : Te.height) ?? A.value.height)
14601
14610
  });
14602
14611
  }
14603
14612
  B = null, A.value = null, (pe = (Z = oe.target).releasePointerCapture) == null || pe.call(Z, oe.pointerId);
@@ -14621,14 +14630,14 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14621
14630
  break;
14622
14631
  }
14623
14632
  }
14624
- const pe = ne[ne.length - 1], Me = Z < ne.length ? ne[Z].offsetTop : pe.offsetTop + pe.offsetHeight;
14625
- H.value = { ...H.value, dropIndex: Z, lineY: Me };
14633
+ const pe = ne[ne.length - 1], Te = Z < ne.length ? ne[Z].offsetTop : pe.offsetTop + pe.offsetHeight;
14634
+ H.value = { ...H.value, dropIndex: Z, lineY: Te };
14626
14635
  }
14627
14636
  function ye() {
14628
14637
  const oe = H.value;
14629
14638
  if (H.value = null, !oe || oe.dropIndex < 0) return;
14630
- const ne = h.value.attributes, Z = ne.filter((ae) => oe.ids.has(ae.modelId)).map((ae) => ae.modelId), pe = ne.filter((ae, q) => oe.ids.has(ae.modelId) && q < oe.dropIndex).length, Me = oe.dropIndex - pe, De = ne.filter((ae) => !oe.ids.has(ae.modelId)).map((ae) => ae.modelId);
14631
- [...De.slice(0, Me), ...Z, ...De.slice(Me)].join(",") !== ne.map((ae) => ae.modelId).join(",") && (n == null || n.reorderAttributes(t.id, Z, Me));
14639
+ const ne = h.value.attributes, Z = ne.filter((ae) => oe.ids.has(ae.modelId)).map((ae) => ae.modelId), pe = ne.filter((ae, q) => oe.ids.has(ae.modelId) && q < oe.dropIndex).length, Te = oe.dropIndex - pe, De = ne.filter((ae) => !oe.ids.has(ae.modelId)).map((ae) => ae.modelId);
14640
+ [...De.slice(0, Te), ...Z, ...De.slice(Te)].join(",") !== ne.map((ae) => ae.modelId).join(",") && (n == null || n.reorderAttributes(t.id, Z, Te));
14632
14641
  }
14633
14642
  function be() {
14634
14643
  H.value = null;
@@ -14649,13 +14658,13 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14649
14658
  break;
14650
14659
  }
14651
14660
  }
14652
- const pe = ne[ne.length - 1], Me = Z < ne.length ? ne[Z].offsetTop : pe.offsetTop + pe.offsetHeight;
14653
- V.value = { ...V.value, dropIndex: Z, lineY: Me };
14661
+ const pe = ne[ne.length - 1], Te = Z < ne.length ? ne[Z].offsetTop : pe.offsetTop + pe.offsetHeight;
14662
+ V.value = { ...V.value, dropIndex: Z, lineY: Te };
14654
14663
  }
14655
14664
  function G() {
14656
14665
  const oe = V.value;
14657
14666
  if (V.value = null, !oe || oe.dropIndex < 0) return;
14658
- const Z = L.value.findIndex((Me) => Me.modelId === oe.id);
14667
+ const Z = L.value.findIndex((Te) => Te.modelId === oe.id);
14659
14668
  if (Z < 0) return;
14660
14669
  const pe = oe.dropIndex - (Z < oe.dropIndex ? 1 : 0);
14661
14670
  pe !== Z && (n == null || n.reorderOperations(t.id, [oe.id], pe));
@@ -14672,7 +14681,7 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14672
14681
  "is-multi-selected": m.value,
14673
14682
  "has-focused-attr": y.value
14674
14683
  }]),
14675
- style: Ze(M.value),
14684
+ style: Ze(T.value),
14676
14685
  onPointerdown: r,
14677
14686
  onMouseenter: u,
14678
14687
  onMouseleave: d,
@@ -14687,7 +14696,7 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14687
14696
  w("header", {
14688
14697
  class: "em-entity__header",
14689
14698
  style: Ze(le.value),
14690
- onDblclick: ut(Te, ["stop"])
14699
+ onDblclick: ut(Me, ["stop"])
14691
14700
  }, [
14692
14701
  w("button", {
14693
14702
  type: "button",
@@ -14737,7 +14746,7 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14737
14746
  "aria-hidden": "true"
14738
14747
  }, null, 4)) : Ee("", !0),
14739
14748
  (S(!0), z(Ce, null, Ue(h.value.attributes, (Z) => {
14740
- var pe, Me, De, K;
14749
+ var pe, Te, De, K;
14741
14750
  return S(), z(Ce, {
14742
14751
  key: Z.modelId
14743
14752
  }, [
@@ -14780,7 +14789,7 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14780
14789
  "aria-hidden": "true"
14781
14790
  }, [
14782
14791
  w("span", ew, [
14783
- (Me = D.value[Z.modelId]) != null && Me.pk ? (S(), Ve(He, {
14792
+ (Te = D.value[Z.modelId]) != null && Te.pk ? (S(), Ve(He, {
14784
14793
  key: 0,
14785
14794
  name: "key",
14786
14795
  size: 12,
@@ -14867,7 +14876,7 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
14867
14876
  key: 0,
14868
14877
  class: "em-entity__grip nodrag",
14869
14878
  "aria-hidden": "true",
14870
- onPointerdown: (Me) => b(Z, Me),
14879
+ onPointerdown: (Te) => b(Z, Te),
14871
14880
  onPointermove: _,
14872
14881
  onPointerup: G,
14873
14882
  onPointercancel: ge,
@@ -15141,7 +15150,7 @@ const La = Symbol("groupHover"), Ac = Symbol("groupDrag"), Io = Symbol("relation
15141
15150
  }, null, 32)) : Ee("", !0)
15142
15151
  ], 38));
15143
15152
  }
15144
- }), $w = /* @__PURE__ */ ot(Ew, [["__scopeId", "data-v-77c75add"]]), Iw = 20, kw = 22, xw = 7, Nw = 22, Mc = 31, Tc = 7, Cw = 20, Dr = 11, Lr = 11, Rw = Mc + Tc;
15153
+ }), $w = /* @__PURE__ */ ot(Ew, [["__scopeId", "data-v-77c75add"]]), Iw = 20, kw = 22, xw = 7, Nw = 22, Tc = 31, Mc = 7, Cw = 20, Dr = 11, Lr = 11, Rw = Tc + Mc;
15145
15154
  function Sw(e) {
15146
15155
  return e === "NO_INSTANCE_OR_ONE_INSTANCE" || e === "ZERO_OR_MORE_INSTANCES";
15147
15156
  }
@@ -15172,8 +15181,8 @@ function zr(e, t, n, o) {
15172
15181
  if (o === "db") {
15173
15182
  const r = Si(e, t, Iw), [u, d] = Pr(e, t, r, kw);
15174
15183
  if (i.push({ x1: u.x, y1: u.y, x2: d.x, y2: d.y }), i.push({ x1: r.x, y1: r.y, x2: e.x, y2: e.y }), Sw(n.multiplicity)) {
15175
- const c = Si(e, t, Mc);
15176
- a.push({ cx: c.x, cy: c.y, r: Tc });
15184
+ const c = Si(e, t, Tc);
15185
+ a.push({ cx: c.x, cy: c.y, r: Mc });
15177
15186
  }
15178
15187
  if (Aw(n.multiplicity)) {
15179
15188
  const c = Si(e, t, xw), [p, f] = Pr(e, t, c, Nw);
@@ -15235,7 +15244,7 @@ function Dc(e) {
15235
15244
  isSelf: o
15236
15245
  };
15237
15246
  }
15238
- const hs = Symbol("waypointController"), Mw = ["d"], Tw = ["d"], Ow = ["d"], Dw = ["x1", "y1", "x2", "y2"], Lw = ["cx", "cy", "r"], Pw = ["x", "y"], Vw = ["x", "y"], zw = ["cx", "cy", "onDblclick"], Uw = ["x", "y", "onPointerdown", "onDblclick"], Bw = /* @__PURE__ */ ze({
15247
+ const hs = Symbol("waypointController"), Tw = ["d"], Mw = ["d"], Ow = ["d"], Dw = ["x1", "y1", "x2", "y2"], Lw = ["cx", "cy", "r"], Pw = ["x", "y"], Vw = ["x", "y"], zw = ["cx", "cy", "onDblclick"], Uw = ["x", "y", "onPointerdown", "onDblclick"], Bw = /* @__PURE__ */ ze({
15239
15248
  __name: "AssociationEdge",
15240
15249
  props: {
15241
15250
  id: {},
@@ -15256,14 +15265,14 @@ const hs = Symbol("waypointController"), Mw = ["d"], Tw = ["d"], Ow = ["d"], Dw
15256
15265
  ), c = U(() => {
15257
15266
  const j = l == null ? void 0 : l.value;
15258
15267
  if (!j || !i) return null;
15259
- const Y = i.resolved.value.entities, T = (M) => {
15268
+ const Y = i.resolved.value.entities, M = (T) => {
15260
15269
  var B;
15261
- return (B = Y.find((re) => re.entity.modelId === M)) == null ? void 0 : B.groupRef;
15270
+ return (B = Y.find((re) => re.entity.modelId === T)) == null ? void 0 : B.groupRef;
15262
15271
  }, A = t.data.association;
15263
- return T(A.end1.entityRef) === j.groupId && T(A.end2.entityRef) === j.groupId ? { dx: j.dx, dy: j.dy } : null;
15272
+ return M(A.end1.entityRef) === j.groupId && M(A.end2.entityRef) === j.groupId ? { dx: j.dx, dy: j.dy } : null;
15264
15273
  }), p = U(() => (o == null ? void 0 : o.points(t.id)) ?? []), f = $e(-1), m = $e({ x: 0, y: 0 }), v = U(() => {
15265
15274
  const j = c.value;
15266
- return p.value.map((Y, T) => T === f.value ? m.value : j ? { x: Y.x + j.dx, y: Y.y + j.dy } : Y);
15275
+ return p.value.map((Y, M) => M === f.value ? m.value : j ? { x: Y.x + j.dx, y: Y.y + j.dy } : Y);
15267
15276
  }), y = U(() => {
15268
15277
  var j;
15269
15278
  return !!((j = t.sourceNode.data) != null && j.collapsed);
@@ -15298,16 +15307,16 @@ const hs = Symbol("waypointController"), Mw = ["d"], Tw = ["d"], Ow = ["d"], Dw
15298
15307
  m.value = { x: Y.x, y: Y.y };
15299
15308
  }
15300
15309
  function E(j) {
15301
- var Y, T;
15302
- f.value >= 0 && o && o.movePoint(t.id, f.value, { ...m.value }), f.value = -1, (T = (Y = j.target).releasePointerCapture) == null || T.call(Y, j.pointerId);
15310
+ var Y, M;
15311
+ f.value >= 0 && o && o.movePoint(t.id, f.value, { ...m.value }), f.value = -1, (M = (Y = j.target).releasePointerCapture) == null || M.call(Y, j.pointerId);
15303
15312
  }
15304
15313
  function R(j, Y) {
15305
15314
  Y.stopPropagation(), o == null || o.removePoint(t.id, j);
15306
15315
  }
15307
15316
  function x(j, Y) {
15308
15317
  if (!o) return;
15309
- const T = n({ x: Y.clientX, y: Y.clientY });
15310
- o.insertPoint(t.id, j, { x: T.x, y: T.y });
15318
+ const M = n({ x: Y.clientX, y: Y.clientY });
15319
+ o.insertPoint(t.id, j, { x: M.x, y: M.y });
15311
15320
  }
15312
15321
  const P = U(() => ve(t.data.association.end1.multiplicity)), X = U(() => ve(t.data.association.end2.multiplicity)), ee = U(
15313
15322
  () => (i == null ? void 0 : i.displayMode.value) === "CLASS" ? "class" : "db"
@@ -15344,7 +15353,7 @@ const hs = Symbol("waypointController"), Mw = ["d"], Tw = ["d"], Ow = ["d"], Dw
15344
15353
  () => zr(k.value, de.value, we.value, ee.value)
15345
15354
  ), _e = U(
15346
15355
  () => zr(h.value, fe.value, ke.value, ee.value)
15347
- ), Ie = U(() => [...ce.value.lines, ..._e.value.lines]), Te = U(() => [...ce.value.circles, ..._e.value.circles]), Le = U(
15356
+ ), Ie = U(() => [...ce.value.lines, ..._e.value.lines]), Me = U(() => [...ce.value.circles, ..._e.value.circles]), Le = U(
15348
15357
  () => [...ce.value.polygons, ..._e.value.polygons].map(
15349
15358
  (j) => `M${j.points.map((Y) => `${Y.x},${Y.y}`).join(" L")} Z`
15350
15359
  )
@@ -15358,31 +15367,31 @@ const hs = Symbol("waypointController"), Mw = ["d"], Tw = ["d"], Ow = ["d"], Dw
15358
15367
  d: D.value,
15359
15368
  fill: "none",
15360
15369
  class: "em-edge__hit"
15361
- }, null, 8, Mw),
15370
+ }, null, 8, Tw),
15362
15371
  w("path", {
15363
15372
  d: D.value,
15364
15373
  fill: "none",
15365
15374
  "stroke-width": "1.5",
15366
15375
  class: Re(["em-edge__path", { "is-highlighted": r.value, "is-dimmed": d.value, "is-selected": u.value }])
15367
- }, null, 10, Tw),
15368
- (S(!0), z(Ce, null, Ue(Le.value, (T, A) => (S(), z("path", {
15376
+ }, null, 10, Mw),
15377
+ (S(!0), z(Ce, null, Ue(Le.value, (M, A) => (S(), z("path", {
15369
15378
  key: `mpoly-${A}`,
15370
- d: T,
15379
+ d: M,
15371
15380
  class: Re(["em-edge__marker em-edge__marker--fill", Pe.value])
15372
15381
  }, null, 10, Ow))), 128)),
15373
- (S(!0), z(Ce, null, Ue(Ie.value, (T, A) => (S(), z("line", {
15382
+ (S(!0), z(Ce, null, Ue(Ie.value, (M, A) => (S(), z("line", {
15374
15383
  key: `mline-${A}`,
15375
- x1: T.x1,
15376
- y1: T.y1,
15377
- x2: T.x2,
15378
- y2: T.y2,
15384
+ x1: M.x1,
15385
+ y1: M.y1,
15386
+ x2: M.x2,
15387
+ y2: M.y2,
15379
15388
  class: Re(["em-edge__marker", Pe.value])
15380
15389
  }, null, 10, Dw))), 128)),
15381
- (S(!0), z(Ce, null, Ue(Te.value, (T, A) => (S(), z("circle", {
15390
+ (S(!0), z(Ce, null, Ue(Me.value, (M, A) => (S(), z("circle", {
15382
15391
  key: `mcirc-${A}`,
15383
- cx: T.cx,
15384
- cy: T.cy,
15385
- r: T.r,
15392
+ cx: M.cx,
15393
+ cy: M.cy,
15394
+ r: M.r,
15386
15395
  class: Re(["em-edge__marker", Pe.value])
15387
15396
  }, null, 10, Lw))), 128)),
15388
15397
  O.value ? (S(), z(Ce, { key: 0 }, [
@@ -15398,26 +15407,26 @@ const hs = Symbol("waypointController"), Mw = ["d"], Tw = ["d"], Ow = ["d"], Dw
15398
15407
  class: Re(["em-edge__mult", { "is-dimmed": d.value }])
15399
15408
  }, Se(X.value), 11, Vw)
15400
15409
  ], 64)) : Ee("", !0),
15401
- (S(!0), z(Ce, null, Ue(ue.value, (T, A) => (S(), z("circle", {
15410
+ (S(!0), z(Ce, null, Ue(ue.value, (M, A) => (S(), z("circle", {
15402
15411
  key: `mid-${A}`,
15403
- cx: T.point.x,
15404
- cy: T.point.y,
15412
+ cx: M.point.x,
15413
+ cy: M.point.y,
15405
15414
  r: "4",
15406
15415
  class: Re(["em-edge__mid", { "is-dimmed": d.value }]),
15407
- onDblclick: ut((M) => x(T.segIndex, M), ["stop"])
15416
+ onDblclick: ut((T) => x(M.segIndex, T), ["stop"])
15408
15417
  }, null, 42, zw))), 128)),
15409
- (S(!0), z(Ce, null, Ue(le.value, (T, A) => (S(), z("rect", {
15418
+ (S(!0), z(Ce, null, Ue(le.value, (M, A) => (S(), z("rect", {
15410
15419
  key: `wp-${A}`,
15411
- x: T.x - 5,
15412
- y: T.y - 5,
15420
+ x: M.x - 5,
15421
+ y: M.y - 5,
15413
15422
  width: "10",
15414
15423
  height: "10",
15415
15424
  rx: "2",
15416
15425
  class: Re(["em-edge__waypoint", { "is-dimmed": d.value }]),
15417
- onPointerdown: (M) => L(A, M),
15426
+ onPointerdown: (T) => L(A, T),
15418
15427
  onPointermove: se,
15419
15428
  onPointerup: E,
15420
- onDblclick: (M) => R(A, M)
15429
+ onDblclick: (T) => R(A, T)
15421
15430
  }, null, 42, Uw))), 128))
15422
15431
  ], 64));
15423
15432
  }
@@ -15777,14 +15786,14 @@ function Vc(e) {
15777
15786
  var t = Pa(e);
15778
15787
  return (t.local ? AE : SE)(t);
15779
15788
  }
15780
- function ME() {
15789
+ function TE() {
15781
15790
  }
15782
15791
  function ys(e) {
15783
- return e == null ? ME : function() {
15792
+ return e == null ? TE : function() {
15784
15793
  return this.querySelector(e);
15785
15794
  };
15786
15795
  }
15787
- function TE(e) {
15796
+ function ME(e) {
15788
15797
  typeof e != "function" && (e = ys(e));
15789
15798
  for (var t = this._groups, n = t.length, o = new Array(n), i = 0; i < n; ++i)
15790
15799
  for (var a = t[i], l = a.length, s = o[i] = new Array(l), r, u, d = 0; d < l; ++d)
@@ -16123,19 +16132,19 @@ function S$(e, t) {
16123
16132
  function A$() {
16124
16133
  this.textContent = "";
16125
16134
  }
16126
- function M$(e) {
16135
+ function T$(e) {
16127
16136
  return function() {
16128
16137
  this.textContent = e;
16129
16138
  };
16130
16139
  }
16131
- function T$(e) {
16140
+ function M$(e) {
16132
16141
  return function() {
16133
16142
  var t = e.apply(this, arguments);
16134
16143
  this.textContent = t ?? "";
16135
16144
  };
16136
16145
  }
16137
16146
  function O$(e) {
16138
- return arguments.length ? this.each(e == null ? A$ : (typeof e == "function" ? T$ : M$)(e)) : this.node().textContent;
16147
+ return arguments.length ? this.each(e == null ? A$ : (typeof e == "function" ? M$ : T$)(e)) : this.node().textContent;
16139
16148
  }
16140
16149
  function D$() {
16141
16150
  this.innerHTML = "";
@@ -16285,7 +16294,7 @@ function sI() {
16285
16294
  }
16286
16295
  At.prototype = hi.prototype = {
16287
16296
  constructor: At,
16288
- select: TE,
16297
+ select: ME,
16289
16298
  selectAll: PE,
16290
16299
  selectChild: BE,
16291
16300
  selectChildren: YE,
@@ -16546,12 +16555,12 @@ function qr() {
16546
16555
  }
16547
16556
  function si(e) {
16548
16557
  var t, n;
16549
- return e = (e + "").trim().toLowerCase(), (t = cI.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Xr(t) : n === 3 ? new Ct(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Mi(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Mi(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = fI.exec(e)) ? new Ct(t[1], t[2], t[3], 1) : (t = mI.exec(e)) ? new Ct(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = pI.exec(e)) ? Mi(t[1], t[2], t[3], t[4]) : (t = hI.exec(e)) ? Mi(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = vI.exec(e)) ? Jr(t[1], t[2] / 100, t[3] / 100, 1) : (t = yI.exec(e)) ? Jr(t[1], t[2] / 100, t[3] / 100, t[4]) : Wr.hasOwnProperty(e) ? Xr(Wr[e]) : e === "transparent" ? new Ct(NaN, NaN, NaN, 0) : null;
16558
+ return e = (e + "").trim().toLowerCase(), (t = cI.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Xr(t) : n === 3 ? new Ct(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Ti(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Ti(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = fI.exec(e)) ? new Ct(t[1], t[2], t[3], 1) : (t = mI.exec(e)) ? new Ct(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = pI.exec(e)) ? Ti(t[1], t[2], t[3], t[4]) : (t = hI.exec(e)) ? Ti(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = vI.exec(e)) ? Jr(t[1], t[2] / 100, t[3] / 100, 1) : (t = yI.exec(e)) ? Jr(t[1], t[2] / 100, t[3] / 100, t[4]) : Wr.hasOwnProperty(e) ? Xr(Wr[e]) : e === "transparent" ? new Ct(NaN, NaN, NaN, 0) : null;
16550
16559
  }
16551
16560
  function Xr(e) {
16552
16561
  return new Ct(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
16553
16562
  }
16554
- function Mi(e, t, n, o) {
16563
+ function Ti(e, t, n, o) {
16555
16564
  return o <= 0 && (e = t = n = NaN), new Ct(e, t, n, o);
16556
16565
  }
16557
16566
  function _I(e) {
@@ -16639,20 +16648,20 @@ bs(Lt, EI, jc(vi, {
16639
16648
  );
16640
16649
  },
16641
16650
  clamp() {
16642
- return new Lt(Qr(this.h), Ti(this.s), Ti(this.l), pa(this.opacity));
16651
+ return new Lt(Qr(this.h), Mi(this.s), Mi(this.l), pa(this.opacity));
16643
16652
  },
16644
16653
  displayable() {
16645
16654
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
16646
16655
  },
16647
16656
  formatHsl() {
16648
16657
  const e = pa(this.opacity);
16649
- return `${e === 1 ? "hsl(" : "hsla("}${Qr(this.h)}, ${Ti(this.s) * 100}%, ${Ti(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
16658
+ return `${e === 1 ? "hsl(" : "hsla("}${Qr(this.h)}, ${Mi(this.s) * 100}%, ${Mi(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
16650
16659
  }
16651
16660
  }));
16652
16661
  function Qr(e) {
16653
16662
  return e = (e || 0) % 360, e < 0 ? e + 360 : e;
16654
16663
  }
16655
- function Ti(e) {
16664
+ function Mi(e) {
16656
16665
  return Math.max(0, Math.min(1, e || 0));
16657
16666
  }
16658
16667
  function sl(e, t, n) {
@@ -16770,7 +16779,7 @@ function tf(e, t, n, o) {
16770
16779
  };
16771
16780
  };
16772
16781
  }
16773
- var AI = tf(RI, "px, ", "px)", "deg)"), MI = tf(SI, ", ", ")", ")"), TI = 1e-12;
16782
+ var AI = tf(RI, "px, ", "px)", "deg)"), TI = tf(SI, ", ", ")", ")"), MI = 1e-12;
16774
16783
  function nu(e) {
16775
16784
  return ((e = Math.exp(e)) + 1 / e) / 2;
16776
16785
  }
@@ -16783,7 +16792,7 @@ function DI(e) {
16783
16792
  const LI = (function e(t, n, o) {
16784
16793
  function i(a, l) {
16785
16794
  var s = a[0], r = a[1], u = a[2], d = l[0], c = l[1], p = l[2], f = d - s, m = c - r, v = f * f + m * m, y, g;
16786
- if (v < TI)
16795
+ if (v < MI)
16787
16796
  g = Math.log(p / u) / t, y = function(J) {
16788
16797
  return [
16789
16798
  s + J * f,
@@ -16809,7 +16818,7 @@ const LI = (function e(t, n, o) {
16809
16818
  return e(l, s, r);
16810
16819
  }, i;
16811
16820
  })(Math.SQRT2, 2, 4);
16812
- var bo = 0, Bo = 0, Mo = 0, nf = 1e3, ha, Ho, va = 0, jn = 0, Va = 0, ri = typeof performance == "object" && performance.now ? performance : Date, of = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
16821
+ var bo = 0, Bo = 0, To = 0, nf = 1e3, ha, Ho, va = 0, jn = 0, Va = 0, ri = typeof performance == "object" && performance.now ? performance : Date, of = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
16813
16822
  setTimeout(e, 17);
16814
16823
  };
16815
16824
  function _s() {
@@ -16862,7 +16871,7 @@ function Wl(e) {
16862
16871
  if (!bo) {
16863
16872
  Bo && (Bo = clearTimeout(Bo));
16864
16873
  var t = e - jn;
16865
- t > 24 ? (e < 1 / 0 && (Bo = setTimeout(ou, e - ri.now() - Va)), Mo && (Mo = clearInterval(Mo))) : (Mo || (va = ri.now(), Mo = setInterval(zI, nf)), bo = 1, of(ou));
16874
+ t > 24 ? (e < 1 / 0 && (Bo = setTimeout(ou, e - ri.now() - Va)), To && (To = clearInterval(To))) : (To || (va = ri.now(), To = setInterval(zI, nf)), bo = 1, of(ou));
16866
16875
  }
16867
16876
  }
16868
16877
  function iu(e, t, n) {
@@ -17053,7 +17062,7 @@ function QI(e, t, n) {
17053
17062
  };
17054
17063
  }
17055
17064
  function ek(e, t) {
17056
- var n = Pa(e), o = n === "transform" ? MI : sf;
17065
+ var n = Pa(e), o = n === "transform" ? TI : sf;
17057
17066
  return this.attrTween(e, typeof t == "function" ? (n.local ? QI : JI)(n, o, Es(this, "attr." + e, t)) : t == null ? (n.local ? XI : qI)(n) : (n.local ? ZI : jI)(n, o, t));
17058
17067
  }
17059
17068
  function tk(e, t) {
@@ -17243,16 +17252,16 @@ function Ak(e, t, n) {
17243
17252
  var o = (e += "") == "transform" ? AI : sf;
17244
17253
  return t == null ? this.styleTween(e, Nk(e, o)).on("end.style." + e, rf(e)) : typeof t == "function" ? this.styleTween(e, Rk(e, o, Es(this, "style." + e, t))).each(Sk(this._id, e)) : this.styleTween(e, Ck(e, o, t), n).on("end.style." + e, null);
17245
17254
  }
17246
- function Mk(e, t, n) {
17255
+ function Tk(e, t, n) {
17247
17256
  return function(o) {
17248
17257
  this.style.setProperty(e, t.call(this, o), n);
17249
17258
  };
17250
17259
  }
17251
- function Tk(e, t, n) {
17260
+ function Mk(e, t, n) {
17252
17261
  var o, i;
17253
17262
  function a() {
17254
17263
  var l = t.apply(this, arguments);
17255
- return l !== i && (o = (i = l) && Mk(e, l, n)), o;
17264
+ return l !== i && (o = (i = l) && Tk(e, l, n)), o;
17256
17265
  }
17257
17266
  return a._value = t, a;
17258
17267
  }
@@ -17261,7 +17270,7 @@ function Ok(e, t, n) {
17261
17270
  if (arguments.length < 2) return (o = this.tween(o)) && o._value;
17262
17271
  if (t == null) return this.tween(o, null);
17263
17272
  if (typeof t != "function") throw new Error();
17264
- return this.tween(o, Tk(e, t, n ?? ""));
17273
+ return this.tween(o, Mk(e, t, n ?? ""));
17265
17274
  }
17266
17275
  function Dk(e) {
17267
17276
  return function() {
@@ -17448,7 +17457,7 @@ ln.prototype;
17448
17457
  function ul(e) {
17449
17458
  e.stopImmediatePropagation();
17450
17459
  }
17451
- function To(e) {
17460
+ function Mo(e) {
17452
17461
  e.preventDefault(), e.stopImmediatePropagation();
17453
17462
  }
17454
17463
  function Xk(e) {
@@ -17530,8 +17539,8 @@ function ex() {
17530
17539
  return function(Ie) {
17531
17540
  if (Ie === 1) Ie = ce;
17532
17541
  else {
17533
- var Te = _e(Ie), Le = we / Te[2];
17534
- Ie = new ln(Le, fe[0] - Te[0] * Le, fe[1] - Te[1] * Le);
17542
+ var Me = _e(Ie), Le = we / Me[2];
17543
+ Ie = new ln(Le, fe[0] - Me[0] * Le, fe[1] - Me[1] * Le);
17535
17544
  }
17536
17545
  O.zoom(null, Ie);
17537
17546
  };
@@ -17580,7 +17589,7 @@ function ex() {
17580
17589
  if (P.k === X) return;
17581
17590
  x.mouse = [ee, P.invert(ee)], Xi(this), x.start();
17582
17591
  }
17583
- To(E), x.wheel = setTimeout(O, m), x.zoom("mouse", n(h(k(P, X), x.mouse[0], x.mouse[1]), x.extent, l));
17592
+ Mo(E), x.wheel = setTimeout(O, m), x.zoom("mouse", n(h(k(P, X), x.mouse[0], x.mouse[1]), x.extent, l));
17584
17593
  function O() {
17585
17594
  x.wheel = null, x.end();
17586
17595
  }
@@ -17590,20 +17599,20 @@ function ex() {
17590
17599
  var x = E.currentTarget, P = F(this, R, !0).event(E), X = In(E.view).on("mousemove.zoom", fe, !0).on("mouseup.zoom", we, !0), ee = bn(E, x), O = E.clientX, de = E.clientY;
17591
17600
  uI(E.view), ul(E), P.mouse = [ee, this.__zoom.invert(ee)], Xi(this), P.start();
17592
17601
  function fe(ke) {
17593
- if (To(ke), !P.moved) {
17602
+ if (Mo(ke), !P.moved) {
17594
17603
  var ce = ke.clientX - O, _e = ke.clientY - de;
17595
17604
  P.moved = ce * ce + _e * _e > v;
17596
17605
  }
17597
17606
  P.event(ke).zoom("mouse", n(h(P.that.__zoom, P.mouse[0] = bn(ke, x), P.mouse[1]), P.extent, l));
17598
17607
  }
17599
17608
  function we(ke) {
17600
- X.on("mousemove.zoom mouseup.zoom", null), dI(ke.view, P.moved), To(ke), P.event(ke).end();
17609
+ X.on("mousemove.zoom mouseup.zoom", null), dI(ke.view, P.moved), Mo(ke), P.event(ke).end();
17601
17610
  }
17602
17611
  }
17603
17612
  function le(E, ...R) {
17604
17613
  if (e.apply(this, arguments)) {
17605
17614
  var x = this.__zoom, P = bn(E.changedTouches ? E.changedTouches[0] : E, this), X = x.invert(P), ee = x.k * (E.shiftKey ? 0.5 : 2), O = n(h(k(x, ee), P, X), t.apply(this, R), l);
17606
- To(E), s > 0 ? In(this).transition().duration(s).call(Q, O, P, E) : In(this).call(g.transform, O, P, E);
17615
+ Mo(E), s > 0 ? In(this).transition().duration(s).call(Q, O, P, E) : In(this).call(g.transform, O, P, E);
17607
17616
  }
17608
17617
  }
17609
17618
  function ve(E, ...R) {
@@ -17619,11 +17628,11 @@ function ex() {
17619
17628
  function L(E, ...R) {
17620
17629
  if (this.__zooming) {
17621
17630
  var x = F(this, R).event(E), P = E.changedTouches, X = P.length, ee, O, de, fe;
17622
- for (To(E), ee = 0; ee < X; ++ee)
17631
+ for (Mo(E), ee = 0; ee < X; ++ee)
17623
17632
  O = P[ee], de = bn(O, this), x.touch0 && x.touch0[2] === O.identifier ? x.touch0[0] = de : x.touch1 && x.touch1[2] === O.identifier && (x.touch1[0] = de);
17624
17633
  if (O = x.that.__zoom, x.touch1) {
17625
- var we = x.touch0[0], ke = x.touch0[1], ce = x.touch1[0], _e = x.touch1[1], Ie = (Ie = ce[0] - we[0]) * Ie + (Ie = ce[1] - we[1]) * Ie, Te = (Te = _e[0] - ke[0]) * Te + (Te = _e[1] - ke[1]) * Te;
17626
- O = k(O, Math.sqrt(Ie / Te)), de = [(we[0] + ce[0]) / 2, (we[1] + ce[1]) / 2], fe = [(ke[0] + _e[0]) / 2, (ke[1] + _e[1]) / 2];
17634
+ var we = x.touch0[0], ke = x.touch0[1], ce = x.touch1[0], _e = x.touch1[1], Ie = (Ie = ce[0] - we[0]) * Ie + (Ie = ce[1] - we[1]) * Ie, Me = (Me = _e[0] - ke[0]) * Me + (Me = _e[1] - ke[1]) * Me;
17635
+ O = k(O, Math.sqrt(Ie / Me)), de = [(we[0] + ce[0]) / 2, (we[1] + ce[1]) / 2], fe = [(ke[0] + _e[0]) / 2, (ke[1] + _e[1]) / 2];
17627
17636
  } else if (x.touch0) de = x.touch0[0], fe = x.touch0[1];
17628
17637
  else return;
17629
17638
  x.zoom("touch", n(h(O, de, fe), x.extent, l));
@@ -17760,7 +17769,7 @@ const df = Symbol("MiniMapSlots"), tx = ["id", "x", "y", "rx", "ry", "width", "h
17760
17769
  emits: ["click", "nodeClick", "nodeDblclick", "nodeMouseenter", "nodeMousemove", "nodeMouseleave"],
17761
17770
  setup(e, { emit: t }) {
17762
17771
  const n = fu(), o = Zl(), i = 200, a = 150, { id: l, edges: s, viewport: r, translateExtent: u, dimensions: d, emits: c, d3Selection: p, d3Zoom: f, getNodesInitialized: m } = Je(), v = $e();
17763
- Mt(df, n);
17772
+ Tt(df, n);
17764
17773
  const y = et(() => {
17765
17774
  var X;
17766
17775
  return e.width ?? ((X = o.style) == null ? void 0 : X.width) ?? i;
@@ -17821,8 +17830,8 @@ const df = Symbol("MiniMapSlots"), tx = ["id", "x", "y", "rx", "ry", "width", "h
17821
17830
  }, _e = [
17822
17831
  [0, 0],
17823
17832
  [d.value.width, d.value.height]
17824
- ], Ie = $s.translate(ce.x, ce.y).scale(r.value.zoom), Te = f.value.constrain()(Ie, _e, u.value);
17825
- f.value.transform(p.value, Te);
17833
+ ], Ie = $s.translate(ce.x, ce.y).scale(r.value.zoom), Me = f.value.constrain()(Ie, _e, u.value);
17834
+ f.value.transform(p.value, Me);
17826
17835
  }, fe = ex().wheelDelta((we) => Ll(we) * (e.zoomStep / 10)).on("zoom", e.pannable ? de : () => {
17827
17836
  }).on("zoom.wheel", e.zoomable ? O : () => {
17828
17837
  });
@@ -17838,23 +17847,23 @@ const df = Symbol("MiniMapSlots"), tx = ["id", "x", "y", "rx", "ry", "width", "h
17838
17847
  t("click", { event: X, position: { x: ee, y: O } });
17839
17848
  }
17840
17849
  function se(X, ee) {
17841
- const O = { event: X, node: ee, connectedEdges: Mn([ee], s.value) };
17850
+ const O = { event: X, node: ee, connectedEdges: Tn([ee], s.value) };
17842
17851
  c.miniMapNodeClick(O), t("nodeClick", O);
17843
17852
  }
17844
17853
  function E(X, ee) {
17845
- const O = { event: X, node: ee, connectedEdges: Mn([ee], s.value) };
17854
+ const O = { event: X, node: ee, connectedEdges: Tn([ee], s.value) };
17846
17855
  c.miniMapNodeDoubleClick(O), t("nodeDblclick", O);
17847
17856
  }
17848
17857
  function R(X, ee) {
17849
- const O = { event: X, node: ee, connectedEdges: Mn([ee], s.value) };
17858
+ const O = { event: X, node: ee, connectedEdges: Tn([ee], s.value) };
17850
17859
  c.miniMapNodeMouseEnter(O), t("nodeMouseenter", O);
17851
17860
  }
17852
17861
  function x(X, ee) {
17853
- const O = { event: X, node: ee, connectedEdges: Mn([ee], s.value) };
17862
+ const O = { event: X, node: ee, connectedEdges: Tn([ee], s.value) };
17854
17863
  c.miniMapNodeMouseMove(O), t("nodeMousemove", O);
17855
17864
  }
17856
17865
  function P(X, ee) {
17857
- const O = { event: X, node: ee, connectedEdges: Mn([ee], s.value) };
17866
+ const O = { event: X, node: ee, connectedEdges: Tn([ee], s.value) };
17858
17867
  c.miniMapNodeMouseLeave(O), t("nodeMouseleave", O);
17859
17868
  }
17860
17869
  return (X, ee) => (S(), Ve($($c), {
@@ -18291,7 +18300,7 @@ function Sx(e) {
18291
18300
  function Ax(e) {
18292
18301
  return Vf(Sx(e));
18293
18302
  }
18294
- function Mx(e, t = "diagram.svg") {
18303
+ function Tx(e, t = "diagram.svg") {
18295
18304
  const n = Ax(e), o = new Blob([n], { type: "image/svg+xml;charset=utf-8" }), i = URL.createObjectURL(o);
18296
18305
  try {
18297
18306
  const a = document.createElement("a");
@@ -18300,7 +18309,7 @@ function Mx(e, t = "diagram.svg") {
18300
18309
  URL.revokeObjectURL(i);
18301
18310
  }
18302
18311
  }
18303
- const cl = "nc:", Tx = /* @__PURE__ */ ze({
18312
+ const cl = "nc:", Mx = /* @__PURE__ */ ze({
18304
18313
  __name: "DiagramCanvas",
18305
18314
  props: {
18306
18315
  controller: {}
@@ -18311,9 +18320,9 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18311
18320
  s.x = b.clientX, s.y = b.clientY;
18312
18321
  }
18313
18322
  const u = $e(null);
18314
- Mt(La, u);
18323
+ Tt(La, u);
18315
18324
  const d = $e(null);
18316
- Mt(Ac, d);
18325
+ Tt(Ac, d);
18317
18326
  const c = $e(null), p = U(() => {
18318
18327
  const b = c.value, _ = /* @__PURE__ */ new Set();
18319
18328
  if (!b) return _;
@@ -18343,7 +18352,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18343
18352
  _.has(ne.targetRef) && ge.add(ne.noteRef);
18344
18353
  return { related: _, edges: G, notes: ge };
18345
18354
  });
18346
- Mt(Io, {
18355
+ Tt(Io, {
18347
18356
  source: c,
18348
18357
  active: U(() => c.value !== null),
18349
18358
  primaryEntityIds: p,
@@ -18365,7 +18374,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18365
18374
  setNoteHover: (b) => {
18366
18375
  d.value || l.value || (c.value = b ? { kind: "note", id: b } : null);
18367
18376
  }
18368
- }), Mt($o, o);
18377
+ }), Tt($o, o);
18369
18378
  function m(b, _) {
18370
18379
  return `${cl}${b}:${_}`;
18371
18380
  }
@@ -18374,7 +18383,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18374
18383
  const [_, G] = b.slice(cl.length).split(":");
18375
18384
  return _ && G ? { noteRef: _, targetRef: G } : null;
18376
18385
  }
18377
- Mt(hs, {
18386
+ Tt(hs, {
18378
18387
  points: (b) => {
18379
18388
  var G, ge;
18380
18389
  const _ = v(b);
@@ -18414,7 +18423,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18414
18423
  async function x() {
18415
18424
  R.value = !0, await _t(), await new Promise((b) => requestAnimationFrame(() => b(null)));
18416
18425
  try {
18417
- Mx(y);
18426
+ Tx(y);
18418
18427
  } finally {
18419
18428
  R.value = !1;
18420
18429
  }
@@ -18436,35 +18445,35 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18436
18445
  ]);
18437
18446
  for (const Z of [...g.value]) ge.has(Z.id) || J([Z.id]);
18438
18447
  for (const Z of b.groups) {
18439
- const pe = Z.group.modelId, Me = { width: `${Z.geo.size.width}px`, height: `${Z.geo.size.height}px` }, De = { group: Z.group, style: Z.style }, K = h(pe);
18440
- K ? (K.position = { ...Z.geo.location }, K.data = De, K.style = Me) : Q([
18441
- { id: pe, type: "group", position: { ...Z.geo.location }, style: Me, data: De }
18448
+ const pe = Z.group.modelId, Te = { width: `${Z.geo.size.width}px`, height: `${Z.geo.size.height}px` }, De = { group: Z.group, style: Z.style }, K = h(pe);
18449
+ K ? (K.position = { ...Z.geo.location }, K.data = De, K.style = Te) : Q([
18450
+ { id: pe, type: "group", position: { ...Z.geo.location }, style: Te, data: De }
18442
18451
  ]);
18443
18452
  }
18444
18453
  for (const Z of b.entities) {
18445
- const pe = Z.entity.modelId, Me = Z.groupRef && G.has(Z.groupRef) ? Z.groupRef : void 0, De = {
18454
+ const pe = Z.entity.modelId, Te = Z.groupRef && G.has(Z.groupRef) ? Z.groupRef : void 0, De = {
18446
18455
  entity: Z.entity,
18447
18456
  displayMode: o.displayMode.value,
18448
18457
  collapsed: Z.collapsed,
18449
- groupRef: Me,
18458
+ groupRef: Te,
18450
18459
  size: Z.geo.size,
18451
18460
  style: Z.style,
18452
18461
  attributeStyles: Z.attributeStyles,
18453
18462
  operationStyles: Z.operationStyles
18454
- }, K = Me ? _.get(Me) : void 0, ae = K ? { x: Z.geo.location.x - K.location.x, y: Z.geo.location.y - K.location.y } : { ...Z.geo.location }, q = h(pe);
18455
- q ? (q.position = ae, q.data = De, q.parentNode = Me) : Q([{ id: pe, type: "entity", position: ae, parentNode: Me, data: De }]);
18463
+ }, K = Te ? _.get(Te) : void 0, ae = K ? { x: Z.geo.location.x - K.location.x, y: Z.geo.location.y - K.location.y } : { ...Z.geo.location }, q = h(pe);
18464
+ q ? (q.position = ae, q.data = De, q.parentNode = Te) : Q([{ id: pe, type: "entity", position: ae, parentNode: Te, data: De }]);
18456
18465
  }
18457
18466
  for (const Z of b.notes) {
18458
- const pe = Z.note, Me = pe.modelId, De = Z.groupRef && G.has(Z.groupRef) ? Z.groupRef : void 0, K = { note: pe, groupRef: De }, ae = { width: `${pe.geo.size.width}px`, height: `${pe.geo.size.height}px` }, q = De ? _.get(De) : void 0, he = q ? { x: pe.geo.location.x - q.location.x, y: pe.geo.location.y - q.location.y } : { ...pe.geo.location }, Fe = h(Me);
18467
+ const pe = Z.note, Te = pe.modelId, De = Z.groupRef && G.has(Z.groupRef) ? Z.groupRef : void 0, K = { note: pe, groupRef: De }, ae = { width: `${pe.geo.size.width}px`, height: `${pe.geo.size.height}px` }, q = De ? _.get(De) : void 0, he = q ? { x: pe.geo.location.x - q.location.x, y: pe.geo.location.y - q.location.y } : { ...pe.geo.location }, Fe = h(Te);
18459
18468
  Fe ? (Fe.position = he, Fe.data = K, Fe.style = ae, Fe.parentNode = De) : Q([
18460
- { id: Me, type: "note", position: he, parentNode: De, style: ae, data: K }
18469
+ { id: Te, type: "note", position: he, parentNode: De, style: ae, data: K }
18461
18470
  ]);
18462
18471
  }
18463
18472
  const oe = new Map(b.associations.map((Z) => [Z.association.modelId, Z])), ne = new Set(b.noteConnections.map((Z) => m(Z.noteRef, Z.targetRef)));
18464
18473
  for (const Z of [...k.value])
18465
18474
  !oe.has(Z.id) && !ne.has(Z.id) && D([Z.id]);
18466
18475
  for (const [Z, pe] of oe) {
18467
- const Me = {
18476
+ const Te = {
18468
18477
  id: Z,
18469
18478
  type: "association",
18470
18479
  source: pe.association.end1.entityRef,
@@ -18477,12 +18486,12 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18477
18486
  targetColumnRef: pe.targetColumnRef
18478
18487
  }
18479
18488
  }, De = C(Z);
18480
- De ? (De.data = Me.data, De.sourceHandle = Me.sourceHandle, De.targetHandle = Me.targetHandle) : F([Me]);
18489
+ De ? (De.data = Te.data, De.sourceHandle = Te.sourceHandle, De.targetHandle = Te.targetHandle) : F([Te]);
18481
18490
  }
18482
18491
  for (const Z of b.noteConnections) {
18483
- const pe = m(Z.noteRef, Z.targetRef), Me = { noteRef: Z.noteRef, targetRef: Z.targetRef }, De = C(pe);
18484
- De ? De.data = Me : F([
18485
- { id: pe, type: "note-connection", source: Z.noteRef, target: Z.targetRef, data: Me }
18492
+ const pe = m(Z.noteRef, Z.targetRef), Te = { noteRef: Z.noteRef, targetRef: Z.targetRef }, De = C(pe);
18493
+ De ? De.data = Te : F([
18494
+ { id: pe, type: "note-connection", source: Z.noteRef, target: Z.targetRef, data: Te }
18486
18495
  ]);
18487
18496
  }
18488
18497
  ee();
@@ -18511,8 +18520,8 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18511
18520
  if (b.key === "ArrowUp" || b.key === "ArrowDown" || b.key === "ArrowLeft" || b.key === "ArrowRight") {
18512
18521
  if (((oe = o.selection.value) == null ? void 0 : oe.kind) === "attribute") {
18513
18522
  if (b.key === "ArrowUp" || b.key === "ArrowDown") {
18514
- const Me = b.key === "ArrowDown" ? 1 : -1;
18515
- (b.altKey ? o.nudgeSelectedAttributes(Me) : o.moveAttributeFocus(Me)) && b.preventDefault();
18523
+ const Te = b.key === "ArrowDown" ? 1 : -1;
18524
+ (b.altKey ? o.nudgeSelectedAttributes(Te) : o.moveAttributeFocus(Te)) && b.preventDefault();
18516
18525
  }
18517
18526
  return;
18518
18527
  }
@@ -18581,8 +18590,8 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18581
18590
  for (const oe of G) {
18582
18591
  if (!oe) continue;
18583
18592
  const ne = o.resolved.value.entities.filter((Z) => Z.groupRef === oe.id).map((Z) => {
18584
- const pe = h(Z.entity.modelId), Me = (pe == null ? void 0 : pe.computedPosition) ?? (pe == null ? void 0 : pe.position) ?? { x: 0, y: 0 };
18585
- return { id: Z.entity.modelId, location: { x: Me.x, y: Me.y } };
18593
+ const pe = h(Z.entity.modelId), Te = (pe == null ? void 0 : pe.computedPosition) ?? (pe == null ? void 0 : pe.position) ?? { x: 0, y: 0 };
18594
+ return { id: Z.entity.modelId, location: { x: Te.x, y: Te.y } };
18586
18595
  });
18587
18596
  o.dragGroup(oe.id, { x: oe.position.x, y: oe.position.y }, ne);
18588
18597
  }
@@ -18594,10 +18603,10 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18594
18603
  oe.type === "note" ? o.dropNote(oe.id, { x: ne.x, y: ne.y }, P(pe)) : o.dropEntity(oe.id, { x: ne.x, y: ne.y }, P(pe));
18595
18604
  }
18596
18605
  }
18597
- function Te(b) {
18598
- var Me, De, K, ae, q;
18606
+ function Me(b) {
18607
+ var Te, De, K, ae, q;
18599
18608
  if (!o.editable.value || !b.source || !b.target) return;
18600
- const _ = ((Me = h(b.source)) == null ? void 0 : Me.type) === "note", G = ((De = h(b.target)) == null ? void 0 : De.type) === "note";
18609
+ const _ = ((Te = h(b.source)) == null ? void 0 : Te.type) === "note", G = ((De = h(b.target)) == null ? void 0 : De.type) === "note";
18601
18610
  if (_ || G) {
18602
18611
  if (_ && G) return;
18603
18612
  const he = _ ? b.source : b.target, Fe = _ ? b.target : b.source;
@@ -18632,7 +18641,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18632
18641
  var _;
18633
18642
  return bt((_ = o.state.layout.groupLayouts.find((G) => G.groupRef === b)) == null ? void 0 : _.style);
18634
18643
  }
18635
- function T(b) {
18644
+ function M(b) {
18636
18645
  var _;
18637
18646
  return bt((_ = o.state.layout.notes.find((G) => G.modelId === b)) == null ? void 0 : _.style);
18638
18647
  }
@@ -18659,7 +18668,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18659
18668
  { caption: "모두 펼치기", icon: "expand-all", handler: () => o.expandAll() }
18660
18669
  ), (oe = Le.value) == null || oe.open(b, G);
18661
18670
  }
18662
- function M({ event: b, node: _ }) {
18671
+ function T({ event: b, node: _ }) {
18663
18672
  var K, ae, q, he, Fe, wt, kt, lt, Ut, mn, pn, hn, pt, ko, Ne, ht, xo;
18664
18673
  const G = b;
18665
18674
  if (G.preventDefault(), !o.editable.value) {
@@ -18693,7 +18702,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18693
18702
  }
18694
18703
  if (_.type === "note") {
18695
18704
  (kt = Le.value) == null || kt.open(G, [
18696
- { type: "swatches", caption: "색상", current: T(_.id), onPick: (tt) => o.setNoteSwatch(_.id, tt) },
18705
+ { type: "swatches", caption: "색상", current: M(_.id), onPick: (tt) => o.setNoteSwatch(_.id, tt) },
18697
18706
  { type: "separator" },
18698
18707
  { caption: "노트 삭제", icon: "trash", danger: !0, handler: () => o.removeNote(_.id) }
18699
18708
  ]);
@@ -18837,7 +18846,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18837
18846
  }
18838
18847
  function ie(b) {
18839
18848
  var _, G;
18840
- return H(b) ? b.type === "group" ? "color-mix(in srgb, var(--em-selection) 22%, transparent)" : "var(--em-selection)" : b.type === "note" ? "var(--em-note-soft)" : b.type === "group" ? Tr(bt((_ = b.data) == null ? void 0 : _.style), !0) ?? "var(--em-mm-group)" : Tr(bt((G = b.data) == null ? void 0 : G.style)) ?? "var(--em-mm-entity)";
18849
+ return H(b) ? b.type === "group" ? "color-mix(in srgb, var(--em-selection) 22%, transparent)" : "var(--em-selection)" : b.type === "note" ? "var(--em-note-soft)" : b.type === "group" ? Mr(bt((_ = b.data) == null ? void 0 : _.style), !0) ?? "var(--em-mm-group)" : Mr(bt((G = b.data) == null ? void 0 : G.style)) ?? "var(--em-mm-entity)";
18841
18850
  }
18842
18851
  function me(b) {
18843
18852
  return H(b) ? "var(--em-selection)" : b.type === "note" ? "var(--em-note-accent)" : b.type === "group" ? "var(--em-node-border)" : "var(--em-on-surface-muted)";
@@ -18885,7 +18894,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18885
18894
  "zoom-activation-key-code": ["Meta", "Control"],
18886
18895
  onMoveStart: we,
18887
18896
  onMoveEnd: ke,
18888
- onConnect: Te,
18897
+ onConnect: Me,
18889
18898
  onConnectStart: _[0] || (_[0] = (G) => a.value = !0),
18890
18899
  onConnectEnd: _[1] || (_[1] = (G) => a.value = !1),
18891
18900
  onNodeDrag: _e,
@@ -18895,7 +18904,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18895
18904
  onSelectionChange: I,
18896
18905
  onPaneClick: _[2] || (_[2] = (G) => $(o).selection.value = null),
18897
18906
  onPaneContextMenu: A,
18898
- onNodeContextMenu: M,
18907
+ onNodeContextMenu: T,
18899
18908
  onEdgeContextMenu: B
18900
18909
  }, {
18901
18910
  "node-group": Xe((G) => [
@@ -18947,7 +18956,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
18947
18956
  }, null, 512)
18948
18957
  ], 2));
18949
18958
  }
18950
- }), Ox = /* @__PURE__ */ ot(Tx, [["__scopeId", "data-v-46292641"]]), Dx = { class: "em-explorer em-scroll-overlay" }, Lx = { class: "em-explorer__rows" }, Px = ["data-key", "onClick", "onDblclick"], Vx = ["onClick"], zx = ["title"], Ux = { class: "em-key-slot" }, Bx = { class: "em-key-slot" }, Hx = { class: "em-explorer__label" }, Fx = /* @__PURE__ */ ze({
18959
+ }), Ox = /* @__PURE__ */ ot(Mx, [["__scopeId", "data-v-46292641"]]), Dx = { class: "em-explorer em-scroll-overlay" }, Lx = { class: "em-explorer__rows" }, Px = ["data-key", "onClick", "onDblclick"], Vx = ["onClick"], zx = ["title"], Ux = { class: "em-key-slot" }, Bx = { class: "em-key-slot" }, Hx = { class: "em-explorer__label" }, Fx = /* @__PURE__ */ ze({
18951
18960
  __name: "DiagramExplorer",
18952
18961
  props: {
18953
18962
  controller: {}
@@ -19263,7 +19272,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19263
19272
  function p() {
19264
19273
  a.openModal({
19265
19274
  component: Xx,
19266
- bind: { text: Mf(o.state.logical) }
19275
+ bind: { text: Tf(o.state.logical) }
19267
19276
  });
19268
19277
  }
19269
19278
  return (f, m) => (S(), z("div", jx, [
@@ -19494,7 +19503,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19494
19503
  }, xN = { class: "em-embed-upd" }, NN = { class: "em-embed-upd" }, CN = { class: "em-swatch__row em-attr__swatch" }, RN = ["onClick"], SN = ["title", "onClick"], AN = {
19495
19504
  key: 0,
19496
19505
  class: "em-attr__swatch-hint"
19497
- }, Pi = "__OWN__", MN = /* @__PURE__ */ ze({
19506
+ }, Pi = "__OWN__", TN = /* @__PURE__ */ ze({
19498
19507
  __name: "EntityColumnsSection",
19499
19508
  props: {
19500
19509
  controller: {},
@@ -19648,7 +19657,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19648
19657
  function Ie(K) {
19649
19658
  return ["none", ..._e(K)];
19650
19659
  }
19651
- function Te(K) {
19660
+ function Me(K) {
19652
19661
  return K === "none" ? "none" : K.code;
19653
19662
  }
19654
19663
  function Le(K) {
@@ -19666,7 +19675,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19666
19675
  function Y(K, ae) {
19667
19676
  h(K, { defaultValue: ae.trim() === "" ? void 0 : ae });
19668
19677
  }
19669
- function T(K) {
19678
+ function M(K) {
19670
19679
  return K.attrType.startsWith("EMBED") && K.dbAttrs.length > 0;
19671
19680
  }
19672
19681
  function A(K, ae, q) {
@@ -19678,7 +19687,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19678
19687
  });
19679
19688
  o.value && n.setEmbedColumns(o.value.modelId, K.modelId, he);
19680
19689
  }
19681
- function M(K, ae, q, he) {
19690
+ function T(K, ae, q, he) {
19682
19691
  var Fe;
19683
19692
  A(K, ae, { logicalName: { ...(Fe = K.dbAttrs[ae]) == null ? void 0 : Fe.logicalName, [q]: he } });
19684
19693
  }
@@ -19754,7 +19763,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19754
19763
  function pe(K, ae, q) {
19755
19764
  A(K, ae, { sharedColumnRef: q === Pi ? void 0 : q });
19756
19765
  }
19757
- function Me(K) {
19766
+ function Te(K) {
19758
19767
  return (K == null ? void 0 : K.sharedColumnRef) != null;
19759
19768
  }
19760
19769
  function De(K) {
@@ -19873,7 +19882,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19873
19882
  "onUpdate:modelValue": (Ne) => L(q, Ne)
19874
19883
  }, null, 8, ["name", "model-value", "onUpdate:modelValue"])
19875
19884
  ])) : Ee("", !0),
19876
- T(q) ? (S(), z("div", wN, [
19885
+ M(q) ? (S(), z("div", wN, [
19877
19886
  (S(!0), z(Ce, null, Ue(q.dbAttrs, (Ne, ht) => {
19878
19887
  var xo, tt, Et, Bt, Ht, Zn, vn;
19879
19888
  return S(), z("div", {
@@ -19886,9 +19895,9 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19886
19895
  class: "grow",
19887
19896
  name: `embed-col-${Ne.modelId}`,
19888
19897
  width: "100%",
19889
- disabled: Me(Ne),
19898
+ disabled: Te(Ne),
19890
19899
  placeholder: ((Et = B(q, ht)) == null ? void 0 : Et.physicalName) ?? "컬럼",
19891
- "model-value": Me(Ne) ? De(Ne) : Ne.physicalName,
19900
+ "model-value": Te(Ne) ? De(Ne) : Ne.physicalName,
19892
19901
  "onUpdate:modelValue": (xt) => A(q, ht, { physicalName: xt })
19893
19902
  }, null, 8, ["name", "disabled", "placeholder", "model-value", "onUpdate:modelValue"]),
19894
19903
  W($(We), {
@@ -19921,7 +19930,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19921
19930
  width: "100%",
19922
19931
  placeholder: ((Ht = (Bt = B(q, ht)) == null ? void 0 : Bt.logicalName) == null ? void 0 : Ht.ko) ?? "논리명",
19923
19932
  "model-value": ((Zn = Ne.logicalName) == null ? void 0 : Zn.ko) ?? "",
19924
- "onUpdate:modelValue": (xt) => M(q, ht, "ko", xt)
19933
+ "onUpdate:modelValue": (xt) => T(q, ht, "ko", xt)
19925
19934
  }, null, 8, ["name", "placeholder", "model-value", "onUpdate:modelValue"])
19926
19935
  ]),
19927
19936
  (vn = B(q, ht)) != null && vn.shareable ? (S(), z("label", kN, [
@@ -19939,8 +19948,8 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19939
19948
  ae[8] || (ae[8] = w("span", null, "insertable", -1)),
19940
19949
  W($(je), {
19941
19950
  width: "110px",
19942
- disabled: Me(Ne),
19943
- "model-value": Me(Ne) ? "false" : V(Ne),
19951
+ disabled: Te(Ne),
19952
+ "model-value": Te(Ne) ? "false" : V(Ne),
19944
19953
  items: be,
19945
19954
  "value-provider": v,
19946
19955
  "label-provider": xe,
@@ -19951,8 +19960,8 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
19951
19960
  ae[9] || (ae[9] = w("span", null, "updatable", -1)),
19952
19961
  W($(je), {
19953
19962
  width: "110px",
19954
- disabled: Me(Ne),
19955
- "model-value": Me(Ne) ? "false" : ie(Ne),
19963
+ disabled: Te(Ne),
19964
+ "model-value": Te(Ne) ? "false" : ie(Ne),
19956
19965
  items: N,
19957
19966
  "value-provider": v,
19958
19967
  "label-provider": H,
@@ -20125,7 +20134,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20125
20134
  width: "100%",
20126
20135
  "model-value": q.defaultValue ?? "none",
20127
20136
  items: Ie(q),
20128
- "value-provider": Te,
20137
+ "value-provider": Me,
20129
20138
  "label-provider": Le,
20130
20139
  "onUpdate:modelValue": (Ne) => Ne && j(q, Ne)
20131
20140
  }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : (S(), Ve($(We), {
@@ -20170,7 +20179,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20170
20179
  }), 128))
20171
20180
  ], 8, tN)) : Ee("", !0);
20172
20181
  }
20173
- }), TN = /* @__PURE__ */ ot(MN, [["__scopeId", "data-v-5b6c4296"]]), ON = ["disabled"], DN = { class: "em-panel__sub-label" }, LN = { class: "em-attr__row" }, PN = { class: "em-field em-idx-params" }, VN = ["value", "onChange"], zN = /* @__PURE__ */ ze({
20182
+ }), MN = /* @__PURE__ */ ot(TN, [["__scopeId", "data-v-5b6c4296"]]), ON = ["disabled"], DN = { class: "em-panel__sub-label" }, LN = { class: "em-attr__row" }, PN = { class: "em-field em-idx-params" }, VN = ["value", "onChange"], zN = /* @__PURE__ */ ze({
20174
20183
  __name: "EntityIndexSection",
20175
20184
  props: {
20176
20185
  controller: {},
@@ -20525,10 +20534,10 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20525
20534
  c.value = { ...c.value, [j]: !p(j) };
20526
20535
  }
20527
20536
  const m = U(() => {
20528
- var T;
20537
+ var M;
20529
20538
  const j = s.value;
20530
20539
  if (!j) return "엔티티";
20531
- const Y = (T = j.table) == null ? void 0 : T.physicalName;
20540
+ const Y = (M = j.table) == null ? void 0 : M.physicalName;
20532
20541
  return Y ? `${j.name} (${Y})` : j.name;
20533
20542
  }), v = U(() => {
20534
20543
  const j = a.value;
@@ -20540,23 +20549,23 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20540
20549
  const j = a.value;
20541
20550
  return (j == null ? void 0 : j.kind) === "note" ? i.state.layout.notes.find((Y) => Y.modelId === j.id) ?? null : null;
20542
20551
  }), k = U(() => {
20543
- var Y, T;
20552
+ var Y, M;
20544
20553
  const j = (Y = y.value) == null ? void 0 : Y.name;
20545
- return (j == null ? void 0 : j.ko) || (j == null ? void 0 : j.en) || (j == null ? void 0 : j.ja) || (j == null ? void 0 : j.zh) || ((T = y.value) == null ? void 0 : T.packageName) || "그룹";
20554
+ return (j == null ? void 0 : j.ko) || (j == null ? void 0 : j.en) || (j == null ? void 0 : j.ja) || (j == null ? void 0 : j.zh) || ((M = y.value) == null ? void 0 : M.packageName) || "그룹";
20546
20555
  }), h = U(() => {
20547
20556
  if (s.value) {
20548
20557
  const j = u.value.size;
20549
20558
  if (j > 1) return `엔티티 · ${s.value.name} › 속성 · ${j}개`;
20550
20559
  if (r.value) {
20551
- const Y = s.value.attributes.find((T) => T.modelId === r.value);
20560
+ const Y = s.value.attributes.find((M) => M.modelId === r.value);
20552
20561
  return (Y == null ? void 0 : Y.attrType) === "DIVIDER" ? `엔티티 · ${s.value.name} › 구분선` : `엔티티 · ${s.value.name} › 속성 · ${(Y == null ? void 0 : Y.name) ?? ""}`;
20553
20562
  }
20554
20563
  return `엔티티 · ${s.value.name}`;
20555
20564
  }
20556
20565
  if (v.value) {
20557
20566
  const j = (Y) => {
20558
- var T;
20559
- return ((T = i.state.logical.entities.find((A) => A.modelId === Y)) == null ? void 0 : T.name) ?? Y;
20567
+ var M;
20568
+ return ((M = i.state.logical.entities.find((A) => A.modelId === Y)) == null ? void 0 : M.name) ?? Y;
20560
20569
  };
20561
20570
  return `관계 · ${j(v.value.end1.entityRef)} — ${j(v.value.end2.entityRef)}`;
20562
20571
  }
@@ -20580,54 +20589,54 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20580
20589
  v.value && !le.value && i.setAssociationIdentifying(v.value.modelId, j);
20581
20590
  }
20582
20591
  function se(j) {
20583
- var Y, T, A;
20584
- return !!((A = (T = (Y = v.value) == null ? void 0 : Y[j].jpa) == null ? void 0 : T.cascadeTypes) != null && A.includes("ALL"));
20592
+ var Y, M, A;
20593
+ return !!((A = (M = (Y = v.value) == null ? void 0 : Y[j].jpa) == null ? void 0 : M.cascadeTypes) != null && A.includes("ALL"));
20585
20594
  }
20586
- function E(j, Y, T) {
20595
+ function E(j, Y, M) {
20587
20596
  var B, re;
20588
20597
  const A = (B = v.value) == null ? void 0 : B[j];
20589
- if (Y === "ALL" && T) {
20598
+ if (Y === "ALL" && M) {
20590
20599
  ve(j, { jpa: { ...A == null ? void 0 : A.jpa, cascadeTypes: ["ALL"] } });
20591
20600
  return;
20592
20601
  }
20593
- const M = new Set(((re = A == null ? void 0 : A.jpa) == null ? void 0 : re.cascadeTypes) ?? []);
20594
- T ? M.add(Y) : M.delete(Y), ve(j, { jpa: { ...A == null ? void 0 : A.jpa, cascadeTypes: [...M] } });
20602
+ const T = new Set(((re = A == null ? void 0 : A.jpa) == null ? void 0 : re.cascadeTypes) ?? []);
20603
+ M ? T.add(Y) : T.delete(Y), ve(j, { jpa: { ...A == null ? void 0 : A.jpa, cascadeTypes: [...T] } });
20595
20604
  }
20596
20605
  function R(j, Y) {
20597
20606
  var A;
20598
- const T = (A = v.value) == null ? void 0 : A[j];
20599
- ve(j, { jpa: { ...T == null ? void 0 : T.jpa, ...Y } });
20607
+ const M = (A = v.value) == null ? void 0 : A[j];
20608
+ ve(j, { jpa: { ...M == null ? void 0 : M.jpa, ...Y } });
20600
20609
  }
20601
20610
  function x(j) {
20602
- var Y, T;
20603
- return ((T = (Y = v.value) == null ? void 0 : Y[j].jpa) == null ? void 0 : T.fetchType) ?? "inherit";
20611
+ var Y, M;
20612
+ return ((M = (Y = v.value) == null ? void 0 : Y[j].jpa) == null ? void 0 : M.fetchType) ?? "inherit";
20604
20613
  }
20605
20614
  function P(j, Y) {
20606
20615
  R(j, { fetchType: Y === "inherit" ? void 0 : Y });
20607
20616
  }
20608
20617
  function X(j) {
20609
- var T;
20610
- const Y = (T = v.value) == null ? void 0 : T[j === "end1" ? "end2" : "end1"];
20618
+ var M;
20619
+ const Y = (M = v.value) == null ? void 0 : M[j === "end1" ? "end2" : "end1"];
20611
20620
  return (Y == null ? void 0 : Y.multiplicity) === "ZERO_OR_MORE_INSTANCES" || (Y == null ? void 0 : Y.multiplicity) === "ONE_OR_MORE_INSTANCES";
20612
20621
  }
20613
20622
  const ee = U(() => {
20614
20623
  const j = v.value;
20615
20624
  if (!j) return null;
20616
20625
  for (const Y of i.state.logical.entities) {
20617
- const T = Y.attributes.find(
20626
+ const M = Y.attributes.find(
20618
20627
  (B) => {
20619
20628
  var re;
20620
20629
  return ((re = B.embedded) == null ? void 0 : re.associationRef) === j.modelId && B.attrType === "EMBED_OWN";
20621
20630
  }
20622
20631
  );
20623
- if (!T) continue;
20624
- const A = j.end2.entityRef === T.embedded.embeddableRef ? "end2" : "end1", M = j[A].jpa;
20632
+ if (!M) continue;
20633
+ const A = j.end2.entityRef === M.embedded.embeddableRef ? "end2" : "end1", T = j[A].jpa;
20625
20634
  return {
20626
20635
  which: A,
20627
20636
  isCollection: j[A].multiplicity !== "EXACTLY_ONE_INSTANCE",
20628
- collectionType: (M == null ? void 0 : M.collectionType) ?? "LIST",
20629
- collectionTable: (M == null ? void 0 : M.collectionTable) ?? "",
20630
- orderColumn: (M == null ? void 0 : M.orderColumn) ?? ""
20637
+ collectionType: (T == null ? void 0 : T.collectionType) ?? "LIST",
20638
+ collectionTable: (T == null ? void 0 : T.collectionTable) ?? "",
20639
+ orderColumn: (T == null ? void 0 : T.orderColumn) ?? ""
20631
20640
  };
20632
20641
  }
20633
20642
  return null;
@@ -20651,8 +20660,8 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20651
20660
  y.value && i.updateGroup(y.value.modelId, j);
20652
20661
  }
20653
20662
  function ce(j, Y) {
20654
- var T;
20655
- ke({ name: { ...(T = y.value) == null ? void 0 : T.name, [j]: Y } });
20663
+ var M;
20664
+ ke({ name: { ...(M = y.value) == null ? void 0 : M.name, [j]: Y } });
20656
20665
  }
20657
20666
  const _e = U(
20658
20667
  () => {
@@ -20663,7 +20672,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20663
20672
  function Ie(j) {
20664
20673
  y.value && i.setGroupSwatch(y.value.modelId, j);
20665
20674
  }
20666
- function Te(j) {
20675
+ function Me(j) {
20667
20676
  g.value && i.setNoteMemo(g.value.modelId, j);
20668
20677
  }
20669
20678
  const Le = U(() => {
@@ -20681,7 +20690,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20681
20690
  class: Re(["em-resize-handle em-resize-handle--left", { "is-dragging": e.resizing }]),
20682
20691
  title: "너비 조절",
20683
20692
  onPointerdown: Y[0] || (Y[0] = //@ts-ignore
20684
- (...T) => e.startResize && e.startResize(...T))
20693
+ (...M) => e.startResize && e.startResize(...M))
20685
20694
  }, null, 34),
20686
20695
  w("header", JN, [
20687
20696
  w("div", QN, [
@@ -20690,7 +20699,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20690
20699
  type: "button",
20691
20700
  class: "em-panel__btn",
20692
20701
  title: "접기",
20693
- onClick: Y[1] || (Y[1] = (T) => o("collapse"))
20702
+ onClick: Y[1] || (Y[1] = (M) => o("collapse"))
20694
20703
  }, [
20695
20704
  W(He, {
20696
20705
  name: "panel-right-close",
@@ -20711,9 +20720,9 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20711
20720
  collapsible: "",
20712
20721
  collapsed: p("basics"),
20713
20722
  title: m.value,
20714
- onToggle: Y[2] || (Y[2] = (T) => f("basics"))
20723
+ onToggle: Y[2] || (Y[2] = (M) => f("basics"))
20715
20724
  }, null, 8, ["controller", "entity-id", "collapsed", "title"]),
20716
- W(TN, {
20725
+ W(MN, {
20717
20726
  controller: $(i),
20718
20727
  "entity-id": s.value.modelId
20719
20728
  }, null, 8, ["controller", "entity-id"]),
@@ -20722,14 +20731,14 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20722
20731
  "entity-id": s.value.modelId,
20723
20732
  collapsible: "",
20724
20733
  collapsed: p("index"),
20725
- onToggle: Y[3] || (Y[3] = (T) => f("index"))
20734
+ onToggle: Y[3] || (Y[3] = (M) => f("index"))
20726
20735
  }, null, 8, ["controller", "entity-id", "collapsed"]),
20727
20736
  W(ZN, {
20728
20737
  controller: $(i),
20729
20738
  "entity-id": s.value.modelId,
20730
20739
  collapsible: "",
20731
20740
  collapsed: p("ops"),
20732
- onToggle: Y[4] || (Y[4] = (T) => f("ops"))
20741
+ onToggle: Y[4] || (Y[4] = (M) => f("ops"))
20733
20742
  }, null, 8, ["controller", "entity-id", "collapsed"])
20734
20743
  ], 64)) : Ee("", !0),
20735
20744
  v.value ? (S(), z(Ce, { key: 1 }, [
@@ -20759,7 +20768,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20759
20768
  items: F,
20760
20769
  "value-provider": D,
20761
20770
  "label-provider": D,
20762
- "onUpdate:modelValue": Y[5] || (Y[5] = (T) => T && de(T))
20771
+ "onUpdate:modelValue": Y[5] || (Y[5] = (M) => M && de(M))
20763
20772
  }, null, 8, ["model-value"])
20764
20773
  ]),
20765
20774
  w("label", l2, [
@@ -20785,37 +20794,37 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20785
20794
  ], 64)) : Ee("", !0),
20786
20795
  Y[17] || (Y[17] = w("p", { class: "em-panel__note" }, "카디널리티는 이 토글로 변경됩니다 (임베더블 end 다중성 직접 편집 대신).", -1))
20787
20796
  ])) : Ee("", !0),
20788
- (S(), z(Ce, null, Ue(["end1", "end2"], (T) => {
20789
- var A, M, B, re;
20797
+ (S(), z(Ce, null, Ue(["end1", "end2"], (M) => {
20798
+ var A, T, B, re;
20790
20799
  return w("div", {
20791
- key: T,
20800
+ key: M,
20792
20801
  class: "em-end"
20793
20802
  }, [
20794
- w("h4", r2, Se(T) + " → " + Se(v.value[T].entityRef), 1),
20803
+ w("h4", r2, Se(M) + " → " + Se(v.value[M].entityRef), 1),
20795
20804
  w("label", u2, [
20796
20805
  Y[18] || (Y[18] = w("span", null, "다중성", -1)),
20797
20806
  W($(je), {
20798
- "model-value": v.value[T].multiplicity,
20807
+ "model-value": v.value[M].multiplicity,
20799
20808
  items: C,
20800
20809
  "value-provider": D,
20801
20810
  "label-provider": D,
20802
- disabled: ((A = ee.value) == null ? void 0 : A.which) === T,
20803
- "onUpdate:modelValue": (te) => ve(T, { multiplicity: te })
20811
+ disabled: ((A = ee.value) == null ? void 0 : A.which) === M,
20812
+ "onUpdate:modelValue": (te) => ve(M, { multiplicity: te })
20804
20813
  }, null, 8, ["model-value", "disabled", "onUpdate:modelValue"])
20805
20814
  ]),
20806
20815
  W($(Qe), {
20807
- name: `${T}-navigable`,
20816
+ name: `${M}-navigable`,
20808
20817
  class: "em-check",
20809
20818
  label: "navigable",
20810
- "model-value": v.value[T].navigable,
20811
- "onUpdate:modelValue": (te) => ve(T, { navigable: te })
20819
+ "model-value": v.value[M].navigable,
20820
+ "onUpdate:modelValue": (te) => ve(M, { navigable: te })
20812
20821
  }, null, 8, ["name", "model-value", "onUpdate:modelValue"]),
20813
20822
  W($(Qe), {
20814
- name: `${T}-composition`,
20823
+ name: `${M}-composition`,
20815
20824
  class: "em-check",
20816
20825
  label: "composition",
20817
- "model-value": v.value[T].composition,
20818
- "onUpdate:modelValue": (te) => ve(T, { composition: te })
20826
+ "model-value": v.value[M].composition,
20827
+ "onUpdate:modelValue": (te) => ve(M, { composition: te })
20819
20828
  }, null, 8, ["name", "model-value", "onUpdate:modelValue"]),
20820
20829
  w("fieldset", d2, [
20821
20830
  Y[19] || (Y[19] = w("legend", null, "cascade", -1)),
@@ -20823,45 +20832,45 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20823
20832
  var I, N;
20824
20833
  return W($(Qe), {
20825
20834
  key: te,
20826
- name: `${T}-cascade-${te}`,
20835
+ name: `${M}-cascade-${te}`,
20827
20836
  class: "em-check",
20828
20837
  label: te,
20829
- "model-value": !!((N = (I = v.value[T].jpa) == null ? void 0 : I.cascadeTypes) != null && N.includes(te)),
20830
- disabled: te !== "ALL" && se(T),
20831
- "onUpdate:modelValue": (H) => E(T, te, H)
20838
+ "model-value": !!((N = (I = v.value[M].jpa) == null ? void 0 : I.cascadeTypes) != null && N.includes(te)),
20839
+ disabled: te !== "ALL" && se(M),
20840
+ "onUpdate:modelValue": (H) => E(M, te, H)
20832
20841
  }, null, 8, ["name", "label", "model-value", "disabled", "onUpdate:modelValue"]);
20833
20842
  }), 64)),
20834
- se(T) ? (S(), z("p", c2, "ALL이 개별 cascade를 모두 포함합니다 (CHK-JPA-5).")) : Ee("", !0)
20843
+ se(M) ? (S(), z("p", c2, "ALL이 개별 cascade를 모두 포함합니다 (CHK-JPA-5).")) : Ee("", !0)
20835
20844
  ]),
20836
20845
  w("fieldset", f2, [
20837
20846
  Y[22] || (Y[22] = w("legend", null, "JPA 상세", -1)),
20838
20847
  w("label", m2, [
20839
20848
  Y[20] || (Y[20] = w("span", null, "fetchType", -1)),
20840
20849
  W($(je), {
20841
- "model-value": x(T),
20850
+ "model-value": x(M),
20842
20851
  items: J,
20843
20852
  "value-provider": D,
20844
20853
  "label-provider": ue,
20845
- "onUpdate:modelValue": (te) => te && P(T, te)
20854
+ "onUpdate:modelValue": (te) => te && P(M, te)
20846
20855
  }, null, 8, ["model-value", "onUpdate:modelValue"])
20847
20856
  ]),
20848
20857
  W($(Qe), {
20849
- name: `${T}-orphan`,
20858
+ name: `${M}-orphan`,
20850
20859
  class: "em-check",
20851
20860
  label: "orphanRemoval",
20852
- "model-value": !!((M = v.value[T].jpa) != null && M.orphanRemoval),
20853
- disabled: X(T),
20854
- "onUpdate:modelValue": (te) => R(T, { orphanRemoval: te })
20861
+ "model-value": !!((T = v.value[M].jpa) != null && T.orphanRemoval),
20862
+ disabled: X(M),
20863
+ "onUpdate:modelValue": (te) => R(M, { orphanRemoval: te })
20855
20864
  }, null, 8, ["name", "model-value", "disabled", "onUpdate:modelValue"]),
20856
- X(T) && ((B = v.value[T].jpa) != null && B.orphanRemoval) ? (S(), z("p", p2, "반대편이 컬렉션(@ManyToOne/@ManyToMany)이라 orphanRemoval이 무효입니다 (CHK-JPA-14).")) : Ee("", !0),
20865
+ X(M) && ((B = v.value[M].jpa) != null && B.orphanRemoval) ? (S(), z("p", p2, "반대편이 컬렉션(@ManyToOne/@ManyToMany)이라 orphanRemoval이 무효입니다 (CHK-JPA-14).")) : Ee("", !0),
20857
20866
  w("label", h2, [
20858
20867
  Y[21] || (Y[21] = w("span", null, "orderBy", -1)),
20859
20868
  W($(We), {
20860
- name: `${T}-orderby`,
20869
+ name: `${M}-orderby`,
20861
20870
  width: "100%",
20862
20871
  placeholder: "예: name ASC",
20863
- "model-value": ((re = v.value[T].jpa) == null ? void 0 : re.orderBy) ?? "",
20864
- "onUpdate:modelValue": (te) => R(T, { orderBy: te.trim() || void 0 })
20872
+ "model-value": ((re = v.value[M].jpa) == null ? void 0 : re.orderBy) ?? "",
20873
+ "onUpdate:modelValue": (te) => R(M, { orderBy: te.trim() || void 0 })
20865
20874
  }, null, 8, ["name", "model-value", "onUpdate:modelValue"])
20866
20875
  ])
20867
20876
  ])
@@ -20871,18 +20880,18 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20871
20880
  y.value ? (S(), z(Ce, { key: 2 }, [
20872
20881
  w("fieldset", v2, [
20873
20882
  Y[23] || (Y[23] = w("legend", null, "그룹명", -1)),
20874
- (S(!0), z(Ce, null, Ue($(i).languages.value, (T) => {
20883
+ (S(!0), z(Ce, null, Ue($(i).languages.value, (M) => {
20875
20884
  var A;
20876
20885
  return S(), z("label", {
20877
- key: T,
20886
+ key: M,
20878
20887
  class: "em-lang"
20879
20888
  }, [
20880
- w("span", null, Se(T), 1),
20889
+ w("span", null, Se(M), 1),
20881
20890
  W($(We), {
20882
- name: `grp-name-${T}`,
20891
+ name: `grp-name-${M}`,
20883
20892
  width: "100%",
20884
- "model-value": ((A = y.value.name) == null ? void 0 : A[T]) ?? "",
20885
- "onUpdate:modelValue": (M) => ce(T, M)
20893
+ "model-value": ((A = y.value.name) == null ? void 0 : A[M]) ?? "",
20894
+ "onUpdate:modelValue": (T) => ce(M, T)
20886
20895
  }, null, 8, ["name", "model-value", "onUpdate:modelValue"])
20887
20896
  ]);
20888
20897
  }), 128))
@@ -20893,7 +20902,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20893
20902
  class: "em-textarea",
20894
20903
  value: y.value.description ?? "",
20895
20904
  rows: "3",
20896
- onChange: Y[6] || (Y[6] = (T) => ke({ description: T.target.value }))
20905
+ onChange: Y[6] || (Y[6] = (M) => ke({ description: M.target.value }))
20897
20906
  }, null, 40, g2)
20898
20907
  ]),
20899
20908
  w("label", b2, [
@@ -20902,7 +20911,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20902
20911
  name: "grp-package",
20903
20912
  width: "100%",
20904
20913
  "model-value": y.value.packageName ?? "",
20905
- "onUpdate:modelValue": Y[7] || (Y[7] = (T) => ke({ packageName: T }))
20914
+ "onUpdate:modelValue": Y[7] || (Y[7] = (M) => ke({ packageName: M }))
20906
20915
  }, null, 8, ["model-value"])
20907
20916
  ]),
20908
20917
  W($(Qe), {
@@ -20910,7 +20919,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20910
20919
  class: "em-check",
20911
20920
  label: "DDL 생성 제외",
20912
20921
  "model-value": y.value.excludeDDLGeneration,
20913
- "onUpdate:modelValue": Y[8] || (Y[8] = (T) => ke({ excludeDDLGeneration: T }))
20922
+ "onUpdate:modelValue": Y[8] || (Y[8] = (M) => ke({ excludeDDLGeneration: M }))
20914
20923
  }, null, 8, ["model-value"]),
20915
20924
  w("fieldset", _2, [
20916
20925
  Y[26] || (Y[26] = w("legend", null, "색상", -1)),
@@ -20919,15 +20928,15 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20919
20928
  type: "button",
20920
20929
  class: Re(["em-swatch__chip em-swatch__none", { "is-on": _e.value === null }]),
20921
20930
  title: "없음",
20922
- onClick: Y[9] || (Y[9] = (T) => Ie(null))
20931
+ onClick: Y[9] || (Y[9] = (M) => Ie(null))
20923
20932
  }, "∅", 2),
20924
- (S(!0), z(Ce, null, Ue($(qn), (T) => (S(), z("button", {
20925
- key: T,
20933
+ (S(!0), z(Ce, null, Ue($(qn), (M) => (S(), z("button", {
20934
+ key: M,
20926
20935
  type: "button",
20927
- class: Re(["em-swatch__chip", { "is-on": _e.value === T }]),
20928
- style: Ze({ background: $(yo)(T) }),
20929
- title: $(vo)(T),
20930
- onClick: (A) => Ie(T)
20936
+ class: Re(["em-swatch__chip", { "is-on": _e.value === M }]),
20937
+ style: Ze({ background: $(yo)(M) }),
20938
+ title: $(vo)(M),
20939
+ onClick: (A) => Ie(M)
20931
20940
  }, null, 14, E2))), 128))
20932
20941
  ])
20933
20942
  ]),
@@ -20940,7 +20949,7 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20940
20949
  class: "em-textarea",
20941
20950
  value: g.value.memo,
20942
20951
  rows: "6",
20943
- onChange: Y[10] || (Y[10] = (T) => Te(T.target.value))
20952
+ onChange: Y[10] || (Y[10] = (M) => Me(M.target.value))
20944
20953
  }, null, 40, k2)
20945
20954
  ]),
20946
20955
  w("fieldset", x2, [
@@ -20950,15 +20959,15 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20950
20959
  type: "button",
20951
20960
  class: Re(["em-swatch__chip em-swatch__none", { "is-on": Le.value === null }]),
20952
20961
  title: "없음",
20953
- onClick: Y[11] || (Y[11] = (T) => Pe(null))
20962
+ onClick: Y[11] || (Y[11] = (M) => Pe(null))
20954
20963
  }, "∅", 2),
20955
- (S(!0), z(Ce, null, Ue($(qn), (T) => (S(), z("button", {
20956
- key: T,
20964
+ (S(!0), z(Ce, null, Ue($(qn), (M) => (S(), z("button", {
20965
+ key: M,
20957
20966
  type: "button",
20958
- class: Re(["em-swatch__chip", { "is-on": Le.value === T }]),
20959
- style: Ze({ background: $(yo)(T) }),
20960
- title: $(vo)(T),
20961
- onClick: (A) => Pe(T)
20967
+ class: Re(["em-swatch__chip", { "is-on": Le.value === M }]),
20968
+ style: Ze({ background: $(yo)(M) }),
20969
+ title: $(vo)(M),
20970
+ onClick: (A) => Pe(M)
20962
20971
  }, null, 14, C2))), 128))
20963
20972
  ])
20964
20973
  ])
@@ -20972,11 +20981,11 @@ const cl = "nc:", Tx = /* @__PURE__ */ ze({
20972
20981
  TYPE: "타입",
20973
20982
  DSN: "설계"
20974
20983
  };
20975
- function M2(e) {
20984
+ function T2(e) {
20976
20985
  const t = e.split("-")[1];
20977
20986
  return t ? A2[t] ?? t : e;
20978
20987
  }
20979
- function T2(e) {
20988
+ function M2(e) {
20980
20989
  return e.targetKind === "entity" ? e.targetRef : e.contextRef;
20981
20990
  }
20982
20991
  const O2 = ["title"], D2 = ["title", "onClick"], L2 = {
@@ -21008,7 +21017,7 @@ const O2 = ["title"], D2 = ["title", "onClick"], L2 = {
21008
21017
  return v;
21009
21018
  });
21010
21019
  function a(v) {
21011
- const y = T2(v);
21020
+ const y = M2(v);
21012
21021
  if (!y) return null;
21013
21022
  const g = i.value.get(y);
21014
21023
  return g === void 0 ? null : g.trim() === "" ? "(이름 없음)" : g;
@@ -21027,7 +21036,7 @@ const O2 = ["title"], D2 = ["title", "onClick"], L2 = {
21027
21036
  () => u.value.map((v) => ({
21028
21037
  issue: v,
21029
21038
  entityName: a(v),
21030
- category: M2(v.ruleId)
21039
+ category: T2(v.ruleId)
21031
21040
  }))
21032
21041
  ), c = $e(!1);
21033
21042
  function p(v) {
@@ -21194,19 +21203,19 @@ const O2 = ["title"], D2 = ["title", "onClick"], L2 = {
21194
21203
  return [O.modelId, O.packageName || ((de = O.name) == null ? void 0 : de.ko) || O.modelId];
21195
21204
  })));
21196
21205
  function v(O) {
21197
- var ke, ce, _e, Ie, Te, Le, Pe;
21206
+ var ke, ce, _e, Ie, Me, Le, Pe;
21198
21207
  const de = f.value.get(O);
21199
21208
  if (!de) return "연관";
21200
21209
  if ((ke = de.description) != null && ke.trim()) return de.description.trim();
21201
- const fe = (Ie = (_e = p.value.get((ce = de.end1) == null ? void 0 : ce.entityRef)) == null ? void 0 : _e.name) == null ? void 0 : Ie.trim(), we = (Pe = (Le = p.value.get((Te = de.end2) == null ? void 0 : Te.entityRef)) == null ? void 0 : Le.name) == null ? void 0 : Pe.trim();
21210
+ const fe = (Ie = (_e = p.value.get((ce = de.end1) == null ? void 0 : ce.entityRef)) == null ? void 0 : _e.name) == null ? void 0 : Ie.trim(), we = (Pe = (Le = p.value.get((Me = de.end2) == null ? void 0 : Me.entityRef)) == null ? void 0 : Le.name) == null ? void 0 : Pe.trim();
21202
21211
  return fe && we ? `${fe}→${we}` : "연관";
21203
21212
  }
21204
21213
  function y(O) {
21205
21214
  var de, fe, we, ke;
21206
21215
  if (O.kind === "entity") return ((fe = (de = p.value.get(O.ref)) == null ? void 0 : de.name) == null ? void 0 : fe.trim()) || "(이름 없음)";
21207
21216
  if (O.kind === "attribute" || O.kind === "operation" || O.kind === "index") {
21208
- const ce = O.entityRef ? p.value.get(O.entityRef) : void 0, Ie = ((O.kind === "attribute" ? ce == null ? void 0 : ce.attributes : O.kind === "operation" ? ce == null ? void 0 : ce.operations : ce == null ? void 0 : ce.indexes) ?? []).find((Le) => Le.modelId === O.ref), Te = (we = ce == null ? void 0 : ce.name) == null ? void 0 : we.trim();
21209
- return `${Te ? Te + "." : ""}${((ke = Ie == null ? void 0 : Ie.name) == null ? void 0 : ke.trim()) || O.ref}`;
21217
+ const ce = O.entityRef ? p.value.get(O.entityRef) : void 0, Ie = ((O.kind === "attribute" ? ce == null ? void 0 : ce.attributes : O.kind === "operation" ? ce == null ? void 0 : ce.operations : ce == null ? void 0 : ce.indexes) ?? []).find((Le) => Le.modelId === O.ref), Me = (we = ce == null ? void 0 : ce.name) == null ? void 0 : we.trim();
21218
+ return `${Me ? Me + "." : ""}${((ke = Ie == null ? void 0 : Ie.name) == null ? void 0 : ke.trim()) || O.ref}`;
21210
21219
  }
21211
21220
  return O.kind === "association" ? v(O.ref) : O.kind === "associationEnd" ? `${v(O.ref)}(${O.end})` : O.kind === "group" ? `그룹 ${m.value.get(O.ref) ?? O.ref}` : O.ref;
21212
21221
  }
@@ -21436,7 +21445,7 @@ function uu(e) {
21436
21445
  }
21437
21446
  return { width: t, dragging: n, startResize: o };
21438
21447
  }
21439
- const xC = { class: "em-modeler" }, NC = { class: "em-modeler__body" }, CC = { class: "em-drawer__inner" }, RC = { class: "em-drawer__head" }, SC = { class: "em-drawer__actions" }, AC = ["title"], MC = /* @__PURE__ */ ze({
21448
+ const xC = { class: "em-modeler" }, NC = { class: "em-modeler__body" }, CC = { class: "em-drawer__inner" }, RC = { class: "em-drawer__head" }, SC = { class: "em-drawer__actions" }, AC = ["title"], TC = /* @__PURE__ */ ze({
21440
21449
  __name: "EntityModeler",
21441
21450
  props: {
21442
21451
  controller: {}
@@ -21576,11 +21585,13 @@ const xC = { class: "em-modeler" }, NC = { class: "em-modeler__body" }, CC = { c
21576
21585
  ]);
21577
21586
  };
21578
21587
  }
21579
- }), qC = /* @__PURE__ */ ot(MC, [["__scopeId", "data-v-dc519653"]]);
21588
+ }), qC = /* @__PURE__ */ ot(TC, [["__scopeId", "data-v-dc519653"]]);
21580
21589
  export {
21581
21590
  BC as APPLY_MODEL_OPS_INPUT_SCHEMA,
21582
21591
  Hw as AssociationEdge,
21592
+ Fn as CUSTOM_TYPE_VALUE,
21583
21593
  Os as CommandStack,
21594
+ Rs as DEFAULT_JAVA_TYPE,
21584
21595
  Ox as DiagramCanvas,
21585
21596
  Gx as DiagramExplorer,
21586
21597
  $o as EDITOR,
@@ -21588,12 +21599,15 @@ export {
21588
21599
  Qx as EditorToolbar,
21589
21600
  qC as EntityModeler,
21590
21601
  fw as EntityNode,
21602
+ ba as GROUP_CODE_ENUM_VALUE,
21591
21603
  bw as GroupNode,
21604
+ $u as JAVA_TYPES,
21592
21605
  $w as NoteNode,
21593
21606
  wm as OpSyncAdapter,
21594
21607
  Ss as PHYSICAL_NAME_MAX_LENGTH,
21595
21608
  S2 as PropertyPanel,
21596
21609
  _m as RevCache,
21610
+ Wf as SELECTABLE_JAVA_TYPES,
21597
21611
  Em as SYMBOLIC_OP_KINDS,
21598
21612
  Um as SYMBOLIC_OP_SCHEMA,
21599
21613
  Ns as anchoredEdgePoint,
@@ -21607,11 +21621,12 @@ export {
21607
21621
  WC as createEditorController,
21608
21622
  Ua as displayLabel,
21609
21623
  F_ as emptyState,
21610
- Mf as entityModelToText,
21624
+ Tf as entityModelToText,
21611
21625
  Af as estimateEntityHeight,
21612
- Mx as exportDiagramSvg,
21626
+ Tx as exportDiagramSvg,
21613
21627
  FC as fromPersisted,
21614
21628
  _a as indexColumnsByModelId,
21629
+ Lo as javaTypeLabel,
21615
21630
  PC as migrateLegacyMoney,
21616
21631
  Ye as newId,
21617
21632
  yu as orthogonalMidpoints,