@univerjs-pro/sheets-mcp 0.15.1-insiders.20260117-8ce4a01 → 0.15.2
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/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3274(){const _0x33027e=['_injector','@univerjs/core/facade','2872533oUaEWM','FWorkbook','toA1','@univerjs/sheets-formula/facade','getCellDataGrid','24345THTgGU','moveFormulaRefOffset','@univerjs/core','UniverCoreFacade','getActiveWorkbook','@univerjs/sheets/facade','filledRanges','extend','IStyleUsageAnalyzer','getCellRaw','getStyleUsagesAsA1','push','getAllDataValidationErrorAsync','FUniver','getFormulaUsagesAsA1','getSizeUsages','styleToA1','getLintErrors','551wdFLHn','9JHiEXz','getAllFormulaUsages','314090gvteLY','1509872xXquph','function','get','_worksheet','FRange','UniverCore','_workbook','getMaxColumns','getSizeUsagesAsA1','508eymHUo','getAllStyleUsages','formula','updateConfig','length','FWorksheet','firstOccurrence','getIntersectRange','getAllSizeUsages','18276aphitK','getRange','startColumn','getFormulaUsages','object','111714rWdBRu','map','956EjbQjU','2145wHsNvR','endRow','35AXTjRl','22iEPSmk','formulaToA1','getStyleUsages','startRow','IFormulaUsageAnalyzer','amd','UniverProSheetsMcp','getMaxRows','ISizeUsageAnalyzer'];_0x3274=function(){return _0x33027e;};return _0x3274();}function _0x1bc3(_0x1006be,_0x2df925){_0x1006be=_0x1006be-0x1a3;const _0x3274d4=_0x3274();let _0x1bc3ca=_0x3274d4[_0x1006be];return _0x1bc3ca;}(function(_0x5a8a1b,_0x1bfc25){const _0x9711c5=_0x1bc3,_0x1bfb06=_0x5a8a1b();while(!![]){try{const _0x5e6625=-parseInt(_0x9711c5(0x1e3))/0x1*(parseInt(_0x9711c5(0x1bd))/0x2)+parseInt(_0x9711c5(0x1cc))/0x3+parseInt(_0x9711c5(0x1ad))/0x4*(-parseInt(_0x9711c5(0x1d1))/0x5)+-parseInt(_0x9711c5(0x1bb))/0x6*(parseInt(_0x9711c5(0x1c0))/0x7)+parseInt(_0x9711c5(0x1a4))/0x8*(parseInt(_0x9711c5(0x1e4))/0x9)+parseInt(_0x9711c5(0x1a3))/0xa*(parseInt(_0x9711c5(0x1c1))/0xb)+parseInt(_0x9711c5(0x1b6))/0xc*(parseInt(_0x9711c5(0x1be))/0xd);if(_0x5e6625===_0x1bfc25)break;else _0x1bfb06['push'](_0x1bfb06['shift']());}catch(_0x306047){_0x1bfb06['push'](_0x1bfb06['shift']());}}}(_0x3274,0x76892),function(_0x159948,_0x2816bc){const _0x149264=_0x1bc3;typeof exports==_0x149264(0x1ba)&&typeof module<'u'?_0x2816bc(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==_0x149264(0x1a5)&&define[_0x149264(0x1c6)]?define([_0x149264(0x1cb),_0x149264(0x1cf),'@univerjs/sheets-data-validation/facade',_0x149264(0x1d6),'@univerjs-pro/sheets-mcp',_0x149264(0x1d3)],_0x2816bc):(_0x159948=typeof globalThis<'u'?globalThis:_0x159948||self,_0x2816bc(_0x159948[_0x149264(0x1d4)],_0x159948['UniverSheetsFormulaFacade'],_0x159948['UniverSheetsDataValidationFacade'],_0x159948['UniverSheetsFacade'],_0x159948[_0x149264(0x1c7)],_0x159948[_0x149264(0x1a9)]));}(this,function(_0x3ea8d0,_0x81f56,_0x255487,_0x19753e,_0x385364,_0x3e3cef){'use strict';const _0x491df8=_0x1bc3;class _0x49fe1f extends _0x3ea8d0[_0x491df8(0x1de)]{async[_0x491df8(0x1e2)](){const _0x419168=_0x491df8;return this[_0x419168(0x1d5)]()[_0x419168(0x1e2)]();}}_0x3ea8d0[_0x491df8(0x1de)][_0x491df8(0x1d8)](_0x49fe1f);class _0x3d8c12 extends _0x19753e['FWorkbook']{async[_0x491df8(0x1e2)](){const _0x16114b=_0x491df8,_0xd1ef2d=this['getAllFormulaError'](),_0x218044=await this[_0x16114b(0x1dd)]();return{'formulaErrors':_0xd1ef2d,'dataValidationErrors':_0x218044};}}_0x19753e[_0x491df8(0x1cd)][_0x491df8(0x1d8)](_0x3d8c12);class _0x33942b extends _0x19753e[_0x491df8(0x1b2)]{async['getFormulaUsages'](){const _0x5d2dce=_0x491df8,_0x4877a8=this[_0x5d2dce(0x1ca)][_0x5d2dce(0x1a6)](_0x385364['IFormulaUsageAnalyzer']),_0x29fc63=this['getRange'](0x0,0x0,this['getMaxRows'](),this[_0x5d2dce(0x1ab)]())[_0x5d2dce(0x1d0)]();return await _0x4877a8[_0x5d2dce(0x1e5)](_0x29fc63);}async[_0x491df8(0x1df)](){const _0x123007=_0x491df8;return(await this['getFormulaUsages']())[_0x123007(0x1bc)](_0x385364[_0x123007(0x1c2)]);}[_0x491df8(0x1c3)](_0x16284d){const _0x34ff90=_0x491df8,_0x2517bd=this['_injector']['get'](_0x385364['IStyleUsageAnalyzer']),_0x15d1d1=this[_0x34ff90(0x1b7)](0x0,0x0,this[_0x34ff90(0x1c8)](),this[_0x34ff90(0x1ab)]())[_0x34ff90(0x1d0)]();return _0x2517bd[_0x34ff90(0x1b0)](_0x16284d),_0x2517bd[_0x34ff90(0x1ae)](_0x15d1d1,this[_0x34ff90(0x1aa)],this[_0x34ff90(0x1a7)]);}[_0x491df8(0x1db)](_0x419479){const _0x97715c=_0x491df8;return this[_0x97715c(0x1c3)](_0x419479)['map'](_0x385364[_0x97715c(0x1e1)]);}[_0x491df8(0x1e0)](_0x2ec5ca){const _0x50d4d5=_0x491df8,_0x421ed1=this[_0x50d4d5(0x1ca)][_0x50d4d5(0x1a6)](_0x385364[_0x50d4d5(0x1c9)]);return _0x421ed1['updateConfig'](_0x2ec5ca),_0x421ed1[_0x50d4d5(0x1b5)](this[_0x50d4d5(0x1a7)]);}[_0x491df8(0x1ac)](_0x44f146){const _0x2d3399=_0x491df8,_0x2f1366=this['_injector'][_0x2d3399(0x1a6)](_0x385364[_0x2d3399(0x1c9)]);_0x2f1366['updateConfig'](_0x44f146);const _0x1921f2=_0x2f1366['getAllSizeUsages'](this[_0x2d3399(0x1a7)]);return _0x2f1366[_0x2d3399(0x1ce)](_0x1921f2);}}_0x19753e[_0x491df8(0x1b2)]['extend'](_0x33942b);class _0x442bd2 extends _0x19753e['FRange']{async[_0x491df8(0x1b9)](){const _0x58a3b1=_0x491df8,_0x3d9017=this[_0x58a3b1(0x1ca)][_0x58a3b1(0x1a6)](_0x385364[_0x58a3b1(0x1c5)]),_0x39ad42=(({startRow:_0x5a5ab6,endRow:_0x45ec92,startColumn:_0x3d5083,endColumn:_0x368445})=>{const _0x1463c0=_0x58a3b1,_0x58d9ca=[];for(let _0x52f5b0=_0x5a5ab6;_0x52f5b0<=_0x45ec92;_0x52f5b0++){const _0x562732=[];for(let _0x3c33ec=_0x3d5083;_0x3c33ec<=_0x368445;_0x3c33ec++)_0x562732[_0x1463c0(0x1dc)](this[_0x1463c0(0x1a7)]['getCellRaw'](_0x52f5b0,_0x3c33ec));_0x58d9ca[_0x1463c0(0x1dc)](_0x562732);}return _0x58d9ca;})({'startRow':0x0,'endRow':this[_0x58a3b1(0x1a7)][_0x58a3b1(0x1c8)](),'startColumn':0x0,'endColumn':this[_0x58a3b1(0x1a7)][_0x58a3b1(0x1ab)]()}),_0x33bc21=await _0x3d9017[_0x58a3b1(0x1e5)](_0x39ad42),_0x58b8cc=this[_0x58a3b1(0x1b7)](),_0x3ea5c8=[];for(let _0x5e1b59=0x0;_0x5e1b59<_0x33bc21['length'];_0x5e1b59++){const _0x1a69be=_0x33bc21[_0x5e1b59],_0x35a525=_0x1a69be[_0x58a3b1(0x1d7)],_0x4b13d1=[];for(let _0x40154b=0x0;_0x40154b<_0x35a525[_0x58a3b1(0x1b1)];_0x40154b++){const _0xb4e189=_0x35a525[_0x40154b],_0x54051a=_0x3e3cef[_0x58a3b1(0x1b4)](_0xb4e189,_0x58b8cc);_0x54051a&&_0x4b13d1['push'](_0x54051a);}if(_0x4b13d1['length']>0x0){if(_0x1a69be['filledRanges']=_0x4b13d1,!(_0x1a69be[_0x58a3b1(0x1b3)][_0x58a3b1(0x1c4)]>=_0x58b8cc[_0x58a3b1(0x1c4)]&&_0x1a69be[_0x58a3b1(0x1b3)][_0x58a3b1(0x1c4)]<=_0x58b8cc['endRow']&&_0x1a69be['firstOccurrence'][_0x58a3b1(0x1b8)]>=_0x58b8cc[_0x58a3b1(0x1b8)]&&_0x1a69be[_0x58a3b1(0x1b3)][_0x58a3b1(0x1b8)]<=_0x58b8cc['endColumn'])){const _0x10d48b=_0x4b13d1[0x0],_0x348bb3=_0x10d48b[_0x58a3b1(0x1c4)]-_0x1a69be[_0x58a3b1(0x1b3)][_0x58a3b1(0x1c4)],_0x1ce90c=_0x10d48b[_0x58a3b1(0x1b8)]-_0x1a69be[_0x58a3b1(0x1b3)][_0x58a3b1(0x1b8)];_0x1a69be[_0x58a3b1(0x1af)]=await _0x3d9017[_0x58a3b1(0x1d2)](_0x1a69be[_0x58a3b1(0x1af)],_0x1ce90c,_0x348bb3),_0x1a69be['firstOccurrence']={'startRow':_0x10d48b['startRow'],'endRow':_0x10d48b[_0x58a3b1(0x1c4)],'startColumn':_0x10d48b[_0x58a3b1(0x1b8)],'endColumn':_0x10d48b['startColumn']};}_0x3ea5c8['push'](_0x1a69be);}}return _0x3ea5c8;}async['getFormulaUsagesAsA1'](){return(await this['getFormulaUsages']())['map'](_0x385364['formulaToA1']);}[_0x491df8(0x1c3)](_0x25656e){const _0x321e03=_0x491df8,_0x3d09f8=this[_0x321e03(0x1ca)][_0x321e03(0x1a6)](_0x385364[_0x321e03(0x1d9)]),_0x45221a=(({startRow:_0xf3877f,endRow:_0x32c4f7,startColumn:_0x799e45,endColumn:_0x1890c8})=>{const _0x3261b2=_0x321e03,_0x5158dd=[];for(let _0x3e2930=_0xf3877f;_0x3e2930<=_0x32c4f7;_0x3e2930++){const _0x595947=[];for(let _0x480200=_0x799e45;_0x480200<=_0x1890c8;_0x480200++)_0x595947[_0x3261b2(0x1dc)](this[_0x3261b2(0x1a7)][_0x3261b2(0x1da)](_0x3e2930,_0x480200));_0x5158dd[_0x3261b2(0x1dc)](_0x595947);}return _0x5158dd;})({'startRow':0x0,'endRow':this[_0x321e03(0x1a7)][_0x321e03(0x1c8)](),'startColumn':0x0,'endColumn':this[_0x321e03(0x1a7)]['getMaxColumns']()});_0x3d09f8[_0x321e03(0x1b0)](_0x25656e);const _0x23b743=_0x3d09f8[_0x321e03(0x1ae)](_0x45221a,this[_0x321e03(0x1aa)],this[_0x321e03(0x1a7)]),_0x35b0c9=this['getRange'](),_0x396726=[];for(let _0x328d64=0x0;_0x328d64<_0x23b743['length'];_0x328d64++){const _0x12bf7f=_0x23b743[_0x328d64],_0x63a27e=_0x12bf7f[_0x321e03(0x1d7)],_0x5abbcc=[];for(let _0x38ce24=0x0;_0x38ce24<_0x63a27e['length'];_0x38ce24++){const _0x12a8fb=_0x63a27e[_0x38ce24],_0x235af1=_0x3e3cef['getIntersectRange'](_0x12a8fb,_0x35b0c9);_0x235af1&&_0x5abbcc[_0x321e03(0x1dc)](_0x235af1);}_0x5abbcc[_0x321e03(0x1b1)]>0x0&&(_0x12bf7f[_0x321e03(0x1d7)]=_0x5abbcc,_0x396726[_0x321e03(0x1dc)](_0x12bf7f));}return _0x396726;}[_0x491df8(0x1db)](_0x1b9d11){const _0x5098e8=_0x491df8;return this[_0x5098e8(0x1c3)](_0x1b9d11)[_0x5098e8(0x1bc)](_0x385364['styleToA1']);}[_0x491df8(0x1e0)](_0x3a05a9){const _0x45c698=_0x491df8,_0x1fc3db=this[_0x45c698(0x1ca)][_0x45c698(0x1a6)](_0x385364[_0x45c698(0x1c9)]),_0x2b6389=this[_0x45c698(0x1b7)]();return _0x1fc3db['updateConfig'](_0x3a05a9),_0x1fc3db[_0x45c698(0x1b5)](this[_0x45c698(0x1a7)],_0x2b6389['startRow'],_0x2b6389[_0x45c698(0x1bf)],_0x2b6389['startColumn'],_0x2b6389['endColumn']);}[_0x491df8(0x1ac)](_0xa24caf){const _0x3dec29=_0x491df8,_0x49758e=this['getSizeUsages'](_0xa24caf);return this['_injector'][_0x3dec29(0x1a6)](_0x385364[_0x3dec29(0x1c9)])[_0x3dec29(0x1ce)](_0x49758e);}}_0x19753e[_0x491df8(0x1a8)]['extend'](_0x442bd2);}));
|