@a2simcode/ui 0.0.115 → 0.0.116

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 { Fragment as me, computed as j, createBlock as H, createCommentVNode as K, createElementBlock as O, createElementVNode as z, createSlots as An, createTextVNode as en, createVNode as Y, defineComponent as de, getCurrentInstance as Qs, guardReactiveProps as Tl, h as id, inject as ld, mergeModels as go, mergeProps as Ne, nextTick as Tt, normalizeClass as We, normalizeProps as Si, normalizeStyle as je, onBeforeUnmount as mo, onMounted as Ct, onUnmounted as bo, openBlock as _, provide as rd, reactive as pa, ref as P, render as ui, renderList as Te, renderSlot as Ye, resolveComponent as B, resolveDirective as ki, resolveDynamicComponent as Ha, shallowRef as Ri, toDisplayString as be, unref as X, useModel as vo, useSlots as sd, useTemplateRef as fa, vShow as so, watch as rt, watchEffect as ec, withCtx as N, withDirectives as Mn, withKeys as il, withModifiers as Pt } from "vue";
1
+ import { Fragment as me, computed as j, createBlock as H, createCommentVNode as K, createElementBlock as O, createElementVNode as z, createSlots as jn, createTextVNode as en, createVNode as Y, defineComponent as de, getCurrentInstance as Qs, guardReactiveProps as Tl, h as id, inject as ld, mergeModels as go, mergeProps as Ne, nextTick as Tt, normalizeClass as We, normalizeProps as Si, normalizeStyle as je, onBeforeUnmount as mo, onMounted as Ct, onUnmounted as bo, openBlock as _, provide as rd, reactive as pa, ref as P, render as ui, renderList as Te, renderSlot as Ye, resolveComponent as B, resolveDirective as ki, resolveDynamicComponent as Ha, shallowRef as Ri, toDisplayString as be, unref as X, useModel as vo, useSlots as sd, useTemplateRef as fa, vShow as so, watch as rt, watchEffect as ec, withCtx as N, withDirectives as An, withKeys as il, withModifiers as Pt } from "vue";
2
2
  import { Icon as _r, getIcon as da } from "@iconify/vue";
3
3
  import tc from "dayjs";
4
4
  import cd from "crypto-js/aes";
@@ -36,7 +36,7 @@ import Gd from "async-validator";
36
36
  import { createEditor as Jd, createToolbar as Xd } from "@wangeditor/editor";
37
37
  import ac from "diagram-js";
38
38
  import { assignStyle as wo, attr as hn, classes as Gt, clear as oc, closest as Al, delegate as Fn, domify as Jt, event as nt, matches as qd, query as Wt, queryAll as ll, remove as rl } from "min-dom";
39
- import { assign as Ie, bind as jl, debounce as Zd, every as Pl, filter as tn, find as wn, flatten as Qd, forEach as ie, groupBy as Ol, has as ic, isArray as ot, isDefined as fn, isFunction as xn, isNil as kr, isNumber as Et, isObject as nn, isString as sl, isUndefined as ef, map as xo, matchPattern as di, omit as tf, pick as fi, reduce as cl, size as nf, some as af, sortBy as yo, uniqueBy as of, values as lc, without as lf } from "min-dash";
39
+ import { assign as Ie, bind as jl, debounce as Zd, every as Pl, filter as tn, find as xn, flatten as Qd, forEach as ie, groupBy as Ol, has as ic, isArray as ot, isDefined as fn, isFunction as _n, isNil as kr, isNumber as Et, isObject as nn, isString as sl, isUndefined as ef, map as xo, matchPattern as di, omit as tf, pick as fi, reduce as cl, size as nf, some as af, sortBy as yo, uniqueBy as of, values as lc, without as lf } from "min-dash";
40
40
  import { append as Ue, attr as Ae, classes as ht, clear as Hl, clone as rc, create as Fe, createTransform as co, remove as Xt, transform as Il } from "tiny-svg";
41
41
  import ga from "inherits";
42
42
  import rf from "diagram-js-direct-editing";
