yh-report 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import { ElMessage as Ln, ElEmpty as Dm, ElDialog as Zf, ElFormItem as he, ElInp
3
3
  import { useRoute as Af, onBeforeRouteLeave as Im } from "vue-router";
4
4
  import { useFullscreen as Gm } from "@vueuse/core";
5
5
  import { defineStore as jm, storeToRefs as Dt } from "pinia";
6
- import { b as Fm, s as Hm, C as ee, F as Re, r as Km, e as Jm, f as eg, _ as tg, D as Ei, p as ig, h as Vf, i as ng, j as sg, T as rg, k as og, I as lg, l as ag, v as hg } from "./index-0e50ad4c.mjs";
6
+ import { b as Fm, s as Hm, C as ee, F as Re, r as Km, e as Jm, f as eg, _ as tg, D as Ei, p as ig, h as Vf, i as ng, j as sg, T as rg, k as og, I as lg, l as ag, v as hg } from "./index-1e2fd643.mjs";
7
7
  import { cloneDeep as Ol, set as ni, get as ug } from "lodash-es";
8
8
  import "@/libs/api.request.js";
9
9
  import "echarts";
@@ -98,7 +98,7 @@ const Lt = function() {
98
98
  class: "params-desinger desinger-container report-drop-target",
99
99
  "data-source": "column",
100
100
  "data-target": "params"
101
- }, Og = ["onClick"], pg = /* @__PURE__ */ M("i", { class: "iconfont icon-delete" }, null, -1), mg = [
101
+ }, Og = ["data-index"], pg = /* @__PURE__ */ M("i", { class: "iconfont icon-delete" }, null, -1), mg = [
102
102
  pg
103
103
  ], gg = { class: "report-desinger-container" }, _g = { class: "report-desinger-toolbar" }, Qg = { class: "report-desinger-table" }, bg = /* @__PURE__ */ M("col", { width: 80 }, null, -1), yg = ["width"], Sg = ["title", "data-area", "data-col", "data-row", "data-index", "rowspan", "colspan"], vg = ["data-index", "data-col"], xg = ["data-index", "data-row"], $g = {
104
104
  key: 2,
@@ -113,8 +113,8 @@ const Lt = function() {
113
113
  setup(n, { emit: e }) {
114
114
  const t = n, i = Lt(), { activeIndex: s, active: r, activeParamIndex: o, activeCells: l, detail: a } = Dt(i), { prevActive: u, nextActive: h } = i, c = be(() => {
115
115
  if (k.value && l.value && l.value.length === 1) {
116
- let { col: z, row: V } = l.value[0];
117
- return k.value[V + 1].cols[z + 1] || {};
116
+ let { col: z, row: A } = l.value[0];
117
+ return k.value[A + 1].cols[z + 1] || {};
118
118
  } else
119
119
  return {};
120
120
  }), f = be(() => t.option), d = be({
@@ -124,22 +124,22 @@ const Lt = function() {
124
124
  set(z) {
125
125
  f.value.colConfig = z;
126
126
  }
127
- }), p = be(() => d.value.reduce((z, V) => z + V.size, 80));
127
+ }), p = be(() => d.value.reduce((z, A) => z + A.size, 80));
128
128
  function _(z) {
129
129
  return String.fromCharCode(z);
130
130
  }
131
131
  function m(z) {
132
132
  return z === 0 ? "" : z > 26 ? _(65 + (z / 26 - 1)) + _(65 + z % 26) : _(64 + z);
133
133
  }
134
- function O(z, V, v, q = -1) {
134
+ function O(z, A, v, q = -1) {
135
135
  if (Array.isArray(z))
136
- return z.some((A) => O(A, V, v, q));
136
+ return z.some((V) => O(V, A, v, q));
137
137
  if (z === null || typeof z != "object")
138
138
  return !1;
139
- const { type: Y, col: W, row: ne, index: te } = z;
140
- if (te !== t.index || !Y)
139
+ const { type: Y, col: W, row: ne, index: ie } = z;
140
+ if (ie !== t.index || !Y)
141
141
  return !1;
142
- switch (V) {
142
+ switch (A) {
143
143
  case ee.COL:
144
144
  return [ee.CELL, ee.COL].includes(Y) && W === v - 1;
145
145
  case ee.ROW:
@@ -168,7 +168,7 @@ const Lt = function() {
168
168
  bindDataLoop: !1
169
169
  };
170
170
  }
171
- const k = ue([]), X = be(() => Ol(k.value).map((V) => (V.cols = V.cols.filter((v) => v.rowSpan !== 0 && v.colSpan !== 0), V)));
171
+ const k = ue([]), X = be(() => Ol(k.value).map((A) => (A.cols = A.cols.filter((v) => v.rowSpan !== 0 && v.colSpan !== 0), A)));
172
172
  as(
173
173
  [l, r, f],
174
174
  () => {
@@ -178,11 +178,11 @@ const Lt = function() {
178
178
  );
179
179
  function $() {
180
180
  var W, ne;
181
- let z = ((W = f.value.rowConfig) == null ? void 0 : W.length) ?? 5, V = ((ne = f.value.colConfig) == null ? void 0 : ne.length) ?? 10, v = t.index === s.value && Array.isArray(l.value) ? [...l.value] : [], q = [], Y = [];
182
- for (let te = 0; te < V + 1; te++) {
183
- const A = O(v, ee.COL, te), { bindData: _e, bindDataLoop: de } = R(te - 1), Ce = A || !1;
181
+ let z = ((W = f.value.rowConfig) == null ? void 0 : W.length) ?? 5, A = ((ne = f.value.colConfig) == null ? void 0 : ne.length) ?? 10, v = t.index === s.value && Array.isArray(l.value) ? [...l.value] : [], q = [], Y = [];
182
+ for (let ie = 0; ie < A + 1; ie++) {
183
+ const V = O(v, ee.COL, ie), { bindData: _e, bindDataLoop: de } = R(ie - 1), Ce = V || !1;
184
184
  let _s = {
185
- text: m(te),
185
+ text: m(ie),
186
186
  styleAttr: "",
187
187
  class: "mouse-down-target head",
188
188
  active: Ce,
@@ -190,7 +190,7 @@ const Lt = function() {
190
190
  loop: de,
191
191
  type: ee.HEAD,
192
192
  row: -1,
193
- col: te - 1,
193
+ col: ie - 1,
194
194
  colSpan: 1,
195
195
  rowSpan: 1
196
196
  };
@@ -202,24 +202,24 @@ const Lt = function() {
202
202
  loop: !1,
203
203
  cols: Y
204
204
  });
205
- for (let te = 0; te < z; te++) {
206
- const A = O(v, ee.ROW, te), _e = [], de = {
205
+ for (let ie = 0; ie < z; ie++) {
206
+ const V = O(v, ee.ROW, ie), _e = [], de = {
207
207
  type: ee.HEAD,
208
- active: A,
208
+ active: V,
209
209
  styleAttr: "",
210
210
  class: "mouse-down-target head",
211
211
  bind: !1,
212
212
  loop: !1,
213
- text: (te + 1).toString(),
213
+ text: (ie + 1).toString(),
214
214
  col: -1,
215
- row: te,
215
+ row: ie,
216
216
  colSpan: 1,
217
217
  rowSpan: 1
218
218
  };
219
- A && (de.class += " active"), _e.push(de);
220
- for (let Vi = 0; Vi < V; Vi++) {
221
- const _h = O(v, ee.CELL, Vi, te);
222
- let { bindData: Am, bindDataLoop: ck } = R(Vi), Qe = f.value.config && f.value.config[te] ? f.value.config[te][Vi] : null;
219
+ V && (de.class += " active"), _e.push(de);
220
+ for (let Vi = 0; Vi < A; Vi++) {
221
+ const _h = O(v, ee.CELL, Vi, ie);
222
+ let { bindData: Am, bindDataLoop: ck } = R(Vi), Qe = f.value.config && f.value.config[ie] ? f.value.config[ie][Vi] : null;
223
223
  if (Qe) {
224
224
  let Qi = "", Qh = "", ao = ee.TEXT;
225
225
  if (Qe && Qe.type) {
@@ -253,16 +253,16 @@ const Lt = function() {
253
253
  loop: !1,
254
254
  type: ao,
255
255
  col: Vi,
256
- row: te,
256
+ row: ie,
257
257
  colSpan: Qe.colSpan !== void 0 && !isNaN(Qe.colSpan) ? Qe.colSpan : 1,
258
258
  rowSpan: Qe.rowSpan !== void 0 && !isNaN(Qe.rowSpan) ? Qe.rowSpan : 1
259
259
  };
260
260
  _h && (bh.class += " active"), _e.push(bh);
261
261
  }
262
262
  }
263
- const { bindData: Ce, bindDataLoop: _s } = y(te);
263
+ const { bindData: Ce, bindDataLoop: _s } = y(ie);
264
264
  q.push({
265
- size: f.value.rowConfig[te].size || 80,
265
+ size: f.value.rowConfig[ie].size || 80,
266
266
  bind: Ce,
267
267
  loop: _s,
268
268
  cols: _e
@@ -273,20 +273,20 @@ const Lt = function() {
273
273
  const C = be(() => {
274
274
  let z = "";
275
275
  f.value.widthType === "%" ? z = `calc( ${f.value.width}${f.value.widthType} - 10px)` : z = `${f.value.width - 10}${f.value.widthType}`;
276
- let V = `${f.value.height}px`;
276
+ let A = `${f.value.height}px`;
277
277
  return {
278
278
  width: z,
279
- height: V
279
+ height: A
280
280
  };
281
281
  }), w = be({
282
282
  get() {
283
283
  var z;
284
- return (z = f.value.params) == null ? void 0 : z.map((V) => {
285
- const { componentName: v, placeholerPrefix: q, type: Y } = Jm(V.dataType);
284
+ return (z = f.value.params) == null ? void 0 : z.map((A) => {
285
+ const { componentName: v, placeholerPrefix: q, type: Y } = Jm(A.dataType);
286
286
  return {
287
- ...V,
287
+ ...A,
288
288
  componentName: v,
289
- placeholer: q + V.name,
289
+ placeholer: q + A.name,
290
290
  type: Y
291
291
  };
292
292
  });
@@ -295,14 +295,14 @@ const Lt = function() {
295
295
  return f.value.params;
296
296
  }
297
297
  });
298
- function P(z, V) {
299
- let v = z.target;
300
- if (v && v.dataset) {
298
+ function P(z) {
299
+ let A = z.target;
300
+ if (A = A == null ? void 0 : A.closest(".del"), A && A.dataset) {
301
301
  z.stopPropagation();
302
- const { type: q } = v.dataset;
303
- switch (q) {
302
+ const { type: v, index: q } = A.dataset;
303
+ switch (v) {
304
304
  case "params":
305
- f.value.params && f.value.params.splice(V, 1);
305
+ f.value.params && f.value.params.splice(q, 1);
306
306
  break;
307
307
  }
308
308
  }
@@ -326,23 +326,23 @@ const Lt = function() {
326
326
  });
327
327
  let L = null;
328
328
  function I(z) {
329
- var V, v;
330
- if ((V = z.target) != null && V.closest(".report-desinger-table-content")) {
329
+ var A, v;
330
+ if ((A = z.target) != null && A.closest(".report-desinger-table-content")) {
331
331
  let { pageX: q, pageY: Y } = z, { x: W = 0, y: ne = 0 } = ((v = g.value) == null ? void 0 : v.getBoundingClientRect()) || {};
332
332
  L = {}, L.x = q, L.y = Y, L.tableX = W, L.tableY = ne, E.left = q - W + "px", E.top = Y - ne + "px";
333
333
  }
334
334
  }
335
335
  function N(z) {
336
336
  if (L !== null) {
337
- let { pageX: V, pageY: v } = z, { tableX: q, tableY: Y, x: W, y: ne } = L;
338
- V > W ? E.width = V - W - 1 + "px" : (E.left = V - q + "px", E.width = W - V + "px"), v > ne ? E.height = v - ne - 1 + "px" : (E.top = v - Y + "px", E.height = ne - v + "px");
337
+ let { pageX: A, pageY: v } = z, { tableX: q, tableY: Y, x: W, y: ne } = L;
338
+ A > W ? E.width = A - W - 1 + "px" : (E.left = A - q + "px", E.width = W - A + "px"), v > ne ? E.height = v - ne - 1 + "px" : (E.top = v - Y + "px", E.height = ne - v + "px");
339
339
  }
340
340
  }
341
341
  function se(z) {
342
342
  L = null, E.width = "0px", E.height = "0px", E.left = "0px", E.top = "0px";
343
343
  }
344
344
  return un(async () => {
345
- var z, V;
345
+ var z, A;
346
346
  if (!f.value.colConfig) {
347
347
  let v = [], q = 10;
348
348
  (z = f.value.config) != null && z.length && (q = f.value.config[0].length);
@@ -355,7 +355,7 @@ const Lt = function() {
355
355
  }
356
356
  if (!f.value.rowConfig) {
357
357
  let v = [], q = 5;
358
- (V = f.value.config) != null && V.length && (q = f.value.config.length);
358
+ (A = f.value.config) != null && A.length && (q = f.value.config.length);
359
359
  for (let Y = 0; Y < q; Y++)
360
360
  v.push({
361
361
  size: 40,
@@ -367,7 +367,7 @@ const Lt = function() {
367
367
  }), Wr(() => {
368
368
  var z;
369
369
  (z = g.value) == null || z.removeEventListener("mousedown", I), document.removeEventListener("mousemove", N), document.removeEventListener("mouseup", se);
370
- }), (z, V) => {
370
+ }), (z, A) => {
371
371
  const v = fe("el-form-item"), q = fe("el-form"), Y = fe("el-button");
372
372
  return U(), K("div", {
373
373
  class: cr(["yh-statement-table report-drop-target", { active: t.index === b(s) }]),
@@ -387,7 +387,7 @@ const Lt = function() {
387
387
  "data-drag": "params",
388
388
  "data-source": "column",
389
389
  "data-target": "params",
390
- onClick: (te) => o.value = ne,
390
+ onClick: (ie) => o.value = ne,
391
391
  "data-index": ne,
392
392
  label: W.name
393
393
  }, {
@@ -398,7 +398,9 @@ const Lt = function() {
398
398
  }, null, 8, ["type", "placeholder"])),
399
399
  M("div", {
400
400
  class: "del",
401
- onClick: (te) => P(te, ne)
401
+ "data-type": "params",
402
+ "data-index": ne,
403
+ onClick: P
402
404
  }, mg, 8, Og)
403
405
  ]),
404
406
  _: 2
@@ -420,13 +422,13 @@ const Lt = function() {
420
422
  width: W == null ? void 0 : W.size
421
423
  }, null, 8, yg))), 256))
422
424
  ]),
423
- (U(!0), K(re, null, Fe(b(X), ({ size: W, cols: ne, bind: te, loop: A }, _e) => (U(), K("tr", {
425
+ (U(!0), K(re, null, Fe(b(X), ({ size: W, cols: ne, bind: ie, loop: V }, _e) => (U(), K("tr", {
424
426
  style: Ct(`height: ${W}px;`)
425
427
  }, [
426
428
  (U(!0), K(re, null, Fe(ne, (de, Ce) => (U(), K("td", {
427
429
  class: cr(de.class),
428
430
  style: Ct(de.styleAttr),
429
- title: `${(te || de.bind) && de.type === "head" ? "随数据循环" : de.text}`,
431
+ title: `${(ie || de.bind) && de.type === "head" ? "随数据循环" : de.text}`,
430
432
  "data-source": "column",
431
433
  "data-target": "column",
432
434
  "data-area": de.type === "head" ? "head" : "cell",
@@ -453,7 +455,7 @@ const Lt = function() {
453
455
  "data-index": t.index,
454
456
  "data-row": _e - 1
455
457
  }, null, 8, xg)) : ae("", !0),
456
- A || de.loop ? (U(), K("i", $g)) : ae("", !0)
458
+ V || de.loop ? (U(), K("i", $g)) : ae("", !0)
457
459
  ], 64)) : ae("", !0)
458
460
  ], 14, Sg))), 256))
459
461
  ], 4))), 256))
@@ -464,7 +466,7 @@ const Lt = function() {
464
466
  Q(Y, {
465
467
  type: "primary",
466
468
  disabled: t.index === 0,
467
- onClick: V[0] || (V[0] = (W) => b(u)(t.index))
469
+ onClick: A[0] || (A[0] = (W) => b(u)(t.index))
468
470
  }, {
469
471
  default: x(() => [
470
472
  wg
@@ -474,7 +476,7 @@ const Lt = function() {
474
476
  Q(Y, {
475
477
  type: "primary",
476
478
  disabled: t.index >= b(a).options.length - 1,
477
- onClick: V[1] || (V[1] = (W) => b(h)(t.index))
479
+ onClick: A[1] || (A[1] = (W) => b(h)(t.index))
478
480
  }, {
479
481
  default: x(() => [
480
482
  kg
@@ -734,14 +736,14 @@ const Lt = function() {
734
736
  const C = k ? parseInt(k) : -1;
735
737
  let w = X ? parseInt(X) : -1, P = $ ? parseInt($) : -1, { droparea: g, index: Z, rindex: T, cindex: E } = c;
736
738
  if (g === R && Z === C && E !== void 0 && E > -1 && T !== void 0 && T > -1) {
737
- let [L, I] = [E, w].sort((V, v) => V - v), [N, se] = [T, P].sort((V, v) => V - v), z = [];
738
- for (let V = N; V <= se; V++)
739
+ let [L, I] = [E, w].sort((A, v) => A - v), [N, se] = [T, P].sort((A, v) => A - v), z = [];
740
+ for (let A = N; A <= se; A++)
739
741
  for (let v = L; v <= I; v++)
740
742
  z.push({
741
743
  type: ee.CELL,
742
744
  index: C,
743
745
  col: v,
744
- row: V
746
+ row: A
745
747
  });
746
748
  r.value = z;
747
749
  } else if ([ee.COL, ee.ROW].includes(g) && (E !== void 0 && E > -1 || T !== void 0 && T > -1)) {
@@ -749,22 +751,22 @@ const Lt = function() {
749
751
  switch (g) {
750
752
  case ee.COL:
751
753
  if (I !== void 0 && N !== void 0 && N > -1)
752
- for (let V = I; V <= N; V++)
754
+ for (let A = I; A <= N; A++)
753
755
  L.push({
754
756
  type: ee.COL,
755
757
  index: C,
756
- col: V,
758
+ col: A,
757
759
  row: -1
758
760
  });
759
761
  break;
760
762
  case ee.ROW:
761
763
  if (se !== void 0 && z !== void 0 && z > -1)
762
- for (let V = se; V <= z; V++)
764
+ for (let A = se; A <= z; A++)
763
765
  L.push({
764
766
  type: ee.ROW,
765
767
  index: C,
766
768
  col: -1,
767
- row: V
769
+ row: A
768
770
  });
769
771
  break;
770
772
  }
@@ -4964,7 +4966,7 @@ class ti {
4964
4966
  var He = /* @__PURE__ */ function(n) {
4965
4967
  return n[n.Text = 0] = "Text", n[n.WidgetBefore = 1] = "WidgetBefore", n[n.WidgetAfter = 2] = "WidgetAfter", n[n.WidgetRange = 3] = "WidgetRange", n;
4966
4968
  }(He || (He = {}));
4967
- class ie extends ki {
4969
+ class te extends ki {
4968
4970
  constructor(e, t, i, s) {
4969
4971
  super(), this.startSide = e, this.endSide = t, this.widget = i, this.spec = s;
4970
4972
  }
@@ -5030,8 +5032,8 @@ class ie extends ki {
5030
5032
  return this.widget ? this.widget.estimatedHeight > -1 : !1;
5031
5033
  }
5032
5034
  }
5033
- ie.none = ge.empty;
5034
- class hs extends ie {
5035
+ te.none = ge.empty;
5036
+ class hs extends te {
5035
5037
  constructor(e) {
5036
5038
  let { start: t, end: i } = pd(e);
5037
5039
  super(t ? -1 : 5e8, i ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
@@ -5047,7 +5049,7 @@ class hs extends ie {
5047
5049
  }
5048
5050
  }
5049
5051
  hs.prototype.point = !1;
5050
- class us extends ie {
5052
+ class us extends te {
5051
5053
  constructor(e) {
5052
5054
  super(-2e8, -2e8, null, e);
5053
5055
  }
@@ -5062,7 +5064,7 @@ class us extends ie {
5062
5064
  }
5063
5065
  us.prototype.mapMode = We.TrackBefore;
5064
5066
  us.prototype.point = !0;
5065
- class di extends ie {
5067
+ class di extends te {
5066
5068
  constructor(e, t, i, s, r, o) {
5067
5069
  super(t, i, r, e), this.block = s, this.isReplace = o, this.mapMode = s ? t <= 0 ? We.TrackBefore : We.TrackAfter : We.TrackDel;
5068
5070
  }
@@ -5699,7 +5701,7 @@ class Ee {
5699
5701
  let a = [Tn.of(l)];
5700
5702
  return o && a.push(In.of((u) => {
5701
5703
  let h = u.plugin(l);
5702
- return h ? o(h) : ie.none;
5704
+ return h ? o(h) : te.none;
5703
5705
  })), r && a.push(r(l)), a;
5704
5706
  });
5705
5707
  }
@@ -5897,7 +5899,7 @@ class Uh extends xe {
5897
5899
  return this.view.state.doc.length;
5898
5900
  }
5899
5901
  constructor(e) {
5900
- super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = ie.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new Ve()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new pt(0, 0, 0, e.state.doc.length)], 0, null);
5902
+ super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = te.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new Ve()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new pt(0, 0, 0, e.state.doc.length)], 0, null);
5901
5903
  }
5902
5904
  // Update the document view to a given state.
5903
5905
  update(e) {
@@ -6180,7 +6182,7 @@ class Uh extends xe {
6180
6182
  let r = s == t.viewports.length ? null : t.viewports[s], o = r ? r.from - 1 : this.length;
6181
6183
  if (o > i) {
6182
6184
  let l = (t.lineBlockAt(o).bottom - t.lineBlockAt(i).top) / this.view.scaleY;
6183
- e.push(ie.replace({
6185
+ e.push(te.replace({
6184
6186
  widget: new Yl(l),
6185
6187
  block: !0,
6186
6188
  inclusive: !0,
@@ -6191,7 +6193,7 @@ class Uh extends xe {
6191
6193
  break;
6192
6194
  i = r.to + 1;
6193
6195
  }
6194
- return ie.set(e);
6196
+ return te.set(e);
6195
6197
  }
6196
6198
  updateDeco() {
6197
6199
  let e = 1, t = this.view.state.facet(In).map((r) => (this.dynamicDecorationMap[e++] = typeof r == "function") ? r(this.view) : r), i = !1, s = this.view.state.facet(Xd).map((r, o) => {
@@ -7779,7 +7781,7 @@ class Qo {
7779
7781
  return !0;
7780
7782
  }
7781
7783
  draw(e, t) {
7782
- return ie.replace({
7784
+ return te.replace({
7783
7785
  widget: new q0(this.displaySize * (t ? e.scaleY : e.scaleX), t)
7784
7786
  }).range(this.from, this.to);
7785
7787
  }
@@ -7806,7 +7808,7 @@ class lu {
7806
7808
  this.heightOracle = new T0(t), this.stateDeco = e.facet(In).filter((i) => typeof i != "function"), this.heightMap = Ke.empty().applyChanges(this.stateDeco, Oe.empty, this.heightOracle.setDoc(e.doc), [new pt(0, 0, 0, e.doc.length)]);
7807
7809
  for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
7808
7810
  ;
7809
- this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = ie.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
7811
+ this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = te.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
7810
7812
  }
7811
7813
  updateForViewport() {
7812
7814
  let e = [this.viewport], { main: t } = this.state.selection;
@@ -7990,7 +7992,7 @@ class lu {
7990
7992
  return this.heightOracle.lineWrapping ? e.height * r : s.total * this.heightOracle.charWidth * r;
7991
7993
  }
7992
7994
  updateLineGaps(e) {
7993
- Qo.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = ie.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
7995
+ Qo.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = te.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
7994
7996
  }
7995
7997
  computeVisibleRanges(e) {
7996
7998
  let t = this.stateDeco;
@@ -8683,11 +8685,11 @@ class B0 {
8683
8685
  let a = this.toEditorPos(r.rangeStart), u = this.toEditorPos(r.rangeEnd);
8684
8686
  if (a < u) {
8685
8687
  let h = `text-decoration: underline ${o == "Dashed" ? "dashed " : o == "Squiggle" ? "wavy " : ""}${l == "Thin" ? 1 : 2}px`;
8686
- s.push(ie.mark({ attributes: { style: h } }).range(a, u));
8688
+ s.push(te.mark({ attributes: { style: h } }).range(a, u));
8687
8689
  }
8688
8690
  }
8689
8691
  }
8690
- e.dispatch({ effects: Cd.of(ie.set(s)) });
8692
+ e.dispatch({ effects: Cd.of(te.set(s)) });
8691
8693
  }, this.handlers.compositionstart = () => {
8692
8694
  e.inputState.composing < 0 && (e.inputState.composing = 0, e.inputState.compositionFirstChange = !0);
8693
8695
  }, this.handlers.compositionend = () => {
@@ -9731,8 +9733,8 @@ function J0(n, e, t) {
9731
9733
  function R(X, $, C) {
9732
9734
  let w = 1e9, P = -1e9, g = [];
9733
9735
  function Z(L, I, N, se, z) {
9734
- let V = n.coordsAtPos(L, L == C.to ? -2 : 2), v = n.coordsAtPos(N, N == C.from ? 2 : -2);
9735
- !V || !v || (w = Math.min(V.top, v.top, w), P = Math.max(V.bottom, v.bottom, P), z == Te.LTR ? g.push(r && I ? c : V.left, r && se ? f : v.right) : g.push(!r && se ? c : v.left, !r && I ? f : V.right));
9736
+ let A = n.coordsAtPos(L, L == C.to ? -2 : 2), v = n.coordsAtPos(N, N == C.from ? 2 : -2);
9737
+ !A || !v || (w = Math.min(A.top, v.top, w), P = Math.max(A.bottom, v.bottom, P), z == Te.LTR ? g.push(r && I ? c : A.left, r && se ? f : v.right) : g.push(!r && se ? c : v.left, !r && I ? f : A.right));
9736
9738
  }
9737
9739
  let T = X ?? C.from, E = $ ?? C.to;
9738
9740
  for (let L of n.visibleRanges)
@@ -9740,10 +9742,10 @@ function J0(n, e, t) {
9740
9742
  for (let I = Math.max(L.from, T), N = Math.min(L.to, E); ; ) {
9741
9743
  let se = n.state.doc.lineAt(I);
9742
9744
  for (let z of n.bidiSpans(se)) {
9743
- let V = z.from + se.from, v = z.to + se.from;
9744
- if (V >= N)
9745
+ let A = z.from + se.from, v = z.to + se.from;
9746
+ if (A >= N)
9745
9747
  break;
9746
- v > I && Z(Math.max(V, I), X == null && V <= T, Math.min(v, N), $ == null && v >= E, z.dir);
9748
+ v > I && Z(Math.max(A, I), X == null && A <= T, Math.min(v, N), $ == null && v >= E, z.dir);
9747
9749
  }
9748
9750
  if (I = se.to + 1, I >= N)
9749
9751
  break;
@@ -10077,7 +10079,7 @@ let gu = null;
10077
10079
  function OQ() {
10078
10080
  return gu || (gu = Ee.fromClass(class {
10079
10081
  constructor(n) {
10080
- this.view = n, this.decorations = ie.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(sr)), this.decorations = this.decorator.createDeco(n);
10082
+ this.view = n, this.decorations = te.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(sr)), this.decorations = this.decorator.createDeco(n);
10081
10083
  }
10082
10084
  makeDecorator(n) {
10083
10085
  return new hQ({
@@ -10086,11 +10088,11 @@ function OQ() {
10086
10088
  let { doc: s } = t.state, r = et(e[0], 0);
10087
10089
  if (r == 9) {
10088
10090
  let o = s.lineAt(i), l = t.state.tabSize, a = cn(o.text, l, i - o.from);
10089
- return ie.replace({
10091
+ return te.replace({
10090
10092
  widget: new _Q((l - a % l) * this.view.defaultCharacterWidth / this.view.scaleX)
10091
10093
  });
10092
10094
  }
10093
- return this.decorationCache[r] || (this.decorationCache[r] = ie.replace({ widget: new gQ(n, r) }));
10095
+ return this.decorationCache[r] || (this.decorationCache[r] = te.replace({ widget: new gQ(n, r) }));
10094
10096
  },
10095
10097
  boundary: n.replaceTabs ? void 0 : /[^]/
10096
10098
  });
@@ -10143,7 +10145,7 @@ class _Q extends ti {
10143
10145
  function QQ() {
10144
10146
  return yQ;
10145
10147
  }
10146
- const bQ = /* @__PURE__ */ ie.line({ class: "cm-activeLine" }), yQ = /* @__PURE__ */ Ee.fromClass(class {
10148
+ const bQ = /* @__PURE__ */ te.line({ class: "cm-activeLine" }), yQ = /* @__PURE__ */ Ee.fromClass(class {
10147
10149
  constructor(n) {
10148
10150
  this.decorations = this.getDeco(n);
10149
10151
  }
@@ -10156,7 +10158,7 @@ const bQ = /* @__PURE__ */ ie.line({ class: "cm-activeLine" }), yQ = /* @__PURE_
10156
10158
  let s = n.lineBlockAt(i.head);
10157
10159
  s.from > e && (t.push(bQ.range(s.from)), e = s.from);
10158
10160
  }
10159
- return ie.set(t);
10161
+ return te.set(t);
10160
10162
  }
10161
10163
  }, {
10162
10164
  decorations: (n) => n.decorations
@@ -12231,19 +12233,19 @@ function i1(n) {
12231
12233
  return;
12232
12234
  } else
12233
12235
  throw new RangeError(`Unrecognized record size: ${L}`);
12234
- let se = a[Z], z, V, v = T - X;
12235
- if (E - T <= s && (V = m(l.pos - $, P))) {
12236
- let q = new Uint16Array(V.size - V.skip), Y = l.pos - V.size, W = q.length;
12236
+ let se = a[Z], z, A, v = T - X;
12237
+ if (E - T <= s && (A = m(l.pos - $, P))) {
12238
+ let q = new Uint16Array(A.size - A.skip), Y = l.pos - A.size, W = q.length;
12237
12239
  for (; l.pos > Y; )
12238
- W = O(V.start, q, W);
12239
- z = new Oi(q, E - V.start, i), v = V.start - X;
12240
+ W = O(A.start, q, W);
12241
+ z = new Oi(q, E - A.start, i), v = A.start - X;
12240
12242
  } else {
12241
12243
  let q = l.pos - L;
12242
12244
  l.next();
12243
- let Y = [], W = [], ne = Z >= o ? Z : -1, te = 0, A = E;
12245
+ let Y = [], W = [], ne = Z >= o ? Z : -1, ie = 0, V = E;
12244
12246
  for (; l.pos > q; )
12245
- ne >= 0 && l.id == ne && l.size >= 0 ? (l.end <= A - s && (p(Y, W, T, te, l.end, A, ne, I, N), te = Y.length, A = l.end), l.next()) : g > 2500 ? f(T, q, Y, W) : c(T, q, Y, W, ne, g + 1);
12246
- if (ne >= 0 && te > 0 && te < Y.length && p(Y, W, T, te, T, A, ne, I, N), Y.reverse(), W.reverse(), ne > -1 && te > 0) {
12247
+ ne >= 0 && l.id == ne && l.size >= 0 ? (l.end <= V - s && (p(Y, W, T, ie, l.end, V, ne, I, N), ie = Y.length, V = l.end), l.next()) : g > 2500 ? f(T, q, Y, W) : c(T, q, Y, W, ne, g + 1);
12248
+ if (ne >= 0 && ie > 0 && ie < Y.length && p(Y, W, T, ie, T, V, ne, I, N), Y.reverse(), W.reverse(), ne > -1 && ie > 0) {
12247
12249
  let _e = d(se, N);
12248
12250
  z = qa(se, Y, W, 0, Y.length, 0, E - T, _e, _e);
12249
12251
  } else
@@ -14138,13 +14140,13 @@ function _O(n) {
14138
14140
  }
14139
14141
  const Xi = /* @__PURE__ */ Le.define({
14140
14142
  create() {
14141
- return ie.none;
14143
+ return te.none;
14142
14144
  },
14143
14145
  update(n, e) {
14144
14146
  n = n.map(e.changes);
14145
14147
  for (let t of e.effects)
14146
14148
  if (t.is(eo) && !Z1(n, t.value.from, t.value.to)) {
14147
- let { preparePlaceholder: i } = e.state.facet(Ba), s = i ? ie.replace({ widget: new D1(i(e.state, t.value)) }) : Mu;
14149
+ let { preparePlaceholder: i } = e.state.facet(Ba), s = i ? te.replace({ widget: new D1(i(e.state, t.value)) }) : Mu;
14148
14150
  n = n.update({ add: [s.range(t.value.from, t.value.to)] });
14149
14151
  } else
14150
14152
  t.is(ds) && (n = n.update({
@@ -14181,7 +14183,7 @@ const Xi = /* @__PURE__ */ Le.define({
14181
14183
  throw new RangeError("Invalid JSON for fold state");
14182
14184
  e.push(Mu.range(i, s));
14183
14185
  }
14184
- return ie.set(e, !0);
14186
+ return te.set(e, !0);
14185
14187
  }
14186
14188
  });
14187
14189
  function Pr(n, e, t) {
@@ -14264,7 +14266,7 @@ function SO(n, e) {
14264
14266
  let r = document.createElement("span");
14265
14267
  return r.textContent = i.placeholderText, r.setAttribute("aria-label", t.phrase("folded code")), r.title = t.phrase("unfold"), r.className = "cm-foldPlaceholder", r.onclick = s, r;
14266
14268
  }
14267
- const Mu = /* @__PURE__ */ ie.replace({ widget: /* @__PURE__ */ new class extends ti {
14269
+ const Mu = /* @__PURE__ */ te.replace({ widget: /* @__PURE__ */ new class extends ti {
14268
14270
  toDOM(n) {
14269
14271
  return SO(n, null);
14270
14272
  }
@@ -14415,11 +14417,11 @@ class W1 {
14415
14417
  }
14416
14418
  buildDeco(e, t) {
14417
14419
  if (!t || !this.tree.length)
14418
- return ie.none;
14420
+ return te.none;
14419
14421
  let i = new Ft();
14420
14422
  for (let { from: s, to: r } of e.visibleRanges)
14421
14423
  m1(this.tree, t, (o, l, a) => {
14422
- i.add(o, l, this.markCache[a] || (this.markCache[a] = ie.mark({ class: a })));
14424
+ i.add(o, l, this.markCache[a] || (this.markCache[a] = te.mark({ class: a })));
14423
14425
  }, s, r);
14424
14426
  return i.finish();
14425
14427
  }
@@ -14516,14 +14518,14 @@ const B1 = /* @__PURE__ */ gi.high(/* @__PURE__ */ Ee.fromClass(W1, {
14516
14518
  renderMatch: F1
14517
14519
  });
14518
14520
  }
14519
- }), G1 = /* @__PURE__ */ ie.mark({ class: "cm-matchingBracket" }), j1 = /* @__PURE__ */ ie.mark({ class: "cm-nonmatchingBracket" });
14521
+ }), G1 = /* @__PURE__ */ te.mark({ class: "cm-matchingBracket" }), j1 = /* @__PURE__ */ te.mark({ class: "cm-nonmatchingBracket" });
14520
14522
  function F1(n) {
14521
14523
  let e = [], t = n.matched ? G1 : j1;
14522
14524
  return e.push(t.range(n.start.from, n.start.to)), n.end && e.push(t.range(n.end.from, n.end.to)), e;
14523
14525
  }
14524
14526
  const H1 = /* @__PURE__ */ Le.define({
14525
14527
  create() {
14526
- return ie.none;
14528
+ return te.none;
14527
14529
  },
14528
14530
  update(n, e) {
14529
14531
  if (!e.docChanged && !e.selection)
@@ -14535,7 +14537,7 @@ const H1 = /* @__PURE__ */ Le.define({
14535
14537
  let r = Vt(e.state, s.head, -1, i) || s.head > 0 && Vt(e.state, s.head - 1, 1, i) || i.afterCursor && (Vt(e.state, s.head, 1, i) || s.head < e.state.doc.length && Vt(e.state, s.head + 1, -1, i));
14536
14538
  r && (t = t.concat(i.renderMatch(r, e.state)));
14537
14539
  }
14538
- return ie.set(t, !0);
14540
+ return te.set(t, !0);
14539
14541
  },
14540
14542
  provide: (n) => j.decorations.from(n)
14541
14543
  }), K1 = [
@@ -15685,7 +15687,7 @@ function yy(n) {
15685
15687
  let e = [Py, $y];
15686
15688
  return n && e.push(hp.of(n)), e;
15687
15689
  }
15688
- const Sy = /* @__PURE__ */ ie.mark({ class: "cm-selectionMatch" }), vy = /* @__PURE__ */ ie.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
15690
+ const Sy = /* @__PURE__ */ te.mark({ class: "cm-selectionMatch" }), vy = /* @__PURE__ */ te.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
15689
15691
  function Ju(n, e, t, i) {
15690
15692
  return (t == 0 || n(e.sliceDoc(t - 1, t)) != Xe.Word) && (i == e.doc.length || n(e.sliceDoc(i, i + 1)) != Xe.Word);
15691
15693
  }
@@ -15702,24 +15704,24 @@ const $y = /* @__PURE__ */ Ee.fromClass(class {
15702
15704
  getDeco(n) {
15703
15705
  let e = n.state.facet(hp), { state: t } = n, i = t.selection;
15704
15706
  if (i.ranges.length > 1)
15705
- return ie.none;
15707
+ return te.none;
15706
15708
  let s = i.main, r, o = null;
15707
15709
  if (s.empty) {
15708
15710
  if (!e.highlightWordAroundCursor)
15709
- return ie.none;
15711
+ return te.none;
15710
15712
  let a = t.wordAt(s.head);
15711
15713
  if (!a)
15712
- return ie.none;
15714
+ return te.none;
15713
15715
  o = t.charCategorizer(s.head), r = t.sliceDoc(a.from, a.to);
15714
15716
  } else {
15715
15717
  let a = s.to - s.from;
15716
15718
  if (a < e.minSelectionLength || a > 200)
15717
- return ie.none;
15719
+ return te.none;
15718
15720
  if (e.wholeWords) {
15719
15721
  if (r = t.sliceDoc(s.from, s.to), o = t.charCategorizer(s.head), !(Ju(o, t, s.from, s.to) && xy(o, t, s.from, s.to)))
15720
- return ie.none;
15722
+ return te.none;
15721
15723
  } else if (r = t.sliceDoc(s.from, s.to), !r)
15722
- return ie.none;
15724
+ return te.none;
15723
15725
  }
15724
15726
  let l = [];
15725
15727
  for (let a of n.visibleRanges) {
@@ -15727,10 +15729,10 @@ const $y = /* @__PURE__ */ Ee.fromClass(class {
15727
15729
  for (; !u.next().done; ) {
15728
15730
  let { from: h, to: c } = u.value;
15729
15731
  if ((!o || Ju(o, t, h, c)) && (s.empty && h <= s.from && c >= s.to ? l.push(vy.range(h, c)) : (h >= s.to || c <= s.from) && l.push(Sy.range(h, c)), l.length > e.maxMatches))
15730
- return ie.none;
15732
+ return te.none;
15731
15733
  }
15732
15734
  }
15733
- return ie.set(l);
15735
+ return te.set(l);
15734
15736
  }
15735
15737
  }, {
15736
15738
  decorations: (n) => n.decorations
@@ -15965,7 +15967,7 @@ class Zo {
15965
15967
  this.query = e, this.panel = t;
15966
15968
  }
15967
15969
  }
15968
- const Ay = /* @__PURE__ */ ie.mark({ class: "cm-searchMatch" }), Vy = /* @__PURE__ */ ie.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Yy = /* @__PURE__ */ Ee.fromClass(class {
15970
+ const Ay = /* @__PURE__ */ te.mark({ class: "cm-searchMatch" }), Vy = /* @__PURE__ */ te.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Yy = /* @__PURE__ */ Ee.fromClass(class {
15969
15971
  constructor(n) {
15970
15972
  this.view = n, this.decorations = this.highlight(n.state.field(ui));
15971
15973
  }
@@ -15975,7 +15977,7 @@ const Ay = /* @__PURE__ */ ie.mark({ class: "cm-searchMatch" }), Vy = /* @__PURE
15975
15977
  }
15976
15978
  highlight({ query: n, panel: e }) {
15977
15979
  if (!e || !n.spec.valid)
15978
- return ie.none;
15980
+ return te.none;
15979
15981
  let { view: t } = this, i = new Ft();
15980
15982
  for (let s = 0, r = t.visibleRanges, o = r.length; s < o; s++) {
15981
15983
  let { from: l, to: a } = r[s];
@@ -17289,7 +17291,7 @@ class sh {
17289
17291
  return new sh(i, s);
17290
17292
  }
17291
17293
  }
17292
- let mS = /* @__PURE__ */ ie.widget({ widget: /* @__PURE__ */ new class extends ti {
17294
+ let mS = /* @__PURE__ */ te.widget({ widget: /* @__PURE__ */ new class extends ti {
17293
17295
  toDOM() {
17294
17296
  let n = document.createElement("span");
17295
17297
  return n.className = "cm-snippetFieldPosition", n;
@@ -17297,10 +17299,10 @@ let mS = /* @__PURE__ */ ie.widget({ widget: /* @__PURE__ */ new class extends t
17297
17299
  ignoreEvent() {
17298
17300
  return !1;
17299
17301
  }
17300
- }() }), gS = /* @__PURE__ */ ie.mark({ class: "cm-snippetField" });
17302
+ }() }), gS = /* @__PURE__ */ te.mark({ class: "cm-snippetField" });
17301
17303
  class mn {
17302
17304
  constructor(e, t) {
17303
- this.ranges = e, this.active = t, this.deco = ie.set(e.map((i) => (i.from == i.to ? mS : gS).range(i.from, i.to)));
17305
+ this.ranges = e, this.active = t, this.deco = te.set(e.map((i) => (i.from == i.to ? mS : gS).range(i.from, i.to)));
17304
17306
  }
17305
17307
  map(e) {
17306
17308
  let t = [];
@@ -17333,7 +17335,7 @@ const gs = /* @__PURE__ */ le.define({
17333
17335
  }
17334
17336
  return n && e.docChanged && (n = n.map(e.changes)), n && e.selection && !n.selectionInsideField(e.selection) && (n = null), n;
17335
17337
  },
17336
- provide: (n) => j.decorations.from(n, (e) => e ? e.deco : ie.none)
17338
+ provide: (n) => j.decorations.from(n, (e) => e ? e.deco : te.none)
17337
17339
  });
17338
17340
  function rh(n, e) {
17339
17341
  return D.create(n.filter((t) => t.field == e).map((t) => D.range(t.from, t.to)));
@@ -17639,13 +17641,13 @@ class xi {
17639
17641
  }
17640
17642
  let p = HS(l);
17641
17643
  if (l.some((_) => _.from == _.to || _.from == _.to - 1 && i.doc.lineAt(_.from).to == _.from))
17642
- o.add(f, f, ie.widget({
17644
+ o.add(f, f, te.widget({
17643
17645
  widget: new IS(p),
17644
17646
  diagnostics: l.slice()
17645
17647
  }));
17646
17648
  else {
17647
17649
  let _ = l.reduce((m, O) => O.markClass ? m + " " + O.markClass : m, "");
17648
- o.add(f, d, ie.mark({
17650
+ o.add(f, d, te.mark({
17649
17651
  class: "cm-lintRange cm-lintRange-" + p + _,
17650
17652
  diagnostics: l.slice(),
17651
17653
  inclusiveEnd: l.some((m) => m.to > d)
@@ -17684,7 +17686,7 @@ function DS(n, e) {
17684
17686
  }
17685
17687
  const wp = /* @__PURE__ */ le.define(), lh = /* @__PURE__ */ le.define(), kp = /* @__PURE__ */ le.define(), ht = /* @__PURE__ */ Le.define({
17686
17688
  create() {
17687
- return new xi(ie.none, null, null);
17689
+ return new xi(te.none, null, null);
17688
17690
  },
17689
17691
  update(n, e) {
17690
17692
  if (e.docChanged && n.diagnostics.size) {
@@ -17707,7 +17709,7 @@ const wp = /* @__PURE__ */ le.define(), lh = /* @__PURE__ */ le.define(), kp = /
17707
17709
  Fn.from(n, (e) => e.panel),
17708
17710
  j.decorations.from(n, (e) => e.diagnostics)
17709
17711
  ]
17710
- }), LS = /* @__PURE__ */ ie.mark({ class: "cm-lintRange cm-lintRange-active" });
17712
+ }), LS = /* @__PURE__ */ te.mark({ class: "cm-lintRange cm-lintRange-active" });
17711
17713
  function US(n, e, t) {
17712
17714
  let { diagnostics: i } = n.state.field(ht), s, r = -1, o = -1;
17713
17715
  i.between(e - (t < 0 ? 1 : 0), e + (t > 0 ? 1 : 0), (a, u, { spec: h }) => {
@@ -18038,7 +18040,7 @@ const KS = [
18038
18040
  ht,
18039
18041
  /* @__PURE__ */ j.decorations.compute([ht], (n) => {
18040
18042
  let { selected: e, panel: t } = n.field(ht);
18041
- return !e || !t || e.from == e.to ? ie.none : ie.set([
18043
+ return !e || !t || e.from == e.to ? te.none : te.set([
18042
18044
  LS.range(e.from, e.to)
18043
18045
  ]);
18044
18046
  }),
@@ -23750,16 +23752,16 @@ function XP() {
23750
23752
  }
23751
23753
  var L = !0, I = !0, N = !1;
23752
23754
  if (g.text === ":" ? this._flags.ternary_depth === 0 ? L = !1 : (this._flags.ternary_depth -= 1, N = !0) : g.text === "?" && (this._flags.ternary_depth += 1), !T && !Z && this._options.preserve_newlines && a(g.text, o)) {
23753
- var se = g.text === ":", z = se && N, V = se && !N;
23755
+ var se = g.text === ":", z = se && N, A = se && !N;
23754
23756
  switch (this._options.operator_position) {
23755
23757
  case _.before_newline:
23756
- this._output.space_before_token = !V, this.print_token(g), (!se || z) && this.allow_wrap_or_preserved_newline(g), this._output.space_before_token = !0;
23758
+ this._output.space_before_token = !A, this.print_token(g), (!se || z) && this.allow_wrap_or_preserved_newline(g), this._output.space_before_token = !0;
23757
23759
  return;
23758
23760
  case _.after_newline:
23759
23761
  this._output.space_before_token = !0, !se || z ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(g) : this._output.space_before_token = !1, this.print_token(g), this._output.space_before_token = !0;
23760
23762
  return;
23761
23763
  case _.preserve_newline:
23762
- V || this.allow_wrap_or_preserved_newline(g), L = !(this._output.just_added_newline() || V), this._output.space_before_token = L, this.print_token(g), this._output.space_before_token = !0;
23764
+ A || this.allow_wrap_or_preserved_newline(g), L = !(this._output.just_added_newline() || A), this._output.space_before_token = L, this.print_token(g), this._output.space_before_token = !0;
23763
23765
  return;
23764
23766
  }
23765
23767
  }
@@ -24732,10 +24734,10 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24732
24734
  let O = ue(null);
24733
24735
  function y() {
24734
24736
  if (s.value && t.value && s.value.length) {
24735
- let V = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
24737
+ let A = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
24736
24738
  s.value.forEach((_e) => {
24737
- V.add(_e.col), v.add(_e.row);
24738
- }), Array.from(V).forEach((_e) => {
24739
+ A.add(_e.col), v.add(_e.row);
24740
+ }), Array.from(A).forEach((_e) => {
24739
24741
  var Ce;
24740
24742
  let de = (Ce = t.value) == null ? void 0 : Ce.colConfig[_e];
24741
24743
  de && de.isFixed;
@@ -24744,11 +24746,11 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24744
24746
  let de = (Ce = t.value) == null ? void 0 : Ce.colConfig[_e];
24745
24747
  de && de.isFixed;
24746
24748
  });
24747
- const q = Math.min(...V), Y = Math.min(...v), W = Math.max(...V), ne = Math.max(...v), te = W - q + 1, A = ne - Y + 1;
24749
+ const q = Math.min(...A), Y = Math.min(...v), W = Math.max(...A), ne = Math.max(...v), ie = W - q + 1, V = ne - Y + 1;
24748
24750
  for (let _e = Y; _e <= ne; _e++)
24749
24751
  for (let de = q; de <= W; de++) {
24750
24752
  const Ce = t.value.config[_e][de];
24751
- _e === Y && de === q ? (Ce.colSpan = te, Ce.rowSpan = A) : (Ce.colSpan = 0, Ce.rowSpan = 0, Ce.mergeTarget = [Y, q]);
24753
+ _e === Y && de === q ? (Ce.colSpan = ie, Ce.rowSpan = V) : (Ce.colSpan = 0, Ce.rowSpan = 0, Ce.mergeTarget = [Y, q]);
24752
24754
  }
24753
24755
  s.value = [
24754
24756
  {
@@ -24762,19 +24764,19 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24762
24764
  }
24763
24765
  function R() {
24764
24766
  if (s.value && t.value && s.value.length) {
24765
- const V = [];
24767
+ const A = [];
24766
24768
  s.value.forEach((v) => {
24767
24769
  const q = t.value.config[v.row][v.col];
24768
- (q.colSpan > 1 || q.rowSpan > 1) && V.push({
24770
+ (q.colSpan > 1 || q.rowSpan > 1) && A.push({
24769
24771
  row: v.row,
24770
24772
  col: v.col,
24771
24773
  rowSpan: q.rowSpan,
24772
24774
  colSpan: q.colSpan
24773
24775
  });
24774
- }), V.forEach((v) => {
24775
- const { row: q, col: Y, rowSpan: W, colSpan: ne } = v, te = q + W - 1, A = Y + ne - 1;
24776
- for (let _e = q; _e <= te; _e++)
24777
- for (let de = Y; de <= A; de++) {
24776
+ }), A.forEach((v) => {
24777
+ const { row: q, col: Y, rowSpan: W, colSpan: ne } = v, ie = q + W - 1, V = Y + ne - 1;
24778
+ for (let _e = q; _e <= ie; _e++)
24779
+ for (let de = Y; de <= V; de++) {
24778
24780
  const Ce = t.value.config[_e][de];
24779
24781
  Ce.colSpan = 1, Ce.rowSpan = 1, Ce.mergeTarget = void 0;
24780
24782
  }
@@ -24796,14 +24798,14 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24796
24798
  };
24797
24799
  }
24798
24800
  function $() {
24799
- s.value && t.value && s.value.length && (s.value.forEach((V) => {
24800
- let v = t.value.config[V.row][V.col];
24801
+ s.value && t.value && s.value.length && (s.value.forEach((A) => {
24802
+ let v = t.value.config[A.row][A.col];
24801
24803
  v.format = O.value.format, v.formatType = { ...O.value.formatType }, v.style = { ...O.value.style };
24802
24804
  }), O = null);
24803
24805
  }
24804
24806
  function C() {
24805
- s.value && t.value && s.value.length && s.value.forEach((V) => {
24806
- let v = t.value.config[V.row][V.col];
24807
+ s.value && t.value && s.value.length && s.value.forEach((A) => {
24808
+ let v = t.value.config[A.row][A.col];
24807
24809
  v.type = ee.TEXT, v.format = void 0, v.text = "", v.formatType = { numberDecimal: 0, numberUseGrouping: !1, currencySymbol: "¥", scientificNotation: "e", digits: 0, date: "YYYY-MM-DD HH:mm:ss" }, v.data = "", v.style = {
24808
24810
  backgroundColor: "",
24809
24811
  color: "",
@@ -24817,33 +24819,33 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24817
24819
  }
24818
24820
  as(
24819
24821
  () => s.value,
24820
- (V, v) => {
24821
- if (V && V.length && t.value)
24822
- if (r.value = V.length === 1, r.value) {
24823
- let q = V[0];
24822
+ (A, v) => {
24823
+ if (A && A.length && t.value)
24824
+ if (r.value = A.length === 1, r.value) {
24825
+ let q = A[0];
24824
24826
  o.value = t.value.config[q.row][q.col], a.value = [q.col], u.value = [q.row], c.value = t.value.rowConfig[q.row], d.value = t.value.colConfig[q.col], h.value = !0, f.value = !0, o.value && o.value.type && (l.value = [ee.TEXT, ee.FIELD].includes(o.value.type)), Object.entries(p).forEach(([Y, W]) => {
24825
24827
  _[Y] = W;
24826
24828
  }), o.value && Object.entries(o.value).forEach(([Y, W]) => {
24827
- Y === "formatType" ? (_.formatType || (_.formatType = {}), Object.entries(W).forEach(([ne, te]) => {
24828
- _.formatType[ne] = te;
24829
- })) : Y === "style" ? Object.entries(W).forEach(([ne, te]) => {
24830
- _[ne] = te;
24829
+ Y === "formatType" ? (_.formatType || (_.formatType = {}), Object.entries(W).forEach(([ne, ie]) => {
24830
+ _.formatType[ne] = ie;
24831
+ })) : Y === "style" ? Object.entries(W).forEach(([ne, ie]) => {
24832
+ _[ne] = ie;
24831
24833
  }) : _[Y] = W;
24832
24834
  });
24833
24835
  } else {
24834
24836
  o.value = null;
24835
24837
  const q = /* @__PURE__ */ new Set(), Y = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map();
24836
- l.value = !0, V.forEach((ne) => {
24838
+ l.value = !0, A.forEach((ne) => {
24837
24839
  q.add(ne.col), Y.add(ne.row);
24838
- const te = t.value.config[ne.row][ne.col];
24839
- te.type && ![ee.TEXT, ee.FIELD].includes(te.type) && (l.value = !1), Object.entries(te).forEach(([A, _e]) => {
24840
- W.get(A) || W.set(A, /* @__PURE__ */ new Set()), W.get(A).add(_e);
24840
+ const ie = t.value.config[ne.row][ne.col];
24841
+ ie.type && ![ee.TEXT, ee.FIELD].includes(ie.type) && (l.value = !1), Object.entries(ie).forEach(([V, _e]) => {
24842
+ W.get(V) || W.set(V, /* @__PURE__ */ new Set()), W.get(V).add(_e);
24841
24843
  });
24842
- }), l.value && Object.entries(p).forEach(([ne, te]) => {
24843
- _[ne] = te;
24844
+ }), l.value && Object.entries(p).forEach(([ne, ie]) => {
24845
+ _[ne] = ie;
24844
24846
  }), a.value = [...q], u.value = [...Y], f.value = q.size === 1, h.value = Y.size === 1, f ? d.value = t.value.colConfig[a.value[0]] : d.value = null, h ? c.value = t.value.rowConfig[u.value[0]] : c.value = null;
24845
24847
  }
24846
- V && V.length === 0 && t.value && (r.value = !1, o.value = null, l.value = !1, a.value = [], u.value = [], h.value = !1, c.value = null, f.value = !1, d.value = null);
24848
+ A && A.length === 0 && t.value && (r.value = !1, o.value = null, l.value = !1, a.value = [], u.value = [], h.value = !1, c.value = null, f.value = !1, d.value = null);
24847
24849
  },
24848
24850
  {
24849
24851
  immediate: !0,
@@ -24851,25 +24853,25 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24851
24853
  }
24852
24854
  );
24853
24855
  const w = ue("");
24854
- function P(V, v, q) {
24856
+ function P(A, v, q) {
24855
24857
  v === "cell" && s.value.forEach((Y) => {
24856
- if (ni(t.value.config[Y.row][Y.col], q, V), q === "data" && !V && o.value && (o.value.isGroup = !1, o.value.isRowColCombine = !1), q === "fun") {
24857
- const { isError: W, result: ne } = ig(V, !1);
24858
+ if (ni(t.value.config[Y.row][Y.col], q, A), q === "data" && !A && o.value && (o.value.isGroup = !1, o.value.isRowColCombine = !1), q === "fun") {
24859
+ const { isError: W, result: ne } = ig(A, !1);
24858
24860
  W ? w.value = ne : w.value = "";
24859
24861
  }
24860
24862
  if (q === "type" && t.value)
24861
- switch (V) {
24863
+ switch (A) {
24862
24864
  case ee.TEXT:
24863
24865
  ni(t.value.config[Y.row][Y.col], "data", ""), ni(t.value.config[Y.row][Y.col], "fun", ""), ni(t.value.config[Y.row][Y.col], "format", Re.TEXT), _.format = Re.TEXT;
24864
24866
  }
24865
24867
  }), v === "row" && u.value.forEach((Y) => {
24866
- ni(t.value.rowConfig[Y], q, V), q === "data" && c.value && !V && (c.value.loop = !1, c.value.dataIndex = 0);
24868
+ ni(t.value.rowConfig[Y], q, A), q === "data" && c.value && !A && (c.value.loop = !1, c.value.dataIndex = 0);
24867
24869
  }), v === "col" && a.value.forEach((Y) => {
24868
- ni(t.value.colConfig[Y], q, V);
24870
+ ni(t.value.colConfig[Y], q, A);
24869
24871
  });
24870
24872
  }
24871
24873
  const g = be(() => t.value ? t.value.data.source : []), Z = be(() => {
24872
- let V = [];
24874
+ let A = [];
24873
24875
  if (r.value) {
24874
24876
  if (h.value) {
24875
24877
  let v = g.value.find((q) => {
@@ -24878,7 +24880,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24878
24880
  });
24879
24881
  if (v = Ol(v), v && v.columns) {
24880
24882
  const q = v.columns.map((Y) => (Y.name = `行:${v.name}/${Y.name}`, Y.columnName = `row:${Y.columnName}`, Y));
24881
- V = V.concat(q);
24883
+ A = A.concat(q);
24882
24884
  }
24883
24885
  }
24884
24886
  if (f.value) {
@@ -24888,28 +24890,28 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24888
24890
  });
24889
24891
  if (v = Ol(v), v && v.columns) {
24890
24892
  const q = v.columns.map((Y) => (Y.name = `列:${v.name}/${Y.name}`, Y.columnName = `col:${Y.columnName}`, Y));
24891
- V = V.concat(q);
24893
+ A = A.concat(q);
24892
24894
  }
24893
24895
  }
24894
24896
  }
24895
- return V;
24897
+ return A;
24896
24898
  });
24897
24899
  function T() {
24898
- t.value && (t.value.colConfig.forEach((V, v) => {
24899
- V.index = v;
24900
- }), t.value.rowConfig.forEach((V, v) => {
24901
- V.index = v;
24902
- }), t.value.config.forEach((V, v) => {
24903
- V.forEach((q, Y) => {
24900
+ t.value && (t.value.colConfig.forEach((A, v) => {
24901
+ A.index = v;
24902
+ }), t.value.rowConfig.forEach((A, v) => {
24903
+ A.index = v;
24904
+ }), t.value.config.forEach((A, v) => {
24905
+ A.forEach((q, Y) => {
24904
24906
  q.row = v, q.col = Y, q.colSpan = 1, q.rowSpan = 1;
24905
24907
  });
24906
24908
  }));
24907
24909
  }
24908
24910
  function E() {
24909
- var V, v;
24911
+ var A, v;
24910
24912
  if (a.value.length > 0) {
24911
24913
  let q = Math.min(...a.value);
24912
- q >= 0 && ((V = t.value) == null || V.colConfig.splice(q, 0, {
24914
+ q >= 0 && ((A = t.value) == null || A.colConfig.splice(q, 0, {
24913
24915
  size: 80
24914
24916
  }), (v = t.value) == null || v.config.forEach((Y) => {
24915
24917
  Y.splice(q, 0, {
@@ -24921,18 +24923,18 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24921
24923
  }
24922
24924
  }
24923
24925
  function L() {
24924
- a.value.length > 0 && (a.value.forEach((V) => {
24926
+ a.value.length > 0 && (a.value.forEach((A) => {
24925
24927
  var v, q;
24926
- (v = t.value) == null || v.colConfig.splice(V, 1), (q = t.value) == null || q.config.forEach((Y) => {
24927
- Y.splice(V, 1);
24928
+ (v = t.value) == null || v.colConfig.splice(A, 1), (q = t.value) == null || q.config.forEach((Y) => {
24929
+ Y.splice(A, 1);
24928
24930
  });
24929
24931
  }), s.value = []), T();
24930
24932
  }
24931
24933
  function I() {
24932
- var V, v;
24934
+ var A, v;
24933
24935
  if (a.value.length > 0) {
24934
24936
  let q = Math.max(...a.value) + 1;
24935
- q > 0 && ((V = t.value) == null || V.colConfig.splice(q, 0, {
24937
+ q > 0 && ((A = t.value) == null || A.colConfig.splice(q, 0, {
24936
24938
  size: 80
24937
24939
  }), (v = t.value) == null || v.config.forEach((Y) => {
24938
24940
  Y.splice(q, 0, {
@@ -24944,10 +24946,10 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24944
24946
  }
24945
24947
  }
24946
24948
  function N() {
24947
- var V, v;
24949
+ var A, v;
24948
24950
  if (u.value.length > 0) {
24949
24951
  let q = Math.min(...u.value);
24950
- q >= 0 && ((V = t.value) == null || V.rowConfig.splice(q, 0, {
24952
+ q >= 0 && ((A = t.value) == null || A.rowConfig.splice(q, 0, {
24951
24953
  size: 40
24952
24954
  }), (v = t.value) == null || v.config.splice(
24953
24955
  q,
@@ -24961,16 +24963,16 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24961
24963
  }
24962
24964
  }
24963
24965
  function se() {
24964
- u.value.length > 0 && (u.value.forEach((V) => {
24966
+ u.value.length > 0 && (u.value.forEach((A) => {
24965
24967
  var v, q;
24966
- (v = t.value) == null || v.rowConfig.splice(V, 1), (q = t.value) == null || q.config.splice(V, 1);
24968
+ (v = t.value) == null || v.rowConfig.splice(A, 1), (q = t.value) == null || q.config.splice(A, 1);
24967
24969
  }), s.value = [], T());
24968
24970
  }
24969
24971
  function z() {
24970
- var V, v;
24972
+ var A, v;
24971
24973
  if (u.value.length > 0) {
24972
24974
  let q = Math.max(...u.value) + 1;
24973
- q >= 0 && ((V = t.value) == null || V.rowConfig.splice(q, 0, {
24975
+ q >= 0 && ((A = t.value) == null || A.rowConfig.splice(q, 0, {
24974
24976
  size: 40
24975
24977
  }), (v = t.value) == null || v.config.splice(
24976
24978
  q,
@@ -24983,8 +24985,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24983
24985
  ), T());
24984
24986
  }
24985
24987
  }
24986
- return (V, v) => {
24987
- const q = fe("el-button-group"), Y = fe("el-col"), W = fe("el-option"), ne = fe("el-select"), te = fe("el-input-number");
24988
+ return (A, v) => {
24989
+ const q = fe("el-button-group"), Y = fe("el-col"), W = fe("el-option"), ne = fe("el-select"), ie = fe("el-input-number");
24988
24990
  return U(), K(re, null, [
24989
24991
  b(s) && b(s).length ? (U(), K(re, { key: 0 }, [
24990
24992
  zP,
@@ -25056,8 +25058,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25056
25058
  default: x(() => [
25057
25059
  Q(b(Yi), {
25058
25060
  modelValue: _.type,
25059
- "onUpdate:modelValue": v[0] || (v[0] = (A) => _.type = A),
25060
- onChange: v[1] || (v[1] = (A) => P(A, "cell", "type"))
25061
+ "onUpdate:modelValue": v[0] || (v[0] = (V) => _.type = V),
25062
+ onChange: v[1] || (v[1] = (V) => P(V, "cell", "type"))
25061
25063
  }, {
25062
25064
  default: x(() => [
25063
25065
  Q(b(we), { label: "text" }, {
@@ -25106,8 +25108,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25106
25108
  default: x(() => [
25107
25109
  Q(b(Ii), {
25108
25110
  modelValue: o.value.text,
25109
- "onUpdate:modelValue": v[2] || (v[2] = (A) => o.value.text = A),
25110
- onInput: v[3] || (v[3] = (A) => P(A, "cell", "text"))
25111
+ "onUpdate:modelValue": v[2] || (v[2] = (V) => o.value.text = V),
25112
+ onInput: v[3] || (v[3] = (V) => P(V, "cell", "text"))
25111
25113
  }, null, 8, ["modelValue"])
25112
25114
  ]),
25113
25115
  _: 1
@@ -25126,15 +25128,15 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25126
25128
  default: x(() => [
25127
25129
  Q(ne, {
25128
25130
  modelValue: o.value.data,
25129
- "onUpdate:modelValue": v[4] || (v[4] = (A) => o.value.data = A),
25131
+ "onUpdate:modelValue": v[4] || (v[4] = (V) => o.value.data = V),
25130
25132
  clearable: "",
25131
- onInput: v[5] || (v[5] = (A) => P(A, "cell", "data"))
25133
+ onInput: v[5] || (v[5] = (V) => P(V, "cell", "data"))
25132
25134
  }, {
25133
25135
  default: x(() => [
25134
- (U(!0), K(re, null, Fe(b(Z), (A) => (U(), oe(W, {
25135
- key: A.columnName,
25136
- label: A.name,
25137
- value: A.columnName
25136
+ (U(!0), K(re, null, Fe(b(Z), (V) => (U(), oe(W, {
25137
+ key: V.columnName,
25138
+ label: V.name,
25139
+ value: V.columnName
25138
25140
  }, null, 8, ["label", "value"]))), 128))
25139
25141
  ]),
25140
25142
  _: 1
@@ -25149,7 +25151,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25149
25151
  Q(b(Ii), {
25150
25152
  type: "textarea",
25151
25153
  modelValue: o.value.fun,
25152
- "onUpdate:modelValue": v[6] || (v[6] = (A) => o.value.fun = A)
25154
+ "onUpdate:modelValue": v[6] || (v[6] = (V) => o.value.fun = V)
25153
25155
  }, null, 8, ["modelValue"])
25154
25156
  ]),
25155
25157
  _: 1
@@ -25168,8 +25170,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25168
25170
  default: x(() => [
25169
25171
  Q(b(Ii), {
25170
25172
  modelValue: o.value.fun,
25171
- "onUpdate:modelValue": v[7] || (v[7] = (A) => o.value.fun = A),
25172
- onInput: v[8] || (v[8] = (A) => P(A, "cell", "fun"))
25173
+ "onUpdate:modelValue": v[7] || (v[7] = (V) => o.value.fun = V),
25174
+ onInput: v[8] || (v[8] = (V) => P(V, "cell", "fun"))
25173
25175
  }, null, 8, ["modelValue"])
25174
25176
  ]),
25175
25177
  _: 1
@@ -25185,7 +25187,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25185
25187
  default: x(() => [
25186
25188
  Q(b(yh), {
25187
25189
  modelValue: o.value.isGroup,
25188
- "onUpdate:modelValue": v[9] || (v[9] = (A) => o.value.isGroup = A)
25190
+ "onUpdate:modelValue": v[9] || (v[9] = (V) => o.value.isGroup = V)
25189
25191
  }, {
25190
25192
  default: x(() => [
25191
25193
  B("分组")
@@ -25194,7 +25196,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25194
25196
  }, 8, ["modelValue"]),
25195
25197
  Q(b(yh), {
25196
25198
  modelValue: o.value.isRowColCombine,
25197
- "onUpdate:modelValue": v[10] || (v[10] = (A) => o.value.isRowColCombine = A)
25199
+ "onUpdate:modelValue": v[10] || (v[10] = (V) => o.value.isRowColCombine = V)
25198
25200
  }, {
25199
25201
  default: x(() => [
25200
25202
  B("行列组合")
@@ -25217,8 +25219,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25217
25219
  default: x(() => [
25218
25220
  Q(b(Sh), {
25219
25221
  modelValue: _.color,
25220
- "onUpdate:modelValue": v[11] || (v[11] = (A) => _.color = A),
25221
- onChange: v[12] || (v[12] = (A) => P(A, "cell", "style.color"))
25222
+ "onUpdate:modelValue": v[11] || (v[11] = (V) => _.color = V),
25223
+ onChange: v[12] || (v[12] = (V) => P(V, "cell", "style.color"))
25222
25224
  }, null, 8, ["modelValue"])
25223
25225
  ]),
25224
25226
  _: 1
@@ -25232,8 +25234,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25232
25234
  default: x(() => [
25233
25235
  Q(b(Sh), {
25234
25236
  modelValue: _.backgroundColor,
25235
- "onUpdate:modelValue": v[13] || (v[13] = (A) => _.backgroundColor = A),
25236
- onChange: v[14] || (v[14] = (A) => P(A, "cell", "style.backgroundColor"))
25237
+ "onUpdate:modelValue": v[13] || (v[13] = (V) => _.backgroundColor = V),
25238
+ onChange: v[14] || (v[14] = (V) => P(V, "cell", "style.backgroundColor"))
25237
25239
  }, null, 8, ["modelValue"])
25238
25240
  ]),
25239
25241
  _: 1
@@ -25252,8 +25254,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25252
25254
  "active-value": "bold",
25253
25255
  "inactive-value": "normal",
25254
25256
  modelValue: _.fontWeight,
25255
- "onUpdate:modelValue": v[15] || (v[15] = (A) => _.fontWeight = A),
25256
- onChange: v[16] || (v[16] = (A) => P(A, "cell", "style.fontWeight"))
25257
+ "onUpdate:modelValue": v[15] || (v[15] = (V) => _.fontWeight = V),
25258
+ onChange: v[16] || (v[16] = (V) => P(V, "cell", "style.fontWeight"))
25257
25259
  }, null, 8, ["modelValue"])
25258
25260
  ]),
25259
25261
  _: 1
@@ -25265,13 +25267,13 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25265
25267
  default: x(() => [
25266
25268
  Q(b(he), { label: "字体大小" }, {
25267
25269
  default: x(() => [
25268
- Q(te, {
25270
+ Q(ie, {
25269
25271
  modelValue: _.fontSize,
25270
- "onUpdate:modelValue": v[17] || (v[17] = (A) => _.fontSize = A),
25272
+ "onUpdate:modelValue": v[17] || (v[17] = (V) => _.fontSize = V),
25271
25273
  "controls-position": "right",
25272
25274
  min: 12,
25273
25275
  step: 2,
25274
- onChange: v[18] || (v[18] = (A) => P(A, "cell", "style.fontSize"))
25276
+ onChange: v[18] || (v[18] = (V) => P(V, "cell", "style.fontSize"))
25275
25277
  }, null, 8, ["modelValue"])
25276
25278
  ]),
25277
25279
  _: 1
@@ -25285,8 +25287,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25285
25287
  default: x(() => [
25286
25288
  Q(ne, {
25287
25289
  modelValue: _.fontFamily,
25288
- "onUpdate:modelValue": v[19] || (v[19] = (A) => _.fontFamily = A),
25289
- onChange: v[20] || (v[20] = (A) => P(A, "cell", "style.fontFamily")),
25290
+ "onUpdate:modelValue": v[19] || (v[19] = (V) => _.fontFamily = V),
25291
+ onChange: v[20] || (v[20] = (V) => P(V, "cell", "style.fontFamily")),
25290
25292
  clearable: ""
25291
25293
  }, {
25292
25294
  default: x(() => [
@@ -25359,8 +25361,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25359
25361
  default: x(() => [
25360
25362
  Q(b(Yi), {
25361
25363
  modelValue: _.textAlign,
25362
- "onUpdate:modelValue": v[21] || (v[21] = (A) => _.textAlign = A),
25363
- onChange: v[22] || (v[22] = (A) => P(A, "cell", "style.textAlign"))
25364
+ "onUpdate:modelValue": v[21] || (v[21] = (V) => _.textAlign = V),
25365
+ onChange: v[22] || (v[22] = (V) => P(V, "cell", "style.textAlign"))
25364
25366
  }, {
25365
25367
  default: x(() => [
25366
25368
  Q(b(we), {
@@ -25405,8 +25407,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25405
25407
  default: x(() => [
25406
25408
  Q(b(Yi), {
25407
25409
  modelValue: _.verticalAlign,
25408
- "onUpdate:modelValue": v[23] || (v[23] = (A) => _.verticalAlign = A),
25409
- onChange: v[24] || (v[24] = (A) => P(A, "cell", "style.verticalAlign"))
25410
+ "onUpdate:modelValue": v[23] || (v[23] = (V) => _.verticalAlign = V),
25411
+ onChange: v[24] || (v[24] = (V) => P(V, "cell", "style.verticalAlign"))
25410
25412
  }, {
25411
25413
  default: x(() => [
25412
25414
  Q(b(we), {
@@ -25451,8 +25453,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25451
25453
  default: x(() => [
25452
25454
  Q(b(Yi), {
25453
25455
  modelValue: _.format,
25454
- "onUpdate:modelValue": v[25] || (v[25] = (A) => _.format = A),
25455
- onChange: v[26] || (v[26] = (A) => P(A, "cell", "format"))
25456
+ "onUpdate:modelValue": v[25] || (v[25] = (V) => _.format = V),
25457
+ onChange: v[26] || (v[26] = (V) => P(V, "cell", "format"))
25456
25458
  }, {
25457
25459
  default: x(() => [
25458
25460
  Q(b(we), {
@@ -25542,10 +25544,10 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25542
25544
  default: x(() => [
25543
25545
  Q(b(he), { label: "小数位数" }, {
25544
25546
  default: x(() => [
25545
- Q(te, {
25547
+ Q(ie, {
25546
25548
  modelValue: _.formatType.numberDecimal,
25547
- "onUpdate:modelValue": v[27] || (v[27] = (A) => _.formatType.numberDecimal = A),
25548
- onInput: v[28] || (v[28] = (A) => P(A, "cell", "formatType.numberDecimal")),
25549
+ "onUpdate:modelValue": v[27] || (v[27] = (V) => _.formatType.numberDecimal = V),
25550
+ onInput: v[28] || (v[28] = (V) => P(V, "cell", "formatType.numberDecimal")),
25549
25551
  min: 0,
25550
25552
  max: 6,
25551
25553
  "controls-position": "right"
@@ -25564,8 +25566,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25564
25566
  default: x(() => [
25565
25567
  Q(b(ii), {
25566
25568
  modelValue: _.formatType.numberUseGrouping,
25567
- "onUpdate:modelValue": v[29] || (v[29] = (A) => _.formatType.numberUseGrouping = A),
25568
- onChange: v[30] || (v[30] = (A) => P(A, "cell", "formatType.numberUseGrouping"))
25569
+ "onUpdate:modelValue": v[29] || (v[29] = (V) => _.formatType.numberUseGrouping = V),
25570
+ onChange: v[30] || (v[30] = (V) => P(V, "cell", "formatType.numberUseGrouping"))
25569
25571
  }, null, 8, ["modelValue"])
25570
25572
  ]),
25571
25573
  _: 1
@@ -25581,8 +25583,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25581
25583
  default: x(() => [
25582
25584
  Q(b(Yi), {
25583
25585
  modelValue: _.formatType.currencySymbol,
25584
- "onUpdate:modelValue": v[31] || (v[31] = (A) => _.formatType.currencySymbol = A),
25585
- onChange: v[32] || (v[32] = (A) => P(A, "cell", "formatType.currencySymbol"))
25586
+ "onUpdate:modelValue": v[31] || (v[31] = (V) => _.formatType.currencySymbol = V),
25587
+ onChange: v[32] || (v[32] = (V) => P(V, "cell", "formatType.currencySymbol"))
25586
25588
  }, {
25587
25589
  default: x(() => [
25588
25590
  Q(b(we), { value: "¥" }, {
@@ -25627,8 +25629,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25627
25629
  default: x(() => [
25628
25630
  Q(b(Yi), {
25629
25631
  modelValue: _.formatType.scientificNotation,
25630
- "onUpdate:modelValue": v[33] || (v[33] = (A) => _.formatType.scientificNotation = A),
25631
- onChange: v[34] || (v[34] = (A) => P(A, "cell", "formatType.scientificNotation"))
25632
+ "onUpdate:modelValue": v[33] || (v[33] = (V) => _.formatType.scientificNotation = V),
25633
+ onChange: v[34] || (v[34] = (V) => P(V, "cell", "formatType.scientificNotation"))
25632
25634
  }, {
25633
25635
  default: x(() => [
25634
25636
  Q(b(we), { label: "E" }, {
@@ -25656,13 +25658,13 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25656
25658
  default: x(() => [
25657
25659
  Q(b(he), { label: "指数精度" }, {
25658
25660
  default: x(() => [
25659
- Q(te, {
25661
+ Q(ie, {
25660
25662
  min: 0,
25661
25663
  max: 20,
25662
25664
  "controls-position": "right",
25663
25665
  modelValue: _.formatType.digits,
25664
- "onUpdate:modelValue": v[35] || (v[35] = (A) => _.formatType.digits = A),
25665
- onChange: v[36] || (v[36] = (A) => P(A, "cell", "formatType.digits"))
25666
+ "onUpdate:modelValue": v[35] || (v[35] = (V) => _.formatType.digits = V),
25667
+ onChange: v[36] || (v[36] = (V) => P(V, "cell", "formatType.digits"))
25666
25668
  }, null, 8, ["modelValue"])
25667
25669
  ]),
25668
25670
  _: 1
@@ -25678,8 +25680,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25678
25680
  Q(ne, {
25679
25681
  filterable: "",
25680
25682
  modelValue: _.formatType.date,
25681
- "onUpdate:modelValue": v[37] || (v[37] = (A) => _.formatType.date = A),
25682
- onChange: v[38] || (v[38] = (A) => P(A, "cell", "formatType.date"))
25683
+ "onUpdate:modelValue": v[37] || (v[37] = (V) => _.formatType.date = V),
25684
+ onChange: v[38] || (v[38] = (V) => P(V, "cell", "formatType.date"))
25683
25685
  }, {
25684
25686
  default: x(() => [
25685
25687
  Q(W, { value: "YYYY-MM-DD HH:mm:ss" }),
@@ -25715,7 +25717,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25715
25717
  Q(Ni, {
25716
25718
  height: 100,
25717
25719
  modelValue: o.value.customRender,
25718
- "onUpdate:modelValue": v[39] || (v[39] = (A) => o.value.customRender = A)
25720
+ "onUpdate:modelValue": v[39] || (v[39] = (V) => o.value.customRender = V)
25719
25721
  }, {
25720
25722
  "pre-code": x(() => [
25721
25723
  B("function (cell,data){")
@@ -25774,14 +25776,14 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25774
25776
  default: x(() => [
25775
25777
  Q(b(he), { label: "行高" }, {
25776
25778
  default: x(() => [
25777
- Q(te, {
25779
+ Q(ie, {
25778
25780
  "controls-position": "right",
25779
25781
  modelValue: _.rowSize,
25780
- "onUpdate:modelValue": v[40] || (v[40] = (A) => _.rowSize = A),
25781
- onChange: v[41] || (v[41] = (A) => P(A, "row", "size"))
25782
+ "onUpdate:modelValue": v[40] || (v[40] = (V) => _.rowSize = V),
25783
+ onChange: v[41] || (v[41] = (V) => P(V, "row", "size"))
25782
25784
  }, null, 8, ["modelValue"]),
25783
25785
  Q(b($e), {
25784
- onClick: v[42] || (v[42] = (A) => P(25, "row", "size"))
25786
+ onClick: v[42] || (v[42] = (V) => P(25, "row", "size"))
25785
25787
  }, {
25786
25788
  default: x(() => [
25787
25789
  B("重置")
@@ -25800,8 +25802,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25800
25802
  default: x(() => [
25801
25803
  Q(b(ii), {
25802
25804
  modelValue: _.rowFixed,
25803
- "onUpdate:modelValue": v[43] || (v[43] = (A) => _.rowFixed = A),
25804
- onChange: v[44] || (v[44] = (A) => P(A, "row", "isFixed"))
25805
+ "onUpdate:modelValue": v[43] || (v[43] = (V) => _.rowFixed = V),
25806
+ onChange: v[44] || (v[44] = (V) => P(V, "row", "isFixed"))
25805
25807
  }, null, 8, ["modelValue"])
25806
25808
  ]),
25807
25809
  _: 1
@@ -25816,16 +25818,16 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25816
25818
  default: x(() => [
25817
25819
  Q(ne, {
25818
25820
  modelValue: c.value.data,
25819
- "onUpdate:modelValue": v[45] || (v[45] = (A) => c.value.data = A),
25820
- onChange: v[46] || (v[46] = (A) => P(A, "row", "data")),
25821
+ "onUpdate:modelValue": v[45] || (v[45] = (V) => c.value.data = V),
25822
+ onChange: v[46] || (v[46] = (V) => P(V, "row", "data")),
25821
25823
  clearable: "",
25822
25824
  filterable: ""
25823
25825
  }, {
25824
25826
  default: x(() => [
25825
- (U(!0), K(re, null, Fe(b(g), (A) => (U(), oe(W, {
25826
- key: A.key,
25827
- label: A.name,
25828
- value: A.key
25827
+ (U(!0), K(re, null, Fe(b(g), (V) => (U(), oe(W, {
25828
+ key: V.key,
25829
+ label: V.name,
25830
+ value: V.key
25829
25831
  }, null, 8, ["label", "value"]))), 128))
25830
25832
  ]),
25831
25833
  _: 1
@@ -25842,8 +25844,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25842
25844
  default: x(() => [
25843
25845
  Q(b(ii), {
25844
25846
  modelValue: c.value.loop,
25845
- "onUpdate:modelValue": v[47] || (v[47] = (A) => c.value.loop = A),
25846
- onChange: v[48] || (v[48] = (A) => P(A, "row", "loop"))
25847
+ "onUpdate:modelValue": v[47] || (v[47] = (V) => c.value.loop = V),
25848
+ onChange: v[48] || (v[48] = (V) => P(V, "row", "loop"))
25847
25849
  }, null, 8, ["modelValue"])
25848
25850
  ]),
25849
25851
  _: 1
@@ -25858,11 +25860,11 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25858
25860
  default: x(() => [
25859
25861
  Q(b(he), { label: "数据下标" }, {
25860
25862
  default: x(() => [
25861
- Q(te, {
25863
+ Q(ie, {
25862
25864
  min: 0,
25863
25865
  modelValue: c.value.dataIndex,
25864
- "onUpdate:modelValue": v[49] || (v[49] = (A) => c.value.dataIndex = A),
25865
- onInput: v[50] || (v[50] = (A) => P(A, "row", "dataIndex"))
25866
+ "onUpdate:modelValue": v[49] || (v[49] = (V) => c.value.dataIndex = V),
25867
+ onInput: v[50] || (v[50] = (V) => P(V, "row", "dataIndex"))
25866
25868
  }, null, 8, ["modelValue"])
25867
25869
  ]),
25868
25870
  _: 1
@@ -25913,13 +25915,13 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25913
25915
  default: x(() => [
25914
25916
  Q(b(he), { label: "列宽" }, {
25915
25917
  default: x(() => [
25916
- Q(te, {
25918
+ Q(ie, {
25917
25919
  "controls-position": "right",
25918
25920
  modelValue: _.colSize,
25919
- "onUpdate:modelValue": v[51] || (v[51] = (A) => _.colSize = A)
25921
+ "onUpdate:modelValue": v[51] || (v[51] = (V) => _.colSize = V)
25920
25922
  }, null, 8, ["modelValue"]),
25921
25923
  Q(b($e), {
25922
- onClick: v[52] || (v[52] = (A) => _.colSize = 80)
25924
+ onClick: v[52] || (v[52] = (V) => _.colSize = 80)
25923
25925
  }, {
25924
25926
  default: x(() => [
25925
25927
  B("重置")
@@ -25938,8 +25940,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25938
25940
  default: x(() => [
25939
25941
  Q(b(ii), {
25940
25942
  modelValue: _.colFixed,
25941
- "onUpdate:modelValue": v[53] || (v[53] = (A) => _.colFixed = A),
25942
- onChange: v[54] || (v[54] = (A) => P(A, "col", "isFixed"))
25943
+ "onUpdate:modelValue": v[53] || (v[53] = (V) => _.colFixed = V),
25944
+ onChange: v[54] || (v[54] = (V) => P(V, "col", "isFixed"))
25943
25945
  }, null, 8, ["modelValue"])
25944
25946
  ]),
25945
25947
  _: 1
@@ -25954,15 +25956,15 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25954
25956
  default: x(() => [
25955
25957
  Q(ne, {
25956
25958
  modelValue: d.value.data,
25957
- "onUpdate:modelValue": v[55] || (v[55] = (A) => d.value.data = A),
25958
- onChange: v[56] || (v[56] = (A) => P(A, "col", "data")),
25959
+ "onUpdate:modelValue": v[55] || (v[55] = (V) => d.value.data = V),
25960
+ onChange: v[56] || (v[56] = (V) => P(V, "col", "data")),
25959
25961
  clearable: ""
25960
25962
  }, {
25961
25963
  default: x(() => [
25962
- (U(!0), K(re, null, Fe(b(g), (A) => (U(), oe(W, {
25963
- key: A.key,
25964
- label: A.name,
25965
- value: A.key
25964
+ (U(!0), K(re, null, Fe(b(g), (V) => (U(), oe(W, {
25965
+ key: V.key,
25966
+ label: V.name,
25967
+ value: V.key
25966
25968
  }, null, 8, ["label", "value"]))), 128))
25967
25969
  ]),
25968
25970
  _: 1
@@ -25979,8 +25981,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25979
25981
  default: x(() => [
25980
25982
  Q(b(ii), {
25981
25983
  modelValue: d.value.loop,
25982
- "onUpdate:modelValue": v[57] || (v[57] = (A) => d.value.loop = A),
25983
- onChange: v[58] || (v[58] = (A) => P(A, "col", "loop"))
25984
+ "onUpdate:modelValue": v[57] || (v[57] = (V) => d.value.loop = V),
25985
+ onChange: v[58] || (v[58] = (V) => P(V, "col", "loop"))
25984
25986
  }, null, 8, ["modelValue"])
25985
25987
  ]),
25986
25988
  _: 1
@@ -25995,11 +25997,11 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25995
25997
  default: x(() => [
25996
25998
  Q(b(he), { label: "数据下标" }, {
25997
25999
  default: x(() => [
25998
- Q(te, {
26000
+ Q(ie, {
25999
26001
  min: 0,
26000
26002
  modelValue: d.value.dataIndex,
26001
- "onUpdate:modelValue": v[59] || (v[59] = (A) => d.value.dataIndex = A),
26002
- onInput: v[60] || (v[60] = (A) => P(A, "col", "dataIndex"))
26003
+ "onUpdate:modelValue": v[59] || (v[59] = (V) => d.value.dataIndex = V),
26004
+ onInput: v[60] || (v[60] = (V) => P(V, "col", "dataIndex"))
26003
26005
  }, null, 8, ["modelValue"])
26004
26006
  ]),
26005
26007
  _: 1
@@ -26968,7 +26970,7 @@ const _w = function(n, e) {
26968
26970
  }
26969
26971
  return un(() => {
26970
26972
  }), (w, P) => {
26971
- const g = fe("el-input"), Z = fe("el-checkbox"), T = fe("el-checkbox-group"), E = fe("el-tag"), L = fe("el-col"), I = fe("el-switch"), N = fe("el-form-item"), se = fe("el-form"), z = fe("el-row"), V = fe("el-text");
26973
+ const g = fe("el-input"), Z = fe("el-checkbox"), T = fe("el-checkbox-group"), E = fe("el-tag"), L = fe("el-col"), I = fe("el-switch"), N = fe("el-form-item"), se = fe("el-form"), z = fe("el-row"), A = fe("el-text");
26972
26974
  return U(), K(re, null, [
26973
26975
  M("div", Pw, [
26974
26976
  ww,
@@ -27024,19 +27026,19 @@ const _w = function(n, e) {
27024
27026
  }, {
27025
27027
  header: x(() => [
27026
27028
  Iw,
27027
- Q(V, { type: "info" }, {
27029
+ Q(A, { type: "info" }, {
27028
27030
  default: x(() => [
27029
27031
  B("数据处理函数中:")
27030
27032
  ]),
27031
27033
  _: 1
27032
27034
  }),
27033
- Q(V, { type: "warning" }, {
27035
+ Q(A, { type: "warning" }, {
27034
27036
  default: x(() => [
27035
27037
  B("多数据源时 allData 是数组,单数据源是对象;")
27036
27038
  ]),
27037
27039
  _: 1
27038
27040
  }),
27039
- Q(V, { type: "danger" }, {
27041
+ Q(A, { type: "danger" }, {
27040
27042
  default: x(() => [
27041
27043
  B("函数为空则直接返回原始数据;")
27042
27044
  ]),
@@ -27431,8 +27433,8 @@ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" },
27431
27433
  case "params":
27432
27434
  if (s.value && (L === R && se || I === R)) {
27433
27435
  if (L === "column" && se) {
27434
- const { dataSource: z, columnIndex: V } = JSON.parse(se);
27435
- let v = z.columns[V], q = s.value.params.findIndex((W) => W.columnName === v.columnName), Y = {
27436
+ const { dataSource: z, columnIndex: A } = JSON.parse(se);
27437
+ let v = z.columns[A], q = s.value.params.findIndex((W) => W.columnName === v.columnName), Y = {
27436
27438
  key: z.key,
27437
27439
  columnName: v.columnName,
27438
27440
  name: v.name,
@@ -27455,17 +27457,17 @@ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" },
27455
27457
  } else if (!isNaN(N) && k) {
27456
27458
  let z = parseInt(k);
27457
27459
  if (N !== -1 && !isNaN(z) && z > -1) {
27458
- let [V] = s.value.params.splice(z, 1);
27459
- V && s.value.params.splice(N, 0, V);
27460
+ let [A] = s.value.params.splice(z, 1);
27461
+ A && s.value.params.splice(N, 0, A);
27460
27462
  }
27461
27463
  }
27462
27464
  }
27463
27465
  break;
27464
27466
  case "column":
27465
27467
  if (se) {
27466
- let { columnIndex: z, dataSource: V } = JSON.parse(se);
27467
- if (z && V && s.value) {
27468
- let { key: v } = V, { columnName: q } = V.columns[z], { col: Y, row: W } = E.dataset;
27468
+ let { columnIndex: z, dataSource: A } = JSON.parse(se);
27469
+ if (z && A && s.value) {
27470
+ let { key: v } = A, { columnName: q } = A.columns[z], { col: Y, row: W } = E.dataset;
27469
27471
  s.value.config[W][Y].type = ee.FIELD, T.shiftKey ? (s.value.colConfig[Y].data = v, s.value.colConfig[Y].loop = !0, s.value.config[W][Y].data = `col:${q}`) : (s.value.rowConfig[W].data = v, s.value.rowConfig[W].loop = !0, s.value.config[W][Y].data = `row:${q}`), r.value = [
27470
27472
  {
27471
27473
  type: ee.CELL,
@@ -27657,4 +27659,4 @@ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" },
27657
27659
  export {
27658
27660
  xk as default
27659
27661
  };
27660
- //# sourceMappingURL=StatementDesign-df9afb8d.mjs.map
27662
+ //# sourceMappingURL=StatementDesign-a78008d8.mjs.map