@univerjs-pro/sheets-mcp 0.13.0-insiders.20251216-1519cb7 → 0.13.0-insiders.20251218-2062647
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/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x10d3fc=_0x3766;(function(_0x448ce1,_0x283065){const _0x5c7cd6=_0x3766,_0x212ddc=_0x448ce1();while(!![]){try{const _0x4eeeb7=parseInt(_0x5c7cd6(0xa2))/0x1*(parseInt(_0x5c7cd6(0xae))/0x2)+parseInt(_0x5c7cd6(0xb2))/0x3*(parseInt(_0x5c7cd6(0xa3))/0x4)+-parseInt(_0x5c7cd6(0xa0))/0x5+parseInt(_0x5c7cd6(0xb8))/0x6+-parseInt(_0x5c7cd6(0x9c))/0x7*(parseInt(_0x5c7cd6(0xa8))/0x8)+-parseInt(_0x5c7cd6(0xb4))/0x9*(parseInt(_0x5c7cd6(0xad))/0xa)+parseInt(_0x5c7cd6(0xba))/0xb*(parseInt(_0x5c7cd6(0xb0))/0xc);if(_0x4eeeb7===_0x283065)break;else _0x212ddc['push'](_0x212ddc['shift']());}catch(_0x3c386d){_0x212ddc['push'](_0x212ddc['shift']());}}}(_0x4fb9,0xa7fc4));import{FUniver as _0x43496e}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x1c4d92,FWorksheet as _0x13dea7,FRange as _0x1ff7ef}from'@univerjs/sheets/facade';function _0x4fb9(){const _0xa92fc0=['endColumn','3ZWjFUK','map','294696sYQQRH','getFormulaUsagesAsA1','getRange','filledRanges','5590080boGrvY','endRow','22rFIAMZ','_worksheet','getAllFormulaUsages','startRow','push','133ItdhrC','getMaxRows','getLintErrors','length','4023020wnqGqu','_injector','2027ACTFCW','2245272MuGsbg','get','getAllDataValidationErrorAsync','getFormulaUsages','startColumn','393992dhrkJU','formula','extend','firstOccurrence','getAllFormulaError','100ALbfUV','1142bdXgaZ','getCellRaw','632568MAYHCl'];_0x4fb9=function(){return _0xa92fc0;};return _0x4fb9();}function _0x3766(_0x105525,_0x56c9de){_0x105525=_0x105525-0x98;const _0x4fb972=_0x4fb9();let _0x3766da=_0x4fb972[_0x105525];return _0x3766da;}import{IFormulaUsageAnalyzer as _0x326044,toA1 as _0x244588}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x564672}from'@univerjs/core';class p extends _0x43496e{async[_0x10d3fc(0x9e)](){const _0x31e312=_0x10d3fc;return this['getActiveWorkbook']()[_0x31e312(0x9e)]();}}_0x43496e[_0x10d3fc(0xaa)](p);class O extends _0x1c4d92{async[_0x10d3fc(0x9e)](){const _0x3adf5b=_0x10d3fc,_0x2ec440=this[_0x3adf5b(0xac)](),_0x1e329d=await this[_0x3adf5b(0xa5)]();return{'formulaErrors':_0x2ec440,'dataValidationErrors':_0x1e329d};}}_0x1c4d92[_0x10d3fc(0xaa)](O);class U extends _0x13dea7{async['getFormulaUsages'](){const _0xdb18b5=_0x10d3fc,_0x4a3304=this['_injector'][_0xdb18b5(0xa4)](_0x326044),_0x8ee02=this[_0xdb18b5(0xb6)](0x0,0x0,this[_0xdb18b5(0x9d)](),this['getMaxColumns']())['getCellDataGrid']();return await _0x4a3304[_0xdb18b5(0x99)](_0x8ee02);}async[_0x10d3fc(0xb5)](){const _0xfe8ad4=_0x10d3fc;return(await this[_0xfe8ad4(0xa6)]())[_0xfe8ad4(0xb3)](_0x244588);}}_0x13dea7['extend'](U);class k extends _0x1ff7ef{async[_0x10d3fc(0xa6)](){const _0x4a6aa7=_0x10d3fc,_0x1f4fbf=this[_0x4a6aa7(0xa1)][_0x4a6aa7(0xa4)](_0x326044),_0x377e71=(({startRow:_0x5312f1,endRow:_0x38bed3,startColumn:_0x1e1691,endColumn:_0x3ce53e})=>{const _0x2c7787=_0x4a6aa7,_0x26977e=[];for(let _0x480712=_0x5312f1;_0x480712<=_0x38bed3;_0x480712++){const _0x126ff4=[];for(let _0x285c28=_0x1e1691;_0x285c28<=_0x3ce53e;_0x285c28++)_0x126ff4[_0x2c7787(0x9b)](this['_worksheet'][_0x2c7787(0xaf)](_0x480712,_0x285c28));_0x26977e[_0x2c7787(0x9b)](_0x126ff4);}return _0x26977e;})({'startRow':0x0,'endRow':this[_0x4a6aa7(0x98)][_0x4a6aa7(0x9d)](),'startColumn':0x0,'endColumn':this[_0x4a6aa7(0x98)]['getMaxColumns']()}),_0x1b69db=await _0x1f4fbf[_0x4a6aa7(0x99)](_0x377e71),_0x32e485=this['getRange'](),_0x3e473f=[];for(let _0x463553=0x0;_0x463553<_0x1b69db[_0x4a6aa7(0x9f)];_0x463553++){const _0x329341=_0x1b69db[_0x463553],_0x385ced=_0x329341[_0x4a6aa7(0xb7)],_0x232ffb=[];for(let _0x2a73c2=0x0;_0x2a73c2<_0x385ced[_0x4a6aa7(0x9f)];_0x2a73c2++){const _0x2c61e0=_0x385ced[_0x2a73c2],_0x3d656e=_0x564672(_0x2c61e0,_0x32e485);_0x3d656e&&_0x232ffb['push'](_0x3d656e);}if(_0x232ffb['length']>0x0){if(_0x329341[_0x4a6aa7(0xb7)]=_0x232ffb,!(_0x329341[_0x4a6aa7(0xab)][_0x4a6aa7(0x9a)]>=_0x32e485[_0x4a6aa7(0x9a)]&&_0x329341[_0x4a6aa7(0xab)][_0x4a6aa7(0x9a)]<=_0x32e485[_0x4a6aa7(0xb9)]&&_0x329341[_0x4a6aa7(0xab)][_0x4a6aa7(0xa7)]>=_0x32e485[_0x4a6aa7(0xa7)]&&_0x329341[_0x4a6aa7(0xab)]['startColumn']<=_0x32e485[_0x4a6aa7(0xb1)])){const _0xd97f37=_0x232ffb[0x0],_0x42325c=_0xd97f37[_0x4a6aa7(0x9a)]-_0x329341[_0x4a6aa7(0xab)][_0x4a6aa7(0x9a)],_0x95cdb0=_0xd97f37['startColumn']-_0x329341['firstOccurrence'][_0x4a6aa7(0xa7)];_0x329341[_0x4a6aa7(0xa9)]=await _0x1f4fbf['moveFormulaRefOffset'](_0x329341[_0x4a6aa7(0xa9)],_0x95cdb0,_0x42325c),_0x329341[_0x4a6aa7(0xab)]={'startRow':_0xd97f37[_0x4a6aa7(0x9a)],'endRow':_0xd97f37[_0x4a6aa7(0x9a)],'startColumn':_0xd97f37['startColumn'],'endColumn':_0xd97f37[_0x4a6aa7(0xa7)]};}_0x3e473f[_0x4a6aa7(0x9b)](_0x329341);}}return _0x3e473f;}async[_0x10d3fc(0xb5)](){const _0x64b88d=_0x10d3fc;return(await this[_0x64b88d(0xa6)]())[_0x64b88d(0xb3)](_0x244588);}}_0x1ff7ef[_0x10d3fc(0xaa)](k);
|