@a2simcode/ui 0.0.79 → 0.0.81

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,4 +1,4 @@
1
- import { defineComponent as ae, computed as j, openBlock as C, createElementBlock as I, mergeProps as He, createVNode as K, unref as G, shallowRef as la, ref as A, watch as rt, withModifiers as kt, normalizeClass as je, createBlock as H, createCommentVNode as Y, toDisplayString as we, renderSlot as $e, nextTick as Pt, inject as td, provide as nd, resolveComponent as B, withCtx as W, resolveDynamicComponent as To, getCurrentInstance as Fs, render as Yi, Fragment as be, renderList as Ee, onMounted as St, createSlots as mn, createTextVNode as Kt, createElementVNode as N, useSlots as od, reactive as Mo, onUnmounted as ii, normalizeStyle as Ce, onBeforeUnmount as ra, h as id, resolveDirective as sa, withDirectives as vn, withKeys as Wa, vShow as Xo, watchEffect as Vs, useTemplateRef as no, useModel as ti, mergeModels as ni, normalizeProps as ca, guardReactiveProps as pl } from "vue";
1
+ import { defineComponent as ae, computed as j, openBlock as C, createElementBlock as I, mergeProps as He, createVNode as K, unref as G, shallowRef as la, ref as A, watch as rt, withModifiers as kt, normalizeClass as je, createBlock as H, createCommentVNode as Y, toDisplayString as we, renderSlot as $e, nextTick as Pt, inject as td, provide as nd, resolveComponent as B, withCtx as W, resolveDynamicComponent as To, getCurrentInstance as Fs, render as Gi, Fragment as be, renderList as Ee, onMounted as St, createSlots as mn, createTextVNode as Kt, createElementVNode as N, useSlots as od, reactive as Mo, onUnmounted as ai, normalizeStyle as Ce, onBeforeUnmount as ra, h as id, resolveDirective as sa, withDirectives as vn, withKeys as Wa, vShow as Xo, watchEffect as Vs, useTemplateRef as no, useModel as ni, mergeModels as oi, normalizeProps as ca, guardReactiveProps as pl } from "vue";
2
2
  import { getIcon as to, Icon as ur } from "@iconify/vue";
3
3
  import Ns from "dayjs";
4
4
  import ad from "crypto-js/aes";
@@ -35,8 +35,8 @@ import { useVirtualList as gl } from "@vueuse/core";
35
35
  import Wd from "async-validator";
36
36
  import { createEditor as Ud, createToolbar as Yd } from "@wangeditor/editor";
37
37
  import Us from "diagram-js";
38
- import { closest as vl, queryAll as Ua, query as $t, delegate as Hn, classes as Nt, event as Xe, assignStyle as ai, domify as Ut, remove as Ya, clear as Ys, attr as tn, matches as Gd } from "min-dom";
39
- import { isNumber as Ct, assign as _e, forEach as ne, isArray as Ze, find as rn, filter as Jt, isUndefined as Kd, isObject as Xt, groupBy as ml, has as Gs, map as li, every as yl, sortBy as oi, isNil as hr, bind as bl, uniqueBy as Jd, isFunction as sn, isDefined as en, some as Xd, omit as qd, pick as Gi, values as Ks, without as Zd, reduce as Ga, isString as Ka, matchPattern as Ki, flatten as Qd, size as ef, debounce as tf } from "min-dash";
38
+ import { closest as vl, queryAll as Ua, query as $t, delegate as Hn, classes as Nt, event as Xe, assignStyle as li, domify as Ut, remove as Ya, clear as Ys, attr as tn, matches as Gd } from "min-dom";
39
+ import { isNumber as Ct, assign as _e, forEach as ne, isArray as Ze, find as rn, filter as Jt, isUndefined as Kd, isObject as Xt, groupBy as ml, has as Gs, map as ri, every as yl, sortBy as ii, isNil as hr, bind as bl, uniqueBy as Jd, isFunction as sn, isDefined as en, some as Xd, omit as qd, pick as Ki, values as Ks, without as Zd, reduce as Ga, isString as Ka, matchPattern as Ji, flatten as Qd, size as ef, debounce as tf } from "min-dash";
40
40
  import { create as Ve, attr as ye, remove as Yt, append as Oe, clone as Js, classes as lt, createTransform as qo, transform as xl, clear as wl } from "tiny-svg";
41
41
  import io from "inherits";
42
42
  import nf from "diagram-js-direct-editing";
@@ -185,7 +185,7 @@ const cn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
185
185
  ], 10, af));
186
186
  }
187
187
  }), Xa = de(rf);
