yh-report 2.1.8 → 2.1.10

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.
@@ -3,7 +3,7 @@ import { ElMessageBox as zm, ElMessage as Qr, ElEmpty as Wm, ElDialog as Ef, ElF
3
3
  import { useRoute as qf, onBeforeRouteLeave as Fm } from "vue-router";
4
4
  import { useFullscreen as Hm } from "@vueuse/core";
5
5
  import { defineStore as Km, storeToRefs as Vt } from "pinia";
6
- import { b as Jm, s as eg, C as ce, F as Ze, r as tg, e as ig, f as ng, _ as sg, D as Yn, p as rg, h as Ph, i as Ps, j as wh, v as lg, k as Mf, l as og, m as ag, T as hg, n as ug, I as cg, o as fg } from "./index-33061eae.mjs";
6
+ import { b as Jm, s as eg, C as ce, F as Ze, r as tg, e as ig, f as ng, _ as sg, D as Yn, p as rg, h as Ph, i as Ps, j as wh, v as lg, k as Mf, l as og, m as ag, T as hg, n as ug, I as cg, o as fg } from "./index-7303acc4.mjs";
7
7
  import { cloneDeep as ot, set as di, get as dg } from "lodash-es";
8
8
  import "@/libs/api.request.js";
9
9
  import "echarts";
@@ -49,7 +49,7 @@ function Og(n) {
49
49
  });
50
50
  });
51
51
  }), C;
