@univerjs-pro/sheets-mcp 0.15.2 → 0.15.3
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/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x278010=_0xe035;(function(_0x14302a,_0x8d77aa){const _0x3adf48=_0xe035,_0x2aca82=_0x14302a();while(!![]){try{const _0x33015b=-parseInt(_0x3adf48(0x16d))/0x1+-parseInt(_0x3adf48(0x163))/0x2*(-parseInt(_0x3adf48(0x148))/0x3)+-parseInt(_0x3adf48(0x14c))/0x4*(-parseInt(_0x3adf48(0x168))/0x5)+parseInt(_0x3adf48(0x141))/0x6+parseInt(_0x3adf48(0x150))/0x7*(-parseInt(_0x3adf48(0x14d))/0x8)+parseInt(_0x3adf48(0x14f))/0x9*(-parseInt(_0x3adf48(0x14a))/0xa)+parseInt(_0x3adf48(0x15c))/0xb;if(_0x33015b===_0x8d77aa)break;else _0x2aca82['push'](_0x2aca82['shift']());}catch(_0x2d32d6){_0x2aca82['push'](_0x2aca82['shift']());}}}(_0x64be,0x487a0));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');class y extends U[_0x278010(0x13c)]{async[_0x278010(0x139)](){const _0x314299=_0x278010;return this[_0x314299(0x13b)]()['getLintErrors']();}}function _0xe035(_0x483dd3,_0x21ac34){_0x483dd3=_0x483dd3-0x137;const _0x64be36=_0x64be();let _0xe0357e=_0x64be36[_0x483dd3];return _0xe0357e;}U[_0x278010(0x13c)][_0x278010(0x14b)](y);class C extends f[_0x278010(0x154)]{async['getLintErrors'](){const _0x125e68=_0x278010,_0x15225b=this[_0x125e68(0x164)](),_0x45a6a1=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x15225b,'dataValidationErrors':_0x45a6a1};}}f[_0x278010(0x154)][_0x278010(0x14b)](C);class z extends f[_0x278010(0x15f)]{async[_0x278010(0x13d)](){const _0x34cd3e=_0x278010,_0x151a04=this[_0x34cd3e(0x13f)][_0x34cd3e(0x158)](g[_0x34cd3e(0x143)]),_0x2a9698=this[_0x34cd3e(0x145)](0x0,0x0,this[_0x34cd3e(0x147)](),this[_0x34cd3e(0x159)]())['getCellDataGrid']();return await _0x151a04[_0x34cd3e(0x153)](_0x2a9698);}async[_0x278010(0x16a)](){const _0x26109a=_0x278010;return(await this[_0x26109a(0x13d)]())[_0x26109a(0x137)](g[_0x26109a(0x152)]);}['getStyleUsages'](_0x4223f7){const _0x202f8b=_0x278010,_0xf90370=this[_0x202f8b(0x13f)]['get'](g[_0x202f8b(0x13a)]),_0x5a4a80=this['getRange'](0x0,0x0,this[_0x202f8b(0x147)](),this[_0x202f8b(0x159)]())[_0x202f8b(0x167)]();return _0xf90370[_0x202f8b(0x13e)](_0x4223f7),_0xf90370['getAllStyleUsages'](_0x5a4a80,this[_0x202f8b(0x15d)],this[_0x202f8b(0x162)]);}[_0x278010(0x155)](_0x255771){const _0x45c4fd=_0x278010;return this['getStyleUsages'](_0x255771)['map'](g[_0x45c4fd(0x144)]);}[_0x278010(0x151)](_0x438d7a){const _0x53d522=_0x278010,_0x20dea2=this[_0x53d522(0x13f)][_0x53d522(0x158)](g[_0x53d522(0x166)]);return _0x20dea2[_0x53d522(0x13e)](_0x438d7a),_0x20dea2['getAllSizeUsages'](this[_0x53d522(0x162)]);}[_0x278010(0x15a)](_0x4769fb){const _0x4c31a4=_0x278010,_0xfff22a=this['_injector'][_0x4c31a4(0x158)](g['ISizeUsageAnalyzer']);_0xfff22a[_0x4c31a4(0x13e)](_0x4769fb);const _0x4aed0d=_0xfff22a[_0x4c31a4(0x142)](this['_worksheet']);return _0xfff22a[_0x4c31a4(0x146)](_0x4aed0d);}}f[_0x278010(0x15f)][_0x278010(0x14b)](z);class S extends f['FRange']{async[_0x278010(0x13d)](){const _0x43de1a=_0x278010,_0x45e51a=this[_0x43de1a(0x13f)][_0x43de1a(0x158)](g['IFormulaUsageAnalyzer']),_0x510a3a=(({startRow:_0x50d6c6,endRow:_0x3f4b5d,startColumn:_0x365fd8,endColumn:_0x1e29f9})=>{const _0x309654=_0x43de1a,_0x15bdc8=[];for(let _0x1d7b53=_0x50d6c6;_0x1d7b53<=_0x3f4b5d;_0x1d7b53++){const _0x3443cc=[];for(let _0x50646d=_0x365fd8;_0x50646d<=_0x1e29f9;_0x50646d++)_0x3443cc[_0x309654(0x161)](this[_0x309654(0x162)][_0x309654(0x16b)](_0x1d7b53,_0x50646d));_0x15bdc8['push'](_0x3443cc);}return _0x15bdc8;})({'startRow':0x0,'endRow':this[_0x43de1a(0x162)]['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x43de1a(0x162)]['getMaxColumns']()}),_0x31f68d=await _0x45e51a[_0x43de1a(0x153)](_0x510a3a),_0x43560e=this['getRange'](),_0x17e287=[];for(let _0x3c6de6=0x0;_0x3c6de6<_0x31f68d[_0x43de1a(0x160)];_0x3c6de6++){const _0x563d9c=_0x31f68d[_0x3c6de6],_0x3df2eb=_0x563d9c[_0x43de1a(0x165)],_0x3b7de3=[];for(let _0x1a674d=0x0;_0x1a674d<_0x3df2eb[_0x43de1a(0x160)];_0x1a674d++){const _0x4a2e1b=_0x3df2eb[_0x1a674d],_0x597cc7=m[_0x43de1a(0x15e)](_0x4a2e1b,_0x43560e);_0x597cc7&&_0x3b7de3[_0x43de1a(0x161)](_0x597cc7);}if(_0x3b7de3[_0x43de1a(0x160)]>0x0){if(_0x563d9c[_0x43de1a(0x165)]=_0x3b7de3,!(_0x563d9c[_0x43de1a(0x156)][_0x43de1a(0x169)]>=_0x43560e['startRow']&&_0x563d9c[_0x43de1a(0x156)]['startRow']<=_0x43560e[_0x43de1a(0x16c)]&&_0x563d9c['firstOccurrence']['startColumn']>=_0x43560e[_0x43de1a(0x138)]&&_0x563d9c[_0x43de1a(0x156)][_0x43de1a(0x138)]<=_0x43560e[_0x43de1a(0x140)])){const _0x2eb8a7=_0x3b7de3[0x0],_0x45333f=_0x2eb8a7[_0x43de1a(0x169)]-_0x563d9c[_0x43de1a(0x156)][_0x43de1a(0x169)],_0x578457=_0x2eb8a7[_0x43de1a(0x138)]-_0x563d9c['firstOccurrence'][_0x43de1a(0x138)];_0x563d9c[_0x43de1a(0x157)]=await _0x45e51a[_0x43de1a(0x15b)](_0x563d9c['formula'],_0x578457,_0x45333f),_0x563d9c[_0x43de1a(0x156)]={'startRow':_0x2eb8a7[_0x43de1a(0x169)],'endRow':_0x2eb8a7[_0x43de1a(0x169)],'startColumn':_0x2eb8a7[_0x43de1a(0x138)],'endColumn':_0x2eb8a7['startColumn']};}_0x17e287[_0x43de1a(0x161)](_0x563d9c);}}return _0x17e287;}async[_0x278010(0x16a)](){const _0x38d68f=_0x278010;return(await this['getFormulaUsages']())[_0x38d68f(0x137)](g[_0x38d68f(0x152)]);}[_0x278010(0x149)](_0x4cf8f1){const _0x5c2e82=_0x278010,_0x2c5887=this[_0x5c2e82(0x13f)][_0x5c2e82(0x158)](g[_0x5c2e82(0x13a)]),_0x2b2e0b=(({startRow:_0x239ed8,endRow:_0x4bb76f,startColumn:_0x48ed19,endColumn:_0x3bd0af})=>{const _0xbf5153=_0x5c2e82,_0x4f0115=[];for(let _0x3f6732=_0x239ed8;_0x3f6732<=_0x4bb76f;_0x3f6732++){const _0x2c7236=[];for(let _0x5f08d0=_0x48ed19;_0x5f08d0<=_0x3bd0af;_0x5f08d0++)_0x2c7236[_0xbf5153(0x161)](this[_0xbf5153(0x162)]['getCellRaw'](_0x3f6732,_0x5f08d0));_0x4f0115[_0xbf5153(0x161)](_0x2c7236);}return _0x4f0115;})({'startRow':0x0,'endRow':this[_0x5c2e82(0x162)][_0x5c2e82(0x147)](),'startColumn':0x0,'endColumn':this[_0x5c2e82(0x162)][_0x5c2e82(0x159)]()});_0x2c5887[_0x5c2e82(0x13e)](_0x4cf8f1);const _0x31ec51=_0x2c5887[_0x5c2e82(0x14e)](_0x2b2e0b,this[_0x5c2e82(0x15d)],this['_worksheet']),_0x5a16d0=this[_0x5c2e82(0x145)](),_0x1247c4=[];for(let _0x1e668b=0x0;_0x1e668b<_0x31ec51[_0x5c2e82(0x160)];_0x1e668b++){const _0x1209d9=_0x31ec51[_0x1e668b],_0x791e20=_0x1209d9['filledRanges'],_0x643d4=[];for(let _0x2b2a32=0x0;_0x2b2a32<_0x791e20[_0x5c2e82(0x160)];_0x2b2a32++){const _0x189a0a=_0x791e20[_0x2b2a32],_0x3797bb=m[_0x5c2e82(0x15e)](_0x189a0a,_0x5a16d0);_0x3797bb&&_0x643d4['push'](_0x3797bb);}_0x643d4[_0x5c2e82(0x160)]>0x0&&(_0x1209d9['filledRanges']=_0x643d4,_0x1247c4[_0x5c2e82(0x161)](_0x1209d9));}return _0x1247c4;}[_0x278010(0x155)](_0x5df727){const _0x53f62a=_0x278010;return this[_0x53f62a(0x149)](_0x5df727)[_0x53f62a(0x137)](g[_0x53f62a(0x144)]);}[_0x278010(0x151)](_0x487642){const _0x4e6c9a=_0x278010,_0x2083a4=this[_0x4e6c9a(0x13f)][_0x4e6c9a(0x158)](g[_0x4e6c9a(0x166)]),_0x48e9a4=this[_0x4e6c9a(0x145)]();return _0x2083a4[_0x4e6c9a(0x13e)](_0x487642),_0x2083a4[_0x4e6c9a(0x142)](this['_worksheet'],_0x48e9a4[_0x4e6c9a(0x169)],_0x48e9a4['endRow'],_0x48e9a4[_0x4e6c9a(0x138)],_0x48e9a4[_0x4e6c9a(0x140)]);}[_0x278010(0x15a)](_0x978526){const _0x4a43af=_0x278010,_0x4ac464=this[_0x4a43af(0x151)](_0x978526);return this['_injector'][_0x4a43af(0x158)](g['ISizeUsageAnalyzer'])[_0x4a43af(0x146)](_0x4ac464);}}f['FRange'][_0x278010(0x14b)](S);function _0x64be(){const _0x471b2e=['IFormulaUsageAnalyzer','styleToA1','getRange','toA1','getMaxRows','1090857detbvi','getStyleUsages','9140nbXceI','extend','1992eGREbv','24wxevER','getAllStyleUsages','2178yLUTiy','887208ViqtDl','getSizeUsages','formulaToA1','getAllFormulaUsages','FWorkbook','getStyleUsagesAsA1','firstOccurrence','formula','get','getMaxColumns','getSizeUsagesAsA1','moveFormulaRefOffset','826001qedCGy','_workbook','getIntersectRange','FWorksheet','length','push','_worksheet','2GUPVdy','getAllFormulaError','filledRanges','ISizeUsageAnalyzer','getCellDataGrid','2900XrNuvk','startRow','getFormulaUsagesAsA1','getCellRaw','endRow','108404DmgRcf','map','startColumn','getLintErrors','IStyleUsageAnalyzer','getActiveWorkbook','FUniver','getFormulaUsages','updateConfig','_injector','endColumn','1674828lUMfTa','getAllSizeUsages'];_0x64be=function(){return _0x471b2e;};return _0x64be();}
|