@univerjs-pro/sheets-mcp 0.25.1 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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/tools/conditional-format-tools.d.ts +17 -17
- package/lib/types/tools/data-validation-tools.d.ts +3 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +13 -13
|
@@ -11,19 +11,19 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
|
11
11
|
colorScale: "colorScale";
|
|
12
12
|
}>>;
|
|
13
13
|
min_type: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
formula: "formula";
|
|
15
|
+
percent: "percent";
|
|
14
16
|
max: "max";
|
|
15
17
|
min: "min";
|
|
16
|
-
percent: "percent";
|
|
17
|
-
formula: "formula";
|
|
18
18
|
num: "num";
|
|
19
19
|
percentile: "percentile";
|
|
20
20
|
}>>;
|
|
21
21
|
min_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
22
22
|
max_type: z.ZodOptional<z.ZodEnum<{
|
|
23
|
+
formula: "formula";
|
|
24
|
+
percent: "percent";
|
|
23
25
|
max: "max";
|
|
24
26
|
min: "min";
|
|
25
|
-
percent: "percent";
|
|
26
|
-
formula: "formula";
|
|
27
27
|
num: "num";
|
|
28
28
|
percentile: "percentile";
|
|
29
29
|
}>>;
|
|
@@ -38,10 +38,10 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
|
38
38
|
index: z.ZodNumber;
|
|
39
39
|
color: z.ZodString;
|
|
40
40
|
value_type: z.ZodEnum<{
|
|
41
|
+
formula: "formula";
|
|
42
|
+
percent: "percent";
|
|
41
43
|
max: "max";
|
|
42
44
|
min: "min";
|
|
43
|
-
percent: "percent";
|
|
44
|
-
formula: "formula";
|
|
45
45
|
num: "num";
|
|
46
46
|
percentile: "percentile";
|
|
47
47
|
}>;
|
|
@@ -51,20 +51,27 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
|
51
51
|
number: "number";
|
|
52
52
|
text: "text";
|
|
53
53
|
formula: "formula";
|
|
54
|
+
rank: "rank";
|
|
54
55
|
uniqueValues: "uniqueValues";
|
|
55
56
|
duplicateValues: "duplicateValues";
|
|
56
|
-
rank: "rank";
|
|
57
57
|
timePeriod: "timePeriod";
|
|
58
58
|
average: "average";
|
|
59
59
|
}>>;
|
|
60
60
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
61
|
-
endsWith: "endsWith";
|
|
62
|
-
between: "between";
|
|
63
|
-
equal: "equal";
|
|
64
61
|
greaterThan: "greaterThan";
|
|
65
62
|
greaterThanOrEqual: "greaterThanOrEqual";
|
|
66
63
|
lessThan: "lessThan";
|
|
67
64
|
lessThanOrEqual: "lessThanOrEqual";
|
|
65
|
+
today: "today";
|
|
66
|
+
tomorrow: "tomorrow";
|
|
67
|
+
yesterday: "yesterday";
|
|
68
|
+
thisWeek: "thisWeek";
|
|
69
|
+
lastWeek: "lastWeek";
|
|
70
|
+
thisMonth: "thisMonth";
|
|
71
|
+
lastMonth: "lastMonth";
|
|
72
|
+
endsWith: "endsWith";
|
|
73
|
+
between: "between";
|
|
74
|
+
equal: "equal";
|
|
68
75
|
notBetween: "notBetween";
|
|
69
76
|
notEqual: "notEqual";
|
|
70
77
|
beginsWith: "beginsWith";
|
|
@@ -74,15 +81,8 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
|
74
81
|
notContainsBlanks: "notContainsBlanks";
|
|
75
82
|
containsErrors: "containsErrors";
|
|
76
83
|
notContainsErrors: "notContainsErrors";
|
|
77
|
-
today: "today";
|
|
78
|
-
yesterday: "yesterday";
|
|
79
|
-
tomorrow: "tomorrow";
|
|
80
84
|
last7Days: "last7Days";
|
|
81
|
-
thisMonth: "thisMonth";
|
|
82
|
-
lastMonth: "lastMonth";
|
|
83
85
|
nextMonth: "nextMonth";
|
|
84
|
-
thisWeek: "thisWeek";
|
|
85
|
-
lastWeek: "lastWeek";
|
|
86
86
|
nextWeek: "nextWeek";
|
|
87
87
|
}>>;
|
|
88
88
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>>;
|
|
@@ -5,10 +5,10 @@ export declare const dataValidationRuleSchema: z.ZodObject<{
|
|
|
5
5
|
rule_id: z.ZodOptional<z.ZodString>;
|
|
6
6
|
range_a1: z.ZodString;
|
|
7
7
|
validation_type: z.ZodEnum<{
|
|
8
|
-
list: "list";
|
|
9
8
|
date: "date";
|
|
10
|
-
decimal: "decimal";
|
|
11
9
|
checkbox: "checkbox";
|
|
10
|
+
list: "list";
|
|
11
|
+
decimal: "decimal";
|
|
12
12
|
integer: "integer";
|
|
13
13
|
text_length: "text_length";
|
|
14
14
|
custom_formula: "custom_formula";
|
|
@@ -25,8 +25,8 @@ export declare const dataValidationRuleSchema: z.ZodObject<{
|
|
|
25
25
|
show_error_message: z.ZodOptional<z.ZodBoolean>;
|
|
26
26
|
error_style: z.ZodOptional<z.ZodEnum<{
|
|
27
27
|
information: "information";
|
|
28
|
-
stop: "stop";
|
|
29
28
|
warning: "warning";
|
|
29
|
+
stop: "stop";
|
|
30
30
|
}>>;
|
|
31
31
|
error_title: z.ZodOptional<z.ZodString>;
|
|
32
32
|
error_message: z.ZodOptional<z.ZodString>;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1fb5(){const _0x553d94=['getRowHeight','861yOAChK','getValue','_worksheet','getAllSizeUsages','getMaxColumns','IFormulaUsageAnalyzer','styleToA1','updateConfig','getWorkbook','UniverProSheetsMcp','UniverCoreFacade','getCellMatrix','body','getSizeUsages','ISizeUsageAnalyzer','_workbook','function','getFormulaUsages','UniverSheetsFormulaFacade','18540pqvLpY','@univerjs/sheets/facade','getCell','getSizeUsagesAsA1','7964DdRDHX','map','dataStream','amd','@univerjs/sheets-data-validation/facade','UniverEngineFormula','warn','searchCells','getSheetId','10545430GlBLwZ','_formulaDataModel','82256gpagaB','13692FwJdJH','object','defineProperty','AND','_isMatch','getFormulaUsagesAsA1','formulaToA1','getRowManager','toLowerCase','getAllFormulaUsages','42BjeXez','getAllDataValidationErrorAsync','_injector','getRectArea','startColumn','7096BnGnBq','_cellMatchesSearch','toString','152cfrwci','getCellDataGrid','3339BSWocM','getCellRaw','Sheet\x20with\x20ID\x20','13TkVwaU','getSheets','UniverSheetsFacade','get','FUniver','firstOccurrence','endRow','getMaxRows','getColumnManager','getLintErrors','getFormulaStringByCell','endColumn','indexOf','visibleOnly','getRowVisible','\x20not\x20found.\x20Skipping.','getSheetBySheetId','push','@univerjs/core','trim','FWorkbook','UniverSheetsDataValidationFacade','moveFormulaRefOffset','72cyyVyM','645565tJhgao','toA1','getAllStyleUsages','extend','includes','_initialize','getUnitId','filter','displayValue','forValue','_collectRectAreaData','getRange','getIntersectRange','getName','serializeRangeWithSheet','startRow','@univerjs-pro/sheets-mcp','FormulaDataModel','isArray','getStyleUsages','IStyleUsageAnalyzer','length','UniverCore','@univerjs/core/facade','FWorksheet','291836SbEoqh','filledRanges','getStyleUsagesAsA1'];_0x1fb5=function(){return _0x553d94;};return _0x1fb5();}function _0x385a(_0x6a2394,_0x53adc5){_0x6a2394=_0x6a2394-0x65;const _0x1fb5a6=_0x1fb5();let _0x385afd=_0x1fb5a6[_0x6a2394];return _0x385afd;}(function(_0x349242,_0x4d929f){const _0x47e2e6=_0x385a,_0x3c7fb0=_0x349242();while(!![]){try{const _0x48590d=-parseInt(_0x47e2e6(0xa6))/0x1*(parseInt(_0x47e2e6(0xa9))/0x2)+-parseInt(_0x47e2e6(0xa1))/0x3*(-parseInt(_0x47e2e6(0x70))/0x4)+-parseInt(_0x47e2e6(0xc6))/0x5*(parseInt(_0x47e2e6(0xc5))/0x6)+parseInt(_0x47e2e6(0x74))/0x7*(parseInt(_0x47e2e6(0x96))/0x8)+-parseInt(_0x47e2e6(0xab))/0x9*(-parseInt(_0x47e2e6(0x87))/0xa)+-parseInt(_0x47e2e6(0x8b))/0xb*(parseInt(_0x47e2e6(0x97))/0xc)+-parseInt(_0x47e2e6(0xae))/0xd*(-parseInt(_0x47e2e6(0x94))/0xe);if(_0x48590d===_0x4d929f)break;else _0x3c7fb0['push'](_0x3c7fb0['shift']());}catch(_0x21ea45){_0x3c7fb0['push'](_0x3c7fb0['shift']());}}}(_0x1fb5,0xc65a7),function(_0x497e4f,_0x2dd6bc){const _0x5ef635=_0x385a;typeof exports==_0x5ef635(0x98)&&typeof module<'u'?_0x2dd6bc(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==_0x5ef635(0x84)&&define[_0x5ef635(0x8e)]?define([_0x5ef635(0x6e),'@univerjs/sheets-formula/facade',_0x5ef635(0x8f),_0x5ef635(0x88),'@univerjs/engine-formula',_0x5ef635(0x67),_0x5ef635(0xc0)],_0x2dd6bc):(_0x497e4f=typeof globalThis<'u'?globalThis:_0x497e4f||self,_0x2dd6bc(_0x497e4f[_0x5ef635(0x7e)],_0x497e4f[_0x5ef635(0x86)],_0x497e4f[_0x5ef635(0xc3)],_0x497e4f[_0x5ef635(0xb0)],_0x497e4f[_0x5ef635(0x90)],_0x497e4f[_0x5ef635(0x7d)],_0x497e4f[_0x5ef635(0x6d)]));}(this,function(_0x57acb8,_0x2d9857,_0x36afe4,_0x2b0782,_0x3460fe,_0x14eb9c,_0x302d92){const _0x3792aa=_0x385a;var _0x1d5ca8=class extends _0x57acb8[_0x3792aa(0xb2)]{async['getLintErrors'](){const _0x9c9bb1=_0x3792aa;return this['getActiveWorkbook']()[_0x9c9bb1(0xb7)]();}};_0x57acb8[_0x3792aa(0xb2)][_0x3792aa(0xc9)](_0x1d5ca8);var _0x43ebed=class extends _0x2b0782['FWorkbook']{[_0x3792aa(0xcb)](){const _0x3dac56=_0x3792aa;Object[_0x3dac56(0x99)](this,_0x3dac56(0x95),{'get'(){const _0x38ebc6=_0x3dac56;return this[_0x38ebc6(0xa3)][_0x38ebc6(0xb1)](_0x3460fe[_0x38ebc6(0x68)]);}});}[_0x3792aa(0x92)](_0x361da0,_0x41ac7f={}){const _0x5ed127=_0x3792aa;let {caseSensitive:_0x294d84=!0x1,matchEntireCell:_0x2a9ff8=!0x1,specificRanges:_0x1ea377,specificTypes:_0x21bb60,searchMultipleTextsCondition:_0x33e2c8='OR'}=_0x41ac7f,_0x4d8760=(Array[_0x5ed127(0x69)](_0x361da0)?_0x361da0:[_0x361da0])[_0x5ed127(0x8c)](_0x2a164c=>_0x2a164c[_0x5ed127(0xc1)]())[_0x5ed127(0xcd)](_0x5b6eb3=>_0x5b6eb3);if(_0x294d84||(_0x4d8760=_0x4d8760[_0x5ed127(0x8c)](_0x409f84=>_0x409f84[_0x5ed127(0x9f)]())),_0x4d8760[_0x5ed127(0x6c)]===0x0)return[];let _0x5115cc={'caseSensitive':_0x294d84,'matchEntireCell':_0x2a9ff8,'searchMultipleTextsCondition':_0x33e2c8,'isSearchByRawValue':!_0x21bb60||_0x21bb60[_0x5ed127(0xca)]('rawValue'),'isSearchByDisplayValue':!_0x21bb60||_0x21bb60['includes'](_0x5ed127(0xce)),'isSearchByFormula':!_0x21bb60||_0x21bb60['includes']('formula')},_0x42154b=this['getWorkbook'](),_0x22c49a=[];if(_0x1ea377)for(let {sheetId:_0x1c8fa4,ranges:_0x2d1de5}of _0x1ea377){let _0x1fe82b=_0x42154b[_0x5ed127(0xbe)](_0x1c8fa4);if(!_0x1fe82b){console[_0x5ed127(0x91)](_0x5ed127(0xad)+_0x1c8fa4+_0x5ed127(0xbd));continue;}let _0x4ec02c=_0x1fe82b[_0x5ed127(0x7f)]();if(_0x2d1de5&&_0x2d1de5[_0x5ed127(0x6c)]>0x0){for(let _0x31bccd of _0x2d1de5)for(let _0x397650=_0x31bccd[_0x5ed127(0x66)];_0x397650<=_0x31bccd[_0x5ed127(0xb4)];_0x397650++)for(let _0x48c057=_0x31bccd['startColumn'];_0x48c057<=_0x31bccd[_0x5ed127(0xb9)];_0x48c057++){let _0x51c9d2=_0x4ec02c[_0x5ed127(0x75)](_0x397650,_0x48c057);if(!_0x51c9d2)continue;let _0x59b88e=this[_0x5ed127(0xa7)](_0x51c9d2,_0x4d8760,{..._0x5115cc,'worksheet':_0x1fe82b,'row':_0x397650,'col':_0x48c057});_0x59b88e&&_0x22c49a[_0x5ed127(0xbf)]({..._0x59b88e,'sheetId':_0x1fe82b['getSheetId']()});}}else _0x4ec02c[_0x5ed127(0xcf)]((_0x5541be,_0x52471d,_0x11dbd0)=>{const _0x432d1f=_0x5ed127;if(_0x11dbd0){let _0x5d6ba4=this[_0x432d1f(0xa7)](_0x11dbd0,_0x4d8760,{..._0x5115cc,'worksheet':_0x1fe82b,'row':_0x5541be,'col':_0x52471d});_0x5d6ba4&&_0x22c49a[_0x432d1f(0xbf)]({..._0x5d6ba4,'sheetId':_0x1fe82b[_0x432d1f(0x93)]()});}});}else{let _0x572b3f=_0x42154b[_0x5ed127(0xaf)]();for(let _0x1d0abc of _0x572b3f)_0x1d0abc[_0x5ed127(0x7f)]()[_0x5ed127(0xcf)]((_0x3181a9,_0x44cbd9,_0x2f9170)=>{const _0x5acd56=_0x5ed127;if(_0x2f9170){let _0x1fb426=this['_cellMatchesSearch'](_0x2f9170,_0x4d8760,{..._0x5115cc,'worksheet':_0x1d0abc,'row':_0x3181a9,'col':_0x44cbd9});_0x1fb426&&_0x22c49a[_0x5acd56(0xbf)]({..._0x1fb426,'sheetId':_0x1d0abc[_0x5acd56(0x93)]()});}});}return _0x22c49a;}[_0x3792aa(0xa7)](_0x5490e5,_0x2c4a13,_0x18670b){const _0x241adf=_0x3792aa;let {caseSensitive:_0x102bbc,matchEntireCell:_0x2aef37,searchMultipleTextsCondition:_0x32ed15,isSearchByRawValue:_0x522fa1,isSearchByDisplayValue:_0x3fc4cb,isSearchByFormula:_0x534fa7,worksheet:_0x5c0f72,row:_0x789286,col:_0x4726c9}=_0x18670b;if(_0x522fa1){var _0x1115f0;let _0x507bfa=((_0x1115f0=_0x5490e5['p'])==null||(_0x1115f0=_0x1115f0[_0x241adf(0x80)])==null?void 0x0:_0x1115f0[_0x241adf(0x8d)])||_0x5490e5['v'];if(_0x507bfa){let _0x25213c=_0x102bbc?_0x507bfa['toString']():_0x507bfa[_0x241adf(0xa8)]()[_0x241adf(0x9f)]();if(this[_0x241adf(0x9b)](_0x25213c,_0x2c4a13,_0x2aef37,_0x32ed15))return{'row':_0x789286,'col':_0x4726c9,'reference':(0x0,_0x3460fe['serializeRangeWithSheet'])(_0x5c0f72[_0x241adf(0xd3)](),{'startRow':_0x789286,'endRow':_0x789286,'startColumn':_0x4726c9,'endColumn':_0x4726c9}),'cellData':{..._0x5490e5,'rawValue':_0x507bfa}};}}if(_0x534fa7&&(_0x5490e5['f']||_0x5490e5['si'])){let _0x2b7e81=this['_formulaDataModel'][_0x241adf(0xb8)](_0x789286,_0x4726c9,_0x5c0f72[_0x241adf(0x93)](),this[_0x241adf(0x7c)]()[_0x241adf(0xcc)]());if(_0x2b7e81){let _0x43a7c6=_0x102bbc?_0x2b7e81:_0x2b7e81[_0x241adf(0x9f)]();if(this[_0x241adf(0x9b)](_0x43a7c6,_0x2c4a13,_0x2aef37,_0x32ed15))return{'row':_0x789286,'col':_0x4726c9,'reference':(0x0,_0x3460fe[_0x241adf(0x65)])(_0x5c0f72['getName'](),{'startRow':_0x789286,'endRow':_0x789286,'startColumn':_0x4726c9,'endColumn':_0x4726c9}),'cellData':{..._0x5490e5,'formulaString':_0x2b7e81}};}}if(_0x3fc4cb){var _0x2bcc63;let _0x2e875e=(_0x2bcc63=_0x5490e5['p'])==null||(_0x2bcc63=_0x2bcc63['body'])==null?void 0x0:_0x2bcc63[_0x241adf(0x8d)];if(!_0x2e875e){var _0xc6d2af;_0x2e875e=(_0xc6d2af=_0x5c0f72[_0x241adf(0x89)](_0x789286,_0x4726c9))==null?void 0x0:_0xc6d2af['v'];}if(_0x2e875e){let _0x5b8922=_0x102bbc?_0x2e875e[_0x241adf(0xa8)]():_0x2e875e[_0x241adf(0xa8)]()[_0x241adf(0x9f)]();if(this['_isMatch'](_0x5b8922,_0x2c4a13,_0x2aef37,_0x32ed15))return{'row':_0x789286,'col':_0x4726c9,'reference':(0x0,_0x3460fe[_0x241adf(0x65)])(_0x5c0f72[_0x241adf(0xd3)](),{'startRow':_0x789286,'endRow':_0x789286,'startColumn':_0x4726c9,'endColumn':_0x4726c9}),'cellData':{..._0x5490e5,'displayValue':_0x2e875e[_0x241adf(0xa8)]()}};}}return!0x1;}['_isMatch'](_0x36aa39,_0x34908a,_0x50a617,_0x319245){const _0x51a223=_0x3792aa;return _0x34908a[_0x51a223(0x6c)]>0x1&&_0x319245===_0x51a223(0x9a)?_0x34908a['every'](_0x126f08=>_0x50a617?_0x36aa39===_0x126f08:_0x36aa39[_0x51a223(0xba)](_0x126f08)>-0x1):_0x34908a['some'](_0x3670c8=>_0x50a617?_0x36aa39===_0x3670c8:_0x36aa39['indexOf'](_0x3670c8)>-0x1);}};_0x2b0782['FWorkbook'][_0x3792aa(0xc9)](_0x43ebed);var _0x1b1669=class extends _0x2b0782['FWorkbook']{async[_0x3792aa(0xb7)](){const _0xfd999d=_0x3792aa;return{'formulaErrors':this['getAllFormulaError'](),'dataValidationErrors':await this[_0xfd999d(0xa2)]()};}};_0x2b0782[_0x3792aa(0xc2)][_0x3792aa(0xc9)](_0x1b1669);var _0x2a8e76=class extends _0x2b0782[_0x3792aa(0x6f)]{async['getFormulaUsages'](){const _0x36924a=_0x3792aa;let _0x2a6b2a=this[_0x36924a(0xa3)][_0x36924a(0xb1)](_0x14eb9c[_0x36924a(0x79)]),_0x11387a=this[_0x36924a(0xd1)](0x0,0x0,this['getMaxRows'](),this[_0x36924a(0x78)]())[_0x36924a(0xaa)]();return await _0x2a6b2a[_0x36924a(0xa0)](_0x11387a);}async[_0x3792aa(0x9c)](){const _0x38eda6=_0x3792aa;return(await this[_0x38eda6(0x85)]())[_0x38eda6(0x8c)](_0x14eb9c['formulaToA1']);}[_0x3792aa(0x6a)](_0x1949fa){const _0x3fb33a=_0x3792aa;let _0x41a9e2=this[_0x3fb33a(0xa3)]['get'](_0x14eb9c[_0x3fb33a(0x6b)]),_0x556de8=this['getRange'](0x0,0x0,this[_0x3fb33a(0xb5)](),this[_0x3fb33a(0x78)]())[_0x3fb33a(0xaa)]();return _0x41a9e2['updateConfig'](_0x1949fa),_0x41a9e2['getAllStyleUsages'](_0x556de8,this[_0x3fb33a(0x83)],this[_0x3fb33a(0x76)]);}[_0x3792aa(0x72)](_0x170f2e){const _0x2e88e6=_0x3792aa;return this['getStyleUsages'](_0x170f2e)[_0x2e88e6(0x8c)](_0x14eb9c['styleToA1']);}[_0x3792aa(0x81)](_0x438e65){const _0x4ada98=_0x3792aa;let _0x4745cc=this[_0x4ada98(0xa3)][_0x4ada98(0xb1)](_0x14eb9c[_0x4ada98(0x82)]);return _0x4745cc[_0x4ada98(0x7b)](_0x438e65),_0x4745cc['getAllSizeUsages'](this['_worksheet']);}[_0x3792aa(0x8a)](_0x1f8891){const _0xda46a2=_0x3792aa;let _0x1a2a3d=this[_0xda46a2(0xa3)][_0xda46a2(0xb1)](_0x14eb9c[_0xda46a2(0x82)]);_0x1a2a3d[_0xda46a2(0x7b)](_0x1f8891);let _0x19672b=_0x1a2a3d[_0xda46a2(0x77)](this[_0xda46a2(0x76)]);return _0x1a2a3d[_0xda46a2(0xc7)](_0x19672b);}};_0x2b0782[_0x3792aa(0x6f)][_0x3792aa(0xc9)](_0x2a8e76);var _0x12d290=class extends _0x2b0782['FRange']{[_0x3792aa(0xd0)](_0x1685c5){const _0x4c252c=_0x3792aa;var _0x1c536a;let _0x585472=(_0x1c536a=_0x1685c5==null?void 0x0:_0x1685c5[_0x4c252c(0xbb)])==null?!0x0:_0x1c536a,_0x45f673=this[_0x4c252c(0xd1)](),_0x3ef1f1=this[_0x4c252c(0x76)][_0x4c252c(0x9e)](),_0x1c354b=this[_0x4c252c(0x76)][_0x4c252c(0xb6)](),_0x4f1bc2={},_0x6f54ae=0x0;for(let _0x30271d=_0x45f673[_0x4c252c(0x66)];_0x30271d<=_0x45f673[_0x4c252c(0xb4)];_0x30271d++){let _0x166e7a=_0x3ef1f1[_0x4c252c(0x73)](_0x30271d),_0x51a9a3=!_0x585472||this[_0x4c252c(0x76)][_0x4c252c(0xbc)](_0x30271d)?_0x166e7a:0x0;_0x6f54ae+=_0x51a9a3,_0x4f1bc2[_0x30271d]={'h':_0x51a9a3};}let _0x39199b={},_0x41935c=0x0;for(let _0x18dd71=_0x45f673['startColumn'];_0x18dd71<=_0x45f673[_0x4c252c(0xb9)];_0x18dd71++){let _0x2b31a6=_0x1c354b['getColumnWidth'](_0x18dd71),_0x40aa3e=!_0x585472||this[_0x4c252c(0x76)]['getColVisible'](_0x18dd71)?_0x2b31a6:0x0;_0x41935c+=_0x40aa3e,_0x39199b[_0x18dd71]={'w':_0x40aa3e};}return{'w':_0x41935c,'h':_0x6f54ae,'rowData':_0x4f1bc2,'columnData':_0x39199b};}async[_0x3792aa(0x85)](){const _0x14432e=_0x3792aa;let _0x24079d=this[_0x14432e(0xa3)]['get'](_0x14eb9c[_0x14432e(0x79)]),_0x454a39=(({startRow:_0x4674dd,endRow:_0x2ff54a,startColumn:_0x372b24,endColumn:_0xeb5b2})=>{const _0x4ca71f=_0x14432e;let _0x40555c=[];for(let _0x2874aa=_0x4674dd;_0x2874aa<=_0x2ff54a;_0x2874aa++){let _0x751d84=[];for(let _0x20080e=_0x372b24;_0x20080e<=_0xeb5b2;_0x20080e++)_0x751d84[_0x4ca71f(0xbf)](this[_0x4ca71f(0x76)][_0x4ca71f(0xac)](_0x2874aa,_0x20080e));_0x40555c[_0x4ca71f(0xbf)](_0x751d84);}return _0x40555c;})({'startRow':0x0,'endRow':this[_0x14432e(0x76)][_0x14432e(0xb5)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x14432e(0x78)]()}),_0x1bf2b8=await _0x24079d['getAllFormulaUsages'](_0x454a39),_0x3105c9=this['getRange'](),_0x2ed037=[];for(let _0x1fa59e=0x0;_0x1fa59e<_0x1bf2b8['length'];_0x1fa59e++){let _0x56af57=_0x1bf2b8[_0x1fa59e],_0x3deba4=_0x56af57[_0x14432e(0x71)],_0x5dfc98=[];for(let _0x481dd1=0x0;_0x481dd1<_0x3deba4[_0x14432e(0x6c)];_0x481dd1++){let _0x206e0a=_0x3deba4[_0x481dd1],_0x3edc51=(0x0,_0x302d92[_0x14432e(0xd2)])(_0x206e0a,_0x3105c9);_0x3edc51&&_0x5dfc98[_0x14432e(0xbf)](_0x3edc51);}if(_0x5dfc98[_0x14432e(0x6c)]>0x0){if(_0x56af57[_0x14432e(0x71)]=_0x5dfc98,!(_0x56af57[_0x14432e(0xb3)][_0x14432e(0x66)]>=_0x3105c9[_0x14432e(0x66)]&&_0x56af57[_0x14432e(0xb3)][_0x14432e(0x66)]<=_0x3105c9['endRow']&&_0x56af57['firstOccurrence'][_0x14432e(0xa5)]>=_0x3105c9[_0x14432e(0xa5)]&&_0x56af57[_0x14432e(0xb3)][_0x14432e(0xa5)]<=_0x3105c9['endColumn'])){let _0x3c77c2=_0x5dfc98[0x0],_0x104d6d=_0x3c77c2[_0x14432e(0x66)]-_0x56af57[_0x14432e(0xb3)][_0x14432e(0x66)],_0x5f581f=_0x3c77c2['startColumn']-_0x56af57['firstOccurrence'][_0x14432e(0xa5)];_0x56af57['formula']=await _0x24079d[_0x14432e(0xc4)](_0x56af57['formula'],_0x5f581f,_0x104d6d),_0x56af57[_0x14432e(0xb3)]={'startRow':_0x3c77c2[_0x14432e(0x66)],'endRow':_0x3c77c2[_0x14432e(0x66)],'startColumn':_0x3c77c2[_0x14432e(0xa5)],'endColumn':_0x3c77c2[_0x14432e(0xa5)]};}_0x2ed037[_0x14432e(0xbf)](_0x56af57);}}return _0x2ed037;}async[_0x3792aa(0x9c)](){const _0x275c93=_0x3792aa;return(await this[_0x275c93(0x85)]())[_0x275c93(0x8c)](_0x14eb9c[_0x275c93(0x9d)]);}[_0x3792aa(0x6a)](_0x1222dc){const _0x4ae51b=_0x3792aa;let _0x61fa22=this[_0x4ae51b(0xa3)][_0x4ae51b(0xb1)](_0x14eb9c[_0x4ae51b(0x6b)]),_0x38f9d2=(({startRow:_0x106b29,endRow:_0x26c0cd,startColumn:_0x524147,endColumn:_0x5eb20})=>{const _0x4d9aad=_0x4ae51b;let _0x5f2dfe=[];for(let _0x346403=_0x106b29;_0x346403<=_0x26c0cd;_0x346403++){let _0x56883d=[];for(let _0x4a7be3=_0x524147;_0x4a7be3<=_0x5eb20;_0x4a7be3++)_0x56883d[_0x4d9aad(0xbf)](this[_0x4d9aad(0x76)][_0x4d9aad(0xac)](_0x346403,_0x4a7be3));_0x5f2dfe['push'](_0x56883d);}return _0x5f2dfe;})({'startRow':0x0,'endRow':this['_worksheet'][_0x4ae51b(0xb5)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x4ae51b(0x78)]()});_0x61fa22[_0x4ae51b(0x7b)](_0x1222dc);let _0xf1755d=_0x61fa22[_0x4ae51b(0xc8)](_0x38f9d2,this[_0x4ae51b(0x83)],this['_worksheet']),_0x2768b2=this[_0x4ae51b(0xd1)](),_0x5e8235=[];for(let _0x4d8884=0x0;_0x4d8884<_0xf1755d[_0x4ae51b(0x6c)];_0x4d8884++){let _0x1c67e2=_0xf1755d[_0x4d8884],_0x4f8a0a=_0x1c67e2[_0x4ae51b(0x71)],_0x378eda=[];for(let _0x555f5f=0x0;_0x555f5f<_0x4f8a0a[_0x4ae51b(0x6c)];_0x555f5f++){let _0x574814=_0x4f8a0a[_0x555f5f],_0x5a3b97=(0x0,_0x302d92['getIntersectRange'])(_0x574814,_0x2768b2);_0x5a3b97&&_0x378eda[_0x4ae51b(0xbf)](_0x5a3b97);}_0x378eda[_0x4ae51b(0x6c)]>0x0&&(_0x1c67e2[_0x4ae51b(0x71)]=_0x378eda,_0x5e8235['push'](_0x1c67e2));}return _0x5e8235;}['getStyleUsagesAsA1'](_0x1da401){const _0x286895=_0x3792aa;return this[_0x286895(0x6a)](_0x1da401)[_0x286895(0x8c)](_0x14eb9c[_0x286895(0x7a)]);}[_0x3792aa(0x81)](_0x2cc071){const _0x1aef19=_0x3792aa;let _0x7ac0a9=this['_injector'][_0x1aef19(0xb1)](_0x14eb9c[_0x1aef19(0x82)]),_0x13a991=this[_0x1aef19(0xd1)]();return _0x7ac0a9[_0x1aef19(0x7b)](_0x2cc071),_0x7ac0a9[_0x1aef19(0x77)](this[_0x1aef19(0x76)],_0x13a991['startRow'],_0x13a991[_0x1aef19(0xb4)],_0x13a991['startColumn'],_0x13a991[_0x1aef19(0xb9)]);}[_0x3792aa(0x8a)](_0x80872a){const _0x20a94f=_0x3792aa;let _0x36b3d7=this[_0x20a94f(0x81)](_0x80872a);return this['_injector'][_0x20a94f(0xb1)](_0x14eb9c[_0x20a94f(0x82)])['toA1'](_0x36b3d7);}[_0x3792aa(0xa4)](_0xf940ab){let _0x1089ee=this['_collectRectAreaData'](_0xf940ab);return{'w':_0x1089ee['w'],'h':_0x1089ee['h']};}['getRectAreaData'](_0x33761a){const _0x8ec6e3=_0x3792aa;return this[_0x8ec6e3(0xd0)](_0x33761a);}};_0x2b0782['FRange'][_0x3792aa(0xc9)](_0x12d290);}));
|
|
1
|
+
function _0x991d(_0xf62ff,_0x50b785){_0xf62ff=_0xf62ff-0x7d;const _0x1049d3=_0x1049();let _0x991d05=_0x1049d3[_0xf62ff];return _0x991d05;}function _0x1049(){const _0x5a63e4=['getCellRaw','\x20not\x20found.\x20Skipping.','getAllFormulaUsages','toString','getColumnManager','10305FEDCNP','getAllStyleUsages','13648VqONJH','_worksheet','11363dvHhPo','serializeRangeWithSheet','548FhOMiu','object','function','FRange','_isMatch','@univerjs/core','includes','@univerjs/sheets-data-validation/facade','getFormulaUsages','map','forValue','getActiveWorkbook','getMaxColumns','getMaxRows','19255adoCUw','_initialize','FormulaDataModel','AND','trim','UniverSheetsFormulaFacade','endRow','UniverCoreFacade','getIntersectRange','_collectRectAreaData','every','moveFormulaRefOffset','getStyleUsagesAsA1','firstOccurrence','_formulaDataModel','_injector','getStyleUsages','getName','ISizeUsageAnalyzer','body','_workbook','getFormulaStringByCell','@univerjs/core/facade','56TliEIk','formula','542081haaNPC','790EoTNyu','updateConfig','@univerjs-pro/sheets-mcp','defineProperty','getAllSizeUsages','UniverSheetsFacade','indexOf','displayValue','@univerjs/sheets-formula/facade','dataStream','getRectAreaData','filter','getAllFormulaError','some','_cellMatchesSearch','Sheet\x20with\x20ID\x20','formulaToA1','searchCells','getRowManager','getCellDataGrid','getColVisible','getLintErrors','getSheetId','getCellMatrix','endColumn','length','startRow','extend','438078YjsGqN','getSizeUsages','get','UniverProSheetsMcp','styleToA1','FUniver','toLowerCase','FWorkbook','getSizeUsagesAsA1','FWorksheet','774Whipos','getUnitId','491328mKbvCN','warn','getRowVisible','toA1','70ORhaVK','push','isArray','getFormulaUsagesAsA1','getAllDataValidationErrorAsync','getRowHeight','getRectArea','@univerjs/engine-formula','startColumn','IStyleUsageAnalyzer','filledRanges','IFormulaUsageAnalyzer','getSheetBySheetId','getRange'];_0x1049=function(){return _0x5a63e4;};return _0x1049();}(function(_0x5c78ef,_0x147751){const _0x189138=_0x991d,_0x53de97=_0x5c78ef();while(!![]){try{const _0x2b13e4=parseInt(_0x189138(0xbf))/0x1+parseInt(_0x189138(0xbd))/0x2*(parseInt(_0x189138(0x92))/0x3)+-parseInt(_0x189138(0x98))/0x4*(-parseInt(_0x189138(0xa6))/0x5)+-parseInt(_0x189138(0xdc))/0x6*(parseInt(_0x189138(0x7f))/0x7)+-parseInt(_0x189138(0x94))/0x8*(parseInt(_0x189138(0xe6))/0x9)+parseInt(_0x189138(0xc0))/0xa*(parseInt(_0x189138(0x96))/0xb)+parseInt(_0x189138(0xe8))/0xc;if(_0x2b13e4===_0x147751)break;else _0x53de97['push'](_0x53de97['shift']());}catch(_0x24a099){_0x53de97['push'](_0x53de97['shift']());}}}(_0x1049,0x647a1),function(_0x5a115f,_0x3a0564){const _0x5c5efc=_0x991d;typeof exports==_0x5c5efc(0x99)&&typeof module<'u'?_0x3a0564(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==_0x5c5efc(0x9a)&&define['amd']?define([_0x5c5efc(0xbc),_0x5c5efc(0xc8),_0x5c5efc(0x9f),'@univerjs/sheets/facade',_0x5c5efc(0x86),_0x5c5efc(0xc2),_0x5c5efc(0x9d)],_0x3a0564):(_0x5a115f=typeof globalThis<'u'?globalThis:_0x5a115f||self,_0x3a0564(_0x5a115f[_0x5c5efc(0xad)],_0x5a115f[_0x5c5efc(0xab)],_0x5a115f['UniverSheetsDataValidationFacade'],_0x5a115f[_0x5c5efc(0xc5)],_0x5a115f['UniverEngineFormula'],_0x5a115f[_0x5c5efc(0xdf)],_0x5a115f['UniverCore']));}(this,function(_0x15e9d5,_0x487c8f,_0x3b28f0,_0x59b587,_0x49abbf,_0x1e115a,_0x152252){const _0x5005f5=_0x991d;var _0x255e7a=class extends _0x15e9d5[_0x5005f5(0xe1)]{async['getLintErrors'](){const _0x2363f3=_0x5005f5;return this[_0x2363f3(0xa3)]()[_0x2363f3(0xd5)]();}};_0x15e9d5[_0x5005f5(0xe1)][_0x5005f5(0xdb)](_0x255e7a);var _0xbd3841=class extends _0x59b587[_0x5005f5(0xe3)]{[_0x5005f5(0xa7)](){const _0x39347b=_0x5005f5;Object[_0x39347b(0xc3)](this,_0x39347b(0xb4),{'get'(){const _0x1437e4=_0x39347b;return this['_injector'][_0x1437e4(0xde)](_0x49abbf[_0x1437e4(0xa8)]);}});}[_0x5005f5(0xd1)](_0x2945bf,_0x251fca={}){const _0x1b8984=_0x5005f5;let {caseSensitive:_0x5b1683=!0x1,matchEntireCell:_0x2d7dd4=!0x1,specificRanges:_0x21b5bc,specificTypes:_0x551b6c,searchMultipleTextsCondition:_0x20614e='OR'}=_0x251fca,_0x499748=(Array[_0x1b8984(0x81)](_0x2945bf)?_0x2945bf:[_0x2945bf])[_0x1b8984(0xa1)](_0x3fe0b0=>_0x3fe0b0[_0x1b8984(0xaa)]())[_0x1b8984(0xcb)](_0x4a5190=>_0x4a5190);if(_0x5b1683||(_0x499748=_0x499748[_0x1b8984(0xa1)](_0x36fa37=>_0x36fa37['toLowerCase']())),_0x499748[_0x1b8984(0xd9)]===0x0)return[];let _0x14a933={'caseSensitive':_0x5b1683,'matchEntireCell':_0x2d7dd4,'searchMultipleTextsCondition':_0x20614e,'isSearchByRawValue':!_0x551b6c||_0x551b6c[_0x1b8984(0x9e)]('rawValue'),'isSearchByDisplayValue':!_0x551b6c||_0x551b6c[_0x1b8984(0x9e)](_0x1b8984(0xc7)),'isSearchByFormula':!_0x551b6c||_0x551b6c[_0x1b8984(0x9e)](_0x1b8984(0xbe))},_0x2880a8=this['getWorkbook'](),_0x7492f4=[];if(_0x21b5bc)for(let {sheetId:_0x422c2b,ranges:_0x4b485c}of _0x21b5bc){let _0x2796b5=_0x2880a8[_0x1b8984(0x8b)](_0x422c2b);if(!_0x2796b5){console[_0x1b8984(0xe9)](_0x1b8984(0xcf)+_0x422c2b+_0x1b8984(0x8e));continue;}let _0x695f5a=_0x2796b5['getCellMatrix']();if(_0x4b485c&&_0x4b485c[_0x1b8984(0xd9)]>0x0){for(let _0x5a860c of _0x4b485c)for(let _0x4b0c9a=_0x5a860c['startRow'];_0x4b0c9a<=_0x5a860c['endRow'];_0x4b0c9a++)for(let _0x46d274=_0x5a860c[_0x1b8984(0x87)];_0x46d274<=_0x5a860c[_0x1b8984(0xd8)];_0x46d274++){let _0x36d1ad=_0x695f5a['getValue'](_0x4b0c9a,_0x46d274);if(!_0x36d1ad)continue;let _0x52531a=this['_cellMatchesSearch'](_0x36d1ad,_0x499748,{..._0x14a933,'worksheet':_0x2796b5,'row':_0x4b0c9a,'col':_0x46d274});_0x52531a&&_0x7492f4[_0x1b8984(0x80)]({..._0x52531a,'sheetId':_0x2796b5['getSheetId']()});}}else _0x695f5a[_0x1b8984(0xa2)]((_0x2985da,_0xea1757,_0xae48e)=>{const _0x190766=_0x1b8984;if(_0xae48e){let _0x19369c=this[_0x190766(0xce)](_0xae48e,_0x499748,{..._0x14a933,'worksheet':_0x2796b5,'row':_0x2985da,'col':_0xea1757});_0x19369c&&_0x7492f4[_0x190766(0x80)]({..._0x19369c,'sheetId':_0x2796b5[_0x190766(0xd6)]()});}});}else{let _0x4c7dfd=_0x2880a8['getSheets']();for(let _0x5ab824 of _0x4c7dfd)_0x5ab824[_0x1b8984(0xd7)]()[_0x1b8984(0xa2)]((_0x305029,_0x14db13,_0x4192f6)=>{const _0x26a908=_0x1b8984;if(_0x4192f6){let _0x1c8deb=this[_0x26a908(0xce)](_0x4192f6,_0x499748,{..._0x14a933,'worksheet':_0x5ab824,'row':_0x305029,'col':_0x14db13});_0x1c8deb&&_0x7492f4[_0x26a908(0x80)]({..._0x1c8deb,'sheetId':_0x5ab824['getSheetId']()});}});}return _0x7492f4;}[_0x5005f5(0xce)](_0x9ef4b8,_0x2a0d71,_0x193a9e){const _0x188fd4=_0x5005f5;let {caseSensitive:_0x347189,matchEntireCell:_0x5df992,searchMultipleTextsCondition:_0x510d92,isSearchByRawValue:_0xdd1761,isSearchByDisplayValue:_0x492f56,isSearchByFormula:_0x34f281,worksheet:_0x423bb6,row:_0x2b7910,col:_0x10effd}=_0x193a9e;if(_0xdd1761){var _0x5bfa83;let _0x4ddb46=((_0x5bfa83=_0x9ef4b8['p'])==null||(_0x5bfa83=_0x5bfa83[_0x188fd4(0xb9)])==null?void 0x0:_0x5bfa83['dataStream'])||_0x9ef4b8['v'];if(_0x4ddb46){let _0x2aa001=_0x347189?_0x4ddb46[_0x188fd4(0x90)]():_0x4ddb46['toString']()['toLowerCase']();if(this['_isMatch'](_0x2aa001,_0x2a0d71,_0x5df992,_0x510d92))return{'row':_0x2b7910,'col':_0x10effd,'reference':(0x0,_0x49abbf[_0x188fd4(0x97)])(_0x423bb6['getName'](),{'startRow':_0x2b7910,'endRow':_0x2b7910,'startColumn':_0x10effd,'endColumn':_0x10effd}),'cellData':{..._0x9ef4b8,'rawValue':_0x4ddb46}};}}if(_0x34f281&&(_0x9ef4b8['f']||_0x9ef4b8['si'])){let _0x531c6c=this[_0x188fd4(0xb4)][_0x188fd4(0xbb)](_0x2b7910,_0x10effd,_0x423bb6[_0x188fd4(0xd6)](),this['getWorkbook']()[_0x188fd4(0xe7)]());if(_0x531c6c){let _0x4b7f05=_0x347189?_0x531c6c:_0x531c6c[_0x188fd4(0xe2)]();if(this[_0x188fd4(0x9c)](_0x4b7f05,_0x2a0d71,_0x5df992,_0x510d92))return{'row':_0x2b7910,'col':_0x10effd,'reference':(0x0,_0x49abbf['serializeRangeWithSheet'])(_0x423bb6[_0x188fd4(0xb7)](),{'startRow':_0x2b7910,'endRow':_0x2b7910,'startColumn':_0x10effd,'endColumn':_0x10effd}),'cellData':{..._0x9ef4b8,'formulaString':_0x531c6c}};}}if(_0x492f56){var _0x52722a;let _0x18e564=(_0x52722a=_0x9ef4b8['p'])==null||(_0x52722a=_0x52722a[_0x188fd4(0xb9)])==null?void 0x0:_0x52722a[_0x188fd4(0xc9)];if(!_0x18e564){var _0x3f906a;_0x18e564=(_0x3f906a=_0x423bb6['getCell'](_0x2b7910,_0x10effd))==null?void 0x0:_0x3f906a['v'];}if(_0x18e564){let _0x53703e=_0x347189?_0x18e564['toString']():_0x18e564[_0x188fd4(0x90)]()[_0x188fd4(0xe2)]();if(this[_0x188fd4(0x9c)](_0x53703e,_0x2a0d71,_0x5df992,_0x510d92))return{'row':_0x2b7910,'col':_0x10effd,'reference':(0x0,_0x49abbf[_0x188fd4(0x97)])(_0x423bb6[_0x188fd4(0xb7)](),{'startRow':_0x2b7910,'endRow':_0x2b7910,'startColumn':_0x10effd,'endColumn':_0x10effd}),'cellData':{..._0x9ef4b8,'displayValue':_0x18e564['toString']()}};}}return!0x1;}[_0x5005f5(0x9c)](_0x3a13a0,_0x4dda55,_0x3a7e8f,_0x372310){const _0x33c25a=_0x5005f5;return _0x4dda55[_0x33c25a(0xd9)]>0x1&&_0x372310===_0x33c25a(0xa9)?_0x4dda55[_0x33c25a(0xb0)](_0x4dfb8a=>_0x3a7e8f?_0x3a13a0===_0x4dfb8a:_0x3a13a0[_0x33c25a(0xc6)](_0x4dfb8a)>-0x1):_0x4dda55[_0x33c25a(0xcd)](_0x538ec2=>_0x3a7e8f?_0x3a13a0===_0x538ec2:_0x3a13a0[_0x33c25a(0xc6)](_0x538ec2)>-0x1);}};_0x59b587[_0x5005f5(0xe3)][_0x5005f5(0xdb)](_0xbd3841);var _0x2f7c02=class extends _0x59b587[_0x5005f5(0xe3)]{async['getLintErrors'](){const _0x119ac2=_0x5005f5;return{'formulaErrors':this[_0x119ac2(0xcc)](),'dataValidationErrors':await this[_0x119ac2(0x83)]()};}};_0x59b587[_0x5005f5(0xe3)]['extend'](_0x2f7c02);var _0x354cb6=class extends _0x59b587[_0x5005f5(0xe5)]{async[_0x5005f5(0xa0)](){const _0x307871=_0x5005f5;let _0x221eee=this[_0x307871(0xb5)][_0x307871(0xde)](_0x1e115a[_0x307871(0x8a)]),_0x553f37=this[_0x307871(0x8c)](0x0,0x0,this['getMaxRows'](),this[_0x307871(0xa4)]())['getCellDataGrid']();return await _0x221eee['getAllFormulaUsages'](_0x553f37);}async[_0x5005f5(0x82)](){const _0x4af395=_0x5005f5;return(await this['getFormulaUsages']())[_0x4af395(0xa1)](_0x1e115a[_0x4af395(0xd0)]);}['getStyleUsages'](_0xaaf954){const _0x44f1d4=_0x5005f5;let _0x4530d4=this[_0x44f1d4(0xb5)][_0x44f1d4(0xde)](_0x1e115a[_0x44f1d4(0x88)]),_0x59909a=this['getRange'](0x0,0x0,this[_0x44f1d4(0xa5)](),this[_0x44f1d4(0xa4)]())[_0x44f1d4(0xd3)]();return _0x4530d4[_0x44f1d4(0xc1)](_0xaaf954),_0x4530d4[_0x44f1d4(0x93)](_0x59909a,this[_0x44f1d4(0xba)],this[_0x44f1d4(0x95)]);}[_0x5005f5(0xb2)](_0x554a84){const _0xbced28=_0x5005f5;return this[_0xbced28(0xb6)](_0x554a84)[_0xbced28(0xa1)](_0x1e115a[_0xbced28(0xe0)]);}['getSizeUsages'](_0x46cbb5){const _0xcc6c47=_0x5005f5;let _0x5540d8=this[_0xcc6c47(0xb5)][_0xcc6c47(0xde)](_0x1e115a['ISizeUsageAnalyzer']);return _0x5540d8['updateConfig'](_0x46cbb5),_0x5540d8['getAllSizeUsages'](this[_0xcc6c47(0x95)]);}[_0x5005f5(0xe4)](_0x5c3050){const _0x517f61=_0x5005f5;let _0x54d98f=this['_injector'][_0x517f61(0xde)](_0x1e115a[_0x517f61(0xb8)]);_0x54d98f['updateConfig'](_0x5c3050);let _0x20f05e=_0x54d98f[_0x517f61(0xc4)](this[_0x517f61(0x95)]);return _0x54d98f[_0x517f61(0x7e)](_0x20f05e);}};_0x59b587[_0x5005f5(0xe5)]['extend'](_0x354cb6);var _0x5333e9=class extends _0x59b587['FRange']{[_0x5005f5(0xaf)](_0x197449){const _0x55a6e8=_0x5005f5;var _0x3535be;let _0x414ef6=(_0x3535be=_0x197449==null?void 0x0:_0x197449['visibleOnly'])==null?!0x0:_0x3535be,_0xcd3bdd=this[_0x55a6e8(0x8c)](),_0x1ada8a=this['_worksheet'][_0x55a6e8(0xd2)](),_0x5ea7c4=this[_0x55a6e8(0x95)][_0x55a6e8(0x91)](),_0x46ddf4={},_0x379793=0x0;for(let _0x3936d6=_0xcd3bdd[_0x55a6e8(0xda)];_0x3936d6<=_0xcd3bdd[_0x55a6e8(0xac)];_0x3936d6++){let _0x3d2060=_0x1ada8a[_0x55a6e8(0x84)](_0x3936d6),_0x3d2aa8=!_0x414ef6||this[_0x55a6e8(0x95)][_0x55a6e8(0x7d)](_0x3936d6)?_0x3d2060:0x0;_0x379793+=_0x3d2aa8,_0x46ddf4[_0x3936d6]={'h':_0x3d2aa8};}let _0x357779={},_0x565435=0x0;for(let _0x2faa7d=_0xcd3bdd[_0x55a6e8(0x87)];_0x2faa7d<=_0xcd3bdd[_0x55a6e8(0xd8)];_0x2faa7d++){let _0x5f2a8a=_0x5ea7c4['getColumnWidth'](_0x2faa7d),_0x3d9c6f=!_0x414ef6||this[_0x55a6e8(0x95)][_0x55a6e8(0xd4)](_0x2faa7d)?_0x5f2a8a:0x0;_0x565435+=_0x3d9c6f,_0x357779[_0x2faa7d]={'w':_0x3d9c6f};}return{'w':_0x565435,'h':_0x379793,'rowData':_0x46ddf4,'columnData':_0x357779};}async[_0x5005f5(0xa0)](){const _0x4ecd38=_0x5005f5;let _0x498e1f=this[_0x4ecd38(0xb5)][_0x4ecd38(0xde)](_0x1e115a[_0x4ecd38(0x8a)]),_0x443a80=(({startRow:_0x60161e,endRow:_0x53ac0d,startColumn:_0x488062,endColumn:_0x550cb4})=>{const _0x3f4549=_0x4ecd38;let _0x3296cf=[];for(let _0x5b853f=_0x60161e;_0x5b853f<=_0x53ac0d;_0x5b853f++){let _0x12a259=[];for(let _0xdad830=_0x488062;_0xdad830<=_0x550cb4;_0xdad830++)_0x12a259[_0x3f4549(0x80)](this[_0x3f4549(0x95)]['getCellRaw'](_0x5b853f,_0xdad830));_0x3296cf[_0x3f4549(0x80)](_0x12a259);}return _0x3296cf;})({'startRow':0x0,'endRow':this[_0x4ecd38(0x95)][_0x4ecd38(0xa5)](),'startColumn':0x0,'endColumn':this[_0x4ecd38(0x95)][_0x4ecd38(0xa4)]()}),_0x310b35=await _0x498e1f[_0x4ecd38(0x8f)](_0x443a80),_0x60285=this['getRange'](),_0x56aefc=[];for(let _0x40268b=0x0;_0x40268b<_0x310b35['length'];_0x40268b++){let _0xc87397=_0x310b35[_0x40268b],_0x524e20=_0xc87397[_0x4ecd38(0x89)],_0x2650ab=[];for(let _0x3ddb6c=0x0;_0x3ddb6c<_0x524e20[_0x4ecd38(0xd9)];_0x3ddb6c++){let _0x48270e=_0x524e20[_0x3ddb6c],_0x4a3420=(0x0,_0x152252[_0x4ecd38(0xae)])(_0x48270e,_0x60285);_0x4a3420&&_0x2650ab['push'](_0x4a3420);}if(_0x2650ab['length']>0x0){if(_0xc87397['filledRanges']=_0x2650ab,!(_0xc87397['firstOccurrence'][_0x4ecd38(0xda)]>=_0x60285['startRow']&&_0xc87397['firstOccurrence'][_0x4ecd38(0xda)]<=_0x60285[_0x4ecd38(0xac)]&&_0xc87397[_0x4ecd38(0xb3)][_0x4ecd38(0x87)]>=_0x60285['startColumn']&&_0xc87397[_0x4ecd38(0xb3)][_0x4ecd38(0x87)]<=_0x60285[_0x4ecd38(0xd8)])){let _0x4ba7c7=_0x2650ab[0x0],_0xf6364a=_0x4ba7c7['startRow']-_0xc87397['firstOccurrence'][_0x4ecd38(0xda)],_0x1c4738=_0x4ba7c7['startColumn']-_0xc87397[_0x4ecd38(0xb3)][_0x4ecd38(0x87)];_0xc87397[_0x4ecd38(0xbe)]=await _0x498e1f[_0x4ecd38(0xb1)](_0xc87397[_0x4ecd38(0xbe)],_0x1c4738,_0xf6364a),_0xc87397[_0x4ecd38(0xb3)]={'startRow':_0x4ba7c7[_0x4ecd38(0xda)],'endRow':_0x4ba7c7[_0x4ecd38(0xda)],'startColumn':_0x4ba7c7[_0x4ecd38(0x87)],'endColumn':_0x4ba7c7[_0x4ecd38(0x87)]};}_0x56aefc[_0x4ecd38(0x80)](_0xc87397);}}return _0x56aefc;}async['getFormulaUsagesAsA1'](){const _0x33cd91=_0x5005f5;return(await this[_0x33cd91(0xa0)]())[_0x33cd91(0xa1)](_0x1e115a['formulaToA1']);}[_0x5005f5(0xb6)](_0x1295c7){const _0x591b29=_0x5005f5;let _0x473af2=this[_0x591b29(0xb5)]['get'](_0x1e115a[_0x591b29(0x88)]),_0x13696b=(({startRow:_0x4e7d45,endRow:_0x5715e1,startColumn:_0x4132e4,endColumn:_0x21a422})=>{const _0xb6eccf=_0x591b29;let _0x1d9e9f=[];for(let _0x5040d4=_0x4e7d45;_0x5040d4<=_0x5715e1;_0x5040d4++){let _0x3a3888=[];for(let _0xf5c51b=_0x4132e4;_0xf5c51b<=_0x21a422;_0xf5c51b++)_0x3a3888['push'](this[_0xb6eccf(0x95)][_0xb6eccf(0x8d)](_0x5040d4,_0xf5c51b));_0x1d9e9f[_0xb6eccf(0x80)](_0x3a3888);}return _0x1d9e9f;})({'startRow':0x0,'endRow':this[_0x591b29(0x95)][_0x591b29(0xa5)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x591b29(0xa4)]()});_0x473af2[_0x591b29(0xc1)](_0x1295c7);let _0x5512da=_0x473af2['getAllStyleUsages'](_0x13696b,this[_0x591b29(0xba)],this[_0x591b29(0x95)]),_0x5270cc=this[_0x591b29(0x8c)](),_0x185627=[];for(let _0xb74eca=0x0;_0xb74eca<_0x5512da[_0x591b29(0xd9)];_0xb74eca++){let _0x2dee10=_0x5512da[_0xb74eca],_0x5f22a4=_0x2dee10['filledRanges'],_0x402d3c=[];for(let _0x491465=0x0;_0x491465<_0x5f22a4[_0x591b29(0xd9)];_0x491465++){let _0x595861=_0x5f22a4[_0x491465],_0x1b04a0=(0x0,_0x152252['getIntersectRange'])(_0x595861,_0x5270cc);_0x1b04a0&&_0x402d3c[_0x591b29(0x80)](_0x1b04a0);}_0x402d3c[_0x591b29(0xd9)]>0x0&&(_0x2dee10[_0x591b29(0x89)]=_0x402d3c,_0x185627[_0x591b29(0x80)](_0x2dee10));}return _0x185627;}[_0x5005f5(0xb2)](_0x545d05){const _0x5bc849=_0x5005f5;return this[_0x5bc849(0xb6)](_0x545d05)[_0x5bc849(0xa1)](_0x1e115a[_0x5bc849(0xe0)]);}[_0x5005f5(0xdd)](_0x11c09b){const _0x1fa964=_0x5005f5;let _0x4413fe=this[_0x1fa964(0xb5)][_0x1fa964(0xde)](_0x1e115a[_0x1fa964(0xb8)]),_0x1bac25=this[_0x1fa964(0x8c)]();return _0x4413fe[_0x1fa964(0xc1)](_0x11c09b),_0x4413fe[_0x1fa964(0xc4)](this[_0x1fa964(0x95)],_0x1bac25['startRow'],_0x1bac25['endRow'],_0x1bac25['startColumn'],_0x1bac25['endColumn']);}[_0x5005f5(0xe4)](_0x423415){const _0x4dc4c6=_0x5005f5;let _0xf52638=this[_0x4dc4c6(0xdd)](_0x423415);return this['_injector'][_0x4dc4c6(0xde)](_0x1e115a[_0x4dc4c6(0xb8)])[_0x4dc4c6(0x7e)](_0xf52638);}[_0x5005f5(0x85)](_0x291d11){const _0xf0dc=_0x5005f5;let _0x4e0f71=this[_0xf0dc(0xaf)](_0x291d11);return{'w':_0x4e0f71['w'],'h':_0x4e0f71['h']};}[_0x5005f5(0xca)](_0x7aefcc){const _0xeea2f2=_0x5005f5;return this[_0xeea2f2(0xaf)](_0x7aefcc);}};_0x59b587[_0x5005f5(0x9b)][_0x5005f5(0xdb)](_0x5333e9);}));
|