@univerjs-pro/sheets-mcp 0.12.1 → 0.12.2-experimental.20251129-0fa20cd

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/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2ec742=_0x2b66;(function(_0x5bdbc7,_0x45d333){const _0x2a11c6=_0x2b66,_0x3ce812=_0x5bdbc7();while(!![]){try{const _0x2c0845=parseInt(_0x2a11c6(0xb8))/0x1+-parseInt(_0x2a11c6(0xc7))/0x2*(parseInt(_0x2a11c6(0xc5))/0x3)+parseInt(_0x2a11c6(0xc4))/0x4*(-parseInt(_0x2a11c6(0xd1))/0x5)+parseInt(_0x2a11c6(0xcd))/0x6*(-parseInt(_0x2a11c6(0xb4))/0x7)+parseInt(_0x2a11c6(0xbb))/0x8+-parseInt(_0x2a11c6(0xc9))/0x9+-parseInt(_0x2a11c6(0xc2))/0xa*(-parseInt(_0x2a11c6(0xb7))/0xb);if(_0x2c0845===_0x45d333)break;else _0x3ce812['push'](_0x3ce812['shift']());}catch(_0x1eee1c){_0x3ce812['push'](_0x3ce812['shift']());}}}(_0x4899,0x5de16));import{FUniver as _0x1ee018}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x4899(){const _0x3eae89=['moveFormulaRefOffset','length','filledRanges','getFormulaUsages','getFormulaUsagesAsA1','map','6783960VKfuDO','getAllFormulaError','24656CcHbWA','3qlVHaG','getRange','475378wQHRLY','getActiveWorkbook','2024964MyDMeK','startRow','getMaxColumns','_injector','100506lPmIER','getLintErrors','getMaxRows','get','480hUmVPO','formula','startColumn','getCellRaw','getAllFormulaUsages','287LOxven','_worksheet','extend','22hqOrZF','450277frUmTb','getAllDataValidationErrorAsync','push','2549480BXDeVX'];_0x4899=function(){return _0x3eae89;};return _0x4899();}import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x350275,FWorksheet as _0x2746fe,FRange as _0x5bfe7a}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x394104,toA1 as _0x34eae0}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x17d4f2}from'@univerjs/core';class C extends _0x1ee018{async[_0x2ec742(0xce)](){const _0x5cea73=_0x2ec742;return this[_0x5cea73(0xc8)]()[_0x5cea73(0xce)]();}}_0x1ee018[_0x2ec742(0xb6)](C);class U extends _0x350275{async[_0x2ec742(0xce)](){const _0x335a43=_0x2ec742,_0x461e3e=this[_0x335a43(0xc3)](),_0x41c689=await this[_0x335a43(0xb9)]();return{'formulaErrors':_0x461e3e,'dataValidationErrors':_0x41c689};}}_0x350275[_0x2ec742(0xb6)](U);class k extends _0x2746fe{async[_0x2ec742(0xbf)](){const _0x3d913f=_0x2ec742,_0x200c6d=this[_0x3d913f(0xcc)][_0x3d913f(0xd0)](_0x394104),_0x5f1f71=this[_0x3d913f(0xc6)](0x0,0x0,this[_0x3d913f(0xcf)]()+0x1,this['getMaxColumns']()+0x1)['getCellDataGrid']();return await _0x200c6d[_0x3d913f(0xd5)](_0x5f1f71);}async['getFormulaUsagesAsA1'](){const _0x2274a9=_0x2ec742;return(await this[_0x2274a9(0xbf)]())[_0x2274a9(0xc1)](_0x34eae0);}}_0x2746fe[_0x2ec742(0xb6)](k);class y extends _0x5bfe7a{async['getFormulaUsages'](){const _0x3f2de1=_0x2ec742,_0x15a6c6=this[_0x3f2de1(0xcc)][_0x3f2de1(0xd0)](_0x394104),_0x23e709=(({startRow:_0x3074c9,endRow:_0x2fb702,startColumn:_0x53df1a,endColumn:_0xf2229d})=>{const _0xf967e7=_0x3f2de1,_0x34966f=[];for(let _0x580a33=_0x3074c9;_0x580a33<=_0x2fb702;_0x580a33++){const _0x35c70f=[];for(let _0x27d138=_0x53df1a;_0x27d138<=_0xf2229d;_0x27d138++)_0x35c70f[_0xf967e7(0xba)](this[_0xf967e7(0xb5)][_0xf967e7(0xd4)](_0x580a33,_0x27d138));_0x34966f[_0xf967e7(0xba)](_0x35c70f);}return _0x34966f;})({'startRow':0x0,'endRow':this[_0x3f2de1(0xb5)][_0x3f2de1(0xcf)](),'startColumn':0x0,'endColumn':this[_0x3f2de1(0xb5)][_0x3f2de1(0xcb)]()}),_0x5ef725=await _0x15a6c6[_0x3f2de1(0xd5)](_0x23e709),_0x4ada94=this[_0x3f2de1(0xc6)](),_0x3a6945=[];for(let _0x2c18e9=0x0;_0x2c18e9<_0x5ef725[_0x3f2de1(0xbd)];_0x2c18e9++){const _0x481448=_0x5ef725[_0x2c18e9],_0x325970=_0x481448[_0x3f2de1(0xbe)],_0x3d52ad=[];for(let _0x11da73=0x0;_0x11da73<_0x325970[_0x3f2de1(0xbd)];_0x11da73++){const _0x187be3=_0x325970[_0x11da73],_0x1f16aa=_0x17d4f2(_0x187be3,_0x4ada94);_0x1f16aa&&_0x3d52ad['push'](_0x1f16aa);}if(_0x3d52ad[_0x3f2de1(0xbd)]>0x0){_0x481448[_0x3f2de1(0xbe)]=_0x3d52ad;const _0x371690=_0x3d52ad[0x0],_0x33c949=_0x371690['startRow']-_0x4ada94[_0x3f2de1(0xca)],_0x50e3ed=_0x371690[_0x3f2de1(0xd3)]-_0x4ada94['startColumn'];_0x481448[_0x3f2de1(0xd2)]=await _0x15a6c6[_0x3f2de1(0xbc)](_0x481448['formula'],_0x33c949,_0x50e3ed),_0x3a6945[_0x3f2de1(0xba)](_0x481448);}}return _0x3a6945;}async[_0x2ec742(0xc0)](){const _0xcde126=_0x2ec742;return(await this[_0xcde126(0xbf)]())['map'](_0x34eae0);}}function _0x2b66(_0x4f789f,_0x182175){const _0x48990d=_0x4899();return _0x2b66=function(_0x2b6632,_0x301962){_0x2b6632=_0x2b6632-0xb4;let _0x69c21b=_0x48990d[_0x2b6632];return _0x69c21b;},_0x2b66(_0x4f789f,_0x182175);}_0x5bfe7a[_0x2ec742(0xb6)](y);
1
+ const _0x574e9c=_0x3510;(function(_0x2063f8,_0x5c3530){const _0x290840=_0x3510,_0x507f3d=_0x2063f8();while(!![]){try{const _0x2e88de=-parseInt(_0x290840(0x108))/0x1*(-parseInt(_0x290840(0x10a))/0x2)+-parseInt(_0x290840(0x113))/0x3*(-parseInt(_0x290840(0x114))/0x4)+-parseInt(_0x290840(0x118))/0x5*(parseInt(_0x290840(0x111))/0x6)+-parseInt(_0x290840(0x121))/0x7+-parseInt(_0x290840(0x106))/0x8+-parseInt(_0x290840(0x122))/0x9+parseInt(_0x290840(0x10c))/0xa;if(_0x2e88de===_0x5c3530)break;else _0x507f3d['push'](_0x507f3d['shift']());}catch(_0x431bca){_0x507f3d['push'](_0x507f3d['shift']());}}}(_0x3e6e,0x897f5));import{FUniver as _0x109cba}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x2e1e4b,FWorksheet as _0x234950,FRange as _0x2475fb}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x2c2c07,toA1 as _0x3ec659}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x3b2920}from'@univerjs/core';class C extends _0x109cba{async[_0x574e9c(0x11f)](){const _0x3a4452=_0x574e9c;return this[_0x3a4452(0x109)]()[_0x3a4452(0x11f)]();}}_0x109cba[_0x574e9c(0x120)](C);class U extends _0x2e1e4b{async[_0x574e9c(0x11f)](){const _0x12f148=_0x574e9c,_0x2d6e70=this[_0x12f148(0x112)](),_0x2d4785=await this[_0x12f148(0x119)]();return{'formulaErrors':_0x2d6e70,'dataValidationErrors':_0x2d4785};}}_0x2e1e4b[_0x574e9c(0x120)](U);class k extends _0x234950{async[_0x574e9c(0x117)](){const _0x51d520=_0x574e9c,_0x37eb6a=this[_0x51d520(0x115)][_0x51d520(0x11b)](_0x2c2c07),_0x4cb468=this[_0x51d520(0x116)](0x0,0x0,this[_0x51d520(0x110)]()+0x1,this[_0x51d520(0x104)]()+0x1)[_0x51d520(0x11d)]();return await _0x37eb6a[_0x51d520(0x10d)](_0x4cb468);}async[_0x574e9c(0x11a)](){const _0x5155c1=_0x574e9c;return(await this[_0x5155c1(0x117)]())['map'](_0x3ec659);}}function _0x3510(_0xfc84c4,_0x3075b3){const _0x3e6e2a=_0x3e6e();return _0x3510=function(_0x35105a,_0x336747){_0x35105a=_0x35105a-0x104;let _0x2a6561=_0x3e6e2a[_0x35105a];return _0x2a6561;},_0x3510(_0xfc84c4,_0x3075b3);}_0x234950['extend'](k);function _0x3e6e(){const _0x58023d=['getCellRaw','279079vWsvLU','getActiveWorkbook','6geosQj','filledRanges','22300610Qnoomi','getAllFormulaUsages','moveFormulaRefOffset','_worksheet','getMaxRows','6hFtETI','getAllFormulaError','3XVbqUA','2164516kILxpk','_injector','getRange','getFormulaUsages','4138430ZivIBG','getAllDataValidationErrorAsync','getFormulaUsagesAsA1','get','push','getCellDataGrid','startRow','getLintErrors','extend','7460880mevreX','927225HCtboh','length','getMaxColumns','formula','8389496KEXobn'];_0x3e6e=function(){return _0x58023d;};return _0x3e6e();}class y extends _0x2475fb{async['getFormulaUsages'](){const _0x15df63=_0x574e9c,_0x139d8a=this[_0x15df63(0x115)][_0x15df63(0x11b)](_0x2c2c07),_0x39497f=(({startRow:_0x3c979e,endRow:_0x32dbae,startColumn:_0x24efb0,endColumn:_0x26a612})=>{const _0x264429=_0x15df63,_0x1eb3c4=[];for(let _0x5b07c3=_0x3c979e;_0x5b07c3<=_0x32dbae;_0x5b07c3++){const _0xba5b3a=[];for(let _0x43cf88=_0x24efb0;_0x43cf88<=_0x26a612;_0x43cf88++)_0xba5b3a[_0x264429(0x11c)](this[_0x264429(0x10f)][_0x264429(0x107)](_0x5b07c3,_0x43cf88));_0x1eb3c4[_0x264429(0x11c)](_0xba5b3a);}return _0x1eb3c4;})({'startRow':0x0,'endRow':this[_0x15df63(0x10f)][_0x15df63(0x110)](),'startColumn':0x0,'endColumn':this[_0x15df63(0x10f)][_0x15df63(0x104)]()}),_0xa7a769=await _0x139d8a[_0x15df63(0x10d)](_0x39497f),_0x5c285f=this[_0x15df63(0x116)](),_0x46e32f=[];for(let _0x2f7abf=0x0;_0x2f7abf<_0xa7a769[_0x15df63(0x123)];_0x2f7abf++){const _0x174fdd=_0xa7a769[_0x2f7abf],_0x3394cf=_0x174fdd[_0x15df63(0x10b)],_0x521fcd=[];for(let _0x1e007a=0x0;_0x1e007a<_0x3394cf[_0x15df63(0x123)];_0x1e007a++){const _0xa0e82c=_0x3394cf[_0x1e007a],_0x30936f=_0x3b2920(_0xa0e82c,_0x5c285f);_0x30936f&&_0x521fcd[_0x15df63(0x11c)](_0x30936f);}if(_0x521fcd[_0x15df63(0x123)]>0x0){_0x174fdd[_0x15df63(0x10b)]=_0x521fcd;const _0x153ea7=_0x521fcd[0x0],_0xdfe12c=_0x153ea7[_0x15df63(0x11e)]-_0x5c285f[_0x15df63(0x11e)],_0x4b761f=_0x153ea7['startColumn']-_0x5c285f['startColumn'];_0x174fdd[_0x15df63(0x105)]=await _0x139d8a[_0x15df63(0x10e)](_0x174fdd[_0x15df63(0x105)],_0xdfe12c,_0x4b761f),_0x46e32f[_0x15df63(0x11c)](_0x174fdd);}}return _0x46e32f;}async[_0x574e9c(0x11a)](){const _0x4bc938=_0x574e9c;return(await this[_0x4bc938(0x117)]())['map'](_0x3ec659);}}_0x2475fb[_0x574e9c(0x120)](y);