@univerjs-pro/sheets-mcp 0.15.3 → 0.15.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/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 +12 -12
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x325c76=_0xde54;(function(_0x733ff9,_0xa17cb){const _0x36096c=_0xde54,_0x243e16=_0x733ff9();while(!![]){try{const _0x148b44=parseInt(_0x36096c(0x18c))/0x1*(parseInt(_0x36096c(0x192))/0x2)+-parseInt(_0x36096c(0x19a))/0x3+-parseInt(_0x36096c(0x1ac))/0x4+-parseInt(_0x36096c(0x1b4))/0x5*(parseInt(_0x36096c(0x1b7))/0x6)+-parseInt(_0x36096c(0x19f))/0x7+parseInt(_0x36096c(0x1ab))/0x8*(-parseInt(_0x36096c(0x193))/0x9)+parseInt(_0x36096c(0x1b1))/0xa*(parseInt(_0x36096c(0x1b9))/0xb);if(_0x148b44===_0xa17cb)break;else _0x243e16['push'](_0x243e16['shift']());}catch(_0x3c173e){_0x243e16['push'](_0x243e16['shift']());}}}(_0x4f2c,0x9e2fe));function _0x4f2c(){const _0x2c1a76=['push','getFormulaUsages','getActiveWorkbook','7968gbQmTt','145352QWTpRX','getMaxRows','startColumn','styleToA1','getMaxColumns','4980FLDRsB','getStyleUsages','map','201405ldWFNO','get','formula','192VLUsAI','toA1','85998TKjJCP','FWorkbook','FUniver','filledRanges','FWorksheet','endColumn','ISizeUsageAnalyzer','getLintErrors','getCellDataGrid','firstOccurrence','getAllStyleUsages','1gMAJSf','getRange','getFormulaUsagesAsA1','_worksheet','extend','FRange','1812332itMyRF','11178utlOOS','startRow','getAllFormulaError','formulaToA1','updateConfig','length','getAllFormulaUsages','3479187LbUNmP','getCellRaw','endRow','getIntersectRange','IStyleUsageAnalyzer','3006535abZSkQ','IFormulaUsageAnalyzer','getAllDataValidationErrorAsync','getStyleUsagesAsA1','getSizeUsages','_injector','getSizeUsagesAsA1','_workbook','getAllSizeUsages'];_0x4f2c=function(){return _0x2c1a76;};return _0x4f2c();}const U=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const f=require('@univerjs/sheets/facade'),g=require('@univerjs-pro/sheets-mcp'),m=require('@univerjs/core');class y extends U[_0x325c76(0x1bb)]{async['getLintErrors'](){const _0x16ef29=_0x325c76;return this[_0x16ef29(0x1aa)]()[_0x16ef29(0x188)]();}}U['FUniver']['extend'](y);class C extends f[_0x325c76(0x1ba)]{async[_0x325c76(0x188)](){const _0x44b72b=_0x325c76,_0xd733b9=this[_0x44b72b(0x195)](),_0x1a079b=await this[_0x44b72b(0x1a1)]();return{'formulaErrors':_0xd733b9,'dataValidationErrors':_0x1a079b};}}function _0xde54(_0x3ad1d0,_0xbc573a){_0x3ad1d0=_0x3ad1d0-0x187;const _0x4f2c3c=_0x4f2c();let _0xde5426=_0x4f2c3c[_0x3ad1d0];return _0xde5426;}f[_0x325c76(0x1ba)][_0x325c76(0x190)](C);class z extends f['FWorksheet']{async[_0x325c76(0x1a9)](){const _0x1d8548=_0x325c76,_0x100c51=this[_0x1d8548(0x1a4)]['get'](g[_0x1d8548(0x1a0)]),_0x3d8a7b=this['getRange'](0x0,0x0,this[_0x1d8548(0x1ad)](),this[_0x1d8548(0x1b0)]())[_0x1d8548(0x189)]();return await _0x100c51[_0x1d8548(0x199)](_0x3d8a7b);}async['getFormulaUsagesAsA1'](){const _0xa68fc=_0x325c76;return(await this[_0xa68fc(0x1a9)]())[_0xa68fc(0x1b3)](g[_0xa68fc(0x196)]);}[_0x325c76(0x1b2)](_0x42ba9d){const _0x113b75=_0x325c76,_0x1deb37=this[_0x113b75(0x1a4)][_0x113b75(0x1b5)](g['IStyleUsageAnalyzer']),_0x458984=this[_0x113b75(0x18d)](0x0,0x0,this[_0x113b75(0x1ad)](),this[_0x113b75(0x1b0)]())[_0x113b75(0x189)]();return _0x1deb37[_0x113b75(0x197)](_0x42ba9d),_0x1deb37['getAllStyleUsages'](_0x458984,this['_workbook'],this[_0x113b75(0x18f)]);}[_0x325c76(0x1a2)](_0x4d1814){const _0x2bf82e=_0x325c76;return this['getStyleUsages'](_0x4d1814)[_0x2bf82e(0x1b3)](g[_0x2bf82e(0x1af)]);}[_0x325c76(0x1a3)](_0x1721d9){const _0x169702=_0x325c76,_0x472fce=this[_0x169702(0x1a4)][_0x169702(0x1b5)](g[_0x169702(0x187)]);return _0x472fce['updateConfig'](_0x1721d9),_0x472fce[_0x169702(0x1a7)](this[_0x169702(0x18f)]);}[_0x325c76(0x1a5)](_0x2e0b77){const _0x66817=_0x325c76,_0x18dc12=this[_0x66817(0x1a4)][_0x66817(0x1b5)](g[_0x66817(0x187)]);_0x18dc12[_0x66817(0x197)](_0x2e0b77);const _0x20d4bf=_0x18dc12[_0x66817(0x1a7)](this[_0x66817(0x18f)]);return _0x18dc12['toA1'](_0x20d4bf);}}f[_0x325c76(0x1bd)][_0x325c76(0x190)](z);class S extends f[_0x325c76(0x191)]{async['getFormulaUsages'](){const _0x5cc5cf=_0x325c76,_0x3a5d00=this['_injector'][_0x5cc5cf(0x1b5)](g['IFormulaUsageAnalyzer']),_0x367b40=(({startRow:_0x2877c8,endRow:_0x4cd0a4,startColumn:_0x144e45,endColumn:_0x11801b})=>{const _0x223001=_0x5cc5cf,_0x2b7b97=[];for(let _0x55d7a3=_0x2877c8;_0x55d7a3<=_0x4cd0a4;_0x55d7a3++){const _0x3fae61=[];for(let _0x4ff59e=_0x144e45;_0x4ff59e<=_0x11801b;_0x4ff59e++)_0x3fae61[_0x223001(0x1a8)](this[_0x223001(0x18f)][_0x223001(0x19b)](_0x55d7a3,_0x4ff59e));_0x2b7b97[_0x223001(0x1a8)](_0x3fae61);}return _0x2b7b97;})({'startRow':0x0,'endRow':this[_0x5cc5cf(0x18f)]['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x5cc5cf(0x18f)][_0x5cc5cf(0x1b0)]()}),_0xe44155=await _0x3a5d00[_0x5cc5cf(0x199)](_0x367b40),_0xcd5219=this[_0x5cc5cf(0x18d)](),_0x1d24bd=[];for(let _0x1c223e=0x0;_0x1c223e<_0xe44155[_0x5cc5cf(0x198)];_0x1c223e++){const _0x36f180=_0xe44155[_0x1c223e],_0x2123e4=_0x36f180[_0x5cc5cf(0x1bc)],_0x3147a8=[];for(let _0x1df1ed=0x0;_0x1df1ed<_0x2123e4['length'];_0x1df1ed++){const _0x17b8db=_0x2123e4[_0x1df1ed],_0x30fcf4=m[_0x5cc5cf(0x19d)](_0x17b8db,_0xcd5219);_0x30fcf4&&_0x3147a8[_0x5cc5cf(0x1a8)](_0x30fcf4);}if(_0x3147a8[_0x5cc5cf(0x198)]>0x0){if(_0x36f180['filledRanges']=_0x3147a8,!(_0x36f180['firstOccurrence'][_0x5cc5cf(0x194)]>=_0xcd5219[_0x5cc5cf(0x194)]&&_0x36f180[_0x5cc5cf(0x18a)][_0x5cc5cf(0x194)]<=_0xcd5219[_0x5cc5cf(0x19c)]&&_0x36f180[_0x5cc5cf(0x18a)]['startColumn']>=_0xcd5219['startColumn']&&_0x36f180[_0x5cc5cf(0x18a)][_0x5cc5cf(0x1ae)]<=_0xcd5219['endColumn'])){const _0x56b7fd=_0x3147a8[0x0],_0x54bef4=_0x56b7fd[_0x5cc5cf(0x194)]-_0x36f180['firstOccurrence'][_0x5cc5cf(0x194)],_0x47cd56=_0x56b7fd[_0x5cc5cf(0x1ae)]-_0x36f180[_0x5cc5cf(0x18a)][_0x5cc5cf(0x1ae)];_0x36f180[_0x5cc5cf(0x1b6)]=await _0x3a5d00['moveFormulaRefOffset'](_0x36f180[_0x5cc5cf(0x1b6)],_0x47cd56,_0x54bef4),_0x36f180[_0x5cc5cf(0x18a)]={'startRow':_0x56b7fd[_0x5cc5cf(0x194)],'endRow':_0x56b7fd[_0x5cc5cf(0x194)],'startColumn':_0x56b7fd[_0x5cc5cf(0x1ae)],'endColumn':_0x56b7fd[_0x5cc5cf(0x1ae)]};}_0x1d24bd[_0x5cc5cf(0x1a8)](_0x36f180);}}return _0x1d24bd;}async[_0x325c76(0x18e)](){const _0x32511a=_0x325c76;return(await this[_0x32511a(0x1a9)]())[_0x32511a(0x1b3)](g['formulaToA1']);}[_0x325c76(0x1b2)](_0x5b8eb5){const _0x486492=_0x325c76,_0x5ec7cd=this['_injector'][_0x486492(0x1b5)](g[_0x486492(0x19e)]),_0x32ecbe=(({startRow:_0x428439,endRow:_0x4ab43e,startColumn:_0x4c4b31,endColumn:_0x184475})=>{const _0x5b7955=_0x486492,_0x23f7f5=[];for(let _0xed0a97=_0x428439;_0xed0a97<=_0x4ab43e;_0xed0a97++){const _0x528784=[];for(let _0xc720e4=_0x4c4b31;_0xc720e4<=_0x184475;_0xc720e4++)_0x528784[_0x5b7955(0x1a8)](this[_0x5b7955(0x18f)][_0x5b7955(0x19b)](_0xed0a97,_0xc720e4));_0x23f7f5[_0x5b7955(0x1a8)](_0x528784);}return _0x23f7f5;})({'startRow':0x0,'endRow':this[_0x486492(0x18f)]['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x486492(0x18f)]['getMaxColumns']()});_0x5ec7cd[_0x486492(0x197)](_0x5b8eb5);const _0x141eb9=_0x5ec7cd[_0x486492(0x18b)](_0x32ecbe,this[_0x486492(0x1a6)],this[_0x486492(0x18f)]),_0x11f3d6=this['getRange'](),_0x10283b=[];for(let _0x292653=0x0;_0x292653<_0x141eb9[_0x486492(0x198)];_0x292653++){const _0x49405d=_0x141eb9[_0x292653],_0x63b73b=_0x49405d[_0x486492(0x1bc)],_0x40307b=[];for(let _0x11a58f=0x0;_0x11a58f<_0x63b73b[_0x486492(0x198)];_0x11a58f++){const _0x4c90f0=_0x63b73b[_0x11a58f],_0x20f15c=m[_0x486492(0x19d)](_0x4c90f0,_0x11f3d6);_0x20f15c&&_0x40307b[_0x486492(0x1a8)](_0x20f15c);}_0x40307b[_0x486492(0x198)]>0x0&&(_0x49405d[_0x486492(0x1bc)]=_0x40307b,_0x10283b[_0x486492(0x1a8)](_0x49405d));}return _0x10283b;}[_0x325c76(0x1a2)](_0x97c993){const _0x17084b=_0x325c76;return this['getStyleUsages'](_0x97c993)[_0x17084b(0x1b3)](g[_0x17084b(0x1af)]);}[_0x325c76(0x1a3)](_0x12f82b){const _0x74f947=_0x325c76,_0x37912a=this[_0x74f947(0x1a4)][_0x74f947(0x1b5)](g[_0x74f947(0x187)]),_0x466092=this['getRange']();return _0x37912a[_0x74f947(0x197)](_0x12f82b),_0x37912a[_0x74f947(0x1a7)](this['_worksheet'],_0x466092[_0x74f947(0x194)],_0x466092['endRow'],_0x466092[_0x74f947(0x1ae)],_0x466092[_0x74f947(0x1be)]);}['getSizeUsagesAsA1'](_0x3246e1){const _0x4e3ec5=_0x325c76,_0x234b4f=this[_0x4e3ec5(0x1a3)](_0x3246e1);return this[_0x4e3ec5(0x1a4)][_0x4e3ec5(0x1b5)](g[_0x4e3ec5(0x187)])[_0x4e3ec5(0x1b8)](_0x234b4f);}}f['FRange'][_0x325c76(0x190)](S);
|