@univerjs-pro/sheets-mcp 0.12.2 → 0.12.3-experimental.20251204-1549a8e
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 +15 -15
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1235ef=_0x401f;(function(_0x420342,_0xdcd9cc){const _0x2e0b07=_0x401f,_0x2302ac=_0x420342();while(!![]){try{const _0x4e22e8=parseInt(_0x2e0b07(0x1b4))/0x1+parseInt(_0x2e0b07(0x1a9))/0x2+-parseInt(_0x2e0b07(0x1b5))/0x3+-parseInt(_0x2e0b07(0x1bd))/0x4+parseInt(_0x2e0b07(0x1be))/0x5+-parseInt(_0x2e0b07(0x1c4))/0x6*(parseInt(_0x2e0b07(0x1c3))/0x7)+parseInt(_0x2e0b07(0x1bf))/0x8;if(_0x4e22e8===_0xdcd9cc)break;else _0x2302ac['push'](_0x2302ac['shift']());}catch(_0x186784){_0x2302ac['push'](_0x2302ac['shift']());}}}(_0x39f0,0x4f98d));import{FUniver as _0x18becf}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x231763,FWorksheet as _0x18472d,FRange as _0x32cb4d}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x4c754d,toA1 as _0x151d5f}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x26c082}from'@univerjs/core';function _0x39f0(){const _0x40c788=['startRow','264152GhChzk','1851180ftTYch','_worksheet','push','getAllFormulaError','getActiveWorkbook','map','getFormulaUsages','filledRanges','1647540cXDrLe','1651075gCeDWH','7045920UxraXH','get','getMaxRows','extend','7UvzUzu','1833648SztjnA','370950rQFuHo','getLintErrors','length','startColumn','getCellDataGrid','getRange','_injector','getFormulaUsagesAsA1','formula','getAllFormulaUsages'];_0x39f0=function(){return _0x40c788;};return _0x39f0();}class C extends _0x18becf{async[_0x1235ef(0x1aa)](){const _0x295c3a=_0x1235ef;return this[_0x295c3a(0x1b9)]()[_0x295c3a(0x1aa)]();}}function _0x401f(_0x114dbd,_0x227d47){_0x114dbd=_0x114dbd-0x1a9;const _0x39f015=_0x39f0();let _0x401f44=_0x39f015[_0x114dbd];return _0x401f44;}_0x18becf[_0x1235ef(0x1c2)](C);class U extends _0x231763{async[_0x1235ef(0x1aa)](){const _0x553adb=_0x1235ef,_0x13ce79=this[_0x553adb(0x1b8)](),_0x36c092=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x13ce79,'dataValidationErrors':_0x36c092};}}_0x231763[_0x1235ef(0x1c2)](U);class k extends _0x18472d{async[_0x1235ef(0x1bb)](){const _0x2f040c=_0x1235ef,_0x166dc6=this['_injector'][_0x2f040c(0x1c0)](_0x4c754d),_0x4e9e52=this[_0x2f040c(0x1ae)](0x0,0x0,this['getMaxRows']()+0x1,this['getMaxColumns']()+0x1)[_0x2f040c(0x1ad)]();return await _0x166dc6[_0x2f040c(0x1b2)](_0x4e9e52);}async['getFormulaUsagesAsA1'](){const _0x5b7a9a=_0x1235ef;return(await this[_0x5b7a9a(0x1bb)]())[_0x5b7a9a(0x1ba)](_0x151d5f);}}_0x18472d[_0x1235ef(0x1c2)](k);class y extends _0x32cb4d{async['getFormulaUsages'](){const _0x409a28=_0x1235ef,_0x945543=this[_0x409a28(0x1af)][_0x409a28(0x1c0)](_0x4c754d),_0x159ff4=(({startRow:_0x49a9b2,endRow:_0x251a22,startColumn:_0xb0859d,endColumn:_0x277a2b})=>{const _0x3e9409=_0x409a28,_0x256dd7=[];for(let _0xc502b7=_0x49a9b2;_0xc502b7<=_0x251a22;_0xc502b7++){const _0x15a380=[];for(let _0x39c91d=_0xb0859d;_0x39c91d<=_0x277a2b;_0x39c91d++)_0x15a380[_0x3e9409(0x1b7)](this[_0x3e9409(0x1b6)]['getCellRaw'](_0xc502b7,_0x39c91d));_0x256dd7[_0x3e9409(0x1b7)](_0x15a380);}return _0x256dd7;})({'startRow':0x0,'endRow':this[_0x409a28(0x1b6)][_0x409a28(0x1c1)](),'startColumn':0x0,'endColumn':this[_0x409a28(0x1b6)]['getMaxColumns']()}),_0x390958=await _0x945543[_0x409a28(0x1b2)](_0x159ff4),_0x11f37f=this[_0x409a28(0x1ae)](),_0x40996f=[];for(let _0x3a2985=0x0;_0x3a2985<_0x390958['length'];_0x3a2985++){const _0x256adf=_0x390958[_0x3a2985],_0x331542=_0x256adf[_0x409a28(0x1bc)],_0x5f283d=[];for(let _0x46e4e5=0x0;_0x46e4e5<_0x331542[_0x409a28(0x1ab)];_0x46e4e5++){const _0x365796=_0x331542[_0x46e4e5],_0x329b6a=_0x26c082(_0x365796,_0x11f37f);_0x329b6a&&_0x5f283d[_0x409a28(0x1b7)](_0x329b6a);}if(_0x5f283d[_0x409a28(0x1ab)]>0x0){_0x256adf[_0x409a28(0x1bc)]=_0x5f283d;const _0x41d457=_0x5f283d[0x0],_0x32bdf3=_0x41d457['startRow']-_0x11f37f[_0x409a28(0x1b3)],_0x299852=_0x41d457[_0x409a28(0x1ac)]-_0x11f37f[_0x409a28(0x1ac)];_0x256adf[_0x409a28(0x1b1)]=await _0x945543['moveFormulaRefOffset'](_0x256adf[_0x409a28(0x1b1)],_0x32bdf3,_0x299852),_0x40996f[_0x409a28(0x1b7)](_0x256adf);}}return _0x40996f;}async[_0x1235ef(0x1b0)](){const _0x2edb3f=_0x1235ef;return(await this[_0x2edb3f(0x1bb)]())[_0x2edb3f(0x1ba)](_0x151d5f);}}_0x32cb4d['extend'](y);
|