@univerjs-pro/sheets-mcp 0.15.5 → 0.16.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 +73 -0
- package/lib/types/facade/f-workbook-custom-search.d.ts +99 -0
- package/lib/types/facade/f-workbook.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x437333=_0x1bca;(function(_0x3ae26b,_0x3ac811){const _0x5b5ef7=_0x1bca,_0x2ac416=_0x3ae26b();while(!![]){try{const _0x106d7c=-parseInt(_0x5b5ef7(0x1c7))/0x1+-parseInt(_0x5b5ef7(0x1cc))/0x2+parseInt(_0x5b5ef7(0x1dc))/0x3+parseInt(_0x5b5ef7(0x1d4))/0x4+-parseInt(_0x5b5ef7(0x1da))/0x5*(parseInt(_0x5b5ef7(0x1b6))/0x6)+parseInt(_0x5b5ef7(0x1d0))/0x7+-parseInt(_0x5b5ef7(0x1cd))/0x8*(parseInt(_0x5b5ef7(0x1cf))/0x9);if(_0x106d7c===_0x3ac811)break;else _0x2ac416['push'](_0x2ac416['shift']());}catch(_0x33dd04){_0x2ac416['push'](_0x2ac416['shift']());}}}(_0x592d,0x60443));const U=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const f=require('@univerjs/sheets/facade'),g=require('@univerjs-pro/sheets-mcp'),m=require('@univerjs/core');function _0x592d(){const _0x223324=['startRow','getMaxRows','endRow','getStyleUsagesAsA1','getFormulaUsagesAsA1','getMaxColumns','_injector','formulaToA1','getRange','144702rRhVqM','getFormulaUsages','toA1','endColumn','FWorksheet','startColumn','ISizeUsageAnalyzer','getAllStyleUsages','moveFormulaRefOffset','push','getSizeUsages','FRange','map','_worksheet','getAllSizeUsages','getAllFormulaError','_workbook','266514Hbdfza','firstOccurrence','FUniver','length','IFormulaUsageAnalyzer','842524HNlIYp','22504TBDpIy','getCellRaw','2763xGXzUz','5261431JbaINe','getLintErrors','styleToA1','formula','2401036JfmEgi','getSizeUsagesAsA1','extend','getStyleUsages','getAllDataValidationErrorAsync','getIntersectRange','5cToKRV','getCellDataGrid','1853697JjqCoy','getActiveWorkbook','IStyleUsageAnalyzer','getAllFormulaUsages','updateConfig','get','filledRanges','FWorkbook'];_0x592d=function(){return _0x223324;};return _0x592d();}class y extends U['FUniver']{async[_0x437333(0x1d1)](){const _0x3a9d2e=_0x437333;return this[_0x3a9d2e(0x1dd)]()[_0x3a9d2e(0x1d1)]();}}U[_0x437333(0x1c9)][_0x437333(0x1d6)](y);function _0x1bca(_0x7be65,_0x59e64a){_0x7be65=_0x7be65-0x1b4;const _0x592d19=_0x592d();let _0x1bca11=_0x592d19[_0x7be65];return _0x1bca11;}class C extends f[_0x437333(0x1e3)]{async[_0x437333(0x1d1)](){const _0x2a9bb2=_0x437333,_0x4a4730=this[_0x2a9bb2(0x1c5)](),_0x55ded1=await this[_0x2a9bb2(0x1d8)]();return{'formulaErrors':_0x4a4730,'dataValidationErrors':_0x55ded1};}}f[_0x437333(0x1e3)][_0x437333(0x1d6)](C);class z extends f[_0x437333(0x1ba)]{async[_0x437333(0x1b7)](){const _0x537120=_0x437333,_0x3afa9c=this['_injector']['get'](g[_0x537120(0x1cb)]),_0x2c8e20=this[_0x537120(0x1b5)](0x0,0x0,this['getMaxRows'](),this[_0x537120(0x1e9)]())[_0x537120(0x1db)]();return await _0x3afa9c[_0x537120(0x1df)](_0x2c8e20);}async[_0x437333(0x1e8)](){const _0x105274=_0x437333;return(await this[_0x105274(0x1b7)]())['map'](g[_0x105274(0x1b4)]);}['getStyleUsages'](_0x4c9904){const _0x54a49d=_0x437333,_0x5144b1=this[_0x54a49d(0x1ea)][_0x54a49d(0x1e1)](g[_0x54a49d(0x1de)]),_0x3149cb=this['getRange'](0x0,0x0,this[_0x54a49d(0x1e5)](),this[_0x54a49d(0x1e9)]())[_0x54a49d(0x1db)]();return _0x5144b1[_0x54a49d(0x1e0)](_0x4c9904),_0x5144b1['getAllStyleUsages'](_0x3149cb,this['_workbook'],this['_worksheet']);}[_0x437333(0x1e7)](_0x2652c8){const _0x111688=_0x437333;return this[_0x111688(0x1d7)](_0x2652c8)[_0x111688(0x1c2)](g[_0x111688(0x1d2)]);}['getSizeUsages'](_0x44fb90){const _0x3d809b=_0x437333,_0x1a152a=this[_0x3d809b(0x1ea)][_0x3d809b(0x1e1)](g[_0x3d809b(0x1bc)]);return _0x1a152a['updateConfig'](_0x44fb90),_0x1a152a['getAllSizeUsages'](this[_0x3d809b(0x1c3)]);}[_0x437333(0x1d5)](_0x5f4dbe){const _0x4bbb80=_0x437333,_0x134b1d=this[_0x4bbb80(0x1ea)][_0x4bbb80(0x1e1)](g[_0x4bbb80(0x1bc)]);_0x134b1d['updateConfig'](_0x5f4dbe);const _0x4da45d=_0x134b1d[_0x4bbb80(0x1c4)](this[_0x4bbb80(0x1c3)]);return _0x134b1d['toA1'](_0x4da45d);}}f['FWorksheet'][_0x437333(0x1d6)](z);class S extends f[_0x437333(0x1c1)]{async['getFormulaUsages'](){const _0x17413a=_0x437333,_0xaa1e51=this[_0x17413a(0x1ea)][_0x17413a(0x1e1)](g['IFormulaUsageAnalyzer']),_0x26a211=(({startRow:_0x3ba8d2,endRow:_0x22aefe,startColumn:_0x337915,endColumn:_0x5841f6})=>{const _0x140142=_0x17413a,_0x249dcc=[];for(let _0x49cac9=_0x3ba8d2;_0x49cac9<=_0x22aefe;_0x49cac9++){const _0x39626f=[];for(let _0x4c65bd=_0x337915;_0x4c65bd<=_0x5841f6;_0x4c65bd++)_0x39626f[_0x140142(0x1bf)](this[_0x140142(0x1c3)][_0x140142(0x1ce)](_0x49cac9,_0x4c65bd));_0x249dcc[_0x140142(0x1bf)](_0x39626f);}return _0x249dcc;})({'startRow':0x0,'endRow':this[_0x17413a(0x1c3)][_0x17413a(0x1e5)](),'startColumn':0x0,'endColumn':this[_0x17413a(0x1c3)]['getMaxColumns']()}),_0x432c7a=await _0xaa1e51[_0x17413a(0x1df)](_0x26a211),_0x471117=this[_0x17413a(0x1b5)](),_0x27aeff=[];for(let _0x22bb7d=0x0;_0x22bb7d<_0x432c7a[_0x17413a(0x1ca)];_0x22bb7d++){const _0x12d9d2=_0x432c7a[_0x22bb7d],_0x59d3c1=_0x12d9d2[_0x17413a(0x1e2)],_0x403578=[];for(let _0x3a4eda=0x0;_0x3a4eda<_0x59d3c1[_0x17413a(0x1ca)];_0x3a4eda++){const _0x41be73=_0x59d3c1[_0x3a4eda],_0x206a05=m[_0x17413a(0x1d9)](_0x41be73,_0x471117);_0x206a05&&_0x403578[_0x17413a(0x1bf)](_0x206a05);}if(_0x403578[_0x17413a(0x1ca)]>0x0){if(_0x12d9d2[_0x17413a(0x1e2)]=_0x403578,!(_0x12d9d2[_0x17413a(0x1c8)][_0x17413a(0x1e4)]>=_0x471117[_0x17413a(0x1e4)]&&_0x12d9d2[_0x17413a(0x1c8)][_0x17413a(0x1e4)]<=_0x471117[_0x17413a(0x1e6)]&&_0x12d9d2[_0x17413a(0x1c8)]['startColumn']>=_0x471117[_0x17413a(0x1bb)]&&_0x12d9d2[_0x17413a(0x1c8)][_0x17413a(0x1bb)]<=_0x471117[_0x17413a(0x1b9)])){const _0x3379ed=_0x403578[0x0],_0x3bc271=_0x3379ed[_0x17413a(0x1e4)]-_0x12d9d2[_0x17413a(0x1c8)][_0x17413a(0x1e4)],_0x40d627=_0x3379ed[_0x17413a(0x1bb)]-_0x12d9d2[_0x17413a(0x1c8)][_0x17413a(0x1bb)];_0x12d9d2[_0x17413a(0x1d3)]=await _0xaa1e51[_0x17413a(0x1be)](_0x12d9d2[_0x17413a(0x1d3)],_0x40d627,_0x3bc271),_0x12d9d2[_0x17413a(0x1c8)]={'startRow':_0x3379ed[_0x17413a(0x1e4)],'endRow':_0x3379ed[_0x17413a(0x1e4)],'startColumn':_0x3379ed[_0x17413a(0x1bb)],'endColumn':_0x3379ed['startColumn']};}_0x27aeff[_0x17413a(0x1bf)](_0x12d9d2);}}return _0x27aeff;}async[_0x437333(0x1e8)](){const _0x54dbeb=_0x437333;return(await this[_0x54dbeb(0x1b7)]())['map'](g[_0x54dbeb(0x1b4)]);}[_0x437333(0x1d7)](_0x8e3b14){const _0xa78525=_0x437333,_0x53eaae=this[_0xa78525(0x1ea)][_0xa78525(0x1e1)](g[_0xa78525(0x1de)]),_0x361bb7=(({startRow:_0x176238,endRow:_0x367361,startColumn:_0x194954,endColumn:_0x11091f})=>{const _0x5c380d=_0xa78525,_0x25df44=[];for(let _0x3c2cf8=_0x176238;_0x3c2cf8<=_0x367361;_0x3c2cf8++){const _0x4f9b2b=[];for(let _0x55671d=_0x194954;_0x55671d<=_0x11091f;_0x55671d++)_0x4f9b2b[_0x5c380d(0x1bf)](this[_0x5c380d(0x1c3)][_0x5c380d(0x1ce)](_0x3c2cf8,_0x55671d));_0x25df44['push'](_0x4f9b2b);}return _0x25df44;})({'startRow':0x0,'endRow':this['_worksheet'][_0xa78525(0x1e5)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0xa78525(0x1e9)]()});_0x53eaae[_0xa78525(0x1e0)](_0x8e3b14);const _0x1bc3e9=_0x53eaae[_0xa78525(0x1bd)](_0x361bb7,this[_0xa78525(0x1c6)],this[_0xa78525(0x1c3)]),_0x64d1ec=this[_0xa78525(0x1b5)](),_0x35ef31=[];for(let _0x262f9f=0x0;_0x262f9f<_0x1bc3e9[_0xa78525(0x1ca)];_0x262f9f++){const _0x5cd2d5=_0x1bc3e9[_0x262f9f],_0x1b59f2=_0x5cd2d5['filledRanges'],_0x507dc8=[];for(let _0x1354bf=0x0;_0x1354bf<_0x1b59f2[_0xa78525(0x1ca)];_0x1354bf++){const _0x21ecb0=_0x1b59f2[_0x1354bf],_0x3372d9=m['getIntersectRange'](_0x21ecb0,_0x64d1ec);_0x3372d9&&_0x507dc8[_0xa78525(0x1bf)](_0x3372d9);}_0x507dc8[_0xa78525(0x1ca)]>0x0&&(_0x5cd2d5[_0xa78525(0x1e2)]=_0x507dc8,_0x35ef31[_0xa78525(0x1bf)](_0x5cd2d5));}return _0x35ef31;}[_0x437333(0x1e7)](_0x2eb1d6){const _0x30fd5f=_0x437333;return this[_0x30fd5f(0x1d7)](_0x2eb1d6)[_0x30fd5f(0x1c2)](g[_0x30fd5f(0x1d2)]);}['getSizeUsages'](_0x2d4e18){const _0x4b98f6=_0x437333,_0x8a75fd=this[_0x4b98f6(0x1ea)][_0x4b98f6(0x1e1)](g[_0x4b98f6(0x1bc)]),_0x3e4af9=this['getRange']();return _0x8a75fd[_0x4b98f6(0x1e0)](_0x2d4e18),_0x8a75fd[_0x4b98f6(0x1c4)](this[_0x4b98f6(0x1c3)],_0x3e4af9[_0x4b98f6(0x1e4)],_0x3e4af9[_0x4b98f6(0x1e6)],_0x3e4af9['startColumn'],_0x3e4af9[_0x4b98f6(0x1b9)]);}[_0x437333(0x1d5)](_0x8db940){const _0x74c6f9=_0x437333,_0x38fd2a=this[_0x74c6f9(0x1c0)](_0x8db940);return this[_0x74c6f9(0x1ea)][_0x74c6f9(0x1e1)](g[_0x74c6f9(0x1bc)])[_0x74c6f9(0x1b8)](_0x38fd2a);}}f[_0x437333(0x1c1)][_0x437333(0x1d6)](S);
|
|
1
|
+
'use strict';const _0x3e7dd4=_0x52ec;(function(_0x137be8,_0x19e972){const _0x2ca31a=_0x52ec,_0x139297=_0x137be8();while(!![]){try{const _0x1b6951=parseInt(_0x2ca31a(0xb6))/0x1+-parseInt(_0x2ca31a(0xc6))/0x2+parseInt(_0x2ca31a(0xc8))/0x3+parseInt(_0x2ca31a(0xdd))/0x4*(parseInt(_0x2ca31a(0xe0))/0x5)+-parseInt(_0x2ca31a(0xab))/0x6+-parseInt(_0x2ca31a(0xa7))/0x7*(-parseInt(_0x2ca31a(0xe3))/0x8)+-parseInt(_0x2ca31a(0xb1))/0x9*(parseInt(_0x2ca31a(0x9c))/0xa);if(_0x1b6951===_0x19e972)break;else _0x139297['push'](_0x139297['shift']());}catch(_0x201ac1){_0x139297['push'](_0x139297['shift']());}}}(_0x22a3,0xc2184));function _0x22a3(){const _0x53a976=['1122380PPgbFk','AND','formulaToA1','FormulaDataModel','ISizeUsageAnalyzer','IStyleUsageAnalyzer','getIntersectRange','visibleOnly','getAllStyleUsages','formula','toA1','forValue','length','\x20not\x20found.\x20Skipping.','searchCells','defineProperty','2076406SfooWx','getSheetId','3267903hmMvLd','_workbook','FRange','_collectRectAreaData','get','getRectAreaData','getStyleUsages','_initialize','some','body','getName','getFormulaUsages','getColumnManager','FWorkbook','toLowerCase','getRange','serializeRangeWithSheet','firstOccurrence','getActiveWorkbook','endRow','toString','260760umROEM','getCellDataGrid','map','90KKVqBx','getRectArea','isArray','8pYhZgR','getValue','getAllSizeUsages','startRow','getSheetBySheetId','_worksheet','filter','filledRanges','getAllDataValidationErrorAsync','indexOf','getSizeUsages','FWorksheet','getFormulaStringByCell','getAllFormulaUsages','getFormulaUsagesAsA1','updateConfig','53510BqfqAV','every','FUniver','push','endColumn','styleToA1','getRowManager','getRowVisible','extend','_injector','getMaxColumns','7075229akUpzd','_isMatch','getLintErrors','getStyleUsagesAsA1','510720LSEOHD','IFormulaUsageAnalyzer','getWorkbook','getMaxRows','getSizeUsagesAsA1','dataStream','4167CNelOt','_formulaDataModel','includes','startColumn','_cellMatchesSearch'];_0x22a3=function(){return _0x53a976;};return _0x22a3();}const _=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const C=require('@univerjs/sheets/facade'),M=require('@univerjs/engine-formula'),m=require('@univerjs-pro/sheets-mcp'),U=require('@univerjs/core');class p extends _[_0x3e7dd4(0x9e)]{async['getLintErrors'](){const _0x37c56e=_0x3e7dd4;return this[_0x37c56e(0xda)]()[_0x37c56e(0xa9)]();}}function _0x52ec(_0x3ccf75,_0x9ca18c){_0x3ccf75=_0x3ccf75-0x9b;const _0x22a3ec=_0x22a3();let _0x52ec31=_0x22a3ec[_0x3ccf75];return _0x52ec31;}_[_0x3e7dd4(0x9e)]['extend'](p);class F extends C[_0x3e7dd4(0xd5)]{[_0x3e7dd4(0xcf)](){const _0x509c62=_0x3e7dd4;Object[_0x509c62(0xc5)](this,'_formulaDataModel',{'get'(){const _0x8a483=_0x509c62;return this[_0x8a483(0xa5)][_0x8a483(0xcc)](M[_0x8a483(0xb9)]);}});}[_0x3e7dd4(0xc4)](_0x4ee244,_0x1c5328={}){const _0x1e5b02=_0x3e7dd4,{caseSensitive:_0x2552b7=!0x1,matchEntireCell:_0x4e03b3=!0x1,specificRanges:_0x20eec5,specificTypes:_0xdd27fa,searchMultipleTextsCondition:_0x425e46='OR'}=_0x1c5328;let _0x5e6bc4=(Array[_0x1e5b02(0xe2)](_0x4ee244)?_0x4ee244:[_0x4ee244])[_0x1e5b02(0xdf)](_0x4e2625=>_0x4e2625['trim']())[_0x1e5b02(0xe9)](_0x4ee466=>_0x4ee466);if(_0x2552b7||(_0x5e6bc4=_0x5e6bc4['map'](_0x5ae75c=>_0x5ae75c[_0x1e5b02(0xd6)]())),_0x5e6bc4[_0x1e5b02(0xc2)]===0x0)return[];const _0x4300da={'caseSensitive':_0x2552b7,'matchEntireCell':_0x4e03b3,'searchMultipleTextsCondition':_0x425e46,'isSearchByRawValue':!_0xdd27fa||_0xdd27fa[_0x1e5b02(0xb3)]('rawValue'),'isSearchByDisplayValue':!_0xdd27fa||_0xdd27fa[_0x1e5b02(0xb3)]('displayValue'),'isSearchByFormula':!_0xdd27fa||_0xdd27fa[_0x1e5b02(0xb3)](_0x1e5b02(0xbf))},_0x16a7c7=this[_0x1e5b02(0xad)](),_0x586ddc=[];if(_0x20eec5)for(const {sheetId:_0x20fc77,ranges:_0x1d2067}of _0x20eec5){const _0x54ff74=_0x16a7c7[_0x1e5b02(0xe7)](_0x20fc77);if(!_0x54ff74){console['warn']('Sheet\x20with\x20ID\x20'+_0x20fc77+_0x1e5b02(0xc3));continue;}const _0x42b649=_0x54ff74['getCellMatrix']();if(_0x1d2067&&_0x1d2067[_0x1e5b02(0xc2)]>0x0){for(const _0xaff808 of _0x1d2067)for(let _0x4e3cff=_0xaff808[_0x1e5b02(0xe6)];_0x4e3cff<=_0xaff808[_0x1e5b02(0xdb)];_0x4e3cff++)for(let _0x23a18c=_0xaff808[_0x1e5b02(0xb4)];_0x23a18c<=_0xaff808['endColumn'];_0x23a18c++){const _0x195f84=_0x42b649[_0x1e5b02(0xe4)](_0x4e3cff,_0x23a18c);if(!_0x195f84)continue;const _0x3f21db=this[_0x1e5b02(0xb5)](_0x195f84,_0x5e6bc4,{..._0x4300da,'worksheet':_0x54ff74,'row':_0x4e3cff,'col':_0x23a18c});_0x3f21db&&_0x586ddc[_0x1e5b02(0x9f)]({..._0x3f21db,'sheetId':_0x54ff74['getSheetId']()});}}else _0x42b649[_0x1e5b02(0xc1)]((_0x15068e,_0x1824d6,_0x29f18a)=>{const _0x1412ff=_0x1e5b02;if(_0x29f18a){const _0x1726af=this[_0x1412ff(0xb5)](_0x29f18a,_0x5e6bc4,{..._0x4300da,'worksheet':_0x54ff74,'row':_0x15068e,'col':_0x1824d6});_0x1726af&&_0x586ddc[_0x1412ff(0x9f)]({..._0x1726af,'sheetId':_0x54ff74[_0x1412ff(0xc7)]()});}});}else{const _0x5da500=_0x16a7c7['getSheets']();for(const _0x296e04 of _0x5da500)_0x296e04['getCellMatrix']()[_0x1e5b02(0xc1)]((_0x1cb469,_0x458ab2,_0x407683)=>{const _0x20c531=_0x1e5b02;if(_0x407683){const _0x4e1e98=this['_cellMatchesSearch'](_0x407683,_0x5e6bc4,{..._0x4300da,'worksheet':_0x296e04,'row':_0x1cb469,'col':_0x458ab2});_0x4e1e98&&_0x586ddc[_0x20c531(0x9f)]({..._0x4e1e98,'sheetId':_0x296e04[_0x20c531(0xc7)]()});}});}return _0x586ddc;}['_cellMatchesSearch'](_0x538bd1,_0x171684,_0x107deb){const _0x4dd217=_0x3e7dd4;var _0x37130a,_0x4f1a43,_0x2f39ff,_0x400d93,_0x59910a;const {caseSensitive:_0x54acd7,matchEntireCell:_0x2bde2c,searchMultipleTextsCondition:_0x2f10eb,isSearchByRawValue:_0xc32bc9,isSearchByDisplayValue:_0x4829ab,isSearchByFormula:_0xe17c2b,worksheet:_0x2d370f,row:_0x28059a,col:_0x1eaf03}=_0x107deb;if(_0xc32bc9){const _0x3c4586=((_0x4f1a43=(_0x37130a=_0x538bd1['p'])==null?void 0x0:_0x37130a['body'])==null?void 0x0:_0x4f1a43[_0x4dd217(0xb0)])||_0x538bd1['v'];if(_0x3c4586){const _0x561d21=_0x54acd7?_0x3c4586[_0x4dd217(0xdc)]():_0x3c4586[_0x4dd217(0xdc)]()[_0x4dd217(0xd6)]();if(this['_isMatch'](_0x561d21,_0x171684,_0x2bde2c,_0x2f10eb))return{'row':_0x28059a,'col':_0x1eaf03,'reference':M[_0x4dd217(0xd8)](_0x2d370f['getName'](),{'startRow':_0x28059a,'endRow':_0x28059a,'startColumn':_0x1eaf03,'endColumn':_0x1eaf03}),'cellData':{..._0x538bd1,'rawValue':_0x3c4586}};}}if(_0xe17c2b&&(_0x538bd1['f']||_0x538bd1['si'])){const _0xe28c97=this[_0x4dd217(0xb2)][_0x4dd217(0xef)](_0x28059a,_0x1eaf03,_0x2d370f[_0x4dd217(0xc7)](),this[_0x4dd217(0xad)]()['getUnitId']());if(_0xe28c97){const _0x518f44=_0x54acd7?_0xe28c97:_0xe28c97['toLowerCase']();if(this['_isMatch'](_0x518f44,_0x171684,_0x2bde2c,_0x2f10eb))return{'row':_0x28059a,'col':_0x1eaf03,'reference':M[_0x4dd217(0xd8)](_0x2d370f[_0x4dd217(0xd2)](),{'startRow':_0x28059a,'endRow':_0x28059a,'startColumn':_0x1eaf03,'endColumn':_0x1eaf03}),'cellData':{..._0x538bd1,'formulaString':_0xe28c97}};}}if(_0x4829ab){let _0x1fb06f=(_0x400d93=(_0x2f39ff=_0x538bd1['p'])==null?void 0x0:_0x2f39ff[_0x4dd217(0xd1)])==null?void 0x0:_0x400d93[_0x4dd217(0xb0)];if(_0x1fb06f||(_0x1fb06f=(_0x59910a=_0x2d370f['getCell'](_0x28059a,_0x1eaf03))==null?void 0x0:_0x59910a['v']),_0x1fb06f){const _0x47f424=_0x54acd7?_0x1fb06f[_0x4dd217(0xdc)]():_0x1fb06f['toString']()[_0x4dd217(0xd6)]();if(this[_0x4dd217(0xa8)](_0x47f424,_0x171684,_0x2bde2c,_0x2f10eb))return{'row':_0x28059a,'col':_0x1eaf03,'reference':M[_0x4dd217(0xd8)](_0x2d370f[_0x4dd217(0xd2)](),{'startRow':_0x28059a,'endRow':_0x28059a,'startColumn':_0x1eaf03,'endColumn':_0x1eaf03}),'cellData':{..._0x538bd1,'displayValue':_0x1fb06f[_0x4dd217(0xdc)]()}};}}return!0x1;}[_0x3e7dd4(0xa8)](_0x81dea8,_0x1c42ec,_0x5d221c,_0x1b8510){const _0x21f971=_0x3e7dd4;return _0x1c42ec['length']>0x1&&_0x1b8510===_0x21f971(0xb7)?_0x1c42ec[_0x21f971(0x9d)](_0x23f76e=>_0x5d221c?_0x81dea8===_0x23f76e:_0x81dea8[_0x21f971(0xec)](_0x23f76e)>-0x1):_0x1c42ec[_0x21f971(0xd0)](_0x244f39=>_0x5d221c?_0x81dea8===_0x244f39:_0x81dea8[_0x21f971(0xec)](_0x244f39)>-0x1);}}C[_0x3e7dd4(0xd5)][_0x3e7dd4(0xa4)](F);class z extends C[_0x3e7dd4(0xd5)]{async[_0x3e7dd4(0xa9)](){const _0x3c48ad=_0x3e7dd4,_0x437369=this['getAllFormulaError'](),_0x115d78=await this[_0x3c48ad(0xeb)]();return{'formulaErrors':_0x437369,'dataValidationErrors':_0x115d78};}}C[_0x3e7dd4(0xd5)][_0x3e7dd4(0xa4)](z);class D extends C[_0x3e7dd4(0xee)]{async[_0x3e7dd4(0xd3)](){const _0x64fc3d=_0x3e7dd4,_0x42b269=this['_injector'][_0x64fc3d(0xcc)](m[_0x64fc3d(0xac)]),_0x4cb15f=this[_0x64fc3d(0xd7)](0x0,0x0,this[_0x64fc3d(0xae)](),this[_0x64fc3d(0xa6)]())[_0x64fc3d(0xde)]();return await _0x42b269[_0x64fc3d(0xf0)](_0x4cb15f);}async[_0x3e7dd4(0xf1)](){const _0x5f1f37=_0x3e7dd4;return(await this[_0x5f1f37(0xd3)]())[_0x5f1f37(0xdf)](m[_0x5f1f37(0xb8)]);}['getStyleUsages'](_0x28961b){const _0x1b7746=_0x3e7dd4,_0x74720c=this['_injector'][_0x1b7746(0xcc)](m[_0x1b7746(0xbb)]),_0x3c8860=this[_0x1b7746(0xd7)](0x0,0x0,this[_0x1b7746(0xae)](),this[_0x1b7746(0xa6)]())[_0x1b7746(0xde)]();return _0x74720c[_0x1b7746(0x9b)](_0x28961b),_0x74720c[_0x1b7746(0xbe)](_0x3c8860,this[_0x1b7746(0xc9)],this[_0x1b7746(0xe8)]);}[_0x3e7dd4(0xaa)](_0xf97bfb){const _0x20d1f1=_0x3e7dd4;return this[_0x20d1f1(0xce)](_0xf97bfb)['map'](m['styleToA1']);}[_0x3e7dd4(0xed)](_0x46595b){const _0x565cbe=_0x3e7dd4,_0x490f7f=this[_0x565cbe(0xa5)]['get'](m[_0x565cbe(0xba)]);return _0x490f7f['updateConfig'](_0x46595b),_0x490f7f[_0x565cbe(0xe5)](this[_0x565cbe(0xe8)]);}[_0x3e7dd4(0xaf)](_0x11f6e6){const _0x349816=_0x3e7dd4,_0x30704b=this['_injector'][_0x349816(0xcc)](m[_0x349816(0xba)]);_0x30704b['updateConfig'](_0x11f6e6);const _0x1f952d=_0x30704b['getAllSizeUsages'](this[_0x349816(0xe8)]);return _0x30704b[_0x349816(0xc0)](_0x1f952d);}}C['FWorksheet'][_0x3e7dd4(0xa4)](D);class x extends C['FRange']{[_0x3e7dd4(0xcb)](_0x139c26){const _0x11d7bd=_0x3e7dd4;var _0x29b644;const _0x6c94c5=(_0x29b644=_0x139c26==null?void 0x0:_0x139c26[_0x11d7bd(0xbd)])!=null?_0x29b644:!0x0,_0x34f101=this[_0x11d7bd(0xd7)](),_0x2fcfa1=this['_worksheet'][_0x11d7bd(0xa2)](),_0x12d128=this[_0x11d7bd(0xe8)][_0x11d7bd(0xd4)](),_0x1c123b={};let _0x57e765=0x0;for(let _0x91550=_0x34f101['startRow'];_0x91550<=_0x34f101[_0x11d7bd(0xdb)];_0x91550++){const _0x4a4fa6=_0x2fcfa1['getRowHeight'](_0x91550),_0x4f7903=!_0x6c94c5||this['_worksheet'][_0x11d7bd(0xa3)](_0x91550)?_0x4a4fa6:0x0;_0x57e765+=_0x4f7903,_0x1c123b[_0x91550]={'h':_0x4f7903};}const _0x514cc5={};let _0x1fd618=0x0;for(let _0x114d26=_0x34f101['startColumn'];_0x114d26<=_0x34f101[_0x11d7bd(0xa0)];_0x114d26++){const _0x400d3f=_0x12d128['getColumnWidth'](_0x114d26),_0x402459=!_0x6c94c5||this[_0x11d7bd(0xe8)]['getColVisible'](_0x114d26)?_0x400d3f:0x0;_0x1fd618+=_0x402459,_0x514cc5[_0x114d26]={'w':_0x402459};}return{'w':_0x1fd618,'h':_0x57e765,'rowData':_0x1c123b,'columnData':_0x514cc5};}async[_0x3e7dd4(0xd3)](){const _0xe01b0=_0x3e7dd4,_0x4184a1=this[_0xe01b0(0xa5)]['get'](m[_0xe01b0(0xac)]),_0x2c2c44=(({startRow:_0x3a6a69,endRow:_0x28658a,startColumn:_0x14d222,endColumn:_0x4d9dab})=>{const _0x2b687c=_0xe01b0,_0x18343b=[];for(let _0x425c07=_0x3a6a69;_0x425c07<=_0x28658a;_0x425c07++){const _0x3b6e2f=[];for(let _0x385f88=_0x14d222;_0x385f88<=_0x4d9dab;_0x385f88++)_0x3b6e2f[_0x2b687c(0x9f)](this[_0x2b687c(0xe8)]['getCellRaw'](_0x425c07,_0x385f88));_0x18343b['push'](_0x3b6e2f);}return _0x18343b;})({'startRow':0x0,'endRow':this[_0xe01b0(0xe8)][_0xe01b0(0xae)](),'startColumn':0x0,'endColumn':this[_0xe01b0(0xe8)]['getMaxColumns']()}),_0x5a81e3=await _0x4184a1[_0xe01b0(0xf0)](_0x2c2c44),_0x4a18a7=this[_0xe01b0(0xd7)](),_0x5359fb=[];for(let _0x53b692=0x0;_0x53b692<_0x5a81e3[_0xe01b0(0xc2)];_0x53b692++){const _0x245209=_0x5a81e3[_0x53b692],_0x416344=_0x245209[_0xe01b0(0xea)],_0x7b6d5d=[];for(let _0x3aecfe=0x0;_0x3aecfe<_0x416344[_0xe01b0(0xc2)];_0x3aecfe++){const _0x180d32=_0x416344[_0x3aecfe],_0x4a188c=U[_0xe01b0(0xbc)](_0x180d32,_0x4a18a7);_0x4a188c&&_0x7b6d5d[_0xe01b0(0x9f)](_0x4a188c);}if(_0x7b6d5d[_0xe01b0(0xc2)]>0x0){if(_0x245209['filledRanges']=_0x7b6d5d,!(_0x245209['firstOccurrence'][_0xe01b0(0xe6)]>=_0x4a18a7[_0xe01b0(0xe6)]&&_0x245209[_0xe01b0(0xd9)][_0xe01b0(0xe6)]<=_0x4a18a7[_0xe01b0(0xdb)]&&_0x245209[_0xe01b0(0xd9)][_0xe01b0(0xb4)]>=_0x4a18a7[_0xe01b0(0xb4)]&&_0x245209[_0xe01b0(0xd9)]['startColumn']<=_0x4a18a7[_0xe01b0(0xa0)])){const _0x281152=_0x7b6d5d[0x0],_0x257d04=_0x281152[_0xe01b0(0xe6)]-_0x245209[_0xe01b0(0xd9)][_0xe01b0(0xe6)],_0x5547b5=_0x281152[_0xe01b0(0xb4)]-_0x245209[_0xe01b0(0xd9)][_0xe01b0(0xb4)];_0x245209[_0xe01b0(0xbf)]=await _0x4184a1['moveFormulaRefOffset'](_0x245209[_0xe01b0(0xbf)],_0x5547b5,_0x257d04),_0x245209['firstOccurrence']={'startRow':_0x281152[_0xe01b0(0xe6)],'endRow':_0x281152[_0xe01b0(0xe6)],'startColumn':_0x281152['startColumn'],'endColumn':_0x281152[_0xe01b0(0xb4)]};}_0x5359fb[_0xe01b0(0x9f)](_0x245209);}}return _0x5359fb;}async[_0x3e7dd4(0xf1)](){const _0x3416e0=_0x3e7dd4;return(await this[_0x3416e0(0xd3)]())[_0x3416e0(0xdf)](m[_0x3416e0(0xb8)]);}[_0x3e7dd4(0xce)](_0x306221){const _0x3f0ff3=_0x3e7dd4,_0x959fea=this[_0x3f0ff3(0xa5)][_0x3f0ff3(0xcc)](m['IStyleUsageAnalyzer']),_0x5293f5=(({startRow:_0x93662f,endRow:_0x259f10,startColumn:_0x5eb9b2,endColumn:_0x69f472})=>{const _0x18ff73=_0x3f0ff3,_0x3b7d93=[];for(let _0x49910f=_0x93662f;_0x49910f<=_0x259f10;_0x49910f++){const _0x3d7917=[];for(let _0x403a9c=_0x5eb9b2;_0x403a9c<=_0x69f472;_0x403a9c++)_0x3d7917[_0x18ff73(0x9f)](this[_0x18ff73(0xe8)]['getCellRaw'](_0x49910f,_0x403a9c));_0x3b7d93[_0x18ff73(0x9f)](_0x3d7917);}return _0x3b7d93;})({'startRow':0x0,'endRow':this['_worksheet'][_0x3f0ff3(0xae)](),'startColumn':0x0,'endColumn':this[_0x3f0ff3(0xe8)][_0x3f0ff3(0xa6)]()});_0x959fea[_0x3f0ff3(0x9b)](_0x306221);const _0x1a7a47=_0x959fea[_0x3f0ff3(0xbe)](_0x5293f5,this[_0x3f0ff3(0xc9)],this[_0x3f0ff3(0xe8)]),_0x2d37ba=this[_0x3f0ff3(0xd7)](),_0x24397f=[];for(let _0x48b0e9=0x0;_0x48b0e9<_0x1a7a47['length'];_0x48b0e9++){const _0x1d2ce8=_0x1a7a47[_0x48b0e9],_0x100481=_0x1d2ce8[_0x3f0ff3(0xea)],_0x22b7c4=[];for(let _0x3b66f2=0x0;_0x3b66f2<_0x100481[_0x3f0ff3(0xc2)];_0x3b66f2++){const _0x42e0a5=_0x100481[_0x3b66f2],_0x2e5c96=U['getIntersectRange'](_0x42e0a5,_0x2d37ba);_0x2e5c96&&_0x22b7c4[_0x3f0ff3(0x9f)](_0x2e5c96);}_0x22b7c4[_0x3f0ff3(0xc2)]>0x0&&(_0x1d2ce8[_0x3f0ff3(0xea)]=_0x22b7c4,_0x24397f[_0x3f0ff3(0x9f)](_0x1d2ce8));}return _0x24397f;}[_0x3e7dd4(0xaa)](_0x48b979){const _0x55cb17=_0x3e7dd4;return this[_0x55cb17(0xce)](_0x48b979)[_0x55cb17(0xdf)](m[_0x55cb17(0xa1)]);}[_0x3e7dd4(0xed)](_0x45e47c){const _0x3fb61d=_0x3e7dd4,_0x25b445=this[_0x3fb61d(0xa5)]['get'](m['ISizeUsageAnalyzer']),_0x4a75db=this[_0x3fb61d(0xd7)]();return _0x25b445[_0x3fb61d(0x9b)](_0x45e47c),_0x25b445['getAllSizeUsages'](this[_0x3fb61d(0xe8)],_0x4a75db[_0x3fb61d(0xe6)],_0x4a75db['endRow'],_0x4a75db[_0x3fb61d(0xb4)],_0x4a75db[_0x3fb61d(0xa0)]);}[_0x3e7dd4(0xaf)](_0x52ea5a){const _0x1f7121=_0x3e7dd4,_0xd06bdd=this[_0x1f7121(0xed)](_0x52ea5a);return this[_0x1f7121(0xa5)]['get'](m[_0x1f7121(0xba)])['toA1'](_0xd06bdd);}[_0x3e7dd4(0xe1)](_0x376ce3){const _0x561e7c=this['_collectRectAreaData'](_0x376ce3);return{'w':_0x561e7c['w'],'h':_0x561e7c['h']};}[_0x3e7dd4(0xcd)](_0x4e688e){const _0x21c8f2=_0x3e7dd4;return this[_0x21c8f2(0xcb)](_0x4e688e);}}C[_0x3e7dd4(0xca)][_0x3e7dd4(0xa4)](x);
|