@univerjs-pro/sheets-mcp 0.21.0 → 0.22.0
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/types/tools/conditional-format-tools.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +14 -14
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x6875c=_0x4e06;(function(_0x1416a6,_0x4c5500){const _0x17db30=_0x4e06,_0x16690f=_0x1416a6();while(!![]){try{const _0x128a77=parseInt(_0x17db30(0x362))/0x1*(-parseInt(_0x17db30(0x299))/0x2)+-parseInt(_0x17db30(0x30a))/0x3+parseInt(_0x17db30(0x1dd))/0x4+-parseInt(_0x17db30(0x134))/0x5*(-parseInt(_0x17db30(0x1a3))/0x6)+-parseInt(_0x17db30(0x179))/0x7*(parseInt(_0x17db30(0x1ef))/0x8)+parseInt(_0x17db30(0x20d))/0x9*(parseInt(_0x17db30(0x2f5))/0xa)+parseInt(_0x17db30(0x228))/0xb;if(_0x128a77===_0x4c5500)break;else _0x16690f['push'](_0x16690f['shift']());}catch(_0x25272a){_0x16690f['push'](_0x16690f['shift']());}}}(_0x4cf3,0x9dbe7),Object['defineProperty'](exports,Symbol[_0x6875c(0x300)],{'value':_0x6875c(0x415)}));var __create=Object['create'],__defProp=Object[_0x6875c(0x34e)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__getOwnPropNames=Object[_0x6875c(0x2c6)],__getProtoOf=Object[_0x6875c(0x14d)],__hasOwnProp=Object[_0x6875c(0x344)][_0x6875c(0x394)],__copyProps=(_0x346aac,_0x1fe12e,_0x5a8f68,_0x1a7436)=>{const _0x54b9de=_0x6875c;if(_0x1fe12e&&typeof _0x1fe12e==='object'||typeof _0x1fe12e===_0x54b9de(0x1f4))for(var _0x4c354e=__getOwnPropNames(_0x1fe12e),_0x51cb1f=0x0,_0x1437a1=_0x4c354e[_0x54b9de(0x18d)],_0x26622a;_0x51cb1f<_0x1437a1;_0x51cb1f++){_0x26622a=_0x4c354e[_0x51cb1f],!__hasOwnProp[_0x54b9de(0x1c2)](_0x346aac,_0x26622a)&&_0x26622a!==_0x5a8f68&&__defProp(_0x346aac,_0x26622a,{'get':(_0x446ced=>_0x1fe12e[_0x446ced])[_0x54b9de(0x209)](null,_0x26622a),'enumerable':!(_0x1a7436=__getOwnPropDesc(_0x1fe12e,_0x26622a))||_0x1a7436[_0x54b9de(0x264)]});}return _0x346aac;},__toESM=(_0x5a6922,_0x4f837d,_0x42383d)=>(_0x42383d=_0x5a6922!=null?__create(__getProtoOf(_0x5a6922)):{},__copyProps(_0x4f837d||!_0x5a6922||!_0x5a6922[_0x6875c(0x262)]?__defProp(_0x42383d,_0x6875c(0x30c),{'value':_0x5a6922,'enumerable':!![]}):_0x42383d,_0x5a6922));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=_0x6875c(0x15b),version=_0x6875c(0x16e);const SHEET_MCP_PLUGIN_CONFIG_KEY='sheet-mcp.config',configSymbol=Symbol(SHEET_MCP_PLUGIN_CONFIG_KEY),defaultPluginConfig={'enableWorker':![]};function __decorateParam(_0xeb0ab9,_0x376504){return function(_0x40fa0f,_0xa4fe96){_0x376504(_0x40fa0f,_0xa4fe96,_0xeb0ab9);};}function __decorate(_0x22f946,_0x5f13d5,_0x56cc45,_0x3a2b11){const _0x34ea03=_0x6875c;var _0x344d73=arguments['length'],_0xa980d4=_0x344d73<0x3?_0x5f13d5:_0x3a2b11===null?_0x3a2b11=Object[_0x34ea03(0x1f6)](_0x5f13d5,_0x56cc45):_0x3a2b11,_0x28c35c;if(typeof Reflect===_0x34ea03(0x23e)&&typeof Reflect[_0x34ea03(0x3e9)]==='function')_0xa980d4=Reflect[_0x34ea03(0x3e9)](_0x22f946,_0x5f13d5,_0x56cc45,_0x3a2b11);else{for(var _0x2c2e5a=_0x22f946[_0x34ea03(0x18d)]-0x1;_0x2c2e5a>=0x0;_0x2c2e5a--)if(_0x28c35c=_0x22f946[_0x2c2e5a])_0xa980d4=(_0x344d73<0x3?_0x28c35c(_0xa980d4):_0x344d73>0x3?_0x28c35c(_0x5f13d5,_0x56cc45,_0xa980d4):_0x28c35c(_0x5f13d5,_0x56cc45))||_0xa980d4;}return _0x344d73>0x3&&_0xa980d4&&Object['defineProperty'](_0x5f13d5,_0x56cc45,_0xa980d4),_0xa980d4;}function toA1(_0x109dc6){const _0xf188b1=_0x6875c;return{'formula':_0x109dc6[_0xf188b1(0x1d0)],'firstOccurrence':getA1Notation$1([_0x109dc6[_0xf188b1(0x36f)][_0xf188b1(0x2da)],_0x109dc6[_0xf188b1(0x36f)]['endRow'],_0x109dc6[_0xf188b1(0x36f)][_0xf188b1(0x400)],_0x109dc6[_0xf188b1(0x36f)][_0xf188b1(0x2e9)]]),'filledRanges':_0x109dc6[_0xf188b1(0x1ac)][_0xf188b1(0x25c)](_0x270533=>getA1Notation$1([_0x270533[_0xf188b1(0x2da)],_0x270533[_0xf188b1(0x1d2)],_0x270533[_0xf188b1(0x400)],_0x270533[_0xf188b1(0x2e9)]]))[_0xf188b1(0x1b9)](',')};}function compressMatrixFlexible$1({getItem:_0x579563,getId:_0x7b3d10,condition:_0xd243b4,rows:_0x5b54cc,cols:_0x30b28c}){const _0x2d191e=_0x6875c,_0x45b383=[];let _0x5add35=[];for(let _0x33ed16=0x0;_0x33ed16<_0x5b54cc;_0x33ed16++){const _0xed15df=[];let _0x5d2a6a=0x0;while(_0x5d2a6a<_0x30b28c){const _0x522b67=_0x579563(_0x33ed16,_0x5d2a6a);if(!_0x522b67||!_0xd243b4(_0x522b67,_0x33ed16,_0x5d2a6a)){_0x5d2a6a++;continue;}const _0x23bf47=_0x7b3d10(_0x522b67),_0x1ba27c=_0x5d2a6a;while(_0x5d2a6a+0x1<_0x30b28c&&((()=>{const _0x25a70b=_0x579563(_0x33ed16,_0x5d2a6a+0x1);return _0x25a70b&&_0xd243b4(_0x25a70b,_0x33ed16,_0x5d2a6a)&&_0x7b3d10(_0x25a70b)===_0x23bf47;})()))_0x5d2a6a++;const _0x100930=_0x5d2a6a;let _0x373d7b=![];for(const _0x1c5cd1 of _0x5add35)if(_0x1c5cd1['id']===_0x23bf47&&_0x1c5cd1['c1']===_0x1ba27c&&_0x1c5cd1['c2']===_0x100930){_0x1c5cd1['r2']=_0x33ed16,_0xed15df[_0x2d191e(0x333)](_0x1c5cd1),_0x373d7b=!![];break;}if(!_0x373d7b)_0xed15df[_0x2d191e(0x333)]({'r1':_0x33ed16,'c1':_0x1ba27c,'r2':_0x33ed16,'c2':_0x100930,'id':_0x23bf47});_0x5d2a6a++;}for(const _0x334c14 of _0x5add35)if(!_0xed15df[_0x2d191e(0x21e)](_0x334c14))_0x45b383[_0x2d191e(0x333)](_0x334c14);_0x5add35=_0xed15df;}return _0x45b383[_0x2d191e(0x333)](..._0x5add35),_0x45b383;}function getA1Notation$1([_0x28d810,_0x510de6,_0x4cbae2,_0x84cd44]){if(_0x28d810>_0x510de6)[_0x28d810,_0x510de6]=[_0x510de6,_0x28d810];if(_0x4cbae2>_0x84cd44)[_0x4cbae2,_0x84cd44]=[_0x84cd44,_0x4cbae2];const _0x4249f7=_0x3fab6a=>{const _0x5a29bb=_0x4e06;let _0x2c61c0='';for(;_0x3fab6a>0x0;_0x3fab6a=Math[_0x5a29bb(0x2ee)]((_0x3fab6a-0x1)/0x1a))_0x2c61c0=String[_0x5a29bb(0x337)](0x41+(_0x3fab6a-0x1)%0x1a)+_0x2c61c0;return _0x2c61c0;},_0x40a57a=_0x4249f7(_0x4cbae2+0x1)+(_0x28d810+0x1),_0x28236f=_0x4249f7(_0x84cd44+0x1)+(_0x510de6+0x1);return _0x40a57a===_0x28236f?_0x40a57a:_0x40a57a+':'+_0x28236f;}function groupRect$1(_0x17aaa5,_0x692890){const _0x35fa3d=_0x6875c,_0x478157={};for(const _0x50ed0c of _0x17aaa5){if(!_0x478157[_0x50ed0c['id']]){let _0x385c91=![],_0x5007cb;for(let _0x3ead47=_0x50ed0c['r1'];_0x3ead47<=_0x50ed0c['r2']&&!_0x385c91;_0x3ead47++)for(let _0x15ca8d=_0x50ed0c['c1'];_0x15ca8d<=_0x50ed0c['c2']&&!_0x385c91;_0x15ca8d++){const _0x4af9ca=_0x692890[_0x3ead47][_0x15ca8d];_0x4af9ca&&_0x4af9ca['f']&&(_0x5007cb={'r1':_0x3ead47,'c1':_0x15ca8d,'f':_0x4af9ca['f']},_0x385c91=!![]);}_0x478157[_0x50ed0c['id']]={'hash':_0x50ed0c['id'],'ranges':[],'def':_0x5007cb?{'c1':_0x5007cb['c1'],'r1':_0x5007cb['r1'],'f':_0x5007cb['f']}:void 0x0};}_0x478157[_0x50ed0c['id']][_0x35fa3d(0x3d0)][_0x35fa3d(0x333)]({'startRow':_0x50ed0c['r1'],'endRow':_0x50ed0c['r2'],'startColumn':_0x50ed0c['c1'],'endColumn':_0x50ed0c['c2']});}return Object[_0x35fa3d(0x145)](_0x478157)[_0x35fa3d(0x1cc)]((_0x2597e7,_0x22af37)=>{const _0x3f5bf2=_0x35fa3d;if(_0x2597e7[_0x3f5bf2(0x287)]&&_0x22af37[_0x3f5bf2(0x287)])return _0x2597e7[_0x3f5bf2(0x287)]['r1']-_0x22af37[_0x3f5bf2(0x287)]['r1']||_0x2597e7[_0x3f5bf2(0x287)]['c1']-_0x22af37[_0x3f5bf2(0x287)]['c1'];if(_0x2597e7[_0x3f5bf2(0x287)])return-0x1;if(_0x22af37[_0x3f5bf2(0x287)])return 0x1;return 0x0;})[_0x35fa3d(0x25c)](_0x190f79=>{const _0x11a1d7=_0x35fa3d;return{'firstOccurrence':{'startRow':_0x190f79['def']['r1'],'endRow':_0x190f79[_0x11a1d7(0x287)]['r1'],'startColumn':_0x190f79[_0x11a1d7(0x287)]['c1'],'endColumn':_0x190f79[_0x11a1d7(0x287)]['c1']},'formula':_0x190f79[_0x11a1d7(0x287)]['f'],'filledRanges':_0x190f79[_0x11a1d7(0x3d0)]};});}const FormulaUsageAnalyzerChannelName=_0x6875c(0x381),IFormulaUsageAnalyzer=(0x0,_univerjs_core[_0x6875c(0x25f)])(_0x6875c(0x381));let FormulaUsageAnalyzer=class FormulaUsageAnalyzer{constructor(_0x3f728e,_0x5ab1b6){const _0x47e9cb=_0x6875c;this[_0x47e9cb(0x173)]=_0x3f728e,this[_0x47e9cb(0x2ff)]=_0x5ab1b6;}[_0x6875c(0x1f3)](_0x226ebc){const _0x1896d6=_0x6875c;var _0x22e403;const _0x187d78=_0x226ebc['length'],_0x5628e4=((_0x22e403=_0x226ebc[0x0])===null||_0x22e403===void 0x0?void 0x0:_0x22e403[_0x1896d6(0x18d)])||0x0,_0x4a1f7d={};for(let _0x1d627d=0x0;_0x1d627d<_0x187d78;_0x1d627d++)for(let _0x4dfee8=0x0;_0x4dfee8<_0x5628e4;_0x4dfee8++){const _0x59772c=_0x226ebc[_0x1d627d][_0x4dfee8];if(_0x59772c&&_0x59772c['f']&&_0x59772c['si']&&!_0x4a1f7d[_0x59772c['si']])_0x4a1f7d[_0x59772c['si']]=this['getFormulaHash'](_0x59772c['f'],-_0x4dfee8,-_0x1d627d);}const _0x41c935=[];for(let _0x590c04=0x0;_0x590c04<_0x187d78;_0x590c04++){_0x41c935[_0x590c04]=[];for(let _0x58573a=0x0;_0x58573a<_0x5628e4;_0x58573a++){const _0x3ae4e3=_0x226ebc[_0x590c04][_0x58573a];if(_0x3ae4e3&&(_0x3ae4e3['f']||_0x3ae4e3['si'])){let _0x5b38a4;if(_0x3ae4e3['si']&&_0x4a1f7d[_0x3ae4e3['si']])_0x5b38a4=_0x4a1f7d[_0x3ae4e3['si']];else _0x5b38a4=this['getFormulaHash'](_0x3ae4e3['f'],-_0x58573a,-_0x590c04);_0x41c935[_0x590c04][_0x58573a]={..._0x3ae4e3,'hash':_0x5b38a4};}else _0x41c935[_0x590c04][_0x58573a]=_0x3ae4e3;}}return groupRect$1(compressMatrixFlexible$1({'getItem':(_0xf99da6,_0xe4284f)=>_0x41c935[_0xf99da6][_0xe4284f],'getId':_0x1df10c=>(_0x1df10c===null||_0x1df10c===void 0x0?void 0x0:_0x1df10c['hash'])||'','condition':_0x2d8304=>!!_0x2d8304&&!!_0x2d8304[_0x1896d6(0x340)],'rows':_0x187d78,'cols':_0x5628e4}),_0x41c935);}[_0x6875c(0x133)](_0xab927,_0x3a562b,_0x40127a,_0x15a73d=![]){const _0xe9464c=_0x6875c,_0x5e4757=this[_0xe9464c(0x2ff)][_0xe9464c(0x2e0)](_0xab927);if(_0x5e4757==null)return _0xab927;const _0x45bb05=[];for(let _0x52b715=0x0,_0x1691b1=_0x5e4757[_0xe9464c(0x18d)];_0x52b715<_0x1691b1;_0x52b715++){const _0x2d48f3=_0x5e4757[_0x52b715];if(typeof _0x2d48f3===_0xe9464c(0x368)||_0x2d48f3[_0xe9464c(0x261)]!==_univerjs_engine_formula[_0xe9464c(0x3fb)][_0xe9464c(0x418)]){_0x45bb05[_0xe9464c(0x333)](_0x2d48f3);continue;}const {token:_0xc1115b}=_0x2d48f3,_0x45acc7=(0x0,_univerjs_engine_formula[_0xe9464c(0x41f)])(_0xc1115b),{sheetName:_0x1ea721,unitId:_0x2c3f13}=_0x45acc7;let _0x10f92b=_0x45acc7[_0xe9464c(0x3e6)];if(!_0x15a73d&&_0x10f92b[_0xe9464c(0x369)]===_univerjs_core['AbsoluteRefType'][_0xe9464c(0x241)]&&_0x10f92b[_0xe9464c(0x155)]===_univerjs_core[_0xe9464c(0x2e5)][_0xe9464c(0x241)]){_0x45bb05[_0xe9464c(0x333)](_0x2d48f3);continue;}else _0x10f92b=(0x0,_univerjs_core[_0xe9464c(0x3ef)])(_0x10f92b,_0x3a562b,_0x40127a,_0x15a73d);let _0x4ac058='';_0x4ac058=(0x0,_univerjs_engine_formula[_0xe9464c(0x319)])({'range':_0x10f92b,'unitId':_0x2c3f13,'sheetName':_0x1ea721}),_0x45bb05[_0xe9464c(0x333)]({..._0x2d48f3,'token':_0x4ac058});}return'='+(0x0,_univerjs_engine_formula[_0xe9464c(0x180)])(_0x45bb05);}[_0x6875c(0x1e4)](_0x3d3434,_0x5abe08,_0x5d290e,_0x2dd815=![]){const _0x4075a5=_0x6875c;return this[_0x4075a5(0x2ff)]['moveFormulaRefOffset'](_0x3d3434,_0x5abe08,_0x5d290e,_0x2dd815);}};FormulaUsageAnalyzer=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x6875c(0x292)])(_univerjs_engine_formula[_0x6875c(0x1a2)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x6875c(0x292)])(_univerjs_engine_formula['LexerTreeBuilder']))],FormulaUsageAnalyzer);function _typeof(_0x196dfe){'@babel/helpers - typeof';const _0xfaeac7=_0x6875c;return _typeof=_0xfaeac7(0x1f4)==typeof Symbol&&_0xfaeac7(0x321)==typeof Symbol[_0xfaeac7(0x3a7)]?function(_0xf9e798){return typeof _0xf9e798;}:function(_0x3688b5){const _0x48bd57=_0xfaeac7;return _0x3688b5&&'function'==typeof Symbol&&_0x3688b5[_0x48bd57(0x142)]===Symbol&&_0x3688b5!==Symbol[_0x48bd57(0x344)]?'symbol':typeof _0x3688b5;},_typeof(_0x196dfe);}function toPrimitive(_0x53ba4b,_0x3d5725){const _0x256dbe=_0x6875c;if(_0x256dbe(0x23e)!=_typeof(_0x53ba4b)||!_0x53ba4b)return _0x53ba4b;var _0x44b11d=_0x53ba4b[Symbol['toPrimitive']];if(void 0x0!==_0x44b11d){var _0x477279=_0x44b11d['call'](_0x53ba4b,_0x3d5725||'default');if(_0x256dbe(0x23e)!=_typeof(_0x477279))return _0x477279;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x256dbe(0x368)===_0x3d5725?String:Number)(_0x53ba4b);}function toPropertyKey(_0x23c274){const _0x584053=_0x6875c;var _0x555fca=toPrimitive(_0x23c274,_0x584053(0x368));return _0x584053(0x321)==_typeof(_0x555fca)?_0x555fca:_0x555fca+'';}function _defineProperty(_0x24b683,_0x33ed12,_0x4a551c){return(_0x33ed12=toPropertyKey(_0x33ed12))in _0x24b683?Object['defineProperty'](_0x24b683,_0x33ed12,{'value':_0x4a551c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24b683[_0x33ed12]=_0x4a551c,_0x24b683;}function columnIndexToLetter(_0x2edee1){const _0x58db80=_0x6875c;let _0x5b61b0='',_0x246cc4=_0x2edee1+0x1;while(_0x246cc4>0x0){const _0x5eef8f=(_0x246cc4-0x1)%0x1a;_0x5b61b0=String[_0x58db80(0x337)](0x41+_0x5eef8f)+_0x5b61b0,_0x246cc4=Math[_0x58db80(0x2ee)]((_0x246cc4-0x1)/0x1a);}return _0x5b61b0;}function columnRangeToA1(_0x393f99){const _0x4039e3=_0x6875c,_0xbd1c20=columnIndexToLetter(_0x393f99[_0x4039e3(0x400)]),_0x5be2e3=columnIndexToLetter(_0x393f99['endColumn']);return _0xbd1c20===_0x5be2e3?_0xbd1c20:_0xbd1c20+':'+_0x5be2e3;}function rowRangeToA1(_0x482583){const _0x20d879=_0x6875c,_0x2a045b=_0x482583['startRow']+0x1,_0x5e32fa=_0x482583[_0x20d879(0x1d2)]+0x1;return _0x2a045b===_0x5e32fa?''+_0x2a045b:_0x2a045b+':'+_0x5e32fa;}function applyMaxCount$1(_0x23822d,_0x390480){const _0x575aae=_0x6875c;if(_0x390480===void 0x0||_0x390480<=0x0||_0x23822d[_0x575aae(0x18d)]<=_0x390480)return _0x23822d;return _0x23822d[_0x575aae(0x12b)](0x0,_0x390480);}function groupConsecutiveRanges(_0x4d64a9){const _0x5bafde=_0x6875c;if(_0x4d64a9[_0x5bafde(0x18d)]===0x0)return[];const _0x280ecb=[];let _0x5441c5=_0x4d64a9[0x0],_0x46fe94=_0x4d64a9[0x0];for(let _0x5de02b=0x1;_0x5de02b<_0x4d64a9[_0x5bafde(0x18d)];_0x5de02b++)if(_0x4d64a9[_0x5de02b]===_0x46fe94+0x1)_0x46fe94=_0x4d64a9[_0x5de02b];else _0x280ecb['push']({'startRow':_0x5441c5,'endRow':_0x46fe94}),_0x5441c5=_0x4d64a9[_0x5de02b],_0x46fe94=_0x4d64a9[_0x5de02b];return _0x280ecb[_0x5bafde(0x333)]({'startRow':_0x5441c5,'endRow':_0x46fe94}),_0x280ecb;}function groupConsecutiveColumnRanges(_0x202499){const _0x50137d=_0x6875c;if(_0x202499[_0x50137d(0x18d)]===0x0)return[];const _0x45ce41=[];let _0x8217c2=_0x202499[0x0],_0x501ec0=_0x202499[0x0];for(let _0x2cf728=0x1;_0x2cf728<_0x202499[_0x50137d(0x18d)];_0x2cf728++)if(_0x202499[_0x2cf728]===_0x501ec0+0x1)_0x501ec0=_0x202499[_0x2cf728];else _0x45ce41['push']({'startColumn':_0x8217c2,'endColumn':_0x501ec0}),_0x8217c2=_0x202499[_0x2cf728],_0x501ec0=_0x202499[_0x2cf728];return _0x45ce41[_0x50137d(0x333)]({'startColumn':_0x8217c2,'endColumn':_0x501ec0}),_0x45ce41;}const ISizeUsageAnalyzer=(0x0,_univerjs_core[_0x6875c(0x25f)])('sheets.mcp.size-usage-analyzer');var SizeUsageAnalyzer=class{constructor(){const _0x575360=_0x6875c;_defineProperty(this,_0x575360(0x2dc),void 0x0);}[_0x6875c(0x138)](_0x314e74){const _0x3dcdd3=_0x6875c;this['_maxCount']=_0x314e74===null||_0x314e74===void 0x0?void 0x0:_0x314e74[_0x3dcdd3(0x1c0)];}[_0x6875c(0x1c5)](_0x243a08,_0x41a956,_0x4827ef,_0x317d4f,_0x1bf28e){const _0x40f81e=_0x6875c,_0x47ee8b=_0x4827ef!==null&&_0x4827ef!==void 0x0?_0x4827ef:_0x243a08[_0x40f81e(0x2c3)]()-0x1,_0x121833=_0x1bf28e!==null&&_0x1bf28e!==void 0x0?_0x1bf28e:_0x243a08[_0x40f81e(0x223)]()-0x1,_0x5274ed=new Map();for(let _0x3bf8ef=_0x41a956!==null&&_0x41a956!==void 0x0?_0x41a956:0x0;_0x3bf8ef<=_0x47ee8b;_0x3bf8ef++){const _0x19b84b=Math['round'](_0x243a08[_0x40f81e(0x2b0)](_0x3bf8ef));if(!_0x5274ed[_0x40f81e(0x3bd)](_0x19b84b))_0x5274ed[_0x40f81e(0x33b)](_0x19b84b,[]);_0x5274ed[_0x40f81e(0x2b8)](_0x19b84b)['push'](_0x3bf8ef);}const _0x4503c9=new Map();for(let _0x445776=_0x317d4f!==null&&_0x317d4f!==void 0x0?_0x317d4f:0x0;_0x445776<=_0x121833;_0x445776++){const _0x35e22b=Math[_0x40f81e(0x3eb)](_0x243a08[_0x40f81e(0x19a)](_0x445776));if(!_0x4503c9[_0x40f81e(0x3bd)](_0x35e22b))_0x4503c9[_0x40f81e(0x33b)](_0x35e22b,[]);_0x4503c9[_0x40f81e(0x2b8)](_0x35e22b)[_0x40f81e(0x333)](_0x445776);}const _0x4b40db=[],_0x4d7862=Array['from'](_0x5274ed[_0x40f81e(0x360)]())[_0x40f81e(0x1cc)]((_0x4fe12e,_0x12ab3a)=>_0x4fe12e[0x0]-_0x12ab3a[0x0]);for(const [_0x3aaea6,_0xdee60e]of _0x4d7862)_0x4b40db['push']({'value':_0x3aaea6,'ranges':groupConsecutiveRanges(_0xdee60e)});const _0x56e195=[],_0x2f6b56=Array['from'](_0x4503c9[_0x40f81e(0x360)]())[_0x40f81e(0x1cc)]((_0x149bd2,_0x4ea144)=>_0x149bd2[0x0]-_0x4ea144[0x0]);for(const [_0x8155d2,_0x45358d]of _0x2f6b56)_0x56e195[_0x40f81e(0x333)]({'value':_0x8155d2,'ranges':groupConsecutiveColumnRanges(_0x45358d)});return{'widths':applyMaxCount$1(_0x56e195,this[_0x40f81e(0x2dc)]),'heights':applyMaxCount$1(_0x4b40db,this[_0x40f81e(0x2dc)])};}[_0x6875c(0x3e2)](_0x4791ff){const _0x358af6=_0x6875c;return{'widths':_0x4791ff['widths'][_0x358af6(0x25c)](_0x58ed19=>({'value':_0x58ed19['value'],'ranges':_0x58ed19['ranges'][_0x358af6(0x25c)](columnRangeToA1)[_0x358af6(0x1b9)](',\x20')})),'heights':_0x4791ff['heights']['map'](_0x5dc8dc=>({'value':_0x5dc8dc[_0x358af6(0x1b3)],'ranges':_0x5dc8dc[_0x358af6(0x3d0)][_0x358af6(0x25c)](rowRangeToA1)[_0x358af6(0x1b9)](',\x20')}))};}};function compressMatrixFlexible({getItem:_0x438ea8,getId:_0x511e42,condition:_0x19fb3f,rows:_0x29c406,cols:_0x46b6f5}){const _0x30fcd0=_0x6875c,_0x41f4ea=[];let _0x491174=[];for(let _0x2c7c13=0x0;_0x2c7c13<_0x29c406;_0x2c7c13++){const _0x313055=[];let _0x49feac=0x0;while(_0x49feac<_0x46b6f5){const _0x2b6f1b=_0x438ea8(_0x2c7c13,_0x49feac);if(!_0x2b6f1b||!_0x19fb3f(_0x2b6f1b,_0x2c7c13,_0x49feac)){_0x49feac++;continue;}const _0x27ee46=_0x511e42(_0x2b6f1b),_0x1b41a3=_0x49feac;while(_0x49feac+0x1<_0x46b6f5&&((()=>{const _0xe26fc=_0x438ea8(_0x2c7c13,_0x49feac+0x1);return _0xe26fc&&_0x19fb3f(_0xe26fc,_0x2c7c13,_0x49feac)&&_0x511e42(_0xe26fc)===_0x27ee46;})()))_0x49feac++;const _0xee818c=_0x49feac;let _0x58e816=![];for(const _0x3d1670 of _0x491174)if(_0x3d1670['id']===_0x27ee46&&_0x3d1670['c1']===_0x1b41a3&&_0x3d1670['c2']===_0xee818c){_0x3d1670['r2']=_0x2c7c13,_0x313055[_0x30fcd0(0x333)](_0x3d1670),_0x58e816=!![];break;}if(!_0x58e816)_0x313055[_0x30fcd0(0x333)]({'r1':_0x2c7c13,'c1':_0x1b41a3,'r2':_0x2c7c13,'c2':_0xee818c,'id':_0x27ee46});_0x49feac++;}for(const _0x1e91ff of _0x491174)if(!_0x313055[_0x30fcd0(0x21e)](_0x1e91ff))_0x41f4ea[_0x30fcd0(0x333)](_0x1e91ff);_0x491174=_0x313055;}return _0x41f4ea[_0x30fcd0(0x333)](..._0x491174),_0x41f4ea;}function getA1Notation([_0x79fb4,_0x52b528,_0x4f2fd7,_0x1598fe]){if(_0x79fb4>_0x52b528)[_0x79fb4,_0x52b528]=[_0x52b528,_0x79fb4];if(_0x4f2fd7>_0x1598fe)[_0x4f2fd7,_0x1598fe]=[_0x1598fe,_0x4f2fd7];const _0x458540=_0x3d7add=>{const _0x63dad8=_0x4e06;let _0x342914='';for(;_0x3d7add>0x0;_0x3d7add=Math['floor']((_0x3d7add-0x1)/0x1a))_0x342914=String[_0x63dad8(0x337)](0x41+(_0x3d7add-0x1)%0x1a)+_0x342914;return _0x342914;},_0x25fc91=_0x458540(_0x4f2fd7+0x1)+(_0x79fb4+0x1),_0x38d4e2=_0x458540(_0x1598fe+0x1)+(_0x52b528+0x1);return _0x25fc91===_0x38d4e2?_0x25fc91:_0x25fc91+':'+_0x38d4e2;}function groupRect(_0x3f1efd,_0x3054ea){const _0x5cd579=_0x6875c,_0x2cd3a8={};for(const _0xa69ac of _0x3f1efd){if(!_0x2cd3a8[_0xa69ac['id']]){let _0x1408fd=![],_0x19a3f2;for(let _0x18d19e=_0xa69ac['r1'];_0x18d19e<=_0xa69ac['r2']&&!_0x1408fd;_0x18d19e++)for(let _0x594ba6=_0xa69ac['c1'];_0x594ba6<=_0xa69ac['c2']&&!_0x1408fd;_0x594ba6++){const _0x123518=_0x3054ea[_0x18d19e][_0x594ba6];_0x123518&&_0x123518[_0x5cd579(0x340)]&&(_0x19a3f2={'r1':_0x18d19e,'c1':_0x594ba6,'data':_0x123518},_0x1408fd=!![]);}_0x2cd3a8[_0xa69ac['id']]={'hash':_0xa69ac['id'],'ranges':[],'def':_0x19a3f2?{'c1':_0x19a3f2['c1'],'r1':_0x19a3f2['r1'],'data':_0x19a3f2['data']}:void 0x0};}_0x2cd3a8[_0xa69ac['id']][_0x5cd579(0x3d0)][_0x5cd579(0x333)]({'startRow':_0xa69ac['r1'],'endRow':_0xa69ac['r2'],'startColumn':_0xa69ac['c1'],'endColumn':_0xa69ac['c2']});}return Object[_0x5cd579(0x145)](_0x2cd3a8)['sort']((_0x4e5d67,_0x593350)=>{const _0x139a15=_0x5cd579;if(_0x4e5d67[_0x139a15(0x287)]&&_0x593350[_0x139a15(0x287)])return _0x4e5d67[_0x139a15(0x287)]['r1']-_0x593350[_0x139a15(0x287)]['r1']||_0x4e5d67[_0x139a15(0x287)]['c1']-_0x593350[_0x139a15(0x287)]['c1'];if(_0x4e5d67[_0x139a15(0x287)])return-0x1;if(_0x593350[_0x139a15(0x287)])return 0x1;return 0x0;})['map'](_0x2a9bbc=>{const _0x354b82=_0x5cd579;return{'dataHash':_0x2a9bbc['hash'],'firstOccurrence':{'startRow':_0x2a9bbc[_0x354b82(0x287)]['r1'],'endRow':_0x2a9bbc[_0x354b82(0x287)]['r1'],'startColumn':_0x2a9bbc[_0x354b82(0x287)]['c1'],'endColumn':_0x2a9bbc[_0x354b82(0x287)]['c1']},'filledRanges':_0x2a9bbc[_0x354b82(0x3d0)]};});}const ICellUsageAnalyzer=(0x0,_univerjs_core[_0x6875c(0x25f)])(_0x6875c(0x3c5));var CellUsageAnalyzer=class{[_0x6875c(0x33a)](_0x30ba92,_0x3735c5){const _0xaad5e8=_0x6875c;var _0x2ef28f;const _0x37d7b3=_0x30ba92[_0xaad5e8(0x18d)],_0x5b7682=((_0x2ef28f=_0x30ba92[0x0])===null||_0x2ef28f===void 0x0?void 0x0:_0x2ef28f[_0xaad5e8(0x18d)])||0x0,_0x592348=[];for(let _0x195c59=0x0;_0x195c59<_0x37d7b3;_0x195c59++){_0x592348[_0x195c59]=[];for(let _0x419776=0x0;_0x419776<_0x5b7682;_0x419776++){const _0x917c32=_0x30ba92[_0x195c59][_0x419776],_0xf297c2=_0x3735c5[_0xaad5e8(0x127)](_0x917c32),_0x289e10=_0x3735c5[_0xaad5e8(0x156)](_0xf297c2,_0x195c59,_0x419776);if(_0x289e10)_0x592348[_0x195c59][_0x419776]={..._0x917c32,'hash':_0x289e10};else _0x592348[_0x195c59][_0x419776]=_0x917c32;}}return groupRect(compressMatrixFlexible({'getItem':(_0x1bda25,_0x44c454)=>_0x592348[_0x1bda25][_0x44c454],'getId':_0x5a36fd=>(_0x5a36fd===null||_0x5a36fd===void 0x0?void 0x0:_0x5a36fd[_0xaad5e8(0x340)])||'','condition':_0x32b422=>!!_0x32b422&&!!_0x32b422[_0xaad5e8(0x340)],'rows':_0x37d7b3,'cols':_0x5b7682}),_0x592348);}};const HORIZONTAL_ALIGN_MAP={[_univerjs_core[_0x6875c(0x135)][_0x6875c(0x1db)]]:'unspec',[_univerjs_core[_0x6875c(0x135)][_0x6875c(0x379)]]:_0x6875c(0x192),[_univerjs_core[_0x6875c(0x135)][_0x6875c(0x240)]]:'center',[_univerjs_core[_0x6875c(0x135)][_0x6875c(0x25d)]]:_0x6875c(0x1cb),[_univerjs_core[_0x6875c(0x135)]['JUSTIFIED']]:_0x6875c(0x341),[_univerjs_core[_0x6875c(0x135)][_0x6875c(0x31a)]]:_0x6875c(0x22d),[_univerjs_core['HorizontalAlign'][_0x6875c(0x374)]]:_0x6875c(0x3b2)},VERTICAL_ALIGN_MAP={[_univerjs_core['VerticalAlign']['UNSPECIFIED']]:_0x6875c(0x20c),[_univerjs_core[_0x6875c(0x3fd)][_0x6875c(0x195)]]:_0x6875c(0x1f8),[_univerjs_core[_0x6875c(0x3fd)][_0x6875c(0x3cc)]]:_0x6875c(0x272),[_univerjs_core[_0x6875c(0x3fd)]['BOTTOM']]:'bot'};var StyleExtractorCondition=class{constructor(_0x355ad0,_0x423ddf,_0x530aa5){const _0x4e7dee=_0x6875c;this[_0x4e7dee(0x3b8)]=_0x355ad0,this[_0x4e7dee(0x2fd)]=_0x423ddf,this[_0x4e7dee(0x1a9)]=_0x530aa5;}[_0x6875c(0x127)](_0x33762e){if(!_0x33762e)return null;return _0x33762e;}['getHash'](_0x1c60db,_0x18d83d,_0x3cd812){const _0x25d062=_0x6875c,_0x3e354d=[];if(_0x1c60db===null||_0x1c60db===void 0x0?void 0x0:_0x1c60db['s']){const _0x5c7acf=typeof _0x1c60db['s']===_0x25d062(0x368)?this['getStyleById'](_0x1c60db['s']):_0x1c60db['s'];if(_0x5c7acf){var _0x349331,_0x74211f,_0x2c8341,_0x3ede97,_0x808bad;if(this[_0x25d062(0x3b8)][_0x25d062(0x345)]&&_0x5c7acf['ff'])_0x3e354d['push'](_0x25d062(0x15d)+_0x5c7acf['ff']);if(this[_0x25d062(0x3b8)][_0x25d062(0x38a)]&&_0x5c7acf['fs'])_0x3e354d[_0x25d062(0x333)](_0x25d062(0x401)+_0x5c7acf['fs']);if(this[_0x25d062(0x3b8)][_0x25d062(0x2f0)]&&_0x5c7acf['bl']===_univerjs_core[_0x25d062(0x2b3)][_0x25d062(0x154)])_0x3e354d[_0x25d062(0x333)](_0x25d062(0x2ae));if(this[_0x25d062(0x3b8)][_0x25d062(0x296)]&&_0x5c7acf['it']===_univerjs_core['BooleanNumber'][_0x25d062(0x154)])_0x3e354d[_0x25d062(0x333)](_0x25d062(0x13b));if(this[_0x25d062(0x3b8)]['fontColor']&&((_0x349331=_0x5c7acf['cl'])===null||_0x349331===void 0x0?void 0x0:_0x349331[_0x25d062(0x3a6)]))_0x3e354d[_0x25d062(0x333)](_0x25d062(0x246)+_0x5c7acf['cl']['rgb']);if(this[_0x25d062(0x3b8)]['backgroundColor']&&((_0x74211f=_0x5c7acf['bg'])===null||_0x74211f===void 0x0?void 0x0:_0x74211f[_0x25d062(0x3a6)]))_0x3e354d[_0x25d062(0x333)](_0x25d062(0x334)+_0x5c7acf['bg']['rgb']);if(this[_0x25d062(0x3b8)]['horizontalAlign']&&_0x5c7acf['ht']!=null&&_0x5c7acf['ht']!==_univerjs_core[_0x25d062(0x135)][_0x25d062(0x1db)])_0x3e354d['push'](_0x25d062(0x1d1)+HORIZONTAL_ALIGN_MAP[_0x5c7acf['ht']]);if(this[_0x25d062(0x3b8)][_0x25d062(0x1c4)]&&_0x5c7acf['vt']!=null&&_0x5c7acf['vt']!==_univerjs_core[_0x25d062(0x3fd)][_0x25d062(0x1db)])_0x3e354d[_0x25d062(0x333)]('va:'+VERTICAL_ALIGN_MAP[_0x5c7acf['vt']]);if(this[_0x25d062(0x3b8)][_0x25d062(0x404)]&&((_0x2c8341=_0x5c7acf['ul'])===null||_0x2c8341===void 0x0?void 0x0:_0x2c8341['s'])===_univerjs_core[_0x25d062(0x2b3)][_0x25d062(0x154)]){var _0x222650;if(((_0x222650=_0x5c7acf['ul']['t'])!==null&&_0x222650!==void 0x0?_0x222650:_univerjs_core[_0x25d062(0x1e2)][_0x25d062(0x2f6)])!==_univerjs_core[_0x25d062(0x1e2)][_0x25d062(0x130)])_0x3e354d[_0x25d062(0x333)]('ul:1');}if(this[_0x25d062(0x3b8)][_0x25d062(0x1be)]&&((_0x3ede97=_0x5c7acf['st'])===null||_0x3ede97===void 0x0?void 0x0:_0x3ede97['s'])===_univerjs_core[_0x25d062(0x2b3)][_0x25d062(0x154)]){var _0x1b2b16;if(((_0x1b2b16=_0x5c7acf['st']['t'])!==null&&_0x1b2b16!==void 0x0?_0x1b2b16:_univerjs_core[_0x25d062(0x1e2)][_0x25d062(0x2f6)])!==_univerjs_core[_0x25d062(0x1e2)][_0x25d062(0x130)])_0x3e354d[_0x25d062(0x333)]('st:1');}if(this[_0x25d062(0x3b8)][_0x25d062(0x2d6)]&&((_0x808bad=_0x5c7acf['n'])===null||_0x808bad===void 0x0?void 0x0:_0x808bad[_0x25d062(0x220)])&&_0x5c7acf['n'][_0x25d062(0x220)]!==_0x25d062(0x3e1))_0x3e354d[_0x25d062(0x333)](_0x25d062(0x2c0)+_0x5c7acf['n'][_0x25d062(0x220)]);}}if(this[_0x25d062(0x1a9)]){if(this[_0x25d062(0x3b8)][_0x25d062(0x3ae)]&&typeof _0x18d83d==='number'){const _0x2b178e=Math[_0x25d062(0x3eb)](this[_0x25d062(0x1a9)][_0x25d062(0x2b0)](_0x18d83d));_0x3e354d[_0x25d062(0x333)]('h:'+_0x2b178e);}if(this[_0x25d062(0x3b8)][_0x25d062(0x3ee)]&&typeof _0x3cd812==='number'){const _0x531a35=Math[_0x25d062(0x3eb)](this[_0x25d062(0x1a9)][_0x25d062(0x19a)](_0x3cd812));_0x3e354d[_0x25d062(0x333)]('w:'+_0x531a35);}}return _0x3e354d[_0x25d062(0x1b9)]('|');}};function toStyleUsage(_0x4f85de){const _0x1a17b3=_0x6875c;return{'styleHash':_0x4f85de[_0x1a17b3(0x2de)],'filledRanges':_0x4f85de[_0x1a17b3(0x1ac)]};}function toA1$1(_0x523110){const _0xbc24b6=_0x6875c;return{'styleHash':_0x523110[_0xbc24b6(0x14c)],'filledRanges':_0x523110[_0xbc24b6(0x1ac)][_0xbc24b6(0x25c)](_0x5ac135=>getA1Notation([_0x5ac135[_0xbc24b6(0x2da)],_0x5ac135[_0xbc24b6(0x1d2)],_0x5ac135[_0xbc24b6(0x400)],_0x5ac135[_0xbc24b6(0x2e9)]]))[_0xbc24b6(0x1b9)](',')};}function applyMaxCount(_0x10f005,_0x276355){const _0x1844a6=_0x6875c;if(_0x276355===void 0x0||_0x276355<=0x0||_0x10f005[_0x1844a6(0x18d)]<=_0x276355)return _0x10f005;return _0x10f005[_0x1844a6(0x12b)](0x0,_0x276355);}const PROPERTY_ALIASES={'ff':_0x6875c(0x345),'fontFamily':_0x6875c(0x345),'fs':'fontSize','fontSize':_0x6875c(0x38a),'bl':_0x6875c(0x2f0),'bold':'bold','it':'italic','italic':_0x6875c(0x296),'fc':'fontColor','fontColor':_0x6875c(0x198),'bc':_0x6875c(0x208),'backgroundColor':'backgroundColor','w':_0x6875c(0x3ee),'width':_0x6875c(0x3ee),'h':_0x6875c(0x3ae),'height':'height','ha':_0x6875c(0x3a4),'horizontalAlign':_0x6875c(0x3a4),'va':'verticalAlign','verticalAlign':'verticalAlign','ul':_0x6875c(0x404),'underline':'underline','st':_0x6875c(0x1be),'strikethrough':_0x6875c(0x1be),'nf':_0x6875c(0x2d6),'numberFormat':_0x6875c(0x2d6)};function normalizeProperty(_0x5bcfa1){const _0x389e31=_0x6875c;if(['fontFamily',_0x389e31(0x38a),_0x389e31(0x2f0),_0x389e31(0x296),_0x389e31(0x198),_0x389e31(0x208),'width','height',_0x389e31(0x3a4),_0x389e31(0x1c4),_0x389e31(0x404),'strikethrough',_0x389e31(0x2d6)][_0x389e31(0x21e)](_0x5bcfa1))return _0x5bcfa1;if(PROPERTY_ALIASES[_0x5bcfa1]!==void 0x0)return PROPERTY_ALIASES[_0x5bcfa1];}function buildConfigFromOptions(_0xf86f20){const _0xe22cd6=_0x6875c;if(!(_0xf86f20===null||_0xf86f20===void 0x0?void 0x0:_0xf86f20[_0xe22cd6(0x283)])||_0xf86f20[_0xe22cd6(0x283)][_0xe22cd6(0x18d)]===0x0)return{'fontFamily':!![],'fontSize':!![],'bold':!![],'italic':![],'fontColor':!![],'backgroundColor':!![],'width':![],'height':![],'horizontalAlign':![],'verticalAlign':![],'underline':![],'strikethrough':![],'numberFormat':![]};const _0x20a32f=new Set();for(const _0x2d580b of _0xf86f20[_0xe22cd6(0x283)]){const _0x318c31=normalizeProperty(_0x2d580b);if(_0x318c31)_0x20a32f[_0xe22cd6(0x39a)](_0x318c31);}return{'fontFamily':_0x20a32f[_0xe22cd6(0x3bd)](_0xe22cd6(0x345)),'fontSize':_0x20a32f[_0xe22cd6(0x3bd)](_0xe22cd6(0x38a)),'bold':_0x20a32f[_0xe22cd6(0x3bd)](_0xe22cd6(0x2f0)),'italic':_0x20a32f[_0xe22cd6(0x3bd)](_0xe22cd6(0x296)),'fontColor':_0x20a32f[_0xe22cd6(0x3bd)]('fontColor'),'backgroundColor':_0x20a32f[_0xe22cd6(0x3bd)](_0xe22cd6(0x208)),'width':_0x20a32f['has'](_0xe22cd6(0x3ee)),'height':_0x20a32f['has'](_0xe22cd6(0x3ae)),'horizontalAlign':_0x20a32f[_0xe22cd6(0x3bd)]('horizontalAlign'),'verticalAlign':_0x20a32f[_0xe22cd6(0x3bd)]('verticalAlign'),'underline':_0x20a32f['has'](_0xe22cd6(0x404)),'strikethrough':_0x20a32f[_0xe22cd6(0x3bd)](_0xe22cd6(0x1be)),'numberFormat':_0x20a32f[_0xe22cd6(0x3bd)](_0xe22cd6(0x2d6))};}const IStyleUsageAnalyzer=(0x0,_univerjs_core[_0x6875c(0x25f)])(_0x6875c(0x32f));var StyleUsageAnalyzer=class extends CellUsageAnalyzer{constructor(_0x3a5652){const _0x40dba1=_0x6875c;super(),_defineProperty(this,_0x40dba1(0x2b1),void 0x0),_defineProperty(this,'_maxCount',void 0x0),this['_config']=_0x3a5652||{'fontFamily':!![],'fontSize':!![],'bold':!![],'italic':![],'fontColor':!![],'backgroundColor':!![],'width':![],'height':![],'horizontalAlign':![],'verticalAlign':![],'underline':![],'strikethrough':![],'numberFormat':![]};}[_0x6875c(0x138)](_0x34b733){const _0x5154a5=_0x6875c;this[_0x5154a5(0x2b1)]=buildConfigFromOptions(_0x34b733),this[_0x5154a5(0x2dc)]=_0x34b733===null||_0x34b733===void 0x0?void 0x0:_0x34b733[_0x5154a5(0x1c0)];}[_0x6875c(0x2b6)](_0x2a00a9,_0x4962e6,_0x5d4bc2){const _0x4849ec=_0x6875c,_0x484608=new StyleExtractorCondition(this[_0x4849ec(0x2b1)],_0xbdf38a=>{const _0x3b66af=_0x4849ec;var _0x3f6630;return(_0x3f6630=_0x4962e6[_0x3b66af(0x28b)]()['get'](_0xbdf38a))!==null&&_0x3f6630!==void 0x0?_0x3f6630:null;},_0x5d4bc2);return applyMaxCount(this[_0x4849ec(0x33a)](_0x2a00a9,_0x484608)[_0x4849ec(0x25c)](toStyleUsage),this[_0x4849ec(0x2dc)]);}},ConditionalFormatConverter=class{static[_0x6875c(0x166)](_0x310d8a){const _0x320308=_0x6875c;switch(_0x310d8a[_0x320308(0x3ca)]){case _0x320308(0x402):return this[_0x320308(0x385)](_0x310d8a);case _0x320308(0x2aa):return this[_0x320308(0x29c)](_0x310d8a);case _0x320308(0x26c):return this['toColorScaleConfig'](_0x310d8a);default:throw new Error('Unsupported\x20rule\x20type:\x20'+_0x310d8a[_0x320308(0x3ca)]);}}static[_0x6875c(0x35b)](_0x148826){const _0x2b6831=_0x6875c;if(_0x148826['rule'][_0x2b6831(0x331)]===_univerjs_sheets_conditional_formatting[_0x2b6831(0x35e)][_0x2b6831(0x402)])return this[_0x2b6831(0x23f)](_0x148826);else{if(_0x148826['rule'][_0x2b6831(0x331)]===_univerjs_sheets_conditional_formatting[_0x2b6831(0x35e)]['dataBar'])return this[_0x2b6831(0x2a1)](_0x148826);else{if(_0x148826[_0x2b6831(0x244)][_0x2b6831(0x331)]===_univerjs_sheets_conditional_formatting[_0x2b6831(0x35e)][_0x2b6831(0x26c)])return this[_0x2b6831(0x18e)](_0x148826);}}throw new Error('Unsupported\x20conditional\x20formatting\x20configuration');}static['toInternalStyle'](_0x3504e7){const _0x171f50=_0x6875c,_0x37c20c={};if(_0x3504e7[_0x171f50(0x31f)])_0x37c20c['cl']={'rgb':_0x3504e7[_0x171f50(0x31f)]};if(_0x3504e7[_0x171f50(0x359)])_0x37c20c['bg']={'rgb':_0x3504e7[_0x171f50(0x359)]};if(_0x3504e7[_0x171f50(0x2f0)]!==void 0x0)_0x37c20c['bl']=_0x3504e7['bold']?0x1:0x0;if(_0x3504e7['italic']!==void 0x0)_0x37c20c['it']=_0x3504e7[_0x171f50(0x296)]?0x1:0x0;if(_0x3504e7[_0x171f50(0x404)]!==void 0x0)_0x37c20c['ul']={'s':_0x3504e7['underline']?0x1:0x0};return _0x37c20c;}static['fromInternalStyle'](_0x1a6677){const _0x2d243a=_0x6875c;var _0x26b5b0,_0x286123,_0x18e740;return{...((_0x26b5b0=_0x1a6677['cl'])===null||_0x26b5b0===void 0x0?void 0x0:_0x26b5b0[_0x2d243a(0x3a6)])?{'fgColor':_0x1a6677['cl'][_0x2d243a(0x3a6)]}:{},...((_0x286123=_0x1a6677['bg'])===null||_0x286123===void 0x0?void 0x0:_0x286123['rgb'])?{'bgColor':_0x1a6677['bg'][_0x2d243a(0x3a6)]}:{},..._0x1a6677['bl']!==void 0x0?{'bold':_0x1a6677['bl']===0x1}:{},..._0x1a6677['it']!==void 0x0?{'italic':_0x1a6677['it']===0x1}:{},...((_0x18e740=_0x1a6677['ul'])===null||_0x18e740===void 0x0?void 0x0:_0x18e740['s'])!==void 0x0?{'underline':_0x1a6677['ul']['s']===0x1}:{}};}static[_0x6875c(0x385)](_0x15b873){const _0x11ee58=_0x6875c;var _0xfab9c9;let _0x284b9e={'type':_univerjs_sheets_conditional_formatting[_0x11ee58(0x35e)][_0x11ee58(0x402)],'subType':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1af)][_0x15b873[_0x11ee58(0x206)]],'style':this[_0x11ee58(0x2a2)](_0x15b873['style']||{})};switch(_0x15b873['sub_type']){case _0x11ee58(0x31d):_0x284b9e={..._0x284b9e,'subType':_univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x11ee58(0x31d)]};break;case _0x11ee58(0x1b1):_0x284b9e={..._0x284b9e,'subType':_univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x11ee58(0x1b1)]};break;case'rank':var _0x34a159,_0xab228f;_0x284b9e={..._0x284b9e,'subType':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1af)][_0x11ee58(0x1da)],'isBottom':(_0x34a159=_0x15b873[_0x11ee58(0x163)])!==null&&_0x34a159!==void 0x0?_0x34a159:![],'isPercent':(_0xab228f=_0x15b873[_0x11ee58(0x1b0)])!==null&&_0xab228f!==void 0x0?_0xab228f:![],'value':_0x15b873[_0x11ee58(0x1b3)]};break;case _0x11ee58(0x2e1):_0x284b9e={..._0x284b9e,'subType':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1af)]['text'],'operator':_univerjs_sheets_conditional_formatting[_0x11ee58(0x177)][_0x15b873[_0x11ee58(0x126)]],'value':_0x15b873[_0x11ee58(0x1b3)]};break;case _0x11ee58(0x260):_0x284b9e={..._0x284b9e,'subType':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1af)][_0x11ee58(0x260)],'operator':_univerjs_sheets_conditional_formatting[_0x11ee58(0x167)][_0x15b873[_0x11ee58(0x126)]]};break;case _0x11ee58(0x1d0):let _0x113d45=_0x15b873[_0x11ee58(0x1d0)]||_0x15b873[_0x11ee58(0x1b3)];if(_0x113d45&&!_0x113d45[_0x11ee58(0x2d9)]('='))_0x113d45='='+_0x113d45;_0x284b9e={..._0x284b9e,'subType':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1af)][_0x11ee58(0x1d0)],'value':_0x113d45};break;case _0x11ee58(0x2d0):if(_0x15b873[_0x11ee58(0x126)]===_0x11ee58(0x3bc)||_0x15b873['operator']===_0x11ee58(0x232))_0x284b9e={..._0x284b9e,'subType':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1af)][_0x11ee58(0x2d0)],'operator':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1a4)][_0x15b873[_0x11ee58(0x126)]],'value':_0x15b873['value']};else _0x284b9e={..._0x284b9e,'subType':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1af)]['number'],'operator':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1a4)][_0x15b873[_0x11ee58(0x126)]],'value':_0x15b873[_0x11ee58(0x1b3)]};break;case'average':_0x284b9e={..._0x284b9e,'subType':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1af)][_0x11ee58(0x237)],'operator':_univerjs_sheets_conditional_formatting[_0x11ee58(0x1a4)][_0x15b873['operator']]};break;default:throw new Error(_0x11ee58(0x30e)+_0x15b873[_0x11ee58(0x206)]);}return{'ranges':_0x15b873[_0x11ee58(0x3e6)][_0x11ee58(0x29a)](',')[_0x11ee58(0x25c)](_0x135283=>{const _0x4f2c03=_0x11ee58;return(0x0,_univerjs_engine_formula[_0x4f2c03(0x41f)])(_0x135283)[_0x4f2c03(0x3e6)];}),'cfId':_0x15b873['rule_id'],'stopIfTrue':(_0xfab9c9=_0x15b873[_0x11ee58(0x186)])!==null&&_0xfab9c9!==void 0x0?_0xfab9c9:![],'rule':_0x284b9e};}static[_0x6875c(0x23f)](_0x281811){const _0x3f5361=_0x6875c,_0x11ee9a=_0x281811['rule'],_0x201a6c={'range':_0x281811['ranges'][_0x3f5361(0x25c)](_0x34cb74=>{return(0x0,_univerjs_engine_formula['serializeRange'])(_0x34cb74);})['join'](','),'rule_type':_0x3f5361(0x402),'rule_id':_0x281811['cfId'],'stop_if_true':_0x281811[_0x3f5361(0x20b)],'sub_type':_univerjs_sheets_conditional_formatting[_0x3f5361(0x1af)][_0x11ee9a[_0x3f5361(0x248)]],'style':this['fromInternalStyle'](_0x11ee9a[_0x3f5361(0x212)])};switch(_0x11ee9a[_0x3f5361(0x248)]){case _univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x3f5361(0x31d)]:return{..._0x201a6c};case _univerjs_sheets_conditional_formatting[_0x3f5361(0x1af)][_0x3f5361(0x1b1)]:return{..._0x201a6c};case _univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x3f5361(0x1da)]:const _0x23b25c=_0x11ee9a;return{..._0x201a6c,'is_bottom':_0x23b25c[_0x3f5361(0x1e3)],'is_percent':_0x23b25c[_0x3f5361(0x323)],'value':_0x23b25c[_0x3f5361(0x1b3)]};case _univerjs_sheets_conditional_formatting[_0x3f5361(0x1af)][_0x3f5361(0x2e1)]:const _0x3698d3=_0x11ee9a;return{..._0x201a6c,'operator':_univerjs_sheets_conditional_formatting[_0x3f5361(0x177)][_0x3698d3[_0x3f5361(0x126)]],'value':_0x3698d3['value']};case _univerjs_sheets_conditional_formatting[_0x3f5361(0x1af)][_0x3f5361(0x260)]:const _0x56ea3e=_0x11ee9a;return{..._0x201a6c,'operator':_univerjs_sheets_conditional_formatting[_0x3f5361(0x167)][_0x56ea3e[_0x3f5361(0x126)]]};case _univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x3f5361(0x1d0)]:const _0x3c6961=_0x11ee9a;return{..._0x201a6c,'value':_0x3c6961['value']};case _univerjs_sheets_conditional_formatting['CFSubRuleType'][_0x3f5361(0x2d0)]:const _0x15314f=_0x11ee9a;return{..._0x201a6c,'operator':_univerjs_sheets_conditional_formatting[_0x3f5361(0x1a4)][_0x15314f[_0x3f5361(0x126)]],'value':_0x15314f[_0x3f5361(0x1b3)]};case _univerjs_sheets_conditional_formatting[_0x3f5361(0x1af)][_0x3f5361(0x237)]:const _0x1f4439=_0x11ee9a;return{..._0x201a6c,'operator':_univerjs_sheets_conditional_formatting['CFNumberOperator'][_0x1f4439['operator']]};default:throw new Error(_0x3f5361(0x30e)+_0x11ee9a[_0x3f5361(0x248)]);}}static[_0x6875c(0x29c)](_0x39b242){const _0x2cd8f9=_0x6875c;var _0x50e864,_0x5a3be5,_0x558303,_0x375302,_0x2fc8e3;if(typeof _0x39b242['positive_color']===_0x2cd8f9(0x23e)){if(_0x39b242[_0x2cd8f9(0x355)][_0x2cd8f9(0x3a6)])_0x39b242[_0x2cd8f9(0x355)]=_0x39b242[_0x2cd8f9(0x355)][_0x2cd8f9(0x3a6)];else throw new Error('positive_color\x20type\x20expected\x20string');}if(typeof _0x39b242[_0x2cd8f9(0x3e5)]===_0x2cd8f9(0x23e)){if(_0x39b242[_0x2cd8f9(0x3e5)]['rgb'])_0x39b242[_0x2cd8f9(0x3e5)]=_0x39b242['native_color'][_0x2cd8f9(0x3a6)];else throw new Error(_0x2cd8f9(0x259));}return{'ranges':_0x39b242[_0x2cd8f9(0x3e6)][_0x2cd8f9(0x29a)](',')['map'](_0x56c36e=>{const _0x609534=_0x2cd8f9;return(0x0,_univerjs_engine_formula[_0x609534(0x41f)])(_0x56c36e)[_0x609534(0x3e6)];}),'cfId':_0x39b242[_0x2cd8f9(0x395)],'stopIfTrue':(_0x50e864=_0x39b242[_0x2cd8f9(0x186)])!==null&&_0x50e864!==void 0x0?_0x50e864:![],'rule':{'type':_univerjs_sheets_conditional_formatting[_0x2cd8f9(0x35e)][_0x2cd8f9(0x2aa)],'isShowValue':(_0x5a3be5=_0x39b242[_0x2cd8f9(0x148)])!==null&&_0x5a3be5!==void 0x0?_0x5a3be5:!![],'config':{'min':{'type':_univerjs_sheets_conditional_formatting['CFValueType'][_0x39b242[_0x2cd8f9(0x1ce)]]||_univerjs_sheets_conditional_formatting[_0x2cd8f9(0x1a5)][_0x2cd8f9(0x3a9)],'value':_0x39b242[_0x2cd8f9(0x370)]},'max':{'type':_univerjs_sheets_conditional_formatting[_0x2cd8f9(0x1a5)][_0x39b242['max_type']]||_univerjs_sheets_conditional_formatting['CFValueType']['num'],'value':_0x39b242[_0x2cd8f9(0x22a)]},'isGradient':(_0x558303=_0x39b242['is_gradient'])!==null&&_0x558303!==void 0x0?_0x558303:!![],'positiveColor':(_0x375302=_0x39b242[_0x2cd8f9(0x355)])!==null&&_0x375302!==void 0x0?_0x375302:_0x2cd8f9(0x189),'nativeColor':(_0x2fc8e3=_0x39b242['native_color'])!==null&&_0x2fc8e3!==void 0x0?_0x2fc8e3:'#FF0000'}}};}static[_0x6875c(0x2a1)](_0xb0c370){const _0x89c74a=_0x6875c,_0x5791d8=_0xb0c370[_0x89c74a(0x244)];return{'range':_0xb0c370[_0x89c74a(0x3d0)][_0x89c74a(0x25c)](_0x42212b=>{const _0x440573=_0x89c74a;return(0x0,_univerjs_engine_formula[_0x440573(0x2d2)])(_0x42212b);})['join'](','),'rule_type':_0x89c74a(0x2aa),'rule_id':_0xb0c370[_0x89c74a(0x297)],'stop_if_true':_0xb0c370[_0x89c74a(0x20b)],'is_show_value':_0x5791d8['isShowValue'],'min_type':_univerjs_sheets_conditional_formatting[_0x89c74a(0x1a5)][_0x5791d8['config'][_0x89c74a(0x159)][_0x89c74a(0x331)]],'min_value':_0x5791d8['config'][_0x89c74a(0x159)]['value'],'max_type':_univerjs_sheets_conditional_formatting['CFValueType'][_0x5791d8[_0x89c74a(0x3b8)][_0x89c74a(0x3af)][_0x89c74a(0x331)]],'max_value':_0x5791d8[_0x89c74a(0x3b8)][_0x89c74a(0x3af)][_0x89c74a(0x1b3)],'is_gradient':_0x5791d8[_0x89c74a(0x3b8)]['isGradient'],'positive_color':_0x5791d8[_0x89c74a(0x3b8)][_0x89c74a(0x34f)],'native_color':_0x5791d8['config'][_0x89c74a(0x302)]};}static[_0x6875c(0x356)](_0x48d692){const _0x5c61d6=_0x6875c;var _0x218f5b;return{'ranges':_0x48d692[_0x5c61d6(0x3e6)]['split'](',')['map'](_0x398ba7=>{const _0x4797ec=_0x5c61d6;return(0x0,_univerjs_engine_formula[_0x4797ec(0x41f)])(_0x398ba7)['range'];}),'cfId':_0x48d692[_0x5c61d6(0x395)],'stopIfTrue':(_0x218f5b=_0x48d692[_0x5c61d6(0x186)])!==null&&_0x218f5b!==void 0x0?_0x218f5b:![],'rule':{'type':_univerjs_sheets_conditional_formatting[_0x5c61d6(0x35e)][_0x5c61d6(0x26c)],'config':(_0x48d692[_0x5c61d6(0x37f)]||[])[_0x5c61d6(0x25c)](_0x3ea9a7=>({'index':_0x3ea9a7['index'],'color':_0x3ea9a7[_0x5c61d6(0x182)],'value':{'type':_univerjs_sheets_conditional_formatting[_0x5c61d6(0x1a5)][_0x3ea9a7[_0x5c61d6(0x19b)]]||_univerjs_sheets_conditional_formatting[_0x5c61d6(0x1a5)]['num'],'value':_0x3ea9a7['value']}}))}};}static[_0x6875c(0x18e)](_0x446273){const _0x51c41d=_0x6875c,_0x2a35fb=_0x446273[_0x51c41d(0x244)];return{'range':_0x446273[_0x51c41d(0x3d0)][_0x51c41d(0x25c)](_0x46f1ed=>{const _0xe498ac=_0x51c41d;return(0x0,_univerjs_engine_formula[_0xe498ac(0x2d2)])(_0x46f1ed);})[_0x51c41d(0x1b9)](','),'rule_type':_0x51c41d(0x26c),'rule_id':_0x446273[_0x51c41d(0x297)],'stop_if_true':_0x446273['stopIfTrue'],'points':_0x2a35fb['config'][_0x51c41d(0x25c)](_0x3ca5eb=>({'index':_0x3ca5eb[_0x51c41d(0x27e)],'color':_0x3ca5eb['color'],'value_type':_univerjs_sheets_conditional_formatting[_0x51c41d(0x1a5)][_0x3ca5eb['value'][_0x51c41d(0x331)]],'value':_0x3ca5eb[_0x51c41d(0x1b3)]['value']}))};}};function getUniverAPI(){const _0x2ab7c3=_0x6875c;return globalThis[_0x2ab7c3(0x24a)];}function getInjector(){const _0x37d0e8=_0x6875c,_0x97d70d=getUniverAPI();if(!(_0x97d70d===null||_0x97d70d===void 0x0?void 0x0:_0x97d70d['_injector']))throw new Error(_0x37d0e8(0x3d7));return _0x97d70d[_0x37d0e8(0x184)];}function getContainerElement(){const _0x10b15f=_0x6875c,_0xfd590a=getInjector()['get'](_univerjs_ui[_0x10b15f(0x3d2)])[_0x10b15f(0x39b)];if(!_0xfd590a)throw new Error('No\x20container\x20element\x20for\x20screenshot');return _0xfd590a;}function getCommandService(){const _0x534ffd=_0x6875c,_0x4544a3=getUniverAPI();if(!(_0x4544a3===null||_0x4544a3===void 0x0?void 0x0:_0x4544a3[_0x534ffd(0x184)]))throw new Error('UniverAPI\x20injector\x20not\x20available');return _0x4544a3[_0x534ffd(0x184)][_0x534ffd(0x2b8)](_univerjs_core[_0x534ffd(0x3aa)]);}function getSheetInterceptorService(){const _0x121b11=_0x6875c,_0x196117=getUniverAPI();if(!(_0x196117===null||_0x196117===void 0x0?void 0x0:_0x196117[_0x121b11(0x184)]))throw new Error(_0x121b11(0x3d7));return _0x196117[_0x121b11(0x184)][_0x121b11(0x2b8)](_univerjs_sheets[_0x121b11(0x143)]);}function parseRangeType(_0x19a84a){const _0x180b8e=_0x6875c,_0x1676a9=_0x19a84a[_0x180b8e(0x21e)]('!')?_0x19a84a[_0x180b8e(0x29a)]('!')[0x1]:_0x19a84a;if(/^[A-Z]+:[A-Z]+$/[_0x180b8e(0x3e3)](_0x1676a9))return{'type':_0x180b8e(0x2ed),'isValid':!![]};if(/^\d+:\d+$/[_0x180b8e(0x3e3)](_0x1676a9))return{'type':_0x180b8e(0x139),'isValid':!![]};return{'type':_0x180b8e(0x13c),'isValid':!![]};}function columnLetterToNumber(_0x576ac4){const _0x31637b=_0x6875c;let _0x11792c=0x0;for(let _0x266a01=0x0;_0x266a01<_0x576ac4[_0x31637b(0x18d)];_0x266a01++)_0x11792c=_0x11792c*0x1a+(_0x576ac4[_0x31637b(0x2ce)](_0x266a01)-0x41+0x1);return _0x11792c-0x1;}function ensureInt(_0x225b4e,_0x4cb2c4){const _0x589d1e=_0x6875c;if(typeof _0x225b4e===_0x589d1e(0x2d0))return _0x225b4e;else{if(typeof _0x225b4e===_0x589d1e(0x368)){const _0x2a0ff9=Number[_0x589d1e(0x314)](_0x225b4e,0xa);if(isNaN(_0x2a0ff9))throw new TypeError(_0x589d1e(0x205)+_0x4cb2c4+_0x589d1e(0x1e5)+_0x225b4e+'\x27');return _0x2a0ff9;}else throw new TypeError(_0x589d1e(0x205)+_0x4cb2c4+_0x589d1e(0x1bb)+typeof _0x225b4e);}}const styleDataSchema=_univerjs_pro_mcp['z']['object']({'ff':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x2b2)),'fs':_univerjs_pro_mcp['z']['number']()[_0x6875c(0x3b6)]()['describe'](_0x6875c(0x1c9)),'it':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x0),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1)])[_0x6875c(0x3b6)]()['describe'](_0x6875c(0x29b)),'bl':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x0),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1)])[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x31b)),'ul':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'s':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z']['literal'](0x1)])[_0x6875c(0x210)]('style'),'cl':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x210)]('color'),'c':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x0),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1)])[_0x6875c(0x3b6)](),'t':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x3b6)]()})[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('underline'),'st':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'s':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1)])[_0x6875c(0x210)](_0x6875c(0x212)),'cl':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x182)),'c':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x0),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1)])['optional'](),'t':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()})[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x325)),'ol':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'s':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x0),_univerjs_pro_mcp['z']['literal'](0x1)])[_0x6875c(0x210)](_0x6875c(0x212)),'cl':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()['describe'](_0x6875c(0x182)),'c':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z']['literal'](0x1)])[_0x6875c(0x3b6)](),'t':_univerjs_pro_mcp['z']['string']()['optional']()})[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x3fa)),'bg':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'rgb':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x3a1))})[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x32c)),'bd':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'t':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'s':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z']['literal'](0x0),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1)])[_0x6875c(0x210)](_0x6875c(0x212)),'cl':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x182))})[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('top\x20border'),'b':_univerjs_pro_mcp['z']['object']({'s':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x0),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1)])['describe'](_0x6875c(0x212)),'cl':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x182))})['optional']()[_0x6875c(0x210)](_0x6875c(0x270)),'l':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'s':_univerjs_pro_mcp['z']['union']([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x0),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1)])['describe']('style'),'cl':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)]('color')})[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x3fc)),'r':_univerjs_pro_mcp['z']['object']({'s':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x0),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1)])[_0x6875c(0x210)](_0x6875c(0x212)),'cl':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x210)](_0x6875c(0x182))})[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x3a0))})[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('border'),'cl':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'rgb':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)]('font\x20color,\x20e.g.,\x20\x22#000000\x22')})['optional']()[_0x6875c(0x210)](_0x6875c(0x353)),'va':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x2),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x3)])[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x303)),'tr':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'a':_univerjs_pro_mcp['z']['number']()[_0x6875c(0x210)](_0x6875c(0x39c))})[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('text\x20rotation'),'td':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z']['literal'](0x1),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x2)])[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x24d)),'ht':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x2),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x3)])[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x2bf)),'vt':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x2),_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x3)])['optional']()[_0x6875c(0x210)](_0x6875c(0x39f)),'tb':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x3f4)](0x1),_univerjs_pro_mcp['z']['literal'](0x2),_univerjs_pro_mcp['z']['literal'](0x3)])[_0x6875c(0x3b6)]()['describe'](_0x6875c(0x1c1)),'pd':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'t':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x194)),'b':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('bottom\x20padding'),'l':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('left\x20padding'),'r':_univerjs_pro_mcp['z']['number']()[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('right\x20padding')})[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('content\x20padding'),'n':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'pattern':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x1fa))})[_0x6875c(0x3b6)]()['describe'](_0x6875c(0x1ca))})[_0x6875c(0x14a)]()[_0x6875c(0x210)](_0x6875c(0x23c)),ZodConditionalFormatRuleSchema=_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'rule_id':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x263)),'range':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('Target\x20range\x20(A1\x20notation)'),'stop_if_true':_univerjs_pro_mcp['z']['boolean']()[_0x6875c(0x3b6)](),'priority':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x3b6)]()['describe'](_0x6875c(0x3a3)),'rule_type':_univerjs_pro_mcp['z'][_0x6875c(0x354)]([_0x6875c(0x402),'dataBar',_0x6875c(0x26c)])[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('\x27highlightCell\x27\x20|\x20\x27dataBar\x27\x20|\x20\x27colorScale\x27'),'min_type':_univerjs_pro_mcp['z'][_0x6875c(0x354)]([_0x6875c(0x3a9),_0x6875c(0x159),_0x6875c(0x3af),_0x6875c(0x234),_0x6875c(0x3da),_0x6875c(0x1d0)])[_0x6875c(0x3b6)](),'min_value':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x368)](),_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()])[_0x6875c(0x3b6)](),'max_type':_univerjs_pro_mcp['z'][_0x6875c(0x354)]([_0x6875c(0x3a9),_0x6875c(0x159),_0x6875c(0x3af),_0x6875c(0x234),'percentile',_0x6875c(0x1d0)])[_0x6875c(0x3b6)](),'max_value':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x368)](),_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()])['optional'](),'positive_color':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('hex\x20color'),'native_color':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()['describe'](_0x6875c(0x23b)),'is_show_value':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x3b6)](),'is_gradient':_univerjs_pro_mcp['z']['boolean']()[_0x6875c(0x3b6)](),'is_bottom':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x3b6)](),'is_percent':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x3b6)](),'points':_univerjs_pro_mcp['z']['array'](_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'index':_univerjs_pro_mcp['z']['number'](),'color':_univerjs_pro_mcp['z'][_0x6875c(0x368)](),'value_type':_univerjs_pro_mcp['z']['enum']([_0x6875c(0x3a9),_0x6875c(0x159),_0x6875c(0x3af),'percent',_0x6875c(0x3da),'formula']),'value':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x368)](),_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()])[_0x6875c(0x3b6)]()}))[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('Each\x20dict:\x20{index,\x20color,\x20value_type,\x20value}'),'sub_type':_univerjs_pro_mcp['z']['enum']([_0x6875c(0x31d),_0x6875c(0x1b1),_0x6875c(0x1da),_0x6875c(0x2e1),_0x6875c(0x260),_0x6875c(0x2d0),_0x6875c(0x237),'formula'])['optional'](),'operator':_univerjs_pro_mcp['z'][_0x6875c(0x354)](['beginsWith','endsWith',_0x6875c(0x322),_0x6875c(0x346),_0x6875c(0x3bf),_0x6875c(0x20e),'containsBlanks','notContainsBlanks',_0x6875c(0x350),_0x6875c(0x19d),_0x6875c(0x1d7),_0x6875c(0x242),'tomorrow',_0x6875c(0x276),_0x6875c(0x364),_0x6875c(0x3de),_0x6875c(0x2eb),_0x6875c(0x348),'lastWeek',_0x6875c(0x266),_0x6875c(0x30d),_0x6875c(0x17b),_0x6875c(0x30f),_0x6875c(0x1dc),_0x6875c(0x232),'between'])[_0x6875c(0x3b6)](),'value':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z']['number'](),_univerjs_pro_mcp['z'][_0x6875c(0x368)](),_univerjs_pro_mcp['z'][_0x6875c(0x150)]([_univerjs_pro_mcp['z'][_0x6875c(0x2d0)](),_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()])])[_0x6875c(0x3b6)](),'formula':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)](),'style':_univerjs_pro_mcp['z']['object']({'fgColor':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x388)),'bgColor':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x3b6)]()['describe']('background\x20color,\x20e.g.,\x20\x22#FF0000\x22'),'bold':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x3b6)](),'italic':_univerjs_pro_mcp['z']['boolean']()[_0x6875c(0x3b6)](),'underline':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x3b6)]()})[_0x6875c(0x3b6)]()})['loose']();function _0x4cf3(){const _0x512229=['getActiveRange','getFormulaUsagesAsA1','unshift','Inject','Sheet\x20name\x20(optional,\x20uses\x20active\x20sheet\x20if\x20not\x20provided)','List\x20of\x20DeleteRowOperation\x20objects\x20for\x20each\x20delete\x20operation','delete_conditional_formatting_rule','italic','cfId','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','382fwDAvS','split','italic\x20(0|1)','toDataBarConfig','source','styleToA1','record','\x27\x20to\x20\x27','fromDataBarConfig','toInternalStyle','promptTitle','LIST','showInputMessage','Number\x20of\x20rows\x20to\x20insert\x20(default\x201)','getSheetName','getA1Notation','enableWorker','dataBar','Moved\x20sheet\x20\x27','MoveCfCommand','error','bl:1','Unsupported\x20error_style:\x20','getRowHeight','_config','font\x20family\x20(e.g.,\x20\x22Arial\x22)','BooleanNumber','fail','union','getAllStyleUsages','\x20failed.\x20Errors:\x20','get','\x20operation(s)\x20successfully.','validation_type\x20is\x20required','DataValidationType','RemoveSheetDataValidationCommand','\x20sheet\x20\x27','Merge\x20a\x20single\x20range\x20in\x20the\x20active\x20workbook.\x20Usage:\x20set_merge(\x22A1:B2\x22)\x20to\x20merge\x20the\x20specified\x20range.','horizontal\x20text\x20alignment,\x201\x20left,\x202\x20center,\x203\x20right','nf:','visible','Failed\x20to\x20add\x20conditional\x20formatting\x20rule(s):\x20','getRowCount','scrollToCell','stop','getOwnPropertyNames','getScreenshotOnNode','Failed\x20to\x20rename\x20sheet:\x20','input_title','Failed\x20to\x20create\x20sheets:\x20','any','_state','Value\x20not\x20available\x20error','charCodeAt','Inserted\x20columns\x20in\x20','number','##\x20Data','serializeRange','after','The\x20cell\x20in\x20A1\x20notation\x20to\x20scroll\x20to\x20(e.g.,\x20\x22D10\x22).','No\x20formulas\x20found','numberFormat','registerChannel','validation_type','startsWith','startRow','localeCompare','_maxCount','Auto\x20fill\x20completed\x20from\x20','dataHash','Rule\x20identifier,\x20auto-generated\x20if\x20not\x20provided','sequenceNodesBuilder','text','Unrecognized\x20function\x20or\x20name\x20error','Renamed\x20sheet\x20\x27','Division\x20by\x20zero\x20error','AbsoluteRefType','merge','sheet_name','Height\x20in\x20points\x20(pt)\x20for\x20rows','endColumn','##\x20Styles\x20class\x20define','nextMonth','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.','column','floor','pluginName','bold','self','stringify','getRow','cl:','10cEZCLZ','SINGLE','insert_columns:\x20pos=','forEach','rules','get_lint_errors','keyword','isArray','getStyleById','checkbox','_lexerTreeBuilder','toStringTag','Failed\x20to\x20set\x20conditional\x20formatting\x20rule(s):\x20','nativeColor','vertical\x20alignment,\x201\x20normal,\x202\x20subscript,\x203\x20superscript','Row\x20index\x20(0-based)\x20where\x20to\x20insert','Generic\x20error','error_message','Row\x20index\x20(0-based)\x20where\x20to\x20start\x20deletion','insertRowsAfter','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','395982PcUtwU','DATE','default','greaterThan','Unsupported\x20highlight\x20cell\x20sub-type:\x20','lessThan','source_range','Batch\x20rename\x20multiple\x20worksheets.\x20Efficiently\x20renames\x20multiple\x20sheets\x20in\x20one\x20operation.','Sheet\x20name\x20\x27','findAll','parseInt','warning','Second\x20value,\x20only\x20for\x20\x22between\x22\x20or\x20\x22notBetween\x22','onReady','value1\x20is\x20required\x20when\x20operator\x20is\x20set','serializeRangeToRefString','BOTH','bold\x20(0|1)','text_length','uniqueValues','insert_rows','fgColor','Invalid\x20input','symbol','containsText','isPercent','errorStyle','strike\x20through','\x20already\x20exists\x20in\x20worksheet\x20','set_range_data','\x20rule(s)\x20successfully,\x20failed\x20','versions','undefined','List\x20of\x20BatchRangeDataItem','background\x20color','List\x20of\x20names\x20of\x20the\x20worksheets\x20to\x20delete','uid','sheets.mcp.style-usage-analyzer','showSheet','type','Failed\x20to\x20get\x20visible\x20range:','push','bc:','show_time','Only\x20the\x20first\x20200\x20errors\x20are\x20shown\x20due\x20to\x20volume.','fromCharCode','\x20operation(s),\x20reason(s):\x20','\x20request(s)\x20successfully,\x20','getAllCellUsages','set','Failed\x20to\x20modify\x20rule(s):\x20','Array\x20of\x20widths\x20in\x20points\x20for\x20multiple\x20columns','target_range','insert_rows:\x20pos=','hash','justify','\x20conditional\x20formatting\x20rule(s)\x20from\x20sheet\x20\x27','input_message','prototype','fontFamily','notContainsText','getId','thisWeek','sheets','toDataURL','BETWEEN','getCellDataGrid','getAllDataValidationErrorAsync','defineProperty','positiveColor','containsErrors','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.','description','font\x20color','enum','positive_color','toColorScaleConfig','insertRowsBefore','boolean','bgColor','\x0a\x20-\x20First\x2050\x20sheet\x20names:\x20','fromInternalConfig','custom_formula\x20are\x20required\x20for\x20validation_type:\x20custom_formula','items','CFRuleType','Source\x20range\x20in\x20A1\x20notation,\x20supports\x20cross-sheet\x20(e.g.,\x20\x22Sheet1!A1\x22)','entries','Batch\x20set\x20value\x20or\x20formula\x20for\x20multiple\x20ranges\x20in\x20the\x20active\x20workbook.\x20Efficiently\x20sets\x20data\x20for\x20multiple\x20ranges\x20in\x20one\x20operation.','2718aMiXEh','##\x20Errors','thisMonth','priority','Injector','insertColumnsAfter','string','startAbsoluteRefType','delete_rows','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)','Failed\x20to\x20create\x20rule(s):\x20','Invalid\x20cell\x20reference\x20error','showTime','firstOccurrence','min_value','decimal','getScreenshot','get_conditional_formatting_rules','DISTRIBUTED','\x20sheet(s)\x20successfully.','Target\x20range\x20(A1\x20notation),\x20multiple\x20ranges\x20separated\x20by\x20comma','auto_fill','IStyleUsageAnalyzer','LEFT','Created\x20sheet\x20\x27','Inserted\x20','create_sheet','All\x20requests\x20failed.\x20Errors:\x20','DataValidationErrorStyle','points','range_a1\x20is\x20required','sheets.mcp.formula-usage-analyzer','sheet.command.apply-format-painter','List\x20of\x20DataValidationRule\x20(rule_id\x20auto-generated\x20if\x20not\x20provided)','STOP','toHighlightCellConfig','Array\x20value\x20for\x20range\x20(can\x20be\x201D\x20or\x202D)','\x20position\x20','font\x20color,\x20e.g.,\x20\x22#000000\x22','No\x20screenshot\x20data\x20returned','fontSize','-\x20Row\x20','format_brush','Failed\x20to\x20create\x20sheet\x20\x27','```\x0a','sheet.command.auto-fill','note','getSheetByName','how_many','allow_multiple','hasOwnProperty','rule_id','scroll_and_screenshot','Batch\x20delete\x20columns\x20for\x20multiple\x20operations.\x20Efficiently\x20deletes\x20columns\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','Sheet\x20\x27','Set\x20','add','rootContainerElement','rotation\x20angle\x20in\x20degrees','List\x20of\x20DeleteColumnOperation\x20objects\x20for\x20each\x20delete\x20operation','Array\x20spill\x20error','vertical\x20text\x20alignment,\x201\x20top,\x202\x20middle,\x203\x20bottom','right\x20border','background\x20color,\x20e.g.,\x20\x22#FF0000\x22','ignore_blank','-1:\x20end,\x200:\x20top,\x20>0:\x20index','horizontalAlign','set_display_status:\x20','rgb','iterator','delete_data_validation_rule','num','ICommandService','errorTitle','Failed\x20to\x20delete\x20conditional\x20formatting\x20rule(s):\x20','Activate/switch\x20to\x20the\x20worksheet\x20with\x20the\x20given\x20name.','height','max','Whether\x20to\x20return\x20a\x20screenshot\x20(default\x20False).','activate','dist','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','Name\x20of\x20the\x20worksheet\x20to\x20move','generateId','optional','getSheetId','config',',\x20sheet=','List\x20of\x20CellDimensionRequest','allSheetTools','between','has','sheetName','equal','List\x20source,\x20comma-separated\x20string\x20or\x20cell\x20range','DeleteCfCommand','errorType','getRange','Added\x20','sheets.mcp.cell-usage-analyzer',',\x20where=','0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','Number\x20of\x20columns\x20to\x20delete\x20(default\x201)','\x27\x20already\x20exists','rule_type','executeCommand','MIDDLE','\x27\x20not\x20found','Conditional\x20formatting\x20rule\x20with\x20id\x20','showDropDown','ranges','Wrong\x20data\x20type\x20or\x20invalid\x20argument\x20error','ILayoutService','custom_formula','getLastColumn','Failed\x20to\x20insert\x20columns:\x20','Name\x20of\x20the\x20worksheet\x20to\x20activate','UniverAPI\x20injector\x20not\x20available','\x0aCurrent\x20Active\x20range:\x20','error_title','percentile','The\x20search\x20keyword,\x20e.g.,\x20\x22=\x22','image','\x20rule(s),\x20reason(s):\x20','lastMonth','padStart','parseFloat','General','toA1','test','delete_columns:\x20pos=','native_color','range','source\x20is\x20required\x20for\x20validation_type:\x20list','Allow\x20multiple\x20selection\x20(default\x20false)','decorate','_workbook','round','abs','SheetDataValidationModel','width','moveRangeByOffset','how_many\x20must\x20be\x20>\x200','Created\x20','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.','active','literal','IConfigService','date','Modified\x20','AddCfCommand','rename_sheet','overline','sequenceNodeType','left\x20border','VerticalAlign','List\x20of\x20ConditionalFormatRule\x20with\x20rule_id','create_sheet:\x20','startColumn','fs:','highlightCell','before','underline','Target\x20sheet\x20name','Name\x20of\x20the\x20sheet\x20to\x20modify\x20display\x20status','getMaxColumns','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','where','setActiveRange','set_cell_dimensions','truncated','Custom\x20formula','to_index','filter','getValue','SizeUsageAnalyzer','dataValidation','position','\x20to\x20','Module','Data\x20validation\x20error','toModule','REFERENCE','IRPCChannelService','activate_sheet','Array\x20of\x20heights\x20in\x20points\x20for\x20multiple\x20rows','Failed\x20to\x20delete\x20sheet\x20\x27','operations','CellUsageAnalyzer','deserializeRangeWithSheetWithCache','Batch\x20insert\x20empty\x20columns\x20for\x20multiple\x20operations.\x20Efficiently\x20inserts\x20columns\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','\x20sheet(s),\x20reason(s):\x20','\x20rule(s):\x20','Error\x20getting\x20lint\x20errors:\x20','operator','getData','getCellRaw','\x20operation(s):\x20','createTextFinderAsync','slice','bg:','\x20operation(s)\x20successfully,\x20failed\x20','random','\x20conditional\x20formatting\x20rule(s)\x20to\x20sheet\x20\x27','NONE','onStarting','delete_rows:\x20pos=','getFormulaHash','1431835innGAD','HorizontalAlign','TEXT_LENGTH',',\x20maybe\x20range\x20too\x20large\x20or\x20empty.','updateConfig','row','List\x20of\x20DataValidationRule\x20with\x20rule_id','it:1','mixed','move_sheet','deleteSheet','\x20columns\x20from\x20position\x20','(default\x20\x22stop\x22)\x0a\x22stop\x22:\x20Stop\x20input\x0a\x22warning\x22:\x20Warning\x0a\x22information\x22:\x20Information','WHOLE','constructor','SheetInterceptorService','get_sheets','values','range_a1','AddSheetDataValidationCommand','is_show_value','list','loose','getSheets','styleHash','getPrototypeOf','\x20does\x20not\x20exist.','UniverAPI\x20not\x20available','tuple','Request\x20','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','Workbook\x20is\x20not\x20active.','TRUE','endAbsoluteRefType','getHash','getActiveWorkbook','error_style','min','List\x20of\x20RenameSheetOperation\x20objects\x20for\x20each\x20rename\x20operation','@univerjs-pro/sheets-mcp','set_conditional_formatting_rule','ff:','Invalid\x20position\x20or\x20how_many\x20parameter',')\x20doesn\x27t\x20match\x20row\x20count\x20(','value1','set_sheet_display_status','Get\x20the\x20currently\x20active\x20unit_id\x20for\x20this\x20session.\x20Raises\x20an\x20exception\x20if\x20no\x20workbook\x20is\x20active.','is_bottom','True\x20to\x20show\x20sheet,\x20False\x20to\x20hide\x20sheet','\x0a##\x20Error\x20Message\x0a```yaml\x0a','toInternalConfig','CFTimePeriodOperator','Failed\x20to\x20get\x20error\x20information:','create','getSubunitRules','getColumn','Failed\x20to\x20delete\x20columns:\x20','showErrorMessage','0.21.0','\x0a\x0aCurrent\x20Active\x20sheet:\x20','success','WARNING','CUSTOM','_formulaService','Unknown\x20formula\x20error','(default\x20true)','Batch\x20delete\x20rows\x20for\x20multiple\x20operations.\x20Efficiently\x20deletes\x20rows\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','CFTextOperator','requestChannel','7tzJTxJ','setName','greaterThanOrEqual','Unknown\x20error','\x20does\x20not\x20exist\x20in\x20worksheet.','ANY','Failed\x20to\x20insert\x20rows:\x20','generateStringWithSequence','#\x20Range:\x20','color','Worksheet\x20with\x20name\x20','_injector','syncExecuteCommand','stop_if_true','warn','SetCfCommand','#638EC6','Processed\x20','_configService','set_range_style','length','fromColorScaleConfig','value2\x20is\x20required\x20for\x20operator:\x20','Value\x20for\x20the\x20range','get_activity_status','left','TIME','top\x20padding','TOP','setConfig','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','fontColor','ConditionalFormattingRuleModel','getColumnWidth','value_type','show_dropdown','notContainsErrors','getRules','StyleUsageAnalyzer','ensureCompleteAsync','\x20conditional\x20formatting\x20rule(s)\x20for\x20sheet\x20\x27','ICalculateFormulaService','24iGLZEY','CFNumberOperator','CFValueType','\x20on\x20sheet\x20\x27','The\x20cell/range\x20in\x20A1\x20notation\x20(e.g.,\x20\x22A1\x22,\x20\x22B2:C3\x22)','getAllFormulaError','worksheet','add_data_validation_rule','value2','filledRanges','\x20does\x20not\x20exist\x20in\x20worksheet\x20','deleteRows','CFSubRuleType','is_percent','duplicateValues','node','value','getVisibleRange','Data\x20validation\x20rule\x20with\x20id\x20','sheet.operation.set-selections','Current\x20sheet\x20name\x20to\x20rename','changeState','join','\x20->\x20','\x27\x20must\x20be\x20an\x20integer\x20or\x20string,\x20got\x20','Sheet\x20\x22','delete_sheet:\x20','strikethrough','Set\x20display\x20status\x20for\x20','maxCount','text\x20overflow,\x201\x20overflow,\x202\x20truncate,\x203\x20wrap','call',')\x20doesn\x27t\x20match\x20column\x20count\x20(','verticalAlign','getAllSizeUsages','New\x20name\x20for\x20the\x20sheet','trim','DataValidationOperator','font\x20size,\x20pt\x20(e.g.,\x2011)','number\x20format','right','sort','getFormulaError','min_type','CHECKBOX','formula','ha:','endRow','sheet_names','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','generateRandomId','Optional\x20sheet\x20name\x20to\x20extract\x20formulas\x20from.\x20If\x20not\x20provided,\x20uses\x20the\x20active\x20sheet.','today','Failed\x20to\x20delete\x20rows:\x20','List\x20of\x20BatchRangeStyleItem','rank','UNSPECIFIED','lessThanOrEqual','15676CjByvd','Renamed\x20','dataValidationTools','\x0aCurrent\x20Visible\x20range:\x20','formula2','TextDecoration','isBottom','moveFormulaRefOffset','\x27\x20must\x20be\x20an\x20integer\x20or\x20integer\x20string,\x20got\x20\x27','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.','DECIMAL','Range\x20string\x20(A1\x20notation)','insert_columns','where\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27','\x27:\x20','sheetManagementTools','\x20columns\x20','_commandService','7293064Qvjush','Insert\x20\x22before\x22\x20or\x20\x22after\x22\x20the\x20position\x20(default\x20\x22before\x22)','range\x20must\x20be\x20a\x20string','hidden','getAllFormulaUsages','function','Batch\x20set\x20style\x20for\x20multiple\x20ranges\x20in\x20the\x20active\x20workbook.\x20Efficiently\x20applies\x20styling\x20to\x20multiple\x20ranges\x20in\x20one\x20operation.','getOwnPropertyDescriptor','getMaxRows','top','columnToIndex','number\x20format\x20pattern,\x20e.g.,\x20\x22#,##0.00\x22','No\x20active\x20workbook','getActiveSheet','getDataValidationErrorAsync','```','ICellUsageAnalyzer','\x27\x20to\x20index\x20',',\x20count=','Deleted\x20','CommandService\x20not\x20available','Inserted\x20rows\x20in\x20','Parameter\x20\x27','sub_type','return_style','backgroundColor','bind','Failed\x20to\x20delete\x20rule(s):\x20','stopIfTrue','unspec','3898899bpQDli','notEqual','SetRowHeightCommand','describe','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','style','parseValue','List\x20of\x20SheetDisplayStatusOperation\x20objects\x20for\x20each\x20display\x20status\x20operation','prompt','set_data_validation_rule','UNIVER_SHEET','Failed\x20to\x20set\x20display\x20status\x20for\x20sheet\x20\x27','range_a1\x20must\x20be\x20string','```yaml\x0a','Sheet\x20interceptor\x20processing\x20failed,\x20using\x20original\x20value:','Null\x20intersection\x20error','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.','includes','Failed\x20to\x20set\x20active\x20range:','pattern','(default\x20\x22Invalid\x20input\x22)','screenshot','getColumnCount','\x20rule(s)\x20successfully.','find','cell_a1','_worksheet','6889146gmRLsl','old_name','max_value','toString','rename_sheet:\x20','both','set_merge','bl:','onWriteCell','show_error_message','notBetween','Failed\x20to\x20delete\x20sheets:\x20','percent','insertColumnsBefore','(default\x20\x22\x22)','average','Deleted\x20rows\x20in\x20','Whether\x20to\x20return\x20style\x20information\x20for\x20cells\x20(default\x20False)','delete_sheet','hex\x20color','Style\x20object\x20properties\x20for\x20Univer\x20sheets.\x20Note:\x20Both\x20the\x20border\x20thickness\x20and\x20font\x20size\x20are\x20measured\x20in\x20points\x20(pt).','status','object','fromHighlightCellConfig','CENTER','ALL','yesterday','Range\x20string\x20(A1\x20notation),\x20supports\x20comma-separated\x20multiple\x20ranges,\x20e.g.\x20\x22A1,B2:C3\x22','rule','sheet.command.set-once-format-painter','fc:','rangeOperationTools','subType','Successfully\x20processed\x20','univerAPI','\x27,\x20failed\x20','return_screenshot','text\x20direction,\x201\x20left\x20to\x20right,\x202\x20right\x20to\x20left','message','Source\x20range\x20in\x20A1\x20notation\x20(e.g.,\x20\x22A1:A2\x22,\x20\x22B1:C1\x22)','show_input_message','conditionalFormattingTools','Sheet\x20not\x20found','Width\x20array\x20length\x20(','sheet.command.set-range-values','Column\x20index\x20(0-based)\x20where\x20to\x20start\x20deletion','SetColWidthCommand','getFormulas','No\x20active\x20sheet','native_color\x20type\x20expected\x20string','new_name','...','map','RIGHT','substring','createIdentifier','timePeriod','nodeType','__esModule','Rule\x20identifier','enumerable','Deleted\x20columns\x20in\x20','nextWeek','The\x20search\x20type,\x20e.g.,\x20\x22formula\x22\x20or\x20\x22value\x22','\x20rows\x20','_style','Input\x20prompt\x20message\x20(default\x20empty)','Show\x20time\x20in\x20date\x20picker\x20(default\x20false)','colorScale','NOT_BETWEEN','Number\x20of\x20columns\x20to\x20insert\x20(default\x201)','array','bottom\x20border','LIST_MULTIPLE','mid','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','formula1','get_data_validation_rules','last7Days','packageName','version','Screenshot\x20failed:','Failed\x20to\x20get\x20screenshot\x20for\x20range\x20','\x20sheet(s)\x20successfully,\x20failed\x20','requests','rule_ids','index','Failed\x20to\x20take\x20screenshot\x20after\x20scrolling\x20to\x20','IFormulaUsageAnalyzer','Conditional\x20formatting\x20rule\x20id\x20is\x20required\x20for\x20setting\x20a\x20rule.','setFormula','properties','List\x20of\x20InsertColumnOperation\x20objects\x20for\x20each\x20insert\x20operation','moveSheet','Failed\x20to\x20set\x20display\x20status\x20for\x20sheet(s):\x20','def','size','image/png','getFormula','getStyles','Height\x20array\x20length\x20(','Width\x20in\x20points\x20(pt)\x20for\x20columns','The\x20cell/range\x20in\x20A1\x20notation\x20(e.g.,\x20\x22A1\x22,\x20\x22B2:C3\x22),\x20or\x20a\x20list\x20of\x20such\x20strings.'];_0x4cf3=function(){return _0x512229;};return _0x4cf3();}function getRuleById(_0x468eb3,_0x5b5715,_0x1d3d3b){const _0x3c39a9=_0x6875c,_0x3686ee=_0x468eb3['getActiveWorkbook'](),_0x2b437d=(_0x468eb3[_0x3c39a9(0x184)][_0x3c39a9(0x2b8)](_univerjs_sheets_conditional_formatting[_0x3c39a9(0x199)])[_0x3c39a9(0x16a)](_0x3686ee[_0x3c39a9(0x347)](),_0x5b5715['getSheetId']())||[])[_0x3c39a9(0x225)](_0x39bb9d=>_0x39bb9d[_0x3c39a9(0x297)]===_0x1d3d3b);if(!_0x2b437d)throw new Error('Conditional\x20formatting\x20rule\x20with\x20id\x20'+_0x1d3d3b+_0x3c39a9(0x1ad)+_0x5b5715[_0x3c39a9(0x2a7)]()+'.');return ConditionalFormatConverter[_0x3c39a9(0x35b)](_0x2b437d);}function moveConditionalFormattingRule(_0x528ed8,_0x3395d7,_0x1961dd,_0x245d10,_0x291479,_0x33a846=_0x6875c(0x2d3)){const _0x1d5a0a=_0x6875c,_0x1551de={'unitId':_0x3395d7,'subUnitId':_0x1961dd,'start':{'id':_0x245d10,'type':_0x1d5a0a(0x2f1)},'end':{'id':_0x291479,'type':_0x33a846}};_0x528ed8[_0x1d5a0a(0x1ee)][_0x1d5a0a(0x185)](_univerjs_sheets_conditional_formatting[_0x1d5a0a(0x2ac)]['id'],_0x1551de);}function adjustConditionalFormattingRulePriority(_0x980f02,_0x1f3082,_0x22529a,_0x5b0808){const _0x3b1957=_0x6875c;if(_0x5b0808===void 0x0)return;const _0x8d22aa=getConditionalFormattingRulesInternal(_0x980f02,_0x1f3082);if(_0x8d22aa[_0x3b1957(0x225)](_0xb09810=>_0xb09810[_0x3b1957(0x395)]===_0x22529a)){let _0xee68c2=_0x5b0808;if(_0xee68c2<0x0)_0xee68c2=0x0;if(_0xee68c2>=_0x8d22aa[_0x3b1957(0x18d)])_0xee68c2=_0x8d22aa[_0x3b1957(0x18d)]-0x1;const _0xb75543=_0x8d22aa[_0xee68c2];if(_0xb75543&&_0xb75543[_0x3b1957(0x395)]!==_0x22529a){const _0x4cd453=_0x980f02['getActiveWorkbook'](),_0x32f540=_0x4cd453[_0x3b1957(0x391)](_0x1f3082);moveConditionalFormattingRule(_0x980f02,_0x4cd453['getId'](),_0x32f540[_0x3b1957(0x3b7)](),_0x22529a,_0xb75543[_0x3b1957(0x395)],_0x3b1957(0x403));}}}function getConditionalFormattingRulesInternal(_0x10121f,_0x553a19){const _0x31aba1=_0x6875c,_0x3c9189=_0x10121f[_0x31aba1(0x157)](),_0x1df4b0=_0x3c9189['getSheetByName'](_0x553a19);if(!_0x1df4b0)throw new Error(_0x31aba1(0x183)+_0x553a19+'\x20does\x20not\x20exist.');return(_0x10121f[_0x31aba1(0x184)]['get'](_univerjs_sheets_conditional_formatting['ConditionalFormattingRuleModel'])[_0x31aba1(0x16a)](_0x3c9189[_0x31aba1(0x347)](),_0x1df4b0['getSheetId']())||[])['map']((_0x18a19a,_0x371e5d)=>{const _0x2ba1a9=_0x31aba1,_0x159737=ConditionalFormatConverter[_0x2ba1a9(0x35b)](_0x18a19a);return _0x159737[_0x2ba1a9(0x365)]=_0x371e5d,_0x159737;});}async function addConditionalFormattingRule(_0xda61f1,_0x4ef414){const _0x3862b4=_0x6875c,_0x1599c4=getUniverAPI();if(!_0x1599c4)throw new Error('UniverAPI\x20not\x20available');try{const _0x3a3273=_0x1599c4[_0x3862b4(0x157)](),_0x142db8=_0x3a3273===null||_0x3a3273===void 0x0?void 0x0:_0x3a3273[_0x3862b4(0x391)](_0xda61f1);if(!_0x142db8)throw new Error(_0x3862b4(0x183)+_0xda61f1+_0x3862b4(0x14e));if(!_0x3a3273)throw new Error(_0x3862b4(0x153));let _0x30779c=0x0;const _0x26582c=[];for(const _0x128ed6 of _0x4ef414)try{if(!_0x128ed6[_0x3862b4(0x395)])_0x128ed6[_0x3862b4(0x395)]=(0x0,_univerjs_core[_0x3862b4(0x1d5)])(0x7);if((_0x1599c4[_0x3862b4(0x184)]['get'](_univerjs_sheets_conditional_formatting['ConditionalFormattingRuleModel'])[_0x3862b4(0x16a)](_0x3a3273[_0x3862b4(0x347)](),_0x142db8[_0x3862b4(0x3b7)]())||[])[_0x3862b4(0x225)](_0x598a25=>_0x598a25[_0x3862b4(0x297)]===_0x128ed6[_0x3862b4(0x395)]))throw new Error(_0x3862b4(0x3ce)+_0x128ed6['rule_id']+_0x3862b4(0x326)+_0xda61f1+'.');const _0x233dfc=ConditionalFormatConverter[_0x3862b4(0x166)](_0x128ed6),_0x3dd3d7={'unitId':_0x3a3273[_0x3862b4(0x347)](),'subUnitId':_0x142db8['getSheetId'](),'rule':_0x233dfc};_0x1599c4[_0x3862b4(0x1ee)][_0x3862b4(0x185)](_univerjs_sheets_conditional_formatting[_0x3862b4(0x3f8)]['id'],_0x3dd3d7),adjustConditionalFormattingRulePriority(_0x1599c4,_0xda61f1,_0x128ed6[_0x3862b4(0x395)],_0x128ed6[_0x3862b4(0x365)]),_0x30779c++;}catch(_0x29442b){_0x26582c['push']((_0x29442b===null||_0x29442b===void 0x0?void 0x0:_0x29442b[_0x3862b4(0x24e)])||String(_0x29442b));}if(_0x26582c[_0x3862b4(0x18d)]===0x0)return _0x3862b4(0x3c4)+_0x30779c+_0x3862b4(0x12f)+_0xda61f1+'\x27';else{if(_0x30779c>0x0)return _0x3862b4(0x3c4)+_0x30779c+_0x3862b4(0x12f)+_0xda61f1+_0x3862b4(0x24b)+_0x26582c[_0x3862b4(0x18d)]+_0x3862b4(0x124)+_0x26582c[_0x3862b4(0x1b9)](';\x20');else throw new Error(_0x3862b4(0x2c2)+_0x26582c[_0x3862b4(0x1b9)](';\x20'));}}catch(_0x570f30){const _0x1e2be7=_0x570f30 instanceof Error?_0x570f30['message']:String(_0x570f30);throw new Error(_0x1e2be7[_0x3862b4(0x29a)]('\x0a')[0x0]||_0x3862b4(0x17c));}}async function setConditionalFormattingRule(_0x315ef0,_0x54f3ae){const _0x96f5f2=_0x6875c,_0x225959=getUniverAPI();if(!_0x225959)throw new Error(_0x96f5f2(0x14f));try{const _0x2a4d45=_0x225959[_0x96f5f2(0x157)](),_0x46978f=_0x2a4d45===null||_0x2a4d45===void 0x0?void 0x0:_0x2a4d45[_0x96f5f2(0x391)](_0x315ef0);if(!_0x46978f)throw new Error('Worksheet\x20with\x20name\x20'+_0x315ef0+'\x20does\x20not\x20exist.');if(!_0x2a4d45)throw new Error(_0x96f5f2(0x153));let _0x471402=0x0;const _0x5d9aa0=[];for(const _0x33fbdf of _0x54f3ae)try{if(!_0x33fbdf[_0x96f5f2(0x395)])throw new Error(_0x96f5f2(0x281));const _0x330501=getRuleById(_0x225959,_0x46978f,_0x33fbdf[_0x96f5f2(0x395)]),_0x51986d=ConditionalFormatConverter[_0x96f5f2(0x166)]({..._0x330501,..._0x33fbdf}),_0x3d8be6={'unitId':_0x2a4d45[_0x96f5f2(0x347)](),'subUnitId':_0x46978f['getSheetId'](),'rule':_0x51986d,'cfId':_0x33fbdf['rule_id']};_0x225959[_0x96f5f2(0x1ee)][_0x96f5f2(0x185)](_univerjs_sheets_conditional_formatting[_0x96f5f2(0x188)]['id'],_0x3d8be6);if(_0x330501[_0x96f5f2(0x365)]!==_0x33fbdf['priority'])adjustConditionalFormattingRulePriority(_0x225959,_0x315ef0,_0x33fbdf[_0x96f5f2(0x395)],_0x33fbdf[_0x96f5f2(0x365)]);_0x471402++;}catch(_0x5d6253){_0x5d9aa0[_0x96f5f2(0x333)]((_0x5d6253===null||_0x5d6253===void 0x0?void 0x0:_0x5d6253[_0x96f5f2(0x24e)])||String(_0x5d6253));}if(_0x5d9aa0[_0x96f5f2(0x18d)]===0x0)return _0x96f5f2(0x399)+_0x471402+_0x96f5f2(0x1a1)+_0x315ef0+'\x27';else{if(_0x471402>0x0)return'Set\x20'+_0x471402+'\x20conditional\x20formatting\x20rule(s)\x20for\x20sheet\x20\x27'+_0x315ef0+_0x96f5f2(0x24b)+_0x5d9aa0[_0x96f5f2(0x18d)]+_0x96f5f2(0x124)+_0x5d9aa0[_0x96f5f2(0x1b9)](';\x20');else throw new Error(_0x96f5f2(0x301)+_0x5d9aa0[_0x96f5f2(0x1b9)](';\x20'));}}catch(_0x352d3d){const _0x4a5115=_0x352d3d instanceof Error?_0x352d3d['message']:String(_0x352d3d);throw new Error(_0x4a5115['split']('\x0a')[0x0]||_0x96f5f2(0x17c));}}async function deleteConditionalFormattingRule(_0xfc9267,_0x1fc1f1){const _0x530e77=_0x6875c,_0x5b9f6e=getUniverAPI();if(!_0x5b9f6e)throw new Error(_0x530e77(0x14f));try{const _0x4ca30b=_0x5b9f6e['getActiveWorkbook'](),_0x1186d0=_0x4ca30b===null||_0x4ca30b===void 0x0?void 0x0:_0x4ca30b[_0x530e77(0x391)](_0xfc9267);if(!_0x1186d0)throw new Error('Worksheet\x20with\x20name\x20'+_0xfc9267+_0x530e77(0x14e));if(!_0x4ca30b)throw new Error('Workbook\x20is\x20not\x20active.');let _0x5c7c2b=0x0;const _0x5821d5=[];for(const _0x319c8c of _0x1fc1f1)try{if(!(_0x5b9f6e['_injector'][_0x530e77(0x2b8)](_univerjs_sheets_conditional_formatting[_0x530e77(0x199)])[_0x530e77(0x16a)](_0x4ca30b['getId'](),_0x1186d0[_0x530e77(0x3b7)]())||[])['find'](_0x4230a9=>_0x4230a9[_0x530e77(0x297)]===_0x319c8c))continue;const _0x3e5f6c={'unitId':_0x4ca30b[_0x530e77(0x347)](),'subUnitId':_0x1186d0[_0x530e77(0x3b7)](),'cfId':_0x319c8c};_0x5b9f6e[_0x530e77(0x1ee)][_0x530e77(0x185)](_univerjs_sheets_conditional_formatting[_0x530e77(0x3c1)]['id'],_0x3e5f6c),_0x5c7c2b++;}catch(_0x4d86cd){_0x5821d5[_0x530e77(0x333)]((_0x4d86cd===null||_0x4d86cd===void 0x0?void 0x0:_0x4d86cd[_0x530e77(0x24e)])||String(_0x4d86cd));}if(_0x5821d5[_0x530e77(0x18d)]===0x0)return _0x530e77(0x202)+_0x5c7c2b+_0x530e77(0x342)+_0xfc9267+'\x27';else{if(_0x5c7c2b>0x0)return _0x530e77(0x202)+_0x5c7c2b+_0x530e77(0x342)+_0xfc9267+_0x530e77(0x24b)+_0x5821d5['length']+'\x20rule(s):\x20'+_0x5821d5[_0x530e77(0x1b9)](';\x20');else throw new Error(_0x530e77(0x3ac)+_0x5821d5['join'](';\x20'));}}catch(_0x4b9f2c){const _0xd9a5b6=_0x4b9f2c instanceof Error?_0x4b9f2c[_0x530e77(0x24e)]:String(_0x4b9f2c);throw new Error(_0xd9a5b6[_0x530e77(0x29a)]('\x0a')[0x0]||_0x530e77(0x17c));}}async function getConditionalFormattingRules(_0x57c5fa){const _0x5ac75e=_0x6875c,_0x3d897c=getUniverAPI();if(!_0x3d897c)throw new Error(_0x5ac75e(0x14f));try{return getConditionalFormattingRulesInternal(_0x3d897c,_0x57c5fa)[_0x5ac75e(0x25c)](_0x5399ee=>JSON[_0x5ac75e(0x2f2)](_0x5399ee))[_0x5ac75e(0x1b9)]('\x0a');}catch(_0xb9b5e9){const _0x59d7dd=_0xb9b5e9 instanceof Error?_0xb9b5e9[_0x5ac75e(0x24e)]:String(_0xb9b5e9);throw new Error(_0x59d7dd[_0x5ac75e(0x29a)]('\x0a')[0x0]||_0x5ac75e(0x17c));}}const conditionalFormattingTools=[{'name':'add_conditional_formatting_rule','description':_0x6875c(0x197),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()['describe'](_0x6875c(0x405)),'rules':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](ZodConditionalFormatRuleSchema)[_0x6875c(0x210)]('List\x20of\x20ConditionalFormatRule\x20(if\x20rule_id\x20is\x20not\x20provided,\x20it\x20will\x20be\x20generated)')}),'execute':async _0x91832a=>addConditionalFormattingRule(_0x91832a[_0x6875c(0x2e7)],_0x91832a['rules'])},{'name':_0x6875c(0x15c),'description':_0x6875c(0x3b3),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x405)),'rules':_univerjs_pro_mcp['z']['array'](ZodConditionalFormatRuleSchema)[_0x6875c(0x210)](_0x6875c(0x3fe))}),'execute':async _0x3cfe3d=>setConditionalFormattingRule(_0x3cfe3d['sheet_name'],_0x3cfe3d['rules'])},{'name':_0x6875c(0x295),'description':_0x6875c(0x309),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)]('Target\x20sheet\x20name'),'rule_ids':_univerjs_pro_mcp['z']['array'](_univerjs_pro_mcp['z'][_0x6875c(0x368)]())[_0x6875c(0x210)]('List\x20of\x20conditional\x20formatting\x20rule\x20IDs')}),'execute':async _0x2b0682=>deleteConditionalFormattingRule(_0x2b0682[_0x6875c(0x2e7)],_0x2b0682['rule_ids'])},{'name':_0x6875c(0x373),'description':_0x6875c(0x408),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)]('Target\x20sheet\x20name')}),'execute':async _0x179c24=>getConditionalFormattingRules(_0x179c24[_0x6875c(0x2e7)])}];var DataValidationConverter=class{static[_0x6875c(0x166)](_0x58c3c6){const _0xd39a9f=_0x6875c;var _0x403247,_0x1929ac;if(!_0x58c3c6[_0xd39a9f(0x146)])throw new Error(_0xd39a9f(0x380));if(!_0x58c3c6[_0xd39a9f(0x2d8)])throw new Error(_0xd39a9f(0x2ba));const _0xb0e116=_0x58c3c6[_0xd39a9f(0x2d8)]['toLocaleLowerCase']();if(_0x58c3c6['operator']&&_0x58c3c6['value1']===void 0x0)throw new Error(_0xd39a9f(0x318));const _0x20f748=[_univerjs_core[_0xd39a9f(0x1c8)][_0xd39a9f(0x34b)],_univerjs_core['DataValidationOperator'][_0xd39a9f(0x26d)]];if(_0x58c3c6['operator']&&_0x20f748[_0xd39a9f(0x21e)](_0x58c3c6[_0xd39a9f(0x126)])&&_0x58c3c6[_0xd39a9f(0x1ab)]===void 0x0)throw new Error(_0xd39a9f(0x18f)+_0x58c3c6[_0xd39a9f(0x126)]);if(_0xb0e116===_0xd39a9f(0x149)&&!_0x58c3c6[_0xd39a9f(0x29d)])throw new Error(_0xd39a9f(0x3e7));if(_0xb0e116==='custom_formula'&&!_0x58c3c6[_0xd39a9f(0x3d3)]&&!_0x58c3c6[_0xd39a9f(0x160)])throw new Error(_0xd39a9f(0x35c));const _0x3ea36d={'list':_univerjs_core[_0xd39a9f(0x2bb)][_0xd39a9f(0x2a4)],'integer':_univerjs_core[_0xd39a9f(0x2bb)]['WHOLE'],'decimal':_univerjs_core['DataValidationType']['DECIMAL'],'date':_univerjs_core[_0xd39a9f(0x2bb)][_0xd39a9f(0x30b)],'text_length':_univerjs_core[_0xd39a9f(0x2bb)][_0xd39a9f(0x136)],'custom_formula':_univerjs_core[_0xd39a9f(0x2bb)]['CUSTOM'],'checkbox':_univerjs_core[_0xd39a9f(0x2bb)][_0xd39a9f(0x1cf)]};if(!_0x3ea36d[_0xb0e116])throw new Error('Unsupported\x20validation_type:\x20'+_0x58c3c6[_0xd39a9f(0x2d8)]);const _0x599272=_0x58c3c6['error_style']?_0x58c3c6[_0xd39a9f(0x158)]['toLocaleLowerCase']():_0xd39a9f(0x2c5),_0x3a01fe={'stop':_univerjs_core['DataValidationErrorStyle'][_0xd39a9f(0x384)],'warning':_univerjs_core[_0xd39a9f(0x37e)]['WARNING'],'information':_univerjs_core[_0xd39a9f(0x37e)]['INFO']};if(!_0x3a01fe[_0x599272])throw new Error(_0xd39a9f(0x2af)+_0x58c3c6[_0xd39a9f(0x158)]);const _0x501793=_0x58c3c6[_0xd39a9f(0x146)]['split'](',')['map'](_0x3dff3f=>{const _0xdad90f=_0xd39a9f;return(0x0,_univerjs_engine_formula[_0xdad90f(0x41f)])(_0x3dff3f)[_0xdad90f(0x3e6)];}),_0x1c520f={'uid':_0x58c3c6[_0xd39a9f(0x395)]||this[_0xd39a9f(0x3b5)](),'type':_0x3ea36d[_0xb0e116],'ranges':_0x501793,'allowBlank':_0x58c3c6[_0xd39a9f(0x3a2)]!==![],'operator':_0x58c3c6[_0xd39a9f(0x126)],'formula1':_0xb0e116===_0xd39a9f(0x149)?_0x58c3c6[_0xd39a9f(0x29d)]:_0xb0e116===_0xd39a9f(0x3d3)?_0x58c3c6[_0xd39a9f(0x3d3)]:(_0x403247=_0x58c3c6[_0xd39a9f(0x160)])===null||_0x403247===void 0x0?void 0x0:_0x403247[_0xd39a9f(0x22b)](),'formula2':(_0x1929ac=_0x58c3c6[_0xd39a9f(0x1ab)])===null||_0x1929ac===void 0x0?void 0x0:_0x1929ac[_0xd39a9f(0x22b)](),'showDropDown':_0x58c3c6[_0xd39a9f(0x19c)]!==![],'showErrorMessage':_0x58c3c6['show_error_message']!==![],'error':_0x58c3c6[_0xd39a9f(0x306)]||'Invalid\x20input','errorStyle':_0x3a01fe[_0x599272],'errorTitle':_0x58c3c6[_0xd39a9f(0x3d9)],'showInputMessage':_0x58c3c6[_0xd39a9f(0x250)]!==![],'prompt':_0x58c3c6[_0xd39a9f(0x343)]||'','promptTitle':_0x58c3c6[_0xd39a9f(0x2c9)],'bizInfo':{'showTime':_0x58c3c6[_0xd39a9f(0x335)]}};if(_0xb0e116===_0xd39a9f(0x149)&&_0x58c3c6[_0xd39a9f(0x393)])_0x1c520f['type']=_univerjs_core[_0xd39a9f(0x2bb)][_0xd39a9f(0x271)];return _0x1c520f;}static[_0x6875c(0x35b)](_0x446e79){const _0x56ef08=_0x6875c;var _0xa479e5;const _0x1cdfef={[_univerjs_core['DataValidationType'][_0x56ef08(0x2a4)]]:_0x56ef08(0x149),[_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x271)]]:_0x56ef08(0x149),[_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x141)]]:'integer',[_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x1e7)]]:_0x56ef08(0x371),[_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x30b)]]:_0x56ef08(0x3f6),[_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x136)]]:_0x56ef08(0x31c),[_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x172)]]:_0x56ef08(0x3d3),[_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x193)]]:_0x56ef08(0x3f6),[_univerjs_core[_0x56ef08(0x2bb)]['CHECKBOX']]:_0x56ef08(0x2fe),[_univerjs_core[_0x56ef08(0x2bb)]['NONE']]:_0x56ef08(0x3d3),[_univerjs_core['DataValidationType'][_0x56ef08(0x17e)]]:_0x56ef08(0x3d3)},_0x230577={[_univerjs_core['DataValidationErrorStyle']['STOP']]:_0x56ef08(0x2c5),[_univerjs_core[_0x56ef08(0x37e)][_0x56ef08(0x171)]]:_0x56ef08(0x315),[_univerjs_core[_0x56ef08(0x37e)]['INFO']]:'information'},_0x7cae61=_0x446e79[_0x56ef08(0x3d0)][_0x56ef08(0x25c)](_0x56a04c=>{const _0x263087=_0x56ef08;return(0x0,_univerjs_engine_formula[_0x263087(0x2d2)])(_0x56a04c);})['join'](','),_0x528985={'rule_id':_0x446e79[_0x56ef08(0x32e)],'range_a1':_0x7cae61,'validation_type':_0x1cdfef[_0x446e79['type']]||_0x56ef08(0x3d3)};if(_0x446e79[_0x56ef08(0x126)])_0x528985[_0x56ef08(0x126)]=_0x446e79[_0x56ef08(0x126)];if(_0x446e79[_0x56ef08(0x274)]&&_0x446e79['type']!==_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x2a4)]&&_0x446e79[_0x56ef08(0x331)]!==_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x271)]&&_0x446e79[_0x56ef08(0x331)]!==_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x172)])_0x528985[_0x56ef08(0x160)]=this['parseValue'](_0x446e79[_0x56ef08(0x274)],_0x446e79['type']);if(_0x446e79[_0x56ef08(0x1e1)])_0x528985['value2']=this[_0x56ef08(0x213)](_0x446e79[_0x56ef08(0x1e1)],_0x446e79[_0x56ef08(0x331)]);if(_0x446e79[_0x56ef08(0x331)]===_univerjs_core[_0x56ef08(0x2bb)]['LIST']||_0x446e79[_0x56ef08(0x331)]===_univerjs_core['DataValidationType']['LIST_MULTIPLE']){if(_0x446e79['formula1'])_0x528985[_0x56ef08(0x29d)]=_0x446e79[_0x56ef08(0x274)];if(_0x446e79[_0x56ef08(0x331)]===_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x271)])_0x528985[_0x56ef08(0x393)]=!![];}if(_0x446e79['type']===_univerjs_core[_0x56ef08(0x2bb)][_0x56ef08(0x172)]&&_0x446e79[_0x56ef08(0x274)])_0x528985['custom_formula']=_0x446e79[_0x56ef08(0x274)];if(_0x446e79['allowBlank']===![])_0x528985[_0x56ef08(0x3a2)]=![];if(_0x446e79[_0x56ef08(0x3cf)]===![])_0x528985[_0x56ef08(0x19c)]=![];if(_0x446e79[_0x56ef08(0x16d)]===![])_0x528985[_0x56ef08(0x231)]=![];if(_0x446e79[_0x56ef08(0x324)]&&_0x446e79['errorStyle']!==_univerjs_core[_0x56ef08(0x37e)][_0x56ef08(0x384)])_0x528985[_0x56ef08(0x158)]=_0x230577[_0x446e79['errorStyle']];if(_0x446e79[_0x56ef08(0x3ab)])_0x528985['error_title']=_0x446e79[_0x56ef08(0x3ab)];if(_0x446e79['error']&&_0x446e79[_0x56ef08(0x2ad)]!==_0x56ef08(0x320))_0x528985[_0x56ef08(0x306)]=_0x446e79[_0x56ef08(0x2ad)];if(_0x446e79[_0x56ef08(0x2a5)]===![])_0x528985[_0x56ef08(0x250)]=![];if(_0x446e79[_0x56ef08(0x2a3)])_0x528985['input_title']=_0x446e79[_0x56ef08(0x2a3)];if(_0x446e79[_0x56ef08(0x215)])_0x528985[_0x56ef08(0x343)]=_0x446e79[_0x56ef08(0x215)];if((_0xa479e5=_0x446e79['bizInfo'])===null||_0xa479e5===void 0x0?void 0x0:_0xa479e5[_0x56ef08(0x36e)])_0x528985[_0x56ef08(0x335)]=!![];return _0x528985;}static[_0x6875c(0x1f9)](_0x6ba9af){const _0x29f19b=_0x6875c;let _0x4ab109=0x0;for(let _0x34c0b7=0x0;_0x34c0b7<_0x6ba9af[_0x29f19b(0x18d)];_0x34c0b7++)_0x4ab109=_0x4ab109*0x1a+(_0x6ba9af[_0x29f19b(0x2ce)](_0x34c0b7)-'A'[_0x29f19b(0x2ce)](0x0)+0x1);return _0x4ab109-0x1;}static['indexToColumn'](_0x1e1cb2){const _0x31f59e=_0x6875c;let _0x7b1e47='';_0x1e1cb2+=0x1;while(_0x1e1cb2>0x0){_0x1e1cb2-=0x1,_0x7b1e47=String[_0x31f59e(0x337)]('A'[_0x31f59e(0x2ce)](0x0)+_0x1e1cb2%0x1a)+_0x7b1e47,_0x1e1cb2=Math[_0x31f59e(0x2ee)](_0x1e1cb2/0x1a);}return _0x7b1e47;}static[_0x6875c(0x3b5)](){const _0x187b61=_0x6875c;return Math[_0x187b61(0x12e)]()['toString'](0x24)[_0x187b61(0x25e)](0x2,0xf)+Math['random']()[_0x187b61(0x22b)](0x24)[_0x187b61(0x25e)](0x2,0xf);}static['parseValue'](_0x250c3c,_0x14aaeb){const _0x2370f2=_0x6875c;if(_0x14aaeb===_univerjs_core['DataValidationType'][_0x2370f2(0x141)]||_0x14aaeb===_univerjs_core[_0x2370f2(0x2bb)][_0x2370f2(0x1e7)]||_0x14aaeb===_univerjs_core[_0x2370f2(0x2bb)][_0x2370f2(0x136)]){const _0x450241=Number[_0x2370f2(0x3e0)](_0x250c3c);return isNaN(_0x450241)?_0x250c3c:_0x450241;}return _0x250c3c;}};const dataValidationRuleSchema=_univerjs_pro_mcp['z']['object']({'rule_id':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x2df)),'range_a1':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x376)),'validation_type':_univerjs_pro_mcp['z']['enum'](['list','integer','decimal',_0x6875c(0x3f6),_0x6875c(0x31c),_0x6875c(0x3d3),_0x6875c(0x2fe)])[_0x6875c(0x210)](_0x6875c(0x211)),'operator':_univerjs_pro_mcp['z'][_0x6875c(0x354)](_univerjs_core[_0x6875c(0x1c8)])['optional']()[_0x6875c(0x210)](_0x6875c(0x298)),'value1':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z']['number'](),_univerjs_pro_mcp['z']['string']()])[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('First\x20value,\x20required\x20if\x20operator\x20is\x20set'),'value2':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x2d0)](),_univerjs_pro_mcp['z'][_0x6875c(0x368)](),_univerjs_pro_mcp['z']['null']()])[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x316)),'source':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()['optional']()[_0x6875c(0x210)](_0x6875c(0x3c0)),'allow_multiple':_univerjs_pro_mcp['z']['boolean']()[_0x6875c(0x3b6)]()['describe'](_0x6875c(0x3e8)),'custom_formula':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x40d)),'show_time':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x26b)),'ignore_blank':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x175)),'show_dropdown':_univerjs_pro_mcp['z']['boolean']()['optional']()[_0x6875c(0x210)](_0x6875c(0x175)),'show_error_message':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()['optional']()[_0x6875c(0x210)](_0x6875c(0x175)),'error_style':_univerjs_pro_mcp['z'][_0x6875c(0x354)](['stop',_0x6875c(0x315),'information'])[_0x6875c(0x3b6)]()['describe'](_0x6875c(0x140)),'error_title':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('(default\x20\x22\x22)'),'error_message':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()['describe'](_0x6875c(0x221)),'show_input_message':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('(default\x20true)'),'input_title':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x236)),'input_message':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()['optional']()[_0x6875c(0x210)](_0x6875c(0x26a))})[_0x6875c(0x14a)]();async function addDataValidationRule(_0x27dc78,_0x1495af){const _0x3d9055=_0x6875c,_0x37a1a7=getUniverAPI();if(!_0x37a1a7)throw new Error('UniverAPI\x20not\x20available');try{const _0x435993=_0x37a1a7[_0x3d9055(0x157)](),_0x2d9651=_0x435993===null||_0x435993===void 0x0?void 0x0:_0x435993[_0x3d9055(0x391)](_0x27dc78);if(!_0x2d9651)throw new Error(_0x3d9055(0x183)+_0x27dc78+_0x3d9055(0x14e));if(!_0x435993)throw new Error('Workbook\x20is\x20not\x20active.');const _0x550573=_0x37a1a7[_0x3d9055(0x184)]['get'](_univerjs_sheets_data_validation[_0x3d9055(0x3ed)])['getRules'](_0x435993[_0x3d9055(0x347)](),_0x2d9651[_0x3d9055(0x3b7)]());let _0x45b97f=0x0;const _0x1f82b7=[];for(const _0x54b780 of _0x1495af)try{if(!_0x54b780['rule_id'])_0x54b780['rule_id']=(0x0,_univerjs_core[_0x3d9055(0x1d5)])(0x7);if(_0x550573['find'](_0x5edd93=>_0x5edd93[_0x3d9055(0x32e)]===_0x54b780[_0x3d9055(0x395)]))throw new Error(_0x3d9055(0x1b5)+_0x54b780[_0x3d9055(0x395)]+_0x3d9055(0x326)+_0x27dc78+'.');const _0x1c3042=DataValidationConverter[_0x3d9055(0x166)](_0x54b780),_0x455bb5={'unitId':_0x435993['getId'](),'subUnitId':_0x2d9651[_0x3d9055(0x3b7)](),'rule':_0x1c3042};_0x37a1a7['_commandService'][_0x3d9055(0x185)](_univerjs_sheets_data_validation[_0x3d9055(0x147)]['id'],_0x455bb5),_0x45b97f++;}catch(_0x7026a1){_0x1f82b7['push']((_0x7026a1===null||_0x7026a1===void 0x0?void 0x0:_0x7026a1[_0x3d9055(0x24e)])||String(_0x7026a1));}if(_0x1f82b7[_0x3d9055(0x18d)]===0x0)return'Created\x20'+_0x45b97f+_0x3d9055(0x224);else{if(_0x45b97f>0x0)return _0x3d9055(0x3f1)+_0x45b97f+'\x20rule(s)\x20successfully,\x20failed\x20'+_0x1f82b7[_0x3d9055(0x18d)]+_0x3d9055(0x3dd)+_0x1f82b7[_0x3d9055(0x1b9)](';\x20');else throw new Error(_0x3d9055(0x36c)+_0x1f82b7['join'](';\x20'));}}catch(_0xc2bd1d){const _0x220358=_0xc2bd1d instanceof Error?_0xc2bd1d[_0x3d9055(0x24e)]:String(_0xc2bd1d);throw new Error(_0x220358[_0x3d9055(0x29a)]('\x0a')[0x0]||_0x3d9055(0x17c));}}async function setDataValidationRule(_0x48ec06,_0x2edee9){const _0x3b04f9=_0x6875c,_0x3901b1=getUniverAPI();if(!_0x3901b1)throw new Error(_0x3b04f9(0x14f));try{const _0x129887=_0x3901b1[_0x3b04f9(0x157)](),_0x250528=_0x129887===null||_0x129887===void 0x0?void 0x0:_0x129887['getSheetByName'](_0x48ec06);if(!_0x250528)throw new Error(_0x3b04f9(0x183)+_0x48ec06+'\x20does\x20not\x20exist.');if(!_0x129887)throw new Error(_0x3b04f9(0x153));let _0x42a674=0x0;const _0x4fe836=[];for(const _0x5f5d8b of _0x2edee9)try{if(!_0x5f5d8b[_0x3b04f9(0x395)])throw new Error('Data\x20validation\x20rule\x20id\x20is\x20required\x20for\x20setting\x20a\x20rule.');const _0x5e6878=_0x3901b1[_0x3b04f9(0x184)][_0x3b04f9(0x2b8)](_univerjs_sheets_data_validation[_0x3b04f9(0x3ed)])['getRuleById'](_0x129887[_0x3b04f9(0x347)](),_0x250528['getSheetId'](),_0x5f5d8b[_0x3b04f9(0x395)]);if(!_0x5e6878)throw new Error(_0x3b04f9(0x1b5)+_0x5f5d8b['rule_id']+_0x3b04f9(0x17d));const _0x3860e1=DataValidationConverter[_0x3b04f9(0x35b)](_0x5e6878),_0x56cc12=DataValidationConverter['toInternalConfig']({..._0x3860e1,..._0x5f5d8b}),_0x25be43={'unitId':_0x129887['getId'](),'subUnitId':_0x250528[_0x3b04f9(0x3b7)](),'ruleId':_0x5f5d8b[_0x3b04f9(0x395)],'setting':_0x56cc12};_0x3901b1['_commandService'][_0x3b04f9(0x185)](_univerjs_sheets_data_validation['UpdateSheetDataValidationSettingCommand']['id'],_0x25be43),_0x42a674++;}catch(_0x23092e){_0x4fe836[_0x3b04f9(0x333)]((_0x23092e===null||_0x23092e===void 0x0?void 0x0:_0x23092e[_0x3b04f9(0x24e)])||String(_0x23092e));}if(_0x4fe836['length']===0x0)return _0x3b04f9(0x3f7)+_0x42a674+_0x3b04f9(0x224);else{if(_0x42a674>0x0)return'Modified\x20'+_0x42a674+_0x3b04f9(0x328)+_0x4fe836[_0x3b04f9(0x18d)]+_0x3b04f9(0x3dd)+_0x4fe836[_0x3b04f9(0x1b9)](';\x20');else throw new Error(_0x3b04f9(0x33c)+_0x4fe836['join'](';\x20'));}}catch(_0x26bba8){const _0x289656=_0x26bba8 instanceof Error?_0x26bba8[_0x3b04f9(0x24e)]:String(_0x26bba8);throw new Error(_0x289656['split']('\x0a')[0x0]||_0x3b04f9(0x17c));}}async function deleteDataValidationRule(_0x3af1cd,_0x10ea93){const _0x13d8c0=_0x6875c,_0x5c1209=getUniverAPI();if(!_0x5c1209)throw new Error(_0x13d8c0(0x14f));try{const _0x170317=_0x5c1209[_0x13d8c0(0x157)](),_0x7148cc=_0x170317===null||_0x170317===void 0x0?void 0x0:_0x170317[_0x13d8c0(0x391)](_0x3af1cd);if(!_0x7148cc)throw new Error('Worksheet\x20with\x20name\x20'+_0x3af1cd+_0x13d8c0(0x14e));if(!_0x170317)throw new Error(_0x13d8c0(0x153));const _0x48614d=_0x5c1209[_0x13d8c0(0x184)]['get'](_univerjs_sheets_data_validation['SheetDataValidationModel'])[_0x13d8c0(0x19e)](_0x170317[_0x13d8c0(0x347)](),_0x7148cc['getSheetId']());let _0x968180=0x0;const _0x38fe76=[];for(const _0x2f2e43 of _0x10ea93)try{if(!_0x48614d[_0x13d8c0(0x225)](_0x529b13=>_0x529b13[_0x13d8c0(0x32e)]===_0x2f2e43))throw new Error('Data\x20validation\x20rule\x20with\x20id\x20'+_0x2f2e43+_0x13d8c0(0x1ad)+_0x3af1cd+'.');const _0x42c721={'unitId':_0x170317['getId'](),'subUnitId':_0x7148cc[_0x13d8c0(0x3b7)](),'ruleId':_0x2f2e43};_0x5c1209[_0x13d8c0(0x1ee)][_0x13d8c0(0x185)](_univerjs_sheets_data_validation[_0x13d8c0(0x2bc)]['id'],_0x42c721),_0x968180++;}catch(_0x21cfa5){_0x38fe76[_0x13d8c0(0x333)]((_0x21cfa5===null||_0x21cfa5===void 0x0?void 0x0:_0x21cfa5['message'])||String(_0x21cfa5));}if(_0x38fe76[_0x13d8c0(0x18d)]===0x0)return _0x13d8c0(0x202)+_0x968180+_0x13d8c0(0x224);else{if(_0x968180>0x0)return'Deleted\x20'+_0x968180+_0x13d8c0(0x328)+_0x38fe76[_0x13d8c0(0x18d)]+_0x13d8c0(0x3dd)+_0x38fe76['join'](';\x20');else throw new Error(_0x13d8c0(0x20a)+_0x38fe76[_0x13d8c0(0x1b9)](';\x20'));}}catch(_0x15061c){const _0x3d5061=_0x15061c instanceof Error?_0x15061c[_0x13d8c0(0x24e)]:String(_0x15061c);throw new Error(_0x3d5061[_0x13d8c0(0x29a)]('\x0a')[0x0]||'Unknown\x20error');}}async function getDataValidationRules(_0x44dd36){const _0x1a989f=_0x6875c,_0x33d092=getUniverAPI();if(!_0x33d092)throw new Error(_0x1a989f(0x14f));try{const _0x206483=_0x33d092[_0x1a989f(0x157)](),_0x4a493c=_0x206483===null||_0x206483===void 0x0?void 0x0:_0x206483[_0x1a989f(0x391)](_0x44dd36);if(!_0x4a493c)throw new Error(_0x1a989f(0x183)+_0x44dd36+_0x1a989f(0x14e));if(!_0x206483)throw new Error(_0x1a989f(0x153));return(_0x33d092[_0x1a989f(0x184)][_0x1a989f(0x2b8)](_univerjs_sheets_data_validation['SheetDataValidationModel'])[_0x1a989f(0x19e)](_0x206483[_0x1a989f(0x347)](),_0x4a493c['getSheetId']())||[])[_0x1a989f(0x25c)](_0x4a37da=>{const _0x566e3c=_0x1a989f;return DataValidationConverter[_0x566e3c(0x35b)](_0x4a37da);})[_0x1a989f(0x25c)](_0x505b03=>JSON['stringify'](_0x505b03))[_0x1a989f(0x1b9)]('\x0a');}catch(_0x5ba9fd){const _0x5ae5ee=_0x5ba9fd instanceof Error?_0x5ba9fd[_0x1a989f(0x24e)]:String(_0x5ba9fd);throw new Error(_0x5ae5ee[_0x1a989f(0x29a)]('\x0a')[0x0]||_0x1a989f(0x17c));}}const dataValidationTools=[{'name':_0x6875c(0x1aa),'description':_0x6875c(0x1d4),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_name':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x210)](_0x6875c(0x405)),'rules':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](dataValidationRuleSchema)['describe'](_0x6875c(0x383))}),'execute':async _0x645d4a=>addDataValidationRule(_0x645d4a['sheet_name'],_0x645d4a[_0x6875c(0x2f9)])},{'name':_0x6875c(0x216),'description':_0x6875c(0x273),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()['describe'](_0x6875c(0x405)),'rules':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](dataValidationRuleSchema)[_0x6875c(0x210)](_0x6875c(0x13a))}),'execute':async _0x496ac3=>setDataValidationRule(_0x496ac3[_0x6875c(0x2e7)],_0x496ac3[_0x6875c(0x2f9)])},{'name':_0x6875c(0x3a8),'description':_0x6875c(0x152),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x405)),'rule_ids':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](_univerjs_pro_mcp['z'][_0x6875c(0x368)]())[_0x6875c(0x210)]('List\x20of\x20data\x20validation\x20rule\x20IDs')}),'execute':async _0x4f3288=>deleteDataValidationRule(_0x4f3288[_0x6875c(0x2e7)],_0x4f3288[_0x6875c(0x27d)])},{'name':_0x6875c(0x275),'description':'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','inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x405))}),'execute':async _0x424121=>getDataValidationRules(_0x424121[_0x6875c(0x2e7)])}];function processCellValue(_0x40c15e,_0x2938e2,_0x1e2c66,_0xa24c2d,_0x527bc1){const _0x8ac615=_0x6875c,_0x31bbd0=_0x2938e2[_0x8ac615(0x227)],_0x5b92f7=_0x31bbd0[_0x8ac615(0x128)]?_0x31bbd0[_0x8ac615(0x128)](_0x1e2c66,_0xa24c2d):{};return(_0x40c15e[_0x8ac615(0x230)]?_0x40c15e[_0x8ac615(0x230)](_0x2938e2[_0x8ac615(0x3ea)],_0x31bbd0,_0x1e2c66,_0xa24c2d,{..._0x5b92f7,...typeof _0x527bc1===_0x8ac615(0x23e)?_0x527bc1:{'v':_0x527bc1}}):typeof _0x527bc1===_0x8ac615(0x23e)?_0x527bc1:{'v':_0x527bc1})||(typeof _0x527bc1===_0x8ac615(0x23e)?_0x527bc1:{'v':_0x527bc1});}async function internalSetRangeValue(_0x494a94,_0x4935b3,_0x1773ad,_0x1eae8c){const _0x145799=_0x6875c,_0x1d110f=getCommandService(),_0x1e899b=getSheetInterceptorService();if(!_0x1d110f)throw new Error('CommandService\x20not\x20available');let _0x41461f;if(typeof _0x1eae8c==='string'){if(_0x1eae8c['startsWith']('='))_0x41461f={'f':_0x1eae8c,'v':null,'p':null};else _0x41461f={'v':_0x1eae8c,'p':null,'f':null};}else{if(typeof _0x1eae8c===_0x145799(0x2d0)||typeof _0x1eae8c===_0x145799(0x358))_0x41461f={'v':_0x1eae8c,'p':null,'f':null};else{if(typeof _0x1eae8c===_0x145799(0x23e)&&_0x1eae8c!==null)_0x41461f=_0x1eae8c;else _0x41461f={'v':_0x1eae8c,'p':null,'f':null};}}if(_0x1e899b)try{const _0x16e935=getUniverAPI()[_0x145799(0x157)](),_0x1cabf4=_0x16e935[_0x145799(0x1fc)]();if(_0x16e935&&_0x1cabf4){const _0x1044ad=_0x1773ad[_0x145799(0x2da)],_0x40fa36=_0x1773ad[_0x145799(0x400)];_0x41461f['v']!==''&&(_0x41461f=processCellValue(_0x1e899b,_0x1cabf4,_0x1044ad,_0x40fa36,_0x41461f),delete _0x41461f['t']);}}catch(_0x560175){console[_0x145799(0x187)](_0x145799(0x21b),_0x560175);}await _0x1d110f[_0x145799(0x185)](_0x145799(0x254),{'unitId':_0x494a94,'subUnitId':_0x4935b3,'range':_0x1773ad,'value':_0x41461f});}async function internalSetRangeValues(_0x108328,_0x154e04,_0x3a5589,_0x54e943){const _0x29b614=_0x6875c;if(!getCommandService())throw new Error(_0x29b614(0x203));let _0xb6292a;if(Array['isArray'](_0x54e943))_0xb6292a={},_0x54e943['forEach']((_0x1f4d92,_0xd3e016)=>{const _0x237097=_0x29b614;if(Array[_0x237097(0x2fc)](_0x1f4d92))_0x1f4d92[_0x237097(0x2f8)]((_0x29bb61,_0x226b2d)=>{const _0x519a77=_0x237097,_0x42d0cb=_0x3a5589[_0x519a77(0x2da)]+_0xd3e016,_0x5eb2b1=_0x3a5589[_0x519a77(0x400)]+_0x226b2d;if(_0x42d0cb<=_0x3a5589[_0x519a77(0x1d2)]&&_0x5eb2b1<=_0x3a5589['endColumn']){if(!_0xb6292a[_0x42d0cb])_0xb6292a[_0x42d0cb]={};_0xb6292a[_0x42d0cb][_0x5eb2b1]=_0x29bb61;}});});else _0xb6292a=_0x54e943;for(const [_0x466784,_0x5cb27d]of Object[_0x29b614(0x360)](_0xb6292a))for(const [_0x444f23,_0x3f2fab]of Object['entries'](_0x5cb27d)){const _0x46d08e=Number(_0x466784),_0x2defc9=Number(_0x444f23);await internalSetRangeValue(_0x108328,_0x154e04,{'startRow':_0x46d08e,'startColumn':_0x2defc9,'endRow':_0x46d08e,'endColumn':_0x2defc9},_0x3f2fab);}}async function internalSetActiveRange(_0x7d7f9c,_0xbc69a,_0x39e022){const _0x11ca8c=_0x6875c,_0x2386bf=getCommandService();if(!_0x2386bf)return;try{await _0x2386bf[_0x11ca8c(0x185)](_0x11ca8c(0x1b6),{'unitId':_0x7d7f9c,'subUnitId':_0xbc69a,'selections':[{'range':_0x39e022,'primary':{'startRow':_0x39e022[_0x11ca8c(0x2da)],'startColumn':_0x39e022[_0x11ca8c(0x400)],'endRow':_0x39e022[_0x11ca8c(0x1d2)],'endColumn':_0x39e022[_0x11ca8c(0x2e9)],'actualRow':_0x39e022[_0x11ca8c(0x2da)],'actualColumn':_0x39e022[_0x11ca8c(0x400)],'isMerged':![],'isMergedMainCell':![]},'style':null}]});}catch(_0x13e3ec){console['warn'](_0x11ca8c(0x21f),_0x13e3ec);}}const batchRangeDataItemSchema=_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'range':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x210)](_0x6875c(0x243)),'value':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x368)](),_univerjs_pro_mcp['z'][_0x6875c(0x2d0)](),_univerjs_pro_mcp['z'][_0x6875c(0x358)](),_univerjs_pro_mcp['z'][_0x6875c(0x26f)](_univerjs_pro_mcp['z'][_0x6875c(0x2cb)]())[_0x6875c(0x210)](_0x6875c(0x386)),_univerjs_pro_mcp['z'][_0x6875c(0x29f)](_univerjs_pro_mcp['z'][_0x6875c(0x368)](),_univerjs_pro_mcp['z']['any']())[_0x6875c(0x210)]('Object/dictionary\x20value')])['describe'](_0x6875c(0x190))}),batchRangeStyleItemSchema=_univerjs_pro_mcp['z']['object']({'range':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x243)),'style':styleDataSchema});async function setRangeDataInternal(_0x466b81){const _0x3b1b04=_0x6875c;var _0x1f3694;const _0x2b292d=getUniverAPI();if(!_0x2b292d)throw new Error(_0x3b1b04(0x14f));const _0x5d3a2c=_0x2b292d['getActiveWorkbook']();if(!_0x5d3a2c)throw new Error(_0x3b1b04(0x1fb));const _0x41e40=_0x5d3a2c[_0x3b1b04(0x347)](),_0x59b8ca=(_0x1f3694=_0x5d3a2c[_0x3b1b04(0x1fc)]())===null||_0x1f3694===void 0x0?void 0x0:_0x1f3694['getSheetId']();if(!_0x59b8ca)throw new Error('No\x20active\x20sheet');for(const _0x4a77dc of _0x466b81){var _0x2ff14d;let _0x9b5746=[];const _0x1b348c=(_0x2ff14d=_0x4a77dc['range'])!==null&&_0x2ff14d!==void 0x0?_0x2ff14d:'';if(typeof _0x1b348c===_0x3b1b04(0x368))_0x9b5746=_0x1b348c[_0x3b1b04(0x29a)](',')[_0x3b1b04(0x25c)](_0x450a36=>_0x450a36[_0x3b1b04(0x1c7)]())['filter'](Boolean);else throw new TypeError(_0x3b1b04(0x1f1));for(const _0x2b9bcf of _0x9b5746){const _0x49cd3a=_0x5d3a2c[_0x3b1b04(0x1fc)]();if(!_0x49cd3a)throw new Error(_0x3b1b04(0x258));const _0x2d58b8=_0x49cd3a[_0x3b1b04(0x3c3)](_0x2b9bcf),_0x53faeb=_0x2d58b8[_0x3b1b04(0x3c3)]();await internalSetActiveRange(_0x41e40,_0x59b8ca,_0x53faeb);const _0x32ba75=_0x2d58b8['getLastRow'](),_0x2bef47=_0x49cd3a['getMaxRows']();if(_0x32ba75>=_0x2bef47)_0x49cd3a['insertRowsAfter'](_0x2bef47,_0x32ba75-_0x2bef47+0x1);const _0x46e5f4=_0x2d58b8[_0x3b1b04(0x3d4)](),_0x5cbddc=_0x49cd3a[_0x3b1b04(0x407)]();if(_0x46e5f4>=_0x5cbddc)_0x49cd3a[_0x3b1b04(0x367)](_0x5cbddc,_0x46e5f4-_0x5cbddc+0x1);const _0x1bbf9d=_0x4a77dc[_0x3b1b04(0x1b3)];if(_0x1bbf9d!==void 0x0){if(typeof _0x1bbf9d===_0x3b1b04(0x368)){if(_0x1bbf9d[_0x3b1b04(0x2d9)]('='))_0x2d58b8[_0x3b1b04(0x282)](_0x1bbf9d);else await internalSetRangeValue(_0x41e40,_0x59b8ca,_0x53faeb,_0x1bbf9d);}else{if(typeof _0x1bbf9d===_0x3b1b04(0x2d0)||typeof _0x1bbf9d===_0x3b1b04(0x358))await internalSetRangeValue(_0x41e40,_0x59b8ca,_0x53faeb,_0x1bbf9d);else{if(Array[_0x3b1b04(0x2fc)](_0x1bbf9d)){const _0x8efa25=_0x53faeb['startRow'],_0x287c0d=_0x53faeb[_0x3b1b04(0x400)],_0x240043=_0x53faeb['endRow'],_0x508a9a=_0x53faeb[_0x3b1b04(0x2e9)],_0x675f35=_0x240043-_0x8efa25+0x1,_0x5f3b11=_0x508a9a-_0x287c0d+0x1,_0x1812f8={},_0x2c73ba=(_0x312acb,_0x550c51,_0x88101f)=>{if(!_0x1812f8[_0x312acb])_0x1812f8[_0x312acb]={};_0x1812f8[_0x312acb][_0x550c51]=_0x88101f;};if(_0x1bbf9d[_0x3b1b04(0x18d)]>0x0){if(!Array[_0x3b1b04(0x2fc)](_0x1bbf9d[0x0])){if(_0x675f35===0x1){const _0x497afe=_0x1bbf9d;for(let _0x44ffeb=0x0;_0x44ffeb<Math[_0x3b1b04(0x159)](_0x5f3b11,_0x497afe['length']);++_0x44ffeb)_0x2c73ba(_0x8efa25,_0x287c0d+_0x44ffeb,_0x497afe[_0x44ffeb]);}else{const _0x2d4dbe=_0x1bbf9d;for(let _0x5dcb99=0x0;_0x5dcb99<Math[_0x3b1b04(0x159)](_0x675f35,_0x2d4dbe['length']);++_0x5dcb99)_0x2c73ba(_0x8efa25+_0x5dcb99,_0x287c0d,_0x2d4dbe[_0x5dcb99]);}}else{for(let _0x45b2d8=0x0;_0x45b2d8<Math[_0x3b1b04(0x159)](_0x675f35,_0x1bbf9d['length']);++_0x45b2d8)for(let _0x1f56b7=0x0;_0x1f56b7<Math[_0x3b1b04(0x159)](_0x5f3b11,_0x1bbf9d[_0x45b2d8]['length']);++_0x1f56b7)_0x2c73ba(_0x8efa25+_0x45b2d8,_0x287c0d+_0x1f56b7,_0x1bbf9d[_0x45b2d8][_0x1f56b7]);}}await internalSetRangeValues(_0x41e40,_0x59b8ca,_0x53faeb,_0x1812f8);}else{if(typeof _0x1bbf9d===_0x3b1b04(0x23e)&&_0x1bbf9d!==null)await internalSetRangeValues(_0x41e40,_0x59b8ca,_0x53faeb,_0x1bbf9d);else throw new Error('Unsupported\x20value\x20type:\x20'+typeof _0x1bbf9d);}}}}if(_0x4a77dc[_0x3b1b04(0x212)]!==void 0x0)_0x2d58b8['setValue']({'s':_0x4a77dc[_0x3b1b04(0x212)]});if(_0x4a77dc[_0x3b1b04(0x2e6)])_0x2d58b8[_0x3b1b04(0x2e6)]();}}return'Success';}async function batchSetRangeData(_0x14d7d2){if(!Array['isArray'](_0x14d7d2))throw new TypeError('items\x20must\x20be\x20array\x20of\x20BatchRangeDataItem');return await setRangeDataInternal(_0x14d7d2);}async function setRangeStyle(_0x4ace8a){const _0x2102a1=_0x6875c;if(!Array[_0x2102a1(0x2fc)](_0x4ace8a))throw new TypeError('items\x20must\x20be\x20array\x20of\x20BatchRangeStyleItem');return await setRangeDataInternal(_0x4ace8a);}async function setMerge(_0x3f9629){const _0x356a88=_0x6875c;if(typeof _0x3f9629!==_0x356a88(0x368))throw new TypeError(_0x356a88(0x219));return await setRangeDataInternal([{'range':_0x3f9629,'merge':!![]}]);}const rangeOperationTools=[{'name':_0x6875c(0x327),'description':_0x6875c(0x361),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'items':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](batchRangeDataItemSchema)[_0x6875c(0x210)](_0x6875c(0x32b))}),'execute':async _0x303848=>batchSetRangeData(_0x303848[_0x6875c(0x35d)])},{'name':_0x6875c(0x18c),'description':_0x6875c(0x1f5),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'items':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](batchRangeStyleItemSchema)[_0x6875c(0x210)](_0x6875c(0x1d9))}),'execute':async _0xd7ea3f=>setRangeStyle(_0xd7ea3f[_0x6875c(0x35d)])},{'name':_0x6875c(0x22e),'description':_0x6875c(0x2be),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'range_a1':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x1e8))}),'execute':async _0x24f932=>setMerge(_0x24f932[_0x6875c(0x146)])}],insertRowOperationSchema=_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'position':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x210)](_0x6875c(0x304)),'how_many':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x3b6)]()['default'](0x1)[_0x6875c(0x210)](_0x6875c(0x2a6)),'where':_univerjs_pro_mcp['z'][_0x6875c(0x354)]([_0x6875c(0x403),_0x6875c(0x2d3)])[_0x6875c(0x3b6)]()[_0x6875c(0x30c)](_0x6875c(0x403))['describe'](_0x6875c(0x1f0)),'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()['optional']()[_0x6875c(0x210)]('Sheet\x20name\x20(optional,\x20uses\x20active\x20sheet\x20if\x20not\x20provided)')}),insertColumnOperationSchema=_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'position':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x210)]('Column\x20index\x20(0-based)\x20where\x20to\x20insert'),'how_many':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()['optional']()[_0x6875c(0x30c)](0x1)[_0x6875c(0x210)](_0x6875c(0x26e)),'where':_univerjs_pro_mcp['z'][_0x6875c(0x354)]([_0x6875c(0x403),_0x6875c(0x2d3)])[_0x6875c(0x3b6)]()['default']('before')[_0x6875c(0x210)](_0x6875c(0x1f0)),'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('Sheet\x20name\x20(optional,\x20uses\x20active\x20sheet\x20if\x20not\x20provided)')}),deleteRowOperationSchema=_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'position':_univerjs_pro_mcp['z']['number']()['describe'](_0x6875c(0x307)),'how_many':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x3b6)]()['default'](0x1)['describe']('Number\x20of\x20rows\x20to\x20delete\x20(default\x201)'),'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)]('Sheet\x20name\x20(optional,\x20uses\x20active\x20sheet\x20if\x20not\x20provided)')}),deleteColumnOperationSchema=_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'position':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x210)](_0x6875c(0x255)),'how_many':_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x3b6)]()['default'](0x1)['describe'](_0x6875c(0x3c8)),'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x3b6)]()[_0x6875c(0x210)](_0x6875c(0x293))});async function insertRows(_0x40204a){const _0x55c639=_0x6875c,_0x59ce58=getUniverAPI();if(!_0x59ce58)throw new Error(_0x55c639(0x14f));const _0x4383a2=_0x59ce58['getActiveWorkbook'](),_0x822c99=[];for(const _0x3c13e2 of _0x40204a)try{const _0x3dbba6=Number[_0x55c639(0x314)](String(_0x3c13e2['position'])),_0x38566f=Number[_0x55c639(0x314)](String(_0x3c13e2[_0x55c639(0x392)]||0x1)),_0x4ed23a=_0x3c13e2[_0x55c639(0x409)]||'before',_0x14ee38=_0x3c13e2[_0x55c639(0x2e7)];if(isNaN(_0x3dbba6)||isNaN(_0x38566f)){_0x822c99[_0x55c639(0x333)]({'operation':_0x55c639(0x33f)+_0x3c13e2[_0x55c639(0x413)]+_0x55c639(0x201)+(_0x3c13e2[_0x55c639(0x392)]||0x1)+_0x55c639(0x3c6)+_0x4ed23a+',\x20sheet='+(_0x14ee38||_0x55c639(0x3f3)),'status':_0x55c639(0x2b4),'message':'Invalid\x20position\x20or\x20how_many\x20parameter'});continue;}const _0x550f2f=_0x14ee38?_0x4383a2['getSheetByName'](_0x14ee38):_0x4383a2['getActiveSheet']();if(!_0x550f2f){_0x822c99['push']({'operation':_0x55c639(0x33f)+_0x3dbba6+',\x20count='+_0x38566f+_0x55c639(0x3c6)+_0x4ed23a+_0x55c639(0x3b9)+(_0x14ee38||_0x55c639(0x3f3)),'status':_0x55c639(0x2b4),'message':_0x55c639(0x398)+_0x14ee38+_0x55c639(0x3cd)});continue;}if(_0x4ed23a===_0x55c639(0x403))_0x550f2f[_0x55c639(0x357)](_0x3dbba6,_0x38566f);else{if(_0x4ed23a===_0x55c639(0x2d3))_0x550f2f[_0x55c639(0x308)](_0x3dbba6,_0x38566f);else{_0x822c99[_0x55c639(0x333)]({'operation':_0x55c639(0x33f)+_0x3dbba6+_0x55c639(0x201)+_0x38566f+_0x55c639(0x3c6)+_0x4ed23a+_0x55c639(0x3b9)+(_0x14ee38||_0x55c639(0x3f3)),'status':_0x55c639(0x2b4),'message':'where\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27'});continue;}}_0x822c99[_0x55c639(0x333)]({'operation':_0x55c639(0x33f)+_0x3dbba6+_0x55c639(0x201)+_0x38566f+_0x55c639(0x3c6)+_0x4ed23a+_0x55c639(0x3b9)+(_0x14ee38||_0x55c639(0x3f3)),'status':_0x55c639(0x170),'message':_0x55c639(0x37b)+_0x38566f+_0x55c639(0x268)+_0x4ed23a+_0x55c639(0x387)+_0x3dbba6+_0x55c639(0x1a6)+(_0x14ee38||'active')+'\x27'});}catch(_0x4451a5){_0x822c99[_0x55c639(0x333)]({'operation':_0x55c639(0x33f)+_0x3c13e2[_0x55c639(0x413)]+',\x20count='+(_0x3c13e2[_0x55c639(0x392)]||0x1)+_0x55c639(0x3c6)+(_0x3c13e2['where']||_0x55c639(0x403))+_0x55c639(0x3b9)+(_0x3c13e2['sheet_name']||'active'),'status':_0x55c639(0x2b4),'message':_0x55c639(0x17f)+(_0x4451a5 instanceof Error?_0x4451a5['message']:'Unknown\x20error')});}const _0x1fbe8b=_0x822c99[_0x55c639(0x40f)](_0x3ebd3e=>_0x3ebd3e[_0x55c639(0x23d)]==='success')[_0x55c639(0x18d)],_0x597b6c=_0x822c99[_0x55c639(0x40f)](_0x1e742e=>_0x1e742e['status']===_0x55c639(0x2b4))[_0x55c639(0x18d)],_0x1b7e36=_0x822c99['filter'](_0x4760f5=>_0x4760f5[_0x55c639(0x23d)]===_0x55c639(0x2b4))[_0x55c639(0x25c)](_0x36f228=>_0x36f228['message']);let _0xc61140,_0x2d8032;if(_0x597b6c===0x0)_0xc61140=_0x55c639(0x170),_0x2d8032=_0x55c639(0x204)+_0x1fbe8b+'\x20operation(s)\x20successfully.';else _0x1fbe8b>0x0?(_0xc61140=_0x55c639(0x170),_0x2d8032='Inserted\x20rows\x20in\x20'+_0x1fbe8b+_0x55c639(0x12d)+_0x597b6c+_0x55c639(0x338)+_0x1b7e36[_0x55c639(0x1b9)](';\x20')):(_0xc61140='fail',_0x2d8032=_0x55c639(0x17f)+_0x1b7e36['join'](';\x20'));return{'status':_0xc61140,'message':_0x2d8032,'details':_0x822c99};}async function insertColumns(_0x2f6a46){const _0xa115ca=_0x6875c,_0x38f796=getUniverAPI();if(!_0x38f796)throw new Error(_0xa115ca(0x14f));const _0x276dc1=_0x38f796[_0xa115ca(0x157)](),_0x4bcd32=[];for(const _0x3f0d7e of _0x2f6a46)try{const _0x173a23=Number['parseInt'](String(_0x3f0d7e[_0xa115ca(0x413)])),_0x475524=Number[_0xa115ca(0x314)](String(_0x3f0d7e[_0xa115ca(0x392)]||0x1)),_0x5e354e=_0x3f0d7e[_0xa115ca(0x409)]||_0xa115ca(0x403),_0x279000=_0x3f0d7e[_0xa115ca(0x2e7)];if(isNaN(_0x173a23)||isNaN(_0x475524)){_0x4bcd32[_0xa115ca(0x333)]({'operation':_0xa115ca(0x2f7)+_0x3f0d7e[_0xa115ca(0x413)]+_0xa115ca(0x201)+(_0x3f0d7e[_0xa115ca(0x392)]||0x1)+',\x20where='+_0x5e354e+',\x20sheet='+(_0x279000||_0xa115ca(0x3f3)),'status':_0xa115ca(0x2b4),'message':_0xa115ca(0x15e)});continue;}const _0x37b243=_0x279000?_0x276dc1[_0xa115ca(0x391)](_0x279000):_0x276dc1[_0xa115ca(0x1fc)]();if(!_0x37b243){_0x4bcd32[_0xa115ca(0x333)]({'operation':'insert_columns:\x20pos='+_0x173a23+_0xa115ca(0x201)+_0x475524+',\x20where='+_0x5e354e+_0xa115ca(0x3b9)+(_0x279000||'active'),'status':_0xa115ca(0x2b4),'message':_0xa115ca(0x398)+_0x279000+'\x27\x20not\x20found'});continue;}if(_0x5e354e===_0xa115ca(0x403))_0x37b243[_0xa115ca(0x235)](_0x173a23,_0x475524);else{if(_0x5e354e==='after')_0x37b243[_0xa115ca(0x367)](_0x173a23,_0x475524);else{_0x4bcd32[_0xa115ca(0x333)]({'operation':_0xa115ca(0x2f7)+_0x173a23+_0xa115ca(0x201)+_0x475524+',\x20where='+_0x5e354e+',\x20sheet='+(_0x279000||_0xa115ca(0x3f3)),'status':_0xa115ca(0x2b4),'message':_0xa115ca(0x1ea)});continue;}}_0x4bcd32[_0xa115ca(0x333)]({'operation':'insert_columns:\x20pos='+_0x173a23+',\x20count='+_0x475524+_0xa115ca(0x3c6)+_0x5e354e+_0xa115ca(0x3b9)+(_0x279000||'active'),'status':_0xa115ca(0x170),'message':_0xa115ca(0x37b)+_0x475524+_0xa115ca(0x1ed)+_0x5e354e+_0xa115ca(0x387)+_0x173a23+_0xa115ca(0x1a6)+(_0x279000||_0xa115ca(0x3f3))+'\x27'});}catch(_0xf25345){_0x4bcd32['push']({'operation':'insert_columns:\x20pos='+_0x3f0d7e['position']+_0xa115ca(0x201)+(_0x3f0d7e[_0xa115ca(0x392)]||0x1)+',\x20where='+(_0x3f0d7e[_0xa115ca(0x409)]||_0xa115ca(0x403))+_0xa115ca(0x3b9)+(_0x3f0d7e['sheet_name']||'active'),'status':'fail','message':_0xa115ca(0x3d5)+(_0xf25345 instanceof Error?_0xf25345['message']:'Unknown\x20error')});}const _0x3aa4d7=_0x4bcd32[_0xa115ca(0x40f)](_0x5d7757=>_0x5d7757[_0xa115ca(0x23d)]===_0xa115ca(0x170))[_0xa115ca(0x18d)],_0x68a67f=_0x4bcd32[_0xa115ca(0x40f)](_0x1eaea8=>_0x1eaea8[_0xa115ca(0x23d)]===_0xa115ca(0x2b4))[_0xa115ca(0x18d)],_0x27dc95=_0x4bcd32[_0xa115ca(0x40f)](_0x3668e0=>_0x3668e0[_0xa115ca(0x23d)]===_0xa115ca(0x2b4))[_0xa115ca(0x25c)](_0x20271a=>_0x20271a[_0xa115ca(0x24e)]);let _0x29bf54,_0x27dd03;if(_0x68a67f===0x0)_0x29bf54=_0xa115ca(0x170),_0x27dd03=_0xa115ca(0x2cf)+_0x3aa4d7+_0xa115ca(0x2b9);else _0x3aa4d7>0x0?(_0x29bf54=_0xa115ca(0x170),_0x27dd03=_0xa115ca(0x2cf)+_0x3aa4d7+_0xa115ca(0x12d)+_0x68a67f+'\x20operation(s),\x20reason(s):\x20'+_0x27dc95[_0xa115ca(0x1b9)](';\x20')):(_0x29bf54='fail',_0x27dd03=_0xa115ca(0x3d5)+_0x27dc95[_0xa115ca(0x1b9)](';\x20'));return{'status':_0x29bf54,'message':_0x27dd03,'details':_0x4bcd32};}async function deleteRows(_0x5e6c60){const _0x221691=_0x6875c,_0x3ae383=getUniverAPI();if(!_0x3ae383)throw new Error(_0x221691(0x14f));const _0x14a83b=_0x3ae383[_0x221691(0x157)](),_0x21ea07=[];for(const _0x525d74 of _0x5e6c60)try{const _0x38037c=Number['parseInt'](String(_0x525d74[_0x221691(0x413)])),_0x3910b4=Number['parseInt'](String(_0x525d74[_0x221691(0x392)]||0x1)),_0x590d02=_0x525d74[_0x221691(0x2e7)];if(isNaN(_0x38037c)||isNaN(_0x3910b4)){_0x21ea07[_0x221691(0x333)]({'operation':_0x221691(0x132)+_0x525d74['position']+_0x221691(0x201)+(_0x525d74[_0x221691(0x392)]||0x1)+_0x221691(0x3b9)+(_0x590d02||_0x221691(0x3f3)),'status':_0x221691(0x2b4),'message':_0x221691(0x15e)});continue;}if(_0x3910b4<=0x0){_0x21ea07[_0x221691(0x333)]({'operation':_0x221691(0x132)+_0x38037c+_0x221691(0x201)+_0x3910b4+_0x221691(0x3b9)+(_0x590d02||_0x221691(0x3f3)),'status':_0x221691(0x2b4),'message':_0x221691(0x3f0)});continue;}const _0x3ae097=_0x590d02?_0x14a83b[_0x221691(0x391)](_0x590d02):_0x14a83b[_0x221691(0x1fc)]();if(!_0x3ae097){_0x21ea07[_0x221691(0x333)]({'operation':_0x221691(0x132)+_0x38037c+_0x221691(0x201)+_0x3910b4+',\x20sheet='+(_0x590d02||'active'),'status':_0x221691(0x2b4),'message':_0x221691(0x398)+_0x590d02+'\x27\x20not\x20found'});continue;}_0x3ae097[_0x221691(0x1ae)](_0x38037c,_0x3910b4),_0x21ea07[_0x221691(0x333)]({'operation':_0x221691(0x132)+_0x38037c+',\x20count='+_0x3910b4+_0x221691(0x3b9)+(_0x590d02||'active'),'status':_0x221691(0x170),'message':_0x221691(0x202)+_0x3910b4+'\x20rows\x20from\x20position\x20'+_0x38037c+_0x221691(0x1a6)+(_0x590d02||_0x221691(0x3f3))+'\x27'});}catch(_0x1f869a){_0x21ea07['push']({'operation':_0x221691(0x132)+_0x525d74[_0x221691(0x413)]+_0x221691(0x201)+(_0x525d74[_0x221691(0x392)]||0x1)+',\x20sheet='+(_0x525d74[_0x221691(0x2e7)]||_0x221691(0x3f3)),'status':_0x221691(0x2b4),'message':_0x221691(0x1d8)+(_0x1f869a instanceof Error?_0x1f869a[_0x221691(0x24e)]:_0x221691(0x17c))});}const _0x1769cd=_0x21ea07['filter'](_0x431ec3=>_0x431ec3['status']===_0x221691(0x170))[_0x221691(0x18d)],_0x4c8c05=_0x21ea07['filter'](_0x5ba610=>_0x5ba610[_0x221691(0x23d)]===_0x221691(0x2b4))[_0x221691(0x18d)],_0x1db87b=_0x21ea07[_0x221691(0x40f)](_0x54736f=>_0x54736f[_0x221691(0x23d)]===_0x221691(0x2b4))['map'](_0x55ca54=>_0x55ca54[_0x221691(0x24e)]);let _0x1d0ec2,_0x36c763;if(_0x4c8c05===0x0)_0x1d0ec2='success',_0x36c763='Deleted\x20rows\x20in\x20'+_0x1769cd+_0x221691(0x2b9);else _0x1769cd>0x0?(_0x1d0ec2=_0x221691(0x170),_0x36c763=_0x221691(0x238)+_0x1769cd+_0x221691(0x12d)+_0x4c8c05+'\x20operation(s),\x20reason(s):\x20'+_0x1db87b[_0x221691(0x1b9)](';\x20')):(_0x1d0ec2=_0x221691(0x2b4),_0x36c763=_0x221691(0x1d8)+_0x1db87b[_0x221691(0x1b9)](';\x20'));return{'status':_0x1d0ec2,'message':_0x36c763,'details':_0x21ea07};}async function deleteColumns(_0x4cc02d){const _0x3b720a=_0x6875c,_0x1bf4f0=getUniverAPI();if(!_0x1bf4f0)throw new Error(_0x3b720a(0x14f));const _0x4a580c=_0x1bf4f0[_0x3b720a(0x157)](),_0xf16652=[];for(const _0x1932ef of _0x4cc02d)try{const _0x290fd6=Number[_0x3b720a(0x314)](String(_0x1932ef['position'])),_0x5c1db4=Number['parseInt'](String(_0x1932ef[_0x3b720a(0x392)]||0x1)),_0xb13f59=_0x1932ef[_0x3b720a(0x2e7)];if(isNaN(_0x290fd6)||isNaN(_0x5c1db4)){_0xf16652[_0x3b720a(0x333)]({'operation':_0x3b720a(0x3e4)+_0x1932ef['position']+_0x3b720a(0x201)+(_0x1932ef[_0x3b720a(0x392)]||0x1)+',\x20sheet='+(_0xb13f59||_0x3b720a(0x3f3)),'status':_0x3b720a(0x2b4),'message':_0x3b720a(0x15e)});continue;}if(_0x5c1db4<=0x0){_0xf16652[_0x3b720a(0x333)]({'operation':_0x3b720a(0x3e4)+_0x290fd6+_0x3b720a(0x201)+_0x5c1db4+',\x20sheet='+(_0xb13f59||_0x3b720a(0x3f3)),'status':_0x3b720a(0x2b4),'message':_0x3b720a(0x3f0)});continue;}const _0x439c50=_0xb13f59?_0x4a580c[_0x3b720a(0x391)](_0xb13f59):_0x4a580c[_0x3b720a(0x1fc)]();if(!_0x439c50){_0xf16652[_0x3b720a(0x333)]({'operation':_0x3b720a(0x3e4)+_0x290fd6+',\x20count='+_0x5c1db4+_0x3b720a(0x3b9)+(_0xb13f59||_0x3b720a(0x3f3)),'status':'fail','message':_0x3b720a(0x398)+_0xb13f59+_0x3b720a(0x3cd)});continue;}_0x439c50['deleteColumns'](_0x290fd6,_0x5c1db4),_0xf16652[_0x3b720a(0x333)]({'operation':'delete_columns:\x20pos='+_0x290fd6+',\x20count='+_0x5c1db4+',\x20sheet='+(_0xb13f59||'active'),'status':_0x3b720a(0x170),'message':'Deleted\x20'+_0x5c1db4+_0x3b720a(0x13f)+_0x290fd6+_0x3b720a(0x1a6)+(_0xb13f59||'active')+'\x27'});}catch(_0x2d2239){_0xf16652['push']({'operation':_0x3b720a(0x3e4)+_0x1932ef[_0x3b720a(0x413)]+_0x3b720a(0x201)+(_0x1932ef[_0x3b720a(0x392)]||0x1)+_0x3b720a(0x3b9)+(_0x1932ef['sheet_name']||'active'),'status':_0x3b720a(0x2b4),'message':'Failed\x20to\x20delete\x20columns:\x20'+(_0x2d2239 instanceof Error?_0x2d2239[_0x3b720a(0x24e)]:_0x3b720a(0x17c))});}const _0xe9d816=_0xf16652['filter'](_0x1257b9=>_0x1257b9[_0x3b720a(0x23d)]==='success')['length'],_0xc9e2b0=_0xf16652['filter'](_0x2fe328=>_0x2fe328[_0x3b720a(0x23d)]===_0x3b720a(0x2b4))['length'],_0x208fa8=_0xf16652[_0x3b720a(0x40f)](_0x35eb52=>_0x35eb52[_0x3b720a(0x23d)]==='fail')[_0x3b720a(0x25c)](_0x591e37=>_0x591e37[_0x3b720a(0x24e)]);let _0x3b7417,_0x316c84;if(_0xc9e2b0===0x0)_0x3b7417=_0x3b720a(0x170),_0x316c84='Deleted\x20columns\x20in\x20'+_0xe9d816+_0x3b720a(0x2b9);else _0xe9d816>0x0?(_0x3b7417='success',_0x316c84=_0x3b720a(0x265)+_0xe9d816+_0x3b720a(0x12d)+_0xc9e2b0+'\x20operation(s),\x20reason(s):\x20'+_0x208fa8[_0x3b720a(0x1b9)](';\x20')):(_0x3b7417=_0x3b720a(0x2b4),_0x316c84=_0x3b720a(0x16c)+_0x208fa8['join'](';\x20'));return{'status':_0x3b7417,'message':_0x316c84,'details':_0xf16652};}const rowColumnOperationTools=[{'name':_0x6875c(0x31e),'description':'Batch\x20insert\x20empty\x20rows\x20for\x20multiple\x20operations.\x20Efficiently\x20inserts\x20rows\x20in\x20multiple\x20locations\x20in\x20one\x20operation.','inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'operations':_univerjs_pro_mcp['z']['array'](insertRowOperationSchema)[_0x6875c(0x210)]('List\x20of\x20InsertRowOperation\x20objects\x20for\x20each\x20insert\x20operation')}),'execute':async _0x2100c3=>insertRows(_0x2100c3[_0x6875c(0x41d)])},{'name':_0x6875c(0x1e9),'description':_0x6875c(0x420),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'operations':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](insertColumnOperationSchema)[_0x6875c(0x210)](_0x6875c(0x284))}),'execute':async _0x496b09=>insertColumns(_0x496b09[_0x6875c(0x41d)])},{'name':_0x6875c(0x36a),'description':_0x6875c(0x176),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'operations':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](deleteRowOperationSchema)[_0x6875c(0x210)](_0x6875c(0x294))}),'execute':async _0x35e5ce=>deleteRows(_0x35e5ce['operations'])},{'name':'delete_columns','description':_0x6875c(0x397),'inputSchema':_univerjs_pro_mcp['z']['object']({'operations':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](deleteColumnOperationSchema)['describe'](_0x6875c(0x39d))}),'execute':async _0x31daff=>deleteColumns(_0x31daff[_0x6875c(0x41d)])}],renameSheetOperationSchema=_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'old_name':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x210)](_0x6875c(0x1b7)),'new_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x1c6))}),sheetDisplayStatusOperationSchema=_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_name':_univerjs_pro_mcp['z']['string']()['describe'](_0x6875c(0x406)),'visible':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x210)](_0x6875c(0x164))});async function createSheet(_0x1a743d){const _0x2eac5e=_0x6875c,_0xe11a8=getUniverAPI();if(!_0xe11a8)throw new Error('UniverAPI\x20not\x20available');const _0x29e555=_0xe11a8['getActiveWorkbook'](),_0x35cd61=[];for(const _0x2a2cfa of _0x1a743d)try{if(!!_0x29e555[_0x2eac5e(0x391)](_0x2a2cfa))_0x35cd61[_0x2eac5e(0x333)]({'operation':_0x2eac5e(0x3ff)+_0x2a2cfa,'status':_0x2eac5e(0x2b4),'message':_0x2eac5e(0x398)+_0x2a2cfa+'\x27\x20already\x20exists'});else _0x29e555[_0x2eac5e(0x169)](_0x2a2cfa),_0x35cd61[_0x2eac5e(0x333)]({'operation':_0x2eac5e(0x3ff)+_0x2a2cfa,'status':_0x2eac5e(0x170),'message':_0x2eac5e(0x37a)+_0x2a2cfa+'\x27'});}catch(_0x17bb67){_0x35cd61[_0x2eac5e(0x333)]({'operation':_0x2eac5e(0x3ff)+_0x2a2cfa,'status':'fail','message':_0x2eac5e(0x38d)+_0x2a2cfa+'\x27:\x20'+(_0x17bb67 instanceof Error?_0x17bb67[_0x2eac5e(0x24e)]:_0x2eac5e(0x17c))});}const _0x100dbc=_0x35cd61['filter'](_0x3d6765=>_0x3d6765[_0x2eac5e(0x23d)]===_0x2eac5e(0x170))[_0x2eac5e(0x18d)],_0x43aa6e=_0x35cd61['filter'](_0x12cfea=>_0x12cfea[_0x2eac5e(0x23d)]===_0x2eac5e(0x2b4))['length'],_0x18c3a7=_0x35cd61[_0x2eac5e(0x40f)](_0x10e797=>_0x10e797[_0x2eac5e(0x23d)]===_0x2eac5e(0x2b4))[_0x2eac5e(0x25c)](_0x5aa627=>_0x5aa627[_0x2eac5e(0x24e)]);let _0x1f67c0,_0x521059;if(_0x43aa6e===0x0)_0x1f67c0=_0x2eac5e(0x170),_0x521059=_0x2eac5e(0x3f1)+_0x100dbc+_0x2eac5e(0x375);else _0x100dbc>0x0?(_0x1f67c0=_0x2eac5e(0x170),_0x521059=_0x2eac5e(0x3f1)+_0x100dbc+'\x20sheet(s)\x20successfully,\x20failed\x20'+_0x43aa6e+_0x2eac5e(0x129)+_0x18c3a7[_0x2eac5e(0x1b9)](';\x20')):(_0x1f67c0=_0x2eac5e(0x2b4),_0x521059=_0x2eac5e(0x2ca)+_0x18c3a7[_0x2eac5e(0x1b9)](';\x20'));return{'status':_0x1f67c0,'message':_0x521059,'details':_0x35cd61};}async function deleteSheet(_0x10ad60){const _0x5ccb94=_0x6875c,_0x52a502=getUniverAPI();if(!_0x52a502)throw new Error(_0x5ccb94(0x14f));const _0x118339=_0x52a502[_0x5ccb94(0x157)](),_0x344407=[];for(const _0x4b96d9 of _0x10ad60)try{const _0x45cb31=_0x118339['getSheetByName'](_0x4b96d9);if(!_0x45cb31)_0x344407[_0x5ccb94(0x333)]({'operation':_0x5ccb94(0x1bd)+_0x4b96d9,'status':_0x5ccb94(0x2b4),'message':'Sheet\x20\x27'+_0x4b96d9+_0x5ccb94(0x3cd)});else _0x118339[_0x5ccb94(0x13e)](_0x45cb31),_0x344407[_0x5ccb94(0x333)]({'operation':_0x5ccb94(0x1bd)+_0x4b96d9,'status':_0x5ccb94(0x170),'message':'Deleted\x20sheet\x20\x27'+_0x4b96d9+'\x27'});}catch(_0x474bab){_0x344407[_0x5ccb94(0x333)]({'operation':_0x5ccb94(0x1bd)+_0x4b96d9,'status':'fail','message':_0x5ccb94(0x41c)+_0x4b96d9+_0x5ccb94(0x1eb)+(_0x474bab instanceof Error?_0x474bab[_0x5ccb94(0x24e)]:_0x5ccb94(0x17c))});}const _0x59e083=_0x344407[_0x5ccb94(0x40f)](_0x489138=>_0x489138[_0x5ccb94(0x23d)]===_0x5ccb94(0x170))[_0x5ccb94(0x18d)],_0x1091aa=_0x344407['filter'](_0x470534=>_0x470534[_0x5ccb94(0x23d)]===_0x5ccb94(0x2b4))[_0x5ccb94(0x18d)],_0x1e9625=_0x344407['filter'](_0x31f9b3=>_0x31f9b3[_0x5ccb94(0x23d)]===_0x5ccb94(0x2b4))[_0x5ccb94(0x25c)](_0x281b38=>_0x281b38['message']);let _0x2d74ca,_0x6acc82;if(_0x1091aa===0x0)_0x2d74ca=_0x5ccb94(0x170),_0x6acc82=_0x5ccb94(0x202)+_0x59e083+_0x5ccb94(0x375);else _0x59e083>0x0?(_0x2d74ca='success',_0x6acc82=_0x5ccb94(0x202)+_0x59e083+_0x5ccb94(0x27b)+_0x1091aa+'\x20operation(s):\x20'+_0x1e9625[_0x5ccb94(0x1b9)](';\x20')):(_0x2d74ca=_0x5ccb94(0x2b4),_0x6acc82=_0x5ccb94(0x233)+_0x1e9625['join'](';\x20'));return{'status':_0x2d74ca,'message':_0x6acc82,'details':_0x344407};}async function renameSheet(_0x58c83e){const _0x57cfdc=_0x6875c,_0x529930=getUniverAPI();if(!_0x529930)throw new Error(_0x57cfdc(0x14f));const _0x451799=_0x529930[_0x57cfdc(0x157)](),_0x3ccd77=[];for(const _0x32cce9 of _0x58c83e)try{const _0x3b106a=_0x451799[_0x57cfdc(0x391)](_0x32cce9[_0x57cfdc(0x229)]);if(!_0x3b106a)_0x3ccd77[_0x57cfdc(0x333)]({'operation':'rename_sheet:\x20'+_0x32cce9['old_name']+_0x57cfdc(0x1ba)+_0x32cce9[_0x57cfdc(0x25a)],'status':'fail','message':_0x57cfdc(0x398)+_0x32cce9[_0x57cfdc(0x229)]+_0x57cfdc(0x3cd)});else{const _0x4d42f5=_0x451799['getSheetByName'](_0x32cce9[_0x57cfdc(0x25a)]);if(_0x4d42f5&&_0x4d42f5!==_0x3b106a)_0x3ccd77[_0x57cfdc(0x333)]({'operation':'rename_sheet:\x20'+_0x32cce9[_0x57cfdc(0x229)]+_0x57cfdc(0x1ba)+_0x32cce9[_0x57cfdc(0x25a)],'status':_0x57cfdc(0x2b4),'message':_0x57cfdc(0x312)+_0x32cce9[_0x57cfdc(0x25a)]+_0x57cfdc(0x3c9)});else _0x3b106a[_0x57cfdc(0x17a)](_0x32cce9[_0x57cfdc(0x25a)]),_0x3ccd77[_0x57cfdc(0x333)]({'operation':'rename_sheet:\x20'+_0x32cce9['old_name']+'\x20->\x20'+_0x32cce9['new_name'],'status':_0x57cfdc(0x170),'message':_0x57cfdc(0x2e3)+_0x32cce9[_0x57cfdc(0x229)]+_0x57cfdc(0x2a0)+_0x32cce9[_0x57cfdc(0x25a)]+'\x27'});}}catch(_0x239888){_0x3ccd77[_0x57cfdc(0x333)]({'operation':_0x57cfdc(0x22c)+_0x32cce9[_0x57cfdc(0x229)]+_0x57cfdc(0x1ba)+_0x32cce9['new_name'],'status':_0x57cfdc(0x2b4),'message':_0x57cfdc(0x2c8)+(_0x239888 instanceof Error?_0x239888[_0x57cfdc(0x24e)]:'Unknown\x20error')});}const _0x543b9e=_0x3ccd77['filter'](_0xacc35e=>_0xacc35e[_0x57cfdc(0x23d)]===_0x57cfdc(0x170))[_0x57cfdc(0x18d)],_0x2e4d24=_0x3ccd77['filter'](_0x6d8b14=>_0x6d8b14['status']===_0x57cfdc(0x2b4))['length'],_0x34ca6a=_0x3ccd77['filter'](_0x5ed22e=>_0x5ed22e[_0x57cfdc(0x23d)]===_0x57cfdc(0x2b4))[_0x57cfdc(0x25c)](_0x1a55c7=>_0x1a55c7[_0x57cfdc(0x24e)]);let _0x19870b,_0x17b100;if(_0x2e4d24===0x0)_0x19870b=_0x57cfdc(0x170),_0x17b100=_0x57cfdc(0x1de)+_0x543b9e+'\x20sheet(s)\x20successfully.';else _0x543b9e>0x0?(_0x19870b=_0x57cfdc(0x170),_0x17b100=_0x57cfdc(0x1de)+_0x543b9e+_0x57cfdc(0x27b)+_0x2e4d24+_0x57cfdc(0x129)+_0x34ca6a[_0x57cfdc(0x1b9)](';\x20')):(_0x19870b=_0x57cfdc(0x2b4),_0x17b100='Failed\x20to\x20rename\x20sheets:\x20'+_0x34ca6a[_0x57cfdc(0x1b9)](';\x20'));return{'status':_0x19870b,'message':_0x17b100,'details':_0x3ccd77};}function _0x4e06(_0x4aa057,_0x43c9d7){_0x4aa057=_0x4aa057-0x123;const _0x4cf39d=_0x4cf3();let _0x4e06c9=_0x4cf39d[_0x4aa057];return _0x4e06c9;}async function activateSheet(_0x49e721){const _0x527447=_0x6875c,_0x429797=getUniverAPI();if(!_0x429797)throw new Error(_0x527447(0x14f));return _0x429797[_0x527447(0x157)]()[_0x527447(0x391)](_0x49e721)[_0x527447(0x3b1)](),'Activated\x20sheet\x20\x27'+_0x49e721+'\x27';}async function moveSheet(_0x4bceb0,_0x263ee4){const _0x373e99=_0x6875c,_0x1ae20d=getUniverAPI();if(!_0x1ae20d)throw new Error(_0x373e99(0x14f));const _0x38d433=ensureInt(_0x263ee4,'to_index'),_0x5168e9=_0x1ae20d[_0x373e99(0x157)]();return _0x5168e9[_0x373e99(0x285)](_0x5168e9[_0x373e99(0x391)](_0x4bceb0),_0x38d433),_0x373e99(0x2ab)+_0x4bceb0+_0x373e99(0x200)+_0x38d433;}async function setSheetDisplayStatus(_0x5ca47a){const _0x28a8c6=_0x6875c,_0xa2a582=getUniverAPI();if(!_0xa2a582)throw new Error(_0x28a8c6(0x14f));const _0x4db8e8=_0xa2a582[_0x28a8c6(0x157)](),_0x2d6b73=[];for(const _0x178dbe of _0x5ca47a)try{const _0x2eb708=_0x4db8e8[_0x28a8c6(0x391)](_0x178dbe[_0x28a8c6(0x2e7)]);if(!_0x2eb708)_0x2d6b73['push']({'operation':_0x28a8c6(0x3a5)+_0x178dbe[_0x28a8c6(0x2e7)]+_0x28a8c6(0x1ba)+(_0x178dbe['visible']?_0x28a8c6(0x2c1):'hidden'),'status':_0x28a8c6(0x2b4),'message':'Sheet\x20\x27'+_0x178dbe[_0x28a8c6(0x2e7)]+_0x28a8c6(0x3cd)});else{if(_0x178dbe['visible'])_0x2eb708[_0x28a8c6(0x330)]();else _0x2eb708['hideSheet']();_0x2d6b73['push']({'operation':_0x28a8c6(0x3a5)+_0x178dbe[_0x28a8c6(0x2e7)]+_0x28a8c6(0x1ba)+(_0x178dbe[_0x28a8c6(0x2c1)]?'visible':'hidden'),'status':_0x28a8c6(0x170),'message':(_0x178dbe[_0x28a8c6(0x2c1)]?'Shown':'Hidden')+_0x28a8c6(0x2bd)+_0x178dbe[_0x28a8c6(0x2e7)]+'\x27'});}}catch(_0x2fef5b){_0x2d6b73[_0x28a8c6(0x333)]({'operation':_0x28a8c6(0x3a5)+_0x178dbe[_0x28a8c6(0x2e7)]+_0x28a8c6(0x1ba)+(_0x178dbe[_0x28a8c6(0x2c1)]?_0x28a8c6(0x2c1):_0x28a8c6(0x1f2)),'status':_0x28a8c6(0x2b4),'message':_0x28a8c6(0x218)+_0x178dbe['sheet_name']+_0x28a8c6(0x1eb)+(_0x2fef5b instanceof Error?_0x2fef5b['message']:_0x28a8c6(0x17c))});}const _0x5649ec=_0x2d6b73['filter'](_0x1fc676=>_0x1fc676[_0x28a8c6(0x23d)]===_0x28a8c6(0x170))[_0x28a8c6(0x18d)],_0x98b711=_0x2d6b73[_0x28a8c6(0x40f)](_0x41dfed=>_0x41dfed['status']===_0x28a8c6(0x2b4))[_0x28a8c6(0x18d)],_0x1af831=_0x2d6b73[_0x28a8c6(0x40f)](_0x3f885c=>_0x3f885c[_0x28a8c6(0x23d)]===_0x28a8c6(0x2b4))[_0x28a8c6(0x25c)](_0x4859a4=>_0x4859a4['message']);let _0x7016e4,_0x26e0a3;if(_0x98b711===0x0)_0x7016e4=_0x28a8c6(0x170),_0x26e0a3=_0x28a8c6(0x1bf)+_0x5649ec+_0x28a8c6(0x375);else _0x5649ec>0x0?(_0x7016e4=_0x28a8c6(0x170),_0x26e0a3=_0x28a8c6(0x1bf)+_0x5649ec+_0x28a8c6(0x27b)+_0x98b711+_0x28a8c6(0x123)+_0x1af831[_0x28a8c6(0x1b9)](';\x20')):(_0x7016e4=_0x28a8c6(0x2b4),_0x26e0a3=_0x28a8c6(0x286)+_0x1af831[_0x28a8c6(0x1b9)](';\x20'));return{'status':_0x7016e4,'message':_0x26e0a3,'details':_0x2d6b73};}async function getSheets(){const _0x3a315a=_0x6875c,_0x48bcc0=getUniverAPI();if(!_0x48bcc0)throw new Error(_0x3a315a(0x14f));return _0x48bcc0[_0x3a315a(0x157)]()[_0x3a315a(0x14b)]()[_0x3a315a(0x25c)](_0x1f96ec=>({'name':_0x1f96ec[_0x3a315a(0x2a7)]()}));}async function getActiveUnitId(){const _0x738132=_0x6875c,_0x10e88c=getUniverAPI();if(!_0x10e88c)throw new Error(_0x738132(0x14f));return _0x10e88c['getActiveWorkbook']()[_0x738132(0x347)]();}const sheetManagementTools=[{'name':_0x6875c(0x37c),'description':'Batch\x20create\x20multiple\x20new\x20worksheets.\x20Efficiently\x20creates\x20multiple\x20sheets\x20in\x20one\x20operation.','inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_names':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](_univerjs_pro_mcp['z']['string']())[_0x6875c(0x210)]('List\x20of\x20names\x20for\x20the\x20new\x20worksheets\x20to\x20create')}),'execute':async _0x48e7f8=>createSheet(_0x48e7f8['sheet_names'])},{'name':_0x6875c(0x23a),'description':'Batch\x20delete\x20multiple\x20worksheets\x20by\x20names.\x20Efficiently\x20deletes\x20multiple\x20sheets\x20in\x20one\x20operation.','inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_names':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](_univerjs_pro_mcp['z'][_0x6875c(0x368)]())[_0x6875c(0x210)](_0x6875c(0x32d))}),'execute':async _0x5909d9=>deleteSheet(_0x5909d9[_0x6875c(0x1d3)])},{'name':_0x6875c(0x3f9),'description':_0x6875c(0x311),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'operations':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](renameSheetOperationSchema)[_0x6875c(0x210)](_0x6875c(0x15a))}),'execute':async _0x329a58=>renameSheet(_0x329a58['operations'])},{'name':_0x6875c(0x41a),'description':_0x6875c(0x3ad),'inputSchema':_univerjs_pro_mcp['z']['object']({'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x3d6))}),'execute':async _0x238065=>activateSheet(_0x238065[_0x6875c(0x2e7)])},{'name':_0x6875c(0x13d),'description':'Move\x20a\x20worksheet\x20to\x20the\x20specified\x20index\x20(does\x20not\x20activate\x20the\x20sheet).','inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'sheet_name':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x3b4)),'to_index':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x368)](),_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()])[_0x6875c(0x210)]('Target\x20index\x20(0-based).\x20Can\x20be\x20integer\x20or\x20string\x20representation\x20of\x20integer')}),'execute':async _0x319f13=>moveSheet(_0x319f13[_0x6875c(0x2e7)],_0x319f13[_0x6875c(0x40e)])},{'name':_0x6875c(0x161),'description':'Batch\x20show\x20or\x20hide\x20multiple\x20worksheets.\x20Efficiently\x20sets\x20display\x20status\x20for\x20multiple\x20sheets\x20in\x20one\x20operation.','inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'operations':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](sheetDisplayStatusOperationSchema)[_0x6875c(0x210)](_0x6875c(0x214))}),'execute':async _0x33425f=>setSheetDisplayStatus(_0x33425f[_0x6875c(0x41d)])},{'name':_0x6875c(0x144),'description':'Get\x20all\x20sheets\x20(name\x20and\x20ID)\x20in\x20the\x20current\x20workbook.','inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({}),'execute':async()=>getSheets()},{'name':'get_active_unit_id','description':_0x6875c(0x162),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({}),'execute':async()=>getActiveUnitId()}];function getLintErrors(_0xaaf5dc,_0x549081){const _0x317a1d=_0x6875c,_0x1079bc={'total_errors':0x0},_0x21527e=[];_0xaaf5dc['forEach'](_0x2eb337=>{const _0x40698f=_0x4e06;_0x21527e['push']({'type':_0x40698f(0x1d0),'sheetName':_0x2eb337['sheetName'],'row':_0x2eb337[_0x40698f(0x139)],'column':_0x2eb337['column'],'description':_0x2eb337['errorType']+'\x20|\x20'+getFormulaErrorDescription(_0x2eb337[_0x40698f(0x3c2)])});}),_0x549081[_0x317a1d(0x2f8)](_0x46dc41=>{const _0x2ad796=_0x317a1d;_0x21527e['push']({'type':_0x2ad796(0x412),'sheetName':_0x46dc41[_0x2ad796(0x3be)],'row':_0x46dc41[_0x2ad796(0x139)],'column':_0x46dc41[_0x2ad796(0x2ed)],'description':_0x2ad796(0x416)});});if(_0x21527e[_0x317a1d(0x18d)]===0x0)return _0x1079bc[_0x317a1d(0x390)]='No\x20errors\x20found.',yaml[_0x317a1d(0x30c)][_0x317a1d(0x2f2)](_0x1079bc);_0x21527e[_0x317a1d(0x1cc)]((_0x41fd50,_0x76905c)=>{const _0x20bf21=_0x317a1d;if(_0x41fd50['sheetName']!==_0x76905c[_0x20bf21(0x3be)])return _0x41fd50['sheetName'][_0x20bf21(0x2db)](_0x76905c['sheetName']);if(_0x41fd50[_0x20bf21(0x139)]!==_0x76905c[_0x20bf21(0x139)])return _0x41fd50['row']-_0x76905c[_0x20bf21(0x139)];return _0x41fd50[_0x20bf21(0x2ed)]-_0x76905c[_0x20bf21(0x2ed)];});const _0x58b789=_0x21527e[_0x317a1d(0x12b)](0x0,0xc8),_0x384332=new Map();_0x58b789[_0x317a1d(0x2f8)](_0xeed7fd=>{const _0x3086e8=_0x317a1d,_0x365a45=getCellAddressSimple(_0xeed7fd[_0x3086e8(0x139)],_0xeed7fd['column']);if(!_0x384332[_0x3086e8(0x3bd)](_0xeed7fd[_0x3086e8(0x3be)]))_0x384332['set'](_0xeed7fd[_0x3086e8(0x3be)],{});_0x384332['get'](_0xeed7fd[_0x3086e8(0x3be)])[_0x365a45]=_0xeed7fd[_0x3086e8(0x352)];});const _0x473b92=Array['from'](_0x384332['entries']())[_0x317a1d(0x25c)](([_0x222b92,_0x15b12c])=>({'sheet':_0x222b92,'cells':_0x15b12c})),_0x13ff11={'total_errors':_0x21527e[_0x317a1d(0x18d)],'errors':_0x473b92};return _0x21527e[_0x317a1d(0x18d)]>0xc8&&(_0x13ff11[_0x317a1d(0x40c)]=!![],_0x13ff11[_0x317a1d(0x390)]=_0x317a1d(0x336)),yaml[_0x317a1d(0x30c)][_0x317a1d(0x2f2)](_0x13ff11);}function getFormulaErrorDescription(_0xb4db3e){const _0x1481e9=_0x6875c;return{'#DIV/0!':_0x1481e9(0x2e4),'#NAME?':_0x1481e9(0x2e2),'#VALUE!':_0x1481e9(0x3d1),'#REF!':_0x1481e9(0x36d),'#NUM!':'Invalid\x20numeric\x20value\x20error','#N/A':_0x1481e9(0x2cd),'#SPILL!':_0x1481e9(0x39e),'#CALC!':'Calculation\x20error','#ERROR!':_0x1481e9(0x305),'#GETTING_DATA':'Connecting\x20to\x20remote\x20data\x20source','#NULL!':_0x1481e9(0x21c)}[_0xb4db3e]||_0x1481e9(0x174);}function getCellAddressSimple(_0x27945a,_0x69edda){return''+colIdxToExcel$1(_0x69edda)+(_0x27945a+0x1);}function colIdxToExcel$1(_0x20938d){const _0x4a7c81=_0x6875c;let _0x1f5c1f='';_0x20938d+=0x1;while(_0x20938d>0x0){const _0x1cb7bd=(_0x20938d-0x1)%0x1a;_0x20938d=Math[_0x4a7c81(0x2ee)]((_0x20938d-0x1)/0x1a),_0x1f5c1f=String['fromCharCode'](0x41+_0x1cb7bd)+_0x1f5c1f;}return _0x1f5c1f;}async function getWorkbookLintErrors(_0x3eb56f){const _0xc9400d=_0x6875c;if(!_0x3eb56f)throw new Error(_0xc9400d(0x14f));try{const _0x1d56d0=_0x3eb56f[_0xc9400d(0x157)]();if(!_0x1d56d0)return _0xc9400d(0x1fb);const _0x46f5fd=_0x1d56d0[_0xc9400d(0x1a8)](),_0x47daf3=await _0x1d56d0[_0xc9400d(0x34d)]();return getLintErrors(_0x46f5fd||[],_0x47daf3||[]);}catch(_0x3a780c){return'Error\x20getting\x20lint\x20errors:\x20'+_0x3a780c;}}async function extractFormulas(_0xa2583f,_0x3d8977=[]){const _0x3db8f2=_0x6875c;if(!_0xa2583f)throw new Error(_0x3db8f2(0x14f));try{const _0x519509=_0xa2583f[_0x3db8f2(0x157)]();if(!_0x519509)return _0x3db8f2(0x1fb);if(_0x3d8977[_0x3db8f2(0x18d)]===0x0)_0x3d8977=[_0x519509['getActiveSheet']()[_0x3db8f2(0x2a7)]()];const _0x5f2dcd=[];for(const _0x48215b of _0x3d8977){const _0x30a45b=_0x519509[_0x3db8f2(0x391)](_0x48215b);if(!_0x30a45b){_0x5f2dcd[_0x3db8f2(0x333)]({'sheetName':_0x48215b,'note':_0x3db8f2(0x252)});continue;}const _0x36b209=await _0x30a45b[_0x3db8f2(0x290)]();if(_0x36b209[_0x3db8f2(0x18d)]===0x0){_0x5f2dcd[_0x3db8f2(0x333)]({'sheetName':_0x48215b,'note':_0x3db8f2(0x2d5)});continue;}_0x5f2dcd[_0x3db8f2(0x333)]({'sheetName':_0x48215b,'total':_0x36b209[_0x3db8f2(0x18d)],'formulas':_0x36b209});}return yaml[_0x3db8f2(0x30c)][_0x3db8f2(0x2f2)](_0x5f2dcd);}catch(_0xd4c1d7){return _0x3db8f2(0x125)+_0xd4c1d7;}}function getStyleHash(_0x1e4096){const _0x57ee7f=_0x6875c;var _0x5e2424,_0x2419cf,_0x4ce2f4;if(!_0x1e4096)return'';const _0x369560=[];if(_0x1e4096['fs']!==void 0x0)_0x369560[_0x57ee7f(0x333)]('fs:'+_0x1e4096['fs']);if(_0x1e4096['it']!==void 0x0)_0x369560[_0x57ee7f(0x333)]('it:'+_0x1e4096['it']);if(_0x1e4096['bl']!==void 0x0)_0x369560[_0x57ee7f(0x333)](_0x57ee7f(0x22f)+_0x1e4096['bl']);if((_0x5e2424=_0x1e4096['bg'])===null||_0x5e2424===void 0x0?void 0x0:_0x5e2424['rgb'])_0x369560['push'](_0x57ee7f(0x12c)+_0x1e4096['bg'][_0x57ee7f(0x3a6)]);if((_0x2419cf=_0x1e4096['cl'])===null||_0x2419cf===void 0x0?void 0x0:_0x2419cf[_0x57ee7f(0x3a6)])_0x369560[_0x57ee7f(0x333)](_0x57ee7f(0x2f4)+_0x1e4096['cl'][_0x57ee7f(0x3a6)]);if((_0x4ce2f4=_0x1e4096['n'])===null||_0x4ce2f4===void 0x0?void 0x0:_0x4ce2f4[_0x57ee7f(0x220)])_0x369560[_0x57ee7f(0x333)]('n:'+_0x1e4096['n']['pattern']);return _0x369560[_0x57ee7f(0x18d)]===0x0?'':_0x369560['join']('|');}function getStyleHash2(_0x3c8540,_0xa7e7e8){const _0x19353d=_0x6875c,_0x11b673=getStyleHash(_0x3c8540);if(!_0x11b673)return'';if(_0xa7e7e8&&_0xa7e7e8[_0x19353d(0x3bd)](_0x11b673))return _0xa7e7e8[_0x19353d(0x2b8)](_0x11b673);let _0x3185c8=0x0;for(let _0x334512=0x0;_0x334512<_0x11b673[_0x19353d(0x18d)];_0x334512++){const _0x352d4b=_0x11b673['charCodeAt'](_0x334512);_0x3185c8=(_0x3185c8<<0x5)-_0x3185c8+_0x352d4b,_0x3185c8=_0x3185c8&_0x3185c8;}const _0x1a549a=_0x19353d(0x3c7);function _0x2e6114(_0x4caa3b){const _0x10dd41=_0x19353d;if(_0x4caa3b===0x0)return'0';let _0x205c9e='',_0x1eec1f=Math[_0x10dd41(0x3ec)](_0x4caa3b);while(_0x1eec1f>0x0){_0x205c9e=_0x1a549a[_0x1eec1f%0x3e]+_0x205c9e,_0x1eec1f=Math[_0x10dd41(0x2ee)](_0x1eec1f/0x3e);}return _0x205c9e;}let _0x1e4836=_0x2e6114(_0x3185c8)[_0x19353d(0x12b)](0x0,0x7)[_0x19353d(0x3df)](0x7,'0');if(_0xa7e7e8){let _0x5889a2=0x1;const _0x2c5de7=_0x1e4836,_0x3d6806=new Set(_0xa7e7e8[_0x19353d(0x145)]());while(_0x3d6806[_0x19353d(0x3bd)](_0x1e4836)){_0x1e4836=_0x2c5de7[_0x19353d(0x12b)](0x0,0x6)+_0x5889a2%0xa,_0x5889a2++;if(_0x5889a2>0x3e8){_0x1e4836=_0x2c5de7['slice'](0x0,0x6)+'x';break;}}_0xa7e7e8[_0x19353d(0x33b)](_0x11b673,_0x1e4836);}return _0x1e4836;}const cellDimensionRequestSchema=_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'range':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)]('A1\x20notation\x20(e.g.,\x20\x22Sheet1!A:C\x22,\x20\x22A:A\x22,\x20\x221:5\x22)'),'width':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]()[_0x6875c(0x210)](_0x6875c(0x28d)),_univerjs_pro_mcp['z'][_0x6875c(0x26f)](_univerjs_pro_mcp['z']['number']())[_0x6875c(0x210)](_0x6875c(0x33d))])['optional']()[_0x6875c(0x210)](_0x6875c(0x28d)),'height':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z']['number']()[_0x6875c(0x210)](_0x6875c(0x2e8)),_univerjs_pro_mcp['z'][_0x6875c(0x26f)](_univerjs_pro_mcp['z'][_0x6875c(0x2d0)]())[_0x6875c(0x210)](_0x6875c(0x41b))])['optional']()[_0x6875c(0x210)](_0x6875c(0x2e8))});async function takeScreenshotWithHtml2Canvas(_0x2a7e1b){const _0x1af7c4=_0x6875c;try{return(await(0x0,html2canvas_pro[_0x1af7c4(0x30c)])(_0x2a7e1b,{'useCORS':!![],'logging':![],'backgroundColor':null}))[_0x1af7c4(0x34a)]('image/png')[_0x1af7c4(0x29a)](',')[0x1];}catch(_0x3ae2b6){throw new Error('Screenshot\x20failed:\x20'+_0x3ae2b6);}}function isNodeRuntime(){const _0x59c6ce=_0x6875c;var _0x2d88e2;return typeof window===_0x59c6ce(0x32a)&&typeof process!==_0x59c6ce(0x32a)&&!!((_0x2d88e2=process[_0x59c6ce(0x329)])===null||_0x2d88e2===void 0x0?void 0x0:_0x2d88e2[_0x59c6ce(0x1b2)]);}function colIdxToExcel(_0x44f89e){const _0x4ceee=_0x6875c;let _0x2a290a='';_0x44f89e+=0x1;while(_0x44f89e>0x0){const _0xf38330=(_0x44f89e-0x1)%0x1a;_0x44f89e=Math['floor']((_0x44f89e-0x1)/0x1a),_0x2a290a=String[_0x4ceee(0x337)](0x41+_0xf38330)+_0x2a290a;}return _0x2a290a;}async function searchCells(_0x5818df,_0x4868cc){const _0x3ef01b=_0x6875c,_0xc99c44=getUniverAPI();if(!_0xc99c44)throw new Error(_0x3ef01b(0x14f));const _0x620d37=await _0xc99c44[_0x3ef01b(0x12a)](_0x5818df);_0x620d37[_0x3ef01b(0x2cc)][_0x3ef01b(0x1b8)]({'findScope':'unit','findBy':_0x4868cc}),await _0x620d37[_0x3ef01b(0x1a0)]();const _0x22e124=_0x620d37[_0x3ef01b(0x313)]();return{'total':_0x22e124[_0x3ef01b(0x18d)],'results':_0x22e124['slice'](0x0,0x32)['map'](_0x14826b=>{const _0x46a00f=_0x3ef01b;let _0xb79bc=_0x14826b[_0x46a00f(0x410)]();if(typeof _0xb79bc===_0x46a00f(0x368)&&_0xb79bc[_0x46a00f(0x18d)]>0xc8)_0xb79bc=_0xb79bc[_0x46a00f(0x12b)](0x0,0xc8)+_0x46a00f(0x25b);return{'range_a1':_0x14826b[_0x46a00f(0x2a8)](!![]),'value':_0xb79bc,'formula':_0x14826b[_0x46a00f(0x28a)]()};})};}async function autoFill(_0x4530b5,_0x197a1b){const _0x4c52f0=_0x6875c,_0x5c013e=getUniverAPI();if(!_0x5c013e)throw new Error(_0x4c52f0(0x14f));const _0x462b09=_0x5c013e['getActiveWorkbook']()['getActiveSheet'](),_0x5aebbd=_0x462b09[_0x4c52f0(0x3c3)](_0x4530b5);_0x462b09['setActiveRange'](_0x5aebbd);const _0x2dc399=_0x5aebbd[_0x4c52f0(0x3c3)](),_0x3813d6=_0x462b09[_0x4c52f0(0x3c3)](_0x197a1b),_0x1a842e=_0x3813d6[_0x4c52f0(0x3c3)](),_0x39e8f5={'startRow':_0x2dc399[_0x4c52f0(0x2da)],'startColumn':_0x2dc399[_0x4c52f0(0x400)],'endRow':_0x2dc399['endRow'],'endColumn':_0x2dc399[_0x4c52f0(0x2e9)]},_0x7b60cc={'startRow':_0x1a842e[_0x4c52f0(0x2da)],'startColumn':_0x1a842e[_0x4c52f0(0x400)],'endRow':_0x1a842e['endRow'],'endColumn':_0x1a842e[_0x4c52f0(0x2e9)]};return _0x5c013e['executeCommand'](_0x4c52f0(0x38f),{'sourceRange':_0x39e8f5,'targetRange':_0x7b60cc}),_0x462b09[_0x4c52f0(0x40a)](_0x3813d6),_0x4c52f0(0x2dd)+_0x4530b5+'\x20to\x20'+_0x197a1b;}async function formatBrush(_0x418511,_0x236721){const _0x2ba434=_0x6875c,_0x5c02a9=getUniverAPI();if(!_0x5c02a9)throw new Error(_0x2ba434(0x14f));const _0x37bb50=_0x5c02a9[_0x2ba434(0x157)](),_0x1f5eb7=_0x37bb50[_0x2ba434(0x1fc)](),_0x353703=_0x1f5eb7['getRange'](_0x418511);_0x1f5eb7[_0x2ba434(0x40a)](_0x353703),_0x5c02a9[_0x2ba434(0x3cb)](_0x2ba434(0x245));const _0x1fb708=_0x1f5eb7[_0x2ba434(0x3c3)](_0x236721),_0x4fe073=_0x1fb708['getRange'](),_0x5b5e60=_0x37bb50['getId'](),_0x2925b9=_0x1f5eb7['getSheetId']();return _0x5c02a9['executeCommand'](_0x2ba434(0x382),{'unitId':_0x5b5e60,'subUnitId':_0x2925b9,'range':{'startRow':_0x4fe073[_0x2ba434(0x2da)],'startColumn':_0x4fe073[_0x2ba434(0x400)],'endRow':_0x4fe073[_0x2ba434(0x1d2)],'endColumn':_0x4fe073['endColumn']}}),_0x1f5eb7[_0x2ba434(0x40a)](_0x1fb708),'Format\x20brush\x20copied\x20style\x20from\x20'+_0x418511+_0x2ba434(0x414)+_0x236721;}async function setCellDimensions(_0x5d52cd){const _0x19a7d1=_0x6875c,_0x5bf642=getUniverAPI();if(!_0x5bf642)throw new Error(_0x19a7d1(0x14f));const _0x2cfd80=getCommandService();if(!_0x2cfd80)throw new Error(_0x19a7d1(0x203));const _0x1ba3ad=_0x5bf642[_0x19a7d1(0x157)]();if(!_0x1ba3ad)throw new Error(_0x19a7d1(0x1fb));const _0x3cb311=_0x1ba3ad[_0x19a7d1(0x347)](),_0x1e5d11=_0x1ba3ad['getActiveSheet']();if(!_0x1e5d11)throw new Error(_0x19a7d1(0x258));let _0x2caa0f=0x0;const _0x458b2a=[];for(const _0x263bb4 of _0x5d52cd)try{const _0x584cd1=_0x263bb4['range'][_0x19a7d1(0x29a)](',')[_0x19a7d1(0x25c)](_0x11ead2=>_0x11ead2['trim']())[_0x19a7d1(0x40f)](Boolean);for(const _0x388d08 of _0x584cd1){let _0x485135='',_0x49434b=_0x388d08;if(_0x388d08[_0x19a7d1(0x21e)]('!')){const _0x4058ca=_0x388d08[_0x19a7d1(0x29a)]('!');_0x485135=_0x4058ca[0x0],_0x49434b=_0x4058ca[0x1];}const _0x19b501=_0x485135?_0x1ba3ad[_0x19a7d1(0x391)](_0x485135):_0x1e5d11;if(!_0x19b501)throw new Error(_0x19a7d1(0x1bc)+(_0x485135||'active')+'\x22\x20not\x20found');const _0x2b5024=_0x19b501[_0x19a7d1(0x3b7)](),{type:_0x3fa06,isValid:_0x4cf01e}=parseRangeType(_0x49434b);if(!_0x4cf01e)throw new Error('Invalid\x20range\x20format:\x20'+_0x388d08);if(_0x263bb4[_0x19a7d1(0x3ee)]!==void 0x0&&(_0x3fa06===_0x19a7d1(0x2ed)||_0x3fa06===_0x19a7d1(0x13c)))await setColumnWidthInternal(_0x2cfd80,_0x3cb311,_0x2b5024,_0x49434b,_0x263bb4[_0x19a7d1(0x3ee)],_0x19b501);if(_0x263bb4['height']!==void 0x0&&(_0x3fa06===_0x19a7d1(0x139)||_0x3fa06===_0x19a7d1(0x13c)))await setRowHeightInternal(_0x2cfd80,_0x3cb311,_0x2b5024,_0x49434b,_0x263bb4['height'],_0x19b501);}_0x2caa0f++;}catch(_0x1203d6){_0x458b2a[_0x19a7d1(0x333)](_0x19a7d1(0x151)+JSON['stringify'](_0x263bb4)+':\x20'+((_0x1203d6===null||_0x1203d6===void 0x0?void 0x0:_0x1203d6[_0x19a7d1(0x24e)])||String(_0x1203d6)));}if(_0x458b2a[_0x19a7d1(0x18d)]===0x0)return _0x19a7d1(0x249)+_0x2caa0f+'\x20dimension\x20request(s)';else{if(_0x2caa0f>0x0)return _0x19a7d1(0x18a)+_0x2caa0f+_0x19a7d1(0x339)+_0x458b2a[_0x19a7d1(0x18d)]+_0x19a7d1(0x2b7)+_0x458b2a[_0x19a7d1(0x1b9)](';\x20');else throw new Error(_0x19a7d1(0x37d)+_0x458b2a[_0x19a7d1(0x1b9)](';\x20'));}}async function setColumnWidthInternal(_0x4f7cd6,_0x1191a1,_0x4a7647,_0x96c36f,_0x50162e,_0x42d07e){const _0x55e405=_0x6875c;let _0x33191b,_0x388d01;if(/^[A-Z]+:[A-Z]+$/['test'](_0x96c36f)){const [_0x2ff5d9,_0x25ce45]=_0x96c36f[_0x55e405(0x29a)](':');_0x33191b=columnLetterToNumber(_0x2ff5d9),_0x388d01=columnLetterToNumber(_0x25ce45);}else{const _0x1eae16=_0x42d07e['getRange'](_0x96c36f)[_0x55e405(0x3c3)]();_0x33191b=_0x1eae16['startColumn'],_0x388d01=_0x1eae16[_0x55e405(0x2e9)];}const _0x42aa1d=_0x388d01-_0x33191b+0x1,_0x4d3c3a=_0x42d07e[_0x55e405(0x1f7)]();if(Array[_0x55e405(0x2fc)](_0x50162e)){if(_0x50162e['length']!==_0x42aa1d)throw new Error(_0x55e405(0x253)+_0x50162e[_0x55e405(0x18d)]+_0x55e405(0x1c3)+_0x42aa1d+')');for(let _0x5ecf79=0x0;_0x5ecf79<_0x42aa1d;_0x5ecf79++)_0x4f7cd6[_0x55e405(0x185)](_univerjs_sheets[_0x55e405(0x256)]['id'],{'unitId':_0x1191a1,'subUnitId':_0x4a7647,'ranges':[{'startColumn':_0x33191b+_0x5ecf79,'endColumn':_0x33191b+_0x5ecf79,'startRow':0x0,'endRow':_0x4d3c3a-0x1}],'value':_0x50162e[_0x5ecf79]});}else _0x4f7cd6['syncExecuteCommand'](_univerjs_sheets[_0x55e405(0x256)]['id'],{'unitId':_0x1191a1,'subUnitId':_0x4a7647,'ranges':[{'startColumn':_0x33191b,'endColumn':_0x388d01,'startRow':0x0,'endRow':_0x4d3c3a-0x1}],'value':_0x50162e});}async function setRowHeightInternal(_0x3a4861,_0x283aaf,_0x150bf5,_0x56580b,_0x4a4cb5,_0x128057){const _0x355e13=_0x6875c;let _0x539a62,_0x19d365;if(/^\d+:\d+$/[_0x355e13(0x3e3)](_0x56580b)){const [_0x5bbf10,_0x3459f0]=_0x56580b[_0x355e13(0x29a)](':');_0x539a62=Number[_0x355e13(0x314)](_0x5bbf10)-0x1,_0x19d365=Number[_0x355e13(0x314)](_0x3459f0)-0x1;}else{const _0x1f4f02=_0x128057[_0x355e13(0x3c3)](_0x56580b)['getRange']();_0x539a62=_0x1f4f02[_0x355e13(0x2da)],_0x19d365=_0x1f4f02[_0x355e13(0x1d2)];}const _0x87950a=_0x19d365-_0x539a62+0x1,_0x53573a=_0x128057['getMaxColumns']();if(Array[_0x355e13(0x2fc)](_0x4a4cb5)){if(_0x4a4cb5[_0x355e13(0x18d)]!==_0x87950a)throw new Error(_0x355e13(0x28c)+_0x4a4cb5['length']+_0x355e13(0x15f)+_0x87950a+')');for(let _0x1ecf07=0x0;_0x1ecf07<_0x87950a;_0x1ecf07++)await _0x3a4861[_0x355e13(0x185)](_univerjs_sheets[_0x355e13(0x20f)]['id'],{'unitId':_0x283aaf,'subUnitId':_0x150bf5,'ranges':[{'startRow':_0x539a62+_0x1ecf07,'endRow':_0x539a62+_0x1ecf07,'startColumn':0x0,'endColumn':_0x53573a-0x1}],'value':_0x4a4cb5[_0x1ecf07]});}else await _0x3a4861[_0x355e13(0x185)](_univerjs_sheets[_0x355e13(0x20f)]['id'],{'unitId':_0x283aaf,'subUnitId':_0x150bf5,'ranges':[{'startRow':_0x539a62,'endRow':_0x19d365,'startColumn':0x0,'endColumn':_0x53573a-0x1}],'value':_0x4a4cb5});}async function getActivityStatus(_0x5b4de0=![]){const _0x4e4f9e=_0x6875c,_0x4cf827=getUniverAPI();if(!_0x4cf827)throw new Error(_0x4e4f9e(0x14f));const _0x225eb4=_0x4cf827[_0x4e4f9e(0x157)]();if(!_0x225eb4)throw new Error(_0x4e4f9e(0x1fb));const _0xf7d2e8=_0x225eb4[_0x4e4f9e(0x14b)](),_0x3155ab=_0xf7d2e8['length'],_0x75d40c=_0xf7d2e8['slice'](0x0,0x32)[_0x4e4f9e(0x25c)](_0xceb264=>_0xceb264['getSheetName']()),_0x4457db=_0x225eb4[_0x4e4f9e(0x1fc)](),_0x7af5a4=_0x4457db[_0x4e4f9e(0x2a7)]();let _0xd0fd51='';if(!isNodeRuntime())try{const _0x360f00=_0x4457db[_0x4e4f9e(0x1b4)]();_0xd0fd51=_0x360f00?_0x4457db[_0x4e4f9e(0x3c3)](_0x360f00[_0x4e4f9e(0x2da)],_0x360f00[_0x4e4f9e(0x400)],_0x360f00['endRow'],_0x360f00['endColumn'])[_0x4e4f9e(0x2a8)]():'';}catch(_0x6f2c2e){console['warn'](_0x4e4f9e(0x332),_0x6f2c2e);}const _0x12ed9b=_0x225eb4[_0x4e4f9e(0x28f)](),_0xb84bd6=_0x12ed9b?_0x12ed9b[_0x4e4f9e(0x2a8)]():'',_0x2800a6=await getWorkbookLintErrors(_0x4cf827),_0x1c9c54=[];_0x1c9c54[_0x4e4f9e(0x333)]({'type':_0x4e4f9e(0x2e1),'text':'Sheet\x20count:\x20'+_0x3155ab+_0x4e4f9e(0x35a)+JSON['stringify'](_0x75d40c)+_0x4e4f9e(0x16f)+_0x7af5a4+_0x4e4f9e(0x1e0)+_0xd0fd51+_0x4e4f9e(0x3d8)+_0xb84bd6+_0x4e4f9e(0x165)+_0x2800a6+_0x4e4f9e(0x38e)});if(_0x5b4de0&&isNodeRuntime())console[_0x4e4f9e(0x187)]('get_activity_status\x20screenshot\x20is\x20ignored\x20in\x20node\x20runtime');if(_0x5b4de0&&!isNodeRuntime())try{const _0x228296=await takeScreenshotWithHtml2Canvas(getContainerElement());_0x1c9c54['push']({'type':'image','data':_0x228296,'mimeType':_0x4e4f9e(0x289)});}catch(_0x19564){console['warn'](_0x4e4f9e(0x279),_0x19564);}return _0x1c9c54;}async function getRangeData(_0xb4c5bc,_0x44a4fa=![],_0x164dfd=![]){const _0x434804=_0x6875c,_0x18c6da=getUniverAPI();if(!_0x18c6da)throw new Error(_0x434804(0x14f));let _0x311e4a;if(typeof _0xb4c5bc==='string')_0x311e4a=_0xb4c5bc[_0x434804(0x29a)](',')[_0x434804(0x25c)](_0x3ac84d=>_0x3ac84d[_0x434804(0x1c7)]())[_0x434804(0x40f)](_0x923d7f=>_0x923d7f[_0x434804(0x18d)]>0x0);else{if(Array[_0x434804(0x2fc)](_0xb4c5bc))_0x311e4a=_0xb4c5bc['filter'](_0x5b8f4d=>typeof _0x5b8f4d===_0x434804(0x368)&&_0x5b8f4d['trim']()[_0x434804(0x18d)]>0x0);else throw new TypeError('range_a1\x20must\x20be\x20a\x20string\x20or\x20a\x20list\x20of\x20strings');}const _0xfe6940=[],_0x47de9c=_0x18c6da[_0x434804(0x157)]();if(!_0x47de9c)throw new Error(_0x434804(0x1fb));const _0x14e6ee=_0x47de9c[_0x434804(0x1fc)]();for(const _0xbd638f of _0x311e4a){const _0x31487e=_0x14e6ee[_0x434804(0x3c3)](_0xbd638f),_0x2b7881=_0x31487e[_0x434804(0x34c)](),_0x3c07f9=_0x31487e['getDisplayValues'](),_0x247342=_0x31487e[_0x434804(0x257)](),_0x143147=_0x31487e[_0x434804(0x2f3)](),_0x42bc1c=_0x31487e[_0x434804(0x16b)]();let _0x3715f0=[];const _0x43f16a=new Map();if(_0x164dfd)try{_0x3715f0=_0x31487e['getCellStyles']();}catch(_0x140dbd){console[_0x434804(0x187)]('Failed\x20to\x20get\x20cell\x20styles:',_0x140dbd);}for(let _0x13f039=0x0;_0x13f039<_0x2b7881[_0x434804(0x18d)];_0x13f039++)for(let _0x3eed36=0x0;_0x3eed36<_0x2b7881[_0x13f039]['length'];_0x3eed36++){var _0x23159a;if(!_0x2b7881[_0x13f039][_0x3eed36])continue;_0x2b7881[_0x13f039][_0x3eed36]={'v':_0x3c07f9[_0x13f039]&&_0x3c07f9[_0x13f039][_0x3eed36]!==void 0x0?_0x3c07f9[_0x13f039][_0x3eed36]:(_0x23159a=_0x2b7881[_0x13f039][_0x3eed36])===null||_0x23159a===void 0x0?void 0x0:_0x23159a['v']};if(_0x247342[_0x13f039]&&_0x247342[_0x13f039][_0x3eed36])_0x2b7881[_0x13f039][_0x3eed36]['f']=_0x247342[_0x13f039][_0x3eed36];if(_0x164dfd&&_0x3715f0[_0x13f039]&&_0x3715f0[_0x13f039][_0x3eed36]){var _0x3535f6;const _0x2feff5=((_0x3535f6=_0x3715f0[_0x13f039][_0x3eed36])===null||_0x3535f6===void 0x0?void 0x0:_0x3535f6[_0x434804(0x269)])||_0x3715f0[_0x13f039][_0x3eed36];if(_0x2feff5)_0x2b7881[_0x13f039][_0x3eed36]['c']=getStyleHash2(_0x2feff5,_0x43f16a);}}if(_0x44a4fa)try{const _0xf1639=_0x31487e,_0x5324f0=isNodeRuntime()?_0x434804(0x2c7):_0x434804(0x372),_0x23a2bb=_0x5324f0===_0x434804(0x2c7)?_0x434804(0x372):_0x434804(0x2c7),_0x277a06=_0xf1639[_0x5324f0]||_0xf1639[_0x23a2bb];if(typeof _0x277a06!==_0x434804(0x1f4))throw new Error('Range\x20screenshot\x20API\x20not\x20available');const _0x32faad=await _0x277a06[_0x434804(0x1c2)](_0xf1639,{'includeHeaders':!![]});if(!_0x32faad)throw new Error(_0x434804(0x389));const _0x2e56ee=_0x32faad[_0x434804(0x29a)](',')[0x1];if(_0x2e56ee&&_0x2e56ee[_0x434804(0x18d)]>0x64)_0xfe6940[_0x434804(0x333)]({'type':_0x434804(0x3dc),'data':_0x2e56ee,'mimeType':'image/png'});else _0xfe6940[_0x434804(0x333)]({'type':'text','text':_0x434804(0x27a)+_0xbd638f+_0x434804(0x137)});}catch(_0x281fc4){_0xfe6940[_0x434804(0x333)]({'type':_0x434804(0x2e1),'text':'Failed\x20to\x20get\x20screenshot\x20for\x20range\x20'+_0xbd638f+',\x20error:\x20'+_0x281fc4});}const _0xa0aedb=[_0x434804(0x181)+_0xbd638f];if(_0x164dfd&&_0x43f16a[_0x434804(0x288)]>0x0){_0xa0aedb[_0x434804(0x333)](_0x434804(0x2ea));for(const [_0x5a5a65,_0xb2c1a5]of _0x43f16a[_0x434804(0x360)]())_0xa0aedb[_0x434804(0x333)](_0xb2c1a5+':\x20'+_0x5a5a65);}_0xa0aedb[_0x434804(0x333)](_0x434804(0x2d1));for(let _0x424eea=0x0;_0x424eea<_0x2b7881[_0x434804(0x18d)];_0x424eea++){const _0x514f69=_0x2b7881[_0x424eea],_0x2acc39=[];for(let _0x47c606=0x0;_0x47c606<_0x514f69[_0x434804(0x18d)];_0x47c606++){const _0x5943df=_0x514f69[_0x47c606];if(_0x5943df==null)continue;const _0x1defae=_0x5943df['v'],_0x147728=_0x5943df['f'],_0x5afbb6=_0x5943df['c'];if(_0x1defae==null||_0x1defae===''){if((!_0x147728||_0x147728===null)&&(!_0x164dfd||!_0x5afbb6||_0x5afbb6===null))continue;}const _0x52972a=[],_0x1a529d=''+colIdxToExcel(_0x42bc1c+_0x47c606)+(_0x143147+_0x424eea+0x1);if(_0x1defae!=null&&_0x1defae!=='')_0x52972a[_0x434804(0x333)]('v='+_0x1defae);if(_0x147728!=null)_0x52972a[_0x434804(0x333)]('f='+_0x147728);if(_0x164dfd&&_0x5afbb6)_0x52972a[_0x434804(0x333)]('c='+_0x5afbb6);if(_0x52972a[_0x434804(0x18d)]>0x0)_0x2acc39[_0x434804(0x333)]('-\x20'+_0x1a529d+':\x20'+_0x52972a[_0x434804(0x1b9)](';')+';');}if(_0x2acc39[_0x434804(0x18d)]>0x0)_0xa0aedb['push'](_0x434804(0x38b)+(_0x143147+_0x424eea+0x1)+'\x0a\x09'+_0x2acc39['join']('\x0a\x09'));else _0xa0aedb[_0x434804(0x333)](_0x434804(0x38b)+(_0x143147+_0x424eea+0x1)+'\x20Empty\x20Row');}try{const _0x282c67=await _0x31487e[_0x434804(0x1cd)]()||[],_0x5ac138=await _0x31487e[_0x434804(0x1fd)]()||[];(_0x282c67['length']>0x0||_0x5ac138[_0x434804(0x18d)]>0x0)&&(_0xa0aedb[_0x434804(0x333)](_0x434804(0x363)),_0xa0aedb[_0x434804(0x333)](_0x434804(0x21a)+getLintErrors(_0x282c67,_0x5ac138)+_0x434804(0x1fe)));}catch(_0x2c9fb8){console[_0x434804(0x187)](_0x434804(0x168),_0x2c9fb8);}const _0x229731=_0xa0aedb['join']('\x0a');_0xfe6940[_0x434804(0x291)]({'type':'text','text':_0x229731});}if(_0xfe6940[_0x434804(0x18d)]===0x1)return[_0xfe6940[0x0]];return _0xfe6940;}async function scrollAndScreenshot(_0x21d10b){const _0x57e1a4=_0x6875c,_0x2e6442=getUniverAPI();if(!_0x2e6442)throw new Error(_0x57e1a4(0x14f));const _0x54a890=_0x2e6442['getActiveWorkbook']();if(!_0x54a890)throw new Error(_0x57e1a4(0x1fb));const _0x87b4d8=_0x54a890[_0x57e1a4(0x1fc)](),_0x579c83=_0x87b4d8[_0x57e1a4(0x3c3)](_0x21d10b);_0x87b4d8[_0x57e1a4(0x2c4)](_0x579c83[_0x57e1a4(0x2f3)](),_0x579c83[_0x57e1a4(0x16b)]());try{const _0x2d0188=await takeScreenshotWithHtml2Canvas(getContainerElement());return[{'type':_0x57e1a4(0x2e1),'text':'Viewport\x20after\x20scrolling\x20to\x20'+_0x21d10b},{'type':'image','data':_0x2d0188,'mimeType':_0x57e1a4(0x289)}];}catch(_0x5d3614){throw new Error(_0x57e1a4(0x27f)+_0x21d10b+':\x20'+_0x5d3614);}}const utilityTools=[{'name':'search_cells','description':'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.','inputSchema':_univerjs_pro_mcp['z']['object']({'keyword':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x210)](_0x6875c(0x3db)),'find_by':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()['describe'](_0x6875c(0x267))}),'execute':async _0x3f2a5a=>searchCells(_0x3f2a5a[_0x6875c(0x2fb)],_0x3f2a5a['find_by'])},{'name':_0x6875c(0x377),'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'][_0x6875c(0x23e)]({'source_range':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x24f)),'target_range':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)]('Target\x20range\x20in\x20A1\x20notation\x20to\x20fill\x20(e.g.,\x20\x22A1:A10\x22,\x20\x22B1:F1\x22)')}),'execute':async _0x3c22b8=>autoFill(_0x3c22b8[_0x6875c(0x310)],_0x3c22b8[_0x6875c(0x33e)])},{'name':_0x6875c(0x38c),'description':_0x6875c(0x36b),'inputSchema':_univerjs_pro_mcp['z']['object']({'source_range':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)](_0x6875c(0x35f)),'target_range':_univerjs_pro_mcp['z'][_0x6875c(0x368)]()[_0x6875c(0x210)]('Target\x20range\x20in\x20A1\x20notation,\x20supports\x20cross-sheet')}),'execute':async _0x4aff69=>formatBrush(_0x4aff69[_0x6875c(0x310)],_0x4aff69['target_range'])},{'name':_0x6875c(0x40b),'description':_0x6875c(0x3f2),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'requests':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](cellDimensionRequestSchema)[_0x6875c(0x210)](_0x6875c(0x3ba))}),'execute':async _0x9f243c=>setCellDimensions(_0x9f243c[_0x6875c(0x27c)])},{'name':_0x6875c(0x191),'description':_0x6875c(0x1e6),'inputSchema':_univerjs_pro_mcp['z']['object']({'screenshot':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x30c)](![])[_0x6875c(0x210)](_0x6875c(0x3b0))}),'execute':async _0x5431af=>getActivityStatus(_0x5431af[_0x6875c(0x222)])},{'name':'get_range_data','description':_0x6875c(0x2ec),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'range_a1':_univerjs_pro_mcp['z'][_0x6875c(0x2b5)]([_univerjs_pro_mcp['z']['string']()[_0x6875c(0x210)](_0x6875c(0x1a7)),_univerjs_pro_mcp['z'][_0x6875c(0x26f)](_univerjs_pro_mcp['z'][_0x6875c(0x368)]())[_0x6875c(0x210)]('List\x20of\x20ranges\x20in\x20A1\x20notation')])[_0x6875c(0x210)](_0x6875c(0x28e)),'return_screenshot':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()['default'](![])[_0x6875c(0x210)]('Whether\x20to\x20return\x20a\x20screenshot\x20of\x20the\x20range\x20(default\x20False)'),'return_style':_univerjs_pro_mcp['z'][_0x6875c(0x358)]()[_0x6875c(0x30c)](![])[_0x6875c(0x210)](_0x6875c(0x239))}),'execute':async _0x14d5e6=>getRangeData(_0x14d5e6[_0x6875c(0x146)],_0x14d5e6[_0x6875c(0x24c)],_0x14d5e6[_0x6875c(0x207)])},{'name':_0x6875c(0x396),'description':_0x6875c(0x351),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({'cell_a1':_univerjs_pro_mcp['z']['string']()[_0x6875c(0x210)](_0x6875c(0x2d4))}),'execute':async _0x13841a=>scrollAndScreenshot(_0x13841a[_0x6875c(0x226)])},{'name':_0x6875c(0x2fa),'description':_0x6875c(0x21d),'inputSchema':_univerjs_pro_mcp['z'][_0x6875c(0x23e)]({}),'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'][_0x6875c(0x23e)]({'sheets':_univerjs_pro_mcp['z'][_0x6875c(0x26f)](_univerjs_pro_mcp['z'][_0x6875c(0x368)]())['optional']()[_0x6875c(0x210)](_0x6875c(0x1d6))}),'execute':async _0x4fe112=>{const _0x1e5458=_0x6875c,_0x46eeb1=getUniverAPI();if(!_0x46eeb1)throw new Error(_0x1e5458(0x14f));return await extractFormulas(_0x46eeb1,_0x4fe112[_0x1e5458(0x349)]||[]);}}],allSheetTools=[...rangeOperationTools,...sheetManagementTools,...rowColumnOperationTools,...utilityTools,...conditionalFormattingTools,...dataValidationTools],IS_WORKER=typeof WorkerGlobalScope!==_0x6875c(0x32a)&&self instanceof WorkerGlobalScope;let UniverSheetMCPPlugin=class UniverSheetMCPPlugin extends _univerjs_core['Plugin']{constructor(_0x52beec=defaultPluginConfig,_0x19714d,_0x5cb6d0){const _0xb5bc98=_0x6875c;super(),this['_config']=_0x52beec,this['_injector']=_0x19714d,this[_0xb5bc98(0x18b)]=_0x5cb6d0;const {..._0x56c42c}=(0x0,_univerjs_core[_0xb5bc98(0x2e6)])({},defaultPluginConfig,this[_0xb5bc98(0x2b1)]);this[_0xb5bc98(0x18b)][_0xb5bc98(0x196)](SHEET_MCP_PLUGIN_CONFIG_KEY,_0x56c42c);}async[_0x6875c(0x131)](){const _0x5abee0=_0x6875c,_0x375fec=[[IStyleUsageAnalyzer,{'useClass':StyleUsageAnalyzer}],[ISizeUsageAnalyzer,{'useClass':SizeUsageAnalyzer}]],_0x4e974e=IS_WORKER||this['_config'][_0x5abee0(0x2a9)]?this[_0x5abee0(0x184)]['get'](_univerjs_rpc[_0x5abee0(0x419)]):null;if(IS_WORKER||!this[_0x5abee0(0x2b1)]['enableWorker'])_0x375fec[_0x5abee0(0x333)]([IFormulaUsageAnalyzer,{'useClass':FormulaUsageAnalyzer}]);else{if(_0x4e974e)_0x375fec[_0x5abee0(0x333)]([IFormulaUsageAnalyzer,{'useFactory':()=>(0x0,_univerjs_rpc[_0x5abee0(0x417)])(_0x4e974e[_0x5abee0(0x178)](FormulaUsageAnalyzerChannelName))}]);else _0x375fec[_0x5abee0(0x333)]([IFormulaUsageAnalyzer,{'useClass':FormulaUsageAnalyzer}]);}_0x375fec[_0x5abee0(0x2f8)](_0x15f641=>this[_0x5abee0(0x184)][_0x5abee0(0x39a)](_0x15f641));if(IS_WORKER&&_0x4e974e)_0x4e974e[_0x5abee0(0x2d7)](FormulaUsageAnalyzerChannelName,(0x0,_univerjs_rpc['fromModule'])(this['_injector'][_0x5abee0(0x2b8)](IFormulaUsageAnalyzer)));}[_0x6875c(0x317)](){const _0x194143=_0x6875c;if(IS_WORKER)return;const _0x5178fa=this[_0x194143(0x184)][_0x194143(0x2b8)](_univerjs_pro_mcp['IMCPToolRegistry']);allSheetTools[_0x194143(0x2f8)](_0xad017f=>{_0x5178fa['registerTool'](_0xad017f);});}};_defineProperty(UniverSheetMCPPlugin,_0x6875c(0x2ef),'SHEET_MCP'),_defineProperty(UniverSheetMCPPlugin,_0x6875c(0x277),name),_defineProperty(UniverSheetMCPPlugin,_0x6875c(0x278),version),_defineProperty(UniverSheetMCPPlugin,'type',_univerjs_core['UniverInstanceType'][_0x6875c(0x217)]),UniverSheetMCPPlugin=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x6875c(0x292)])(_univerjs_core[_0x6875c(0x366)])),__decorateParam(0x2,_univerjs_core[_0x6875c(0x3f5)])],UniverSheetMCPPlugin),exports[_0x6875c(0x41e)]=CellUsageAnalyzer,exports[_0x6875c(0x1ff)]=ICellUsageAnalyzer,exports[_0x6875c(0x280)]=IFormulaUsageAnalyzer,exports['ISizeUsageAnalyzer']=ISizeUsageAnalyzer,exports[_0x6875c(0x378)]=IStyleUsageAnalyzer,exports[_0x6875c(0x411)]=SizeUsageAnalyzer,exports[_0x6875c(0x19f)]=StyleUsageAnalyzer,Object['defineProperty'](exports,'UniverSheetMCPPlugin',{'enumerable':!![],'get':function(){return UniverSheetMCPPlugin;}}),exports[_0x6875c(0x3bb)]=allSheetTools,exports[_0x6875c(0x251)]=conditionalFormattingTools,exports[_0x6875c(0x1df)]=dataValidationTools,exports['formulaToA1']=toA1,exports[_0x6875c(0x2a8)]=getA1Notation,exports[_0x6875c(0x247)]=rangeOperationTools,exports['rowColumnOperationTools']=rowColumnOperationTools,exports[_0x6875c(0x1ec)]=sheetManagementTools,exports[_0x6875c(0x29e)]=toA1$1,exports['utilityTools']=utilityTools;
|
|
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;
|