@univerjs-pro/sheets-mcp 0.17.0 → 0.18.0
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/facade/f-range.d.ts +2 -2
- package/lib/types/facade/f-univer.d.ts +1 -1
- package/lib/types/facade/f-workbook-custom-search.d.ts +1 -1
- package/lib/types/facade/f-workbook.d.ts +2 -2
- package/lib/types/facade/f-worksheet.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/cell-usage-analyzer.service.d.ts +2 -2
- package/lib/types/services/conditional-format.service.d.ts +1 -1
- package/lib/types/services/data-validation.service.d.ts +2 -2
- package/lib/types/services/formula-analysis.service.d.ts +2 -2
- package/lib/types/services/numfmt.service.d.ts +2 -1
- package/lib/types/services/size-analysis.service.d.ts +2 -2
- package/lib/types/services/style-analysis.service.d.ts +2 -2
- package/lib/types/tools/common.d.ts +2 -1
- package/lib/types/tools/conditional-format-tools.d.ts +9 -8
- package/lib/types/tools/data-validation-tools.d.ts +2 -1
- package/lib/types/tools/error-utils.d.ts +2 -2
- package/lib/types/tools/format-types.d.ts +1 -1
- package/lib/types/tools/index.d.ts +1 -1
- package/lib/types/tools/range-operations.d.ts +2 -1
- package/lib/types/tools/row-column-operations.d.ts +2 -1
- package/lib/types/tools/sheet-management.d.ts +2 -1
- package/lib/types/tools/style-utils.d.ts +1 -1
- package/lib/types/tools/utility-tools.d.ts +2 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +15 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IFormulaUsage, IFormulaUsageAsA1, IGetSizeUsagesOptions, IGetStyleUsagesOptions, ISizeUsageGrouped, ISizeUsageGroupedAsA1, IStyleUsage, IStyleUsageAsA1 } from '@univerjs-pro/sheets-mcp';
|
|
2
|
-
import { IColumnData, IObjectArrayPrimitiveType, IRowData } from '@univerjs/core';
|
|
1
|
+
import type { IFormulaUsage, IFormulaUsageAsA1, IGetSizeUsagesOptions, IGetStyleUsagesOptions, ISizeUsageGrouped, ISizeUsageGroupedAsA1, IStyleUsage, IStyleUsageAsA1 } from '@univerjs-pro/sheets-mcp';
|
|
2
|
+
import type { IColumnData, IObjectArrayPrimitiveType, IRowData } from '@univerjs/core';
|
|
3
3
|
import { FRange } from '@univerjs/sheets/facade';
|
|
4
4
|
/**
|
|
5
5
|
* @ignore
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CellValue, ICellData, IRange } from '@univerjs/core';
|
|
1
|
+
import type { CellValue, ICellData, IRange } from '@univerjs/core';
|
|
2
2
|
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
3
3
|
import { FWorkbook } from '@univerjs/sheets/facade';
|
|
4
4
|
interface ICustomSearchCellsOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISheetFormulaError } from '@univerjs/engine-formula';
|
|
2
|
-
import { IDataValidationError } from '@univerjs/sheets-data-validation/facade';
|
|
1
|
+
import type { ISheetFormulaError } from '@univerjs/engine-formula';
|
|
2
|
+
import type { IDataValidationError } from '@univerjs/sheets-data-validation/facade';
|
|
3
3
|
import { FWorkbook } from '@univerjs/sheets/facade';
|
|
4
4
|
import './f-workbook-custom-search';
|
|
5
5
|
export interface ILintErrorReport {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IFormulaUsage, IFormulaUsageAsA1, IGetSizeUsagesOptions, IGetStyleUsagesOptions, ISizeUsageGrouped, ISizeUsageGroupedAsA1, IStyleUsage, IStyleUsageAsA1 } from '@univerjs-pro/sheets-mcp';
|
|
1
|
+
import type { IFormulaUsage, IFormulaUsageAsA1, IGetSizeUsagesOptions, IGetStyleUsagesOptions, ISizeUsageGrouped, ISizeUsageGroupedAsA1, IStyleUsage, IStyleUsageAsA1 } from '@univerjs-pro/sheets-mcp';
|
|
2
2
|
import { FWorksheet } from '@univerjs/sheets/facade';
|
|
3
3
|
/**
|
|
4
4
|
* @ignore
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUniverSheetMCPConfig } from './controllers/config.schema';
|
|
1
|
+
import type { IUniverSheetMCPConfig } from './controllers/config.schema';
|
|
2
2
|
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverSheetMCPPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellData, IRange, Nullable } from '@univerjs/core';
|
|
1
|
+
import type { ICellData, IRange, Nullable } from '@univerjs/core';
|
|
2
2
|
/**
|
|
3
3
|
* Generic cell usage data interface
|
|
4
4
|
*/
|
|
@@ -56,7 +56,7 @@ export interface IDataExtractorCondition {
|
|
|
56
56
|
* Convert rectangle coordinates to A1 notation
|
|
57
57
|
*/
|
|
58
58
|
export declare function getA1Notation([r1, r2, c1, c2]: [number, number, number, number]): string;
|
|
59
|
-
export declare const ICellUsageAnalyzer: import(
|
|
59
|
+
export declare const ICellUsageAnalyzer: import("@wendellhu/redi").IdentifierDecorator<CellUsageAnalyzer>;
|
|
60
60
|
export declare class CellUsageAnalyzer {
|
|
61
61
|
/**
|
|
62
62
|
* Analyze cell data matrix to find all data usage patterns
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IConditionalFormattingRuleConfig, IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
|
|
1
|
+
import type { IConditionalFormattingRuleConfig, IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
|
|
2
2
|
/**
|
|
3
3
|
* MCP parameter structure definition
|
|
4
4
|
* All parameters are flattened and change dynamically according to rule_type/sub_type
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDataValidationRule } from '@univerjs/core';
|
|
2
|
-
import { IMCPDataValidationRule } from '../tools/format-types';
|
|
1
|
+
import type { IDataValidationRule } from '@univerjs/core';
|
|
2
|
+
import type { IMCPDataValidationRule } from '../tools/format-types';
|
|
3
3
|
export declare class DataValidationConverter {
|
|
4
4
|
static toInternalConfig(mcpRule: IMCPDataValidationRule): IDataValidationRule;
|
|
5
5
|
static fromInternalConfig(data: IDataValidationRule): IMCPDataValidationRule;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellData, IRange, Nullable } from '@univerjs/core';
|
|
1
|
+
import type { ICellData, IRange, Nullable } from '@univerjs/core';
|
|
2
2
|
import { ICalculateFormulaService, LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for formula usage information
|
|
@@ -42,7 +42,7 @@ export declare function toA1(usage: IFormulaUsage): IFormulaUsageAsA1;
|
|
|
42
42
|
*/
|
|
43
43
|
export declare function getA1Notation([r1, r2, c1, c2]: [number, number, number, number]): string;
|
|
44
44
|
export declare const FormulaUsageAnalyzerChannelName = "sheets.mcp.formula-usage-analyzer";
|
|
45
|
-
export declare const IFormulaUsageAnalyzer: import(
|
|
45
|
+
export declare const IFormulaUsageAnalyzer: import("@wendellhu/redi").IdentifierDecorator<FormulaUsageAnalyzer>;
|
|
46
46
|
export declare class FormulaUsageAnalyzer {
|
|
47
47
|
protected _formulaService: ICalculateFormulaService;
|
|
48
48
|
private _lexerTreeBuilder;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ICellData
|
|
1
|
+
import type { ICellData } from '@univerjs/core';
|
|
2
|
+
import { IUniverInstanceService } from '@univerjs/core';
|
|
2
3
|
import { INumfmtService, SheetInterceptorService } from '@univerjs/sheets';
|
|
3
4
|
export declare class NumFmtMCPService {
|
|
4
5
|
private readonly _sheetInterceptorService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IColumnRange, IRowRange, Worksheet } from '@univerjs/core';
|
|
1
|
+
import type { IColumnRange, IRowRange, Worksheet } from '@univerjs/core';
|
|
2
2
|
/**
|
|
3
3
|
* Options for getSizeUsages methods
|
|
4
4
|
*/
|
|
@@ -92,7 +92,7 @@ export interface ISizeUsageGroupedAsA1 {
|
|
|
92
92
|
*/
|
|
93
93
|
heights: ISizeUsageRowAsA1[];
|
|
94
94
|
}
|
|
95
|
-
export declare const ISizeUsageAnalyzer: import(
|
|
95
|
+
export declare const ISizeUsageAnalyzer: import("@wendellhu/redi").IdentifierDecorator<SizeUsageAnalyzer>;
|
|
96
96
|
/**
|
|
97
97
|
* Size usage analyzer - aggregates row heights and column widths
|
|
98
98
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellData, IRange, Nullable, Workbook, Worksheet } from '@univerjs/core';
|
|
1
|
+
import type { ICellData, IRange, Nullable, Workbook, Worksheet } from '@univerjs/core';
|
|
2
2
|
import { CellUsageAnalyzer } from './cell-usage-analyzer.service';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for style usage information
|
|
@@ -72,7 +72,7 @@ export interface IGetStyleUsagesOptions {
|
|
|
72
72
|
* Convert IStyleUsage to A1 format
|
|
73
73
|
*/
|
|
74
74
|
export declare function toA1(usage: IStyleUsage): IStyleUsageAsA1;
|
|
75
|
-
export declare const IStyleUsageAnalyzer: import(
|
|
75
|
+
export declare const IStyleUsageAnalyzer: import("@wendellhu/redi").IdentifierDecorator<StyleUsageAnalyzer>;
|
|
76
76
|
/**
|
|
77
77
|
* Style usage analyzer - based on generic CellUsageAnalyzer
|
|
78
78
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Injector
|
|
1
|
+
import type { Injector } from '@univerjs/core';
|
|
2
2
|
import { z } from '@univerjs-pro/mcp';
|
|
3
|
+
import { ICommandService } from '@univerjs/core';
|
|
3
4
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
4
5
|
/**
|
|
5
6
|
* Get UniverAPI instance from globalThis (temporary implementation)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMCPTool
|
|
1
|
+
import type { IMCPTool } from '@univerjs-pro/mcp';
|
|
2
|
+
import { z } from '@univerjs-pro/mcp';
|
|
2
3
|
export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
3
4
|
rule_id: z.ZodOptional<z.ZodString>;
|
|
4
5
|
range: z.ZodOptional<z.ZodString>;
|
|
@@ -10,18 +11,18 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
|
10
11
|
colorScale: "colorScale";
|
|
11
12
|
}>>;
|
|
12
13
|
min_type: z.ZodOptional<z.ZodEnum<{
|
|
13
|
-
percent: "percent";
|
|
14
|
-
min: "min";
|
|
15
14
|
max: "max";
|
|
15
|
+
min: "min";
|
|
16
|
+
percent: "percent";
|
|
16
17
|
formula: "formula";
|
|
17
18
|
num: "num";
|
|
18
19
|
percentile: "percentile";
|
|
19
20
|
}>>;
|
|
20
21
|
min_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
21
22
|
max_type: z.ZodOptional<z.ZodEnum<{
|
|
22
|
-
percent: "percent";
|
|
23
|
-
min: "min";
|
|
24
23
|
max: "max";
|
|
24
|
+
min: "min";
|
|
25
|
+
percent: "percent";
|
|
25
26
|
formula: "formula";
|
|
26
27
|
num: "num";
|
|
27
28
|
percentile: "percentile";
|
|
@@ -37,9 +38,9 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
|
37
38
|
index: z.ZodNumber;
|
|
38
39
|
color: z.ZodString;
|
|
39
40
|
value_type: z.ZodEnum<{
|
|
40
|
-
percent: "percent";
|
|
41
|
-
min: "min";
|
|
42
41
|
max: "max";
|
|
42
|
+
min: "min";
|
|
43
|
+
percent: "percent";
|
|
43
44
|
formula: "formula";
|
|
44
45
|
num: "num";
|
|
45
46
|
percentile: "percentile";
|
|
@@ -49,12 +50,12 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
|
49
50
|
sub_type: z.ZodOptional<z.ZodEnum<{
|
|
50
51
|
number: "number";
|
|
51
52
|
text: "text";
|
|
52
|
-
formula: "formula";
|
|
53
53
|
uniqueValues: "uniqueValues";
|
|
54
54
|
duplicateValues: "duplicateValues";
|
|
55
55
|
rank: "rank";
|
|
56
56
|
timePeriod: "timePeriod";
|
|
57
57
|
average: "average";
|
|
58
|
+
formula: "formula";
|
|
58
59
|
}>>;
|
|
59
60
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
60
61
|
endsWith: "endsWith";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMCPTool
|
|
1
|
+
import type { IMCPTool } from '@univerjs-pro/mcp';
|
|
2
|
+
import { z } from '@univerjs-pro/mcp';
|
|
2
3
|
import { DataValidationOperator } from '@univerjs/core';
|
|
3
4
|
export declare const dataValidationRuleSchema: z.ZodObject<{
|
|
4
5
|
rule_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISheetFormulaError } from '@univerjs/engine-formula';
|
|
2
|
-
import { IDataValidationError } from '@univerjs/sheets-data-validation/facade';
|
|
1
|
+
import type { ISheetFormulaError } from '@univerjs/engine-formula';
|
|
2
|
+
import type { IDataValidationError } from '@univerjs/sheets-data-validation/facade';
|
|
3
3
|
/**
|
|
4
4
|
* Get lint errors from formula errors and data validation errors
|
|
5
5
|
* @returns YAML formatted error report
|
|
@@ -7,4 +7,4 @@ export { rangeOperationTools } from './range-operations';
|
|
|
7
7
|
export { rowColumnOperationTools } from './row-column-operations';
|
|
8
8
|
export { sheetManagementTools } from './sheet-management';
|
|
9
9
|
export { utilityTools } from './utility-tools';
|
|
10
|
-
export declare const allSheetTools: import(
|
|
10
|
+
export declare const allSheetTools: import("@univerjs-pro/mcp").IMCPTool[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMCPTool
|
|
1
|
+
import type { IMCPTool } from '@univerjs-pro/mcp';
|
|
2
|
+
import { z } from '@univerjs-pro/mcp';
|
|
2
3
|
export declare const batchRangeDataItemSchema: z.ZodObject<{
|
|
3
4
|
range: z.ZodString;
|
|
4
5
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMCPTool
|
|
1
|
+
import type { IMCPTool } from '@univerjs-pro/mcp';
|
|
2
|
+
import { z } from '@univerjs-pro/mcp';
|
|
2
3
|
export declare const insertRowOperationSchema: z.ZodObject<{
|
|
3
4
|
position: z.ZodNumber;
|
|
4
5
|
how_many: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStyleBase } from '@univerjs/core';
|
|
1
|
+
import type { IStyleBase } from '@univerjs/core';
|
|
2
2
|
/**
|
|
3
3
|
* Generate a unique hash for a style object based on specified properties
|
|
4
4
|
* Only considers: fontSize(fs), italic(it), bold(bl), background(bg.rgb), color(cl.rgb), numberFormat(n.pattern)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMCPTool
|
|
1
|
+
import type { IMCPTool } from '@univerjs-pro/mcp';
|
|
2
|
+
import { z } from '@univerjs-pro/mcp';
|
|
2
3
|
export declare const cellDimensionRequestSchema: z.ZodObject<{
|
|
3
4
|
range: z.ZodString;
|
|
4
5
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4538(_0x1aa017,_0x5aa433){_0x1aa017=_0x1aa017-0x1d7;const _0xdba73a=_0xdba7();let _0x453880=_0xdba73a[_0x1aa017];return _0x453880;}(function(_0x58673a,_0x58286b){const _0x48d975=_0x4538,_0x156de0=_0x58673a();while(!![]){try{const _0x1971de=-parseInt(_0x48d975(0x22d))/0x1*(-parseInt(_0x48d975(0x232))/0x2)+-parseInt(_0x48d975(0x1fd))/0x3*(parseInt(_0x48d975(0x20d))/0x4)+-parseInt(_0x48d975(0x200))/0x5+parseInt(_0x48d975(0x228))/0x6+-parseInt(_0x48d975(0x1e4))/0x7+-parseInt(_0x48d975(0x222))/0x8+-parseInt(_0x48d975(0x220))/0x9*(-parseInt(_0x48d975(0x236))/0xa);if(_0x1971de===_0x58286b)break;else _0x156de0['push'](_0x156de0['shift']());}catch(_0x2ab8ab){_0x156de0['push'](_0x156de0['shift']());}}}(_0xdba7,0xc5109),function(_0xd42b7e,_0x5c9386){const _0xc1eec5=_0x4538;typeof exports==_0xc1eec5(0x215)&&typeof module<'u'?_0x5c9386(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade'),require('@univerjs/sheets/facade'),require('@univerjs/engine-formula'),require('@univerjs-pro/sheets-mcp'),require('@univerjs/core')):typeof define=='function'&&define[_0xc1eec5(0x202)]?define([_0xc1eec5(0x242),_0xc1eec5(0x1db),_0xc1eec5(0x23c),'@univerjs/sheets/facade',_0xc1eec5(0x23d),_0xc1eec5(0x21b),_0xc1eec5(0x20a)],_0x5c9386):(_0xd42b7e=typeof globalThis<'u'?globalThis:_0xd42b7e||self,_0x5c9386(_0xd42b7e[_0xc1eec5(0x1fc)],_0xd42b7e[_0xc1eec5(0x22a)],_0xd42b7e[_0xc1eec5(0x1d9)],_0xd42b7e[_0xc1eec5(0x208)],_0xd42b7e['UniverEngineFormula'],_0xd42b7e[_0xc1eec5(0x23f)],_0xd42b7e[_0xc1eec5(0x205)]));}(this,function(_0x439237,_0x289ba7,_0x2d6d16,_0x4b9cb6,_0x2c434c,_0x1407b1,_0x84937a){'use strict';const _0x3de5f2=_0x4538;class _0x3b1358 extends _0x439237['FUniver']{async[_0x3de5f2(0x1e6)](){const _0x2ce1e4=_0x3de5f2;return this['getActiveWorkbook']()[_0x2ce1e4(0x1e6)]();}}_0x439237[_0x3de5f2(0x22c)][_0x3de5f2(0x21a)](_0x3b1358);class _0x59b75c extends _0x4b9cb6[_0x3de5f2(0x1f6)]{[_0x3de5f2(0x20f)](){const _0x379bbf=_0x3de5f2;Object[_0x379bbf(0x212)](this,'_formulaDataModel',{'get'(){const _0x15fc53=_0x379bbf;return this['_injector'][_0x15fc53(0x241)](_0x2c434c[_0x15fc53(0x206)]);}});}[_0x3de5f2(0x23b)](_0x4305f3,_0x54cba2={}){const _0x5e44fc=_0x3de5f2,{caseSensitive:_0x3d42d4=!0x1,matchEntireCell:_0x4c95c9=!0x1,specificRanges:_0x3a9c56,specificTypes:_0x39342b,searchMultipleTextsCondition:_0xa7eb83='OR'}=_0x54cba2;let _0x3f560f=(Array[_0x5e44fc(0x219)](_0x4305f3)?_0x4305f3:[_0x4305f3])[_0x5e44fc(0x207)](_0x4e1605=>_0x4e1605[_0x5e44fc(0x1fb)]())[_0x5e44fc(0x23a)](_0x253c1e=>_0x253c1e);if(_0x3d42d4||(_0x3f560f=_0x3f560f[_0x5e44fc(0x207)](_0x482dd8=>_0x482dd8[_0x5e44fc(0x216)]())),_0x3f560f[_0x5e44fc(0x204)]===0x0)return[];const _0x13cc3c={'caseSensitive':_0x3d42d4,'matchEntireCell':_0x4c95c9,'searchMultipleTextsCondition':_0xa7eb83,'isSearchByRawValue':!_0x39342b||_0x39342b[_0x5e44fc(0x214)](_0x5e44fc(0x1e5)),'isSearchByDisplayValue':!_0x39342b||_0x39342b['includes'](_0x5e44fc(0x1d8)),'isSearchByFormula':!_0x39342b||_0x39342b['includes'](_0x5e44fc(0x22e))},_0x50bdb3=this[_0x5e44fc(0x20b)](),_0x2d506f=[];if(_0x3a9c56)for(const {sheetId:_0x1f8ef6,ranges:_0x3daecc}of _0x3a9c56){const _0x385acc=_0x50bdb3[_0x5e44fc(0x240)](_0x1f8ef6);if(!_0x385acc){console[_0x5e44fc(0x21c)](_0x5e44fc(0x235)+_0x1f8ef6+_0x5e44fc(0x1f2));continue;}const _0x629c9c=_0x385acc[_0x5e44fc(0x23e)]();if(_0x3daecc&&_0x3daecc[_0x5e44fc(0x204)]>0x0){for(const _0x5ac441 of _0x3daecc)for(let _0xfb11fd=_0x5ac441['startRow'];_0xfb11fd<=_0x5ac441[_0x5e44fc(0x230)];_0xfb11fd++)for(let _0x5ab010=_0x5ac441[_0x5e44fc(0x233)];_0x5ab010<=_0x5ac441[_0x5e44fc(0x1dd)];_0x5ab010++){const _0x3b7272=_0x629c9c[_0x5e44fc(0x1e9)](_0xfb11fd,_0x5ab010);if(!_0x3b7272)continue;const _0x1ea8f0=this[_0x5e44fc(0x226)](_0x3b7272,_0x3f560f,{..._0x13cc3c,'worksheet':_0x385acc,'row':_0xfb11fd,'col':_0x5ab010});_0x1ea8f0&&_0x2d506f[_0x5e44fc(0x227)]({..._0x1ea8f0,'sheetId':_0x385acc[_0x5e44fc(0x1f5)]()});}}else _0x629c9c[_0x5e44fc(0x203)]((_0x315363,_0x12fbad,_0x44be80)=>{const _0xfd08e8=_0x5e44fc;if(_0x44be80){const _0x3c422f=this['_cellMatchesSearch'](_0x44be80,_0x3f560f,{..._0x13cc3c,'worksheet':_0x385acc,'row':_0x315363,'col':_0x12fbad});_0x3c422f&&_0x2d506f[_0xfd08e8(0x227)]({..._0x3c422f,'sheetId':_0x385acc['getSheetId']()});}});}else{const _0x40619d=_0x50bdb3[_0x5e44fc(0x243)]();for(const _0x39d548 of _0x40619d)_0x39d548[_0x5e44fc(0x23e)]()[_0x5e44fc(0x203)]((_0x974d45,_0x4cc7ae,_0x2d9882)=>{const _0x1f842b=_0x5e44fc;if(_0x2d9882){const _0x516519=this['_cellMatchesSearch'](_0x2d9882,_0x3f560f,{..._0x13cc3c,'worksheet':_0x39d548,'row':_0x974d45,'col':_0x4cc7ae});_0x516519&&_0x2d506f[_0x1f842b(0x227)]({..._0x516519,'sheetId':_0x39d548[_0x1f842b(0x1f5)]()});}});}return _0x2d506f;}[_0x3de5f2(0x226)](_0x27b3cc,_0x1f3674,_0x2649f2){const _0x3057d7=_0x3de5f2;var _0x3ce411,_0x16306f,_0x119125,_0x529cd4,_0xa12a80;const {caseSensitive:_0x2b0a07,matchEntireCell:_0x23ee0e,searchMultipleTextsCondition:_0x3f99a2,isSearchByRawValue:_0xfbf5b6,isSearchByDisplayValue:_0x1b191b,isSearchByFormula:_0x5ccbfe,worksheet:_0x16091e,row:_0x406b96,col:_0x2df105}=_0x2649f2;if(_0xfbf5b6){const _0x522b06=((_0x16306f=(_0x3ce411=_0x27b3cc['p'])==null?void 0x0:_0x3ce411[_0x3057d7(0x21f)])==null?void 0x0:_0x16306f['dataStream'])||_0x27b3cc['v'];if(_0x522b06){const _0x3e5b92=_0x2b0a07?_0x522b06[_0x3057d7(0x1f9)]():_0x522b06[_0x3057d7(0x1f9)]()[_0x3057d7(0x216)]();if(this[_0x3057d7(0x1f7)](_0x3e5b92,_0x1f3674,_0x23ee0e,_0x3f99a2))return{'row':_0x406b96,'col':_0x2df105,'reference':_0x2c434c[_0x3057d7(0x1e0)](_0x16091e['getName'](),{'startRow':_0x406b96,'endRow':_0x406b96,'startColumn':_0x2df105,'endColumn':_0x2df105}),'cellData':{..._0x27b3cc,'rawValue':_0x522b06}};}}if(_0x5ccbfe&&(_0x27b3cc['f']||_0x27b3cc['si'])){const _0x4fd9f4=this[_0x3057d7(0x238)]['getFormulaStringByCell'](_0x406b96,_0x2df105,_0x16091e[_0x3057d7(0x1f5)](),this[_0x3057d7(0x20b)]()[_0x3057d7(0x1d7)]());if(_0x4fd9f4){const _0x6451d4=_0x2b0a07?_0x4fd9f4:_0x4fd9f4[_0x3057d7(0x216)]();if(this['_isMatch'](_0x6451d4,_0x1f3674,_0x23ee0e,_0x3f99a2))return{'row':_0x406b96,'col':_0x2df105,'reference':_0x2c434c[_0x3057d7(0x1e0)](_0x16091e[_0x3057d7(0x1ec)](),{'startRow':_0x406b96,'endRow':_0x406b96,'startColumn':_0x2df105,'endColumn':_0x2df105}),'cellData':{..._0x27b3cc,'formulaString':_0x4fd9f4}};}}if(_0x1b191b){let _0x5564f9=(_0x529cd4=(_0x119125=_0x27b3cc['p'])==null?void 0x0:_0x119125[_0x3057d7(0x21f)])==null?void 0x0:_0x529cd4[_0x3057d7(0x234)];if(_0x5564f9||(_0x5564f9=(_0xa12a80=_0x16091e[_0x3057d7(0x217)](_0x406b96,_0x2df105))==null?void 0x0:_0xa12a80['v']),_0x5564f9){const _0xd54a32=_0x2b0a07?_0x5564f9[_0x3057d7(0x1f9)]():_0x5564f9[_0x3057d7(0x1f9)]()[_0x3057d7(0x216)]();if(this[_0x3057d7(0x1f7)](_0xd54a32,_0x1f3674,_0x23ee0e,_0x3f99a2))return{'row':_0x406b96,'col':_0x2df105,'reference':_0x2c434c[_0x3057d7(0x1e0)](_0x16091e[_0x3057d7(0x1ec)](),{'startRow':_0x406b96,'endRow':_0x406b96,'startColumn':_0x2df105,'endColumn':_0x2df105}),'cellData':{..._0x27b3cc,'displayValue':_0x5564f9[_0x3057d7(0x1f9)]()}};}}return!0x1;}[_0x3de5f2(0x1f7)](_0x10d0ee,_0x4865c5,_0x400c3b,_0x3feeaa){const _0x59ab2b=_0x3de5f2;return _0x4865c5[_0x59ab2b(0x204)]>0x1&&_0x3feeaa===_0x59ab2b(0x221)?_0x4865c5[_0x59ab2b(0x1f8)](_0x2da730=>_0x400c3b?_0x10d0ee===_0x2da730:_0x10d0ee[_0x59ab2b(0x1ea)](_0x2da730)>-0x1):_0x4865c5[_0x59ab2b(0x1e1)](_0x31173b=>_0x400c3b?_0x10d0ee===_0x31173b:_0x10d0ee[_0x59ab2b(0x1ea)](_0x31173b)>-0x1);}}_0x4b9cb6['FWorkbook'][_0x3de5f2(0x21a)](_0x59b75c);class _0x2ef2fe extends _0x4b9cb6[_0x3de5f2(0x1f6)]{async[_0x3de5f2(0x1e6)](){const _0x243c83=_0x3de5f2,_0xf02c2d=this[_0x243c83(0x1de)](),_0x2e4686=await this[_0x243c83(0x1ff)]();return{'formulaErrors':_0xf02c2d,'dataValidationErrors':_0x2e4686};}}_0x4b9cb6[_0x3de5f2(0x1f6)][_0x3de5f2(0x21a)](_0x2ef2fe);class _0xcf190c extends _0x4b9cb6[_0x3de5f2(0x1df)]{async[_0x3de5f2(0x1f1)](){const _0x40651f=_0x3de5f2,_0x501379=this[_0x40651f(0x210)][_0x40651f(0x241)](_0x1407b1[_0x40651f(0x237)]),_0x2fa371=this[_0x40651f(0x209)](0x0,0x0,this[_0x40651f(0x1fe)](),this[_0x40651f(0x223)]())[_0x40651f(0x1da)]();return await _0x501379[_0x40651f(0x1e2)](_0x2fa371);}async[_0x3de5f2(0x21e)](){const _0x35119d=_0x3de5f2;return(await this['getFormulaUsages']())[_0x35119d(0x207)](_0x1407b1[_0x35119d(0x218)]);}[_0x3de5f2(0x211)](_0x5ccdd3){const _0x39494b=_0x3de5f2,_0x3005cc=this['_injector']['get'](_0x1407b1[_0x39494b(0x1f3)]),_0x42c852=this[_0x39494b(0x209)](0x0,0x0,this[_0x39494b(0x1fe)](),this[_0x39494b(0x223)]())[_0x39494b(0x1da)]();return _0x3005cc[_0x39494b(0x20e)](_0x5ccdd3),_0x3005cc[_0x39494b(0x239)](_0x42c852,this[_0x39494b(0x1fa)],this['_worksheet']);}[_0x3de5f2(0x1ef)](_0x337cce){const _0x3c7a35=_0x3de5f2;return this[_0x3c7a35(0x211)](_0x337cce)[_0x3c7a35(0x207)](_0x1407b1[_0x3c7a35(0x1ee)]);}['getSizeUsages'](_0x2b460e){const _0x5838bb=_0x3de5f2,_0x31d165=this[_0x5838bb(0x210)][_0x5838bb(0x241)](_0x1407b1[_0x5838bb(0x1f4)]);return _0x31d165['updateConfig'](_0x2b460e),_0x31d165['getAllSizeUsages'](this[_0x5838bb(0x21d)]);}['getSizeUsagesAsA1'](_0x965109){const _0x2948b0=_0x3de5f2,_0x4856af=this['_injector'][_0x2948b0(0x241)](_0x1407b1['ISizeUsageAnalyzer']);_0x4856af[_0x2948b0(0x20e)](_0x965109);const _0xcb52de=_0x4856af[_0x2948b0(0x1eb)](this[_0x2948b0(0x21d)]);return _0x4856af[_0x2948b0(0x231)](_0xcb52de);}}_0x4b9cb6[_0x3de5f2(0x1df)][_0x3de5f2(0x21a)](_0xcf190c);class _0x742f12 extends _0x4b9cb6['FRange']{['_collectRectAreaData'](_0x2a22ec){const _0x138ee9=_0x3de5f2;var _0x40d827;const _0x5dbc0d=(_0x40d827=_0x2a22ec==null?void 0x0:_0x2a22ec[_0x138ee9(0x20c)])!=null?_0x40d827:!0x0,_0x84e3c4=this['getRange'](),_0x5718e9=this[_0x138ee9(0x21d)]['getRowManager'](),_0x57dccd=this[_0x138ee9(0x21d)][_0x138ee9(0x225)](),_0x2d136a={};let _0x21a737=0x0;for(let _0x1e34f3=_0x84e3c4[_0x138ee9(0x22f)];_0x1e34f3<=_0x84e3c4[_0x138ee9(0x230)];_0x1e34f3++){const _0x10c9b2=_0x5718e9[_0x138ee9(0x213)](_0x1e34f3),_0x2fc7a6=!_0x5dbc0d||this['_worksheet'][_0x138ee9(0x1ed)](_0x1e34f3)?_0x10c9b2:0x0;_0x21a737+=_0x2fc7a6,_0x2d136a[_0x1e34f3]={'h':_0x2fc7a6};}const _0x6cd822={};let _0x1a8b6a=0x0;for(let _0x1f434d=_0x84e3c4['startColumn'];_0x1f434d<=_0x84e3c4['endColumn'];_0x1f434d++){const _0x539a64=_0x57dccd[_0x138ee9(0x1e8)](_0x1f434d),_0x466bf5=!_0x5dbc0d||this['_worksheet'][_0x138ee9(0x201)](_0x1f434d)?_0x539a64:0x0;_0x1a8b6a+=_0x466bf5,_0x6cd822[_0x1f434d]={'w':_0x466bf5};}return{'w':_0x1a8b6a,'h':_0x21a737,'rowData':_0x2d136a,'columnData':_0x6cd822};}async[_0x3de5f2(0x1f1)](){const _0xb62ab0=_0x3de5f2,_0x46eb14=this[_0xb62ab0(0x210)][_0xb62ab0(0x241)](_0x1407b1['IFormulaUsageAnalyzer']),_0x3fda37=(({startRow:_0x15a2bc,endRow:_0x1e2674,startColumn:_0xe1214e,endColumn:_0x10232d})=>{const _0x2b6c09=_0xb62ab0,_0x43c76d=[];for(let _0x119eb7=_0x15a2bc;_0x119eb7<=_0x1e2674;_0x119eb7++){const _0x2796f7=[];for(let _0x29222d=_0xe1214e;_0x29222d<=_0x10232d;_0x29222d++)_0x2796f7['push'](this[_0x2b6c09(0x21d)][_0x2b6c09(0x1f0)](_0x119eb7,_0x29222d));_0x43c76d[_0x2b6c09(0x227)](_0x2796f7);}return _0x43c76d;})({'startRow':0x0,'endRow':this[_0xb62ab0(0x21d)][_0xb62ab0(0x1fe)](),'startColumn':0x0,'endColumn':this[_0xb62ab0(0x21d)][_0xb62ab0(0x223)]()}),_0x2f7a7b=await _0x46eb14[_0xb62ab0(0x1e2)](_0x3fda37),_0x412f5e=this[_0xb62ab0(0x209)](),_0x26d72a=[];for(let _0x3e7f35=0x0;_0x3e7f35<_0x2f7a7b[_0xb62ab0(0x204)];_0x3e7f35++){const _0x586cb2=_0x2f7a7b[_0x3e7f35],_0x4c90c2=_0x586cb2[_0xb62ab0(0x1e7)],_0xebbe0=[];for(let _0x5d0662=0x0;_0x5d0662<_0x4c90c2[_0xb62ab0(0x204)];_0x5d0662++){const _0x29aa74=_0x4c90c2[_0x5d0662],_0x325b0d=_0x84937a[_0xb62ab0(0x1dc)](_0x29aa74,_0x412f5e);_0x325b0d&&_0xebbe0[_0xb62ab0(0x227)](_0x325b0d);}if(_0xebbe0[_0xb62ab0(0x204)]>0x0){if(_0x586cb2[_0xb62ab0(0x1e7)]=_0xebbe0,!(_0x586cb2['firstOccurrence'][_0xb62ab0(0x22f)]>=_0x412f5e[_0xb62ab0(0x22f)]&&_0x586cb2[_0xb62ab0(0x1e3)][_0xb62ab0(0x22f)]<=_0x412f5e[_0xb62ab0(0x230)]&&_0x586cb2[_0xb62ab0(0x1e3)][_0xb62ab0(0x233)]>=_0x412f5e[_0xb62ab0(0x233)]&&_0x586cb2[_0xb62ab0(0x1e3)][_0xb62ab0(0x233)]<=_0x412f5e[_0xb62ab0(0x1dd)])){const _0x39291c=_0xebbe0[0x0],_0x442961=_0x39291c[_0xb62ab0(0x22f)]-_0x586cb2[_0xb62ab0(0x1e3)]['startRow'],_0x11f66b=_0x39291c['startColumn']-_0x586cb2[_0xb62ab0(0x1e3)][_0xb62ab0(0x233)];_0x586cb2[_0xb62ab0(0x22e)]=await _0x46eb14[_0xb62ab0(0x229)](_0x586cb2[_0xb62ab0(0x22e)],_0x11f66b,_0x442961),_0x586cb2['firstOccurrence']={'startRow':_0x39291c[_0xb62ab0(0x22f)],'endRow':_0x39291c['startRow'],'startColumn':_0x39291c[_0xb62ab0(0x233)],'endColumn':_0x39291c[_0xb62ab0(0x233)]};}_0x26d72a[_0xb62ab0(0x227)](_0x586cb2);}}return _0x26d72a;}async[_0x3de5f2(0x21e)](){const _0x46c56b=_0x3de5f2;return(await this['getFormulaUsages']())[_0x46c56b(0x207)](_0x1407b1['formulaToA1']);}[_0x3de5f2(0x211)](_0x45d29d){const _0x50bf08=_0x3de5f2,_0x339150=this[_0x50bf08(0x210)][_0x50bf08(0x241)](_0x1407b1['IStyleUsageAnalyzer']),_0x12ca24=(({startRow:_0x26b558,endRow:_0x45c4ba,startColumn:_0x6ee332,endColumn:_0x26f57d})=>{const _0x826634=_0x50bf08,_0x24d87f=[];for(let _0x255399=_0x26b558;_0x255399<=_0x45c4ba;_0x255399++){const _0x36579a=[];for(let _0xbec555=_0x6ee332;_0xbec555<=_0x26f57d;_0xbec555++)_0x36579a[_0x826634(0x227)](this[_0x826634(0x21d)][_0x826634(0x1f0)](_0x255399,_0xbec555));_0x24d87f[_0x826634(0x227)](_0x36579a);}return _0x24d87f;})({'startRow':0x0,'endRow':this[_0x50bf08(0x21d)][_0x50bf08(0x1fe)](),'startColumn':0x0,'endColumn':this[_0x50bf08(0x21d)][_0x50bf08(0x223)]()});_0x339150[_0x50bf08(0x20e)](_0x45d29d);const _0x25f44e=_0x339150[_0x50bf08(0x239)](_0x12ca24,this['_workbook'],this[_0x50bf08(0x21d)]),_0x3475bc=this[_0x50bf08(0x209)](),_0x1db352=[];for(let _0x507fa5=0x0;_0x507fa5<_0x25f44e[_0x50bf08(0x204)];_0x507fa5++){const _0xf3a264=_0x25f44e[_0x507fa5],_0xd7ceec=_0xf3a264['filledRanges'],_0x24df65=[];for(let _0x57d132=0x0;_0x57d132<_0xd7ceec[_0x50bf08(0x204)];_0x57d132++){const _0x49d4b7=_0xd7ceec[_0x57d132],_0x462fed=_0x84937a[_0x50bf08(0x1dc)](_0x49d4b7,_0x3475bc);_0x462fed&&_0x24df65['push'](_0x462fed);}_0x24df65['length']>0x0&&(_0xf3a264[_0x50bf08(0x1e7)]=_0x24df65,_0x1db352['push'](_0xf3a264));}return _0x1db352;}[_0x3de5f2(0x1ef)](_0x211acc){const _0x61a4ce=_0x3de5f2;return this[_0x61a4ce(0x211)](_0x211acc)[_0x61a4ce(0x207)](_0x1407b1['styleToA1']);}[_0x3de5f2(0x224)](_0x2f9a06){const _0x15c603=_0x3de5f2,_0x4f461b=this[_0x15c603(0x210)]['get'](_0x1407b1['ISizeUsageAnalyzer']),_0x35a9d8=this[_0x15c603(0x209)]();return _0x4f461b[_0x15c603(0x20e)](_0x2f9a06),_0x4f461b[_0x15c603(0x1eb)](this[_0x15c603(0x21d)],_0x35a9d8[_0x15c603(0x22f)],_0x35a9d8['endRow'],_0x35a9d8[_0x15c603(0x233)],_0x35a9d8[_0x15c603(0x1dd)]);}['getSizeUsagesAsA1'](_0x2090ce){const _0x45ff6a=_0x3de5f2,_0x123123=this[_0x45ff6a(0x224)](_0x2090ce);return this[_0x45ff6a(0x210)][_0x45ff6a(0x241)](_0x1407b1[_0x45ff6a(0x1f4)])[_0x45ff6a(0x231)](_0x123123);}['getRectArea'](_0xdccc0d){const _0x51584b=this['_collectRectAreaData'](_0xdccc0d);return{'w':_0x51584b['w'],'h':_0x51584b['h']};}['getRectAreaData'](_0x2b8641){return this['_collectRectAreaData'](_0x2b8641);}}_0x4b9cb6[_0x3de5f2(0x22b)][_0x3de5f2(0x21a)](_0x742f12);}));function _0xdba7(){const _0xf58fb2=['displayValue','UniverSheetsDataValidationFacade','getCellDataGrid','@univerjs/sheets-formula/facade','getIntersectRange','endColumn','getAllFormulaError','FWorksheet','serializeRangeWithSheet','some','getAllFormulaUsages','firstOccurrence','4745216HfQGOx','rawValue','getLintErrors','filledRanges','getColumnWidth','getValue','indexOf','getAllSizeUsages','getName','getRowVisible','styleToA1','getStyleUsagesAsA1','getCellRaw','getFormulaUsages','\x20not\x20found.\x20Skipping.','IStyleUsageAnalyzer','ISizeUsageAnalyzer','getSheetId','FWorkbook','_isMatch','every','toString','_workbook','trim','UniverCoreFacade','5325UvgVNs','getMaxRows','getAllDataValidationErrorAsync','3614375DbXLSj','getColVisible','amd','forValue','length','UniverCore','FormulaDataModel','map','UniverSheetsFacade','getRange','@univerjs/core','getWorkbook','visibleOnly','1096cCmBpf','updateConfig','_initialize','_injector','getStyleUsages','defineProperty','getRowHeight','includes','object','toLowerCase','getCell','formulaToA1','isArray','extend','@univerjs-pro/sheets-mcp','warn','_worksheet','getFormulaUsagesAsA1','body','2457MOQViV','AND','4220096LMgpTu','getMaxColumns','getSizeUsages','getColumnManager','_cellMatchesSearch','push','4051788qfeeCd','moveFormulaRefOffset','UniverSheetsFormulaFacade','FRange','FUniver','1RGZuIT','formula','startRow','endRow','toA1','1368196VIbzid','startColumn','dataStream','Sheet\x20with\x20ID\x20','68220LLFRxA','IFormulaUsageAnalyzer','_formulaDataModel','getAllStyleUsages','filter','searchCells','@univerjs/sheets-data-validation/facade','@univerjs/engine-formula','getCellMatrix','UniverProSheetsMcp','getSheetBySheetId','get','@univerjs/core/facade','getSheets','getUnitId'];_0xdba7=function(){return _0xf58fb2;};return _0xdba7();}
|
|
1
|
+
function _0x11d1(){const _0x32538f=['FWorkbook','@univerjs-pro/sheets-mcp','getAllFormulaUsages','942661nUxSeL','FWorksheet','styleToA1','warn','getLintErrors','getColumnManager','getStyleUsages','IStyleUsageAnalyzer','ISizeUsageAnalyzer','UniverSheetsDataValidationFacade','getColumnWidth','_injector','object','UniverProSheetsMcp','forValue','4860495jepzTD','toString','searchCells','firstOccurrence','@univerjs/core','visibleOnly','6470220rrRSYp','3UAtPKc','FRange','_cellMatchesSearch','updateConfig','amd','filledRanges','getUnitId','getSizeUsagesAsA1','toLowerCase','moveFormulaRefOffset','2278912RqbMBP','getAllStyleUsages','getSheets','219730JPuFbi','getMaxColumns','startColumn','@univerjs/core/facade','endColumn','getSheetId','getRowManager','map','extend','getSizeUsages','toA1','displayValue','getValue','29407rymGbM','@univerjs/sheets-formula/facade','getCell','UniverEngineFormula','startRow','UniverCoreFacade','dataStream','6LccmDN','_isMatch','trim','_workbook','4649795KeCEzF','UniverCore','Sheet\x20with\x20ID\x20','function','IFormulaUsageAnalyzer','length','defineProperty','getWorkbook','getRowVisible','indexOf','get','1280vfWwcV','serializeRangeWithSheet','getAllDataValidationErrorAsync','push','includes','endRow','_formulaDataModel','getCellDataGrid','getColVisible','AND','getAllSizeUsages','getFormulaUsages','formula','getSheetBySheetId','FUniver','getStyleUsagesAsA1','FormulaDataModel','getIntersectRange','getFormulaStringByCell','_collectRectAreaData','@univerjs/engine-formula','rawValue','getMaxRows','getRange','getName','getCellMatrix','UniverSheetsFacade','formulaToA1','filter','_worksheet','body','getRectAreaData','getRowHeight'];_0x11d1=function(){return _0x32538f;};return _0x11d1();}function _0x1189(_0x52a35a,_0x5a0c6c){_0x52a35a=_0x52a35a-0x115;const _0x11d153=_0x11d1();let _0x118975=_0x11d153[_0x52a35a];return _0x118975;}(function(_0x20b947,_0x4980c9){const _0xfd9b2=_0x1189,_0x5becce=_0x20b947();while(!![]){try{const _0x31b1ef=parseInt(_0xfd9b2(0x124))/0x1+parseInt(_0xfd9b2(0x147))/0x2*(-parseInt(_0xfd9b2(0x13a))/0x3)+parseInt(_0xfd9b2(0x144))/0x4+parseInt(_0xfd9b2(0x15f))/0x5*(parseInt(_0xfd9b2(0x15b))/0x6)+-parseInt(_0xfd9b2(0x154))/0x7*(parseInt(_0xfd9b2(0x16a))/0x8)+-parseInt(_0xfd9b2(0x133))/0x9+-parseInt(_0xfd9b2(0x139))/0xa;if(_0x31b1ef===_0x4980c9)break;else _0x5becce['push'](_0x5becce['shift']());}catch(_0x5d2aaa){_0x5becce['push'](_0x5becce['shift']());}}}(_0x11d1,0x7389e),function(_0x1762fb,_0x3ef8de){const _0x39e3c4=_0x1189;typeof exports==_0x39e3c4(0x130)&&typeof module<'u'?_0x3ef8de(require(`@univerjs/core/facade`),require(`@univerjs/sheets-formula/facade`),require(`@univerjs/sheets-data-validation/facade`),require(`@univerjs/sheets/facade`),require(`@univerjs/engine-formula`),require(`@univerjs-pro/sheets-mcp`),require(`@univerjs/core`)):typeof define==_0x39e3c4(0x162)&&define[_0x39e3c4(0x13e)]?define([_0x39e3c4(0x14a),_0x39e3c4(0x155),'@univerjs/sheets-data-validation/facade','@univerjs/sheets/facade',_0x39e3c4(0x17e),_0x39e3c4(0x122),_0x39e3c4(0x137)],_0x3ef8de):(_0x1762fb=typeof globalThis<'u'?globalThis:_0x1762fb||self,_0x3ef8de(_0x1762fb[_0x39e3c4(0x159)],_0x1762fb['UniverSheetsFormulaFacade'],_0x1762fb[_0x39e3c4(0x12d)],_0x1762fb[_0x39e3c4(0x11a)],_0x1762fb[_0x39e3c4(0x157)],_0x1762fb[_0x39e3c4(0x131)],_0x1762fb[_0x39e3c4(0x160)]));}(this,function(_0x5b2bb4,_0x1fd16e,_0x3f5495,_0x2263ef,_0x3e9244,_0x74d9a9,_0x42e39e){const _0x53055d=_0x1189;var _0x52f445=class extends _0x5b2bb4['FUniver']{async[_0x53055d(0x128)](){const _0x19cf27=_0x53055d;return this['getActiveWorkbook']()[_0x19cf27(0x128)]();}};_0x5b2bb4[_0x53055d(0x178)][_0x53055d(0x14f)](_0x52f445);var _0x28720b=class extends _0x2263ef[_0x53055d(0x121)]{['_initialize'](){const _0x24348c=_0x53055d;Object[_0x24348c(0x165)](this,_0x24348c(0x170),{'get'(){const _0x4495fa=_0x24348c;return this[_0x4495fa(0x12f)][_0x4495fa(0x169)](_0x3e9244[_0x4495fa(0x17a)]);}});}[_0x53055d(0x135)](_0x790cab,_0x3028ab={}){const _0x23eb80=_0x53055d;let {caseSensitive:_0x29e666=!0x1,matchEntireCell:_0x9835bf=!0x1,specificRanges:_0x45f10e,specificTypes:_0x2e4ef2,searchMultipleTextsCondition:_0x16249a='OR'}=_0x3028ab,_0x2c3439=(Array['isArray'](_0x790cab)?_0x790cab:[_0x790cab])[_0x23eb80(0x14e)](_0x59c8bc=>_0x59c8bc[_0x23eb80(0x15d)]())[_0x23eb80(0x11c)](_0x56ba9d=>_0x56ba9d);if(_0x29e666||(_0x2c3439=_0x2c3439[_0x23eb80(0x14e)](_0x1546b4=>_0x1546b4['toLowerCase']())),_0x2c3439['length']===0x0)return[];let _0x1ddbf3={'caseSensitive':_0x29e666,'matchEntireCell':_0x9835bf,'searchMultipleTextsCondition':_0x16249a,'isSearchByRawValue':!_0x2e4ef2||_0x2e4ef2[_0x23eb80(0x16e)](_0x23eb80(0x115)),'isSearchByDisplayValue':!_0x2e4ef2||_0x2e4ef2['includes'](_0x23eb80(0x152)),'isSearchByFormula':!_0x2e4ef2||_0x2e4ef2['includes'](_0x23eb80(0x176))},_0xad382d=this[_0x23eb80(0x166)](),_0x29c3a3=[];if(_0x45f10e)for(let {sheetId:_0x286000,ranges:_0x1f39bb}of _0x45f10e){let _0x28b532=_0xad382d[_0x23eb80(0x177)](_0x286000);if(!_0x28b532){console[_0x23eb80(0x127)](_0x23eb80(0x161)+_0x286000+'\x20not\x20found.\x20Skipping.');continue;}let _0x2888c5=_0x28b532[_0x23eb80(0x119)]();if(_0x1f39bb&&_0x1f39bb['length']>0x0){for(let _0x5ba149 of _0x1f39bb)for(let _0x4de002=_0x5ba149[_0x23eb80(0x158)];_0x4de002<=_0x5ba149[_0x23eb80(0x16f)];_0x4de002++)for(let _0x59ac7b=_0x5ba149['startColumn'];_0x59ac7b<=_0x5ba149[_0x23eb80(0x14b)];_0x59ac7b++){let _0x28e98f=_0x2888c5[_0x23eb80(0x153)](_0x4de002,_0x59ac7b);if(!_0x28e98f)continue;let _0x79ecc=this['_cellMatchesSearch'](_0x28e98f,_0x2c3439,{..._0x1ddbf3,'worksheet':_0x28b532,'row':_0x4de002,'col':_0x59ac7b});_0x79ecc&&_0x29c3a3[_0x23eb80(0x16d)]({..._0x79ecc,'sheetId':_0x28b532[_0x23eb80(0x14c)]()});}}else _0x2888c5[_0x23eb80(0x132)]((_0x348f8c,_0x102088,_0x290b95)=>{const _0x2601f9=_0x23eb80;if(_0x290b95){let _0x4d43cf=this[_0x2601f9(0x13c)](_0x290b95,_0x2c3439,{..._0x1ddbf3,'worksheet':_0x28b532,'row':_0x348f8c,'col':_0x102088});_0x4d43cf&&_0x29c3a3[_0x2601f9(0x16d)]({..._0x4d43cf,'sheetId':_0x28b532[_0x2601f9(0x14c)]()});}});}else{let _0x58b509=_0xad382d[_0x23eb80(0x146)]();for(let _0x3a174d of _0x58b509)_0x3a174d[_0x23eb80(0x119)]()['forValue']((_0x2ab2a0,_0xa6a9f6,_0x335702)=>{const _0x5a781c=_0x23eb80;if(_0x335702){let _0x120bae=this[_0x5a781c(0x13c)](_0x335702,_0x2c3439,{..._0x1ddbf3,'worksheet':_0x3a174d,'row':_0x2ab2a0,'col':_0xa6a9f6});_0x120bae&&_0x29c3a3[_0x5a781c(0x16d)]({..._0x120bae,'sheetId':_0x3a174d[_0x5a781c(0x14c)]()});}});}return _0x29c3a3;}['_cellMatchesSearch'](_0x331422,_0x4ea34a,_0x2c5168){const _0x238103=_0x53055d;let {caseSensitive:_0x213ba7,matchEntireCell:_0x134977,searchMultipleTextsCondition:_0x8db051,isSearchByRawValue:_0x45a01d,isSearchByDisplayValue:_0x227daf,isSearchByFormula:_0x2a277b,worksheet:_0x541433,row:_0x19bf9a,col:_0x5c4e18}=_0x2c5168;if(_0x45a01d){var _0x51c3a4;let _0x5dd0eb=((_0x51c3a4=_0x331422['p'])==null||(_0x51c3a4=_0x51c3a4['body'])==null?void 0x0:_0x51c3a4[_0x238103(0x15a)])||_0x331422['v'];if(_0x5dd0eb){let _0xa879dd=_0x213ba7?_0x5dd0eb[_0x238103(0x134)]():_0x5dd0eb[_0x238103(0x134)]()[_0x238103(0x142)]();if(this[_0x238103(0x15c)](_0xa879dd,_0x4ea34a,_0x134977,_0x8db051))return{'row':_0x19bf9a,'col':_0x5c4e18,'reference':(0x0,_0x3e9244[_0x238103(0x16b)])(_0x541433[_0x238103(0x118)](),{'startRow':_0x19bf9a,'endRow':_0x19bf9a,'startColumn':_0x5c4e18,'endColumn':_0x5c4e18}),'cellData':{..._0x331422,'rawValue':_0x5dd0eb}};}}if(_0x2a277b&&(_0x331422['f']||_0x331422['si'])){let _0x9bc6c0=this['_formulaDataModel'][_0x238103(0x17c)](_0x19bf9a,_0x5c4e18,_0x541433['getSheetId'](),this[_0x238103(0x166)]()[_0x238103(0x140)]());if(_0x9bc6c0){let _0x54125a=_0x213ba7?_0x9bc6c0:_0x9bc6c0[_0x238103(0x142)]();if(this['_isMatch'](_0x54125a,_0x4ea34a,_0x134977,_0x8db051))return{'row':_0x19bf9a,'col':_0x5c4e18,'reference':(0x0,_0x3e9244[_0x238103(0x16b)])(_0x541433[_0x238103(0x118)](),{'startRow':_0x19bf9a,'endRow':_0x19bf9a,'startColumn':_0x5c4e18,'endColumn':_0x5c4e18}),'cellData':{..._0x331422,'formulaString':_0x9bc6c0}};}}if(_0x227daf){var _0x4847ce;let _0x593bd0=(_0x4847ce=_0x331422['p'])==null||(_0x4847ce=_0x4847ce[_0x238103(0x11e)])==null?void 0x0:_0x4847ce[_0x238103(0x15a)];if(!_0x593bd0){var _0x1f9996;_0x593bd0=(_0x1f9996=_0x541433[_0x238103(0x156)](_0x19bf9a,_0x5c4e18))==null?void 0x0:_0x1f9996['v'];}if(_0x593bd0){let _0xa98255=_0x213ba7?_0x593bd0[_0x238103(0x134)]():_0x593bd0['toString']()[_0x238103(0x142)]();if(this['_isMatch'](_0xa98255,_0x4ea34a,_0x134977,_0x8db051))return{'row':_0x19bf9a,'col':_0x5c4e18,'reference':(0x0,_0x3e9244[_0x238103(0x16b)])(_0x541433['getName'](),{'startRow':_0x19bf9a,'endRow':_0x19bf9a,'startColumn':_0x5c4e18,'endColumn':_0x5c4e18}),'cellData':{..._0x331422,'displayValue':_0x593bd0[_0x238103(0x134)]()}};}}return!0x1;}[_0x53055d(0x15c)](_0x1460b9,_0x1c239e,_0x584b7a,_0x17906b){const _0x500b93=_0x53055d;return _0x1c239e[_0x500b93(0x164)]>0x1&&_0x17906b===_0x500b93(0x173)?_0x1c239e['every'](_0x2d03cf=>_0x584b7a?_0x1460b9===_0x2d03cf:_0x1460b9['indexOf'](_0x2d03cf)>-0x1):_0x1c239e['some'](_0xf3f1e6=>_0x584b7a?_0x1460b9===_0xf3f1e6:_0x1460b9[_0x500b93(0x168)](_0xf3f1e6)>-0x1);}};_0x2263ef[_0x53055d(0x121)][_0x53055d(0x14f)](_0x28720b);var _0xc1106=class extends _0x2263ef[_0x53055d(0x121)]{async[_0x53055d(0x128)](){const _0x254658=_0x53055d;return{'formulaErrors':this['getAllFormulaError'](),'dataValidationErrors':await this[_0x254658(0x16c)]()};}};_0x2263ef['FWorkbook'][_0x53055d(0x14f)](_0xc1106);var _0xd591ca=class extends _0x2263ef[_0x53055d(0x125)]{async[_0x53055d(0x175)](){const _0x496b29=_0x53055d;let _0x4c45b3=this[_0x496b29(0x12f)][_0x496b29(0x169)](_0x74d9a9[_0x496b29(0x163)]),_0x413841=this[_0x496b29(0x117)](0x0,0x0,this['getMaxRows'](),this['getMaxColumns']())[_0x496b29(0x171)]();return await _0x4c45b3[_0x496b29(0x123)](_0x413841);}async['getFormulaUsagesAsA1'](){const _0x3a9638=_0x53055d;return(await this['getFormulaUsages']())[_0x3a9638(0x14e)](_0x74d9a9[_0x3a9638(0x11b)]);}[_0x53055d(0x12a)](_0x2da6b2){const _0x485a0b=_0x53055d;let _0x504bd4=this[_0x485a0b(0x12f)]['get'](_0x74d9a9['IStyleUsageAnalyzer']),_0x4927be=this['getRange'](0x0,0x0,this[_0x485a0b(0x116)](),this[_0x485a0b(0x148)]())['getCellDataGrid']();return _0x504bd4[_0x485a0b(0x13d)](_0x2da6b2),_0x504bd4[_0x485a0b(0x145)](_0x4927be,this[_0x485a0b(0x15e)],this[_0x485a0b(0x11d)]);}[_0x53055d(0x179)](_0x43f4f9){const _0x13372b=_0x53055d;return this[_0x13372b(0x12a)](_0x43f4f9)['map'](_0x74d9a9[_0x13372b(0x126)]);}[_0x53055d(0x150)](_0x3a34f2){const _0x1406f5=_0x53055d;let _0x62faa6=this[_0x1406f5(0x12f)]['get'](_0x74d9a9[_0x1406f5(0x12c)]);return _0x62faa6[_0x1406f5(0x13d)](_0x3a34f2),_0x62faa6['getAllSizeUsages'](this[_0x1406f5(0x11d)]);}[_0x53055d(0x141)](_0x98e03a){const _0x38b81b=_0x53055d;let _0x469bea=this[_0x38b81b(0x12f)][_0x38b81b(0x169)](_0x74d9a9['ISizeUsageAnalyzer']);_0x469bea[_0x38b81b(0x13d)](_0x98e03a);let _0x21a4bf=_0x469bea[_0x38b81b(0x174)](this[_0x38b81b(0x11d)]);return _0x469bea[_0x38b81b(0x151)](_0x21a4bf);}};_0x2263ef['FWorksheet'][_0x53055d(0x14f)](_0xd591ca);var _0x445401=class extends _0x2263ef[_0x53055d(0x13b)]{[_0x53055d(0x17d)](_0x37f286){const _0x1cda7f=_0x53055d;var _0x16f2f1;let _0x226ff5=(_0x16f2f1=_0x37f286==null?void 0x0:_0x37f286[_0x1cda7f(0x138)])==null?!0x0:_0x16f2f1,_0x24aa56=this[_0x1cda7f(0x117)](),_0x15e3d3=this[_0x1cda7f(0x11d)][_0x1cda7f(0x14d)](),_0x2dc460=this[_0x1cda7f(0x11d)][_0x1cda7f(0x129)](),_0x4c9a8d={},_0x359b48=0x0;for(let _0x278be7=_0x24aa56[_0x1cda7f(0x158)];_0x278be7<=_0x24aa56['endRow'];_0x278be7++){let _0x2f5b20=_0x15e3d3[_0x1cda7f(0x120)](_0x278be7),_0x235489=!_0x226ff5||this[_0x1cda7f(0x11d)][_0x1cda7f(0x167)](_0x278be7)?_0x2f5b20:0x0;_0x359b48+=_0x235489,_0x4c9a8d[_0x278be7]={'h':_0x235489};}let _0x36b321={},_0x18be27=0x0;for(let _0x4e7c7b=_0x24aa56[_0x1cda7f(0x149)];_0x4e7c7b<=_0x24aa56[_0x1cda7f(0x14b)];_0x4e7c7b++){let _0x4d5a33=_0x2dc460[_0x1cda7f(0x12e)](_0x4e7c7b),_0x25dfa8=!_0x226ff5||this['_worksheet'][_0x1cda7f(0x172)](_0x4e7c7b)?_0x4d5a33:0x0;_0x18be27+=_0x25dfa8,_0x36b321[_0x4e7c7b]={'w':_0x25dfa8};}return{'w':_0x18be27,'h':_0x359b48,'rowData':_0x4c9a8d,'columnData':_0x36b321};}async['getFormulaUsages'](){const _0x1ac837=_0x53055d;let _0x4b64e9=this[_0x1ac837(0x12f)][_0x1ac837(0x169)](_0x74d9a9[_0x1ac837(0x163)]),_0x2a371c=(({startRow:_0x4ee2d4,endRow:_0x3995d2,startColumn:_0x4d94c1,endColumn:_0x20e184})=>{const _0xfa78a=_0x1ac837;let _0x1f4de6=[];for(let _0x2378a7=_0x4ee2d4;_0x2378a7<=_0x3995d2;_0x2378a7++){let _0x5eeb6e=[];for(let _0x299fb7=_0x4d94c1;_0x299fb7<=_0x20e184;_0x299fb7++)_0x5eeb6e[_0xfa78a(0x16d)](this[_0xfa78a(0x11d)]['getCellRaw'](_0x2378a7,_0x299fb7));_0x1f4de6[_0xfa78a(0x16d)](_0x5eeb6e);}return _0x1f4de6;})({'startRow':0x0,'endRow':this['_worksheet'][_0x1ac837(0x116)](),'startColumn':0x0,'endColumn':this['_worksheet']['getMaxColumns']()}),_0x2f8d9b=await _0x4b64e9[_0x1ac837(0x123)](_0x2a371c),_0x346cdc=this[_0x1ac837(0x117)](),_0x50b156=[];for(let _0x5baafb=0x0;_0x5baafb<_0x2f8d9b[_0x1ac837(0x164)];_0x5baafb++){let _0x2d2340=_0x2f8d9b[_0x5baafb],_0x47b0c3=_0x2d2340['filledRanges'],_0x565d39=[];for(let _0x10d959=0x0;_0x10d959<_0x47b0c3[_0x1ac837(0x164)];_0x10d959++){let _0x46f893=_0x47b0c3[_0x10d959],_0x4a7c61=(0x0,_0x42e39e[_0x1ac837(0x17b)])(_0x46f893,_0x346cdc);_0x4a7c61&&_0x565d39[_0x1ac837(0x16d)](_0x4a7c61);}if(_0x565d39[_0x1ac837(0x164)]>0x0){if(_0x2d2340[_0x1ac837(0x13f)]=_0x565d39,!(_0x2d2340[_0x1ac837(0x136)][_0x1ac837(0x158)]>=_0x346cdc['startRow']&&_0x2d2340['firstOccurrence']['startRow']<=_0x346cdc[_0x1ac837(0x16f)]&&_0x2d2340[_0x1ac837(0x136)][_0x1ac837(0x149)]>=_0x346cdc[_0x1ac837(0x149)]&&_0x2d2340['firstOccurrence']['startColumn']<=_0x346cdc[_0x1ac837(0x14b)])){let _0x56961f=_0x565d39[0x0],_0x4bd46a=_0x56961f['startRow']-_0x2d2340[_0x1ac837(0x136)][_0x1ac837(0x158)],_0x3f2ef0=_0x56961f[_0x1ac837(0x149)]-_0x2d2340['firstOccurrence'][_0x1ac837(0x149)];_0x2d2340['formula']=await _0x4b64e9[_0x1ac837(0x143)](_0x2d2340[_0x1ac837(0x176)],_0x3f2ef0,_0x4bd46a),_0x2d2340[_0x1ac837(0x136)]={'startRow':_0x56961f[_0x1ac837(0x158)],'endRow':_0x56961f[_0x1ac837(0x158)],'startColumn':_0x56961f[_0x1ac837(0x149)],'endColumn':_0x56961f[_0x1ac837(0x149)]};}_0x50b156['push'](_0x2d2340);}}return _0x50b156;}async['getFormulaUsagesAsA1'](){const _0x167a67=_0x53055d;return(await this[_0x167a67(0x175)]())[_0x167a67(0x14e)](_0x74d9a9[_0x167a67(0x11b)]);}['getStyleUsages'](_0x5166ec){const _0x1a695f=_0x53055d;let _0x28b51f=this[_0x1a695f(0x12f)][_0x1a695f(0x169)](_0x74d9a9[_0x1a695f(0x12b)]),_0x569d5f=(({startRow:_0x50b62a,endRow:_0x1aa69b,startColumn:_0x556153,endColumn:_0x213dd9})=>{const _0x4da633=_0x1a695f;let _0x223cdf=[];for(let _0x1022b6=_0x50b62a;_0x1022b6<=_0x1aa69b;_0x1022b6++){let _0x2dcaf8=[];for(let _0x750258=_0x556153;_0x750258<=_0x213dd9;_0x750258++)_0x2dcaf8[_0x4da633(0x16d)](this[_0x4da633(0x11d)]['getCellRaw'](_0x1022b6,_0x750258));_0x223cdf[_0x4da633(0x16d)](_0x2dcaf8);}return _0x223cdf;})({'startRow':0x0,'endRow':this[_0x1a695f(0x11d)][_0x1a695f(0x116)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x1a695f(0x148)]()});_0x28b51f[_0x1a695f(0x13d)](_0x5166ec);let _0x1d421f=_0x28b51f['getAllStyleUsages'](_0x569d5f,this[_0x1a695f(0x15e)],this[_0x1a695f(0x11d)]),_0x1173b4=this[_0x1a695f(0x117)](),_0x4f21b6=[];for(let _0x128e27=0x0;_0x128e27<_0x1d421f[_0x1a695f(0x164)];_0x128e27++){let _0x1fde31=_0x1d421f[_0x128e27],_0x7e3e1b=_0x1fde31[_0x1a695f(0x13f)],_0x47c3c6=[];for(let _0x238d4b=0x0;_0x238d4b<_0x7e3e1b[_0x1a695f(0x164)];_0x238d4b++){let _0x34bf7a=_0x7e3e1b[_0x238d4b],_0x5cb0a9=(0x0,_0x42e39e['getIntersectRange'])(_0x34bf7a,_0x1173b4);_0x5cb0a9&&_0x47c3c6['push'](_0x5cb0a9);}_0x47c3c6[_0x1a695f(0x164)]>0x0&&(_0x1fde31[_0x1a695f(0x13f)]=_0x47c3c6,_0x4f21b6[_0x1a695f(0x16d)](_0x1fde31));}return _0x4f21b6;}[_0x53055d(0x179)](_0x514fdf){const _0x5d4531=_0x53055d;return this['getStyleUsages'](_0x514fdf)[_0x5d4531(0x14e)](_0x74d9a9['styleToA1']);}['getSizeUsages'](_0x3b4e1a){const _0x291309=_0x53055d;let _0x304afc=this[_0x291309(0x12f)][_0x291309(0x169)](_0x74d9a9[_0x291309(0x12c)]),_0x584740=this['getRange']();return _0x304afc[_0x291309(0x13d)](_0x3b4e1a),_0x304afc['getAllSizeUsages'](this['_worksheet'],_0x584740[_0x291309(0x158)],_0x584740['endRow'],_0x584740['startColumn'],_0x584740['endColumn']);}[_0x53055d(0x141)](_0x2185a8){const _0x29296d=_0x53055d;let _0x2dfe1c=this['getSizeUsages'](_0x2185a8);return this[_0x29296d(0x12f)][_0x29296d(0x169)](_0x74d9a9[_0x29296d(0x12c)])['toA1'](_0x2dfe1c);}['getRectArea'](_0x2ba764){let _0x1ced84=this['_collectRectAreaData'](_0x2ba764);return{'w':_0x1ced84['w'],'h':_0x1ced84['h']};}[_0x53055d(0x11f)](_0x459d37){const _0x67a1ec=_0x53055d;return this[_0x67a1ec(0x17d)](_0x459d37);}};_0x2263ef[_0x53055d(0x13b)][_0x53055d(0x14f)](_0x445401);}));
|