@univerjs-pro/sheets-mcp 0.13.0-insiders.20251220-0a5ea4d → 0.14.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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x44e360=_0x4061;(function(_0x2fb7a3,_0x280982){const _0x5f5624=_0x4061,_0x38d836=_0x2fb7a3();while(!![]){try{const _0x3a2ba7=parseInt(_0x5f5624(0x211))/0x1*(-parseInt(_0x5f5624(0x208))/0x2)+parseInt(_0x5f5624(0x1f6))/0x3*(parseInt(_0x5f5624(0x204))/0x4)+parseInt(_0x5f5624(0x207))/0x5*(-parseInt(_0x5f5624(0x20f))/0x6)+parseInt(_0x5f5624(0x1fd))/0x7*(parseInt(_0x5f5624(0x1fc))/0x8)+parseInt(_0x5f5624(0x20c))/0x9*(-parseInt(_0x5f5624(0x1fa))/0xa)+-parseInt(_0x5f5624(0x1f8))/0xb*(-parseInt(_0x5f5624(0x1fb))/0xc)+-parseInt(_0x5f5624(0x20b))/0xd*(-parseInt(_0x5f5624(0x215))/0xe);if(_0x3a2ba7===_0x280982)break;else _0x38d836['push'](_0x38d836['shift']());}catch(_0x33d6a8){_0x38d836['push'](_0x38d836['shift']());}}}(_0x1b53,0x52a46));function _0x4061(_0xbe1e58,_0x51ccbc){_0xbe1e58=_0xbe1e58-0x1f1;const _0x1b53cd=_0x1b53();let _0x406184=_0x1b53cd[_0xbe1e58];return _0x406184;}import{FUniver as _0x559b0e}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x1b53(){const _0x53c9d1=['getLintErrors','endColumn','15220TjLJSF','2FoIWoN','extend','get','24089jXbSLt','9SqZRBM','firstOccurrence','getFormulaUsagesAsA1','888HXhfkz','endRow','491489DMMKFm','startColumn','moveFormulaRefOffset','getMaxRows','7812LAhHpF','getAllFormulaUsages','push','length','getCellRaw','getActiveWorkbook','filledRanges','42CLeGtY','formula','5324NTvhuw','map','5750630FhQFWv','2364MsATTZ','401168HCONcU','21IjdQDC','startRow','getFormulaUsages','getMaxColumns','_worksheet','_injector','getRange','164516RJkwgO'];_0x1b53=function(){return _0x53c9d1;};return _0x1b53();}import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x2e8620,FWorksheet as _0x3a8533,FRange as _0x22468f}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x1d19fd,toA1 as _0x1cfe7d}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x1496bd}from'@univerjs/core';class p extends _0x559b0e{async['getLintErrors'](){const _0x139b1b=_0x4061;return this[_0x139b1b(0x1f4)]()[_0x139b1b(0x205)]();}}_0x559b0e[_0x44e360(0x209)](p);class O extends _0x2e8620{async[_0x44e360(0x205)](){const _0x11ed59=this['getAllFormulaError'](),_0x38dc23=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x11ed59,'dataValidationErrors':_0x38dc23};}}_0x2e8620['extend'](O);class U extends _0x3a8533{async[_0x44e360(0x1ff)](){const _0x361d43=_0x44e360,_0x5a2033=this[_0x361d43(0x202)][_0x361d43(0x20a)](_0x1d19fd),_0x2fd1da=this[_0x361d43(0x203)](0x0,0x0,this[_0x361d43(0x214)](),this['getMaxColumns']())['getCellDataGrid']();return await _0x5a2033[_0x361d43(0x216)](_0x2fd1da);}async[_0x44e360(0x20e)](){const _0x314009=_0x44e360;return(await this[_0x314009(0x1ff)]())[_0x314009(0x1f9)](_0x1cfe7d);}}_0x3a8533[_0x44e360(0x209)](U);class k extends _0x22468f{async[_0x44e360(0x1ff)](){const _0x1d8e16=_0x44e360,_0xfde3f5=this[_0x1d8e16(0x202)][_0x1d8e16(0x20a)](_0x1d19fd),_0x21d229=(({startRow:_0x2791d4,endRow:_0x4e439d,startColumn:_0x167a3c,endColumn:_0x2e016f})=>{const _0x48100c=_0x1d8e16,_0x241a16=[];for(let _0x453ca5=_0x2791d4;_0x453ca5<=_0x4e439d;_0x453ca5++){const _0x308c23=[];for(let _0x34e262=_0x167a3c;_0x34e262<=_0x2e016f;_0x34e262++)_0x308c23[_0x48100c(0x1f1)](this[_0x48100c(0x201)][_0x48100c(0x1f3)](_0x453ca5,_0x34e262));_0x241a16[_0x48100c(0x1f1)](_0x308c23);}return _0x241a16;})({'startRow':0x0,'endRow':this[_0x1d8e16(0x201)][_0x1d8e16(0x214)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x1d8e16(0x200)]()}),_0x38b927=await _0xfde3f5[_0x1d8e16(0x216)](_0x21d229),_0x258129=this[_0x1d8e16(0x203)](),_0x178396=[];for(let _0x55a610=0x0;_0x55a610<_0x38b927[_0x1d8e16(0x1f2)];_0x55a610++){const _0x1a7f45=_0x38b927[_0x55a610],_0x4036ae=_0x1a7f45[_0x1d8e16(0x1f5)],_0x4d7741=[];for(let _0x27e7e=0x0;_0x27e7e<_0x4036ae[_0x1d8e16(0x1f2)];_0x27e7e++){const _0x5bb970=_0x4036ae[_0x27e7e],_0x1b4620=_0x1496bd(_0x5bb970,_0x258129);_0x1b4620&&_0x4d7741[_0x1d8e16(0x1f1)](_0x1b4620);}if(_0x4d7741['length']>0x0){if(_0x1a7f45['filledRanges']=_0x4d7741,!(_0x1a7f45[_0x1d8e16(0x20d)][_0x1d8e16(0x1fe)]>=_0x258129['startRow']&&_0x1a7f45[_0x1d8e16(0x20d)]['startRow']<=_0x258129[_0x1d8e16(0x210)]&&_0x1a7f45[_0x1d8e16(0x20d)][_0x1d8e16(0x212)]>=_0x258129[_0x1d8e16(0x212)]&&_0x1a7f45['firstOccurrence'][_0x1d8e16(0x212)]<=_0x258129[_0x1d8e16(0x206)])){const _0x2e2d1b=_0x4d7741[0x0],_0x10d59e=_0x2e2d1b[_0x1d8e16(0x1fe)]-_0x1a7f45[_0x1d8e16(0x20d)]['startRow'],_0x87636d=_0x2e2d1b['startColumn']-_0x1a7f45[_0x1d8e16(0x20d)][_0x1d8e16(0x212)];_0x1a7f45[_0x1d8e16(0x1f7)]=await _0xfde3f5[_0x1d8e16(0x213)](_0x1a7f45['formula'],_0x87636d,_0x10d59e),_0x1a7f45[_0x1d8e16(0x20d)]={'startRow':_0x2e2d1b[_0x1d8e16(0x1fe)],'endRow':_0x2e2d1b[_0x1d8e16(0x1fe)],'startColumn':_0x2e2d1b[_0x1d8e16(0x212)],'endColumn':_0x2e2d1b[_0x1d8e16(0x212)]};}_0x178396[_0x1d8e16(0x1f1)](_0x1a7f45);}}return _0x178396;}async[_0x44e360(0x20e)](){const _0x48aa34=_0x44e360;return(await this['getFormulaUsages']())[_0x48aa34(0x1f9)](_0x1cfe7d);}}_0x22468f[_0x44e360(0x209)](k);
1
+ const _0x25cef9=_0x49ce;(function(_0x709777,_0x8099c){const _0x1c9d01=_0x49ce,_0x863616=_0x709777();while(!![]){try{const _0x3fecf2=parseInt(_0x1c9d01(0xdd))/0x1+parseInt(_0x1c9d01(0xde))/0x2*(-parseInt(_0x1c9d01(0xe1))/0x3)+-parseInt(_0x1c9d01(0xf7))/0x4+parseInt(_0x1c9d01(0xe0))/0x5+-parseInt(_0x1c9d01(0xef))/0x6*(parseInt(_0x1c9d01(0xf8))/0x7)+-parseInt(_0x1c9d01(0xee))/0x8*(parseInt(_0x1c9d01(0xf2))/0x9)+parseInt(_0x1c9d01(0xec))/0xa;if(_0x3fecf2===_0x8099c)break;else _0x863616['push'](_0x863616['shift']());}catch(_0x5449e8){_0x863616['push'](_0x863616['shift']());}}}(_0x1a17,0xdc4f6));import{FUniver as _0x3440e4}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x3bf9c1,FWorksheet as _0x310a62,FRange as _0x48e7b9}from'@univerjs/sheets/facade';function _0x1a17(){const _0x11a417=['822614XGcHFQ','18sKGojq','filledRanges','4492325RLZpAI','288609oQmwAC','getMaxRows','_worksheet','endColumn','length','_injector','firstOccurrence','getRange','getActiveWorkbook','getLintErrors','getAllFormulaUsages','21908710FVMFXS','getAllFormulaError','1241832vpEDcI','12ylrVJk','map','getFormulaUsagesAsA1','9ztEeQQ','get','getAllDataValidationErrorAsync','endRow','startRow','3592432JfrYPG','3816386dmqdwP','formula','push','getMaxColumns','getFormulaUsages','getCellRaw','extend','startColumn'];_0x1a17=function(){return _0x11a417;};return _0x1a17();}import{IFormulaUsageAnalyzer as _0xa8a543,toA1 as _0x1bd221}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x118555}from'@univerjs/core';class p extends _0x3440e4{async[_0x25cef9(0xea)](){const _0x3d2d92=_0x25cef9;return this[_0x3d2d92(0xe9)]()['getLintErrors']();}}function _0x49ce(_0x49bdd6,_0x413a4e){_0x49bdd6=_0x49bdd6-0xd7;const _0x1a17e2=_0x1a17();let _0x49ceea=_0x1a17e2[_0x49bdd6];return _0x49ceea;}_0x3440e4[_0x25cef9(0xdb)](p);class O extends _0x3bf9c1{async['getLintErrors'](){const _0x2b7bb9=_0x25cef9,_0x96597c=this[_0x2b7bb9(0xed)](),_0x5243fd=await this[_0x2b7bb9(0xf4)]();return{'formulaErrors':_0x96597c,'dataValidationErrors':_0x5243fd};}}_0x3bf9c1['extend'](O);class U extends _0x310a62{async['getFormulaUsages'](){const _0x591a18=_0x25cef9,_0x1571f4=this[_0x591a18(0xe6)][_0x591a18(0xf3)](_0xa8a543),_0x744b58=this[_0x591a18(0xe8)](0x0,0x0,this[_0x591a18(0xe2)](),this[_0x591a18(0xd8)]())['getCellDataGrid']();return await _0x1571f4[_0x591a18(0xeb)](_0x744b58);}async['getFormulaUsagesAsA1'](){const _0x3144a3=_0x25cef9;return(await this[_0x3144a3(0xd9)]())[_0x3144a3(0xf0)](_0x1bd221);}}_0x310a62[_0x25cef9(0xdb)](U);class k extends _0x48e7b9{async['getFormulaUsages'](){const _0x4d3e2c=_0x25cef9,_0xa9ec48=this[_0x4d3e2c(0xe6)][_0x4d3e2c(0xf3)](_0xa8a543),_0x5cce7c=(({startRow:_0x4de6b0,endRow:_0x5c4a87,startColumn:_0x2664ea,endColumn:_0x1be0c4})=>{const _0x3c8305=_0x4d3e2c,_0x1d53bc=[];for(let _0x2e9341=_0x4de6b0;_0x2e9341<=_0x5c4a87;_0x2e9341++){const _0xc2ea89=[];for(let _0x48e496=_0x2664ea;_0x48e496<=_0x1be0c4;_0x48e496++)_0xc2ea89[_0x3c8305(0xd7)](this[_0x3c8305(0xe3)][_0x3c8305(0xda)](_0x2e9341,_0x48e496));_0x1d53bc[_0x3c8305(0xd7)](_0xc2ea89);}return _0x1d53bc;})({'startRow':0x0,'endRow':this[_0x4d3e2c(0xe3)][_0x4d3e2c(0xe2)](),'startColumn':0x0,'endColumn':this[_0x4d3e2c(0xe3)][_0x4d3e2c(0xd8)]()}),_0x26cf48=await _0xa9ec48[_0x4d3e2c(0xeb)](_0x5cce7c),_0x142cd7=this[_0x4d3e2c(0xe8)](),_0x15114c=[];for(let _0x45e0ac=0x0;_0x45e0ac<_0x26cf48[_0x4d3e2c(0xe5)];_0x45e0ac++){const _0x5ae314=_0x26cf48[_0x45e0ac],_0x4510a2=_0x5ae314[_0x4d3e2c(0xdf)],_0x2434af=[];for(let _0xcb84f6=0x0;_0xcb84f6<_0x4510a2['length'];_0xcb84f6++){const _0x5b36a4=_0x4510a2[_0xcb84f6],_0x4a1993=_0x118555(_0x5b36a4,_0x142cd7);_0x4a1993&&_0x2434af[_0x4d3e2c(0xd7)](_0x4a1993);}if(_0x2434af['length']>0x0){if(_0x5ae314['filledRanges']=_0x2434af,!(_0x5ae314[_0x4d3e2c(0xe7)]['startRow']>=_0x142cd7[_0x4d3e2c(0xf6)]&&_0x5ae314[_0x4d3e2c(0xe7)][_0x4d3e2c(0xf6)]<=_0x142cd7[_0x4d3e2c(0xf5)]&&_0x5ae314['firstOccurrence'][_0x4d3e2c(0xdc)]>=_0x142cd7[_0x4d3e2c(0xdc)]&&_0x5ae314['firstOccurrence']['startColumn']<=_0x142cd7[_0x4d3e2c(0xe4)])){const _0xfab793=_0x2434af[0x0],_0x3e0aa1=_0xfab793[_0x4d3e2c(0xf6)]-_0x5ae314['firstOccurrence'][_0x4d3e2c(0xf6)],_0x4a6c14=_0xfab793[_0x4d3e2c(0xdc)]-_0x5ae314['firstOccurrence'][_0x4d3e2c(0xdc)];_0x5ae314[_0x4d3e2c(0xf9)]=await _0xa9ec48['moveFormulaRefOffset'](_0x5ae314[_0x4d3e2c(0xf9)],_0x4a6c14,_0x3e0aa1),_0x5ae314['firstOccurrence']={'startRow':_0xfab793[_0x4d3e2c(0xf6)],'endRow':_0xfab793['startRow'],'startColumn':_0xfab793[_0x4d3e2c(0xdc)],'endColumn':_0xfab793[_0x4d3e2c(0xdc)]};}_0x15114c['push'](_0x5ae314);}}return _0x15114c;}async[_0x25cef9(0xf1)](){const _0x12c2ab=_0x25cef9;return(await this[_0x12c2ab(0xd9)]())['map'](_0x1bd221);}}_0x48e7b9[_0x25cef9(0xdb)](k);