@univerjs/engine-formula 0.7.0-beta.0 → 0.7.0-beta.1

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.
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Gu = Object.defineProperty;
2
2
  var Qu = (i, a, e) => a in i ? Gu(i, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[a] = e;
3
3
  var A = (i, a, e) => Qu(i, typeof a != "symbol" ? a + "" : a, e);
4
- import { ObjectMatrix as Ce, CommandType as Ie, RANGE_TYPE as Ze, AbsoluteRefType as we, Tools as ze, createIdentifier as et, Disposable as Ne, IUniverInstanceService as sa, LRUMap as Wu, hashAlgorithm as qu, moveRangeByOffset as aa, isValidRange as Ku, isFormulaString as yt, isFormulaId as Pt, Rectangle as Xa, cellToRange as Xu, Inject as ye, UniverInstanceType as Lr, BooleanNumber as Gi, LocaleService as Zu, LocaleType as wr, numfmt as gt, BuildTextUtils as zu, isRealNum as Q, CellValueType as Rt, toDisposable as Ju, Injector as Qi, sortRules as ec, RTree as Vs, IConfigService as ia, AsyncLock as tc, requestImmediateMacroTask as rc, ICommandService as sr, DataStreamTreeTokenType as ve, DisposableCollection as nc, Optional as sc, Plugin as ac, merge as ic, touchDependencies as os } from "@univerjs/core";
4
+ import { ObjectMatrix as Ce, CommandType as Ie, RANGE_TYPE as ze, AbsoluteRefType as we, Tools as Je, createIdentifier as tt, Disposable as Ne, IUniverInstanceService as sa, LRUMap as Wu, hashAlgorithm as qu, moveRangeByOffset as aa, isValidRange as Ku, isFormulaString as yt, isFormulaId as Pt, Rectangle as Xa, cellToRange as Xu, Inject as ye, UniverInstanceType as Lr, BooleanNumber as Gi, LocaleService as Zu, LocaleType as wr, numfmt as dt, BuildTextUtils as zu, isRealNum as Q, CellValueType as Rt, toDisposable as Ju, Injector as Qi, sortRules as ec, RTree as Vs, IConfigService as ia, AsyncLock as tc, requestImmediateMacroTask as rc, ICommandService as sr, DataStreamTreeTokenType as ve, DisposableCollection as nc, Optional as sc, Plugin as ac, merge as ic, touchDependencies as os } from "@univerjs/core";
5
5
  import { Subject as ur, BehaviorSubject as Wi, distinctUntilChanged as qi, combineLatest as oc, map as uc, Observable as cc, shareReplay as lc } from "rxjs";
6
6
  import { isTextFormat as fc } from "@univerjs/engine-numfmt";
7
7
  import { DataSyncPrimaryController as hc } from "@univerjs/rpc";
@@ -21,7 +21,7 @@ function Za(i, a = 0, e = 0) {
21
21
  function Ib(i) {
22
22
  return i.isError() ? i.getValue() : i.isReferenceObject() ? i.toArrayValueObject().toValue() : i.isArray() ? i.toValue() : i.getValue();
23
23
  }
24
- var er = /* @__PURE__ */ ((i) => (i.FALSE = "FALSE", i.TRUE = "TRUE", i))(er || {}), xt = /* @__PURE__ */ ((i) => (i[i.SUCCESS = 0] = "SUCCESS", i[i.ERROR = 1] = "ERROR", i))(xt || {}), ut = /* @__PURE__ */ ((i) => (i[i.FRONT = 0] = "FRONT", i[i.BACK = 1] = "BACK", i))(ut || {});
24
+ var er = /* @__PURE__ */ ((i) => (i.FALSE = "FALSE", i.TRUE = "TRUE", i))(er || {}), xt = /* @__PURE__ */ ((i) => (i[i.SUCCESS = 0] = "SUCCESS", i[i.ERROR = 1] = "ERROR", i))(xt || {}), ct = /* @__PURE__ */ ((i) => (i[i.FRONT = 0] = "FRONT", i[i.BACK = 1] = "BACK", i))(ct || {});
25
25
  function gc(i, a, e, t, r) {
26
26
  for (let n = 0, s = i.length; n < s; n++) {
27
27
  const o = i[n];
@@ -58,7 +58,7 @@ const nn = /* @__PURE__ */ new Map([
58
58
  "<="
59
59
  /* LESS_THAN_OR_EQUAL */
60
60
  ]);
61
- var K = /* @__PURE__ */ ((i) => (i.OPEN_BRACKET = "(", i.CLOSE_BRACKET = ")", i.COMMA = ",", i.SINGLE_QUOTATION = "'", i.DOUBLE_QUOTATION = '"', i.OPEN_BRACES = "{", i.CLOSE_BRACES = "}", i.COLON = ":", i.OPEN_SQUARE_BRACKET = "[", i.CLOSE_SQUARE_BRACKET = "]", i))(K || {}), Je = /* @__PURE__ */ ((i) => (i.PERCENTAGE = "%", i.POUND = "#", i))(Je || {});
61
+ var K = /* @__PURE__ */ ((i) => (i.OPEN_BRACKET = "(", i.CLOSE_BRACKET = ")", i.COMMA = ",", i.SINGLE_QUOTATION = "'", i.DOUBLE_QUOTATION = '"', i.OPEN_BRACES = "{", i.CLOSE_BRACES = "}", i.COLON = ":", i.OPEN_SQUARE_BRACKET = "[", i.CLOSE_SQUARE_BRACKET = "]", i))(K || {}), et = /* @__PURE__ */ ((i) => (i.PERCENTAGE = "%", i.POUND = "#", i))(et || {});
62
62
  const us = /* @__PURE__ */ new Set([
63
63
  "%",
64
64
  "#"
@@ -69,7 +69,7 @@ const _c = " ", Ki = [
69
69
  ...Object.values($),
70
70
  ...Object.values(X),
71
71
  ...Object.values(K),
72
- ...Object.values(Je),
72
+ ...Object.values(et),
73
73
  ...Object.values(Me)
74
74
  ];
75
75
  function sn(i) {
@@ -127,8 +127,8 @@ const yc = /* @__PURE__ */ new Set([
127
127
  K.COLON,
128
128
  K.OPEN_BRACES,
129
129
  K.OPEN_SQUARE_BRACKET,
130
- Je.PERCENTAGE,
131
- Je.POUND
130
+ et.PERCENTAGE,
131
+ et.POUND
132
132
  ]);
133
133
  function Rc(i) {
134
134
  return yc.has(i);
@@ -161,7 +161,7 @@ function Vc(i) {
161
161
  }
162
162
  return a;
163
163
  }
164
- const Xi = '\\[([^\\[\\]\\/?:"<>|*\\\\]+)\\]', Ja = new RegExp(Xi), Nc = "((?![\\[\\]\\/?*\\\\]).)*!", Tt = "$", oa = "\\s*?:\\s*?", gn = "[A-Za-z]+", dn = "[1-9][0-9]*", Rr = `'?(${Xi})?(${Nc})?'?`, Ns = `\\${Tt}?${gn}\\${Tt}?${dn}`, Oc = `^(${Me.AT})?${Rr}${Ns}${oa}${Ns}$`, ei = new RegExp(Oc), Mc = `^${Rr}\\s*?${Ns}(${Je.POUND})?$`, ti = new RegExp(Mc), wc = `^${Rr}\\${Tt}?${dn}${oa}\\${Tt}?${dn}$`, ri = new RegExp(wc), Sc = `^${Rr}\\${Tt}?${gn}${oa}\\${Tt}?${gn}$`, ni = new RegExp(Sc), Dc = `^${Rr}\\s*?\\${Tt}?${dn}$`, si = new RegExp(Dc), Lc = `^${Rr}\\s*?\\${Tt}?${gn}$`, ai = new RegExp(Lc), Pc = "{.*?}", ii = new RegExp(Pc, "g");
164
+ const Xi = '\\[([^\\[\\]\\/?:"<>|*\\\\]+)\\]', Ja = new RegExp(Xi), Nc = "((?![\\[\\]\\/?*\\\\]).)*!", Tt = "$", oa = "\\s*?:\\s*?", gn = "[A-Za-z]+", dn = "[1-9][0-9]*", Rr = `'?(${Xi})?(${Nc})?'?`, Ns = `\\${Tt}?${gn}\\${Tt}?${dn}`, Oc = `^(${Me.AT})?${Rr}${Ns}${oa}${Ns}$`, ei = new RegExp(Oc), Mc = `^${Rr}\\s*?${Ns}(${et.POUND})?$`, ti = new RegExp(Mc), wc = `^${Rr}\\${Tt}?${dn}${oa}\\${Tt}?${dn}$`, ri = new RegExp(wc), Sc = `^${Rr}\\${Tt}?${gn}${oa}\\${Tt}?${gn}$`, ni = new RegExp(Sc), Dc = `^${Rr}\\s*?\\${Tt}?${dn}$`, si = new RegExp(Dc), Lc = `^${Rr}\\s*?\\${Tt}?${gn}$`, ai = new RegExp(Lc), Pc = "{.*?}", ii = new RegExp(Pc, "g");
165
165
  function Br(i) {
166
166
  return ti.lastIndex = 0, ti.test(i);
167
167
  }
@@ -199,7 +199,7 @@ function an(i) {
199
199
  let a = i[0] === "$";
200
200
  const e = i.substring(1);
201
201
  let t = e.indexOf("$") > -1;
202
- return ze.isStringNumber(e) && a && !t && (a = !1, t = !0), a && t ? we.ALL : a ? we.COLUMN : t ? we.ROW : we.NONE;
202
+ return Je.isStringNumber(e) && a && !t && (a = !1, t = !0), a && t ? we.ALL : a ? we.COLUMN : t ? we.ROW : we.NONE;
203
203
  }
204
204
  function $b(i) {
205
205
  const a = i.split("!");
@@ -225,17 +225,17 @@ function fr(i) {
225
225
  endRow: r,
226
226
  startAbsoluteRefType: n,
227
227
  endAbsoluteRefType: s,
228
- rangeType: o = Ze.NORMAL
228
+ rangeType: o = ze.NORMAL
229
229
  } = i, u = oi(n), c = oi(s);
230
- if (o === Ze.ROW || o === Ze.ALL) {
230
+ if (o === ze.ROW || o === ze.ALL) {
231
231
  const h = `${u.rowAbsoluteString}${e + 1}`, d = `${c.rowAbsoluteString}${r + 1}`;
232
232
  return `${h}:${d}`;
233
233
  }
234
- if (o === Ze.COLUMN) {
235
- const h = `${u.columnAbsoluteString}${ze.chatAtABC(a)}`, d = `${c.columnAbsoluteString}${ze.chatAtABC(t)}`;
234
+ if (o === ze.COLUMN) {
235
+ const h = `${u.columnAbsoluteString}${Je.chatAtABC(a)}`, d = `${c.columnAbsoluteString}${Je.chatAtABC(t)}`;
236
236
  return `${h}:${d}`;
237
237
  }
238
- const l = `${u.columnAbsoluteString}${ze.chatAtABC(a)}${u.rowAbsoluteString}${e + 1}`, f = `${c.columnAbsoluteString}${ze.chatAtABC(t)}${c.rowAbsoluteString}${r + 1}`;
238
+ const l = `${u.columnAbsoluteString}${Je.chatAtABC(a)}${u.rowAbsoluteString}${e + 1}`, f = `${c.columnAbsoluteString}${Je.chatAtABC(t)}${c.rowAbsoluteString}${r + 1}`;
239
239
  return l === f ? l : `${l}:${f}`;
240
240
  }
241
241
  function Ic(i, a) {
@@ -249,7 +249,7 @@ function Ms(i) {
249
249
  return a != null && a.length > 0 && e != null && e.length > 0 ? Fc(a, e, t) : e != null && e.length > 0 ? Ic(e, t) : fr(t);
250
250
  }
251
251
  function cs(i) {
252
- const a = Number.parseInt(i.replace(Tc, "")) - 1, e = ze.ABCatNum(i.replace(Bc, "")), t = an(i);
252
+ const a = Number.parseInt(i.replace(Tc, "")) - 1, e = Je.ABCatNum(i.replace(Bc, "")), t = an(i);
253
253
  return {
254
254
  row: a,
255
255
  column: e,
@@ -286,8 +286,8 @@ function Cn(i) {
286
286
  };
287
287
  }
288
288
  const n = a.substring(0, r), s = a.substring(r + 1), o = cs(n), u = cs(s), c = o.row > u.row ? u.row : o.row, l = o.column > u.column ? u.column : o.column, f = o.row > u.row ? o.row : u.row, h = o.column > u.column ? o.column : u.column;
289
- let d = Ze.NORMAL;
290
- return Number.isNaN(c) && Number.isNaN(f) ? d = Ze.COLUMN : Number.isNaN(l) && Number.isNaN(h) && (d = Ze.ROW), {
289
+ let d = ze.NORMAL;
290
+ return Number.isNaN(c) && Number.isNaN(f) ? d = ze.COLUMN : Number.isNaN(l) && Number.isNaN(h) && (d = ze.ROW), {
291
291
  unitId: t,
292
292
  sheetName: e,
293
293
  range: {
@@ -467,7 +467,7 @@ let Ds = class extends Ne {
467
467
  Ds = Wc([
468
468
  qc(0, sa)
469
469
  ], Ds);
470
- const pr = et("univer.formula.defined-names.service"), Hb = (i, a) => {
470
+ const pr = tt("univer.formula.defined-names.service"), Hb = (i, a) => {
471
471
  const { unitId: e, id: t } = a;
472
472
  return {
473
473
  ...i.get(pr).getValueById(e, t),
@@ -573,7 +573,7 @@ class Nt {
573
573
  return a.length <= 64 ? a : qu(a).toString();
574
574
  }
575
575
  }
576
- const ft = "P_1", Ut = "R_1", hr = "L_1", Ir = "LR_1", co = "LO_1", Zc = "LET", Pr = "LAMBDA", zc = "CUBE", Jc = /* @__PURE__ */ new Set(["RAND", "RANDBETWEEN", "NOW", "TODAY"]), Ls = new Nt(1e5);
576
+ const ht = "P_1", Ut = "R_1", hr = "L_1", Ir = "LR_1", co = "LO_1", Zc = "LET", Pr = "LAMBDA", zc = "CUBE", Jc = /* @__PURE__ */ new Set(["RAND", "RANDBETWEEN", "NOW", "TODAY"]), Ls = new Nt(1e5);
577
577
  function mr(i) {
578
578
  const a = Ls.get(i);
579
579
  if (a)
@@ -768,7 +768,7 @@ class ga extends Ne {
768
768
  let s = n.getParent(), o = n;
769
769
  for (; s; ) {
770
770
  const u = s.getToken();
771
- if (u !== ft && !sn(u) && s.getStartIndex() !== -1) {
771
+ if (u !== ht && !sn(u) && s.getStartIndex() !== -1) {
772
772
  const c = s.getChildren().indexOf(o);
773
773
  return {
774
774
  functionName: u,
@@ -795,7 +795,7 @@ class ga extends Ne {
795
795
  let u = o.getParent(), c = 0;
796
796
  for (s[1] === K.OPEN_BRACKET && c++; u; ) {
797
797
  const l = u.getToken();
798
- l !== ft && l !== K.COLON && u.getStartIndex() !== -1 && l.toUpperCase() !== Pr && (t === 0 ? c += 1 : t--), u = u.getParent();
798
+ l !== ht && l !== K.COLON && u.getStartIndex() !== -1 && l.toUpperCase() !== Pr && (t === 0 ? c += 1 : t--), u = u.getParent();
799
799
  }
800
800
  return c;
801
801
  }
@@ -902,7 +902,7 @@ class ga extends Ne {
902
902
  continue;
903
903
  }
904
904
  const C = f.trim(), E = to(C);
905
- r === !0 && C[C.length - 1] === K.DOUBLE_QUOTATION && C[0] !== K.OPEN_BRACES ? (r = !1, this._processPushSequenceNode(t, $e.STRING, f, h, d, _)) : Br(E) && on(E) ? this._processPushSequenceNode(t, $e.REFERENCE, f, h, d, _) : ze.isStringNumber(C) ? this._processPushSequenceNode(t, $e.NUMBER, f, h, d, _) : C.length > 0 && this._processPushSequenceNode(t, $e.FUNCTION, f, h, d, _), (n !== s - 1 || !this._isLastMergeString(l)) && t.push(l);
905
+ r === !0 && C[C.length - 1] === K.DOUBLE_QUOTATION && C[0] !== K.OPEN_BRACES ? (r = !1, this._processPushSequenceNode(t, $e.STRING, f, h, d, _)) : Br(E) && on(E) ? this._processPushSequenceNode(t, $e.REFERENCE, f, h, d, _) : Je.isStringNumber(C) ? this._processPushSequenceNode(t, $e.NUMBER, f, h, d, _) : C.length > 0 && this._processPushSequenceNode(t, $e.FUNCTION, f, h, d, _), (n !== s - 1 || !this._isLastMergeString(l)) && t.push(l);
906
906
  }
907
907
  return this._mergeSequenceNodeReference(t);
908
908
  }
@@ -922,7 +922,7 @@ class ga extends Ne {
922
922
  return this._nodeMaker(e, void 0, t);
923
923
  }
924
924
  _isLastMergeString(e) {
925
- return e === K.DOUBLE_QUOTATION || ze.isStringNumber(e) || !sn(e);
925
+ return e === K.DOUBLE_QUOTATION || Je.isStringNumber(e) || !sn(e);
926
926
  }
927
927
  /**
928
928
  * Merge array and handle ref operations
@@ -1314,7 +1314,7 @@ class ga extends Ne {
1314
1314
  }
1315
1315
  _checkSimilarErrorToken(e, t, r) {
1316
1316
  let n = t;
1317
- if (e !== Je.POUND)
1317
+ if (e !== et.POUND)
1318
1318
  return !0;
1319
1319
  let s = r[++n];
1320
1320
  for (; s === " "; )
@@ -1344,7 +1344,7 @@ class ga extends Ne {
1344
1344
  const c = s[u];
1345
1345
  if (r === u)
1346
1346
  return [this._currentLexerNode, c];
1347
- if (c === Je.POUND && this.isSingleQuotationClose() && this.isDoubleQuotationClose() && this.isBracesClose() && this.isSquareBracketClose() && this._checkIfErrorObject(u, s)) {
1347
+ if (c === et.POUND && this.isSingleQuotationClose() && this.isDoubleQuotationClose() && this.isBracesClose() && this.isSquareBracketClose() && this._checkIfErrorObject(u, s)) {
1348
1348
  const l = this._findErrorObject(u, s);
1349
1349
  if (l == null)
1350
1350
  return m.VALUE;
@@ -1367,7 +1367,7 @@ class ga extends Ne {
1367
1367
  return m.VALUE;
1368
1368
  this._addSequenceArray(t, c, u), u++, this._addSequenceArray(t, l, u), u++, this._closeBracket();
1369
1369
  continue;
1370
- } else l && this._newAndPushCurrentLexerNode(ft, u);
1370
+ } else l && this._newAndPushCurrentLexerNode(ht, u);
1371
1371
  } else
1372
1372
  this._pushNodeToChildren(c), this._openBracket(
1373
1373
  0
@@ -1424,12 +1424,12 @@ class ga extends Ne {
1424
1424
  if (l === 1 || l == null) {
1425
1425
  if (this._pushNodeToChildren(this._segment), this._resetSegment(), !this._setParentCurrentLexerNode() && u !== o - 1 && l != null)
1426
1426
  return m.VALUE;
1427
- this._newAndPushCurrentLexerNode(ft, u);
1427
+ this._newAndPushCurrentLexerNode(ht, u);
1428
1428
  } else {
1429
1429
  const f = new ae();
1430
1430
  f.setToken(zc);
1431
1431
  const h = new ae();
1432
- h.setToken(ft), h.changeToParent(f);
1432
+ h.setToken(ht), h.changeToParent(f);
1433
1433
  const d = this._currentLexerNode.getParent();
1434
1434
  if (d && d.getToken() === K.COLON) {
1435
1435
  const _ = d.getParent();
@@ -1441,15 +1441,15 @@ class ga extends Ne {
1441
1441
  this._changeCurrentBracket(
1442
1442
  1
1443
1443
  /* FUNCTION */
1444
- ), this._pushNodeToChildren(this._segment), this._resetSegment(), this._currentLexerNode = f, this._newAndPushCurrentLexerNode(ft, u);
1444
+ ), this._pushNodeToChildren(this._segment), this._resetSegment(), this._currentLexerNode = f, this._newAndPushCurrentLexerNode(ht, u);
1445
1445
  }
1446
1446
  } else if (c === K.COLON && this.isSingleQuotationClose() && this.isDoubleQuotationClose() && this.isBracesClose() && this.isSquareBracketClose()) {
1447
1447
  const l = new ae();
1448
1448
  l.setToken(c);
1449
1449
  const f = new ae();
1450
- f.setToken(ft), f.setParent(l);
1450
+ f.setToken(ht), f.setParent(l);
1451
1451
  const h = new ae();
1452
- h.setToken(ft), h.setParent(l), l.getChildren().push(f, h);
1452
+ h.setToken(ht), h.setParent(l), l.getChildren().push(f, h);
1453
1453
  let d = l, _ = 0;
1454
1454
  if (this._segmentCount() > 0) {
1455
1455
  let C, E, b = 0;
@@ -1844,7 +1844,7 @@ let gr = class extends Ne {
1844
1844
  unitId: t,
1845
1845
  sheetId: s,
1846
1846
  range: {
1847
- rangeType: Ze.NORMAL,
1847
+ rangeType: ze.NORMAL,
1848
1848
  startRow: d.startRow,
1849
1849
  endRow: d.endRow,
1850
1850
  // Use endRow as the inclusive end row
@@ -2312,17 +2312,23 @@ class il {
2312
2312
  A(this, "_cache", /* @__PURE__ */ new Map());
2313
2313
  A(this, "_continueBuildingCache", /* @__PURE__ */ new Map());
2314
2314
  }
2315
- set(a, e, t, r, n) {
2316
- if (!this.shouldContinueBuildingCache(a, e, t, n))
2315
+ set(a, e, t, r, n, s = !1) {
2316
+ if (!this.shouldContinueBuildingCache(a, e, t, n) && !s)
2317
2317
  return;
2318
- let s = this._cache.get(a);
2319
- s == null && (s = /* @__PURE__ */ new Map(), this._cache.set(a, s));
2320
- let o = s.get(e);
2321
- o == null && (o = /* @__PURE__ */ new Map(), s.set(e, o));
2322
- let u = o.get(t);
2323
- u == null && (u = /* @__PURE__ */ new Map(), o.set(t, u));
2324
- let c = u.get(r);
2325
- c == null && (c = /* @__PURE__ */ new Set(), u.set(r, c)), c.add(n);
2318
+ let o = this._cache.get(a);
2319
+ o == null && (o = /* @__PURE__ */ new Map(), this._cache.set(a, o));
2320
+ let u = o.get(e);
2321
+ u == null && (u = /* @__PURE__ */ new Map(), o.set(e, u));
2322
+ let c = u.get(t);
2323
+ if (c == null && (c = /* @__PURE__ */ new Map(), u.set(t, c)), s) {
2324
+ for (const [f, h] of c)
2325
+ if (h.has(n)) {
2326
+ h.delete(n);
2327
+ break;
2328
+ }
2329
+ }
2330
+ let l = c.get(r);
2331
+ l == null && (l = /* @__PURE__ */ new Set(), c.set(r, l)), l.add(n);
2326
2332
  }
2327
2333
  getCellValuePositions(a, e, t) {
2328
2334
  var r, n;
@@ -2410,7 +2416,7 @@ class il {
2410
2416
  a.insert([n, s]);
2411
2417
  }
2412
2418
  }
2413
- const bt = new il(), Ca = "engine-formula.config", fo = 1, Gb = "CYCLE_REFERENCE_COUNT", hi = {};
2419
+ const We = new il(), Ca = "engine-formula.config", fo = 1, Gb = "CYCLE_REFERENCE_COUNT", hi = {};
2414
2420
  class ol extends Ne {
2415
2421
  constructor() {
2416
2422
  super(...arguments);
@@ -2424,7 +2430,7 @@ class ol extends Ne {
2424
2430
  return this._getRowFilteredCallback && (n = this._getRowFilteredCallback(e, t, r)) != null ? n : !1;
2425
2431
  }
2426
2432
  }
2427
- const ho = et(
2433
+ const ho = tt(
2428
2434
  "univer.formula.sheet-row-filtered.service"
2429
2435
  );
2430
2436
  var ul = Object.getOwnPropertyDescriptor, cl = (i, a, e, t) => {
@@ -2661,7 +2667,7 @@ xs = cl([
2661
2667
  Kr(2, ye(gr)),
2662
2668
  Kr(3, ye(ho))
2663
2669
  ], xs);
2664
- const Ft = et(
2670
+ const Ft = tt(
2665
2671
  "univer.formula.current-data.service"
2666
2672
  );
2667
2673
  var ll = Object.getOwnPropertyDescriptor, fl = (i, a, e, t) => {
@@ -2826,7 +2832,7 @@ function gl() {
2826
2832
  function dl(i) {
2827
2833
  if (Cl(i))
2828
2834
  return 3;
2829
- const a = gt.getInfo(i).type || "unknown";
2835
+ const a = dt.getInfo(i).type || "unknown";
2830
2836
  return ml[a];
2831
2837
  }
2832
2838
  function Cl(i) {
@@ -2851,14 +2857,14 @@ const _l = /* @__PURE__ */ new Map([
2851
2857
  function gi(i) {
2852
2858
  return _l.get(i) || "$";
2853
2859
  }
2854
- function Ke(i, a = 2) {
2860
+ function Xe(i, a = 2) {
2855
2861
  let e = a;
2856
2862
  a > 127 && (e = 127);
2857
2863
  let t = "";
2858
2864
  return e > 0 && (t = `.${"0".repeat(e)}`), `"${gi(i)}"#,##0${t}_);[Red]("${gi(i)}"#,##0${t})`;
2859
2865
  }
2860
2866
  function Al(i, a, e = 2) {
2861
- return gt.format(Ke(i, e), a);
2867
+ return dt.format(Xe(i, e), a);
2862
2868
  }
2863
2869
  const _a = new Nt(1e5);
2864
2870
  function El(i) {
@@ -2871,13 +2877,13 @@ function El(i) {
2871
2877
  value: e.value,
2872
2878
  pattern: e.pattern
2873
2879
  };
2874
- const t = gt.parseNumber(a);
2880
+ const t = dt.parseNumber(a);
2875
2881
  if (t && t.z)
2876
2882
  return ms(a, t.v, t.z);
2877
- const r = gt.parseDate(a);
2883
+ const r = dt.parseDate(a);
2878
2884
  if (r && r.z)
2879
2885
  return ms(a, r.v, r.z);
2880
- const n = gt.parseTime(a);
2886
+ const n = dt.parseTime(a);
2881
2887
  return n && n.z ? ms(a, n.v, n.z) : {
2882
2888
  isNumberPattern: !1
2883
2889
  };
@@ -3091,15 +3097,15 @@ class kt extends kn {
3091
3097
  compareBy(e, t) {
3092
3098
  return g.create(m.NAME);
3093
3099
  }
3094
- concatenate(e, t = ut.FRONT) {
3100
+ concatenate(e, t = ct.FRONT) {
3095
3101
  let r = this.getValue().toString();
3096
3102
  if (typeof e == "string")
3097
- t === ut.FRONT ? r = e + r : r += e;
3103
+ t === ct.FRONT ? r = e + r : r += e;
3098
3104
  else if (typeof e == "number")
3099
- t === ut.FRONT ? r = e.toString() + r : r += e.toString();
3105
+ t === ct.FRONT ? r = e.toString() + r : r += e.toString();
3100
3106
  else if (typeof e == "boolean") {
3101
3107
  const n = e ? "TRUE" : "FALSE";
3102
- t === ut.FRONT ? r = n + r : r += n;
3108
+ t === ct.FRONT ? r = n + r : r += n;
3103
3109
  }
3104
3110
  return r;
3105
3111
  }
@@ -3410,7 +3416,7 @@ var Bs = 9e15, $t = 1e9, Is = "0123456789abcdef", En = "2.3025850929940456840179
3410
3416
  // Whether to use cryptographically-secure random number generation, if available.
3411
3417
  crypto: !1
3412
3418
  // true/false
3413
- }, go, pt, ue = !0, $n = "[DecimalError] ", Bt = $n + "Invalid argument: ", Co = $n + "Precision limit exceeded", _o = $n + "crypto unavailable", Ao = "[object Decimal]", Be = Math.floor, Pe = Math.pow, Ol = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Ml = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, wl = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, Eo = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ct = 1e7, te = 7, Sl = 9007199254740991, Dl = En.length - 1, ks = bn.length - 1, B = { toStringTag: Ao };
3419
+ }, go, pt, ue = !0, $n = "[DecimalError] ", Bt = $n + "Invalid argument: ", Co = $n + "Precision limit exceeded", _o = $n + "crypto unavailable", Ao = "[object Decimal]", Be = Math.floor, Pe = Math.pow, Ol = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Ml = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, wl = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, Eo = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, lt = 1e7, te = 7, Sl = 9007199254740991, Dl = En.length - 1, ks = bn.length - 1, B = { toStringTag: Ao };
3414
3420
  B.absoluteValue = B.abs = function() {
3415
3421
  var i = new this.constructor(this);
3416
3422
  return i.s < 0 && (i.s = 1), J(i);
@@ -3511,7 +3517,7 @@ B.hyperbolicTangent = B.tanh = function() {
3511
3517
  };
3512
3518
  B.inverseCosine = B.acos = function() {
3513
3519
  var i = this, a = i.constructor, e = i.abs().cmp(1), t = a.precision, r = a.rounding;
3514
- return e !== -1 ? e === 0 ? i.isNeg() ? mt(a, t, r) : new a(0) : new a(NaN) : i.isZero() ? mt(a, t + 4, r).times(0.5) : (a.precision = t + 6, a.rounding = 1, i = new a(1).minus(i).div(i.plus(1)).sqrt().atan(), a.precision = t, a.rounding = r, i.times(2));
3520
+ return e !== -1 ? e === 0 ? i.isNeg() ? gt(a, t, r) : new a(0) : new a(NaN) : i.isZero() ? gt(a, t + 4, r).times(0.5) : (a.precision = t + 6, a.rounding = 1, i = new a(1).minus(i).div(i.plus(1)).sqrt().atan(), a.precision = t, a.rounding = r, i.times(2));
3515
3521
  };
3516
3522
  B.inverseHyperbolicCosine = B.acosh = function() {
3517
3523
  var i, a, e = this, t = e.constructor;
@@ -3527,7 +3533,7 @@ B.inverseHyperbolicTangent = B.atanh = function() {
3527
3533
  };
3528
3534
  B.inverseSine = B.asin = function() {
3529
3535
  var i, a, e, t, r = this, n = r.constructor;
3530
- return r.isZero() ? new n(r) : (a = r.abs().cmp(1), e = n.precision, t = n.rounding, a !== -1 ? a === 0 ? (i = mt(n, e + 4, t).times(0.5), i.s = r.s, i) : new n(NaN) : (n.precision = e + 6, n.rounding = 1, r = r.div(new n(1).minus(r.times(r)).sqrt().plus(1)).atan(), n.precision = e, n.rounding = t, r.times(2)));
3536
+ return r.isZero() ? new n(r) : (a = r.abs().cmp(1), e = n.precision, t = n.rounding, a !== -1 ? a === 0 ? (i = gt(n, e + 4, t).times(0.5), i.s = r.s, i) : new n(NaN) : (n.precision = e + 6, n.rounding = 1, r = r.div(new n(1).minus(r.times(r)).sqrt().plus(1)).atan(), n.precision = e, n.rounding = t, r.times(2)));
3531
3537
  };
3532
3538
  B.inverseTangent = B.atan = function() {
3533
3539
  var i, a, e, t, r, n, s, o, u, c = this, l = c.constructor, f = l.precision, h = l.rounding;
@@ -3535,11 +3541,11 @@ B.inverseTangent = B.atan = function() {
3535
3541
  if (c.isZero())
3536
3542
  return new l(c);
3537
3543
  if (c.abs().eq(1) && f + 4 <= ks)
3538
- return s = mt(l, f + 4, h).times(0.25), s.s = c.s, s;
3544
+ return s = gt(l, f + 4, h).times(0.25), s.s = c.s, s;
3539
3545
  } else {
3540
3546
  if (!c.s) return new l(NaN);
3541
3547
  if (f + 4 <= ks)
3542
- return s = mt(l, f + 4, h).times(0.5), s.s = c.s, s;
3548
+ return s = gt(l, f + 4, h).times(0.5), s.s = c.s, s;
3543
3549
  }
3544
3550
  for (l.precision = o = f + 10, l.rounding = 1, e = Math.min(28, o / te + 2 | 0), i = e; i; --i) c = c.div(c.times(c).plus(1).sqrt().plus(1));
3545
3551
  for (ue = !1, a = Math.ceil(o / te), t = 1, u = c.times(c), s = new l(c), r = c; i !== -1; )
@@ -3622,8 +3628,8 @@ B.minus = B.sub = function(i) {
3622
3628
  for (f && (a = c, c = h, h = a, i.s = -i.s), s = c.length, t = h.length - s; t > 0; --t) c[s++] = 0;
3623
3629
  for (t = h.length; t > n; ) {
3624
3630
  if (c[--t] < h[t]) {
3625
- for (r = t; r && c[--r] === 0; ) c[r] = ct - 1;
3626
- --c[r], c[t] += ct;
3631
+ for (r = t; r && c[--r] === 0; ) c[r] = lt - 1;
3632
+ --c[r], c[t] += lt;
3627
3633
  }
3628
3634
  c[t] -= h[t];
3629
3635
  }
@@ -3658,7 +3664,7 @@ B.plus = B.add = function(i) {
3658
3664
  e.reverse();
3659
3665
  }
3660
3666
  for (s = c.length, r = l.length, s - r < 0 && (r = s, e = l, l = c, c = e), a = 0; r; )
3661
- a = (c[--r] = c[r] + l[r] + a) / ct | 0, c[r] %= ct;
3667
+ a = (c[--r] = c[r] + l[r] + a) / lt | 0, c[r] %= lt;
3662
3668
  for (a && (c.unshift(a), ++t), s = c.length; c[--s] == 0; ) c.pop();
3663
3669
  return i.d = c, i.e = Yn(c, t), ue ? J(i, o, u) : i;
3664
3670
  };
@@ -3704,8 +3710,8 @@ B.times = B.mul = function(i) {
3704
3710
  for (e = Be(l.e / te) + Be(i.e / te), u = h.length, c = d.length, u < c && (n = h, h = d, d = n, s = u, u = c, c = s), n = [], s = u + c, t = s; t--; ) n.push(0);
3705
3711
  for (t = c; --t >= 0; ) {
3706
3712
  for (a = 0, r = u + t; r > t; )
3707
- o = n[r] + d[t] * h[r - t - 1] + a, n[r--] = o % ct | 0, a = o / ct | 0;
3708
- n[r] = (n[r] + a) % ct | 0;
3713
+ o = n[r] + d[t] * h[r - t - 1] + a, n[r--] = o % lt | 0, a = o / lt | 0;
3714
+ n[r] = (n[r] + a) % lt | 0;
3709
3715
  }
3710
3716
  for (; !n[--s]; ) n.pop();
3711
3717
  return a ? ++e : n.shift(), i.d = n, i.e = Yn(n, e), ue ? J(i, f.precision, f.rounding) : i;
@@ -3719,11 +3725,11 @@ B.toDecimalPlaces = B.toDP = function(i, a) {
3719
3725
  };
3720
3726
  B.toExponential = function(i, a) {
3721
3727
  var e, t = this, r = t.constructor;
3722
- return i === void 0 ? e = Ct(t, !0) : (He(i, 0, $t), a === void 0 ? a = r.rounding : He(a, 0, 8), t = J(new r(t), i + 1, a), e = Ct(t, !0, i + 1)), t.isNeg() && !t.isZero() ? "-" + e : e;
3728
+ return i === void 0 ? e = _t(t, !0) : (He(i, 0, $t), a === void 0 ? a = r.rounding : He(a, 0, 8), t = J(new r(t), i + 1, a), e = _t(t, !0, i + 1)), t.isNeg() && !t.isZero() ? "-" + e : e;
3723
3729
  };
3724
3730
  B.toFixed = function(i, a) {
3725
3731
  var e, t, r = this, n = r.constructor;
3726
- return i === void 0 ? e = Ct(r) : (He(i, 0, $t), a === void 0 ? a = n.rounding : He(a, 0, 8), t = J(new n(r), i + r.e + 1, a), e = Ct(t, !1, i + t.e + 1)), r.isNeg() && !r.isZero() ? "-" + e : e;
3732
+ return i === void 0 ? e = _t(r) : (He(i, 0, $t), a === void 0 ? a = n.rounding : He(a, 0, 8), t = J(new n(r), i + r.e + 1, a), e = _t(t, !1, i + t.e + 1)), r.isNeg() && !r.isZero() ? "-" + e : e;
3727
3733
  };
3728
3734
  B.toFraction = function(i) {
3729
3735
  var a, e, t, r, n, s, o, u, c, l, f, h, d = this, _ = d.d, C = d.constructor;
@@ -3775,21 +3781,21 @@ B.toPower = B.pow = function(i) {
3775
3781
  };
3776
3782
  B.toPrecision = function(i, a) {
3777
3783
  var e, t = this, r = t.constructor;
3778
- return i === void 0 ? e = Ct(t, t.e <= r.toExpNeg || t.e >= r.toExpPos) : (He(i, 1, $t), a === void 0 ? a = r.rounding : He(a, 0, 8), t = J(new r(t), i, a), e = Ct(t, i <= t.e || t.e <= r.toExpNeg, i)), t.isNeg() && !t.isZero() ? "-" + e : e;
3784
+ return i === void 0 ? e = _t(t, t.e <= r.toExpNeg || t.e >= r.toExpPos) : (He(i, 1, $t), a === void 0 ? a = r.rounding : He(a, 0, 8), t = J(new r(t), i, a), e = _t(t, i <= t.e || t.e <= r.toExpNeg, i)), t.isNeg() && !t.isZero() ? "-" + e : e;
3779
3785
  };
3780
3786
  B.toSignificantDigits = B.toSD = function(i, a) {
3781
3787
  var e = this, t = e.constructor;
3782
3788
  return i === void 0 ? (i = t.precision, a = t.rounding) : (He(i, 1, $t), a === void 0 ? a = t.rounding : He(a, 0, 8)), J(new t(e), i, a);
3783
3789
  };
3784
3790
  B.toString = function() {
3785
- var i = this, a = i.constructor, e = Ct(i, i.e <= a.toExpNeg || i.e >= a.toExpPos);
3791
+ var i = this, a = i.constructor, e = _t(i, i.e <= a.toExpNeg || i.e >= a.toExpPos);
3786
3792
  return i.isNeg() && !i.isZero() ? "-" + e : e;
3787
3793
  };
3788
3794
  B.truncated = B.trunc = function() {
3789
3795
  return J(new this.constructor(this), this.e + 1, 1);
3790
3796
  };
3791
3797
  B.valueOf = B.toJSON = function() {
3792
- var i = this, a = i.constructor, e = Ct(i, i.e <= a.toExpNeg || i.e >= a.toExpPos);
3798
+ var i = this, a = i.constructor, e = _t(i, i.e <= a.toExpNeg || i.e >= a.toExpPos);
3793
3799
  return i.isNeg() ? "-" + e : e;
3794
3800
  };
3795
3801
  function Ue(i) {
@@ -3864,7 +3870,7 @@ var Ve = /* @__PURE__ */ function() {
3864
3870
  z && z[0] == 0 || !G ? ne * 0 : ne / 0
3865
3871
  )
3866
3872
  );
3867
- for (u ? (d = 1, l = t.e - r.e) : (u = ct, d = te, l = Be(t.e / d) - Be(r.e / d)), x = G.length, L = z.length, b = new W(ne), R = b.d = [], f = 0; G[f] == (z[f] || 0); f++) ;
3873
+ for (u ? (d = 1, l = t.e - r.e) : (u = lt, d = te, l = Be(t.e / d) - Be(r.e / d)), x = G.length, L = z.length, b = new W(ne), R = b.d = [], f = 0; G[f] == (z[f] || 0); f++) ;
3868
3874
  if (G[f] > (z[f] || 0) && l--, n == null ? (w = n = W.precision, s = W.rounding) : o ? w = n + (t.e - r.e) + 1 : w = n, w < 0)
3869
3875
  R.push(1), _ = !0;
3870
3876
  else {
@@ -3916,17 +3922,17 @@ function J(i, a, e, t) {
3916
3922
  if (h == 0) {
3917
3923
  for (n = 1, s = f[0]; s >= 10; s /= 10) n++;
3918
3924
  for (s = f[0] += o, o = 1; s >= 10; s /= 10) o++;
3919
- n != o && (i.e++, f[0] == ct && (f[0] = 1));
3925
+ n != o && (i.e++, f[0] == lt && (f[0] = 1));
3920
3926
  break;
3921
3927
  } else {
3922
- if (f[h] += o, f[h] != ct) break;
3928
+ if (f[h] += o, f[h] != lt) break;
3923
3929
  f[h--] = 0, o = 1;
3924
3930
  }
3925
3931
  for (n = f.length; f[--n] === 0; ) f.pop();
3926
3932
  }
3927
3933
  return ue && (i.e > d.maxE ? (i.d = null, i.e = NaN) : i.e < d.minE && (i.e = 0, i.d = [0])), i;
3928
3934
  }
3929
- function Ct(i, a, e) {
3935
+ function _t(i, a, e) {
3930
3936
  if (!i.isFinite()) return po(i);
3931
3937
  var t, r = i.e, n = Ue(i.d), s = n.length;
3932
3938
  return a ? (e && (t = e - s) > 0 ? n = n.charAt(0) + "." + n.slice(1) + Lt(t) : s > 1 && (n = n.charAt(0) + "." + n.slice(1)), n = n + (i.e < 0 ? "e" : "e+") + i.e) : r < 0 ? (n = "0." + Lt(-r - 1) + n, e && (t = e - s) > 0 && (n += Lt(t))) : r >= s ? (n += Lt(r + 1 - s), e && (t = e - r - 1) > 0 && (n = n + "." + Lt(t))) : ((t = r + 1) < s && (n = n.slice(0, t) + "." + n.slice(t)), e && (t = e - s) > 0 && (r + 1 === s && (n += "."), n += Lt(t))), n;
@@ -3941,7 +3947,7 @@ function yn(i, a, e) {
3941
3947
  throw ue = !0, e && (i.precision = e), Error(Co);
3942
3948
  return J(new i(En), a, 1, !0);
3943
3949
  }
3944
- function mt(i, a, e) {
3950
+ function gt(i, a, e) {
3945
3951
  if (a > ks) throw Error(Co);
3946
3952
  return J(new i(bn), a, e, !0);
3947
3953
  }
@@ -4056,7 +4062,7 @@ function Pl(i, a) {
4056
4062
  e = 8;
4057
4063
  else
4058
4064
  throw Error(Bt + a);
4059
- for (n = a.search(/p/i), n > 0 ? (u = +a.slice(n + 1), a = a.substring(2, n)) : a = a.slice(2), n = a.indexOf("."), s = n >= 0, t = i.constructor, s && (a = a.replace(".", ""), o = a.length, n = o - n, r = yo(t, new t(e), n, n * 2)), c = cn(a, e, ct), l = c.length - 1, n = l; c[n] === 0; --n) c.pop();
4065
+ for (n = a.search(/p/i), n > 0 ? (u = +a.slice(n + 1), a = a.substring(2, n)) : a = a.slice(2), n = a.indexOf("."), s = n >= 0, t = i.constructor, s && (a = a.replace(".", ""), o = a.length, n = o - n, r = yo(t, new t(e), n, n * 2)), c = cn(a, e, lt), l = c.length - 1, n = l; c[n] === 0; --n) c.pop();
4060
4066
  return n < 0 ? new t(i.s * 0) : (i.e = Yn(c, l), i.d = c, ue = !1, s && (i = Ve(i, r, o * 4)), u && (i = i.times(Math.abs(u) < 54 ? Pe(2, u) : P.pow(2, u))), ue = !0, i);
4061
4067
  }
4062
4068
  function xl(i, a) {
@@ -4084,7 +4090,7 @@ function Hn(i, a) {
4084
4090
  return e;
4085
4091
  }
4086
4092
  function Vo(i, a) {
4087
- var e, t = a.s < 0, r = mt(i, i.precision, 1), n = r.times(0.5);
4093
+ var e, t = a.s < 0, r = gt(i, i.precision, 1), n = r.times(0.5);
4088
4094
  if (a = a.abs(), a.lte(n))
4089
4095
  return pt = t ? 4 : 1, a;
4090
4096
  if (e = a.divToInt(r), e.isZero())
@@ -4101,7 +4107,7 @@ function Ea(i, a, e, t) {
4101
4107
  if (_ ? (He(e, 1, $t), t === void 0 ? t = d.rounding : He(t, 0, 8)) : (e = d.precision, t = d.rounding), !i.isFinite())
4102
4108
  l = po(i);
4103
4109
  else {
4104
- for (l = Ct(i), s = l.indexOf("."), _ ? (r = 2, a == 16 ? e = e * 4 - 3 : a == 8 && (e = e * 3 - 2)) : r = a, s >= 0 && (l = l.replace(".", ""), h = new d(1), h.e = l.length - s, h.d = cn(Ct(h), 10, r), h.e = h.d.length), f = cn(l, 10, r), n = u = f.length; f[--u] == 0; ) f.pop();
4110
+ for (l = _t(i), s = l.indexOf("."), _ ? (r = 2, a == 16 ? e = e * 4 - 3 : a == 8 && (e = e * 3 - 2)) : r = a, s >= 0 && (l = l.replace(".", ""), h = new d(1), h.e = l.length - s, h.d = cn(_t(h), 10, r), h.e = h.d.length), f = cn(l, 10, r), n = u = f.length; f[--u] == 0; ) f.pop();
4105
4111
  if (!f[0])
4106
4112
  l = _ ? "0p+0" : "0";
4107
4113
  else {
@@ -4160,7 +4166,7 @@ function kl(i) {
4160
4166
  function $l(i, a) {
4161
4167
  i = new this(i), a = new this(a);
4162
4168
  var e, t = this.precision, r = this.rounding, n = t + 4;
4163
- return !i.s || !a.s ? e = new this(NaN) : !i.d && !a.d ? (e = mt(this, n, 1).times(a.s > 0 ? 0.25 : 0.75), e.s = i.s) : !a.d || i.isZero() ? (e = a.s < 0 ? mt(this, t, r) : new this(0), e.s = i.s) : !i.d || a.isZero() ? (e = mt(this, n, 1).times(0.5), e.s = i.s) : a.s < 0 ? (this.precision = n, this.rounding = 1, e = this.atan(Ve(i, a, n, 1)), a = mt(this, n, 1), this.precision = t, this.rounding = r, e = i.s < 0 ? e.minus(a) : e.plus(a)) : e = this.atan(Ve(i, a, n, 1)), e;
4169
+ return !i.s || !a.s ? e = new this(NaN) : !i.d && !a.d ? (e = gt(this, n, 1).times(a.s > 0 ? 0.25 : 0.75), e.s = i.s) : !a.d || i.isZero() ? (e = a.s < 0 ? gt(this, t, r) : new this(0), e.s = i.s) : !i.d || a.isZero() ? (e = gt(this, n, 1).times(0.5), e.s = i.s) : a.s < 0 ? (this.precision = n, this.rounding = 1, e = this.atan(Ve(i, a, n, 1)), a = gt(this, n, 1), this.precision = t, this.rounding = r, e = i.s < 0 ? e.minus(a) : e.plus(a)) : e = this.atan(Ve(i, a, n, 1)), e;
4164
4170
  }
4165
4171
  function Yl(i) {
4166
4172
  return new this(i).cbrt();
@@ -4385,7 +4391,7 @@ function vt(i, a) {
4385
4391
  const e = 10 ** Math.trunc(a), t = Gn(i, e);
4386
4392
  return Math.round(Vr(i, e) + t) / e;
4387
4393
  }
4388
- function We(i, a) {
4394
+ function qe(i, a) {
4389
4395
  const e = 10 ** Math.trunc(a), t = Gn(i, e);
4390
4396
  return Math.floor(Vr(i, e) + t) / e;
4391
4397
  }
@@ -4459,10 +4465,10 @@ const Fn = class Fn extends kt {
4459
4465
  return a.isString() ? j.create("").compare(a, e) : a.isBoolean() ? T.create(!1).compare(a, e) : y.create(0).compare(a, e);
4460
4466
  }
4461
4467
  concatenateFront(a) {
4462
- return a.isArray() ? a.concatenateBack(j.create("")) : j.create(this.concatenate(a.getValue(), ut.FRONT));
4468
+ return a.isArray() ? a.concatenateBack(j.create("")) : j.create(this.concatenate(a.getValue(), ct.FRONT));
4463
4469
  }
4464
4470
  concatenateBack(a) {
4465
- return a.isArray() ? a.concatenateFront(j.create("")) : j.create(this.concatenate(a.getValue(), ut.BACK));
4471
+ return a.isArray() ? a.concatenateFront(j.create("")) : j.create(this.concatenate(a.getValue(), ct.BACK));
4466
4472
  }
4467
4473
  plusBy(a) {
4468
4474
  return y.create(0).plusBy(a);
@@ -4800,10 +4806,10 @@ class y extends kt {
4800
4806
  return this;
4801
4807
  }
4802
4808
  concatenateFront(e) {
4803
- return e.isArray() ? e.concatenateBack(this) : j.create(this.concatenate(e.getValue(), ut.FRONT));
4809
+ return e.isArray() ? e.concatenateBack(this) : j.create(this.concatenate(e.getValue(), ct.FRONT));
4804
4810
  }
4805
4811
  concatenateBack(e) {
4806
- return e.isArray() ? e.concatenateFront(this) : j.create(this.concatenate(e.getValue(), ut.BACK));
4812
+ return e.isArray() ? e.concatenateFront(this) : j.create(this.concatenate(e.getValue(), ct.BACK));
4807
4813
  }
4808
4814
  compare(e, t) {
4809
4815
  return e.isArray() ? e.compare(this, Aa(t)) : this.compareBy(e.getValue(), t);
@@ -5086,10 +5092,10 @@ class y extends kt {
5086
5092
  if (typeof r == "number") {
5087
5093
  if (!Number.isFinite(t) || !Number.isFinite(r))
5088
5094
  return g.create(m.NUM);
5089
- const n = t < 0 ? -We(Math.abs(t), r) : We(t, r);
5095
+ const n = t < 0 ? -qe(Math.abs(t), r) : qe(t, r);
5090
5096
  return Number.isFinite(n) ? y.create(n) : g.create(m.NUM);
5091
5097
  }
5092
- return typeof r == "boolean" ? y.create(We(t, r ? 1 : 0)) : this;
5098
+ return typeof r == "boolean" ? y.create(qe(t, r ? 1 : 0)) : this;
5093
5099
  }
5094
5100
  ceil(e) {
5095
5101
  if (e.isArray())
@@ -5157,10 +5163,10 @@ class j extends kt {
5157
5163
  return !0;
5158
5164
  }
5159
5165
  concatenateFront(e) {
5160
- return e.isArray() ? e.concatenateBack(this) : j.create(this.concatenate(e.getValue(), ut.FRONT));
5166
+ return e.isArray() ? e.concatenateBack(this) : j.create(this.concatenate(e.getValue(), ct.FRONT));
5161
5167
  }
5162
5168
  concatenateBack(e) {
5163
- return e.isArray() ? e.concatenateFront(this) : j.create(this.concatenate(e.getValue(), ut.BACK));
5169
+ return e.isArray() ? e.concatenateFront(this) : j.create(this.concatenate(e.getValue(), ct.BACK));
5164
5170
  }
5165
5171
  plus(e) {
5166
5172
  return this.convertToNumberObjectValue().plus(e);
@@ -5997,7 +6003,14 @@ class q extends kt {
5997
6003
  const c = [];
5998
6004
  for (let f = 0; f < u; f++) {
5999
6005
  const h = s[f];
6000
- this._batchOperatorValue(h, f, c, t, r, n);
6006
+ this._batchOperatorValue(
6007
+ h,
6008
+ f,
6009
+ c,
6010
+ t,
6011
+ r,
6012
+ n
6013
+ );
6001
6014
  }
6002
6015
  const l = this._createNewArray(c, o, u);
6003
6016
  return l.setDefaultValue(T.create(!1)), l;
@@ -6006,7 +6019,7 @@ class q extends kt {
6006
6019
  _batchOperatorValue(e, t, r, n, s, o) {
6007
6020
  const u = this._rowCount, c = this.getUnitId(), l = this.getSheetId(), f = this.getCurrentRow(), h = this.getCurrentColumn();
6008
6021
  if (n === 5) {
6009
- const { rowsInCache: d, rowsNotInCache: _ } = bt.canUseCache(
6022
+ const { rowsInCache: d, rowsNotInCache: _ } = We.canUseCache(
6010
6023
  c,
6011
6024
  l,
6012
6025
  t + h,
@@ -6015,7 +6028,7 @@ class q extends kt {
6015
6028
  );
6016
6029
  if (d.length > 0) {
6017
6030
  if (s === $.EQUALS) {
6018
- const C = bt.getCellPositions(
6031
+ const C = We.getCellPositions(
6019
6032
  c,
6020
6033
  l,
6021
6034
  t + h,
@@ -6029,7 +6042,7 @@ class q extends kt {
6029
6042
  r[b] == null && (r[b] = []), r[b][t] = T.create(!0);
6030
6043
  });
6031
6044
  } else {
6032
- const C = bt.getCellValuePositions(
6045
+ const C = We.getCellValuePositions(
6033
6046
  c,
6034
6047
  l,
6035
6048
  t + h
@@ -6060,7 +6073,7 @@ class q extends kt {
6060
6073
  s,
6061
6074
  o
6062
6075
  );
6063
- bt.setContinueBuildingCache(
6076
+ We.setContinueBuildingCache(
6064
6077
  c,
6065
6078
  l,
6066
6079
  t + h,
@@ -6085,7 +6098,7 @@ class q extends kt {
6085
6098
  s,
6086
6099
  o
6087
6100
  );
6088
- bt.setContinueBuildingCache(
6101
+ We.setContinueBuildingCache(
6089
6102
  c,
6090
6103
  l,
6091
6104
  t + h,
@@ -6145,13 +6158,13 @@ class q extends kt {
6145
6158
  }
6146
6159
  else
6147
6160
  r[s][t] = g.create(m.NA);
6148
- d != null && (d.isError() ? bt.set(
6161
+ d != null && (d.isError() ? We.set(
6149
6162
  o,
6150
6163
  u,
6151
6164
  t + l,
6152
6165
  d.getErrorType(),
6153
6166
  s + c
6154
- ) : bt.set(
6167
+ ) : We.set(
6155
6168
  o,
6156
6169
  u,
6157
6170
  t + l,
@@ -6742,7 +6755,7 @@ class ya extends qn {
6742
6755
  startRow: Number.NaN,
6743
6756
  endColumn: e.range.endColumn,
6744
6757
  endRow: Number.NaN,
6745
- rangeType: Ze.COLUMN
6758
+ rangeType: ze.COLUMN
6746
6759
  };
6747
6760
  this.setRangeData(t);
6748
6761
  }
@@ -6759,7 +6772,7 @@ class ya extends qn {
6759
6772
  if (n >= t.startColumn && n <= t.endColumn)
6760
6773
  return this;
6761
6774
  const s = t.startColumn;
6762
- return n > s ? t.endColumn = n : (t.startColumn = n, t.endColumn = s), r.startAbsoluteRefType && (t.endAbsoluteRefType = r.startAbsoluteRefType), t.rangeType = Ze.COLUMN, this.setToken(`${this.getToken()}${K.COLON}${e.getToken()}`), this;
6775
+ return n > s ? t.endColumn = n : (t.startColumn = n, t.endColumn = s), r.startAbsoluteRefType && (t.endAbsoluteRefType = r.startAbsoluteRefType), t.rangeType = ze.COLUMN, this.setToken(`${this.getToken()}${K.COLON}${e.getToken()}`), this;
6763
6776
  }
6764
6777
  }
6765
6778
  class Ra extends qn {
@@ -6773,7 +6786,7 @@ class Ra extends qn {
6773
6786
  startRow: e.range.startRow,
6774
6787
  endColumn: Number.NaN,
6775
6788
  endRow: e.range.endRow,
6776
- rangeType: Ze.ROW
6789
+ rangeType: ze.ROW
6777
6790
  };
6778
6791
  this.setRangeData(t);
6779
6792
  }
@@ -6790,7 +6803,7 @@ class Ra extends qn {
6790
6803
  if (n >= t.startRow && n <= t.endRow)
6791
6804
  return this;
6792
6805
  const s = t.startRow;
6793
- return n > s ? t.endRow = n : (t.startRow = n, t.endRow = s), r.startAbsoluteRefType && (t.endAbsoluteRefType = r.startAbsoluteRefType), t.rangeType = Ze.ROW, this.setToken(`${this.getToken()}${K.COLON}${e.getToken()}`), this;
6806
+ return n > s ? t.endRow = n : (t.startRow = n, t.endRow = s), r.startAbsoluteRefType && (t.endAbsoluteRefType = r.startAbsoluteRefType), t.rangeType = ze.ROW, this.setToken(`${this.getToken()}${K.COLON}${e.getToken()}`), this;
6794
6807
  }
6795
6808
  }
6796
6809
  function O(i, a, e, t) {
@@ -7022,7 +7035,7 @@ var Gf = Object.getOwnPropertyDescriptor, Qf = (i, a, e, t) => {
7022
7035
  for (var r = t > 1 ? void 0 : t ? Gf(a, e) : a, n = i.length - 1, s; n >= 0; n--)
7023
7036
  (s = i[n]) && (r = s(r) || r);
7024
7037
  return r;
7025
- }, Wf = (i, a) => (e, t) => a(e, t, i), Xe = /* @__PURE__ */ ((i) => (i[i.IDLE = 0] = "IDLE", i[i.START = 1] = "START", i[i.START_DEPENDENCY = 2] = "START_DEPENDENCY", i[i.START_CALCULATION = 3] = "START_CALCULATION", i[i.CURRENTLY_CALCULATING = 4] = "CURRENTLY_CALCULATING", i[i.START_DEPENDENCY_ARRAY_FORMULA = 5] = "START_DEPENDENCY_ARRAY_FORMULA", i[i.START_CALCULATION_ARRAY_FORMULA = 6] = "START_CALCULATION_ARRAY_FORMULA", i[i.CURRENTLY_CALCULATING_ARRAY_FORMULA = 7] = "CURRENTLY_CALCULATING_ARRAY_FORMULA", i[i.CALCULATION_COMPLETED = 8] = "CALCULATION_COMPLETED", i))(Xe || {}), Dr = /* @__PURE__ */ ((i) => (i[i.INITIAL = 0] = "INITIAL", i[i.STOP_EXECUTION = 1] = "STOP_EXECUTION", i[i.NOT_EXECUTED = 2] = "NOT_EXECUTED", i[i.SUCCESS = 3] = "SUCCESS", i))(Dr || {});
7038
+ }, Wf = (i, a) => (e, t) => a(e, t, i), Ze = /* @__PURE__ */ ((i) => (i[i.IDLE = 0] = "IDLE", i[i.START = 1] = "START", i[i.START_DEPENDENCY = 2] = "START_DEPENDENCY", i[i.START_CALCULATION = 3] = "START_CALCULATION", i[i.CURRENTLY_CALCULATING = 4] = "CURRENTLY_CALCULATING", i[i.START_DEPENDENCY_ARRAY_FORMULA = 5] = "START_DEPENDENCY_ARRAY_FORMULA", i[i.START_CALCULATION_ARRAY_FORMULA = 6] = "START_CALCULATION_ARRAY_FORMULA", i[i.CURRENTLY_CALCULATING_ARRAY_FORMULA = 7] = "CURRENTLY_CALCULATING_ARRAY_FORMULA", i[i.CALCULATION_COMPLETED = 8] = "CALCULATION_COMPLETED", i))(Ze || {}), Dr = /* @__PURE__ */ ((i) => (i[i.INITIAL = 0] = "INITIAL", i[i.STOP_EXECUTION = 1] = "STOP_EXECUTION", i[i.NOT_EXECUTED = 2] = "NOT_EXECUTED", i[i.SUCCESS = 3] = "SUCCESS", i))(Dr || {});
7026
7039
  let Hs = class extends Ne {
7027
7040
  constructor(a) {
7028
7041
  super();
@@ -7194,7 +7207,14 @@ let Hs = class extends Ne {
7194
7207
  const E = a, { startRow: b, startColumn: R, endRow: p, endColumn: N } = E.getRangePosition();
7195
7208
  if (b === p && R === N) {
7196
7209
  const w = E.getFirstCell(), S = Gt(w);
7197
- d.setValue(e, t, S), C.setValue(e, t, S);
7210
+ d.setValue(e, t, S), C.setValue(e, t, S), We.set(
7211
+ o,
7212
+ s,
7213
+ t,
7214
+ w.getValue(),
7215
+ e,
7216
+ !0
7217
+ );
7198
7218
  return;
7199
7219
  }
7200
7220
  const M = {
@@ -7205,7 +7225,14 @@ let Hs = class extends Ne {
7205
7225
  };
7206
7226
  if (l.setValue(e, t, M), this._checkIfArrayFormulaRangeHasData(o, s, e, t, M) || this._checkIfArrayFormulaExceeded(r, n, M)) {
7207
7227
  const w = Gt(g.create(m.SPILL));
7208
- d.setValue(e, t, w), C.setValue(e, t, w);
7228
+ d.setValue(e, t, w), C.setValue(e, t, w), We.set(
7229
+ o,
7230
+ s,
7231
+ t,
7232
+ m.SPILL,
7233
+ e,
7234
+ !0
7235
+ );
7209
7236
  const S = this._currentConfigService.getUnitData();
7210
7237
  E.iterator((D, L, U) => {
7211
7238
  var ne, z;
@@ -7223,6 +7250,14 @@ let Hs = class extends Ne {
7223
7250
  } else {
7224
7251
  const w = g.create(m.SPILL);
7225
7252
  E.iterator((S, D, L) => {
7253
+ We.set(
7254
+ o,
7255
+ s,
7256
+ t - R + L,
7257
+ S ? S.getValue() : 0,
7258
+ e - b + D,
7259
+ !0
7260
+ );
7226
7261
  const U = Gt(S);
7227
7262
  if (D === b && L === R) {
7228
7263
  if (S != null && S.isError() && S.isEqualType(w))
@@ -7235,7 +7270,14 @@ let Hs = class extends Ne {
7235
7270
  }
7236
7271
  } else {
7237
7272
  const E = Gt(a);
7238
- d.setValue(e, t, E), C.setValue(e, t, E);
7273
+ d.setValue(e, t, E), We.set(
7274
+ o,
7275
+ s,
7276
+ t,
7277
+ a.getValue(),
7278
+ e,
7279
+ !0
7280
+ ), C.setValue(e, t, E);
7239
7281
  }
7240
7282
  }
7241
7283
  getUnitData() {
@@ -7354,9 +7396,9 @@ let Hs = class extends Ne {
7354
7396
  Hs = Qf([
7355
7397
  Wf(0, Ft)
7356
7398
  ], Hs);
7357
- const Ot = et("univer.formula.runtime.service");
7399
+ const Ot = tt("univer.formula.runtime.service");
7358
7400
  var oe = /* @__PURE__ */ ((i) => (i[i.REFERENCE = 1] = "REFERENCE", i[i.VALUE = 2] = "VALUE", i[i.OPERATOR = 3] = "OPERATOR", i[i.FUNCTION = 4] = "FUNCTION", i[i.LAMBDA = 5] = "LAMBDA", i[i.LAMBDA_PARAMETER = 6] = "LAMBDA_PARAMETER", i[i.ERROR = 7] = "ERROR", i[i.BASE = 8] = "BASE", i[i.ROOT = 9] = "ROOT", i[i.UNION = 10] = "UNION", i[i.PREFIX = 11] = "PREFIX", i[i.SUFFIX = 12] = "SUFFIX", i[i.NULL = 13] = "NULL", i))(oe || {});
7359
- const _t = /* @__PURE__ */ new Map([
7401
+ const At = /* @__PURE__ */ new Map([
7360
7402
  [1, 7],
7361
7403
  [2, 9],
7362
7404
  [3, 8],
@@ -7480,8 +7522,8 @@ class xe extends Ge {
7480
7522
  return this._errorValueObject;
7481
7523
  }
7482
7524
  }
7483
- const At = 100;
7484
- class Et {
7525
+ const Et = 100;
7526
+ class bt {
7485
7527
  get zIndex() {
7486
7528
  return 0;
7487
7529
  }
@@ -7506,9 +7548,9 @@ class Gs extends Ge {
7506
7548
  e == null ? this.setValue(g.create(m.VALUE)) : this.setValue(e.getValue());
7507
7549
  }
7508
7550
  }
7509
- class Mo extends Et {
7551
+ class Mo extends bt {
7510
7552
  get zIndex() {
7511
- return _t.get(oe.ROOT) || At;
7553
+ return At.get(oe.ROOT) || Et;
7512
7554
  }
7513
7555
  checkAndCreateNodeType(a) {
7514
7556
  if (!(a instanceof ae))
@@ -7544,7 +7586,7 @@ function wo(i, a) {
7544
7586
  function Kf(i, a, e) {
7545
7587
  return !!(a != null && wo(a, e));
7546
7588
  }
7547
- const Yt = et("univer.formula-function.service");
7589
+ const Yt = tt("univer.formula-function.service");
7548
7590
  class Xf extends Ne {
7549
7591
  constructor() {
7550
7592
  super(...arguments);
@@ -7641,12 +7683,12 @@ class Vn extends Ge {
7641
7683
  return l !== u && c !== o || o === c && u === l ? g.create(m.VALUE) : c === o && n >= u && n <= l ? e.getCellByColumn(n) : u === l && r >= o && r <= c ? e.getCellByRow(r) : e.isTable() ? e.getCellByPosition(r) : g.create(m.VALUE);
7642
7684
  }
7643
7685
  }
7644
- let Nn = class extends Et {
7686
+ let Nn = class extends bt {
7645
7687
  constructor(i, a) {
7646
7688
  super(), this._functionService = i, this._runtimeService = a;
7647
7689
  }
7648
7690
  get zIndex() {
7649
- return _t.get(oe.PREFIX) || At;
7691
+ return At.get(oe.PREFIX) || Et;
7650
7692
  }
7651
7693
  checkAndCreateNodeType(i) {
7652
7694
  if (!(i instanceof ae))
@@ -7842,12 +7884,12 @@ class rh extends Ge {
7842
7884
  this.setValue(g.create(m.NAME));
7843
7885
  }
7844
7886
  }
7845
- let On = class extends Et {
7887
+ let On = class extends bt {
7846
7888
  constructor(i, a, e, t, r, n) {
7847
7889
  super(), this._functionService = i, this._currentConfigService = a, this._runtimeService = e, this._definedNamesService = t, this._injector = r, this._formulaDataModel = n;
7848
7890
  }
7849
7891
  get zIndex() {
7850
- return _t.get(oe.FUNCTION) || At;
7892
+ return At.get(oe.FUNCTION) || Et;
7851
7893
  }
7852
7894
  create(i) {
7853
7895
  const a = this._functionService.getExecutor(i);
@@ -8106,12 +8148,12 @@ class ch extends Ge {
8106
8148
  // return Promise.resolve(AstNodePromiseType.SUCCESS);
8107
8149
  // }
8108
8150
  }
8109
- let Mn = class extends Et {
8151
+ let Mn = class extends bt {
8110
8152
  constructor(i, a) {
8111
8153
  super(), this._runtimeService = i, this._interpreter = a;
8112
8154
  }
8113
8155
  get zIndex() {
8114
- return _t.get(oe.LAMBDA) || At;
8156
+ return At.get(oe.LAMBDA) || Et;
8115
8157
  }
8116
8158
  create(i) {
8117
8159
  const a = i.getChildren(), e = a[0];
@@ -8125,7 +8167,7 @@ let Mn = class extends Et {
8125
8167
  return xe.create(m.VALUE);
8126
8168
  } else
8127
8169
  t = a.slice(0, -1);
8128
- const n = ze.generateRandomId(8), s = /* @__PURE__ */ new Map();
8170
+ const n = Je.generateRandomId(8), s = /* @__PURE__ */ new Map();
8129
8171
  for (let o = 0; o < t.length; o++) {
8130
8172
  const u = t[o];
8131
8173
  if (u instanceof ae) {
@@ -8180,9 +8222,9 @@ class lh extends Ge {
8180
8222
  }
8181
8223
  }
8182
8224
  }
8183
- class xo extends Et {
8225
+ class xo extends bt {
8184
8226
  get zIndex() {
8185
- return _t.get(oe.LAMBDA_PARAMETER) || At;
8227
+ return At.get(oe.LAMBDA_PARAMETER) || Et;
8186
8228
  }
8187
8229
  create(a) {
8188
8230
  const e = a.getFunctionDefinitionPrivacyVar(), t = a.getLambdaParameter();
@@ -8234,12 +8276,12 @@ class dh extends Ge {
8234
8276
  );
8235
8277
  }
8236
8278
  }
8237
- let wn = class extends Et {
8279
+ let wn = class extends bt {
8238
8280
  constructor(i) {
8239
8281
  super(), this._functionService = i;
8240
8282
  }
8241
8283
  get zIndex() {
8242
- return _t.get(oe.OPERATOR) || At;
8284
+ return At.get(oe.OPERATOR) || Et;
8243
8285
  }
8244
8286
  create(i) {
8245
8287
  let a = "";
@@ -8290,12 +8332,12 @@ class Cs extends Ge {
8290
8332
  };
8291
8333
  }
8292
8334
  }
8293
- let Sn = class extends Et {
8335
+ let Sn = class extends bt {
8294
8336
  constructor(i, a, e) {
8295
8337
  super(), this._currentConfigService = i, this._formulaRuntimeService = a, this._functionService = e;
8296
8338
  }
8297
8339
  get zIndex() {
8298
- return _t.get(oe.REFERENCE) || At;
8340
+ return At.get(oe.REFERENCE) || Et;
8299
8341
  }
8300
8342
  checkAndCreateNodeType(i) {
8301
8343
  var l, f;
@@ -8334,7 +8376,7 @@ class Oi extends Ge {
8334
8376
  let e = this.getChildren()[0].getValue(), t;
8335
8377
  if (e == null)
8336
8378
  throw new Error("object is null");
8337
- if (this._operatorString === Je.PERCENTAGE) {
8379
+ if (this._operatorString === et.PERCENTAGE) {
8338
8380
  if (e.isReferenceObject() && (e = e.toArrayValueObject()), t = this._functionExecutor.calculate(
8339
8381
  e,
8340
8382
  y.create(100)
@@ -8342,7 +8384,7 @@ class Oi extends Ge {
8342
8384
  const r = Number(t.getValue());
8343
8385
  t = y.create(r, "0.00%");
8344
8386
  }
8345
- } else this._operatorString === Je.POUND ? t = this._handlerPound(e) : t = g.create(m.VALUE);
8387
+ } else this._operatorString === et.POUND ? t = this._handlerPound(e) : t = g.create(m.VALUE);
8346
8388
  this.setValue(t);
8347
8389
  }
8348
8390
  _handlerPound(a) {
@@ -8353,12 +8395,12 @@ class Oi extends Ge {
8353
8395
  return o && this._lexer.treeBuilder(o), g.create(m.VALUE);
8354
8396
  }
8355
8397
  }
8356
- let Dn = class extends Et {
8398
+ let Dn = class extends bt {
8357
8399
  constructor(i, a, e) {
8358
8400
  super(), this._functionService = i, this._lexer = a, this._currentConfigService = e;
8359
8401
  }
8360
8402
  get zIndex() {
8361
- return _t.get(oe.SUFFIX) || At;
8403
+ return At.get(oe.SUFFIX) || Et;
8362
8404
  }
8363
8405
  checkAndCreateNodeType(i) {
8364
8406
  if (!(i instanceof ae))
@@ -8367,9 +8409,9 @@ let Dn = class extends Et {
8367
8409
  if (a.charAt(0) === '"' && a.charAt(a.length - 1) === '"')
8368
8410
  return;
8369
8411
  let e = "";
8370
- if (a === Je.PERCENTAGE)
8412
+ if (a === et.PERCENTAGE)
8371
8413
  e = Te.DIVIDED;
8372
- else return a === Je.POUND ? new Oi(this._currentConfigService, this._lexer, a) : void 0;
8414
+ else return a === et.POUND ? new Oi(this._currentConfigService, this._lexer, a) : void 0;
8373
8415
  const t = this._functionService.getExecutor(e);
8374
8416
  return t ? new Oi(this._currentConfigService, this._lexer, a, t) : (console.error(`No function ${i}`), xe.create(m.NAME));
8375
8417
  }
@@ -8402,12 +8444,12 @@ class ph extends Ge {
8402
8444
  return a.isError() || e.isError() || !a.isReferenceObject() || !e.isReferenceObject() ? g.create(m.REF) : (a = a, e = e, Hf(a, e));
8403
8445
  }
8404
8446
  }
8405
- let Ln = class extends Et {
8447
+ let Ln = class extends bt {
8406
8448
  constructor(i) {
8407
8449
  super(), this._functionService = i;
8408
8450
  }
8409
8451
  get zIndex() {
8410
- return _t.get(oe.UNION) || At;
8452
+ return At.get(oe.UNION) || Et;
8411
8453
  }
8412
8454
  create(i) {
8413
8455
  return new ph(i);
@@ -8434,9 +8476,9 @@ class Vh extends Ge {
8434
8476
  this.setValue(Vt.create(this.getToken()));
8435
8477
  }
8436
8478
  }
8437
- class jo extends Et {
8479
+ class jo extends bt {
8438
8480
  get zIndex() {
8439
- return _t.get(oe.VALUE) || At;
8481
+ return At.get(oe.VALUE) || Et;
8440
8482
  }
8441
8483
  _checkValueNode(a) {
8442
8484
  if (Number.isNaN(Number(a))) {
@@ -8465,7 +8507,7 @@ var Nh = Object.getOwnPropertyDescriptor, Oh = (i, a, e, t) => {
8465
8507
  for (var r = t > 1 ? void 0 : t ? Nh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
8466
8508
  (s = i[n]) && (r = s(r) || r);
8467
8509
  return r;
8468
- }, ot = (i, a) => (e, t) => a(e, t, i);
8510
+ }, ut = (i, a) => (e, t) => a(e, t, i);
8469
8511
  let Ur = class extends Ne {
8470
8512
  constructor(a, e, t, r, n, s, o, u, c, l, f) {
8471
8513
  super();
@@ -8528,7 +8570,7 @@ let Ur = class extends Ne {
8528
8570
  const f = this._changeLetToLambda(a);
8529
8571
  return f != null ? this._parse(f, e) : xe.create(m.ERROR);
8530
8572
  }
8531
- if (o === ft) {
8573
+ if (o === ht) {
8532
8574
  if (s = e, r === 0)
8533
8575
  return new fh(Ut).setParent(e), s;
8534
8576
  } else {
@@ -8549,7 +8591,7 @@ let Ur = class extends Ne {
8549
8591
  continue;
8550
8592
  let d = null;
8551
8593
  if (h instanceof ae) {
8552
- if (h.getToken() === ft && h.getChildren().length === 0) {
8594
+ if (h.getToken() === ht && h.getChildren().length === 0) {
8553
8595
  const _ = (l = h.getParent()) == null ? void 0 : l.getChildren();
8554
8596
  if (_ && _.length === 1)
8555
8597
  return xe.create(m.NAME);
@@ -8639,17 +8681,17 @@ let Ur = class extends Ne {
8639
8681
  }
8640
8682
  };
8641
8683
  Ur = Oh([
8642
- ot(0, Ot),
8643
- ot(1, ye(Mo)),
8644
- ot(2, ye(On)),
8645
- ot(3, ye(Mn)),
8646
- ot(4, ye(xo)),
8647
- ot(5, ye(wn)),
8648
- ot(6, ye(Nn)),
8649
- ot(7, ye(Sn)),
8650
- ot(8, ye(Dn)),
8651
- ot(9, ye(Ln)),
8652
- ot(10, ye(jo))
8684
+ ut(0, Ot),
8685
+ ut(1, ye(Mo)),
8686
+ ut(2, ye(On)),
8687
+ ut(3, ye(Mn)),
8688
+ ut(4, ye(xo)),
8689
+ ut(5, ye(wn)),
8690
+ ut(6, ye(Nn)),
8691
+ ut(7, ye(Sn)),
8692
+ ut(8, ye(Dn)),
8693
+ ut(9, ye(Ln)),
8694
+ ut(10, ye(jo))
8653
8695
  ], Ur);
8654
8696
  class Mh extends Ne {
8655
8697
  constructor() {
@@ -8995,7 +9037,7 @@ class wh extends Mh {
8995
9037
  this._allTreeMap.set(e.treeId, e);
8996
9038
  }
8997
9039
  }
8998
- const Zn = et(
9040
+ const Zn = tt(
8999
9041
  "univer.formula.dependency-manager.service"
9000
9042
  );
9001
9043
  class Sh extends Ne {
@@ -9041,7 +9083,7 @@ class Sh extends Ne {
9041
9083
  return this._referenceExecutorMap;
9042
9084
  }
9043
9085
  }
9044
- const vr = et(
9086
+ const vr = tt(
9045
9087
  "univer.formula.feature-calculation-manager.service"
9046
9088
  );
9047
9089
  class Dh extends Ne {
@@ -9117,7 +9159,7 @@ class Dh extends Ne {
9117
9159
  return this._otherFormulaData;
9118
9160
  }
9119
9161
  }
9120
- const Oa = et(
9162
+ const Oa = tt(
9121
9163
  "univer.formula.other-formula-manager.service"
9122
9164
  );
9123
9165
  var Qs = /* @__PURE__ */ ((i) => (i[i.NORMAL_FORMULA = 0] = "NORMAL_FORMULA", i[i.OTHER_FORMULA = 1] = "OTHER_FORMULA", i[i.FEATURE_FORMULA = 2] = "FEATURE_FORMULA", i))(Qs || {});
@@ -9405,7 +9447,7 @@ var Lh = Object.getOwnPropertyDescriptor, Ph = (i, a, e, t) => {
9405
9447
  function or(i) {
9406
9448
  return i.getLastTreeId() || 0;
9407
9449
  }
9408
- const Ws = et("engine-formula.dependency-generator");
9450
+ const Ws = tt("engine-formula.dependency-generator");
9409
9451
  let qs = class extends Ne {
9410
9452
  constructor(a, e, t, r, n, s, o, u) {
9411
9453
  super();
@@ -9699,7 +9741,7 @@ let qs = class extends Ne {
9699
9741
  n == null && (n = [], r.set(e, n)), n.push(t);
9700
9742
  }
9701
9743
  _isPreCalculateNode(a) {
9702
- return a.nodeType === oe.UNION || a.nodeType === oe.PREFIX && a.getToken() === Me.AT || a.nodeType === oe.SUFFIX && a.getToken() === Je.POUND;
9744
+ return a.nodeType === oe.UNION || a.nodeType === oe.PREFIX && a.getToken() === Me.AT || a.nodeType === oe.SUFFIX && a.getToken() === et.POUND;
9703
9745
  }
9704
9746
  _nodeTraversalRef(a, e) {
9705
9747
  const t = a.getChildren(), r = t.length;
@@ -10012,7 +10054,7 @@ var xh = Object.getOwnPropertyDescriptor, jh = (i, a, e, t) => {
10012
10054
  (s = i[n]) && (r = s(r) || r);
10013
10055
  return r;
10014
10056
  }, Qt = (i, a) => (e, t) => a(e, t, i);
10015
- const Uh = 500, Ks = et("engine-formula.calculate-formula.service");
10057
+ const Uh = 500, Ks = tt("engine-formula.calculate-formula.service");
10016
10058
  let Xs = class extends Ne {
10017
10059
  constructor(a, e, t, r, n, s, o) {
10018
10060
  super();
@@ -10024,7 +10066,7 @@ let Xs = class extends Ne {
10024
10066
  this._configService = a, this._lexer = e, this._currentConfigService = t, this._runtimeService = r, this._formulaDependencyGenerator = n, this._interpreter = s, this._astTreeBuilder = o;
10025
10067
  }
10026
10068
  dispose() {
10027
- super.dispose(), this._executionInProgressListener$.complete(), this._executionCompleteListener$.complete(), Rn.clear(), bt.clear(), Us.clear(), Ys.clear();
10069
+ super.dispose(), this._executionInProgressListener$.complete(), this._executionCompleteListener$.complete(), Rn.clear(), We.clear(), Us.clear(), Ys.clear();
10028
10070
  }
10029
10071
  /**
10030
10072
  * Stop the execution of the formula.
@@ -10046,12 +10088,12 @@ let Xs = class extends Ne {
10046
10088
  this._runtimeService.setRuntimeFeatureRange(a, e);
10047
10089
  }
10048
10090
  async execute(a) {
10049
- this._runtimeService.setFormulaExecuteStage(Xe.START), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState()), this._currentConfigService.load(a), this._runtimeService.reset();
10091
+ this._runtimeService.setFormulaExecuteStage(Ze.START), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState()), this._currentConfigService.load(a), this._runtimeService.reset();
10050
10092
  const e = a.maxIteration || fo;
10051
10093
  this._executeLock.acquire("FORMULA_EXECUTION_LOCK", async () => {
10052
10094
  for (let t = 0; t < e && (this._runtimeService.setFormulaCycleIndex(t), await this._executeStep(), Rn.clear(), !!this._runtimeService.isCycleDependency()); t++)
10053
10095
  ;
10054
- this._runtimeService.setFormulaExecuteStage(Xe.CALCULATION_COMPLETED), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState()), this._executionCompleteListener$.next(this._runtimeService.getAllRuntimeData()), bt.clear(), this._runtimeService.reset();
10096
+ this._runtimeService.setFormulaExecuteStage(Ze.CALCULATION_COMPLETED), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState()), this._executionCompleteListener$.next(this._runtimeService.getAllRuntimeData()), We.clear(), this._runtimeService.reset();
10055
10097
  });
10056
10098
  }
10057
10099
  async _executeStep() {
@@ -10097,9 +10139,9 @@ let Xs = class extends Ne {
10097
10139
  }
10098
10140
  // eslint-disable-next-line max-lines-per-function
10099
10141
  async _apply(a = !1) {
10100
- a ? this._runtimeService.setFormulaExecuteStage(Xe.START_DEPENDENCY_ARRAY_FORMULA) : this._runtimeService.setFormulaExecuteStage(Xe.START_DEPENDENCY), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState());
10142
+ a ? this._runtimeService.setFormulaExecuteStage(Ze.START_DEPENDENCY_ARRAY_FORMULA) : this._runtimeService.setFormulaExecuteStage(Ze.START_DEPENDENCY), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState());
10101
10143
  const e = (await this._formulaDependencyGenerator.generate()).reverse(), t = this._interpreter;
10102
- a ? (this._runtimeService.setFormulaExecuteStage(Xe.START_CALCULATION_ARRAY_FORMULA), this._runtimeService.setTotalArrayFormulasToCalculate(e.length)) : (this._runtimeService.setFormulaExecuteStage(Xe.START_CALCULATION), this._runtimeService.setTotalFormulasToCalculate(e.length)), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState());
10144
+ a ? (this._runtimeService.setFormulaExecuteStage(Ze.START_CALCULATION_ARRAY_FORMULA), this._runtimeService.setTotalArrayFormulasToCalculate(e.length)) : (this._runtimeService.setFormulaExecuteStage(Ze.START_CALCULATION), this._runtimeService.setTotalFormulasToCalculate(e.length)), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState());
10103
10145
  let r = [];
10104
10146
  const n = this._configService.getConfig(Ca), s = (n == null ? void 0 : n.intervalCount) || Uh, o = e.length;
10105
10147
  for (let u = 0; u < o; u++) {
@@ -10108,9 +10150,9 @@ let Xs = class extends Ne {
10108
10150
  const _ = rc(d);
10109
10151
  r.push(_);
10110
10152
  }), a ? (this._runtimeService.setFormulaExecuteStage(
10111
- Xe.CURRENTLY_CALCULATING_ARRAY_FORMULA
10112
- ), this._runtimeService.setCompletedArrayFormulasCount(u + 1)) : (this._runtimeService.setFormulaExecuteStage(Xe.CURRENTLY_CALCULATING), this._runtimeService.setCompletedFormulasCount(u + 1)), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState()), this._runtimeService.isStopExecution() || l == null && f == null)) {
10113
- this._runtimeService.setFormulaExecuteStage(Xe.IDLE), this._runtimeService.markedAsStopFunctionsExecuted(), this._executionCompleteListener$.next(this._runtimeService.getAllRuntimeData());
10153
+ Ze.CURRENTLY_CALCULATING_ARRAY_FORMULA
10154
+ ), this._runtimeService.setCompletedArrayFormulasCount(u + 1)) : (this._runtimeService.setFormulaExecuteStage(Ze.CURRENTLY_CALCULATING), this._runtimeService.setCompletedFormulasCount(u + 1)), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState()), this._runtimeService.isStopExecution() || l == null && f == null)) {
10155
+ this._runtimeService.setFormulaExecuteStage(Ze.IDLE), this._runtimeService.markedAsStopFunctionsExecuted(), this._executionCompleteListener$.next(this._runtimeService.getAllRuntimeData());
10114
10156
  return;
10115
10157
  }
10116
10158
  this._runtimeService.setCurrent(
@@ -11022,7 +11064,7 @@ function lr(i, a) {
11022
11064
  (t, r) => e.reduce((n, s, o) => n + s * a[o][r], 0)
11023
11065
  ));
11024
11066
  }
11025
- function ht(i) {
11067
+ function mt(i) {
11026
11068
  return i[0].map((a, e) => i.map((t) => t[e]));
11027
11069
  }
11028
11070
  function Wh(i) {
@@ -11030,7 +11072,7 @@ function Wh(i) {
11030
11072
  return a ? null : qh(e, t);
11031
11073
  }
11032
11074
  function vo(i) {
11033
- const a = ht(i), e = a.length, t = a[0].length;
11075
+ const a = mt(i), e = a.length, t = a[0].length;
11034
11076
  let r = !0, n = !1;
11035
11077
  const s = Js(e, t, 0), o = new Array(t).fill(0).map((u, c) => c);
11036
11078
  for (let u = 0; u < t; u++) {
@@ -11108,13 +11150,13 @@ function Kh(i) {
11108
11150
  const a = Xh(i);
11109
11151
  if (!a)
11110
11152
  return null;
11111
- const { matrixU: e, matrixS: t, matrixV: r } = a, n = ht(e), s = Array.from({ length: t.length }, () => new Array(i[0].length).fill(0)), o = Math.max(i.length, i[0].length) * Number.EPSILON * t[0];
11153
+ const { matrixU: e, matrixS: t, matrixV: r } = a, n = mt(e), s = Array.from({ length: t.length }, () => new Array(i[0].length).fill(0)), o = Math.max(i.length, i[0].length) * Number.EPSILON * t[0];
11112
11154
  for (let u = 0; u < t.length; u++)
11113
11155
  Math.abs(t[u]) > o && (s[u][u] = 1 / t[u]);
11114
11156
  return lr(r, lr(s, n));
11115
11157
  }
11116
11158
  function Xh(i) {
11117
- const a = ht(i), e = a.length, t = a[0].length;
11159
+ const a = mt(i), e = a.length, t = a[0].length;
11118
11160
  if (e < t)
11119
11161
  return null;
11120
11162
  const r = new Array(t).fill(0), n = new Array(t).fill(0), s = Array.from({ length: t }, () => new Array(t).fill(0));
@@ -11347,7 +11389,7 @@ function Pa(i, a, e) {
11347
11389
  return r;
11348
11390
  }
11349
11391
  function zn(i, a, e) {
11350
- const t = i === 0 || i === 1 ? 0 : Math.exp(lt(a + e) - lt(a) - lt(e) + a * Math.log(i) + e * Math.log(1 - i));
11392
+ const t = i === 0 || i === 1 ? 0 : Math.exp(ft(a + e) - ft(a) - ft(e) + a * Math.log(i) + e * Math.log(1 - i));
11351
11393
  return i < (a + 1) / (a + e + 2) ? t * Pi(i, a, e) / a : 1 - t * Pi(1 - i, e, a) / e;
11352
11394
  }
11353
11395
  function Pi(i, a, e) {
@@ -11365,7 +11407,7 @@ function xa(i, a) {
11365
11407
  return i + a > 170 ? Math.exp(ja(i, a)) : hn(i) * hn(a) / hn(i + a);
11366
11408
  }
11367
11409
  function ja(i, a) {
11368
- return lt(i) + lt(a) - lt(i + a);
11410
+ return ft(i) + ft(a) - ft(i + a);
11369
11411
  }
11370
11412
  function Bo(i, a, e) {
11371
11413
  if (i < 0)
@@ -11386,7 +11428,7 @@ function va(i, a) {
11386
11428
  return i <= 0 ? 0 : Ba(a / 2, i / 2);
11387
11429
  }
11388
11430
  function em(i, a) {
11389
- return i < 0 ? 0 : i === 0 && a === 2 ? 0.5 : Math.exp((a / 2 - 1) * Math.log(i) - i / 2 - a / 2 * Math.log(2) - lt(a / 2));
11431
+ return i < 0 ? 0 : i === 0 && a === 2 ? 0.5 : Math.exp((a / 2 - 1) * Math.log(i) - i / 2 - a / 2 * Math.log(2) - ft(a / 2));
11390
11432
  }
11391
11433
  function Io(i, a) {
11392
11434
  return i <= 0 ? 0 : i >= 1 ? 1 / 0 : 2 * $o(i, a / 2);
@@ -11477,12 +11519,12 @@ function sm(i, a, e) {
11477
11519
  return i <= 0 ? 0 : Ba(a, i / e);
11478
11520
  }
11479
11521
  function am(i, a, e) {
11480
- return i < 0 ? 0 : i === 0 && a === 1 ? 1 / e : Math.exp((a - 1) * Math.log(i) - i / e - lt(a) - a * Math.log(e));
11522
+ return i < 0 ? 0 : i === 0 && a === 1 ? 1 / e : Math.exp((a - 1) * Math.log(i) - i / e - ft(a) - a * Math.log(e));
11481
11523
  }
11482
11524
  function im(i, a, e) {
11483
11525
  return i <= 0 ? 0 : i >= 1 ? 1 / 0 : e * $o(i, a);
11484
11526
  }
11485
- function lt(i) {
11527
+ function ft(i) {
11486
11528
  const a = [
11487
11529
  76.18009172947146,
11488
11530
  -86.50532032941678,
@@ -11502,7 +11544,7 @@ function lt(i) {
11502
11544
  function Ba(i, a) {
11503
11545
  if (a < 0 || i <= 0)
11504
11546
  return Number.NaN;
11505
- const e = 1e-30, t = -~(Math.log(i >= 1 ? i : 1 / i) * 8.5 + i * 0.4 + 17), r = lt(i), n = Math.exp(-a + i * Math.log(a) - r);
11547
+ const e = 1e-30, t = -~(Math.log(i >= 1 ? i : 1 / i) * 8.5 + i * 0.4 + 17), r = ft(i), n = Math.exp(-a + i * Math.log(a) - r);
11506
11548
  let s = i, o = 1 / i, u = o;
11507
11549
  if (a < i + 1) {
11508
11550
  if (n === 0)
@@ -11534,7 +11576,7 @@ function $o(i, a) {
11534
11576
  const o = 1 - a * (0.253 + a * 0.12);
11535
11577
  i < o ? e = (i / o) ** (1 / a) : e = 1 - Math.log(1 - (i - o) / (1 - o));
11536
11578
  }
11537
- const t = 1e-8, r = lt(a);
11579
+ const t = 1e-8, r = ft(a);
11538
11580
  let n, s;
11539
11581
  for (let o = 0; o < 12; o++) {
11540
11582
  if (e <= 0)
@@ -11603,7 +11645,7 @@ function es(i, a) {
11603
11645
  let e = Pa(2 * Math.min(i, 1 - i), 0.5 * a, 0.5);
11604
11646
  return e = Math.sqrt(a * (1 - e) / e), i > 0.5 ? e : -e;
11605
11647
  }
11606
- function tt(i, a, e, t, r) {
11648
+ function rt(i, a, e, t, r) {
11607
11649
  const n = [], s = [];
11608
11650
  let o = !0;
11609
11651
  for (let u = 0; u < e; u++) {
@@ -11658,7 +11700,7 @@ function ts(i, a, e) {
11658
11700
  errorObject: null
11659
11701
  };
11660
11702
  }
11661
- function dt(i) {
11703
+ function Ct(i) {
11662
11704
  const a = i.isArray() ? i.getRowCount() : 1, e = i.isArray() ? i.getColumnCount() : 1, t = [];
11663
11705
  for (let r = 0; r < a; r++) {
11664
11706
  t[r] = [];
@@ -11748,13 +11790,13 @@ function ss(i, a, e, t, r) {
11748
11790
  let s = i;
11749
11791
  r && (s = i.map((C) => C.map((E) => Math.log(E))));
11750
11792
  let o = a, u = e;
11751
- n && (s = ht(s), o = ht(o), u = ht(u)), t && (o = o.map((C) => [...C, 1]));
11752
- const c = ht(o), l = lr(c, o), f = lr(c, s);
11793
+ n && (s = mt(s), o = mt(o), u = mt(u)), t && (o = o.map((C) => [...C, 1]));
11794
+ const c = mt(o), l = lr(c, o), f = lr(c, s);
11753
11795
  let h = Wh(l);
11754
11796
  if (!h && (h = Kh(l), !h))
11755
11797
  return g.create(m.NA);
11756
11798
  let d = lr(h, f);
11757
- t || d.push([0]), d = ht(d);
11799
+ t || d.push([0]), d = mt(d);
11758
11800
  const _ = d[0].pop();
11759
11801
  if (d[0].reverse(), d[0].push(_), r)
11760
11802
  for (let C = 0; C < d[0].length; C++)
@@ -11967,7 +12009,7 @@ class Zo extends V {
11967
12009
  array1Values: h,
11968
12010
  array2Values: d,
11969
12011
  noCalculate: _
11970
- } = tt(
12012
+ } = rt(
11971
12013
  e,
11972
12014
  t,
11973
12015
  r * n,
@@ -12048,7 +12090,7 @@ class Jo extends V {
12048
12090
  array1Values: h,
12049
12091
  array2Values: d,
12050
12092
  noCalculate: _
12051
- } = tt(
12093
+ } = rt(
12052
12094
  e,
12053
12095
  t,
12054
12096
  r * n,
@@ -12564,7 +12606,7 @@ class hu extends V {
12564
12606
  let d = 0, _ = !1, C = 0;
12565
12607
  for (; !_ && C < h; )
12566
12608
  l === e[C] ? (d = C / (h - 1), _ = !0) : l > e[C] && C + 1 < h && l < e[C + 1] && (d = (C + (l - e[C]) / (e[C + 1] - e[C])) / (h - 1), _ = !0), C++;
12567
- return _ ? f < 1 ? g.create(m.NUM) : (d = We(d, f), y.create(d)) : g.create(m.NA);
12609
+ return _ ? f < 1 ? g.create(m.NUM) : (d = qe(d, f), y.create(d)) : g.create(m.NA);
12568
12610
  }
12569
12611
  _getValues(e) {
12570
12612
  const t = e.isArray() ? e.getRowCount() : 1, r = e.isArray() ? e.getColumnCount() : 1, n = [];
@@ -12810,7 +12852,7 @@ class Au extends V {
12810
12852
  array1Values: h,
12811
12853
  array2Values: d,
12812
12854
  noCalculate: _
12813
- } = tt(
12855
+ } = rt(
12814
12856
  e,
12815
12857
  t,
12816
12858
  r * n,
@@ -13333,7 +13375,7 @@ class Wb extends Nm {
13333
13375
  return !0;
13334
13376
  }
13335
13377
  }
13336
- function rt(i) {
13378
+ function nt(i) {
13337
13379
  const a = [];
13338
13380
  if (i.isError())
13339
13381
  return {
@@ -13371,7 +13413,7 @@ function rt(i) {
13371
13413
  databaseValues: a
13372
13414
  };
13373
13415
  }
13374
- function nt(i, a) {
13416
+ function st(i, a) {
13375
13417
  let e = -1;
13376
13418
  if (i.isError())
13377
13419
  return {
@@ -13408,7 +13450,7 @@ function nt(i, a) {
13408
13450
  fieldIndex: e
13409
13451
  };
13410
13452
  }
13411
- function st(i) {
13453
+ function at(i) {
13412
13454
  const a = [];
13413
13455
  if (i.isError())
13414
13456
  return {
@@ -13450,7 +13492,7 @@ function st(i) {
13450
13492
  criteriaValues: a
13451
13493
  };
13452
13494
  }
13453
- function at(i, a, e) {
13495
+ function it(i, a, e) {
13454
13496
  const t = i.length, r = i[0].length, n = {};
13455
13497
  let s = !1;
13456
13498
  for (let o = 1; o < t; o++) {
@@ -13494,19 +13536,19 @@ class Om extends V {
13494
13536
  A(this, "maxParams", 3);
13495
13537
  }
13496
13538
  calculate(e, t, r) {
13497
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13539
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13498
13540
  if (n)
13499
13541
  return s;
13500
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13542
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13501
13543
  if (u)
13502
13544
  return c;
13503
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13545
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13504
13546
  if (f)
13505
13547
  return h;
13506
13548
  let _ = 0, C = 0;
13507
13549
  for (let E = 1; E < o.length; E++) {
13508
13550
  const b = o[E][l];
13509
- typeof b == "number" && at(d, o, E) && (_ += b, C++);
13551
+ typeof b == "number" && it(d, o, E) && (_ += b, C++);
13510
13552
  }
13511
13553
  return C === 0 ? g.create(m.DIV_BY_ZERO) : y.create(_ / C);
13512
13554
  }
@@ -13518,18 +13560,18 @@ class Mm extends V {
13518
13560
  A(this, "maxParams", 3);
13519
13561
  }
13520
13562
  calculate(e, t, r) {
13521
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13563
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13522
13564
  if (n)
13523
13565
  return s;
13524
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13566
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13525
13567
  if (u)
13526
13568
  return c;
13527
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13569
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13528
13570
  if (f)
13529
13571
  return h;
13530
13572
  let _ = 0;
13531
13573
  for (let C = 1; C < o.length; C++)
13532
- typeof o[C][l] == "number" && at(d, o, C) && _++;
13574
+ typeof o[C][l] == "number" && it(d, o, C) && _++;
13533
13575
  return y.create(_);
13534
13576
  }
13535
13577
  }
@@ -13540,19 +13582,19 @@ class wm extends V {
13540
13582
  A(this, "maxParams", 3);
13541
13583
  }
13542
13584
  calculate(e, t, r) {
13543
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13585
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13544
13586
  if (n)
13545
13587
  return s;
13546
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13588
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13547
13589
  if (u)
13548
13590
  return c;
13549
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13591
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13550
13592
  if (f)
13551
13593
  return h;
13552
13594
  let _ = 0;
13553
13595
  for (let C = 1; C < o.length; C++) {
13554
13596
  const E = o[C][l];
13555
- E != null && at(d, o, C) && _++;
13597
+ E != null && it(d, o, C) && _++;
13556
13598
  }
13557
13599
  return y.create(_);
13558
13600
  }
@@ -13564,19 +13606,19 @@ class Sm extends V {
13564
13606
  A(this, "maxParams", 3);
13565
13607
  }
13566
13608
  calculate(e, t, r) {
13567
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13609
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13568
13610
  if (n)
13569
13611
  return s;
13570
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13612
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13571
13613
  if (u)
13572
13614
  return c;
13573
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13615
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13574
13616
  if (f)
13575
13617
  return h;
13576
13618
  let _ = 0, C = 0;
13577
13619
  for (let E = 1; E < o.length; E++) {
13578
13620
  const b = o[E][l];
13579
- b != null && at(d, o, E) && (_++, C = E);
13621
+ b != null && it(d, o, E) && (_++, C = E);
13580
13622
  }
13581
13623
  return _ === 0 ? g.create(m.VALUE) : _ > 1 ? g.create(m.NUM) : e.get(C, l);
13582
13624
  }
@@ -13588,19 +13630,19 @@ class Dm extends V {
13588
13630
  A(this, "maxParams", 3);
13589
13631
  }
13590
13632
  calculate(e, t, r) {
13591
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13633
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13592
13634
  if (n)
13593
13635
  return s;
13594
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13636
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13595
13637
  if (u)
13596
13638
  return c;
13597
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13639
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13598
13640
  if (f)
13599
13641
  return h;
13600
13642
  let _ = -1 / 0, C = 0;
13601
13643
  for (let E = 1; E < o.length; E++) {
13602
13644
  const b = o[E][l];
13603
- typeof b == "number" && at(d, o, E) && (_ = Math.max(_, b), C++);
13645
+ typeof b == "number" && it(d, o, E) && (_ = Math.max(_, b), C++);
13604
13646
  }
13605
13647
  return C === 0 ? y.create(0) : y.create(_);
13606
13648
  }
@@ -13612,19 +13654,19 @@ class Lm extends V {
13612
13654
  A(this, "maxParams", 3);
13613
13655
  }
13614
13656
  calculate(e, t, r) {
13615
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13657
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13616
13658
  if (n)
13617
13659
  return s;
13618
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13660
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13619
13661
  if (u)
13620
13662
  return c;
13621
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13663
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13622
13664
  if (f)
13623
13665
  return h;
13624
13666
  let _ = 1 / 0, C = 0;
13625
13667
  for (let E = 1; E < o.length; E++) {
13626
13668
  const b = o[E][l];
13627
- typeof b == "number" && at(d, o, E) && (_ = Math.min(_, b), C++);
13669
+ typeof b == "number" && it(d, o, E) && (_ = Math.min(_, b), C++);
13628
13670
  }
13629
13671
  return C === 0 ? y.create(0) : y.create(_);
13630
13672
  }
@@ -13636,19 +13678,19 @@ class Pm extends V {
13636
13678
  A(this, "maxParams", 3);
13637
13679
  }
13638
13680
  calculate(e, t, r) {
13639
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13681
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13640
13682
  if (n)
13641
13683
  return s;
13642
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13684
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13643
13685
  if (u)
13644
13686
  return c;
13645
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13687
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13646
13688
  if (f)
13647
13689
  return h;
13648
13690
  let _ = 1, C = 0;
13649
13691
  for (let E = 1; E < o.length; E++) {
13650
13692
  const b = o[E][l];
13651
- typeof b == "number" && at(d, o, E) && (_ *= b, C++);
13693
+ typeof b == "number" && it(d, o, E) && (_ *= b, C++);
13652
13694
  }
13653
13695
  return C === 0 ? y.create(0) : y.create(_);
13654
13696
  }
@@ -13660,20 +13702,20 @@ class xm extends V {
13660
13702
  A(this, "maxParams", 3);
13661
13703
  }
13662
13704
  calculate(e, t, r) {
13663
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13705
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13664
13706
  if (n)
13665
13707
  return s;
13666
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13708
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13667
13709
  if (u)
13668
13710
  return c;
13669
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13711
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13670
13712
  if (f)
13671
13713
  return h;
13672
13714
  const _ = [];
13673
13715
  let C = 0, E = 0;
13674
13716
  for (let N = 1; N < o.length; N++) {
13675
13717
  const M = o[N][l];
13676
- typeof M == "number" && at(d, o, N) && (_.push(M), C += M, E++);
13718
+ typeof M == "number" && it(d, o, N) && (_.push(M), C += M, E++);
13677
13719
  }
13678
13720
  if (E <= 1)
13679
13721
  return g.create(m.DIV_BY_ZERO);
@@ -13692,20 +13734,20 @@ class jm extends V {
13692
13734
  A(this, "maxParams", 3);
13693
13735
  }
13694
13736
  calculate(e, t, r) {
13695
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13737
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13696
13738
  if (n)
13697
13739
  return s;
13698
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13740
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13699
13741
  if (u)
13700
13742
  return c;
13701
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13743
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13702
13744
  if (f)
13703
13745
  return h;
13704
13746
  const _ = [];
13705
13747
  let C = 0, E = 0;
13706
13748
  for (let N = 1; N < o.length; N++) {
13707
13749
  const M = o[N][l];
13708
- typeof M == "number" && at(d, o, N) && (_.push(M), C += M, E++);
13750
+ typeof M == "number" && it(d, o, N) && (_.push(M), C += M, E++);
13709
13751
  }
13710
13752
  if (E === 0)
13711
13753
  return g.create(m.DIV_BY_ZERO);
@@ -13724,19 +13766,19 @@ class Um extends V {
13724
13766
  A(this, "maxParams", 3);
13725
13767
  }
13726
13768
  calculate(e, t, r) {
13727
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13769
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13728
13770
  if (n)
13729
13771
  return s;
13730
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13772
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13731
13773
  if (u)
13732
13774
  return c;
13733
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13775
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13734
13776
  if (f)
13735
13777
  return h;
13736
13778
  let _ = 0;
13737
13779
  for (let C = 1; C < o.length; C++) {
13738
13780
  const E = o[C][l];
13739
- typeof E == "number" && at(d, o, C) && (_ += E);
13781
+ typeof E == "number" && it(d, o, C) && (_ += E);
13740
13782
  }
13741
13783
  return y.create(_);
13742
13784
  }
@@ -13748,20 +13790,20 @@ class vm extends V {
13748
13790
  A(this, "maxParams", 3);
13749
13791
  }
13750
13792
  calculate(e, t, r) {
13751
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13793
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13752
13794
  if (n)
13753
13795
  return s;
13754
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13796
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13755
13797
  if (u)
13756
13798
  return c;
13757
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13799
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13758
13800
  if (f)
13759
13801
  return h;
13760
13802
  const _ = [];
13761
13803
  let C = 0, E = 0;
13762
13804
  for (let N = 1; N < o.length; N++) {
13763
13805
  const M = o[N][l];
13764
- typeof M == "number" && at(d, o, N) && (_.push(M), C += M, E++);
13806
+ typeof M == "number" && it(d, o, N) && (_.push(M), C += M, E++);
13765
13807
  }
13766
13808
  if (E <= 1)
13767
13809
  return g.create(m.DIV_BY_ZERO);
@@ -13780,20 +13822,20 @@ class Tm extends V {
13780
13822
  A(this, "maxParams", 3);
13781
13823
  }
13782
13824
  calculate(e, t, r) {
13783
- const { isError: n, errorObject: s, databaseValues: o } = rt(e);
13825
+ const { isError: n, errorObject: s, databaseValues: o } = nt(e);
13784
13826
  if (n)
13785
13827
  return s;
13786
- const { isError: u, errorObject: c, fieldIndex: l } = nt(t, o);
13828
+ const { isError: u, errorObject: c, fieldIndex: l } = st(t, o);
13787
13829
  if (u)
13788
13830
  return c;
13789
- const { isError: f, errorObject: h, criteriaValues: d } = st(r);
13831
+ const { isError: f, errorObject: h, criteriaValues: d } = at(r);
13790
13832
  if (f)
13791
13833
  return h;
13792
13834
  const _ = [];
13793
13835
  let C = 0, E = 0;
13794
13836
  for (let N = 1; N < o.length; N++) {
13795
13837
  const M = o[N][l];
13796
- typeof M == "number" && at(d, o, N) && (_.push(M), C += M, E++);
13838
+ typeof M == "number" && it(d, o, N) && (_.push(M), C += M, E++);
13797
13839
  }
13798
13840
  if (E === 0)
13799
13841
  return g.create(m.DIV_BY_ZERO);
@@ -13850,16 +13892,16 @@ function Ya(i) {
13850
13892
  return i.replace(/\//g, "-").split("-").map((c) => c.padStart(2, "0")).join("-") === o;
13851
13893
  }
13852
13894
  function ea(i) {
13853
- return gt.parseDate(i);
13895
+ return dt.parseDate(i);
13854
13896
  }
13855
13897
  function pu(i) {
13856
- return gt.parseValue(i);
13898
+ return dt.parseValue(i);
13857
13899
  }
13858
13900
  function ta(i) {
13859
- return gt.parseTime(i);
13901
+ return dt.parseTime(i);
13860
13902
  }
13861
13903
  function Ha(i) {
13862
- return gt.isDate(i);
13904
+ return dt.isDate(i);
13863
13905
  }
13864
13906
  const Vu = {
13865
13907
  1: [6, 0],
@@ -17156,7 +17198,7 @@ function is(i, a, e, t) {
17156
17198
  const r = It(i, a, e), { days: n } = _e(r, i, t);
17157
17199
  return n;
17158
17200
  }
17159
- function qe(i, a, e, t) {
17201
+ function Ke(i, a, e, t) {
17160
17202
  let r;
17161
17203
  if (t === 1) {
17162
17204
  const n = It(i, a, e);
@@ -17190,7 +17232,7 @@ function It(i, a, e) {
17190
17232
  return Re(r);
17191
17233
  }
17192
17234
  function wu(i, a, e, t, r, n) {
17193
- const s = is(i, a, r, n), o = qe(i, a, r, n), u = rr(i, a, r), c = (o - s) / o - 1, l = t / r + 1, f = e * 100 / r;
17235
+ const s = is(i, a, r, n), o = Ke(i, a, r, n), u = rr(i, a, r), c = (o - s) / o - 1, l = t / r + 1, f = e * 100 / r;
17194
17236
  let h = 0, d = 0;
17195
17237
  for (let E = 1; E <= u; E++) {
17196
17238
  const b = E + c, R = f / l ** b;
@@ -17232,7 +17274,7 @@ function Du(i, a) {
17232
17274
  return e;
17233
17275
  }
17234
17276
  function Lu(i, a, e, t, r, n, s, o, u) {
17235
- const c = Kt(e, t, u), l = qe(i, t, o, u);
17277
+ const c = Kt(e, t, u), l = Ke(i, t, o, u);
17236
17278
  return c < l ? O1(
17237
17279
  i,
17238
17280
  a,
@@ -17355,7 +17397,7 @@ function S1(i, a) {
17355
17397
  return C;
17356
17398
  }
17357
17399
  function mn(i, a, e, t, r, n, s) {
17358
- const o = rr(i, a, n), u = qe(i, a, n, s), c = is(i, a, n, s);
17400
+ const o = rr(i, a, n), u = Ke(i, a, n, s), c = is(i, a, n, s);
17359
17401
  if (o === 1) {
17360
17402
  const h = u - c, d = 100 * e / n + r, _ = t / n * h / u + 1, C = 100 * e / n * c / u;
17361
17403
  return d / _ - C;
@@ -17411,12 +17453,12 @@ class D1 extends V {
17411
17453
  p = L;
17412
17454
  }
17413
17455
  r < R && (p = -p);
17414
- let N = qe(b, t, o, u), M = p / N, w = b, S = e;
17456
+ let N = Ke(b, t, o, u), M = p / N, w = b, S = e;
17415
17457
  for (; w > e; ) {
17416
17458
  S = w, w = Jt(w, -f, E), R = e > w ? e : w;
17417
17459
  const { days: L } = _e(R, S, u);
17418
17460
  if (u === 0)
17419
- S >= R || e <= w ? p = L : p = -L, N = qe(w, S, o, u);
17461
+ S >= R || e <= w ? p = L : p = -L, N = Ke(w, S, o, u);
17420
17462
  else if (p = S < R ? -L : L, u === 3)
17421
17463
  N = 365 / o;
17422
17464
  else {
@@ -17531,7 +17573,7 @@ class j1 extends V {
17531
17573
  return g.create(m.VALUE);
17532
17574
  if (![1, 2, 4].includes(E) || b < 0 || b > 4 || Math.floor(_) >= Math.floor(C))
17533
17575
  return g.create(m.NUM);
17534
- const R = qe(_, C, E, b);
17576
+ const R = Ke(_, C, E, b);
17535
17577
  return y.create(R);
17536
17578
  }
17537
17579
  }
@@ -17730,7 +17772,7 @@ class k1 extends V {
17730
17772
  for (let C = 2; C <= d; C++)
17731
17773
  h = (e - f) * c, f += h;
17732
17774
  let _;
17733
- return n === 1 ? _ = l : n === r ? _ = (e - f) * c : _ = h, Number.isNaN(_) || !Number.isFinite(_) ? g.create(m.NUM) : o === 0 && u === 0 ? y.create(_, Ke(this.getLocale())) : y.create(_);
17775
+ return n === 1 ? _ = l : n === r ? _ = (e - f) * c : _ = h, Number.isNaN(_) || !Number.isFinite(_) ? g.create(m.NUM) : o === 0 && u === 0 ? y.create(_, Xe(this.getLocale())) : y.create(_);
17734
17776
  }
17735
17777
  }
17736
17778
  class $1 extends V {
@@ -17763,7 +17805,7 @@ class $1 extends V {
17763
17805
  if (z < 0 || G < 0 || ge <= 0 || de <= 0 || de > ge || Ee <= 0)
17764
17806
  return g.create(m.NUM);
17765
17807
  const pe = ra(z, G, ge, de, Ee);
17766
- return Number.isNaN(pe) || !Number.isFinite(pe) ? g.create(m.NUM) : b === 0 && R === 0 ? y.create(pe, Ke(this.getLocale())) : y.create(pe);
17808
+ return Number.isNaN(pe) || !Number.isFinite(pe) ? g.create(m.NUM) : b === 0 && R === 0 ? y.create(pe, Xe(this.getLocale())) : y.create(pe);
17767
17809
  });
17768
17810
  return u === 1 && c === 1 ? C.get(0, 0) : C;
17769
17811
  }
@@ -17914,7 +17956,7 @@ class q1 extends V {
17914
17956
  if (D)
17915
17957
  return L;
17916
17958
  const [x, F, W, ne, z] = U, G = +x.getValue(), ge = +F.getValue(), de = +W.getValue(), Ee = +ne.getValue(), pe = +z.getValue(), he = nr(G, ge, de, Ee, pe ? 1 : 0);
17917
- return Number.isNaN(he) || !Number.isFinite(he) ? g.create(m.NUM) : R === 0 && p === 0 ? y.create(he, Ke(this.getLocale())) : y.create(he);
17959
+ return Number.isNaN(he) || !Number.isFinite(he) ? g.create(m.NUM) : R === 0 && p === 0 ? y.create(he, Xe(this.getLocale())) : y.create(he);
17918
17960
  });
17919
17961
  return c === 1 && l === 1 ? E.get(0, 0) : E;
17920
17962
  }
@@ -18009,8 +18051,8 @@ class Z1 extends V {
18009
18051
  const [ne, z, G, ge, de, Ee] = W, pe = +ne.getValue(), he = +z.getValue(), ke = +G.getValue(), Mt = +ge.getValue(), ar = +de.getValue(), wt = +Ee.getValue();
18010
18052
  if (he < 1 || Math.floor(he) > Math.ceil(ke))
18011
18053
  return g.create(m.NUM);
18012
- const it = Su(pe, he, ke, Mt, ar, wt ? 1 : 0);
18013
- return Number.isNaN(it) || !Number.isFinite(it) ? g.create(m.NUM) : N === 0 && M === 0 ? y.create(it, Ke(this.getLocale())) : y.create(it);
18054
+ const ot = Su(pe, he, ke, Mt, ar, wt ? 1 : 0);
18055
+ return Number.isNaN(ot) || !Number.isFinite(ot) ? g.create(m.NUM) : N === 0 && M === 0 ? y.create(ot, Xe(this.getLocale())) : y.create(ot);
18014
18056
  });
18015
18057
  return l === 1 && f === 1 ? R.get(0, 0) : R;
18016
18058
  }
@@ -18299,7 +18341,7 @@ class s0 extends V {
18299
18341
  if (t)
18300
18342
  return r;
18301
18343
  const c = +e.getValue(), l = Du(c, n);
18302
- return Number.isNaN(l) || Math.abs(l) === 1 / 0 ? g.create(m.DIV_BY_ZERO) : s === 0 && o === 0 ? y.create(l, Ke(this.getLocale())) : y.create(l);
18344
+ return Number.isNaN(l) || Math.abs(l) === 1 / 0 ? g.create(m.DIV_BY_ZERO) : s === 0 && o === 0 ? y.create(l, Xe(this.getLocale())) : y.create(l);
18303
18345
  }
18304
18346
  _getValues(e) {
18305
18347
  const t = [];
@@ -18474,16 +18516,16 @@ class o0 extends V {
18474
18516
  c.setUTCMonth(c.getUTCMonth() + 12 / n);
18475
18517
  let f = Re(c);
18476
18518
  if (f >= t) {
18477
- const { days: p } = _e(e, t, s), N = qe(l, f, n, s);
18519
+ const { days: p } = _e(e, t, s), N = Ke(l, f, n, s);
18478
18520
  return p / N;
18479
18521
  }
18480
- const { days: h } = _e(e, f, s), d = qe(l, f, n, s);
18522
+ const { days: h } = _e(e, f, s), d = Ke(l, f, n, s);
18481
18523
  let _ = h / d;
18482
18524
  const C = re(f), E = re(f);
18483
18525
  for (E.setUTCMonth(E.getUTCMonth() + 12 / n); E < u; )
18484
18526
  C.setUTCMonth(C.getUTCMonth() + 12 / n), E.setUTCMonth(E.getUTCMonth() + 12 / n), _ += 1;
18485
18527
  l = Re(C), f = Re(E);
18486
- const { days: b } = _e(l, t, s), R = qe(l, f, n, s);
18528
+ const { days: b } = _e(l, t, s), R = Ke(l, f, n, s);
18487
18529
  return _ += b / R, _;
18488
18530
  }
18489
18531
  }
@@ -18537,16 +18579,16 @@ class u0 extends V {
18537
18579
  c.setUTCMonth(c.getUTCMonth() + 12 / n);
18538
18580
  let f = Re(c);
18539
18581
  if (f >= t) {
18540
- const { days: p } = _e(e, t, s), N = qe(l, f, n, s);
18582
+ const { days: p } = _e(e, t, s), N = Ke(l, f, n, s);
18541
18583
  return p / N;
18542
18584
  }
18543
- const { days: h } = _e(e, f, s), d = qe(l, f, n, s);
18585
+ const { days: h } = _e(e, f, s), d = Ke(l, f, n, s);
18544
18586
  let _ = h / d;
18545
18587
  const C = re(f), E = re(f);
18546
18588
  for (E.setUTCMonth(E.getUTCMonth() + 12 / n); E < u; )
18547
18589
  C.setUTCMonth(C.getUTCMonth() + 12 / n), E.setUTCMonth(E.getUTCMonth() + 12 / n), _ += 1;
18548
18590
  l = Re(C), f = Re(E);
18549
- const { days: b } = _e(l, t, s), R = qe(l, f, n, s);
18591
+ const { days: b } = _e(l, t, s), R = Ke(l, f, n, s);
18550
18592
  return _ += b / R, _;
18551
18593
  }
18552
18594
  }
@@ -18606,7 +18648,7 @@ class l0 extends V {
18606
18648
  if (G <= -1)
18607
18649
  return g.create(m.NUM);
18608
18650
  const he = Wr(G, ge, de, Ee, pe ? 1 : 0);
18609
- return Number.isNaN(he) || !Number.isFinite(he) ? g.create(m.NUM) : R === 0 && p === 0 ? y.create(he, Ke(this.getLocale())) : y.create(he);
18651
+ return Number.isNaN(he) || !Number.isFinite(he) ? g.create(m.NUM) : R === 0 && p === 0 ? y.create(he, Xe(this.getLocale())) : y.create(he);
18610
18652
  });
18611
18653
  return c === 1 && l === 1 ? E.get(0, 0) : E;
18612
18654
  }
@@ -18640,8 +18682,8 @@ class f0 extends V {
18640
18682
  const [ne, z, G, ge, de, Ee] = W, pe = +ne.getValue(), he = +z.getValue(), ke = +G.getValue(), Mt = +ge.getValue(), ar = +de.getValue(), wt = +Ee.getValue();
18641
18683
  if (he < 1 || Math.floor(he) > Math.ceil(ke) || he - ke >= 1)
18642
18684
  return g.create(m.NUM);
18643
- const it = Wr(pe, ke, Mt, ar, wt ? 1 : 0) - Su(pe, he, ke, Mt, ar, wt ? 1 : 0);
18644
- return Number.isNaN(it) || !Number.isFinite(it) ? g.create(m.NUM) : N === 0 && M === 0 ? y.create(it, Ke(this.getLocale())) : y.create(it);
18685
+ const ot = Wr(pe, ke, Mt, ar, wt ? 1 : 0) - Su(pe, he, ke, Mt, ar, wt ? 1 : 0);
18686
+ return Number.isNaN(ot) || !Number.isFinite(ot) ? g.create(m.NUM) : N === 0 && M === 0 ? y.create(ot, Xe(this.getLocale())) : y.create(ot);
18645
18687
  });
18646
18688
  return l === 1 && f === 1 ? R.get(0, 0) : R;
18647
18689
  }
@@ -18762,7 +18804,7 @@ class d0 extends V {
18762
18804
  let pe = +z.getValue();
18763
18805
  pe = pe ? 1 : 0;
18764
18806
  const he = G === 0 ? -de * ge - Ee : ((1 - (1 + G) ** ge) / G * de * (1 + G * pe) - Ee) / (1 + G) ** ge;
18765
- return Number.isNaN(he) || !Number.isFinite(he) ? g.create(m.NUM) : R === 0 && p === 0 ? y.create(he, Ke(this.getLocale())) : y.create(he);
18807
+ return Number.isNaN(he) || !Number.isFinite(he) ? g.create(m.NUM) : R === 0 && p === 0 ? y.create(he, Xe(this.getLocale())) : y.create(he);
18766
18808
  });
18767
18809
  return c === 1 && l === 1 ? E.get(0, 0) : E;
18768
18810
  }
@@ -18794,8 +18836,8 @@ class C0 extends V {
18794
18836
  return W;
18795
18837
  const [z, G, ge, de, Ee, pe] = ne, he = +z.getValue(), ke = +G.getValue(), Mt = +ge.getValue(), ar = +de.getValue();
18796
18838
  let wt = +Ee.getValue();
18797
- const it = +pe.getValue();
18798
- return wt = wt ? 1 : 0, he <= 0 || ke >= 0 ? g.create(m.NUM) : this._getResult(he, ke, Mt, ar, wt, it, M, w);
18839
+ const ot = +pe.getValue();
18840
+ return wt = wt ? 1 : 0, he <= 0 || ke >= 0 ? g.create(m.NUM) : this._getResult(he, ke, Mt, ar, wt, ot, M, w);
18799
18841
  });
18800
18842
  return f === 1 && h === 1 ? p.get(0, 0) : p;
18801
18843
  }
@@ -18905,7 +18947,7 @@ class E0 extends V {
18905
18947
  if (R === 0)
18906
18948
  return g.create(m.DIV_BY_ZERO);
18907
18949
  const p = (E - b) / R;
18908
- return h === 0 && d === 0 ? y.create(p, Ke(this.getLocale())) : y.create(p);
18950
+ return h === 0 && d === 0 ? y.create(p, Xe(this.getLocale())) : y.create(p);
18909
18951
  });
18910
18952
  return n === 1 && s === 1 ? l.get(0, 0) : l;
18911
18953
  }
@@ -18942,7 +18984,7 @@ class b0 extends V {
18942
18984
  if (N < 0 || M <= 0 || w > M)
18943
18985
  return g.create(m.NUM);
18944
18986
  const S = (p - N) * (M - w + 1) * 2 / (M * (M + 1));
18945
- return _ === 0 && C === 0 ? y.create(S, Ke(this.getLocale())) : y.create(S);
18987
+ return _ === 0 && C === 0 ? y.create(S, Xe(this.getLocale())) : y.create(S);
18946
18988
  });
18947
18989
  return s === 1 && o === 1 ? h.get(0, 0) : h;
18948
18990
  }
@@ -19006,7 +19048,7 @@ class R0 extends V {
19006
19048
  if (_ > b)
19007
19049
  return g.create(m.NUM);
19008
19050
  const R = 100 * (1 - d * _ / 360);
19009
- return R < 0 ? g.create(m.NUM) : y.create(R, Ke(this.getLocale()));
19051
+ return R < 0 ? g.create(m.NUM) : y.create(R, Xe(this.getLocale()));
19010
19052
  }
19011
19053
  }
19012
19054
  class p0 extends V {
@@ -19089,7 +19131,7 @@ class V0 extends V {
19089
19131
  if (ge === 0 && de === 0 && Ee === 0)
19090
19132
  return g.create(m.DIV_BY_ZERO);
19091
19133
  const ke = this._getResult(z, G, ge, de, Ee, pe, he);
19092
- return d === 0 && _ === 0 ? y.create(ke, Ke(this.getLocale())) : y.create(ke);
19134
+ return d === 0 && _ === 0 ? y.create(ke, Xe(this.getLocale())) : y.create(ke);
19093
19135
  });
19094
19136
  return c === 1 && l === 1 ? f.get(0, 0) : f;
19095
19137
  }
@@ -19432,7 +19474,7 @@ class M0 extends V {
19432
19474
  b = mn(e, t, r, 1.01 * E, s, o, u), E += -R / (b - n - R) * E * 0.01, R = mn(e, t, r, E, s, o, u) - n;
19433
19475
  return E;
19434
19476
  }
19435
- const l = is(e, t, o, u), f = qe(e, t, o, u), { days: h } = _e(e, t, u), d = n / 100 + l / f * r / o;
19477
+ const l = is(e, t, o, u), f = Ke(e, t, o, u), { days: h } = _e(e, t, u), d = n / 100 + l / f * r / o;
19436
19478
  return (s / 100 + r / o - d) / d * o * f / h;
19437
19479
  }
19438
19480
  }
@@ -19588,7 +19630,7 @@ class L0 extends V {
19588
19630
  let h;
19589
19631
  switch (f.toLocaleLowerCase()) {
19590
19632
  case "address":
19591
- return j.create(`$${ze.chatAtABC(l)}$${c + 1}`);
19633
+ return j.create(`$${Je.chatAtABC(l)}$${c + 1}`);
19592
19634
  case "col":
19593
19635
  return y.create(l + 1);
19594
19636
  case "color":
@@ -19717,7 +19759,7 @@ class v0 extends V {
19717
19759
  const r = `${t.getValue()}`;
19718
19760
  if (r.length > 254)
19719
19761
  return T.create(!1);
19720
- const n = ze.topLevelDomainCombiningString(), s = new RegExp(
19762
+ const n = Je.topLevelDomainCombiningString(), s = new RegExp(
19721
19763
  `^(?:[\\w+-]+\\.)*[\\w+-]+@[a-z0-9_-]+(?:\\.[a-z0-9_-]+)*\\.(?:${n})$`,
19722
19764
  "i"
19723
19765
  );
@@ -19897,7 +19939,7 @@ class q0 extends V {
19897
19939
  const r = `${t.getValue()}`.replace(/^\s+|\s+$/g, "");
19898
19940
  if (r.length > 1e3)
19899
19941
  return T.create(!1);
19900
- const n = ze.topLevelDomainCombiningString(), s = new RegExp(
19942
+ const n = Je.topLevelDomainCombiningString(), s = new RegExp(
19901
19943
  `^(?:(?:https?|s?ftp|ftps|nfs|ssh)://+[a-z0-9_-]+(?:\\.[a-z0-9_-]+)*(?::[0-9]+)?(?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[A-Fa-f0-9]{2})*)*/?(?:[?#]\\S*)?|[a-z0-9_-]+(?:\\.[a-z0-9_-]+)*\\.(?:${n})(?::[0-9]+)?(?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[A-Fa-f0-9]{2})*)*/?(?:[?#]\\S*)?|mailto:(?:[\\w+-]+\\.)*[\\w+-]+@[a-z0-9_-]+(?:\\.[a-z0-9_-]+)*\\.(?:${n})|(?:news|aim):[%a-z0-9$_\\.+!*(),;/?#:@&~=-]+)$`,
19902
19944
  "i"
19903
19945
  );
@@ -23295,7 +23337,7 @@ class LC extends V {
23295
23337
  return y.create(0);
23296
23338
  if (C === 0)
23297
23339
  return g.create(m.DIV_BY_ZERO);
23298
- const E = We(_ / C, 0) * C;
23340
+ const E = qe(_ / C, 0) * C;
23299
23341
  return y.create(E);
23300
23342
  });
23301
23343
  return r === 1 && n === 1 ? u.get(0, 0) : u;
@@ -23328,7 +23370,7 @@ class PC extends V {
23328
23370
  if (p === 0 || N === 0)
23329
23371
  return y.create(0);
23330
23372
  let w;
23331
- return p < 0 && M !== 0 ? w = (N < 0 ? We(Math.abs(p) / Math.abs(N), 0) : -We(Math.abs(p) / N, 0)) * N : w = (N < 0 ? -We(p / Math.abs(N), 0) : We(p / N, 0)) * N, y.create(w);
23373
+ return p < 0 && M !== 0 ? w = (N < 0 ? qe(Math.abs(p) / Math.abs(N), 0) : -qe(Math.abs(p) / N, 0)) * N : w = (N < 0 ? -qe(p / Math.abs(N), 0) : qe(p / N, 0)) * N, y.create(w);
23332
23374
  });
23333
23375
  return o === 1 && u === 1 ? h.get(0, 0) : h;
23334
23376
  }
@@ -23360,7 +23402,7 @@ class xC extends V {
23360
23402
  const C = +_.getValue(), E = +d.getValue();
23361
23403
  if (C === 0 || E === 0)
23362
23404
  return y.create(0);
23363
- const b = (E < 0 ? -We(C / Math.abs(E), 0) : We(C / E, 0)) * E;
23405
+ const b = (E < 0 ? -qe(C / Math.abs(E), 0) : qe(C / E, 0)) * E;
23364
23406
  return y.create(b);
23365
23407
  });
23366
23408
  return n === 1 && s === 1 ? c.get(0, 0) : c;
@@ -25696,7 +25738,7 @@ class q_ extends V {
25696
25738
  array1Values: h,
25697
25739
  array2Values: d,
25698
25740
  noCalculate: _
25699
- } = tt(
25741
+ } = rt(
25700
25742
  e,
25701
25743
  t,
25702
25744
  r * n,
@@ -25846,7 +25888,7 @@ class tA extends V {
25846
25888
  array1Values: h,
25847
25889
  array2Values: d,
25848
25890
  noCalculate: _
25849
- } = tt(
25891
+ } = rt(
25850
25892
  e,
25851
25893
  t,
25852
25894
  r * n,
@@ -26060,7 +26102,7 @@ class Ui extends V {
26060
26102
  array1Values: d,
26061
26103
  array2Values: _,
26062
26104
  noCalculate: C
26063
- } = tt(
26105
+ } = rt(
26064
26106
  t,
26065
26107
  r,
26066
26108
  n * s,
@@ -26191,7 +26233,7 @@ class vi extends V {
26191
26233
  const [s] = n, o = +s.getValue();
26192
26234
  if (o <= 0)
26193
26235
  return g.create(m.NUM);
26194
- const u = lt(o);
26236
+ const u = ft(o);
26195
26237
  return Math.abs(u) < 1e-15 ? y.create(0) : y.create(u);
26196
26238
  }
26197
26239
  }
@@ -26271,7 +26313,7 @@ class fA extends V {
26271
26313
  const { isError: s, errorObject: o } = ts(e, t, r);
26272
26314
  if (s)
26273
26315
  return o;
26274
- const u = dt(e);
26316
+ const u = Ct(e);
26275
26317
  if (u instanceof g)
26276
26318
  return u;
26277
26319
  const c = this._getKnownXsValues(u, t);
@@ -26302,17 +26344,17 @@ class fA extends V {
26302
26344
  _ *= u[0][l - 2 - C] ** c[d][C];
26303
26345
  h[d].push(_);
26304
26346
  }
26305
- return s && (h = ht(h)), q.createByArray(h);
26347
+ return s && (h = mt(h)), q.createByArray(h);
26306
26348
  }
26307
26349
  _getResultBySimpleVariables(e, t, r, n) {
26308
26350
  const s = e.flat(), o = t.flat(), { slope: u, intercept: c } = ns(o, s, n, !0), l = r.map((f) => f.map((h) => c * u ** h));
26309
26351
  return q.createByArray(l);
26310
26352
  }
26311
26353
  _getKnownXsValues(e, t) {
26312
- return !t || t.isNull() ? rs(e.length, e[0].length) : dt(t);
26354
+ return !t || t.isNull() ? rs(e.length, e[0].length) : Ct(t);
26313
26355
  }
26314
26356
  _getNewXsValues(e, t) {
26315
- return !t || t.isNull() ? e : dt(t);
26357
+ return !t || t.isNull() ? e : Ct(t);
26316
26358
  }
26317
26359
  }
26318
26360
  class hA extends V {
@@ -26422,7 +26464,7 @@ class gA extends V {
26422
26464
  array1Values: h,
26423
26465
  array2Values: d,
26424
26466
  noCalculate: _
26425
- } = tt(
26467
+ } = rt(
26426
26468
  e,
26427
26469
  t,
26428
26470
  r * n,
@@ -26532,7 +26574,7 @@ class _A extends V {
26532
26574
  const { isError: s, errorObject: o } = ts(e, t);
26533
26575
  if (s)
26534
26576
  return o;
26535
- const u = dt(e);
26577
+ const u = Ct(e);
26536
26578
  if (u instanceof g)
26537
26579
  return u;
26538
26580
  const c = this._getKnownXsValues(u, t);
@@ -26639,7 +26681,7 @@ class _A extends V {
26639
26681
  return q.createByArray(l);
26640
26682
  }
26641
26683
  _getKnownXsValues(e, t) {
26642
- return !t || t.isNull() ? rs(e.length, e[0].length) : dt(t);
26684
+ return !t || t.isNull() ? rs(e.length, e[0].length) : Ct(t);
26643
26685
  }
26644
26686
  }
26645
26687
  class AA extends V {
@@ -26652,7 +26694,7 @@ class AA extends V {
26652
26694
  const { isError: s, errorObject: o } = ts(e, t);
26653
26695
  if (s)
26654
26696
  return o;
26655
- const u = dt(e);
26697
+ const u = Ct(e);
26656
26698
  if (u instanceof g)
26657
26699
  return u;
26658
26700
  const c = this._getKnownXsValues(u, t);
@@ -26759,7 +26801,7 @@ class AA extends V {
26759
26801
  return q.createByArray(f);
26760
26802
  }
26761
26803
  _getKnownXsValues(e, t) {
26762
- return !t || t.isNull() ? rs(e.length, e[0].length) : dt(t);
26804
+ return !t || t.isNull() ? rs(e.length, e[0].length) : Ct(t);
26763
26805
  }
26764
26806
  }
26765
26807
  class EA extends V {
@@ -27186,7 +27228,7 @@ class LA extends V {
27186
27228
  array1Values: h,
27187
27229
  array2Values: d,
27188
27230
  noCalculate: _
27189
- } = tt(
27231
+ } = rt(
27190
27232
  e,
27191
27233
  t,
27192
27234
  r * n,
@@ -27290,7 +27332,7 @@ class xA extends V {
27290
27332
  let d = 0, _ = !1, C = 0;
27291
27333
  for (; !_ && C < h; )
27292
27334
  l === e[C] ? (d = (C + 1) / (h + 1), _ = !0) : l > e[C] && C + 1 < h && l < e[C + 1] && (d = (C + 1 + (l - e[C]) / (e[C + 1] - e[C])) / (h + 1), _ = !0), C++;
27293
- return _ ? f < 1 ? g.create(m.NUM) : (d = We(d, f), y.create(d)) : g.create(m.NA);
27335
+ return _ ? f < 1 ? g.create(m.NUM) : (d = qe(d, f), y.create(d)) : g.create(m.NA);
27294
27336
  }
27295
27337
  _getValues(e) {
27296
27338
  const t = e.isArray() ? e.getRowCount() : 1, r = e.isArray() ? e.getColumnCount() : 1, n = [];
@@ -27467,7 +27509,7 @@ class TA extends V {
27467
27509
  array1Values: h,
27468
27510
  array2Values: d,
27469
27511
  noCalculate: _
27470
- } = tt(
27512
+ } = rt(
27471
27513
  e,
27472
27514
  t,
27473
27515
  r * n,
@@ -27691,7 +27733,7 @@ class kA extends V {
27691
27733
  array1Values: h,
27692
27734
  array2Values: d,
27693
27735
  noCalculate: _
27694
- } = tt(
27736
+ } = rt(
27695
27737
  e,
27696
27738
  t,
27697
27739
  r * n,
@@ -27835,7 +27877,7 @@ class HA extends V {
27835
27877
  array1Values: h,
27836
27878
  array2Values: d,
27837
27879
  noCalculate: _
27838
- } = tt(
27880
+ } = rt(
27839
27881
  e,
27840
27882
  t,
27841
27883
  r * n,
@@ -27976,7 +28018,7 @@ class KA extends V {
27976
28018
  array1Values: h,
27977
28019
  array2Values: d,
27978
28020
  noCalculate: _
27979
- } = tt(
28021
+ } = rt(
27980
28022
  e,
27981
28023
  t,
27982
28024
  r * n,
@@ -28134,7 +28176,7 @@ class eE extends V {
28134
28176
  const { isError: s, errorObject: o } = ts(e, t, r);
28135
28177
  if (s)
28136
28178
  return o;
28137
- const u = dt(e);
28179
+ const u = Ct(e);
28138
28180
  if (u instanceof g)
28139
28181
  return u;
28140
28182
  const c = this._getKnownXsValues(u, t);
@@ -28165,7 +28207,7 @@ class eE extends V {
28165
28207
  _ += u[0][l - 2 - C] * c[d][C];
28166
28208
  h[d].push(_);
28167
28209
  }
28168
- return s && (h = ht(h)), q.createByArray(h);
28210
+ return s && (h = mt(h)), q.createByArray(h);
28169
28211
  }
28170
28212
  _getResultBySimpleVariables(e, t, r, n) {
28171
28213
  const s = e.flat(), o = t.flat(), { slope: u, intercept: c } = ns(o, s, n, !1);
@@ -28175,10 +28217,10 @@ class eE extends V {
28175
28217
  return q.createByArray(l);
28176
28218
  }
28177
28219
  _getKnownXsValues(e, t) {
28178
- return !t || t.isNull() ? rs(e.length, e[0].length) : dt(t);
28220
+ return !t || t.isNull() ? rs(e.length, e[0].length) : Ct(t);
28179
28221
  }
28180
28222
  _getNewXsValues(e, t) {
28181
- return !t || t.isNull() ? e : dt(t);
28223
+ return !t || t.isNull() ? e : Ct(t);
28182
28224
  }
28183
28225
  }
28184
28226
  class tE extends V {
@@ -28204,7 +28246,7 @@ class tE extends V {
28204
28246
  const [o] = s, u = +o.getValue();
28205
28247
  if (u < 0 || u >= 1)
28206
28248
  return g.create(m.NUM);
28207
- const c = We(e.length * u / 2, 0) * 2, l = e.slice(c / 2, e.length - c / 2), f = l.reduce((h, d) => h + d, 0) / l.length;
28249
+ const c = qe(e.length * u / 2, 0) * 2, l = e.slice(c / 2, e.length - c / 2), f = l.reduce((h, d) => h + d, 0) / l.length;
28208
28250
  return y.create(f);
28209
28251
  }
28210
28252
  _getValues(e) {
@@ -28697,7 +28739,7 @@ class CE extends V {
28697
28739
  return T.create(s);
28698
28740
  }
28699
28741
  }
28700
- const Wa = (i, a) => gt.format(i, a, { throws: !1 }), Se = (i) => {
28742
+ const Wa = (i, a) => dt.format(i, a, { throws: !1 }), Se = (i) => {
28701
28743
  let a = `${i.getValue()}`;
28702
28744
  return i.isNull() && (a = ""), i.isBoolean() && (a = a.toLocaleUpperCase()), i.isNumber() && (i.getPattern() !== "" ? a = Wa(i.getPattern(), +i.getValue()) : a = `${Df(+i.getValue())}`), a;
28703
28745
  };
@@ -30737,7 +30779,7 @@ let na = class extends Ne {
30737
30779
  const t = e.params;
30738
30780
  if (t.stageInfo)
30739
30781
  return a.next(
30740
- t.stageInfo.stage === Xe.IDLE || t.stageInfo.stage === Xe.CALCULATION_COMPLETED
30782
+ t.stageInfo.stage === Ze.IDLE || t.stageInfo.stage === Ze.CALCULATION_COMPLETED
30741
30783
  );
30742
30784
  });
30743
30785
  }).pipe(
@@ -31011,7 +31053,7 @@ class Ob extends Ne {
31011
31053
  this._tableOptionMap.set(e, t);
31012
31054
  }
31013
31055
  }
31014
- const Hu = et("univer.formula.super-table.service");
31056
+ const Hu = tt("univer.formula.super-table.service");
31015
31057
  var Mb = Object.getOwnPropertyDescriptor, wb = (i, a, e, t) => {
31016
31058
  for (var r = t > 1 ? void 0 : t ? Mb(a, e) : a, n = i.length - 1, s; n >= 0; n--)
31017
31059
  (s = i[n]) && (r = s(r) || r);
@@ -31078,7 +31120,7 @@ class Sb extends Ne {
31078
31120
  return this._dirtyConversionMap;
31079
31121
  }
31080
31122
  }
31081
- const Db = et(
31123
+ const Db = tt(
31082
31124
  "univer.formula.active-dirty-manager.service"
31083
31125
  );
31084
31126
  var Lb = Object.getOwnPropertyDescriptor, Pb = (i, a, e, t) => {
@@ -31226,7 +31268,7 @@ export {
31226
31268
  As as FormulaDependencyTree,
31227
31269
  Qs as FormulaDependencyTreeType,
31228
31270
  Mi as FormulaDependencyTreeVirtual,
31229
- Xe as FormulaExecuteStageType,
31271
+ Ze as FormulaExecuteStageType,
31230
31272
  Dr as FormulaExecutedStateType,
31231
31273
  Hs as FormulaRuntimeService,
31232
31274
  On as FunctionNodeFactory,