@@ -496,7 +496,7 @@ var cc = (e, t, n, a) => {
496
496
  "j-autocomplete",
497
497
  "j-rate",
498
498
  "j-slider"
499
- ].includes(e) || e.indexOf("j-input") != -1, bn = (e) => {
499
+ ].includes(e) || e.indexOf("j-input") != -1, wn = (e) => {
500
500
  const t = e.config || {};
501
501
  if (e.getCompConfig) {
502
502
  const n = e.getCompConfig({
@@ -516,7 +516,7 @@ var cc = (e, t, n, a) => {
516
516
  row: e.row,
517
517
  getTableData: e.getTableData
518
518
  }) : e.type, Sf = (e, t, n) => {
519
- const a = bn(n), o = zl({
519
+ const a = wn(n), o = zl({
520
520
  ...n,
521
521
  config: a
522
522
  });
@@ -715,14 +715,14 @@ var Bf = async (e) => new Promise((t, n) => {
715
715
  LAYER_PROVIDE: "jcode_layer_provide",
716
716
  PAGE_PROVIDE: "jcode_page_provide"
717
717
  };
718
- function jn(e, t) {
718
+ function Pn(e, t) {
719
719
  return ld(e, t);
720
720
  }
721
- function Pn(e, t) {
721
+ function On(e, t) {
722
722
  rd(e, t);
723
723
  }
724
724
  function kt() {
725
- return jn(Bt.APP_PROVIDE, {
725
+ return Pn(Bt.APP_PROVIDE, {
726
726
  t: (e, ...t) => {
727
727
  if (!e) return "";
728
728
  if (typeof e != "string") return e;
@@ -755,55 +755,55 @@ function kt() {
755
755
  });
756
756
  }
757
757
  function VC(e) {
758
- Pn(Bt.APP_PROVIDE, e);
758
+ On(Bt.APP_PROVIDE, e);
759
759
  }
760
760
  function va() {
761
- return jn(Bt.FORM_PROVIDE, {});
761
+ return Pn(Bt.FORM_PROVIDE, {});
762
762
  }
763
763
  function gc(e) {
764
- Pn(Bt.FORM_PROVIDE, e);
764
+ On(Bt.FORM_PROVIDE, e);
765
765
  }
766
766
  function Lf() {
767
- return jn(Bt.TABLE_PROVIDE, {});
767
+ return Pn(Bt.TABLE_PROVIDE, {});
768
768
  }
769
769
  function Ei(e) {
770
- Pn(Bt.TABLE_PROVIDE, e);
770
+ On(Bt.TABLE_PROVIDE, e);
771
771
  }
772
772
  function zf() {
773
- return jn(Bt.COMP_PROVIDE, {});
773
+ return Pn(Bt.COMP_PROVIDE, {});
774
774
  }
775
775
  function vc(e) {
776
- Pn(Bt.COMP_PROVIDE, e);
776
+ On(Bt.COMP_PROVIDE, e);
777
777
  }
778
778
  function _o() {
779
- return jn(Bt.MENU_PROVIDE, {});
779
+ return Pn(Bt.MENU_PROVIDE, {});
780
780
  }
781
781
  function $f(e) {
782
- Pn(Bt.MENU_PROVIDE, e);
782
+ On(Bt.MENU_PROVIDE, e);
783
783
  }
784
784
  function Df() {
785
- return jn(Bt.H_MENU_PROVIDE, {});
785
+ return Pn(Bt.H_MENU_PROVIDE, {});
786
786
  }
787
787
  function Ff(e) {
788
- Pn(Bt.H_MENU_PROVIDE, e);
788
+ On(Bt.H_MENU_PROVIDE, e);
789
789
  }
790
790
  function Vf() {
791
- return jn(Bt.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
791
+ return Pn(Bt.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
792
792
  }
793
793
  function Nf(e) {
794
- Pn(Bt.AUTH_PAGE_PROVIDE, e);
794
+ On(Bt.AUTH_PAGE_PROVIDE, e);
795
795
  }
796
796
  function NC() {
797
- return jn(Bt.LAYER_PROVIDE, {});
797
+ return Pn(Bt.LAYER_PROVIDE, {});
798
798
  }
799
799
  function Wf(e) {
800
- Pn(Bt.LAYER_PROVIDE, e);
800
+ On(Bt.LAYER_PROVIDE, e);
801
801
  }
802
802
  function Uf() {
803
- return jn(Bt.PAGE_PROVIDE, {});
803
+ return Pn(Bt.PAGE_PROVIDE, {});
804
804
  }
805
805
  function Yf(e) {
806
- Pn(Bt.PAGE_PROVIDE, e);
806
+ On(Bt.PAGE_PROVIDE, e);
807
807
  }
808
808
  var Kf = /* @__PURE__ */ de({
809
809
  name: "JDynamicLayer",
@@ -1142,7 +1142,7 @@ var Jf = ye(yc), Xf = /* @__PURE__ */ de({
1142
1142
  onBlur: s,
1143
1143
  onClear: c,
1144
1144
  onChange: u
1145
- }), An({ _: 2 }, [
1145
+ }), jn({ _: 2 }, [
1146
1146
  e.prefixIcon ? {
1147
1147
  name: "prefix",
1148
1148
  fn: N(() => [Y(h, { icon: e.prefixIcon }, null, 8, ["icon"])]),
@@ -1725,7 +1725,7 @@ var Jf = ye(yc), Xf = /* @__PURE__ */ de({
1725
1725
  "collapse-tags-tooltip": e.collapseTagsTooltip,
1726
1726
  placeholder: e.placeholder,
1727
1727
  onChange: u
1728
- }), An({
1728
+ }), jn({
1729
1729
  default: N(() => [e.isGroup ? (_(!0), O(me, { key: 0 }, Te(c.value, (b) => (_(), H(g, {
1730
1730
  key: b.label,
1731
1731
  label: b.label
@@ -2148,7 +2148,7 @@ var Jf = ye(yc), Xf = /* @__PURE__ */ de({
2148
2148
  onChange: r,
2149
2149
  onBlur: s,
2150
2150
  onFocus: c
2151
- }, An({
2151
+ }, jn({
2152
2152
  "decrease-icon": N(() => [e.decreaseIcon ? (_(), H(p, {
2153
2153
  key: 0,
2154
2154
  icon: e.decreaseIcon
@@ -2331,7 +2331,7 @@ var Jf = ye(yc), Xf = /* @__PURE__ */ de({
2331
2331
  onChange: p,
2332
2332
  onFocus: g,
2333
2333
  onBlur: v
2334
- }, An({
2334
+ }, jn({
2335
2335
  default: N(({ item: y }) => [Ye(m.$slots, "default", { item: y }, () => [z("div", null, be(y[e.valueKey] || ""), 1)])]),
2336
2336
  _: 2
2337
2337
  }, [
@@ -4311,7 +4311,7 @@ var Jh = class {
4311
4311
  },
4312
4312
  setup(e) {
4313
4313
  const t = e, { formData: n, compsConfig: a, errorFields: o, span: i, labelWidth: l, formChange: r } = va(), { t: s } = kt(), c = j(() => {
4314
- const v = bn({
4314
+ const v = wn({
4315
4315
  config: {
4316
4316
  ...t.config || {},
4317
4317
  ...a?.value?.[t.id] || {}
@@ -4495,7 +4495,7 @@ var Jh = class {
4495
4495
  set($) {
4496
4496
  $ && w.value && ($ = String($ || [])), x ? x[n.id] = $ : c && (c[n.id] = $), a("update:modelValue", $);
4497
4497
  }
4498
- }), y = j(() => bn({
4498
+ }), y = j(() => wn({
4499
4499
  config: n.config,
4500
4500
  getCompConfig: n.getCompConfig,
4501
4501
  formData: c || {},
@@ -4603,14 +4603,14 @@ var Jh = class {
4603
4603
  modelValue: R.value,
4604
4604
  "onUpdate:modelValue": ee[0] || (ee[0] = (te) => R.value = te),
4605
4605
  onChange: T
4606
- }), An({ _: 2 }, [Te(W.value, (te, xe) => ({
4606
+ }), jn({ _: 2 }, [Te(W.value, (te, xe) => ({
4607
4607
  name: xe,
4608
4608
  fn: N(() => [(_(!0), O(me, null, Te(te, (Be) => (_(), H(ge, Ne({ key: Be.id }, { ref_for: !0 }, Be), null, 16))), 128))])
4609
4609
  }))]), 1040, ["modelValue"])) : V.value.display != !1 ? (_(), H(Ha(C.value), Ne({
4610
4610
  key: 1,
4611
4611
  ref_key: "compRef",
4612
4612
  ref: S
4613
- }, V.value, { onChange: T }), An({ _: 2 }, [Te(W.value, (te, xe) => ({
4613
+ }, V.value, { onChange: T }), jn({ _: 2 }, [Te(W.value, (te, xe) => ({
4614
4614
  name: xe,
4615
4615
  fn: N(() => [V.value.needRow ? (_(), H(_e, {
4616
4616
  key: 0,
@@ -4737,7 +4737,7 @@ function tp() {
4737
4737
  var np = { class: "j-table-footer" }, ap = {
4738
4738
  key: 0,
4739
4739
  class: "j-table-pagination"
4740
- }, op = ["onClick"], Bn = 40, ip = /* @__PURE__ */ de({
4740
+ }, op = ["onClick"], yn = 40, ip = /* @__PURE__ */ de({
4741
4741
  name: "JTable",
4742
4742
  __name: "table",
4743
4743
  props: {
@@ -5033,7 +5033,7 @@ var np = { class: "j-table-footer" }, ap = {
5033
5033
  height: Ee
5034
5034
  }), {
5035
5035
  elements: Me,
5036
- expectedHeight: Bn
5036
+ expectedHeight: yn
5037
5037
  };
5038
5038
  }, Pe = (I, L) => {
5039
5039
  const { dataValue: J, rect: ne } = I, F = Number(J) || 0, Z = 5, le = 20, ue = 4, re = 8, he = (ne.height - le) / 2, Se = [], Me = da("mdi:star"), He = da("mdi:star-half-full"), ze = da("mdi:star-outline"), qe = "#f7ba2a", $e = "#e5e6eb";
@@ -5073,10 +5073,10 @@ var np = { class: "j-table-footer" }, ap = {
5073
5073
  }
5074
5074
  return {
5075
5075
  elements: Se,
5076
- expectedHeight: Bn
5076
+ expectedHeight: yn
5077
5077
  };
5078
5078
  }, Qe = (I, L) => {
5079
- const { dataValue: J, rect: ne, table: F, col: Z, row: le } = I, ue = F.getBodyField(Z, le), re = Vt(F.options?.columns || [], ue), he = F.getCellOriginRecord?.(Z, le) || F.getRecordByCell?.(Z, le) || {}, Se = L || bn({
5079
+ const { dataValue: J, rect: ne, table: F, col: Z, row: le } = I, ue = F.getBodyField(Z, le), re = Vt(F.options?.columns || [], ue), he = F.getCellOriginRecord?.(Z, le) || F.getRecordByCell?.(Z, le) || {}, Se = L || wn({
5080
5080
  config: re?._compConfig,
5081
5081
  getCompConfig: re?._getCompConfig,
5082
5082
  formData: l || {},
@@ -5119,7 +5119,7 @@ var np = { class: "j-table-footer" }, ap = {
5119
5119
  textBaseline: "middle"
5120
5120
  }), {
5121
5121
  elements: sn,
5122
- expectedHeight: Bn
5122
+ expectedHeight: yn
5123
5123
  };
5124
5124
  }, pt = (I) => String(I).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;"), oe = (I, L) => {
5125
5125
  if (!I) return "";
@@ -5136,9 +5136,9 @@ var np = { class: "j-table-footer" }, ap = {
5136
5136
  const { value: J, rect: ne, table: F, col: Z, row: le } = I;
5137
5137
  if (!J) return {
5138
5138
  elements: [],
5139
- expectedHeight: Bn
5139
+ expectedHeight: yn
5140
5140
  };
5141
- const ue = F.getBodyField(Z, le), re = Vt(F.options?.columns || [], ue), he = F.getCellOriginRecord?.(Z, le) || F.getRecordByCell?.(Z, le) || {}, Se = L || bn({
5141
+ const ue = F.getBodyField(Z, le), re = Vt(F.options?.columns || [], ue), he = F.getCellOriginRecord?.(Z, le) || F.getRecordByCell?.(Z, le) || {}, Se = L || wn({
5142
5142
  config: re?._compConfig,
5143
5143
  getCompConfig: re?._getCompConfig,
5144
5144
  formData: l || {},
@@ -5148,7 +5148,7 @@ var np = { class: "j-table-footer" }, ap = {
5148
5148
  let $e = String(J).trim();
5149
5149
  if (!$e) return {
5150
5150
  elements: [],
5151
- expectedHeight: Bn
5151
+ expectedHeight: yn
5152
5152
  };
5153
5153
  if ($e.startsWith("<svg")) {
5154
5154
  const Ee = $e.match(/<svg\b([^>]*)>([\s\S]*?)<\/svg>/i);
@@ -5177,10 +5177,10 @@ var np = { class: "j-table-footer" }, ap = {
5177
5177
  width: Me,
5178
5178
  height: Me
5179
5179
  }],
5180
- expectedHeight: Math.max(Bn, Me)
5180
+ expectedHeight: Math.max(yn, Me)
5181
5181
  };
5182
5182
  }, Le = (I, L) => {
5183
- const { dataValue: J, rect: ne, table: F, col: Z, row: le, value: ue } = I, re = F.getBodyField(Z, le), he = Vt(F.options?.columns || [], re), Se = F.getCellOriginRecord?.(Z, le) || F.getRecordByCell?.(Z, le) || {}, Me = L || bn({
5183
+ const { dataValue: J, rect: ne, table: F, col: Z, row: le, value: ue } = I, re = F.getBodyField(Z, le), he = Vt(F.options?.columns || [], re), Se = F.getCellOriginRecord?.(Z, le) || F.getRecordByCell?.(Z, le) || {}, Me = L || wn({
5184
5184
  config: he?._compConfig,
5185
5185
  getCompConfig: he?._getCompConfig,
5186
5186
  formData: l || {},
@@ -5193,7 +5193,7 @@ var np = { class: "j-table-footer" }, ap = {
5193
5193
  });
5194
5194
  if (ze.length === 0) return {
5195
5195
  elements: [],
5196
- expectedHeight: Bn
5196
+ expectedHeight: yn
5197
5197
  };
5198
5198
  const qe = 14, $e = 28, Ee = 2, Ge = 12, Je = 8, lt = 6;
5199
5199
  let Xe = 8, pe = Math.max(0, ne.width - Xe * 2), st = Math.max(0, pe - Ge * 2);
@@ -5250,7 +5250,7 @@ var np = { class: "j-table-footer" }, ap = {
5250
5250
  const $t = Math.min(ne.width, Math.max(0, ...cn.map((tt) => tt.lineWidth)) + Xe * 2);
5251
5251
  return {
5252
5252
  elements: De,
5253
- expectedHeight: Math.max(Bn, Vo),
5253
+ expectedHeight: Math.max(yn, Vo),
5254
5254
  expectedWidth: $t
5255
5255
  };
5256
5256
  }, Ke = (I) => {
@@ -5401,10 +5401,13 @@ var np = { class: "j-table-footer" }, ap = {
5401
5401
  }
5402
5402
  }
5403
5403
  return null;
5404
- }, Rn = (I) => {
5404
+ }, En = (I) => {
5405
5405
  const { table: L, col: J, row: ne } = I, F = L.getBodyField(J, ne), Z = Vt(L.options?.columns || [], F);
5406
- if (!Z) return { elements: [] };
5407
- const le = L.getCellOriginRecord?.(J, ne) || L.getRecordByCell?.(J, ne) || {}, ue = bn({
5406
+ if (!Z) return {
5407
+ elements: [],
5408
+ expectedHeight: yn
5409
+ };
5410
+ const le = L.getCellOriginRecord?.(J, ne) || L.getRecordByCell?.(J, ne) || {}, ue = wn({
5408
5411
  config: Z._compConfig,
5409
5412
  getCompConfig: Z._getCompConfig,
5410
5413
  formData: l || {},
@@ -5427,7 +5430,10 @@ var np = { class: "j-table-footer" }, ap = {
5427
5430
  "j-input-tag": Le,
5428
5431
  "j-icon": ke
5429
5432
  }[re];
5430
- return he ? he(I, ue) : { elements: [] };
5433
+ return he ? he(I, ue) : {
5434
+ elements: [],
5435
+ expectedHeight: yn
5436
+ };
5431
5437
  }, ln = (I, L, J, ne) => {
5432
5438
  const F = ne.getBodyField(L, J), Z = Vt(ne.options?.columns || [], F);
5433
5439
  if (Z._fieldFormat) return Z._fieldFormat(I, L, J, ne);
@@ -5462,7 +5468,7 @@ var np = { class: "j-table-footer" }, ap = {
5462
5468
  _getCompType: ue,
5463
5469
  frozen: Je
5464
5470
  }, st = typeof ue == "function", De = xc(F);
5465
- return (De || st) && (pe.editor = De, m = !0), st ? pe.customRender = Rn : (F === "j-switch" && (pe.customRender = Be), F === "j-rate" && (pe.customRender = Pe), F === "j-slider" && (pe.customRender = Qe), (F === "j-tag" || F === "j-input-tag") && (pe.customRender = Le), F === "j-icon" && (pe.customRender = ke)), F === "link" && (pe.customLayout = Lt), F === "checkbox" && (pe.customLayout = Ft), F === "j-switch" && (pe.minWidth = pe.minWidth || Me, pe.maxWidth = pe.maxWidth || Me), he && (pe.customLayout = it), pe.fieldFormat = ln, re && re.length > 0 && (pe.columns = q(re)), pe;
5471
+ return (De || st) && (pe.editor = De, m = !0), st ? pe.customRender = En : (F === "j-switch" && (pe.customRender = Be), F === "j-rate" && (pe.customRender = Pe), F === "j-slider" && (pe.customRender = Qe), (F === "j-tag" || F === "j-input-tag") && (pe.customRender = Le), F === "j-icon" && (pe.customRender = ke)), F === "link" && (pe.customLayout = Lt), F === "checkbox" && (pe.customLayout = Ft), F === "j-switch" && (pe.minWidth = pe.minWidth || Me, pe.maxWidth = pe.maxWidth || Me), he && (pe.customLayout = it), pe.fieldFormat = ln, re && re.length > 0 && (pe.columns = q(re)), pe;
5466
5472
  });
5467
5473
  return o.isTree && L.length > 0 && (L[0].tree = !0), L;
5468
5474
  }, fe = (I, L) => {
@@ -5572,7 +5578,7 @@ var np = { class: "j-table-footer" }, ap = {
5572
5578
  });
5573
5579
  const Me = (He) => {
5574
5580
  for (const ze of He)
5575
- if (ze?._compType === "checkbox" || ze?.customRender === Rn || ze?.customRender === Le || Array.isArray(ze?.columns) && Me(ze.columns)) return !0;
5581
+ if (ze?._compType === "checkbox" || ze?.customRender === En || ze?.customRender === Le || Array.isArray(ze?.columns) && Me(ze.columns)) return !0;
5576
5582
  return !1;
5577
5583
  };
5578
5584
  return Me(Z) && (F.defaultRowHeight = "auto", F.defaultHeaderRowHeight = 40), {
@@ -5632,11 +5638,11 @@ var np = { class: "j-table-footer" }, ap = {
5632
5638
  theme: Ko,
5633
5639
  ...I.option
5634
5640
  } }), L.plugins = [v]), L;
5635
- }, En = (I) => !o.isTree || !o.parentKey || I.some((L) => Array.isArray(L?.children) && L.children.length > 0) ? I : wf(I, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), aa = (I) => {
5641
+ }, Tn = (I) => !o.isTree || !o.parentKey || I.some((L) => Array.isArray(L?.children) && L.children.length > 0) ? I : wf(I, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), aa = (I) => {
5636
5642
  if (!p.value) return;
5637
5643
  y = Q(), tp();
5638
5644
  const L = ct(), J = rn();
5639
- I && I.length >= 0 ? L.records = En(I) : J.length > 0 ? L.records = En(J) : (L.records = En(o.records), i("update:modelValue", L.records)), g = new Ve.ListTable(p.value, L), g._getAppContext = () => a?.appContext;
5645
+ I && I.length >= 0 ? L.records = Tn(I) : J.length > 0 ? L.records = Tn(J) : (L.records = Tn(o.records), i("update:modelValue", L.records)), g = new Ve.ListTable(p.value, L), g._getAppContext = () => a?.appContext;
5640
5646
  const ne = a?.provides;
5641
5647
  g._getProvides = () => ne, o.loadChildren && g.on(Ve.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (F) => {
5642
5648
  if (F.hierarchyState === Ve.TYPES.HierarchyState.expand && F.originData?.children === !0) {
@@ -5675,7 +5681,7 @@ var np = { class: "j-table-footer" }, ap = {
5675
5681
  }, Wi = () => g, zo = (I) => {
5676
5682
  if (w.value = 0, g) {
5677
5683
  g.setScrollTop(0), R = I.length;
5678
- const L = En(I);
5684
+ const L = Tn(I);
5679
5685
  if (o.subColumns && o.subColumns.length > 0) setTimeout(() => {
5680
5686
  Ga(), aa(L);
5681
5687
  });
@@ -6434,7 +6440,7 @@ var np = { class: "j-table-footer" }, ap = {
6434
6440
  "destroy-on-close": e.destroyOnClose,
6435
6441
  onClosed: x
6436
6442
  }, {
6437
- default: N(() => [Mn((_(), O("div", {
6443
+ default: N(() => [An((_(), O("div", {
6438
6444
  class: "j-block j-dialog-full-window",
6439
6445
  "element-loading-text": X(l)(c.value)
6440
6446
  }, [z("div", yp, [
@@ -6699,7 +6705,7 @@ var np = { class: "j-table-footer" }, ap = {
6699
6705
  "close-on-click-modal": !0,
6700
6706
  onClosed: d
6701
6707
  }, {
6702
- default: N(() => [Mn((_(), O("div", {
6708
+ default: N(() => [An((_(), O("div", {
6703
6709
  class: We(["j-drawer--warpper", { "j-drawer--warpper-hasSteps": e.isStep }]),
6704
6710
  "element-loading-text": r.value
6705
6711
  }, [
@@ -7349,7 +7355,7 @@ var np = { class: "j-table-footer" }, ap = {
7349
7355
  default: N(() => [en(be(X(Go)(c.size)), 1)]),
7350
7356
  _: 2
7351
7357
  }, 1024)])]),
7352
- Mn(z("div", Qp, [c.status === "done" || c.status === "unUpload" ? (_(), H(l, {
7358
+ An(z("div", Qp, [c.status === "done" || c.status === "unUpload" ? (_(), H(l, {
7353
7359
  key: 0,
7354
7360
  icon: "mdi:eye",
7355
7361
  type: "link",
@@ -7383,7 +7389,7 @@ var np = { class: "j-table-footer" }, ap = {
7383
7389
  style: { width: "100%" },
7384
7390
  alt: ""
7385
7391
  }, null, 8, eg)) : K("", !0),
7386
- Mn(z("div", tg, [c.status === "done" || c.status === "unUpload" ? (_(), H(l, {
7392
+ An(z("div", tg, [c.status === "done" || c.status === "unUpload" ? (_(), H(l, {
7387
7393
  key: 0,
7388
7394
  type: "link",
7389
7395
  icon: "mdi:eye",
@@ -7432,7 +7438,7 @@ var np = { class: "j-table-footer" }, ap = {
7432
7438
  icon: "check-circle",
7433
7439
  size: 24
7434
7440
  })) : K("", !0),
7435
- e.readonly ? K("", !0) : Mn((_(), H(o, {
7441
+ e.readonly ? K("", !0) : An((_(), H(o, {
7436
7442
  key: 2,
7437
7443
  class: "j-upload-item-error",
7438
7444
  icon: "delete",
@@ -7737,7 +7743,7 @@ var np = { class: "j-table-footer" }, ap = {
7737
7743
  return o && o(`当前限制选择${n.limit}个文件`), !1;
7738
7744
  };
7739
7745
  return (oe, ke) => {
7740
- const Le = B("j-icon"), Ke = B("j-button"), Lt = B("el-popover"), Ft = B("el-upload"), it = B("el-text"), Vt = B("j-dialog-full"), Rn = ki("loading");
7746
+ const Le = B("j-icon"), Ke = B("j-button"), Lt = B("el-popover"), Ft = B("el-upload"), it = B("el-text"), Vt = B("j-dialog-full"), En = ki("loading");
7741
7747
  return _(), O("div", og, [
7742
7748
  Y(Ft, {
7743
7749
  action: "",
@@ -7838,7 +7844,7 @@ var np = { class: "j-table-footer" }, ap = {
7838
7844
  style: { "max-width": "1024px" },
7839
7845
  src: ee.value,
7840
7846
  alt: ""
7841
- }, null, 8, cg)])) : ee.value != "" ? Mn((_(), O("div", ug, [z("iframe", {
7847
+ }, null, 8, cg)])) : ee.value != "" ? An((_(), O("div", ug, [z("iframe", {
7842
7848
  ref: "iframe",
7843
7849
  src: ee.value,
7844
7850
  style: {
@@ -7847,7 +7853,7 @@ var np = { class: "j-table-footer" }, ap = {
7847
7853
  },
7848
7854
  frameborder: "0",
7849
7855
  onLoad: ke[0] || (ke[0] = (ln) => _e.value = !1)
7850
- }, null, 40, dg)])), [[Rn, _e.value]]) : K("", !0)]),
7856
+ }, null, 40, dg)])), [[En, _e.value]]) : K("", !0)]),
7851
7857
  _: 1
7852
7858
  }, 8, [
7853
7859
  "visible",
@@ -9120,7 +9126,7 @@ var np = { class: "j-table-footer" }, ap = {
9120
9126
  default: N(() => [Y(p, {
9121
9127
  "right-move": !1,
9122
9128
  right: 560
9123
- }, An({
9129
+ }, jn({
9124
9130
  default: N(() => [Y(h, {
9125
9131
  value: i.value,
9126
9132
  "onUpdate:value": d[0] || (d[0] = (v) => i.value = v),
@@ -11036,7 +11042,7 @@ var np = { class: "j-table-footer" }, ap = {
11036
11042
  return [...we, ...Ce];
11037
11043
  }
11038
11044
  return i.buttons;
11039
- }), Rn = j(() => Vt.value.filter((we) => we.config?.display !== !1)), ln = P(null), q = P(0), fe = () => {
11045
+ }), En = j(() => Vt.value.filter((we) => we.config?.display !== !1)), ln = P(null), q = P(0), fe = () => {
11040
11046
  q.value = ln.value?.clientWidth || 0;
11041
11047
  };
11042
11048
  let Q;
@@ -11046,13 +11052,13 @@ var np = { class: "j-table-footer" }, ap = {
11046
11052
  }), ln.value && Q.observe(ln.value);
11047
11053
  }), mo(() => {
11048
11054
  Q?.disconnect();
11049
- }), rt(() => Rn.value, () => {
11055
+ }), rt(() => En.value, () => {
11050
11056
  Tt(fe);
11051
11057
  }, { deep: !0 }), rt(Ke, () => {
11052
11058
  Tt(fe);
11053
11059
  });
11054
11060
  const ae = j(() => {
11055
- const we = Rn.value;
11061
+ const we = En.value;
11056
11062
  if (we.length === 0) return [];
11057
11063
  const Ce = q.value;
11058
11064
  if (Ce <= 0) return we;
@@ -11136,7 +11142,7 @@ var np = { class: "j-table-footer" }, ap = {
11136
11142
  p.value = [], g.value = !1, u.value = 1, se = void 0, await Re();
11137
11143
  }, ct = async (we) => {
11138
11144
  p.value = [], g.value = !1, await Re(we);
11139
- }, En = async () => {
11145
+ }, Tn = async () => {
11140
11146
  await Mt();
11141
11147
  }, aa = (we) => {
11142
11148
  l("ready", we);
@@ -11341,7 +11347,7 @@ var np = { class: "j-table-footer" }, ap = {
11341
11347
  default: N(() => [Y(zt, {
11342
11348
  type: "text",
11343
11349
  icon: "mdi:refresh",
11344
- onClick: En
11350
+ onClick: Tn
11345
11351
  })]),
11346
11352
  _: 1
11347
11353
  }, 8, ["content"])) : K("", !0),
@@ -11357,7 +11363,7 @@ var np = { class: "j-table-footer" }, ap = {
11357
11363
  }, null, 8, ["icon"])]),
11358
11364
  _: 1
11359
11365
  }, 8, ["content"])) : K("", !0)
11360
- ])]), z("div", Py, [Mn(z("div", Oy, [z("div", Hy, [Y(Ht, {
11366
+ ])]), z("div", Py, [An(z("div", Oy, [z("div", Hy, [Y(Ht, {
11361
11367
  icon: "mdi:loading",
11362
11368
  class: "loading-spin",
11363
11369
  size: 24
@@ -11681,7 +11687,7 @@ var np = { class: "j-table-footer" }, ap = {
11681
11687
  getCheck: w
11682
11688
  }), (W, T) => {
11683
11689
  const S = B("j-icon"), D = B("j-button"), G = B("el-dropdown-item"), ce = B("el-dropdown-menu"), $ = B("el-dropdown"), ee = B("el-tree"), ge = B("el-empty"), _e = ki("loading");
11684
- return Mn((_(), O("div", {
11690
+ return An((_(), O("div", {
11685
11691
  class: We([
11686
11692
  "j-block",
11687
11693
  "j-tree",
@@ -12015,10 +12021,10 @@ var lm = /* @__PURE__ */ de({
12015
12021
  !Q && !ct.isSubTable && (y[se.id] = []), ct.table && (A[ct.table.toLowerCase() || ""] = se.id), ct.isSubTable || V.push(Re);
12016
12022
  else if (ct?.defaultValue) y[se.id] = ct?.defaultValue;
12017
12023
  else if (se.type === "collapse" && ct?.isExpand) {
12018
- const En = [];
12024
+ const Tn = [];
12019
12025
  (ct?.groups || []).forEach((aa) => {
12020
- En.push(aa.i);
12021
- }), y[se.id] = En;
12026
+ Tn.push(aa.i);
12027
+ }), y[se.id] = Tn;
12022
12028
  }
12023
12029
  Oe && Oe.length > 0 && ee(Oe, Re.children, Q, Re.id);
12024
12030
  });
@@ -12027,7 +12033,7 @@ var lm = /* @__PURE__ */ de({
12027
12033
  const Q = !!fe;
12028
12034
  C.splice(0, C.length), A = {}, U = {}, V = [], G = fe, uo(y), uo(E), M.value = {}, Q && ce(fe, ""), ee(q, C, Q), W = an(y), Tt(() => {
12029
12035
  v.value = !0, Tt(() => {
12030
- Rn(a.config?.codeInit, {});
12036
+ En(a.config?.codeInit, {});
12031
12037
  });
12032
12038
  });
12033
12039
  }, _e = (q, fe, Q) => {
@@ -12090,7 +12096,7 @@ var lm = /* @__PURE__ */ de({
12090
12096
  se = E[Oe[Oe.length - 1]] || {};
12091
12097
  }
12092
12098
  if (!se) return {};
12093
- const Re = bn({
12099
+ const Re = wn({
12094
12100
  config: {
12095
12101
  ...se.config || {},
12096
12102
  ...M.value[se.id || ""] || {}
@@ -12174,7 +12180,7 @@ var lm = /* @__PURE__ */ de({
12174
12180
  i: fe
12175
12181
  }), ae = Le(q);
12176
12182
  if (ae && p?.getLabel) if (fe !== void 0) {
12177
- const se = Q[fe], Re = y[ae.config.parentTableId || ""][fe], Oe = bn({
12183
+ const se = Q[fe], Re = y[ae.config.parentTableId || ""][fe], Oe = wn({
12178
12184
  config: ae.config,
12179
12185
  getCompConfig: ae.getCompConfig,
12180
12186
  formData: y,
@@ -12189,7 +12195,7 @@ var lm = /* @__PURE__ */ de({
12189
12195
  row: Re
12190
12196
  });
12191
12197
  } else {
12192
- const se = bn({
12198
+ const se = wn({
12193
12199
  config: ae.config,
12194
12200
  getCompConfig: ae.getCompConfig,
12195
12201
  formData: y
@@ -12226,7 +12232,7 @@ var lm = /* @__PURE__ */ de({
12226
12232
  break;
12227
12233
  }
12228
12234
  console.log("showMsg", fe, Q);
12229
- }, q), Rn = async (q, fe) => {
12235
+ }, q), En = async (q, fe) => {
12230
12236
  if (q && q.trim()) {
12231
12237
  q = `async (jcode) => {${q}}`;
12232
12238
  const { res: Q, fn: ae } = sc(q);
@@ -12777,7 +12783,7 @@ var lm = /* @__PURE__ */ de({
12777
12783
  clearable: !e.readonly && e.clearable,
12778
12784
  onClick: u,
12779
12785
  onClear: f
12780
- }, An({ _: 2 }, [e.readonly ? void 0 : {
12786
+ }, jn({ _: 2 }, [e.readonly ? void 0 : {
12781
12787
  name: "append",
12782
12788
  fn: N(() => [Y(X(dl), {
12783
12789
  icon: e.icon,
@@ -13035,7 +13041,7 @@ var lm = /* @__PURE__ */ de({
13035
13041
  loading: e.loading,
13036
13042
  disabled: e.disabled || e.readonly,
13037
13043
  onChange: i
13038
- }), An({ _: 2 }, [
13044
+ }), jn({ _: 2 }, [
13039
13045
  l.$slots["active-action"] ? {
13040
13046
  name: "active-action",
13041
13047
  fn: N(() => [Ye(l.$slots, "active-action")]),
@@ -13766,7 +13772,7 @@ function jc(e, t, n, a) {
13766
13772
  i && t.select(i);
13767
13773
  }), e.on("shape.move.end", 500, function(o) {
13768
13774
  var i = o.previousSelection || [], l = a.get(o.context.shape.id);
13769
- wn(i, function(r) {
13775
+ xn(i, function(r) {
13770
13776
  return l.id === r.id;
13771
13777
  }) || t.select(l);
13772
13778
  }), e.on("element.click", function(o) {
@@ -14058,7 +14064,7 @@ var Da = {
14058
14064
  };
14059
14065
  function wb(e) {
14060
14066
  return tn(e, function(t) {
14061
- return !wn(e, function(n) {
14067
+ return !xn(e, function(n) {
14062
14068
  return n !== t && Lc(t, n);
14063
14069
  });
14064
14070
  });
@@ -14113,12 +14119,12 @@ function Cb(e, t, n) {
14113
14119
  enclosedElements: i
14114
14120
  };
14115
14121
  }
14116
- function Cn(e, t) {
14122
+ function Sn(e, t) {
14117
14123
  t = !!t, ot(e) || (e = [e]);
14118
14124
  var n, a, o, i;
14119
14125
  return ie(e, function(l) {
14120
14126
  var r = l;
14121
- l.waypoints && !t && (r = Cn(l.waypoints, !0));
14127
+ l.waypoints && !t && (r = Sn(l.waypoints, !0));
14122
14128
  var s = r.x, c = r.y, u = r.height || 0, f = r.width || 0;
14123
14129
  (s < n || n === void 0) && (n = s), (c < a || a === void 0) && (a = c), (s + f > o || o === void 0) && (o = s + f), (c + u > i || i === void 0) && (i = c + u);
14124
14130
  }), {
@@ -14132,7 +14138,7 @@ function Sb(e, t) {
14132
14138
  var n = {};
14133
14139
  return ie(e, function(a) {
14134
14140
  var o = a;
14135
- o.waypoints && (o = Cn(o)), !Et(t.y) && o.x > t.x && (n[a.id] = a), !Et(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Et(t.width) && Et(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Et(t.width) || !Et(t.height)) && (n[a.id] = a);
14141
+ o.waypoints && (o = Sn(o)), !Et(t.y) && o.x > t.x && (n[a.id] = a), !Et(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Et(t.width) && Et(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Et(t.width) || !Et(t.height)) && (n[a.id] = a);
14136
14142
  }), n;
14137
14143
  }
14138
14144
  function kb(e) {
@@ -14158,7 +14164,7 @@ function zc(e, t, n, a, o) {
14158
14164
  var m = x.labelTarget;
14159
14165
  return !x.parent && !(Ba(x) && s.indexOf(m) !== -1);
14160
14166
  });
14161
- var h = wn(s, function(x) {
14167
+ var h = xn(s, function(x) {
14162
14168
  return !Ut(x);
14163
14169
  }), p = !1, g = !1, v = !1;
14164
14170
  Jr(s) && (p = o.allowed("shape.attach", {
@@ -14229,7 +14235,7 @@ function zc(e, t, n, a, o) {
14229
14235
  attach: g,
14230
14236
  connection: v === !0 ? {} : v,
14231
14237
  connectionTarget: b.connectionTarget
14232
- }) : (d = a.createElements(d, x, h, Ie({}, b, { attach: g })), f = wn(d, function(m) {
14238
+ }) : (d = a.createElements(d, x, h, Ie({}, b, { attach: g })), f = xn(d, function(m) {
14233
14239
  return !Ut(m);
14234
14240
  })), Ie(c, {
14235
14241
  elements: d,
@@ -14249,7 +14255,7 @@ function zc(e, t, n, a, o) {
14249
14255
  });
14250
14256
  }), this.start = function(s, c, u) {
14251
14257
  ot(c) || (c = [c]);
14252
- var f = wn(c, function(h) {
14258
+ var f = xn(c, function(h) {
14253
14259
  return !Ut(h);
14254
14260
  });
14255
14261
  if (f) {
@@ -14260,7 +14266,7 @@ function zc(e, t, n, a, o) {
14260
14266
  }, u || {}), ie(c, function(h) {
14261
14267
  Et(h.x) || (h.x = 0), Et(h.y) || (h.y = 0);
14262
14268
  });
14263
- var d = Cn(tn(c, function(h) {
14269
+ var d = Sn(tn(c, function(h) {
14264
14270
  return !h.hidden;
14265
14271
  }));
14266
14272
  ie(c, function(h) {
@@ -14311,7 +14317,7 @@ function Mb(e, t, n, a, o) {
14311
14317
  r
14312
14318
  ]);
14313
14319
  }
14314
- function _n(e, t, n) {
14320
+ function Cn(e, t, n) {
14315
14321
  var a = co();
14316
14322
  a.setTranslate(t, n), Il(e, a);
14317
14323
  }
@@ -14327,14 +14333,14 @@ function $c(e, t, n, a, o) {
14327
14333
  var s = Fe("g");
14328
14334
  return l.forEach(function(c) {
14329
14335
  var u;
14330
- c.hidden || (c.waypoints ? (u = n._createContainer("connection", s), n.drawConnection(gl(u), c)) : (u = n._createContainer("shape", s), n.drawShape(gl(u), c), _n(u, c.x, c.y)), a.addDragger(c, r, u));
14336
+ c.hidden || (c.waypoints ? (u = n._createContainer("connection", s), n.drawConnection(gl(u), c)) : (u = n._createContainer("shape", s), n.drawShape(gl(u), c), Cn(u, c.x, c.y)), a.addDragger(c, r, u));
14331
14337
  }), r;
14332
14338
  }
14333
14339
  t.on("create.move", jb, function(l) {
14334
14340
  var r = l.hover, s = l.context, c = s.elements, u = s.dragGroup;
14335
14341
  u || (u = s.dragGroup = i(c));
14336
14342
  var f;
14337
- r ? (u.parentNode || (f = e.getActiveLayer(), Ue(f, u)), _n(u, l.x, l.y)) : Xt(u);
14343
+ r ? (u.parentNode || (f = e.getActiveLayer(), Ue(f, u)), Cn(u, l.x, l.y)) : Xt(u);
14338
14344
  }), t.on("create.cleanup", function(l) {
14339
14345
  var r = l.context.dragGroup;
14340
14346
  r && Xt(r);
@@ -14390,7 +14396,7 @@ function vl(e, t) {
14390
14396
  y: Math.round(e.y + (t.y - e.y) / 2)
14391
14397
  };
14392
14398
  }
14393
- var Hb = /,?([a-z]),?/gi, qr = parseFloat, _t = Math, Ln = _t.PI, yn = _t.min, mn = _t.max, Zr = _t.pow, Nn = _t.abs, Ib = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi, Bb = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi, Qr = Array.isArray || function(e) {
14399
+ var Hb = /,?([a-z]),?/gi, qr = parseFloat, _t = Math, Ln = _t.PI, mn = _t.min, bn = _t.max, Zr = _t.pow, Nn = _t.abs, Ib = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi, Bb = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi, Qr = Array.isArray || function(e) {
14394
14400
  return e instanceof Array;
14395
14401
  };
14396
14402
  function Lb(e, t) {
@@ -14515,11 +14521,11 @@ function as(e, t, n, a, o, i, l, r, s) {
14515
14521
  return c * h;
14516
14522
  }
14517
14523
  function Ub(e, t, n, a, o, i, l, r) {
14518
- if (!(mn(e, n) < yn(o, l) || yn(e, n) > mn(o, l) || mn(t, a) < yn(i, r) || yn(t, a) > mn(i, r))) {
14524
+ if (!(bn(e, n) < mn(o, l) || mn(e, n) > bn(o, l) || bn(t, a) < mn(i, r) || mn(t, a) > bn(i, r))) {
14519
14525
  var s = (e * a - t * n) * (o - l) - (e - n) * (o * r - i * l), c = (e * a - t * n) * (i - r) - (t - a) * (o * r - i * l), u = (e - n) * (i - r) - (t - a) * (o - l);
14520
14526
  if (u) {
14521
14527
  var f = vi(s / u), d = vi(c / u), h = +f.toFixed(2), p = +d.toFixed(2);
14522
- if (!(h < +yn(e, n).toFixed(2) || h > +mn(e, n).toFixed(2) || h < +yn(o, l).toFixed(2) || h > +mn(o, l).toFixed(2) || p < +yn(t, a).toFixed(2) || p > +mn(t, a).toFixed(2) || p < +yn(i, r).toFixed(2) || p > +mn(i, r).toFixed(2)))
14528
+ if (!(h < +mn(e, n).toFixed(2) || h > +bn(e, n).toFixed(2) || h < +mn(o, l).toFixed(2) || h > +bn(o, l).toFixed(2) || p < +mn(t, a).toFixed(2) || p > +bn(t, a).toFixed(2) || p < +mn(i, r).toFixed(2) || p > +bn(i, r).toFixed(2)))
14523
14529
  return {
14524
14530
  x: f,
14525
14531
  y: d
@@ -14740,10 +14746,10 @@ function Jb(e, t, n, a, o, i, l, r) {
14740
14746
  for (var m = s.length, w = m, R; m--; )
14741
14747
  h = s[m], R = 1 - h, c[0][m] = R * R * R * e + 3 * R * R * h * n + 3 * R * h * h * o + h * h * h * l, c[1][m] = R * R * R * t + 3 * R * R * h * a + 3 * R * h * h * i + h * h * h * r;
14742
14748
  return c[0][w] = e, c[1][w] = t, c[0][w + 1] = l, c[1][w + 1] = r, c[0].length = c[1].length = w + 2, {
14743
- x0: yn(...c[0]),
14744
- y0: yn(...c[1]),
14745
- x1: mn(...c[0]),
14746
- y1: mn(...c[1])
14749
+ x0: mn(...c[0]),
14750
+ y0: mn(...c[1]),
14751
+ x1: bn(...c[0]),
14752
+ y1: bn(...c[1])
14747
14753
  };
14748
14754
  }
14749
14755
  function ls(e) {
@@ -15060,7 +15066,7 @@ var rw = Math.sign || function(e) {
15060
15066
  min: 0.2,
15061
15067
  max: 4
15062
15068
  }, Jc = 10, sw = 0.1, cw = 0.75;
15063
- function Sn(e, t, n) {
15069
+ function kn(e, t, n) {
15064
15070
  e = e || {}, this._enabled = !1, this._canvas = n, this._container = n._container, this._handleWheel = jl(this._handleWheel, this), this._totalDelta = 0, this._scale = e.scale || cw;
15065
15071
  var a = this;
15066
15072
  t.on("canvas.mouseover", function() {
@@ -15069,22 +15075,22 @@ function Sn(e, t, n) {
15069
15075
  a._init(!1);
15070
15076
  });
15071
15077
  }
15072
- Sn.$inject = [
15078
+ kn.$inject = [
15073
15079
  "config.zoomScroll",
15074
15080
  "eventBus",
15075
15081
  "canvas"
15076
15082
  ];
15077
- Sn.prototype.scroll = function(t) {
15083
+ kn.prototype.scroll = function(t) {
15078
15084
  this._canvas.scroll(t);
15079
15085
  };
15080
- Sn.prototype.reset = function() {
15086
+ kn.prototype.reset = function() {
15081
15087
  this._canvas.zoom("fit-viewport");
15082
15088
  };
15083
- Sn.prototype.zoom = function(t, n) {
15089
+ kn.prototype.zoom = function(t, n) {
15084
15090
  var a = Gc(Gl, Jc * 2);
15085
15091
  this._totalDelta += t, Math.abs(this._totalDelta) > sw && (this._zoom(t, n, a), this._totalDelta = 0);
15086
15092
  };
15087
- Sn.prototype._handleWheel = function(t) {
15093
+ kn.prototype._handleWheel = function(t) {
15088
15094
  if (this._enabled) {
15089
15095
  var n = this._container;
15090
15096
  t.preventDefault();
@@ -15105,26 +15111,26 @@ Sn.prototype._handleWheel = function(t) {
15105
15111
  }, this.scroll(l);
15106
15112
  }
15107
15113
  };
15108
- Sn.prototype.stepZoom = function(t, n) {
15114
+ kn.prototype.stepZoom = function(t, n) {
15109
15115
  var a = Gc(Gl, Jc);
15110
15116
  this._zoom(t, n, a);
15111
15117
  };
15112
- Sn.prototype._zoom = function(e, t, n) {
15118
+ kn.prototype._zoom = function(e, t, n) {
15113
15119
  var a = this._canvas, o = e > 0 ? 1 : -1, i = wl(a.zoom()), l = Math.round(i / n) * n;
15114
15120
  l += n * o;
15115
15121
  var r = Math.pow(10, l);
15116
15122
  a.zoom(lw(Gl, r), t);
15117
15123
  };
15118
- Sn.prototype.toggle = function(t) {
15124
+ kn.prototype.toggle = function(t) {
15119
15125
  var n = this._container, a = this._handleWheel, o = this._enabled;
15120
15126
  return typeof t > "u" && (t = !o), o !== t && nt[t ? "bind" : "unbind"](n, "wheel", a, !1), this._enabled = t, t;
15121
15127
  };
15122
- Sn.prototype._init = function(e) {
15128
+ kn.prototype._init = function(e) {
15123
15129
  this.toggle(e);
15124
15130
  };
15125
15131
  var Xc = {
15126
15132
  __init__: ["zoomScroll"],
15127
- zoomScroll: ["type", Sn]
15133
+ zoomScroll: ["type", kn]
15128
15134
  };
15129
15135
  function gt(e, t) {
15130
15136
  this._handlerMap = {}, this._stack = [], this._stackIdx = -1, this._currentExecution = {
@@ -15305,7 +15311,7 @@ function fw(e, t) {
15305
15311
  };
15306
15312
  }
15307
15313
  Dt.prototype.on = function(e, t, n, a, o, i) {
15308
- if ((xn(t) || Et(t)) && (i = o, o = a, a = n, n = t, t = null), xn(n) && (i = o, o = a, a = n, n = dw), nn(o) && (i = o, o = !1), !xn(a)) throw new Error("handlerFn must be a function");
15314
+ if ((_n(t) || Et(t)) && (i = o, o = a, a = n, n = t, t = null), _n(n) && (i = o, o = a, a = n, n = dw), nn(o) && (i = o, o = !1), !_n(a)) throw new Error("handlerFn must be a function");
15309
15315
  ot(e) || (e = [e]);
15310
15316
  var l = this._eventBus;
15311
15317
  ie(e, function(r) {
@@ -15319,18 +15325,18 @@ Dt.prototype.on = function(e, t, n, a, o, i) {
15319
15325
  l.on(s, n, o ? fw(a, i) : a, i);
15320
15326
  });
15321
15327
  };
15322
- Dt.prototype.canExecute = On("canExecute");
15323
- Dt.prototype.preExecute = On("preExecute");
15324
- Dt.prototype.preExecuted = On("preExecuted");
15325
- Dt.prototype.execute = On("execute");
15326
- Dt.prototype.executed = On("executed");
15327
- Dt.prototype.postExecute = On("postExecute");
15328
- Dt.prototype.postExecuted = On("postExecuted");
15329
- Dt.prototype.revert = On("revert");
15330
- Dt.prototype.reverted = On("reverted");
15331
- function On(e) {
15328
+ Dt.prototype.canExecute = Hn("canExecute");
15329
+ Dt.prototype.preExecute = Hn("preExecute");
15330
+ Dt.prototype.preExecuted = Hn("preExecuted");
15331
+ Dt.prototype.execute = Hn("execute");
15332
+ Dt.prototype.executed = Hn("executed");
15333
+ Dt.prototype.postExecute = Hn("postExecute");
15334
+ Dt.prototype.postExecuted = Hn("postExecuted");
15335
+ Dt.prototype.revert = Hn("revert");
15336
+ Dt.prototype.reverted = Hn("reverted");
15337
+ function Hn(e) {
15332
15338
  return function(n, a, o, i, l) {
15333
- (xn(n) || Et(n)) && (l = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, l);
15339
+ (_n(n) || Et(n)) && (l = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, l);
15334
15340
  };
15335
15341
  }
15336
15342
  var hw = 250, cs = 1400;
@@ -15663,7 +15669,7 @@ Zl.prototype.preExecute = function(e) {
15663
15669
  ie(t, function(u) {
15664
15670
  Et(u.x) || (u.x = 0), Et(u.y) || (u.y = 0);
15665
15671
  });
15666
- var r = Cn(tn(t, function(u) {
15672
+ var r = Sn(tn(t, function(u) {
15667
15673
  return !u.hidden;
15668
15674
  }));
15669
15675
  ie(t, function(u) {
@@ -16019,11 +16025,11 @@ jo.prototype.revert = function(e) {
16019
16025
  function ps(e) {
16020
16026
  return e.original || e;
16021
16027
  }
16022
- function Hn(e, t) {
16028
+ function In(e, t) {
16023
16029
  this._modeling = e, this._rules = t;
16024
16030
  }
16025
- Hn.$inject = ["modeling", "rules"];
16026
- Hn.prototype.preExecute = function(e) {
16031
+ In.$inject = ["modeling", "rules"];
16032
+ In.prototype.preExecute = function(e) {
16027
16033
  var t = this, n = this._modeling, a = this._rules, o = e.oldShape, i = e.newData, l = e.hints || {}, r;
16028
16034
  function s(p, g, v) {
16029
16035
  return a.allowed("connection.reconnect", {
@@ -16056,21 +16062,21 @@ Hn.prototype.preExecute = function(e) {
16056
16062
  s(r, g, p) && t.reconnectStart(p, r, tr(p, r, u), l);
16057
16063
  });
16058
16064
  };
16059
- Hn.prototype.postExecute = function(e) {
16065
+ In.prototype.postExecute = function(e) {
16060
16066
  var t = e.oldShape;
16061
16067
  this._modeling.removeShape(t);
16062
16068
  };
16063
- Hn.prototype.execute = function(e) {
16069
+ In.prototype.execute = function(e) {
16064
16070
  };
16065
- Hn.prototype.revert = function(e) {
16071
+ In.prototype.revert = function(e) {
16066
16072
  };
16067
- Hn.prototype.createShape = function(e, t, n, a) {
16073
+ In.prototype.createShape = function(e, t, n, a) {
16068
16074
  return this._modeling.createShape(e, t, n, a);
16069
16075
  };
16070
- Hn.prototype.reconnectStart = function(e, t, n, a) {
16076
+ In.prototype.reconnectStart = function(e, t, n, a) {
16071
16077
  this._modeling.reconnectStart(e, t, n, a);
16072
16078
  };
16073
- Hn.prototype.reconnectEnd = function(e, t, n, a) {
16079
+ In.prototype.reconnectEnd = function(e, t, n, a) {
16074
16080
  this._modeling.reconnectEnd(e, t, n, a);
16075
16081
  };
16076
16082
  function Po(e) {
@@ -16321,7 +16327,7 @@ Ze.prototype.getHandlers = function() {
16321
16327
  "shape.delete": Mo,
16322
16328
  "shape.move": wa,
16323
16329
  "shape.resize": Po,
16324
- "shape.replace": Hn,
16330
+ "shape.replace": In,
16325
16331
  "shape.toggleCollapse": $i,
16326
16332
  spaceTool: qn,
16327
16333
  "label.create": Eo,
@@ -16857,7 +16863,7 @@ function Qw(e, t, n, a) {
16857
16863
  }
16858
16864
  function dr(e, t, n, a) {
16859
16865
  function o(u) {
16860
- return u.length < 3 ? !0 : u.length > 4 ? !1 : !!wn(u, function(f, d) {
16866
+ return u.length < 3 ? !0 : u.length > 4 ? !1 : !!xn(u, function(f, d) {
16861
16867
  var h = u[d - 1];
16862
16868
  return h && ko(f, h) < 3;
16863
16869
  });
@@ -17613,7 +17619,7 @@ function _a(e, t, n, a, o, i, l) {
17613
17619
  }), D;
17614
17620
  },
17615
17621
  SubProcessMarker(T, S) {
17616
- _n(b(T, 14, 14, 0, {
17622
+ Cn(b(T, 14, 14, 0, {
17617
17623
  strokeWidth: 1,
17618
17624
  fill: un(S, r),
17619
17625
  stroke: bt(S, s)
@@ -18450,7 +18456,7 @@ function Wx(e, t, n, a) {
18450
18456
  }
18451
18457
  function ju(e, t, n) {
18452
18458
  var a = Fe("g"), o = vl(t, n), i = Vn(t, n);
18453
- return Ue(e, a), Wx(a, t, n, i), ht(a).add(Au), ht(a).add(i === "h" ? "horizontal" : "vertical"), _n(a, o.x, o.y), a;
18459
+ return Ue(e, a), Wx(a, t, n, i), ht(a).add(Au), ht(a).add(i === "h" ? "horizontal" : "vertical"), Cn(a, o.x, o.y), a;
18454
18460
  }
18455
18461
  function Sl(e) {
18456
18462
  return Math.abs(Math.round(e * 2 / 3));
@@ -18504,7 +18510,7 @@ function Pu(e, t, n, a, o) {
18504
18510
  function f(m, w) {
18505
18511
  w.waypoints.forEach(function(R, y) {
18506
18512
  var k = Cl(m);
18507
- Ue(m, k), _n(k, R.x, R.y);
18513
+ Ue(m, k), Cn(k, R.x, R.y);
18508
18514
  }), Cl(m, "floating");
18509
18515
  }
18510
18516
  function d(m, w) {
@@ -18531,7 +18537,7 @@ function Pu(e, t, n, a, o) {
18531
18537
  }
18532
18538
  function b(m, w) {
18533
18539
  var R = Wt(".floating", m), y = w.point;
18534
- R && _n(R, y.x, y.y);
18540
+ R && Cn(R, y.x, y.y);
18535
18541
  }
18536
18542
  function x(m, w, R) {
18537
18543
  var y = u(w.index, m), k = R[w.index - 1], C = R[w.index], E = w.point, M = vl(k, C), A = Vn(k, C), U, V;
@@ -18541,7 +18547,7 @@ function Pu(e, t, n, a, o) {
18541
18547
  }, A === "v" && (V = {
18542
18548
  x: V.y,
18543
18549
  y: V.x
18544
- }), _n(U, V.x, V.y));
18550
+ }), Cn(U, V.x, V.y));
18545
18551
  }
18546
18552
  e.on("connection.changed", function(m) {
18547
18553
  v(m.element);
@@ -18694,7 +18700,7 @@ function Ou(e, t, n, a) {
18694
18700
  x: i.x,
18695
18701
  y: i.y
18696
18702
  }, b = l.hints || {}, x = {};
18697
- o && (b.connectionStart && (x.connectionStart = b.connectionStart), b.connectionEnd && (x.connectionEnd = b.connectionEnd), f === Jx ? bi(l) ? (x.connectionEnd = x.connectionEnd || v, x.source = p, x.target = u || h, g = g.reverse()) : (x.connectionStart = x.connectionStart || v, x.source = u || h, x.target = p) : f === Xx ? bi(l) ? (x.connectionStart = x.connectionStart || v, x.source = u || p, x.target = h, g = g.reverse()) : (x.connectionEnd = x.connectionEnd || v, x.source = h, x.target = u || p) : (x.noCropping = !0, x.noLayout = !0, g[s] = v), f === Ms && (g = e.cropWaypoints(d, g)), x.waypoints = g, o.drawPreview(l, r, x)), _n(c, i.x, i.y);
18703
+ o && (b.connectionStart && (x.connectionStart = b.connectionStart), b.connectionEnd && (x.connectionEnd = b.connectionEnd), f === Jx ? bi(l) ? (x.connectionEnd = x.connectionEnd || v, x.source = p, x.target = u || h, g = g.reverse()) : (x.connectionStart = x.connectionStart || v, x.source = u || h, x.target = p) : f === Xx ? bi(l) ? (x.connectionStart = x.connectionStart || v, x.source = u || p, x.target = h, g = g.reverse()) : (x.connectionEnd = x.connectionEnd || v, x.source = h, x.target = u || p) : (x.noCropping = !0, x.noLayout = !0, g[s] = v), f === Ms && (g = e.cropWaypoints(d, g)), x.waypoints = g, o.drawPreview(l, r, x)), Cn(c, i.x, i.y);
18698
18704
  }, this), n.on(["bendpoint.move.end", "bendpoint.move.cancel"], Os, function(i) {
18699
18705
  var l = i.context, r = l.connection, s = l.draggerGfx, c = l.hover, u = l.target;
18700
18706
  r.waypoints = l.waypoints, Xt(s), a.removeMarker(r, js), a.removeMarker(r, Ps), c && (a.removeMarker(c, eo), a.removeMarker(c, u ? eo : ai)), o && o.cleanUp(l);
@@ -18761,7 +18767,7 @@ function Iu(e, t, n, a, o, i) {
18761
18767
  }
18762
18768
  function c(f, d, h) {
18763
18769
  var p = f.newWaypoints, g = p[f.segmentStartIndex + d], v = p[f.segmentEndIndex + d], b = qx(h, g, v, Hu(f.axis));
18764
- _n(f.draggerGfx, b.x, b.y);
18770
+ Cn(f.draggerGfx, b.x, b.y);
18765
18771
  }
18766
18772
  function u(f, d) {
18767
18773
  var h = 0;
@@ -18844,7 +18850,7 @@ function wi(e, t) {
18844
18850
  var n = e.snapped;
18845
18851
  return n ? typeof t == "string" ? n[t] : n.x && n.y : !1;
18846
18852
  }
18847
- function Tn(e, t, n) {
18853
+ function Mn(e, t, n) {
18848
18854
  if (typeof t != "string") throw new Error("axis must be in [x, y]");
18849
18855
  if (typeof n != "number" && n !== !1) throw new Error("value must be Number or false");
18850
18856
  var a, o = e[t], i = e.snapped = e.snapped || {};
@@ -18899,7 +18905,7 @@ function Lu(e) {
18899
18905
  dy: i.dy - d,
18900
18906
  x: c,
18901
18907
  y: u
18902
- }), (f || l.vertical.indexOf(r) !== -1) && Tn(i, "x", c), (d || l.horizontal.indexOf(s) !== -1) && Tn(i, "y", u);
18908
+ }), (f || l.vertical.indexOf(r) !== -1) && Mn(i, "x", c), (d || l.horizontal.indexOf(s) !== -1) && Mn(i, "y", u);
18903
18909
  }
18904
18910
  });
18905
18911
  function o(i) {
@@ -18919,7 +18925,7 @@ function Lu(e) {
18919
18925
  "connect.end"
18920
18926
  ], 1500, function(i) {
18921
18927
  var l = i.context.hover, r = l && n(l, i);
18922
- !Ut(l) || !r || !r.x || !r.y || (Tn(i, "x", r.x), Tn(i, "y", r.y));
18928
+ !Ut(l) || !r || !r.x || !r.y || (Mn(i, "x", r.x), Mn(i, "y", r.y));
18923
18929
  }), e.on(["bendpoint.move.move", "bendpoint.move.end"], 1500, function(i) {
18924
18930
  var l = i.context, r = o(l), s = l.hover, c = s && n(s, i), u = i.x, f = i.y, d, h;
18925
18931
  if (r) {
@@ -18930,7 +18936,7 @@ function Lu(e) {
18930
18936
  dy: i.dy - g,
18931
18937
  x: i.x - p,
18932
18938
  y: i.y - g
18933
- }), (p || r.vertical.indexOf(u) !== -1) && Tn(i, "x", d), (g || r.horizontal.indexOf(f) !== -1) && Tn(i, "y", h);
18939
+ }), (p || r.vertical.indexOf(u) !== -1) && Mn(i, "x", d), (g || r.horizontal.indexOf(f) !== -1) && Mn(i, "y", h);
18934
18940
  }
18935
18941
  });
18936
18942
  }
@@ -18948,16 +18954,16 @@ var a0 = {
18948
18954
  connectionSegmentMove: ["type", Iu],
18949
18955
  bendpointSnapping: ["type", Lu]
18950
18956
  }, o0 = "djs-dragger";
18951
- function In(e, t, n, a) {
18957
+ function Bn(e, t, n, a) {
18952
18958
  this._canvas = t, this._graphicsFactory = n, this._elementFactory = a, this._connectionDocking = e.get("connectionDocking", !1), this._layouter = e.get("layouter", !1);
18953
18959
  }
18954
- In.$inject = [
18960
+ Bn.$inject = [
18955
18961
  "injector",
18956
18962
  "canvas",
18957
18963
  "graphicsFactory",
18958
18964
  "elementFactory"
18959
18965
  ];
18960
- In.prototype.drawPreview = function(e, t, n) {
18966
+ Bn.prototype.drawPreview = function(e, t, n) {
18961
18967
  n = n || {};
18962
18968
  var a = e.connectionPreviewGfx, o = e.getConnection, i = n.source, l = n.target, r = n.waypoints, s = n.connectionStart, c = n.connectionEnd, u = n.noLayout, f = n.noCropping, d = n.noNoop, h, p = this;
18963
18969
  if (a || (a = e.connectionPreviewGfx = this.createConnectionPreviewGfx()), Hl(a), o || (o = e.getConnection = i0(function(g, v, b) {
@@ -18974,26 +18980,26 @@ In.prototype.drawPreview = function(e, t, n) {
18974
18980
  waypoints: n.waypoints || h.waypoints
18975
18981
  })), (!h.waypoints || !h.waypoints.length) && (h.waypoints = [i ? wt(i) : s, l ? wt(l) : c]), this._connectionDocking && (i || l) && !f && (h.waypoints = this._connectionDocking.getCroppedWaypoints(h, i, l)), this._graphicsFactory.drawConnection(a, h, { stroke: "var(--element-dragger-color)" });
18976
18982
  };
18977
- In.prototype.drawNoopPreview = function(e, t) {
18983
+ Bn.prototype.drawNoopPreview = function(e, t) {
18978
18984
  var n = t.source, a = t.target, o = t.connectionStart || wt(n), i = t.connectionEnd || wt(a), l = this.cropWaypoints(o, i, n, a);
18979
18985
  Ue(e, this.createNoopConnection(l[0], l[1]));
18980
18986
  };
18981
- In.prototype.cropWaypoints = function(e, t, n, a) {
18987
+ Bn.prototype.cropWaypoints = function(e, t, n, a) {
18982
18988
  var o = this._graphicsFactory, i = n && o.getShapePath(n), l = a && o.getShapePath(a), r = o.getConnectionPath({ waypoints: [e, t] });
18983
18989
  return e = n && ml(i, r, !0) || e, t = a && ml(l, r, !1) || t, [e, t];
18984
18990
  };
18985
- In.prototype.cleanUp = function(e) {
18991
+ Bn.prototype.cleanUp = function(e) {
18986
18992
  e && e.connectionPreviewGfx && Xt(e.connectionPreviewGfx);
18987
18993
  };
18988
- In.prototype.getConnection = function(e) {
18994
+ Bn.prototype.getConnection = function(e) {
18989
18995
  var t = l0(e);
18990
18996
  return this._elementFactory.createConnection(t);
18991
18997
  };
18992
- In.prototype.createConnectionPreviewGfx = function() {
18998
+ Bn.prototype.createConnectionPreviewGfx = function() {
18993
18999
  var e = Fe("g");
18994
19000
  return Ae(e, { pointerEvents: "none" }), ht(e).add(o0), Ue(this._canvas.getActiveLayer(), e), e;
18995
19001
  };
18996
- In.prototype.createNoopConnection = function(e, t) {
19002
+ Bn.prototype.createNoopConnection = function(e, t) {
18997
19003
  return $l([e, t], {
18998
19004
  stroke: "#333",
18999
19005
  strokeDasharray: [1],
@@ -19013,7 +19019,7 @@ function l0(e) {
19013
19019
  }
19014
19020
  var r0 = {
19015
19021
  __init__: ["connectionPreview"],
19016
- connectionPreview: ["type", In]
19022
+ connectionPreview: ["type", Bn]
19017
19023
  }, s0 = new Mi("ov"), c0 = 500;
19018
19024
  function Ot(e, t, n, a) {
19019
19025
  this._eventBus = t, this._canvas = n, this._elementRegistry = a, this._ids = s0, this._overlayDefaults = Ie({
@@ -19072,7 +19078,7 @@ Ot.prototype.clear = function() {
19072
19078
  Ot.prototype._updateOverlayContainer = function(e) {
19073
19079
  var t = e.element, n = e.html, a = t.x, o = t.y;
19074
19080
  if (t.waypoints) {
19075
- var i = Cn(t);
19081
+ var i = Sn(t);
19076
19082
  a = i.x, o = i.y;
19077
19083
  }
19078
19084
  zu(n, a, o), hn(e.html, "data-container-id", t.id);
@@ -19081,11 +19087,11 @@ Ot.prototype._updateOverlay = function(e) {
19081
19087
  var t = e.position, n = e.htmlContainer, a = e.element, o = t.left, i = t.top;
19082
19088
  if (t.right !== void 0) {
19083
19089
  var l;
19084
- a.waypoints ? l = Cn(a).width : l = a.width, o = t.right * -1 + l;
19090
+ a.waypoints ? l = Sn(a).width : l = a.width, o = t.right * -1 + l;
19085
19091
  }
19086
19092
  if (t.bottom !== void 0) {
19087
19093
  var r;
19088
- a.waypoints ? r = Cn(a).height : r = a.height, i = t.bottom * -1 + r;
19094
+ a.waypoints ? r = Sn(a).height : r = a.height, i = t.bottom * -1 + r;
19089
19095
  }
19090
19096
  zu(n, o || 0, i || 0), this._updateOverlayVisibilty(e, this._canvas.viewbox());
19091
19097
  };
@@ -19111,7 +19117,7 @@ Ot.prototype._updateRoot = function(e) {
19111
19117
  $u(this._overlayRoot, n);
19112
19118
  };
19113
19119
  Ot.prototype._getOverlayContainer = function(e, t) {
19114
- var n = wn(this._overlayContainers, function(a) {
19120
+ var n = xn(this._overlayContainers, function(a) {
19115
19121
  return a.element === e;
19116
19122
  });
19117
19123
  return !n && !t ? this._createOverlayContainer(e) : n;
@@ -19292,9 +19298,9 @@ Rt.prototype.registerProvider = function(e, t) {
19292
19298
  Rt.prototype.getEntries = function(e) {
19293
19299
  var t = this._getProviders(), n = ot(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
19294
19300
  return ie(t, function(o) {
19295
- if (xn(o[n])) {
19301
+ if (_n(o[n])) {
19296
19302
  var i = o[n](e);
19297
- xn(i) ? a = i(a) : ie(i, function(l, r) {
19303
+ _n(i) ? a = i(a) : ie(i, function(l, r) {
19298
19304
  a[r] = l;
19299
19305
  });
19300
19306
  }
@@ -19323,7 +19329,7 @@ Rt.prototype.triggerEntry = function(e, t, n, a) {
19323
19329
  entry: i,
19324
19330
  event: n
19325
19331
  }) !== !1) {
19326
- if (xn(l)) {
19332
+ if (_n(l)) {
19327
19333
  if (t === "click") return l(n, o, a);
19328
19334
  } else if (l[t]) return l[t](n, o, a);
19329
19335
  n.preventDefault();
@@ -19839,7 +19845,7 @@ ka.prototype.updateShapeOutline = function(e, t) {
19839
19845
  });
19840
19846
  };
19841
19847
  ka.prototype.updateConnectionOutline = function(e, t) {
19842
- var n = Cn(t);
19848
+ var n = Sn(t);
19843
19849
  Ae(e, {
19844
19850
  x: n.x - this.offset,
19845
19851
  y: n.y - this.offset,
@@ -19862,7 +19868,7 @@ ka.prototype._getProviders = function() {
19862
19868
  ka.prototype.getOutline = function(e) {
19863
19869
  var t;
19864
19870
  return ie(this._getProviders(), function(n) {
19865
- xn(n.getOutline) && (t = t || n.getOutline(e));
19871
+ _n(n.getOutline) && (t = t || n.getOutline(e));
19866
19872
  }), t;
19867
19873
  };
19868
19874
  ka.$inject = [
@@ -19886,7 +19892,7 @@ br.prototype._updateMultiSelectionOutline = function(e) {
19886
19892
  Hl(t);
19887
19893
  var n = e.length > 1;
19888
19894
  if (ht(this._canvas.getContainer())[n ? "add" : "remove"]("djs-multi-select"), !!n) {
19889
- var a = A0(Cn(e)), o = Fe("rect");
19895
+ var a = A0(Sn(e)), o = Fe("rect");
19890
19896
  Ae(o, Ie({ rx: 3 }, a)), ht(o).add("djs-selection-outline"), Ue(t, o);
19891
19897
  }
19892
19898
  };
@@ -20025,7 +20031,7 @@ function Wu(e, t, n, a) {
20025
20031
  }), c.allDraggedElements = f, c.differentParents = L0(u);
20026
20032
  }), e.on("shape.move.move", Ws, function(s) {
20027
20033
  var c = s.context, u = c.dragGroup, f = c.target, d = c.shape.parent, h = c.canExecute;
20028
- f && (h === "attach" ? l(f, Gs) : c.canExecute && d && f.id !== d.id ? l(f, Ks) : l(f, c.canExecute ? Us : Ys)), _n(u, s.dx, s.dy);
20034
+ f && (h === "attach" ? l(f, Gs) : c.canExecute && d && f.id !== d.id ? l(f, Ks) : l(f, c.canExecute ? Us : Ys)), Cn(u, s.dx, s.dy);
20029
20035
  }), e.on(["shape.move.out", "shape.move.cleanup"], function(s) {
20030
20036
  var c = s.context.target;
20031
20037
  c && l(c, null);
@@ -20044,7 +20050,7 @@ Wu.$inject = [
20044
20050
  ];
20045
20051
  function B0(e) {
20046
20052
  return tn(e, function(t) {
20047
- return Ut(t) ? wn(e, di({ id: t.source.id })) && wn(e, di({ id: t.target.id })) : !0;
20053
+ return Ut(t) ? xn(e, di({ id: t.source.id })) && xn(e, di({ id: t.target.id })) : !0;
20048
20054
  });
20049
20055
  }
20050
20056
  function L0(e) {
@@ -20138,7 +20144,7 @@ St.prototype.triggerEntry = function(e, t, n, a) {
20138
20144
  entry: o,
20139
20145
  event: n
20140
20146
  }) !== !1)) {
20141
- if (xn(i)) {
20147
+ if (_n(i)) {
20142
20148
  if (t === "click") return i(n, a);
20143
20149
  } else if (i[t]) return i[t](n, a);
20144
20150
  n.preventDefault();
@@ -20190,7 +20196,7 @@ function V0(e, t) {
20190
20196
  }
20191
20197
  function N0(e, t) {
20192
20198
  var n = t.getPaletteEntries();
20193
- return xn(n) ? n(e) : (ie(n, function(a, o) {
20199
+ return _n(n) ? n(e) : (ie(n, function(a, o) {
20194
20200
  e[o] = a;
20195
20201
  }), e);
20196
20202
  }
@@ -20277,7 +20283,7 @@ function q0(e) {
20277
20283
  }
20278
20284
  function Z0(e, t) {
20279
20285
  var n;
20280
- if (e.length === void 0 ? n = tn(e.children, q0) : n = e, n.length) return X0(Cn(n), t);
20286
+ if (e.length === void 0 ? n = tn(e.children, q0) : n = e, n.length) return X0(Sn(n), t);
20281
20287
  }
20282
20288
  var Xs = 10;
20283
20289
  function Ho(e, t, n, a) {
@@ -20647,7 +20653,7 @@ Ni.prototype.initDefaults = function(e) {
20647
20653
  });
20648
20654
  };
20649
20655
  var r_ = 1250;
20650
- function kn(e, t, n) {
20656
+ function Rn(e, t, n) {
20651
20657
  var a = this;
20652
20658
  this._elementRegistry = e, t.on(["create.start", "shape.move.start"], function(o) {
20653
20659
  a.initSnap(o);
@@ -20666,12 +20672,12 @@ function kn(e, t, n) {
20666
20672
  n.hide();
20667
20673
  });
20668
20674
  }
20669
- kn.$inject = [
20675
+ Rn.$inject = [
20670
20676
  "elementRegistry",
20671
20677
  "eventBus",
20672
20678
  "snapping"
20673
20679
  ];
20674
- kn.prototype.initSnap = function(e) {
20680
+ Rn.prototype.initSnap = function(e) {
20675
20681
  var t = this._elementRegistry, n = e.context, a = n.shape, o = n.snapContext;
20676
20682
  o || (o = n.snapContext = new ta());
20677
20683
  var i;
@@ -20697,7 +20703,7 @@ kn.prototype.initSnap = function(e) {
20697
20703
  y: r.y - e.y
20698
20704
  })), o;
20699
20705
  };
20700
- kn.prototype.addSnapTargetPoints = function(e, t, n) {
20706
+ Rn.prototype.addSnapTargetPoints = function(e, t, n) {
20701
20707
  return ie(this.getSnapTargets(t, n), function(a) {
20702
20708
  if (Ba(a)) {
20703
20709
  Ba(t) && e.add("mid", Oa(a));
@@ -20713,7 +20719,7 @@ kn.prototype.addSnapTargetPoints = function(e, t, n) {
20713
20719
  e.add("mid", Oa(a));
20714
20720
  }), !Et(t.x) || !Et(t.y) || this._elementRegistry.get(t.id) && e.add("mid", Oa(t)), e;
20715
20721
  };
20716
- kn.prototype.getSnapTargets = function(e, t) {
20722
+ Rn.prototype.getSnapTargets = function(e, t) {
20717
20723
  return Bu(t).filter(function(n) {
20718
20724
  return !s_(n);
20719
20725
  });
@@ -20722,18 +20728,18 @@ function s_(e) {
20722
20728
  return !!e.hidden;
20723
20729
  }
20724
20730
  function Ya(e) {
20725
- e.invoke(kn, this);
20731
+ e.invoke(Rn, this);
20726
20732
  }
20727
- ga(Ya, kn);
20733
+ ga(Ya, Rn);
20728
20734
  Ya.$inject = ["injector"];
20729
20735
  Ya.prototype.initSnap = function(e) {
20730
- return kn.prototype.initSnap.call(this, e);
20736
+ return Rn.prototype.initSnap.call(this, e);
20731
20737
  };
20732
20738
  Ya.prototype.addSnapTargetPoints = function(e, t, n) {
20733
- return kn.prototype.addSnapTargetPoints.call(this, e, t, n);
20739
+ return Rn.prototype.addSnapTargetPoints.call(this, e, t, n);
20734
20740
  };
20735
20741
  Ya.prototype.getSnapTargets = function(e, t) {
20736
- return kn.prototype.getSnapTargets.call(this, e, t);
20742
+ return Rn.prototype.getSnapTargets.call(this, e, t);
20737
20743
  };
20738
20744
  var c_ = 1250;
20739
20745
  function Bo(e, t) {
@@ -20744,7 +20750,7 @@ function Bo(e, t) {
20744
20750
  var o = a.context, i = o.shape, l = i.parent, r = o.direction, s = o.snapContext;
20745
20751
  if (!(a.originalEvent && Hc(a.originalEvent)) && !wi(a)) {
20746
20752
  var c = s.pointsForTarget(l);
20747
- c.initialized || (c = n.addSnapTargetPoints(c, i, l, r), c.initialized = !0), f_(r) && Tn(a, "x", a.x), h_(r) && Tn(a, "y", a.y), t.snap(a, c);
20753
+ c.initialized || (c = n.addSnapTargetPoints(c, i, l, r), c.initialized = !0), f_(r) && Mn(a, "x", a.x), h_(r) && Mn(a, "y", a.y), t.snap(a, c);
20748
20754
  }
20749
20755
  }), e.on(["resize.cleanup"], function() {
20750
20756
  t.hide();
@@ -20813,7 +20819,7 @@ na.prototype.snap = function(e, t) {
20813
20819
  }), o.x && o.y) return !1;
20814
20820
  }), this.showSnapLine("vertical", o.x && o.x.value), this.showSnapLine("horizontal", o.y && o.y.value), ie(["x", "y"], function(i) {
20815
20821
  var l = o[i];
20816
- nn(l) && Tn(e, i, l.originValue);
20822
+ nn(l) && Mn(e, i, l.originValue);
20817
20823
  });
20818
20824
  };
20819
20825
  na.prototype._createLine = function(e) {
@@ -20852,7 +20858,7 @@ var v_ = {
20852
20858
  "resizeSnapping",
20853
20859
  "snapping"
20854
20860
  ],
20855
- createMoveSnapping: ["type", kn],
20861
+ createMoveSnapping: ["type", Rn],
20856
20862
  resizeSnapping: ["type", Bo],
20857
20863
  snapping: ["type", na]
20858
20864
  }, y_ = {
@@ -21085,7 +21091,7 @@ function j_(e, t, n) {
21085
21091
  width: n.width,
21086
21092
  height: n.height
21087
21093
  };
21088
- return wn(A_(e), (o) => o === n ? !1 : Un(o, a, R_) === "intersect");
21094
+ return xn(A_(e), (o) => o === n ? !1 : Un(o, a, R_) === "intersect");
21089
21095
  }
21090
21096
  function P_(e, t, n, a) {
21091
21097
  let o;
@@ -21497,7 +21503,7 @@ var z_ = {
21497
21503
  span: T.config?.span || e.span || 24,
21498
21504
  style: je({ "margin-bottom": (T.getInputType ? T.getInputType(V) : T.inputType) == "j-input-rows" ? "8px" : void 0 })
21499
21505
  }, {
21500
- default: N(() => [Mn(Y(E, {
21506
+ default: N(() => [An(Y(E, {
21501
21507
  "label-width": w(T.config?.labelWidth),
21502
21508
  label: X(i)(T.config?.label || ""),
21503
21509
  extra: T.config?.labelExtra,
@@ -21676,7 +21682,7 @@ export {
21676
21682
  Yo as formatToDate,
21677
21683
  fc as formatToDateTime,
21678
21684
  ao as fullScreenLoading,
21679
- bn as getCompConfig,
21685
+ wn as getCompConfig,
21680
21686
  zl as getCompType,
21681
21687
  sc as getFunction,
21682
21688
  Ll as getIsInputComp,
@@ -21714,7 +21720,7 @@ export {
21714
21720
  gc as useFormProvide,
21715
21721
  Df as useHMenuInject,
21716
21722
  Ff as useHMenuProvide,
21717
- jn as useInject,
21723
+ Pn as useInject,
21718
21724
  Co as useLayer,
21719
21725
  NC as useLayerInject,
21720
21726
  Wf as useLayerProvide,
@@ -21722,7 +21728,7 @@ export {
21722
21728
  $f as useMenuProvide,
21723
21729
  Uf as usePageInject,
21724
21730
  Yf as usePageProvide,
21725
- Pn as useProvide,
21731
+ On as useProvide,
21726
21732
  If as useSortable,
21727
21733
  Lf as useTableInject,
21728
21734
  Ei as useTableProvide