@univerjs-pro/sheets-mcp 0.12.4-insiders.20251211-c28f914 → 0.12.4-insiders.20251212-6c41730

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xebda34=_0x28c3;function _0x28c3(_0x5594b9,_0x3f547a){_0x5594b9=_0x5594b9-0xa4;const _0x4e59a4=_0x4e59();let _0x28c3ff=_0x4e59a4[_0x5594b9];return _0x28c3ff;}(function(_0x2a9db8,_0x219756){const _0x3a6e86=_0x28c3,_0x3a26d4=_0x2a9db8();while(!![]){try{const _0x3de2ef=parseInt(_0x3a6e86(0xb5))/0x1*(parseInt(_0x3a6e86(0xb8))/0x2)+parseInt(_0x3a6e86(0xad))/0x3+parseInt(_0x3a6e86(0xae))/0x4+parseInt(_0x3a6e86(0xa4))/0x5+parseInt(_0x3a6e86(0xaa))/0x6+parseInt(_0x3a6e86(0xbc))/0x7+parseInt(_0x3a6e86(0xcd))/0x8*(-parseInt(_0x3a6e86(0xa9))/0x9);if(_0x3de2ef===_0x219756)break;else _0x3a26d4['push'](_0x3a26d4['shift']());}catch(_0x1786fc){_0x3a26d4['push'](_0x3a26d4['shift']());}}}(_0x4e59,0xee025));const d=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const o=require('@univerjs/sheets/facade'),m=require('@univerjs-pro/sheets-mcp'),F=require('@univerjs/core');class C extends d['FUniver']{async[_0xebda34(0xb1)](){const _0x269c0b=_0xebda34;return this[_0x269c0b(0xb6)]()[_0x269c0b(0xb1)]();}}d[_0xebda34(0xa6)][_0xebda34(0xb0)](C);class A extends o[_0xebda34(0xb7)]{async[_0xebda34(0xb1)](){const _0x8b3315=_0xebda34,_0x7f33d7=this[_0x8b3315(0xaf)](),_0x860327=await this[_0x8b3315(0xbe)]();return{'formulaErrors':_0x7f33d7,'dataValidationErrors':_0x860327};}}function _0x4e59(){const _0x584b42=['_worksheet','getAllDataValidationErrorAsync','get','startColumn','getMaxColumns','IFormulaUsageAnalyzer','getFormulaUsagesAsA1','startRow','getIntersectRange','map','formula','moveFormulaRefOffset','firstOccurrence','toA1','getAllFormulaUsages','endRow','8AQRZes','6252895tcNBaB','getCellDataGrid','FUniver','filledRanges','length','55252278OAKohv','2627388injMlX','getRange','endColumn','2260245INHXug','5720268GfSFEi','getAllFormulaError','extend','getLintErrors','getFormulaUsages','getCellRaw','FRange','8OmKcsD','getActiveWorkbook','FWorkbook','445928GDCfsR','_injector','push','FWorksheet','10208492RvFZyJ'];_0x4e59=function(){return _0x584b42;};return _0x4e59();}o[_0xebda34(0xb7)][_0xebda34(0xb0)](A);class k extends o['FWorksheet']{async[_0xebda34(0xb2)](){const _0x4ecb9=_0xebda34,_0x58ef5d=this[_0x4ecb9(0xb9)]['get'](m[_0x4ecb9(0xc2)]),_0x28e246=this[_0x4ecb9(0xab)](0x0,0x0,this['getMaxRows']()+0x1,this[_0x4ecb9(0xc1)]()+0x1)[_0x4ecb9(0xa5)]();return await _0x58ef5d[_0x4ecb9(0xcb)](_0x28e246);}async[_0xebda34(0xc3)](){const _0x7e3fa3=_0xebda34;return(await this[_0x7e3fa3(0xb2)]())[_0x7e3fa3(0xc6)](m[_0x7e3fa3(0xca)]);}}o[_0xebda34(0xbb)][_0xebda34(0xb0)](k);class x extends o[_0xebda34(0xb4)]{async[_0xebda34(0xb2)](){const _0x4fb36e=_0xebda34,_0xcd062a=this[_0x4fb36e(0xb9)][_0x4fb36e(0xbf)](m['IFormulaUsageAnalyzer']),_0x4d5caf=(({startRow:_0x44d7f4,endRow:_0xf90f77,startColumn:_0x2146f5,endColumn:_0xda62f9})=>{const _0x1085a3=_0x4fb36e,_0x40c4e6=[];for(let _0x1e2238=_0x44d7f4;_0x1e2238<=_0xf90f77;_0x1e2238++){const _0x2c9d80=[];for(let _0x3906f0=_0x2146f5;_0x3906f0<=_0xda62f9;_0x3906f0++)_0x2c9d80[_0x1085a3(0xba)](this[_0x1085a3(0xbd)][_0x1085a3(0xb3)](_0x1e2238,_0x3906f0));_0x40c4e6[_0x1085a3(0xba)](_0x2c9d80);}return _0x40c4e6;})({'startRow':0x0,'endRow':this[_0x4fb36e(0xbd)]['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x4fb36e(0xbd)]['getMaxColumns']()}),_0xb4c8df=await _0xcd062a[_0x4fb36e(0xcb)](_0x4d5caf),_0x1c5383=this[_0x4fb36e(0xab)](),_0x4cdbc3=[];for(let _0x3d5dc6=0x0;_0x3d5dc6<_0xb4c8df['length'];_0x3d5dc6++){const _0x39ad80=_0xb4c8df[_0x3d5dc6],_0x319db5=_0x39ad80['filledRanges'],_0x40eaf8=[];for(let _0x4b29bc=0x0;_0x4b29bc<_0x319db5['length'];_0x4b29bc++){const _0x4ffdf5=_0x319db5[_0x4b29bc],_0x475959=F[_0x4fb36e(0xc5)](_0x4ffdf5,_0x1c5383);_0x475959&&_0x40eaf8[_0x4fb36e(0xba)](_0x475959);}if(_0x40eaf8[_0x4fb36e(0xa8)]>0x0){if(_0x39ad80[_0x4fb36e(0xa7)]=_0x40eaf8,!(_0x39ad80[_0x4fb36e(0xc9)][_0x4fb36e(0xc4)]>=_0x1c5383[_0x4fb36e(0xc4)]&&_0x39ad80[_0x4fb36e(0xc9)]['startRow']<=_0x1c5383[_0x4fb36e(0xcc)]&&_0x39ad80[_0x4fb36e(0xc9)][_0x4fb36e(0xc0)]>=_0x1c5383[_0x4fb36e(0xc0)]&&_0x39ad80[_0x4fb36e(0xc9)][_0x4fb36e(0xc0)]<=_0x1c5383[_0x4fb36e(0xac)])){const _0x14fb56=_0x40eaf8[0x0],_0x482298=_0x14fb56[_0x4fb36e(0xc4)]-_0x39ad80['firstOccurrence'][_0x4fb36e(0xc4)],_0x61b0e6=_0x14fb56['startColumn']-_0x39ad80[_0x4fb36e(0xc9)][_0x4fb36e(0xc0)];_0x39ad80[_0x4fb36e(0xc7)]=await _0xcd062a[_0x4fb36e(0xc8)](_0x39ad80['formula'],_0x61b0e6,_0x482298),_0x39ad80[_0x4fb36e(0xc9)]={'startRow':_0x14fb56[_0x4fb36e(0xc4)],'endRow':_0x14fb56[_0x4fb36e(0xc4)],'startColumn':_0x14fb56[_0x4fb36e(0xc0)],'endColumn':_0x14fb56[_0x4fb36e(0xc0)]};}_0x4cdbc3['push'](_0x39ad80);}}return _0x4cdbc3;}async[_0xebda34(0xc3)](){const _0x4f1f0d=_0xebda34;return(await this[_0x4f1f0d(0xb2)]())[_0x4f1f0d(0xc6)](m[_0x4f1f0d(0xca)]);}}o[_0xebda34(0xb4)]['extend'](x);
1
+ 'use strict';function _0x4729(_0x2a4cf9,_0x136908){_0x2a4cf9=_0x2a4cf9-0xe0;const _0x55ca33=_0x55ca();let _0x47297d=_0x55ca33[_0x2a4cf9];return _0x47297d;}const _0x334170=_0x4729;(function(_0x7fdad6,_0x17e3bc){const _0xe71119=_0x4729,_0x2e39e1=_0x7fdad6();while(!![]){try{const _0x247802=parseInt(_0xe71119(0xff))/0x1*(parseInt(_0xe71119(0xe3))/0x2)+-parseInt(_0xe71119(0x104))/0x3*(-parseInt(_0xe71119(0xe5))/0x4)+parseInt(_0xe71119(0xf2))/0x5+parseInt(_0xe71119(0x105))/0x6+parseInt(_0xe71119(0xfb))/0x7*(parseInt(_0xe71119(0x107))/0x8)+parseInt(_0xe71119(0xeb))/0x9+-parseInt(_0xe71119(0xf5))/0xa;if(_0x247802===_0x17e3bc)break;else _0x2e39e1['push'](_0x2e39e1['shift']());}catch(_0x5916c7){_0x2e39e1['push'](_0x2e39e1['shift']());}}}(_0x55ca,0xa8688));function _0x55ca(){const _0x469088=['push','length','40650680EmIRbb','get','IFormulaUsageAnalyzer','firstOccurrence','formula','startColumn','14IeKKqP','map','getRange','getCellRaw','1XApIyY','FWorksheet','startRow','filledRanges','getFormulaUsagesAsA1','23277sMhEZc','1176012wQJCuL','FRange','5153584IoElSH','getMaxColumns','getAllDataValidationErrorAsync','getAllFormulaUsages','106766XmLcpL','FWorkbook','592xSGmxb','endColumn','_worksheet','getActiveWorkbook','_injector','getMaxRows','11122578ZiCXxk','moveFormulaRefOffset','getFormulaUsages','getLintErrors','getIntersectRange','toA1','extend','4164565aevIIf'];_0x55ca=function(){return _0x469088;};return _0x55ca();}const d=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const o=require('@univerjs/sheets/facade'),m=require('@univerjs-pro/sheets-mcp'),F=require('@univerjs/core');class C extends d['FUniver']{async['getLintErrors'](){const _0x47d7da=_0x4729;return this[_0x47d7da(0xe8)]()['getLintErrors']();}}d['FUniver'][_0x334170(0xf1)](C);class A extends o[_0x334170(0xe4)]{async[_0x334170(0xee)](){const _0x5cca7a=_0x334170,_0x2f4120=this['getAllFormulaError'](),_0x570f0a=await this[_0x5cca7a(0xe1)]();return{'formulaErrors':_0x2f4120,'dataValidationErrors':_0x570f0a};}}o[_0x334170(0xe4)][_0x334170(0xf1)](A);class k extends o[_0x334170(0x100)]{async[_0x334170(0xed)](){const _0x319ebc=_0x334170,_0x19545f=this[_0x319ebc(0xe9)][_0x319ebc(0xf6)](m[_0x319ebc(0xf7)]),_0x29a862=this[_0x319ebc(0xfd)](0x0,0x0,this['getMaxRows']()+0x1,this[_0x319ebc(0xe0)]()+0x1)['getCellDataGrid']();return await _0x19545f[_0x319ebc(0xe2)](_0x29a862);}async[_0x334170(0x103)](){const _0x4b9fa5=_0x334170;return(await this[_0x4b9fa5(0xed)]())[_0x4b9fa5(0xfc)](m[_0x4b9fa5(0xf0)]);}}o['FWorksheet'][_0x334170(0xf1)](k);class x extends o[_0x334170(0x106)]{async[_0x334170(0xed)](){const _0x31ab78=_0x334170,_0x3e7830=this[_0x31ab78(0xe9)]['get'](m['IFormulaUsageAnalyzer']),_0x3029d6=(({startRow:_0x5b13b2,endRow:_0x39796d,startColumn:_0x458ff7,endColumn:_0x535c9e})=>{const _0x3275c6=_0x31ab78,_0x2413b4=[];for(let _0x1aad8e=_0x5b13b2;_0x1aad8e<=_0x39796d;_0x1aad8e++){const _0x32e93b=[];for(let _0x6bd9b0=_0x458ff7;_0x6bd9b0<=_0x535c9e;_0x6bd9b0++)_0x32e93b[_0x3275c6(0xf3)](this[_0x3275c6(0xe7)][_0x3275c6(0xfe)](_0x1aad8e,_0x6bd9b0));_0x2413b4[_0x3275c6(0xf3)](_0x32e93b);}return _0x2413b4;})({'startRow':0x0,'endRow':this[_0x31ab78(0xe7)][_0x31ab78(0xea)](),'startColumn':0x0,'endColumn':this[_0x31ab78(0xe7)][_0x31ab78(0xe0)]()}),_0x10f1d5=await _0x3e7830['getAllFormulaUsages'](_0x3029d6),_0x4a9013=this['getRange'](),_0x18473c=[];for(let _0x5ed0b3=0x0;_0x5ed0b3<_0x10f1d5[_0x31ab78(0xf4)];_0x5ed0b3++){const _0x239906=_0x10f1d5[_0x5ed0b3],_0x592e5b=_0x239906[_0x31ab78(0x102)],_0xde642d=[];for(let _0x4ba9e3=0x0;_0x4ba9e3<_0x592e5b[_0x31ab78(0xf4)];_0x4ba9e3++){const _0x15370c=_0x592e5b[_0x4ba9e3],_0x241708=F[_0x31ab78(0xef)](_0x15370c,_0x4a9013);_0x241708&&_0xde642d[_0x31ab78(0xf3)](_0x241708);}if(_0xde642d['length']>0x0){if(_0x239906[_0x31ab78(0x102)]=_0xde642d,!(_0x239906[_0x31ab78(0xf8)][_0x31ab78(0x101)]>=_0x4a9013[_0x31ab78(0x101)]&&_0x239906[_0x31ab78(0xf8)][_0x31ab78(0x101)]<=_0x4a9013['endRow']&&_0x239906[_0x31ab78(0xf8)]['startColumn']>=_0x4a9013['startColumn']&&_0x239906[_0x31ab78(0xf8)][_0x31ab78(0xfa)]<=_0x4a9013[_0x31ab78(0xe6)])){const _0x26cd6c=_0xde642d[0x0],_0x2187a3=_0x26cd6c[_0x31ab78(0x101)]-_0x239906[_0x31ab78(0xf8)][_0x31ab78(0x101)],_0x41699d=_0x26cd6c[_0x31ab78(0xfa)]-_0x239906[_0x31ab78(0xf8)][_0x31ab78(0xfa)];_0x239906[_0x31ab78(0xf9)]=await _0x3e7830[_0x31ab78(0xec)](_0x239906[_0x31ab78(0xf9)],_0x41699d,_0x2187a3),_0x239906[_0x31ab78(0xf8)]={'startRow':_0x26cd6c[_0x31ab78(0x101)],'endRow':_0x26cd6c[_0x31ab78(0x101)],'startColumn':_0x26cd6c['startColumn'],'endColumn':_0x26cd6c['startColumn']};}_0x18473c[_0x31ab78(0xf3)](_0x239906);}}return _0x18473c;}async['getFormulaUsagesAsA1'](){const _0x575768=_0x334170;return(await this['getFormulaUsages']())[_0x575768(0xfc)](m[_0x575768(0xf0)]);}}o[_0x334170(0x106)][_0x334170(0xf1)](x);