@univerjs-pro/sheets-mcp 0.22.0 → 0.22.1
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/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4437f9=_0x2512;(function(_0x49ac67,_0x1d3e2a){const _0x253c1d=_0x2512,_0x2c88b3=_0x49ac67();while(!![]){try{const _0x5c0732=parseInt(_0x253c1d(0x1aa))/0x1+parseInt(_0x253c1d(0x421))/0x2+parseInt(_0x253c1d(0x1bb))/0x3*(parseInt(_0x253c1d(0x20e))/0x4)+-parseInt(_0x253c1d(0x372))/0x5+parseInt(_0x253c1d(0x315))/0x6*(-parseInt(_0x253c1d(0x3b2))/0x7)+parseInt(_0x253c1d(0x359))/0x8+-parseInt(_0x253c1d(0x3bc))/0x9;if(_0x5c0732===_0x1d3e2a)break;else _0x2c88b3['push'](_0x2c88b3['shift']());}catch(_0x325fed){_0x2c88b3['push'](_0x2c88b3['shift']());}}}(_0x2e2f,0x4c3ae),Object[_0x4437f9(0x3d0)](exports,Symbol[_0x4437f9(0x29e)],{'value':'Module'}));var __create=Object[_0x4437f9(0x1cc)],__defProp=Object[_0x4437f9(0x3d0)],__getOwnPropDesc=Object[_0x4437f9(0x3fa)],__getOwnPropNames=Object[_0x4437f9(0x2e5)],__getProtoOf=Object[_0x4437f9(0x452)],__hasOwnProp=Object[_0x4437f9(0x3c8)][_0x4437f9(0x246)],__copyProps=(_0x1d49cc,_0x24e10d,_0xac030b,_0x3a47ba)=>{const _0x1949fa=_0x4437f9;if(_0x24e10d&&typeof _0x24e10d===_0x1949fa(0x1a8)||typeof _0x24e10d===_0x1949fa(0x40b))for(var _0x59b84b=__getOwnPropNames(_0x24e10d),_0x5539b2=0x0,_0x548960=_0x59b84b[_0x1949fa(0x2ed)],_0xee674b;_0x5539b2<_0x548960;_0x5539b2++){_0xee674b=_0x59b84b[_0x5539b2],!__hasOwnProp[_0x1949fa(0x26d)](_0x1d49cc,_0xee674b)&&_0xee674b!==_0xac030b&&__defProp(_0x1d49cc,_0xee674b,{'get':(_0x2347e2=>_0x24e10d[_0x2347e2])[_0x1949fa(0x384)](null,_0xee674b),'enumerable':!(_0x3a47ba=__getOwnPropDesc(_0x24e10d,_0xee674b))||_0x3a47ba[_0x1949fa(0x294)]});}return _0x1d49cc;},__toESM=(_0x1140b2,_0xbcf4a,_0x35dc26)=>(_0x35dc26=_0x1140b2!=null?__create(__getProtoOf(_0x1140b2)):{},__copyProps(_0xbcf4a||!_0x1140b2||!_0x1140b2[_0x4437f9(0x236)]?__defProp(_0x35dc26,'default',{'value':_0x1140b2,'enumerable':!![]}):_0x35dc26,_0x1140b2));let _univerjs_pro_mcp=require('@univerjs-pro/mcp'),_univerjs_core=require('@univerjs/core'),_univerjs_rpc=require('@univerjs/rpc'),_univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_sheets_conditional_formatting=require('@univerjs/sheets-conditional-formatting'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_ui=require('@univerjs/ui'),_univerjs_sheets_data_validation=require('@univerjs/sheets-data-validation'),html2canvas_pro=require('html2canvas-pro');html2canvas_pro=__toESM(html2canvas_pro);let yaml=require('yaml');yaml=__toESM(yaml);var name=_0x4437f9(0x2ea),version='0.22.0';const SHEET_MCP_PLUGIN_CONFIG_KEY=_0x4437f9(0x469),configSymbol=Symbol(SHEET_MCP_PLUGIN_CONFIG_KEY),defaultPluginConfig={'enableWorker':![]};function __decorateParam(_0x5b8bfb,_0x183744){return function(_0x32926c,_0x33b7e8){_0x183744(_0x32926c,_0x33b7e8,_0x5b8bfb);};}function __decorate(_0x734c7d,_0x372bdb,_0x21f50a,_0xd6cf7a){const _0x3068ba=_0x4437f9;var _0x3e46a2=arguments[_0x3068ba(0x2ed)],_0x1f6500=_0x3e46a2<0x3?_0x372bdb:_0xd6cf7a===null?_0xd6cf7a=Object[_0x3068ba(0x3fa)](_0x372bdb,_0x21f50a):_0xd6cf7a,_0x116ea1;if(typeof Reflect===_0x3068ba(0x1a8)&&typeof Reflect[_0x3068ba(0x1a6)]===_0x3068ba(0x40b))_0x1f6500=Reflect['decorate'](_0x734c7d,_0x372bdb,_0x21f50a,_0xd6cf7a);else{for(var _0x23fb51=_0x734c7d[_0x3068ba(0x2ed)]-0x1;_0x23fb51>=0x0;_0x23fb51--)if(_0x116ea1=_0x734c7d[_0x23fb51])_0x1f6500=(_0x3e46a2<0x3?_0x116ea1(_0x1f6500):_0x3e46a2>0x3?_0x116ea1(_0x372bdb,_0x21f50a,_0x1f6500):_0x116ea1(_0x372bdb,_0x21f50a))||_0x1f6500;}return _0x3e46a2>0x3&&_0x1f6500&&Object['defineProperty'](_0x372bdb,_0x21f50a,_0x1f6500),_0x1f6500;}function toA1(_0x2bfc32){const _0x401768=_0x4437f9;return{'formula':_0x2bfc32[_0x401768(0x296)],'firstOccurrence':getA1Notation$1([_0x2bfc32['firstOccurrence']['startRow'],_0x2bfc32['firstOccurrence'][_0x401768(0x2c0)],_0x2bfc32['firstOccurrence'][_0x401768(0x353)],_0x2bfc32[_0x401768(0x290)][_0x401768(0x442)]]),'filledRanges':_0x2bfc32[_0x401768(0x3de)][_0x401768(0x31a)](_0xf4fcfd=>getA1Notation$1([_0xf4fcfd[_0x401768(0x213)],_0xf4fcfd['endRow'],_0xf4fcfd['startColumn'],_0xf4fcfd[_0x401768(0x442)]]))[_0x401768(0x2da)](',')};}function compressMatrixFlexible$1({getItem:_0x48ca47,getId:_0x1468cd,condition:_0x408c45,rows:_0x4ed49e,cols:_0x54d97d}){const _0x1c32dc=_0x4437f9,_0x3f0f06=[];let _0x16edd3=[];for(let _0x591d48=0x0;_0x591d48<_0x4ed49e;_0x591d48++){const _0x2a0d31=[];let _0x4b53ac=0x0;while(_0x4b53ac<_0x54d97d){const _0x49e9b5=_0x48ca47(_0x591d48,_0x4b53ac);if(!_0x49e9b5||!_0x408c45(_0x49e9b5,_0x591d48,_0x4b53ac)){_0x4b53ac++;continue;}const _0x1bee9e=_0x1468cd(_0x49e9b5),_0x3089b2=_0x4b53ac;while(_0x4b53ac+0x1<_0x54d97d&&((()=>{const _0x3d72c8=_0x48ca47(_0x591d48,_0x4b53ac+0x1);return _0x3d72c8&&_0x408c45(_0x3d72c8,_0x591d48,_0x4b53ac)&&_0x1468cd(_0x3d72c8)===_0x1bee9e;})()))_0x4b53ac++;const _0x2d9fa3=_0x4b53ac;let _0x42f341=![];for(const _0x21371d of _0x16edd3)if(_0x21371d['id']===_0x1bee9e&&_0x21371d['c1']===_0x3089b2&&_0x21371d['c2']===_0x2d9fa3){_0x21371d['r2']=_0x591d48,_0x2a0d31['push'](_0x21371d),_0x42f341=!![];break;}if(!_0x42f341)_0x2a0d31[_0x1c32dc(0x34e)]({'r1':_0x591d48,'c1':_0x3089b2,'r2':_0x591d48,'c2':_0x2d9fa3,'id':_0x1bee9e});_0x4b53ac++;}for(const _0x216cfe of _0x16edd3)if(!_0x2a0d31['includes'](_0x216cfe))_0x3f0f06[_0x1c32dc(0x34e)](_0x216cfe);_0x16edd3=_0x2a0d31;}return _0x3f0f06[_0x1c32dc(0x34e)](..._0x16edd3),_0x3f0f06;}function getA1Notation$1([_0x56eae8,_0x11e5ba,_0x2d0360,_0x2ccfc3]){if(_0x56eae8>_0x11e5ba)[_0x56eae8,_0x11e5ba]=[_0x11e5ba,_0x56eae8];if(_0x2d0360>_0x2ccfc3)[_0x2d0360,_0x2ccfc3]=[_0x2ccfc3,_0x2d0360];const _0x7a2bd5=_0x4705df=>{const _0x20d3bf=_0x2512;let _0x2da313='';for(;_0x4705df>0x0;_0x4705df=Math[_0x20d3bf(0x306)]((_0x4705df-0x1)/0x1a))_0x2da313=String['fromCharCode'](0x41+(_0x4705df-0x1)%0x1a)+_0x2da313;return _0x2da313;},_0x3de746=_0x7a2bd5(_0x2d0360+0x1)+(_0x56eae8+0x1),_0x20fc36=_0x7a2bd5(_0x2ccfc3+0x1)+(_0x11e5ba+0x1);return _0x3de746===_0x20fc36?_0x3de746:_0x3de746+':'+_0x20fc36;}function groupRect$1(_0x110e9f,_0x3f5342){const _0x381572=_0x4437f9,_0x687ecd={};for(const _0x4fb4fb of _0x110e9f){if(!_0x687ecd[_0x4fb4fb['id']]){let _0x573932=![],_0x53f2e2;for(let _0x4d5b38=_0x4fb4fb['r1'];_0x4d5b38<=_0x4fb4fb['r2']&&!_0x573932;_0x4d5b38++)for(let _0x10058b=_0x4fb4fb['c1'];_0x10058b<=_0x4fb4fb['c2']&&!_0x573932;_0x10058b++){const _0x4651d9=_0x3f5342[_0x4d5b38][_0x10058b];_0x4651d9&&_0x4651d9['f']&&(_0x53f2e2={'r1':_0x4d5b38,'c1':_0x10058b,'f':_0x4651d9['f']},_0x573932=!![]);}_0x687ecd[_0x4fb4fb['id']]={'hash':_0x4fb4fb['id'],'ranges':[],'def':_0x53f2e2?{'c1':_0x53f2e2['c1'],'r1':_0x53f2e2['r1'],'f':_0x53f2e2['f']}:void 0x0};}_0x687ecd[_0x4fb4fb['id']][_0x381572(0x29c)]['push']({'startRow':_0x4fb4fb['r1'],'endRow':_0x4fb4fb['r2'],'startColumn':_0x4fb4fb['c1'],'endColumn':_0x4fb4fb['c2']});}return Object[_0x381572(0x35c)](_0x687ecd)[_0x381572(0x1bf)]((_0x3a24b6,_0x4711e8)=>{const _0x48f957=_0x381572;if(_0x3a24b6['def']&&_0x4711e8['def'])return _0x3a24b6[_0x48f957(0x27d)]['r1']-_0x4711e8[_0x48f957(0x27d)]['r1']||_0x3a24b6[_0x48f957(0x27d)]['c1']-_0x4711e8['def']['c1'];if(_0x3a24b6[_0x48f957(0x27d)])return-0x1;if(_0x4711e8[_0x48f957(0x27d)])return 0x1;return 0x0;})[_0x381572(0x31a)](_0x4cb1c0=>{const _0x4d38bf=_0x381572;return{'firstOccurrence':{'startRow':_0x4cb1c0[_0x4d38bf(0x27d)]['r1'],'endRow':_0x4cb1c0[_0x4d38bf(0x27d)]['r1'],'startColumn':_0x4cb1c0[_0x4d38bf(0x27d)]['c1'],'endColumn':_0x4cb1c0[_0x4d38bf(0x27d)]['c1']},'formula':_0x4cb1c0[_0x4d38bf(0x27d)]['f'],'filledRanges':_0x4cb1c0['ranges']};});}const FormulaUsageAnalyzerChannelName='sheets.mcp.formula-usage-analyzer',IFormulaUsageAnalyzer=(0x0,_univerjs_core[_0x4437f9(0x326)])('sheets.mcp.formula-usage-analyzer');let FormulaUsageAnalyzer=class FormulaUsageAnalyzer{constructor(_0x5c28fe,_0x25cbaa){const _0x6016db=_0x4437f9;this['_formulaService']=_0x5c28fe,this[_0x6016db(0x45c)]=_0x25cbaa;}[_0x4437f9(0x293)](_0x2bb361){const _0x49dca1=_0x4437f9;var _0x2ef302;const _0x44e635=_0x2bb361['length'],_0x2de05d=((_0x2ef302=_0x2bb361[0x0])===null||_0x2ef302===void 0x0?void 0x0:_0x2ef302['length'])||0x0,_0x284e2a={};for(let _0x2cba4f=0x0;_0x2cba4f<_0x44e635;_0x2cba4f++)for(let _0x48145b=0x0;_0x48145b<_0x2de05d;_0x48145b++){const _0x1949df=_0x2bb361[_0x2cba4f][_0x48145b];if(_0x1949df&&_0x1949df['f']&&_0x1949df['si']&&!_0x284e2a[_0x1949df['si']])_0x284e2a[_0x1949df['si']]=this[_0x49dca1(0x3f2)](_0x1949df['f'],-_0x48145b,-_0x2cba4f);}const _0x5c9fb4=[];for(let _0x221d78=0x0;_0x221d78<_0x44e635;_0x221d78++){_0x5c9fb4[_0x221d78]=[];for(let _0x59e4fa=0x0;_0x59e4fa<_0x2de05d;_0x59e4fa++){const _0x239d1e=_0x2bb361[_0x221d78][_0x59e4fa];if(_0x239d1e&&(_0x239d1e['f']||_0x239d1e['si'])){let _0xaccd12;if(_0x239d1e['si']&&_0x284e2a[_0x239d1e['si']])_0xaccd12=_0x284e2a[_0x239d1e['si']];else _0xaccd12=this['getFormulaHash'](_0x239d1e['f'],-_0x59e4fa,-_0x221d78);_0x5c9fb4[_0x221d78][_0x59e4fa]={..._0x239d1e,'hash':_0xaccd12};}else _0x5c9fb4[_0x221d78][_0x59e4fa]=_0x239d1e;}}return groupRect$1(compressMatrixFlexible$1({'getItem':(_0x320894,_0x381279)=>_0x5c9fb4[_0x320894][_0x381279],'getId':_0xec34ba=>(_0xec34ba===null||_0xec34ba===void 0x0?void 0x0:_0xec34ba['hash'])||'','condition':_0x59c279=>!!_0x59c279&&!!_0x59c279[_0x49dca1(0x28b)],'rows':_0x44e635,'cols':_0x2de05d}),_0x5c9fb4);}['getFormulaHash'](_0x4e3418,_0x5db3ce,_0x131c65,_0x332797=![]){const _0x1176b9=_0x4437f9,_0x5a830e=this[_0x1176b9(0x45c)][_0x1176b9(0x2fb)](_0x4e3418);if(_0x5a830e==null)return _0x4e3418;const _0x10da00=[];for(let _0x28f7b1=0x0,_0x19e740=_0x5a830e['length'];_0x28f7b1<_0x19e740;_0x28f7b1++){const _0x23e1e7=_0x5a830e[_0x28f7b1];if(typeof _0x23e1e7===_0x1176b9(0x415)||_0x23e1e7[_0x1176b9(0x227)]!==_univerjs_engine_formula[_0x1176b9(0x180)][_0x1176b9(0x1b1)]){_0x10da00[_0x1176b9(0x34e)](_0x23e1e7);continue;}const {token:_0x1c9051}=_0x23e1e7,_0x5538bd=(0x0,_univerjs_engine_formula[_0x1176b9(0x24c)])(_0x1c9051),{sheetName:_0x3bd507,unitId:_0x106f8c}=_0x5538bd;let _0x360ac2=_0x5538bd[_0x1176b9(0x220)];if(!_0x332797&&_0x360ac2[_0x1176b9(0x24a)]===_univerjs_core[_0x1176b9(0x419)][_0x1176b9(0x297)]&&_0x360ac2[_0x1176b9(0x397)]===_univerjs_core[_0x1176b9(0x419)][_0x1176b9(0x297)]){_0x10da00['push'](_0x23e1e7);continue;}else _0x360ac2=(0x0,_univerjs_core[_0x1176b9(0x25b)])(_0x360ac2,_0x5db3ce,_0x131c65,_0x332797);let _0x2721b5='';_0x2721b5=(0x0,_univerjs_engine_formula['serializeRangeToRefString'])({'range':_0x360ac2,'unitId':_0x106f8c,'sheetName':_0x3bd507}),_0x10da00['push']({..._0x23e1e7,'token':_0x2721b5});}return'='+(0x0,_univerjs_engine_formula[_0x1176b9(0x310)])(_0x10da00);}['moveFormulaRefOffset'](_0x251508,_0x376b50,_0x1e4cca,_0x404265=![]){const _0x229e61=_0x4437f9;return this[_0x229e61(0x45c)][_0x229e61(0x430)](_0x251508,_0x376b50,_0x1e4cca,_0x404265);}};FormulaUsageAnalyzer=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x4437f9(0x278)])(_univerjs_engine_formula[_0x4437f9(0x358)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x4437f9(0x278)])(_univerjs_engine_formula[_0x4437f9(0x390)]))],FormulaUsageAnalyzer);function _typeof(_0x4be6bc){'@babel/helpers - typeof';const _0x4a8596=_0x4437f9;return _typeof=_0x4a8596(0x40b)==typeof Symbol&&_0x4a8596(0x19a)==typeof Symbol['iterator']?function(_0x105039){return typeof _0x105039;}:function(_0x2facfd){const _0x17edc7=_0x4a8596;return _0x2facfd&&_0x17edc7(0x40b)==typeof Symbol&&_0x2facfd[_0x17edc7(0x39d)]===Symbol&&_0x2facfd!==Symbol[_0x17edc7(0x3c8)]?_0x17edc7(0x19a):typeof _0x2facfd;},_typeof(_0x4be6bc);}function toPrimitive(_0x3ab40b,_0x143144){const _0x1f0e1b=_0x4437f9;if(_0x1f0e1b(0x1a8)!=_typeof(_0x3ab40b)||!_0x3ab40b)return _0x3ab40b;var _0xcbadcf=_0x3ab40b[Symbol[_0x1f0e1b(0x199)]];if(void 0x0!==_0xcbadcf){var _0x3a2ea5=_0xcbadcf['call'](_0x3ab40b,_0x143144||_0x1f0e1b(0x41d));if(_0x1f0e1b(0x1a8)!=_typeof(_0x3a2ea5))return _0x3a2ea5;throw new TypeError(_0x1f0e1b(0x30d));}return(_0x1f0e1b(0x415)===_0x143144?String:Number)(_0x3ab40b);}function _0x2e2f(){const _0x12b40c=['\x27\x20not\x20found','screenshot','##\x20Styles\x20class\x20define','rootContainerElement','\x20request(s)\x20successfully,\x20','\x20->\x20','NONE','filledRanges','create_sheet:\x20','SheetInterceptorService','padStart','Unsupported\x20highlight\x20cell\x20sub-type:\x20','last7Days','\x27,\x20failed\x20','IStyleUsageAnalyzer','sheet.command.apply-format-painter','Workbook\x20is\x20not\x20active.','\x20on\x20sheet\x20\x27','return_screenshot','source','Name\x20of\x20the\x20sheet\x20to\x20modify\x20display\x20status','Failed\x20to\x20get\x20visible\x20range:','self','operator','data','Conditional\x20formatting\x20rule\x20id\x20is\x20required\x20for\x20setting\x20a\x20rule.',')\x20doesn\x27t\x20match\x20column\x20count\x20(','getFormulaHash','position','UniverAPI\x20not\x20available','setValue','Delete\x20one\x20or\x20more\x20conditional\x20formatting\x20rules\x20by\x20ID.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rule_ids:\x20List\x20of\x20conditional\x20formatting\x20rule\x20IDs\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','priority','new_name','isShowValue','getOwnPropertyDescriptor','getVisibleRange','Null\x20intersection\x20error','is_bottom','getAllSizeUsages','(default\x20\x22Invalid\x20input\x22)','sheets.mcp.cell-usage-analyzer','JUSTIFIED','\x20conditional\x20formatting\x20rule(s)\x20for\x20sheet\x20\x27','Failed\x20to\x20set\x20display\x20status\x20for\x20sheet(s):\x20','Set\x20(replace)\x20all\x20conditional\x20formatting\x20rules\x20for\x20the\x20given\x20sheet.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rules:\x20List\x20of\x20ConditionalFormatRule\x20with\x20rule_id\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','serializeRange','notContainsText','List\x20of\x20InsertColumnOperation\x20objects\x20for\x20each\x20insert\x20operation','\x20failed.\x20Errors:\x20','utilityTools','UniverAPI\x20injector\x20not\x20available','function','bold','findAll','BOTH','registerChannel','Unsupported\x20rule\x20type:\x20','Input\x20prompt\x20message\x20(default\x20empty)','unspec','List\x20of\x20SheetDisplayStatusOperation\x20objects\x20for\x20each\x20display\x20status\x20operation','left','string','\x20conditional\x20formatting\x20rule(s)\x20to\x20sheet\x20\x27','SheetDataValidationModel','errorTitle','AbsoluteRefType','Current\x20sheet\x20name\x20to\x20rename','AddSheetDataValidationCommand','All\x20requests\x20failed.\x20Errors:\x20','default','show_input_message','Merge\x20a\x20single\x20range\x20in\x20the\x20active\x20workbook.\x20Usage:\x20set_merge(\x22A1:B2\x22)\x20to\x20merge\x20the\x20specified\x20range.','styleToA1','916986JGLRjU','getActiveRange','loose','text','value','insertRowsAfter','\x20Empty\x20Row','bold\x20(0|1)','enableWorker','Sheet\x20\x27','\x20sheet(s)\x20successfully,\x20failed\x20','beginsWith','auto_fill','(default\x20true)','Batch\x20rename\x20multiple\x20worksheets.\x20Efficiently\x20renames\x20multiple\x20sheets\x20in\x20one\x20operation.','moveFormulaRefOffset','requestChannel','properties','Failed\x20to\x20delete\x20sheets:\x20','Failed\x20to\x20insert\x20rows:\x20','toInternalStyle','Whether\x20to\x20return\x20a\x20screenshot\x20of\x20the\x20range\x20(default\x20False)','Add\x20one\x20or\x20more\x20conditional\x20formatting\x20rules\x20to\x20the\x20given\x20sheet.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rules:\x20List\x20of\x20ConditionalFormatRule\x20(if\x20rule_id\x20is\x20not\x20provided,\x20it\x20will\x20be\x20generated)\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','Set\x20(replace)\x20all\x20data\x20validation\x20rules\x20for\x20the\x20specified\x20sheet.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rules:\x20List\x20of\x20DataValidationRule\x20with\x20rule_id\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','\x20conditional\x20formatting\x20rule(s)\x20from\x20sheet\x20\x27','Conditional\x20formatting\x20rule\x20with\x20id\x20','rename_sheet:\x20','parseFloat','Failed\x20to\x20rename\x20sheet:\x20','getDisplayValues','Renamed\x20sheet\x20\x27','any','value_type','endColumn','Failed\x20to\x20create\x20sheet\x20\x27','ANY','BETWEEN','native_color\x20type\x20expected\x20string','CHECKBOX','italic','Unsupported\x20error_style:\x20','List\x20of\x20DeleteColumnOperation\x20objects\x20for\x20each\x20delete\x20operation','entries','Column\x20index\x20(0-based)\x20where\x20to\x20start\x20deletion','formula1','create_sheet','TRUE','toModule','toInternalConfig','getPrototypeOf','Get\x20all\x20sheets\x20(name\x20and\x20ID)\x20in\x20the\x20current\x20workbook.','backgroundColor','SetColWidthCommand','enum','get_range_data','value2','Target\x20range\x20in\x20A1\x20notation\x20to\x20fill\x20(e.g.,\x20\x22A1:A10\x22,\x20\x22B1:F1\x22)','Width\x20array\x20length\x20(','\x20sheet(s)\x20successfully.','_lexerTreeBuilder','Failed\x20to\x20get\x20error\x20information:','active','Batch\x20delete\x20columns\x20for\x20multiple\x20operations.\x20Efficiently\x20deletes\x20columns\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','\x27\x20must\x20be\x20an\x20integer\x20or\x20string,\x20got\x20','image','Request\x20','justify','LIST','Batch\x20set\x20column\x20widths\x20and\x20row\x20heights\x20based\x20on\x20dimension\x20requests.\x20Each\x20request\x20can\x20specify\x20either\x20width,\x20height,\x20or\x20both.\x20Width\x20applies\x20to\x20columns\x20(A:C),\x20height\x20applies\x20to\x20rows\x20(1:5).\x20Range\x20format\x20examples:\x20\x22Sheet1!A:C\x22\x20sets\x20width\x20for\x20columns\x20A\x20to\x20C\x20in\x20Sheet1,\x20\x22A:A\x22\x20sets\x20width\x20for\x20column\x20A\x20in\x20active\x20sheet,\x20\x221:5\x22\x20sets\x20height\x20for\x20rows\x201\x20to\x205\x20in\x20active\x20sheet.\x20Width/height\x20can\x20be\x20a\x20single\x20number\x20(applies\x20to\x20all)\x20or\x20an\x20array\x20matching\x20the\x20count\x20of\x20columns/rows\x20in\x20range.\x20Returns\x20success/fail\x20status\x20and\x20message\x20with\x20automatic\x20dimension\x20report\x20of\x20the\x20processed\x20ranges.','center','\x0a\x20-\x20First\x2050\x20sheet\x20names:\x20','strike\x20through','sheet-mcp.config','getSubunitRules','range_a1','columnToIndex','getRules','Batch\x20insert\x20empty\x20columns\x20for\x20multiple\x20operations.\x20Efficiently\x20inserts\x20columns\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','WARNING','\x20rule(s),\x20reason(s):\x20','getCellDataGrid','Array\x20spill\x20error','image/png','updateConfig','add_conditional_formatting_rule','both','Sheet\x20not\x20found','abs','fontSize','-1:\x20end,\x200:\x20top,\x20>0:\x20index','vertical\x20text\x20alignment,\x201\x20top,\x202\x20middle,\x203\x20bottom','set_conditional_formatting_rule','##\x20Data','strikethrough','get_conditional_formatting_rules','get','generateRandomId','NOT_BETWEEN','CFValueType','note','sequenceNodeType','lessThan','SetRowHeightCommand','RemoveSheetDataValidationCommand','get_sheets','where','parseValue','overline','colorScale','delete_rows:\x20pos=','setName','showSheet','A1\x20notation\x20(e.g.,\x20\x22Sheet1!A:C\x22,\x20\x22A:A\x22,\x20\x221:5\x22)','General','List\x20of\x20ConditionalFormatRule\x20with\x20rule_id','warning','fgColor','List\x20of\x20conditional\x20formatting\x20rule\x20IDs','sheets','Get\x20the\x20currently\x20active\x20unit_id\x20for\x20this\x20session.\x20Raises\x20an\x20exception\x20if\x20no\x20workbook\x20is\x20active.','message','is_show_value','getAllCellUsages','ensureCompleteAsync','font\x20color,\x20e.g.,\x20\x22#000000\x22','toPrimitive','symbol','horizontalAlign','rank','after','Whether\x20to\x20return\x20style\x20information\x20for\x20cells\x20(default\x20False)','nextMonth','describe','return_style','ICommandService','old_name','Renamed\x20','delete_columns','decorate','maxCount','object','getScreenshot','429414sDTbEq','Generic\x20error','indexToColumn','Rule\x20identifier,\x20auto-generated\x20if\x20not\x20provided','List\x20of\x20RenameSheetOperation\x20objects\x20for\x20each\x20rename\x20operation','nativeColor','warn','REFERENCE','min_type','getScreenshotOnNode','getCellRaw','how_many\x20must\x20be\x20>\x200','List\x20of\x20BatchRangeStyleItem','fs:','delete_columns:\x20pos=','prompt','dataHash','42NLUYqy','Number\x20of\x20rows\x20to\x20delete\x20(default\x201)','Failed\x20to\x20delete\x20rule(s):\x20','font\x20family\x20(e.g.,\x20\x22Arial\x22)','sort','The\x20cell/range\x20in\x20A1\x20notation\x20(e.g.,\x20\x22A1\x22,\x20\x22B2:C3\x22),\x20or\x20a\x20list\x20of\x20such\x20strings.','getRange','toString','config','highlightCell','add_data_validation_rule','how_many','description','IFormulaUsageAnalyzer','uid','Successfully\x20processed\x20','Batch\x20create\x20multiple\x20new\x20worksheets.\x20Efficiently\x20creates\x20multiple\x20sheets\x20in\x20one\x20operation.','create','The\x20cell\x20in\x20A1\x20notation\x20to\x20scroll\x20to\x20(e.g.,\x20\x22D10\x22).','fromInternalStyle','Inserted\x20columns\x20in\x20','left\x20border','width','search_cells','moveSheet','bg:','is_percent','CFTimePeriodOperator','generateId','Source\x20range\x20in\x20A1\x20notation,\x20supports\x20cross-sheet\x20(e.g.,\x20\x22Sheet1!A1\x22)','VerticalAlign','type','native_color','Batch\x20set\x20value\x20or\x20formula\x20for\x20multiple\x20ranges\x20in\x20the\x20active\x20workbook.\x20Efficiently\x20sets\x20data\x20for\x20multiple\x20ranges\x20in\x20one\x20operation.','_commandService','Screenshot\x20failed:','getStyles','DECIMAL','input_message','set_display_status:\x20','createTextFinderAsync','lastWeek','Created\x20sheet\x20\x27','max_type','error_message','boolean','toDataBarConfig','notContainsBlanks','Inserted\x20','LIST_MULTIPLE','\x27highlightCell\x27\x20|\x20\x27dataBar\x27\x20|\x20\x27colorScale\x27','right\x20border','timePeriod','number','today','...','decimal','error','getMaxRows','fromCharCode','bl:1','The\x20search\x20type,\x20e.g.,\x20\x22formula\x22\x20or\x20\x22value\x22','_config','CUSTOM','between','ul:1','tomorrow','isPercent','Failed\x20to\x20get\x20screenshot\x20for\x20range\x20','slice','number\x20format','getFormulaError','validation_type\x20is\x20required','\x20does\x20not\x20exist.',',\x20error:\x20','verticalAlign','New\x20name\x20for\x20the\x20sheet','WHOLE','size','ConditionalFormattingRuleModel','delete_sheet:\x20','containsErrors','MoveCfCommand','99884hQFpkm','toColorScaleConfig','information','range\x20must\x20be\x20a\x20string','insertRowsBefore','startRow','Batch\x20set\x20style\x20for\x20multiple\x20ranges\x20in\x20the\x20active\x20workbook.\x20Efficiently\x20applies\x20styling\x20to\x20multiple\x20ranges\x20in\x20one\x20operation.','\x20columns\x20from\x20position\x20','\x20rows\x20','getFormulas','positiveColor','getStyleById','bot','Activated\x20sheet\x20\x27','average','activate','Worksheet\x20with\x20name\x20','\x20rule(s)\x20successfully.','range','CFNumberOperator','##\x20Errors','truncated','Allow\x20multiple\x20selection\x20(default\x20false)','showInputMessage','to_index','nodeType','source_range','\x20sheet\x20\x27','Invalid\x20position\x20or\x20how_many\x20parameter','items\x20must\x20be\x20array\x20of\x20BatchRangeDataItem','horizontal\x20text\x20alignment,\x201\x20left,\x202\x20center,\x203\x20right','stop_if_true','Range\x20string\x20(A1\x20notation)','Modified\x20','content\x20padding','Target\x20range\x20(A1\x20notation)','Failed\x20to\x20set\x20display\x20status\x20for\x20sheet\x20\x27','background\x20color,\x20e.g.,\x20\x22#FF0000\x22','SINGLE','Deleted\x20columns\x20in\x20','__esModule','Invalid\x20cell\x20reference\x20error','rule','fontFamily','target_range','\x20operation(s),\x20reason(s):\x20','No\x20active\x20sheet','greaterThan','List\x20source,\x20comma-separated\x20string\x20or\x20cell\x20range','Column\x20index\x20(0-based)\x20where\x20to\x20insert','ignore_blank','pluginName','sheet_names','STOP','No\x20formulas\x20found','Failed\x20to\x20create\x20rule(s):\x20','hasOwnProperty','get_data_validation_rules','items\x20must\x20be\x20array\x20of\x20BatchRangeStyleItem','TIME','startAbsoluteRefType','tuple','deserializeRangeWithSheetWithCache','\x0aCurrent\x20Visible\x20range:\x20','deleteRows','Whether\x20to\x20return\x20a\x20screenshot\x20(default\x20False).','Injector','fromColorScaleConfig','uniqueValues','showErrorMessage','activate_sheet','containsBlanks','rgb','TextDecoration','fromDataBarConfig','CFTextOperator','\x20already\x20exists\x20in\x20worksheet\x20','moveRangeByOffset','_maxCount','range_a1\x20must\x20be\x20a\x20string\x20or\x20a\x20list\x20of\x20strings','Batch\x20insert\x20empty\x20rows\x20for\x20multiple\x20operations.\x20Efficiently\x20inserts\x20rows\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','Validation\x20operator\x20(Used\x20in\x20combination\x20with\x20integer,\x20decimal,\x20date,\x20time,\x20text_length,\x20not\x20required):\x0aRange:\x20\x22between\x22,\x20\x22notBetween\x22\x0aSingle\x20value:\x20\x22equal\x22,\x20\x22notEqual\x22,\x20\x22greaterThan\x22,\x20\x22greaterThanOrEqual\x22,\x20\x22lessThan\x22,\x20\x22lessThanOrEqual\x22','Value\x20not\x20available\x20error','Target\x20range\x20(A1\x20notation),\x20multiple\x20ranges\x20separated\x20by\x20comma','bc:','CENTER','packageName','show_time','LEFT','status','onWriteCell','\x20rule(s):\x20','_injector','versions','toHighlightCellConfig','call','show_error_message','font\x20color','Data\x20validation\x20rule\x20id\x20is\x20required\x20for\x20setting\x20a\x20rule.','cfId','requests','Sheet\x20count:\x20','allow_multiple','bgColor','Set\x20','text\x20overflow,\x201\x20overflow,\x202\x20truncate,\x203\x20wrap','Inject','delete_conditional_formatting_rule','height',',\x20sheet=','changeState','def','Array\x20value\x20for\x20range\x20(can\x20be\x201D\x20or\x202D)','set_range_data','Plugin','getFormulaUsagesAsA1','\x20rows\x20from\x20position\x20','Data\x20validation\x20rule\x20with\x20id\x20','find','mixed','getA1Notation','\x27:\x20','lessThanOrEqual','lastMonth','\x20operation(s)\x20successfully,\x20failed\x20','hash','charCodeAt','literal','\x27\x20to\x20\x27',',\x20count=','firstOccurrence','delete_rows','Wrong\x20data\x20type\x20or\x20invalid\x20argument\x20error','getAllFormulaUsages','enumerable','Batch\x20delete\x20multiple\x20worksheets\x20by\x20names.\x20Efficiently\x20deletes\x20multiple\x20sheets\x20in\x20one\x20operation.','formula','ALL','delete_sheet','Failed\x20to\x20get\x20cell\x20styles:','Optional\x20sheet\x20name\x20to\x20extract\x20formulas\x20from.\x20If\x20not\x20provided,\x20uses\x20the\x20active\x20sheet.','insertColumnsAfter','ranges','widths','toStringTag','Activate/switch\x20to\x20the\x20worksheet\x20with\x20the\x20given\x20name.','visible','Height\x20in\x20points\x20(pt)\x20for\x20rows','DataValidationOperator','Width\x20in\x20points\x20(pt)\x20for\x20columns','Deleted\x20','insert_columns:\x20pos=','validation_type','Unsupported\x20value\x20type:\x20','Created\x20','integer','value2\x20is\x20required\x20for\x20operator:\x20','Object/dictionary\x20value','delete_data_validation_rule','split','Search\x20cells\x20in\x20the\x20currently\x20active\x20workbook\x20by\x20keyword\x20and\x20findBy\x20type.\x20Returns\x20dict\x20with\x20\x22total\x22\x20matches\x20and\x20\x22results\x22\x20(up\x20to\x2050\x20items,\x20each\x20with\x20range_a1,\x20value\x20(truncated\x20to\x20200\x20chars\x20if\x20too\x20long),\x20formula).\x20The\x20value\x20field\x20will\x20be\x20truncated\x20to\x20at\x20most\x20200\x20characters\x20if\x20it\x20is\x20a\x20long\x20string.','min','toDataURL','\x20to\x20','color','Get\x20all\x20data\x20validation\x20rules\x20for\x20the\x20specified\x20sheet.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0aReturns:\x0a\x20\x20\x20\x20List\x20of\x20rules','BooleanNumber','Sheet\x20interceptor\x20processing\x20failed,\x20using\x20original\x20value:','Copy\x20formatting\x20from\x20source_range\x20to\x20target_range\x20using\x20Univer\x27s\x20format\x20painter\x20commands.\x20Internally\x20sets\x20the\x20format\x20painter\x20on\x20the\x20source,\x20then\x20applies\x20to\x20the\x20target\x20range.\x20Supports\x20single\x20cell,\x20range,\x20and\x20cross-sheet\x20operations.\x20Example\x20usage:\x20format_brush(\x22A1\x22,\x20\x22B1:C1\x22),\x20format_brush(\x22A1:B2\x22,\x20\x22D1:E2\x22),\x20format_brush(\x22Sheet1!A1\x22,\x20\x22Sheet2!B1\x22)','Format\x20brush\x20copied\x20style\x20from\x20','Failed\x20to\x20delete\x20sheet\x20\x27','ff:','top\x20border','\x20sheet(s),\x20reason(s):\x20','endsWith','hex\x20color','test','Auto\x20fill\x20completed\x20from\x20','endRow','round','Success','onStarting','\x20does\x20not\x20exist\x20in\x20worksheet\x20','positive_color\x20type\x20expected\x20string','index','it:','deleteSheet','startsWith','getRow','set_cell_dimensions','duplicateValues','TEXT_LENGTH','Array\x20of\x20widths\x20in\x20points\x20for\x20multiple\x20columns','Sheet\x20name\x20\x27','includes','ICellUsageAnalyzer','Failed\x20to\x20rename\x20sheets:\x20','from','DeleteCfCommand','Array\x20of\x20heights\x20in\x20points\x20for\x20multiple\x20rows','fontColor','DataValidationErrorStyle','forEach','Failed\x20to\x20insert\x20columns:\x20','join','set','StyleUsageAnalyzer','toA1','sheet.command.set-once-format-painter','Batch\x20show\x20or\x20hide\x20multiple\x20worksheets.\x20Efficiently\x20sets\x20display\x20status\x20for\x20multiple\x20sheets\x20in\x20one\x20operation.','Unknown\x20formula\x20error','_configService','SetCfCommand','getColumn','rowColumnOperationTools','getOwnPropertyNames','sub_type','get_active_unit_id','Failed\x20to\x20delete\x20rows:\x20','RIGHT','@univerjs-pro/sheets-mcp','range_a1\x20is\x20required','set_range_style','length','Unsupported\x20conditional\x20formatting\x20configuration','UNSPECIFIED','custom_formula','Number\x20of\x20rows\x20to\x20insert\x20(default\x201)','cl:','value1\x20is\x20required\x20when\x20operator\x20is\x20set','List\x20of\x20DataValidationRule\x20(rule_id\x20auto-generated\x20if\x20not\x20provided)','getColumnWidth','```','getActiveSheet','fc:','Auto\x20fill\x20data\x20from\x20source\x20range\x20to\x20target\x20range\x20using\x20pattern\x20detection.\x20The\x20auto\x20fill\x20operation\x20will\x20also\x20copy\x20cell\x20styles,\x20formulas,\x20and\x20formatting\x20from\x20the\x20source\x20to\x20the\x20target\x20range.\x20You\x20do\x20NOT\x20need\x20to\x20call\x20format_brush\x20after\x20auto_fill.\x20auto_fill\x20only\x20supports\x20horizontal\x20or\x20vertical\x20extension.\x20The\x20target_range\x20must\x20be\x20aligned\x20with\x20the\x20source_range\x20(either\x20same\x20row\x20or\x20same\x20column\x20direction).\x20It\x20is\x20recommended\x20to\x20check\x20the\x20result\x20after\x20calling\x20this\x20tool\x20to\x20confirm\x20the\x20fill\x20is\x20as\x20expected.\x20Examples:\x20auto_fill(\x22A1:A2\x22,\x20\x22A1:A10\x22)\x20#\x20Fill\x20down\x20from\x20A1:A2\x20pattern\x20to\x20A1:A10\x20(vertical),\x20auto_fill(\x22A1:B1\x22,\x20\x22A1:F1\x22)\x20#\x20Fill\x20right\x20from\x20A1:B1\x20pattern\x20to\x20A1:F1\x20(horizontal)','Get\x20the\x20cell\x20data\x20grid\x20for\x20the\x20specified\x20range(s)\x20(A1\x20notation)\x20in\x20the\x20active\x20workbook,\x20with\x20flexible\x20output.\x20Do\x20not\x20fetch\x20too\x20large\x20a\x20range\x20at\x20once.\x20It\x20is\x20not\x20recommended\x20to\x20get\x20data\x20for\x20a\x20range\x20where\x20rows\x20*\x20columns\x20>\x20200\x20cells.','sequenceNodesBuilder','\x0a\x0aCurrent\x20Active\x20sheet:\x20','fail','trim','nextWeek','Added\x20','Name\x20of\x20the\x20worksheet\x20to\x20activate','univerAPI','0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','notEqual','insert_rows:\x20pos=','floor','getSheetId','Batch\x20delete\x20rows\x20for\x20multiple\x20operations.\x20Efficiently\x20deletes\x20rows\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','Screenshot\x20failed:\x20','Failed\x20to\x20modify\x20rule(s):\x20','formula2','UNIVER_SHEET','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','input_title','Name\x20of\x20the\x20worksheet\x20to\x20move','generateStringWithSequence','IMCPToolRegistry','version','allowBlank','syncExecuteCommand','19374xDImBx','operations','is_gradient','percent','add','map','bottom\x20padding','items','italic\x20(0|1)','promptTitle','HorizontalAlign','TOP','getRowHeight','error_title','errorStyle','Failed\x20to\x20delete\x20columns:\x20','CommandService\x20not\x20available','createIdentifier','has','showTime','nf:','Invalid\x20range\x20format:\x20','List\x20of\x20BatchRangeDataItem','value1','showDropDown','List\x20of\x20ranges\x20in\x20A1\x20notation','DISTRIBUTED','optional','stringify','rules','Unrecognized\x20function\x20or\x20name\x20error','List\x20of\x20CellDimensionRequest','Show\x20time\x20in\x20date\x20picker\x20(default\x20false)','errorType','num','Target\x20sheet\x20name','\x20position\x20','#\x20Range:\x20','Value\x20for\x20the\x20range','DataValidationType','positive_color','column','CFRuleType','First\x20value,\x20required\x20if\x20operator\x20is\x20set','underline','toLocaleLowerCase','merge','format_brush','Parameter\x20\x27','executeCommand','unshift','filter','(default\x20\x22\x22)','Unknown\x20error','#638EC6','Connecting\x20to\x20remote\x20data\x20source','getLastColumn','push','find_by','CFSubRuleType','isArray','registerTool','startColumn','getId','fromHighlightCellConfig','it:1','get_activity_status\x20screenshot\x20is\x20ignored\x20in\x20node\x20runtime','ICalculateFormulaService','1239024zaZRuT','Target\x20range\x20in\x20A1\x20notation,\x20supports\x20cross-sheet','Rule\x20identifier','values','No\x20active\x20workbook','background\x20color','Custom\x20formula','sheet_name','BOTTOM','ha:','percentile','_workbook','points','SHEET_MCP','Set\x20display\x20status\x20for\x20','sheetName','isBottom','show_dropdown','rule_id','union','Range\x20screenshot\x20API\x20not\x20available','\x20operation(s)\x20successfully.','getRowCount','Sheet\x20name\x20(optional,\x20uses\x20active\x20sheet\x20if\x20not\x20provided)','Failed\x20to\x20create\x20sheets:\x20','527895INHDFg','Division\x20by\x20zero\x20error','parseInt','conditionalFormattingTools','sheet.operation.set-selections','getFormula','INFO','-\x20Row\x20','set_sheet_display_status','stop','sheet.command.auto-fill','random','date','before','Source\x20range\x20in\x20A1\x20notation\x20(e.g.,\x20\x22A1:A2\x22,\x20\x22B1:C1\x22)','\x20operation(s):\x20','\x20rule(s)\x20successfully,\x20failed\x20','success','bind','custom_formula\x20are\x20required\x20for\x20validation_type:\x20custom_formula','\x27\x20must\x20be\x20an\x20integer\x20or\x20integer\x20string,\x20got\x20\x27','Sheet\x20\x22','error_style','SizeUsageAnalyzer','Calculation\x20error','The\x20search\x20keyword,\x20e.g.,\x20\x22=\x22','getSheetName','max','UniverSheetMCPPlugin','left\x20padding','LexerTreeBuilder','Inserted\x20rows\x20in\x20','getSheets','fromModule','Insert\x20\x22before\x22\x20or\x20\x22after\x22\x20the\x20position\x20(default\x20\x22before\x22)','Second\x20value,\x20only\x20for\x20\x22between\x22\x20or\x20\x22notBetween\x22','Unsupported\x20validation_type:\x20','endAbsoluteRefType','getAllDataValidationErrorAsync','font\x20size,\x20pt\x20(e.g.,\x2011)','list','number\x20format\x20pattern,\x20e.g.,\x20\x22#,##0.00\x22','rule_type','constructor','getActiveWorkbook','getLastRow','worksheet','_style','getData','IConfigService','\x0aCurrent\x20Active\x20range:\x20','null','substring','Add\x20one\x20or\x20more\x20data\x20validation\x20rules\x20to\x20the\x20specified\x20sheet.\x0aIt\x20can\x20also\x20be\x20used\x20to\x20specify\x20the\x20interaction\x20between\x20cells\x20using\x20date\x20selector,\x20drop-down,\x20checkboxes,\x20and\x20so\x20on\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rules:\x20List\x20of\x20DataValidationRule\x20(rule_id\x20auto-generated\x20if\x20not\x20provided)\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','hideSheet','List\x20of\x20names\x20of\x20the\x20worksheets\x20to\x20delete','rangeOperationTools','Height\x20array\x20length\x20(','unit','right','hidden',',\x20where=','checkbox','getSheetByName','826qTaiDz','\x22\x20not\x20found','Range\x20string\x20(A1\x20notation),\x20supports\x20comma-separated\x20multiple\x20ranges,\x20e.g.\x20\x22A1,B2:C3\x22',',\x20maybe\x20range\x20too\x20large\x20or\x20empty.','DATE','Row\x20index\x20(0-based)\x20where\x20to\x20start\x20deletion','insert_columns','rename_sheet','numberFormat','pattern','5341860VhUxgY','UniverInstanceType','stopIfTrue','deleteColumns','fromInternalConfig','array','Move\x20a\x20worksheet\x20to\x20the\x20specified\x20index\x20(does\x20not\x20activate\x20the\x20sheet).','_worksheet','formulaToA1','(default\x20\x22stop\x22)\x0a\x22stop\x22:\x20Stop\x20input\x0a\x22warning\x22:\x20Warning\x0a\x22information\x22:\x20Information','subType','setConfig','prototype','dataBar','Invalid\x20input','where\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27','Failed\x20to\x20set\x20active\x20range:','undefined','sheets.mcp.size-usage-analyzer','Deleted\x20rows\x20in\x20','defineProperty','set_merge','getHash','text_length','style','setActiveRange','row'];_0x2e2f=function(){return _0x12b40c;};return _0x2e2f();}function toPropertyKey(_0x3a6123){const _0x2aeffa=_0x4437f9;var _0x592a0b=toPrimitive(_0x3a6123,_0x2aeffa(0x415));return _0x2aeffa(0x19a)==_typeof(_0x592a0b)?_0x592a0b:_0x592a0b+'';}function _defineProperty(_0x3b0256,_0x2cd50f,_0x598c1e){const _0x5ae99f=_0x4437f9;return(_0x2cd50f=toPropertyKey(_0x2cd50f))in _0x3b0256?Object[_0x5ae99f(0x3d0)](_0x3b0256,_0x2cd50f,{'value':_0x598c1e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b0256[_0x2cd50f]=_0x598c1e,_0x3b0256;}function columnIndexToLetter(_0x5320d4){let _0x3c238e='',_0x34fb95=_0x5320d4+0x1;while(_0x34fb95>0x0){const _0x6b6895=(_0x34fb95-0x1)%0x1a;_0x3c238e=String['fromCharCode'](0x41+_0x6b6895)+_0x3c238e,_0x34fb95=Math['floor']((_0x34fb95-0x1)/0x1a);}return _0x3c238e;}function columnRangeToA1(_0x3243be){const _0x31e280=_0x4437f9,_0x1bac14=columnIndexToLetter(_0x3243be[_0x31e280(0x353)]),_0x55fb54=columnIndexToLetter(_0x3243be[_0x31e280(0x442)]);return _0x1bac14===_0x55fb54?_0x1bac14:_0x1bac14+':'+_0x55fb54;}function rowRangeToA1(_0x457f47){const _0x298bd3=_0x4437f9,_0x63d501=_0x457f47[_0x298bd3(0x213)]+0x1,_0x21b6a0=_0x457f47[_0x298bd3(0x2c0)]+0x1;return _0x63d501===_0x21b6a0?''+_0x63d501:_0x63d501+':'+_0x21b6a0;}function applyMaxCount$1(_0x2d1e1e,_0x4612d6){const _0x199a8e=_0x4437f9;if(_0x4612d6===void 0x0||_0x4612d6<=0x0||_0x2d1e1e[_0x199a8e(0x2ed)]<=_0x4612d6)return _0x2d1e1e;return _0x2d1e1e['slice'](0x0,_0x4612d6);}function groupConsecutiveRanges(_0x1234a0){const _0x5d3ab3=_0x4437f9;if(_0x1234a0[_0x5d3ab3(0x2ed)]===0x0)return[];const _0xce6ebe=[];let _0x579161=_0x1234a0[0x0],_0x57990e=_0x1234a0[0x0];for(let _0x5c10a3=0x1;_0x5c10a3<_0x1234a0['length'];_0x5c10a3++)if(_0x1234a0[_0x5c10a3]===_0x57990e+0x1)_0x57990e=_0x1234a0[_0x5c10a3];else _0xce6ebe['push']({'startRow':_0x579161,'endRow':_0x57990e}),_0x579161=_0x1234a0[_0x5c10a3],_0x57990e=_0x1234a0[_0x5c10a3];return _0xce6ebe[_0x5d3ab3(0x34e)]({'startRow':_0x579161,'endRow':_0x57990e}),_0xce6ebe;}function groupConsecutiveColumnRanges(_0x4979cf){const _0x5364f0=_0x4437f9;if(_0x4979cf['length']===0x0)return[];const _0x95059e=[];let _0x3387ce=_0x4979cf[0x0],_0x2c6649=_0x4979cf[0x0];for(let _0x36e071=0x1;_0x36e071<_0x4979cf[_0x5364f0(0x2ed)];_0x36e071++)if(_0x4979cf[_0x36e071]===_0x2c6649+0x1)_0x2c6649=_0x4979cf[_0x36e071];else _0x95059e[_0x5364f0(0x34e)]({'startColumn':_0x3387ce,'endColumn':_0x2c6649}),_0x3387ce=_0x4979cf[_0x36e071],_0x2c6649=_0x4979cf[_0x36e071];return _0x95059e[_0x5364f0(0x34e)]({'startColumn':_0x3387ce,'endColumn':_0x2c6649}),_0x95059e;}const ISizeUsageAnalyzer=(0x0,_univerjs_core[_0x4437f9(0x326)])(_0x4437f9(0x3ce));var SizeUsageAnalyzer=class{constructor(){const _0x3aeb7f=_0x4437f9;_defineProperty(this,_0x3aeb7f(0x25c),void 0x0);}[_0x4437f9(0x474)](_0x41b2b1){const _0x4a456d=_0x4437f9;this['_maxCount']=_0x41b2b1===null||_0x41b2b1===void 0x0?void 0x0:_0x41b2b1[_0x4a456d(0x1a7)];}[_0x4437f9(0x3fe)](_0x386e09,_0x506706,_0x52fd1c,_0x4b3754,_0x201970){const _0x535076=_0x4437f9,_0x301188=_0x52fd1c!==null&&_0x52fd1c!==void 0x0?_0x52fd1c:_0x386e09[_0x535076(0x36f)]()-0x1,_0x3534f7=_0x201970!==null&&_0x201970!==void 0x0?_0x201970:_0x386e09['getColumnCount']()-0x1,_0x52a5f4=new Map();for(let _0x4518e8=_0x506706!==null&&_0x506706!==void 0x0?_0x506706:0x0;_0x4518e8<=_0x301188;_0x4518e8++){const _0x420a9d=Math[_0x535076(0x2c1)](_0x386e09['getRowHeight'](_0x4518e8));if(!_0x52a5f4['has'](_0x420a9d))_0x52a5f4[_0x535076(0x2db)](_0x420a9d,[]);_0x52a5f4[_0x535076(0x480)](_0x420a9d)[_0x535076(0x34e)](_0x4518e8);}const _0x40ce78=new Map();for(let _0x23be1f=_0x4b3754!==null&&_0x4b3754!==void 0x0?_0x4b3754:0x0;_0x23be1f<=_0x3534f7;_0x23be1f++){const _0x398c94=Math['round'](_0x386e09[_0x535076(0x2f5)](_0x23be1f));if(!_0x40ce78['has'](_0x398c94))_0x40ce78[_0x535076(0x2db)](_0x398c94,[]);_0x40ce78[_0x535076(0x480)](_0x398c94)[_0x535076(0x34e)](_0x23be1f);}const _0x13614b=[],_0x394299=Array['from'](_0x52a5f4[_0x535076(0x44b)]())['sort']((_0x45f009,_0x383b40)=>_0x45f009[0x0]-_0x383b40[0x0]);for(const [_0x4ac2b9,_0x36b00f]of _0x394299)_0x13614b[_0x535076(0x34e)]({'value':_0x4ac2b9,'ranges':groupConsecutiveRanges(_0x36b00f)});const _0x3e2e00=[],_0x5a0239=Array[_0x535076(0x2d3)](_0x40ce78[_0x535076(0x44b)]())[_0x535076(0x1bf)]((_0x1f8300,_0x1a89ff)=>_0x1f8300[0x0]-_0x1a89ff[0x0]);for(const [_0x5af6bc,_0x448209]of _0x5a0239)_0x3e2e00[_0x535076(0x34e)]({'value':_0x5af6bc,'ranges':groupConsecutiveColumnRanges(_0x448209)});return{'widths':applyMaxCount$1(_0x3e2e00,this[_0x535076(0x25c)]),'heights':applyMaxCount$1(_0x13614b,this['_maxCount'])};}[_0x4437f9(0x2dd)](_0x2c5245){const _0x215fea=_0x4437f9;return{'widths':_0x2c5245[_0x215fea(0x29d)][_0x215fea(0x31a)](_0xb7bea7=>({'value':_0xb7bea7[_0x215fea(0x425)],'ranges':_0xb7bea7[_0x215fea(0x29c)][_0x215fea(0x31a)](columnRangeToA1)[_0x215fea(0x2da)](',\x20')})),'heights':_0x2c5245['heights']['map'](_0xe22a14=>({'value':_0xe22a14[_0x215fea(0x425)],'ranges':_0xe22a14[_0x215fea(0x29c)]['map'](rowRangeToA1)[_0x215fea(0x2da)](',\x20')}))};}};function compressMatrixFlexible({getItem:_0x4fcaab,getId:_0x11e589,condition:_0x45e305,rows:_0x12cac9,cols:_0x3b4fb5}){const _0x44c9da=_0x4437f9,_0x11d4c9=[];let _0x4443fa=[];for(let _0x321235=0x0;_0x321235<_0x12cac9;_0x321235++){const _0x9fe774=[];let _0x6dea19=0x0;while(_0x6dea19<_0x3b4fb5){const _0xbf46e2=_0x4fcaab(_0x321235,_0x6dea19);if(!_0xbf46e2||!_0x45e305(_0xbf46e2,_0x321235,_0x6dea19)){_0x6dea19++;continue;}const _0x3e9d85=_0x11e589(_0xbf46e2),_0x1c2293=_0x6dea19;while(_0x6dea19+0x1<_0x3b4fb5&&((()=>{const _0x411708=_0x4fcaab(_0x321235,_0x6dea19+0x1);return _0x411708&&_0x45e305(_0x411708,_0x321235,_0x6dea19)&&_0x11e589(_0x411708)===_0x3e9d85;})()))_0x6dea19++;const _0x202465=_0x6dea19;let _0x20bdfd=![];for(const _0xe63ea0 of _0x4443fa)if(_0xe63ea0['id']===_0x3e9d85&&_0xe63ea0['c1']===_0x1c2293&&_0xe63ea0['c2']===_0x202465){_0xe63ea0['r2']=_0x321235,_0x9fe774[_0x44c9da(0x34e)](_0xe63ea0),_0x20bdfd=!![];break;}if(!_0x20bdfd)_0x9fe774[_0x44c9da(0x34e)]({'r1':_0x321235,'c1':_0x1c2293,'r2':_0x321235,'c2':_0x202465,'id':_0x3e9d85});_0x6dea19++;}for(const _0x5e57be of _0x4443fa)if(!_0x9fe774[_0x44c9da(0x2d0)](_0x5e57be))_0x11d4c9[_0x44c9da(0x34e)](_0x5e57be);_0x4443fa=_0x9fe774;}return _0x11d4c9[_0x44c9da(0x34e)](..._0x4443fa),_0x11d4c9;}function getA1Notation([_0x3b9027,_0x4545c0,_0x3c6b9c,_0x3c4ea2]){if(_0x3b9027>_0x4545c0)[_0x3b9027,_0x4545c0]=[_0x4545c0,_0x3b9027];if(_0x3c6b9c>_0x3c4ea2)[_0x3c6b9c,_0x3c4ea2]=[_0x3c4ea2,_0x3c6b9c];const _0x2d6184=_0x59ccaf=>{const _0x36d6fe=_0x2512;let _0x461f46='';for(;_0x59ccaf>0x0;_0x59ccaf=Math[_0x36d6fe(0x306)]((_0x59ccaf-0x1)/0x1a))_0x461f46=String[_0x36d6fe(0x1f6)](0x41+(_0x59ccaf-0x1)%0x1a)+_0x461f46;return _0x461f46;},_0x15d456=_0x2d6184(_0x3c6b9c+0x1)+(_0x3b9027+0x1),_0xac7252=_0x2d6184(_0x3c4ea2+0x1)+(_0x4545c0+0x1);return _0x15d456===_0xac7252?_0x15d456:_0x15d456+':'+_0xac7252;}function groupRect(_0x38cb03,_0x250043){const _0x1dc627=_0x4437f9,_0x2ef74a={};for(const _0x558d46 of _0x38cb03){if(!_0x2ef74a[_0x558d46['id']]){let _0x575422=![],_0x51476c;for(let _0x4c88a6=_0x558d46['r1'];_0x4c88a6<=_0x558d46['r2']&&!_0x575422;_0x4c88a6++)for(let _0x336347=_0x558d46['c1'];_0x336347<=_0x558d46['c2']&&!_0x575422;_0x336347++){const _0x55f6da=_0x250043[_0x4c88a6][_0x336347];_0x55f6da&&_0x55f6da[_0x1dc627(0x28b)]&&(_0x51476c={'r1':_0x4c88a6,'c1':_0x336347,'data':_0x55f6da},_0x575422=!![]);}_0x2ef74a[_0x558d46['id']]={'hash':_0x558d46['id'],'ranges':[],'def':_0x51476c?{'c1':_0x51476c['c1'],'r1':_0x51476c['r1'],'data':_0x51476c[_0x1dc627(0x3ef)]}:void 0x0};}_0x2ef74a[_0x558d46['id']]['ranges']['push']({'startRow':_0x558d46['r1'],'endRow':_0x558d46['r2'],'startColumn':_0x558d46['c1'],'endColumn':_0x558d46['c2']});}return Object[_0x1dc627(0x35c)](_0x2ef74a)[_0x1dc627(0x1bf)]((_0xbc4176,_0x2ebcb2)=>{const _0x3dc5f0=_0x1dc627;if(_0xbc4176[_0x3dc5f0(0x27d)]&&_0x2ebcb2['def'])return _0xbc4176[_0x3dc5f0(0x27d)]['r1']-_0x2ebcb2[_0x3dc5f0(0x27d)]['r1']||_0xbc4176[_0x3dc5f0(0x27d)]['c1']-_0x2ebcb2['def']['c1'];if(_0xbc4176['def'])return-0x1;if(_0x2ebcb2['def'])return 0x1;return 0x0;})[_0x1dc627(0x31a)](_0x337450=>{const _0x174fd9=_0x1dc627;return{'dataHash':_0x337450[_0x174fd9(0x28b)],'firstOccurrence':{'startRow':_0x337450[_0x174fd9(0x27d)]['r1'],'endRow':_0x337450[_0x174fd9(0x27d)]['r1'],'startColumn':_0x337450[_0x174fd9(0x27d)]['c1'],'endColumn':_0x337450[_0x174fd9(0x27d)]['c1']},'filledRanges':_0x337450[_0x174fd9(0x29c)]};});}const ICellUsageAnalyzer=(0x0,_univerjs_core['createIdentifier'])(_0x4437f9(0x400));var CellUsageAnalyzer=class{['getAllCellUsages'](_0xfa055f,_0x2079b0){const _0x547b53=_0x4437f9;var _0x288211;const _0x1eef30=_0xfa055f[_0x547b53(0x2ed)],_0x39808a=((_0x288211=_0xfa055f[0x0])===null||_0x288211===void 0x0?void 0x0:_0x288211[_0x547b53(0x2ed)])||0x0,_0x43c7fb=[];for(let _0x5288f0=0x0;_0x5288f0<_0x1eef30;_0x5288f0++){_0x43c7fb[_0x5288f0]=[];for(let _0x302c2a=0x0;_0x302c2a<_0x39808a;_0x302c2a++){const _0x359b55=_0xfa055f[_0x5288f0][_0x302c2a],_0x44b66b=_0x2079b0[_0x547b53(0x3a2)](_0x359b55),_0x478b22=_0x2079b0[_0x547b53(0x3d2)](_0x44b66b,_0x5288f0,_0x302c2a);if(_0x478b22)_0x43c7fb[_0x5288f0][_0x302c2a]={..._0x359b55,'hash':_0x478b22};else _0x43c7fb[_0x5288f0][_0x302c2a]=_0x359b55;}}return groupRect(compressMatrixFlexible({'getItem':(_0x2b9847,_0x1f6488)=>_0x43c7fb[_0x2b9847][_0x1f6488],'getId':_0x310837=>(_0x310837===null||_0x310837===void 0x0?void 0x0:_0x310837['hash'])||'','condition':_0x1f1a1c=>!!_0x1f1a1c&&!!_0x1f1a1c[_0x547b53(0x28b)],'rows':_0x1eef30,'cols':_0x39808a}),_0x43c7fb);}};const HORIZONTAL_ALIGN_MAP={[_univerjs_core[_0x4437f9(0x31f)][_0x4437f9(0x2ef)]]:'unspec',[_univerjs_core[_0x4437f9(0x31f)][_0x4437f9(0x266)]]:_0x4437f9(0x414),[_univerjs_core[_0x4437f9(0x31f)][_0x4437f9(0x263)]]:_0x4437f9(0x466),[_univerjs_core['HorizontalAlign'][_0x4437f9(0x2e9)]]:_0x4437f9(0x3ad),[_univerjs_core[_0x4437f9(0x31f)][_0x4437f9(0x401)]]:_0x4437f9(0x463),[_univerjs_core['HorizontalAlign'][_0x4437f9(0x40e)]]:_0x4437f9(0x476),[_univerjs_core['HorizontalAlign'][_0x4437f9(0x32f)]]:'dist'},VERTICAL_ALIGN_MAP={[_univerjs_core[_0x4437f9(0x1d9)][_0x4437f9(0x2ef)]]:_0x4437f9(0x412),[_univerjs_core['VerticalAlign'][_0x4437f9(0x320)]]:'top',[_univerjs_core[_0x4437f9(0x1d9)]['MIDDLE']]:'mid',[_univerjs_core[_0x4437f9(0x1d9)][_0x4437f9(0x361)]]:_0x4437f9(0x21a)};var StyleExtractorCondition=class{constructor(_0x525427,_0x331aa6,_0x437937){const _0x4ac92f=_0x4437f9;this[_0x4ac92f(0x1c3)]=_0x525427,this[_0x4ac92f(0x219)]=_0x331aa6,this[_0x4ac92f(0x3a0)]=_0x437937;}[_0x4437f9(0x3a2)](_0x223eb5){if(!_0x223eb5)return null;return _0x223eb5;}[_0x4437f9(0x3d2)](_0x242088,_0x364357,_0x1eebaf){const _0x3df4a0=_0x4437f9,_0x42da9f=[];if(_0x242088===null||_0x242088===void 0x0?void 0x0:_0x242088['s']){const _0x4c15ee=typeof _0x242088['s']==='string'?this['getStyleById'](_0x242088['s']):_0x242088['s'];if(_0x4c15ee){var _0x280a50,_0x90c502,_0x477182,_0x3ec639,_0x31c147;if(this[_0x3df4a0(0x1c3)][_0x3df4a0(0x239)]&&_0x4c15ee['ff'])_0x42da9f['push'](_0x3df4a0(0x2b9)+_0x4c15ee['ff']);if(this['config'][_0x3df4a0(0x479)]&&_0x4c15ee['fs'])_0x42da9f[_0x3df4a0(0x34e)](_0x3df4a0(0x1b7)+_0x4c15ee['fs']);if(this['config'][_0x3df4a0(0x40c)]&&_0x4c15ee['bl']===_univerjs_core['BooleanNumber']['TRUE'])_0x42da9f[_0x3df4a0(0x34e)](_0x3df4a0(0x1f7));if(this['config'][_0x3df4a0(0x448)]&&_0x4c15ee['it']===_univerjs_core[_0x3df4a0(0x2b4)]['TRUE'])_0x42da9f[_0x3df4a0(0x34e)](_0x3df4a0(0x356));if(this[_0x3df4a0(0x1c3)][_0x3df4a0(0x2d6)]&&((_0x280a50=_0x4c15ee['cl'])===null||_0x280a50===void 0x0?void 0x0:_0x280a50[_0x3df4a0(0x256)]))_0x42da9f[_0x3df4a0(0x34e)](_0x3df4a0(0x2f8)+_0x4c15ee['cl'][_0x3df4a0(0x256)]);if(this['config']['backgroundColor']&&((_0x90c502=_0x4c15ee['bg'])===null||_0x90c502===void 0x0?void 0x0:_0x90c502['rgb']))_0x42da9f['push'](_0x3df4a0(0x262)+_0x4c15ee['bg']['rgb']);if(this[_0x3df4a0(0x1c3)][_0x3df4a0(0x19b)]&&_0x4c15ee['ht']!=null&&_0x4c15ee['ht']!==_univerjs_core['HorizontalAlign'][_0x3df4a0(0x2ef)])_0x42da9f['push'](_0x3df4a0(0x362)+HORIZONTAL_ALIGN_MAP[_0x4c15ee['ht']]);if(this['config'][_0x3df4a0(0x206)]&&_0x4c15ee['vt']!=null&&_0x4c15ee['vt']!==_univerjs_core[_0x3df4a0(0x1d9)][_0x3df4a0(0x2ef)])_0x42da9f[_0x3df4a0(0x34e)]('va:'+VERTICAL_ALIGN_MAP[_0x4c15ee['vt']]);if(this['config'][_0x3df4a0(0x341)]&&((_0x477182=_0x4c15ee['ul'])===null||_0x477182===void 0x0?void 0x0:_0x477182['s'])===_univerjs_core[_0x3df4a0(0x2b4)][_0x3df4a0(0x44f)]){var _0x3b7885;if(((_0x3b7885=_0x4c15ee['ul']['t'])!==null&&_0x3b7885!==void 0x0?_0x3b7885:_univerjs_core[_0x3df4a0(0x257)][_0x3df4a0(0x234)])!==_univerjs_core[_0x3df4a0(0x257)][_0x3df4a0(0x3dd)])_0x42da9f[_0x3df4a0(0x34e)](_0x3df4a0(0x1fc));}if(this[_0x3df4a0(0x1c3)][_0x3df4a0(0x47e)]&&((_0x3ec639=_0x4c15ee['st'])===null||_0x3ec639===void 0x0?void 0x0:_0x3ec639['s'])===_univerjs_core[_0x3df4a0(0x2b4)][_0x3df4a0(0x44f)]){var _0x4e9d83;if(((_0x4e9d83=_0x4c15ee['st']['t'])!==null&&_0x4e9d83!==void 0x0?_0x4e9d83:_univerjs_core[_0x3df4a0(0x257)][_0x3df4a0(0x234)])!==_univerjs_core['TextDecoration'][_0x3df4a0(0x3dd)])_0x42da9f['push']('st:1');}if(this[_0x3df4a0(0x1c3)]['numberFormat']&&((_0x31c147=_0x4c15ee['n'])===null||_0x31c147===void 0x0?void 0x0:_0x31c147['pattern'])&&_0x4c15ee['n'][_0x3df4a0(0x3bb)]!==_0x3df4a0(0x18d))_0x42da9f[_0x3df4a0(0x34e)](_0x3df4a0(0x329)+_0x4c15ee['n'][_0x3df4a0(0x3bb)]);}}if(this[_0x3df4a0(0x3a0)]){if(this[_0x3df4a0(0x1c3)][_0x3df4a0(0x27a)]&&typeof _0x364357===_0x3df4a0(0x1f0)){const _0x506cd8=Math['round'](this['worksheet'][_0x3df4a0(0x321)](_0x364357));_0x42da9f[_0x3df4a0(0x34e)]('h:'+_0x506cd8);}if(this[_0x3df4a0(0x1c3)][_0x3df4a0(0x1d1)]&&typeof _0x1eebaf===_0x3df4a0(0x1f0)){const _0x2d35c6=Math[_0x3df4a0(0x2c1)](this['worksheet'][_0x3df4a0(0x2f5)](_0x1eebaf));_0x42da9f[_0x3df4a0(0x34e)]('w:'+_0x2d35c6);}}return _0x42da9f[_0x3df4a0(0x2da)]('|');}};function toStyleUsage(_0x9189fa){const _0x5616b9=_0x4437f9;return{'styleHash':_0x9189fa[_0x5616b9(0x1ba)],'filledRanges':_0x9189fa[_0x5616b9(0x3de)]};}function toA1$1(_0x4b9221){const _0x4178cf=_0x4437f9;return{'styleHash':_0x4b9221['styleHash'],'filledRanges':_0x4b9221['filledRanges'][_0x4178cf(0x31a)](_0x5221d0=>getA1Notation([_0x5221d0[_0x4178cf(0x213)],_0x5221d0[_0x4178cf(0x2c0)],_0x5221d0[_0x4178cf(0x353)],_0x5221d0[_0x4178cf(0x442)]]))[_0x4178cf(0x2da)](',')};}function applyMaxCount(_0x1c425f,_0x5678ac){const _0x24a8c8=_0x4437f9;if(_0x5678ac===void 0x0||_0x5678ac<=0x0||_0x1c425f[_0x24a8c8(0x2ed)]<=_0x5678ac)return _0x1c425f;return _0x1c425f[_0x24a8c8(0x200)](0x0,_0x5678ac);}const PROPERTY_ALIASES={'ff':'fontFamily','fontFamily':_0x4437f9(0x239),'fs':'fontSize','fontSize':_0x4437f9(0x479),'bl':_0x4437f9(0x40c),'bold':_0x4437f9(0x40c),'it':_0x4437f9(0x448),'italic':_0x4437f9(0x448),'fc':_0x4437f9(0x2d6),'fontColor':_0x4437f9(0x2d6),'bc':'backgroundColor','backgroundColor':_0x4437f9(0x454),'w':_0x4437f9(0x1d1),'width':_0x4437f9(0x1d1),'h':_0x4437f9(0x27a),'height':'height','ha':'horizontalAlign','horizontalAlign':'horizontalAlign','va':_0x4437f9(0x206),'verticalAlign':'verticalAlign','ul':_0x4437f9(0x341),'underline':_0x4437f9(0x341),'st':_0x4437f9(0x47e),'strikethrough':_0x4437f9(0x47e),'nf':_0x4437f9(0x3ba),'numberFormat':_0x4437f9(0x3ba)};function normalizeProperty(_0x2ae1be){const _0x3a3f67=_0x4437f9;if([_0x3a3f67(0x239),_0x3a3f67(0x479),'bold','italic',_0x3a3f67(0x2d6),_0x3a3f67(0x454),_0x3a3f67(0x1d1),_0x3a3f67(0x27a),_0x3a3f67(0x19b),_0x3a3f67(0x206),_0x3a3f67(0x341),_0x3a3f67(0x47e),_0x3a3f67(0x3ba)][_0x3a3f67(0x2d0)](_0x2ae1be))return _0x2ae1be;if(PROPERTY_ALIASES[_0x2ae1be]!==void 0x0)return PROPERTY_ALIASES[_0x2ae1be];}function buildConfigFromOptions(_0x5bc7f1){const _0x6380a9=_0x4437f9;if(!(_0x5bc7f1===null||_0x5bc7f1===void 0x0?void 0x0:_0x5bc7f1[_0x6380a9(0x432)])||_0x5bc7f1[_0x6380a9(0x432)][_0x6380a9(0x2ed)]===0x0)return{'fontFamily':!![],'fontSize':!![],'bold':!![],'italic':![],'fontColor':!![],'backgroundColor':!![],'width':![],'height':![],'horizontalAlign':![],'verticalAlign':![],'underline':![],'strikethrough':![],'numberFormat':![]};const _0x25277=new Set();for(const _0x616c9b of _0x5bc7f1[_0x6380a9(0x432)]){const _0x384cec=normalizeProperty(_0x616c9b);if(_0x384cec)_0x25277[_0x6380a9(0x319)](_0x384cec);}return{'fontFamily':_0x25277[_0x6380a9(0x327)](_0x6380a9(0x239)),'fontSize':_0x25277[_0x6380a9(0x327)](_0x6380a9(0x479)),'bold':_0x25277[_0x6380a9(0x327)]('bold'),'italic':_0x25277[_0x6380a9(0x327)](_0x6380a9(0x448)),'fontColor':_0x25277[_0x6380a9(0x327)]('fontColor'),'backgroundColor':_0x25277[_0x6380a9(0x327)]('backgroundColor'),'width':_0x25277['has'](_0x6380a9(0x1d1)),'height':_0x25277[_0x6380a9(0x327)](_0x6380a9(0x27a)),'horizontalAlign':_0x25277[_0x6380a9(0x327)](_0x6380a9(0x19b)),'verticalAlign':_0x25277[_0x6380a9(0x327)](_0x6380a9(0x206)),'underline':_0x25277[_0x6380a9(0x327)](_0x6380a9(0x341)),'strikethrough':_0x25277['has'](_0x6380a9(0x47e)),'numberFormat':_0x25277[_0x6380a9(0x327)](_0x6380a9(0x3ba))};}const IStyleUsageAnalyzer=(0x0,_univerjs_core[_0x4437f9(0x326)])('sheets.mcp.style-usage-analyzer');var StyleUsageAnalyzer=class extends CellUsageAnalyzer{constructor(_0x4a42c4){const _0x434298=_0x4437f9;super(),_defineProperty(this,'_config',void 0x0),_defineProperty(this,_0x434298(0x25c),void 0x0),this[_0x434298(0x1f9)]=_0x4a42c4||{'fontFamily':!![],'fontSize':!![],'bold':!![],'italic':![],'fontColor':!![],'backgroundColor':!![],'width':![],'height':![],'horizontalAlign':![],'verticalAlign':![],'underline':![],'strikethrough':![],'numberFormat':![]};}[_0x4437f9(0x474)](_0x4a5458){const _0x4c1c4b=_0x4437f9;this['_config']=buildConfigFromOptions(_0x4a5458),this[_0x4c1c4b(0x25c)]=_0x4a5458===null||_0x4a5458===void 0x0?void 0x0:_0x4a5458[_0x4c1c4b(0x1a7)];}['getAllStyleUsages'](_0x33fa34,_0x484bc,_0x7c9a73){const _0x152d60=_0x4437f9,_0x484dd4=new StyleExtractorCondition(this[_0x152d60(0x1f9)],_0x524880=>{const _0x47ccf3=_0x152d60;var _0x592ac1;return(_0x592ac1=_0x484bc[_0x47ccf3(0x1df)]()['get'](_0x524880))!==null&&_0x592ac1!==void 0x0?_0x592ac1:null;},_0x7c9a73);return applyMaxCount(this[_0x152d60(0x196)](_0x33fa34,_0x484dd4)['map'](toStyleUsage),this['_maxCount']);}},ConditionalFormatConverter=class{static[_0x4437f9(0x451)](_0x264fba){const _0x1b10b0=_0x4437f9;switch(_0x264fba[_0x1b10b0(0x39c)]){case'highlightCell':return this[_0x1b10b0(0x26c)](_0x264fba);case _0x1b10b0(0x3c9):return this[_0x1b10b0(0x1e9)](_0x264fba);case'colorScale':return this[_0x1b10b0(0x20f)](_0x264fba);default:throw new Error(_0x1b10b0(0x410)+_0x264fba[_0x1b10b0(0x39c)]);}}static[_0x4437f9(0x3c0)](_0x275273){const _0x4c6682=_0x4437f9;if(_0x275273[_0x4c6682(0x238)][_0x4c6682(0x1da)]===_univerjs_sheets_conditional_formatting['CFRuleType'][_0x4c6682(0x1c4)])return this[_0x4c6682(0x355)](_0x275273);else{if(_0x275273[_0x4c6682(0x238)][_0x4c6682(0x1da)]===_univerjs_sheets_conditional_formatting[_0x4c6682(0x33f)][_0x4c6682(0x3c9)])return this[_0x4c6682(0x258)](_0x275273);else{if(_0x275273[_0x4c6682(0x238)][_0x4c6682(0x1da)]===_univerjs_sheets_conditional_formatting[_0x4c6682(0x33f)][_0x4c6682(0x188)])return this[_0x4c6682(0x251)](_0x275273);}}throw new Error(_0x4c6682(0x2ee));}static[_0x4437f9(0x435)](_0x490142){const _0x4fc9d4=_0x4437f9,_0x8afe5f={};if(_0x490142['fgColor'])_0x8afe5f['cl']={'rgb':_0x490142[_0x4fc9d4(0x190)]};if(_0x490142[_0x4fc9d4(0x275)])_0x8afe5f['bg']={'rgb':_0x490142[_0x4fc9d4(0x275)]};if(_0x490142[_0x4fc9d4(0x40c)]!==void 0x0)_0x8afe5f['bl']=_0x490142[_0x4fc9d4(0x40c)]?0x1:0x0;if(_0x490142['italic']!==void 0x0)_0x8afe5f['it']=_0x490142[_0x4fc9d4(0x448)]?0x1:0x0;if(_0x490142['underline']!==void 0x0)_0x8afe5f['ul']={'s':_0x490142[_0x4fc9d4(0x341)]?0x1:0x0};return _0x8afe5f;}static[_0x4437f9(0x1ce)](_0x25de09){const _0x56b804=_0x4437f9;var _0x51690d,_0x502b41,_0x19d300;return{...((_0x51690d=_0x25de09['cl'])===null||_0x51690d===void 0x0?void 0x0:_0x51690d['rgb'])?{'fgColor':_0x25de09['cl']['rgb']}:{},...((_0x502b41=_0x25de09['bg'])===null||_0x502b41===void 0x0?void 0x0:_0x502b41[_0x56b804(0x256)])?{'bgColor':_0x25de09['bg'][_0x56b804(0x256)]}:{},..._0x25de09['bl']!==void 0x0?{'bold':_0x25de09['bl']===0x1}:{},..._0x25de09['it']!==void 0x0?{'italic':_0x25de09['it']===0x1}:{},...((_0x19d300=_0x25de09['ul'])===null||_0x19d300===void 0x0?void 0x0:_0x19d300['s'])!==void 0x0?{'underline':_0x25de09['ul']['s']===0x1}:{}};}static[_0x4437f9(0x26c)](_0x5d7f3c){const _0x83dcf2=_0x4437f9;var _0x4a0c58;let _0x3dae72={'type':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x33f)][_0x83dcf2(0x1c4)],'subType':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x350)][_0x5d7f3c[_0x83dcf2(0x2e6)]],'style':this['toInternalStyle'](_0x5d7f3c[_0x83dcf2(0x3d4)]||{})};switch(_0x5d7f3c[_0x83dcf2(0x2e6)]){case _0x83dcf2(0x252):_0x3dae72={..._0x3dae72,'subType':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x350)][_0x83dcf2(0x252)]};break;case'duplicateValues':_0x3dae72={..._0x3dae72,'subType':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x350)][_0x83dcf2(0x2cc)]};break;case'rank':var _0x140ad5,_0x5df166;_0x3dae72={..._0x3dae72,'subType':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x350)]['rank'],'isBottom':(_0x140ad5=_0x5d7f3c[_0x83dcf2(0x3fd)])!==null&&_0x140ad5!==void 0x0?_0x140ad5:![],'isPercent':(_0x5df166=_0x5d7f3c[_0x83dcf2(0x1d5)])!==null&&_0x5df166!==void 0x0?_0x5df166:![],'value':_0x5d7f3c[_0x83dcf2(0x425)]};break;case _0x83dcf2(0x424):_0x3dae72={..._0x3dae72,'subType':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x350)]['text'],'operator':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x259)][_0x5d7f3c[_0x83dcf2(0x3ee)]],'value':_0x5d7f3c[_0x83dcf2(0x425)]};break;case _0x83dcf2(0x1ef):_0x3dae72={..._0x3dae72,'subType':_univerjs_sheets_conditional_formatting['CFSubRuleType']['timePeriod'],'operator':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x1d6)][_0x5d7f3c[_0x83dcf2(0x3ee)]]};break;case _0x83dcf2(0x296):let _0xff9de9=_0x5d7f3c[_0x83dcf2(0x296)]||_0x5d7f3c[_0x83dcf2(0x425)];if(_0xff9de9&&!_0xff9de9['startsWith']('='))_0xff9de9='='+_0xff9de9;_0x3dae72={..._0x3dae72,'subType':_univerjs_sheets_conditional_formatting['CFSubRuleType']['formula'],'value':_0xff9de9};break;case _0x83dcf2(0x1f0):if(_0x5d7f3c[_0x83dcf2(0x3ee)]===_0x83dcf2(0x1fb)||_0x5d7f3c['operator']==='notBetween')_0x3dae72={..._0x3dae72,'subType':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x350)]['number'],'operator':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x221)][_0x5d7f3c[_0x83dcf2(0x3ee)]],'value':_0x5d7f3c[_0x83dcf2(0x425)]};else _0x3dae72={..._0x3dae72,'subType':_univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x83dcf2(0x1f0)],'operator':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x221)][_0x5d7f3c['operator']],'value':_0x5d7f3c[_0x83dcf2(0x425)]};break;case'average':_0x3dae72={..._0x3dae72,'subType':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x350)][_0x83dcf2(0x21c)],'operator':_univerjs_sheets_conditional_formatting[_0x83dcf2(0x221)][_0x5d7f3c[_0x83dcf2(0x3ee)]]};break;default:throw new Error(_0x83dcf2(0x3e2)+_0x5d7f3c[_0x83dcf2(0x2e6)]);}return{'ranges':_0x5d7f3c[_0x83dcf2(0x220)][_0x83dcf2(0x2ad)](',')[_0x83dcf2(0x31a)](_0x35d592=>{const _0x46495c=_0x83dcf2;return(0x0,_univerjs_engine_formula[_0x46495c(0x24c)])(_0x35d592)['range'];}),'cfId':_0x5d7f3c['rule_id'],'stopIfTrue':(_0x4a0c58=_0x5d7f3c['stop_if_true'])!==null&&_0x4a0c58!==void 0x0?_0x4a0c58:![],'rule':_0x3dae72};}static[_0x4437f9(0x355)](_0x1ca5e1){const _0x2b839c=_0x4437f9,_0x200679=_0x1ca5e1[_0x2b839c(0x238)],_0x332284={'range':_0x1ca5e1['ranges'][_0x2b839c(0x31a)](_0x108747=>{return(0x0,_univerjs_engine_formula['serializeRange'])(_0x108747);})[_0x2b839c(0x2da)](','),'rule_type':_0x2b839c(0x1c4),'rule_id':_0x1ca5e1[_0x2b839c(0x271)],'stop_if_true':_0x1ca5e1[_0x2b839c(0x3be)],'sub_type':_univerjs_sheets_conditional_formatting[_0x2b839c(0x350)][_0x200679[_0x2b839c(0x3c6)]],'style':this[_0x2b839c(0x1ce)](_0x200679[_0x2b839c(0x3d4)])};switch(_0x200679['subType']){case _univerjs_sheets_conditional_formatting['CFSubRuleType']['uniqueValues']:return{..._0x332284};case _univerjs_sheets_conditional_formatting[_0x2b839c(0x350)][_0x2b839c(0x2cc)]:return{..._0x332284};case _univerjs_sheets_conditional_formatting[_0x2b839c(0x350)]['rank']:const _0x582409=_0x200679;return{..._0x332284,'is_bottom':_0x582409[_0x2b839c(0x369)],'is_percent':_0x582409[_0x2b839c(0x1fe)],'value':_0x582409[_0x2b839c(0x425)]};case _univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x2b839c(0x424)]:const _0x470fbf=_0x200679;return{..._0x332284,'operator':_univerjs_sheets_conditional_formatting[_0x2b839c(0x259)][_0x470fbf['operator']],'value':_0x470fbf[_0x2b839c(0x425)]};case _univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x2b839c(0x1ef)]:const _0x144dac=_0x200679;return{..._0x332284,'operator':_univerjs_sheets_conditional_formatting[_0x2b839c(0x1d6)][_0x144dac[_0x2b839c(0x3ee)]]};case _univerjs_sheets_conditional_formatting[_0x2b839c(0x350)][_0x2b839c(0x296)]:const _0x2825f6=_0x200679;return{..._0x332284,'value':_0x2825f6[_0x2b839c(0x425)]};case _univerjs_sheets_conditional_formatting[_0x2b839c(0x350)][_0x2b839c(0x1f0)]:const _0x255bfa=_0x200679;return{..._0x332284,'operator':_univerjs_sheets_conditional_formatting[_0x2b839c(0x221)][_0x255bfa[_0x2b839c(0x3ee)]],'value':_0x255bfa[_0x2b839c(0x425)]};case _univerjs_sheets_conditional_formatting['CFSubRuleType']['average']:const _0x2210be=_0x200679;return{..._0x332284,'operator':_univerjs_sheets_conditional_formatting['CFNumberOperator'][_0x2210be[_0x2b839c(0x3ee)]]};default:throw new Error('Unsupported\x20highlight\x20cell\x20sub-type:\x20'+_0x200679['subType']);}}static[_0x4437f9(0x1e9)](_0x1cbf06){const _0x27ea3a=_0x4437f9;var _0x412778,_0x52d806,_0x114c4e,_0xa71a73,_0x43b7e6;if(typeof _0x1cbf06['positive_color']===_0x27ea3a(0x1a8)){if(_0x1cbf06[_0x27ea3a(0x33d)]['rgb'])_0x1cbf06[_0x27ea3a(0x33d)]=_0x1cbf06[_0x27ea3a(0x33d)]['rgb'];else throw new Error(_0x27ea3a(0x2c5));}if(typeof _0x1cbf06[_0x27ea3a(0x1db)]==='object'){if(_0x1cbf06[_0x27ea3a(0x1db)][_0x27ea3a(0x256)])_0x1cbf06[_0x27ea3a(0x1db)]=_0x1cbf06[_0x27ea3a(0x1db)][_0x27ea3a(0x256)];else throw new Error(_0x27ea3a(0x446));}return{'ranges':_0x1cbf06[_0x27ea3a(0x220)][_0x27ea3a(0x2ad)](',')[_0x27ea3a(0x31a)](_0x2a588e=>{const _0x2228ff=_0x27ea3a;return(0x0,_univerjs_engine_formula['deserializeRangeWithSheetWithCache'])(_0x2a588e)[_0x2228ff(0x220)];}),'cfId':_0x1cbf06[_0x27ea3a(0x36b)],'stopIfTrue':(_0x412778=_0x1cbf06[_0x27ea3a(0x22d)])!==null&&_0x412778!==void 0x0?_0x412778:![],'rule':{'type':_univerjs_sheets_conditional_formatting[_0x27ea3a(0x33f)][_0x27ea3a(0x3c9)],'isShowValue':(_0x52d806=_0x1cbf06[_0x27ea3a(0x195)])!==null&&_0x52d806!==void 0x0?_0x52d806:!![],'config':{'min':{'type':_univerjs_sheets_conditional_formatting[_0x27ea3a(0x17e)][_0x1cbf06[_0x27ea3a(0x1b2)]]||_univerjs_sheets_conditional_formatting['CFValueType'][_0x27ea3a(0x337)],'value':_0x1cbf06['min_value']},'max':{'type':_univerjs_sheets_conditional_formatting[_0x27ea3a(0x17e)][_0x1cbf06[_0x27ea3a(0x1e6)]]||_univerjs_sheets_conditional_formatting[_0x27ea3a(0x17e)][_0x27ea3a(0x337)],'value':_0x1cbf06['max_value']},'isGradient':(_0x114c4e=_0x1cbf06[_0x27ea3a(0x317)])!==null&&_0x114c4e!==void 0x0?_0x114c4e:!![],'positiveColor':(_0xa71a73=_0x1cbf06[_0x27ea3a(0x33d)])!==null&&_0xa71a73!==void 0x0?_0xa71a73:_0x27ea3a(0x34b),'nativeColor':(_0x43b7e6=_0x1cbf06[_0x27ea3a(0x1db)])!==null&&_0x43b7e6!==void 0x0?_0x43b7e6:'#FF0000'}}};}static[_0x4437f9(0x258)](_0xd1c466){const _0x508e2a=_0x4437f9,_0x4f1d87=_0xd1c466['rule'];return{'range':_0xd1c466['ranges'][_0x508e2a(0x31a)](_0x43dfd6=>{const _0x5bf4cf=_0x508e2a;return(0x0,_univerjs_engine_formula[_0x5bf4cf(0x405)])(_0x43dfd6);})[_0x508e2a(0x2da)](','),'rule_type':_0x508e2a(0x3c9),'rule_id':_0xd1c466[_0x508e2a(0x271)],'stop_if_true':_0xd1c466[_0x508e2a(0x3be)],'is_show_value':_0x4f1d87[_0x508e2a(0x3f9)],'min_type':_univerjs_sheets_conditional_formatting[_0x508e2a(0x17e)][_0x4f1d87[_0x508e2a(0x1c3)][_0x508e2a(0x2af)]['type']],'min_value':_0x4f1d87[_0x508e2a(0x1c3)][_0x508e2a(0x2af)][_0x508e2a(0x425)],'max_type':_univerjs_sheets_conditional_formatting[_0x508e2a(0x17e)][_0x4f1d87[_0x508e2a(0x1c3)]['max'][_0x508e2a(0x1da)]],'max_value':_0x4f1d87[_0x508e2a(0x1c3)][_0x508e2a(0x38d)][_0x508e2a(0x425)],'is_gradient':_0x4f1d87[_0x508e2a(0x1c3)]['isGradient'],'positive_color':_0x4f1d87['config'][_0x508e2a(0x218)],'native_color':_0x4f1d87[_0x508e2a(0x1c3)][_0x508e2a(0x1af)]};}static[_0x4437f9(0x20f)](_0x4fd8b1){const _0x4ab61e=_0x4437f9;var _0x13ed0c;return{'ranges':_0x4fd8b1[_0x4ab61e(0x220)][_0x4ab61e(0x2ad)](',')[_0x4ab61e(0x31a)](_0x3b8c90=>{const _0x3058e5=_0x4ab61e;return(0x0,_univerjs_engine_formula[_0x3058e5(0x24c)])(_0x3b8c90)[_0x3058e5(0x220)];}),'cfId':_0x4fd8b1[_0x4ab61e(0x36b)],'stopIfTrue':(_0x13ed0c=_0x4fd8b1[_0x4ab61e(0x22d)])!==null&&_0x13ed0c!==void 0x0?_0x13ed0c:![],'rule':{'type':_univerjs_sheets_conditional_formatting[_0x4ab61e(0x33f)][_0x4ab61e(0x188)],'config':(_0x4fd8b1[_0x4ab61e(0x365)]||[])[_0x4ab61e(0x31a)](_0x61d458=>({'index':_0x61d458[_0x4ab61e(0x2c6)],'color':_0x61d458[_0x4ab61e(0x2b2)],'value':{'type':_univerjs_sheets_conditional_formatting[_0x4ab61e(0x17e)][_0x61d458[_0x4ab61e(0x441)]]||_univerjs_sheets_conditional_formatting['CFValueType'][_0x4ab61e(0x337)],'value':_0x61d458[_0x4ab61e(0x425)]}}))}};}static[_0x4437f9(0x251)](_0x1e2dc7){const _0x2720a1=_0x4437f9,_0x3a87e8=_0x1e2dc7[_0x2720a1(0x238)];return{'range':_0x1e2dc7[_0x2720a1(0x29c)][_0x2720a1(0x31a)](_0x22aafa=>{const _0x83db48=_0x2720a1;return(0x0,_univerjs_engine_formula[_0x83db48(0x405)])(_0x22aafa);})[_0x2720a1(0x2da)](','),'rule_type':_0x2720a1(0x188),'rule_id':_0x1e2dc7['cfId'],'stop_if_true':_0x1e2dc7[_0x2720a1(0x3be)],'points':_0x3a87e8[_0x2720a1(0x1c3)][_0x2720a1(0x31a)](_0x326271=>({'index':_0x326271[_0x2720a1(0x2c6)],'color':_0x326271[_0x2720a1(0x2b2)],'value_type':_univerjs_sheets_conditional_formatting[_0x2720a1(0x17e)][_0x326271[_0x2720a1(0x425)][_0x2720a1(0x1da)]],'value':_0x326271[_0x2720a1(0x425)][_0x2720a1(0x425)]}))};}};function getUniverAPI(){const _0x5215fd=_0x4437f9;return globalThis[_0x5215fd(0x302)];}function getInjector(){const _0x3a1f43=_0x4437f9,_0x5d9b73=getUniverAPI();if(!(_0x5d9b73===null||_0x5d9b73===void 0x0?void 0x0:_0x5d9b73[_0x3a1f43(0x26a)]))throw new Error('UniverAPI\x20injector\x20not\x20available');return _0x5d9b73['_injector'];}function getContainerElement(){const _0x5f291a=_0x4437f9,_0x1461f1=getInjector()[_0x5f291a(0x480)](_univerjs_ui['ILayoutService'])[_0x5f291a(0x3da)];if(!_0x1461f1)throw new Error('No\x20container\x20element\x20for\x20screenshot');return _0x1461f1;}function getCommandService(){const _0x195c13=_0x4437f9,_0x5bc710=getUniverAPI();if(!(_0x5bc710===null||_0x5bc710===void 0x0?void 0x0:_0x5bc710[_0x195c13(0x26a)]))throw new Error(_0x195c13(0x40a));return _0x5bc710[_0x195c13(0x26a)][_0x195c13(0x480)](_univerjs_core[_0x195c13(0x1a2)]);}function getSheetInterceptorService(){const _0x14f880=_0x4437f9,_0xe8014b=getUniverAPI();if(!(_0xe8014b===null||_0xe8014b===void 0x0?void 0x0:_0xe8014b['_injector']))throw new Error('UniverAPI\x20injector\x20not\x20available');return _0xe8014b[_0x14f880(0x26a)][_0x14f880(0x480)](_univerjs_sheets[_0x14f880(0x3e0)]);}function parseRangeType(_0x214791){const _0x430e36=_0x4437f9,_0x233982=_0x214791['includes']('!')?_0x214791[_0x430e36(0x2ad)]('!')[0x1]:_0x214791;if(/^[A-Z]+:[A-Z]+$/[_0x430e36(0x2be)](_0x233982))return{'type':_0x430e36(0x33e),'isValid':!![]};if(/^\d+:\d+$/[_0x430e36(0x2be)](_0x233982))return{'type':'row','isValid':!![]};return{'type':_0x430e36(0x285),'isValid':!![]};}function columnLetterToNumber(_0xd5f8ea){const _0x6d9a4=_0x4437f9;let _0x378de9=0x0;for(let _0x43fdbb=0x0;_0x43fdbb<_0xd5f8ea[_0x6d9a4(0x2ed)];_0x43fdbb++)_0x378de9=_0x378de9*0x1a+(_0xd5f8ea[_0x6d9a4(0x28c)](_0x43fdbb)-0x41+0x1);return _0x378de9-0x1;}function ensureInt(_0x44f090,_0x4f29a9){const _0x25275d=_0x4437f9;if(typeof _0x44f090===_0x25275d(0x1f0))return _0x44f090;else{if(typeof _0x44f090==='string'){const _0x29e467=Number[_0x25275d(0x374)](_0x44f090,0xa);if(isNaN(_0x29e467))throw new TypeError(_0x25275d(0x345)+_0x4f29a9+_0x25275d(0x386)+_0x44f090+'\x27');return _0x29e467;}else throw new TypeError('Parameter\x20\x27'+_0x4f29a9+_0x25275d(0x460)+typeof _0x44f090);}}const styleDataSchema=_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'ff':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['optional']()[_0x4437f9(0x1a0)](_0x4437f9(0x1be)),'fs':_univerjs_pro_mcp['z']['number']()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x399)),'it':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x0),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1)])['optional']()[_0x4437f9(0x1a0)](_0x4437f9(0x31d)),'bl':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1)])['optional']()[_0x4437f9(0x1a0)](_0x4437f9(0x428)),'ul':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'s':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x0),_univerjs_pro_mcp['z']['literal'](0x1)])[_0x4437f9(0x1a0)](_0x4437f9(0x3d4)),'cl':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['describe'](_0x4437f9(0x2b2)),'c':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x0),_univerjs_pro_mcp['z']['literal'](0x1)])[_0x4437f9(0x330)](),'t':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['optional']()})[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)]('underline'),'st':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'s':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1)])[_0x4437f9(0x1a0)](_0x4437f9(0x3d4)),'cl':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['describe'](_0x4437f9(0x2b2)),'c':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z']['literal'](0x1)])[_0x4437f9(0x330)](),'t':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x330)]()})[_0x4437f9(0x330)]()['describe'](_0x4437f9(0x468)),'ol':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'s':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x0),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1)])[_0x4437f9(0x1a0)](_0x4437f9(0x3d4)),'cl':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x2b2)),'c':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x0),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1)])['optional'](),'t':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x330)]()})[_0x4437f9(0x330)]()['describe'](_0x4437f9(0x187)),'bg':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'rgb':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x233))})[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x35e)),'bd':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'t':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'s':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x0),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1)])[_0x4437f9(0x1a0)](_0x4437f9(0x3d4)),'cl':_univerjs_pro_mcp['z']['string']()['describe'](_0x4437f9(0x2b2))})[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x2ba)),'b':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'s':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x0),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1)])['describe'](_0x4437f9(0x3d4)),'cl':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x2b2))})['optional']()[_0x4437f9(0x1a0)]('bottom\x20border'),'l':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'s':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x0),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1)])[_0x4437f9(0x1a0)](_0x4437f9(0x3d4)),'cl':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x1a0)](_0x4437f9(0x2b2))})[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x1d0)),'r':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'s':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x0),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1)])[_0x4437f9(0x1a0)](_0x4437f9(0x3d4)),'cl':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['describe'](_0x4437f9(0x2b2))})[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x1ee))})['optional']()[_0x4437f9(0x1a0)]('border'),'cl':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'rgb':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x1a0)](_0x4437f9(0x198))})[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x26f)),'va':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z']['literal'](0x1),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x2),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x3)])['optional']()[_0x4437f9(0x1a0)]('vertical\x20alignment,\x201\x20normal,\x202\x20subscript,\x203\x20superscript'),'tr':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'a':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x1a0)]('rotation\x20angle\x20in\x20degrees')})[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)]('text\x20rotation'),'td':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x2)])[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)]('text\x20direction,\x201\x20left\x20to\x20right,\x202\x20right\x20to\x20left'),'ht':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x2),_univerjs_pro_mcp['z']['literal'](0x3)])[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x22c)),'vt':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x1),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x2),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x3)])[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x47b)),'tb':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z']['literal'](0x1),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x2),_univerjs_pro_mcp['z'][_0x4437f9(0x28d)](0x3)])[_0x4437f9(0x330)]()['describe'](_0x4437f9(0x277)),'pd':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'t':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)]('top\x20padding'),'b':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()['optional']()[_0x4437f9(0x1a0)](_0x4437f9(0x31b)),'l':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x38f)),'r':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)]('right\x20padding')})[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x230)),'n':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'pattern':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['describe'](_0x4437f9(0x39b))})[_0x4437f9(0x330)]()['describe'](_0x4437f9(0x201))})[_0x4437f9(0x423)]()[_0x4437f9(0x1a0)]('Style\x20object\x20properties\x20for\x20Univer\x20sheets.\x20Note:\x20Both\x20the\x20border\x20thickness\x20and\x20font\x20size\x20are\x20measured\x20in\x20points\x20(pt).'),ZodConditionalFormatRuleSchema=_univerjs_pro_mcp['z']['object']({'rule_id':_univerjs_pro_mcp['z']['string']()['optional']()['describe'](_0x4437f9(0x35b)),'range':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x231)),'stop_if_true':_univerjs_pro_mcp['z']['boolean']()[_0x4437f9(0x330)](),'priority':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x47a)),'rule_type':_univerjs_pro_mcp['z'][_0x4437f9(0x456)]([_0x4437f9(0x1c4),'dataBar',_0x4437f9(0x188)])['optional']()[_0x4437f9(0x1a0)](_0x4437f9(0x1ed)),'min_type':_univerjs_pro_mcp['z']['enum']([_0x4437f9(0x337),_0x4437f9(0x2af),_0x4437f9(0x38d),_0x4437f9(0x318),_0x4437f9(0x363),_0x4437f9(0x296)])[_0x4437f9(0x330)](),'min_value':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x415)](),_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()])[_0x4437f9(0x330)](),'max_type':_univerjs_pro_mcp['z'][_0x4437f9(0x456)]([_0x4437f9(0x337),'min',_0x4437f9(0x38d),_0x4437f9(0x318),_0x4437f9(0x363),_0x4437f9(0x296)])['optional'](),'max_value':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x415)](),_univerjs_pro_mcp['z']['number']()])[_0x4437f9(0x330)](),'positive_color':_univerjs_pro_mcp['z']['string']()['optional']()[_0x4437f9(0x1a0)](_0x4437f9(0x2bd)),'native_color':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x2bd)),'is_show_value':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x330)](),'is_gradient':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()['optional'](),'is_bottom':_univerjs_pro_mcp['z']['boolean']()[_0x4437f9(0x330)](),'is_percent':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x330)](),'points':_univerjs_pro_mcp['z']['array'](_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'index':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)](),'color':_univerjs_pro_mcp['z']['string'](),'value_type':_univerjs_pro_mcp['z'][_0x4437f9(0x456)]([_0x4437f9(0x337),_0x4437f9(0x2af),_0x4437f9(0x38d),_0x4437f9(0x318),'percentile',_0x4437f9(0x296)]),'value':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z']['string'](),_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()])[_0x4437f9(0x330)]()}))[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)]('Each\x20dict:\x20{index,\x20color,\x20value_type,\x20value}'),'sub_type':_univerjs_pro_mcp['z'][_0x4437f9(0x456)](['uniqueValues','duplicateValues',_0x4437f9(0x19c),_0x4437f9(0x424),'timePeriod',_0x4437f9(0x1f0),_0x4437f9(0x21c),'formula'])[_0x4437f9(0x330)](),'operator':_univerjs_pro_mcp['z']['enum']([_0x4437f9(0x42c),_0x4437f9(0x2bc),'containsText',_0x4437f9(0x406),'equal',_0x4437f9(0x304),_0x4437f9(0x255),_0x4437f9(0x1ea),_0x4437f9(0x20c),'notContainsErrors',_0x4437f9(0x1f1),'yesterday',_0x4437f9(0x1fd),_0x4437f9(0x3e3),'thisMonth',_0x4437f9(0x289),_0x4437f9(0x19f),'thisWeek',_0x4437f9(0x1e4),_0x4437f9(0x2ff),_0x4437f9(0x23d),'greaterThanOrEqual',_0x4437f9(0x181),_0x4437f9(0x288),'notBetween',_0x4437f9(0x1fb)])[_0x4437f9(0x330)](),'value':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)](),_univerjs_pro_mcp['z'][_0x4437f9(0x415)](),_univerjs_pro_mcp['z'][_0x4437f9(0x24b)]([_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)](),_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()])])[_0x4437f9(0x330)](),'formula':_univerjs_pro_mcp['z']['string']()['optional'](),'style':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'fgColor':_univerjs_pro_mcp['z']['string']()['optional']()['describe'](_0x4437f9(0x198)),'bgColor':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x330)]()['describe'](_0x4437f9(0x233)),'bold':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x330)](),'italic':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x330)](),'underline':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x330)]()})['optional']()})[_0x4437f9(0x423)]();function getRuleById(_0x5a4060,_0x50100a,_0x158c31){const _0x27019d=_0x4437f9,_0x82f3be=_0x5a4060[_0x27019d(0x39e)](),_0x253af3=(_0x5a4060[_0x27019d(0x26a)][_0x27019d(0x480)](_univerjs_sheets_conditional_formatting['ConditionalFormattingRuleModel'])[_0x27019d(0x46a)](_0x82f3be[_0x27019d(0x354)](),_0x50100a[_0x27019d(0x307)]())||[])[_0x27019d(0x284)](_0x357a95=>_0x357a95[_0x27019d(0x271)]===_0x158c31);if(!_0x253af3)throw new Error(_0x27019d(0x43a)+_0x158c31+_0x27019d(0x2c4)+_0x50100a['getSheetName']()+'.');return ConditionalFormatConverter['fromInternalConfig'](_0x253af3);}function moveConditionalFormattingRule(_0x22de8b,_0x12cf31,_0x33133f,_0x4e9758,_0x3c2e6c,_0x52b6b0=_0x4437f9(0x19d)){const _0x2638e0=_0x4437f9,_0xf36253={'unitId':_0x12cf31,'subUnitId':_0x33133f,'start':{'id':_0x4e9758,'type':_0x2638e0(0x3ed)},'end':{'id':_0x3c2e6c,'type':_0x52b6b0}};_0x22de8b[_0x2638e0(0x1dd)][_0x2638e0(0x314)](_univerjs_sheets_conditional_formatting[_0x2638e0(0x20d)]['id'],_0xf36253);}function adjustConditionalFormattingRulePriority(_0x3f9517,_0x21132c,_0x149a19,_0x18e32b){const _0x4c02a6=_0x4437f9;if(_0x18e32b===void 0x0)return;const _0x34c9c0=getConditionalFormattingRulesInternal(_0x3f9517,_0x21132c);if(_0x34c9c0[_0x4c02a6(0x284)](_0x4beeda=>_0x4beeda[_0x4c02a6(0x36b)]===_0x149a19)){let _0x40ccf6=_0x18e32b;if(_0x40ccf6<0x0)_0x40ccf6=0x0;if(_0x40ccf6>=_0x34c9c0[_0x4c02a6(0x2ed)])_0x40ccf6=_0x34c9c0[_0x4c02a6(0x2ed)]-0x1;const _0x1f1b63=_0x34c9c0[_0x40ccf6];if(_0x1f1b63&&_0x1f1b63['rule_id']!==_0x149a19){const _0x2b330c=_0x3f9517[_0x4c02a6(0x39e)](),_0x292544=_0x2b330c[_0x4c02a6(0x3b1)](_0x21132c);moveConditionalFormattingRule(_0x3f9517,_0x2b330c[_0x4c02a6(0x354)](),_0x292544['getSheetId'](),_0x149a19,_0x1f1b63[_0x4c02a6(0x36b)],_0x4c02a6(0x37f));}}}function getConditionalFormattingRulesInternal(_0x1bb1bb,_0x2cecab){const _0x1aa18b=_0x4437f9,_0x3f8f07=_0x1bb1bb[_0x1aa18b(0x39e)](),_0x1c4f75=_0x3f8f07[_0x1aa18b(0x3b1)](_0x2cecab);if(!_0x1c4f75)throw new Error(_0x1aa18b(0x21e)+_0x2cecab+_0x1aa18b(0x204));return(_0x1bb1bb['_injector'][_0x1aa18b(0x480)](_univerjs_sheets_conditional_formatting[_0x1aa18b(0x20a)])['getSubunitRules'](_0x3f8f07[_0x1aa18b(0x354)](),_0x1c4f75[_0x1aa18b(0x307)]())||[])[_0x1aa18b(0x31a)]((_0x566efc,_0x3745c4)=>{const _0x3ea708=_0x1aa18b,_0x178a6e=ConditionalFormatConverter[_0x3ea708(0x3c0)](_0x566efc);return _0x178a6e['priority']=_0x3745c4,_0x178a6e;});}async function addConditionalFormattingRule(_0x43234d,_0x4b0046){const _0x2afcdb=_0x4437f9,_0x2b85d2=getUniverAPI();if(!_0x2b85d2)throw new Error('UniverAPI\x20not\x20available');try{const _0x5d89c8=_0x2b85d2[_0x2afcdb(0x39e)](),_0x2feec1=_0x5d89c8===null||_0x5d89c8===void 0x0?void 0x0:_0x5d89c8[_0x2afcdb(0x3b1)](_0x43234d);if(!_0x2feec1)throw new Error(_0x2afcdb(0x21e)+_0x43234d+_0x2afcdb(0x204));if(!_0x5d89c8)throw new Error(_0x2afcdb(0x3e7));let _0x396295=0x0;const _0x34c8f8=[];for(const _0x1953a7 of _0x4b0046)try{if(!_0x1953a7['rule_id'])_0x1953a7[_0x2afcdb(0x36b)]=(0x0,_univerjs_core[_0x2afcdb(0x17c)])(0x7);if((_0x2b85d2[_0x2afcdb(0x26a)][_0x2afcdb(0x480)](_univerjs_sheets_conditional_formatting[_0x2afcdb(0x20a)])[_0x2afcdb(0x46a)](_0x5d89c8['getId'](),_0x2feec1['getSheetId']())||[])[_0x2afcdb(0x284)](_0x48dfbe=>_0x48dfbe['cfId']===_0x1953a7['rule_id']))throw new Error(_0x2afcdb(0x43a)+_0x1953a7['rule_id']+'\x20already\x20exists\x20in\x20worksheet\x20'+_0x43234d+'.');const _0x16a64d=ConditionalFormatConverter[_0x2afcdb(0x451)](_0x1953a7),_0xe4851c={'unitId':_0x5d89c8['getId'](),'subUnitId':_0x2feec1['getSheetId'](),'rule':_0x16a64d};_0x2b85d2['_commandService'][_0x2afcdb(0x314)](_univerjs_sheets_conditional_formatting['AddCfCommand']['id'],_0xe4851c),adjustConditionalFormattingRulePriority(_0x2b85d2,_0x43234d,_0x1953a7['rule_id'],_0x1953a7[_0x2afcdb(0x3f7)]),_0x396295++;}catch(_0x196f3c){_0x34c8f8['push']((_0x196f3c===null||_0x196f3c===void 0x0?void 0x0:_0x196f3c[_0x2afcdb(0x194)])||String(_0x196f3c));}if(_0x34c8f8[_0x2afcdb(0x2ed)]===0x0)return _0x2afcdb(0x300)+_0x396295+_0x2afcdb(0x416)+_0x43234d+'\x27';else{if(_0x396295>0x0)return _0x2afcdb(0x300)+_0x396295+_0x2afcdb(0x416)+_0x43234d+'\x27,\x20failed\x20'+_0x34c8f8[_0x2afcdb(0x2ed)]+_0x2afcdb(0x269)+_0x34c8f8[_0x2afcdb(0x2da)](';\x20');else throw new Error('Failed\x20to\x20add\x20conditional\x20formatting\x20rule(s):\x20'+_0x34c8f8[_0x2afcdb(0x2da)](';\x20'));}}catch(_0x4a39f2){const _0x19e937=_0x4a39f2 instanceof Error?_0x4a39f2[_0x2afcdb(0x194)]:String(_0x4a39f2);throw new Error(_0x19e937[_0x2afcdb(0x2ad)]('\x0a')[0x0]||_0x2afcdb(0x34a));}}async function setConditionalFormattingRule(_0x3376e8,_0x197565){const _0x106178=_0x4437f9,_0x468eb7=getUniverAPI();if(!_0x468eb7)throw new Error(_0x106178(0x3f4));try{const _0x56c16e=_0x468eb7['getActiveWorkbook'](),_0x9ac68e=_0x56c16e===null||_0x56c16e===void 0x0?void 0x0:_0x56c16e[_0x106178(0x3b1)](_0x3376e8);if(!_0x9ac68e)throw new Error(_0x106178(0x21e)+_0x3376e8+_0x106178(0x204));if(!_0x56c16e)throw new Error(_0x106178(0x3e7));let _0x17060d=0x0;const _0x1fa8f4=[];for(const _0x349acb of _0x197565)try{if(!_0x349acb[_0x106178(0x36b)])throw new Error(_0x106178(0x3f0));const _0x3551bd=getRuleById(_0x468eb7,_0x9ac68e,_0x349acb[_0x106178(0x36b)]),_0x12ef8f=ConditionalFormatConverter['toInternalConfig']({..._0x3551bd,..._0x349acb}),_0x29d366={'unitId':_0x56c16e[_0x106178(0x354)](),'subUnitId':_0x9ac68e[_0x106178(0x307)](),'rule':_0x12ef8f,'cfId':_0x349acb[_0x106178(0x36b)]};_0x468eb7['_commandService'][_0x106178(0x314)](_univerjs_sheets_conditional_formatting[_0x106178(0x2e2)]['id'],_0x29d366);if(_0x3551bd['priority']!==_0x349acb[_0x106178(0x3f7)])adjustConditionalFormattingRulePriority(_0x468eb7,_0x3376e8,_0x349acb[_0x106178(0x36b)],_0x349acb['priority']);_0x17060d++;}catch(_0x4b031f){_0x1fa8f4[_0x106178(0x34e)]((_0x4b031f===null||_0x4b031f===void 0x0?void 0x0:_0x4b031f['message'])||String(_0x4b031f));}if(_0x1fa8f4[_0x106178(0x2ed)]===0x0)return _0x106178(0x276)+_0x17060d+_0x106178(0x402)+_0x3376e8+'\x27';else{if(_0x17060d>0x0)return'Set\x20'+_0x17060d+_0x106178(0x402)+_0x3376e8+_0x106178(0x3e4)+_0x1fa8f4[_0x106178(0x2ed)]+_0x106178(0x269)+_0x1fa8f4['join'](';\x20');else throw new Error('Failed\x20to\x20set\x20conditional\x20formatting\x20rule(s):\x20'+_0x1fa8f4[_0x106178(0x2da)](';\x20'));}}catch(_0x2ed19f){const _0x37d643=_0x2ed19f instanceof Error?_0x2ed19f[_0x106178(0x194)]:String(_0x2ed19f);throw new Error(_0x37d643[_0x106178(0x2ad)]('\x0a')[0x0]||_0x106178(0x34a));}}async function deleteConditionalFormattingRule(_0x5511a4,_0x5d4181){const _0xd29570=_0x4437f9,_0x2afeb5=getUniverAPI();if(!_0x2afeb5)throw new Error(_0xd29570(0x3f4));try{const _0x387ff9=_0x2afeb5[_0xd29570(0x39e)](),_0x49ede6=_0x387ff9===null||_0x387ff9===void 0x0?void 0x0:_0x387ff9[_0xd29570(0x3b1)](_0x5511a4);if(!_0x49ede6)throw new Error('Worksheet\x20with\x20name\x20'+_0x5511a4+'\x20does\x20not\x20exist.');if(!_0x387ff9)throw new Error(_0xd29570(0x3e7));let _0x182e43=0x0;const _0x3f3907=[];for(const _0x2b613b of _0x5d4181)try{if(!(_0x2afeb5[_0xd29570(0x26a)][_0xd29570(0x480)](_univerjs_sheets_conditional_formatting['ConditionalFormattingRuleModel'])['getSubunitRules'](_0x387ff9[_0xd29570(0x354)](),_0x49ede6['getSheetId']())||[])[_0xd29570(0x284)](_0x5d9d43=>_0x5d9d43[_0xd29570(0x271)]===_0x2b613b))continue;const _0x3c061e={'unitId':_0x387ff9[_0xd29570(0x354)](),'subUnitId':_0x49ede6['getSheetId'](),'cfId':_0x2b613b};_0x2afeb5[_0xd29570(0x1dd)][_0xd29570(0x314)](_univerjs_sheets_conditional_formatting[_0xd29570(0x2d4)]['id'],_0x3c061e),_0x182e43++;}catch(_0x702400){_0x3f3907[_0xd29570(0x34e)]((_0x702400===null||_0x702400===void 0x0?void 0x0:_0x702400['message'])||String(_0x702400));}if(_0x3f3907[_0xd29570(0x2ed)]===0x0)return _0xd29570(0x2a4)+_0x182e43+_0xd29570(0x439)+_0x5511a4+'\x27';else{if(_0x182e43>0x0)return _0xd29570(0x2a4)+_0x182e43+_0xd29570(0x439)+_0x5511a4+'\x27,\x20failed\x20'+_0x3f3907[_0xd29570(0x2ed)]+_0xd29570(0x269)+_0x3f3907[_0xd29570(0x2da)](';\x20');else throw new Error('Failed\x20to\x20delete\x20conditional\x20formatting\x20rule(s):\x20'+_0x3f3907[_0xd29570(0x2da)](';\x20'));}}catch(_0x47dbef){const _0x55d99a=_0x47dbef instanceof Error?_0x47dbef[_0xd29570(0x194)]:String(_0x47dbef);throw new Error(_0x55d99a[_0xd29570(0x2ad)]('\x0a')[0x0]||_0xd29570(0x34a));}}async function getConditionalFormattingRules(_0x45ae96){const _0xf95839=_0x4437f9,_0x3b4cc6=getUniverAPI();if(!_0x3b4cc6)throw new Error(_0xf95839(0x3f4));try{return getConditionalFormattingRulesInternal(_0x3b4cc6,_0x45ae96)['map'](_0x2096f2=>JSON[_0xf95839(0x331)](_0x2096f2))[_0xf95839(0x2da)]('\x0a');}catch(_0x59fd8f){const _0x44fc14=_0x59fd8f instanceof Error?_0x59fd8f[_0xf95839(0x194)]:String(_0x59fd8f);throw new Error(_0x44fc14[_0xf95839(0x2ad)]('\x0a')[0x0]||'Unknown\x20error');}}const conditionalFormattingTools=[{'name':_0x4437f9(0x475),'description':_0x4437f9(0x437),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)]('Target\x20sheet\x20name'),'rules':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](ZodConditionalFormatRuleSchema)['describe']('List\x20of\x20ConditionalFormatRule\x20(if\x20rule_id\x20is\x20not\x20provided,\x20it\x20will\x20be\x20generated)')}),'execute':async _0x1cbcd0=>addConditionalFormattingRule(_0x1cbcd0[_0x4437f9(0x360)],_0x1cbcd0[_0x4437f9(0x332)])},{'name':_0x4437f9(0x47c),'description':_0x4437f9(0x404),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x1a0)]('Target\x20sheet\x20name'),'rules':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](ZodConditionalFormatRuleSchema)[_0x4437f9(0x1a0)](_0x4437f9(0x18e))}),'execute':async _0x49e452=>setConditionalFormattingRule(_0x49e452[_0x4437f9(0x360)],_0x49e452[_0x4437f9(0x332)])},{'name':_0x4437f9(0x279),'description':_0x4437f9(0x3f6),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x338)),'rule_ids':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](_univerjs_pro_mcp['z']['string']())[_0x4437f9(0x1a0)](_0x4437f9(0x191))}),'execute':async _0x32d04b=>deleteConditionalFormattingRule(_0x32d04b[_0x4437f9(0x360)],_0x32d04b['rule_ids'])},{'name':_0x4437f9(0x47f),'description':'Get\x20all\x20conditional\x20formatting\x20rules\x20for\x20the\x20given\x20sheet.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0aReturns:\x0a\x20\x20\x20\x20List\x20of\x20rule','inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)]('Target\x20sheet\x20name')}),'execute':async _0x32d934=>getConditionalFormattingRules(_0x32d934['sheet_name'])}];var DataValidationConverter=class{static[_0x4437f9(0x451)](_0xe72c0e){const _0x5d3755=_0x4437f9;var _0x10e7cc,_0x5c26ea;if(!_0xe72c0e['range_a1'])throw new Error(_0x5d3755(0x2eb));if(!_0xe72c0e[_0x5d3755(0x2a6)])throw new Error(_0x5d3755(0x203));const _0xc2c8b3=_0xe72c0e['validation_type'][_0x5d3755(0x342)]();if(_0xe72c0e[_0x5d3755(0x3ee)]&&_0xe72c0e[_0x5d3755(0x32c)]===void 0x0)throw new Error(_0x5d3755(0x2f3));const _0x24670a=[_univerjs_core[_0x5d3755(0x2a2)][_0x5d3755(0x445)],_univerjs_core[_0x5d3755(0x2a2)][_0x5d3755(0x17d)]];if(_0xe72c0e[_0x5d3755(0x3ee)]&&_0x24670a[_0x5d3755(0x2d0)](_0xe72c0e[_0x5d3755(0x3ee)])&&_0xe72c0e[_0x5d3755(0x458)]===void 0x0)throw new Error(_0x5d3755(0x2aa)+_0xe72c0e[_0x5d3755(0x3ee)]);if(_0xc2c8b3===_0x5d3755(0x39a)&&!_0xe72c0e['source'])throw new Error('source\x20is\x20required\x20for\x20validation_type:\x20list');if(_0xc2c8b3===_0x5d3755(0x2f0)&&!_0xe72c0e['custom_formula']&&!_0xe72c0e['value1'])throw new Error(_0x5d3755(0x385));const _0x4c03ed={'list':_univerjs_core['DataValidationType'][_0x5d3755(0x464)],'integer':_univerjs_core['DataValidationType']['WHOLE'],'decimal':_univerjs_core[_0x5d3755(0x33c)][_0x5d3755(0x1e0)],'date':_univerjs_core[_0x5d3755(0x33c)][_0x5d3755(0x3b6)],'text_length':_univerjs_core[_0x5d3755(0x33c)][_0x5d3755(0x2cd)],'custom_formula':_univerjs_core[_0x5d3755(0x33c)][_0x5d3755(0x1fa)],'checkbox':_univerjs_core[_0x5d3755(0x33c)][_0x5d3755(0x447)]};if(!_0x4c03ed[_0xc2c8b3])throw new Error(_0x5d3755(0x396)+_0xe72c0e[_0x5d3755(0x2a6)]);const _0x246577=_0xe72c0e['error_style']?_0xe72c0e[_0x5d3755(0x388)][_0x5d3755(0x342)]():_0x5d3755(0x37b),_0x55642c={'stop':_univerjs_core['DataValidationErrorStyle'][_0x5d3755(0x243)],'warning':_univerjs_core[_0x5d3755(0x2d7)][_0x5d3755(0x46f)],'information':_univerjs_core[_0x5d3755(0x2d7)][_0x5d3755(0x378)]};if(!_0x55642c[_0x246577])throw new Error(_0x5d3755(0x449)+_0xe72c0e['error_style']);const _0x3fb42b=_0xe72c0e['range_a1'][_0x5d3755(0x2ad)](',')[_0x5d3755(0x31a)](_0x5b75f4=>{const _0x23f45d=_0x5d3755;return(0x0,_univerjs_engine_formula[_0x23f45d(0x24c)])(_0x5b75f4)[_0x23f45d(0x220)];}),_0x1d609a={'uid':_0xe72c0e[_0x5d3755(0x36b)]||this['generateId'](),'type':_0x4c03ed[_0xc2c8b3],'ranges':_0x3fb42b,'allowBlank':_0xe72c0e['ignore_blank']!==![],'operator':_0xe72c0e[_0x5d3755(0x3ee)],'formula1':_0xc2c8b3===_0x5d3755(0x39a)?_0xe72c0e[_0x5d3755(0x3ea)]:_0xc2c8b3===_0x5d3755(0x2f0)?_0xe72c0e[_0x5d3755(0x2f0)]:(_0x10e7cc=_0xe72c0e[_0x5d3755(0x32c)])===null||_0x10e7cc===void 0x0?void 0x0:_0x10e7cc['toString'](),'formula2':(_0x5c26ea=_0xe72c0e[_0x5d3755(0x458)])===null||_0x5c26ea===void 0x0?void 0x0:_0x5c26ea['toString'](),'showDropDown':_0xe72c0e[_0x5d3755(0x36a)]!==![],'showErrorMessage':_0xe72c0e['show_error_message']!==![],'error':_0xe72c0e['error_message']||_0x5d3755(0x3ca),'errorStyle':_0x55642c[_0x246577],'errorTitle':_0xe72c0e['error_title'],'showInputMessage':_0xe72c0e['show_input_message']!==![],'prompt':_0xe72c0e[_0x5d3755(0x1e1)]||'','promptTitle':_0xe72c0e[_0x5d3755(0x30e)],'bizInfo':{'showTime':_0xe72c0e[_0x5d3755(0x265)]}};if(_0xc2c8b3===_0x5d3755(0x39a)&&_0xe72c0e[_0x5d3755(0x274)])_0x1d609a[_0x5d3755(0x1da)]=_univerjs_core[_0x5d3755(0x33c)][_0x5d3755(0x1ec)];return _0x1d609a;}static[_0x4437f9(0x3c0)](_0x136050){const _0x132607=_0x4437f9;var _0x42f690;const _0x186ff7={[_univerjs_core[_0x132607(0x33c)][_0x132607(0x464)]]:_0x132607(0x39a),[_univerjs_core['DataValidationType'][_0x132607(0x1ec)]]:_0x132607(0x39a),[_univerjs_core['DataValidationType'][_0x132607(0x208)]]:'integer',[_univerjs_core[_0x132607(0x33c)]['DECIMAL']]:_0x132607(0x1f3),[_univerjs_core['DataValidationType'][_0x132607(0x3b6)]]:_0x132607(0x37e),[_univerjs_core['DataValidationType']['TEXT_LENGTH']]:_0x132607(0x3d3),[_univerjs_core[_0x132607(0x33c)][_0x132607(0x1fa)]]:'custom_formula',[_univerjs_core[_0x132607(0x33c)][_0x132607(0x249)]]:_0x132607(0x37e),[_univerjs_core[_0x132607(0x33c)][_0x132607(0x447)]]:_0x132607(0x3b0),[_univerjs_core[_0x132607(0x33c)][_0x132607(0x3dd)]]:_0x132607(0x2f0),[_univerjs_core[_0x132607(0x33c)][_0x132607(0x444)]]:_0x132607(0x2f0)},_0x50c91c={[_univerjs_core[_0x132607(0x2d7)][_0x132607(0x243)]]:_0x132607(0x37b),[_univerjs_core['DataValidationErrorStyle'][_0x132607(0x46f)]]:_0x132607(0x18f),[_univerjs_core[_0x132607(0x2d7)]['INFO']]:'information'},_0x24c045=_0x136050['ranges'][_0x132607(0x31a)](_0x147dd9=>{return(0x0,_univerjs_engine_formula['serializeRange'])(_0x147dd9);})[_0x132607(0x2da)](','),_0x6b1802={'rule_id':_0x136050['uid'],'range_a1':_0x24c045,'validation_type':_0x186ff7[_0x136050[_0x132607(0x1da)]]||_0x132607(0x2f0)};if(_0x136050[_0x132607(0x3ee)])_0x6b1802[_0x132607(0x3ee)]=_0x136050['operator'];if(_0x136050[_0x132607(0x44d)]&&_0x136050[_0x132607(0x1da)]!==_univerjs_core[_0x132607(0x33c)][_0x132607(0x464)]&&_0x136050[_0x132607(0x1da)]!==_univerjs_core[_0x132607(0x33c)][_0x132607(0x1ec)]&&_0x136050[_0x132607(0x1da)]!==_univerjs_core[_0x132607(0x33c)][_0x132607(0x1fa)])_0x6b1802[_0x132607(0x32c)]=this['parseValue'](_0x136050['formula1'],_0x136050[_0x132607(0x1da)]);if(_0x136050[_0x132607(0x30b)])_0x6b1802['value2']=this[_0x132607(0x186)](_0x136050[_0x132607(0x30b)],_0x136050[_0x132607(0x1da)]);if(_0x136050[_0x132607(0x1da)]===_univerjs_core[_0x132607(0x33c)][_0x132607(0x464)]||_0x136050[_0x132607(0x1da)]===_univerjs_core[_0x132607(0x33c)][_0x132607(0x1ec)]){if(_0x136050['formula1'])_0x6b1802['source']=_0x136050[_0x132607(0x44d)];if(_0x136050['type']===_univerjs_core[_0x132607(0x33c)][_0x132607(0x1ec)])_0x6b1802[_0x132607(0x274)]=!![];}if(_0x136050['type']===_univerjs_core[_0x132607(0x33c)][_0x132607(0x1fa)]&&_0x136050[_0x132607(0x44d)])_0x6b1802[_0x132607(0x2f0)]=_0x136050[_0x132607(0x44d)];if(_0x136050[_0x132607(0x313)]===![])_0x6b1802[_0x132607(0x240)]=![];if(_0x136050[_0x132607(0x32d)]===![])_0x6b1802[_0x132607(0x36a)]=![];if(_0x136050[_0x132607(0x253)]===![])_0x6b1802[_0x132607(0x26e)]=![];if(_0x136050[_0x132607(0x323)]&&_0x136050[_0x132607(0x323)]!==_univerjs_core[_0x132607(0x2d7)][_0x132607(0x243)])_0x6b1802[_0x132607(0x388)]=_0x50c91c[_0x136050[_0x132607(0x323)]];if(_0x136050[_0x132607(0x418)])_0x6b1802[_0x132607(0x322)]=_0x136050[_0x132607(0x418)];if(_0x136050['error']&&_0x136050[_0x132607(0x1f4)]!==_0x132607(0x3ca))_0x6b1802[_0x132607(0x1e7)]=_0x136050[_0x132607(0x1f4)];if(_0x136050[_0x132607(0x225)]===![])_0x6b1802[_0x132607(0x41e)]=![];if(_0x136050[_0x132607(0x31e)])_0x6b1802[_0x132607(0x30e)]=_0x136050['promptTitle'];if(_0x136050[_0x132607(0x1b9)])_0x6b1802[_0x132607(0x1e1)]=_0x136050[_0x132607(0x1b9)];if((_0x42f690=_0x136050['bizInfo'])===null||_0x42f690===void 0x0?void 0x0:_0x42f690[_0x132607(0x328)])_0x6b1802[_0x132607(0x265)]=!![];return _0x6b1802;}static[_0x4437f9(0x46c)](_0x40a49e){const _0x35a90a=_0x4437f9;let _0x2690eb=0x0;for(let _0x1cfeb4=0x0;_0x1cfeb4<_0x40a49e[_0x35a90a(0x2ed)];_0x1cfeb4++)_0x2690eb=_0x2690eb*0x1a+(_0x40a49e[_0x35a90a(0x28c)](_0x1cfeb4)-'A'[_0x35a90a(0x28c)](0x0)+0x1);return _0x2690eb-0x1;}static[_0x4437f9(0x1ac)](_0x4076c4){const _0x279608=_0x4437f9;let _0x5876eb='';_0x4076c4+=0x1;while(_0x4076c4>0x0){_0x4076c4-=0x1,_0x5876eb=String['fromCharCode']('A'[_0x279608(0x28c)](0x0)+_0x4076c4%0x1a)+_0x5876eb,_0x4076c4=Math[_0x279608(0x306)](_0x4076c4/0x1a);}return _0x5876eb;}static[_0x4437f9(0x1d7)](){const _0x59afeb=_0x4437f9;return Math[_0x59afeb(0x37d)]()[_0x59afeb(0x1c2)](0x24)['substring'](0x2,0xf)+Math[_0x59afeb(0x37d)]()['toString'](0x24)[_0x59afeb(0x3a6)](0x2,0xf);}static[_0x4437f9(0x186)](_0x1a18ca,_0x2d65e8){const _0x2fcb6f=_0x4437f9;if(_0x2d65e8===_univerjs_core['DataValidationType'][_0x2fcb6f(0x208)]||_0x2d65e8===_univerjs_core[_0x2fcb6f(0x33c)][_0x2fcb6f(0x1e0)]||_0x2d65e8===_univerjs_core[_0x2fcb6f(0x33c)][_0x2fcb6f(0x2cd)]){const _0x51db21=Number[_0x2fcb6f(0x43c)](_0x1a18ca);return isNaN(_0x51db21)?_0x1a18ca:_0x51db21;}return _0x1a18ca;}};const dataValidationRuleSchema=_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'rule_id':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x1ad)),'range_a1':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x261)),'validation_type':_univerjs_pro_mcp['z'][_0x4437f9(0x456)](['list',_0x4437f9(0x2a9),_0x4437f9(0x1f3),'date',_0x4437f9(0x3d3),_0x4437f9(0x2f0),_0x4437f9(0x3b0)])[_0x4437f9(0x1a0)]('Type\x20of\x20validation:\x0a\x22list\x22:\x20select\x20from\x20list\x0a\x22integer\x22:\x20Integer\x20validation\x0a\x22decimal\x22:\x20Decimal\x20validation\x0a\x22date\x22:\x20Date\x20control\x0a\x22text_length\x22:\x20Text\x20length\x20validation\x0a\x22custom_formula\x22:\x20Custom\x20formula\x20validation\x0a\x22checkbox\x22:\x20Checkbox\x20control'),'operator':_univerjs_pro_mcp['z'][_0x4437f9(0x456)](_univerjs_core[_0x4437f9(0x2a2)])[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x25f)),'value1':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)](),_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()])[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x340)),'value2':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)](),_univerjs_pro_mcp['z']['string'](),_univerjs_pro_mcp['z'][_0x4437f9(0x3a5)]()])[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x395)),'source':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x23e)),'allow_multiple':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x330)]()['describe'](_0x4437f9(0x224)),'custom_formula':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x35f)),'show_time':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x335)),'ignore_blank':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x42e)),'show_dropdown':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x330)]()['describe'](_0x4437f9(0x42e)),'show_error_message':_univerjs_pro_mcp['z']['boolean']()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x42e)),'error_style':_univerjs_pro_mcp['z'][_0x4437f9(0x456)]([_0x4437f9(0x37b),_0x4437f9(0x18f),_0x4437f9(0x210)])[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x3c5)),'error_title':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['optional']()[_0x4437f9(0x1a0)](_0x4437f9(0x349)),'error_message':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x3ff)),'show_input_message':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()['optional']()[_0x4437f9(0x1a0)](_0x4437f9(0x42e)),'input_title':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['optional']()[_0x4437f9(0x1a0)](_0x4437f9(0x349)),'input_message':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x411))})[_0x4437f9(0x423)]();async function addDataValidationRule(_0x4b9c15,_0x43c507){const _0x970afd=_0x4437f9,_0x22a742=getUniverAPI();if(!_0x22a742)throw new Error(_0x970afd(0x3f4));try{const _0x50a49b=_0x22a742[_0x970afd(0x39e)](),_0x4a8009=_0x50a49b===null||_0x50a49b===void 0x0?void 0x0:_0x50a49b[_0x970afd(0x3b1)](_0x4b9c15);if(!_0x4a8009)throw new Error('Worksheet\x20with\x20name\x20'+_0x4b9c15+_0x970afd(0x204));if(!_0x50a49b)throw new Error(_0x970afd(0x3e7));const _0x3e64c3=_0x22a742[_0x970afd(0x26a)][_0x970afd(0x480)](_univerjs_sheets_data_validation[_0x970afd(0x417)])[_0x970afd(0x46d)](_0x50a49b['getId'](),_0x4a8009[_0x970afd(0x307)]());let _0x59457c=0x0;const _0x94ea3b=[];for(const _0x1f7d67 of _0x43c507)try{if(!_0x1f7d67[_0x970afd(0x36b)])_0x1f7d67[_0x970afd(0x36b)]=(0x0,_univerjs_core[_0x970afd(0x17c)])(0x7);if(_0x3e64c3[_0x970afd(0x284)](_0x452635=>_0x452635[_0x970afd(0x1c9)]===_0x1f7d67[_0x970afd(0x36b)]))throw new Error(_0x970afd(0x283)+_0x1f7d67[_0x970afd(0x36b)]+_0x970afd(0x25a)+_0x4b9c15+'.');const _0x271286=DataValidationConverter[_0x970afd(0x451)](_0x1f7d67),_0x3f3006={'unitId':_0x50a49b[_0x970afd(0x354)](),'subUnitId':_0x4a8009[_0x970afd(0x307)](),'rule':_0x271286};_0x22a742[_0x970afd(0x1dd)][_0x970afd(0x314)](_univerjs_sheets_data_validation[_0x970afd(0x41b)]['id'],_0x3f3006),_0x59457c++;}catch(_0x242f14){_0x94ea3b['push']((_0x242f14===null||_0x242f14===void 0x0?void 0x0:_0x242f14[_0x970afd(0x194)])||String(_0x242f14));}if(_0x94ea3b[_0x970afd(0x2ed)]===0x0)return _0x970afd(0x2a8)+_0x59457c+_0x970afd(0x21f);else{if(_0x59457c>0x0)return'Created\x20'+_0x59457c+_0x970afd(0x382)+_0x94ea3b[_0x970afd(0x2ed)]+'\x20rule(s),\x20reason(s):\x20'+_0x94ea3b[_0x970afd(0x2da)](';\x20');else throw new Error(_0x970afd(0x245)+_0x94ea3b[_0x970afd(0x2da)](';\x20'));}}catch(_0x5dbd35){const _0x3cea31=_0x5dbd35 instanceof Error?_0x5dbd35[_0x970afd(0x194)]:String(_0x5dbd35);throw new Error(_0x3cea31[_0x970afd(0x2ad)]('\x0a')[0x0]||'Unknown\x20error');}}async function setDataValidationRule(_0x1e39cc,_0x32e4c3){const _0x5c4790=_0x4437f9,_0x51e254=getUniverAPI();if(!_0x51e254)throw new Error(_0x5c4790(0x3f4));try{const _0x3792fb=_0x51e254[_0x5c4790(0x39e)](),_0x27c98b=_0x3792fb===null||_0x3792fb===void 0x0?void 0x0:_0x3792fb[_0x5c4790(0x3b1)](_0x1e39cc);if(!_0x27c98b)throw new Error('Worksheet\x20with\x20name\x20'+_0x1e39cc+'\x20does\x20not\x20exist.');if(!_0x3792fb)throw new Error(_0x5c4790(0x3e7));let _0x125b25=0x0;const _0x3c1876=[];for(const _0xbb28c2 of _0x32e4c3)try{if(!_0xbb28c2[_0x5c4790(0x36b)])throw new Error(_0x5c4790(0x270));const _0x297281=_0x51e254[_0x5c4790(0x26a)][_0x5c4790(0x480)](_univerjs_sheets_data_validation[_0x5c4790(0x417)])['getRuleById'](_0x3792fb[_0x5c4790(0x354)](),_0x27c98b[_0x5c4790(0x307)](),_0xbb28c2[_0x5c4790(0x36b)]);if(!_0x297281)throw new Error(_0x5c4790(0x283)+_0xbb28c2[_0x5c4790(0x36b)]+'\x20does\x20not\x20exist\x20in\x20worksheet.');const _0x32456f=DataValidationConverter[_0x5c4790(0x3c0)](_0x297281),_0x2a6e4a=DataValidationConverter[_0x5c4790(0x451)]({..._0x32456f,..._0xbb28c2}),_0xdd2af6={'unitId':_0x3792fb[_0x5c4790(0x354)](),'subUnitId':_0x27c98b[_0x5c4790(0x307)](),'ruleId':_0xbb28c2[_0x5c4790(0x36b)],'setting':_0x2a6e4a};_0x51e254[_0x5c4790(0x1dd)][_0x5c4790(0x314)](_univerjs_sheets_data_validation['UpdateSheetDataValidationSettingCommand']['id'],_0xdd2af6),_0x125b25++;}catch(_0x4bd74e){_0x3c1876[_0x5c4790(0x34e)]((_0x4bd74e===null||_0x4bd74e===void 0x0?void 0x0:_0x4bd74e[_0x5c4790(0x194)])||String(_0x4bd74e));}if(_0x3c1876[_0x5c4790(0x2ed)]===0x0)return _0x5c4790(0x22f)+_0x125b25+_0x5c4790(0x21f);else{if(_0x125b25>0x0)return _0x5c4790(0x22f)+_0x125b25+'\x20rule(s)\x20successfully,\x20failed\x20'+_0x3c1876['length']+_0x5c4790(0x470)+_0x3c1876[_0x5c4790(0x2da)](';\x20');else throw new Error(_0x5c4790(0x30a)+_0x3c1876[_0x5c4790(0x2da)](';\x20'));}}catch(_0x5d5835){const _0x1357b5=_0x5d5835 instanceof Error?_0x5d5835[_0x5c4790(0x194)]:String(_0x5d5835);throw new Error(_0x1357b5[_0x5c4790(0x2ad)]('\x0a')[0x0]||_0x5c4790(0x34a));}}async function deleteDataValidationRule(_0x1f2ab4,_0x361167){const _0x14be1c=_0x4437f9,_0x4cac70=getUniverAPI();if(!_0x4cac70)throw new Error(_0x14be1c(0x3f4));try{const _0x2f242f=_0x4cac70['getActiveWorkbook'](),_0x4c87a6=_0x2f242f===null||_0x2f242f===void 0x0?void 0x0:_0x2f242f[_0x14be1c(0x3b1)](_0x1f2ab4);if(!_0x4c87a6)throw new Error(_0x14be1c(0x21e)+_0x1f2ab4+_0x14be1c(0x204));if(!_0x2f242f)throw new Error(_0x14be1c(0x3e7));const _0x574391=_0x4cac70[_0x14be1c(0x26a)][_0x14be1c(0x480)](_univerjs_sheets_data_validation[_0x14be1c(0x417)])['getRules'](_0x2f242f[_0x14be1c(0x354)](),_0x4c87a6['getSheetId']());let _0x221dbb=0x0;const _0x292206=[];for(const _0xd2081b of _0x361167)try{if(!_0x574391['find'](_0x2f4776=>_0x2f4776[_0x14be1c(0x1c9)]===_0xd2081b))throw new Error(_0x14be1c(0x283)+_0xd2081b+_0x14be1c(0x2c4)+_0x1f2ab4+'.');const _0x1430dd={'unitId':_0x2f242f[_0x14be1c(0x354)](),'subUnitId':_0x4c87a6['getSheetId'](),'ruleId':_0xd2081b};_0x4cac70['_commandService'][_0x14be1c(0x314)](_univerjs_sheets_data_validation[_0x14be1c(0x183)]['id'],_0x1430dd),_0x221dbb++;}catch(_0x3149ae){_0x292206[_0x14be1c(0x34e)]((_0x3149ae===null||_0x3149ae===void 0x0?void 0x0:_0x3149ae[_0x14be1c(0x194)])||String(_0x3149ae));}if(_0x292206['length']===0x0)return _0x14be1c(0x2a4)+_0x221dbb+_0x14be1c(0x21f);else{if(_0x221dbb>0x0)return'Deleted\x20'+_0x221dbb+_0x14be1c(0x382)+_0x292206[_0x14be1c(0x2ed)]+'\x20rule(s),\x20reason(s):\x20'+_0x292206[_0x14be1c(0x2da)](';\x20');else throw new Error(_0x14be1c(0x1bd)+_0x292206[_0x14be1c(0x2da)](';\x20'));}}catch(_0x210790){const _0x266cbe=_0x210790 instanceof Error?_0x210790[_0x14be1c(0x194)]:String(_0x210790);throw new Error(_0x266cbe[_0x14be1c(0x2ad)]('\x0a')[0x0]||_0x14be1c(0x34a));}}async function getDataValidationRules(_0x5176f0){const _0x7bc4bf=_0x4437f9,_0x16bb0b=getUniverAPI();if(!_0x16bb0b)throw new Error(_0x7bc4bf(0x3f4));try{const _0x39921a=_0x16bb0b[_0x7bc4bf(0x39e)](),_0x1c8905=_0x39921a===null||_0x39921a===void 0x0?void 0x0:_0x39921a[_0x7bc4bf(0x3b1)](_0x5176f0);if(!_0x1c8905)throw new Error(_0x7bc4bf(0x21e)+_0x5176f0+_0x7bc4bf(0x204));if(!_0x39921a)throw new Error('Workbook\x20is\x20not\x20active.');return(_0x16bb0b[_0x7bc4bf(0x26a)][_0x7bc4bf(0x480)](_univerjs_sheets_data_validation['SheetDataValidationModel'])[_0x7bc4bf(0x46d)](_0x39921a[_0x7bc4bf(0x354)](),_0x1c8905[_0x7bc4bf(0x307)]())||[])[_0x7bc4bf(0x31a)](_0x4c667c=>{const _0x3e0c0f=_0x7bc4bf;return DataValidationConverter[_0x3e0c0f(0x3c0)](_0x4c667c);})[_0x7bc4bf(0x31a)](_0x4a83f7=>JSON['stringify'](_0x4a83f7))[_0x7bc4bf(0x2da)]('\x0a');}catch(_0x42dd8a){const _0x462bc7=_0x42dd8a instanceof Error?_0x42dd8a['message']:String(_0x42dd8a);throw new Error(_0x462bc7[_0x7bc4bf(0x2ad)]('\x0a')[0x0]||_0x7bc4bf(0x34a));}}const dataValidationTools=[{'name':_0x4437f9(0x1c5),'description':_0x4437f9(0x3a7),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z']['string']()['describe'](_0x4437f9(0x338)),'rules':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](dataValidationRuleSchema)['describe'](_0x4437f9(0x2f4))}),'execute':async _0x2e2a67=>addDataValidationRule(_0x2e2a67[_0x4437f9(0x360)],_0x2e2a67[_0x4437f9(0x332)])},{'name':'set_data_validation_rule','description':_0x4437f9(0x438),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['describe'](_0x4437f9(0x338)),'rules':_univerjs_pro_mcp['z']['array'](dataValidationRuleSchema)[_0x4437f9(0x1a0)]('List\x20of\x20DataValidationRule\x20with\x20rule_id')}),'execute':async _0x51e9e5=>setDataValidationRule(_0x51e9e5[_0x4437f9(0x360)],_0x51e9e5[_0x4437f9(0x332)])},{'name':_0x4437f9(0x2ac),'description':'Delete\x20one\x20or\x20more\x20data\x20validation\x20rules\x20by\x20ID.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rule_ids:\x20List\x20of\x20data\x20validation\x20rule\x20IDs\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x338)),'rule_ids':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](_univerjs_pro_mcp['z'][_0x4437f9(0x415)]())[_0x4437f9(0x1a0)]('List\x20of\x20data\x20validation\x20rule\x20IDs')}),'execute':async _0x298d9e=>deleteDataValidationRule(_0x298d9e['sheet_name'],_0x298d9e['rule_ids'])},{'name':_0x4437f9(0x247),'description':_0x4437f9(0x2b3),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x338))}),'execute':async _0x44d6ca=>getDataValidationRules(_0x44d6ca['sheet_name'])}];function processCellValue(_0x3fe0ae,_0x49bc86,_0xe2611d,_0x16b81f,_0x406970){const _0x13864f=_0x4437f9,_0x42a40a=_0x49bc86[_0x13864f(0x3c3)],_0x25da04=_0x42a40a['getCellRaw']?_0x42a40a[_0x13864f(0x1b4)](_0xe2611d,_0x16b81f):{};return(_0x3fe0ae['onWriteCell']?_0x3fe0ae[_0x13864f(0x268)](_0x49bc86[_0x13864f(0x364)],_0x42a40a,_0xe2611d,_0x16b81f,{..._0x25da04,...typeof _0x406970==='object'?_0x406970:{'v':_0x406970}}):typeof _0x406970===_0x13864f(0x1a8)?_0x406970:{'v':_0x406970})||(typeof _0x406970===_0x13864f(0x1a8)?_0x406970:{'v':_0x406970});}async function internalSetRangeValue(_0x5ad9fa,_0x44c8bd,_0x3b351e,_0x11415a){const _0x4edec7=_0x4437f9,_0x5bf8cf=getCommandService(),_0x9edd63=getSheetInterceptorService();if(!_0x5bf8cf)throw new Error(_0x4edec7(0x325));let _0x141ca9;if(typeof _0x11415a===_0x4edec7(0x415)){if(_0x11415a[_0x4edec7(0x2c9)]('='))_0x141ca9={'f':_0x11415a,'v':null,'p':null};else _0x141ca9={'v':_0x11415a,'p':null,'f':null};}else{if(typeof _0x11415a===_0x4edec7(0x1f0)||typeof _0x11415a===_0x4edec7(0x1e8))_0x141ca9={'v':_0x11415a,'p':null,'f':null};else{if(typeof _0x11415a===_0x4edec7(0x1a8)&&_0x11415a!==null)_0x141ca9=_0x11415a;else _0x141ca9={'v':_0x11415a,'p':null,'f':null};}}if(_0x9edd63)try{const _0x34f499=getUniverAPI()['getActiveWorkbook'](),_0x27055f=_0x34f499[_0x4edec7(0x2f7)]();if(_0x34f499&&_0x27055f){const _0x2cd04e=_0x3b351e['startRow'],_0x16a45a=_0x3b351e['startColumn'];_0x141ca9['v']!==''&&(_0x141ca9=processCellValue(_0x9edd63,_0x27055f,_0x2cd04e,_0x16a45a,_0x141ca9),delete _0x141ca9['t']);}}catch(_0x524a09){console['warn'](_0x4edec7(0x2b5),_0x524a09);}await _0x5bf8cf['syncExecuteCommand']('sheet.command.set-range-values',{'unitId':_0x5ad9fa,'subUnitId':_0x44c8bd,'range':_0x3b351e,'value':_0x141ca9});}async function internalSetRangeValues(_0x5922d5,_0x5cb82a,_0x2ad3b4,_0x33be94){const _0xd6efb2=_0x4437f9;if(!getCommandService())throw new Error(_0xd6efb2(0x325));let _0x23df83;if(Array[_0xd6efb2(0x351)](_0x33be94))_0x23df83={},_0x33be94[_0xd6efb2(0x2d8)]((_0x508304,_0x6b548f)=>{const _0x55859e=_0xd6efb2;if(Array[_0x55859e(0x351)](_0x508304))_0x508304[_0x55859e(0x2d8)]((_0x2353f7,_0x35ee48)=>{const _0x534c6d=_0x55859e,_0x1a6b61=_0x2ad3b4[_0x534c6d(0x213)]+_0x6b548f,_0x33c655=_0x2ad3b4[_0x534c6d(0x353)]+_0x35ee48;if(_0x1a6b61<=_0x2ad3b4['endRow']&&_0x33c655<=_0x2ad3b4[_0x534c6d(0x442)]){if(!_0x23df83[_0x1a6b61])_0x23df83[_0x1a6b61]={};_0x23df83[_0x1a6b61][_0x33c655]=_0x2353f7;}});});else _0x23df83=_0x33be94;for(const [_0xfa900c,_0x3e5b7a]of Object['entries'](_0x23df83))for(const [_0x12391b,_0x493035]of Object[_0xd6efb2(0x44b)](_0x3e5b7a)){const _0xe23a17=Number(_0xfa900c),_0x5349c4=Number(_0x12391b);await internalSetRangeValue(_0x5922d5,_0x5cb82a,{'startRow':_0xe23a17,'startColumn':_0x5349c4,'endRow':_0xe23a17,'endColumn':_0x5349c4},_0x493035);}}async function internalSetActiveRange(_0xd19379,_0x5e01dd,_0x5d1954){const _0x434e00=_0x4437f9,_0x3064b4=getCommandService();if(!_0x3064b4)return;try{await _0x3064b4[_0x434e00(0x314)](_0x434e00(0x376),{'unitId':_0xd19379,'subUnitId':_0x5e01dd,'selections':[{'range':_0x5d1954,'primary':{'startRow':_0x5d1954[_0x434e00(0x213)],'startColumn':_0x5d1954['startColumn'],'endRow':_0x5d1954['endRow'],'endColumn':_0x5d1954[_0x434e00(0x442)],'actualRow':_0x5d1954[_0x434e00(0x213)],'actualColumn':_0x5d1954['startColumn'],'isMerged':![],'isMergedMainCell':![]},'style':null}]});}catch(_0x4efd85){console[_0x434e00(0x1b0)](_0x434e00(0x3cc),_0x4efd85);}}const batchRangeDataItemSchema=_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'range':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x1a0)](_0x4437f9(0x3b4)),'value':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x415)](),_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)](),_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)](),_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](_univerjs_pro_mcp['z'][_0x4437f9(0x440)]())['describe'](_0x4437f9(0x27e)),_univerjs_pro_mcp['z']['record'](_univerjs_pro_mcp['z']['string'](),_univerjs_pro_mcp['z'][_0x4437f9(0x440)]())[_0x4437f9(0x1a0)](_0x4437f9(0x2ab))])[_0x4437f9(0x1a0)](_0x4437f9(0x33b))}),batchRangeStyleItemSchema=_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'range':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['describe'](_0x4437f9(0x3b4)),'style':styleDataSchema});async function setRangeDataInternal(_0x3d7796){const _0xb0d199=_0x4437f9;var _0x1593c5;const _0x17c64f=getUniverAPI();if(!_0x17c64f)throw new Error('UniverAPI\x20not\x20available');const _0x1b3d99=_0x17c64f[_0xb0d199(0x39e)]();if(!_0x1b3d99)throw new Error(_0xb0d199(0x35d));const _0xbfb243=_0x1b3d99[_0xb0d199(0x354)](),_0x127a35=(_0x1593c5=_0x1b3d99[_0xb0d199(0x2f7)]())===null||_0x1593c5===void 0x0?void 0x0:_0x1593c5['getSheetId']();if(!_0x127a35)throw new Error(_0xb0d199(0x23c));for(const _0xc9c48f of _0x3d7796){var _0x2258cd;let _0x5c7f7b=[];const _0x3a82ea=(_0x2258cd=_0xc9c48f[_0xb0d199(0x220)])!==null&&_0x2258cd!==void 0x0?_0x2258cd:'';if(typeof _0x3a82ea===_0xb0d199(0x415))_0x5c7f7b=_0x3a82ea['split'](',')[_0xb0d199(0x31a)](_0x4e6959=>_0x4e6959['trim']())[_0xb0d199(0x348)](Boolean);else throw new TypeError(_0xb0d199(0x211));for(const _0x2c097c of _0x5c7f7b){const _0x338289=_0x1b3d99[_0xb0d199(0x2f7)]();if(!_0x338289)throw new Error(_0xb0d199(0x23c));const _0x25b619=_0x338289[_0xb0d199(0x1c1)](_0x2c097c),_0x24c2b4=_0x25b619['getRange']();await internalSetActiveRange(_0xbfb243,_0x127a35,_0x24c2b4);const _0x5ca347=_0x25b619[_0xb0d199(0x39f)](),_0x3635dd=_0x338289[_0xb0d199(0x1f5)]();if(_0x5ca347>=_0x3635dd)_0x338289[_0xb0d199(0x426)](_0x3635dd,_0x5ca347-_0x3635dd+0x1);const _0x38b1c6=_0x25b619[_0xb0d199(0x34d)](),_0x506edb=_0x338289['getMaxColumns']();if(_0x38b1c6>=_0x506edb)_0x338289['insertColumnsAfter'](_0x506edb,_0x38b1c6-_0x506edb+0x1);const _0x46f1a2=_0xc9c48f['value'];if(_0x46f1a2!==void 0x0){if(typeof _0x46f1a2===_0xb0d199(0x415)){if(_0x46f1a2['startsWith']('='))_0x25b619['setFormula'](_0x46f1a2);else await internalSetRangeValue(_0xbfb243,_0x127a35,_0x24c2b4,_0x46f1a2);}else{if(typeof _0x46f1a2===_0xb0d199(0x1f0)||typeof _0x46f1a2===_0xb0d199(0x1e8))await internalSetRangeValue(_0xbfb243,_0x127a35,_0x24c2b4,_0x46f1a2);else{if(Array[_0xb0d199(0x351)](_0x46f1a2)){const _0x2b4209=_0x24c2b4[_0xb0d199(0x213)],_0x1f722e=_0x24c2b4['startColumn'],_0x19f37f=_0x24c2b4[_0xb0d199(0x2c0)],_0x574067=_0x24c2b4[_0xb0d199(0x442)],_0x5c3813=_0x19f37f-_0x2b4209+0x1,_0x1911cb=_0x574067-_0x1f722e+0x1,_0x4573ef={},_0x6e8cbb=(_0x36f0ea,_0x2148c3,_0x269b9e)=>{if(!_0x4573ef[_0x36f0ea])_0x4573ef[_0x36f0ea]={};_0x4573ef[_0x36f0ea][_0x2148c3]=_0x269b9e;};if(_0x46f1a2[_0xb0d199(0x2ed)]>0x0){if(!Array[_0xb0d199(0x351)](_0x46f1a2[0x0])){if(_0x5c3813===0x1){const _0x2f5eba=_0x46f1a2;for(let _0x387f58=0x0;_0x387f58<Math[_0xb0d199(0x2af)](_0x1911cb,_0x2f5eba[_0xb0d199(0x2ed)]);++_0x387f58)_0x6e8cbb(_0x2b4209,_0x1f722e+_0x387f58,_0x2f5eba[_0x387f58]);}else{const _0x488f56=_0x46f1a2;for(let _0xb8f8a1=0x0;_0xb8f8a1<Math[_0xb0d199(0x2af)](_0x5c3813,_0x488f56['length']);++_0xb8f8a1)_0x6e8cbb(_0x2b4209+_0xb8f8a1,_0x1f722e,_0x488f56[_0xb8f8a1]);}}else{for(let _0xb91ad9=0x0;_0xb91ad9<Math[_0xb0d199(0x2af)](_0x5c3813,_0x46f1a2['length']);++_0xb91ad9)for(let _0x24103c=0x0;_0x24103c<Math[_0xb0d199(0x2af)](_0x1911cb,_0x46f1a2[_0xb91ad9]['length']);++_0x24103c)_0x6e8cbb(_0x2b4209+_0xb91ad9,_0x1f722e+_0x24103c,_0x46f1a2[_0xb91ad9][_0x24103c]);}}await internalSetRangeValues(_0xbfb243,_0x127a35,_0x24c2b4,_0x4573ef);}else{if(typeof _0x46f1a2===_0xb0d199(0x1a8)&&_0x46f1a2!==null)await internalSetRangeValues(_0xbfb243,_0x127a35,_0x24c2b4,_0x46f1a2);else throw new Error(_0xb0d199(0x2a7)+typeof _0x46f1a2);}}}}if(_0xc9c48f[_0xb0d199(0x3d4)]!==void 0x0)_0x25b619[_0xb0d199(0x3f5)]({'s':_0xc9c48f[_0xb0d199(0x3d4)]});if(_0xc9c48f[_0xb0d199(0x343)])_0x25b619[_0xb0d199(0x343)]();}}return _0xb0d199(0x2c2);}async function batchSetRangeData(_0x129d4f){const _0x3c95a4=_0x4437f9;if(!Array[_0x3c95a4(0x351)](_0x129d4f))throw new TypeError(_0x3c95a4(0x22b));return await setRangeDataInternal(_0x129d4f);}async function setRangeStyle(_0x472e1d){const _0x43ceb8=_0x4437f9;if(!Array['isArray'](_0x472e1d))throw new TypeError(_0x43ceb8(0x248));return await setRangeDataInternal(_0x472e1d);}async function setMerge(_0x14d445){const _0x1238dd=_0x4437f9;if(typeof _0x14d445!==_0x1238dd(0x415))throw new TypeError('range_a1\x20must\x20be\x20string');return await setRangeDataInternal([{'range':_0x14d445,'merge':!![]}]);}const rangeOperationTools=[{'name':_0x4437f9(0x27f),'description':_0x4437f9(0x1dc),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'items':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](batchRangeDataItemSchema)[_0x4437f9(0x1a0)](_0x4437f9(0x32b))}),'execute':async _0x3de863=>batchSetRangeData(_0x3de863[_0x4437f9(0x31c)])},{'name':_0x4437f9(0x2ec),'description':_0x4437f9(0x214),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'items':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](batchRangeStyleItemSchema)[_0x4437f9(0x1a0)](_0x4437f9(0x1b6))}),'execute':async _0x458aad=>setRangeStyle(_0x458aad[_0x4437f9(0x31c)])},{'name':_0x4437f9(0x3d1),'description':_0x4437f9(0x41f),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'range_a1':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x1a0)](_0x4437f9(0x22e))}),'execute':async _0xd01bd=>setMerge(_0xd01bd[_0x4437f9(0x46b)])}],insertRowOperationSchema=_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'position':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x1a0)]('Row\x20index\x20(0-based)\x20where\x20to\x20insert'),'how_many':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x330)]()[_0x4437f9(0x41d)](0x1)[_0x4437f9(0x1a0)](_0x4437f9(0x2f1)),'where':_univerjs_pro_mcp['z'][_0x4437f9(0x456)]([_0x4437f9(0x37f),_0x4437f9(0x19d)])[_0x4437f9(0x330)]()['default']('before')[_0x4437f9(0x1a0)](_0x4437f9(0x394)),'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x330)]()['describe'](_0x4437f9(0x370))}),insertColumnOperationSchema=_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'position':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x1a0)](_0x4437f9(0x23f)),'how_many':_univerjs_pro_mcp['z']['number']()[_0x4437f9(0x330)]()['default'](0x1)[_0x4437f9(0x1a0)]('Number\x20of\x20columns\x20to\x20insert\x20(default\x201)'),'where':_univerjs_pro_mcp['z'][_0x4437f9(0x456)]([_0x4437f9(0x37f),_0x4437f9(0x19d)])[_0x4437f9(0x330)]()[_0x4437f9(0x41d)](_0x4437f9(0x37f))[_0x4437f9(0x1a0)](_0x4437f9(0x394)),'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['optional']()[_0x4437f9(0x1a0)]('Sheet\x20name\x20(optional,\x20uses\x20active\x20sheet\x20if\x20not\x20provided)')}),deleteRowOperationSchema=_univerjs_pro_mcp['z']['object']({'position':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x1a0)](_0x4437f9(0x3b7)),'how_many':_univerjs_pro_mcp['z']['number']()['optional']()[_0x4437f9(0x41d)](0x1)[_0x4437f9(0x1a0)](_0x4437f9(0x1bc)),'sheet_name':_univerjs_pro_mcp['z']['string']()['optional']()[_0x4437f9(0x1a0)](_0x4437f9(0x370))}),deleteColumnOperationSchema=_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'position':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x1a0)](_0x4437f9(0x44c)),'how_many':_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x330)]()[_0x4437f9(0x41d)](0x1)[_0x4437f9(0x1a0)]('Number\x20of\x20columns\x20to\x20delete\x20(default\x201)'),'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)]('Sheet\x20name\x20(optional,\x20uses\x20active\x20sheet\x20if\x20not\x20provided)')});function _0x2512(_0x476dfc,_0x29f8c1){_0x476dfc=_0x476dfc-0x17c;const _0x2e2f87=_0x2e2f();let _0x2512d4=_0x2e2f87[_0x476dfc];return _0x2512d4;}async function insertRows(_0x2cd62d){const _0x4bbdd3=_0x4437f9,_0x24189d=getUniverAPI();if(!_0x24189d)throw new Error('UniverAPI\x20not\x20available');const _0x4e76ae=_0x24189d[_0x4bbdd3(0x39e)](),_0x3c6380=[];for(const _0x53ea78 of _0x2cd62d)try{const _0x6055f3=Number[_0x4bbdd3(0x374)](String(_0x53ea78['position'])),_0xceaec7=Number[_0x4bbdd3(0x374)](String(_0x53ea78[_0x4bbdd3(0x1c6)]||0x1)),_0x5108c2=_0x53ea78[_0x4bbdd3(0x185)]||'before',_0x55220a=_0x53ea78['sheet_name'];if(isNaN(_0x6055f3)||isNaN(_0xceaec7)){_0x3c6380[_0x4bbdd3(0x34e)]({'operation':'insert_rows:\x20pos='+_0x53ea78['position']+_0x4bbdd3(0x28f)+(_0x53ea78[_0x4bbdd3(0x1c6)]||0x1)+_0x4bbdd3(0x3af)+_0x5108c2+',\x20sheet='+(_0x55220a||_0x4bbdd3(0x45e)),'status':_0x4bbdd3(0x2fd),'message':_0x4bbdd3(0x22a)});continue;}const _0x3f459c=_0x55220a?_0x4e76ae[_0x4bbdd3(0x3b1)](_0x55220a):_0x4e76ae['getActiveSheet']();if(!_0x3f459c){_0x3c6380[_0x4bbdd3(0x34e)]({'operation':'insert_rows:\x20pos='+_0x6055f3+_0x4bbdd3(0x28f)+_0xceaec7+_0x4bbdd3(0x3af)+_0x5108c2+',\x20sheet='+(_0x55220a||_0x4bbdd3(0x45e)),'status':'fail','message':_0x4bbdd3(0x42a)+_0x55220a+_0x4bbdd3(0x3d7)});continue;}if(_0x5108c2===_0x4bbdd3(0x37f))_0x3f459c[_0x4bbdd3(0x212)](_0x6055f3,_0xceaec7);else{if(_0x5108c2===_0x4bbdd3(0x19d))_0x3f459c[_0x4bbdd3(0x426)](_0x6055f3,_0xceaec7);else{_0x3c6380[_0x4bbdd3(0x34e)]({'operation':_0x4bbdd3(0x305)+_0x6055f3+_0x4bbdd3(0x28f)+_0xceaec7+',\x20where='+_0x5108c2+_0x4bbdd3(0x27b)+(_0x55220a||_0x4bbdd3(0x45e)),'status':'fail','message':_0x4bbdd3(0x3cb)});continue;}}_0x3c6380[_0x4bbdd3(0x34e)]({'operation':_0x4bbdd3(0x305)+_0x6055f3+_0x4bbdd3(0x28f)+_0xceaec7+_0x4bbdd3(0x3af)+_0x5108c2+_0x4bbdd3(0x27b)+(_0x55220a||'active'),'status':_0x4bbdd3(0x383),'message':_0x4bbdd3(0x1eb)+_0xceaec7+_0x4bbdd3(0x216)+_0x5108c2+_0x4bbdd3(0x339)+_0x6055f3+_0x4bbdd3(0x3e8)+(_0x55220a||_0x4bbdd3(0x45e))+'\x27'});}catch(_0x264eb1){_0x3c6380[_0x4bbdd3(0x34e)]({'operation':_0x4bbdd3(0x305)+_0x53ea78[_0x4bbdd3(0x3f3)]+_0x4bbdd3(0x28f)+(_0x53ea78[_0x4bbdd3(0x1c6)]||0x1)+_0x4bbdd3(0x3af)+(_0x53ea78['where']||_0x4bbdd3(0x37f))+_0x4bbdd3(0x27b)+(_0x53ea78[_0x4bbdd3(0x360)]||_0x4bbdd3(0x45e)),'status':'fail','message':_0x4bbdd3(0x434)+(_0x264eb1 instanceof Error?_0x264eb1[_0x4bbdd3(0x194)]:_0x4bbdd3(0x34a))});}const _0x483168=_0x3c6380[_0x4bbdd3(0x348)](_0x2f00a2=>_0x2f00a2[_0x4bbdd3(0x267)]==='success')[_0x4bbdd3(0x2ed)],_0x4bb023=_0x3c6380[_0x4bbdd3(0x348)](_0x59556a=>_0x59556a['status']===_0x4bbdd3(0x2fd))[_0x4bbdd3(0x2ed)],_0x4cadc1=_0x3c6380[_0x4bbdd3(0x348)](_0x2c2d27=>_0x2c2d27[_0x4bbdd3(0x267)]===_0x4bbdd3(0x2fd))[_0x4bbdd3(0x31a)](_0x40fe7f=>_0x40fe7f['message']);let _0x35fa59,_0x3ce2d2;if(_0x4bb023===0x0)_0x35fa59=_0x4bbdd3(0x383),_0x3ce2d2=_0x4bbdd3(0x391)+_0x483168+'\x20operation(s)\x20successfully.';else _0x483168>0x0?(_0x35fa59=_0x4bbdd3(0x383),_0x3ce2d2=_0x4bbdd3(0x391)+_0x483168+_0x4bbdd3(0x28a)+_0x4bb023+_0x4bbdd3(0x23b)+_0x4cadc1['join'](';\x20')):(_0x35fa59=_0x4bbdd3(0x2fd),_0x3ce2d2=_0x4bbdd3(0x434)+_0x4cadc1[_0x4bbdd3(0x2da)](';\x20'));return{'status':_0x35fa59,'message':_0x3ce2d2,'details':_0x3c6380};}async function insertColumns(_0x1e628f){const _0x70a05f=_0x4437f9,_0x382949=getUniverAPI();if(!_0x382949)throw new Error(_0x70a05f(0x3f4));const _0x3e51c8=_0x382949[_0x70a05f(0x39e)](),_0x12572d=[];for(const _0x96b124 of _0x1e628f)try{const _0x27761f=Number[_0x70a05f(0x374)](String(_0x96b124[_0x70a05f(0x3f3)])),_0x82d02e=Number[_0x70a05f(0x374)](String(_0x96b124[_0x70a05f(0x1c6)]||0x1)),_0xb09356=_0x96b124[_0x70a05f(0x185)]||_0x70a05f(0x37f),_0x96376b=_0x96b124[_0x70a05f(0x360)];if(isNaN(_0x27761f)||isNaN(_0x82d02e)){_0x12572d[_0x70a05f(0x34e)]({'operation':_0x70a05f(0x2a5)+_0x96b124['position']+_0x70a05f(0x28f)+(_0x96b124[_0x70a05f(0x1c6)]||0x1)+',\x20where='+_0xb09356+_0x70a05f(0x27b)+(_0x96376b||_0x70a05f(0x45e)),'status':_0x70a05f(0x2fd),'message':_0x70a05f(0x22a)});continue;}const _0x128a05=_0x96376b?_0x3e51c8[_0x70a05f(0x3b1)](_0x96376b):_0x3e51c8[_0x70a05f(0x2f7)]();if(!_0x128a05){_0x12572d[_0x70a05f(0x34e)]({'operation':_0x70a05f(0x2a5)+_0x27761f+_0x70a05f(0x28f)+_0x82d02e+_0x70a05f(0x3af)+_0xb09356+_0x70a05f(0x27b)+(_0x96376b||_0x70a05f(0x45e)),'status':_0x70a05f(0x2fd),'message':_0x70a05f(0x42a)+_0x96376b+_0x70a05f(0x3d7)});continue;}if(_0xb09356===_0x70a05f(0x37f))_0x128a05['insertColumnsBefore'](_0x27761f,_0x82d02e);else{if(_0xb09356===_0x70a05f(0x19d))_0x128a05[_0x70a05f(0x29b)](_0x27761f,_0x82d02e);else{_0x12572d[_0x70a05f(0x34e)]({'operation':_0x70a05f(0x2a5)+_0x27761f+',\x20count='+_0x82d02e+_0x70a05f(0x3af)+_0xb09356+',\x20sheet='+(_0x96376b||_0x70a05f(0x45e)),'status':'fail','message':_0x70a05f(0x3cb)});continue;}}_0x12572d['push']({'operation':_0x70a05f(0x2a5)+_0x27761f+',\x20count='+_0x82d02e+_0x70a05f(0x3af)+_0xb09356+_0x70a05f(0x27b)+(_0x96376b||_0x70a05f(0x45e)),'status':'success','message':_0x70a05f(0x1eb)+_0x82d02e+'\x20columns\x20'+_0xb09356+_0x70a05f(0x339)+_0x27761f+_0x70a05f(0x3e8)+(_0x96376b||_0x70a05f(0x45e))+'\x27'});}catch(_0x43847d){_0x12572d[_0x70a05f(0x34e)]({'operation':_0x70a05f(0x2a5)+_0x96b124['position']+_0x70a05f(0x28f)+(_0x96b124[_0x70a05f(0x1c6)]||0x1)+_0x70a05f(0x3af)+(_0x96b124[_0x70a05f(0x185)]||_0x70a05f(0x37f))+_0x70a05f(0x27b)+(_0x96b124['sheet_name']||_0x70a05f(0x45e)),'status':_0x70a05f(0x2fd),'message':_0x70a05f(0x2d9)+(_0x43847d instanceof Error?_0x43847d['message']:_0x70a05f(0x34a))});}const _0x55a804=_0x12572d[_0x70a05f(0x348)](_0x27a5cc=>_0x27a5cc['status']===_0x70a05f(0x383))['length'],_0x43f3f4=_0x12572d[_0x70a05f(0x348)](_0x3b8522=>_0x3b8522[_0x70a05f(0x267)]===_0x70a05f(0x2fd))[_0x70a05f(0x2ed)],_0x49d79d=_0x12572d['filter'](_0x2d73be=>_0x2d73be[_0x70a05f(0x267)]==='fail')[_0x70a05f(0x31a)](_0x47b7c7=>_0x47b7c7[_0x70a05f(0x194)]);let _0x4d8c10,_0x213ba0;if(_0x43f3f4===0x0)_0x4d8c10='success',_0x213ba0=_0x70a05f(0x1cf)+_0x55a804+_0x70a05f(0x36e);else _0x55a804>0x0?(_0x4d8c10=_0x70a05f(0x383),_0x213ba0=_0x70a05f(0x1cf)+_0x55a804+_0x70a05f(0x28a)+_0x43f3f4+'\x20operation(s),\x20reason(s):\x20'+_0x49d79d[_0x70a05f(0x2da)](';\x20')):(_0x4d8c10='fail',_0x213ba0=_0x70a05f(0x2d9)+_0x49d79d['join'](';\x20'));return{'status':_0x4d8c10,'message':_0x213ba0,'details':_0x12572d};}async function deleteRows(_0x3ca2df){const _0x10fc14=_0x4437f9,_0x593370=getUniverAPI();if(!_0x593370)throw new Error(_0x10fc14(0x3f4));const _0x254f29=_0x593370[_0x10fc14(0x39e)](),_0x58a9b8=[];for(const _0x4fcbdb of _0x3ca2df)try{const _0x31f536=Number[_0x10fc14(0x374)](String(_0x4fcbdb[_0x10fc14(0x3f3)])),_0x9aca90=Number['parseInt'](String(_0x4fcbdb[_0x10fc14(0x1c6)]||0x1)),_0x4859db=_0x4fcbdb[_0x10fc14(0x360)];if(isNaN(_0x31f536)||isNaN(_0x9aca90)){_0x58a9b8['push']({'operation':'delete_rows:\x20pos='+_0x4fcbdb[_0x10fc14(0x3f3)]+',\x20count='+(_0x4fcbdb['how_many']||0x1)+_0x10fc14(0x27b)+(_0x4859db||_0x10fc14(0x45e)),'status':'fail','message':_0x10fc14(0x22a)});continue;}if(_0x9aca90<=0x0){_0x58a9b8[_0x10fc14(0x34e)]({'operation':_0x10fc14(0x189)+_0x31f536+_0x10fc14(0x28f)+_0x9aca90+_0x10fc14(0x27b)+(_0x4859db||'active'),'status':'fail','message':'how_many\x20must\x20be\x20>\x200'});continue;}const _0x55b62b=_0x4859db?_0x254f29[_0x10fc14(0x3b1)](_0x4859db):_0x254f29['getActiveSheet']();if(!_0x55b62b){_0x58a9b8[_0x10fc14(0x34e)]({'operation':_0x10fc14(0x189)+_0x31f536+_0x10fc14(0x28f)+_0x9aca90+_0x10fc14(0x27b)+(_0x4859db||_0x10fc14(0x45e)),'status':_0x10fc14(0x2fd),'message':_0x10fc14(0x42a)+_0x4859db+_0x10fc14(0x3d7)});continue;}_0x55b62b[_0x10fc14(0x24e)](_0x31f536,_0x9aca90),_0x58a9b8[_0x10fc14(0x34e)]({'operation':_0x10fc14(0x189)+_0x31f536+_0x10fc14(0x28f)+_0x9aca90+',\x20sheet='+(_0x4859db||_0x10fc14(0x45e)),'status':_0x10fc14(0x383),'message':_0x10fc14(0x2a4)+_0x9aca90+_0x10fc14(0x282)+_0x31f536+_0x10fc14(0x3e8)+(_0x4859db||_0x10fc14(0x45e))+'\x27'});}catch(_0x271513){_0x58a9b8[_0x10fc14(0x34e)]({'operation':_0x10fc14(0x189)+_0x4fcbdb[_0x10fc14(0x3f3)]+',\x20count='+(_0x4fcbdb[_0x10fc14(0x1c6)]||0x1)+',\x20sheet='+(_0x4fcbdb[_0x10fc14(0x360)]||'active'),'status':_0x10fc14(0x2fd),'message':_0x10fc14(0x2e8)+(_0x271513 instanceof Error?_0x271513[_0x10fc14(0x194)]:'Unknown\x20error')});}const _0x16e90c=_0x58a9b8[_0x10fc14(0x348)](_0x2ba5af=>_0x2ba5af[_0x10fc14(0x267)]===_0x10fc14(0x383))[_0x10fc14(0x2ed)],_0x5ceed1=_0x58a9b8[_0x10fc14(0x348)](_0x52d0e3=>_0x52d0e3[_0x10fc14(0x267)]===_0x10fc14(0x2fd))[_0x10fc14(0x2ed)],_0x409c96=_0x58a9b8[_0x10fc14(0x348)](_0x162986=>_0x162986[_0x10fc14(0x267)]===_0x10fc14(0x2fd))[_0x10fc14(0x31a)](_0x40aac3=>_0x40aac3['message']);let _0x3aedfb,_0x34ff7f;if(_0x5ceed1===0x0)_0x3aedfb=_0x10fc14(0x383),_0x34ff7f=_0x10fc14(0x3cf)+_0x16e90c+'\x20operation(s)\x20successfully.';else _0x16e90c>0x0?(_0x3aedfb='success',_0x34ff7f=_0x10fc14(0x3cf)+_0x16e90c+_0x10fc14(0x28a)+_0x5ceed1+_0x10fc14(0x23b)+_0x409c96['join'](';\x20')):(_0x3aedfb=_0x10fc14(0x2fd),_0x34ff7f=_0x10fc14(0x2e8)+_0x409c96[_0x10fc14(0x2da)](';\x20'));return{'status':_0x3aedfb,'message':_0x34ff7f,'details':_0x58a9b8};}async function deleteColumns(_0x498b9a){const _0x7cd9b2=_0x4437f9,_0x40f689=getUniverAPI();if(!_0x40f689)throw new Error(_0x7cd9b2(0x3f4));const _0x59bec7=_0x40f689[_0x7cd9b2(0x39e)](),_0x5f25c3=[];for(const _0x562c19 of _0x498b9a)try{const _0x648f1d=Number[_0x7cd9b2(0x374)](String(_0x562c19[_0x7cd9b2(0x3f3)])),_0x380fb0=Number['parseInt'](String(_0x562c19[_0x7cd9b2(0x1c6)]||0x1)),_0x1b325f=_0x562c19['sheet_name'];if(isNaN(_0x648f1d)||isNaN(_0x380fb0)){_0x5f25c3[_0x7cd9b2(0x34e)]({'operation':_0x7cd9b2(0x1b8)+_0x562c19['position']+_0x7cd9b2(0x28f)+(_0x562c19[_0x7cd9b2(0x1c6)]||0x1)+_0x7cd9b2(0x27b)+(_0x1b325f||_0x7cd9b2(0x45e)),'status':_0x7cd9b2(0x2fd),'message':_0x7cd9b2(0x22a)});continue;}if(_0x380fb0<=0x0){_0x5f25c3['push']({'operation':'delete_columns:\x20pos='+_0x648f1d+_0x7cd9b2(0x28f)+_0x380fb0+',\x20sheet='+(_0x1b325f||_0x7cd9b2(0x45e)),'status':_0x7cd9b2(0x2fd),'message':_0x7cd9b2(0x1b5)});continue;}const _0x538657=_0x1b325f?_0x59bec7[_0x7cd9b2(0x3b1)](_0x1b325f):_0x59bec7['getActiveSheet']();if(!_0x538657){_0x5f25c3[_0x7cd9b2(0x34e)]({'operation':'delete_columns:\x20pos='+_0x648f1d+_0x7cd9b2(0x28f)+_0x380fb0+_0x7cd9b2(0x27b)+(_0x1b325f||_0x7cd9b2(0x45e)),'status':'fail','message':_0x7cd9b2(0x42a)+_0x1b325f+'\x27\x20not\x20found'});continue;}_0x538657[_0x7cd9b2(0x3bf)](_0x648f1d,_0x380fb0),_0x5f25c3[_0x7cd9b2(0x34e)]({'operation':_0x7cd9b2(0x1b8)+_0x648f1d+_0x7cd9b2(0x28f)+_0x380fb0+_0x7cd9b2(0x27b)+(_0x1b325f||_0x7cd9b2(0x45e)),'status':_0x7cd9b2(0x383),'message':_0x7cd9b2(0x2a4)+_0x380fb0+_0x7cd9b2(0x215)+_0x648f1d+_0x7cd9b2(0x3e8)+(_0x1b325f||'active')+'\x27'});}catch(_0x1f55a6){_0x5f25c3[_0x7cd9b2(0x34e)]({'operation':_0x7cd9b2(0x1b8)+_0x562c19[_0x7cd9b2(0x3f3)]+_0x7cd9b2(0x28f)+(_0x562c19['how_many']||0x1)+_0x7cd9b2(0x27b)+(_0x562c19[_0x7cd9b2(0x360)]||_0x7cd9b2(0x45e)),'status':'fail','message':'Failed\x20to\x20delete\x20columns:\x20'+(_0x1f55a6 instanceof Error?_0x1f55a6[_0x7cd9b2(0x194)]:_0x7cd9b2(0x34a))});}const _0x44625b=_0x5f25c3['filter'](_0x4da4aa=>_0x4da4aa[_0x7cd9b2(0x267)]===_0x7cd9b2(0x383))['length'],_0x153c67=_0x5f25c3[_0x7cd9b2(0x348)](_0x5a4143=>_0x5a4143['status']===_0x7cd9b2(0x2fd))['length'],_0x592995=_0x5f25c3[_0x7cd9b2(0x348)](_0x3c0664=>_0x3c0664[_0x7cd9b2(0x267)]===_0x7cd9b2(0x2fd))[_0x7cd9b2(0x31a)](_0xcb64a6=>_0xcb64a6[_0x7cd9b2(0x194)]);let _0x4af6fb,_0x23df21;if(_0x153c67===0x0)_0x4af6fb='success',_0x23df21=_0x7cd9b2(0x235)+_0x44625b+'\x20operation(s)\x20successfully.';else _0x44625b>0x0?(_0x4af6fb=_0x7cd9b2(0x383),_0x23df21=_0x7cd9b2(0x235)+_0x44625b+_0x7cd9b2(0x28a)+_0x153c67+_0x7cd9b2(0x23b)+_0x592995[_0x7cd9b2(0x2da)](';\x20')):(_0x4af6fb=_0x7cd9b2(0x2fd),_0x23df21=_0x7cd9b2(0x324)+_0x592995['join'](';\x20'));return{'status':_0x4af6fb,'message':_0x23df21,'details':_0x5f25c3};}const rowColumnOperationTools=[{'name':'insert_rows','description':_0x4437f9(0x25e),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'operations':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](insertRowOperationSchema)[_0x4437f9(0x1a0)]('List\x20of\x20InsertRowOperation\x20objects\x20for\x20each\x20insert\x20operation')}),'execute':async _0x544dc5=>insertRows(_0x544dc5[_0x4437f9(0x316)])},{'name':_0x4437f9(0x3b8),'description':_0x4437f9(0x46e),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'operations':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](insertColumnOperationSchema)['describe'](_0x4437f9(0x407))}),'execute':async _0xb8ee1f=>insertColumns(_0xb8ee1f[_0x4437f9(0x316)])},{'name':_0x4437f9(0x291),'description':_0x4437f9(0x308),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'operations':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](deleteRowOperationSchema)[_0x4437f9(0x1a0)]('List\x20of\x20DeleteRowOperation\x20objects\x20for\x20each\x20delete\x20operation')}),'execute':async _0x2ffb74=>deleteRows(_0x2ffb74[_0x4437f9(0x316)])},{'name':_0x4437f9(0x1a5),'description':_0x4437f9(0x45f),'inputSchema':_univerjs_pro_mcp['z']['object']({'operations':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](deleteColumnOperationSchema)['describe'](_0x4437f9(0x44a))}),'execute':async _0x5c3d43=>deleteColumns(_0x5c3d43[_0x4437f9(0x316)])}],renameSheetOperationSchema=_univerjs_pro_mcp['z']['object']({'old_name':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x1a0)](_0x4437f9(0x41a)),'new_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x207))}),sheetDisplayStatusOperationSchema=_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x3eb)),'visible':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x1a0)]('True\x20to\x20show\x20sheet,\x20False\x20to\x20hide\x20sheet')});async function createSheet(_0x170d08){const _0x43d913=_0x4437f9,_0x52948e=getUniverAPI();if(!_0x52948e)throw new Error('UniverAPI\x20not\x20available');const _0x2ce36e=_0x52948e['getActiveWorkbook'](),_0x3a4ef5=[];for(const _0x36611a of _0x170d08)try{if(!!_0x2ce36e[_0x43d913(0x3b1)](_0x36611a))_0x3a4ef5[_0x43d913(0x34e)]({'operation':_0x43d913(0x3df)+_0x36611a,'status':'fail','message':_0x43d913(0x42a)+_0x36611a+'\x27\x20already\x20exists'});else _0x2ce36e['create'](_0x36611a),_0x3a4ef5[_0x43d913(0x34e)]({'operation':_0x43d913(0x3df)+_0x36611a,'status':'success','message':_0x43d913(0x1e5)+_0x36611a+'\x27'});}catch(_0x338735){_0x3a4ef5[_0x43d913(0x34e)]({'operation':'create_sheet:\x20'+_0x36611a,'status':_0x43d913(0x2fd),'message':_0x43d913(0x443)+_0x36611a+_0x43d913(0x287)+(_0x338735 instanceof Error?_0x338735['message']:_0x43d913(0x34a))});}const _0xb64e1c=_0x3a4ef5['filter'](_0x4b64b1=>_0x4b64b1[_0x43d913(0x267)]===_0x43d913(0x383))[_0x43d913(0x2ed)],_0x27e910=_0x3a4ef5['filter'](_0xea6404=>_0xea6404[_0x43d913(0x267)]===_0x43d913(0x2fd))[_0x43d913(0x2ed)],_0xca3460=_0x3a4ef5['filter'](_0x3d7e46=>_0x3d7e46[_0x43d913(0x267)]===_0x43d913(0x2fd))[_0x43d913(0x31a)](_0x276b38=>_0x276b38['message']);let _0x1e0125,_0x555e52;if(_0x27e910===0x0)_0x1e0125=_0x43d913(0x383),_0x555e52=_0x43d913(0x2a8)+_0xb64e1c+_0x43d913(0x45b);else _0xb64e1c>0x0?(_0x1e0125='success',_0x555e52='Created\x20'+_0xb64e1c+_0x43d913(0x42b)+_0x27e910+_0x43d913(0x381)+_0xca3460[_0x43d913(0x2da)](';\x20')):(_0x1e0125=_0x43d913(0x2fd),_0x555e52=_0x43d913(0x371)+_0xca3460[_0x43d913(0x2da)](';\x20'));return{'status':_0x1e0125,'message':_0x555e52,'details':_0x3a4ef5};}async function deleteSheet(_0x21a5e6){const _0x118342=_0x4437f9,_0xc8933f=getUniverAPI();if(!_0xc8933f)throw new Error(_0x118342(0x3f4));const _0x2a686b=_0xc8933f[_0x118342(0x39e)](),_0x50e4b9=[];for(const _0x15e31a of _0x21a5e6)try{const _0x3f7b2d=_0x2a686b['getSheetByName'](_0x15e31a);if(!_0x3f7b2d)_0x50e4b9[_0x118342(0x34e)]({'operation':_0x118342(0x20b)+_0x15e31a,'status':_0x118342(0x2fd),'message':_0x118342(0x42a)+_0x15e31a+'\x27\x20not\x20found'});else _0x2a686b[_0x118342(0x2c8)](_0x3f7b2d),_0x50e4b9[_0x118342(0x34e)]({'operation':_0x118342(0x20b)+_0x15e31a,'status':_0x118342(0x383),'message':'Deleted\x20sheet\x20\x27'+_0x15e31a+'\x27'});}catch(_0x236a3b){_0x50e4b9[_0x118342(0x34e)]({'operation':'delete_sheet:\x20'+_0x15e31a,'status':'fail','message':_0x118342(0x2b8)+_0x15e31a+_0x118342(0x287)+(_0x236a3b instanceof Error?_0x236a3b[_0x118342(0x194)]:_0x118342(0x34a))});}const _0x18780a=_0x50e4b9[_0x118342(0x348)](_0x5211bf=>_0x5211bf[_0x118342(0x267)]===_0x118342(0x383))['length'],_0x438654=_0x50e4b9[_0x118342(0x348)](_0x142d9d=>_0x142d9d[_0x118342(0x267)]==='fail')[_0x118342(0x2ed)],_0x142fc5=_0x50e4b9['filter'](_0x3af3d1=>_0x3af3d1[_0x118342(0x267)]==='fail')['map'](_0x217c29=>_0x217c29[_0x118342(0x194)]);let _0x107505,_0x326253;if(_0x438654===0x0)_0x107505=_0x118342(0x383),_0x326253='Deleted\x20'+_0x18780a+'\x20sheet(s)\x20successfully.';else _0x18780a>0x0?(_0x107505=_0x118342(0x383),_0x326253='Deleted\x20'+_0x18780a+_0x118342(0x42b)+_0x438654+_0x118342(0x381)+_0x142fc5[_0x118342(0x2da)](';\x20')):(_0x107505='fail',_0x326253=_0x118342(0x433)+_0x142fc5[_0x118342(0x2da)](';\x20'));return{'status':_0x107505,'message':_0x326253,'details':_0x50e4b9};}async function renameSheet(_0x21feef){const _0x2a19e4=_0x4437f9,_0x4155f4=getUniverAPI();if(!_0x4155f4)throw new Error(_0x2a19e4(0x3f4));const _0x11a507=_0x4155f4[_0x2a19e4(0x39e)](),_0x174c48=[];for(const _0x189232 of _0x21feef)try{const _0x5b584f=_0x11a507[_0x2a19e4(0x3b1)](_0x189232['old_name']);if(!_0x5b584f)_0x174c48[_0x2a19e4(0x34e)]({'operation':_0x2a19e4(0x43b)+_0x189232[_0x2a19e4(0x1a3)]+_0x2a19e4(0x3dc)+_0x189232[_0x2a19e4(0x3f8)],'status':'fail','message':'Sheet\x20\x27'+_0x189232['old_name']+'\x27\x20not\x20found'});else{const _0x423c62=_0x11a507[_0x2a19e4(0x3b1)](_0x189232['new_name']);if(_0x423c62&&_0x423c62!==_0x5b584f)_0x174c48[_0x2a19e4(0x34e)]({'operation':_0x2a19e4(0x43b)+_0x189232['old_name']+_0x2a19e4(0x3dc)+_0x189232[_0x2a19e4(0x3f8)],'status':_0x2a19e4(0x2fd),'message':_0x2a19e4(0x2cf)+_0x189232['new_name']+'\x27\x20already\x20exists'});else _0x5b584f[_0x2a19e4(0x18a)](_0x189232[_0x2a19e4(0x3f8)]),_0x174c48[_0x2a19e4(0x34e)]({'operation':_0x2a19e4(0x43b)+_0x189232['old_name']+_0x2a19e4(0x3dc)+_0x189232[_0x2a19e4(0x3f8)],'status':'success','message':_0x2a19e4(0x43f)+_0x189232[_0x2a19e4(0x1a3)]+_0x2a19e4(0x28e)+_0x189232[_0x2a19e4(0x3f8)]+'\x27'});}}catch(_0x1b7e66){_0x174c48[_0x2a19e4(0x34e)]({'operation':_0x2a19e4(0x43b)+_0x189232['old_name']+_0x2a19e4(0x3dc)+_0x189232[_0x2a19e4(0x3f8)],'status':_0x2a19e4(0x2fd),'message':_0x2a19e4(0x43d)+(_0x1b7e66 instanceof Error?_0x1b7e66['message']:_0x2a19e4(0x34a))});}const _0x2f9dc5=_0x174c48['filter'](_0x1fbab1=>_0x1fbab1[_0x2a19e4(0x267)]===_0x2a19e4(0x383))[_0x2a19e4(0x2ed)],_0x59fcb0=_0x174c48[_0x2a19e4(0x348)](_0x44851e=>_0x44851e['status']===_0x2a19e4(0x2fd))[_0x2a19e4(0x2ed)],_0x3b3d94=_0x174c48[_0x2a19e4(0x348)](_0x9576f6=>_0x9576f6[_0x2a19e4(0x267)]===_0x2a19e4(0x2fd))[_0x2a19e4(0x31a)](_0x5bf2f9=>_0x5bf2f9[_0x2a19e4(0x194)]);let _0x5eee8a,_0x17f481;if(_0x59fcb0===0x0)_0x5eee8a=_0x2a19e4(0x383),_0x17f481=_0x2a19e4(0x1a4)+_0x2f9dc5+_0x2a19e4(0x45b);else _0x2f9dc5>0x0?(_0x5eee8a=_0x2a19e4(0x383),_0x17f481=_0x2a19e4(0x1a4)+_0x2f9dc5+_0x2a19e4(0x42b)+_0x59fcb0+_0x2a19e4(0x381)+_0x3b3d94[_0x2a19e4(0x2da)](';\x20')):(_0x5eee8a=_0x2a19e4(0x2fd),_0x17f481=_0x2a19e4(0x2d2)+_0x3b3d94['join'](';\x20'));return{'status':_0x5eee8a,'message':_0x17f481,'details':_0x174c48};}async function activateSheet(_0x3208be){const _0x2f17bf=_0x4437f9,_0x1736bf=getUniverAPI();if(!_0x1736bf)throw new Error(_0x2f17bf(0x3f4));return _0x1736bf[_0x2f17bf(0x39e)]()[_0x2f17bf(0x3b1)](_0x3208be)[_0x2f17bf(0x21d)](),_0x2f17bf(0x21b)+_0x3208be+'\x27';}async function moveSheet(_0x770a62,_0x59603b){const _0x591217=_0x4437f9,_0x59356d=getUniverAPI();if(!_0x59356d)throw new Error(_0x591217(0x3f4));const _0x2fb762=ensureInt(_0x59603b,_0x591217(0x226)),_0x1beb06=_0x59356d[_0x591217(0x39e)]();return _0x1beb06[_0x591217(0x1d3)](_0x1beb06[_0x591217(0x3b1)](_0x770a62),_0x2fb762),'Moved\x20sheet\x20\x27'+_0x770a62+'\x27\x20to\x20index\x20'+_0x2fb762;}async function setSheetDisplayStatus(_0x3038b7){const _0x418a24=_0x4437f9,_0x328608=getUniverAPI();if(!_0x328608)throw new Error('UniverAPI\x20not\x20available');const _0x28a5f9=_0x328608[_0x418a24(0x39e)](),_0xdf0e6c=[];for(const _0xe160d9 of _0x3038b7)try{const _0x1e555a=_0x28a5f9[_0x418a24(0x3b1)](_0xe160d9[_0x418a24(0x360)]);if(!_0x1e555a)_0xdf0e6c[_0x418a24(0x34e)]({'operation':_0x418a24(0x1e2)+_0xe160d9['sheet_name']+'\x20->\x20'+(_0xe160d9['visible']?_0x418a24(0x2a0):_0x418a24(0x3ae)),'status':_0x418a24(0x2fd),'message':_0x418a24(0x42a)+_0xe160d9['sheet_name']+_0x418a24(0x3d7)});else{if(_0xe160d9[_0x418a24(0x2a0)])_0x1e555a[_0x418a24(0x18b)]();else _0x1e555a[_0x418a24(0x3a8)]();_0xdf0e6c[_0x418a24(0x34e)]({'operation':'set_display_status:\x20'+_0xe160d9['sheet_name']+'\x20->\x20'+(_0xe160d9[_0x418a24(0x2a0)]?_0x418a24(0x2a0):_0x418a24(0x3ae)),'status':_0x418a24(0x383),'message':(_0xe160d9[_0x418a24(0x2a0)]?'Shown':'Hidden')+_0x418a24(0x229)+_0xe160d9[_0x418a24(0x360)]+'\x27'});}}catch(_0x49efc8){_0xdf0e6c[_0x418a24(0x34e)]({'operation':_0x418a24(0x1e2)+_0xe160d9['sheet_name']+_0x418a24(0x3dc)+(_0xe160d9[_0x418a24(0x2a0)]?_0x418a24(0x2a0):_0x418a24(0x3ae)),'status':_0x418a24(0x2fd),'message':_0x418a24(0x232)+_0xe160d9['sheet_name']+_0x418a24(0x287)+(_0x49efc8 instanceof Error?_0x49efc8[_0x418a24(0x194)]:_0x418a24(0x34a))});}const _0x243b74=_0xdf0e6c[_0x418a24(0x348)](_0x5b1af4=>_0x5b1af4[_0x418a24(0x267)]===_0x418a24(0x383))[_0x418a24(0x2ed)],_0x58294d=_0xdf0e6c[_0x418a24(0x348)](_0x5d79cf=>_0x5d79cf[_0x418a24(0x267)]===_0x418a24(0x2fd))['length'],_0x2d6988=_0xdf0e6c['filter'](_0x5d86a1=>_0x5d86a1['status']===_0x418a24(0x2fd))[_0x418a24(0x31a)](_0x30fbb8=>_0x30fbb8['message']);let _0x237465,_0x499a83;if(_0x58294d===0x0)_0x237465=_0x418a24(0x383),_0x499a83=_0x418a24(0x367)+_0x243b74+_0x418a24(0x45b);else _0x243b74>0x0?(_0x237465=_0x418a24(0x383),_0x499a83=_0x418a24(0x367)+_0x243b74+_0x418a24(0x42b)+_0x58294d+_0x418a24(0x2bb)+_0x2d6988[_0x418a24(0x2da)](';\x20')):(_0x237465=_0x418a24(0x2fd),_0x499a83=_0x418a24(0x403)+_0x2d6988[_0x418a24(0x2da)](';\x20'));return{'status':_0x237465,'message':_0x499a83,'details':_0xdf0e6c};}async function getSheets(){const _0x1f212c=_0x4437f9,_0x59d6c6=getUniverAPI();if(!_0x59d6c6)throw new Error('UniverAPI\x20not\x20available');return _0x59d6c6[_0x1f212c(0x39e)]()[_0x1f212c(0x392)]()[_0x1f212c(0x31a)](_0x29ae33=>({'name':_0x29ae33['getSheetName']()}));}async function getActiveUnitId(){const _0xd9da5e=_0x4437f9,_0x4a785d=getUniverAPI();if(!_0x4a785d)throw new Error(_0xd9da5e(0x3f4));return _0x4a785d[_0xd9da5e(0x39e)]()[_0xd9da5e(0x354)]();}const sheetManagementTools=[{'name':_0x4437f9(0x44e),'description':_0x4437f9(0x1cb),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_names':_univerjs_pro_mcp['z']['array'](_univerjs_pro_mcp['z']['string']())[_0x4437f9(0x1a0)]('List\x20of\x20names\x20for\x20the\x20new\x20worksheets\x20to\x20create')}),'execute':async _0x5bafee=>createSheet(_0x5bafee[_0x4437f9(0x242)])},{'name':_0x4437f9(0x298),'description':_0x4437f9(0x295),'inputSchema':_univerjs_pro_mcp['z']['object']({'sheet_names':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](_univerjs_pro_mcp['z'][_0x4437f9(0x415)]())[_0x4437f9(0x1a0)](_0x4437f9(0x3a9))}),'execute':async _0x5aa318=>deleteSheet(_0x5aa318['sheet_names'])},{'name':_0x4437f9(0x3b9),'description':_0x4437f9(0x42f),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'operations':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](renameSheetOperationSchema)[_0x4437f9(0x1a0)](_0x4437f9(0x1ae))}),'execute':async _0x490064=>renameSheet(_0x490064[_0x4437f9(0x316)])},{'name':_0x4437f9(0x254),'description':_0x4437f9(0x29f),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['describe'](_0x4437f9(0x301))}),'execute':async _0x2294c6=>activateSheet(_0x2294c6[_0x4437f9(0x360)])},{'name':'move_sheet','description':_0x4437f9(0x3c2),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheet_name':_univerjs_pro_mcp['z']['string']()['describe'](_0x4437f9(0x30f)),'to_index':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z']['string'](),_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()])[_0x4437f9(0x1a0)]('Target\x20index\x20(0-based).\x20Can\x20be\x20integer\x20or\x20string\x20representation\x20of\x20integer')}),'execute':async _0x528c25=>moveSheet(_0x528c25[_0x4437f9(0x360)],_0x528c25[_0x4437f9(0x226)])},{'name':_0x4437f9(0x37a),'description':_0x4437f9(0x2df),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'operations':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](sheetDisplayStatusOperationSchema)['describe'](_0x4437f9(0x413))}),'execute':async _0x5d6c88=>setSheetDisplayStatus(_0x5d6c88[_0x4437f9(0x316)])},{'name':_0x4437f9(0x184),'description':_0x4437f9(0x453),'inputSchema':_univerjs_pro_mcp['z']['object']({}),'execute':async()=>getSheets()},{'name':_0x4437f9(0x2e7),'description':_0x4437f9(0x193),'inputSchema':_univerjs_pro_mcp['z']['object']({}),'execute':async()=>getActiveUnitId()}];function getLintErrors(_0x3f2c1c,_0xe072cf){const _0x3e32ca=_0x4437f9,_0x55b60e={'total_errors':0x0},_0x14eb9f=[];_0x3f2c1c[_0x3e32ca(0x2d8)](_0x562e1b=>{const _0x4bdfb0=_0x3e32ca;_0x14eb9f[_0x4bdfb0(0x34e)]({'type':_0x4bdfb0(0x296),'sheetName':_0x562e1b[_0x4bdfb0(0x368)],'row':_0x562e1b[_0x4bdfb0(0x3d6)],'column':_0x562e1b[_0x4bdfb0(0x33e)],'description':_0x562e1b[_0x4bdfb0(0x336)]+'\x20|\x20'+getFormulaErrorDescription(_0x562e1b[_0x4bdfb0(0x336)])});}),_0xe072cf['forEach'](_0x2bb1f8=>{const _0x3600a2=_0x3e32ca;_0x14eb9f[_0x3600a2(0x34e)]({'type':'dataValidation','sheetName':_0x2bb1f8['sheetName'],'row':_0x2bb1f8[_0x3600a2(0x3d6)],'column':_0x2bb1f8[_0x3600a2(0x33e)],'description':'Data\x20validation\x20error'});});if(_0x14eb9f[_0x3e32ca(0x2ed)]===0x0)return _0x55b60e[_0x3e32ca(0x17f)]='No\x20errors\x20found.',yaml[_0x3e32ca(0x41d)][_0x3e32ca(0x331)](_0x55b60e);_0x14eb9f[_0x3e32ca(0x1bf)]((_0xfa4ee6,_0x5d6b54)=>{const _0x358f88=_0x3e32ca;if(_0xfa4ee6['sheetName']!==_0x5d6b54['sheetName'])return _0xfa4ee6[_0x358f88(0x368)]['localeCompare'](_0x5d6b54['sheetName']);if(_0xfa4ee6[_0x358f88(0x3d6)]!==_0x5d6b54[_0x358f88(0x3d6)])return _0xfa4ee6[_0x358f88(0x3d6)]-_0x5d6b54[_0x358f88(0x3d6)];return _0xfa4ee6['column']-_0x5d6b54[_0x358f88(0x33e)];});const _0x2ca2f4=_0x14eb9f[_0x3e32ca(0x200)](0x0,0xc8),_0x3e08eb=new Map();_0x2ca2f4[_0x3e32ca(0x2d8)](_0x427afa=>{const _0x345c44=_0x3e32ca,_0x4b7db6=getCellAddressSimple(_0x427afa['row'],_0x427afa[_0x345c44(0x33e)]);if(!_0x3e08eb['has'](_0x427afa[_0x345c44(0x368)]))_0x3e08eb['set'](_0x427afa[_0x345c44(0x368)],{});_0x3e08eb[_0x345c44(0x480)](_0x427afa['sheetName'])[_0x4b7db6]=_0x427afa[_0x345c44(0x1c7)];});const _0x146488=Array['from'](_0x3e08eb['entries']())['map'](([_0x1bde27,_0x41c047])=>({'sheet':_0x1bde27,'cells':_0x41c047})),_0x3d1eb7={'total_errors':_0x14eb9f[_0x3e32ca(0x2ed)],'errors':_0x146488};return _0x14eb9f['length']>0xc8&&(_0x3d1eb7[_0x3e32ca(0x223)]=!![],_0x3d1eb7[_0x3e32ca(0x17f)]='Only\x20the\x20first\x20200\x20errors\x20are\x20shown\x20due\x20to\x20volume.'),yaml[_0x3e32ca(0x41d)][_0x3e32ca(0x331)](_0x3d1eb7);}function getFormulaErrorDescription(_0x1da286){const _0x49d756=_0x4437f9;return{'#DIV/0!':_0x49d756(0x373),'#NAME?':_0x49d756(0x333),'#VALUE!':_0x49d756(0x292),'#REF!':_0x49d756(0x237),'#NUM!':'Invalid\x20numeric\x20value\x20error','#N/A':_0x49d756(0x260),'#SPILL!':_0x49d756(0x472),'#CALC!':_0x49d756(0x38a),'#ERROR!':_0x49d756(0x1ab),'#GETTING_DATA':_0x49d756(0x34c),'#NULL!':_0x49d756(0x3fc)}[_0x1da286]||_0x49d756(0x2e0);}function getCellAddressSimple(_0x556b25,_0x1cb81a){return''+colIdxToExcel$1(_0x1cb81a)+(_0x556b25+0x1);}function colIdxToExcel$1(_0x16fa44){let _0x511cfc='';_0x16fa44+=0x1;while(_0x16fa44>0x0){const _0x35e1e8=(_0x16fa44-0x1)%0x1a;_0x16fa44=Math['floor']((_0x16fa44-0x1)/0x1a),_0x511cfc=String['fromCharCode'](0x41+_0x35e1e8)+_0x511cfc;}return _0x511cfc;}async function getWorkbookLintErrors(_0x14f576){const _0x19d64b=_0x4437f9;if(!_0x14f576)throw new Error('UniverAPI\x20not\x20available');try{const _0x22aa5c=_0x14f576[_0x19d64b(0x39e)]();if(!_0x22aa5c)return'No\x20active\x20workbook';const _0xa04b10=_0x22aa5c['getAllFormulaError'](),_0x34ef93=await _0x22aa5c[_0x19d64b(0x398)]();return getLintErrors(_0xa04b10||[],_0x34ef93||[]);}catch(_0x24b6a1){return'Error\x20getting\x20lint\x20errors:\x20'+_0x24b6a1;}}async function extractFormulas(_0x27689f,_0x30c989=[]){const _0x247ca6=_0x4437f9;if(!_0x27689f)throw new Error(_0x247ca6(0x3f4));try{const _0x155f51=_0x27689f['getActiveWorkbook']();if(!_0x155f51)return _0x247ca6(0x35d);if(_0x30c989['length']===0x0)_0x30c989=[_0x155f51[_0x247ca6(0x2f7)]()[_0x247ca6(0x38c)]()];const _0x4c6fd6=[];for(const _0x1870f6 of _0x30c989){const _0x235b31=_0x155f51[_0x247ca6(0x3b1)](_0x1870f6);if(!_0x235b31){_0x4c6fd6[_0x247ca6(0x34e)]({'sheetName':_0x1870f6,'note':_0x247ca6(0x477)});continue;}const _0x98c765=await _0x235b31[_0x247ca6(0x281)]();if(_0x98c765[_0x247ca6(0x2ed)]===0x0){_0x4c6fd6[_0x247ca6(0x34e)]({'sheetName':_0x1870f6,'note':_0x247ca6(0x244)});continue;}_0x4c6fd6[_0x247ca6(0x34e)]({'sheetName':_0x1870f6,'total':_0x98c765[_0x247ca6(0x2ed)],'formulas':_0x98c765});}return yaml['default']['stringify'](_0x4c6fd6);}catch(_0x5b504b){return'Error\x20getting\x20lint\x20errors:\x20'+_0x5b504b;}}function getStyleHash(_0x214844){const _0x61ff90=_0x4437f9;var _0x190f00,_0x21066b,_0xd39a81;if(!_0x214844)return'';const _0x51e07e=[];if(_0x214844['fs']!==void 0x0)_0x51e07e[_0x61ff90(0x34e)](_0x61ff90(0x1b7)+_0x214844['fs']);if(_0x214844['it']!==void 0x0)_0x51e07e[_0x61ff90(0x34e)](_0x61ff90(0x2c7)+_0x214844['it']);if(_0x214844['bl']!==void 0x0)_0x51e07e['push']('bl:'+_0x214844['bl']);if((_0x190f00=_0x214844['bg'])===null||_0x190f00===void 0x0?void 0x0:_0x190f00['rgb'])_0x51e07e[_0x61ff90(0x34e)](_0x61ff90(0x1d4)+_0x214844['bg'][_0x61ff90(0x256)]);if((_0x21066b=_0x214844['cl'])===null||_0x21066b===void 0x0?void 0x0:_0x21066b['rgb'])_0x51e07e[_0x61ff90(0x34e)](_0x61ff90(0x2f2)+_0x214844['cl'][_0x61ff90(0x256)]);if((_0xd39a81=_0x214844['n'])===null||_0xd39a81===void 0x0?void 0x0:_0xd39a81[_0x61ff90(0x3bb)])_0x51e07e['push']('n:'+_0x214844['n'][_0x61ff90(0x3bb)]);return _0x51e07e[_0x61ff90(0x2ed)]===0x0?'':_0x51e07e[_0x61ff90(0x2da)]('|');}function getStyleHash2(_0x2c7a4a,_0x16cb58){const _0x52f667=_0x4437f9,_0x170767=getStyleHash(_0x2c7a4a);if(!_0x170767)return'';if(_0x16cb58&&_0x16cb58[_0x52f667(0x327)](_0x170767))return _0x16cb58[_0x52f667(0x480)](_0x170767);let _0x418a71=0x0;for(let _0x567855=0x0;_0x567855<_0x170767[_0x52f667(0x2ed)];_0x567855++){const _0x47071c=_0x170767[_0x52f667(0x28c)](_0x567855);_0x418a71=(_0x418a71<<0x5)-_0x418a71+_0x47071c,_0x418a71=_0x418a71&_0x418a71;}const _0x7d61e8=_0x52f667(0x303);function _0x12b39e(_0x26c2fb){const _0x553c01=_0x52f667;if(_0x26c2fb===0x0)return'0';let _0x304785='',_0x2b756a=Math[_0x553c01(0x478)](_0x26c2fb);while(_0x2b756a>0x0){_0x304785=_0x7d61e8[_0x2b756a%0x3e]+_0x304785,_0x2b756a=Math[_0x553c01(0x306)](_0x2b756a/0x3e);}return _0x304785;}let _0x4c2815=_0x12b39e(_0x418a71)[_0x52f667(0x200)](0x0,0x7)[_0x52f667(0x3e1)](0x7,'0');if(_0x16cb58){let _0x626b92=0x1;const _0x3a768c=_0x4c2815,_0x335cec=new Set(_0x16cb58[_0x52f667(0x35c)]());while(_0x335cec['has'](_0x4c2815)){_0x4c2815=_0x3a768c['slice'](0x0,0x6)+_0x626b92%0xa,_0x626b92++;if(_0x626b92>0x3e8){_0x4c2815=_0x3a768c[_0x52f667(0x200)](0x0,0x6)+'x';break;}}_0x16cb58[_0x52f667(0x2db)](_0x170767,_0x4c2815);}return _0x4c2815;}const cellDimensionRequestSchema=_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'range':_univerjs_pro_mcp['z']['string']()['describe'](_0x4437f9(0x18c)),'width':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()[_0x4437f9(0x1a0)]('Width\x20in\x20points\x20(pt)\x20for\x20columns'),_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]())['describe'](_0x4437f9(0x2ce))])[_0x4437f9(0x330)]()['describe'](_0x4437f9(0x2a3)),'height':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]()['describe'](_0x4437f9(0x2a1)),_univerjs_pro_mcp['z']['array'](_univerjs_pro_mcp['z'][_0x4437f9(0x1f0)]())[_0x4437f9(0x1a0)](_0x4437f9(0x2d5))])[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x2a1))});async function takeScreenshotWithHtml2Canvas(_0xb4d9c1){const _0x3701e9=_0x4437f9;try{return(await(0x0,html2canvas_pro[_0x3701e9(0x41d)])(_0xb4d9c1,{'useCORS':!![],'logging':![],'backgroundColor':null}))[_0x3701e9(0x2b0)]('image/png')[_0x3701e9(0x2ad)](',')[0x1];}catch(_0x4b84fd){throw new Error(_0x3701e9(0x309)+_0x4b84fd);}}function isNodeRuntime(){const _0x5647b6=_0x4437f9;var _0x1cda59;return typeof window===_0x5647b6(0x3cd)&&typeof process!=='undefined'&&!!((_0x1cda59=process[_0x5647b6(0x26b)])===null||_0x1cda59===void 0x0?void 0x0:_0x1cda59['node']);}function colIdxToExcel(_0x38dfa5){const _0x506a43=_0x4437f9;let _0x117c15='';_0x38dfa5+=0x1;while(_0x38dfa5>0x0){const _0x35a98e=(_0x38dfa5-0x1)%0x1a;_0x38dfa5=Math['floor']((_0x38dfa5-0x1)/0x1a),_0x117c15=String[_0x506a43(0x1f6)](0x41+_0x35a98e)+_0x117c15;}return _0x117c15;}async function searchCells(_0x1ec7a0,_0x385c28){const _0x84d62e=_0x4437f9,_0x3fe699=getUniverAPI();if(!_0x3fe699)throw new Error(_0x84d62e(0x3f4));const _0x4fa61f=await _0x3fe699[_0x84d62e(0x1e3)](_0x1ec7a0);_0x4fa61f['_state'][_0x84d62e(0x27c)]({'findScope':_0x84d62e(0x3ac),'findBy':_0x385c28}),await _0x4fa61f[_0x84d62e(0x197)]();const _0x4d50b2=_0x4fa61f[_0x84d62e(0x40d)]();return{'total':_0x4d50b2[_0x84d62e(0x2ed)],'results':_0x4d50b2['slice'](0x0,0x32)[_0x84d62e(0x31a)](_0x4682d0=>{const _0x422b56=_0x84d62e;let _0x2fd504=_0x4682d0['getValue']();if(typeof _0x2fd504==='string'&&_0x2fd504['length']>0xc8)_0x2fd504=_0x2fd504[_0x422b56(0x200)](0x0,0xc8)+_0x422b56(0x1f2);return{'range_a1':_0x4682d0[_0x422b56(0x286)](!![]),'value':_0x2fd504,'formula':_0x4682d0[_0x422b56(0x377)]()};})};}async function autoFill(_0x5916bc,_0x524c2f){const _0x56644e=_0x4437f9,_0x5bff38=getUniverAPI();if(!_0x5bff38)throw new Error(_0x56644e(0x3f4));const _0x2aab3f=_0x5bff38['getActiveWorkbook']()['getActiveSheet'](),_0x3f82b0=_0x2aab3f[_0x56644e(0x1c1)](_0x5916bc);_0x2aab3f['setActiveRange'](_0x3f82b0);const _0x25f344=_0x3f82b0[_0x56644e(0x1c1)](),_0x45e4cf=_0x2aab3f['getRange'](_0x524c2f),_0x528c93=_0x45e4cf[_0x56644e(0x1c1)](),_0x4a7c92={'startRow':_0x25f344[_0x56644e(0x213)],'startColumn':_0x25f344[_0x56644e(0x353)],'endRow':_0x25f344[_0x56644e(0x2c0)],'endColumn':_0x25f344[_0x56644e(0x442)]},_0x190548={'startRow':_0x528c93[_0x56644e(0x213)],'startColumn':_0x528c93['startColumn'],'endRow':_0x528c93['endRow'],'endColumn':_0x528c93[_0x56644e(0x442)]};return _0x5bff38[_0x56644e(0x346)](_0x56644e(0x37c),{'sourceRange':_0x4a7c92,'targetRange':_0x190548}),_0x2aab3f[_0x56644e(0x3d5)](_0x45e4cf),_0x56644e(0x2bf)+_0x5916bc+'\x20to\x20'+_0x524c2f;}async function formatBrush(_0x30de5e,_0x4c2deb){const _0xd766a4=_0x4437f9,_0x2c3a46=getUniverAPI();if(!_0x2c3a46)throw new Error(_0xd766a4(0x3f4));const _0x2adc8d=_0x2c3a46[_0xd766a4(0x39e)](),_0x13a073=_0x2adc8d[_0xd766a4(0x2f7)](),_0x518102=_0x13a073['getRange'](_0x30de5e);_0x13a073[_0xd766a4(0x3d5)](_0x518102),_0x2c3a46[_0xd766a4(0x346)](_0xd766a4(0x2de));const _0x14f83b=_0x13a073[_0xd766a4(0x1c1)](_0x4c2deb),_0x37c43d=_0x14f83b[_0xd766a4(0x1c1)](),_0x1952d7=_0x2adc8d[_0xd766a4(0x354)](),_0x3e4304=_0x13a073['getSheetId']();return _0x2c3a46['executeCommand'](_0xd766a4(0x3e6),{'unitId':_0x1952d7,'subUnitId':_0x3e4304,'range':{'startRow':_0x37c43d[_0xd766a4(0x213)],'startColumn':_0x37c43d[_0xd766a4(0x353)],'endRow':_0x37c43d[_0xd766a4(0x2c0)],'endColumn':_0x37c43d[_0xd766a4(0x442)]}}),_0x13a073[_0xd766a4(0x3d5)](_0x14f83b),_0xd766a4(0x2b7)+_0x30de5e+_0xd766a4(0x2b1)+_0x4c2deb;}async function setCellDimensions(_0x115313){const _0x2e87b5=_0x4437f9,_0xbb68fe=getUniverAPI();if(!_0xbb68fe)throw new Error(_0x2e87b5(0x3f4));const _0xd84e6d=getCommandService();if(!_0xd84e6d)throw new Error(_0x2e87b5(0x325));const _0x358625=_0xbb68fe[_0x2e87b5(0x39e)]();if(!_0x358625)throw new Error(_0x2e87b5(0x35d));const _0x287759=_0x358625['getId'](),_0x645b79=_0x358625[_0x2e87b5(0x2f7)]();if(!_0x645b79)throw new Error('No\x20active\x20sheet');let _0x417163=0x0;const _0x20ca6a=[];for(const _0x467a50 of _0x115313)try{const _0xd8c3e0=_0x467a50[_0x2e87b5(0x220)][_0x2e87b5(0x2ad)](',')[_0x2e87b5(0x31a)](_0x5baaab=>_0x5baaab[_0x2e87b5(0x2fe)]())[_0x2e87b5(0x348)](Boolean);for(const _0x516e32 of _0xd8c3e0){let _0x34d24='',_0x24dad4=_0x516e32;if(_0x516e32['includes']('!')){const _0x25d653=_0x516e32[_0x2e87b5(0x2ad)]('!');_0x34d24=_0x25d653[0x0],_0x24dad4=_0x25d653[0x1];}const _0x33e5eb=_0x34d24?_0x358625['getSheetByName'](_0x34d24):_0x645b79;if(!_0x33e5eb)throw new Error(_0x2e87b5(0x387)+(_0x34d24||'active')+_0x2e87b5(0x3b3));const _0x4cef8a=_0x33e5eb[_0x2e87b5(0x307)](),{type:_0x56b8b5,isValid:_0x2cbd15}=parseRangeType(_0x24dad4);if(!_0x2cbd15)throw new Error(_0x2e87b5(0x32a)+_0x516e32);if(_0x467a50[_0x2e87b5(0x1d1)]!==void 0x0&&(_0x56b8b5==='column'||_0x56b8b5===_0x2e87b5(0x285)))await setColumnWidthInternal(_0xd84e6d,_0x287759,_0x4cef8a,_0x24dad4,_0x467a50[_0x2e87b5(0x1d1)],_0x33e5eb);if(_0x467a50['height']!==void 0x0&&(_0x56b8b5===_0x2e87b5(0x3d6)||_0x56b8b5===_0x2e87b5(0x285)))await setRowHeightInternal(_0xd84e6d,_0x287759,_0x4cef8a,_0x24dad4,_0x467a50['height'],_0x33e5eb);}_0x417163++;}catch(_0x35d04a){_0x20ca6a['push'](_0x2e87b5(0x462)+JSON[_0x2e87b5(0x331)](_0x467a50)+':\x20'+((_0x35d04a===null||_0x35d04a===void 0x0?void 0x0:_0x35d04a[_0x2e87b5(0x194)])||String(_0x35d04a)));}if(_0x20ca6a[_0x2e87b5(0x2ed)]===0x0)return _0x2e87b5(0x1ca)+_0x417163+'\x20dimension\x20request(s)';else{if(_0x417163>0x0)return'Processed\x20'+_0x417163+_0x2e87b5(0x3db)+_0x20ca6a['length']+_0x2e87b5(0x408)+_0x20ca6a[_0x2e87b5(0x2da)](';\x20');else throw new Error(_0x2e87b5(0x41c)+_0x20ca6a[_0x2e87b5(0x2da)](';\x20'));}}async function setColumnWidthInternal(_0x4f4694,_0x5d7363,_0x2485d9,_0x705011,_0x4f0aad,_0xc73b5f){const _0x1c8f37=_0x4437f9;let _0x3b0d37,_0x214e96;if(/^[A-Z]+:[A-Z]+$/[_0x1c8f37(0x2be)](_0x705011)){const [_0x10f38c,_0x4e25da]=_0x705011[_0x1c8f37(0x2ad)](':');_0x3b0d37=columnLetterToNumber(_0x10f38c),_0x214e96=columnLetterToNumber(_0x4e25da);}else{const _0x4c5d20=_0xc73b5f[_0x1c8f37(0x1c1)](_0x705011)[_0x1c8f37(0x1c1)]();_0x3b0d37=_0x4c5d20[_0x1c8f37(0x353)],_0x214e96=_0x4c5d20['endColumn'];}const _0x216e13=_0x214e96-_0x3b0d37+0x1,_0x55120a=_0xc73b5f['getMaxRows']();if(Array[_0x1c8f37(0x351)](_0x4f0aad)){if(_0x4f0aad['length']!==_0x216e13)throw new Error(_0x1c8f37(0x45a)+_0x4f0aad[_0x1c8f37(0x2ed)]+_0x1c8f37(0x3f1)+_0x216e13+')');for(let _0x42868c=0x0;_0x42868c<_0x216e13;_0x42868c++)_0x4f4694[_0x1c8f37(0x314)](_univerjs_sheets[_0x1c8f37(0x455)]['id'],{'unitId':_0x5d7363,'subUnitId':_0x2485d9,'ranges':[{'startColumn':_0x3b0d37+_0x42868c,'endColumn':_0x3b0d37+_0x42868c,'startRow':0x0,'endRow':_0x55120a-0x1}],'value':_0x4f0aad[_0x42868c]});}else _0x4f4694[_0x1c8f37(0x314)](_univerjs_sheets[_0x1c8f37(0x455)]['id'],{'unitId':_0x5d7363,'subUnitId':_0x2485d9,'ranges':[{'startColumn':_0x3b0d37,'endColumn':_0x214e96,'startRow':0x0,'endRow':_0x55120a-0x1}],'value':_0x4f0aad});}async function setRowHeightInternal(_0x3f6c67,_0x245d87,_0x4e4b33,_0x28365e,_0x3ff70c,_0x85e095){const _0x205484=_0x4437f9;let _0x5a6765,_0x12b5f6;if(/^\d+:\d+$/[_0x205484(0x2be)](_0x28365e)){const [_0x5dcd13,_0x22876e]=_0x28365e[_0x205484(0x2ad)](':');_0x5a6765=Number[_0x205484(0x374)](_0x5dcd13)-0x1,_0x12b5f6=Number['parseInt'](_0x22876e)-0x1;}else{const _0x304c8f=_0x85e095[_0x205484(0x1c1)](_0x28365e)[_0x205484(0x1c1)]();_0x5a6765=_0x304c8f[_0x205484(0x213)],_0x12b5f6=_0x304c8f[_0x205484(0x2c0)];}const _0x4d8f01=_0x12b5f6-_0x5a6765+0x1,_0x4cf7a8=_0x85e095['getMaxColumns']();if(Array['isArray'](_0x3ff70c)){if(_0x3ff70c[_0x205484(0x2ed)]!==_0x4d8f01)throw new Error(_0x205484(0x3ab)+_0x3ff70c[_0x205484(0x2ed)]+')\x20doesn\x27t\x20match\x20row\x20count\x20('+_0x4d8f01+')');for(let _0xac23d5=0x0;_0xac23d5<_0x4d8f01;_0xac23d5++)await _0x3f6c67[_0x205484(0x314)](_univerjs_sheets[_0x205484(0x182)]['id'],{'unitId':_0x245d87,'subUnitId':_0x4e4b33,'ranges':[{'startRow':_0x5a6765+_0xac23d5,'endRow':_0x5a6765+_0xac23d5,'startColumn':0x0,'endColumn':_0x4cf7a8-0x1}],'value':_0x3ff70c[_0xac23d5]});}else await _0x3f6c67[_0x205484(0x314)](_univerjs_sheets['SetRowHeightCommand']['id'],{'unitId':_0x245d87,'subUnitId':_0x4e4b33,'ranges':[{'startRow':_0x5a6765,'endRow':_0x12b5f6,'startColumn':0x0,'endColumn':_0x4cf7a8-0x1}],'value':_0x3ff70c});}async function getActivityStatus(_0x54b626=![]){const _0x7dffbf=_0x4437f9,_0x8ecda=getUniverAPI();if(!_0x8ecda)throw new Error(_0x7dffbf(0x3f4));const _0x4555cc=_0x8ecda[_0x7dffbf(0x39e)]();if(!_0x4555cc)throw new Error(_0x7dffbf(0x35d));const _0x5a91e0=_0x4555cc[_0x7dffbf(0x392)](),_0xbe16d7=_0x5a91e0[_0x7dffbf(0x2ed)],_0x1b092e=_0x5a91e0['slice'](0x0,0x32)['map'](_0x31e610=>_0x31e610['getSheetName']()),_0x3acbfd=_0x4555cc[_0x7dffbf(0x2f7)](),_0x3a0c7a=_0x3acbfd[_0x7dffbf(0x38c)]();let _0x4397c6='';if(!isNodeRuntime())try{const _0x424bd8=_0x3acbfd[_0x7dffbf(0x3fb)]();_0x4397c6=_0x424bd8?_0x3acbfd[_0x7dffbf(0x1c1)](_0x424bd8[_0x7dffbf(0x213)],_0x424bd8['startColumn'],_0x424bd8[_0x7dffbf(0x2c0)],_0x424bd8[_0x7dffbf(0x442)])[_0x7dffbf(0x286)]():'';}catch(_0x46294a){console[_0x7dffbf(0x1b0)](_0x7dffbf(0x3ec),_0x46294a);}const _0x540cf0=_0x4555cc[_0x7dffbf(0x422)](),_0xd103f8=_0x540cf0?_0x540cf0['getA1Notation']():'',_0x394558=await getWorkbookLintErrors(_0x8ecda),_0x2287a2=[];_0x2287a2[_0x7dffbf(0x34e)]({'type':_0x7dffbf(0x424),'text':_0x7dffbf(0x273)+_0xbe16d7+_0x7dffbf(0x467)+JSON[_0x7dffbf(0x331)](_0x1b092e)+_0x7dffbf(0x2fc)+_0x3a0c7a+_0x7dffbf(0x24d)+_0x4397c6+_0x7dffbf(0x3a4)+_0xd103f8+'\x0a##\x20Error\x20Message\x0a```yaml\x0a'+_0x394558+'```\x0a'});if(_0x54b626&&isNodeRuntime())console[_0x7dffbf(0x1b0)](_0x7dffbf(0x357));if(_0x54b626&&!isNodeRuntime())try{const _0x162f1c=await takeScreenshotWithHtml2Canvas(getContainerElement());_0x2287a2[_0x7dffbf(0x34e)]({'type':_0x7dffbf(0x461),'data':_0x162f1c,'mimeType':_0x7dffbf(0x473)});}catch(_0x508cc1){console[_0x7dffbf(0x1b0)](_0x7dffbf(0x1de),_0x508cc1);}return _0x2287a2;}async function getRangeData(_0xd931a9,_0x270b90=![],_0x4843e9=![]){const _0x5b8260=_0x4437f9,_0x329385=getUniverAPI();if(!_0x329385)throw new Error(_0x5b8260(0x3f4));let _0x552870;if(typeof _0xd931a9===_0x5b8260(0x415))_0x552870=_0xd931a9[_0x5b8260(0x2ad)](',')[_0x5b8260(0x31a)](_0x246240=>_0x246240['trim']())[_0x5b8260(0x348)](_0x2383db=>_0x2383db['length']>0x0);else{if(Array['isArray'](_0xd931a9))_0x552870=_0xd931a9[_0x5b8260(0x348)](_0x3d52a7=>typeof _0x3d52a7==='string'&&_0x3d52a7[_0x5b8260(0x2fe)]()['length']>0x0);else throw new TypeError(_0x5b8260(0x25d));}const _0x3972fa=[],_0x2c3333=_0x329385[_0x5b8260(0x39e)]();if(!_0x2c3333)throw new Error(_0x5b8260(0x35d));const _0x2c08a5=_0x2c3333[_0x5b8260(0x2f7)]();for(const _0x1de2de of _0x552870){const _0x39126b=_0x2c08a5[_0x5b8260(0x1c1)](_0x1de2de),_0x481502=_0x39126b[_0x5b8260(0x471)](),_0x5938ec=_0x39126b[_0x5b8260(0x43e)](),_0x2a53b8=_0x39126b[_0x5b8260(0x217)](),_0x2e70a0=_0x39126b[_0x5b8260(0x2ca)](),_0x19cf8f=_0x39126b[_0x5b8260(0x2e3)]();let _0x705930=[];const _0x487601=new Map();if(_0x4843e9)try{_0x705930=_0x39126b['getCellStyles']();}catch(_0x41e54c){console['warn'](_0x5b8260(0x299),_0x41e54c);}for(let _0x2b3c50=0x0;_0x2b3c50<_0x481502[_0x5b8260(0x2ed)];_0x2b3c50++)for(let _0x58dfcd=0x0;_0x58dfcd<_0x481502[_0x2b3c50][_0x5b8260(0x2ed)];_0x58dfcd++){var _0x77a99d;if(!_0x481502[_0x2b3c50][_0x58dfcd])continue;_0x481502[_0x2b3c50][_0x58dfcd]={'v':_0x5938ec[_0x2b3c50]&&_0x5938ec[_0x2b3c50][_0x58dfcd]!==void 0x0?_0x5938ec[_0x2b3c50][_0x58dfcd]:(_0x77a99d=_0x481502[_0x2b3c50][_0x58dfcd])===null||_0x77a99d===void 0x0?void 0x0:_0x77a99d['v']};if(_0x2a53b8[_0x2b3c50]&&_0x2a53b8[_0x2b3c50][_0x58dfcd])_0x481502[_0x2b3c50][_0x58dfcd]['f']=_0x2a53b8[_0x2b3c50][_0x58dfcd];if(_0x4843e9&&_0x705930[_0x2b3c50]&&_0x705930[_0x2b3c50][_0x58dfcd]){var _0x3eaf6d;const _0x4a0495=((_0x3eaf6d=_0x705930[_0x2b3c50][_0x58dfcd])===null||_0x3eaf6d===void 0x0?void 0x0:_0x3eaf6d[_0x5b8260(0x3a1)])||_0x705930[_0x2b3c50][_0x58dfcd];if(_0x4a0495)_0x481502[_0x2b3c50][_0x58dfcd]['c']=getStyleHash2(_0x4a0495,_0x487601);}}if(_0x270b90)try{const _0x1edd97=_0x39126b,_0x4d4173=isNodeRuntime()?'getScreenshotOnNode':'getScreenshot',_0x47b9ad=_0x4d4173==='getScreenshotOnNode'?_0x5b8260(0x1a9):_0x5b8260(0x1b3),_0x289479=_0x1edd97[_0x4d4173]||_0x1edd97[_0x47b9ad];if(typeof _0x289479!==_0x5b8260(0x40b))throw new Error(_0x5b8260(0x36d));const _0x2381a7=await _0x289479[_0x5b8260(0x26d)](_0x1edd97,{'includeHeaders':!![]});if(!_0x2381a7)throw new Error('No\x20screenshot\x20data\x20returned');const _0x1cf5c8=_0x2381a7['split'](',')[0x1];if(_0x1cf5c8&&_0x1cf5c8[_0x5b8260(0x2ed)]>0x64)_0x3972fa[_0x5b8260(0x34e)]({'type':_0x5b8260(0x461),'data':_0x1cf5c8,'mimeType':_0x5b8260(0x473)});else _0x3972fa[_0x5b8260(0x34e)]({'type':_0x5b8260(0x424),'text':'Failed\x20to\x20get\x20screenshot\x20for\x20range\x20'+_0x1de2de+_0x5b8260(0x3b5)});}catch(_0x24b1d0){_0x3972fa[_0x5b8260(0x34e)]({'type':'text','text':_0x5b8260(0x1ff)+_0x1de2de+_0x5b8260(0x205)+_0x24b1d0});}const _0xab0303=[_0x5b8260(0x33a)+_0x1de2de];if(_0x4843e9&&_0x487601[_0x5b8260(0x209)]>0x0){_0xab0303['push'](_0x5b8260(0x3d9));for(const [_0x220513,_0x5f1946]of _0x487601[_0x5b8260(0x44b)]())_0xab0303[_0x5b8260(0x34e)](_0x5f1946+':\x20'+_0x220513);}_0xab0303[_0x5b8260(0x34e)](_0x5b8260(0x47d));for(let _0x3b97da=0x0;_0x3b97da<_0x481502[_0x5b8260(0x2ed)];_0x3b97da++){const _0x178b2d=_0x481502[_0x3b97da],_0x1674aa=[];for(let _0x35e986=0x0;_0x35e986<_0x178b2d[_0x5b8260(0x2ed)];_0x35e986++){const _0xd0ae9e=_0x178b2d[_0x35e986];if(_0xd0ae9e==null)continue;const _0x40cb46=_0xd0ae9e['v'],_0x25b9cc=_0xd0ae9e['f'],_0x34235b=_0xd0ae9e['c'];if(_0x40cb46==null||_0x40cb46===''){if((!_0x25b9cc||_0x25b9cc===null)&&(!_0x4843e9||!_0x34235b||_0x34235b===null))continue;}const _0x4b12a5=[],_0x5cc17a=''+colIdxToExcel(_0x19cf8f+_0x35e986)+(_0x2e70a0+_0x3b97da+0x1);if(_0x40cb46!=null&&_0x40cb46!=='')_0x4b12a5['push']('v='+_0x40cb46);if(_0x25b9cc!=null)_0x4b12a5[_0x5b8260(0x34e)]('f='+_0x25b9cc);if(_0x4843e9&&_0x34235b)_0x4b12a5[_0x5b8260(0x34e)]('c='+_0x34235b);if(_0x4b12a5[_0x5b8260(0x2ed)]>0x0)_0x1674aa['push']('-\x20'+_0x5cc17a+':\x20'+_0x4b12a5['join'](';')+';');}if(_0x1674aa[_0x5b8260(0x2ed)]>0x0)_0xab0303['push']('-\x20Row\x20'+(_0x2e70a0+_0x3b97da+0x1)+'\x0a\x09'+_0x1674aa[_0x5b8260(0x2da)]('\x0a\x09'));else _0xab0303[_0x5b8260(0x34e)](_0x5b8260(0x379)+(_0x2e70a0+_0x3b97da+0x1)+_0x5b8260(0x427));}try{const _0x305988=await _0x39126b[_0x5b8260(0x202)]()||[],_0x18fd42=await _0x39126b['getDataValidationErrorAsync']()||[];(_0x305988[_0x5b8260(0x2ed)]>0x0||_0x18fd42['length']>0x0)&&(_0xab0303[_0x5b8260(0x34e)](_0x5b8260(0x222)),_0xab0303['push']('```yaml\x0a'+getLintErrors(_0x305988,_0x18fd42)+_0x5b8260(0x2f6)));}catch(_0x30e364){console[_0x5b8260(0x1b0)](_0x5b8260(0x45d),_0x30e364);}const _0x13d570=_0xab0303['join']('\x0a');_0x3972fa[_0x5b8260(0x347)]({'type':_0x5b8260(0x424),'text':_0x13d570});}if(_0x3972fa[_0x5b8260(0x2ed)]===0x1)return[_0x3972fa[0x0]];return _0x3972fa;}async function scrollAndScreenshot(_0x4ee4eb){const _0x28221b=_0x4437f9,_0x56775d=getUniverAPI();if(!_0x56775d)throw new Error(_0x28221b(0x3f4));const _0x5ac6d3=_0x56775d['getActiveWorkbook']();if(!_0x5ac6d3)throw new Error('No\x20active\x20workbook');const _0x6e9c40=_0x5ac6d3[_0x28221b(0x2f7)](),_0x5593bf=_0x6e9c40[_0x28221b(0x1c1)](_0x4ee4eb);_0x6e9c40['scrollToCell'](_0x5593bf[_0x28221b(0x2ca)](),_0x5593bf[_0x28221b(0x2e3)]());try{const _0x53ffc3=await takeScreenshotWithHtml2Canvas(getContainerElement());return[{'type':_0x28221b(0x424),'text':'Viewport\x20after\x20scrolling\x20to\x20'+_0x4ee4eb},{'type':_0x28221b(0x461),'data':_0x53ffc3,'mimeType':_0x28221b(0x473)}];}catch(_0x4a8088){throw new Error('Failed\x20to\x20take\x20screenshot\x20after\x20scrolling\x20to\x20'+_0x4ee4eb+':\x20'+_0x4a8088);}}const utilityTools=[{'name':_0x4437f9(0x1d2),'description':_0x4437f9(0x2ae),'inputSchema':_univerjs_pro_mcp['z']['object']({'keyword':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x1a0)](_0x4437f9(0x38b)),'find_by':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x1f8))}),'execute':async _0x2c32f4=>searchCells(_0x2c32f4['keyword'],_0x2c32f4[_0x4437f9(0x34f)])},{'name':_0x4437f9(0x42d),'description':_0x4437f9(0x2f9),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'source_range':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()['describe'](_0x4437f9(0x380)),'target_range':_univerjs_pro_mcp['z']['string']()[_0x4437f9(0x1a0)](_0x4437f9(0x459))}),'execute':async _0x51ba1e=>autoFill(_0x51ba1e[_0x4437f9(0x228)],_0x51ba1e[_0x4437f9(0x23a)])},{'name':_0x4437f9(0x344),'description':_0x4437f9(0x2b6),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'source_range':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x1d8)),'target_range':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x35a))}),'execute':async _0x349fc8=>formatBrush(_0x349fc8[_0x4437f9(0x228)],_0x349fc8[_0x4437f9(0x23a)])},{'name':_0x4437f9(0x2cb),'description':_0x4437f9(0x465),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'requests':_univerjs_pro_mcp['z']['array'](cellDimensionRequestSchema)[_0x4437f9(0x1a0)](_0x4437f9(0x334))}),'execute':async _0x18b65a=>setCellDimensions(_0x18b65a[_0x4437f9(0x272)])},{'name':'get_activity_status','description':'Get\x20workbook\x20UI\x20status.\x20Returns\x20total\x20sheet\x20count,\x20first\x2010\x20sheet\x20names,\x20current\x20active\x20sheet\x20name,\x20visible\x20range,\x20and\x20selection.\x20If\x20screenshot\x20is\x20True,\x20also\x20returns\x20a\x20screenshot.','inputSchema':_univerjs_pro_mcp['z']['object']({'screenshot':_univerjs_pro_mcp['z'][_0x4437f9(0x1e8)]()[_0x4437f9(0x41d)](![])[_0x4437f9(0x1a0)](_0x4437f9(0x24f))}),'execute':async _0x294706=>getActivityStatus(_0x294706[_0x4437f9(0x3d8)])},{'name':_0x4437f9(0x457),'description':_0x4437f9(0x2fa),'inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'range_a1':_univerjs_pro_mcp['z'][_0x4437f9(0x36c)]([_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)]('The\x20cell/range\x20in\x20A1\x20notation\x20(e.g.,\x20\x22A1\x22,\x20\x22B2:C3\x22)'),_univerjs_pro_mcp['z']['array'](_univerjs_pro_mcp['z']['string']())[_0x4437f9(0x1a0)](_0x4437f9(0x32e))])['describe'](_0x4437f9(0x1c0)),'return_screenshot':_univerjs_pro_mcp['z']['boolean']()['default'](![])[_0x4437f9(0x1a0)](_0x4437f9(0x436)),'return_style':_univerjs_pro_mcp['z']['boolean']()['default'](![])[_0x4437f9(0x1a0)](_0x4437f9(0x19e))}),'execute':async _0x14479b=>getRangeData(_0x14479b[_0x4437f9(0x46b)],_0x14479b[_0x4437f9(0x3e9)],_0x14479b[_0x4437f9(0x1a1)])},{'name':'scroll_and_screenshot','description':'Scroll\x20the\x20UI\x20so\x20the\x20specified\x20cell\x20is\x20at\x20the\x20top-left\x20of\x20the\x20viewport,\x20then\x20capture\x20and\x20return\x20a\x20screenshot.\x20By\x20default,\x20the\x20viewport\x20is\x20positioned\x20at\x20cell\x20A1.\x20Use\x20this\x20tool\x20to\x20scroll\x20to\x20a\x20different\x20cell\x20and\x20get\x20a\x20visual\x20snapshot\x20in\x20one\x20step.\x20This\x20is\x20a\x20UI\x20interaction\x20tool;\x20do\x20not\x20call\x20a\x20separate\x20screenshot\x20tool\x20after\x20using\x20this\x20one.','inputSchema':_univerjs_pro_mcp['z']['object']({'cell_a1':_univerjs_pro_mcp['z'][_0x4437f9(0x415)]()[_0x4437f9(0x1a0)](_0x4437f9(0x1cd))}),'execute':async _0x1056f4=>scrollAndScreenshot(_0x1056f4['cell_a1'])},{'name':'get_lint_errors','description':'Get\x20comprehensive\x20lint\x20errors\x20from\x20the\x20active\x20workbook,\x20including\x20formula\x20errors\x20and\x20data\x20validation\x20errors.\x20Returns\x20errors\x20grouped\x20by\x20sheet,\x20with\x20each\x20error\x20showing\x20the\x20cell\x20address\x20(e.g.,\x20\x22A1\x22)\x20and\x20a\x20description\x20of\x20the\x20issue.\x20If\x20there\x20are\x20more\x20than\x20200\x20errors,\x20only\x20the\x20first\x20200\x20will\x20be\x20shown\x20with\x20a\x20truncation\x20note.','inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({}),'execute':async()=>{return await getWorkbookLintErrors(getUniverAPI());}},{'name':'extract_formulas','description':'Extracts\x20all\x20unique\x20formulas\x20from\x20the\x20active\x20Excel\x20sheet,\x20along\x20with\x20their\x20usage\x20locations.\x20For\x20each\x20unique\x20formula,\x20it\x20provides\x20the\x20formula\x20string,\x20the\x20cell\x20of\x20its\x20first\x20occurrence\x20(in\x20A1\x20notation),\x20and\x20all\x20cell\x20ranges\x20where\x20this\x20formula\x20is\x20filled.','inputSchema':_univerjs_pro_mcp['z'][_0x4437f9(0x1a8)]({'sheets':_univerjs_pro_mcp['z'][_0x4437f9(0x3c1)](_univerjs_pro_mcp['z']['string']())[_0x4437f9(0x330)]()[_0x4437f9(0x1a0)](_0x4437f9(0x29a))}),'execute':async _0x3725ad=>{const _0x28dfd8=_0x4437f9,_0x193c23=getUniverAPI();if(!_0x193c23)throw new Error(_0x28dfd8(0x3f4));return await extractFormulas(_0x193c23,_0x3725ad[_0x28dfd8(0x192)]||[]);}}],allSheetTools=[...rangeOperationTools,...sheetManagementTools,...rowColumnOperationTools,...utilityTools,...conditionalFormattingTools,...dataValidationTools],IS_WORKER=typeof WorkerGlobalScope!=='undefined'&&self instanceof WorkerGlobalScope;let UniverSheetMCPPlugin=class UniverSheetMCPPlugin extends _univerjs_core[_0x4437f9(0x280)]{constructor(_0x37028d=defaultPluginConfig,_0x39d46f,_0x7728bf){const _0x207ae0=_0x4437f9;super(),this[_0x207ae0(0x1f9)]=_0x37028d,this[_0x207ae0(0x26a)]=_0x39d46f,this[_0x207ae0(0x2e1)]=_0x7728bf;const {..._0x11ad74}=(0x0,_univerjs_core[_0x207ae0(0x343)])({},defaultPluginConfig,this['_config']);this[_0x207ae0(0x2e1)][_0x207ae0(0x3c7)](SHEET_MCP_PLUGIN_CONFIG_KEY,_0x11ad74);}async[_0x4437f9(0x2c3)](){const _0x105e75=_0x4437f9,_0x4400c7=[[IStyleUsageAnalyzer,{'useClass':StyleUsageAnalyzer}],[ISizeUsageAnalyzer,{'useClass':SizeUsageAnalyzer}]],_0x3a32fc=IS_WORKER||this[_0x105e75(0x1f9)][_0x105e75(0x429)]?this['_injector']['get'](_univerjs_rpc['IRPCChannelService']):null;if(IS_WORKER||!this['_config'][_0x105e75(0x429)])_0x4400c7[_0x105e75(0x34e)]([IFormulaUsageAnalyzer,{'useClass':FormulaUsageAnalyzer}]);else{if(_0x3a32fc)_0x4400c7[_0x105e75(0x34e)]([IFormulaUsageAnalyzer,{'useFactory':()=>(0x0,_univerjs_rpc[_0x105e75(0x450)])(_0x3a32fc[_0x105e75(0x431)](FormulaUsageAnalyzerChannelName))}]);else _0x4400c7[_0x105e75(0x34e)]([IFormulaUsageAnalyzer,{'useClass':FormulaUsageAnalyzer}]);}_0x4400c7[_0x105e75(0x2d8)](_0x4fea4a=>this[_0x105e75(0x26a)][_0x105e75(0x319)](_0x4fea4a));if(IS_WORKER&&_0x3a32fc)_0x3a32fc[_0x105e75(0x40f)](FormulaUsageAnalyzerChannelName,(0x0,_univerjs_rpc[_0x105e75(0x393)])(this['_injector'][_0x105e75(0x480)](IFormulaUsageAnalyzer)));}['onReady'](){const _0x2b728f=_0x4437f9;if(IS_WORKER)return;const _0x329489=this[_0x2b728f(0x26a)][_0x2b728f(0x480)](_univerjs_pro_mcp[_0x2b728f(0x311)]);allSheetTools[_0x2b728f(0x2d8)](_0x56934a=>{const _0x68e85=_0x2b728f;_0x329489[_0x68e85(0x352)](_0x56934a);});}};_defineProperty(UniverSheetMCPPlugin,_0x4437f9(0x241),_0x4437f9(0x366)),_defineProperty(UniverSheetMCPPlugin,_0x4437f9(0x264),name),_defineProperty(UniverSheetMCPPlugin,_0x4437f9(0x312),version),_defineProperty(UniverSheetMCPPlugin,_0x4437f9(0x1da),_univerjs_core[_0x4437f9(0x3bd)][_0x4437f9(0x30c)]),UniverSheetMCPPlugin=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x4437f9(0x278)])(_univerjs_core[_0x4437f9(0x250)])),__decorateParam(0x2,_univerjs_core[_0x4437f9(0x3a3)])],UniverSheetMCPPlugin),exports['CellUsageAnalyzer']=CellUsageAnalyzer,exports[_0x4437f9(0x2d1)]=ICellUsageAnalyzer,exports[_0x4437f9(0x1c8)]=IFormulaUsageAnalyzer,exports['ISizeUsageAnalyzer']=ISizeUsageAnalyzer,exports[_0x4437f9(0x3e5)]=IStyleUsageAnalyzer,exports[_0x4437f9(0x389)]=SizeUsageAnalyzer,exports[_0x4437f9(0x2dc)]=StyleUsageAnalyzer,Object[_0x4437f9(0x3d0)](exports,_0x4437f9(0x38e),{'enumerable':!![],'get':function(){return UniverSheetMCPPlugin;}}),exports['allSheetTools']=allSheetTools,exports[_0x4437f9(0x375)]=conditionalFormattingTools,exports['dataValidationTools']=dataValidationTools,exports[_0x4437f9(0x3c4)]=toA1,exports[_0x4437f9(0x286)]=getA1Notation,exports[_0x4437f9(0x3aa)]=rangeOperationTools,exports[_0x4437f9(0x2e4)]=rowColumnOperationTools,exports['sheetManagementTools']=sheetManagementTools,exports[_0x4437f9(0x420)]=toA1$1,exports[_0x4437f9(0x409)]=utilityTools;
|
|
1
|
+
const _0x620e0f=_0x435a;(function(_0x5b7d4e,_0x552ba7){const _0xf2e4d1=_0x435a,_0x4b7d29=_0x5b7d4e();while(!![]){try{const _0x2587cf=-parseInt(_0xf2e4d1(0x407))/0x1*(-parseInt(_0xf2e4d1(0x374))/0x2)+-parseInt(_0xf2e4d1(0x3ac))/0x3*(parseInt(_0xf2e4d1(0x488))/0x4)+parseInt(_0xf2e4d1(0x3be))/0x5+parseInt(_0xf2e4d1(0x29c))/0x6+parseInt(_0xf2e4d1(0x3ee))/0x7+-parseInt(_0xf2e4d1(0x293))/0x8+parseInt(_0xf2e4d1(0x292))/0x9;if(_0x2587cf===_0x552ba7)break;else _0x4b7d29['push'](_0x4b7d29['shift']());}catch(_0x2e438){_0x4b7d29['push'](_0x4b7d29['shift']());}}}(_0x1175,0x61113),Object[_0x620e0f(0x373)](exports,Symbol[_0x620e0f(0x3b4)],{'value':_0x620e0f(0x333)}));var __create=Object[_0x620e0f(0x245)],__defProp=Object[_0x620e0f(0x373)],__getOwnPropDesc=Object[_0x620e0f(0x470)],__getOwnPropNames=Object[_0x620e0f(0x490)],__getProtoOf=Object[_0x620e0f(0x3d5)],__hasOwnProp=Object[_0x620e0f(0x3b3)][_0x620e0f(0x355)],__copyProps=(_0x4ad654,_0x152a40,_0x166825,_0x4ae1be)=>{const _0x3b9a33=_0x620e0f;if(_0x152a40&&typeof _0x152a40===_0x3b9a33(0x435)||typeof _0x152a40===_0x3b9a33(0x273))for(var _0x18a77d=__getOwnPropNames(_0x152a40),_0x31dad8=0x0,_0xd6deff=_0x18a77d[_0x3b9a33(0x254)],_0x4da039;_0x31dad8<_0xd6deff;_0x31dad8++){_0x4da039=_0x18a77d[_0x31dad8],!__hasOwnProp[_0x3b9a33(0x4a2)](_0x4ad654,_0x4da039)&&_0x4da039!==_0x166825&&__defProp(_0x4ad654,_0x4da039,{'get':(_0x57be67=>_0x152a40[_0x57be67])['bind'](null,_0x4da039),'enumerable':!(_0x4ae1be=__getOwnPropDesc(_0x152a40,_0x4da039))||_0x4ae1be['enumerable']});}return _0x4ad654;},__toESM=(_0x177934,_0x2af789,_0x5f40a8)=>(_0x5f40a8=_0x177934!=null?__create(__getProtoOf(_0x177934)):{},__copyProps(_0x2af789||!_0x177934||!_0x177934['__esModule']?__defProp(_0x5f40a8,_0x620e0f(0x2f7),{'value':_0x177934,'enumerable':!![]}):_0x5f40a8,_0x177934));let _univerjs_pro_mcp=require('@univerjs-pro/mcp'),_univerjs_core=require('@univerjs/core'),_univerjs_rpc=require('@univerjs/rpc'),_univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_sheets_conditional_formatting=require('@univerjs/sheets-conditional-formatting'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_ui=require('@univerjs/ui'),_univerjs_sheets_data_validation=require('@univerjs/sheets-data-validation'),html2canvas_pro=require('html2canvas-pro');html2canvas_pro=__toESM(html2canvas_pro);let yaml=require('yaml');yaml=__toESM(yaml);var name='@univerjs-pro/sheets-mcp',version=_0x620e0f(0x459);const SHEET_MCP_PLUGIN_CONFIG_KEY=_0x620e0f(0x3d8),configSymbol=Symbol(SHEET_MCP_PLUGIN_CONFIG_KEY),defaultPluginConfig={'enableWorker':![]};function __decorateParam(_0x17929c,_0x5c2f76){return function(_0x257478,_0x3ab2d8){_0x5c2f76(_0x257478,_0x3ab2d8,_0x17929c);};}function __decorate(_0x53bbff,_0x2d623c,_0x272419,_0x215dbe){const _0xeabfbd=_0x620e0f;var _0x20b03f=arguments['length'],_0x20a464=_0x20b03f<0x3?_0x2d623c:_0x215dbe===null?_0x215dbe=Object[_0xeabfbd(0x470)](_0x2d623c,_0x272419):_0x215dbe,_0x20642d;if(typeof Reflect===_0xeabfbd(0x435)&&typeof Reflect[_0xeabfbd(0x3c2)]===_0xeabfbd(0x273))_0x20a464=Reflect[_0xeabfbd(0x3c2)](_0x53bbff,_0x2d623c,_0x272419,_0x215dbe);else{for(var _0x1c2e6d=_0x53bbff[_0xeabfbd(0x254)]-0x1;_0x1c2e6d>=0x0;_0x1c2e6d--)if(_0x20642d=_0x53bbff[_0x1c2e6d])_0x20a464=(_0x20b03f<0x3?_0x20642d(_0x20a464):_0x20b03f>0x3?_0x20642d(_0x2d623c,_0x272419,_0x20a464):_0x20642d(_0x2d623c,_0x272419))||_0x20a464;}return _0x20b03f>0x3&&_0x20a464&&Object['defineProperty'](_0x2d623c,_0x272419,_0x20a464),_0x20a464;}function toA1(_0x38893e){const _0x498f49=_0x620e0f;return{'formula':_0x38893e[_0x498f49(0x32f)],'firstOccurrence':getA1Notation$1([_0x38893e['firstOccurrence'][_0x498f49(0x23d)],_0x38893e['firstOccurrence']['endRow'],_0x38893e[_0x498f49(0x364)][_0x498f49(0x2d1)],_0x38893e[_0x498f49(0x364)]['endColumn']]),'filledRanges':_0x38893e['filledRanges']['map'](_0x2754e7=>getA1Notation$1([_0x2754e7[_0x498f49(0x23d)],_0x2754e7[_0x498f49(0x2a9)],_0x2754e7[_0x498f49(0x2d1)],_0x2754e7[_0x498f49(0x2ba)]]))['join'](',')};}function compressMatrixFlexible$1({getItem:_0x1d19dc,getId:_0x357c31,condition:_0x35b36f,rows:_0x4a55aa,cols:_0x11846f}){const _0x42b34a=_0x620e0f,_0x5eac08=[];let _0x32d2b6=[];for(let _0x5485e4=0x0;_0x5485e4<_0x4a55aa;_0x5485e4++){const _0x2c01cd=[];let _0x377cc5=0x0;while(_0x377cc5<_0x11846f){const _0xe92ee5=_0x1d19dc(_0x5485e4,_0x377cc5);if(!_0xe92ee5||!_0x35b36f(_0xe92ee5,_0x5485e4,_0x377cc5)){_0x377cc5++;continue;}const _0x540656=_0x357c31(_0xe92ee5),_0x2f3e91=_0x377cc5;while(_0x377cc5+0x1<_0x11846f&&((()=>{const _0x1e16bc=_0x1d19dc(_0x5485e4,_0x377cc5+0x1);return _0x1e16bc&&_0x35b36f(_0x1e16bc,_0x5485e4,_0x377cc5)&&_0x357c31(_0x1e16bc)===_0x540656;})()))_0x377cc5++;const _0x118cd0=_0x377cc5;let _0x4452ba=![];for(const _0x93babc of _0x32d2b6)if(_0x93babc['id']===_0x540656&&_0x93babc['c1']===_0x2f3e91&&_0x93babc['c2']===_0x118cd0){_0x93babc['r2']=_0x5485e4,_0x2c01cd[_0x42b34a(0x33e)](_0x93babc),_0x4452ba=!![];break;}if(!_0x4452ba)_0x2c01cd[_0x42b34a(0x33e)]({'r1':_0x5485e4,'c1':_0x2f3e91,'r2':_0x5485e4,'c2':_0x118cd0,'id':_0x540656});_0x377cc5++;}for(const _0x55ad2f of _0x32d2b6)if(!_0x2c01cd[_0x42b34a(0x28b)](_0x55ad2f))_0x5eac08[_0x42b34a(0x33e)](_0x55ad2f);_0x32d2b6=_0x2c01cd;}return _0x5eac08[_0x42b34a(0x33e)](..._0x32d2b6),_0x5eac08;}function getA1Notation$1([_0x1375c0,_0x26444b,_0x3ed032,_0x256afc]){if(_0x1375c0>_0x26444b)[_0x1375c0,_0x26444b]=[_0x26444b,_0x1375c0];if(_0x3ed032>_0x256afc)[_0x3ed032,_0x256afc]=[_0x256afc,_0x3ed032];const _0x4738ff=_0x4e3bde=>{const _0x5a7cbc=_0x435a;let _0x1d04c1='';for(;_0x4e3bde>0x0;_0x4e3bde=Math[_0x5a7cbc(0x401)]((_0x4e3bde-0x1)/0x1a))_0x1d04c1=String[_0x5a7cbc(0x40b)](0x41+(_0x4e3bde-0x1)%0x1a)+_0x1d04c1;return _0x1d04c1;},_0x1bf692=_0x4738ff(_0x3ed032+0x1)+(_0x1375c0+0x1),_0x58d3b6=_0x4738ff(_0x256afc+0x1)+(_0x26444b+0x1);return _0x1bf692===_0x58d3b6?_0x1bf692:_0x1bf692+':'+_0x58d3b6;}function groupRect$1(_0x37d9c5,_0x1a88e6){const _0x59a258=_0x620e0f,_0x5346aa={};for(const _0x13dc25 of _0x37d9c5){if(!_0x5346aa[_0x13dc25['id']]){let _0x3dc83e=![],_0x4b0116;for(let _0x1545d2=_0x13dc25['r1'];_0x1545d2<=_0x13dc25['r2']&&!_0x3dc83e;_0x1545d2++)for(let _0x5098bf=_0x13dc25['c1'];_0x5098bf<=_0x13dc25['c2']&&!_0x3dc83e;_0x5098bf++){const _0x1866fe=_0x1a88e6[_0x1545d2][_0x5098bf];_0x1866fe&&_0x1866fe['f']&&(_0x4b0116={'r1':_0x1545d2,'c1':_0x5098bf,'f':_0x1866fe['f']},_0x3dc83e=!![]);}_0x5346aa[_0x13dc25['id']]={'hash':_0x13dc25['id'],'ranges':[],'def':_0x4b0116?{'c1':_0x4b0116['c1'],'r1':_0x4b0116['r1'],'f':_0x4b0116['f']}:void 0x0};}_0x5346aa[_0x13dc25['id']][_0x59a258(0x324)]['push']({'startRow':_0x13dc25['r1'],'endRow':_0x13dc25['r2'],'startColumn':_0x13dc25['c1'],'endColumn':_0x13dc25['c2']});}return Object['values'](_0x5346aa)['sort']((_0x485c40,_0x2936a2)=>{const _0x539e25=_0x59a258;if(_0x485c40[_0x539e25(0x49e)]&&_0x2936a2[_0x539e25(0x49e)])return _0x485c40[_0x539e25(0x49e)]['r1']-_0x2936a2[_0x539e25(0x49e)]['r1']||_0x485c40[_0x539e25(0x49e)]['c1']-_0x2936a2['def']['c1'];if(_0x485c40[_0x539e25(0x49e)])return-0x1;if(_0x2936a2[_0x539e25(0x49e)])return 0x1;return 0x0;})[_0x59a258(0x481)](_0x132e2f=>{const _0x555ace=_0x59a258;return{'firstOccurrence':{'startRow':_0x132e2f[_0x555ace(0x49e)]['r1'],'endRow':_0x132e2f[_0x555ace(0x49e)]['r1'],'startColumn':_0x132e2f[_0x555ace(0x49e)]['c1'],'endColumn':_0x132e2f[_0x555ace(0x49e)]['c1']},'formula':_0x132e2f['def']['f'],'filledRanges':_0x132e2f[_0x555ace(0x324)]};});}const FormulaUsageAnalyzerChannelName='sheets.mcp.formula-usage-analyzer',IFormulaUsageAnalyzer=(0x0,_univerjs_core[_0x620e0f(0x2b1)])(_0x620e0f(0x3f0));let FormulaUsageAnalyzer=class FormulaUsageAnalyzer{constructor(_0x41f97b,_0x28513c){const _0x48a322=_0x620e0f;this[_0x48a322(0x442)]=_0x41f97b,this[_0x48a322(0x41f)]=_0x28513c;}['getAllFormulaUsages'](_0x58850b){const _0x224568=_0x620e0f;var _0x583166;const _0x2118d7=_0x58850b[_0x224568(0x254)],_0x4030fa=((_0x583166=_0x58850b[0x0])===null||_0x583166===void 0x0?void 0x0:_0x583166[_0x224568(0x254)])||0x0,_0x16686e={};for(let _0x1538e1=0x0;_0x1538e1<_0x2118d7;_0x1538e1++)for(let _0x1276f6=0x0;_0x1276f6<_0x4030fa;_0x1276f6++){const _0x5e1fd3=_0x58850b[_0x1538e1][_0x1276f6];if(_0x5e1fd3&&_0x5e1fd3['f']&&_0x5e1fd3['si']&&!_0x16686e[_0x5e1fd3['si']])_0x16686e[_0x5e1fd3['si']]=this[_0x224568(0x2b2)](_0x5e1fd3['f'],-_0x1276f6,-_0x1538e1);}const _0x8eb86=[];for(let _0x324d46=0x0;_0x324d46<_0x2118d7;_0x324d46++){_0x8eb86[_0x324d46]=[];for(let _0x5f5a49=0x0;_0x5f5a49<_0x4030fa;_0x5f5a49++){const _0x253992=_0x58850b[_0x324d46][_0x5f5a49];if(_0x253992&&(_0x253992['f']||_0x253992['si'])){let _0xd6993f;if(_0x253992['si']&&_0x16686e[_0x253992['si']])_0xd6993f=_0x16686e[_0x253992['si']];else _0xd6993f=this[_0x224568(0x2b2)](_0x253992['f'],-_0x5f5a49,-_0x324d46);_0x8eb86[_0x324d46][_0x5f5a49]={..._0x253992,'hash':_0xd6993f};}else _0x8eb86[_0x324d46][_0x5f5a49]=_0x253992;}}return groupRect$1(compressMatrixFlexible$1({'getItem':(_0x5e3de6,_0x66388c)=>_0x8eb86[_0x5e3de6][_0x66388c],'getId':_0x483ca1=>(_0x483ca1===null||_0x483ca1===void 0x0?void 0x0:_0x483ca1[_0x224568(0x320)])||'','condition':_0x5b0e72=>!!_0x5b0e72&&!!_0x5b0e72[_0x224568(0x320)],'rows':_0x2118d7,'cols':_0x4030fa}),_0x8eb86);}[_0x620e0f(0x2b2)](_0x150a5d,_0x3626fa,_0x921fda,_0x24ea14=![]){const _0xad41a9=_0x620e0f,_0x15ac66=this['_lexerTreeBuilder'][_0xad41a9(0x24f)](_0x150a5d);if(_0x15ac66==null)return _0x150a5d;const _0x3b6598=[];for(let _0x57cfe6=0x0,_0x34a24a=_0x15ac66[_0xad41a9(0x254)];_0x57cfe6<_0x34a24a;_0x57cfe6++){const _0x331817=_0x15ac66[_0x57cfe6];if(typeof _0x331817==='string'||_0x331817[_0xad41a9(0x270)]!==_univerjs_engine_formula['sequenceNodeType']['REFERENCE']){_0x3b6598[_0xad41a9(0x33e)](_0x331817);continue;}const {token:_0x2b31ca}=_0x331817,_0x3dba48=(0x0,_univerjs_engine_formula[_0xad41a9(0x3a5)])(_0x2b31ca),{sheetName:_0x4376ba,unitId:_0x254c2b}=_0x3dba48;let _0x4a5b44=_0x3dba48['range'];if(!_0x24ea14&&_0x4a5b44[_0xad41a9(0x3d7)]===_univerjs_core[_0xad41a9(0x4a3)][_0xad41a9(0x23e)]&&_0x4a5b44[_0xad41a9(0x495)]===_univerjs_core[_0xad41a9(0x4a3)][_0xad41a9(0x23e)]){_0x3b6598[_0xad41a9(0x33e)](_0x331817);continue;}else _0x4a5b44=(0x0,_univerjs_core['moveRangeByOffset'])(_0x4a5b44,_0x3626fa,_0x921fda,_0x24ea14);let _0x57dc81='';_0x57dc81=(0x0,_univerjs_engine_formula[_0xad41a9(0x2df)])({'range':_0x4a5b44,'unitId':_0x254c2b,'sheetName':_0x4376ba}),_0x3b6598[_0xad41a9(0x33e)]({..._0x331817,'token':_0x57dc81});}return'='+(0x0,_univerjs_engine_formula[_0xad41a9(0x43d)])(_0x3b6598);}['moveFormulaRefOffset'](_0xbcf7f3,_0xb838f9,_0x15d5f1,_0x1819ec=![]){const _0x1a0531=_0x620e0f;return this[_0x1a0531(0x41f)][_0x1a0531(0x428)](_0xbcf7f3,_0xb838f9,_0x15d5f1,_0x1819ec);}};FormulaUsageAnalyzer=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_engine_formula[_0x620e0f(0x475)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_engine_formula[_0x620e0f(0x21d)]))],FormulaUsageAnalyzer);function _typeof(_0xb37f6c){'@babel/helpers - typeof';const _0x51ad13=_0x620e0f;return _typeof=_0x51ad13(0x273)==typeof Symbol&&_0x51ad13(0x450)==typeof Symbol[_0x51ad13(0x22c)]?function(_0xc953f8){return typeof _0xc953f8;}:function(_0x59a926){const _0x1c873b=_0x51ad13;return _0x59a926&&'function'==typeof Symbol&&_0x59a926[_0x1c873b(0x356)]===Symbol&&_0x59a926!==Symbol[_0x1c873b(0x3b3)]?'symbol':typeof _0x59a926;},_typeof(_0xb37f6c);}function toPrimitive(_0x51aa26,_0x4cb781){const _0x17f447=_0x620e0f;if(_0x17f447(0x435)!=_typeof(_0x51aa26)||!_0x51aa26)return _0x51aa26;var _0x1447a7=_0x51aa26[Symbol[_0x17f447(0x40a)]];if(void 0x0!==_0x1447a7){var _0x585475=_0x1447a7[_0x17f447(0x4a2)](_0x51aa26,_0x4cb781||_0x17f447(0x2f7));if(_0x17f447(0x435)!=_typeof(_0x585475))return _0x585475;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return('string'===_0x4cb781?String:Number)(_0x51aa26);}function toPropertyKey(_0x2ed99f){const _0x151166=_0x620e0f;var _0x230ed0=toPrimitive(_0x2ed99f,_0x151166(0x370));return _0x151166(0x450)==_typeof(_0x230ed0)?_0x230ed0:_0x230ed0+'';}function _defineProperty(_0x202d31,_0x48fb9e,_0x51e1f5){return(_0x48fb9e=toPropertyKey(_0x48fb9e))in _0x202d31?Object['defineProperty'](_0x202d31,_0x48fb9e,{'value':_0x51e1f5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x202d31[_0x48fb9e]=_0x51e1f5,_0x202d31;}function columnIndexToLetter(_0x1bd1e9){const _0x3d5f5b=_0x620e0f;let _0x42b4ba='',_0x244d9a=_0x1bd1e9+0x1;while(_0x244d9a>0x0){const _0x264984=(_0x244d9a-0x1)%0x1a;_0x42b4ba=String[_0x3d5f5b(0x40b)](0x41+_0x264984)+_0x42b4ba,_0x244d9a=Math[_0x3d5f5b(0x401)]((_0x244d9a-0x1)/0x1a);}return _0x42b4ba;}function _0x435a(_0x53bfcf,_0x211ae4){_0x53bfcf=_0x53bfcf-0x1e3;const _0x117545=_0x1175();let _0x435a2a=_0x117545[_0x53bfcf];return _0x435a2a;}function columnRangeToA1(_0x567a5b){const _0x3e3bc5=_0x620e0f,_0x673f6b=columnIndexToLetter(_0x567a5b[_0x3e3bc5(0x2d1)]),_0x1aaeb7=columnIndexToLetter(_0x567a5b[_0x3e3bc5(0x2ba)]);return _0x673f6b===_0x1aaeb7?_0x673f6b:_0x673f6b+':'+_0x1aaeb7;}function rowRangeToA1(_0x9bb224){const _0x40f65e=_0x620e0f,_0x20243e=_0x9bb224[_0x40f65e(0x23d)]+0x1,_0x5407a8=_0x9bb224[_0x40f65e(0x2a9)]+0x1;return _0x20243e===_0x5407a8?''+_0x20243e:_0x20243e+':'+_0x5407a8;}function applyMaxCount$1(_0x22c44d,_0x44e337){const _0x321397=_0x620e0f;if(_0x44e337===void 0x0||_0x44e337<=0x0||_0x22c44d[_0x321397(0x254)]<=_0x44e337)return _0x22c44d;return _0x22c44d[_0x321397(0x289)](0x0,_0x44e337);}function groupConsecutiveRanges(_0x46532f){const _0x544874=_0x620e0f;if(_0x46532f[_0x544874(0x254)]===0x0)return[];const _0x1acd1d=[];let _0x1c37d0=_0x46532f[0x0],_0x14e6b1=_0x46532f[0x0];for(let _0x310699=0x1;_0x310699<_0x46532f[_0x544874(0x254)];_0x310699++)if(_0x46532f[_0x310699]===_0x14e6b1+0x1)_0x14e6b1=_0x46532f[_0x310699];else _0x1acd1d['push']({'startRow':_0x1c37d0,'endRow':_0x14e6b1}),_0x1c37d0=_0x46532f[_0x310699],_0x14e6b1=_0x46532f[_0x310699];return _0x1acd1d[_0x544874(0x33e)]({'startRow':_0x1c37d0,'endRow':_0x14e6b1}),_0x1acd1d;}function groupConsecutiveColumnRanges(_0x30c879){const _0x2ec03c=_0x620e0f;if(_0x30c879[_0x2ec03c(0x254)]===0x0)return[];const _0x4b3368=[];let _0x511d02=_0x30c879[0x0],_0x53d980=_0x30c879[0x0];for(let _0x1a3b07=0x1;_0x1a3b07<_0x30c879[_0x2ec03c(0x254)];_0x1a3b07++)if(_0x30c879[_0x1a3b07]===_0x53d980+0x1)_0x53d980=_0x30c879[_0x1a3b07];else _0x4b3368['push']({'startColumn':_0x511d02,'endColumn':_0x53d980}),_0x511d02=_0x30c879[_0x1a3b07],_0x53d980=_0x30c879[_0x1a3b07];return _0x4b3368[_0x2ec03c(0x33e)]({'startColumn':_0x511d02,'endColumn':_0x53d980}),_0x4b3368;}const ISizeUsageAnalyzer=(0x0,_univerjs_core[_0x620e0f(0x2b1)])(_0x620e0f(0x200));var SizeUsageAnalyzer=class{constructor(){const _0x4a7d55=_0x620e0f;_defineProperty(this,_0x4a7d55(0x336),void 0x0);}['updateConfig'](_0x3df9f7){const _0x398047=_0x620e0f;this['_maxCount']=_0x3df9f7===null||_0x3df9f7===void 0x0?void 0x0:_0x3df9f7[_0x398047(0x479)];}[_0x620e0f(0x41a)](_0x560919,_0x391d60,_0x155a7e,_0x2a56d4,_0x576ece){const _0x356e76=_0x620e0f,_0x5171e1=_0x155a7e!==null&&_0x155a7e!==void 0x0?_0x155a7e:_0x560919[_0x356e76(0x4d5)]()-0x1,_0x340738=_0x576ece!==null&&_0x576ece!==void 0x0?_0x576ece:_0x560919[_0x356e76(0x30e)]()-0x1,_0x4ada2f=new Map();for(let _0x41d233=_0x391d60!==null&&_0x391d60!==void 0x0?_0x391d60:0x0;_0x41d233<=_0x5171e1;_0x41d233++){const _0x32d5ac=Math[_0x356e76(0x266)](_0x560919[_0x356e76(0x4c1)](_0x41d233));if(!_0x4ada2f['has'](_0x32d5ac))_0x4ada2f[_0x356e76(0x3e8)](_0x32d5ac,[]);_0x4ada2f[_0x356e76(0x296)](_0x32d5ac)[_0x356e76(0x33e)](_0x41d233);}const _0x2c6286=new Map();for(let _0x56e740=_0x2a56d4!==null&&_0x2a56d4!==void 0x0?_0x2a56d4:0x0;_0x56e740<=_0x340738;_0x56e740++){const _0x335bda=Math['round'](_0x560919['getColumnWidth'](_0x56e740));if(!_0x2c6286[_0x356e76(0x24a)](_0x335bda))_0x2c6286[_0x356e76(0x3e8)](_0x335bda,[]);_0x2c6286[_0x356e76(0x296)](_0x335bda)[_0x356e76(0x33e)](_0x56e740);}const _0x1c76a=[],_0x111c72=Array['from'](_0x4ada2f[_0x356e76(0x38c)]())['sort']((_0x414f6d,_0x34649e)=>_0x414f6d[0x0]-_0x34649e[0x0]);for(const [_0x58e698,_0x3f3c67]of _0x111c72)_0x1c76a[_0x356e76(0x33e)]({'value':_0x58e698,'ranges':groupConsecutiveRanges(_0x3f3c67)});const _0x11868c=[],_0x5cd133=Array[_0x356e76(0x221)](_0x2c6286[_0x356e76(0x38c)]())['sort']((_0x40fc60,_0x3b45e1)=>_0x40fc60[0x0]-_0x3b45e1[0x0]);for(const [_0x431576,_0x4a7b9e]of _0x5cd133)_0x11868c['push']({'value':_0x431576,'ranges':groupConsecutiveColumnRanges(_0x4a7b9e)});return{'widths':applyMaxCount$1(_0x11868c,this[_0x356e76(0x336)]),'heights':applyMaxCount$1(_0x1c76a,this[_0x356e76(0x336)])};}[_0x620e0f(0x2fb)](_0x55b1e5){const _0x1a82e6=_0x620e0f;return{'widths':_0x55b1e5['widths'][_0x1a82e6(0x481)](_0x3bcb95=>({'value':_0x3bcb95[_0x1a82e6(0x238)],'ranges':_0x3bcb95[_0x1a82e6(0x324)][_0x1a82e6(0x481)](columnRangeToA1)[_0x1a82e6(0x344)](',\x20')})),'heights':_0x55b1e5['heights'][_0x1a82e6(0x481)](_0x2b148f=>({'value':_0x2b148f[_0x1a82e6(0x238)],'ranges':_0x2b148f[_0x1a82e6(0x324)]['map'](rowRangeToA1)[_0x1a82e6(0x344)](',\x20')}))};}};function compressMatrixFlexible({getItem:_0xc8b0bf,getId:_0x4834d5,condition:_0x5f3277,rows:_0x2e5667,cols:_0x5da21d}){const _0x360280=_0x620e0f,_0x907a0e=[];let _0xe9b223=[];for(let _0xdfef68=0x0;_0xdfef68<_0x2e5667;_0xdfef68++){const _0x1b4f36=[];let _0x19fb44=0x0;while(_0x19fb44<_0x5da21d){const _0x2e085a=_0xc8b0bf(_0xdfef68,_0x19fb44);if(!_0x2e085a||!_0x5f3277(_0x2e085a,_0xdfef68,_0x19fb44)){_0x19fb44++;continue;}const _0x504e2e=_0x4834d5(_0x2e085a),_0x2cc9bb=_0x19fb44;while(_0x19fb44+0x1<_0x5da21d&&((()=>{const _0x4e4dd4=_0xc8b0bf(_0xdfef68,_0x19fb44+0x1);return _0x4e4dd4&&_0x5f3277(_0x4e4dd4,_0xdfef68,_0x19fb44)&&_0x4834d5(_0x4e4dd4)===_0x504e2e;})()))_0x19fb44++;const _0x498e1a=_0x19fb44;let _0x2d9808=![];for(const _0x1cfb36 of _0xe9b223)if(_0x1cfb36['id']===_0x504e2e&&_0x1cfb36['c1']===_0x2cc9bb&&_0x1cfb36['c2']===_0x498e1a){_0x1cfb36['r2']=_0xdfef68,_0x1b4f36[_0x360280(0x33e)](_0x1cfb36),_0x2d9808=!![];break;}if(!_0x2d9808)_0x1b4f36[_0x360280(0x33e)]({'r1':_0xdfef68,'c1':_0x2cc9bb,'r2':_0xdfef68,'c2':_0x498e1a,'id':_0x504e2e});_0x19fb44++;}for(const _0x4f1552 of _0xe9b223)if(!_0x1b4f36['includes'](_0x4f1552))_0x907a0e[_0x360280(0x33e)](_0x4f1552);_0xe9b223=_0x1b4f36;}return _0x907a0e[_0x360280(0x33e)](..._0xe9b223),_0x907a0e;}function getA1Notation([_0x400f5c,_0x1e9496,_0x4c9d8a,_0x1bdb5f]){if(_0x400f5c>_0x1e9496)[_0x400f5c,_0x1e9496]=[_0x1e9496,_0x400f5c];if(_0x4c9d8a>_0x1bdb5f)[_0x4c9d8a,_0x1bdb5f]=[_0x1bdb5f,_0x4c9d8a];const _0x1c32a8=_0x542680=>{const _0x239e94=_0x435a;let _0x213a51='';for(;_0x542680>0x0;_0x542680=Math['floor']((_0x542680-0x1)/0x1a))_0x213a51=String[_0x239e94(0x40b)](0x41+(_0x542680-0x1)%0x1a)+_0x213a51;return _0x213a51;},_0x1825ef=_0x1c32a8(_0x4c9d8a+0x1)+(_0x400f5c+0x1),_0x9ef98d=_0x1c32a8(_0x1bdb5f+0x1)+(_0x1e9496+0x1);return _0x1825ef===_0x9ef98d?_0x1825ef:_0x1825ef+':'+_0x9ef98d;}function groupRect(_0xa6dbcb,_0x25119a){const _0x360af7=_0x620e0f,_0x40a938={};for(const _0x5c3527 of _0xa6dbcb){if(!_0x40a938[_0x5c3527['id']]){let _0x1b4d07=![],_0x218470;for(let _0x50cdb8=_0x5c3527['r1'];_0x50cdb8<=_0x5c3527['r2']&&!_0x1b4d07;_0x50cdb8++)for(let _0x4e11e5=_0x5c3527['c1'];_0x4e11e5<=_0x5c3527['c2']&&!_0x1b4d07;_0x4e11e5++){const _0x585f2f=_0x25119a[_0x50cdb8][_0x4e11e5];_0x585f2f&&_0x585f2f['hash']&&(_0x218470={'r1':_0x50cdb8,'c1':_0x4e11e5,'data':_0x585f2f},_0x1b4d07=!![]);}_0x40a938[_0x5c3527['id']]={'hash':_0x5c3527['id'],'ranges':[],'def':_0x218470?{'c1':_0x218470['c1'],'r1':_0x218470['r1'],'data':_0x218470[_0x360af7(0x1ed)]}:void 0x0};}_0x40a938[_0x5c3527['id']][_0x360af7(0x324)]['push']({'startRow':_0x5c3527['r1'],'endRow':_0x5c3527['r2'],'startColumn':_0x5c3527['c1'],'endColumn':_0x5c3527['c2']});}return Object['values'](_0x40a938)[_0x360af7(0x372)]((_0x2428ac,_0x212a05)=>{const _0x12e76e=_0x360af7;if(_0x2428ac[_0x12e76e(0x49e)]&&_0x212a05[_0x12e76e(0x49e)])return _0x2428ac[_0x12e76e(0x49e)]['r1']-_0x212a05[_0x12e76e(0x49e)]['r1']||_0x2428ac['def']['c1']-_0x212a05[_0x12e76e(0x49e)]['c1'];if(_0x2428ac[_0x12e76e(0x49e)])return-0x1;if(_0x212a05['def'])return 0x1;return 0x0;})[_0x360af7(0x481)](_0x42fd31=>{const _0x2ef9ec=_0x360af7;return{'dataHash':_0x42fd31['hash'],'firstOccurrence':{'startRow':_0x42fd31[_0x2ef9ec(0x49e)]['r1'],'endRow':_0x42fd31[_0x2ef9ec(0x49e)]['r1'],'startColumn':_0x42fd31[_0x2ef9ec(0x49e)]['c1'],'endColumn':_0x42fd31['def']['c1']},'filledRanges':_0x42fd31[_0x2ef9ec(0x324)]};});}const ICellUsageAnalyzer=(0x0,_univerjs_core[_0x620e0f(0x2b1)])(_0x620e0f(0x233));var CellUsageAnalyzer=class{[_0x620e0f(0x399)](_0x3c1a2c,_0x3a47a2){const _0x50e1fd=_0x620e0f;var _0x5a1cd7;const _0x37989e=_0x3c1a2c[_0x50e1fd(0x254)],_0x4d083a=((_0x5a1cd7=_0x3c1a2c[0x0])===null||_0x5a1cd7===void 0x0?void 0x0:_0x5a1cd7['length'])||0x0,_0x5b9b43=[];for(let _0x5b8ef1=0x0;_0x5b8ef1<_0x37989e;_0x5b8ef1++){_0x5b9b43[_0x5b8ef1]=[];for(let _0xfb77b2=0x0;_0xfb77b2<_0x4d083a;_0xfb77b2++){const _0x45590c=_0x3c1a2c[_0x5b8ef1][_0xfb77b2],_0x2e11f0=_0x3a47a2[_0x50e1fd(0x36f)](_0x45590c),_0x16de4a=_0x3a47a2[_0x50e1fd(0x447)](_0x2e11f0,_0x5b8ef1,_0xfb77b2);if(_0x16de4a)_0x5b9b43[_0x5b8ef1][_0xfb77b2]={..._0x45590c,'hash':_0x16de4a};else _0x5b9b43[_0x5b8ef1][_0xfb77b2]=_0x45590c;}}return groupRect(compressMatrixFlexible({'getItem':(_0x336a67,_0x5a0f63)=>_0x5b9b43[_0x336a67][_0x5a0f63],'getId':_0x2940f6=>(_0x2940f6===null||_0x2940f6===void 0x0?void 0x0:_0x2940f6[_0x50e1fd(0x320)])||'','condition':_0x5822ce=>!!_0x5822ce&&!!_0x5822ce[_0x50e1fd(0x320)],'rows':_0x37989e,'cols':_0x4d083a}),_0x5b9b43);}};const HORIZONTAL_ALIGN_MAP={[_univerjs_core[_0x620e0f(0x3e1)][_0x620e0f(0x3d2)]]:'unspec',[_univerjs_core[_0x620e0f(0x3e1)][_0x620e0f(0x4cc)]]:_0x620e0f(0x457),[_univerjs_core[_0x620e0f(0x3e1)][_0x620e0f(0x34d)]]:_0x620e0f(0x2d3),[_univerjs_core['HorizontalAlign'][_0x620e0f(0x3ae)]]:_0x620e0f(0x322),[_univerjs_core['HorizontalAlign'][_0x620e0f(0x380)]]:_0x620e0f(0x465),[_univerjs_core['HorizontalAlign'][_0x620e0f(0x2ce)]]:_0x620e0f(0x1f9),[_univerjs_core[_0x620e0f(0x3e1)]['DISTRIBUTED']]:_0x620e0f(0x403)},VERTICAL_ALIGN_MAP={[_univerjs_core[_0x620e0f(0x3f8)][_0x620e0f(0x3d2)]]:_0x620e0f(0x337),[_univerjs_core[_0x620e0f(0x3f8)]['TOP']]:_0x620e0f(0x4a1),[_univerjs_core[_0x620e0f(0x3f8)][_0x620e0f(0x2da)]]:'mid',[_univerjs_core[_0x620e0f(0x3f8)]['BOTTOM']]:_0x620e0f(0x27a)};var StyleExtractorCondition=class{constructor(_0x422c68,_0x1dbc52,_0x47212e){const _0x1ff7d7=_0x620e0f;this[_0x1ff7d7(0x438)]=_0x422c68,this[_0x1ff7d7(0x3e2)]=_0x1dbc52,this['worksheet']=_0x47212e;}['getData'](_0x5a752f){if(!_0x5a752f)return null;return _0x5a752f;}[_0x620e0f(0x447)](_0x17d4e9,_0x3e764d,_0x4e8ffe){const _0x23a8c9=_0x620e0f,_0x380334=[];if(_0x17d4e9===null||_0x17d4e9===void 0x0?void 0x0:_0x17d4e9['s']){const _0x209bb4=typeof _0x17d4e9['s']===_0x23a8c9(0x370)?this[_0x23a8c9(0x3e2)](_0x17d4e9['s']):_0x17d4e9['s'];if(_0x209bb4){var _0x19bb70,_0x1faf64,_0x29a245,_0x9bf46a,_0x440ccb;if(this[_0x23a8c9(0x438)][_0x23a8c9(0x42e)]&&_0x209bb4['ff'])_0x380334[_0x23a8c9(0x33e)](_0x23a8c9(0x4cd)+_0x209bb4['ff']);if(this[_0x23a8c9(0x438)][_0x23a8c9(0x3c7)]&&_0x209bb4['fs'])_0x380334[_0x23a8c9(0x33e)](_0x23a8c9(0x227)+_0x209bb4['fs']);if(this[_0x23a8c9(0x438)][_0x23a8c9(0x385)]&&_0x209bb4['bl']===_univerjs_core['BooleanNumber']['TRUE'])_0x380334[_0x23a8c9(0x33e)](_0x23a8c9(0x47d));if(this[_0x23a8c9(0x438)][_0x23a8c9(0x411)]&&_0x209bb4['it']===_univerjs_core['BooleanNumber']['TRUE'])_0x380334['push'](_0x23a8c9(0x1e3));if(this[_0x23a8c9(0x438)][_0x23a8c9(0x3ce)]&&((_0x19bb70=_0x209bb4['cl'])===null||_0x19bb70===void 0x0?void 0x0:_0x19bb70[_0x23a8c9(0x2b3)]))_0x380334['push'](_0x23a8c9(0x218)+_0x209bb4['cl'][_0x23a8c9(0x2b3)]);if(this[_0x23a8c9(0x438)][_0x23a8c9(0x4c4)]&&((_0x1faf64=_0x209bb4['bg'])===null||_0x1faf64===void 0x0?void 0x0:_0x1faf64[_0x23a8c9(0x2b3)]))_0x380334[_0x23a8c9(0x33e)](_0x23a8c9(0x20b)+_0x209bb4['bg'][_0x23a8c9(0x2b3)]);if(this[_0x23a8c9(0x438)][_0x23a8c9(0x3d9)]&&_0x209bb4['ht']!=null&&_0x209bb4['ht']!==_univerjs_core[_0x23a8c9(0x3e1)][_0x23a8c9(0x3d2)])_0x380334[_0x23a8c9(0x33e)]('ha:'+HORIZONTAL_ALIGN_MAP[_0x209bb4['ht']]);if(this[_0x23a8c9(0x438)][_0x23a8c9(0x3c8)]&&_0x209bb4['vt']!=null&&_0x209bb4['vt']!==_univerjs_core[_0x23a8c9(0x3f8)][_0x23a8c9(0x3d2)])_0x380334[_0x23a8c9(0x33e)]('va:'+VERTICAL_ALIGN_MAP[_0x209bb4['vt']]);if(this[_0x23a8c9(0x438)]['underline']&&((_0x29a245=_0x209bb4['ul'])===null||_0x29a245===void 0x0?void 0x0:_0x29a245['s'])===_univerjs_core[_0x23a8c9(0x382)]['TRUE']){var _0x11f15f;if(((_0x11f15f=_0x209bb4['ul']['t'])!==null&&_0x11f15f!==void 0x0?_0x11f15f:_univerjs_core[_0x23a8c9(0x25b)][_0x23a8c9(0x283)])!==_univerjs_core[_0x23a8c9(0x25b)][_0x23a8c9(0x37b)])_0x380334[_0x23a8c9(0x33e)](_0x23a8c9(0x226));}if(this[_0x23a8c9(0x438)]['strikethrough']&&((_0x9bf46a=_0x209bb4['st'])===null||_0x9bf46a===void 0x0?void 0x0:_0x9bf46a['s'])===_univerjs_core[_0x23a8c9(0x382)][_0x23a8c9(0x1f2)]){var _0x5dd0b2;if(((_0x5dd0b2=_0x209bb4['st']['t'])!==null&&_0x5dd0b2!==void 0x0?_0x5dd0b2:_univerjs_core['TextDecoration'][_0x23a8c9(0x283)])!==_univerjs_core[_0x23a8c9(0x25b)][_0x23a8c9(0x37b)])_0x380334['push'](_0x23a8c9(0x31d));}if(this['config']['numberFormat']&&((_0x440ccb=_0x209bb4['n'])===null||_0x440ccb===void 0x0?void 0x0:_0x440ccb['pattern'])&&_0x209bb4['n'][_0x23a8c9(0x462)]!==_0x23a8c9(0x246))_0x380334[_0x23a8c9(0x33e)](_0x23a8c9(0x223)+_0x209bb4['n'][_0x23a8c9(0x462)]);}}if(this[_0x23a8c9(0x359)]){if(this[_0x23a8c9(0x438)][_0x23a8c9(0x2c9)]&&typeof _0x3e764d===_0x23a8c9(0x25c)){const _0x76f293=Math[_0x23a8c9(0x266)](this[_0x23a8c9(0x359)][_0x23a8c9(0x4c1)](_0x3e764d));_0x380334[_0x23a8c9(0x33e)]('h:'+_0x76f293);}if(this[_0x23a8c9(0x438)][_0x23a8c9(0x2ed)]&&typeof _0x4e8ffe==='number'){const _0x30c8f7=Math['round'](this[_0x23a8c9(0x359)]['getColumnWidth'](_0x4e8ffe));_0x380334[_0x23a8c9(0x33e)]('w:'+_0x30c8f7);}}return _0x380334['join']('|');}};function toStyleUsage(_0x191162){const _0x2b4669=_0x620e0f;return{'styleHash':_0x191162[_0x2b4669(0x220)],'filledRanges':_0x191162[_0x2b4669(0x295)]};}function toA1$1(_0x2590c1){const _0x51ae7c=_0x620e0f;return{'styleHash':_0x2590c1[_0x51ae7c(0x318)],'filledRanges':_0x2590c1[_0x51ae7c(0x295)][_0x51ae7c(0x481)](_0xf0c0c0=>getA1Notation([_0xf0c0c0[_0x51ae7c(0x23d)],_0xf0c0c0['endRow'],_0xf0c0c0[_0x51ae7c(0x2d1)],_0xf0c0c0['endColumn']]))[_0x51ae7c(0x344)](',')};}function applyMaxCount(_0x34ea3b,_0x17b656){const _0x21b5f6=_0x620e0f;if(_0x17b656===void 0x0||_0x17b656<=0x0||_0x34ea3b[_0x21b5f6(0x254)]<=_0x17b656)return _0x34ea3b;return _0x34ea3b[_0x21b5f6(0x289)](0x0,_0x17b656);}const PROPERTY_ALIASES={'ff':_0x620e0f(0x42e),'fontFamily':_0x620e0f(0x42e),'fs':_0x620e0f(0x3c7),'fontSize':_0x620e0f(0x3c7),'bl':'bold','bold':'bold','it':'italic','italic':_0x620e0f(0x411),'fc':_0x620e0f(0x3ce),'fontColor':_0x620e0f(0x3ce),'bc':_0x620e0f(0x4c4),'backgroundColor':_0x620e0f(0x4c4),'w':_0x620e0f(0x2ed),'width':_0x620e0f(0x2ed),'h':_0x620e0f(0x2c9),'height':_0x620e0f(0x2c9),'ha':_0x620e0f(0x3d9),'horizontalAlign':_0x620e0f(0x3d9),'va':_0x620e0f(0x3c8),'verticalAlign':'verticalAlign','ul':_0x620e0f(0x4bd),'underline':_0x620e0f(0x4bd),'st':_0x620e0f(0x2d0),'strikethrough':_0x620e0f(0x2d0),'nf':_0x620e0f(0x424),'numberFormat':'numberFormat'};function normalizeProperty(_0x3d78e2){const _0x389ec1=_0x620e0f;if([_0x389ec1(0x42e),_0x389ec1(0x3c7),_0x389ec1(0x385),'italic',_0x389ec1(0x3ce),'backgroundColor',_0x389ec1(0x2ed),_0x389ec1(0x2c9),_0x389ec1(0x3d9),_0x389ec1(0x3c8),'underline',_0x389ec1(0x2d0),'numberFormat'][_0x389ec1(0x28b)](_0x3d78e2))return _0x3d78e2;if(PROPERTY_ALIASES[_0x3d78e2]!==void 0x0)return PROPERTY_ALIASES[_0x3d78e2];}function buildConfigFromOptions(_0x576585){const _0x113739=_0x620e0f;if(!(_0x576585===null||_0x576585===void 0x0?void 0x0:_0x576585['properties'])||_0x576585[_0x113739(0x2cc)][_0x113739(0x254)]===0x0)return{'fontFamily':!![],'fontSize':!![],'bold':!![],'italic':![],'fontColor':!![],'backgroundColor':!![],'width':![],'height':![],'horizontalAlign':![],'verticalAlign':![],'underline':![],'strikethrough':![],'numberFormat':![]};const _0x27ca21=new Set();for(const _0xdb3bdf of _0x576585[_0x113739(0x2cc)]){const _0x11b9fa=normalizeProperty(_0xdb3bdf);if(_0x11b9fa)_0x27ca21[_0x113739(0x366)](_0x11b9fa);}return{'fontFamily':_0x27ca21[_0x113739(0x24a)](_0x113739(0x42e)),'fontSize':_0x27ca21[_0x113739(0x24a)]('fontSize'),'bold':_0x27ca21[_0x113739(0x24a)]('bold'),'italic':_0x27ca21[_0x113739(0x24a)](_0x113739(0x411)),'fontColor':_0x27ca21[_0x113739(0x24a)](_0x113739(0x3ce)),'backgroundColor':_0x27ca21[_0x113739(0x24a)](_0x113739(0x4c4)),'width':_0x27ca21[_0x113739(0x24a)](_0x113739(0x2ed)),'height':_0x27ca21[_0x113739(0x24a)](_0x113739(0x2c9)),'horizontalAlign':_0x27ca21['has'](_0x113739(0x3d9)),'verticalAlign':_0x27ca21[_0x113739(0x24a)](_0x113739(0x3c8)),'underline':_0x27ca21['has'](_0x113739(0x4bd)),'strikethrough':_0x27ca21['has'](_0x113739(0x2d0)),'numberFormat':_0x27ca21['has'](_0x113739(0x424))};}const IStyleUsageAnalyzer=(0x0,_univerjs_core['createIdentifier'])(_0x620e0f(0x29a));var StyleUsageAnalyzer=class extends CellUsageAnalyzer{constructor(_0x319796){const _0x1fbb75=_0x620e0f;super(),_defineProperty(this,_0x1fbb75(0x319),void 0x0),_defineProperty(this,'_maxCount',void 0x0),this['_config']=_0x319796||{'fontFamily':!![],'fontSize':!![],'bold':!![],'italic':![],'fontColor':!![],'backgroundColor':!![],'width':![],'height':![],'horizontalAlign':![],'verticalAlign':![],'underline':![],'strikethrough':![],'numberFormat':![]};}[_0x620e0f(0x3b0)](_0x6ca019){const _0x4a583a=_0x620e0f;this[_0x4a583a(0x319)]=buildConfigFromOptions(_0x6ca019),this['_maxCount']=_0x6ca019===null||_0x6ca019===void 0x0?void 0x0:_0x6ca019[_0x4a583a(0x479)];}['getAllStyleUsages'](_0x4605ea,_0x290265,_0x51d0c3){const _0x827afa=_0x620e0f,_0x568cf3=new StyleExtractorCondition(this[_0x827afa(0x319)],_0x2a5677=>{const _0x592f1b=_0x827afa;var _0x22c920;return(_0x22c920=_0x290265[_0x592f1b(0x44a)]()[_0x592f1b(0x296)](_0x2a5677))!==null&&_0x22c920!==void 0x0?_0x22c920:null;},_0x51d0c3);return applyMaxCount(this['getAllCellUsages'](_0x4605ea,_0x568cf3)[_0x827afa(0x481)](toStyleUsage),this[_0x827afa(0x336)]);}},ConditionalFormatConverter=class{static[_0x620e0f(0x36c)](_0xb7503){const _0x274854=_0x620e0f;switch(_0xb7503[_0x274854(0x25d)]){case _0x274854(0x386):return this['toHighlightCellConfig'](_0xb7503);case _0x274854(0x3cd):return this[_0x274854(0x210)](_0xb7503);case _0x274854(0x2cd):return this['toColorScaleConfig'](_0xb7503);default:throw new Error('Unsupported\x20rule\x20type:\x20'+_0xb7503[_0x274854(0x25d)]);}}static[_0x620e0f(0x46e)](_0x300860){const _0x101e4=_0x620e0f;if(_0x300860[_0x101e4(0x2f3)][_0x101e4(0x358)]===_univerjs_sheets_conditional_formatting[_0x101e4(0x1e7)][_0x101e4(0x386)])return this[_0x101e4(0x2bb)](_0x300860);else{if(_0x300860[_0x101e4(0x2f3)][_0x101e4(0x358)]===_univerjs_sheets_conditional_formatting[_0x101e4(0x1e7)][_0x101e4(0x3cd)])return this[_0x101e4(0x2d5)](_0x300860);else{if(_0x300860['rule'][_0x101e4(0x358)]===_univerjs_sheets_conditional_formatting[_0x101e4(0x1e7)][_0x101e4(0x2cd)])return this['fromColorScaleConfig'](_0x300860);}}throw new Error(_0x101e4(0x39e));}static['toInternalStyle'](_0x3bbc0a){const _0x4c8f84=_0x620e0f,_0x2601a2={};if(_0x3bbc0a[_0x4c8f84(0x330)])_0x2601a2['cl']={'rgb':_0x3bbc0a[_0x4c8f84(0x330)]};if(_0x3bbc0a[_0x4c8f84(0x34a)])_0x2601a2['bg']={'rgb':_0x3bbc0a[_0x4c8f84(0x34a)]};if(_0x3bbc0a['bold']!==void 0x0)_0x2601a2['bl']=_0x3bbc0a['bold']?0x1:0x0;if(_0x3bbc0a[_0x4c8f84(0x411)]!==void 0x0)_0x2601a2['it']=_0x3bbc0a[_0x4c8f84(0x411)]?0x1:0x0;if(_0x3bbc0a[_0x4c8f84(0x4bd)]!==void 0x0)_0x2601a2['ul']={'s':_0x3bbc0a[_0x4c8f84(0x4bd)]?0x1:0x0};return _0x2601a2;}static['fromInternalStyle'](_0x309d4c){const _0x12f69b=_0x620e0f;var _0x3270d6,_0xb8d8b8,_0x4bde51;return{...((_0x3270d6=_0x309d4c['cl'])===null||_0x3270d6===void 0x0?void 0x0:_0x3270d6[_0x12f69b(0x2b3)])?{'fgColor':_0x309d4c['cl'][_0x12f69b(0x2b3)]}:{},...((_0xb8d8b8=_0x309d4c['bg'])===null||_0xb8d8b8===void 0x0?void 0x0:_0xb8d8b8[_0x12f69b(0x2b3)])?{'bgColor':_0x309d4c['bg'][_0x12f69b(0x2b3)]}:{},..._0x309d4c['bl']!==void 0x0?{'bold':_0x309d4c['bl']===0x1}:{},..._0x309d4c['it']!==void 0x0?{'italic':_0x309d4c['it']===0x1}:{},...((_0x4bde51=_0x309d4c['ul'])===null||_0x4bde51===void 0x0?void 0x0:_0x4bde51['s'])!==void 0x0?{'underline':_0x309d4c['ul']['s']===0x1}:{}};}static[_0x620e0f(0x2e5)](_0x5a56d5){const _0x270af3=_0x620e0f;var _0x2a509c;let _0x2dca70={'type':_univerjs_sheets_conditional_formatting[_0x270af3(0x1e7)][_0x270af3(0x386)],'subType':_univerjs_sheets_conditional_formatting[_0x270af3(0x4d0)][_0x5a56d5['sub_type']],'style':this[_0x270af3(0x33b)](_0x5a56d5[_0x270af3(0x20e)]||{})};switch(_0x5a56d5[_0x270af3(0x4c8)]){case'uniqueValues':_0x2dca70={..._0x2dca70,'subType':_univerjs_sheets_conditional_formatting[_0x270af3(0x4d0)][_0x270af3(0x451)]};break;case _0x270af3(0x402):_0x2dca70={..._0x2dca70,'subType':_univerjs_sheets_conditional_formatting[_0x270af3(0x4d0)][_0x270af3(0x402)]};break;case _0x270af3(0x3a0):var _0x2aeae0,_0x1bc8fd;_0x2dca70={..._0x2dca70,'subType':_univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x270af3(0x3a0)],'isBottom':(_0x2aeae0=_0x5a56d5[_0x270af3(0x2fc)])!==null&&_0x2aeae0!==void 0x0?_0x2aeae0:![],'isPercent':(_0x1bc8fd=_0x5a56d5[_0x270af3(0x4c2)])!==null&&_0x1bc8fd!==void 0x0?_0x1bc8fd:![],'value':_0x5a56d5['value']};break;case'text':_0x2dca70={..._0x2dca70,'subType':_univerjs_sheets_conditional_formatting[_0x270af3(0x4d0)][_0x270af3(0x441)],'operator':_univerjs_sheets_conditional_formatting[_0x270af3(0x39c)][_0x5a56d5['operator']],'value':_0x5a56d5[_0x270af3(0x238)]};break;case _0x270af3(0x4b9):_0x2dca70={..._0x2dca70,'subType':_univerjs_sheets_conditional_formatting[_0x270af3(0x4d0)]['timePeriod'],'operator':_univerjs_sheets_conditional_formatting[_0x270af3(0x1e5)][_0x5a56d5[_0x270af3(0x3f4)]]};break;case _0x270af3(0x32f):let _0x42656f=_0x5a56d5['formula']||_0x5a56d5[_0x270af3(0x238)];if(_0x42656f&&!_0x42656f[_0x270af3(0x38f)]('='))_0x42656f='='+_0x42656f;_0x2dca70={..._0x2dca70,'subType':_univerjs_sheets_conditional_formatting[_0x270af3(0x4d0)]['formula'],'value':_0x42656f};break;case _0x270af3(0x25c):if(_0x5a56d5['operator']===_0x270af3(0x2a0)||_0x5a56d5[_0x270af3(0x3f4)]===_0x270af3(0x1f8))_0x2dca70={..._0x2dca70,'subType':_univerjs_sheets_conditional_formatting[_0x270af3(0x4d0)][_0x270af3(0x25c)],'operator':_univerjs_sheets_conditional_formatting[_0x270af3(0x1fa)][_0x5a56d5[_0x270af3(0x3f4)]],'value':_0x5a56d5[_0x270af3(0x238)]};else _0x2dca70={..._0x2dca70,'subType':_univerjs_sheets_conditional_formatting[_0x270af3(0x4d0)][_0x270af3(0x25c)],'operator':_univerjs_sheets_conditional_formatting[_0x270af3(0x1fa)][_0x5a56d5[_0x270af3(0x3f4)]],'value':_0x5a56d5['value']};break;case'average':_0x2dca70={..._0x2dca70,'subType':_univerjs_sheets_conditional_formatting[_0x270af3(0x4d0)][_0x270af3(0x326)],'operator':_univerjs_sheets_conditional_formatting['CFNumberOperator'][_0x5a56d5['operator']]};break;default:throw new Error(_0x270af3(0x4c0)+_0x5a56d5['sub_type']);}return{'ranges':_0x5a56d5[_0x270af3(0x2b4)][_0x270af3(0x363)](',')[_0x270af3(0x481)](_0x74b016=>{const _0x16f1c4=_0x270af3;return(0x0,_univerjs_engine_formula[_0x16f1c4(0x3a5)])(_0x74b016)[_0x16f1c4(0x2b4)];}),'cfId':_0x5a56d5[_0x270af3(0x2ec)],'stopIfTrue':(_0x2a509c=_0x5a56d5[_0x270af3(0x27b)])!==null&&_0x2a509c!==void 0x0?_0x2a509c:![],'rule':_0x2dca70};}static[_0x620e0f(0x2bb)](_0x1c2bd7){const _0x1f1205=_0x620e0f,_0x4fcf6a=_0x1c2bd7[_0x1f1205(0x2f3)],_0x51e144={'range':_0x1c2bd7[_0x1f1205(0x324)]['map'](_0x294fb1=>{const _0x424921=_0x1f1205;return(0x0,_univerjs_engine_formula[_0x424921(0x3d1)])(_0x294fb1);})['join'](','),'rule_type':_0x1f1205(0x386),'rule_id':_0x1c2bd7['cfId'],'stop_if_true':_0x1c2bd7[_0x1f1205(0x414)],'sub_type':_univerjs_sheets_conditional_formatting[_0x1f1205(0x4d0)][_0x4fcf6a[_0x1f1205(0x3ab)]],'style':this[_0x1f1205(0x464)](_0x4fcf6a[_0x1f1205(0x20e)])};switch(_0x4fcf6a['subType']){case _univerjs_sheets_conditional_formatting[_0x1f1205(0x4d0)][_0x1f1205(0x451)]:return{..._0x51e144};case _univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x1f1205(0x402)]:return{..._0x51e144};case _univerjs_sheets_conditional_formatting['CFSubRuleType']['rank']:const _0x1bd890=_0x4fcf6a;return{..._0x51e144,'is_bottom':_0x1bd890['isBottom'],'is_percent':_0x1bd890[_0x1f1205(0x2f0)],'value':_0x1bd890['value']};case _univerjs_sheets_conditional_formatting[_0x1f1205(0x4d0)][_0x1f1205(0x441)]:const _0x751214=_0x4fcf6a;return{..._0x51e144,'operator':_univerjs_sheets_conditional_formatting[_0x1f1205(0x39c)][_0x751214['operator']],'value':_0x751214[_0x1f1205(0x238)]};case _univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x1f1205(0x4b9)]:const _0x625198=_0x4fcf6a;return{..._0x51e144,'operator':_univerjs_sheets_conditional_formatting['CFTimePeriodOperator'][_0x625198[_0x1f1205(0x3f4)]]};case _univerjs_sheets_conditional_formatting[_0x1f1205(0x4d0)][_0x1f1205(0x32f)]:const _0x391ad0=_0x4fcf6a;return{..._0x51e144,'value':_0x391ad0['value']};case _univerjs_sheets_conditional_formatting[_0x1f1205(0x4d0)][_0x1f1205(0x25c)]:const _0x1f34a5=_0x4fcf6a;return{..._0x51e144,'operator':_univerjs_sheets_conditional_formatting[_0x1f1205(0x1fa)][_0x1f34a5['operator']],'value':_0x1f34a5[_0x1f1205(0x238)]};case _univerjs_sheets_conditional_formatting[_0x1f1205(0x4d0)]['average']:const _0x32e97a=_0x4fcf6a;return{..._0x51e144,'operator':_univerjs_sheets_conditional_formatting[_0x1f1205(0x1fa)][_0x32e97a[_0x1f1205(0x3f4)]]};default:throw new Error('Unsupported\x20highlight\x20cell\x20sub-type:\x20'+_0x4fcf6a['subType']);}}static['toDataBarConfig'](_0x7514fc){const _0xb7abca=_0x620e0f;var _0x4635f5,_0x5648da,_0x9a25a7,_0xb3db74,_0x508a20;if(typeof _0x7514fc['positive_color']===_0xb7abca(0x435)){if(_0x7514fc[_0xb7abca(0x4cf)][_0xb7abca(0x2b3)])_0x7514fc[_0xb7abca(0x4cf)]=_0x7514fc[_0xb7abca(0x4cf)][_0xb7abca(0x2b3)];else throw new Error(_0xb7abca(0x253));}if(typeof _0x7514fc[_0xb7abca(0x280)]===_0xb7abca(0x435)){if(_0x7514fc[_0xb7abca(0x280)][_0xb7abca(0x2b3)])_0x7514fc[_0xb7abca(0x280)]=_0x7514fc[_0xb7abca(0x280)][_0xb7abca(0x2b3)];else throw new Error(_0xb7abca(0x28e));}return{'ranges':_0x7514fc[_0xb7abca(0x2b4)]['split'](',')[_0xb7abca(0x481)](_0x50bbd9=>{const _0x20acbe=_0xb7abca;return(0x0,_univerjs_engine_formula[_0x20acbe(0x3a5)])(_0x50bbd9)[_0x20acbe(0x2b4)];}),'cfId':_0x7514fc[_0xb7abca(0x2ec)],'stopIfTrue':(_0x4635f5=_0x7514fc[_0xb7abca(0x27b)])!==null&&_0x4635f5!==void 0x0?_0x4635f5:![],'rule':{'type':_univerjs_sheets_conditional_formatting['CFRuleType'][_0xb7abca(0x3cd)],'isShowValue':(_0x5648da=_0x7514fc[_0xb7abca(0x38a)])!==null&&_0x5648da!==void 0x0?_0x5648da:!![],'config':{'min':{'type':_univerjs_sheets_conditional_formatting[_0xb7abca(0x2ee)][_0x7514fc[_0xb7abca(0x3f7)]]||_univerjs_sheets_conditional_formatting[_0xb7abca(0x2ee)][_0xb7abca(0x44b)],'value':_0x7514fc['min_value']},'max':{'type':_univerjs_sheets_conditional_formatting['CFValueType'][_0x7514fc[_0xb7abca(0x240)]]||_univerjs_sheets_conditional_formatting['CFValueType'][_0xb7abca(0x44b)],'value':_0x7514fc[_0xb7abca(0x489)]},'isGradient':(_0x9a25a7=_0x7514fc[_0xb7abca(0x3db)])!==null&&_0x9a25a7!==void 0x0?_0x9a25a7:!![],'positiveColor':(_0xb3db74=_0x7514fc[_0xb7abca(0x4cf)])!==null&&_0xb3db74!==void 0x0?_0xb3db74:'#638EC6','nativeColor':(_0x508a20=_0x7514fc[_0xb7abca(0x280)])!==null&&_0x508a20!==void 0x0?_0x508a20:'#FF0000'}}};}static[_0x620e0f(0x2d5)](_0xecaf7a){const _0x163c6d=_0x620e0f,_0x1a08c7=_0xecaf7a[_0x163c6d(0x2f3)];return{'range':_0xecaf7a[_0x163c6d(0x324)][_0x163c6d(0x481)](_0x2e9ffd=>{return(0x0,_univerjs_engine_formula['serializeRange'])(_0x2e9ffd);})[_0x163c6d(0x344)](','),'rule_type':_0x163c6d(0x3cd),'rule_id':_0xecaf7a[_0x163c6d(0x263)],'stop_if_true':_0xecaf7a[_0x163c6d(0x414)],'is_show_value':_0x1a08c7[_0x163c6d(0x2b9)],'min_type':_univerjs_sheets_conditional_formatting[_0x163c6d(0x2ee)][_0x1a08c7[_0x163c6d(0x438)]['min']['type']],'min_value':_0x1a08c7['config'][_0x163c6d(0x476)]['value'],'max_type':_univerjs_sheets_conditional_formatting[_0x163c6d(0x2ee)][_0x1a08c7[_0x163c6d(0x438)][_0x163c6d(0x242)]['type']],'max_value':_0x1a08c7[_0x163c6d(0x438)][_0x163c6d(0x242)][_0x163c6d(0x238)],'is_gradient':_0x1a08c7[_0x163c6d(0x438)][_0x163c6d(0x342)],'positive_color':_0x1a08c7[_0x163c6d(0x438)][_0x163c6d(0x2f6)],'native_color':_0x1a08c7['config'][_0x163c6d(0x48c)]};}static[_0x620e0f(0x269)](_0x5ae29b){const _0xfa8c34=_0x620e0f;var _0x17f917;return{'ranges':_0x5ae29b['range']['split'](',')[_0xfa8c34(0x481)](_0x55237d=>{const _0x1f89e6=_0xfa8c34;return(0x0,_univerjs_engine_formula[_0x1f89e6(0x3a5)])(_0x55237d)['range'];}),'cfId':_0x5ae29b[_0xfa8c34(0x2ec)],'stopIfTrue':(_0x17f917=_0x5ae29b['stop_if_true'])!==null&&_0x17f917!==void 0x0?_0x17f917:![],'rule':{'type':_univerjs_sheets_conditional_formatting[_0xfa8c34(0x1e7)][_0xfa8c34(0x2cd)],'config':(_0x5ae29b[_0xfa8c34(0x2b0)]||[])[_0xfa8c34(0x481)](_0x3cf44c=>({'index':_0x3cf44c['index'],'color':_0x3cf44c[_0xfa8c34(0x1f4)],'value':{'type':_univerjs_sheets_conditional_formatting['CFValueType'][_0x3cf44c[_0xfa8c34(0x22d)]]||_univerjs_sheets_conditional_formatting[_0xfa8c34(0x2ee)]['num'],'value':_0x3cf44c[_0xfa8c34(0x238)]}}))}};}static[_0x620e0f(0x466)](_0xd2b1d6){const _0x5a19de=_0x620e0f,_0x15803e=_0xd2b1d6['rule'];return{'range':_0xd2b1d6[_0x5a19de(0x324)][_0x5a19de(0x481)](_0x1edc6c=>{const _0x404182=_0x5a19de;return(0x0,_univerjs_engine_formula[_0x404182(0x3d1)])(_0x1edc6c);})[_0x5a19de(0x344)](','),'rule_type':_0x5a19de(0x2cd),'rule_id':_0xd2b1d6[_0x5a19de(0x263)],'stop_if_true':_0xd2b1d6[_0x5a19de(0x414)],'points':_0x15803e[_0x5a19de(0x438)][_0x5a19de(0x481)](_0xf214fc=>({'index':_0xf214fc[_0x5a19de(0x30f)],'color':_0xf214fc[_0x5a19de(0x1f4)],'value_type':_univerjs_sheets_conditional_formatting[_0x5a19de(0x2ee)][_0xf214fc['value'][_0x5a19de(0x358)]],'value':_0xf214fc['value'][_0x5a19de(0x238)]}))};}};function getUniverAPI(){const _0x3b00b8=_0x620e0f;return globalThis[_0x3b00b8(0x388)];}function getInjector(){const _0x5b59ae=_0x620e0f,_0x9a690c=getUniverAPI();if(!(_0x9a690c===null||_0x9a690c===void 0x0?void 0x0:_0x9a690c[_0x5b59ae(0x395)]))throw new Error(_0x5b59ae(0x45a));return _0x9a690c[_0x5b59ae(0x395)];}function getContainerElement(){const _0x3b40eb=_0x620e0f,_0x489000=getInjector()[_0x3b40eb(0x296)](_univerjs_ui[_0x3b40eb(0x3b6)])[_0x3b40eb(0x43a)];if(!_0x489000)throw new Error('No\x20container\x20element\x20for\x20screenshot');return _0x489000;}function getCommandService(){const _0x332b74=_0x620e0f,_0x11bcbd=getUniverAPI();if(!(_0x11bcbd===null||_0x11bcbd===void 0x0?void 0x0:_0x11bcbd[_0x332b74(0x395)]))throw new Error(_0x332b74(0x45a));return _0x11bcbd['_injector'][_0x332b74(0x296)](_univerjs_core[_0x332b74(0x314)]);}function getSheetInterceptorService(){const _0x535cf5=_0x620e0f,_0x32ead3=getUniverAPI();if(!(_0x32ead3===null||_0x32ead3===void 0x0?void 0x0:_0x32ead3[_0x535cf5(0x395)]))throw new Error('UniverAPI\x20injector\x20not\x20available');return _0x32ead3[_0x535cf5(0x395)][_0x535cf5(0x296)](_univerjs_sheets['SheetInterceptorService']);}function parseRangeType(_0x28ce96){const _0x5b0b44=_0x620e0f,_0x16df52=_0x28ce96[_0x5b0b44(0x28b)]('!')?_0x28ce96[_0x5b0b44(0x363)]('!')[0x1]:_0x28ce96;if(/^[A-Z]+:[A-Z]+$/[_0x5b0b44(0x37f)](_0x16df52))return{'type':'column','isValid':!![]};if(/^\d+:\d+$/[_0x5b0b44(0x37f)](_0x16df52))return{'type':'row','isValid':!![]};return{'type':_0x5b0b44(0x236),'isValid':!![]};}function columnLetterToNumber(_0x525754){const _0xaf823d=_0x620e0f;let _0x24d904=0x0;for(let _0x2d39df=0x0;_0x2d39df<_0x525754[_0xaf823d(0x254)];_0x2d39df++)_0x24d904=_0x24d904*0x1a+(_0x525754[_0xaf823d(0x3d4)](_0x2d39df)-0x41+0x1);return _0x24d904-0x1;}function ensureInt(_0x22385f,_0x15192d){const _0x1fd368=_0x620e0f;if(typeof _0x22385f===_0x1fd368(0x25c))return _0x22385f;else{if(typeof _0x22385f===_0x1fd368(0x370)){const _0xde3162=Number[_0x1fd368(0x37e)](_0x22385f,0xa);if(isNaN(_0xde3162))throw new TypeError(_0x1fd368(0x3f9)+_0x15192d+_0x1fd368(0x2ff)+_0x22385f+'\x27');return _0xde3162;}else throw new TypeError(_0x1fd368(0x3f9)+_0x15192d+_0x1fd368(0x478)+typeof _0x22385f);}}const styleDataSchema=_univerjs_pro_mcp['z']['object']({'ff':_univerjs_pro_mcp['z']['string']()['optional']()[_0x620e0f(0x31a)]('font\x20family\x20(e.g.,\x20\x22Arial\x22)'),'fs':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()[_0x620e0f(0x2d9)]()['describe']('font\x20size,\x20pt\x20(e.g.,\x2011)'),'it':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z']['literal'](0x1)])[_0x620e0f(0x2d9)]()['describe']('italic\x20(0|1)'),'bl':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1)])[_0x620e0f(0x2d9)]()['describe'](_0x620e0f(0x367)),'ul':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'s':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x0),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1)])[_0x620e0f(0x31a)]('style'),'cl':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)]('color'),'c':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1)])['optional'](),'t':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()['optional']()})['optional']()[_0x620e0f(0x31a)]('underline'),'st':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'s':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1)])[_0x620e0f(0x31a)]('style'),'cl':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x31a)](_0x620e0f(0x1f4)),'c':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x0),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1)])['optional'](),'t':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()['optional']()})[_0x620e0f(0x2d9)]()['describe'](_0x620e0f(0x398)),'ol':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'s':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x0),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1)])[_0x620e0f(0x31a)](_0x620e0f(0x20e)),'cl':_univerjs_pro_mcp['z']['string']()['describe'](_0x620e0f(0x1f4)),'c':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x0),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1)])[_0x620e0f(0x2d9)](),'t':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)]()})[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x2b8)),'bg':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'rgb':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x31a)](_0x620e0f(0x41d))})[_0x620e0f(0x2d9)]()['describe'](_0x620e0f(0x294)),'bd':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'t':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'s':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x0),_univerjs_pro_mcp['z']['literal'](0x1)])[_0x620e0f(0x31a)](_0x620e0f(0x20e)),'cl':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x31a)](_0x620e0f(0x1f4))})[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x47b)),'b':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'s':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x0),_univerjs_pro_mcp['z']['literal'](0x1)])[_0x620e0f(0x31a)]('style'),'cl':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x31a)](_0x620e0f(0x1f4))})[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)]('bottom\x20border'),'l':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'s':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z']['literal'](0x1)])[_0x620e0f(0x31a)]('style'),'cl':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x1f4))})['optional']()[_0x620e0f(0x31a)]('left\x20border'),'r':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'s':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x0),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1)])[_0x620e0f(0x31a)](_0x620e0f(0x20e)),'cl':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x1f4))})['optional']()['describe'](_0x620e0f(0x3bd))})[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x4d6)),'cl':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'rgb':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()['describe']('font\x20color,\x20e.g.,\x20\x22#000000\x22')})[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x496)),'va':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1),_univerjs_pro_mcp['z']['literal'](0x2),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x3)])[_0x620e0f(0x2d9)]()['describe'](_0x620e0f(0x291)),'tr':_univerjs_pro_mcp['z']['object']({'a':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()[_0x620e0f(0x31a)](_0x620e0f(0x35a))})[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)]('text\x20rotation'),'td':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z']['literal'](0x1),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x2)])[_0x620e0f(0x2d9)]()['describe']('text\x20direction,\x201\x20left\x20to\x20right,\x202\x20right\x20to\x20left'),'ht':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x2),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x3)])['optional']()[_0x620e0f(0x31a)](_0x620e0f(0x306)),'vt':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x1),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x2),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x3)])[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)]('vertical\x20text\x20alignment,\x201\x20top,\x202\x20middle,\x203\x20bottom'),'tb':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z']['literal'](0x1),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x2),_univerjs_pro_mcp['z'][_0x620e0f(0x3ea)](0x3)])[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x485)),'pd':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'t':_univerjs_pro_mcp['z']['number']()['optional']()[_0x620e0f(0x31a)](_0x620e0f(0x1e4)),'b':_univerjs_pro_mcp['z']['number']()['optional']()[_0x620e0f(0x31a)]('bottom\x20padding'),'l':_univerjs_pro_mcp['z']['number']()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)]('left\x20padding'),'r':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)]('right\x20padding')})['optional']()[_0x620e0f(0x31a)]('content\x20padding'),'n':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'pattern':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x39a))})[_0x620e0f(0x2d9)]()['describe'](_0x620e0f(0x491))})[_0x620e0f(0x4a5)]()[_0x620e0f(0x31a)]('Style\x20object\x20properties\x20for\x20Univer\x20sheets.\x20Note:\x20Both\x20the\x20border\x20thickness\x20and\x20font\x20size\x20are\x20measured\x20in\x20points\x20(pt).'),ZodConditionalFormatRuleSchema=_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'rule_id':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x452)),'range':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)]()['describe'](_0x620e0f(0x389)),'stop_if_true':_univerjs_pro_mcp['z']['boolean']()['optional'](),'priority':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x45e)),'rule_type':_univerjs_pro_mcp['z']['enum']([_0x620e0f(0x386),_0x620e0f(0x3cd),'colorScale'])[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)]('\x27highlightCell\x27\x20|\x20\x27dataBar\x27\x20|\x20\x27colorScale\x27'),'min_type':_univerjs_pro_mcp['z'][_0x620e0f(0x2a7)]([_0x620e0f(0x44b),_0x620e0f(0x476),_0x620e0f(0x242),_0x620e0f(0x396),'percentile','formula'])['optional'](),'min_value':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x620e0f(0x370)](),_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()])[_0x620e0f(0x2d9)](),'max_type':_univerjs_pro_mcp['z'][_0x620e0f(0x2a7)](['num',_0x620e0f(0x476),'max','percent','percentile',_0x620e0f(0x32f)])[_0x620e0f(0x2d9)](),'max_value':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x370)](),_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()])['optional'](),'positive_color':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)]('hex\x20color'),'native_color':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x2d9)]()['describe'](_0x620e0f(0x384)),'is_show_value':_univerjs_pro_mcp['z']['boolean']()[_0x620e0f(0x2d9)](),'is_gradient':_univerjs_pro_mcp['z']['boolean']()[_0x620e0f(0x2d9)](),'is_bottom':_univerjs_pro_mcp['z']['boolean']()['optional'](),'is_percent':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x2d9)](),'points':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'index':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)](),'color':_univerjs_pro_mcp['z'][_0x620e0f(0x370)](),'value_type':_univerjs_pro_mcp['z']['enum'](['num',_0x620e0f(0x476),'max',_0x620e0f(0x396),_0x620e0f(0x2e6),'formula']),'value':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x620e0f(0x370)](),_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()])[_0x620e0f(0x2d9)]()}))['optional']()[_0x620e0f(0x31a)]('Each\x20dict:\x20{index,\x20color,\x20value_type,\x20value}'),'sub_type':_univerjs_pro_mcp['z'][_0x620e0f(0x2a7)]([_0x620e0f(0x451),_0x620e0f(0x402),_0x620e0f(0x3a0),'text',_0x620e0f(0x4b9),'number',_0x620e0f(0x326),_0x620e0f(0x32f)])['optional'](),'operator':_univerjs_pro_mcp['z'][_0x620e0f(0x2a7)]([_0x620e0f(0x40d),_0x620e0f(0x2e7),_0x620e0f(0x3c4),'notContainsText','equal',_0x620e0f(0x460),_0x620e0f(0x426),'notContainsBlanks',_0x620e0f(0x37d),_0x620e0f(0x348),_0x620e0f(0x2a8),_0x620e0f(0x4d2),_0x620e0f(0x332),_0x620e0f(0x228),'thisMonth','lastMonth',_0x620e0f(0x43e),_0x620e0f(0x290),_0x620e0f(0x37a),_0x620e0f(0x264),_0x620e0f(0x44e),_0x620e0f(0x4d4),_0x620e0f(0x3e3),_0x620e0f(0x4ac),'notBetween',_0x620e0f(0x2a0)])['optional'](),'value':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x25c)](),_univerjs_pro_mcp['z']['string'](),_univerjs_pro_mcp['z'][_0x620e0f(0x449)]([_univerjs_pro_mcp['z'][_0x620e0f(0x25c)](),_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()])])[_0x620e0f(0x2d9)](),'formula':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)](),'style':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'fgColor':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()['optional']()[_0x620e0f(0x31a)](_0x620e0f(0x4ad)),'bgColor':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x41d)),'bold':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()['optional'](),'italic':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x2d9)](),'underline':_univerjs_pro_mcp['z']['boolean']()[_0x620e0f(0x2d9)]()})[_0x620e0f(0x2d9)]()})['loose']();function getRuleById(_0x23974a,_0x2ab767,_0x5927f1){const _0x1bc6e4=_0x620e0f,_0x2ae9c3=_0x23974a[_0x1bc6e4(0x249)](),_0x24aa88=(_0x23974a[_0x1bc6e4(0x395)][_0x1bc6e4(0x296)](_univerjs_sheets_conditional_formatting[_0x1bc6e4(0x33c)])['getSubunitRules'](_0x2ae9c3[_0x1bc6e4(0x288)](),_0x2ab767[_0x1bc6e4(0x27d)]())||[])[_0x1bc6e4(0x421)](_0x159c8e=>_0x159c8e['cfId']===_0x5927f1);if(!_0x24aa88)throw new Error(_0x1bc6e4(0x278)+_0x5927f1+_0x1bc6e4(0x423)+_0x2ab767[_0x1bc6e4(0x25e)]()+'.');return ConditionalFormatConverter[_0x1bc6e4(0x46e)](_0x24aa88);}function moveConditionalFormattingRule(_0x442996,_0xe8dce2,_0x1661cc,_0x19e0e2,_0xaa3f79,_0x1b009e='after'){const _0x25c446=_0x620e0f,_0x2260a0={'unitId':_0xe8dce2,'subUnitId':_0x1661cc,'start':{'id':_0x19e0e2,'type':_0x25c446(0x347)},'end':{'id':_0xaa3f79,'type':_0x1b009e}};_0x442996[_0x25c446(0x28d)][_0x25c446(0x1f6)](_univerjs_sheets_conditional_formatting['MoveCfCommand']['id'],_0x2260a0);}function adjustConditionalFormattingRulePriority(_0x514272,_0x419b42,_0x5dad59,_0x18ff8c){const _0x291ed3=_0x620e0f;if(_0x18ff8c===void 0x0)return;const _0x1ef6d6=getConditionalFormattingRulesInternal(_0x514272,_0x419b42);if(_0x1ef6d6[_0x291ed3(0x421)](_0x13ada1=>_0x13ada1[_0x291ed3(0x2ec)]===_0x5dad59)){let _0x9fc9a0=_0x18ff8c;if(_0x9fc9a0<0x0)_0x9fc9a0=0x0;if(_0x9fc9a0>=_0x1ef6d6['length'])_0x9fc9a0=_0x1ef6d6[_0x291ed3(0x254)]-0x1;const _0x56479a=_0x1ef6d6[_0x9fc9a0];if(_0x56479a&&_0x56479a['rule_id']!==_0x5dad59){const _0x1e354c=_0x514272[_0x291ed3(0x249)](),_0x2b0a62=_0x1e354c[_0x291ed3(0x259)](_0x419b42);moveConditionalFormattingRule(_0x514272,_0x1e354c[_0x291ed3(0x288)](),_0x2b0a62[_0x291ed3(0x27d)](),_0x5dad59,_0x56479a[_0x291ed3(0x2ec)],_0x291ed3(0x439));}}}function getConditionalFormattingRulesInternal(_0x41cda3,_0x1e5e13){const _0x465360=_0x620e0f,_0x43360d=_0x41cda3[_0x465360(0x249)](),_0xcaf0d7=_0x43360d[_0x465360(0x259)](_0x1e5e13);if(!_0xcaf0d7)throw new Error(_0x465360(0x303)+_0x1e5e13+_0x465360(0x3e4));return(_0x41cda3[_0x465360(0x395)]['get'](_univerjs_sheets_conditional_formatting[_0x465360(0x33c)])[_0x465360(0x2e1)](_0x43360d[_0x465360(0x288)](),_0xcaf0d7[_0x465360(0x27d)]())||[])[_0x465360(0x481)]((_0x4180cb,_0x1488c0)=>{const _0x564dc5=_0x465360,_0x47eaf4=ConditionalFormatConverter['fromInternalConfig'](_0x4180cb);return _0x47eaf4[_0x564dc5(0x2f8)]=_0x1488c0,_0x47eaf4;});}async function addConditionalFormattingRule(_0x2473e0,_0x5c1994){const _0x3e1e17=_0x620e0f,_0x2621f7=getUniverAPI();if(!_0x2621f7)throw new Error('UniverAPI\x20not\x20available');try{const _0x40d1a2=_0x2621f7['getActiveWorkbook'](),_0x26c6ab=_0x40d1a2===null||_0x40d1a2===void 0x0?void 0x0:_0x40d1a2[_0x3e1e17(0x259)](_0x2473e0);if(!_0x26c6ab)throw new Error(_0x3e1e17(0x303)+_0x2473e0+'\x20does\x20not\x20exist.');if(!_0x40d1a2)throw new Error(_0x3e1e17(0x1eb));let _0x520410=0x0;const _0xc9a0d3=[];for(const _0x3580fc of _0x5c1994)try{if(!_0x3580fc[_0x3e1e17(0x2ec)])_0x3580fc[_0x3e1e17(0x2ec)]=(0x0,_univerjs_core[_0x3e1e17(0x27e)])(0x7);if((_0x2621f7['_injector'][_0x3e1e17(0x296)](_univerjs_sheets_conditional_formatting[_0x3e1e17(0x33c)])[_0x3e1e17(0x2e1)](_0x40d1a2[_0x3e1e17(0x288)](),_0x26c6ab[_0x3e1e17(0x27d)]())||[])[_0x3e1e17(0x421)](_0x253799=>_0x253799[_0x3e1e17(0x263)]===_0x3580fc[_0x3e1e17(0x2ec)]))throw new Error(_0x3e1e17(0x278)+_0x3580fc['rule_id']+_0x3e1e17(0x346)+_0x2473e0+'.');const _0x2ef576=ConditionalFormatConverter['toInternalConfig'](_0x3580fc),_0x2d49f2={'unitId':_0x40d1a2[_0x3e1e17(0x288)](),'subUnitId':_0x26c6ab[_0x3e1e17(0x27d)](),'rule':_0x2ef576};_0x2621f7[_0x3e1e17(0x28d)][_0x3e1e17(0x1f6)](_univerjs_sheets_conditional_formatting[_0x3e1e17(0x275)]['id'],_0x2d49f2),adjustConditionalFormattingRulePriority(_0x2621f7,_0x2473e0,_0x3580fc['rule_id'],_0x3580fc['priority']),_0x520410++;}catch(_0x29639b){_0xc9a0d3['push']((_0x29639b===null||_0x29639b===void 0x0?void 0x0:_0x29639b['message'])||String(_0x29639b));}if(_0xc9a0d3['length']===0x0)return'Added\x20'+_0x520410+_0x3e1e17(0x2fe)+_0x2473e0+'\x27';else{if(_0x520410>0x0)return _0x3e1e17(0x305)+_0x520410+_0x3e1e17(0x2fe)+_0x2473e0+_0x3e1e17(0x36e)+_0xc9a0d3[_0x3e1e17(0x254)]+_0x3e1e17(0x29b)+_0xc9a0d3[_0x3e1e17(0x344)](';\x20');else throw new Error(_0x3e1e17(0x433)+_0xc9a0d3[_0x3e1e17(0x344)](';\x20'));}}catch(_0x56734b){const _0x204dbf=_0x56734b instanceof Error?_0x56734b[_0x3e1e17(0x3aa)]:String(_0x56734b);throw new Error(_0x204dbf[_0x3e1e17(0x363)]('\x0a')[0x0]||'Unknown\x20error');}}function _0x1175(){const _0x44d9f2=['showDropDown','toA1','is_bottom','rename_sheet:\x20','\x20conditional\x20formatting\x20rule(s)\x20to\x20sheet\x20\x27','\x27\x20must\x20be\x20an\x20integer\x20or\x20integer\x20string,\x20got\x20\x27','\x20sheet(s)\x20successfully,\x20failed\x20','get_sheets','null','Worksheet\x20with\x20name\x20','showSheet','Added\x20','horizontal\x20text\x20alignment,\x201\x20left,\x202\x20center,\x203\x20right','Batch\x20insert\x20empty\x20rows\x20for\x20multiple\x20operations.\x20Efficiently\x20inserts\x20rows\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','ISizeUsageAnalyzer','Failed\x20to\x20delete\x20rule(s):\x20','create_sheet:\x20','-\x20Row\x20','sheet.command.set-range-values','\x20conditional\x20formatting\x20rule(s)\x20from\x20sheet\x20\x27','getColumnCount','index','errorStyle','requestChannel','\x27\x20not\x20found','Failed\x20to\x20create\x20sheet\x20\x27','ICommandService','createTextFinderAsync','allSheetTools','sheet.command.apply-format-painter','styleHash','_config','describe','value1\x20is\x20required\x20when\x20operator\x20is\x20set','Failed\x20to\x20rename\x20sheet:\x20','st:1','Number\x20of\x20rows\x20to\x20delete\x20(default\x201)','Injector','hash','Auto\x20fill\x20completed\x20from\x20','right','bizInfo','ranges','bl:','average','range_a1\x20must\x20be\x20string','Invalid\x20range\x20format:\x20','delete_sheet','Failed\x20to\x20set\x20active\x20range:','SetRowHeightCommand','(default\x20\x22\x22)','_style','status','formula','fgColor','Value\x20for\x20the\x20range','tomorrow','Module','DataValidationErrorStyle','getValue','_maxCount','unspec','No\x20active\x20sheet','\x20to\x20','List\x20of\x20SheetDisplayStatusOperation\x20objects\x20for\x20each\x20display\x20status\x20operation','toInternalStyle','ConditionalFormattingRuleModel','old_name','push','Rule\x20identifier,\x20auto-generated\x20if\x20not\x20provided','enableWorker','rules','isGradient','create_sheet','join','filter','\x20already\x20exists\x20in\x20worksheet\x20','self','notContainsErrors','unit','bgColor','Batch\x20set\x20style\x20for\x20multiple\x20ranges\x20in\x20the\x20active\x20workbook.\x20Efficiently\x20applies\x20styling\x20to\x20multiple\x20ranges\x20in\x20one\x20operation.','IStyleUsageAnalyzer','CENTER','```','Batch\x20set\x20column\x20widths\x20and\x20row\x20heights\x20based\x20on\x20dimension\x20requests.\x20Each\x20request\x20can\x20specify\x20either\x20width,\x20height,\x20or\x20both.\x20Width\x20applies\x20to\x20columns\x20(A:C),\x20height\x20applies\x20to\x20rows\x20(1:5).\x20Range\x20format\x20examples:\x20\x22Sheet1!A:C\x22\x20sets\x20width\x20for\x20columns\x20A\x20to\x20C\x20in\x20Sheet1,\x20\x22A:A\x22\x20sets\x20width\x20for\x20column\x20A\x20in\x20active\x20sheet,\x20\x221:5\x22\x20sets\x20height\x20for\x20rows\x201\x20to\x205\x20in\x20active\x20sheet.\x20Width/height\x20can\x20be\x20a\x20single\x20number\x20(applies\x20to\x20all)\x20or\x20an\x20array\x20matching\x20the\x20count\x20of\x20columns/rows\x20in\x20range.\x20Returns\x20success/fail\x20status\x20and\x20message\x20with\x20automatic\x20dimension\x20report\x20of\x20the\x20processed\x20ranges.','executeCommand','Target\x20range\x20(A1\x20notation),\x20multiple\x20ranges\x20separated\x20by\x20comma','List\x20of\x20names\x20of\x20the\x20worksheets\x20to\x20delete','LIST','Sheet\x20name\x20(optional,\x20uses\x20active\x20sheet\x20if\x20not\x20provided)','hasOwnProperty','constructor','insertColumnsBefore','type','worksheet','rotation\x20angle\x20in\x20degrees','items\x20must\x20be\x20array\x20of\x20BatchRangeDataItem','prompt','Moved\x20sheet\x20\x27','sheet.command.set-once-format-painter','Unsupported\x20error_style:\x20','\x22\x20not\x20found','Modified\x20','\x20conditional\x20formatting\x20rule(s)\x20for\x20sheet\x20\x27','split','firstOccurrence','Range\x20string\x20(A1\x20notation),\x20supports\x20comma-separated\x20multiple\x20ranges,\x20e.g.\x20\x22A1,B2:C3\x22','add','bold\x20(0|1)','ensureCompleteAsync','padStart','List\x20of\x20conditional\x20formatting\x20rule\x20IDs','Get\x20all\x20sheets\x20(name\x20and\x20ID)\x20in\x20the\x20current\x20workbook.','toInternalConfig','Failed\x20to\x20set\x20display\x20status\x20for\x20sheet(s):\x20','\x27,\x20failed\x20','getData','string','getMaxColumns','sort','defineProperty','2JYHShh','(default\x20\x22Invalid\x20input\x22)','Failed\x20to\x20take\x20screenshot\x20after\x20scrolling\x20to\x20','Move\x20a\x20worksheet\x20to\x20the\x20specified\x20index\x20(does\x20not\x20activate\x20the\x20sheet).','activate_sheet','Calculation\x20error','lastWeek','NONE','operations','containsErrors','parseInt','test','JUSTIFIED','size','BooleanNumber','formula1','hex\x20color','bold','highlightCell','CHECKBOX','univerAPI','Target\x20range\x20(A1\x20notation)','is_show_value','warn','entries','The\x20cell/range\x20in\x20A1\x20notation\x20(e.g.,\x20\x22A1\x22,\x20\x22B2:C3\x22)','Shown','startsWith','Inserted\x20columns\x20in\x20','substring','getCellRaw','set_merge','Batch\x20delete\x20rows\x20for\x20multiple\x20operations.\x20Efficiently\x20deletes\x20rows\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','_injector','percent','Batch\x20create\x20multiple\x20new\x20worksheets.\x20Efficiently\x20creates\x20multiple\x20sheets\x20in\x20one\x20operation.','strike\x20through','getAllCellUsages','number\x20format\x20pattern,\x20e.g.,\x20\x22#,##0.00\x22','Sheet\x20count:\x20','CFTextOperator','List\x20of\x20ranges\x20in\x20A1\x20notation','Unsupported\x20conditional\x20formatting\x20configuration','List\x20of\x20RenameSheetOperation\x20objects\x20for\x20each\x20rename\x20operation','rank','delete_columns:\x20pos=','Failed\x20to\x20insert\x20rows:\x20','parseValue','rowColumnOperationTools','deserializeRangeWithSheetWithCache','Insert\x20\x22before\x22\x20or\x20\x22after\x22\x20the\x20position\x20(default\x20\x22before\x22)','new_name','TIME','\x20columns\x20from\x20position\x20','message','subType','68703AexmLM','decimal','RIGHT','showErrorMessage','updateConfig','Whether\x20to\x20return\x20a\x20screenshot\x20of\x20the\x20range\x20(default\x20False)','boolean','prototype','toStringTag','\x20failed.\x20Errors:\x20','ILayoutService','Screenshot\x20failed:','undefined','merge','Batch\x20delete\x20multiple\x20worksheets\x20by\x20names.\x20Efficiently\x20deletes\x20multiple\x20sheets\x20in\x20one\x20operation.','\x20operation(s)\x20successfully.','\x0aCurrent\x20Visible\x20range:\x20','right\x20border','326120nyWNLX','rename_sheet','toString','version','decorate','value1','containsText','image','get_conditional_formatting_rules','fontSize','verticalAlign','\x20->\x20','move_sheet','Sheet\x20name\x20\x27','getColumn','dataBar','fontColor','Source\x20range\x20in\x20A1\x20notation\x20(e.g.,\x20\x22A1:A2\x22,\x20\x22B1:C1\x22)','_workbook','serializeRange','UNSPECIFIED','delete_conditional_formatting_rule','charCodeAt','getPrototypeOf','Deleted\x20sheet\x20\x27','startAbsoluteRefType','sheet-mcp.config','horizontalAlign','unshift','is_gradient','No\x20active\x20workbook','getRules','errorType','source\x20is\x20required\x20for\x20validation_type:\x20list','Inserted\x20rows\x20in\x20','HorizontalAlign','getStyleById','lessThan','\x20does\x20not\x20exist.','parseFloat','error_style','Target\x20index\x20(0-based).\x20Can\x20be\x20integer\x20or\x20string\x20representation\x20of\x20integer','set','Width\x20array\x20length\x20(','literal','sheet_name','getActiveSheet','description','2874032hmbwkO','get_activity_status','sheets.mcp.formula-usage-analyzer','cell_a1','\x27:\x20',')\x20doesn\x27t\x20match\x20column\x20count\x20(','operator','get_data_validation_rules','Failed\x20to\x20create\x20rule(s):\x20','min_type','VerticalAlign','Parameter\x20\x27','set_cell_dimensions','Merge\x20a\x20single\x20range\x20in\x20the\x20active\x20workbook.\x20Usage:\x20set_merge(\x22A1:B2\x22)\x20to\x20merge\x20the\x20specified\x20range.','_state','onReady','SizeUsageAnalyzer','\x0a##\x20Error\x20Message\x0a```yaml\x0a','Allow\x20multiple\x20selection\x20(default\x20false)','floor','duplicateValues','dist','value2','Input\x20prompt\x20message\x20(default\x20empty)','WARNING','88498soTWzf','sheet.command.auto-fill','setActiveRange','toPrimitive','fromCharCode','scroll_and_screenshot','beginsWith','Unsupported\x20value\x20type:\x20','setFormula','DECIMAL','italic','getRuleById','fail','stopIfTrue','Deleted\x20','Number\x20of\x20columns\x20to\x20delete\x20(default\x201)','activate','List\x20of\x20BatchRangeDataItem','source_range','getAllSizeUsages','toLocaleLowerCase','registerChannel','background\x20color,\x20e.g.,\x20\x22#FF0000\x22','\x20request(s)\x20successfully,\x20','_lexerTreeBuilder','rangeOperationTools','find','SheetDataValidationModel','\x20does\x20not\x20exist\x20in\x20worksheet\x20','numberFormat','\x20operation(s),\x20reason(s):\x20','containsBlanks','Sheet\x20\x27','moveFormulaRefOffset','uid','versions','The\x20search\x20keyword,\x20e.g.,\x20\x22=\x22','First\x20value,\x20required\x20if\x20operator\x20is\x20set','\x20on\x20sheet\x20\x27','fontFamily','Failed\x20to\x20insert\x20columns:\x20','Failed\x20to\x20set\x20conditional\x20formatting\x20rule(s):\x20','return_screenshot','changeState','Failed\x20to\x20add\x20conditional\x20formatting\x20rule(s):\x20','random','object','List\x20source,\x20comma-separated\x20string\x20or\x20cell\x20range','trim','config','before','rootContainerElement','auto_fill','getRow','generateStringWithSequence','nextMonth','toModule',',\x20count=','text','_formulaService','ANY','\x20rule(s),\x20reason(s):\x20','getRange','Scroll\x20the\x20UI\x20so\x20the\x20specified\x20cell\x20is\x20at\x20the\x20top-left\x20of\x20the\x20viewport,\x20then\x20capture\x20and\x20return\x20a\x20screenshot.\x20By\x20default,\x20the\x20viewport\x20is\x20positioned\x20at\x20cell\x20A1.\x20Use\x20this\x20tool\x20to\x20scroll\x20to\x20a\x20different\x20cell\x20and\x20get\x20a\x20visual\x20snapshot\x20in\x20one\x20step.\x20This\x20is\x20a\x20UI\x20interaction\x20tool;\x20do\x20not\x20call\x20a\x20separate\x20screenshot\x20tool\x20after\x20using\x20this\x20one.','getHash','The\x20search\x20type,\x20e.g.,\x20\x22formula\x22\x20or\x20\x22value\x22','tuple','getStyles','num','format_brush','Inject','greaterThan','Renamed\x20sheet\x20\x27','symbol','uniqueValues','Rule\x20identifier','Failed\x20to\x20create\x20sheets:\x20',',\x20where=','Whether\x20to\x20return\x20a\x20screenshot\x20(default\x20False).','\x20sheet(s)\x20successfully.','left','getFormulaError','0.22.1','UniverAPI\x20injector\x20not\x20available','insertColumnsAfter','\x20columns\x20','stop','-1:\x20end,\x200:\x20top,\x20>0:\x20index','Target\x20range\x20in\x20A1\x20notation\x20to\x20fill\x20(e.g.,\x20\x22A1:A10\x22,\x20\x22B1:F1\x22)','notEqual','errorTitle','pattern','where','fromInternalStyle','justify','fromColorScaleConfig','Extracts\x20all\x20unique\x20formulas\x20from\x20the\x20active\x20Excel\x20sheet,\x20along\x20with\x20their\x20usage\x20locations.\x20For\x20each\x20unique\x20formula,\x20it\x20provides\x20the\x20formula\x20string,\x20the\x20cell\x20of\x20its\x20first\x20occurrence\x20(in\x20A1\x20notation),\x20and\x20all\x20cell\x20ranges\x20where\x20this\x20formula\x20is\x20filled.','onWriteCell','formula2','show_time','getLastColumn','Target\x20range\x20in\x20A1\x20notation,\x20supports\x20cross-sheet','information','fromInternalConfig','showInputMessage','getOwnPropertyDescriptor','Set\x20(replace)\x20all\x20data\x20validation\x20rules\x20for\x20the\x20specified\x20sheet.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rules:\x20List\x20of\x20DataValidationRule\x20with\x20rule_id\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','show_input_message','Failed\x20to\x20delete\x20conditional\x20formatting\x20rule(s):\x20','\x20|\x20','ICalculateFormulaService','min','Width\x20in\x20points\x20(pt)\x20for\x20columns','\x27\x20must\x20be\x20an\x20integer\x20or\x20string,\x20got\x20','maxCount','source','top\x20border','Search\x20cells\x20in\x20the\x20currently\x20active\x20workbook\x20by\x20keyword\x20and\x20findBy\x20type.\x20Returns\x20dict\x20with\x20\x22total\x22\x20matches\x20and\x20\x22results\x22\x20(up\x20to\x2050\x20items,\x20each\x20with\x20range_a1,\x20value\x20(truncated\x20to\x20200\x20chars\x20if\x20too\x20long),\x20formula).\x20The\x20value\x20field\x20will\x20be\x20truncated\x20to\x20at\x20most\x20200\x20characters\x20if\x20it\x20is\x20a\x20long\x20string.','bl:1','Failed\x20to\x20get\x20screenshot\x20for\x20range\x20','integer','TEXT_LENGTH','map','Invalid\x20numeric\x20value\x20error','date','promptTitle','text\x20overflow,\x201\x20overflow,\x202\x20truncate,\x203\x20wrap','target_range','delete_data_validation_rule','24JWwSsH','max_value','set_sheet_display_status','warning','nativeColor','getLastRow','\x20operation(s)\x20successfully,\x20failed\x20','Array\x20value\x20for\x20range\x20(can\x20be\x201D\x20or\x202D)','getOwnPropertyNames','number\x20format','delete_rows','Add\x20one\x20or\x20more\x20data\x20validation\x20rules\x20to\x20the\x20specified\x20sheet.\x0aIt\x20can\x20also\x20be\x20used\x20to\x20specify\x20the\x20interaction\x20between\x20cells\x20using\x20date\x20selector,\x20drop-down,\x20checkboxes,\x20and\x20so\x20on\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rules:\x20List\x20of\x20DataValidationRule\x20(rule_id\x20auto-generated\x20if\x20not\x20provided)\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','Invalid\x20position\x20or\x20how_many\x20parameter','endAbsoluteRefType','font\x20color','get_range_data','\x20operation(s):\x20','formulaToA1','array','\x0aCurrent\x20Active\x20range:\x20','getCellDataGrid','BETWEEN','def','Generic\x20error','Validation\x20operator\x20(Used\x20in\x20combination\x20with\x20integer,\x20decimal,\x20date,\x20time,\x20text_length,\x20not\x20required):\x0aRange:\x20\x22between\x22,\x20\x22notBetween\x22\x0aSingle\x20value:\x20\x22equal\x22,\x20\x22notEqual\x22,\x20\x22greaterThan\x22,\x20\x22greaterThanOrEqual\x22,\x20\x22lessThan\x22,\x20\x22lessThanOrEqual\x22','top','call','AbsoluteRefType','Only\x20the\x20first\x20200\x20errors\x20are\x20shown\x20due\x20to\x20volume.','loose','All\x20requests\x20failed.\x20Errors:\x20','The\x20cell/range\x20in\x20A1\x20notation\x20(e.g.,\x20\x22A1\x22,\x20\x22B2:C3\x22),\x20or\x20a\x20list\x20of\x20such\x20strings.','DeleteCfCommand','\x0a\x20-\x20First\x2050\x20sheet\x20names:\x20','insertRowsAfter','Format\x20brush\x20copied\x20style\x20from\x20','lessThanOrEqual','font\x20color,\x20e.g.,\x20\x22#000000\x22','Row\x20index\x20(0-based)\x20where\x20to\x20insert','getFormulas','Get\x20all\x20conditional\x20formatting\x20rules\x20for\x20the\x20given\x20sheet.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0aReturns:\x0a\x20\x20\x20\x20List\x20of\x20rule','List\x20of\x20InsertRowOperation\x20objects\x20for\x20each\x20insert\x20operation','LIST_MULTIPLE','screenshot','\x20sheet(s),\x20reason(s):\x20','set_display_status:\x20','UniverAPI\x20not\x20available','##\x20Styles\x20class\x20define','getScreenshotOnNode','timePeriod','(default\x20\x22stop\x22)\x0a\x22stop\x22:\x20Stop\x20input\x0a\x22warning\x22:\x20Warning\x0a\x22information\x22:\x20Information','Success','_configService','underline','Get\x20comprehensive\x20lint\x20errors\x20from\x20the\x20active\x20workbook,\x20including\x20formula\x20errors\x20and\x20data\x20validation\x20errors.\x20Returns\x20errors\x20grouped\x20by\x20sheet,\x20with\x20each\x20error\x20showing\x20the\x20cell\x20address\x20(e.g.,\x20\x22A1\x22)\x20and\x20a\x20description\x20of\x20the\x20issue.\x20If\x20there\x20are\x20more\x20than\x20200\x20errors,\x20only\x20the\x20first\x20200\x20will\x20be\x20shown\x20with\x20a\x20truncation\x20note.','Delete\x20one\x20or\x20more\x20conditional\x20formatting\x20rules\x20by\x20ID.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rule_ids:\x20List\x20of\x20conditional\x20formatting\x20rule\x20IDs\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','Unsupported\x20highlight\x20cell\x20sub-type:\x20','getRowHeight','is_percent','List\x20of\x20DataValidationRule\x20(rule_id\x20auto-generated\x20if\x20not\x20provided)','backgroundColor','##\x20Data','Add\x20one\x20or\x20more\x20conditional\x20formatting\x20rules\x20to\x20the\x20given\x20sheet.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rules:\x20List\x20of\x20ConditionalFormatRule\x20(if\x20rule_id\x20is\x20not\x20provided,\x20it\x20will\x20be\x20generated)\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','setValue','sub_type','set_conditional_formatting_rule','INFO','isArray','LEFT','ff:','Data\x20validation\x20rule\x20with\x20id\x20','positive_color','CFSubRuleType','values','yesterday','sheetManagementTools','greaterThanOrEqual','getRowCount','border','it:1','top\x20padding','CFTimePeriodOperator','\x20rule(s)\x20successfully,\x20failed\x20','CFRuleType','getA1Notation','styleToA1','localeCompare','Workbook\x20is\x20not\x20active.',',\x20sheet=','data','Unrecognized\x20function\x20or\x20name\x20error','getAllDataValidationErrorAsync','Created\x20','Array\x20spill\x20error','TRUE','forEach','color','get_activity_status\x20screenshot\x20is\x20ignored\x20in\x20node\x20runtime','syncExecuteCommand','New\x20name\x20for\x20the\x20sheet','notBetween','both','CFNumberOperator','add_conditional_formatting_rule','AddSheetDataValidationCommand','getFormula','Batch\x20rename\x20multiple\x20worksheets.\x20Efficiently\x20renames\x20multiple\x20sheets\x20in\x20one\x20operation.','Second\x20value,\x20only\x20for\x20\x22between\x22\x20or\x20\x22notBetween\x22','sheets.mcp.size-usage-analyzer','UNIVER_SHEET','custom_formula','dataValidationTools','List\x20of\x20DeleteColumnOperation\x20objects\x20for\x20each\x20delete\x20operation','allow_multiple','return_style','packageName','show_dropdown','rule_ids','fromModule','bc:','(default\x20true)','IRPCChannelService','style','where\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27','toDataBarConfig','Failed\x20to\x20get\x20error\x20information:','Get\x20the\x20currently\x20active\x20unit_id\x20for\x20this\x20session.\x20Raises\x20an\x20exception\x20if\x20no\x20workbook\x20is\x20active.','insert_columns','delete_rows:\x20pos=','checkbox','Sheet\x20\x22','Activate/switch\x20to\x20the\x20worksheet\x20with\x20the\x20given\x20name.','fc:','indexToColumn','sheetName','visible','abs','LexerTreeBuilder','getAllFormulaError','setConfig','dataHash','from','List\x20of\x20CellDimensionRequest','nf:','insert_columns:\x20pos=','Type\x20of\x20validation:\x0a\x22list\x22:\x20select\x20from\x20list\x0a\x22integer\x22:\x20Integer\x20validation\x0a\x22decimal\x22:\x20Decimal\x20validation\x0a\x22date\x22:\x20Date\x20control\x0a\x22text_length\x22:\x20Text\x20length\x20validation\x0a\x22custom_formula\x22:\x20Custom\x20formula\x20validation\x0a\x22checkbox\x22:\x20Checkbox\x20control','ul:1','fs:','last7Days','active','insert_rows:\x20pos=','add_data_validation_rule','iterator','value_type','success','_worksheet',',\x20maybe\x20range\x20too\x20large\x20or\x20empty.','Batch\x20insert\x20empty\x20columns\x20for\x20multiple\x20operations.\x20Efficiently\x20inserts\x20columns\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','Failed\x20to\x20delete\x20columns:\x20','sheets.mcp.cell-usage-analyzer','Name\x20of\x20the\x20worksheet\x20to\x20activate','Set\x20(replace)\x20all\x20conditional\x20formatting\x20rules\x20for\x20the\x20given\x20sheet.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rules:\x20List\x20of\x20ConditionalFormatRule\x20with\x20rule_id\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','mixed','range_a1\x20must\x20be\x20a\x20string\x20or\x20a\x20list\x20of\x20strings','value','show_error_message','insert_rows','Height\x20in\x20points\x20(pt)\x20for\x20rows','List\x20of\x20ConditionalFormatRule\x20(if\x20rule_id\x20is\x20not\x20provided,\x20it\x20will\x20be\x20generated)','startRow','ALL','A1\x20notation\x20(e.g.,\x20\x22Sheet1!A:C\x22,\x20\x22A:A\x22,\x20\x221:5\x22)','max_type','\x20rule(s)\x20successfully.','max','range_a1\x20is\x20required','Processed\x20','create','General','how_many','allowBlank','getActiveWorkbook','has','List\x20of\x20DataValidationRule\x20with\x20rule_id','generateId','CommandService\x20not\x20available','Range\x20string\x20(A1\x20notation)','sequenceNodesBuilder','List\x20of\x20DeleteRowOperation\x20objects\x20for\x20each\x20delete\x20operation','Unknown\x20formula\x20error','Custom\x20formula','positive_color\x20type\x20expected\x20string','length','List\x20of\x20ConditionalFormatRule\x20with\x20rule_id','sheet.operation.set-selections','moveSheet','get_lint_errors','getSheetByName','Data\x20validation\x20rule\x20id\x20is\x20required\x20for\x20setting\x20a\x20rule.','TextDecoration','number','rule_type','getSheetName','Name\x20of\x20the\x20worksheet\x20to\x20move','DataValidationType','dataValidation','keyword','cfId','nextWeek','SetColWidthCommand','round','Get\x20all\x20data\x20validation\x20rules\x20for\x20the\x20specified\x20sheet.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0aReturns:\x0a\x20\x20\x20\x20List\x20of\x20rules','Hidden','toColorScaleConfig','input_title','search_cells','union','sheet_names','Batch\x20delete\x20columns\x20for\x20multiple\x20operations.\x20Efficiently\x20deletes\x20columns\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','text_length','nodeType','getScreenshot','Failed\x20to\x20delete\x20sheet\x20\x27','function','Array\x20of\x20widths\x20in\x20points\x20for\x20multiple\x20columns','AddCfCommand','requests','0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','Conditional\x20formatting\x20rule\x20with\x20id\x20','Optional\x20sheet\x20name\x20to\x20extract\x20formulas\x20from.\x20If\x20not\x20provided,\x20uses\x20the\x20active\x20sheet.','bot','stop_if_true','\x27\x20already\x20exists','getSheetId','generateRandomId','set_range_data','native_color','to_index','stringify','SINGLE','Copy\x20formatting\x20from\x20source_range\x20to\x20target_range\x20using\x20Univer\x27s\x20format\x20painter\x20commands.\x20Internally\x20sets\x20the\x20format\x20painter\x20on\x20the\x20source,\x20then\x20applies\x20to\x20the\x20target\x20range.\x20Supports\x20single\x20cell,\x20range,\x20and\x20cross-sheet\x20operations.\x20Example\x20usage:\x20format_brush(\x22A1\x22,\x20\x22B1:C1\x22),\x20format_brush(\x22A1:B2\x22,\x20\x22D1:E2\x22),\x20format_brush(\x22Sheet1!A1\x22,\x20\x22Sheet2!B1\x22)','list','getCellStyles','items\x20must\x20be\x20array\x20of\x20BatchRangeStyleItem','getId','slice','items','includes','Set\x20','_commandService','native_color\x20type\x20expected\x20string','input_message','thisWeek','vertical\x20alignment,\x201\x20normal,\x202\x20subscript,\x203\x20superscript','2391426canHjC','2832384JiEUna','background\x20color','filledRanges','get','Screenshot\x20failed:\x20','any','showTime','sheets.mcp.style-usage-analyzer','\x20rule(s):\x20','354174BuoMgm','##\x20Errors','hidden','get_active_unit_id','between','error_title','\x0a\x0aCurrent\x20Active\x20sheet:\x20','Source\x20range\x20in\x20A1\x20notation,\x20supports\x20cross-sheet\x20(e.g.,\x20\x22Sheet1!A1\x22)','DataValidationOperator','set_data_validation_rule','image/png','enum','today','endRow','after','Set\x20display\x20status\x20for\x20','Inserted\x20','Renamed\x20','\x20position\x20','Number\x20of\x20rows\x20to\x20insert\x20(default\x201)','points','createIdentifier','getFormulaHash','rgb','range','Invalid\x20input','\x20does\x20not\x20exist\x20in\x20worksheet.','conditionalFormattingTools','overline','isShowValue','endColumn','fromHighlightCellConfig','List\x20of\x20data\x20validation\x20rule\x20IDs','Failed\x20to\x20delete\x20rows:\x20','setName','range_a1','Error\x20getting\x20lint\x20errors:\x20','DATE','cl:','error_message','```\x0a','validation_type','column','Failed\x20to\x20rename\x20sheets:\x20','Sheet\x20interceptor\x20processing\x20failed,\x20using\x20original\x20value:','height','Unknown\x20error','Target\x20sheet\x20name','properties','colorScale','BOTH','RemoveSheetDataValidationCommand','strikethrough','startColumn','Column\x20index\x20(0-based)\x20where\x20to\x20insert','center','delete_columns','fromDataBarConfig','\x20dimension\x20request(s)','CUSTOM','Deleted\x20rows\x20in\x20','optional','MIDDLE','ignore_blank','Connecting\x20to\x20remote\x20data\x20source','getSheets','columnToIndex','serializeRangeToRefString','Data\x20validation\x20error','getSubunitRules','Failed\x20to\x20delete\x20sheets:\x20','row','validation_type\x20is\x20required','toHighlightCellConfig','percentile','endsWith','extract_formulas','IFormulaUsageAnalyzer',')\x20doesn\x27t\x20match\x20row\x20count\x20(','Number\x20of\x20columns\x20to\x20insert\x20(default\x201)','rule_id','width','CFValueType','delete_sheet:\x20','isPercent','Batch\x20set\x20value\x20or\x20formula\x20for\x20multiple\x20ranges\x20in\x20the\x20active\x20workbook.\x20Efficiently\x20sets\x20data\x20for\x20multiple\x20ranges\x20in\x20one\x20operation.','insertRowsBefore','rule','Name\x20of\x20the\x20sheet\x20to\x20modify\x20display\x20status','position','positiveColor','default','priority','Wrong\x20data\x20type\x20or\x20invalid\x20argument\x20error'];_0x1175=function(){return _0x44d9f2;};return _0x1175();}async function setConditionalFormattingRule(_0x6119d2,_0x438f84){const _0x55c9dc=_0x620e0f,_0x5d7610=getUniverAPI();if(!_0x5d7610)throw new Error(_0x55c9dc(0x4b6));try{const _0x5e6c2b=_0x5d7610[_0x55c9dc(0x249)](),_0x20507d=_0x5e6c2b===null||_0x5e6c2b===void 0x0?void 0x0:_0x5e6c2b[_0x55c9dc(0x259)](_0x6119d2);if(!_0x20507d)throw new Error(_0x55c9dc(0x303)+_0x6119d2+_0x55c9dc(0x3e4));if(!_0x5e6c2b)throw new Error(_0x55c9dc(0x1eb));let _0xe83006=0x0;const _0x651b8b=[];for(const _0x26d350 of _0x438f84)try{if(!_0x26d350[_0x55c9dc(0x2ec)])throw new Error('Conditional\x20formatting\x20rule\x20id\x20is\x20required\x20for\x20setting\x20a\x20rule.');const _0x2535ed=getRuleById(_0x5d7610,_0x20507d,_0x26d350[_0x55c9dc(0x2ec)]),_0x451b04=ConditionalFormatConverter[_0x55c9dc(0x36c)]({..._0x2535ed,..._0x26d350}),_0x1cda83={'unitId':_0x5e6c2b[_0x55c9dc(0x288)](),'subUnitId':_0x20507d[_0x55c9dc(0x27d)](),'rule':_0x451b04,'cfId':_0x26d350[_0x55c9dc(0x2ec)]};_0x5d7610[_0x55c9dc(0x28d)][_0x55c9dc(0x1f6)](_univerjs_sheets_conditional_formatting['SetCfCommand']['id'],_0x1cda83);if(_0x2535ed[_0x55c9dc(0x2f8)]!==_0x26d350[_0x55c9dc(0x2f8)])adjustConditionalFormattingRulePriority(_0x5d7610,_0x6119d2,_0x26d350[_0x55c9dc(0x2ec)],_0x26d350[_0x55c9dc(0x2f8)]);_0xe83006++;}catch(_0x14a577){_0x651b8b[_0x55c9dc(0x33e)]((_0x14a577===null||_0x14a577===void 0x0?void 0x0:_0x14a577[_0x55c9dc(0x3aa)])||String(_0x14a577));}if(_0x651b8b[_0x55c9dc(0x254)]===0x0)return _0x55c9dc(0x28c)+_0xe83006+_0x55c9dc(0x362)+_0x6119d2+'\x27';else{if(_0xe83006>0x0)return _0x55c9dc(0x28c)+_0xe83006+_0x55c9dc(0x362)+_0x6119d2+'\x27,\x20failed\x20'+_0x651b8b[_0x55c9dc(0x254)]+'\x20rule(s):\x20'+_0x651b8b[_0x55c9dc(0x344)](';\x20');else throw new Error(_0x55c9dc(0x430)+_0x651b8b['join'](';\x20'));}}catch(_0x5653b5){const _0x2c3dbe=_0x5653b5 instanceof Error?_0x5653b5[_0x55c9dc(0x3aa)]:String(_0x5653b5);throw new Error(_0x2c3dbe[_0x55c9dc(0x363)]('\x0a')[0x0]||_0x55c9dc(0x2ca));}}async function deleteConditionalFormattingRule(_0x317b10,_0x1676fe){const _0x45b0db=_0x620e0f,_0x57ff5c=getUniverAPI();if(!_0x57ff5c)throw new Error('UniverAPI\x20not\x20available');try{const _0xc6a65f=_0x57ff5c[_0x45b0db(0x249)](),_0x57cceb=_0xc6a65f===null||_0xc6a65f===void 0x0?void 0x0:_0xc6a65f[_0x45b0db(0x259)](_0x317b10);if(!_0x57cceb)throw new Error('Worksheet\x20with\x20name\x20'+_0x317b10+_0x45b0db(0x3e4));if(!_0xc6a65f)throw new Error('Workbook\x20is\x20not\x20active.');let _0xeb366e=0x0;const _0x57550f=[];for(const _0x2cc2ba of _0x1676fe)try{if(!(_0x57ff5c[_0x45b0db(0x395)]['get'](_univerjs_sheets_conditional_formatting[_0x45b0db(0x33c)])['getSubunitRules'](_0xc6a65f[_0x45b0db(0x288)](),_0x57cceb['getSheetId']())||[])['find'](_0xa1bcc6=>_0xa1bcc6[_0x45b0db(0x263)]===_0x2cc2ba))continue;const _0x4e8b86={'unitId':_0xc6a65f['getId'](),'subUnitId':_0x57cceb[_0x45b0db(0x27d)](),'cfId':_0x2cc2ba};_0x57ff5c[_0x45b0db(0x28d)]['syncExecuteCommand'](_univerjs_sheets_conditional_formatting[_0x45b0db(0x4a8)]['id'],_0x4e8b86),_0xeb366e++;}catch(_0x7ff7f3){_0x57550f['push']((_0x7ff7f3===null||_0x7ff7f3===void 0x0?void 0x0:_0x7ff7f3[_0x45b0db(0x3aa)])||String(_0x7ff7f3));}if(_0x57550f[_0x45b0db(0x254)]===0x0)return _0x45b0db(0x415)+_0xeb366e+_0x45b0db(0x30d)+_0x317b10+'\x27';else{if(_0xeb366e>0x0)return _0x45b0db(0x415)+_0xeb366e+_0x45b0db(0x30d)+_0x317b10+_0x45b0db(0x36e)+_0x57550f[_0x45b0db(0x254)]+'\x20rule(s):\x20'+_0x57550f[_0x45b0db(0x344)](';\x20');else throw new Error(_0x45b0db(0x473)+_0x57550f[_0x45b0db(0x344)](';\x20'));}}catch(_0x3db018){const _0x590da5=_0x3db018 instanceof Error?_0x3db018[_0x45b0db(0x3aa)]:String(_0x3db018);throw new Error(_0x590da5[_0x45b0db(0x363)]('\x0a')[0x0]||_0x45b0db(0x2ca));}}async function getConditionalFormattingRules(_0x2e1422){const _0x3a5e50=_0x620e0f,_0x3c7768=getUniverAPI();if(!_0x3c7768)throw new Error('UniverAPI\x20not\x20available');try{return getConditionalFormattingRulesInternal(_0x3c7768,_0x2e1422)[_0x3a5e50(0x481)](_0x3ca1c2=>JSON['stringify'](_0x3ca1c2))[_0x3a5e50(0x344)]('\x0a');}catch(_0x4a6635){const _0x10c067=_0x4a6635 instanceof Error?_0x4a6635[_0x3a5e50(0x3aa)]:String(_0x4a6635);throw new Error(_0x10c067[_0x3a5e50(0x363)]('\x0a')[0x0]||_0x3a5e50(0x2ca));}}const conditionalFormattingTools=[{'name':_0x620e0f(0x1fb),'description':_0x620e0f(0x4c6),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)]('Target\x20sheet\x20name'),'rules':_univerjs_pro_mcp['z']['array'](ZodConditionalFormatRuleSchema)[_0x620e0f(0x31a)](_0x620e0f(0x23c))}),'execute':async _0x2c27d7=>addConditionalFormattingRule(_0x2c27d7[_0x620e0f(0x3eb)],_0x2c27d7['rules'])},{'name':_0x620e0f(0x4c9),'description':_0x620e0f(0x235),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_name':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x31a)](_0x620e0f(0x2cb)),'rules':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](ZodConditionalFormatRuleSchema)[_0x620e0f(0x31a)](_0x620e0f(0x255))}),'execute':async _0x376a77=>setConditionalFormattingRule(_0x376a77['sheet_name'],_0x376a77[_0x620e0f(0x341)])},{'name':_0x620e0f(0x3d3),'description':_0x620e0f(0x4bf),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x2cb)),'rule_ids':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](_univerjs_pro_mcp['z'][_0x620e0f(0x370)]())[_0x620e0f(0x31a)](_0x620e0f(0x36a))}),'execute':async _0x30a353=>deleteConditionalFormattingRule(_0x30a353[_0x620e0f(0x3eb)],_0x30a353['rule_ids'])},{'name':_0x620e0f(0x3c6),'description':_0x620e0f(0x4b0),'inputSchema':_univerjs_pro_mcp['z']['object']({'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)]('Target\x20sheet\x20name')}),'execute':async _0x13635f=>getConditionalFormattingRules(_0x13635f[_0x620e0f(0x3eb)])}];var DataValidationConverter=class{static[_0x620e0f(0x36c)](_0x1f9bfa){const _0x3b77ac=_0x620e0f;var _0x39e479,_0x3aefbd;if(!_0x1f9bfa[_0x3b77ac(0x2bf)])throw new Error(_0x3b77ac(0x243));if(!_0x1f9bfa[_0x3b77ac(0x2c5)])throw new Error(_0x3b77ac(0x2e4));const _0x5db5e3=_0x1f9bfa['validation_type']['toLocaleLowerCase']();if(_0x1f9bfa['operator']&&_0x1f9bfa[_0x3b77ac(0x3c3)]===void 0x0)throw new Error(_0x3b77ac(0x31b));const _0x64054=[_univerjs_core[_0x3b77ac(0x2a4)][_0x3b77ac(0x49d)],_univerjs_core[_0x3b77ac(0x2a4)]['NOT_BETWEEN']];if(_0x1f9bfa['operator']&&_0x64054[_0x3b77ac(0x28b)](_0x1f9bfa['operator'])&&_0x1f9bfa[_0x3b77ac(0x404)]===void 0x0)throw new Error('value2\x20is\x20required\x20for\x20operator:\x20'+_0x1f9bfa[_0x3b77ac(0x3f4)]);if(_0x5db5e3==='list'&&!_0x1f9bfa['source'])throw new Error(_0x3b77ac(0x3df));if(_0x5db5e3==='custom_formula'&&!_0x1f9bfa[_0x3b77ac(0x202)]&&!_0x1f9bfa[_0x3b77ac(0x3c3)])throw new Error('custom_formula\x20are\x20required\x20for\x20validation_type:\x20custom_formula');const _0x5292b5={'list':_univerjs_core['DataValidationType'][_0x3b77ac(0x353)],'integer':_univerjs_core[_0x3b77ac(0x260)]['WHOLE'],'decimal':_univerjs_core[_0x3b77ac(0x260)][_0x3b77ac(0x410)],'date':_univerjs_core['DataValidationType'][_0x3b77ac(0x2c1)],'text_length':_univerjs_core[_0x3b77ac(0x260)][_0x3b77ac(0x480)],'custom_formula':_univerjs_core[_0x3b77ac(0x260)][_0x3b77ac(0x2d7)],'checkbox':_univerjs_core[_0x3b77ac(0x260)][_0x3b77ac(0x387)]};if(!_0x5292b5[_0x5db5e3])throw new Error('Unsupported\x20validation_type:\x20'+_0x1f9bfa['validation_type']);const _0x169853=_0x1f9bfa[_0x3b77ac(0x3e6)]?_0x1f9bfa[_0x3b77ac(0x3e6)][_0x3b77ac(0x41b)]():'stop',_0x1a700d={'stop':_univerjs_core[_0x3b77ac(0x334)]['STOP'],'warning':_univerjs_core['DataValidationErrorStyle'][_0x3b77ac(0x406)],'information':_univerjs_core[_0x3b77ac(0x334)][_0x3b77ac(0x4ca)]};if(!_0x1a700d[_0x169853])throw new Error(_0x3b77ac(0x35f)+_0x1f9bfa[_0x3b77ac(0x3e6)]);const _0x50deb7=_0x1f9bfa['range_a1'][_0x3b77ac(0x363)](',')['map'](_0x51bddb=>{const _0x547de9=_0x3b77ac;return(0x0,_univerjs_engine_formula[_0x547de9(0x3a5)])(_0x51bddb)['range'];}),_0x178830={'uid':_0x1f9bfa[_0x3b77ac(0x2ec)]||this['generateId'](),'type':_0x5292b5[_0x5db5e3],'ranges':_0x50deb7,'allowBlank':_0x1f9bfa[_0x3b77ac(0x2db)]!==![],'operator':_0x1f9bfa[_0x3b77ac(0x3f4)],'formula1':_0x5db5e3===_0x3b77ac(0x285)?_0x1f9bfa[_0x3b77ac(0x47a)]:_0x5db5e3===_0x3b77ac(0x202)?_0x1f9bfa[_0x3b77ac(0x202)]:(_0x39e479=_0x1f9bfa[_0x3b77ac(0x3c3)])===null||_0x39e479===void 0x0?void 0x0:_0x39e479['toString'](),'formula2':(_0x3aefbd=_0x1f9bfa[_0x3b77ac(0x404)])===null||_0x3aefbd===void 0x0?void 0x0:_0x3aefbd[_0x3b77ac(0x3c0)](),'showDropDown':_0x1f9bfa[_0x3b77ac(0x208)]!==![],'showErrorMessage':_0x1f9bfa[_0x3b77ac(0x239)]!==![],'error':_0x1f9bfa[_0x3b77ac(0x2c3)]||_0x3b77ac(0x2b5),'errorStyle':_0x1a700d[_0x169853],'errorTitle':_0x1f9bfa[_0x3b77ac(0x2a1)],'showInputMessage':_0x1f9bfa[_0x3b77ac(0x472)]!==![],'prompt':_0x1f9bfa[_0x3b77ac(0x28f)]||'','promptTitle':_0x1f9bfa['input_title'],'bizInfo':{'showTime':_0x1f9bfa[_0x3b77ac(0x46a)]}};if(_0x5db5e3===_0x3b77ac(0x285)&&_0x1f9bfa['allow_multiple'])_0x178830['type']=_univerjs_core[_0x3b77ac(0x260)][_0x3b77ac(0x4b2)];return _0x178830;}static['fromInternalConfig'](_0x377396){const _0x634163=_0x620e0f;var _0x2b316b;const _0xcd89bc={[_univerjs_core['DataValidationType']['LIST']]:_0x634163(0x285),[_univerjs_core['DataValidationType'][_0x634163(0x4b2)]]:_0x634163(0x285),[_univerjs_core[_0x634163(0x260)]['WHOLE']]:'integer',[_univerjs_core[_0x634163(0x260)]['DECIMAL']]:'decimal',[_univerjs_core[_0x634163(0x260)][_0x634163(0x2c1)]]:_0x634163(0x483),[_univerjs_core[_0x634163(0x260)][_0x634163(0x480)]]:_0x634163(0x26f),[_univerjs_core[_0x634163(0x260)][_0x634163(0x2d7)]]:_0x634163(0x202),[_univerjs_core[_0x634163(0x260)][_0x634163(0x3a8)]]:_0x634163(0x483),[_univerjs_core[_0x634163(0x260)]['CHECKBOX']]:'checkbox',[_univerjs_core['DataValidationType']['NONE']]:'custom_formula',[_univerjs_core[_0x634163(0x260)][_0x634163(0x443)]]:'custom_formula'},_0x156ae7={[_univerjs_core['DataValidationErrorStyle']['STOP']]:_0x634163(0x45d),[_univerjs_core[_0x634163(0x334)][_0x634163(0x406)]]:_0x634163(0x48b),[_univerjs_core[_0x634163(0x334)][_0x634163(0x4ca)]]:'information'},_0x58a361=_0x377396['ranges'][_0x634163(0x481)](_0x22162c=>{return(0x0,_univerjs_engine_formula['serializeRange'])(_0x22162c);})['join'](','),_0xe46923={'rule_id':_0x377396[_0x634163(0x429)],'range_a1':_0x58a361,'validation_type':_0xcd89bc[_0x377396[_0x634163(0x358)]]||'custom_formula'};if(_0x377396[_0x634163(0x3f4)])_0xe46923[_0x634163(0x3f4)]=_0x377396[_0x634163(0x3f4)];if(_0x377396[_0x634163(0x383)]&&_0x377396['type']!==_univerjs_core[_0x634163(0x260)]['LIST']&&_0x377396[_0x634163(0x358)]!==_univerjs_core['DataValidationType'][_0x634163(0x4b2)]&&_0x377396[_0x634163(0x358)]!==_univerjs_core[_0x634163(0x260)][_0x634163(0x2d7)])_0xe46923[_0x634163(0x3c3)]=this[_0x634163(0x3a3)](_0x377396[_0x634163(0x383)],_0x377396[_0x634163(0x358)]);if(_0x377396[_0x634163(0x469)])_0xe46923[_0x634163(0x404)]=this[_0x634163(0x3a3)](_0x377396[_0x634163(0x469)],_0x377396[_0x634163(0x358)]);if(_0x377396[_0x634163(0x358)]===_univerjs_core[_0x634163(0x260)][_0x634163(0x353)]||_0x377396['type']===_univerjs_core[_0x634163(0x260)]['LIST_MULTIPLE']){if(_0x377396[_0x634163(0x383)])_0xe46923['source']=_0x377396[_0x634163(0x383)];if(_0x377396[_0x634163(0x358)]===_univerjs_core['DataValidationType'][_0x634163(0x4b2)])_0xe46923[_0x634163(0x205)]=!![];}if(_0x377396['type']===_univerjs_core[_0x634163(0x260)][_0x634163(0x2d7)]&&_0x377396[_0x634163(0x383)])_0xe46923[_0x634163(0x202)]=_0x377396[_0x634163(0x383)];if(_0x377396[_0x634163(0x248)]===![])_0xe46923[_0x634163(0x2db)]=![];if(_0x377396[_0x634163(0x2fa)]===![])_0xe46923['show_dropdown']=![];if(_0x377396[_0x634163(0x3af)]===![])_0xe46923['show_error_message']=![];if(_0x377396[_0x634163(0x310)]&&_0x377396['errorStyle']!==_univerjs_core[_0x634163(0x334)]['STOP'])_0xe46923['error_style']=_0x156ae7[_0x377396['errorStyle']];if(_0x377396[_0x634163(0x461)])_0xe46923[_0x634163(0x2a1)]=_0x377396[_0x634163(0x461)];if(_0x377396['error']&&_0x377396['error']!==_0x634163(0x2b5))_0xe46923[_0x634163(0x2c3)]=_0x377396['error'];if(_0x377396[_0x634163(0x46f)]===![])_0xe46923[_0x634163(0x472)]=![];if(_0x377396[_0x634163(0x484)])_0xe46923[_0x634163(0x26a)]=_0x377396[_0x634163(0x484)];if(_0x377396['prompt'])_0xe46923[_0x634163(0x28f)]=_0x377396[_0x634163(0x35c)];if((_0x2b316b=_0x377396[_0x634163(0x323)])===null||_0x2b316b===void 0x0?void 0x0:_0x2b316b[_0x634163(0x299)])_0xe46923[_0x634163(0x46a)]=!![];return _0xe46923;}static[_0x620e0f(0x2de)](_0x4a9553){const _0x330d72=_0x620e0f;let _0x4027a8=0x0;for(let _0x3b10c0=0x0;_0x3b10c0<_0x4a9553[_0x330d72(0x254)];_0x3b10c0++)_0x4027a8=_0x4027a8*0x1a+(_0x4a9553[_0x330d72(0x3d4)](_0x3b10c0)-'A'[_0x330d72(0x3d4)](0x0)+0x1);return _0x4027a8-0x1;}static[_0x620e0f(0x219)](_0x4d4bc4){const _0x4b02f7=_0x620e0f;let _0x492fcc='';_0x4d4bc4+=0x1;while(_0x4d4bc4>0x0){_0x4d4bc4-=0x1,_0x492fcc=String[_0x4b02f7(0x40b)]('A'[_0x4b02f7(0x3d4)](0x0)+_0x4d4bc4%0x1a)+_0x492fcc,_0x4d4bc4=Math[_0x4b02f7(0x401)](_0x4d4bc4/0x1a);}return _0x492fcc;}static[_0x620e0f(0x24c)](){const _0x108e03=_0x620e0f;return Math[_0x108e03(0x434)]()[_0x108e03(0x3c0)](0x24)[_0x108e03(0x391)](0x2,0xf)+Math[_0x108e03(0x434)]()[_0x108e03(0x3c0)](0x24)['substring'](0x2,0xf);}static[_0x620e0f(0x3a3)](_0x51598a,_0x249333){const _0x1deaa3=_0x620e0f;if(_0x249333===_univerjs_core['DataValidationType']['WHOLE']||_0x249333===_univerjs_core[_0x1deaa3(0x260)]['DECIMAL']||_0x249333===_univerjs_core[_0x1deaa3(0x260)][_0x1deaa3(0x480)]){const _0x42b261=Number[_0x1deaa3(0x3e5)](_0x51598a);return isNaN(_0x42b261)?_0x51598a:_0x42b261;}return _0x51598a;}};const dataValidationRuleSchema=_univerjs_pro_mcp['z']['object']({'rule_id':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()['optional']()[_0x620e0f(0x31a)](_0x620e0f(0x33f)),'range_a1':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()['describe'](_0x620e0f(0x351)),'validation_type':_univerjs_pro_mcp['z']['enum']([_0x620e0f(0x285),_0x620e0f(0x47f),_0x620e0f(0x3ad),_0x620e0f(0x483),_0x620e0f(0x26f),_0x620e0f(0x202),_0x620e0f(0x215)])['describe'](_0x620e0f(0x225)),'operator':_univerjs_pro_mcp['z']['enum'](_univerjs_core[_0x620e0f(0x2a4)])[_0x620e0f(0x2d9)]()['describe'](_0x620e0f(0x4a0)),'value1':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x620e0f(0x25c)](),_univerjs_pro_mcp['z']['string']()])['optional']()[_0x620e0f(0x31a)](_0x620e0f(0x42c)),'value2':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x25c)](),_univerjs_pro_mcp['z'][_0x620e0f(0x370)](),_univerjs_pro_mcp['z'][_0x620e0f(0x302)]()])[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x1ff)),'source':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x436)),'allow_multiple':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x400)),'custom_formula':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x252)),'show_time':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)]('Show\x20time\x20in\x20date\x20picker\x20(default\x20false)'),'ignore_blank':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x20c)),'show_dropdown':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x20c)),'show_error_message':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x20c)),'error_style':_univerjs_pro_mcp['z'][_0x620e0f(0x2a7)]([_0x620e0f(0x45d),_0x620e0f(0x48b),_0x620e0f(0x46d)])[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x4ba)),'error_title':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x32c)),'error_message':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x2d9)]()['describe'](_0x620e0f(0x375)),'show_input_message':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x20c)),'input_title':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x32c)),'input_message':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x405))})[_0x620e0f(0x4a5)]();async function addDataValidationRule(_0x1e31ee,_0x1b278d){const _0xaef109=_0x620e0f,_0x2609fa=getUniverAPI();if(!_0x2609fa)throw new Error(_0xaef109(0x4b6));try{const _0xf6d54b=_0x2609fa[_0xaef109(0x249)](),_0x52651c=_0xf6d54b===null||_0xf6d54b===void 0x0?void 0x0:_0xf6d54b[_0xaef109(0x259)](_0x1e31ee);if(!_0x52651c)throw new Error(_0xaef109(0x303)+_0x1e31ee+'\x20does\x20not\x20exist.');if(!_0xf6d54b)throw new Error(_0xaef109(0x1eb));const _0x142ed7=_0x2609fa['_injector'][_0xaef109(0x296)](_univerjs_sheets_data_validation['SheetDataValidationModel'])[_0xaef109(0x3dd)](_0xf6d54b['getId'](),_0x52651c[_0xaef109(0x27d)]());let _0x1cd55b=0x0;const _0x4d4ba1=[];for(const _0x12040a of _0x1b278d)try{if(!_0x12040a['rule_id'])_0x12040a['rule_id']=(0x0,_univerjs_core[_0xaef109(0x27e)])(0x7);if(_0x142ed7[_0xaef109(0x421)](_0x47b340=>_0x47b340[_0xaef109(0x429)]===_0x12040a[_0xaef109(0x2ec)]))throw new Error(_0xaef109(0x4ce)+_0x12040a[_0xaef109(0x2ec)]+'\x20already\x20exists\x20in\x20worksheet\x20'+_0x1e31ee+'.');const _0x76dfff=DataValidationConverter[_0xaef109(0x36c)](_0x12040a),_0x3fbc42={'unitId':_0xf6d54b[_0xaef109(0x288)](),'subUnitId':_0x52651c[_0xaef109(0x27d)](),'rule':_0x76dfff};_0x2609fa[_0xaef109(0x28d)][_0xaef109(0x1f6)](_univerjs_sheets_data_validation[_0xaef109(0x1fc)]['id'],_0x3fbc42),_0x1cd55b++;}catch(_0x5aa5e0){_0x4d4ba1['push']((_0x5aa5e0===null||_0x5aa5e0===void 0x0?void 0x0:_0x5aa5e0[_0xaef109(0x3aa)])||String(_0x5aa5e0));}if(_0x4d4ba1[_0xaef109(0x254)]===0x0)return _0xaef109(0x1f0)+_0x1cd55b+_0xaef109(0x241);else{if(_0x1cd55b>0x0)return _0xaef109(0x1f0)+_0x1cd55b+'\x20rule(s)\x20successfully,\x20failed\x20'+_0x4d4ba1[_0xaef109(0x254)]+_0xaef109(0x444)+_0x4d4ba1[_0xaef109(0x344)](';\x20');else throw new Error(_0xaef109(0x3f6)+_0x4d4ba1[_0xaef109(0x344)](';\x20'));}}catch(_0x1e84f5){const _0x4fde47=_0x1e84f5 instanceof Error?_0x1e84f5[_0xaef109(0x3aa)]:String(_0x1e84f5);throw new Error(_0x4fde47[_0xaef109(0x363)]('\x0a')[0x0]||'Unknown\x20error');}}async function setDataValidationRule(_0x232d76,_0x265d13){const _0x68f751=_0x620e0f,_0x5e9dcb=getUniverAPI();if(!_0x5e9dcb)throw new Error(_0x68f751(0x4b6));try{const _0x3321ed=_0x5e9dcb[_0x68f751(0x249)](),_0x33ecf9=_0x3321ed===null||_0x3321ed===void 0x0?void 0x0:_0x3321ed[_0x68f751(0x259)](_0x232d76);if(!_0x33ecf9)throw new Error(_0x68f751(0x303)+_0x232d76+'\x20does\x20not\x20exist.');if(!_0x3321ed)throw new Error(_0x68f751(0x1eb));let _0x22feee=0x0;const _0x36e925=[];for(const _0x4ada69 of _0x265d13)try{if(!_0x4ada69[_0x68f751(0x2ec)])throw new Error(_0x68f751(0x25a));const _0x5f54d7=_0x5e9dcb[_0x68f751(0x395)][_0x68f751(0x296)](_univerjs_sheets_data_validation[_0x68f751(0x422)])[_0x68f751(0x412)](_0x3321ed[_0x68f751(0x288)](),_0x33ecf9[_0x68f751(0x27d)](),_0x4ada69['rule_id']);if(!_0x5f54d7)throw new Error(_0x68f751(0x4ce)+_0x4ada69[_0x68f751(0x2ec)]+_0x68f751(0x2b6));const _0x311942=DataValidationConverter[_0x68f751(0x46e)](_0x5f54d7),_0x9ea956=DataValidationConverter[_0x68f751(0x36c)]({..._0x311942,..._0x4ada69}),_0x1d8ffd={'unitId':_0x3321ed[_0x68f751(0x288)](),'subUnitId':_0x33ecf9['getSheetId'](),'ruleId':_0x4ada69[_0x68f751(0x2ec)],'setting':_0x9ea956};_0x5e9dcb[_0x68f751(0x28d)][_0x68f751(0x1f6)](_univerjs_sheets_data_validation['UpdateSheetDataValidationSettingCommand']['id'],_0x1d8ffd),_0x22feee++;}catch(_0x44750c){_0x36e925[_0x68f751(0x33e)]((_0x44750c===null||_0x44750c===void 0x0?void 0x0:_0x44750c['message'])||String(_0x44750c));}if(_0x36e925['length']===0x0)return _0x68f751(0x361)+_0x22feee+_0x68f751(0x241);else{if(_0x22feee>0x0)return _0x68f751(0x361)+_0x22feee+'\x20rule(s)\x20successfully,\x20failed\x20'+_0x36e925['length']+_0x68f751(0x444)+_0x36e925['join'](';\x20');else throw new Error('Failed\x20to\x20modify\x20rule(s):\x20'+_0x36e925[_0x68f751(0x344)](';\x20'));}}catch(_0x3bb76a){const _0x36c170=_0x3bb76a instanceof Error?_0x3bb76a[_0x68f751(0x3aa)]:String(_0x3bb76a);throw new Error(_0x36c170[_0x68f751(0x363)]('\x0a')[0x0]||_0x68f751(0x2ca));}}async function deleteDataValidationRule(_0x2e2d86,_0x1382ed){const _0x2a287d=_0x620e0f,_0x43ca6e=getUniverAPI();if(!_0x43ca6e)throw new Error('UniverAPI\x20not\x20available');try{const _0x2812e7=_0x43ca6e[_0x2a287d(0x249)](),_0x1dde4a=_0x2812e7===null||_0x2812e7===void 0x0?void 0x0:_0x2812e7[_0x2a287d(0x259)](_0x2e2d86);if(!_0x1dde4a)throw new Error('Worksheet\x20with\x20name\x20'+_0x2e2d86+_0x2a287d(0x3e4));if(!_0x2812e7)throw new Error('Workbook\x20is\x20not\x20active.');const _0x490bb5=_0x43ca6e[_0x2a287d(0x395)][_0x2a287d(0x296)](_univerjs_sheets_data_validation[_0x2a287d(0x422)])[_0x2a287d(0x3dd)](_0x2812e7[_0x2a287d(0x288)](),_0x1dde4a['getSheetId']());let _0x3ce366=0x0;const _0x4d325f=[];for(const _0x5a80f1 of _0x1382ed)try{if(!_0x490bb5['find'](_0x3c5a09=>_0x3c5a09[_0x2a287d(0x429)]===_0x5a80f1))throw new Error('Data\x20validation\x20rule\x20with\x20id\x20'+_0x5a80f1+_0x2a287d(0x423)+_0x2e2d86+'.');const _0x799ab1={'unitId':_0x2812e7[_0x2a287d(0x288)](),'subUnitId':_0x1dde4a[_0x2a287d(0x27d)](),'ruleId':_0x5a80f1};_0x43ca6e[_0x2a287d(0x28d)]['syncExecuteCommand'](_univerjs_sheets_data_validation[_0x2a287d(0x2cf)]['id'],_0x799ab1),_0x3ce366++;}catch(_0x3593f4){_0x4d325f[_0x2a287d(0x33e)]((_0x3593f4===null||_0x3593f4===void 0x0?void 0x0:_0x3593f4[_0x2a287d(0x3aa)])||String(_0x3593f4));}if(_0x4d325f[_0x2a287d(0x254)]===0x0)return _0x2a287d(0x415)+_0x3ce366+'\x20rule(s)\x20successfully.';else{if(_0x3ce366>0x0)return _0x2a287d(0x415)+_0x3ce366+_0x2a287d(0x1e6)+_0x4d325f[_0x2a287d(0x254)]+_0x2a287d(0x444)+_0x4d325f[_0x2a287d(0x344)](';\x20');else throw new Error(_0x2a287d(0x309)+_0x4d325f[_0x2a287d(0x344)](';\x20'));}}catch(_0x227350){const _0x5bf796=_0x227350 instanceof Error?_0x227350[_0x2a287d(0x3aa)]:String(_0x227350);throw new Error(_0x5bf796[_0x2a287d(0x363)]('\x0a')[0x0]||_0x2a287d(0x2ca));}}async function getDataValidationRules(_0x5f5998){const _0x184447=_0x620e0f,_0x29f5db=getUniverAPI();if(!_0x29f5db)throw new Error(_0x184447(0x4b6));try{const _0xb901b6=_0x29f5db[_0x184447(0x249)](),_0x4de1bc=_0xb901b6===null||_0xb901b6===void 0x0?void 0x0:_0xb901b6[_0x184447(0x259)](_0x5f5998);if(!_0x4de1bc)throw new Error(_0x184447(0x303)+_0x5f5998+_0x184447(0x3e4));if(!_0xb901b6)throw new Error('Workbook\x20is\x20not\x20active.');return(_0x29f5db[_0x184447(0x395)][_0x184447(0x296)](_univerjs_sheets_data_validation['SheetDataValidationModel'])[_0x184447(0x3dd)](_0xb901b6[_0x184447(0x288)](),_0x4de1bc['getSheetId']())||[])[_0x184447(0x481)](_0x514524=>{const _0x119b61=_0x184447;return DataValidationConverter[_0x119b61(0x46e)](_0x514524);})[_0x184447(0x481)](_0x39dd07=>JSON[_0x184447(0x282)](_0x39dd07))[_0x184447(0x344)]('\x0a');}catch(_0x592680){const _0x242c8e=_0x592680 instanceof Error?_0x592680['message']:String(_0x592680);throw new Error(_0x242c8e[_0x184447(0x363)]('\x0a')[0x0]||'Unknown\x20error');}}const dataValidationTools=[{'name':_0x620e0f(0x22b),'description':_0x620e0f(0x493),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x2cb)),'rules':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](dataValidationRuleSchema)['describe'](_0x620e0f(0x4c3))}),'execute':async _0x4b5bfd=>addDataValidationRule(_0x4b5bfd['sheet_name'],_0x4b5bfd[_0x620e0f(0x341)])},{'name':_0x620e0f(0x2a5),'description':_0x620e0f(0x471),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_name':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x31a)](_0x620e0f(0x2cb)),'rules':_univerjs_pro_mcp['z']['array'](dataValidationRuleSchema)[_0x620e0f(0x31a)](_0x620e0f(0x24b))}),'execute':async _0x3eb7d8=>setDataValidationRule(_0x3eb7d8[_0x620e0f(0x3eb)],_0x3eb7d8[_0x620e0f(0x341)])},{'name':_0x620e0f(0x487),'description':'Delete\x20one\x20or\x20more\x20data\x20validation\x20rules\x20by\x20ID.\x0aArgs:\x0a\x20\x20\x20\x20sheet_name:\x20Target\x20sheet\x20name\x0a\x20\x20\x20\x20rule_ids:\x20List\x20of\x20data\x20validation\x20rule\x20IDs\x0aReturns:\x0a\x20\x20\x20\x20Success\x20message','inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x2cb)),'rule_ids':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](_univerjs_pro_mcp['z'][_0x620e0f(0x370)]())[_0x620e0f(0x31a)](_0x620e0f(0x2bc))}),'execute':async _0x471ba8=>deleteDataValidationRule(_0x471ba8['sheet_name'],_0x471ba8[_0x620e0f(0x209)])},{'name':_0x620e0f(0x3f5),'description':_0x620e0f(0x267),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x2cb))}),'execute':async _0x334a8d=>getDataValidationRules(_0x334a8d[_0x620e0f(0x3eb)])}];function processCellValue(_0x2491ee,_0x1909b6,_0x11fe15,_0x1f3dd8,_0x4ddfef){const _0x103d2b=_0x620e0f,_0x34cab1=_0x1909b6[_0x103d2b(0x22f)],_0x689928=_0x34cab1[_0x103d2b(0x392)]?_0x34cab1['getCellRaw'](_0x11fe15,_0x1f3dd8):{};return(_0x2491ee[_0x103d2b(0x468)]?_0x2491ee[_0x103d2b(0x468)](_0x1909b6[_0x103d2b(0x3d0)],_0x34cab1,_0x11fe15,_0x1f3dd8,{..._0x689928,...typeof _0x4ddfef===_0x103d2b(0x435)?_0x4ddfef:{'v':_0x4ddfef}}):typeof _0x4ddfef===_0x103d2b(0x435)?_0x4ddfef:{'v':_0x4ddfef})||(typeof _0x4ddfef===_0x103d2b(0x435)?_0x4ddfef:{'v':_0x4ddfef});}async function internalSetRangeValue(_0x14c5ca,_0x1fa691,_0x1a430c,_0x523274){const _0x43613d=_0x620e0f,_0x2ab404=getCommandService(),_0x9adef4=getSheetInterceptorService();if(!_0x2ab404)throw new Error(_0x43613d(0x24d));let _0x3247fd;if(typeof _0x523274===_0x43613d(0x370)){if(_0x523274[_0x43613d(0x38f)]('='))_0x3247fd={'f':_0x523274,'v':null,'p':null};else _0x3247fd={'v':_0x523274,'p':null,'f':null};}else{if(typeof _0x523274===_0x43613d(0x25c)||typeof _0x523274===_0x43613d(0x3b2))_0x3247fd={'v':_0x523274,'p':null,'f':null};else{if(typeof _0x523274==='object'&&_0x523274!==null)_0x3247fd=_0x523274;else _0x3247fd={'v':_0x523274,'p':null,'f':null};}}if(_0x9adef4)try{const _0x322f80=getUniverAPI()['getActiveWorkbook'](),_0x5454d3=_0x322f80[_0x43613d(0x3ec)]();if(_0x322f80&&_0x5454d3){const _0x115f58=_0x1a430c[_0x43613d(0x23d)],_0x4a42ca=_0x1a430c[_0x43613d(0x2d1)];_0x3247fd['v']!==''&&(_0x3247fd=processCellValue(_0x9adef4,_0x5454d3,_0x115f58,_0x4a42ca,_0x3247fd),delete _0x3247fd['t']);}}catch(_0x5c3afa){console[_0x43613d(0x38b)](_0x43613d(0x2c8),_0x5c3afa);}await _0x2ab404[_0x43613d(0x1f6)](_0x43613d(0x30c),{'unitId':_0x14c5ca,'subUnitId':_0x1fa691,'range':_0x1a430c,'value':_0x3247fd});}async function internalSetRangeValues(_0x44efc3,_0x65ea57,_0x3f0398,_0x332cf8){const _0x408817=_0x620e0f;if(!getCommandService())throw new Error(_0x408817(0x24d));let _0x4f365a;if(Array[_0x408817(0x4cb)](_0x332cf8))_0x4f365a={},_0x332cf8[_0x408817(0x1f3)]((_0x46d328,_0x43731f)=>{const _0x336bc5=_0x408817;if(Array[_0x336bc5(0x4cb)](_0x46d328))_0x46d328[_0x336bc5(0x1f3)]((_0x2b6413,_0x250a60)=>{const _0x5d8d6e=_0x336bc5,_0x128920=_0x3f0398['startRow']+_0x43731f,_0x256cca=_0x3f0398[_0x5d8d6e(0x2d1)]+_0x250a60;if(_0x128920<=_0x3f0398[_0x5d8d6e(0x2a9)]&&_0x256cca<=_0x3f0398['endColumn']){if(!_0x4f365a[_0x128920])_0x4f365a[_0x128920]={};_0x4f365a[_0x128920][_0x256cca]=_0x2b6413;}});});else _0x4f365a=_0x332cf8;for(const [_0x494abc,_0x5829a1]of Object[_0x408817(0x38c)](_0x4f365a))for(const [_0x3995c6,_0xb69011]of Object[_0x408817(0x38c)](_0x5829a1)){const _0x5ef8f2=Number(_0x494abc),_0x1123d9=Number(_0x3995c6);await internalSetRangeValue(_0x44efc3,_0x65ea57,{'startRow':_0x5ef8f2,'startColumn':_0x1123d9,'endRow':_0x5ef8f2,'endColumn':_0x1123d9},_0xb69011);}}async function internalSetActiveRange(_0x538a75,_0x55a2aa,_0x3d9576){const _0x5c07de=_0x620e0f,_0x36fd20=getCommandService();if(!_0x36fd20)return;try{await _0x36fd20[_0x5c07de(0x1f6)](_0x5c07de(0x256),{'unitId':_0x538a75,'subUnitId':_0x55a2aa,'selections':[{'range':_0x3d9576,'primary':{'startRow':_0x3d9576[_0x5c07de(0x23d)],'startColumn':_0x3d9576[_0x5c07de(0x2d1)],'endRow':_0x3d9576[_0x5c07de(0x2a9)],'endColumn':_0x3d9576[_0x5c07de(0x2ba)],'actualRow':_0x3d9576[_0x5c07de(0x23d)],'actualColumn':_0x3d9576['startColumn'],'isMerged':![],'isMergedMainCell':![]},'style':null}]});}catch(_0x9b60d6){console[_0x5c07de(0x38b)](_0x5c07de(0x32a),_0x9b60d6);}}const batchRangeDataItemSchema=_univerjs_pro_mcp['z']['object']({'range':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)]('Range\x20string\x20(A1\x20notation),\x20supports\x20comma-separated\x20multiple\x20ranges,\x20e.g.\x20\x22A1,B2:C3\x22'),'value':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x370)](),_univerjs_pro_mcp['z'][_0x620e0f(0x25c)](),_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)](),_univerjs_pro_mcp['z']['array'](_univerjs_pro_mcp['z']['any']())[_0x620e0f(0x31a)](_0x620e0f(0x48f)),_univerjs_pro_mcp['z']['record'](_univerjs_pro_mcp['z'][_0x620e0f(0x370)](),_univerjs_pro_mcp['z'][_0x620e0f(0x298)]())['describe']('Object/dictionary\x20value')])[_0x620e0f(0x31a)](_0x620e0f(0x331))}),batchRangeStyleItemSchema=_univerjs_pro_mcp['z']['object']({'range':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x365)),'style':styleDataSchema});async function setRangeDataInternal(_0x2bd80e){const _0x1b5ac4=_0x620e0f;var _0xb7583d;const _0x41a4a5=getUniverAPI();if(!_0x41a4a5)throw new Error(_0x1b5ac4(0x4b6));const _0x31a848=_0x41a4a5[_0x1b5ac4(0x249)]();if(!_0x31a848)throw new Error(_0x1b5ac4(0x3dc));const _0x3515f0=_0x31a848[_0x1b5ac4(0x288)](),_0x41a83b=(_0xb7583d=_0x31a848[_0x1b5ac4(0x3ec)]())===null||_0xb7583d===void 0x0?void 0x0:_0xb7583d[_0x1b5ac4(0x27d)]();if(!_0x41a83b)throw new Error(_0x1b5ac4(0x338));for(const _0x549616 of _0x2bd80e){var _0x5addc3;let _0x413b12=[];const _0x17ec2a=(_0x5addc3=_0x549616[_0x1b5ac4(0x2b4)])!==null&&_0x5addc3!==void 0x0?_0x5addc3:'';if(typeof _0x17ec2a==='string')_0x413b12=_0x17ec2a[_0x1b5ac4(0x363)](',')['map'](_0x53f6e4=>_0x53f6e4[_0x1b5ac4(0x437)]())[_0x1b5ac4(0x345)](Boolean);else throw new TypeError('range\x20must\x20be\x20a\x20string');for(const _0x1da03a of _0x413b12){const _0x17304c=_0x31a848[_0x1b5ac4(0x3ec)]();if(!_0x17304c)throw new Error('No\x20active\x20sheet');const _0x3427dc=_0x17304c['getRange'](_0x1da03a),_0x1bb75e=_0x3427dc[_0x1b5ac4(0x445)]();await internalSetActiveRange(_0x3515f0,_0x41a83b,_0x1bb75e);const _0x5293ef=_0x3427dc[_0x1b5ac4(0x48d)](),_0x1019d2=_0x17304c['getMaxRows']();if(_0x5293ef>=_0x1019d2)_0x17304c['insertRowsAfter'](_0x1019d2,_0x5293ef-_0x1019d2+0x1);const _0x12dad3=_0x3427dc[_0x1b5ac4(0x46b)](),_0x58a593=_0x17304c['getMaxColumns']();if(_0x12dad3>=_0x58a593)_0x17304c['insertColumnsAfter'](_0x58a593,_0x12dad3-_0x58a593+0x1);const _0x41c7f3=_0x549616['value'];if(_0x41c7f3!==void 0x0){if(typeof _0x41c7f3===_0x1b5ac4(0x370)){if(_0x41c7f3[_0x1b5ac4(0x38f)]('='))_0x3427dc[_0x1b5ac4(0x40f)](_0x41c7f3);else await internalSetRangeValue(_0x3515f0,_0x41a83b,_0x1bb75e,_0x41c7f3);}else{if(typeof _0x41c7f3===_0x1b5ac4(0x25c)||typeof _0x41c7f3==='boolean')await internalSetRangeValue(_0x3515f0,_0x41a83b,_0x1bb75e,_0x41c7f3);else{if(Array['isArray'](_0x41c7f3)){const _0xeead4b=_0x1bb75e['startRow'],_0x1a0292=_0x1bb75e[_0x1b5ac4(0x2d1)],_0x117090=_0x1bb75e[_0x1b5ac4(0x2a9)],_0x26ff35=_0x1bb75e['endColumn'],_0x2ac037=_0x117090-_0xeead4b+0x1,_0x10b84d=_0x26ff35-_0x1a0292+0x1,_0x47c960={},_0xbfb87=(_0x988c8b,_0x336a73,_0x3d23cd)=>{if(!_0x47c960[_0x988c8b])_0x47c960[_0x988c8b]={};_0x47c960[_0x988c8b][_0x336a73]=_0x3d23cd;};if(_0x41c7f3['length']>0x0){if(!Array[_0x1b5ac4(0x4cb)](_0x41c7f3[0x0])){if(_0x2ac037===0x1){const _0x35d4c6=_0x41c7f3;for(let _0x5c85c5=0x0;_0x5c85c5<Math['min'](_0x10b84d,_0x35d4c6[_0x1b5ac4(0x254)]);++_0x5c85c5)_0xbfb87(_0xeead4b,_0x1a0292+_0x5c85c5,_0x35d4c6[_0x5c85c5]);}else{const _0x3c762f=_0x41c7f3;for(let _0x50790e=0x0;_0x50790e<Math[_0x1b5ac4(0x476)](_0x2ac037,_0x3c762f[_0x1b5ac4(0x254)]);++_0x50790e)_0xbfb87(_0xeead4b+_0x50790e,_0x1a0292,_0x3c762f[_0x50790e]);}}else{for(let _0xbe15db=0x0;_0xbe15db<Math['min'](_0x2ac037,_0x41c7f3[_0x1b5ac4(0x254)]);++_0xbe15db)for(let _0x1d4601=0x0;_0x1d4601<Math[_0x1b5ac4(0x476)](_0x10b84d,_0x41c7f3[_0xbe15db][_0x1b5ac4(0x254)]);++_0x1d4601)_0xbfb87(_0xeead4b+_0xbe15db,_0x1a0292+_0x1d4601,_0x41c7f3[_0xbe15db][_0x1d4601]);}}await internalSetRangeValues(_0x3515f0,_0x41a83b,_0x1bb75e,_0x47c960);}else{if(typeof _0x41c7f3===_0x1b5ac4(0x435)&&_0x41c7f3!==null)await internalSetRangeValues(_0x3515f0,_0x41a83b,_0x1bb75e,_0x41c7f3);else throw new Error(_0x1b5ac4(0x40e)+typeof _0x41c7f3);}}}}if(_0x549616[_0x1b5ac4(0x20e)]!==void 0x0)_0x3427dc[_0x1b5ac4(0x4c7)]({'s':_0x549616[_0x1b5ac4(0x20e)]});if(_0x549616[_0x1b5ac4(0x3b9)])_0x3427dc[_0x1b5ac4(0x3b9)]();}}return _0x1b5ac4(0x4bb);}async function batchSetRangeData(_0x42c2f4){const _0x448e1a=_0x620e0f;if(!Array['isArray'](_0x42c2f4))throw new TypeError(_0x448e1a(0x35b));return await setRangeDataInternal(_0x42c2f4);}async function setRangeStyle(_0x3f5f9e){const _0x4915e0=_0x620e0f;if(!Array[_0x4915e0(0x4cb)](_0x3f5f9e))throw new TypeError(_0x4915e0(0x287));return await setRangeDataInternal(_0x3f5f9e);}async function setMerge(_0x5550c8){const _0x42ad7f=_0x620e0f;if(typeof _0x5550c8!==_0x42ad7f(0x370))throw new TypeError(_0x42ad7f(0x327));return await setRangeDataInternal([{'range':_0x5550c8,'merge':!![]}]);}const rangeOperationTools=[{'name':_0x620e0f(0x27f),'description':_0x620e0f(0x2f1),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'items':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](batchRangeDataItemSchema)['describe'](_0x620e0f(0x418))}),'execute':async _0x3e2aa9=>batchSetRangeData(_0x3e2aa9['items'])},{'name':'set_range_style','description':_0x620e0f(0x34b),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'items':_univerjs_pro_mcp['z']['array'](batchRangeStyleItemSchema)[_0x620e0f(0x31a)]('List\x20of\x20BatchRangeStyleItem')}),'execute':async _0x187c1c=>setRangeStyle(_0x187c1c[_0x620e0f(0x28a)])},{'name':_0x620e0f(0x393),'description':_0x620e0f(0x3fb),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'range_a1':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x24e))}),'execute':async _0x19383b=>setMerge(_0x19383b[_0x620e0f(0x2bf)])}],insertRowOperationSchema=_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'position':_univerjs_pro_mcp['z']['number']()[_0x620e0f(0x31a)](_0x620e0f(0x4ae)),'how_many':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()[_0x620e0f(0x2d9)]()['default'](0x1)[_0x620e0f(0x31a)](_0x620e0f(0x2af)),'where':_univerjs_pro_mcp['z'][_0x620e0f(0x2a7)](['before','after'])[_0x620e0f(0x2d9)]()[_0x620e0f(0x2f7)]('before')['describe'](_0x620e0f(0x3a6)),'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x354))}),insertColumnOperationSchema=_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'position':_univerjs_pro_mcp['z']['number']()[_0x620e0f(0x31a)](_0x620e0f(0x2d2)),'how_many':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()[_0x620e0f(0x2d9)]()['default'](0x1)[_0x620e0f(0x31a)](_0x620e0f(0x2eb)),'where':_univerjs_pro_mcp['z'][_0x620e0f(0x2a7)]([_0x620e0f(0x439),_0x620e0f(0x2aa)])[_0x620e0f(0x2d9)]()[_0x620e0f(0x2f7)]('before')['describe']('Insert\x20\x22before\x22\x20or\x20\x22after\x22\x20the\x20position\x20(default\x20\x22before\x22)'),'sheet_name':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)]('Sheet\x20name\x20(optional,\x20uses\x20active\x20sheet\x20if\x20not\x20provided)')}),deleteRowOperationSchema=_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'position':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()[_0x620e0f(0x31a)]('Row\x20index\x20(0-based)\x20where\x20to\x20start\x20deletion'),'how_many':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()['optional']()[_0x620e0f(0x2f7)](0x1)[_0x620e0f(0x31a)](_0x620e0f(0x31e)),'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x2d9)]()['describe']('Sheet\x20name\x20(optional,\x20uses\x20active\x20sheet\x20if\x20not\x20provided)')}),deleteColumnOperationSchema=_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'position':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()[_0x620e0f(0x31a)]('Column\x20index\x20(0-based)\x20where\x20to\x20start\x20deletion'),'how_many':_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()[_0x620e0f(0x2d9)]()['default'](0x1)[_0x620e0f(0x31a)](_0x620e0f(0x416)),'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()['optional']()['describe'](_0x620e0f(0x354))});async function insertRows(_0x1a1159){const _0x11992f=_0x620e0f,_0x31007d=getUniverAPI();if(!_0x31007d)throw new Error(_0x11992f(0x4b6));const _0x151ed6=_0x31007d[_0x11992f(0x249)](),_0x45c417=[];for(const _0x3302c3 of _0x1a1159)try{const _0x3830ba=Number[_0x11992f(0x37e)](String(_0x3302c3['position'])),_0x42147c=Number[_0x11992f(0x37e)](String(_0x3302c3[_0x11992f(0x247)]||0x1)),_0x20fa9a=_0x3302c3[_0x11992f(0x463)]||'before',_0x19e0bd=_0x3302c3[_0x11992f(0x3eb)];if(isNaN(_0x3830ba)||isNaN(_0x42147c)){_0x45c417[_0x11992f(0x33e)]({'operation':_0x11992f(0x22a)+_0x3302c3['position']+_0x11992f(0x440)+(_0x3302c3[_0x11992f(0x247)]||0x1)+',\x20where='+_0x20fa9a+_0x11992f(0x1ec)+(_0x19e0bd||_0x11992f(0x229)),'status':_0x11992f(0x413),'message':_0x11992f(0x494)});continue;}const _0x451789=_0x19e0bd?_0x151ed6[_0x11992f(0x259)](_0x19e0bd):_0x151ed6['getActiveSheet']();if(!_0x451789){_0x45c417[_0x11992f(0x33e)]({'operation':_0x11992f(0x22a)+_0x3830ba+_0x11992f(0x440)+_0x42147c+_0x11992f(0x454)+_0x20fa9a+_0x11992f(0x1ec)+(_0x19e0bd||_0x11992f(0x229)),'status':_0x11992f(0x413),'message':_0x11992f(0x427)+_0x19e0bd+_0x11992f(0x312)});continue;}if(_0x20fa9a==='before')_0x451789[_0x11992f(0x2f2)](_0x3830ba,_0x42147c);else{if(_0x20fa9a===_0x11992f(0x2aa))_0x451789[_0x11992f(0x4aa)](_0x3830ba,_0x42147c);else{_0x45c417[_0x11992f(0x33e)]({'operation':_0x11992f(0x22a)+_0x3830ba+',\x20count='+_0x42147c+',\x20where='+_0x20fa9a+',\x20sheet='+(_0x19e0bd||_0x11992f(0x229)),'status':'fail','message':'where\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27'});continue;}}_0x45c417[_0x11992f(0x33e)]({'operation':_0x11992f(0x22a)+_0x3830ba+_0x11992f(0x440)+_0x42147c+_0x11992f(0x454)+_0x20fa9a+_0x11992f(0x1ec)+(_0x19e0bd||'active'),'status':_0x11992f(0x22e),'message':_0x11992f(0x2ac)+_0x42147c+'\x20rows\x20'+_0x20fa9a+'\x20position\x20'+_0x3830ba+'\x20on\x20sheet\x20\x27'+(_0x19e0bd||_0x11992f(0x229))+'\x27'});}catch(_0x57f117){_0x45c417['push']({'operation':_0x11992f(0x22a)+_0x3302c3[_0x11992f(0x2f5)]+_0x11992f(0x440)+(_0x3302c3[_0x11992f(0x247)]||0x1)+_0x11992f(0x454)+(_0x3302c3['where']||_0x11992f(0x439))+_0x11992f(0x1ec)+(_0x3302c3[_0x11992f(0x3eb)]||_0x11992f(0x229)),'status':_0x11992f(0x413),'message':_0x11992f(0x3a2)+(_0x57f117 instanceof Error?_0x57f117[_0x11992f(0x3aa)]:_0x11992f(0x2ca))});}const _0x5cfb34=_0x45c417[_0x11992f(0x345)](_0x3b31fb=>_0x3b31fb[_0x11992f(0x32e)]==='success')[_0x11992f(0x254)],_0x3a45eb=_0x45c417[_0x11992f(0x345)](_0x18b3f0=>_0x18b3f0['status']===_0x11992f(0x413))[_0x11992f(0x254)],_0x242ef4=_0x45c417[_0x11992f(0x345)](_0x2ae755=>_0x2ae755[_0x11992f(0x32e)]===_0x11992f(0x413))[_0x11992f(0x481)](_0x6817b9=>_0x6817b9[_0x11992f(0x3aa)]);let _0xc43784,_0x27c656;if(_0x3a45eb===0x0)_0xc43784='success',_0x27c656='Inserted\x20rows\x20in\x20'+_0x5cfb34+_0x11992f(0x3bb);else _0x5cfb34>0x0?(_0xc43784=_0x11992f(0x22e),_0x27c656=_0x11992f(0x3e0)+_0x5cfb34+_0x11992f(0x48e)+_0x3a45eb+_0x11992f(0x425)+_0x242ef4[_0x11992f(0x344)](';\x20')):(_0xc43784=_0x11992f(0x413),_0x27c656='Failed\x20to\x20insert\x20rows:\x20'+_0x242ef4[_0x11992f(0x344)](';\x20'));return{'status':_0xc43784,'message':_0x27c656,'details':_0x45c417};}async function insertColumns(_0x5546bb){const _0x1ac1ec=_0x620e0f,_0x18b65a=getUniverAPI();if(!_0x18b65a)throw new Error(_0x1ac1ec(0x4b6));const _0x4d67f0=_0x18b65a['getActiveWorkbook'](),_0x4a1312=[];for(const _0x21c9c1 of _0x5546bb)try{const _0x1976ff=Number[_0x1ac1ec(0x37e)](String(_0x21c9c1[_0x1ac1ec(0x2f5)])),_0x34e46c=Number['parseInt'](String(_0x21c9c1['how_many']||0x1)),_0x3d9a82=_0x21c9c1['where']||_0x1ac1ec(0x439),_0x164583=_0x21c9c1['sheet_name'];if(isNaN(_0x1976ff)||isNaN(_0x34e46c)){_0x4a1312[_0x1ac1ec(0x33e)]({'operation':_0x1ac1ec(0x224)+_0x21c9c1['position']+',\x20count='+(_0x21c9c1['how_many']||0x1)+_0x1ac1ec(0x454)+_0x3d9a82+_0x1ac1ec(0x1ec)+(_0x164583||_0x1ac1ec(0x229)),'status':'fail','message':'Invalid\x20position\x20or\x20how_many\x20parameter'});continue;}const _0x4f53fd=_0x164583?_0x4d67f0[_0x1ac1ec(0x259)](_0x164583):_0x4d67f0[_0x1ac1ec(0x3ec)]();if(!_0x4f53fd){_0x4a1312['push']({'operation':_0x1ac1ec(0x224)+_0x1976ff+',\x20count='+_0x34e46c+_0x1ac1ec(0x454)+_0x3d9a82+',\x20sheet='+(_0x164583||_0x1ac1ec(0x229)),'status':_0x1ac1ec(0x413),'message':'Sheet\x20\x27'+_0x164583+_0x1ac1ec(0x312)});continue;}if(_0x3d9a82===_0x1ac1ec(0x439))_0x4f53fd[_0x1ac1ec(0x357)](_0x1976ff,_0x34e46c);else{if(_0x3d9a82==='after')_0x4f53fd[_0x1ac1ec(0x45b)](_0x1976ff,_0x34e46c);else{_0x4a1312[_0x1ac1ec(0x33e)]({'operation':_0x1ac1ec(0x224)+_0x1976ff+_0x1ac1ec(0x440)+_0x34e46c+_0x1ac1ec(0x454)+_0x3d9a82+',\x20sheet='+(_0x164583||_0x1ac1ec(0x229)),'status':_0x1ac1ec(0x413),'message':_0x1ac1ec(0x20f)});continue;}}_0x4a1312[_0x1ac1ec(0x33e)]({'operation':_0x1ac1ec(0x224)+_0x1976ff+_0x1ac1ec(0x440)+_0x34e46c+_0x1ac1ec(0x454)+_0x3d9a82+_0x1ac1ec(0x1ec)+(_0x164583||'active'),'status':_0x1ac1ec(0x22e),'message':_0x1ac1ec(0x2ac)+_0x34e46c+_0x1ac1ec(0x45c)+_0x3d9a82+_0x1ac1ec(0x2ae)+_0x1976ff+'\x20on\x20sheet\x20\x27'+(_0x164583||'active')+'\x27'});}catch(_0x4fcbcc){_0x4a1312[_0x1ac1ec(0x33e)]({'operation':_0x1ac1ec(0x224)+_0x21c9c1[_0x1ac1ec(0x2f5)]+_0x1ac1ec(0x440)+(_0x21c9c1[_0x1ac1ec(0x247)]||0x1)+',\x20where='+(_0x21c9c1[_0x1ac1ec(0x463)]||_0x1ac1ec(0x439))+_0x1ac1ec(0x1ec)+(_0x21c9c1[_0x1ac1ec(0x3eb)]||_0x1ac1ec(0x229)),'status':_0x1ac1ec(0x413),'message':_0x1ac1ec(0x42f)+(_0x4fcbcc instanceof Error?_0x4fcbcc[_0x1ac1ec(0x3aa)]:_0x1ac1ec(0x2ca))});}const _0x4631db=_0x4a1312[_0x1ac1ec(0x345)](_0x9ec7bc=>_0x9ec7bc[_0x1ac1ec(0x32e)]==='success')[_0x1ac1ec(0x254)],_0x159e08=_0x4a1312[_0x1ac1ec(0x345)](_0x5dfb84=>_0x5dfb84['status']===_0x1ac1ec(0x413))[_0x1ac1ec(0x254)],_0x1354f1=_0x4a1312[_0x1ac1ec(0x345)](_0x4c1851=>_0x4c1851['status']===_0x1ac1ec(0x413))[_0x1ac1ec(0x481)](_0x250198=>_0x250198[_0x1ac1ec(0x3aa)]);let _0x4cb40b,_0x13e3ff;if(_0x159e08===0x0)_0x4cb40b=_0x1ac1ec(0x22e),_0x13e3ff=_0x1ac1ec(0x390)+_0x4631db+'\x20operation(s)\x20successfully.';else _0x4631db>0x0?(_0x4cb40b=_0x1ac1ec(0x22e),_0x13e3ff='Inserted\x20columns\x20in\x20'+_0x4631db+_0x1ac1ec(0x48e)+_0x159e08+_0x1ac1ec(0x425)+_0x1354f1['join'](';\x20')):(_0x4cb40b=_0x1ac1ec(0x413),_0x13e3ff=_0x1ac1ec(0x42f)+_0x1354f1[_0x1ac1ec(0x344)](';\x20'));return{'status':_0x4cb40b,'message':_0x13e3ff,'details':_0x4a1312};}async function deleteRows(_0x1c2ce8){const _0x1d3a3d=_0x620e0f,_0x591493=getUniverAPI();if(!_0x591493)throw new Error('UniverAPI\x20not\x20available');const _0x38c3b4=_0x591493[_0x1d3a3d(0x249)](),_0x26030d=[];for(const _0x6f98bd of _0x1c2ce8)try{const _0x50e6c2=Number[_0x1d3a3d(0x37e)](String(_0x6f98bd['position'])),_0x3ca326=Number[_0x1d3a3d(0x37e)](String(_0x6f98bd[_0x1d3a3d(0x247)]||0x1)),_0x686be5=_0x6f98bd['sheet_name'];if(isNaN(_0x50e6c2)||isNaN(_0x3ca326)){_0x26030d['push']({'operation':_0x1d3a3d(0x214)+_0x6f98bd[_0x1d3a3d(0x2f5)]+_0x1d3a3d(0x440)+(_0x6f98bd[_0x1d3a3d(0x247)]||0x1)+_0x1d3a3d(0x1ec)+(_0x686be5||_0x1d3a3d(0x229)),'status':_0x1d3a3d(0x413),'message':'Invalid\x20position\x20or\x20how_many\x20parameter'});continue;}if(_0x3ca326<=0x0){_0x26030d[_0x1d3a3d(0x33e)]({'operation':_0x1d3a3d(0x214)+_0x50e6c2+_0x1d3a3d(0x440)+_0x3ca326+_0x1d3a3d(0x1ec)+(_0x686be5||_0x1d3a3d(0x229)),'status':'fail','message':'how_many\x20must\x20be\x20>\x200'});continue;}const _0x4329f5=_0x686be5?_0x38c3b4['getSheetByName'](_0x686be5):_0x38c3b4[_0x1d3a3d(0x3ec)]();if(!_0x4329f5){_0x26030d['push']({'operation':_0x1d3a3d(0x214)+_0x50e6c2+_0x1d3a3d(0x440)+_0x3ca326+_0x1d3a3d(0x1ec)+(_0x686be5||'active'),'status':'fail','message':_0x1d3a3d(0x427)+_0x686be5+_0x1d3a3d(0x312)});continue;}_0x4329f5['deleteRows'](_0x50e6c2,_0x3ca326),_0x26030d['push']({'operation':_0x1d3a3d(0x214)+_0x50e6c2+_0x1d3a3d(0x440)+_0x3ca326+_0x1d3a3d(0x1ec)+(_0x686be5||_0x1d3a3d(0x229)),'status':_0x1d3a3d(0x22e),'message':_0x1d3a3d(0x415)+_0x3ca326+'\x20rows\x20from\x20position\x20'+_0x50e6c2+_0x1d3a3d(0x42d)+(_0x686be5||'active')+'\x27'});}catch(_0x12aba9){_0x26030d[_0x1d3a3d(0x33e)]({'operation':_0x1d3a3d(0x214)+_0x6f98bd[_0x1d3a3d(0x2f5)]+_0x1d3a3d(0x440)+(_0x6f98bd[_0x1d3a3d(0x247)]||0x1)+_0x1d3a3d(0x1ec)+(_0x6f98bd[_0x1d3a3d(0x3eb)]||_0x1d3a3d(0x229)),'status':_0x1d3a3d(0x413),'message':_0x1d3a3d(0x2bd)+(_0x12aba9 instanceof Error?_0x12aba9[_0x1d3a3d(0x3aa)]:_0x1d3a3d(0x2ca))});}const _0x5db08d=_0x26030d[_0x1d3a3d(0x345)](_0x2e7354=>_0x2e7354[_0x1d3a3d(0x32e)]==='success')['length'],_0xdf3c8b=_0x26030d['filter'](_0x49ad5b=>_0x49ad5b[_0x1d3a3d(0x32e)]===_0x1d3a3d(0x413))[_0x1d3a3d(0x254)],_0x431366=_0x26030d[_0x1d3a3d(0x345)](_0x56d9f8=>_0x56d9f8['status']===_0x1d3a3d(0x413))[_0x1d3a3d(0x481)](_0xa8c0cd=>_0xa8c0cd[_0x1d3a3d(0x3aa)]);let _0x51f761,_0x43c3b2;if(_0xdf3c8b===0x0)_0x51f761=_0x1d3a3d(0x22e),_0x43c3b2='Deleted\x20rows\x20in\x20'+_0x5db08d+_0x1d3a3d(0x3bb);else _0x5db08d>0x0?(_0x51f761='success',_0x43c3b2=_0x1d3a3d(0x2d8)+_0x5db08d+'\x20operation(s)\x20successfully,\x20failed\x20'+_0xdf3c8b+_0x1d3a3d(0x425)+_0x431366[_0x1d3a3d(0x344)](';\x20')):(_0x51f761=_0x1d3a3d(0x413),_0x43c3b2='Failed\x20to\x20delete\x20rows:\x20'+_0x431366[_0x1d3a3d(0x344)](';\x20'));return{'status':_0x51f761,'message':_0x43c3b2,'details':_0x26030d};}async function deleteColumns(_0x3e3198){const _0x45e4d0=_0x620e0f,_0x389de4=getUniverAPI();if(!_0x389de4)throw new Error(_0x45e4d0(0x4b6));const _0x139381=_0x389de4[_0x45e4d0(0x249)](),_0x1551a7=[];for(const _0x152c96 of _0x3e3198)try{const _0x1144cc=Number[_0x45e4d0(0x37e)](String(_0x152c96['position'])),_0x50f81f=Number[_0x45e4d0(0x37e)](String(_0x152c96[_0x45e4d0(0x247)]||0x1)),_0x1c29df=_0x152c96[_0x45e4d0(0x3eb)];if(isNaN(_0x1144cc)||isNaN(_0x50f81f)){_0x1551a7['push']({'operation':_0x45e4d0(0x3a1)+_0x152c96[_0x45e4d0(0x2f5)]+_0x45e4d0(0x440)+(_0x152c96[_0x45e4d0(0x247)]||0x1)+',\x20sheet='+(_0x1c29df||_0x45e4d0(0x229)),'status':'fail','message':_0x45e4d0(0x494)});continue;}if(_0x50f81f<=0x0){_0x1551a7[_0x45e4d0(0x33e)]({'operation':_0x45e4d0(0x3a1)+_0x1144cc+',\x20count='+_0x50f81f+_0x45e4d0(0x1ec)+(_0x1c29df||_0x45e4d0(0x229)),'status':'fail','message':'how_many\x20must\x20be\x20>\x200'});continue;}const _0x30ebfb=_0x1c29df?_0x139381['getSheetByName'](_0x1c29df):_0x139381[_0x45e4d0(0x3ec)]();if(!_0x30ebfb){_0x1551a7[_0x45e4d0(0x33e)]({'operation':_0x45e4d0(0x3a1)+_0x1144cc+_0x45e4d0(0x440)+_0x50f81f+_0x45e4d0(0x1ec)+(_0x1c29df||_0x45e4d0(0x229)),'status':_0x45e4d0(0x413),'message':_0x45e4d0(0x427)+_0x1c29df+_0x45e4d0(0x312)});continue;}_0x30ebfb['deleteColumns'](_0x1144cc,_0x50f81f),_0x1551a7[_0x45e4d0(0x33e)]({'operation':'delete_columns:\x20pos='+_0x1144cc+_0x45e4d0(0x440)+_0x50f81f+_0x45e4d0(0x1ec)+(_0x1c29df||_0x45e4d0(0x229)),'status':_0x45e4d0(0x22e),'message':_0x45e4d0(0x415)+_0x50f81f+_0x45e4d0(0x3a9)+_0x1144cc+_0x45e4d0(0x42d)+(_0x1c29df||_0x45e4d0(0x229))+'\x27'});}catch(_0x300eb4){_0x1551a7[_0x45e4d0(0x33e)]({'operation':'delete_columns:\x20pos='+_0x152c96[_0x45e4d0(0x2f5)]+_0x45e4d0(0x440)+(_0x152c96[_0x45e4d0(0x247)]||0x1)+_0x45e4d0(0x1ec)+(_0x152c96[_0x45e4d0(0x3eb)]||_0x45e4d0(0x229)),'status':'fail','message':_0x45e4d0(0x232)+(_0x300eb4 instanceof Error?_0x300eb4[_0x45e4d0(0x3aa)]:'Unknown\x20error')});}const _0x52a7b3=_0x1551a7[_0x45e4d0(0x345)](_0x17074f=>_0x17074f[_0x45e4d0(0x32e)]==='success')[_0x45e4d0(0x254)],_0x50c9e6=_0x1551a7['filter'](_0x2d1c9d=>_0x2d1c9d[_0x45e4d0(0x32e)]===_0x45e4d0(0x413))[_0x45e4d0(0x254)],_0x1d3c16=_0x1551a7[_0x45e4d0(0x345)](_0x4a6787=>_0x4a6787[_0x45e4d0(0x32e)]===_0x45e4d0(0x413))['map'](_0x463da2=>_0x463da2['message']);let _0x1478fd,_0x27f6ee;if(_0x50c9e6===0x0)_0x1478fd=_0x45e4d0(0x22e),_0x27f6ee='Deleted\x20columns\x20in\x20'+_0x52a7b3+_0x45e4d0(0x3bb);else _0x52a7b3>0x0?(_0x1478fd=_0x45e4d0(0x22e),_0x27f6ee='Deleted\x20columns\x20in\x20'+_0x52a7b3+'\x20operation(s)\x20successfully,\x20failed\x20'+_0x50c9e6+_0x45e4d0(0x425)+_0x1d3c16[_0x45e4d0(0x344)](';\x20')):(_0x1478fd='fail',_0x27f6ee=_0x45e4d0(0x232)+_0x1d3c16[_0x45e4d0(0x344)](';\x20'));return{'status':_0x1478fd,'message':_0x27f6ee,'details':_0x1551a7};}const rowColumnOperationTools=[{'name':_0x620e0f(0x23a),'description':_0x620e0f(0x307),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'operations':_univerjs_pro_mcp['z']['array'](insertRowOperationSchema)[_0x620e0f(0x31a)](_0x620e0f(0x4b1))}),'execute':async _0x2c9212=>insertRows(_0x2c9212[_0x620e0f(0x37c)])},{'name':_0x620e0f(0x213),'description':_0x620e0f(0x231),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'operations':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](insertColumnOperationSchema)[_0x620e0f(0x31a)]('List\x20of\x20InsertColumnOperation\x20objects\x20for\x20each\x20insert\x20operation')}),'execute':async _0x2af8fd=>insertColumns(_0x2af8fd['operations'])},{'name':_0x620e0f(0x492),'description':_0x620e0f(0x394),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'operations':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](deleteRowOperationSchema)[_0x620e0f(0x31a)](_0x620e0f(0x250))}),'execute':async _0xabc34=>deleteRows(_0xabc34[_0x620e0f(0x37c)])},{'name':_0x620e0f(0x2d4),'description':_0x620e0f(0x26e),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'operations':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](deleteColumnOperationSchema)[_0x620e0f(0x31a)](_0x620e0f(0x204))}),'execute':async _0xedfc45=>deleteColumns(_0xedfc45[_0x620e0f(0x37c)])}],renameSheetOperationSchema=_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'old_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)]('Current\x20sheet\x20name\x20to\x20rename'),'new_name':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x31a)](_0x620e0f(0x1f7))}),sheetDisplayStatusOperationSchema=_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x2f4)),'visible':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x31a)]('True\x20to\x20show\x20sheet,\x20False\x20to\x20hide\x20sheet')});async function createSheet(_0x5b1c8f){const _0x14ae04=_0x620e0f,_0x3396e1=getUniverAPI();if(!_0x3396e1)throw new Error('UniverAPI\x20not\x20available');const _0x3f936b=_0x3396e1[_0x14ae04(0x249)](),_0x5d9291=[];for(const _0x3d60f0 of _0x5b1c8f)try{if(!!_0x3f936b[_0x14ae04(0x259)](_0x3d60f0))_0x5d9291[_0x14ae04(0x33e)]({'operation':_0x14ae04(0x30a)+_0x3d60f0,'status':'fail','message':_0x14ae04(0x427)+_0x3d60f0+_0x14ae04(0x27c)});else _0x3f936b[_0x14ae04(0x245)](_0x3d60f0),_0x5d9291['push']({'operation':'create_sheet:\x20'+_0x3d60f0,'status':_0x14ae04(0x22e),'message':'Created\x20sheet\x20\x27'+_0x3d60f0+'\x27'});}catch(_0x525b72){_0x5d9291['push']({'operation':_0x14ae04(0x30a)+_0x3d60f0,'status':_0x14ae04(0x413),'message':_0x14ae04(0x313)+_0x3d60f0+_0x14ae04(0x3f2)+(_0x525b72 instanceof Error?_0x525b72[_0x14ae04(0x3aa)]:'Unknown\x20error')});}const _0x2de8c=_0x5d9291[_0x14ae04(0x345)](_0x472273=>_0x472273[_0x14ae04(0x32e)]===_0x14ae04(0x22e))[_0x14ae04(0x254)],_0x1156f0=_0x5d9291['filter'](_0x1c12b9=>_0x1c12b9[_0x14ae04(0x32e)]===_0x14ae04(0x413))[_0x14ae04(0x254)],_0x60c352=_0x5d9291['filter'](_0x4502f6=>_0x4502f6[_0x14ae04(0x32e)]===_0x14ae04(0x413))[_0x14ae04(0x481)](_0x3cd377=>_0x3cd377[_0x14ae04(0x3aa)]);let _0x5ec322,_0x318115;if(_0x1156f0===0x0)_0x5ec322=_0x14ae04(0x22e),_0x318115='Created\x20'+_0x2de8c+_0x14ae04(0x456);else _0x2de8c>0x0?(_0x5ec322=_0x14ae04(0x22e),_0x318115='Created\x20'+_0x2de8c+_0x14ae04(0x300)+_0x1156f0+_0x14ae04(0x498)+_0x60c352['join'](';\x20')):(_0x5ec322=_0x14ae04(0x413),_0x318115=_0x14ae04(0x453)+_0x60c352[_0x14ae04(0x344)](';\x20'));return{'status':_0x5ec322,'message':_0x318115,'details':_0x5d9291};}async function deleteSheet(_0x23c746){const _0x190d5b=_0x620e0f,_0x42ae72=getUniverAPI();if(!_0x42ae72)throw new Error(_0x190d5b(0x4b6));const _0x24e057=_0x42ae72[_0x190d5b(0x249)](),_0x483da9=[];for(const _0x37ef32 of _0x23c746)try{const _0x28d8be=_0x24e057[_0x190d5b(0x259)](_0x37ef32);if(!_0x28d8be)_0x483da9[_0x190d5b(0x33e)]({'operation':_0x190d5b(0x2ef)+_0x37ef32,'status':'fail','message':_0x190d5b(0x427)+_0x37ef32+'\x27\x20not\x20found'});else _0x24e057['deleteSheet'](_0x28d8be),_0x483da9[_0x190d5b(0x33e)]({'operation':_0x190d5b(0x2ef)+_0x37ef32,'status':_0x190d5b(0x22e),'message':_0x190d5b(0x3d6)+_0x37ef32+'\x27'});}catch(_0x40ffba){_0x483da9[_0x190d5b(0x33e)]({'operation':_0x190d5b(0x2ef)+_0x37ef32,'status':_0x190d5b(0x413),'message':_0x190d5b(0x272)+_0x37ef32+_0x190d5b(0x3f2)+(_0x40ffba instanceof Error?_0x40ffba[_0x190d5b(0x3aa)]:_0x190d5b(0x2ca))});}const _0x1138ac=_0x483da9[_0x190d5b(0x345)](_0x27087c=>_0x27087c[_0x190d5b(0x32e)]===_0x190d5b(0x22e))['length'],_0x294a73=_0x483da9[_0x190d5b(0x345)](_0x10827a=>_0x10827a[_0x190d5b(0x32e)]===_0x190d5b(0x413))['length'],_0x454f3e=_0x483da9[_0x190d5b(0x345)](_0x2feff5=>_0x2feff5[_0x190d5b(0x32e)]===_0x190d5b(0x413))[_0x190d5b(0x481)](_0x2fd00f=>_0x2fd00f[_0x190d5b(0x3aa)]);let _0x443627,_0x14cd1e;if(_0x294a73===0x0)_0x443627=_0x190d5b(0x22e),_0x14cd1e=_0x190d5b(0x415)+_0x1138ac+'\x20sheet(s)\x20successfully.';else _0x1138ac>0x0?(_0x443627=_0x190d5b(0x22e),_0x14cd1e=_0x190d5b(0x415)+_0x1138ac+'\x20sheet(s)\x20successfully,\x20failed\x20'+_0x294a73+_0x190d5b(0x498)+_0x454f3e[_0x190d5b(0x344)](';\x20')):(_0x443627=_0x190d5b(0x413),_0x14cd1e=_0x190d5b(0x2e2)+_0x454f3e[_0x190d5b(0x344)](';\x20'));return{'status':_0x443627,'message':_0x14cd1e,'details':_0x483da9};}async function renameSheet(_0x396ef2){const _0x1ac572=_0x620e0f,_0x14c684=getUniverAPI();if(!_0x14c684)throw new Error(_0x1ac572(0x4b6));const _0xb49d9b=_0x14c684[_0x1ac572(0x249)](),_0x1f1526=[];for(const _0x5960d3 of _0x396ef2)try{const _0x4ae983=_0xb49d9b['getSheetByName'](_0x5960d3['old_name']);if(!_0x4ae983)_0x1f1526[_0x1ac572(0x33e)]({'operation':_0x1ac572(0x2fd)+_0x5960d3[_0x1ac572(0x33d)]+'\x20->\x20'+_0x5960d3[_0x1ac572(0x3a7)],'status':_0x1ac572(0x413),'message':'Sheet\x20\x27'+_0x5960d3[_0x1ac572(0x33d)]+_0x1ac572(0x312)});else{const _0x122b52=_0xb49d9b[_0x1ac572(0x259)](_0x5960d3[_0x1ac572(0x3a7)]);if(_0x122b52&&_0x122b52!==_0x4ae983)_0x1f1526[_0x1ac572(0x33e)]({'operation':_0x1ac572(0x2fd)+_0x5960d3[_0x1ac572(0x33d)]+_0x1ac572(0x3c9)+_0x5960d3[_0x1ac572(0x3a7)],'status':_0x1ac572(0x413),'message':_0x1ac572(0x3cb)+_0x5960d3[_0x1ac572(0x3a7)]+_0x1ac572(0x27c)});else _0x4ae983[_0x1ac572(0x2be)](_0x5960d3[_0x1ac572(0x3a7)]),_0x1f1526[_0x1ac572(0x33e)]({'operation':_0x1ac572(0x2fd)+_0x5960d3[_0x1ac572(0x33d)]+'\x20->\x20'+_0x5960d3[_0x1ac572(0x3a7)],'status':_0x1ac572(0x22e),'message':_0x1ac572(0x44f)+_0x5960d3['old_name']+'\x27\x20to\x20\x27'+_0x5960d3['new_name']+'\x27'});}}catch(_0x3a6aa6){_0x1f1526[_0x1ac572(0x33e)]({'operation':'rename_sheet:\x20'+_0x5960d3[_0x1ac572(0x33d)]+_0x1ac572(0x3c9)+_0x5960d3[_0x1ac572(0x3a7)],'status':_0x1ac572(0x413),'message':_0x1ac572(0x31c)+(_0x3a6aa6 instanceof Error?_0x3a6aa6['message']:_0x1ac572(0x2ca))});}const _0x371101=_0x1f1526[_0x1ac572(0x345)](_0x56a746=>_0x56a746[_0x1ac572(0x32e)]===_0x1ac572(0x22e))[_0x1ac572(0x254)],_0x144844=_0x1f1526[_0x1ac572(0x345)](_0x16ebc0=>_0x16ebc0[_0x1ac572(0x32e)]==='fail')[_0x1ac572(0x254)],_0x5e03cf=_0x1f1526[_0x1ac572(0x345)](_0x53120f=>_0x53120f[_0x1ac572(0x32e)]===_0x1ac572(0x413))[_0x1ac572(0x481)](_0x3f421d=>_0x3f421d['message']);let _0x570ddf,_0x48faea;if(_0x144844===0x0)_0x570ddf='success',_0x48faea='Renamed\x20'+_0x371101+_0x1ac572(0x456);else _0x371101>0x0?(_0x570ddf=_0x1ac572(0x22e),_0x48faea=_0x1ac572(0x2ad)+_0x371101+_0x1ac572(0x300)+_0x144844+_0x1ac572(0x498)+_0x5e03cf[_0x1ac572(0x344)](';\x20')):(_0x570ddf='fail',_0x48faea=_0x1ac572(0x2c7)+_0x5e03cf[_0x1ac572(0x344)](';\x20'));return{'status':_0x570ddf,'message':_0x48faea,'details':_0x1f1526};}async function activateSheet(_0x413073){const _0x7ebbcd=_0x620e0f,_0x122a4b=getUniverAPI();if(!_0x122a4b)throw new Error(_0x7ebbcd(0x4b6));return _0x122a4b[_0x7ebbcd(0x249)]()['getSheetByName'](_0x413073)[_0x7ebbcd(0x417)](),'Activated\x20sheet\x20\x27'+_0x413073+'\x27';}async function moveSheet(_0x241ec6,_0x38fb42){const _0x194adb=_0x620e0f,_0x1289a2=getUniverAPI();if(!_0x1289a2)throw new Error('UniverAPI\x20not\x20available');const _0x30b10f=ensureInt(_0x38fb42,_0x194adb(0x281)),_0x2be51a=_0x1289a2[_0x194adb(0x249)]();return _0x2be51a[_0x194adb(0x257)](_0x2be51a[_0x194adb(0x259)](_0x241ec6),_0x30b10f),_0x194adb(0x35d)+_0x241ec6+'\x27\x20to\x20index\x20'+_0x30b10f;}async function setSheetDisplayStatus(_0x1740d5){const _0x478d4f=_0x620e0f,_0x411081=getUniverAPI();if(!_0x411081)throw new Error('UniverAPI\x20not\x20available');const _0x5d1964=_0x411081['getActiveWorkbook'](),_0x3b8f91=[];for(const _0xd22230 of _0x1740d5)try{const _0x1fa28f=_0x5d1964[_0x478d4f(0x259)](_0xd22230[_0x478d4f(0x3eb)]);if(!_0x1fa28f)_0x3b8f91[_0x478d4f(0x33e)]({'operation':'set_display_status:\x20'+_0xd22230[_0x478d4f(0x3eb)]+_0x478d4f(0x3c9)+(_0xd22230[_0x478d4f(0x21b)]?_0x478d4f(0x21b):_0x478d4f(0x29e)),'status':_0x478d4f(0x413),'message':_0x478d4f(0x427)+_0xd22230[_0x478d4f(0x3eb)]+_0x478d4f(0x312)});else{if(_0xd22230[_0x478d4f(0x21b)])_0x1fa28f[_0x478d4f(0x304)]();else _0x1fa28f['hideSheet']();_0x3b8f91['push']({'operation':_0x478d4f(0x4b5)+_0xd22230[_0x478d4f(0x3eb)]+_0x478d4f(0x3c9)+(_0xd22230[_0x478d4f(0x21b)]?_0x478d4f(0x21b):_0x478d4f(0x29e)),'status':_0x478d4f(0x22e),'message':(_0xd22230[_0x478d4f(0x21b)]?_0x478d4f(0x38e):_0x478d4f(0x268))+'\x20sheet\x20\x27'+_0xd22230[_0x478d4f(0x3eb)]+'\x27'});}}catch(_0x555407){_0x3b8f91['push']({'operation':_0x478d4f(0x4b5)+_0xd22230[_0x478d4f(0x3eb)]+'\x20->\x20'+(_0xd22230[_0x478d4f(0x21b)]?_0x478d4f(0x21b):_0x478d4f(0x29e)),'status':'fail','message':'Failed\x20to\x20set\x20display\x20status\x20for\x20sheet\x20\x27'+_0xd22230[_0x478d4f(0x3eb)]+'\x27:\x20'+(_0x555407 instanceof Error?_0x555407[_0x478d4f(0x3aa)]:_0x478d4f(0x2ca))});}const _0x3730d5=_0x3b8f91[_0x478d4f(0x345)](_0x12c4c0=>_0x12c4c0['status']===_0x478d4f(0x22e))[_0x478d4f(0x254)],_0x29bcec=_0x3b8f91[_0x478d4f(0x345)](_0x34c745=>_0x34c745[_0x478d4f(0x32e)]===_0x478d4f(0x413))[_0x478d4f(0x254)],_0x349adb=_0x3b8f91[_0x478d4f(0x345)](_0x4dcb1b=>_0x4dcb1b['status']===_0x478d4f(0x413))[_0x478d4f(0x481)](_0x252662=>_0x252662[_0x478d4f(0x3aa)]);let _0x1b4724,_0xcc2c9b;if(_0x29bcec===0x0)_0x1b4724=_0x478d4f(0x22e),_0xcc2c9b=_0x478d4f(0x2ab)+_0x3730d5+_0x478d4f(0x456);else _0x3730d5>0x0?(_0x1b4724='success',_0xcc2c9b='Set\x20display\x20status\x20for\x20'+_0x3730d5+_0x478d4f(0x300)+_0x29bcec+_0x478d4f(0x4b4)+_0x349adb[_0x478d4f(0x344)](';\x20')):(_0x1b4724=_0x478d4f(0x413),_0xcc2c9b=_0x478d4f(0x36d)+_0x349adb[_0x478d4f(0x344)](';\x20'));return{'status':_0x1b4724,'message':_0xcc2c9b,'details':_0x3b8f91};}async function getSheets(){const _0x1908b3=_0x620e0f,_0x3a7839=getUniverAPI();if(!_0x3a7839)throw new Error(_0x1908b3(0x4b6));return _0x3a7839[_0x1908b3(0x249)]()['getSheets']()['map'](_0x305dc0=>({'name':_0x305dc0[_0x1908b3(0x25e)]()}));}async function getActiveUnitId(){const _0x703e5=_0x620e0f,_0x4c186a=getUniverAPI();if(!_0x4c186a)throw new Error(_0x703e5(0x4b6));return _0x4c186a[_0x703e5(0x249)]()[_0x703e5(0x288)]();}const sheetManagementTools=[{'name':_0x620e0f(0x343),'description':_0x620e0f(0x397),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_names':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](_univerjs_pro_mcp['z']['string']())['describe']('List\x20of\x20names\x20for\x20the\x20new\x20worksheets\x20to\x20create')}),'execute':async _0x1ad048=>createSheet(_0x1ad048[_0x620e0f(0x26d)])},{'name':_0x620e0f(0x329),'description':_0x620e0f(0x3ba),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_names':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](_univerjs_pro_mcp['z'][_0x620e0f(0x370)]())[_0x620e0f(0x31a)](_0x620e0f(0x352))}),'execute':async _0x57ace6=>deleteSheet(_0x57ace6['sheet_names'])},{'name':_0x620e0f(0x3bf),'description':_0x620e0f(0x1fe),'inputSchema':_univerjs_pro_mcp['z']['object']({'operations':_univerjs_pro_mcp['z']['array'](renameSheetOperationSchema)[_0x620e0f(0x31a)](_0x620e0f(0x39f))}),'execute':async _0x30884a=>renameSheet(_0x30884a[_0x620e0f(0x37c)])},{'name':_0x620e0f(0x378),'description':_0x620e0f(0x217),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x234))}),'execute':async _0x1137cc=>activateSheet(_0x1137cc[_0x620e0f(0x3eb)])},{'name':_0x620e0f(0x3ca),'description':_0x620e0f(0x377),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'sheet_name':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x25f)),'to_index':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z'][_0x620e0f(0x370)](),_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()])[_0x620e0f(0x31a)](_0x620e0f(0x3e7))}),'execute':async _0x22ff74=>moveSheet(_0x22ff74[_0x620e0f(0x3eb)],_0x22ff74[_0x620e0f(0x281)])},{'name':_0x620e0f(0x48a),'description':'Batch\x20show\x20or\x20hide\x20multiple\x20worksheets.\x20Efficiently\x20sets\x20display\x20status\x20for\x20multiple\x20sheets\x20in\x20one\x20operation.','inputSchema':_univerjs_pro_mcp['z']['object']({'operations':_univerjs_pro_mcp['z']['array'](sheetDisplayStatusOperationSchema)[_0x620e0f(0x31a)](_0x620e0f(0x33a))}),'execute':async _0x5a8a11=>setSheetDisplayStatus(_0x5a8a11[_0x620e0f(0x37c)])},{'name':_0x620e0f(0x301),'description':_0x620e0f(0x36b),'inputSchema':_univerjs_pro_mcp['z']['object']({}),'execute':async()=>getSheets()},{'name':_0x620e0f(0x29f),'description':_0x620e0f(0x212),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({}),'execute':async()=>getActiveUnitId()}];function getLintErrors(_0x2424b7,_0x494ce7){const _0x4a6f98=_0x620e0f,_0x4bf6f1={'total_errors':0x0},_0x190eb7=[];_0x2424b7[_0x4a6f98(0x1f3)](_0x59befe=>{const _0x72365b=_0x4a6f98;_0x190eb7[_0x72365b(0x33e)]({'type':_0x72365b(0x32f),'sheetName':_0x59befe[_0x72365b(0x21a)],'row':_0x59befe['row'],'column':_0x59befe['column'],'description':_0x59befe['errorType']+_0x72365b(0x474)+getFormulaErrorDescription(_0x59befe[_0x72365b(0x3de)])});}),_0x494ce7[_0x4a6f98(0x1f3)](_0x490254=>{const _0x2881ee=_0x4a6f98;_0x190eb7[_0x2881ee(0x33e)]({'type':_0x2881ee(0x261),'sheetName':_0x490254[_0x2881ee(0x21a)],'row':_0x490254[_0x2881ee(0x2e3)],'column':_0x490254[_0x2881ee(0x2c6)],'description':_0x2881ee(0x2e0)});});if(_0x190eb7[_0x4a6f98(0x254)]===0x0)return _0x4bf6f1['note']='No\x20errors\x20found.',yaml['default']['stringify'](_0x4bf6f1);_0x190eb7['sort']((_0x1a53f9,_0xf83e53)=>{const _0x25a13a=_0x4a6f98;if(_0x1a53f9[_0x25a13a(0x21a)]!==_0xf83e53[_0x25a13a(0x21a)])return _0x1a53f9['sheetName'][_0x25a13a(0x1ea)](_0xf83e53[_0x25a13a(0x21a)]);if(_0x1a53f9[_0x25a13a(0x2e3)]!==_0xf83e53['row'])return _0x1a53f9[_0x25a13a(0x2e3)]-_0xf83e53[_0x25a13a(0x2e3)];return _0x1a53f9[_0x25a13a(0x2c6)]-_0xf83e53[_0x25a13a(0x2c6)];});const _0x5218b9=_0x190eb7[_0x4a6f98(0x289)](0x0,0xc8),_0x1a41b8=new Map();_0x5218b9[_0x4a6f98(0x1f3)](_0x17c91d=>{const _0x4ba774=_0x4a6f98,_0x127164=getCellAddressSimple(_0x17c91d['row'],_0x17c91d['column']);if(!_0x1a41b8[_0x4ba774(0x24a)](_0x17c91d[_0x4ba774(0x21a)]))_0x1a41b8['set'](_0x17c91d[_0x4ba774(0x21a)],{});_0x1a41b8[_0x4ba774(0x296)](_0x17c91d[_0x4ba774(0x21a)])[_0x127164]=_0x17c91d[_0x4ba774(0x3ed)];});const _0x47e5cd=Array[_0x4a6f98(0x221)](_0x1a41b8[_0x4a6f98(0x38c)]())[_0x4a6f98(0x481)](([_0x4e375f,_0x45acc2])=>({'sheet':_0x4e375f,'cells':_0x45acc2})),_0x139065={'total_errors':_0x190eb7[_0x4a6f98(0x254)],'errors':_0x47e5cd};return _0x190eb7['length']>0xc8&&(_0x139065['truncated']=!![],_0x139065['note']=_0x4a6f98(0x4a4)),yaml[_0x4a6f98(0x2f7)][_0x4a6f98(0x282)](_0x139065);}function getFormulaErrorDescription(_0x4c2553){const _0xde6c8a=_0x620e0f;return{'#DIV/0!':'Division\x20by\x20zero\x20error','#NAME?':_0xde6c8a(0x1ee),'#VALUE!':_0xde6c8a(0x2f9),'#REF!':'Invalid\x20cell\x20reference\x20error','#NUM!':_0xde6c8a(0x482),'#N/A':'Value\x20not\x20available\x20error','#SPILL!':_0xde6c8a(0x1f1),'#CALC!':_0xde6c8a(0x379),'#ERROR!':_0xde6c8a(0x49f),'#GETTING_DATA':_0xde6c8a(0x2dc),'#NULL!':'Null\x20intersection\x20error'}[_0x4c2553]||_0xde6c8a(0x251);}function getCellAddressSimple(_0x7bf856,_0x4d62b5){return''+colIdxToExcel$1(_0x4d62b5)+(_0x7bf856+0x1);}function colIdxToExcel$1(_0xb7719){let _0x3651fc='';_0xb7719+=0x1;while(_0xb7719>0x0){const _0x23f50c=(_0xb7719-0x1)%0x1a;_0xb7719=Math['floor']((_0xb7719-0x1)/0x1a),_0x3651fc=String['fromCharCode'](0x41+_0x23f50c)+_0x3651fc;}return _0x3651fc;}async function getWorkbookLintErrors(_0x1cd610){const _0x3469a5=_0x620e0f;if(!_0x1cd610)throw new Error(_0x3469a5(0x4b6));try{const _0x312c56=_0x1cd610['getActiveWorkbook']();if(!_0x312c56)return _0x3469a5(0x3dc);const _0x19114e=_0x312c56[_0x3469a5(0x21e)](),_0x46bc8d=await _0x312c56[_0x3469a5(0x1ef)]();return getLintErrors(_0x19114e||[],_0x46bc8d||[]);}catch(_0x58d3ea){return _0x3469a5(0x2c0)+_0x58d3ea;}}async function extractFormulas(_0x48988b,_0x5baf40=[]){const _0x1411d9=_0x620e0f;if(!_0x48988b)throw new Error(_0x1411d9(0x4b6));try{const _0x22f25f=_0x48988b[_0x1411d9(0x249)]();if(!_0x22f25f)return'No\x20active\x20workbook';if(_0x5baf40['length']===0x0)_0x5baf40=[_0x22f25f[_0x1411d9(0x3ec)]()['getSheetName']()];const _0x178a98=[];for(const _0x46f671 of _0x5baf40){const _0x5f130c=_0x22f25f[_0x1411d9(0x259)](_0x46f671);if(!_0x5f130c){_0x178a98[_0x1411d9(0x33e)]({'sheetName':_0x46f671,'note':'Sheet\x20not\x20found'});continue;}const _0x398443=await _0x5f130c['getFormulaUsagesAsA1']();if(_0x398443[_0x1411d9(0x254)]===0x0){_0x178a98[_0x1411d9(0x33e)]({'sheetName':_0x46f671,'note':'No\x20formulas\x20found'});continue;}_0x178a98['push']({'sheetName':_0x46f671,'total':_0x398443[_0x1411d9(0x254)],'formulas':_0x398443});}return yaml[_0x1411d9(0x2f7)][_0x1411d9(0x282)](_0x178a98);}catch(_0x1d2d68){return _0x1411d9(0x2c0)+_0x1d2d68;}}function getStyleHash(_0x29b95c){const _0x578399=_0x620e0f;var _0x405aa4,_0x50470c,_0x4f9647;if(!_0x29b95c)return'';const _0x541471=[];if(_0x29b95c['fs']!==void 0x0)_0x541471[_0x578399(0x33e)]('fs:'+_0x29b95c['fs']);if(_0x29b95c['it']!==void 0x0)_0x541471[_0x578399(0x33e)]('it:'+_0x29b95c['it']);if(_0x29b95c['bl']!==void 0x0)_0x541471['push'](_0x578399(0x325)+_0x29b95c['bl']);if((_0x405aa4=_0x29b95c['bg'])===null||_0x405aa4===void 0x0?void 0x0:_0x405aa4[_0x578399(0x2b3)])_0x541471[_0x578399(0x33e)]('bg:'+_0x29b95c['bg']['rgb']);if((_0x50470c=_0x29b95c['cl'])===null||_0x50470c===void 0x0?void 0x0:_0x50470c['rgb'])_0x541471[_0x578399(0x33e)](_0x578399(0x2c2)+_0x29b95c['cl'][_0x578399(0x2b3)]);if((_0x4f9647=_0x29b95c['n'])===null||_0x4f9647===void 0x0?void 0x0:_0x4f9647[_0x578399(0x462)])_0x541471['push']('n:'+_0x29b95c['n'][_0x578399(0x462)]);return _0x541471[_0x578399(0x254)]===0x0?'':_0x541471[_0x578399(0x344)]('|');}function getStyleHash2(_0x69fe5f,_0x2abbf0){const _0x140396=_0x620e0f,_0x1abfb5=getStyleHash(_0x69fe5f);if(!_0x1abfb5)return'';if(_0x2abbf0&&_0x2abbf0[_0x140396(0x24a)](_0x1abfb5))return _0x2abbf0[_0x140396(0x296)](_0x1abfb5);let _0x483ab7=0x0;for(let _0x5e64de=0x0;_0x5e64de<_0x1abfb5[_0x140396(0x254)];_0x5e64de++){const _0x19d9e7=_0x1abfb5['charCodeAt'](_0x5e64de);_0x483ab7=(_0x483ab7<<0x5)-_0x483ab7+_0x19d9e7,_0x483ab7=_0x483ab7&_0x483ab7;}const _0x2f4a8a=_0x140396(0x277);function _0x2bd830(_0x4547d7){const _0x18e20a=_0x140396;if(_0x4547d7===0x0)return'0';let _0x48ed26='',_0x43b2e7=Math[_0x18e20a(0x21c)](_0x4547d7);while(_0x43b2e7>0x0){_0x48ed26=_0x2f4a8a[_0x43b2e7%0x3e]+_0x48ed26,_0x43b2e7=Math['floor'](_0x43b2e7/0x3e);}return _0x48ed26;}let _0xf98f58=_0x2bd830(_0x483ab7)[_0x140396(0x289)](0x0,0x7)[_0x140396(0x369)](0x7,'0');if(_0x2abbf0){let _0x5d9d6a=0x1;const _0x1d1fe2=_0xf98f58,_0x319c69=new Set(_0x2abbf0[_0x140396(0x4d1)]());while(_0x319c69[_0x140396(0x24a)](_0xf98f58)){_0xf98f58=_0x1d1fe2[_0x140396(0x289)](0x0,0x6)+_0x5d9d6a%0xa,_0x5d9d6a++;if(_0x5d9d6a>0x3e8){_0xf98f58=_0x1d1fe2[_0x140396(0x289)](0x0,0x6)+'x';break;}}_0x2abbf0[_0x140396(0x3e8)](_0x1abfb5,_0xf98f58);}return _0xf98f58;}const cellDimensionRequestSchema=_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'range':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x23f)),'width':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]()[_0x620e0f(0x31a)](_0x620e0f(0x477)),_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]())[_0x620e0f(0x31a)](_0x620e0f(0x274))])[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x477)),'height':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z']['number']()[_0x620e0f(0x31a)](_0x620e0f(0x23b)),_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](_univerjs_pro_mcp['z'][_0x620e0f(0x25c)]())[_0x620e0f(0x31a)]('Array\x20of\x20heights\x20in\x20points\x20for\x20multiple\x20rows')])[_0x620e0f(0x2d9)]()[_0x620e0f(0x31a)](_0x620e0f(0x23b))});async function takeScreenshotWithHtml2Canvas(_0x507561){const _0x28483a=_0x620e0f;try{return(await(0x0,html2canvas_pro['default'])(_0x507561,{'useCORS':!![],'logging':![],'backgroundColor':null}))['toDataURL']('image/png')[_0x28483a(0x363)](',')[0x1];}catch(_0x49ed7c){throw new Error(_0x28483a(0x297)+_0x49ed7c);}}function isNodeRuntime(){const _0xc582aa=_0x620e0f;var _0x45b14c;return typeof window===_0xc582aa(0x3b8)&&typeof process!==_0xc582aa(0x3b8)&&!!((_0x45b14c=process[_0xc582aa(0x42a)])===null||_0x45b14c===void 0x0?void 0x0:_0x45b14c['node']);}function colIdxToExcel(_0xa3695d){const _0x4fad2e=_0x620e0f;let _0x23d965='';_0xa3695d+=0x1;while(_0xa3695d>0x0){const _0x5934f2=(_0xa3695d-0x1)%0x1a;_0xa3695d=Math['floor']((_0xa3695d-0x1)/0x1a),_0x23d965=String[_0x4fad2e(0x40b)](0x41+_0x5934f2)+_0x23d965;}return _0x23d965;}async function searchCells(_0x2881e4,_0x32e5a4){const _0x5c0766=_0x620e0f,_0x134cd9=getUniverAPI();if(!_0x134cd9)throw new Error(_0x5c0766(0x4b6));const _0x3d137a=await _0x134cd9[_0x5c0766(0x315)](_0x2881e4);_0x3d137a[_0x5c0766(0x3fc)][_0x5c0766(0x432)]({'findScope':_0x5c0766(0x349),'findBy':_0x32e5a4}),await _0x3d137a[_0x5c0766(0x368)]();const _0x4d3c48=_0x3d137a['findAll']();return{'total':_0x4d3c48[_0x5c0766(0x254)],'results':_0x4d3c48[_0x5c0766(0x289)](0x0,0x32)[_0x5c0766(0x481)](_0x548282=>{const _0x4898c7=_0x5c0766;let _0x142804=_0x548282[_0x4898c7(0x335)]();if(typeof _0x142804==='string'&&_0x142804[_0x4898c7(0x254)]>0xc8)_0x142804=_0x142804[_0x4898c7(0x289)](0x0,0xc8)+'...';return{'range_a1':_0x548282[_0x4898c7(0x1e8)](!![]),'value':_0x142804,'formula':_0x548282[_0x4898c7(0x1fd)]()};})};}async function autoFill(_0x2dd81e,_0x3b663d){const _0x320c18=_0x620e0f,_0x43bd2b=getUniverAPI();if(!_0x43bd2b)throw new Error('UniverAPI\x20not\x20available');const _0x2b7d45=_0x43bd2b['getActiveWorkbook']()[_0x320c18(0x3ec)](),_0x14379d=_0x2b7d45[_0x320c18(0x445)](_0x2dd81e);_0x2b7d45[_0x320c18(0x409)](_0x14379d);const _0x55b795=_0x14379d[_0x320c18(0x445)](),_0x125a8d=_0x2b7d45[_0x320c18(0x445)](_0x3b663d),_0x1490fb=_0x125a8d['getRange'](),_0x5405fb={'startRow':_0x55b795[_0x320c18(0x23d)],'startColumn':_0x55b795[_0x320c18(0x2d1)],'endRow':_0x55b795[_0x320c18(0x2a9)],'endColumn':_0x55b795[_0x320c18(0x2ba)]},_0x54b8d2={'startRow':_0x1490fb['startRow'],'startColumn':_0x1490fb[_0x320c18(0x2d1)],'endRow':_0x1490fb[_0x320c18(0x2a9)],'endColumn':_0x1490fb['endColumn']};return _0x43bd2b[_0x320c18(0x350)](_0x320c18(0x408),{'sourceRange':_0x5405fb,'targetRange':_0x54b8d2}),_0x2b7d45[_0x320c18(0x409)](_0x125a8d),_0x320c18(0x321)+_0x2dd81e+_0x320c18(0x339)+_0x3b663d;}async function formatBrush(_0x425b19,_0x23de0c){const _0x1031c1=_0x620e0f,_0x30abd7=getUniverAPI();if(!_0x30abd7)throw new Error(_0x1031c1(0x4b6));const _0x2dfafb=_0x30abd7['getActiveWorkbook'](),_0x360f86=_0x2dfafb[_0x1031c1(0x3ec)](),_0x45cb0f=_0x360f86[_0x1031c1(0x445)](_0x425b19);_0x360f86[_0x1031c1(0x409)](_0x45cb0f),_0x30abd7[_0x1031c1(0x350)](_0x1031c1(0x35e));const _0x528ec6=_0x360f86[_0x1031c1(0x445)](_0x23de0c),_0x39e50e=_0x528ec6[_0x1031c1(0x445)](),_0x34487b=_0x2dfafb['getId'](),_0x434703=_0x360f86[_0x1031c1(0x27d)]();return _0x30abd7[_0x1031c1(0x350)](_0x1031c1(0x317),{'unitId':_0x34487b,'subUnitId':_0x434703,'range':{'startRow':_0x39e50e[_0x1031c1(0x23d)],'startColumn':_0x39e50e[_0x1031c1(0x2d1)],'endRow':_0x39e50e[_0x1031c1(0x2a9)],'endColumn':_0x39e50e['endColumn']}}),_0x360f86['setActiveRange'](_0x528ec6),_0x1031c1(0x4ab)+_0x425b19+_0x1031c1(0x339)+_0x23de0c;}async function setCellDimensions(_0x1e4dd3){const _0x305988=_0x620e0f,_0x549ba4=getUniverAPI();if(!_0x549ba4)throw new Error('UniverAPI\x20not\x20available');const _0x1ac26a=getCommandService();if(!_0x1ac26a)throw new Error(_0x305988(0x24d));const _0x1f5d60=_0x549ba4[_0x305988(0x249)]();if(!_0x1f5d60)throw new Error(_0x305988(0x3dc));const _0x351be6=_0x1f5d60[_0x305988(0x288)](),_0x4f4996=_0x1f5d60[_0x305988(0x3ec)]();if(!_0x4f4996)throw new Error(_0x305988(0x338));let _0x284116=0x0;const _0x573ffd=[];for(const _0x249e30 of _0x1e4dd3)try{const _0x1c5608=_0x249e30['range'][_0x305988(0x363)](',')[_0x305988(0x481)](_0x304001=>_0x304001[_0x305988(0x437)]())[_0x305988(0x345)](Boolean);for(const _0x39f9e3 of _0x1c5608){let _0x5da435='',_0x29ee5b=_0x39f9e3;if(_0x39f9e3[_0x305988(0x28b)]('!')){const _0x164c04=_0x39f9e3['split']('!');_0x5da435=_0x164c04[0x0],_0x29ee5b=_0x164c04[0x1];}const _0x8abd54=_0x5da435?_0x1f5d60[_0x305988(0x259)](_0x5da435):_0x4f4996;if(!_0x8abd54)throw new Error(_0x305988(0x216)+(_0x5da435||_0x305988(0x229))+_0x305988(0x360));const _0x2f6c28=_0x8abd54[_0x305988(0x27d)](),{type:_0x44c7f1,isValid:_0x30b8cf}=parseRangeType(_0x29ee5b);if(!_0x30b8cf)throw new Error(_0x305988(0x328)+_0x39f9e3);if(_0x249e30[_0x305988(0x2ed)]!==void 0x0&&(_0x44c7f1===_0x305988(0x2c6)||_0x44c7f1===_0x305988(0x236)))await setColumnWidthInternal(_0x1ac26a,_0x351be6,_0x2f6c28,_0x29ee5b,_0x249e30['width'],_0x8abd54);if(_0x249e30[_0x305988(0x2c9)]!==void 0x0&&(_0x44c7f1===_0x305988(0x2e3)||_0x44c7f1==='mixed'))await setRowHeightInternal(_0x1ac26a,_0x351be6,_0x2f6c28,_0x29ee5b,_0x249e30['height'],_0x8abd54);}_0x284116++;}catch(_0x5b30cd){_0x573ffd['push']('Request\x20'+JSON[_0x305988(0x282)](_0x249e30)+':\x20'+((_0x5b30cd===null||_0x5b30cd===void 0x0?void 0x0:_0x5b30cd[_0x305988(0x3aa)])||String(_0x5b30cd)));}if(_0x573ffd[_0x305988(0x254)]===0x0)return'Successfully\x20processed\x20'+_0x284116+_0x305988(0x2d6);else{if(_0x284116>0x0)return _0x305988(0x244)+_0x284116+_0x305988(0x41e)+_0x573ffd[_0x305988(0x254)]+_0x305988(0x3b5)+_0x573ffd[_0x305988(0x344)](';\x20');else throw new Error(_0x305988(0x4a6)+_0x573ffd[_0x305988(0x344)](';\x20'));}}async function setColumnWidthInternal(_0x34dfc6,_0x2ee3a2,_0x9dbeb1,_0x213e21,_0x543557,_0xdcb8f6){const _0xc64ddc=_0x620e0f;let _0x5ae7dd,_0x57a258;if(/^[A-Z]+:[A-Z]+$/['test'](_0x213e21)){const [_0x415c9b,_0x934e45]=_0x213e21[_0xc64ddc(0x363)](':');_0x5ae7dd=columnLetterToNumber(_0x415c9b),_0x57a258=columnLetterToNumber(_0x934e45);}else{const _0x3e350a=_0xdcb8f6[_0xc64ddc(0x445)](_0x213e21)[_0xc64ddc(0x445)]();_0x5ae7dd=_0x3e350a[_0xc64ddc(0x2d1)],_0x57a258=_0x3e350a[_0xc64ddc(0x2ba)];}const _0x146fa3=_0x57a258-_0x5ae7dd+0x1,_0x118f95=_0xdcb8f6['getMaxRows']();if(Array['isArray'](_0x543557)){if(_0x543557[_0xc64ddc(0x254)]!==_0x146fa3)throw new Error(_0xc64ddc(0x3e9)+_0x543557['length']+_0xc64ddc(0x3f3)+_0x146fa3+')');for(let _0x136eeb=0x0;_0x136eeb<_0x146fa3;_0x136eeb++)_0x34dfc6[_0xc64ddc(0x1f6)](_univerjs_sheets[_0xc64ddc(0x265)]['id'],{'unitId':_0x2ee3a2,'subUnitId':_0x9dbeb1,'ranges':[{'startColumn':_0x5ae7dd+_0x136eeb,'endColumn':_0x5ae7dd+_0x136eeb,'startRow':0x0,'endRow':_0x118f95-0x1}],'value':_0x543557[_0x136eeb]});}else _0x34dfc6['syncExecuteCommand'](_univerjs_sheets['SetColWidthCommand']['id'],{'unitId':_0x2ee3a2,'subUnitId':_0x9dbeb1,'ranges':[{'startColumn':_0x5ae7dd,'endColumn':_0x57a258,'startRow':0x0,'endRow':_0x118f95-0x1}],'value':_0x543557});}async function setRowHeightInternal(_0x491125,_0x16d9aa,_0x37936b,_0x34c1b0,_0x26d919,_0x12bd02){const _0x576914=_0x620e0f;let _0x5bf344,_0x3ced28;if(/^\d+:\d+$/['test'](_0x34c1b0)){const [_0x559294,_0x34091d]=_0x34c1b0[_0x576914(0x363)](':');_0x5bf344=Number['parseInt'](_0x559294)-0x1,_0x3ced28=Number['parseInt'](_0x34091d)-0x1;}else{const _0x5aff4a=_0x12bd02[_0x576914(0x445)](_0x34c1b0)[_0x576914(0x445)]();_0x5bf344=_0x5aff4a[_0x576914(0x23d)],_0x3ced28=_0x5aff4a['endRow'];}const _0x478140=_0x3ced28-_0x5bf344+0x1,_0xb8a4ea=_0x12bd02[_0x576914(0x371)]();if(Array[_0x576914(0x4cb)](_0x26d919)){if(_0x26d919[_0x576914(0x254)]!==_0x478140)throw new Error('Height\x20array\x20length\x20('+_0x26d919[_0x576914(0x254)]+_0x576914(0x2ea)+_0x478140+')');for(let _0x282149=0x0;_0x282149<_0x478140;_0x282149++)await _0x491125['syncExecuteCommand'](_univerjs_sheets['SetRowHeightCommand']['id'],{'unitId':_0x16d9aa,'subUnitId':_0x37936b,'ranges':[{'startRow':_0x5bf344+_0x282149,'endRow':_0x5bf344+_0x282149,'startColumn':0x0,'endColumn':_0xb8a4ea-0x1}],'value':_0x26d919[_0x282149]});}else await _0x491125[_0x576914(0x1f6)](_univerjs_sheets[_0x576914(0x32b)]['id'],{'unitId':_0x16d9aa,'subUnitId':_0x37936b,'ranges':[{'startRow':_0x5bf344,'endRow':_0x3ced28,'startColumn':0x0,'endColumn':_0xb8a4ea-0x1}],'value':_0x26d919});}async function getActivityStatus(_0xcfc87f=![]){const _0xb50c08=_0x620e0f,_0x36d5ce=getUniverAPI();if(!_0x36d5ce)throw new Error('UniverAPI\x20not\x20available');const _0x21b8a8=_0x36d5ce[_0xb50c08(0x249)]();if(!_0x21b8a8)throw new Error(_0xb50c08(0x3dc));const _0x8c99a3=_0x21b8a8[_0xb50c08(0x2dd)](),_0x60dd69=_0x8c99a3[_0xb50c08(0x254)],_0x33829e=_0x8c99a3[_0xb50c08(0x289)](0x0,0x32)[_0xb50c08(0x481)](_0x42b4b8=>_0x42b4b8[_0xb50c08(0x25e)]()),_0x8a73d0=_0x21b8a8[_0xb50c08(0x3ec)](),_0x31b5bd=_0x8a73d0[_0xb50c08(0x25e)]();let _0x36355c='';if(!isNodeRuntime())try{const _0xad1f23=_0x8a73d0['getVisibleRange']();_0x36355c=_0xad1f23?_0x8a73d0[_0xb50c08(0x445)](_0xad1f23[_0xb50c08(0x23d)],_0xad1f23[_0xb50c08(0x2d1)],_0xad1f23[_0xb50c08(0x2a9)],_0xad1f23[_0xb50c08(0x2ba)])[_0xb50c08(0x1e8)]():'';}catch(_0x250ba2){console[_0xb50c08(0x38b)]('Failed\x20to\x20get\x20visible\x20range:',_0x250ba2);}const _0x4c7446=_0x21b8a8['getActiveRange'](),_0x4cab5c=_0x4c7446?_0x4c7446[_0xb50c08(0x1e8)]():'',_0x3cc583=await getWorkbookLintErrors(_0x36d5ce),_0x49098c=[];_0x49098c['push']({'type':_0xb50c08(0x441),'text':_0xb50c08(0x39b)+_0x60dd69+_0xb50c08(0x4a9)+JSON[_0xb50c08(0x282)](_0x33829e)+_0xb50c08(0x2a2)+_0x31b5bd+_0xb50c08(0x3bc)+_0x36355c+_0xb50c08(0x49b)+_0x4cab5c+_0xb50c08(0x3ff)+_0x3cc583+_0xb50c08(0x2c4)});if(_0xcfc87f&&isNodeRuntime())console[_0xb50c08(0x38b)](_0xb50c08(0x1f5));if(_0xcfc87f&&!isNodeRuntime())try{const _0x317f7e=await takeScreenshotWithHtml2Canvas(getContainerElement());_0x49098c[_0xb50c08(0x33e)]({'type':_0xb50c08(0x3c5),'data':_0x317f7e,'mimeType':'image/png'});}catch(_0x1fe1a4){console[_0xb50c08(0x38b)](_0xb50c08(0x3b7),_0x1fe1a4);}return _0x49098c;}async function getRangeData(_0x227bb7,_0x2fd263=![],_0x2e52f0=![]){const _0x4b0fcd=_0x620e0f,_0x2b8f99=getUniverAPI();if(!_0x2b8f99)throw new Error(_0x4b0fcd(0x4b6));let _0x331e06;if(typeof _0x227bb7==='string')_0x331e06=_0x227bb7[_0x4b0fcd(0x363)](',')['map'](_0x2bca5c=>_0x2bca5c['trim']())['filter'](_0x5a8e89=>_0x5a8e89[_0x4b0fcd(0x254)]>0x0);else{if(Array['isArray'](_0x227bb7))_0x331e06=_0x227bb7[_0x4b0fcd(0x345)](_0x4a84ff=>typeof _0x4a84ff===_0x4b0fcd(0x370)&&_0x4a84ff[_0x4b0fcd(0x437)]()['length']>0x0);else throw new TypeError(_0x4b0fcd(0x237));}const _0x594731=[],_0x164a88=_0x2b8f99['getActiveWorkbook']();if(!_0x164a88)throw new Error('No\x20active\x20workbook');const _0x2ab57e=_0x164a88[_0x4b0fcd(0x3ec)]();for(const _0x8b65ae of _0x331e06){const _0x52307e=_0x2ab57e['getRange'](_0x8b65ae),_0x46b175=_0x52307e[_0x4b0fcd(0x49c)](),_0x56eb5d=_0x52307e['getDisplayValues'](),_0x1081d6=_0x52307e[_0x4b0fcd(0x4af)](),_0x58aa95=_0x52307e['getRow'](),_0x496c92=_0x52307e[_0x4b0fcd(0x3cc)]();let _0x20befe=[];const _0x1bff90=new Map();if(_0x2e52f0)try{_0x20befe=_0x52307e[_0x4b0fcd(0x286)]();}catch(_0x321a0b){console[_0x4b0fcd(0x38b)]('Failed\x20to\x20get\x20cell\x20styles:',_0x321a0b);}for(let _0x1ad342=0x0;_0x1ad342<_0x46b175['length'];_0x1ad342++)for(let _0x2c3d2c=0x0;_0x2c3d2c<_0x46b175[_0x1ad342][_0x4b0fcd(0x254)];_0x2c3d2c++){var _0x123229;if(!_0x46b175[_0x1ad342][_0x2c3d2c])continue;_0x46b175[_0x1ad342][_0x2c3d2c]={'v':_0x56eb5d[_0x1ad342]&&_0x56eb5d[_0x1ad342][_0x2c3d2c]!==void 0x0?_0x56eb5d[_0x1ad342][_0x2c3d2c]:(_0x123229=_0x46b175[_0x1ad342][_0x2c3d2c])===null||_0x123229===void 0x0?void 0x0:_0x123229['v']};if(_0x1081d6[_0x1ad342]&&_0x1081d6[_0x1ad342][_0x2c3d2c])_0x46b175[_0x1ad342][_0x2c3d2c]['f']=_0x1081d6[_0x1ad342][_0x2c3d2c];if(_0x2e52f0&&_0x20befe[_0x1ad342]&&_0x20befe[_0x1ad342][_0x2c3d2c]){var _0x37cc0e;const _0x197ccb=((_0x37cc0e=_0x20befe[_0x1ad342][_0x2c3d2c])===null||_0x37cc0e===void 0x0?void 0x0:_0x37cc0e[_0x4b0fcd(0x32d)])||_0x20befe[_0x1ad342][_0x2c3d2c];if(_0x197ccb)_0x46b175[_0x1ad342][_0x2c3d2c]['c']=getStyleHash2(_0x197ccb,_0x1bff90);}}if(_0x2fd263)try{const _0x4eb728=_0x52307e,_0x38ae0b=isNodeRuntime()?_0x4b0fcd(0x4b8):'getScreenshot',_0x4eb32e=_0x38ae0b===_0x4b0fcd(0x4b8)?_0x4b0fcd(0x271):_0x4b0fcd(0x4b8),_0x50d9c4=_0x4eb728[_0x38ae0b]||_0x4eb728[_0x4eb32e];if(typeof _0x50d9c4!=='function')throw new Error('Range\x20screenshot\x20API\x20not\x20available');const _0x25303e=await _0x50d9c4['call'](_0x4eb728,{'includeHeaders':!![]});if(!_0x25303e)throw new Error('No\x20screenshot\x20data\x20returned');const _0x5ccc68=_0x25303e['split'](',')[0x1];if(_0x5ccc68&&_0x5ccc68[_0x4b0fcd(0x254)]>0x64)_0x594731[_0x4b0fcd(0x33e)]({'type':'image','data':_0x5ccc68,'mimeType':_0x4b0fcd(0x2a6)});else _0x594731[_0x4b0fcd(0x33e)]({'type':'text','text':'Failed\x20to\x20get\x20screenshot\x20for\x20range\x20'+_0x8b65ae+_0x4b0fcd(0x230)});}catch(_0x1c66c1){_0x594731[_0x4b0fcd(0x33e)]({'type':_0x4b0fcd(0x441),'text':_0x4b0fcd(0x47e)+_0x8b65ae+',\x20error:\x20'+_0x1c66c1});}const _0x30760a=['#\x20Range:\x20'+_0x8b65ae];if(_0x2e52f0&&_0x1bff90[_0x4b0fcd(0x381)]>0x0){_0x30760a[_0x4b0fcd(0x33e)](_0x4b0fcd(0x4b7));for(const [_0x1fa651,_0x52bcfe]of _0x1bff90[_0x4b0fcd(0x38c)]())_0x30760a['push'](_0x52bcfe+':\x20'+_0x1fa651);}_0x30760a[_0x4b0fcd(0x33e)](_0x4b0fcd(0x4c5));for(let _0x4fb05e=0x0;_0x4fb05e<_0x46b175[_0x4b0fcd(0x254)];_0x4fb05e++){const _0x4801da=_0x46b175[_0x4fb05e],_0x46faf5=[];for(let _0x5adae7=0x0;_0x5adae7<_0x4801da[_0x4b0fcd(0x254)];_0x5adae7++){const _0x3bb53b=_0x4801da[_0x5adae7];if(_0x3bb53b==null)continue;const _0x31dc0a=_0x3bb53b['v'],_0x1c5ace=_0x3bb53b['f'],_0x5c0d55=_0x3bb53b['c'];if(_0x31dc0a==null||_0x31dc0a===''){if((!_0x1c5ace||_0x1c5ace===null)&&(!_0x2e52f0||!_0x5c0d55||_0x5c0d55===null))continue;}const _0x3ee2bb=[],_0x3acae4=''+colIdxToExcel(_0x496c92+_0x5adae7)+(_0x58aa95+_0x4fb05e+0x1);if(_0x31dc0a!=null&&_0x31dc0a!=='')_0x3ee2bb[_0x4b0fcd(0x33e)]('v='+_0x31dc0a);if(_0x1c5ace!=null)_0x3ee2bb['push']('f='+_0x1c5ace);if(_0x2e52f0&&_0x5c0d55)_0x3ee2bb[_0x4b0fcd(0x33e)]('c='+_0x5c0d55);if(_0x3ee2bb[_0x4b0fcd(0x254)]>0x0)_0x46faf5[_0x4b0fcd(0x33e)]('-\x20'+_0x3acae4+':\x20'+_0x3ee2bb[_0x4b0fcd(0x344)](';')+';');}if(_0x46faf5['length']>0x0)_0x30760a[_0x4b0fcd(0x33e)]('-\x20Row\x20'+(_0x58aa95+_0x4fb05e+0x1)+'\x0a\x09'+_0x46faf5[_0x4b0fcd(0x344)]('\x0a\x09'));else _0x30760a[_0x4b0fcd(0x33e)](_0x4b0fcd(0x30b)+(_0x58aa95+_0x4fb05e+0x1)+'\x20Empty\x20Row');}try{const _0x2cf8b6=await _0x52307e[_0x4b0fcd(0x458)]()||[],_0x5d9252=await _0x52307e['getDataValidationErrorAsync']()||[];(_0x2cf8b6[_0x4b0fcd(0x254)]>0x0||_0x5d9252['length']>0x0)&&(_0x30760a[_0x4b0fcd(0x33e)](_0x4b0fcd(0x29d)),_0x30760a[_0x4b0fcd(0x33e)]('```yaml\x0a'+getLintErrors(_0x2cf8b6,_0x5d9252)+_0x4b0fcd(0x34e)));}catch(_0x35c320){console[_0x4b0fcd(0x38b)](_0x4b0fcd(0x211),_0x35c320);}const _0x4dd80d=_0x30760a[_0x4b0fcd(0x344)]('\x0a');_0x594731[_0x4b0fcd(0x3da)]({'type':'text','text':_0x4dd80d});}if(_0x594731[_0x4b0fcd(0x254)]===0x1)return[_0x594731[0x0]];return _0x594731;}async function scrollAndScreenshot(_0x17e21e){const _0x13f9c4=_0x620e0f,_0x2789bb=getUniverAPI();if(!_0x2789bb)throw new Error(_0x13f9c4(0x4b6));const _0x179559=_0x2789bb[_0x13f9c4(0x249)]();if(!_0x179559)throw new Error(_0x13f9c4(0x3dc));const _0x407782=_0x179559[_0x13f9c4(0x3ec)](),_0x5efa86=_0x407782['getRange'](_0x17e21e);_0x407782['scrollToCell'](_0x5efa86[_0x13f9c4(0x43c)](),_0x5efa86['getColumn']());try{const _0x40b82d=await takeScreenshotWithHtml2Canvas(getContainerElement());return[{'type':_0x13f9c4(0x441),'text':'Viewport\x20after\x20scrolling\x20to\x20'+_0x17e21e},{'type':_0x13f9c4(0x3c5),'data':_0x40b82d,'mimeType':'image/png'}];}catch(_0x308151){throw new Error(_0x13f9c4(0x376)+_0x17e21e+':\x20'+_0x308151);}}const utilityTools=[{'name':_0x620e0f(0x26b),'description':_0x620e0f(0x47c),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'keyword':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x42b)),'find_by':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x448))}),'execute':async _0x4c2a08=>searchCells(_0x4c2a08[_0x620e0f(0x262)],_0x4c2a08['find_by'])},{'name':_0x620e0f(0x43b),'description':'Auto\x20fill\x20data\x20from\x20source\x20range\x20to\x20target\x20range\x20using\x20pattern\x20detection.\x20The\x20auto\x20fill\x20operation\x20will\x20also\x20copy\x20cell\x20styles,\x20formulas,\x20and\x20formatting\x20from\x20the\x20source\x20to\x20the\x20target\x20range.\x20You\x20do\x20NOT\x20need\x20to\x20call\x20format_brush\x20after\x20auto_fill.\x20auto_fill\x20only\x20supports\x20horizontal\x20or\x20vertical\x20extension.\x20The\x20target_range\x20must\x20be\x20aligned\x20with\x20the\x20source_range\x20(either\x20same\x20row\x20or\x20same\x20column\x20direction).\x20It\x20is\x20recommended\x20to\x20check\x20the\x20result\x20after\x20calling\x20this\x20tool\x20to\x20confirm\x20the\x20fill\x20is\x20as\x20expected.\x20Examples:\x20auto_fill(\x22A1:A2\x22,\x20\x22A1:A10\x22)\x20#\x20Fill\x20down\x20from\x20A1:A2\x20pattern\x20to\x20A1:A10\x20(vertical),\x20auto_fill(\x22A1:B1\x22,\x20\x22A1:F1\x22)\x20#\x20Fill\x20right\x20from\x20A1:B1\x20pattern\x20to\x20A1:F1\x20(horizontal)','inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'source_range':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x3cf)),'target_range':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)](_0x620e0f(0x45f))}),'execute':async _0x1e8e71=>autoFill(_0x1e8e71['source_range'],_0x1e8e71[_0x620e0f(0x486)])},{'name':_0x620e0f(0x44c),'description':_0x620e0f(0x284),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'source_range':_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x31a)](_0x620e0f(0x2a3)),'target_range':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()['describe'](_0x620e0f(0x46c))}),'execute':async _0x5de35e=>formatBrush(_0x5de35e[_0x620e0f(0x419)],_0x5de35e[_0x620e0f(0x486)])},{'name':_0x620e0f(0x3fa),'description':_0x620e0f(0x34f),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'requests':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](cellDimensionRequestSchema)[_0x620e0f(0x31a)](_0x620e0f(0x222))}),'execute':async _0x354e9b=>setCellDimensions(_0x354e9b[_0x620e0f(0x276)])},{'name':_0x620e0f(0x3ef),'description':'Get\x20workbook\x20UI\x20status.\x20Returns\x20total\x20sheet\x20count,\x20first\x2010\x20sheet\x20names,\x20current\x20active\x20sheet\x20name,\x20visible\x20range,\x20and\x20selection.\x20If\x20screenshot\x20is\x20True,\x20also\x20returns\x20a\x20screenshot.','inputSchema':_univerjs_pro_mcp['z']['object']({'screenshot':_univerjs_pro_mcp['z']['boolean']()[_0x620e0f(0x2f7)](![])[_0x620e0f(0x31a)](_0x620e0f(0x455))}),'execute':async _0x287408=>getActivityStatus(_0x287408[_0x620e0f(0x4b3)])},{'name':_0x620e0f(0x497),'description':'Get\x20the\x20cell\x20data\x20grid\x20for\x20the\x20specified\x20range(s)\x20(A1\x20notation)\x20in\x20the\x20active\x20workbook,\x20with\x20flexible\x20output.\x20Do\x20not\x20fetch\x20too\x20large\x20a\x20range\x20at\x20once.\x20It\x20is\x20not\x20recommended\x20to\x20get\x20data\x20for\x20a\x20range\x20where\x20rows\x20*\x20columns\x20>\x20200\x20cells.','inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({'range_a1':_univerjs_pro_mcp['z'][_0x620e0f(0x26c)]([_univerjs_pro_mcp['z']['string']()[_0x620e0f(0x31a)](_0x620e0f(0x38d)),_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](_univerjs_pro_mcp['z'][_0x620e0f(0x370)]())[_0x620e0f(0x31a)](_0x620e0f(0x39d))])[_0x620e0f(0x31a)](_0x620e0f(0x4a7)),'return_screenshot':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x2f7)](![])[_0x620e0f(0x31a)](_0x620e0f(0x3b1)),'return_style':_univerjs_pro_mcp['z'][_0x620e0f(0x3b2)]()[_0x620e0f(0x2f7)](![])['describe']('Whether\x20to\x20return\x20style\x20information\x20for\x20cells\x20(default\x20False)')}),'execute':async _0x2a8857=>getRangeData(_0x2a8857['range_a1'],_0x2a8857[_0x620e0f(0x431)],_0x2a8857[_0x620e0f(0x206)])},{'name':_0x620e0f(0x40c),'description':_0x620e0f(0x446),'inputSchema':_univerjs_pro_mcp['z']['object']({'cell_a1':_univerjs_pro_mcp['z'][_0x620e0f(0x370)]()[_0x620e0f(0x31a)]('The\x20cell\x20in\x20A1\x20notation\x20to\x20scroll\x20to\x20(e.g.,\x20\x22D10\x22).')}),'execute':async _0x4a95cf=>scrollAndScreenshot(_0x4a95cf[_0x620e0f(0x3f1)])},{'name':_0x620e0f(0x258),'description':_0x620e0f(0x4be),'inputSchema':_univerjs_pro_mcp['z'][_0x620e0f(0x435)]({}),'execute':async()=>{return await getWorkbookLintErrors(getUniverAPI());}},{'name':_0x620e0f(0x2e8),'description':_0x620e0f(0x467),'inputSchema':_univerjs_pro_mcp['z']['object']({'sheets':_univerjs_pro_mcp['z'][_0x620e0f(0x49a)](_univerjs_pro_mcp['z'][_0x620e0f(0x370)]())[_0x620e0f(0x2d9)]()['describe'](_0x620e0f(0x279))}),'execute':async _0x5a1841=>{const _0xc95fca=_0x620e0f,_0xd4ed75=getUniverAPI();if(!_0xd4ed75)throw new Error(_0xc95fca(0x4b6));return await extractFormulas(_0xd4ed75,_0x5a1841['sheets']||[]);}}],allSheetTools=[...rangeOperationTools,...sheetManagementTools,...rowColumnOperationTools,...utilityTools,...conditionalFormattingTools,...dataValidationTools],IS_WORKER=typeof WorkerGlobalScope!==_0x620e0f(0x3b8)&&self instanceof WorkerGlobalScope;let UniverSheetMCPPlugin=class UniverSheetMCPPlugin extends _univerjs_core['Plugin']{constructor(_0x5ec7ff=defaultPluginConfig,_0x1391df,_0xf20323){const _0xac4b10=_0x620e0f;super(),this[_0xac4b10(0x319)]=_0x5ec7ff,this['_injector']=_0x1391df,this[_0xac4b10(0x4bc)]=_0xf20323;const {..._0x2daebb}=(0x0,_univerjs_core[_0xac4b10(0x3b9)])({},defaultPluginConfig,this[_0xac4b10(0x319)]);this[_0xac4b10(0x4bc)][_0xac4b10(0x21f)](SHEET_MCP_PLUGIN_CONFIG_KEY,_0x2daebb);}async['onStarting'](){const _0x16bc10=_0x620e0f,_0x381de3=[[IStyleUsageAnalyzer,{'useClass':StyleUsageAnalyzer}],[ISizeUsageAnalyzer,{'useClass':SizeUsageAnalyzer}]],_0x1241d1=IS_WORKER||this[_0x16bc10(0x319)][_0x16bc10(0x340)]?this[_0x16bc10(0x395)][_0x16bc10(0x296)](_univerjs_rpc[_0x16bc10(0x20d)]):null;if(IS_WORKER||!this[_0x16bc10(0x319)][_0x16bc10(0x340)])_0x381de3[_0x16bc10(0x33e)]([IFormulaUsageAnalyzer,{'useClass':FormulaUsageAnalyzer}]);else{if(_0x1241d1)_0x381de3[_0x16bc10(0x33e)]([IFormulaUsageAnalyzer,{'useFactory':()=>(0x0,_univerjs_rpc[_0x16bc10(0x43f)])(_0x1241d1[_0x16bc10(0x311)](FormulaUsageAnalyzerChannelName))}]);else _0x381de3[_0x16bc10(0x33e)]([IFormulaUsageAnalyzer,{'useClass':FormulaUsageAnalyzer}]);}_0x381de3[_0x16bc10(0x1f3)](_0x1b56e1=>this[_0x16bc10(0x395)][_0x16bc10(0x366)](_0x1b56e1));if(IS_WORKER&&_0x1241d1)_0x1241d1[_0x16bc10(0x41c)](FormulaUsageAnalyzerChannelName,(0x0,_univerjs_rpc[_0x16bc10(0x20a)])(this[_0x16bc10(0x395)][_0x16bc10(0x296)](IFormulaUsageAnalyzer)));}[_0x620e0f(0x3fd)](){const _0xff0467=_0x620e0f;if(IS_WORKER)return;const _0x47f6d6=this[_0xff0467(0x395)]['get'](_univerjs_pro_mcp['IMCPToolRegistry']);allSheetTools['forEach'](_0x2c0f78=>{_0x47f6d6['registerTool'](_0x2c0f78);});}};_defineProperty(UniverSheetMCPPlugin,'pluginName','SHEET_MCP'),_defineProperty(UniverSheetMCPPlugin,_0x620e0f(0x207),name),_defineProperty(UniverSheetMCPPlugin,_0x620e0f(0x3c1),version),_defineProperty(UniverSheetMCPPlugin,_0x620e0f(0x358),_univerjs_core['UniverInstanceType'][_0x620e0f(0x201)]),UniverSheetMCPPlugin=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x620e0f(0x44d)])(_univerjs_core[_0x620e0f(0x31f)])),__decorateParam(0x2,_univerjs_core['IConfigService'])],UniverSheetMCPPlugin),exports['CellUsageAnalyzer']=CellUsageAnalyzer,exports['ICellUsageAnalyzer']=ICellUsageAnalyzer,exports[_0x620e0f(0x2e9)]=IFormulaUsageAnalyzer,exports[_0x620e0f(0x308)]=ISizeUsageAnalyzer,exports[_0x620e0f(0x34c)]=IStyleUsageAnalyzer,exports[_0x620e0f(0x3fe)]=SizeUsageAnalyzer,exports['StyleUsageAnalyzer']=StyleUsageAnalyzer,Object[_0x620e0f(0x373)](exports,'UniverSheetMCPPlugin',{'enumerable':!![],'get':function(){return UniverSheetMCPPlugin;}}),exports[_0x620e0f(0x316)]=allSheetTools,exports[_0x620e0f(0x2b7)]=conditionalFormattingTools,exports[_0x620e0f(0x203)]=dataValidationTools,exports[_0x620e0f(0x499)]=toA1,exports[_0x620e0f(0x1e8)]=getA1Notation,exports[_0x620e0f(0x420)]=rangeOperationTools,exports[_0x620e0f(0x3a4)]=rowColumnOperationTools,exports[_0x620e0f(0x4d3)]=sheetManagementTools,exports[_0x620e0f(0x1e9)]=toA1$1,exports['utilityTools']=utilityTools;
|