yh-report 2.4.41 → 2.4.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { onMounted as gi, onUnmounted as Tn, ref as ge, computed as ye, reactive as ls, watch as xi, toRaw as td, defineComponent as je, useCssVars as id, unref as O, resolveComponent as ue, openBlock as A, createElementBlock as F, createElementVNode as M, normalizeStyle as Ke, Fragment as se, renderList as Ae, normalizeClass as gt, createCommentVNode as re, createBlock as ie, withCtx as y, createVNode as b, createTextVNode as E, toDisplayString as Xe, Teleport as fg, withModifiers as nd, nextTick as Kn, pushScopeId as sd, popScopeId as rd, resolveDynamicComponent as dg, renderSlot as At, onActivated as ld, onDeactivated as ad, mergeProps as ul, withDirectives as xt, vShow as Tt, isRef as Og, withKeys as pg } from "vue";
2
- import { ElMessageBox as od, ElMessage as Ui, ElEmpty as mg, ElDialog as ud, ElFormItem as $e, ElInput as Gt, ElSwitch as Jn, ElButton as Ce, ElColorPicker as gg, ClickOutside as _g, ElRadioGroup as As, ElRadioButton as st, ElCheckbox as Yn, ElForm as bg, ElTabs as hd, ElCollapse as yg, ElCollapseItem as Qg, ElTabPane as Nu } from "element-plus";
1
+ import { onMounted as gi, onUnmounted as Cn, ref as ge, computed as ye, reactive as ls, watch as xi, toRaw as td, defineComponent as je, useCssVars as id, unref as O, resolveComponent as ue, openBlock as A, createElementBlock as F, createElementVNode as M, normalizeStyle as Ke, Fragment as se, renderList as Ae, normalizeClass as _t, createCommentVNode as re, createBlock as ie, withCtx as y, createVNode as b, createTextVNode as E, toDisplayString as Xe, Teleport as fg, withModifiers as nd, nextTick as Kn, pushScopeId as sd, popScopeId as rd, resolveDynamicComponent as dg, renderSlot as At, onActivated as ld, onDeactivated as ad, mergeProps as ul, withDirectives as ft, vShow as $t, isRef as Og, withKeys as pg } from "vue";
2
+ import { ElMessageBox as od, ElMessage as Ui, ElEmpty as mg, ElDialog as ud, ElFormItem as $e, ElInput as Gt, ElSwitch as Jn, ElButton as Ce, ElColorPicker as gg, ClickOutside as _g, ElRadioGroup as As, ElRadioButton as st, ElCheckbox as en, ElForm as bg, ElTabs as hd, ElCollapse as yg, ElCollapseItem as Qg, ElTabPane as Nu } from "element-plus";
3
3
  import { useRoute as Wo, useRouter as vg } from "vue-router";
4
- import { defineStore as Sg, storeToRefs as Pt } from "pinia";
4
+ import { defineStore as Sg, storeToRefs as kt } from "pinia";
5
5
  import { a as xg } from "./editorLock-61ebf836.mjs";
6
- import { C as de, b as $g, c as wg, s as Pg, e as kg, F as Ee, r as Tg, _ as hl, f as Cg, h as Ma, i as Xg, D as pr, p as Rg, j as Bu, k as Ys, l as Gu, v as Zg, m as cd, n as Vg, o as Ag, T as Cl, q as Yg, I as Eg, t as Mg } from "./index-3bb42ef4.mjs";
6
+ import { C as de, b as $g, c as wg, s as Pg, e as kg, F as Ee, r as Tg, _ as hl, f as Cg, h as Ma, i as Xg, D as pr, p as Rg, j as Bu, k as Ys, l as Gu, v as Zg, m as cd, n as Vg, o as Ag, T as Cl, q as Yg, I as Eg, t as Mg } from "./index-af2e609d.mjs";
7
7
  import { cloneDeep as rt, set as Et, get as qg } from "lodash-es";
8
8
  import "@/libs/api.request.js";
9
9
  import "echarts";
@@ -37,7 +37,7 @@ const Lg = (n, e) => {
37
37
  }
38
38
  gi(() => {
39
39
  window.addEventListener("keydown", r);
40
- }), Tn(() => {
40
+ }), Cn(() => {
41
41
  window.removeEventListener("keydown", r);
42
42
  });
43
43
  };
@@ -219,7 +219,7 @@ function jg(n) {
219
219
  };
220
220
  })();
221
221
  }
222
- const Xl = {}, kt = function() {
222
+ const Xl = {}, Tt = function() {
223
223
  const n = Wo(), e = n.params.id;
224
224
  if (Xl[e])
225
225
  return Xl[e];
@@ -263,7 +263,7 @@ const Xl = {}, kt = function() {
263
263
  bf038cac: O(o).hoverBackground,
264
264
  "765ede1d": O(o).activeColor
265
265
  }));
266
- const t = kt(), { activeIndex: i, activeTableIndex: s, active: r, activeCells: l } = Pt(t), a = ye(() => e.tableConfig), o = ye(() => kg(r.value && r.value.type === "report" ? r.value.theme : "none")), u = ye({
266
+ const t = Tt(), { activeIndex: i, activeTableIndex: s, active: r, activeCells: l } = kt(t), a = ye(() => e.tableConfig), o = ye(() => kg(r.value && r.value.type === "report" ? r.value.theme : "none")), u = ye({
267
267
  get() {
268
268
  return a.value.colConfig || [];
269
269
  },
@@ -482,13 +482,13 @@ const Xl = {}, kt = function() {
482
482
  }, null, 8, Ng))), 256))
483
483
  ]),
