@gis_victory/curd-form 0.0.29 → 0.0.31

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,5 +1,5 @@
1
- import { defineComponent as qe, ref as Oe, computed as xr, watch as fn, openBlock as z, createBlock as ge, unref as B, withCtx as ne, createElementBlock as Ee, Fragment as at, renderList as xn, createElementVNode as Pe, onMounted as Ho, createVNode as de, normalizeClass as Zi, createCommentVNode as Qe, resolveDynamicComponent as IS, toDisplayString as hi, onUnmounted as fd, reactive as dn, renderSlot as gr, createTextVNode as St, nextTick as xS, normalizeStyle as DS, createSlots as MS } from "vue";
2
- import { ElSelect as Mu, ElOption as ku, ElDatePicker as Lu, ElCheckboxGroup as a_, ElCheckbox as Ed, ElRadioGroup as kS, ElRadio as LS, ElInput as Ec, ElImage as PS, ElUpload as FS, ElIcon as Vn, ElImageViewer as BS, ElMessage as Ke, dayjs as Ba, ElButton as mt, ElDialog as s_, ElForm as Sc, ElFormItem as Xi, ElPopover as US, ElTable as HS, ElTableColumn as ta, ElTag as VS, ElSwitch as GS, ElPagination as zS, ElRow as Sl, ElCol as na, ElMessageBox as Pu } from "element-plus";
1
+ import { defineComponent as qe, ref as Oe, computed as xr, watch as fn, openBlock as z, createBlock as ge, unref as B, withCtx as ne, createElementBlock as Ee, Fragment as at, renderList as xn, createElementVNode as Pe, onMounted as Ho, createVNode as de, normalizeClass as Zi, createCommentVNode as Qe, resolveDynamicComponent as IS, toDisplayString as hi, onUnmounted as fd, reactive as dn, renderSlot as Un, createTextVNode as St, nextTick as xS, normalizeStyle as DS, createSlots as MS } from "vue";
2
+ import { ElSelect as Mu, ElOption as ku, ElDatePicker as Lu, ElCheckboxGroup as a_, ElCheckbox as Ed, ElRadioGroup as kS, ElRadio as LS, ElInput as Ec, ElImage as PS, ElUpload as FS, ElIcon as Gn, ElImageViewer as BS, ElMessage as Ke, dayjs as Ba, ElButton as mt, ElDialog as s_, ElForm as Sc, ElFormItem as Xi, ElPopover as US, ElTable as HS, ElTableColumn as ta, ElTag as VS, ElSwitch as GS, ElPagination as zS, ElRow as Sl, ElCol as na, ElMessageBox as Pu } from "element-plus";
3
3
  import { GisMapView as $S, GisMapSwitch as YS } from "@gis_victory/gismap";
