@univerjs-pro/sheets-mcp 0.14.0 → 0.15.0-insiders.20251227-453e4ff

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x25cef9=_0x49ce;(function(_0x709777,_0x8099c){const _0x1c9d01=_0x49ce,_0x863616=_0x709777();while(!![]){try{const _0x3fecf2=parseInt(_0x1c9d01(0xdd))/0x1+parseInt(_0x1c9d01(0xde))/0x2*(-parseInt(_0x1c9d01(0xe1))/0x3)+-parseInt(_0x1c9d01(0xf7))/0x4+parseInt(_0x1c9d01(0xe0))/0x5+-parseInt(_0x1c9d01(0xef))/0x6*(parseInt(_0x1c9d01(0xf8))/0x7)+-parseInt(_0x1c9d01(0xee))/0x8*(parseInt(_0x1c9d01(0xf2))/0x9)+parseInt(_0x1c9d01(0xec))/0xa;if(_0x3fecf2===_0x8099c)break;else _0x863616['push'](_0x863616['shift']());}catch(_0x5449e8){_0x863616['push'](_0x863616['shift']());}}}(_0x1a17,0xdc4f6));import{FUniver as _0x3440e4}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x3bf9c1,FWorksheet as _0x310a62,FRange as _0x48e7b9}from'@univerjs/sheets/facade';function _0x1a17(){const _0x11a417=['822614XGcHFQ','18sKGojq','filledRanges','4492325RLZpAI','288609oQmwAC','getMaxRows','_worksheet','endColumn','length','_injector','firstOccurrence','getRange','getActiveWorkbook','getLintErrors','getAllFormulaUsages','21908710FVMFXS','getAllFormulaError','1241832vpEDcI','12ylrVJk','map','getFormulaUsagesAsA1','9ztEeQQ','get','getAllDataValidationErrorAsync','endRow','startRow','3592432JfrYPG','3816386dmqdwP','formula','push','getMaxColumns','getFormulaUsages','getCellRaw','extend','startColumn'];_0x1a17=function(){return _0x11a417;};return _0x1a17();}import{IFormulaUsageAnalyzer as _0xa8a543,toA1 as _0x1bd221}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x118555}from'@univerjs/core';class p extends _0x3440e4{async[_0x25cef9(0xea)](){const _0x3d2d92=_0x25cef9;return this[_0x3d2d92(0xe9)]()['getLintErrors']();}}function _0x49ce(_0x49bdd6,_0x413a4e){_0x49bdd6=_0x49bdd6-0xd7;const _0x1a17e2=_0x1a17();let _0x49ceea=_0x1a17e2[_0x49bdd6];return _0x49ceea;}_0x3440e4[_0x25cef9(0xdb)](p);class O extends _0x3bf9c1{async['getLintErrors'](){const _0x2b7bb9=_0x25cef9,_0x96597c=this[_0x2b7bb9(0xed)](),_0x5243fd=await this[_0x2b7bb9(0xf4)]();return{'formulaErrors':_0x96597c,'dataValidationErrors':_0x5243fd};}}_0x3bf9c1['extend'](O);class U extends _0x310a62{async['getFormulaUsages'](){const _0x591a18=_0x25cef9,_0x1571f4=this[_0x591a18(0xe6)][_0x591a18(0xf3)](_0xa8a543),_0x744b58=this[_0x591a18(0xe8)](0x0,0x0,this[_0x591a18(0xe2)](),this[_0x591a18(0xd8)]())['getCellDataGrid']();return await _0x1571f4[_0x591a18(0xeb)](_0x744b58);}async['getFormulaUsagesAsA1'](){const _0x3144a3=_0x25cef9;return(await this[_0x3144a3(0xd9)]())[_0x3144a3(0xf0)](_0x1bd221);}}_0x310a62[_0x25cef9(0xdb)](U);class k extends _0x48e7b9{async['getFormulaUsages'](){const _0x4d3e2c=_0x25cef9,_0xa9ec48=this[_0x4d3e2c(0xe6)][_0x4d3e2c(0xf3)](_0xa8a543),_0x5cce7c=(({startRow:_0x4de6b0,endRow:_0x5c4a87,startColumn:_0x2664ea,endColumn:_0x1be0c4})=>{const _0x3c8305=_0x4d3e2c,_0x1d53bc=[];for(let _0x2e9341=_0x4de6b0;_0x2e9341<=_0x5c4a87;_0x2e9341++){const _0xc2ea89=[];for(let _0x48e496=_0x2664ea;_0x48e496<=_0x1be0c4;_0x48e496++)_0xc2ea89[_0x3c8305(0xd7)](this[_0x3c8305(0xe3)][_0x3c8305(0xda)](_0x2e9341,_0x48e496));_0x1d53bc[_0x3c8305(0xd7)](_0xc2ea89);}return _0x1d53bc;})({'startRow':0x0,'endRow':this[_0x4d3e2c(0xe3)][_0x4d3e2c(0xe2)](),'startColumn':0x0,'endColumn':this[_0x4d3e2c(0xe3)][_0x4d3e2c(0xd8)]()}),_0x26cf48=await _0xa9ec48[_0x4d3e2c(0xeb)](_0x5cce7c),_0x142cd7=this[_0x4d3e2c(0xe8)](),_0x15114c=[];for(let _0x45e0ac=0x0;_0x45e0ac<_0x26cf48[_0x4d3e2c(0xe5)];_0x45e0ac++){const _0x5ae314=_0x26cf48[_0x45e0ac],_0x4510a2=_0x5ae314[_0x4d3e2c(0xdf)],_0x2434af=[];for(let _0xcb84f6=0x0;_0xcb84f6<_0x4510a2['length'];_0xcb84f6++){const _0x5b36a4=_0x4510a2[_0xcb84f6],_0x4a1993=_0x118555(_0x5b36a4,_0x142cd7);_0x4a1993&&_0x2434af[_0x4d3e2c(0xd7)](_0x4a1993);}if(_0x2434af['length']>0x0){if(_0x5ae314['filledRanges']=_0x2434af,!(_0x5ae314[_0x4d3e2c(0xe7)]['startRow']>=_0x142cd7[_0x4d3e2c(0xf6)]&&_0x5ae314[_0x4d3e2c(0xe7)][_0x4d3e2c(0xf6)]<=_0x142cd7[_0x4d3e2c(0xf5)]&&_0x5ae314['firstOccurrence'][_0x4d3e2c(0xdc)]>=_0x142cd7[_0x4d3e2c(0xdc)]&&_0x5ae314['firstOccurrence']['startColumn']<=_0x142cd7[_0x4d3e2c(0xe4)])){const _0xfab793=_0x2434af[0x0],_0x3e0aa1=_0xfab793[_0x4d3e2c(0xf6)]-_0x5ae314['firstOccurrence'][_0x4d3e2c(0xf6)],_0x4a6c14=_0xfab793[_0x4d3e2c(0xdc)]-_0x5ae314['firstOccurrence'][_0x4d3e2c(0xdc)];_0x5ae314[_0x4d3e2c(0xf9)]=await _0xa9ec48['moveFormulaRefOffset'](_0x5ae314[_0x4d3e2c(0xf9)],_0x4a6c14,_0x3e0aa1),_0x5ae314['firstOccurrence']={'startRow':_0xfab793[_0x4d3e2c(0xf6)],'endRow':_0xfab793['startRow'],'startColumn':_0xfab793[_0x4d3e2c(0xdc)],'endColumn':_0xfab793[_0x4d3e2c(0xdc)]};}_0x15114c['push'](_0x5ae314);}}return _0x15114c;}async[_0x25cef9(0xf1)](){const _0x12c2ab=_0x25cef9;return(await this[_0x12c2ab(0xd9)]())['map'](_0x1bd221);}}_0x48e7b9[_0x25cef9(0xdb)](k);
1
+ const _0x26eb5f=_0x59db;(function(_0x14bd4f,_0x2d5a2b){const _0x4ea4ce=_0x59db,_0x3ff21a=_0x14bd4f();while(!![]){try{const _0x2b2735=-parseInt(_0x4ea4ce(0x198))/0x1*(-parseInt(_0x4ea4ce(0x19e))/0x2)+-parseInt(_0x4ea4ce(0x193))/0x3*(-parseInt(_0x4ea4ce(0x18c))/0x4)+parseInt(_0x4ea4ce(0x19d))/0x5+parseInt(_0x4ea4ce(0x18e))/0x6*(parseInt(_0x4ea4ce(0x19a))/0x7)+parseInt(_0x4ea4ce(0x1a9))/0x8+-parseInt(_0x4ea4ce(0x19f))/0x9*(parseInt(_0x4ea4ce(0x18f))/0xa)+-parseInt(_0x4ea4ce(0x1ac))/0xb;if(_0x2b2735===_0x2d5a2b)break;else _0x3ff21a['push'](_0x3ff21a['shift']());}catch(_0x1cf310){_0x3ff21a['push'](_0x3ff21a['shift']());}}}(_0x19b5,0x9de10));import{FUniver as _0x24884f}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x19b5(){const _0x2be5a7=['8951dHqXWZ','getLintErrors','222369VsPnMJ','getAllFormulaError','get','5995925lPuNcI','244pVwxVc','207fvSvak','map','length','extend','_worksheet','getActiveWorkbook','filledRanges','startColumn','endColumn','firstOccurrence','8600256UnjDBB','push','getFormulaUsagesAsA1','40193769HnDFfp','getAllFormulaUsages','getCellDataGrid','4kaZhbY','_injector','222FDzCHa','416660Ubtyun','startRow','getRange','getFormulaUsages','2152053iieOET','getMaxColumns','getCellRaw','moveFormulaRefOffset','formula'];_0x19b5=function(){return _0x2be5a7;};return _0x19b5();}import'@univerjs/sheets-data-validation/facade';function _0x59db(_0x37b564,_0x315005){_0x37b564=_0x37b564-0x18b;const _0x19b521=_0x19b5();let _0x59dbf9=_0x19b521[_0x37b564];return _0x59dbf9;}import{FWorkbook as _0x2c18c7,FWorksheet as _0xad93ea,FRange as _0xc0425b}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x1055d0,toA1 as _0x431af9}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x450bb1}from'@univerjs/core';class p extends _0x24884f{async[_0x26eb5f(0x199)](){const _0x183bb0=_0x26eb5f;return this[_0x183bb0(0x1a4)]()[_0x183bb0(0x199)]();}}_0x24884f[_0x26eb5f(0x1a2)](p);class O extends _0x2c18c7{async[_0x26eb5f(0x199)](){const _0x2840cc=_0x26eb5f,_0x1abb19=this[_0x2840cc(0x19b)](),_0x56411d=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x1abb19,'dataValidationErrors':_0x56411d};}}_0x2c18c7['extend'](O);class U extends _0xad93ea{async[_0x26eb5f(0x192)](){const _0x246f91=_0x26eb5f,_0x23f2b5=this[_0x246f91(0x18d)]['get'](_0x1055d0),_0x424dec=this[_0x246f91(0x191)](0x0,0x0,this['getMaxRows'](),this[_0x246f91(0x194)]())[_0x246f91(0x18b)]();return await _0x23f2b5[_0x246f91(0x1ad)](_0x424dec);}async[_0x26eb5f(0x1ab)](){const _0x540a59=_0x26eb5f;return(await this[_0x540a59(0x192)]())[_0x540a59(0x1a0)](_0x431af9);}}_0xad93ea[_0x26eb5f(0x1a2)](U);class k extends _0xc0425b{async[_0x26eb5f(0x192)](){const _0x35501d=_0x26eb5f,_0x1afb34=this['_injector'][_0x35501d(0x19c)](_0x1055d0),_0x2d465c=(({startRow:_0x4b072a,endRow:_0x25eaba,startColumn:_0x29106a,endColumn:_0x387bac})=>{const _0x2a5ba9=_0x35501d,_0x14498c=[];for(let _0x9e8448=_0x4b072a;_0x9e8448<=_0x25eaba;_0x9e8448++){const _0x3662d4=[];for(let _0x53f65a=_0x29106a;_0x53f65a<=_0x387bac;_0x53f65a++)_0x3662d4[_0x2a5ba9(0x1aa)](this[_0x2a5ba9(0x1a3)][_0x2a5ba9(0x195)](_0x9e8448,_0x53f65a));_0x14498c[_0x2a5ba9(0x1aa)](_0x3662d4);}return _0x14498c;})({'startRow':0x0,'endRow':this[_0x35501d(0x1a3)]['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x35501d(0x1a3)][_0x35501d(0x194)]()}),_0x255c69=await _0x1afb34[_0x35501d(0x1ad)](_0x2d465c),_0x3e3535=this['getRange'](),_0x5415da=[];for(let _0x4b8f4e=0x0;_0x4b8f4e<_0x255c69[_0x35501d(0x1a1)];_0x4b8f4e++){const _0x52133a=_0x255c69[_0x4b8f4e],_0x719298=_0x52133a[_0x35501d(0x1a5)],_0x475735=[];for(let _0x35037b=0x0;_0x35037b<_0x719298['length'];_0x35037b++){const _0x175013=_0x719298[_0x35037b],_0x2f7535=_0x450bb1(_0x175013,_0x3e3535);_0x2f7535&&_0x475735[_0x35501d(0x1aa)](_0x2f7535);}if(_0x475735[_0x35501d(0x1a1)]>0x0){if(_0x52133a[_0x35501d(0x1a5)]=_0x475735,!(_0x52133a[_0x35501d(0x1a8)][_0x35501d(0x190)]>=_0x3e3535['startRow']&&_0x52133a[_0x35501d(0x1a8)][_0x35501d(0x190)]<=_0x3e3535['endRow']&&_0x52133a[_0x35501d(0x1a8)][_0x35501d(0x1a6)]>=_0x3e3535[_0x35501d(0x1a6)]&&_0x52133a['firstOccurrence'][_0x35501d(0x1a6)]<=_0x3e3535[_0x35501d(0x1a7)])){const _0x63c6c3=_0x475735[0x0],_0x39f6a5=_0x63c6c3[_0x35501d(0x190)]-_0x52133a['firstOccurrence'][_0x35501d(0x190)],_0xc58c52=_0x63c6c3[_0x35501d(0x1a6)]-_0x52133a[_0x35501d(0x1a8)][_0x35501d(0x1a6)];_0x52133a[_0x35501d(0x197)]=await _0x1afb34[_0x35501d(0x196)](_0x52133a['formula'],_0xc58c52,_0x39f6a5),_0x52133a[_0x35501d(0x1a8)]={'startRow':_0x63c6c3[_0x35501d(0x190)],'endRow':_0x63c6c3[_0x35501d(0x190)],'startColumn':_0x63c6c3[_0x35501d(0x1a6)],'endColumn':_0x63c6c3[_0x35501d(0x1a6)]};}_0x5415da['push'](_0x52133a);}}return _0x5415da;}async[_0x26eb5f(0x1ab)](){const _0x24d00e=_0x26eb5f;return(await this[_0x24d00e(0x192)]())[_0x24d00e(0x1a0)](_0x431af9);}}_0xc0425b[_0x26eb5f(0x1a2)](k);