484
484
  (A(!0), F(se, null, Ae(O(g), ({ size: _, cols: S, bind: k, loop: V, hidden: L, isComputed: G }, ee) => (A(), F("tr", {
485
- class: gt({
485
+ class: _t({
486
486
  hidden: L,
487
487
  "is-computed": G
488
488
  })
489
489
  }, [
490
490
  (A(!0), F(se, null, Ae(S, (H, N) => (A(), F("td", {
491
- class: gt(H.class),
491
+ class: _t(H.class),
492
492
  style: Ke(H.styleAttr),
493
493
  title: `${(k || H.bind) && H.type === "head" ? "随数据循环" : H.text}`,
494
494
  "data-source": "column",
@@ -801,7 +801,7 @@ const fd = (n) => (sd("data-v-5653c0b0"), n = n(), rd(), n), s_ = { class: "cell
801
801
  }
802
802
  ), gi(() => {
803
803
  document.addEventListener("mousedown", T);
804
- }), Tn(() => {
804
+ }), Cn(() => {
805
805
  document.removeEventListener("mousedown", T), c && clearTimeout(c);
806
806
  }), (_, S) => {
807
807
  const k = ue("el-input"), V = ue("el-tooltip");
@@ -875,7 +875,7 @@ const fd = (n) => (sd("data-v-5653c0b0"), n = n(), rd(), n), s_ = { class: "cell
875
875
  }, [
876
876
  (A(!0), F(se, null, Ae(l.value, (L, G) => (A(), F("div", {
877
877
  key: G,
878
- class: gt(["autocomplete-item", { active: G === a.value }]),
878
+ class: _t(["autocomplete-item", { active: G === a.value }]),
879
879
  onClick: (ee) => P(G)
880
880
  }, [
881
881
  M("span", o_, Xe(L.label), 1),
@@ -901,7 +901,7 @@ const c_ = /* @__PURE__ */ hl(h_, [["__scopeId", "data-v-5653c0b0"]]), f_ = ["da
901
901
  },
902
902
  emits: ["del", "choose"],
903
903
  setup(n, { emit: e }) {
904
- const t = n, i = kt(), { activeCell: s, activeIndex: r, activeParamIndex: l, activeCells: a, detail: o } = Pt(i), { prevActive: u, nextActive: h } = i, c = ye(() => t.option), f = ge(), d = ye(() => {
904
+ const t = n, i = Tt(), { activeCell: s, activeIndex: r, activeParamIndex: l, activeCells: a, detail: o } = kt(i), { prevActive: u, nextActive: h } = i, c = ye(() => t.option), f = ge(), d = ye(() => {
905
905
  const S = i.active;
906
906
  return S && S.type === "report" ? S.data.source || [] : [];
907
907
  });
@@ -992,13 +992,13 @@ const c_ = /* @__PURE__ */ hl(h_, [["__scopeId", "data-v-5653c0b0"]]), f_ = ["da
992
992
  }
993
993
  return gi(async () => {
994
994
  Z.value && (Z.value.addEventListener("mousedown", T), document.addEventListener("mousemove", Y), document.addEventListener("mouseup", _));
995
- }), Tn(() => {
995
+ }), Cn(() => {
996
996
  var S;
997
997
  (S = Z.value) == null || S.removeEventListener("mousedown", T), document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup", _);
998
998
  }), (S, k) => {
999
999
  const V = ue("el-form-item"), L = ue("el-form"), G = ue("el-button");
1000
1000
  return A(), F("div", {
1001
- class: gt(["yh-statement-table report-drop-target", { active: t.index === O(r) }]),
1001
+ class: _t(["yh-statement-table report-drop-target", { active: t.index === O(r) }]),
1002
1002
  style: Ke(O(Q)),
1003
1003
  "data-source": "canvas",
1004
1004
  "data-target": "canvas",
@@ -1010,7 +1010,7 @@ const c_ = /* @__PURE__ */ hl(h_, [["__scopeId", "data-v-5653c0b0"]]), f_ = ["da
1010
1010
  b(L, { inline: "" }, {
1011
1011
  default: y(() => [
1012
1012
  (A(!0), F(se, null, Ae(O(m), (ee, H) => (A(), ie(V, {
1013
- class: gt(["params-desinger-item report-drag-source report-drop-target", { active: H === O(l) }]),
1013
+ class: _t(["params-desinger-item report-drag-source report-drop-target", { active: H === O(l) }]),
1014
1014
  draggable: "true",
1015
1015
  "data-drag": "params",
1016
1016
  "data-source": "column",
@@ -1119,7 +1119,7 @@ const c_ = /* @__PURE__ */ hl(h_, [["__scopeId", "data-v-5653c0b0"]]), f_ = ["da
1119
1119
  },
1120
1120
  emits: ["del", "choose"],
1121
1121
  setup(n, { emit: e }) {
1122
- const t = n, i = kt(), { activeIndex: s, detail: r } = Pt(i), { prevActive: l, nextActive: a } = i, o = ye({
1122
+ const t = n, i = Tt(), { activeIndex: s, detail: r } = kt(i), { prevActive: l, nextActive: a } = i, o = ye({
1123
1123
  get() {
1124
1124
  return r.value.options[t.index];
1125
1125
  },
@@ -1163,7 +1163,7 @@ const c_ = /* @__PURE__ */ hl(h_, [["__scopeId", "data-v-5653c0b0"]]), f_ = ["da
1163
1163
  return (p, Q) => {
1164
1164
  const m = ue("el-button");
1165
1165
  return A(), F("div", {
1166
- class: gt(["yh-statement-table report-drop-target", { active: t.index === O(s), suspend: O(o).isSuspend }]),
1166
+ class: _t(["yh-statement-table report-drop-target", { active: t.index === O(s), suspend: O(o).isSuspend }]),
1167
1167
  "data-source": "canvas",
1168
1168
  "data-target": "canvas",
1169
1169
  "data-index": t.index,
@@ -1266,7 +1266,7 @@ const c_ = /* @__PURE__ */ hl(h_, [["__scopeId", "data-v-5653c0b0"]]), f_ = ["da
1266
1266
  id((g) => ({
1267
1267
  "95ffe5fa": O(h)
1268
1268
  }));
1269
- const i = kt(), { activeIndex: s, detail: r } = Pt(i), { prevActive: l, nextActive: a } = i, o = ye({
1269
+ const i = Tt(), { activeIndex: s, detail: r } = kt(i), { prevActive: l, nextActive: a } = i, o = ye({
1270
1270
  get() {
1271
1271
  return r.value.options[t.index];
1272
1272
  },
@@ -1315,7 +1315,7 @@ const c_ = /* @__PURE__ */ hl(h_, [["__scopeId", "data-v-5653c0b0"]]), f_ = ["da
1315
1315
  return (g, v) => {
1316
1316
  const Z = ue("el-button");
1317
1317
  return A(), F("div", {
1318
- class: gt(["yh-statement-table report-drop-target", { active: t.index === O(s) }]),
1318
+ class: _t(["yh-statement-table report-drop-target", { active: t.index === O(s) }]),
1319
1319
  "data-source": "canvas",
1320
1320
  "data-target": "canvas",
1321
1321
  "data-index": t.index,
@@ -1378,7 +1378,7 @@ const c_ = /* @__PURE__ */ hl(h_, [["__scopeId", "data-v-5653c0b0"]]), f_ = ["da
1378
1378
  const U_ = /* @__PURE__ */ je({
1379
1379
  __name: "reportDesinger",
1380
1380
  setup(n) {
1381
- const e = Wo(), t = kt(), { detail: i, active: s, activeIndex: r, activeTable: l, activeTableIndex: a, activeCells: o, activeParamIndex: u } = Pt(t), { activeChooseHandle: h, getDetail: c, saveStatement: f } = t, d = ge(), p = ye({
1381
+ const e = Wo(), t = Tt(), { detail: i, active: s, activeIndex: r, activeTable: l, activeTableIndex: a, activeCells: o, activeParamIndex: u } = kt(t), { activeChooseHandle: h, getDetail: c, saveStatement: f } = t, d = ge(), p = ye({
1382
1382
  get() {
1383
1383
  return i.value.options;
1384
1384
  },
@@ -1522,7 +1522,7 @@ const U_ = /* @__PURE__ */ je({
1522
1522
  c(e.params.id), X();
1523
1523
  }), gi(() => {
1524
1524
  X();
1525
- }), Tn(() => {
1525
+ }), Cn(() => {
1526
1526
  w();
1527
1527
  }), ad(() => {
1528
1528
  w();
@@ -1606,7 +1606,7 @@ const B_ = { class: "chart-series-wrapper" }, G_ = ["data-drag", "data-index"],
1606
1606
  "data-index": s
1607
1607
  }, [
1608
1608
  M("i", {
1609
- class: gt(["iconfont", i.icon])
1609
+ class: _t(["iconfont", i.icon])
1610
1610
  }, null, 2),
1611
1611
  M("span", null, Xe(i.name), 1)
1612
1612
  ], 8, G_))), 256))
@@ -1809,7 +1809,7 @@ const B_ = { class: "chart-series-wrapper" }, G_ = ["data-drag", "data-index"],
1809
1809
  ], -1), n0 = /* @__PURE__ */ M("br", null, null, -1), s0 = /* @__PURE__ */ M("br", null, null, -1), r0 = /* @__PURE__ */ M("br", null, null, -1), l0 = /* @__PURE__ */ M("br", null, null, -1), a0 = /* @__PURE__ */ M("br", null, null, -1), o0 = /* @__PURE__ */ M("br", null, null, -1), u0 = /* @__PURE__ */ M("span", { class: "tooltip-span" }, "开始时间(当前时间 - 时间段)", -1), h0 = /* @__PURE__ */ M("br", null, null, -1), c0 = /* @__PURE__ */ M("span", { class: "tooltip-span" }, "结束时间(当前时间)", -1), f0 = /* @__PURE__ */ M("br", null, null, -1), d0 = /* @__PURE__ */ M("br", null, null, -1), O0 = /* @__PURE__ */ M("br", null, null, -1), p0 = /* @__PURE__ */ M("br", null, null, -1), m0 = /* @__PURE__ */ M("br", null, null, -1), g0 = /* @__PURE__ */ M("br", null, null, -1), _0 = /* @__PURE__ */ M("span", { class: "tooltip-span" }, "开始时间(00:00:00)", -1), b0 = /* @__PURE__ */ M("br", null, null, -1), y0 = /* @__PURE__ */ M("span", { class: "tooltip-span" }, "结束时间(23:59:59)", -1), Q0 = /* @__PURE__ */ je({
1810
1810
  __name: "paramEditor",
1811
1811
  setup(n) {
1812
- const e = kt(), { activeParam: t } = Pt(e), i = ye(() => {
1812
+ const e = Tt(), { activeParam: t } = kt(e), i = ye(() => {
1813
1813
  if (t.value && t.value.dateType) {
1814
1814
  let { defaultValue: r, defaultDateOptions: l } = t0(t.value.dateType);
1815
1815
  return t.value.defaultValue = r, l;
@@ -2235,7 +2235,7 @@ const B_ = { class: "chart-series-wrapper" }, G_ = ["data-drag", "data-index"],
2235
2235
  _: 3
2236
2236
  }, 16));
2237
2237
  }
2238
- }), en = /* @__PURE__ */ je({
2238
+ }), tn = /* @__PURE__ */ je({
2239
2239
  __name: "switchButton",
2240
2240
  props: {
2241
2241
  modelValue: { default: !1 },
@@ -2274,7 +2274,7 @@ const B_ = { class: "chart-series-wrapper" }, G_ = ["data-drag", "data-index"],
2274
2274
  return (r, l) => {
2275
2275
  const a = ue("el-popover");
2276
2276
  return A(), F(se, null, [
2277
- xt((A(), ie(O(Ce), ul({ class: "yh-report-choose-color-button" }, r.$attrs, {
2277
+ ft((A(), ie(O(Ce), ul({ class: "yh-report-choose-color-button" }, r.$attrs, {
2278
2278
  type: n.modelValue ? "primary" : "",
2279
2279
  ref_key: "buttonRef",
2280
2280
  ref: t
@@ -2402,7 +2402,7 @@ class Te {
2402
2402
  Replace a range of the text with the given content.
2403
2403
  */
2404
2404
  replace(e, t, i) {
2405
- [e, t] = yn(this, e, t);
2405
+ [e, t] = Qn(this, e, t);
2406
2406
  let s = [];
2407
2407
  return this.decompose(
2408
2408
  0,
@@ -2434,7 +2434,7 @@ class Te {
2434
2434
  Retrieve the text between the given points.
2435
2435
  */
2436
2436
  slice(e, t = this.length) {
2437
- [e, t] = yn(this, e, t);
2437
+ [e, t] = Qn(this, e, t);
2438
2438
  let i = [];
2439
2439
  return this.decompose(e, t, i, 0), Ft.from(i, t - e);
2440
2440
  }
@@ -2550,13 +2550,13 @@ class Ie extends Te {
2550
2550
  replace(e, t, i) {
2551
2551
  if (!(i instanceof Ie))
2552
2552
  return super.replace(e, t, i);
2553
- [e, t] = yn(this, e, t);
2553
+ [e, t] = Qn(this, e, t);
2554
2554
  let s = mr(this.text, mr(i.text, eh(this.text, 0, e)), t), r = this.length + i.length - (t - e);
2555
2555
  return s.length <= 32 ? new Ie(s, r) : Ft.from(Ie.split(s, []), r);
2556
2556
  }
2557
2557
  sliceString(e, t = this.length, i = `
2558
2558
  `) {
2559
- [e, t] = yn(this, e, t);
2559
+ [e, t] = Qn(this, e, t);
2560
2560
  let s = "";
2561
2561
  for (let r = 0, l = 0; r <= t && l < this.text.length; l++) {
2562
2562
  let a = this.text[l], o = r + a.length;
@@ -2603,7 +2603,7 @@ class Ft extends Te {
2603
2603
  }
2604
2604
  }
2605
2605
  replace(e, t, i) {
2606
- if ([e, t] = yn(this, e, t), i.lines < this.lines)
2606
+ if ([e, t] = Qn(this, e, t), i.lines < this.lines)
2607
2607
  for (let s = 0, r = 0; s < this.children.length; s++) {
2608
2608
  let l = this.children[s], a = r + l.length;
2609
2609
  if (e >= r && t <= a) {
@@ -2620,7 +2620,7 @@ class Ft extends Te {
2620
2620
  }
2621
2621
  sliceString(e, t = this.length, i = `
2622
2622
  `) {
2623
- [e, t] = yn(this, e, t);
2623
+ [e, t] = Qn(this, e, t);
2624
2624
  let s = "";
2625
2625
  for (let r = 0, l = 0; r < this.children.length && l <= t; r++) {
2626
2626
  let a = this.children[r], o = l + a.length;
@@ -2775,7 +2775,7 @@ class T0 {
2775
2775
  return this.to - this.from;
2776
2776
  }
2777
2777
  }
2778
- function yn(n, e, t) {
2778
+ function Qn(n, e, t) {
2779
2779
  return e = Math.max(0, Math.min(n.length, e)), [e, Math.max(e, Math.min(n.length, t))];
2780
2780
  }
2781
2781
  function He(n, e, t = !0, i = !0) {
@@ -2787,7 +2787,7 @@ function C0(n) {
2787
2787
  function X0(n) {
2788
2788
  return n >= 55296 && n < 56320;
2789
2789
  }
2790
- function ft(n, e) {
2790
+ function dt(n, e) {
2791
2791
  let t = n.charCodeAt(e);
2792
2792
  if (!X0(t) || e + 1 == n.length)
2793
2793
  return t;
@@ -4033,11 +4033,11 @@ function kd(n, e, t) {
4033
4033
  };
4034
4034
  }
4035
4035
  function Ia(n, e, t) {
4036
- let i = e.selection, s = fn(e.annotations);
4036
+ let i = e.selection, s = dn(e.annotations);
4037
4037
  return e.userEvent && (s = s.concat(Be.userEvent.of(e.userEvent))), {
4038
4038
  changes: e.changes instanceof Ge ? e.changes : Ge.of(e.changes || [], t, n.facet(Sd)),
4039
4039
  selection: i && (i instanceof I ? i : I.single(i.anchor, i.head)),
4040
- effects: fn(e.effects),
4040
+ effects: dn(e.effects),
4041
4041
  annotations: s,
4042
4042
  scrollIntoView: !!e.scrollIntoView
4043
4043
  };
@@ -4076,7 +4076,7 @@ function E0(n) {
4076
4076
  let i = e.facet($d);
4077
4077
  for (let s = i.length - 1; s >= 0; s--) {
4078
4078
  let r = i[s](n);
4079
- r instanceof Be ? n = r : Array.isArray(r) && r.length == 1 && r[0] instanceof Be ? n = r[0] : n = Td(e, fn(r), !1);
4079
+ r instanceof Be ? n = r : Array.isArray(r) && r.length == 1 && r[0] instanceof Be ? n = r[0] : n = Td(e, dn(r), !1);
4080
4080
  }
4081
4081
  return n;
4082
4082
  }
@@ -4089,7 +4089,7 @@ function M0(n) {
4089
4089
  return i == n ? n : Be.create(e, n.changes, n.selection, i.effects, i.annotations, i.scrollIntoView);
4090
4090
  }
4091
4091
  const q0 = [];
4092
- function fn(n) {
4092
+ function dn(n) {
4093
4093
  return n == null ? q0 : Array.isArray(n) ? n : [n];
4094
4094
  }
4095
4095
  var We = /* @__PURE__ */ function(n) {
@@ -4163,7 +4163,7 @@ class Ze {
4163
4163
  applyTransaction(e) {
4164
4164
  let t = this.config, { base: i, compartments: s } = t;
4165
4165
  for (let a of e.effects)
4166
- a.is(cl.reconfigure) ? (t && (s = /* @__PURE__ */ new Map(), t.compartments.forEach((o, u) => s.set(u, o)), t = null), s.set(a.value.compartment, a.value.extension)) : a.is(Se.reconfigure) ? (t = null, i = a.value) : a.is(Se.appendConfig) && (t = null, i = fn(i).concat(a.value));
4166
+ a.is(cl.reconfigure) ? (t && (s = /* @__PURE__ */ new Map(), t.compartments.forEach((o, u) => s.set(u, o)), t = null), s.set(a.value.compartment, a.value.extension)) : a.is(Se.reconfigure) ? (t = null, i = a.value) : a.is(Se.appendConfig) && (t = null, i = dn(i).concat(a.value));
4167
4167
  let r;
4168
4168
  t ? r = e.startState.values.slice() : (t = kr.resolve(i, s, this), r = new Ze(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (o, u) => u.reconfigure(o, this), null).values);
4169
4169
  let l = e.startState.facet(Ua) ? e.newSelection : e.newSelection.asSingle();
@@ -4191,13 +4191,13 @@ class Ze {
4191
4191
  [`update`](https://codemirror.net/6/docs/ref/#state.EditorState.update).
4192
4192
  */
4193
4193
  changeByRange(e) {
4194
- let t = this.selection, i = e(t.ranges[0]), s = this.changes(i.changes), r = [i.range], l = fn(i.effects);
4194
+ let t = this.selection, i = e(t.ranges[0]), s = this.changes(i.changes), r = [i.range], l = dn(i.effects);
4195
4195
  for (let a = 1; a < t.ranges.length; a++) {
4196
4196
  let o = e(t.ranges[a]), u = this.changes(o.changes), h = u.map(s);
4197
4197
  for (let f = 0; f < a; f++)
4198
4198
  r[f] = r[f].map(h);
4199
4199
  let c = s.mapDesc(u, !0);
4200
- r.push(o.range.map(c)), s = s.compose(h), l = Se.mapEffects(l, h).concat(Se.mapEffects(fn(o.effects), c));
4200
+ r.push(o.range.map(c)), s = s.compose(h), l = Se.mapEffects(l, h).concat(Se.mapEffects(dn(o.effects), c));
4201
4201
  }
4202
4202
  return {
4203
4203
  changes: s,
@@ -4982,7 +4982,7 @@ function sh(n, e) {
4982
4982
  (e[s] - i || n[s].endSide - n[t].endSide) < 0 && (t = s, i = e[s]);
4983
4983
  return t;
4984
4984
  }
4985
- function Cn(n, e, t = n.length) {
4985
+ function Xn(n, e, t = n.length) {
4986
4986
  let i = 0;
4987
4987
  for (let s = 0; s < t && s < n.length; )
4988
4988
  n.charCodeAt(s) == 9 ? (i += e - i % e, s++) : (i++, s = He(n, s));
@@ -5510,7 +5510,7 @@ function Vd(n, e = !1) {
5510
5510
  function F0(n, e) {
5511
5511
  return n == e || !!(n && e && n.compare(e));
5512
5512
  }
5513
- function dn(n, e, t, i = 0) {
5513
+ function On(n, e, t, i = 0) {
5514
5514
  let s = t.length - 1;
5515
5515
  s >= 0 && t[s] + i >= n ? t[s] = Math.max(t[s], e) : t.push(n, e);
5516
5516
  }
@@ -5723,7 +5723,7 @@ function fs(n, e, t = e) {
5723
5723
  let i = dh || (dh = document.createRange());
5724
5724
  return i.setEnd(n, t), i.setStart(n, e), i;
5725
5725
  }
5726
- function On(n, e, t, i) {
5726
+ function pn(n, e, t, i) {
5727
5727
  let s = { key: e, code: e, keyCode: t, which: t, cancelable: !0 };
5728
5728
  i && ({ altKey: s.altKey, ctrlKey: s.ctrlKey, shiftKey: s.shiftKey, metaKey: s.metaKey } = i);
5729
5729
  let r = new KeyboardEvent("keydown", s);
@@ -6089,25 +6089,25 @@ const Id = /* @__PURE__ */ ce.define(), Nd = /* @__PURE__ */ ce.define(), Bd = /
6089
6089
  }), Jd = /* @__PURE__ */ ce.define({
6090
6090
  combine: (n) => n.some((e) => e)
6091
6091
  }), eO = /* @__PURE__ */ ce.define();
6092
- class pn {
6092
+ class mn {
6093
6093
  constructor(e, t, i, s, r, l = !1) {
6094
6094
  this.range = e, this.y = t, this.x = i, this.yMargin = s, this.xMargin = r, this.isSnapshot = l;
6095
6095
  }
6096
6096
  map(e) {
6097
- return e.empty ? this : new pn(this.range.map(e), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
6097
+ return e.empty ? this : new mn(this.range.map(e), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
6098
6098
  }
6099
6099
  clip(e) {
6100
- return this.range.to <= e.doc.length ? this : new pn(I.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
6100
+ return this.range.to <= e.doc.length ? this : new mn(I.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
6101
6101
  }
6102
6102
  }
6103
6103
  const zs = /* @__PURE__ */ Se.define({ map: (n, e) => n.map(e) }), tO = /* @__PURE__ */ Se.define();
6104
- function pt(n, e, t) {
6104
+ function mt(n, e, t) {
6105
6105
  let i = n.facet(Gd);
6106
6106
  i.length ? i[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
6107
6107
  }
6108
6108
  const ui = /* @__PURE__ */ ce.define({ combine: (n) => n.length ? n[0] : !0 });
6109
6109
  let cb = 0;
6110
- const on = /* @__PURE__ */ ce.define({
6110
+ const un = /* @__PURE__ */ ce.define({
6111
6111
  combine(n) {
6112
6112
  return n.filter((e, t) => {
6113
6113
  for (let i = 0; i < t; i++)
@@ -6119,13 +6119,13 @@ const on = /* @__PURE__ */ ce.define({
6119
6119
  });
6120
6120
  class Ne {
6121
6121
  constructor(e, t, i, s, r) {
6122
- this.id = e, this.create = t, this.domEventHandlers = i, this.domEventObservers = s, this.baseExtensions = r(this), this.extension = this.baseExtensions.concat(on.of({ plugin: this, arg: void 0 }));
6122
+ this.id = e, this.create = t, this.domEventHandlers = i, this.domEventObservers = s, this.baseExtensions = r(this), this.extension = this.baseExtensions.concat(un.of({ plugin: this, arg: void 0 }));
6123
6123
  }
6124
6124
  /**
6125
6125
  Create an extension for this plugin with the given argument.
6126
6126
  */
6127
6127
  of(e) {
6128
- return this.baseExtensions.concat(on.of({ plugin: this, arg: e }));
6128
+ return this.baseExtensions.concat(un.of({ plugin: this, arg: e }));
6129
6129
  }
6130
6130
  /**
6131
6131
  Define a plugin from a constructor function that creates the
@@ -6164,7 +6164,7 @@ class Yl {
6164
6164
  try {
6165
6165
  this.value.update(t);
6166
6166
  } catch (i) {
6167
- if (pt(t.state, i, "CodeMirror plugin crashed"), this.value.destroy)
6167
+ if (mt(t.state, i, "CodeMirror plugin crashed"), this.value.destroy)
6168
6168
  try {
6169
6169
  this.value.destroy();
6170
6170
  } catch {
@@ -6176,7 +6176,7 @@ class Yl {
6176
6176
  try {
6177
6177
  this.value = this.spec.plugin.create(e, this.spec.arg);
6178
6178
  } catch (t) {
6179
- pt(e.state, t, "CodeMirror plugin crashed"), this.deactivate();
6179
+ mt(e.state, t, "CodeMirror plugin crashed"), this.deactivate();
6180
6180
  }
6181
6181
  return this;
6182
6182
  }
@@ -6186,7 +6186,7 @@ class Yl {
6186
6186
  try {
6187
6187
  this.value.destroy();
6188
6188
  } catch (i) {
6189
- pt(e.state, i, "CodeMirror plugin crashed");
6189
+ mt(e.state, i, "CodeMirror plugin crashed");
6190
6190
  }
6191
6191
  }
6192
6192
  deactivate() {
@@ -6556,7 +6556,7 @@ class hi extends Ol {
6556
6556
  return t || (i.flags |= 4), i;
6557
6557
  }
6558
6558
  }
6559
- class Qn extends Ol {
6559
+ class vn extends Ol {
6560
6560
  constructor(e, t) {
6561
6561
  super(e), this.attrs = t;
6562
6562
  }
@@ -6564,7 +6564,7 @@ class Qn extends Ol {
6564
6564
  return !0;
6565
6565
  }
6566
6566
  static start(e, t, i) {
6567
- let s = new Qn(t || document.createElement("div"), e);
6567
+ let s = new vn(t || document.createElement("div"), e);
6568
6568
  return (!t || !i) && (s.flags |= 4), s;
6569
6569
  }
6570
6570
  get domAttrs() {
@@ -6614,7 +6614,7 @@ function Ob(n, e) {
6614
6614
  let t = n.coordsIn(0, 1), i = e.coordsIn(0, 1);
6615
6615
  return t && i && i.top < t.bottom;
6616
6616
  }
6617
- class Ot extends Ol {
6617
+ class pt extends Ol {
6618
6618
  constructor(e, t) {
6619
6619
  super(e), this.mark = t;
6620
6620
  }
@@ -6622,7 +6622,7 @@ class Ot extends Ol {
6622
6622
  return this.mark.attrs;
6623
6623
  }
6624
6624
  static of(e, t) {
6625
- let i = new Ot(t || document.createElement(e.tagName), e);
6625
+ let i = new pt(t || document.createElement(e.tagName), e);
6626
6626
  return t || (i.flags |= 4), i;
6627
6627
  }
6628
6628
  }
@@ -6790,14 +6790,14 @@ class gb {
6790
6790
  let s = i;
6791
6791
  for (let a = t.marks.length - 1; a >= 0; a--) {
6792
6792
  let o = t.marks[a], u = s.lastChild;
6793
- if (u instanceof Ot && u.mark.eq(o.mark))
6793
+ if (u instanceof pt && u.mark.eq(o.mark))
6794
6794
  u.dom != o.dom && u.setDOM(El(o.dom)), s = u;
6795
6795
  else {
6796
6796
  if (this.cache.reused.get(o)) {
6797
6797
  let c = Ue.get(o.dom);
6798
6798
  c && c.setDOM(El(o.dom));
6799
6799
  }
6800
- let h = Ot.of(o.mark, o.dom);
6800
+ let h = pt.of(o.mark, o.dom);
6801
6801
  s.append(h), s = h;
6802
6802
  }
6803
6803
  this.cache.reused.set(
@@ -6834,7 +6834,7 @@ class gb {
6834
6834
  addLineStart(e, t) {
6835
6835
  var i;
6836
6836
  e || (e = lO);
6837
- let s = Qn.start(e, t || ((i = this.cache.find(Qn)) === null || i === void 0 ? void 0 : i.dom), !!t);
6837
+ let s = vn.start(e, t || ((i = this.cache.find(vn)) === null || i === void 0 ? void 0 : i.dom), !!t);
6838
6838
  this.getBlockPos().append(this.lastBlock = this.curLine = s);
6839
6839
  }
6840
6840
  addLine(e) {
@@ -6854,10 +6854,10 @@ class gb {
6854
6854
  let s = this.curLine;
6855
6855
  for (let r = e.length - 1; r >= 0; r--) {
6856
6856
  let l = e[r], a;
6857
- if (t > 0 && (a = s.lastChild) && a instanceof Ot && a.mark.eq(l))
6857
+ if (t > 0 && (a = s.lastChild) && a instanceof pt && a.mark.eq(l))
6858
6858
  s = a, t--;
6859
6859
  else {
6860
- let o = Ot.of(l, (i = this.cache.find(Ot, (u) => u.mark.eq(l))) === null || i === void 0 ? void 0 : i.dom);
6860
+ let o = pt.of(l, (i = this.cache.find(pt, (u) => u.mark.eq(l))) === null || i === void 0 ? void 0 : i.dom);
6861
6861
  s.append(o), s = o, t = 0;
6862
6862
  }
6863
6863
  }
@@ -6946,7 +6946,7 @@ class _b {
6946
6946
  return this.textOff = t, i;
6947
6947
  }
6948
6948
  }
6949
- const Ar = [Fi, Qn, Li, Ot, Vr, hi, pl];
6949
+ const Ar = [Fi, vn, Li, pt, Vr, hi, pl];
6950
6950
  for (let n = 0; n < Ar.length; n++)
6951
6951
  Ar[n].bucket = n;
6952
6952
  class bb {
@@ -7061,7 +7061,7 @@ class yb {
7061
7061
  ), this.builder.addLine(l);
7062
7062
  else if (l instanceof Vr)
7063
7063
  this.cache.add(l);
7064
- else if (l instanceof Ot)
7064
+ else if (l instanceof pt)
7065
7065
  this.builder.ensureLine(null), this.builder.addMark(l, s, r), this.cache.reused.set(
7066
7066
  l,
7067
7067
  1
@@ -7072,10 +7072,10 @@ class yb {
7072
7072
  this.openWidget = !1;
7073
7073
  },
7074
7074
  enter: (l) => {
7075
- l.isLine() ? this.builder.addLineStart(l.attrs, this.cache.maybeReuse(l)) : (this.cache.add(l), l instanceof Ot && s.unshift(l.mark)), this.openWidget = !1;
7075
+ l.isLine() ? this.builder.addLineStart(l.attrs, this.cache.maybeReuse(l)) : (this.cache.add(l), l instanceof pt && s.unshift(l.mark)), this.openWidget = !1;
7076
7076
  },
7077
7077
  leave: (l) => {
7078
- l.isLine() ? s.length && (s.length = r = 0) : l instanceof Ot && (s.shift(), r = Math.min(r, s.length));
7078
+ l.isLine() ? s.length && (s.length = r = 0) : l instanceof pt && (s.shift(), r = Math.min(r, s.length));
7079
7079
  },
7080
7080
  break: () => {
7081
7081
  this.builder.addBreak(), this.openWidget = !1;
@@ -7095,7 +7095,7 @@ class yb {
7095
7095
  if (r = h.length, c > h.length)
7096
7096
  s.continueWidget(o - a);
7097
7097
  else {
7098
- let d = u.widget || (u.block ? vn.block : vn.inline), p = Qb(u), Q = this.cache.findWidget(d, o - a, p) || Fi.of(d, this.view, o - a, p);
7098
+ let d = u.widget || (u.block ? Sn.block : Sn.inline), p = Qb(u), Q = this.cache.findWidget(d, o - a, p) || Fi.of(d, this.view, o - a, p);
7099
7099
  u.block ? (u.startSide > 0 && s.addLineStartIfNotCovered(i), s.addBlockWidget(Q)) : (s.ensureLine(i), s.addInlineWidget(Q, h, c));
7100
7100
  }
7101
7101
  i = null;
@@ -7121,7 +7121,7 @@ class yb {
7121
7121
  let r = Ue.get(s);
7122
7122
  if (s == this.view.contentDOM)
7123
7123
  break;
7124
- r instanceof Ot ? t.push(r) : r != null && r.isLine() ? i = r : r instanceof hi || (s.nodeName == "DIV" && !i && s != this.view.contentDOM ? i = new Qn(s, lO) : i || t.push(Ot.of(new $s({ tagName: s.nodeName.toLowerCase(), attributes: G0(s) }), s)));
7124
+ r instanceof pt ? t.push(r) : r != null && r.isLine() ? i = r : r instanceof hi || (s.nodeName == "DIV" && !i && s != this.view.contentDOM ? i = new vn(s, lO) : i || t.push(pt.of(new $s({ tagName: s.nodeName.toLowerCase(), attributes: G0(s) }), s)));
7125
7125
  }
7126
7126
  return { line: i, marks: t };
7127
7127
  }
@@ -7148,7 +7148,7 @@ function Sb(n) {
7148
7148
  let e = [];
7149
7149
  for (let t = n.parents.length; t > 1; t--) {
7150
7150
  let i = t == n.parents.length ? n.tile : n.parents[t].tile;
7151
- i instanceof Ot && e.push(i.mark);
7151
+ i instanceof pt && e.push(i.mark);
7152
7152
  }
7153
7153
  return e;
7154
7154
  }
@@ -7156,7 +7156,7 @@ function El(n) {
7156
7156
  let e = Ue.get(n);
7157
7157
  return e && e.setDOM(n.cloneNode()), n;
7158
7158
  }
7159
- class vn extends li {
7159
+ class Sn extends li {
7160
7160
  constructor(e) {
7161
7161
  super(), this.tag = e;
7162
7162
  }
@@ -7173,8 +7173,8 @@ class vn extends li {
7173
7173
  return !0;
7174
7174
  }
7175
7175
  }
7176
- vn.inline = /* @__PURE__ */ new vn("span");
7177
- vn.block = /* @__PURE__ */ new vn("div");
7176
+ Sn.inline = /* @__PURE__ */ new Sn("span");
7177
+ Sn.block = /* @__PURE__ */ new Sn("div");
7178
7178
  const Ml = /* @__PURE__ */ new class extends li {
7179
7179
  toDOM() {
7180
7180
  return document.createElement("br");
@@ -7492,7 +7492,7 @@ class gh {
7492
7492
  if (h(this.view, e.range, e))
7493
7493
  return !0;
7494
7494
  } catch (c) {
7495
- pt(this.view.state, c, "scroll handler");
7495
+ mt(this.view.state, c, "scroll handler");
7496
7496
  }
7497
7497
  let { range: i } = e, s = this.coordsAt(i.head, (t = i.assoc) !== null && t !== void 0 ? t : i.empty ? 0 : i.head > i.anchor ? -1 : 1), r;
7498
7498
  if (!s)
@@ -7570,13 +7570,13 @@ let Pb = class {
7570
7570
  this.changes = [];
7571
7571
  }
7572
7572
  compareRange(e, t) {
7573
- dn(e, t, this.changes);
7573
+ On(e, t, this.changes);
7574
7574
  }
7575
7575
  comparePoint(e, t) {
7576
- dn(e, t, this.changes);
7576
+ On(e, t, this.changes);
7577
7577
  }
7578
7578
  boundChange(e) {
7579
- dn(e, e, this.changes);
7579
+ On(e, e, this.changes);
7580
7580
  }
7581
7581
  };
7582
7582
  function kb(n, e, t) {
@@ -7588,12 +7588,12 @@ class Tb {
7588
7588
  this.changes = [];
7589
7589
  }
7590
7590
  compareRange(e, t) {
7591
- dn(e, t, this.changes);
7591
+ On(e, t, this.changes);
7592
7592
  }
7593
7593
  comparePoint() {
7594
7594
  }
7595
7595
  boundChange(e) {
7596
- dn(e, e, this.changes);
7596
+ On(e, e, this.changes);
7597
7597
  }
7598
7598
  }
7599
7599
  function Cb(n, e, t) {
@@ -7927,7 +7927,7 @@ class Mb {
7927
7927
  return r.isText() ? this.scanText(r, l) : r.isComposite() ? this.scanTile(r, l) : s.after ? new Kt(i[s.i + 1], -1) : new Kt(l, 1);
7928
7928
  }
7929
7929
  }
7930
- const rn = "￿";
7930
+ const ln = "￿";
7931
7931
  class qb {
7932
7932
  constructor(e, t) {
7933
7933
  this.points = e, this.view = t, this.text = "", this.lineSeparator = t.state.facet(Ze.lineSeparator);
@@ -7936,7 +7936,7 @@ class qb {
7936
7936
  this.text += e;
7937
7937
  }
7938
7938
  lineBreak() {
7939
- this.text += rn;
7939
+ this.text += ln;
7940
7940
  }
7941
7941
  readRange(e, t) {
7942
7942
  if (!e)
@@ -8070,15 +8070,15 @@ function hO(n, e) {
8070
8070
  if (e.bounds) {
8071
8071
  let { from: a, to: o } = e.bounds, u = r.from, h = null;
8072
8072
  (l === 8 || fe.android && e.text.length < o - a) && (u = r.to, h = "end");
8073
- let c = s.doc.sliceString(a, o, rn), f, d;
8073
+ let c = s.doc.sliceString(a, o, ln), f, d;
8074
8074
  !r.empty && r.from >= a && r.to <= o && (e.typeOver || c != e.text) && c.slice(0, r.from - a) == e.text.slice(0, r.from - a) && c.slice(r.to - a) == e.text.slice(f = e.text.length - (c.length - (r.to - a))) ? t = {
8075
8075
  from: r.from,
8076
8076
  to: r.to,
8077
- insert: Te.of(e.text.slice(r.from - a, f).split(rn))
8078
- } : (d = cO(c, e.text, u - a, h)) && (fe.chrome && l == 13 && d.toB == d.from + 2 && e.text.slice(d.from, d.toB) == rn + rn && d.toB--, t = {
8077
+ insert: Te.of(e.text.slice(r.from - a, f).split(ln))
8078
+ } : (d = cO(c, e.text, u - a, h)) && (fe.chrome && l == 13 && d.toB == d.from + 2 && e.text.slice(d.from, d.toB) == ln + ln && d.toB--, t = {
8079
8079
  from: a + d.from,
8080
8080
  to: a + d.toA,
8081
- insert: Te.of(e.text.slice(d.from, d.toB).split(rn))
8081
+ insert: Te.of(e.text.slice(d.from, d.toB).split(ln))
8082
8082
  });
8083
8083
  } else
8084
8084
  i && (!n.hasFocus && s.facet(ui) || Yr(i, r)) && (i = null);
@@ -8103,7 +8103,7 @@ function iu(n, e, t, i = -1) {
8103
8103
  let s = n.state.selection.main;
8104
8104
  if (fe.android && (e.to == s.to && // GBoard will sometimes remove a space it just inserted
8105
8105
  // after a completion when you press enter
8106
- (e.from == s.from || e.from == s.from - 1 && n.state.sliceDoc(e.from, s.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && On(n.contentDOM, "Enter", 13) || (e.from == s.from - 1 && e.to == s.to && e.insert.length == 0 || i == 8 && e.insert.length < e.to - e.from && e.to > s.head) && On(n.contentDOM, "Backspace", 8) || e.from == s.from && e.to == s.to + 1 && e.insert.length == 0 && On(n.contentDOM, "Delete", 46)))
8106
+ (e.from == s.from || e.from == s.from - 1 && n.state.sliceDoc(e.from, s.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && pn(n.contentDOM, "Enter", 13) || (e.from == s.from - 1 && e.to == s.to && e.insert.length == 0 || i == 8 && e.insert.length < e.to - e.from && e.to > s.head) && pn(n.contentDOM, "Backspace", 8) || e.from == s.from && e.to == s.to + 1 && e.insert.length == 0 && pn(n.contentDOM, "Delete", 46)))
8107
8107
  return !0;
8108
8108
  let r = e.insert.toString();
8109
8109
  n.inputState.composing >= 0 && n.inputState.composing++;
@@ -8243,7 +8243,7 @@ class Ib {
8243
8243
  }
8244
8244
  flushIOSKey(e) {
8245
8245
  let t = this.pendingIOSKey;
8246
- return !t || t.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, On(this.view.contentDOM, t.key, t.keyCode, t instanceof KeyboardEvent ? t : void 0));
8246
+ return !t || t.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, pn(this.view.contentDOM, t.key, t.keyCode, t instanceof KeyboardEvent ? t : void 0));
8247
8247
  }
8248
8248
  ignoreDuringComposition(e) {
8249
8249
  return !/^key/.test(e.type) || e.synthetic ? !1 : this.composing > 0 ? !0 : fe.safari && !fe.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1;
@@ -8263,7 +8263,7 @@ function yh(n, e) {
8263
8263
  try {
8264
8264
  return e.call(n, i, t);
8265
8265
  } catch (s) {
8266
- pt(t.state, s);
8266
+ mt(t.state, s);
8267
8267
  }
8268
8268
  };
8269
8269
  }
@@ -8287,8 +8287,8 @@ function Nb(n) {
8287
8287
  }
8288
8288
  for (let i in Wt)
8289
8289
  t(i).handlers.push(Wt[i]);
8290
- for (let i in _t)
8291
- t(i).observers.push(_t[i]);
8290
+ for (let i in bt)
8291
+ t(i).observers.push(bt[i]);
8292
8292
  return e;
8293
8293
  }
8294
8294
  const fO = [
@@ -8382,7 +8382,7 @@ function e1(n, e) {
8382
8382
  return !1;
8383
8383
  return !0;
8384
8384
  }
8385
- const Wt = /* @__PURE__ */ Object.create(null), _t = /* @__PURE__ */ Object.create(null), OO = fe.ie && fe.ie_version < 15 || fe.ios && fe.webkit_version < 604;
8385
+ const Wt = /* @__PURE__ */ Object.create(null), bt = /* @__PURE__ */ Object.create(null), OO = fe.ie && fe.ie_version < 15 || fe.ios && fe.webkit_version < 604;
8386
8386
  function t1(n) {
8387
8387
  let e = n.dom.parentNode;
8388
8388
  if (!e)
@@ -8426,18 +8426,18 @@ function pO(n, e) {
8426
8426
  scrollIntoView: !0
8427
8427
  });
8428
8428
  }
8429
- _t.scroll = (n) => {
8429
+ bt.scroll = (n) => {
8430
8430
  n.inputState.lastScrollTop = n.scrollDOM.scrollTop, n.inputState.lastScrollLeft = n.scrollDOM.scrollLeft;
8431
8431
  };
8432
- _t.wheel = _t.mousewheel = (n) => {
8432
+ bt.wheel = bt.mousewheel = (n) => {
8433
8433
  n.inputState.lastWheelEvent = Date.now();
8434
8434
  };
8435
8435
  Wt.keydown = (n, e) => (n.inputState.setSelectionOrigin("select"), e.keyCode == 27 && n.inputState.tabFocusMode != 0 && (n.inputState.tabFocusMode = Date.now() + 2e3), !1);
8436
- _t.touchstart = (n, e) => {
8436
+ bt.touchstart = (n, e) => {
8437
8437
  let t = n.inputState, i = e.targetTouches[0];
8438
8438
  t.lastTouchTime = Date.now(), i && (t.lastTouchX = i.clientX, t.lastTouchY = i.clientY), t.setSelectionOrigin("select.pointer");
8439
8439
  };
8440
- _t.touchmove = (n) => {
8440
+ bt.touchmove = (n) => {
8441
8441
  n.inputState.setSelectionOrigin("select.pointer");
8442
8442
  };
8443
8443
  Wt.mousedown = (n, e) => {
@@ -8613,21 +8613,21 @@ function bO(n) {
8613
8613
  }
8614
8614
  }, 10);
8615
8615
  }
8616
- _t.focus = (n) => {
8616
+ bt.focus = (n) => {
8617
8617
  n.inputState.lastFocusTime = Date.now(), !n.scrollDOM.scrollTop && (n.inputState.lastScrollTop || n.inputState.lastScrollLeft) && (n.scrollDOM.scrollTop = n.inputState.lastScrollTop, n.scrollDOM.scrollLeft = n.inputState.lastScrollLeft), bO(n);
8618
8618
  };
8619
- _t.blur = (n) => {
8619
+ bt.blur = (n) => {
8620
8620
  n.observer.clearSelectionRange(), bO(n);
8621
8621
  };
8622
- _t.compositionstart = _t.compositionupdate = (n) => {
8622
+ bt.compositionstart = bt.compositionupdate = (n) => {
8623
8623
  n.observer.editContext || (n.inputState.compositionFirstChange == null && (n.inputState.compositionFirstChange = !0), n.inputState.composing < 0 && (n.inputState.composing = 0));
8624
8624
  };
8625
- _t.compositionend = (n) => {
8625
+ bt.compositionend = (n) => {
8626
8626
  n.observer.editContext || (n.inputState.composing = -1, n.inputState.compositionEndedAt = Date.now(), n.inputState.compositionPendingKey = !0, n.inputState.compositionPendingChange = n.observer.pendingRecords().length > 0, n.inputState.compositionFirstChange = null, fe.chrome && fe.android ? n.observer.flushSoon() : n.inputState.compositionPendingChange ? Promise.resolve().then(() => n.observer.flush()) : setTimeout(() => {
8627
8627
  n.inputState.composing < 0 && n.docView.hasComposition && n.update([]);
8628
8628
  }, 50));
8629
8629
  };
8630
- _t.contextmenu = (n) => {
8630
+ bt.contextmenu = (n) => {
8631
8631
  n.inputState.lastContextMenu = Date.now();
8632
8632
  };
8633
8633
  Wt.beforeinput = (n, e) => {
@@ -8647,7 +8647,7 @@ Wt.beforeinput = (n, e) => {
8647
8647
  (((l = window.visualViewport) === null || l === void 0 ? void 0 : l.height) || 0) > r + 10 && n.hasFocus && (n.contentDOM.blur(), n.focus());
8648
8648
  }, 100);
8649
8649
  }
8650
- return fe.ios && e.inputType == "deleteContentForward" && n.observer.flushSoon(), fe.safari && e.inputType == "insertText" && n.inputState.composing >= 0 && setTimeout(() => _t.compositionend(n, e), 20), !1;
8650
+ return fe.ios && e.inputType == "deleteContentForward" && n.observer.flushSoon(), fe.safari && e.inputType == "insertText" && n.inputState.composing >= 0 && setTimeout(() => bt.compositionend(n, e), 20), !1;
8651
8651
  };
8652
8652
  const wh = /* @__PURE__ */ new Set();
8653
8653
  function a1(n) {
@@ -8656,9 +8656,9 @@ function a1(n) {
8656
8656
  }));
8657
8657
  }
8658
8658
  const Ph = ["pre-wrap", "normal", "pre-line", "break-spaces"];
8659
- let Sn = !1;
8659
+ let xn = !1;
8660
8660
  function kh() {
8661
- Sn = !1;
8661
+ xn = !1;
8662
8662
  }
8663
8663
  class o1 {
8664
8664
  constructor(e) {
@@ -8768,7 +8768,7 @@ class ht {
8768
8768
  this.flags = (e ? 2 : 0) | this.flags & -3;
8769
8769
  }
8770
8770
  setHeight(e) {
8771
- this.height != e && (Math.abs(this.height - e) > br && (Sn = !0), this.height = e);
8771
+ this.height != e && (Math.abs(this.height - e) > br && (xn = !0), this.height = e);
8772
8772
  }
8773
8773
  // Base case is to replace a leaf node, which simply builds a tree
8774
8774
  // from the new nodes and returns that (HeightMapBranch and
@@ -8796,7 +8796,7 @@ class ht {
8796
8796
  return r.updateHeight(i, 0);
8797
8797
  }
8798
8798
  static empty() {
8799
- return new $t(0, 0, 0);
8799
+ return new wt(0, 0, 0);
8800
8800
  }
8801
8801
  // nodes uses null values to indicate the position of line breaks.
8802
8802
  // There are never line breaks at the start or end of the array, or
@@ -8828,7 +8828,7 @@ class ht {
8828
8828
  }
8829
8829
  }
8830
8830
  function Er(n, e) {
8831
- return n == e ? n : (n.constructor != e.constructor && (Sn = !0), e);
8831
+ return n == e ? n : (n.constructor != e.constructor && (xn = !0), e);
8832
8832
  }
8833
8833
  ht.prototype.size = 1;
8834
8834
  const h1 = /* @__PURE__ */ be.replace({});
@@ -8860,7 +8860,7 @@ class yO extends ht {
8860
8860
  return `block(${this.length})`;
8861
8861
  }
8862
8862
  }
8863
- class $t extends yO {
8863
+ class wt extends yO {
8864
8864
  constructor(e, t, i) {
8865
8865
  super(e, t, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0, this.spaceAbove = i;
8866
8866
  }
@@ -8869,7 +8869,7 @@ class $t extends yO {
8869
8869
  }
8870
8870
  replace(e, t, i) {
8871
8871
  let s = i[0];
8872
- return i.length == 1 && (s instanceof $t || s instanceof Je && s.flags & 4) && Math.abs(this.length - s.length) < 10 ? (s instanceof Je ? s = new $t(s.length, this.height, this.spaceAbove) : s.height = this.height, this.outdated || (s.outdated = !1), s) : ht.of(i);
8872
+ return i.length == 1 && (s instanceof wt || s instanceof Je && s.flags & 4) && Math.abs(this.length - s.length) < 10 ? (s instanceof Je ? s = new wt(s.length, this.height, this.spaceAbove) : s.height = this.height, this.outdated || (s.outdated = !1), s) : ht.of(i);
8873
8873
  }
8874
8874
  updateHeight(e, t = 0, i = !1, s) {
8875
8875
  return s && s.from <= t && s.more ? this.setMeasuredHeight(s) : (i || this.outdated) && (this.spaceAbove = 0, this.setHeight(Math.max(this.widgetHeight, e.heightForLine(this.length - this.collapsed)) + this.breaks * e.lineHeight)), this.outdated = !1, this;
@@ -8951,12 +8951,12 @@ class Je extends ht {
8951
8951
  l.length && l.push(null);
8952
8952
  let c = s.heights[s.index++], f = 0;
8953
8953
  c < 0 && (f = -c, c = s.heights[s.index++]), o == -1 ? o = c : Math.abs(c - o) >= br && (o = -2);
8954
- let d = new $t(h, c, f);
8954
+ let d = new wt(h, c, f);
8955
8955
  d.outdated = !1, l.push(d), a += h + 1;
8956
8956
  }
8957
8957
  a <= r && l.push(null, new Je(r - a).updateHeight(e, a));
8958
8958
  let u = ht.of(l);
8959
- return (o < 0 || Math.abs(u.height - this.height) >= br || Math.abs(o - this.heightMetrics(e, t).perLine) >= br) && (Sn = !0), Er(this, u);
8959
+ return (o < 0 || Math.abs(u.height - this.height) >= br || Math.abs(o - this.heightMetrics(e, t).perLine) >= br) && (xn = !0), Er(this, u);
8960
8960
  } else
8961
8961
  (i || this.outdated) && (this.setHeight(e.heightForGap(t, t + this.length)), this.outdated = !1);
8962
8962
  return this;
@@ -9047,7 +9047,7 @@ class nu {
9047
9047
  span(e, t) {
9048
9048
  if (this.lineStart > -1) {
9049
9049
  let i = Math.min(t, this.lineEnd), s = this.nodes[this.nodes.length - 1];
9050
- s instanceof $t ? s.length += i - this.pos : (i > this.pos || !this.isCovered) && this.nodes.push(new $t(i - this.pos, -1, 0)), this.writtenTo = i, t > i && (this.nodes.push(null), this.writtenTo++, this.lineStart = -1);
9050
+ s instanceof wt ? s.length += i - this.pos : (i > this.pos || !this.isCovered) && this.nodes.push(new wt(i - this.pos, -1, 0)), this.writtenTo = i, t > i && (this.nodes.push(null), this.writtenTo++, this.lineStart = -1);
9051
9051
  }
9052
9052
  this.pos = t;
9053
9053
  }
@@ -9065,7 +9065,7 @@ class nu {
9065
9065
  if (this.lineStart > -1)
9066
9066
  return;
9067
9067
  let { from: e, to: t } = this.oracle.doc.lineAt(this.pos);
9068
- this.lineStart = e, this.lineEnd = t, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new $t(this.pos - e, -1, 0)), this.writtenTo = this.pos;
9068
+ this.lineStart = e, this.lineEnd = t, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new wt(this.pos - e, -1, 0)), this.writtenTo = this.pos;
9069
9069
  }
9070
9070
  blankContent(e, t) {
9071
9071
  let i = new Je(t - e);
@@ -9074,9 +9074,9 @@ class nu {
9074
9074
  ensureLine() {
9075
9075
  this.enterLine();
9076
9076
  let e = this.nodes.length ? this.nodes[this.nodes.length - 1] : null;
9077
- if (e instanceof $t)
9077
+ if (e instanceof wt)
9078
9078
  return e;
9079
- let t = new $t(0, -1, 0);
9079
+ let t = new wt(0, -1, 0);
9080
9080
  return this.nodes.push(t), t;
9081
9081
  }
9082
9082
  addBlock(e) {
@@ -9090,10 +9090,10 @@ class nu {
9090
9090
  }
9091
9091
  finish(e) {
9092
9092
  let t = this.nodes.length == 0 ? null : this.nodes[this.nodes.length - 1];
9093
- this.lineStart > -1 && !(t instanceof $t) && !this.isCovered ? this.nodes.push(new $t(0, -1, 0)) : (this.writtenTo < this.pos || t == null) && this.nodes.push(this.blankContent(this.writtenTo, this.pos));
9093
+ this.lineStart > -1 && !(t instanceof wt) && !this.isCovered ? this.nodes.push(new wt(0, -1, 0)) : (this.writtenTo < this.pos || t == null) && this.nodes.push(this.blankContent(this.writtenTo, this.pos));
9094
9094
  let i = e;
9095
9095
  for (let s of this.nodes)
9096
- s instanceof $t && s.updateHeight(this.oracle, i), i += s ? s.length : 1;
9096
+ s instanceof wt && s.updateHeight(this.oracle, i), i += s ? s.length : 1;
9097
9097
  return this.nodes;
9098
9098
  }
9099
9099
  // Always called with a region that on both sides either stretches
@@ -9117,7 +9117,7 @@ class O1 {
9117
9117
  compareRange() {
9118
9118
  }
9119
9119
  comparePoint(e, t, i, s) {
9120
- (e < t || i && i.heightRelevant || s && s.heightRelevant) && dn(e, t, this.changes, 5);
9120
+ (e < t || i && i.heightRelevant || s && s.heightRelevant) && On(e, t, this.changes, 5);
9121
9121
  }
9122
9122
  }
9123
9123
  function p1(n, e) {
@@ -9223,7 +9223,7 @@ class Ch {
9223
9223
  let i = this.stateDeco;
9224
9224
  this.stateDeco = Rh(this.state);
9225
9225
  let s = e.changedRanges, r = Xt.extendWithRanges(s, d1(i, this.stateDeco, e ? e.changes : Ge.empty(this.state.doc.length))), l = this.heightMap.height, a = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollOffset);
9226
- kh(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), r), (this.heightMap.height != l || Sn) && (e.flags |= 2), a ? (this.scrollAnchorPos = e.changes.mapPos(a.from, -1), this.scrollAnchorHeight = a.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = l);
9226
+ kh(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), r), (this.heightMap.height != l || xn) && (e.flags |= 2), a ? (this.scrollAnchorPos = e.changes.mapPos(a.from, -1), this.scrollAnchorHeight = a.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = l);
9227
9227
  let o = r.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
9228
9228
  (t && (t.range.head < o.from || t.range.head > o.to) || !this.viewportIsAppropriate(o)) && (o = this.getViewport(0, t));
9229
9229
  let u = o.from != this.viewport.from || o.to != this.viewport.to;
@@ -9262,7 +9262,7 @@ class Ch {
9262
9262
  let P = w.from == this.viewport.from ? X : e.docView.measureVisibleLineHeights(w);
9263
9263
  this.heightMap = (l ? ht.empty().applyChanges(this.stateDeco, Te.empty, this.heightOracle, [new Xt(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(s, 0, l, new u1(w.from, P));
9264
9264
  }
9265
- Sn && (u |= 2);
9265
+ xn && (u |= 2);
9266
9266
  }
9267
9267
  let $ = !this.viewportIsAppropriate(this.viewport, h) || this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from || this.scrollTarget.range.head > this.viewport.to);
9268
9268
  return $ && (u & 2 && (u |= this.updateScaler()), this.viewport = this.getViewport(h, this.scrollTarget), u |= this.updateForViewport()), (u & 2 || $) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(l ? [] : this.lineGaps, e)), u |= this.computeVisibleRanges(), this.mustEnforceCursorAssoc && (this.mustEnforceCursorAssoc = !1, e.docView.enforceCursorAssoc()), u;
@@ -9958,7 +9958,7 @@ class S1 {
9958
9958
  if (!this.delayedAndroidKey) {
9959
9959
  let s = () => {
9960
9960
  let r = this.delayedAndroidKey;
9961
- r && (this.clearDelayedAndroidKey(), this.view.inputState.lastKeyCode = r.keyCode, this.view.inputState.lastKeyTime = Date.now(), !this.flush() && r.force && On(this.dom, r.key, r.keyCode));
9961
+ r && (this.clearDelayedAndroidKey(), this.view.inputState.lastKeyCode = r.keyCode, this.view.inputState.lastKeyTime = Date.now(), !this.flush() && r.force && pn(this.dom, r.key, r.keyCode));
9962
9962
  };
9963
9963
  this.flushingAndroidKey = this.view.win.requestAnimationFrame(s);
9964
9964
  }
@@ -10285,7 +10285,7 @@ class he {
10285
10285
  var t;
10286
10286
  this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom);
10287
10287
  let { dispatch: i } = e;
10288
- this.dispatchTransactions = e.dispatchTransactions || i && ((s) => s.forEach((r) => i(r, this))) || ((s) => this.update(s)), this.dispatch = this.dispatch.bind(this), this._root = e.root || eb(e.parent) || document, this.viewState = new Ch(this, e.state || Ze.create(e)), e.scrollTo && e.scrollTo.is(zs) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(on).map((s) => new Yl(s));
10288
+ this.dispatchTransactions = e.dispatchTransactions || i && ((s) => s.forEach((r) => i(r, this))) || ((s) => this.update(s)), this.dispatch = this.dispatch.bind(this), this._root = e.root || eb(e.parent) || document, this.viewState = new Ch(this, e.state || Ze.create(e)), e.scrollTo && e.scrollTo.is(zs) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(un).map((s) => new Yl(s));
10289
10289
  for (let s of this.plugins)
10290
10290
  s.update(this);
10291
10291
  this.observer = new S1(this), this.inputState = new Ib(this), this.inputState.ensureHandlers(this.plugins), this.docView = new gh(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(), !((t = document.fonts) === null || t === void 0) && t.ready && document.fonts.ready.then(() => {
@@ -10329,7 +10329,7 @@ class he {
10329
10329
  for (let f of e) {
10330
10330
  if (c && (c = c.map(f.changes)), f.scrollIntoView) {
10331
10331
  let { main: d } = f.state.selection, { x: p, y: Q } = this.state.facet(he.cursorScrollMargin);
10332
- c = new pn(d.empty ? d : I.cursor(d.head, d.head > d.anchor ? -1 : 1), "nearest", "nearest", Q, p);
10332
+ c = new mn(d.empty ? d : I.cursor(d.head, d.head > d.anchor ? -1 : 1), "nearest", "nearest", Q, p);
10333
10333
  }
10334
10334
  for (let d of f.effects)
10335
10335
  d.is(zs) && (c = d.value.clip(this.state));
@@ -10343,10 +10343,10 @@ class he {
10343
10343
  try {
10344
10344
  f(s);
10345
10345
  } catch (d) {
10346
- pt(this.state, d, "update listener");
10346
+ mt(this.state, d, "update listener");
10347
10347
  }
10348
10348
  (o || h) && Promise.resolve().then(() => {
10349
- o && this.state == o.startState && this.dispatch(o), h && !hO(this, h) && u.force && On(this.contentDOM, u.key, u.keyCode);
10349
+ o && this.state == o.startState && this.dispatch(o), h && !hO(this, h) && u.force && pn(this.contentDOM, u.key, u.keyCode);
10350
10350
  });
10351
10351
  }
10352
10352
  /**
@@ -10368,7 +10368,7 @@ class he {
10368
10368
  try {
10369
10369
  for (let i of this.plugins)
10370
10370
  i.destroy(this);
10371
- this.viewState = new Ch(this, e), this.plugins = e.facet(on).map((i) => new Yl(i)), this.pluginMap.clear();
10371
+ this.viewState = new Ch(this, e), this.plugins = e.facet(un).map((i) => new Yl(i)), this.pluginMap.clear();
10372
10372
  for (let i of this.plugins)
10373
10373
  i.update(this);
10374
10374
  this.docView.destroy(), this.docView = new gh(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = [];
@@ -10378,7 +10378,7 @@ class he {
10378
10378
  t && this.focus(), this.requestMeasure();
10379
10379
  }
10380
10380
  updatePlugins(e) {
10381
- let t = e.startState.facet(on), i = e.state.facet(on);
10381
+ let t = e.startState.facet(un), i = e.state.facet(un);
10382
10382
  if (t != i) {
10383
10383
  let s = [];
10384
10384
  for (let r of i) {
@@ -10407,7 +10407,7 @@ class he {
10407
10407
  try {
10408
10408
  t.docViewUpdate(this);
10409
10409
  } catch (i) {
10410
- pt(this.state, i, "doc view update listener");
10410
+ mt(this.state, i, "doc view update listener");
10411
10411
  }
10412
10412
  }
10413
10413
  }
@@ -10447,7 +10447,7 @@ class he {
10447
10447
  try {
10448
10448
  return d.read(this);
10449
10449
  } catch (p) {
10450
- return pt(this.state, p), Ah;
10450
+ return mt(this.state, p), Ah;
10451
10451
  }
10452
10452
  }), c = Zr.create(this, this.state, []), f = !1;
10453
10453
  c.flags |= o, t ? t.flags |= o : t = c, this.updateState = 2, c.empty || (this.updatePlugins(c), this.inputState.update(c), this.updateAttrs(), f = this.docView.update(c), f && this.docViewUpdate());
@@ -10457,7 +10457,7 @@ class he {
10457
10457
  let p = u[d];
10458
10458
  p.write && p.write(h[d], this);
10459
10459
  } catch (p) {
10460
- pt(this.state, p);
10460
+ mt(this.state, p);
10461
10461
  }
10462
10462
  if (f && this.docView.updateSelection(!0), !c.viewportChanged && this.measureRequests.length == 0) {
10463
10463
  if (this.viewState.editorHeight)
@@ -10853,7 +10853,7 @@ class he {
10853
10853
  */
10854
10854
  static scrollIntoView(e, t = {}) {
10855
10855
  var i, s, r, l;
10856
- return zs.of(new pn(typeof e == "number" ? I.cursor(e) : e, (i = t.y) !== null && i !== void 0 ? i : "nearest", (s = t.x) !== null && s !== void 0 ? s : "nearest", (r = t.yMargin) !== null && r !== void 0 ? r : 5, (l = t.xMargin) !== null && l !== void 0 ? l : 5));
10856
+ return zs.of(new mn(typeof e == "number" ? I.cursor(e) : e, (i = t.y) !== null && i !== void 0 ? i : "nearest", (s = t.x) !== null && s !== void 0 ? s : "nearest", (r = t.yMargin) !== null && r !== void 0 ? r : 5, (l = t.xMargin) !== null && l !== void 0 ? l : 5));
10857
10857
  }
10858
10858
  /**
10859
10859
  Return an effect that resets the editor to its current (at the
@@ -10869,7 +10869,7 @@ class he {
10869
10869
  */
10870
10870
  scrollSnapshot() {
10871
10871
  let { scrollTop: e, scrollLeft: t } = this.scrollDOM, i = this.viewState.scrollAnchorAt(e);
10872
- return zs.of(new pn(I.cursor(i.from), "start", "start", i.top - e, t, !0));
10872
+ return zs.of(new mn(I.cursor(i.from), "start", "start", i.top - e, t, !0));
10873
10873
  }
10874
10874
  /**
10875
10875
  Enable or disable tab-focus mode, which disables key bindings
@@ -11101,7 +11101,7 @@ function R1(n, e = P1) {
11101
11101
  let go = null;
11102
11102
  function $O(n, e, t, i) {
11103
11103
  go = e;
11104
- let s = N0(e), r = ft(s, 0), l = Ht(r) == s.length && s != " ", a = "", o = !1, u = !1, h = !1;
11104
+ let s = N0(e), r = dt(s, 0), l = Ht(r) == s.length && s != " ", a = "", o = !1, u = !1, h = !1;
11105
11105
  Qi && Qi.view == t && Qi.scope == i && (a = Qi.prefix + " ", dO.indexOf(e.keyCode) < 0 && (u = !0, Qi = null));
11106
11106
  let c = /* @__PURE__ */ new Set(), f = (m) => {
11107
11107
  if (m) {
@@ -11261,7 +11261,7 @@ function PO(n) {
11261
11261
  yr.of(n)
11262
11262
  ];
11263
11263
  }
11264
- const xn = /* @__PURE__ */ ce.define({
11264
+ const $n = /* @__PURE__ */ ce.define({
11265
11265
  combine(n) {
11266
11266
  return ri(n, {
11267
11267
  cursorBlinkRate: 1200,
@@ -11275,7 +11275,7 @@ const xn = /* @__PURE__ */ ce.define({
11275
11275
  });
11276
11276
  function Y1(n = {}) {
11277
11277
  return [
11278
- xn.of(n),
11278
+ $n.of(n),
11279
11279
  E1,
11280
11280
  M1,
11281
11281
  q1,
@@ -11283,12 +11283,12 @@ function Y1(n = {}) {
11283
11283
  ];
11284
11284
  }
11285
11285
  function kO(n) {
11286
- return n.startState.facet(xn) != n.state.facet(xn);
11286
+ return n.startState.facet($n) != n.state.facet($n);
11287
11287
  }
11288
11288
  const E1 = /* @__PURE__ */ PO({
11289
11289
  above: !0,
11290
11290
  markers(n) {
11291
- let { state: e } = n, t = e.facet(xn), i = [];
11291
+ let { state: e } = n, t = e.facet($n), i = [];
11292
11292
  for (let s of e.selection.ranges) {
11293
11293
  let r = s == e.selection.main;
11294
11294
  if (s.empty || t.drawRangeCursor && !(r && fe.ios && t.iosSelectionHandles)) {
@@ -11310,7 +11310,7 @@ const E1 = /* @__PURE__ */ PO({
11310
11310
  class: "cm-cursorLayer"
11311
11311
  });
11312
11312
  function qh(n, e) {
11313
- e.style.animationDuration = n.facet(xn).cursorBlinkRate + "ms";
11313
+ e.style.animationDuration = n.facet($n).cursorBlinkRate + "ms";
11314
11314
  }
11315
11315
  const M1 = /* @__PURE__ */ PO({
11316
11316
  above: !1,
@@ -11320,7 +11320,7 @@ const M1 = /* @__PURE__ */ PO({
11320
11320
  if (!s.empty)
11321
11321
  for (let r of Ii.forRange(n, "cm-selectionBackground", s))
11322
11322
  e.push(r);
11323
- if (fe.ios && !t.empty && n.state.facet(xn).iosSelectionHandles) {
11323
+ if (fe.ios && !t.empty && n.state.facet($n).iosSelectionHandles) {
11324
11324
  for (let s of Ii.forRange(n, "cm-selectionHandle cm-selectionHandle-start", I.cursor(t.from, 1)))
11325
11325
  e.push(s);
11326
11326
  for (let s of Ii.forRange(n, "cm-selectionHandle cm-selectionHandle-end", I.cursor(t.to, 1)))
@@ -11552,9 +11552,9 @@ function B1() {
11552
11552
  return new L1({
11553
11553
  regexp: n.specialChars,
11554
11554
  decoration: (e, t, i) => {
11555
- let { doc: s } = t.state, r = ft(e[0], 0);
11555
+ let { doc: s } = t.state, r = dt(e[0], 0);
11556
11556
  if (r == 9) {
11557
- let l = s.lineAt(i), a = t.state.tabSize, o = Cn(l.text, a, i - l.from);
11557
+ let l = s.lineAt(i), a = t.state.tabSize, o = Xn(l.text, a, i - l.from);
11558
11558
  return be.replace({
11559
11559
  widget: new K1((a - o % a) * this.view.defaultCharacterWidth / this.view.scaleX)
11560
11560
  });
@@ -11657,7 +11657,7 @@ function ny(n, e) {
11657
11657
  return t ? Math.round(Math.abs((t.left - e) / n.defaultCharacterWidth)) : -1;
11658
11658
  }
11659
11659
  function Wh(n, e) {
11660
- let t = n.posAtCoords({ x: e.clientX, y: e.clientY }, !1), i = n.state.doc.lineAt(t), s = t - i.from, r = s > bo ? -1 : s == i.length ? ny(n, e.clientX) : Cn(i.text, n.state.tabSize, t - i.from);
11660
+ let t = n.posAtCoords({ x: e.clientX, y: e.clientY }, !1), i = n.state.doc.lineAt(t), s = t - i.from, r = s > bo ? -1 : s == i.length ? ny(n, e.clientX) : Xn(i.text, n.state.tabSize, t - i.from);
11661
11661
  return { line: i.number, col: r, off: s };
11662
11662
  }
11663
11663
  function sy(n, e) {
@@ -12094,7 +12094,7 @@ class dy {
12094
12094
  let a = this.pending = { pos: t };
12095
12095
  r.then((o) => {
12096
12096
  this.pending == a && (this.pending = null, l(o));
12097
- }, (o) => pt(e.state, o, "hover tooltip"));
12097
+ }, (o) => mt(e.state, o, "hover tooltip"));
12098
12098
  } else
12099
12099
  l(r);
12100
12100
  }
@@ -12616,7 +12616,7 @@ function wy(n, e) {
12616
12616
  return !1;
12617
12617
  return !0;
12618
12618
  }
12619
- const Py = /* @__PURE__ */ ce.define(), ky = /* @__PURE__ */ ce.define(), un = /* @__PURE__ */ ce.define({
12619
+ const Py = /* @__PURE__ */ ce.define(), ky = /* @__PURE__ */ ce.define(), hn = /* @__PURE__ */ ce.define({
12620
12620
  combine(n) {
12621
12621
  return ri(n, { formatNumber: String, domEventHandlers: {} }, {
12622
12622
  domEventHandlers(e, t) {
@@ -12642,9 +12642,9 @@ class Il extends pi {
12642
12642
  }
12643
12643
  }
12644
12644
  function Nl(n, e) {
12645
- return n.state.facet(un).formatNumber(e, n.state);
12645
+ return n.state.facet(hn).formatNumber(e, n.state);
12646
12646
  }
12647
- const Ty = /* @__PURE__ */ rs.compute([un], (n) => ({
12647
+ const Ty = /* @__PURE__ */ rs.compute([hn], (n) => ({
12648
12648
  class: "cm-lineNumbers",
12649
12649
  renderEmptyElements: !1,
12650
12650
  markers(e) {
@@ -12661,7 +12661,7 @@ const Ty = /* @__PURE__ */ rs.compute([un], (n) => ({
12661
12661
  }
12662
12662
  return null;
12663
12663
  },
12664
- lineMarkerChange: (e) => e.startState.facet(un) != e.state.facet(un),
12664
+ lineMarkerChange: (e) => e.startState.facet(hn) != e.state.facet(hn),
12665
12665
  initialSpacer(e) {
12666
12666
  return new Il(Nl(e, Gh(e.state.doc.lines)));
12667
12667
  },
@@ -12669,12 +12669,12 @@ const Ty = /* @__PURE__ */ rs.compute([un], (n) => ({
12669
12669
  let i = Nl(t.view, Gh(t.view.state.doc.lines));
12670
12670
  return i == e.number ? e : new Il(i);
12671
12671
  },
12672
- domEventHandlers: n.facet(un).domEventHandlers,
12672
+ domEventHandlers: n.facet(hn).domEventHandlers,
12673
12673
  side: "before"
12674
12674
  }));
12675
12675
  function Cy(n = {}) {
12676
12676
  return [
12677
- un.of(n),
12677
+ hn.of(n),
12678
12678
  YO(),
12679
12679
  Ty
12680
12680
  ];
@@ -12745,7 +12745,7 @@ we.isolate = new we({ deserialize: (n) => {
12745
12745
  we.contextHash = new we({ perNode: !0 });
12746
12746
  we.lookAhead = new we({ perNode: !0 });
12747
12747
  we.mounted = new we({ perNode: !0 });
12748
- class mn {
12748
+ class gn {
12749
12749
  constructor(e, t, i, s = !1) {
12750
12750
  this.tree = e, this.overlay = t, this.parser = i, this.bracketed = s;
12751
12751
  }
@@ -12906,7 +12906,7 @@ class Le {
12906
12906
  @internal
12907
12907
  */
12908
12908
  toString() {
12909
- let e = mn.get(this);
12909
+ let e = gn.get(this);
12910
12910
  if (e && !e.overlay)
12911
12911
  return e.tree.toString();
12912
12912
  let t = "";
@@ -13205,7 +13205,7 @@ class at extends DO {
13205
13205
  for (let l = this; ; ) {
13206
13206
  for (let { children: a, positions: o } = l._tree, u = t > 0 ? a.length : -1; e != u; e += t) {
13207
13207
  let h = a[e], c = o[e] + l.from, f;
13208
- if (!(!(r & Ve.EnterBracketed && h instanceof Le && (f = mn.get(h)) && !f.overlay && f.bracketed && i >= c && i <= c + h.length) && !qO(s, i, c, c + h.length))) {
13208
+ if (!(!(r & Ve.EnterBracketed && h instanceof Le && (f = gn.get(h)) && !f.overlay && f.bracketed && i >= c && i <= c + h.length) && !qO(s, i, c, c + h.length))) {
13209
13209
  if (h instanceof Ti) {
13210
13210
  if (r & Ve.ExcludeBuffers)
13211
13211
  continue;
@@ -13214,7 +13214,7 @@ class at extends DO {
13214
13214
  return new ei(new Yy(l, h, e, c), null, d);
13215
13215
  } else if (r & Ve.IncludeAnonymous || !h.type.isAnonymous || hu(h)) {
13216
13216
  let d;
13217
- if (!(r & Ve.IgnoreMounts) && (d = mn.get(h)) && !d.overlay)
13217
+ if (!(r & Ve.IgnoreMounts) && (d = gn.get(h)) && !d.overlay)
13218
13218
  return new at(d.tree, c, e, l);
13219
13219
  let p = new at(h, c, e, l);
13220
13220
  return r & Ve.IncludeAnonymous || !p.type.isAnonymous ? p : p.nextChild(t < 0 ? h.children.length - 1 : 0, t, i, s, r);
@@ -13266,7 +13266,7 @@ class at extends DO {
13266
13266
  }
13267
13267
  enter(e, t, i = 0) {
13268
13268
  let s;
13269
- if (!(i & Ve.IgnoreOverlays) && (s = mn.get(this._tree)) && s.overlay) {
13269
+ if (!(i & Ve.IgnoreOverlays) && (s = gn.get(this._tree)) && s.overlay) {
13270
13270
  let r = e - this.from, l = i & Ve.EnterBracketed && s.bracketed;
13271
13271
  for (let { from: a, to: o } of s.overlay)
13272
13272
  if ((t > 0 || l ? a <= r : a < r) && (t < 0 || l ? o >= r : o > r))
@@ -13476,7 +13476,7 @@ function My(n, e, t) {
13476
13476
  let l = r.parent;
13477
13477
  (s || (s = [i])).push(l.resolve(e, t)), r = l;
13478
13478
  } else {
13479
- let l = mn.get(r.tree);
13479
+ let l = gn.get(r.tree);
13480
13480
  if (l && l.overlay && l.overlay[0].from <= e && l.overlay[l.overlay.length - 1].to >= e) {
13481
13481
  let a = new at(l.tree, l.overlay[0].from + r.from, -1, r);
13482
13482
  (s || (s = [i])).push(Os(a, e, t, !1));
@@ -14158,7 +14158,7 @@ class Ly {
14158
14158
  if (t) {
14159
14159
  this.innerDone++;
14160
14160
  let i = Object.assign(/* @__PURE__ */ Object.create(null), e.target.props);
14161
- i[we.mounted.id] = new mn(t, e.overlay, e.parser, e.bracketed), e.target.props = i;
14161
+ i[we.mounted.id] = new gn(t, e.overlay, e.parser, e.bracketed), e.target.props = i;
14162
14162
  }
14163
14163
  return null;
14164
14164
  }
@@ -14449,7 +14449,7 @@ function Hy(n) {
14449
14449
  e.push(e[i].concat(n[t]));
14450
14450
  return e.sort((t, i) => i.length - t.length);
14451
14451
  }
14452
- function Xn(n) {
14452
+ function Rn(n) {
14453
14453
  let e = /* @__PURE__ */ Object.create(null);
14454
14454
  for (let t in n) {
14455
14455
  let i = n[t];
@@ -15005,7 +15005,7 @@ jO([
15005
15005
  { tag: x.punctuation, class: "tok-punctuation" }
15006
15006
  ]);
15007
15007
  var Gl;
15008
- const hn = /* @__PURE__ */ new we();
15008
+ const cn = /* @__PURE__ */ new we();
15009
15009
  function du(n) {
15010
15010
  return ce.define({
15011
15011
  combine: n ? (e) => e.concat(n) : void 0
@@ -15026,7 +15026,7 @@ class Dt {
15026
15026
  } }), this.parser = t, this.extension = [
15027
15027
  Ci.of(this),
15028
15028
  Ze.languageData.of((r, l, a) => {
15029
- let o = ac(r, l, a), u = o.type.prop(hn);
15029
+ let o = ac(r, l, a), u = o.type.prop(cn);
15030
15030
  if (!u)
15031
15031
  return [];
15032
15032
  let h = r.facet(u), c = o.type.prop(ks);
@@ -15046,7 +15046,7 @@ class Dt {
15046
15046
  Query whether this language is active at the given position.
15047
15047
  */
15048
15048
  isActiveAt(e, t, i = -1) {
15049
- return ac(e, t, i).type.prop(hn) == this.data;
15049
+ return ac(e, t, i).type.prop(cn) == this.data;
15050
15050
  }
15051
15051
  /**
15052
15052
  Find the document regions that were parsed using this language.
@@ -15060,13 +15060,13 @@ class Dt {
15060
15060
  if (!t || !t.allowsNesting)
15061
15061
  return [];
15062
15062
  let i = [], s = (r, l) => {
15063
- if (r.prop(hn) == this.data) {
15063
+ if (r.prop(cn) == this.data) {
15064
15064
  i.push({ from: l, to: l + r.length });
15065
15065
  return;
15066
15066
  }
15067
15067
  let a = r.prop(we.mounted);
15068
15068
  if (a) {
15069
- if (a.tree.prop(hn) == this.data) {
15069
+ if (a.tree.prop(cn) == this.data) {
15070
15070
  if (a.overlay)
15071
15071
  for (let o of a.overlay)
15072
15072
  i.push({ from: o.from + l, to: o.to + l });
@@ -15112,7 +15112,7 @@ class mi extends Dt {
15112
15112
  static define(e) {
15113
15113
  let t = du(e.languageData);
15114
15114
  return new mi(t, e.parser.configure({
15115
- props: [hn.add((i) => i.isTop ? t : void 0)]
15115
+ props: [cn.add((i) => i.isTop ? t : void 0)]
15116
15116
  }), e.name);
15117
15117
  }
15118
15118
  /**
@@ -15309,7 +15309,7 @@ class Wr {
15309
15309
  function oc(n, e, t) {
15310
15310
  return ci.applyChanges(n, [{ fromA: e, toA: t, fromB: e, toB: t }]);
15311
15311
  }
15312
- class $n {
15312
+ class wn {
15313
15313
  constructor(e) {
15314
15314
  this.context = e, this.tree = e.tree;
15315
15315
  }
@@ -15317,20 +15317,20 @@ class $n {
15317
15317
  if (!e.docChanged && this.tree == this.context.tree)
15318
15318
  return this;
15319
15319
  let t = this.context.changes(e.changes, e.state), i = this.context.treeLen == e.startState.doc.length ? void 0 : Math.max(e.changes.mapPos(this.context.treeLen), t.viewport.to);
15320
- return t.work(20, i) || t.takeTree(), new $n(t);
15320
+ return t.work(20, i) || t.takeTree(), new wn(t);
15321
15321
  }
15322
15322
  static init(e) {
15323
15323
  let t = Math.min(3e3, e.doc.length), i = Wr.create(e.facet(Ci).parser, e, { from: 0, to: t });
15324
- return i.work(20, t) || i.takeTree(), new $n(i);
15324
+ return i.work(20, t) || i.takeTree(), new wn(i);
15325
15325
  }
15326
15326
  }
15327
15327
  Dt.state = /* @__PURE__ */ nt.define({
15328
- create: $n.init,
15328
+ create: wn.init,
15329
15329
  update(n, e) {
15330
15330
  for (let t of e.effects)
15331
15331
  if (t.is(Dt.setState))
15332
15332
  return t.value;
15333
- return e.startState.facet(Ci) != e.state.facet(Ci) ? $n.init(e.state) : n.apply(e);
15333
+ return e.startState.facet(Ci) != e.state.facet(Ci) ? wn.init(e.state) : n.apply(e);
15334
15334
  }
15335
15335
  });
15336
15336
  let UO = (n) => {
@@ -15380,10 +15380,10 @@ const Fl = typeof navigator < "u" && (!((Gl = navigator.scheduling) === null ||
15380
15380
  ))
15381
15381
  return;
15382
15382
  let l = Date.now() + Math.min(this.chunkBudget, 100, e && !Fl ? Math.max(25, e.timeRemaining() - 5) : 1e9), a = r.context.treeLen < s && i.doc.length > s + 1e3, o = r.context.work(() => Fl && Fl() || Date.now() > l, s + (a ? 0 : 1e5));
15383
- this.chunkBudget -= Date.now() - t, (o || this.chunkBudget <= 0) && (r.context.takeTree(), this.view.dispatch({ effects: Dt.setState.of(new $n(r.context)) })), this.chunkBudget > 0 && !(o && !a) && this.scheduleWork(), this.checkAsyncSchedule(r.context);
15383
+ this.chunkBudget -= Date.now() - t, (o || this.chunkBudget <= 0) && (r.context.takeTree(), this.view.dispatch({ effects: Dt.setState.of(new wn(r.context)) })), this.chunkBudget > 0 && !(o && !a) && this.scheduleWork(), this.checkAsyncSchedule(r.context);
15384
15384
  }
15385
15385
  checkAsyncSchedule(e) {
15386
- e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((t) => pt(this.view.state, t)).then(() => this.workScheduled--), e.scheduleOn = null);
15386
+ e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((t) => mt(this.view.state, t)).then(() => this.workScheduled--), e.scheduleOn = null);
15387
15387
  }
15388
15388
  destroy() {
15389
15389
  this.working && this.working();
@@ -15408,7 +15408,7 @@ const Fl = typeof navigator < "u" && (!((Gl = navigator.scheduling) === null ||
15408
15408
  })
15409
15409
  ]
15410
15410
  });
15411
- class Rn {
15411
+ class Zn {
15412
15412
  /**
15413
15413
  Create a language support object.
15414
15414
  */
@@ -15492,7 +15492,7 @@ class yl {
15492
15492
  position in the given string.
15493
15493
  */
15494
15494
  countColumn(e, t = e.length) {
15495
- return Cn(e, this.state.tabSize, t);
15495
+ return Xn(e, this.state.tabSize, t);
15496
15496
  }
15497
15497
  /**
15498
15498
  Find the indentation column of the line at the given point.
@@ -15957,7 +15957,7 @@ class Cs {
15957
15957
  return (i || (i = /* @__PURE__ */ Object.create(null)))["." + o] = a, o;
15958
15958
  }
15959
15959
  const r = typeof t.all == "string" ? t.all : t.all ? s(t.all) : void 0, l = t.scope;
15960
- this.scope = l instanceof Dt ? (a) => a.prop(hn) == l.data : l ? (a) => a == l : void 0, this.style = jO(e.map((a) => ({
15960
+ this.scope = l instanceof Dt ? (a) => a.prop(cn) == l.data : l ? (a) => a == l : void 0, this.style = jO(e.map((a) => ({
15961
15961
  tag: a.tag,
15962
15962
  class: a.class || s(Object.assign({}, a, { tag: null }))
15963
15963
  })), {
@@ -16255,7 +16255,7 @@ function zQ(n, e) {
16255
16255
  let l = Oc[s] = ct.define({
16256
16256
  id: fc.length,
16257
16257
  name: i,
16258
- props: [Xn({ [i]: t })]
16258
+ props: [Rn({ [i]: t })]
16259
16259
  });
16260
16260
  return fc.push(l), l.id;
16261
16261
  }
@@ -16396,20 +16396,20 @@ const ko = /* @__PURE__ */ _i.define(), GQ = /* @__PURE__ */ _i.define(), FQ = /
16396
16396
  update(n, e) {
16397
16397
  let t = e.state.facet(ap), i = e.annotation(ko);
16398
16398
  if (i) {
16399
- let o = mt.fromTransaction(e, i.selection), u = i.side, h = u == 0 ? n.undone : n.done;
16399
+ let o = gt.fromTransaction(e, i.selection), u = i.side, h = u == 0 ? n.undone : n.done;
16400
16400
  return o ? h = Ir(h, h.length, t.minDepth, o) : h = cp(h, e.startState.selection), new ii(u == 0 ? i.rest : h, u == 0 ? h : i.rest);
16401
16401
  }
16402
16402
  let s = e.annotation(GQ);
16403
16403
  if ((s == "full" || s == "before") && (n = n.isolate()), e.annotation(Be.addToHistory) === !1)
16404
16404
  return e.changes.empty ? n : n.addMapping(e.changes.desc);
16405
- let r = mt.fromTransaction(e), l = e.annotation(Be.time), a = e.annotation(Be.userEvent);
16405
+ let r = gt.fromTransaction(e), l = e.annotation(Be.time), a = e.annotation(Be.userEvent);
16406
16406
  return r ? n = n.addChanges(r, l, a, t, e) : e.selection && (n = n.addSelection(e.startState.selection, l, a, t.newGroupDelay)), (s == "full" || s == "after") && (n = n.isolate()), n;
16407
16407
  },
16408
16408
  toJSON(n) {
16409
16409
  return { done: n.done.map((e) => e.toJSON()), undone: n.undone.map((e) => e.toJSON()) };
16410
16410
  },
16411
16411
  fromJSON(n) {
16412
- return new ii(n.done.map(mt.fromJSON), n.undone.map(mt.fromJSON));
16412
+ return new ii(n.done.map(gt.fromJSON), n.undone.map(gt.fromJSON));
16413
16413
  }
16414
16414
  });
16415
16415
  function HQ(n = {}) {
@@ -16436,12 +16436,12 @@ function Sl(n, e) {
16436
16436
  };
16437
16437
  }
16438
16438
  const up = /* @__PURE__ */ Sl(0, !1), To = /* @__PURE__ */ Sl(1, !1), KQ = /* @__PURE__ */ Sl(0, !0), JQ = /* @__PURE__ */ Sl(1, !0);
16439
- class mt {
16439
+ class gt {
16440
16440
  constructor(e, t, i, s, r) {
16441
16441
  this.changes = e, this.effects = t, this.mapped = i, this.startSelection = s, this.selectionsAfter = r;
16442
16442
  }
16443
16443
  setSelAfter(e) {
16444
- return new mt(this.changes, this.effects, this.mapped, this.startSelection, e);
16444
+ return new gt(this.changes, this.effects, this.mapped, this.startSelection, e);
16445
16445
  }
16446
16446
  toJSON() {
16447
16447
  var e, t, i;
@@ -16453,7 +16453,7 @@ class mt {
16453
16453
  };
16454
16454
  }
16455
16455
  static fromJSON(e) {
16456
- return new mt(e.changes && Ge.fromJSON(e.changes), [], e.mapped && ni.fromJSON(e.mapped), e.startSelection && I.fromJSON(e.startSelection), e.selectionsAfter.map(I.fromJSON));
16456
+ return new gt(e.changes && Ge.fromJSON(e.changes), [], e.mapped && ni.fromJSON(e.mapped), e.startSelection && I.fromJSON(e.startSelection), e.selectionsAfter.map(I.fromJSON));
16457
16457
  }
16458
16458
  // This does not check `addToHistory` and such, it assumes the
16459
16459
  // transaction needs to be converted to an item. Returns null when
@@ -16464,10 +16464,10 @@ class mt {
16464
16464
  let r = s(e);
16465
16465
  r.length && (i = i.concat(r));
16466
16466
  }
16467
- return !i.length && e.changes.empty ? null : new mt(e.changes.invert(e.startState.doc), i, void 0, t || e.startState.selection, Zt);
16467
+ return !i.length && e.changes.empty ? null : new gt(e.changes.invert(e.startState.doc), i, void 0, t || e.startState.selection, Zt);
16468
16468
  }
16469
16469
  static selection(e) {
16470
- return new mt(void 0, Zt, void 0, void 0, e);
16470
+ return new gt(void 0, Zt, void 0, void 0, e);
16471
16471
  }
16472
16472
  }
16473
16473
  function Ir(n, e, t, i) {
@@ -16495,7 +16495,7 @@ function cp(n, e) {
16495
16495
  let t = n[n.length - 1], i = t.selectionsAfter.slice(Math.max(0, t.selectionsAfter.length - iv));
16496
16496
  return i.length && i[i.length - 1].eq(e) ? n : (i.push(e), Ir(n, n.length - 1, 1e9, t.setSelAfter(i)));
16497
16497
  } else
16498
- return [mt.selection([e])];
16498
+ return [gt.selection([e])];
16499
16499
  }
16500
16500
  function nv(n) {
16501
16501
  let e = n[n.length - 1], t = n.slice();
@@ -16513,14 +16513,14 @@ function ea(n, e) {
16513
16513
  } else
16514
16514
  e = s.mapped, t--, i = s.selectionsAfter;
16515
16515
  }
16516
- return i.length ? [mt.selection(i)] : Zt;
16516
+ return i.length ? [gt.selection(i)] : Zt;
16517
16517
  }
16518
16518
  function sv(n, e, t) {
16519
16519
  let i = hp(n.selectionsAfter.length ? n.selectionsAfter.map((a) => a.map(e)) : Zt, t);
16520
16520
  if (!n.changes)
16521
- return mt.selection(i);
16521
+ return gt.selection(i);
16522
16522
  let s = n.changes.map(e), r = e.mapDesc(n.changes, !0), l = n.mapped ? n.mapped.composeDesc(r) : r;
16523
- return new mt(s, Se.mapEffects(n.effects, e), l, n.startSelection.map(r), i);
16523
+ return new gt(s, Se.mapEffects(n.effects, e), l, n.startSelection.map(r), i);
16524
16524
  }
16525
16525
  const rv = /^(input\.type|delete)($|\.)/;
16526
16526
  class ii {
@@ -16533,7 +16533,7 @@ class ii {
16533
16533
  addChanges(e, t, i, s, r) {
16534
16534
  let l = this.done, a = l[l.length - 1];
16535
16535
  return a && a.changes && !a.changes.empty && e.changes && (!i || rv.test(i)) && (!a.selectionsAfter.length && t - this.prevTime < s.newGroupDelay && s.joinToEvent(r, ev(a.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
16536
- i == "input.type.compose") ? l = Ir(l, l.length - 1, s.minDepth, new mt(e.changes.compose(a.changes), hp(Se.mapEffects(e.effects, a.changes), a.effects), a.mapped, a.startSelection, Zt)) : l = Ir(l, l.length, s.minDepth, e), new ii(l, Zt, t, i);
16536
+ i == "input.type.compose") ? l = Ir(l, l.length - 1, s.minDepth, new gt(e.changes.compose(a.changes), hp(Se.mapEffects(e.effects, a.changes), a.effects), a.mapped, a.startSelection, Zt)) : l = Ir(l, l.length, s.minDepth, e), new ii(l, Zt, t, i);
16537
16537
  }
16538
16538
  addSelection(e, t, i, s) {
16539
16539
  let r = this.done.length ? this.done[this.done.length - 1].selectionsAfter : Zt;
@@ -16577,14 +16577,14 @@ const lv = [
16577
16577
  { key: "Mod-u", run: KQ, preventDefault: !0 },
16578
16578
  { key: "Alt-u", mac: "Mod-Shift-u", run: JQ, preventDefault: !0 }
16579
16579
  ];
16580
- function Zn(n, e) {
16580
+ function Vn(n, e) {
16581
16581
  return I.create(n.ranges.map(e), n.mainIndex);
16582
16582
  }
16583
16583
  function Lt(n, e) {
16584
16584
  return n.update({ selection: e, scrollIntoView: !0, userEvent: "select" });
16585
16585
  }
16586
16586
  function jt({ state: n, dispatch: e }, t) {
16587
- let i = Zn(n.selection, t);
16587
+ let i = Vn(n.selection, t);
16588
16588
  return i.eq(n.selection, !0) ? !1 : (e(Lt(n, i)), !0);
16589
16589
  }
16590
16590
  function xl(n, e) {
@@ -16646,7 +16646,7 @@ function bp(n) {
16646
16646
  };
16647
16647
  }
16648
16648
  function yp(n, e) {
16649
- let t = bp(n), { state: i } = n, s = Zn(i.selection, (l) => l.empty ? n.moveVertically(l, e, t.height) : xl(l, e));
16649
+ let t = bp(n), { state: i } = n, s = Vn(i.selection, (l) => l.empty ? n.moveVertically(l, e, t.height) : xl(l, e));
16650
16650
  if (s.eq(i.selection))
16651
16651
  return !1;
16652
16652
  let r;
@@ -16667,7 +16667,7 @@ function Vi(n, e, t) {
16667
16667
  }
16668
16668
  const fv = (n) => jt(n, (e) => Vi(n, e, !0)), dv = (n) => jt(n, (e) => Vi(n, e, !1)), Ov = (n) => jt(n, (e) => Vi(n, e, !ot(n))), pv = (n) => jt(n, (e) => Vi(n, e, ot(n))), mv = (n) => jt(n, (e) => I.cursor(n.lineBlockAt(e.head).from, 1)), gv = (n) => jt(n, (e) => I.cursor(n.lineBlockAt(e.head).to, -1));
16669
16669
  function _v(n, e, t) {
16670
- let i = !1, s = Zn(n.selection, (r) => {
16670
+ let i = !1, s = Vn(n.selection, (r) => {
16671
16671
  let l = ti(n, r.head, -1) || ti(n, r.head, 1) || r.head > 0 && ti(n, r.head - 1, 1) || r.head < n.doc.length && ti(n, r.head + 1, -1);
16672
16672
  if (!l || !l.end)
16673
16673
  return r;
@@ -16679,7 +16679,7 @@ function _v(n, e, t) {
16679
16679
  }
16680
16680
  const bv = ({ state: n, dispatch: e }) => _v(n, e, !1);
16681
16681
  function Yt(n, e) {
16682
- let t = Zn(n.state.selection, (i) => {
16682
+ let t = Vn(n.state.selection, (i) => {
16683
16683
  let s = e(i);
16684
16684
  return I.range(i.anchor, s.head, s.goalColumn, s.bidiLevel || void 0, s.assoc);
16685
16685
  });
@@ -16704,7 +16704,7 @@ const mc = (n) => kp(n, !1), gc = (n) => kp(n, !0), xv = (n) => Yt(n, (e) => Vi(
16704
16704
  let t = wl(n).map(({ from: i, to: s }) => I.range(i, Math.min(s + 1, n.doc.length)));
16705
16705
  return e(n.update({ selection: I.create(t), userEvent: "select" })), !0;
16706
16706
  }, Rv = ({ state: n, dispatch: e }) => {
16707
- let t = Zn(n.selection, (i) => {
16707
+ let t = Vn(n.selection, (i) => {
16708
16708
  let s = ze(n), r = s.resolveStack(i.from, 1);
16709
16709
  if (i.empty) {
16710
16710
  let l = s.resolveStack(i.from, -1);
@@ -16773,7 +16773,7 @@ const Cp = (n, e, t) => Xs(n, (i) => {
16773
16773
  if (t && !e && s > l.from && s < l.from + 200 && !/[^ \t]/.test(a = l.text.slice(0, s - l.from))) {
16774
16774
  if (a[a.length - 1] == " ")
16775
16775
  return s - 1;
16776
- let u = Cn(a, r.tabSize), h = u % Lr(r) || Lr(r);
16776
+ let u = Xn(a, r.tabSize), h = u % Lr(r) || Lr(r);
16777
16777
  for (let c = 0; c < h && a[a.length - 1 - c] == " "; c++)
16778
16778
  s--;
16779
16779
  o = s;
@@ -16880,7 +16880,7 @@ function Ap(n, e, t) {
16880
16880
  const jv = ({ state: n, dispatch: e }) => Ap(n, e, !1), Uv = ({ state: n, dispatch: e }) => Ap(n, e, !0), Iv = (n) => {
16881
16881
  if (n.state.readOnly)
16882
16882
  return !1;
16883
- let { state: e } = n, t = e.changes(wl(e).map(({ from: s, to: r }) => (s > 0 ? s-- : r < e.doc.length && r++, { from: s, to: r }))), i = Zn(e.selection, (s) => {
16883
+ let { state: e } = n, t = e.changes(wl(e).map(({ from: s, to: r }) => (s > 0 ? s-- : r < e.doc.length && r++, { from: s, to: r }))), i = Vn(e.selection, (s) => {
16884
16884
  let r;
16885
16885
  if (n.lineWrapping) {
16886
16886
  let l = n.lineBlockAt(s.head), a = n.coordsAtPos(s.head, s.assoc || 1);
@@ -16905,7 +16905,7 @@ function Yp(n) {
16905
16905
  let { from: r, to: l } = s, a = e.doc.lineAt(r), o = !n && r == l && Nv(e, r);
16906
16906
  n && (r = l = (l <= a.to ? a : e.doc.lineAt(l)).to);
16907
16907
  let u = new yl(e, { simulateBreak: r, simulateDoubleBreak: !!o }), h = Ou(u, r);
16908
- for (h == null && (h = Cn(/^\s*/.exec(e.doc.lineAt(r).text)[0], e.tabSize)); l < a.to && /\s/.test(a.text[l - a.from]); )
16908
+ for (h == null && (h = Xn(/^\s*/.exec(e.doc.lineAt(r).text)[0], e.tabSize)); l < a.to && /\s/.test(a.text[l - a.from]); )
16909
16909
  l++;
16910
16910
  o ? { from: r, to: l } = o : r > a.from && r < a.from + 100 && !/\S/.test(a.text.slice(0, r)) && (r = a.from);
16911
16911
  let c = ["", ms(e, h)];
@@ -16953,7 +16953,7 @@ const Gv = ({ state: n, dispatch: e }) => {
16953
16953
  let s = /^\s*/.exec(t.text)[0];
16954
16954
  if (!s)
16955
16955
  return;
16956
- let r = Cn(s, n.tabSize), l = 0, a = ms(n, Math.max(0, r - Lr(n)));
16956
+ let r = Xn(s, n.tabSize), l = 0, a = ms(n, Math.max(0, r - Lr(n)));
16957
16957
  for (; l < s.length && l < a.length && s.charCodeAt(l) == a.charCodeAt(l); )
16958
16958
  l++;
16959
16959
  i.push({ from: t.from + l, to: t.from + s.length, insert: a.slice(l) });
@@ -17020,7 +17020,7 @@ const Gv = ({ state: n, dispatch: e }) => {
17020
17020
  { key: "Alt-A", run: jQ },
17021
17021
  { key: "Ctrl-m", mac: "Shift-Alt-m", run: Kv }
17022
17022
  ].concat(eS), Sc = typeof String.prototype.normalize == "function" ? (n) => n.normalize("NFKD") : (n) => n;
17023
- class wn {
17023
+ class Pn {
17024
17024
  /**
17025
17025
  Create a text cursor. The query is the search string, `from` to
17026
17026
  `to` provides the region to search.
@@ -17043,7 +17043,7 @@ class wn {
17043
17043
  return -1;
17044
17044
  this.bufferPos = 0, this.buffer = this.iter.value;
17045
17045
  }
17046
- return ft(this.buffer, this.bufferPos);
17046
+ return dt(this.buffer, this.bufferPos);
17047
17047
  }
17048
17048
  /**
17049
17049
  Look for the next match. Updates the iterator's
@@ -17089,7 +17089,7 @@ class wn {
17089
17089
  return this.query.charCodeAt(0) == e && (this.query.length == 1 ? l = { from: t, to: s, precise: i && r } : this.matches.push({ from: t, index: 1, precise: i })), l && this.test && !this.test(l.from, l.to, this.buffer, this.bufferStart) && (l = null), l;
17090
17090
  }
17091
17091
  }
17092
- typeof Symbol < "u" && (wn.prototype[Symbol.iterator] = function() {
17092
+ typeof Symbol < "u" && (Pn.prototype[Symbol.iterator] = function() {
17093
17093
  return this;
17094
17094
  });
17095
17095
  const Ep = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec(""), precise: !0 }, vu = "gm" + (/x/.unicode == null ? "" : "u");
@@ -17132,7 +17132,7 @@ class Mp {
17132
17132
  }
17133
17133
  }
17134
17134
  const ta = /* @__PURE__ */ new WeakMap();
17135
- class gn {
17135
+ class _n {
17136
17136
  constructor(e, t) {
17137
17137
  this.from = e, this.text = t;
17138
17138
  }
@@ -17142,18 +17142,18 @@ class gn {
17142
17142
  static get(e, t, i) {
17143
17143
  let s = ta.get(e);
17144
17144
  if (!s || s.from >= i || s.to <= t) {
17145
- let a = new gn(t, e.sliceString(t, i));
17145
+ let a = new _n(t, e.sliceString(t, i));
17146
17146
  return ta.set(e, a), a;
17147
17147
  }
17148
17148
  if (s.from == t && s.to == i)
17149
17149
  return s;
17150
17150
  let { text: r, from: l } = s;
17151
- return l > t && (r = e.sliceString(t, l) + r, l = t), s.to < i && (r += e.sliceString(s.to, i)), ta.set(e, new gn(l, r)), new gn(t, r.slice(t - l, i - l));
17151
+ return l > t && (r = e.sliceString(t, l) + r, l = t), s.to < i && (r += e.sliceString(s.to, i)), ta.set(e, new _n(l, r)), new _n(t, r.slice(t - l, i - l));
17152
17152
  }
17153
17153
  }
17154
17154
  class qp {
17155
17155
  constructor(e, t, i, s, r) {
17156
- this.text = e, this.to = r, this.done = !1, this.value = Ep, this.matchPos = Nr(e, s), this.re = new RegExp(t, vu + (i != null && i.ignoreCase ? "i" : "")), this.test = i == null ? void 0 : i.test, this.flat = gn.get(e, s, this.chunkEnd(
17156
+ this.text = e, this.to = r, this.done = !1, this.value = Ep, this.matchPos = Nr(e, s), this.re = new RegExp(t, vu + (i != null && i.ignoreCase ? "i" : "")), this.test = i == null ? void 0 : i.test, this.flat = _n.get(e, s, this.chunkEnd(
17157
17157
  s + 5e3
17158
17158
  /* Chunk.Base */
17159
17159
  ));
@@ -17171,7 +17171,7 @@ class qp {
17171
17171
  }
17172
17172
  if (this.flat.to == this.to)
17173
17173
  return this.done = !0, this;
17174
- this.flat = gn.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
17174
+ this.flat = _n.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
17175
17175
  }
17176
17176
  }
17177
17177
  }
@@ -17274,7 +17274,7 @@ const uS = /* @__PURE__ */ Ne.fromClass(class {
17274
17274
  }
17275
17275
  let a = [];
17276
17276
  for (let o of n.visibleRanges) {
17277
- let u = new wn(t.doc, r, o.from, o.to);
17277
+ let u = new Pn(t.doc, r, o.from, o.to);
17278
17278
  for (; !u.next().done; ) {
17279
17279
  let { from: h, to: c } = u.value;
17280
17280
  if ((!l || xc(l, t, h, c)) && (s.empty && h <= s.from && c >= s.to ? a.push(aS.range(h, c)) : (h >= s.to || c <= s.from) && a.push(lS.range(h, c)), a.length > e.maxMatches))
@@ -17294,11 +17294,11 @@ const uS = /* @__PURE__ */ Ne.fromClass(class {
17294
17294
  };
17295
17295
  function fS(n, e) {
17296
17296
  let { main: t, ranges: i } = n.selection, s = n.wordAt(t.head), r = s && s.from == t.from && s.to == t.to;
17297
- for (let l = !1, a = new wn(n.doc, e, i[i.length - 1].to); ; )
17297
+ for (let l = !1, a = new Pn(n.doc, e, i[i.length - 1].to); ; )
17298
17298
  if (a.next(), a.done) {
17299
17299
  if (l)
17300
17300
  return null;
17301
- a = new wn(n.doc, e, 0, Math.max(0, i[i.length - 1].from - 1)), l = !0;
17301
+ a = new Pn(n.doc, e, 0, Math.max(0, i[i.length - 1].from - 1)), l = !0;
17302
17302
  } else {
17303
17303
  if (l && i.some((o) => o.from == a.value.from))
17304
17304
  continue;
@@ -17322,7 +17322,7 @@ const dS = ({ state: n, dispatch: e }) => {
17322
17322
  selection: n.selection.addRange(I.range(s.from, s.to), !1),
17323
17323
  effects: he.scrollIntoView(s.to)
17324
17324
  })), !0) : !1;
17325
- }, Vn = /* @__PURE__ */ ce.define({
17325
+ }, An = /* @__PURE__ */ ce.define({
17326
17326
  combine(n) {
17327
17327
  return ri(n, {
17328
17328
  top: !1,
@@ -17367,7 +17367,7 @@ class zp {
17367
17367
  */
17368
17368
  getCursor(e, t = 0, i) {
17369
17369
  let s = e.doc ? e : Ze.create({ doc: e });
17370
- return i == null && (i = s.doc.length), this.regexp ? an(this, s, t, i) : ln(this, s, t, i);
17370
+ return i == null && (i = s.doc.length), this.regexp ? on(this, s, t, i) : an(this, s, t, i);
17371
17371
  }
17372
17372
  }
17373
17373
  class Wp {
@@ -17383,9 +17383,9 @@ function OS(n, e, t) {
17383
17383
  return n(a, e, i, s);
17384
17384
  };
17385
17385
  }
17386
- function ln(n, e, t, i) {
17386
+ function an(n, e, t, i) {
17387
17387
  let s;
17388
- return n.wholeWord && (s = pS(e.doc, e.charCategorizer(e.selection.main.head))), n.test && (s = OS(n.test, e, s)), new wn(e.doc, n.unquoted, t, i, n.caseSensitive ? void 0 : (r) => r.toLowerCase(), s);
17388
+ return n.wholeWord && (s = pS(e.doc, e.charCategorizer(e.selection.main.head))), n.test && (s = OS(n.test, e, s)), new Pn(e.doc, n.unquoted, t, i, n.caseSensitive ? void 0 : (r) => r.toLowerCase(), s);
17389
17389
  }
17390
17390
  function pS(n, e) {
17391
17391
  return (t, i, s, r) => ((r > t || r + s.length < i) && (r = Math.max(0, t - 2), s = n.sliceString(r, Math.min(n.length, i + 2))), (e(Br(s, t - r)) != We.Word || e(Gr(s, t - r)) != We.Word) && (e(Gr(s, i - r)) != We.Word || e(Br(s, i - r)) != We.Word));
@@ -17395,10 +17395,10 @@ class mS extends Wp {
17395
17395
  super(e);
17396
17396
  }
17397
17397
  nextMatch(e, t, i) {
17398
- let s = ln(this.spec, e, i, e.doc.length).nextOverlapping();
17398
+ let s = an(this.spec, e, i, e.doc.length).nextOverlapping();
17399
17399
  if (s.done) {
17400
17400
  let r = Math.min(e.doc.length, t + this.spec.unquoted.length);
17401
- s = ln(this.spec, e, 0, r).nextOverlapping();
17401
+ s = an(this.spec, e, 0, r).nextOverlapping();
17402
17402
  }
17403
17403
  return s.done || s.value.from == t && s.value.to == i ? null : s.value;
17404
17404
  }
@@ -17406,7 +17406,7 @@ class mS extends Wp {
17406
17406
  // cursor, done by scanning chunk after chunk forward.
17407
17407
  prevMatchInRange(e, t, i) {
17408
17408
  for (let s = i; ; ) {
17409
- let r = Math.max(t, s - 1e4 - this.spec.unquoted.length), l = ln(this.spec, e, r, s), a = null;
17409
+ let r = Math.max(t, s - 1e4 - this.spec.unquoted.length), l = an(this.spec, e, r, s), a = null;
17410
17410
  for (; !l.nextOverlapping().done; )
17411
17411
  a = l.value;
17412
17412
  if (a)
@@ -17424,7 +17424,7 @@ class mS extends Wp {
17424
17424
  return this.spec.unquote(this.spec.replace);
17425
17425
  }
17426
17426
  matchAll(e, t) {
17427
- let i = ln(this.spec, e, 0, e.doc.length), s = [];
17427
+ let i = an(this.spec, e, 0, e.doc.length), s = [];
17428
17428
  for (; !i.next().done; ) {
17429
17429
  if (s.length >= t)
17430
17430
  return null;
@@ -17433,7 +17433,7 @@ class mS extends Wp {
17433
17433
  return s;
17434
17434
  }
17435
17435
  highlight(e, t, i, s) {
17436
- let r = ln(this.spec, e, Math.max(0, t - this.spec.unquoted.length), Math.min(i + this.spec.unquoted.length, e.doc.length));
17436
+ let r = an(this.spec, e, Math.max(0, t - this.spec.unquoted.length), Math.min(i + this.spec.unquoted.length, e.doc.length));
17437
17437
  for (; !r.next().done; )
17438
17438
  s(r.value.from, r.value.to);
17439
17439
  }
@@ -17441,7 +17441,7 @@ class mS extends Wp {
17441
17441
  function gS(n, e, t) {
17442
17442
  return (i, s, r) => (!t || t(i, s, r)) && n(r[0], e, i, s);
17443
17443
  }
17444
- function an(n, e, t, i) {
17444
+ function on(n, e, t, i) {
17445
17445
  let s;
17446
17446
  return n.wholeWord && (s = _S(e.charCategorizer(e.selection.main.head))), n.test && (s = gS(n.test, e, s)), new Mp(e.doc, n.search, { ignoreCase: !n.caseSensitive, test: s }, t, i);
17447
17447
  }
@@ -17456,8 +17456,8 @@ function _S(n) {
17456
17456
  }
17457
17457
  class bS extends Wp {
17458
17458
  nextMatch(e, t, i) {
17459
- let s = an(this.spec, e, i, e.doc.length).next();
17460
- return s.done && (s = an(this.spec, e, 0, t).next()), s.done ? null : s.value;
17459
+ let s = on(this.spec, e, i, e.doc.length).next();
17460
+ return s.done && (s = on(this.spec, e, 0, t).next()), s.done ? null : s.value;
17461
17461
  }
17462
17462
  prevMatchInRange(e, t, i) {
17463
17463
  for (let s = 1; ; s++) {
@@ -17465,7 +17465,7 @@ class bS extends Wp {
17465
17465
  t,
17466
17466
  i - s * 1e4
17467
17467
  /* FindPrev.ChunkSize */
17468
- ), l = an(this.spec, e, r, i), a = null;
17468
+ ), l = on(this.spec, e, r, i), a = null;
17469
17469
  for (; !l.next().done; )
17470
17470
  a = l.value;
17471
17471
  if (a && (r == t || a.from > r + 10))
@@ -17492,7 +17492,7 @@ class bS extends Wp {
17492
17492
  });
17493
17493
  }
17494
17494
  matchAll(e, t) {
17495
- let i = an(this.spec, e, 0, e.doc.length), s = [];
17495
+ let i = on(this.spec, e, 0, e.doc.length), s = [];
17496
17496
  for (; !i.next().done; ) {
17497
17497
  if (s.length >= t)
17498
17498
  return null;
@@ -17501,7 +17501,7 @@ class bS extends Wp {
17501
17501
  return s;
17502
17502
  }
17503
17503
  highlight(e, t, i, s) {
17504
- let r = an(this.spec, e, Math.max(
17504
+ let r = on(this.spec, e, Math.max(
17505
17505
  0,
17506
17506
  t - 250
17507
17507
  /* RegExp.HighlightMargin */
@@ -17562,7 +17562,7 @@ const Fr = /* @__PURE__ */ Rs((n, { query: e }) => {
17562
17562
  let { to: t } = n.state.selection.main, i = e.nextMatch(n.state, t, t);
17563
17563
  if (!i)
17564
17564
  return !1;
17565
- let s = I.single(i.from, i.to), r = n.state.facet(Vn);
17565
+ let s = I.single(i.from, i.to), r = n.state.facet(An);
17566
17566
  return n.dispatch({
17567
17567
  selection: s,
17568
17568
  effects: [$u(n, i), r.scrollToMatch(s.main, n)],
@@ -17572,7 +17572,7 @@ const Fr = /* @__PURE__ */ Rs((n, { query: e }) => {
17572
17572
  let { state: t } = n, { from: i } = t.selection.main, s = e.prevMatch(t, i, i);
17573
17573
  if (!s)
17574
17574
  return !1;
17575
- let r = I.single(s.from, s.to), l = n.state.facet(Vn);
17575
+ let r = I.single(s.from, s.to), l = n.state.facet(An);
17576
17576
  return n.dispatch({
17577
17577
  selection: r,
17578
17578
  effects: [$u(n, s), l.scrollToMatch(r.main, n)],
@@ -17589,7 +17589,7 @@ const Fr = /* @__PURE__ */ Rs((n, { query: e }) => {
17589
17589
  if (t.ranges.length > 1 || t.main.empty)
17590
17590
  return !1;
17591
17591
  let { from: i, to: s } = t.main, r = [], l = 0;
17592
- for (let a = new wn(n.doc, n.sliceDoc(i, s)); !a.next().done; ) {
17592
+ for (let a = new Pn(n.doc, n.sliceDoc(i, s)); !a.next().done; ) {
17593
17593
  if (r.length > 1e3)
17594
17594
  return !1;
17595
17595
  a.value.from == i && (l = r.length), r.push(I.range(a.value.from, a.value.to));
@@ -17608,7 +17608,7 @@ const Fr = /* @__PURE__ */ Rs((n, { query: e }) => {
17608
17608
  let l = r, a = [], o, u, h = [];
17609
17609
  l.precise ? l.from == i && l.to == s && (u = t.toText(e.getReplacement(l)), a.push({ from: l.from, to: l.to, insert: u }), h.push(he.announce.of(t.phrase("replaced match on line $", t.doc.lineAt(i).number) + "."))) : l = e.nextMatch(t, l.from, l.to);
17610
17610
  let c = n.state.changes(a);
17611
- return l && (o = I.single(l.from, l.to).map(c), h.push($u(n, l)), h.push(t.facet(Vn).scrollToMatch(o.main, n))), n.dispatch({
17611
+ return l && (o = I.single(l.from, l.to).map(c), h.push($u(n, l)), h.push(t.facet(An).scrollToMatch(o.main, n))), n.dispatch({
17612
17612
  changes: c,
17613
17613
  selection: o,
17614
17614
  effects: h,
@@ -17632,14 +17632,14 @@ const Fr = /* @__PURE__ */ Rs((n, { query: e }) => {
17632
17632
  }), !0;
17633
17633
  });
17634
17634
  function xu(n) {
17635
- return n.state.facet(Vn).createPanel(n);
17635
+ return n.state.facet(An).createPanel(n);
17636
17636
  }
17637
17637
  function Ro(n, e) {
17638
17638
  var t, i, s, r, l;
17639
17639
  let a = n.selection.main, o = a.empty || a.to > a.from + 100 ? "" : n.sliceDoc(a.from, a.to);
17640
17640
  if (e && !o)
17641
17641
  return e;
17642
- let u = n.facet(Vn);
17642
+ let u = n.facet(An);
17643
17643
  return new zp({
17644
17644
  search: ((t = e == null ? void 0 : e.literal) !== null && t !== void 0 ? t : u.literal) ? o : o.replace(/\n/g, "\\n"),
17645
17645
  caseSensitive: (i = e == null ? void 0 : e.caseSensitive) !== null && i !== void 0 ? i : u.caseSensitive,
@@ -17691,8 +17691,8 @@ class PS {
17691
17691
  let t = this.query = e.state.field(Si).query.spec;
17692
17692
  this.commit = this.commit.bind(this), this.searchField = Ye("input", {
17693
17693
  value: t.search,
17694
- placeholder: yt(e, "Find"),
17695
- "aria-label": yt(e, "Find"),
17694
+ placeholder: Qt(e, "Find"),
17695
+ "aria-label": Qt(e, "Find"),
17696
17696
  class: "cm-textfield",
17697
17697
  name: "search",
17698
17698
  form: "",
@@ -17701,8 +17701,8 @@ class PS {
17701
17701
  onkeyup: this.commit
17702
17702
  }), this.replaceField = Ye("input", {
17703
17703
  value: t.replace,
17704
- placeholder: yt(e, "Replace"),
17705
- "aria-label": yt(e, "Replace"),
17704
+ placeholder: Qt(e, "Replace"),
17705
+ "aria-label": Qt(e, "Replace"),
17706
17706
  class: "cm-textfield",
17707
17707
  name: "replace",
17708
17708
  form: "",
@@ -17732,22 +17732,22 @@ class PS {
17732
17732
  }
17733
17733
  this.dom = Ye("div", { onkeydown: (s) => this.keydown(s), class: "cm-search" }, [
17734
17734
  this.searchField,
17735
- i("next", () => Fr(e), [yt(e, "next")]),
17736
- i("prev", () => Hr(e), [yt(e, "previous")]),
17737
- i("select", () => SS(e), [yt(e, "all")]),
17738
- Ye("label", null, [this.caseField, yt(e, "match case")]),
17739
- Ye("label", null, [this.reField, yt(e, "regexp")]),
17740
- Ye("label", null, [this.wordField, yt(e, "by word")]),
17735
+ i("next", () => Fr(e), [Qt(e, "next")]),
17736
+ i("prev", () => Hr(e), [Qt(e, "previous")]),
17737
+ i("select", () => SS(e), [Qt(e, "all")]),
17738
+ Ye("label", null, [this.caseField, Qt(e, "match case")]),
17739
+ Ye("label", null, [this.reField, Qt(e, "regexp")]),
17740
+ Ye("label", null, [this.wordField, Qt(e, "by word")]),
17741
17741
  ...e.state.readOnly ? [] : [
17742
17742
  Ye("br"),
17743
17743
  this.replaceField,
17744
- i("replace", () => $c(e), [yt(e, "replace")]),
17745
- i("replaceAll", () => $S(e), [yt(e, "replace all")])
17744
+ i("replace", () => $c(e), [Qt(e, "replace")]),
17745
+ i("replaceAll", () => $S(e), [Qt(e, "replace all")])
17746
17746
  ],
17747
17747
  Ye("button", {
17748
17748
  name: "close",
17749
17749
  onclick: () => Ip(e),
17750
- "aria-label": yt(e, "close"),
17750
+ "aria-label": Qt(e, "close"),
17751
17751
  type: "button"
17752
17752
  }, ["×"])
17753
17753
  ]);
@@ -17780,10 +17780,10 @@ class PS {
17780
17780
  return 80;
17781
17781
  }
17782
17782
  get top() {
17783
- return this.view.state.facet(Vn).top;
17783
+ return this.view.state.facet(An).top;
17784
17784
  }
17785
17785
  }
17786
- function yt(n, e) {
17786
+ function Qt(n, e) {
17787
17787
  return n.state.phrase(e);
17788
17788
  }
17789
17789
  const nr = 30, sr = /[\s\.,:;?!]/;
@@ -17969,10 +17969,10 @@ class ZS {
17969
17969
  constructor(e) {
17970
17970
  this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
17971
17971
  for (let t = 0; t < e.length; ) {
17972
- let i = ft(e, t), s = Ht(i);
17972
+ let i = dt(e, t), s = Ht(i);
17973
17973
  this.chars.push(i);
17974
17974
  let r = e.slice(t, t + s), l = r.toUpperCase();
17975
- this.folded.push(ft(l == r ? r.toLowerCase() : l, 0)), t += s;
17975
+ this.folded.push(dt(l == r ? r.toLowerCase() : l, 0)), t += s;
17976
17976
  }
17977
17977
  this.astral = e.length != this.chars.length;
17978
17978
  }
@@ -17993,7 +17993,7 @@ class ZS {
17993
17993
  return null;
17994
17994
  let { chars: t, folded: i, any: s, precise: r, byWord: l } = this;
17995
17995
  if (t.length == 1) {
17996
- let v = ft(e, 0), Z = Ht(v), $ = Z == e.length ? 0 : -100;
17996
+ let v = dt(e, 0), Z = Ht(v), $ = Z == e.length ? 0 : -100;
17997
17997
  if (v != t[0])
17998
17998
  if (v == i[0])
17999
17999
  $ += -200;
@@ -18007,7 +18007,7 @@ class ZS {
18007
18007
  let o = t.length, u = 0;
18008
18008
  if (a < 0) {
18009
18009
  for (let v = 0, Z = Math.min(e.length, 200); v < Z && u < o; ) {
18010
- let $ = ft(e, v);
18010
+ let $ = dt(e, v);
18011
18011
  ($ == t[u] || $ == i[u]) && (s[u++] = v), v += Ht($);
18012
18012
  }
18013
18013
  if (u < o)
@@ -18015,7 +18015,7 @@ class ZS {
18015
18015
  }
18016
18016
  let h = 0, c = 0, f = !1, d = 0, p = -1, Q = -1, m = /[a-z]/.test(e), g = !0;
18017
18017
  for (let v = 0, Z = Math.min(e.length, 200), $ = 0; v < Z && c < o; ) {
18018
- let X = ft(e, v);
18018
+ let X = dt(e, v);
18019
18019
  a < 0 && (h < o && X == t[h] && (r[h++] = v), d < o && (X == t[d] || X == i[d] ? (d == 0 && (p = v), Q = v + 1, d++) : d = 0));
18020
18020
  let w, P = X < 255 ? X >= 48 && X <= 57 || X >= 97 && X <= 122 ? 2 : X >= 65 && X <= 90 ? 1 : 0 : (w = Lo(X)) != w.toLowerCase() ? 1 : w != w.toUpperCase() ? 2 : 0;
18021
18021
  (!v || P == 1 && m || $ == 0 && P != 0) && (t[c] == X || i[c] == X && (f = !0) ? l[c++] = v : l.length && (g = !1)), $ = P, v += Ht(X);
@@ -18025,7 +18025,7 @@ class ZS {
18025
18025
  result(e, t, i) {
18026
18026
  let s = [], r = 0;
18027
18027
  for (let l of t) {
18028
- let a = l + (this.astral ? Ht(ft(i, l)) : 1);
18028
+ let a = l + (this.astral ? Ht(dt(i, l)) : 1);
18029
18029
  r && s[r - 1] == l ? s[r - 1] = a : (s[r++] = l, s[r++] = a);
18030
18030
  }
18031
18031
  return this.ret(e - i.length, s);
@@ -18206,7 +18206,7 @@ class ES {
18206
18206
  return;
18207
18207
  "then" in l ? l.then((a) => {
18208
18208
  a && this.view.state.field(this.stateField, !1) == e && this.addInfoPane(a, s);
18209
- }).catch((a) => pt(this.view.state, a, "completion info")) : (this.addInfoPane(l, s), i.setAttribute("aria-describedby", this.info.id));
18209
+ }).catch((a) => mt(this.view.state, a, "completion info")) : (this.addInfoPane(l, s), i.setAttribute("aria-describedby", this.info.id));
18210
18210
  }
18211
18211
  }
18212
18212
  addInfoPane(e, t) {
@@ -18330,12 +18330,12 @@ function DS(n, e) {
18330
18330
  }
18331
18331
  return a;
18332
18332
  }
18333
- class cn {
18333
+ class fn {
18334
18334
  constructor(e, t, i, s, r, l) {
18335
18335
  this.options = e, this.attrs = t, this.tooltip = i, this.timestamp = s, this.selected = r, this.disabled = l;
18336
18336
  }
18337
18337
  setSelected(e, t) {
18338
- return e == this.selected || e >= this.options.length ? this : new cn(this.options, Xc(t, e), this.tooltip, this.timestamp, e, this.disabled);
18338
+ return e == this.selected || e >= this.options.length ? this : new fn(this.options, Xc(t, e), this.tooltip, this.timestamp, e, this.disabled);
18339
18339
  }
18340
18340
  static build(e, t, i, s, r, l) {
18341
18341
  if (s && !l && e.some((u) => u.isPending))
@@ -18352,17 +18352,17 @@ class cn {
18352
18352
  break;
18353
18353
  }
18354
18354
  }
18355
- return new cn(a, Xc(i, o), {
18355
+ return new fn(a, Xc(i, o), {
18356
18356
  pos: e.reduce((u, h) => h.hasResult() ? Math.min(u, h.from) : u, 1e8),
18357
18357
  create: IS,
18358
18358
  above: r.aboveCursor
18359
18359
  }, s ? s.timestamp : Date.now(), o, !1);
18360
18360
  }
18361
18361
  map(e) {
18362
- return new cn(this.options, this.attrs, { ...this.tooltip, pos: e.mapPos(this.tooltip.pos) }, this.timestamp, this.selected, this.disabled);
18362
+ return new fn(this.options, this.attrs, { ...this.tooltip, pos: e.mapPos(this.tooltip.pos) }, this.timestamp, this.selected, this.disabled);
18363
18363
  }
18364
18364
  setDisabled() {
18365
- return new cn(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
18365
+ return new fn(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
18366
18366
  }
18367
18367
  }
18368
18368
  class Jr {
@@ -18383,7 +18383,7 @@ class Jr {
18383
18383
  )).update(e, i));
18384
18384
  r.length == this.active.length && r.every((o, u) => o == this.active[u]) && (r = this.active);
18385
18385
  let l = this.open, a = e.effects.some((o) => o.is(Tu));
18386
- l && e.docChanged && (l = l.map(e.changes)), e.selection || r.some((o) => o.hasResult() && e.changes.touchesRange(o.from, o.to)) || !zS(r, this.active) || a ? l = cn.build(r, t, this.id, l, i, a) : l && l.disabled && !r.some((o) => o.isPending) && (l = null), !l && r.every((o) => !o.isPending) && r.some((o) => o.hasResult()) && (r = r.map((o) => o.hasResult() ? new Vt(
18386
+ l && e.docChanged && (l = l.map(e.changes)), e.selection || r.some((o) => o.hasResult() && e.changes.touchesRange(o.from, o.to)) || !zS(r, this.active) || a ? l = fn.build(r, t, this.id, l, i, a) : l && l.disabled && !r.some((o) => o.isPending) && (l = null), !l && r.every((o) => !o.isPending) && r.some((o) => o.hasResult()) && (r = r.map((o) => o.hasResult() ? new Vt(
18387
18387
  o.source,
18388
18388
  0
18389
18389
  /* State.Inactive */
@@ -18480,7 +18480,7 @@ class Vt {
18480
18480
  return e.changes.touchesRange(Ni(e.state));
18481
18481
  }
18482
18482
  }
18483
- class _n extends Vt {
18483
+ class bn extends Vt {
18484
18484
  constructor(e, t, i, s, r, l) {
18485
18485
  super(e, 3, t), this.limit = i, this.result = s, this.from = r, this.to = l;
18486
18486
  }
@@ -18501,10 +18501,10 @@ class _n extends Vt {
18501
18501
  /* State.Inactive */
18502
18502
  );
18503
18503
  let o = e.changes.mapPos(this.limit);
18504
- return US(s.validFor, e.state, r, l) ? new _n(this.source, this.explicit, o, s, r, l) : s.update && (s = s.update(s, r, l, new Np(e.state, a, !1))) ? new _n(this.source, this.explicit, o, s, s.from, (i = s.to) !== null && i !== void 0 ? i : Ni(e.state)) : new Vt(this.source, 1, this.explicit);
18504
+ return US(s.validFor, e.state, r, l) ? new bn(this.source, this.explicit, o, s, r, l) : s.update && (s = s.update(s, r, l, new Np(e.state, a, !1))) ? new bn(this.source, this.explicit, o, s, s.from, (i = s.to) !== null && i !== void 0 ? i : Ni(e.state)) : new Vt(this.source, 1, this.explicit);
18505
18505
  }
18506
18506
  map(e) {
18507
- return e.empty ? this : (this.result.map ? this.result.map(this.result, e) : this.result) ? new _n(this.source, this.explicit, e.mapPos(this.limit), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)) : new Vt(
18507
+ return e.empty ? this : (this.result.map ? this.result.map(this.result, e) : this.result) ? new bn(this.source, this.explicit, e.mapPos(this.limit), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)) : new Vt(
18508
18508
  this.source,
18509
18509
  0
18510
18510
  /* State.Inactive */
@@ -18524,7 +18524,7 @@ const Tu = /* @__PURE__ */ Se.define({
18524
18524
  map(n, e) {
18525
18525
  return n.map((t) => t.map(e));
18526
18526
  }
18527
- }), dt = /* @__PURE__ */ nt.define({
18527
+ }), Ot = /* @__PURE__ */ nt.define({
18528
18528
  create() {
18529
18529
  return Jr.start();
18530
18530
  },
@@ -18538,16 +18538,16 @@ const Tu = /* @__PURE__ */ Se.define({
18538
18538
  });
18539
18539
  function Cu(n, e) {
18540
18540
  const t = e.completion.apply || e.completion.label;
18541
- let i = n.state.field(dt).active.find((s) => s.source == e.source);
18542
- return i instanceof _n ? (typeof t == "string" ? n.dispatch({
18541
+ let i = n.state.field(Ot).active.find((s) => s.source == e.source);
18542
+ return i instanceof bn ? (typeof t == "string" ? n.dispatch({
18543
18543
  ...XS(n.state, t, i.from, i.to),
18544
18544
  annotations: Pu.of(e.completion)
18545
18545
  }) : t(n, e.completion, i.from, i.to), !0) : !1;
18546
18546
  }
18547
- const IS = /* @__PURE__ */ MS(dt, Cu);
18547
+ const IS = /* @__PURE__ */ MS(Ot, Cu);
18548
18548
  function rr(n, e = "option") {
18549
18549
  return (t) => {
18550
- let i = t.state.field(dt, !1);
18550
+ let i = t.state.field(Ot, !1);
18551
18551
  if (!i || !i.open || i.open.disabled || Date.now() - i.open.timestamp < t.state.facet(Fe).interactionDelay)
18552
18552
  return !1;
18553
18553
  let s = 1, r;
@@ -18557,10 +18557,10 @@ function rr(n, e = "option") {
18557
18557
  };
18558
18558
  }
18559
18559
  const NS = (n) => {
18560
- let e = n.state.field(dt, !1);
18560
+ let e = n.state.field(Ot, !1);
18561
18561
  return n.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < n.state.facet(Fe).interactionDelay ? !1 : Cu(n, e.open.options[e.open.selected]);
18562
- }, sa = (n) => n.state.field(dt, !1) ? (n.dispatch({ effects: Kr.of(!0) }), !0) : !1, BS = (n) => {
18563
- let e = n.state.field(dt, !1);
18562
+ }, sa = (n) => n.state.field(Ot, !1) ? (n.dispatch({ effects: Kr.of(!0) }), !0) : !1, BS = (n) => {
18563
+ let e = n.state.field(Ot, !1);
18564
18564
  return !e || !e.active.some(
18565
18565
  (t) => t.state != 0
18566
18566
  /* State.Inactive */
@@ -18574,12 +18574,12 @@ class GS {
18574
18574
  const FS = 50, HS = 1e3, KS = /* @__PURE__ */ Ne.fromClass(class {
18575
18575
  constructor(n) {
18576
18576
  this.view = n, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
18577
- for (let e of n.state.field(dt).active)
18577
+ for (let e of n.state.field(Ot).active)
18578
18578
  e.isPending && this.startQuery(e);
18579
18579
  }
18580
18580
  update(n) {
18581
- let e = n.state.field(dt), t = n.state.facet(Fe);
18582
- if (!n.selectionSet && !n.docChanged && n.startState.field(dt) == e)
18581
+ let e = n.state.field(Ot), t = n.state.facet(Fe);
18582
+ if (!n.selectionSet && !n.docChanged && n.startState.field(Ot) == e)
18583
18583
  return;
18584
18584
  let i = n.transactions.some((r) => {
18585
18585
  let l = Gp(r, t);
@@ -18592,7 +18592,7 @@ const FS = 50, HS = 1e3, KS = /* @__PURE__ */ Ne.fromClass(class {
18592
18592
  try {
18593
18593
  a();
18594
18594
  } catch (o) {
18595
- pt(this.view.state, o);
18595
+ mt(this.view.state, o);
18596
18596
  }
18597
18597
  l.context.abortListeners = null, this.running.splice(r--, 1);
18598
18598
  } else
@@ -18606,7 +18606,7 @@ const FS = 50, HS = 1e3, KS = /* @__PURE__ */ Ne.fromClass(class {
18606
18606
  }
18607
18607
  startUpdate() {
18608
18608
  this.debounceUpdate = -1, this.pendingStart = !1;
18609
- let { state: n } = this.view, e = n.field(dt);
18609
+ let { state: n } = this.view, e = n.field(Ot);
18610
18610
  for (let t of e.active)
18611
18611
  t.isPending && !this.running.some((i) => i.active.source == t.source) && this.startQuery(t);
18612
18612
  this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Fe).updateSyncTime));
@@ -18616,7 +18616,7 @@ const FS = 50, HS = 1e3, KS = /* @__PURE__ */ Ne.fromClass(class {
18616
18616
  this.running.push(s), Promise.resolve(n.source(i)).then((r) => {
18617
18617
  s.context.aborted || (s.done = r || null, this.scheduleAccept());
18618
18618
  }, (r) => {
18619
- this.view.dispatch({ effects: _s.of(null) }), pt(this.view.state, r);
18619
+ this.view.dispatch({ effects: _s.of(null) }), mt(this.view.state, r);
18620
18620
  });
18621
18621
  }
18622
18622
  scheduleAccept() {
@@ -18627,13 +18627,13 @@ const FS = 50, HS = 1e3, KS = /* @__PURE__ */ Ne.fromClass(class {
18627
18627
  accept() {
18628
18628
  var n;
18629
18629
  this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
18630
- let e = [], t = this.view.state.facet(Fe), i = this.view.state.field(dt);
18630
+ let e = [], t = this.view.state.facet(Fe), i = this.view.state.field(Ot);
18631
18631
  for (let s = 0; s < this.running.length; s++) {
18632
18632
  let r = this.running[s];
18633
18633
  if (r.done === void 0)
18634
18634
  continue;
18635
18635
  if (this.running.splice(s--, 1), r.done) {
18636
- let a = Ni(r.updates.length ? r.updates[0].startState : this.view.state), o = Math.min(a, r.done.from + (r.active.explicit ? 0 : 1)), u = new _n(r.active.source, r.active.explicit, o, r.done, r.done.from, (n = r.done.to) !== null && n !== void 0 ? n : a);
18636
+ let a = Ni(r.updates.length ? r.updates[0].startState : this.view.state), o = Math.min(a, r.done.from + (r.active.explicit ? 0 : 1)), u = new bn(r.active.source, r.active.explicit, o, r.done, r.done.from, (n = r.done.to) !== null && n !== void 0 ? n : a);
18637
18637
  for (let h of r.updates)
18638
18638
  u = u.update(h, t);
18639
18639
  if (u.hasResult()) {
@@ -18660,7 +18660,7 @@ const FS = 50, HS = 1e3, KS = /* @__PURE__ */ Ne.fromClass(class {
18660
18660
  }, {
18661
18661
  eventHandlers: {
18662
18662
  blur(n) {
18663
- let e = this.view.state.field(dt, !1);
18663
+ let e = this.view.state.field(Ot, !1);
18664
18664
  if (e && e.tooltip && this.view.state.facet(Fe).closeOnBlur) {
18665
18665
  let t = e.open && RO(this.view, e.open.tooltip);
18666
18666
  (!t || !t.dom.contains(n.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: _s.of(null) }), 10);
@@ -18675,7 +18675,7 @@ const FS = 50, HS = 1e3, KS = /* @__PURE__ */ Ne.fromClass(class {
18675
18675
  }
18676
18676
  }), JS = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), ex = /* @__PURE__ */ Zi.highest(/* @__PURE__ */ he.domEventHandlers({
18677
18677
  keydown(n, e) {
18678
- let t = e.state.field(dt, !1);
18678
+ let t = e.state.field(Ot, !1);
18679
18679
  if (!t || !t.open || t.open.disabled || t.open.selected < 0 || n.key.length > 1 || n.ctrlKey && !(JS && n.altKey) || n.metaKey)
18680
18680
  return !1;
18681
18681
  let i = t.open.options[t.open.selected], s = t.active.find((l) => l.source == i.source), r = i.completion.commitCharacters || s.result.commitCharacters;
@@ -18878,7 +18878,7 @@ let ix = /* @__PURE__ */ be.widget({ widget: /* @__PURE__ */ new class extends l
18878
18878
  return !1;
18879
18879
  }
18880
18880
  }() }), nx = /* @__PURE__ */ be.mark({ class: "cm-snippetField" });
18881
- class An {
18881
+ class Yn {
18882
18882
  constructor(e, t) {
18883
18883
  this.ranges = e, this.active = t, this.deco = be.set(e.map((i) => (i.from == i.to ? ix : nx).range(i.from, i.to)), !0);
18884
18884
  }
@@ -18890,7 +18890,7 @@ class An {
18890
18890
  return null;
18891
18891
  t.push(s);
18892
18892
  }
18893
- return new An(t, this.active);
18893
+ return new Yn(t, this.active);
18894
18894
  }
18895
18895
  selectionInsideField(e) {
18896
18896
  return e.ranges.every((t) => this.ranges.some((i) => i.field == this.active && i.from <= t.from && i.to >= t.to));
@@ -18909,7 +18909,7 @@ const Zs = /* @__PURE__ */ Se.define({
18909
18909
  if (t.is(Zs))
18910
18910
  return t.value;
18911
18911
  if (t.is(sx) && n)
18912
- return new An(n.ranges, t.value);
18912
+ return new Yn(n.ranges, t.value);
18913
18913
  }
18914
18914
  return n && e.docChanged && (n = n.map(e.changes)), n && e.selection && !n.selectionInsideField(e.selection) && (n = null), n;
18915
18915
  },
@@ -18927,7 +18927,7 @@ function rx(n) {
18927
18927
  annotations: i ? [Pu.of(i), Be.userEvent.of("input.complete")] : void 0
18928
18928
  };
18929
18929
  if (a.length && (u.selection = Zu(a, 0)), a.some((h) => h.field > 0)) {
18930
- let h = new An(a, 0), c = u.effects = [Zs.of(h)];
18930
+ let h = new Yn(a, 0), c = u.effects = [Zs.of(h)];
18931
18931
  t.state.field(bs, !1) === void 0 && c.push(Se.appendConfig.of([bs, hx, cx, Fp]));
18932
18932
  }
18933
18933
  t.dispatch(t.state.update(u));
@@ -18941,7 +18941,7 @@ function Hp(n) {
18941
18941
  let s = i.active + n, r = n > 0 && !i.ranges.some((l) => l.field == s + n);
18942
18942
  return t(e.update({
18943
18943
  selection: Zu(i.ranges, s),
18944
- effects: Zs.of(r ? null : new An(i.ranges, s)),
18944
+ effects: Zs.of(r ? null : new Yn(i.ranges, s)),
18945
18945
  scrollIntoView: !0
18946
18946
  })), !0;
18947
18947
  };
@@ -18965,7 +18965,7 @@ const cx = /* @__PURE__ */ he.domEventHandlers({
18965
18965
  let s = t.ranges.find((r) => r.from <= i && r.to >= i);
18966
18966
  return !s || s.field == t.active ? !1 : (e.dispatch({
18967
18967
  selection: Zu(t.ranges, s.field),
18968
- effects: Zs.of(t.ranges.some((r) => r.field > s.field) ? new An(t.ranges, s.field) : null),
18968
+ effects: Zs.of(t.ranges.some((r) => r.field > s.field) ? new Yn(t.ranges, s.field) : null),
18969
18969
  scrollIntoView: !0
18970
18970
  }), !0);
18971
18971
  }
@@ -19013,7 +19013,7 @@ const dx = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19013
19013
  if ((dx ? n.composing : n.compositionStarted) || n.state.readOnly)
19014
19014
  return !1;
19015
19015
  let s = n.state.selection.main;
19016
- if (i.length > 2 || i.length == 2 && Ht(ft(i, 0)) == 1 || e != s.from || t != s.to)
19016
+ if (i.length > 2 || i.length == 2 && Ht(dt(i, 0)) == 1 || e != s.from || t != s.to)
19017
19017
  return !1;
19018
19018
  let r = gx(n.state, i);
19019
19019
  return r ? (n.dispatch(r), !0) : !1;
@@ -19024,7 +19024,7 @@ const dx = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19024
19024
  if (l.empty) {
19025
19025
  let a = _x(n.doc, l.head);
19026
19026
  for (let o of i)
19027
- if (o == a && kl(n.doc, l.head) == Jp(ft(o, 0)))
19027
+ if (o == a && kl(n.doc, l.head) == Jp(dt(o, 0)))
19028
19028
  return {
19029
19029
  changes: { from: l.head - o.length, to: l.head + o.length },
19030
19030
  range: I.cursor(l.head - o.length)
@@ -19039,7 +19039,7 @@ const dx = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19039
19039
  function gx(n, e) {
19040
19040
  let t = em(n, n.selection.main.head), i = t.brackets || ys.brackets;
19041
19041
  for (let s of i) {
19042
- let r = Jp(ft(s, 0));
19042
+ let r = Jp(dt(s, 0));
19043
19043
  if (e == s)
19044
19044
  return r == s ? Qx(n, s, i.indexOf(s + s + s) > -1, t) : bx(n, s, r, t.before || ys.before);
19045
19045
  if (e == r && tm(n, n.selection.main.from))
@@ -19055,11 +19055,11 @@ function tm(n, e) {
19055
19055
  }
19056
19056
  function kl(n, e) {
19057
19057
  let t = n.sliceString(e, e + 2);
19058
- return t.slice(0, Ht(ft(t, 0)));
19058
+ return t.slice(0, Ht(dt(t, 0)));
19059
19059
  }
19060
19060
  function _x(n, e) {
19061
19061
  let t = n.sliceString(e - 2, e);
19062
- return Ht(ft(t, 0)) == t.length ? t : t.slice(1);
19062
+ return Ht(dt(t, 0)) == t.length ? t : t.slice(1);
19063
19063
  }
19064
19064
  function bx(n, e, t, i) {
19065
19065
  let s = null, r = n.changeByRange((l) => {
@@ -19173,7 +19173,7 @@ function Vc(n, e, t) {
19173
19173
  function Sx(n = {}) {
19174
19174
  return [
19175
19175
  ex,
19176
- dt,
19176
+ Ot,
19177
19177
  Fe.of(n),
19178
19178
  KS,
19179
19179
  xx,
@@ -19284,9 +19284,9 @@ function $x(n, e) {
19284
19284
  return !!(n.effects.some((l) => l.is(nm)) || n.changes.touchesRange(r.from, Math.max(r.to, i)));
19285
19285
  }
19286
19286
  function wx(n, e) {
19287
- return n.field(wt, !1) ? e : e.concat(Se.appendConfig.of(Mx));
19287
+ return n.field(Pt, !1) ? e : e.concat(Se.appendConfig.of(Mx));
19288
19288
  }
19289
- const nm = /* @__PURE__ */ Se.define(), Au = /* @__PURE__ */ Se.define(), sm = /* @__PURE__ */ Se.define(), wt = /* @__PURE__ */ nt.define({
19289
+ const nm = /* @__PURE__ */ Se.define(), Au = /* @__PURE__ */ Se.define(), sm = /* @__PURE__ */ Se.define(), Pt = /* @__PURE__ */ nt.define({
19290
19290
  create() {
19291
19291
  return new Di(be.none, null, null);
19292
19292
  },
@@ -19313,7 +19313,7 @@ const nm = /* @__PURE__ */ Se.define(), Au = /* @__PURE__ */ Se.define(), sm = /
19313
19313
  ]
19314
19314
  }), Px = /* @__PURE__ */ be.mark({ class: "cm-lintRange cm-lintRange-active" });
19315
19315
  function kx(n, e, t) {
19316
- let { diagnostics: i } = n.state.field(wt), s, r = -1, l = -1;
19316
+ let { diagnostics: i } = n.state.field(Pt), s, r = -1, l = -1;
19317
19317
  i.between(e - (t < 0 ? 1 : 0), e + (t > 0 ? 1 : 0), (o, u, { spec: h }) => {
19318
19318
  if (e >= o && e <= u && (o == u || (e > o || t > 0) && (e < u || t < 0)))
19319
19319
  return s = h.diagnostics, r = o, l = u, !1;
@@ -19332,15 +19332,15 @@ function Tx(n, e) {
19332
19332
  return Ye("ul", { class: "cm-tooltip-lint" }, e.map((t) => lm(n, t, !1)));
19333
19333
  }
19334
19334
  const Cx = (n) => {
19335
- let e = n.state.field(wt, !1);
19335
+ let e = n.state.field(Pt, !1);
19336
19336
  (!e || !e.panel) && n.dispatch({ effects: wx(n.state, [Au.of(!0)]) });
19337
19337
  let t = au(n, vs.open);
19338
19338
  return t && t.dom.querySelector(".cm-panel-lint ul").focus(), !0;
19339
19339
  }, Yc = (n) => {
19340
- let e = n.state.field(wt, !1);
19340
+ let e = n.state.field(Pt, !1);
19341
19341
  return !e || !e.panel ? !1 : (n.dispatch({ effects: Au.of(!1) }), !0);
19342
19342
  }, Xx = (n) => {
19343
- let e = n.state.field(wt, !1);
19343
+ let e = n.state.field(Pt, !1);
19344
19344
  if (!e)
19345
19345
  return !1;
19346
19346
  let t = n.state.selection.main, i = Xi(e.diagnostics, null, t.to + 1);
@@ -19399,7 +19399,7 @@ function lm(n, e, t) {
19399
19399
  if (d.preventDefault(), a)
19400
19400
  return;
19401
19401
  a = !0;
19402
- let p = Xi(n.state.field(wt).diagnostics, e);
19402
+ let p = Xi(n.state.field(Pt).diagnostics, e);
19403
19403
  p && r.apply(n, p.from, p.to);
19404
19404
  }, { name: u } = r, h = s[l] ? u.indexOf(s[l]) : -1, c = h < 0 ? u : [
19405
19405
  u.slice(0, h),
@@ -19452,7 +19452,7 @@ class vs {
19452
19452
  let { diagnostic: r } = this.items[this.selectedIndex], l = rm(r.actions);
19453
19453
  for (let a = 0; a < l.length; a++)
19454
19454
  if (l[a].toUpperCase().charCodeAt(0) == s.keyCode) {
19455
- let o = Xi(this.view.state.field(wt).diagnostics, r);
19455
+ let o = Xi(this.view.state.field(Pt).diagnostics, r);
19456
19456
  o && r.actions[a].apply(e, o.from, o.to);
19457
19457
  }
19458
19458
  } else
@@ -19477,7 +19477,7 @@ class vs {
19477
19477
  }, "×")), this.update();
19478
19478
  }
19479
19479
  get selectedIndex() {
19480
- let e = this.view.state.field(wt).selected;
19480
+ let e = this.view.state.field(Pt).selected;
19481
19481
  if (!e)
19482
19482
  return -1;
19483
19483
  for (let t = 0; t < this.items.length; t++)
@@ -19486,7 +19486,7 @@ class vs {
19486
19486
  return -1;
19487
19487
  }
19488
19488
  update() {
19489
- let { diagnostics: e, selected: t } = this.view.state.field(wt), i = 0, s = !1, r = null, l = /* @__PURE__ */ new Set();
19489
+ let { diagnostics: e, selected: t } = this.view.state.field(Pt), i = 0, s = !1, r = null, l = /* @__PURE__ */ new Set();
19490
19490
  for (e.between(0, this.view.state.doc.length, (a, o, { spec: u }) => {
19491
19491
  for (let h of u.diagnostics) {
19492
19492
  if (l.has(h))
@@ -19535,7 +19535,7 @@ class vs {
19535
19535
  moveSelection(e) {
19536
19536
  if (this.selectedIndex < 0)
19537
19537
  return;
19538
- let t = this.view.state.field(wt), i = Xi(t.diagnostics, this.items[e].diagnostic);
19538
+ let t = this.view.state.field(Pt), i = Xi(t.diagnostics, this.items[e].diagnostic);
19539
19539
  i && this.view.dispatch({
19540
19540
  selection: { anchor: i.from, head: i.to },
19541
19541
  scrollIntoView: !0,
@@ -19661,9 +19661,9 @@ function Ex(n) {
19661
19661
  return e;
19662
19662
  }
19663
19663
  const am = /* @__PURE__ */ my(kx, { hideOn: $x }), Mx = [
19664
- wt,
19665
- /* @__PURE__ */ he.decorations.compute([wt], (n) => {
19666
- let { selected: e, panel: t } = n.field(wt);
19664
+ Pt,
19665
+ /* @__PURE__ */ he.decorations.compute([Pt], (n) => {
19666
+ let { selected: e, panel: t } = n.field(Pt);
19667
19667
  return !e || !t || e.from == e.to ? be.none : be.set([
19668
19668
  Px.range(e.from, e.to)
19669
19669
  ]);
@@ -20296,7 +20296,7 @@ class zx {
20296
20296
  return i;
20297
20297
  }
20298
20298
  }
20299
- class bn {
20299
+ class yn {
20300
20300
  constructor(e, t) {
20301
20301
  this.data = e, this.id = t;
20302
20302
  }
@@ -20305,7 +20305,7 @@ class bn {
20305
20305
  om(this.data, e, t, this.id, i.data, i.tokenPrecTable);
20306
20306
  }
20307
20307
  }
20308
- bn.prototype.contextual = bn.prototype.fallback = bn.prototype.extend = !1;
20308
+ yn.prototype.contextual = yn.prototype.fallback = yn.prototype.extend = !1;
20309
20309
  class il {
20310
20310
  constructor(e, t, i) {
20311
20311
  this.precTable = t, this.elseToken = i, this.data = typeof e == "string" ? Hn(e) : e;
@@ -20325,8 +20325,8 @@ class il {
20325
20325
  s && (e.reset(i, e.token), e.acceptToken(this.elseToken, s));
20326
20326
  }
20327
20327
  }
20328
- il.prototype.contextual = bn.prototype.fallback = bn.prototype.extend = !1;
20329
- class bt {
20328
+ il.prototype.contextual = yn.prototype.fallback = yn.prototype.extend = !1;
20329
+ class yt {
20330
20330
  /**
20331
20331
  Create a tokenizer. The first argument is the function that,
20332
20332
  given an input stream, scans for the types of tokens it
@@ -20380,7 +20380,7 @@ function Wx(n, e, t, i) {
20380
20380
  let s = zc(t, i, e);
20381
20381
  return s < 0 || zc(t, i, n) < s;
20382
20382
  }
20383
- const Qt = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
20383
+ const vt = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
20384
20384
  let la = null;
20385
20385
  function Wc(n, e, t) {
20386
20386
  let i = n.cursor(Ve.IncludeAnonymous);
@@ -20567,15 +20567,15 @@ class Ux {
20567
20567
  if (!i.length) {
20568
20568
  let l = s && Nx(s);
20569
20569
  if (l)
20570
- return Qt && console.log("Finish with " + this.stackID(l)), this.stackToTree(l);
20570
+ return vt && console.log("Finish with " + this.stackID(l)), this.stackToTree(l);
20571
20571
  if (this.parser.strict)
20572
- throw Qt && s && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + t);
20572
+ throw vt && s && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + t);
20573
20573
  this.recovering || (this.recovering = 5);
20574
20574
  }
20575
20575
  if (this.recovering && s) {
20576
20576
  let l = this.stoppedAt != null && s[0].pos > this.stoppedAt ? s[0] : this.runRecovery(s, r, i);
20577
20577
  if (l)
20578
- return Qt && console.log("Force-finish " + this.stackID(l)), this.stackToTree(l.forceAll());
20578
+ return vt && console.log("Force-finish " + this.stackID(l)), this.stackToTree(l.forceAll());
20579
20579
  }
20580
20580
  if (this.recovering) {
20581
20581
  let l = this.recovering == 1 ? 1 : this.recovering * 3;
@@ -20619,7 +20619,7 @@ class Ux {
20619
20619
  // given, stacks split off by ambiguous operations will be pushed to
20620
20620
  // `split`, or added to `stacks` if they move `pos` forward.
20621
20621
  advanceStack(e, t, i) {
20622
- let s = e.pos, { parser: r } = this, l = Qt ? this.stackID(e) + " -> " : "";
20622
+ let s = e.pos, { parser: r } = this, l = vt ? this.stackID(e) + " -> " : "";
20623
20623
  if (this.stoppedAt != null && s > this.stoppedAt)
20624
20624
  return e.forceReduce() ? e : null;
20625
20625
  if (this.fragments) {
@@ -20627,7 +20627,7 @@ class Ux {
20627
20627
  for (let c = this.fragments.nodeAt(s); c; ) {
20628
20628
  let f = this.parser.nodeSet.types[c.type.id] == c.type ? r.getGoto(e.state, c.type.id) : -1;
20629
20629
  if (f > -1 && c.length && (!u || (c.prop(we.contextHash) || 0) == h))
20630
- return e.useNode(c, f), Qt && console.log(l + this.stackID(e) + ` (via reuse of ${r.getName(c.type.id)})`), !0;
20630
+ return e.useNode(c, f), vt && console.log(l + this.stackID(e) + ` (via reuse of ${r.getName(c.type.id)})`), !0;
20631
20631
  if (!(c instanceof Le) || c.children.length == 0 || c.positions[0] > 0)
20632
20632
  break;
20633
20633
  let d = c.children[0];
@@ -20643,7 +20643,7 @@ class Ux {
20643
20643
  /* ParseState.DefaultReduce */
20644
20644
  );
20645
20645
  if (a > 0)
20646
- return e.reduce(a), Qt && console.log(l + this.stackID(e) + ` (via always-reduce ${r.getName(
20646
+ return e.reduce(a), vt && console.log(l + this.stackID(e) + ` (via always-reduce ${r.getName(
20647
20647
  a & 65535
20648
20648
  /* Action.ValueMask */
20649
20649
  )})`), !0;
@@ -20653,7 +20653,7 @@ class Ux {
20653
20653
  let o = this.tokens.getActions(e);
20654
20654
  for (let u = 0; u < o.length; ) {
20655
20655
  let h = o[u++], c = o[u++], f = o[u++], d = u == o.length || !i, p = d ? e : e.split(), Q = this.tokens.mainToken;
20656
- if (p.apply(h, c, Q ? Q.start : p.pos, f), Qt && console.log(l + this.stackID(p) + ` (via ${h & 65536 ? `reduce of ${r.getName(
20656
+ if (p.apply(h, c, Q ? Q.start : p.pos, f), vt && console.log(l + this.stackID(p) + ` (via ${h & 65536 ? `reduce of ${r.getName(
20657
20657
  h & 65535
20658
20658
  /* Action.ValueMask */
20659
20659
  )}` : "shift"} for ${r.getName(c)} @ ${s}${p == e ? "" : ", split"})`), d)
@@ -20677,15 +20677,15 @@ class Ux {
20677
20677
  runRecovery(e, t, i) {
20678
20678
  let s = null, r = !1;
20679
20679
  for (let l = 0; l < e.length; l++) {
20680
- let a = e[l], o = t[l << 1], u = t[(l << 1) + 1], h = Qt ? this.stackID(a) + " -> " : "";
20681
- if (a.deadEnd && (r || (r = !0, a.restart(), Qt && console.log(h + this.stackID(a) + " (restarted)"), this.advanceFully(a, i))))
20680
+ let a = e[l], o = t[l << 1], u = t[(l << 1) + 1], h = vt ? this.stackID(a) + " -> " : "";
20681
+ if (a.deadEnd && (r || (r = !0, a.restart(), vt && console.log(h + this.stackID(a) + " (restarted)"), this.advanceFully(a, i))))
20682
20682
  continue;
20683
20683
  let c = a.split(), f = h;
20684
- for (let d = 0; d < 10 && c.forceReduce() && (Qt && console.log(f + this.stackID(c) + " (via force-reduce)"), !this.advanceFully(c, i)); d++)
20685
- Qt && (f = this.stackID(c) + " -> ");
20684
+ for (let d = 0; d < 10 && c.forceReduce() && (vt && console.log(f + this.stackID(c) + " (via force-reduce)"), !this.advanceFully(c, i)); d++)
20685
+ vt && (f = this.stackID(c) + " -> ");
20686
20686
  for (let d of a.recoverByInsert(o))
20687
- Qt && console.log(h + this.stackID(d) + " (via recover-insert)"), this.advanceFully(d, i);
20688
- this.stream.end > a.pos ? (u == a.pos && (u++, o = 0), a.recoverByDelete(o, u), Qt && console.log(h + this.stackID(a) + ` (via recover-delete ${this.parser.getName(o)})`), Lc(a, i)) : (!s || s.score < c.score) && (s = c);
20687
+ vt && console.log(h + this.stackID(d) + " (via recover-insert)"), this.advanceFully(d, i);
20688
+ this.stream.end > a.pos ? (u == a.pos && (u++, o = 0), a.recoverByDelete(o, u), vt && console.log(h + this.stackID(a) + ` (via recover-delete ${this.parser.getName(o)})`), Lc(a, i)) : (!s || s.score < c.score) && (s = c);
20689
20689
  }
20690
20690
  return s;
20691
20691
  }
@@ -20779,7 +20779,7 @@ class Ri extends WO {
20779
20779
  this.context = e.context, this.specializerSpecs = e.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
20780
20780
  for (let a = 0; a < this.specializerSpecs.length; a++)
20781
20781
  this.specialized[a] = this.specializerSpecs[a].term;
20782
- this.specializers = this.specializerSpecs.map(jc), this.states = Hn(e.states, Uint32Array), this.data = Hn(e.stateData), this.goto = Hn(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((a) => typeof a == "number" ? new bn(l, a) : a), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
20782
+ this.specializers = this.specializerSpecs.map(jc), this.states = Hn(e.states, Uint32Array), this.data = Hn(e.stateData), this.goto = Hn(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((a) => typeof a == "number" ? new yn(l, a) : a), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
20783
20783
  }
20784
20784
  createParse(e, t, i) {
20785
20785
  let s = new Ux(this, e, t, i);
@@ -21036,15 +21036,15 @@ const Bx = 316, Gx = 317, Uc = 1, Fx = 2, Hx = 3, Kx = 4, Jx = 318, e$ = 320, t$
21036
21036
  return e == i$ || e == n$ || e == e$ ? n : e == t$;
21037
21037
  },
21038
21038
  strict: !1
21039
- }), p$ = new bt((n, e) => {
21039
+ }), p$ = new yt((n, e) => {
21040
21040
  let { next: t } = n;
21041
21041
  (t == hm || t == -1 || e.context) && n.acceptToken(Jx);
21042
- }, { contextual: !0, fallback: !0 }), m$ = new bt((n, e) => {
21042
+ }, { contextual: !0, fallback: !0 }), m$ = new yt((n, e) => {
21043
21043
  let { next: t } = n, i;
21044
21044
  Zo.indexOf(t) > -1 || t == Vo && ((i = n.peek(1)) == Vo || i == l$) || t != hm && t != r$ && t != -1 && !e.context && n.acceptToken(Bx);
21045
- }, { contextual: !0 }), g$ = new bt((n, e) => {
21045
+ }, { contextual: !0 }), g$ = new yt((n, e) => {
21046
21046
  n.next == d$ && !e.context && n.acceptToken(Gx);
21047
- }, { contextual: !0 }), _$ = new bt((n, e) => {
21047
+ }, { contextual: !0 }), _$ = new yt((n, e) => {
21048
21048
  let { next: t } = n;
21049
21049
  if (t == a$ || t == o$) {
21050
21050
  if (n.advance(), t == n.next) {
@@ -21058,7 +21058,7 @@ const Bx = 316, Gx = 317, Uc = 1, Fx = 2, Hx = 3, Kx = 4, Jx = 318, e$ = 320, t$
21058
21058
  function oa(n, e) {
21059
21059
  return n >= 65 && n <= 90 || n >= 97 && n <= 122 || n == 95 || n >= 192 || !e && n >= 48 && n <= 57;
21060
21060
  }
21061
- const b$ = new bt((n, e) => {
21061
+ const b$ = new yt((n, e) => {
21062
21062
  if (n.next != u$ || !e.dialectEnabled(s$) || (n.advance(), n.next == Vo))
21063
21063
  return;
21064
21064
  let t = 0;
@@ -21083,7 +21083,7 @@ const b$ = new bt((n, e) => {
21083
21083
  }
21084
21084
  }
21085
21085
  n.acceptToken(Kx, -t);
21086
- }), y$ = Xn({
21086
+ }), y$ = Rn({
21087
21087
  "get set async static": x.modifier,
21088
21088
  "for while do if else switch try catch finally return throw break continue default case defer": x.controlKeyword,
21089
21089
  "in of await yield void typeof delete instanceof as satisfies": x.operatorKeyword,
@@ -21406,7 +21406,7 @@ let gm = (n) => ({ label: n, type: "keyword" });
21406
21406
  const _m = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(gm), X$ = /* @__PURE__ */ _m.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(gm));
21407
21407
  function R$(n = {}) {
21408
21408
  let e = n.jsx ? n.typescript ? C$ : T$ : n.typescript ? k$ : fi, t = n.typescript ? x$.concat(X$) : fm.concat(_m);
21409
- return new Rn(e, [
21409
+ return new Zn(e, [
21410
21410
  fi.data.of({
21411
21411
  autocomplete: wu(pm, Pl(t))
21412
21412
  }),
@@ -21609,7 +21609,7 @@ const V$ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
21609
21609
  ]), I$ = [
21610
21610
  j$,
21611
21611
  /* @__PURE__ */ tp(U$)
21612
- ], N$ = Xn({
21612
+ ], N$ = Rn({
21613
21613
  null: x.null,
21614
21614
  instanceof: x.operatorKeyword,
21615
21615
  this: x.self,
@@ -21695,7 +21695,7 @@ const V$ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
21695
21695
  }
21696
21696
  });
21697
21697
  function H$() {
21698
- return new Rn(F$);
21698
+ return new Zn(F$);
21699
21699
  }
21700
21700
  const K$ = 135, ef = 1, J$ = 136, ew = 137, ym = 2, tw = 138, iw = 3, nw = 4, Qm = [
21701
21701
  9,
@@ -21754,18 +21754,18 @@ const Sm = (n, e, t) => (i, s) => {
21754
21754
  break;
21755
21755
  }
21756
21756
  }
21757
- }, Ow = new bt(
21757
+ }, Ow = new yt(
21758
21758
  Sm(J$, ym, ew),
21759
21759
  { contextual: !0 }
21760
- ), pw = new bt(
21760
+ ), pw = new yt(
21761
21761
  Sm(tw, iw, nw),
21762
21762
  { contextual: !0 }
21763
- ), mw = new bt((n) => {
21763
+ ), mw = new yt((n) => {
21764
21764
  if (Qm.includes(n.peek(-1))) {
21765
21765
  let { next: e } = n;
21766
21766
  (Ss(e) || e == vm || e == ow || e == aw || e == dw || e == lw || e == sw && Ss(n.peek(1)) || e == wr || e == hw) && n.acceptToken(K$);
21767
21767
  }
21768
- }), gw = new bt((n) => {
21768
+ }), gw = new yt((n) => {
21769
21769
  if (!Qm.includes(n.peek(-1))) {
21770
21770
  let { next: e } = n;
21771
21771
  if (e == uw && (n.advance(), n.acceptToken(ef)), Ss(e)) {
@@ -21775,7 +21775,7 @@ const Sm = (n, e, t) => (i, s) => {
21775
21775
  n.acceptToken(ef);
21776
21776
  }
21777
21777
  }
21778
- }), _w = Xn({
21778
+ }), _w = Rn({
21779
21779
  "AtKeyword import charset namespace keyframes media supports font-feature-values": x.definitionKeyword,
21780
21780
  "from to selector scope MatchFlag": x.keyword,
21781
21781
  NamespaceName: x.namespace,
@@ -22651,9 +22651,9 @@ const Xw = (n) => (e) => {
22651
22651
  }
22652
22652
  });
22653
22653
  function $m() {
22654
- return new Rn(nl, nl.data.of({ autocomplete: Rw }));
22654
+ return new Zn(nl, nl.data.of({ autocomplete: Rw }));
22655
22655
  }
22656
- const Zw = 36, lf = 1, Vw = 2, tn = 3, ma = 4, Aw = 5, Yw = 6, Ew = 7, Mw = 8, qw = 9, Dw = 10, zw = 11, Ww = 12, Lw = 13, jw = 14, Uw = 15, Iw = 16, Nw = 17, af = 18, Bw = 19, wm = 20, Pm = 21, of = 22, Gw = 23, Fw = 24;
22656
+ const Zw = 36, lf = 1, Vw = 2, nn = 3, ma = 4, Aw = 5, Yw = 6, Ew = 7, Mw = 8, qw = 9, Dw = 10, zw = 11, Ww = 12, Lw = 13, jw = 14, Uw = 15, Iw = 16, Nw = 17, af = 18, Bw = 19, wm = 20, Pm = 21, of = 22, Gw = 23, Fw = 24;
22657
22657
  function Yo(n) {
22658
22658
  return n >= 65 && n <= 90 || n >= 97 && n <= 122 || n >= 48 && n <= 57;
22659
22659
  }
@@ -22781,7 +22781,7 @@ function nP(n, e, t, i) {
22781
22781
  return e && (s.words = km(e, t || "", i)), s;
22782
22782
  }
22783
22783
  function Tm(n) {
22784
- return new bt((e) => {
22784
+ return new yt((e) => {
22785
22785
  var t;
22786
22786
  let { next: i } = e;
22787
22787
  if (e.advance(), Yi(i, ga)) {
@@ -22790,9 +22790,9 @@ function Tm(n) {
22790
22790
  e.acceptToken(Zw);
22791
22791
  } else if (i == 36 && n.doubleDollarQuotedStrings) {
22792
22792
  let s = Eo(e, "");
22793
- e.next == 36 && (e.advance(), Kw(e, s), e.acceptToken(tn));
22793
+ e.next == 36 && (e.advance(), Kw(e, s), e.acceptToken(nn));
22794
22794
  } else if (i == 39 || i == 34 && n.doubleQuotedStrings)
22795
- Mi(e, i, n.backslashEscapes), e.acceptToken(tn);
22795
+ Mi(e, i, n.backslashEscapes), e.acceptToken(nn);
22796
22796
  else if (i == 35 && n.hashComments || i == 47 && e.next == 47 && n.slashComments)
22797
22797
  cf(e), e.acceptToken(lf);
22798
22798
  else if (i == 45 && e.next == 45 && (!n.spaceAfterDashes || e.peek(1) == 32))
@@ -22811,13 +22811,13 @@ function Tm(n) {
22811
22811
  }
22812
22812
  e.acceptToken(Vw);
22813
22813
  } else if ((i == 101 || i == 69) && e.next == 39)
22814
- e.advance(), Mi(e, 39, !0), e.acceptToken(tn);
22814
+ e.advance(), Mi(e, 39, !0), e.acceptToken(nn);
22815
22815
  else if ((i == 110 || i == 78) && e.next == 39 && n.charSetCasts)
22816
- e.advance(), Mi(e, 39, n.backslashEscapes), e.acceptToken(tn);
22816
+ e.advance(), Mi(e, 39, n.backslashEscapes), e.acceptToken(nn);
22817
22817
  else if (i == 95 && n.charSetCasts)
22818
22818
  for (let s = 0; ; s++) {
22819
22819
  if (e.next == 39 && s > 1) {
22820
- e.advance(), Mi(e, 39, n.backslashEscapes), e.acceptToken(tn);
22820
+ e.advance(), Mi(e, 39, n.backslashEscapes), e.acceptToken(nn);
22821
22821
  break;
22822
22822
  }
22823
22823
  if (!Yo(e.next))
@@ -22826,7 +22826,7 @@ function Tm(n) {
22826
22826
  }
22827
22827
  else if (n.plsqlQuotingMechanism && (i == 113 || i == 81) && e.next == 39 && e.peek(1) > 0 && !Yi(e.peek(1), ga)) {
22828
22828
  let s = e.peek(1);
22829
- e.advance(2), Jw(e, s), e.acceptToken(tn);
22829
+ e.advance(2), Jw(e, s), e.acceptToken(nn);
22830
22830
  } else if (Yi(i, n.identifierQuotes)) {
22831
22831
  const s = i == 91 ? 93 : i;
22832
22832
  Mi(e, s, !1), e.acceptToken(Bw);
@@ -23060,7 +23060,7 @@ let pP = /* @__PURE__ */ sP.configure({
23060
23060
  return { from: n.from + 2, to: n.to - 2 };
23061
23061
  }
23062
23062
  }),
23063
- /* @__PURE__ */ Xn({
23063
+ /* @__PURE__ */ Rn({
23064
23064
  Keyword: x.keyword,
23065
23065
  Type: x.typeName,
23066
23066
  Builtin: /* @__PURE__ */ x.standard(x.name),
@@ -23133,7 +23133,7 @@ function bP(n) {
23133
23133
  }
23134
23134
  function yP(n = {}) {
23135
23135
  let e = n.dialect || Mu;
23136
- return new Rn(e.language, [
23136
+ return new Zn(e.language, [
23137
23137
  bP(n),
23138
23138
  e.language.data.of({
23139
23139
  autocomplete: gP(e, n.upperCaseKeywords, n.keywordCompletion)
@@ -23246,7 +23246,7 @@ const BP = [qu, Am, Rm, Zm, Vm], GP = new um({
23246
23246
  return s == qu || s == MP ? new Qf(zo(i, 1) || "", n) : n;
23247
23247
  },
23248
23248
  strict: !1
23249
- }), FP = new bt((n, e) => {
23249
+ }), FP = new yt((n, e) => {
23250
23250
  if (n.next != qm) {
23251
23251
  n.next < 0 && e.context && n.acceptToken(_a);
23252
23252
  return;
@@ -23282,7 +23282,7 @@ const BP = [qu, Am, Rm, Zm, Vm], GP = new um({
23282
23282
  return n.acceptToken(Am);
23283
23283
  s && gf[s] && gf[s][i] ? n.acceptToken(_a, -1) : n.acceptToken(qu);
23284
23284
  }
23285
- }, { contextual: !0 }), HP = new bt((n) => {
23285
+ }, { contextual: !0 }), HP = new yt((n) => {
23286
23286
  for (let e = 0, t = 0; ; t++) {
23287
23287
  if (n.next < 0) {
23288
23288
  t && n.acceptToken(mf);
@@ -23304,7 +23304,7 @@ function KP(n) {
23304
23304
  return !0;
23305
23305
  return !1;
23306
23306
  }
23307
- const JP = new bt((n, e) => {
23307
+ const JP = new yt((n, e) => {
23308
23308
  if (n.next == Du && n.peek(1) == ll) {
23309
23309
  let t = e.dialectEnabled(zP) || KP(e.context);
23310
23310
  n.acceptToken(t ? PP : pf, 2);
@@ -23313,7 +23313,7 @@ const JP = new bt((n, e) => {
23313
23313
  });
23314
23314
  function zu(n, e, t) {
23315
23315
  let i = 2 + n.length;
23316
- return new bt((s) => {
23316
+ return new yt((s) => {
23317
23317
  for (let r = 0, l = 0, a = 0; ; a++) {
23318
23318
  if (s.next < 0) {
23319
23319
  a && s.acceptToken(e);
@@ -23333,7 +23333,7 @@ function zu(n, e, t) {
23333
23333
  }
23334
23334
  });
23335
23335
  }
23336
- const ek = zu("script", QP, vP), tk = zu("style", SP, xP), ik = zu("textarea", $P, wP), nk = Xn({
23336
+ const ek = zu("script", QP, vP), tk = zu("style", SP, xP), ik = zu("textarea", $P, wP), nk = Rn({
23337
23337
  "Text RawText IncompleteTag IncompleteCloseTag": x.content,
23338
23338
  "StartTag StartCloseTag SelfClosingEndTag EndTag": x.angleBracket,
23339
23339
  TagName: x.tagName,
@@ -23659,7 +23659,7 @@ let Fm = (n) => ({ label: n, type: "keyword" });
23659
23659
  const Hm = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Fm), uk = /* @__PURE__ */ Hm.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(Fm));
23660
23660
  function hk(n = {}) {
23661
23661
  let e = n.jsx ? n.typescript ? Gm : Bm : n.typescript ? Nm : si, t = n.typescript ? rk.concat(uk) : Wm.concat(Hm);
23662
- return new Rn(e, [
23662
+ return new Zn(e, [
23663
23663
  si.data.of({
23664
23664
  autocomplete: wu(Um, Pl(t))
23665
23665
  }),
@@ -23711,7 +23711,7 @@ const fk = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
23711
23711
  r,
23712
23712
  l.update(a, { userEvent: "input.complete", scrollIntoView: !0 })
23713
23713
  ]), !0);
23714
- }), Un = ["_blank", "_self", "_top", "_parent"], ya = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Qa = ["get", "post", "put", "delete"], va = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], vt = ["true", "false"], me = {}, Ok = {
23714
+ }), Un = ["_blank", "_self", "_top", "_parent"], ya = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Qa = ["get", "post", "put", "delete"], va = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], St = ["true", "false"], me = {}, Ok = {
23715
23715
  a: {
23716
23716
  attrs: {
23717
23717
  href: null,
@@ -24072,7 +24072,7 @@ const fk = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
24072
24072
  }, Km = {
24073
24073
  accesskey: null,
24074
24074
  class: null,
24075
- contenteditable: vt,
24075
+ contenteditable: St,
24076
24076
  contextmenu: null,
24077
24077
  dir: ["ltr", "rtl", "auto"],
24078
24078
  draggable: ["true", "false", "auto"],
@@ -24086,9 +24086,9 @@ const fk = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
24086
24086
  itemscope: ["itemscope"],
24087
24087
  itemtype: null,
24088
24088
  lang: ["ar", "bn", "de", "en-GB", "en-US", "es", "fr", "hi", "id", "ja", "pa", "pt", "ru", "tr", "zh"],
24089
- spellcheck: vt,
24090
- autocorrect: vt,
24091
- autocapitalize: vt,
24089
+ spellcheck: St,
24090
+ autocorrect: St,
24091
+ autocapitalize: St,
24092
24092
  style: null,
24093
24093
  tabindex: null,
24094
24094
  title: null,
@@ -24096,32 +24096,32 @@ const fk = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
24096
24096
  rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"],
24097
24097
  role: /* @__PURE__ */ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
24098
24098
  "aria-activedescendant": null,
24099
- "aria-atomic": vt,
24099
+ "aria-atomic": St,
24100
24100
  "aria-autocomplete": ["inline", "list", "both", "none"],
24101
- "aria-busy": vt,
24101
+ "aria-busy": St,
24102
24102
  "aria-checked": ["true", "false", "mixed", "undefined"],
24103
24103
  "aria-controls": null,
24104
24104
  "aria-describedby": null,
24105
- "aria-disabled": vt,
24105
+ "aria-disabled": St,
24106
24106
  "aria-dropeffect": null,
24107
24107
  "aria-expanded": ["true", "false", "undefined"],
24108
24108
  "aria-flowto": null,
24109
24109
  "aria-grabbed": ["true", "false", "undefined"],
24110
- "aria-haspopup": vt,
24111
- "aria-hidden": vt,
24110
+ "aria-haspopup": St,
24111
+ "aria-hidden": St,
24112
24112
  "aria-invalid": ["true", "false", "grammar", "spelling"],
24113
24113
  "aria-label": null,
24114
24114
  "aria-labelledby": null,
24115
24115
  "aria-level": null,
24116
24116
  "aria-live": ["off", "polite", "assertive"],
24117
- "aria-multiline": vt,
24118
- "aria-multiselectable": vt,
24117
+ "aria-multiline": St,
24118
+ "aria-multiselectable": St,
24119
24119
  "aria-owns": null,
24120
24120
  "aria-posinset": null,
24121
24121
  "aria-pressed": ["true", "false", "mixed", "undefined"],
24122
- "aria-readonly": vt,
24122
+ "aria-readonly": St,
24123
24123
  "aria-relevant": null,
24124
- "aria-required": vt,
24124
+ "aria-required": St,
24125
24125
  "aria-selected": ["true", "false", "undefined"],
24126
24126
  "aria-setsize": null,
24127
24127
  "aria-sort": ["ascending", "descending", "none", "other"],
@@ -24138,13 +24138,13 @@ class al {
24138
24138
  }
24139
24139
  }
24140
24140
  al.default = /* @__PURE__ */ new al();
24141
- function Pn(n, e, t = n.length) {
24141
+ function kn(n, e, t = n.length) {
24142
24142
  if (!e)
24143
24143
  return "";
24144
24144
  let i = e.firstChild, s = i && i.getChild("TagName");
24145
24145
  return s ? n.sliceString(s.from, Math.min(s.to, t)) : "";
24146
24146
  }
24147
- function kn(n, e = !1) {
24147
+ function Tn(n, e = !1) {
24148
24148
  for (; n; n = n.parent)
24149
24149
  if (n.name == "Element")
24150
24150
  if (e)
@@ -24154,13 +24154,13 @@ function kn(n, e = !1) {
24154
24154
  return null;
24155
24155
  }
24156
24156
  function eg(n, e, t) {
24157
- let i = t.tags[Pn(n, kn(e))];
24157
+ let i = t.tags[kn(n, Tn(e))];
24158
24158
  return (i == null ? void 0 : i.children) || t.allTags;
24159
24159
  }
24160
24160
  function Wu(n, e) {
24161
24161
  let t = [];
24162
- for (let i = kn(e); i && !i.type.isTop; i = kn(i.parent)) {
24163
- let s = Pn(n, i);
24162
+ for (let i = Tn(e); i && !i.type.isTop; i = Tn(i.parent)) {
24163
+ let s = kn(n, i);
24164
24164
  if (s && i.lastChild.name == "CloseTag")
24165
24165
  break;
24166
24166
  s && t.indexOf(s) < 0 && (e.name == "EndTag" || e.from >= i.firstChild.to) && t.push(s);
@@ -24169,7 +24169,7 @@ function Wu(n, e) {
24169
24169
  }
24170
24170
  const tg = /^[:\-\.\w\u00b7-\uffff]*$/;
24171
24171
  function wf(n, e, t, i, s) {
24172
- let r = /\s*>/.test(n.sliceDoc(s, s + 5)) ? "" : ">", l = kn(t, t.name == "StartTag" || t.name == "TagName");
24172
+ let r = /\s*>/.test(n.sliceDoc(s, s + 5)) ? "" : ">", l = Tn(t, t.name == "StartTag" || t.name == "TagName");
24173
24173
  return {
24174
24174
  from: i,
24175
24175
  to: s,
@@ -24200,7 +24200,7 @@ function pk(n, e, t, i) {
24200
24200
  return { from: i, to: i, options: s, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ };
24201
24201
  }
24202
24202
  function mk(n, e, t, i, s) {
24203
- let r = kn(t), l = r ? e.tags[Pn(n.doc, r)] : null, a = l && l.attrs ? Object.keys(l.attrs) : [], o = l && l.globalAttrs === !1 ? a : a.length ? a.concat(e.globalAttrNames) : e.globalAttrNames;
24203
+ let r = Tn(t), l = r ? e.tags[kn(n.doc, r)] : null, a = l && l.attrs ? Object.keys(l.attrs) : [], o = l && l.globalAttrs === !1 ? a : a.length ? a.concat(e.globalAttrNames) : e.globalAttrNames;
24204
24204
  return {
24205
24205
  from: i,
24206
24206
  to: s,
@@ -24214,7 +24214,7 @@ function gk(n, e, t, i, s) {
24214
24214
  if (l) {
24215
24215
  let u = n.sliceDoc(l.from, l.to), h = e.globalAttrs[u];
24216
24216
  if (!h) {
24217
- let c = kn(t), f = c ? e.tags[Pn(n.doc, c)] : null;
24217
+ let c = Tn(t), f = c ? e.tags[kn(n.doc, c)] : null;
24218
24218
  h = (f == null ? void 0 : f.attrs) && f.attrs[u];
24219
24219
  }
24220
24220
  if (h) {
@@ -24330,7 +24330,7 @@ function Qk(n = {}) {
24330
24330
  let e = "", t;
24331
24331
  n.matchClosingTags === !1 && (e = "noMatch"), n.selfClosingTags === !0 && (e = (e ? e + " " : "") + "selfClosing"), (n.nestedLanguages && n.nestedLanguages.length || n.nestedAttributes && n.nestedAttributes.length) && (t = zm((n.nestedLanguages || []).concat(ig), (n.nestedAttributes || []).concat(ng)));
24332
24332
  let i = t ? sg.configure({ wrap: t, dialect: e }) : e ? Pr.configure({ dialect: e }) : Pr;
24333
- return new Rn(i, [
24333
+ return new Zn(i, [
24334
24334
  Pr.data.of({ autocomplete: bk(n) }),
24335
24335
  n.autoCloseTags !== !1 ? vk : [],
24336
24336
  hk().support,
@@ -24345,13 +24345,13 @@ const kf = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb
24345
24345
  let f = l.doc.sliceString(o.from - 1, o.to) == i, { head: d } = o, p = ze(l).resolveInner(d, -1), Q;
24346
24346
  if (f && i == ">" && p.name == "EndTag") {
24347
24347
  let m = p.parent;
24348
- if (((h = (u = m.parent) === null || u === void 0 ? void 0 : u.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (Q = Pn(l.doc, m.parent, d)) && !kf.has(Q)) {
24348
+ if (((h = (u = m.parent) === null || u === void 0 ? void 0 : u.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (Q = kn(l.doc, m.parent, d)) && !kf.has(Q)) {
24349
24349
  let g = d + (l.doc.sliceString(d, d + 1) === ">" ? 1 : 0), v = `</${Q}>`;
24350
24350
  return { range: o, changes: { from: d, to: g, insert: v } };
24351
24351
  }
24352
24352
  } else if (f && i == "/" && p.name == "IncompleteCloseTag") {
24353
24353
  let m = p.parent;
24354
- if (p.from == d - 2 && ((c = m.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (Q = Pn(l.doc, m, d)) && !kf.has(Q)) {
24354
+ if (p.from == d - 2 && ((c = m.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (Q = kn(l.doc, m, d)) && !kf.has(Q)) {
24355
24355
  let g = d + (l.doc.sliceString(d, d + 1) === ">" ? 1 : 0), v = `${Q}>`;
24356
24356
  return {
24357
24357
  range: I.cursor(d + v.length, -1),
@@ -24615,7 +24615,7 @@ function og() {
24615
24615
  }
24616
24616
  return t.prototype = new n(), Pa.Options = t, Pa;
24617
24617
  }
24618
- var nn = {}, ka = {}, Af;
24618
+ var sn = {}, ka = {}, Af;
24619
24619
  function Uu() {
24620
24620
  if (Af)
24621
24621
  return ka;
@@ -24896,7 +24896,7 @@ function ug() {
24896
24896
  var Wf;
24897
24897
  function cr() {
24898
24898
  if (Wf)
24899
- return nn;
24899
+ return sn;
24900
24900
  Wf = 1;
24901
24901
  var n = Uu().InputScanner, e = ol().Tokenizer, t = ol().TOKEN, i = Iu().Directives, s = ag(), r = Tl().Pattern, l = ug().TemplatablePattern;
24902
24902
  function a(w, P) {
@@ -25092,7 +25092,7 @@ function cr() {
25092
25092
  k += _.read(), S += k;
25093
25093
  }
25094
25094
  return S;
25095
- }, nn.Tokenizer = $, nn.TOKEN = o, nn.positionable_operators = d.slice(), nn.line_starters = m.slice(), nn;
25095
+ }, sn.Tokenizer = $, sn.TOKEN = o, sn.positionable_operators = d.slice(), sn.line_starters = m.slice(), sn;
25096
25096
  }
25097
25097
  var Lf;
25098
25098
  function wk() {
@@ -26494,7 +26494,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
26494
26494
  ], -1), Bk = /* @__PURE__ */ M("i", { class: "yhreport-icon report-text" }, null, -1), Gk = /* @__PURE__ */ M("i", { class: "yhreport-icon report-zitibeijingse" }, null, -1), Fk = /* @__PURE__ */ M("i", { class: "yhreport-icon report-zitijiacu" }, null, -1), Hk = /* @__PURE__ */ M("i", { class: "yhreport-icon report-border" }, null, -1), Kk = ["onClick"], Jk = /* @__PURE__ */ M("i", { class: "yhreport-icon report-align-left" }, null, -1), eT = /* @__PURE__ */ M("i", { class: "yhreport-icon report-align-center" }, null, -1), tT = /* @__PURE__ */ M("i", { class: "yhreport-icon report-align-right" }, null, -1), iT = /* @__PURE__ */ M("i", { class: "yhreport-icon report-horizontal-top" }, null, -1), nT = /* @__PURE__ */ M("i", { class: "yhreport-icon report-horizontal-center" }, null, -1), sT = /* @__PURE__ */ M("i", { class: "yhreport-icon report-horizontal-bottom" }, null, -1), rT = /* @__PURE__ */ M("br", null, null, -1), lT = /* @__PURE__ */ M("br", null, null, -1), aT = /* @__PURE__ */ M("span", { class: "tooltip-span" }, "字符串模板", -1), oT = { class: "data-operations-group" }, uT = /* @__PURE__ */ M("i", { class: "yhreport-icon report-text" }, null, -1), hT = /* @__PURE__ */ M("i", { class: "yhreport-icon report-number" }, null, -1), cT = /* @__PURE__ */ M("i", { class: "yhreport-icon report-currency" }, null, -1), fT = /* @__PURE__ */ M("i", { class: "yhreport-icon report-scientific-notation" }, null, -1), dT = /* @__PURE__ */ M("i", { class: "yhreport-icon report-datetime" }, null, -1), OT = { class: "statement-option-title" }, pT = /* @__PURE__ */ M("div", { class: "statement-option-title-context" }, "行设置", -1), mT = { class: "statement-option-title" }, gT = /* @__PURE__ */ M("div", { class: "statement-option-title-context" }, "激活列", -1), _T = /* @__PURE__ */ je({
26495
26495
  __name: "cellEditor",
26496
26496
  setup(n) {
26497
- const e = kt(), { active: t, activeIndex: i, activeCells: s, activeTable: r, activeTableIndex: l, activeTableMergeCells: a, isOneCell: o, activeCell: u, allTextCell: h, activeCols: c, activeRows: f, isOneRow: d, activeRow: p, isOneCol: Q, activeCol: m } = Pt(e), g = ye(() => l.value !== null && l.value > -1);
26497
+ const e = Tt(), { active: t, activeIndex: i, activeCells: s, activeTable: r, activeTableIndex: l, activeTableMergeCells: a, isOneCell: o, activeCell: u, allTextCell: h, activeCols: c, activeRows: f, isOneRow: d, activeRow: p, isOneCol: Q, activeCol: m } = kt(e), g = ye(() => l.value !== null && l.value > -1);
26498
26498
  function v() {
26499
26499
  if (!r.value) {
26500
26500
  Ui.error("没有活动的表格");
@@ -26697,7 +26697,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
26697
26697
  });
26698
26698
  if (o.value = K.filter((q) => q && q.col !== -1 && q.row !== -1 && q.rowSpan !== 0 && q.colSpan !== 0).length === 1, o.value) {
26699
26699
  let q = K[0];
26700
- q.isGroup || (q.isGroup = !1), q.isRowColCombine || (q.isRowColCombine = !1), q.isMergeSameCells || (q.isMergeSameCells = !1), q.linkedMergeCell || (q.linkedMergeCell = !1, q.linkedColIndex = void 0), u.value = q, c.value = [q.col], f.value = [q.row], p.value = r.value.rowConfig[q.row], m.value = r.value.colConfig[q.col], d.value = !0, Q.value = !0, u.value && u.value.type && (h.value = [de.TEXT, de.FIELD].includes(u.value.type)), Object.entries(Z).forEach(([B, j]) => {
26700
+ q.isGroup || (q.isGroup = !1), q.isRowColCombine || (q.isRowColCombine = !1), q.isMergeSameCells || (q.isMergeSameCells = !1), q.linkedMergeCell || (q.linkedMergeCell = !1, q.linkedColIndex = void 0), q.isMergeInLoop === void 0 && (q.isMergeInLoop = !0), u.value = q, c.value = [q.col], f.value = [q.row], p.value = r.value.rowConfig[q.row], m.value = r.value.colConfig[q.col], d.value = !0, Q.value = !0, u.value && u.value.type && (h.value = [de.TEXT, de.FIELD].includes(u.value.type)), Object.entries(Z).forEach(([B, j]) => {
26701
26701
  $[B] = j;
26702
26702
  }), $.colSize = m.value.size, $.colFixed = m.value.isFixed, $.colHidden = m.value.isHidden, $.rowSize = p.value.size, $.rowFixed = p.value.isFixed, $.rowHidden = p.value.isHidden, u.value && Object.entries(u.value).forEach(([B, j]) => {
26703
26703
  B === "formatType" ? ($.formatType || ($.formatType = {}), Object.entries(j).forEach(([z, pe]) => {
@@ -27091,7 +27091,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27091
27091
  ]),
27092
27092
  _: 1
27093
27093
  }, 8, ["color", "modelValue"]),
27094
- b(en, {
27094
+ b(tn, {
27095
27095
  title: "文字加粗",
27096
27096
  modelValue: $.fontWeight,
27097
27097
  "onUpdate:modelValue": C[6] || (C[6] = (R) => $.fontWeight = R),
@@ -27104,7 +27104,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27104
27104
  ]),
27105
27105
  _: 1
27106
27106
  }, 8, ["modelValue"]),
27107
- b(en, {
27107
+ b(tn, {
27108
27108
  title: "显示边框",
27109
27109
  modelValue: $.border,
27110
27110
  "onUpdate:modelValue": C[8] || (C[8] = (R) => $.border = R),
@@ -27177,7 +27177,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27177
27177
  ]),
27178
27178
  default: y(() => [
27179
27179
  M("i", {
27180
- class: gt(`yhreport-icon report-align-${$.textAlign || "left"}`)
27180
+ class: _t(`yhreport-icon report-align-${$.textAlign || "left"}`)
27181
27181
  }, null, 2)
27182
27182
  ]),
27183
27183
  _: 1
@@ -27208,7 +27208,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27208
27208
  ]),
27209
27209
  default: y(() => [
27210
27210
  M("i", {
27211
- class: gt(`yhreport-icon report-horizontal-${$.verticalAlign || "center"}`)
27211
+ class: _t(`yhreport-icon report-horizontal-${$.verticalAlign || "center"}`)
27212
27212
  }, null, 2)
27213
27213
  ]),
27214
27214
  _: 1
@@ -27217,7 +27217,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27217
27217
  _: 1
27218
27218
  }),
27219
27219
  O(o) && O(u) ? (A(), F(se, { key: 0 }, [
27220
- xt(b(q, { span: 24 }, {
27220
+ ft(b(q, { span: 24 }, {
27221
27221
  default: y(() => [
27222
27222
  $.format !== O(Ee).STRING ? (A(), ie(O($e), {
27223
27223
  key: 0,
@@ -27273,9 +27273,9 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27273
27273
  ]),
27274
27274
  _: 1
27275
27275
  }, 512), [
27276
- [Tt, O(u).type === O(de).FIELD]
27276
+ [$t, O(u).type === O(de).FIELD]
27277
27277
  ]),
27278
- xt(b(q, { span: 24 }, {
27278
+ ft(b(q, { span: 24 }, {
27279
27279
  default: y(() => [
27280
27280
  b(O($e), {
27281
27281
  label: "函数",
@@ -27293,14 +27293,14 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27293
27293
  ]),
27294
27294
  _: 1
27295
27295
  }, 512), [
27296
- [Tt, O(u).type === O(de).FUN]
27296
+ [$t, O(u).type === O(de).FUN]
27297
27297
  ]),
27298
- xt(b(q, { span: 24 }, {
27298
+ ft(b(q, { span: 24 }, {
27299
27299
  default: y(() => [
27300
27300
  b(O($e), { label: "数据操作" }, {
27301
27301
  default: y(() => [
27302
27302
  M("div", oT, [
27303
- xt(b(O(Yn), {
27303
+ ft(b(O(en), {
27304
27304
  modelValue: O(u).isGroup,
27305
27305
  "onUpdate:modelValue": C[23] || (C[23] = (R) => O(u).isGroup = R)
27306
27306
  }, {
@@ -27309,9 +27309,9 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27309
27309
  ]),
27310
27310
  _: 1
27311
27311
  }, 8, ["modelValue"]), [
27312
- [Tt, [O(de).FIELD].includes(O(u).type)]
27312
+ [$t, [O(de).FIELD].includes(O(u).type)]
27313
27313
  ]),
27314
- xt(b(O(Yn), {
27314
+ ft(b(O(en), {
27315
27315
  modelValue: O(u).isRowColCombine,
27316
27316
  "onUpdate:modelValue": C[24] || (C[24] = (R) => O(u).isRowColCombine = R)
27317
27317
  }, {
@@ -27320,9 +27320,9 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27320
27320
  ]),
27321
27321
  _: 1
27322
27322
  }, 8, ["modelValue"]), [
27323
- [Tt, [O(de).FIELD].includes(O(u).type)]
27323
+ [$t, [O(de).FIELD].includes(O(u).type)]
27324
27324
  ]),
27325
- xt(b(O(Yn), {
27325
+ ft(b(O(en), {
27326
27326
  modelValue: O(u).isGroupColumnLoop,
27327
27327
  "onUpdate:modelValue": C[25] || (C[25] = (R) => O(u).isGroupColumnLoop = R)
27328
27328
  }, {
@@ -27331,9 +27331,9 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27331
27331
  ]),
27332
27332
  _: 1
27333
27333
  }, 8, ["modelValue"]), [
27334
- [Tt, [O(de).FIELD].includes(O(u).type)]
27334
+ [$t, [O(de).FIELD].includes(O(u).type)]
27335
27335
  ]),
27336
- b(O(Yn), {
27336
+ b(O(en), {
27337
27337
  modelValue: O(u).isMergeSameCells,
27338
27338
  "onUpdate:modelValue": C[26] || (C[26] = (R) => O(u).isMergeSameCells = R)
27339
27339
  }, {
@@ -27342,7 +27342,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27342
27342
  ]),
27343
27343
  _: 1
27344
27344
  }, 8, ["modelValue"]),
27345
- b(O(Yn), {
27345
+ b(O(en), {
27346
27346
  modelValue: O(u).linkedMergeCell,
27347
27347
  "onUpdate:modelValue": C[27] || (C[27] = (R) => O(u).linkedMergeCell = R)
27348
27348
  }, {
@@ -27350,7 +27350,18 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27350
27350
  E("联动列合并")
27351
27351
  ]),
27352
27352
  _: 1
27353
- }, 8, ["modelValue"])
27353
+ }, 8, ["modelValue"]),
27354
+ ft(b(O(en), {
27355
+ modelValue: O(u).isMergeInLoop,
27356
+ "onUpdate:modelValue": C[28] || (C[28] = (R) => O(u).isMergeInLoop = R)
27357
+ }, {
27358
+ default: y(() => [
27359
+ E(" 循环合并 ")
27360
+ ]),
27361
+ _: 1
27362
+ }, 8, ["modelValue"]), [
27363
+ [$t, [O(de).TEXT].includes(O(u).type)]
27364
+ ])
27354
27365
  ])
27355
27366
  ]),
27356
27367
  _: 1
@@ -27364,7 +27375,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27364
27375
  default: y(() => [
27365
27376
  b(z, {
27366
27377
  modelValue: O(u).groupColumnLoopHeaderRow,
27367
- "onUpdate:modelValue": C[28] || (C[28] = (R) => O(u).groupColumnLoopHeaderRow = R),
27378
+ "onUpdate:modelValue": C[29] || (C[29] = (R) => O(u).groupColumnLoopHeaderRow = R),
27368
27379
  clearable: "",
27369
27380
  placeholder: "表头行",
27370
27381
  style: { width: "200px" }
@@ -27393,7 +27404,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27393
27404
  default: y(() => [
27394
27405
  b(z, {
27395
27406
  modelValue: O(u).loopGroupRowIndex,
27396
- "onUpdate:modelValue": C[29] || (C[29] = (R) => O(u).loopGroupRowIndex = R),
27407
+ "onUpdate:modelValue": C[30] || (C[30] = (R) => O(u).loopGroupRowIndex = R),
27397
27408
  clearable: "",
27398
27409
  placeholder: "请选择关联行"
27399
27410
  }, {
@@ -27421,7 +27432,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27421
27432
  default: y(() => [
27422
27433
  b(z, {
27423
27434
  modelValue: O(u).linkedColIndex,
27424
- "onUpdate:modelValue": C[30] || (C[30] = (R) => O(u).linkedColIndex = R),
27435
+ "onUpdate:modelValue": C[31] || (C[31] = (R) => O(u).linkedColIndex = R),
27425
27436
  clearable: "",
27426
27437
  placeholder: "请选择关联合并列"
27427
27438
  }, {
@@ -27449,7 +27460,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27449
27460
  default: y(() => [
27450
27461
  b(z, {
27451
27462
  modelValue: O(u).mergedValueAggregation,
27452
- "onUpdate:modelValue": C[31] || (C[31] = (R) => O(u).mergedValueAggregation = R),
27463
+ "onUpdate:modelValue": C[32] || (C[32] = (R) => O(u).mergedValueAggregation = R),
27453
27464
  clearable: "",
27454
27465
  placeholder: "请选择处理方式"
27455
27466
  }, {
@@ -27490,7 +27501,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27490
27501
  ]),
27491
27502
  _: 1
27492
27503
  }, 512), [
27493
- [Tt, [O(de).FIELD, O(de).FUN].includes(O(u).type) && (O(p) && !O(p).isLoopGroupComputed && O(p).loop || O(m) && !((te = O(m)) != null && te.isLoopGroupComputed) && O(m).loop)]
27504
+ [$t, [O(de).FIELD, O(de).FUN, O(de).TEXT].includes(O(u).type) && (O(p) && !O(p).isLoopGroupComputed && O(p).loop || O(m) && !((te = O(m)) != null && te.isLoopGroupComputed) && O(m).loop)]
27494
27505
  ])
27495
27506
  ], 64)) : re("", !0),
27496
27507
  b(q, { span: 24 }, {
@@ -27499,8 +27510,8 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27499
27510
  default: y(() => [
27500
27511
  b(O(As), {
27501
27512
  modelValue: $.format,
27502
- "onUpdate:modelValue": C[32] || (C[32] = (R) => $.format = R),
27503
- onChange: C[33] || (C[33] = (R) => N(R, "cell", "format"))
27513
+ "onUpdate:modelValue": C[33] || (C[33] = (R) => $.format = R),
27514
+ onChange: C[34] || (C[34] = (R) => N(R, "cell", "format"))
27504
27515
  }, {
27505
27516
  default: y(() => [
27506
27517
  b(O(st), {
@@ -27576,14 +27587,14 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27576
27587
  _: 1
27577
27588
  }),
27578
27589
  $.formatType ? (A(), F(se, { key: 1 }, [
27579
- xt(b(q, { span: 12 }, {
27590
+ ft(b(q, { span: 12 }, {
27580
27591
  default: y(() => [
27581
27592
  b(O($e), { label: "小数位数" }, {
27582
27593
  default: y(() => [
27583
27594
  b(B, {
27584
27595
  modelValue: $.formatType.numberDecimal,
27585
- "onUpdate:modelValue": C[34] || (C[34] = (R) => $.formatType.numberDecimal = R),
27586
- onInput: C[35] || (C[35] = (R) => N(R, "cell", "formatType.numberDecimal")),
27596
+ "onUpdate:modelValue": C[35] || (C[35] = (R) => $.formatType.numberDecimal = R),
27597
+ onInput: C[36] || (C[36] = (R) => N(R, "cell", "formatType.numberDecimal")),
27587
27598
  min: 0,
27588
27599
  max: 6,
27589
27600
  "controls-position": "right"
@@ -27594,16 +27605,16 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27594
27605
  ]),
27595
27606
  _: 1
27596
27607
  }, 512), [
27597
- [Tt, $.format && [O(Ee).NUMBER, O(Ee).CURRENCY, O(Ee).PERCENT, O(Ee).PROMILLE].includes($.format)]
27608
+ [$t, $.format && [O(Ee).NUMBER, O(Ee).CURRENCY, O(Ee).PERCENT, O(Ee).PROMILLE].includes($.format)]
27598
27609
  ]),
27599
- xt(b(q, { span: 12 }, {
27610
+ ft(b(q, { span: 12 }, {
27600
27611
  default: y(() => [
27601
27612
  b(O($e), { label: "千分位分隔" }, {
27602
27613
  default: y(() => [
27603
27614
  b(O(Jn), {
27604
27615
  modelValue: $.formatType.numberUseGrouping,
27605
- "onUpdate:modelValue": C[36] || (C[36] = (R) => $.formatType.numberUseGrouping = R),
27606
- onChange: C[37] || (C[37] = (R) => N(R, "cell", "formatType.numberUseGrouping"))
27616
+ "onUpdate:modelValue": C[37] || (C[37] = (R) => $.formatType.numberUseGrouping = R),
27617
+ onChange: C[38] || (C[38] = (R) => N(R, "cell", "formatType.numberUseGrouping"))
27607
27618
  }, null, 8, ["modelValue"])
27608
27619
  ]),
27609
27620
  _: 1
@@ -27611,16 +27622,16 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27611
27622
  ]),
27612
27623
  _: 1
27613
27624
  }, 512), [
27614
- [Tt, $.format && [O(Ee).NUMBER, O(Ee).CURRENCY].includes($.format)]
27625
+ [$t, $.format && [O(Ee).NUMBER, O(Ee).CURRENCY].includes($.format)]
27615
27626
  ]),
27616
- xt(b(q, { span: 24 }, {
27627
+ ft(b(q, { span: 24 }, {
27617
27628
  default: y(() => [
27618
27629
  b(O($e), { label: "货币符号" }, {
27619
27630
  default: y(() => [
27620
27631
  b(O(As), {
27621
27632
  modelValue: $.formatType.currencySymbol,
27622
- "onUpdate:modelValue": C[38] || (C[38] = (R) => $.formatType.currencySymbol = R),
27623
- onChange: C[39] || (C[39] = (R) => N(R, "cell", "formatType.currencySymbol"))
27633
+ "onUpdate:modelValue": C[39] || (C[39] = (R) => $.formatType.currencySymbol = R),
27634
+ onChange: C[40] || (C[40] = (R) => N(R, "cell", "formatType.currencySymbol"))
27624
27635
  }, {
27625
27636
  default: y(() => [
27626
27637
  b(O(st), { value: "¥" }, {
@@ -27656,7 +27667,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27656
27667
  ]),
27657
27668
  _: 1
27658
27669
  }, 512), [
27659
- [Tt, $.format === "currency"]
27670
+ [$t, $.format === "currency"]
27660
27671
  ]),
27661
27672
  $.format === O(Ee).SCIENTIFIC ? (A(), F(se, { key: 0 }, [
27662
27673
  b(q, { span: 24 }, {
@@ -27665,8 +27676,8 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27665
27676
  default: y(() => [
27666
27677
  b(O(As), {
27667
27678
  modelValue: $.formatType.scientificNotation,
27668
- "onUpdate:modelValue": C[40] || (C[40] = (R) => $.formatType.scientificNotation = R),
27669
- onChange: C[41] || (C[41] = (R) => N(R, "cell", "formatType.scientificNotation"))
27679
+ "onUpdate:modelValue": C[41] || (C[41] = (R) => $.formatType.scientificNotation = R),
27680
+ onChange: C[42] || (C[42] = (R) => N(R, "cell", "formatType.scientificNotation"))
27670
27681
  }, {
27671
27682
  default: y(() => [
27672
27683
  b(O(st), { label: "E" }, {
@@ -27699,8 +27710,8 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27699
27710
  max: 20,
27700
27711
  "controls-position": "right",
27701
27712
  modelValue: $.formatType.digits,
27702
- "onUpdate:modelValue": C[42] || (C[42] = (R) => $.formatType.digits = R),
27703
- onChange: C[43] || (C[43] = (R) => N(R, "cell", "formatType.digits"))
27713
+ "onUpdate:modelValue": C[43] || (C[43] = (R) => $.formatType.digits = R),
27714
+ onChange: C[44] || (C[44] = (R) => N(R, "cell", "formatType.digits"))
27704
27715
  }, null, 8, ["modelValue"])
27705
27716
  ]),
27706
27717
  _: 1
@@ -27709,15 +27720,15 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27709
27720
  _: 1
27710
27721
  })
27711
27722
  ], 64)) : re("", !0),
27712
- xt(b(q, { span: 24 }, {
27723
+ ft(b(q, { span: 24 }, {
27713
27724
  default: y(() => [
27714
27725
  b(O($e), { label: "日期格式" }, {
27715
27726
  default: y(() => [
27716
27727
  b(z, {
27717
27728
  filterable: "",
27718
27729
  modelValue: $.formatType.date,
27719
- "onUpdate:modelValue": C[44] || (C[44] = (R) => $.formatType.date = R),
27720
- onChange: C[45] || (C[45] = (R) => N(R, "cell", "formatType.date"))
27730
+ "onUpdate:modelValue": C[45] || (C[45] = (R) => $.formatType.date = R),
27731
+ onChange: C[46] || (C[46] = (R) => N(R, "cell", "formatType.date"))
27721
27732
  }, {
27722
27733
  default: y(() => [
27723
27734
  b(j, { value: "YYYY-MM-DD HH:mm:ss" }),
@@ -27742,7 +27753,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27742
27753
  ]),
27743
27754
  _: 1
27744
27755
  }, 512), [
27745
- [Tt, $.format === O(Ee).DATETIME]
27756
+ [$t, $.format === O(Ee).DATETIME]
27746
27757
  ]),
27747
27758
  b(q, { span: 24 }, {
27748
27759
  default: y(() => [
@@ -27750,8 +27761,8 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27750
27761
  default: y(() => [
27751
27762
  b(O(Gt), {
27752
27763
  modelValue: $.formatType.defaultCellContent,
27753
- "onUpdate:modelValue": C[46] || (C[46] = (R) => $.formatType.defaultCellContent = R),
27754
- onChange: C[47] || (C[47] = (R) => N(R, "cell", "formatType.defaultCellContent")),
27764
+ "onUpdate:modelValue": C[47] || (C[47] = (R) => $.formatType.defaultCellContent = R),
27765
+ onChange: C[48] || (C[48] = (R) => N(R, "cell", "formatType.defaultCellContent")),
27755
27766
  placeholder: "数据为空,数字为0时,应该填充的内容"
27756
27767
  }, null, 8, ["modelValue"])
27757
27768
  ]),
@@ -27770,7 +27781,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27770
27781
  default: y(() => [
27771
27782
  b(Ik, {
27772
27783
  modelValue: O(u).customRender,
27773
- "onUpdate:modelValue": C[48] || (C[48] = (R) => O(u).customRender = R),
27784
+ "onUpdate:modelValue": C[49] || (C[49] = (R) => O(u).customRender = R),
27774
27785
  "pre-code": "function (cell,style,data){",
27775
27786
  "next-code": "\\n return cell\\n}"
27776
27787
  }, null, 8, ["modelValue"])
@@ -27826,11 +27837,11 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27826
27837
  b(B, {
27827
27838
  "controls-position": "right",
27828
27839
  modelValue: $.rowSize,
27829
- "onUpdate:modelValue": C[49] || (C[49] = (R) => $.rowSize = R),
27830
- onChange: C[50] || (C[50] = (R) => N(R, "row", "size"))
27840
+ "onUpdate:modelValue": C[50] || (C[50] = (R) => $.rowSize = R),
27841
+ onChange: C[51] || (C[51] = (R) => N(R, "row", "size"))
27831
27842
  }, null, 8, ["modelValue"]),
27832
27843
  b(O(Ce), {
27833
- onClick: C[51] || (C[51] = (R) => N(25, "row", "size"))
27844
+ onClick: C[52] || (C[52] = (R) => N(25, "row", "size"))
27834
27845
  }, {
27835
27846
  default: y(() => [
27836
27847
  E("重置")
@@ -27855,26 +27866,26 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27855
27866
  default: y(() => [
27856
27867
  b(K, { class: "report-font-style-button-group" }, {
27857
27868
  default: y(() => [
27858
- b(en, {
27869
+ b(tn, {
27859
27870
  title: "固定行",
27860
27871
  modelValue: $.rowFixed,
27861
- "onUpdate:modelValue": C[52] || (C[52] = (R) => $.rowFixed = R),
27872
+ "onUpdate:modelValue": C[53] || (C[53] = (R) => $.rowFixed = R),
27862
27873
  "active-value": !0,
27863
27874
  "inactive-value": !1,
27864
- onChange: C[53] || (C[53] = (R) => N(R, "row", "isFixed"))
27875
+ onChange: C[54] || (C[54] = (R) => N(R, "row", "isFixed"))
27865
27876
  }, {
27866
27877
  default: y(() => [
27867
27878
  E(" 悬浮 ")
27868
27879
  ]),
27869
27880
  _: 1
27870
27881
  }, 8, ["modelValue"]),
27871
- b(en, {
27882
+ b(tn, {
27872
27883
  title: "隐藏行",
27873
27884
  modelValue: $.rowHidden,
27874
- "onUpdate:modelValue": C[54] || (C[54] = (R) => $.rowHidden = R),
27885
+ "onUpdate:modelValue": C[55] || (C[55] = (R) => $.rowHidden = R),
27875
27886
  "active-value": !0,
27876
27887
  "inactive-value": !1,
27877
- onChange: C[55] || (C[55] = (R) => N(R, "row", "isHidden"))
27888
+ onChange: C[56] || (C[56] = (R) => N(R, "row", "isHidden"))
27878
27889
  }, {
27879
27890
  default: y(() => [
27880
27891
  E(" 隐藏 ")
@@ -27897,8 +27908,8 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27897
27908
  default: y(() => [
27898
27909
  b(z, {
27899
27910
  modelValue: O(p).data,
27900
- "onUpdate:modelValue": C[56] || (C[56] = (R) => O(p).data = R),
27901
- onChange: C[57] || (C[57] = (R) => N(R, "row", "data")),
27911
+ "onUpdate:modelValue": C[57] || (C[57] = (R) => O(p).data = R),
27912
+ onChange: C[58] || (C[58] = (R) => N(R, "row", "data")),
27902
27913
  clearable: "",
27903
27914
  filterable: ""
27904
27915
  }, {
@@ -27923,8 +27934,8 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27923
27934
  default: y(() => [
27924
27935
  b(O(Jn), {
27925
27936
  modelValue: O(p).loop,
27926
- "onUpdate:modelValue": C[58] || (C[58] = (R) => O(p).loop = R),
27927
- onChange: C[59] || (C[59] = (R) => N(R, "row", "loop"))
27937
+ "onUpdate:modelValue": C[59] || (C[59] = (R) => O(p).loop = R),
27938
+ onChange: C[60] || (C[60] = (R) => N(R, "row", "loop"))
27928
27939
  }, null, 8, ["modelValue"])
27929
27940
  ]),
27930
27941
  _: 1
@@ -27942,8 +27953,8 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27942
27953
  b(B, {
27943
27954
  min: 0,
27944
27955
  modelValue: O(p).dataIndex,
27945
- "onUpdate:modelValue": C[60] || (C[60] = (R) => O(p).dataIndex = R),
27946
- onInput: C[61] || (C[61] = (R) => N(R, "row", "dataIndex"))
27956
+ "onUpdate:modelValue": C[61] || (C[61] = (R) => O(p).dataIndex = R),
27957
+ onInput: C[62] || (C[62] = (R) => N(R, "row", "dataIndex"))
27947
27958
  }, null, 8, ["modelValue"])
27948
27959
  ]),
27949
27960
  _: 1
@@ -27997,10 +28008,10 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
27997
28008
  b(B, {
27998
28009
  "controls-position": "right",
27999
28010
  modelValue: $.colSize,
28000
- "onUpdate:modelValue": C[62] || (C[62] = (R) => $.colSize = R)
28011
+ "onUpdate:modelValue": C[63] || (C[63] = (R) => $.colSize = R)
28001
28012
  }, null, 8, ["modelValue"]),
28002
28013
  b(O(Ce), {
28003
- onClick: C[63] || (C[63] = (R) => $.colSize = 80)
28014
+ onClick: C[64] || (C[64] = (R) => $.colSize = 80)
28004
28015
  }, {
28005
28016
  default: y(() => [
28006
28017
  E("重置")
@@ -28022,26 +28033,26 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
28022
28033
  default: y(() => [
28023
28034
  b(K, { class: "report-font-style-button-group" }, {
28024
28035
  default: y(() => [
28025
- b(en, {
28036
+ b(tn, {
28026
28037
  title: "固定列",
28027
28038
  modelValue: $.colFixed,
28028
- "onUpdate:modelValue": C[64] || (C[64] = (R) => $.colFixed = R),
28039
+ "onUpdate:modelValue": C[65] || (C[65] = (R) => $.colFixed = R),
28029
28040
  "active-value": !0,
28030
28041
  "inactive-value": !1,
28031
- onChange: C[65] || (C[65] = (R) => N(R, "col", "isFixed"))
28042
+ onChange: C[66] || (C[66] = (R) => N(R, "col", "isFixed"))
28032
28043
  }, {
28033
28044
  default: y(() => [
28034
28045
  E(" 悬浮 ")
28035
28046
  ]),
28036
28047
  _: 1
28037
28048
  }, 8, ["modelValue"]),
28038
- b(en, {
28049
+ b(tn, {
28039
28050
  title: "隐藏列",
28040
28051
  "active-value": !0,
28041
28052
  "inactive-value": !1,
28042
28053
  modelValue: $.colHidden,
28043
- "onUpdate:modelValue": C[66] || (C[66] = (R) => $.colHidden = R),
28044
- onChange: C[67] || (C[67] = (R) => N(R, "col", "isHidden"))
28054
+ "onUpdate:modelValue": C[67] || (C[67] = (R) => $.colHidden = R),
28055
+ onChange: C[68] || (C[68] = (R) => N(R, "col", "isHidden"))
28045
28056
  }, {
28046
28057
  default: y(() => [
28047
28058
  E(" 隐藏 ")
@@ -28064,8 +28075,8 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
28064
28075
  default: y(() => [
28065
28076
  b(z, {
28066
28077
  modelValue: O(m).data,
28067
- "onUpdate:modelValue": C[68] || (C[68] = (R) => O(m).data = R),
28068
- onChange: C[69] || (C[69] = (R) => N(R, "col", "data")),
28078
+ "onUpdate:modelValue": C[69] || (C[69] = (R) => O(m).data = R),
28079
+ onChange: C[70] || (C[70] = (R) => N(R, "col", "data")),
28069
28080
  clearable: ""
28070
28081
  }, {
28071
28082
  default: y(() => [
@@ -28089,8 +28100,8 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
28089
28100
  default: y(() => [
28090
28101
  b(O(Jn), {
28091
28102
  modelValue: O(m).loop,
28092
- "onUpdate:modelValue": C[70] || (C[70] = (R) => O(m).loop = R),
28093
- onChange: C[71] || (C[71] = (R) => N(R, "col", "loop"))
28103
+ "onUpdate:modelValue": C[71] || (C[71] = (R) => O(m).loop = R),
28104
+ onChange: C[72] || (C[72] = (R) => N(R, "col", "loop"))
28094
28105
  }, null, 8, ["modelValue"])
28095
28106
  ]),
28096
28107
  _: 1
@@ -28108,8 +28119,8 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
28108
28119
  b(B, {
28109
28120
  min: 0,
28110
28121
  modelValue: O(m).dataIndex,
28111
- "onUpdate:modelValue": C[72] || (C[72] = (R) => O(m).dataIndex = R),
28112
- onInput: C[73] || (C[73] = (R) => N(R, "col", "dataIndex"))
28122
+ "onUpdate:modelValue": C[73] || (C[73] = (R) => O(m).dataIndex = R),
28123
+ onInput: C[74] || (C[74] = (R) => N(R, "col", "dataIndex"))
28113
28124
  }, null, 8, ["modelValue"])
28114
28125
  ]),
28115
28126
  _: 1
@@ -28125,7 +28136,7 @@ const Ik = /* @__PURE__ */ hl(Uk, [["__scopeId", "data-v-8160685c"]]), Nk = /* @
28125
28136
  }), bT = /* @__PURE__ */ je({
28126
28137
  __name: "reportOption",
28127
28138
  setup(n) {
28128
- const e = kt(), { active: t, detail: i } = Pt(e), s = ye(() => i.value.options.length === 1);
28139
+ const e = Tt(), { active: t, detail: i } = kt(e), s = ye(() => i.value.options.length === 1);
28129
28140
  function r(l, a, o = "string") {
28130
28141
  if (t.value)
28131
28142
  switch (a) {
@@ -28443,7 +28454,7 @@ const QT = function(n, e) {
28443
28454
  ], -1), PT = /* @__PURE__ */ je({
28444
28455
  __name: "chartOption",
28445
28456
  setup(n) {
28446
- const e = kt(), { active: t, detail: i } = Pt(e), s = ye(() => t.value ? cd.includes(t.value.type) : !1);
28457
+ const e = Tt(), { active: t, detail: i } = kt(e), s = ye(() => t.value ? cd.includes(t.value.type) : !1);
28447
28458
  ye(() => {
28448
28459
  var d;
28449
28460
  return ((d = t.value) == null ? void 0 : d.data.source) || [];
@@ -29072,7 +29083,7 @@ const kT = /* @__PURE__ */ je({
29072
29083
  }), TT = { class: "statement-option-title" }, CT = /* @__PURE__ */ M("div", { class: "statement-option-title-context" }, "数据", -1), XT = /* @__PURE__ */ je({
29073
29084
  __name: "labelOption",
29074
29085
  setup(n) {
29075
- const e = kt(), { active: t, detail: i } = Pt(e);
29086
+ const e = Tt(), { active: t, detail: i } = kt(e);
29076
29087
  let s = ye({
29077
29088
  get() {
29078
29089
  return t.value ? t.value : {};
@@ -29424,7 +29435,7 @@ const kT = /* @__PURE__ */ je({
29424
29435
  const RT = /* @__PURE__ */ je({
29425
29436
  __name: "options",
29426
29437
  setup(n) {
29427
- const e = kt(), { active: t } = Pt(e), i = ge("cell");
29438
+ const e = Tt(), { active: t } = kt(e), i = ge("cell");
29428
29439
  return xi(
29429
29440
  () => t.value,
29430
29441
  (s) => {
@@ -29511,7 +29522,7 @@ const RT = /* @__PURE__ */ je({
29511
29522
  };
29512
29523
  }
29513
29524
  });
29514
- const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
29525
+ const xt = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
29515
29526
  class: "statement-option-title",
29516
29527
  style: { top: "0" }
29517
29528
  }, DT = /* @__PURE__ */ M("div", { class: "statement-option-title-context" }, "数据源", -1), zT = {
@@ -29535,7 +29546,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
29535
29546
  }, oC = /* @__PURE__ */ M("h2", null, "添加数据源字段", -1), uC = /* @__PURE__ */ M("div", { class: "title-context" }, "数据源设置", -1), hC = /* @__PURE__ */ je({
29536
29547
  __name: "dataOption",
29537
29548
  setup(n) {
29538
- const e = kt(), t = ge(!1), { active: i } = Pt(e), s = ye(() => i.value ? cd.includes(i.value.type) : !1), r = ye(() => i.value ? i.value.data.source : []), l = ye(() => {
29549
+ const e = Tt(), t = ge(!1), { active: i } = kt(e), s = ye(() => i.value ? cd.includes(i.value.type) : !1), r = ye(() => i.value ? i.value.data.source : []), l = ye(() => {
29539
29550
  let U = [];
29540
29551
  return r.value.length > 0 && r.value.forEach((W) => {
29541
29552
  W.columns.forEach((ne) => {
@@ -29881,7 +29892,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
29881
29892
  (A(!0), F(se, null, Ae(O(r), (z, pe) => {
29882
29893
  var te, R;
29883
29894
  return A(), F("div", {
29884
- class: gt(["data-source-item", { active: ((te = X.value) == null ? void 0 : te.key) == z.key }]),
29895
+ class: _t(["data-source-item", { active: ((te = X.value) == null ? void 0 : te.key) == z.key }]),
29885
29896
  onClick: (le) => w(z),
29886
29897
  title: ((R = X.value) == null ? void 0 : R.key) == z.key ? "点击取消选中" : "点击可选中修改数据源"
29887
29898
  }, [
@@ -29934,7 +29945,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
29934
29945
  b(q, { gutter: 10 }, {
29935
29946
  default: y(() => [
29936
29947
  O(i).type === "report" ? (A(), F(se, { key: 0 }, [
29937
- b(St, {
29948
+ b(xt, {
29938
29949
  span: 4,
29939
29950
  "label-context": "自动查询",
29940
29951
  "label-tips": "报表加载时自动执行查询"
@@ -29948,7 +29959,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
29948
29959
  ]),
29949
29960
  _: 1
29950
29961
  }),
29951
- b(St, {
29962
+ b(xt, {
29952
29963
  span: 4,
29953
29964
  "label-context": "分页",
29954
29965
  "label-tips": "分页展示"
@@ -29962,7 +29973,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
29962
29973
  ]),
29963
29974
  _: 1
29964
29975
  }),
29965
- O(i).data.pagination ? (A(), ie(St, {
29976
+ O(i).data.pagination ? (A(), ie(xt, {
29966
29977
  key: 0,
29967
29978
  span: 4,
29968
29979
  "label-context": "查询",
@@ -29976,7 +29987,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
29976
29987
  ]),
29977
29988
  _: 1
29978
29989
  })) : re("", !0),
29979
- O(i).data.pagination ? (A(), ie(St, {
29990
+ O(i).data.pagination ? (A(), ie(xt, {
29980
29991
  key: 1,
29981
29992
  span: 4,
29982
29993
  "label-context": "分页数",
@@ -29999,7 +30010,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
29999
30010
  ]),
30000
30011
  _: 1
30001
30012
  })) : re("", !0),
30002
- O(i).data.pagination ? (A(), ie(St, {
30013
+ O(i).data.pagination ? (A(), ie(xt, {
30003
30014
  key: 2,
30004
30015
  span: 8,
30005
30016
  "label-context": "分页数选择",
@@ -30042,7 +30053,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
30042
30053
  ]),
30043
30054
  _: 1
30044
30055
  })) : re("", !0),
30045
- b(St, {
30056
+ b(xt, {
30046
30057
  span: 24,
30047
30058
  "label-context": "数据前置处理函数",
30048
30059
  "label-tips": ""
@@ -30067,7 +30078,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
30067
30078
  ], 64)) : re("", !0),
30068
30079
  ["line", "rowBar", "bar", "pie", "scatter", "radar", "treemap"].includes(O(i).type) ? (A(), F(se, { key: 1 }, [
30069
30080
  O(s) && O(i).type === "line" ? (A(), F(se, { key: 0 }, [
30070
- b(St, {
30081
+ b(xt, {
30071
30082
  span: 24,
30072
30083
  "label-context": "Tooltip处理",
30073
30084
  "label-tips": ""
@@ -30089,7 +30100,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
30089
30100
  ]),
30090
30101
  _: 1
30091
30102
  }),
30092
- b(St, {
30103
+ b(xt, {
30093
30104
  span: 24,
30094
30105
  "label-context": "X轴数据处理",
30095
30106
  "label-tips": ""
@@ -30111,7 +30122,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
30111
30122
  ]),
30112
30123
  _: 1
30113
30124
  }),
30114
- b(St, {
30125
+ b(xt, {
30115
30126
  span: 24,
30116
30127
  "label-context": "Y轴数据处理",
30117
30128
  "label-tips": ""
@@ -30134,7 +30145,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
30134
30145
  _: 1
30135
30146
  })
30136
30147
  ], 64)) : re("", !0),
30137
- b(St, {
30148
+ b(xt, {
30138
30149
  span: 24,
30139
30150
  "label-context": "数据处理",
30140
30151
  "label-tips": ""
@@ -30160,7 +30171,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
30160
30171
  })
30161
30172
  ], 64)) : re("", !0),
30162
30173
  X.value !== null ? (A(), F(se, { key: 2 }, [
30163
- b(St, {
30174
+ b(xt, {
30164
30175
  span: 6,
30165
30176
  "label-context": "转为对象",
30166
30177
  "label-tips": "点位、对象、固定报表"
@@ -30175,7 +30186,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
30175
30186
  ]),
30176
30187
  _: 1
30177
30188
  }),
30178
- X.value.toObject ? (A(), ie(St, {
30189
+ X.value.toObject ? (A(), ie(xt, {
30179
30190
  key: 0,
30180
30191
  span: 18,
30181
30192
  "label-context": "转换配置"
@@ -30330,7 +30341,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
30330
30341
  ]),
30331
30342
  _: 1
30332
30343
  })) : re("", !0),
30333
- b(St, {
30344
+ b(xt, {
30334
30345
  span: 24,
30335
30346
  "label-context": "数据源字段管理",
30336
30347
  "label-tips": ""
@@ -30492,7 +30503,7 @@ const St = /* @__PURE__ */ hl(MT, [["__scopeId", "data-v-f419eb3b"]]), qT = {
30492
30503
  };
30493
30504
  }
30494
30505
  });
30495
- const sn = /* @__PURE__ */ je({
30506
+ const rn = /* @__PURE__ */ je({
30496
30507
  __name: "toolButton",
30497
30508
  props: {
30498
30509
  content: null,
@@ -30541,7 +30552,7 @@ function cC(n, e, t, i, s) {
30541
30552
  gi(() => {
30542
30553
  var u;
30543
30554
  (u = n.value) == null || u.addEventListener("mousedown", l), document.body.addEventListener("mousemove", a), document.body.addEventListener("mouseup", o);
30544
- }), Tn(() => {
30555
+ }), Cn(() => {
30545
30556
  var u;
30546
30557
  (u = n.value) == null || u.removeEventListener("mousedown", l), document.body.removeEventListener("mousemove", a), document.body.removeEventListener("mouseup", o);
30547
30558
  });
@@ -30573,7 +30584,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30573
30584
  }, CC = /* @__PURE__ */ M("div", { class: "drag-tap left" }, null, -1), LC = /* @__PURE__ */ je({
30574
30585
  __name: "StatementDesign",
30575
30586
  setup(n) {
30576
- const e = kt(), { detail: t, isPreview: i, active: s, activeCells: r, activeIndex: l, historyIndex: a, historyLength: o } = Pt(e), { getDetail: u, saveStatement: h, prevHistory: c, nextHistory: f, activeChooseHandle: d } = e, p = ge(), Q = ye(() => {
30587
+ const e = Tt(), { detail: t, isPreview: i, active: s, activeCells: r, activeIndex: l, historyIndex: a, historyLength: o } = kt(e), { getDetail: u, saveStatement: h, prevHistory: c, nextHistory: f, activeChooseHandle: d } = e, p = ge(), Q = ye(() => {
30577
30588
  let U = {};
30578
30589
  for (let W = 0; W < Cl.value.length; W++) {
30579
30590
  const ne = Cl.value[W];
@@ -30772,7 +30783,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30772
30783
  }), gi(() => {
30773
30784
  var U, W, ne, J, _e;
30774
30785
  u(P.params.id), (U = p.value) == null || U.addEventListener("dragstart", ee), (W = p.value) == null || W.addEventListener("dragend", H), (ne = p.value) == null || ne.addEventListener("dragover", oe), (J = p.value) == null || J.addEventListener("dragleave", xe), (_e = p.value) == null || _e.addEventListener("drop", N);
30775
- }), Tn(() => {
30786
+ }), Cn(() => {
30776
30787
  var U, W, ne, J, _e;
30777
30788
  e.$dispose(), (U = p.value) == null || U.removeEventListener("dragstart", ee), (W = p.value) == null || W.removeEventListener("dragend", H), (ne = p.value) == null || ne.removeEventListener("dragover", oe), (J = p.value) == null || J.removeEventListener("dragleave", xe), (_e = p.value) == null || _e.removeEventListener("drop", N);
30778
30789
  }), (U, W) => {
@@ -30780,7 +30791,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30780
30791
  const ne = ue("el-alert"), J = ue("el-button-group");
30781
30792
  return A(), F(se, null, [
30782
30793
  b(ne, {
30783
- class: gt(["statement-alert", { show: O(L) }]),
30794
+ class: _t(["statement-alert", { show: O(L) }]),
30784
30795
  title: O(k),
30785
30796
  description: O(V),
30786
30797
  type: "warning",
@@ -30798,7 +30809,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30798
30809
  b(J, null, {
30799
30810
  default: y(() => [
30800
30811
  O(i) ? (A(), F(se, { key: 1 }, [
30801
- O(i) ? (A(), ie(sn, {
30812
+ O(i) ? (A(), ie(rn, {
30802
30813
  key: 0,
30803
30814
  content: "退出预览",
30804
30815
  onClick: W[2] || (W[2] = (Oe) => i.value = !1)
@@ -30809,7 +30820,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30809
30820
  _: 1
30810
30821
  })) : re("", !0)
30811
30822
  ], 64)) : (A(), F(se, { key: 0 }, [
30812
- b(sn, {
30823
+ b(rn, {
30813
30824
  content: "撤回(Ctrl+Z)",
30814
30825
  disabled: O(o) <= 0 || O(a) <= 0,
30815
30826
  onClick: O(c)
@@ -30819,7 +30830,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30819
30830
  ]),
30820
30831
  _: 1
30821
30832
  }, 8, ["disabled", "onClick"]),
30822
- b(sn, {
30833
+ b(rn, {
30823
30834
  content: "重做(Ctrl+Y)",
30824
30835
  disabled: O(o) <= 1 || O(a) >= O(o) - 1,
30825
30836
  onClick: O(f)
@@ -30829,7 +30840,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30829
30840
  ]),
30830
30841
  _: 1
30831
30842
  }, 8, ["disabled", "onClick"]),
30832
- b(sn, {
30843
+ b(rn, {
30833
30844
  type: "primary",
30834
30845
  content: "保存(Ctrl+S)",
30835
30846
  onClick: O(h)
@@ -30839,7 +30850,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30839
30850
  ]),
30840
30851
  _: 1
30841
30852
  }, 8, ["onClick"]),
30842
- b(sn, {
30853
+ b(rn, {
30843
30854
  content: "帮助(F1)",
30844
30855
  onClick: W[0] || (W[0] = (Oe) => w.value = !0)
30845
30856
  }, {
@@ -30848,7 +30859,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30848
30859
  ]),
30849
30860
  _: 1
30850
30861
  }),
30851
- b(sn, {
30862
+ b(rn, {
30852
30863
  content: "预览",
30853
30864
  onClick: W[1] || (W[1] = (Oe) => i.value = !0)
30854
30865
  }, {
@@ -30864,7 +30875,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30864
30875
  ])
30865
30876
  ]),
30866
30877
  M("div", QC, [
30867
- xt(M("div", {
30878
+ ft(M("div", {
30868
30879
  class: "statement-form left",
30869
30880
  ref_key: "leftFormRef",
30870
30881
  ref: v,
@@ -30888,11 +30899,11 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30888
30899
  b(O(Nu), { label: "组件树" }, {
30889
30900
  default: y(() => [
30890
30901
  (A(!0), F(se, null, Ae(O(m), (Oe, ve) => (A(), F("div", {
30891
- class: gt(["statement-block-item", { active: Oe.isActive }]),
30902
+ class: _t(["statement-block-item", { active: Oe.isActive }]),
30892
30903
  onClick: (ke) => g(Oe.option, ve)
30893
30904
  }, [
30894
30905
  M("div", {
30895
- class: gt(`statement-block-item-icon iconfont ${Oe.icon}`)
30906
+ class: _t(`statement-block-item-icon iconfont ${Oe.icon}`)
30896
30907
  }, null, 2),
30897
30908
  M("div", wC, [
30898
30909
  M("div", PC, Xe(Oe.name), 1),
@@ -30906,7 +30917,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30906
30917
  _: 1
30907
30918
  })
30908
30919
  ], 4), [
30909
- [Tt, !O(i)]
30920
+ [$t, !O(i)]
30910
30921
  ]),
30911
30922
  O(i) ? re("", !0) : (A(), ie(U_, { key: 0 })),
30912
30923
  O(i) ? (A(), F("div", TC, [
@@ -30914,7 +30925,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30914
30925
  id: O(P).params.id
30915
30926
  }, null, 8, ["id"])
30916
30927
  ])) : re("", !0),
30917
- xt(M("div", {
30928
+ ft(M("div", {
30918
30929
  class: "statement-form",
30919
30930
  ref_key: "rightFormRef",
30920
30931
  ref: Z,
@@ -30925,7 +30936,7 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30925
30936
  CC,
30926
30937
  b(RT)
30927
30938
  ], 4), [
30928
- [Tt, !O(i)]
30939
+ [$t, !O(i)]
30929
30940
  ])
30930
30941
  ]),
30931
30942
  b(N_, {
@@ -30940,4 +30951,4 @@ const fC = { class: "statement-design-top" }, dC = { class: "statement-name" },
30940
30951
  export {
30941
30952
  LC as default
30942
30953
  };
30943
- //# sourceMappingURL=StatementDesign-aa17cfa2.mjs.map
30954
+ //# sourceMappingURL=StatementDesign-89909052.mjs.map