4
4
  const qS = {
5
5
  name: "FormItem"
@@ -528,7 +528,7 @@ const mb = (e, t) => {
528
528
  class: "file-action",
529
529
  onClick: (T) => g(y)
530
530
  }, [
531
- de(B(Vn), null, {
531
+ de(B(Gn), null, {
532
532
  default: ne(() => [
533
533
  de(B(Vu))
534
534
  ]),
@@ -540,7 +540,7 @@ const mb = (e, t) => {
540
540
  class: "file-action",
541
541
  onClick: (T) => p(y)
542
542
  }, [
543
- de(B(Vn), null, {
543
+ de(B(Gn), null, {
544
544
  default: ne(() => [
545
545
  de(B(Bu))
546
546
  ]),
@@ -549,7 +549,7 @@ const mb = (e, t) => {
549
549
  ], 8, Sb))
550
550
  ])
551
551
  ], 64)) : (z(), Ee(at, { key: 1 }, [
552
- de(B(Vn), {
552
+ de(B(Gn), {
553
553
  size: 32,
554
554
  color: b(y.name || y.fileName)
555
555
  }, {
@@ -564,7 +564,7 @@ const mb = (e, t) => {
564
564
  class: "file-action",
565
565
  onClick: (T) => g(y)
566
566
  }, [
567
- de(B(Vn), null, {
567
+ de(B(Gn), null, {
568
568
  default: ne(() => [
569
569
  de(B(Vu))
570
570
  ]),
@@ -576,7 +576,7 @@ const mb = (e, t) => {
576
576
  class: "file-action",
577
577
  onClick: (T) => p(y)
578
578
  }, [
579
- de(B(Vn), null, {
579
+ de(B(Gn), null, {
580
580
  default: ne(() => [
581
581
  de(B(Bu))
582
582
  ]),
@@ -588,7 +588,7 @@ const mb = (e, t) => {
588
588
  ])
589
589
  ]),
590
590
  default: ne(() => [
591
- de(B(Vn), null, {
591
+ de(B(Gn), null, {
592
592
  default: ne(() => [
593
593
  de(B(cb))
594
594
  ]),
@@ -614,7 +614,7 @@ const mb = (e, t) => {
614
614
  }, bl = /* @__PURE__ */ Ii(Ob, [["__scopeId", "data-v-75a84e05"]]);
615
615
  var Nb = Object.defineProperty, l_ = (e) => {
616
616
  throw TypeError(e);
617
- }, Rb = (e, t, n) => t in e ? Nb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t, n) => Rb(e, typeof t != "symbol" ? t + "" : t, n), c_ = (e, t, n) => t.has(e) || l_("Cannot " + n), Pi = (e, t, n) => (c_(e, t, "read from private field"), t.get(e)), Ab = (e, t, n) => t.has(e) ? l_("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), wb = (e, t, n, r) => (c_(e, t, "write to private field"), t.set(e, n), n);
617
+ }, Rb = (e, t, n) => t in e ? Nb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, D = (e, t, n) => Rb(e, typeof t != "symbol" ? t + "" : t, n), c_ = (e, t, n) => t.has(e) || l_("Cannot " + n), Pi = (e, t, n) => (c_(e, t, "read from private field"), t.get(e)), Ab = (e, t, n) => t.has(e) ? l_("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), wb = (e, t, n, r) => (c_(e, t, "write to private field"), t.set(e, n), n);
618
618
  function ot(e) {
619
619
  this.content = e;
620
620
  }
@@ -3768,7 +3768,7 @@ function Sd(e, t, n) {
3768
3768
  }
3769
3769
  return M.fromArray(r);
3770
3770
  }
3771
- class Qn extends gt {
3771
+ class Zn extends gt {
3772
3772
  /**
3773
3773
  Create a mark step.
3774
3774
  */
@@ -3784,10 +3784,10 @@ class Qn extends gt {
3784
3784
  }
3785
3785
  map(t) {
3786
3786
  let n = t.mapResult(this.from, 1), r = t.mapResult(this.to, -1);
3787
- return n.deleted && r.deleted || n.pos >= r.pos ? null : new Qn(n.pos, r.pos, this.mark);
3787
+ return n.deleted && r.deleted || n.pos >= r.pos ? null : new Zn(n.pos, r.pos, this.mark);
3788
3788
  }
3789
3789
  merge(t) {
3790
- return t instanceof Qn && t.mark.eq(this.mark) && this.from <= t.to && this.to >= t.from ? new Qn(Math.min(this.from, t.from), Math.max(this.to, t.to), this.mark) : null;
3790
+ return t instanceof Zn && t.mark.eq(this.mark) && this.from <= t.to && this.to >= t.from ? new Zn(Math.min(this.from, t.from), Math.max(this.to, t.to), this.mark) : null;
3791
3791
  }
3792
3792
  toJSON() {
3793
3793
  return {
@@ -3803,10 +3803,10 @@ class Qn extends gt {
3803
3803
  static fromJSON(t, n) {
3804
3804
  if (typeof n.from != "number" || typeof n.to != "number")
3805
3805
  throw new RangeError("Invalid input for AddMarkStep.fromJSON");
3806
- return new Qn(n.from, n.to, t.markFromJSON(n.mark));
3806
+ return new Zn(n.from, n.to, t.markFromJSON(n.mark));
3807
3807
  }
3808
3808
  }
3809
- gt.jsonID("addMark", Qn);
3809
+ gt.jsonID("addMark", Zn);
3810
3810
  class pn extends gt {
3811
3811
  /**
3812
3812
  Create a mark-removing step.
@@ -3819,7 +3819,7 @@ class pn extends gt {
3819
3819
  return Ze.fromReplace(t, this.from, this.to, r);
3820
3820
  }
3821
3821
  invert() {
3822
- return new Qn(this.from, this.to, this.mark);
3822
+ return new Zn(this.from, this.to, this.mark);
3823
3823
  }
3824
3824
  map(t) {
3825
3825
  let n = t.mapResult(this.from, 1), r = t.mapResult(this.to, -1);
@@ -3846,7 +3846,7 @@ class pn extends gt {
3846
3846
  }
3847
3847
  }
3848
3848
  gt.jsonID("removeMark", pn);
3849
- class Zn extends gt {
3849
+ class Xn extends gt {
3850
3850
  /**
3851
3851
  Create a node mark step.
3852
3852
  */
@@ -3867,15 +3867,15 @@ class Zn extends gt {
3867
3867
  if (r.length == n.marks.length) {
3868
3868
  for (let i = 0; i < n.marks.length; i++)
3869
3869
  if (!n.marks[i].isInSet(r))
3870
- return new Zn(this.pos, n.marks[i]);
3871
- return new Zn(this.pos, this.mark);
3870
+ return new Xn(this.pos, n.marks[i]);
3871
+ return new Xn(this.pos, this.mark);
3872
3872
  }
3873
3873
  }
3874
3874
  return new _i(this.pos, this.mark);
3875
3875
  }
3876
3876
  map(t) {
3877
3877
  let n = t.mapResult(this.pos, 1);
3878
- return n.deletedAfter ? null : new Zn(n.pos, this.mark);
3878
+ return n.deletedAfter ? null : new Xn(n.pos, this.mark);
3879
3879
  }
3880
3880
  toJSON() {
3881
3881
  return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
@@ -3886,10 +3886,10 @@ class Zn extends gt {
3886
3886
  static fromJSON(t, n) {
3887
3887
  if (typeof n.pos != "number")
3888
3888
  throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
3889
- return new Zn(n.pos, t.markFromJSON(n.mark));
3889
+ return new Xn(n.pos, t.markFromJSON(n.mark));
3890
3890
  }
3891
3891
  }
3892
- gt.jsonID("addNodeMark", Zn);
3892
+ gt.jsonID("addNodeMark", Xn);
3893
3893
  class _i extends gt {
3894
3894
  /**
3895
3895
  Create a mark-removing step.
@@ -3906,7 +3906,7 @@ class _i extends gt {
3906
3906
  }
3907
3907
  invert(t) {
3908
3908
  let n = t.nodeAt(this.pos);
3909
- return !n || !this.mark.isInSet(n.marks) ? this : new Zn(this.pos, this.mark);
3909
+ return !n || !this.mark.isInSet(n.marks) ? this : new Xn(this.pos, this.mark);
3910
3910
  }
3911
3911
  map(t) {
3912
3912
  let n = t.mapResult(this.pos, 1);
@@ -4059,7 +4059,7 @@ function tv(e, t, n, r) {
4059
4059
  let p = Math.max(c, t), m = Math.min(c + l.nodeSize, n), h = r.addToSet(u);
4060
4060
  for (let _ = 0; _ < u.length; _++)
4061
4061
  u[_].isInSet(h) || (a && a.to == p && a.mark.eq(u[_]) ? a.to = m : i.push(a = new pn(p, m, u[_])));
4062
- s && s.to == p ? s.to = m : o.push(s = new Qn(p, m, r));
4062
+ s && s.to == p ? s.to = m : o.push(s = new Zn(p, m, r));
4063
4063
  }
4064
4064
  }), i.forEach((l) => e.step(l)), o.forEach((l) => e.step(l));
4065
4065
  }
@@ -4252,7 +4252,7 @@ function uv(e, t, n = 1, r) {
4252
4252
  }
4253
4253
  e.step(new Xe(t, t, new $(o.append(a), n, n), !0));
4254
4254
  }
4255
- function dr(e, t) {
4255
+ function ur(e, t) {
4256
4256
  let n = e.resolve(t), r = n.index();
4257
4257
  return L_(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
4258
4258
  }
@@ -4870,7 +4870,7 @@ class yd {
4870
4870
  Add a mark to the node at position `pos`.
4871
4871
  */
4872
4872
  addNodeMark(t, n) {
4873
- return this.step(new Zn(t, n)), this;
4873
+ return this.step(new Xn(t, n)), this;
4874
4874
  }
4875
4875
  /**
4876
4876
  Remove a mark (or a mark of the given type) from the node at
@@ -5838,9 +5838,9 @@ function Iv(e, t, n) {
5838
5838
  return { node: r.startContainer, offset: Math.min(jt(r.startContainer), r.startOffset) };
5839
5839
  }
5840
5840
  }
5841
- const En = typeof navigator < "u" ? navigator : null, lp = typeof document < "u" ? document : null, ur = En && En.userAgent || "", Ac = /Edge\/(\d+)/.exec(ur), $_ = /MSIE \d/.exec(ur), wc = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ur), At = !!($_ || wc || Ac), rr = $_ ? document.documentMode : wc ? +wc[1] : Ac ? +Ac[1] : 0, tn = !At && /gecko\/(\d+)/i.test(ur);
5842
- tn && +(/Firefox\/(\d+)/.exec(ur) || [0, 0])[1];
5843
- const Ic = !At && /Chrome\/(\d+)/.exec(ur), ht = !!Ic, Y_ = Ic ? +Ic[1] : 0, vt = !At && !!En && /Apple Computer/.test(En.vendor), fi = vt && (/Mobile\/\w+/.test(ur) || !!En && En.maxTouchPoints > 2), qt = fi || (En ? /Mac/.test(En.platform) : !1), xv = En ? /Win/.test(En.platform) : !1, Dn = /Android \d/.test(ur), Go = !!lp && "webkitFontSmoothing" in lp.documentElement.style, Dv = Go ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5841
+ const En = typeof navigator < "u" ? navigator : null, lp = typeof document < "u" ? document : null, pr = En && En.userAgent || "", Ac = /Edge\/(\d+)/.exec(pr), $_ = /MSIE \d/.exec(pr), wc = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pr), At = !!($_ || wc || Ac), ir = $_ ? document.documentMode : wc ? +wc[1] : Ac ? +Ac[1] : 0, tn = !At && /gecko\/(\d+)/i.test(pr);
5842
+ tn && +(/Firefox\/(\d+)/.exec(pr) || [0, 0])[1];
5843
+ const Ic = !At && /Chrome\/(\d+)/.exec(pr), ht = !!Ic, Y_ = Ic ? +Ic[1] : 0, vt = !At && !!En && /Apple Computer/.test(En.vendor), fi = vt && (/Mobile\/\w+/.test(pr) || !!En && En.maxTouchPoints > 2), qt = fi || (En ? /Mac/.test(En.platform) : !1), xv = En ? /Win/.test(En.platform) : !1, Dn = /Android \d/.test(pr), Go = !!lp && "webkitFontSmoothing" in lp.documentElement.style, Dv = Go ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5844
5844
  function Mv(e) {
5845
5845
  let t = e.defaultView && e.defaultView.visualViewport;
5846
5846
  return t ? {
@@ -5961,7 +5961,7 @@ function Bv(e, t) {
5961
5961
  let n = e.nodeValue.length, r = document.createRange();
5962
5962
  for (let i = 0; i < n; i++) {
5963
5963
  r.setEnd(e, i + 1), r.setStart(e, i);
5964
- let o = Un(r, 1);
5964
+ let o = Hn(r, 1);
5965
5965
  if (o.top != o.bottom && Td(t, o))
5966
5966
  return { node: e, offset: i + (t.left >= (o.left + o.right) / 2 ? 1 : 0) };
5967
5967
  }
@@ -6040,7 +6040,7 @@ function Gv(e, t) {
6040
6040
  function dp(e) {
6041
6041
  return e.top < e.bottom || e.left < e.right;
6042
6042
  }
6043
- function Un(e, t) {
6043
+ function Hn(e, t) {
6044
6044
  let n = e.getClientRects();
6045
6045
  if (n.length) {
6046
6046
  let r = n[t < 0 ? 0 : n.length - 1];
@@ -6054,11 +6054,11 @@ function Q_(e, t, n) {
6054
6054
  let { node: r, offset: i, atom: o } = e.docView.domFromPos(t, n < 0 ? -1 : 1), a = Go || tn;
6055
6055
  if (r.nodeType == 3)
6056
6056
  if (a && (zv.test(r.nodeValue) || (n < 0 ? !i : i == r.nodeValue.length))) {
6057
- let s = Un(wn(r, i, i), n);
6057
+ let s = Hn(wn(r, i, i), n);
6058
6058
  if (tn && i && /\s/.test(r.nodeValue[i - 1]) && i < r.nodeValue.length) {
6059
- let l = Un(wn(r, i - 1, i - 1), -1);
6059
+ let l = Hn(wn(r, i - 1, i - 1), -1);
6060
6060
  if (l.top == s.top) {
6061
- let c = Un(wn(r, i, i + 1), -1);
6061
+ let c = Hn(wn(r, i, i + 1), -1);
6062
6062
  if (c.top != s.top)
6063
6063
  return Fi(c, c.left < l.left);
6064
6064
  }
@@ -6066,7 +6066,7 @@ function Q_(e, t, n) {
6066
6066
  return s;
6067
6067
  } else {
6068
6068
  let s = i, l = i, c = n < 0 ? 1 : -1;
6069
- return n < 0 && !i ? (l++, c = -1) : n >= 0 && i == r.nodeValue.length ? (s--, c = 1) : n < 0 ? s-- : l++, Fi(Un(wn(r, s, l), c), c < 0);
6069
+ return n < 0 && !i ? (l++, c = -1) : n >= 0 && i == r.nodeValue.length ? (s--, c = 1) : n < 0 ? s-- : l++, Fi(Hn(wn(r, s, l), c), c < 0);
6070
6070
  }
6071
6071
  if (!e.state.doc.resolve(t - (o || 0)).parent.inlineContent) {
6072
6072
  if (o == null && i && (n < 0 || i == jt(r))) {
@@ -6084,7 +6084,7 @@ function Q_(e, t, n) {
6084
6084
  if (o == null && i && (n < 0 || i == jt(r))) {
6085
6085
  let s = r.childNodes[i - 1], l = s.nodeType == 3 ? wn(s, jt(s) - (a ? 0 : 1)) : s.nodeType == 1 && (s.nodeName != "BR" || !s.nextSibling) ? s : null;
6086
6086
  if (l)
6087
- return Fi(Un(l, 1), !1);
6087
+ return Fi(Hn(l, 1), !1);
6088
6088
  }
6089
6089
  if (o == null && i < jt(r)) {
6090
6090
  let s = r.childNodes[i];
@@ -6092,9 +6092,9 @@ function Q_(e, t, n) {
6092
6092
  s = s.nextSibling;
6093
6093
  let l = s ? s.nodeType == 3 ? wn(s, 0, a ? 0 : 1) : s.nodeType == 1 ? s : null : null;
6094
6094
  if (l)
6095
- return Fi(Un(l, -1), !0);
6095
+ return Fi(Hn(l, -1), !0);
6096
6096
  }
6097
- return Fi(Un(r.nodeType == 3 ? wn(r) : r, -n), n >= 0);
6097
+ return Fi(Hn(r.nodeType == 3 ? wn(r) : r, -n), n >= 0);
6098
6098
  }
6099
6099
  function Fi(e, t) {
6100
6100
  if (e.width == 0)
@@ -6605,7 +6605,7 @@ class kr extends zo {
6605
6605
  this.spec.destroy && this.spec.destroy(), super.destroy();
6606
6606
  }
6607
6607
  }
6608
- class ir extends zo {
6608
+ class or extends zo {
6609
6609
  constructor(t, n, r, i, o, a, s, l, c) {
6610
6610
  super(t, [], o, a), this.node = n, this.outerDeco = r, this.innerDeco = i, this.nodeDOM = s;
6611
6611
  }
@@ -6633,7 +6633,7 @@ class ir extends zo {
6633
6633
  } else d || ({ dom: d, contentDOM: u } = Hr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
6634
6634
  !u && !n.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), n.type.spec.draggable && (d.draggable = !0));
6635
6635
  let p = d;
6636
- return d = ng(d, r, n), c ? l = new Kv(t, n, r, i, d, u || null, p, c, o, a + 1) : n.isText ? new js(t, n, r, i, d, p, o) : new ir(t, n, r, i, d, u || null, p, o, a + 1);
6636
+ return d = ng(d, r, n), c ? l = new Kv(t, n, r, i, d, u || null, p, c, o, a + 1) : n.isText ? new js(t, n, r, i, d, p, o) : new or(t, n, r, i, d, u || null, p, o, a + 1);
6637
6637
  }
6638
6638
  parseRule() {
6639
6639
  if (this.node.type.spec.reparseInView)
@@ -6733,10 +6733,10 @@ class ir extends zo {
6733
6733
  }
6734
6734
  function _p(e, t, n, r, i) {
6735
6735
  ng(r, t, e);
6736
- let o = new ir(void 0, e, t, n, r, r, r, i, 0);
6736
+ let o = new or(void 0, e, t, n, r, r, r, i, 0);
6737
6737
  return o.contentDOM && o.updateChildren(i, 0), o;
6738
6738
  }
6739
- class js extends ir {
6739
+ class js extends or {
6740
6740
  constructor(t, n, r, i, o, a, s) {
6741
6741
  super(t, n, r, i, o, null, a, s, 0);
6742
6742
  }
@@ -6793,7 +6793,7 @@ class J_ extends zo {
6793
6793
  return this.dom.nodeName == "IMG";
6794
6794
  }
6795
6795
  }
6796
- class Kv extends ir {
6796
+ class Kv extends or {
6797
6797
  constructor(t, n, r, i, o, a, s, l, c, d) {
6798
6798
  super(t, n, r, i, o, a, s, c, d), this.spec = l;
6799
6799
  }
@@ -7004,7 +7004,7 @@ class Zv {
7004
7004
  updateNextNode(t, n, r, i, o, a) {
7005
7005
  for (let s = this.index; s < this.top.children.length; s++) {
7006
7006
  let l = this.top.children[s];
7007
- if (l instanceof ir) {
7007
+ if (l instanceof or) {
7008
7008
  let c = this.preMatch.matched.get(l);
7009
7009
  if (c != null && c != o)
7010
7010
  return !1;
@@ -7023,7 +7023,7 @@ class Zv {
7023
7023
  recreateWrapper(t, n, r, i, o, a) {
7024
7024
  if (t.dirty || n.isAtom || !t.children.length || !t.node.content.eq(n.content) || !$a(r, t.outerDeco) || !i.eq(t.innerDeco))
7025
7025
  return null;
7026
- let s = ir.create(this.top, n, r, i, o, a);
7026
+ let s = or.create(this.top, n, r, i, o, a);
7027
7027
  if (s.contentDOM) {
7028
7028
  s.children = t.children, t.children = [];
7029
7029
  for (let l of s.children)
@@ -7033,7 +7033,7 @@ class Zv {
7033
7033
  }
7034
7034
  // Insert the node as a newly created node desc.
7035
7035
  addNode(t, n, r, i, o) {
7036
- let a = ir.create(this.top, t, n, r, i, o);
7036
+ let a = or.create(this.top, t, n, r, i, o);
7037
7037
  a.contentDOM && a.updateChildren(i, o + 1), this.top.children.splice(this.index++, 0, a), this.changed = !0;
7038
7038
  }
7039
7039
  placeWidget(t, n, r) {
@@ -7277,7 +7277,7 @@ function iy(e) {
7277
7277
  if (!t)
7278
7278
  return;
7279
7279
  let r = e.cursorWrapper.dom, i = r.nodeName == "IMG";
7280
- i ? n.setStart(r.parentNode, st(r) + 1) : n.setStart(r, 0), n.collapse(!0), t.removeAllRanges(), t.addRange(n), !i && !e.state.selection.visible && At && rr <= 11 && (r.disabled = !0, r.disabled = !1);
7280
+ i ? n.setStart(r.parentNode, st(r) + 1) : n.setStart(r, 0), n.collapse(!0), t.removeAllRanges(), t.addRange(n), !i && !e.state.selection.visible && At && ir <= 11 && (r.disabled = !0, r.disabled = !1);
7281
7281
  }
7282
7282
  function ig(e, t) {
7283
7283
  if (t instanceof re) {
@@ -7313,7 +7313,7 @@ function Mc(e, t) {
7313
7313
  let { $anchor: n, $head: r } = e.selection, i = t > 0 ? n.max(r) : n.min(r), o = i.parent.inlineContent ? i.depth ? e.doc.resolve(t > 0 ? i.after() : i.before()) : null : i;
7314
7314
  return o && ce.findFrom(o, t);
7315
7315
  }
7316
- function Gn(e, t) {
7316
+ function zn(e, t) {
7317
7317
  return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()), !0;
7318
7318
  }
7319
7319
  function yp(e, t, n) {
@@ -7324,25 +7324,25 @@ function yp(e, t, n) {
7324
7324
  if (!o || o.isText || !o.isLeaf)
7325
7325
  return !1;
7326
7326
  let a = e.state.doc.resolve(i.pos + o.nodeSize * (t < 0 ? -1 : 1));
7327
- return Gn(e, new J(r.$anchor, a));
7327
+ return zn(e, new J(r.$anchor, a));
7328
7328
  } else if (r.empty) {
7329
7329
  if (e.endOfTextblock(t > 0 ? "forward" : "backward")) {
7330
7330
  let i = Mc(e.state, t);
7331
- return i && i instanceof re ? Gn(e, i) : !1;
7331
+ return i && i instanceof re ? zn(e, i) : !1;
7332
7332
  } else if (!(qt && n.indexOf("m") > -1)) {
7333
7333
  let i = r.$head, o = i.textOffset ? null : t < 0 ? i.nodeBefore : i.nodeAfter, a;
7334
7334
  if (!o || o.isText)
7335
7335
  return !1;
7336
7336
  let s = t < 0 ? i.pos - o.nodeSize : i.pos;
7337
- return o.isAtom || (a = e.docView.descAt(s)) && !a.contentDOM ? re.isSelectable(o) ? Gn(e, new re(t < 0 ? e.state.doc.resolve(i.pos - o.nodeSize) : i)) : Go ? Gn(e, new J(e.state.doc.resolve(t < 0 ? s : s + o.nodeSize))) : !1 : !1;
7337
+ return o.isAtom || (a = e.docView.descAt(s)) && !a.contentDOM ? re.isSelectable(o) ? zn(e, new re(t < 0 ? e.state.doc.resolve(i.pos - o.nodeSize) : i)) : Go ? zn(e, new J(e.state.doc.resolve(t < 0 ? s : s + o.nodeSize))) : !1 : !1;
7338
7338
  }
7339
7339
  } else return !1;
7340
7340
  else {
7341
7341
  if (r instanceof re && r.node.isInline)
7342
- return Gn(e, new J(t > 0 ? r.$to : r.$from));
7342
+ return zn(e, new J(t > 0 ? r.$to : r.$from));
7343
7343
  {
7344
7344
  let i = Mc(e.state, t);
7345
- return i ? Gn(e, i) : !1;
7345
+ return i ? zn(e, i) : !1;
7346
7346
  }
7347
7347
  }
7348
7348
  }
@@ -7495,11 +7495,11 @@ function Tp(e, t, n) {
7495
7495
  if (!i.parent.inlineContent || e.endOfTextblock(t < 0 ? "up" : "down")) {
7496
7496
  let a = Mc(e.state, t);
7497
7497
  if (a && a instanceof re)
7498
- return Gn(e, a);
7498
+ return zn(e, a);
7499
7499
  }
7500
7500
  if (!i.parent.inlineContent) {
7501
7501
  let a = t < 0 ? i : o, s = r instanceof Ft ? ce.near(a, t) : ce.findFrom(a, t);
7502
- return s ? Gn(e, s) : !1;
7502
+ return s ? zn(e, s) : !1;
7503
7503
  }
7504
7504
  return !1;
7505
7505
  }
@@ -7764,7 +7764,7 @@ function vy(e) {
7764
7764
  }
7765
7765
  vt && e.dom.addEventListener("input", () => null), Pc(e);
7766
7766
  }
7767
- function Xn(e, t) {
7767
+ function Jn(e, t) {
7768
7768
  e.input.lastSelectionOrigin = t, e.input.lastSelectionTime = Date.now();
7769
7769
  }
7770
7770
  function yy(e) {
@@ -7806,7 +7806,7 @@ Ct.keydown = (e, t) => {
7806
7806
  e.input.lastIOSEnter = r, e.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
7807
7807
  e.input.lastIOSEnter == r && (e.someProp("handleKeyDown", (i) => i(e, Er(13, "Enter"))), e.input.lastIOSEnter = 0);
7808
7808
  }, 200);
7809
- } else e.someProp("handleKeyDown", (r) => r(e, n)) || py(e, n) ? n.preventDefault() : Xn(e, "key");
7809
+ } else e.someProp("handleKeyDown", (r) => r(e, n)) || py(e, n) ? n.preventDefault() : Jn(e, "key");
7810
7810
  };
7811
7811
  Ct.keyup = (e, t) => {
7812
7812
  t.keyCode == 16 && (e.input.shiftKey = !1);
@@ -7905,7 +7905,7 @@ yt.mousedown = (e, t) => {
7905
7905
  let r = wd(e), i = Date.now(), o = "singleClick";
7906
7906
  i - e.input.lastClick.time < 500 && Oy(n, e.input.lastClick) && !n[hg] && (e.input.lastClick.type == "singleClick" ? o = "doubleClick" : e.input.lastClick.type == "doubleClick" && (o = "tripleClick")), e.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o };
7907
7907
  let a = e.posAtCoords(Ws(n));
7908
- a && (o == "singleClick" ? (e.input.mouseDown && e.input.mouseDown.done(), e.input.mouseDown = new Dy(e, a, n, !!r)) : (o == "doubleClick" ? wy : Iy)(e, a.pos, a.inside, n) ? n.preventDefault() : Xn(e, "pointer"));
7908
+ a && (o == "singleClick" ? (e.input.mouseDown && e.input.mouseDown.done(), e.input.mouseDown = new Dy(e, a, n, !!r)) : (o == "doubleClick" ? wy : Iy)(e, a.pos, a.inside, n) ? n.preventDefault() : Jn(e, "pointer"));
7909
7909
  };
7910
7910
  class Dy {
7911
7911
  constructor(t, n, r, i) {
@@ -7927,7 +7927,7 @@ class Dy {
7927
7927
  setUneditable: !!(this.target && tn && !this.target.hasAttribute("contentEditable"))
7928
7928
  }), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
7929
7929
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
7930
- }, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)), Xn(t, "pointer");
7930
+ }, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)), Jn(t, "pointer");
7931
7931
  }
7932
7932
  done() {
7933
7933
  this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => Ln(this.view)), this.view.input.mouseDown = null;
@@ -7936,7 +7936,7 @@ class Dy {
7936
7936
  if (this.done(), !this.view.dom.contains(t.target))
7937
7937
  return;
7938
7938
  let n = this.pos;
7939
- this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ws(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Xn(this.view, "pointer") : Ay(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
7939
+ this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ws(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Jn(this.view, "pointer") : Ay(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
7940
7940
  vt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
7941
7941
  // cursor, but still report that the node is selected
7942
7942
  // when asked through getSelection. You'll then get a
@@ -7944,20 +7944,20 @@ class Dy {
7944
7944
  // (hidden) cursor is doesn't change the selection, and
7945
7945
  // thus doesn't get a reaction from ProseMirror. This
7946
7946
  // works around that.
7947
- ht && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (pi(this.view, ce.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Xn(this.view, "pointer");
7947
+ ht && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (pi(this.view, ce.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Jn(this.view, "pointer");
7948
7948
  }
7949
7949
  move(t) {
7950
- this.updateAllowDefault(t), Xn(this.view, "pointer"), t.buttons == 0 && this.done();
7950
+ this.updateAllowDefault(t), Jn(this.view, "pointer"), t.buttons == 0 && this.done();
7951
7951
  }
7952
7952
  updateAllowDefault(t) {
7953
7953
  !this.allowDefault && (Math.abs(this.event.x - t.clientX) > 4 || Math.abs(this.event.y - t.clientY) > 4) && (this.allowDefault = !0);
7954
7954
  }
7955
7955
  }
7956
7956
  yt.touchstart = (e) => {
7957
- e.input.lastTouch = Date.now(), wd(e), Xn(e, "pointer");
7957
+ e.input.lastTouch = Date.now(), wd(e), Jn(e, "pointer");
7958
7958
  };
7959
7959
  yt.touchmove = (e) => {
7960
- e.input.lastTouch = Date.now(), Xn(e, "pointer");
7960
+ e.input.lastTouch = Date.now(), Jn(e, "pointer");
7961
7961
  };
7962
7962
  yt.contextmenu = (e) => wd(e);
7963
7963
  function _g(e, t) {
@@ -8040,7 +8040,7 @@ function Py(e, t) {
8040
8040
  n.parentNode && n.parentNode.removeChild(n), e.focus();
8041
8041
  }, 50);
8042
8042
  }
8043
- const So = At && rr < 15 || fi && Dv < 604;
8043
+ const So = At && ir < 15 || fi && Dv < 604;
8044
8044
  yt.copy = Ct.cut = (e, t) => {
8045
8045
  let n = t, r = e.state.selection, i = n.type == "cut";
8046
8046
  if (r.empty)
@@ -8203,7 +8203,7 @@ class ja {
8203
8203
  this.spec.destroy && this.spec.destroy(t);
8204
8204
  }
8205
8205
  }
8206
- class or {
8206
+ class ar {
8207
8207
  constructor(t, n) {
8208
8208
  this.attrs = t, this.spec = n || Or;
8209
8209
  }
@@ -8215,10 +8215,10 @@ class or {
8215
8215
  return n.from < n.to;
8216
8216
  }
8217
8217
  eq(t) {
8218
- return this == t || t instanceof or && vo(this.attrs, t.attrs) && vo(this.spec, t.spec);
8218
+ return this == t || t instanceof ar && vo(this.attrs, t.attrs) && vo(this.spec, t.spec);
8219
8219
  }
8220
8220
  static is(t) {
8221
- return t.type instanceof or;
8221
+ return t.type instanceof ar;
8222
8222
  }
8223
8223
  destroy() {
8224
8224
  }
@@ -8285,7 +8285,7 @@ class Ye {
8285
8285
  each inline node between `from` and `to`.
8286
8286
  */
8287
8287
  static inline(t, n, r, i) {
8288
- return new Ye(t, n, new or(r, i));
8288
+ return new Ye(t, n, new ar(r, i));
8289
8289
  }
8290
8290
  /**
8291
8291
  Creates a node decoration. `from` and `to` should point precisely
@@ -8306,7 +8306,7 @@ class Ye {
8306
8306
  @internal
8307
8307
  */
8308
8308
  get inline() {
8309
- return this.type instanceof or;
8309
+ return this.type instanceof ar;
8310
8310
  }
8311
8311
  /**
8312
8312
  @internal
@@ -8437,14 +8437,14 @@ class xe {
8437
8437
  let o = t + 1, a = o + n.content.size;
8438
8438
  for (let s = 0; s < this.local.length; s++) {
8439
8439
  let l = this.local[s];
8440
- if (l.from < a && l.to > o && l.type instanceof or) {
8440
+ if (l.from < a && l.to > o && l.type instanceof ar) {
8441
8441
  let c = Math.max(o, l.from) - o, d = Math.min(a, l.to) - o;
8442
8442
  c < d && (i || (i = [])).push(l.copy(c, d));
8443
8443
  }
8444
8444
  }
8445
8445
  if (i) {
8446
8446
  let s = new xe(i.sort(Nr), ti);
8447
- return r ? new qn([s, r]) : s;
8447
+ return r ? new jn([s, r]) : s;
8448
8448
  }
8449
8449
  return r || pt;
8450
8450
  }
@@ -8476,11 +8476,11 @@ class xe {
8476
8476
  localsInner(t) {
8477
8477
  if (this == pt)
8478
8478
  return ti;
8479
- if (t.inlineContent || !this.local.some(or.is))
8479
+ if (t.inlineContent || !this.local.some(ar.is))
8480
8480
  return this.local;
8481
8481
  let n = [];
8482
8482
  for (let r = 0; r < this.local.length; r++)
8483
- this.local[r].type instanceof or || n.push(this.local[r]);
8483
+ this.local[r].type instanceof ar || n.push(this.local[r]);
8484
8484
  return n;
8485
8485
  }
8486
8486
  forEachSet(t) {
@@ -8490,13 +8490,13 @@ class xe {
8490
8490
  xe.empty = new xe([], []);
8491
8491
  xe.removeOverlap = xd;
8492
8492
  const pt = xe.empty;
8493
- class qn {
8493
+ class jn {
8494
8494
  constructor(t) {
8495
8495
  this.members = t;
8496
8496
  }
8497
8497
  map(t, n) {
8498
8498
  const r = this.members.map((i) => i.map(t, n, Or));
8499
- return qn.from(r);
8499
+ return jn.from(r);
8500
8500
  }
8501
8501
  forChild(t, n) {
8502
8502
  if (n.isLeaf)
@@ -8504,12 +8504,12 @@ class qn {
8504
8504
  let r = [];
8505
8505
  for (let i = 0; i < this.members.length; i++) {
8506
8506
  let o = this.members[i].forChild(t, n);
8507
- o != pt && (o instanceof qn ? r = r.concat(o.members) : r.push(o));
8507
+ o != pt && (o instanceof jn ? r = r.concat(o.members) : r.push(o));
8508
8508
  }
8509
- return qn.from(r);
8509
+ return jn.from(r);
8510
8510
  }
8511
8511
  eq(t) {
8512
- if (!(t instanceof qn) || t.members.length != this.members.length)
8512
+ if (!(t instanceof jn) || t.members.length != this.members.length)
8513
8513
  return !1;
8514
8514
  for (let n = 0; n < this.members.length; n++)
8515
8515
  if (!this.members[n].eq(t.members[n]))
@@ -8540,7 +8540,7 @@ class qn {
8540
8540
  case 1:
8541
8541
  return t[0];
8542
8542
  default:
8543
- return new qn(t.every((n) => n instanceof xe) ? t : t.reduce((n, r) => n.concat(r instanceof xe ? r : r.members), []));
8543
+ return new jn(t.every((n) => n instanceof xe) ? t : t.reduce((n, r) => n.concat(r instanceof xe ? r : r.members), []));
8544
8544
  }
8545
8545
  }
8546
8546
  forEachSet(t) {
@@ -8680,7 +8680,7 @@ function Dl(e) {
8680
8680
  return e.someProp("decorations", (n) => {
8681
8681
  let r = n(e.state);
8682
8682
  r && r != pt && t.push(r);
8683
- }), e.cursorWrapper && t.push(xe.create(e.state.doc, [e.cursorWrapper.deco])), qn.from(t);
8683
+ }), e.cursorWrapper && t.push(xe.create(e.state.doc, [e.cursorWrapper.deco])), jn.from(t);
8684
8684
  }
8685
8685
  const Vy = {
8686
8686
  childList: !0,
@@ -8689,7 +8689,7 @@ const Vy = {
8689
8689
  attributes: !0,
8690
8690
  attributeOldValue: !0,
8691
8691
  subtree: !0
8692
- }, Gy = At && rr <= 11;
8692
+ }, Gy = At && ir <= 11;
8693
8693
  class zy {
8694
8694
  constructor() {
8695
8695
  this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
@@ -8709,7 +8709,7 @@ class $y {
8709
8709
  this.view = t, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new zy(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
8710
8710
  for (let i = 0; i < r.length; i++)
8711
8711
  this.queue.push(r[i]);
8712
- At && rr <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
8712
+ At && ir <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
8713
8713
  }), Gy && (this.onCharData = (r) => {
8714
8714
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
8715
8715
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
@@ -8750,7 +8750,7 @@ class $y {
8750
8750
  if (vp(this.view)) {
8751
8751
  if (this.suppressingSelectionUpdates)
8752
8752
  return Ln(this.view);
8753
- if (At && rr <= 11 && !this.view.state.selection.empty) {
8753
+ if (At && ir <= 11 && !this.view.state.selection.empty) {
8754
8754
  let t = this.view.domSelectionRange();
8755
8755
  if (t.focusNode && Mr(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset))
8756
8756
  return this.flushSoon();
@@ -8828,7 +8828,7 @@ class $y {
8828
8828
  if (r.contentDOM && r.contentDOM != r.dom && !r.contentDOM.contains(t.target))
8829
8829
  return { from: r.posBefore, to: r.posAfter };
8830
8830
  let i = t.previousSibling, o = t.nextSibling;
8831
- if (At && rr <= 11 && t.addedNodes.length)
8831
+ if (At && ir <= 11 && t.addedNodes.length)
8832
8832
  for (let d = 0; d < t.addedNodes.length; d++) {
8833
8833
  let { previousSibling: u, nextSibling: p } = t.addedNodes[d];
8834
8834
  (!u || Array.prototype.indexOf.call(t.addedNodes, u) < 0) && (i = u), (!p || Array.prototype.indexOf.call(t.addedNodes, p) < 0) && (o = p);
@@ -8956,7 +8956,7 @@ function Zy(e, t, n, r, i) {
8956
8956
  }
8957
8957
  return;
8958
8958
  }
8959
- e.state.selection.from < e.state.selection.to && h.start == h.endB && e.state.selection instanceof J && (h.start > e.state.selection.from && h.start <= e.state.selection.from + 2 && e.state.selection.from >= c.from ? h.start = e.state.selection.from : h.endA < e.state.selection.to && h.endA >= e.state.selection.to - 2 && e.state.selection.to <= c.to && (h.endB += e.state.selection.to - h.endA, h.endA = e.state.selection.to)), At && rr <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > c.from && c.doc.textBetween(h.start - c.from - 1, h.start - c.from + 1) == "  " && (h.start--, h.endA--, h.endB--);
8959
+ e.state.selection.from < e.state.selection.to && h.start == h.endB && e.state.selection instanceof J && (h.start > e.state.selection.from && h.start <= e.state.selection.from + 2 && e.state.selection.from >= c.from ? h.start = e.state.selection.from : h.endA < e.state.selection.to && h.endA >= e.state.selection.to - 2 && e.state.selection.to <= c.to && (h.endB += e.state.selection.to - h.endA, h.endA = e.state.selection.to)), At && ir <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > c.from && c.doc.textBetween(h.start - c.from - 1, h.start - c.from + 1) == "  " && (h.start--, h.endA--, h.endB--);
8960
8960
  let _ = c.doc.resolveNoCache(h.start - c.from), g = c.doc.resolveNoCache(h.endB - c.from), S = d.resolve(h.start), E = _.sameParent(g) && _.parent.inlineContent && S.end() >= h.endA, b;
8961
8961
  if ((fi && e.input.lastIOSEnter > Date.now() - 225 && (!E || i.some((O) => O.nodeName == "DIV" || O.nodeName == "P")) || !E && _.pos < c.doc.content.size && !_.sameParent(g) && (b = ce.findFrom(c.doc.resolve(_.pos + 1), 1, !0)) && b.head == g.pos) && e.someProp("handleKeyDown", (O) => O(e, Er(13, "Enter")))) {
8962
8962
  e.input.lastIOSEnter = 0;
@@ -8974,7 +8974,7 @@ function Zy(e, t, n, r, i) {
8974
8974
  let f = h.start, v = h.endA, y, T, A;
8975
8975
  if (E) {
8976
8976
  if (_.pos == g.pos)
8977
- At && rr <= 11 && _.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => Ln(e), 20)), y = e.state.tr.delete(f, v), T = d.resolve(h.start).marksAcross(d.resolve(h.endA));
8977
+ At && ir <= 11 && _.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => Ln(e), 20)), y = e.state.tr.delete(f, v), T = d.resolve(h.start).marksAcross(d.resolve(h.endA));
8978
8978
  else if (
8979
8979
  // Adding or removing a mark
8980
8980
  h.endA == h.endB && (A = Xy(_.parent.content.cut(_.parentOffset, g.parentOffset), S.parent.content.cut(S.parentOffset, h.endA - S.start())))
@@ -9444,7 +9444,7 @@ function Up(e) {
9444
9444
  if (e.spec.state || e.spec.filterTransaction || e.spec.appendTransaction)
9445
9445
  throw new RangeError("Plugins passed directly to the view must not have a state component");
9446
9446
  }
9447
- var ar = {
9447
+ var sr = {
9448
9448
  8: "Backspace",
9449
9449
  9: "Tab",
9450
9450
  10: "Enter",
@@ -9523,13 +9523,13 @@ var ar = {
9523
9523
  221: "}",
9524
9524
  222: '"'
9525
9525
  }, iC = typeof navigator < "u" && /Mac/.test(navigator.platform), oC = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
9526
- for (var lt = 0; lt < 10; lt++) ar[48 + lt] = ar[96 + lt] = String(lt);
9527
- for (var lt = 1; lt <= 24; lt++) ar[lt + 111] = "F" + lt;
9526
+ for (var lt = 0; lt < 10; lt++) sr[48 + lt] = sr[96 + lt] = String(lt);
9527
+ for (var lt = 1; lt <= 24; lt++) sr[lt + 111] = "F" + lt;
9528
9528
  for (var lt = 65; lt <= 90; lt++)
9529
- ar[lt] = String.fromCharCode(lt + 32), Ka[lt] = String.fromCharCode(lt);
9530
- for (var kl in ar) Ka.hasOwnProperty(kl) || (Ka[kl] = ar[kl]);
9529
+ sr[lt] = String.fromCharCode(lt + 32), Ka[lt] = String.fromCharCode(lt);
9530
+ for (var kl in sr) Ka.hasOwnProperty(kl) || (Ka[kl] = sr[kl]);
9531
9531
  function aC(e) {
9532
- var t = iC && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || oC && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? Ka : ar)[e.keyCode] || e.key || "Unidentified";
9532
+ var t = iC && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || oC && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? Ka : sr)[e.keyCode] || e.key || "Unidentified";
9533
9533
  return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
9534
9534
  }
9535
9535
  const sC = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
@@ -9578,7 +9578,7 @@ function Dd(e) {
9578
9578
  if (s && s(n.state, n.dispatch, n))
9579
9579
  return !0;
9580
9580
  }
9581
- if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = ar[r.keyCode]) && o != i) {
9581
+ if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = sr[r.keyCode]) && o != i) {
9582
9582
  let s = t[Ll(o, r)];
9583
9583
  if (s && s(n.state, n.dispatch, n))
9584
9584
  return !0;
@@ -9741,7 +9741,7 @@ function kd(e) {
9741
9741
  const EC = (e, t) => {
9742
9742
  let n = e.selection, r = n instanceof re, i;
9743
9743
  if (r) {
9744
- if (n.node.isTextblock || !dr(e.doc, n.from))
9744
+ if (n.node.isTextblock || !ur(e.doc, n.from))
9745
9745
  return !1;
9746
9746
  i = n.from;
9747
9747
  } else if (i = zs(e.doc, n.from, -1), i == null)
@@ -9754,7 +9754,7 @@ const EC = (e, t) => {
9754
9754
  }, SC = (e, t) => {
9755
9755
  let n = e.selection, r;
9756
9756
  if (n instanceof re) {
9757
- if (n.node.isTextblock || !dr(e.doc, n.to))
9757
+ if (n.node.isTextblock || !ur(e.doc, n.to))
9758
9758
  return !1;
9759
9759
  r = n.to;
9760
9760
  } else if (r = zs(e.doc, n.to, 1), r == null)
@@ -9817,7 +9817,7 @@ const yC = (e, t) => {
9817
9817
  };
9818
9818
  function NC(e, t, n) {
9819
9819
  let r = t.nodeBefore, i = t.nodeAfter, o = t.index();
9820
- return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && t.parent.canReplace(o - 1, o) ? (n && n(e.tr.delete(t.pos - r.nodeSize, t.pos).scrollIntoView()), !0) : !t.parent.canReplace(o, o + 1) || !(i.isTextblock || dr(e.doc, t.pos)) ? !1 : (n && n(e.tr.join(t.pos).scrollIntoView()), !0);
9820
+ return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && t.parent.canReplace(o - 1, o) ? (n && n(e.tr.delete(t.pos - r.nodeSize, t.pos).scrollIntoView()), !0) : !t.parent.canReplace(o, o + 1) || !(i.isTextblock || ur(e.doc, t.pos)) ? !1 : (n && n(e.tr.join(t.pos).scrollIntoView()), !0);
9821
9821
  }
9822
9822
  function Ag(e, t, n, r) {
9823
9823
  let i = t.nodeBefore, o = t.nodeAfter, a, s, l = i.type.spec.isolating || o.type.spec.isolating;
@@ -9831,7 +9831,7 @@ function Ag(e, t, n, r) {
9831
9831
  h = M.from(a[S].create(null, h));
9832
9832
  h = M.from(i.copy(h));
9833
9833
  let _ = e.tr.step(new tt(t.pos - 1, m, t.pos, m, new $(h, 1, 0), a.length, !0)), g = _.doc.resolve(m + 2 * a.length);
9834
- g.nodeAfter && g.nodeAfter.type == i.type && dr(_.doc, g.pos) && _.join(g.pos), n(_.scrollIntoView());
9834
+ g.nodeAfter && g.nodeAfter.type == i.type && ur(_.doc, g.pos) && _.join(g.pos), n(_.scrollIntoView());
9835
9835
  }
9836
9836
  return !0;
9837
9837
  }
@@ -9949,7 +9949,7 @@ function MC(e, t, n, r) {
9949
9949
  return !1;
9950
9950
  i.lift(r, s);
9951
9951
  let l = i.mapping.map(o, -1) - 1;
9952
- return dr(i.doc, l) && i.join(l), t(i.scrollIntoView()), !0;
9952
+ return ur(i.doc, l) && i.join(l), t(i.scrollIntoView()), !0;
9953
9953
  }
9954
9954
  function kC(e, t, n) {
9955
9955
  let r = e.tr, i = n.parent;
@@ -11717,7 +11717,7 @@ const i1 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
11717
11717
  if (r === void 0)
11718
11718
  return !0;
11719
11719
  const i = e.doc.nodeAt(r);
11720
- return n.node.type === i?.type && dr(e.doc, n.pos) && e.join(n.pos), !0;
11720
+ return n.node.type === i?.type && ur(e.doc, n.pos) && e.join(n.pos), !0;
11721
11721
  }, Bl = (e, t) => {
11722
11722
  const n = tl((o) => o.type === t)(e.selection);
11723
11723
  if (!n)
@@ -11726,7 +11726,7 @@ const i1 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
11726
11726
  if (r === void 0)
11727
11727
  return !0;
11728
11728
  const i = e.doc.nodeAt(r);
11729
- return n.node.type === i?.type && dr(e.doc, r) && e.join(r), !0;
11729
+ return n.node.type === i?.type && ur(e.doc, r) && e.join(r), !0;
11730
11730
  }, a1 = (e, t, n, r = {}) => ({ editor: i, tr: o, state: a, dispatch: s, chain: l, commands: c, can: d }) => {
11731
11731
  const { extensions: u, splittableMarks: p } = i.extensionManager, m = rt(e, a.schema), h = rt(t, a.schema), { selection: _, storedMarks: g } = a, { $from: S, $to: E } = _, b = S.blockRange(E), f = g || _.$to.parentOffset && _.$from.marks();
11732
11732
  if (!b)
@@ -12686,7 +12686,7 @@ function Fr(e) {
12686
12686
  i().updateAttributes(d, o).run();
12687
12687
  }
12688
12688
  const c = a.doc.resolve(n.from - 1).nodeBefore;
12689
- c && c.type === e.type && dr(a.doc, n.from - 1) && (!e.joinPredicate || e.joinPredicate(r, c)) && a.join(n.from - 1);
12689
+ c && c.type === e.type && ur(a.doc, n.from - 1) && (!e.joinPredicate || e.joinPredicate(r, c)) && a.join(n.from - 1);
12690
12690
  }
12691
12691
  });
12692
12692
  }
@@ -12725,7 +12725,7 @@ let Ve = class Gc {
12725
12725
  })), n;
12726
12726
  }
12727
12727
  };
12728
- function sr(e) {
12728
+ function lr(e) {
12729
12729
  return new YC({
12730
12730
  find: e.find,
12731
12731
  handler: ({ state: t, range: n, match: r, pasteEvent: i }) => {
@@ -12763,7 +12763,7 @@ function w1(e) {
12763
12763
  }
12764
12764
  class Ce extends HTMLElement {
12765
12765
  constructor() {
12766
- super(), x(this, "template", ""), x(this, "editor"), x(this, "options"), x(this, "alwaysEnabledButtons", ["fullscreen", "printer"]);
12766
+ super(), D(this, "template", ""), D(this, "editor"), D(this, "options"), D(this, "alwaysEnabledButtons", ["fullscreen", "printer"]);
12767
12767
  }
12768
12768
  registerClickListener() {
12769
12769
  this.addEventListener("click", () => {
@@ -12956,7 +12956,7 @@ function Pn(e) {
12956
12956
  function q1(e) {
12957
12957
  return ["table", "td", "th"].indexOf(bn(e)) >= 0;
12958
12958
  }
12959
- function pr(e) {
12959
+ function mr(e) {
12960
12960
  return ((Br(e) ? e.ownerDocument : (
12961
12961
  // $FlowFixMe[prop-missing]
12962
12962
  e.document
@@ -12971,7 +12971,7 @@ function rl(e) {
12971
12971
  e.parentNode || // DOM Element detected
12972
12972
  (zd(e) ? e.host : null) || // ShadowRoot detected
12973
12973
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
12974
- pr(e)
12974
+ mr(e)
12975
12975
  );
12976
12976
  }
12977
12977
  function Kp(e) {
@@ -13078,7 +13078,7 @@ function Qp(e) {
13078
13078
  var S = a.hasOwnProperty("x"), E = a.hasOwnProperty("y"), b = It, f = wt, v = window;
13079
13079
  if (c) {
13080
13080
  var y = qo(n), T = "clientHeight", A = "clientWidth";
13081
- if (y === Bt(n) && (y = pr(n), Pn(y).position !== "static" && s === "absolute" && (T = "scrollHeight", A = "scrollWidth")), y = y, i === wt || (i === It || i === Zt) && o === To) {
13081
+ if (y === Bt(n) && (y = mr(n), Pn(y).position !== "static" && s === "absolute" && (T = "scrollHeight", A = "scrollWidth")), y = y, i === wt || (i === It || i === Zt) && o === To) {
13082
13082
  f = Qt;
13083
13083
  var O = u && y === v && v.visualViewport ? v.visualViewport.height : (
13084
13084
  // $FlowFixMe[prop-missing]
@@ -13190,10 +13190,10 @@ function qd(e) {
13190
13190
  };
13191
13191
  }
13192
13192
  function jd(e) {
13193
- return yi(pr(e)).left + qd(e).scrollLeft;
13193
+ return yi(mr(e)).left + qd(e).scrollLeft;
13194
13194
  }
13195
13195
  function sO(e, t) {
13196
- var n = Bt(e), r = pr(e), i = n.visualViewport, o = r.clientWidth, a = r.clientHeight, s = 0, l = 0;
13196
+ var n = Bt(e), r = mr(e), i = n.visualViewport, o = r.clientWidth, a = r.clientHeight, s = 0, l = 0;
13197
13197
  if (i) {
13198
13198
  o = i.width, a = i.height;
13199
13199
  var c = $g();
@@ -13207,7 +13207,7 @@ function sO(e, t) {
13207
13207
  };
13208
13208
  }
13209
13209
  function lO(e) {
13210
- var t, n = pr(e), r = qd(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, o = Rr(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = Rr(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + jd(e), l = -r.scrollTop;
13210
+ var t, n = mr(e), r = qd(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, o = Rr(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = Rr(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + jd(e), l = -r.scrollTop;
13211
13211
  return Pn(i || n).direction === "rtl" && (s += Rr(n.clientWidth, i ? i.clientWidth : 0) - o), {
13212
13212
  width: o,
13213
13213
  height: a,
@@ -13244,7 +13244,7 @@ function cO(e, t) {
13244
13244
  return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
13245
13245
  }
13246
13246
  function Xp(e, t, n) {
13247
- return t === Vg ? $c(sO(e, n)) : Br(t) ? cO(t, n) : $c(lO(pr(e)));
13247
+ return t === Vg ? $c(sO(e, n)) : Br(t) ? cO(t, n) : $c(lO(mr(e)));
13248
13248
  }
13249
13249
  function dO(e) {
13250
13250
  var t = io(rl(e)), n = ["absolute", "fixed"].indexOf(Pn(e).position) >= 0, r = n && Kt(e) ? qo(e) : e;
@@ -13308,7 +13308,7 @@ function Qg(e) {
13308
13308
  }
13309
13309
  function Oo(e, t) {
13310
13310
  t === void 0 && (t = {});
13311
- var n = t, r = n.placement, i = r === void 0 ? e.placement : r, o = n.strategy, a = o === void 0 ? e.strategy : o, s = n.boundary, l = s === void 0 ? D1 : s, c = n.rootBoundary, d = c === void 0 ? Vg : c, u = n.elementContext, p = u === void 0 ? Bi : u, m = n.altBoundary, h = m === void 0 ? !1 : m, _ = n.padding, g = _ === void 0 ? 0 : _, S = jg(typeof g != "number" ? g : Wg(g, Yo)), E = p === Bi ? M1 : Bi, b = e.rects.popper, f = e.elements[h ? E : p], v = uO(Br(f) ? f : f.contextElement || pr(e.elements.popper), l, d, a), y = yi(e.elements.reference), T = Qg({
13311
+ var n = t, r = n.placement, i = r === void 0 ? e.placement : r, o = n.strategy, a = o === void 0 ? e.strategy : o, s = n.boundary, l = s === void 0 ? D1 : s, c = n.rootBoundary, d = c === void 0 ? Vg : c, u = n.elementContext, p = u === void 0 ? Bi : u, m = n.altBoundary, h = m === void 0 ? !1 : m, _ = n.padding, g = _ === void 0 ? 0 : _, S = jg(typeof g != "number" ? g : Wg(g, Yo)), E = p === Bi ? M1 : Bi, b = e.rects.popper, f = e.elements[h ? E : p], v = uO(Br(f) ? f : f.contextElement || mr(e.elements.popper), l, d, a), y = yi(e.elements.reference), T = Qg({
13312
13312
  reference: y,
13313
13313
  element: b,
13314
13314
  placement: i
@@ -13386,9 +13386,9 @@ function hO(e) {
13386
13386
  if (A)
13387
13387
  for (var Y = h ? 3 : 1, X = function(ye) {
13388
13388
  var V = f.find(function(j) {
13389
- var D = T.get(j);
13390
- if (D)
13391
- return D.slice(0, ye).every(function(le) {
13389
+ var x = T.get(j);
13390
+ if (x)
13391
+ return x.slice(0, ye).every(function(le) {
13392
13392
  return le;
13393
13393
  });
13394
13394
  });
@@ -13516,7 +13516,7 @@ function TO(e) {
13516
13516
  var q, K = f === "y" ? wt : It, Q = f === "y" ? Qt : Zt, R = f === "y" ? "height" : "width", C = y[f], N = C + g[K], L = C - g[Q], Y = m ? -A[R] / 2 : 0, X = E === bi ? T[R] : A[R], se = E === bi ? -A[R] : -T[R], Ne = t.elements.arrow, ye = m && Ne ? $d(Ne) : {
13517
13517
  width: 0,
13518
13518
  height: 0
13519
- }, V = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : qg(), j = V[K], D = V[Q], le = ro(0, T[R], ye[R]), dt = b ? T[R] / 2 - Y - le - j - k.mainAxis : X - le - j - k.mainAxis, Tt = b ? -T[R] / 2 + Y + le + D + k.mainAxis : se + le + D + k.mainAxis, Ht = t.elements.arrow && qo(t.elements.arrow), on = Ht ? f === "y" ? Ht.clientTop || 0 : Ht.clientLeft || 0 : 0, Ot = (q = U?.[f]) != null ? q : 0, Nt = C + dt - Ot - on, je = C + Tt - Ot, he = ro(m ? Qa(N, Nt) : N, C, m ? Rr(L, je) : L);
13519
+ }, V = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : qg(), j = V[K], x = V[Q], le = ro(0, T[R], ye[R]), dt = b ? T[R] / 2 - Y - le - j - k.mainAxis : X - le - j - k.mainAxis, Tt = b ? -T[R] / 2 + Y + le + x + k.mainAxis : se + le + x + k.mainAxis, Ht = t.elements.arrow && qo(t.elements.arrow), on = Ht ? f === "y" ? Ht.clientTop || 0 : Ht.clientLeft || 0 : 0, Ot = (q = U?.[f]) != null ? q : 0, Nt = C + dt - Ot - on, je = C + Tt - Ot, he = ro(m ? Qa(N, Nt) : N, C, m ? Rr(L, je) : L);
13520
13520
  y[f] = he, H[f] = he - C;
13521
13521
  }
13522
13522
  if (s) {
@@ -13548,7 +13548,7 @@ function AO(e) {
13548
13548
  }
13549
13549
  function wO(e, t, n) {
13550
13550
  n === void 0 && (n = !1);
13551
- var r = Kt(t), i = Kt(t) && AO(t), o = pr(t), a = yi(e, i, n), s = {
13551
+ var r = Kt(t), i = Kt(t) && AO(t), o = mr(t), a = yi(e, i, n), s = {
13552
13552
  scrollLeft: 0,
13553
13553
  scrollTop: 0
13554
13554
  }, l = {
@@ -14226,7 +14226,7 @@ function dN(e, t) {
14226
14226
  var I = K();
14227
14227
  I.removeEventListener("mousedown", se, !0), I.removeEventListener("touchend", se, fr), I.removeEventListener("touchstart", ye, fr), I.removeEventListener("touchmove", Ne, fr);
14228
14228
  }
14229
- function D(I, ee) {
14229
+ function x(I, ee) {
14230
14230
  dt(I, function() {
14231
14231
  !f.state.isVisible && y.parentNode && y.parentNode.contains(y) && ee();
14232
14232
  });
@@ -14339,7 +14339,7 @@ function dN(e, t) {
14339
14339
  }), Yr.attributes.popper = {};
14340
14340
  }
14341
14341
  }
14342
- }, mr = [{
14342
+ }, hr = [{
14343
14343
  name: "offset",
14344
14344
  options: {
14345
14345
  offset: Ie
@@ -14365,16 +14365,16 @@ function dN(e, t) {
14365
14365
  adaptive: !Et
14366
14366
  }
14367
14367
  }, Xo];
14368
- H() && Gt && mr.push({
14368
+ H() && Gt && hr.push({
14369
14369
  name: "arrow",
14370
14370
  options: {
14371
14371
  element: Gt,
14372
14372
  padding: 3
14373
14373
  }
14374
- }), mr.push.apply(mr, ee?.modifiers || []), f.popperInstance = PO($r, y, Object.assign({}, ee, {
14374
+ }), hr.push.apply(hr, ee?.modifiers || []), f.popperInstance = PO($r, y, Object.assign({}, ee, {
14375
14375
  placement: pe,
14376
14376
  onFirstUpdate: p,
14377
- modifiers: mr
14377
+ modifiers: hr
14378
14378
  }));
14379
14379
  }
14380
14380
  function ie() {
@@ -14453,7 +14453,7 @@ function dN(e, t) {
14453
14453
  var Xo;
14454
14454
  if (!(!f.state.isVisible || c)) {
14455
14455
  if (c = !0, y.offsetHeight, y.style.transition = f.props.moveTransition, H() && f.props.animation) {
14456
- var mr = Q(), Jo = mr.box, Yr = mr.content;
14456
+ var hr = Q(), Jo = hr.box, Yr = hr.content;
14457
14457
  Hl([Jo, Yr], Te), am([Jo, Yr], "visible");
14458
14458
  }
14459
14459
  L(), Y(), im(Gl, f), (Xo = f.popperInstance) == null || Xo.forceUpdate(), N("onMount", [f]), f.props.animation && H() && le(Te, function() {
@@ -14471,7 +14471,7 @@ function dN(e, t) {
14471
14471
  var Te = Q(), Et = Te.box, Gt = Te.content;
14472
14472
  f.props.animation && (Hl([Et, Gt], Ie), am([Et, Gt], "hidden"));
14473
14473
  }
14474
- L(), Y(), f.props.animation ? H() && D(Ie, f.unmount) : f.unmount();
14474
+ L(), Y(), f.props.animation ? H() && x(Ie, f.unmount) : f.unmount();
14475
14475
  }
14476
14476
  }
14477
14477
  function Me(I) {
@@ -14535,7 +14535,7 @@ He.setDefaultProps({
14535
14535
  });
14536
14536
  class Di extends Ce {
14537
14537
  constructor() {
14538
- super(...arguments), x(this, "tippyInstance"), x(this, "tippyEl"), x(this, "textEl"), x(this, "menuData", []), x(this, "menuTextWidth", "fit-content"), x(this, "defaultMenuIndex", 0), x(this, "refreshMenuText", !0), x(this, "width", "fit-content"), x(this, "dropDivWith", "fit-content"), x(this, "dropDivHeight", "fit-content"), x(this, "showItemsTip", !1);
14538
+ super(...arguments), D(this, "tippyInstance"), D(this, "tippyEl"), D(this, "textEl"), D(this, "menuData", []), D(this, "menuTextWidth", "fit-content"), D(this, "defaultMenuIndex", 0), D(this, "refreshMenuText", !0), D(this, "width", "fit-content"), D(this, "dropDivWith", "fit-content"), D(this, "dropDivHeight", "fit-content"), D(this, "showItemsTip", !1);
14539
14539
  }
14540
14540
  renderTemplate() {
14541
14541
  this.template = `
@@ -16167,7 +16167,7 @@ const BN = [
16167
16167
  ];
16168
16168
  class UN extends Di {
16169
16169
  constructor() {
16170
- super(), x(this, "defaultValue", 14);
16170
+ super(), D(this, "defaultValue", 14);
16171
16171
  }
16172
16172
  onCreate(t, n) {
16173
16173
  var r, i;
@@ -16349,7 +16349,7 @@ const uf = [
16349
16349
  ], pf = ["c00000", "ff0000", "ffc000", "ffff00", "92d050", "00b050", "00b0f0", "0070c0", "002060", "7030a0"];
16350
16350
  class mf extends Ce {
16351
16351
  constructor() {
16352
- super(), x(this, "historyColorsKey", "historyColors"), x(this, "historyColors", []), x(this, "iconSvg"), x(this, "menuColorEL"), x(this, "onColorItemClick"), x(this, "onDefaultColorClick");
16352
+ super(), D(this, "historyColorsKey", "historyColors"), D(this, "historyColors", []), D(this, "iconSvg"), D(this, "menuColorEL"), D(this, "onColorItemClick"), D(this, "onDefaultColorClick");
16353
16353
  }
16354
16354
  connectedCallback() {
16355
16355
  this.template = `
@@ -16547,7 +16547,7 @@ class eR extends Di {
16547
16547
  }
16548
16548
  class jo {
16549
16549
  constructor() {
16550
- x(this, "tippyInstance"), x(this, "content"), x(this, "cancelText"), x(this, "confirmText"), x(this, "onConfirmClickFunc"), x(this, "onCancelClickFunc"), x(this, "onShowFunc");
16550
+ D(this, "tippyInstance"), D(this, "content"), D(this, "cancelText"), D(this, "confirmText"), D(this, "onConfirmClickFunc"), D(this, "onCancelClickFunc"), D(this, "onShowFunc");
16551
16551
  }
16552
16552
  setContent(t) {
16553
16553
  this.content = t;
@@ -16944,7 +16944,7 @@ class gR extends Ce {
16944
16944
  }
16945
16945
  let fR = class extends Ce {
16946
16946
  constructor() {
16947
- super(), x(this, "fileInput"), this.template = `
16947
+ super(), D(this, "fileInput"), this.template = `
16948
16948
  <div>
16949
16949
  <input type="file" accept="image/*" multiple style="display: none">
16950
16950
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z"></path></svg>
@@ -16971,7 +16971,7 @@ let fR = class extends Ce {
16971
16971
  };
16972
16972
  class ER extends Ce {
16973
16973
  constructor() {
16974
- super(), x(this, "fileInput"), this.template = `
16974
+ super(), D(this, "fileInput"), this.template = `
16975
16975
  <div>
16976
16976
  <input type="file" accept="video/*" style="display: none">
16977
16977
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM4 5V19H20V5H4ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z"></path></svg>
@@ -17054,7 +17054,7 @@ class yR extends Ce {
17054
17054
  }
17055
17055
  let CR = class extends Ce {
17056
17056
  constructor() {
17057
- super(), x(this, "instance"), this.template = `
17057
+ super(), D(this, "instance"), this.template = `
17058
17058
  <div>
17059
17059
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 10H10V14H14V10ZM16 10V14H19V10H16ZM14 19V16H10V19H14ZM16 19H19V16H16V19ZM14 5H10V8H14V5ZM16 5V8H19V5H16ZM8 10H5V14H8V10ZM8 19V16H5V19H8ZM8 5H5V8H8V5ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"></path></svg>
17060
17060
  </div>
@@ -17122,7 +17122,7 @@ class TR extends Ce {
17122
17122
  }
17123
17123
  class OR extends Ce {
17124
17124
  constructor() {
17125
- super(), x(this, "fileInput"), this.template = `
17125
+ super(), D(this, "fileInput"), this.template = `
17126
17126
  <div>
17127
17127
  <input type="file" style="display: none">
17128
17128
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.8287 7.7574L9.1718 13.4143C8.78127 13.8048 8.78127 14.4379 9.1718 14.8285C9.56232 15.219 10.1955 15.219 10.586 14.8285L16.2429 9.17161C17.4144 8.00004 17.4144 6.10055 16.2429 4.92897C15.0713 3.7574 13.1718 3.7574 12.0002 4.92897L6.34337 10.5858C4.39075 12.5384 4.39075 15.7043 6.34337 17.6569C8.29599 19.6095 11.4618 19.6095 13.4144 17.6569L19.0713 12L20.4855 13.4143L14.8287 19.0711C12.095 21.8048 7.66283 21.8048 4.92916 19.0711C2.19549 16.3374 2.19549 11.9053 4.92916 9.17161L10.586 3.51476C12.5386 1.56214 15.7045 1.56214 17.6571 3.51476C19.6097 5.46738 19.6097 8.63321 17.6571 10.5858L12.0002 16.2427C10.8287 17.4143 8.92916 17.4143 7.75759 16.2427C6.58601 15.0711 6.58601 13.1716 7.75759 12L13.4144 6.34319L14.8287 7.7574Z"></path></svg>
@@ -17148,7 +17148,7 @@ class OR extends Ce {
17148
17148
  }
17149
17149
  class NR extends Ce {
17150
17150
  constructor() {
17151
- super(), x(this, "fullscreenSvg", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 3V5H4V9H2V3H8ZM2 21V15H4V19H8V21H2ZM22 21H16V19H20V15H22V21ZM22 9H20V5H16V3H22V9Z"></path></svg>'), x(this, "fullscreenExitSvg", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"></path></svg>'), x(this, "isFullscreen", !1), this.template = `
17151
+ super(), D(this, "fullscreenSvg", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 3V5H4V9H2V3H8ZM2 21V15H4V19H8V21H2ZM22 21H16V19H20V15H22V21ZM22 9H20V5H16V3H22V9Z"></path></svg>'), D(this, "fullscreenExitSvg", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"></path></svg>'), D(this, "isFullscreen", !1), this.template = `
17152
17152
  <div>
17153
17153
  ${this.fullscreenSvg}
17154
17154
  </div>
@@ -17338,7 +17338,7 @@ const Tm = [
17338
17338
  ];
17339
17339
  class AR extends Ce {
17340
17340
  constructor() {
17341
- super(), x(this, "emojis", Tm), x(this, "tippy"), this.template = `
17341
+ super(), D(this, "emojis", Tm), D(this, "tippy"), this.template = `
17342
17342
  <div>
17343
17343
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8 13H16C16 15.2091 14.2091 17 12 17C9.79086 17 8 15.2091 8 13ZM8 11C7.17157 11 6.5 10.3284 6.5 9.5C6.5 8.67157 7.17157 8 8 8C8.82843 8 9.5 8.67157 9.5 9.5C9.5 10.3284 8.82843 11 8 11ZM16 11C15.1716 11 14.5 10.3284 14.5 9.5C14.5 8.67157 15.1716 8 16 8C16.8284 8 17.5 8.67157 17.5 9.5C17.5 10.3284 16.8284 11 16 11Z"></path></svg>
17344
17344
  </div>
@@ -17389,7 +17389,7 @@ class wR extends Ce {
17389
17389
  }
17390
17390
  class Wo {
17391
17391
  constructor(t, n, r) {
17392
- x(this, "editor"), x(this, "globalConfig"), x(this, "aiModelName"), x(this, "aiModelConfig"), this.editor = t, this.globalConfig = n, this.aiModelName = r, this.aiModelConfig = n.models[r];
17392
+ D(this, "editor"), D(this, "globalConfig"), D(this, "aiModelName"), D(this, "aiModelConfig"), this.editor = t, this.globalConfig = n, this.aiModelName = r, this.aiModelConfig = n.models[r];
17393
17393
  }
17394
17394
  chatWithPayload(t, n) {
17395
17395
  const r = (o) => {
@@ -17412,7 +17412,7 @@ class Wo {
17412
17412
  }
17413
17413
  class hf {
17414
17414
  constructor(t, n) {
17415
- x(this, "isStop", !1), x(this, "url"), x(this, "webSocket"), x(this, "isOpen", !1), x(this, "payload"), x(this, "listener"), this.url = t, this.listener = n;
17415
+ D(this, "isStop", !1), D(this, "url"), D(this, "webSocket"), D(this, "isOpen", !1), D(this, "payload"), D(this, "listener"), this.url = t, this.listener = n;
17416
17416
  }
17417
17417
  start(t) {
17418
17418
  this.listener.onStart(this), this.payload = t, this.webSocket = new WebSocket(this.url), this.webSocket.onopen = (n) => this.onOpen(n), this.webSocket.onmessage = (n) => this.onMessage(n), this.webSocket.onclose = (n) => this.onClose(n), this.webSocket.onerror = (n) => this.onError(n);
@@ -17436,7 +17436,7 @@ class hf {
17436
17436
  this.isOpen = !1, this.isStop || (this.listener.onStop(), this.isStop = !0);
17437
17437
  }
17438
17438
  }
17439
- var Jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
17439
+ var er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
17440
17440
  function ol(e) {
17441
17441
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
17442
17442
  }
@@ -17473,10 +17473,10 @@ function al() {
17473
17473
  return Nm || (Nm = 1, (function(e, t) {
17474
17474
  (function(n, r) {
17475
17475
  e.exports = r();
17476
- })(Jn, function() {
17476
+ })(er, function() {
17477
17477
  var n = n || (function(r, i) {
17478
17478
  var o;
17479
- if (typeof window < "u" && window.crypto && (o = window.crypto), typeof self < "u" && self.crypto && (o = self.crypto), typeof globalThis < "u" && globalThis.crypto && (o = globalThis.crypto), !o && typeof window < "u" && window.msCrypto && (o = window.msCrypto), !o && typeof Jn < "u" && Jn.crypto && (o = Jn.crypto), !o && typeof xR == "function")
17479
+ if (typeof window < "u" && window.crypto && (o = window.crypto), typeof self < "u" && self.crypto && (o = self.crypto), typeof globalThis < "u" && globalThis.crypto && (o = globalThis.crypto), !o && typeof window < "u" && window.msCrypto && (o = window.msCrypto), !o && typeof er < "u" && er.crypto && (o = er.crypto), !o && typeof xR == "function")
17480
17480
  try {
17481
17481
  o = kR;
17482
17482
  } catch {
@@ -17974,7 +17974,7 @@ function LR() {
17974
17974
  return Am || (Am = 1, (function(e, t) {
17975
17975
  (function(n, r) {
17976
17976
  e.exports = r(al());
17977
- })(Jn, function(n) {
17977
+ })(er, function(n) {
17978
17978
  return (function(r) {
17979
17979
  var i = n, o = i.lib, a = o.WordArray, s = o.Hasher, l = i.algo, c = [], d = [];
17980
17980
  (function() {
@@ -18026,7 +18026,7 @@ function PR() {
18026
18026
  return Im || (Im = 1, (function(e, t) {
18027
18027
  (function(n, r) {
18028
18028
  e.exports = r(al());
18029
- })(Jn, function(n) {
18029
+ })(er, function(n) {
18030
18030
  (function() {
18031
18031
  var r = n, i = r.lib, o = i.Base, a = r.enc, s = a.Utf8, l = r.algo;
18032
18032
  l.HMAC = o.extend({
@@ -18102,7 +18102,7 @@ function PR() {
18102
18102
  (function(e, t) {
18103
18103
  (function(n, r, i) {
18104
18104
  e.exports = r(al(), LR(), PR());
18105
- })(Jn, function(n) {
18105
+ })(er, function(n) {
18106
18106
  return n.HmacSHA256;
18107
18107
  });
18108
18108
  })(_f);
@@ -18112,7 +18112,7 @@ var gf = { exports: {} };
18112
18112
  (function(e, t) {
18113
18113
  (function(n, r) {
18114
18114
  e.exports = r(al());
18115
- })(Jn, function(n) {
18115
+ })(er, function(n) {
18116
18116
  return (function() {
18117
18117
  var r = n, i = r.lib, o = i.WordArray, a = r.enc;
18118
18118
  a.Base64 = {
@@ -18261,7 +18261,7 @@ class VR extends Wo {
18261
18261
  }
18262
18262
  class ff {
18263
18263
  constructor(t, n) {
18264
- x(this, "isStop", !1), x(this, "config"), x(this, "fetch"), x(this, "isOpen", !1), x(this, "payload"), x(this, "listener"), this.config = t, this.listener = n;
18264
+ D(this, "isStop", !1), D(this, "config"), D(this, "fetch"), D(this, "isOpen", !1), D(this, "payload"), D(this, "listener"), this.config = t, this.listener = n;
18265
18265
  }
18266
18266
  start(t) {
18267
18267
  this.payload = t, this.onOpen(), this.listener.onStart(this);
@@ -18342,13 +18342,13 @@ class GR extends Wo {
18342
18342
  return `https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions_pro?access_token=${this.aiModelConfig.access_token}`;
18343
18343
  }
18344
18344
  }
18345
- var Hn;
18345
+ var Vn;
18346
18346
  class zR extends TransformStream {
18347
18347
  /** Constructs a new instance. */
18348
18348
  constructor(t = { allowCR: !1 }) {
18349
18349
  super({
18350
18350
  transform: (n, r) => {
18351
- for (n = Pi(this, Hn) + n; ; ) {
18351
+ for (n = Pi(this, Vn) + n; ; ) {
18352
18352
  const i = n.indexOf(`
18353
18353
  `), o = t.allowCR ? n.indexOf("\r") : -1;
18354
18354
  if (o !== -1 && o !== n.length - 1 && (i === -1 || i - 1 > o)) {
@@ -18360,18 +18360,18 @@ class zR extends TransformStream {
18360
18360
  const a = n[i - 1] === "\r" ? i - 1 : i;
18361
18361
  r.enqueue(n.slice(0, a)), n = n.slice(i + 1);
18362
18362
  }
18363
- wb(this, Hn, n);
18363
+ wb(this, Vn, n);
18364
18364
  },
18365
18365
  flush: (n) => {
18366
- if (Pi(this, Hn) === "")
18366
+ if (Pi(this, Vn) === "")
18367
18367
  return;
18368
- const r = t.allowCR && Pi(this, Hn).endsWith("\r") ? Pi(this, Hn).slice(0, -1) : Pi(this, Hn);
18368
+ const r = t.allowCR && Pi(this, Vn).endsWith("\r") ? Pi(this, Vn).slice(0, -1) : Pi(this, Vn);
18369
18369
  n.enqueue(r);
18370
18370
  }
18371
- }), Ab(this, Hn, "");
18371
+ }), Ab(this, Vn, "");
18372
18372
  }
18373
18373
  }
18374
- Hn = /* @__PURE__ */ new WeakMap();
18374
+ Vn = /* @__PURE__ */ new WeakMap();
18375
18375
  function $R(e) {
18376
18376
  let t = new TextDecoderStream(), n = new zR({ allowCR: !0 });
18377
18377
  return e.pipeThrough(t).pipeThrough(n);
@@ -18404,7 +18404,7 @@ async function* qR(e, t) {
18404
18404
  }
18405
18405
  class Zd {
18406
18406
  constructor(t, n) {
18407
- x(this, "isStop", !1), x(this, "config"), x(this, "fetch"), x(this, "isOpen", !1), x(this, "payload"), x(this, "listener"), x(this, "ctrl", new AbortController()), this.config = t, this.listener = n;
18407
+ D(this, "isStop", !1), D(this, "config"), D(this, "fetch"), D(this, "isOpen", !1), D(this, "payload"), D(this, "listener"), D(this, "ctrl", new AbortController()), this.config = t, this.listener = n;
18408
18408
  }
18409
18409
  start(t) {
18410
18410
  this.payload = t, this.onOpen(), this.listener.onStart(this);
@@ -18606,7 +18606,7 @@ class KR extends Wo {
18606
18606
  return t;
18607
18607
  }
18608
18608
  }
18609
- class lr {
18609
+ class cr {
18610
18610
  static init(t, n) {
18611
18611
  var r;
18612
18612
  if (n && n.models)
@@ -18639,7 +18639,7 @@ class lr {
18639
18639
  this.models[t] = n;
18640
18640
  }
18641
18641
  }
18642
- x(lr, "models", {});
18642
+ D(cr, "models", {});
18643
18643
  const QR = (e) => {
18644
18644
  let t = "";
18645
18645
  return e.descendants((n) => {
@@ -18648,7 +18648,7 @@ const QR = (e) => {
18648
18648
  };
18649
18649
  class ns {
18650
18650
  constructor(t, n) {
18651
- x(this, "editor"), x(this, "from"), x(this, "options"), this.editor = t, this.from = t.view.state.selection.from, this.options = n || {
18651
+ D(this, "editor"), D(this, "from"), D(this, "options"), this.editor = t, this.from = t.view.state.selection.from, this.options = n || {
18652
18652
  markdownParseEnable: !0
18653
18653
  };
18654
18654
  }
@@ -18710,7 +18710,7 @@ const ZR = [
18710
18710
  ];
18711
18711
  class XR extends Di {
18712
18712
  constructor() {
18713
- super(), x(this, "aiMenus", ZR.map((t) => ({
18713
+ super(), D(this, "aiMenus", ZR.map((t) => ({
18714
18714
  ...t,
18715
18715
  name: `${ae(t.name)}`
18716
18716
  }))), this.dropDivHeight = "auto", this.dropDivWith = "fit-content", this.width = "36px", this.menuTextWidth = "20px";
@@ -18760,7 +18760,7 @@ class XR extends Di {
18760
18760
  onDropdownItemClick(t) {
18761
18761
  const n = this.menuData[t], r = this.getSelectedText(n.text);
18762
18762
  if (r) {
18763
- const i = lr.get(n.model);
18763
+ const i = cr.get(n.model);
18764
18764
  i ? i?.chat(r, n.prompt, new ns(this.editor)) : console.error("Ai model config error.");
18765
18765
  } else
18766
18766
  console.error("Can not get selected text.");
@@ -18791,7 +18791,7 @@ class JR extends Ce {
18791
18791
  }
18792
18792
  class eA extends Ce {
18793
18793
  constructor() {
18794
- super(), x(this, "config");
18794
+ super(), D(this, "config");
18795
18795
  }
18796
18796
  onConfig(t) {
18797
18797
  this.config = t, t.html ? this.template = t.html : t.icon && (this.template = `<div style="height: 16px">${t.icon}</div>`), this.addEventListener("click", (n) => {
@@ -18855,7 +18855,7 @@ const me = (e, t) => {
18855
18855
  };
18856
18856
  class tA extends Ce {
18857
18857
  constructor() {
18858
- super(), x(this, "menuButtons", []), x(this, "tippyInstance"), x(this, "tippyEl"), x(this, "iconSvg", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 3C11.175 3 10.5 3.675 10.5 4.5C10.5 5.325 11.175 6 12 6C12.825 6 13.5 5.325 13.5 4.5C13.5 3.675 12.825 3 12 3ZM12 18C11.175 18 10.5 18.675 10.5 19.5C10.5 20.325 11.175 21 12 21C12.825 21 13.5 20.325 13.5 19.5C13.5 18.675 12.825 18 12 18ZM12 10.5C11.175 10.5 10.5 11.175 10.5 12C10.5 12.825 11.175 13.5 12 13.5C12.825 13.5 13.5 12.825 13.5 12C13.5 11.175 12.825 10.5 12 10.5Z"></path></svg>');
18858
+ super(), D(this, "menuButtons", []), D(this, "tippyInstance"), D(this, "tippyEl"), D(this, "iconSvg", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 3C11.175 3 10.5 3.675 10.5 4.5C10.5 5.325 11.175 6 12 6C12.825 6 13.5 5.325 13.5 4.5C13.5 3.675 12.825 3 12 3ZM12 18C11.175 18 10.5 18.675 10.5 19.5C10.5 20.325 11.175 21 12 21C12.825 21 13.5 20.325 13.5 19.5C13.5 18.675 12.825 18 12 18ZM12 10.5C11.175 10.5 10.5 11.175 10.5 12C10.5 12.825 11.175 13.5 12 13.5C12.825 13.5 13.5 12.825 13.5 12C13.5 11.175 12.825 10.5 12 10.5Z"></path></svg>');
18859
18859
  }
18860
18860
  onCreate(t, n) {
18861
18861
  super.onCreate(t, n);
@@ -18996,7 +18996,7 @@ me("aie-ai", XR);
18996
18996
  me("aie-group", tA);
18997
18997
  class Sf extends HTMLElement {
18998
18998
  constructor() {
18999
- super(), x(this, "menuButtons", []);
18999
+ super(), D(this, "menuButtons", []);
19000
19000
  }
19001
19001
  connectedCallback() {
19002
19002
  if (this.children && this.children.length > 0)
@@ -19031,7 +19031,7 @@ class Sf extends HTMLElement {
19031
19031
  }
19032
19032
  class bf extends HTMLElement {
19033
19033
  constructor() {
19034
- super(), x(this, "count", 0), x(this, "draggable", !0);
19034
+ super(), D(this, "count", 0), D(this, "draggable", !0);
19035
19035
  }
19036
19036
  initDraggable(t) {
19037
19037
  if (this.draggable = !!t, !this.draggable)
@@ -19167,11 +19167,11 @@ const rA = /^\s*>\s$/, iA = Ve.create({
19167
19167
  },
19168
19168
  addPasteRules() {
19169
19169
  return [
19170
- sr({
19170
+ lr({
19171
19171
  find: aA,
19172
19172
  type: this.type
19173
19173
  }),
19174
- sr({
19174
+ lr({
19175
19175
  find: lA,
19176
19176
  type: this.type
19177
19177
  })
@@ -19265,7 +19265,7 @@ const rA = /^\s*>\s$/, iA = Ve.create({
19265
19265
  },
19266
19266
  addPasteRules() {
19267
19267
  return [
19268
- sr({
19268
+ lr({
19269
19269
  find: mA,
19270
19270
  type: this.type
19271
19271
  })
@@ -20038,7 +20038,7 @@ class sn {
20038
20038
  }
20039
20039
  }
20040
20040
  }
20041
- class zn {
20041
+ class $n {
20042
20042
  constructor(t, n, r, i, o) {
20043
20043
  this.done = t, this.undone = n, this.prevRanges = r, this.prevTime = i, this.prevComposition = o;
20044
20044
  }
@@ -20048,16 +20048,16 @@ function kA(e, t, n, r) {
20048
20048
  let i = n.getMeta(Ar), o;
20049
20049
  if (i)
20050
20050
  return i.historyState;
20051
- n.getMeta(FA) && (e = new zn(e.done, e.undone, null, 0, -1));
20051
+ n.getMeta(FA) && (e = new $n(e.done, e.undone, null, 0, -1));
20052
20052
  let a = n.getMeta("appendedTransaction");
20053
20053
  if (n.steps.length == 0)
20054
20054
  return e;
20055
20055
  if (a && a.getMeta(Ar))
20056
- return a.getMeta(Ar).redo ? new zn(e.done.addTransform(n, void 0, r, ka(t)), e.undone, Mm(n.mapping.maps), e.prevTime, e.prevComposition) : new zn(e.done, e.undone.addTransform(n, void 0, r, ka(t)), null, e.prevTime, e.prevComposition);
20056
+ return a.getMeta(Ar).redo ? new $n(e.done.addTransform(n, void 0, r, ka(t)), e.undone, Mm(n.mapping.maps), e.prevTime, e.prevComposition) : new $n(e.done, e.undone.addTransform(n, void 0, r, ka(t)), null, e.prevTime, e.prevComposition);
20057
20057
  if (n.getMeta("addToHistory") !== !1 && !(a && a.getMeta("addToHistory") === !1)) {
20058
20058
  let s = n.getMeta("composition"), l = e.prevTime == 0 || !a && e.prevComposition != s && (e.prevTime < (n.time || 0) - r.newGroupDelay || !LA(n, e.prevRanges)), c = a ? ql(e.prevRanges, n.mapping) : Mm(n.mapping.maps);
20059
- return new zn(e.done.addTransform(n, l ? t.selection.getBookmark() : void 0, r, ka(t)), en.empty, c, n.time, s ?? e.prevComposition);
20060
- } else return (o = n.getMeta("rebased")) ? new zn(e.done.rebased(n, o), e.undone.rebased(n, o), ql(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new zn(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), ql(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
20059
+ return new $n(e.done.addTransform(n, l ? t.selection.getBookmark() : void 0, r, ka(t)), en.empty, c, n.time, s ?? e.prevComposition);
20060
+ } else return (o = n.getMeta("rebased")) ? new $n(e.done.rebased(n, o), e.undone.rebased(n, o), ql(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new $n(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), ql(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
20061
20061
  }
20062
20062
  function LA(e, t) {
20063
20063
  if (!t)
@@ -20090,7 +20090,7 @@ function PA(e, t, n) {
20090
20090
  let r = ka(t), i = Ar.get(t).spec.config, o = (n ? e.undone : e.done).popEvent(t, r);
20091
20091
  if (!o)
20092
20092
  return null;
20093
- let a = o.selection.resolve(o.transform.doc), s = (n ? e.done : e.undone).addTransform(o.transform, t.selection.getBookmark(), i, r), l = new zn(n ? s : o.remaining, n ? o.remaining : s, null, 0, -1);
20093
+ let a = o.selection.resolve(o.transform.doc), s = (n ? e.done : e.undone).addTransform(o.transform, t.selection.getBookmark(), i, r), l = new $n(n ? s : o.remaining, n ? o.remaining : s, null, 0, -1);
20094
20094
  return o.transform.setSelection(a).setMeta(Ar, { redo: n, historyState: l });
20095
20095
  }
20096
20096
  let jl = !1, km = null;
@@ -20115,7 +20115,7 @@ function BA(e = {}) {
20115
20115
  key: Ar,
20116
20116
  state: {
20117
20117
  init() {
20118
- return new zn(en.empty, en.empty, null, 0, -1);
20118
+ return new $n(en.empty, en.empty, null, 0, -1);
20119
20119
  },
20120
20120
  apply(t, n, r) {
20121
20121
  return kA(n, r, t, e);
@@ -20280,11 +20280,11 @@ const Of = Tf(!1), Nf = Tf(!0), UA = Re.create({
20280
20280
  },
20281
20281
  addPasteRules() {
20282
20282
  return [
20283
- sr({
20283
+ lr({
20284
20284
  find: GA,
20285
20285
  type: this.type
20286
20286
  }),
20287
- sr({
20287
+ lr({
20288
20288
  find: $A,
20289
20289
  type: this.type
20290
20290
  })
@@ -20462,7 +20462,7 @@ const Of = Tf(!1), Nf = Tf(!0), UA = Re.create({
20462
20462
  },
20463
20463
  addPasteRules() {
20464
20464
  return [
20465
- sr({
20465
+ lr({
20466
20466
  find: ZA,
20467
20467
  type: this.type
20468
20468
  })
@@ -20782,7 +20782,7 @@ const Of = Tf(!1), Nf = Tf(!0), UA = Re.create({
20782
20782
  },
20783
20783
  addPasteRules() {
20784
20784
  return [
20785
- sr({
20785
+ lr({
20786
20786
  find: u0,
20787
20787
  type: this.type
20788
20788
  })
@@ -21526,7 +21526,7 @@ function _t(e) {
21526
21526
  }
21527
21527
  return t;
21528
21528
  }
21529
- var jn = new Le("selectingCells");
21529
+ var Wn = new Le("selectingCells");
21530
21530
  function Mi(e) {
21531
21531
  for (let t = e.depth - 1; t > 0; t--)
21532
21532
  if (e.node(t).type.spec.tableRole == "row")
@@ -22651,21 +22651,21 @@ function aw(e, t) {
22651
22651
  return;
22652
22652
  function o(l, c) {
22653
22653
  let d = Wl(e, c);
22654
- const u = jn.getState(e.state) == null;
22654
+ const u = Wn.getState(e.state) == null;
22655
22655
  if (!d || !eu(l, d))
22656
22656
  if (u) d = l;
22657
22657
  else return;
22658
22658
  const p = new De(l, d);
22659
22659
  if (u || !e.state.selection.eq(p)) {
22660
22660
  const m = e.state.tr.setSelection(p);
22661
- u && m.setMeta(jn, l.pos), e.dispatch(m);
22661
+ u && m.setMeta(Wn, l.pos), e.dispatch(m);
22662
22662
  }
22663
22663
  }
22664
22664
  function a() {
22665
- e.root.removeEventListener("mouseup", a), e.root.removeEventListener("dragstart", a), e.root.removeEventListener("mousemove", s), jn.getState(e.state) != null && e.dispatch(e.state.tr.setMeta(jn, -1));
22665
+ e.root.removeEventListener("mouseup", a), e.root.removeEventListener("dragstart", a), e.root.removeEventListener("mousemove", s), Wn.getState(e.state) != null && e.dispatch(e.state.tr.setMeta(Wn, -1));
22666
22666
  }
22667
22667
  function s(l) {
22668
- const c = l, d = jn.getState(e.state);
22668
+ const c = l, d = Wn.getState(e.state);
22669
22669
  let u;
22670
22670
  if (d != null)
22671
22671
  u = e.state.doc.resolve(d);
@@ -22969,7 +22969,7 @@ function Ew({
22969
22969
  allowTableNodeSelection: e = !1
22970
22970
  } = {}) {
22971
22971
  return new we({
22972
- key: jn,
22972
+ key: Wn,
22973
22973
  // This piece of state is used to remember when a mouse-drag
22974
22974
  // cell-selection is happening, so that it can continue even as
22975
22975
  // transactions (which might move its anchor cell) come in.
@@ -22978,7 +22978,7 @@ function Ew({
22978
22978
  return null;
22979
22979
  },
22980
22980
  apply(t, n) {
22981
- const r = t.getMeta(jn);
22981
+ const r = t.getMeta(Wn);
22982
22982
  if (r != null) return r == -1 ? null : r;
22983
22983
  if (n == null || !t.docChanged) return n;
22984
22984
  const { deleted: i, pos: o } = t.mapping.mapResult(n);
@@ -22991,7 +22991,7 @@ function Ew({
22991
22991
  mousedown: aw
22992
22992
  },
22993
22993
  createSelectionBetween(t) {
22994
- return jn.getState(t.state) != null ? t.state.selection : null;
22994
+ return Wn.getState(t.state) != null ? t.state.selection : null;
22995
22995
  },
22996
22996
  handleTripleClick: iw,
22997
22997
  handleKeyDown: rw,
@@ -23566,7 +23566,7 @@ Rt.prototype = {
23566
23566
  return i.j[e] = a, a;
23567
23567
  }
23568
23568
  };
23569
- const Se = (e, t, n, r, i) => e.ta(t, n, r, i), ze = (e, t, n, r, i) => e.tr(t, n, r, i), Jm = (e, t, n, r, i) => e.ts(t, n, r, i), F = (e, t, n, r, i) => e.tt(t, n, r, i), An = "WORD", od = "UWORD", Uf = "ASCIINUMERICAL", Hf = "ALPHANUMERICAL", Io = "LOCALHOST", ad = "TLD", sd = "UTLD", Fa = "SCHEME", ri = "SLASH_SCHEME", tu = "NUM", ld = "WS", nu = "NL", co = "OPENBRACE", uo = "CLOSEBRACE", is = "OPENBRACKET", as = "CLOSEBRACKET", ss = "OPENPAREN", ls = "CLOSEPAREN", cs = "OPENANGLEBRACKET", ds = "CLOSEANGLEBRACKET", us = "FULLWIDTHLEFTPAREN", ps = "FULLWIDTHRIGHTPAREN", ms = "LEFTCORNERBRACKET", hs = "RIGHTCORNERBRACKET", _s = "LEFTWHITECORNERBRACKET", gs = "RIGHTWHITECORNERBRACKET", fs = "FULLWIDTHLESSTHAN", Es = "FULLWIDTHGREATERTHAN", Ss = "AMPERSAND", ru = "APOSTROPHE", bs = "ASTERISK", $n = "AT", vs = "BACKSLASH", ys = "BACKTICK", Cs = "CARET", Wn = "COLON", iu = "COMMA", Ts = "DOLLAR", ln = "DOT", Os = "EQUALS", ou = "EXCLAMATION", $t = "HYPHEN", po = "PERCENT", Ns = "PIPE", Rs = "PLUS", As = "POUND", mo = "QUERY", au = "QUOTE", Vf = "FULLWIDTHMIDDLEDOT", su = "SEMI", cn = "SLASH", ho = "TILDE", ws = "UNDERSCORE", Gf = "EMOJI", Is = "SYM";
23569
+ const Se = (e, t, n, r, i) => e.ta(t, n, r, i), ze = (e, t, n, r, i) => e.tr(t, n, r, i), Jm = (e, t, n, r, i) => e.ts(t, n, r, i), F = (e, t, n, r, i) => e.tt(t, n, r, i), An = "WORD", od = "UWORD", Uf = "ASCIINUMERICAL", Hf = "ALPHANUMERICAL", Io = "LOCALHOST", ad = "TLD", sd = "UTLD", Fa = "SCHEME", ri = "SLASH_SCHEME", tu = "NUM", ld = "WS", nu = "NL", co = "OPENBRACE", uo = "CLOSEBRACE", is = "OPENBRACKET", as = "CLOSEBRACKET", ss = "OPENPAREN", ls = "CLOSEPAREN", cs = "OPENANGLEBRACKET", ds = "CLOSEANGLEBRACKET", us = "FULLWIDTHLEFTPAREN", ps = "FULLWIDTHRIGHTPAREN", ms = "LEFTCORNERBRACKET", hs = "RIGHTCORNERBRACKET", _s = "LEFTWHITECORNERBRACKET", gs = "RIGHTWHITECORNERBRACKET", fs = "FULLWIDTHLESSTHAN", Es = "FULLWIDTHGREATERTHAN", Ss = "AMPERSAND", ru = "APOSTROPHE", bs = "ASTERISK", Yn = "AT", vs = "BACKSLASH", ys = "BACKTICK", Cs = "CARET", Kn = "COLON", iu = "COMMA", Ts = "DOLLAR", ln = "DOT", Os = "EQUALS", ou = "EXCLAMATION", $t = "HYPHEN", po = "PERCENT", Ns = "PIPE", Rs = "PLUS", As = "POUND", mo = "QUERY", au = "QUOTE", Vf = "FULLWIDTHMIDDLEDOT", su = "SEMI", cn = "SLASH", ho = "TILDE", ws = "UNDERSCORE", Gf = "EMOJI", Is = "SYM";
23570
23570
  var zf = /* @__PURE__ */ Object.freeze({
23571
23571
  __proto__: null,
23572
23572
  WORD: An,
@@ -23600,11 +23600,11 @@ var zf = /* @__PURE__ */ Object.freeze({
23600
23600
  AMPERSAND: Ss,
23601
23601
  APOSTROPHE: ru,
23602
23602
  ASTERISK: bs,
23603
- AT: $n,
23603
+ AT: Yn,
23604
23604
  BACKSLASH: vs,
23605
23605
  BACKTICK: ys,
23606
23606
  CARET: Cs,
23607
- COLON: Wn,
23607
+ COLON: Kn,
23608
23608
  COMMA: iu,
23609
23609
  DOLLAR: Ts,
23610
23610
  DOT: ln,
@@ -23632,7 +23632,7 @@ function Uw(e = []) {
23632
23632
  const t = {};
23633
23633
  Rt.groups = t;
23634
23634
  const n = new Rt();
23635
- Ea == null && (Ea = th(xw)), Sa == null && (Sa = th(Dw)), F(n, "'", ru), F(n, "{", co), F(n, "}", uo), F(n, "[", is), F(n, "]", as), F(n, "(", ss), F(n, ")", ls), F(n, "<", cs), F(n, ">", ds), F(n, "(", us), F(n, ")", ps), F(n, "「", ms), F(n, "」", hs), F(n, "『", _s), F(n, "』", gs), F(n, "<", fs), F(n, ">", Es), F(n, "&", Ss), F(n, "*", bs), F(n, "@", $n), F(n, "`", ys), F(n, "^", Cs), F(n, ":", Wn), F(n, ",", iu), F(n, "$", Ts), F(n, ".", ln), F(n, "=", Os), F(n, "!", ou), F(n, "-", $t), F(n, "%", po), F(n, "|", Ns), F(n, "+", Rs), F(n, "#", As), F(n, "?", mo), F(n, '"', au), F(n, "/", cn), F(n, ";", su), F(n, "~", ho), F(n, "_", ws), F(n, "\\", vs), F(n, "・", Vf);
23635
+ Ea == null && (Ea = th(xw)), Sa == null && (Sa = th(Dw)), F(n, "'", ru), F(n, "{", co), F(n, "}", uo), F(n, "[", is), F(n, "]", as), F(n, "(", ss), F(n, ")", ls), F(n, "<", cs), F(n, ">", ds), F(n, "(", us), F(n, ")", ps), F(n, "「", ms), F(n, "」", hs), F(n, "『", _s), F(n, "』", gs), F(n, "<", fs), F(n, ">", Es), F(n, "&", Ss), F(n, "*", bs), F(n, "@", Yn), F(n, "`", ys), F(n, "^", Cs), F(n, ":", Kn), F(n, ",", iu), F(n, "$", Ts), F(n, ".", ln), F(n, "=", Os), F(n, "!", ou), F(n, "-", $t), F(n, "%", po), F(n, "|", Ns), F(n, "+", Rs), F(n, "#", As), F(n, "?", mo), F(n, '"', au), F(n, "/", cn), F(n, ";", su), F(n, "~", ho), F(n, "_", ws), F(n, "\\", vs), F(n, "・", Vf);
23636
23636
  const r = ze(n, Nn, tu, {
23637
23637
  [td]: !0
23638
23638
  });
@@ -23982,18 +23982,18 @@ const rh = cl("email", {
23982
23982
  */
23983
23983
  hasProtocol() {
23984
23984
  const e = this.tk;
23985
- return e.length >= 2 && e[0].t !== Io && e[1].t === Wn;
23985
+ return e.length >= 2 && e[0].t !== Io && e[1].t === Kn;
23986
23986
  }
23987
23987
  }), zt = (e) => new Rt(e);
23988
23988
  function Gw({
23989
23989
  groups: e
23990
23990
  }) {
23991
- const t = e.domain.concat([Ss, bs, $n, vs, ys, Cs, Ts, Os, $t, tu, po, Ns, Rs, As, cn, Is, ho, ws]), n = [Wn, iu, ln, ou, po, mo, au, su, cs, ds, co, uo, as, is, ss, ls, us, ps, ms, hs, _s, gs, fs, Es], r = [Ss, ru, bs, vs, ys, Cs, Ts, Os, $t, co, uo, po, Ns, Rs, As, mo, cn, Is, ho, ws], i = zt(), o = F(i, ho);
23991
+ const t = e.domain.concat([Ss, bs, Yn, vs, ys, Cs, Ts, Os, $t, tu, po, Ns, Rs, As, cn, Is, ho, ws]), n = [Kn, iu, ln, ou, po, mo, au, su, cs, ds, co, uo, as, is, ss, ls, us, ps, ms, hs, _s, gs, fs, Es], r = [Ss, ru, bs, vs, ys, Cs, Ts, Os, $t, co, uo, po, Ns, Rs, As, mo, cn, Is, ho, ws], i = zt(), o = F(i, ho);
23992
23992
  Se(o, r, o), Se(o, e.domain, o);
23993
23993
  const a = zt(), s = zt(), l = zt();
23994
23994
  Se(i, e.domain, a), Se(i, e.scheme, s), Se(i, e.slashscheme, l), Se(a, r, o), Se(a, e.domain, a);
23995
- const c = F(a, $n);
23996
- F(o, $n, c), F(s, $n, c), F(l, $n, c);
23995
+ const c = F(a, Yn);
23996
+ F(o, Yn, c), F(s, Yn, c), F(l, Yn, c);
23997
23997
  const d = F(o, ln);
23998
23998
  Se(d, r, o), Se(d, e.domain, o);
23999
23999
  const u = zt();
@@ -24004,17 +24004,17 @@ function Gw({
24004
24004
  Se(p, e.tld, m), Se(p, e.utld, m), F(c, Io, m);
24005
24005
  const h = F(u, $t);
24006
24006
  F(h, $t, h), Se(h, e.domain, u), Se(m, e.domain, u), F(m, ln, p), F(m, $t, h);
24007
- const _ = F(m, Wn);
24007
+ const _ = F(m, Kn);
24008
24008
  Se(_, e.numeric, rh);
24009
24009
  const g = F(a, $t), S = F(a, ln);
24010
24010
  F(g, $t, g), Se(g, e.domain, a), Se(S, r, o), Se(S, e.domain, a);
24011
24011
  const E = zt(ba);
24012
- Se(S, e.tld, E), Se(S, e.utld, E), Se(E, e.domain, a), Se(E, r, o), F(E, ln, S), F(E, $t, g), F(E, $n, c);
24013
- const b = F(E, Wn), f = zt(ba);
24012
+ Se(S, e.tld, E), Se(S, e.utld, E), Se(E, e.domain, a), Se(E, r, o), F(E, ln, S), F(E, $t, g), F(E, Yn, c);
24013
+ const b = F(E, Kn), f = zt(ba);
24014
24014
  Se(b, e.numeric, f);
24015
24015
  const v = zt(ba), y = zt();
24016
24016
  Se(v, t, v), Se(v, n, y), Se(y, t, v), Se(y, n, y), F(E, cn, v), F(f, cn, v);
24017
- const T = F(s, Wn), A = F(l, Wn), O = F(A, cn), k = F(O, cn);
24017
+ const T = F(s, Kn), A = F(l, Kn), O = F(A, cn), k = F(O, cn);
24018
24018
  Se(s, e.domain, a), F(s, ln, S), F(s, $t, g), Se(l, e.domain, a), F(l, ln, S), F(l, $t, g), Se(T, e.domain, v), F(T, cn, v), F(T, mo, v), Se(k, e.domain, v), Se(k, t, v), F(k, cn, v);
24019
24019
  const U = [
24020
24020
  [co, uo],
@@ -24208,7 +24208,7 @@ function eI(e) {
24208
24208
  }
24209
24209
  });
24210
24210
  }
24211
- function hr(e, t) {
24211
+ function _r(e, t) {
24212
24212
  const n = [
24213
24213
  "http",
24214
24214
  "https",
@@ -24262,7 +24262,7 @@ const tI = xt.create({
24262
24262
  rel: "noopener noreferrer nofollow",
24263
24263
  class: null
24264
24264
  },
24265
- isAllowedUri: (e, t) => !!hr(e, t.protocols),
24265
+ isAllowedUri: (e, t) => !!_r(e, t.protocols),
24266
24266
  validate: (e) => !!e,
24267
24267
  shouldAutoLink: (e) => !!e
24268
24268
  };
@@ -24293,7 +24293,7 @@ const tI = xt.create({
24293
24293
  getAttrs: (e) => {
24294
24294
  const t = e.getAttribute("href");
24295
24295
  return !t || !this.options.isAllowedUri(t, {
24296
- defaultValidate: (n) => !!hr(n, this.options.protocols),
24296
+ defaultValidate: (n) => !!_r(n, this.options.protocols),
24297
24297
  protocols: this.options.protocols,
24298
24298
  defaultProtocol: this.options.defaultProtocol
24299
24299
  }) ? !1 : null;
@@ -24303,7 +24303,7 @@ const tI = xt.create({
24303
24303
  },
24304
24304
  renderHTML({ HTMLAttributes: e }) {
24305
24305
  return this.options.isAllowedUri(e.href, {
24306
- defaultValidate: (t) => !!hr(t, this.options.protocols),
24306
+ defaultValidate: (t) => !!_r(t, this.options.protocols),
24307
24307
  protocols: this.options.protocols,
24308
24308
  defaultProtocol: this.options.defaultProtocol
24309
24309
  }) ? ["a", be(this.options.HTMLAttributes, e), 0] : [
@@ -24317,7 +24317,7 @@ const tI = xt.create({
24317
24317
  setLink: (e) => ({ chain: t }) => {
24318
24318
  const { href: n } = e;
24319
24319
  return this.options.isAllowedUri(n, {
24320
- defaultValidate: (r) => !!hr(r, this.options.protocols),
24320
+ defaultValidate: (r) => !!_r(r, this.options.protocols),
24321
24321
  protocols: this.options.protocols,
24322
24322
  defaultProtocol: this.options.defaultProtocol
24323
24323
  }) ? t().setMark(this.name, e).setMeta("preventAutolink", !0).run() : !1;
@@ -24325,7 +24325,7 @@ const tI = xt.create({
24325
24325
  toggleLink: (e) => ({ chain: t }) => {
24326
24326
  const { href: n } = e;
24327
24327
  return this.options.isAllowedUri(n, {
24328
- defaultValidate: (r) => !!hr(r, this.options.protocols),
24328
+ defaultValidate: (r) => !!_r(r, this.options.protocols),
24329
24329
  protocols: this.options.protocols,
24330
24330
  defaultProtocol: this.options.defaultProtocol
24331
24331
  }) ? t().toggleMark(this.name, e, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run() : !1;
@@ -24335,12 +24335,12 @@ const tI = xt.create({
24335
24335
  },
24336
24336
  addPasteRules() {
24337
24337
  return [
24338
- sr({
24338
+ lr({
24339
24339
  find: (e) => {
24340
24340
  const t = [];
24341
24341
  if (e) {
24342
24342
  const { protocols: n, defaultProtocol: r } = this.options, i = qf(e).filter((o) => o.isLink && this.options.isAllowedUri(o.value, {
24343
- defaultValidate: (a) => !!hr(a, n),
24343
+ defaultValidate: (a) => !!_r(a, n),
24344
24344
  protocols: n,
24345
24345
  defaultProtocol: r
24346
24346
  }));
@@ -24370,7 +24370,7 @@ const tI = xt.create({
24370
24370
  type: this.type,
24371
24371
  defaultProtocol: this.options.defaultProtocol,
24372
24372
  validate: (r) => this.options.isAllowedUri(r, {
24373
- defaultValidate: (i) => !!hr(i, t),
24373
+ defaultValidate: (i) => !!_r(i, t),
24374
24374
  protocols: t,
24375
24375
  defaultProtocol: n
24376
24376
  }),
@@ -24625,7 +24625,7 @@ let ah = class {
24625
24625
  function Wf(e) {
24626
24626
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
24627
24627
  }
24628
- function er(e, ...t) {
24628
+ function tr(e, ...t) {
24629
24629
  const n = /* @__PURE__ */ Object.create(null);
24630
24630
  for (const r in e)
24631
24631
  n[r] = e[r];
@@ -24842,7 +24842,7 @@ const EI = /\b\B/, Xf = "[a-zA-Z]\\w*", mu = "[a-zA-Z_]\\w*", Jf = "\\b\\d+(\\.\
24842
24842
  /.*\b/,
24843
24843
  e.binary,
24844
24844
  /\b.*/
24845
- )), er({
24845
+ )), tr({
24846
24846
  scope: "meta",
24847
24847
  begin: t,
24848
24848
  end: /$/,
@@ -24870,7 +24870,7 @@ const EI = /\b\B/, Xf = "[a-zA-Z]\\w*", mu = "[a-zA-Z_]\\w*", Jf = "\\b\\d+(\\.\
24870
24870
  }, CI = {
24871
24871
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
24872
24872
  }, dl = function(e, t, n = {}) {
24873
- const r = er(
24873
+ const r = tr(
24874
24874
  {
24875
24875
  scope: "comment",
24876
24876
  begin: e,
@@ -25225,7 +25225,7 @@ function QI(e) {
25225
25225
  }
25226
25226
  if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
25227
25227
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
25228
- return e.classNameAliases = er(e.classNameAliases || {}), o(
25228
+ return e.classNameAliases = tr(e.classNameAliases || {}), o(
25229
25229
  /** @type Mode */
25230
25230
  e
25231
25231
  );
@@ -25235,8 +25235,8 @@ function iE(e) {
25235
25235
  }
25236
25236
  function ZI(e) {
25237
25237
  return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
25238
- return er(e, { variants: null }, t);
25239
- })), e.cachedVariants ? e.cachedVariants : iE(e) ? er(e, { starts: e.starts ? er(e.starts) : null }) : Object.isFrozen(e) ? er(e) : e;
25238
+ return tr(e, { variants: null }, t);
25239
+ })), e.cachedVariants ? e.cachedVariants : iE(e) ? tr(e, { starts: e.starts ? tr(e.starts) : null }) : Object.isFrozen(e) ? tr(e) : e;
25240
25240
  }
25241
25241
  var XI = "11.10.0";
25242
25242
  let JI = class extends Error {
@@ -25244,7 +25244,7 @@ let JI = class extends Error {
25244
25244
  super(e), this.name = "HTMLInjectionError", this.html = t;
25245
25245
  }
25246
25246
  };
25247
- const tc = Wf, uh = er, ph = /* @__PURE__ */ Symbol("nomatch"), ex = 7, oE = function(e) {
25247
+ const tc = Wf, uh = tr, ph = /* @__PURE__ */ Symbol("nomatch"), ex = 7, oE = function(e) {
25248
25248
  const t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
25249
25249
  let i = !0;
25250
25250
  const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -25335,7 +25335,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, Y = N), L ===
25335
25335
  function j(w, P) {
25336
25336
  w !== "" && (oe.startScope(P), oe.addText(w), oe.endScope());
25337
25337
  }
25338
- function D(w, P) {
25338
+ function x(w, P) {
25339
25339
  let W = 1;
25340
25340
  const ue = P.length - 1;
25341
25341
  for (; W <= ue; ) {
@@ -25348,7 +25348,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, Y = N), L ===
25348
25348
  }
25349
25349
  }
25350
25350
  function le(w, P) {
25351
- return w.scope && typeof w.scope == "string" && oe.openNode(he.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (j(ve, he.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), ve = "") : w.beginScope._multi && (D(w.beginScope, P), ve = "")), ie = Object.create(w, { parent: { value: ie } }), ie;
25351
+ return w.scope && typeof w.scope == "string" && oe.openNode(he.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (j(ve, he.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), ve = "") : w.beginScope._multi && (x(w.beginScope, P), ve = "")), ie = Object.create(w, { parent: { value: ie } }), ie;
25352
25352
  }
25353
25353
  function dt(w, P, W) {
25354
25354
  let ue = gI(w.endRe, W);
@@ -25381,7 +25381,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), X = C, Y = N), L ===
25381
25381
  if (!ue)
25382
25382
  return ph;
25383
25383
  const Me = ie;
25384
- ie.endScope && ie.endScope._wrap ? (V(), j(P, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (V(), D(ie.endScope, w)) : Me.skip ? ve += P : (Me.returnEnd || Me.excludeEnd || (ve += P), V(), Me.excludeEnd && (ve = P));
25384
+ ie.endScope && ie.endScope._wrap ? (V(), j(P, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (V(), x(ie.endScope, w)) : Me.skip ? ve += P : (Me.returnEnd || Me.excludeEnd || (ve += P), V(), Me.excludeEnd && (ve = P));
25385
25385
  do
25386
25386
  ie.scope && oe.closeNode(), !ie.skip && !ie.subLanguage && (We += ie.relevance), ie = ie.parent;
25387
25387
  while (ie !== ue.parent);
@@ -25930,7 +25930,7 @@ const sx = /^[`·]{3}([a-z]+)?[\s\n]$/, lx = /^[~~]{3}([a-z]+)?[\s\n]$/, cx =
25930
25930
  ...(e = this.parent) == null ? void 0 : e.call(this),
25931
25931
  addCodeComments: (t, n) => ({ editor: r }) => {
25932
25932
  const { view: { dispatch: i }, state: { tr: o } } = r;
25933
- return i(o.setSelection(re.create(r.state.doc, n)).deleteSelection()), lr.get(this.options.codeCommentsAi.model).chat(t.textContent, this.options.codeCommentsAi.prompt, new ns(r, {
25933
+ return i(o.setSelection(re.create(r.state.doc, n)).deleteSelection()), cr.get(this.options.codeCommentsAi.model).chat(t.textContent, this.options.codeCommentsAi.prompt, new ns(r, {
25934
25934
  markdownParseEnable: !0,
25935
25935
  useMarkdownTextOnly: !0
25936
25936
  })), !0;
@@ -25938,7 +25938,7 @@ const sx = /^[`·]{3}([a-z]+)?[\s\n]$/, lx = /^[~~]{3}([a-z]+)?[\s\n]$/, cx =
25938
25938
  addCodeExplain: (t, n) => ({ editor: r }) => {
25939
25939
  const { view: { dispatch: i }, state: { tr: o } } = r, a = r.state.doc.nodeSize;
25940
25940
  a <= n + t.nodeSize + 2 ? (r.commands.insertContentAt(n + t.nodeSize + 1, "<p></p>"), i(o.setSelection(J.create(r.state.doc, a - 2)))) : i(o.setSelection(J.create(r.state.doc, n + t.nodeSize + 1)));
25941
- const s = lr.get(this.options.codeExplainAi.model);
25941
+ const s = cr.get(this.options.codeExplainAi.model);
25942
25942
  return s?.chat(t.textContent, this.options.codeExplainAi.prompt, new ns(r)), !0;
25943
25943
  },
25944
25944
  toggleCodeBlock: (t) => ({ commands: n, editor: r, chain: i }) => {
@@ -33584,7 +33584,7 @@ function gD(e) {
33584
33584
  const t = e[e.length - 1];
33585
33585
  return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
33586
33586
  }
33587
- function _r(...e) {
33587
+ function gr(...e) {
33588
33588
  return "(" + (gD(e).capture ? "" : "?:") + e.map((t) => lE(t)).join("|") + ")";
33589
33589
  }
33590
33590
  function fD(e) {
@@ -33795,7 +33795,7 @@ function fD(e) {
33795
33795
  }, m = function({ includeEqual: Q }) {
33796
33796
  let R;
33797
33797
  Q ? R = "!%&*+-/<=>@^|~?" : R = "!%&*+-/<>@^|~?";
33798
- const C = Array.from(R), N = Jt("[", ...C.map(_D), "]"), L = _r(N, /\./), Y = Jt(L, zi(L)), X = _r(
33798
+ const C = Array.from(R), N = Jt("[", ...C.map(_D), "]"), L = gr(N, /\./), Y = Jt(L, zi(L)), X = gr(
33799
33799
  Jt(Y, L, "*"),
33800
33800
  // Matches at least 2 chars operators
33801
33801
  Jt(N, "+")
@@ -33803,7 +33803,7 @@ function fD(e) {
33803
33803
  );
33804
33804
  return {
33805
33805
  scope: "operator",
33806
- match: _r(
33806
+ match: gr(
33807
33807
  // symbolic operators:
33808
33808
  X,
33809
33809
  // other symbolic keywords:
@@ -33831,7 +33831,7 @@ function fD(e) {
33831
33831
  Jt(
33832
33832
  /\s*/,
33833
33833
  // optional space
33834
- _r(
33834
+ gr(
33835
33835
  // then either of:
33836
33836
  /\w/,
33837
33837
  // word
@@ -33858,7 +33858,7 @@ function fD(e) {
33858
33858
  // - return type annotations: let f f' = f' () : returnTypeAnnotation
33859
33859
  // - record fields definitions: { A : int \n B : string }
33860
33860
  end: zi(
33861
- _r(
33861
+ gr(
33862
33862
  /\n/,
33863
33863
  /=/
33864
33864
  )
@@ -33911,7 +33911,7 @@ function fD(e) {
33911
33911
  // preprocessor directives and fsi commands:
33912
33912
  begin: [
33913
33913
  /^\s*/,
33914
- Jt(/#/, _r(...r)),
33914
+ Jt(/#/, gr(...r)),
33915
33915
  /\b/
33916
33916
  ],
33917
33917
  beginScope: { 2: "meta" },
@@ -34004,7 +34004,7 @@ function fD(e) {
34004
34004
  scope: "string",
34005
34005
  match: Jt(
34006
34006
  /'/,
34007
- _r(
34007
+ gr(
34008
34008
  /[^\\']/,
34009
34009
  // either a single non escaped char...
34010
34010
  /\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/
@@ -71463,7 +71463,7 @@ function UL(e) {
71463
71463
  ...r,
71464
71464
  se
71465
71465
  ]
71466
- }, D = {
71466
+ }, x = {
71467
71467
  begin: bt(
71468
71468
  $i(ke(an, /\s*:/)),
71469
71469
  $i(ke(an, /\s+/, an, /\s*:/))
@@ -71485,7 +71485,7 @@ function UL(e) {
71485
71485
  end: /\)/,
71486
71486
  keywords: c,
71487
71487
  contains: [
71488
- D,
71488
+ x,
71489
71489
  ...r,
71490
71490
  ...d,
71491
71491
  ...g,
@@ -73257,7 +73257,7 @@ class Oh {
73257
73257
  function RE(e) {
73258
73258
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
73259
73259
  }
73260
- function tr(e, ...t) {
73260
+ function nr(e, ...t) {
73261
73261
  const n = /* @__PURE__ */ Object.create(null);
73262
73262
  for (const r in e)
73263
73263
  n[r] = e[r];
@@ -73475,7 +73475,7 @@ const r2 = /\b\B/, IE = "[a-zA-Z]\\w*", Eu = "[a-zA-Z_]\\w*", xE = "\\b\\d+(\\.\
73475
73475
  /.*\b/,
73476
73476
  e.binary,
73477
73477
  /\b.*/
73478
- )), tr({
73478
+ )), nr({
73479
73479
  scope: "meta",
73480
73480
  begin: t,
73481
73481
  end: /$/,
@@ -73503,7 +73503,7 @@ const r2 = /\b\B/, IE = "[a-zA-Z]\\w*", Eu = "[a-zA-Z_]\\w*", xE = "\\b\\d+(\\.\
73503
73503
  }, l2 = {
73504
73504
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
73505
73505
  }, ul = function(e, t, n = {}) {
73506
- const r = tr(
73506
+ const r = nr(
73507
73507
  {
73508
73508
  scope: "comment",
73509
73509
  begin: e,
@@ -73858,7 +73858,7 @@ function L2(e) {
73858
73858
  }
73859
73859
  if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
73860
73860
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
73861
- return e.classNameAliases = tr(e.classNameAliases || {}), o(
73861
+ return e.classNameAliases = nr(e.classNameAliases || {}), o(
73862
73862
  /** @type Mode */
73863
73863
  e
73864
73864
  );
@@ -73868,8 +73868,8 @@ function PE(e) {
73868
73868
  }
73869
73869
  function P2(e) {
73870
73870
  return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
73871
- return tr(e, { variants: null }, t);
73872
- })), e.cachedVariants ? e.cachedVariants : PE(e) ? tr(e, { starts: e.starts ? tr(e.starts) : null }) : Object.isFrozen(e) ? tr(e) : e;
73871
+ return nr(e, { variants: null }, t);
73872
+ })), e.cachedVariants ? e.cachedVariants : PE(e) ? nr(e, { starts: e.starts ? nr(e.starts) : null }) : Object.isFrozen(e) ? nr(e) : e;
73873
73873
  }
73874
73874
  var F2 = "11.11.1";
73875
73875
  class B2 extends Error {
@@ -73877,7 +73877,7 @@ class B2 extends Error {
73877
73877
  super(t), this.name = "HTMLInjectionError", this.html = n;
73878
73878
  }
73879
73879
  }
73880
- const ac = RE, Ih = tr, xh = /* @__PURE__ */ Symbol("nomatch"), U2 = 7, FE = function(e) {
73880
+ const ac = RE, Ih = nr, xh = /* @__PURE__ */ Symbol("nomatch"), U2 = 7, FE = function(e) {
73881
73881
  const t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
73882
73882
  let i = !0;
73883
73883
  const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -73980,7 +73980,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = R, L = C), N ===
73980
73980
  ue ? V(Me, ue) : (oe = Me, se(), oe = ""), P++;
73981
73981
  }
73982
73982
  }
73983
- function D(G, w) {
73983
+ function x(G, w) {
73984
73984
  return G.scope && typeof G.scope == "string" && Ae.openNode(je.classNameAliases[G.scope] || G.scope), G.beginScope && (G.beginScope._wrap ? (V(oe, je.classNameAliases[G.beginScope._wrap] || G.beginScope._wrap), oe = "") : G.beginScope._multi && (j(G.beginScope, w), oe = "")), te = Object.create(G, { parent: { value: te } }), te;
73985
73985
  }
73986
73986
  function le(G, w, P) {
@@ -74007,7 +74007,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = R, L = C), N ===
74007
74007
  for (const Me of ue)
74008
74008
  if (Me && (Me(G, W), W.isMatchIgnored))
74009
74009
  return dt(w);
74010
- return P.skip ? oe += w : (P.excludeBegin && (oe += w), ye(), !P.returnBegin && !P.excludeBegin && (oe = w)), D(P, G), P.returnBegin ? 0 : w.length;
74010
+ return P.skip ? oe += w : (P.excludeBegin && (oe += w), ye(), !P.returnBegin && !P.excludeBegin && (oe = w)), x(P, G), P.returnBegin ? 0 : w.length;
74011
74011
  }
74012
74012
  function Ht(G) {
74013
74013
  const w = G[0], P = C.substring(G.index), W = le(te, G, P);
@@ -74018,7 +74018,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = R, L = C), N ===
74018
74018
  do
74019
74019
  te.scope && Ae.closeNode(), !te.skip && !te.subLanguage && (ve += te.relevance), te = te.parent;
74020
74020
  while (te !== W.parent);
74021
- return W.starts && D(W.starts, G), ue.returnEnd ? 0 : w.length;
74021
+ return W.starts && x(W.starts, G), ue.returnEnd ? 0 : w.length;
74022
74022
  }
74023
74023
  function on() {
74024
74024
  const G = [];
@@ -74732,7 +74732,7 @@ class W2 {
74732
74732
  updateAtMouseUp: a = !1,
74733
74733
  shouldShow: s
74734
74734
  }) {
74735
- x(this, "editor"), x(this, "element"), x(this, "view"), x(this, "preventHide", !1), x(this, "tippy"), x(this, "tippyOptions"), x(this, "updateDelay"), x(this, "updateDebounceTimer"), x(this, "updateInMouseUp", !1), x(this, "shouldShow", ({
74735
+ D(this, "editor"), D(this, "element"), D(this, "view"), D(this, "preventHide", !1), D(this, "tippy"), D(this, "tippyOptions"), D(this, "updateDelay"), D(this, "updateDebounceTimer"), D(this, "updateInMouseUp", !1), D(this, "shouldShow", ({
74736
74736
  view: l,
74737
74737
  state: c,
74738
74738
  from: d,
@@ -74740,9 +74740,9 @@ class W2 {
74740
74740
  }) => {
74741
74741
  const { doc: p, selection: m } = c, { empty: h } = m, _ = !p.textBetween(d, u).length && Bd(c.selection), g = this.element.contains(document.activeElement);
74742
74742
  return !(!(l.hasFocus() || g) || h || _ || !this.editor.isEditable);
74743
- }), x(this, "mousedownHandler", () => {
74743
+ }), D(this, "mousedownHandler", () => {
74744
74744
  this.preventHide = !0;
74745
- }), x(this, "mouseupHandler", () => {
74745
+ }), D(this, "mouseupHandler", () => {
74746
74746
  setTimeout(() => {
74747
74747
  const { view: l } = this.editor, { state: c } = l, d = c.selection.from !== c.selection.to;
74748
74748
  if (this.updateDelay > 0 && d) {
@@ -74751,25 +74751,25 @@ class W2 {
74751
74751
  }
74752
74752
  this.updateHandler(l, !0, !0);
74753
74753
  });
74754
- }), x(this, "dragstartHandler", () => {
74754
+ }), D(this, "dragstartHandler", () => {
74755
74755
  this.hide();
74756
- }), x(this, "focusHandler", () => {
74756
+ }), D(this, "focusHandler", () => {
74757
74757
  setTimeout(() => this.update(this.editor.view));
74758
- }), x(this, "blurHandler", ({ event: l }) => {
74758
+ }), D(this, "blurHandler", ({ event: l }) => {
74759
74759
  var c;
74760
74760
  if (this.preventHide) {
74761
74761
  this.preventHide = !1;
74762
74762
  return;
74763
74763
  }
74764
74764
  l != null && l.relatedTarget && (c = this.element.parentNode) != null && c.contains(l.relatedTarget) || this.hide();
74765
- }), x(this, "tippyBlurHandler", (l) => {
74765
+ }), D(this, "tippyBlurHandler", (l) => {
74766
74766
  this.blurHandler({ event: l });
74767
- }), x(this, "handleDebouncedUpdate", (l, c) => {
74767
+ }), D(this, "handleDebouncedUpdate", (l, c) => {
74768
74768
  const d = !(c != null && c.selection.eq(l.state.selection)), u = !(c != null && c.doc.eq(l.state.doc));
74769
74769
  !d && !u || (this.updateDebounceTimer && clearTimeout(this.updateDebounceTimer), this.updateDebounceTimer = window.setTimeout(() => {
74770
74770
  this.updateHandler(l, d, u, c);
74771
74771
  }, this.updateDelay));
74772
- }), x(this, "updateHandler", (l, c, d, u) => {
74772
+ }), D(this, "updateHandler", (l, c, d, u) => {
74773
74773
  var p, m, h;
74774
74774
  const { state: _, composing: g } = l, { selection: S } = _;
74775
74775
  if (g || !c && !d)
@@ -74858,7 +74858,7 @@ const K2 = (e) => new we({
74858
74858
  });
74859
74859
  class pl extends HTMLElement {
74860
74860
  constructor() {
74861
- super(), x(this, "editor"), x(this, "items", []), x(this, "tippyInstance"), x(this, "activeOnClick", !0);
74861
+ super(), D(this, "editor"), D(this, "items", []), D(this, "tippyInstance"), D(this, "activeOnClick", !0);
74862
74862
  }
74863
74863
  isActive(t) {
74864
74864
  var n;
@@ -74975,7 +74975,7 @@ const Q2 = {
74975
74975
  };
74976
74976
  class Su {
74977
74977
  constructor(t) {
74978
- x(this, "record", {});
74978
+ D(this, "record", {});
74979
74979
  for (let n of t)
74980
74980
  this.push(n);
74981
74981
  }
@@ -75139,7 +75139,7 @@ class lP extends pl {
75139
75139
  }
75140
75140
  const BE = class cd {
75141
75141
  constructor() {
75142
- x(this, "historyColors", []), x(this, "editor"), x(this, "onClose");
75142
+ D(this, "historyColors", []), D(this, "editor"), D(this, "onClose");
75143
75143
  const t = localStorage.getItem(cd.historyColorsKey);
75144
75144
  t && (this.historyColors = JSON.parse(t));
75145
75145
  }
@@ -75199,7 +75199,7 @@ const BE = class cd {
75199
75199
  this.historyColors = [t, ...this.historyColors.filter((n) => n !== t)].slice(0, 7), localStorage.setItem(cd.historyColorsKey, JSON.stringify(this.historyColors));
75200
75200
  }
75201
75201
  };
75202
- x(BE, "historyColorsKey", "cellBackgroundHistoryColors");
75202
+ D(BE, "historyColorsKey", "cellBackgroundHistoryColors");
75203
75203
  let sc = BE;
75204
75204
  class cP extends pl {
75205
75205
  constructor() {
@@ -75428,7 +75428,7 @@ const Ls = {
75428
75428
  };
75429
75429
  class UE {
75430
75430
  constructor(t, n) {
75431
- x(this, "delay"), x(this, "appending", !1), x(this, "isFinished", !1), x(this, "textarea"), x(this, "textQueue", []), this.delay = t, this.textarea = n;
75431
+ D(this, "delay"), D(this, "appending", !1), D(this, "isFinished", !1), D(this, "textarea"), D(this, "textQueue", []), this.delay = t, this.textarea = n;
75432
75432
  }
75433
75433
  appendText(t) {
75434
75434
  this.textQueue.push(t), this.processQueue();
@@ -75526,7 +75526,7 @@ const HE = (e) => {
75526
75526
  else {
75527
75527
  const o = t.querySelector("textarea");
75528
75528
  o.value = "";
75529
- const { selection: a, doc: s } = e.editor.state, l = s.textBetween(a.from, a.to), c = e.editor.aiEditor.options, d = lr.get((r = c.ai) == null ? void 0 : r.bubblePanelModel);
75529
+ const { selection: a, doc: s } = e.editor.state, l = s.textBetween(a.from, a.to), c = e.editor.aiEditor.options, d = cr.get((r = c.ai) == null ? void 0 : r.bubblePanelModel);
75530
75530
  if (d) {
75531
75531
  const u = new UE(30, o);
75532
75532
  d.chat(l, n, {
@@ -75683,7 +75683,7 @@ const HE = (e) => {
75683
75683
  const { selection: s, doc: l } = e.editor.state, c = l.textBetween(s.from, s.to);
75684
75684
  let d = ((a = (o = (i = (r = e.editor) == null ? void 0 : r.aiEditor.options.ai) == null ? void 0 : i.translate) == null ? void 0 : o.prompt) == null ? void 0 : a.call(o, t, c)) || `你是一个${t}翻译专家,精通多个国家的语言,请帮我把以下 <content> 标签里内容翻译为: ${t},并返回翻译后结果。您需要翻译的内容是:
75685
75685
  <content>${c}</content>`;
75686
- const u = lr.get("auto");
75686
+ const u = cr.get("auto");
75687
75687
  if (u) {
75688
75688
  const p = new UE(30, n);
75689
75689
  u.chat("", d, {
@@ -76455,7 +76455,7 @@ const BP = [
76455
76455
  if (a.onClick)
76456
76456
  a.onClick(o.event, r.aiEditor);
76457
76457
  else {
76458
- const s = FP(r) || "", l = a.model, c = lr.get(a.model);
76458
+ const s = FP(r) || "", l = a.model, c = cr.get(a.model);
76459
76459
  c ? c?.chat(s, a.prompt, new ns(r)) : console.error("Ai model config error. can not find the type:" + l + " at command menu");
76460
76460
  }
76461
76461
  } else
@@ -78390,10 +78390,10 @@ var et;
78390
78390
  e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
78391
78391
  })(et || (et = {}));
78392
78392
  const OF = 32;
78393
- var nr;
78393
+ var rr;
78394
78394
  (function(e) {
78395
78395
  e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
78396
- })(nr || (nr = {}));
78396
+ })(rr || (rr = {}));
78397
78397
  function dd(e) {
78398
78398
  return e >= et.ZERO && e <= et.NINE;
78399
78399
  }
@@ -78410,13 +78410,13 @@ var Je;
78410
78410
  (function(e) {
78411
78411
  e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
78412
78412
  })(Je || (Je = {}));
78413
- var Kn;
78413
+ var Qn;
78414
78414
  (function(e) {
78415
78415
  e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
78416
- })(Kn || (Kn = {}));
78416
+ })(Qn || (Qn = {}));
78417
78417
  class wF {
78418
78418
  constructor(t, n, r) {
78419
- this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Je.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Kn.Strict;
78419
+ this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Je.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Qn.Strict;
78420
78420
  }
78421
78421
  /** Resets the instance to make it reusable. */
78422
78422
  startEntity(t) {
@@ -78524,7 +78524,7 @@ class wF {
78524
78524
  return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
78525
78525
  if (t === et.SEMI)
78526
78526
  this.consumed += 1;
78527
- else if (this.decodeMode === Kn.Strict)
78527
+ else if (this.decodeMode === Qn.Strict)
78528
78528
  return 0;
78529
78529
  return this.emitCodePoint(TF(this.result), this.consumed), this.errors && (t !== et.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
78530
78530
  }
@@ -78539,18 +78539,18 @@ class wF {
78539
78539
  */
78540
78540
  stateNamedEntity(t, n) {
78541
78541
  const { decodeTree: r } = this;
78542
- let i = r[this.treeIndex], o = (i & nr.VALUE_LENGTH) >> 14;
78542
+ let i = r[this.treeIndex], o = (i & rr.VALUE_LENGTH) >> 14;
78543
78543
  for (; n < t.length; n++, this.excess++) {
78544
78544
  const a = t.charCodeAt(n);
78545
78545
  if (this.treeIndex = IF(r, i, this.treeIndex + Math.max(1, o), a), this.treeIndex < 0)
78546
78546
  return this.result === 0 || // If we are parsing an attribute
78547
- this.decodeMode === Kn.Attribute && // We shouldn't have consumed any characters after the entity,
78547
+ this.decodeMode === Qn.Attribute && // We shouldn't have consumed any characters after the entity,
78548
78548
  (o === 0 || // And there should be no invalid characters.
78549
78549
  AF(a)) ? 0 : this.emitNotTerminatedNamedEntity();
78550
- if (i = r[this.treeIndex], o = (i & nr.VALUE_LENGTH) >> 14, o !== 0) {
78550
+ if (i = r[this.treeIndex], o = (i & rr.VALUE_LENGTH) >> 14, o !== 0) {
78551
78551
  if (a === et.SEMI)
78552
78552
  return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
78553
- this.decodeMode !== Kn.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
78553
+ this.decodeMode !== Qn.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
78554
78554
  }
78555
78555
  }
78556
78556
  return -1;
@@ -78562,7 +78562,7 @@ class wF {
78562
78562
  */
78563
78563
  emitNotTerminatedNamedEntity() {
78564
78564
  var t;
78565
- const { result: n, decodeTree: r } = this, i = (r[n] & nr.VALUE_LENGTH) >> 14;
78565
+ const { result: n, decodeTree: r } = this, i = (r[n] & rr.VALUE_LENGTH) >> 14;
78566
78566
  return this.emitNamedEntityData(n, i, this.consumed), (t = this.errors) === null || t === void 0 || t.missingSemicolonAfterCharacterReference(), this.consumed;
78567
78567
  }
78568
78568
  /**
@@ -78576,7 +78576,7 @@ class wF {
78576
78576
  */
78577
78577
  emitNamedEntityData(t, n, r) {
78578
78578
  const { decodeTree: i } = this;
78579
- return this.emitCodePoint(n === 1 ? i[t] & ~nr.VALUE_LENGTH : i[t + 1], r), n === 3 && this.emitCodePoint(i[t + 2], r), r;
78579
+ return this.emitCodePoint(n === 1 ? i[t] & ~rr.VALUE_LENGTH : i[t + 1], r), n === 3 && this.emitCodePoint(i[t + 2], r), r;
78580
78580
  }
78581
78581
  /**
78582
78582
  * Signal to the parser that the end of the input was reached.
@@ -78589,7 +78589,7 @@ class wF {
78589
78589
  var t;
78590
78590
  switch (this.state) {
78591
78591
  case Je.NamedEntity:
78592
- return this.result !== 0 && (this.decodeMode !== Kn.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
78592
+ return this.result !== 0 && (this.decodeMode !== Qn.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
78593
78593
  case Je.NumericDecimal:
78594
78594
  return this.emitNumericEntity(0, 2);
78595
78595
  case Je.NumericHex:
@@ -78624,7 +78624,7 @@ function WE(e) {
78624
78624
  };
78625
78625
  }
78626
78626
  function IF(e, t, n, r) {
78627
- const i = (t & nr.BRANCH_LENGTH) >> 7, o = t & nr.JUMP_TABLE;
78627
+ const i = (t & rr.BRANCH_LENGTH) >> 7, o = t & rr.JUMP_TABLE;
78628
78628
  if (i === 0)
78629
78629
  return o !== 0 && r === o ? n : -1;
78630
78630
  if (o) {
@@ -78645,7 +78645,7 @@ function IF(e, t, n, r) {
78645
78645
  }
78646
78646
  const xF = WE(bF);
78647
78647
  WE(vF);
78648
- function KE(e, t = Kn.Legacy) {
78648
+ function KE(e, t = Qn.Legacy) {
78649
78649
  return xF(e, t);
78650
78650
  }
78651
78651
  function DF(e) {
@@ -78709,7 +78709,7 @@ const HF = /[&<>"]/, VF = /[&<>"]/g, GF = {
78709
78709
  function zF(e) {
78710
78710
  return GF[e];
78711
78711
  }
78712
- function cr(e) {
78712
+ function dr(e) {
78713
78713
  return HF.test(e) ? e.replace(VF, zF) : e;
78714
78714
  }
78715
78715
  const $F = /[.?*+^$[\]\\(){}|-]/g;
@@ -78792,7 +78792,7 @@ const qF = { mdurl: fF, ucmicro: SF }, jF = /* @__PURE__ */ Object.freeze(/* @__
78792
78792
  __proto__: null,
78793
78793
  arrayReplaceAt: QE,
78794
78794
  assign: hl,
78795
- escapeHtml: cr,
78795
+ escapeHtml: dr,
78796
78796
  escapeRE: YF,
78797
78797
  fromCodePoint: Fs,
78798
78798
  has: kF,
@@ -78906,11 +78906,11 @@ const ZF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
78906
78906
  }, Symbol.toStringTag, { value: "Module" })), yn = {};
78907
78907
  yn.code_inline = function(e, t, n, r, i) {
78908
78908
  const o = e[t];
78909
- return "<code" + i.renderAttrs(o) + ">" + cr(o.content) + "</code>";
78909
+ return "<code" + i.renderAttrs(o) + ">" + dr(o.content) + "</code>";
78910
78910
  };
78911
78911
  yn.code_block = function(e, t, n, r, i) {
78912
78912
  const o = e[t];
78913
- return "<pre" + i.renderAttrs(o) + "><code>" + cr(e[t].content) + `</code></pre>
78913
+ return "<pre" + i.renderAttrs(o) + "><code>" + dr(e[t].content) + `</code></pre>
78914
78914
  `;
78915
78915
  };
78916
78916
  yn.fence = function(e, t, n, r, i) {
@@ -78921,7 +78921,7 @@ yn.fence = function(e, t, n, r, i) {
78921
78921
  s = d[0], l = d.slice(2).join("");
78922
78922
  }
78923
78923
  let c;
78924
- if (n.highlight ? c = n.highlight(o.content, s, l) || cr(o.content) : c = cr(o.content), c.indexOf("<pre") === 0)
78924
+ if (n.highlight ? c = n.highlight(o.content, s, l) || dr(o.content) : c = dr(o.content), c.indexOf("<pre") === 0)
78925
78925
  return c + `
78926
78926
  `;
78927
78927
  if (a) {
@@ -78952,7 +78952,7 @@ yn.softbreak = function(e, t, n) {
78952
78952
  `;
78953
78953
  };
78954
78954
  yn.text = function(e, t) {
78955
- return cr(e[t].content);
78955
+ return dr(e[t].content);
78956
78956
  };
78957
78957
  yn.html_block = function(e, t) {
78958
78958
  return e[t].content;
@@ -78968,7 +78968,7 @@ ki.prototype.renderAttrs = function(e) {
78968
78968
  if (!e.attrs)
78969
78969
  return "";
78970
78970
  for (r = "", t = 0, n = e.attrs.length; t < n; t++)
78971
- r += " " + cr(e.attrs[t][0]) + '="' + cr(e.attrs[t][1]) + '"';
78971
+ r += " " + dr(e.attrs[t][0]) + '="' + dr(e.attrs[t][1]) + '"';
78972
78972
  return r;
78973
78973
  };
78974
78974
  ki.prototype.renderToken = function(e, t, n) {
@@ -80840,7 +80840,7 @@ const mi = 2147483647, hn = 36, Ru = 1, Uo = 26, NB = 38, RB = 700, oS = 72, aS
80840
80840
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
80841
80841
  "invalid-input": "Invalid input"
80842
80842
  }, mc = hn - Ru, _n = Math.floor, hc = String.fromCharCode;
80843
- function Yn(e) {
80843
+ function qn(e) {
80844
80844
  throw new RangeError(xB[e]);
80845
80845
  }
80846
80846
  function DB(e, t) {
@@ -80885,21 +80885,21 @@ const MB = (e) => String.fromCodePoint(...e), kB = function(e) {
80885
80885
  let r = 0, i = aS, o = oS, a = e.lastIndexOf(sS);
80886
80886
  a < 0 && (a = 0);
80887
80887
  for (let s = 0; s < a; ++s)
80888
- e.charCodeAt(s) >= 128 && Yn("not-basic"), t.push(e.charCodeAt(s));
80888
+ e.charCodeAt(s) >= 128 && qn("not-basic"), t.push(e.charCodeAt(s));
80889
80889
  for (let s = a > 0 ? a + 1 : 0; s < n; ) {
80890
80890
  const l = r;
80891
80891
  for (let d = 1, u = hn; ; u += hn) {
80892
- s >= n && Yn("invalid-input");
80892
+ s >= n && qn("invalid-input");
80893
80893
  const p = kB(e.charCodeAt(s++));
80894
- p >= hn && Yn("invalid-input"), p > _n((mi - r) / d) && Yn("overflow"), r += p * d;
80894
+ p >= hn && qn("invalid-input"), p > _n((mi - r) / d) && qn("overflow"), r += p * d;
80895
80895
  const m = u <= o ? Ru : u >= o + Uo ? Uo : u - o;
80896
80896
  if (p < m)
80897
80897
  break;
80898
80898
  const h = hn - m;
80899
- d > _n(mi / h) && Yn("overflow"), d *= h;
80899
+ d > _n(mi / h) && qn("overflow"), d *= h;
80900
80900
  }
80901
80901
  const c = t.length + 1;
80902
- o = dS(r - l, c, l == 0), _n(r / c) > mi - i && Yn("overflow"), i += _n(r / c), r %= c, t.splice(r++, 0, i);
80902
+ o = dS(r - l, c, l == 0), _n(r / c) > mi - i && qn("overflow"), i += _n(r / c), r %= c, t.splice(r++, 0, i);
80903
80903
  }
80904
80904
  return String.fromCodePoint(...t);
80905
80905
  }, pS = function(e) {
@@ -80916,9 +80916,9 @@ const MB = (e) => String.fromCodePoint(...e), kB = function(e) {
80916
80916
  for (const d of e)
80917
80917
  d >= r && d < l && (l = d);
80918
80918
  const c = s + 1;
80919
- l - r > _n((mi - i) / c) && Yn("overflow"), i += (l - r) * c, r = l;
80919
+ l - r > _n((mi - i) / c) && qn("overflow"), i += (l - r) * c, r = l;
80920
80920
  for (const d of e)
80921
- if (d < r && ++i > mi && Yn("overflow"), d === r) {
80921
+ if (d < r && ++i > mi && qn("overflow"), d === r) {
80922
80922
  let u = i;
80923
80923
  for (let p = hn; ; p += hn) {
80924
80924
  const m = p <= o ? Ru : p >= o + Uo ? Uo : p - o;
@@ -82218,7 +82218,7 @@ const V4 = {
82218
82218
  };
82219
82219
  class G4 extends R1 {
82220
82220
  constructor(t, n = {}) {
82221
- super(n), x(this, "aiEditor"), this.aiEditor = t;
82221
+ super(n), D(this, "aiEditor"), this.aiEditor = t;
82222
82222
  }
82223
82223
  parseHtml(t) {
82224
82224
  function n(r) {
@@ -82236,7 +82236,7 @@ class G4 extends R1 {
82236
82236
  }
82237
82237
  class z4 {
82238
82238
  constructor(t) {
82239
- x(this, "customLayout", !1), x(this, "innerEditor"), x(this, "container"), x(this, "header"), x(this, "mainEl"), x(this, "footer"), x(this, "options"), x(this, "eventComponents", []), this.options = { ...V4, ...t }, this.initI18nAndInnerEditor();
82239
+ D(this, "customLayout", !1), D(this, "innerEditor"), D(this, "container"), D(this, "header"), D(this, "mainEl"), D(this, "footer"), D(this, "options"), D(this, "eventComponents", []), this.options = { ...V4, ...t }, this.initI18nAndInnerEditor();
82240
82240
  }
82241
82241
  initI18nAndInnerEditor() {
82242
82242
  const t = this.options.i18n || {}, n = {
@@ -82314,7 +82314,7 @@ class z4 {
82314
82314
  onCreate(t) {
82315
82315
  this.innerEditor.view.dom.style.height = "calc(100% - 20px)", this.eventComponents.forEach((n) => {
82316
82316
  n.onCreate && n.onCreate(t, this.options);
82317
- }), (this.container.querySelector(".aie-container-header") || this.container).appendChild(this.header), (this.container.querySelector(".aie-container-main") || this.container).appendChild(this.mainEl), (this.container.querySelector(".aie-container-footer") || this.container).appendChild(this.footer), this.options.ai && lr.init(this.innerEditor, this.options.ai), this.options.onCreated && this.options.onCreated(this);
82317
+ }), (this.container.querySelector(".aie-container-header") || this.container).appendChild(this.header), (this.container.querySelector(".aie-container-main") || this.container).appendChild(this.mainEl), (this.container.querySelector(".aie-container-footer") || this.container).appendChild(this.footer), this.options.ai && cr.init(this.innerEditor, this.options.ai), this.options.onCreated && this.options.onCreated(this);
82318
82318
  }
82319
82319
  onTransaction(t) {
82320
82320
  var n, r;
@@ -83310,7 +83310,7 @@ const eU = { class: "map-draw-container" }, tU = {
83310
83310
  }, null, 8, ["data"])
83311
83311
  ]),
83312
83312
  default: ne(() => [
83313
- gr(u.$slots, "default", {}, void 0, !0)
83313
+ Un(u.$slots, "default", {}, void 0, !0)
83314
83314
  ]),
83315
83315
  _: 3
83316
83316
  }, 8, ["options"])
@@ -83390,7 +83390,7 @@ const eU = { class: "map-draw-container" }, tU = {
83390
83390
  onClick: d[0] || (d[0] = (u) => r.value = !0)
83391
83391
  }, {
83392
83392
  default: ne(() => [
83393
- de(B(Vn), null, {
83393
+ de(B(Gn), null, {
83394
83394
  default: ne(() => [
83395
83395
  de(B(XS))
83396
83396
  ]),
@@ -83525,7 +83525,7 @@ const eU = { class: "map-draw-container" }, tU = {
83525
83525
  round: ""
83526
83526
  }, {
83527
83527
  default: ne(() => [
83528
- de(B(Vn), null, {
83528
+ de(B(Gn), null, {
83529
83529
  default: ne(() => [
83530
83530
  de(B(ob))
83531
83531
  ]),
@@ -83857,7 +83857,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
83857
83857
  Ke.warning("请选择要删除的项");
83858
83858
  return;
83859
83859
  }
83860
- const j = V.map((D) => D[p.priKey || "id"]);
83860
+ const j = V.map((x) => x[p.priKey || "id"]);
83861
83861
  j.length > 0 && Pu.confirm("确定删除选中项吗?", "提示", {
83862
83862
  confirmButtonText: "确定",
83863
83863
  cancelButtonText: "取消",
@@ -83879,11 +83879,11 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
83879
83879
  Ke.error("查看失败,未获取到主键值");
83880
83880
  return;
83881
83881
  }
83882
- const D = await r.serverConfig?.view?.({
83882
+ const x = await r.serverConfig?.view?.({
83883
83883
  key: j
83884
83884
  });
83885
83885
  debugger;
83886
- D.success && D.data ? (v.data = { ...D.data }, b.value = !0) : Ke.error("查询失败");
83886
+ x.success && x.data ? (v.data = { ...x.data }, b.value = !0) : Ke.error("查询失败");
83887
83887
  } catch {
83888
83888
  Ke.error("查询失败");
83889
83889
  }
@@ -83906,10 +83906,10 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
83906
83906
  }, Y = () => {
83907
83907
  T.value = !0, l.value?.validate(async (V, j) => {
83908
83908
  if (V) {
83909
- let D = u.value === "add" ? r.serverConfig?.add : r.serverConfig?.update;
83910
- if (D)
83909
+ let x = u.value === "add" ? r.serverConfig?.add : r.serverConfig?.update;
83910
+ if (x)
83911
83911
  try {
83912
- const le = await D({
83912
+ const le = await x({
83913
83913
  params: {
83914
83914
  ...c.formatFormData(v.data)
83915
83915
  }
@@ -83930,8 +83930,8 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
83930
83930
  if (r.serverConfig?.init) {
83931
83931
  const V = await r.serverConfig.init();
83932
83932
  if (V.success && V.data) {
83933
- const j = V.data || {}, D = j.dataExt ? JSON.parse(j.dataExt) : {};
83934
- Object.assign(p, j || {}), Object.assign(m, D?.tableConfig || {}), Object.assign(_, D?.dialogConfig || {}), Object.assign(g?.columns || [], D?.editorConfig || {}), h.pageSize = m.defaultPageSize || h.pageSize, m.visibleOperationButtons = (m.operationButtons || []).map((le) => le.type), console.log("curdConfig", p), console.log("tableConfig", m), console.log("dialogConfig", _), console.log("editorConfig", g), S.searchFormWidth = m.searchFormWidth && m.searchFormWidth !== "" ? m.searchFormWidth : S.searchFormWidth, S.searchLabelWidth = m.searchLabelWidth && m.searchLabelWidth !== "" ? m.searchLabelWidth : S.searchLabelWidth, c.setConfig({ curdConfig: p, searchConfig: S, tableConfig: m, editorConfig: g }), await c.loadDictionary(), k.value = c.initVisibleColumns(), E.value = c.formatSearchConfigForm(), v.data = c.formatFormConfigData(), y.value = c.formatFormRules(), O.value = c.hasGeometryField(), await c.loadDictionary(), requestAnimationFrame(() => {
83933
+ const j = V.data || {}, x = j.dataExt ? JSON.parse(j.dataExt) : {};
83934
+ Object.assign(p, j || {}), Object.assign(m, x?.tableConfig || {}), Object.assign(_, x?.dialogConfig || {}), Object.assign(g?.columns || [], x?.editorConfig || {}), h.pageSize = m.defaultPageSize || h.pageSize, m.visibleOperationButtons = (m.operationButtons || []).map((le) => le.type), console.log("curdConfig", p), console.log("tableConfig", m), console.log("dialogConfig", _), console.log("editorConfig", g), S.searchFormWidth = m.searchFormWidth && m.searchFormWidth !== "" ? m.searchFormWidth : S.searchFormWidth, S.searchLabelWidth = m.searchLabelWidth && m.searchLabelWidth !== "" ? m.searchLabelWidth : S.searchLabelWidth, c.setConfig({ curdConfig: p, searchConfig: S, tableConfig: m, editorConfig: g }), await c.loadDictionary(), k.value = c.initVisibleColumns(), E.value = c.formatSearchConfigForm(), v.data = c.formatFormConfigData(), y.value = c.formatFormRules(), O.value = c.hasGeometryField(), await c.loadDictionary(), requestAnimationFrame(() => {
83935
83935
  d.value = o.value?.clientHeight + "px";
83936
83936
  }), setTimeout(() => {
83937
83937
  U();
@@ -83972,21 +83972,21 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
83972
83972
  "label-width": S.searchLabelWidth
83973
83973
  }, {
83974
83974
  default: ne(() => [
83975
- (z(!0), Ee(at, null, xn(S.columns, (D) => (z(), ge(B(Xi), {
83976
- key: D.columnProperty,
83977
- label: D.searchFormLabel || D.columnLabel,
83975
+ (z(!0), Ee(at, null, xn(S.columns, (x) => (z(), ge(B(Xi), {
83976
+ key: x.columnProperty,
83977
+ label: x.searchFormLabel || x.columnLabel,
83978
83978
  style: DS(`width: ${S.searchFormWidth}px;`)
83979
83979
  }, {
83980
83980
  default: ne(() => [
83981
- D.showMethod === "slot" ? gr(V.$slots, "search-" + D.columnProperty, {
83981
+ x.showMethod === "slot" ? Un(V.$slots, "search-" + x.columnProperty, {
83982
83982
  key: 0,
83983
- scope: { ...V.scope, searchForm: E.value, data: E.value[D.columnProperty] }
83983
+ scope: { ...V.scope, searchForm: E.value, data: E.value[x.columnProperty] }
83984
83984
  }, void 0, !0) : (z(), ge(Fu, {
83985
83985
  key: 1,
83986
- modelValue: E.value[D.columnProperty],
83987
- "onUpdate:modelValue": (le) => E.value[D.columnProperty] = le,
83988
- item: D,
83989
- dropdownOptions: B(c).getDictOptionsByCode(D.dictService)
83986
+ modelValue: E.value[x.columnProperty],
83987
+ "onUpdate:modelValue": (le) => E.value[x.columnProperty] = le,
83988
+ item: x,
83989
+ dropdownOptions: B(c).getDictOptionsByCode(x.dictService)
83990
83990
  }, null, 8, ["modelValue", "onUpdate:modelValue", "item", "dropdownOptions"]))
83991
83991
  ]),
83992
83992
  _: 2
@@ -84048,11 +84048,11 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84048
84048
  ])]),
84049
84049
  _: 1
84050
84050
  }, 8, ["size"])) : Qe("", !0),
84051
- gr(V.$slots, "table-actions", {}, void 0, !0)
84051
+ Un(V.$slots, "table-actions", {}, void 0, !0)
84052
84052
  ]),
84053
84053
  Pe("div", vU, [
84054
- gr(V.$slots, "table-actions-right", {}, void 0, !0),
84055
- p.webFunction.includes("export") ? (z(), ge(uU, {
84054
+ Un(V.$slots, "table-actions-right", {}, void 0, !0),
84055
+ e.permissions.export && p.webFunction.includes("export") ? (z(), ge(uU, {
84056
84056
  key: 0,
84057
84057
  columns: m.columns,
84058
84058
  "visible-columns": k.value,
@@ -84061,7 +84061,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84061
84061
  de(_U, {
84062
84062
  "table-columns": m.columns,
84063
84063
  "visible-columns": k.value,
84064
- "onUpdate:visibleColumns": j[0] || (j[0] = (D) => k.value = D),
84064
+ "onUpdate:visibleColumns": j[0] || (j[0] = (x) => k.value = x),
84065
84065
  "onUpdate:columns": ye
84066
84066
  }, null, 8, ["table-columns", "visible-columns"])
84067
84067
  ])
@@ -84095,52 +84095,52 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84095
84095
  width: "55",
84096
84096
  align: "center"
84097
84097
  })) : Qe("", !0),
84098
- (z(!0), Ee(at, null, xn(m.columns, (D) => (z(), Ee(at, {
84099
- key: D.prop
84098
+ (z(!0), Ee(at, null, xn(m.columns, (x) => (z(), Ee(at, {
84099
+ key: x.prop
84100
84100
  }, [
84101
- k.value.includes(D.columnProperty) ? (z(), ge(B(ta), {
84101
+ k.value.includes(x.columnProperty) ? (z(), ge(B(ta), {
84102
84102
  key: 0,
84103
- label: D.columnLabel,
84104
- width: (D.width || "") + "px",
84105
- fixed: D.fixed,
84106
- "show-overflow-tooltip": D.noWrap,
84107
- align: D.align,
84108
- "header-align": D.headerAlign
84103
+ label: x.columnLabel,
84104
+ width: (x.width || "") + "px",
84105
+ fixed: x.fixed,
84106
+ "show-overflow-tooltip": x.noWrap,
84107
+ align: x.align,
84108
+ "header-align": x.headerAlign
84109
84109
  }, {
84110
84110
  default: ne((le) => [
84111
- D.showMethod === "slot" ? gr(V.$slots, "table-column-" + D.columnProperty, {
84111
+ x.showMethod === "slot" ? Un(V.$slots, "table-column-" + x.columnProperty, {
84112
84112
  key: 0,
84113
84113
  scope: le
84114
- }, void 0, !0) : D.showMethod === "upload" ? (z(), ge(bl, {
84114
+ }, void 0, !0) : x.showMethod === "upload" ? (z(), ge(bl, {
84115
84115
  key: 1,
84116
- item: D,
84117
- modelValue: le.row[D.columnProperty],
84118
- "onUpdate:modelValue": (dt) => le.row[D.columnProperty] = dt,
84116
+ item: x,
84117
+ modelValue: le.row[x.columnProperty],
84118
+ "onUpdate:modelValue": (dt) => le.row[x.columnProperty] = dt,
84119
84119
  currentOperationType: "column",
84120
84120
  headers: e.serverConfig.headers(),
84121
84121
  download: e.serverConfig.download()
84122
- }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "headers", "download"])) : D.showMethod === "tag" ? (z(), ge(B(VS), {
84122
+ }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "headers", "download"])) : x.showMethod === "tag" ? (z(), ge(B(VS), {
84123
84123
  key: 2,
84124
- type: le?.row[D.columnProperty] === 1 || le?.row[D.columnProperty] === "1" ? "success" : D.tagType || "info"
84124
+ type: le?.row[x.columnProperty] === 1 || le?.row[x.columnProperty] === "1" ? "success" : x.tagType || "info"
84125
84125
  }, {
84126
84126
  default: ne(() => [
84127
84127
  St(hi(B(c).formatColumnValue(
84128
- D,
84129
- le?.row[D.columnProperty]
84128
+ x,
84129
+ le?.row[x.columnProperty]
84130
84130
  )), 1)
84131
84131
  ]),
84132
84132
  _: 2
84133
- }, 1032, ["type"])) : D.showMethod === "switch" ? (z(), ge(B(GS), {
84133
+ }, 1032, ["type"])) : x.showMethod === "switch" ? (z(), ge(B(GS), {
84134
84134
  key: 3,
84135
- modelValue: le.row[D.columnProperty],
84136
- "onUpdate:modelValue": (dt) => le.row[D.columnProperty] = dt,
84135
+ modelValue: le.row[x.columnProperty],
84136
+ "onUpdate:modelValue": (dt) => le.row[x.columnProperty] = dt,
84137
84137
  "active-value": "1",
84138
84138
  "inactive-value": "0",
84139
84139
  "active-text": "是",
84140
84140
  "inactive-text": "否",
84141
84141
  onChange: (dt) => X(le)
84142
84142
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (z(), Ee(at, { key: 4 }, [
84143
- St(hi(B(c).formatColumnValue(D, le?.row[D.columnProperty])), 1)
84143
+ St(hi(B(c).formatColumnValue(x, le?.row[x.columnProperty])), 1)
84144
84144
  ], 64))
84145
84145
  ]),
84146
84146
  _: 2
@@ -84152,13 +84152,13 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84152
84152
  width: m.operationWidth,
84153
84153
  label: "操作"
84154
84154
  }, {
84155
- default: ne((D) => [
84155
+ default: ne((x) => [
84156
84156
  m.visibleOperationButtons.includes("detail") ? (z(), ge(B(mt), {
84157
84157
  key: 0,
84158
84158
  type: "primary",
84159
84159
  plain: "",
84160
84160
  size: m.operationSize,
84161
- onClick: (le) => C(D.row)
84161
+ onClick: (le) => C(x.row)
84162
84162
  }, {
84163
84163
  default: ne(() => [...j[10] || (j[10] = [
84164
84164
  St("详情", -1)
@@ -84170,7 +84170,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84170
84170
  type: "success",
84171
84171
  plain: "",
84172
84172
  size: m.operationSize,
84173
- onClick: (le) => N(D.row)
84173
+ onClick: (le) => N(x.row)
84174
84174
  }, {
84175
84175
  default: ne(() => [...j[11] || (j[11] = [
84176
84176
  St("编辑", -1)
@@ -84182,14 +84182,14 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84182
84182
  type: "danger",
84183
84183
  plain: "",
84184
84184
  size: m.operationSize,
84185
- onClick: (le) => L(D.row)
84185
+ onClick: (le) => L(x.row)
84186
84186
  }, {
84187
84187
  default: ne(() => [...j[12] || (j[12] = [
84188
84188
  St("删除", -1)
84189
84189
  ])]),
84190
84190
  _: 1
84191
84191
  }, 8, ["size", "onClick"])) : Qe("", !0),
84192
- gr(V.$slots, "table-column-action", { scope: D }, void 0, !0)
84192
+ Un(V.$slots, "table-column-action", { scope: x }, void 0, !0)
84193
84193
  ]),
84194
84194
  _: 3
84195
84195
  }, 8, ["align", "width"])
@@ -84200,9 +84200,9 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84200
84200
  m.showPagination ? (z(), Ee("div", yU, [
84201
84201
  de(B(zS), {
84202
84202
  "current-page": h.currentPage,
84203
- "onUpdate:currentPage": j[1] || (j[1] = (D) => h.currentPage = D),
84203
+ "onUpdate:currentPage": j[1] || (j[1] = (x) => h.currentPage = x),
84204
84204
  "page-size": h.pageSize,
84205
- "onUpdate:pageSize": j[2] || (j[2] = (D) => h.pageSize = D),
84205
+ "onUpdate:pageSize": j[2] || (j[2] = (x) => h.pageSize = x),
84206
84206
  total: h.total,
84207
84207
  layout: "total, sizes, prev, pager, next",
84208
84208
  background: "",
@@ -84218,7 +84218,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84218
84218
  "close-on-press-escape": !1,
84219
84219
  width: _.formDialogWidth,
84220
84220
  modelValue: b.value,
84221
- "onUpdate:modelValue": j[5] || (j[5] = (D) => b.value = D),
84221
+ "onUpdate:modelValue": j[5] || (j[5] = (x) => b.value = x),
84222
84222
  "destroy-on-close": !0,
84223
84223
  draggable: "",
84224
84224
  "append-to-body": !0,
@@ -84239,7 +84239,8 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84239
84239
  size: "default",
84240
84240
  "label-width": _.labelWidth,
84241
84241
  "label-suffix": ":",
84242
- class: Zi({ "curd-form-details": u.value === "details" })
84242
+ class: Zi({ "curd-form-details": u.value === "details" }),
84243
+ disabled: u.value === "details"
84243
84244
  }, {
84244
84245
  default: ne(() => [
84245
84246
  de(B(Sl), null, {
@@ -84248,59 +84249,63 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84248
84249
  default: ne(() => [
84249
84250
  de(B(Sl), null, {
84250
84251
  default: ne(() => [
84251
- (z(!0), Ee(at, null, xn(g.formColumns, (D) => (z(), ge(B(na), {
84252
- key: D.columnProperty,
84253
- span: D.span || 12
84252
+ (z(!0), Ee(at, null, xn(g.formColumns, (x) => (z(), ge(B(na), {
84253
+ key: x.columnProperty,
84254
+ span: x.span || 12
84254
84255
  }, {
84255
84256
  default: ne(() => [
84256
84257
  de(B(Xi), {
84257
- label: D.columnLabel,
84258
- prop: D.columnProperty
84258
+ label: x.columnLabel,
84259
+ prop: x.columnProperty
84259
84260
  }, {
84260
84261
  default: ne(() => [
84261
84262
  u.value === "details" ? (z(), Ee(at, { key: 0 }, [
84262
- D.type === "upload" ? (z(), ge(bl, {
84263
+ x.type === "slot" ? Un(V.$slots, "form-" + x.columnProperty, {
84263
84264
  key: 0,
84264
- item: D,
84265
- modelValue: v.data[D.columnProperty],
84266
- "onUpdate:modelValue": (le) => v.data[D.columnProperty] = le,
84265
+ item: x,
84266
+ scope: { formData: v.data, data: v.data[x.columnProperty] }
84267
+ }, void 0, !0) : x.type === "upload" ? (z(), ge(bl, {
84268
+ key: 1,
84269
+ item: x,
84270
+ modelValue: v.data[x.columnProperty],
84271
+ "onUpdate:modelValue": (le) => v.data[x.columnProperty] = le,
84267
84272
  currentOperationType: u.value,
84268
84273
  headers: e.serverConfig.headers(),
84269
84274
  upload: e.serverConfig.upload(),
84270
84275
  download: e.serverConfig.download()
84271
84276
  }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : (z(), ge(j4, {
84272
- key: 1,
84273
- item: D,
84274
- modelValue: v.data[D.columnProperty],
84275
- "onUpdate:modelValue": (le) => v.data[D.columnProperty] = le,
84276
- dropdownOptions: B(c).getDictOptionsByColumnProperty(D.columnProperty)
84277
+ key: 2,
84278
+ item: x,
84279
+ modelValue: v.data[x.columnProperty],
84280
+ "onUpdate:modelValue": (le) => v.data[x.columnProperty] = le,
84281
+ dropdownOptions: B(c).getDictOptionsByColumnProperty(x.columnProperty)
84277
84282
  }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "dropdownOptions"]))
84278
84283
  ], 64)) : (z(), Ee(at, { key: 1 }, [
84279
- D.showMethod === "slot" ? gr(V.$slots, "form-" + D.columnProperty, {
84284
+ x.type === "slot" ? Un(V.$slots, "form-" + x.columnProperty, {
84280
84285
  key: 0,
84281
- item: D,
84282
- scope: { ...V.scope, formData: v.data, data: v.data[D.columnProperty] }
84283
- }, void 0, !0) : D.type === "upload" ? (z(), ge(bl, {
84286
+ item: x,
84287
+ scope: { formData: v.data, data: v.data[x.columnProperty] }
84288
+ }, void 0, !0) : x.type === "upload" ? (z(), ge(bl, {
84284
84289
  key: 1,
84285
- item: D,
84286
- modelValue: v.data[D.columnProperty],
84287
- "onUpdate:modelValue": (le) => v.data[D.columnProperty] = le,
84290
+ item: x,
84291
+ modelValue: v.data[x.columnProperty],
84292
+ "onUpdate:modelValue": (le) => v.data[x.columnProperty] = le,
84288
84293
  currentOperationType: u.value,
84289
84294
  headers: e.serverConfig.headers(),
84290
84295
  upload: e.serverConfig.upload(),
84291
84296
  download: e.serverConfig.download()
84292
- }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : D.type === "editor" ? (z(), ge(Y4, {
84297
+ }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType", "headers", "upload", "download"])) : x.type === "editor" ? (z(), ge(Y4, {
84293
84298
  key: 2,
84294
- item: D,
84295
- modelValue: v.data[D.columnProperty],
84296
- "onUpdate:modelValue": (le) => v.data[D.columnProperty] = le,
84299
+ item: x,
84300
+ modelValue: v.data[x.columnProperty],
84301
+ "onUpdate:modelValue": (le) => v.data[x.columnProperty] = le,
84297
84302
  currentOperationType: u.value
84298
84303
  }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "currentOperationType"])) : (z(), ge(Fu, {
84299
84304
  key: 3,
84300
- item: D,
84301
- modelValue: v.data[D.columnProperty],
84302
- "onUpdate:modelValue": (le) => v.data[D.columnProperty] = le,
84303
- dropdownOptions: B(c).getDictOptionsByColumnProperty(D.columnProperty),
84305
+ item: x,
84306
+ modelValue: v.data[x.columnProperty],
84307
+ "onUpdate:modelValue": (le) => v.data[x.columnProperty] = le,
84308
+ dropdownOptions: B(c).getDictOptionsByColumnProperty(x.columnProperty),
84304
84309
  currentOperationType: u.value
84305
84310
  }, null, 8, ["item", "modelValue", "onUpdate:modelValue", "dropdownOptions", "currentOperationType"]))
84306
84311
  ], 64))
@@ -84321,7 +84326,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84321
84326
  })
84322
84327
  ]),
84323
84328
  _: 3
84324
- }, 8, ["model", "rules", "label-width", "class"])
84329
+ }, 8, ["model", "rules", "label-width", "class", "disabled"])
84325
84330
  ]),
84326
84331
  _: 3
84327
84332
  }, 8, ["span"]),
@@ -84334,7 +84339,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84334
84339
  A.value ? (z(), ge(sU, {
84335
84340
  key: 0,
84336
84341
  modelValue: v.data.wktstr,
84337
- "onUpdate:modelValue": j[3] || (j[3] = (D) => v.data.wktstr = D),
84342
+ "onUpdate:modelValue": j[3] || (j[3] = (x) => v.data.wktstr = x),
84338
84343
  currentOperationType: u.value,
84339
84344
  mapViewData: e.mapViewData,
84340
84345
  geomType: p.geomType
@@ -84362,7 +84367,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84362
84367
  _: 1
84363
84368
  }, 8, ["loading"]),
84364
84369
  de(B(mt), {
84365
- onClick: j[4] || (j[4] = (D) => b.value = !1)
84370
+ onClick: j[4] || (j[4] = (x) => b.value = !1)
84366
84371
  }, {
84367
84372
  default: ne(() => [...j[14] || (j[14] = [
84368
84373
  St("取消", -1)
@@ -84375,7 +84380,7 @@ const fU = { class: "curd-container" }, EU = { class: "curd-search" }, SU = {
84375
84380
  ]), 1032, ["title", "width", "modelValue"])
84376
84381
  ], 64));
84377
84382
  }
84378
- }), AU = /* @__PURE__ */ Ii(TU, [["__scopeId", "data-v-2a77cfe9"]]);
84383
+ }), AU = /* @__PURE__ */ Ii(TU, [["__scopeId", "data-v-0ede513b"]]);
84379
84384
  export {
84380
84385
  AU as CurdForm,
84381
84386
  AU as default