@univerjs-pro/sheets-sparkline-ui 0.21.1 → 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/README.md +30 -17
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x18ba0d=_0x3ec9;(function(_0x9c73ce,_0x18eb5d){const _0x238cec=_0x3ec9,_0x32f97f=_0x9c73ce();while(!![]){try{const _0x2fa5b9=-parseInt(_0x238cec(0x354))/0x1+parseInt(_0x238cec(0x36f))/0x2+-parseInt(_0x238cec(0x345))/0x3+-parseInt(_0x238cec(0x31a))/0x4+-parseInt(_0x238cec(0x2c3))/0x5*(parseInt(_0x238cec(0x1f9))/0x6)+parseInt(_0x238cec(0x1f4))/0x7+-parseInt(_0x238cec(0x1e4))/0x8*(-parseInt(_0x238cec(0x30a))/0x9);if(_0x2fa5b9===_0x18eb5d)break;else _0x32f97f['push'](_0x32f97f['shift']());}catch(_0xad1d0e){_0x32f97f['push'](_0x32f97f['shift']());}}}(_0x1810,0x9601c),Object[_0x18ba0d(0x227)](exports,Symbol[_0x18ba0d(0x31c)],{'value':_0x18ba0d(0x213)}));let _univerjs_pro_sheets_sparkline=require('@univerjs-pro/sheets-sparkline'),_univerjs_core=require('@univerjs/core'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_sheets_graphics=require('@univerjs/sheets-graphics'),_univerjs_ui=require('@univerjs/ui'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_icons=require('@univerjs/icons'),_univerjs_design=require('@univerjs/design'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_sheets_formula_ui=require('@univerjs/sheets-formula-ui'),rxjs=require('rxjs');var name=_0x18ba0d(0x20b),version='0.21.1';const SHEET_SPARKLINE_MENU=_0x18ba0d(0x35f),SHEET_SPARKLINE_SELECTOR=_0x18ba0d(0x2f3),SHEET_SPARKLINE_PANEL=_0x18ba0d(0x256),SHEET_SPARKLINE_PANEL_ID=_0x18ba0d(0x1da),SHEET_SPARKLINE_RENDERER='SHEET_SPARKLINE_RENDERER',OpenSparklinePanelOperation={'id':_0x18ba0d(0x31f),'type':_univerjs_core['CommandType'][_0x18ba0d(0x23f)],'handler':_0x53b8fc=>{const _0x41ca30=_0x18ba0d,_0x51c358=_0x53b8fc[_0x41ca30(0x1e6)](_univerjs_ui[_0x41ca30(0x290)]),_0x4ee677=_0x53b8fc[_0x41ca30(0x1e6)](_univerjs_core[_0x41ca30(0x2c2)]),_0x2bed46=_0x53b8fc[_0x41ca30(0x1e6)](_univerjs_ui[_0x41ca30(0x342)]),_0x4c3851={'id':SHEET_SPARKLINE_PANEL_ID,'header':{'title':_0x4ee677['t']('sheets-sparkline.panel.title')},'children':{'label':SHEET_SPARKLINE_PANEL},'width':0x14a,'destroyOnClose':!![],'onClose':()=>{const _0x49f944=_0x41ca30;_0x2bed46[_0x49f944(0x2fe)](SHEET_SPARKLINE_SELECTOR);}};return _0x51c358['open'](_0x4c3851),!![];}},OpenSparklineSelectorOperation={'type':_univerjs_core['CommandType'][_0x18ba0d(0x23f)],'id':_0x18ba0d(0x1e0),'handler':async _0x1f39ce=>{const _0x22aeb0=_0x18ba0d,_0x63bbdd=(0x0,_univerjs_sheets[_0x22aeb0(0x2c7)])(_0x1f39ce['get'](_univerjs_core[_0x22aeb0(0x24a)]));if(!_0x63bbdd)return![];const _0x20a674=await openSparklineRangeSelector(_0x1f39ce,_0x1f39ce['get'](_univerjs_sheets[_0x22aeb0(0x22e)])['getCurrentSelections']()[_0x22aeb0(0x22c)](_0x236e53=>_0x236e53[_0x22aeb0(0x2a9)]));if(!_0x20a674)return![];const {unitId:_0x52db83,subUnitId:_0x3e35f2}=_0x63bbdd;return _0x1f39ce[_0x22aeb0(0x1e6)](_univerjs_core['ICommandService'])[_0x22aeb0(0x279)](_univerjs_pro_sheets_sparkline[_0x22aeb0(0x303)]['id'],{'sourceRanges':_0x20a674[_0x22aeb0(0x234)],'targetRanges':_0x20a674[_0x22aeb0(0x238)],'targetInfo':{'unitId':_0x52db83,'subUnitId':_0x3e35f2}}),!![];}};async function openSparklineRangeSelector(_0x18ab16,_0x507e61,_0x38e59a,_0x2f3caa){const _0x513210=_0x18ba0d,_0x22a7ba=_0x18ab16[_0x513210(0x1e6)](_univerjs_ui[_0x513210(0x342)]),_0x3670ad=_0x18ab16[_0x513210(0x1e6)](_univerjs_core[_0x513210(0x2c2)]);return new Promise(_0x326417=>{const _0x204e07=_0x513210;let _0x36fa7e;const _0x2168c0={'sourceRanges':_0x507e61,'targetRanges':_0x38e59a,'resetCtx':_0x2f3caa,'onConfirm':_0x24d452=>{const _0x187900=_0x3ec9;_0x326417(_0x24d452),_0x36fa7e===null||_0x36fa7e===void 0x0||_0x36fa7e[_0x187900(0x32f)]();},'onCancel':()=>{const _0x4e6859=_0x3ec9;_0x326417(null),_0x36fa7e===null||_0x36fa7e===void 0x0||_0x36fa7e[_0x4e6859(0x32f)]();}};_0x36fa7e=_0x22a7ba[_0x204e07(0x2f1)]({'id':SHEET_SPARKLINE_SELECTOR,'title':{'title':_0x3670ad['t'](_0x204e07(0x341))},'draggable':!![],'mask':![],'maskClosable':![],'destroyOnClose':!![],'children':{'label':{'name':SHEET_SPARKLINE_SELECTOR,'props':_0x2168c0}},'width':0x190,'onClose':()=>{const _0x519462=_0x204e07;_0x36fa7e[_0x519462(0x32f)]();}});});}const SHEETS_SPARKLINE_UI_PLUGIN_CONFIG_KEY='sheets-sparkline-ui.config',configSymbol=Symbol(SHEETS_SPARKLINE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function __decorateParam(_0x4be996,_0x9cb6fb){return function(_0x3b2468,_0x35296a){_0x9cb6fb(_0x3b2468,_0x35296a,_0x4be996);};}function __decorate(_0x171098,_0x1bd39d,_0x58fe8f,_0x32b7cd){const _0x32727d=_0x18ba0d;var _0x2ea930=arguments[_0x32727d(0x357)],_0x49a39e=_0x2ea930<0x3?_0x1bd39d:_0x32b7cd===null?_0x32b7cd=Object['getOwnPropertyDescriptor'](_0x1bd39d,_0x58fe8f):_0x32b7cd,_0x485729;if(typeof Reflect===_0x32727d(0x2e5)&&typeof Reflect[_0x32727d(0x1fa)]===_0x32727d(0x24d))_0x49a39e=Reflect[_0x32727d(0x1fa)](_0x171098,_0x1bd39d,_0x58fe8f,_0x32b7cd);else{for(var _0x93cb90=_0x171098[_0x32727d(0x357)]-0x1;_0x93cb90>=0x0;_0x93cb90--)if(_0x485729=_0x171098[_0x93cb90])_0x49a39e=(_0x2ea930<0x3?_0x485729(_0x49a39e):_0x2ea930>0x3?_0x485729(_0x1bd39d,_0x58fe8f,_0x49a39e):_0x485729(_0x1bd39d,_0x58fe8f))||_0x49a39e;}return _0x2ea930>0x3&&_0x49a39e&&Object['defineProperty'](_0x1bd39d,_0x58fe8f,_0x49a39e),_0x49a39e;}let SheetSparklineAutoFillController=class SheetSparklineAutoFillController extends _univerjs_core[_0x18ba0d(0x20d)]{constructor(_0x6f0c62,_0x12ae99,_0x2abd8b,_0x2dae12){const _0x341d93=_0x18ba0d;super(),this[_0x341d93(0x240)]=_0x6f0c62,this[_0x341d93(0x26b)]=_0x12ae99,this[_0x341d93(0x301)]=_0x2abd8b,this[_0x341d93(0x38a)]=_0x2dae12,this[_0x341d93(0x229)]();}[_0x18ba0d(0x229)](){const _0x4dbaab=_0x18ba0d,_0x5b8563=()=>({'redos':[],'undos':[]}),_0x1203e7=(_0x4e066a,_0x123460)=>{const _0x4a3394=_0x3ec9,_0x54d88f=[],_0x21de48=[],{source:_0x5dcd9c,target:_0x83c66e,unitId:_0x5ce1dd,subUnitId:_0x2e63af}=_0x4e066a;if(!_0x5dcd9c||!_0x83c66e||_0x123460==null)return{'undos':_0x54d88f,'redos':_0x21de48};const _0x8da3b6=(0x0,_univerjs_sheets[_0x4a3394(0x1dc)])(_0x5dcd9c),_0xe0d347=(0x0,_univerjs_sheets['discreteRangeToRange'])(_0x83c66e),_0x5b4f3b=_0x8da3b6[_0x4a3394(0x23e)]-_0x8da3b6[_0x4a3394(0x25e)]+0x1,_0x1bc043=_0x8da3b6['endColumn']-_0x8da3b6[_0x4a3394(0x292)]+0x1,_0x58cae7=_0xe0d347[_0x4a3394(0x23e)]-_0xe0d347[_0x4a3394(0x25e)]+0x1,_0x44e389=_0xe0d347['endColumn']-_0xe0d347[_0x4a3394(0x292)]+0x1;if(_univerjs_core['Rectangle'][_0x4a3394(0x311)](_0x8da3b6,_0xe0d347))return{'undos':_0x54d88f,'redos':_0x21de48};if(_0x123460===_univerjs_core[_0x4a3394(0x361)]['UP']){const _0x4ff0ee={},_0xaabfe8={},_0x10712f=new Set();for(let _0x563db5=0x0;_0x563db5<_0x1bc043;_0x563db5++)for(let _0x4a9357=0x0;_0x4a9357<_0x58cae7;_0x4a9357++){const _0x2223bc=_0x4a9357%_0x5b4f3b,_0x5ad531=_0xe0d347[_0x4a3394(0x25e)]+_0x4a9357,_0x2a9a63=_0xe0d347['startColumn']+_0x563db5,_0x193b4e=_0x8da3b6[_0x4a3394(0x25e)]+_0x2223bc,_0x515022=this['_sparklineDataSourceModel']['getSparkline'](_0x5ce1dd,_0x2e63af,_0x5ad531,_0x2a9a63);if(_0x515022){_0x10712f['add'](_0x515022);const _0x43efb2=this['_sparklineDataSourceModel'][_0x4a3394(0x2bb)](_0x5ce1dd,_0x2e63af,_0x515022);if(_0x43efb2){_0xaabfe8[_0x515022]={'config':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x43efb2[_0x4a3394(0x1e9)]),'sparklines':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x43efb2['sparklines']['clone']())};let _0x50610e=_0x4ff0ee[_0x515022];!_0x50610e&&(_0x50610e={'config':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x43efb2['config']),'sparklines':new _univerjs_core[(_0x4a3394(0x1f5))](_0x43efb2[_0x4a3394(0x336)][_0x4a3394(0x30c)]())},_0x4ff0ee[_0x515022]=_0x50610e),_0x50610e[_0x4a3394(0x336)]['realDeleteValue'](_0x5ad531,_0x2a9a63);}}const _0x99430=this[_0x4a3394(0x38a)]['getSparkline'](_0x5ce1dd,_0x2e63af,_0x193b4e,_0x2a9a63);if(_0x99430){const _0x34fe9b=this[_0x4a3394(0x38a)][_0x4a3394(0x2bb)](_0x5ce1dd,_0x2e63af,_0x99430);if(_0x34fe9b){var _0x1da83d;_0xaabfe8[_0x99430]={'config':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x34fe9b[_0x4a3394(0x1e9)]),'sparklines':_univerjs_core[_0x4a3394(0x2ac)]['deepClone'](_0x34fe9b[_0x4a3394(0x336)][_0x4a3394(0x30c)]())};let _0x346ad1=_0x4ff0ee[_0x99430];!_0x346ad1&&(_0x346ad1={'config':_univerjs_core[_0x4a3394(0x2ac)]['deepClone'](_0x34fe9b[_0x4a3394(0x1e9)]),'sparklines':new _univerjs_core[(_0x4a3394(0x1f5))](_0x34fe9b[_0x4a3394(0x336)][_0x4a3394(0x30c)]())},_0x4ff0ee[_0x99430]=_0x346ad1);_0x346ad1[_0x4a3394(0x336)][_0x4a3394(0x337)](_0x5ad531,_0x2a9a63);const _0x2df563=(_0x1da83d=this[_0x4a3394(0x38a)]['getSparklineById'](_0x5ce1dd,_0x2e63af,_0x99430))===null||_0x1da83d===void 0x0?void 0x0:_0x1da83d[_0x4a3394(0x336)],_0x1bba94=_0x2df563===null||_0x2df563===void 0x0?void 0x0:_0x2df563[_0x4a3394(0x28a)](_0x193b4e,_0x2a9a63);if(_0x1bba94){const _0x421c6a={..._0x1bba94,'startRow':_0x1bba94[_0x4a3394(0x25e)]+_0x5ad531-_0x193b4e,'endRow':_0x1bba94[_0x4a3394(0x23e)]+_0x5ad531-_0x193b4e};_0x346ad1[_0x4a3394(0x336)][_0x4a3394(0x273)](_0x5ad531,_0x2a9a63,_0x421c6a),_0x10712f[_0x4a3394(0x2b6)](_0x99430);}}}const _0x44e50c={};Object[_0x4a3394(0x22d)](_0x4ff0ee)[_0x4a3394(0x321)](([_0x2b3d31,_0x13afa8])=>{const _0x28d194=_0x4a3394;if(_0x13afa8[_0x28d194(0x336)]['getSizeOf']())_0x44e50c[_0x2b3d31]={'config':_0x13afa8[_0x28d194(0x1e9)],'sparklines':_0x13afa8['sparklines'][_0x28d194(0x30c)]()};}),_0x10712f[_0x4a3394(0x2f5)]&&(_0x21de48[_0x4a3394(0x374)]({'id':_univerjs_pro_sheets_sparkline[_0x4a3394(0x2d0)]['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'groupIds':Array[_0x4a3394(0x275)](_0x10712f),'isSingle':![]}}),_0x54d88f['push']({'id':_univerjs_pro_sheets_sparkline[_0x4a3394(0x2d0)]['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'groupIds':Array[_0x4a3394(0x275)](_0x10712f),'isSingle':![]}}),_0x21de48[_0x4a3394(0x374)]({'id':_univerjs_pro_sheets_sparkline[_0x4a3394(0x2dd)]['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'sparklineConfigMap':_0x44e50c}}),_0x54d88f[_0x4a3394(0x374)]({'id':_univerjs_pro_sheets_sparkline[_0x4a3394(0x2dd)]['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'sparklineConfigMap':_0xaabfe8}}));}}else{if(_0x123460===_univerjs_core['Direction'][_0x4a3394(0x21e)]){const _0x282bd5={},_0xe81e2f={},_0x28bf93=new Set();for(let _0x5c196e=0x0;_0x5c196e<_0x1bc043;_0x5c196e++)for(let _0x4f8432=0x0;_0x4f8432<_0x58cae7;_0x4f8432++){const _0x33eee8=_0x4f8432%_0x5b4f3b,_0x214254=_0xe0d347[_0x4a3394(0x25e)]+_0x4f8432,_0xe1264a=_0xe0d347[_0x4a3394(0x292)]+_0x5c196e,_0x98f1b8=_0x8da3b6[_0x4a3394(0x25e)]+_0x33eee8,_0x231ef7=this['_sparklineDataSourceModel'][_0x4a3394(0x225)](_0x5ce1dd,_0x2e63af,_0x98f1b8,_0xe1264a),_0xd19a0=this[_0x4a3394(0x38a)]['getSparkline'](_0x5ce1dd,_0x2e63af,_0x214254,_0xe1264a);if(_0xd19a0){_0x28bf93[_0x4a3394(0x2b6)](_0xd19a0);const _0x51cffe=this['_sparklineDataSourceModel']['getSparklineById'](_0x5ce1dd,_0x2e63af,_0xd19a0);if(_0x51cffe){_0xe81e2f[_0xd19a0]={'config':_univerjs_core['Tools'][_0x4a3394(0x246)](_0x51cffe[_0x4a3394(0x1e9)]),'sparklines':_univerjs_core[_0x4a3394(0x2ac)]['deepClone'](_0x51cffe[_0x4a3394(0x336)]['clone']())};let _0xd2a400=_0x282bd5[_0xd19a0];!_0xd2a400&&(_0xd2a400={'config':_univerjs_core['Tools'][_0x4a3394(0x246)](_0x51cffe['config']),'sparklines':new _univerjs_core[(_0x4a3394(0x1f5))](_0x51cffe[_0x4a3394(0x336)][_0x4a3394(0x30c)]())},_0x282bd5[_0xd19a0]=_0xd2a400),_0xd2a400[_0x4a3394(0x336)][_0x4a3394(0x337)](_0x214254,_0xe1264a);}}if(_0x231ef7){const _0x276009=this[_0x4a3394(0x38a)]['getSparklineById'](_0x5ce1dd,_0x2e63af,_0x231ef7);if(_0x276009){var _0x41a310;_0xe81e2f[_0x231ef7]={'config':_univerjs_core[_0x4a3394(0x2ac)]['deepClone'](_0x276009[_0x4a3394(0x1e9)]),'sparklines':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x276009[_0x4a3394(0x336)][_0x4a3394(0x30c)]())};let _0x3a3142=_0x282bd5[_0x231ef7];!_0x3a3142&&(_0x3a3142={'config':_univerjs_core['Tools']['deepClone'](_0x276009[_0x4a3394(0x1e9)]),'sparklines':new _univerjs_core[(_0x4a3394(0x1f5))](_0x276009[_0x4a3394(0x336)][_0x4a3394(0x30c)]())},_0x282bd5[_0x231ef7]=_0x3a3142);_0x3a3142['sparklines'][_0x4a3394(0x337)](_0x214254,_0xe1264a);const _0x255069=(_0x41a310=this[_0x4a3394(0x38a)][_0x4a3394(0x2bb)](_0x5ce1dd,_0x2e63af,_0x231ef7))===null||_0x41a310===void 0x0?void 0x0:_0x41a310[_0x4a3394(0x336)],_0x358519=_0x255069===null||_0x255069===void 0x0?void 0x0:_0x255069['getValue'](_0x98f1b8,_0xe1264a);if(_0x358519){const _0x484d78={..._0x358519,'startRow':_0x358519[_0x4a3394(0x25e)]+_0x214254-_0x98f1b8,'endRow':_0x358519[_0x4a3394(0x23e)]+_0x214254-_0x98f1b8};_0x3a3142[_0x4a3394(0x336)][_0x4a3394(0x273)](_0x214254,_0xe1264a,_0x484d78),_0x28bf93['add'](_0x231ef7);}}}}const _0x102fd5={};Object[_0x4a3394(0x22d)](_0x282bd5)[_0x4a3394(0x321)](([_0x4ef415,_0xf6b625])=>{const _0x3b97cd=_0x4a3394;if(_0xf6b625['sparklines'][_0x3b97cd(0x21f)]())_0x102fd5[_0x4ef415]={'config':_0xf6b625[_0x3b97cd(0x1e9)],'sparklines':_0xf6b625['sparklines'][_0x3b97cd(0x30c)]()};}),_0x28bf93[_0x4a3394(0x2f5)]&&(_0x21de48['push']({'id':_univerjs_pro_sheets_sparkline[_0x4a3394(0x2d0)]['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'groupIds':Array[_0x4a3394(0x275)](_0x28bf93),'isSingle':![]}}),_0x54d88f[_0x4a3394(0x374)]({'id':_univerjs_pro_sheets_sparkline['RemoveSheetSparklineMutation']['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'groupIds':Array[_0x4a3394(0x275)](_0x28bf93),'isSingle':![]}}),_0x21de48['push']({'id':_univerjs_pro_sheets_sparkline['AddSheetSparklineMutation']['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'sparklineConfigMap':_0x102fd5}}),_0x54d88f[_0x4a3394(0x374)]({'id':_univerjs_pro_sheets_sparkline[_0x4a3394(0x2dd)]['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'sparklineConfigMap':_0xe81e2f}}));}else{if(_0x123460===_univerjs_core[_0x4a3394(0x361)][_0x4a3394(0x381)]){const _0x532630={},_0x5090d8={},_0xd3dbcb=new Set();for(let _0x4f065f=0x0;_0x4f065f<_0x5b4f3b;_0x4f065f++)for(let _0x482756=0x0;_0x482756<_0x44e389;_0x482756++){const _0x3c0764=_0x482756%_0x1bc043,_0x5d9c19=_0xe0d347['startRow']+_0x4f065f,_0x4f7428=_0xe0d347[_0x4a3394(0x292)]+_0x482756,_0x2bd24e=_0x8da3b6['startColumn']+_0x3c0764,_0x1f4cef=this[_0x4a3394(0x38a)][_0x4a3394(0x225)](_0x5ce1dd,_0x2e63af,_0x5d9c19,_0x4f7428);if(_0x1f4cef){_0xd3dbcb[_0x4a3394(0x2b6)](_0x1f4cef);const _0x553686=this[_0x4a3394(0x38a)][_0x4a3394(0x2bb)](_0x5ce1dd,_0x2e63af,_0x1f4cef);if(_0x553686){_0x5090d8[_0x1f4cef]={'config':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x553686['config']),'sparklines':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x553686[_0x4a3394(0x336)][_0x4a3394(0x30c)]())};let _0x980e79=_0x532630[_0x1f4cef];!_0x980e79&&(_0x980e79={'config':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x553686['config']),'sparklines':new _univerjs_core[(_0x4a3394(0x1f5))](_0x553686[_0x4a3394(0x336)][_0x4a3394(0x30c)]())},_0x532630[_0x1f4cef]=_0x980e79),_0x980e79['sparklines'][_0x4a3394(0x337)](_0x5d9c19,_0x4f7428);}}const _0x5204e6=this['_sparklineDataSourceModel']['getSparkline'](_0x5ce1dd,_0x2e63af,_0x5d9c19,_0x2bd24e);if(_0x5204e6){const _0x9128a7=this[_0x4a3394(0x38a)][_0x4a3394(0x2bb)](_0x5ce1dd,_0x2e63af,_0x5204e6);if(_0x9128a7){var _0x759113;_0x5090d8[_0x5204e6]={'config':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x9128a7[_0x4a3394(0x1e9)]),'sparklines':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x9128a7[_0x4a3394(0x336)][_0x4a3394(0x30c)]())};let _0x428ca1=_0x532630[_0x5204e6];!_0x428ca1&&(_0x428ca1={'config':_univerjs_core[_0x4a3394(0x2ac)]['deepClone'](_0x9128a7['config']),'sparklines':new _univerjs_core[(_0x4a3394(0x1f5))](_0x9128a7[_0x4a3394(0x336)]['clone']())},_0x532630[_0x5204e6]=_0x428ca1);_0x428ca1[_0x4a3394(0x336)]['realDeleteValue'](_0x5d9c19,_0x4f7428);const _0x39fb6e=(_0x759113=this[_0x4a3394(0x38a)][_0x4a3394(0x2bb)](_0x5ce1dd,_0x2e63af,_0x5204e6))===null||_0x759113===void 0x0?void 0x0:_0x759113[_0x4a3394(0x336)],_0x30e863=_0x39fb6e===null||_0x39fb6e===void 0x0?void 0x0:_0x39fb6e[_0x4a3394(0x28a)](_0x5d9c19,_0x2bd24e);if(_0x30e863){const _0x23c039={..._0x30e863,'startColumn':_0x30e863[_0x4a3394(0x292)]+_0x4f7428-_0x2bd24e,'endColumn':_0x30e863[_0x4a3394(0x257)]+_0x4f7428-_0x2bd24e};_0x428ca1[_0x4a3394(0x336)][_0x4a3394(0x273)](_0x5d9c19,_0x4f7428,_0x23c039),_0xd3dbcb[_0x4a3394(0x2b6)](_0x5204e6);}}}}const _0x58bedd={};Object[_0x4a3394(0x22d)](_0x532630)[_0x4a3394(0x321)](([_0x49ce7e,_0x522c2e])=>{const _0x599d51=_0x4a3394;if(_0x522c2e[_0x599d51(0x336)][_0x599d51(0x21f)]())_0x58bedd[_0x49ce7e]={'config':_0x522c2e['config'],'sparklines':_0x522c2e['sparklines']['clone']()};}),_0xd3dbcb[_0x4a3394(0x2f5)]&&(_0x21de48[_0x4a3394(0x374)]({'id':_univerjs_pro_sheets_sparkline['RemoveSheetSparklineMutation']['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'groupIds':Array[_0x4a3394(0x275)](_0xd3dbcb),'isSingle':![]}}),_0x54d88f['push']({'id':_univerjs_pro_sheets_sparkline[_0x4a3394(0x2d0)]['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'groupIds':Array[_0x4a3394(0x275)](_0xd3dbcb),'isSingle':![]}}),_0x21de48['push']({'id':_univerjs_pro_sheets_sparkline[_0x4a3394(0x2dd)]['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'sparklineConfigMap':_0x58bedd}}),_0x54d88f['push']({'id':_univerjs_pro_sheets_sparkline['AddSheetSparklineMutation']['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'sparklineConfigMap':_0x5090d8}}));}else{if(_0x123460===_univerjs_core[_0x4a3394(0x361)][_0x4a3394(0x2c5)]){const _0x47688b={},_0x471813={},_0x4b26bd=new Set();for(let _0x23040c=0x0;_0x23040c<_0x5b4f3b;_0x23040c++)for(let _0x5f475b=0x0;_0x5f475b<_0x44e389;_0x5f475b++){const _0x2d3e29=_0x5f475b%_0x1bc043,_0x22558c=_0xe0d347[_0x4a3394(0x25e)]+_0x23040c,_0x30a112=_0xe0d347['startColumn']+_0x5f475b,_0x4c3ab0=_0x8da3b6['startColumn']+_0x2d3e29,_0x3d74d5=this['_sparklineDataSourceModel'][_0x4a3394(0x225)](_0x5ce1dd,_0x2e63af,_0x22558c,_0x30a112);if(_0x3d74d5){_0x4b26bd['add'](_0x3d74d5);const _0x5ab3c0=this['_sparklineDataSourceModel'][_0x4a3394(0x2bb)](_0x5ce1dd,_0x2e63af,_0x3d74d5);if(_0x5ab3c0){_0x471813[_0x3d74d5]={'config':_univerjs_core[_0x4a3394(0x2ac)]['deepClone'](_0x5ab3c0[_0x4a3394(0x1e9)]),'sparklines':_univerjs_core['Tools']['deepClone'](_0x5ab3c0['sparklines'][_0x4a3394(0x30c)]())};let _0x25cd95=_0x47688b[_0x3d74d5];!_0x25cd95&&(_0x25cd95={'config':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x5ab3c0[_0x4a3394(0x1e9)]),'sparklines':new _univerjs_core[(_0x4a3394(0x1f5))](_0x5ab3c0[_0x4a3394(0x336)]['clone']())},_0x47688b[_0x3d74d5]=_0x25cd95),_0x25cd95['sparklines'][_0x4a3394(0x337)](_0x22558c,_0x30a112);}}const _0xf869=this[_0x4a3394(0x38a)][_0x4a3394(0x225)](_0x5ce1dd,_0x2e63af,_0x22558c,_0x4c3ab0);if(_0xf869){const _0x227f6e=this['_sparklineDataSourceModel'][_0x4a3394(0x2bb)](_0x5ce1dd,_0x2e63af,_0xf869);if(_0x227f6e){var _0x458882;_0x471813[_0xf869]={'config':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x227f6e['config']),'sparklines':_univerjs_core['Tools']['deepClone'](_0x227f6e[_0x4a3394(0x336)][_0x4a3394(0x30c)]())};let _0x67a6b4=_0x47688b[_0xf869];!_0x67a6b4&&(_0x67a6b4={'config':_univerjs_core[_0x4a3394(0x2ac)][_0x4a3394(0x246)](_0x227f6e['config']),'sparklines':new _univerjs_core[(_0x4a3394(0x1f5))](_0x227f6e[_0x4a3394(0x336)][_0x4a3394(0x30c)]())},_0x47688b[_0xf869]=_0x67a6b4);_0x67a6b4[_0x4a3394(0x336)][_0x4a3394(0x337)](_0x22558c,_0x30a112);const _0x9df295=(_0x458882=this[_0x4a3394(0x38a)][_0x4a3394(0x2bb)](_0x5ce1dd,_0x2e63af,_0xf869))===null||_0x458882===void 0x0?void 0x0:_0x458882[_0x4a3394(0x336)],_0x275e18=_0x9df295===null||_0x9df295===void 0x0?void 0x0:_0x9df295[_0x4a3394(0x28a)](_0x22558c,_0x4c3ab0);if(_0x275e18){const _0x56e28d={..._0x275e18,'startColumn':_0x275e18[_0x4a3394(0x292)]+_0x30a112-_0x4c3ab0,'endColumn':_0x275e18[_0x4a3394(0x257)]+_0x30a112-_0x4c3ab0};_0x67a6b4[_0x4a3394(0x336)][_0x4a3394(0x273)](_0x22558c,_0x30a112,_0x56e28d),_0x4b26bd[_0x4a3394(0x2b6)](_0xf869);}}}}const _0x296e45={};Object[_0x4a3394(0x22d)](_0x47688b)[_0x4a3394(0x321)](([_0x48cdc9,_0x3c18b7])=>{const _0x4ba47d=_0x4a3394;if(_0x3c18b7[_0x4ba47d(0x336)][_0x4ba47d(0x21f)]())_0x296e45[_0x48cdc9]={'config':_0x3c18b7[_0x4ba47d(0x1e9)],'sparklines':_0x3c18b7[_0x4ba47d(0x336)][_0x4ba47d(0x30c)]()};}),_0x4b26bd[_0x4a3394(0x2f5)]&&(_0x21de48[_0x4a3394(0x374)]({'id':_univerjs_pro_sheets_sparkline['RemoveSheetSparklineMutation']['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'groupIds':Array['from'](_0x4b26bd),'isSingle':![]}}),_0x54d88f['push']({'id':_univerjs_pro_sheets_sparkline['RemoveSheetSparklineMutation']['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'groupIds':Array[_0x4a3394(0x275)](_0x4b26bd),'isSingle':![]}}),_0x21de48[_0x4a3394(0x374)]({'id':_univerjs_pro_sheets_sparkline[_0x4a3394(0x2dd)]['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'sparklineConfigMap':_0x296e45}}),_0x54d88f['push']({'id':_univerjs_pro_sheets_sparkline[_0x4a3394(0x2dd)]['id'],'params':{'unitId':_0x5ce1dd,'subUnitId':_0x2e63af,'sparklineConfigMap':_0x471813}}));}}}}return{'undos':_0x54d88f,'redos':_0x21de48};},_0x4be9b6={'id':_univerjs_pro_sheets_sparkline[_0x4dbaab(0x358)],'onFillData':(_0x1cb350,_0x569efe,_0x2e831d)=>{const _0x51391c=_0x4dbaab;if(_0x2e831d===_univerjs_sheets[_0x51391c(0x2b0)][_0x51391c(0x281)]||_0x2e831d===_univerjs_sheets['AUTO_FILL_APPLY_TYPE'][_0x51391c(0x1cf)]||_0x2e831d===_univerjs_sheets[_0x51391c(0x2b0)][_0x51391c(0x383)])return _0x1203e7(_0x1cb350,_0x569efe);return _0x5b8563();}};this[_0x4dbaab(0x289)](this[_0x4dbaab(0x301)][_0x4dbaab(0x2f4)](_0x4be9b6));}};SheetSparklineAutoFillController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core['Injector'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_core[_0x18ba0d(0x24a)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_sheets[_0x18ba0d(0x27a)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_pro_sheets_sparkline[_0x18ba0d(0x388)]))],SheetSparklineAutoFillController);let SheetSparklineController=class SheetSparklineController extends _univerjs_core['Disposable']{constructor(_0x951b44,_0x47340e){const _0x5a8421=_0x18ba0d;super(),this[_0x5a8421(0x37f)]=_0x951b44,this[_0x5a8421(0x38a)]=_0x47340e,this[_0x5a8421(0x23d)]();}[_0x18ba0d(0x23d)](){const _0x57aebe=_0x18ba0d;this['disposeWithMe'](this[_0x57aebe(0x37f)][_0x57aebe(0x352)]({'id':_univerjs_pro_sheets_sparkline[_0x57aebe(0x358)],'onPasteCells':(_0x2be2ac,_0x35b415,_0x5d658b,_0x4e3273)=>{const _0x190cca=_0x57aebe,_0x13e850=[],_0x45ac72=[],{copyType:copyType=_univerjs_sheets_ui[_0x190cca(0x264)][_0x190cca(0x281)]}=_0x4e3273,_0x222b54={};if(copyType===_univerjs_sheets_ui[_0x190cca(0x264)][_0x190cca(0x333)])return{'undos':_0x13e850,'redos':_0x45ac72};if(_0x4e3273[_0x190cca(0x206)]!==_univerjs_sheets_ui[_0x190cca(0x31e)]['DEFAULT_PASTE'])return{'undos':_0x13e850,'redos':_0x45ac72};if(!_0x2be2ac)return{'undos':_0x13e850,'redos':_0x45ac72};if(_0x35b415[_0x190cca(0x32d)]!==_0x2be2ac['unitId'])return{'undos':_0x13e850,'redos':_0x45ac72};const {range:_0x2c1a6a,unitId:_0x5f3b9b,subUnitId:_0x503fd2}=_0x35b415,{range:_0x598e51,unitId:_0x267435,subUnitId:_0x14658c}=_0x2be2ac,_0x5e629e={},_0x451c75={},_0x5554ed={},_0x4affa0=new Set(),_0x50aad2=new Set();for(let _0x464d2a=0x0;_0x464d2a<_0x2c1a6a[_0x190cca(0x34e)][_0x190cca(0x357)];_0x464d2a++)for(let _0x24a35c=0x0;_0x24a35c<_0x2c1a6a['cols'][_0x190cca(0x357)];_0x24a35c++){const _0xa1f6de=_0x598e51['rows'][_0x464d2a],_0x92f767=_0x598e51['cols'][_0x24a35c];if(!this[_0x190cca(0x38a)][_0x190cca(0x225)](_0x267435,_0x14658c,_0xa1f6de,_0x92f767))continue;const _0x20b6fb=_0x2c1a6a['rows'][_0x464d2a],_0x4ba128=_0x2c1a6a[_0x190cca(0x30b)][_0x24a35c],_0x3d0d2f=_0x2c1a6a['rows'][_0x464d2a]-_0xa1f6de,_0x5bbccd=_0x2c1a6a['cols'][_0x24a35c]-_0x92f767,_0x50ed8a=this['_sparklineDataSourceModel'][_0x190cca(0x225)](_0x267435,_0x14658c,_0xa1f6de,_0x92f767);if(_0x50ed8a){let _0x5322b0=_0x5e629e[_0x222b54[_0x50ed8a]];const _0x2d9184=this[_0x190cca(0x38a)][_0x190cca(0x2bb)](_0x267435,_0x14658c,_0x50ed8a);if(!_0x2d9184)continue;if(!_0x222b54[_0x50ed8a]){if(_0x2d9184){const _0x5e514f='g_'+(0x0,_univerjs_core[_0x190cca(0x282)])(0x6);_0x5322b0={'newGroupId':_0x5e514f,'config':{'config':_univerjs_core[_0x190cca(0x2ac)][_0x190cca(0x246)](_0x2d9184[_0x190cca(0x1e9)]),'sparklines':{}}},_0x5e629e[_0x5e514f]=_0x5322b0,_0x222b54[_0x50ed8a]=_0x5e514f;}}if(!_0x5322b0['config'][_0x190cca(0x336)][_0x20b6fb])_0x5322b0[_0x190cca(0x1e9)][_0x190cca(0x336)][_0x20b6fb]={};const _0x111db5=_0x2d9184['sparklines']['getValue'](_0xa1f6de,_0x92f767);if(_0x111db5){const _0x202fce={'startRow':_0x111db5[_0x190cca(0x25e)]+_0x3d0d2f,'startColumn':_0x111db5['startColumn']+_0x5bbccd,'endRow':_0x111db5[_0x190cca(0x23e)]+_0x3d0d2f,'endColumn':_0x111db5[_0x190cca(0x257)]+_0x5bbccd};_0x5322b0[_0x190cca(0x1e9)][_0x190cca(0x336)][_0x20b6fb][_0x4ba128]=_0x202fce;}}const _0x2c8f79=this['_sparklineDataSourceModel']['getSparkline'](_0x5f3b9b,_0x503fd2,_0x2c1a6a[_0x190cca(0x34e)][_0x464d2a],_0x2c1a6a[_0x190cca(0x30b)][_0x24a35c]);if(_0x2c8f79){const _0x1cc909=this[_0x190cca(0x38a)]['getSparklineById'](_0x5f3b9b,_0x503fd2,_0x2c8f79);if(_0x1cc909){var _0x3e9a8f;_0x4affa0[_0x190cca(0x2b6)](_0x2c8f79),_0x5554ed[_0x2c8f79]={'config':_univerjs_core[_0x190cca(0x2ac)][_0x190cca(0x246)](_0x1cc909[_0x190cca(0x1e9)]),'sparklines':_univerjs_core[_0x190cca(0x2ac)][_0x190cca(0x246)](_0x1cc909[_0x190cca(0x336)][_0x190cca(0x391)]())};if(_0x451c75[_0x2c8f79])_0x451c75[_0x2c8f79]={'config':_univerjs_core['Tools'][_0x190cca(0x246)](_0x1cc909['config']),'sparklines':_univerjs_core[_0x190cca(0x2ac)][_0x190cca(0x246)](_0x1cc909[_0x190cca(0x336)][_0x190cca(0x391)]())};if((_0x3e9a8f=_0x451c75[_0x2c8f79])===null||_0x3e9a8f===void 0x0||(_0x3e9a8f=_0x3e9a8f[_0x190cca(0x336)])===null||_0x3e9a8f===void 0x0||(_0x3e9a8f=_0x3e9a8f[_0x464d2a])===null||_0x3e9a8f===void 0x0?void 0x0:_0x3e9a8f[_0x24a35c])delete _0x451c75[_0x2c8f79][_0x190cca(0x336)][_0x464d2a][_0x24a35c];}}}Object['keys'](_0x5e629e)['forEach'](_0x590672=>{const _0x1c6063=_0x190cca,_0x29ee2b=_0x5e629e[_0x590672];_0x29ee2b&&(_0x50aad2[_0x1c6063(0x2b6)](_0x590672),_0x451c75[_0x590672]=_0x29ee2b[_0x1c6063(0x1e9)]);});if(_0x50aad2[_0x190cca(0x2f5)]>0x0)_0x13e850[_0x190cca(0x374)]({'id':_univerjs_pro_sheets_sparkline[_0x190cca(0x2d0)]['id'],'params':{'unitId':_0x5f3b9b,'subUnitId':_0x503fd2,'groupIds':Array[_0x190cca(0x275)](_0x50aad2),'isSingle':![]}});if(Object['keys'](_0x5554ed)[_0x190cca(0x357)]>0x0)_0x13e850[_0x190cca(0x374)]({'id':_univerjs_pro_sheets_sparkline[_0x190cca(0x2dd)]['id'],'params':{'unitId':_0x5f3b9b,'subUnitId':_0x503fd2,'sparklineConfigMap':_0x5554ed}});if(_0x4affa0[_0x190cca(0x2f5)]>0x0)_0x45ac72[_0x190cca(0x374)]({'id':_univerjs_pro_sheets_sparkline[_0x190cca(0x2d0)]['id'],'params':{'unitId':_0x5f3b9b,'subUnitId':_0x503fd2,'groupIds':Array[_0x190cca(0x275)](_0x4affa0),'isSingle':![]}});if(Object['keys'](_0x451c75)[_0x190cca(0x357)]>0x0)_0x45ac72[_0x190cca(0x374)]({'id':_univerjs_pro_sheets_sparkline[_0x190cca(0x2dd)]['id'],'params':{'unitId':_0x5f3b9b,'subUnitId':_0x503fd2,'sparklineConfigMap':_0x451c75}});return{'undos':_0x13e850,'redos':_0x45ac72};}}));}};SheetSparklineController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_sheets_ui[_0x18ba0d(0x2cd)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_sparkline[_0x18ba0d(0x388)]))],SheetSparklineController);function Collapse({title:_0x1d5059,children:_0x422ccb,containerStyle:_0x2bc423}){const _0x211faa=_0x18ba0d,[_0x1b1d51,_0x835439]=(0x0,react[_0x211faa(0x314)])(![]),_0x38ac49=()=>_0x835439(!_0x1b1d51);return(0x0,react_jsx_runtime[_0x211faa(0x298)])(_0x211faa(0x29e),{'className':(0x0,_univerjs_design['clsx'])(_0x211faa(0x28c),_univerjs_design[_0x211faa(0x315)]),'style':_0x2bc423,'children':[(0x0,react_jsx_runtime[_0x211faa(0x298)])(_0x211faa(0x29e),{'className':_0x211faa(0x2ee),'onClick':_0x38ac49,'children':[(0x0,react_jsx_runtime['jsx'])(_0x211faa(0x245),{'className':_0x211faa(0x350),'children':_0x1b1d51?(0x0,react_jsx_runtime[_0x211faa(0x2bd)])(_univerjs_icons[_0x211faa(0x340)],{}):(0x0,react_jsx_runtime[_0x211faa(0x2bd)])(_univerjs_icons[_0x211faa(0x252)],{})}),_0x1d5059]}),_0x1b1d51&&(0x0,react_jsx_runtime[_0x211faa(0x2bd)])(_0x211faa(0x29e),{'className':_0x211faa(0x2b8),'children':_0x422ccb})]});}const ColorPickerControl=_0x3d1628=>{const _0x5a37c8=_0x18ba0d,{color:_0x5c5006,onChange:_0x2f6c92}=_0x3d1628,[_0x2d4069,_0x6c3cb3]=(0x0,react[_0x5a37c8(0x314)])(![]),_0x4d3988=(0x0,_univerjs_ui[_0x5a37c8(0x326)])(_univerjs_core[_0x5a37c8(0x2c2)]),_0x11eb40=_0x5c5006===_0x5a37c8(0x2c0)||_0x5c5006==null,_0x5a47dd=(0x0,react[_0x5a37c8(0x2ae)])(_0xe076bb=>{_0x2f6c92===null||_0x2f6c92===void 0x0||_0x2f6c92(_0xe076bb),_0x6c3cb3(![]);},[_0x2f6c92]);return(0x0,react_jsx_runtime[_0x5a37c8(0x2bd)])(_univerjs_design[_0x5a37c8(0x308)],{'overlay':(0x0,react_jsx_runtime[_0x5a37c8(0x2bd)])(_0x5a37c8(0x29e),{'className':(0x0,_univerjs_design[_0x5a37c8(0x372)])(_0x5a37c8(0x312),_univerjs_design[_0x5a37c8(0x33a)]),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x5a37c8(0x34f)],{'value':_0x11eb40?_0x5a37c8(0x302):_0x5c5006,'onChange':_0x5a47dd})}),'open':_0x2d4069,'onOpenChange':_0x6c3cb3,'children':(0x0,react_jsx_runtime[_0x5a37c8(0x2bd)])(_univerjs_design['Button'],{'className':(0x0,_univerjs_design[_0x5a37c8(0x372)])(_0x5a37c8(0x223),_univerjs_design[_0x5a37c8(0x33a)]),'children':(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x5a37c8(0x332),'children':[_0x11eb40?(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x5a37c8(0x216),'children':_0x4d3988['t']('sheets-sparkline.panel.default')}):(0x0,react_jsx_runtime[_0x5a37c8(0x2bd)])('div',{'className':(0x0,_univerjs_design[_0x5a37c8(0x372)])('univer-size-5',_univerjs_design['borderClassName']),'style':{'backgroundColor':_0x5c5006}}),(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['MoreDownIcon'],{'className':(0x0,_univerjs_design['clsx'])(_0x5a37c8(0x2d6),{'univer-rotate-180':_0x2d4069})})]})})});},SparklineAdvancedSetting=({config:_0x27cca3,ctx:_0x3e0b7a})=>{const _0x45909e=_0x18ba0d;var _0x5c070f,_0x3583af,_0x1c061b,_0x48ea33,_0x1a1c5e,_0x3ec3e0,_0xe53380,_0x15087a,_0x1d9b7d,_0x542e60,_0x1f7f0d,_0x50b916,_0x4308f7,_0x27832d,_0x57a92b,_0x52644f;const _0x5f56e6=(0x0,_univerjs_ui[_0x45909e(0x326)])(_univerjs_core[_0x45909e(0x2e3)]),_0x15b1cf=(0x0,_univerjs_ui[_0x45909e(0x326)])(_univerjs_core['LocaleService']),_0x502be7=(0x0,_univerjs_ui[_0x45909e(0x326)])(_univerjs_pro_sheets_sparkline[_0x45909e(0x388)]),{unitId:_0x1070e4,subUnitId:_0x2ca6e1,range:_0x464566}=_0x3e0b7a,_0x214a14=_0x32dcb2=>{const _0x4bc078=_0x45909e,_0x33e4cb=_univerjs_core[_0x4bc078(0x2ac)][_0x4bc078(0x246)](_0x27cca3);if(!_0x33e4cb[_0x4bc078(0x1e9)])_0x33e4cb[_0x4bc078(0x1e9)]={};if(_0x33e4cb[_0x4bc078(0x1e9)][_0x4bc078(0x38e)])delete _0x33e4cb[_0x4bc078(0x1e9)][_0x4bc078(0x38e)];if(!_0x33e4cb[_0x4bc078(0x1e9)][_0x4bc078(0x364)])_0x33e4cb[_0x4bc078(0x1e9)][_0x4bc078(0x364)]={};_0x33e4cb[_0x4bc078(0x1e9)][_0x4bc078(0x364)][_0x4bc078(0x360)]=_0x32dcb2,_0x5f56e6['executeCommand'](_univerjs_pro_sheets_sparkline[_0x4bc078(0x2f2)]['id'],{'config':_0x33e4cb,'isChangeDataSource':![]});},_0xf2cb99=_0x352cf1=>{const _0x13aabb=_0x45909e,_0x4933c8=_univerjs_core[_0x13aabb(0x2ac)][_0x13aabb(0x246)](_0x27cca3);if(!_0x4933c8[_0x13aabb(0x1e9)])_0x4933c8['config']={};if(_0x4933c8[_0x13aabb(0x1e9)][_0x13aabb(0x38e)])delete _0x4933c8[_0x13aabb(0x1e9)]['type'];if(!_0x4933c8[_0x13aabb(0x1e9)][_0x13aabb(0x364)])_0x4933c8[_0x13aabb(0x1e9)]['axis']={};_0x4933c8[_0x13aabb(0x1e9)]['axis'][_0x13aabb(0x2de)]=_0x352cf1,_0x5f56e6[_0x13aabb(0x279)](_univerjs_pro_sheets_sparkline[_0x13aabb(0x2f2)]['id'],{'config':_0x4933c8,'isChangeDataSource':![]});},_0x2af256=_0x240477=>{const _0x4a5048=_0x45909e,_0x22430f=_univerjs_core['Tools'][_0x4a5048(0x246)](_0x27cca3);if(!_0x22430f[_0x4a5048(0x1e9)])_0x22430f[_0x4a5048(0x1e9)]={};if(_0x22430f[_0x4a5048(0x1e9)][_0x4a5048(0x38e)])delete _0x22430f['config'][_0x4a5048(0x38e)];if(!_0x22430f['config'][_0x4a5048(0x364)])_0x22430f[_0x4a5048(0x1e9)]['axis']={};_0x22430f[_0x4a5048(0x1e9)][_0x4a5048(0x364)][_0x4a5048(0x328)]=_0x240477,_0x5f56e6[_0x4a5048(0x279)](_univerjs_pro_sheets_sparkline['SetSheetSparklineCommand']['id'],{'config':_0x22430f,'isChangeDataSource':![]});},_0x7a4ca6=(_0x1108c2,_0xfb5c8)=>{const _0x49b8f1=_0x45909e,_0x45e651=_0xfb5c8===_0x49b8f1(0x1e3)?'extremumMin':_0x49b8f1(0x2cf),_0x4d36f9=_univerjs_core[_0x49b8f1(0x2ac)][_0x49b8f1(0x246)](_0x27cca3);if(!_0x4d36f9[_0x49b8f1(0x1e9)])_0x4d36f9[_0x49b8f1(0x1e9)]={};if(_0x4d36f9['config'][_0x49b8f1(0x38e)])delete _0x4d36f9[_0x49b8f1(0x1e9)]['type'];if(!_0x4d36f9[_0x49b8f1(0x1e9)][_0x45e651])_0x4d36f9['config'][_0x45e651]={};_0x4d36f9['config'][_0x45e651][_0x49b8f1(0x38e)]=_0x1108c2,_0x5f56e6[_0x49b8f1(0x279)](_univerjs_pro_sheets_sparkline[_0x49b8f1(0x2f2)]['id'],{'config':_0x4d36f9,'isChangeDataSource':![]});},_0x170c83=(_0x41ed5d,_0x52bcff)=>{const _0x2f8f84=_0x45909e,_0x1d5b72=_0x52bcff===_0x2f8f84(0x1e3)?_0x2f8f84(0x334):_0x2f8f84(0x2cf),_0xfc56a1=_univerjs_core[_0x2f8f84(0x2ac)]['deepClone'](_0x27cca3);if(!_0xfc56a1[_0x2f8f84(0x1e9)])_0xfc56a1['config']={};if(_0xfc56a1[_0x2f8f84(0x1e9)][_0x2f8f84(0x38e)])delete _0xfc56a1[_0x2f8f84(0x1e9)][_0x2f8f84(0x38e)];if(!_0xfc56a1[_0x2f8f84(0x1e9)][_0x1d5b72])_0xfc56a1[_0x2f8f84(0x1e9)][_0x1d5b72]={};_0xfc56a1[_0x2f8f84(0x1e9)][_0x1d5b72][_0x2f8f84(0x38e)]=_univerjs_pro_sheets_sparkline[_0x2f8f84(0x1de)][_0x2f8f84(0x217)],_0xfc56a1['config'][_0x1d5b72][_0x2f8f84(0x23b)]=_0x41ed5d,_0x5f56e6[_0x2f8f84(0x279)](_univerjs_pro_sheets_sparkline['SetSheetSparklineCommand']['id'],{'config':_0xfc56a1,'isChangeDataSource':![]});},_0x564a87=(_0x28c33b,_0x54d099)=>{const _0x28def1=_0x45909e,_0x159a8f=_0x54d099===_0x28def1(0x1d5)?'emptyShowAs':_0x28def1(0x2ec),_0xf3df5c=_univerjs_core[_0x28def1(0x2ac)][_0x28def1(0x246)](_0x27cca3);if(!_0xf3df5c[_0x28def1(0x1e9)])_0xf3df5c[_0x28def1(0x1e9)]={};if(_0xf3df5c[_0x28def1(0x1e9)]['type'])delete _0xf3df5c[_0x28def1(0x1e9)]['type'];_0xf3df5c[_0x28def1(0x1e9)][_0x159a8f]=_0x28c33b,_0x5f56e6['executeCommand'](_univerjs_pro_sheets_sparkline[_0x28def1(0x2f2)]['id'],{'config':_0xf3df5c,'isChangeDataSource':![]});},_0x1ab285=()=>{const _0x428666=_0x45909e,_0x20b2b8=_univerjs_core[_0x428666(0x2ac)][_0x428666(0x246)](_0x27cca3);_0x5f56e6[_0x428666(0x279)](_univerjs_pro_sheets_sparkline['SetSheetSparklineCommand']['id'],{'config':_0x20b2b8,'combine':!![]});},_0x46c5cb=()=>{const _0x55fd10=_0x45909e,_0x36e97d=_univerjs_core['Tools'][_0x55fd10(0x246)](_0x27cca3);_0x5f56e6[_0x55fd10(0x279)](_univerjs_pro_sheets_sparkline[_0x55fd10(0x2f2)]['id'],{'config':_0x36e97d,'unCombine':!![]});},_0x2188bb=_0x2fbb33=>{const _0x1cc3d9=_0x45909e,_0x4534d6=_univerjs_core[_0x1cc3d9(0x2ac)][_0x1cc3d9(0x246)](_0x27cca3);if(!_0x4534d6[_0x1cc3d9(0x1e9)])_0x4534d6['config']={};if(_0x4534d6[_0x1cc3d9(0x1e9)]['type'])delete _0x4534d6['config'][_0x1cc3d9(0x38e)];_0x4534d6[_0x1cc3d9(0x1e9)][_0x1cc3d9(0x230)]=_0x2fbb33,_0x5f56e6[_0x1cc3d9(0x279)](_univerjs_pro_sheets_sparkline[_0x1cc3d9(0x2f2)]['id'],{'config':_0x4534d6,'isChangeDataSource':![]});},_0x34295a=_0x502be7[_0x45909e(0x21b)](),_0x300714=_0x34295a===null||_0x34295a===void 0x0||(_0x5c070f=_0x34295a[_0x45909e(0x2c4)]['get'](_0x1070e4))===null||_0x5c070f===void 0x0?void 0x0:_0x5c070f['get'](_0x2ca6e1);let _0x5d6556=![],_0x120222=![];const _0x4cfb6f=new Set(),{startRow:_0x57973b,endRow:_0x479bca,startColumn:_0x545d24,endColumn:_0x1f046d}=_0x464566;for(let _0x162263=_0x57973b;_0x162263<=_0x479bca;_0x162263++)for(let _0x14e7d1=_0x545d24;_0x14e7d1<=_0x1f046d;_0x14e7d1++){var _0x3292f7;const _0x554f3c=_0x300714===null||_0x300714===void 0x0||(_0x3292f7=_0x300714[_0x45909e(0x28d)]['getValue'](_0x162263,_0x14e7d1))===null||_0x3292f7===void 0x0?void 0x0:_0x3292f7['groupId'];if(_0x554f3c)_0x4cfb6f['add'](_0x554f3c);}if(_0x4cfb6f['size']>0x1)_0x5d6556=!![],Array[_0x45909e(0x275)](_0x4cfb6f)[_0x45909e(0x321)](_0x2a3629=>{const _0x4c31fa=_0x45909e;var _0x1d3264,_0x3352eb;const _0x4fbc7d=(_0x1d3264=_0x34295a[_0x4c31fa(0x208)][_0x4c31fa(0x1e6)](_0x1070e4))===null||_0x1d3264===void 0x0||(_0x1d3264=_0x1d3264['get'](_0x2ca6e1))===null||_0x1d3264===void 0x0?void 0x0:_0x1d3264[_0x4c31fa(0x1e6)](_0x2a3629);if(((_0x3352eb=_0x4fbc7d===null||_0x4fbc7d===void 0x0?void 0x0:_0x4fbc7d['sparklines']['toNativeArray']()['length'])!==null&&_0x3352eb!==void 0x0?_0x3352eb:0x0)>0x1)_0x120222=!![];});else{if(_0x4cfb6f['size']===0x1){var _0x17c05c,_0x4dbdc5;const _0x2129f5=Array[_0x45909e(0x275)](_0x4cfb6f)[0x0],_0x183565=(_0x17c05c=_0x34295a[_0x45909e(0x208)][_0x45909e(0x1e6)](_0x1070e4))===null||_0x17c05c===void 0x0||(_0x17c05c=_0x17c05c['get'](_0x2ca6e1))===null||_0x17c05c===void 0x0?void 0x0:_0x17c05c['get'](_0x2129f5);_0x120222=((_0x4dbdc5=_0x183565===null||_0x183565===void 0x0?void 0x0:_0x183565[_0x45909e(0x336)][_0x45909e(0x34c)]()['length'])!==null&&_0x4dbdc5!==void 0x0?_0x4dbdc5:0x0)>0x1;let _0x201c49=0x0,_0x349231=0x0;_0x183565===null||_0x183565===void 0x0||_0x183565[_0x45909e(0x336)][_0x45909e(0x367)]((_0x4d1111,_0x2c1484)=>{const _0x282a2a=_0x45909e,_0x512a35=(0x0,_univerjs_core[_0x282a2a(0x380)])(_0x4d1111,_0x2c1484);if(_univerjs_core[_0x282a2a(0x27b)][_0x282a2a(0x2fb)](_0x512a35,_0x464566))_0x201c49++;else _0x349231++;}),_0x5d6556=_0x349231>0x0&&_0x201c49>0x1;}}return(0x0,react_jsx_runtime[_0x45909e(0x298)])('div',{'children':[(0x0,react_jsx_runtime['jsx'])(Collapse,{'title':_0x15b1cf['t'](_0x45909e(0x214)),'children':(0x0,react_jsx_runtime[_0x45909e(0x298)])(_0x45909e(0x29e),{'className':'univer-flex\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x45909e(0x298)])(_univerjs_design[_0x45909e(0x23a)],{'disabled':!_0x5d6556,'onClick':()=>_0x1ab285(),'children':[(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_univerjs_icons[_0x45909e(0x384)],{}),_0x15b1cf['t']('sheets-sparkline.panel.compose')]}),(0x0,react_jsx_runtime[_0x45909e(0x298)])(_univerjs_design[_0x45909e(0x23a)],{'disabled':!_0x120222,'onClick':()=>_0x46c5cb(),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x45909e(0x268)],{}),_0x15b1cf['t']('sheets-sparkline.panel.unCompose')]})]})}),(0x0,react_jsx_runtime[_0x45909e(0x298)])(Collapse,{'title':_0x15b1cf['t'](_0x45909e(0x201)),'children':[(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_0x45909e(0x29e),{'className':_0x45909e(0x39a),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x45909e(0x378)],{'checked':(_0x3583af=_0x27cca3['config'][_0x45909e(0x364)])===null||_0x3583af===void 0x0?void 0x0:_0x3583af[_0x45909e(0x360)],'onChange':_0xf32420=>_0x214a14(_0xf32420),'children':_0x15b1cf['t'](_0x45909e(0x33e))})}),((_0x1c061b=_0x27cca3[_0x45909e(0x1e9)][_0x45909e(0x364)])===null||_0x1c061b===void 0x0?void 0x0:_0x1c061b[_0x45909e(0x360)])&&(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x45909e(0x21a),'children':[(0x0,react_jsx_runtime['jsx'])(_0x45909e(0x29e),{'className':_0x45909e(0x21a),'children':_0x15b1cf['t']('sheets-sparkline.panel.axisColor')}),(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(ColorPickerControl,{'color':(_0x48ea33=(_0x1a1c5e=_0x27cca3['config'][_0x45909e(0x364)])===null||_0x1a1c5e===void 0x0?void 0x0:_0x1a1c5e[_0x45909e(0x2de)])!==null&&_0x48ea33!==void 0x0?_0x48ea33:_0x45909e(0x272),'onChange':_0x356fc2=>_0xf2cb99(_0x356fc2)})]}),(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_0x45909e(0x29e),{'className':_0x45909e(0x39a),'children':(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_univerjs_design[_0x45909e(0x378)],{'checked':(_0x3ec3e0=_0x27cca3[_0x45909e(0x1e9)][_0x45909e(0x364)])===null||_0x3ec3e0===void 0x0?void 0x0:_0x3ec3e0[_0x45909e(0x328)],'onChange':_0x564660=>_0x2af256(_0x564660),'children':_0x15b1cf['t'](_0x45909e(0x2af))})})]}),(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(Collapse,{'title':_0x15b1cf['t']('sheets-sparkline.panel.vertical'),'children':(0x0,react_jsx_runtime[_0x45909e(0x298)])(_0x45909e(0x29e),{'children':[(0x0,react_jsx_runtime[_0x45909e(0x2bd)])('div',{'className':_0x45909e(0x2c1),'children':_0x15b1cf['t'](_0x45909e(0x2e1))}),(0x0,react_jsx_runtime[_0x45909e(0x298)])(_univerjs_design[_0x45909e(0x33d)],{'value':(_0xe53380=(_0x15087a=_0x27cca3[_0x45909e(0x1e9)]['extremumMin'])===null||_0x15087a===void 0x0?void 0x0:_0x15087a['type'])!==null&&_0xe53380!==void 0x0?_0xe53380:_univerjs_pro_sheets_sparkline[_0x45909e(0x1de)][_0x45909e(0x1d0)],'className':_0x45909e(0x309),'onChange':_0x3d968d=>_0x7a4ca6(_0x3d968d,'min'),'children':[(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_univerjs_design[_0x45909e(0x1dd)],{'value':_univerjs_pro_sheets_sparkline[_0x45909e(0x1de)]['SELF_EXTREMUM'],'children':_0x15b1cf['t']('sheets-sparkline.panel.itemMin')}),(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_univerjs_design['Radio'],{'value':_univerjs_pro_sheets_sparkline[_0x45909e(0x1de)][_0x45909e(0x2fd)],'children':_0x15b1cf['t']('sheets-sparkline.panel.groupMin')}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Radio'],{'value':_univerjs_pro_sheets_sparkline[_0x45909e(0x1de)]['CUSTOM_EXTREMUM'],'children':(0x0,react_jsx_runtime[_0x45909e(0x298)])(_0x45909e(0x29e),{'className':_0x45909e(0x207),'children':[(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_0x45909e(0x29e),{'children':_0x15b1cf['t'](_0x45909e(0x241))}),(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_univerjs_design[_0x45909e(0x27c)],{'disabled':((_0x1d9b7d=_0x27cca3['config'][_0x45909e(0x334)])===null||_0x1d9b7d===void 0x0?void 0x0:_0x1d9b7d['type'])!==_univerjs_pro_sheets_sparkline['SparklineExtremumTypeEnum']['CUSTOM_EXTREMUM'],'value':(_0x542e60=_0x27cca3[_0x45909e(0x1e9)]['extremumMin'])===null||_0x542e60===void 0x0?void 0x0:_0x542e60[_0x45909e(0x23b)],'onChange':_0x4f09f1=>{if(typeof _0x4f09f1==='number')_0x170c83(_0x4f09f1,'min');},'className':_0x45909e(0x2ad)})]})})]}),(0x0,react_jsx_runtime[_0x45909e(0x2bd)])('br',{}),(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_0x45909e(0x29e),{'className':_0x45909e(0x2c1),'children':_0x15b1cf['t']('sheets-sparkline.panel.max')}),(0x0,react_jsx_runtime[_0x45909e(0x298)])(_univerjs_design['RadioGroup'],{'value':(_0x1f7f0d=(_0x50b916=_0x27cca3[_0x45909e(0x1e9)][_0x45909e(0x2cf)])===null||_0x50b916===void 0x0?void 0x0:_0x50b916[_0x45909e(0x38e)])!==null&&_0x1f7f0d!==void 0x0?_0x1f7f0d:_univerjs_pro_sheets_sparkline['SparklineExtremumTypeEnum']['SELF_EXTREMUM'],'className':_0x45909e(0x309),'onChange':_0x4ac7b9=>_0x7a4ca6(_0x4ac7b9,'max'),'children':[(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_univerjs_design[_0x45909e(0x1dd)],{'value':_univerjs_pro_sheets_sparkline[_0x45909e(0x1de)]['SELF_EXTREMUM'],'children':_0x15b1cf['t'](_0x45909e(0x262))}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x45909e(0x1dd)],{'value':_univerjs_pro_sheets_sparkline[_0x45909e(0x1de)][_0x45909e(0x2fd)],'children':_0x15b1cf['t']('sheets-sparkline.panel.groupMax')}),(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_univerjs_design['Radio'],{'value':_univerjs_pro_sheets_sparkline[_0x45909e(0x1de)][_0x45909e(0x217)],'children':(0x0,react_jsx_runtime[_0x45909e(0x298)])('div',{'className':_0x45909e(0x207),'children':[(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_0x45909e(0x29e),{'children':_0x15b1cf['t'](_0x45909e(0x280))}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design['InputNumber'],{'disabled':((_0x4308f7=_0x27cca3[_0x45909e(0x1e9)][_0x45909e(0x2cf)])===null||_0x4308f7===void 0x0?void 0x0:_0x4308f7['type'])!==_univerjs_pro_sheets_sparkline[_0x45909e(0x1de)]['CUSTOM_EXTREMUM'],'value':(_0x27832d=_0x27cca3[_0x45909e(0x1e9)]['extremumMax'])===null||_0x27832d===void 0x0?void 0x0:_0x27832d['value'],'onChange':_0x51c1cd=>{const _0x3ec218=_0x45909e;if(typeof _0x51c1cd===_0x3ec218(0x1ec))_0x170c83(_0x51c1cd,_0x3ec218(0x288));},'className':'univer-ml-3\x20univer-h-6\x20univer-w-14'})]})})]})]})}),(0x0,react_jsx_runtime[_0x45909e(0x298)])(Collapse,{'title':_0x15b1cf['t'](_0x45909e(0x22a)),'containerStyle':{'border':_0x45909e(0x210)},'children':[(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_univerjs_design[_0x45909e(0x378)],{'checked':_0x27cca3[_0x45909e(0x1e9)]['containHiddenCells'],'onChange':_0x3c9f7a=>_0x2188bb(_0x3c9f7a),'children':_0x15b1cf['t'](_0x45909e(0x387))}),(0x0,react_jsx_runtime[_0x45909e(0x298)])('div',{'className':_0x45909e(0x335),'children':[(0x0,react_jsx_runtime['jsx'])(_0x45909e(0x29e),{'className':_0x45909e(0x377),'children':_0x15b1cf['t'](_0x45909e(0x35e))}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x45909e(0x36c)],{'className':_0x45909e(0x24c),'value':(_0x57a92b=_0x27cca3[_0x45909e(0x1e9)][_0x45909e(0x1e1)])!==null&&_0x57a92b!==void 0x0?_0x57a92b:_univerjs_pro_sheets_sparkline[_0x45909e(0x249)]['SPACING'],'options':[{'label':_0x15b1cf['t'](_0x45909e(0x220)),'value':_univerjs_pro_sheets_sparkline[_0x45909e(0x249)]['SPACING']},{'label':_0x15b1cf['t']('sheets-sparkline.panel.zeroValue'),'value':_univerjs_pro_sheets_sparkline[_0x45909e(0x249)]['ZERO_VALUE']},{'label':_0x15b1cf['t'](_0x45909e(0x38c)),'value':_univerjs_pro_sheets_sparkline[_0x45909e(0x249)][_0x45909e(0x295)]}],'onChange':_0x430488=>_0x564a87(_0x430488,_0x45909e(0x1d5))})]}),(0x0,react_jsx_runtime[_0x45909e(0x298)])(_0x45909e(0x29e),{'className':_0x45909e(0x335),'children':[(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_0x45909e(0x29e),{'className':_0x45909e(0x377),'children':_0x15b1cf['t'](_0x45909e(0x25b))}),(0x0,react_jsx_runtime[_0x45909e(0x2bd)])(_univerjs_design['Select'],{'className':_0x45909e(0x24c),'value':(_0x52644f=_0x27cca3[_0x45909e(0x1e9)][_0x45909e(0x2ec)])!==null&&_0x52644f!==void 0x0?_0x52644f:_univerjs_pro_sheets_sparkline[_0x45909e(0x249)][_0x45909e(0x259)],'options':[{'label':_0x15b1cf['t']('sheets-sparkline.panel.spacing'),'value':_univerjs_pro_sheets_sparkline['SpacialShowAsEnum'][_0x45909e(0x259)]},{'label':_0x15b1cf['t'](_0x45909e(0x37c)),'value':_univerjs_pro_sheets_sparkline['SpacialShowAsEnum']['ZERO_VALUE']},{'label':_0x15b1cf['t'](_0x45909e(0x38c)),'value':_univerjs_pro_sheets_sparkline[_0x45909e(0x249)][_0x45909e(0x295)]}],'onChange':_0x304784=>_0x564a87(_0x304784,_0x45909e(0x1e2))})]})]})]});},SparklineMarkItem=_0x2db351=>{const _0x54f5fc=_0x18ba0d;var _0x5364b4,_0x10e540;const {onCheckboxChange:_0x17e9ea,onColorChange:_0x53ba8c,type:_0x490d35,text:_0x478a3d,config:_0x182b23,chartType:_0x51fe57}=_0x2db351,_0x300ea7=_univerjs_pro_sheets_sparkline['SparklineThemeMapping'][_0x54f5fc(0x353)][0x1],_0xf1b7eb=(0x0,react[_0x54f5fc(0x371)])(()=>{const _0x33530e=_0x54f5fc;return new _univerjs_core[(_0x33530e(0x202))](_0x300ea7)[_0x33530e(0x33b)]();},[_0x300ea7]),_0x4d9d77=_0x490d35===_0x54f5fc(0x20a)&&_0x51fe57!==_univerjs_pro_sheets_sparkline['SparklineTypeEnum'][_0x54f5fc(0x211)],_0x50bcfe=(_0x5364b4=_0x182b23===null||_0x182b23===void 0x0?void 0x0:_0x182b23[_0x54f5fc(0x2de)])!==null&&_0x5364b4!==void 0x0?_0x5364b4:_0x300ea7,_0x1fb440=new _univerjs_core['ColorKit'](_0x50bcfe)[_0x54f5fc(0x2ef)]();return(0x0,react_jsx_runtime['jsxs'])(_0x54f5fc(0x29e),{'className':(0x0,_univerjs_design[_0x54f5fc(0x372)])(_0x54f5fc(0x243)),'children':[(0x0,react_jsx_runtime[_0x54f5fc(0x2bd)])(_univerjs_design[_0x54f5fc(0x378)],{'checked':_0x182b23===null||_0x182b23===void 0x0?void 0x0:_0x182b23['visible'],'disabled':_0x4d9d77,'onChange':_0x4617cd=>_0x17e9ea(_0x4617cd,_0x490d35),'children':_0x478a3d}),(_0x182b23===null||_0x182b23===void 0x0?void 0x0:_0x182b23['visible'])&&(0x0,react_jsx_runtime[_0x54f5fc(0x2bd)])(_univerjs_design[_0x54f5fc(0x308)],{'overlay':(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-p-4','children':(0x0,react_jsx_runtime[_0x54f5fc(0x2bd)])(_univerjs_design[_0x54f5fc(0x34f)],{'value':(_0x10e540=_0x182b23===null||_0x182b23===void 0x0?void 0x0:_0x182b23[_0x54f5fc(0x2de)])!==null&&_0x10e540!==void 0x0?_0x10e540:_0xf1b7eb,'onChange':_0x3006e8=>_0x53ba8c(_0x3006e8,_0x490d35)})}),'children':(0x0,react_jsx_runtime[_0x54f5fc(0x2bd)])(_univerjs_icons[_0x54f5fc(0x399)],{'className':(0x0,_univerjs_design[_0x54f5fc(0x372)])(_0x54f5fc(0x2f7),{'univer-text-white':_0x1fb440}),'extend':{'colorChannel1':_0x50bcfe}})})]});},SparklineBasicSetting=({config:_0x267a42,ctx:_0x2252a9})=>{const _0x2ae861=_0x18ba0d;var _0x17ace0,_0x56dbc4,_0x3edefc,_0x5ca899,_0x2e8286,_0x32a481,_0x48b161,_0x536ef4,_0x278d46;const _0x3b7c55=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x2ae861(0x2e3)]),_0x23fec9=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x2ae861(0x29f)]),_0xf7d621=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x2ae861(0x2c2)]),_0x71e716=(0x0,_univerjs_ui[_0x2ae861(0x326)])(_univerjs_pro_sheets_sparkline[_0x2ae861(0x388)]),_0x591103=(_0x17ace0=_0x267a42===null||_0x267a42===void 0x0?void 0x0:_0x267a42['config']['type'])!==null&&_0x17ace0!==void 0x0?_0x17ace0:_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)]['LINE_CHART'],_0x4c02c8=_0x591103===_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)]['LINE_CHART'],_0x2eb07f=_0x572cda=>{const _0x135f16=_0x2ae861;var _0x5484dc;const _0x299dfe=(_0x5484dc=_univerjs_core[_0x135f16(0x2ac)][_0x135f16(0x246)](_0x267a42))!==null&&_0x5484dc!==void 0x0?_0x5484dc:{};if(!(_0x299dfe===null||_0x299dfe===void 0x0?void 0x0:_0x299dfe[_0x135f16(0x1e9)]))_0x299dfe['config']={};_0x299dfe[_0x135f16(0x1e9)][_0x135f16(0x38e)]=_0x572cda,_0x3b7c55[_0x135f16(0x279)](_univerjs_pro_sheets_sparkline[_0x135f16(0x2f2)]['id'],{'config':_0x299dfe,'isChangeDataSource':![]});},_0x17379e=(_0xce273d,_0x4a6211)=>{const _0x59ff4a=_0x2ae861;var _0x5b1483,_0x353fb2;const _0x553364=(_0x5b1483=_univerjs_core[_0x59ff4a(0x2ac)][_0x59ff4a(0x246)](_0x267a42))!==null&&_0x5b1483!==void 0x0?_0x5b1483:{};if(!(_0x553364===null||_0x553364===void 0x0?void 0x0:_0x553364[_0x59ff4a(0x1e9)]))_0x553364[_0x59ff4a(0x1e9)]={};if(_0x553364[_0x59ff4a(0x1e9)][_0x59ff4a(0x38e)])delete _0x553364[_0x59ff4a(0x1e9)][_0x59ff4a(0x38e)];if(!(_0x553364===null||_0x553364===void 0x0?void 0x0:_0x553364[_0x59ff4a(0x1e9)][_0x59ff4a(0x362)]))_0x553364[_0x59ff4a(0x1e9)][_0x59ff4a(0x362)]={};if(!(_0x553364===null||_0x553364===void 0x0||(_0x353fb2=_0x553364[_0x59ff4a(0x1e9)][_0x59ff4a(0x362)])===null||_0x353fb2===void 0x0?void 0x0:_0x353fb2[_0x4a6211]))_0x553364[_0x59ff4a(0x1e9)][_0x59ff4a(0x362)][_0x4a6211]={};_0x553364['config'][_0x59ff4a(0x362)][_0x4a6211][_0x59ff4a(0x360)]=_0xce273d,_0x3b7c55['executeCommand'](_univerjs_pro_sheets_sparkline[_0x59ff4a(0x2f2)]['id'],{'config':_0x553364,'isChangeDataSource':![]});},_0x1f77a7=(_0x28a511,_0x224e1c)=>{const _0x2fcb53=_0x2ae861;var _0x1c4332,_0x490326;const _0x578547=(_0x1c4332=_univerjs_core[_0x2fcb53(0x2ac)]['deepClone'](_0x267a42))!==null&&_0x1c4332!==void 0x0?_0x1c4332:{};if(!(_0x578547===null||_0x578547===void 0x0?void 0x0:_0x578547[_0x2fcb53(0x1e9)]))_0x578547['config']={};if(_0x578547['config'][_0x2fcb53(0x38e)])delete _0x578547['config'][_0x2fcb53(0x38e)];if(!(_0x578547===null||_0x578547===void 0x0?void 0x0:_0x578547[_0x2fcb53(0x1e9)][_0x2fcb53(0x362)]))_0x578547[_0x2fcb53(0x1e9)][_0x2fcb53(0x362)]={};if(!(_0x578547===null||_0x578547===void 0x0||(_0x490326=_0x578547[_0x2fcb53(0x1e9)][_0x2fcb53(0x362)])===null||_0x490326===void 0x0?void 0x0:_0x490326[_0x224e1c]))_0x578547[_0x2fcb53(0x1e9)][_0x2fcb53(0x362)][_0x224e1c]={};_0x578547[_0x2fcb53(0x1e9)][_0x2fcb53(0x362)][_0x224e1c][_0x2fcb53(0x2de)]=_0x28a511,_0x578547[_0x2fcb53(0x1e9)][_0x2fcb53(0x224)]=_univerjs_pro_sheets_sparkline[_0x2fcb53(0x1ea)][_0x2fcb53(0x263)],_0x3b7c55['executeCommand'](_univerjs_pro_sheets_sparkline[_0x2fcb53(0x2f2)]['id'],{'config':_0x578547,'isChangeDataSource':![]});},_0x15679d=_0x1b3ac1=>{const _0x527efd=_0x2ae861;var _0x49f5de;const _0x61f4f4=(_0x49f5de=_univerjs_core[_0x527efd(0x2ac)][_0x527efd(0x246)](_0x267a42))!==null&&_0x49f5de!==void 0x0?_0x49f5de:{};if(!(_0x61f4f4===null||_0x61f4f4===void 0x0?void 0x0:_0x61f4f4['config']))_0x61f4f4[_0x527efd(0x1e9)]={};if(_0x61f4f4[_0x527efd(0x1e9)][_0x527efd(0x38e)])delete _0x61f4f4[_0x527efd(0x1e9)]['type'];_0x61f4f4[_0x527efd(0x1e9)][_0x527efd(0x224)]=_0x1b3ac1;if(_0x61f4f4[_0x527efd(0x1e9)][_0x527efd(0x20c)]!=null)_0x61f4f4['config'][_0x527efd(0x20c)]=void 0x0;if(!(_0x61f4f4===null||_0x61f4f4===void 0x0?void 0x0:_0x61f4f4[_0x527efd(0x1e9)][_0x527efd(0x362)]))_0x61f4f4[_0x527efd(0x1e9)][_0x527efd(0x362)]={};const _0x572a67=_univerjs_pro_sheets_sparkline['SparklineThemeMapping'][_0x1b3ac1];_univerjs_pro_sheets_sparkline[_0x527efd(0x2e2)][_0x527efd(0x321)](_0x105ebf=>{const _0x4feae4=_0x527efd;var _0x177838;if(!(_0x61f4f4===null||_0x61f4f4===void 0x0||(_0x177838=_0x61f4f4['config'][_0x4feae4(0x362)])===null||_0x177838===void 0x0?void 0x0:_0x177838[_0x105ebf]))_0x61f4f4[_0x4feae4(0x1e9)][_0x4feae4(0x362)][_0x105ebf]={'color':_0x572a67[0x1]};else _0x61f4f4['config'][_0x4feae4(0x362)][_0x105ebf]['color']=_0x572a67[0x1];}),_0x3b7c55[_0x527efd(0x279)](_univerjs_pro_sheets_sparkline['SetSheetSparklineCommand']['id'],{'config':_0x61f4f4,'isChangeDataSource':![]});},_0x4f3e2f=_0x27585a=>{const _0x27c438=_0x2ae861;var _0x556d4d;const _0x3e0ed8=(_0x556d4d=_univerjs_core[_0x27c438(0x2ac)]['deepClone'](_0x267a42))!==null&&_0x556d4d!==void 0x0?_0x556d4d:{};if(!(_0x3e0ed8===null||_0x3e0ed8===void 0x0?void 0x0:_0x3e0ed8['config']))_0x3e0ed8[_0x27c438(0x1e9)]={};if(_0x3e0ed8[_0x27c438(0x1e9)]['type'])delete _0x3e0ed8['config'][_0x27c438(0x38e)];_0x3e0ed8[_0x27c438(0x1e9)][_0x27c438(0x20c)]=_0x27585a,_0x3e0ed8['config'][_0x27c438(0x224)]=_univerjs_pro_sheets_sparkline['SparklineThemeTypeEnum'][_0x27c438(0x263)],_0x3b7c55['executeCommand'](_univerjs_pro_sheets_sparkline[_0x27c438(0x2f2)]['id'],{'config':_0x3e0ed8,'isChangeDataSource':![]});},_0x2cab6e=_0x116173=>{const _0x3966e0=_0x2ae861;var _0xe20b0a;const _0x3474c2=(_0xe20b0a=_univerjs_core[_0x3966e0(0x2ac)][_0x3966e0(0x246)](_0x267a42))!==null&&_0xe20b0a!==void 0x0?_0xe20b0a:{};if(!(_0x3474c2===null||_0x3474c2===void 0x0?void 0x0:_0x3474c2[_0x3966e0(0x1e9)]))_0x3474c2[_0x3966e0(0x1e9)]={};if(_0x3474c2[_0x3966e0(0x1e9)][_0x3966e0(0x38e)])delete _0x3474c2[_0x3966e0(0x1e9)][_0x3966e0(0x38e)];const _0x34e960=Number[_0x3966e0(0x34a)](_0x116173,0xa);_0x3474c2[_0x3966e0(0x1e9)]['lineWidth']=_0x34e960,_0x3b7c55['executeCommand'](_univerjs_pro_sheets_sparkline[_0x3966e0(0x2f2)]['id'],{'config':_0x3474c2,'isChangeDataSource':![]});},_0xb23a8a=_0x53a2e8=>{const _0x3cef91=_0x2ae861;var _0x24ddc4;const _0x1a80db=(_0x24ddc4=_univerjs_core['Tools']['deepClone'](_0x267a42))!==null&&_0x24ddc4!==void 0x0?_0x24ddc4:{};if(!(_0x1a80db===null||_0x1a80db===void 0x0?void 0x0:_0x1a80db[_0x3cef91(0x1e9)]))_0x1a80db[_0x3cef91(0x1e9)]={};if(_0x1a80db[_0x3cef91(0x1e9)][_0x3cef91(0x38e)])delete _0x1a80db[_0x3cef91(0x1e9)][_0x3cef91(0x38e)];if(_0x4c02c8)_0x1a80db[_0x3cef91(0x1e9)][_0x3cef91(0x274)]=_0x53a2e8;else _0x1a80db[_0x3cef91(0x1e9)][_0x3cef91(0x2b3)]=_0x53a2e8;_0x3b7c55[_0x3cef91(0x279)](_univerjs_pro_sheets_sparkline['SetSheetSparklineCommand']['id'],{'config':_0x1a80db,'isChangeDataSource':![]});},_0x429cb7=_0x1dc6de=>{const _0xe531bf=_0x2ae861;_0x3b7c55[_0xe531bf(0x279)](_univerjs_pro_sheets_sparkline['RemoveSheetSparklineCommand']['id'],{'isIcon':_0x1dc6de});},_0x2d99ba=new Set([_0x2252a9[_0x2ae861(0x2dc)]]),_0x922646=_0x2252a9['range'];for(let _0x5f4bd1=_0x922646[_0x2ae861(0x25e)];_0x5f4bd1<=_0x922646['endRow'];_0x5f4bd1++)for(let _0x47d66c=_0x922646['startColumn'];_0x47d66c<=_0x922646['endColumn'];_0x47d66c++){const _0x394912=_0x71e716[_0x2ae861(0x225)](_0x2252a9[_0x2ae861(0x32d)],_0x2252a9[_0x2ae861(0x2d9)],_0x5f4bd1,_0x47d66c);if(_0x394912){_0x2d99ba[_0x2ae861(0x2b6)](_0x394912);if(_0x2d99ba[_0x2ae861(0x2f5)]>0x1)break;}}const _0x193fd7=async()=>{const _0x56f380=_0x2ae861;if(_0x2d99ba[_0x56f380(0x2f5)]>0x1)return;const {primary:_0x567a07,range:_0xb371f9,groupId:_0x4f47cb}=_0x2252a9;if(!await openSparklineRangeSelector(_0x23fec9,[_0xb371f9],void 0x0,{'groupId':_0x4f47cb,'primary':_univerjs_core[_0x56f380(0x2ac)]['deepClone'](_0x567a07)}))return![];};return(0x0,react_jsx_runtime['jsxs'])('div',{'children':[(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x37d),'children':_0xf7d621['t']('sheets-sparkline.panel.sourceAndPosition')}),(0x0,react_jsx_runtime['jsx'])(_0x2ae861(0x29e),{'className':(0x0,_univerjs_design[_0x2ae861(0x372)])(_0x2ae861(0x35a),{'univer-cursor-not-allowed':_0x2d99ba[_0x2ae861(0x2f5)]>0x1}),'onClick':_0x193fd7,'children':(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_univerjs_icons[_0x2ae861(0x26e)],{})})]}),(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x339),'children':_0xf7d621['t'](_0x2ae861(0x25c))}),(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_0x2ae861(0x29e),{'className':'univer-mb-5\x20univer-text-sm','children':(0x0,react_jsx_runtime['jsxs'])('div',{'className':(0x0,_univerjs_design[_0x2ae861(0x372)])(_0x2ae861(0x36e),_univerjs_design[_0x2ae861(0x33a)]),'children':[(0x0,react_jsx_runtime[_0x2ae861(0x298)])('div',{'className':(0x0,_univerjs_design['clsx'])(_0x2ae861(0x2a1),{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x591103===_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)]['LINE_CHART']}),'onClick':()=>_0x2eb07f(_univerjs_pro_sheets_sparkline['SparklineTypeEnum'][_0x2ae861(0x211)]),'children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_univerjs_icons[_0x2ae861(0x1d1)],{}),_0xf7d621['t']('sheets-sparkline.panel.line')]}),(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':(0x0,_univerjs_design[_0x2ae861(0x372)])(_0x2ae861(0x2a1),{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x591103===_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)][_0x2ae861(0x2d4)]}),'onClick':()=>_0x2eb07f(_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)][_0x2ae861(0x2d4)]),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['ColumnSparklineIcon'],{}),_0xf7d621['t']('sheets-sparkline.panel.bar')]}),(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':(0x0,_univerjs_design[_0x2ae861(0x372)])(_0x2ae861(0x2a1),{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x591103===_univerjs_pro_sheets_sparkline['SparklineTypeEnum']['PROFIT_AND_LOSS_CHART']}),'onClick':()=>_0x2eb07f(_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)]['PROFIT_AND_LOSS_CHART']),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x2ae861(0x317)],{}),_0xf7d621['t']('sheets-sparkline.panel.profitAndLoss')]}),(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':(0x0,_univerjs_design[_0x2ae861(0x372)])('univer-m-0.5\x20univer-flex\x20univer-h-8\x20univer-flex-1\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-sm\x20univer-text-center\x20univer-leading-8',{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x591103===_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)][_0x2ae861(0x31b)]}),'onClick':()=>_0x2eb07f(_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)]['PIE_CHART']),'children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_univerjs_icons['PieChartIcon'],{}),_0xf7d621['t'](_0x2ae861(0x267))]})]})})]}),_0x267a42[_0x2ae861(0x1e9)][_0x2ae861(0x38e)]!==_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)][_0x2ae861(0x31b)]&&(0x0,react_jsx_runtime[_0x2ae861(0x298)])(react_jsx_runtime[_0x2ae861(0x2c6)],{'children':[(0x0,react_jsx_runtime['jsxs'])('div',{'children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x339),'children':_0xf7d621['t']('sheets-sparkline.panel.theme')}),(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x320),'children':(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_univerjs_design[_0x2ae861(0x36c)],{'className':_0x2ae861(0x1f0),'value':_0xf7d621['t'](_0x2ae861(0x39c)+((_0x56dbc4=_0x267a42===null||_0x267a42===void 0x0?void 0x0:_0x267a42[_0x2ae861(0x1e9)][_0x2ae861(0x224)])!==null&&_0x56dbc4!==void 0x0?_0x56dbc4:_univerjs_pro_sheets_sparkline[_0x2ae861(0x1ea)][_0x2ae861(0x254)])),'options':Object[_0x2ae861(0x1f3)](_univerjs_pro_sheets_sparkline[_0x2ae861(0x242)])[_0x2ae861(0x22c)](_0x3671cc=>{const _0x358ca6=_0x2ae861,_0x332c39=_univerjs_pro_sheets_sparkline['SparklineThemeMapping'][_0x3671cc];return{'label':(0x0,react_jsx_runtime[_0x358ca6(0x298)])(_0x358ca6(0x29e),{'className':'univer-flex\x20univer-items-center','children':[(0x0,react_jsx_runtime[_0x358ca6(0x2bd)])(_0x358ca6(0x29e),{'className':_0x358ca6(0x2aa),'style':{'background':_0x332c39[0x0]}}),(0x0,react_jsx_runtime[_0x358ca6(0x2bd)])(_0x358ca6(0x29e),{'className':_0x358ca6(0x1ef),'style':{'background':_0x332c39[0x1]}}),(0x0,react_jsx_runtime[_0x358ca6(0x2bd)])(_0x358ca6(0x29e),{'children':_0xf7d621['t'](_0x358ca6(0x39c)+_0x3671cc)})]}),'value':_0x3671cc};}),'onChange':_0x40c3bc=>_0x15679d(_0x40c3bc)})})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'children':[(0x0,react_jsx_runtime['jsx'])(_0x2ae861(0x29e),{'className':_0x2ae861(0x339),'children':_0xf7d621['t'](_0x2ae861(0x1f8))}),(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':'univer-mb-5\x20univer-text-sm','children':[(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x20e),'children':[(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x393),'children':[(0x0,react_jsx_runtime['jsx'])(_0x2ae861(0x29e),{'className':'univer-mb-2','children':_0xf7d621['t'](_0x2ae861(0x28b))}),(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(ColorPickerControl,{'color':(_0x3edefc=_0x267a42===null||_0x267a42===void 0x0?void 0x0:_0x267a42['config'][_0x2ae861(0x20c)])!==null&&_0x3edefc!==void 0x0?_0x3edefc:_0x2ae861(0x2c0),'onChange':_0x4f3e2f})]}),_0x591103===_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)][_0x2ae861(0x211)]&&(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x393),'children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])('div',{'className':_0x2ae861(0x21a),'children':_0xf7d621['t'](_0x2ae861(0x370))}),(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_univerjs_design['Select'],{'className':_0x2ae861(0x1f0),'value':(_0x267a42===null||_0x267a42===void 0x0?void 0x0:_0x267a42['config'][_0x2ae861(0x1fc)])?_0x267a42[_0x2ae861(0x1e9)][_0x2ae861(0x1fc)]+'px':_0x2ae861(0x2d2),'options':[{'value':_0x2ae861(0x26d),'label':_0x2ae861(0x26d)},{'value':_0x2ae861(0x2d2),'label':_0x2ae861(0x2d2)},{'value':_0x2ae861(0x34d),'label':_0x2ae861(0x34d)},{'value':'4px','label':'4px'}],'onChange':_0x52792d=>_0x2cab6e(_0x52792d)})]})]}),(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_univerjs_design[_0x2ae861(0x378)],{'className':'univer-mt-2','checked':_0x4c02c8?_0x267a42===null||_0x267a42===void 0x0?void 0x0:_0x267a42[_0x2ae861(0x1e9)][_0x2ae861(0x274)]:_0x267a42===null||_0x267a42===void 0x0?void 0x0:_0x267a42[_0x2ae861(0x1e9)][_0x2ae861(0x2b3)],'onChange':_0x48e2d5=>_0xb23a8a(_0x48e2d5),'children':_0x4c02c8?_0xf7d621['t'](_0x2ae861(0x313)):_0xf7d621['t'](_0x2ae861(0x33c))})]})]}),(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x339),'children':_0xf7d621['t'](_0x2ae861(0x1ff))}),(0x0,react_jsx_runtime['jsxs'])(_0x2ae861(0x29e),{'className':_0x2ae861(0x320),'children':[(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x27f),'children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(SparklineMarkItem,{'onCheckboxChange':_0x17379e,'onColorChange':_0x1f77a7,'chartType':_0x591103,'type':'highPoint','text':_0xf7d621['t']('sheets-sparkline.panel.highPoint'),'config':_0x267a42===null||_0x267a42===void 0x0||(_0x5ca899=_0x267a42[_0x2ae861(0x1e9)][_0x2ae861(0x362)])===null||_0x5ca899===void 0x0?void 0x0:_0x5ca899['highPoint']},_0x2ae861(0x1d3)),(0x0,react_jsx_runtime['jsx'])(SparklineMarkItem,{'onCheckboxChange':_0x17379e,'onColorChange':_0x1f77a7,'chartType':_0x591103,'type':'firstPoint','text':_0xf7d621['t']('sheets-sparkline.panel.firstPoint'),'config':_0x267a42===null||_0x267a42===void 0x0||(_0x2e8286=_0x267a42[_0x2ae861(0x1e9)][_0x2ae861(0x362)])===null||_0x2e8286===void 0x0?void 0x0:_0x2e8286[_0x2ae861(0x304)]},'firstPoint')]}),(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x27f),'children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(SparklineMarkItem,{'onCheckboxChange':_0x17379e,'onColorChange':_0x1f77a7,'chartType':_0x591103,'type':_0x2ae861(0x222),'text':_0xf7d621['t']('sheets-sparkline.panel.lowPoint'),'config':_0x267a42===null||_0x267a42===void 0x0||(_0x32a481=_0x267a42[_0x2ae861(0x1e9)]['points'])===null||_0x32a481===void 0x0?void 0x0:_0x32a481[_0x2ae861(0x222)]},_0x2ae861(0x222)),(0x0,react_jsx_runtime['jsx'])(SparklineMarkItem,{'onCheckboxChange':_0x17379e,'onColorChange':_0x1f77a7,'chartType':_0x591103,'type':_0x2ae861(0x2e6),'text':_0xf7d621['t'](_0x2ae861(0x2e7)),'config':_0x267a42===null||_0x267a42===void 0x0||(_0x48b161=_0x267a42[_0x2ae861(0x1e9)][_0x2ae861(0x362)])===null||_0x48b161===void 0x0?void 0x0:_0x48b161[_0x2ae861(0x2e6)]},_0x2ae861(0x2e6))]}),(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_0x2ae861(0x29e),{'className':_0x2ae861(0x27f),'children':[(0x0,react_jsx_runtime['jsx'])(SparklineMarkItem,{'onCheckboxChange':_0x17379e,'onColorChange':_0x1f77a7,'chartType':_0x591103,'type':_0x2ae861(0x389),'text':_0xf7d621['t'](_0x2ae861(0x2d5)),'config':_0x267a42===null||_0x267a42===void 0x0||(_0x536ef4=_0x267a42['config'][_0x2ae861(0x362)])===null||_0x536ef4===void 0x0?void 0x0:_0x536ef4[_0x2ae861(0x389)]},_0x2ae861(0x389)),(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(SparklineMarkItem,{'onCheckboxChange':_0x17379e,'onColorChange':_0x1f77a7,'chartType':_0x591103,'type':_0x2ae861(0x20a),'text':_0xf7d621['t'](_0x2ae861(0x375)),'config':_0x267a42===null||_0x267a42===void 0x0||(_0x278d46=_0x267a42[_0x2ae861(0x1e9)][_0x2ae861(0x362)])===null||_0x278d46===void 0x0?void 0x0:_0x278d46['markersPoint']},'markersPoint')]})]})]})]}),_0x267a42['config'][_0x2ae861(0x38e)]===_univerjs_pro_sheets_sparkline[_0x2ae861(0x329)][_0x2ae861(0x31b)]&&(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])('div',{'className':_0x2ae861(0x339),'children':_0xf7d621['t'](_0x2ae861(0x366))}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':'univer-flex\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2ae861(0x298)])(_univerjs_design[_0x2ae861(0x23a)],{'onClick':()=>_0x429cb7(!![]),'children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_univerjs_icons[_0x2ae861(0x2ea)],{}),_0xf7d621['t'](_0x2ae861(0x29d))]}),(0x0,react_jsx_runtime['jsxs'])(_univerjs_design[_0x2ae861(0x23a)],{'onClick':()=>_0x429cb7(![]),'children':[(0x0,react_jsx_runtime[_0x2ae861(0x2bd)])(_univerjs_icons['DeleteIcon'],{}),_0xf7d621['t']('sheets-sparkline.panel.removeGroup')]})]})]});},SparklinePanel=()=>{const _0x25faa4=_0x18ba0d;var _0x5031b2,_0x2becf2,_0x1100b4;const _0x2107ea=(0x0,_univerjs_ui[_0x25faa4(0x2d7)])((0x0,_univerjs_ui[_0x25faa4(0x326)])(_univerjs_sheets[_0x25faa4(0x22e)])['selectionMoveEnd$']),_0x5127d1=(0x0,_univerjs_ui[_0x25faa4(0x326)])(_univerjs_pro_sheets_sparkline[_0x25faa4(0x388)]),_0xc75960=(0x0,_univerjs_ui[_0x25faa4(0x326)])(_univerjs_core[_0x25faa4(0x24a)]),_0x146fa2=(0x0,_univerjs_ui[_0x25faa4(0x326)])(_univerjs_core[_0x25faa4(0x2c2)]),_0x2067ab=(0x0,_univerjs_sheets[_0x25faa4(0x2c7)])(_0xc75960),[_0xb2702a,_0x3f90d0]=(0x0,react[_0x25faa4(0x314)])(_0x25faa4(0x316)),_0x3840d7=_0xb2702a==='basic',[,_0x57f8c8]=(0x0,react[_0x25faa4(0x314)])(Math[_0x25faa4(0x2e4)]());(0x0,react[_0x25faa4(0x2db)])(()=>{const _0x2cf164=_0x25faa4,_0xafe445=_0x5127d1[_0x2cf164(0x310)]['subscribe'](()=>{const _0x2817a1=_0x2cf164;_0x57f8c8(Math[_0x2817a1(0x2e4)]());});return()=>{_0xafe445['unsubscribe']();};},[_0x5127d1[_0x25faa4(0x310)]]);if(!_0x2067ab)return null;const {unitId:_0x806b60,subUnitId:_0x2f65cc}=_0x2067ab;if(!_0x2107ea||_0x2107ea[_0x25faa4(0x357)]>0x1)return null;const {primary:_0x1da447,range:_0x3465f1}=_0x2107ea[0x0];if(!_0x1da447||!_0x3465f1)return null;const _0x2d9f54=_0x5127d1[_0x25faa4(0x21b)](),_0x48285c=_0x2d9f54===null||_0x2d9f54===void 0x0||(_0x5031b2=_0x2d9f54[_0x25faa4(0x2c4)][_0x25faa4(0x1e6)](_0x806b60))===null||_0x5031b2===void 0x0?void 0x0:_0x5031b2['get'](_0x2f65cc),_0x4f3ff5=_0x48285c===null||_0x48285c===void 0x0||(_0x2becf2=_0x48285c[_0x25faa4(0x28d)]['getValue'](_0x1da447[_0x25faa4(0x2bf)],_0x1da447['actualColumn']))===null||_0x2becf2===void 0x0?void 0x0:_0x2becf2[_0x25faa4(0x2dc)];if(!_0x4f3ff5)return null;const _0x22dfa0=(_0x1100b4=_0x2d9f54[_0x25faa4(0x208)][_0x25faa4(0x1e6)](_0x806b60))===null||_0x1100b4===void 0x0||(_0x1100b4=_0x1100b4[_0x25faa4(0x1e6)](_0x2f65cc))===null||_0x1100b4===void 0x0?void 0x0:_0x1100b4[_0x25faa4(0x1e6)](_0x4f3ff5);if(!_0x22dfa0)return null;const _0x5de813={'unitId':_0x806b60,'subUnitId':_0x2f65cc,'range':_0x3465f1,'primary':_0x1da447,'groupId':_0x4f3ff5};return(0x0,react_jsx_runtime[_0x25faa4(0x298)])(_0x25faa4(0x29e),{'className':'univer-max-w-[290px]\x20univer-pb-4\x20univer-text-gray-900\x20dark:!univer-text-white','children':[(0x0,react_jsx_runtime[_0x25faa4(0x298)])(_0x25faa4(0x29e),{'className':_0x25faa4(0x396),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x25faa4(0x29e),{'className':(0x0,_univerjs_design['clsx'])(_0x25faa4(0x203),{'univer-text-primary-600':_0x3840d7}),'children':[(0x0,react_jsx_runtime[_0x25faa4(0x2bd)])(_0x25faa4(0x29e),{'onClick':()=>_0x3f90d0('basic'),'children':_0x146fa2['t'](_0x25faa4(0x29c))}),_0x3840d7&&(0x0,react_jsx_runtime['jsx'])(_0x25faa4(0x29e),{'className':_0x25faa4(0x2fc)})]}),(0x0,react_jsx_runtime[_0x25faa4(0x298)])(_0x25faa4(0x29e),{'className':(0x0,_univerjs_design[_0x25faa4(0x372)])(_0x25faa4(0x203),{'univer-text-primary-600':!_0x3840d7,'univer-cursor-not-allowed\x20univer-text-gray-200':_0x22dfa0[_0x25faa4(0x1e9)][_0x25faa4(0x38e)]===_univerjs_pro_sheets_sparkline[_0x25faa4(0x329)][_0x25faa4(0x31b)]}),'children':[(0x0,react_jsx_runtime[_0x25faa4(0x2bd)])(_0x25faa4(0x29e),{'onClick':()=>{const _0x42816f=_0x25faa4;if(_0x22dfa0[_0x42816f(0x1e9)][_0x42816f(0x38e)]===_univerjs_pro_sheets_sparkline[_0x42816f(0x329)][_0x42816f(0x31b)])return;_0x3f90d0(_0x42816f(0x25d));},'children':_0x146fa2['t'](_0x25faa4(0x395))}),!_0x3840d7&&(0x0,react_jsx_runtime[_0x25faa4(0x2bd)])('div',{'className':_0x25faa4(0x231)})]})]}),(0x0,react_jsx_runtime[_0x25faa4(0x2bd)])('div',{'children':_0x3840d7?(0x0,react_jsx_runtime[_0x25faa4(0x2bd)])(SparklineBasicSetting,{'config':_0x22dfa0,'ctx':_0x5de813}):(0x0,react_jsx_runtime[_0x25faa4(0x2bd)])(SparklineAdvancedSetting,{'config':_0x22dfa0,'ctx':_0x5de813})})]});};function isTargetRangesValid(_0x23a81d,_0x49fcf0,_0x392319){const _0x5ed075=_0x18ba0d;if(!_0x392319)return!![];if(_0x49fcf0[_0x5ed075(0x357)]!==_0x392319[_0x5ed075(0x357)]){if(_0x392319[_0x5ed075(0x357)]===0x1){const _0x533c02=_0x392319[0x0];if(_0x533c02[_0x5ed075(0x25e)]!==_0x533c02[_0x5ed075(0x23e)]&&_0x533c02['startColumn']!==_0x533c02[_0x5ed075(0x257)])return![];}else return![];}if(_0x23a81d==='item'){if(_0x392319[_0x5ed075(0x357)]!==0x1)return![];const {startRow:_0x2f6aed,startColumn:_0x53dba8,endRow:_0x54c005,endColumn:_0x2356ee}=_0x392319[0x0];if(_0x2f6aed!==_0x54c005&&_0x53dba8!==_0x2356ee)return![];}if(_0x392319[_0x5ed075(0x357)]>0x1){if(_0x392319[_0x5ed075(0x373)](_0x565368=>{const {startRow:_0x13b373,startColumn:_0x96dc6d,endRow:_0x389ceb,endColumn:_0x16fadf}=_0x565368;return _0x13b373!==_0x389ceb||_0x96dc6d!==_0x16fadf;}))return![];}else{const {startRow:_0x2c634f,startColumn:_0xb47f45,endRow:_0x26c0e7,endColumn:_0x5bbaf3}=_0x392319[0x0];if(_0x2c634f!==_0x26c0e7&&_0xb47f45!==_0x5bbaf3)return![];}let _0x110e74=0x0;for(const _0x452b3b of _0x392319)_0x110e74+=(_0x452b3b[_0x5ed075(0x23e)]-_0x452b3b['startRow']+0x1)*(_0x452b3b[_0x5ed075(0x257)]-_0x452b3b[_0x5ed075(0x292)]+0x1);if(_0x49fcf0[_0x5ed075(0x357)]>0x1){for(const _0x588395 of _0x49fcf0){const {startColumn:_0x1eca9f,startRow:_0x559f30,endRow:_0x1112a6,endColumn:_0x5cc7a9}=_0x588395;if(_0x1eca9f!==_0x5cc7a9&&_0x559f30!==_0x1112a6)return![];}for(const _0x34af84 of _0x392319){const {startColumn:_0x25323d,startRow:_0x42151e,endRow:_0x3411af,endColumn:_0x2a847c}=_0x34af84;if(_0x25323d!==_0x2a847c&&_0x42151e!==_0x3411af)return![];}return!![];}else{const _0x166878=_0x49fcf0[0x0][_0x5ed075(0x23e)]-_0x49fcf0[0x0]['startRow']+0x1,_0xbf8444=_0x49fcf0[0x0]['endColumn']-_0x49fcf0[0x0]['startColumn']+0x1;return _0x110e74===_0x166878||_0x110e74===_0xbf8444;}}const emptyOriginDataInfo={'cellSourceRanges':[],'cellTargetRanges':[],'groupSourceRanges':[],'groupTargetRanges':[]},getOriginDataSource=(_0x2d8852,_0x4149a5,_0x5014a5)=>{const _0x5ed200=_0x18ba0d;var _0x1b1d70,_0x593503;if(!_0x4149a5||!_0x5014a5)return emptyOriginDataInfo;const _0x55ff93=_0x2d8852[_0x5ed200(0x1e6)](_univerjs_core[_0x5ed200(0x24a)]),_0x1b6ddd=_0x2d8852[_0x5ed200(0x1e6)](_univerjs_pro_sheets_sparkline['SparklineDataSourceModel']),_0x2d693a=(0x0,_univerjs_sheets[_0x5ed200(0x2c7)])(_0x55ff93);if(!_0x2d693a)return;const {unitId:_0x371d48,subUnitId:_0x53247b}=_0x2d693a,{actualRow:_0x5b679d,actualColumn:_0x2af4cd}=_0x4149a5,_0x1a9f6b=(_0x1b1d70=_0x1b6ddd[_0x5ed200(0x21b)]()[_0x5ed200(0x208)][_0x5ed200(0x1e6)](_0x371d48))===null||_0x1b1d70===void 0x0||(_0x1b1d70=_0x1b1d70[_0x5ed200(0x1e6)](_0x53247b))===null||_0x1b1d70===void 0x0||(_0x1b1d70=_0x1b1d70[_0x5ed200(0x1e6)](_0x5014a5))===null||_0x1b1d70===void 0x0?void 0x0:_0x1b1d70[_0x5ed200(0x336)][_0x5ed200(0x28a)](_0x5b679d,_0x2af4cd);if(!_0x1a9f6b)return;const _0x2b05d4=[_0x1a9f6b],_0x56d39f=[(0x0,_univerjs_core[_0x5ed200(0x380)])(_0x5b679d,_0x2af4cd)],_0x5b85f3=[],_0x17807c=[],_0x36e912=(_0x593503=_0x1b6ddd[_0x5ed200(0x21b)]()[_0x5ed200(0x208)]['get'](_0x371d48))===null||_0x593503===void 0x0||(_0x593503=_0x593503['get'](_0x53247b))===null||_0x593503===void 0x0||(_0x593503=_0x593503[_0x5ed200(0x1e6)](_0x5014a5))===null||_0x593503===void 0x0?void 0x0:_0x593503['sparklines'];return _0x36e912===null||_0x36e912===void 0x0||_0x36e912['forValue']((_0x3f9a75,_0x3e9628,_0x5672b9)=>{const _0xb57ba6=_0x5ed200,_0x1a4309=_0x5672b9;_0x5b85f3['push'](_0x1a4309),_0x17807c['push']((0x0,_univerjs_core[_0xb57ba6(0x380)])(_0x3f9a75,_0x3e9628));}),{'cellSourceRanges':_0x2b05d4,'cellTargetRanges':_0x56d39f,'groupSourceRanges':_0x5b85f3,'groupTargetRanges':_0x17807c};};function _0x1810(){const _0x36a9b2=['sparklineAnchorMap','RIGHT','Fragment','getSheetCommandTarget','BUTTON','sheets-sparkline.selector.targetError','_markSelectionService','getCurrentRangeDisable$','sheets-sparkline.selector.sparkline','ISheetClipboardService','getCellInfo','extremumMax','RemoveSheetSparklineMutation','closePath','2px','_config','BAR_CHART','sheets-sparkline.panel.negativePoint','univer-ml-2\x20univer-transition-transform\x20univer-duration-300','useObservable','constructor','subUnitId','Range','useEffect','groupId','AddSheetSparklineMutation','color','equals','univer-text-xs\x20univer-text-red-500','sheets-sparkline.panel.min','SparklinePointsNames','ICommandService','random','object','lastPoint','sheets-sparkline.panel.lastPoint','registerRenderModule','IRenderManagerService','DeleteIcon','onCommandExecuted','nonNumShowAs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-px-0\x20univer-py-1.5\x20univer-text-sm\x20univer-font-medium','isDark','rgb(64,\x20159,\x2017)','open','SetSheetSparklineCommand','SHEET_SPARKLINE_SELECTOR','addHook','size','LAYOUT','univer-mr-0.5\x20univer-mt-0.5','foreach','getUnitId','stroke','intersects','univer-absolute\x20univer-bottom-0\x20univer-h-0.5\x20univer-w-full\x20univer-rounded-sm\x20univer-bg-primary-600\x20univer-transition-transform\x20univer-duration-300\x20univer-ease-in-out','GROUP_EXTREMUM','close','distinctUntilChanged','SheetPermissionCheckController','_autoFillService','#ffffff','AddSheetSparklineCommand','firstPoint','univer-h-7\x20univer-flex-1\x20univer-cursor-pointer\x20univer-rounded-sm\x20univer-text-center\x20univer-text-sm\x20univer-leading-7','fillRect','getCurrentSelections','Dropdown','univer-flex\x20univer-flex-col','19981737ZyqSPY','cols','clone','COL_HEADER','refreshShapes','_componentManager','updateConfig$','contains','univer-flex\x20univer-flex-col\x20univer-items-center\x20univer-gap-3\x20univer-p-3\x20univer-text-xs','sheets-sparkline.panel.gradient','useState','borderBottomClassName','basic','WinlossSparklineIcon','_initSelectionMove','shift','3274560ZCwajv','PIE_CHART','toStringTag','registerCommand','PREDEFINED_HOOK_NAME','sheet.operation.open-sparkline-panel','univer-mb-5\x20univer-text-sm','forEach','onStarting','actualColumn','reduce','ContextMenuPosition','useDependency','onRendered','reverse','SparklineTypeEnum','sheets-sparkline.remove','showMax','u-spacing','unitId','prototype','dispose','RangeProtectionCache','#FF9F40','univer-box-border\x20univer-flex\x20univer-h-8\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-justify-between\x20univer-p-3\x20univer-leading-8','CUT','extremumMin','univer-mt-3','sparklines','realDeleteValue','fill','univer-mb-3\x20univer-text-sm\x20univer-font-medium','borderClassName','toHexString','sheets-sparkline.panel.radius','RadioGroup','sheets-sparkline.panel.showZeroAxis','_sheetsSelectionsService','MoreDownIcon','sheets-sparkline.selector.title','IDialogService','_initPermissionWithSparkline','round','3246639DdsZsS','ComponentManager','_sheetSelectionService','Inject','View','parseInt','u-connect','toNativeArray','3px','rows','ColorPicker','univer-size-4\x20univer-pr-1','#9966FF','addClipboardHook','standard','352983RMrtCt','#f00c0c','Edit','length','PLUGIN_NAME','deserializeRangeWithSheet','univer-cursor-pointer','_sourceIds','serializeRange','_initRegisterCommand','sheets-sparkline.panel.showEmptyAs','SHEET_SPARKLINE_MENU','visible','Direction','points','_sheetPermissionCheckController','axis','#4BC0C0','sheets-sparkline.panel.manager','forValue','version','_sidebarService','PRINTING_RANGE','_commandService','Select','IMarkSelectionService','univer-flex\x20univer-w-full\x20univer-items-center\x20univer-justify-between\x20univer-rounded-sm','234686UgWcvn','sheets-sparkline.panel.lineWidth','useMemo','clsx','some','push','sheets-sparkline.panel.markersPoint','string','univer-mb-2\x20univer-text-sm\x20univer-text-gray-800\x20dark:!univer-text-gray-100','Checkbox','#REF!','WorkbookEditablePermission','_renderManagerService','sheets-sparkline.panel.zeroValue','univer-text-sm\x20univer-font-medium','abs','_sheetClipboardService','cellToRange','LEFT','interceptor','SERIES','GroupSparklineIcon','selectionMoveEnd$','sheets-sparkline.selector.sparklineGroup','sheets-sparkline.panel.showHidden','SparklineDataSourceModel','negativePoint','_sparklineDataSourceModel','worksheet','sheets-sparkline.panel.connectWithLine','toPrimitive','type','RangeProtectionPermissionEditPoint','_initComponents','getMatrix','undefined','univer-flex-1','touchDependencies','sheets-sparkline.panel.advanced','univer-relative\x20univer-mx-0\x20univer-my-4\x20univer-box-border\x20univer-flex\x20univer-h-10\x20univer-items-center\x20univer-justify-around','#E7E9ED','UniverSheetSparklineUIPlugin','PointColorDoubleIcon','univer-mb-2\x20univer-text-sm','sheets-sparkline.selector.confirm','sheets-sparkline.panel.','rgb(0,\x200,\x200)','getInterceptPoints','ONLY_FORMAT','SELF_EXTREMUM','LineSparklineIcon','filter','highPoint','UniverInstanceType','empty','subscribe','addColorStop','sheets-sparkline.title','sheets-sparkline.selector.setSource','SHEET_SPARKLINE_PANEL_ID','SheetPrintInterceptorService','discreteRangeToRange','Radio','SparklineExtremumTypeEnum','removeShape','sheet.operation.open-sparkline-selector','emptyShowAs','nonNum','min','8cqhMnu','restore','get','item','RemoveSheetSparklineCommand','config','SparklineThemeTypeEnum','_dialogService','number','combineLatest','default','univer-rounded-tl-0.5\x20univer-rounded-bl-0.5\x20univer-mr-2\x20univer-h-4\x20univer-w-6','univer-flex\x20univer-h-8\x20univer-w-full\x20univer-cursor-default\x20univer-items-center\x20univer-rounded-lg\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','PROFIT_AND_LOSS_CHART','_init','keys','6574358RnfnMV','ObjectMatrix','activeSheet$','sheets-sparkline.selector.cancel','sheets-sparkline.panel.adjustStyle','6XLcPkw','decorate','groupSourceRanges','lineWidth','SHEET_SPARKLINE_UI_PLUGIN','_sheetGraphicsRenderController','sheets-sparkline.panel.marker','_initMenu','sheets-sparkline.panel.horizontal','ColorKit','univer-relative\x20univer-flex\x20univer-h-full\x20univer-cursor-pointer\x20univer-flex-col\x20univer-font-medium\x20univer-leading-7','has','auditTime','pasteType','univer-flex\x20univer-items-center','sparklineModel','UniverSheetSparklinePlugin','markersPoint','@univerjs-pro/sheets-sparkline-ui','seriesColor','Disposable','univer-flex\x20univer-gap-5','isValidRange','none','LINE_CHART','endGradient','Module','sheets-sparkline.panel.composeManager','join','univer-truncate\x20univer-text-sm\x20univer-leading-tight\x20univer-text-gray-900\x20dark:!univer-text-white','CUSTOM_EXTREMUM','cellSourceRanges','getMenuHiddenObservable','univer-mb-2','getSparklineCache','includes','Plugin','DOWN','getSizeOf','sheets-sparkline.panel.spacing','sheets-sparkline.selector.multSourceError','lowPoint','univer-flex\x20univer-w-full\x20univer-rounded-lg\x20!univer-bg-gray-50\x20univer-p-0\x20dark:!univer-bg-gray-900','themeType','getSparkline','sheets-sparkline.edit','defineProperty','mergeInfo','_initAutoFillWithSparkline','sheets-sparkline.panel.moreSetting','WorksheetEditPermission','map','entries','SheetsSelectionsService','blockExecuteWithoutPermission','containHiddenCells','univer-bg-pruniver-text-primary-600\x20univer-absolute\x20univer-bottom-0\x20univer-h-0.5\x20univer-w-full\x20univer-rounded-sm\x20univer-transition-transform\x20univer-duration-300\x20univer-ease-in-out','rgba(73,\x20184,\x2017,\x200.05)','_sheetPrintInterceptorService','sourceRanges','lineJoin','arc','getDataRange','targetRanges','_initSkeleton','Button','value','sheet.sparkline.context-menu-id','_initClipboardWithSparkline','endRow','OPERATION','_injector','sheets-sparkline.panel.customMin','SparklineThemeMapping','univer-flex\x20univer-h-5\x20univer-w-[45%]\x20univer-items-center\x20univer-justify-between\x20univer-rounded-sm\x20hover:univer-bg-gray-200','params','span','deepClone','switchMap','symbol','SpacialShowAsEnum','IUniverInstanceService','primary','univer-flex\x20univer-h-8\x20univer-w-full\x20univer-items-center\x20univer-rounded-lg\x20univer-bg-gray-50\x20dark:!univer-bg-gray-900','function','beforeCommandExecuted','permission.dialog.editErr','split','setConfig','MoreRightIcon','getSubUnitSparkline','STANDARD','#B4A0E5','SHEET_SPARKLINE_PANEL','endColumn','realUnion','SPACING','clip','sheets-sparkline.panel.showNonNumAs','sheets-sparkline.panel.type','advanced','startRow','menu','beginPath','rect','sheets-sparkline.panel.itemMax','CUSTOM','COPY_TYPE','UnitAction','SUBITEMS','sheets-sparkline.panel.pie','UngroupSparklineIcon','#FF6384','useRef','_univerInstanceService','_targetIds','1px','WriteIcon','_configService','makeDirty','UniverSheetsGraphicsPlugin','#000','setValue','showGradient','from','SheetGraphicsRenderController','pipe','permissionCheckWithRanges','executeCommand','IAutoFillService','Rectangle','InputNumber','RangeSelector','UNIVER_SHEET','univer-mb-2\x20univer-flex\x20univer-w-full\x20univer-justify-between','sheets-sparkline.panel.customMax','COPY','generateRandomId','getColVisible','_initWorksheetChange','moveTo','NaN','merge','max','disposeWithMe','getValue','sheets-sparkline.panel.sparklineColor','univer-px-0\x20univer-py-2.5','matrix','packageName','save','ISidebarService','fillStyle','startColumn','sheets-sparkline.selector.resetSourceError','univer-mb-4\x20univer-box-content\x20univer-flex\x20univer-h-7\x20univer-w-full\x20univer-rounded-sm\x20univer-p-0.5','CONNECT_WITH_LINE','sheets-sparkline.selector.singleSourceError','getMergedCell','jsxs','ContextMenuGroup','_registerRenderer','values','sheets-sparkline.panel.basic','sheets-sparkline.panel.removeItem','div','Injector','MenuItemType','univer-m-0.5\x20univer-flex\x20univer-h-8\x20univer-flex-1\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-sm\x20univer-text-center\x20univer-leading-8','_rangeProtectionCache','RibbonInsertGroup','IConfigService','arcTo','group','lineTo','DependentOn','range','univer-rounded-tl-0.5\x20univer-rounded-bl-0.5\x20univer-h-4\x20univer-w-6','isNaN','Tools','univer-ml-3\x20univer-h-6\x20univer-w-14','useCallback','sheets-sparkline.panel.reverse','AUTO_FILL_APPLY_TYPE','iterator','addShapeWithNoFresh','showRadius','univer-mb-4','_menuManagerService','add','pluginName','univer-pb-4\x20univer-pl-4\x20univer-pt-2.5','strokeStyle','#36A2EB','getSparklineById','_localeService','jsx','startGradient','actualRow','transparent','univer-mx-0\x20univer-my-2\x20univer-text-sm\x20univer-text-gray-500','LocaleService','2042330OLaEDT'];_0x1810=function(){return _0x36a9b2;};return _0x1810();}function SparklineSelector(_0x15005c){const _0xeda87d=_0x18ba0d,{sourceRanges:_0x567ce9,targetRanges:_0x265a09,onConfirm:_0x481cca,onCancel:_0x326582,resetCtx:_0x1edf59}=_0x15005c,_0x38e086=(0x0,_univerjs_ui[_0xeda87d(0x326)])(_univerjs_core[_0xeda87d(0x24a)]),_0x31d4a4=(0x0,_univerjs_ui[_0xeda87d(0x326)])(_univerjs_core['ICommandService']),_0x54be61=(0x0,_univerjs_ui[_0xeda87d(0x326)])(_univerjs_pro_sheets_sparkline[_0xeda87d(0x388)]),_0x34846b=(0x0,_univerjs_ui[_0xeda87d(0x326)])(_univerjs_core[_0xeda87d(0x2c2)]),_0x529505=(0x0,_univerjs_ui[_0xeda87d(0x326)])(_univerjs_core['Injector']),[_0x3504f9,_0x90943f]=(0x0,react[_0xeda87d(0x314)])(),[_0x217bd4,_0x1be000]=(0x0,react[_0xeda87d(0x314)])(),[_0x44cfb2,_0x15383f]=(0x0,react['useState'])(_0x1edf59?_0xeda87d(0x1e7):_0xeda87d(0x210)),_0x2cb02d=(0x0,react[_0xeda87d(0x371)])(()=>{const _0x389597=_0xeda87d;return getOriginDataSource(_0x529505,_0x1edf59===null||_0x1edf59===void 0x0?void 0x0:_0x1edf59[_0x389597(0x24b)],_0x1edf59===null||_0x1edf59===void 0x0?void 0x0:_0x1edf59[_0x389597(0x2dc)]);},[_0x529505,_0x1edf59===null||_0x1edf59===void 0x0?void 0x0:_0x1edf59[_0xeda87d(0x2dc)],_0x1edf59===null||_0x1edf59===void 0x0?void 0x0:_0x1edf59[_0xeda87d(0x24b)]]),{cellSourceRanges:_0x1ea846,cellTargetRanges:_0x3a6ee7,groupSourceRanges:_0x10e665,groupTargetRanges:_0x3a44e7}=_0x2cb02d!==null&&_0x2cb02d!==void 0x0?_0x2cb02d:{},[_0x1378da,_0x29fe4b]=(0x0,react[_0xeda87d(0x314)])(_0x1edf59?_0x1ea846:_0x567ce9),[_0x897a1,_0x47ac86]=(0x0,react[_0xeda87d(0x314)])(_0x1edf59?_0x3a6ee7:_0x265a09),_0x54bb22=(0x0,_univerjs_ui[_0xeda87d(0x326)])(_univerjs_ui[_0xeda87d(0x342)]),_0x36009e=(0x0,react[_0xeda87d(0x26a)])(null);(0x0,react[_0xeda87d(0x2db)])(()=>{const _0x5f3ccb=_0xeda87d;if((_0x1378da===null||_0x1378da===void 0x0?void 0x0:_0x1378da[_0x5f3ccb(0x357)])===0x0)_0x90943f(void 0x0);if((_0x897a1===null||_0x897a1===void 0x0?void 0x0:_0x897a1[_0x5f3ccb(0x357)])===0x0)_0x1be000(void 0x0);_0x1be000(isTargetRangesValid(_0x44cfb2,_0x1378da,_0x897a1)?void 0x0:_0x34846b['t'](_0x5f3ccb(0x2c9)));},[_0x34846b,_0x44cfb2,_0x1378da,_0x897a1]);const _0x41dfa0=_0x2194d6=>{const _0x55ef3c=_0xeda87d;_0x15383f(_0x2194d6),_0x29fe4b(_0x2194d6===_0x55ef3c(0x1e7)?_0x2cb02d===null||_0x2cb02d===void 0x0?void 0x0:_0x2cb02d[_0x55ef3c(0x218)]:_0x2cb02d===null||_0x2cb02d===void 0x0?void 0x0:_0x2cb02d[_0x55ef3c(0x1fb)]),_0x47ac86(_0x2194d6===_0x55ef3c(0x1e7)?_0x2cb02d===null||_0x2cb02d===void 0x0?void 0x0:_0x2cb02d['cellTargetRanges']:_0x2cb02d===null||_0x2cb02d===void 0x0?void 0x0:_0x2cb02d['groupTargetRanges']);},{initSourceRangeStr:_0xee1ec9,initTargetRangeStr:_0x22d80e}=(0x0,react[_0xeda87d(0x371)])(()=>{const _0x5e6d95=_0xeda87d;var _0x2c8b71,_0x43ab48;let _0x555422,_0x1fd06b;return _0x1edf59?(_0x555422=_0x44cfb2===_0x5e6d95(0x1e7)?_0x1ea846:_0x10e665,_0x1fd06b=_0x44cfb2===_0x5e6d95(0x1e7)?_0x3a6ee7:_0x3a44e7):(_0x555422=_0x567ce9,_0x1fd06b=_0x265a09),{'initSourceRangeStr':(_0x2c8b71=_0x555422===null||_0x555422===void 0x0?void 0x0:_0x555422[_0x5e6d95(0x22c)](_0x2073f4=>{const _0x4d3daa=_0x5e6d95;if(!(0x0,_univerjs_core[_0x4d3daa(0x20f)])(_0x2073f4))return _0x90943f(_0x34846b['t'](_0x4d3daa(0x2c9))),_0x4d3daa(0x379);const _0x174a67=(0x0,_univerjs_engine_formula[_0x4d3daa(0x35c)])(_0x2073f4);return _0x174a67===_0x4d3daa(0x286)?'':_0x174a67;})['filter'](_0x115e9e=>!!_0x115e9e)[_0x5e6d95(0x215)](','))!==null&&_0x2c8b71!==void 0x0?_0x2c8b71:'','initTargetRangeStr':(_0x43ab48=_0x1fd06b===null||_0x1fd06b===void 0x0?void 0x0:_0x1fd06b['map'](_0x46459c=>{const _0x3c7622=_0x5e6d95,_0x28270b=(0x0,_univerjs_engine_formula['serializeRange'])(_0x46459c);return _0x28270b===_0x3c7622(0x286)?'':_0x28270b;})['filter'](_0x32aafc=>!!_0x32aafc)[_0x5e6d95(0x215)](','))!==null&&_0x43ab48!==void 0x0?_0x43ab48:''};},[_0x1ea846,_0x3a6ee7,_0x10e665,_0x3a44e7,_0x34846b,_0x567ce9,_0x265a09,_0x1edf59,_0x44cfb2]),_0x30f339=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x38e086);if(!_0x30f339)return null;const {unitId:_0x31d4b6,subUnitId:_0x507207,worksheet:_0x4554c1}=_0x30f339;return(0x0,react_jsx_runtime[_0xeda87d(0x298)])(_0xeda87d(0x29e),{'ref':_0x36009e,'children':[Boolean(_0x1edf59)&&(0x0,react_jsx_runtime[_0xeda87d(0x298)])(react_jsx_runtime[_0xeda87d(0x2c6)],{'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0xeda87d(0x39a),'children':_0x34846b['t']('sheets-sparkline.selector.changeType')}),(0x0,react_jsx_runtime[_0xeda87d(0x298)])(_0xeda87d(0x29e),{'className':(0x0,_univerjs_design['clsx'])(_0xeda87d(0x294),_univerjs_design[_0xeda87d(0x33a)]),'children':[(0x0,react_jsx_runtime[_0xeda87d(0x2bd)])(_0xeda87d(0x29e),{'className':(0x0,_univerjs_design[_0xeda87d(0x372)])(_0xeda87d(0x305),{'univer-bg-blue-200\x20univer-scrollbar-corner-primary-600':_0x44cfb2===_0xeda87d(0x1e7)}),'onClick':()=>_0x41dfa0('item'),'children':_0x34846b['t'](_0xeda87d(0x2cc))}),(0x0,react_jsx_runtime['jsx'])(_0xeda87d(0x29e),{'className':(0x0,_univerjs_design[_0xeda87d(0x372)])(_0xeda87d(0x305),{'univer-bg-blue-200\x20univer-scrollbar-corner-primary-600':_0x44cfb2===_0xeda87d(0x2a6)}),'onClick':()=>_0x41dfa0(_0xeda87d(0x2a6)),'children':_0x34846b['t'](_0xeda87d(0x386))})]})]}),(0x0,react_jsx_runtime[_0xeda87d(0x298)])(_0xeda87d(0x29e),{'className':_0xeda87d(0x2b4),'children':[(0x0,react_jsx_runtime[_0xeda87d(0x2bd)])(_0xeda87d(0x29e),{'className':_0xeda87d(0x377),'children':_0x34846b['t'](_0xeda87d(0x1d9))}),(0x0,react_jsx_runtime[_0xeda87d(0x2bd)])(_univerjs_sheets_formula_ui[_0xeda87d(0x27d)],{'unitId':_0x31d4b6,'subUnitId':_0x507207,'initialValue':_0xee1ec9,'onChange':(_0x12083a,_0xdd97e0)=>{const _0x130be3=_0xeda87d,_0x1506c4=_0xdd97e0[_0x130be3(0x250)](',')[_0x130be3(0x22c)](_univerjs_engine_formula[_0x130be3(0x359)])[_0x130be3(0x22c)](_0x28afb0=>_univerjs_core[_0x130be3(0x2da)]['transformRange'](_0x28afb0[_0x130be3(0x2a9)],_0x4554c1));if(_0x1506c4['some'](_0x274916=>!(0x0,_univerjs_core[_0x130be3(0x20f)])(_0x274916)||_0x274916[_0x130be3(0x257)]<_0x274916[_0x130be3(0x292)]||_0x274916[_0x130be3(0x23e)]<_0x274916[_0x130be3(0x25e)]))return;if(_0x1506c4[_0x130be3(0x357)]>0x1){if(_0x44cfb2===_0x130be3(0x1e7)){_0x90943f(_0x34846b['t'](_0x130be3(0x296)));return;}const _0x2f2cf1=_0x1506c4['some'](_0x415544=>{const {startRow:_0x1b028e,endRow:_0x524939,startColumn:_0x414eb4,endColumn:_0x56d5a5}=_0x415544;return _0x1b028e!==_0x524939&&_0x414eb4!==_0x56d5a5;});_0x90943f(_0x2f2cf1?_0x34846b['t'](_0x130be3(0x221)):void 0x0);if(!_0x2f2cf1)_0x29fe4b(_0x1506c4);return;}else{const {startRow:_0x16e23f,endRow:_0x99e461,startColumn:_0x2e8379,endColumn:_0x422969}=_0x1506c4[0x0];if(_0x44cfb2===_0x130be3(0x1e7)&&_0x16e23f!==_0x99e461&&_0x2e8379!==_0x422969){_0x90943f(_0x34846b['t'](_0x130be3(0x293)));return;}}_0x90943f(void 0x0),_0x29fe4b(_0x1506c4);},'supportAcrossSheet':![]},_0xee1ec9),_0x3504f9?(0x0,react_jsx_runtime[_0xeda87d(0x2bd)])(_0xeda87d(0x29e),{'className':_0xeda87d(0x2e0),'children':_0x3504f9}):null]}),(0x0,react_jsx_runtime[_0xeda87d(0x298)])(_0xeda87d(0x29e),{'className':'univer-mb-4','children':[(0x0,react_jsx_runtime[_0xeda87d(0x2bd)])('div',{'className':_0xeda87d(0x377),'children':_0x34846b['t']('sheets-sparkline.selector.setTarget')}),(0x0,react_jsx_runtime[_0xeda87d(0x2bd)])(_univerjs_sheets_formula_ui[_0xeda87d(0x27d)],{'unitId':_0x31d4b6,'subUnitId':_0x507207,'initialValue':_0x22d80e,'onChange':(_0x3ba882,_0x12475e)=>{const _0x234a62=_0xeda87d,_0x2969b2=_0x12475e['split'](',')[_0x234a62(0x22c)](_univerjs_engine_formula[_0x234a62(0x359)])['map'](_0x1211f2=>_0x1211f2[_0x234a62(0x2a9)]);if(_0x2969b2['some'](_0x5291d8=>!(0x0,_univerjs_core['isValidRange'])(_0x5291d8)||_0x5291d8[_0x234a62(0x257)]<_0x5291d8[_0x234a62(0x292)]||_0x5291d8[_0x234a62(0x23e)]<_0x5291d8[_0x234a62(0x25e)]))return;_0x47ac86(_0x2969b2);},'supportAcrossSheet':![]},_0x22d80e),_0x217bd4?(0x0,react_jsx_runtime[_0xeda87d(0x2bd)])(_0xeda87d(0x29e),{'className':'univer-text-xs\x20univer-text-red-500','children':_0x217bd4}):null]}),(0x0,react_jsx_runtime[_0xeda87d(0x298)])('div',{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0xeda87d(0x2bd)])(_univerjs_design['Button'],{'onClick':()=>{const _0xb9dd53=_0xeda87d;_0x54bb22[_0xb9dd53(0x2fe)](SHEET_SPARKLINE_SELECTOR);},'children':_0x34846b['t'](_0xeda87d(0x1f7))}),(0x0,react_jsx_runtime[_0xeda87d(0x2bd)])(_univerjs_design[_0xeda87d(0x23a)],{'variant':_0xeda87d(0x24b),'onClick':()=>{const _0x39b438=_0xeda87d;if(_0x1378da&&_0x897a1&&!_0x3504f9&&!_0x217bd4){if(_0x1edf59){var _0x4a2638;const _0x4b0ce0=(_0x4a2638=_0x54be61[_0x39b438(0x21b)]()[_0x39b438(0x208)][_0x39b438(0x1e6)](_0x31d4b6))===null||_0x4a2638===void 0x0||(_0x4a2638=_0x4a2638[_0x39b438(0x1e6)](_0x507207))===null||_0x4a2638===void 0x0?void 0x0:_0x4a2638[_0x39b438(0x1e6)](_0x1edf59[_0x39b438(0x2dc)]);_0x31d4a4[_0x39b438(0x279)](_univerjs_pro_sheets_sparkline['SetSheetSparklineCommand']['id'],{'config':_0x4b0ce0,'isChangeDataSource':!![],'changeDataSourceInfo':{'sourceRanges':_0x1378da,'targetRanges':_0x897a1,'groupId':_0x1edf59['groupId'],'resetType':_0x44cfb2,'primary':_0x1edf59['primary']}}),_0x326582();}else _0x481cca({'sourceRanges':_0x1378da,'targetRanges':_0x897a1});}},'disabled':Boolean(_0x3504f9||_0x217bd4),'children':_0x34846b['t'](_0xeda87d(0x39b))})]})]});}const SHEET_SPARKLINE_CONTEXT_MENU_ID=_0x18ba0d(0x23c);function SheetSparklineMenuFactory(_0xe1b3e){const _0x11d7ff=_0x18ba0d;return{'id':OpenSparklineSelectorOperation['id'],'title':_0x11d7ff(0x1d8),'tooltip':_0x11d7ff(0x1d8),'icon':SHEET_SPARKLINE_MENU,'type':_univerjs_ui['MenuItemType'][_0x11d7ff(0x2c8)],'hidden$':(0x0,_univerjs_ui[_0x11d7ff(0x219)])(_0xe1b3e,_univerjs_core[_0x11d7ff(0x1d4)][_0x11d7ff(0x27e)]),'disabled$':(0x0,_univerjs_sheets_ui[_0x11d7ff(0x2cb)])(_0xe1b3e,{'workbookTypes':[_univerjs_sheets['WorkbookEditablePermission']],'worksheetTypes':[_univerjs_sheets[_0x11d7ff(0x22b)]],'rangeTypes':[_univerjs_sheets['RangeProtectionPermissionEditPoint']]})};}function SheetSparklineContextMenu(_0x2b2a9a){const _0x8f6c27=_0x18ba0d;return{'id':SHEET_SPARKLINE_CONTEXT_MENU_ID,'type':_univerjs_ui[_0x8f6c27(0x2a0)][_0x8f6c27(0x266)],'icon':SHEET_SPARKLINE_MENU,'title':_0x8f6c27(0x1d8),'hidden$':(0x0,rxjs[_0x8f6c27(0x1ed)])([(0x0,_univerjs_ui[_0x8f6c27(0x219)])(_0x2b2a9a,_univerjs_core[_0x8f6c27(0x1d4)][_0x8f6c27(0x27e)]),getSparklineContextMenuHidden(_0x2b2a9a)])[_0x8f6c27(0x277)]((0x0,rxjs[_0x8f6c27(0x22c)])(([_0x2d695f,_0x5d246a])=>_0x2d695f||_0x5d246a))};}function SheetRemoveSparklineContextMenuFactory(_0x3c773d){const _0x3ef47f=_0x18ba0d;return{'id':_univerjs_pro_sheets_sparkline['RemoveSheetSparklineCommand']['id'],'type':_univerjs_ui[_0x3ef47f(0x2a0)][_0x3ef47f(0x2c8)],'title':_0x3ef47f(0x32a),'tooltip':_0x3ef47f(0x32a),'disabled$':(0x0,_univerjs_sheets_ui['getCurrentRangeDisable$'])(_0x3c773d,{'workbookTypes':[_univerjs_sheets[_0x3ef47f(0x37a)]],'worksheetTypes':[_univerjs_sheets[_0x3ef47f(0x22b)]],'rangeTypes':[_univerjs_sheets[_0x3ef47f(0x38f)]]})};}function SheetSparklinePanelMenuFactory(_0xff583){const _0x234996=_0x18ba0d;return{'id':OpenSparklinePanelOperation['id'],'title':_0x234996(0x226),'tooltip':_0x234996(0x226),'type':_univerjs_ui['MenuItemType']['BUTTON'],'disabled$':(0x0,_univerjs_sheets_ui[_0x234996(0x2cb)])(_0xff583,{'workbookTypes':[_univerjs_sheets[_0x234996(0x37a)]],'worksheetTypes':[_univerjs_sheets[_0x234996(0x22b)]],'rangeTypes':[_univerjs_sheets[_0x234996(0x38f)]]})};}function getSparklineContextMenuHidden(_0x24ea18){const _0x30809c=_0x18ba0d,_0x2c6fa5=_0x24ea18['get'](_univerjs_core[_0x30809c(0x24a)])['getCurrentTypeOfUnit$'](_univerjs_core[_0x30809c(0x1d4)][_0x30809c(0x27e)]),_0x49c80c=_0x24ea18[_0x30809c(0x1e6)](_univerjs_pro_sheets_sparkline[_0x30809c(0x388)]),_0x4b8c62=_0x24ea18['get'](_univerjs_sheets[_0x30809c(0x330)]);return _0x2c6fa5[_0x30809c(0x277)]((0x0,rxjs[_0x30809c(0x247)])(_0x2a097d=>{const _0x8799b=_0x30809c;if(!_0x2a097d)return(0x0,rxjs['of'])(!![]);return _0x2a097d[_0x8799b(0x1f6)]['pipe']((0x0,rxjs[_0x8799b(0x247)])(_0x4c275b=>{const _0x3d02ec=_0x8799b;if(!_0x4c275b)return(0x0,rxjs['of'])(!![]);const _0x39b660=_0x24ea18['get'](_univerjs_sheets['SheetsSelectionsService']);return(0x0,rxjs['merge'])(_0x39b660['selectionMoveEnd$'],_0x49c80c[_0x3d02ec(0x310)])[_0x3d02ec(0x277)]((0x0,rxjs['map'])(()=>{const _0x43780b=_0x3d02ec,_0x3a682f=_0x39b660[_0x43780b(0x307)]();if(_0x3a682f[_0x43780b(0x357)]>0x1||_0x3a682f[_0x43780b(0x357)]===0x0)return!![];const {primary:_0x1192a2,range:_0x445890}=_0x3a682f[0x0];if(!_0x1192a2)return!![];const _0xfd058b=_0x2a097d[_0x43780b(0x2f9)](),_0x2b6735=_0x4c275b['getSheetId']();if(!_0x49c80c['getSparkline'](_0xfd058b,_0x2b6735,_0x1192a2[_0x43780b(0x2bf)],_0x1192a2[_0x43780b(0x323)]))return!![];const _0x3c3097=new Set();_univerjs_core['Range'][_0x43780b(0x2f8)](_0x445890,(_0x4f02b4,_0x5c822b)=>{const _0x6d7cbf=_0x43780b,_0x24caa1=_0x49c80c[_0x6d7cbf(0x225)](_0xfd058b,_0x2b6735,_0x4f02b4,_0x5c822b);if(_0x24caa1){if(_0x49c80c[_0x6d7cbf(0x2bb)](_0xfd058b,_0x2b6735,_0x24caa1))_0x3c3097[_0x6d7cbf(0x2b6)](_0x24caa1);}});let _0x4e8c35=!![];_0x3c3097['forEach'](_0x5b4301=>{const _0x195e0d=_0x43780b,_0x1367a6=_0x49c80c[_0x195e0d(0x2bb)](_0xfd058b,_0x2b6735,_0x5b4301);if(_0x1367a6&&_0x4e8c35)_0x1367a6[_0x195e0d(0x336)][_0x195e0d(0x367)]((_0x4f2255,_0x449de7)=>{const _0x4578c7=_0x195e0d;var _0x430816;if(((_0x430816=_0x4b8c62[_0x4578c7(0x2ce)](_0xfd058b,_0x2b6735,_0x4f2255,_0x449de7))===null||_0x430816===void 0x0?void 0x0:_0x430816[_univerjs_sheets[_0x4578c7(0x265)][_0x4578c7(0x356)]])===![])_0x4e8c35=![];});});if(_0x4e8c35)return![];return!![];}));}));}));}const menuSchema={[_univerjs_ui[_0x18ba0d(0x2a3)]['MEDIA']]:{[OpenSparklineSelectorOperation['id']]:{'order':0x3,'menuItemFactory':SheetSparklineMenuFactory}},[_univerjs_ui['ContextMenuPosition']['MAIN_AREA']]:{[_univerjs_ui[_0x18ba0d(0x299)]['DATA']]:{[SHEET_SPARKLINE_CONTEXT_MENU_ID]:{'order':0x5,'menuItemFactory':SheetSparklineContextMenu,[OpenSparklinePanelOperation['id']]:{'menuItemFactory':SheetSparklinePanelMenuFactory},[_univerjs_pro_sheets_sparkline[_0x18ba0d(0x1e8)]['id']]:{'menuItemFactory':SheetRemoveSparklineContextMenuFactory}}}},[_univerjs_ui[_0x18ba0d(0x325)][_0x18ba0d(0x30d)]]:{[_univerjs_ui[_0x18ba0d(0x299)][_0x18ba0d(0x2f6)]]:{[SHEET_SPARKLINE_CONTEXT_MENU_ID]:{[OpenSparklinePanelOperation['id']]:{'menuItemFactory':SheetSparklinePanelMenuFactory},[_univerjs_pro_sheets_sparkline[_0x18ba0d(0x1e8)]['id']]:{'menuItemFactory':SheetRemoveSparklineContextMenuFactory}}}},[_univerjs_ui[_0x18ba0d(0x325)]['ROW_HEADER']]:{[_univerjs_ui['ContextMenuGroup'][_0x18ba0d(0x2f6)]]:{[SHEET_SPARKLINE_CONTEXT_MENU_ID]:{[OpenSparklinePanelOperation['id']]:{'menuItemFactory':SheetSparklinePanelMenuFactory},[_univerjs_pro_sheets_sparkline[_0x18ba0d(0x1e8)]['id']]:{'menuItemFactory':SheetRemoveSparklineContextMenuFactory}}}}};let SheetsSparklineMenuController=class SheetsSparklineMenuController extends _univerjs_core[_0x18ba0d(0x20d)]{constructor(_0x154a38,_0x101dec){const _0x5c68c1=_0x18ba0d;super(),this[_0x5c68c1(0x2b5)]=_0x154a38,this[_0x5c68c1(0x30f)]=_0x101dec,this['_initMenu'](),this['_initComponents']();}[_0x18ba0d(0x390)](){const _0x39a0d5=_0x18ba0d;[[SHEET_SPARKLINE_MENU,_univerjs_icons[_0x39a0d5(0x1d1)]],[SHEET_SPARKLINE_SELECTOR,SparklineSelector],[SHEET_SPARKLINE_PANEL,SparklinePanel]][_0x39a0d5(0x321)](([_0x11dfd7,_0x3a3363])=>{const _0x43fe0d=_0x39a0d5;this['disposeWithMe'](this[_0x43fe0d(0x30f)]['register'](_0x11dfd7,_0x3a3363));});}[_0x18ba0d(0x200)](){const _0x362ef3=_0x18ba0d;this[_0x362ef3(0x2b5)]['mergeMenu'](menuSchema);}};SheetsSparklineMenuController=__decorate([__decorateParam(0x0,_univerjs_ui['IMenuManagerService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_ui[_0x18ba0d(0x346)]))],SheetsSparklineMenuController);function _typeof(_0x1859f0){'@babel/helpers - typeof';const _0x714351=_0x18ba0d;return _typeof=_0x714351(0x24d)==typeof Symbol&&'symbol'==typeof Symbol[_0x714351(0x2b1)]?function(_0x246687){return typeof _0x246687;}:function(_0x2a7d57){const _0x523107=_0x714351;return _0x2a7d57&&_0x523107(0x24d)==typeof Symbol&&_0x2a7d57[_0x523107(0x2d8)]===Symbol&&_0x2a7d57!==Symbol[_0x523107(0x32e)]?_0x523107(0x248):typeof _0x2a7d57;},_typeof(_0x1859f0);}function _0x3ec9(_0x14c61a,_0x10c241){_0x14c61a=_0x14c61a-0x1cd;const _0x181051=_0x1810();let _0x3ec9fa=_0x181051[_0x14c61a];return _0x3ec9fa;}function toPrimitive(_0x54ca9d,_0x27e1f7){const _0x259a16=_0x18ba0d;if(_0x259a16(0x2e5)!=_typeof(_0x54ca9d)||!_0x54ca9d)return _0x54ca9d;var _0x492dc5=_0x54ca9d[Symbol[_0x259a16(0x38d)]];if(void 0x0!==_0x492dc5){var _0x220e93=_0x492dc5['call'](_0x54ca9d,_0x27e1f7||_0x259a16(0x1ee));if(_0x259a16(0x2e5)!=_typeof(_0x220e93))return _0x220e93;throw new TypeError(_0x259a16(0x2ed));}return(_0x259a16(0x376)===_0x27e1f7?String:Number)(_0x54ca9d);}function toPropertyKey(_0x2f62fe){const _0x4f7e87=_0x18ba0d;var _0x56daf8=toPrimitive(_0x2f62fe,_0x4f7e87(0x376));return _0x4f7e87(0x248)==_typeof(_0x56daf8)?_0x56daf8:_0x56daf8+'';}function _defineProperty(_0x308665,_0xd0b5a,_0x8883ce){const _0x50a5c3=_0x18ba0d;return(_0xd0b5a=toPropertyKey(_0xd0b5a))in _0x308665?Object[_0x50a5c3(0x227)](_0x308665,_0xd0b5a,{'value':_0x8883ce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x308665[_0xd0b5a]=_0x8883ce,_0x308665;}let SheetSparklineSelectionController=class SheetSparklineSelectionController extends _univerjs_core['Disposable']{constructor(_0x568548,_0x5f2759,_0x247d77,_0x2abf23,_0x5dffba,_0x168100,_0x3795af,_0x27f086){const _0x4937ee=_0x18ba0d;super(),this[_0x4937ee(0x347)]=_0x568548,this[_0x4937ee(0x26b)]=_0x5f2759,this[_0x4937ee(0x38a)]=_0x247d77,this[_0x4937ee(0x369)]=_0x2abf23,this[_0x4937ee(0x2ca)]=_0x5dffba,this[_0x4937ee(0x2a2)]=_0x168100,this['_commandService']=_0x3795af,this[_0x4937ee(0x1eb)]=_0x27f086,_defineProperty(this,_0x4937ee(0x26c),[]),_defineProperty(this,_0x4937ee(0x35b),[]),this[_0x4937ee(0x318)](),this[_0x4937ee(0x284)]();}[_0x18ba0d(0x284)](){const _0x27da42=_0x18ba0d;this[_0x27da42(0x36b)][_0x27da42(0x2eb)](_0x384110=>{const _0x6166d6=_0x27da42;_0x384110['id']===_univerjs_sheets['SetWorksheetActiveOperation']['id']&&(this['_sidebarService'][_0x6166d6(0x2fe)](SHEET_SPARKLINE_PANEL_ID),this['_dialogService'][_0x6166d6(0x2fe)](SHEET_SPARKLINE_SELECTOR));});}['_initSelectionMove'](){const _0x12337d=_0x18ba0d;this[_0x12337d(0x289)]((0x0,rxjs[_0x12337d(0x287)])(this[_0x12337d(0x347)][_0x12337d(0x385)]['pipe']((0x0,rxjs[_0x12337d(0x2ff)])((_0x37db76,_0x77e9a5)=>{const _0x1d9e70=_0x12337d;if(_0x37db76[_0x1d9e70(0x357)]!==_0x77e9a5[_0x1d9e70(0x357)])return![];else return!_0x77e9a5['some']((_0x23995e,_0x37b2f1)=>{const _0x312677=_0x1d9e70;return!_univerjs_core[_0x312677(0x27b)][_0x312677(0x2df)](_0x23995e[_0x312677(0x2a9)],_0x37db76[_0x37b2f1]['range']);});})),this[_0x12337d(0x38a)][_0x12337d(0x310)][_0x12337d(0x277)]((0x0,rxjs['auditTime'])(0x1f4)))['subscribe'](()=>{const _0x1d893f=_0x12337d;var _0x5b5695,_0x5819ad,_0x16569c,_0xad4e86;const _0x2a1add=this[_0x1d893f(0x347)]['getCurrentSelections']();[...this['_targetIds'],...this[_0x1d893f(0x35b)]][_0x1d893f(0x321)](_0x388f2b=>{const _0x13a81c=_0x1d893f;_0x388f2b&&this[_0x13a81c(0x2ca)][_0x13a81c(0x1df)](_0x388f2b);});const _0x52f8b0=(0x0,_univerjs_sheets[_0x1d893f(0x2c7)])(this[_0x1d893f(0x26b)]);if(!_0x52f8b0){this['_sidebarService'][_0x1d893f(0x2fe)](SHEET_SPARKLINE_PANEL_ID);return;}const {unitId:_0x4d9e24,subUnitId:_0x4be064,worksheet:_0x38bd97}=_0x52f8b0;if(!_0x2a1add||_0x2a1add[_0x1d893f(0x357)]!==0x1){this[_0x1d893f(0x369)][_0x1d893f(0x2fe)](SHEET_SPARKLINE_PANEL_ID);return;}const {primary:_0x2921bb,range:_0x3f4376}=_0x2a1add[0x0];if(!_0x2921bb){this['_sidebarService'][_0x1d893f(0x2fe)](SHEET_SPARKLINE_PANEL_ID);return;}let _0x4f64e9=_0x2921bb[_0x1d893f(0x2bf)],_0x3cc6c0=_0x2921bb['actualColumn'];const _0x59dde0=_0x38bd97[_0x1d893f(0x297)](_0x2921bb===null||_0x2921bb===void 0x0?void 0x0:_0x2921bb[_0x1d893f(0x2bf)],_0x2921bb===null||_0x2921bb===void 0x0?void 0x0:_0x2921bb[_0x1d893f(0x323)]);_0x59dde0&&(_0x4f64e9=_0x59dde0[_0x1d893f(0x25e)],_0x3cc6c0=_0x59dde0[_0x1d893f(0x292)]);if(((_0x5b5695=this[_0x1d893f(0x2a2)]['getCellInfo'](_0x4d9e24,_0x4be064,_0x4f64e9,_0x3cc6c0))===null||_0x5b5695===void 0x0?void 0x0:_0x5b5695[_univerjs_sheets[_0x1d893f(0x265)]['Edit']])===![]){this[_0x1d893f(0x369)][_0x1d893f(0x2fe)](SHEET_SPARKLINE_PANEL_ID);return;}const _0x492504=this[_0x1d893f(0x38a)][_0x1d893f(0x21b)](),_0x47a9e7=_0x492504===null||_0x492504===void 0x0||(_0x5819ad=_0x492504[_0x1d893f(0x2c4)][_0x1d893f(0x1e6)](_0x4d9e24))===null||_0x5819ad===void 0x0?void 0x0:_0x5819ad[_0x1d893f(0x1e6)](_0x4be064),_0x583b06=_0x47a9e7===null||_0x47a9e7===void 0x0||(_0x16569c=_0x47a9e7[_0x1d893f(0x28d)][_0x1d893f(0x28a)](_0x4f64e9,_0x3cc6c0))===null||_0x16569c===void 0x0?void 0x0:_0x16569c[_0x1d893f(0x2dc)];if(!_0x583b06){this[_0x1d893f(0x369)][_0x1d893f(0x2fe)](SHEET_SPARKLINE_PANEL_ID);return;}const _0x529b6e=(_0xad4e86=this[_0x1d893f(0x38a)][_0x1d893f(0x2bb)](_0x4d9e24,_0x4be064,_0x583b06))===null||_0xad4e86===void 0x0?void 0x0:_0xad4e86[_0x1d893f(0x336)];_0x529b6e&&(findRanges(_0x529b6e['getMatrix'](),_0x38bd97)['forEach'](_0x19693c=>{const _0x42dc5b=_0x1d893f,_0x504c79=updateMarkSelection(_0x19693c,this[_0x42dc5b(0x2ca)],'#49B811',_0x42dc5b(0x232));_0x504c79&&this[_0x42dc5b(0x35b)][_0x42dc5b(0x374)](_0x504c79);}),_0x529b6e[_0x1d893f(0x367)]((_0x675b8e,_0x2277ba,_0xb27ecc)=>{const _0x11eb2d=_0x1d893f,_0x43239b=_0xb27ecc;if(_0x43239b&&_univerjs_core[_0x11eb2d(0x27b)]['intersects']((0x0,_univerjs_core[_0x11eb2d(0x380)])(_0x675b8e,_0x2277ba),_0x3f4376)){const _0x2b6ef9=updateMarkSelection(_0x43239b,this['_markSelectionService'],_0x11eb2d(0x355),'rgba(232,\x2095,\x2095,\x200.05)');_0x2b6ef9&&this[_0x11eb2d(0x35b)][_0x11eb2d(0x374)](_0x2b6ef9);}}),this[_0x1d893f(0x2ca)][_0x1d893f(0x30e)]());}));}};SheetSparklineSelectionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_sheets[_0x18ba0d(0x22e)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_core['IUniverInstanceService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_pro_sheets_sparkline[_0x18ba0d(0x388)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_ui[_0x18ba0d(0x290)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_sheets_ui[_0x18ba0d(0x36d)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_sheets[_0x18ba0d(0x330)])),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x18ba0d(0x2e3)])),__decorateParam(0x7,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_ui[_0x18ba0d(0x342)]))],SheetSparklineSelectionController);function updateMarkSelection(_0x380a69,_0x2dea7d,_0x526b40,_0x12a3fe){const _0x16cd95=_0x18ba0d;if((0x0,_univerjs_core[_0x16cd95(0x20f)])(_0x380a69)){const _0x2a3f22=_0x2dea7d[_0x16cd95(0x2b2)]({'range':_0x380a69,'style':{'fill':_0x12a3fe,'strokeWidth':0x1,'stroke':_0x526b40,'widgets':{}},'primary':null},void 0x0,-0xa);if(_0x2a3f22)return _0x2a3f22;}}function findRanges(_0x327369,_0x5d5333){const _0x357cce=_0x18ba0d,_0x4f1e73=[],_0x201478=new Set();function _0x482051(_0xa6fa36,_0x5653d9){const _0x8d4072=_0x3ec9;var _0x31ea27;return Boolean(((_0x31ea27=_0x327369[_0xa6fa36])===null||_0x31ea27===void 0x0?void 0x0:_0x31ea27[_0x5653d9])&&!_0x201478[_0x8d4072(0x204)](_0xa6fa36+'-'+_0x5653d9));}function _0x250233(_0x529237,_0x4f26a0){const _0x16bd78=_0x3ec9,_0x1c1069=[[_0x529237,_0x4f26a0]],_0x2bf08b=[],_0x2432d2=new Set(),_0x34f7b4=new Set();while(_0x1c1069[_0x16bd78(0x357)]>0x0){const [_0x1094ea,_0x43a317]=_0x1c1069[_0x16bd78(0x319)](),_0x2f2bab=_0x1094ea+'-'+_0x43a317;if(_0x201478[_0x16bd78(0x204)](_0x2f2bab))continue;_0x201478[_0x16bd78(0x2b6)](_0x2f2bab),_0x2bf08b['push']([_0x1094ea,_0x43a317]);const _0x178d13=_0x5d5333[_0x16bd78(0x297)](_0x1094ea,_0x43a317);if(_0x178d13){for(let _0x5f09f3=_0x178d13[_0x16bd78(0x25e)];_0x5f09f3<=_0x178d13[_0x16bd78(0x23e)];_0x5f09f3++)for(let _0x5bf36c=_0x178d13[_0x16bd78(0x292)];_0x5bf36c<=_0x178d13[_0x16bd78(0x257)];_0x5bf36c++){const _0x4457f6=_0x5f09f3+'-'+_0x5bf36c;_0x201478[_0x16bd78(0x2b6)](_0x4457f6),_0x2bf08b[_0x16bd78(0x374)]([_0x5f09f3,_0x5bf36c]);}continue;}for(const [_0x1ce82c,_0x3fd48f]of[[0x0,0x1],[0x1,0x0],[0x0,-0x1],[-0x1,0x0]]){const _0x172fe7=_0x1094ea+_0x1ce82c,_0xcdd281=_0x43a317+_0x3fd48f;if(_0x482051(_0x172fe7,_0xcdd281))_0x1c1069['push']([_0x172fe7,_0xcdd281]);}}for(const [_0x4c6b87,_0x28fb94]of _0x2bf08b){const _0x50ceac=_0x2bf08b[_0x16bd78(0x373)](([_0x51d296,_0x491dee])=>_0x51d296===_0x4c6b87&&_0x491dee!==_0x28fb94),_0x257371=_0x2bf08b[_0x16bd78(0x373)](([_0x1609b3,_0x17a676])=>_0x17a676===_0x28fb94&&_0x1609b3!==_0x4c6b87);if(_0x50ceac&&!_0x257371)_0x2432d2[_0x16bd78(0x2b6)](_0x4c6b87+'-'+_0x28fb94);else{if(_0x257371&&!_0x50ceac)_0x34f7b4[_0x16bd78(0x2b6)](_0x4c6b87+'-'+_0x28fb94);else{if(_0x50ceac&&_0x257371)_0x2432d2[_0x16bd78(0x2b6)](_0x4c6b87+'-'+_0x28fb94);else _0x4f1e73['push']({'startRow':_0x4c6b87,'endRow':_0x4c6b87,'startColumn':_0x28fb94,'endColumn':_0x28fb94});}}}const _0x12cd34=_0x323953(_0x2432d2),_0x32d754=_0x323953(_0x34f7b4);return[..._0x12cd34,..._0x32d754];}function _0x323953(_0x223a29){const _0x34647c=_0x3ec9,_0x453845=[],_0x2efd13=new Set();for(const _0x2ee7bd of _0x223a29){if(_0x2efd13[_0x34647c(0x204)](_0x2ee7bd))continue;const [_0x33afae,_0x2ff823]=_0x2ee7bd[_0x34647c(0x250)]('-')[_0x34647c(0x22c)](Number);let _0x3e334c=_0x33afae,_0x404aeb=_0x33afae,_0x431ff2=_0x2ff823,_0x1772db=_0x2ff823;const _0xf89b76=[[_0x33afae,_0x2ff823]];while(_0xf89b76[_0x34647c(0x357)]>0x0){const [_0x3f1121,_0x1cba43]=_0xf89b76[_0x34647c(0x319)](),_0x576578=_0x3f1121+'-'+_0x1cba43;if(_0x2efd13[_0x34647c(0x204)](_0x576578)||!_0x223a29[_0x34647c(0x204)](_0x576578))continue;_0x2efd13['add'](_0x576578),_0x3e334c=Math[_0x34647c(0x1e3)](_0x3e334c,_0x3f1121),_0x404aeb=Math[_0x34647c(0x288)](_0x404aeb,_0x3f1121),_0x431ff2=Math[_0x34647c(0x1e3)](_0x431ff2,_0x1cba43),_0x1772db=Math['max'](_0x1772db,_0x1cba43);for(const [_0x277d9d,_0x34fffb]of[[0x0,0x1],[0x1,0x0],[0x0,-0x1],[-0x1,0x0]]){const _0x3f5ea3=_0x3f1121+_0x277d9d,_0x41502b=_0x1cba43+_0x34fffb,_0x289569=_0x3f5ea3+'-'+_0x41502b;if(_0x223a29['has'](_0x289569)&&!_0x2efd13[_0x34647c(0x204)](_0x289569))_0xf89b76[_0x34647c(0x374)]([_0x3f5ea3,_0x41502b]);}}_0x453845[_0x34647c(0x374)]({'startRow':_0x3e334c,'endRow':_0x404aeb,'startColumn':_0x431ff2,'endColumn':_0x1772db});}return _0x453845;}for(const _0x996c73 in _0x327369){const _0x253b04=Number['parseInt'](_0x996c73,0xa);for(const _0xa9e8e in _0x327369[_0x253b04]){const _0x2288d7=Number[_0x357cce(0x34a)](_0xa9e8e,0xa),_0x3deb3f=_0x253b04+'-'+_0x2288d7;if(!_0x201478['has'](_0x3deb3f)){const _0x5e948c=_0x250233(_0x253b04,_0x2288d7);_0x4f1e73['push'](..._0x5e948c);}}}return _0x4f1e73;}let SheetSparklinePermissionController=class SheetSparklinePermissionController extends _univerjs_core['Disposable']{constructor(_0x48f7b9,_0x36719b,_0x145a26,_0x155685,_0x663ded,_0x46690c){const _0x189f78=_0x18ba0d;super(),this['_commandService']=_0x48f7b9,this['_localeService']=_0x36719b,this['_sheetPermissionCheckController']=_0x145a26,this[_0x189f78(0x33f)]=_0x155685,this[_0x189f78(0x26b)]=_0x663ded,this['_sparklineDataSourceModel']=_0x46690c,this[_0x189f78(0x343)]();}[_0x18ba0d(0x343)](){const _0x3efb09=_0x18ba0d;this[_0x3efb09(0x289)](this[_0x3efb09(0x36b)][_0x3efb09(0x24e)](_0x57b716=>{const _0xa5e753=_0x3efb09;if(_0x57b716['id']===_univerjs_pro_sheets_sparkline[_0xa5e753(0x303)]['id']){const {targetRanges:_0x917c84,targetInfo:_0x557778}=_0x57b716[_0xa5e753(0x244)],{unitId:_0x433ffc,subUnitId:_0x318c2a}=_0x557778;if(!this[_0xa5e753(0x363)]['permissionCheckWithRanges']({'workbookTypes':[_univerjs_sheets['WorkbookEditablePermission']],'worksheetTypes':[_univerjs_sheets[_0xa5e753(0x22b)]],'rangeTypes':[_univerjs_sheets[_0xa5e753(0x38f)]]},_0x917c84,_0x433ffc,_0x318c2a))this[_0xa5e753(0x363)][_0xa5e753(0x22f)](this[_0xa5e753(0x2bc)]['t'](_0xa5e753(0x24f)));}else{if(_0x57b716['id']===_univerjs_pro_sheets_sparkline['SetSheetSparklineCommand']['id']){const {isChangeDataSource:_0x2b2e7e,changeDataSourceInfo:_0x5974ec}=_0x57b716['params'],_0xa1f93d=(0x0,_univerjs_sheets[_0xa5e753(0x2c7)])(this[_0xa5e753(0x26b)]);if(!_0xa1f93d)return;const _0x409a40=this[_0xa5e753(0x33f)][_0xa5e753(0x307)]()[_0xa5e753(0x22c)](_0x2cf48e=>_0x2cf48e[_0xa5e753(0x2a9)]),{unitId:_0x2c1648,subUnitId:_0x3993e4}=_0xa1f93d;if(_0x2b2e7e){if(_0x5974ec){const {targetRanges:_0x52e1ff,sourceRanges:_0x27445f,resetType:_0x50f474}=_0x5974ec,_0x30c9f4=_0x50f474===_0xa5e753(0x1e7)?_0x52e1ff:[..._0x27445f,..._0x52e1ff];if(!this[_0xa5e753(0x363)][_0xa5e753(0x278)]({'workbookTypes':[_univerjs_sheets['WorkbookEditablePermission']],'worksheetTypes':[_univerjs_sheets['WorksheetEditPermission']],'rangeTypes':[_univerjs_sheets[_0xa5e753(0x38f)]]},_0x30c9f4,_0x2c1648,_0x3993e4))this['_sheetPermissionCheckController'][_0xa5e753(0x22f)](this[_0xa5e753(0x2bc)]['t'](_0xa5e753(0x24f)));}}else{const _0x4982fd=new Set();_0x409a40[_0xa5e753(0x321)](_0x27fc43=>{const _0x420280=_0xa5e753;_univerjs_core[_0x420280(0x2da)]['foreach'](_0x27fc43,(_0x24d7ba,_0x3a22d1)=>{const _0x52cf12=_0x420280,_0x539703=this['_sparklineDataSourceModel'][_0x52cf12(0x225)](_0x2c1648,_0x3993e4,_0x24d7ba,_0x3a22d1);if(_0x539703){if(this[_0x52cf12(0x38a)]['getSparklineById'](_0x2c1648,_0x3993e4,_0x539703))_0x4982fd['add'](_0x539703);}});});const _0x5b575b=[];_0x4982fd[_0xa5e753(0x321)](_0x2c429b=>{const _0x20742c=_0xa5e753,_0x4258a5=this[_0x20742c(0x38a)][_0x20742c(0x2bb)](_0x2c1648,_0x3993e4,_0x2c429b);if(_0x4258a5)_0x5b575b[_0x20742c(0x374)](...findRanges(_0x4258a5[_0x20742c(0x336)][_0x20742c(0x391)](),_0xa1f93d[_0x20742c(0x38b)]));});if(!this['_sheetPermissionCheckController'][_0xa5e753(0x278)]({'workbookTypes':[_univerjs_sheets[_0xa5e753(0x37a)]],'worksheetTypes':[_univerjs_sheets[_0xa5e753(0x22b)]],'rangeTypes':[_univerjs_sheets[_0xa5e753(0x38f)]]},_0x5b575b,_0x2c1648,_0x3993e4))this[_0xa5e753(0x363)]['blockExecuteWithoutPermission'](this['_localeService']['t']('permission.dialog.editErr'));}}else{if(_0x57b716['id']===_univerjs_pro_sheets_sparkline[_0xa5e753(0x1e8)]['id']){const {isSingle:_0x195360}=_0x57b716['params'];if(_0x195360){if(!this['_sheetPermissionCheckController'][_0xa5e753(0x278)]({'workbookTypes':[_univerjs_sheets[_0xa5e753(0x37a)]],'worksheetTypes':[_univerjs_sheets[_0xa5e753(0x22b)]],'rangeTypes':[_univerjs_sheets[_0xa5e753(0x38f)]]}))this[_0xa5e753(0x363)]['blockExecuteWithoutPermission'](this[_0xa5e753(0x2bc)]['t'](_0xa5e753(0x24f)));}else{const _0x5b7904=(0x0,_univerjs_sheets[_0xa5e753(0x2c7)])(this[_0xa5e753(0x26b)]);if(!_0x5b7904)return;const _0x2d5b31=this[_0xa5e753(0x33f)][_0xa5e753(0x307)]()[_0xa5e753(0x22c)](_0x240ca2=>_0x240ca2['range']),{unitId:_0x3842d1,subUnitId:_0x52e350}=_0x5b7904,_0x222ef1=new Set();_0x2d5b31['forEach'](_0x4d01f1=>{const _0x20babd=_0xa5e753;_univerjs_core['Range'][_0x20babd(0x2f8)](_0x4d01f1,(_0x2e00da,_0x377c43)=>{const _0x2c4da2=_0x20babd,_0x204ee3=this[_0x2c4da2(0x38a)][_0x2c4da2(0x225)](_0x3842d1,_0x52e350,_0x2e00da,_0x377c43);if(_0x204ee3){if(this[_0x2c4da2(0x38a)][_0x2c4da2(0x2bb)](_0x3842d1,_0x52e350,_0x204ee3))_0x222ef1[_0x2c4da2(0x2b6)](_0x204ee3);}});});const _0x19d658=[];_0x222ef1[_0xa5e753(0x321)](_0x58a52c=>{const _0x52a945=_0xa5e753,_0x313b10=this[_0x52a945(0x38a)]['getSparklineById'](_0x3842d1,_0x52e350,_0x58a52c);if(_0x313b10)_0x19d658[_0x52a945(0x374)](...findRanges(_0x313b10[_0x52a945(0x336)][_0x52a945(0x391)](),_0x5b7904['worksheet']));});if(!this[_0xa5e753(0x363)][_0xa5e753(0x278)]({'workbookTypes':[_univerjs_sheets[_0xa5e753(0x37a)]],'worksheetTypes':[_univerjs_sheets[_0xa5e753(0x22b)]],'rangeTypes':[_univerjs_sheets[_0xa5e753(0x38f)]]},_0x19d658,_0x3842d1,_0x52e350))this[_0xa5e753(0x363)][_0xa5e753(0x22f)](this[_0xa5e753(0x2bc)]['t'](_0xa5e753(0x24f)));}}}}}));}};SheetSparklinePermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_core[_0x18ba0d(0x2e3)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_core[_0x18ba0d(0x2c2)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_sheets[_0x18ba0d(0x300)])),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x18ba0d(0x22e)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_core['IUniverInstanceService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_pro_sheets_sparkline[_0x18ba0d(0x388)]))],SheetSparklinePermissionController);let SheetSparklinePrintingController=class SheetSparklinePrintingController extends _univerjs_core[_0x18ba0d(0x20d)]{constructor(_0x20ad7a,_0x3df6c2){const _0x751607=_0x18ba0d;super(),this['_sheetPrintInterceptorService']=_0x20ad7a,this[_0x751607(0x38a)]=_0x3df6c2,this[_0x751607(0x1f2)]();}[_0x18ba0d(0x1f2)](){const _0x1930ea=_0x18ba0d;this[_0x1930ea(0x289)](this[_0x1930ea(0x233)][_0x1930ea(0x382)]['intercept'](this[_0x1930ea(0x233)]['interceptor'][_0x1930ea(0x1ce)]()[_0x1930ea(0x36a)],{'handler':(_0x521582,_0x10183d,_0x1d313a)=>{const _0x57f7ad=_0x1930ea,{unitId:_0x174d90,subUnitId:_0x17f451}=_0x10183d,_0x2f2cc5=this[_0x57f7ad(0x38a)][_0x57f7ad(0x253)](_0x174d90,_0x17f451);let _0x3951bf=_0x521582;if(_0x2f2cc5)Array[_0x57f7ad(0x275)](_0x2f2cc5[_0x57f7ad(0x29b)]())[_0x57f7ad(0x321)](_0x3cb623=>{const _0x12b1c9=_0x57f7ad,_0x247b38=_0x3cb623[_0x12b1c9(0x336)][_0x12b1c9(0x237)]();_0x3951bf=_0x3951bf&&_0x247b38[_0x12b1c9(0x23e)]>=0x0?_univerjs_core[_0x12b1c9(0x27b)][_0x12b1c9(0x258)](_0x3951bf,_0x247b38):_0x247b38;});return _0x1d313a(_0x3951bf);}}));}};SheetSparklinePrintingController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_sheets_ui[_0x18ba0d(0x1db)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_sparkline['SparklineDataSourceModel']))],SheetSparklinePrintingController);const renderLineSparkline=(_0x404fef,_0x31d55d,_0x246fbe,_0x1c4a63,_0x3c72d0)=>{const _0x4e9432=_0x18ba0d;var _0x599cdb,_0x43a1f6,_0x1a65a3,_0x4aab4d,_0x5f4f33,_0x3e1d12,_0x5c4cc5,_0x55df34,_0x25080d,_0x2106b0,_0x52a394,_0x5dedfb,_0x1b820f,_0x1c815e,_0x2b64db,_0x4db4d4,_0x546596,_0x10f2ef;const {startX:_0x582b1c,startY:_0x587e67,endX:_0x57ce3b,endY:_0x546026}=_0x31d55d[_0x4e9432(0x228)];if(!_0x1c4a63)return;const {max:_0x5ea0c0,min:_0x2fd9ee,highIndex:_0x417af5,lowIndex:_0x244f37,negativeIndexes:_0x252ff2,data:_0x4ca812}=_0x1c4a63,_0x50035a=0x4,_0x1a6a2d=_0x57ce3b-_0x582b1c-0x2*_0x50035a,_0x28b747=_0x546026-_0x587e67-0x2*_0x50035a,_0x4e56fb=_0x582b1c+_0x50035a,_0x514ca8=_0x587e67+_0x50035a,_0x4408eb=(_0x599cdb=(_0x43a1f6=_0x246fbe[_0x4e9432(0x2cf)])===null||_0x43a1f6===void 0x0?void 0x0:_0x43a1f6[_0x4e9432(0x38e)])!==null&&_0x599cdb!==void 0x0?_0x599cdb:_univerjs_pro_sheets_sparkline['SparklineExtremumTypeEnum']['SELF_EXTREMUM'],_0x48a26c=(_0x1a65a3=(_0x4aab4d=_0x246fbe['extremumMin'])===null||_0x4aab4d===void 0x0?void 0x0:_0x4aab4d['type'])!==null&&_0x1a65a3!==void 0x0?_0x1a65a3:_univerjs_pro_sheets_sparkline[_0x4e9432(0x1de)]['SELF_EXTREMUM'],_0x14e2a9=(_0x5f4f33=_0x3c72d0===null||_0x3c72d0===void 0x0?void 0x0:_0x3c72d0[_0x4e9432(0x32b)])!==null&&_0x5f4f33!==void 0x0?_0x5f4f33:_0x5ea0c0,_0x1b4d4b=(_0x3e1d12=_0x3c72d0===null||_0x3c72d0===void 0x0?void 0x0:_0x3c72d0['showMin'])!==null&&_0x3e1d12!==void 0x0?_0x3e1d12:_0x2fd9ee,_0x395adb=_0x4408eb===_univerjs_pro_sheets_sparkline[_0x4e9432(0x1de)][_0x4e9432(0x1d0)]?_0x5ea0c0:_0x14e2a9,_0x5db8f8=_0x48a26c===_univerjs_pro_sheets_sparkline[_0x4e9432(0x1de)][_0x4e9432(0x1d0)]?_0x2fd9ee:_0x1b4d4b;let _0x2d1659=![];const _0x36d11b=_0x4ca812[_0x417af5];if(typeof _0x36d11b==='number'&&_0x36d11b<_0x5db8f8)_0x2d1659=!![];let _0x277c77=![];const _0x535e57=_0x4ca812[_0x244f37];if(typeof _0x535e57===_0x4e9432(0x1ec)&&_0x535e57>_0x395adb)_0x277c77=!![];if(_0x5db8f8>_0x395adb)return;if(_0x2d1659||_0x277c77)return;const _0x78a0cb=_0x395adb===_0x5db8f8,_0x286668=_0x395adb-_0x5db8f8,_0x38bd98=_0x1a6a2d/(_0x4ca812[_0x4e9432(0x357)]-0x1),_0x2d28a0=(_0x5c4cc5=(_0x55df34=_0x246fbe[_0x4e9432(0x364)])===null||_0x55df34===void 0x0?void 0x0:_0x55df34[_0x4e9432(0x328)])!==null&&_0x5c4cc5!==void 0x0?_0x5c4cc5:![],_0x102d9f=[];_0x404fef[_0x4e9432(0x28f)](),_0x404fef[_0x4e9432(0x260)](),_0x404fef[_0x4e9432(0x261)](_0x582b1c+_0x50035a,_0x587e67+_0x50035a,_0x1a6a2d,_0x28b747),_0x404fef[_0x4e9432(0x25a)](),_0x404fef[_0x4e9432(0x260)]();let _0x150de3=null;for(let _0x52ffbc=0x0;_0x52ffbc<_0x4ca812['length'];_0x52ffbc++){const _0x28ca6f=_0x4ca812[_0x52ffbc];if(_0x28ca6f===_0x4e9432(0x32c)){_0x150de3=null;continue;}if(_0x28ca6f===_0x4e9432(0x34b))continue;const _0x3ecdc7={'x':_0x2d28a0?_0x57ce3b-_0x50035a-_0x52ffbc*_0x38bd98:_0x4e56fb+_0x52ffbc*_0x38bd98,'y':_0x78a0cb?_0x514ca8+_0x28b747/0x2:_0x514ca8+_0x28b747-(Number(_0x28ca6f)-_0x5db8f8)/_0x286668*_0x28b747};_0x102d9f['push'](_0x3ecdc7);if(_0x150de3)_0x404fef[_0x4e9432(0x285)](_0x150de3['x'],_0x150de3['y']),_0x404fef[_0x4e9432(0x2a7)](_0x3ecdc7['x'],_0x3ecdc7['y']);else _0x404fef[_0x4e9432(0x285)](_0x3ecdc7['x'],_0x3ecdc7['y']);_0x150de3=_0x3ecdc7;}const _0x2aab14=(_0x25080d=_0x246fbe[_0x4e9432(0x224)])!==null&&_0x25080d!==void 0x0?_0x25080d:_univerjs_pro_sheets_sparkline[_0x4e9432(0x1ea)]['STANDARD'],_0x5e0ef6=(_0x2106b0=(_0x52a394=_0x246fbe['seriesColor'])!==null&&_0x52a394!==void 0x0?_0x52a394:(_0x5dedfb=_univerjs_pro_sheets_sparkline[_0x4e9432(0x242)][_0x2aab14])===null||_0x5dedfb===void 0x0?void 0x0:_0x5dedfb[0x0])!==null&&_0x2106b0!==void 0x0?_0x2106b0:_univerjs_pro_sheets_sparkline[_0x4e9432(0x242)][_0x4e9432(0x353)][0x0],_0x40e684=_0x3c72d0===null||_0x3c72d0===void 0x0?void 0x0:_0x3c72d0[_0x4e9432(0x2be)],_0x34cc41=_0x3c72d0===null||_0x3c72d0===void 0x0?void 0x0:_0x3c72d0[_0x4e9432(0x212)];_0x404fef[_0x4e9432(0x2b9)]=_0x5e0ef6,_0x404fef[_0x4e9432(0x1fc)]=_0x246fbe[_0x4e9432(0x1fc)]||0x2,_0x404fef[_0x4e9432(0x235)]=_0x4e9432(0x344),_0x404fef['stroke']();const _0x31b92b=[],_0x3772c1=[];if(_0x246fbe[_0x4e9432(0x274)]&&_0x40e684&&_0x34cc41){const _0x536195=_0x404fef['createLinearGradient'](0x0,_0x514ca8,0x0,_0x514ca8+_0x28b747);_0x536195[_0x4e9432(0x1d7)](0x0,_0x40e684),_0x536195[_0x4e9432(0x1d7)](0x1,_0x34cc41),_0x404fef[_0x4e9432(0x260)]();const _0x20693f=[];let _0x5085e6=null,_0x36ac16=0x0;const _0x51788b=_0x4ca812[_0x417af5],_0x42ea16=_0x4ca812[_0x244f37];for(let _0x5513a6=0x0;_0x5513a6<=_0x4ca812[_0x4e9432(0x357)];_0x5513a6++){const _0x27b736=_0x4ca812[_0x5513a6],_0x11e25f=_0x27b736===_0x4e9432(0x32c),_0x4c2706=_0x27b736===_0x4e9432(0x34b),_0x41c4e5=_0x5513a6===_0x4ca812[_0x4e9432(0x357)];if(_0x27b736===_0x51788b)_0x31b92b[_0x4e9432(0x374)](_0x5513a6);if(_0x27b736===_0x42ea16)_0x3772c1[_0x4e9432(0x374)](_0x5513a6);if(_0x11e25f||_0x41c4e5)_0x5085e6!==null&&(_0x20693f[_0x4e9432(0x374)]([_0x5085e6,_0x36ac16-0x1]),_0x5085e6=null);else{if(!_0x4c2706){if(_0x5085e6===null)_0x5085e6=_0x36ac16;_0x36ac16++;}}}_0x20693f[_0x4e9432(0x321)](([_0xbb2542,_0x4b305e])=>{const _0x440ce5=_0x4e9432,_0xb05c23=_0x102d9f[_0xbb2542],_0x25ec70=_0x102d9f[_0x4b305e];if(!_0xb05c23||!_0x25ec70||_0xbb2542===_0x4b305e)return;_0x404fef[_0x440ce5(0x260)](),_0x404fef[_0x440ce5(0x285)](_0xb05c23['x'],_0xb05c23['y']);for(let _0x5e4eaf=_0xbb2542;_0x5e4eaf<=_0x4b305e;_0x5e4eaf++){const _0x2a93b9=_0x102d9f[_0x5e4eaf];if(_0x2a93b9)_0x404fef[_0x440ce5(0x2a7)](_0x2a93b9['x'],_0x2a93b9['y']);}_0x404fef[_0x440ce5(0x2a7)](_0x102d9f[_0x4b305e]['x'],_0x514ca8+_0x28b747),_0x404fef['lineTo'](_0x102d9f[_0xbb2542]['x'],_0x514ca8+_0x28b747),_0x404fef[_0x440ce5(0x2d1)](),_0x404fef[_0x440ce5(0x291)]=_0x536195,_0x404fef[_0x440ce5(0x338)]();});}const _0x34a8bb=_0x4e9432(0x2f0);((_0x1b820f=_0x246fbe['points'])===null||_0x1b820f===void 0x0||(_0x1b820f=_0x1b820f[_0x4e9432(0x20a)])===null||_0x1b820f===void 0x0?void 0x0:_0x1b820f[_0x4e9432(0x360)])&&(_0x404fef[_0x4e9432(0x291)]=_0x246fbe[_0x4e9432(0x362)][_0x4e9432(0x20a)][_0x4e9432(0x2de)]||_0x34a8bb,_0x102d9f[_0x4e9432(0x321)](_0x2ad9ef=>{const _0x3c31fe=_0x4e9432;_0x404fef[_0x3c31fe(0x260)](),_0x404fef[_0x3c31fe(0x236)](_0x2ad9ef['x'],_0x2ad9ef['y'],0x2,0x0,Math['PI']*0x2),_0x404fef[_0x3c31fe(0x338)]();}));if((_0x1c815e=_0x246fbe[_0x4e9432(0x362)])===null||_0x1c815e===void 0x0||(_0x1c815e=_0x1c815e[_0x4e9432(0x304)])===null||_0x1c815e===void 0x0?void 0x0:_0x1c815e[_0x4e9432(0x360)]){_0x404fef[_0x4e9432(0x291)]=_0x246fbe[_0x4e9432(0x362)][_0x4e9432(0x304)][_0x4e9432(0x2de)]||_0x34a8bb;const _0xbf8f60=_0x102d9f[0x0];_0xbf8f60&&(_0x404fef[_0x4e9432(0x260)](),_0x404fef[_0x4e9432(0x236)](_0xbf8f60['x'],_0xbf8f60['y'],0x2,0x0,Math['PI']*0x2),_0x404fef[_0x4e9432(0x338)]());}if((_0x2b64db=_0x246fbe[_0x4e9432(0x362)])===null||_0x2b64db===void 0x0||(_0x2b64db=_0x2b64db['lastPoint'])===null||_0x2b64db===void 0x0?void 0x0:_0x2b64db[_0x4e9432(0x360)]){_0x404fef[_0x4e9432(0x291)]=_0x246fbe[_0x4e9432(0x362)][_0x4e9432(0x2e6)][_0x4e9432(0x2de)]||_0x34a8bb;const _0x205256=_0x102d9f[_0x102d9f[_0x4e9432(0x357)]-0x1];_0x205256&&(_0x404fef[_0x4e9432(0x260)](),_0x404fef[_0x4e9432(0x236)](_0x205256['x'],_0x205256['y'],0x2,0x0,Math['PI']*0x2),_0x404fef[_0x4e9432(0x338)]());}((_0x4db4d4=_0x246fbe[_0x4e9432(0x362)])===null||_0x4db4d4===void 0x0||(_0x4db4d4=_0x4db4d4['highPoint'])===null||_0x4db4d4===void 0x0?void 0x0:_0x4db4d4[_0x4e9432(0x360)])&&(_0x404fef[_0x4e9432(0x291)]=_0x246fbe[_0x4e9432(0x362)][_0x4e9432(0x1d3)][_0x4e9432(0x2de)]||_0x34a8bb,_0x31b92b[_0x4e9432(0x321)](_0x37c2b4=>{const _0x11cee4=_0x4e9432,_0x5d9c0b=_0x102d9f[_0x37c2b4];_0x5d9c0b&&(_0x404fef['beginPath'](),_0x404fef['arc'](_0x5d9c0b['x'],_0x5d9c0b['y'],0x2,0x0,Math['PI']*0x2),_0x404fef[_0x11cee4(0x338)]());}));((_0x546596=_0x246fbe[_0x4e9432(0x362)])===null||_0x546596===void 0x0||(_0x546596=_0x546596[_0x4e9432(0x222)])===null||_0x546596===void 0x0?void 0x0:_0x546596[_0x4e9432(0x360)])&&(_0x404fef[_0x4e9432(0x291)]=_0x246fbe[_0x4e9432(0x362)]['lowPoint']['color']||_0x34a8bb,_0x3772c1[_0x4e9432(0x321)](_0x34091a=>{const _0x5bbfbc=_0x4e9432,_0x152df5=_0x102d9f[_0x34091a];_0x152df5&&(_0x404fef[_0x5bbfbc(0x260)](),_0x404fef[_0x5bbfbc(0x236)](_0x152df5['x'],_0x152df5['y'],0x2,0x0,Math['PI']*0x2),_0x404fef[_0x5bbfbc(0x338)]());}));((_0x10f2ef=_0x246fbe['points'])===null||_0x10f2ef===void 0x0||(_0x10f2ef=_0x10f2ef[_0x4e9432(0x389)])===null||_0x10f2ef===void 0x0?void 0x0:_0x10f2ef[_0x4e9432(0x360)])&&(_0x404fef['fillStyle']=_0x246fbe[_0x4e9432(0x362)][_0x4e9432(0x389)][_0x4e9432(0x2de)]||_0x34a8bb,_0x252ff2[_0x4e9432(0x321)](_0x2355b5=>{const _0x5a9226=_0x4e9432,_0x29d13e=_0x102d9f[_0x2355b5];_0x29d13e&&(_0x404fef[_0x5a9226(0x260)](),_0x404fef[_0x5a9226(0x236)](_0x29d13e['x'],_0x29d13e['y'],0x2,0x0,Math['PI']*0x2),_0x404fef['fill']());}));let _0x4c7933=!![];if(_0x78a0cb){var _0x1be90f;_0x4c7933=!!((_0x1be90f=_0x246fbe[_0x4e9432(0x364)])===null||_0x1be90f===void 0x0?void 0x0:_0x1be90f[_0x4e9432(0x360)]);}else{var _0x4b20b3;_0x4c7933=!!(_0x5db8f8<=0x0&&((_0x4b20b3=_0x246fbe[_0x4e9432(0x364)])===null||_0x4b20b3===void 0x0?void 0x0:_0x4b20b3[_0x4e9432(0x360)]));}if(_0x4c7933){var _0x912ea,_0xbb916c;let _0x290b44=_0x514ca8;if(_0x78a0cb){if(_0x5db8f8===0x0)_0x290b44=_0x514ca8+_0x28b747/0x2;else{if(_0x5db8f8>0x0)_0x290b44=_0x514ca8+_0x28b747;}}else _0x290b44=_0x514ca8+_0x28b747-(0x0-_0x5db8f8)/_0x286668*_0x28b747;_0x404fef[_0x4e9432(0x260)](),_0x404fef[_0x4e9432(0x285)](_0x4e56fb,_0x290b44),_0x404fef[_0x4e9432(0x2a7)](_0x4e56fb+_0x1a6a2d,_0x290b44),_0x404fef['strokeStyle']=(_0x912ea=(_0xbb916c=_0x246fbe[_0x4e9432(0x364)])===null||_0xbb916c===void 0x0?void 0x0:_0xbb916c['color'])!==null&&_0x912ea!==void 0x0?_0x912ea:_0x4e9432(0x1cd),_0x404fef[_0x4e9432(0x1fc)]=0x1,_0x404fef[_0x4e9432(0x2fa)]();}_0x404fef[_0x4e9432(0x1e5)]();},renderBarChart=(_0x13b7d9,_0x35c1a8,_0xf6011c,_0x213f7a,_0x5a00bd)=>{const _0x4bc78b=_0x18ba0d;var _0x5c23e1,_0xddfd07,_0x5b9918,_0x431556,_0x2c8f1b,_0x406114,_0xd81d03,_0x1f29d7,_0x555154,_0x19e8b9,_0x2425a3,_0x14248a,_0xad7034;const {startX:_0x5c0157,startY:_0x3c6577,endX:_0xd4d5d8,endY:_0x51a0e7}=_0x35c1a8;if(!_0x213f7a)return;const {max:_0x58895d,min:_0x560852,highIndex:_0x1555b3,lowIndex:_0x197050,negativeIndexes:_0x3adfb4,data:_0x2a2d3c}=_0x213f7a,_0x3e424b=0x4,_0x1c81a0=_0xd4d5d8-_0x5c0157-0x2*_0x3e424b,_0x54fa75=_0x51a0e7-_0x3c6577-0x2*_0x3e424b,_0xb9c0b=_0x5c0157+_0x3e424b,_0x24ec98=_0x3c6577+_0x3e424b,_0x2f6793=(_0x5c23e1=(_0xddfd07=_0xf6011c[_0x4bc78b(0x2cf)])===null||_0xddfd07===void 0x0?void 0x0:_0xddfd07[_0x4bc78b(0x38e)])!==null&&_0x5c23e1!==void 0x0?_0x5c23e1:_univerjs_pro_sheets_sparkline[_0x4bc78b(0x1de)]['SELF_EXTREMUM'],_0x3e99c4=(_0x5b9918=(_0x431556=_0xf6011c['extremumMin'])===null||_0x431556===void 0x0?void 0x0:_0x431556[_0x4bc78b(0x38e)])!==null&&_0x5b9918!==void 0x0?_0x5b9918:_univerjs_pro_sheets_sparkline[_0x4bc78b(0x1de)][_0x4bc78b(0x1d0)],_0x1610d0=(_0x2c8f1b=_0x5a00bd===null||_0x5a00bd===void 0x0?void 0x0:_0x5a00bd[_0x4bc78b(0x32b)])!==null&&_0x2c8f1b!==void 0x0?_0x2c8f1b:_0x58895d,_0x3f4962=(_0x406114=_0x5a00bd===null||_0x5a00bd===void 0x0?void 0x0:_0x5a00bd['showMin'])!==null&&_0x406114!==void 0x0?_0x406114:_0x560852,_0x27a369=_0x2f6793===_univerjs_pro_sheets_sparkline[_0x4bc78b(0x1de)]['SELF_EXTREMUM']?_0x58895d:_0x1610d0,_0x91195a=_0x3e99c4===_univerjs_pro_sheets_sparkline[_0x4bc78b(0x1de)][_0x4bc78b(0x1d0)]?_0x560852:_0x3f4962,_0x53062b=_0x27a369-_0x91195a,_0xe8789=0.2,_0x31a74d=_0x1c81a0,_0x1ef253=_0x27a369===_0x91195a,_0x3aa14a=_0x31a74d/(_0x2a2d3c[_0x4bc78b(0x357)]*(0x1+_0xe8789)),_0x518f9d=_0x3aa14a*_0xe8789,_0x157b7d=(_0xd81d03=(_0x1f29d7=_0xf6011c[_0x4bc78b(0x364)])===null||_0x1f29d7===void 0x0?void 0x0:_0x1f29d7[_0x4bc78b(0x328)])!==null&&_0xd81d03!==void 0x0?_0xd81d03:![],_0x37daf3=(_0x555154=_0xf6011c['showRadius'])!==null&&_0x555154!==void 0x0?_0x555154:![];let _0x38cc33=0x0;if(!_0x1ef253)_0x38cc33=_0x91195a>=0x0?_0x91195a:_0x27a369<=0x0?_0x27a369:0x0;let _0x248e9d=_0x24ec98+_0x54fa75;if(_0x1ef253){if(_0x91195a===0x0)_0x248e9d=_0x24ec98+_0x54fa75/0x2;else{if(_0x91195a>0x0)_0x248e9d=_0x24ec98+_0x54fa75;else{if(_0x91195a<0x0)_0x248e9d=_0x24ec98;}}}else{if(_0x91195a>=0x0)_0x248e9d=_0x24ec98+_0x54fa75;else{if(_0x27a369<=0x0)_0x248e9d=_0x24ec98;else _0x248e9d=_0x24ec98+_0x54fa75-(0x0-_0x91195a)/_0x53062b*_0x54fa75;}}_0x13b7d9[_0x4bc78b(0x28f)](),_0x13b7d9[_0x4bc78b(0x260)](),_0x13b7d9[_0x4bc78b(0x261)](_0x5c0157,_0x3c6577,_0xd4d5d8-_0x5c0157,_0x51a0e7-_0x3c6577),_0x13b7d9[_0x4bc78b(0x25a)]();const _0x1d4b40=(_0x19e8b9=_0xf6011c[_0x4bc78b(0x224)])!==null&&_0x19e8b9!==void 0x0?_0x19e8b9:_univerjs_pro_sheets_sparkline['SparklineThemeTypeEnum'][_0x4bc78b(0x254)],_0x4d0706=(_0x2425a3=(_0x14248a=_0xf6011c['seriesColor'])!==null&&_0x14248a!==void 0x0?_0x14248a:(_0xad7034=_univerjs_pro_sheets_sparkline[_0x4bc78b(0x242)][_0x1d4b40])===null||_0xad7034===void 0x0?void 0x0:_0xad7034[0x0])!==null&&_0x2425a3!==void 0x0?_0x2425a3:_univerjs_pro_sheets_sparkline[_0x4bc78b(0x242)][_0x4bc78b(0x353)][0x0],_0x49105b=_0x2a2d3c[_0x1555b3],_0x1bc518=_0x2a2d3c[_0x197050];_0x2a2d3c[_0x4bc78b(0x321)]((_0x55d5ee,_0x5d80e9)=>{const _0x1d6827=_0x4bc78b;var _0x4114c7,_0x7be624,_0x47a466,_0x195416,_0x1a45bb;if(typeof _0x55d5ee===_0x1d6827(0x376)||typeof _0x55d5ee===_0x1d6827(0x392))return;const _0x5e9350=_0x157b7d?_0xd4d5d8-_0x3e424b-(_0x5d80e9+0x1)*(_0x3aa14a+_0x518f9d)+_0x518f9d/0x2:_0xb9c0b+_0x5d80e9*(_0x3aa14a+_0x518f9d)+_0x518f9d/0x2;let _0x15c77a=0x0;if(_0x1ef253){if(_0x91195a!==0x0)_0x15c77a=_0x54fa75;}else{if(_0x55d5ee<_0x91195a)_0x15c77a=0x0;else{if(_0x55d5ee>_0x27a369)_0x15c77a=_0x54fa75;else{if(_0x91195a<0x0)_0x15c77a=_0x55d5ee===0x0?0x0:Math[_0x1d6827(0x288)](Math[_0x1d6827(0x37e)](_0x55d5ee-_0x38cc33)/_0x53062b*_0x54fa75,0x2);else{if(_0x55d5ee===0x0)_0x15c77a=0x0;else _0x15c77a=Math[_0x1d6827(0x288)](Math['abs'](_0x55d5ee-_0x38cc33)/_0x53062b*_0x54fa75,0x2);}}}}let _0x1180a2=_0x4d0706;if(((_0x4114c7=_0xf6011c[_0x1d6827(0x362)])===null||_0x4114c7===void 0x0||(_0x4114c7=_0x4114c7['firstPoint'])===null||_0x4114c7===void 0x0?void 0x0:_0x4114c7['visible'])&&_0x5d80e9===0x0)_0x1180a2=_0xf6011c[_0x1d6827(0x362)]['firstPoint']['color']||_0x4d0706;if(((_0x7be624=_0xf6011c[_0x1d6827(0x362)])===null||_0x7be624===void 0x0||(_0x7be624=_0x7be624[_0x1d6827(0x2e6)])===null||_0x7be624===void 0x0?void 0x0:_0x7be624[_0x1d6827(0x360)])&&_0x5d80e9===_0x2a2d3c[_0x1d6827(0x357)]-0x1)_0x1180a2=_0xf6011c[_0x1d6827(0x362)][_0x1d6827(0x2e6)][_0x1d6827(0x2de)]||_0x4d0706;if(((_0x47a466=_0xf6011c[_0x1d6827(0x362)])===null||_0x47a466===void 0x0||(_0x47a466=_0x47a466[_0x1d6827(0x1d3)])===null||_0x47a466===void 0x0?void 0x0:_0x47a466[_0x1d6827(0x360)])&&_0x55d5ee===_0x49105b)_0x1180a2=_0xf6011c['points']['highPoint']['color']||_0x4d0706;if(((_0x195416=_0xf6011c[_0x1d6827(0x362)])===null||_0x195416===void 0x0||(_0x195416=_0x195416[_0x1d6827(0x222)])===null||_0x195416===void 0x0?void 0x0:_0x195416[_0x1d6827(0x360)])&&_0x55d5ee===_0x1bc518)_0x1180a2=_0xf6011c[_0x1d6827(0x362)]['lowPoint'][_0x1d6827(0x2de)]||_0x4d0706;if(((_0x1a45bb=_0xf6011c['points'])===null||_0x1a45bb===void 0x0||(_0x1a45bb=_0x1a45bb[_0x1d6827(0x389)])===null||_0x1a45bb===void 0x0?void 0x0:_0x1a45bb[_0x1d6827(0x360)])&&_0x3adfb4[_0x1d6827(0x21c)](_0x5d80e9))_0x1180a2=_0xf6011c[_0x1d6827(0x362)]['negativePoint'][_0x1d6827(0x2de)]||_0x4d0706;_0x13b7d9[_0x1d6827(0x291)]=_0x1180a2;if(_0x3aa14a>=0x4&&_0x37daf3&&_0x15c77a>=0x2){_0x13b7d9['beginPath']();const _0x383aa1=0x2;_0x55d5ee>=_0x38cc33?(_0x13b7d9[_0x1d6827(0x285)](_0x5e9350,_0x248e9d-_0x15c77a+_0x383aa1),_0x13b7d9[_0x1d6827(0x2a5)](_0x5e9350,_0x248e9d-_0x15c77a,_0x5e9350+_0x3aa14a,_0x248e9d-_0x15c77a,_0x383aa1),_0x13b7d9[_0x1d6827(0x2a5)](_0x5e9350+_0x3aa14a,_0x248e9d-_0x15c77a,_0x5e9350+_0x3aa14a,_0x248e9d-_0x15c77a+_0x383aa1,_0x383aa1),_0x13b7d9[_0x1d6827(0x2a7)](_0x5e9350+_0x3aa14a,_0x248e9d),_0x13b7d9[_0x1d6827(0x2a7)](_0x5e9350,_0x248e9d),_0x13b7d9[_0x1d6827(0x2d1)](),_0x13b7d9[_0x1d6827(0x338)]()):(_0x13b7d9['moveTo'](_0x5e9350,_0x248e9d),_0x13b7d9[_0x1d6827(0x2a7)](_0x5e9350+_0x3aa14a,_0x248e9d),_0x13b7d9[_0x1d6827(0x2a5)](_0x5e9350+_0x3aa14a,_0x248e9d+_0x15c77a,_0x5e9350+_0x3aa14a-_0x383aa1,_0x248e9d+_0x15c77a,_0x383aa1),_0x13b7d9[_0x1d6827(0x2a5)](_0x5e9350,_0x248e9d+_0x15c77a,_0x5e9350,_0x248e9d+_0x15c77a-_0x383aa1,_0x383aa1),_0x13b7d9[_0x1d6827(0x2a7)](_0x5e9350,_0x248e9d),_0x13b7d9[_0x1d6827(0x2d1)](),_0x13b7d9[_0x1d6827(0x338)]());}else{if(_0x55d5ee>=_0x38cc33)_0x13b7d9[_0x1d6827(0x306)](_0x5e9350,_0x248e9d-_0x15c77a,_0x3aa14a,_0x15c77a);else _0x13b7d9[_0x1d6827(0x306)](_0x5e9350,_0x248e9d,_0x3aa14a,_0x15c77a);}});let _0x3a177f=!![];if(_0x1ef253){var _0x5e1a11;_0x3a177f=!!((_0x5e1a11=_0xf6011c['axis'])===null||_0x5e1a11===void 0x0?void 0x0:_0x5e1a11[_0x4bc78b(0x360)]);}else{var _0x15f14f;_0x3a177f=!!(((_0x15f14f=_0xf6011c[_0x4bc78b(0x364)])===null||_0x15f14f===void 0x0?void 0x0:_0x15f14f['visible'])&&!(_0x27a369<0x0||_0x91195a>0x0));}if(_0x3a177f){var _0x321b96,_0x5f59ab;_0x13b7d9['beginPath'](),_0x13b7d9['moveTo'](_0xb9c0b,_0x248e9d),_0x13b7d9['lineTo'](_0xb9c0b+_0x1c81a0,_0x248e9d),_0x13b7d9[_0x4bc78b(0x2b9)]=(_0x321b96=(_0x5f59ab=_0xf6011c[_0x4bc78b(0x364)])===null||_0x5f59ab===void 0x0?void 0x0:_0x5f59ab[_0x4bc78b(0x2de)])!==null&&_0x321b96!==void 0x0?_0x321b96:_0x4bc78b(0x1cd),_0x13b7d9[_0x4bc78b(0x1fc)]=0x1,_0x13b7d9[_0x4bc78b(0x2fa)]();}_0x13b7d9[_0x4bc78b(0x1e5)]();},renderProfitAndLossChart=(_0x25b2c3,_0x4ebf9d,_0x411c20,_0x28a2e8,_0x1fd2f2)=>{const _0x14296a=_0x18ba0d;var _0x49d958,_0x3c62d0,_0x1dfa54,_0x56b885,_0x33c5f9,_0x5e451d,_0x26adde,_0x190bba;const {startX:_0x388bc7,startY:_0x1ff58e,endX:_0x3163fc,endY:_0x20ad17}=_0x4ebf9d;if(!_0x28a2e8)return;const {highIndex:_0xc7797e,lowIndex:_0x18916d,negativeIndexes:_0x20d7b8,data:_0x27a9ea}=_0x28a2e8,_0x33da71=0x4,_0x1db8f4=_0x3163fc-_0x388bc7-0x2*_0x33da71,_0x3704df=_0x20ad17-_0x1ff58e-0x2*_0x33da71,_0x17a5ff=_0x388bc7+_0x33da71,_0x100359=_0x1ff58e+_0x33da71,_0x1504f5=0.2,_0x4d9d98=_0x1db8f4/(_0x27a9ea[_0x14296a(0x357)]*(0x1+_0x1504f5)),_0x109a82=_0x4d9d98*_0x1504f5,_0x38f823=(_0x49d958=(_0x3c62d0=_0x411c20[_0x14296a(0x364)])===null||_0x3c62d0===void 0x0?void 0x0:_0x3c62d0[_0x14296a(0x328)])!==null&&_0x49d958!==void 0x0?_0x49d958:![],_0x232b93=(_0x1dfa54=_0x411c20[_0x14296a(0x2b3)])!==null&&_0x1dfa54!==void 0x0?_0x1dfa54:![],_0x583b73=_0x100359+_0x3704df/0x2;_0x25b2c3[_0x14296a(0x28f)](),_0x25b2c3[_0x14296a(0x260)](),_0x25b2c3[_0x14296a(0x261)](_0x388bc7,_0x1ff58e,_0x3163fc-_0x388bc7,_0x20ad17-_0x1ff58e),_0x25b2c3[_0x14296a(0x25a)]();const _0x53dd5c=(_0x56b885=_0x411c20[_0x14296a(0x224)])!==null&&_0x56b885!==void 0x0?_0x56b885:_univerjs_pro_sheets_sparkline[_0x14296a(0x1ea)][_0x14296a(0x254)],_0x5327c6=(_0x33c5f9=(_0x5e451d=_0x411c20[_0x14296a(0x20c)])!==null&&_0x5e451d!==void 0x0?_0x5e451d:(_0x26adde=_univerjs_pro_sheets_sparkline[_0x14296a(0x242)][_0x53dd5c])===null||_0x26adde===void 0x0?void 0x0:_0x26adde[0x0])!==null&&_0x33c5f9!==void 0x0?_0x33c5f9:_univerjs_pro_sheets_sparkline['SparklineThemeMapping'][_0x14296a(0x353)][0x0],_0x5c93e0=_0x27a9ea[_0xc7797e],_0x22c9c0=_0x27a9ea[_0x18916d];_0x27a9ea['forEach']((_0x3b9f27,_0x49b057)=>{const _0x513ff0=_0x14296a;var _0x52a7ce,_0x5842d9,_0x57001d,_0x8166a0,_0x38babe;if(typeof _0x3b9f27===_0x513ff0(0x376)||typeof _0x3b9f27===_0x513ff0(0x392))return;const _0x23d6e9=_0x3b9f27===0x0?0x0:_0x3704df/0x2,_0x5acd92=_0x38f823?_0x3163fc-_0x33da71-(_0x49b057+0x1)*(_0x4d9d98+_0x109a82)+_0x109a82/0x2:_0x17a5ff+_0x49b057*(_0x4d9d98+_0x109a82)+_0x109a82/0x2,_0xadb7d7=_0x3b9f27>=0x0;let _0xa98273=_0x5327c6;if(((_0x52a7ce=_0x411c20['points'])===null||_0x52a7ce===void 0x0||(_0x52a7ce=_0x52a7ce[_0x513ff0(0x304)])===null||_0x52a7ce===void 0x0?void 0x0:_0x52a7ce[_0x513ff0(0x360)])&&_0x49b057===0x0)_0xa98273=_0x411c20[_0x513ff0(0x362)]['firstPoint'][_0x513ff0(0x2de)]||_0x5327c6;if(((_0x5842d9=_0x411c20['points'])===null||_0x5842d9===void 0x0||(_0x5842d9=_0x5842d9[_0x513ff0(0x2e6)])===null||_0x5842d9===void 0x0?void 0x0:_0x5842d9['visible'])&&_0x49b057===_0x27a9ea[_0x513ff0(0x357)]-0x1)_0xa98273=_0x411c20['points']['lastPoint']['color']||_0x5327c6;if(((_0x57001d=_0x411c20[_0x513ff0(0x362)])===null||_0x57001d===void 0x0||(_0x57001d=_0x57001d['highPoint'])===null||_0x57001d===void 0x0?void 0x0:_0x57001d['visible'])&&_0x3b9f27===_0x5c93e0)_0xa98273=_0x411c20[_0x513ff0(0x362)][_0x513ff0(0x1d3)]['color']||_0x5327c6;if(((_0x8166a0=_0x411c20[_0x513ff0(0x362)])===null||_0x8166a0===void 0x0||(_0x8166a0=_0x8166a0['lowPoint'])===null||_0x8166a0===void 0x0?void 0x0:_0x8166a0[_0x513ff0(0x360)])&&_0x3b9f27===_0x22c9c0)_0xa98273=_0x411c20[_0x513ff0(0x362)][_0x513ff0(0x222)][_0x513ff0(0x2de)]||_0x5327c6;if(((_0x38babe=_0x411c20[_0x513ff0(0x362)])===null||_0x38babe===void 0x0||(_0x38babe=_0x38babe[_0x513ff0(0x389)])===null||_0x38babe===void 0x0?void 0x0:_0x38babe[_0x513ff0(0x360)])&&_0x20d7b8[_0x513ff0(0x21c)](_0x49b057))_0xa98273=_0x411c20[_0x513ff0(0x362)]['negativePoint'][_0x513ff0(0x2de)]||_0x5327c6;_0x25b2c3[_0x513ff0(0x291)]=_0xa98273;if(_0x4d9d98>=0x4&&_0x232b93){_0x25b2c3[_0x513ff0(0x260)]();const _0x2c40c5=0x2;_0xadb7d7?(_0x25b2c3[_0x513ff0(0x285)](_0x5acd92,_0x583b73-_0x23d6e9+_0x2c40c5),_0x25b2c3[_0x513ff0(0x2a5)](_0x5acd92,_0x583b73-_0x23d6e9,_0x5acd92+_0x4d9d98,_0x583b73-_0x23d6e9,_0x2c40c5),_0x25b2c3[_0x513ff0(0x2a5)](_0x5acd92+_0x4d9d98,_0x583b73-_0x23d6e9,_0x5acd92+_0x4d9d98,_0x583b73-_0x23d6e9+_0x2c40c5,_0x2c40c5),_0x25b2c3[_0x513ff0(0x2a7)](_0x5acd92+_0x4d9d98,_0x583b73),_0x25b2c3[_0x513ff0(0x2a7)](_0x5acd92,_0x583b73),_0x25b2c3[_0x513ff0(0x2d1)](),_0x25b2c3[_0x513ff0(0x338)]()):(_0x25b2c3[_0x513ff0(0x285)](_0x5acd92,_0x583b73),_0x25b2c3[_0x513ff0(0x2a7)](_0x5acd92+_0x4d9d98,_0x583b73),_0x25b2c3[_0x513ff0(0x2a5)](_0x5acd92+_0x4d9d98,_0x583b73+_0x23d6e9,_0x5acd92+_0x4d9d98-_0x2c40c5,_0x583b73+_0x23d6e9,_0x2c40c5),_0x25b2c3[_0x513ff0(0x2a5)](_0x5acd92,_0x583b73+_0x23d6e9,_0x5acd92,_0x583b73+_0x23d6e9-_0x2c40c5,_0x2c40c5),_0x25b2c3[_0x513ff0(0x2a7)](_0x5acd92,_0x583b73),_0x25b2c3[_0x513ff0(0x2d1)](),_0x25b2c3[_0x513ff0(0x338)]());}else{if(_0xadb7d7)_0x25b2c3['fillRect'](_0x5acd92,_0x583b73-_0x23d6e9,_0x4d9d98,_0x23d6e9);else _0x25b2c3[_0x513ff0(0x306)](_0x5acd92,_0x583b73,_0x4d9d98,_0x23d6e9);}});if((_0x190bba=_0x411c20[_0x14296a(0x364)])===null||_0x190bba===void 0x0?void 0x0:_0x190bba[_0x14296a(0x360)]){var _0x2a11b7;_0x25b2c3[_0x14296a(0x260)](),_0x25b2c3[_0x14296a(0x285)](0x0+_0x17a5ff,_0x100359+_0x3704df/0x2),_0x25b2c3[_0x14296a(0x2a7)](_0x1db8f4+_0x17a5ff,_0x100359+_0x3704df/0x2),_0x25b2c3[_0x14296a(0x2b9)]=(_0x2a11b7=_0x411c20['axis']['color'])!==null&&_0x2a11b7!==void 0x0?_0x2a11b7:_0x14296a(0x1cd),_0x25b2c3[_0x14296a(0x1fc)]=0x1,_0x25b2c3[_0x14296a(0x2fa)]();}_0x25b2c3[_0x14296a(0x1e5)]();},renderPieSparkline=(_0x309227,_0x159967,_0x4525d3,_0x39368f,_0x566ba4)=>{const _0x1813c2=_0x18ba0d,{startX:_0x51abf4,startY:_0x4c20fc,endX:_0x188b35,endY:_0x10c391}=_0x159967[_0x1813c2(0x228)];if(!_0x39368f)return;const {data:_0x507117}=_0x39368f,_0xacc493=0x4,_0x5ef5c7=_0x188b35-_0x51abf4-0x2*_0xacc493,_0x6235cb=_0x10c391-_0x4c20fc-0x2*_0xacc493,_0x9743d2=_0x51abf4+_0xacc493,_0x4b9c95=_0x4c20fc+_0xacc493,_0x2b0096=Math[_0x1813c2(0x1e3)](_0x5ef5c7,_0x6235cb)/0x2,_0x1d6f82=_0x9743d2+_0x5ef5c7/0x2,_0x286b7d=_0x4b9c95+_0x6235cb/0x2,_0x1deaf1=[_0x1813c2(0x269),_0x1813c2(0x2ba),'#FFCE56',_0x1813c2(0x365),_0x1813c2(0x351),_0x1813c2(0x331),_0x1813c2(0x397),_0x1813c2(0x255)],_0x1f326d=_0x507117[_0x1813c2(0x1d2)](_0x359f77=>typeof _0x359f77==='number'&&!Number[_0x1813c2(0x2ab)](_0x359f77)),_0x196eab=_0x1f326d[_0x1813c2(0x324)]((_0x22b977,_0x56832f)=>_0x22b977+_0x56832f,0x0);if(_0x196eab===0x0||_0x1f326d['length']===0x0)return;let _0x506fee=-Math['PI']/0x2;_0x1f326d[_0x1813c2(0x321)]((_0x1af343,_0x1898e0)=>{const _0x2ea801=_0x1813c2,_0x458847=_0x1af343/_0x196eab*0x2*Math['PI'],_0x472d12=_0x506fee+_0x458847;_0x309227[_0x2ea801(0x260)](),_0x309227[_0x2ea801(0x285)](_0x1d6f82,_0x286b7d),_0x309227[_0x2ea801(0x236)](_0x1d6f82,_0x286b7d,_0x2b0096,_0x506fee,_0x472d12),_0x309227[_0x2ea801(0x2d1)](),_0x309227['fillStyle']=_0x1deaf1[_0x1898e0%_0x1deaf1['length']],_0x309227['fill'](),_0x309227[_0x2ea801(0x1fc)]=0x1,_0x309227[_0x2ea801(0x2b9)]='#ffffff',_0x309227[_0x2ea801(0x2fa)](),_0x506fee=_0x472d12;});};let SheetSparklineRenderController=class SheetSparklineRenderController extends _univerjs_core[_0x18ba0d(0x20d)]{constructor(_0x36e72c,_0x11e2f3,_0x3df3d8,_0x2e0cff){const _0x3854be=_0x18ba0d;super(),this['_context']=_0x36e72c,this[_0x3854be(0x38a)]=_0x11e2f3,this[_0x3854be(0x1fe)]=_0x3df3d8,this[_0x3854be(0x2a2)]=_0x2e0cff,this[_0x3854be(0x29a)](),this[_0x3854be(0x239)]();}[_0x18ba0d(0x29a)](){const _0x32de6d=_0x18ba0d,_0x4e7f04=this[_0x32de6d(0x38a)][_0x32de6d(0x21b)](),_0x4a1484=_0x4e7f04[_0x32de6d(0x2c4)],_0x38840e=_0x4e7f04[_0x32de6d(0x208)],_0x5074b0=(_0x1090f4,_0x50bc09,_0x53a42f)=>{const _0x49dd31=_0x32de6d;var _0x28e18f,_0x5f132a,_0x3e3459;const {actualRow:_0x2aee92,actualColumn:_0x4d5c0d}=_0x53a42f,{worksheet:_0x593643}=_0x50bc09,_0x550d0d=_0x593643['getSheetId'](),_0x3ccf87=_0x593643[_0x49dd31(0x2f9)]();if(((_0x28e18f=this['_rangeProtectionCache'][_0x49dd31(0x2ce)](_0x3ccf87,_0x550d0d,_0x2aee92,_0x4d5c0d))===null||_0x28e18f===void 0x0?void 0x0:_0x28e18f[_univerjs_sheets[_0x49dd31(0x265)][_0x49dd31(0x349)]])===![])return;const _0x3de6e5=_0x593643['getRowVisible'](_0x2aee92),_0x413801=_0x593643[_0x49dd31(0x283)](_0x4d5c0d);if(!_0x3de6e5||!_0x413801)return;const _0x406636=(_0x5f132a=_0x4a1484[_0x49dd31(0x1e6)](_0x3ccf87))===null||_0x5f132a===void 0x0?void 0x0:_0x5f132a[_0x49dd31(0x1e6)](_0x550d0d),_0x58ae64=_0x406636===null||_0x406636===void 0x0||(_0x3e3459=_0x406636[_0x49dd31(0x28d)])===null||_0x3e3459===void 0x0?void 0x0:_0x3e3459[_0x49dd31(0x28a)](_0x2aee92,_0x4d5c0d);if(_0x58ae64){var _0x214661,_0x38ebde;const _0x585d8e=_0x406636===null||_0x406636===void 0x0?void 0x0:_0x406636['extra'][_0x58ae64[_0x49dd31(0x2dc)]],_0x556027=(_0x214661=_0x38840e[_0x49dd31(0x1e6)](_0x3ccf87))===null||_0x214661===void 0x0||(_0x214661=_0x214661[_0x49dd31(0x1e6)](_0x550d0d))===null||_0x214661===void 0x0?void 0x0:_0x214661['get'](_0x58ae64===null||_0x58ae64===void 0x0?void 0x0:_0x58ae64[_0x49dd31(0x2dc)]);if(!_0x556027)return;const _0x4cd63c=(_0x38ebde=_0x556027===null||_0x556027===void 0x0?void 0x0:_0x556027[_0x49dd31(0x1e9)][_0x49dd31(0x38e)])!==null&&_0x38ebde!==void 0x0?_0x38ebde:_univerjs_pro_sheets_sparkline[_0x49dd31(0x329)][_0x49dd31(0x211)];if(_0x4cd63c===_univerjs_pro_sheets_sparkline[_0x49dd31(0x329)][_0x49dd31(0x211)])renderLineSparkline(_0x1090f4,_0x53a42f,_0x556027[_0x49dd31(0x1e9)],_0x58ae64,_0x585d8e);else{if(_0x4cd63c===_univerjs_pro_sheets_sparkline[_0x49dd31(0x329)][_0x49dd31(0x2d4)])renderBarChart(_0x1090f4,_0x53a42f,_0x556027['config'],_0x58ae64,_0x585d8e);else{if(_0x4cd63c===_univerjs_pro_sheets_sparkline[_0x49dd31(0x329)][_0x49dd31(0x1f1)])renderProfitAndLossChart(_0x1090f4,_0x53a42f,_0x556027[_0x49dd31(0x1e9)],_0x58ae64,_0x585d8e);else{if(_0x4cd63c===_univerjs_pro_sheets_sparkline['SparklineTypeEnum'][_0x49dd31(0x31b)])renderPieSparkline(_0x1090f4,_0x53a42f,_0x556027[_0x49dd31(0x1e9)],_0x58ae64,_0x585d8e);}}}}};this[_0x32de6d(0x1fe)]['registerRenderer'](SHEET_SPARKLINE_RENDERER,_0x5074b0);}['_initSkeleton'](){const _0x464ece=_0x18ba0d,_0x2426cc=()=>{const _0x325197=_0x3ec9;var _0x56dad2;(_0x56dad2=this['_context']['mainComponent'])===null||_0x56dad2===void 0x0||_0x56dad2[_0x325197(0x270)]();};this[_0x464ece(0x289)](this[_0x464ece(0x38a)][_0x464ece(0x310)][_0x464ece(0x277)]((0x0,rxjs[_0x464ece(0x205)])(0x12c))[_0x464ece(0x1d6)](_0x2426cc));}};SheetSparklineRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_sparkline[_0x18ba0d(0x388)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_sheets_graphics[_0x18ba0d(0x276)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_sheets[_0x18ba0d(0x330)]))],SheetSparklineRenderController);let UniverSheetSparklineUIPlugin=class UniverSheetSparklineUIPlugin extends _univerjs_core[_0x18ba0d(0x21d)]{constructor(_0x490ab4=defaultPluginConfig,_0x664b2f,_0x4206cd,_0x5e4050,_0x4841ec){const _0x3cb9a6=_0x18ba0d;super(),this[_0x3cb9a6(0x2d3)]=_0x490ab4,this[_0x3cb9a6(0x26f)]=_0x664b2f,this[_0x3cb9a6(0x240)]=_0x4206cd,this[_0x3cb9a6(0x36b)]=_0x5e4050,this[_0x3cb9a6(0x37b)]=_0x4841ec;const {menu:_0x1f2592,..._0x161bbb}=(0x0,_univerjs_core[_0x3cb9a6(0x287)])({},defaultPluginConfig,this[_0x3cb9a6(0x2d3)]);if(_0x1f2592)this['_configService'][_0x3cb9a6(0x251)](_0x3cb9a6(0x25f),_0x1f2592,{'merge':!![]});this[_0x3cb9a6(0x26f)][_0x3cb9a6(0x251)](SHEETS_SPARKLINE_UI_PLUGIN_CONFIG_KEY,_0x161bbb),this[_0x3cb9a6(0x35d)]();}[_0x18ba0d(0x322)](){[[SheetsSparklineMenuController],[SheetSparklineSelectionController],[SheetSparklineAutoFillController],[SheetSparklinePermissionController],[SheetSparklineController],[SheetSparklinePrintingController]]['forEach'](_0xba939e=>{const _0x5b85c8=_0x3ec9;this[_0x5b85c8(0x240)]['add'](_0xba939e);}),(0x0,_univerjs_core['touchDependencies'])(this['_injector'],[[SheetsSparklineMenuController]]);}[_0x18ba0d(0x327)](){const _0x315d5e=_0x18ba0d;[[SheetSparklineRenderController]][_0x315d5e(0x321)](_0x1710c0=>{const _0x5c343c=_0x315d5e;this[_0x5c343c(0x37b)][_0x5c343c(0x2e8)](_univerjs_core[_0x5c343c(0x1d4)][_0x5c343c(0x27e)],_0x1710c0);}),(0x0,_univerjs_core[_0x315d5e(0x394)])(this['_injector'],[[SheetSparklineSelectionController],[SheetSparklineAutoFillController],[SheetSparklinePermissionController],[SheetSparklineController],[SheetSparklinePrintingController]]);}[_0x18ba0d(0x35d)](){const _0x4537a2=_0x18ba0d;[OpenSparklineSelectorOperation,OpenSparklinePanelOperation][_0x4537a2(0x321)](_0x191019=>this[_0x4537a2(0x36b)][_0x4537a2(0x31d)](_0x191019));}};_defineProperty(UniverSheetSparklineUIPlugin,_0x18ba0d(0x2b7),_0x18ba0d(0x1fd)),_defineProperty(UniverSheetSparklineUIPlugin,_0x18ba0d(0x28e),name),_defineProperty(UniverSheetSparklineUIPlugin,_0x18ba0d(0x368),version),_defineProperty(UniverSheetSparklineUIPlugin,_0x18ba0d(0x38e),_univerjs_core[_0x18ba0d(0x1d4)][_0x18ba0d(0x27e)]),UniverSheetSparklineUIPlugin=__decorate([(0x0,_univerjs_core[_0x18ba0d(0x2a8)])(_univerjs_pro_sheets_sparkline[_0x18ba0d(0x209)],_univerjs_sheets_graphics[_0x18ba0d(0x271)]),__decorateParam(0x1,_univerjs_core[_0x18ba0d(0x2a4)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x18ba0d(0x29f)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x18ba0d(0x348)])(_univerjs_core[_0x18ba0d(0x2e3)])),__decorateParam(0x4,_univerjs_engine_render[_0x18ba0d(0x2e9)])],UniverSheetSparklineUIPlugin),Object['defineProperty'](exports,_0x18ba0d(0x398),{'enumerable':!![],'get':function(){return UniverSheetSparklineUIPlugin;}});
|
|
1
|
+
function _0xec58(){const _0x274ed6=['sheet.operation.open-sparkline-selector','sheets-sparkline.selector.title','ONLY_FORMAT','targetRanges','univer-mb-3\x20univer-text-sm\x20univer-font-medium','SetWorksheetActiveOperation','save','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-justify-between','intersects','u-connect','rows','PLUGIN_NAME','CommandType','SheetPrintInterceptorService','sheets-sparkline.panel.groupMin','COPY','sheets-sparkline.panel.line','SparklineThemeMapping','nonNumShowAs','some','ComponentManager','_registerRenderer','rect','sheets-sparkline.panel.reverse','sheets-sparkline.panel.unCompose','SHEET_SPARKLINE_PANEL_ID','realDeleteValue','_initWorksheetChange','rgba(73,\x20184,\x2017,\x200.05)','reverse','ContextMenuPosition','lineJoin','addColorStop','rgb(0,\x200,\x200)','showGradient','IConfigService','univer-bg-pruniver-text-primary-600\x20univer-absolute\x20univer-bottom-0\x20univer-h-0.5\x20univer-w-full\x20univer-rounded-sm\x20univer-transition-transform\x20univer-duration-300\x20univer-ease-in-out','#ffffff','univer-rounded-tl-0.5\x20univer-rounded-bl-0.5\x20univer-h-4\x20univer-w-6','onStarting','showMin','UNIVER_SHEET','ISidebarService','extremumMax','isNaN','100634DuUFsn','extra','_sheetClipboardService','sheets-sparkline.panel.lineWidth','sheets-sparkline.panel.groupMax','deserializeRangeWithSheet','_menuManagerService','SHEET_SPARKLINE_SELECTOR','clone','UniverSheetsGraphicsPlugin','_sparklineDataSourceModel','univer-flex\x20univer-justify-between','jsxs','sheets-sparkline.selector.setSource','PREDEFINED_HOOK_NAME','getInterceptPoints','auditTime','0.22.0','sheets-sparkline.panel.horizontal','sheets-sparkline.panel.manager','seriesColor','univer-flex\x20univer-w-full\x20univer-items-center\x20univer-justify-between\x20univer-rounded-sm','join','univer-relative\x20univer-flex\x20univer-h-full\x20univer-cursor-pointer\x20univer-flex-col\x20univer-font-medium\x20univer-leading-7','SHEET_SPARKLINE_MENU','split','_rangeProtectionCache','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','unsubscribe','pipe','sheets-sparkline.panel.removeGroup','push','mainComponent','containHiddenCells','_initRegisterCommand','parseInt','primary','fill','SHEET_SPARKLINE_UI_PLUGIN','nonNum','univer-mx-0\x20univer-my-2\x20univer-text-sm\x20univer-text-gray-500','addClipboardHook','IUniverInstanceService','Checkbox','sheets-sparkline.panel.markersPoint','3px','_config','basic','PIE_CHART','NaN','_autoFillService','sheets-sparkline.panel.moreSetting','addShapeWithNoFresh','_renderManagerService','PieChartIcon','discreteRangeToRange','fillRect','_sidebarService','setConfig','ROW_HEADER','15328iptMds','univer-text-xs\x20univer-text-red-500','SPACING','RemoveSheetSparklineCommand','@univerjs-pro/sheets-sparkline-ui','realUnion','undefined','endRow','lineTo','actualRow','RangeSelector','WorksheetEditPermission','1049346brTOxg','sheets-sparkline.panel.default','close','getMenuHiddenObservable','firstPoint','sheets-sparkline.panel.zeroValue','AUTO_FILL_APPLY_TYPE','empty','isValidRange','_univerInstanceService','endColumn','_initAutoFillWithSparkline','length','Disposable','generateRandomId','points','_sourceIds','_localeService','actualColumn','pasteType','PRINTING_RANGE','sheets-sparkline.panel.axisColor','LEFT','useEffect','iterator','_initClipboardWithSparkline','IRenderManagerService','SparklineExtremumTypeEnum','activeSheet$','251259oGvYWm','isDark','sheets-sparkline.panel.advanced','blockExecuteWithoutPermission','_sheetPrintInterceptorService','emptyShowAs','univer-flex\x20univer-gap-5','UniverSheetSparklinePlugin','Dropdown','axis','standard','shift','SELF_EXTREMUM','_markSelectionService','map','intercept','univer-mt-2','_sheetGraphicsRenderController','sheets-sparkline.panel.customMax','call','negativePoint','getCurrentSelections','_sheetSelectionService','1px','univer-flex\x20univer-h-5\x20univer-w-[45%]\x20univer-items-center\x20univer-justify-between\x20univer-rounded-sm\x20hover:univer-bg-gray-200','none','deepClone','rgba(232,\x2095,\x2095,\x200.05)','univer-text-sm\x20univer-font-medium','includes','prototype','interceptor','entries','sheets-sparkline.panel.lowPoint','LocaleService','univer-mb-2\x20univer-flex\x20univer-w-full\x20univer-justify-between','_initSkeleton','univer-p-4','RangeProtectionPermissionEditPoint','closePath','serializeRange','sheets-sparkline.panel.showZeroAxis','startRow','pluginName','toStringTag','removeShape','SHEET_SPARKLINE_RENDERER','CONNECT_WITH_LINE','Radio','sparklineModel','univer-flex\x20univer-h-8\x20univer-w-full\x20univer-items-center\x20univer-rounded-lg\x20univer-bg-gray-50\x20dark:!univer-bg-gray-900','Direction','_targetIds','sheets-sparkline.panel.marker','STANDARD','Injector','sheets-sparkline.panel.vertical','u-spacing','univer-flex\x20univer-flex-col\x20univer-items-center\x20univer-gap-3\x20univer-p-3\x20univer-text-xs','ColumnSparklineIcon','getMergedCell','unitId','getSparklineById','updateConfig$','AddSheetSparklineCommand','BAR_CHART','univer-ml-3\x20univer-h-6\x20univer-w-14','MoreRightIcon','DOWN','function','SparklineDataSourceModel','univer-flex\x20univer-items-center','UniverInstanceType','beginPath','contains','sheets-sparkline.selector.sparklineGroup','size','add','getCurrentRangeDisable$','UngroupSparklineIcon','RangeProtectionCache','sheets-sparkline.edit','startGradient','jsx','LineSparklineIcon','decorate','lowPoint','ObjectMatrix','univer-mt-3','ColorKit','group','univer-max-w-[290px]\x20univer-pb-4\x20univer-text-gray-900\x20dark:!univer-text-white','combineLatest','toPrimitive','foreach','LINE_CHART','packageName','sheets-sparkline.title','sheets-sparkline.selector.multSourceError','AddSheetSparklineMutation','cellSourceRanges','CUSTOM','_initSelectionMove','touchDependencies','config','getSparklineCache','DependentOn','WinlossSparklineIcon','arc','sheets-sparkline.panel.min','mergeInfo','item','ICommandService','sheets-sparkline.selector.targetError','univer-mb-2\x20univer-text-sm\x20univer-text-gray-800\x20dark:!univer-text-gray-100','getSparkline','univer-px-0\x20univer-py-2.5','sheets-sparkline.panel.connectWithLine','dispose','lastPoint','univer-mb-5\x20univer-text-sm','lineWidth','#36A2EB','COL_HEADER','forEach','div','BUTTON','round','arcTo','ColorPicker','InputNumber','SparklineTypeEnum','sheets-sparkline.panel.compose','sheets-sparkline.panel.basic','univer-mb-2','univer-cursor-pointer','sheets-sparkline.panel.theme','_init','#E7E9ED','defineProperty','_configService','univer-mb-4','_initPermissionWithSparkline','sheets-sparkline.selector.cancel','627224aSwjDt','transformRange','sheets-sparkline.panel.spacing','Inject','groupSourceRanges','RemoveSheetSparklineMutation','univer-flex\x20univer-justify-end\x20univer-gap-2','9588087HluBNZ','ZERO_VALUE','useObservable','_initMenu','univer-relative\x20univer-mx-0\x20univer-my-4\x20univer-box-border\x20univer-flex\x20univer-h-10\x20univer-items-center\x20univer-justify-around','OPERATION','getSheetCommandTarget','worksheet','switchMap','sheet.sparkline.context-menu-id','endGradient','sheets-sparkline.panel.itemMin','startColumn','univer-ml-2\x20univer-transition-transform\x20univer-duration-300','Edit','disposeWithMe','UnitAction','GroupSparklineIcon','sheets-sparkline.panel.removeItem','sheets-sparkline-ui.config','sheets-sparkline.panel.bar','RadioGroup','sparklineAnchorMap','from','getSheetId','reduce','mergeMenu','range','MenuItemType','View','constructor','Range','markersPoint','univer-flex\x20univer-flex-col','groupId','register','Select','_sheetsSelectionsService','sheets-sparkline.panel.customMin','IDialogService','sheets-sparkline.panel.showEmptyAs','#REF!','_sheetPermissionCheckController','_injector','filter','sheets-sparkline.panel.','merge','getCellInfo','Fragment','SetSheetSparklineCommand','sheets-sparkline.selector.setTarget','COPY_TYPE','groupTargetRanges','LAYOUT','beforeCommandExecuted','toNativeArray','sheets-sparkline.panel.sparklineColor','univer-mr-0.5\x20univer-mt-0.5','Button','subscribe','#000','univer-mb-2\x20univer-text-sm','SUBITEMS','min','selectionMoveEnd$','clip','sheets-sparkline.remove','extremumMin','WorkbookEditablePermission','sheets-sparkline.panel.composeManager','1127AQcsGv','getSubUnitSparkline','sheets-sparkline.panel.pie','fillStyle','sheets-sparkline.panel.lastPoint','CUSTOM_EXTREMUM','clsx','showRadius','restore','#9966FF','advanced','_initComponents','themeType','cellToRange','MEDIA','_commandService','distinctUntilChanged','sheets-sparkline.selector.sparkline','keys','strokeStyle','default','useRef','type','symbol','sheets-sparkline.panel.adjustStyle','string','params','number','ISheetClipboardService','_context','value','_componentManager','univer-flex\x20univer-h-8\x20univer-w-full\x20univer-cursor-default\x20univer-items-center\x20univer-rounded-lg\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','sparklines','univer-size-4\x20univer-pr-1','WriteIcon','getValue','ContextMenuGroup','getMatrix','visible','SheetsSelectionsService','has','sheets-sparkline.panel.negativePoint','univer-h-7\x20univer-flex-1\x20univer-cursor-pointer\x20univer-rounded-sm\x20univer-text-center\x20univer-text-sm\x20univer-leading-7','highPoint','cols','SparklineThemeTypeEnum','#49B811','sheets-sparkline.panel.highPoint','useState','Tools','color','stroke','#FFCE56','Rectangle','getSizeOf','executeCommand','sheets-sparkline.panel.title','useDependency','useMemo','matrix','moveTo','univer-m-0.5\x20univer-flex\x20univer-h-8\x20univer-flex-1\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-sm\x20univer-text-center\x20univer-leading-8','permissionCheckWithRanges','transparent','borderClassName','SHEET_SPARKLINE_PANEL','19995WNLZoY','abs','random','object','setValue','max','getUnitId','#f00c0c','sheets-sparkline.panel.profitAndLoss','version','546SJTKQa','get','borderBottomClassName','getColVisible','SpacialShowAsEnum','span','2px','permission.dialog.editErr','univer-flex\x20univer-w-full\x20univer-rounded-lg\x20!univer-bg-gray-50\x20univer-p-0\x20dark:!univer-bg-gray-900'];_0xec58=function(){return _0x274ed6;};return _0xec58();}const _0x591be4=_0x35c4;(function(_0x4dfd6c,_0xb73324){const _0x185c96=_0x35c4,_0x505e46=_0x4dfd6c();while(!![]){try{const _0x44be74=-parseInt(_0x185c96(0x33a))/0x1+-parseInt(_0x185c96(0x2d5))/0x2+-parseInt(_0x185c96(0x31d))/0x3+-parseInt(_0x185c96(0x205))/0x4+-parseInt(_0x185c96(0x295))/0x5*(-parseInt(_0x185c96(0x29f))/0x6)+-parseInt(_0x185c96(0x252))/0x7*(parseInt(_0x185c96(0x311))/0x8)+parseInt(_0x185c96(0x20c))/0x9;if(_0x44be74===_0xb73324)break;else _0x505e46['push'](_0x505e46['shift']());}catch(_0x336893){_0x505e46['push'](_0x505e46['shift']());}}}(_0xec58,0x4c524),Object['defineProperty'](exports,Symbol[_0x591be4(0x366)],{'value':'Module'}));let _univerjs_pro_sheets_sparkline=require('@univerjs-pro/sheets-sparkline'),_univerjs_core=require('@univerjs/core'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_sheets_graphics=require('@univerjs/sheets-graphics'),_univerjs_ui=require('@univerjs/ui'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_icons=require('@univerjs/icons'),_univerjs_design=require('@univerjs/design'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_sheets_formula_ui=require('@univerjs/sheets-formula-ui'),rxjs=require('rxjs');var name=_0x591be4(0x315),version=_0x591be4(0x2e6);const SHEET_SPARKLINE_MENU=_0x591be4(0x2ed),SHEET_SPARKLINE_SELECTOR=_0x591be4(0x2dc),SHEET_SPARKLINE_PANEL=_0x591be4(0x294),SHEET_SPARKLINE_PANEL_ID=_0x591be4(0x2c1),SHEET_SPARKLINE_RENDERER=_0x591be4(0x368),OpenSparklinePanelOperation={'id':'sheet.operation.open-sparkline-panel','type':_univerjs_core['CommandType'][_0x591be4(0x211)],'handler':_0x345f6e=>{const _0x554227=_0x591be4,_0x16be7c=_0x345f6e[_0x554227(0x2a0)](_univerjs_ui[_0x554227(0x2d2)]),_0x5551c6=_0x345f6e[_0x554227(0x2a0)](_univerjs_core[_0x554227(0x35c)]),_0x3a434a=_0x345f6e[_0x554227(0x2a0)](_univerjs_ui[_0x554227(0x233)]),_0x25ce17={'id':SHEET_SPARKLINE_PANEL_ID,'header':{'title':_0x5551c6['t'](_0x554227(0x28b))},'children':{'label':SHEET_SPARKLINE_PANEL},'width':0x14a,'destroyOnClose':!![],'onClose':()=>{const _0x424cef=_0x554227;_0x3a434a[_0x424cef(0x31f)](SHEET_SPARKLINE_SELECTOR);}};return _0x16be7c['open'](_0x25ce17),!![];}},OpenSparklineSelectorOperation={'type':_univerjs_core[_0x591be4(0x2b4)][_0x591be4(0x211)],'id':_0x591be4(0x2a8),'handler':async _0x3291f6=>{const _0xbda2bd=_0x591be4,_0x59f63a=(0x0,_univerjs_sheets[_0xbda2bd(0x212)])(_0x3291f6['get'](_univerjs_core[_0xbda2bd(0x2ff)]));if(!_0x59f63a)return![];const _0x14c0b3=await openSparklineRangeSelector(_0x3291f6,_0x3291f6[_0xbda2bd(0x2a0)](_univerjs_sheets['SheetsSelectionsService'])[_0xbda2bd(0x34f)]()[_0xbda2bd(0x348)](_0x1e31ec=>_0x1e31ec[_0xbda2bd(0x227)]));if(!_0x14c0b3)return![];const {unitId:_0x488ffd,subUnitId:_0x31a204}=_0x59f63a;return _0x3291f6[_0xbda2bd(0x2a0)](_univerjs_core[_0xbda2bd(0x1e5)])[_0xbda2bd(0x28a)](_univerjs_pro_sheets_sparkline[_0xbda2bd(0x37a)]['id'],{'sourceRanges':_0x14c0b3['sourceRanges'],'targetRanges':_0x14c0b3[_0xbda2bd(0x2ab)],'targetInfo':{'unitId':_0x488ffd,'subUnitId':_0x31a204}}),!![];}};async function openSparklineRangeSelector(_0x5aee05,_0x36f0ea,_0x33bedf,_0x217506){const _0x1c4b6e=_0x591be4,_0x20976e=_0x5aee05[_0x1c4b6e(0x2a0)](_univerjs_ui['IDialogService']),_0x291110=_0x5aee05[_0x1c4b6e(0x2a0)](_univerjs_core[_0x1c4b6e(0x35c)]);return new Promise(_0x7bdb31=>{const _0x5228bf=_0x1c4b6e;let _0x4eb920;const _0xac298b={'sourceRanges':_0x36f0ea,'targetRanges':_0x33bedf,'resetCtx':_0x217506,'onConfirm':_0xe4e8cd=>{const _0x497d8a=_0x35c4;_0x7bdb31(_0xe4e8cd),_0x4eb920===null||_0x4eb920===void 0x0||_0x4eb920[_0x497d8a(0x1eb)]();},'onCancel':()=>{const _0x5dba8c=_0x35c4;_0x7bdb31(null),_0x4eb920===null||_0x4eb920===void 0x0||_0x4eb920[_0x5dba8c(0x1eb)]();}};_0x4eb920=_0x20976e['open']({'id':SHEET_SPARKLINE_SELECTOR,'title':{'title':_0x291110['t'](_0x5228bf(0x2a9))},'draggable':!![],'mask':![],'maskClosable':![],'destroyOnClose':!![],'children':{'label':{'name':SHEET_SPARKLINE_SELECTOR,'props':_0xac298b}},'width':0x190,'onClose':()=>{const _0x1e4e60=_0x5228bf;_0x4eb920[_0x1e4e60(0x1eb)]();}});});}const SHEETS_SPARKLINE_UI_PLUGIN_CONFIG_KEY=_0x591be4(0x21f),configSymbol=Symbol(SHEETS_SPARKLINE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function __decorateParam(_0x509da0,_0x51eff0){return function(_0xadf1dc,_0x416d03){_0x51eff0(_0xadf1dc,_0x416d03,_0x509da0);};}function __decorate(_0x66f86e,_0x208bd8,_0x41a638,_0x87676b){const _0x2146cf=_0x591be4;var _0x33d94a=arguments[_0x2146cf(0x329)],_0x3bdc49=_0x33d94a<0x3?_0x208bd8:_0x87676b===null?_0x87676b=Object['getOwnPropertyDescriptor'](_0x208bd8,_0x41a638):_0x87676b,_0x3f7bc0;if(typeof Reflect===_0x2146cf(0x298)&&typeof Reflect[_0x2146cf(0x38f)]===_0x2146cf(0x37f))_0x3bdc49=Reflect[_0x2146cf(0x38f)](_0x66f86e,_0x208bd8,_0x41a638,_0x87676b);else{for(var _0x12a6b1=_0x66f86e[_0x2146cf(0x329)]-0x1;_0x12a6b1>=0x0;_0x12a6b1--)if(_0x3f7bc0=_0x66f86e[_0x12a6b1])_0x3bdc49=(_0x33d94a<0x3?_0x3f7bc0(_0x3bdc49):_0x33d94a>0x3?_0x3f7bc0(_0x208bd8,_0x41a638,_0x3bdc49):_0x3f7bc0(_0x208bd8,_0x41a638))||_0x3bdc49;}return _0x33d94a>0x3&&_0x3bdc49&&Object[_0x2146cf(0x200)](_0x208bd8,_0x41a638,_0x3bdc49),_0x3bdc49;}let SheetSparklineAutoFillController=class SheetSparklineAutoFillController extends _univerjs_core['Disposable']{constructor(_0x2d78b3,_0x29ae97,_0x21f496,_0x127019){const _0x59e7a5=_0x591be4;super(),this[_0x59e7a5(0x237)]=_0x2d78b3,this['_univerInstanceService']=_0x29ae97,this[_0x59e7a5(0x307)]=_0x21f496,this['_sparklineDataSourceModel']=_0x127019,this['_initAutoFillWithSparkline']();}[_0x591be4(0x328)](){const _0xde15f2=_0x591be4,_0x32aa7a=()=>({'redos':[],'undos':[]}),_0x69dac9=(_0x47f962,_0x18e61d)=>{const _0x434aa1=_0x35c4,_0x4835e1=[],_0x476d7d=[],{source:_0x5eafde,target:_0x5bab43,unitId:_0x10ebf2,subUnitId:_0x1e1cf0}=_0x47f962;if(!_0x5eafde||!_0x5bab43||_0x18e61d==null)return{'undos':_0x4835e1,'redos':_0x476d7d};const _0x666a8f=(0x0,_univerjs_sheets[_0x434aa1(0x30c)])(_0x5eafde),_0x16466f=(0x0,_univerjs_sheets['discreteRangeToRange'])(_0x5bab43),_0x45d8bc=_0x666a8f[_0x434aa1(0x318)]-_0x666a8f[_0x434aa1(0x364)]+0x1,_0x3a961e=_0x666a8f['endColumn']-_0x666a8f[_0x434aa1(0x218)]+0x1,_0x8d7ce1=_0x16466f[_0x434aa1(0x318)]-_0x16466f[_0x434aa1(0x364)]+0x1,_0x5696de=_0x16466f['endColumn']-_0x16466f['startColumn']+0x1;if(_univerjs_core['Rectangle'][_0x434aa1(0x384)](_0x666a8f,_0x16466f))return{'undos':_0x4835e1,'redos':_0x476d7d};if(_0x18e61d===_univerjs_core[_0x434aa1(0x36d)]['UP']){const _0x4f9973={},_0x51a5df={},_0x382b91=new Set();for(let _0x4b1da9=0x0;_0x4b1da9<_0x3a961e;_0x4b1da9++)for(let _0x47ed24=0x0;_0x47ed24<_0x8d7ce1;_0x47ed24++){const _0x368874=_0x47ed24%_0x45d8bc,_0x1183a6=_0x16466f[_0x434aa1(0x364)]+_0x47ed24,_0x33c24e=_0x16466f['startColumn']+_0x4b1da9,_0x12d3e1=_0x666a8f[_0x434aa1(0x364)]+_0x368874,_0x14e2f7=this[_0x434aa1(0x2df)][_0x434aa1(0x1e8)](_0x10ebf2,_0x1e1cf0,_0x1183a6,_0x33c24e);if(_0x14e2f7){_0x382b91[_0x434aa1(0x387)](_0x14e2f7);const _0x3da2d2=this[_0x434aa1(0x2df)][_0x434aa1(0x378)](_0x10ebf2,_0x1e1cf0,_0x14e2f7);if(_0x3da2d2){_0x51a5df[_0x14e2f7]={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x3da2d2[_0x434aa1(0x3a2)]),'sparklines':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x3da2d2['sparklines'][_0x434aa1(0x2dd)]())};let _0x3af4a0=_0x4f9973[_0x14e2f7];!_0x3af4a0&&(_0x3af4a0={'config':_univerjs_core[_0x434aa1(0x284)]['deepClone'](_0x3da2d2['config']),'sparklines':new _univerjs_core['ObjectMatrix'](_0x3da2d2[_0x434aa1(0x273)][_0x434aa1(0x2dd)]())},_0x4f9973[_0x14e2f7]=_0x3af4a0),_0x3af4a0['sparklines'][_0x434aa1(0x2c2)](_0x1183a6,_0x33c24e);}}const _0x54e878=this[_0x434aa1(0x2df)][_0x434aa1(0x1e8)](_0x10ebf2,_0x1e1cf0,_0x12d3e1,_0x33c24e);if(_0x54e878){const _0x362c2a=this[_0x434aa1(0x2df)][_0x434aa1(0x378)](_0x10ebf2,_0x1e1cf0,_0x54e878);if(_0x362c2a){var _0x124055;_0x51a5df[_0x54e878]={'config':_univerjs_core['Tools']['deepClone'](_0x362c2a[_0x434aa1(0x3a2)]),'sparklines':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x362c2a['sparklines'][_0x434aa1(0x2dd)]())};let _0x2316f4=_0x4f9973[_0x54e878];!_0x2316f4&&(_0x2316f4={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x362c2a['config']),'sparklines':new _univerjs_core['ObjectMatrix'](_0x362c2a[_0x434aa1(0x273)][_0x434aa1(0x2dd)]())},_0x4f9973[_0x54e878]=_0x2316f4);_0x2316f4[_0x434aa1(0x273)][_0x434aa1(0x2c2)](_0x1183a6,_0x33c24e);const _0x3f6055=(_0x124055=this[_0x434aa1(0x2df)][_0x434aa1(0x378)](_0x10ebf2,_0x1e1cf0,_0x54e878))===null||_0x124055===void 0x0?void 0x0:_0x124055['sparklines'],_0x18447f=_0x3f6055===null||_0x3f6055===void 0x0?void 0x0:_0x3f6055['getValue'](_0x12d3e1,_0x33c24e);if(_0x18447f){const _0x1a6545={..._0x18447f,'startRow':_0x18447f['startRow']+_0x1183a6-_0x12d3e1,'endRow':_0x18447f[_0x434aa1(0x318)]+_0x1183a6-_0x12d3e1};_0x2316f4[_0x434aa1(0x273)][_0x434aa1(0x299)](_0x1183a6,_0x33c24e,_0x1a6545),_0x382b91[_0x434aa1(0x387)](_0x54e878);}}}const _0xecef2b={};Object[_0x434aa1(0x35a)](_0x4f9973)['forEach'](([_0x47c400,_0x59b8e4])=>{const _0x7c6bf1=_0x434aa1;if(_0x59b8e4[_0x7c6bf1(0x273)][_0x7c6bf1(0x289)]())_0xecef2b[_0x47c400]={'config':_0x59b8e4[_0x7c6bf1(0x3a2)],'sparklines':_0x59b8e4[_0x7c6bf1(0x273)][_0x7c6bf1(0x2dd)]()};}),_0x382b91['size']&&(_0x476d7d[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x20a)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'groupIds':Array[_0x434aa1(0x223)](_0x382b91),'isSingle':![]}}),_0x4835e1['push']({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x20a)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'groupIds':Array[_0x434aa1(0x223)](_0x382b91),'isSingle':![]}}),_0x476d7d[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x39d)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'sparklineConfigMap':_0xecef2b}}),_0x4835e1[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x39d)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'sparklineConfigMap':_0x51a5df}}));}}else{if(_0x18e61d===_univerjs_core[_0x434aa1(0x36d)][_0x434aa1(0x37e)]){const _0x35ef81={},_0x1208c5={},_0x16ebd6=new Set();for(let _0x54391b=0x0;_0x54391b<_0x3a961e;_0x54391b++)for(let _0x541b3d=0x0;_0x541b3d<_0x8d7ce1;_0x541b3d++){const _0x56c7dd=_0x541b3d%_0x45d8bc,_0x527b87=_0x16466f[_0x434aa1(0x364)]+_0x541b3d,_0x24a0a6=_0x16466f[_0x434aa1(0x218)]+_0x54391b,_0x93bfa6=_0x666a8f[_0x434aa1(0x364)]+_0x56c7dd,_0x232b52=this[_0x434aa1(0x2df)][_0x434aa1(0x1e8)](_0x10ebf2,_0x1e1cf0,_0x93bfa6,_0x24a0a6),_0x5572be=this[_0x434aa1(0x2df)][_0x434aa1(0x1e8)](_0x10ebf2,_0x1e1cf0,_0x527b87,_0x24a0a6);if(_0x5572be){_0x16ebd6[_0x434aa1(0x387)](_0x5572be);const _0x197361=this['_sparklineDataSourceModel'][_0x434aa1(0x378)](_0x10ebf2,_0x1e1cf0,_0x5572be);if(_0x197361){_0x1208c5[_0x5572be]={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x197361[_0x434aa1(0x3a2)]),'sparklines':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x197361['sparklines']['clone']())};let _0x11197f=_0x35ef81[_0x5572be];!_0x11197f&&(_0x11197f={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x197361[_0x434aa1(0x3a2)]),'sparklines':new _univerjs_core[(_0x434aa1(0x391))](_0x197361[_0x434aa1(0x273)][_0x434aa1(0x2dd)]())},_0x35ef81[_0x5572be]=_0x11197f),_0x11197f[_0x434aa1(0x273)][_0x434aa1(0x2c2)](_0x527b87,_0x24a0a6);}}if(_0x232b52){const _0x3bf1c2=this['_sparklineDataSourceModel'][_0x434aa1(0x378)](_0x10ebf2,_0x1e1cf0,_0x232b52);if(_0x3bf1c2){var _0x20ab66;_0x1208c5[_0x232b52]={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x3bf1c2[_0x434aa1(0x3a2)]),'sparklines':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x3bf1c2['sparklines']['clone']())};let _0x32d8fd=_0x35ef81[_0x232b52];!_0x32d8fd&&(_0x32d8fd={'config':_univerjs_core['Tools'][_0x434aa1(0x354)](_0x3bf1c2[_0x434aa1(0x3a2)]),'sparklines':new _univerjs_core[(_0x434aa1(0x391))](_0x3bf1c2[_0x434aa1(0x273)]['clone']())},_0x35ef81[_0x232b52]=_0x32d8fd);_0x32d8fd[_0x434aa1(0x273)][_0x434aa1(0x2c2)](_0x527b87,_0x24a0a6);const _0x921b2d=(_0x20ab66=this[_0x434aa1(0x2df)][_0x434aa1(0x378)](_0x10ebf2,_0x1e1cf0,_0x232b52))===null||_0x20ab66===void 0x0?void 0x0:_0x20ab66['sparklines'],_0x11fd00=_0x921b2d===null||_0x921b2d===void 0x0?void 0x0:_0x921b2d[_0x434aa1(0x276)](_0x93bfa6,_0x24a0a6);if(_0x11fd00){const _0x260541={..._0x11fd00,'startRow':_0x11fd00[_0x434aa1(0x364)]+_0x527b87-_0x93bfa6,'endRow':_0x11fd00['endRow']+_0x527b87-_0x93bfa6};_0x32d8fd['sparklines'][_0x434aa1(0x299)](_0x527b87,_0x24a0a6,_0x260541),_0x16ebd6[_0x434aa1(0x387)](_0x232b52);}}}}const _0x50901f={};Object['entries'](_0x35ef81)[_0x434aa1(0x1f1)](([_0x599d68,_0x4c8a7c])=>{const _0x327365=_0x434aa1;if(_0x4c8a7c[_0x327365(0x273)][_0x327365(0x289)]())_0x50901f[_0x599d68]={'config':_0x4c8a7c[_0x327365(0x3a2)],'sparklines':_0x4c8a7c['sparklines'][_0x327365(0x2dd)]()};}),_0x16ebd6[_0x434aa1(0x386)]&&(_0x476d7d[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x20a)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'groupIds':Array[_0x434aa1(0x223)](_0x16ebd6),'isSingle':![]}}),_0x4835e1[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x20a)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'groupIds':Array[_0x434aa1(0x223)](_0x16ebd6),'isSingle':![]}}),_0x476d7d[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x39d)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'sparklineConfigMap':_0x50901f}}),_0x4835e1[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x39d)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'sparklineConfigMap':_0x1208c5}}));}else{if(_0x18e61d===_univerjs_core[_0x434aa1(0x36d)][_0x434aa1(0x333)]){const _0xbfe6ef={},_0x1b86f3={},_0x57ec6a=new Set();for(let _0x350b07=0x0;_0x350b07<_0x45d8bc;_0x350b07++)for(let _0x50a4b1=0x0;_0x50a4b1<_0x5696de;_0x50a4b1++){const _0x3843a3=_0x50a4b1%_0x3a961e,_0x315e26=_0x16466f[_0x434aa1(0x364)]+_0x350b07,_0x59e72b=_0x16466f[_0x434aa1(0x218)]+_0x50a4b1,_0x2d4789=_0x666a8f[_0x434aa1(0x218)]+_0x3843a3,_0x36b4e7=this[_0x434aa1(0x2df)][_0x434aa1(0x1e8)](_0x10ebf2,_0x1e1cf0,_0x315e26,_0x59e72b);if(_0x36b4e7){_0x57ec6a[_0x434aa1(0x387)](_0x36b4e7);const _0x7b7dec=this['_sparklineDataSourceModel']['getSparklineById'](_0x10ebf2,_0x1e1cf0,_0x36b4e7);if(_0x7b7dec){_0x1b86f3[_0x36b4e7]={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x7b7dec[_0x434aa1(0x3a2)]),'sparklines':_univerjs_core[_0x434aa1(0x284)]['deepClone'](_0x7b7dec['sparklines'][_0x434aa1(0x2dd)]())};let _0x374e57=_0xbfe6ef[_0x36b4e7];!_0x374e57&&(_0x374e57={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x7b7dec[_0x434aa1(0x3a2)]),'sparklines':new _univerjs_core['ObjectMatrix'](_0x7b7dec[_0x434aa1(0x273)][_0x434aa1(0x2dd)]())},_0xbfe6ef[_0x36b4e7]=_0x374e57),_0x374e57[_0x434aa1(0x273)][_0x434aa1(0x2c2)](_0x315e26,_0x59e72b);}}const _0x5d55b7=this['_sparklineDataSourceModel'][_0x434aa1(0x1e8)](_0x10ebf2,_0x1e1cf0,_0x315e26,_0x2d4789);if(_0x5d55b7){const _0x8429ba=this[_0x434aa1(0x2df)]['getSparklineById'](_0x10ebf2,_0x1e1cf0,_0x5d55b7);if(_0x8429ba){var _0x2bb9c7;_0x1b86f3[_0x5d55b7]={'config':_univerjs_core[_0x434aa1(0x284)]['deepClone'](_0x8429ba['config']),'sparklines':_univerjs_core['Tools']['deepClone'](_0x8429ba[_0x434aa1(0x273)][_0x434aa1(0x2dd)]())};let _0x3a0d43=_0xbfe6ef[_0x5d55b7];!_0x3a0d43&&(_0x3a0d43={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x8429ba[_0x434aa1(0x3a2)]),'sparklines':new _univerjs_core[(_0x434aa1(0x391))](_0x8429ba['sparklines'][_0x434aa1(0x2dd)]())},_0xbfe6ef[_0x5d55b7]=_0x3a0d43);_0x3a0d43[_0x434aa1(0x273)][_0x434aa1(0x2c2)](_0x315e26,_0x59e72b);const _0x23e106=(_0x2bb9c7=this['_sparklineDataSourceModel'][_0x434aa1(0x378)](_0x10ebf2,_0x1e1cf0,_0x5d55b7))===null||_0x2bb9c7===void 0x0?void 0x0:_0x2bb9c7[_0x434aa1(0x273)],_0x42ac56=_0x23e106===null||_0x23e106===void 0x0?void 0x0:_0x23e106[_0x434aa1(0x276)](_0x315e26,_0x2d4789);if(_0x42ac56){const _0x5600bb={..._0x42ac56,'startColumn':_0x42ac56[_0x434aa1(0x218)]+_0x59e72b-_0x2d4789,'endColumn':_0x42ac56['endColumn']+_0x59e72b-_0x2d4789};_0x3a0d43[_0x434aa1(0x273)][_0x434aa1(0x299)](_0x315e26,_0x59e72b,_0x5600bb),_0x57ec6a[_0x434aa1(0x387)](_0x5d55b7);}}}}const _0x54ee02={};Object[_0x434aa1(0x35a)](_0xbfe6ef)[_0x434aa1(0x1f1)](([_0x13c0e6,_0x51bf96])=>{const _0x1e0f89=_0x434aa1;if(_0x51bf96[_0x1e0f89(0x273)]['getSizeOf']())_0x54ee02[_0x13c0e6]={'config':_0x51bf96[_0x1e0f89(0x3a2)],'sparklines':_0x51bf96[_0x1e0f89(0x273)][_0x1e0f89(0x2dd)]()};}),_0x57ec6a[_0x434aa1(0x386)]&&(_0x476d7d['push']({'id':_univerjs_pro_sheets_sparkline['RemoveSheetSparklineMutation']['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'groupIds':Array[_0x434aa1(0x223)](_0x57ec6a),'isSingle':![]}}),_0x4835e1[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x20a)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'groupIds':Array['from'](_0x57ec6a),'isSingle':![]}}),_0x476d7d[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline['AddSheetSparklineMutation']['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'sparklineConfigMap':_0x54ee02}}),_0x4835e1[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x39d)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'sparklineConfigMap':_0x1b86f3}}));}else{if(_0x18e61d===_univerjs_core[_0x434aa1(0x36d)]['RIGHT']){const _0x5afd5d={},_0x2da41c={},_0x12b7ed=new Set();for(let _0x56378=0x0;_0x56378<_0x45d8bc;_0x56378++)for(let _0x23e817=0x0;_0x23e817<_0x5696de;_0x23e817++){const _0x23017c=_0x23e817%_0x3a961e,_0x5a51ba=_0x16466f[_0x434aa1(0x364)]+_0x56378,_0x56c9d8=_0x16466f[_0x434aa1(0x218)]+_0x23e817,_0x51e28f=_0x666a8f[_0x434aa1(0x218)]+_0x23017c,_0x59c177=this[_0x434aa1(0x2df)][_0x434aa1(0x1e8)](_0x10ebf2,_0x1e1cf0,_0x5a51ba,_0x56c9d8);if(_0x59c177){_0x12b7ed[_0x434aa1(0x387)](_0x59c177);const _0x35e110=this[_0x434aa1(0x2df)][_0x434aa1(0x378)](_0x10ebf2,_0x1e1cf0,_0x59c177);if(_0x35e110){_0x2da41c[_0x59c177]={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x35e110[_0x434aa1(0x3a2)]),'sparklines':_univerjs_core[_0x434aa1(0x284)]['deepClone'](_0x35e110[_0x434aa1(0x273)][_0x434aa1(0x2dd)]())};let _0x3844b9=_0x5afd5d[_0x59c177];!_0x3844b9&&(_0x3844b9={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x35e110[_0x434aa1(0x3a2)]),'sparklines':new _univerjs_core['ObjectMatrix'](_0x35e110['sparklines']['clone']())},_0x5afd5d[_0x59c177]=_0x3844b9),_0x3844b9[_0x434aa1(0x273)][_0x434aa1(0x2c2)](_0x5a51ba,_0x56c9d8);}}const _0x323904=this[_0x434aa1(0x2df)]['getSparkline'](_0x10ebf2,_0x1e1cf0,_0x5a51ba,_0x51e28f);if(_0x323904){const _0x557d3c=this['_sparklineDataSourceModel'][_0x434aa1(0x378)](_0x10ebf2,_0x1e1cf0,_0x323904);if(_0x557d3c){var _0x40e902;_0x2da41c[_0x323904]={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x557d3c[_0x434aa1(0x3a2)]),'sparklines':_univerjs_core[_0x434aa1(0x284)]['deepClone'](_0x557d3c[_0x434aa1(0x273)]['clone']())};let _0x3b6acc=_0x5afd5d[_0x323904];!_0x3b6acc&&(_0x3b6acc={'config':_univerjs_core[_0x434aa1(0x284)][_0x434aa1(0x354)](_0x557d3c[_0x434aa1(0x3a2)]),'sparklines':new _univerjs_core[(_0x434aa1(0x391))](_0x557d3c[_0x434aa1(0x273)][_0x434aa1(0x2dd)]())},_0x5afd5d[_0x323904]=_0x3b6acc);_0x3b6acc['sparklines'][_0x434aa1(0x2c2)](_0x5a51ba,_0x56c9d8);const _0x234bdd=(_0x40e902=this[_0x434aa1(0x2df)][_0x434aa1(0x378)](_0x10ebf2,_0x1e1cf0,_0x323904))===null||_0x40e902===void 0x0?void 0x0:_0x40e902[_0x434aa1(0x273)],_0x1bb433=_0x234bdd===null||_0x234bdd===void 0x0?void 0x0:_0x234bdd['getValue'](_0x5a51ba,_0x51e28f);if(_0x1bb433){const _0x3eb11f={..._0x1bb433,'startColumn':_0x1bb433[_0x434aa1(0x218)]+_0x56c9d8-_0x51e28f,'endColumn':_0x1bb433[_0x434aa1(0x327)]+_0x56c9d8-_0x51e28f};_0x3b6acc[_0x434aa1(0x273)][_0x434aa1(0x299)](_0x5a51ba,_0x56c9d8,_0x3eb11f),_0x12b7ed[_0x434aa1(0x387)](_0x323904);}}}}const _0x1d7f56={};Object[_0x434aa1(0x35a)](_0x5afd5d)['forEach'](([_0x1e23b2,_0x445fba])=>{const _0x1f38e9=_0x434aa1;if(_0x445fba[_0x1f38e9(0x273)][_0x1f38e9(0x289)]())_0x1d7f56[_0x1e23b2]={'config':_0x445fba[_0x1f38e9(0x3a2)],'sparklines':_0x445fba['sparklines'][_0x1f38e9(0x2dd)]()};}),_0x12b7ed[_0x434aa1(0x386)]&&(_0x476d7d['push']({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x20a)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'groupIds':Array[_0x434aa1(0x223)](_0x12b7ed),'isSingle':![]}}),_0x4835e1[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x20a)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'groupIds':Array[_0x434aa1(0x223)](_0x12b7ed),'isSingle':![]}}),_0x476d7d[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x39d)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'sparklineConfigMap':_0x1d7f56}}),_0x4835e1[_0x434aa1(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x434aa1(0x39d)]['id'],'params':{'unitId':_0x10ebf2,'subUnitId':_0x1e1cf0,'sparklineConfigMap':_0x2da41c}}));}}}}return{'undos':_0x4835e1,'redos':_0x476d7d};},_0x5b3360={'id':_univerjs_pro_sheets_sparkline['PLUGIN_NAME'],'onFillData':(_0x16c6a0,_0x1cc9a6,_0x407404)=>{const _0x3a551d=_0x35c4;if(_0x407404===_univerjs_sheets[_0x3a551d(0x323)]['COPY']||_0x407404===_univerjs_sheets[_0x3a551d(0x323)][_0x3a551d(0x2aa)]||_0x407404===_univerjs_sheets[_0x3a551d(0x323)]['SERIES'])return _0x69dac9(_0x16c6a0,_0x1cc9a6);return _0x32aa7a();}};this[_0xde15f2(0x21b)](this[_0xde15f2(0x307)]['addHook'](_0x5b3360));}};SheetSparklineAutoFillController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_core[_0x591be4(0x371)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x591be4(0x2ff)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_sheets['IAutoFillService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_pro_sheets_sparkline[_0x591be4(0x380)]))],SheetSparklineAutoFillController);let SheetSparklineController=class SheetSparklineController extends _univerjs_core['Disposable']{constructor(_0x1a0f93,_0x4560cd){const _0x1bfeb9=_0x591be4;super(),this[_0x1bfeb9(0x2d7)]=_0x1a0f93,this['_sparklineDataSourceModel']=_0x4560cd,this[_0x1bfeb9(0x336)]();}[_0x591be4(0x336)](){const _0x5616e7=_0x591be4;this['disposeWithMe'](this['_sheetClipboardService'][_0x5616e7(0x2fe)]({'id':_univerjs_pro_sheets_sparkline[_0x5616e7(0x2b3)],'onPasteCells':(_0x51aaf2,_0x9c3373,_0x47b5ea,_0x38a037)=>{const _0x2956a5=_0x5616e7,_0x418efd=[],_0x357e7d=[],{copyType:copyType=_univerjs_sheets_ui[_0x2956a5(0x23f)][_0x2956a5(0x2b7)]}=_0x38a037,_0x323df4={};if(copyType===_univerjs_sheets_ui[_0x2956a5(0x23f)]['CUT'])return{'undos':_0x418efd,'redos':_0x357e7d};if(_0x38a037[_0x2956a5(0x330)]!==_univerjs_sheets_ui[_0x2956a5(0x2e3)]['DEFAULT_PASTE'])return{'undos':_0x418efd,'redos':_0x357e7d};if(!_0x51aaf2)return{'undos':_0x418efd,'redos':_0x357e7d};if(_0x9c3373[_0x2956a5(0x377)]!==_0x51aaf2[_0x2956a5(0x377)])return{'undos':_0x418efd,'redos':_0x357e7d};const {range:_0xc6a0c1,unitId:_0x4d7205,subUnitId:_0x265147}=_0x9c3373,{range:_0x565669,unitId:_0x22849a,subUnitId:_0x571543}=_0x51aaf2,_0x2723fb={},_0x28c3f1={},_0x12a5e1={},_0x4c5876=new Set(),_0x2d631c=new Set();for(let _0x44e57c=0x0;_0x44e57c<_0xc6a0c1['rows'][_0x2956a5(0x329)];_0x44e57c++)for(let _0x578a5f=0x0;_0x578a5f<_0xc6a0c1['cols'][_0x2956a5(0x329)];_0x578a5f++){const _0x83e84c=_0x565669[_0x2956a5(0x2b2)][_0x44e57c],_0x23b38d=_0x565669[_0x2956a5(0x27f)][_0x578a5f];if(!this['_sparklineDataSourceModel']['getSparkline'](_0x22849a,_0x571543,_0x83e84c,_0x23b38d))continue;const _0x5df96f=_0xc6a0c1[_0x2956a5(0x2b2)][_0x44e57c],_0x1ca829=_0xc6a0c1[_0x2956a5(0x27f)][_0x578a5f],_0xf77d01=_0xc6a0c1['rows'][_0x44e57c]-_0x83e84c,_0x279b8a=_0xc6a0c1[_0x2956a5(0x27f)][_0x578a5f]-_0x23b38d,_0x16f4c9=this['_sparklineDataSourceModel'][_0x2956a5(0x1e8)](_0x22849a,_0x571543,_0x83e84c,_0x23b38d);if(_0x16f4c9){let _0xd43cf1=_0x2723fb[_0x323df4[_0x16f4c9]];const _0x15891a=this[_0x2956a5(0x2df)]['getSparklineById'](_0x22849a,_0x571543,_0x16f4c9);if(!_0x15891a)continue;if(!_0x323df4[_0x16f4c9]){if(_0x15891a){const _0x174d18='g_'+(0x0,_univerjs_core[_0x2956a5(0x32b)])(0x6);_0xd43cf1={'newGroupId':_0x174d18,'config':{'config':_univerjs_core[_0x2956a5(0x284)]['deepClone'](_0x15891a[_0x2956a5(0x3a2)]),'sparklines':{}}},_0x2723fb[_0x174d18]=_0xd43cf1,_0x323df4[_0x16f4c9]=_0x174d18;}}if(!_0xd43cf1[_0x2956a5(0x3a2)]['sparklines'][_0x5df96f])_0xd43cf1[_0x2956a5(0x3a2)][_0x2956a5(0x273)][_0x5df96f]={};const _0x50a966=_0x15891a[_0x2956a5(0x273)][_0x2956a5(0x276)](_0x83e84c,_0x23b38d);if(_0x50a966){const _0x2632ba={'startRow':_0x50a966[_0x2956a5(0x364)]+_0xf77d01,'startColumn':_0x50a966[_0x2956a5(0x218)]+_0x279b8a,'endRow':_0x50a966['endRow']+_0xf77d01,'endColumn':_0x50a966[_0x2956a5(0x327)]+_0x279b8a};_0xd43cf1[_0x2956a5(0x3a2)][_0x2956a5(0x273)][_0x5df96f][_0x1ca829]=_0x2632ba;}}const _0x54e050=this[_0x2956a5(0x2df)][_0x2956a5(0x1e8)](_0x4d7205,_0x265147,_0xc6a0c1['rows'][_0x44e57c],_0xc6a0c1[_0x2956a5(0x27f)][_0x578a5f]);if(_0x54e050){const _0x12e5c2=this[_0x2956a5(0x2df)][_0x2956a5(0x378)](_0x4d7205,_0x265147,_0x54e050);if(_0x12e5c2){var _0x2a37cd;_0x4c5876['add'](_0x54e050),_0x12a5e1[_0x54e050]={'config':_univerjs_core['Tools'][_0x2956a5(0x354)](_0x12e5c2[_0x2956a5(0x3a2)]),'sparklines':_univerjs_core['Tools'][_0x2956a5(0x354)](_0x12e5c2[_0x2956a5(0x273)][_0x2956a5(0x278)]())};if(_0x28c3f1[_0x54e050])_0x28c3f1[_0x54e050]={'config':_univerjs_core[_0x2956a5(0x284)][_0x2956a5(0x354)](_0x12e5c2[_0x2956a5(0x3a2)]),'sparklines':_univerjs_core[_0x2956a5(0x284)][_0x2956a5(0x354)](_0x12e5c2[_0x2956a5(0x273)]['getMatrix']())};if((_0x2a37cd=_0x28c3f1[_0x54e050])===null||_0x2a37cd===void 0x0||(_0x2a37cd=_0x2a37cd[_0x2956a5(0x273)])===null||_0x2a37cd===void 0x0||(_0x2a37cd=_0x2a37cd[_0x44e57c])===null||_0x2a37cd===void 0x0?void 0x0:_0x2a37cd[_0x578a5f])delete _0x28c3f1[_0x54e050]['sparklines'][_0x44e57c][_0x578a5f];}}}Object[_0x2956a5(0x264)](_0x2723fb)[_0x2956a5(0x1f1)](_0x2d4d94=>{const _0x532819=_0x2956a5,_0x3a7039=_0x2723fb[_0x2d4d94];_0x3a7039&&(_0x2d631c[_0x532819(0x387)](_0x2d4d94),_0x28c3f1[_0x2d4d94]=_0x3a7039['config']);});if(_0x2d631c[_0x2956a5(0x386)]>0x0)_0x418efd[_0x2956a5(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x2956a5(0x20a)]['id'],'params':{'unitId':_0x4d7205,'subUnitId':_0x265147,'groupIds':Array[_0x2956a5(0x223)](_0x2d631c),'isSingle':![]}});if(Object[_0x2956a5(0x264)](_0x12a5e1)['length']>0x0)_0x418efd[_0x2956a5(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x2956a5(0x39d)]['id'],'params':{'unitId':_0x4d7205,'subUnitId':_0x265147,'sparklineConfigMap':_0x12a5e1}});if(_0x4c5876[_0x2956a5(0x386)]>0x0)_0x357e7d[_0x2956a5(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x2956a5(0x20a)]['id'],'params':{'unitId':_0x4d7205,'subUnitId':_0x265147,'groupIds':Array[_0x2956a5(0x223)](_0x4c5876),'isSingle':![]}});if(Object[_0x2956a5(0x264)](_0x28c3f1)['length']>0x0)_0x357e7d[_0x2956a5(0x2f4)]({'id':_univerjs_pro_sheets_sparkline[_0x2956a5(0x39d)]['id'],'params':{'unitId':_0x4d7205,'subUnitId':_0x265147,'sparklineConfigMap':_0x28c3f1}});return{'undos':_0x418efd,'redos':_0x357e7d};}}));}};SheetSparklineController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_ui[_0x591be4(0x26e)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_pro_sheets_sparkline[_0x591be4(0x380)]))],SheetSparklineController);function Collapse({title:_0x4d0023,children:_0x4f3cab,containerStyle:_0x134d22}){const _0x37e4e1=_0x591be4,[_0x218444,_0x455369]=(0x0,react[_0x37e4e1(0x283)])(![]),_0x557de2=()=>_0x455369(!_0x218444);return(0x0,react_jsx_runtime['jsxs'])(_0x37e4e1(0x1f2),{'className':(0x0,_univerjs_design[_0x37e4e1(0x258)])(_0x37e4e1(0x1e9),_univerjs_design[_0x37e4e1(0x2a1)]),'style':_0x134d22,'children':[(0x0,react_jsx_runtime['jsxs'])(_0x37e4e1(0x1f2),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-px-0\x20univer-py-1.5\x20univer-text-sm\x20univer-font-medium','onClick':_0x557de2,'children':[(0x0,react_jsx_runtime[_0x37e4e1(0x38d)])(_0x37e4e1(0x2a4),{'className':_0x37e4e1(0x274),'children':_0x218444?(0x0,react_jsx_runtime[_0x37e4e1(0x38d)])(_univerjs_icons['MoreDownIcon'],{}):(0x0,react_jsx_runtime[_0x37e4e1(0x38d)])(_univerjs_icons[_0x37e4e1(0x37d)],{})}),_0x4d0023]}),_0x218444&&(0x0,react_jsx_runtime[_0x37e4e1(0x38d)])(_0x37e4e1(0x1f2),{'className':'univer-pb-4\x20univer-pl-4\x20univer-pt-2.5','children':_0x4f3cab})]});}const ColorPickerControl=_0x638b15=>{const _0x3400c8=_0x591be4,{color:_0x113e56,onChange:_0x403b3c}=_0x638b15,[_0x53080,_0x1be4e9]=(0x0,react['useState'])(![]),_0x3a076a=(0x0,_univerjs_ui[_0x3400c8(0x28c)])(_univerjs_core[_0x3400c8(0x35c)]),_0x1cc420=_0x113e56===_0x3400c8(0x292)||_0x113e56==null,_0x12c8c9=(0x0,react['useCallback'])(_0x19cb7a=>{_0x403b3c===null||_0x403b3c===void 0x0||_0x403b3c(_0x19cb7a),_0x1be4e9(![]);},[_0x403b3c]);return(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x3400c8(0x342)],{'overlay':(0x0,react_jsx_runtime[_0x3400c8(0x38d)])(_0x3400c8(0x1f2),{'className':(0x0,_univerjs_design[_0x3400c8(0x258)])(_0x3400c8(0x374),_univerjs_design[_0x3400c8(0x293)]),'children':(0x0,react_jsx_runtime[_0x3400c8(0x38d)])(_univerjs_design[_0x3400c8(0x1f6)],{'value':_0x1cc420?_0x3400c8(0x2cd):_0x113e56,'onChange':_0x12c8c9})}),'open':_0x53080,'onOpenChange':_0x1be4e9,'children':(0x0,react_jsx_runtime[_0x3400c8(0x38d)])(_univerjs_design[_0x3400c8(0x246)],{'className':(0x0,_univerjs_design[_0x3400c8(0x258)])(_0x3400c8(0x2a7),_univerjs_design[_0x3400c8(0x293)]),'children':(0x0,react_jsx_runtime['jsxs'])(_0x3400c8(0x1f2),{'className':'univer-box-border\x20univer-flex\x20univer-h-8\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-justify-between\x20univer-p-3\x20univer-leading-8','children':[_0x1cc420?(0x0,react_jsx_runtime[_0x3400c8(0x38d)])(_0x3400c8(0x1f2),{'className':'univer-truncate\x20univer-text-sm\x20univer-leading-tight\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x3a076a['t'](_0x3400c8(0x31e))}):(0x0,react_jsx_runtime[_0x3400c8(0x38d)])('div',{'className':(0x0,_univerjs_design[_0x3400c8(0x258)])('univer-size-5',_univerjs_design[_0x3400c8(0x293)]),'style':{'backgroundColor':_0x113e56}}),(0x0,react_jsx_runtime[_0x3400c8(0x38d)])(_univerjs_icons['MoreDownIcon'],{'className':(0x0,_univerjs_design['clsx'])(_0x3400c8(0x219),{'univer-rotate-180':_0x53080})})]})})});},SparklineAdvancedSetting=({config:_0x2b4a2a,ctx:_0x41e535})=>{const _0x2c2c31=_0x591be4;var _0x36ced5,_0x18e63e,_0x372a4f,_0x3b89d9,_0x48ff24,_0x554453,_0x16fb3d,_0x5f27a6,_0x3c1304,_0x32ce9e,_0x3e54cb,_0x2706f1,_0xd49442,_0x5066ad,_0x1efea9,_0x5df80a;const _0x5edf2b=(0x0,_univerjs_ui[_0x2c2c31(0x28c)])(_univerjs_core[_0x2c2c31(0x1e5)]),_0x91a2ce=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['LocaleService']),_0x528087=(0x0,_univerjs_ui['useDependency'])(_univerjs_pro_sheets_sparkline[_0x2c2c31(0x380)]),{unitId:_0x568254,subUnitId:_0x5690aa,range:_0x1cbe73}=_0x41e535,_0x27e7d7=_0x46c2bf=>{const _0x5caef6=_0x2c2c31,_0x52e8be=_univerjs_core[_0x5caef6(0x284)][_0x5caef6(0x354)](_0x2b4a2a);if(!_0x52e8be[_0x5caef6(0x3a2)])_0x52e8be[_0x5caef6(0x3a2)]={};if(_0x52e8be[_0x5caef6(0x3a2)]['type'])delete _0x52e8be[_0x5caef6(0x3a2)][_0x5caef6(0x268)];if(!_0x52e8be[_0x5caef6(0x3a2)][_0x5caef6(0x343)])_0x52e8be[_0x5caef6(0x3a2)][_0x5caef6(0x343)]={};_0x52e8be[_0x5caef6(0x3a2)]['axis'][_0x5caef6(0x279)]=_0x46c2bf,_0x5edf2b[_0x5caef6(0x28a)](_univerjs_pro_sheets_sparkline[_0x5caef6(0x23d)]['id'],{'config':_0x52e8be,'isChangeDataSource':![]});},_0x1ded79=_0x5ce46e=>{const _0x29e41c=_0x2c2c31,_0x1ee4c2=_univerjs_core[_0x29e41c(0x284)][_0x29e41c(0x354)](_0x2b4a2a);if(!_0x1ee4c2['config'])_0x1ee4c2['config']={};if(_0x1ee4c2['config'][_0x29e41c(0x268)])delete _0x1ee4c2[_0x29e41c(0x3a2)][_0x29e41c(0x268)];if(!_0x1ee4c2[_0x29e41c(0x3a2)]['axis'])_0x1ee4c2[_0x29e41c(0x3a2)][_0x29e41c(0x343)]={};_0x1ee4c2[_0x29e41c(0x3a2)][_0x29e41c(0x343)][_0x29e41c(0x285)]=_0x5ce46e,_0x5edf2b[_0x29e41c(0x28a)](_univerjs_pro_sheets_sparkline[_0x29e41c(0x23d)]['id'],{'config':_0x1ee4c2,'isChangeDataSource':![]});},_0x3538ea=_0x2cd821=>{const _0x3f0aa3=_0x2c2c31,_0x1c56ef=_univerjs_core['Tools'][_0x3f0aa3(0x354)](_0x2b4a2a);if(!_0x1c56ef[_0x3f0aa3(0x3a2)])_0x1c56ef['config']={};if(_0x1c56ef[_0x3f0aa3(0x3a2)][_0x3f0aa3(0x268)])delete _0x1c56ef[_0x3f0aa3(0x3a2)][_0x3f0aa3(0x268)];if(!_0x1c56ef[_0x3f0aa3(0x3a2)][_0x3f0aa3(0x343)])_0x1c56ef[_0x3f0aa3(0x3a2)]['axis']={};_0x1c56ef[_0x3f0aa3(0x3a2)][_0x3f0aa3(0x343)][_0x3f0aa3(0x2c5)]=_0x2cd821,_0x5edf2b[_0x3f0aa3(0x28a)](_univerjs_pro_sheets_sparkline[_0x3f0aa3(0x23d)]['id'],{'config':_0x1c56ef,'isChangeDataSource':![]});},_0x328453=(_0x3ba840,_0x2ddd2d)=>{const _0x408bf2=_0x2c2c31,_0x4fbae5=_0x2ddd2d==='min'?_0x408bf2(0x24f):_0x408bf2(0x2d3),_0x45ee4d=_univerjs_core[_0x408bf2(0x284)][_0x408bf2(0x354)](_0x2b4a2a);if(!_0x45ee4d[_0x408bf2(0x3a2)])_0x45ee4d['config']={};if(_0x45ee4d[_0x408bf2(0x3a2)]['type'])delete _0x45ee4d['config'][_0x408bf2(0x268)];if(!_0x45ee4d[_0x408bf2(0x3a2)][_0x4fbae5])_0x45ee4d['config'][_0x4fbae5]={};_0x45ee4d['config'][_0x4fbae5][_0x408bf2(0x268)]=_0x3ba840,_0x5edf2b['executeCommand'](_univerjs_pro_sheets_sparkline[_0x408bf2(0x23d)]['id'],{'config':_0x45ee4d,'isChangeDataSource':![]});},_0x1deead=(_0x28a304,_0x118582)=>{const _0x34abba=_0x2c2c31,_0x584d45=_0x118582===_0x34abba(0x24b)?_0x34abba(0x24f):_0x34abba(0x2d3),_0x4e8825=_univerjs_core[_0x34abba(0x284)][_0x34abba(0x354)](_0x2b4a2a);if(!_0x4e8825[_0x34abba(0x3a2)])_0x4e8825[_0x34abba(0x3a2)]={};if(_0x4e8825[_0x34abba(0x3a2)][_0x34abba(0x268)])delete _0x4e8825[_0x34abba(0x3a2)]['type'];if(!_0x4e8825[_0x34abba(0x3a2)][_0x584d45])_0x4e8825[_0x34abba(0x3a2)][_0x584d45]={};_0x4e8825[_0x34abba(0x3a2)][_0x584d45][_0x34abba(0x268)]=_univerjs_pro_sheets_sparkline[_0x34abba(0x338)][_0x34abba(0x257)],_0x4e8825[_0x34abba(0x3a2)][_0x584d45][_0x34abba(0x270)]=_0x28a304,_0x5edf2b[_0x34abba(0x28a)](_univerjs_pro_sheets_sparkline[_0x34abba(0x23d)]['id'],{'config':_0x4e8825,'isChangeDataSource':![]});},_0x525686=(_0xe14233,_0x24b266)=>{const _0x24d739=_0x2c2c31,_0x523f4b=_0x24b266===_0x24d739(0x324)?_0x24d739(0x33f):_0x24d739(0x2ba),_0x3dbe37=_univerjs_core['Tools'][_0x24d739(0x354)](_0x2b4a2a);if(!_0x3dbe37['config'])_0x3dbe37[_0x24d739(0x3a2)]={};if(_0x3dbe37[_0x24d739(0x3a2)][_0x24d739(0x268)])delete _0x3dbe37[_0x24d739(0x3a2)][_0x24d739(0x268)];_0x3dbe37[_0x24d739(0x3a2)][_0x523f4b]=_0xe14233,_0x5edf2b[_0x24d739(0x28a)](_univerjs_pro_sheets_sparkline[_0x24d739(0x23d)]['id'],{'config':_0x3dbe37,'isChangeDataSource':![]});},_0x455b50=()=>{const _0x9e02d9=_0x2c2c31,_0x1afe6b=_univerjs_core[_0x9e02d9(0x284)][_0x9e02d9(0x354)](_0x2b4a2a);_0x5edf2b[_0x9e02d9(0x28a)](_univerjs_pro_sheets_sparkline[_0x9e02d9(0x23d)]['id'],{'config':_0x1afe6b,'combine':!![]});},_0x18d928=()=>{const _0x45f073=_0x2c2c31,_0x13fef3=_univerjs_core[_0x45f073(0x284)][_0x45f073(0x354)](_0x2b4a2a);_0x5edf2b['executeCommand'](_univerjs_pro_sheets_sparkline[_0x45f073(0x23d)]['id'],{'config':_0x13fef3,'unCombine':!![]});},_0x28048b=_0x378718=>{const _0x214887=_0x2c2c31,_0x485f22=_univerjs_core[_0x214887(0x284)][_0x214887(0x354)](_0x2b4a2a);if(!_0x485f22[_0x214887(0x3a2)])_0x485f22[_0x214887(0x3a2)]={};if(_0x485f22[_0x214887(0x3a2)][_0x214887(0x268)])delete _0x485f22['config'][_0x214887(0x268)];_0x485f22[_0x214887(0x3a2)][_0x214887(0x2f6)]=_0x378718,_0x5edf2b[_0x214887(0x28a)](_univerjs_pro_sheets_sparkline[_0x214887(0x23d)]['id'],{'config':_0x485f22,'isChangeDataSource':![]});},_0x15127c=_0x528087[_0x2c2c31(0x3a3)](),_0x36e42d=_0x15127c===null||_0x15127c===void 0x0||(_0x36ced5=_0x15127c[_0x2c2c31(0x222)]['get'](_0x568254))===null||_0x36ced5===void 0x0?void 0x0:_0x36ced5[_0x2c2c31(0x2a0)](_0x5690aa);let _0x40e5dd=![],_0x22485e=![];const _0x5305ac=new Set(),{startRow:_0xea0e6b,endRow:_0x348e0a,startColumn:_0x5df1e0,endColumn:_0x1c8664}=_0x1cbe73;for(let _0x5a7767=_0xea0e6b;_0x5a7767<=_0x348e0a;_0x5a7767++)for(let _0x34b93e=_0x5df1e0;_0x34b93e<=_0x1c8664;_0x34b93e++){var _0x2c9435;const _0x1e9d5d=_0x36e42d===null||_0x36e42d===void 0x0||(_0x2c9435=_0x36e42d[_0x2c2c31(0x28e)][_0x2c2c31(0x276)](_0x5a7767,_0x34b93e))===null||_0x2c9435===void 0x0?void 0x0:_0x2c9435['groupId'];if(_0x1e9d5d)_0x5305ac[_0x2c2c31(0x387)](_0x1e9d5d);}if(_0x5305ac[_0x2c2c31(0x386)]>0x1)_0x40e5dd=!![],Array[_0x2c2c31(0x223)](_0x5305ac)[_0x2c2c31(0x1f1)](_0x3a675b=>{const _0x4978f7=_0x2c2c31;var _0x2f9020,_0x56c06b;const _0x31ad41=(_0x2f9020=_0x15127c['sparklineModel'][_0x4978f7(0x2a0)](_0x568254))===null||_0x2f9020===void 0x0||(_0x2f9020=_0x2f9020[_0x4978f7(0x2a0)](_0x5690aa))===null||_0x2f9020===void 0x0?void 0x0:_0x2f9020['get'](_0x3a675b);if(((_0x56c06b=_0x31ad41===null||_0x31ad41===void 0x0?void 0x0:_0x31ad41[_0x4978f7(0x273)][_0x4978f7(0x243)]()[_0x4978f7(0x329)])!==null&&_0x56c06b!==void 0x0?_0x56c06b:0x0)>0x1)_0x22485e=!![];});else{if(_0x5305ac[_0x2c2c31(0x386)]===0x1){var _0x2a5ed4,_0x45d58d;const _0x46f91e=Array[_0x2c2c31(0x223)](_0x5305ac)[0x0],_0x2c89d1=(_0x2a5ed4=_0x15127c[_0x2c2c31(0x36b)][_0x2c2c31(0x2a0)](_0x568254))===null||_0x2a5ed4===void 0x0||(_0x2a5ed4=_0x2a5ed4[_0x2c2c31(0x2a0)](_0x5690aa))===null||_0x2a5ed4===void 0x0?void 0x0:_0x2a5ed4[_0x2c2c31(0x2a0)](_0x46f91e);_0x22485e=((_0x45d58d=_0x2c89d1===null||_0x2c89d1===void 0x0?void 0x0:_0x2c89d1['sparklines']['toNativeArray']()[_0x2c2c31(0x329)])!==null&&_0x45d58d!==void 0x0?_0x45d58d:0x0)>0x1;let _0x270ff9=0x0,_0x3d70ac=0x0;_0x2c89d1===null||_0x2c89d1===void 0x0||_0x2c89d1[_0x2c2c31(0x273)]['forValue']((_0x27b968,_0x3fbd34)=>{const _0x4be85f=_0x2c2c31,_0x222a4f=(0x0,_univerjs_core[_0x4be85f(0x25f)])(_0x27b968,_0x3fbd34);if(_univerjs_core[_0x4be85f(0x288)][_0x4be85f(0x2b0)](_0x222a4f,_0x1cbe73))_0x270ff9++;else _0x3d70ac++;}),_0x40e5dd=_0x3d70ac>0x0&&_0x270ff9>0x1;}}return(0x0,react_jsx_runtime['jsxs'])('div',{'children':[(0x0,react_jsx_runtime['jsx'])(Collapse,{'title':_0x91a2ce['t'](_0x2c2c31(0x251)),'children':(0x0,react_jsx_runtime['jsxs'])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x2e0),'children':[(0x0,react_jsx_runtime[_0x2c2c31(0x2e1)])(_univerjs_design[_0x2c2c31(0x246)],{'disabled':!_0x40e5dd,'onClick':()=>_0x455b50(),'children':[(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_univerjs_icons[_0x2c2c31(0x21d)],{}),_0x91a2ce['t'](_0x2c2c31(0x1f9))]}),(0x0,react_jsx_runtime[_0x2c2c31(0x2e1)])(_univerjs_design[_0x2c2c31(0x246)],{'disabled':!_0x22485e,'onClick':()=>_0x18d928(),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x2c2c31(0x389)],{}),_0x91a2ce['t'](_0x2c2c31(0x2c0))]})]})}),(0x0,react_jsx_runtime[_0x2c2c31(0x2e1)])(Collapse,{'title':_0x91a2ce['t'](_0x2c2c31(0x2e7)),'children':[(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x249),'children':(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_univerjs_design[_0x2c2c31(0x300)],{'checked':(_0x18e63e=_0x2b4a2a['config'][_0x2c2c31(0x343)])===null||_0x18e63e===void 0x0?void 0x0:_0x18e63e['visible'],'onChange':_0x3d2fee=>_0x27e7d7(_0x3d2fee),'children':_0x91a2ce['t'](_0x2c2c31(0x363))})}),((_0x372a4f=_0x2b4a2a[_0x2c2c31(0x3a2)][_0x2c2c31(0x343)])===null||_0x372a4f===void 0x0?void 0x0:_0x372a4f[_0x2c2c31(0x279)])&&(0x0,react_jsx_runtime[_0x2c2c31(0x2e1)])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x1fb),'children':[(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x1fb),'children':_0x91a2ce['t'](_0x2c2c31(0x332))}),(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(ColorPickerControl,{'color':(_0x3b89d9=(_0x48ff24=_0x2b4a2a['config'][_0x2c2c31(0x343)])===null||_0x48ff24===void 0x0?void 0x0:_0x48ff24[_0x2c2c31(0x285)])!==null&&_0x3b89d9!==void 0x0?_0x3b89d9:_0x2c2c31(0x248),'onChange':_0x523021=>_0x1ded79(_0x523021)})]}),(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x249),'children':(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_univerjs_design[_0x2c2c31(0x300)],{'checked':(_0x554453=_0x2b4a2a[_0x2c2c31(0x3a2)][_0x2c2c31(0x343)])===null||_0x554453===void 0x0?void 0x0:_0x554453['reverse'],'onChange':_0x1fcf58=>_0x3538ea(_0x1fcf58),'children':_0x91a2ce['t'](_0x2c2c31(0x2bf))})})]}),(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(Collapse,{'title':_0x91a2ce['t'](_0x2c2c31(0x372)),'children':(0x0,react_jsx_runtime['jsxs'])('div',{'children':[(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x2fd),'children':_0x91a2ce['t'](_0x2c2c31(0x1e2))}),(0x0,react_jsx_runtime[_0x2c2c31(0x2e1)])(_univerjs_design[_0x2c2c31(0x221)],{'value':(_0x16fb3d=(_0x5f27a6=_0x2b4a2a[_0x2c2c31(0x3a2)][_0x2c2c31(0x24f)])===null||_0x5f27a6===void 0x0?void 0x0:_0x5f27a6[_0x2c2c31(0x268)])!==null&&_0x16fb3d!==void 0x0?_0x16fb3d:_univerjs_pro_sheets_sparkline['SparklineExtremumTypeEnum']['SELF_EXTREMUM'],'className':'univer-flex\x20univer-flex-col','onChange':_0x3d2fff=>_0x328453(_0x3d2fff,_0x2c2c31(0x24b)),'children':[(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_univerjs_design[_0x2c2c31(0x36a)],{'value':_univerjs_pro_sheets_sparkline[_0x2c2c31(0x338)][_0x2c2c31(0x346)],'children':_0x91a2ce['t'](_0x2c2c31(0x217))}),(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_univerjs_design[_0x2c2c31(0x36a)],{'value':_univerjs_pro_sheets_sparkline[_0x2c2c31(0x338)]['GROUP_EXTREMUM'],'children':_0x91a2ce['t'](_0x2c2c31(0x2b6))}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Radio'],{'value':_univerjs_pro_sheets_sparkline[_0x2c2c31(0x338)][_0x2c2c31(0x257)],'children':(0x0,react_jsx_runtime['jsxs'])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x381),'children':[(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_0x2c2c31(0x1f2),{'children':_0x91a2ce['t'](_0x2c2c31(0x232))}),(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_univerjs_design[_0x2c2c31(0x1f7)],{'disabled':((_0x3c1304=_0x2b4a2a[_0x2c2c31(0x3a2)][_0x2c2c31(0x24f)])===null||_0x3c1304===void 0x0?void 0x0:_0x3c1304[_0x2c2c31(0x268)])!==_univerjs_pro_sheets_sparkline['SparklineExtremumTypeEnum']['CUSTOM_EXTREMUM'],'value':(_0x32ce9e=_0x2b4a2a[_0x2c2c31(0x3a2)][_0x2c2c31(0x24f)])===null||_0x32ce9e===void 0x0?void 0x0:_0x32ce9e[_0x2c2c31(0x270)],'onChange':_0x3886e2=>{const _0x18853b=_0x2c2c31;if(typeof _0x3886e2==='number')_0x1deead(_0x3886e2,_0x18853b(0x24b));},'className':_0x2c2c31(0x37c)})]})})]}),(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])('br',{}),(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x2fd),'children':_0x91a2ce['t']('sheets-sparkline.panel.max')}),(0x0,react_jsx_runtime[_0x2c2c31(0x2e1)])(_univerjs_design[_0x2c2c31(0x221)],{'value':(_0x3e54cb=(_0x2706f1=_0x2b4a2a[_0x2c2c31(0x3a2)][_0x2c2c31(0x2d3)])===null||_0x2706f1===void 0x0?void 0x0:_0x2706f1[_0x2c2c31(0x268)])!==null&&_0x3e54cb!==void 0x0?_0x3e54cb:_univerjs_pro_sheets_sparkline[_0x2c2c31(0x338)]['SELF_EXTREMUM'],'className':_0x2c2c31(0x22d),'onChange':_0x5752c9=>_0x328453(_0x5752c9,_0x2c2c31(0x29a)),'children':[(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_univerjs_design[_0x2c2c31(0x36a)],{'value':_univerjs_pro_sheets_sparkline['SparklineExtremumTypeEnum'][_0x2c2c31(0x346)],'children':_0x91a2ce['t']('sheets-sparkline.panel.itemMax')}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2c2c31(0x36a)],{'value':_univerjs_pro_sheets_sparkline['SparklineExtremumTypeEnum']['GROUP_EXTREMUM'],'children':_0x91a2ce['t'](_0x2c2c31(0x2d9))}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2c2c31(0x36a)],{'value':_univerjs_pro_sheets_sparkline['SparklineExtremumTypeEnum']['CUSTOM_EXTREMUM'],'children':(0x0,react_jsx_runtime['jsxs'])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x381),'children':[(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_0x2c2c31(0x1f2),{'children':_0x91a2ce['t'](_0x2c2c31(0x34c))}),(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_univerjs_design['InputNumber'],{'disabled':((_0xd49442=_0x2b4a2a[_0x2c2c31(0x3a2)][_0x2c2c31(0x2d3)])===null||_0xd49442===void 0x0?void 0x0:_0xd49442[_0x2c2c31(0x268)])!==_univerjs_pro_sheets_sparkline[_0x2c2c31(0x338)][_0x2c2c31(0x257)],'value':(_0x5066ad=_0x2b4a2a[_0x2c2c31(0x3a2)][_0x2c2c31(0x2d3)])===null||_0x5066ad===void 0x0?void 0x0:_0x5066ad[_0x2c2c31(0x270)],'onChange':_0x306400=>{const _0x30a8c1=_0x2c2c31;if(typeof _0x306400===_0x30a8c1(0x26d))_0x1deead(_0x306400,_0x30a8c1(0x29a));},'className':_0x2c2c31(0x37c)})]})})]})]})}),(0x0,react_jsx_runtime[_0x2c2c31(0x2e1)])(Collapse,{'title':_0x91a2ce['t'](_0x2c2c31(0x308)),'containerStyle':{'border':_0x2c2c31(0x353)},'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2c2c31(0x300)],{'checked':_0x2b4a2a['config'][_0x2c2c31(0x2f6)],'onChange':_0x2f8e77=>_0x28048b(_0x2f8e77),'children':_0x91a2ce['t']('sheets-sparkline.panel.showHidden')}),(0x0,react_jsx_runtime[_0x2c2c31(0x2e1)])(_0x2c2c31(0x1f2),{'className':'univer-mt-3','children':[(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])('div',{'className':'univer-mb-2\x20univer-text-sm\x20univer-text-gray-800\x20dark:!univer-text-gray-100','children':_0x91a2ce['t'](_0x2c2c31(0x234))}),(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_univerjs_design[_0x2c2c31(0x230)],{'className':_0x2c2c31(0x36c),'value':(_0x1efea9=_0x2b4a2a[_0x2c2c31(0x3a2)][_0x2c2c31(0x33f)])!==null&&_0x1efea9!==void 0x0?_0x1efea9:_univerjs_pro_sheets_sparkline[_0x2c2c31(0x2a3)][_0x2c2c31(0x313)],'options':[{'label':_0x91a2ce['t']('sheets-sparkline.panel.spacing'),'value':_univerjs_pro_sheets_sparkline[_0x2c2c31(0x2a3)][_0x2c2c31(0x313)]},{'label':_0x91a2ce['t'](_0x2c2c31(0x322)),'value':_univerjs_pro_sheets_sparkline[_0x2c2c31(0x2a3)][_0x2c2c31(0x20d)]},{'label':_0x91a2ce['t'](_0x2c2c31(0x1ea)),'value':_univerjs_pro_sheets_sparkline['SpacialShowAsEnum'][_0x2c2c31(0x369)]}],'onChange':_0x46d72a=>_0x525686(_0x46d72a,_0x2c2c31(0x324))})]}),(0x0,react_jsx_runtime[_0x2c2c31(0x2e1)])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x392),'children':[(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_0x2c2c31(0x1f2),{'className':_0x2c2c31(0x1e7),'children':_0x91a2ce['t']('sheets-sparkline.panel.showNonNumAs')}),(0x0,react_jsx_runtime[_0x2c2c31(0x38d)])(_univerjs_design[_0x2c2c31(0x230)],{'className':_0x2c2c31(0x36c),'value':(_0x5df80a=_0x2b4a2a[_0x2c2c31(0x3a2)][_0x2c2c31(0x2ba)])!==null&&_0x5df80a!==void 0x0?_0x5df80a:_univerjs_pro_sheets_sparkline[_0x2c2c31(0x2a3)][_0x2c2c31(0x313)],'options':[{'label':_0x91a2ce['t'](_0x2c2c31(0x207)),'value':_univerjs_pro_sheets_sparkline[_0x2c2c31(0x2a3)][_0x2c2c31(0x313)]},{'label':_0x91a2ce['t'](_0x2c2c31(0x322)),'value':_univerjs_pro_sheets_sparkline[_0x2c2c31(0x2a3)][_0x2c2c31(0x20d)]},{'label':_0x91a2ce['t']('sheets-sparkline.panel.connectWithLine'),'value':_univerjs_pro_sheets_sparkline[_0x2c2c31(0x2a3)][_0x2c2c31(0x369)]}],'onChange':_0x44ccd9=>_0x525686(_0x44ccd9,_0x2c2c31(0x2fc))})]})]})]});},SparklineMarkItem=_0x43bfa8=>{const _0x461566=_0x591be4;var _0x2cea0b,_0x5eccfe;const {onCheckboxChange:_0xa120e3,onColorChange:_0x17028f,type:_0xafe6e0,text:_0x478e0b,config:_0x2ea223,chartType:_0x54c4da}=_0x43bfa8,_0x43ebfc=_univerjs_pro_sheets_sparkline[_0x461566(0x2b9)][_0x461566(0x344)][0x1],_0x52edf4=(0x0,react['useMemo'])(()=>{const _0xfe41bf=_0x461566;return new _univerjs_core[(_0xfe41bf(0x393))](_0x43ebfc)['toHexString']();},[_0x43ebfc]),_0x2e1e1f=_0xafe6e0==='markersPoint'&&_0x54c4da!==_univerjs_pro_sheets_sparkline[_0x461566(0x1f8)][_0x461566(0x399)],_0x30e92f=(_0x2cea0b=_0x2ea223===null||_0x2ea223===void 0x0?void 0x0:_0x2ea223[_0x461566(0x285)])!==null&&_0x2cea0b!==void 0x0?_0x2cea0b:_0x43ebfc,_0x2821bc=new _univerjs_core[(_0x461566(0x393))](_0x30e92f)[_0x461566(0x33b)]();return(0x0,react_jsx_runtime['jsxs'])('div',{'className':(0x0,_univerjs_design[_0x461566(0x258)])(_0x461566(0x352)),'children':[(0x0,react_jsx_runtime[_0x461566(0x38d)])(_univerjs_design[_0x461566(0x300)],{'checked':_0x2ea223===null||_0x2ea223===void 0x0?void 0x0:_0x2ea223[_0x461566(0x279)],'disabled':_0x2e1e1f,'onChange':_0x14a020=>_0xa120e3(_0x14a020,_0xafe6e0),'children':_0x478e0b}),(_0x2ea223===null||_0x2ea223===void 0x0?void 0x0:_0x2ea223[_0x461566(0x279)])&&(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x461566(0x342)],{'overlay':(0x0,react_jsx_runtime[_0x461566(0x38d)])('div',{'className':_0x461566(0x35f),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x461566(0x1f6)],{'value':(_0x5eccfe=_0x2ea223===null||_0x2ea223===void 0x0?void 0x0:_0x2ea223[_0x461566(0x285)])!==null&&_0x5eccfe!==void 0x0?_0x5eccfe:_0x52edf4,'onChange':_0xf9522a=>_0x17028f(_0xf9522a,_0xafe6e0)})}),'children':(0x0,react_jsx_runtime[_0x461566(0x38d)])(_univerjs_icons['PointColorDoubleIcon'],{'className':(0x0,_univerjs_design['clsx'])(_0x461566(0x245),{'univer-text-white':_0x2821bc}),'extend':{'colorChannel1':_0x30e92f}})})]});},SparklineBasicSetting=({config:_0xd54624,ctx:_0x20aaf5})=>{const _0x491f72=_0x591be4;var _0x5226cb,_0x1d1b06,_0x9b323c,_0x3f5a6e,_0x3fdf32,_0x2a79ea,_0x28011d,_0x99cb6a,_0x45e0e6;const _0x38c622=(0x0,_univerjs_ui[_0x491f72(0x28c)])(_univerjs_core['ICommandService']),_0xf4bc8d=(0x0,_univerjs_ui[_0x491f72(0x28c)])(_univerjs_core[_0x491f72(0x371)]),_0xb86ecc=(0x0,_univerjs_ui[_0x491f72(0x28c)])(_univerjs_core[_0x491f72(0x35c)]),_0x1ea0fe=(0x0,_univerjs_ui[_0x491f72(0x28c)])(_univerjs_pro_sheets_sparkline[_0x491f72(0x380)]),_0x543a95=(_0x5226cb=_0xd54624===null||_0xd54624===void 0x0?void 0x0:_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x268)])!==null&&_0x5226cb!==void 0x0?_0x5226cb:_univerjs_pro_sheets_sparkline[_0x491f72(0x1f8)][_0x491f72(0x399)],_0x4b8cc3=_0x543a95===_univerjs_pro_sheets_sparkline[_0x491f72(0x1f8)]['LINE_CHART'],_0x23cb6b=_0x1e70d2=>{const _0x32d453=_0x491f72;var _0x575917;const _0x25f40f=(_0x575917=_univerjs_core[_0x32d453(0x284)]['deepClone'](_0xd54624))!==null&&_0x575917!==void 0x0?_0x575917:{};if(!(_0x25f40f===null||_0x25f40f===void 0x0?void 0x0:_0x25f40f[_0x32d453(0x3a2)]))_0x25f40f[_0x32d453(0x3a2)]={};_0x25f40f[_0x32d453(0x3a2)][_0x32d453(0x268)]=_0x1e70d2,_0x38c622[_0x32d453(0x28a)](_univerjs_pro_sheets_sparkline[_0x32d453(0x23d)]['id'],{'config':_0x25f40f,'isChangeDataSource':![]});},_0x4b27dd=(_0x14baba,_0x28b36e)=>{const _0x15bcc4=_0x491f72;var _0x1e6af4,_0x5a7ac3;const _0x44cc9b=(_0x1e6af4=_univerjs_core['Tools'][_0x15bcc4(0x354)](_0xd54624))!==null&&_0x1e6af4!==void 0x0?_0x1e6af4:{};if(!(_0x44cc9b===null||_0x44cc9b===void 0x0?void 0x0:_0x44cc9b[_0x15bcc4(0x3a2)]))_0x44cc9b[_0x15bcc4(0x3a2)]={};if(_0x44cc9b[_0x15bcc4(0x3a2)][_0x15bcc4(0x268)])delete _0x44cc9b[_0x15bcc4(0x3a2)]['type'];if(!(_0x44cc9b===null||_0x44cc9b===void 0x0?void 0x0:_0x44cc9b[_0x15bcc4(0x3a2)][_0x15bcc4(0x32c)]))_0x44cc9b['config'][_0x15bcc4(0x32c)]={};if(!(_0x44cc9b===null||_0x44cc9b===void 0x0||(_0x5a7ac3=_0x44cc9b[_0x15bcc4(0x3a2)]['points'])===null||_0x5a7ac3===void 0x0?void 0x0:_0x5a7ac3[_0x28b36e]))_0x44cc9b[_0x15bcc4(0x3a2)][_0x15bcc4(0x32c)][_0x28b36e]={};_0x44cc9b[_0x15bcc4(0x3a2)]['points'][_0x28b36e][_0x15bcc4(0x279)]=_0x14baba,_0x38c622[_0x15bcc4(0x28a)](_univerjs_pro_sheets_sparkline[_0x15bcc4(0x23d)]['id'],{'config':_0x44cc9b,'isChangeDataSource':![]});},_0x29472c=(_0x12f25b,_0x1f711a)=>{const _0x272423=_0x491f72;var _0x122675,_0x4c338c;const _0x2e46e8=(_0x122675=_univerjs_core[_0x272423(0x284)]['deepClone'](_0xd54624))!==null&&_0x122675!==void 0x0?_0x122675:{};if(!(_0x2e46e8===null||_0x2e46e8===void 0x0?void 0x0:_0x2e46e8[_0x272423(0x3a2)]))_0x2e46e8[_0x272423(0x3a2)]={};if(_0x2e46e8['config'][_0x272423(0x268)])delete _0x2e46e8[_0x272423(0x3a2)]['type'];if(!(_0x2e46e8===null||_0x2e46e8===void 0x0?void 0x0:_0x2e46e8[_0x272423(0x3a2)][_0x272423(0x32c)]))_0x2e46e8['config'][_0x272423(0x32c)]={};if(!(_0x2e46e8===null||_0x2e46e8===void 0x0||(_0x4c338c=_0x2e46e8['config']['points'])===null||_0x4c338c===void 0x0?void 0x0:_0x4c338c[_0x1f711a]))_0x2e46e8[_0x272423(0x3a2)][_0x272423(0x32c)][_0x1f711a]={};_0x2e46e8[_0x272423(0x3a2)][_0x272423(0x32c)][_0x1f711a][_0x272423(0x285)]=_0x12f25b,_0x2e46e8[_0x272423(0x3a2)][_0x272423(0x25e)]=_univerjs_pro_sheets_sparkline[_0x272423(0x280)][_0x272423(0x39f)],_0x38c622[_0x272423(0x28a)](_univerjs_pro_sheets_sparkline[_0x272423(0x23d)]['id'],{'config':_0x2e46e8,'isChangeDataSource':![]});},_0x24f885=_0x29733b=>{const _0x38277d=_0x491f72;var _0x4c8048;const _0x12e581=(_0x4c8048=_univerjs_core['Tools'][_0x38277d(0x354)](_0xd54624))!==null&&_0x4c8048!==void 0x0?_0x4c8048:{};if(!(_0x12e581===null||_0x12e581===void 0x0?void 0x0:_0x12e581['config']))_0x12e581[_0x38277d(0x3a2)]={};if(_0x12e581[_0x38277d(0x3a2)][_0x38277d(0x268)])delete _0x12e581[_0x38277d(0x3a2)]['type'];_0x12e581[_0x38277d(0x3a2)][_0x38277d(0x25e)]=_0x29733b;if(_0x12e581[_0x38277d(0x3a2)][_0x38277d(0x2e9)]!=null)_0x12e581[_0x38277d(0x3a2)]['seriesColor']=void 0x0;if(!(_0x12e581===null||_0x12e581===void 0x0?void 0x0:_0x12e581['config'][_0x38277d(0x32c)]))_0x12e581['config']['points']={};const _0x5dfe72=_univerjs_pro_sheets_sparkline[_0x38277d(0x2b9)][_0x29733b];_univerjs_pro_sheets_sparkline['SparklinePointsNames']['forEach'](_0x5782ef=>{const _0x4f546d=_0x38277d;var _0x199226;if(!(_0x12e581===null||_0x12e581===void 0x0||(_0x199226=_0x12e581[_0x4f546d(0x3a2)]['points'])===null||_0x199226===void 0x0?void 0x0:_0x199226[_0x5782ef]))_0x12e581[_0x4f546d(0x3a2)][_0x4f546d(0x32c)][_0x5782ef]={'color':_0x5dfe72[0x1]};else _0x12e581[_0x4f546d(0x3a2)][_0x4f546d(0x32c)][_0x5782ef][_0x4f546d(0x285)]=_0x5dfe72[0x1];}),_0x38c622[_0x38277d(0x28a)](_univerjs_pro_sheets_sparkline[_0x38277d(0x23d)]['id'],{'config':_0x12e581,'isChangeDataSource':![]});},_0x335b50=_0x2e91e6=>{const _0x1eb3dd=_0x491f72;var _0x23a889;const _0x5c06b1=(_0x23a889=_univerjs_core['Tools']['deepClone'](_0xd54624))!==null&&_0x23a889!==void 0x0?_0x23a889:{};if(!(_0x5c06b1===null||_0x5c06b1===void 0x0?void 0x0:_0x5c06b1['config']))_0x5c06b1['config']={};if(_0x5c06b1[_0x1eb3dd(0x3a2)][_0x1eb3dd(0x268)])delete _0x5c06b1[_0x1eb3dd(0x3a2)][_0x1eb3dd(0x268)];_0x5c06b1['config'][_0x1eb3dd(0x2e9)]=_0x2e91e6,_0x5c06b1[_0x1eb3dd(0x3a2)][_0x1eb3dd(0x25e)]=_univerjs_pro_sheets_sparkline['SparklineThemeTypeEnum'][_0x1eb3dd(0x39f)],_0x38c622[_0x1eb3dd(0x28a)](_univerjs_pro_sheets_sparkline[_0x1eb3dd(0x23d)]['id'],{'config':_0x5c06b1,'isChangeDataSource':![]});},_0xea437b=_0x822e0d=>{const _0x1692ae=_0x491f72;var _0x56d8c8;const _0x293bad=(_0x56d8c8=_univerjs_core[_0x1692ae(0x284)][_0x1692ae(0x354)](_0xd54624))!==null&&_0x56d8c8!==void 0x0?_0x56d8c8:{};if(!(_0x293bad===null||_0x293bad===void 0x0?void 0x0:_0x293bad['config']))_0x293bad[_0x1692ae(0x3a2)]={};if(_0x293bad[_0x1692ae(0x3a2)]['type'])delete _0x293bad['config']['type'];const _0x56c11d=Number[_0x1692ae(0x2f8)](_0x822e0d,0xa);_0x293bad[_0x1692ae(0x3a2)][_0x1692ae(0x1ee)]=_0x56c11d,_0x38c622[_0x1692ae(0x28a)](_univerjs_pro_sheets_sparkline['SetSheetSparklineCommand']['id'],{'config':_0x293bad,'isChangeDataSource':![]});},_0x3f250d=_0x32c7ab=>{const _0x27f6f6=_0x491f72;var _0x3a8ae4;const _0x1e0044=(_0x3a8ae4=_univerjs_core[_0x27f6f6(0x284)][_0x27f6f6(0x354)](_0xd54624))!==null&&_0x3a8ae4!==void 0x0?_0x3a8ae4:{};if(!(_0x1e0044===null||_0x1e0044===void 0x0?void 0x0:_0x1e0044[_0x27f6f6(0x3a2)]))_0x1e0044[_0x27f6f6(0x3a2)]={};if(_0x1e0044[_0x27f6f6(0x3a2)][_0x27f6f6(0x268)])delete _0x1e0044[_0x27f6f6(0x3a2)]['type'];if(_0x4b8cc3)_0x1e0044['config'][_0x27f6f6(0x2ca)]=_0x32c7ab;else _0x1e0044[_0x27f6f6(0x3a2)][_0x27f6f6(0x259)]=_0x32c7ab;_0x38c622[_0x27f6f6(0x28a)](_univerjs_pro_sheets_sparkline[_0x27f6f6(0x23d)]['id'],{'config':_0x1e0044,'isChangeDataSource':![]});},_0x31c635=_0x4c0c1e=>{const _0x39c28a=_0x491f72;_0x38c622[_0x39c28a(0x28a)](_univerjs_pro_sheets_sparkline[_0x39c28a(0x314)]['id'],{'isIcon':_0x4c0c1e});},_0x3f1cc7=new Set([_0x20aaf5[_0x491f72(0x22e)]]),_0x28fd39=_0x20aaf5[_0x491f72(0x227)];for(let _0x699e2e=_0x28fd39[_0x491f72(0x364)];_0x699e2e<=_0x28fd39[_0x491f72(0x318)];_0x699e2e++)for(let _0x1f5ce7=_0x28fd39['startColumn'];_0x1f5ce7<=_0x28fd39['endColumn'];_0x1f5ce7++){const _0x17ca6e=_0x1ea0fe['getSparkline'](_0x20aaf5['unitId'],_0x20aaf5['subUnitId'],_0x699e2e,_0x1f5ce7);if(_0x17ca6e){_0x3f1cc7[_0x491f72(0x387)](_0x17ca6e);if(_0x3f1cc7[_0x491f72(0x386)]>0x1)break;}}const _0x1e8d42=async()=>{const _0x3cacf7=_0x491f72;if(_0x3f1cc7['size']>0x1)return;const {primary:_0x3b9263,range:_0x399bb2,groupId:_0xd771c9}=_0x20aaf5;if(!await openSparklineRangeSelector(_0xf4bc8d,[_0x399bb2],void 0x0,{'groupId':_0xd771c9,'primary':_univerjs_core[_0x3cacf7(0x284)][_0x3cacf7(0x354)](_0x3b9263)}))return![];};return(0x0,react_jsx_runtime[_0x491f72(0x2e1)])(_0x491f72(0x1f2),{'children':[(0x0,react_jsx_runtime[_0x491f72(0x2e1)])('div',{'className':_0x491f72(0x2af),'children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_0x491f72(0x1f2),{'className':_0x491f72(0x356),'children':_0xb86ecc['t']('sheets-sparkline.panel.sourceAndPosition')}),(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0x491f72(0x258)])(_0x491f72(0x1fc),{'univer-cursor-not-allowed':_0x3f1cc7[_0x491f72(0x386)]>0x1}),'onClick':_0x1e8d42,'children':(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_univerjs_icons[_0x491f72(0x275)],{})})]}),(0x0,react_jsx_runtime[_0x491f72(0x2e1)])('div',{'children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_0x491f72(0x1f2),{'className':_0x491f72(0x2ac),'children':_0xb86ecc['t']('sheets-sparkline.panel.type')}),(0x0,react_jsx_runtime['jsx'])(_0x491f72(0x1f2),{'className':'univer-mb-5\x20univer-text-sm','children':(0x0,react_jsx_runtime[_0x491f72(0x2e1)])(_0x491f72(0x1f2),{'className':(0x0,_univerjs_design['clsx'])(_0x491f72(0x2ea),_univerjs_design['borderClassName']),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x491f72(0x1f2),{'className':(0x0,_univerjs_design['clsx'])('univer-m-0.5\x20univer-flex\x20univer-h-8\x20univer-flex-1\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-sm\x20univer-text-center\x20univer-leading-8',{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x543a95===_univerjs_pro_sheets_sparkline['SparklineTypeEnum'][_0x491f72(0x399)]}),'onClick':()=>_0x23cb6b(_univerjs_pro_sheets_sparkline[_0x491f72(0x1f8)]['LINE_CHART']),'children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_univerjs_icons['LineSparklineIcon'],{}),_0xb86ecc['t'](_0x491f72(0x2b8))]}),(0x0,react_jsx_runtime[_0x491f72(0x2e1)])('div',{'className':(0x0,_univerjs_design[_0x491f72(0x258)])(_0x491f72(0x290),{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x543a95===_univerjs_pro_sheets_sparkline[_0x491f72(0x1f8)][_0x491f72(0x37b)]}),'onClick':()=>_0x23cb6b(_univerjs_pro_sheets_sparkline[_0x491f72(0x1f8)][_0x491f72(0x37b)]),'children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_univerjs_icons[_0x491f72(0x375)],{}),_0xb86ecc['t'](_0x491f72(0x220))]}),(0x0,react_jsx_runtime['jsxs'])(_0x491f72(0x1f2),{'className':(0x0,_univerjs_design[_0x491f72(0x258)])(_0x491f72(0x290),{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x543a95===_univerjs_pro_sheets_sparkline[_0x491f72(0x1f8)]['PROFIT_AND_LOSS_CHART']}),'onClick':()=>_0x23cb6b(_univerjs_pro_sheets_sparkline['SparklineTypeEnum']['PROFIT_AND_LOSS_CHART']),'children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_univerjs_icons[_0x491f72(0x3a5)],{}),_0xb86ecc['t'](_0x491f72(0x29d))]}),(0x0,react_jsx_runtime['jsxs'])(_0x491f72(0x1f2),{'className':(0x0,_univerjs_design[_0x491f72(0x258)])(_0x491f72(0x290),{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x543a95===_univerjs_pro_sheets_sparkline[_0x491f72(0x1f8)][_0x491f72(0x305)]}),'onClick':()=>_0x23cb6b(_univerjs_pro_sheets_sparkline[_0x491f72(0x1f8)]['PIE_CHART']),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x491f72(0x30b)],{}),_0xb86ecc['t'](_0x491f72(0x254))]})]})})]}),_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x268)]!==_univerjs_pro_sheets_sparkline[_0x491f72(0x1f8)][_0x491f72(0x305)]&&(0x0,react_jsx_runtime[_0x491f72(0x2e1)])(react_jsx_runtime[_0x491f72(0x23c)],{'children':[(0x0,react_jsx_runtime[_0x491f72(0x2e1)])(_0x491f72(0x1f2),{'children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])('div',{'className':_0x491f72(0x2ac),'children':_0xb86ecc['t'](_0x491f72(0x1fd))}),(0x0,react_jsx_runtime['jsx'])(_0x491f72(0x1f2),{'className':_0x491f72(0x1ed),'children':(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_univerjs_design[_0x491f72(0x230)],{'className':_0x491f72(0x272),'value':_0xb86ecc['t'](_0x491f72(0x239)+((_0x1d1b06=_0xd54624===null||_0xd54624===void 0x0?void 0x0:_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x25e)])!==null&&_0x1d1b06!==void 0x0?_0x1d1b06:_univerjs_pro_sheets_sparkline[_0x491f72(0x280)][_0x491f72(0x370)])),'options':Object[_0x491f72(0x264)](_univerjs_pro_sheets_sparkline[_0x491f72(0x2b9)])[_0x491f72(0x348)](_0x3a5c10=>{const _0x424632=_0x491f72,_0x2b55fc=_univerjs_pro_sheets_sparkline[_0x424632(0x2b9)][_0x3a5c10];return{'label':(0x0,react_jsx_runtime[_0x424632(0x2e1)])('div',{'className':_0x424632(0x381),'children':[(0x0,react_jsx_runtime[_0x424632(0x38d)])('div',{'className':_0x424632(0x2ce),'style':{'background':_0x2b55fc[0x0]}}),(0x0,react_jsx_runtime[_0x424632(0x38d)])(_0x424632(0x1f2),{'className':'univer-rounded-tl-0.5\x20univer-rounded-bl-0.5\x20univer-mr-2\x20univer-h-4\x20univer-w-6','style':{'background':_0x2b55fc[0x1]}}),(0x0,react_jsx_runtime['jsx'])(_0x424632(0x1f2),{'children':_0xb86ecc['t']('sheets-sparkline.panel.'+_0x3a5c10)})]}),'value':_0x3a5c10};}),'onChange':_0x461880=>_0x24f885(_0x461880)})})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'children':[(0x0,react_jsx_runtime['jsx'])(_0x491f72(0x1f2),{'className':_0x491f72(0x2ac),'children':_0xb86ecc['t'](_0x491f72(0x26a))}),(0x0,react_jsx_runtime['jsxs'])(_0x491f72(0x1f2),{'className':_0x491f72(0x1ed),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x491f72(0x1f2),{'className':_0x491f72(0x340),'children':[(0x0,react_jsx_runtime[_0x491f72(0x2e1)])(_0x491f72(0x1f2),{'className':'univer-flex-1','children':[(0x0,react_jsx_runtime['jsx'])(_0x491f72(0x1f2),{'className':_0x491f72(0x1fb),'children':_0xb86ecc['t'](_0x491f72(0x244))}),(0x0,react_jsx_runtime[_0x491f72(0x38d)])(ColorPickerControl,{'color':(_0x9b323c=_0xd54624===null||_0xd54624===void 0x0?void 0x0:_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x2e9)])!==null&&_0x9b323c!==void 0x0?_0x9b323c:_0x491f72(0x292),'onChange':_0x335b50})]}),_0x543a95===_univerjs_pro_sheets_sparkline['SparklineTypeEnum'][_0x491f72(0x399)]&&(0x0,react_jsx_runtime['jsxs'])(_0x491f72(0x1f2),{'className':'univer-flex-1','children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_0x491f72(0x1f2),{'className':_0x491f72(0x1fb),'children':_0xb86ecc['t'](_0x491f72(0x2d8))}),(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_univerjs_design[_0x491f72(0x230)],{'className':_0x491f72(0x272),'value':(_0xd54624===null||_0xd54624===void 0x0?void 0x0:_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x1ee)])?_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x1ee)]+'px':_0x491f72(0x2a5),'options':[{'value':_0x491f72(0x351),'label':'1px'},{'value':_0x491f72(0x2a5),'label':_0x491f72(0x2a5)},{'value':'3px','label':_0x491f72(0x302)},{'value':'4px','label':'4px'}],'onChange':_0x4dcd9e=>_0xea437b(_0x4dcd9e)})]})]}),(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_univerjs_design[_0x491f72(0x300)],{'className':_0x491f72(0x34a),'checked':_0x4b8cc3?_0xd54624===null||_0xd54624===void 0x0?void 0x0:_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x2ca)]:_0xd54624===null||_0xd54624===void 0x0?void 0x0:_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x259)],'onChange':_0xad0609=>_0x3f250d(_0xad0609),'children':_0x4b8cc3?_0xb86ecc['t']('sheets-sparkline.panel.gradient'):_0xb86ecc['t']('sheets-sparkline.panel.radius')})]})]}),(0x0,react_jsx_runtime[_0x491f72(0x2e1)])('div',{'children':[(0x0,react_jsx_runtime['jsx'])(_0x491f72(0x1f2),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0xb86ecc['t'](_0x491f72(0x36f))}),(0x0,react_jsx_runtime[_0x491f72(0x2e1)])(_0x491f72(0x1f2),{'className':_0x491f72(0x1ed),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x491f72(0x1f2),{'className':_0x491f72(0x35d),'children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])(SparklineMarkItem,{'onCheckboxChange':_0x4b27dd,'onColorChange':_0x29472c,'chartType':_0x543a95,'type':_0x491f72(0x27e),'text':_0xb86ecc['t'](_0x491f72(0x282)),'config':_0xd54624===null||_0xd54624===void 0x0||(_0x3f5a6e=_0xd54624[_0x491f72(0x3a2)]['points'])===null||_0x3f5a6e===void 0x0?void 0x0:_0x3f5a6e[_0x491f72(0x27e)]},_0x491f72(0x27e)),(0x0,react_jsx_runtime[_0x491f72(0x38d)])(SparklineMarkItem,{'onCheckboxChange':_0x4b27dd,'onColorChange':_0x29472c,'chartType':_0x543a95,'type':_0x491f72(0x321),'text':_0xb86ecc['t']('sheets-sparkline.panel.firstPoint'),'config':_0xd54624===null||_0xd54624===void 0x0||(_0x3fdf32=_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x32c)])===null||_0x3fdf32===void 0x0?void 0x0:_0x3fdf32['firstPoint']},_0x491f72(0x321))]}),(0x0,react_jsx_runtime[_0x491f72(0x2e1)])(_0x491f72(0x1f2),{'className':_0x491f72(0x35d),'children':[(0x0,react_jsx_runtime['jsx'])(SparklineMarkItem,{'onCheckboxChange':_0x4b27dd,'onColorChange':_0x29472c,'chartType':_0x543a95,'type':_0x491f72(0x390),'text':_0xb86ecc['t'](_0x491f72(0x35b)),'config':_0xd54624===null||_0xd54624===void 0x0||(_0x2a79ea=_0xd54624['config']['points'])===null||_0x2a79ea===void 0x0?void 0x0:_0x2a79ea[_0x491f72(0x390)]},_0x491f72(0x390)),(0x0,react_jsx_runtime[_0x491f72(0x38d)])(SparklineMarkItem,{'onCheckboxChange':_0x4b27dd,'onColorChange':_0x29472c,'chartType':_0x543a95,'type':_0x491f72(0x1ec),'text':_0xb86ecc['t'](_0x491f72(0x256)),'config':_0xd54624===null||_0xd54624===void 0x0||(_0x28011d=_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x32c)])===null||_0x28011d===void 0x0?void 0x0:_0x28011d[_0x491f72(0x1ec)]},_0x491f72(0x1ec))]}),(0x0,react_jsx_runtime[_0x491f72(0x2e1)])(_0x491f72(0x1f2),{'className':_0x491f72(0x35d),'children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])(SparklineMarkItem,{'onCheckboxChange':_0x4b27dd,'onColorChange':_0x29472c,'chartType':_0x543a95,'type':_0x491f72(0x34e),'text':_0xb86ecc['t'](_0x491f72(0x27c)),'config':_0xd54624===null||_0xd54624===void 0x0||(_0x99cb6a=_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x32c)])===null||_0x99cb6a===void 0x0?void 0x0:_0x99cb6a[_0x491f72(0x34e)]},_0x491f72(0x34e)),(0x0,react_jsx_runtime[_0x491f72(0x38d)])(SparklineMarkItem,{'onCheckboxChange':_0x4b27dd,'onColorChange':_0x29472c,'chartType':_0x543a95,'type':_0x491f72(0x22c),'text':_0xb86ecc['t'](_0x491f72(0x301)),'config':_0xd54624===null||_0xd54624===void 0x0||(_0x45e0e6=_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x32c)])===null||_0x45e0e6===void 0x0?void 0x0:_0x45e0e6[_0x491f72(0x22c)]},_0x491f72(0x22c))]})]})]})]}),_0xd54624[_0x491f72(0x3a2)][_0x491f72(0x268)]===_univerjs_pro_sheets_sparkline[_0x491f72(0x1f8)]['PIE_CHART']&&(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_0x491f72(0x1f2),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0xb86ecc['t'](_0x491f72(0x2e8))}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x491f72(0x2e0),'children':[(0x0,react_jsx_runtime[_0x491f72(0x2e1)])(_univerjs_design[_0x491f72(0x246)],{'onClick':()=>_0x31c635(!![]),'children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_univerjs_icons['DeleteIcon'],{}),_0xb86ecc['t'](_0x491f72(0x21e))]}),(0x0,react_jsx_runtime[_0x491f72(0x2e1)])(_univerjs_design[_0x491f72(0x246)],{'onClick':()=>_0x31c635(![]),'children':[(0x0,react_jsx_runtime[_0x491f72(0x38d)])(_univerjs_icons['DeleteIcon'],{}),_0xb86ecc['t'](_0x491f72(0x2f3))]})]})]});},SparklinePanel=()=>{const _0x3ba7de=_0x591be4;var _0xeaee68,_0x1a34ed,_0x3c0d6d;const _0x244644=(0x0,_univerjs_ui[_0x3ba7de(0x20e)])((0x0,_univerjs_ui[_0x3ba7de(0x28c)])(_univerjs_sheets[_0x3ba7de(0x27a)])[_0x3ba7de(0x24c)]),_0x1ac74a=(0x0,_univerjs_ui[_0x3ba7de(0x28c)])(_univerjs_pro_sheets_sparkline['SparklineDataSourceModel']),_0x42babe=(0x0,_univerjs_ui[_0x3ba7de(0x28c)])(_univerjs_core[_0x3ba7de(0x2ff)]),_0x5409e5=(0x0,_univerjs_ui[_0x3ba7de(0x28c)])(_univerjs_core[_0x3ba7de(0x35c)]),_0x5d11fa=(0x0,_univerjs_sheets[_0x3ba7de(0x212)])(_0x42babe),[_0x4d64d0,_0x125946]=(0x0,react[_0x3ba7de(0x283)])(_0x3ba7de(0x304)),_0x2fa338=_0x4d64d0==='basic',[,_0xa7db23]=(0x0,react[_0x3ba7de(0x283)])(Math['random']());(0x0,react['useEffect'])(()=>{const _0x271100=_0x3ba7de,_0x22fbec=_0x1ac74a[_0x271100(0x379)][_0x271100(0x247)](()=>{const _0xbc033b=_0x271100;_0xa7db23(Math[_0xbc033b(0x297)]());});return()=>{const _0x2b829e=_0x271100;_0x22fbec[_0x2b829e(0x2f1)]();};},[_0x1ac74a['updateConfig$']]);if(!_0x5d11fa)return null;const {unitId:_0x1e8ab7,subUnitId:_0x286b3e}=_0x5d11fa;if(!_0x244644||_0x244644['length']>0x1)return null;const {primary:_0x563a95,range:_0x541f94}=_0x244644[0x0];if(!_0x563a95||!_0x541f94)return null;const _0x36eff1=_0x1ac74a['getSparklineCache'](),_0x39074c=_0x36eff1===null||_0x36eff1===void 0x0||(_0xeaee68=_0x36eff1[_0x3ba7de(0x222)][_0x3ba7de(0x2a0)](_0x1e8ab7))===null||_0xeaee68===void 0x0?void 0x0:_0xeaee68[_0x3ba7de(0x2a0)](_0x286b3e),_0x2869bf=_0x39074c===null||_0x39074c===void 0x0||(_0x1a34ed=_0x39074c[_0x3ba7de(0x28e)][_0x3ba7de(0x276)](_0x563a95[_0x3ba7de(0x31a)],_0x563a95[_0x3ba7de(0x32f)]))===null||_0x1a34ed===void 0x0?void 0x0:_0x1a34ed[_0x3ba7de(0x22e)];if(!_0x2869bf)return null;const _0x369504=(_0x3c0d6d=_0x36eff1[_0x3ba7de(0x36b)][_0x3ba7de(0x2a0)](_0x1e8ab7))===null||_0x3c0d6d===void 0x0||(_0x3c0d6d=_0x3c0d6d[_0x3ba7de(0x2a0)](_0x286b3e))===null||_0x3c0d6d===void 0x0?void 0x0:_0x3c0d6d[_0x3ba7de(0x2a0)](_0x2869bf);if(!_0x369504)return null;const _0x527003={'unitId':_0x1e8ab7,'subUnitId':_0x286b3e,'range':_0x541f94,'primary':_0x563a95,'groupId':_0x2869bf};return(0x0,react_jsx_runtime[_0x3ba7de(0x2e1)])(_0x3ba7de(0x1f2),{'className':_0x3ba7de(0x395),'children':[(0x0,react_jsx_runtime[_0x3ba7de(0x2e1)])(_0x3ba7de(0x1f2),{'className':_0x3ba7de(0x210),'children':[(0x0,react_jsx_runtime[_0x3ba7de(0x2e1)])(_0x3ba7de(0x1f2),{'className':(0x0,_univerjs_design[_0x3ba7de(0x258)])(_0x3ba7de(0x2ec),{'univer-text-primary-600':_0x2fa338}),'children':[(0x0,react_jsx_runtime[_0x3ba7de(0x38d)])(_0x3ba7de(0x1f2),{'onClick':()=>_0x125946(_0x3ba7de(0x304)),'children':_0x5409e5['t'](_0x3ba7de(0x1fa))}),_0x2fa338&&(0x0,react_jsx_runtime[_0x3ba7de(0x38d)])('div',{'className':'univer-absolute\x20univer-bottom-0\x20univer-h-0.5\x20univer-w-full\x20univer-rounded-sm\x20univer-bg-primary-600\x20univer-transition-transform\x20univer-duration-300\x20univer-ease-in-out'})]}),(0x0,react_jsx_runtime[_0x3ba7de(0x2e1)])(_0x3ba7de(0x1f2),{'className':(0x0,_univerjs_design[_0x3ba7de(0x258)])('univer-relative\x20univer-flex\x20univer-h-full\x20univer-cursor-pointer\x20univer-flex-col\x20univer-font-medium\x20univer-leading-7',{'univer-text-primary-600':!_0x2fa338,'univer-cursor-not-allowed\x20univer-text-gray-200':_0x369504[_0x3ba7de(0x3a2)][_0x3ba7de(0x268)]===_univerjs_pro_sheets_sparkline[_0x3ba7de(0x1f8)][_0x3ba7de(0x305)]}),'children':[(0x0,react_jsx_runtime['jsx'])(_0x3ba7de(0x1f2),{'onClick':()=>{const _0x216d0a=_0x3ba7de;if(_0x369504[_0x216d0a(0x3a2)][_0x216d0a(0x268)]===_univerjs_pro_sheets_sparkline[_0x216d0a(0x1f8)][_0x216d0a(0x305)])return;_0x125946(_0x216d0a(0x25c));},'children':_0x5409e5['t'](_0x3ba7de(0x33c))}),!_0x2fa338&&(0x0,react_jsx_runtime['jsx'])(_0x3ba7de(0x1f2),{'className':_0x3ba7de(0x2cc)})]})]}),(0x0,react_jsx_runtime[_0x3ba7de(0x38d)])(_0x3ba7de(0x1f2),{'children':_0x2fa338?(0x0,react_jsx_runtime['jsx'])(SparklineBasicSetting,{'config':_0x369504,'ctx':_0x527003}):(0x0,react_jsx_runtime[_0x3ba7de(0x38d)])(SparklineAdvancedSetting,{'config':_0x369504,'ctx':_0x527003})})]});};function isTargetRangesValid(_0x4b4130,_0x1e1fa8,_0x2954b4){const _0x3a7b1e=_0x591be4;if(!_0x2954b4)return!![];if(_0x1e1fa8['length']!==_0x2954b4[_0x3a7b1e(0x329)]){if(_0x2954b4['length']===0x1){const _0x4485fe=_0x2954b4[0x0];if(_0x4485fe[_0x3a7b1e(0x364)]!==_0x4485fe[_0x3a7b1e(0x318)]&&_0x4485fe[_0x3a7b1e(0x218)]!==_0x4485fe[_0x3a7b1e(0x327)])return![];}else return![];}if(_0x4b4130===_0x3a7b1e(0x1e4)){if(_0x2954b4[_0x3a7b1e(0x329)]!==0x1)return![];const {startRow:_0x40685b,startColumn:_0x162bc8,endRow:_0x134415,endColumn:_0x554ee1}=_0x2954b4[0x0];if(_0x40685b!==_0x134415&&_0x162bc8!==_0x554ee1)return![];}if(_0x2954b4['length']>0x1){if(_0x2954b4[_0x3a7b1e(0x2bb)](_0xb362c5=>{const {startRow:_0x376e9e,startColumn:_0x52266d,endRow:_0x57829f,endColumn:_0x5f44e6}=_0xb362c5;return _0x376e9e!==_0x57829f||_0x52266d!==_0x5f44e6;}))return![];}else{const {startRow:_0x43d5c1,startColumn:_0x559485,endRow:_0x3416f9,endColumn:_0x362712}=_0x2954b4[0x0];if(_0x43d5c1!==_0x3416f9&&_0x559485!==_0x362712)return![];}let _0x1c68dc=0x0;for(const _0x3a4fef of _0x2954b4)_0x1c68dc+=(_0x3a4fef[_0x3a7b1e(0x318)]-_0x3a4fef['startRow']+0x1)*(_0x3a4fef[_0x3a7b1e(0x327)]-_0x3a4fef[_0x3a7b1e(0x218)]+0x1);if(_0x1e1fa8['length']>0x1){for(const _0x2b2f71 of _0x1e1fa8){const {startColumn:_0x2b010b,startRow:_0xa29277,endRow:_0x2ba040,endColumn:_0x541a67}=_0x2b2f71;if(_0x2b010b!==_0x541a67&&_0xa29277!==_0x2ba040)return![];}for(const _0x2ea149 of _0x2954b4){const {startColumn:_0x331d95,startRow:_0x5849a2,endRow:_0x49b1a7,endColumn:_0x2f370e}=_0x2ea149;if(_0x331d95!==_0x2f370e&&_0x5849a2!==_0x49b1a7)return![];}return!![];}else{const _0x493aeb=_0x1e1fa8[0x0][_0x3a7b1e(0x318)]-_0x1e1fa8[0x0][_0x3a7b1e(0x364)]+0x1,_0x73f77e=_0x1e1fa8[0x0][_0x3a7b1e(0x327)]-_0x1e1fa8[0x0][_0x3a7b1e(0x218)]+0x1;return _0x1c68dc===_0x493aeb||_0x1c68dc===_0x73f77e;}}const emptyOriginDataInfo={'cellSourceRanges':[],'cellTargetRanges':[],'groupSourceRanges':[],'groupTargetRanges':[]},getOriginDataSource=(_0x3bcc9b,_0x1091d9,_0x13bbaf)=>{const _0x17a348=_0x591be4;var _0xd7c354,_0x214dc3;if(!_0x1091d9||!_0x13bbaf)return emptyOriginDataInfo;const _0x5da735=_0x3bcc9b[_0x17a348(0x2a0)](_univerjs_core['IUniverInstanceService']),_0x118894=_0x3bcc9b[_0x17a348(0x2a0)](_univerjs_pro_sheets_sparkline[_0x17a348(0x380)]),_0x1e2131=(0x0,_univerjs_sheets[_0x17a348(0x212)])(_0x5da735);if(!_0x1e2131)return;const {unitId:_0x32ae9e,subUnitId:_0x36e26e}=_0x1e2131,{actualRow:_0x2148be,actualColumn:_0xe66942}=_0x1091d9,_0x3cf4fb=(_0xd7c354=_0x118894[_0x17a348(0x3a3)]()[_0x17a348(0x36b)][_0x17a348(0x2a0)](_0x32ae9e))===null||_0xd7c354===void 0x0||(_0xd7c354=_0xd7c354[_0x17a348(0x2a0)](_0x36e26e))===null||_0xd7c354===void 0x0||(_0xd7c354=_0xd7c354[_0x17a348(0x2a0)](_0x13bbaf))===null||_0xd7c354===void 0x0?void 0x0:_0xd7c354[_0x17a348(0x273)][_0x17a348(0x276)](_0x2148be,_0xe66942);if(!_0x3cf4fb)return;const _0x4a897e=[_0x3cf4fb],_0x35c003=[(0x0,_univerjs_core['cellToRange'])(_0x2148be,_0xe66942)],_0x5b23f6=[],_0x1aef7d=[],_0x2d09ff=(_0x214dc3=_0x118894['getSparklineCache']()[_0x17a348(0x36b)][_0x17a348(0x2a0)](_0x32ae9e))===null||_0x214dc3===void 0x0||(_0x214dc3=_0x214dc3['get'](_0x36e26e))===null||_0x214dc3===void 0x0||(_0x214dc3=_0x214dc3[_0x17a348(0x2a0)](_0x13bbaf))===null||_0x214dc3===void 0x0?void 0x0:_0x214dc3[_0x17a348(0x273)];return _0x2d09ff===null||_0x2d09ff===void 0x0||_0x2d09ff['forValue']((_0x42396b,_0x21efcb,_0x35e087)=>{const _0x356a5a=_0x17a348,_0x322ef3=_0x35e087;_0x5b23f6[_0x356a5a(0x2f4)](_0x322ef3),_0x1aef7d[_0x356a5a(0x2f4)]((0x0,_univerjs_core[_0x356a5a(0x25f)])(_0x42396b,_0x21efcb));}),{'cellSourceRanges':_0x4a897e,'cellTargetRanges':_0x35c003,'groupSourceRanges':_0x5b23f6,'groupTargetRanges':_0x1aef7d};};function SparklineSelector(_0x35c7d2){const _0x4482f9=_0x591be4,{sourceRanges:_0x1c4e12,targetRanges:_0x2be18c,onConfirm:_0x1b50f0,onCancel:_0x2202de,resetCtx:_0x55d55a}=_0x35c7d2,_0x1e2068=(0x0,_univerjs_ui[_0x4482f9(0x28c)])(_univerjs_core[_0x4482f9(0x2ff)]),_0x3a5097=(0x0,_univerjs_ui[_0x4482f9(0x28c)])(_univerjs_core[_0x4482f9(0x1e5)]),_0x4c2e97=(0x0,_univerjs_ui[_0x4482f9(0x28c)])(_univerjs_pro_sheets_sparkline['SparklineDataSourceModel']),_0x54b864=(0x0,_univerjs_ui[_0x4482f9(0x28c)])(_univerjs_core[_0x4482f9(0x35c)]),_0x1aab34=(0x0,_univerjs_ui[_0x4482f9(0x28c)])(_univerjs_core[_0x4482f9(0x371)]),[_0x5784b5,_0x39f4a5]=(0x0,react[_0x4482f9(0x283)])(),[_0x17cee5,_0x41140f]=(0x0,react[_0x4482f9(0x283)])(),[_0x2c13d8,_0x208728]=(0x0,react[_0x4482f9(0x283)])(_0x55d55a?_0x4482f9(0x1e4):'none'),_0x14d332=(0x0,react[_0x4482f9(0x28d)])(()=>{const _0xae7882=_0x4482f9;return getOriginDataSource(_0x1aab34,_0x55d55a===null||_0x55d55a===void 0x0?void 0x0:_0x55d55a[_0xae7882(0x2f9)],_0x55d55a===null||_0x55d55a===void 0x0?void 0x0:_0x55d55a[_0xae7882(0x22e)]);},[_0x1aab34,_0x55d55a===null||_0x55d55a===void 0x0?void 0x0:_0x55d55a[_0x4482f9(0x22e)],_0x55d55a===null||_0x55d55a===void 0x0?void 0x0:_0x55d55a[_0x4482f9(0x2f9)]]),{cellSourceRanges:_0x572391,cellTargetRanges:_0x1d46c9,groupSourceRanges:_0x33a14d,groupTargetRanges:_0x2b47ea}=_0x14d332!==null&&_0x14d332!==void 0x0?_0x14d332:{},[_0x5458b7,_0x5603ca]=(0x0,react[_0x4482f9(0x283)])(_0x55d55a?_0x572391:_0x1c4e12),[_0x39d067,_0x35b049]=(0x0,react['useState'])(_0x55d55a?_0x1d46c9:_0x2be18c),_0x7340b0=(0x0,_univerjs_ui[_0x4482f9(0x28c)])(_univerjs_ui[_0x4482f9(0x233)]),_0x495eb2=(0x0,react[_0x4482f9(0x267)])(null);(0x0,react[_0x4482f9(0x334)])(()=>{const _0xb69200=_0x4482f9;if((_0x5458b7===null||_0x5458b7===void 0x0?void 0x0:_0x5458b7['length'])===0x0)_0x39f4a5(void 0x0);if((_0x39d067===null||_0x39d067===void 0x0?void 0x0:_0x39d067[_0xb69200(0x329)])===0x0)_0x41140f(void 0x0);_0x41140f(isTargetRangesValid(_0x2c13d8,_0x5458b7,_0x39d067)?void 0x0:_0x54b864['t']('sheets-sparkline.selector.targetError'));},[_0x54b864,_0x2c13d8,_0x5458b7,_0x39d067]);const _0x338db1=_0x5235d5=>{const _0x4d07b8=_0x4482f9;_0x208728(_0x5235d5),_0x5603ca(_0x5235d5===_0x4d07b8(0x1e4)?_0x14d332===null||_0x14d332===void 0x0?void 0x0:_0x14d332[_0x4d07b8(0x39e)]:_0x14d332===null||_0x14d332===void 0x0?void 0x0:_0x14d332[_0x4d07b8(0x209)]),_0x35b049(_0x5235d5===_0x4d07b8(0x1e4)?_0x14d332===null||_0x14d332===void 0x0?void 0x0:_0x14d332['cellTargetRanges']:_0x14d332===null||_0x14d332===void 0x0?void 0x0:_0x14d332[_0x4d07b8(0x240)]);},{initSourceRangeStr:_0x21ca4d,initTargetRangeStr:_0x53f34f}=(0x0,react[_0x4482f9(0x28d)])(()=>{const _0x14c2fb=_0x4482f9;var _0x3dd827,_0x295d6d;let _0x3cfa27,_0x1c3a5d;return _0x55d55a?(_0x3cfa27=_0x2c13d8===_0x14c2fb(0x1e4)?_0x572391:_0x33a14d,_0x1c3a5d=_0x2c13d8==='item'?_0x1d46c9:_0x2b47ea):(_0x3cfa27=_0x1c4e12,_0x1c3a5d=_0x2be18c),{'initSourceRangeStr':(_0x3dd827=_0x3cfa27===null||_0x3cfa27===void 0x0?void 0x0:_0x3cfa27[_0x14c2fb(0x348)](_0x27f698=>{const _0xe4f85b=_0x14c2fb;if(!(0x0,_univerjs_core[_0xe4f85b(0x325)])(_0x27f698))return _0x39f4a5(_0x54b864['t'](_0xe4f85b(0x1e6))),_0xe4f85b(0x235);const _0x5700ee=(0x0,_univerjs_engine_formula[_0xe4f85b(0x362)])(_0x27f698);return _0x5700ee==='NaN'?'':_0x5700ee;})[_0x14c2fb(0x238)](_0x4bbf3f=>!!_0x4bbf3f)[_0x14c2fb(0x2eb)](','))!==null&&_0x3dd827!==void 0x0?_0x3dd827:'','initTargetRangeStr':(_0x295d6d=_0x1c3a5d===null||_0x1c3a5d===void 0x0?void 0x0:_0x1c3a5d[_0x14c2fb(0x348)](_0x132093=>{const _0x14b6c5=_0x14c2fb,_0x50e58e=(0x0,_univerjs_engine_formula[_0x14b6c5(0x362)])(_0x132093);return _0x50e58e===_0x14b6c5(0x306)?'':_0x50e58e;})[_0x14c2fb(0x238)](_0x5b5a73=>!!_0x5b5a73)['join'](','))!==null&&_0x295d6d!==void 0x0?_0x295d6d:''};},[_0x572391,_0x1d46c9,_0x33a14d,_0x2b47ea,_0x54b864,_0x1c4e12,_0x2be18c,_0x55d55a,_0x2c13d8]),_0x160cc7=(0x0,_univerjs_sheets[_0x4482f9(0x212)])(_0x1e2068);if(!_0x160cc7)return null;const {unitId:_0x571330,subUnitId:_0x42dcd4,worksheet:_0x4fb0a4}=_0x160cc7;return(0x0,react_jsx_runtime['jsxs'])(_0x4482f9(0x1f2),{'ref':_0x495eb2,'children':[Boolean(_0x55d55a)&&(0x0,react_jsx_runtime[_0x4482f9(0x2e1)])(react_jsx_runtime[_0x4482f9(0x23c)],{'children':[(0x0,react_jsx_runtime['jsx'])(_0x4482f9(0x1f2),{'className':_0x4482f9(0x249),'children':_0x54b864['t']('sheets-sparkline.selector.changeType')}),(0x0,react_jsx_runtime[_0x4482f9(0x2e1)])(_0x4482f9(0x1f2),{'className':(0x0,_univerjs_design[_0x4482f9(0x258)])('univer-mb-4\x20univer-box-content\x20univer-flex\x20univer-h-7\x20univer-w-full\x20univer-rounded-sm\x20univer-p-0.5',_univerjs_design[_0x4482f9(0x293)]),'children':[(0x0,react_jsx_runtime['jsx'])(_0x4482f9(0x1f2),{'className':(0x0,_univerjs_design[_0x4482f9(0x258)])(_0x4482f9(0x27d),{'univer-bg-blue-200\x20univer-scrollbar-corner-primary-600':_0x2c13d8==='item'}),'onClick':()=>_0x338db1(_0x4482f9(0x1e4)),'children':_0x54b864['t'](_0x4482f9(0x263))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0x4482f9(0x258)])(_0x4482f9(0x27d),{'univer-bg-blue-200\x20univer-scrollbar-corner-primary-600':_0x2c13d8===_0x4482f9(0x394)}),'onClick':()=>_0x338db1('group'),'children':_0x54b864['t'](_0x4482f9(0x385))})]})]}),(0x0,react_jsx_runtime['jsxs'])(_0x4482f9(0x1f2),{'className':_0x4482f9(0x202),'children':[(0x0,react_jsx_runtime[_0x4482f9(0x38d)])(_0x4482f9(0x1f2),{'className':_0x4482f9(0x1e7),'children':_0x54b864['t'](_0x4482f9(0x2e2))}),(0x0,react_jsx_runtime[_0x4482f9(0x38d)])(_univerjs_sheets_formula_ui[_0x4482f9(0x31b)],{'unitId':_0x571330,'subUnitId':_0x42dcd4,'initialValue':_0x21ca4d,'onChange':(_0xa2049e,_0x27b5e3)=>{const _0x1d1cd7=_0x4482f9,_0x593896=_0x27b5e3[_0x1d1cd7(0x2ee)](',')[_0x1d1cd7(0x348)](_univerjs_engine_formula[_0x1d1cd7(0x2da)])[_0x1d1cd7(0x348)](_0x5513d3=>_univerjs_core[_0x1d1cd7(0x22b)][_0x1d1cd7(0x206)](_0x5513d3[_0x1d1cd7(0x227)],_0x4fb0a4));if(_0x593896['some'](_0x1c273b=>!(0x0,_univerjs_core[_0x1d1cd7(0x325)])(_0x1c273b)||_0x1c273b['endColumn']<_0x1c273b[_0x1d1cd7(0x218)]||_0x1c273b[_0x1d1cd7(0x318)]<_0x1c273b[_0x1d1cd7(0x364)]))return;if(_0x593896[_0x1d1cd7(0x329)]>0x1){if(_0x2c13d8===_0x1d1cd7(0x1e4)){_0x39f4a5(_0x54b864['t']('sheets-sparkline.selector.singleSourceError'));return;}const _0x465d91=_0x593896['some'](_0x365c8b=>{const {startRow:_0x1e9326,endRow:_0x220025,startColumn:_0x122514,endColumn:_0x3494bd}=_0x365c8b;return _0x1e9326!==_0x220025&&_0x122514!==_0x3494bd;});_0x39f4a5(_0x465d91?_0x54b864['t'](_0x1d1cd7(0x39c)):void 0x0);if(!_0x465d91)_0x5603ca(_0x593896);return;}else{const {startRow:_0x168ee0,endRow:_0x3bc9ec,startColumn:_0x90f7b3,endColumn:_0x56d4e1}=_0x593896[0x0];if(_0x2c13d8==='item'&&_0x168ee0!==_0x3bc9ec&&_0x90f7b3!==_0x56d4e1){_0x39f4a5(_0x54b864['t']('sheets-sparkline.selector.resetSourceError'));return;}}_0x39f4a5(void 0x0),_0x5603ca(_0x593896);},'supportAcrossSheet':![]},_0x21ca4d),_0x5784b5?(0x0,react_jsx_runtime[_0x4482f9(0x38d)])(_0x4482f9(0x1f2),{'className':_0x4482f9(0x312),'children':_0x5784b5}):null]}),(0x0,react_jsx_runtime[_0x4482f9(0x2e1)])(_0x4482f9(0x1f2),{'className':_0x4482f9(0x202),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x4482f9(0x1e7),'children':_0x54b864['t'](_0x4482f9(0x23e))}),(0x0,react_jsx_runtime[_0x4482f9(0x38d)])(_univerjs_sheets_formula_ui[_0x4482f9(0x31b)],{'unitId':_0x571330,'subUnitId':_0x42dcd4,'initialValue':_0x53f34f,'onChange':(_0x397840,_0x398c66)=>{const _0x10c7fc=_0x4482f9,_0x2ce34c=_0x398c66[_0x10c7fc(0x2ee)](',')[_0x10c7fc(0x348)](_univerjs_engine_formula[_0x10c7fc(0x2da)])[_0x10c7fc(0x348)](_0x1905d2=>_0x1905d2[_0x10c7fc(0x227)]);if(_0x2ce34c[_0x10c7fc(0x2bb)](_0x25860f=>!(0x0,_univerjs_core['isValidRange'])(_0x25860f)||_0x25860f['endColumn']<_0x25860f[_0x10c7fc(0x218)]||_0x25860f[_0x10c7fc(0x318)]<_0x25860f[_0x10c7fc(0x364)]))return;_0x35b049(_0x2ce34c);},'supportAcrossSheet':![]},_0x53f34f),_0x17cee5?(0x0,react_jsx_runtime['jsx'])(_0x4482f9(0x1f2),{'className':'univer-text-xs\x20univer-text-red-500','children':_0x17cee5}):null]}),(0x0,react_jsx_runtime[_0x4482f9(0x2e1)])('div',{'className':_0x4482f9(0x20b),'children':[(0x0,react_jsx_runtime[_0x4482f9(0x38d)])(_univerjs_design['Button'],{'onClick':()=>{const _0x45f3cb=_0x4482f9;_0x7340b0[_0x45f3cb(0x31f)](SHEET_SPARKLINE_SELECTOR);},'children':_0x54b864['t'](_0x4482f9(0x204))}),(0x0,react_jsx_runtime[_0x4482f9(0x38d)])(_univerjs_design[_0x4482f9(0x246)],{'variant':_0x4482f9(0x2f9),'onClick':()=>{const _0x4b0d7d=_0x4482f9;if(_0x5458b7&&_0x39d067&&!_0x5784b5&&!_0x17cee5){if(_0x55d55a){var _0x3328c9;const _0x1b8281=(_0x3328c9=_0x4c2e97[_0x4b0d7d(0x3a3)]()[_0x4b0d7d(0x36b)][_0x4b0d7d(0x2a0)](_0x571330))===null||_0x3328c9===void 0x0||(_0x3328c9=_0x3328c9[_0x4b0d7d(0x2a0)](_0x42dcd4))===null||_0x3328c9===void 0x0?void 0x0:_0x3328c9['get'](_0x55d55a['groupId']);_0x3a5097[_0x4b0d7d(0x28a)](_univerjs_pro_sheets_sparkline['SetSheetSparklineCommand']['id'],{'config':_0x1b8281,'isChangeDataSource':!![],'changeDataSourceInfo':{'sourceRanges':_0x5458b7,'targetRanges':_0x39d067,'groupId':_0x55d55a[_0x4b0d7d(0x22e)],'resetType':_0x2c13d8,'primary':_0x55d55a['primary']}}),_0x2202de();}else _0x1b50f0({'sourceRanges':_0x5458b7,'targetRanges':_0x39d067});}},'disabled':Boolean(_0x5784b5||_0x17cee5),'children':_0x54b864['t']('sheets-sparkline.selector.confirm')})]})]});}const SHEET_SPARKLINE_CONTEXT_MENU_ID=_0x591be4(0x215);function SheetSparklineMenuFactory(_0xf287aa){const _0x3a97a3=_0x591be4;return{'id':OpenSparklineSelectorOperation['id'],'title':_0x3a97a3(0x39b),'tooltip':_0x3a97a3(0x39b),'icon':SHEET_SPARKLINE_MENU,'type':_univerjs_ui[_0x3a97a3(0x228)][_0x3a97a3(0x1f3)],'hidden$':(0x0,_univerjs_ui[_0x3a97a3(0x320)])(_0xf287aa,_univerjs_core['UniverInstanceType'][_0x3a97a3(0x2d1)]),'disabled$':(0x0,_univerjs_sheets_ui[_0x3a97a3(0x388)])(_0xf287aa,{'workbookTypes':[_univerjs_sheets[_0x3a97a3(0x250)]],'worksheetTypes':[_univerjs_sheets['WorksheetEditPermission']],'rangeTypes':[_univerjs_sheets[_0x3a97a3(0x360)]]})};}function SheetSparklineContextMenu(_0x5746c1){const _0xe25417=_0x591be4;return{'id':SHEET_SPARKLINE_CONTEXT_MENU_ID,'type':_univerjs_ui[_0xe25417(0x228)][_0xe25417(0x24a)],'icon':SHEET_SPARKLINE_MENU,'title':_0xe25417(0x39b),'hidden$':(0x0,rxjs[_0xe25417(0x396)])([(0x0,_univerjs_ui[_0xe25417(0x320)])(_0x5746c1,_univerjs_core[_0xe25417(0x382)][_0xe25417(0x2d1)]),getSparklineContextMenuHidden(_0x5746c1)])[_0xe25417(0x2f2)]((0x0,rxjs[_0xe25417(0x348)])(([_0x314f8e,_0x52f087])=>_0x314f8e||_0x52f087))};}function SheetRemoveSparklineContextMenuFactory(_0x4dabf8){const _0x3c29ef=_0x591be4;return{'id':_univerjs_pro_sheets_sparkline[_0x3c29ef(0x314)]['id'],'type':_univerjs_ui[_0x3c29ef(0x228)][_0x3c29ef(0x1f3)],'title':_0x3c29ef(0x24e),'tooltip':'sheets-sparkline.remove','disabled$':(0x0,_univerjs_sheets_ui[_0x3c29ef(0x388)])(_0x4dabf8,{'workbookTypes':[_univerjs_sheets[_0x3c29ef(0x250)]],'worksheetTypes':[_univerjs_sheets[_0x3c29ef(0x31c)]],'rangeTypes':[_univerjs_sheets[_0x3c29ef(0x360)]]})};}function SheetSparklinePanelMenuFactory(_0x2f4456){const _0x4e2ebf=_0x591be4;return{'id':OpenSparklinePanelOperation['id'],'title':_0x4e2ebf(0x38b),'tooltip':_0x4e2ebf(0x38b),'type':_univerjs_ui['MenuItemType'][_0x4e2ebf(0x1f3)],'disabled$':(0x0,_univerjs_sheets_ui[_0x4e2ebf(0x388)])(_0x2f4456,{'workbookTypes':[_univerjs_sheets[_0x4e2ebf(0x250)]],'worksheetTypes':[_univerjs_sheets[_0x4e2ebf(0x31c)]],'rangeTypes':[_univerjs_sheets['RangeProtectionPermissionEditPoint']]})};}function getSparklineContextMenuHidden(_0x47ce56){const _0x478921=_0x591be4,_0x480e4a=_0x47ce56[_0x478921(0x2a0)](_univerjs_core[_0x478921(0x2ff)])['getCurrentTypeOfUnit$'](_univerjs_core['UniverInstanceType']['UNIVER_SHEET']),_0x18d20b=_0x47ce56[_0x478921(0x2a0)](_univerjs_pro_sheets_sparkline['SparklineDataSourceModel']),_0x34c141=_0x47ce56['get'](_univerjs_sheets[_0x478921(0x38a)]);return _0x480e4a[_0x478921(0x2f2)]((0x0,rxjs['switchMap'])(_0x3975a8=>{const _0x5dbe19=_0x478921;if(!_0x3975a8)return(0x0,rxjs['of'])(!![]);return _0x3975a8[_0x5dbe19(0x339)]['pipe']((0x0,rxjs[_0x5dbe19(0x214)])(_0xd07331=>{const _0x19426f=_0x5dbe19;if(!_0xd07331)return(0x0,rxjs['of'])(!![]);const _0x39d143=_0x47ce56['get'](_univerjs_sheets['SheetsSelectionsService']);return(0x0,rxjs[_0x19426f(0x23a)])(_0x39d143[_0x19426f(0x24c)],_0x18d20b[_0x19426f(0x379)])[_0x19426f(0x2f2)]((0x0,rxjs[_0x19426f(0x348)])(()=>{const _0x6d6b6d=_0x19426f,_0x23ed62=_0x39d143['getCurrentSelections']();if(_0x23ed62[_0x6d6b6d(0x329)]>0x1||_0x23ed62[_0x6d6b6d(0x329)]===0x0)return!![];const {primary:_0x61d30c,range:_0x4c0293}=_0x23ed62[0x0];if(!_0x61d30c)return!![];const _0x483233=_0x3975a8[_0x6d6b6d(0x29b)](),_0x4abb9c=_0xd07331[_0x6d6b6d(0x224)]();if(!_0x18d20b['getSparkline'](_0x483233,_0x4abb9c,_0x61d30c['actualRow'],_0x61d30c[_0x6d6b6d(0x32f)]))return!![];const _0x1e18f8=new Set();_univerjs_core[_0x6d6b6d(0x22b)]['foreach'](_0x4c0293,(_0x32e70c,_0x366c98)=>{const _0x1c5f50=_0x6d6b6d,_0x46a235=_0x18d20b[_0x1c5f50(0x1e8)](_0x483233,_0x4abb9c,_0x32e70c,_0x366c98);if(_0x46a235){if(_0x18d20b[_0x1c5f50(0x378)](_0x483233,_0x4abb9c,_0x46a235))_0x1e18f8[_0x1c5f50(0x387)](_0x46a235);}});let _0x23b3e1=!![];_0x1e18f8[_0x6d6b6d(0x1f1)](_0x325e2d=>{const _0x9d5ed9=_0x6d6b6d,_0x221984=_0x18d20b[_0x9d5ed9(0x378)](_0x483233,_0x4abb9c,_0x325e2d);if(_0x221984&&_0x23b3e1)_0x221984[_0x9d5ed9(0x273)]['forValue']((_0x22b952,_0x68c27a)=>{const _0x276cd1=_0x9d5ed9;var _0xbf80df;if(((_0xbf80df=_0x34c141[_0x276cd1(0x23b)](_0x483233,_0x4abb9c,_0x22b952,_0x68c27a))===null||_0xbf80df===void 0x0?void 0x0:_0xbf80df[_univerjs_sheets['UnitAction'][_0x276cd1(0x21a)]])===![])_0x23b3e1=![];});});if(_0x23b3e1)return![];return!![];}));}));}));}const menuSchema={[_univerjs_ui['RibbonInsertGroup'][_0x591be4(0x260)]]:{[OpenSparklineSelectorOperation['id']]:{'order':0x3,'menuItemFactory':SheetSparklineMenuFactory}},[_univerjs_ui[_0x591be4(0x2c6)]['MAIN_AREA']]:{[_univerjs_ui[_0x591be4(0x277)]['DATA']]:{[SHEET_SPARKLINE_CONTEXT_MENU_ID]:{'order':0x5,'menuItemFactory':SheetSparklineContextMenu,[OpenSparklinePanelOperation['id']]:{'menuItemFactory':SheetSparklinePanelMenuFactory},[_univerjs_pro_sheets_sparkline[_0x591be4(0x314)]['id']]:{'menuItemFactory':SheetRemoveSparklineContextMenuFactory}}}},[_univerjs_ui[_0x591be4(0x2c6)][_0x591be4(0x1f0)]]:{[_univerjs_ui['ContextMenuGroup'][_0x591be4(0x241)]]:{[SHEET_SPARKLINE_CONTEXT_MENU_ID]:{[OpenSparklinePanelOperation['id']]:{'menuItemFactory':SheetSparklinePanelMenuFactory},[_univerjs_pro_sheets_sparkline['RemoveSheetSparklineCommand']['id']]:{'menuItemFactory':SheetRemoveSparklineContextMenuFactory}}}},[_univerjs_ui['ContextMenuPosition'][_0x591be4(0x310)]]:{[_univerjs_ui[_0x591be4(0x277)][_0x591be4(0x241)]]:{[SHEET_SPARKLINE_CONTEXT_MENU_ID]:{[OpenSparklinePanelOperation['id']]:{'menuItemFactory':SheetSparklinePanelMenuFactory},[_univerjs_pro_sheets_sparkline[_0x591be4(0x314)]['id']]:{'menuItemFactory':SheetRemoveSparklineContextMenuFactory}}}}};let SheetsSparklineMenuController=class SheetsSparklineMenuController extends _univerjs_core[_0x591be4(0x32a)]{constructor(_0x11b973,_0x2453dd){const _0x4f241a=_0x591be4;super(),this['_menuManagerService']=_0x11b973,this[_0x4f241a(0x271)]=_0x2453dd,this['_initMenu'](),this[_0x4f241a(0x25d)]();}['_initComponents'](){const _0x9ad860=_0x591be4;[[SHEET_SPARKLINE_MENU,_univerjs_icons[_0x9ad860(0x38e)]],[SHEET_SPARKLINE_SELECTOR,SparklineSelector],[SHEET_SPARKLINE_PANEL,SparklinePanel]][_0x9ad860(0x1f1)](([_0x1eda0d,_0x17dc7a])=>{const _0x2e5a1f=_0x9ad860;this[_0x2e5a1f(0x21b)](this[_0x2e5a1f(0x271)][_0x2e5a1f(0x22f)](_0x1eda0d,_0x17dc7a));});}[_0x591be4(0x20f)](){const _0x18f4ce=_0x591be4;this[_0x18f4ce(0x2db)][_0x18f4ce(0x226)](menuSchema);}};SheetsSparklineMenuController=__decorate([__decorateParam(0x0,_univerjs_ui['IMenuManagerService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_ui[_0x591be4(0x2bc)]))],SheetsSparklineMenuController);function _typeof(_0xafacb6){'@babel/helpers - typeof';const _0xbc3333=_0x591be4;return _typeof=_0xbc3333(0x37f)==typeof Symbol&&_0xbc3333(0x269)==typeof Symbol[_0xbc3333(0x335)]?function(_0x4c0130){return typeof _0x4c0130;}:function(_0x28a403){const _0x2b3f64=_0xbc3333;return _0x28a403&&_0x2b3f64(0x37f)==typeof Symbol&&_0x28a403[_0x2b3f64(0x22a)]===Symbol&&_0x28a403!==Symbol[_0x2b3f64(0x358)]?_0x2b3f64(0x269):typeof _0x28a403;},_typeof(_0xafacb6);}function toPrimitive(_0x38ba04,_0x43a5bc){const _0x59c55b=_0x591be4;if(_0x59c55b(0x298)!=_typeof(_0x38ba04)||!_0x38ba04)return _0x38ba04;var _0x331eca=_0x38ba04[Symbol[_0x59c55b(0x397)]];if(void 0x0!==_0x331eca){var _0x9e352c=_0x331eca[_0x59c55b(0x34d)](_0x38ba04,_0x43a5bc||_0x59c55b(0x266));if(_0x59c55b(0x298)!=_typeof(_0x9e352c))return _0x9e352c;throw new TypeError(_0x59c55b(0x2f0));}return(_0x59c55b(0x26b)===_0x43a5bc?String:Number)(_0x38ba04);}function toPropertyKey(_0x25d8b5){const _0x238f3f=_0x591be4;var _0xff82ae=toPrimitive(_0x25d8b5,_0x238f3f(0x26b));return _0x238f3f(0x269)==_typeof(_0xff82ae)?_0xff82ae:_0xff82ae+'';}function _defineProperty(_0x36bf37,_0x5957eb,_0x34e508){const _0x1e51d7=_0x591be4;return(_0x5957eb=toPropertyKey(_0x5957eb))in _0x36bf37?Object[_0x1e51d7(0x200)](_0x36bf37,_0x5957eb,{'value':_0x34e508,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x36bf37[_0x5957eb]=_0x34e508,_0x36bf37;}let SheetSparklineSelectionController=class SheetSparklineSelectionController extends _univerjs_core['Disposable']{constructor(_0x2cc697,_0x1224fe,_0xb66560,_0x790e41,_0x26d8c2,_0x315f63,_0x3c28bf,_0x2247b4){const _0x8834e8=_0x591be4;super(),this['_sheetSelectionService']=_0x2cc697,this[_0x8834e8(0x326)]=_0x1224fe,this[_0x8834e8(0x2df)]=_0xb66560,this['_sidebarService']=_0x790e41,this[_0x8834e8(0x347)]=_0x26d8c2,this[_0x8834e8(0x2ef)]=_0x315f63,this[_0x8834e8(0x261)]=_0x3c28bf,this['_dialogService']=_0x2247b4,_defineProperty(this,_0x8834e8(0x36e),[]),_defineProperty(this,_0x8834e8(0x32d),[]),this[_0x8834e8(0x3a0)](),this[_0x8834e8(0x2c3)]();}[_0x591be4(0x2c3)](){this['_commandService']['onCommandExecuted'](_0x4a6af8=>{const _0x47390f=_0x35c4;_0x4a6af8['id']===_univerjs_sheets[_0x47390f(0x2ad)]['id']&&(this[_0x47390f(0x30e)][_0x47390f(0x31f)](SHEET_SPARKLINE_PANEL_ID),this['_dialogService'][_0x47390f(0x31f)](SHEET_SPARKLINE_SELECTOR));});}[_0x591be4(0x3a0)](){const _0x5d49f2=_0x591be4;this[_0x5d49f2(0x21b)]((0x0,rxjs[_0x5d49f2(0x23a)])(this[_0x5d49f2(0x350)][_0x5d49f2(0x24c)][_0x5d49f2(0x2f2)]((0x0,rxjs[_0x5d49f2(0x262)])((_0x4d510d,_0x24a9a7)=>{const _0x296c6d=_0x5d49f2;if(_0x4d510d[_0x296c6d(0x329)]!==_0x24a9a7[_0x296c6d(0x329)])return![];else return!_0x24a9a7[_0x296c6d(0x2bb)]((_0x786228,_0xae11f)=>{const _0x16f651=_0x296c6d;return!_univerjs_core[_0x16f651(0x288)]['equals'](_0x786228[_0x16f651(0x227)],_0x4d510d[_0xae11f][_0x16f651(0x227)]);});})),this['_sparklineDataSourceModel'][_0x5d49f2(0x379)][_0x5d49f2(0x2f2)]((0x0,rxjs[_0x5d49f2(0x2e5)])(0x1f4)))[_0x5d49f2(0x247)](()=>{const _0x500b4b=_0x5d49f2;var _0x545530,_0x3051c7,_0xea0b4e,_0x48361f;const _0x5eadff=this[_0x500b4b(0x350)][_0x500b4b(0x34f)]();[...this[_0x500b4b(0x36e)],...this[_0x500b4b(0x32d)]][_0x500b4b(0x1f1)](_0xc19052=>{const _0x4cdb24=_0x500b4b;_0xc19052&&this['_markSelectionService'][_0x4cdb24(0x367)](_0xc19052);});const _0x434f87=(0x0,_univerjs_sheets[_0x500b4b(0x212)])(this[_0x500b4b(0x326)]);if(!_0x434f87){this[_0x500b4b(0x30e)]['close'](SHEET_SPARKLINE_PANEL_ID);return;}const {unitId:_0x56f5d1,subUnitId:_0xe42bb9,worksheet:_0x12ff66}=_0x434f87;if(!_0x5eadff||_0x5eadff[_0x500b4b(0x329)]!==0x1){this[_0x500b4b(0x30e)][_0x500b4b(0x31f)](SHEET_SPARKLINE_PANEL_ID);return;}const {primary:_0x50b919,range:_0x330f1d}=_0x5eadff[0x0];if(!_0x50b919){this[_0x500b4b(0x30e)][_0x500b4b(0x31f)](SHEET_SPARKLINE_PANEL_ID);return;}let _0x4e34d0=_0x50b919[_0x500b4b(0x31a)],_0x5b22a7=_0x50b919[_0x500b4b(0x32f)];const _0x12676c=_0x12ff66[_0x500b4b(0x376)](_0x50b919===null||_0x50b919===void 0x0?void 0x0:_0x50b919[_0x500b4b(0x31a)],_0x50b919===null||_0x50b919===void 0x0?void 0x0:_0x50b919[_0x500b4b(0x32f)]);_0x12676c&&(_0x4e34d0=_0x12676c[_0x500b4b(0x364)],_0x5b22a7=_0x12676c[_0x500b4b(0x218)]);if(((_0x545530=this[_0x500b4b(0x2ef)]['getCellInfo'](_0x56f5d1,_0xe42bb9,_0x4e34d0,_0x5b22a7))===null||_0x545530===void 0x0?void 0x0:_0x545530[_univerjs_sheets[_0x500b4b(0x21c)]['Edit']])===![]){this[_0x500b4b(0x30e)]['close'](SHEET_SPARKLINE_PANEL_ID);return;}const _0x2f57a6=this['_sparklineDataSourceModel'][_0x500b4b(0x3a3)](),_0x53d5c8=_0x2f57a6===null||_0x2f57a6===void 0x0||(_0x3051c7=_0x2f57a6[_0x500b4b(0x222)][_0x500b4b(0x2a0)](_0x56f5d1))===null||_0x3051c7===void 0x0?void 0x0:_0x3051c7[_0x500b4b(0x2a0)](_0xe42bb9),_0x31b38a=_0x53d5c8===null||_0x53d5c8===void 0x0||(_0xea0b4e=_0x53d5c8[_0x500b4b(0x28e)][_0x500b4b(0x276)](_0x4e34d0,_0x5b22a7))===null||_0xea0b4e===void 0x0?void 0x0:_0xea0b4e[_0x500b4b(0x22e)];if(!_0x31b38a){this['_sidebarService']['close'](SHEET_SPARKLINE_PANEL_ID);return;}const _0x5ad954=(_0x48361f=this[_0x500b4b(0x2df)]['getSparklineById'](_0x56f5d1,_0xe42bb9,_0x31b38a))===null||_0x48361f===void 0x0?void 0x0:_0x48361f[_0x500b4b(0x273)];_0x5ad954&&(findRanges(_0x5ad954[_0x500b4b(0x278)](),_0x12ff66)[_0x500b4b(0x1f1)](_0x4e4223=>{const _0x54c281=_0x500b4b,_0x3ca2b9=updateMarkSelection(_0x4e4223,this[_0x54c281(0x347)],_0x54c281(0x281),_0x54c281(0x2c4));_0x3ca2b9&&this['_sourceIds'][_0x54c281(0x2f4)](_0x3ca2b9);}),_0x5ad954['forValue']((_0x464576,_0x5523e9,_0x437ac2)=>{const _0x3affd7=_0x500b4b,_0x2c40f7=_0x437ac2;if(_0x2c40f7&&_univerjs_core[_0x3affd7(0x288)]['intersects']((0x0,_univerjs_core[_0x3affd7(0x25f)])(_0x464576,_0x5523e9),_0x330f1d)){const _0x49ab8b=updateMarkSelection(_0x2c40f7,this[_0x3affd7(0x347)],_0x3affd7(0x29c),_0x3affd7(0x355));_0x49ab8b&&this['_sourceIds'][_0x3affd7(0x2f4)](_0x49ab8b);}}),this['_markSelectionService']['refreshShapes']());}));}};SheetSparklineSelectionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_sheets[_0x591be4(0x27a)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x591be4(0x2ff)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_sparkline['SparklineDataSourceModel'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_ui[_0x591be4(0x2d2)])),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_ui['IMarkSelectionService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_sheets[_0x591be4(0x38a)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_core[_0x591be4(0x1e5)])),__decorateParam(0x7,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_ui[_0x591be4(0x233)]))],SheetSparklineSelectionController);function updateMarkSelection(_0x4369d6,_0x29af92,_0x43bdd4,_0xa0001c){const _0x487031=_0x591be4;if((0x0,_univerjs_core[_0x487031(0x325)])(_0x4369d6)){const _0x532c5f=_0x29af92[_0x487031(0x309)]({'range':_0x4369d6,'style':{'fill':_0xa0001c,'strokeWidth':0x1,'stroke':_0x43bdd4,'widgets':{}},'primary':null},void 0x0,-0xa);if(_0x532c5f)return _0x532c5f;}}function findRanges(_0x599334,_0x3dc78a){const _0x2b9fdc=_0x591be4,_0x9e7729=[],_0x3986b1=new Set();function _0x52e2a8(_0x193296,_0x5f2dad){var _0x4c6767;return Boolean(((_0x4c6767=_0x599334[_0x193296])===null||_0x4c6767===void 0x0?void 0x0:_0x4c6767[_0x5f2dad])&&!_0x3986b1['has'](_0x193296+'-'+_0x5f2dad));}function _0x40bdfc(_0x203539,_0x5b8850){const _0x8ad972=_0x35c4,_0x495fbc=[[_0x203539,_0x5b8850]],_0x2358ac=[],_0x3b1fda=new Set(),_0x3c863b=new Set();while(_0x495fbc[_0x8ad972(0x329)]>0x0){const [_0x2b0c3e,_0x4bdf89]=_0x495fbc[_0x8ad972(0x345)](),_0x3d7303=_0x2b0c3e+'-'+_0x4bdf89;if(_0x3986b1[_0x8ad972(0x27b)](_0x3d7303))continue;_0x3986b1[_0x8ad972(0x387)](_0x3d7303),_0x2358ac[_0x8ad972(0x2f4)]([_0x2b0c3e,_0x4bdf89]);const _0x5cdd9b=_0x3dc78a[_0x8ad972(0x376)](_0x2b0c3e,_0x4bdf89);if(_0x5cdd9b){for(let _0x351f24=_0x5cdd9b['startRow'];_0x351f24<=_0x5cdd9b[_0x8ad972(0x318)];_0x351f24++)for(let _0x219fc8=_0x5cdd9b[_0x8ad972(0x218)];_0x219fc8<=_0x5cdd9b[_0x8ad972(0x327)];_0x219fc8++){const _0x3d7a7d=_0x351f24+'-'+_0x219fc8;_0x3986b1['add'](_0x3d7a7d),_0x2358ac[_0x8ad972(0x2f4)]([_0x351f24,_0x219fc8]);}continue;}for(const [_0xc9af5e,_0x265930]of[[0x0,0x1],[0x1,0x0],[0x0,-0x1],[-0x1,0x0]]){const _0x3dea92=_0x2b0c3e+_0xc9af5e,_0x23cf6c=_0x4bdf89+_0x265930;if(_0x52e2a8(_0x3dea92,_0x23cf6c))_0x495fbc[_0x8ad972(0x2f4)]([_0x3dea92,_0x23cf6c]);}}for(const [_0x5a65be,_0x29d7b2]of _0x2358ac){const _0xf7fd54=_0x2358ac['some'](([_0x3511eb,_0x9f0da])=>_0x3511eb===_0x5a65be&&_0x9f0da!==_0x29d7b2),_0x194eed=_0x2358ac[_0x8ad972(0x2bb)](([_0x2d47eb,_0x2a0899])=>_0x2a0899===_0x29d7b2&&_0x2d47eb!==_0x5a65be);if(_0xf7fd54&&!_0x194eed)_0x3b1fda[_0x8ad972(0x387)](_0x5a65be+'-'+_0x29d7b2);else{if(_0x194eed&&!_0xf7fd54)_0x3c863b[_0x8ad972(0x387)](_0x5a65be+'-'+_0x29d7b2);else{if(_0xf7fd54&&_0x194eed)_0x3b1fda['add'](_0x5a65be+'-'+_0x29d7b2);else _0x9e7729[_0x8ad972(0x2f4)]({'startRow':_0x5a65be,'endRow':_0x5a65be,'startColumn':_0x29d7b2,'endColumn':_0x29d7b2});}}}const _0x5de43a=_0xc5858a(_0x3b1fda),_0x3009c1=_0xc5858a(_0x3c863b);return[..._0x5de43a,..._0x3009c1];}function _0xc5858a(_0x1619e9){const _0x521f90=_0x35c4,_0x5823b9=[],_0x32cb5b=new Set();for(const _0x29794b of _0x1619e9){if(_0x32cb5b[_0x521f90(0x27b)](_0x29794b))continue;const [_0x56697a,_0x55eae4]=_0x29794b[_0x521f90(0x2ee)]('-')[_0x521f90(0x348)](Number);let _0x3f3fff=_0x56697a,_0x552409=_0x56697a,_0x147cff=_0x55eae4,_0x360609=_0x55eae4;const _0x1c366c=[[_0x56697a,_0x55eae4]];while(_0x1c366c[_0x521f90(0x329)]>0x0){const [_0x3f4553,_0x31fd25]=_0x1c366c['shift'](),_0x24fcca=_0x3f4553+'-'+_0x31fd25;if(_0x32cb5b['has'](_0x24fcca)||!_0x1619e9[_0x521f90(0x27b)](_0x24fcca))continue;_0x32cb5b[_0x521f90(0x387)](_0x24fcca),_0x3f3fff=Math[_0x521f90(0x24b)](_0x3f3fff,_0x3f4553),_0x552409=Math[_0x521f90(0x29a)](_0x552409,_0x3f4553),_0x147cff=Math[_0x521f90(0x24b)](_0x147cff,_0x31fd25),_0x360609=Math[_0x521f90(0x29a)](_0x360609,_0x31fd25);for(const [_0x2d8711,_0x17253f]of[[0x0,0x1],[0x1,0x0],[0x0,-0x1],[-0x1,0x0]]){const _0x3daac9=_0x3f4553+_0x2d8711,_0x307370=_0x31fd25+_0x17253f,_0x113dc9=_0x3daac9+'-'+_0x307370;if(_0x1619e9[_0x521f90(0x27b)](_0x113dc9)&&!_0x32cb5b[_0x521f90(0x27b)](_0x113dc9))_0x1c366c[_0x521f90(0x2f4)]([_0x3daac9,_0x307370]);}}_0x5823b9[_0x521f90(0x2f4)]({'startRow':_0x3f3fff,'endRow':_0x552409,'startColumn':_0x147cff,'endColumn':_0x360609});}return _0x5823b9;}for(const _0x19e037 in _0x599334){const _0x51d489=Number[_0x2b9fdc(0x2f8)](_0x19e037,0xa);for(const _0x2ac189 in _0x599334[_0x51d489]){const _0x57e4fd=Number[_0x2b9fdc(0x2f8)](_0x2ac189,0xa),_0x4f20bb=_0x51d489+'-'+_0x57e4fd;if(!_0x3986b1[_0x2b9fdc(0x27b)](_0x4f20bb)){const _0x10eee5=_0x40bdfc(_0x51d489,_0x57e4fd);_0x9e7729['push'](..._0x10eee5);}}}return _0x9e7729;}let SheetSparklinePermissionController=class SheetSparklinePermissionController extends _univerjs_core[_0x591be4(0x32a)]{constructor(_0x8d1875,_0x27b046,_0xfe027f,_0x3e3720,_0xecc4eb,_0x38c643){const _0x421306=_0x591be4;super(),this[_0x421306(0x261)]=_0x8d1875,this[_0x421306(0x32e)]=_0x27b046,this[_0x421306(0x236)]=_0xfe027f,this[_0x421306(0x231)]=_0x3e3720,this['_univerInstanceService']=_0xecc4eb,this[_0x421306(0x2df)]=_0x38c643,this[_0x421306(0x203)]();}[_0x591be4(0x203)](){const _0x33beba=_0x591be4;this[_0x33beba(0x21b)](this[_0x33beba(0x261)][_0x33beba(0x242)](_0x3da16b=>{const _0x2bb378=_0x33beba;if(_0x3da16b['id']===_univerjs_pro_sheets_sparkline[_0x2bb378(0x37a)]['id']){const {targetRanges:_0x133235,targetInfo:_0x52afbd}=_0x3da16b[_0x2bb378(0x26c)],{unitId:_0x200e7a,subUnitId:_0x2b9488}=_0x52afbd;if(!this[_0x2bb378(0x236)][_0x2bb378(0x291)]({'workbookTypes':[_univerjs_sheets[_0x2bb378(0x250)]],'worksheetTypes':[_univerjs_sheets[_0x2bb378(0x31c)]],'rangeTypes':[_univerjs_sheets[_0x2bb378(0x360)]]},_0x133235,_0x200e7a,_0x2b9488))this[_0x2bb378(0x236)]['blockExecuteWithoutPermission'](this[_0x2bb378(0x32e)]['t'](_0x2bb378(0x2a6)));}else{if(_0x3da16b['id']===_univerjs_pro_sheets_sparkline[_0x2bb378(0x23d)]['id']){const {isChangeDataSource:_0x4b46a0,changeDataSourceInfo:_0x14357b}=_0x3da16b['params'],_0x5585d3=(0x0,_univerjs_sheets[_0x2bb378(0x212)])(this[_0x2bb378(0x326)]);if(!_0x5585d3)return;const _0x2dcc3a=this[_0x2bb378(0x231)][_0x2bb378(0x34f)]()[_0x2bb378(0x348)](_0x15bf61=>_0x15bf61[_0x2bb378(0x227)]),{unitId:_0x57b637,subUnitId:_0x108aab}=_0x5585d3;if(_0x4b46a0){if(_0x14357b){const {targetRanges:_0x43e82c,sourceRanges:_0x282384,resetType:_0x33f757}=_0x14357b,_0x4bd869=_0x33f757==='item'?_0x43e82c:[..._0x282384,..._0x43e82c];if(!this[_0x2bb378(0x236)][_0x2bb378(0x291)]({'workbookTypes':[_univerjs_sheets[_0x2bb378(0x250)]],'worksheetTypes':[_univerjs_sheets[_0x2bb378(0x31c)]],'rangeTypes':[_univerjs_sheets[_0x2bb378(0x360)]]},_0x4bd869,_0x57b637,_0x108aab))this[_0x2bb378(0x236)][_0x2bb378(0x33d)](this[_0x2bb378(0x32e)]['t']('permission.dialog.editErr'));}}else{const _0x4a46a5=new Set();_0x2dcc3a['forEach'](_0x3b65e8=>{const _0x425359=_0x2bb378;_univerjs_core[_0x425359(0x22b)][_0x425359(0x398)](_0x3b65e8,(_0x553c2c,_0x34e2f8)=>{const _0x70f74=_0x425359,_0x34b2bb=this[_0x70f74(0x2df)][_0x70f74(0x1e8)](_0x57b637,_0x108aab,_0x553c2c,_0x34e2f8);if(_0x34b2bb){if(this[_0x70f74(0x2df)][_0x70f74(0x378)](_0x57b637,_0x108aab,_0x34b2bb))_0x4a46a5[_0x70f74(0x387)](_0x34b2bb);}});});const _0x47c33c=[];_0x4a46a5[_0x2bb378(0x1f1)](_0x31074e=>{const _0x292ce2=_0x2bb378,_0x20563b=this[_0x292ce2(0x2df)][_0x292ce2(0x378)](_0x57b637,_0x108aab,_0x31074e);if(_0x20563b)_0x47c33c['push'](...findRanges(_0x20563b[_0x292ce2(0x273)]['getMatrix'](),_0x5585d3['worksheet']));});if(!this[_0x2bb378(0x236)][_0x2bb378(0x291)]({'workbookTypes':[_univerjs_sheets['WorkbookEditablePermission']],'worksheetTypes':[_univerjs_sheets[_0x2bb378(0x31c)]],'rangeTypes':[_univerjs_sheets[_0x2bb378(0x360)]]},_0x47c33c,_0x57b637,_0x108aab))this[_0x2bb378(0x236)][_0x2bb378(0x33d)](this[_0x2bb378(0x32e)]['t']('permission.dialog.editErr'));}}else{if(_0x3da16b['id']===_univerjs_pro_sheets_sparkline['RemoveSheetSparklineCommand']['id']){const {isSingle:_0x1d7ec6}=_0x3da16b[_0x2bb378(0x26c)];if(_0x1d7ec6){if(!this['_sheetPermissionCheckController'][_0x2bb378(0x291)]({'workbookTypes':[_univerjs_sheets['WorkbookEditablePermission']],'worksheetTypes':[_univerjs_sheets[_0x2bb378(0x31c)]],'rangeTypes':[_univerjs_sheets[_0x2bb378(0x360)]]}))this[_0x2bb378(0x236)][_0x2bb378(0x33d)](this[_0x2bb378(0x32e)]['t'](_0x2bb378(0x2a6)));}else{const _0x5370e1=(0x0,_univerjs_sheets['getSheetCommandTarget'])(this[_0x2bb378(0x326)]);if(!_0x5370e1)return;const _0x3989f6=this[_0x2bb378(0x231)][_0x2bb378(0x34f)]()[_0x2bb378(0x348)](_0x527ce2=>_0x527ce2['range']),{unitId:_0x58b8f6,subUnitId:_0x1939dd}=_0x5370e1,_0x36d1d0=new Set();_0x3989f6[_0x2bb378(0x1f1)](_0x50b2e0=>{const _0x4f8ccc=_0x2bb378;_univerjs_core['Range'][_0x4f8ccc(0x398)](_0x50b2e0,(_0x281513,_0x33c399)=>{const _0x4c5bf3=_0x4f8ccc,_0x426243=this['_sparklineDataSourceModel'][_0x4c5bf3(0x1e8)](_0x58b8f6,_0x1939dd,_0x281513,_0x33c399);if(_0x426243){if(this[_0x4c5bf3(0x2df)][_0x4c5bf3(0x378)](_0x58b8f6,_0x1939dd,_0x426243))_0x36d1d0['add'](_0x426243);}});});const _0xd3c00f=[];_0x36d1d0[_0x2bb378(0x1f1)](_0x481308=>{const _0x3f848c=_0x2bb378,_0x37901c=this['_sparklineDataSourceModel'][_0x3f848c(0x378)](_0x58b8f6,_0x1939dd,_0x481308);if(_0x37901c)_0xd3c00f[_0x3f848c(0x2f4)](...findRanges(_0x37901c['sparklines'][_0x3f848c(0x278)](),_0x5370e1[_0x3f848c(0x213)]));});if(!this[_0x2bb378(0x236)]['permissionCheckWithRanges']({'workbookTypes':[_univerjs_sheets[_0x2bb378(0x250)]],'worksheetTypes':[_univerjs_sheets[_0x2bb378(0x31c)]],'rangeTypes':[_univerjs_sheets[_0x2bb378(0x360)]]},_0xd3c00f,_0x58b8f6,_0x1939dd))this[_0x2bb378(0x236)][_0x2bb378(0x33d)](this[_0x2bb378(0x32e)]['t'](_0x2bb378(0x2a6)));}}}}}));}};SheetSparklinePermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_core['ICommandService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_core[_0x591be4(0x35c)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets['SheetPermissionCheckController'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_sheets[_0x591be4(0x27a)])),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x591be4(0x2ff)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_pro_sheets_sparkline['SparklineDataSourceModel']))],SheetSparklinePermissionController);let SheetSparklinePrintingController=class SheetSparklinePrintingController extends _univerjs_core['Disposable']{constructor(_0x461c76,_0x41a81d){const _0x35c28d=_0x591be4;super(),this[_0x35c28d(0x33e)]=_0x461c76,this['_sparklineDataSourceModel']=_0x41a81d,this[_0x35c28d(0x1fe)]();}[_0x591be4(0x1fe)](){const _0x2bdc16=_0x591be4;this[_0x2bdc16(0x21b)](this['_sheetPrintInterceptorService'][_0x2bdc16(0x359)][_0x2bdc16(0x349)](this[_0x2bdc16(0x33e)][_0x2bdc16(0x359)][_0x2bdc16(0x2e4)]()[_0x2bdc16(0x331)],{'handler':(_0x391c48,_0x26bc38,_0x225ed6)=>{const _0x1035a6=_0x2bdc16,{unitId:_0x45e92b,subUnitId:_0x3dad0c}=_0x26bc38,_0x420cb2=this[_0x1035a6(0x2df)][_0x1035a6(0x253)](_0x45e92b,_0x3dad0c);let _0x9fe655=_0x391c48;if(_0x420cb2)Array[_0x1035a6(0x223)](_0x420cb2['values']())[_0x1035a6(0x1f1)](_0x14ad3c=>{const _0x30afb8=_0x1035a6,_0x39f28d=_0x14ad3c[_0x30afb8(0x273)]['getDataRange']();_0x9fe655=_0x9fe655&&_0x39f28d[_0x30afb8(0x318)]>=0x0?_univerjs_core['Rectangle'][_0x30afb8(0x316)](_0x9fe655,_0x39f28d):_0x39f28d;});return _0x225ed6(_0x9fe655);}}));}};SheetSparklinePrintingController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_sheets_ui[_0x591be4(0x2b5)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_pro_sheets_sparkline[_0x591be4(0x380)]))],SheetSparklinePrintingController);const renderLineSparkline=(_0x54d810,_0xf4fec2,_0x303bcf,_0x1c6102,_0x53016a)=>{const _0x42c361=_0x591be4;var _0x36fcb6,_0x20a2b0,_0x5169fa,_0x5b3686,_0x1cfc8b,_0x3ecdf9,_0x5e8e42,_0xb23a04,_0x5936a9,_0x40db8e,_0x5dec35,_0x4c73dd,_0x19a4c,_0x1958cb,_0x2cbdc4,_0x2ddce2,_0x1834f0,_0x3b3700;const {startX:_0x267602,startY:_0x4cb59f,endX:_0x118a6f,endY:_0x52cdf0}=_0xf4fec2[_0x42c361(0x1e3)];if(!_0x1c6102)return;const {max:_0x4b4e96,min:_0x1e9b78,highIndex:_0x398098,lowIndex:_0x295752,negativeIndexes:_0x10e5f1,data:_0x4a0194}=_0x1c6102,_0x49613e=0x4,_0x4ad045=_0x118a6f-_0x267602-0x2*_0x49613e,_0x2ce665=_0x52cdf0-_0x4cb59f-0x2*_0x49613e,_0x566660=_0x267602+_0x49613e,_0x22c0a1=_0x4cb59f+_0x49613e,_0x8dc02e=(_0x36fcb6=(_0x20a2b0=_0x303bcf[_0x42c361(0x2d3)])===null||_0x20a2b0===void 0x0?void 0x0:_0x20a2b0[_0x42c361(0x268)])!==null&&_0x36fcb6!==void 0x0?_0x36fcb6:_univerjs_pro_sheets_sparkline[_0x42c361(0x338)][_0x42c361(0x346)],_0x56f047=(_0x5169fa=(_0x5b3686=_0x303bcf[_0x42c361(0x24f)])===null||_0x5b3686===void 0x0?void 0x0:_0x5b3686[_0x42c361(0x268)])!==null&&_0x5169fa!==void 0x0?_0x5169fa:_univerjs_pro_sheets_sparkline[_0x42c361(0x338)]['SELF_EXTREMUM'],_0x4ebd07=(_0x1cfc8b=_0x53016a===null||_0x53016a===void 0x0?void 0x0:_0x53016a['showMax'])!==null&&_0x1cfc8b!==void 0x0?_0x1cfc8b:_0x4b4e96,_0x1490be=(_0x3ecdf9=_0x53016a===null||_0x53016a===void 0x0?void 0x0:_0x53016a[_0x42c361(0x2d0)])!==null&&_0x3ecdf9!==void 0x0?_0x3ecdf9:_0x1e9b78,_0x293878=_0x8dc02e===_univerjs_pro_sheets_sparkline[_0x42c361(0x338)][_0x42c361(0x346)]?_0x4b4e96:_0x4ebd07,_0x23fd3f=_0x56f047===_univerjs_pro_sheets_sparkline[_0x42c361(0x338)]['SELF_EXTREMUM']?_0x1e9b78:_0x1490be;let _0x24840f=![];const _0x4ca893=_0x4a0194[_0x398098];if(typeof _0x4ca893===_0x42c361(0x26d)&&_0x4ca893<_0x23fd3f)_0x24840f=!![];let _0xa45691=![];const _0x3ae7ce=_0x4a0194[_0x295752];if(typeof _0x3ae7ce===_0x42c361(0x26d)&&_0x3ae7ce>_0x293878)_0xa45691=!![];if(_0x23fd3f>_0x293878)return;if(_0x24840f||_0xa45691)return;const _0x55854f=_0x293878===_0x23fd3f,_0x2d7914=_0x293878-_0x23fd3f,_0x178ae6=_0x4ad045/(_0x4a0194[_0x42c361(0x329)]-0x1),_0x120c21=(_0x5e8e42=(_0xb23a04=_0x303bcf[_0x42c361(0x343)])===null||_0xb23a04===void 0x0?void 0x0:_0xb23a04[_0x42c361(0x2c5)])!==null&&_0x5e8e42!==void 0x0?_0x5e8e42:![],_0x37c3bc=[];_0x54d810[_0x42c361(0x2ae)](),_0x54d810[_0x42c361(0x383)](),_0x54d810[_0x42c361(0x2be)](_0x267602+_0x49613e,_0x4cb59f+_0x49613e,_0x4ad045,_0x2ce665),_0x54d810['clip'](),_0x54d810[_0x42c361(0x383)]();let _0x5479cc=null;for(let _0x220ace=0x0;_0x220ace<_0x4a0194[_0x42c361(0x329)];_0x220ace++){const _0x49d7e5=_0x4a0194[_0x220ace];if(_0x49d7e5===_0x42c361(0x373)){_0x5479cc=null;continue;}if(_0x49d7e5===_0x42c361(0x2b1))continue;const _0x589669={'x':_0x120c21?_0x118a6f-_0x49613e-_0x220ace*_0x178ae6:_0x566660+_0x220ace*_0x178ae6,'y':_0x55854f?_0x22c0a1+_0x2ce665/0x2:_0x22c0a1+_0x2ce665-(Number(_0x49d7e5)-_0x23fd3f)/_0x2d7914*_0x2ce665};_0x37c3bc['push'](_0x589669);if(_0x5479cc)_0x54d810[_0x42c361(0x28f)](_0x5479cc['x'],_0x5479cc['y']),_0x54d810[_0x42c361(0x319)](_0x589669['x'],_0x589669['y']);else _0x54d810[_0x42c361(0x28f)](_0x589669['x'],_0x589669['y']);_0x5479cc=_0x589669;}const _0x4cfb8b=(_0x5936a9=_0x303bcf[_0x42c361(0x25e)])!==null&&_0x5936a9!==void 0x0?_0x5936a9:_univerjs_pro_sheets_sparkline['SparklineThemeTypeEnum'][_0x42c361(0x370)],_0x17814=(_0x40db8e=(_0x5dec35=_0x303bcf['seriesColor'])!==null&&_0x5dec35!==void 0x0?_0x5dec35:(_0x4c73dd=_univerjs_pro_sheets_sparkline[_0x42c361(0x2b9)][_0x4cfb8b])===null||_0x4c73dd===void 0x0?void 0x0:_0x4c73dd[0x0])!==null&&_0x40db8e!==void 0x0?_0x40db8e:_univerjs_pro_sheets_sparkline[_0x42c361(0x2b9)]['standard'][0x0],_0x4530ca=_0x53016a===null||_0x53016a===void 0x0?void 0x0:_0x53016a[_0x42c361(0x38c)],_0x2d00b5=_0x53016a===null||_0x53016a===void 0x0?void 0x0:_0x53016a[_0x42c361(0x216)];_0x54d810[_0x42c361(0x265)]=_0x17814,_0x54d810['lineWidth']=_0x303bcf[_0x42c361(0x1ee)]||0x2,_0x54d810[_0x42c361(0x2c7)]=_0x42c361(0x1f4),_0x54d810[_0x42c361(0x286)]();const _0x50995f=[],_0x2acadd=[];if(_0x303bcf[_0x42c361(0x2ca)]&&_0x4530ca&&_0x2d00b5){const _0x449804=_0x54d810['createLinearGradient'](0x0,_0x22c0a1,0x0,_0x22c0a1+_0x2ce665);_0x449804[_0x42c361(0x2c8)](0x0,_0x4530ca),_0x449804['addColorStop'](0x1,_0x2d00b5),_0x54d810['beginPath']();const _0x2db03d=[];let _0xfb064b=null,_0x251af5=0x0;const _0x4e8416=_0x4a0194[_0x398098],_0x4dd4cd=_0x4a0194[_0x295752];for(let _0x1ddae8=0x0;_0x1ddae8<=_0x4a0194[_0x42c361(0x329)];_0x1ddae8++){const _0x44f3dd=_0x4a0194[_0x1ddae8],_0x23835d=_0x44f3dd===_0x42c361(0x373),_0x5b2dcf=_0x44f3dd==='u-connect',_0xbc87c3=_0x1ddae8===_0x4a0194['length'];if(_0x44f3dd===_0x4e8416)_0x50995f[_0x42c361(0x2f4)](_0x1ddae8);if(_0x44f3dd===_0x4dd4cd)_0x2acadd['push'](_0x1ddae8);if(_0x23835d||_0xbc87c3)_0xfb064b!==null&&(_0x2db03d[_0x42c361(0x2f4)]([_0xfb064b,_0x251af5-0x1]),_0xfb064b=null);else{if(!_0x5b2dcf){if(_0xfb064b===null)_0xfb064b=_0x251af5;_0x251af5++;}}}_0x2db03d[_0x42c361(0x1f1)](([_0x13e6b2,_0x33d063])=>{const _0x173bf=_0x42c361,_0x27bbf7=_0x37c3bc[_0x13e6b2],_0x555589=_0x37c3bc[_0x33d063];if(!_0x27bbf7||!_0x555589||_0x13e6b2===_0x33d063)return;_0x54d810[_0x173bf(0x383)](),_0x54d810[_0x173bf(0x28f)](_0x27bbf7['x'],_0x27bbf7['y']);for(let _0x270b0b=_0x13e6b2;_0x270b0b<=_0x33d063;_0x270b0b++){const _0x36d7af=_0x37c3bc[_0x270b0b];if(_0x36d7af)_0x54d810[_0x173bf(0x319)](_0x36d7af['x'],_0x36d7af['y']);}_0x54d810[_0x173bf(0x319)](_0x37c3bc[_0x33d063]['x'],_0x22c0a1+_0x2ce665),_0x54d810['lineTo'](_0x37c3bc[_0x13e6b2]['x'],_0x22c0a1+_0x2ce665),_0x54d810['closePath'](),_0x54d810[_0x173bf(0x255)]=_0x449804,_0x54d810[_0x173bf(0x2fa)]();});}const _0x2050a3='rgb(64,\x20159,\x2017)';((_0x19a4c=_0x303bcf[_0x42c361(0x32c)])===null||_0x19a4c===void 0x0||(_0x19a4c=_0x19a4c[_0x42c361(0x22c)])===null||_0x19a4c===void 0x0?void 0x0:_0x19a4c[_0x42c361(0x279)])&&(_0x54d810[_0x42c361(0x255)]=_0x303bcf['points']['markersPoint'][_0x42c361(0x285)]||_0x2050a3,_0x37c3bc[_0x42c361(0x1f1)](_0x25f660=>{const _0x31caab=_0x42c361;_0x54d810[_0x31caab(0x383)](),_0x54d810[_0x31caab(0x1e1)](_0x25f660['x'],_0x25f660['y'],0x2,0x0,Math['PI']*0x2),_0x54d810[_0x31caab(0x2fa)]();}));if((_0x1958cb=_0x303bcf[_0x42c361(0x32c)])===null||_0x1958cb===void 0x0||(_0x1958cb=_0x1958cb[_0x42c361(0x321)])===null||_0x1958cb===void 0x0?void 0x0:_0x1958cb[_0x42c361(0x279)]){_0x54d810['fillStyle']=_0x303bcf['points'][_0x42c361(0x321)][_0x42c361(0x285)]||_0x2050a3;const _0x9da49e=_0x37c3bc[0x0];_0x9da49e&&(_0x54d810['beginPath'](),_0x54d810['arc'](_0x9da49e['x'],_0x9da49e['y'],0x2,0x0,Math['PI']*0x2),_0x54d810[_0x42c361(0x2fa)]());}if((_0x2cbdc4=_0x303bcf[_0x42c361(0x32c)])===null||_0x2cbdc4===void 0x0||(_0x2cbdc4=_0x2cbdc4[_0x42c361(0x1ec)])===null||_0x2cbdc4===void 0x0?void 0x0:_0x2cbdc4[_0x42c361(0x279)]){_0x54d810['fillStyle']=_0x303bcf[_0x42c361(0x32c)][_0x42c361(0x1ec)][_0x42c361(0x285)]||_0x2050a3;const _0x598dc3=_0x37c3bc[_0x37c3bc[_0x42c361(0x329)]-0x1];_0x598dc3&&(_0x54d810[_0x42c361(0x383)](),_0x54d810['arc'](_0x598dc3['x'],_0x598dc3['y'],0x2,0x0,Math['PI']*0x2),_0x54d810[_0x42c361(0x2fa)]());}((_0x2ddce2=_0x303bcf['points'])===null||_0x2ddce2===void 0x0||(_0x2ddce2=_0x2ddce2[_0x42c361(0x27e)])===null||_0x2ddce2===void 0x0?void 0x0:_0x2ddce2[_0x42c361(0x279)])&&(_0x54d810[_0x42c361(0x255)]=_0x303bcf[_0x42c361(0x32c)][_0x42c361(0x27e)][_0x42c361(0x285)]||_0x2050a3,_0x50995f[_0x42c361(0x1f1)](_0x457550=>{const _0x431009=_0x42c361,_0xd9e5f9=_0x37c3bc[_0x457550];_0xd9e5f9&&(_0x54d810[_0x431009(0x383)](),_0x54d810[_0x431009(0x1e1)](_0xd9e5f9['x'],_0xd9e5f9['y'],0x2,0x0,Math['PI']*0x2),_0x54d810[_0x431009(0x2fa)]());}));((_0x1834f0=_0x303bcf['points'])===null||_0x1834f0===void 0x0||(_0x1834f0=_0x1834f0[_0x42c361(0x390)])===null||_0x1834f0===void 0x0?void 0x0:_0x1834f0[_0x42c361(0x279)])&&(_0x54d810['fillStyle']=_0x303bcf[_0x42c361(0x32c)][_0x42c361(0x390)][_0x42c361(0x285)]||_0x2050a3,_0x2acadd['forEach'](_0x3827cb=>{const _0x33d2d4=_0x42c361,_0x52061f=_0x37c3bc[_0x3827cb];_0x52061f&&(_0x54d810[_0x33d2d4(0x383)](),_0x54d810[_0x33d2d4(0x1e1)](_0x52061f['x'],_0x52061f['y'],0x2,0x0,Math['PI']*0x2),_0x54d810[_0x33d2d4(0x2fa)]());}));((_0x3b3700=_0x303bcf[_0x42c361(0x32c)])===null||_0x3b3700===void 0x0||(_0x3b3700=_0x3b3700[_0x42c361(0x34e)])===null||_0x3b3700===void 0x0?void 0x0:_0x3b3700[_0x42c361(0x279)])&&(_0x54d810[_0x42c361(0x255)]=_0x303bcf['points'][_0x42c361(0x34e)][_0x42c361(0x285)]||_0x2050a3,_0x10e5f1['forEach'](_0x148f88=>{const _0x5a9c20=_0x42c361,_0x3bb7cc=_0x37c3bc[_0x148f88];_0x3bb7cc&&(_0x54d810[_0x5a9c20(0x383)](),_0x54d810[_0x5a9c20(0x1e1)](_0x3bb7cc['x'],_0x3bb7cc['y'],0x2,0x0,Math['PI']*0x2),_0x54d810[_0x5a9c20(0x2fa)]());}));let _0x5c7c63=!![];if(_0x55854f){var _0xfc3a90;_0x5c7c63=!!((_0xfc3a90=_0x303bcf[_0x42c361(0x343)])===null||_0xfc3a90===void 0x0?void 0x0:_0xfc3a90['visible']);}else{var _0x1b5d43;_0x5c7c63=!!(_0x23fd3f<=0x0&&((_0x1b5d43=_0x303bcf[_0x42c361(0x343)])===null||_0x1b5d43===void 0x0?void 0x0:_0x1b5d43[_0x42c361(0x279)]));}if(_0x5c7c63){var _0x403084,_0x57624b;let _0x2e6a49=_0x22c0a1;if(_0x55854f){if(_0x23fd3f===0x0)_0x2e6a49=_0x22c0a1+_0x2ce665/0x2;else{if(_0x23fd3f>0x0)_0x2e6a49=_0x22c0a1+_0x2ce665;}}else _0x2e6a49=_0x22c0a1+_0x2ce665-(0x0-_0x23fd3f)/_0x2d7914*_0x2ce665;_0x54d810[_0x42c361(0x383)](),_0x54d810[_0x42c361(0x28f)](_0x566660,_0x2e6a49),_0x54d810[_0x42c361(0x319)](_0x566660+_0x4ad045,_0x2e6a49),_0x54d810[_0x42c361(0x265)]=(_0x403084=(_0x57624b=_0x303bcf['axis'])===null||_0x57624b===void 0x0?void 0x0:_0x57624b['color'])!==null&&_0x403084!==void 0x0?_0x403084:_0x42c361(0x2c9),_0x54d810[_0x42c361(0x1ee)]=0x1,_0x54d810[_0x42c361(0x286)]();}_0x54d810[_0x42c361(0x25a)]();},renderBarChart=(_0x163a2f,_0x53a859,_0x143b30,_0x457915,_0x5e6dff)=>{const _0x2d0639=_0x591be4;var _0x1bd574,_0x495d8e,_0x49c89f,_0x2772cf,_0x3020a0,_0x41ab14,_0x10c820,_0x151286,_0x1832e6,_0x1ab4da,_0x1a65df,_0x3e6ce0,_0xf6d3f5;const {startX:_0x5855a6,startY:_0x519dd1,endX:_0x121a60,endY:_0x47eb0a}=_0x53a859;if(!_0x457915)return;const {max:_0x1c4c36,min:_0x1ab2a0,highIndex:_0x2e3ab7,lowIndex:_0x57f32c,negativeIndexes:_0x187116,data:_0x2b8da5}=_0x457915,_0xf4f1fc=0x4,_0x4654a4=_0x121a60-_0x5855a6-0x2*_0xf4f1fc,_0x1f4f82=_0x47eb0a-_0x519dd1-0x2*_0xf4f1fc,_0xfc8d40=_0x5855a6+_0xf4f1fc,_0x5f2bf0=_0x519dd1+_0xf4f1fc,_0x22f4f8=(_0x1bd574=(_0x495d8e=_0x143b30[_0x2d0639(0x2d3)])===null||_0x495d8e===void 0x0?void 0x0:_0x495d8e[_0x2d0639(0x268)])!==null&&_0x1bd574!==void 0x0?_0x1bd574:_univerjs_pro_sheets_sparkline[_0x2d0639(0x338)]['SELF_EXTREMUM'],_0xa318b4=(_0x49c89f=(_0x2772cf=_0x143b30[_0x2d0639(0x24f)])===null||_0x2772cf===void 0x0?void 0x0:_0x2772cf[_0x2d0639(0x268)])!==null&&_0x49c89f!==void 0x0?_0x49c89f:_univerjs_pro_sheets_sparkline[_0x2d0639(0x338)][_0x2d0639(0x346)],_0x5195a9=(_0x3020a0=_0x5e6dff===null||_0x5e6dff===void 0x0?void 0x0:_0x5e6dff['showMax'])!==null&&_0x3020a0!==void 0x0?_0x3020a0:_0x1c4c36,_0x259ea6=(_0x41ab14=_0x5e6dff===null||_0x5e6dff===void 0x0?void 0x0:_0x5e6dff[_0x2d0639(0x2d0)])!==null&&_0x41ab14!==void 0x0?_0x41ab14:_0x1ab2a0,_0x33c4f1=_0x22f4f8===_univerjs_pro_sheets_sparkline[_0x2d0639(0x338)][_0x2d0639(0x346)]?_0x1c4c36:_0x5195a9,_0x3f0727=_0xa318b4===_univerjs_pro_sheets_sparkline['SparklineExtremumTypeEnum']['SELF_EXTREMUM']?_0x1ab2a0:_0x259ea6,_0x4bd98f=_0x33c4f1-_0x3f0727,_0x55ef92=0.2,_0x146824=_0x4654a4,_0x4a2a97=_0x33c4f1===_0x3f0727,_0x193837=_0x146824/(_0x2b8da5[_0x2d0639(0x329)]*(0x1+_0x55ef92)),_0x4fa733=_0x193837*_0x55ef92,_0x3b37ab=(_0x10c820=(_0x151286=_0x143b30[_0x2d0639(0x343)])===null||_0x151286===void 0x0?void 0x0:_0x151286[_0x2d0639(0x2c5)])!==null&&_0x10c820!==void 0x0?_0x10c820:![],_0x2cebb3=(_0x1832e6=_0x143b30[_0x2d0639(0x259)])!==null&&_0x1832e6!==void 0x0?_0x1832e6:![];let _0x22b918=0x0;if(!_0x4a2a97)_0x22b918=_0x3f0727>=0x0?_0x3f0727:_0x33c4f1<=0x0?_0x33c4f1:0x0;let _0x44ce98=_0x5f2bf0+_0x1f4f82;if(_0x4a2a97){if(_0x3f0727===0x0)_0x44ce98=_0x5f2bf0+_0x1f4f82/0x2;else{if(_0x3f0727>0x0)_0x44ce98=_0x5f2bf0+_0x1f4f82;else{if(_0x3f0727<0x0)_0x44ce98=_0x5f2bf0;}}}else{if(_0x3f0727>=0x0)_0x44ce98=_0x5f2bf0+_0x1f4f82;else{if(_0x33c4f1<=0x0)_0x44ce98=_0x5f2bf0;else _0x44ce98=_0x5f2bf0+_0x1f4f82-(0x0-_0x3f0727)/_0x4bd98f*_0x1f4f82;}}_0x163a2f[_0x2d0639(0x2ae)](),_0x163a2f[_0x2d0639(0x383)](),_0x163a2f['rect'](_0x5855a6,_0x519dd1,_0x121a60-_0x5855a6,_0x47eb0a-_0x519dd1),_0x163a2f[_0x2d0639(0x24d)]();const _0x55ce29=(_0x1ab4da=_0x143b30[_0x2d0639(0x25e)])!==null&&_0x1ab4da!==void 0x0?_0x1ab4da:_univerjs_pro_sheets_sparkline[_0x2d0639(0x280)][_0x2d0639(0x370)],_0x1ef75d=(_0x1a65df=(_0x3e6ce0=_0x143b30[_0x2d0639(0x2e9)])!==null&&_0x3e6ce0!==void 0x0?_0x3e6ce0:(_0xf6d3f5=_univerjs_pro_sheets_sparkline[_0x2d0639(0x2b9)][_0x55ce29])===null||_0xf6d3f5===void 0x0?void 0x0:_0xf6d3f5[0x0])!==null&&_0x1a65df!==void 0x0?_0x1a65df:_univerjs_pro_sheets_sparkline[_0x2d0639(0x2b9)][_0x2d0639(0x344)][0x0],_0x2dec5b=_0x2b8da5[_0x2e3ab7],_0xab35e5=_0x2b8da5[_0x57f32c];_0x2b8da5[_0x2d0639(0x1f1)]((_0x374da6,_0xac6c8f)=>{const _0x38445e=_0x2d0639;var _0x5de83d,_0x1c9ac5,_0x1aeae1,_0x492348,_0x5c5dcd;if(typeof _0x374da6===_0x38445e(0x26b)||typeof _0x374da6===_0x38445e(0x317))return;const _0x5e9cfb=_0x3b37ab?_0x121a60-_0xf4f1fc-(_0xac6c8f+0x1)*(_0x193837+_0x4fa733)+_0x4fa733/0x2:_0xfc8d40+_0xac6c8f*(_0x193837+_0x4fa733)+_0x4fa733/0x2;let _0x4eaa8b=0x0;if(_0x4a2a97){if(_0x3f0727!==0x0)_0x4eaa8b=_0x1f4f82;}else{if(_0x374da6<_0x3f0727)_0x4eaa8b=0x0;else{if(_0x374da6>_0x33c4f1)_0x4eaa8b=_0x1f4f82;else{if(_0x3f0727<0x0)_0x4eaa8b=_0x374da6===0x0?0x0:Math['max'](Math[_0x38445e(0x296)](_0x374da6-_0x22b918)/_0x4bd98f*_0x1f4f82,0x2);else{if(_0x374da6===0x0)_0x4eaa8b=0x0;else _0x4eaa8b=Math[_0x38445e(0x29a)](Math[_0x38445e(0x296)](_0x374da6-_0x22b918)/_0x4bd98f*_0x1f4f82,0x2);}}}}let _0x486418=_0x1ef75d;if(((_0x5de83d=_0x143b30[_0x38445e(0x32c)])===null||_0x5de83d===void 0x0||(_0x5de83d=_0x5de83d['firstPoint'])===null||_0x5de83d===void 0x0?void 0x0:_0x5de83d[_0x38445e(0x279)])&&_0xac6c8f===0x0)_0x486418=_0x143b30[_0x38445e(0x32c)][_0x38445e(0x321)][_0x38445e(0x285)]||_0x1ef75d;if(((_0x1c9ac5=_0x143b30[_0x38445e(0x32c)])===null||_0x1c9ac5===void 0x0||(_0x1c9ac5=_0x1c9ac5[_0x38445e(0x1ec)])===null||_0x1c9ac5===void 0x0?void 0x0:_0x1c9ac5[_0x38445e(0x279)])&&_0xac6c8f===_0x2b8da5[_0x38445e(0x329)]-0x1)_0x486418=_0x143b30[_0x38445e(0x32c)][_0x38445e(0x1ec)][_0x38445e(0x285)]||_0x1ef75d;if(((_0x1aeae1=_0x143b30[_0x38445e(0x32c)])===null||_0x1aeae1===void 0x0||(_0x1aeae1=_0x1aeae1[_0x38445e(0x27e)])===null||_0x1aeae1===void 0x0?void 0x0:_0x1aeae1[_0x38445e(0x279)])&&_0x374da6===_0x2dec5b)_0x486418=_0x143b30[_0x38445e(0x32c)]['highPoint']['color']||_0x1ef75d;if(((_0x492348=_0x143b30[_0x38445e(0x32c)])===null||_0x492348===void 0x0||(_0x492348=_0x492348[_0x38445e(0x390)])===null||_0x492348===void 0x0?void 0x0:_0x492348['visible'])&&_0x374da6===_0xab35e5)_0x486418=_0x143b30['points'][_0x38445e(0x390)]['color']||_0x1ef75d;if(((_0x5c5dcd=_0x143b30[_0x38445e(0x32c)])===null||_0x5c5dcd===void 0x0||(_0x5c5dcd=_0x5c5dcd['negativePoint'])===null||_0x5c5dcd===void 0x0?void 0x0:_0x5c5dcd[_0x38445e(0x279)])&&_0x187116['includes'](_0xac6c8f))_0x486418=_0x143b30[_0x38445e(0x32c)][_0x38445e(0x34e)][_0x38445e(0x285)]||_0x1ef75d;_0x163a2f[_0x38445e(0x255)]=_0x486418;if(_0x193837>=0x4&&_0x2cebb3&&_0x4eaa8b>=0x2){_0x163a2f[_0x38445e(0x383)]();const _0x1ba937=0x2;_0x374da6>=_0x22b918?(_0x163a2f[_0x38445e(0x28f)](_0x5e9cfb,_0x44ce98-_0x4eaa8b+_0x1ba937),_0x163a2f[_0x38445e(0x1f5)](_0x5e9cfb,_0x44ce98-_0x4eaa8b,_0x5e9cfb+_0x193837,_0x44ce98-_0x4eaa8b,_0x1ba937),_0x163a2f[_0x38445e(0x1f5)](_0x5e9cfb+_0x193837,_0x44ce98-_0x4eaa8b,_0x5e9cfb+_0x193837,_0x44ce98-_0x4eaa8b+_0x1ba937,_0x1ba937),_0x163a2f['lineTo'](_0x5e9cfb+_0x193837,_0x44ce98),_0x163a2f[_0x38445e(0x319)](_0x5e9cfb,_0x44ce98),_0x163a2f[_0x38445e(0x361)](),_0x163a2f[_0x38445e(0x2fa)]()):(_0x163a2f[_0x38445e(0x28f)](_0x5e9cfb,_0x44ce98),_0x163a2f['lineTo'](_0x5e9cfb+_0x193837,_0x44ce98),_0x163a2f[_0x38445e(0x1f5)](_0x5e9cfb+_0x193837,_0x44ce98+_0x4eaa8b,_0x5e9cfb+_0x193837-_0x1ba937,_0x44ce98+_0x4eaa8b,_0x1ba937),_0x163a2f[_0x38445e(0x1f5)](_0x5e9cfb,_0x44ce98+_0x4eaa8b,_0x5e9cfb,_0x44ce98+_0x4eaa8b-_0x1ba937,_0x1ba937),_0x163a2f['lineTo'](_0x5e9cfb,_0x44ce98),_0x163a2f[_0x38445e(0x361)](),_0x163a2f[_0x38445e(0x2fa)]());}else{if(_0x374da6>=_0x22b918)_0x163a2f[_0x38445e(0x30d)](_0x5e9cfb,_0x44ce98-_0x4eaa8b,_0x193837,_0x4eaa8b);else _0x163a2f[_0x38445e(0x30d)](_0x5e9cfb,_0x44ce98,_0x193837,_0x4eaa8b);}});let _0x11be9b=!![];if(_0x4a2a97){var _0x3326eb;_0x11be9b=!!((_0x3326eb=_0x143b30[_0x2d0639(0x343)])===null||_0x3326eb===void 0x0?void 0x0:_0x3326eb['visible']);}else{var _0x4ec479;_0x11be9b=!!(((_0x4ec479=_0x143b30[_0x2d0639(0x343)])===null||_0x4ec479===void 0x0?void 0x0:_0x4ec479[_0x2d0639(0x279)])&&!(_0x33c4f1<0x0||_0x3f0727>0x0));}if(_0x11be9b){var _0x48c085,_0x1c1f63;_0x163a2f[_0x2d0639(0x383)](),_0x163a2f[_0x2d0639(0x28f)](_0xfc8d40,_0x44ce98),_0x163a2f[_0x2d0639(0x319)](_0xfc8d40+_0x4654a4,_0x44ce98),_0x163a2f[_0x2d0639(0x265)]=(_0x48c085=(_0x1c1f63=_0x143b30[_0x2d0639(0x343)])===null||_0x1c1f63===void 0x0?void 0x0:_0x1c1f63[_0x2d0639(0x285)])!==null&&_0x48c085!==void 0x0?_0x48c085:_0x2d0639(0x2c9),_0x163a2f['lineWidth']=0x1,_0x163a2f[_0x2d0639(0x286)]();}_0x163a2f[_0x2d0639(0x25a)]();},renderProfitAndLossChart=(_0x2684c8,_0x18b744,_0x36e324,_0x10bf14,_0x1174c1)=>{const _0x2c38e9=_0x591be4;var _0x1d6b71,_0x252775,_0x1d19df,_0x255bd3,_0x59abe0,_0x2cf3f0,_0x19ebfb,_0xf15c34;const {startX:_0x4d628e,startY:_0x2818f7,endX:_0x7c80a9,endY:_0x38aa42}=_0x18b744;if(!_0x10bf14)return;const {highIndex:_0x35ad5c,lowIndex:_0x46feb2,negativeIndexes:_0x932f84,data:_0x39979d}=_0x10bf14,_0x45e292=0x4,_0x137881=_0x7c80a9-_0x4d628e-0x2*_0x45e292,_0x18ed16=_0x38aa42-_0x2818f7-0x2*_0x45e292,_0x385f4c=_0x4d628e+_0x45e292,_0x52c8d3=_0x2818f7+_0x45e292,_0x5ec862=0.2,_0x48c68f=_0x137881/(_0x39979d['length']*(0x1+_0x5ec862)),_0x56c3e7=_0x48c68f*_0x5ec862,_0x2d1f5a=(_0x1d6b71=(_0x252775=_0x36e324[_0x2c38e9(0x343)])===null||_0x252775===void 0x0?void 0x0:_0x252775['reverse'])!==null&&_0x1d6b71!==void 0x0?_0x1d6b71:![],_0xe53975=(_0x1d19df=_0x36e324[_0x2c38e9(0x259)])!==null&&_0x1d19df!==void 0x0?_0x1d19df:![],_0x5a9963=_0x52c8d3+_0x18ed16/0x2;_0x2684c8[_0x2c38e9(0x2ae)](),_0x2684c8[_0x2c38e9(0x383)](),_0x2684c8[_0x2c38e9(0x2be)](_0x4d628e,_0x2818f7,_0x7c80a9-_0x4d628e,_0x38aa42-_0x2818f7),_0x2684c8[_0x2c38e9(0x24d)]();const _0x2b841f=(_0x255bd3=_0x36e324['themeType'])!==null&&_0x255bd3!==void 0x0?_0x255bd3:_univerjs_pro_sheets_sparkline['SparklineThemeTypeEnum']['STANDARD'],_0x19399e=(_0x59abe0=(_0x2cf3f0=_0x36e324['seriesColor'])!==null&&_0x2cf3f0!==void 0x0?_0x2cf3f0:(_0x19ebfb=_univerjs_pro_sheets_sparkline[_0x2c38e9(0x2b9)][_0x2b841f])===null||_0x19ebfb===void 0x0?void 0x0:_0x19ebfb[0x0])!==null&&_0x59abe0!==void 0x0?_0x59abe0:_univerjs_pro_sheets_sparkline['SparklineThemeMapping']['standard'][0x0],_0x83c2b1=_0x39979d[_0x35ad5c],_0x389299=_0x39979d[_0x46feb2];_0x39979d['forEach']((_0x228fc5,_0x2c3252)=>{const _0x3ed817=_0x2c38e9;var _0x291ecf,_0x22d3e0,_0x528c87,_0x4bf454,_0x3a39d4;if(typeof _0x228fc5===_0x3ed817(0x26b)||typeof _0x228fc5==='undefined')return;const _0x35c38b=_0x228fc5===0x0?0x0:_0x18ed16/0x2,_0x267b32=_0x2d1f5a?_0x7c80a9-_0x45e292-(_0x2c3252+0x1)*(_0x48c68f+_0x56c3e7)+_0x56c3e7/0x2:_0x385f4c+_0x2c3252*(_0x48c68f+_0x56c3e7)+_0x56c3e7/0x2,_0x231dd3=_0x228fc5>=0x0;let _0x220b7f=_0x19399e;if(((_0x291ecf=_0x36e324[_0x3ed817(0x32c)])===null||_0x291ecf===void 0x0||(_0x291ecf=_0x291ecf[_0x3ed817(0x321)])===null||_0x291ecf===void 0x0?void 0x0:_0x291ecf[_0x3ed817(0x279)])&&_0x2c3252===0x0)_0x220b7f=_0x36e324[_0x3ed817(0x32c)][_0x3ed817(0x321)]['color']||_0x19399e;if(((_0x22d3e0=_0x36e324[_0x3ed817(0x32c)])===null||_0x22d3e0===void 0x0||(_0x22d3e0=_0x22d3e0[_0x3ed817(0x1ec)])===null||_0x22d3e0===void 0x0?void 0x0:_0x22d3e0[_0x3ed817(0x279)])&&_0x2c3252===_0x39979d['length']-0x1)_0x220b7f=_0x36e324[_0x3ed817(0x32c)][_0x3ed817(0x1ec)][_0x3ed817(0x285)]||_0x19399e;if(((_0x528c87=_0x36e324[_0x3ed817(0x32c)])===null||_0x528c87===void 0x0||(_0x528c87=_0x528c87['highPoint'])===null||_0x528c87===void 0x0?void 0x0:_0x528c87[_0x3ed817(0x279)])&&_0x228fc5===_0x83c2b1)_0x220b7f=_0x36e324[_0x3ed817(0x32c)]['highPoint'][_0x3ed817(0x285)]||_0x19399e;if(((_0x4bf454=_0x36e324[_0x3ed817(0x32c)])===null||_0x4bf454===void 0x0||(_0x4bf454=_0x4bf454[_0x3ed817(0x390)])===null||_0x4bf454===void 0x0?void 0x0:_0x4bf454['visible'])&&_0x228fc5===_0x389299)_0x220b7f=_0x36e324[_0x3ed817(0x32c)][_0x3ed817(0x390)][_0x3ed817(0x285)]||_0x19399e;if(((_0x3a39d4=_0x36e324[_0x3ed817(0x32c)])===null||_0x3a39d4===void 0x0||(_0x3a39d4=_0x3a39d4[_0x3ed817(0x34e)])===null||_0x3a39d4===void 0x0?void 0x0:_0x3a39d4['visible'])&&_0x932f84[_0x3ed817(0x357)](_0x2c3252))_0x220b7f=_0x36e324[_0x3ed817(0x32c)][_0x3ed817(0x34e)]['color']||_0x19399e;_0x2684c8['fillStyle']=_0x220b7f;if(_0x48c68f>=0x4&&_0xe53975){_0x2684c8[_0x3ed817(0x383)]();const _0x44ce0f=0x2;_0x231dd3?(_0x2684c8[_0x3ed817(0x28f)](_0x267b32,_0x5a9963-_0x35c38b+_0x44ce0f),_0x2684c8[_0x3ed817(0x1f5)](_0x267b32,_0x5a9963-_0x35c38b,_0x267b32+_0x48c68f,_0x5a9963-_0x35c38b,_0x44ce0f),_0x2684c8['arcTo'](_0x267b32+_0x48c68f,_0x5a9963-_0x35c38b,_0x267b32+_0x48c68f,_0x5a9963-_0x35c38b+_0x44ce0f,_0x44ce0f),_0x2684c8[_0x3ed817(0x319)](_0x267b32+_0x48c68f,_0x5a9963),_0x2684c8[_0x3ed817(0x319)](_0x267b32,_0x5a9963),_0x2684c8[_0x3ed817(0x361)](),_0x2684c8[_0x3ed817(0x2fa)]()):(_0x2684c8[_0x3ed817(0x28f)](_0x267b32,_0x5a9963),_0x2684c8[_0x3ed817(0x319)](_0x267b32+_0x48c68f,_0x5a9963),_0x2684c8[_0x3ed817(0x1f5)](_0x267b32+_0x48c68f,_0x5a9963+_0x35c38b,_0x267b32+_0x48c68f-_0x44ce0f,_0x5a9963+_0x35c38b,_0x44ce0f),_0x2684c8[_0x3ed817(0x1f5)](_0x267b32,_0x5a9963+_0x35c38b,_0x267b32,_0x5a9963+_0x35c38b-_0x44ce0f,_0x44ce0f),_0x2684c8[_0x3ed817(0x319)](_0x267b32,_0x5a9963),_0x2684c8[_0x3ed817(0x361)](),_0x2684c8['fill']());}else{if(_0x231dd3)_0x2684c8[_0x3ed817(0x30d)](_0x267b32,_0x5a9963-_0x35c38b,_0x48c68f,_0x35c38b);else _0x2684c8[_0x3ed817(0x30d)](_0x267b32,_0x5a9963,_0x48c68f,_0x35c38b);}});if((_0xf15c34=_0x36e324[_0x2c38e9(0x343)])===null||_0xf15c34===void 0x0?void 0x0:_0xf15c34[_0x2c38e9(0x279)]){var _0x28af8c;_0x2684c8[_0x2c38e9(0x383)](),_0x2684c8['moveTo'](0x0+_0x385f4c,_0x52c8d3+_0x18ed16/0x2),_0x2684c8['lineTo'](_0x137881+_0x385f4c,_0x52c8d3+_0x18ed16/0x2),_0x2684c8['strokeStyle']=(_0x28af8c=_0x36e324[_0x2c38e9(0x343)][_0x2c38e9(0x285)])!==null&&_0x28af8c!==void 0x0?_0x28af8c:'rgb(0,\x200,\x200)',_0x2684c8[_0x2c38e9(0x1ee)]=0x1,_0x2684c8[_0x2c38e9(0x286)]();}_0x2684c8['restore']();},renderPieSparkline=(_0x49e14c,_0xf1a9ce,_0x33cf90,_0x1fb859,_0x4d9b1b)=>{const _0x3754e2=_0x591be4,{startX:_0x40de4e,startY:_0xc588ea,endX:_0x496b28,endY:_0x291c7c}=_0xf1a9ce[_0x3754e2(0x1e3)];if(!_0x1fb859)return;const {data:_0x32e80c}=_0x1fb859,_0x563378=0x4,_0x333dd0=_0x496b28-_0x40de4e-0x2*_0x563378,_0xb12cc6=_0x291c7c-_0xc588ea-0x2*_0x563378,_0x35d0fe=_0x40de4e+_0x563378,_0x1fedbe=_0xc588ea+_0x563378,_0xad3d93=Math[_0x3754e2(0x24b)](_0x333dd0,_0xb12cc6)/0x2,_0x2885eb=_0x35d0fe+_0x333dd0/0x2,_0x155a4c=_0x1fedbe+_0xb12cc6/0x2,_0x4c3f2f=['#FF6384',_0x3754e2(0x1ef),_0x3754e2(0x287),'#4BC0C0',_0x3754e2(0x25b),'#FF9F40',_0x3754e2(0x1ff),'#B4A0E5'],_0x819b0a=_0x32e80c[_0x3754e2(0x238)](_0x2b0961=>typeof _0x2b0961===_0x3754e2(0x26d)&&!Number[_0x3754e2(0x2d4)](_0x2b0961)),_0x3e2ff0=_0x819b0a[_0x3754e2(0x225)]((_0x165af6,_0x309e2f)=>_0x165af6+_0x309e2f,0x0);if(_0x3e2ff0===0x0||_0x819b0a['length']===0x0)return;let _0x24ea19=-Math['PI']/0x2;_0x819b0a[_0x3754e2(0x1f1)]((_0x2d682e,_0x1f6b08)=>{const _0x56bb0b=_0x3754e2,_0x287880=_0x2d682e/_0x3e2ff0*0x2*Math['PI'],_0x561f33=_0x24ea19+_0x287880;_0x49e14c[_0x56bb0b(0x383)](),_0x49e14c[_0x56bb0b(0x28f)](_0x2885eb,_0x155a4c),_0x49e14c[_0x56bb0b(0x1e1)](_0x2885eb,_0x155a4c,_0xad3d93,_0x24ea19,_0x561f33),_0x49e14c[_0x56bb0b(0x361)](),_0x49e14c[_0x56bb0b(0x255)]=_0x4c3f2f[_0x1f6b08%_0x4c3f2f[_0x56bb0b(0x329)]],_0x49e14c[_0x56bb0b(0x2fa)](),_0x49e14c[_0x56bb0b(0x1ee)]=0x1,_0x49e14c[_0x56bb0b(0x265)]=_0x56bb0b(0x2cd),_0x49e14c[_0x56bb0b(0x286)](),_0x24ea19=_0x561f33;});};let SheetSparklineRenderController=class SheetSparklineRenderController extends _univerjs_core['Disposable']{constructor(_0x3a2401,_0x3c5e2b,_0x284a8b,_0x2bce5c){const _0x4f8a03=_0x591be4;super(),this[_0x4f8a03(0x26f)]=_0x3a2401,this[_0x4f8a03(0x2df)]=_0x3c5e2b,this[_0x4f8a03(0x34b)]=_0x284a8b,this['_rangeProtectionCache']=_0x2bce5c,this[_0x4f8a03(0x2bd)](),this[_0x4f8a03(0x35e)]();}[_0x591be4(0x2bd)](){const _0x57fb46=_0x591be4,_0x53d66e=this[_0x57fb46(0x2df)][_0x57fb46(0x3a3)](),_0x1c5e6e=_0x53d66e[_0x57fb46(0x222)],_0x59b025=_0x53d66e[_0x57fb46(0x36b)],_0x30c737=(_0x3c6b22,_0x19cbee,_0x5b9136)=>{const _0x51e459=_0x57fb46;var _0x1af6cf,_0x2d6530,_0x28db37;const {actualRow:_0x62ddbe,actualColumn:_0x48b8f4}=_0x5b9136,{worksheet:_0x273a25}=_0x19cbee,_0x11bd7c=_0x273a25[_0x51e459(0x224)](),_0x5e8f94=_0x273a25[_0x51e459(0x29b)]();if(((_0x1af6cf=this['_rangeProtectionCache']['getCellInfo'](_0x5e8f94,_0x11bd7c,_0x62ddbe,_0x48b8f4))===null||_0x1af6cf===void 0x0?void 0x0:_0x1af6cf[_univerjs_sheets[_0x51e459(0x21c)][_0x51e459(0x229)]])===![])return;const _0x5d0ac7=_0x273a25['getRowVisible'](_0x62ddbe),_0x12fce7=_0x273a25[_0x51e459(0x2a2)](_0x48b8f4);if(!_0x5d0ac7||!_0x12fce7)return;const _0x31641a=(_0x2d6530=_0x1c5e6e[_0x51e459(0x2a0)](_0x5e8f94))===null||_0x2d6530===void 0x0?void 0x0:_0x2d6530[_0x51e459(0x2a0)](_0x11bd7c),_0x346c1a=_0x31641a===null||_0x31641a===void 0x0||(_0x28db37=_0x31641a[_0x51e459(0x28e)])===null||_0x28db37===void 0x0?void 0x0:_0x28db37[_0x51e459(0x276)](_0x62ddbe,_0x48b8f4);if(_0x346c1a){var _0x4b1121,_0x466fe3;const _0x477e5b=_0x31641a===null||_0x31641a===void 0x0?void 0x0:_0x31641a[_0x51e459(0x2d6)][_0x346c1a[_0x51e459(0x22e)]],_0x26fa5d=(_0x4b1121=_0x59b025['get'](_0x5e8f94))===null||_0x4b1121===void 0x0||(_0x4b1121=_0x4b1121[_0x51e459(0x2a0)](_0x11bd7c))===null||_0x4b1121===void 0x0?void 0x0:_0x4b1121[_0x51e459(0x2a0)](_0x346c1a===null||_0x346c1a===void 0x0?void 0x0:_0x346c1a[_0x51e459(0x22e)]);if(!_0x26fa5d)return;const _0x1ecf70=(_0x466fe3=_0x26fa5d===null||_0x26fa5d===void 0x0?void 0x0:_0x26fa5d[_0x51e459(0x3a2)]['type'])!==null&&_0x466fe3!==void 0x0?_0x466fe3:_univerjs_pro_sheets_sparkline['SparklineTypeEnum'][_0x51e459(0x399)];if(_0x1ecf70===_univerjs_pro_sheets_sparkline['SparklineTypeEnum'][_0x51e459(0x399)])renderLineSparkline(_0x3c6b22,_0x5b9136,_0x26fa5d[_0x51e459(0x3a2)],_0x346c1a,_0x477e5b);else{if(_0x1ecf70===_univerjs_pro_sheets_sparkline[_0x51e459(0x1f8)][_0x51e459(0x37b)])renderBarChart(_0x3c6b22,_0x5b9136,_0x26fa5d[_0x51e459(0x3a2)],_0x346c1a,_0x477e5b);else{if(_0x1ecf70===_univerjs_pro_sheets_sparkline[_0x51e459(0x1f8)]['PROFIT_AND_LOSS_CHART'])renderProfitAndLossChart(_0x3c6b22,_0x5b9136,_0x26fa5d['config'],_0x346c1a,_0x477e5b);else{if(_0x1ecf70===_univerjs_pro_sheets_sparkline[_0x51e459(0x1f8)]['PIE_CHART'])renderPieSparkline(_0x3c6b22,_0x5b9136,_0x26fa5d[_0x51e459(0x3a2)],_0x346c1a,_0x477e5b);}}}}};this[_0x57fb46(0x34b)]['registerRenderer'](SHEET_SPARKLINE_RENDERER,_0x30c737);}[_0x591be4(0x35e)](){const _0x57d821=_0x591be4,_0x55ec0f=()=>{const _0x564daa=_0x35c4;var _0x11808e;(_0x11808e=this[_0x564daa(0x26f)][_0x564daa(0x2f5)])===null||_0x11808e===void 0x0||_0x11808e['makeDirty']();};this[_0x57d821(0x21b)](this[_0x57d821(0x2df)]['updateConfig$'][_0x57d821(0x2f2)]((0x0,rxjs['auditTime'])(0x12c))['subscribe'](_0x55ec0f));}};function _0x35c4(_0x33bd25,_0x4202ef){_0x33bd25=_0x33bd25-0x1e1;const _0xec58d5=_0xec58();let _0x35c43e=_0xec58d5[_0x33bd25];return _0x35c43e;}SheetSparklineRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_pro_sheets_sparkline['SparklineDataSourceModel'])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_graphics['SheetGraphicsRenderController'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_sheets[_0x591be4(0x38a)]))],SheetSparklineRenderController);let UniverSheetSparklineUIPlugin=class UniverSheetSparklineUIPlugin extends _univerjs_core['Plugin']{constructor(_0x78dbcc=defaultPluginConfig,_0x4916eb,_0x462123,_0x2aac26,_0x3533de){const _0x3382ac=_0x591be4;super(),this['_config']=_0x78dbcc,this['_configService']=_0x4916eb,this['_injector']=_0x462123,this[_0x3382ac(0x261)]=_0x2aac26,this[_0x3382ac(0x30a)]=_0x3533de;const {menu:_0x528646,..._0x2db395}=(0x0,_univerjs_core[_0x3382ac(0x23a)])({},defaultPluginConfig,this[_0x3382ac(0x303)]);if(_0x528646)this[_0x3382ac(0x201)]['setConfig']('menu',_0x528646,{'merge':!![]});this[_0x3382ac(0x201)][_0x3382ac(0x30f)](SHEETS_SPARKLINE_UI_PLUGIN_CONFIG_KEY,_0x2db395),this['_initRegisterCommand']();}[_0x591be4(0x2cf)](){const _0x5ae9d4=_0x591be4;[[SheetsSparklineMenuController],[SheetSparklineSelectionController],[SheetSparklineAutoFillController],[SheetSparklinePermissionController],[SheetSparklineController],[SheetSparklinePrintingController]]['forEach'](_0x41b958=>{this['_injector']['add'](_0x41b958);}),(0x0,_univerjs_core[_0x5ae9d4(0x3a1)])(this['_injector'],[[SheetsSparklineMenuController]]);}['onRendered'](){const _0x72844=_0x591be4;[[SheetSparklineRenderController]]['forEach'](_0x52f78f=>{const _0x49f752=_0x35c4;this[_0x49f752(0x30a)]['registerRenderModule'](_univerjs_core['UniverInstanceType'][_0x49f752(0x2d1)],_0x52f78f);}),(0x0,_univerjs_core['touchDependencies'])(this[_0x72844(0x237)],[[SheetSparklineSelectionController],[SheetSparklineAutoFillController],[SheetSparklinePermissionController],[SheetSparklineController],[SheetSparklinePrintingController]]);}[_0x591be4(0x2f7)](){const _0x466d7e=_0x591be4;[OpenSparklineSelectorOperation,OpenSparklinePanelOperation][_0x466d7e(0x1f1)](_0x382734=>this[_0x466d7e(0x261)]['registerCommand'](_0x382734));}};_defineProperty(UniverSheetSparklineUIPlugin,_0x591be4(0x365),_0x591be4(0x2fb)),_defineProperty(UniverSheetSparklineUIPlugin,_0x591be4(0x39a),name),_defineProperty(UniverSheetSparklineUIPlugin,_0x591be4(0x29e),version),_defineProperty(UniverSheetSparklineUIPlugin,'type',_univerjs_core[_0x591be4(0x382)][_0x591be4(0x2d1)]),UniverSheetSparklineUIPlugin=__decorate([(0x0,_univerjs_core[_0x591be4(0x3a4)])(_univerjs_pro_sheets_sparkline[_0x591be4(0x341)],_univerjs_sheets_graphics[_0x591be4(0x2de)]),__decorateParam(0x1,_univerjs_core[_0x591be4(0x2cb)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x591be4(0x371)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x591be4(0x208)])(_univerjs_core[_0x591be4(0x1e5)])),__decorateParam(0x4,_univerjs_engine_render[_0x591be4(0x337)])],UniverSheetSparklineUIPlugin),Object[_0x591be4(0x200)](exports,'UniverSheetSparklineUIPlugin',{'enumerable':!![],'get':function(){return UniverSheetSparklineUIPlugin;}});
|