188
- function Ji(e) {
188
+ function Zo(e) {
189
189
  Object.keys(e || {}).forEach((t) => {
190
190
  delete e[t];
191
191
  });
@@ -260,7 +260,7 @@ function Ha(e, t, n) {
260
260
  }
261
261
  return i[o[o.length - 1]] = n, e;
262
262
  }
263
- const Ri = (e) => {
263
+ const Ti = (e) => {
264
264
  let t = parseFloat(e);
265
265
  return isNaN(t) ? 0 : (t = Math.round(e * 100) / 100, t);
266
266
  }, V0 = function(e, t, n) {
@@ -507,7 +507,7 @@ const qs = (e, t, n, o) => {
507
507
  function tc(e, t = mf) {
508
508
  return e == null || e === "" ? "" : Ns(e).format(t);
509
509
  }
510
- function Ti(e, t = yf) {
510
+ function Mi(e, t = yf) {
511
511
  return e == null || e === "" ? "" : Ns(e).format(t);
512
512
  }
513
513
  function pr(e) {
@@ -808,7 +808,7 @@ function kf() {
808
808
  function ac(e) {
809
809
  xn(At.COMP_PROVIDE, e);
810
810
  }
811
- function ri() {
811
+ function si() {
812
812
  return bn(At.MENU_PROVIDE, {});
813
813
  }
814
814
  function Rf(e) {
@@ -935,13 +935,13 @@ const lc = /* @__PURE__ */ ae({
935
935
  }
936
936
  }), Of = (e, t) => {
937
937
  const n = document.createElement("div"), o = K(lc);
938
- t && (o.appContext = t), Yi(o, n);
938
+ t && (o.appContext = t), Gi(o, n);
939
939
  const i = e.afterClose;
940
940
  e.afterClose = () => {
941
- i && i(), Yi(null, n);
941
+ i && i(), Gi(null, n);
942
942
  }, o.component && o.component.exposed && o.component.exposed.open(e);
943
943
  };
944
- function si() {
944
+ function ci() {
945
945
  const t = Fs()?.appContext;
946
946
  return {
947
947
  openLayer: (o) => {
@@ -983,7 +983,7 @@ const Bf = de(lc), Lf = /* @__PURE__ */ ae({
983
983
  c.groupId = c.groupId || Cl(), a[c.groupId] = a[c.groupId] || [], a[c.groupId].push(c);
984
984
  }
985
985
  return a;
986
- }), { openLayer: o } = si(), i = (a) => {
986
+ }), { openLayer: o } = ci(), i = (a) => {
987
987
  a.config?.disabled || a.click && a.click({ openLayer: o });
988
988
  };
989
989
  return (a, l) => {
@@ -2229,7 +2229,7 @@ const Bf = de(lc), Lf = /* @__PURE__ */ ae({
2229
2229
  t.hideMidWhenNarrow && o.value && typeof window < "u" && window.ResizeObserver && (z(), $ = new ResizeObserver(() => {
2230
2230
  z();
2231
2231
  }), $.observe(o.value));
2232
- }), ii(() => {
2232
+ }), ai(() => {
2233
2233
  $ && $.disconnect();
2234
2234
  }), (D, M) => (C(), I("div", {
2235
2235
  ref_key: "layout",
@@ -2337,7 +2337,7 @@ function Vt(e, t) {
2337
2337
  return ((n = pt(e).originalRowHeights) === null || n === void 0 ? void 0 : n.get(t)) || 0;
2338
2338
  }
2339
2339
  const mr = /* @__PURE__ */ new WeakMap();
2340
- function Zo(e, t) {
2340
+ function Qo(e, t) {
2341
2341
  let n = mr.get(e);
2342
2342
  if (n || (n = /* @__PURE__ */ new Map(), mr.set(e, n)), n.has(t)) return n.get(t);
2343
2343
  for (let o = 0; o < e.colCount; o++)
@@ -2787,12 +2787,12 @@ class yh {
2787
2787
  if (!t.stateManager) return;
2788
2788
  const o = n?.headerCheckedState || t.stateManager.headerCheckedState, i = n?.checkedState || {};
2789
2789
  Object.keys(o).forEach(((a) => {
2790
- const l = o[a], r = Zo(t, a);
2790
+ const l = o[a], r = Qo(t, a);
2791
2791
  r !== -1 && t.isHeader(r, 0) && t.scenegraph.updateHeaderCheckboxCellState(r, 0, l);
2792
2792
  })), n?.checkedState ? Object.keys(i).forEach(((a) => {
2793
2793
  const l = i[a], r = Number(a);
2794
2794
  Object.keys(l).forEach(((s) => {
2795
- const c = l[s], u = Zo(t, s);
2795
+ const c = l[s], u = Qo(t, s);
2796
2796
  if (u !== -1) {
2797
2797
  for (let d = t.columnHeaderLevelCount; d < t.rowCount; d++)
2798
2798
  if (t.getRecordIndexByCell(u, d) === r) {
@@ -2804,7 +2804,7 @@ class yh {
2804
2804
  })) : t.stateManager.checkedState.forEach(((a, l) => {
2805
2805
  const r = Number(l);
2806
2806
  Object.keys(a).forEach(((s) => {
2807
- const c = a[s], u = Zo(t, s);
2807
+ const c = a[s], u = Qo(t, s);
2808
2808
  if (u !== -1) {
2809
2809
  for (let d = t.columnHeaderLevelCount; d < t.rowCount; d++)
2810
2810
  if (t.getRecordIndexByCell(u, d) === r) {
@@ -3611,7 +3611,7 @@ function Ch(e, t, n, o) {
3611
3611
  let a = !1;
3612
3612
  const l = t.stateManager.headerCheckedState[o];
3613
3613
  l !== void 0 && (a = l);
3614
- const r = Zo(e, o);
3614
+ const r = Qo(e, o);
3615
3615
  if (r !== -1 && e.stateManager && (e.stateManager.setCheckedState(r, i, o, a), e.getCellType(r, i) === "checkbox" && qi(r, i, a, e), e.internalProps.enableCheckboxCascade)) {
3616
3616
  const s = e.stateManager.headerCheckedState[o], c = e.stateManager.updateHeaderCheckedState(o, r, 0);
3617
3617
  s !== c && e.isHeader(r, 0) && e.scenegraph.updateHeaderCheckboxCellState(r, 0, c);
@@ -3625,7 +3625,7 @@ function yr(e, t, n) {
3625
3625
  let r = e.stateManager.checkedState.get(l);
3626
3626
  r || (r = {}, e.stateManager.checkedState.set(l, r)), r[t] = n;
3627
3627
  }));
3628
- const o = Zo(e, t);
3628
+ const o = Qo(e, t);
3629
3629
  if (o >= 0) {
3630
3630
  e.scenegraph.updateHeaderCheckboxCellState(o, 0, n);
3631
3631
  for (let i = e.columnHeaderLevelCount; i < e.rowCount; i++) qi(o, i, n, e);
@@ -3893,7 +3893,7 @@ class Sh {
3893
3893
  this.mainTableClickHandler && (this.table.off("click_cell", this.mainTableClickHandler), this.mainTableClickHandler = void 0), this.tableAPIExtensions && (this.tableAPIExtensions.cleanup(), this.tableAPIExtensions = void 0);
3894
3894
  }
3895
3895
  }
3896
- const Mi = {
3896
+ const Pi = {
3897
3897
  cellInnerBorder: !1,
3898
3898
  defaultStyle: {
3899
3899
  bgColor: "#fff",
@@ -4175,7 +4175,7 @@ const Mi = {
4175
4175
  const R = { ...y.value };
4176
4176
  return x.value === "j-layer-form" && (R.schema = n.children), x.value === "el-collapse-item" && R.label && (R.title = R.label, delete R.label), ["j-input-cards", "j-input-rows", "j-table"].includes(b.value) && (console.log(n.children), R.columns = n.children.map((z) => {
4177
4177
  const $ = z.config?.parentTableId;
4178
- return $ && z.id.startsWith($ + ".") ? {
4178
+ return $ && z.id && z.id.startsWith($ + ".") ? {
4179
4179
  ...z,
4180
4180
  id: z.id.slice($.length + 1)
4181
4181
  } : z;
@@ -4351,7 +4351,7 @@ class _h {
4351
4351
  colNum: i,
4352
4352
  rowNum: a
4353
4353
  });
4354
- return h.appContext = l._getAppContext(), Yi(h, f), o?.rect && this.adjustPosition(o.rect), !0;
4354
+ return h.appContext = l._getAppContext(), Gi(h, f), o?.rect && this.adjustPosition(o.rect), !0;
4355
4355
  }
4356
4356
  /**
4357
4357
  * 获取当前编辑值
@@ -4380,7 +4380,7 @@ class _h {
4380
4380
  const t = this.wrapContainer;
4381
4381
  if (t) {
4382
4382
  try {
4383
- Yi(null, t);
4383
+ Gi(null, t);
4384
4384
  } catch {
4385
4385
  }
4386
4386
  try {
@@ -4643,7 +4643,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
4643
4643
  },
4644
4644
  emits: ["ready", "selectionChanged", "update:tablePage", "update:pageSize", "loadPageData", "rowChange", "update:modelValue", "change"],
4645
4645
  setup(e, { expose: t, emit: n }) {
4646
- const o = Fs(), i = e, a = n, { formData: l } = ao(), { useData: r } = Rt(), { getLabel: s, getObjectList: c } = r(), { openLayer: u } = si(), d = j(() => i.heightMode === "auto" ? { height: "auto" } : {}), f = A(40), p = j(() => {
4646
+ const o = Fs(), i = e, a = n, { formData: l } = ao(), { useData: r } = Rt(), { getLabel: s, getObjectList: c } = r(), { openLayer: u } = ci(), d = j(() => i.heightMode === "auto" ? { height: "auto" } : {}), f = A(40), p = j(() => {
4647
4647
  const L = {};
4648
4648
  return i.heightMode === "auto" && (i.emptyTipText && f.value < 200 ? L.height = "200px" : L.height = f.value + "px", L.flex = "none", i.maxHeight && (L.maxHeight = typeof i.maxHeight == "number" ? `${i.maxHeight}px` : i.maxHeight)), L;
4649
4649
  }), h = A(null);
@@ -4832,10 +4832,10 @@ const Mh = { class: "j-table-footer" }, Ph = {
4832
4832
  }, Xn = (Bt, Et, Je) => {
4833
4833
  const Ie = Math.min(Je, Et / 2, Bt / 2);
4834
4834
  return Bt <= Ie * 2 ? nn(Bt, Et, Je) : `M ${Ie} 0 L ${Bt} 0 L ${Bt} ${Et} L ${Ie} ${Et} Q 0 ${Et} 0 ${Et - Ie} L 0 ${Ie} Q 0 0 ${Ie} 0 Z`;
4835
- }, Ta = pe / 2, _i = nn(Wt, pe, Ta);
4835
+ }, Ta = pe / 2, Ei = nn(Wt, pe, Ta);
4836
4836
  if (It.push({
4837
4837
  type: "icon",
4838
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Wt}" height="${pe}" viewBox="0 0 ${Wt} ${pe}"><path d="${_i}" fill="#e5e6eb"/></svg>`,
4838
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Wt}" height="${pe}" viewBox="0 0 ${Wt} ${pe}"><path d="${Ei}" fill="#e5e6eb"/></svg>`,
4839
4839
  x: ot,
4840
4840
  y: Ft,
4841
4841
  width: Wt,
@@ -4851,11 +4851,11 @@ const Mh = { class: "j-table-footer" }, Ph = {
4851
4851
  height: pe
4852
4852
  });
4853
4853
  }
4854
- const Ei = ot + Wt + et, Ma = J.height / 2;
4854
+ const ki = ot + Wt + et, Ma = J.height / 2;
4855
4855
  return It.push({
4856
4856
  type: "text",
4857
4857
  text: We,
4858
- x: Ei,
4858
+ x: ki,
4859
4859
  y: Ma,
4860
4860
  fontSize: 14,
4861
4861
  fill: "#333333",
@@ -4923,7 +4923,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
4923
4923
  const Ie = Z(Je, ot), Gt = on(Ie) || 0;
4924
4924
  return Math.min(ut, Gt + Le * 2);
4925
4925
  }, Ht = (Je, Ie, Gt, Lt, Tn) => {
4926
- const ki = Z(Gt, ot), Ju = ft(ki), Xu = on(ki) || 0, vo = Math.min(ut, Xu + Le * 2), qu = Lt || "#f2f3f5", Zu = Tn || "#1d2129", Qu = ke / 2 + ct * 0.35, ed = `<svg xmlns="http://www.w3.org/2000/svg" width="${vo}" height="${ke}" viewBox="0 0 ${vo} ${ke}"><rect x="0" y="0" width="${vo}" height="${ke}" rx="${pe}" ry="${pe}" fill="${qu}"/><text x="${vo / 2}" y="${Qu}" text-anchor="middle" font-size="${ct}" fill="${Zu}">${Ju}</text></svg>`;
4926
+ const Ri = Z(Gt, ot), Ju = ft(Ri), Xu = on(Ri) || 0, vo = Math.min(ut, Xu + Le * 2), qu = Lt || "#f2f3f5", Zu = Tn || "#1d2129", Qu = ke / 2 + ct * 0.35, ed = `<svg xmlns="http://www.w3.org/2000/svg" width="${vo}" height="${ke}" viewBox="0 0 ${vo} ${ke}"><rect x="0" y="0" width="${vo}" height="${ke}" rx="${pe}" ry="${pe}" fill="${qu}"/><text x="${vo / 2}" y="${Qu}" text-anchor="middle" font-size="${ct}" fill="${Zu}">${Ju}</text></svg>`;
4927
4927
  return Ft.push({
4928
4928
  type: "icon",
4929
4929
  svg: ed,
@@ -4945,8 +4945,8 @@ const Mh = { class: "j-table-footer" }, Ph = {
4945
4945
  }
4946
4946
  nn.length > 0 && It.push({ items: nn, lineWidth: Xn });
4947
4947
  const Ta = J.height;
4948
- let _i = Math.max(1, Math.floor((Ta + Fe) / (ke + Fe))), Ei = !1;
4949
- if (It.length > _i && (Ei = !0, It.length = _i), Ei) {
4948
+ let Ei = Math.max(1, Math.floor((Ta + Fe) / (ke + Fe))), ki = !1;
4949
+ if (It.length > Ei && (ki = !0, It.length = Ei), ki) {
4950
4950
  const Je = It[It.length - 1], Ie = Wt("...");
4951
4951
  let Gt = Je.lineWidth + (Je.items.length > 0 ? et : 0) + Ie;
4952
4952
  for (; Gt > ut && Je.items.length > 0; ) {
@@ -4962,14 +4962,14 @@ const Mh = { class: "j-table-footer" }, Ph = {
4962
4962
  const Ie = It[Je];
4963
4963
  let Gt = De === "center" ? We + Math.max(0, (ut - Ie.lineWidth) / 2) : De === "right" ? We + Math.max(0, ut - Ie.lineWidth) : We;
4964
4964
  for (let Lt = 0; Lt < Ie.items.length; Lt++) {
4965
- const Tn = Ie.items[Lt], { tagWidth: ki } = Ht(
4965
+ const Tn = Ie.items[Lt], { tagWidth: Ri } = Ht(
4966
4966
  Gt,
4967
4967
  Et,
4968
4968
  Tn.label,
4969
4969
  Tn.bg,
4970
4970
  Tn.text
4971
4971
  );
4972
- Gt += ki + (Lt < Ie.items.length - 1 ? et : 0);
4972
+ Gt += Ri + (Lt < Ie.items.length - 1 ? et : 0);
4973
4973
  }
4974
4974
  Et += ke + (Je < It.length - 1 ? Fe : 0);
4975
4975
  }
@@ -5230,10 +5230,10 @@ const Mh = { class: "j-table-footer" }, Ph = {
5230
5230
  style: {
5231
5231
  textAlign: "center"
5232
5232
  }
5233
- }, i.selectField && (U.rowSeriesNumber.field = i.selectField)), U.theme = Mi, i.heightMode === "auto" && (U.theme = {
5234
- ...Mi,
5233
+ }, i.selectField && (U.rowSeriesNumber.field = i.selectField)), U.theme = Pi, i.heightMode === "auto" && (U.theme = {
5234
+ ...Pi,
5235
5235
  scrollStyle: {
5236
- ...Mi.scrollStyle,
5236
+ ...Pi.scrollStyle,
5237
5237
  hoverOn: !0,
5238
5238
  width: 8
5239
5239
  }
@@ -5250,7 +5250,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
5250
5250
  margin: [8, 8, 8, 0],
5251
5251
  height: "auto"
5252
5252
  },
5253
- theme: Mi,
5253
+ theme: Pi,
5254
5254
  ...L.option
5255
5255
  }
5256
5256
  };
@@ -5361,7 +5361,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
5361
5361
  clearColWidthCache: !1,
5362
5362
  clearRowHeightCache: !1
5363
5363
  }), i.heightMode === "auto" && (f.value = g.getAllRowsHeight()), L ? w.value = 0 : (w.value = U.length, U.length > 0 && kn(U));
5364
- }, rr = j(() => i.editConfig.isAddBtn), Nu = j(() => i.editConfig.addBtnText || "添加"), Si = j(() => i.editConfig.isRemoveBtn), Wu = j(() => i.editConfig.readonly), Rn = j(() => i.isMultiple || Si.value), sr = () => {
5364
+ }, rr = j(() => i.editConfig.isAddBtn), Nu = j(() => i.editConfig.addBtnText || "添加"), _i = j(() => i.editConfig.isRemoveBtn), Wu = j(() => i.editConfig.readonly), Rn = j(() => i.isMultiple || _i.value), sr = () => {
5365
5365
  const L = i.modelValue || [];
5366
5366
  return L.forEach((U) => {
5367
5367
  U._i || (U._i = Bn());
@@ -5441,7 +5441,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
5441
5441
  i.subColumns,
5442
5442
  i.isSubShowNumber,
5443
5443
  i.subActions,
5444
- Si.value
5444
+ _i.value
5445
5445
  ],
5446
5446
  () => {
5447
5447
  Qe();
@@ -5480,7 +5480,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
5480
5480
  }, null, 512)
5481
5481
  ], 4),
5482
5482
  N("div", Mh, [
5483
- e.isPage || !Wu.value && (rr.value || Si.value) ? (C(), I("div", Ph, [
5483
+ e.isPage || !Wu.value && (rr.value || _i.value) ? (C(), I("div", Ph, [
5484
5484
  K(X, null, {
5485
5485
  default: W(() => [
5486
5486
  rr.value ? (C(), H(J, {
@@ -5490,7 +5490,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
5490
5490
  icon: "mdi:add",
5491
5491
  onClick: Yu
5492
5492
  }, null, 8, ["label"])) : Y("", !0),
5493
- Si.value ? (C(), H(J, {
5493
+ _i.value ? (C(), H(J, {
5494
5494
  key: 1,
5495
5495
  type: "link",
5496
5496
  label: "删除",
@@ -6960,7 +6960,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
6960
6960
  }, null, 8, ["modelValue", "min", "max", "disabled", "step", "show-input", "show-input-controls", "size", "input-size", "show-stops", "show-tooltip", "format-tooltip", "range", "vertical", "height", "aria-label", "range-start-label", "range-end-label", "format-value-text", "tooltip-class", "placement", "marks", "validate-event", "persistent"]);
6961
6961
  };
6962
6962
  }
6963
- }), hp = de(fp), Pi = (e) => e < 1024 ? Ri(e) + " B" : e >= 1024 && e < 1048576 ? Ri(e / 1024) + " KB" : e >= 1048576 && e < 1073741824 ? Ri(e / 1024 / 1024) + " MB" : e >= 1073741824 ? Ri(e / 1024 / 1024 / 1024) + " GB" : "", pp = (e) => {
6963
+ }), hp = de(fp), Ai = (e) => e < 1024 ? Ti(e) + " B" : e >= 1024 && e < 1048576 ? Ti(e / 1024) + " KB" : e >= 1048576 && e < 1073741824 ? Ti(e / 1024 / 1024) + " MB" : e >= 1073741824 ? Ti(e / 1024 / 1024 / 1024) + " GB" : "", pp = (e) => {
6964
6964
  const t = window.open("_blank");
6965
6965
  t && (t.location = e);
6966
6966
  }, gp = {
@@ -7042,13 +7042,13 @@ const Mh = { class: "j-table-footer" }, Ph = {
7042
7042
  N("div", null, [
7043
7043
  c.status === "uploading" ? (C(), H(a, { key: 0 }, {
7044
7044
  default: W(() => [
7045
- Kt(we(G(Pi)(c.uploadSize)) + "/", 1)
7045
+ Kt(we(G(Ai)(c.uploadSize)) + "/", 1)
7046
7046
  ]),
7047
7047
  _: 2
7048
7048
  }, 1024)) : Y("", !0),
7049
7049
  K(a, null, {
7050
7050
  default: W(() => [
7051
- Kt(we(G(Pi)(c.size)), 1)
7051
+ Kt(we(G(Ai)(c.size)), 1)
7052
7052
  ]),
7053
7053
  _: 2
7054
7054
  }, 1024)
@@ -7136,13 +7136,13 @@ const Mh = { class: "j-table-footer" }, Ph = {
7136
7136
  ]),
7137
7137
  c.status === "uploading" ? (C(), H(a, { key: 0 }, {
7138
7138
  default: W(() => [
7139
- Kt(we(G(Pi)(c.uploadSize)) + "/", 1)
7139
+ Kt(we(G(Ai)(c.uploadSize)) + "/", 1)
7140
7140
  ]),
7141
7141
  _: 2
7142
7142
  }, 1024)) : Y("", !0),
7143
7143
  K(a, null, {
7144
7144
  default: W(() => [
7145
- Kt(we(G(Pi)(c.size)), 1)
7145
+ Kt(we(G(Ai)(c.size)), 1)
7146
7146
  ]),
7147
7147
  _: 2
7148
7148
  }, 1024),
@@ -7408,7 +7408,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
7408
7408
  const Te = m(Z);
7409
7409
  return ["webp", "bmp", "jpg", "jpge", "png", "tif", "gif", "svg"].includes(Te) ? "file-image" : _[Te] || "file-ufo";
7410
7410
  }, S = (Z) => {
7411
- Z.status = n.autoUpload ? "uploading" : "unUpload", Z.uploadSize = 0, Z.icon = E(Z.name, Z.type), d || (Z.icon = "file-text"), Z.id = Z.uid, Z.url = window.URL.createObjectURL(Z), Z.date = Ti(), Z.param = y.value;
7411
+ Z.status = n.autoUpload ? "uploading" : "unUpload", Z.uploadSize = 0, Z.icon = E(Z.name, Z.type), d || (Z.icon = "file-text"), Z.id = Z.uid, Z.url = window.URL.createObjectURL(Z), Z.date = Mi(), Z.param = y.value;
7412
7412
  }, T = (Z) => {
7413
7413
  o("start", { file: Z, list: b.value });
7414
7414
  }, P = (Z, fe, Te) => {
@@ -7456,7 +7456,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
7456
7456
  await k(Z) && O(Z);
7457
7457
  }, re = A(!1), ue = A(""), ge = A(""), ze = A(!1), dt = A(!1);
7458
7458
  let ee = null;
7459
- const Ne = A(Ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), Ke = (Z) => {
7459
+ const Ne = A(Mi(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), Ke = (Z) => {
7460
7460
  if (Z.isPreview === !1 && !n.isUploadImg) {
7461
7461
  i && i("无权限预览!");
7462
7462
  return;
@@ -7487,12 +7487,12 @@ const Mh = { class: "j-table-footer" }, Ph = {
7487
7487
  dt.value = !0, ze.value = !0;
7488
7488
  break;
7489
7489
  }
7490
- Ne.value = Ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
7490
+ Ne.value = Mi(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
7491
7491
  }, Se = (Z) => {
7492
7492
  const fe = Z.response?.fileId || Z.id;
7493
7493
  if (!s)
7494
7494
  return "";
7495
- const Te = Ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + fe, nt = Cf.createAesEncryption({ key: "jianda" }).encrypt(Te).replace(/\//g, "|");
7495
+ const Te = Mi(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + fe, nt = Cf.createAesEncryption({ key: "jianda" }).encrypt(Te).replace(/\//g, "|");
7496
7496
  return `${s}/system/annexesfile/preview/${nt}?token=${c?.value}`;
7497
7497
  }, tt = () => {
7498
7498
  ee.isDown === !1 && i && i("无权限下载!");
@@ -7674,7 +7674,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
7674
7674
  { deep: !0 }
7675
7675
  ), St(() => {
7676
7676
  c();
7677
- }), ii(() => {
7677
+ }), ai(() => {
7678
7678
  s && clearTimeout(s), r && a.value && (r.unobserve(a.value), r.disconnect(), r = null), l.value && (l.value.dispose(), l.value = void 0);
7679
7679
  }), t({
7680
7680
  getInstance: () => l.value,
@@ -8217,7 +8217,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
8217
8217
  n.callback?.(a.value);
8218
8218
  }));
8219
8219
  };
8220
- return ii(() => {
8220
+ return ai(() => {
8221
8221
  a.value = null;
8222
8222
  }), ra(() => {
8223
8223
  a.value = null;
@@ -8768,7 +8768,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
8768
8768
  scrollIntoView: !0
8769
8769
  });
8770
8770
  }), h.observe(a.value));
8771
- }), ii(() => {
8771
+ }), ai(() => {
8772
8772
  h && a.value && (h.unobserve(a.value), h.disconnect(), h = null), r && (r.destroy(), r = null);
8773
8773
  }), t({
8774
8774
  /**
@@ -8910,7 +8910,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
8910
8910
  }), mg = /* @__PURE__ */ ae({
8911
8911
  name: "JSliderCaptcha",
8912
8912
  __name: "slider-captcha",
8913
- props: /* @__PURE__ */ ni({
8913
+ props: /* @__PURE__ */ oi({
8914
8914
  class: {},
8915
8915
  actionStyle: { default: () => ({}) },
8916
8916
  barStyle: { default: () => ({}) },
@@ -8922,9 +8922,9 @@ const Mh = { class: "j-table-footer" }, Ph = {
8922
8922
  modelValue: { type: Boolean, default: void 0 },
8923
8923
  modelModifiers: {}
8924
8924
  }),
8925
- emits: /* @__PURE__ */ ni(["end", "move", "start", "success"], ["update:modelValue"]),
8925
+ emits: /* @__PURE__ */ oi(["end", "move", "start", "success"], ["update:modelValue"]),
8926
8926
  setup(e, { emit: t }) {
8927
- const n = e, o = t, i = ti(e, "modelValue"), a = Mo({
8927
+ const n = e, o = t, i = ni(e, "modelValue"), a = Mo({
8928
8928
  endTime: 0,
8929
8929
  isMoving: !1,
8930
8930
  isPassing: !1,
@@ -9033,7 +9033,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9033
9033
  },
9034
9034
  emits: ["click"],
9035
9035
  setup(e, { emit: t }) {
9036
- const n = e, o = t, { getMenuMap: i, toArray: a, activeMenu: l, theme: r } = ri(), { getHMoreMenus: s } = Tf(), c = A([]);
9036
+ const n = e, o = t, { getMenuMap: i, toArray: a, activeMenu: l, theme: r } = si(), { getHMoreMenus: s } = Tf(), c = A([]);
9037
9037
  n.pId === "moreId" ? c.value = s.value : c.value = a(i()[n.pId || ""] || [], []);
9038
9038
  const u = (h) => {
9039
9039
  const g = c.value.find((v) => v.active);
@@ -9096,7 +9096,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9096
9096
  },
9097
9097
  emits: ["click"],
9098
9098
  setup(e, { emit: t }) {
9099
- const { t: n } = Rt(), { activeMenuId: o } = ri(), i = t, a = (l) => {
9099
+ const { t: n } = Rt(), { activeMenuId: o } = si(), i = t, a = (l) => {
9100
9100
  i("click", l);
9101
9101
  };
9102
9102
  return (l, r) => {
@@ -9227,7 +9227,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9227
9227
  },
9228
9228
  emits: ["click"],
9229
9229
  setup(e, { emit: t }) {
9230
- const n = e, o = t, { activeMenu: i, theme: a } = ri(), l = (d) => {
9230
+ const n = e, o = t, { activeMenu: i, theme: a } = si(), l = (d) => {
9231
9231
  o("click", d);
9232
9232
  }, r = j(() => n.menuList), { list: s, containerProps: c, wrapperProps: u } = gl(r, {
9233
9233
  itemHeight: 44
@@ -9261,7 +9261,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9261
9261
  },
9262
9262
  emits: ["click"],
9263
9263
  setup(e, { emit: t }) {
9264
- const n = e, o = t, { activeMenu: i, theme: a } = ri(), l = A(), r = A(0);
9264
+ const n = e, o = t, { activeMenu: i, theme: a } = si(), l = A(), r = A(0);
9265
9265
  let s = null;
9266
9266
  St(() => {
9267
9267
  typeof window < "u" && window.ResizeObserver && l.value && (s = new ResizeObserver(() => {
@@ -9300,7 +9300,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9300
9300
  };
9301
9301
  return Mf({
9302
9302
  getHMoreMenus: u
9303
- }), ii(() => {
9303
+ }), ai(() => {
9304
9304
  s && l.value && (s.unobserve(l.value), s.disconnect(), s = null);
9305
9305
  }), (p, h) => (C(), I("div", {
9306
9306
  ref_key: "menuRef",
@@ -9327,7 +9327,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9327
9327
  },
9328
9328
  emits: ["click"],
9329
9329
  setup(e, { emit: t }) {
9330
- const n = e, o = t, { activeMenu: i, theme: a } = ri(), l = [
9330
+ const n = e, o = t, { activeMenu: i, theme: a } = si(), l = [
9331
9331
  "var(--j-color-primary)",
9332
9332
  "var(--j-color-success)",
9333
9333
  "var(--j-color-warning)",
@@ -9509,7 +9509,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9509
9509
  }, jg = /* @__PURE__ */ ae({
9510
9510
  name: "JKeywordPanel",
9511
9511
  __name: "keyword-panel",
9512
- props: /* @__PURE__ */ ni({
9512
+ props: /* @__PURE__ */ oi({
9513
9513
  columns: {
9514
9514
  type: Array,
9515
9515
  default: () => []
@@ -9522,7 +9522,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9522
9522
  }),
9523
9523
  emits: ["update:checkAll", "update:checkFields"],
9524
9524
  setup(e, { expose: t }) {
9525
- const { t: n } = Rt(), o = e, i = ti(e, "checkAll"), a = ti(e, "checkFields"), l = A(!1), r = A(""), s = j(
9525
+ const { t: n } = Rt(), o = e, i = ni(e, "checkAll"), a = ni(e, "checkFields"), l = A(!1), r = A(""), s = j(
9526
9526
  () => o.columns.filter((f) => f.config?.filter?.isSearchKeyword ? r.value ? f.config?.label?.indexOf(r.value) != -1 : !0 : !1).map((f) => ({
9527
9527
  label: f.config?.label,
9528
9528
  value: f.id
@@ -9591,7 +9591,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9591
9591
  }, Ig = { class: "content" }, Og = { class: "relation" }, Bg = { style: { width: "72px" } }, Lg = { class: "btn-wrapper" }, $g = { class: "field-wrapper" }, zg = { class: "buttons" }, wr = /* @__PURE__ */ ae({
9592
9592
  name: "JFilterPanel",
9593
9593
  __name: "filter-panel",
9594
- props: /* @__PURE__ */ ni({
9594
+ props: /* @__PURE__ */ oi({
9595
9595
  columns: {
9596
9596
  type: Array,
9597
9597
  default: () => []
@@ -9606,9 +9606,9 @@ const Mh = { class: "j-table-footer" }, Ph = {
9606
9606
  isPin: { default: !1 },
9607
9607
  isPinModifiers: {}
9608
9608
  }),
9609
- emits: /* @__PURE__ */ ni(["filter", "close"], ["update:relation", "update:isPin"]),
9609
+ emits: /* @__PURE__ */ oi(["filter", "close"], ["update:relation", "update:isPin"]),
9610
9610
  setup(e, { expose: t, emit: n }) {
9611
- const { t: o } = Rt(), i = e, a = ti(e, "relation"), l = ti(e, "isPin"), r = A([]), s = () => {
9611
+ const { t: o } = Rt(), i = e, a = ni(e, "relation"), l = ni(e, "isPin"), r = A([]), s = () => {
9612
9612
  l.value = !l.value;
9613
9613
  }, c = [
9614
9614
  {
@@ -9964,26 +9964,26 @@ const Mh = { class: "j-table-footer" }, Ph = {
9964
9964
  const { t: o } = Rt(), i = e, a = n, l = A(), r = A(""), s = {}, c = A([]), u = A([]), d = (m, E) => {
9965
9965
  const S = [], T = /* @__PURE__ */ new Map();
9966
9966
  m.forEach((R) => {
9967
- T.set(R.id, R), s[R.id] = R;
9967
+ T.set(R.id || "", R), s[R.id || ""] = R;
9968
9968
  });
9969
9969
  const P = /* @__PURE__ */ new Set();
9970
9970
  return E && E.length > 0 && E.forEach((R) => {
9971
9971
  const z = T.get(R.id);
9972
9972
  if (z) {
9973
- P.add(z.id);
9973
+ P.add(z.id || "");
9974
9974
  const $ = {
9975
- id: z.id,
9976
- label: z.config?.label || z.id,
9975
+ id: z.id || "",
9976
+ label: z.config?.label || z.id || "",
9977
9977
  type: z.type,
9978
9978
  display: z.config?.display !== !1
9979
9979
  };
9980
9980
  z.children && z.children.length > 0 && ($.children = d(z.children, R.children)), S.push($);
9981
9981
  }
9982
9982
  }), m.forEach((R) => {
9983
- if (!P.has(R.id)) {
9983
+ if (!P.has(R.id || "")) {
9984
9984
  const z = {
9985
- id: R.id,
9986
- label: R.config?.label || R.id,
9985
+ id: R.id || "",
9986
+ label: R.config?.label || R.id || "",
9987
9987
  type: R.type,
9988
9988
  display: R.config?.display !== !1
9989
9989
  };
@@ -10020,11 +10020,11 @@ const Mh = { class: "j-table-footer" }, Ph = {
10020
10020
  return E.forEach((T) => {
10021
10021
  let P = !0;
10022
10022
  if (g.value.size > 0) {
10023
- const R = g.value.get(T.id);
10023
+ const R = g.value.get(T.id || "");
10024
10024
  R ? P = R.display : P = T.config?.display !== !1;
10025
10025
  } else
10026
10026
  P = T.config?.display !== !1;
10027
- P && (S.push(T.id), T.children && S.push(...m(T.children)));
10027
+ P && (S.push(T.id || ""), T.children && S.push(...m(T.children)));
10028
10028
  }), S;
10029
10029
  };
10030
10030
  h.value = m(i.columns);
@@ -10256,7 +10256,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
10256
10256
  },
10257
10257
  emits: ["select", "ready"],
10258
10258
  setup(e, { expose: t, emit: n }) {
10259
- const { t: o } = Rt(), { openLayer: i } = si(), a = e, l = n;
10259
+ const { t: o } = Rt(), { openLayer: i } = ci(), a = e, l = n;
10260
10260
  a.isMultiple && !a.rowKey && console.warn("rowKey is required when isMultiple is true");
10261
10261
  const r = A();
10262
10262
  let s = [];
@@ -11034,7 +11034,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
11034
11034
  }, S = (D) => {
11035
11035
  const M = yn(o.treeButtons);
11036
11036
  return D && o.filterButton ? o.filterButton({ buttons: M, node: D }) : M;
11037
- }, { openLayer: T } = si(), P = (D, M) => {
11037
+ }, { openLayer: T } = ci(), P = (D, M) => {
11038
11038
  D.config?.disabled || D.click && D.click({ data: M, openLayer: T });
11039
11039
  }, R = A(""), z = (D, M) => {
11040
11040
  R.value = D ? M.value : "", console.log(R.value, "row");
@@ -11377,7 +11377,7 @@ const Rv = /* @__PURE__ */ ae({
11377
11377
  }, ze = async (V, le) => {
11378
11378
  v.value = !1;
11379
11379
  const q = !!le;
11380
- S.splice(0, S.length), R = {}, z = {}, $ = [], F = le, Ji(m), P.value = {}, q && re(le, ""), ge(V, S, q), D = yn(m), Pt(() => {
11380
+ S.splice(0, S.length), R = {}, z = {}, $ = [], F = le, Zo(m), Zo(T), P.value = {}, q && re(le, ""), ge(V, S, q), D = yn(m), Pt(() => {
11381
11381
  v.value = !0, Pt(() => {
11382
11382
  _n(o.config?.codeInit, {});
11383
11383
  });
@@ -11447,7 +11447,7 @@ const Rv = /* @__PURE__ */ ae({
11447
11447
  if (!ie)
11448
11448
  return {};
11449
11449
  const ve = _o({
11450
- config: { ...ie.config || {}, ...P.value[ie.id] || {} },
11450
+ config: { ...ie.config || {}, ...P.value[ie.id || ""] || {} },
11451
11451
  getCompConfig: ie.getCompConfig,
11452
11452
  formData: m,
11453
11453
  getTableData: q,
@@ -11490,7 +11490,7 @@ const Rv = /* @__PURE__ */ ae({
11490
11490
  `${p(T[Object.keys(V)[0]]?.config?.label)}:${p(V[Object.keys(V)[0]].msg)}`
11491
11491
  ), !1) : !0;
11492
11492
  }, fe = () => {
11493
- E.value = {}, Ji(m), Object.keys(D || {}).forEach((V) => {
11493
+ E.value = {}, Zo(m), Object.keys(D || {}).forEach((V) => {
11494
11494
  m[V] = D[V];
11495
11495
  });
11496
11496
  }, Te = (V) => {
@@ -11684,7 +11684,7 @@ const Rv = /* @__PURE__ */ ae({
11684
11684
  a[v.id] = y, y.config = [], qa(y.config, v.config || {}, ["defaultValue"]), v?.config?.defaultValue !== void 0 && (l[v.id] = v.config.defaultValue), g.push(y), b && b.length > 0 && (y.children = [], r(b, y.children));
11685
11685
  });
11686
11686
  }, s = (h) => {
11687
- o.value = !1, i.splice(0, i.length), Ji(a), Ji(l), r(h, i), Pt(() => {
11687
+ o.value = !1, i.splice(0, i.length), Zo(a), Zo(l), r(h, i), Pt(() => {
11688
11688
  o.value = !0;
11689
11689
  });
11690
11690
  };
@@ -11775,7 +11775,7 @@ const Rv = /* @__PURE__ */ ae({
11775
11775
  size: { default: "default" }
11776
11776
  },
11777
11777
  setup(e) {
11778
- const { openLayer: t } = si(), n = (o) => {
11778
+ const { openLayer: t } = ci(), n = (o) => {
11779
11779
  o.config?.disabled || o.click && o.click({ openLayer: t });
11780
11780
  };
11781
11781
  return (o, i) => {
@@ -12420,7 +12420,8 @@ const Rv = /* @__PURE__ */ ae({
12420
12420
  editable: { type: Boolean, default: !1 },
12421
12421
  tabPosition: { default: "top" },
12422
12422
  stretch: { type: Boolean, default: !1 },
12423
- beforeLeave: {}
12423
+ beforeLeave: {},
12424
+ isFill: { type: Boolean }
12424
12425
  },
12425
12426
  emits: ["update:modelValue", "tab-click", "tab-change", "tab-remove", "tab-add", "edit"],
12426
12427
  setup(e, { emit: t }) {
@@ -12813,7 +12814,7 @@ function Qa(e) {
12813
12814
  var t = jo(e) || e;
12814
12815
  return $n(e) && t.shiftKey;
12815
12816
  }
12816
- function ci(e) {
12817
+ function ui(e) {
12817
12818
  return e.flat().join(",").replace(/,?([A-Za-z]),?/g, "$1");
12818
12819
  }
12819
12820
  function pm(e) {
@@ -12842,12 +12843,12 @@ function vm(e, t) {
12842
12843
  o.push(Ba(l));
12843
12844
  continue;
12844
12845
  }
12845
- const c = Ai(l, a, s), u = Ai(l, a, s * 0.5), d = Ai(l, r, s), f = Ai(l, r, s * 0.5);
12846
+ const c = ji(l, a, s), u = ji(l, a, s * 0.5), d = ji(l, r, s), f = ji(l, r, s * 0.5);
12846
12847
  o.push(Ba(c)), o.push(gm(u, f, d));
12847
12848
  }
12848
12849
  return o;
12849
12850
  }
12850
- function Ai(e, t, n) {
12851
+ function ji(e, t, n) {
12851
12852
  const o = t.x - e.x, i = t.y - e.y, a = el(o, i), l = n / a;
12852
12853
  return {
12853
12854
  x: e.x + o * l,
@@ -12865,13 +12866,13 @@ function _l(e, t, n) {
12865
12866
  function vc(e, t) {
12866
12867
  const n = parseInt(e.dataset.cornerRadius, 10) || 0;
12867
12868
  return ye(e, {
12868
- d: ci(vm(t, n))
12869
+ d: ui(vm(t, n))
12869
12870
  }), e;
12870
12871
  }
12871
12872
  function mm(e) {
12872
12873
  return !0;
12873
12874
  }
12874
- function ji(e) {
12875
+ function Hi(e) {
12875
12876
  return $n(e) || hm(e);
12876
12877
  }
12877
12878
  var Er = 500;
@@ -12906,10 +12907,10 @@ function mc(e, t, n) {
12906
12907
  mouseup: "element.mouseup"
12907
12908
  }, c = {
12908
12909
  "element.contextmenu": mm,
12909
- "element.mousedown": ji,
12910
- "element.mouseup": ji,
12911
- "element.click": ji,
12912
- "element.dblclick": ji
12910
+ "element.mousedown": Hi,
12911
+ "element.mouseup": Hi,
12912
+ "element.click": Hi,
12913
+ "element.dblclick": Hi
12913
12914
  };
12914
12915
  function u(S, T, P) {
12915
12916
  var R = s[S];
@@ -13606,7 +13607,7 @@ function kc(e, t, n, o, i) {
13606
13607
  return !h.hidden;
13607
13608
  }), p = dn(f);
13608
13609
  ne(c, function(h) {
13609
- Dt(h) && (h.waypoints = li(h.waypoints, function(g) {
13610
+ Dt(h) && (h.waypoints = ri(h.waypoints, function(g) {
13610
13611
  return {
13611
13612
  x: g.x - p.x - p.width / 2,
13612
13613
  y: g.y - p.y - p.height / 2
@@ -13699,7 +13700,7 @@ const Tc = {
13699
13700
  create: ["type", kc],
13700
13701
  createPreview: ["type", Rc]
13701
13702
  };
13702
- function ui(e, t) {
13703
+ function di(e, t) {
13703
13704
  return !e || !t ? -1 : Math.sqrt(
13704
13705
  Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)
13705
13706
  );
@@ -13707,7 +13708,7 @@ function ui(e, t) {
13707
13708
  function Pl(e, t, n, o) {
13708
13709
  if (typeof o > "u" && (o = 5), !e || !t || !n)
13709
13710
  return !1;
13710
- var i = (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x), a = ui(e, t);
13711
+ var i = (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x), a = di(e, t);
13711
13712
  return Math.abs(i / a) <= o;
13712
13713
  }
13713
13714
  var Vm = 2;
@@ -13953,7 +13954,7 @@ function iy(e) {
13953
13954
  function Ur(e) {
13954
13955
  return e[0] === e[2] && e[1] === e[3] && e[4] === e[6] && e[5] === e[7];
13955
13956
  }
13956
- function Hi(e, t, n, o) {
13957
+ function Ii(e, t, n, o) {
13957
13958
  return [
13958
13959
  e,
13959
13960
  t,
@@ -14045,16 +14046,16 @@ function Gr(e) {
14045
14046
  p.qx = f[1], p.qy = f[2], f = ["C", ...Yr(p.x, p.y, f[1], f[2], f[3], f[4])];
14046
14047
  break;
14047
14048
  case "L":
14048
- f = ["C", ...Hi(p.x, p.y, f[1], f[2])];
14049
+ f = ["C", ...Ii(p.x, p.y, f[1], f[2])];
14049
14050
  break;
14050
14051
  case "H":
14051
- f = ["C", ...Hi(p.x, p.y, f[1], p.y)];
14052
+ f = ["C", ...Ii(p.x, p.y, f[1], p.y)];
14052
14053
  break;
14053
14054
  case "V":
14054
- f = ["C", ...Hi(p.x, p.y, p.x, f[1])];
14055
+ f = ["C", ...Ii(p.x, p.y, p.x, f[1])];
14055
14056
  break;
14056
14057
  case "Z":
14057
- f = ["C", ...Hi(p.x, p.y, p.X, p.Y)];
14058
+ f = ["C", ...Ii(p.x, p.y, p.X, p.Y)];
14058
14059
  break;
14059
14060
  }
14060
14061
  return f;
@@ -14080,7 +14081,7 @@ function ly(e) {
14080
14081
  height: Math.round(e.height)
14081
14082
  };
14082
14083
  }
14083
- function Qo(e) {
14084
+ function ei(e) {
14084
14085
  return {
14085
14086
  x: Math.round(e.x),
14086
14087
  y: Math.round(e.y)
@@ -14103,7 +14104,7 @@ function Ac(e) {
14103
14104
  };
14104
14105
  }
14105
14106
  function ry(e) {
14106
- return Qo({
14107
+ return ei({
14107
14108
  x: e.x + (e.width || 0) / 2,
14108
14109
  y: e.y + (e.height || 0) / 2
14109
14110
  });
@@ -14142,10 +14143,10 @@ function Ln(e, t, n) {
14142
14143
  }
14143
14144
  function il(e, t, n) {
14144
14145
  var o = cy(e, t);
14145
- return o.length === 1 || o.length === 2 && ui(o[0], o[1]) < 1 ? Qo(o[0]) : o.length > 1 ? (o = oi(o, function(i) {
14146
+ return o.length === 1 || o.length === 2 && di(o[0], o[1]) < 1 ? ei(o[0]) : o.length > 1 ? (o = ii(o, function(i) {
14146
14147
  var a = Math.floor(i.t2 * 100) || 1;
14147
14148
  return a = 100 - a, a = (a < 10 ? "0" : "") + a, i.segment2 + "#" + a;
14148
- }), Qo(o[n ? 0 : o.length - 1])) : null;
14149
+ }), ei(o[n ? 0 : o.length - 1])) : null;
14149
14150
  }
14150
14151
  function cy(e, t) {
14151
14152
  return Mc(e, t);
@@ -14153,7 +14154,7 @@ function cy(e, t) {
14153
14154
  function uy(e) {
14154
14155
  e = e.slice();
14155
14156
  for (var t = 0, n, o, i; e[t]; )
14156
- n = e[t], o = e[t - 1], i = e[t + 1], ui(n, i) === 0 || Pl(o, i, n) ? e.splice(t, 1) : t++;
14157
+ n = e[t], o = e[t - 1], i = e[t + 1], di(n, i) === 0 || Pl(o, i, n) ? e.splice(t, 1) : t++;
14157
14158
  return e;
14158
14159
  }
14159
14160
  function dy(e, t) {
@@ -14766,25 +14767,25 @@ function Bo() {
14766
14767
  }
14767
14768
  }), Bl.bind(this, "parent"), Vc.bind(this, "labels"), Nc.bind(this, "outgoing"), Wc.bind(this, "incoming");
14768
14769
  }
14769
- function di() {
14770
+ function fi() {
14770
14771
  Bo.call(this), Bl.bind(this, "children"), Zr.bind(this, "host"), Zr.bind(this, "attachers");
14771
14772
  }
14772
- ro(di, Bo);
14773
+ ro(fi, Bo);
14773
14774
  function Uc() {
14774
14775
  Bo.call(this), Bl.bind(this, "children");
14775
14776
  }
14776
- ro(Uc, di);
14777
+ ro(Uc, fi);
14777
14778
  function Yc() {
14778
- di.call(this), Vc.bind(this, "labelTarget");
14779
+ fi.call(this), Vc.bind(this, "labelTarget");
14779
14780
  }
14780
- ro(Yc, di);
14781
+ ro(Yc, fi);
14781
14782
  function Gc() {
14782
14783
  Bo.call(this), Nc.bind(this, "source"), Wc.bind(this, "target");
14783
14784
  }
14784
14785
  ro(Gc, Bo);
14785
14786
  var My = {
14786
14787
  connection: Gc,
14787
- shape: di,
14788
+ shape: fi,
14788
14789
  label: Yc,
14789
14790
  root: Uc
14790
14791
  };
@@ -14924,7 +14925,7 @@ va.prototype.revert = function(e) {
14924
14925
  var t = e.connection;
14925
14926
  return this._canvas.removeConnection(t), t.source = null, t.target = null, t;
14926
14927
  };
14927
- var Ii = Math.round;
14928
+ var Oi = Math.round;
14928
14929
  function Ll(e) {
14929
14930
  this._modeling = e;
14930
14931
  }
@@ -14940,14 +14941,14 @@ Ll.prototype.preExecute = function(e) {
14940
14941
  return !d.hidden;
14941
14942
  }), s = dn(r);
14942
14943
  ne(t, function(d) {
14943
- Dt(d) && (d.waypoints = li(d.waypoints, function(f) {
14944
+ Dt(d) && (d.waypoints = ri(d.waypoints, function(f) {
14944
14945
  return {
14945
- x: Ii(f.x - s.x - s.width / 2 + i.x),
14946
- y: Ii(f.y - s.y - s.height / 2 + i.y)
14946
+ x: Oi(f.x - s.x - s.width / 2 + i.x),
14947
+ y: Oi(f.y - s.y - s.height / 2 + i.y)
14947
14948
  };
14948
14949
  })), _e(d, {
14949
- x: Ii(d.x - s.x - s.width / 2 + i.x),
14950
- y: Ii(d.y - s.y - s.height / 2 + i.y)
14950
+ x: Oi(d.x - s.x - s.width / 2 + i.x),
14951
+ y: Oi(d.y - s.y - s.height / 2 + i.y)
14951
14952
  });
14952
14953
  });
14953
14954
  var c = Pm(t), u = {};
@@ -14972,13 +14973,13 @@ Ll.prototype.preExecute = function(e) {
14972
14973
  var f = _e({}, a);
14973
14974
  c.indexOf(d) === -1 && (f.autoResize = !1), Ao(d) && (f = qd(f, ["attach"])), u[d.id] = Ct(o) ? l.createShape(
14974
14975
  d,
14975
- Gi(d, ["x", "y", "width", "height"]),
14976
+ Ki(d, ["x", "y", "width", "height"]),
14976
14977
  d.parent || n,
14977
14978
  o,
14978
14979
  f
14979
14980
  ) : l.createShape(
14980
14981
  d,
14981
- Gi(d, ["x", "y", "width", "height"]),
14982
+ Ki(d, ["x", "y", "width", "height"]),
14982
14983
  d.parent || n,
14983
14984
  f
14984
14985
  );
@@ -15004,18 +15005,18 @@ Vn.prototype.revert = function(e) {
15004
15005
  var t = e.shape;
15005
15006
  return this._canvas.removeShape(t), t;
15006
15007
  };
15007
- function fi(e) {
15008
+ function hi(e) {
15008
15009
  Vn.call(this, e);
15009
15010
  }
15010
- ro(fi, Vn);
15011
- fi.$inject = ["canvas"];
15011
+ ro(hi, Vn);
15012
+ hi.$inject = ["canvas"];
15012
15013
  var Iy = Vn.prototype.execute;
15013
- fi.prototype.execute = function(e) {
15014
+ hi.prototype.execute = function(e) {
15014
15015
  var t = e.shape;
15015
15016
  return By(t), t.labelTarget = e.labelTarget, Iy.call(this, e);
15016
15017
  };
15017
15018
  var Oy = Vn.prototype.revert;
15018
- fi.prototype.revert = function(e) {
15019
+ hi.prototype.revert = function(e) {
15019
15020
  return e.shape.labelTarget = null, Oy.call(this, e);
15020
15021
  };
15021
15022
  function By(e) {
@@ -15023,14 +15024,14 @@ function By(e) {
15023
15024
  typeof e[t] > "u" && (e[t] = 0);
15024
15025
  });
15025
15026
  }
15026
- function hi(e, t) {
15027
+ function pi(e, t) {
15027
15028
  this._canvas = e, this._modeling = t;
15028
15029
  }
15029
- hi.$inject = [
15030
+ pi.$inject = [
15030
15031
  "canvas",
15031
15032
  "modeling"
15032
15033
  ];
15033
- hi.prototype.preExecute = function(e) {
15034
+ pi.prototype.preExecute = function(e) {
15034
15035
  var t = this._modeling, n = e.connection;
15035
15036
  ko(n.incoming, function(o) {
15036
15037
  t.removeConnection(o, { nested: !0 });
@@ -15038,11 +15039,11 @@ hi.prototype.preExecute = function(e) {
15038
15039
  t.removeConnection(o, { nested: !0 });
15039
15040
  });
15040
15041
  };
15041
- hi.prototype.execute = function(e) {
15042
+ pi.prototype.execute = function(e) {
15042
15043
  var t = e.connection, n = t.parent;
15043
15044
  return e.parent = n, e.parentIndex = Il(n.children, t), e.source = t.source, e.target = t.target, this._canvas.removeConnection(t), t.source = null, t.target = null, t;
15044
15045
  };
15045
- hi.prototype.revert = function(e) {
15046
+ pi.prototype.revert = function(e) {
15046
15047
  var t = e.connection, n = e.parent, o = e.parentIndex;
15047
15048
  return t.source = e.source, t.target = e.target, Dn(n.children, t, o), this._canvas.addConnection(t, n), t;
15048
15049
  };
@@ -15059,11 +15060,11 @@ $l.prototype.postExecute = function(e) {
15059
15060
  n.get(i.id) && (i.waypoints ? t.removeConnection(i) : t.removeShape(i));
15060
15061
  });
15061
15062
  };
15062
- function pi(e, t) {
15063
+ function gi(e, t) {
15063
15064
  this._canvas = e, this._modeling = t;
15064
15065
  }
15065
- pi.$inject = ["canvas", "modeling"];
15066
- pi.prototype.preExecute = function(e) {
15066
+ gi.$inject = ["canvas", "modeling"];
15067
+ gi.prototype.preExecute = function(e) {
15067
15068
  var t = this._modeling, n = e.shape;
15068
15069
  ko(n.incoming, function(o) {
15069
15070
  t.removeConnection(o, { nested: !0 });
@@ -15073,11 +15074,11 @@ pi.prototype.preExecute = function(e) {
15073
15074
  Dt(o) ? t.removeConnection(o, { nested: !0 }) : t.removeShape(o, { nested: !0 });
15074
15075
  });
15075
15076
  };
15076
- pi.prototype.execute = function(e) {
15077
+ gi.prototype.execute = function(e) {
15077
15078
  var t = this._canvas, n = e.shape, o = n.parent;
15078
15079
  return e.oldParent = o, e.oldParentIndex = Il(o.children, n), t.removeShape(n), n;
15079
15080
  };
15080
- pi.prototype.revert = function(e) {
15081
+ gi.prototype.revert = function(e) {
15081
15082
  var t = this._canvas, n = e.shape, o = e.oldParent, i = e.oldParentIndex;
15082
15083
  return Dn(o.children, n, i), t.addShape(n, o), n;
15083
15084
  };
@@ -15114,7 +15115,7 @@ ma.prototype.preExecute = function(e) {
15114
15115
  y && y !== n.length - 1 && (a(v, v.elements[0]), g += s(v.range));
15115
15116
  return;
15116
15117
  }
15117
- b = oi(v.elements, o), x = b[0], y === d && (x = b[r(b)]), w = l(x), v.range = null, ne(b, function(_) {
15118
+ b = ii(v.elements, o), x = b[0], y === d && (x = b[r(b)]), w = l(x), v.range = null, ne(b, function(_) {
15118
15119
  if (c(w, _), v.range === null) {
15119
15120
  v.range = {
15120
15121
  min: _[o],
@@ -15166,7 +15167,7 @@ function ba(e, t, n) {
15166
15167
  x: a.x * (n.width / t.width),
15167
15168
  y: a.y * (n.height / t.height)
15168
15169
  };
15169
- return Qo({
15170
+ return ei({
15170
15171
  x: i.x + l.x,
15171
15172
  y: i.y + l.y
15172
15173
  });
@@ -15202,7 +15203,7 @@ function xa(e) {
15202
15203
  return t;
15203
15204
  }
15204
15205
  function Jc(e, t) {
15205
- var n = li(e, $y);
15206
+ var n = ri(e, $y);
15206
15207
  return Jt(n, function(o) {
15207
15208
  return Ly(o, t);
15208
15209
  });
@@ -15223,13 +15224,13 @@ Wl.prototype.addAll = function(e, t) {
15223
15224
  var n = Hm(e, !!t, this);
15224
15225
  return _e(this, n), this;
15225
15226
  };
15226
- function gi(e) {
15227
+ function vi(e) {
15227
15228
  this._modeling = e;
15228
15229
  }
15229
- gi.prototype.moveRecursive = function(e, t, n) {
15230
+ vi.prototype.moveRecursive = function(e, t, n) {
15230
15231
  return e ? this.moveClosure(this.getClosure(e), t, n) : [];
15231
15232
  };
15232
- gi.prototype.moveClosure = function(e, t, n, o, i) {
15233
+ vi.prototype.moveClosure = function(e, t, n, o, i) {
15233
15234
  var a = this._modeling, l = e.allShapes, r = e.allConnections, s = e.enclosedConnections, c = e.topLevel, u = !1;
15234
15235
  i && i.parent === n && (u = !0), ne(l, function(d) {
15235
15236
  a.moveShape(d, t, c[d.id] && !u && n, {
@@ -15244,11 +15245,11 @@ gi.prototype.moveClosure = function(e, t, n, o, i) {
15244
15245
  });
15245
15246
  });
15246
15247
  };
15247
- gi.prototype.getClosure = function(e) {
15248
+ vi.prototype.getClosure = function(e) {
15248
15249
  return new Wl().addAll(e, !0);
15249
15250
  };
15250
15251
  function wa(e) {
15251
- this._helper = new gi(e);
15252
+ this._helper = new vi(e);
15252
15253
  }
15253
15254
  wa.$inject = ["modeling"];
15254
15255
  wa.prototype.preExecute = function(e) {
@@ -15265,12 +15266,12 @@ wa.prototype.postExecute = function(e) {
15265
15266
  );
15266
15267
  };
15267
15268
  function co(e) {
15268
- this._modeling = e, this._helper = new gi(e);
15269
+ this._modeling = e, this._helper = new vi(e);
15269
15270
  }
15270
15271
  co.$inject = ["modeling"];
15271
15272
  co.prototype.execute = function(e) {
15272
15273
  var t = e.shape, n = e.delta, o = e.newParent || t.parent, i = e.newParentIndex, a = t.parent;
15273
- return e.oldBounds = Gi(t, ["x", "y", "width", "height"]), e.oldParent = a, e.oldParentIndex = ha(a.children, t), Dn(o.children, t, i), _e(t, {
15274
+ return e.oldBounds = Ki(t, ["x", "y", "width", "height"]), e.oldParent = a, e.oldParentIndex = ha(a.children, t), Dn(o.children, t, i), _e(t, {
15274
15275
  parent: o,
15275
15276
  x: t.x + n.x,
15276
15277
  y: t.y + n.y
@@ -15303,21 +15304,21 @@ co.prototype.moveChildren = function(e) {
15303
15304
  co.prototype.getNewParent = function(e) {
15304
15305
  return e.newParent || e.shape.parent;
15305
15306
  };
15306
- function vi(e) {
15307
+ function mi(e) {
15307
15308
  this._modeling = e;
15308
15309
  }
15309
- vi.$inject = ["modeling"];
15310
- vi.prototype.execute = function(e) {
15310
+ mi.$inject = ["modeling"];
15311
+ mi.prototype.execute = function(e) {
15311
15312
  var t = e.newSource, n = e.newTarget, o = e.connection, i = e.dockingOrPoints;
15312
15313
  if (!t && !n)
15313
15314
  throw new Error("newSource or newTarget required");
15314
15315
  return Ze(i) && (e.oldWaypoints = o.waypoints, o.waypoints = i), t && (e.oldSource = o.source, o.source = t), n && (e.oldTarget = o.target, o.target = n), o;
15315
15316
  };
15316
- vi.prototype.postExecute = function(e) {
15317
+ mi.prototype.postExecute = function(e) {
15317
15318
  var t = e.connection, n = e.newSource, o = e.newTarget, i = e.dockingOrPoints, a = e.hints || {}, l = {};
15318
15319
  a.connectionStart && (l.connectionStart = a.connectionStart), a.connectionEnd && (l.connectionEnd = a.connectionEnd), a.layoutConnection !== !1 && (n && (!o || a.docking === "source") && (l.connectionStart = l.connectionStart || ts(Ze(i) ? i[0] : i)), o && (!n || a.docking === "target") && (l.connectionEnd = l.connectionEnd || ts(Ze(i) ? i[i.length - 1] : i)), a.newWaypoints && (l.waypoints = a.newWaypoints), this._modeling.layoutConnection(t, l));
15319
15320
  };
15320
- vi.prototype.revert = function(e) {
15321
+ mi.prototype.revert = function(e) {
15321
15322
  var t = e.oldSource, n = e.oldTarget, o = e.oldWaypoints, i = e.connection;
15322
15323
  return t && (i.source = t), n && (i.target = n), o && (i.waypoints = o), i;
15323
15324
  };
@@ -15385,11 +15386,11 @@ Cn.prototype.reconnectStart = function(e, t, n, o) {
15385
15386
  Cn.prototype.reconnectEnd = function(e, t, n, o) {
15386
15387
  this._modeling.reconnectEnd(e, t, n, o);
15387
15388
  };
15388
- function mi(e) {
15389
+ function yi(e) {
15389
15390
  this._modeling = e;
15390
15391
  }
15391
- mi.$inject = ["modeling"];
15392
- mi.prototype.execute = function(e) {
15392
+ yi.$inject = ["modeling"];
15393
+ yi.prototype.execute = function(e) {
15393
15394
  var t = e.shape, n = e.newBounds, o = e.minBounds;
15394
15395
  if (n.x === void 0 || n.y === void 0 || n.width === void 0 || n.height === void 0)
15395
15396
  throw new Error("newBounds must have {x, y, width, height} properties");
@@ -15409,7 +15410,7 @@ mi.prototype.execute = function(e) {
15409
15410
  y: n.y
15410
15411
  }), t;
15411
15412
  };
15412
- mi.prototype.postExecute = function(e) {
15413
+ yi.prototype.postExecute = function(e) {
15413
15414
  var t = this._modeling, n = e.shape, o = e.oldBounds, i = e.hints || {};
15414
15415
  i.layout !== !1 && (ne(n.incoming, function(a) {
15415
15416
  t.layoutConnection(a, {
@@ -15421,7 +15422,7 @@ mi.prototype.postExecute = function(e) {
15421
15422
  });
15422
15423
  }));
15423
15424
  };
15424
- mi.prototype.revert = function(e) {
15425
+ yi.prototype.revert = function(e) {
15425
15426
  var t = e.shape, n = e.oldBounds;
15426
15427
  return _e(t, {
15427
15428
  width: n.width,
@@ -15525,7 +15526,7 @@ Nn.prototype.updateConnectionWaypoints = function(e, t, n, o, i, a, l) {
15525
15526
  var r = this, s = i.concat(a);
15526
15527
  ne(e, function(c) {
15527
15528
  var u = c.source, d = c.target, f = Fy(c), p = Xc(n), h = {};
15528
- An(s, u) && An(s, d) ? (f = li(f, function(g) {
15529
+ An(s, u) && An(s, d) ? (f = ri(f, function(g) {
15529
15530
  return os(g, o, n) && (g[p] = g[p] + t[p]), g.original && os(g.original, o, n) && (g.original[p] = g.original[p] + t[p]), g;
15530
15531
  }), r._modeling.updateWaypoints(c, f, {
15531
15532
  labelBehavior: !1
@@ -15544,7 +15545,7 @@ function ns(e) {
15544
15545
  return _e({}, e);
15545
15546
  }
15546
15547
  function Fy(e) {
15547
- return li(e.waypoints, function(t) {
15548
+ return ri(e.waypoints, function(t) {
15548
15549
  return t = ns(t), t.original && (t.original = ns(t.original)), t;
15549
15550
  });
15550
15551
  }
@@ -15653,19 +15654,19 @@ Ge.prototype.getHandlers = function() {
15653
15654
  return {
15654
15655
  "shape.append": ga,
15655
15656
  "shape.create": Vn,
15656
- "shape.delete": pi,
15657
+ "shape.delete": gi,
15657
15658
  "shape.move": co,
15658
- "shape.resize": mi,
15659
+ "shape.resize": yi,
15659
15660
  "shape.replace": Cn,
15660
15661
  "shape.toggleCollapse": Ca,
15661
15662
  spaceTool: Nn,
15662
- "label.create": fi,
15663
+ "label.create": hi,
15663
15664
  "connection.create": va,
15664
- "connection.delete": hi,
15665
+ "connection.delete": pi,
15665
15666
  "connection.move": zl,
15666
15667
  "connection.layout": ya,
15667
15668
  "connection.updateWaypoints": Ul,
15668
- "connection.reconnect": vi,
15669
+ "connection.reconnect": mi,
15669
15670
  "elements.create": Ll,
15670
15671
  "elements.move": wa,
15671
15672
  "elements.delete": $l,
@@ -15927,7 +15928,7 @@ function Gl(e) {
15927
15928
  ].includes(e.type);
15928
15929
  }
15929
15930
  function nu(e) {
15930
- return ei(e.label);
15931
+ return ti(e.label);
15931
15932
  }
15932
15933
  function Yy(e) {
15933
15934
  const t = e.length / 2 - 1, n = e[Math.floor(t)], o = e[Math.ceil(t + 0.01)], i = Gy(e), a = Math.atan((o.y - n.y) / (o.x - n.x));
@@ -15947,7 +15948,7 @@ function ou(e) {
15947
15948
  y: e.y + e.height + Uy.height / 2
15948
15949
  };
15949
15950
  }
15950
- function ei(e) {
15951
+ function ti(e) {
15951
15952
  return e && !!e.labelTarget;
15952
15953
  }
15953
15954
  const Ky = {
@@ -15961,7 +15962,7 @@ function iu(e, t) {
15961
15962
  }
15962
15963
  function o(r) {
15963
15964
  const { element: s, newLabel: c } = r, { businessObject: u } = s;
15964
- if (!ei(s) && Gl(s) && !nu(s) && !ls(c)) {
15965
+ if (!ti(s) && Gl(s) && !nu(s) && !ls(c)) {
15965
15966
  let f = ou(s);
15966
15967
  f = {
15967
15968
  x: f.x,
@@ -15981,9 +15982,9 @@ function iu(e, t) {
15981
15982
  function l(r) {
15982
15983
  const { element: s, newLabel: c } = r, u = s.label || s, d = r.hints || {};
15983
15984
  let { newBounds: f } = r;
15984
- if (!ei(u))
15985
+ if (!ti(u))
15985
15986
  return;
15986
- if (ei(u) && ls(c)) {
15987
+ if (ti(u) && ls(c)) {
15987
15988
  d.removeShape !== !1 && e.removeShape(u, { unsetLabel: !1 });
15988
15989
  return;
15989
15990
  }
@@ -15996,16 +15997,16 @@ iu.$inject = ["modeling", "textRenderer"];
15996
15997
  function ls(e) {
15997
15998
  return !e || !e.trim();
15998
15999
  }
15999
- function yi(e, t, n) {
16000
+ function bi(e, t, n) {
16000
16001
  Ge.call(this, e, t, n);
16001
16002
  }
16002
- io(yi, Ge);
16003
- yi.$inject = ["eventBus", "elementFactory", "commandStack"];
16004
- yi.prototype.getHandlers = function() {
16003
+ io(bi, Ge);
16004
+ bi.$inject = ["eventBus", "elementFactory", "commandStack"];
16005
+ bi.prototype.getHandlers = function() {
16005
16006
  const e = Ge.prototype.getHandlers.call(this);
16006
16007
  return e["element.updateLabel"] = iu, e;
16007
16008
  };
16008
- yi.prototype.updateLabel = function(e, t, n, o) {
16009
+ bi.prototype.updateLabel = function(e, t, n, o) {
16009
16010
  this._commandStack.execute("element.updateLabel", {
16010
16011
  element: e,
16011
16012
  newLabel: t,
@@ -16032,7 +16033,7 @@ au.prototype.layoutConnection = function(e, t) {
16032
16033
  t.connectionEnd || yt(t.target || e.target)
16033
16034
  ];
16034
16035
  };
16035
- var Oi = 20, Jy = 5, ea = Math.round, rs = 20, Xy = {
16036
+ var Bi = 20, Jy = 5, ea = Math.round, rs = 20, Xy = {
16036
16037
  "h:h": 20,
16037
16038
  "v:v": 20,
16038
16039
  "h:v": -10,
@@ -16061,11 +16062,11 @@ function Zy(e, t) {
16061
16062
  function lu(e, t, n) {
16062
16063
  var o = Ln(t, e, Jy), i = n.split(":")[0], a = ea((t.x - e.x) / 2 + e.x), l = ea((t.y - e.y) / 2 + e.y), r, s, c = Zy(i, o), u = /h|r|l/.test(i), d = !1, f = !1;
16063
16064
  return c ? (r = u ? { x: a, y: e.y } : { x: e.x, y: l }, s = u ? "h:h" : "v:v") : (d = qy(o, i), s = u ? "h:v" : "v:h", d ? u ? (f = l === e.y, r = {
16064
- x: e.x + Oi * (/l/.test(i) ? -1 : 1),
16065
- y: f ? l + Oi : l
16065
+ x: e.x + Bi * (/l/.test(i) ? -1 : 1),
16066
+ y: f ? l + Bi : l
16066
16067
  }) : (f = a === e.x, r = {
16067
- x: f ? a + Oi : a,
16068
- y: e.y + Oi * (/t/.test(i) ? -1 : 1)
16068
+ x: f ? a + Bi : a,
16069
+ y: e.y + Bi * (/t/.test(i) ? -1 : 1)
16069
16070
  }) : r = {
16070
16071
  x: a,
16071
16072
  y: l
@@ -16201,7 +16202,7 @@ function Xl(e, t, n, o) {
16201
16202
  function i(u) {
16202
16203
  return u.length < 3 ? !0 : u.length > 4 ? !1 : !!rn(u, function(d, f) {
16203
16204
  var p = u[f - 1];
16204
- return p && ui(d, p) < 3;
16205
+ return p && di(d, p) < 3;
16205
16206
  });
16206
16207
  }
16207
16208
  function a(u, d, f) {
@@ -16289,7 +16290,7 @@ ql.prototype.layoutConnection = function(e, t) {
16289
16290
  t || (t = {});
16290
16291
  const n = t.source || e.source, o = t.target || e.target, i = t.waypoints || e.waypoints;
16291
16292
  let { connectionStart: a, connectionEnd: l } = t, r, s;
16292
- return l === void 0 && (a = Bi(i && i[0], n), l = Bi(i && i[i.length - 1], o)), a || (a = Bi(i && i[0], n)), l || (l = Bi(i && i[i.length - 1], o)), Zn(e, "myline") && (n === o ? r = {
16293
+ return l === void 0 && (a = Li(i && i[0], n), l = Li(i && i[i.length - 1], o)), a || (a = Li(i && i[0], n)), l || (l = Li(i && i[i.length - 1], o)), Zn(e, "myline") && (n === o ? r = {
16293
16294
  preferredLayouts: hb(n, e)
16294
16295
  } : Zn(n, "gatewayAnd") || Zn(n, "gatewayXor") || Zn(n, "gatewayInclusive") ? r = {
16295
16296
  preferredLayouts: ["v:h"]
@@ -16301,7 +16302,7 @@ ql.prototype.layoutConnection = function(e, t) {
16301
16302
  ab(n, o, a, l, i, r)
16302
16303
  )), s || [a, l];
16303
16304
  };
16304
- function Bi(e, t) {
16305
+ function Li(e, t) {
16305
16306
  return e ? e.original || e : yt(t);
16306
16307
  }
16307
16308
  function hb(e, t) {
@@ -16344,7 +16345,7 @@ Wn.prototype._getGfx = function(e) {
16344
16345
  const cu = {
16345
16346
  __depends__: [xy, _y, Io],
16346
16347
  __init__: ["modeling", "elementUpdater"],
16347
- modeling: ["type", yi],
16348
+ modeling: ["type", bi],
16348
16349
  layouter: ["type", ql],
16349
16350
  elementUpdater: ["type", Kl],
16350
16351
  elementFactory: ["type", so],
@@ -16375,7 +16376,7 @@ uo.prototype.getConnectionPath = function(e) {
16375
16376
  function gb(e) {
16376
16377
  return e.businessObject;
16377
16378
  }
16378
- function Li(e, t) {
16379
+ function $i(e, t) {
16379
16380
  return e.businessObject.strokeWidth || t || 1;
16380
16381
  }
16381
16382
  function Qt(e, t) {
@@ -16392,7 +16393,7 @@ function vb(e) {
16392
16393
  ["a", o, o, 0, 1, 1, 0, -2 * o],
16393
16394
  ["z"]
16394
16395
  ];
16395
- return ci(i);
16396
+ return ui(i);
16396
16397
  }
16397
16398
  function mb(e, t) {
16398
16399
  const { x: n, y: o, width: i, height: a } = e, l = [
@@ -16407,7 +16408,7 @@ function mb(e, t) {
16407
16408
  ["a", t, t, 0, 0, 1, t, -t],
16408
16409
  ["z"]
16409
16410
  ];
16410
- return ci(l);
16411
+ return ui(l);
16411
16412
  }
16412
16413
  function yb(e) {
16413
16414
  const { x: t, y: n, width: o, height: i } = e, a = o / 2, l = i / 2, r = [
@@ -16417,11 +16418,11 @@ function yb(e) {
16417
16418
  ["l", -a, -l],
16418
16419
  ["z"]
16419
16420
  ];
16420
- return ci(r);
16421
+ return ui(r);
16421
16422
  }
16422
16423
  function bb(e) {
16423
16424
  const { x: t, y: n, width: o, height: i } = e, a = [["M", t, n], ["l", o, 0], ["l", 0, i], ["l", -o, 0], ["z"]];
16424
- return ci(a);
16425
+ return ui(a);
16425
16426
  }
16426
16427
  const rl = 10, La = 0.95, jn = (e, t) => e.type === t;
16427
16428
  function fo(e, t, n, o, i, a, l) {
@@ -16636,7 +16637,7 @@ function fo(e, t, n, o, i, a, l) {
16636
16637
  const O = {
16637
16638
  fill: Qt(k, c.startEvent?.fill || k.fill),
16638
16639
  stroke: mt(k, c.startEvent?.stroke || k.stroke),
16639
- strokeWidth: Li(
16640
+ strokeWidth: $i(
16640
16641
  k,
16641
16642
  c.startEvent?.strokeWidth || k.strokeWidth
16642
16643
  )
@@ -16645,7 +16646,7 @@ function fo(e, t, n, o, i, a, l) {
16645
16646
  },
16646
16647
  endEvent(M, k) {
16647
16648
  const O = d("event")(M, k, {
16648
- strokeWidth: Li(
16649
+ strokeWidth: $i(
16649
16650
  k,
16650
16651
  c.endEvent?.strokeWidth || k.strokeWidth || 4
16651
16652
  ),
@@ -16657,7 +16658,7 @@ function fo(e, t, n, o, i, a, l) {
16657
16658
  gateway(M, k) {
16658
16659
  const O = {
16659
16660
  fillOpacity: La,
16660
- strokeWidth: Li(
16661
+ strokeWidth: $i(
16661
16662
  k,
16662
16663
  c[k.type]?.strokeWidth || k.strokeWidth || 4
16663
16664
  ),
@@ -16810,7 +16811,7 @@ function fo(e, t, n, o, i, a, l) {
16810
16811
  },
16811
16812
  default(M, k) {
16812
16813
  const O = {
16813
- strokeWidth: Li(
16814
+ strokeWidth: $i(
16814
16815
  k,
16815
16816
  c[k.type]?.strokeWidth || k.strokeWidth || 1
16816
16817
  ),
@@ -16916,7 +16917,7 @@ function Mb() {
16916
16917
  var e = document.getElementById("helper-svg");
16917
16918
  return e || (e = Ve("svg"), ye(e, {
16918
16919
  id: "helper-svg"
16919
- }), ai(e, {
16920
+ }), li(e, {
16920
16921
  visibility: "hidden",
16921
16922
  position: "fixed",
16922
16923
  width: 0,
@@ -17433,11 +17434,11 @@ Lo.prototype._alignmentPosition = function(e, t) {
17433
17434
  elements: [f],
17434
17435
  center: p
17435
17436
  };
17436
- }), s = oi(l, function(f) {
17437
+ }), s = ii(l, function(f) {
17437
17438
  return f.elements.length > 1 && (r = !0), f.elements.length;
17438
17439
  }), r)
17439
17440
  return a[e] = $a(s).center, a;
17440
- c = t[0], t = oi(t, function(f) {
17441
+ c = t[0], t = ii(t, function(f) {
17441
17442
  return f[o] + f[i];
17442
17443
  }), u = $a(t), a[e] = d(c, u);
17443
17444
  }
@@ -17448,7 +17449,7 @@ Lo.prototype.trigger = function(e, t) {
17448
17449
  return !(s.waypoints || s.host || s.labelTarget);
17449
17450
  });
17450
17451
  if (o = this._rules.allowed("elements.align", { elements: i }), Ze(o) && (i = o), !(i.length < 2 || !o)) {
17451
- var a = Fb[t], l = oi(i, a), r = this._alignmentPosition(t, l);
17452
+ var a = Fb[t], l = ii(i, a), r = this._alignmentPosition(t, l);
17452
17453
  n.alignElements(l, r);
17453
17454
  }
17454
17455
  };
@@ -17456,7 +17457,7 @@ const Vb = {
17456
17457
  __init__: ["alignElements"],
17457
17458
  alignElements: ["type", Lo]
17458
17459
  };
17459
- var $i = Math.round, Nb = Math.max;
17460
+ var zi = Math.round, Nb = Math.max;
17460
17461
  function Wb(e, t) {
17461
17462
  var n = e.x, o = e.y;
17462
17463
  return [
@@ -17477,7 +17478,7 @@ var gu = 10;
17477
17478
  function Yb(e, t) {
17478
17479
  var n, o;
17479
17480
  for (n = 0; o = e[n]; n++)
17480
- if (ui(o, t) <= gu)
17481
+ if (di(o, t) <= gu)
17481
17482
  return {
17482
17483
  point: e[n],
17483
17484
  bendpoint: !0,
@@ -17493,14 +17494,14 @@ function Gb(e, t) {
17493
17494
  index: a
17494
17495
  }) : {
17495
17496
  point: {
17496
- x: $i(o.x + i.x) / 2,
17497
- y: $i(o.y + i.y) / 2
17497
+ x: zi(o.x + i.x) / 2,
17498
+ y: zi(o.y + i.y) / 2
17498
17499
  },
17499
17500
  index: o.segment2
17500
17501
  } : {
17501
17502
  point: {
17502
- x: $i(o.x),
17503
- y: $i(o.y)
17503
+ x: zi(o.x),
17504
+ y: zi(o.y)
17504
17505
  },
17505
17506
  index: o.segment2
17506
17507
  } : null;
@@ -17813,7 +17814,7 @@ function ta(e) {
17813
17814
  if (i === eo)
17814
17815
  return t && n && t === n && n !== o;
17815
17816
  }
17816
- var ix = "reconnectStart", ax = "reconnectEnd", ms = "updateWaypoints", Yo = "connect-ok", zi = "connect-not-ok", ys = "connect-hover", bs = "djs-updating", xs = "djs-dragging", ws = 1100;
17817
+ var ix = "reconnectStart", ax = "reconnectEnd", ms = "updateWaypoints", Yo = "connect-ok", Di = "connect-not-ok", ys = "connect-hover", bs = "djs-updating", xs = "djs-dragging", ws = 1100;
17817
17818
  function wu(e, t, n, o) {
17818
17819
  this._injector = t;
17819
17820
  var i = t.get("connectionPreview", !1);
@@ -17827,14 +17828,14 @@ function wu(e, t, n, o) {
17827
17828
  if (s) {
17828
17829
  if (o.addMarker(s, ys), c === ms)
17829
17830
  return;
17830
- r ? (o.removeMarker(s, zi), o.addMarker(s, Yo)) : r === !1 && (o.removeMarker(s, Yo), o.addMarker(s, zi));
17831
+ r ? (o.removeMarker(s, Di), o.addMarker(s, Yo)) : r === !1 && (o.removeMarker(s, Yo), o.addMarker(s, Di));
17831
17832
  }
17832
17833
  }), n.on([
17833
17834
  "bendpoint.move.out",
17834
17835
  "bendpoint.move.cleanup"
17835
17836
  ], ws, function(a) {
17836
17837
  var l = a.context, r = l.hover, s = l.target;
17837
- r && (o.removeMarker(r, ys), o.removeMarker(r, s ? Yo : zi));
17838
+ r && (o.removeMarker(r, ys), o.removeMarker(r, s ? Yo : Di));
17838
17839
  }), n.on("bendpoint.move.move", function(a) {
17839
17840
  var l = a.context, r = l.allowed, s = l.bendpointIndex, c = l.draggerGfx, u = l.hover, d = l.type, f = l.connection, p = f.source, h = f.target, g = f.waypoints.slice(), v = { x: a.x, y: a.y }, y = l.hints || {}, b = {};
17840
17841
  i && (y.connectionStart && (b.connectionStart = y.connectionStart), y.connectionEnd && (b.connectionEnd = y.connectionEnd), d === ix ? ta(l) ? (b.connectionEnd = b.connectionEnd || v, b.source = h, b.target = u || p, g = g.reverse()) : (b.connectionStart = b.connectionStart || v, b.source = u || p, b.target = h) : d === ax ? ta(l) ? (b.connectionStart = b.connectionStart || v, b.source = u || h, b.target = p, g = g.reverse()) : (b.connectionEnd = b.connectionEnd || v, b.source = p, b.target = u || h) : (b.noCropping = !0, b.noLayout = !0, g[s] = v), d === ms && (g = e.cropWaypoints(f, g)), b.waypoints = g, i.drawPreview(l, r, b)), un(c, a.x, a.y);
@@ -17843,7 +17844,7 @@ function wu(e, t, n, o) {
17843
17844
  "bendpoint.move.cancel"
17844
17845
  ], ws, function(a) {
17845
17846
  var l = a.context, r = l.connection, s = l.draggerGfx, c = l.hover, u = l.target, d = l.waypoints;
17846
- r.waypoints = d, Yt(s), o.removeMarker(r, bs), o.removeMarker(r, xs), c && (o.removeMarker(c, Yo), o.removeMarker(c, u ? Yo : zi)), i && i.cleanUp(l);
17847
+ r.waypoints = d, Yt(s), o.removeMarker(r, bs), o.removeMarker(r, xs), c && (o.removeMarker(c, Yo), o.removeMarker(c, u ? Yo : Di)), i && i.cleanUp(l);
17847
17848
  });
17848
17849
  }
17849
17850
  wu.$inject = [
@@ -18199,8 +18200,8 @@ Tt.$inject = [
18199
18200
  Tt.prototype.get = function(e) {
18200
18201
  if (Ka(e) && (e = { id: e }), Ka(e.element) && (e.element = this._elementRegistry.get(e.element)), e.element) {
18201
18202
  var t = this._getOverlayContainer(e.element, !0);
18202
- return t ? e.type ? Jt(t.overlays, Ki({ type: e.type })) : t.overlays.slice() : [];
18203
- } else return e.type ? Jt(this._overlays, Ki({ type: e.type })) : e.id ? this._overlays[e.id] : null;
18203
+ return t ? e.type ? Jt(t.overlays, Ji({ type: e.type })) : t.overlays.slice() : [];
18204
+ } else return e.type ? Jt(this._overlays, Ji({ type: e.type })) : e.id ? this._overlays[e.id] : null;
18204
18205
  };
18205
18206
  Tt.prototype.add = function(e, t, n) {
18206
18207
  if (Xt(t) && (n = t, t = null), e.id || (e = this._elementRegistry.get(e)), !n.position)
@@ -18263,7 +18264,7 @@ Tt.prototype._updateOverlay = function(e) {
18263
18264
  };
18264
18265
  Tt.prototype._createOverlayContainer = function(e) {
18265
18266
  var t = Ut('<div class="djs-overlays" />');
18266
- ai(t, { position: "absolute" }), this._overlayRoot.appendChild(t);
18267
+ li(t, { position: "absolute" }), this._overlayRoot.appendChild(t);
18267
18268
  var n = {
18268
18269
  html: t,
18269
18270
  element: e,
@@ -18290,7 +18291,7 @@ Tt.prototype._getOverlayContainer = function(e, t) {
18290
18291
  };
18291
18292
  Tt.prototype._addOverlay = function(e) {
18292
18293
  var t = e.id, n = e.element, o = e.html, i, a;
18293
- o.get && o.constructor.prototype.jquery && (o = o.get(0)), Ka(o) && (o = Ut(o)), a = this._getOverlayContainer(n), i = Ut('<div class="djs-overlay" data-overlay-id="' + t + '">'), ai(i, { position: "absolute" }), i.appendChild(o), e.type && Nt(i).add("djs-overlay-" + e.type);
18294
+ o.get && o.constructor.prototype.jquery && (o = o.get(0)), Ka(o) && (o = Ut(o)), a = this._getOverlayContainer(n), i = Ut('<div class="djs-overlay" data-overlay-id="' + t + '">'), li(i, { position: "absolute" }), i.appendChild(o), e.type && Nt(i).add("djs-overlay-" + e.type);
18294
18295
  var l = this._canvas.findRoot(n), r = this._canvas.getRootElement();
18295
18296
  Ea(i, l === r), e.htmlContainer = i, a.overlays.push(e), a.html.appendChild(i), this._overlays[t] = e, this._updateOverlay(e), this._updateOverlayVisibilty(e, this._canvas.viewbox());
18296
18297
  };
@@ -18344,14 +18345,14 @@ function bx(e) {
18344
18345
  var t = Ut(
18345
18346
  '<div class="djs-overlay-container" />'
18346
18347
  );
18347
- return ai(t, {
18348
+ return li(t, {
18348
18349
  position: "absolute",
18349
18350
  width: 0,
18350
18351
  height: 0
18351
18352
  }), e.insertBefore(t, e.firstChild), t;
18352
18353
  }
18353
18354
  function ku(e, t, n) {
18354
- ai(e, { left: t + "px", top: n + "px" });
18355
+ li(e, { left: t + "px", top: n + "px" });
18355
18356
  }
18356
18357
  function Ea(e, t) {
18357
18358
  e.style.display = t === !1 ? "none" : "";
@@ -18412,7 +18413,7 @@ function Cx() {
18412
18413
  const Sx = {
18413
18414
  scheduler: ["type", $o]
18414
18415
  };
18415
- var _x = "djs-element-hidden", Di = ".entry", Ex = 1e3, Ts = 8, kx = 300;
18416
+ var _x = "djs-element-hidden", Fi = ".entry", Ex = 1e3, Ts = 8, kx = 300;
18416
18417
  function wt(e, t, n, o) {
18417
18418
  this._canvas = e, this._elementRegistry = t, this._eventBus = n, this._scheduler = o, this._current = null, this._init();
18418
18419
  }
@@ -18524,13 +18525,13 @@ wt.prototype._updateAndOpen = function(e) {
18524
18525
  };
18525
18526
  wt.prototype._createHtml = function(e) {
18526
18527
  var t = this, n = Ut('<div class="djs-context-pad"></div>');
18527
- return Hn.bind(n, Di, "click", function(o) {
18528
+ return Hn.bind(n, Fi, "click", function(o) {
18528
18529
  t.trigger("click", o);
18529
- }), Hn.bind(n, Di, "dragstart", function(o) {
18530
+ }), Hn.bind(n, Fi, "dragstart", function(o) {
18530
18531
  t.trigger("dragstart", o);
18531
- }), Hn.bind(n, Di, "mouseover", function(o) {
18532
+ }), Hn.bind(n, Fi, "mouseover", function(o) {
18532
18533
  t.trigger("mouseover", o);
18533
- }), Hn.bind(n, Di, "mouseout", function(o) {
18534
+ }), Hn.bind(n, Fi, "mouseout", function(o) {
18534
18535
  t.trigger("mouseout", o);
18535
18536
  }), Xe.bind(n, "mousedown", function(o) {
18536
18537
  o.stopPropagation();
@@ -19089,7 +19090,7 @@ go.prototype.getOutline = function(e) {
19089
19090
  }), t;
19090
19091
  };
19091
19092
  go.$inject = ["eventBus", "styles", "elementRegistry"];
19092
- var Fi = 6;
19093
+ var Vi = 6;
19093
19094
  function ir(e, t, n) {
19094
19095
  this._canvas = t;
19095
19096
  var o = this;
@@ -19114,10 +19115,10 @@ ir.prototype._updateMultiSelectionOutline = function(e) {
19114
19115
  ir.$inject = ["eventBus", "canvas", "selection"];
19115
19116
  function zx(e) {
19116
19117
  return {
19117
- x: e.x - Fi,
19118
- y: e.y - Fi,
19119
- width: e.width + Fi * 2,
19120
- height: e.height + Fi * 2
19118
+ x: e.x - Vi,
19119
+ y: e.y - Vi,
19120
+ width: e.width + Vi * 2,
19121
+ height: e.height + Vi * 2
19121
19122
  };
19122
19123
  }
19123
19124
  const Pu = {
@@ -19266,7 +19267,7 @@ ju.$inject = [
19266
19267
  ];
19267
19268
  function Ux(e) {
19268
19269
  var t = Jt(e, function(n) {
19269
- return Dt(n) ? rn(e, Ki({ id: n.source.id })) && rn(e, Ki({ id: n.target.id })) : !0;
19270
+ return Dt(n) ? rn(e, Ji({ id: n.source.id })) && rn(e, Ji({ id: n.target.id })) : !0;
19270
19271
  });
19271
19272
  return t;
19272
19273
  }
@@ -19467,7 +19468,7 @@ function nw(e, t, n) {
19467
19468
  };
19468
19469
  return t.indexOf("n") !== -1 ? (a.y = e.y + i, a.height = e.height - i) : t.indexOf("s") !== -1 && (a.height = e.height + i), t.indexOf("e") !== -1 ? a.width = e.width + o : t.indexOf("w") !== -1 && (a.x = e.x + o, a.width = e.width - o), a;
19469
19470
  }
19470
- function Vi(e, t, n) {
19471
+ function Ni(e, t, n) {
19471
19472
  var o = t[e], i = n.min && n.min[e], a = n.max && n.max[e];
19472
19473
  return Ct(i) && (o = (/top|left/.test(e) ? aa : ia)(o, i)), Ct(a) && (o = (/top|left/.test(e) ? ia : aa)(o, a)), o;
19473
19474
  }
@@ -19476,10 +19477,10 @@ function ow(e, t) {
19476
19477
  return e;
19477
19478
  var n = qe(e);
19478
19479
  return Ac({
19479
- top: Vi("top", n, t),
19480
- right: Vi("right", n, t),
19481
- bottom: Vi("bottom", n, t),
19482
- left: Vi("left", n, t)
19480
+ top: Ni("top", n, t),
19481
+ right: Ni("right", n, t),
19482
+ bottom: Ni("bottom", n, t),
19483
+ left: Ni("left", n, t)
19483
19484
  });
19484
19485
  }
19485
19486
  function iw(e, t, n, o) {
@@ -19517,7 +19518,7 @@ function rw(e, t) {
19517
19518
  return aw(dn(n), t);
19518
19519
  }
19519
19520
  var $s = 10;
19520
- function bi(e, t, n, o) {
19521
+ function xi(e, t, n, o) {
19521
19522
  this._dragging = o, this._rules = t;
19522
19523
  var i = this;
19523
19524
  function a(s, c) {
@@ -19550,11 +19551,11 @@ function bi(e, t, n, o) {
19550
19551
  r(s.context);
19551
19552
  });
19552
19553
  }
19553
- bi.prototype.canResize = function(e) {
19554
- var t = this._rules, n = Gi(e, ["newBounds", "shape", "delta", "direction"]);
19554
+ xi.prototype.canResize = function(e) {
19555
+ var t = this._rules, n = Ki(e, ["newBounds", "shape", "delta", "direction"]);
19555
19556
  return t.allowed("shape.resize", n);
19556
19557
  };
19557
- bi.prototype.activate = function(e, t, n) {
19558
+ xi.prototype.activate = function(e, t, n) {
19558
19559
  var o = this._dragging, i, a;
19559
19560
  if (typeof n == "string" && (n = {
19560
19561
  direction: n
@@ -19569,14 +19570,14 @@ bi.prototype.activate = function(e, t, n) {
19569
19570
  }
19570
19571
  });
19571
19572
  };
19572
- bi.prototype.computeMinResizeBox = function(e) {
19573
+ xi.prototype.computeMinResizeBox = function(e) {
19573
19574
  var t = e.shape, n = e.direction, o, i;
19574
19575
  return o = e.minDimensions || {
19575
19576
  width: $s,
19576
19577
  height: $s
19577
19578
  }, i = rw(t, e.childrenBoxPadding), iw(n, t, o, i);
19578
19579
  };
19579
- bi.$inject = [
19580
+ xi.$inject = [
19580
19581
  "eventBus",
19581
19582
  "rules",
19582
19583
  "modeling",
@@ -19617,7 +19618,7 @@ Lu.$inject = [
19617
19618
  "canvas",
19618
19619
  "previewSupport"
19619
19620
  ];
19620
- var Ni = -6, Wi = 8, Ui = 20, Ko = "djs-resizer", dw = ["n", "w", "s", "e", "nw", "ne", "se", "sw"];
19621
+ var Wi = -6, Ui = 8, Yi = 20, Ko = "djs-resizer", dw = ["n", "w", "s", "e", "nw", "ne", "se", "sw"];
19621
19622
  function Yn(e, t, n, o) {
19622
19623
  this._resize = o, this._canvas = t;
19623
19624
  var i = this;
@@ -19641,17 +19642,17 @@ Yn.prototype._createResizer = function(e, t, n, o) {
19641
19642
  lt(l).add(Ko), lt(l).add(Ko + "-" + e.id), lt(l).add(Ko + "-" + o), Oe(i, l);
19642
19643
  var r = Ve("rect");
19643
19644
  ye(r, {
19644
- x: -Wi / 2 + a.x,
19645
- y: -Wi / 2 + a.y,
19646
- width: Wi,
19647
- height: Wi
19648
- }), lt(r).add(Ko + "-visual"), Oe(l, r);
19649
- var s = Ve("rect");
19650
- return ye(s, {
19651
19645
  x: -Ui / 2 + a.x,
19652
19646
  y: -Ui / 2 + a.y,
19653
19647
  width: Ui,
19654
19648
  height: Ui
19649
+ }), lt(r).add(Ko + "-visual"), Oe(l, r);
19650
+ var s = Ve("rect");
19651
+ return ye(s, {
19652
+ x: -Yi / 2 + a.x,
19653
+ y: -Yi / 2 + a.y,
19654
+ width: Yi,
19655
+ height: Yi
19655
19656
  }), lt(s).add(Ko + "-hit"), Oe(l, s), zm(l, t, n), l;
19656
19657
  };
19657
19658
  Yn.prototype.createResizer = function(e, t) {
@@ -19682,7 +19683,7 @@ function fw(e) {
19682
19683
  x: 0,
19683
19684
  y: 0
19684
19685
  };
19685
- return e.indexOf("e") !== -1 ? t.x = -Ni : e.indexOf("w") !== -1 && (t.x = Ni), e.indexOf("s") !== -1 ? t.y = -Ni : e.indexOf("n") !== -1 && (t.y = Ni), t;
19686
+ return e.indexOf("e") !== -1 ? t.x = -Wi : e.indexOf("w") !== -1 && (t.x = Wi), e.indexOf("s") !== -1 ? t.y = -Wi : e.indexOf("n") !== -1 && (t.y = Wi), t;
19686
19687
  }
19687
19688
  const hw = {
19688
19689
  __depends__: [
@@ -19695,11 +19696,11 @@ const hw = {
19695
19696
  "resizePreview",
19696
19697
  "resizeHandles"
19697
19698
  ],
19698
- resize: ["type", bi],
19699
+ resize: ["type", xi],
19699
19700
  resizePreview: ["type", Lu],
19700
19701
  resizeHandles: ["type", Yn]
19701
19702
  };
19702
- function xi(e, t, n, o, i, a) {
19703
+ function wi(e, t, n, o, i, a) {
19703
19704
  this._canvas = t, this._modeling = o, this._textRenderer = a, n.registerProvider(this), e.on("element.dblclick", (r) => {
19704
19705
  l(r.element, !0);
19705
19706
  }), e.on(
@@ -19727,7 +19728,7 @@ function xi(e, t, n, o, i, a) {
19727
19728
  (s || Yl(r, ["userTask", "scriptTask", "subprocess"]) || r.isDirectEdit) && n.activate(r);
19728
19729
  }
19729
19730
  }
19730
- xi.$inject = [
19731
+ wi.$inject = [
19731
19732
  "eventBus",
19732
19733
  "canvas",
19733
19734
  "directEditing",
@@ -19735,7 +19736,7 @@ xi.$inject = [
19735
19736
  "resizeHandles",
19736
19737
  "textRenderer"
19737
19738
  ];
19738
- xi.prototype.activate = function(e) {
19739
+ wi.prototype.activate = function(e) {
19739
19740
  const t = Qi(e);
19740
19741
  if (t === void 0)
19741
19742
  return;
@@ -19752,7 +19753,7 @@ xi.prototype.activate = function(e) {
19752
19753
  options: i
19753
19754
  }), n;
19754
19755
  };
19755
- xi.prototype.getEditingBBox = function(e) {
19756
+ wi.prototype.getEditingBBox = function(e) {
19756
19757
  const t = this._canvas, n = e.label || e, o = t.getAbsoluteBBox(n), i = {
19757
19758
  x: o.x + o.width / 2,
19758
19759
  y: o.y + o.height / 2
@@ -19782,7 +19783,7 @@ xi.prototype.getEditingBBox = function(e) {
19782
19783
  lineHeight: u,
19783
19784
  paddingTop: g + "px",
19784
19785
  paddingBottom: v + "px"
19785
- })), Gl(n) && !nu(n) && !ei(n)) {
19786
+ })), Gl(n) && !nu(n) && !ti(n)) {
19786
19787
  const y = ou(e), b = t.getAbsoluteBBox({
19787
19788
  x: y.x,
19788
19789
  y: y.y,
@@ -19803,7 +19804,7 @@ xi.prototype.getEditingBBox = function(e) {
19803
19804
  }
19804
19805
  return { bounds: a, style: p };
19805
19806
  };
19806
- xi.prototype.update = function(e, t) {
19807
+ wi.prototype.update = function(e, t) {
19807
19808
  let n;
19808
19809
  pw(t) && (t = null), this._modeling.updateLabel(e, t, n);
19809
19810
  };
@@ -19813,7 +19814,7 @@ function pw(e) {
19813
19814
  const gw = {
19814
19815
  __depends__: [ew, hw, nf],
19815
19816
  __init__: ["labelEditingProvider"],
19816
- labelEditingProvider: ["type", xi]
19817
+ labelEditingProvider: ["type", wi]
19817
19818
  };
19818
19819
  function Gn() {
19819
19820
  this._targets = {}, this._snapOrigins = {}, this._snapLocations = [], this._defaultSnaps = {};
@@ -19956,7 +19957,7 @@ Fo.prototype.getSnapTargets = function(e, t) {
19956
19957
  return hn.prototype.getSnapTargets.call(this, e, t);
19957
19958
  };
19958
19959
  var yw = 1250;
19959
- function wi(e, t) {
19960
+ function Ci(e, t) {
19960
19961
  var n = this;
19961
19962
  e.on(["resize.start"], function(o) {
19962
19963
  n.initSnap(o);
@@ -19973,7 +19974,7 @@ function wi(e, t) {
19973
19974
  t.hide();
19974
19975
  });
19975
19976
  }
19976
- wi.prototype.initSnap = function(e) {
19977
+ Ci.prototype.initSnap = function(e) {
19977
19978
  var t = e.context, n = t.shape, o = t.direction, i = t.snapContext;
19978
19979
  i || (i = t.snapContext = new Gn());
19979
19980
  var a = $u(n, o);
@@ -19982,17 +19983,17 @@ wi.prototype.initSnap = function(e) {
19982
19983
  y: a.y - e.y
19983
19984
  }), i;
19984
19985
  };
19985
- wi.prototype.addSnapTargetPoints = function(e, t, n, o) {
19986
+ Ci.prototype.addSnapTargetPoints = function(e, t, n, o) {
19986
19987
  var i = this.getSnapTargets(t, n);
19987
19988
  return ne(i, function(a) {
19988
19989
  e.add("corner", ux(a)), e.add("corner", cx(a));
19989
19990
  }), e.add("corner", $u(t, o)), e;
19990
19991
  };
19991
- wi.$inject = [
19992
+ Ci.$inject = [
19992
19993
  "eventBus",
19993
19994
  "snapping"
19994
19995
  ];
19995
- wi.prototype.getSnapTargets = function(e, t) {
19996
+ Ci.prototype.getSnapTargets = function(e, t) {
19996
19997
  return _u(t).filter(function(n) {
19997
19998
  return !bw(n, e) && !Dt(n) && !xw(n) && !Ao(n);
19998
19999
  });
@@ -20083,7 +20084,7 @@ const Ew = {
20083
20084
  "snapping"
20084
20085
  ],
20085
20086
  createMoveSnapping: ["type", hn],
20086
- resizeSnapping: ["type", wi],
20087
+ resizeSnapping: ["type", Ci],
20087
20088
  snapping: ["type", Kn]
20088
20089
  }, kw = {
20089
20090
  __depends__: [Ew],
@@ -20105,12 +20106,12 @@ Vo.prototype.addRule = function(e, t, n) {
20105
20106
  };
20106
20107
  Vo.prototype.init = function() {
20107
20108
  };
20108
- function Ci(e) {
20109
+ function Si(e) {
20109
20110
  Vo.call(this, e);
20110
20111
  }
20111
- Ci.$inject = ["eventBus"];
20112
- io(Ci, Vo);
20113
- Ci.prototype.init = function() {
20112
+ Si.$inject = ["eventBus"];
20113
+ io(Si, Vo);
20114
+ Si.prototype.init = function() {
20114
20115
  this.addRule("connection.start", function(e) {
20115
20116
  var t = e.source;
20116
20117
  return !!(t && t.type != "" && t.type != null && t.type != null);
@@ -20140,13 +20141,13 @@ Ci.prototype.init = function() {
20140
20141
  return Bm(t);
20141
20142
  });
20142
20143
  };
20143
- Ci.prototype.canConnect = hl;
20144
+ Si.prototype.canConnect = hl;
20144
20145
  function hl(e, t, n) {
20145
20146
  return t.type && e.type && e.type != "endEvent" ? e.id == t.id ? !1 : { type: "myline" } : !1;
20146
20147
  }
20147
20148
  const Rw = {
20148
20149
  __init__: ["myRuleProvider"],
20149
- myRuleProvider: ["type", Ci]
20150
+ myRuleProvider: ["type", Si]
20150
20151
  };
20151
20152
  function ar(e, t, n, o, i, a, l) {
20152
20153
  this._create = e, this._elementFactory = t, this._handTool = n, this._lassoTool = o, this._globalConnect = i, this._palette = a, this._myOptions = l, a.registerProvider(this);
@@ -20977,12 +20978,12 @@ export {
20977
20978
  gt as assign,
20978
20979
  Cl as buildShortUUID,
20979
20980
  Bn as buildUUID,
20980
- Ji as clearJson,
20981
+ Zo as clearJson,
20981
20982
  qa as clone,
20982
20983
  yn as deepClone,
20983
20984
  Q0 as default,
20984
20985
  X0 as eventBus,
20985
- Ti as formatToDate,
20986
+ Mi as formatToDate,
20986
20987
  tc as formatToDateTime,
20987
20988
  Jo as fullScreenLoading,
20988
20989
  _o as getCompConfig,
@@ -21007,7 +21008,7 @@ export {
21007
21008
  Ha as set,
21008
21009
  ff as setGroupMap,
21009
21010
  hf as toArray,
21010
- Ri as toDecimal,
21011
+ Ti as toDecimal,
21011
21012
  pf as toLeafArray,
21012
21013
  G0 as toSimpleTree,
21013
21014
  Y0 as toTree,
@@ -21024,10 +21025,10 @@ export {
21024
21025
  Tf as useHMenuInject,
21025
21026
  Mf as useHMenuProvide,
21026
21027
  bn as useInject,
21027
- si as useLayer,
21028
+ ci as useLayer,
21028
21029
  Z0 as useLayerInject,
21029
21030
  jf as useLayerProvide,
21030
- ri as useMenuInject,
21031
+ si as useMenuInject,
21031
21032
  Rf as useMenuProvide,
21032
21033
  Hf as usePageInject,
21033
21034
  If as usePageProvide,