@univerjs-pro/sheets-mcp 0.13.0-insiders.20251216-1519cb7 → 0.13.0-insiders.20251220-0a5ea4d

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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4b3b(_0x5d2c50,_0x12be5d){_0x5d2c50=_0x5d2c50-0xb1;const _0x3e1ea7=_0x3e1e();let _0x4b3b3d=_0x3e1ea7[_0x5d2c50];return _0x4b3b3d;}function _0x3e1e(){const _0x2f16d1=['64ZmaZXK','startColumn','465IGfTIF','3239848LypbYe','7OKCZVf','getLintErrors','getCellDataGrid','length','moveFormulaRefOffset','9071XfUHFE','@univerjs/core/facade','getFormulaUsagesAsA1','map','@univerjs-pro/sheets-mcp','439777EDDQTx','firstOccurrence','FWorkbook','formula','9xiLCKJ','_injector','toA1','FRange','_worksheet','endColumn','getMaxColumns','24cYUUOi','object','getMaxRows','filledRanges','8183270NzKGYl','push','@univerjs/sheets-data-validation/facade','endRow','UniverSheetsFormulaFacade','getActiveWorkbook','300hqVFug','UniverProSheetsMcp','FUniver','getFormulaUsages','@univerjs/sheets-formula/facade','extend','UniverSheetsFacade','UniverCoreFacade','getAllFormulaError','startRow','function','858785XTDXOn','getAllDataValidationErrorAsync','1728sqVUhI','IFormulaUsageAnalyzer','getCellRaw','get','FWorksheet','getAllFormulaUsages','UniverCore','6118816aqQlJD','amd'];_0x3e1e=function(){return _0x2f16d1;};return _0x3e1e();}(function(_0x1fe2cf,_0x57516b){const _0x46f941=_0x4b3b,_0x3ec309=_0x1fe2cf();while(!![]){try{const _0x39191d=parseInt(_0x46f941(0xd8))/0x1*(-parseInt(_0x46f941(0xcf))/0x2)+-parseInt(_0x46f941(0xd1))/0x3*(parseInt(_0x46f941(0xc6))/0x4)+-parseInt(_0x46f941(0xc4))/0x5*(-parseInt(_0x46f941(0xe8))/0x6)+-parseInt(_0x46f941(0xd3))/0x7*(parseInt(_0x46f941(0xd2))/0x8)+parseInt(_0x46f941(0xe1))/0x9*(parseInt(_0x46f941(0xb3))/0xa)+parseInt(_0x46f941(0xcd))/0xb+-parseInt(_0x46f941(0xb9))/0xc*(parseInt(_0x46f941(0xdd))/0xd);if(_0x39191d===_0x57516b)break;else _0x3ec309['push'](_0x3ec309['shift']());}catch(_0x2069e9){_0x3ec309['push'](_0x3ec309['shift']());}}}(_0x3e1e,0x6ec29),function(_0x543725,_0x5e247b){const _0x1cd4a8=_0x4b3b;typeof exports==_0x1cd4a8(0xe9)&&typeof module<'u'?_0x5e247b(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade'),require('@univerjs/sheets/facade'),require('@univerjs-pro/sheets-mcp'),require('@univerjs/core')):typeof define==_0x1cd4a8(0xc3)&&define[_0x1cd4a8(0xce)]?define([_0x1cd4a8(0xd9),_0x1cd4a8(0xbd),_0x1cd4a8(0xb5),'@univerjs/sheets/facade',_0x1cd4a8(0xdc),'@univerjs/core'],_0x5e247b):(_0x543725=typeof globalThis<'u'?globalThis:_0x543725||self,_0x5e247b(_0x543725[_0x1cd4a8(0xc0)],_0x543725[_0x1cd4a8(0xb7)],_0x543725['UniverSheetsDataValidationFacade'],_0x543725[_0x1cd4a8(0xbf)],_0x543725[_0x1cd4a8(0xba)],_0x543725[_0x1cd4a8(0xcc)]));}(this,function(_0x5a71f9,_0x469859,_0x555e77,_0x3433f2,_0x2f14df,_0x203b03){'use strict';const _0x4eb8a3=_0x4b3b;class _0x4f8226 extends _0x5a71f9[_0x4eb8a3(0xbb)]{async[_0x4eb8a3(0xd4)](){const _0x529a61=_0x4eb8a3;return this[_0x529a61(0xb8)]()['getLintErrors']();}}_0x5a71f9['FUniver']['extend'](_0x4f8226);class _0x1c1643 extends _0x3433f2[_0x4eb8a3(0xdf)]{async[_0x4eb8a3(0xd4)](){const _0x3b3c24=_0x4eb8a3,_0x411c5d=this[_0x3b3c24(0xc1)](),_0x18c37c=await this[_0x3b3c24(0xc5)]();return{'formulaErrors':_0x411c5d,'dataValidationErrors':_0x18c37c};}}_0x3433f2['FWorkbook'][_0x4eb8a3(0xbe)](_0x1c1643);class _0x2699af extends _0x3433f2['FWorksheet']{async[_0x4eb8a3(0xbc)](){const _0x3a7e49=_0x4eb8a3,_0x3086aa=this[_0x3a7e49(0xe2)]['get'](_0x2f14df[_0x3a7e49(0xc7)]),_0x10c384=this['getRange'](0x0,0x0,this[_0x3a7e49(0xb1)]()+0x1,this['getMaxColumns']()+0x1)[_0x3a7e49(0xd5)]();return await _0x3086aa[_0x3a7e49(0xcb)](_0x10c384);}async['getFormulaUsagesAsA1'](){const _0x4aefeb=_0x4eb8a3;return(await this[_0x4aefeb(0xbc)]())['map'](_0x2f14df[_0x4aefeb(0xe3)]);}}_0x3433f2[_0x4eb8a3(0xca)][_0x4eb8a3(0xbe)](_0x2699af);class _0x111dd4 extends _0x3433f2[_0x4eb8a3(0xe4)]{async[_0x4eb8a3(0xbc)](){const _0x14bb28=_0x4eb8a3,_0x7ff008=this['_injector'][_0x14bb28(0xc9)](_0x2f14df[_0x14bb28(0xc7)]),_0x5c8538=(({startRow:_0x4840ba,endRow:_0x2d527e,startColumn:_0x387a33,endColumn:_0x266dee})=>{const _0x21b0c4=_0x14bb28,_0x1c4d17=[];for(let _0x9e192b=_0x4840ba;_0x9e192b<=_0x2d527e;_0x9e192b++){const _0x17f5ec=[];for(let _0x35a8d0=_0x387a33;_0x35a8d0<=_0x266dee;_0x35a8d0++)_0x17f5ec[_0x21b0c4(0xb4)](this[_0x21b0c4(0xe5)][_0x21b0c4(0xc8)](_0x9e192b,_0x35a8d0));_0x1c4d17[_0x21b0c4(0xb4)](_0x17f5ec);}return _0x1c4d17;})({'startRow':0x0,'endRow':this[_0x14bb28(0xe5)]['getMaxRows'](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x14bb28(0xe7)]()}),_0x26f46c=await _0x7ff008[_0x14bb28(0xcb)](_0x5c8538),_0x18c3d4=this['getRange'](),_0x470319=[];for(let _0x424057=0x0;_0x424057<_0x26f46c[_0x14bb28(0xd6)];_0x424057++){const _0x362139=_0x26f46c[_0x424057],_0x4a48d1=_0x362139['filledRanges'],_0x53c5f6=[];for(let _0x40ec72=0x0;_0x40ec72<_0x4a48d1[_0x14bb28(0xd6)];_0x40ec72++){const _0x442821=_0x4a48d1[_0x40ec72],_0x19a200=_0x203b03['getIntersectRange'](_0x442821,_0x18c3d4);_0x19a200&&_0x53c5f6['push'](_0x19a200);}if(_0x53c5f6[_0x14bb28(0xd6)]>0x0){if(_0x362139[_0x14bb28(0xb2)]=_0x53c5f6,!(_0x362139[_0x14bb28(0xde)]['startRow']>=_0x18c3d4[_0x14bb28(0xc2)]&&_0x362139[_0x14bb28(0xde)][_0x14bb28(0xc2)]<=_0x18c3d4[_0x14bb28(0xb6)]&&_0x362139[_0x14bb28(0xde)][_0x14bb28(0xd0)]>=_0x18c3d4[_0x14bb28(0xd0)]&&_0x362139['firstOccurrence'][_0x14bb28(0xd0)]<=_0x18c3d4[_0x14bb28(0xe6)])){const _0x173c28=_0x53c5f6[0x0],_0x7c5f08=_0x173c28[_0x14bb28(0xc2)]-_0x362139[_0x14bb28(0xde)][_0x14bb28(0xc2)],_0x3bcecb=_0x173c28[_0x14bb28(0xd0)]-_0x362139['firstOccurrence'][_0x14bb28(0xd0)];_0x362139['formula']=await _0x7ff008[_0x14bb28(0xd7)](_0x362139[_0x14bb28(0xe0)],_0x3bcecb,_0x7c5f08),_0x362139[_0x14bb28(0xde)]={'startRow':_0x173c28[_0x14bb28(0xc2)],'endRow':_0x173c28[_0x14bb28(0xc2)],'startColumn':_0x173c28[_0x14bb28(0xd0)],'endColumn':_0x173c28[_0x14bb28(0xd0)]};}_0x470319[_0x14bb28(0xb4)](_0x362139);}}return _0x470319;}async[_0x4eb8a3(0xda)](){const _0x54e3cd=_0x4eb8a3;return(await this['getFormulaUsages']())[_0x54e3cd(0xdb)](_0x2f14df[_0x54e3cd(0xe3)]);}}_0x3433f2[_0x4eb8a3(0xe4)]['extend'](_0x111dd4);}));
1
+ function _0x2988(){const _0x5d0d66=['IFormulaUsageAnalyzer','getFormulaUsages','getMaxColumns','UniverCoreFacade','3123810ZbIkrZ','getCellDataGrid','493354EVALsV','412774GVOPPG','moveFormulaRefOffset','UniverCore','@univerjs/core','endRow','FWorksheet','map','getMaxRows','FRange','2494600QAjZnK','get','UniverSheetsFacade','getAllDataValidationErrorAsync','_worksheet','767472EWqhlB','length','2580865XsLCrr','getLintErrors','toA1','UniverSheetsDataValidationFacade','_injector','extend','amd','FWorkbook','getCellRaw','1669110puuyRP','startRow','getRange','filledRanges','@univerjs/sheets-formula/facade','formula','push','@univerjs/sheets/facade','getFormulaUsagesAsA1','getActiveWorkbook','startColumn','UniverProSheetsMcp','firstOccurrence'];_0x2988=function(){return _0x5d0d66;};return _0x2988();}function _0x37b5(_0x147a6f,_0x4f919f){_0x147a6f=_0x147a6f-0x100;const _0x2988c6=_0x2988();let _0x37b53f=_0x2988c6[_0x147a6f];return _0x37b53f;}(function(_0x293a5e,_0x1c22ee){const _0x16ab7a=_0x37b5,_0x31b51c=_0x293a5e();while(!![]){try{const _0x3532c7=parseInt(_0x16ab7a(0x11a))/0x1+parseInt(_0x16ab7a(0x11b))/0x2+-parseInt(_0x16ab7a(0x129))/0x3+parseInt(_0x16ab7a(0x124))/0x4+-parseInt(_0x16ab7a(0x118))/0x5+parseInt(_0x16ab7a(0x107))/0x6+-parseInt(_0x16ab7a(0x12b))/0x7;if(_0x3532c7===_0x1c22ee)break;else _0x31b51c['push'](_0x31b51c['shift']());}catch(_0x10ac41){_0x31b51c['push'](_0x31b51c['shift']());}}}(_0x2988,0x56027),function(_0x37a84d,_0x633837){const _0x4fbeaa=_0x37b5;typeof exports=='object'&&typeof module<'u'?_0x633837(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade'),require('@univerjs/sheets/facade'),require('@univerjs-pro/sheets-mcp'),require('@univerjs/core')):typeof define=='function'&&define[_0x4fbeaa(0x104)]?define(['@univerjs/core/facade',_0x4fbeaa(0x10b),'@univerjs/sheets-data-validation/facade',_0x4fbeaa(0x10e),'@univerjs-pro/sheets-mcp',_0x4fbeaa(0x11e)],_0x633837):(_0x37a84d=typeof globalThis<'u'?globalThis:_0x37a84d||self,_0x633837(_0x37a84d[_0x4fbeaa(0x117)],_0x37a84d['UniverSheetsFormulaFacade'],_0x37a84d[_0x4fbeaa(0x101)],_0x37a84d[_0x4fbeaa(0x126)],_0x37a84d[_0x4fbeaa(0x112)],_0x37a84d[_0x4fbeaa(0x11d)]));}(this,function(_0x7fd6f7,_0x41b43d,_0x4892b7,_0x2d0673,_0x325e22,_0x4dca1c){'use strict';const _0x9a3e06=_0x37b5;class _0x17ab67 extends _0x7fd6f7['FUniver']{async['getLintErrors'](){const _0x2f6556=_0x37b5;return this[_0x2f6556(0x110)]()[_0x2f6556(0x12c)]();}}_0x7fd6f7['FUniver'][_0x9a3e06(0x103)](_0x17ab67);class _0x224939 extends _0x2d0673['FWorkbook']{async[_0x9a3e06(0x12c)](){const _0x3ed236=_0x9a3e06,_0x553bb1=this['getAllFormulaError'](),_0x526897=await this[_0x3ed236(0x127)]();return{'formulaErrors':_0x553bb1,'dataValidationErrors':_0x526897};}}_0x2d0673[_0x9a3e06(0x105)][_0x9a3e06(0x103)](_0x224939);class _0x5b9ed5 extends _0x2d0673[_0x9a3e06(0x120)]{async[_0x9a3e06(0x115)](){const _0x1aec3d=_0x9a3e06,_0xfa894d=this[_0x1aec3d(0x102)][_0x1aec3d(0x125)](_0x325e22[_0x1aec3d(0x114)]),_0x568fd9=this['getRange'](0x0,0x0,this['getMaxRows'](),this[_0x1aec3d(0x116)]())[_0x1aec3d(0x119)]();return await _0xfa894d['getAllFormulaUsages'](_0x568fd9);}async['getFormulaUsagesAsA1'](){const _0x482ede=_0x9a3e06;return(await this['getFormulaUsages']())[_0x482ede(0x121)](_0x325e22[_0x482ede(0x100)]);}}_0x2d0673[_0x9a3e06(0x120)][_0x9a3e06(0x103)](_0x5b9ed5);class _0xd65355 extends _0x2d0673[_0x9a3e06(0x123)]{async[_0x9a3e06(0x115)](){const _0x4f61f5=_0x9a3e06,_0x1a8746=this[_0x4f61f5(0x102)][_0x4f61f5(0x125)](_0x325e22[_0x4f61f5(0x114)]),_0x2489d8=(({startRow:_0x17f37b,endRow:_0xb3347c,startColumn:_0x58d28f,endColumn:_0x533854})=>{const _0x63c48d=_0x4f61f5,_0x8b5c68=[];for(let _0x5b36c2=_0x17f37b;_0x5b36c2<=_0xb3347c;_0x5b36c2++){const _0x1544be=[];for(let _0x4dfa89=_0x58d28f;_0x4dfa89<=_0x533854;_0x4dfa89++)_0x1544be[_0x63c48d(0x10d)](this[_0x63c48d(0x128)][_0x63c48d(0x106)](_0x5b36c2,_0x4dfa89));_0x8b5c68['push'](_0x1544be);}return _0x8b5c68;})({'startRow':0x0,'endRow':this[_0x4f61f5(0x128)][_0x4f61f5(0x122)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x4f61f5(0x116)]()}),_0x42ecc1=await _0x1a8746['getAllFormulaUsages'](_0x2489d8),_0x229692=this[_0x4f61f5(0x109)](),_0x320cbf=[];for(let _0xd28357=0x0;_0xd28357<_0x42ecc1['length'];_0xd28357++){const _0x3f978b=_0x42ecc1[_0xd28357],_0x49a75d=_0x3f978b[_0x4f61f5(0x10a)],_0x58e140=[];for(let _0x45bae4=0x0;_0x45bae4<_0x49a75d[_0x4f61f5(0x12a)];_0x45bae4++){const _0x47062e=_0x49a75d[_0x45bae4],_0x5234a1=_0x4dca1c['getIntersectRange'](_0x47062e,_0x229692);_0x5234a1&&_0x58e140['push'](_0x5234a1);}if(_0x58e140[_0x4f61f5(0x12a)]>0x0){if(_0x3f978b[_0x4f61f5(0x10a)]=_0x58e140,!(_0x3f978b['firstOccurrence'][_0x4f61f5(0x108)]>=_0x229692['startRow']&&_0x3f978b[_0x4f61f5(0x113)][_0x4f61f5(0x108)]<=_0x229692[_0x4f61f5(0x11f)]&&_0x3f978b['firstOccurrence']['startColumn']>=_0x229692[_0x4f61f5(0x111)]&&_0x3f978b[_0x4f61f5(0x113)]['startColumn']<=_0x229692['endColumn'])){const _0x4d7c0f=_0x58e140[0x0],_0x373ef9=_0x4d7c0f[_0x4f61f5(0x108)]-_0x3f978b[_0x4f61f5(0x113)][_0x4f61f5(0x108)],_0x5723e5=_0x4d7c0f[_0x4f61f5(0x111)]-_0x3f978b[_0x4f61f5(0x113)][_0x4f61f5(0x111)];_0x3f978b[_0x4f61f5(0x10c)]=await _0x1a8746[_0x4f61f5(0x11c)](_0x3f978b[_0x4f61f5(0x10c)],_0x5723e5,_0x373ef9),_0x3f978b[_0x4f61f5(0x113)]={'startRow':_0x4d7c0f[_0x4f61f5(0x108)],'endRow':_0x4d7c0f[_0x4f61f5(0x108)],'startColumn':_0x4d7c0f[_0x4f61f5(0x111)],'endColumn':_0x4d7c0f[_0x4f61f5(0x111)]};}_0x320cbf[_0x4f61f5(0x10d)](_0x3f978b);}}return _0x320cbf;}async[_0x9a3e06(0x10f)](){const _0x2b8305=_0x9a3e06;return(await this[_0x2b8305(0x115)]())[_0x2b8305(0x121)](_0x325e22['toA1']);}}_0x2d0673[_0x9a3e06(0x123)]['extend'](_0xd65355);}));