act-plus 1.1.57 → 1.1.59

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
1
  import { defineAsyncComponent as O, inject as N, computed as ue, reactive as ne, ref as q, watch as de, resolveComponent as y, resolveDirective as re, openBlock as d, createBlock as m, withCtx as e, createElementVNode as se, createVNode as l, unref as o, createTextVNode as U, withDirectives as ie, toDisplayString as A, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
2
- import { _ as me, B as pe, c as ce, d as be, e as fe, f as _e, g as ge, h as Ve, i as ye, j as he } from "./index-5fa8f416.js";
2
+ import { _ as me, B as pe, c as ce, d as be, e as fe, f as _e, g as ge, h as Ve, i as ye, j as he } from "./index-60458519.js";
3
3
  import { useRoute as Ce } from "vue-router";
4
4
  import "element-plus";
5
5
  const ve = { class: "dialog-footer" }, Fe = {
@@ -11,7 +11,7 @@ const ve = { class: "dialog-footer" }, Fe = {
11
11
  },
12
12
  emits: ["update:visible", "refresh"],
13
13
  setup(x, { emit: D }) {
14
- const P = O(() => import("./index-1a086cf9.js")), E = O(() => import("./index-61ed059b.js")), W = Ce(), R = N("request"), I = D, T = x, Y = ue(() => W.params.key);
14
+ const P = O(() => import("./index-a182cf2c.js")), E = O(() => import("./index-4b578a5a.js")), W = Ce(), R = N("request"), I = D, T = x, Y = ue(() => W.params.key);
15
15
  let k = ne((() => ({
16
16
  btnLoading: !1
17
17
  }))());
@@ -8,7 +8,7 @@ const B = { class: "dialog-footer" }, A = {
8
8
  },
9
9
  emits: ["update:visible", "refresh", "update:modelValue"],
10
10
  setup(f, { emit: c }) {
11
- const v = _(() => import("./index-61ed059b.js")), n = c, o = f;
11
+ const v = _(() => import("./index-4b578a5a.js")), n = c, o = f;
12
12
  let t = C();
13
13
  y(
14
14
  () => o.visible,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as L, openBlock as d, createElementBlock as T, createElementVNode as _, ref as D, computed as oe, resolveComponent as F, resolveDirective as ne, withDirectives as ie, createBlock as U, mergeProps as se, unref as p, withCtx as z, renderSlot as j, toDisplayString as I, createCommentVNode as A, createVNode as $, createTextVNode as re, Fragment as ce, renderList as ue, normalizeClass as pe, nextTick as de } from "vue";
2
2
  import { ElNotification as E } from "element-plus";
3
- import { _ as me, u as _e, n as fe } from "./index-5fa8f416.js";
3
+ import { _ as me, u as _e, n as fe } from "./index-60458519.js";
4
4
  import "vue-router";
5
5
  /*! Element Plus Icons Vue v2.3.1 */
6
6
  var ge = /* @__PURE__ */ L({
@@ -1,5 +1,5 @@
1
1
  import { reactive as m, watch as b, resolveComponent as s, openBlock as v, createBlock as g, withCtx as o, createElementVNode as i, createVNode as x, createTextVNode as y, toDisplayString as h, unref as C } from "vue";
2
- import { _ as k, u as w } from "./index-5fa8f416.js";
2
+ import { _ as k, u as w } from "./index-60458519.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
@@ -1,5 +1,5 @@
1
- import { defineComponent as yd, shallowRef as qn, inject as xd, computed as Jh, toRaw as wd, onMounted as Sd, watch as pe, onBeforeUnmount as vd, h as kd, ref as kl, resolveComponent as Qd, resolveDirective as Pd, openBlock as Ql, createElementBlock as $d, withDirectives as Td, createBlock as Zd, withCtx as Cd, createTextVNode as Rd, toDisplayString as Ad, unref as Pl, createVNode as Md, normalizeStyle as Ed } from "vue";
2
- import { _ as Xd, u as Ld } from "./index-5fa8f416.js";
1
+ import { defineComponent as yd, shallowRef as qn, inject as xd, computed as Jh, toRaw as wd, onMounted as Sd, watch as le, onBeforeUnmount as vd, h as kd, ref as kl, resolveComponent as Qd, resolveDirective as Pd, openBlock as Ql, createElementBlock as $d, withDirectives as Td, createBlock as Zd, withCtx as Cd, createTextVNode as Rd, toDisplayString as Ad, unref as Pl, createVNode as Md, normalizeStyle as Ed } from "vue";
2
+ import { _ as Xd, u as Ld } from "./index-60458519.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  let Mr = [], tf = [];
@@ -1540,7 +1540,7 @@ const ff = /* @__PURE__ */ X.define(), Br = /* @__PURE__ */ X.define({
1540
1540
  }), cf = /* @__PURE__ */ X.define(), df = /* @__PURE__ */ X.define(), pf = /* @__PURE__ */ X.define(), Of = /* @__PURE__ */ X.define({
1541
1541
  combine: (s) => s.length ? s[0] : !1
1542
1542
  });
1543
- class de {
1543
+ class pe {
1544
1544
  /**
1545
1545
  @internal
1546
1546
  */
@@ -1559,7 +1559,7 @@ class Ud {
1559
1559
  Create an instance of this annotation.
1560
1560
  */
1561
1561
  of(t) {
1562
- return new de(this, t);
1562
+ return new pe(this, t);
1563
1563
  }
1564
1564
  }
1565
1565
  class Yd {
@@ -1699,10 +1699,10 @@ class it {
1699
1699
  return !!(e && (e == t || e.length > t.length && e.slice(0, t.length) == t && e[t.length] == "."));
1700
1700
  }
1701
1701
  }
1702
- it.time = /* @__PURE__ */ de.define();
1703
- it.userEvent = /* @__PURE__ */ de.define();
1704
- it.addToHistory = /* @__PURE__ */ de.define();
1705
- it.remote = /* @__PURE__ */ de.define();
1702
+ it.time = /* @__PURE__ */ pe.define();
1703
+ it.userEvent = /* @__PURE__ */ pe.define();
1704
+ it.addToHistory = /* @__PURE__ */ pe.define();
1705
+ it.remote = /* @__PURE__ */ pe.define();
1706
1706
  function Gd(s, t) {
1707
1707
  let e = [];
1708
1708
  for (let i = 0, n = 0; ; ) {
@@ -2242,7 +2242,7 @@ class N {
2242
2242
  return this;
2243
2243
  if (i && (e = e.slice().sort(Nr)), this.isEmpty)
2244
2244
  return e.length ? N.of(e) : this;
2245
- let l = new bf(this, null, -1).goto(0), a = 0, h = [], f = new fe();
2245
+ let l = new bf(this, null, -1).goto(0), a = 0, h = [], f = new ue();
2246
2246
  for (; l.value || a < e.length; )
2247
2247
  if (a < e.length && (l.from - e[a].from || l.startSide - e[a].value.startSide) >= 0) {
2248
2248
  let u = e[a++];
@@ -2363,7 +2363,7 @@ class N {
2363
2363
  cause the method to sort them.
2364
2364
  */
2365
2365
  static of(t, e = !1) {
2366
- let i = new fe();
2366
+ let i = new ue();
2367
2367
  for (let n of t instanceof Vr ? [t] : e ? ip(t) : t)
2368
2368
  i.add(n.from, n.to, n.value);
2369
2369
  return i.finish();
@@ -2393,7 +2393,7 @@ function ip(s) {
2393
2393
  return s;
2394
2394
  }
2395
2395
  N.empty.nextLayer = N.empty;
2396
- class fe {
2396
+ class ue {
2397
2397
  finishChunk(t) {
2398
2398
  this.chunks.push(new Do(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, t && (this.from = [], this.to = [], this.value = []);
2399
2399
  }
@@ -2408,7 +2408,7 @@ class fe {
2408
2408
  `value.startSide`) order.
2409
2409
  */
2410
2410
  add(t, e, i) {
2411
- this.addInner(t, e, i) || (this.nextLayer || (this.nextLayer = new fe())).add(t, e, i);
2411
+ this.addInner(t, e, i) || (this.nextLayer || (this.nextLayer = new ue())).add(t, e, i);
2412
2412
  }
2413
2413
  /**
2414
2414
  @internal
@@ -3430,7 +3430,7 @@ class qt extends z {
3430
3430
  return pp(this.dom, t, e);
3431
3431
  }
3432
3432
  }
3433
- class ue extends z {
3433
+ class ce extends z {
3434
3434
  constructor(t, e = [], i = 0) {
3435
3435
  super(), this.mark = t, this.children = e, this.length = i;
3436
3436
  for (let n of e)
@@ -3452,7 +3452,7 @@ class ue extends z {
3452
3452
  this.dom ? this.flags & 4 && this.setAttrs(this.dom) : this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))), super.sync(t, e);
3453
3453
  }
3454
3454
  merge(t, e, i, n, r, o) {
3455
- return i && (!(i instanceof ue && i.mark.eq(this.mark)) || t && r <= 0 || e < this.length && o <= 0) ? !1 : ($f(this, t, e, i ? i.children.slice() : [], r - 1, o - 1), this.markDirty(), !0);
3455
+ return i && (!(i instanceof ce && i.mark.eq(this.mark)) || t && r <= 0 || e < this.length && o <= 0) ? !1 : ($f(this, t, e, i ? i.children.slice() : [], r - 1, o - 1), this.markDirty(), !0);
3456
3456
  }
3457
3457
  split(t) {
3458
3458
  let e = [], i = 0, n = -1, r = 0;
@@ -3461,7 +3461,7 @@ class ue extends z {
3461
3461
  a > t && e.push(i < t ? l.split(t - i) : l), n < 0 && i >= t && (n = r), i = a, r++;
3462
3462
  }
3463
3463
  let o = this.length - t;
3464
- return this.length = t, n > -1 && (this.children.length = n, this.markDirty()), new ue(this.mark, e, o);
3464
+ return this.length = t, n > -1 && (this.children.length = n, this.markDirty()), new ce(this.mark, e, o);
3465
3465
  }
3466
3466
  domAtPos(t) {
3467
3467
  return Cf(this, t);
@@ -3621,7 +3621,7 @@ function Cf(s, t) {
3621
3621
  }
3622
3622
  function Rf(s, t, e) {
3623
3623
  let i, { children: n } = s;
3624
- e > 0 && t instanceof ue && n.length && (i = n[n.length - 1]) instanceof ue && i.mark.eq(t.mark) ? Rf(i, t.children[0], e - 1) : (n.push(t), t.setParent(s)), s.length += t.length;
3624
+ e > 0 && t instanceof ce && n.length && (i = n[n.length - 1]) instanceof ce && i.mark.eq(t.mark) ? Rf(i, t.children[0], e - 1) : (n.push(t), t.setParent(s)), s.length += t.length;
3625
3625
  }
3626
3626
  function Af(s, t, e) {
3627
3627
  let i = null, n = -1, r = null, o = -1;
@@ -3946,7 +3946,7 @@ class et extends z {
3946
3946
  var i;
3947
3947
  this.dom ? this.flags & 4 && (wf(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (to(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(t, e);
3948
3948
  let n = this.dom.lastChild;
3949
- for (; n && z.get(n) instanceof ue; )
3949
+ for (; n && z.get(n) instanceof ce; )
3950
3950
  n = n.lastChild;
3951
3951
  if (!n || !this.length || n.nodeName != "BR" && ((i = z.get(n)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!M.ios || !this.children.some((r) => r instanceof qt))) {
3952
3952
  let r = document.createElement("BR");
@@ -4002,12 +4002,12 @@ class et extends z {
4002
4002
  return null;
4003
4003
  }
4004
4004
  }
4005
- class he extends z {
4005
+ class fe extends z {
4006
4006
  constructor(t, e, i) {
4007
4007
  super(), this.widget = t, this.length = e, this.deco = i, this.breakAfter = 0, this.prevWidget = null;
4008
4008
  }
4009
4009
  merge(t, e, i, n, r, o) {
4010
- return i && (!(i instanceof he) || !this.widget.compare(i.widget) || t > 0 && r <= 0 || e < this.length && o <= 0) ? !1 : (this.length = t + (i ? i.length : 0) + (this.length - e), !0);
4010
+ return i && (!(i instanceof fe) || !this.widget.compare(i.widget) || t > 0 && r <= 0 || e < this.length && o <= 0) ? !1 : (this.length = t + (i ? i.length : 0) + (this.length - e), !0);
4011
4011
  }
4012
4012
  domAtPos(t) {
4013
4013
  return t == 0 ? pt.before(this.dom) : pt.after(this.dom, t == this.length);
@@ -4015,7 +4015,7 @@ class he extends z {
4015
4015
  split(t) {
4016
4016
  let e = this.length - t;
4017
4017
  this.length = t;
4018
- let i = new he(this.widget, e, this.deco);
4018
+ let i = new fe(this.widget, e, this.deco);
4019
4019
  return i.breakAfter = this.breakAfter, i;
4020
4020
  }
4021
4021
  get children() {
@@ -4031,7 +4031,7 @@ class he extends z {
4031
4031
  return null;
4032
4032
  }
4033
4033
  become(t) {
4034
- return t instanceof he && t.widget.constructor == this.widget.constructor ? (t.widget.compare(this.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = t.widget, this.length = t.length, this.deco = t.deco, this.breakAfter = t.breakAfter, !0) : !1;
4034
+ return t instanceof fe && t.widget.constructor == this.widget.constructor ? (t.widget.compare(this.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = t.widget, this.length = t.length, this.deco = t.deco, this.breakAfter = t.breakAfter, !0) : !1;
4035
4035
  }
4036
4036
  ignoreMutation() {
4037
4037
  return !0;
@@ -4089,7 +4089,7 @@ class Ei {
4089
4089
  if (this.content.length == 0)
4090
4090
  return !this.breakAtStart && this.doc.lineAt(this.pos).from != this.pos;
4091
4091
  let t = this.content[this.content.length - 1];
4092
- return !(t.breakAfter || t instanceof he && t.deco.endSide < 0);
4092
+ return !(t.breakAfter || t instanceof fe && t.deco.endSide < 0);
4093
4093
  }
4094
4094
  getLine() {
4095
4095
  return this.curLine || (this.content.push(this.curLine = new et()), this.atCursorPos = !0), this.curLine;
@@ -4101,7 +4101,7 @@ class Ei {
4101
4101
  this.flushBuffer(), this.curLine = null, this.content.push(t);
4102
4102
  }
4103
4103
  finish(t) {
4104
- this.pendingBuffer && t <= this.bufferMarks.length ? this.flushBuffer() : this.pendingBuffer = 0, !this.posCovered() && !(t && this.content.length && this.content[this.content.length - 1] instanceof he) && this.getLine();
4104
+ this.pendingBuffer && t <= this.bufferMarks.length ? this.flushBuffer() : this.pendingBuffer = 0, !this.posCovered() && !(t && this.content.length && this.content[this.content.length - 1] instanceof fe) && this.getLine();
4105
4105
  }
4106
4106
  buildText(t, e, i) {
4107
4107
  for (; t > 0; ) {
@@ -4137,7 +4137,7 @@ class Ei {
4137
4137
  let l = e - t;
4138
4138
  if (i instanceof ve)
4139
4139
  if (i.block)
4140
- i.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new he(i.widget || ai.block, l, i));
4140
+ i.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new fe(i.widget || ai.block, l, i));
4141
4141
  else {
4142
4142
  let a = be.create(i.widget || ai.inline, l, l ? 0 : i.startSide), h = this.atCursorPos && !a.isEditable && r <= n.length && (t < e || i.startSide > 0), f = !a.isEditable && (t < e || r > n.length || i.startSide <= 0), u = this.getLine();
4143
4143
  this.pendingBuffer == 2 && !h && !a.isEditable && (this.pendingBuffer = 0), this.flushBuffer(n), h && (u.append(gs(new li(1), n), r), r = n.length + Math.max(0, r - n.length)), u.append(gs(a, n), r), this.atCursorPos = f, this.pendingBuffer = f ? t < e || r > n.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = n.slice());
@@ -4153,7 +4153,7 @@ class Ei {
4153
4153
  }
4154
4154
  function gs(s, t) {
4155
4155
  for (let e of t)
4156
- s = new ue(e, [s], s.length);
4156
+ s = new ce(e, [s], s.length);
4157
4157
  return s;
4158
4158
  }
4159
4159
  class ai extends re {
@@ -4483,7 +4483,7 @@ function kt(s, t, e) {
4483
4483
  let i = s.facet(Vf);
4484
4484
  i.length ? i[0](t) : window.onerror ? window.onerror(String(t), e, void 0, void 0, t) : e ? console.error(e + ":", t) : console.error(t);
4485
4485
  }
4486
- const ae = /* @__PURE__ */ X.define({ combine: (s) => s.length ? s[0] : !0 });
4486
+ const he = /* @__PURE__ */ X.define({ combine: (s) => s.length ? s[0] : !0 });
4487
4487
  let Pp = 0;
4488
4488
  const Qi = /* @__PURE__ */ X.define();
4489
4489
  class tt {
@@ -4733,7 +4733,7 @@ class Ul extends z {
4733
4733
  let r = [];
4734
4734
  if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length)
4735
4735
  for (let o of this.children)
4736
- o instanceof he && o.widget instanceof eo && r.push(o.dom);
4736
+ o instanceof fe && o.widget instanceof eo && r.push(o.dom);
4737
4737
  n.updateGaps(r);
4738
4738
  }
4739
4739
  updateChildren(t, e, i) {
@@ -4765,7 +4765,7 @@ class Ul extends z {
4765
4765
  let e = new qt(t.text.nodeValue);
4766
4766
  e.flags |= 8;
4767
4767
  for (let { deco: n } of t.marks)
4768
- e = new ue(n, [e], e.length);
4768
+ e = new ce(n, [e], e.length);
4769
4769
  let i = new et();
4770
4770
  return i.append(e, 0), i;
4771
4771
  }
@@ -4785,7 +4785,7 @@ class Ul extends z {
4785
4785
  // Sync the DOM selection to this.state.selection
4786
4786
  updateSelection(t = !1, e = !1) {
4787
4787
  (t || !this.view.observer.selectionRange.focusNode) && this.view.observer.readSelectionRange();
4788
- let i = this.view.root.activeElement, n = i == this.dom, r = !n && !(this.view.state.facet(ae) || this.dom.tabIndex > -1) && Is(this.dom, this.view.observer.selectionRange) && !(i && this.dom.contains(i));
4788
+ let i = this.view.root.activeElement, n = i == this.dom, r = !n && !(this.view.state.facet(he) || this.dom.tabIndex > -1) && Is(this.dom, this.view.observer.selectionRange) && !(i && this.dom.contains(i));
4789
4789
  if (!(n || e || r))
4790
4790
  return;
4791
4791
  let o = this.forceSelection;
@@ -4897,7 +4897,7 @@ class Ul extends z {
4897
4897
  break;
4898
4898
  if (h <= t && (h < t || l.covers(-1)) && (a > t || l.covers(1)) && (!i || l instanceof et && !(i instanceof et && e >= 0)))
4899
4899
  i = l, n = h;
4900
- else if (i && h == t && a == t && l instanceof he && Math.abs(e) < 2) {
4900
+ else if (i && h == t && a == t && l instanceof fe && Math.abs(e) < 2) {
4901
4901
  if (l.deco.startSide < 0)
4902
4902
  break;
4903
4903
  o && (i = null);
@@ -5071,7 +5071,7 @@ function Tp(s, t, e) {
5071
5071
  let a = t.invertedDesc, h = new Dt(a.mapPos(r), a.mapPos(o), r, o), f = [];
5072
5072
  for (let u = n.parentNode; ; u = u.parentNode) {
5073
5073
  let c = z.get(u);
5074
- if (c instanceof ue)
5074
+ if (c instanceof ce)
5075
5075
  f.push({ node: u, deco: c.mark });
5076
5076
  else {
5077
5077
  if (c instanceof et || u.nodeName == "DIV" && u.parentNode == s.contentDOM)
@@ -5477,7 +5477,7 @@ function iu(s, t) {
5477
5477
  insert: V.of(t.text.slice(f.from, f.toB).split($i))
5478
5478
  });
5479
5479
  } else
5480
- i && (!s.hasFocus && s.state.facet(ae) || i.main.eq(n)) && (i = null);
5480
+ i && (!s.hasFocus && s.state.facet(he) || i.main.eq(n)) && (i = null);
5481
5481
  if (!e && !i)
5482
5482
  return !1;
5483
5483
  if (!e && t.typeOver && !n.empty && i && i.main.empty ? e = { from: n.from, to: n.to, insert: s.state.doc.slice(n.from, n.to) } : (M.mac || M.android) && e && e.from == e.to && e.from == n.head - 1 && /^\. ?$/.test(e.insert.toString()) && s.contentDOM.getAttribute("autocorrect") == "off" ? (i && e.insert.length == 2 && (i = T.single(i.main.anchor - 1, i.main.head - 1)), e = { from: e.from, to: e.to, insert: V.of([e.insert.toString().replace(".", " ")]) }) : e && e.from >= n.from && e.to <= n.to && (e.from != n.from || e.to != n.to) && n.to - n.from - (e.to - e.from) <= 4 ? e = {
@@ -6007,7 +6007,7 @@ Vt.copy = Vt.cut = (s, t) => {
6007
6007
  let r = ru ? null : t.clipboardData;
6008
6008
  return r ? (r.clearData(), r.setData("text/plain", e), !0) : (fO(s, e), !1);
6009
6009
  };
6010
- const au = /* @__PURE__ */ de.define();
6010
+ const au = /* @__PURE__ */ pe.define();
6011
6011
  function hu(s, t) {
6012
6012
  let e = [];
6013
6013
  for (let i of s.facet(If)) {
@@ -7199,7 +7199,7 @@ class PO {
7199
7199
  this.queue.push(i);
7200
7200
  (M.ie && M.ie_version <= 11 || M.ios && t.composing) && e.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
7201
7201
  }), window.EditContext && t.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
7202
- !(M.chrome && M.chrome_version < 126) && (this.editContext = new TO(t), t.state.facet(ae) && (t.contentDOM.editContext = this.editContext.editContext)), Hn && (this.onCharData = (e) => {
7202
+ !(M.chrome && M.chrome_version < 126) && (this.editContext = new TO(t), t.state.facet(he) && (t.contentDOM.editContext = this.editContext.editContext)), Hn && (this.onCharData = (e) => {
7203
7203
  this.queue.push({
7204
7204
  target: e.target,
7205
7205
  type: "characterData",
@@ -7243,7 +7243,7 @@ class PO {
7243
7243
  if (!this.readSelectionRange() || this.delayedAndroidKey)
7244
7244
  return;
7245
7245
  let { view: i } = this, n = this.selectionRange;
7246
- if (i.state.facet(ae) ? i.root.activeElement != this.dom : !Is(this.dom, n))
7246
+ if (i.state.facet(he) ? i.root.activeElement != this.dom : !Is(this.dom, n))
7247
7247
  return;
7248
7248
  let r = n.anchorNode && i.docView.nearest(n.anchorNode);
7249
7249
  if (r && r.ignoreEvent(t)) {
@@ -7401,7 +7401,7 @@ class PO {
7401
7401
  t.removeEventListener("scroll", this.onScroll), t.removeEventListener("resize", this.onResize), this.printQuery ? this.printQuery.removeEventListener ? this.printQuery.removeEventListener("change", this.onPrint) : this.printQuery.removeListener(this.onPrint) : t.removeEventListener("beforeprint", this.onPrint), t.document.removeEventListener("selectionchange", this.onSelectionChange);
7402
7402
  }
7403
7403
  update(t) {
7404
- this.editContext && (this.editContext.update(t), t.startState.facet(ae) != t.state.facet(ae) && (t.view.contentDOM.editContext = t.state.facet(ae) ? this.editContext.editContext : null));
7404
+ this.editContext && (this.editContext.update(t), t.startState.facet(he) != t.state.facet(he) && (t.view.contentDOM.editContext = t.state.facet(he) ? this.editContext.editContext : null));
7405
7405
  }
7406
7406
  destroy() {
7407
7407
  var t, e, i;
@@ -7847,7 +7847,7 @@ class A {
7847
7847
  autocapitalize: "off",
7848
7848
  writingsuggestions: "false",
7849
7849
  translate: "no",
7850
- contenteditable: this.state.facet(ae) ? "true" : "false",
7850
+ contenteditable: this.state.facet(he) ? "true" : "false",
7851
7851
  class: "cm-content",
7852
7852
  style: `${M.tabSize}: ${this.state.tabSize}`,
7853
7853
  role: "textbox",
@@ -8307,7 +8307,7 @@ A.focusChangeEffect = If;
8307
8307
  A.perLineTextDirection = zf;
8308
8308
  A.exceptionSink = Vf;
8309
8309
  A.updateListener = ro;
8310
- A.editable = ae;
8310
+ A.editable = he;
8311
8311
  A.mouseSelectionStyle = qf;
8312
8312
  A.dragMovesSelection = Wf;
8313
8313
  A.clickAddsSelectionRange = Bf;
@@ -8774,7 +8774,7 @@ class UO {
8774
8774
  plugin.
8775
8775
  */
8776
8776
  createDeco(t) {
8777
- let e = new fe(), i = e.add.bind(e);
8777
+ let e = new ue(), i = e.add.bind(e);
8778
8778
  for (let { from: n, to: r } of zO(t, this.maxLength))
8779
8779
  xa(t.state.doc, this.regexp, n, r, (o, l) => this.addMatch(l, t, o, i));
8780
8780
  return e.finish();
@@ -9632,7 +9632,7 @@ function Pa(s) {
9632
9632
  const Ni = /* @__PURE__ */ X.define({
9633
9633
  enables: vu
9634
9634
  });
9635
- class ce extends je {
9635
+ class de extends je {
9636
9636
  /**
9637
9637
  @internal
9638
9638
  */
@@ -9652,11 +9652,11 @@ class ce extends je {
9652
9652
  destroy(t) {
9653
9653
  }
9654
9654
  }
9655
- ce.prototype.elementClass = "";
9656
- ce.prototype.toDOM = void 0;
9657
- ce.prototype.mapMode = ut.TrackBefore;
9658
- ce.prototype.startSide = ce.prototype.endSide = -1;
9659
- ce.prototype.point = !0;
9655
+ de.prototype.elementClass = "";
9656
+ de.prototype.toDOM = void 0;
9657
+ de.prototype.mapMode = ut.TrackBefore;
9658
+ de.prototype.startSide = de.prototype.endSide = -1;
9659
+ de.prototype.point = !0;
9660
9660
  const Hs = /* @__PURE__ */ X.define(), vg = /* @__PURE__ */ X.define(), kg = {
9661
9661
  class: "",
9662
9662
  renderEmptyElements: !1,
@@ -9890,7 +9890,7 @@ const Zg = /* @__PURE__ */ X.define(), Cg = /* @__PURE__ */ X.define(), Fe = /*
9890
9890
  });
9891
9891
  }
9892
9892
  });
9893
- class tr extends ce {
9893
+ class tr extends de {
9894
9894
  constructor(t) {
9895
9895
  super(), this.number = t;
9896
9896
  }
@@ -9944,7 +9944,7 @@ function Za(s) {
9944
9944
  t = t * 10 + 9;
9945
9945
  return t;
9946
9946
  }
9947
- const Mg = /* @__PURE__ */ new class extends ce {
9947
+ const Mg = /* @__PURE__ */ new class extends de {
9948
9948
  constructor() {
9949
9949
  super(...arguments), this.elementClass = "cm-activeLineGutter";
9950
9950
  }
@@ -12857,7 +12857,7 @@ const km = {
12857
12857
  domEventHandlers: {},
12858
12858
  foldingChanged: () => !1
12859
12859
  };
12860
- class lr extends ce {
12860
+ class lr extends de {
12861
12861
  constructor(t, e) {
12862
12862
  super(), this.config = t, this.open = e;
12863
12863
  }
@@ -12880,7 +12880,7 @@ function Qm(s = {}) {
12880
12880
  (o.docChanged || o.viewportChanged || o.startState.facet(Qe) != o.state.facet(Qe) || o.startState.field(Ve, !1) != o.state.field(Ve, !1) || ot(o.startState) != ot(o.state) || t.foldingChanged(o)) && (this.markers = this.buildMarkers(o.view));
12881
12881
  }
12882
12882
  buildMarkers(o) {
12883
- let l = new fe();
12883
+ let l = new ue();
12884
12884
  for (let a of o.viewportLineBlocks) {
12885
12885
  let h = mn(o.state, a.from, a.to) ? i : gn(o.state, a.from, a.to) ? e : null;
12886
12886
  h && l.add(a.from, a.from, h);
@@ -12986,7 +12986,7 @@ class $m {
12986
12986
  buildDeco(t, e) {
12987
12987
  if (!e || !this.tree.length)
12988
12988
  return L.none;
12989
- let i = new fe();
12989
+ let i = new ue();
12990
12990
  for (let { from: n, to: r } of t.visibleRanges)
12991
12991
  Fg(this.tree, e, (o, l, a) => {
12992
12992
  i.add(o, l, this.markCache[a] || (this.markCache[a] = L.mark({ class: a })));
@@ -13351,7 +13351,7 @@ function Fm(s, t, e = t.selection.ranges) {
13351
13351
  }
13352
13352
  return null;
13353
13353
  }
13354
- const ko = /* @__PURE__ */ de.define(), Hm = /* @__PURE__ */ de.define(), Km = /* @__PURE__ */ X.define(), Ju = /* @__PURE__ */ X.define({
13354
+ const ko = /* @__PURE__ */ pe.define(), Hm = /* @__PURE__ */ pe.define(), Km = /* @__PURE__ */ X.define(), Ju = /* @__PURE__ */ X.define({
13355
13355
  combine(s) {
13356
13356
  return ne(s, {
13357
13357
  minDepth: 100,
@@ -14517,7 +14517,7 @@ const _0 = /* @__PURE__ */ L.mark({ class: "cm-searchMatch" }), b0 = /* @__PURE_
14517
14517
  highlight({ query: s, panel: t }) {
14518
14518
  if (!t || !s.spec.valid)
14519
14519
  return L.none;
14520
- let { view: e } = this, i = new fe();
14520
+ let { view: e } = this, i = new ue();
14521
14521
  for (let n = 0, r = e.visibleRanges, o = r.length; n < o; n++) {
14522
14522
  let { from: l, to: a } = r[n];
14523
14523
  for (; n < o - 1 && a > r[n + 1].from - 2 * 250; )
@@ -14921,7 +14921,7 @@ function Vc(s, t) {
14921
14921
  let { source: i } = s, n = t && i[0] != "^", r = i[i.length - 1] != "$";
14922
14922
  return !n && !r ? s : new RegExp(`${n ? "^" : ""}(?:${i})${r ? "$" : ""}`, (e = s.flags) !== null && e !== void 0 ? e : s.ignoreCase ? "i" : "");
14923
14923
  }
14924
- const cl = /* @__PURE__ */ de.define();
14924
+ const cl = /* @__PURE__ */ pe.define();
14925
14925
  function Z0(s, t, e, i) {
14926
14926
  let { main: n } = s.selection, r = e - n.from, o = i - n.from;
14927
14927
  return Object.assign(Object.assign({}, s.changeByRange((l) => {
@@ -16161,7 +16161,7 @@ class Re {
16161
16161
  static init(t, e, i) {
16162
16162
  let n = t, r = i.facet(Hi).markerFilter;
16163
16163
  r && (n = r(n, i));
16164
- let o = t.slice().sort((u, c) => u.from - c.from || u.to - c.to), l = new fe(), a = [], h = 0;
16164
+ let o = t.slice().sort((u, c) => u.from - c.from || u.to - c.to), l = new ue(), a = [], h = 0;
16165
16165
  for (let u = 0; ; ) {
16166
16166
  let c = u == o.length ? null : o[u];
16167
16167
  if (!c && !a.length)
@@ -16700,35 +16700,35 @@ var Ib = Object.assign(Object.assign({}, Ae), sd), zb = yd({ name: "VueCodemirro
16700
16700
  _ === void 0 && (_ = {}), d(A.theme({ "&": Object.assign({}, _) }));
16701
16701
  } };
16702
16702
  }(n.value);
16703
- pe(function() {
16703
+ le(function() {
16704
16704
  return s.modelValue;
16705
16705
  }, function(h) {
16706
16706
  h !== a.getDoc() && a.setDoc(h);
16707
- }), pe(function() {
16707
+ }), le(function() {
16708
16708
  return s.extensions;
16709
16709
  }, function(h) {
16710
16710
  return a.reExtensions(h || []);
16711
- }, { immediate: !0 }), pe(function() {
16711
+ }, { immediate: !0 }), le(function() {
16712
16712
  return o.value.disabled;
16713
16713
  }, function(h) {
16714
16714
  return a.toggleDisabled(h);
16715
- }, { immediate: !0 }), pe(function() {
16715
+ }, { immediate: !0 }), le(function() {
16716
16716
  return o.value.indentWithTab;
16717
16717
  }, function(h) {
16718
16718
  return a.toggleIndentWithTab(h);
16719
- }, { immediate: !0 }), pe(function() {
16719
+ }, { immediate: !0 }), le(function() {
16720
16720
  return o.value.tabSize;
16721
16721
  }, function(h) {
16722
16722
  return a.setTabSize(h);
16723
- }, { immediate: !0 }), pe(function() {
16723
+ }, { immediate: !0 }), le(function() {
16724
16724
  return o.value.phrases;
16725
16725
  }, function(h) {
16726
16726
  return a.setPhrases(h || {});
16727
- }, { immediate: !0 }), pe(function() {
16727
+ }, { immediate: !0 }), le(function() {
16728
16728
  return o.value.placeholder;
16729
16729
  }, function(h) {
16730
16730
  return a.setPlaceholder(h);
16731
- }, { immediate: !0 }), pe(function() {
16731
+ }, { immediate: !0 }), le(function() {
16732
16732
  return o.value.style;
16733
16733
  }, function(h) {
16734
16734
  return a.setStyle(h);
@@ -17555,12 +17555,12 @@ class Kb {
17555
17555
  ); ; h += 3) {
17556
17556
  if (l[h] == 65535)
17557
17557
  if (l[h + 1] == 1)
17558
- h = le(l, h + 2);
17558
+ h = ae(l, h + 2);
17559
17559
  else {
17560
- n == 0 && l[h + 1] == 2 && (n = this.putAction(le(l, h + 2), e, i, n));
17560
+ n == 0 && l[h + 1] == 2 && (n = this.putAction(ae(l, h + 2), e, i, n));
17561
17561
  break;
17562
17562
  }
17563
- l[h] == e && (n = this.putAction(le(l, h + 1), e, i, n));
17563
+ l[h] == e && (n = this.putAction(ae(l, h + 1), e, i, n));
17564
17564
  }
17565
17565
  return n;
17566
17566
  }
@@ -17859,14 +17859,14 @@ class Tn extends Cu {
17859
17859
  ), o; ; r += 3) {
17860
17860
  if ((o = i[r]) == 65535)
17861
17861
  if (i[r + 1] == 1)
17862
- o = i[r = le(i, r + 2)];
17862
+ o = i[r = ae(i, r + 2)];
17863
17863
  else {
17864
17864
  if (i[r + 1] == 2)
17865
- return le(i, r + 2);
17865
+ return ae(i, r + 2);
17866
17866
  break;
17867
17867
  }
17868
17868
  if (o == e || o == 0)
17869
- return le(i, r + 1);
17869
+ return ae(i, r + 1);
17870
17870
  }
17871
17871
  return 0;
17872
17872
  }
@@ -17908,10 +17908,10 @@ class Tn extends Cu {
17908
17908
  ); n == null; r += 3) {
17909
17909
  if (this.data[r] == 65535)
17910
17910
  if (this.data[r + 1] == 1)
17911
- r = le(this.data, r + 2);
17911
+ r = ae(this.data, r + 2);
17912
17912
  else
17913
17913
  break;
17914
- n = e(le(this.data, r + 1));
17914
+ n = e(ae(this.data, r + 1));
17915
17915
  }
17916
17916
  return n;
17917
17917
  }
@@ -17928,7 +17928,7 @@ class Tn extends Cu {
17928
17928
  ); ; i += 3) {
17929
17929
  if (this.data[i] == 65535)
17930
17930
  if (this.data[i + 1] == 1)
17931
- i = le(this.data, i + 2);
17931
+ i = ae(this.data, i + 2);
17932
17932
  else
17933
17933
  break;
17934
17934
  if (!(this.data[i + 2] & 1)) {
@@ -18023,7 +18023,7 @@ class Tn extends Cu {
18023
18023
  return new Tn(t);
18024
18024
  }
18025
18025
  }
18026
- function le(s, t) {
18026
+ function ae(s, t) {
18027
18027
  return s[t] | s[t + 1] << 16;
18028
18028
  }
18029
18029
  function iy(s) {
@@ -20428,9 +20428,17 @@ const O1 = { class: "act-code-mirror" }, g1 = {
20428
20428
  const { t: e } = Ld(), i = t, n = s, r = Jh(() => ({
20429
20429
  width: typeof n.width == "string" ? n.width : n.width + "px",
20430
20430
  height: typeof n.height == "string" ? n.height : n.height + "px"
20431
- })), o = kl(!1), l = kl(n.modelValue), a = [qy(), i1], h = (u, c) => {
20431
+ })), o = kl(!1), l = kl(), a = [qy(), i1], h = (u, c) => {
20432
20432
  i("update:modelValue", c);
20433
- }, f = () => {
20433
+ };
20434
+ le(
20435
+ () => n.modelValue,
20436
+ (u, c) => {
20437
+ l.value = u;
20438
+ },
20439
+ { immediate: !0 }
20440
+ );
20441
+ const f = () => {
20434
20442
  o.value = !0;
20435
20443
  try {
20436
20444
  l.value = p1.js(l.value, { indent_size: 2 });
@@ -20469,7 +20477,7 @@ const O1 = { class: "act-code-mirror" }, g1 = {
20469
20477
  ]);
20470
20478
  };
20471
20479
  }
20472
- }, S1 = /* @__PURE__ */ Xd(g1, [["__scopeId", "data-v-d3c12061"]]);
20480
+ }, S1 = /* @__PURE__ */ Xd(g1, [["__scopeId", "data-v-451d513f"]]);
20473
20481
  export {
20474
20482
  S1 as default
20475
20483
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as N, watch as O, resolveComponent as u, resolveDirective as T, openBlock as l, createElementBlock as d, withDirectives as j, createBlock as i, mergeProps as D, withCtx as c, createTextVNode as K, toDisplayString as W, unref as f, Fragment as s, renderList as A, renderSlot as y, createCommentVNode as E, nextTick as w } from "vue";
2
- import { _ as H, u as U } from "./index-5fa8f416.js";
2
+ import { _ as H, u as U } from "./index-60458519.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const V = { class: "act-table" }, $ = {