@univerjs-pro/sheets-mcp 0.12.3 → 0.12.4

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 _0x18181f=_0x595d;(function(_0x3198e7,_0x5ef471){const _0x54f1c3=_0x595d,_0x66673=_0x3198e7();while(!![]){try{const _0x1effe8=parseInt(_0x54f1c3(0x6b))/0x1+parseInt(_0x54f1c3(0x83))/0x2+-parseInt(_0x54f1c3(0x86))/0x3+parseInt(_0x54f1c3(0x72))/0x4+parseInt(_0x54f1c3(0x6c))/0x5+parseInt(_0x54f1c3(0x79))/0x6+parseInt(_0x54f1c3(0x76))/0x7*(-parseInt(_0x54f1c3(0x6d))/0x8);if(_0x1effe8===_0x5ef471)break;else _0x66673['push'](_0x66673['shift']());}catch(_0x143246){_0x66673['push'](_0x66673['shift']());}}}(_0x5d99,0x79971));import{FUniver as _0x48b9f0}from'@univerjs/core/facade';function _0x595d(_0x214e8b,_0x3a1f80){const _0x5d99cf=_0x5d99();return _0x595d=function(_0x595dae,_0x24cca6){_0x595dae=_0x595dae-0x68;let _0xf2b3ce=_0x5d99cf[_0x595dae];return _0xf2b3ce;},_0x595d(_0x214e8b,_0x3a1f80);}import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x3f1525,FWorksheet as _0x3dcb6b,FRange as _0x516dd2}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x5d94cd,toA1 as _0x34d60c}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x15cb45}from'@univerjs/core';class C extends _0x48b9f0{async[_0x18181f(0x7d)](){const _0x1e38da=_0x18181f;return this[_0x1e38da(0x7c)]()[_0x1e38da(0x7d)]();}}_0x48b9f0[_0x18181f(0x73)](C);class U extends _0x3f1525{async[_0x18181f(0x7d)](){const _0x223c68=_0x18181f,_0x19c90d=this[_0x223c68(0x74)](),_0x43f5fe=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x19c90d,'dataValidationErrors':_0x43f5fe};}}_0x3f1525[_0x18181f(0x73)](U);class k extends _0x3dcb6b{async[_0x18181f(0x78)](){const _0x1beb64=_0x18181f,_0x313cef=this[_0x1beb64(0x71)][_0x1beb64(0x84)](_0x5d94cd),_0x400358=this[_0x1beb64(0x81)](0x0,0x0,this[_0x1beb64(0x77)]()+0x1,this[_0x1beb64(0x7f)]()+0x1)[_0x1beb64(0x85)]();return await _0x313cef['getAllFormulaUsages'](_0x400358);}async[_0x18181f(0x6e)](){const _0x22627a=_0x18181f;return(await this[_0x22627a(0x78)]())[_0x22627a(0x6a)](_0x34d60c);}}_0x3dcb6b['extend'](k);class y extends _0x516dd2{async[_0x18181f(0x78)](){const _0x5b614f=_0x18181f,_0x4d19a4=this[_0x5b614f(0x71)]['get'](_0x5d94cd),_0x29def0=(({startRow:_0x291e14,endRow:_0x46be91,startColumn:_0x2a9508,endColumn:_0x30e0e9})=>{const _0x2d6990=_0x5b614f,_0x378650=[];for(let _0x1c516a=_0x291e14;_0x1c516a<=_0x46be91;_0x1c516a++){const _0x1aa283=[];for(let _0x2f4acb=_0x2a9508;_0x2f4acb<=_0x30e0e9;_0x2f4acb++)_0x1aa283[_0x2d6990(0x7b)](this[_0x2d6990(0x68)][_0x2d6990(0x70)](_0x1c516a,_0x2f4acb));_0x378650[_0x2d6990(0x7b)](_0x1aa283);}return _0x378650;})({'startRow':0x0,'endRow':this[_0x5b614f(0x68)][_0x5b614f(0x77)](),'startColumn':0x0,'endColumn':this[_0x5b614f(0x68)][_0x5b614f(0x7f)]()}),_0x3fc193=await _0x4d19a4[_0x5b614f(0x7a)](_0x29def0),_0x571ba6=this['getRange'](),_0x5a5d6e=[];for(let _0x330fed=0x0;_0x330fed<_0x3fc193[_0x5b614f(0x69)];_0x330fed++){const _0x3681a5=_0x3fc193[_0x330fed],_0x26a666=_0x3681a5[_0x5b614f(0x80)],_0x209065=[];for(let _0x5cea0d=0x0;_0x5cea0d<_0x26a666[_0x5b614f(0x69)];_0x5cea0d++){const _0x3ecc99=_0x26a666[_0x5cea0d],_0x431ad=_0x15cb45(_0x3ecc99,_0x571ba6);_0x431ad&&_0x209065[_0x5b614f(0x7b)](_0x431ad);}if(_0x209065['length']>0x0){_0x3681a5[_0x5b614f(0x80)]=_0x209065;const _0x5c09b1=_0x209065[0x0],_0x407622=_0x5c09b1[_0x5b614f(0x82)]-_0x571ba6['startRow'],_0x4638d0=_0x5c09b1[_0x5b614f(0x7e)]-_0x571ba6[_0x5b614f(0x7e)];_0x3681a5[_0x5b614f(0x75)]=await _0x4d19a4[_0x5b614f(0x6f)](_0x3681a5[_0x5b614f(0x75)],_0x407622,_0x4638d0),_0x5a5d6e['push'](_0x3681a5);}}return _0x5a5d6e;}async[_0x18181f(0x6e)](){const _0x1d41d7=_0x18181f;return(await this[_0x1d41d7(0x78)]())['map'](_0x34d60c);}}function _0x5d99(){const _0x3a36e3=['getMaxColumns','filledRanges','getRange','startRow','984692nwFnQq','get','getCellDataGrid','256458kZmJEm','_worksheet','length','map','768952FdrPeC','224480wWRhHr','15391832aDUJws','getFormulaUsagesAsA1','moveFormulaRefOffset','getCellRaw','_injector','3402172FpoMZj','extend','getAllFormulaError','formula','7fWQSkj','getMaxRows','getFormulaUsages','2104566YpersA','getAllFormulaUsages','push','getActiveWorkbook','getLintErrors','startColumn'];_0x5d99=function(){return _0x3a36e3;};return _0x5d99();}_0x516dd2[_0x18181f(0x73)](y);
1
+ const _0x566be3=_0x131e;(function(_0x36c5ec,_0x24640b){const _0x5a8e92=_0x131e,_0x3d0692=_0x36c5ec();while(!![]){try{const _0x34ea90=-parseInt(_0x5a8e92(0x1d3))/0x1*(-parseInt(_0x5a8e92(0x1d4))/0x2)+-parseInt(_0x5a8e92(0x1d2))/0x3+parseInt(_0x5a8e92(0x1c6))/0x4+-parseInt(_0x5a8e92(0x1ce))/0x5*(parseInt(_0x5a8e92(0x1e5))/0x6)+-parseInt(_0x5a8e92(0x1d5))/0x7*(-parseInt(_0x5a8e92(0x1d0))/0x8)+-parseInt(_0x5a8e92(0x1e0))/0x9*(parseInt(_0x5a8e92(0x1df))/0xa)+parseInt(_0x5a8e92(0x1da))/0xb;if(_0x34ea90===_0x24640b)break;else _0x3d0692['push'](_0x3d0692['shift']());}catch(_0x10184d){_0x3d0692['push'](_0x3d0692['shift']());}}}(_0x4531,0xdb296));import{FUniver as _0x1b4897}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x4531(){const _0xdb8d4b=['getAllDataValidationErrorAsync','getCellDataGrid','getAllFormulaUsages','getFormulaUsages','10713846oXjESt','get','getMaxRows','getMaxColumns','map','110SBTVEG','1257462opxGvW','_worksheet','formula','getFormulaUsagesAsA1','length','22782cLvGbr','getLintErrors','5428144gTtxRS','extend','moveFormulaRefOffset','push','getRange','startColumn','filledRanges','startRow','1515juysFR','getAllFormulaError','11199112XCWRTa','_injector','2527563TfxWWl','5PHqJOW','278674sSjXIN','7DXQVMY'];_0x4531=function(){return _0xdb8d4b;};return _0x4531();}import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x199aa3,FWorksheet as _0x466957,FRange as _0x26f8e0}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x56f84a,toA1 as _0x4a169d}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x1052b1}from'@univerjs/core';class C extends _0x1b4897{async[_0x566be3(0x1e6)](){return this['getActiveWorkbook']()['getLintErrors']();}}_0x1b4897[_0x566be3(0x1c7)](C);class U extends _0x199aa3{async[_0x566be3(0x1e6)](){const _0x5c8d21=_0x566be3,_0xaceba7=this[_0x5c8d21(0x1cf)](),_0x3366ab=await this[_0x5c8d21(0x1d6)]();return{'formulaErrors':_0xaceba7,'dataValidationErrors':_0x3366ab};}}_0x199aa3[_0x566be3(0x1c7)](U);class k extends _0x466957{async[_0x566be3(0x1d9)](){const _0x118d9c=_0x566be3,_0x21d63f=this[_0x118d9c(0x1d1)][_0x118d9c(0x1db)](_0x56f84a),_0x237ba7=this[_0x118d9c(0x1ca)](0x0,0x0,this['getMaxRows']()+0x1,this['getMaxColumns']()+0x1)[_0x118d9c(0x1d7)]();return await _0x21d63f[_0x118d9c(0x1d8)](_0x237ba7);}async[_0x566be3(0x1e3)](){const _0xc4a541=_0x566be3;return(await this[_0xc4a541(0x1d9)]())[_0xc4a541(0x1de)](_0x4a169d);}}_0x466957[_0x566be3(0x1c7)](k);function _0x131e(_0x55b258,_0x5db7de){_0x55b258=_0x55b258-0x1c6;const _0x45314f=_0x4531();let _0x131ef7=_0x45314f[_0x55b258];return _0x131ef7;}class y extends _0x26f8e0{async[_0x566be3(0x1d9)](){const _0x24e1b5=_0x566be3,_0x51917a=this[_0x24e1b5(0x1d1)][_0x24e1b5(0x1db)](_0x56f84a),_0x1aa48e=(({startRow:_0x3f4bf2,endRow:_0x2fb637,startColumn:_0x4e4263,endColumn:_0x21dedc})=>{const _0x334223=_0x24e1b5,_0x10e949=[];for(let _0x5b41fe=_0x3f4bf2;_0x5b41fe<=_0x2fb637;_0x5b41fe++){const _0xf5dcb3=[];for(let _0x4f86d2=_0x4e4263;_0x4f86d2<=_0x21dedc;_0x4f86d2++)_0xf5dcb3[_0x334223(0x1c9)](this[_0x334223(0x1e1)]['getCellRaw'](_0x5b41fe,_0x4f86d2));_0x10e949['push'](_0xf5dcb3);}return _0x10e949;})({'startRow':0x0,'endRow':this[_0x24e1b5(0x1e1)][_0x24e1b5(0x1dc)](),'startColumn':0x0,'endColumn':this[_0x24e1b5(0x1e1)][_0x24e1b5(0x1dd)]()}),_0x18ec6e=await _0x51917a[_0x24e1b5(0x1d8)](_0x1aa48e),_0x1ad6b7=this[_0x24e1b5(0x1ca)](),_0x50dfb5=[];for(let _0x447f51=0x0;_0x447f51<_0x18ec6e['length'];_0x447f51++){const _0xec9c10=_0x18ec6e[_0x447f51],_0x112269=_0xec9c10[_0x24e1b5(0x1cc)],_0x547e2e=[];for(let _0x3fe086=0x0;_0x3fe086<_0x112269[_0x24e1b5(0x1e4)];_0x3fe086++){const _0x433cd2=_0x112269[_0x3fe086],_0x2393df=_0x1052b1(_0x433cd2,_0x1ad6b7);_0x2393df&&_0x547e2e[_0x24e1b5(0x1c9)](_0x2393df);}if(_0x547e2e['length']>0x0){_0xec9c10[_0x24e1b5(0x1cc)]=_0x547e2e;const _0x16e67e=_0x547e2e[0x0],_0x52deb0=_0x16e67e[_0x24e1b5(0x1cd)]-_0x1ad6b7[_0x24e1b5(0x1cd)],_0x5993d3=_0x16e67e[_0x24e1b5(0x1cb)]-_0x1ad6b7[_0x24e1b5(0x1cb)];_0xec9c10[_0x24e1b5(0x1e2)]=await _0x51917a[_0x24e1b5(0x1c8)](_0xec9c10['formula'],_0x52deb0,_0x5993d3),_0x50dfb5[_0x24e1b5(0x1c9)](_0xec9c10);}}return _0x50dfb5;}async[_0x566be3(0x1e3)](){const _0x21e7aa=_0x566be3;return(await this[_0x21e7aa(0x1d9)]())[_0x21e7aa(0x1de)](_0x4a169d);}}_0x26f8e0[_0x566be3(0x1c7)](y);