@univerjs-pro/sheets-mcp 0.12.4-insiders.20251213-692494c → 0.13.0-insiders.20251215-64041bb
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 +11 -11
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x32e706=_0x46be;function _0x3f06(){const _0x16dc9c=['73922QOCvNI','getRange','getMaxColumns','endColumn','getAllFormulaError','getAllDataValidationErrorAsync','startRow','104552ZUPcse','getActiveWorkbook','getFormulaUsages','getAllFormulaUsages','push','startColumn','81ffBDJK','extend','24680yAQuOM','getMaxRows','firstOccurrence','_injector','3718386etZrZB','getFormulaUsagesAsA1','1025XtRYNA','17963883ODaMMS','filledRanges','length','10wSGvAA','_worksheet','formula','getLintErrors','7293882xgzExt','get','9996488rYwFzE'];_0x3f06=function(){return _0x16dc9c;};return _0x3f06();}(function(_0x1a343c,_0x10fdd3){const _0x364906=_0x46be,_0x2a3a99=_0x1a343c();while(!![]){try{const _0x103238=-parseInt(_0x364906(0x1e8))/0x1+parseInt(_0x364906(0x1e1))/0x2*(parseInt(_0x364906(0x1ee))/0x3)+-parseInt(_0x364906(0x1f0))/0x4*(-parseInt(_0x364906(0x1f6))/0x5)+-parseInt(_0x364906(0x1de))/0x6+parseInt(_0x364906(0x1f4))/0x7+parseInt(_0x364906(0x1e0))/0x8+parseInt(_0x364906(0x1d7))/0x9*(-parseInt(_0x364906(0x1da))/0xa);if(_0x103238===_0x10fdd3)break;else _0x2a3a99['push'](_0x2a3a99['shift']());}catch(_0x2ecfe7){_0x2a3a99['push'](_0x2a3a99['shift']());}}}(_0x3f06,0xb194a));import{FUniver as _0x559b9c}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x1b9373,FWorksheet as _0xd85732,FRange as _0x16fd35}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x2cfcd3,toA1 as _0xc8499f}from'@univerjs-pro/sheets-mcp';function _0x46be(_0x47bf1d,_0x5c9fba){_0x47bf1d=_0x47bf1d-0x1d7;const _0x3f065d=_0x3f06();let _0x46beca=_0x3f065d[_0x47bf1d];return _0x46beca;}import{getIntersectRange as _0x33b7e7}from'@univerjs/core';class p extends _0x559b9c{async[_0x32e706(0x1dd)](){const _0x3a25b4=_0x32e706;return this[_0x3a25b4(0x1e9)]()['getLintErrors']();}}_0x559b9c[_0x32e706(0x1ef)](p);class O extends _0x1b9373{async[_0x32e706(0x1dd)](){const _0x3af9ca=_0x32e706,_0x36785a=this[_0x3af9ca(0x1e5)](),_0x3ca785=await this[_0x3af9ca(0x1e6)]();return{'formulaErrors':_0x36785a,'dataValidationErrors':_0x3ca785};}}_0x1b9373[_0x32e706(0x1ef)](O);class U extends _0xd85732{async[_0x32e706(0x1ea)](){const _0x3fa470=_0x32e706,_0x2f1647=this['_injector'][_0x3fa470(0x1df)](_0x2cfcd3),_0x2b6a0e=this[_0x3fa470(0x1e2)](0x0,0x0,this[_0x3fa470(0x1f1)]()+0x1,this[_0x3fa470(0x1e3)]()+0x1)['getCellDataGrid']();return await _0x2f1647[_0x3fa470(0x1eb)](_0x2b6a0e);}async['getFormulaUsagesAsA1'](){const _0x4745f4=_0x32e706;return(await this[_0x4745f4(0x1ea)]())['map'](_0xc8499f);}}_0xd85732[_0x32e706(0x1ef)](U);class k extends _0x16fd35{async[_0x32e706(0x1ea)](){const _0x50416d=_0x32e706,_0x119bcd=this[_0x50416d(0x1f3)][_0x50416d(0x1df)](_0x2cfcd3),_0x483265=(({startRow:_0x6c021f,endRow:_0x14bb15,startColumn:_0x56f106,endColumn:_0x1117b7})=>{const _0x13828d=_0x50416d,_0x50a24c=[];for(let _0x17f5af=_0x6c021f;_0x17f5af<=_0x14bb15;_0x17f5af++){const _0x2a25bc=[];for(let _0x44574a=_0x56f106;_0x44574a<=_0x1117b7;_0x44574a++)_0x2a25bc[_0x13828d(0x1ec)](this[_0x13828d(0x1db)]['getCellRaw'](_0x17f5af,_0x44574a));_0x50a24c[_0x13828d(0x1ec)](_0x2a25bc);}return _0x50a24c;})({'startRow':0x0,'endRow':this[_0x50416d(0x1db)][_0x50416d(0x1f1)](),'startColumn':0x0,'endColumn':this[_0x50416d(0x1db)][_0x50416d(0x1e3)]()}),_0x375353=await _0x119bcd[_0x50416d(0x1eb)](_0x483265),_0x1a24af=this[_0x50416d(0x1e2)](),_0x34071d=[];for(let _0x1eb4c2=0x0;_0x1eb4c2<_0x375353[_0x50416d(0x1d9)];_0x1eb4c2++){const _0xbd102d=_0x375353[_0x1eb4c2],_0x34fc36=_0xbd102d[_0x50416d(0x1d8)],_0x235bf6=[];for(let _0x427a5c=0x0;_0x427a5c<_0x34fc36[_0x50416d(0x1d9)];_0x427a5c++){const _0x587a6a=_0x34fc36[_0x427a5c],_0x4581f8=_0x33b7e7(_0x587a6a,_0x1a24af);_0x4581f8&&_0x235bf6[_0x50416d(0x1ec)](_0x4581f8);}if(_0x235bf6[_0x50416d(0x1d9)]>0x0){if(_0xbd102d[_0x50416d(0x1d8)]=_0x235bf6,!(_0xbd102d[_0x50416d(0x1f2)]['startRow']>=_0x1a24af[_0x50416d(0x1e7)]&&_0xbd102d[_0x50416d(0x1f2)][_0x50416d(0x1e7)]<=_0x1a24af['endRow']&&_0xbd102d[_0x50416d(0x1f2)]['startColumn']>=_0x1a24af[_0x50416d(0x1ed)]&&_0xbd102d[_0x50416d(0x1f2)][_0x50416d(0x1ed)]<=_0x1a24af[_0x50416d(0x1e4)])){const _0x40ade3=_0x235bf6[0x0],_0x5c5221=_0x40ade3[_0x50416d(0x1e7)]-_0xbd102d[_0x50416d(0x1f2)][_0x50416d(0x1e7)],_0x5e5a4e=_0x40ade3['startColumn']-_0xbd102d['firstOccurrence'][_0x50416d(0x1ed)];_0xbd102d[_0x50416d(0x1dc)]=await _0x119bcd['moveFormulaRefOffset'](_0xbd102d[_0x50416d(0x1dc)],_0x5e5a4e,_0x5c5221),_0xbd102d[_0x50416d(0x1f2)]={'startRow':_0x40ade3[_0x50416d(0x1e7)],'endRow':_0x40ade3[_0x50416d(0x1e7)],'startColumn':_0x40ade3['startColumn'],'endColumn':_0x40ade3[_0x50416d(0x1ed)]};}_0x34071d[_0x50416d(0x1ec)](_0xbd102d);}}return _0x34071d;}async[_0x32e706(0x1f5)](){const _0x14b072=_0x32e706;return(await this[_0x14b072(0x1ea)]())['map'](_0xc8499f);}}_0x16fd35['extend'](k);
|