@univerjs-pro/sheets-mcp 0.15.1-insiders.20260117-8ce4a01 → 0.15.2-insiders.20260119-edc718c
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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x31b3b6=_0xd47c;(function(_0x100c47,_0x517fda){const _0x5e3d7c=_0xd47c,_0x553ee9=_0x100c47();while(!![]){try{const _0x162e42=parseInt(_0x5e3d7c(0x130))/0x1*(parseInt(_0x5e3d7c(0x11e))/0x2)+-parseInt(_0x5e3d7c(0x143))/0x3+parseInt(_0x5e3d7c(0x147))/0x4*(-parseInt(_0x5e3d7c(0x144))/0x5)+-parseInt(_0x5e3d7c(0x135))/0x6+-parseInt(_0x5e3d7c(0x11c))/0x7*(-parseInt(_0x5e3d7c(0x13a))/0x8)+-parseInt(_0x5e3d7c(0x125))/0x9*(-parseInt(_0x5e3d7c(0x127))/0xa)+parseInt(_0x5e3d7c(0x12b))/0xb*(parseInt(_0x5e3d7c(0x140))/0xc);if(_0x162e42===_0x517fda)break;else _0x553ee9['push'](_0x553ee9['shift']());}catch(_0x611d09){_0x553ee9['push'](_0x553ee9['shift']());}}}(_0x2ed7,0xa4eaf));import{FUniver as _0x2668d4}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x4a3506,FWorksheet as _0x300ef9,FRange as _0x1cbd1d}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x3a89bc,formulaToA1 as _0x13081a,IStyleUsageAnalyzer as _0x3c60c3,styleToA1 as _0x10cf5a,ISizeUsageAnalyzer as _0x21a65a}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0xfe3517}from'@univerjs/core';class z extends _0x2668d4{async[_0x31b3b6(0x131)](){const _0x285332=_0x31b3b6;return this[_0x285332(0x134)]()['getLintErrors']();}}function _0xd47c(_0x418939,_0x1fe264){_0x418939=_0x418939-0x11a;const _0x2ed7ce=_0x2ed7();let _0xd47cc1=_0x2ed7ce[_0x418939];return _0xd47cc1;}function _0x2ed7(){const _0x508105=['length','get','getFormulaUsagesAsA1','getAllFormulaError','getMaxRows','getStyleUsagesAsA1','27LYAwPs','getAllFormulaUsages','3313230VrdEVu','firstOccurrence','getAllDataValidationErrorAsync','getMaxColumns','2893ggRgIW','getCellDataGrid','startColumn','map','_injector','12293UzKSab','getLintErrors','startRow','getSizeUsages','getActiveWorkbook','2204526eEsiFX','getCellRaw','getFormulaUsages','getSizeUsagesAsA1','endColumn','808MOuYDN','filledRanges','_workbook','extend','getAllSizeUsages','endRow','63468Fhavtv','toA1','_worksheet','3251430LlVcoj','2497315rcBkXG','getRange','updateConfig','8ZfVSbH','formula','push','11291lBmYxp','getStyleUsages','94LbXpwr'];_0x2ed7=function(){return _0x508105;};return _0x2ed7();}_0x2668d4[_0x31b3b6(0x13d)](z);class _ extends _0x4a3506{async[_0x31b3b6(0x131)](){const _0x3c1e51=_0x31b3b6,_0x2b8f36=this[_0x3c1e51(0x122)](),_0x52b407=await this[_0x3c1e51(0x129)]();return{'formulaErrors':_0x2b8f36,'dataValidationErrors':_0x52b407};}}_0x4a3506['extend'](_);class x extends _0x300ef9{async[_0x31b3b6(0x137)](){const _0x2db27e=_0x31b3b6,_0x359740=this[_0x2db27e(0x12f)][_0x2db27e(0x120)](_0x3a89bc),_0x1105d9=this['getRange'](0x0,0x0,this[_0x2db27e(0x123)](),this[_0x2db27e(0x12a)]())[_0x2db27e(0x12c)]();return await _0x359740['getAllFormulaUsages'](_0x1105d9);}async[_0x31b3b6(0x121)](){const _0x4d4dfa=_0x31b3b6;return(await this['getFormulaUsages']())[_0x4d4dfa(0x12e)](_0x13081a);}[_0x31b3b6(0x11d)](_0x35ef8b){const _0x3ae812=_0x31b3b6,_0x124e78=this['_injector'][_0x3ae812(0x120)](_0x3c60c3),_0x7448be=this[_0x3ae812(0x145)](0x0,0x0,this[_0x3ae812(0x123)](),this[_0x3ae812(0x12a)]())[_0x3ae812(0x12c)]();return _0x124e78[_0x3ae812(0x146)](_0x35ef8b),_0x124e78['getAllStyleUsages'](_0x7448be,this[_0x3ae812(0x13c)],this[_0x3ae812(0x142)]);}[_0x31b3b6(0x124)](_0xf38634){const _0x84cb04=_0x31b3b6;return this[_0x84cb04(0x11d)](_0xf38634)['map'](_0x10cf5a);}[_0x31b3b6(0x133)](_0xbf1e80){const _0x28de1e=_0x31b3b6,_0x2af16e=this['_injector'][_0x28de1e(0x120)](_0x21a65a);return _0x2af16e[_0x28de1e(0x146)](_0xbf1e80),_0x2af16e['getAllSizeUsages'](this[_0x28de1e(0x142)]);}[_0x31b3b6(0x138)](_0x32635f){const _0x39f2b9=_0x31b3b6,_0x484483=this['_injector'][_0x39f2b9(0x120)](_0x21a65a);_0x484483[_0x39f2b9(0x146)](_0x32635f);const _0x2c14fb=_0x484483[_0x39f2b9(0x13e)](this[_0x39f2b9(0x142)]);return _0x484483['toA1'](_0x2c14fb);}}_0x300ef9[_0x31b3b6(0x13d)](x);class M extends _0x1cbd1d{async[_0x31b3b6(0x137)](){const _0x3cad98=_0x31b3b6,_0x11c645=this['_injector'][_0x3cad98(0x120)](_0x3a89bc),_0x392844=(({startRow:_0x5796de,endRow:_0x5a2e0b,startColumn:_0x9af687,endColumn:_0x2f32f6})=>{const _0x1cd746=_0x3cad98,_0x27f948=[];for(let _0x183bcb=_0x5796de;_0x183bcb<=_0x5a2e0b;_0x183bcb++){const _0x5c0b9e=[];for(let _0x21fe6d=_0x9af687;_0x21fe6d<=_0x2f32f6;_0x21fe6d++)_0x5c0b9e[_0x1cd746(0x11b)](this[_0x1cd746(0x142)]['getCellRaw'](_0x183bcb,_0x21fe6d));_0x27f948[_0x1cd746(0x11b)](_0x5c0b9e);}return _0x27f948;})({'startRow':0x0,'endRow':this[_0x3cad98(0x142)]['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x3cad98(0x142)][_0x3cad98(0x12a)]()}),_0x4357eb=await _0x11c645[_0x3cad98(0x126)](_0x392844),_0x4529d0=this['getRange'](),_0x2379db=[];for(let _0x32a115=0x0;_0x32a115<_0x4357eb[_0x3cad98(0x11f)];_0x32a115++){const _0x48f44f=_0x4357eb[_0x32a115],_0x58703b=_0x48f44f[_0x3cad98(0x13b)],_0x52766e=[];for(let _0x58ab2f=0x0;_0x58ab2f<_0x58703b[_0x3cad98(0x11f)];_0x58ab2f++){const _0x3ab8a7=_0x58703b[_0x58ab2f],_0x125839=_0xfe3517(_0x3ab8a7,_0x4529d0);_0x125839&&_0x52766e[_0x3cad98(0x11b)](_0x125839);}if(_0x52766e['length']>0x0){if(_0x48f44f[_0x3cad98(0x13b)]=_0x52766e,!(_0x48f44f[_0x3cad98(0x128)][_0x3cad98(0x132)]>=_0x4529d0[_0x3cad98(0x132)]&&_0x48f44f[_0x3cad98(0x128)][_0x3cad98(0x132)]<=_0x4529d0[_0x3cad98(0x13f)]&&_0x48f44f[_0x3cad98(0x128)][_0x3cad98(0x12d)]>=_0x4529d0['startColumn']&&_0x48f44f[_0x3cad98(0x128)][_0x3cad98(0x12d)]<=_0x4529d0[_0x3cad98(0x139)])){const _0x1a994c=_0x52766e[0x0],_0x1a61d4=_0x1a994c[_0x3cad98(0x132)]-_0x48f44f[_0x3cad98(0x128)]['startRow'],_0x1efde3=_0x1a994c[_0x3cad98(0x12d)]-_0x48f44f['firstOccurrence'][_0x3cad98(0x12d)];_0x48f44f['formula']=await _0x11c645['moveFormulaRefOffset'](_0x48f44f[_0x3cad98(0x11a)],_0x1efde3,_0x1a61d4),_0x48f44f['firstOccurrence']={'startRow':_0x1a994c[_0x3cad98(0x132)],'endRow':_0x1a994c[_0x3cad98(0x132)],'startColumn':_0x1a994c['startColumn'],'endColumn':_0x1a994c[_0x3cad98(0x12d)]};}_0x2379db[_0x3cad98(0x11b)](_0x48f44f);}}return _0x2379db;}async[_0x31b3b6(0x121)](){return(await this['getFormulaUsages']())['map'](_0x13081a);}[_0x31b3b6(0x11d)](_0x85207a){const _0x370185=_0x31b3b6,_0x5d37e2=this['_injector'][_0x370185(0x120)](_0x3c60c3),_0x3d52f5=(({startRow:_0x5f493a,endRow:_0x189cb8,startColumn:_0x1fe343,endColumn:_0x3c35ff})=>{const _0x1ea1d1=_0x370185,_0x15f96e=[];for(let _0x346fec=_0x5f493a;_0x346fec<=_0x189cb8;_0x346fec++){const _0x5228ab=[];for(let _0x41df2c=_0x1fe343;_0x41df2c<=_0x3c35ff;_0x41df2c++)_0x5228ab[_0x1ea1d1(0x11b)](this['_worksheet'][_0x1ea1d1(0x136)](_0x346fec,_0x41df2c));_0x15f96e[_0x1ea1d1(0x11b)](_0x5228ab);}return _0x15f96e;})({'startRow':0x0,'endRow':this[_0x370185(0x142)][_0x370185(0x123)](),'startColumn':0x0,'endColumn':this[_0x370185(0x142)]['getMaxColumns']()});_0x5d37e2['updateConfig'](_0x85207a);const _0x6e5c6e=_0x5d37e2['getAllStyleUsages'](_0x3d52f5,this[_0x370185(0x13c)],this[_0x370185(0x142)]),_0x424f55=this['getRange'](),_0x508e0c=[];for(let _0x3c07e5=0x0;_0x3c07e5<_0x6e5c6e[_0x370185(0x11f)];_0x3c07e5++){const _0x4fd77b=_0x6e5c6e[_0x3c07e5],_0x3738b1=_0x4fd77b[_0x370185(0x13b)],_0x37d073=[];for(let _0xe1993e=0x0;_0xe1993e<_0x3738b1['length'];_0xe1993e++){const _0x251461=_0x3738b1[_0xe1993e],_0x227a94=_0xfe3517(_0x251461,_0x424f55);_0x227a94&&_0x37d073[_0x370185(0x11b)](_0x227a94);}_0x37d073[_0x370185(0x11f)]>0x0&&(_0x4fd77b[_0x370185(0x13b)]=_0x37d073,_0x508e0c['push'](_0x4fd77b));}return _0x508e0c;}[_0x31b3b6(0x124)](_0x3f164b){const _0x4591b9=_0x31b3b6;return this[_0x4591b9(0x11d)](_0x3f164b)[_0x4591b9(0x12e)](_0x10cf5a);}[_0x31b3b6(0x133)](_0x49eb50){const _0x310bd6=_0x31b3b6,_0x12e637=this[_0x310bd6(0x12f)][_0x310bd6(0x120)](_0x21a65a),_0x4c96c6=this['getRange']();return _0x12e637[_0x310bd6(0x146)](_0x49eb50),_0x12e637[_0x310bd6(0x13e)](this['_worksheet'],_0x4c96c6[_0x310bd6(0x132)],_0x4c96c6['endRow'],_0x4c96c6[_0x310bd6(0x12d)],_0x4c96c6[_0x310bd6(0x139)]);}[_0x31b3b6(0x138)](_0x2d01ea){const _0x7368fd=_0x31b3b6,_0x576c41=this[_0x7368fd(0x133)](_0x2d01ea);return this['_injector'][_0x7368fd(0x120)](_0x21a65a)[_0x7368fd(0x141)](_0x576c41);}}_0x1cbd1d['extend'](M);
|