52
- }), h = pe(null), c = pe(!1), f = pe(null), d = pe(!1), O = pe([]), S = pe([]), m = pe(!1), p = pe(null), Q = pe(!1), Z = pe(null), k = pe({
52
+ }), h = pe(null), c = pe(!1), f = pe(null), d = pe(!1), p = pe([]), S = pe([]), m = pe(!1), O = pe(null), Q = pe(!1), Z = pe(null), k = pe({
53
53
  id: void 0,
54
54
  name: "",
55
55
  code: "",
@@ -116,10 +116,10 @@ function Og(n) {
116
116
  isOneCell: c,
117
117
  activeCell: f,
118
118
  allTextCell: d,
119
- activeCols: O,
119
+ activeCols: p,
120
120
  activeRows: S,
121
121
  isOneRow: m,
122
- activeRow: p,
122
+ activeRow: O,
123
123
  isOneCol: Q,
124
124
  activeCol: Z,
125
125
  prevActive: i,
@@ -203,7 +203,7 @@ const gl = {}, At = function() {
203
203
  bindDataLoop: !1
204
204
  };
205
205
  }
206
- function O(x) {
206
+ function p(x) {
207
207
  return o.value && a.value.length && a.value[x] ? {
208
208
  bindData: !!a.value[x].data,
209
209
  bindDataLoop: !!a.value[x].loop
@@ -230,7 +230,7 @@ const gl = {}, At = function() {
230
230
  var w, X;
231
231
  let x = ((w = o.value.rowConfig) == null ? void 0 : w.length) ?? 5, $ = ((X = o.value.colConfig) == null ? void 0 : X.length) ?? 10, P = e.index === i.value && Array.isArray(l.value) ? [...l.value] : [], C = [], g = [];
232
232
  for (let V = 0; V < $ + 1; V++) {
233
- const A = f(P, ce.COL, V), { bindData: I, bindDataLoop: W } = O(V - 1), j = A || !1;
233
+ const A = f(P, ce.COL, V), { bindData: I, bindDataLoop: W } = p(V - 1), j = A || !1;
234
234
  let he = {
235
235
  text: c(V),
236
236
  styleAttr: "",
@@ -271,7 +271,7 @@ const gl = {}, At = function() {
271
271
  A && (W.class += " active"), I.push(W);
272
272
  for (let fe = 0; fe < $; fe++) {
273
273
  const Qe = f(P, ce.CELL, fe, V);
274
- let { bindData: te, bindDataLoop: N } = O(fe), B = o.value.config && o.value.config[V] ? o.value.config[V][fe] : null;
274
+ let { bindData: te, bindDataLoop: N } = p(fe), B = o.value.config && o.value.config[V] ? o.value.config[V][fe] : null;
275
275
  if (B) {
276
276
  let q = "", T = "", U = ce.TEXT;
277
277
  if (B && B.type) {
@@ -326,7 +326,7 @@ const gl = {}, At = function() {
326
326
  }
327
327
  return C;
328
328
  }
329
- const p = Se(() => ot(S.value).map(($) => ($.cols = $.cols.filter((P) => P.rowSpan !== 0 && P.colSpan !== 0), $))), Q = (x) => {
329
+ const O = Se(() => ot(S.value).map(($) => ($.cols = $.cols.filter((P) => P.rowSpan !== 0 && P.colSpan !== 0), $))), Q = (x) => {
330
330
  r.value && (r.value.subReprotIndex = x);
331
331
  }, Z = (x) => {
332
332
  var $;
@@ -378,7 +378,7 @@ const gl = {}, At = function() {
378
378
  width: g == null ? void 0 : g.size
379
379
  }, null, 8, gg))), 256))
380
380
  ]),
381
- (D(!0), F(oe, null, Ue(b(p), ({ size: g, cols: w, bind: X, loop: V, hidden: A }, I) => (D(), F("tr", {
381
+ (D(!0), F(oe, null, Ue(b(O), ({ size: g, cols: w, bind: X, loop: V, hidden: A }, I) => (D(), F("tr", {
382
382
  class: Ei({
383
383
  hidden: A
384
384
  }),
@@ -532,7 +532,7 @@ const gl = {}, At = function() {
532
532
  C === "params" && h.value && Array.isArray(h.value.params) && h.value.params.splice(w, 1);
533
533
  }
534
534
  }
535
- function O($) {
535
+ function p($) {
536
536
  r.value = $, l.value = [];
537
537
  }
538
538
  const S = pe();
@@ -543,7 +543,7 @@ const gl = {}, At = function() {
543
543
  };
544
544
  e("choose", $);
545
545
  }
546
- function p() {
546
+ function O() {
547
547
  e("del", t.index);
548
548
  }
549
549
  const Q = br({
@@ -595,7 +595,7 @@ const gl = {}, At = function() {
595
595
  "data-source": "column",
596
596
  "data-target": "params",
597
597
  required: X.isNull,
598
- onClick: (A) => O(V),
598
+ onClick: (A) => p(V),
599
599
  "data-index": V,
600
600
  label: X.name
601
601
  }, {
@@ -648,7 +648,7 @@ const gl = {}, At = function() {
648
648
  }, 8, ["disabled"]),
649
649
  _(w, {
650
650
  type: "primary",
651
- onClick: p
651
+ onClick: O
652
652
  }, {
653
653
  default: y(() => [
654
654
  Yg
@@ -689,11 +689,11 @@ const gl = {}, At = function() {
689
689
  get() {
690
690
  return r.value.options[t.index];
691
691
  },
692
- set(O) {
693
- r.value.options[t.index] = O;
692
+ set(p) {
693
+ r.value.options[t.index] = p;
694
694
  }
695
695
  }), u = Se(() => {
696
- let O = a.value.widthUnit || "px", S = a.value.heightUnit || "px";
696
+ let p = a.value.widthUnit || "px", S = a.value.heightUnit || "px";
697
697
  if (a.value.isSuspend) {
698
698
  let m = {
699
699
  position: "absolute",
@@ -702,12 +702,12 @@ const gl = {}, At = function() {
702
702
  zIndex: 100,
703
703
  height: a.value.height + S
704
704
  };
705
- return O === "%" ? m.width = `calc( ${a.value.width}${O} - 10px)` : m.width = `${a.value.width - 10}${O}`, m;
705
+ return p === "%" ? m.width = `calc( ${a.value.width}${p} - 10px)` : m.width = `${a.value.width - 10}${p}`, m;
706
706
  } else {
707
707
  let m = {
708
708
  height: a.value.height + S
709
709
  };
710
- return O === "%" ? m.width = `calc( ${a.value.width}${O} - 10px)` : m.width = `${a.value.width - 10}${O}`, m;
710
+ return p === "%" ? m.width = `calc( ${a.value.width}${p} - 10px)` : m.width = `${a.value.width - 10}${p}`, m;
711
711
  }
712
712
  });
713
713
  function h() {
@@ -717,16 +717,16 @@ const gl = {}, At = function() {
717
717
  a.value && (a.value.isSuspend = !0, a.value.zIndex = 100, a.value.left = 0, a.value.top = 0);
718
718
  }
719
719
  function f() {
720
- let O = {
720
+ let p = {
721
721
  option: a.value,
722
722
  index: t.index
723
723
  };
724
- e("choose", O);
724
+ e("choose", p);
725
725
  }
726
726
  function d() {
727
727
  e("del", t.index);
728
728
  }
729
- return (O, S) => {
729
+ return (p, S) => {
730
730
  const m = Oe("el-button");
731
731
  return D(), F("div", {
732
732
  class: Ei(["yh-statement-table report-drop-target", { active: t.index === b(s), suspend: b(a).isSuspend }]),
@@ -735,7 +735,7 @@ const gl = {}, At = function() {
735
735
  "data-index": t.index,
736
736
  style: Gt(b(u))
737
737
  }, [
738
- sr(O.$slots, "default"),
738
+ sr(p.$slots, "default"),
739
739
  M("div", Lg, [
740
740
  b(a).isSuspend ? (D(), F(oe, { key: 0 }, [
741
741
  _(m, {
@@ -775,7 +775,7 @@ const gl = {}, At = function() {
775
775
  _(m, {
776
776
  type: "primary",
777
777
  disabled: t.index === 0,
778
- onClick: S[0] || (S[0] = (p) => b(l)(t.index))
778
+ onClick: S[0] || (S[0] = (O) => b(l)(t.index))
779
779
  }, {
780
780
  default: y(() => [
781
781
  Ng
@@ -785,7 +785,7 @@ const gl = {}, At = function() {
785
785
  _(m, {
786
786
  type: "primary",
787
787
  disabled: t.index >= b(r).options.length - 1,
788
- onClick: S[1] || (S[1] = (p) => b(o)(t.index))
788
+ onClick: S[1] || (S[1] = (O) => b(o)(t.index))
789
789
  }, {
790
790
  default: y(() => [
791
791
  Bg
@@ -840,7 +840,7 @@ const gl = {}, At = function() {
840
840
  Z >= 0 && Z < h.value.length && (i.value = null, s.value = null, o.value = null, h.value.splice(Z, 1));
841
841
  }
842
842
  let d = null;
843
- function O(Z) {
843
+ function p(Z) {
844
844
  let k = Z.target.closest(".mouse-move-target");
845
845
  if (k) {
846
846
  let { area: R, index: x, row: $, col: P, table: C } = k.dataset;
@@ -954,18 +954,18 @@ const gl = {}, At = function() {
954
954
  }
955
955
  d = null;
956
956
  }
957
- function p() {
957
+ function O() {
958
958
  var Z;
959
- (Z = u.value) == null || Z.addEventListener("mousedown", O), window.addEventListener("mousemove", S), window.addEventListener("mouseup", m);
959
+ (Z = u.value) == null || Z.addEventListener("mousedown", p), window.addEventListener("mousemove", S), window.addEventListener("mouseup", m);
960
960
  }
961
961
  function Q() {
962
962
  var Z;
963
- (Z = u.value) == null || Z.removeEventListener("mousedown", O), window.removeEventListener("mousemove", S), window.removeEventListener("mouseup", m);
963
+ (Z = u.value) == null || Z.removeEventListener("mousedown", p), window.removeEventListener("mousemove", S), window.removeEventListener("mouseup", m);
964
964
  }
965
965
  return Af(() => {
966
- p();
966
+ O();
967
967
  }), zi(() => {
968
- p();
968
+ O();
969
969
  }), Jr(() => {
970
970
  Q();
971
971
  }), Yf(() => {
@@ -1703,8 +1703,8 @@ class Ut extends ve {
1703
1703
  i += d.lines;
1704
1704
  if (i < 32) {
1705
1705
  let d = [];
1706
- for (let O of e)
1707
- O.flatten(d);
1706
+ for (let p of e)
1707
+ p.flatten(d);
1708
1708
  return new Le(d, t);
1709
1709
  }
1710
1710
  let s = Math.max(
@@ -1713,12 +1713,12 @@ class Ut extends ve {
1713
1713
  /* Tree.BranchShift */
1714
1714
  ), r = s << 1, l = s >> 1, o = [], a = 0, u = -1, h = [];
1715
1715
  function c(d) {
1716
- let O;
1716
+ let p;
1717
1717
  if (d.lines > r && d instanceof Ut)
1718
1718
  for (let S of d.children)
1719
1719
  c(S);
1720
1720
  else
1721
- d.lines > l && (a > l || !a) ? (f(), o.push(d)) : d instanceof Le && a && (O = h[h.length - 1]) instanceof Le && d.lines + O.lines <= 32 ? (a += d.lines, u += d.length + 1, h[h.length - 1] = new Le(O.text.concat(d.text), O.length + 1 + d.length)) : (a + d.lines > s && f(), a += d.lines, u += d.length + 1, h.push(d));
1721
+ d.lines > l && (a > l || !a) ? (f(), o.push(d)) : d instanceof Le && a && (p = h[h.length - 1]) instanceof Le && d.lines + p.lines <= 32 ? (a += d.lines, u += d.length + 1, h[h.length - 1] = new Le(p.text.concat(d.text), p.length + 1 + d.length)) : (a + d.lines > s && f(), a += d.lines, u += d.length + 1, h.push(d));
1722
1722
  }
1723
1723
  function f() {
1724
1724
  a != 0 && (o.push(h.length == 1 ? h[0] : Ut.from(h, u)), u = -1, a = h.length = 0);
@@ -2162,10 +2162,10 @@ class Be extends jt {
2162
2162
  let { from: c, to: f = c, insert: d } = h;
2163
2163
  if (c > f || c < 0 || f > t)
2164
2164
  throw new RangeError(`Invalid change range ${c} to ${f} (in doc of length ${t})`);
2165
- let O = d ? typeof d == "string" ? ve.of(d.split(i || So)) : d : ve.empty, S = O.length;
2165
+ let p = d ? typeof d == "string" ? ve.of(d.split(i || So)) : d : ve.empty, S = p.length;
2166
2166
  if (c == f && S == 0)
2167
2167
  return;
2168
- c < l && a(), c > l && et(s, c - l, -1), et(s, f - c, S), gi(r, s, O), l = f;
2168
+ c < l && a(), c > l && et(s, c - l, -1), et(s, f - c, S), gi(r, s, p), l = f;
2169
2169
  }
2170
2170
  }
2171
2171
  return u(e), a(!o), o;
@@ -2624,9 +2624,9 @@ class lr {
2624
2624
  return 0;
2625
2625
  },
2626
2626
  reconfigure: (c, f) => {
2627
- let d, O = f.config.address[r];
2628
- if (O != null) {
2629
- let S = Sr(f, O);
2627
+ let d, p = f.config.address[r];
2628
+ if (p != null) {
2629
+ let S = Sr(f, p);
2630
2630
  if (this.dependencies.every((m) => m instanceof ie ? f.facet(m) === c.facet(m) : m instanceof je ? f.field(m, !1) == c.field(m, !1) : !0) || (o ? Xh(d = i(c), S, s) : s(d = i(c), S)))
2631
2631
  return c.values[l] = S, 0;
2632
2632
  } else
@@ -2819,21 +2819,21 @@ class yr {
2819
2819
  o[f.id] = u.length << 1, u.push((d) => f.slot(d));
2820
2820
  let h = i == null ? void 0 : i.config.facets;
2821
2821
  for (let f in r) {
2822
- let d = r[f], O = d[0].facet, S = h && h[f] || [];
2822
+ let d = r[f], p = d[0].facet, S = h && h[f] || [];
2823
2823
  if (d.every(
2824
2824
  (m) => m.type == 0
2825
2825
  /* Provider.Static */
2826
2826
  ))
2827
- if (o[O.id] = a.length << 1 | 1, wa(S, d))
2828
- a.push(i.facet(O));
2827
+ if (o[p.id] = a.length << 1 | 1, wa(S, d))
2828
+ a.push(i.facet(p));
2829
2829
  else {
2830
- let m = O.combine(d.map((p) => p.value));
2831
- a.push(i && O.compare(m, i.facet(O)) ? i.facet(O) : m);
2830
+ let m = p.combine(d.map((O) => O.value));
2831
+ a.push(i && p.compare(m, i.facet(p)) ? i.facet(p) : m);
2832
2832
  }
2833
2833
  else {
2834
2834
  for (let m of d)
2835
- m.type == 0 ? (o[m.id] = a.length << 1 | 1, a.push(m.value)) : (o[m.id] = u.length << 1, u.push((p) => m.dynamicSlot(p)));
2836
- o[O.id] = u.length << 1, u.push((m) => d_(m, O, d));
2835
+ m.type == 0 ? (o[m.id] = a.length << 1 | 1, a.push(m.value)) : (o[m.id] = u.length << 1, u.push((O) => m.dynamicSlot(O)));
2836
+ o[p.id] = u.length << 1, u.push((m) => d_(m, p, d));
2837
2837
  }
2838
2838
  }
2839
2839
  let c = u.map((f) => f(o));
@@ -3540,8 +3540,8 @@ class ka {
3540
3540
  for (let a = 0; a < this.value.length; a++) {
3541
3541
  let u = this.value[a], h = this.from[a] + e, c = this.to[a] + e, f, d;
3542
3542
  if (h == c) {
3543
- let O = t.mapPos(h, u.startSide, u.mapMode);
3544
- if (O == null || (f = d = O, u.startSide != u.endSide && (d = t.mapPos(h, u.endSide), d < f)))
3543
+ let p = t.mapPos(h, u.startSide, u.mapMode);
3544
+ if (p == null || (f = d = p, u.startSide != u.endSide && (d = t.mapPos(h, u.endSide), d < f)))
3545
3545
  continue;
3546
3546
  } else if (f = t.mapPos(h, u.startSide), d = t.mapPos(c, u.endSide), f > d || f == d && u.startSide > 0 && u.endSide <= 0)
3547
3547
  continue;
@@ -4064,19 +4064,19 @@ class yi {
4064
4064
  if (c && o == null)
4065
4065
  return a.push(l[0] + ";");
4066
4066
  for (let d in o) {
4067
- let O = o[d];
4067
+ let p = o[d];
4068
4068
  if (/&/.test(d))
4069
4069
  r(
4070
4070
  d.split(/,\s*/).map((S) => l.map((m) => S.replace(/&/, m))).reduce((S, m) => S.concat(m)),
4071
- O,
4071
+ p,
4072
4072
  a
4073
4073
  );
4074
- else if (O && typeof O == "object") {
4074
+ else if (p && typeof p == "object") {
4075
4075
  if (!c)
4076
4076
  throw new RangeError("The value of a property (" + d + ") should be a primitive value.");
4077
- r(s(d), O, h, f);
4077
+ r(s(d), p, h, f);
4078
4078
  } else
4079
- O != null && h.push(d.replace(/_.*/, "").replace(/[A-Z]/g, (S) => "-" + S.toLowerCase()) + ": " + O + ";");
4079
+ p != null && h.push(d.replace(/_.*/, "").replace(/[A-Z]/g, (S) => "-" + S.toLowerCase()) + ": " + p + ";");
4080
4080
  }
4081
4081
  (h.length || f) && a.push((i && !c && !u ? l.map(i) : l).join(", ") + " {" + h.join(" ") + "}");
4082
4082
  }
@@ -4328,7 +4328,7 @@ function C_(n, e, t, i, s, r, l, o) {
4328
4328
  let a = n.ownerDocument, u = a.defaultView || window;
4329
4329
  for (let h = n, c = !1; h && !c; )
4330
4330
  if (h.nodeType == 1) {
4331
- let f, d = h == a.body, O = 1, S = 1;
4331
+ let f, d = h == a.body, p = 1, S = 1;
4332
4332
  if (d)
4333
4333
  f = T_(u);
4334
4334
  else {
@@ -4337,39 +4337,39 @@ function C_(n, e, t, i, s, r, l, o) {
4337
4337
  continue;
4338
4338
  }
4339
4339
  let Q = h.getBoundingClientRect();
4340
- ({ scaleX: O, scaleY: S } = rd(h, Q)), f = {
4340
+ ({ scaleX: p, scaleY: S } = rd(h, Q)), f = {
4341
4341
  left: Q.left,
4342
- right: Q.left + h.clientWidth * O,
4342
+ right: Q.left + h.clientWidth * p,
4343
4343
  top: Q.top,
4344
4344
  bottom: Q.top + h.clientHeight * S
4345
4345
  };
4346
4346
  }
4347
- let m = 0, p = 0;
4347
+ let m = 0, O = 0;
4348
4348
  if (s == "nearest")
4349
- e.top < f.top ? (p = e.top - (f.top + l), t > 0 && e.bottom > f.bottom + p && (p = e.bottom - f.bottom + l)) : e.bottom > f.bottom && (p = e.bottom - f.bottom + l, t < 0 && e.top - p < f.top && (p = e.top - (f.top + l)));
4349
+ e.top < f.top ? (O = e.top - (f.top + l), t > 0 && e.bottom > f.bottom + O && (O = e.bottom - f.bottom + l)) : e.bottom > f.bottom && (O = e.bottom - f.bottom + l, t < 0 && e.top - O < f.top && (O = e.top - (f.top + l)));
4350
4350
  else {
4351
4351
  let Q = e.bottom - e.top, Z = f.bottom - f.top;
4352
- p = (s == "center" && Q <= Z ? e.top + Q / 2 - Z / 2 : s == "start" || s == "center" && t < 0 ? e.top - l : e.bottom - Z + l) - f.top;
4352
+ O = (s == "center" && Q <= Z ? e.top + Q / 2 - Z / 2 : s == "start" || s == "center" && t < 0 ? e.top - l : e.bottom - Z + l) - f.top;
4353
4353
  }
4354
- if (i == "nearest" ? e.left < f.left ? (m = e.left - (f.left + r), t > 0 && e.right > f.right + m && (m = e.right - f.right + r)) : e.right > f.right && (m = e.right - f.right + r, t < 0 && e.left < f.left + m && (m = e.left - (f.left + r))) : m = (i == "center" ? e.left + (e.right - e.left) / 2 - (f.right - f.left) / 2 : i == "start" == o ? e.left - r : e.right - (f.right - f.left) + r) - f.left, m || p)
4354
+ if (i == "nearest" ? e.left < f.left ? (m = e.left - (f.left + r), t > 0 && e.right > f.right + m && (m = e.right - f.right + r)) : e.right > f.right && (m = e.right - f.right + r, t < 0 && e.left < f.left + m && (m = e.left - (f.left + r))) : m = (i == "center" ? e.left + (e.right - e.left) / 2 - (f.right - f.left) / 2 : i == "start" == o ? e.left - r : e.right - (f.right - f.left) + r) - f.left, m || O)
4355
4355
  if (d)
4356
- u.scrollBy(m, p);
4356
+ u.scrollBy(m, O);
4357
4357
  else {
4358
4358
  let Q = 0, Z = 0;
4359
- if (p) {
4359
+ if (O) {
4360
4360
  let k = h.scrollTop;
4361
- h.scrollTop += p / S, Z = (h.scrollTop - k) * S;
4361
+ h.scrollTop += O / S, Z = (h.scrollTop - k) * S;
4362
4362
  }
4363
4363
  if (m) {
4364
4364
  let k = h.scrollLeft;
4365
- h.scrollLeft += m / O, Q = (h.scrollLeft - k) * O;
4365
+ h.scrollLeft += m / p, Q = (h.scrollLeft - k) * p;
4366
4366
  }
4367
4367
  e = {
4368
4368
  left: e.left - Q,
4369
4369
  top: e.top - Z,
4370
4370
  right: e.right - Q,
4371
4371
  bottom: e.bottom - Z
4372
- }, Q && Math.abs(Q - m) < 1 && (i = "nearest"), Z && Math.abs(Z - p) < 1 && (s = "nearest");
4372
+ }, Q && Math.abs(Q - m) < 1 && (i = "nearest"), Z && Math.abs(Z - O) < 1 && (s = "nearest");
4373
4373
  }
4374
4374
  if (d)
4375
4375
  break;
@@ -4989,8 +4989,8 @@ function _d(n, e, t) {
4989
4989
  let i = null, s = -1, r = null, l = -1;
4990
4990
  function o(u, h) {
4991
4991
  for (let c = 0, f = 0; c < u.children.length && f <= h; c++) {
4992
- let d = u.children[c], O = f + d.length;
4993
- O >= h && (d.children.length ? o(d, h - f) : (!r || r.isHidden && (t > 0 || q_(r, d))) && (O > h || f == O && d.getSide() > 0) ? (r = d, l = h - f) : (f < h || f == O && d.getSide() < 0 && !d.isHidden) && (i = d, s = h - f)), f = O;
4992
+ let d = u.children[c], p = f + d.length;
4993
+ p >= h && (d.children.length ? o(d, h - f) : (!r || r.isHidden && (t > 0 || q_(r, d))) && (p > h || f == p && d.getSide() > 0) ? (r = d, l = h - f) : (f < h || f == p && d.getSide() < 0 && !d.isHidden) && (i = d, s = h - f)), f = p;
4994
4994
  }
4995
4995
  }
4996
4996
  o(n, e);
@@ -5629,9 +5629,9 @@ function W_(n, e, t, i, s) {
5629
5629
  let d = u + 1;
5630
5630
  for (; d < o && Te[d] == 64; )
5631
5631
  d++;
5632
- let O = u && h == 8 || d < t && Te[d] == 8 ? c == 1 ? 1 : 8 : 256;
5632
+ let p = u && h == 8 || d < t && Te[d] == 8 ? c == 1 ? 1 : 8 : 256;
5633
5633
  for (let S = u; S < d; S++)
5634
- Te[S] = O;
5634
+ Te[S] = p;
5635
5635
  u = d - 1;
5636
5636
  } else
5637
5637
  f == 8 && c == 1 && (Te[u] = 1);
@@ -5643,13 +5643,13 @@ function N_(n, e, t, i, s) {
5643
5643
  let r = s == 1 ? 2 : 1;
5644
5644
  for (let l = 0, o = 0, a = 0; l <= i.length; l++) {
5645
5645
  let u = l ? i[l - 1].to : e, h = l < i.length ? i[l].from : t;
5646
- for (let c = u, f, d, O; c < h; c++)
5646
+ for (let c = u, f, d, p; c < h; c++)
5647
5647
  if (d = zo[f = n.charCodeAt(c)])
5648
5648
  if (d < 0) {
5649
5649
  for (let S = o - 3; S >= 0; S -= 3)
5650
5650
  if (qt[S + 1] == -d) {
5651
- let m = qt[S + 2], p = m & 2 ? s : m & 4 ? m & 1 ? r : s : 0;
5652
- p && (Te[c] = Te[qt[S]] = p), o = S;
5651
+ let m = qt[S + 2], O = m & 2 ? s : m & 4 ? m & 1 ? r : s : 0;
5652
+ O && (Te[c] = Te[qt[S]] = O), o = S;
5653
5653
  break;
5654
5654
  }
5655
5655
  } else {
@@ -5657,17 +5657,17 @@ function N_(n, e, t, i, s) {
5657
5657
  break;
5658
5658
  qt[o++] = c, qt[o++] = f, qt[o++] = a;
5659
5659
  }
5660
- else if ((O = Te[c]) == 2 || O == 1) {
5661
- let S = O == s;
5660
+ else if ((p = Te[c]) == 2 || p == 1) {
5661
+ let S = p == s;
5662
5662
  a = S ? 0 : 1;
5663
5663
  for (let m = o - 3; m >= 0; m -= 3) {
5664
- let p = qt[m + 2];
5665
- if (p & 2)
5664
+ let O = qt[m + 2];
5665
+ if (O & 2)
5666
5666
  break;
5667
5667
  if (S)
5668
5668
  qt[m + 2] |= 2;
5669
5669
  else {
5670
- if (p & 4)
5670
+ if (O & 4)
5671
5671
  break;
5672
5672
  qt[m + 2] |= 4;
5673
5673
  }
@@ -5692,8 +5692,8 @@ function B_(n, e, t, i) {
5692
5692
  else
5693
5693
  break;
5694
5694
  let c = r == 1, f = (h < e ? Te[h] : i) == 1, d = c == f ? c ? 1 : 2 : i;
5695
- for (let O = h, S = s, m = S ? t[S - 1].to : n; O > a; )
5696
- O == m && (O = t[--S].from, m = S ? t[S - 1].to : n), Te[--O] = d;
5695
+ for (let p = h, S = s, m = S ? t[S - 1].to : n; p > a; )
5696
+ p == m && (p = t[--S].from, m = S ? t[S - 1].to : n), Te[--p] = d;
5697
5697
  a = h;
5698
5698
  } else
5699
5699
  r = u, a++;
@@ -5709,19 +5709,19 @@ function Wo(n, e, t, i, s, r, l) {
5709
5709
  let S = Te[a];
5710
5710
  S != o && (h = !1, c = S == 16);
5711
5711
  }
5712
- let f = !h && o == 1 ? [] : null, d = h ? i : i + 1, O = a;
5712
+ let f = !h && o == 1 ? [] : null, d = h ? i : i + 1, p = a;
5713
5713
  e:
5714
5714
  for (; ; )
5715
- if (u < r.length && O == r[u].from) {
5715
+ if (u < r.length && p == r[u].from) {
5716
5716
  if (c)
5717
5717
  break e;
5718
5718
  let S = r[u];
5719
5719
  if (!h)
5720
- for (let m = S.to, p = u + 1; ; ) {
5720
+ for (let m = S.to, O = u + 1; ; ) {
5721
5721
  if (m == t)
5722
5722
  break e;
5723
- if (p < r.length && r[p].from == m)
5724
- m = r[p++].to;
5723
+ if (O < r.length && r[O].from == m)
5724
+ m = r[O++].to;
5725
5725
  else {
5726
5726
  if (Te[m] == o)
5727
5727
  break e;
@@ -5735,13 +5735,13 @@ function Wo(n, e, t, i, s, r, l) {
5735
5735
  let m = S.direction == Li != !(d % 2);
5736
5736
  No(n, m ? i + 1 : i, s, S.inner, S.from, S.to, l), a = S.to;
5737
5737
  }
5738
- O = S.to;
5738
+ p = S.to;
5739
5739
  } else {
5740
- if (O == t || (h ? Te[O] != o : Te[O] == o))
5740
+ if (p == t || (h ? Te[p] != o : Te[p] == o))
5741
5741
  break;
5742
- O++;
5742
+ p++;
5743
5743
  }
5744
- f ? Wo(n, a, O, i + 1, s, f, l) : a < O && l.push(new bi(a, O, d)), a = O;
5744
+ f ? Wo(n, a, p, i + 1, s, f, l) : a < p && l.push(new bi(a, p, d)), a = p;
5745
5745
  }
5746
5746
  else
5747
5747
  for (let a = t, u = r.length; a > e; ) {
@@ -5750,19 +5750,19 @@ function Wo(n, e, t, i, s, r, l) {
5750
5750
  let S = Te[a - 1];
5751
5751
  S != o && (h = !1, c = S == 16);
5752
5752
  }
5753
- let f = !h && o == 1 ? [] : null, d = h ? i : i + 1, O = a;
5753
+ let f = !h && o == 1 ? [] : null, d = h ? i : i + 1, p = a;
5754
5754
  e:
5755
5755
  for (; ; )
5756
- if (u && O == r[u - 1].to) {
5756
+ if (u && p == r[u - 1].to) {
5757
5757
  if (c)
5758
5758
  break e;
5759
5759
  let S = r[--u];
5760
5760
  if (!h)
5761
- for (let m = S.from, p = u; ; ) {
5761
+ for (let m = S.from, O = u; ; ) {
5762
5762
  if (m == e)
5763
5763
  break e;
5764
- if (p && r[p - 1].to == m)
5765
- m = r[--p].from;
5764
+ if (O && r[O - 1].to == m)
5765
+ m = r[--O].from;
5766
5766
  else {
5767
5767
  if (Te[m - 1] == o)
5768
5768
  break e;
@@ -5776,13 +5776,13 @@ function Wo(n, e, t, i, s, r, l) {
5776
5776
  let m = S.direction == Li != !(d % 2);
5777
5777
  No(n, m ? i + 1 : i, s, S.inner, S.from, S.to, l), a = S.from;
5778
5778
  }
5779
- O = S.from;
5779
+ p = S.from;
5780
5780
  } else {
5781
- if (O == e || (h ? Te[O - 1] != o : Te[O - 1] == o))
5781
+ if (p == e || (h ? Te[p - 1] != o : Te[p - 1] == o))
5782
5782
  break;
5783
- O--;
5783
+ p--;
5784
5784
  }
5785
- f ? Wo(n, O, a, i + 1, s, f, l) : O < a && l.push(new bi(O, a, d)), a = O;
5785
+ f ? Wo(n, p, a, i + 1, s, f, l) : p < a && l.push(new bi(p, a, d)), a = p;
5786
5786
  }
5787
5787
  }
5788
5788
  function No(n, e, t, i, s, r, l) {
@@ -5931,9 +5931,9 @@ function Bh(n, e) {
5931
5931
  span(r, l, o, a) {
5932
5932
  let u = r - e.from, h = l - e.from, c = s;
5933
5933
  for (let f = o.length - 1; f >= 0; f--, a--) {
5934
- let d = o[f].spec.bidiIsolate, O;
5935
- if (d == null && (d = j_(e.text, u, h)), a > 0 && c.length && (O = c[c.length - 1]).to == u && O.direction == d)
5936
- O.to = h, c = O.inner;
5934
+ let d = o[f].spec.bidiIsolate, p;
5935
+ if (d == null && (d = j_(e.text, u, h)), a > 0 && c.length && (p = c[c.length - 1]).to == u && p.direction == d)
5936
+ p.to = h, c = p.inner;
5937
5937
  else {
5938
5938
  let S = { from: u, to: h, direction: d, inner: [] };
5939
5939
  c.push(S), c = S.inner;
@@ -5978,8 +5978,8 @@ class $t {
5978
5978
  for (let s = 0, r = 0, l = 0, o = 0; ; s++) {
5979
5979
  let a = s == e.length ? null : e[s], u = l - o, h = a ? a.fromB : 1e9;
5980
5980
  for (; r < t.length && t[r] < h; ) {
5981
- let c = t[r], f = t[r + 1], d = Math.max(o, c), O = Math.min(h, f);
5982
- if (d <= O && new $t(d + u, O + u, d, O).addToSet(i), f > h)
5981
+ let c = t[r], f = t[r + 1], d = Math.max(o, c), p = Math.min(h, f);
5982
+ if (d <= p && new $t(d + u, p + u, d, p).addToSet(i), f > h)
5983
5983
  break;
5984
5984
  r += 2;
5985
5985
  }
@@ -6108,16 +6108,16 @@ class Ih extends Re {
6108
6108
  let o = l >= 0 ? s[l] : null;
6109
6109
  if (!o)
6110
6110
  break;
6111
- let { fromA: a, toA: u, fromB: h, toB: c } = o, f, d, O, S;
6111
+ let { fromA: a, toA: u, fromB: h, toB: c } = o, f, d, p, S;
6112
6112
  if (i && i.range.fromB < c && i.range.toB > h) {
6113
6113
  let k = In.build(this.view.state.doc, h, i.range.fromB, this.decorations, this.dynamicDecorationMap), R = In.build(this.view.state.doc, i.range.toB, c, this.decorations, this.dynamicDecorationMap);
6114
- d = k.breakAtStart, O = k.openStart, S = R.openEnd;
6114
+ d = k.breakAtStart, p = k.openStart, S = R.openEnd;
6115
6115
  let x = this.compositionView(i);
6116
6116
  R.breakAtStart ? x.breakAfter = 1 : R.content.length && x.merge(x.length, x.length, R.content[0], !1, R.openStart, 0) && (x.breakAfter = R.content[0].breakAfter, R.content.shift()), k.content.length && x.merge(0, 0, k.content[k.content.length - 1], !0, 0, k.openEnd) && k.content.pop(), f = k.content.concat(x).concat(R.content);
6117
6117
  } else
6118
- ({ content: f, breakAtStart: d, openStart: O, openEnd: S } = In.build(this.view.state.doc, h, c, this.decorations, this.dynamicDecorationMap));
6119
- let { i: m, off: p } = r.findPos(u, 1), { i: Q, off: Z } = r.findPos(a, -1);
6120
- fd(this, Q, Z, m, p, f, d, O, S);
6118
+ ({ content: f, breakAtStart: d, openStart: p, openEnd: S } = In.build(this.view.state.doc, h, c, this.decorations, this.dynamicDecorationMap));
6119
+ let { i: m, off: O } = r.findPos(u, 1), { i: Q, off: Z } = r.findPos(a, -1);
6120
+ fd(this, Q, Z, m, O, f, d, p, S);
6121
6121
  }
6122
6122
  i && this.fixCompositionDOM(i);
6123
6123
  }
@@ -6308,10 +6308,10 @@ class Ih extends Re {
6308
6308
  if (u >= i) {
6309
6309
  let d = c.dom.getBoundingClientRect();
6310
6310
  if (t.push(d.height), l) {
6311
- let O = c.dom.lastChild, S = O ? es(O) : [];
6311
+ let p = c.dom.lastChild, S = p ? es(p) : [];
6312
6312
  if (S.length) {
6313
- let m = S[S.length - 1], p = a ? m.right - d.left : d.right - m.left;
6314
- p > o && (o = p, this.minWidth = r, this.minWidthFrom = u, this.minWidthTo = f);
6313
+ let m = S[S.length - 1], O = a ? m.right - d.left : d.right - m.left;
6314
+ O > o && (o = O, this.minWidth = r, this.minWidthFrom = u, this.minWidthTo = f);
6315
6315
  }
6316
6316
  }
6317
6317
  }
@@ -6525,20 +6525,20 @@ function jh(n, e) {
6525
6525
  }
6526
6526
  function Io(n, e, t) {
6527
6527
  let i, s, r, l, o = !1, a, u, h, c;
6528
- for (let O = n.firstChild; O; O = O.nextSibling) {
6529
- let S = es(O);
6528
+ for (let p = n.firstChild; p; p = p.nextSibling) {
6529
+ let S = es(p);
6530
6530
  for (let m = 0; m < S.length; m++) {
6531
- let p = S[m];
6532
- s && vl(s, p) && (p = Gh(jh(p, s.bottom), s.top));
6533
- let Q = r0(e, p), Z = l0(t, p);
6531
+ let O = S[m];
6532
+ s && vl(s, O) && (O = Gh(jh(O, s.bottom), s.top));
6533
+ let Q = r0(e, O), Z = l0(t, O);
6534
6534
  if (Q == 0 && Z == 0)
6535
- return O.nodeType == 3 ? Fh(O, e, t) : Io(O, e, t);
6535
+ return p.nodeType == 3 ? Fh(p, e, t) : Io(p, e, t);
6536
6536
  if (!i || l > Z || l == Z && r > Q) {
6537
- i = O, s = p, r = Q, l = Z;
6538
- let k = Z ? t < p.top ? -1 : 1 : Q ? e < p.left ? -1 : 1 : 0;
6537
+ i = p, s = O, r = Q, l = Z;
6538
+ let k = Z ? t < O.top ? -1 : 1 : Q ? e < O.left ? -1 : 1 : 0;
6539
6539
  o = !k || (k > 0 ? m < S.length - 1 : m > 0);
6540
6540
  }
6541
- Q == 0 ? t > p.bottom && (!h || h.bottom < p.bottom) ? (a = O, h = p) : t < p.top && (!c || c.top > p.top) && (u = O, c = p) : h && vl(h, p) ? h = jh(h, p.bottom) : c && vl(c, p) && (c = Gh(c, p.top));
6541
+ Q == 0 ? t > O.bottom && (!h || h.bottom < O.bottom) ? (a = p, h = O) : t < O.top && (!c || c.top > O.top) && (u = p, c = O) : h && vl(h, O) ? h = jh(h, O.bottom) : c && vl(c, O) && (c = Gh(c, O.top));
6542
6542
  }
6543
6543
  }
6544
6544
  if (h && h.bottom >= t ? (i = a, s = h) : c && c.top <= t && (i = u, s = c), !i)
@@ -6590,33 +6590,33 @@ function Dd(n, e, t, i = -1) {
6590
6590
  return n.viewport.from == 0 ? 0 : t ? null : Hh(n, l, a, h, c);
6591
6591
  if (d > n.viewport.to)
6592
6592
  return n.viewport.to == n.state.doc.length ? n.state.doc.length : t ? null : Hh(n, l, a, h, c);
6593
- let O = n.dom.ownerDocument, S = n.root.elementFromPoint ? n.root : O, m = S.elementFromPoint(h, c);
6593
+ let p = n.dom.ownerDocument, S = n.root.elementFromPoint ? n.root : p, m = S.elementFromPoint(h, c);
6594
6594
  m && !n.contentDOM.contains(m) && (m = null), m || (h = Math.max(l.left + 1, Math.min(l.right - 1, h)), m = S.elementFromPoint(h, c), m && !n.contentDOM.contains(m) && (m = null));
6595
- let p, Q = -1;
6595
+ let O, Q = -1;
6596
6596
  if (m && ((s = n.docView.nearest(m)) === null || s === void 0 ? void 0 : s.isEditable) != !1) {
6597
- if (O.caretPositionFromPoint) {
6598
- let k = O.caretPositionFromPoint(h, c);
6599
- k && ({ offsetNode: p, offset: Q } = k);
6600
- } else if (O.caretRangeFromPoint) {
6601
- let k = O.caretRangeFromPoint(h, c);
6602
- k && ({ startContainer: p, startOffset: Q } = k, (!n.contentDOM.contains(p) || se.safari && o0(p, Q, h) || se.chrome && a0(p, Q, h)) && (p = void 0));
6597
+ if (p.caretPositionFromPoint) {
6598
+ let k = p.caretPositionFromPoint(h, c);
6599
+ k && ({ offsetNode: O, offset: Q } = k);
6600
+ } else if (p.caretRangeFromPoint) {
6601
+ let k = p.caretRangeFromPoint(h, c);
6602
+ k && ({ startContainer: O, startOffset: Q } = k, (!n.contentDOM.contains(O) || se.safari && o0(O, Q, h) || se.chrome && a0(O, Q, h)) && (O = void 0));
6603
6603
  }
6604
- p && (Q = Math.min(Ht(p), Q));
6604
+ O && (Q = Math.min(Ht(O), Q));
6605
6605
  }
6606
- if (!p || !n.docView.dom.contains(p)) {
6606
+ if (!O || !n.docView.dom.contains(O)) {
6607
6607
  let k = ze.find(n.docView, d);
6608
6608
  if (!k)
6609
6609
  return f > a.top + a.height / 2 ? a.to : a.from;
6610
- ({ node: p, offset: Q } = Io(k.dom, h, c));
6610
+ ({ node: O, offset: Q } = Io(k.dom, h, c));
6611
6611
  }
6612
- let Z = n.docView.nearest(p);
6612
+ let Z = n.docView.nearest(O);
6613
6613
  if (!Z)
6614
6614
  return null;
6615
6615
  if (Z.isWidget && ((r = Z.dom) === null || r === void 0 ? void 0 : r.nodeType) == 1) {
6616
6616
  let k = Z.dom.getBoundingClientRect();
6617
6617
  return e.y < k.top || e.y <= k.bottom && e.x <= (k.left + k.right) / 2 ? Z.posAtStart : Z.posAtEnd;
6618
6618
  } else
6619
- return Z.localPosFromDOM(p, Q) + Z.posAtStart;
6619
+ return Z.localPosFromDOM(O, Q) + Z.posAtStart;
6620
6620
  }
6621
6621
  function Hh(n, e, t, i, s) {
6622
6622
  let r = Math.round((i - e.left) * n.defaultCharacterWidth);
@@ -6720,10 +6720,10 @@ function c0(n, e, t, i) {
6720
6720
  }
6721
6721
  let c = a.left + l, f = i ?? n.viewState.heightOracle.textHeight >> 1;
6722
6722
  for (let d = 0; ; d += 10) {
6723
- let O = o + (f + d) * r, S = Dd(n, { x: c, y: O }, !1, r);
6724
- if (O < a.top || O > a.bottom || (r < 0 ? S < s : S > s)) {
6725
- let m = n.docView.coordsForChar(S), p = !m || O < m.top ? -1 : 1;
6726
- return L.cursor(S, p, void 0, l);
6723
+ let p = o + (f + d) * r, S = Dd(n, { x: c, y: p }, !1, r);
6724
+ if (p < a.top || p > a.bottom || (r < 0 ? S < s : S > s)) {
6725
+ let m = n.docView.coordsForChar(S), O = !m || p < m.top ? -1 : 1;
6726
+ return L.cursor(S, O, void 0, l);
6727
6727
  }
6728
6728
  }
6729
6729
  }
@@ -6832,8 +6832,8 @@ class O0 {
6832
6832
  } else {
6833
6833
  let o = e.observer.selectionRange, a = r && r.node == o.focusNode && r.offset == o.focusOffset || !Yo(e.contentDOM, o.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(o.focusNode, o.focusOffset), u = l && l.node == o.anchorNode && l.offset == o.anchorOffset || !Yo(e.contentDOM, o.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(o.anchorNode, o.anchorOffset), h = e.viewport;
6834
6834
  if ((se.ios || se.chrome) && e.state.selection.main.empty && a != u && (h.from > 0 || h.to < e.state.doc.length)) {
6835
- let c = Math.min(a, u), f = Math.max(a, u), d = h.from - c, O = h.to - f;
6836
- (d == 0 || d == 1 || c == 0) && (O == 0 || O == -1 || f == e.state.doc.length) && (a = 0, u = e.state.doc.length);
6835
+ let c = Math.min(a, u), f = Math.max(a, u), d = h.from - c, p = h.to - f;
6836
+ (d == 0 || d == 1 || c == 0) && (p == 0 || p == -1 || f == e.state.doc.length) && (a = 0, u = e.state.doc.length);
6837
6837
  }
6838
6838
  this.newSel = L.single(u, a);
6839
6839
  }
@@ -6890,25 +6890,25 @@ function p0(n, e, t) {
6890
6890
  if (s.selection.ranges.length > 1 && n.inputState.composing >= 0 && e.to <= r.to && e.to >= r.to - 10) {
6891
6891
  let u = n.state.sliceDoc(e.from, e.to), h, c = t && Md(n, t.main.head);
6892
6892
  if (c) {
6893
- let O = e.insert.length - (e.to - e.from);
6894
- h = { from: c.from, to: c.to - O };
6893
+ let p = e.insert.length - (e.to - e.from);
6894
+ h = { from: c.from, to: c.to - p };
6895
6895
  } else
6896
6896
  h = n.state.doc.lineAt(r.head);
6897
6897
  let f = r.to - e.to, d = r.to - r.from;
6898
- i = s.changeByRange((O) => {
6899
- if (O.from == r.from && O.to == r.to)
6900
- return { changes: o, range: a || O.map(o) };
6901
- let S = O.to - f, m = S - u.length;
6902
- if (O.to - O.from != d || n.state.sliceDoc(m, S) != u || // Unfortunately, there's no way to make multiple
6898
+ i = s.changeByRange((p) => {
6899
+ if (p.from == r.from && p.to == r.to)
6900
+ return { changes: o, range: a || p.map(o) };
6901
+ let S = p.to - f, m = S - u.length;
6902
+ if (p.to - p.from != d || n.state.sliceDoc(m, S) != u || // Unfortunately, there's no way to make multiple
6903
6903
  // changes in the same node work without aborting
6904
6904
  // composition, so cursors in the composition range are
6905
6905
  // ignored.
6906
- O.to >= h.from && O.from <= h.to)
6907
- return { range: O };
6908
- let p = s.changes({ from: m, to: S, insert: e.insert }), Q = O.to - r.to;
6906
+ p.to >= h.from && p.from <= h.to)
6907
+ return { range: p };
6908
+ let O = s.changes({ from: m, to: S, insert: e.insert }), Q = p.to - r.to;
6909
6909
  return {
6910
- changes: p,
6911
- range: a ? L.range(Math.max(0, a.anchor + Q), Math.max(0, a.head + Q)) : O.map(p)
6910
+ changes: O,
6911
+ range: a ? L.range(Math.max(0, a.anchor + Q), Math.max(0, a.head + Q)) : p.map(O)
6912
6912
  };
6913
6913
  });
6914
6914
  } else
@@ -7576,8 +7576,8 @@ class rt {
7576
7576
  for (c += d.to - u, u = d.to; o > 0 && f.from <= s[o - 1].toA; )
7577
7577
  a = s[o - 1].fromA, h = s[o - 1].fromB, o--, a < f.from && (f = r.lineAt(a, Ee.ByPosNoHeight, i, 0, 0));
7578
7578
  h += f.from - a, a = f.from;
7579
- let O = Ea.build(i.setDoc(l), e, h, c);
7580
- r = Pr(r, r.replace(a, u, O));
7579
+ let p = Ea.build(i.setDoc(l), e, h, c);
7580
+ r = Pr(r, r.replace(a, u, p));
7581
7581
  }
7582
7582
  return r.updateHeight(i, 0);
7583
7583
  }
@@ -7682,8 +7682,8 @@ class Fe extends rt {
7682
7682
  if (t == Ee.ByHeight)
7683
7683
  return this.blockAt(e, i, s, r);
7684
7684
  if (t == Ee.ByPosNoHeight) {
7685
- let { from: d, to: O } = i.doc.lineAt(e);
7686
- return new Wt(d, O - d, 0, 0, 0);
7685
+ let { from: d, to: p } = i.doc.lineAt(e);
7686
+ return new Wt(d, p - d, 0, 0, 0);
7687
7687
  }
7688
7688
  let { firstLine: l, perLine: o, perChar: a } = this.heightMetrics(i, r), u = i.doc.lineAt(e), h = o + u.length * a, c = u.number - l, f = s + o * c + a * (u.from - r - c);
7689
7689
  return new Wt(u.from, u.length, Math.max(s, Math.min(f, s + this.height - h)), h, 0);
@@ -7694,8 +7694,8 @@ class Fe extends rt {
7694
7694
  for (let h = e, c = s; h <= t; ) {
7695
7695
  let f = i.doc.lineAt(h);
7696
7696
  if (h == e) {
7697
- let O = f.number - o;
7698
- c += a * O + u * (e - r - O);
7697
+ let p = f.number - o;
7698
+ c += a * p + u * (e - r - p);
7699
7699
  }
7700
7700
  let d = a + u * f.length;
7701
7701
  l(new Wt(f.from, f.length, c, d, 0)), c += d, h = f.to + 1;
@@ -8020,10 +8020,10 @@ class fu {
8020
8020
  (this.paddingTop != c || this.paddingBottom != f) && (this.paddingTop = c, this.paddingBottom = f, u |= 18), this.editorWidth != e.scrollDOM.clientWidth && (s.lineWrapping && (a = !0), this.editorWidth = e.scrollDOM.clientWidth, u |= 16);
8021
8021
  let d = e.scrollDOM.scrollTop * this.scaleY;
8022
8022
  this.scrollTop != d && (this.scrollAnchorHeight = -1, this.scrollTop = d), this.scrolledToBottom = ad(e.scrollDOM);
8023
- let O = (this.printing ? W0 : U0)(t, this.paddingTop), S = O.top - this.pixelViewport.top, m = O.bottom - this.pixelViewport.bottom;
8024
- this.pixelViewport = O;
8025
- let p = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;
8026
- if (p != this.inView && (this.inView = p, p && (a = !0)), !this.inView && !this.scrollTarget && !z0(e.dom))
8023
+ let p = (this.printing ? W0 : U0)(t, this.paddingTop), S = p.top - this.pixelViewport.top, m = p.bottom - this.pixelViewport.bottom;
8024
+ this.pixelViewport = p;
8025
+ let O = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;
8026
+ if (O != this.inView && (this.inView = O, O && (a = !0)), !this.inView && !this.scrollTarget && !z0(e.dom))
8027
8027
  return 0;
8028
8028
  let Q = o.width;
8029
8029
  if ((this.contentDOMWidth != Q || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = o.width, this.editorHeight = e.scrollDOM.clientHeight, u |= 16), a) {
@@ -8101,21 +8101,21 @@ class fu {
8101
8101
  let o = [], a = (h, c, f, d) => {
8102
8102
  if (c - h < r)
8103
8103
  return;
8104
- let O = this.state.selection.main, S = [O.from];
8105
- O.empty || S.push(O.to);
8106
- for (let p of S)
8107
- if (p > h && p < c) {
8108
- a(h, p - 10, f, d), a(p + 10, c, f, d);
8104
+ let p = this.state.selection.main, S = [p.from];
8105
+ p.empty || S.push(p.to);
8106
+ for (let O of S)
8107
+ if (O > h && O < c) {
8108
+ a(h, O - 10, f, d), a(O + 10, c, f, d);
8109
8109
  return;
8110
8110
  }
8111
- let m = I0(e, (p) => p.from >= f.from && p.to <= f.to && Math.abs(p.from - h) < r && Math.abs(p.to - c) < r && !S.some((Q) => p.from < Q && p.to > Q));
8111
+ let m = I0(e, (O) => O.from >= f.from && O.to <= f.to && Math.abs(O.from - h) < r && Math.abs(O.to - c) < r && !S.some((Q) => O.from < Q && O.to > Q));
8112
8112
  if (!m) {
8113
8113
  if (c < f.to && t && i && t.visibleRanges.some((Z) => Z.from <= c && Z.to >= c)) {
8114
8114
  let Z = t.moveToLineBoundary(L.cursor(c), !1, !0).head;
8115
8115
  Z > h && (c = Z);
8116
8116
  }
8117
- let p = this.gapSize(f, h, c, d), Q = i || p < 2e6 ? p : 2e6;
8118
- m = new $l(h, c, p, Q);
8117
+ let O = this.gapSize(f, h, c, d), Q = i || O < 2e6 ? O : 2e6;
8118
+ m = new $l(h, c, O, Q);
8119
8119
  }
8120
8120
  o.push(m);
8121
8121
  }, u = (h) => {
@@ -8124,29 +8124,29 @@ class fu {
8124
8124
  let c = B0(h.from, h.to, this.stateDeco);
8125
8125
  if (c.total < l)
8126
8126
  return;
8127
- let f = this.scrollTarget ? this.scrollTarget.range.head : null, d, O;
8127
+ let f = this.scrollTarget ? this.scrollTarget.range.head : null, d, p;
8128
8128
  if (i) {
8129
- let S = s / this.heightOracle.lineLength * this.heightOracle.lineHeight, m, p;
8129
+ let S = s / this.heightOracle.lineLength * this.heightOracle.lineHeight, m, O;
8130
8130
  if (f != null) {
8131
8131
  let Q = Ys(c, f), Z = ((this.visibleBottom - this.visibleTop) / 2 + S) / h.height;
8132
- m = Q - Z, p = Q + Z;
8132
+ m = Q - Z, O = Q + Z;
8133
8133
  } else
8134
- m = (this.visibleTop - h.top - S) / h.height, p = (this.visibleBottom - h.top + S) / h.height;
8135
- d = As(c, m), O = As(c, p);
8134
+ m = (this.visibleTop - h.top - S) / h.height, O = (this.visibleBottom - h.top + S) / h.height;
8135
+ d = As(c, m), p = As(c, O);
8136
8136
  } else {
8137
- let S = c.total * this.heightOracle.charWidth, m = s * this.heightOracle.charWidth, p = 0;
8137
+ let S = c.total * this.heightOracle.charWidth, m = s * this.heightOracle.charWidth, O = 0;
8138
8138
  if (S > 2e6)
8139
8139
  for (let x of e)
8140
- x.from >= h.from && x.from < h.to && x.size != x.displaySize && x.from * this.heightOracle.charWidth + p < this.pixelViewport.left && (p = x.size - x.displaySize);
8141
- let Q = this.pixelViewport.left + p, Z = this.pixelViewport.right + p, k, R;
8140
+ x.from >= h.from && x.from < h.to && x.size != x.displaySize && x.from * this.heightOracle.charWidth + O < this.pixelViewport.left && (O = x.size - x.displaySize);
8141
+ let Q = this.pixelViewport.left + O, Z = this.pixelViewport.right + O, k, R;
8142
8142
  if (f != null) {
8143
8143
  let x = Ys(c, f), $ = ((Z - Q) / 2 + m) / S;
8144
8144
  k = x - $, R = x + $;
8145
8145
  } else
8146
8146
  k = (Q - m) / S, R = (Z + m) / S;
8147
- d = As(c, k), O = As(c, R);
8147
+ d = As(c, k), p = As(c, R);
8148
8148
  }
8149
- d > h.from && a(h.from, d, h, c), O < h.to && a(O, h.to, h, c);
8149
+ d > h.from && a(h.from, d, h, c), p < h.to && a(p, h.to, h, c);
8150
8150
  };
8151
8151
  for (let h of this.viewportLines)
8152
8152
  Array.isArray(h.type) ? h.type.forEach(u) : u(h);
@@ -9172,18 +9172,18 @@ class ee {
9172
9172
  let h = u.map((d) => {
9173
9173
  try {
9174
9174
  return d.read(this);
9175
- } catch (O) {
9176
- return ct(this.state, O), mu;
9175
+ } catch (p) {
9176
+ return ct(this.state, p), mu;
9177
9177
  }
9178
9178
  }), c = $r.create(this, this.state, []), f = !1;
9179
9179
  c.flags |= a, t ? t.flags |= a : t = c, this.updateState = 2, c.empty || (this.updatePlugins(c), this.inputState.update(c), this.updateAttrs(), f = this.docView.update(c), f && this.docViewUpdate());
9180
9180
  for (let d = 0; d < u.length; d++)
9181
9181
  if (h[d] != mu)
9182
9182
  try {
9183
- let O = u[d];
9184
- O.write && O.write(h[d], this);
9185
- } catch (O) {
9186
- ct(this.state, O);
9183
+ let p = u[d];
9184
+ p.write && p.write(h[d], this);
9185
+ } catch (p) {
9186
+ ct(this.state, p);
9187
9187
  }
9188
9188
  if (f && this.docView.updateSelection(!0), !c.viewportChanged && this.measureRequests.length == 0) {
9189
9189
  if (this.viewState.editorHeight)
@@ -9191,9 +9191,9 @@ class ee {
9191
9191
  this.docView.scrollIntoView(this.viewState.scrollTarget), this.viewState.scrollTarget = null, l = -1;
9192
9192
  continue;
9193
9193
  } else {
9194
- let O = (r < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(r).top) - l;
9195
- if (O > 1 || O < -1) {
9196
- s = s + O, i.scrollTop = s / this.scaleY, l = -1;
9194
+ let p = (r < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(r).top) - l;
9195
+ if (p > 1 || p < -1) {
9196
+ s = s + p, i.scrollTop = s / this.scaleY, l = -1;
9197
9197
  continue;
9198
9198
  }
9199
9199
  }
@@ -9769,9 +9769,9 @@ function rb(n, e = eb) {
9769
9769
  throw new Error("Key binding " + l + " is used both as a regular binding and as a multi-stroke prefix");
9770
9770
  }, r = (l, o, a, u, h) => {
9771
9771
  var c, f;
9772
- let d = t[l] || (t[l] = /* @__PURE__ */ Object.create(null)), O = o.split(/ (?!$)/).map((p) => tb(p, e));
9773
- for (let p = 1; p < O.length; p++) {
9774
- let Q = O.slice(0, p).join(" ");
9772
+ let d = t[l] || (t[l] = /* @__PURE__ */ Object.create(null)), p = o.split(/ (?!$)/).map((O) => tb(O, e));
9773
+ for (let O = 1; O < p.length; O++) {
9774
+ let Q = p.slice(0, O).join(" ");
9775
9775
  s(Q, !0), d[Q] || (d[Q] = {
9776
9776
  preventDefault: !0,
9777
9777
  stopPropagation: !1,
@@ -9783,7 +9783,7 @@ function rb(n, e = eb) {
9783
9783
  }]
9784
9784
  });
9785
9785
  }
9786
- let S = O.join(" ");
9786
+ let S = p.join(" ");
9787
9787
  s(S, !1);
9788
9788
  let m = d[S] || (d[S] = {
9789
9789
  preventDefault: !1,
@@ -9816,15 +9816,15 @@ function tO(n, e, t, i) {
9816
9816
  mi && mi.view == t && mi.scope == i && (o = mi.prefix + " ", zd.indexOf(e.keyCode) < 0 && (u = !0, mi = null));
9817
9817
  let c = /* @__PURE__ */ new Set(), f = (m) => {
9818
9818
  if (m) {
9819
- for (let p of m.run)
9820
- if (!c.has(p) && (c.add(p), p(t)))
9819
+ for (let O of m.run)
9820
+ if (!c.has(O) && (c.add(O), O(t)))
9821
9821
  return m.stopPropagation && (h = !0), !0;
9822
9822
  m.preventDefault && (m.stopPropagation && (h = !0), u = !0);
9823
9823
  }
9824
9824
  return !1;
9825
- }, d = n[i], O, S;
9825
+ }, d = n[i], p, S;
9826
9826
  return d && (f(d[o + qs(s, e, !l)]) ? a = !0 : l && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
9827
- !(se.windows && e.ctrlKey && e.altKey) && (O = Si[e.keyCode]) && O != s ? (f(d[o + qs(O, e, !0)]) || e.shiftKey && (S = Kn[e.keyCode]) != s && S != O && f(d[o + qs(S, e, !1)])) && (a = !0) : l && e.shiftKey && f(d[o + qs(s, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), u && (a = !0), a && h && e.stopPropagation(), Jo = null, a;
9827
+ !(se.windows && e.ctrlKey && e.altKey) && (p = Si[e.keyCode]) && p != s ? (f(d[o + qs(p, e, !0)]) || e.shiftKey && (S = Kn[e.keyCode]) != s && S != p && f(d[o + qs(S, e, !1)])) && (a = !0) : l && e.shiftKey && f(d[o + qs(s, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), u && (a = !0), a && h && e.stopPropagation(), Jo = null, a;
9828
9828
  }
9829
9829
  class bs {
9830
9830
  /**
@@ -9879,20 +9879,20 @@ function bu(n, e, t, i) {
9879
9879
  function lb(n, e, t) {
9880
9880
  if (t.to <= n.viewport.from || t.from >= n.viewport.to)
9881
9881
  return [];
9882
- let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), r = n.textDirection == qe.LTR, l = n.contentDOM, o = l.getBoundingClientRect(), a = iO(n), u = l.querySelector(".cm-line"), h = u && window.getComputedStyle(u), c = o.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), f = o.right - (h ? parseInt(h.paddingRight) : 0), d = Go(n, i, 1), O = Go(n, s, -1), S = d.type == st.Text ? d : null, m = O.type == st.Text ? O : null;
9883
- if (S && (n.lineWrapping || d.widgetLineBreaks) && (S = bu(n, i, 1, S)), m && (n.lineWrapping || O.widgetLineBreaks) && (m = bu(n, s, -1, m)), S && m && S.from == m.from && S.to == m.to)
9882
+ let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), r = n.textDirection == qe.LTR, l = n.contentDOM, o = l.getBoundingClientRect(), a = iO(n), u = l.querySelector(".cm-line"), h = u && window.getComputedStyle(u), c = o.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), f = o.right - (h ? parseInt(h.paddingRight) : 0), d = Go(n, i, 1), p = Go(n, s, -1), S = d.type == st.Text ? d : null, m = p.type == st.Text ? p : null;
9883
+ if (S && (n.lineWrapping || d.widgetLineBreaks) && (S = bu(n, i, 1, S)), m && (n.lineWrapping || p.widgetLineBreaks) && (m = bu(n, s, -1, m)), S && m && S.from == m.from && S.to == m.to)
9884
9884
  return Q(Z(t.from, t.to, S));
9885
9885
  {
9886
- let R = S ? Z(t.from, null, S) : k(d, !1), x = m ? Z(null, t.to, m) : k(O, !0), $ = [];
9887
- return (S || d).to < (m || O).from - (S && m ? 1 : 0) || d.widgetLineBreaks > 1 && R.bottom + n.defaultLineHeight / 2 < x.top ? $.push(p(c, R.bottom, f, x.top)) : R.bottom < x.top && n.elementAtHeight((R.bottom + x.top) / 2).type == st.Text && (R.bottom = x.top = (R.bottom + x.top) / 2), Q(R).concat($).concat(Q(x));
9886
+ let R = S ? Z(t.from, null, S) : k(d, !1), x = m ? Z(null, t.to, m) : k(p, !0), $ = [];
9887
+ return (S || d).to < (m || p).from - (S && m ? 1 : 0) || d.widgetLineBreaks > 1 && R.bottom + n.defaultLineHeight / 2 < x.top ? $.push(O(c, R.bottom, f, x.top)) : R.bottom < x.top && n.elementAtHeight((R.bottom + x.top) / 2).type == st.Text && (R.bottom = x.top = (R.bottom + x.top) / 2), Q(R).concat($).concat(Q(x));
9888
9888
  }
9889
- function p(R, x, $, P) {
9889
+ function O(R, x, $, P) {
9890
9890
  return new bs(e, R - a.left, x - a.top, $ - R, P - x);
9891
9891
  }
9892
9892
  function Q({ top: R, bottom: x, horizontal: $ }) {
9893
9893
  let P = [];
9894
9894
  for (let C = 0; C < $.length; C += 2)
9895
- P.push(p($[C], R, $[C + 1], x));
9895
+ P.push(O($[C], R, $[C + 1], x));
9896
9896
  return P;
9897
9897
  }
9898
9898
  function Z(R, x, $) {
@@ -10182,12 +10182,12 @@ class mb {
10182
10182
  break;
10183
10183
  }
10184
10184
  }
10185
- let f = [], d, O = (S, m, p) => f.push(p.range(S, m));
10185
+ let f = [], d, p = (S, m, O) => f.push(O.range(S, m));
10186
10186
  if (a == u)
10187
10187
  for (this.regexp.lastIndex = h - a.from; (d = this.regexp.exec(a.text)) && d.index < c - a.from; )
10188
- this.addMatch(d, e, d.index + a.from, O);
10188
+ this.addMatch(d, e, d.index + a.from, p);
10189
10189
  else
10190
- yu(e.state.doc, this.regexp, h, c, (S, m) => this.addMatch(m, e, S, O));
10190
+ yu(e.state.doc, this.regexp, h, c, (S, m) => this.addMatch(m, e, S, p));
10191
10191
  t = t.update({ filterFrom: h, filterTo: c, filter: (S, m) => S < h || m > c, add: f });
10192
10192
  }
10193
10193
  }
@@ -10575,9 +10575,9 @@ const kl = /* @__PURE__ */ ie.define({
10575
10575
  h.style.top = Pn;
10576
10576
  continue;
10577
10577
  }
10578
- let d = a.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, O = d ? 7 : 0, S = f.right - f.left, m = (e = xu.get(u)) !== null && e !== void 0 ? e : f.bottom - f.top, p = u.offset || qb, Q = this.view.textDirection == qe.LTR, Z = f.width > i.right - i.left ? Q ? i.left : i.right - f.width : Q ? Math.max(i.left, Math.min(c.left - (d ? 14 : 0) + p.x, i.right - S)) : Math.min(Math.max(i.left, c.left - S + (d ? 14 : 0) - p.x), i.right - S), k = this.above[o];
10579
- !a.strictSide && (k ? c.top - m - O - p.y < i.top : c.bottom + m + O + p.y > i.bottom) && k == i.bottom - c.bottom > c.top - i.top && (k = this.above[o] = !k);
10580
- let R = (k ? c.top - i.top : i.bottom - c.bottom) - O;
10578
+ let d = a.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, p = d ? 7 : 0, S = f.right - f.left, m = (e = xu.get(u)) !== null && e !== void 0 ? e : f.bottom - f.top, O = u.offset || qb, Q = this.view.textDirection == qe.LTR, Z = f.width > i.right - i.left ? Q ? i.left : i.right - f.width : Q ? Math.max(i.left, Math.min(c.left - (d ? 14 : 0) + O.x, i.right - S)) : Math.min(Math.max(i.left, c.left - S + (d ? 14 : 0) - O.x), i.right - S), k = this.above[o];
10579
+ !a.strictSide && (k ? c.top - m - p - O.y < i.top : c.bottom + m + p + O.y > i.bottom) && k == i.bottom - c.bottom > c.top - i.top && (k = this.above[o] = !k);
10580
+ let R = (k ? c.top - i.top : i.bottom - c.bottom) - p;
10581
10581
  if (R < m && u.resize !== !1) {
10582
10582
  if (R < this.view.defaultLineHeight) {
10583
10583
  h.style.top = Pn;
@@ -10586,12 +10586,12 @@ const kl = /* @__PURE__ */ ie.define({
10586
10586
  xu.set(u, m), h.style.height = (m = R) / r + "px";
10587
10587
  } else
10588
10588
  h.style.height && (h.style.height = "");
10589
- let x = k ? c.top - m - O - p.y : c.bottom + O + p.y, $ = Z + S;
10589
+ let x = k ? c.top - m - p - O.y : c.bottom + p + O.y, $ = Z + S;
10590
10590
  if (u.overlap !== !0)
10591
10591
  for (let P of l)
10592
- P.left < $ && P.right > Z && P.top < x + m && P.bottom > x && (x = k ? P.top - m - 2 - O : P.bottom + O + 2);
10592
+ P.left < $ && P.right > Z && P.top < x + m && P.bottom > x && (x = k ? P.top - m - 2 - p : P.bottom + p + 2);
10593
10593
  if (this.position == "absolute" ? (h.style.top = (x - n.parent.top) / r + "px", $u(h, (Z - n.parent.left) / s)) : (h.style.top = x / r + "px", $u(h, Z / s)), d) {
10594
- let P = c.left + (Q ? p.x : -p.x) - (Z + 14 - 7);
10594
+ let P = c.left + (Q ? O.x : -O.x) - (Z + 14 - 7);
10595
10595
  d.style.left = P / s + "px";
10596
10596
  }
10597
10597
  u.overlap !== !0 && l.push({ left: Z, top: x, right: $, bottom: x + m }), h.classList.toggle("cm-tooltip-above", k), h.classList.toggle("cm-tooltip-below", !k), u.positioned && u.positioned(n.space);
@@ -12402,15 +12402,15 @@ function h1(n) {
12402
12402
  if (V - X <= s && (de = m(o.pos - x, C))) {
12403
12403
  let Qe = new Uint16Array(de.size - de.skip), te = o.pos - de.size, N = Qe.length;
12404
12404
  for (; o.pos > te; )
12405
- N = p(de.start, Qe, N);
12405
+ N = O(de.start, Qe, N);
12406
12406
  he = new xi(Qe, V - de.start, i), fe = de.start - R;
12407
12407
  } else {
12408
12408
  let Qe = o.pos - A;
12409
12409
  o.next();
12410
12410
  let te = [], N = [], B = w >= l ? w : -1, q = 0, T = V;
12411
12411
  for (; o.pos > Qe; )
12412
- B >= 0 && o.id == B && o.size >= 0 ? (o.end <= T - s && (O(te, N, X, q, o.end, T, B, I, W), q = te.length, T = o.end), o.next()) : g > 2500 ? f(X, Qe, te, N) : c(X, Qe, te, N, B, g + 1);
12413
- if (B >= 0 && q > 0 && q < te.length && O(te, N, X, q, X, T, B, I, W), te.reverse(), N.reverse(), B > -1 && q > 0) {
12412
+ B >= 0 && o.id == B && o.size >= 0 ? (o.end <= T - s && (p(te, N, X, q, o.end, T, B, I, W), q = te.length, T = o.end), o.next()) : g > 2500 ? f(X, Qe, te, N) : c(X, Qe, te, N, B, g + 1);
12413
+ if (B >= 0 && q > 0 && q < te.length && p(te, N, X, q, X, T, B, I, W), te.reverse(), N.reverse(), B > -1 && q > 0) {
12414
12414
  let U = d(j, W);
12415
12415
  he = Wa(j, te, N, 0, te.length, 0, V - X, U, U);
12416
12416
  } else
@@ -12448,7 +12448,7 @@ function h1(n) {
12448
12448
  return S(R, $, P, C, g, x);
12449
12449
  };
12450
12450
  }
12451
- function O(R, x, $, P, C, g, w, X, V) {
12451
+ function p(R, x, $, P, C, g, w, X, V) {
12452
12452
  let A = [], I = [];
12453
12453
  for (; R.length > P; )
12454
12454
  A.push(R.pop()), I.push(x.pop() + $ - C);
@@ -12492,14 +12492,14 @@ function h1(n) {
12492
12492
  }
12493
12493
  return (x < 0 || P == R) && (X.size = P, X.start = C, X.skip = g), X.size > 4 ? X : void 0;
12494
12494
  }
12495
- function p(R, x, $) {
12495
+ function O(R, x, $) {
12496
12496
  let { id: P, start: C, end: g, size: w } = o;
12497
12497
  if (o.next(), w >= 0 && P < l) {
12498
12498
  let X = $;
12499
12499
  if (w > 4) {
12500
12500
  let V = o.pos - (w - 4);
12501
12501
  for (; o.pos > V; )
12502
- $ = p(R, x, $);
12502
+ $ = O(R, x, $);
12503
12503
  }
12504
12504
  x[--$] = X, x[--$] = g - R, x[--$] = C - R, x[--$] = P;
12505
12505
  } else
@@ -12532,31 +12532,31 @@ function Or(n, e) {
12532
12532
  }
12533
12533
  function Wa(n, e, t, i, s, r, l, o, a) {
12534
12534
  let u = 0;
12535
- for (let O = i; O < s; O++)
12536
- u += Or(n, e[O]);
12535
+ for (let p = i; p < s; p++)
12536
+ u += Or(n, e[p]);
12537
12537
  let h = Math.ceil(
12538
12538
  u * 1.5 / 8
12539
12539
  /* Balance.BranchFactor */
12540
12540
  ), c = [], f = [];
12541
- function d(O, S, m, p, Q) {
12542
- for (let Z = m; Z < p; ) {
12543
- let k = Z, R = S[Z], x = Or(n, O[Z]);
12544
- for (Z++; Z < p; Z++) {
12545
- let $ = Or(n, O[Z]);
12541
+ function d(p, S, m, O, Q) {
12542
+ for (let Z = m; Z < O; ) {
12543
+ let k = Z, R = S[Z], x = Or(n, p[Z]);
12544
+ for (Z++; Z < O; Z++) {
12545
+ let $ = Or(n, p[Z]);
12546
12546
  if (x + $ >= h)
12547
12547
  break;
12548
12548
  x += $;
12549
12549
  }
12550
12550
  if (Z == k + 1) {
12551
12551
  if (x > h) {
12552
- let $ = O[k];
12552
+ let $ = p[k];
12553
12553
  d($.children, $.positions, 0, $.children.length, S[k] + Q);
12554
12554
  continue;
12555
12555
  }
12556
- c.push(O[k]);
12556
+ c.push(p[k]);
12557
12557
  } else {
12558
- let $ = S[Z - 1] + O[Z - 1].length - R;
12559
- c.push(Wa(n, O, S, k, Z, R, $, null, a));
12558
+ let $ = S[Z - 1] + p[Z - 1].length - R;
12559
+ c.push(Wa(n, p, S, k, Z, R, $, null, a));
12560
12560
  }
12561
12561
  f.push(R + Q - r);
12562
12562
  }
@@ -12656,8 +12656,8 @@ class si {
12656
12656
  for (; l && l.from < c; ) {
12657
12657
  let f = l;
12658
12658
  if (a >= f.from || c <= f.to || u) {
12659
- let d = Math.max(f.from, a) - u, O = Math.min(f.to, c) - u;
12660
- f = d >= O ? null : new si(d, O, f.tree, f.offset + u, o > 0, !!h);
12659
+ let d = Math.max(f.from, a) - u, p = Math.min(f.to, c) - u;
12660
+ f = d >= p ? null : new si(d, p, f.tree, f.offset + u, o > 0, !!h);
12661
12661
  }
12662
12662
  if (f && s.push(f), l.to > c)
12663
12663
  break;
@@ -12839,13 +12839,13 @@ function p1(n) {
12839
12839
  t.push(n.index), n.parent();
12840
12840
  while (!n.tree);
12841
12841
  let s = n.tree, r = s.children.indexOf(i), l = s.children[r], o = l.buffer, a = [r];
12842
- function u(h, c, f, d, O, S) {
12843
- let m = t[S], p = [], Q = [];
12844
- Yu(l, h, m, p, Q, d);
12842
+ function u(h, c, f, d, p, S) {
12843
+ let m = t[S], O = [], Q = [];
12844
+ Yu(l, h, m, O, Q, d);
12845
12845
  let Z = o[m + 1], k = o[m + 2];
12846
- a.push(p.length);
12846
+ a.push(O.length);
12847
12847
  let R = S ? u(m + 4, o[m + 3], l.set.types[o[m]], Z, k - Z, S - 1) : e.toTree();
12848
- return p.push(R), Q.push(Z - d), Yu(l, o[m + 3], c, p, Q, d), new De(f, p, Q, O);
12848
+ return O.push(R), Q.push(Z - d), Yu(l, o[m + 3], c, O, Q, d), new De(f, O, Q, p);
12849
12849
  }
12850
12850
  s.children[r] = u(0, o.length, lt.none, 0, l.length, t.length - 1);
12851
12851
  for (let h of a) {
@@ -12956,8 +12956,8 @@ function Mu(n, e) {
12956
12956
  if (s.overlay) {
12957
12957
  let h = s.overlay.map((f) => new St(f.from + i, f.to + i)), c = g1(e, h, a, u);
12958
12958
  for (let f = 0, d = a; ; f++) {
12959
- let O = f == c.length, S = O ? u : c[f].from;
12960
- if (S > d && t.push(new si(d, S, s.tree, -l, r.from >= d || r.openStart, r.to <= S || r.openEnd)), O)
12959
+ let p = f == c.length, S = p ? u : c[f].from;
12960
+ if (S > d && t.push(new si(d, S, s.tree, -l, r.from >= d || r.openStart, r.to <= S || r.openEnd)), p)
12961
12961
  break;
12962
12962
  d = c[f].to;
12963
12963
  }
@@ -13151,15 +13151,15 @@ class x1 {
13151
13151
  return;
13152
13152
  let f = e.tree && e.tree.prop(be.mounted);
13153
13153
  if (f && f.overlay) {
13154
- let d = e.node.enter(f.overlay[0].from + o, 1), O = this.highlighters.filter((m) => !m.scope || m.scope(f.tree.type)), S = e.firstChild();
13155
- for (let m = 0, p = o; ; m++) {
13156
- let Q = m < f.overlay.length ? f.overlay[m] : null, Z = Q ? Q.from + o : a, k = Math.max(t, p), R = Math.min(i, Z);
13154
+ let d = e.node.enter(f.overlay[0].from + o, 1), p = this.highlighters.filter((m) => !m.scope || m.scope(f.tree.type)), S = e.firstChild();
13155
+ for (let m = 0, O = o; ; m++) {
13156
+ let Q = m < f.overlay.length ? f.overlay[m] : null, Z = Q ? Q.from + o : a, k = Math.max(t, O), R = Math.min(i, Z);
13157
13157
  if (k < R && S)
13158
13158
  for (; e.from < R && (this.highlightRange(e, k, R, s, r), this.startSpan(Math.min(R, e.to), u), !(e.to >= Z || !e.nextSibling())); )
13159
13159
  ;
13160
13160
  if (!Q || Z > i)
13161
13161
  break;
13162
- p = Q.to + o, p > t && (this.highlightRange(d.cursor(), Math.max(t, Q.from + o), Math.min(i, p), "", O), this.startSpan(Math.min(i, p), u));
13162
+ O = Q.to + o, O > t && (this.highlightRange(d.cursor(), Math.max(t, Q.from + o), Math.min(i, O), "", p), this.startSpan(Math.min(i, O), u));
13163
13163
  }
13164
13164
  S && e.parent();
13165
13165
  } else if (e.firstChild()) {
@@ -13613,8 +13613,8 @@ class Ct {
13613
13613
  let f = a.resolve(l - a.from, o);
13614
13614
  for (let d of c)
13615
13615
  if (d.test(f, r)) {
13616
- let O = r.facet(d.facet);
13617
- return d.type == "replace" ? O : O.concat(h);
13616
+ let p = r.facet(d.facet);
13617
+ return d.type == "replace" ? p : p.concat(h);
13618
13618
  }
13619
13619
  }
13620
13620
  return h;
@@ -14773,15 +14773,15 @@ function aQ(n, e, t, i, s, r, l) {
14773
14773
  for (let f = 0; !h.next().done && f <= r; ) {
14774
14774
  let d = h.value;
14775
14775
  t < 0 && (f += d.length);
14776
- let O = e + f * t;
14776
+ let p = e + f * t;
14777
14777
  for (let S = t > 0 ? 0 : d.length - 1, m = t > 0 ? d.length : -1; S != m; S += t) {
14778
- let p = l.indexOf(d[S]);
14779
- if (!(p < 0 || i.resolveInner(O + S, 1).type != s))
14780
- if (p % 2 == 0 == t > 0)
14778
+ let O = l.indexOf(d[S]);
14779
+ if (!(O < 0 || i.resolveInner(p + S, 1).type != s))
14780
+ if (O % 2 == 0 == t > 0)
14781
14781
  c++;
14782
14782
  else {
14783
14783
  if (c == 1)
14784
- return { start: u, end: { from: O + S, to: O + S + 1 }, matched: p >> 1 == a >> 1 };
14784
+ return { start: u, end: { from: p + S, to: p + S + 1 }, matched: O >> 1 == a >> 1 };
14785
14785
  c--;
14786
14786
  }
14787
14787
  }
@@ -14871,15 +14871,15 @@ function mQ(n, { open: e, close: t }, i, s) {
14871
14871
  };
14872
14872
  let h, c;
14873
14873
  s - i <= 2 * Tn ? h = c = n.sliceDoc(i, s) : (h = n.sliceDoc(i, i + Tn), c = n.sliceDoc(s - Tn, s));
14874
- let f = /^\s*/.exec(h)[0].length, d = /\s*$/.exec(c)[0].length, O = c.length - d - t.length;
14875
- return h.slice(f, f + e.length) == e && c.slice(O, O + t.length) == t ? {
14874
+ let f = /^\s*/.exec(h)[0].length, d = /\s*$/.exec(c)[0].length, p = c.length - d - t.length;
14875
+ return h.slice(f, f + e.length) == e && c.slice(p, p + t.length) == t ? {
14876
14876
  open: {
14877
14877
  pos: i + f + e.length,
14878
14878
  margin: /\s/.test(h.charAt(f + e.length)) ? 1 : 0
14879
14879
  },
14880
14880
  close: {
14881
14881
  pos: s - d - t.length,
14882
- margin: /\s/.test(c.charAt(O - 1)) ? 1 : 0
14882
+ margin: /\s/.test(c.charAt(p - 1)) ? 1 : 0
14883
14883
  }
14884
14884
  } : null;
14885
14885
  }
@@ -14920,8 +14920,8 @@ function _Q(n, e, t = e.selection.ranges) {
14920
14920
  let c = e.doc.lineAt(h);
14921
14921
  if (c.from > s && (r == l || l > c.from)) {
14922
14922
  s = c.from;
14923
- let f = /^\s*/.exec(c.text)[0].length, d = f == c.length, O = c.text.slice(f, f + u.length) == u ? f : -1;
14924
- f < c.text.length && f < a && (a = f), i.push({ line: c, comment: O, token: u, indent: f, empty: d, single: !1 });
14923
+ let f = /^\s*/.exec(c.text)[0].length, d = f == c.length, p = c.text.slice(f, f + u.length) == u ? f : -1;
14924
+ f < c.text.length && f < a && (a = f), i.push({ line: c, comment: p, token: u, indent: f, empty: d, single: !1 });
14925
14925
  }
14926
14926
  h = c.to + 1;
14927
14927
  }
@@ -15793,7 +15793,7 @@ function Oa(n) {
15793
15793
  a && (m = m * (a == "-" ? -1 : 1) + o.number / l.doc.lines), d = Math.round(l.doc.lines * m);
15794
15794
  } else
15795
15795
  u && a && (d = d * (a == "-" ? -1 : 1) + o.number);
15796
- let O = l.doc.line(Math.max(1, Math.min(l.doc.lines, d))), S = L.cursor(O.from + Math.max(0, Math.min(f, O.length)));
15796
+ let p = l.doc.line(Math.max(1, Math.min(l.doc.lines, d))), S = L.cursor(p.from + Math.max(0, Math.min(f, p.length)));
15797
15797
  n.dispatch({
15798
15798
  effects: [jn.of(!1), ee.scrollIntoView(S.from, { y: "center" })],
15799
15799
  selection: S
@@ -16616,14 +16616,14 @@ class eS {
16616
16616
  if (u < a)
16617
16617
  return null;
16618
16618
  }
16619
- let h = 0, c = 0, f = !1, d = 0, O = -1, S = -1, m = /[a-z]/.test(e), p = !0;
16619
+ let h = 0, c = 0, f = !1, d = 0, p = -1, S = -1, m = /[a-z]/.test(e), O = !0;
16620
16620
  for (let Q = 0, Z = Math.min(e.length, 200), k = 0; Q < Z && c < a; ) {
16621
16621
  let R = at(e, Q);
16622
- o < 0 && (h < a && R == t[h] && (r[h++] = Q), d < a && (R == t[d] || R == i[d] ? (d == 0 && (O = Q), S = Q + 1, d++) : d = 0));
16622
+ o < 0 && (h < a && R == t[h] && (r[h++] = Q), d < a && (R == t[d] || R == i[d] ? (d == 0 && (p = Q), S = Q + 1, d++) : d = 0));
16623
16623
  let x, $ = R < 255 ? R >= 48 && R <= 57 || R >= 97 && R <= 122 ? 2 : R >= 65 && R <= 90 ? 1 : 0 : (x = $a(R)) != x.toLowerCase() ? 1 : x != x.toUpperCase() ? 2 : 0;
16624
- (!Q || $ == 1 && m || k == 0 && $ != 0) && (t[c] == R || i[c] == R && (f = !0) ? l[c++] = Q : l.length && (p = !1)), k = $, Q += zt(R);
16624
+ (!Q || $ == 1 && m || k == 0 && $ != 0) && (t[c] == R || i[c] == R && (f = !0) ? l[c++] = Q : l.length && (O = !1)), k = $, Q += zt(R);
16625
16625
  }
16626
- return c == a && l[0] == 0 && p ? this.result(-100 + (f ? -200 : 0), l, e) : d == a && O == 0 ? this.ret(-200 - e.length + (S == e.length ? 0 : -100), [0, S]) : o > -1 ? this.ret(-700 - e.length, [o, o + this.pattern.length]) : d == a ? this.ret(-200 + -700 - e.length, [O, S]) : c == a ? this.result(-100 + (f ? -200 : 0) + -700 + (p ? 0 : -1100), l, e) : t.length == 2 ? null : this.result((s[0] ? -700 : 0) + -200 + -1100, s, e);
16626
+ return c == a && l[0] == 0 && O ? this.result(-100 + (f ? -200 : 0), l, e) : d == a && p == 0 ? this.ret(-200 - e.length + (S == e.length ? 0 : -100), [0, S]) : o > -1 ? this.ret(-700 - e.length, [o, o + this.pattern.length]) : d == a ? this.ret(-200 + -700 - e.length, [p, S]) : c == a ? this.result(-100 + (f ? -200 : 0) + -700 + (O ? 0 : -1100), l, e) : t.length == 2 ? null : this.result((s[0] ? -700 : 0) + -200 + -1100, s, e);
16627
16627
  }
16628
16628
  result(e, t, i) {
16629
16629
  let s = [], r = 0;
@@ -16681,8 +16681,8 @@ function hc(n, e) {
16681
16681
  return n ? e ? n + " " + e : n : e;
16682
16682
  }
16683
16683
  function iS(n, e, t, i, s, r) {
16684
- let l = n.textDirection == qe.RTL, o = l, a = !1, u = "top", h, c, f = e.left - s.left, d = s.right - e.right, O = i.right - i.left, S = i.bottom - i.top;
16685
- if (o && f < Math.min(O, d) ? o = !1 : !o && d < Math.min(O, f) && (o = !0), O <= (o ? f : d))
16684
+ let l = n.textDirection == qe.RTL, o = l, a = !1, u = "top", h, c, f = e.left - s.left, d = s.right - e.right, p = i.right - i.left, S = i.bottom - i.top;
16685
+ if (o && f < Math.min(p, d) ? o = !1 : !o && d < Math.min(p, f) && (o = !0), p <= (o ? f : d))
16686
16686
  h = Math.max(s.top, Math.min(t.top, s.bottom - S)) - e.top, c = Math.min(400, o ? f : d);
16687
16687
  else {
16688
16688
  a = !0, c = Math.min(
@@ -16693,9 +16693,9 @@ function iS(n, e, t, i, s, r) {
16693
16693
  let Q = s.bottom - e.bottom;
16694
16694
  Q >= S || Q > e.top ? h = t.bottom - e.top : (u = "bottom", h = e.bottom - t.top);
16695
16695
  }
16696
- let m = (e.bottom - e.top) / r.offsetHeight, p = (e.right - e.left) / r.offsetWidth;
16696
+ let m = (e.bottom - e.top) / r.offsetHeight, O = (e.right - e.left) / r.offsetWidth;
16697
16697
  return {
16698
- style: `${u}: ${h / m}px; max-width: ${c / p}px`,
16698
+ style: `${u}: ${h / m}px; max-width: ${c / O}px`,
16699
16699
  class: "cm-completionInfo-" + (a ? l ? "left-narrow" : "right-narrow" : o ? "left" : "right")
16700
16700
  };
16701
16701
  }
@@ -16900,17 +16900,17 @@ function oS(n, e) {
16900
16900
  s(new oc(c, u.source, h ? h(c) : [], 1e9 - t.length));
16901
16901
  else {
16902
16902
  let c = e.sliceDoc(u.from, u.to), f, d = r.filterStrict ? new tS(c) : new eS(c);
16903
- for (let O of u.result.options)
16904
- if (f = d.match(O.label)) {
16905
- let S = O.displayLabel ? h ? h(O, f.matched) : [] : f.matched;
16906
- s(new oc(O, u.source, S, f.score + (O.boost || 0)));
16903
+ for (let p of u.result.options)
16904
+ if (f = d.match(p.label)) {
16905
+ let S = p.displayLabel ? h ? h(p, f.matched) : [] : f.matched;
16906
+ s(new oc(p, u.source, S, f.score + (p.boost || 0)));
16907
16907
  }
16908
16908
  }
16909
16909
  }
16910
16910
  if (i) {
16911
16911
  let u = /* @__PURE__ */ Object.create(null), h = 0, c = (f, d) => {
16912
- var O, S;
16913
- return ((O = f.rank) !== null && O !== void 0 ? O : 1e9) - ((S = d.rank) !== null && S !== void 0 ? S : 1e9) || (f.name < d.name ? -1 : 1);
16912
+ var p, S;
16913
+ return ((p = f.rank) !== null && p !== void 0 ? p : 1e9) - ((S = d.rank) !== null && S !== void 0 ? S : 1e9) || (f.name < d.name ? -1 : 1);
16914
16914
  };
16915
16915
  for (let f of i.sort(c))
16916
16916
  h -= 1e5, u[f.name] = h;
@@ -17804,16 +17804,16 @@ class Zi {
17804
17804
  break;
17805
17805
  }
17806
17806
  }
17807
- let O = sv(o);
17807
+ let p = sv(o);
17808
17808
  if (o.some((S) => S.from == S.to || S.from == S.to - 1 && i.doc.lineAt(S.from).to == S.from))
17809
17809
  l.add(f, f, ue.widget({
17810
- widget: new ev(O),
17810
+ widget: new ev(p),
17811
17811
  diagnostics: o.slice()
17812
17812
  }));
17813
17813
  else {
17814
- let S = o.reduce((m, p) => p.markClass ? m + " " + p.markClass : m, "");
17814
+ let S = o.reduce((m, O) => O.markClass ? m + " " + O.markClass : m, "");
17815
17815
  l.add(f, d, ue.mark({
17816
- class: "cm-lintRange cm-lintRange-" + O + S,
17816
+ class: "cm-lintRange cm-lintRange-" + p + S,
17817
17817
  diagnostics: o.slice(),
17818
17818
  inclusiveEnd: o.some((m) => m.to > d)
17819
17819
  }));
@@ -18884,9 +18884,9 @@ function Ap(n, e, t, i, s, r) {
18884
18884
  let u = n[l + 1];
18885
18885
  for (let d = l + 3; d < u; d += 2)
18886
18886
  if ((n[d + 1] & o) > 0) {
18887
- let O = n[d];
18888
- if (a.allows(O) && (e.token.value == -1 || e.token.value == O || hv(O, e.token.value, s, r))) {
18889
- e.acceptToken(O);
18887
+ let p = n[d];
18888
+ if (a.allows(p) && (e.token.value == -1 || e.token.value == p || hv(p, e.token.value, s, r))) {
18889
+ e.acceptToken(p);
18890
18890
  break;
18891
18891
  }
18892
18892
  }
@@ -18896,13 +18896,13 @@ function Ap(n, e, t, i, s, r) {
18896
18896
  continue e;
18897
18897
  }
18898
18898
  for (; c < f; ) {
18899
- let d = c + f >> 1, O = u + d + (d << 1), S = n[O], m = n[O + 1] || 65536;
18899
+ let d = c + f >> 1, p = u + d + (d << 1), S = n[p], m = n[p + 1] || 65536;
18900
18900
  if (h < S)
18901
18901
  f = d;
18902
18902
  else if (h >= m)
18903
18903
  c = d + 1;
18904
18904
  else {
18905
- l = n[O + 2], e.advance();
18905
+ l = n[p + 2], e.advance();
18906
18906
  continue e;
18907
18907
  }
18908
18908
  }
@@ -19191,13 +19191,13 @@ class fv {
19191
19191
  ;
19192
19192
  let a = this.tokens.getActions(e);
19193
19193
  for (let u = 0; u < a.length; ) {
19194
- let h = a[u++], c = a[u++], f = a[u++], d = u == a.length || !i, O = d ? e : e.split(), S = this.tokens.mainToken;
19195
- if (O.apply(h, c, S ? S.start : O.pos, f), Ot && console.log(l + this.stackID(O) + ` (via ${h & 65536 ? `reduce of ${r.getName(
19194
+ let h = a[u++], c = a[u++], f = a[u++], d = u == a.length || !i, p = d ? e : e.split(), S = this.tokens.mainToken;
19195
+ if (p.apply(h, c, S ? S.start : p.pos, f), Ot && console.log(l + this.stackID(p) + ` (via ${h & 65536 ? `reduce of ${r.getName(
19196
19196
  h & 65535
19197
19197
  /* Action.ValueMask */
19198
- )}` : "shift"} for ${r.getName(c)} @ ${s}${O == e ? "" : ", split"})`), d)
19198
+ )}` : "shift"} for ${r.getName(c)} @ ${s}${p == e ? "" : ", split"})`), d)
19199
19199
  return !0;
19200
- O.pos > s ? t.push(O) : i.push(O);
19200
+ p.pos > s ? t.push(p) : i.push(p);
19201
19201
  }
19202
19202
  return !1;
19203
19203
  }
@@ -19968,8 +19968,8 @@ const tx = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19968
19968
  if (i == ">" && c.name == "JSXFragmentTag")
19969
19969
  return { range: a, changes: { from: h, insert: "</>" } };
19970
19970
  if (i == "/" && c.name == "JSXStartCloseTag") {
19971
- let d = c.parent, O = d.parent;
19972
- if (O && d.from == h - 2 && ((f = kc(l.doc, O.firstChild, h)) || ((u = O.firstChild) === null || u === void 0 ? void 0 : u.name) == "JSXFragmentTag")) {
19971
+ let d = c.parent, p = d.parent;
19972
+ if (p && d.from == h - 2 && ((f = kc(l.doc, p.firstChild, h)) || ((u = p.firstChild) === null || u === void 0 ? void 0 : u.name) == "JSXFragmentTag")) {
19973
19973
  let S = `${f}>`;
19974
19974
  return { range: L.cursor(h + S.length, -1), changes: { from: h, insert: S } };
19975
19975
  }
@@ -21509,8 +21509,8 @@ function P$(n, e, t, i, s, r) {
21509
21509
  var l;
21510
21510
  let o = ((l = r == null ? void 0 : r.spec.identifierQuotes) === null || l === void 0 ? void 0 : l[0]) || '"', a = new Oh(o, !!(r != null && r.spec.caseInsensitiveIdentifiers)), u = s ? a.child(s) : null;
21511
21511
  return a.addNamespace(n), e && (u || a).addCompletions(e), t && a.addCompletions(t), u && a.addCompletions(u.list), i && a.addCompletions((u || a).child(i).list), (h) => {
21512
- let { parents: c, from: f, quoted: d, empty: O, aliases: S } = Q$(h.state, h.pos);
21513
- if (O && !h.explicit)
21512
+ let { parents: c, from: f, quoted: d, empty: p, aliases: S } = Q$(h.state, h.pos);
21513
+ if (p && !h.explicit)
21514
21514
  return null;
21515
21515
  S && c.length == 1 && (c = S[c[0]] || c);
21516
21516
  let m = a;
@@ -21527,10 +21527,10 @@ function P$(n, e, t, i, s, r) {
21527
21527
  return null;
21528
21528
  m = k;
21529
21529
  }
21530
- let p = d && h.state.sliceDoc(h.pos, h.pos + 1) == d, Q = m.list;
21530
+ let O = d && h.state.sliceDoc(h.pos, h.pos + 1) == d, Q = m.list;
21531
21531
  return m == a && S && (Q = Q.concat(Object.keys(S).map((Z) => ({ label: Z, type: "constant" })))), {
21532
21532
  from: f,
21533
- to: p ? h.pos + 1 : void 0,
21533
+ to: O ? h.pos + 1 : void 0,
21534
21534
  options: v$(d, Q),
21535
21535
  validFor: d ? $$ : x$
21536
21536
  };
@@ -21902,11 +21902,11 @@ function dm(n = [], e = []) {
21902
21902
  if (u == om && r.length) {
21903
21903
  let h = o.node, c = h.firstChild, f = c && tf(c, a), d;
21904
21904
  if (f) {
21905
- for (let O of r)
21906
- if (O.tag == f && (!O.attrs || O.attrs(d || (d = fm(c, a))))) {
21905
+ for (let p of r)
21906
+ if (p.tag == f && (!p.attrs || p.attrs(d || (d = fm(c, a))))) {
21907
21907
  let S = h.lastChild, m = S.type.id == K$ ? S.from : h.to;
21908
21908
  if (m > c.to)
21909
- return { parser: O.parser, overlay: [{ from: c.to, to: m }] };
21909
+ return { parser: p.parser, overlay: [{ from: c.to, to: m }] };
21910
21910
  }
21911
21911
  }
21912
21912
  }
@@ -21918,13 +21918,13 @@ function dm(n = [], e = []) {
21918
21918
  for (let d of f) {
21919
21919
  if (d.tagName && d.tagName != tf(h.parent, a))
21920
21920
  continue;
21921
- let O = h.lastChild;
21922
- if (O.type.id == va) {
21923
- let S = O.from + 1, m = O.lastChild, p = O.to - (m && m.isError ? 0 : 1);
21924
- if (p > S)
21925
- return { parser: d.parser, overlay: [{ from: S, to: p }] };
21926
- } else if (O.type.id == hm)
21927
- return { parser: d.parser, overlay: [{ from: O.from, to: O.to }] };
21921
+ let p = h.lastChild;
21922
+ if (p.type.id == va) {
21923
+ let S = p.from + 1, m = p.lastChild, O = p.to - (m && m.isError ? 0 : 1);
21924
+ if (O > S)
21925
+ return { parser: d.parser, overlay: [{ from: S, to: O }] };
21926
+ } else if (p.type.id == hm)
21927
+ return { parser: d.parser, overlay: [{ from: p.from, to: p.to }] };
21928
21928
  }
21929
21929
  }
21930
21930
  }
@@ -22191,8 +22191,8 @@ const $P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22191
22191
  if (i == ">" && c.name == "JSXFragmentTag")
22192
22192
  return { range: a, changes: { from: h, insert: "</>" } };
22193
22193
  if (i == "/" && c.name == "JSXStartCloseTag") {
22194
- let d = c.parent, O = d.parent;
22195
- if (O && d.from == h - 2 && ((f = rf(l.doc, O.firstChild, h)) || ((u = O.firstChild) === null || u === void 0 ? void 0 : u.name) == "JSXFragmentTag")) {
22194
+ let d = c.parent, p = d.parent;
22195
+ if (p && d.from == h - 2 && ((f = rf(l.doc, p.firstChild, h)) || ((u = p.firstChild) === null || u === void 0 ? void 0 : u.name) == "JSXFragmentTag")) {
22196
22196
  let S = `${f}>`;
22197
22197
  return { range: L.cursor(h + S.length, -1), changes: { from: h, insert: S } };
22198
22198
  }
@@ -22717,8 +22717,8 @@ function CP(n, e, t, i, s) {
22717
22717
  if (h) {
22718
22718
  let c = n.sliceDoc(i, s).toLowerCase(), f = '"', d = '"';
22719
22719
  /^['"]/.test(c) ? (a = c[0] == '"' ? /^[^"]*$/ : /^[^']*$/, f = "", d = n.sliceDoc(s, s + 1) == c[0] ? "" : c[0], c = c.slice(1), i++) : a = /^[^\s<>='"]*$/;
22720
- for (let O of h)
22721
- o.push({ label: O, apply: f + O + d, type: "constant" });
22720
+ for (let p of h)
22721
+ o.push({ label: p, apply: f + p + d, type: "constant" });
22722
22722
  }
22723
22723
  }
22724
22724
  return { from: i, to: s, options: o, validFor: a };
@@ -22839,20 +22839,20 @@ const af = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb
22839
22839
  return !1;
22840
22840
  let r = s(), { state: l } = r, o = l.changeByRange((a) => {
22841
22841
  var u, h, c;
22842
- let f = l.doc.sliceString(a.from - 1, a.to) == i, { head: d } = a, O = Ve(l).resolveInner(d, -1), S;
22843
- if (f && i == ">" && O.name == "EndTag") {
22844
- let m = O.parent;
22842
+ let f = l.doc.sliceString(a.from - 1, a.to) == i, { head: d } = a, p = Ve(l).resolveInner(d, -1), S;
22843
+ if (f && i == ">" && p.name == "EndTag") {
22844
+ let m = p.parent;
22845
22845
  if (((h = (u = m.parent) === null || u === void 0 ? void 0 : u.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (S = mn(l.doc, m.parent, d)) && !af.has(S)) {
22846
- let p = d + (l.doc.sliceString(d, d + 1) === ">" ? 1 : 0), Q = `</${S}>`;
22847
- return { range: a, changes: { from: d, to: p, insert: Q } };
22846
+ let O = d + (l.doc.sliceString(d, d + 1) === ">" ? 1 : 0), Q = `</${S}>`;
22847
+ return { range: a, changes: { from: d, to: O, insert: Q } };
22848
22848
  }
22849
- } else if (f && i == "/" && O.name == "IncompleteCloseTag") {
22850
- let m = O.parent;
22851
- if (O.from == d - 2 && ((c = m.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (S = mn(l.doc, m, d)) && !af.has(S)) {
22852
- let p = d + (l.doc.sliceString(d, d + 1) === ">" ? 1 : 0), Q = `${S}>`;
22849
+ } else if (f && i == "/" && p.name == "IncompleteCloseTag") {
22850
+ let m = p.parent;
22851
+ if (p.from == d - 2 && ((c = m.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (S = mn(l.doc, m, d)) && !af.has(S)) {
22852
+ let O = d + (l.doc.sliceString(d, d + 1) === ">" ? 1 : 0), Q = `${S}>`;
22853
22853
  return {
22854
22854
  range: L.cursor(d + Q.length, -1),
22855
- changes: { from: d, to: p, insert: Q }
22855
+ changes: { from: d, to: O, insert: Q }
22856
22856
  };
22857
22857
  }
22858
22858
  }
@@ -23418,9 +23418,9 @@ function er() {
23418
23418
  START: t.START,
23419
23419
  RAW: t.RAW,
23420
23420
  EOF: t.EOF
23421
- }, u = new i(/\/\*/, /\*\//), h = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, c = /[0-9]/, f = /[^\d\.]/, d = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "), O = ">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";
23422
- O = O.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&"), O = "\\?\\.(?!\\d) " + O, O = O.replace(/ /g, "|");
23423
- var S = new RegExp(O), m = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), p = m.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), Q = new RegExp("^(?:" + p.join("|") + ")$"), Z, k = function(x, $) {
23421
+ }, u = new i(/\/\*/, /\*\//), h = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, c = /[0-9]/, f = /[^\d\.]/, d = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "), p = ">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";
23422
+ p = p.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&"), p = "\\?\\.(?!\\d) " + p, p = p.replace(/ /g, "|");
23423
+ var S = new RegExp(p), m = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), O = m.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), Q = new RegExp("^(?:" + O.join("|") + ")$"), Z, k = function(x, $) {
23424
23424
  e.call(this, x, $), this._patterns.whitespace = this._patterns.whitespace.matching(
23425
23425
  /\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,
23426
23426
  /\u2028\u2029/.source
@@ -23614,7 +23614,7 @@ function MP() {
23614
23614
  function f(g, w) {
23615
23615
  return g && g.type === o.RESERVED && a(g.text, w);
23616
23616
  }
23617
- var d = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], O = ["before-newline", "after-newline", "preserve-newline"], S = h(O), m = [S.before_newline, S.preserve_newline], p = {
23617
+ var d = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], p = ["before-newline", "after-newline", "preserve-newline"], S = h(p), m = [S.before_newline, S.preserve_newline], O = {
23618
23618
  BlockStatement: "BlockStatement",
23619
23619
  // 'BLOCK'
23620
23620
  Statement: "Statement",
@@ -23631,7 +23631,7 @@ function MP() {
23631
23631
  //'(EXPRESSION)'
23632
23632
  };
23633
23633
  function Q(g, w) {
23634
- w.multiline_frame || w.mode === p.ForInitializer || w.mode === p.Conditional || g.remove_indent(w.start_line_index);
23634
+ w.multiline_frame || w.mode === O.ForInitializer || w.mode === O.Conditional || g.remove_indent(w.start_line_index);
23635
23635
  }
23636
23636
  function Z(g) {
23637
23637
  g = g.replace(t.allLineBreaks, `
@@ -23643,10 +23643,10 @@ function MP() {
23643
23643
  return g.length && w.push(g), w;
23644
23644
  }
23645
23645
  function k(g) {
23646
- return g === p.ArrayLiteral;
23646
+ return g === O.ArrayLiteral;
23647
23647
  }
23648
23648
  function R(g) {
23649
- return a(g, [p.Expression, p.ForInitializer, p.Conditional]);
23649
+ return a(g, [O.Expression, O.ForInitializer, O.Conditional]);
23650
23650
  }
23651
23651
  function x(g, w) {
23652
23652
  for (var X = 0; X < g.length; X++) {
@@ -23703,7 +23703,7 @@ function MP() {
23703
23703
  return V;
23704
23704
  }, P.prototype._reset = function(g) {
23705
23705
  var w = g.match(/^[\t ]*/)[0];
23706
- this._last_last_text = "", this._output = new n(this._options, w), this._output.raw = this._options.test_output_raw, this._flag_store = [], this.set_mode(p.BlockStatement);
23706
+ this._last_last_text = "", this._output = new n(this._options, w), this._output.raw = this._options.test_output_raw, this._flag_store = [], this.set_mode(O.BlockStatement);
23707
23707
  var X = new s(g, this._options);
23708
23708
  return this._tokens = X.tokenize(), g;
23709
23709
  }, P.prototype.beautify = function() {
@@ -23749,7 +23749,7 @@ function MP() {
23749
23749
  }
23750
23750
  }, P.prototype.print_newline = function(g, w) {
23751
23751
  if (!w && this._flags.last_token.text !== ";" && this._flags.last_token.text !== "," && this._flags.last_token.text !== "=" && (this._flags.last_token.type !== o.OPERATOR || this._flags.last_token.text === "--" || this._flags.last_token.text === "++"))
23752
- for (var X = this._tokens.peek(); this._flags.mode === p.Statement && !(this._flags.if_block && c(X, "else")) && !this._flags.do_block; )
23752
+ for (var X = this._tokens.peek(); this._flags.mode === O.Statement && !(this._flags.if_block && c(X, "else")) && !this._flags.do_block; )
23753
23753
  this.restore_mode();
23754
23754
  this._output.add_new_line(g) && (this._flags.multiline_frame = !0);
23755
23755
  }, P.prototype.print_token_line_indentation = function(g) {
@@ -23771,27 +23771,27 @@ function MP() {
23771
23771
  }, P.prototype.set_mode = function(g) {
23772
23772
  this._flags ? (this._flag_store.push(this._flags), this._previous_flags = this._flags) : this._previous_flags = this.create_flags(null, g), this._flags = this.create_flags(this._previous_flags, g), this._output.set_indent(this._flags.indentation_level, this._flags.alignment);
23773
23773
  }, P.prototype.restore_mode = function() {
23774
- this._flag_store.length > 0 && (this._previous_flags = this._flags, this._flags = this._flag_store.pop(), this._previous_flags.mode === p.Statement && Q(this._output, this._previous_flags), this._output.set_indent(this._flags.indentation_level, this._flags.alignment));
23774
+ this._flag_store.length > 0 && (this._previous_flags = this._flags, this._flags = this._flag_store.pop(), this._previous_flags.mode === O.Statement && Q(this._output, this._previous_flags), this._output.set_indent(this._flags.indentation_level, this._flags.alignment));
23775
23775
  }, P.prototype.start_of_object_property = function() {
23776
- return this._flags.parent.mode === p.ObjectLiteral && this._flags.mode === p.Statement && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || f(this._flags.last_token, ["get", "set"]));
23776
+ return this._flags.parent.mode === O.ObjectLiteral && this._flags.mode === O.Statement && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || f(this._flags.last_token, ["get", "set"]));
23777
23777
  }, P.prototype.start_of_statement = function(g) {
23778
23778
  var w = !1;
23779
- return w = w || f(this._flags.last_token, ["var", "let", "const"]) && g.type === o.WORD, w = w || c(this._flags.last_token, "do"), w = w || !(this._flags.parent.mode === p.ObjectLiteral && this._flags.mode === p.Statement) && f(this._flags.last_token, C) && !g.newlines, w = w || c(this._flags.last_token, "else") && !(c(g, "if") && !g.comments_before), w = w || this._flags.last_token.type === o.END_EXPR && (this._previous_flags.mode === p.ForInitializer || this._previous_flags.mode === p.Conditional), w = w || this._flags.last_token.type === o.WORD && this._flags.mode === p.BlockStatement && !this._flags.in_case && !(g.text === "--" || g.text === "++") && this._last_last_text !== "function" && g.type !== o.WORD && g.type !== o.RESERVED, w = w || this._flags.mode === p.ObjectLiteral && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || f(this._flags.last_token, ["get", "set"])), w ? (this.set_mode(p.Statement), this.indent(), this.handle_whitespace_and_comments(g, !0), this.start_of_object_property() || this.allow_wrap_or_preserved_newline(
23779
+ return w = w || f(this._flags.last_token, ["var", "let", "const"]) && g.type === o.WORD, w = w || c(this._flags.last_token, "do"), w = w || !(this._flags.parent.mode === O.ObjectLiteral && this._flags.mode === O.Statement) && f(this._flags.last_token, C) && !g.newlines, w = w || c(this._flags.last_token, "else") && !(c(g, "if") && !g.comments_before), w = w || this._flags.last_token.type === o.END_EXPR && (this._previous_flags.mode === O.ForInitializer || this._previous_flags.mode === O.Conditional), w = w || this._flags.last_token.type === o.WORD && this._flags.mode === O.BlockStatement && !this._flags.in_case && !(g.text === "--" || g.text === "++") && this._last_last_text !== "function" && g.type !== o.WORD && g.type !== o.RESERVED, w = w || this._flags.mode === O.ObjectLiteral && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || f(this._flags.last_token, ["get", "set"])), w ? (this.set_mode(O.Statement), this.indent(), this.handle_whitespace_and_comments(g, !0), this.start_of_object_property() || this.allow_wrap_or_preserved_newline(
23780
23780
  g,
23781
23781
  f(g, ["do", "for", "if", "while"])
23782
23782
  ), !0) : !1;
23783
23783
  }, P.prototype.handle_start_expr = function(g) {
23784
23784
  this.start_of_statement(g) || this.handle_whitespace_and_comments(g);
23785
- var w = p.Expression;
23785
+ var w = O.Expression;
23786
23786
  if (g.text === "[") {
23787
23787
  if (this._flags.last_token.type === o.WORD || this._flags.last_token.text === ")") {
23788
23788
  f(this._flags.last_token, r) && (this._output.space_before_token = !0), this.print_token(g), this.set_mode(w), this.indent(), this._options.space_in_paren && (this._output.space_before_token = !0);
23789
23789
  return;
23790
23790
  }
23791
- w = p.ArrayLiteral, k(this._flags.mode) && (this._flags.last_token.text === "[" || this._flags.last_token.text === "," && (this._last_last_text === "]" || this._last_last_text === "}")) && (this._options.keep_array_indentation || this.print_newline()), a(this._flags.last_token.type, [o.START_EXPR, o.END_EXPR, o.WORD, o.OPERATOR, o.DOT]) || (this._output.space_before_token = !0);
23791
+ w = O.ArrayLiteral, k(this._flags.mode) && (this._flags.last_token.text === "[" || this._flags.last_token.text === "," && (this._last_last_text === "]" || this._last_last_text === "}")) && (this._options.keep_array_indentation || this.print_newline()), a(this._flags.last_token.type, [o.START_EXPR, o.END_EXPR, o.WORD, o.OPERATOR, o.DOT]) || (this._output.space_before_token = !0);
23792
23792
  } else {
23793
23793
  if (this._flags.last_token.type === o.RESERVED)
23794
- this._flags.last_token.text === "for" ? (this._output.space_before_token = this._options.space_before_conditional, w = p.ForInitializer) : a(this._flags.last_token.text, ["if", "while", "switch"]) ? (this._output.space_before_token = this._options.space_before_conditional, w = p.Conditional) : a(this._flags.last_word, ["await", "async"]) ? this._output.space_before_token = !0 : this._flags.last_token.text === "import" && g.whitespace_before === "" ? this._output.space_before_token = !1 : (a(this._flags.last_token.text, r) || this._flags.last_token.text === "catch") && (this._output.space_before_token = !0);
23794
+ this._flags.last_token.text === "for" ? (this._output.space_before_token = this._options.space_before_conditional, w = O.ForInitializer) : a(this._flags.last_token.text, ["if", "while", "switch"]) ? (this._output.space_before_token = this._options.space_before_conditional, w = O.Conditional) : a(this._flags.last_word, ["await", "async"]) ? this._output.space_before_token = !0 : this._flags.last_token.text === "import" && g.whitespace_before === "" ? this._output.space_before_token = !1 : (a(this._flags.last_token.text, r) || this._flags.last_token.text === "catch") && (this._output.space_before_token = !0);
23795
23795
  else if (this._flags.last_token.type === o.EQUALS || this._flags.last_token.type === o.OPERATOR)
23796
23796
  this.start_of_object_property() || this.allow_wrap_or_preserved_newline(g);
23797
23797
  else if (this._flags.last_token.type === o.WORD) {
@@ -23799,24 +23799,24 @@ function MP() {
23799
23799
  var X = this._tokens.peek(-3);
23800
23800
  if (this._options.space_after_named_function && X) {
23801
23801
  var V = this._tokens.peek(-4);
23802
- f(X, ["async", "function"]) || X.text === "*" && f(V, ["async", "function"]) ? this._output.space_before_token = !0 : this._flags.mode === p.ObjectLiteral ? (X.text === "{" || X.text === "," || X.text === "*" && (V.text === "{" || V.text === ",")) && (this._output.space_before_token = !0) : this._flags.parent && this._flags.parent.class_start_block && (this._output.space_before_token = !0);
23802
+ f(X, ["async", "function"]) || X.text === "*" && f(V, ["async", "function"]) ? this._output.space_before_token = !0 : this._flags.mode === O.ObjectLiteral ? (X.text === "{" || X.text === "," || X.text === "*" && (V.text === "{" || V.text === ",")) && (this._output.space_before_token = !0) : this._flags.parent && this._flags.parent.class_start_block && (this._output.space_before_token = !0);
23803
23803
  }
23804
23804
  } else
23805
23805
  this.allow_wrap_or_preserved_newline(g);
23806
- (this._flags.last_token.type === o.RESERVED && (this._flags.last_word === "function" || this._flags.last_word === "typeof") || this._flags.last_token.text === "*" && (a(this._last_last_text, ["function", "yield"]) || this._flags.mode === p.ObjectLiteral && a(this._last_last_text, ["{", ","]))) && (this._output.space_before_token = this._options.space_after_anon_function);
23806
+ (this._flags.last_token.type === o.RESERVED && (this._flags.last_word === "function" || this._flags.last_word === "typeof") || this._flags.last_token.text === "*" && (a(this._last_last_text, ["function", "yield"]) || this._flags.mode === O.ObjectLiteral && a(this._last_last_text, ["{", ","]))) && (this._output.space_before_token = this._options.space_after_anon_function);
23807
23807
  }
23808
23808
  this._flags.last_token.text === ";" || this._flags.last_token.type === o.START_BLOCK ? this.print_newline() : (this._flags.last_token.type === o.END_EXPR || this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.END_BLOCK || this._flags.last_token.text === "." || this._flags.last_token.type === o.COMMA) && this.allow_wrap_or_preserved_newline(g, g.newlines), this.print_token(g), this.set_mode(w), this._options.space_in_paren && (this._output.space_before_token = !0), this.indent();
23809
23809
  }, P.prototype.handle_end_expr = function(g) {
23810
- for (; this._flags.mode === p.Statement; )
23810
+ for (; this._flags.mode === O.Statement; )
23811
23811
  this.restore_mode();
23812
23812
  this.handle_whitespace_and_comments(g), this._flags.multiline_frame && this.allow_wrap_or_preserved_newline(
23813
23813
  g,
23814
23814
  g.text === "]" && k(this._flags.mode) && !this._options.keep_array_indentation
23815
- ), this._options.space_in_paren && (this._flags.last_token.type === o.START_EXPR && !this._options.space_in_empty_paren ? (this._output.trim(), this._output.space_before_token = !1) : this._output.space_before_token = !0), this.deindent(), this.print_token(g), this.restore_mode(), Q(this._output, this._previous_flags), this._flags.do_while && this._previous_flags.mode === p.Conditional && (this._previous_flags.mode = p.Expression, this._flags.do_block = !1, this._flags.do_while = !1);
23815
+ ), this._options.space_in_paren && (this._flags.last_token.type === o.START_EXPR && !this._options.space_in_empty_paren ? (this._output.trim(), this._output.space_before_token = !1) : this._output.space_before_token = !0), this.deindent(), this.print_token(g), this.restore_mode(), Q(this._output, this._previous_flags), this._flags.do_while && this._previous_flags.mode === O.Conditional && (this._previous_flags.mode = O.Expression, this._flags.do_block = !1, this._flags.do_while = !1);
23816
23816
  }, P.prototype.handle_start_block = function(g) {
23817
23817
  this.handle_whitespace_and_comments(g);
23818
23818
  var w = this._tokens.peek(), X = this._tokens.peek(1);
23819
- this._flags.last_word === "switch" && this._flags.last_token.type === o.END_EXPR ? (this.set_mode(p.BlockStatement), this._flags.in_case_statement = !0) : this._flags.case_body ? this.set_mode(p.BlockStatement) : X && (a(X.text, [":", ","]) && a(w.type, [o.STRING, o.WORD, o.RESERVED]) || a(w.text, ["get", "set", "..."]) && a(X.type, [o.WORD, o.RESERVED])) ? a(this._last_last_text, ["class", "interface"]) && !a(X.text, [":", ","]) ? this.set_mode(p.BlockStatement) : this.set_mode(p.ObjectLiteral) : this._flags.last_token.type === o.OPERATOR && this._flags.last_token.text === "=>" ? this.set_mode(p.BlockStatement) : a(this._flags.last_token.type, [o.EQUALS, o.START_EXPR, o.COMMA, o.OPERATOR]) || f(this._flags.last_token, ["return", "throw", "import", "default"]) ? this.set_mode(p.ObjectLiteral) : this.set_mode(p.BlockStatement), this._flags.last_token && f(this._flags.last_token.previous, ["class", "extends"]) && (this._flags.class_start_block = !0);
23819
+ this._flags.last_word === "switch" && this._flags.last_token.type === o.END_EXPR ? (this.set_mode(O.BlockStatement), this._flags.in_case_statement = !0) : this._flags.case_body ? this.set_mode(O.BlockStatement) : X && (a(X.text, [":", ","]) && a(w.type, [o.STRING, o.WORD, o.RESERVED]) || a(w.text, ["get", "set", "..."]) && a(X.type, [o.WORD, o.RESERVED])) ? a(this._last_last_text, ["class", "interface"]) && !a(X.text, [":", ","]) ? this.set_mode(O.BlockStatement) : this.set_mode(O.ObjectLiteral) : this._flags.last_token.type === o.OPERATOR && this._flags.last_token.text === "=>" ? this.set_mode(O.BlockStatement) : a(this._flags.last_token.type, [o.EQUALS, o.START_EXPR, o.COMMA, o.OPERATOR]) || f(this._flags.last_token, ["return", "throw", "import", "default"]) ? this.set_mode(O.ObjectLiteral) : this.set_mode(O.BlockStatement), this._flags.last_token && f(this._flags.last_token.previous, ["class", "extends"]) && (this._flags.class_start_block = !0);
23820
23820
  var V = !w.comments_before && w.text === "}", A = V && this._flags.last_word === "function" && this._flags.last_token.type === o.END_EXPR;
23821
23821
  if (this._options.brace_preserve_inline) {
23822
23822
  var I = 0, W = null;
@@ -23830,19 +23830,19 @@ function MP() {
23830
23830
  }
23831
23831
  (this._options.brace_style === "expand" || this._options.brace_style === "none" && g.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== o.OPERATOR && (A || this._flags.last_token.type === o.EQUALS || f(this._flags.last_token, d) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : (k(this._previous_flags.mode) && (this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.COMMA) && ((this._flags.last_token.type === o.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(g), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== o.OPERATOR && this._flags.last_token.type !== o.START_EXPR && (a(this._flags.last_token.type, [o.START_BLOCK, o.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(g), this.indent(), !V && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline();
23832
23832
  }, P.prototype.handle_end_block = function(g) {
23833
- for (this.handle_whitespace_and_comments(g); this._flags.mode === p.Statement; )
23833
+ for (this.handle_whitespace_and_comments(g); this._flags.mode === O.Statement; )
23834
23834
  this.restore_mode();
23835
23835
  var w = this._flags.last_token.type === o.START_BLOCK;
23836
23836
  this._flags.inline_frame && !w ? this._output.space_before_token = !0 : this._options.brace_style === "expand" ? w || this.print_newline() : w || (k(this._flags.mode) && this._options.keep_array_indentation ? (this._options.keep_array_indentation = !1, this.print_newline(), this._options.keep_array_indentation = !0) : this.print_newline()), this.restore_mode(), this.print_token(g);
23837
23837
  }, P.prototype.handle_word = function(g) {
23838
23838
  if (g.type === o.RESERVED) {
23839
- if (a(g.text, ["set", "get"]) && this._flags.mode !== p.ObjectLiteral)
23839
+ if (a(g.text, ["set", "get"]) && this._flags.mode !== O.ObjectLiteral)
23840
23840
  g.type = o.WORD;
23841
23841
  else if (g.text === "import" && a(this._tokens.peek().text, ["(", "."]))
23842
23842
  g.type = o.WORD;
23843
23843
  else if (a(g.text, ["as", "from"]) && !this._flags.import_block)
23844
23844
  g.type = o.WORD;
23845
- else if (this._flags.mode === p.ObjectLiteral) {
23845
+ else if (this._flags.mode === O.ObjectLiteral) {
23846
23846
  var w = this._tokens.peek();
23847
23847
  w.text === ":" && (g.type = o.WORD);
23848
23848
  }
@@ -23857,7 +23857,7 @@ function MP() {
23857
23857
  if (!this._flags.else_block && c(g, "else"))
23858
23858
  this._flags.else_block = !0;
23859
23859
  else {
23860
- for (; this._flags.mode === p.Statement; )
23860
+ for (; this._flags.mode === O.Statement; )
23861
23861
  this.restore_mode();
23862
23862
  this._flags.if_block = !1, this._flags.else_block = !1;
23863
23863
  }
@@ -23866,13 +23866,13 @@ function MP() {
23866
23866
  return;
23867
23867
  }
23868
23868
  if ((this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.EQUALS || this._flags.last_token.type === o.OPERATOR) && !this.start_of_object_property() && !// start of object property is different for numeric values with +/- prefix operators
23869
- (a(this._flags.last_token.text, ["+", "-"]) && this._last_last_text === ":" && this._flags.parent.mode === p.ObjectLiteral) && this.allow_wrap_or_preserved_newline(g), c(g, "function")) {
23869
+ (a(this._flags.last_token.text, ["+", "-"]) && this._last_last_text === ":" && this._flags.parent.mode === O.ObjectLiteral) && this.allow_wrap_or_preserved_newline(g), c(g, "function")) {
23870
23870
  (a(this._flags.last_token.text, ["}", ";"]) || this._output.just_added_newline() && !(a(this._flags.last_token.text, ["(", "[", "{", ":", "=", ","]) || this._flags.last_token.type === o.OPERATOR)) && !this._output.just_added_blankline() && !g.comments_before && (this.print_newline(), this.print_newline(!0)), this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD ? f(this._flags.last_token, ["get", "set", "new", "export"]) || f(this._flags.last_token, C) ? this._output.space_before_token = !0 : c(this._flags.last_token, "default") && this._last_last_text === "export" ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" ? this._output.space_before_token = !0 : this.print_newline() : this._flags.last_token.type === o.OPERATOR || this._flags.last_token.text === "=" ? this._output.space_before_token = !0 : !this._flags.multiline_frame && (R(this._flags.mode) || k(this._flags.mode)) || this.print_newline(), this.print_token(g), this._flags.last_word = g.text;
23871
23871
  return;
23872
23872
  }
23873
23873
  var X = "NONE";
23874
- if (this._flags.last_token.type === o.END_BLOCK ? this._previous_flags.inline_frame ? X = "SPACE" : f(g, ["else", "catch", "finally", "from"]) ? this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && g.newlines ? X = "NEWLINE" : (X = "SPACE", this._output.space_before_token = !0) : X = "NEWLINE" : this._flags.last_token.type === o.SEMICOLON && this._flags.mode === p.BlockStatement ? X = "NEWLINE" : this._flags.last_token.type === o.SEMICOLON && R(this._flags.mode) ? X = "SPACE" : this._flags.last_token.type === o.STRING ? X = "NEWLINE" : this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD || this._flags.last_token.text === "*" && (a(this._last_last_text, ["function", "yield"]) || this._flags.mode === p.ObjectLiteral && a(this._last_last_text, ["{", ","])) ? X = "SPACE" : this._flags.last_token.type === o.START_BLOCK ? this._flags.inline_frame ? X = "SPACE" : X = "NEWLINE" : this._flags.last_token.type === o.END_EXPR && (this._output.space_before_token = !0, X = "NEWLINE"), f(g, r) && this._flags.last_token.text !== ")" && (this._flags.inline_frame || this._flags.last_token.text === "else" || this._flags.last_token.text === "export" ? X = "SPACE" : X = "NEWLINE"), f(g, ["else", "catch", "finally"]))
23875
- if ((!(this._flags.last_token.type === o.END_BLOCK && this._previous_flags.mode === p.BlockStatement) || this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && g.newlines) && !this._flags.inline_frame)
23874
+ if (this._flags.last_token.type === o.END_BLOCK ? this._previous_flags.inline_frame ? X = "SPACE" : f(g, ["else", "catch", "finally", "from"]) ? this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && g.newlines ? X = "NEWLINE" : (X = "SPACE", this._output.space_before_token = !0) : X = "NEWLINE" : this._flags.last_token.type === o.SEMICOLON && this._flags.mode === O.BlockStatement ? X = "NEWLINE" : this._flags.last_token.type === o.SEMICOLON && R(this._flags.mode) ? X = "SPACE" : this._flags.last_token.type === o.STRING ? X = "NEWLINE" : this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD || this._flags.last_token.text === "*" && (a(this._last_last_text, ["function", "yield"]) || this._flags.mode === O.ObjectLiteral && a(this._last_last_text, ["{", ","])) ? X = "SPACE" : this._flags.last_token.type === o.START_BLOCK ? this._flags.inline_frame ? X = "SPACE" : X = "NEWLINE" : this._flags.last_token.type === o.END_EXPR && (this._output.space_before_token = !0, X = "NEWLINE"), f(g, r) && this._flags.last_token.text !== ")" && (this._flags.inline_frame || this._flags.last_token.text === "else" || this._flags.last_token.text === "export" ? X = "SPACE" : X = "NEWLINE"), f(g, ["else", "catch", "finally"]))
23875
+ if ((!(this._flags.last_token.type === o.END_BLOCK && this._previous_flags.mode === O.BlockStatement) || this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && g.newlines) && !this._flags.inline_frame)
23876
23876
  this.print_newline();
23877
23877
  else {
23878
23878
  this._output.trim(!0);
@@ -23884,7 +23884,7 @@ function MP() {
23884
23884
  g.previous && (g.previous.type === o.WORD || g.previous.type === o.RESERVED) && (this._output.space_before_token = !0), this.print_token(g), this._flags.last_word = g.text, g.type === o.RESERVED && (g.text === "do" ? this._flags.do_block = !0 : g.text === "if" ? this._flags.if_block = !0 : g.text === "import" ? this._flags.import_block = !0 : this._flags.import_block && c(g, "from") && (this._flags.import_block = !1));
23885
23885
  }, P.prototype.handle_semicolon = function(g) {
23886
23886
  this.start_of_statement(g) ? this._output.space_before_token = !1 : this.handle_whitespace_and_comments(g);
23887
- for (var w = this._tokens.peek(); this._flags.mode === p.Statement && !(this._flags.if_block && c(w, "else")) && !this._flags.do_block; )
23887
+ for (var w = this._tokens.peek(); this._flags.mode === O.Statement && !(this._flags.if_block && c(w, "else")) && !this._flags.do_block; )
23888
23888
  this.restore_mode();
23889
23889
  this._flags.import_block && (this._flags.import_block = !1), this.print_token(g);
23890
23890
  }, P.prototype.handle_string = function(g) {
@@ -23892,7 +23892,7 @@ function MP() {
23892
23892
  }, P.prototype.handle_equals = function(g) {
23893
23893
  this.start_of_statement(g) || this.handle_whitespace_and_comments(g), this._flags.declaration_statement && (this._flags.declaration_assignment = !0), this._output.space_before_token = !0, this.print_token(g), this._output.space_before_token = !0;
23894
23894
  }, P.prototype.handle_comma = function(g) {
23895
- this.handle_whitespace_and_comments(g, !0), this.print_token(g), this._output.space_before_token = !0, this._flags.declaration_statement ? (R(this._flags.parent.mode) && (this._flags.declaration_assignment = !1), this._flags.declaration_assignment ? (this._flags.declaration_assignment = !1, this.print_newline(!1, !0)) : this._options.comma_first && this.allow_wrap_or_preserved_newline(g)) : this._flags.mode === p.ObjectLiteral || this._flags.mode === p.Statement && this._flags.parent.mode === p.ObjectLiteral ? (this._flags.mode === p.Statement && this.restore_mode(), this._flags.inline_frame || this.print_newline()) : this._options.comma_first && this.allow_wrap_or_preserved_newline(g);
23895
+ this.handle_whitespace_and_comments(g, !0), this.print_token(g), this._output.space_before_token = !0, this._flags.declaration_statement ? (R(this._flags.parent.mode) && (this._flags.declaration_assignment = !1), this._flags.declaration_assignment ? (this._flags.declaration_assignment = !1, this.print_newline(!1, !0)) : this._options.comma_first && this.allow_wrap_or_preserved_newline(g)) : this._flags.mode === O.ObjectLiteral || this._flags.mode === O.Statement && this._flags.parent.mode === O.ObjectLiteral ? (this._flags.mode === O.Statement && this.restore_mode(), this._flags.inline_frame || this.print_newline()) : this._options.comma_first && this.allow_wrap_or_preserved_newline(g);
23896
23896
  }, P.prototype.handle_operator = function(g) {
23897
23897
  var w = g.text === "*" && (f(this._flags.last_token, ["function", "yield"]) || a(this._flags.last_token.type, [o.START_BLOCK, o.COMMA, o.END_BLOCK, o.SEMICOLON])), X = a(g.text, ["-", "+"]) && (a(this._flags.last_token.type, [o.START_BLOCK, o.START_EXPR, o.EQUALS, o.OPERATOR]) || a(this._flags.last_token.text, r) || this._flags.last_token.text === ",");
23898
23898
  if (!this.start_of_statement(g)) {
@@ -23941,7 +23941,7 @@ function MP() {
23941
23941
  var Qe = f(this._flags.last_token, d) && g.newlines;
23942
23942
  Qe && (this._previous_flags.if_block || this._previous_flags.else_block) && this.restore_mode(), this.print_newline(Qe, !0);
23943
23943
  }
23944
- this._flags.last_token.text === ";" && R(this._flags.mode) && (A = !0), this._flags.last_token.type === o.RESERVED ? A = !0 : this._flags.last_token.type === o.END_EXPR ? A = !(this._flags.last_token.text === "]" && (g.text === "--" || g.text === "++")) : this._flags.last_token.type === o.OPERATOR && (A = a(g.text, ["--", "-", "++", "+"]) && a(this._flags.last_token.text, ["--", "-", "++", "+"]), a(g.text, ["+", "-"]) && a(this._flags.last_token.text, ["--", "++"]) && (I = !0)), (this._flags.mode === p.BlockStatement && !this._flags.inline_frame || this._flags.mode === p.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline();
23944
+ this._flags.last_token.text === ";" && R(this._flags.mode) && (A = !0), this._flags.last_token.type === o.RESERVED ? A = !0 : this._flags.last_token.type === o.END_EXPR ? A = !(this._flags.last_token.text === "]" && (g.text === "--" || g.text === "++")) : this._flags.last_token.type === o.OPERATOR && (A = a(g.text, ["--", "-", "++", "+"]) && a(this._flags.last_token.text, ["--", "-", "++", "+"]), a(g.text, ["+", "-"]) && a(this._flags.last_token.text, ["--", "++"]) && (I = !0)), (this._flags.mode === O.BlockStatement && !this._flags.inline_frame || this._flags.mode === O.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline();
23945
23945
  }
23946
23946
  this._output.space_before_token = this._output.space_before_token || A, this.print_token(g), this._output.space_before_token = I;
23947
23947
  }, P.prototype.handle_block_comment = function(g, w) {
@@ -23976,7 +23976,7 @@ function MP() {
23976
23976
  this.print_token(g), g.text[g.text.length - 1] === `
23977
23977
  ` && this.print_newline(!1, w);
23978
23978
  }, P.prototype.handle_eof = function(g) {
23979
- for (; this._flags.mode === p.Statement; )
23979
+ for (; this._flags.mode === O.Statement; )
23980
23980
  this.restore_mode();
23981
23981
  this.handle_whitespace_and_comments(g);
23982
23982
  }, ro.Beautifier = P, ro;
@@ -24048,23 +24048,23 @@ function LP() {
24048
24048
  }
24049
24049
  return d;
24050
24050
  }, c.prototype.eatWhitespace = function(f) {
24051
- for (var d = o.test(this._input.peek()), O = 0; o.test(this._input.peek()); )
24051
+ for (var d = o.test(this._input.peek()), p = 0; o.test(this._input.peek()); )
24052
24052
  this._ch = this._input.next(), f && this._ch === `
24053
- ` && (O === 0 || O < this._options.max_preserve_newlines) && (O++, this._output.add_new_line(!0));
24053
+ ` && (p === 0 || p < this._options.max_preserve_newlines) && (p++, this._output.add_new_line(!0));
24054
24054
  return d;
24055
24055
  }, c.prototype.foundNestedPseudoClass = function() {
24056
- for (var f = 0, d = 1, O = this._input.peek(d); O; ) {
24057
- if (O === "{")
24056
+ for (var f = 0, d = 1, p = this._input.peek(d); p; ) {
24057
+ if (p === "{")
24058
24058
  return !0;
24059
- if (O === "(")
24059
+ if (p === "(")
24060
24060
  f += 1;
24061
- else if (O === ")") {
24061
+ else if (p === ")") {
24062
24062
  if (f === 0)
24063
24063
  return !1;
24064
24064
  f -= 1;
24065
- } else if (O === ";" || O === "}")
24065
+ } else if (p === ";" || p === "}")
24066
24066
  return !1;
24067
- d++, O = this._input.peek(d);
24067
+ d++, p = this._input.peek(d);
24068
24068
  }
24069
24069
  return !1;
24070
24070
  }, c.prototype.print_string = function(f) {
@@ -24082,9 +24082,9 @@ function LP() {
24082
24082
  d === "auto" && (d = `
24083
24083
  `, f && r.test(f || "") && (d = f.match(r)[0])), f = f.replace(l, `
24084
24084
  `);
24085
- var O = f.match(/^[\t ]*/)[0];
24086
- this._output = new e(this._options, O), this._input = new t(f), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null;
24087
- for (var S = 0, m = !1, p = !1, Q = !1, Z = !1, k = !1, R = this._ch, x = !1, $, P, C; $ = this._input.read(a), P = $ !== "", C = R, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), R = this._ch, this._ch; )
24085
+ var p = f.match(/^[\t ]*/)[0];
24086
+ this._output = new e(this._options, p), this._input = new t(f), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null;
24087
+ for (var S = 0, m = !1, O = !1, Q = !1, Z = !1, k = !1, R = this._ch, x = !1, $, P, C; $ = this._input.read(a), P = $ !== "", C = R, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), R = this._ch, this._ch; )
24088
24088
  if (this._ch === "/" && this._input.peek() === "*") {
24089
24089
  this._output.add_new_line(), this._input.back();
24090
24090
  var g = this._input.read(u), w = s.get_directives(g);
@@ -24094,45 +24094,45 @@ function LP() {
24094
24094
  else if (this._ch === "$") {
24095
24095
  this.preserveSingleSpace(P), this.print_string(this._ch);
24096
24096
  var X = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
24097
- X.match(/[ :]$/) && (X = this.eatString(": ").replace(/\s+$/, ""), this.print_string(X), this._output.space_before_token = !0), S === 0 && X.indexOf(":") !== -1 && (p = !0, this.indent());
24097
+ X.match(/[ :]$/) && (X = this.eatString(": ").replace(/\s+$/, ""), this.print_string(X), this._output.space_before_token = !0), S === 0 && X.indexOf(":") !== -1 && (O = !0, this.indent());
24098
24098
  } else if (this._ch === "@")
24099
24099
  if (this.preserveSingleSpace(P), this._input.peek() === "{")
24100
24100
  this.print_string(this._ch + this.eatString("}"));
24101
24101
  else {
24102
24102
  this.print_string(this._ch);
24103
24103
  var V = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
24104
- V.match(/[ :]$/) && (V = this.eatString(": ").replace(/\s+$/, ""), this.print_string(V), this._output.space_before_token = !0), S === 0 && V.indexOf(":") !== -1 ? (p = !0, this.indent()) : V in this.NESTED_AT_RULE ? (this._nestedLevel += 1, V in this.CONDITIONAL_GROUP_RULE && (Q = !0)) : S === 0 && !p && (Z = !0);
24104
+ V.match(/[ :]$/) && (V = this.eatString(": ").replace(/\s+$/, ""), this.print_string(V), this._output.space_before_token = !0), S === 0 && V.indexOf(":") !== -1 ? (O = !0, this.indent()) : V in this.NESTED_AT_RULE ? (this._nestedLevel += 1, V in this.CONDITIONAL_GROUP_RULE && (Q = !0)) : S === 0 && !O && (Z = !0);
24105
24105
  }
24106
24106
  else if (this._ch === "#" && this._input.peek() === "{")
24107
24107
  this.preserveSingleSpace(P), this.print_string(this._ch + this.eatString("}"));
24108
24108
  else if (this._ch === "{")
24109
- p && (p = !1, this.outdent()), Z = !1, Q ? (Q = !1, m = this._indentLevel >= this._nestedLevel) : m = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && m && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (C === "(" ? this._output.space_before_token = !1 : C !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
24109
+ O && (O = !1, this.outdent()), Z = !1, Q ? (Q = !1, m = this._indentLevel >= this._nestedLevel) : m = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && m && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (C === "(" ? this._output.space_before_token = !1 : C !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
24110
24110
  else if (this._ch === "}")
24111
- this.outdent(), this._output.add_new_line(), C === "{" && this._output.trim(!0), p && (this.outdent(), p = !1), this.print_string(this._ch), m = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
24111
+ this.outdent(), this._output.add_new_line(), C === "{" && this._output.trim(!0), O && (this.outdent(), O = !1), this.print_string(this._ch), m = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
24112
24112
  else if (this._ch === ":") {
24113
24113
  for (var A = 0; A < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; A++)
24114
24114
  if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[A])) {
24115
24115
  x = !0;
24116
24116
  break;
24117
24117
  }
24118
- (m || Q) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !Z && S === 0 ? (this.print_string(":"), p || (p = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
24118
+ (m || Q) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !Z && S === 0 ? (this.print_string(":"), O || (O = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
24119
24119
  } else if (this._ch === '"' || this._ch === "'") {
24120
24120
  var I = C === '"' || C === "'";
24121
24121
  this.preserveSingleSpace(I || P), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0);
24122
24122
  } else if (this._ch === ";")
24123
- x = !1, S === 0 ? (p && (this.outdent(), p = !1), Z = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
24123
+ x = !1, S === 0 ? (O && (this.outdent(), O = !1), Z = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
24124
24124
  else if (this._ch === "(")
24125
24125
  if (this._input.lookBack("url"))
24126
24126
  this.print_string(this._ch), this.eatWhitespace(), S++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), S && (S--, this.outdent()));
24127
24127
  else {
24128
24128
  var W = !1;
24129
- this._input.lookBack("with") && (W = !0), this.preserveSingleSpace(P || W), this.print_string(this._ch), p && C === "$" && this._options.selector_separator_newline ? (this._output.add_new_line(), k = !0) : (this.eatWhitespace(), S++, this.indent());
24129
+ this._input.lookBack("with") && (W = !0), this.preserveSingleSpace(P || W), this.print_string(this._ch), O && C === "$" && this._options.selector_separator_newline ? (this._output.add_new_line(), k = !0) : (this.eatWhitespace(), S++, this.indent());
24130
24130
  }
24131
24131
  else if (this._ch === ")")
24132
24132
  S && (S--, this.outdent()), k && this._input.peek() === ";" && this._options.selector_separator_newline && (k = !1, this.outdent(), this._output.add_new_line()), this.print_string(this._ch);
24133
24133
  else if (this._ch === ",")
24134
- this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!p || k) && S === 0 && !Z ? this._output.add_new_line() : this._output.space_before_token = !0;
24135
- else if ((this._ch === ">" || this._ch === "+" || this._ch === "~") && !p && S === 0)
24134
+ this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!O || k) && S === 0 && !Z ? this._output.add_new_line() : this._output.space_before_token = !0;
24135
+ else if ((this._ch === ">" || this._ch === "+" || this._ch === "~") && !O && S === 0)
24136
24136
  this._options.space_around_combinator ? (this._output.space_before_token = !0, this.print_string(this._ch), this._output.space_before_token = !0) : (this.print_string(this._ch), this.eatWhitespace(), this._ch && o.test(this._ch) && (this._ch = ""));
24137
24137
  else if (this._ch === "]")
24138
24138
  this.print_string(this._ch);
@@ -24356,10 +24356,10 @@ function Cf() {
24356
24356
  if (h = this.__patterns.angular_control_flow_start.read(), h === "")
24357
24357
  return c;
24358
24358
  for (var f = h.endsWith("(") ? 1 : 0, d = 0; !(h.endsWith("{") && f === d); ) {
24359
- var O = this._input.next();
24360
- if (O === null)
24359
+ var p = this._input.next();
24360
+ if (p === null)
24361
24361
  break;
24362
- O === "(" ? f++ : O === ")" && d++, h += O;
24362
+ p === "(" ? f++ : p === ")" && d++, h += p;
24363
24363
  }
24364
24364
  c = this._create_token(r.CONTROL_FLOW_OPEN, h);
24365
24365
  } else
@@ -24413,23 +24413,23 @@ function zP() {
24413
24413
  if (Rf)
24414
24414
  return bo;
24415
24415
  Rf = 1;
24416
- var n = Em().Options, e = Qh().Output, t = Cf().Tokenizer, i = Cf().TOKEN, s = /\r\n|[\r\n]/, r = /\r\n|[\r\n]/g, l = function(m, p) {
24417
- this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = m.max_preserve_newlines, this.preserve_newlines = m.preserve_newlines, this._output = new e(m, p);
24416
+ var n = Em().Options, e = Qh().Output, t = Cf().Tokenizer, i = Cf().TOKEN, s = /\r\n|[\r\n]/, r = /\r\n|[\r\n]/g, l = function(m, O) {
24417
+ this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = m.max_preserve_newlines, this.preserve_newlines = m.preserve_newlines, this._output = new e(m, O);
24418
24418
  };
24419
24419
  l.prototype.current_line_has_match = function(m) {
24420
24420
  return this._output.current_line.has_match(m);
24421
- }, l.prototype.set_space_before_token = function(m, p) {
24422
- this._output.space_before_token = m, this._output.non_breaking_space = p;
24421
+ }, l.prototype.set_space_before_token = function(m, O) {
24422
+ this._output.space_before_token = m, this._output.non_breaking_space = O;
24423
24423
  }, l.prototype.set_wrap_point = function() {
24424
24424
  this._output.set_indent(this.indent_level, this.alignment_size), this._output.set_wrap_point();
24425
24425
  }, l.prototype.add_raw_token = function(m) {
24426
24426
  this._output.add_raw_token(m);
24427
24427
  }, l.prototype.print_preserved_newlines = function(m) {
24428
- var p = 0;
24429
- m.type !== i.TEXT && m.previous.type !== i.TEXT && (p = m.newlines ? 1 : 0), this.preserve_newlines && (p = m.newlines < this.max_preserve_newlines + 1 ? m.newlines : this.max_preserve_newlines + 1);
24430
- for (var Q = 0; Q < p; Q++)
24428
+ var O = 0;
24429
+ m.type !== i.TEXT && m.previous.type !== i.TEXT && (O = m.newlines ? 1 : 0), this.preserve_newlines && (O = m.newlines < this.max_preserve_newlines + 1 ? m.newlines : this.max_preserve_newlines + 1);
24430
+ for (var Q = 0; Q < O; Q++)
24431
24431
  this.print_newline(Q > 0);
24432
- return p !== 0;
24432
+ return O !== 0;
24433
24433
  }, l.prototype.traverse_whitespace = function(m) {
24434
24434
  return m.whitespace_before || m.newlines ? (this.print_preserved_newlines(m) || (this._output.space_before_token = !0), !0) : !1;
24435
24435
  }, l.prototype.previous_token_wrapped = function() {
@@ -24446,23 +24446,23 @@ function zP() {
24446
24446
  return m = this.indent_level + (m || 0), m < 1 ? "" : this._output.get_indent_string(m);
24447
24447
  };
24448
24448
  var o = function(m) {
24449
- for (var p = null, Q = m.next; Q.type !== i.EOF && m.closed !== Q; ) {
24449
+ for (var O = null, Q = m.next; Q.type !== i.EOF && m.closed !== Q; ) {
24450
24450
  if (Q.type === i.ATTRIBUTE && Q.text === "type") {
24451
- Q.next && Q.next.type === i.EQUALS && Q.next.next && Q.next.next.type === i.VALUE && (p = Q.next.next.text);
24451
+ Q.next && Q.next.type === i.EQUALS && Q.next.next && Q.next.next.type === i.VALUE && (O = Q.next.next.text);
24452
24452
  break;
24453
24453
  }
24454
24454
  Q = Q.next;
24455
24455
  }
24456
- return p;
24457
- }, a = function(m, p) {
24456
+ return O;
24457
+ }, a = function(m, O) {
24458
24458
  var Q = null, Z = null;
24459
- return p.closed ? (m === "script" ? Q = "text/javascript" : m === "style" && (Q = "text/css"), Q = o(p) || Q, Q.search("text/css") > -1 ? Z = "css" : Q.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? Z = "javascript" : Q.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? Z = "html" : Q.search(/test\/null/) > -1 && (Z = "null"), Z) : null;
24459
+ return O.closed ? (m === "script" ? Q = "text/javascript" : m === "style" && (Q = "text/css"), Q = o(O) || Q, Q.search("text/css") > -1 ? Z = "css" : Q.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? Z = "javascript" : Q.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? Z = "html" : Q.search(/test\/null/) > -1 && (Z = "null"), Z) : null;
24460
24460
  };
24461
- function u(m, p) {
24462
- return p.indexOf(m) !== -1;
24461
+ function u(m, O) {
24462
+ return O.indexOf(m) !== -1;
24463
24463
  }
24464
- function h(m, p, Q) {
24465
- this.parent = m || null, this.tag = p ? p.tag_name : "", this.indent_level = Q || 0, this.parser_token = p || null;
24464
+ function h(m, O, Q) {
24465
+ this.parent = m || null, this.tag = O ? O.tag_name : "", this.indent_level = Q || 0, this.parser_token = O || null;
24466
24466
  }
24467
24467
  function c(m) {
24468
24468
  this._printer = m, this._current_frame = null;
@@ -24470,38 +24470,38 @@ function zP() {
24470
24470
  c.prototype.get_parser_token = function() {
24471
24471
  return this._current_frame ? this._current_frame.parser_token : null;
24472
24472
  }, c.prototype.record_tag = function(m) {
24473
- var p = new h(this._current_frame, m, this._printer.indent_level);
24474
- this._current_frame = p;
24473
+ var O = new h(this._current_frame, m, this._printer.indent_level);
24474
+ this._current_frame = O;
24475
24475
  }, c.prototype._try_pop_frame = function(m) {
24476
- var p = null;
24477
- return m && (p = m.parser_token, this._printer.indent_level = m.indent_level, this._current_frame = m.parent), p;
24478
- }, c.prototype._get_frame = function(m, p) {
24476
+ var O = null;
24477
+ return m && (O = m.parser_token, this._printer.indent_level = m.indent_level, this._current_frame = m.parent), O;
24478
+ }, c.prototype._get_frame = function(m, O) {
24479
24479
  for (var Q = this._current_frame; Q && m.indexOf(Q.tag) === -1; ) {
24480
- if (p && p.indexOf(Q.tag) !== -1) {
24480
+ if (O && O.indexOf(Q.tag) !== -1) {
24481
24481
  Q = null;
24482
24482
  break;
24483
24483
  }
24484
24484
  Q = Q.parent;
24485
24485
  }
24486
24486
  return Q;
24487
- }, c.prototype.try_pop = function(m, p) {
24488
- var Q = this._get_frame([m], p);
24487
+ }, c.prototype.try_pop = function(m, O) {
24488
+ var Q = this._get_frame([m], O);
24489
24489
  return this._try_pop_frame(Q);
24490
24490
  }, c.prototype.indent_to_tag = function(m) {
24491
- var p = this._get_frame(m);
24492
- p && (this._printer.indent_level = p.indent_level);
24491
+ var O = this._get_frame(m);
24492
+ O && (this._printer.indent_level = O.indent_level);
24493
24493
  };
24494
- function f(m, p, Q, Z) {
24495
- this._source_text = m || "", p = p || {}, this._js_beautify = Q, this._css_beautify = Z, this._tag_stack = null;
24496
- var k = new n(p, "html");
24494
+ function f(m, O, Q, Z) {
24495
+ this._source_text = m || "", O = O || {}, this._js_beautify = Q, this._css_beautify = Z, this._tag_stack = null;
24496
+ var k = new n(O, "html");
24497
24497
  this._options = k, this._is_wrap_attributes_force = this._options.wrap_attributes.substr(0, 5) === "force", this._is_wrap_attributes_force_expand_multiline = this._options.wrap_attributes === "force-expand-multiline", this._is_wrap_attributes_force_aligned = this._options.wrap_attributes === "force-aligned", this._is_wrap_attributes_aligned_multiple = this._options.wrap_attributes === "aligned-multiple", this._is_wrap_attributes_preserve = this._options.wrap_attributes.substr(0, 8) === "preserve", this._is_wrap_attributes_preserve_aligned = this._options.wrap_attributes === "preserve-aligned";
24498
24498
  }
24499
24499
  f.prototype.beautify = function() {
24500
24500
  if (this._options.disabled)
24501
24501
  return this._source_text;
24502
- var m = this._source_text, p = this._options.eol;
24503
- this._options.eol === "auto" && (p = `
24504
- `, m && s.test(m) && (p = m.match(s)[0])), m = m.replace(r, `
24502
+ var m = this._source_text, O = this._options.eol;
24503
+ this._options.eol === "auto" && (O = `
24504
+ `, m && s.test(m) && (O = m.match(s)[0])), m = m.replace(r, `
24505
24505
  `);
24506
24506
  var Q = m.match(/^[\t ]*/)[0], Z = {
24507
24507
  text: "",
@@ -24510,43 +24510,43 @@ function zP() {
24510
24510
  this._tag_stack = new c(R);
24511
24511
  for (var $ = null, P = x.next(); P.type !== i.EOF; )
24512
24512
  P.type === i.TAG_OPEN || P.type === i.COMMENT ? ($ = this._handle_tag_open(R, P, k, Z, x), k = $) : P.type === i.ATTRIBUTE || P.type === i.EQUALS || P.type === i.VALUE || P.type === i.TEXT && !k.tag_complete ? $ = this._handle_inside_tag(R, P, k, Z) : P.type === i.TAG_CLOSE ? $ = this._handle_tag_close(R, P, k) : P.type === i.TEXT ? $ = this._handle_text(R, P, k) : P.type === i.CONTROL_FLOW_OPEN ? $ = this._handle_control_flow_open(R, P) : P.type === i.CONTROL_FLOW_CLOSE ? $ = this._handle_control_flow_close(R, P) : R.add_raw_token(P), Z = $, P = x.next();
24513
- var C = R._output.get_code(p);
24513
+ var C = R._output.get_code(O);
24514
24514
  return C;
24515
- }, f.prototype._handle_control_flow_open = function(m, p) {
24515
+ }, f.prototype._handle_control_flow_open = function(m, O) {
24516
24516
  var Q = {
24517
- text: p.text,
24518
- type: p.type
24517
+ text: O.text,
24518
+ type: O.type
24519
24519
  };
24520
- return m.set_space_before_token(p.newlines || p.whitespace_before !== "", !0), p.newlines ? m.print_preserved_newlines(p) : m.set_space_before_token(p.newlines || p.whitespace_before !== "", !0), m.print_token(p), m.indent(), Q;
24521
- }, f.prototype._handle_control_flow_close = function(m, p) {
24520
+ return m.set_space_before_token(O.newlines || O.whitespace_before !== "", !0), O.newlines ? m.print_preserved_newlines(O) : m.set_space_before_token(O.newlines || O.whitespace_before !== "", !0), m.print_token(O), m.indent(), Q;
24521
+ }, f.prototype._handle_control_flow_close = function(m, O) {
24522
24522
  var Q = {
24523
- text: p.text,
24524
- type: p.type
24523
+ text: O.text,
24524
+ type: O.type
24525
24525
  };
24526
- return m.deindent(), p.newlines ? m.print_preserved_newlines(p) : m.set_space_before_token(p.newlines || p.whitespace_before !== "", !0), m.print_token(p), Q;
24527
- }, f.prototype._handle_tag_close = function(m, p, Q) {
24526
+ return m.deindent(), O.newlines ? m.print_preserved_newlines(O) : m.set_space_before_token(O.newlines || O.whitespace_before !== "", !0), m.print_token(O), Q;
24527
+ }, f.prototype._handle_tag_close = function(m, O, Q) {
24528
24528
  var Z = {
24529
- text: p.text,
24530
- type: p.type
24529
+ text: O.text,
24530
+ type: O.type
24531
24531
  };
24532
- return m.alignment_size = 0, Q.tag_complete = !0, m.set_space_before_token(p.newlines || p.whitespace_before !== "", !0), Q.is_unformatted ? m.add_raw_token(p) : (Q.tag_start_char === "<" && (m.set_space_before_token(p.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && Q.has_wrapped_attrs && m.print_newline(!1)), m.print_token(p)), Q.indent_content && !(Q.is_unformatted || Q.is_content_unformatted) && (m.indent(), Q.indent_content = !1), !Q.is_inline_element && !(Q.is_unformatted || Q.is_content_unformatted) && m.set_wrap_point(), Z;
24533
- }, f.prototype._handle_inside_tag = function(m, p, Q, Z) {
24532
+ return m.alignment_size = 0, Q.tag_complete = !0, m.set_space_before_token(O.newlines || O.whitespace_before !== "", !0), Q.is_unformatted ? m.add_raw_token(O) : (Q.tag_start_char === "<" && (m.set_space_before_token(O.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && Q.has_wrapped_attrs && m.print_newline(!1)), m.print_token(O)), Q.indent_content && !(Q.is_unformatted || Q.is_content_unformatted) && (m.indent(), Q.indent_content = !1), !Q.is_inline_element && !(Q.is_unformatted || Q.is_content_unformatted) && m.set_wrap_point(), Z;
24533
+ }, f.prototype._handle_inside_tag = function(m, O, Q, Z) {
24534
24534
  var k = Q.has_wrapped_attrs, R = {
24535
- text: p.text,
24536
- type: p.type
24535
+ text: O.text,
24536
+ type: O.type
24537
24537
  };
24538
- return m.set_space_before_token(p.newlines || p.whitespace_before !== "", !0), Q.is_unformatted ? m.add_raw_token(p) : Q.tag_start_char === "{" && p.type === i.TEXT ? m.print_preserved_newlines(p) ? (p.newlines = 0, m.add_raw_token(p)) : m.print_token(p) : (p.type === i.ATTRIBUTE ? m.set_space_before_token(!0) : (p.type === i.EQUALS || p.type === i.VALUE && p.previous.type === i.EQUALS) && m.set_space_before_token(!1), p.type === i.ATTRIBUTE && Q.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (m.traverse_whitespace(p), k = k || p.newlines !== 0), this._is_wrap_attributes_force && Q.attr_count >= this._options.wrap_attributes_min_attrs && (Z.type !== i.TAG_OPEN || // ie. second attribute and beyond
24539
- this._is_wrap_attributes_force_expand_multiline) && (m.print_newline(!1), k = !0)), m.print_token(p), k = k || m.previous_token_wrapped(), Q.has_wrapped_attrs = k), R;
24540
- }, f.prototype._handle_text = function(m, p, Q) {
24538
+ return m.set_space_before_token(O.newlines || O.whitespace_before !== "", !0), Q.is_unformatted ? m.add_raw_token(O) : Q.tag_start_char === "{" && O.type === i.TEXT ? m.print_preserved_newlines(O) ? (O.newlines = 0, m.add_raw_token(O)) : m.print_token(O) : (O.type === i.ATTRIBUTE ? m.set_space_before_token(!0) : (O.type === i.EQUALS || O.type === i.VALUE && O.previous.type === i.EQUALS) && m.set_space_before_token(!1), O.type === i.ATTRIBUTE && Q.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (m.traverse_whitespace(O), k = k || O.newlines !== 0), this._is_wrap_attributes_force && Q.attr_count >= this._options.wrap_attributes_min_attrs && (Z.type !== i.TAG_OPEN || // ie. second attribute and beyond
24539
+ this._is_wrap_attributes_force_expand_multiline) && (m.print_newline(!1), k = !0)), m.print_token(O), k = k || m.previous_token_wrapped(), Q.has_wrapped_attrs = k), R;
24540
+ }, f.prototype._handle_text = function(m, O, Q) {
24541
24541
  var Z = {
24542
- text: p.text,
24542
+ text: O.text,
24543
24543
  type: "TK_CONTENT"
24544
24544
  };
24545
- return Q.custom_beautifier_name ? this._print_custom_beatifier_text(m, p, Q) : Q.is_unformatted || Q.is_content_unformatted ? m.add_raw_token(p) : (m.traverse_whitespace(p), m.print_token(p)), Z;
24546
- }, f.prototype._print_custom_beatifier_text = function(m, p, Q) {
24545
+ return Q.custom_beautifier_name ? this._print_custom_beatifier_text(m, O, Q) : Q.is_unformatted || Q.is_content_unformatted ? m.add_raw_token(O) : (m.traverse_whitespace(O), m.print_token(O)), Z;
24546
+ }, f.prototype._print_custom_beatifier_text = function(m, O, Q) {
24547
24547
  var Z = this;
24548
- if (p.text !== "") {
24549
- var k = p.text, R, x = 1, $ = "", P = "";
24548
+ if (O.text !== "") {
24549
+ var k = O.text, R, x = 1, $ = "", P = "";
24550
24550
  Q.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? R = this._js_beautify : Q.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? R = this._css_beautify : Q.custom_beautifier_name === "html" && (R = function(A, I) {
24551
24551
  var W = new f(A, I, Z._js_beautify, Z._css_beautify);
24552
24552
  return W.beautify();
@@ -24555,12 +24555,12 @@ function zP() {
24555
24555
  if (k = k.replace(/\n[ \t]*$/, ""), Q.custom_beautifier_name !== "html" && k[0] === "<" && k.match(/^(<!--|<!\[CDATA\[)/)) {
24556
24556
  var g = /^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(k);
24557
24557
  if (!g) {
24558
- m.add_raw_token(p);
24558
+ m.add_raw_token(O);
24559
24559
  return;
24560
24560
  }
24561
24561
  $ = C + g[1] + `
24562
24562
  `, k = g[4], g[5] && (P = C + g[5]), k = k.replace(/\n[ \t]*$/, ""), (g[2] || g[3].indexOf(`
24563
- `) !== -1) && (g = g[3].match(/[ \t]+$/), g && (p.whitespace_before = g[0]));
24563
+ `) !== -1) && (g = g[3].match(/[ \t]+$/), g && (O.whitespace_before = g[0]));
24564
24564
  }
24565
24565
  if (k)
24566
24566
  if (R) {
@@ -24572,27 +24572,27 @@ function zP() {
24572
24572
  var X = new w();
24573
24573
  k = R(C + k, X);
24574
24574
  } else {
24575
- var V = p.whitespace_before;
24575
+ var V = O.whitespace_before;
24576
24576
  V && (k = k.replace(new RegExp(`
24577
24577
  (` + V + ")?", "g"), `
24578
24578
  `)), k = C + k.replace(/\n/g, `
24579
24579
  ` + C);
24580
24580
  }
24581
24581
  $ && (k ? k = $ + k + `
24582
- ` + P : k = $ + P), m.print_newline(!1), k && (p.text = k, p.whitespace_before = "", p.newlines = 0, m.add_raw_token(p), m.print_newline(!0));
24582
+ ` + P : k = $ + P), m.print_newline(!1), k && (O.text = k, O.whitespace_before = "", O.newlines = 0, m.add_raw_token(O), m.print_newline(!0));
24583
24583
  }
24584
- }, f.prototype._handle_tag_open = function(m, p, Q, Z, k) {
24585
- var R = this._get_tag_open_token(p);
24586
- if ((Q.is_unformatted || Q.is_content_unformatted) && !Q.is_empty_element && p.type === i.TAG_OPEN && !R.is_start_tag ? (m.add_raw_token(p), R.start_tag_token = this._tag_stack.try_pop(R.tag_name)) : (m.traverse_whitespace(p), this._set_tag_position(m, p, R, Q, Z), R.is_inline_element || m.set_wrap_point(), m.print_token(p)), R.is_start_tag && this._is_wrap_attributes_force) {
24584
+ }, f.prototype._handle_tag_open = function(m, O, Q, Z, k) {
24585
+ var R = this._get_tag_open_token(O);
24586
+ if ((Q.is_unformatted || Q.is_content_unformatted) && !Q.is_empty_element && O.type === i.TAG_OPEN && !R.is_start_tag ? (m.add_raw_token(O), R.start_tag_token = this._tag_stack.try_pop(R.tag_name)) : (m.traverse_whitespace(O), this._set_tag_position(m, O, R, Q, Z), R.is_inline_element || m.set_wrap_point(), m.print_token(O)), R.is_start_tag && this._is_wrap_attributes_force) {
24587
24587
  var x = 0, $;
24588
24588
  do
24589
24589
  $ = k.peek(x), $.type === i.ATTRIBUTE && (R.attr_count += 1), x += 1;
24590
24590
  while ($.type !== i.EOF && $.type !== i.TAG_CLOSE);
24591
24591
  }
24592
- return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (R.alignment_size = p.text.length + 1), !R.tag_complete && !R.is_unformatted && (m.alignment_size = R.alignment_size), R;
24592
+ return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (R.alignment_size = O.text.length + 1), !R.tag_complete && !R.is_unformatted && (m.alignment_size = R.alignment_size), R;
24593
24593
  };
24594
- var d = function(m, p, Q) {
24595
- if (this.parent = p || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !Q)
24594
+ var d = function(m, O, Q) {
24595
+ if (this.parent = O || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !Q)
24596
24596
  this.tag_complete = !0;
24597
24597
  else {
24598
24598
  var Z;
@@ -24602,10 +24602,10 @@ function zP() {
24602
24602
  }
24603
24603
  };
24604
24604
  f.prototype._get_tag_open_token = function(m) {
24605
- var p = new d(this._options, this._tag_stack.get_parser_token(), m);
24606
- return p.alignment_size = this._options.wrap_attributes_indent_size, p.is_end_tag = p.is_end_tag || u(p.tag_check, this._options.void_elements), p.is_empty_element = p.tag_complete || p.is_start_tag && p.is_end_tag, p.is_unformatted = !p.tag_complete && u(p.tag_check, this._options.unformatted), p.is_content_unformatted = !p.is_empty_element && u(p.tag_check, this._options.content_unformatted), p.is_inline_element = u(p.tag_name, this._options.inline) || this._options.inline_custom_elements && p.tag_name.includes("-") || p.tag_start_char === "{", p;
24607
- }, f.prototype._set_tag_position = function(m, p, Q, Z, k) {
24608
- if (Q.is_empty_element || (Q.is_end_tag ? Q.start_tag_token = this._tag_stack.try_pop(Q.tag_name) : (this._do_optional_end_element(Q) && (Q.is_inline_element || m.print_newline(!1)), this._tag_stack.record_tag(Q), (Q.tag_name === "script" || Q.tag_name === "style") && !(Q.is_unformatted || Q.is_content_unformatted) && (Q.custom_beautifier_name = a(Q.tag_check, p)))), u(Q.tag_check, this._options.extra_liners) && (m.print_newline(!1), m._output.just_added_blankline() || m.print_newline(!0)), Q.is_empty_element) {
24605
+ var O = new d(this._options, this._tag_stack.get_parser_token(), m);
24606
+ return O.alignment_size = this._options.wrap_attributes_indent_size, O.is_end_tag = O.is_end_tag || u(O.tag_check, this._options.void_elements), O.is_empty_element = O.tag_complete || O.is_start_tag && O.is_end_tag, O.is_unformatted = !O.tag_complete && u(O.tag_check, this._options.unformatted), O.is_content_unformatted = !O.is_empty_element && u(O.tag_check, this._options.content_unformatted), O.is_inline_element = u(O.tag_name, this._options.inline) || this._options.inline_custom_elements && O.tag_name.includes("-") || O.tag_start_char === "{", O;
24607
+ }, f.prototype._set_tag_position = function(m, O, Q, Z, k) {
24608
+ if (Q.is_empty_element || (Q.is_end_tag ? Q.start_tag_token = this._tag_stack.try_pop(Q.tag_name) : (this._do_optional_end_element(Q) && (Q.is_inline_element || m.print_newline(!1)), this._tag_stack.record_tag(Q), (Q.tag_name === "script" || Q.tag_name === "style") && !(Q.is_unformatted || Q.is_content_unformatted) && (Q.custom_beautifier_name = a(Q.tag_check, O)))), u(Q.tag_check, this._options.extra_liners) && (m.print_newline(!1), m._output.just_added_blankline() || m.print_newline(!0)), Q.is_empty_element) {
24609
24609
  if (Q.tag_start_char === "{" && Q.tag_check === "else") {
24610
24610
  this._tag_stack.indent_to_tag(["if", "unless", "each"]), Q.indent_content = !0;
24611
24611
  var R = m.current_line_has_match(/{{#if/);
@@ -24618,25 +24618,25 @@ function zP() {
24618
24618
  x = Q.start_tag_token && Q.start_tag_token.multiline_content, x = x || !Q.is_inline_element && !(Z.is_inline_element || Z.is_unformatted) && !(k.type === i.TAG_CLOSE && Q.start_tag_token === Z) && k.type !== "TK_CONTENT", (Q.is_content_unformatted || Q.is_unformatted) && (x = !1), x && m.print_newline(!1);
24619
24619
  } else
24620
24620
  Q.indent_content = !Q.custom_beautifier_name, Q.tag_start_char === "<" && (Q.tag_name === "html" ? Q.indent_content = this._options.indent_inner_html : Q.tag_name === "head" ? Q.indent_content = this._options.indent_head_inner_html : Q.tag_name === "body" && (Q.indent_content = this._options.indent_body_inner_html)), !(Q.is_inline_element || Q.is_unformatted) && (k.type !== "TK_CONTENT" || Q.is_content_unformatted) && m.print_newline(!1), this._calcluate_parent_multiline(m, Q);
24621
- }, f.prototype._calcluate_parent_multiline = function(m, p) {
24622
- p.parent && m._output.just_added_newline() && !((p.is_inline_element || p.is_unformatted) && p.parent.is_inline_element) && (p.parent.multiline_content = !0);
24621
+ }, f.prototype._calcluate_parent_multiline = function(m, O) {
24622
+ O.parent && m._output.just_added_newline() && !((O.is_inline_element || O.is_unformatted) && O.parent.is_inline_element) && (O.parent.multiline_content = !0);
24623
24623
  };
24624
- var O = ["address", "article", "aside", "blockquote", "details", "div", "dl", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "main", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"], S = ["a", "audio", "del", "ins", "map", "noscript", "video"];
24624
+ var p = ["address", "article", "aside", "blockquote", "details", "div", "dl", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "main", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"], S = ["a", "audio", "del", "ins", "map", "noscript", "video"];
24625
24625
  return f.prototype._do_optional_end_element = function(m) {
24626
- var p = null;
24626
+ var O = null;
24627
24627
  if (!(m.is_empty_element || !m.is_start_tag || !m.parent)) {
24628
24628
  if (m.tag_name === "body")
24629
- p = p || this._tag_stack.try_pop("head");
24629
+ O = O || this._tag_stack.try_pop("head");
24630
24630
  else if (m.tag_name === "li")
24631
- p = p || this._tag_stack.try_pop("li", ["ol", "ul", "menu"]);
24631
+ O = O || this._tag_stack.try_pop("li", ["ol", "ul", "menu"]);
24632
24632
  else if (m.tag_name === "dd" || m.tag_name === "dt")
24633
- p = p || this._tag_stack.try_pop("dt", ["dl"]), p = p || this._tag_stack.try_pop("dd", ["dl"]);
24634
- else if (m.parent.tag_name === "p" && O.indexOf(m.tag_name) !== -1) {
24633
+ O = O || this._tag_stack.try_pop("dt", ["dl"]), O = O || this._tag_stack.try_pop("dd", ["dl"]);
24634
+ else if (m.parent.tag_name === "p" && p.indexOf(m.tag_name) !== -1) {
24635
24635
  var Q = m.parent.parent;
24636
- (!Q || S.indexOf(Q.tag_name) === -1) && (p = p || this._tag_stack.try_pop("p"));
24636
+ (!Q || S.indexOf(Q.tag_name) === -1) && (O = O || this._tag_stack.try_pop("p"));
24637
24637
  } else
24638
- m.tag_name === "rp" || m.tag_name === "rt" ? (p = p || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), p = p || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : m.tag_name === "optgroup" ? p = p || this._tag_stack.try_pop("optgroup", ["select"]) : m.tag_name === "option" ? p = p || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : m.tag_name === "colgroup" ? p = p || this._tag_stack.try_pop("caption", ["table"]) : m.tag_name === "thead" ? (p = p || this._tag_stack.try_pop("caption", ["table"]), p = p || this._tag_stack.try_pop("colgroup", ["table"])) : m.tag_name === "tbody" || m.tag_name === "tfoot" ? (p = p || this._tag_stack.try_pop("caption", ["table"]), p = p || this._tag_stack.try_pop("colgroup", ["table"]), p = p || this._tag_stack.try_pop("thead", ["table"]), p = p || this._tag_stack.try_pop("tbody", ["table"])) : m.tag_name === "tr" ? (p = p || this._tag_stack.try_pop("caption", ["table"]), p = p || this._tag_stack.try_pop("colgroup", ["table"]), p = p || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (m.tag_name === "th" || m.tag_name === "td") && (p = p || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), p = p || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
24639
- return m.parent = this._tag_stack.get_parser_token(), p;
24638
+ m.tag_name === "rp" || m.tag_name === "rt" ? (O = O || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), O = O || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : m.tag_name === "optgroup" ? O = O || this._tag_stack.try_pop("optgroup", ["select"]) : m.tag_name === "option" ? O = O || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : m.tag_name === "colgroup" ? O = O || this._tag_stack.try_pop("caption", ["table"]) : m.tag_name === "thead" ? (O = O || this._tag_stack.try_pop("caption", ["table"]), O = O || this._tag_stack.try_pop("colgroup", ["table"])) : m.tag_name === "tbody" || m.tag_name === "tfoot" ? (O = O || this._tag_stack.try_pop("caption", ["table"]), O = O || this._tag_stack.try_pop("colgroup", ["table"]), O = O || this._tag_stack.try_pop("thead", ["table"]), O = O || this._tag_stack.try_pop("tbody", ["table"])) : m.tag_name === "tr" ? (O = O || this._tag_stack.try_pop("caption", ["table"]), O = O || this._tag_stack.try_pop("colgroup", ["table"]), O = O || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (m.tag_name === "th" || m.tag_name === "td") && (O = O || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), O = O || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
24639
+ return m.parent = this._tag_stack.get_parser_token(), O;
24640
24640
  }
24641
24641
  }, bo.Beautifier = f, bo;
24642
24642
  }
@@ -24722,14 +24722,14 @@ const IP = { class: "code-slot" }, GP = { class: "code-slot" }, jP = { class: "e
24722
24722
  );
24723
24723
  const c = (f) => {
24724
24724
  if (l) {
24725
- const d = Mm(l.state), O = d.doc.toString().length;
24725
+ const d = Mm(l.state), p = d.doc.toString().length;
24726
24726
  if (f == "beautify") {
24727
24727
  const S = BP.js_beautify(t.modelValue, a);
24728
24728
  l.dispatch({
24729
24729
  changes: [
24730
24730
  {
24731
24731
  from: 0,
24732
- to: O,
24732
+ to: p,
24733
24733
  insert: S
24734
24734
  }
24735
24735
  ]
@@ -24737,7 +24737,7 @@ const IP = { class: "code-slot" }, GP = { class: "code-slot" }, jP = { class: "e
24737
24737
  } else if (f == "checkAll") {
24738
24738
  const S = d.update({
24739
24739
  // selection: EditorSelection.cursor(pos), // 设置光标
24740
- selection: L.range(0, O),
24740
+ selection: L.range(0, p),
24741
24741
  scrollIntoView: !0
24742
24742
  });
24743
24743
  l.dispatch(S);
@@ -24757,7 +24757,7 @@ const IP = { class: "code-slot" }, GP = { class: "code-slot" }, jP = { class: "e
24757
24757
  changes: [
24758
24758
  {
24759
24759
  from: 0,
24760
- to: O,
24760
+ to: p,
24761
24761
  insert: ""
24762
24762
  }
24763
24763
  ]
@@ -24770,14 +24770,14 @@ const IP = { class: "code-slot" }, GP = { class: "code-slot" }, jP = { class: "e
24770
24770
  lv,
24771
24771
  dx,
24772
24772
  ee.lineWrapping,
24773
- ee.updateListener.of((O) => {
24774
- O.docChanged && e("update:modelValue", O.state.doc.toString());
24773
+ ee.updateListener.of((p) => {
24774
+ p.docChanged && e("update:modelValue", p.state.doc.toString());
24775
24775
  })
24776
24776
  ], d = t.language;
24777
- d && (Array.isArray(d) ? d.forEach((O) => {
24778
- f.push(hf(O)), t.autocomplete[O] && O === "javascript" && f.push(
24777
+ d && (Array.isArray(d) ? d.forEach((p) => {
24778
+ f.push(hf(p)), t.autocomplete[p] && p === "javascript" && f.push(
24779
24779
  ri.data.of({
24780
- autocomplete: t.autocomplete[O]
24780
+ autocomplete: t.autocomplete[p]
24781
24781
  })
24782
24782
  );
24783
24783
  }) : (f.push(hf(d)), t.autocomplete[d] && d === "javascript" && f.push(
@@ -24818,22 +24818,22 @@ const IP = { class: "code-slot" }, GP = { class: "code-slot" }, jP = { class: "e
24818
24818
  M("i", {
24819
24819
  title: "美化",
24820
24820
  class: "iconfont icon-magic-stick",
24821
- onClick: d[0] || (d[0] = (O) => c("beautify"))
24821
+ onClick: d[0] || (d[0] = (p) => c("beautify"))
24822
24822
  }),
24823
24823
  M("i", {
24824
24824
  title: "全选",
24825
24825
  class: "iconfont icon-check-square",
24826
- onClick: d[1] || (d[1] = (O) => c("checkAll"))
24826
+ onClick: d[1] || (d[1] = (p) => c("checkAll"))
24827
24827
  }),
24828
24828
  M("i", {
24829
24829
  title: "复制",
24830
24830
  class: "iconfont icon-document-copy",
24831
- onClick: d[2] || (d[2] = (O) => c("copy"))
24831
+ onClick: d[2] || (d[2] = (p) => c("copy"))
24832
24832
  }),
24833
24833
  M("i", {
24834
24834
  title: "清空",
24835
24835
  class: "iconfont icon-clear",
24836
- onClick: d[3] || (d[3] = (O) => c("clear"))
24836
+ onClick: d[3] || (d[3] = (p) => c("clear"))
24837
24837
  }),
24838
24838
  sr(f.$slots, "operation-btn")
24839
24839
  ])
@@ -24847,7 +24847,7 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24847
24847
  ], -1), KP = /* @__PURE__ */ M("span", { style: { "font-family": "'SimSun', 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC', serif" } }, "宋体", -1), JP = /* @__PURE__ */ M("span", { style: { "font-family": "'FangSong', 'STFangsong', 'KaiTi', 'Kaiti SC', 'Noto Sans CJK SC', sans-serif" } }, "仿宋体", -1), ew = /* @__PURE__ */ M("span", { style: { "font-family": "'KaiTi', 'Kaiti SC', 'STKaiti', 'Noto Serif CJK SC', 'Source Han Serif SC', serif" } }, "楷体", -1), tw = /* @__PURE__ */ M("span", { style: { "font-family": "'SimHei', 'Microsoft YaHei', 'PingFang SC', 'STHeiti', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif" } }, "黑体", -1), iw = /* @__PURE__ */ M("span", { style: { "font-family": "'Arial', 'Helvetica', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', sans-serif" } }, "ABC/123", -1), nw = /* @__PURE__ */ M("span", { style: { "font-family": "'Courier New', 'Consolas', 'Monaco', 'Noto Sans Mono CJK SC', 'Source Han Code SC', monospace" } }, "ABC/123", -1), sw = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-align-left" }, null, -1), rw = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-align-center" }, null, -1), lw = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-align-right" }, null, -1), ow = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-horizontal-top" }, null, -1), aw = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-horizontal-center" }, null, -1), hw = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-horizontal-bottom" }, null, -1), uw = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-text" }, null, -1), cw = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-number" }, null, -1), fw = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-currency" }, null, -1), dw = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-scientific-notation" }, null, -1), Ow = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-datetime" }, null, -1), pw = /* @__PURE__ */ M("i", { class: "yh-report-icon report-icon-daima" }, null, -1), mw = /* @__PURE__ */ M("br", null, null, -1), gw = { class: "statement-option-title" }, _w = /* @__PURE__ */ M("div", { class: "statement-option-title-context" }, "行设置", -1), bw = { class: "statement-option-title" }, Qw = /* @__PURE__ */ M("div", { class: "statement-option-title-context" }, "激活列", -1), yw = /* @__PURE__ */ _t({
24848
24848
  __name: "cellEditor",
24849
24849
  setup(n) {
24850
- const e = At(), { active: t, activeIndex: i, activeCells: s, activeTable: r, activeTableIndex: l, activeTableMergeCells: o, isOneCell: a, activeCell: u, allTextCell: h, activeCols: c, activeRows: f, isOneRow: d, activeRow: O, isOneCol: S, activeCol: m } = Vt(e), p = {
24850
+ const e = At(), { active: t, activeIndex: i, activeCells: s, activeTable: r, activeTableIndex: l, activeTableMergeCells: o, isOneCell: a, activeCell: u, allTextCell: h, activeCols: c, activeRows: f, isOneRow: d, activeRow: p, isOneCol: S, activeCol: m } = Vt(e), O = {
24851
24851
  type: "text",
24852
24852
  text: "",
24853
24853
  data: "",
@@ -25004,7 +25004,7 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25004
25004
  if (q && q.length && t.value && r.value)
25005
25005
  if (a.value = q.length === 1 && !q.some((U) => U.col === -1 || U.row === -1), a.value) {
25006
25006
  let U = q[0];
25007
- u.value = r.value.config[U.row][U.col], c.value = [U.col], f.value = [U.row], O.value = r.value.rowConfig[U.row], m.value = r.value.colConfig[U.col], d.value = !0, S.value = !0, u.value && u.value.type && (h.value = [ce.TEXT, ce.FIELD].includes(u.value.type)), Object.entries(p).forEach(([E, G]) => {
25007
+ u.value = r.value.config[U.row][U.col], c.value = [U.col], f.value = [U.row], p.value = r.value.rowConfig[U.row], m.value = r.value.colConfig[U.col], d.value = !0, S.value = !0, u.value && u.value.type && (h.value = [ce.TEXT, ce.FIELD].includes(u.value.type)), Object.entries(O).forEach(([E, G]) => {
25008
25008
  Q[E] = G;
25009
25009
  }), u.value && Object.entries(u.value).forEach(([E, G]) => {
25010
25010
  E === "formatType" ? (Q.formatType || (Q.formatType = {}), Object.entries(G).forEach(([K, ne]) => {
@@ -25022,11 +25022,11 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25022
25022
  ne.type && ![ce.TEXT, ce.FIELD].includes(ne.type) && (h.value = !1), Object.entries(ne).forEach(([Y, ge]) => {
25023
25023
  G.get(Y) || G.set(Y, /* @__PURE__ */ new Set()), G.get(Y).add(ge);
25024
25024
  });
25025
- }), h.value && Object.entries(p).forEach(([K, ne]) => {
25025
+ }), h.value && Object.entries(O).forEach(([K, ne]) => {
25026
25026
  Q[K] = ne;
25027
- }), c.value = [...U], f.value = [...E], S.value = U.size === 1, d.value = E.size === 1, S ? m.value = r.value.colConfig[c.value[0]] : m.value = null, d ? O.value = r.value.rowConfig[f.value[0]] : O.value = null;
25027
+ }), c.value = [...U], f.value = [...E], S.value = U.size === 1, d.value = E.size === 1, S ? m.value = r.value.colConfig[c.value[0]] : m.value = null, d ? p.value = r.value.rowConfig[f.value[0]] : p.value = null;
25028
25028
  }
25029
- q && q.length === 0 && t.value && (a.value = !1, u.value = null, h.value = !1, c.value = [], f.value = [], d.value = !1, O.value = null, S.value = !1, m.value = null);
25029
+ q && q.length === 0 && t.value && (a.value = !1, u.value = null, h.value = !1, c.value = [], f.value = [], d.value = !1, p.value = null, S.value = !1, m.value = null);
25030
25030
  },
25031
25031
  {
25032
25032
  immediate: !0,
@@ -25046,7 +25046,7 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25046
25046
  di(r.value.config[E.row][E.col], "data", ""), di(r.value.config[E.row][E.col], "fun", ""), di(r.value.config[E.row][E.col], "format", Ze.TEXT), Q.format = Ze.TEXT;
25047
25047
  }
25048
25048
  }), T === "row" && f.value.forEach((E) => {
25049
- di(r.value.rowConfig[E], U, q), U === "data" && O.value && !q && (O.value.loop = !1, O.value.dataIndex = 0);
25049
+ di(r.value.rowConfig[E], U, q), U === "data" && p.value && !q && (p.value.loop = !1, p.value.dataIndex = 0);
25050
25050
  }), T === "col" && c.value.forEach((E) => {
25051
25051
  di(r.value.colConfig[E], U, q);
25052
25052
  });
@@ -25057,7 +25057,7 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25057
25057
  if (d.value) {
25058
25058
  let T = I.value.find((U) => {
25059
25059
  var E;
25060
- return U.key === ((E = O.value) == null ? void 0 : E.data);
25060
+ return U.key === ((E = p.value) == null ? void 0 : E.data);
25061
25061
  });
25062
25062
  if (T = ot(T), T && T.columns) {
25063
25063
  const U = T.columns.map((E) => (E.name = `行:${T.name}/${E.name}`, E.columnName = `row:${E.columnName}`, E));
@@ -25986,7 +25986,7 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25986
25986
  })) : ae("", !0)
25987
25987
  ], 64)) : ae("", !0)
25988
25988
  ], 64)) : ae("", !0),
25989
- b(f) && b(f).length > 0 && b(O) ? (D(), F(oe, { key: 1 }, [
25989
+ b(f) && b(f).length > 0 && b(p) ? (D(), F(oe, { key: 1 }, [
25990
25990
  M("div", gw, [
25991
25991
  _w,
25992
25992
  _(U, { size: "small" }, {
@@ -26062,14 +26062,14 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
26062
26062
  ]),
26063
26063
  _: 1
26064
26064
  }),
26065
- b(d) && b(O) ? (D(), F(oe, { key: 0 }, [
26065
+ b(d) && b(p) ? (D(), F(oe, { key: 0 }, [
26066
26066
  _(E, { span: 24 }, {
26067
26067
  default: y(() => [
26068
26068
  _(b(_e), { label: "数据源" }, {
26069
26069
  default: y(() => [
26070
26070
  _(K, {
26071
- modelValue: b(O).data,
26072
- "onUpdate:modelValue": T[45] || (T[45] = (Y) => b(O).data = Y),
26071
+ modelValue: b(p).data,
26072
+ "onUpdate:modelValue": T[45] || (T[45] = (Y) => b(p).data = Y),
26073
26073
  onChange: T[46] || (T[46] = (Y) => A(Y, "row", "data")),
26074
26074
  clearable: "",
26075
26075
  filterable: ""
@@ -26094,8 +26094,8 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
26094
26094
  _(b(_e), { label: "循环" }, {
26095
26095
  default: y(() => [
26096
26096
  _(b(fi), {
26097
- modelValue: b(O).loop,
26098
- "onUpdate:modelValue": T[47] || (T[47] = (Y) => b(O).loop = Y),
26097
+ modelValue: b(p).loop,
26098
+ "onUpdate:modelValue": T[47] || (T[47] = (Y) => b(p).loop = Y),
26099
26099
  onChange: T[48] || (T[48] = (Y) => A(Y, "row", "loop"))
26100
26100
  }, null, 8, ["modelValue"])
26101
26101
  ]),
@@ -26104,7 +26104,7 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
26104
26104
  ]),
26105
26105
  _: 1
26106
26106
  }),
26107
- b(O).loop ? ae("", !0) : (D(), le(E, {
26107
+ b(p).loop ? ae("", !0) : (D(), le(E, {
26108
26108
  key: 0,
26109
26109
  span: 12
26110
26110
  }, {
@@ -26113,8 +26113,8 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
26113
26113
  default: y(() => [
26114
26114
  _(ne, {
26115
26115
  min: 0,
26116
- modelValue: b(O).dataIndex,
26117
- "onUpdate:modelValue": T[49] || (T[49] = (Y) => b(O).dataIndex = Y),
26116
+ modelValue: b(p).dataIndex,
26117
+ "onUpdate:modelValue": T[49] || (T[49] = (Y) => b(p).dataIndex = Y),
26118
26118
  onInput: T[50] || (T[50] = (Y) => A(Y, "row", "dataIndex"))
26119
26119
  }, null, 8, ["modelValue"])
26120
26120
  ]),
@@ -26321,8 +26321,8 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
26321
26321
  default: y(() => [
26322
26322
  _(h, {
26323
26323
  modelValue: b(t).widthType,
26324
- "onUpdate:modelValue": o[0] || (o[0] = (O) => b(t).widthType = O),
26325
- onChange: o[1] || (o[1] = (O) => r(O, "widthType")),
26324
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => b(t).widthType = p),
26325
+ onChange: o[1] || (o[1] = (p) => r(p, "widthType")),
26326
26326
  "inline-prompt": "",
26327
26327
  "active-value": "%",
26328
26328
  "active-text": "百分比",
@@ -26341,7 +26341,7 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
26341
26341
  default: y(() => [
26342
26342
  _(h, {
26343
26343
  modelValue: b(t).fullHeight,
26344
- "onUpdate:modelValue": o[2] || (o[2] = (O) => b(t).fullHeight = O),
26344
+ "onUpdate:modelValue": o[2] || (o[2] = (p) => b(t).fullHeight = p),
26345
26345
  disabled: !b(s),
26346
26346
  "inline-prompt": "",
26347
26347
  "active-value": !0,
@@ -26362,7 +26362,7 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
26362
26362
  _(d, {
26363
26363
  type: "number",
26364
26364
  modelValue: b(t).width,
26365
- "onUpdate:modelValue": o[3] || (o[3] = (O) => b(t).width = O)
26365
+ "onUpdate:modelValue": o[3] || (o[3] = (p) => b(t).width = p)
26366
26366
  }, {
26367
26367
  suffix: y(() => [
26368
26368
  z(Ie(b(t).widthType), 1)
@@ -26383,8 +26383,8 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
26383
26383
  type: "number",
26384
26384
  disabled: b(t).fullHeight,
26385
26385
  modelValue: b(t).height,
26386
- "onUpdate:modelValue": o[4] || (o[4] = (O) => b(t).height = O),
26387
- onChange: o[5] || (o[5] = (O) => r(O, "width", "number"))
26386
+ "onUpdate:modelValue": o[4] || (o[4] = (p) => b(t).height = p),
26387
+ onChange: o[5] || (o[5] = (p) => r(p, "width", "number"))
26388
26388
  }, {
26389
26389
  suffix: y(() => [
26390
26390
  z("px")
@@ -26404,7 +26404,7 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
26404
26404
  default: y(() => [
26405
26405
  _(h, {
26406
26406
  modelValue: b(t).seriesEnable,
26407
- "onUpdate:modelValue": o[6] || (o[6] = (O) => b(t).seriesEnable = O)
26407
+ "onUpdate:modelValue": o[6] || (o[6] = (p) => b(t).seriesEnable = p)
26408
26408
  }, null, 8, ["modelValue"])
26409
26409
  ]),
26410
26410
  _: 1
@@ -26418,7 +26418,7 @@ const FP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
26418
26418
  default: y(() => [
26419
26419
  _(d, {
26420
26420
  modelValue: b(t).seriesHeadText,
26421
- "onUpdate:modelValue": o[7] || (o[7] = (O) => b(t).seriesHeadText = O)
26421
+ "onUpdate:modelValue": o[7] || (o[7] = (p) => b(t).seriesHeadText = p)
26422
26422
  }, null, 8, ["modelValue"])
26423
26423
  ]),
26424
26424
  _: 1
@@ -26520,9 +26520,9 @@ const Pw = function(n, e) {
26520
26520
  return ((d = t.value) == null ? void 0 : d.data.source) || [];
26521
26521
  });
26522
26522
  const r = Se(() => {
26523
- var O;
26523
+ var p;
26524
26524
  let d = "X轴轴坐标数据";
26525
- switch ((O = t.value) == null ? void 0 : O.type) {
26525
+ switch ((p = t.value) == null ? void 0 : p.type) {
26526
26526
  case "rowBar":
26527
26527
  d = "Y轴轴坐标数据";
26528
26528
  break;
@@ -26555,17 +26555,17 @@ const Pw = function(n, e) {
26555
26555
  });
26556
26556
  function a() {
26557
26557
  if (t.value) {
26558
- let { smooth: d, symbol: O, showLabel: S, areaStyle: m, labelColor: p, labelPosition: Q, radius: Z } = t.value;
26558
+ let { smooth: d, symbol: p, showLabel: S, areaStyle: m, labelColor: O, labelPosition: Q, radius: Z } = t.value;
26559
26559
  Array.isArray(o.value.series) ? o.value.series.forEach((k) => {
26560
26560
  var R;
26561
- k.smooth = d, k.symbol = O, k.label = {
26561
+ k.smooth = d, k.symbol = p, k.label = {
26562
26562
  show: S,
26563
- color: p,
26563
+ color: O,
26564
26564
  position: Q
26565
26565
  }, ((R = t.value) == null ? void 0 : R.type) == "pie" && (k.label.position = "outside", Z ? k.radius = ["40%", "70%"] : k.radius = [0, "75%"]), k.areaStyle = m && JSON.parse(m);
26566
- }) : o.value.series instanceof Object && (o.value.series.smooth = d, o.value.series.symbol = O, o.value.series.label = {
26566
+ }) : o.value.series instanceof Object && (o.value.series.smooth = d, o.value.series.symbol = p, o.value.series.label = {
26567
26567
  show: S,
26568
- color: p,
26568
+ color: O,
26569
26569
  position: Q
26570
26570
  }, t.value.type == "pie" && (o.value.series.label.position = "outside", Z ? o.value.series.radius = ["40%", "70%"] : o.value.series.radius = [0, "75%"]), o.value.series.areaStyle = m && JSON.parse(m));
26571
26571
  }
@@ -26574,41 +26574,41 @@ const Pw = function(n, e) {
26574
26574
  const h = Se(() => {
26575
26575
  var S, m;
26576
26576
  let d = [];
26577
- u = {}, t.value && (d = (m = (S = t.value.data) == null ? void 0 : S.source) == null ? void 0 : m.map(({ name: p, key: Q, columns: Z }) => ({
26578
- label: p,
26577
+ u = {}, t.value && (d = (m = (S = t.value.data) == null ? void 0 : S.source) == null ? void 0 : m.map(({ name: O, key: Q, columns: Z }) => ({
26578
+ label: O,
26579
26579
  value: Q,
26580
26580
  children: Z.map(({ name: k, columnName: R }) => (R = R.toUpperCase(), di(u, `${Q}.${R}`, k), {
26581
26581
  label: k,
26582
26582
  value: R
26583
26583
  }))
26584
26584
  })));
26585
- let O = i.value.options.filter((p) => p.type === "report" && p.data.source && p.data.source.length).map(({ id: p, data: { source: Q } }) => ({
26586
- label: p,
26587
- value: p,
26585
+ let p = i.value.options.filter((O) => O.type === "report" && O.data.source && O.data.source.length).map(({ id: O, data: { source: Q } }) => ({
26586
+ label: O,
26587
+ value: O,
26588
26588
  children: Q.map(({ name: Z, key: k, columns: R }) => ({
26589
26589
  label: Z,
26590
26590
  value: k,
26591
26591
  children: R.map(({ name: x, columnName: $ }) => {
26592
26592
  $ = $.toUpperCase();
26593
26593
  let P = x || $;
26594
- return di(u, `${p}.${k}.${$}`, P), {
26594
+ return di(u, `${O}.${k}.${$}`, P), {
26595
26595
  label: P,
26596
26596
  value: $
26597
26597
  };
26598
26598
  })
26599
26599
  }))
26600
26600
  }));
26601
- return [...d, ...O];
26601
+ return [...d, ...p];
26602
26602
  }), c = (d) => {
26603
26603
  if (!(d.length <= 0) && t.value) {
26604
- let O = { ...t.value.option.series[0] };
26605
- O.data = [], t.value.option.series = [];
26604
+ let p = { ...t.value.option.series[0] };
26605
+ p.data = [], t.value.option.series = [];
26606
26606
  for (let S = 0; S < d.length; S++) {
26607
26607
  const m = d[S];
26608
- let p = dg(u, m.join("."), m[m.length - 1]);
26609
- if (p) {
26610
- let Q = { ...O };
26611
- Q.name = p, t.value.option.series.push(Q);
26608
+ let O = dg(u, m.join("."), m[m.length - 1]);
26609
+ if (O) {
26610
+ let Q = { ...p };
26611
+ Q.name = O, t.value.option.series.push(Q);
26612
26612
  }
26613
26613
  }
26614
26614
  }
@@ -26616,8 +26616,8 @@ const Pw = function(n, e) {
26616
26616
  function f(d) {
26617
26617
  d && d !== "NONE" && t.value && (t.value.cutLength = t.value.cutLength || 5);
26618
26618
  }
26619
- return (d, O) => {
26620
- const S = Oe("el-color-picker"), m = Oe("el-input"), p = Oe("el-form-item"), Q = Oe("el-input-number"), Z = Oe("el-col"), k = Oe("el-radio-button"), R = Oe("el-radio-group"), x = Oe("el-row"), $ = Oe("el-switch"), P = Oe("el-tooltip"), C = Oe("el-cascader"), g = Oe("el-tab-pane");
26619
+ return (d, p) => {
26620
+ const S = Oe("el-color-picker"), m = Oe("el-input"), O = Oe("el-form-item"), Q = Oe("el-input-number"), Z = Oe("el-col"), k = Oe("el-radio-button"), R = Oe("el-radio-group"), x = Oe("el-row"), $ = Oe("el-switch"), P = Oe("el-tooltip"), C = Oe("el-cascader"), g = Oe("el-tab-pane");
26621
26621
  return D(), F(oe, null, [
26622
26622
  b(t) ? (D(), le(g, {
26623
26623
  key: 0,
@@ -26626,16 +26626,16 @@ const Pw = function(n, e) {
26626
26626
  class: "chart-option"
26627
26627
  }, {
26628
26628
  default: y(() => [
26629
- _(p, { label: "背景色" }, {
26629
+ _(O, { label: "背景色" }, {
26630
26630
  default: y(() => [
26631
26631
  _(m, {
26632
26632
  modelValue: b(o).backgroundColor,
26633
- "onUpdate:modelValue": O[1] || (O[1] = (w) => b(o).backgroundColor = w)
26633
+ "onUpdate:modelValue": p[1] || (p[1] = (w) => b(o).backgroundColor = w)
26634
26634
  }, {
26635
26635
  append: y(() => [
26636
26636
  _(S, {
26637
26637
  modelValue: b(o).backgroundColor,
26638
- "onUpdate:modelValue": O[0] || (O[0] = (w) => b(o).backgroundColor = w),
26638
+ "onUpdate:modelValue": p[0] || (p[0] = (w) => b(o).backgroundColor = w),
26639
26639
  size: "small"
26640
26640
  }, null, 8, ["modelValue"])
26641
26641
  ]),
@@ -26644,16 +26644,16 @@ const Pw = function(n, e) {
26644
26644
  ]),
26645
26645
  _: 1
26646
26646
  }),
26647
- _(p, { label: "标题" }, {
26647
+ _(O, { label: "标题" }, {
26648
26648
  default: y(() => [
26649
26649
  _(m, {
26650
26650
  modelValue: b(o).title.text,
26651
- "onUpdate:modelValue": O[2] || (O[2] = (w) => b(o).title.text = w)
26651
+ "onUpdate:modelValue": p[2] || (p[2] = (w) => b(o).title.text = w)
26652
26652
  }, null, 8, ["modelValue"])
26653
26653
  ]),
26654
26654
  _: 1
26655
26655
  }),
26656
- _(p, { label: "宽度" }, {
26656
+ _(O, { label: "宽度" }, {
26657
26657
  default: y(() => [
26658
26658
  _(x, { gutter: 10 }, {
26659
26659
  default: y(() => [
@@ -26662,7 +26662,7 @@ const Pw = function(n, e) {
26662
26662
  _(Q, {
26663
26663
  "controls-position": "right",
26664
26664
  modelValue: b(t).width,
26665
- "onUpdate:modelValue": O[3] || (O[3] = (w) => b(t).width = w),
26665
+ "onUpdate:modelValue": p[3] || (p[3] = (w) => b(t).width = w),
26666
26666
  min: 0
26667
26667
  }, null, 8, ["modelValue"])
26668
26668
  ]),
@@ -26672,7 +26672,7 @@ const Pw = function(n, e) {
26672
26672
  default: y(() => [
26673
26673
  _(R, {
26674
26674
  modelValue: b(t).widthUnit,
26675
- "onUpdate:modelValue": O[4] || (O[4] = (w) => b(t).widthUnit = w)
26675
+ "onUpdate:modelValue": p[4] || (p[4] = (w) => b(t).widthUnit = w)
26676
26676
  }, {
26677
26677
  default: y(() => [
26678
26678
  _(k, { label: "px" }, {
@@ -26699,7 +26699,7 @@ const Pw = function(n, e) {
26699
26699
  ]),
26700
26700
  _: 1
26701
26701
  }),
26702
- _(p, { label: "高度" }, {
26702
+ _(O, { label: "高度" }, {
26703
26703
  default: y(() => [
26704
26704
  _(x, { gutter: 10 }, {
26705
26705
  default: y(() => [
@@ -26707,7 +26707,7 @@ const Pw = function(n, e) {
26707
26707
  default: y(() => [
26708
26708
  _(Q, {
26709
26709
  modelValue: b(t).height,
26710
- "onUpdate:modelValue": O[5] || (O[5] = (w) => b(t).height = w),
26710
+ "onUpdate:modelValue": p[5] || (p[5] = (w) => b(t).height = w),
26711
26711
  "controls-position": "right",
26712
26712
  min: 0
26713
26713
  }, null, 8, ["modelValue"])
@@ -26718,7 +26718,7 @@ const Pw = function(n, e) {
26718
26718
  default: y(() => [
26719
26719
  _(R, {
26720
26720
  modelValue: b(t).heightUnit,
26721
- "onUpdate:modelValue": O[6] || (O[6] = (w) => b(t).heightUnit = w)
26721
+ "onUpdate:modelValue": p[6] || (p[6] = (w) => b(t).heightUnit = w)
26722
26722
  }, {
26723
26723
  default: y(() => [
26724
26724
  _(k, { label: "px" }, {
@@ -26746,41 +26746,41 @@ const Pw = function(n, e) {
26746
26746
  _: 1
26747
26747
  }),
26748
26748
  b(s) ? (D(), F(oe, { key: 0 }, [
26749
- _(p, { label: "X轴轴坐标名称" }, {
26749
+ _(O, { label: "X轴轴坐标名称" }, {
26750
26750
  default: y(() => [
26751
26751
  _(m, {
26752
26752
  modelValue: b(o).xAxis.name,
26753
- "onUpdate:modelValue": O[7] || (O[7] = (w) => b(o).xAxis.name = w)
26753
+ "onUpdate:modelValue": p[7] || (p[7] = (w) => b(o).xAxis.name = w)
26754
26754
  }, null, 8, ["modelValue"])
26755
26755
  ]),
26756
26756
  _: 1
26757
26757
  }),
26758
- _(p, { label: "Y轴轴坐标名称" }, {
26758
+ _(O, { label: "Y轴轴坐标名称" }, {
26759
26759
  default: y(() => [
26760
26760
  _(m, {
26761
26761
  modelValue: b(o).yAxis.name,
26762
- "onUpdate:modelValue": O[8] || (O[8] = (w) => b(o).yAxis.name = w)
26762
+ "onUpdate:modelValue": p[8] || (p[8] = (w) => b(o).yAxis.name = w)
26763
26763
  }, null, 8, ["modelValue"])
26764
26764
  ]),
26765
26765
  _: 1
26766
26766
  })
26767
26767
  ], 64)) : ae("", !0),
26768
26768
  b(t).type == "line" ? (D(), F(oe, { key: 1 }, [
26769
- _(p, { label: "平滑" }, {
26769
+ _(O, { label: "平滑" }, {
26770
26770
  default: y(() => [
26771
26771
  _($, {
26772
26772
  modelValue: b(t).smooth,
26773
- "onUpdate:modelValue": O[9] || (O[9] = (w) => b(t).smooth = w),
26773
+ "onUpdate:modelValue": p[9] || (p[9] = (w) => b(t).smooth = w),
26774
26774
  onChange: a
26775
26775
  }, null, 8, ["modelValue"])
26776
26776
  ]),
26777
26777
  _: 1
26778
26778
  }),
26779
- _(p, { label: "显示点" }, {
26779
+ _(O, { label: "显示点" }, {
26780
26780
  default: y(() => [
26781
26781
  _($, {
26782
26782
  modelValue: b(t).symbol,
26783
- "onUpdate:modelValue": O[10] || (O[10] = (w) => b(t).symbol = w),
26783
+ "onUpdate:modelValue": p[10] || (p[10] = (w) => b(t).symbol = w),
26784
26784
  onChange: a,
26785
26785
  "active-value": "emptyCircle",
26786
26786
  "inactive-value": "none"
@@ -26789,30 +26789,30 @@ const Pw = function(n, e) {
26789
26789
  _: 1
26790
26790
  })
26791
26791
  ], 64)) : ae("", !0),
26792
- _(p, { label: "显示标签" }, {
26792
+ _(O, { label: "显示标签" }, {
26793
26793
  default: y(() => [
26794
26794
  _($, {
26795
26795
  modelValue: b(t).showLabel,
26796
- "onUpdate:modelValue": O[11] || (O[11] = (w) => b(t).showLabel = w),
26796
+ "onUpdate:modelValue": p[11] || (p[11] = (w) => b(t).showLabel = w),
26797
26797
  onChange: a
26798
26798
  }, null, 8, ["modelValue"])
26799
26799
  ]),
26800
26800
  _: 1
26801
26801
  }),
26802
- b(t).showLabel ? (D(), le(p, {
26802
+ b(t).showLabel ? (D(), le(O, {
26803
26803
  key: 2,
26804
26804
  label: "标签颜色"
26805
26805
  }, {
26806
26806
  default: y(() => [
26807
26807
  _(m, {
26808
26808
  modelValue: b(t).labelColor,
26809
- "onUpdate:modelValue": O[13] || (O[13] = (w) => b(t).labelColor = w),
26809
+ "onUpdate:modelValue": p[13] || (p[13] = (w) => b(t).labelColor = w),
26810
26810
  onChange: a
26811
26811
  }, {
26812
26812
  append: y(() => [
26813
26813
  _(S, {
26814
26814
  modelValue: b(t).labelColor,
26815
- "onUpdate:modelValue": O[12] || (O[12] = (w) => b(t).labelColor = w),
26815
+ "onUpdate:modelValue": p[12] || (p[12] = (w) => b(t).labelColor = w),
26816
26816
  size: "small",
26817
26817
  onChange: a
26818
26818
  }, null, 8, ["modelValue"])
@@ -26822,7 +26822,7 @@ const Pw = function(n, e) {
26822
26822
  ]),
26823
26823
  _: 1
26824
26824
  })) : ae("", !0),
26825
- b(t).showLabel && !["pie", "radar"].includes(b(t).type) ? (D(), le(p, {
26825
+ b(t).showLabel && !["pie", "radar"].includes(b(t).type) ? (D(), le(O, {
26826
26826
  key: 3,
26827
26827
  label: "标签位置"
26828
26828
  }, {
@@ -26830,7 +26830,7 @@ const Pw = function(n, e) {
26830
26830
  ["line", "scatter"].includes(b(t).type) ? (D(), le(R, {
26831
26831
  key: 0,
26832
26832
  modelValue: b(t).labelPosition,
26833
- "onUpdate:modelValue": O[14] || (O[14] = (w) => b(t).labelPosition = w),
26833
+ "onUpdate:modelValue": p[14] || (p[14] = (w) => b(t).labelPosition = w),
26834
26834
  onChange: a
26835
26835
  }, {
26836
26836
  default: y(() => [
@@ -26857,7 +26857,7 @@ const Pw = function(n, e) {
26857
26857
  }, 8, ["modelValue"])) : b(t).type == "rowBar" ? (D(), le(R, {
26858
26858
  key: 1,
26859
26859
  modelValue: b(t).labelPosition,
26860
- "onUpdate:modelValue": O[15] || (O[15] = (w) => b(t).labelPosition = w),
26860
+ "onUpdate:modelValue": p[15] || (p[15] = (w) => b(t).labelPosition = w),
26861
26861
  onChange: a
26862
26862
  }, {
26863
26863
  default: y(() => [
@@ -26890,7 +26890,7 @@ const Pw = function(n, e) {
26890
26890
  }, 8, ["modelValue"])) : b(t).type == "bar" ? (D(), le(R, {
26891
26891
  key: 2,
26892
26892
  modelValue: b(t).labelPosition,
26893
- "onUpdate:modelValue": O[16] || (O[16] = (w) => b(t).labelPosition = w),
26893
+ "onUpdate:modelValue": p[16] || (p[16] = (w) => b(t).labelPosition = w),
26894
26894
  onChange: a
26895
26895
  }, {
26896
26896
  default: y(() => [
@@ -26924,14 +26924,14 @@ const Pw = function(n, e) {
26924
26924
  ]),
26925
26925
  _: 1
26926
26926
  })) : ae("", !0),
26927
- ["line", "radar"].includes(b(t).type) ? (D(), le(p, {
26927
+ ["line", "radar"].includes(b(t).type) ? (D(), le(O, {
26928
26928
  key: 4,
26929
26929
  label: "面积图"
26930
26930
  }, {
26931
26931
  default: y(() => [
26932
26932
  _($, {
26933
26933
  modelValue: b(t).areaStyle,
26934
- "onUpdate:modelValue": O[17] || (O[17] = (w) => b(t).areaStyle = w),
26934
+ "onUpdate:modelValue": p[17] || (p[17] = (w) => b(t).areaStyle = w),
26935
26935
  onChange: a,
26936
26936
  "active-value": "{}",
26937
26937
  "inactive-value": "null"
@@ -26939,14 +26939,14 @@ const Pw = function(n, e) {
26939
26939
  ]),
26940
26940
  _: 1
26941
26941
  })) : ae("", !0),
26942
- b(t).type == "pie" ? (D(), le(p, {
26942
+ b(t).type == "pie" ? (D(), le(O, {
26943
26943
  key: 5,
26944
26944
  label: "环形图"
26945
26945
  }, {
26946
26946
  default: y(() => [
26947
26947
  _($, {
26948
26948
  modelValue: b(t).radius,
26949
- "onUpdate:modelValue": O[18] || (O[18] = (w) => b(t).radius = w),
26949
+ "onUpdate:modelValue": p[18] || (p[18] = (w) => b(t).radius = w),
26950
26950
  onChange: a
26951
26951
  }, null, 8, ["modelValue"])
26952
26952
  ]),
@@ -26954,7 +26954,7 @@ const Pw = function(n, e) {
26954
26954
  })) : ae("", !0),
26955
26955
  b(t).isSuspend ? (D(), F(oe, { key: 6 }, [
26956
26956
  kw,
26957
- _(p, null, {
26957
+ _(O, null, {
26958
26958
  label: y(() => [
26959
26959
  _(P, {
26960
26960
  class: "box-item",
@@ -26971,13 +26971,13 @@ const Pw = function(n, e) {
26971
26971
  default: y(() => [
26972
26972
  _(Q, {
26973
26973
  modelValue: b(t).top,
26974
- "onUpdate:modelValue": O[19] || (O[19] = (w) => b(t).top = w),
26974
+ "onUpdate:modelValue": p[19] || (p[19] = (w) => b(t).top = w),
26975
26975
  min: 0
26976
26976
  }, null, 8, ["modelValue"])
26977
26977
  ]),
26978
26978
  _: 1
26979
26979
  }),
26980
- _(p, null, {
26980
+ _(O, null, {
26981
26981
  label: y(() => [
26982
26982
  _(P, {
26983
26983
  class: "box-item",
@@ -26994,7 +26994,7 @@ const Pw = function(n, e) {
26994
26994
  default: y(() => [
26995
26995
  _(Q, {
26996
26996
  modelValue: b(t).left,
26997
- "onUpdate:modelValue": O[20] || (O[20] = (w) => b(t).left = w),
26997
+ "onUpdate:modelValue": p[20] || (p[20] = (w) => b(t).left = w),
26998
26998
  min: 0
26999
26999
  }, null, 8, ["modelValue"])
27000
27000
  ]),
@@ -27002,20 +27002,32 @@ const Pw = function(n, e) {
27002
27002
  })
27003
27003
  ], 64)) : ae("", !0),
27004
27004
  Rw,
27005
- _(p, { label: "数据分组求和" }, {
27005
+ _(O, { label: b(r) }, {
27006
+ default: y(() => [
27007
+ _(C, {
27008
+ modelValue: b(o).xDataId,
27009
+ "onUpdate:modelValue": p[21] || (p[21] = (w) => b(o).xDataId = w),
27010
+ options: b(h),
27011
+ style: { width: "100%" },
27012
+ props: { expandTrigger: "hover" }
27013
+ }, null, 8, ["modelValue", "options"])
27014
+ ]),
27015
+ _: 1
27016
+ }, 8, ["label"]),
27017
+ _(O, { label: "数据分组求和" }, {
27006
27018
  default: y(() => [
27007
27019
  _($, {
27008
27020
  modelValue: b(t).groupBy,
27009
- "onUpdate:modelValue": O[21] || (O[21] = (w) => b(t).groupBy = w)
27021
+ "onUpdate:modelValue": p[22] || (p[22] = (w) => b(t).groupBy = w)
27010
27022
  }, null, 8, ["modelValue"])
27011
27023
  ]),
27012
27024
  _: 1
27013
27025
  }),
27014
- _(p, { label: "数据排序" }, {
27026
+ _(O, { label: "数据排序" }, {
27015
27027
  default: y(() => [
27016
27028
  _(R, {
27017
27029
  modelValue: b(t).orderBy,
27018
- "onUpdate:modelValue": O[22] || (O[22] = (w) => b(t).orderBy = w),
27030
+ "onUpdate:modelValue": p[23] || (p[23] = (w) => b(t).orderBy = w),
27019
27031
  onChange: f
27020
27032
  }, {
27021
27033
  default: y(() => [
@@ -27043,35 +27055,24 @@ const Pw = function(n, e) {
27043
27055
  ]),
27044
27056
  _: 1
27045
27057
  }),
27046
- b(t).orderBy && b(t).orderBy != "NONE" ? (D(), le(p, {
27058
+ b(t).orderBy && b(t).orderBy != "NONE" ? (D(), le(O, {
27047
27059
  key: 7,
27048
27060
  label: "数据截取数量"
27049
27061
  }, {
27050
27062
  default: y(() => [
27051
27063
  _(Q, {
27052
27064
  modelValue: b(t).cutLength,
27053
- "onUpdate:modelValue": O[23] || (O[23] = (w) => b(t).cutLength = w)
27065
+ "onUpdate:modelValue": p[24] || (p[24] = (w) => b(t).cutLength = w)
27054
27066
  }, null, 8, ["modelValue"])
27055
27067
  ]),
27056
27068
  _: 1
27057
27069
  })) : ae("", !0),
27058
- _(p, { label: b(r) }, {
27059
- default: y(() => [
27060
- _(C, {
27061
- modelValue: b(o).xDataId,
27062
- "onUpdate:modelValue": O[24] || (O[24] = (w) => b(o).xDataId = w),
27063
- options: b(h),
27064
- style: { width: "100%" },
27065
- props: { expandTrigger: "hover" }
27066
- }, null, 8, ["modelValue", "options"])
27067
- ]),
27068
- _: 1
27069
- }, 8, ["label"]),
27070
- _(p, { label: "图表数据" }, {
27070
+ _(O, { label: "" }),
27071
+ _(O, { label: "图表数据" }, {
27071
27072
  default: y(() => [
27072
27073
  _(C, {
27073
27074
  modelValue: b(o).yDataId,
27074
- "onUpdate:modelValue": O[25] || (O[25] = (w) => b(o).yDataId = w),
27075
+ "onUpdate:modelValue": p[25] || (p[25] = (w) => b(o).yDataId = w),
27075
27076
  options: b(h),
27076
27077
  style: { width: "100%" },
27077
27078
  props: { expandTrigger: "hover", multiple: !0 },
@@ -27090,14 +27091,14 @@ const Pw = function(n, e) {
27090
27091
  label: "自定义配置"
27091
27092
  }, {
27092
27093
  default: y(() => [
27093
- _(p, {
27094
+ _(O, {
27094
27095
  label: "自定义配置",
27095
27096
  "label-position": "top"
27096
27097
  }, {
27097
27098
  default: y(() => [
27098
27099
  _(tn, {
27099
27100
  modelValue: b(l),
27100
- "onUpdate:modelValue": O[26] || (O[26] = (w) => Dm(l) ? l.value = w : l = w),
27101
+ "onUpdate:modelValue": p[26] || (p[26] = (w) => Dm(l) ? l.value = w : l = w),
27101
27102
  autocomplete: {
27102
27103
  javascript: b(Pw)
27103
27104
  },
@@ -27189,7 +27190,7 @@ const Zw = /* @__PURE__ */ _t({
27189
27190
  ], -1), pk = /* @__PURE__ */ M("div", { class: "custom-from-item-label" }, [
27190
27191
  /* @__PURE__ */ M("div", { class: "custom-from-item-label-context" }, "数据处理"),
27191
27192
  /* @__PURE__ */ M("div", { class: "custom-from-item-label-tips" })
27192
- ], -1), mk = /* @__PURE__ */ M("div", { class: "title-context" }, "数据源设置", -1), gk = /* @__PURE__ */ _t({
27193
+ ], -1), mk = /* @__PURE__ */ M("br", null, null, -1), gk = /* @__PURE__ */ M("div", { class: "title-context" }, "数据源设置", -1), _k = /* @__PURE__ */ _t({
27193
27194
  __name: "dataOption",
27194
27195
  setup(n) {
27195
27196
  const e = At(), t = pe(!1), { active: i } = Vt(e), s = Se(() => i.value ? Mf.includes(i.value.type) : !1), r = Se(() => i.value ? i.value.data.source : []), l = Se(() => {
@@ -27216,7 +27217,7 @@ const Zw = /* @__PURE__ */ _t({
27216
27217
  deep: !0
27217
27218
  }
27218
27219
  );
27219
- const u = pe(!1), h = pe([]), c = pe(""), f = Se(() => h.value.filter((te) => te.name.indexOf(c.value) > -1)), d = pe(), O = pe(!1);
27220
+ const u = pe(!1), h = pe([]), c = pe(""), f = Se(() => h.value.filter((te) => te.name.indexOf(c.value) > -1)), d = pe(), p = pe(!1);
27220
27221
  async function S() {
27221
27222
  h.value = (await ag()).data.data;
27222
27223
  }
@@ -27224,7 +27225,7 @@ const Zw = /* @__PURE__ */ _t({
27224
27225
  var te, N, B;
27225
27226
  u.value = !0, d.value = ((B = (N = (te = i.value) == null ? void 0 : te.data) == null ? void 0 : N.source) == null ? void 0 : B.map((q) => q.key)) || [], S();
27226
27227
  }
27227
- const p = () => {
27228
+ const O = () => {
27228
27229
  u.value = !1;
27229
27230
  };
27230
27231
  async function Q() {
@@ -27232,7 +27233,7 @@ const Zw = /* @__PURE__ */ _t({
27232
27233
  }
27233
27234
  async function Z() {
27234
27235
  if (d.value && Array.isArray(d.value)) {
27235
- O.value = !0;
27236
+ p.value = !0;
27236
27237
  const te = d.value;
27237
27238
  let N = h.value.filter((B) => te.includes(B.id));
27238
27239
  if (N && N.length && i.value) {
@@ -27254,7 +27255,7 @@ const Zw = /* @__PURE__ */ _t({
27254
27255
  source: []
27255
27256
  }), i.value.data.source = []);
27256
27257
  }
27257
- O.value = !1, u.value = !1;
27258
+ p.value = !1, u.value = !1;
27258
27259
  }
27259
27260
  const k = (te) => {
27260
27261
  var N, B;
@@ -27368,7 +27369,7 @@ const Zw = /* @__PURE__ */ _t({
27368
27369
  "onUpdate:modelValue": N[15] || (N[15] = (J) => t.value = J)
27369
27370
  }, {
27370
27371
  header: y(() => [
27371
- mk,
27372
+ gk,
27372
27373
  z("   "),
27373
27374
  _(b(ye), {
27374
27375
  type: "warning",
@@ -27399,8 +27400,8 @@ const Zw = /* @__PURE__ */ _t({
27399
27400
  _(b(ye), {
27400
27401
  plain: "",
27401
27402
  type: "primary",
27402
- loading: O.value,
27403
- onClick: p
27403
+ loading: p.value,
27404
+ onClick: O
27404
27405
  }, {
27405
27406
  default: y(() => [
27406
27407
  z(" 取消 ")
@@ -27410,7 +27411,7 @@ const Zw = /* @__PURE__ */ _t({
27410
27411
  _(b(ye), {
27411
27412
  plain: "",
27412
27413
  type: "primary",
27413
- loading: O.value,
27414
+ loading: p.value,
27414
27415
  onClick: Z
27415
27416
  }, {
27416
27417
  default: y(() => [
@@ -28059,10 +28060,12 @@ const Zw = /* @__PURE__ */ _t({
28059
28060
  "onUpdate:modelValue": N[13] || (N[13] = (J) => b(i).seriesData = J)
28060
28061
  }, {
28061
28062
  "pre-code": y(() => [
28062
- z("function (allData){")
28063
+ z("function (allData,series,yDataId){")
28063
28064
  ]),
28064
28065
  "next-code": y(() => [
28065
- z("}")
28066
+ z("   return series "),
28067
+ mk,
28068
+ z(" } ")
28066
28069
  ]),
28067
28070
  _: 1
28068
28071
  }, 8, ["modelValue"])
@@ -28086,7 +28089,7 @@ const Zw = /* @__PURE__ */ _t({
28086
28089
  };
28087
28090
  }
28088
28091
  });
28089
- function _k(n, e, t, i, s) {
28092
+ function bk(n, e, t, i, s) {
28090
28093
  let r = pe(!1);
28091
28094
  function l(u) {
28092
28095
  let { clientX: h, clientY: c, target: f } = u, { classList: d } = f;
@@ -28111,7 +28114,7 @@ function _k(n, e, t, i, s) {
28111
28114
  }
28112
28115
  function Vf(n, e = 1) {
28113
28116
  let t = 0, i = 300, s = pe(300);
28114
- return _k(
28117
+ return bk(
28115
28118
  n,
28116
28119
  "drag-tap",
28117
28120
  (r, l, o) => {
@@ -28128,15 +28131,15 @@ function Vf(n, e = 1) {
28128
28131
  formWidth: s
28129
28132
  };
28130
28133
  }
28131
- const bk = { class: "statement-design-top" }, Qk = { class: "statement-name" }, yk = { class: "statement-actions" }, Sk = /* @__PURE__ */ M("i", { class: "iconfont icon-fullscreen-exit" }, null, -1), vk = /* @__PURE__ */ M("i", { class: "iconfont icon-fullscreen" }, null, -1), xk = /* @__PURE__ */ M("i", { class: "iconfont icon-save" }, null, -1), $k = /* @__PURE__ */ M("i", { class: "iconfont icon-help-circle-filled" }, null, -1), Pk = /* @__PURE__ */ M("i", { class: "iconfont icon-eye-fill" }, null, -1), wk = { class: "statement-design-body" }, kk = /* @__PURE__ */ M("div", { class: "drag-tap right" }, null, -1), Tk = { class: "statement-option" }, Ck = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
28134
+ const Qk = { class: "statement-design-top" }, yk = { class: "statement-name" }, Sk = { class: "statement-actions" }, vk = /* @__PURE__ */ M("i", { class: "iconfont icon-fullscreen-exit" }, null, -1), xk = /* @__PURE__ */ M("i", { class: "iconfont icon-fullscreen" }, null, -1), $k = /* @__PURE__ */ M("i", { class: "iconfont icon-save" }, null, -1), Pk = /* @__PURE__ */ M("i", { class: "iconfont icon-help-circle-filled" }, null, -1), wk = /* @__PURE__ */ M("i", { class: "iconfont icon-eye-fill" }, null, -1), kk = { class: "statement-design-body" }, Tk = /* @__PURE__ */ M("div", { class: "drag-tap right" }, null, -1), Ck = { class: "statement-option" }, Rk = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
28132
28135
  /* @__PURE__ */ M("div", { class: "statement-option-title-context" }, "图表/报表")
28133
- ], -1), Rk = {
28136
+ ], -1), Xk = {
28134
28137
  key: 1,
28135
28138
  class: "statement-content"
28136
- }, Xk = /* @__PURE__ */ M("div", { class: "drag-tap left" }, null, -1), Nk = /* @__PURE__ */ _t({
28139
+ }, Zk = /* @__PURE__ */ M("div", { class: "drag-tap left" }, null, -1), Bk = /* @__PURE__ */ _t({
28137
28140
  __name: "StatementDesign",
28138
28141
  setup(n) {
28139
- const e = At(), { detail: t, isPreview: i, active: s, activeCells: r, activeIndex: l } = Vt(e), o = pe(), { isFullscreen: a, toggle: u } = Hm(o), { getDetail: h, saveStatement: c } = e, f = pe(), d = pe(), { formWidth: O } = Vf(f), { formWidth: S } = Vf(d, -1), m = pe(!1), p = qf(), Q = Se({
28142
+ const e = At(), { detail: t, isPreview: i, active: s, activeCells: r, activeIndex: l } = Vt(e), o = pe(), { isFullscreen: a, toggle: u } = Hm(o), { getDetail: h, saveStatement: c } = e, f = pe(), d = pe(), { formWidth: p } = Vf(f), { formWidth: S } = Vf(d, -1), m = pe(!1), O = qf(), Q = Se({
28140
28143
  get() {
28141
28144
  return t.value.options;
28142
28145
  },
@@ -28279,7 +28282,7 @@ const bk = { class: "statement-design-top" }, Qk = { class: "statement-name" },
28279
28282
  (V = document.querySelector(".main-container")) == null || V.classList.remove("statement-design-main");
28280
28283
  }), zi(() => {
28281
28284
  var V, A, I, W, j;
28282
- h(p.params.id), (V = o.value) == null || V.addEventListener("dragstart", P), (A = o.value) == null || A.addEventListener("dragend", C), (I = o.value) == null || I.addEventListener("dragover", w), (W = o.value) == null || W.addEventListener("dragleave", X), (j = o.value) == null || j.addEventListener("drop", g);
28285
+ h(O.params.id), (V = o.value) == null || V.addEventListener("dragstart", P), (A = o.value) == null || A.addEventListener("dragend", C), (I = o.value) == null || I.addEventListener("dragover", w), (W = o.value) == null || W.addEventListener("dragleave", X), (j = o.value) == null || j.addEventListener("drop", g);
28283
28286
  }), Jr(() => {
28284
28287
  var V, A, I, W, j;
28285
28288
  e.$dispose(), (V = o.value) == null || V.removeEventListener("dragstart", P), (A = o.value) == null || A.removeEventListener("dragend", C), (I = o.value) == null || I.removeEventListener("dragover", w), (W = o.value) == null || W.removeEventListener("dragleave", X), (j = o.value) == null || j.removeEventListener("drop", g);
@@ -28302,9 +28305,9 @@ const bk = { class: "statement-design-top" }, Qk = { class: "statement-name" },
28302
28305
  ref_key: "designContainerRef",
28303
28306
  ref: o
28304
28307
  }, [
28305
- M("div", bk, [
28306
- M("div", Qk, Ie((j = b(t)) == null ? void 0 : j.name), 1),
28307
- M("div", yk, [
28308
+ M("div", Qk, [
28309
+ M("div", yk, Ie((j = b(t)) == null ? void 0 : j.name), 1),
28310
+ M("div", Sk, [
28308
28311
  _(W, null, {
28309
28312
  default: y(() => [
28310
28313
  b(i) ? (D(), le(b(jm), {
@@ -28334,10 +28337,10 @@ const bk = { class: "statement-design-top" }, Qk = { class: "statement-name" },
28334
28337
  }, {
28335
28338
  default: y(() => [
28336
28339
  b(a) ? (D(), F(oe, { key: 0 }, [
28337
- Sk,
28340
+ vk,
28338
28341
  z(" 退出全屏 ")
28339
28342
  ], 64)) : (D(), F(oe, { key: 1 }, [
28340
- vk,
28343
+ xk,
28341
28344
  z(" 进入全屏 ")
28342
28345
  ], 64))
28343
28346
  ]),
@@ -28349,7 +28352,7 @@ const bk = { class: "statement-design-top" }, Qk = { class: "statement-name" },
28349
28352
  onClick: b(c)
28350
28353
  }, {
28351
28354
  default: y(() => [
28352
- xk,
28355
+ $k,
28353
28356
  z(" 保存 ")
28354
28357
  ]),
28355
28358
  _: 1
@@ -28359,7 +28362,7 @@ const bk = { class: "statement-design-top" }, Qk = { class: "statement-name" },
28359
28362
  text: ""
28360
28363
  }, {
28361
28364
  default: y(() => [
28362
- $k,
28365
+ Pk,
28363
28366
  z(" 帮助 ")
28364
28367
  ]),
28365
28368
  _: 1
@@ -28369,7 +28372,7 @@ const bk = { class: "statement-design-top" }, Qk = { class: "statement-name" },
28369
28372
  onClick: A[1] || (A[1] = (he) => i.value = !0)
28370
28373
  }, {
28371
28374
  default: y(() => [
28372
- Pk,
28375
+ wk,
28373
28376
  z(" 预览 ")
28374
28377
  ]),
28375
28378
  _: 1
@@ -28380,28 +28383,28 @@ const bk = { class: "statement-design-top" }, Qk = { class: "statement-name" },
28380
28383
  })
28381
28384
  ])
28382
28385
  ]),
28383
- M("div", wk, [
28386
+ M("div", kk, [
28384
28387
  kt(M("div", {
28385
28388
  class: "statement-form left",
28386
28389
  ref_key: "leftFormRef",
28387
28390
  ref: f,
28388
28391
  style: Gt({
28389
- width: `${b(O)}px`
28392
+ width: `${b(p)}px`
28390
28393
  })
28391
28394
  }, [
28392
- kk,
28393
- M("div", Tk, [
28394
- Ck,
28395
+ Tk,
28396
+ M("div", Ck, [
28397
+ Rk,
28395
28398
  _(n_, { chartReportList: b(hg) }, null, 8, ["chartReportList"]),
28396
- _(gk)
28399
+ _(_k)
28397
28400
  ])
28398
28401
  ], 4), [
28399
28402
  [Tt, !b(i)]
28400
28403
  ]),
28401
28404
  b(i) ? ae("", !0) : (D(), le(Hg, { key: 0 })),
28402
- b(i) ? (D(), F("div", Rk, [
28405
+ b(i) ? (D(), F("div", Xk, [
28403
28406
  _(ug, {
28404
- id: b(p).params.id
28407
+ id: b(O).params.id
28405
28408
  }, null, 8, ["id"])
28406
28409
  ])) : ae("", !0),
28407
28410
  kt(M("div", {
@@ -28412,7 +28415,7 @@ const bk = { class: "statement-design-top" }, Qk = { class: "statement-name" },
28412
28415
  width: `${b(S)}px`
28413
28416
  })
28414
28417
  }, [
28415
- Xk,
28418
+ Zk,
28416
28419
  _(Zw)
28417
28420
  ], 4), [
28418
28421
  [Tt, !b(i)]
@@ -28428,6 +28431,6 @@ const bk = { class: "statement-design-top" }, Qk = { class: "statement-name" },
28428
28431
  }
28429
28432
  });
28430
28433
  export {
28431
- Nk as default
28434
+ Bk as default
28432
28435
  };
28433
- //# sourceMappingURL=StatementDesign-562bf16e.mjs.map
28436
+ //# sourceMappingURL=StatementDesign-86eeabf9.mjs.map