@univerjs/sheets-formula 0.15.0-insiders.20251227-c108ce3 → 0.15.0-insiders.20260107-3441c7a
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/cjs/index.js +1 -1
- package/lib/es/index.js +198 -198
- package/lib/index.js +198 -198
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/es/index.js
CHANGED
|
@@ -2,11 +2,11 @@ var Wa = Object.defineProperty;
|
|
|
2
2
|
var Ka = (a, e, n) => e in a ? Wa(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n;
|
|
3
3
|
var K = (a, e, n) => Ka(a, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { CommandType as ca, ICommandService as ue, ObjectMatrix as V, generateRandomId as la, IUniverInstanceService as Ee, Rectangle as fe, sequenceExecuteAsync as ka, Inject as H, Disposable as ee, CellValueType as xt, createDocumentModelWithStyle as Qa, WrapTextType as ja, PositionedObjectLayoutType as $a, BooleanNumber as za, ObjectRelativeFromV as Za, ObjectRelativeFromH as Ja, ImageSourceType as en, DrawingTypeEnum as tn, BuildTextUtils as an, InterceptorEffectEnum as _t, ILogService as nn, IConfigService as Ce, LocaleService as Gt, isFormulaString as Me, isFormulaId as sa, cellToRange as da, Tools as Xe, Direction as Ke, getIntersectRange as We, RANGE_TYPE as X, UniverInstanceType as $, Injector as ct, isRealNum as rn, createIdentifier as Ht, toDisposable as J, moveRangeByOffset as yt, DisposableCollection as ke, AbsoluteRefType as Qe, Optional as on, DependentOn as pa, Plugin as La, merge as Pa, touchDependencies as Ue, isNodeEnv as Xt } from "@univerjs/core";
|
|
5
|
-
import { SetRangeValuesCommand as Ta, SheetsSelectionsService as un, getSheetCommandTarget as mn, findFirstNonEmptyCell as fn, alignToMergedCellsBorders as It, expandToContinuousRange as cn, SetSelectionsOperation as ln, SheetInterceptorService as lt, INTERCEPTOR_POINT as Ea, InterceptCellContentPriority as sn, SetRangeValuesMutation as Q, SetStyleCommand as wt, SetBorderCommand as Ia, ClearSelectionFormatCommand as Na, handleMoveCols as Ra, EffectRefRangId as w, runRefRangeMutations as Y, handleMoveRows as Sa, handleMoveRange as Aa, handleInsertRangeMoveRight as Ca, handleInsertRangeMoveDown as Da, handleDeleteRangeMoveUp as ba, handleDeleteRangeMoveLeft as Oa, handleIRemoveCol as Ma, handleIRemoveRow as xa, handleInsertCol as _a, handleInsertRow as ya, RemoveDefinedNameCommand as ga, SetDefinedNameCommand as qa, RemoveSheetCommand as dn, SetWorksheetNameCommand as pn, DeleteRangeMoveLeftCommand as Ln, DeleteRangeMoveUpCommand as Pn, RemoveColCommand as Tn, RemoveRowCommand as En, InsertRangeMoveDownCommand as In, InsertRangeMoveRightCommand as Nn, InsertColCommand as Rn, InsertRowCommand as Sn, MoveColsCommand as An, MoveRowsCommand as Cn, MoveRangeCommand as Dn, RemoveSheetMutation as gt, InsertSheetMutation as qt, MoveRangeMutation as Wt, MoveRowsMutation as Kt, MoveColsMutation as kt, ReorderRangeMutation as Qt, RemoveRowMutation as jt, RemoveColMutation as $t, InsertColMutation as zt, InsertRowMutation as Zt, SetRowHiddenMutation as Jt, SetRowVisibleMutation as ea, SetWorksheetActiveOperation as ha, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as Nt, RefRangeService as
|
|
6
|
-
import { serializeRange as Se, FormulaDataModel as ye, ErrorType as k, SetImageFormulaDataMutation as
|
|
7
|
-
import { BehaviorSubject as
|
|
8
|
-
import { IRPCChannelService as Ba, fromModule as
|
|
9
|
-
const
|
|
5
|
+
import { SetRangeValuesCommand as Ta, SheetsSelectionsService as un, getSheetCommandTarget as mn, findFirstNonEmptyCell as fn, alignToMergedCellsBorders as It, expandToContinuousRange as cn, SetSelectionsOperation as ln, SheetInterceptorService as lt, INTERCEPTOR_POINT as Ea, InterceptCellContentPriority as sn, SetRangeValuesMutation as Q, SetStyleCommand as wt, SetBorderCommand as Ia, ClearSelectionFormatCommand as Na, handleMoveCols as Ra, EffectRefRangId as w, runRefRangeMutations as Y, handleMoveRows as Sa, handleMoveRange as Aa, handleInsertRangeMoveRight as Ca, handleInsertRangeMoveDown as Da, handleDeleteRangeMoveUp as ba, handleDeleteRangeMoveLeft as Oa, handleIRemoveCol as Ma, handleIRemoveRow as xa, handleInsertCol as _a, handleInsertRow as ya, RemoveDefinedNameCommand as ga, SetDefinedNameCommand as qa, RemoveSheetCommand as dn, SetWorksheetNameCommand as pn, DeleteRangeMoveLeftCommand as Ln, DeleteRangeMoveUpCommand as Pn, RemoveColCommand as Tn, RemoveRowCommand as En, InsertRangeMoveDownCommand as In, InsertRangeMoveRightCommand as Nn, InsertColCommand as Rn, InsertRowCommand as Sn, MoveColsCommand as An, MoveRowsCommand as Cn, MoveRangeCommand as Dn, RemoveSheetMutation as gt, InsertSheetMutation as qt, SetRangeCustomMetadataCommand as bn, MoveRangeMutation as Wt, MoveRowsMutation as Kt, MoveColsMutation as kt, ReorderRangeMutation as Qt, RemoveRowMutation as jt, RemoveColMutation as $t, InsertColMutation as zt, InsertRowMutation as Zt, SetRowHiddenMutation as Jt, SetRowVisibleMutation as ea, SetWorksheetActiveOperation as ha, SCOPE_WORKBOOK_VALUE_DEFINED_NAME as Nt, RefRangeService as On, handleDefaultRangeChangeWithEffectRefCommands as ta, getSeparateEffectedRangesOnCommand as Mn, handleCommonDefaultRangeChangeWithEffectRefCommands as xn, UniverSheetsPlugin as _n } from "@univerjs/sheets";
|
|
6
|
+
import { serializeRange as Se, FormulaDataModel as ye, ErrorType as k, SetImageFormulaDataMutation as yn, IActiveDirtyManagerService as Ua, RegisterOtherFormulaService as gn, SetFormulaCalculationStartMutation as Fe, SetFormulaStringBatchCalculationMutation as qn, ENGINE_FORMULA_RETURN_DEPENDENCY_TREE as hn, ENGINE_FORMULA_CYCLE_REFERENCE_COUNT as Un, SetFormulaCalculationStopMutation as aa, SetFormulaCalculationNotificationMutation as Fn, FormulaExecuteStageType as Be, FormulaExecutedStateType as be, SetTriggerFormulaCalculationStartMutation as je, sequenceNodeType as ie, deserializeRangeWithSheetWithCache as Pe, serializeRangeToRefString as st, IDefinedNamesService as dt, LexerTreeBuilder as pt, generateStringWithSequence as $e, SetDefinedNameMutation as Ae, SetFormulaDataMutation as ve, SetArrayFormulaDataMutation as ht, initSheetFormulaData as na, RemoveDefinedNameMutation as Ut, IFunctionService as Lt, SetFormulaCalculationResultMutation as Bn, stripErrorMargin as vn, FunctionType as t, FUNCTION_NAMES_ARRAY as ia, FUNCTION_NAMES_COMPATIBILITY as _, FUNCTION_NAMES_CUBE as de, FUNCTION_NAMES_DATABASE as j, FUNCTION_NAMES_DATE as v, FUNCTION_NAMES_ENGINEERING as C, FUNCTION_NAMES_FINANCIAL as D, FUNCTION_NAMES_INFORMATION as G, FUNCTION_NAMES_LOGICAL as W, FUNCTION_NAMES_LOOKUP as g, FUNCTION_NAMES_MATH as T, FUNCTION_NAMES_STATISTICAL as s, FUNCTION_NAMES_TEXT as b, FUNCTION_NAMES_WEB as Rt, isReferenceStrings as Vn, functionArray as Gn, functionCompatibility as Hn, functionCube as wn, functionDatabase as Yn, functionDate as Xn, functionEngineering as Wn, functionFinancial as Kn, functionInformation as kn, functionLogical as Qn, functionLookup as jn, functionMath as $n, functionMeta as zn, functionStatistical as Zn, functionText as Jn, functionUniver as ei, functionWeb as ti, OtherFormulaMarkDirty as ai, SetSuperTableMutation as ni, RemoveSuperTableMutation as ii, serializeRangeWithSheet as ze, ISuperTableService as ri, serializeRangeWithSpreadsheet as ra, CustomFunction as Ft, AsyncCustomFunction as Fa, UniverFormulaEnginePlugin as oi, IFormulaCurrentConfigService as ui, Lexer as mi, AstTreeBuilder as fi, Interpreter as ci, generateExecuteAstNodeData as li, getObjectValue as si } from "@univerjs/engine-formula";
|
|
7
|
+
import { BehaviorSubject as di, map as pi } from "rxjs";
|
|
8
|
+
import { IRPCChannelService as Ba, fromModule as Li, toModule as Pi } from "@univerjs/rpc";
|
|
9
|
+
const Ti = {
|
|
10
10
|
id: "formula.command.insert-function",
|
|
11
11
|
type: ca.COMMAND,
|
|
12
12
|
handler: async (a, e) => {
|
|
@@ -34,7 +34,7 @@ const Pi = {
|
|
|
34
34
|
};
|
|
35
35
|
return r.executeCommand(Ta.id, u);
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, Ei = {
|
|
38
38
|
id: "sheets-formula.command.quick-sum",
|
|
39
39
|
type: ca.COMMAND,
|
|
40
40
|
handler: async (a) => {
|
|
@@ -108,9 +108,9 @@ const Pi = {
|
|
|
108
108
|
}
|
|
109
109
|
}, ge = "sheets-formula.base.config";
|
|
110
110
|
var Te = /* @__PURE__ */ ((a) => (a[a.FORCED = 0] = "FORCED", a[a.WHEN_EMPTY = 1] = "WHEN_EMPTY", a[a.NO_CALCULATION = 2] = "NO_CALCULATION", a))(Te || {});
|
|
111
|
-
const oa = {},
|
|
112
|
-
var
|
|
113
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
111
|
+
const oa = {}, Ii = "sheets-formula.remote.config", ua = {};
|
|
112
|
+
var Ni = Object.getOwnPropertyDescriptor, Ri = (a, e, n, i) => {
|
|
113
|
+
for (var r = i > 1 ? void 0 : i ? Ni(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
114
114
|
(u = a[o]) && (r = u(r) || r);
|
|
115
115
|
return r;
|
|
116
116
|
}, St = (a, e) => (n, i) => e(n, i, a);
|
|
@@ -130,7 +130,7 @@ let Ze = class extends ee {
|
|
|
130
130
|
_commandExecutedListener() {
|
|
131
131
|
this.disposeWithMe(
|
|
132
132
|
this._commandService.onCommandExecuted(async (e) => {
|
|
133
|
-
if (e.id ===
|
|
133
|
+
if (e.id === yn.id) {
|
|
134
134
|
const n = e.params;
|
|
135
135
|
if (!n) return;
|
|
136
136
|
const { imageFormulaData: i } = n;
|
|
@@ -256,13 +256,13 @@ let Ze = class extends ee {
|
|
|
256
256
|
this._refreshRender = e;
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
|
-
Ze =
|
|
259
|
+
Ze = Ri([
|
|
260
260
|
St(0, ue),
|
|
261
261
|
St(1, H(lt)),
|
|
262
262
|
St(2, H(ye))
|
|
263
263
|
], Ze);
|
|
264
|
-
var
|
|
265
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
264
|
+
var Si = Object.getOwnPropertyDescriptor, Ai = (a, e, n, i) => {
|
|
265
|
+
for (var r = i > 1 ? void 0 : i ? Si(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
266
266
|
(u = a[o]) && (r = u(r) || r);
|
|
267
267
|
return r;
|
|
268
268
|
}, pe = (a, e) => (n, i) => e(n, i, a);
|
|
@@ -286,7 +286,7 @@ let xe = class extends ee {
|
|
|
286
286
|
K(this, "_doneCalculationTaskCount", 0);
|
|
287
287
|
K(this, "_executionInProgressParams", null);
|
|
288
288
|
K(this, "_restartCalculation", !1);
|
|
289
|
-
K(this, "_progress$", new
|
|
289
|
+
K(this, "_progress$", new di(ma));
|
|
290
290
|
K(this, "progress$", this._progress$.asObservable());
|
|
291
291
|
this._commandService = e, this._activeDirtyManagerService = n, this._logService = i, this._configService = r, this._formulaDataModel = o, this._localeService = u, this._registerOtherFormulaService = f, this._commandExecutedListener(), this._initialExecuteFormulaProcessListener(), this._initialExecuteFormula();
|
|
292
292
|
}
|
|
@@ -325,13 +325,13 @@ let xe = class extends ee {
|
|
|
325
325
|
_commandExecutedListener() {
|
|
326
326
|
this.disposeWithMe(
|
|
327
327
|
this._commandService.beforeCommandExecuted((e) => {
|
|
328
|
-
if (e.id === Fe.id || e.id ===
|
|
328
|
+
if (e.id === Fe.id || e.id === qn.id) {
|
|
329
329
|
const n = e.params;
|
|
330
330
|
if (e.id === Fe.id) {
|
|
331
|
-
const i = this._configService.getConfig(
|
|
331
|
+
const i = this._configService.getConfig(hn) || !1;
|
|
332
332
|
n.isCalculateTreeModel = i;
|
|
333
333
|
}
|
|
334
|
-
n.maxIteration = this._configService.getConfig(
|
|
334
|
+
n.maxIteration = this._configService.getConfig(Un), n.rowData = this._formulaDataModel.getHiddenRowsFiltered();
|
|
335
335
|
}
|
|
336
336
|
})
|
|
337
337
|
), this.disposeWithMe(
|
|
@@ -427,7 +427,7 @@ let xe = class extends ee {
|
|
|
427
427
|
this.disposeWithMe(
|
|
428
428
|
// eslint-disable-next-line max-lines-per-function, complexity
|
|
429
429
|
this._commandService.onCommandExecuted((i) => {
|
|
430
|
-
if (i.id === aa.id && this.clearProgress(), i.id !==
|
|
430
|
+
if (i.id === aa.id && this.clearProgress(), i.id !== Fn.id)
|
|
431
431
|
return;
|
|
432
432
|
const r = i.params;
|
|
433
433
|
if (r.stageInfo != null) {
|
|
@@ -508,16 +508,16 @@ let xe = class extends ee {
|
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
510
|
};
|
|
511
|
-
xe =
|
|
511
|
+
xe = Ai([
|
|
512
512
|
pe(0, ue),
|
|
513
513
|
pe(1, Ua),
|
|
514
514
|
pe(2, nn),
|
|
515
515
|
pe(3, Ce),
|
|
516
516
|
pe(4, H(ye)),
|
|
517
517
|
pe(5, H(Gt)),
|
|
518
|
-
pe(6, H(
|
|
518
|
+
pe(6, H(gn))
|
|
519
519
|
], xe);
|
|
520
|
-
function
|
|
520
|
+
function Ci(a, e, n) {
|
|
521
521
|
var i;
|
|
522
522
|
return a == null || a[e] == null || ((i = a[e]) == null ? void 0 : i[n]) == null;
|
|
523
523
|
}
|
|
@@ -536,18 +536,18 @@ function Ct(a, e, n) {
|
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
var y = /* @__PURE__ */ ((a) => (a[a.MoveRange = 0] = "MoveRange", a[a.MoveRows = 1] = "MoveRows", a[a.MoveCols = 2] = "MoveCols", a[a.InsertRow = 3] = "InsertRow", a[a.InsertColumn = 4] = "InsertColumn", a[a.RemoveRow = 5] = "RemoveRow", a[a.RemoveColumn = 6] = "RemoveColumn", a[a.DeleteMoveLeft = 7] = "DeleteMoveLeft", a[a.DeleteMoveUp = 8] = "DeleteMoveUp", a[a.InsertMoveDown = 9] = "InsertMoveDown", a[a.InsertMoveRight = 10] = "InsertMoveRight", a[a.SetName = 11] = "SetName", a[a.RemoveSheet = 12] = "RemoveSheet", a[a.SetDefinedName = 13] = "SetDefinedName", a[a.RemoveDefinedName = 14] = "RemoveDefinedName", a))(y || {});
|
|
539
|
-
const
|
|
539
|
+
const Di = [
|
|
540
540
|
11,
|
|
541
541
|
12,
|
|
542
542
|
13,
|
|
543
543
|
14
|
|
544
544
|
/* RemoveDefinedName */
|
|
545
545
|
];
|
|
546
|
-
function
|
|
546
|
+
function bi(a, e, n) {
|
|
547
547
|
const { type: i } = n;
|
|
548
|
-
return
|
|
548
|
+
return Di.includes(i) ? Oi(a, e) : Mi(a, e, n);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Oi(a, e) {
|
|
551
551
|
const n = [], i = [];
|
|
552
552
|
return Object.keys(e).forEach((r) => {
|
|
553
553
|
const o = e[r], u = a[r];
|
|
@@ -586,8 +586,8 @@ function bi(a, e) {
|
|
|
586
586
|
redos: i
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
|
-
function
|
|
590
|
-
const { redoFormulaData: i, undoFormulaData: r } =
|
|
589
|
+
function Mi(a, e, n) {
|
|
590
|
+
const { redoFormulaData: i, undoFormulaData: r } = xi(a, e, n), o = [], u = [];
|
|
591
591
|
return Object.keys(i).forEach((f) => {
|
|
592
592
|
Object.keys(i[f]).forEach((m) => {
|
|
593
593
|
if (Object.keys(i[f][m]).length !== 0) {
|
|
@@ -621,10 +621,10 @@ function Oi(a, e, n) {
|
|
|
621
621
|
redos: o
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function xi(a, e, n) {
|
|
625
625
|
const i = {}, r = {}, { unitId: o, sheetId: u } = n;
|
|
626
626
|
return (/* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(e)])).forEach((m) => {
|
|
627
|
-
if (
|
|
627
|
+
if (Ci(a, m, u))
|
|
628
628
|
return;
|
|
629
629
|
(/* @__PURE__ */ new Set([
|
|
630
630
|
...Object.keys(a[m] || {}),
|
|
@@ -633,8 +633,8 @@ function Mi(a, e, n) {
|
|
|
633
633
|
var R, N;
|
|
634
634
|
const L = (R = a[m]) == null ? void 0 : R[l], E = (N = e[m]) == null ? void 0 : N[l], p = new V(L || {}), S = new V(E || {});
|
|
635
635
|
let A = [];
|
|
636
|
-
m !== o || l !== u ? A =
|
|
637
|
-
const I =
|
|
636
|
+
m !== o || l !== u ? A = yi(S) : A = _i(p, S, n);
|
|
637
|
+
const I = Wi(A, p, S), d = Ki(A, p);
|
|
638
638
|
i[m] || (i[m] = {}), r[m] || (r[m] = {}), i[m][l] = {
|
|
639
639
|
...i[m][l],
|
|
640
640
|
...I
|
|
@@ -648,7 +648,7 @@ function Mi(a, e, n) {
|
|
|
648
648
|
undoFormulaData: r
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function _i(a, e, n) {
|
|
652
652
|
const { type: i, from: r, to: o, range: u } = n, f = [];
|
|
653
653
|
return a.forValue((m, c, l) => {
|
|
654
654
|
if (l == null || !va(l)) return !0;
|
|
@@ -660,9 +660,9 @@ function xi(a, e, n) {
|
|
|
660
660
|
2
|
|
661
661
|
/* MoveCols */
|
|
662
662
|
].includes(i))
|
|
663
|
-
E =
|
|
663
|
+
E = gi(i, r, o, L);
|
|
664
664
|
else if (u != null) {
|
|
665
|
-
const S =
|
|
665
|
+
const S = qi(L, n);
|
|
666
666
|
E = S.newCell, p = S.isReverse;
|
|
667
667
|
}
|
|
668
668
|
if (Xe.diffValue(L, E) && !e.getValue(m, c))
|
|
@@ -670,7 +670,7 @@ function xi(a, e, n) {
|
|
|
670
670
|
p ? f.unshift({ oldCell: L, newCell: E }) : f.push({ oldCell: L, newCell: E });
|
|
671
671
|
}), f;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function yi(a) {
|
|
674
674
|
const e = [];
|
|
675
675
|
return a.forValue((n, i, r) => {
|
|
676
676
|
if (r == null || !va(r)) return !0;
|
|
@@ -678,52 +678,52 @@ function _i(a) {
|
|
|
678
678
|
e.push({ oldCell: o, newCell: o });
|
|
679
679
|
}), e;
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function gi(a, e, n, i) {
|
|
682
682
|
if (e == null || n == null)
|
|
683
683
|
return null;
|
|
684
684
|
switch (a) {
|
|
685
685
|
case 0:
|
|
686
|
-
return qi(e, n, i);
|
|
687
|
-
case 1:
|
|
688
686
|
return hi(e, n, i);
|
|
689
|
-
case
|
|
687
|
+
case 1:
|
|
690
688
|
return Ui(e, n, i);
|
|
689
|
+
case 2:
|
|
690
|
+
return Fi(e, n, i);
|
|
691
691
|
default:
|
|
692
692
|
return null;
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function qi(a, e) {
|
|
696
696
|
const { type: n, rangeFilteredRows: i } = e, r = e.range;
|
|
697
697
|
let o = null, u = !1;
|
|
698
698
|
switch (n) {
|
|
699
699
|
case 3:
|
|
700
|
-
o =
|
|
700
|
+
o = Bi(r, a), u = !0;
|
|
701
701
|
break;
|
|
702
702
|
case 4:
|
|
703
|
-
o =
|
|
703
|
+
o = vi(r, a), u = !0;
|
|
704
704
|
break;
|
|
705
705
|
case 5:
|
|
706
|
-
o =
|
|
706
|
+
o = Vi(r, a, i);
|
|
707
707
|
break;
|
|
708
708
|
case 6:
|
|
709
|
-
o =
|
|
709
|
+
o = Gi(r, a);
|
|
710
710
|
break;
|
|
711
711
|
case 7:
|
|
712
|
-
o =
|
|
712
|
+
o = Hi(r, a);
|
|
713
713
|
break;
|
|
714
714
|
case 8:
|
|
715
|
-
o =
|
|
715
|
+
o = wi(r, a);
|
|
716
716
|
break;
|
|
717
717
|
case 9:
|
|
718
|
-
o =
|
|
718
|
+
o = Yi(r, a), u = !0;
|
|
719
719
|
break;
|
|
720
720
|
case 10:
|
|
721
|
-
o =
|
|
721
|
+
o = Xi(r, a), u = !0;
|
|
722
722
|
break;
|
|
723
723
|
}
|
|
724
724
|
return { newCell: o, isReverse: u };
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function hi(a, e, n) {
|
|
727
727
|
const i = Aa(
|
|
728
728
|
{
|
|
729
729
|
id: w.MoveRangeCommandId,
|
|
@@ -733,7 +733,7 @@ function qi(a, e, n) {
|
|
|
733
733
|
);
|
|
734
734
|
return Y(i, n);
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Ui(a, e, n) {
|
|
737
737
|
const i = Sa(
|
|
738
738
|
{
|
|
739
739
|
id: w.MoveRowsCommandId,
|
|
@@ -743,7 +743,7 @@ function hi(a, e, n) {
|
|
|
743
743
|
);
|
|
744
744
|
return Y(i, n);
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function Fi(a, e, n) {
|
|
747
747
|
const i = Ra(
|
|
748
748
|
{
|
|
749
749
|
id: w.MoveColsCommandId,
|
|
@@ -753,7 +753,7 @@ function Ui(a, e, n) {
|
|
|
753
753
|
);
|
|
754
754
|
return Y(i, n);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function Bi(a, e) {
|
|
757
757
|
const n = ya(
|
|
758
758
|
{
|
|
759
759
|
id: w.InsertRowCommandId,
|
|
@@ -763,7 +763,7 @@ function Fi(a, e) {
|
|
|
763
763
|
);
|
|
764
764
|
return Y(n, e);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function vi(a, e) {
|
|
767
767
|
const n = _a(
|
|
768
768
|
{
|
|
769
769
|
id: w.InsertColCommandId,
|
|
@@ -773,7 +773,7 @@ function Bi(a, e) {
|
|
|
773
773
|
);
|
|
774
774
|
return Y(n, e);
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Vi(a, e, n) {
|
|
777
777
|
const i = xa(
|
|
778
778
|
{
|
|
779
779
|
id: w.RemoveRowCommandId,
|
|
@@ -784,7 +784,7 @@ function vi(a, e, n) {
|
|
|
784
784
|
);
|
|
785
785
|
return Y(i, e);
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Gi(a, e) {
|
|
788
788
|
const n = Ma(
|
|
789
789
|
{
|
|
790
790
|
id: w.RemoveColCommandId,
|
|
@@ -794,7 +794,7 @@ function Vi(a, e) {
|
|
|
794
794
|
);
|
|
795
795
|
return Y(n, e);
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Hi(a, e) {
|
|
798
798
|
const n = Oa(
|
|
799
799
|
{
|
|
800
800
|
id: w.DeleteRangeMoveLeftCommandId,
|
|
@@ -804,7 +804,7 @@ function Gi(a, e) {
|
|
|
804
804
|
);
|
|
805
805
|
return Y(n, e);
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function wi(a, e) {
|
|
808
808
|
const n = ba(
|
|
809
809
|
{
|
|
810
810
|
id: w.DeleteRangeMoveUpCommandId,
|
|
@@ -814,7 +814,7 @@ function Hi(a, e) {
|
|
|
814
814
|
);
|
|
815
815
|
return Y(n, e);
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Yi(a, e) {
|
|
818
818
|
const n = Da(
|
|
819
819
|
{
|
|
820
820
|
id: w.InsertRangeMoveDownCommandId,
|
|
@@ -824,7 +824,7 @@ function wi(a, e) {
|
|
|
824
824
|
);
|
|
825
825
|
return Y(n, e);
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Xi(a, e) {
|
|
828
828
|
const n = Ca(
|
|
829
829
|
{
|
|
830
830
|
id: w.InsertRangeMoveRightCommandId,
|
|
@@ -834,7 +834,7 @@ function Yi(a, e) {
|
|
|
834
834
|
);
|
|
835
835
|
return Y(n, e);
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function Wi(a, e, n) {
|
|
838
838
|
var r, o, u;
|
|
839
839
|
const i = new V({});
|
|
840
840
|
for (let f = 0; f < a.length; f++) {
|
|
@@ -846,7 +846,7 @@ function Xi(a, e, n) {
|
|
|
846
846
|
}
|
|
847
847
|
return i.getMatrix();
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function Ki(a, e) {
|
|
850
850
|
const n = new V({});
|
|
851
851
|
for (let i = a.length - 1; i >= 0; i--) {
|
|
852
852
|
const { oldCell: r, newCell: o } = a[i], u = e.getValue(r.startRow, r.startColumn), f = _e(u);
|
|
@@ -872,7 +872,7 @@ function _e(a) {
|
|
|
872
872
|
const f = {};
|
|
873
873
|
return u && (f.si = n), o && i === 0 && r === 0 && (f.f = e), f.f === void 0 && (f.f = null), f.si === void 0 && (f.si = null), f;
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function ki(a) {
|
|
876
876
|
const e = new V({});
|
|
877
877
|
return new V(a).forValue((i, r, o) => {
|
|
878
878
|
const u = _e(o);
|
|
@@ -1212,49 +1212,49 @@ function wa(a, e) {
|
|
|
1212
1212
|
let i = null;
|
|
1213
1213
|
switch (n) {
|
|
1214
1214
|
case Dn.id:
|
|
1215
|
-
i =
|
|
1215
|
+
i = Qi(e, a);
|
|
1216
1216
|
break;
|
|
1217
1217
|
case Cn.id:
|
|
1218
|
-
i =
|
|
1218
|
+
i = ji(e, a);
|
|
1219
1219
|
break;
|
|
1220
1220
|
case An.id:
|
|
1221
|
-
i =
|
|
1221
|
+
i = $i(e, a);
|
|
1222
1222
|
break;
|
|
1223
1223
|
case Sn.id:
|
|
1224
|
-
i =
|
|
1224
|
+
i = zi(e);
|
|
1225
1225
|
break;
|
|
1226
1226
|
case Rn.id:
|
|
1227
|
-
i =
|
|
1227
|
+
i = Zi(e);
|
|
1228
1228
|
break;
|
|
1229
1229
|
case Nn.id:
|
|
1230
|
-
i =
|
|
1230
|
+
i = Ji(e, a);
|
|
1231
1231
|
break;
|
|
1232
1232
|
case In.id:
|
|
1233
|
-
i =
|
|
1233
|
+
i = er(e, a);
|
|
1234
1234
|
break;
|
|
1235
1235
|
case En.id:
|
|
1236
|
-
i =
|
|
1236
|
+
i = tr(e, a);
|
|
1237
1237
|
break;
|
|
1238
1238
|
case Tn.id:
|
|
1239
|
-
i =
|
|
1239
|
+
i = ar(e, a);
|
|
1240
1240
|
break;
|
|
1241
1241
|
case Pn.id:
|
|
1242
|
-
i =
|
|
1242
|
+
i = nr(e, a);
|
|
1243
1243
|
break;
|
|
1244
1244
|
case Ln.id:
|
|
1245
|
-
i =
|
|
1245
|
+
i = ir(e, a);
|
|
1246
1246
|
break;
|
|
1247
1247
|
case pn.id:
|
|
1248
|
-
i =
|
|
1248
|
+
i = rr(e, a);
|
|
1249
1249
|
break;
|
|
1250
1250
|
case dn.id:
|
|
1251
|
-
i =
|
|
1251
|
+
i = or(e, a);
|
|
1252
1252
|
break;
|
|
1253
1253
|
case qa.id:
|
|
1254
|
-
i =
|
|
1254
|
+
i = ur(e, a);
|
|
1255
1255
|
break;
|
|
1256
1256
|
case ga.id:
|
|
1257
|
-
i =
|
|
1257
|
+
i = mr(e, a);
|
|
1258
1258
|
break;
|
|
1259
1259
|
}
|
|
1260
1260
|
return i;
|
|
@@ -1267,7 +1267,7 @@ function te(a) {
|
|
|
1267
1267
|
sheetId: n
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Qi(a, e) {
|
|
1271
1271
|
const { params: n } = a;
|
|
1272
1272
|
if (!n) return null;
|
|
1273
1273
|
const { fromRange: i, toRange: r } = n;
|
|
@@ -1281,7 +1281,7 @@ function ki(a, e) {
|
|
|
1281
1281
|
sheetId: u
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function ji(a, e) {
|
|
1285
1285
|
const { params: n } = a;
|
|
1286
1286
|
if (!n) return null;
|
|
1287
1287
|
const {
|
|
@@ -1310,7 +1310,7 @@ function Qi(a, e) {
|
|
|
1310
1310
|
sheetId: c
|
|
1311
1311
|
};
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function $i(a, e) {
|
|
1314
1314
|
const { params: n } = a;
|
|
1315
1315
|
if (!n) return null;
|
|
1316
1316
|
const {
|
|
@@ -1339,7 +1339,7 @@ function ji(a, e) {
|
|
|
1339
1339
|
sheetId: c
|
|
1340
1340
|
};
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function zi(a) {
|
|
1343
1343
|
const { params: e } = a;
|
|
1344
1344
|
if (!e) return null;
|
|
1345
1345
|
const { range: n, unitId: i, subUnitId: r } = e;
|
|
@@ -1350,7 +1350,7 @@ function $i(a) {
|
|
|
1350
1350
|
sheetId: r
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Zi(a) {
|
|
1354
1354
|
const { params: e } = a;
|
|
1355
1355
|
if (!e) return null;
|
|
1356
1356
|
const { range: n, unitId: i, subUnitId: r } = e;
|
|
@@ -1361,7 +1361,7 @@ function zi(a) {
|
|
|
1361
1361
|
sheetId: r
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Ji(a, e) {
|
|
1365
1365
|
const { params: n } = a;
|
|
1366
1366
|
if (!n) return null;
|
|
1367
1367
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
@@ -1372,7 +1372,7 @@ function Zi(a, e) {
|
|
|
1372
1372
|
sheetId: o
|
|
1373
1373
|
};
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function er(a, e) {
|
|
1376
1376
|
const { params: n } = a;
|
|
1377
1377
|
if (!n) return null;
|
|
1378
1378
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
@@ -1383,7 +1383,7 @@ function Ji(a, e) {
|
|
|
1383
1383
|
sheetId: o
|
|
1384
1384
|
};
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function tr(a, e) {
|
|
1387
1387
|
var u, f;
|
|
1388
1388
|
const { params: n } = a;
|
|
1389
1389
|
if (!n) return null;
|
|
@@ -1396,7 +1396,7 @@ function er(a, e) {
|
|
|
1396
1396
|
rangeFilteredRows: (f = (u = e.getSheetBySheetId(o)) == null ? void 0 : u.getRangeFilterRows(i)) != null ? f : []
|
|
1397
1397
|
};
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function ar(a, e) {
|
|
1400
1400
|
const { params: n } = a;
|
|
1401
1401
|
if (!n) return null;
|
|
1402
1402
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
@@ -1407,7 +1407,7 @@ function tr(a, e) {
|
|
|
1407
1407
|
sheetId: o
|
|
1408
1408
|
};
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function nr(a, e) {
|
|
1411
1411
|
const { params: n } = a;
|
|
1412
1412
|
if (!n) return null;
|
|
1413
1413
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
@@ -1418,7 +1418,7 @@ function ar(a, e) {
|
|
|
1418
1418
|
sheetId: o
|
|
1419
1419
|
};
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function ir(a, e) {
|
|
1422
1422
|
const { params: n } = a;
|
|
1423
1423
|
if (!n) return null;
|
|
1424
1424
|
const { range: i } = n, { unitId: r, sheetId: o } = te(e);
|
|
@@ -1429,7 +1429,7 @@ function nr(a, e) {
|
|
|
1429
1429
|
sheetId: o
|
|
1430
1430
|
};
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1432
|
+
function rr(a, e) {
|
|
1433
1433
|
const { params: n } = a;
|
|
1434
1434
|
if (!n) return null;
|
|
1435
1435
|
const { unitId: i, subUnitId: r, name: o } = n, { unitId: u, sheetId: f } = te(e);
|
|
@@ -1440,7 +1440,7 @@ function ir(a, e) {
|
|
|
1440
1440
|
sheetName: o
|
|
1441
1441
|
};
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function or(a, e) {
|
|
1444
1444
|
const { params: n } = a;
|
|
1445
1445
|
if (!n) return null;
|
|
1446
1446
|
const { unitId: i, subUnitId: r } = n, { unitId: o, sheetId: u } = te(e);
|
|
@@ -1450,7 +1450,7 @@ function rr(a, e) {
|
|
|
1450
1450
|
sheetId: r || u
|
|
1451
1451
|
};
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function ur(a, e) {
|
|
1454
1454
|
const { params: n } = a;
|
|
1455
1455
|
if (!n) return null;
|
|
1456
1456
|
const { unitId: i, name: r, id: o } = n, { sheetId: u } = te(e);
|
|
@@ -1462,7 +1462,7 @@ function or(a, e) {
|
|
|
1462
1462
|
definedNameId: o
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function mr(a, e) {
|
|
1466
1466
|
const { params: n } = a;
|
|
1467
1467
|
if (!n) return null;
|
|
1468
1468
|
const { unitId: i, name: r, id: o } = n, { sheetId: u } = te(e);
|
|
@@ -1474,8 +1474,8 @@ function ur(a, e) {
|
|
|
1474
1474
|
definedNameId: o
|
|
1475
1475
|
};
|
|
1476
1476
|
}
|
|
1477
|
-
var
|
|
1478
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
1477
|
+
var fr = Object.getOwnPropertyDescriptor, cr = (a, e, n, i) => {
|
|
1478
|
+
for (var r = i > 1 ? void 0 : i ? fr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
1479
1479
|
(u = a[o]) && (r = u(r) || r);
|
|
1480
1480
|
return r;
|
|
1481
1481
|
}, Ve = (a, e) => (n, i) => e(n, i, a);
|
|
@@ -1595,14 +1595,14 @@ let Je = class extends ee {
|
|
|
1595
1595
|
return ((o = this._definedNamesService.getWorksheetByRef(e, i)) == null ? void 0 : o.getSheetId()) === n ? k.REF : null;
|
|
1596
1596
|
}
|
|
1597
1597
|
};
|
|
1598
|
-
Je =
|
|
1598
|
+
Je = cr([
|
|
1599
1599
|
Ve(0, dt),
|
|
1600
1600
|
Ve(1, Ee),
|
|
1601
1601
|
Ve(2, H(lt)),
|
|
1602
1602
|
Ve(3, H(pt))
|
|
1603
1603
|
], Je);
|
|
1604
|
-
var
|
|
1605
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
1604
|
+
var lr = Object.getOwnPropertyDescriptor, sr = (a, e, n, i) => {
|
|
1605
|
+
for (var r = i > 1 ? void 0 : i ? lr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
1606
1606
|
(u = a[o]) && (r = u(r) || r);
|
|
1607
1607
|
return r;
|
|
1608
1608
|
}, me = (a, e) => (n, i) => e(n, i, a);
|
|
@@ -1625,12 +1625,12 @@ let et = class extends ee {
|
|
|
1625
1625
|
this._commandService.beforeCommandExecuted((a, e) => {
|
|
1626
1626
|
if (a.id === Q.id) {
|
|
1627
1627
|
const n = a.params;
|
|
1628
|
-
if (e && e.onlyLocal === !0 || e && e.syncOnly === !0 || n.trigger === wt.id || n.trigger === Ia.id || n.trigger === Na.id)
|
|
1628
|
+
if (e && e.onlyLocal === !0 || e && e.syncOnly === !0 || n.trigger === wt.id || n.trigger === Ia.id || n.trigger === Na.id || n.trigger === bn.id)
|
|
1629
1629
|
return;
|
|
1630
1630
|
this._handleSetRangeValuesMutation(n);
|
|
1631
1631
|
}
|
|
1632
1632
|
})
|
|
1633
|
-
), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$($.UNIVER_SHEET).subscribe((a) => this._handleWorkbookAdded(a))), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$($.UNIVER_SHEET).pipe(
|
|
1633
|
+
), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$($.UNIVER_SHEET).subscribe((a) => this._handleWorkbookAdded(a))), this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$($.UNIVER_SHEET).pipe(pi((a) => a.getUnitId())).subscribe((a) => this._handleWorkbookDisposed(a)));
|
|
1634
1634
|
}
|
|
1635
1635
|
_handleSetRangeValuesMutation(a) {
|
|
1636
1636
|
const { subUnitId: e, unitId: n, cellValue: i } = a;
|
|
@@ -1649,7 +1649,7 @@ let et = class extends ee {
|
|
|
1649
1649
|
{
|
|
1650
1650
|
unitId: n,
|
|
1651
1651
|
subUnitId: e,
|
|
1652
|
-
cellValue:
|
|
1652
|
+
cellValue: ki(r)
|
|
1653
1653
|
},
|
|
1654
1654
|
{
|
|
1655
1655
|
onlyLocal: !0,
|
|
@@ -1745,7 +1745,7 @@ let et = class extends ee {
|
|
|
1745
1745
|
r,
|
|
1746
1746
|
i,
|
|
1747
1747
|
n
|
|
1748
|
-
), { undos: u, redos: f } =
|
|
1748
|
+
), { undos: u, redos: f } = bi(r, o, n);
|
|
1749
1749
|
return {
|
|
1750
1750
|
undos: u,
|
|
1751
1751
|
redos: f
|
|
@@ -1867,7 +1867,7 @@ let et = class extends ee {
|
|
|
1867
1867
|
return { newFormulaData: o };
|
|
1868
1868
|
}
|
|
1869
1869
|
};
|
|
1870
|
-
et =
|
|
1870
|
+
et = sr([
|
|
1871
1871
|
me(0, Ee),
|
|
1872
1872
|
me(1, ue),
|
|
1873
1873
|
me(2, H(pt)),
|
|
@@ -1877,9 +1877,9 @@ et = lr([
|
|
|
1877
1877
|
me(6, Ce),
|
|
1878
1878
|
me(7, H(ct))
|
|
1879
1879
|
], et);
|
|
1880
|
-
const
|
|
1881
|
-
var
|
|
1882
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
1880
|
+
const dr = "SHEETS_FORMULA_PLUGIN";
|
|
1881
|
+
var pr = Object.getOwnPropertyDescriptor, Lr = (a, e, n, i) => {
|
|
1882
|
+
for (var r = i > 1 ? void 0 : i ? pr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
1883
1883
|
(u = a[o]) && (r = u(r) || r);
|
|
1884
1884
|
return r;
|
|
1885
1885
|
}, Ot = (a, e) => (n, i) => e(n, i, a);
|
|
@@ -2182,13 +2182,13 @@ let tt = class extends ee {
|
|
|
2182
2182
|
return i;
|
|
2183
2183
|
}
|
|
2184
2184
|
};
|
|
2185
|
-
tt =
|
|
2185
|
+
tt = Lr([
|
|
2186
2186
|
Ot(0, Ua),
|
|
2187
2187
|
Ot(1, Ee),
|
|
2188
2188
|
Ot(2, H(ye))
|
|
2189
2189
|
], tt);
|
|
2190
|
-
var
|
|
2191
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
2190
|
+
var Pr = Object.getOwnPropertyDescriptor, Tr = (a, e, n, i) => {
|
|
2191
|
+
for (var r = i > 1 ? void 0 : i ? Pr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
2192
2192
|
(u = a[o]) && (r = u(r) || r);
|
|
2193
2193
|
return r;
|
|
2194
2194
|
}, Le = (a, e) => (n, i) => e(n, i, a);
|
|
@@ -2210,7 +2210,7 @@ let at = class extends ee {
|
|
|
2210
2210
|
return;
|
|
2211
2211
|
const { arrayFormulaRange: r, arrayFormulaCellData: o, arrayFormulaEmbedded: u } = i;
|
|
2212
2212
|
this._formulaDataModel.setArrayFormulaRange(r), this._formulaDataModel.setArrayFormulaCellData(o), e && this._writeArrayFormulaToSnapshot(r, o, u);
|
|
2213
|
-
} else a.id ===
|
|
2213
|
+
} else a.id === Bn.id && e && (this._addPrefixToFunctionSnapshot(), this._addPrefixToDefinedNamesFunctionSnapshot());
|
|
2214
2214
|
})
|
|
2215
2215
|
);
|
|
2216
2216
|
}
|
|
@@ -2321,13 +2321,13 @@ let at = class extends ee {
|
|
|
2321
2321
|
var l, L, E;
|
|
2322
2322
|
let i = a;
|
|
2323
2323
|
const { unitId: r, subUnitId: o, row: u, col: f } = e, m = this._formulaDataModel.getArrayFormulaCellData(), c = (E = (L = (l = m == null ? void 0 : m[r]) == null ? void 0 : l[o]) == null ? void 0 : L[u]) == null ? void 0 : E[f];
|
|
2324
|
-
return c == null ? n(i) : ((!i || i === e.rawData) && (i = { ...e.rawData }), c.v == null && c.t == null ? (i.v = 0, i.t = xt.NUMBER, n(i)) : (i == null ? void 0 : i.t) === xt.NUMBER && i.v !== void 0 && i.v !== null && rn(i.v) ? (i.v =
|
|
2324
|
+
return c == null ? n(i) : ((!i || i === e.rawData) && (i = { ...e.rawData }), c.v == null && c.t == null ? (i.v = 0, i.t = xt.NUMBER, n(i)) : (i == null ? void 0 : i.t) === xt.NUMBER && i.v !== void 0 && i.v !== null && rn(i.v) ? (i.v = vn(Number(i.v)), n(i)) : (i.v = c.v, i.t = c.t, n(i)));
|
|
2325
2325
|
}
|
|
2326
2326
|
})
|
|
2327
2327
|
);
|
|
2328
2328
|
}
|
|
2329
2329
|
};
|
|
2330
|
-
at =
|
|
2330
|
+
at = Tr([
|
|
2331
2331
|
Le(0, ue),
|
|
2332
2332
|
Le(1, Ce),
|
|
2333
2333
|
Le(2, H(lt)),
|
|
@@ -2336,7 +2336,7 @@ at = Pr([
|
|
|
2336
2336
|
Le(5, Lt),
|
|
2337
2337
|
Le(6, dt)
|
|
2338
2338
|
], at);
|
|
2339
|
-
const
|
|
2339
|
+
const Er = [
|
|
2340
2340
|
{
|
|
2341
2341
|
functionName: ia.ARRAY_CONSTRAIN,
|
|
2342
2342
|
functionType: t.Array,
|
|
@@ -2388,7 +2388,7 @@ const Tr = [
|
|
|
2388
2388
|
}
|
|
2389
2389
|
]
|
|
2390
2390
|
}
|
|
2391
|
-
],
|
|
2391
|
+
], Ir = [
|
|
2392
2392
|
{
|
|
2393
2393
|
functionName: _.BETADIST,
|
|
2394
2394
|
functionType: t.Compatibility,
|
|
@@ -3442,7 +3442,7 @@ const Tr = [
|
|
|
3442
3442
|
}
|
|
3443
3443
|
]
|
|
3444
3444
|
}
|
|
3445
|
-
],
|
|
3445
|
+
], Nr = [
|
|
3446
3446
|
{
|
|
3447
3447
|
functionName: de.CUBEKPIMEMBER,
|
|
3448
3448
|
functionType: t.Cube,
|
|
@@ -3597,7 +3597,7 @@ const Tr = [
|
|
|
3597
3597
|
}
|
|
3598
3598
|
]
|
|
3599
3599
|
}
|
|
3600
|
-
],
|
|
3600
|
+
], Rr = [
|
|
3601
3601
|
{
|
|
3602
3602
|
functionName: j.DAVERAGE,
|
|
3603
3603
|
functionType: t.Database,
|
|
@@ -3946,7 +3946,7 @@ const Tr = [
|
|
|
3946
3946
|
}
|
|
3947
3947
|
]
|
|
3948
3948
|
}
|
|
3949
|
-
],
|
|
3949
|
+
], Sr = [
|
|
3950
3950
|
{
|
|
3951
3951
|
functionName: v.DATE,
|
|
3952
3952
|
functionType: t.Date,
|
|
@@ -4518,7 +4518,7 @@ const Tr = [
|
|
|
4518
4518
|
}
|
|
4519
4519
|
]
|
|
4520
4520
|
}
|
|
4521
|
-
],
|
|
4521
|
+
], Ar = [
|
|
4522
4522
|
{
|
|
4523
4523
|
functionName: C.BESSELI,
|
|
4524
4524
|
functionType: t.Engineering,
|
|
@@ -5591,7 +5591,7 @@ const Tr = [
|
|
|
5591
5591
|
}
|
|
5592
5592
|
]
|
|
5593
5593
|
}
|
|
5594
|
-
],
|
|
5594
|
+
], Cr = [
|
|
5595
5595
|
{
|
|
5596
5596
|
functionName: D.ACCRINT,
|
|
5597
5597
|
functionType: t.Financial,
|
|
@@ -7852,7 +7852,7 @@ const Tr = [
|
|
|
7852
7852
|
}
|
|
7853
7853
|
]
|
|
7854
7854
|
}
|
|
7855
|
-
],
|
|
7855
|
+
], Dr = [
|
|
7856
7856
|
{
|
|
7857
7857
|
functionName: G.CELL,
|
|
7858
7858
|
functionType: t.Information,
|
|
@@ -8261,7 +8261,7 @@ const Tr = [
|
|
|
8261
8261
|
}
|
|
8262
8262
|
]
|
|
8263
8263
|
}
|
|
8264
|
-
],
|
|
8264
|
+
], br = [
|
|
8265
8265
|
{
|
|
8266
8266
|
functionName: W.AND,
|
|
8267
8267
|
functionType: t.Logical,
|
|
@@ -8735,7 +8735,7 @@ const Tr = [
|
|
|
8735
8735
|
}
|
|
8736
8736
|
]
|
|
8737
8737
|
}
|
|
8738
|
-
],
|
|
8738
|
+
], Or = [
|
|
8739
8739
|
{
|
|
8740
8740
|
functionName: g.ADDRESS,
|
|
8741
8741
|
functionType: t.Lookup,
|
|
@@ -9788,7 +9788,7 @@ const Tr = [
|
|
|
9788
9788
|
}
|
|
9789
9789
|
]
|
|
9790
9790
|
}
|
|
9791
|
-
],
|
|
9791
|
+
], Mr = [
|
|
9792
9792
|
{
|
|
9793
9793
|
functionName: T.ABS,
|
|
9794
9794
|
functionType: t.Math,
|
|
@@ -11440,7 +11440,7 @@ const Tr = [
|
|
|
11440
11440
|
}
|
|
11441
11441
|
]
|
|
11442
11442
|
}
|
|
11443
|
-
],
|
|
11443
|
+
], xr = [
|
|
11444
11444
|
{
|
|
11445
11445
|
functionName: s.AVEDEV,
|
|
11446
11446
|
functionType: t.Statistical,
|
|
@@ -14382,7 +14382,7 @@ const Tr = [
|
|
|
14382
14382
|
}
|
|
14383
14383
|
]
|
|
14384
14384
|
}
|
|
14385
|
-
],
|
|
14385
|
+
], _r = [
|
|
14386
14386
|
{
|
|
14387
14387
|
functionName: b.ASC,
|
|
14388
14388
|
functionType: t.Text,
|
|
@@ -15596,7 +15596,7 @@ const Tr = [
|
|
|
15596
15596
|
}
|
|
15597
15597
|
]
|
|
15598
15598
|
}
|
|
15599
|
-
],
|
|
15599
|
+
], yr = [], gr = [
|
|
15600
15600
|
{
|
|
15601
15601
|
functionName: Rt.ENCODEURL,
|
|
15602
15602
|
functionType: t.Web,
|
|
@@ -15656,29 +15656,29 @@ const Tr = [
|
|
|
15656
15656
|
}
|
|
15657
15657
|
]
|
|
15658
15658
|
}
|
|
15659
|
-
],
|
|
15660
|
-
...
|
|
15661
|
-
...
|
|
15662
|
-
...Or,
|
|
15659
|
+
], qr = [
|
|
15660
|
+
...Cr,
|
|
15661
|
+
...Sr,
|
|
15663
15662
|
...Mr,
|
|
15664
|
-
...br,
|
|
15665
|
-
...Nr,
|
|
15666
15663
|
...xr,
|
|
15664
|
+
...Or,
|
|
15665
|
+
...Rr,
|
|
15666
|
+
..._r,
|
|
15667
|
+
...br,
|
|
15667
15668
|
...Dr,
|
|
15668
|
-
...
|
|
15669
|
-
...
|
|
15669
|
+
...Ar,
|
|
15670
|
+
...Nr,
|
|
15670
15671
|
...Ir,
|
|
15672
|
+
...gr,
|
|
15671
15673
|
...Er,
|
|
15672
|
-
...yr
|
|
15673
|
-
...Tr,
|
|
15674
|
-
..._r
|
|
15674
|
+
...yr
|
|
15675
15675
|
];
|
|
15676
|
-
function
|
|
15676
|
+
function hr(a, e) {
|
|
15677
15677
|
let n = "";
|
|
15678
15678
|
return a.aliasFunctionName ? (n = e.t(a.aliasFunctionName), n === a.aliasFunctionName && (n = a.functionName)) : n = a.functionName, n;
|
|
15679
15679
|
}
|
|
15680
|
-
var
|
|
15681
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
15680
|
+
var Ur = Object.getOwnPropertyDescriptor, Fr = (a, e, n, i) => {
|
|
15681
|
+
for (var r = i > 1 ? void 0 : i ? Ur(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
15682
15682
|
(u = a[o]) && (r = u(r) || r);
|
|
15683
15683
|
return r;
|
|
15684
15684
|
}, Mt = (a, e) => (n, i) => e(n, i, a);
|
|
@@ -15741,7 +15741,7 @@ let Bt = class {
|
|
|
15741
15741
|
if (e.length === 0)
|
|
15742
15742
|
return !1;
|
|
15743
15743
|
const n = e[0].description;
|
|
15744
|
-
return !
|
|
15744
|
+
return !Vn(n);
|
|
15745
15745
|
}
|
|
15746
15746
|
_initialize() {
|
|
15747
15747
|
this._localeService.localeChanged$.subscribe(() => {
|
|
@@ -15751,7 +15751,6 @@ let Bt = class {
|
|
|
15751
15751
|
_initDescription() {
|
|
15752
15752
|
var i;
|
|
15753
15753
|
const a = [
|
|
15754
|
-
...Vn,
|
|
15755
15754
|
...Gn,
|
|
15756
15755
|
...Hn,
|
|
15757
15756
|
...wn,
|
|
@@ -15766,13 +15765,14 @@ let Bt = class {
|
|
|
15766
15765
|
...zn,
|
|
15767
15766
|
...Zn,
|
|
15768
15767
|
...Jn,
|
|
15769
|
-
...ei
|
|
15770
|
-
|
|
15768
|
+
...ei,
|
|
15769
|
+
...ti
|
|
15770
|
+
].map((r) => r[1]), e = qr.filter((r) => a.includes(r.functionName)), n = this._configService.getConfig(ge);
|
|
15771
15771
|
this._descriptions = e.concat((i = n == null ? void 0 : n.description) != null ? i : []);
|
|
15772
15772
|
}
|
|
15773
15773
|
_registerDescriptions() {
|
|
15774
15774
|
const a = this._localeService, e = this._descriptions.map((n) => ({
|
|
15775
|
-
functionName:
|
|
15775
|
+
functionName: hr(n, a),
|
|
15776
15776
|
functionType: n.functionType,
|
|
15777
15777
|
description: a.t(n.description),
|
|
15778
15778
|
abstract: a.t(n.abstract),
|
|
@@ -15787,13 +15787,13 @@ let Bt = class {
|
|
|
15787
15787
|
this._functionService.registerDescriptions(...e);
|
|
15788
15788
|
}
|
|
15789
15789
|
};
|
|
15790
|
-
Bt =
|
|
15790
|
+
Bt = Fr([
|
|
15791
15791
|
Mt(0, Lt),
|
|
15792
15792
|
Mt(1, H(Gt)),
|
|
15793
15793
|
Mt(2, Ce)
|
|
15794
15794
|
], Bt);
|
|
15795
|
-
var
|
|
15796
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
15795
|
+
var Br = Object.getOwnPropertyDescriptor, vr = (a, e, n, i) => {
|
|
15796
|
+
for (var r = i > 1 ? void 0 : i ? Br(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
15797
15797
|
(u = a[o]) && (r = u(r) || r);
|
|
15798
15798
|
return r;
|
|
15799
15799
|
}, Ge = (a, e) => (n, i) => e(n, i, a);
|
|
@@ -15909,31 +15909,31 @@ let nt = class extends ee {
|
|
|
15909
15909
|
}), this._descriptionService.unregisterDescriptions(r);
|
|
15910
15910
|
}
|
|
15911
15911
|
};
|
|
15912
|
-
nt =
|
|
15912
|
+
nt = vr([
|
|
15913
15913
|
Ge(0, Pt),
|
|
15914
15914
|
Ge(1, dt),
|
|
15915
15915
|
Ge(2, Ee),
|
|
15916
15916
|
Ge(3, ue)
|
|
15917
15917
|
], nt);
|
|
15918
|
-
var
|
|
15919
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
15918
|
+
var Vr = Object.getOwnPropertyDescriptor, Gr = (a, e, n, i) => {
|
|
15919
|
+
for (var r = i > 1 ? void 0 : i ? Vr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
15920
15920
|
(u = a[o]) && (r = u(r) || r);
|
|
15921
15921
|
return r;
|
|
15922
|
-
},
|
|
15922
|
+
}, Hr = (a, e) => (n, i) => e(n, i, a);
|
|
15923
15923
|
let it = class extends ee {
|
|
15924
15924
|
constructor(a) {
|
|
15925
15925
|
super(), this._commandService = a, [
|
|
15926
|
-
Pi,
|
|
15927
15926
|
Ti,
|
|
15928
|
-
|
|
15927
|
+
Ei,
|
|
15928
|
+
ai
|
|
15929
15929
|
].forEach((e) => this._commandService.registerCommand(e));
|
|
15930
15930
|
}
|
|
15931
15931
|
};
|
|
15932
|
-
it =
|
|
15933
|
-
|
|
15932
|
+
it = Gr([
|
|
15933
|
+
Hr(0, ue)
|
|
15934
15934
|
], it);
|
|
15935
|
-
var
|
|
15936
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
15935
|
+
var wr = Object.getOwnPropertyDescriptor, Yr = (a, e, n, i) => {
|
|
15936
|
+
for (var r = i > 1 ? void 0 : i ? wr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
15937
15937
|
(u = a[o]) && (r = u(r) || r);
|
|
15938
15938
|
return r;
|
|
15939
15939
|
}, He = (a, e) => (n, i) => e(n, i, a);
|
|
@@ -15966,10 +15966,10 @@ let rt = class extends ee {
|
|
|
15966
15966
|
if (!(n != null && n.fromCollab)) {
|
|
15967
15967
|
if (e.id === ha.id)
|
|
15968
15968
|
this._unregisterDescriptionsForNotInSheetId(), this._registerDescriptions();
|
|
15969
|
-
else if (e.id ===
|
|
15969
|
+
else if (e.id === ni.id) {
|
|
15970
15970
|
const i = e.params;
|
|
15971
15971
|
this._registerDescription(i);
|
|
15972
|
-
} else if (e.id ===
|
|
15972
|
+
} else if (e.id === ii.id) {
|
|
15973
15973
|
const i = e.params;
|
|
15974
15974
|
this._unregisterDescription(i);
|
|
15975
15975
|
}
|
|
@@ -16052,14 +16052,14 @@ let rt = class extends ee {
|
|
|
16052
16052
|
}), this._descriptionService.unregisterDescriptions(r);
|
|
16053
16053
|
}
|
|
16054
16054
|
};
|
|
16055
|
-
rt =
|
|
16055
|
+
rt = Yr([
|
|
16056
16056
|
He(0, Pt),
|
|
16057
16057
|
He(1, Ee),
|
|
16058
16058
|
He(2, ue),
|
|
16059
|
-
He(3,
|
|
16059
|
+
He(3, ri)
|
|
16060
16060
|
], rt);
|
|
16061
|
-
var
|
|
16062
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
16061
|
+
var Xr = Object.getOwnPropertyDescriptor, Wr = (a, e, n, i) => {
|
|
16062
|
+
for (var r = i > 1 ? void 0 : i ? Xr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
16063
16063
|
(u = a[o]) && (r = u(r) || r);
|
|
16064
16064
|
return r;
|
|
16065
16065
|
}, we = (a, e) => (n, i) => e(n, i, a);
|
|
@@ -16176,7 +16176,7 @@ let vt = class extends ee {
|
|
|
16176
16176
|
// eslint-disable-next-line max-lines-per-function
|
|
16177
16177
|
registerRangeFormula(a, e, n, i, r) {
|
|
16178
16178
|
const o = new ke(), u = i.map((m) => this._getFormulaDependcy(a, e, m, n)), f = (m) => {
|
|
16179
|
-
const c = n[0].startRow, l = n[0].startColumn, L = [{ unitId: a, subUnitId: e, ranges: n }, ...u.flat()], E = [], p =
|
|
16179
|
+
const c = n[0].startRow, l = n[0].startColumn, L = [{ unitId: a, subUnitId: e, ranges: n }, ...u.flat()], E = [], p = Mn(this._injector, m);
|
|
16180
16180
|
for (const { unitId: S, subUnitId: A, ranges: I } of L)
|
|
16181
16181
|
if (S === p.unitId && A === p.subUnitId) {
|
|
16182
16182
|
const d = [], R = I[0].startRow, N = I[0].startColumn, P = R - c, q = N - l;
|
|
@@ -16198,7 +16198,7 @@ let vt = class extends ee {
|
|
|
16198
16198
|
A.sort((P, q) => P.startRow - q.startRow || P.startColumn - q.startColumn);
|
|
16199
16199
|
const I = /* @__PURE__ */ new Map();
|
|
16200
16200
|
for (let P = 0; P < S.length; P++) {
|
|
16201
|
-
const q = S[P], M = q.startRow, U = q.startColumn, h = M - c, x = U - l, F =
|
|
16201
|
+
const q = S[P], M = q.startRow, U = q.startColumn, h = M - c, x = U - l, F = xn(q, m).sort((z, re) => z.startRow - re.startRow || z.startColumn - re.startColumn);
|
|
16202
16202
|
if (!F.length)
|
|
16203
16203
|
continue;
|
|
16204
16204
|
const B = F[0].startRow, ae = F[0].startColumn, O = B - c, ce = ae - l, ne = [];
|
|
@@ -16262,51 +16262,51 @@ let vt = class extends ee {
|
|
|
16262
16262
|
}), o;
|
|
16263
16263
|
}
|
|
16264
16264
|
};
|
|
16265
|
-
vt =
|
|
16266
|
-
we(0, H(
|
|
16265
|
+
vt = Wr([
|
|
16266
|
+
we(0, H(On)),
|
|
16267
16267
|
we(1, H(pt)),
|
|
16268
16268
|
we(2, Ee),
|
|
16269
16269
|
we(3, H(ct))
|
|
16270
16270
|
], vt);
|
|
16271
|
-
var
|
|
16272
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
16271
|
+
var Kr = Object.getOwnPropertyDescriptor, kr = (a, e, n, i) => {
|
|
16272
|
+
for (var r = i > 1 ? void 0 : i ? Kr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
16273
16273
|
(u = a[o]) && (r = u(r) || r);
|
|
16274
16274
|
return r;
|
|
16275
|
-
},
|
|
16275
|
+
}, Qr = (a, e) => (n, i) => e(n, i, a);
|
|
16276
16276
|
const Yt = "sheets-formula.remote-register-function.service", Ya = Ht(Yt);
|
|
16277
16277
|
let ot = class {
|
|
16278
16278
|
constructor(a) {
|
|
16279
16279
|
this._functionService = a;
|
|
16280
16280
|
}
|
|
16281
16281
|
async registerFunctions(a) {
|
|
16282
|
-
const e = a.map(([n, i]) =>
|
|
16282
|
+
const e = a.map(([n, i]) => jr(n, i));
|
|
16283
16283
|
this._functionService.registerExecutors(...e);
|
|
16284
16284
|
}
|
|
16285
16285
|
async registerAsyncFunctions(a) {
|
|
16286
|
-
const e = a.map(([n, i]) =>
|
|
16286
|
+
const e = a.map(([n, i]) => $r(n, i));
|
|
16287
16287
|
this._functionService.registerExecutors(...e);
|
|
16288
16288
|
}
|
|
16289
16289
|
async unregisterFunctions(a) {
|
|
16290
16290
|
this._functionService.unregisterExecutors(...a), this._functionService.unregisterDescriptions(...a), this._functionService.deleteFormulaAstCacheKey(...a);
|
|
16291
16291
|
}
|
|
16292
16292
|
};
|
|
16293
|
-
ot =
|
|
16294
|
-
|
|
16293
|
+
ot = kr([
|
|
16294
|
+
Qr(0, Lt)
|
|
16295
16295
|
], ot);
|
|
16296
|
-
function
|
|
16296
|
+
function jr(a, e) {
|
|
16297
16297
|
const n = new Ft(e), i = new Function(`return ${a}`)();
|
|
16298
16298
|
return n.calculateCustom = i, n;
|
|
16299
16299
|
}
|
|
16300
|
-
function
|
|
16300
|
+
function $r(a, e) {
|
|
16301
16301
|
const n = new Fa(e), i = new Function(`return ${a}`)();
|
|
16302
16302
|
return n.calculateCustom = i, n;
|
|
16303
16303
|
}
|
|
16304
|
-
var
|
|
16305
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
16304
|
+
var zr = Object.getOwnPropertyDescriptor, Zr = (a, e, n, i) => {
|
|
16305
|
+
for (var r = i > 1 ? void 0 : i ? zr(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
16306
16306
|
(u = a[o]) && (r = u(r) || r);
|
|
16307
16307
|
return r;
|
|
16308
16308
|
}, Ye = (a, e) => (n, i) => e(n, i, a);
|
|
16309
|
-
const
|
|
16309
|
+
const Jr = Ht(
|
|
16310
16310
|
"sheets-formula.register-function-service"
|
|
16311
16311
|
);
|
|
16312
16312
|
let Vt = class extends ee {
|
|
@@ -16367,17 +16367,17 @@ let Vt = class extends ee {
|
|
|
16367
16367
|
return this._remoteRegisterFunctionService.registerFunctions(n), J(() => this._remoteRegisterFunctionService.unregisterFunctions(e));
|
|
16368
16368
|
}
|
|
16369
16369
|
};
|
|
16370
|
-
Vt =
|
|
16370
|
+
Vt = Zr([
|
|
16371
16371
|
Ye(0, H(Gt)),
|
|
16372
16372
|
Ye(1, H(Pt)),
|
|
16373
16373
|
Ye(2, Lt),
|
|
16374
16374
|
Ye(3, on(Ya))
|
|
16375
16375
|
], Vt);
|
|
16376
|
-
var
|
|
16377
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
16376
|
+
var eo = Object.defineProperty, to = Object.getOwnPropertyDescriptor, ao = (a, e, n) => e in a ? eo(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n, Xa = (a, e, n, i) => {
|
|
16377
|
+
for (var r = i > 1 ? void 0 : i ? to(e, n) : e, o = a.length - 1, u; o >= 0; o--)
|
|
16378
16378
|
(u = a[o]) && (r = u(r) || r);
|
|
16379
16379
|
return r;
|
|
16380
|
-
}, ut = (a, e) => (n, i) => e(n, i, a), Tt = (a, e, n) =>
|
|
16380
|
+
}, ut = (a, e) => (n, i) => e(n, i, a), Tt = (a, e, n) => ao(a, typeof e != "symbol" ? e + "" : e, n);
|
|
16381
16381
|
let mt = class extends La {
|
|
16382
16382
|
constructor(a = ua, e, n) {
|
|
16383
16383
|
super(), this._config = a, this._injector = e, this._configService = n;
|
|
@@ -16386,19 +16386,19 @@ let mt = class extends La {
|
|
|
16386
16386
|
ua,
|
|
16387
16387
|
this._config
|
|
16388
16388
|
);
|
|
16389
|
-
this._configService.setConfig(
|
|
16389
|
+
this._configService.setConfig(Ii, i);
|
|
16390
16390
|
}
|
|
16391
16391
|
onStarting() {
|
|
16392
16392
|
this._injector.add([ot]), this._injector.get(Ba).registerChannel(
|
|
16393
16393
|
Yt,
|
|
16394
|
-
|
|
16394
|
+
Li(this._injector.get(ot))
|
|
16395
16395
|
);
|
|
16396
16396
|
}
|
|
16397
16397
|
};
|
|
16398
16398
|
Tt(mt, "pluginName", "SHEET_FORMULA_REMOTE_PLUGIN");
|
|
16399
16399
|
Tt(mt, "type", $.UNIVER_SHEET);
|
|
16400
16400
|
mt = Xa([
|
|
16401
|
-
pa(
|
|
16401
|
+
pa(oi),
|
|
16402
16402
|
ut(1, H(ct)),
|
|
16403
16403
|
ut(2, Ce)
|
|
16404
16404
|
], mt);
|
|
@@ -16414,7 +16414,7 @@ let ft = class extends La {
|
|
|
16414
16414
|
}
|
|
16415
16415
|
onStarting() {
|
|
16416
16416
|
const a = this._injector, e = [
|
|
16417
|
-
[
|
|
16417
|
+
[Jr, { useClass: Vt }],
|
|
16418
16418
|
[Pt, { useClass: Bt }],
|
|
16419
16419
|
[it],
|
|
16420
16420
|
[vt],
|
|
@@ -16430,7 +16430,7 @@ let ft = class extends La {
|
|
|
16430
16430
|
if (this._config.notExecuteFormula) {
|
|
16431
16431
|
const n = a.get(Ba);
|
|
16432
16432
|
e.push([Ya, {
|
|
16433
|
-
useFactory: () =>
|
|
16433
|
+
useFactory: () => Pi(n.requestChannel(Yt))
|
|
16434
16434
|
}]);
|
|
16435
16435
|
}
|
|
16436
16436
|
e.forEach((n) => a.add(n));
|
|
@@ -16456,15 +16456,15 @@ let ft = class extends La {
|
|
|
16456
16456
|
]);
|
|
16457
16457
|
}
|
|
16458
16458
|
};
|
|
16459
|
-
Tt(ft, "pluginName",
|
|
16459
|
+
Tt(ft, "pluginName", dr);
|
|
16460
16460
|
Tt(ft, "type", $.UNIVER_SHEET);
|
|
16461
16461
|
ft = Xa([
|
|
16462
|
-
pa(
|
|
16462
|
+
pa(_n),
|
|
16463
16463
|
ut(1, H(ct)),
|
|
16464
16464
|
ut(2, Ce)
|
|
16465
16465
|
], ft);
|
|
16466
|
-
function
|
|
16467
|
-
const r = a.get(
|
|
16466
|
+
function fo(a, e, n, i) {
|
|
16467
|
+
const r = a.get(ui), o = a.get(mi), u = a.get(fi), f = a.get(ci);
|
|
16468
16468
|
r.load({
|
|
16469
16469
|
formulaData: {},
|
|
16470
16470
|
arrayFormulaCellData: {},
|
|
@@ -16480,20 +16480,20 @@ function mo(a, e, n, i) {
|
|
|
16480
16480
|
},
|
|
16481
16481
|
dirtyUnitOtherFormulaMap: {}
|
|
16482
16482
|
});
|
|
16483
|
-
const m = o.treeBuilder(e), c = u.parse(m), l = f.execute(
|
|
16484
|
-
return
|
|
16483
|
+
const m = o.treeBuilder(e), c = u.parse(m), l = f.execute(li(c));
|
|
16484
|
+
return si(l);
|
|
16485
16485
|
}
|
|
16486
16486
|
export {
|
|
16487
16487
|
Te as CalculationMode,
|
|
16488
16488
|
Bt as DescriptionService,
|
|
16489
16489
|
vt as FormulaRefRangeService,
|
|
16490
16490
|
Pt as IDescriptionService,
|
|
16491
|
-
|
|
16491
|
+
Jr as IRegisterFunctionService,
|
|
16492
16492
|
Ya as IRemoteRegisterFunctionService,
|
|
16493
16493
|
Ze as ImageFormulaCellInterceptorController,
|
|
16494
|
-
|
|
16494
|
+
Ti as InsertFunctionCommand,
|
|
16495
16495
|
ge as PLUGIN_CONFIG_KEY_BASE,
|
|
16496
|
-
|
|
16496
|
+
Ei as QuickSumCommand,
|
|
16497
16497
|
Vt as RegisterFunctionService,
|
|
16498
16498
|
ot as RemoteRegisterFunctionService,
|
|
16499
16499
|
xe as TriggerCalculationController,
|
|
@@ -16501,5 +16501,5 @@ export {
|
|
|
16501
16501
|
ft as UniverSheetsFormulaPlugin,
|
|
16502
16502
|
Je as UpdateDefinedNameController,
|
|
16503
16503
|
et as UpdateFormulaController,
|
|
16504
|
-
|
|
16504
|
+
fo as calculateFormula
|
|
16505
16505
|
};
|