@univerjs-pro/sheets-mcp 0.15.0-insiders.20260107-3441c7a → 0.15.0-insiders.20260108-47c73e3
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/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x560098=_0x5417;(function(_0x40a9be,_0x1997b3){const _0x299d39=_0x5417,_0x3f8860=_0x40a9be();while(!![]){try{const _0x29d21b=-parseInt(_0x299d39(0x8e))/0x1+-parseInt(_0x299d39(0x9f))/0x2+-parseInt(_0x299d39(0x7a))/0x3*(parseInt(_0x299d39(0x77))/0x4)+-parseInt(_0x299d39(0x82))/0x5*(parseInt(_0x299d39(0x6d))/0x6)+-parseInt(_0x299d39(0x7d))/0x7*(parseInt(_0x299d39(0x98))/0x8)+-parseInt(_0x299d39(0x74))/0x9*(-parseInt(_0x299d39(0x85))/0xa)+-parseInt(_0x299d39(0xa0))/0xb*(-parseInt(_0x299d39(0x78))/0xc);if(_0x29d21b===_0x1997b3)break;else _0x3f8860['push'](_0x3f8860['shift']());}catch(_0xa28029){_0x3f8860['push'](_0x3f8860['shift']());}}}(_0x346d,0xe2be6));function _0x5417(_0x801679,_0x5673c){_0x801679=_0x801679-0x6c;const _0x346db2=_0x346d();let _0x541713=_0x346db2[_0x801679];return _0x541713;}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[_0x560098(0x8f)]{async['getLintErrors'](){const _0x241d3a=_0x560098;return this['getActiveWorkbook']()[_0x241d3a(0x8d)]();}}U[_0x560098(0x8f)][_0x560098(0x87)](y);class C extends f[_0x560098(0x96)]{async[_0x560098(0x8d)](){const _0x12c0b4=_0x560098,_0x1f00c8=this[_0x12c0b4(0x81)](),_0x2f5bbb=await this[_0x12c0b4(0x8c)]();return{'formulaErrors':_0x1f00c8,'dataValidationErrors':_0x2f5bbb};}}f[_0x560098(0x96)][_0x560098(0x87)](C);function _0x346d(){const _0x1f166f=['ISizeUsageAnalyzer','firstOccurrence','getStyleUsages','getRange','getMaxRows','6SnIAMB','startColumn','endColumn','formulaToA1','FRange','getSizeUsages','getStyleUsagesAsA1','9WBdglh','formula','push','44ZQuBvO','1602756MDZUZv','length','222294ojbmlY','getFormulaUsagesAsA1','moveFormulaRefOffset','9546383JilLCg','getAllFormulaUsages','get','getAllSizeUsages','getAllFormulaError','6149585aLNDCw','_injector','IStyleUsageAnalyzer','13676330zvhmdd','startRow','extend','FWorksheet','getSizeUsagesAsA1','IFormulaUsageAnalyzer','map','getAllDataValidationErrorAsync','getLintErrors','1719712dDJiZF','FUniver','styleToA1','getCellDataGrid','toA1','getAllStyleUsages','getCellRaw','_workbook','FWorkbook','_worksheet','8qmXbfI','updateConfig','getMaxColumns','getIntersectRange','getFormulaUsages','endRow','filledRanges','771618RGhQQp','418RofTgO'];_0x346d=function(){return _0x1f166f;};return _0x346d();}class z extends f[_0x560098(0x88)]{async[_0x560098(0x9c)](){const _0x59dd0c=_0x560098,_0x23ee9e=this[_0x59dd0c(0x83)]['get'](g['IFormulaUsageAnalyzer']),_0x1df37e=this[_0x59dd0c(0xa4)](0x0,0x0,this['getMaxRows'](),this[_0x59dd0c(0x9a)]())['getCellDataGrid']();return await _0x23ee9e['getAllFormulaUsages'](_0x1df37e);}async[_0x560098(0x7b)](){const _0x434e30=_0x560098;return(await this[_0x434e30(0x9c)]())[_0x434e30(0x8b)](g[_0x434e30(0x70)]);}[_0x560098(0xa3)](_0x564ecb){const _0x3f1a73=_0x560098,_0x481a8a=this['_injector'][_0x3f1a73(0x7f)](g[_0x3f1a73(0x84)]),_0xdfc2c4=this[_0x3f1a73(0xa4)](0x0,0x0,this[_0x3f1a73(0x6c)](),this[_0x3f1a73(0x9a)]())[_0x3f1a73(0x91)]();return _0x481a8a['updateConfig'](_0x564ecb),_0x481a8a[_0x3f1a73(0x93)](_0xdfc2c4,this[_0x3f1a73(0x95)],this[_0x3f1a73(0x97)]);}[_0x560098(0x73)](_0xfcbf39){const _0x4b4c17=_0x560098;return this[_0x4b4c17(0xa3)](_0xfcbf39)['map'](g[_0x4b4c17(0x90)]);}[_0x560098(0x72)](_0x3fbfc5){const _0x3009f3=_0x560098,_0x543da9=this[_0x3009f3(0x83)]['get'](g['ISizeUsageAnalyzer']);return _0x543da9[_0x3009f3(0x99)](_0x3fbfc5),_0x543da9[_0x3009f3(0x80)](this['_worksheet']);}[_0x560098(0x89)](_0x38d509){const _0x53796e=_0x560098,_0x30e036=this[_0x53796e(0x83)][_0x53796e(0x7f)](g[_0x53796e(0xa1)]);_0x30e036[_0x53796e(0x99)](_0x38d509);const _0x438aef=_0x30e036[_0x53796e(0x80)](this[_0x53796e(0x97)]);return _0x30e036[_0x53796e(0x92)](_0x438aef);}}f['FWorksheet'][_0x560098(0x87)](z);class S extends f[_0x560098(0x71)]{async['getFormulaUsages'](){const _0x19ba26=_0x560098,_0x2fc516=this[_0x19ba26(0x83)]['get'](g[_0x19ba26(0x8a)]),_0x3305fd=(({startRow:_0x558d8e,endRow:_0x292397,startColumn:_0x59090b,endColumn:_0x4f87ce})=>{const _0x4ce9c9=_0x19ba26,_0x315e4b=[];for(let _0x473da8=_0x558d8e;_0x473da8<=_0x292397;_0x473da8++){const _0xd47487=[];for(let _0x5d98ef=_0x59090b;_0x5d98ef<=_0x4f87ce;_0x5d98ef++)_0xd47487[_0x4ce9c9(0x76)](this[_0x4ce9c9(0x97)][_0x4ce9c9(0x94)](_0x473da8,_0x5d98ef));_0x315e4b[_0x4ce9c9(0x76)](_0xd47487);}return _0x315e4b;})({'startRow':0x0,'endRow':this[_0x19ba26(0x97)][_0x19ba26(0x6c)](),'startColumn':0x0,'endColumn':this[_0x19ba26(0x97)][_0x19ba26(0x9a)]()}),_0x5dd193=await _0x2fc516[_0x19ba26(0x7e)](_0x3305fd),_0x2ddfb5=this[_0x19ba26(0xa4)](),_0x146c47=[];for(let _0x160921=0x0;_0x160921<_0x5dd193[_0x19ba26(0x79)];_0x160921++){const _0x4e59fe=_0x5dd193[_0x160921],_0x4c44cb=_0x4e59fe['filledRanges'],_0x4e2953=[];for(let _0x4df666=0x0;_0x4df666<_0x4c44cb[_0x19ba26(0x79)];_0x4df666++){const _0x3feda2=_0x4c44cb[_0x4df666],_0x26b493=m[_0x19ba26(0x9b)](_0x3feda2,_0x2ddfb5);_0x26b493&&_0x4e2953[_0x19ba26(0x76)](_0x26b493);}if(_0x4e2953[_0x19ba26(0x79)]>0x0){if(_0x4e59fe[_0x19ba26(0x9e)]=_0x4e2953,!(_0x4e59fe[_0x19ba26(0xa2)][_0x19ba26(0x86)]>=_0x2ddfb5[_0x19ba26(0x86)]&&_0x4e59fe[_0x19ba26(0xa2)]['startRow']<=_0x2ddfb5[_0x19ba26(0x9d)]&&_0x4e59fe[_0x19ba26(0xa2)][_0x19ba26(0x6e)]>=_0x2ddfb5['startColumn']&&_0x4e59fe[_0x19ba26(0xa2)][_0x19ba26(0x6e)]<=_0x2ddfb5[_0x19ba26(0x6f)])){const _0x5ab338=_0x4e2953[0x0],_0x5715a5=_0x5ab338[_0x19ba26(0x86)]-_0x4e59fe[_0x19ba26(0xa2)][_0x19ba26(0x86)],_0x3c04ef=_0x5ab338[_0x19ba26(0x6e)]-_0x4e59fe[_0x19ba26(0xa2)][_0x19ba26(0x6e)];_0x4e59fe[_0x19ba26(0x75)]=await _0x2fc516[_0x19ba26(0x7c)](_0x4e59fe[_0x19ba26(0x75)],_0x3c04ef,_0x5715a5),_0x4e59fe['firstOccurrence']={'startRow':_0x5ab338[_0x19ba26(0x86)],'endRow':_0x5ab338[_0x19ba26(0x86)],'startColumn':_0x5ab338[_0x19ba26(0x6e)],'endColumn':_0x5ab338['startColumn']};}_0x146c47[_0x19ba26(0x76)](_0x4e59fe);}}return _0x146c47;}async['getFormulaUsagesAsA1'](){const _0x364957=_0x560098;return(await this[_0x364957(0x9c)]())[_0x364957(0x8b)](g[_0x364957(0x70)]);}['getStyleUsages'](_0x437813){const _0x17c675=_0x560098,_0x2e75a6=this[_0x17c675(0x83)][_0x17c675(0x7f)](g[_0x17c675(0x84)]),_0x5c0fa4=(({startRow:_0x3ec0a4,endRow:_0x2a09e5,startColumn:_0x1e31c4,endColumn:_0x2ad469})=>{const _0x11fcc5=_0x17c675,_0x11a7fa=[];for(let _0xd1de88=_0x3ec0a4;_0xd1de88<=_0x2a09e5;_0xd1de88++){const _0x3ee70f=[];for(let _0x4375bd=_0x1e31c4;_0x4375bd<=_0x2ad469;_0x4375bd++)_0x3ee70f[_0x11fcc5(0x76)](this[_0x11fcc5(0x97)]['getCellRaw'](_0xd1de88,_0x4375bd));_0x11a7fa[_0x11fcc5(0x76)](_0x3ee70f);}return _0x11a7fa;})({'startRow':0x0,'endRow':this[_0x17c675(0x97)][_0x17c675(0x6c)](),'startColumn':0x0,'endColumn':this['_worksheet']['getMaxColumns']()});_0x2e75a6[_0x17c675(0x99)](_0x437813);const _0x1d44ac=_0x2e75a6[_0x17c675(0x93)](_0x5c0fa4,this[_0x17c675(0x95)],this[_0x17c675(0x97)]),_0x5d6b29=this[_0x17c675(0xa4)](),_0x1c0817=[];for(let _0x1c4a87=0x0;_0x1c4a87<_0x1d44ac[_0x17c675(0x79)];_0x1c4a87++){const _0x432ab8=_0x1d44ac[_0x1c4a87],_0x58a113=_0x432ab8[_0x17c675(0x9e)],_0xa03a1=[];for(let _0x32299b=0x0;_0x32299b<_0x58a113[_0x17c675(0x79)];_0x32299b++){const _0x5b2256=_0x58a113[_0x32299b],_0x45f2f6=m[_0x17c675(0x9b)](_0x5b2256,_0x5d6b29);_0x45f2f6&&_0xa03a1[_0x17c675(0x76)](_0x45f2f6);}_0xa03a1[_0x17c675(0x79)]>0x0&&(_0x432ab8['filledRanges']=_0xa03a1,_0x1c0817['push'](_0x432ab8));}return _0x1c0817;}[_0x560098(0x73)](_0x201e84){const _0x5d8a11=_0x560098;return this[_0x5d8a11(0xa3)](_0x201e84)['map'](g['styleToA1']);}[_0x560098(0x72)](_0x4a5275){const _0xc37d10=_0x560098,_0x4144f8=this[_0xc37d10(0x83)][_0xc37d10(0x7f)](g[_0xc37d10(0xa1)]),_0x4ffd2b=this[_0xc37d10(0xa4)]();return _0x4144f8['updateConfig'](_0x4a5275),_0x4144f8[_0xc37d10(0x80)](this['_worksheet'],_0x4ffd2b[_0xc37d10(0x86)],_0x4ffd2b[_0xc37d10(0x9d)],_0x4ffd2b[_0xc37d10(0x6e)],_0x4ffd2b[_0xc37d10(0x6f)]);}[_0x560098(0x89)](_0x1e09fd){const _0x320035=_0x560098,_0x45bde1=this[_0x320035(0x72)](_0x1e09fd);return this[_0x320035(0x83)]['get'](g[_0x320035(0xa1)])[_0x320035(0x92)](_0x45bde1);}}f[_0x560098(0x71)][_0x560098(0x87)](S);
|