@univerjs-pro/sheets-sparkline 0.25.0 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x33cd(){const _0x54b1eb=['delete','next','sparklineModel','_ensureConfigMap','getActiveSheet','reBuildAnchorCache','u-connect','IUniverInstanceService','object','_getRefRangeMutationsByDeleteCols','value','addSparkline','getSubUnitSparkline','Inject','getCurrentSelections','forEach','@univerjs-pro/sheets-sparkline','PROFIT_AND_LOSS_CHART','toRgbString','rgb(80,102,248)','IExclusiveRangeService','stringify','rgb(236,100,169)','NUMBER','lastPoint','_sparklineDataSourceModel','getUnitId','decorate','_updateConfig$','updateConfig$','symbol','foreach','actualRow','sheet.mutation.add-sparkline','Module','subUnitId','BOOLEAN','Injector','1811184wndWXS','PIE_CHART','@univerjs/core','clone','hasValue','extremumMin','getSheetBySheetId','_onRefRangeChange','toPrimitive','column','get','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','12ungXcC','SparklineExtremumTypeEnum','NORMAL','_commandService','AddSheetSparklineCommand','getOwnPropertyDescriptor','InsertRowMutation','range','call','ICommandService','startRow','SetRowHiddenMutation','string','standard','RemoveSheetSparklineCommand','defineProperty','UniverProLicense','SheetsSelectionsService','SetSheetSparklineCommand','MoveColsMutation','removeSparkline','sequenceExecute','ClearSelectionAllCommand','_initExclusiveRangeChange','PLUGIN_NAME','CopySheetCommand','RANGE_TYPE','getRowVisible','_sparklineAnchorMap','1179116OKDVBj','SparklineThemeMapping','getSparklineById','rxjs','462872MYaCXe','STRING','iterator','MoveRowsMutation','clearSparklineCache','assign','refRangeHandle','SPECIALTY','@univerjs/sheets','SetRowVisibleMutation','RemoveColCommand','row','getCellRaw','forValue','packageName','SetColHiddenMutation','rgb(252,117,60)','number','values','has','Subject','AddSheetSparklineMutation','sheet.mutation.remove-sparkline','exports','_ensureAnchorMatrix','moveColumns','ZERO_VALUE','_initRegisterCommand','_sheetSelectionService','55995CIyhkq','params','CUSTOM_EXTREMUM','getMatrix','MUTATION','BAR_CHART','ObjectMatrix','registerRefRange','deepClone','add','_univerInstanceService','intersects','Range','interceptCommand','_initSheetChange','_getRefRangeMutationsByDeleteRows','getCurrentUnitOfType','length','updateSparklineExtraNum','_resourceManagerService','LINE_CHART','registerCommand','getSizeOf','DependentOn','ReorderRangeMutation','size','fromJSON','highPoint','SparklineDataSourceModel','removePartSparkline','81QekleI','Tools','exclusiveRangesChange$','connect_with_line','AddWorksheetMergeCommand','seriesColor','endColumn','SheetInterceptorService','max','spacing','version','ranges','setValue','onCommandExecuted','IUndoRedoService','generateRandomId','entries','fresh','0.25.0','RemoveSheetCommand','groupId','set','map','_refRangeService','rgb(244,104,249)','rgb(46,187,122)','101338QQvsru','getSheetId','GROUP_EXTREMUM','firstPoint','custom','_initMergeWithSparkline','CellValueType','amd','subscribe','SOFT','remove','extremumMax','_sheetInterceptorService','toJSON','u-spacing','themeType','pluginName','395836RwabnI','_initSnapshot','config','disposeWithMe','getSparkline','default','getColVisible','cellToRange','RemoveColMutation','setAlpha','distinctive','RemoveRowMutation','rgb(49,106,246)','matrix','function','CommandType','71581NdwQFr','lowPoint','adjustRangeOnMutation','rgb(124,66,147)','push','some','removeRows','_initDataChangeListener','sparklines','RemoveRowCommand','nonNumShowAs','_initCorrectRangeWithSparkline','dispose','deleteUnit','contains','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_initHideRowColWithSparkline','getSparklineCache','from','@univerjs-pro/license','keys','SparklineThemeTypeEnum','SetColVisibleMutation','type','_exclusiveRangeService','removeColumns','containHiddenCells','Rectangle','sparklineAnchorMap','_sparklineModel','rgb(30,177,189)','moveRows','realDeleteValue','asObservable','_initDependencies','disposableCollection','UNIVER_SHEET','specialty','SELF_EXTREMUM','startColumn','sheet.command.add-sparkline','prototype','_initClearWithSparkline','getSheetCommandTarget','Plugin','Disposable','SparklinePointsNames','UniverSheets','zero_value','result','endRow','ColorKit','UniverInstanceType','touchDependencies','pushUndoRedo','SetRangeValuesMutation','STANDARD','getValue','FRESH','unitId','UniverProSheetsSparkline','COMMAND','rgb(54,78,244)','rgb(248,190,21)','_injector','every'];_0x33cd=function(){return _0x54b1eb;};return _0x33cd();}function _0x3a8a(_0x585e5c,_0x3a58b0){_0x585e5c=_0x585e5c-0xce;const _0x33cd32=_0x33cd();let _0x3a8ac=_0x33cd32[_0x585e5c];return _0x3a8ac;}(function(_0x506b39,_0xc0b89c){const _0x2aeaad=_0x3a8a,_0x1e9d06=_0x506b39();while(!![]){try{const _0x46da32=-parseInt(_0x2aeaad(0x125))/0x1+-parseInt(_0x2aeaad(0x104))/0x2*(-parseInt(_0x2aeaad(0x199))/0x3)+parseInt(_0x2aeaad(0x1b6))/0x4+parseInt(_0x2aeaad(0x1d7))/0x5+parseInt(_0x2aeaad(0x18d))/0x6+-parseInt(_0x2aeaad(0x115))/0x7+-parseInt(_0x2aeaad(0x1ba))/0x8*(parseInt(_0x2aeaad(0xea))/0x9);if(_0x46da32===_0xc0b89c)break;else _0x1e9d06['push'](_0x1e9d06['shift']());}catch(_0x31e988){_0x1e9d06['push'](_0x1e9d06['shift']());}}}(_0x33cd,0x2777a),function(_0x840325,_0x2a86ec){const _0x1b69d1=_0x3a8a;typeof exports==_0x1b69d1(0x16f)&&typeof module<'u'?_0x2a86ec(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x1b69d1(0x10b)]?define([_0x1b69d1(0x1d1),_0x1b69d1(0x18f),_0x1b69d1(0x1c2),'rxjs',_0x1b69d1(0x138)],_0x2a86ec):(_0x840325=typeof globalThis<'u'?globalThis:_0x840325||self,_0x2a86ec(_0x840325[_0x1b69d1(0x161)]={},_0x840325['UniverCore'],_0x840325[_0x1b69d1(0x154)],_0x840325[_0x1b69d1(0x1b9)],_0x840325[_0x1b69d1(0x1a9)]));}(this,function(_0x29d0c5,_0x4c1cc4,_0x52364e,_0x28cc20,_0x55e0d4){const _0x26e3f0=_0x3a8a;Object['defineProperty'](_0x29d0c5,Symbol['toStringTag'],{'value':_0x26e3f0(0x189)});function _0x405e6b(_0x26ce14,_0x1d9131){const _0x34bbba=_0x26e3f0;let _0x49b6a3=new _0x4c1cc4[(_0x34bbba(0xd2))](),_0x1e3bd5=[],_0x389607=_0x26ce14[_0x34bbba(0xdd)]>0x1,_0x448e7e=0x0,_0x49a928=0x0;for(let _0x3bd178 of _0x26ce14)_0x448e7e+=_0x3bd178[_0x34bbba(0x157)]-_0x3bd178[_0x34bbba(0x1a3)]+0x1,_0x49a928+=_0x3bd178[_0x34bbba(0xf0)]-_0x3bd178['startColumn']+0x1;for(let _0x3ed940 of _0x1d9131)for(let _0xf22d6=_0x3ed940[_0x34bbba(0x1a3)];_0xf22d6<=_0x3ed940[_0x34bbba(0x157)];_0xf22d6++)for(let _0x2b2aba=_0x3ed940[_0x34bbba(0x14c)];_0x2b2aba<=_0x3ed940['endColumn'];_0x2b2aba++)_0x1e3bd5[_0x34bbba(0x129)]({'row':_0xf22d6,'column':_0x2b2aba});if(_0x1e3bd5['length']===_0x448e7e)_0x389607?_0x1e3bd5[_0x34bbba(0x176)]((_0x100338,_0x835eb4)=>{const _0x3563ff=_0x34bbba;let _0x2e5f5a=_0x26ce14[_0x835eb4],_0x563d24={'startRow':_0x2e5f5a[_0x3563ff(0x1a3)],'startColumn':_0x2e5f5a[_0x3563ff(0x14c)],'endRow':_0x2e5f5a[_0x3563ff(0x1a3)],'endColumn':_0x2e5f5a[_0x3563ff(0xf0)]};_0x49b6a3[_0x3563ff(0xf6)](_0x100338[_0x3563ff(0x1c5)],_0x100338[_0x3563ff(0x196)],_0x563d24);}):_0x1e3bd5[_0x34bbba(0x176)]((_0x3a9334,_0x4ccbb3)=>{const _0xc72486=_0x34bbba;let _0x5b108f=_0x26ce14[0x0],_0xf9a987={'startRow':_0x5b108f['startRow']+_0x4ccbb3,'startColumn':_0x5b108f[_0xc72486(0x14c)],'endRow':_0x5b108f[_0xc72486(0x1a3)]+_0x4ccbb3,'endColumn':_0x5b108f[_0xc72486(0xf0)]};_0x49b6a3[_0xc72486(0xf6)](_0x3a9334[_0xc72486(0x1c5)],_0x3a9334[_0xc72486(0x196)],_0xf9a987);});else{if(_0x1e3bd5[_0x34bbba(0xdd)]===_0x49a928)_0x389607?_0x1e3bd5[_0x34bbba(0x176)]((_0x20c172,_0x5df357)=>{const _0x50e264=_0x34bbba;let _0x5ccf67=_0x26ce14[_0x5df357],_0xc480cd={'startRow':_0x5ccf67[_0x50e264(0x1a3)],'startColumn':_0x5ccf67[_0x50e264(0x14c)],'endRow':_0x5ccf67[_0x50e264(0x157)],'endColumn':_0x5ccf67[_0x50e264(0x14c)]};_0x49b6a3[_0x50e264(0xf6)](_0x20c172[_0x50e264(0x1c5)],_0x20c172[_0x50e264(0x196)],_0xc480cd);}):_0x1e3bd5['forEach']((_0x2455b2,_0x24f98d)=>{const _0x2b842f=_0x34bbba;let _0x5a544b=_0x26ce14[0x0],_0xdd3134={'startRow':_0x5a544b[_0x2b842f(0x1a3)],'startColumn':_0x5a544b['startColumn']+_0x24f98d,'endRow':_0x5a544b[_0x2b842f(0x157)],'endColumn':_0x5a544b['startColumn']+_0x24f98d};_0x49b6a3[_0x2b842f(0xf6)](_0x2455b2[_0x2b842f(0x1c5)],_0x2455b2['column'],_0xdd3134);});else{if(_0x1e3bd5[_0x34bbba(0xdd)]===_0x26ce14['length'])_0x26ce14[_0x34bbba(0x166)](_0x3126de=>!(_0x3126de['startRow']!==_0x3126de[_0x34bbba(0x157)]&&_0x3126de[_0x34bbba(0x14c)]!==_0x3126de[_0x34bbba(0xf0)]))&&_0x1e3bd5[_0x34bbba(0x176)]((_0x3511f2,_0x50f570)=>{const _0x20eae8=_0x34bbba;let _0x249b58=_0x26ce14[_0x50f570];_0x49b6a3[_0x20eae8(0xf6)](_0x3511f2['row'],_0x3511f2[_0x20eae8(0x196)],_0x249b58);});else throw Error(_0x34bbba(0x198));}}return _0x49b6a3;}let _0x10015c='SHEET_SPARKLINE_PLUGIN',_0x1fdf70={'standard':[_0x26e3f0(0x163),_0x26e3f0(0x17d)],'specialty':[_0x26e3f0(0x121),_0x26e3f0(0x143)],'distinctive':[_0x26e3f0(0x128),_0x26e3f0(0x1ca)],'soft':[_0x26e3f0(0x17a),_0x26e3f0(0x102)],'fresh':[_0x26e3f0(0x103),_0x26e3f0(0x164)]},_0x219a59=[_0x26e3f0(0xe7),_0x26e3f0(0x107),_0x26e3f0(0x17f),_0x26e3f0(0x126),'negativePoint','markersPoint'],_0x24d3e2=function(_0x5e0e38){const _0x4b7f0e=_0x26e3f0;return _0x5e0e38[_0x4b7f0e(0x15d)]='standard',_0x5e0e38[_0x4b7f0e(0x1c1)]=_0x4b7f0e(0x14a),_0x5e0e38['DISTINCTIVE']=_0x4b7f0e(0x11f),_0x5e0e38[_0x4b7f0e(0x10d)]='soft',_0x5e0e38[_0x4b7f0e(0x15f)]=_0x4b7f0e(0xfb),_0x5e0e38['CUSTOM']=_0x4b7f0e(0x108),_0x5e0e38;}({}),_0x47ba04=function(_0x36f8f3){const _0x45fcad=_0x26e3f0;return _0x36f8f3[_0x36f8f3[_0x45fcad(0xe0)]=0x1]='LINE_CHART',_0x36f8f3[_0x36f8f3['BAR_CHART']=0x2]=_0x45fcad(0xd1),_0x36f8f3[_0x36f8f3[_0x45fcad(0x178)]=0x3]=_0x45fcad(0x178),_0x36f8f3[_0x36f8f3[_0x45fcad(0x18e)]=0x4]='PIE_CHART',_0x36f8f3;}({}),_0x36d69b=function(_0x3594c8){const _0x5d102a=_0x26e3f0;return _0x3594c8['SPACING']=_0x5d102a(0xf3),_0x3594c8[_0x5d102a(0x1d4)]='zero_value',_0x3594c8['CONNECT_WITH_LINE']=_0x5d102a(0xed),_0x3594c8;}({}),_0x4c53ee=function(_0x199f6d){const _0x274cda=_0x26e3f0;return _0x199f6d[_0x199f6d[_0x274cda(0x14b)]=0x1]='SELF_EXTREMUM',_0x199f6d[_0x199f6d[_0x274cda(0x106)]=0x2]=_0x274cda(0x106),_0x199f6d[_0x199f6d[_0x274cda(0xce)]=0x3]=_0x274cda(0xce),_0x199f6d;}({});function _0x130f0a(_0x51dca2){'@babel/helpers - typeof';const _0x571b6a=_0x26e3f0;return _0x130f0a=typeof Symbol==_0x571b6a(0x123)&&typeof Symbol[_0x571b6a(0x1bc)]==_0x571b6a(0x185)?function(_0x2f3d9a){return typeof _0x2f3d9a;}:function(_0x4508c7){const _0x2ed5e4=_0x571b6a;return _0x4508c7&&typeof Symbol==_0x2ed5e4(0x123)&&_0x4508c7['constructor']===Symbol&&_0x4508c7!==Symbol[_0x2ed5e4(0x14e)]?_0x2ed5e4(0x185):typeof _0x4508c7;},_0x130f0a(_0x51dca2);}function _0x196985(_0x3a6fbd,_0x2c406e){const _0x1538b1=_0x26e3f0;if(_0x130f0a(_0x3a6fbd)!=_0x1538b1(0x16f)||!_0x3a6fbd)return _0x3a6fbd;var _0x32124a=_0x3a6fbd[Symbol[_0x1538b1(0x195)]];if(_0x32124a!==void 0x0){var _0x17aee1=_0x32124a[_0x1538b1(0x1a1)](_0x3a6fbd,_0x2c406e||_0x1538b1(0x11a));if(_0x130f0a(_0x17aee1)!=_0x1538b1(0x16f))return _0x17aee1;throw TypeError(_0x1538b1(0x134));}return(_0x2c406e===_0x1538b1(0x1a5)?String:Number)(_0x3a6fbd);}function _0x1aa226(_0x28f8d4){const _0x204f8a=_0x26e3f0;var _0x4d7d0e=_0x196985(_0x28f8d4,'string');return _0x130f0a(_0x4d7d0e)==_0x204f8a(0x185)?_0x4d7d0e:_0x4d7d0e+'';}function _0x2148da(_0x4d3ac2,_0x41f897,_0x1a2f29){const _0x490f6c=_0x26e3f0;return(_0x41f897=_0x1aa226(_0x41f897))in _0x4d3ac2?Object[_0x490f6c(0x1a8)](_0x4d3ac2,_0x41f897,{'value':_0x1a2f29,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d3ac2[_0x41f897]=_0x1a2f29,_0x4d3ac2;}function _0x419523(_0x3dae0c,_0x3bb3bc){return function(_0x501986,_0x51ea92){_0x3bb3bc(_0x501986,_0x51ea92,_0x3dae0c);};}function _0x3bdd04(_0x24ab82,_0x47f3b7,_0x32f2fb,_0x2d5629){const _0x3e3d22=_0x26e3f0;var _0x3bba1b=arguments[_0x3e3d22(0xdd)],_0x4e0152=_0x3bba1b<0x3?_0x47f3b7:_0x2d5629===null?_0x2d5629=Object[_0x3e3d22(0x19e)](_0x47f3b7,_0x32f2fb):_0x2d5629,_0x401378;if(typeof Reflect==_0x3e3d22(0x16f)&&typeof Reflect[_0x3e3d22(0x182)]==_0x3e3d22(0x123))_0x4e0152=Reflect[_0x3e3d22(0x182)](_0x24ab82,_0x47f3b7,_0x32f2fb,_0x2d5629);else{for(var _0x4bc33b=_0x24ab82[_0x3e3d22(0xdd)]-0x1;_0x4bc33b>=0x0;_0x4bc33b--)(_0x401378=_0x24ab82[_0x4bc33b])&&(_0x4e0152=(_0x3bba1b<0x3?_0x401378(_0x4e0152):_0x3bba1b>0x3?_0x401378(_0x47f3b7,_0x32f2fb,_0x4e0152):_0x401378(_0x47f3b7,_0x32f2fb))||_0x4e0152);}return _0x3bba1b>0x3&&_0x4e0152&&Object[_0x3e3d22(0x1a8)](_0x47f3b7,_0x32f2fb,_0x4e0152),_0x4e0152;}let _0x4c05d7=class extends _0x4c1cc4[_0x26e3f0(0x152)]{constructor(_0x2d9957){const _0x1df299=_0x26e3f0;super(),this['_univerInstanceService']=_0x2d9957,_0x2148da(this,'_sparklineModel',new Map()),_0x2148da(this,_0x1df299(0x1b5),new Map()),_0x2148da(this,'_updateConfig$',new _0x28cc20[(_0x1df299(0x1ce))]()),_0x2148da(this,_0x1df299(0x184),this[_0x1df299(0x183)][_0x1df299(0x146)]());}[_0x26e3f0(0x16a)](_0x1617ea,_0x190879){const _0x33a9ab=_0x26e3f0;let _0x39eafa=this[_0x33a9ab(0x142)][_0x33a9ab(0x197)](_0x1617ea);_0x39eafa||(_0x39eafa=new Map(),this[_0x33a9ab(0x142)][_0x33a9ab(0xff)](_0x1617ea,_0x39eafa));let _0x30de8d=_0x39eafa[_0x33a9ab(0x197)](_0x190879);return _0x30de8d||(_0x30de8d=new Map(),_0x39eafa[_0x33a9ab(0xff)](_0x190879,_0x30de8d)),_0x30de8d;}[_0x26e3f0(0x1d2)](_0x379c20,_0xef7cae){const _0x5d8768=_0x26e3f0;let _0x4e991a=this[_0x5d8768(0x1b5)][_0x5d8768(0x197)](_0x379c20);_0x4e991a||(_0x4e991a=new Map(),this[_0x5d8768(0x1b5)][_0x5d8768(0xff)](_0x379c20,_0x4e991a));let _0x2f9a13=_0x4e991a[_0x5d8768(0x197)](_0xef7cae);return _0x2f9a13||(_0x2f9a13={'matrix':new _0x4c1cc4[(_0x5d8768(0xd2))](),'extra':{}},_0x4e991a[_0x5d8768(0xff)](_0xef7cae,_0x2f9a13)),_0x2f9a13;}[_0x26e3f0(0xde)](_0x2f9385,_0x3788ad,_0x233773,_0x140788=_0x26e3f0(0xff)){const _0x2f1383=_0x26e3f0;var _0x582ab1,_0x2cb3b2,_0x2f6a6f,_0x2612f3,_0x7b305,_0x25ee6e,_0x2ff8ea,_0x42df5f;let _0xa3318f=(_0x582ab1=this['_sparklineModel'][_0x2f1383(0x197)](_0x2f9385))==null||(_0x582ab1=_0x582ab1[_0x2f1383(0x197)](_0x3788ad))==null?void 0x0:_0x582ab1['get'](_0x233773);if(!_0xa3318f)return;let _0x333d28=(0x0,_0x52364e['getSheetCommandTarget'])(this['_univerInstanceService'],{'unitId':_0x2f9385,'subUnitId':_0x3788ad});if(!_0x333d28)return;let {extra:_0x36ff47,matrix:_0x4b3018}=this[_0x2f1383(0x1d2)](_0x2f9385,_0x3788ad),{worksheet:_0x29ab09}=_0x333d28,_0x21a799=-(0x2**0x35-0x1),_0x23a92a=0x2**0x35-0x1,_0x2cb789=(_0x2cb3b2=_0xa3318f[_0x2f1383(0x117)][_0x2f1383(0x13f)])==null?!0x1:_0x2cb3b2;_0xa3318f[_0x2f1383(0x12d)][_0x2f1383(0x1c7)]((_0x588461,_0x41598c,_0x484df9)=>{const _0x37ecf2=_0x2f1383;let _0xc688d1=_0x484df9,_0x257692=-(0x2**0x35-0x1),_0x50db17=0x2**0x35-0x1,_0x47c797=0x0,_0x5bf657=0x0,_0x3ac2b1=[];if(!(0x0,_0x4c1cc4['isValidRange'])(_0xc688d1))_0x4b3018['setValue'](_0x588461,_0x41598c,{'groupId':_0x233773,'data':[],'max':_0x257692,'min':_0x50db17,'highIndex':_0x47c797,'lowIndex':_0x5bf657,'negativeIndexes':_0x3ac2b1});else{let _0x3ec80f=[];for(let _0x553666=_0xc688d1['startRow'];_0x553666<=_0xc688d1[_0x37ecf2(0x157)];_0x553666++){for(let _0x4cc699=_0xc688d1['startColumn'];_0x4cc699<=_0xc688d1[_0x37ecf2(0xf0)];_0x4cc699++){var _0x194908;let _0x228f5b=_0x29ab09[_0x37ecf2(0x1b4)](_0x553666),_0x298446=_0x29ab09[_0x37ecf2(0x11b)](_0x4cc699);if(!_0x2cb789&&(!_0x228f5b||!_0x298446))continue;let _0x373e37=0x0,_0x386eba=((_0x194908=_0x29ab09[_0x37ecf2(0x1c6)](_0x553666,_0x4cc699))==null?void 0x0:_0x194908['v'])===void 0x0?_0x29ab09['getCell'](_0x553666,_0x4cc699):_0x29ab09['getCellRaw'](_0x553666,_0x4cc699);if(!_0x386eba||_0x386eba['v']===void 0x0||_0x386eba['v']===null){var _0x3c9d37;let _0x2e6ecc=(_0x3c9d37=_0xa3318f[_0x37ecf2(0x117)]['emptyShowAs'])==null?'spacing':_0x3c9d37;_0x2e6ecc===_0x37ecf2(0x155)?_0x373e37=0x0:_0x2e6ecc===_0x37ecf2(0xf3)?_0x373e37=_0x37ecf2(0x112):_0x2e6ecc==='connect_with_line'&&(_0x373e37=_0x37ecf2(0x16d));}else{if(_0x386eba['t']===_0x4c1cc4['CellValueType'][_0x37ecf2(0x1bb)]||_0x386eba['t']===_0x4c1cc4[_0x37ecf2(0x10a)]['FORCE_STRING']){var _0x560d29;let _0x15c7c0=(_0x560d29=_0xa3318f['config'][_0x37ecf2(0x12f)])==null?'spacing':_0x560d29;_0x15c7c0===_0x37ecf2(0x155)?_0x373e37=0x0:_0x15c7c0===_0x37ecf2(0xf3)?_0x373e37=_0x37ecf2(0x112):_0x15c7c0===_0x37ecf2(0xed)&&(_0x373e37=_0x37ecf2(0x16d));}else _0x373e37=_0x386eba['t']===_0x4c1cc4[_0x37ecf2(0x10a)][_0x37ecf2(0x18b)]?+!!_0x386eba['v']:_0x386eba['t']===_0x4c1cc4[_0x37ecf2(0x10a)][_0x37ecf2(0x17e)]?Number(_0x386eba['v']):_0x386eba['v'];}if(_0x3ec80f[_0x37ecf2(0x129)](_0x373e37),typeof _0x373e37==_0x37ecf2(0x1cb)){_0x257692=Math['max'](_0x257692,_0x373e37),_0x21a799=Math[_0x37ecf2(0xf2)](_0x21a799,_0x373e37),_0x23a92a=Math['min'](_0x23a92a,_0x373e37),_0x50db17=Math['min'](_0x50db17,_0x373e37);let _0x1ce8c3=typeof _0x3ec80f[_0x47c797]==_0x37ecf2(0x1cb)?Number(_0x3ec80f[_0x47c797]):-(0x2**0x35-0x1);_0x373e37>_0x1ce8c3&&(_0x47c797=_0x3ec80f[_0x37ecf2(0xdd)]-0x1);let _0x2db3e2=typeof _0x3ec80f[_0x5bf657]==_0x37ecf2(0x1cb)?Number(_0x3ec80f[_0x5bf657]):0x2**0x35-0x1;_0x373e37<_0x2db3e2&&(_0x5bf657=_0x3ec80f[_0x37ecf2(0xdd)]-0x1),_0x373e37<0x0&&_0x3ac2b1['push'](_0x3ec80f[_0x37ecf2(0xdd)]-0x1);}}_0x4b3018['setValue'](_0x588461,_0x41598c,{'groupId':_0x233773,'data':_0x3ec80f,'max':_0x257692,'min':_0x50db17,'highIndex':_0x47c797,'lowIndex':_0x5bf657,'negativeIndexes':_0x3ac2b1});}}});let _0x385146=_0x21a799;if(((_0x2f6a6f=_0xa3318f[_0x2f1383(0x117)][_0x2f1383(0x10f)])==null?void 0x0:_0x2f6a6f[_0x2f1383(0x13c)])===0x3){var _0xe392e1,_0x19a90f;_0x385146=(_0xe392e1=(_0x19a90f=_0xa3318f['config'][_0x2f1383(0x10f)])==null?void 0x0:_0x19a90f[_0x2f1383(0x171)])==null?_0x21a799:_0xe392e1;}let _0x1d7b83=_0x23a92a;if(((_0x2612f3=_0xa3318f[_0x2f1383(0x117)]['extremumMin'])==null?void 0x0:_0x2612f3['type'])===0x3){var _0x2f0ec2,_0x3611e1;_0x1d7b83=(_0x2f0ec2=(_0x3611e1=_0xa3318f[_0x2f1383(0x117)][_0x2f1383(0x192)])==null?void 0x0:_0x3611e1[_0x2f1383(0x171)])==null?_0x23a92a:_0x2f0ec2;}let _0x3e95b0=(_0x7b305=_0xa3318f[_0x2f1383(0x117)][_0x2f1383(0x113)])==null?_0x2f1383(0x1a6):_0x7b305,_0x25d52d=new _0x4c1cc4[(_0x2f1383(0x158))]((_0x25ee6e=(_0x2ff8ea=_0xa3318f[_0x2f1383(0x117)][_0x2f1383(0xef)])==null?(_0x42df5f=_0x1fdf70[_0x3e95b0])==null?void 0x0:_0x42df5f[0x0]:_0x2ff8ea)==null?_0x1fdf70[_0x2f1383(0x1a6)][0x0]:_0x25ee6e),_0x459fed=_0x25d52d['setAlpha'](0.2)[_0x2f1383(0x179)](),_0x4c6a17=_0x25d52d[_0x2f1383(0x11e)](0.05)[_0x2f1383(0x179)]();_0x36ff47[_0x233773]={'groupMax':_0x21a799,'groupMin':_0x23a92a,'showMax':_0x385146,'showMin':_0x1d7b83,'startGradient':_0x459fed,'endGradient':_0x4c6a17},this[_0x2f1383(0x183)][_0x2f1383(0x168)]({'unitId':_0x2f9385,'subUnitId':_0x3788ad,'groupId':_0x233773,'config':_0xa3318f,'type':_0x140788});}[_0x26e3f0(0x172)](_0x312b96,_0x46f59d,_0x148af2,_0x260f06){const _0x1178b3=_0x26e3f0;this['_ensureConfigMap'](_0x312b96,_0x46f59d)[_0x1178b3(0xff)](_0x148af2,_0x260f06),this[_0x1178b3(0xde)](_0x312b96,_0x46f59d,_0x148af2,_0x1178b3(0xd5));}['setSparkline'](_0x32f838,_0x286620,_0x569b4d,_0x404da4){const _0x500995=_0x26e3f0;var _0x4b35ae;let _0x14f61b=(_0x4b35ae=this[_0x500995(0x142)][_0x500995(0x197)](_0x32f838))==null?void 0x0:_0x4b35ae[_0x500995(0x197)](_0x286620);_0x569b4d[_0x500995(0x176)](_0x1f09a2=>{const _0x3d901d=_0x500995;_0x14f61b!=null&&_0x14f61b[_0x3d901d(0x1cd)](_0x1f09a2)&&(_0x14f61b['set'](_0x1f09a2,_0x404da4),this[_0x3d901d(0xde)](_0x32f838,_0x286620,_0x1f09a2));});}['removeSparkline'](_0x26eec1,_0x143f3e,_0x405e80){const _0xbdcb8d=_0x26e3f0;let _0x28a233=this['_sparklineModel'][_0xbdcb8d(0x197)](_0x26eec1);if(_0x28a233){let _0x434ae4=_0x28a233['get'](_0x143f3e);if(_0x434ae4){var _0x3f78c5,_0x230e02;_0x434ae4[_0xbdcb8d(0x167)](_0x405e80);let _0x1dd7d1=(_0x3f78c5=this[_0xbdcb8d(0x1b5)][_0xbdcb8d(0x197)](_0x26eec1))==null?void 0x0:_0x3f78c5[_0xbdcb8d(0x197)](_0x143f3e);_0x1dd7d1==null||(_0x230e02=_0x1dd7d1['matrix'])==null||_0x230e02[_0xbdcb8d(0x1c7)]((_0xe588e3,_0x2ac487,_0x12d348)=>{const _0xcbbddf=_0xbdcb8d;(_0x12d348==null?void 0x0:_0x12d348[_0xcbbddf(0xfe)])===_0x405e80&&(_0x1dd7d1==null||_0x1dd7d1[_0xcbbddf(0x122)]['realDeleteValue'](_0xe588e3,_0x2ac487));}),this[_0xbdcb8d(0x183)]['next']({'unitId':_0x26eec1,'subUnitId':_0x143f3e,'groupId':_0x405e80,'type':_0xbdcb8d(0x10e)}),_0x434ae4[_0xbdcb8d(0xe5)]===0x0&&_0x28a233[_0xbdcb8d(0x167)](_0x143f3e);}}}[_0x26e3f0(0xe9)](_0xc1a90,_0xcee778,_0x34705d,_0x1c0731){const _0x40874c=_0x26e3f0;var _0x423d4a;let _0x1172f5=(_0x423d4a=this['_sparklineAnchorMap'][_0x40874c(0x197)](_0xc1a90))==null?void 0x0:_0x423d4a[_0x40874c(0x197)](_0xcee778),_0x52cf19=_0x1172f5==null?void 0x0:_0x1172f5[_0x40874c(0x122)]['getValue'](_0x34705d,_0x1c0731);if(_0x52cf19){var _0x1b7495,_0x3c4059,_0x223491;let {groupId:_0x58e25d}=_0x52cf19,_0x3e93b2=(_0x1b7495=this[_0x40874c(0x142)]['get'](_0xc1a90))==null?void 0x0:_0x1b7495[_0x40874c(0x197)](_0xcee778);_0x3e93b2==null||(_0x3c4059=_0x3e93b2[_0x40874c(0x197)](_0x58e25d))==null||_0x3c4059['sparklines']['realDeleteValue'](_0x34705d,_0x1c0731),!(_0x3e93b2==null||(_0x223491=_0x3e93b2['get'](_0x58e25d))==null)&&_0x223491[_0x40874c(0x12d)][_0x40874c(0x191)]()||_0x3e93b2==null||_0x3e93b2[_0x40874c(0x167)](_0x58e25d),_0x1172f5==null||_0x1172f5['matrix']['realDeleteValue'](_0x34705d,_0x1c0731),this[_0x40874c(0x183)]['next']({'unitId':_0xc1a90,'subUnitId':_0xcee778,'groupId':_0x58e25d,'type':_0x40874c(0x10e)});}}[_0x26e3f0(0x1be)](_0x11c0fd,_0x21e62e,_0x34fbe0){const _0x2a9a49=_0x26e3f0;var _0x82489d,_0x3b7327;let _0x29aae0=(_0x82489d=this[_0x2a9a49(0x142)][_0x2a9a49(0x197)](_0x11c0fd))==null||(_0x82489d=_0x82489d[_0x2a9a49(0x197)](_0x21e62e))==null||(_0x82489d=_0x82489d[_0x2a9a49(0x197)](_0x34fbe0))==null?void 0x0:_0x82489d[_0x2a9a49(0x12d)],_0x15f0f4=(_0x3b7327=this[_0x2a9a49(0x1b5)][_0x2a9a49(0x197)](_0x11c0fd))==null?void 0x0:_0x3b7327[_0x2a9a49(0x197)](_0x21e62e);if(_0x29aae0&&_0x15f0f4){let {matrix:_0x195a2e,extra:_0x539a19}=_0x15f0f4;_0x29aae0[_0x2a9a49(0x1c7)]((_0x31a01a,_0x5a340d,_0x1039de)=>{const _0x469385=_0x2a9a49;_0x195a2e[_0x469385(0x145)](_0x31a01a,_0x5a340d);}),delete _0x539a19[_0x34fbe0];}}[_0x26e3f0(0x173)](_0xe46c99,_0x472c39){const _0x493c27=_0x26e3f0;var _0x21b8f0;return(_0x21b8f0=this[_0x493c27(0x142)][_0x493c27(0x197)](_0xe46c99))==null?void 0x0:_0x21b8f0[_0x493c27(0x197)](_0x472c39);}[_0x26e3f0(0x1b8)](_0x14ad2c,_0x288f1a,_0x31c19d){const _0x4b75dc=_0x26e3f0;var _0x2f9c7a;return(_0x2f9c7a=this[_0x4b75dc(0x142)][_0x4b75dc(0x197)](_0x14ad2c))==null||(_0x2f9c7a=_0x2f9c7a[_0x4b75dc(0x197)](_0x288f1a))==null?void 0x0:_0x2f9c7a[_0x4b75dc(0x197)](_0x31c19d);}[_0x26e3f0(0x119)](_0x13d2f4,_0x2269e1,_0x491760,_0x3b2bd3){const _0x18e697=_0x26e3f0;var _0x444028;return(_0x444028=this['_sparklineAnchorMap']['get'](_0x13d2f4))==null||(_0x444028=_0x444028[_0x18e697(0x197)](_0x2269e1))==null||(_0x444028=_0x444028['matrix'][_0x18e697(0x15e)](_0x491760,_0x3b2bd3))==null?void 0x0:_0x444028[_0x18e697(0xfe)];}[_0x26e3f0(0x16c)](_0x2973e9,_0x4824b8){const _0x465a7c=_0x26e3f0;var _0x754261;let _0x22798e=this[_0x465a7c(0x1d2)](_0x2973e9,_0x4824b8);_0x22798e[_0x465a7c(0x122)][_0x465a7c(0x1c7)]((_0x5650e9,_0xfe92b1)=>{const _0xbacd9b=_0x465a7c;_0x22798e[_0xbacd9b(0x122)][_0xbacd9b(0x145)](_0x5650e9,_0xfe92b1);});let _0x42f3d7=(_0x754261=this[_0x465a7c(0x142)][_0x465a7c(0x197)](_0x2973e9))==null?void 0x0:_0x754261[_0x465a7c(0x197)](_0x4824b8);if(_0x42f3d7){for(let [_0x3cf5ef]of _0x42f3d7)this[_0x465a7c(0xde)](_0x2973e9,_0x4824b8,_0x3cf5ef);}}[_0x26e3f0(0x136)](){const _0x3a2181=_0x26e3f0;return{'sparklineModel':this[_0x3a2181(0x142)],'sparklineAnchorMap':this[_0x3a2181(0x1b5)]};}['toJSON'](_0x139f26){const _0x163d49=_0x26e3f0;let _0x23bb29={};if(this[_0x163d49(0x142)][_0x163d49(0x1cd)](_0x139f26)){_0x23bb29[_0x139f26]={};let _0x1ebaac=this[_0x163d49(0x142)][_0x163d49(0x197)](_0x139f26);_0x1ebaac!=null&&_0x1ebaac['size']&&Array[_0x163d49(0x137)](_0x1ebaac[_0x163d49(0x139)]())[_0x163d49(0x176)](_0x7738ed=>{const _0x1f751c=_0x163d49;_0x23bb29[_0x139f26][_0x7738ed]={};let _0x32147f=_0x1ebaac[_0x1f751c(0x197)](_0x7738ed);_0x32147f!=null&&_0x32147f[_0x1f751c(0xe5)]&&Array['from'](_0x32147f[_0x1f751c(0x139)]())[_0x1f751c(0x176)](_0x5ba9e2=>{const _0x37a5ab=_0x1f751c;let _0x43e231=_0x32147f['get'](_0x5ba9e2);_0x43e231&&(_0x23bb29[_0x139f26][_0x7738ed][_0x5ba9e2]={'config':_0x43e231['config'],'sparklines':_0x43e231[_0x37a5ab(0x12d)]['getMatrix']()});});});}return _0x23bb29;}[_0x26e3f0(0xe6)](_0xa6b660){const _0x301ec3=_0x26e3f0;_0xa6b660&&Object[_0x301ec3(0x139)](_0xa6b660)[_0x301ec3(0x176)](_0x171115=>{const _0x1167b4=_0x301ec3;let _0x4b6869=_0xa6b660[_0x171115];_0x4b6869&&Object[_0x1167b4(0x139)](_0x4b6869)[_0x1167b4(0x176)](_0x30089b=>{const _0x10a342=_0x1167b4;let _0x3ae76f=_0x4b6869[_0x30089b];_0x3ae76f&&Object[_0x10a342(0x139)](_0x3ae76f)['forEach'](_0xdfc95a=>{const _0x27e4e4=_0x10a342;let _0x44859e=_0x3ae76f[_0xdfc95a];if(_0x44859e){let _0x57a472={'config':_0x44859e[_0x27e4e4(0x117)],'sparklines':new _0x4c1cc4['ObjectMatrix'](_0x44859e[_0x27e4e4(0x12d)])};this[_0x27e4e4(0x172)](_0x171115,_0x30089b,_0xdfc95a,_0x57a472);}});});});}[_0x26e3f0(0x132)](_0x381bb0){const _0xd8f9d0=_0x26e3f0;let _0x51fa89=this[_0xd8f9d0(0x142)][_0xd8f9d0(0x197)](_0x381bb0);if(_0x51fa89){for(let [_0x237bfc]of _0x51fa89){let _0x133be2=_0x51fa89['get'](_0x237bfc);if(_0x133be2){for(let [_0xb3abe6]of _0x133be2)this[_0xd8f9d0(0x1be)](_0x381bb0,_0x237bfc,_0xb3abe6);}}this['_sparklineModel'][_0xd8f9d0(0x167)](_0x381bb0);}}};_0x4c05d7=_0x3bdd04([_0x419523(0x0,(0x0,_0x4c1cc4['Inject'])(_0x4c1cc4['IUniverInstanceService']))],_0x4c05d7);let _0x4771b3={'id':_0x26e3f0(0x188),'type':_0x4c1cc4['CommandType']['MUTATION'],'handler':(_0x379053,_0xd5b898)=>{const _0x5a97d8=_0x26e3f0;if(!_0xd5b898)return!0x1;let {sparklineConfigMap:_0x55bff0,unitId:_0x1a77a5,subUnitId:_0x51fac4}=_0xd5b898,_0x3b64aa=_0x379053[_0x5a97d8(0x197)](_0x4c05d7);return Object['entries'](_0x55bff0)[_0x5a97d8(0x176)](([_0x33e0f9,_0x4b49e9])=>{const _0x2fb07b=_0x5a97d8;let _0x475b5d={'config':_0x4b49e9[_0x2fb07b(0x117)],'sparklines':new _0x4c1cc4['ObjectMatrix'](_0x4b49e9['sparklines'])};_0x3b64aa[_0x2fb07b(0x172)](_0x1a77a5,_0x51fac4,_0x33e0f9,_0x475b5d);}),!0x0;}},_0x49b999={'id':_0x26e3f0(0x1d0),'type':_0x4c1cc4[_0x26e3f0(0x124)][_0x26e3f0(0xd0)],'handler':(_0x31b62c,_0x75c05e)=>{const _0x26aab4=_0x26e3f0;if(!_0x75c05e)return!0x1;let {unitId:_0x19a754,subUnitId:_0x2bffc8,ranges:_0x387aea,isSingle:_0x5526fa,groupIds:_0x1b3b2b}=_0x75c05e,_0x1fa362=_0x31b62c[_0x26aab4(0x197)](_0x4c05d7);return _0x1b3b2b?(_0x1b3b2b[_0x26aab4(0x176)](_0x37d27a=>{const _0x2ea8e6=_0x26aab4;_0x1fa362[_0x2ea8e6(0x1ad)](_0x19a754,_0x2bffc8,_0x37d27a);}),!0x0):_0x387aea?(_0x387aea[_0x26aab4(0x176)](_0x310d1d=>{const _0x1b2776=_0x26aab4;_0x4c1cc4[_0x1b2776(0xd8)]['foreach'](_0x310d1d,(_0x32d217,_0x44754c)=>{const _0x1f925c=_0x1b2776;let _0x981f08=_0x1fa362[_0x1f925c(0x119)](_0x19a754,_0x2bffc8,_0x32d217,_0x44754c);_0x981f08&&(_0x5526fa?_0x1fa362[_0x1f925c(0xe9)](_0x19a754,_0x2bffc8,_0x32d217,_0x44754c):_0x1fa362[_0x1f925c(0x1ad)](_0x19a754,_0x2bffc8,_0x981f08));});}),!0x0):!0x1;}},_0x2e55d5={'id':_0x26e3f0(0x14d),'type':_0x4c1cc4[_0x26e3f0(0x124)][_0x26e3f0(0x162)],'handler':(_0x1b11ef,_0x6a1e99)=>{const _0x1cfcf6=_0x26e3f0;if(!_0x6a1e99)return!0x1;let {sourceRanges:_0x7ecf99,targetRanges:_0x515914,config:_0xd3a4e3}=_0x6a1e99,_0x25b55d=_0x1b11ef[_0x1cfcf6(0x197)](_0x4c1cc4[_0x1cfcf6(0xf8)]),_0x3d0621='g_'+(0x0,_0x4c1cc4['generateRandomId'])(0x6),_0x1c4796=_0x405e6b(_0x7ecf99,_0x515914),_0x1e4222={'config':_0xd3a4e3==null?{}:_0xd3a4e3,'sparklines':_0x1c4796[_0x1cfcf6(0xcf)]()},_0x3e3498=_0x1b11ef[_0x1cfcf6(0x197)](_0x4c1cc4[_0x1cfcf6(0x16e)]),_0x2468c0=_0x1b11ef[_0x1cfcf6(0x197)](_0x4c05d7),_0x280e94=(0x0,_0x52364e[_0x1cfcf6(0x150)])(_0x3e3498);if(!_0x280e94)return!0x1;let {unitId:_0x3cfb24,subUnitId:_0x2784a7}=_0x280e94,_0x2b0d64=_0x1b11ef[_0x1cfcf6(0x197)](_0x4c1cc4[_0x1cfcf6(0x1a2)]),_0x33da6b=[],_0x2803fa=[],_0x34a81e={},_0x2bd0a1={},_0x2e30df=new Set([_0x3d0621]);_0x1c4796[_0x1cfcf6(0x1c7)]((_0xaf0780,_0x220947,_0x136037)=>{const _0x535310=_0x1cfcf6;let _0x521046=_0x2468c0[_0x535310(0x119)](_0x3cfb24,_0x2784a7,_0xaf0780,_0x220947);if(_0x521046){let _0xf22e37=_0x2468c0[_0x535310(0x1b8)](_0x3cfb24,_0x2784a7,_0x521046);if(_0xf22e37){_0x2e30df[_0x535310(0xd5)](_0x521046);let _0x20bc22=_0x34a81e[_0x521046],_0x3b0de1=_0x2bd0a1[_0x521046];_0x3b0de1||(_0x3b0de1={'config':_0x4c1cc4['Tools'][_0x535310(0xd4)](_0xf22e37[_0x535310(0x117)]),'sparklines':new _0x4c1cc4['ObjectMatrix'](_0xf22e37['sparklines'][_0x535310(0x190)]())},_0x2bd0a1[_0x521046]=_0x3b0de1),_0x20bc22||(_0x20bc22={'config':_0x4c1cc4[_0x535310(0xeb)]['deepClone'](_0xf22e37[_0x535310(0x117)]),'sparklines':_0xf22e37[_0x535310(0x12d)][_0x535310(0x190)]()},_0x34a81e[_0x521046]=_0x20bc22),_0x3b0de1[_0x535310(0x12d)][_0x535310(0x145)](_0xaf0780,_0x220947);}}});let _0x3393a2={};return Object[_0x1cfcf6(0xfa)](_0x2bd0a1)[_0x1cfcf6(0x176)](([_0xc1d0a4,_0x4d4210])=>{const _0x1b57f6=_0x1cfcf6;_0x4d4210['sparklines'][_0x1b57f6(0xe2)]()&&(_0x3393a2[_0xc1d0a4]={'config':_0x4d4210[_0x1b57f6(0x117)],'sparklines':_0x4d4210[_0x1b57f6(0x12d)][_0x1b57f6(0x190)]()});}),_0x3393a2[_0x3d0621]=_0x1e4222,_0x33da6b['push']({'id':_0x49b999['id'],'params':{'unitId':_0x3cfb24,'subUnitId':_0x2784a7,'groupIds':Array['from'](_0x2e30df),'isSingle':!0x1}}),_0x2e30df[_0x1cfcf6(0xe5)]>0x1&&(_0x2803fa[_0x1cfcf6(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x3cfb24,'subUnitId':_0x2784a7,'groupIds':Array[_0x1cfcf6(0x137)](_0x2e30df),'isSingle':!0x1}}),_0x33da6b[_0x1cfcf6(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x3cfb24,'subUnitId':_0x2784a7,'sparklineConfigMap':_0x34a81e}})),_0x2803fa[_0x1cfcf6(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x3cfb24,'subUnitId':_0x2784a7,'sparklineConfigMap':_0x3393a2}}),(0x0,_0x4c1cc4[_0x1cfcf6(0x1ae)])(_0x2803fa,_0x2b0d64)['result']?(_0x25b55d['pushUndoRedo']({'unitID':_0x3cfb24,'undoMutations':_0x33da6b,'redoMutations':_0x2803fa}),!0x0):!0x1;}},_0x34f8fa={'id':'sheet.command.remove-sparkline','type':_0x4c1cc4['CommandType']['COMMAND'],'handler':(_0x2f12bb,_0x38a01e)=>{const _0x2315f9=_0x26e3f0;var _0x10d013;let {isSingle:_0x309a8=!0x0}=_0x38a01e||{},_0x331287=_0x2f12bb[_0x2315f9(0x197)](_0x4c1cc4[_0x2315f9(0x1a2)]),_0x54060b=_0x2f12bb[_0x2315f9(0x197)](_0x4c1cc4[_0x2315f9(0x16e)]),_0xccc81e=_0x2f12bb[_0x2315f9(0x197)](_0x4c05d7),_0x154a85=_0x2f12bb['get'](_0x4c1cc4[_0x2315f9(0xf8)]),_0x9b8205=(0x0,_0x52364e[_0x2315f9(0x150)])(_0x54060b);if(!_0x9b8205)return!0x1;let _0x115215=_0x2f12bb[_0x2315f9(0x197)](_0x52364e[_0x2315f9(0x1aa)]),_0x20c635=(_0x10d013=_0x38a01e==null?void 0x0:_0x38a01e[_0x2315f9(0xf5)])==null?_0x115215[_0x2315f9(0x175)]()[_0x2315f9(0x100)](_0x2610d5=>_0x2610d5[_0x2315f9(0x1a0)]):_0x10d013,{unitId:_0x1d4c0b,subUnitId:_0x24e3bb}=_0x9b8205,_0xe72c4b=[],_0x4559e3=[];_0xe72c4b[_0x2315f9(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x1d4c0b,'subUnitId':_0x24e3bb,'ranges':_0x20c635,'isSingle':_0x309a8}});let _0x41c890=[],_0x4af328={};return _0x20c635[_0x2315f9(0x176)](_0x21af9e=>{const _0x179a70=_0x2315f9;_0x4c1cc4[_0x179a70(0xd8)][_0x179a70(0x186)](_0x21af9e,(_0x2c4319,_0x4f0d0a)=>{const _0x2cf9ba=_0x179a70;let _0x4af12d=_0xccc81e[_0x2cf9ba(0x119)](_0x1d4c0b,_0x24e3bb,_0x2c4319,_0x4f0d0a);if(_0x4af12d){let _0x52233d=_0xccc81e['getSparklineById'](_0x1d4c0b,_0x24e3bb,_0x4af12d);_0x52233d&&(_0x41c890[_0x2cf9ba(0x129)](_0x4af12d),_0x4af328[_0x4af12d]={'config':_0x4c1cc4[_0x2cf9ba(0xeb)][_0x2cf9ba(0xd4)](_0x52233d['config']),'sparklines':_0x4c1cc4[_0x2cf9ba(0xeb)][_0x2cf9ba(0xd4)](_0x52233d[_0x2cf9ba(0x12d)][_0x2cf9ba(0x190)]())});}});}),_0x4559e3[_0x2315f9(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x1d4c0b,'subUnitId':_0x24e3bb,'groupIds':_0x41c890,'isSingle':!0x1}}),_0x4559e3[_0x2315f9(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x1d4c0b,'subUnitId':_0x24e3bb,'sparklineConfigMap':_0x4af328}}),(0x0,_0x4c1cc4[_0x2315f9(0x1ae)])(_0xe72c4b,_0x331287)[_0x2315f9(0x156)]?(_0x154a85['pushUndoRedo']({'unitID':_0x1d4c0b,'undoMutations':_0x4559e3,'redoMutations':_0xe72c4b}),!0x0):!0x1;}},_0x4ebd1b={'id':'sheet.mutation.set-sparkline','type':_0x4c1cc4['CommandType'][_0x26e3f0(0xd0)],'handler':(_0x222d58,_0xe81cd9)=>{const _0x5f16f3=_0x26e3f0;if(!_0xe81cd9)return!0x1;let {unitId:_0x2dc80e,subUnitId:_0x336bf6,groupIds:_0x126b32,config:_0x3c04cf}=_0xe81cd9,_0x53a98b=_0x222d58['get'](_0x4c05d7);return _0x126b32[_0x5f16f3(0x176)](_0x111e34=>{const _0x29ca60=_0x5f16f3;let _0xed754b=_0x53a98b[_0x29ca60(0x1b8)](_0x2dc80e,_0x336bf6,_0x111e34);if(_0xed754b){let _0x5694de={'config':Object[_0x29ca60(0x1bf)]({},_0xed754b[_0x29ca60(0x117)],_0x3c04cf['config']),'sparklines':new _0x4c1cc4[(_0x29ca60(0xd2))](_0xed754b[_0x29ca60(0x12d)][_0x29ca60(0x190)]())};_0x53a98b['setSparkline'](_0x2dc80e,_0x336bf6,[_0x111e34],_0x5694de);}}),!0x0;}},_0x184372={'id':'sheet.command.set-sparkline','type':_0x4c1cc4[_0x26e3f0(0x124)][_0x26e3f0(0x162)],'handler':(_0x4ed508,_0x34f9df)=>{const _0x2e12bf=_0x26e3f0;var _0x1a71b2,_0x39746b;if(!_0x34f9df)return!0x1;let _0x51b827=_0x4ed508[_0x2e12bf(0x197)](_0x4c1cc4[_0x2e12bf(0x1a2)]),_0x1ade4e=_0x4ed508['get'](_0x52364e[_0x2e12bf(0x1aa)]),_0x280af1=_0x4ed508[_0x2e12bf(0x197)](_0x4c05d7),_0x59c15f=_0x4ed508['get'](_0x4c1cc4[_0x2e12bf(0x16e)]),_0x4c621a=_0x4ed508[_0x2e12bf(0x197)](_0x4c1cc4[_0x2e12bf(0xf8)]),_0x4f05af=(0x0,_0x52364e[_0x2e12bf(0x150)])(_0x59c15f);if(!_0x4f05af)return!0x1;let {unitId:_0x571e33,subUnitId:_0x31b9a8}=_0x4f05af,_0x27c677=(_0x1a71b2=_0x34f9df==null?void 0x0:_0x34f9df['ranges'])==null?_0x1ade4e[_0x2e12bf(0x175)]()[_0x2e12bf(0x100)](_0x508077=>_0x508077[_0x2e12bf(0x1a0)]):_0x1a71b2,_0x24b1b9=(_0x39746b=_0x280af1[_0x2e12bf(0x136)]()[_0x2e12bf(0x141)][_0x2e12bf(0x197)](_0x571e33))==null?void 0x0:_0x39746b['get'](_0x31b9a8),{isChangeDataSource:_0x173077,config:_0x4140de,combine:_0x46be90,unCombine:_0x10b1e1}=_0x34f9df;if(_0x46be90){var _0x3878da;let _0x20df29=[],_0x4327fc=[];_0x20df29[_0x2e12bf(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'ranges':_0x27c677,'isSingle':!0x0}});let _0x2a5832='g_'+(0x0,_0x4c1cc4['generateRandomId'])(0x6),_0x24ae42=new _0x4c1cc4[(_0x2e12bf(0xd2))](),_0x4ae9b6=(_0x3878da=_0x280af1[_0x2e12bf(0x136)]()[_0x2e12bf(0x169)]['get'](_0x571e33))==null?void 0x0:_0x3878da[_0x2e12bf(0x197)](_0x31b9a8),_0x318d2e=new Set([_0x2a5832]),_0x4ca223={};return _0x27c677[_0x2e12bf(0x176)](_0x11579e=>{const _0x1932c0=_0x2e12bf;let {startRow:_0x39bb9a,endRow:_0x2e76fa,startColumn:_0x4e02db,endColumn:_0x263de5}=_0x11579e;for(let _0x244447=_0x39bb9a;_0x244447<=_0x2e76fa;_0x244447++)for(let _0x394c30=_0x4e02db;_0x394c30<=_0x263de5;_0x394c30++){var _0x45c51d;let _0x4db090=_0x24b1b9==null||(_0x45c51d=_0x24b1b9[_0x1932c0(0x122)][_0x1932c0(0x15e)](_0x244447,_0x394c30))==null?void 0x0:_0x45c51d[_0x1932c0(0xfe)];if(_0x4db090){var _0x1433b2;_0x318d2e[_0x1932c0(0xd5)](_0x4db090);let _0x5356fd=_0x280af1[_0x1932c0(0x1b8)](_0x571e33,_0x31b9a8,_0x4db090);_0x5356fd&&(_0x4ca223[_0x4db090]={'config':_0x4c1cc4[_0x1932c0(0xeb)][_0x1932c0(0xd4)](_0x5356fd[_0x1932c0(0x117)]),'sparklines':_0x4c1cc4['Tools'][_0x1932c0(0xd4)](_0x5356fd['sparklines'][_0x1932c0(0x190)]())});let _0x4c7385=_0x4ae9b6==null||(_0x1433b2=_0x4ae9b6[_0x1932c0(0x197)](_0x4db090))==null?void 0x0:_0x1433b2['sparklines'][_0x1932c0(0x15e)](_0x244447,_0x394c30);_0x4c7385&&_0x24ae42[_0x1932c0(0xf6)](_0x244447,_0x394c30,_0x4c7385);}}}),_0x20df29[_0x2e12bf(0x129)]({'id':_0x4771b3['id'],'params':{'sparklineConfigMap':{[_0x2a5832]:{'config':_0x4c1cc4[_0x2e12bf(0xeb)][_0x2e12bf(0xd4)](_0x4140de[_0x2e12bf(0x117)]),'sparklines':_0x24ae42['getMatrix']()}},'unitId':_0x571e33,'subUnitId':_0x31b9a8}}),_0x4327fc[_0x2e12bf(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'isSingle':!0x1,'groupIds':Array[_0x2e12bf(0x137)](_0x318d2e)}}),_0x4327fc[_0x2e12bf(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'sparklineConfigMap':_0x4ca223}}),(0x0,_0x4c1cc4[_0x2e12bf(0x1ae)])(_0x20df29,_0x51b827)[_0x2e12bf(0x156)]?(_0x4c621a['pushUndoRedo']({'unitID':_0x571e33,'undoMutations':_0x4327fc,'redoMutations':_0x20df29}),!0x0):!0x1;}else{if(_0x10b1e1){var _0x1d2498;let _0x49e454=[],_0x2ea813=[];_0x49e454['push']({'id':_0x49b999['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'ranges':_0x27c677,'isSingle':!0x0}});let _0x2e8326=(_0x1d2498=_0x280af1['getSparklineCache']()[_0x2e12bf(0x169)][_0x2e12bf(0x197)](_0x571e33))==null?void 0x0:_0x1d2498[_0x2e12bf(0x197)](_0x31b9a8),_0x45e139={},_0x41f35a=new Set(),_0x1df2ec={};return _0x27c677[_0x2e12bf(0x176)](_0xac9fd2=>{const _0xac8c9e=_0x2e12bf;let {startRow:_0x8d18e1,endRow:_0x59fa03,startColumn:_0x5a5748,endColumn:_0x2047ad}=_0xac9fd2;for(let _0x371408=_0x8d18e1;_0x371408<=_0x59fa03;_0x371408++)for(let _0x480f2e=_0x5a5748;_0x480f2e<=_0x2047ad;_0x480f2e++){var _0x16a97c;let _0x2f9772=_0x24b1b9==null||(_0x16a97c=_0x24b1b9[_0xac8c9e(0x122)]['getValue'](_0x371408,_0x480f2e))==null?void 0x0:_0x16a97c[_0xac8c9e(0xfe)];if(_0x2f9772){var _0x44be13;let _0x2debad=new _0x4c1cc4[(_0xac8c9e(0xd2))](),_0x35b5e9='g_'+(0x0,_0x4c1cc4['generateRandomId'])(0x6);_0x41f35a['add'](_0x2f9772),_0x41f35a[_0xac8c9e(0xd5)](_0x35b5e9);let _0x3e02ee=_0x280af1[_0xac8c9e(0x1b8)](_0x571e33,_0x31b9a8,_0x2f9772);_0x3e02ee&&(_0x1df2ec[_0x2f9772]={'config':_0x4c1cc4[_0xac8c9e(0xeb)]['deepClone'](_0x3e02ee['config']),'sparklines':_0x4c1cc4[_0xac8c9e(0xeb)]['deepClone'](_0x3e02ee[_0xac8c9e(0x12d)][_0xac8c9e(0x190)]())});let _0x5dadaa=_0x2e8326==null||(_0x44be13=_0x2e8326[_0xac8c9e(0x197)](_0x2f9772))==null?void 0x0:_0x44be13['sparklines'][_0xac8c9e(0x15e)](_0x371408,_0x480f2e);_0x5dadaa&&_0x2debad[_0xac8c9e(0xf6)](_0x371408,_0x480f2e,_0x5dadaa),_0x45e139[_0x35b5e9]={'sparklines':_0x2debad[_0xac8c9e(0xcf)](),'config':_0x4c1cc4[_0xac8c9e(0xeb)]['deepClone'](_0x4140de['config'])};}}}),_0x49e454['push']({'id':_0x4771b3['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'sparklineConfigMap':_0x45e139}}),_0x2ea813[_0x2e12bf(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'isSingle':!0x1,'groupIds':Array['from'](_0x41f35a)}}),_0x2ea813[_0x2e12bf(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'sparklineConfigMap':_0x1df2ec}}),(0x0,_0x4c1cc4[_0x2e12bf(0x1ae)])(_0x49e454,_0x51b827)[_0x2e12bf(0x156)]?(_0x4c621a['pushUndoRedo']({'unitID':_0x571e33,'undoMutations':_0x2ea813,'redoMutations':_0x49e454}),!0x0):!0x1;}}if(_0x173077){let _0x58d517=_0x34f9df['changeDataSourceInfo'];if(!_0x58d517)return!0x1;let {groupId:_0x296776,sourceRanges:_0x1766ac,targetRanges:_0x39b4ba,resetType:_0x3bf7b2,primary:_0x4d0e1f}=_0x58d517,_0x3cb35c=[],_0x579f34=[];_0x3cb35c[_0x2e12bf(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'ranges':_0x27c677,'isSingle':!0x1,'groupIds':[_0x296776]}}),_0x579f34[_0x2e12bf(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'ranges':_0x27c677,'isSingle':!0x1,'groupIds':[_0x296776]}});let _0x363567;_0x3bf7b2==='item'?(_0x363567=new _0x4c1cc4[(_0x2e12bf(0xd2))](_0x4140de[_0x2e12bf(0x12d)][_0x2e12bf(0x190)]()),_0x363567[_0x2e12bf(0x145)](_0x4d0e1f[_0x2e12bf(0x187)],_0x4d0e1f['actualColumn']),_0x363567['setValue'](_0x39b4ba[0x0][_0x2e12bf(0x1a3)],_0x39b4ba[0x0]['startColumn'],_0x1766ac[0x0])):_0x363567=_0x405e6b(_0x1766ac,_0x39b4ba);let _0x1b2589={'config':_0x4c1cc4[_0x2e12bf(0xeb)][_0x2e12bf(0xd4)](_0x4140de[_0x2e12bf(0x117)]),'sparklines':_0x363567[_0x2e12bf(0xcf)]()},_0x402629={'config':_0x4c1cc4['Tools'][_0x2e12bf(0xd4)](_0x4140de[_0x2e12bf(0x117)]),'sparklines':_0x4c1cc4[_0x2e12bf(0xeb)][_0x2e12bf(0xd4)](_0x4140de['sparklines'][_0x2e12bf(0x190)]())};return _0x3cb35c['push']({'id':_0x4771b3['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'sparklineConfigMap':{[_0x296776]:_0x1b2589}}}),_0x579f34['push']({'id':_0x4771b3['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'sparklineConfigMap':{[_0x296776]:_0x402629}}}),(0x0,_0x4c1cc4['sequenceExecute'])(_0x3cb35c,_0x51b827)[_0x2e12bf(0x156)]?(_0x4c621a[_0x2e12bf(0x15b)]({'unitID':_0x571e33,'undoMutations':_0x579f34,'redoMutations':_0x3cb35c}),!0x0):!0x1;}else{let _0x38e1b5=[],_0x51a9cb=[],_0x50c5d2=new Set(),_0x15abec={};return _0x27c677[_0x2e12bf(0x176)](_0x2e95e1=>{const _0x16f47e=_0x2e12bf;let {startRow:_0x3952eb,endRow:_0x3be9f6,startColumn:_0x6dc7b8,endColumn:_0x32ca6c}=_0x2e95e1;for(let _0x1bb7d2=_0x3952eb;_0x1bb7d2<=_0x3be9f6;_0x1bb7d2++)for(let _0x1ae08a=_0x6dc7b8;_0x1ae08a<=_0x32ca6c;_0x1ae08a++){var _0x3e1651;let _0x3c5a91=_0x24b1b9==null||(_0x3e1651=_0x24b1b9[_0x16f47e(0x122)][_0x16f47e(0x15e)](_0x1bb7d2,_0x1ae08a))==null?void 0x0:_0x3e1651[_0x16f47e(0xfe)];if(_0x3c5a91){_0x50c5d2[_0x16f47e(0xd5)](_0x3c5a91);let _0x4d8cb2=_0x280af1[_0x16f47e(0x1b8)](_0x571e33,_0x31b9a8,_0x3c5a91);_0x4d8cb2&&(_0x15abec[_0x3c5a91]={'config':_0x4c1cc4[_0x16f47e(0xeb)][_0x16f47e(0xd4)](_0x4d8cb2[_0x16f47e(0x117)]),'sparklines':_0x4c1cc4[_0x16f47e(0xeb)][_0x16f47e(0xd4)](_0x4d8cb2[_0x16f47e(0x12d)][_0x16f47e(0x190)]())});}}}),_0x51a9cb[_0x2e12bf(0x129)]({'id':_0x4ebd1b['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'groupIds':Array[_0x2e12bf(0x137)](_0x50c5d2),'config':{'config':_0x4c1cc4[_0x2e12bf(0xeb)]['deepClone'](_0x4140de[_0x2e12bf(0x117)]),'sparklines':_0x4140de['sparklines']['getMatrix']()}}}),_0x38e1b5[_0x2e12bf(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'isSingle':!0x1,'groupIds':Array[_0x2e12bf(0x137)](_0x50c5d2)}}),_0x38e1b5['push']({'id':_0x4771b3['id'],'params':{'unitId':_0x571e33,'subUnitId':_0x31b9a8,'sparklineConfigMap':_0x15abec}}),(0x0,_0x4c1cc4['sequenceExecute'])(_0x51a9cb,_0x51b827)[_0x2e12bf(0x156)]?(_0x4c621a[_0x2e12bf(0x15b)]({'unitID':_0x571e33,'undoMutations':_0x38e1b5,'redoMutations':_0x51a9cb}),!0x0):!0x1;}}};var _0x3cd833=_0x26e3f0(0x177),_0x48258b=_0x26e3f0(0xfc);let _0x14fab7=class extends _0x4c1cc4['Disposable']{constructor(_0x237658,_0x4830f2,_0x441f80,_0x2ae2bf){const _0x282743=_0x26e3f0;super(),this[_0x282743(0x180)]=_0x237658,this[_0x282743(0x110)]=_0x4830f2,this[_0x282743(0xd6)]=_0x441f80,this[_0x282743(0x1d6)]=_0x2ae2bf,this['_initClearWithSparkline']();}[_0x26e3f0(0x14f)](){const _0x385ff7=_0x26e3f0;this[_0x385ff7(0x118)](this[_0x385ff7(0x110)][_0x385ff7(0xd9)]({'getMutations':_0x20f129=>{const _0x1f7890=_0x385ff7;let _0x5dda36=[],_0x4956a3=[];if(_0x20f129['id']===_0x52364e[_0x1f7890(0x1af)]['id']){let _0x4dd1af=(0x0,_0x52364e[_0x1f7890(0x150)])(this[_0x1f7890(0xd6)],_0x20f129['params']);if(!_0x4dd1af)return{'redos':_0x5dda36,'undos':_0x4956a3};let {unitId:_0x244c0b,subUnitId:_0x52a2ed}=_0x4dd1af,_0x2ac876=this[_0x1f7890(0x1d6)][_0x1f7890(0x175)]()[_0x1f7890(0x100)](_0x34d4d4=>_0x34d4d4[_0x1f7890(0x1a0)]),_0x308794=new Set(),_0x151aad={},_0x2a1ff3={};_0x2ac876[_0x1f7890(0x176)](_0x415f36=>{const _0x7bc1b2=_0x1f7890;_0x4c1cc4[_0x7bc1b2(0xd8)][_0x7bc1b2(0x186)](_0x415f36,(_0x3bb8e8,_0x5041af)=>{const _0xe4a191=_0x7bc1b2;let _0x53cfe4=this[_0xe4a191(0x180)][_0xe4a191(0x119)](_0x244c0b,_0x52a2ed,_0x3bb8e8,_0x5041af);if(_0x53cfe4&&!_0x308794[_0xe4a191(0x1cd)](_0x53cfe4)){let _0x254611=this['_sparklineDataSourceModel']['getSparklineById'](_0x244c0b,_0x52a2ed,_0x53cfe4);_0x254611&&(_0x308794[_0xe4a191(0xd5)](_0x53cfe4),_0x151aad[_0x53cfe4]={'config':_0x4c1cc4[_0xe4a191(0xeb)][_0xe4a191(0xd4)](_0x254611[_0xe4a191(0x117)]),'sparklines':_0x4c1cc4[_0xe4a191(0xeb)]['deepClone'](_0x254611[_0xe4a191(0x12d)][_0xe4a191(0x190)]())},_0x2a1ff3[_0x53cfe4]={'config':_0x4c1cc4[_0xe4a191(0xeb)]['deepClone'](_0x254611[_0xe4a191(0x117)]),'sparklines':_0x4c1cc4[_0xe4a191(0xeb)][_0xe4a191(0xd4)](_0x254611[_0xe4a191(0x12d)][_0xe4a191(0x190)]())});}});}),Object[_0x1f7890(0x1cc)](_0x2a1ff3)[_0x1f7890(0x176)](_0x2ea182=>{const _0x393826=_0x1f7890;let _0x34e7b7=_0x2ea182[_0x393826(0x12d)];new _0x4c1cc4[(_0x393826(0xd2))](_0x34e7b7)['forValue']((_0x34e90b,_0x416baa,_0x25584d)=>{const _0x54aceb=_0x393826;_0x2ac876[_0x54aceb(0x12a)](_0x5328df=>_0x4c1cc4[_0x54aceb(0x140)][_0x54aceb(0xd7)](_0x5328df,(0x0,_0x4c1cc4[_0x54aceb(0x11c)])(_0x34e90b,_0x416baa)))&&delete _0x34e7b7[_0x34e90b][_0x416baa];});}),_0x308794[_0x1f7890(0xe5)]>0x0&&(_0x5dda36[_0x1f7890(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x244c0b,'subUnitId':_0x52a2ed,'groupIds':Array[_0x1f7890(0x137)](_0x308794),'isSingle':!0x1}}),_0x4956a3[_0x1f7890(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x244c0b,'subUnitId':_0x52a2ed,'groupIds':Array[_0x1f7890(0x137)](_0x308794),'isSingle':!0x1}})),Object[_0x1f7890(0x139)](_0x2a1ff3)['length']>0x0&&_0x5dda36[_0x1f7890(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x244c0b,'subUnitId':_0x52a2ed,'sparklineConfigMap':_0x2a1ff3}}),Object[_0x1f7890(0x139)](_0x151aad)[_0x1f7890(0xdd)]>0x0&&_0x4956a3[_0x1f7890(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x244c0b,'subUnitId':_0x52a2ed,'sparklineConfigMap':_0x151aad}});}return{'redos':_0x5dda36,'undos':_0x4956a3};}}));}};_0x14fab7=_0x3bdd04([_0x419523(0x0,(0x0,_0x4c1cc4['Inject'])(_0x4c05d7)),_0x419523(0x1,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x52364e[_0x26e3f0(0xf1)])),_0x419523(0x2,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c1cc4['IUniverInstanceService'])),_0x419523(0x3,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x52364e[_0x26e3f0(0x1aa)]))],_0x14fab7);let _0x104b2d=class extends _0x4c1cc4[_0x26e3f0(0x152)]{constructor(_0x590260,_0x56ba18,_0x27c1c7){const _0x3a9f72=_0x26e3f0;super(),this[_0x3a9f72(0x19c)]=_0x590260,this[_0x3a9f72(0x180)]=_0x56ba18,this[_0x3a9f72(0x13d)]=_0x27c1c7,this[_0x3a9f72(0x12c)](),this[_0x3a9f72(0x1b0)]();}['_initDataChangeListener'](){const _0x495d71=_0x26e3f0;this[_0x495d71(0x118)](this['_commandService'][_0x495d71(0xf7)](_0x246fe1=>{const _0x37f399=_0x495d71;if(_0x246fe1['id']===_0x52364e[_0x37f399(0x15c)]['id']){let {cellValue:_0x152c4d,unitId:_0x22dbf0,subUnitId:_0x23b51f}=_0x246fe1[_0x37f399(0x1d8)],_0x2b998f=new _0x4c1cc4['ObjectMatrix'](_0x152c4d),_0x52b300=new Set(),_0x56f1fd=this['_sparklineDataSourceModel'][_0x37f399(0x173)](_0x22dbf0,_0x23b51f);if(!_0x56f1fd)return;let _0x3ee6cb=Array['from'](_0x56f1fd);_0x2b998f['forValue']((_0x3ce2b5,_0x2c962b,_0x35659c)=>{const _0x553f00=_0x37f399;let _0x3dc32c=(0x0,_0x4c1cc4[_0x553f00(0x11c)])(_0x3ce2b5,_0x2c962b);for(let _0x305240=0x0;_0x305240<_0x3ee6cb['length'];_0x305240++){let [_0x41ddde,_0x47913f]=_0x3ee6cb[_0x305240],_0x2a75cd=_0x52b300['has'](_0x41ddde);_0x2a75cd||_0x47913f[_0x553f00(0x12d)]['forValue']((_0x5890c3,_0x4dcab2,_0x5475c6)=>{const _0x204d0e=_0x553f00;let _0x3fafc5=_0x5475c6;if(_0x3fafc5&&!_0x2a75cd&&_0x4c1cc4[_0x204d0e(0x140)]['intersects'](_0x3dc32c,_0x3fafc5))return _0x52b300[_0x204d0e(0xd5)](_0x41ddde),!0x0;});}}),_0x52b300[_0x37f399(0x176)](_0x11738a=>{const _0x57cf21=_0x37f399;this[_0x57cf21(0x180)][_0x57cf21(0x1be)](_0x22dbf0,_0x23b51f,_0x11738a),this[_0x57cf21(0x180)][_0x57cf21(0xde)](_0x22dbf0,_0x23b51f,_0x11738a);});}else{if(_0x246fe1['id']===_0x52364e[_0x37f399(0xe4)]['id']){let {range:_0x1c8642,unitId:_0x544c5c,subUnitId:_0x3c496c}=_0x246fe1['params'],_0x74061c=new Set(),_0x4546e8=this[_0x37f399(0x180)][_0x37f399(0x173)](_0x544c5c,_0x3c496c);if(!_0x4546e8)return;let _0xb5cb0e=Array[_0x37f399(0x137)](_0x4546e8);for(let _0x469ecb=0x0;_0x469ecb<_0xb5cb0e[_0x37f399(0xdd)];_0x469ecb++){let [_0x1ede8a,_0x202bc6]=_0xb5cb0e[_0x469ecb],_0x31c0e0=_0x74061c['has'](_0x1ede8a);_0x31c0e0||_0x202bc6[_0x37f399(0x12d)]['forValue']((_0x2025e9,_0xf2ff89,_0x32d24e)=>{const _0x5cbc7d=_0x37f399;let _0x1aa253=_0x32d24e;if(_0x1aa253&&!_0x31c0e0&&_0x4c1cc4['Rectangle'][_0x5cbc7d(0xd7)](_0x1c8642,_0x1aa253))return _0x74061c[_0x5cbc7d(0xd5)](_0x1ede8a),!0x0;});}_0x74061c[_0x37f399(0x176)](_0x5e8bc4=>{const _0x30b9cb=_0x37f399;this[_0x30b9cb(0x180)][_0x30b9cb(0x1be)](_0x544c5c,_0x3c496c,_0x5e8bc4),this['_sparklineDataSourceModel'][_0x30b9cb(0xde)](_0x544c5c,_0x3c496c,_0x5e8bc4);});}}}));}['_initExclusiveRangeChange'](){const _0x4372ac=_0x26e3f0;this['disposeWithMe'](this[_0x4372ac(0x13d)][_0x4372ac(0xec)][_0x4372ac(0x10c)](_0x16b8ff=>{const _0x2dcb55=_0x4372ac;let {unitId:_0x2a3ae6,subUnitId:_0x21d318,ranges:_0x4957d3}=_0x16b8ff,_0x16b723=this[_0x2dcb55(0x180)][_0x2dcb55(0x173)](_0x2a3ae6,_0x21d318);if(!_0x16b723)return;let _0x5544a5=Array[_0x2dcb55(0x137)](_0x16b723),_0x497fda=new Set();for(let _0x3b9004=0x0;_0x3b9004<_0x5544a5[_0x2dcb55(0xdd)];_0x3b9004++){let [_0x57ae10,_0x97acda]=_0x5544a5[_0x3b9004],_0x33a980=_0x497fda[_0x2dcb55(0x1cd)](_0x57ae10);_0x33a980||_0x97acda[_0x2dcb55(0x12d)]['forValue']((_0x49f1cc,_0x11cad6,_0x500b67)=>{const _0x3b6d5e=_0x2dcb55;let _0x4802f1=_0x500b67;if(_0x4802f1&&!_0x33a980){for(let _0xb85659 of _0x4957d3)if(_0x4c1cc4['Rectangle'][_0x3b6d5e(0xd7)](_0xb85659,_0x4802f1)){_0x497fda[_0x3b6d5e(0xd5)](_0x57ae10);break;}}});}_0x497fda[_0x2dcb55(0x176)](_0x4d4bf8=>{const _0x1ed20e=_0x2dcb55;this['_sparklineDataSourceModel'][_0x1ed20e(0x1be)](_0x2a3ae6,_0x21d318,_0x4d4bf8),this[_0x1ed20e(0x180)][_0x1ed20e(0xde)](_0x2a3ae6,_0x21d318,_0x4d4bf8);});}));}};_0x104b2d=_0x3bdd04([_0x419523(0x0,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c1cc4[_0x26e3f0(0x1a2)])),_0x419523(0x1,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c05d7)),_0x419523(0x2,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x52364e[_0x26e3f0(0x17b)]))],_0x104b2d);let _0x46220e=class extends _0x4c1cc4['Disposable']{constructor(_0x4365df,_0x1932e3){const _0x2e70cb=_0x26e3f0;super(),this[_0x2e70cb(0x19c)]=_0x4365df,this[_0x2e70cb(0x180)]=_0x1932e3,this[_0x2e70cb(0x135)]();}[_0x26e3f0(0x135)](){const _0x336a0f=_0x26e3f0;this[_0x336a0f(0x19c)][_0x336a0f(0xf7)](_0x30fdc4=>{const _0x4056af=_0x336a0f;if(_0x30fdc4['id']===_0x52364e[_0x4056af(0x1a4)]['id']||_0x30fdc4['id']===_0x52364e[_0x4056af(0x1c9)]['id']||_0x30fdc4['id']===_0x52364e[_0x4056af(0x1c3)]['id']||_0x30fdc4['id']===_0x52364e[_0x4056af(0x13b)]['id']){let {ranges:_0xc6a74f,unitId:_0x5967de,subUnitId:_0x544404}=_0x30fdc4[_0x4056af(0x1d8)],_0x41aa46=new Set(),_0x56ec70=this['_sparklineDataSourceModel'][_0x4056af(0x173)](_0x5967de,_0x544404);if(!_0x56ec70)return;let _0x59442f=Array[_0x4056af(0x137)](_0x56ec70);_0xc6a74f[_0x4056af(0x176)](_0x56ae9e=>{const _0x31dc42=_0x4056af;_0x4c1cc4[_0x31dc42(0xd8)]['foreach'](_0x56ae9e,(_0x1f3a94,_0xfa1f56)=>{const _0x4c1769=_0x31dc42;let _0x40005f=(0x0,_0x4c1cc4[_0x4c1769(0x11c)])(_0x1f3a94,_0xfa1f56);for(let _0x500e13=0x0;_0x500e13<_0x59442f[_0x4c1769(0xdd)];_0x500e13++){let [_0x8c215f,_0x4f2bd7]=_0x59442f[_0x500e13],_0x261328=_0x41aa46[_0x4c1769(0x1cd)](_0x8c215f);_0x261328||_0x4f2bd7['sparklines'][_0x4c1769(0x1c7)]((_0x2f548f,_0x12f7cd,_0x13bccf)=>{const _0x4bf282=_0x4c1769;let _0x416b3d=_0x13bccf;if(_0x416b3d&&!_0x261328&&_0x4c1cc4[_0x4bf282(0x140)]['intersects'](_0x40005f,_0x416b3d))return _0x41aa46['add'](_0x8c215f),!0x0;});}});}),_0x41aa46[_0x4056af(0x176)](_0xdc214a=>{const _0x34a82c=_0x4056af;this['_sparklineDataSourceModel']['clearSparklineCache'](_0x5967de,_0x544404,_0xdc214a),this[_0x34a82c(0x180)][_0x34a82c(0xde)](_0x5967de,_0x544404,_0xdc214a);});}});}};_0x46220e=_0x3bdd04([_0x419523(0x0,(0x0,_0x4c1cc4['Inject'])(_0x4c1cc4[_0x26e3f0(0x1a2)])),_0x419523(0x1,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c05d7))],_0x46220e);let _0x2de1af=class extends _0x4c1cc4[_0x26e3f0(0x152)]{constructor(_0x12125b,_0x58a4d6,_0x206b5d){const _0x3ac3d0=_0x26e3f0;super(),this[_0x3ac3d0(0x19c)]=_0x12125b,this[_0x3ac3d0(0x110)]=_0x58a4d6,this[_0x3ac3d0(0x180)]=_0x206b5d,this['_initMergeWithSparkline']();}[_0x26e3f0(0x109)](){const _0x49abc1=_0x26e3f0;this[_0x49abc1(0x118)](this[_0x49abc1(0x110)][_0x49abc1(0xd9)]({'getMutations':_0x20386a=>{const _0xc36559=_0x49abc1;let _0x550852=[],_0x258857=[];if(_0x20386a['id']===_0x52364e[_0xc36559(0xee)]['id']){let _0x48d7de=_0x20386a[_0xc36559(0x1d8)];if(!_0x48d7de)return{'redos':_0x550852,'undos':_0x258857};let {unitId:_0x72d77b,subUnitId:_0x83abb9,ranges:_0x5ed17c}=_0x48d7de,_0x16ae00=this[_0xc36559(0x180)][_0xc36559(0x173)](_0x72d77b,_0x83abb9);if(!_0x16ae00)return{'redos':_0x550852,'undos':_0x258857};let _0x237f9c={},_0x4f0c8c={},_0x37d007=new Set();_0x5ed17c[_0xc36559(0x176)](_0x54efd4=>{const _0x47e0c7=_0xc36559;let _0x2d11e=_0x54efd4[_0x47e0c7(0x1a3)],_0x5c4d9f=_0x54efd4[_0x47e0c7(0x14c)];_0x4c1cc4[_0x47e0c7(0xd8)][_0x47e0c7(0x186)](_0x54efd4,(_0x4ebb9a,_0x989ba9)=>{const _0x2f10cc=_0x47e0c7;let _0x5192b5=this[_0x2f10cc(0x180)][_0x2f10cc(0x119)](_0x72d77b,_0x83abb9,_0x4ebb9a,_0x989ba9);if(_0x5192b5&&!(_0x4ebb9a===_0x2d11e&&_0x989ba9===_0x5c4d9f)){let _0x2d516f=this[_0x2f10cc(0x180)][_0x2f10cc(0x1b8)](_0x72d77b,_0x83abb9,_0x5192b5);if(_0x2d516f){_0x37d007[_0x2f10cc(0xd5)](_0x5192b5);let _0xc791fa=_0x237f9c[_0x5192b5];_0xc791fa||(_0xc791fa={'config':_0x4c1cc4[_0x2f10cc(0xeb)][_0x2f10cc(0xd4)](_0x2d516f[_0x2f10cc(0x117)]),'sparklines':new _0x4c1cc4[(_0x2f10cc(0xd2))](_0x2d516f[_0x2f10cc(0x12d)][_0x2f10cc(0x190)]())},_0x237f9c[_0x5192b5]=_0xc791fa),_0xc791fa[_0x2f10cc(0x12d)][_0x2f10cc(0x145)](_0x4ebb9a,_0x989ba9),_0x4f0c8c[_0x5192b5]={'config':_0x4c1cc4['Tools']['deepClone'](_0x2d516f[_0x2f10cc(0x117)]),'sparklines':_0x4c1cc4[_0x2f10cc(0xeb)][_0x2f10cc(0xd4)](_0x2d516f[_0x2f10cc(0x12d)][_0x2f10cc(0x190)]())};}}});});for(let [_0x3ea7fa,_0x4a230e]of _0x16ae00){let _0x39541b=_0x4a230e['sparklines'];_0x39541b[_0xc36559(0x1c7)]((_0x3051bb,_0x474d38,_0x375d1d)=>{const _0x41bbad=_0xc36559;for(let _0x3a5dbf=0x0;_0x3a5dbf<_0x5ed17c[_0x41bbad(0xdd)];_0x3a5dbf++){let _0x1d1cff=_0x5ed17c[_0x3a5dbf];if(_0x4c1cc4[_0x41bbad(0x140)][_0x41bbad(0x133)](_0x1d1cff,_0x375d1d)){_0x37d007[_0x41bbad(0xd5)](_0x3ea7fa);let _0x8e4718=_0x237f9c[_0x3ea7fa];_0x8e4718||(_0x8e4718={'config':_0x4c1cc4[_0x41bbad(0xeb)][_0x41bbad(0xd4)](_0x4a230e[_0x41bbad(0x117)]),'sparklines':new _0x4c1cc4[(_0x41bbad(0xd2))](_0x39541b[_0x41bbad(0x190)]())},_0x237f9c[_0x3ea7fa]=_0x8e4718),_0x8e4718[_0x41bbad(0x12d)][_0x41bbad(0x145)](_0x3051bb,_0x474d38),_0x4f0c8c[_0x3ea7fa]||(_0x4f0c8c[_0x3ea7fa]={'config':_0x4c1cc4['Tools']['deepClone'](_0x4a230e['config']),'sparklines':_0x4c1cc4[_0x41bbad(0xeb)][_0x41bbad(0xd4)](_0x39541b[_0x41bbad(0x190)]())});}}});}let _0x32de37={};Object['entries'](_0x237f9c)[_0xc36559(0x176)](([_0x46f538,_0x5b0f88])=>{const _0xb08151=_0xc36559;_0x5b0f88['sparklines'][_0xb08151(0xe2)]()&&(_0x32de37[_0x46f538]={'config':_0x5b0f88['config'],'sparklines':_0x5b0f88[_0xb08151(0x12d)][_0xb08151(0x190)]()});}),_0x37d007[_0xc36559(0xe5)]&&(_0x550852[_0xc36559(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x72d77b,'subUnitId':_0x83abb9,'groupIds':Array['from'](_0x37d007),'isSingle':!0x1}}),_0x258857['push']({'id':_0x49b999['id'],'params':{'unitId':_0x72d77b,'subUnitId':_0x83abb9,'groupIds':Array['from'](_0x37d007),'isSingle':!0x1}}),_0x550852[_0xc36559(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x72d77b,'subUnitId':_0x83abb9,'sparklineConfigMap':_0x32de37}}),_0x258857[_0xc36559(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x72d77b,'subUnitId':_0x83abb9,'sparklineConfigMap':_0x4f0c8c}}));}return{'redos':_0x550852,'undos':_0x258857};}}));}};_0x2de1af=_0x3bdd04([_0x419523(0x0,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c1cc4['ICommandService'])),_0x419523(0x1,(0x0,_0x4c1cc4['Inject'])(_0x52364e['SheetInterceptorService'])),_0x419523(0x2,(0x0,_0x4c1cc4['Inject'])(_0x4c05d7))],_0x2de1af);let _0x290897=class extends _0x4c1cc4[_0x26e3f0(0x152)]{constructor(_0x5e5ce4,_0xf369cc,_0x5bf740,_0xc9c8d0){const _0x541448=_0x26e3f0;super(),this[_0x541448(0x19c)]=_0x5e5ce4,this['_refRangeService']=_0xf369cc,this[_0x541448(0xd6)]=_0x5bf740,this[_0x541448(0x180)]=_0xc9c8d0,_0x2148da(this,_0x541448(0x148),new _0x4c1cc4['DisposableCollection']()),this[_0x541448(0x194)](),this[_0x541448(0x130)]();}[_0x26e3f0(0x194)](){const _0x3facf4=_0x26e3f0;let _0x314668=(_0x464016,_0x18bdc9)=>{const _0x58000d=_0x3a8a;let _0x17c677=this[_0x58000d(0xd6)][_0x58000d(0xdc)](_0x4c1cc4[_0x58000d(0x159)][_0x58000d(0x149)]);if(!_0x17c677||!(_0x17c677!=null&&_0x17c677[_0x58000d(0x193)](_0x18bdc9)))return;this[_0x58000d(0x148)][_0x58000d(0x131)]();let _0x51de3e=_0x4d8c88=>this[_0x58000d(0x1c0)](_0x4d8c88,_0x464016,_0x18bdc9),_0x4785b3=[],_0x53c903=this[_0x58000d(0x180)][_0x58000d(0x173)](_0x464016,_0x18bdc9);if(_0x53c903){for(let [_0x205999,_0x15100f]of _0x53c903)_0x15100f[_0x58000d(0x12d)][_0x58000d(0x1c7)]((_0x1b8c36,_0x474c2a,_0x54a6c1)=>{const _0x4343e9=_0x58000d;let _0x34a268=(0x0,_0x4c1cc4[_0x4343e9(0x11c)])(_0x1b8c36,_0x474c2a);_0x4785b3['push'](_0x34a268);});_0x4785b3[_0x58000d(0x176)](_0x2f8005=>{const _0x15c319=_0x58000d;this[_0x15c319(0x148)][_0x15c319(0xd5)](this[_0x15c319(0x101)][_0x15c319(0xd3)](_0x2f8005,_0x51de3e,_0x464016,_0x18bdc9));});}};this['disposeWithMe'](this[_0x3facf4(0x19c)]['onCommandExecuted'](_0x21dcc7=>{const _0x516604=_0x3facf4;if(_0x21dcc7['id']===_0x52364e['SetWorksheetActivateCommand']['id']){let _0x2349b8=_0x21dcc7['params'],_0x4d0435=_0x2349b8[_0x516604(0x18a)],_0x753e10=_0x2349b8[_0x516604(0x160)];if(!_0x4d0435||!_0x753e10)return;_0x314668(_0x753e10,_0x4d0435);}if(_0x21dcc7['id']===_0x4ebd1b['id']||_0x21dcc7['id']===_0x4771b3['id']){let _0x6381b3=_0x21dcc7[_0x516604(0x1d8)],_0x541e4b=_0x6381b3[_0x516604(0x18a)],_0x945f8d=_0x6381b3['unitId'];if(!_0x541e4b||!_0x945f8d)return;_0x314668(_0x945f8d,_0x541e4b);}}));}[_0x26e3f0(0x1c0)](_0x2a00bb,_0x502b83,_0x41cab3){const _0x477fdf=_0x26e3f0;switch(_0x2a00bb['id']){case _0x52364e[_0x477fdf(0x1c4)]['id']:return this[_0x477fdf(0x170)](_0x2a00bb[_0x477fdf(0x1d8)],_0x502b83,_0x41cab3);case _0x52364e[_0x477fdf(0x12e)]['id']:return this[_0x477fdf(0xdb)](_0x2a00bb[_0x477fdf(0x1d8)],_0x502b83,_0x41cab3);default:break;}return{'redos':[],'undos':[]};}[_0x26e3f0(0xdb)](_0x583e16,_0x15199a,_0x5cbe80){const _0x527c2d=_0x26e3f0;var _0x35be6a;let {range:_0x5774c4}=_0x583e16,_0x4fa135=new Set(),_0x2cc343={},_0x20b08b={},_0x257816=[],_0x223a08=[],_0x530c46=[],_0x1472f4=[];if(!(0x0,_0x52364e[_0x527c2d(0x150)])(this[_0x527c2d(0xd6)],{'unitId':_0x15199a,'subUnitId':_0x5cbe80}))return{'redos':_0x223a08,'undos':_0x257816};let _0x39c189=this[_0x527c2d(0x180)]['getSubUnitSparkline'](_0x15199a,_0x5cbe80);if(!_0x39c189||!(!((_0x35be6a=this[_0x527c2d(0x180)][_0x527c2d(0x136)]()[_0x527c2d(0x141)][_0x527c2d(0x197)](_0x15199a))==null||(_0x35be6a=_0x35be6a[_0x527c2d(0x197)](_0x5cbe80))==null)&&_0x35be6a[_0x527c2d(0x122)]))return{'redos':_0x223a08,'undos':_0x257816};for(let [_0x3094fa,_0x85df6b]of _0x39c189){let _0x59b55c=_0x85df6b[_0x527c2d(0x12d)];_0x59b55c['forValue']((_0x3030f9,_0x536bb0,_0x424f0f)=>{const _0x1cf925=_0x527c2d;if(_0x4c1cc4['Rectangle'][_0x1cf925(0xd7)](_0x5774c4,_0x424f0f)){_0x4fa135[_0x1cf925(0xd5)](_0x3094fa);let _0x3a87c5=_0x20b08b[_0x3094fa];_0x3a87c5||(_0x3a87c5={'config':_0x85df6b[_0x1cf925(0x117)],'sparklines':_0x85df6b[_0x1cf925(0x12d)][_0x1cf925(0x190)]()},_0x20b08b[_0x3094fa]=_0x3a87c5);let _0x19fdbf=_0x2cc343[_0x3094fa];_0x19fdbf||(_0x19fdbf={'config':_0x85df6b[_0x1cf925(0x117)],'sparklines':new _0x4c1cc4[(_0x1cf925(0xd2))](_0x85df6b[_0x1cf925(0x12d)][_0x1cf925(0x190)]())},_0x2cc343[_0x3094fa]=_0x19fdbf);let _0x5a609f=(0x0,_0x52364e[_0x1cf925(0x127)])(_0x424f0f,{'id':_0x52364e['RemoveRowMutation']['id'],'params':_0x583e16});_0x5a609f?_0x19fdbf[_0x1cf925(0x12d)][_0x1cf925(0xf6)](_0x3030f9,_0x536bb0,_0x5a609f):_0x19fdbf[_0x1cf925(0x12d)][_0x1cf925(0xf6)](_0x3030f9,_0x536bb0,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4c1cc4['RANGE_TYPE'][_0x1cf925(0x19b)]});}}),_0x59b55c[_0x527c2d(0x1c7)](_0x39cc2f=>{const _0x4fb590=_0x527c2d;if(_0x39cc2f<=_0x5774c4[_0x4fb590(0x157)]&&_0x39cc2f>=_0x5774c4['startRow']){_0x4fa135[_0x4fb590(0xd5)](_0x3094fa);let _0x4e97cb=_0x20b08b[_0x3094fa];_0x4e97cb||(_0x4e97cb={'config':_0x85df6b['config'],'sparklines':_0x85df6b[_0x4fb590(0x12d)][_0x4fb590(0x190)]()},_0x20b08b[_0x3094fa]=_0x4e97cb);let _0x37b0e4=_0x2cc343[_0x3094fa];_0x37b0e4||(_0x37b0e4={'config':_0x85df6b['config'],'sparklines':new _0x4c1cc4[(_0x4fb590(0xd2))](_0x85df6b[_0x4fb590(0x12d)]['clone']())},_0x2cc343[_0x3094fa]=_0x37b0e4);}});}_0x4fa135[_0x527c2d(0xe5)]>0x0&&(_0x1472f4['push']({'id':_0x49b999['id'],'params':{'unitId':_0x15199a,'subUnitId':_0x5cbe80,'groupIds':Array['from'](_0x4fa135),'isSingle':!0x1}}),_0x530c46[_0x527c2d(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x15199a,'subUnitId':_0x5cbe80,'groupIds':Array[_0x527c2d(0x137)](_0x4fa135),'isSingle':!0x1}}));let _0x44ddc7={},_0x4e774f=!0x1;return Object[_0x527c2d(0xfa)](_0x2cc343)[_0x527c2d(0x176)](([_0x290544,_0x4eeaa0])=>{const _0x158184=_0x527c2d;_0x4eeaa0[_0x158184(0x12d)][_0x158184(0xe2)]()&&(_0x4e774f=!0x0,_0x4eeaa0[_0x158184(0x12d)][_0x158184(0x12b)](_0x5774c4[_0x158184(0x1a3)],_0x5774c4['endRow']-_0x5774c4[_0x158184(0x1a3)]+0x1),_0x44ddc7[_0x290544]={'config':_0x4eeaa0[_0x158184(0x117)],'sparklines':_0x4eeaa0['sparklines'][_0x158184(0x190)]()});}),_0x4e774f&&_0x223a08[_0x527c2d(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x15199a,'subUnitId':_0x5cbe80,'sparklineConfigMap':_0x44ddc7}}),Object[_0x527c2d(0x139)](_0x20b08b)[_0x527c2d(0xdd)]>0x0&&_0x257816[_0x527c2d(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x15199a,'subUnitId':_0x5cbe80,'sparklineConfigMap':_0x20b08b}}),{'redos':_0x223a08,'undos':_0x257816,'preRedos':_0x530c46,'preUndos':_0x1472f4};}[_0x26e3f0(0x170)](_0x56dad2,_0x29f2ae,_0x31a025){const _0x4a931e=_0x26e3f0;var _0x55f304;let {range:_0x1c606b}=_0x56dad2,_0x4a000f=new Set(),_0x509193={},_0x18020f={},_0x10689b=[],_0x190547=[],_0x25112e=[],_0x703b48=[];if(!(0x0,_0x52364e[_0x4a931e(0x150)])(this[_0x4a931e(0xd6)],{'unitId':_0x29f2ae,'subUnitId':_0x31a025}))return{'redos':_0x190547,'undos':_0x10689b};let _0x42b76a=this['_sparklineDataSourceModel'][_0x4a931e(0x173)](_0x29f2ae,_0x31a025);if(!_0x42b76a||!(!((_0x55f304=this[_0x4a931e(0x180)][_0x4a931e(0x136)]()['sparklineAnchorMap'][_0x4a931e(0x197)](_0x29f2ae))==null||(_0x55f304=_0x55f304['get'](_0x31a025))==null)&&_0x55f304[_0x4a931e(0x122)]))return{'redos':_0x190547,'undos':_0x10689b};for(let [_0x2b7ac4,_0x232c13]of _0x42b76a){let _0x5cf082=_0x232c13['sparklines'];_0x5cf082[_0x4a931e(0x1c7)]((_0xfdf40e,_0x2bd021,_0x5f0e00)=>{const _0x1d01d0=_0x4a931e;if(_0x4c1cc4[_0x1d01d0(0x140)][_0x1d01d0(0xd7)](_0x1c606b,_0x5f0e00)){_0x4a000f['add'](_0x2b7ac4);let _0x86e368=_0x18020f[_0x2b7ac4];_0x86e368||(_0x86e368={'config':_0x232c13[_0x1d01d0(0x117)],'sparklines':_0x232c13[_0x1d01d0(0x12d)][_0x1d01d0(0x190)]()},_0x18020f[_0x2b7ac4]=_0x86e368);let _0x2dc155=_0x509193[_0x2b7ac4];_0x2dc155||(_0x2dc155={'config':_0x232c13[_0x1d01d0(0x117)],'sparklines':new _0x4c1cc4[(_0x1d01d0(0xd2))](_0x232c13['sparklines'][_0x1d01d0(0x190)]())},_0x509193[_0x2b7ac4]=_0x2dc155);let _0x3963ff=(0x0,_0x52364e['adjustRangeOnMutation'])(_0x5f0e00,{'id':_0x52364e[_0x1d01d0(0x11d)]['id'],'params':_0x56dad2});_0x3963ff?_0x2dc155[_0x1d01d0(0x12d)][_0x1d01d0(0xf6)](_0xfdf40e,_0x2bd021,_0x3963ff):_0x2dc155[_0x1d01d0(0x12d)]['setValue'](_0xfdf40e,_0x2bd021,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4c1cc4[_0x1d01d0(0x1b3)]['NORMAL']});}}),_0x5cf082[_0x4a931e(0x1c7)]((_0x5140e3,_0x2438b8,_0x9f18e8)=>{const _0x57a6d9=_0x4a931e;if(_0x2438b8<=_0x1c606b[_0x57a6d9(0xf0)]&&_0x2438b8>=_0x1c606b[_0x57a6d9(0x14c)]){_0x4a000f[_0x57a6d9(0xd5)](_0x2b7ac4);let _0x1deab7=_0x18020f[_0x2b7ac4];_0x1deab7||(_0x1deab7={'config':_0x232c13['config'],'sparklines':_0x232c13[_0x57a6d9(0x12d)][_0x57a6d9(0x190)]()},_0x18020f[_0x2b7ac4]=_0x1deab7);let _0x3baa1f=_0x509193[_0x2b7ac4];_0x3baa1f||(_0x3baa1f={'config':_0x232c13[_0x57a6d9(0x117)],'sparklines':new _0x4c1cc4[(_0x57a6d9(0xd2))](_0x232c13[_0x57a6d9(0x12d)]['clone']())},_0x509193[_0x2b7ac4]=_0x3baa1f);}});}_0x4a000f[_0x4a931e(0xe5)]>0x0&&(_0x703b48[_0x4a931e(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x29f2ae,'subUnitId':_0x31a025,'groupIds':Array['from'](_0x4a000f),'isSingle':!0x1}}),_0x25112e[_0x4a931e(0x129)]({'id':_0x49b999['id'],'params':{'unitId':_0x29f2ae,'subUnitId':_0x31a025,'groupIds':Array[_0x4a931e(0x137)](_0x4a000f),'isSingle':!0x1}}));let _0x103879={},_0x3922a8=!0x1;return Object[_0x4a931e(0xfa)](_0x509193)[_0x4a931e(0x176)](([_0x227300,_0x2e6645])=>{const _0x560a9a=_0x4a931e;_0x2e6645[_0x560a9a(0x12d)]['getSizeOf']()&&(_0x3922a8=!0x0,_0x2e6645[_0x560a9a(0x12d)][_0x560a9a(0x13e)](_0x1c606b[_0x560a9a(0x14c)],_0x1c606b[_0x560a9a(0xf0)]-_0x1c606b[_0x560a9a(0x14c)]+0x1),_0x103879[_0x227300]={'config':_0x2e6645[_0x560a9a(0x117)],'sparklines':_0x2e6645[_0x560a9a(0x12d)]['clone']()});}),_0x3922a8&&_0x190547[_0x4a931e(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x29f2ae,'subUnitId':_0x31a025,'sparklineConfigMap':_0x103879}}),Object[_0x4a931e(0x139)](_0x18020f)['length']>0x0&&_0x10689b[_0x4a931e(0x129)]({'id':_0x4771b3['id'],'params':{'unitId':_0x29f2ae,'subUnitId':_0x31a025,'sparklineConfigMap':_0x18020f}}),{'redos':_0x190547,'undos':_0x10689b,'preRedos':_0x25112e,'preUndos':_0x703b48};}[_0x26e3f0(0x130)](){const _0x2916ca=_0x26e3f0;this[_0x2916ca(0x118)](this[_0x2916ca(0x19c)][_0x2916ca(0xf7)](_0x2d0955=>{const _0x1a1fa9=_0x2916ca;if(_0x2d0955['id']===_0x52364e['InsertColMutation']['id']){let {unitId:_0x150f2b,subUnitId:_0x145e94,range:_0x4ccb63}=_0x2d0955[_0x1a1fa9(0x1d8)],_0x30e4c6=_0x4ccb63[_0x1a1fa9(0x14c)],_0x22eeb1=_0x4ccb63['endColumn']-_0x4ccb63[_0x1a1fa9(0x14c)]+0x1,_0x40e189=this[_0x1a1fa9(0x180)][_0x1a1fa9(0x173)](_0x150f2b,_0x145e94);if(!_0x40e189)return;for(let [_0x300b53,_0x788867]of _0x40e189){this[_0x1a1fa9(0x180)][_0x1a1fa9(0x1be)](_0x150f2b,_0x145e94,_0x300b53);let _0x4445d3=_0x788867['sparklines'];_0x4445d3['forValue']((_0x45bad5,_0x2fe5a0,_0x26ab4e)=>{const _0x277d1a=_0x1a1fa9;let _0x2f7cdb={..._0x26ab4e};_0x30e4c6<=_0x2f7cdb['startColumn']?(_0x2f7cdb[_0x277d1a(0x14c)]+=_0x22eeb1,_0x2f7cdb[_0x277d1a(0xf0)]+=_0x22eeb1):_0x30e4c6>_0x2f7cdb['endColumn']||(_0x2f7cdb['endColumn']+=_0x22eeb1),_0x4445d3['setValue'](_0x45bad5,_0x2fe5a0,_0x2f7cdb);});let _0x3b3467=_0x4445d3[_0x1a1fa9(0xcf)]();for(let _0x440690 in _0x3b3467){let _0xdaf44a=_0x3b3467[Number(_0x440690)];if(!_0xdaf44a)continue;let _0x10b77e=Object[_0x1a1fa9(0x139)](_0xdaf44a)['map'](Number),_0x3af1ef=Math[_0x1a1fa9(0xf2)](..._0x10b77e);for(let _0x598380=_0x3af1ef;_0x598380>=_0x30e4c6;_0x598380--)_0x598380>=_0x30e4c6&&_0xdaf44a[_0x598380]&&(_0xdaf44a[_0x598380+_0x22eeb1]=_0xdaf44a[_0x598380],delete _0xdaf44a[_0x598380]);}this['_sparklineDataSourceModel'][_0x1a1fa9(0xde)](_0x150f2b,_0x145e94,_0x300b53);}}else{if(_0x2d0955['id']===_0x52364e[_0x1a1fa9(0x19f)]['id']){let {unitId:_0x5a8a99,subUnitId:_0x71d534,range:_0x127259}=_0x2d0955[_0x1a1fa9(0x1d8)],_0x17990d=_0x127259[_0x1a1fa9(0x1a3)],_0x2da605=_0x127259['endRow']-_0x127259[_0x1a1fa9(0x1a3)]+0x1,_0x4e941c=this[_0x1a1fa9(0x180)][_0x1a1fa9(0x173)](_0x5a8a99,_0x71d534);if(!_0x4e941c)return;for(let [_0x17ab56,_0x487760]of _0x4e941c){this[_0x1a1fa9(0x180)][_0x1a1fa9(0x1be)](_0x5a8a99,_0x71d534,_0x17ab56);let _0x1392dc=_0x487760[_0x1a1fa9(0x12d)];_0x1392dc[_0x1a1fa9(0x1c7)]((_0x2ed75e,_0x14b2d9,_0x1bcf2f)=>{const _0x5e9591=_0x1a1fa9;let _0x445dbd={..._0x1bcf2f};_0x17990d<=_0x445dbd[_0x5e9591(0x1a3)]?(_0x445dbd['startRow']+=_0x2da605,_0x445dbd[_0x5e9591(0x157)]+=_0x2da605):_0x17990d>_0x445dbd[_0x5e9591(0x157)]||(_0x445dbd[_0x5e9591(0x157)]+=_0x2da605),_0x1392dc['setValue'](_0x2ed75e,_0x14b2d9,_0x445dbd);});let _0x1db13b=_0x1392dc[_0x1a1fa9(0xcf)](),_0x47f839=Object['keys'](_0x1db13b)[_0x1a1fa9(0x100)](Number),_0x169a57=Math['max'](..._0x47f839);for(let _0x525bfd=_0x169a57;_0x525bfd>=_0x17990d;_0x525bfd--)_0x525bfd>=_0x17990d&&_0x1db13b[_0x525bfd]&&(_0x1db13b[_0x525bfd+_0x2da605]=_0x1db13b[_0x525bfd],delete _0x1db13b[_0x525bfd]);this[_0x1a1fa9(0x180)][_0x1a1fa9(0xde)](_0x5a8a99,_0x71d534,_0x17ab56);}}else{if(_0x2d0955['id']===_0x52364e['RemoveColMutation']['id']){let {range:_0x427434,unitId:_0x3b5695,subUnitId:_0x4f7f38}=_0x2d0955[_0x1a1fa9(0x1d8)],_0x5176a0=this[_0x1a1fa9(0x180)][_0x1a1fa9(0x173)](_0x3b5695,_0x4f7f38);if(!_0x5176a0)return;for(let [_0x26231c,_0x23936f]of _0x5176a0){let _0x22f268=_0x23936f[_0x1a1fa9(0x12d)];_0x22f268[_0x1a1fa9(0x1c7)]((_0x153ccd,_0x5e7434,_0x37bc04)=>{const _0x2709ef=_0x1a1fa9;let _0x220c82=(0x0,_0x52364e[_0x2709ef(0x127)])(_0x37bc04,_0x2d0955);_0x220c82?_0x22f268[_0x2709ef(0xf6)](_0x153ccd,_0x5e7434,_0x220c82):_0x22f268[_0x2709ef(0xf6)](_0x153ccd,_0x5e7434,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4c1cc4['RANGE_TYPE'][_0x2709ef(0x19b)]});}),_0x22f268['removeColumns'](_0x427434['startColumn'],_0x427434[_0x1a1fa9(0xf0)]-_0x427434['startColumn']+0x1);}this[_0x1a1fa9(0x180)][_0x1a1fa9(0x16c)](_0x3b5695,_0x4f7f38);}else{if(_0x2d0955['id']===_0x52364e[_0x1a1fa9(0x120)]['id']){let {range:_0x1d4b98,unitId:_0x5ae101,subUnitId:_0x16b92a}=_0x2d0955[_0x1a1fa9(0x1d8)],_0x3eb0d5=this[_0x1a1fa9(0x180)][_0x1a1fa9(0x173)](_0x5ae101,_0x16b92a);if(!_0x3eb0d5)return;for(let [_0x24478d,_0x303df5]of _0x3eb0d5){let _0x5371d0=_0x303df5['sparklines'];_0x5371d0['forValue']((_0x114fd3,_0x37dcb6,_0x4c0301)=>{const _0x1eff0f=_0x1a1fa9;let _0x292aa8=(0x0,_0x52364e[_0x1eff0f(0x127)])(_0x4c0301,_0x2d0955);_0x292aa8?_0x5371d0[_0x1eff0f(0xf6)](_0x114fd3,_0x37dcb6,_0x292aa8):_0x5371d0['setValue'](_0x114fd3,_0x37dcb6,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4c1cc4[_0x1eff0f(0x1b3)][_0x1eff0f(0x19b)]});}),_0x5371d0[_0x1a1fa9(0x12b)](_0x1d4b98[_0x1a1fa9(0x1a3)],_0x1d4b98[_0x1a1fa9(0x157)]-_0x1d4b98['startRow']+0x1);}this[_0x1a1fa9(0x180)][_0x1a1fa9(0x16c)](_0x5ae101,_0x16b92a);}else{if(_0x2d0955['id']===_0x52364e[_0x1a1fa9(0x1ac)]['id']){let {unitId:_0x5d71e2,subUnitId:_0x4b30df,sourceRange:_0x501198,targetRange:_0x350887}=_0x2d0955[_0x1a1fa9(0x1d8)],_0x1a779f=this[_0x1a1fa9(0x180)]['getSubUnitSparkline'](_0x5d71e2,_0x4b30df);if(!_0x1a779f)return;for(let [_0x4b3698,_0x4e398e]of _0x1a779f){let _0x2be7b0=_0x4e398e[_0x1a1fa9(0x12d)];_0x2be7b0[_0x1a1fa9(0x1c7)]((_0x32097d,_0x45e7c1,_0x682993)=>{const _0x5dc363=_0x1a1fa9;let _0x10b6ca=(0x0,_0x52364e['adjustRangeOnMutation'])(_0x682993,_0x2d0955);_0x10b6ca?_0x2be7b0['setValue'](_0x32097d,_0x45e7c1,_0x10b6ca):_0x2be7b0['setValue'](_0x32097d,_0x45e7c1,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4c1cc4['RANGE_TYPE'][_0x5dc363(0x19b)]});}),_0x2be7b0[_0x1a1fa9(0x1d3)](_0x501198[_0x1a1fa9(0x14c)],_0x501198['endColumn']-_0x501198[_0x1a1fa9(0x14c)]+0x1,_0x350887[_0x1a1fa9(0x14c)]);}this[_0x1a1fa9(0x180)][_0x1a1fa9(0x16c)](_0x5d71e2,_0x4b30df);}else{if(_0x2d0955['id']===_0x52364e[_0x1a1fa9(0x1bd)]['id']){let {unitId:_0x437096,subUnitId:_0x1888bc,sourceRange:_0x451d02,targetRange:_0x13b149}=_0x2d0955['params'],_0x27913d=this[_0x1a1fa9(0x180)][_0x1a1fa9(0x173)](_0x437096,_0x1888bc);if(!_0x27913d)return;for(let [_0x16bd1f,_0x53a10f]of _0x27913d){let _0x1c4687=_0x53a10f[_0x1a1fa9(0x12d)];_0x1c4687[_0x1a1fa9(0x1c7)]((_0x159485,_0x13d4c4,_0x28397b)=>{const _0x48bbb9=_0x1a1fa9;let _0x233985=(0x0,_0x52364e[_0x48bbb9(0x127)])(_0x28397b,_0x2d0955);_0x233985?_0x1c4687[_0x48bbb9(0xf6)](_0x159485,_0x13d4c4,_0x233985):_0x1c4687[_0x48bbb9(0xf6)](_0x159485,_0x13d4c4,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4c1cc4['RANGE_TYPE'][_0x48bbb9(0x19b)]});}),_0x1c4687[_0x1a1fa9(0x144)](_0x451d02[_0x1a1fa9(0x1a3)],_0x451d02['endRow']-_0x451d02[_0x1a1fa9(0x1a3)]+0x1,_0x13b149['startRow']);}this[_0x1a1fa9(0x180)][_0x1a1fa9(0x16c)](_0x437096,_0x1888bc);}else{if(_0x2d0955['id']===_0x52364e['MoveRangeMutation']['id']){let {fromRange:_0x396c63,toRange:_0x1031ae,unitId:_0x3a136f,from:_0x27a7ae,to:_0x244fef}=_0x2d0955[_0x1a1fa9(0x1d8)];if(_0x27a7ae['subUnitId']!==_0x244fef[_0x1a1fa9(0x18a)])return;let _0x3e5ed8=_0x27a7ae[_0x1a1fa9(0x18a)],{startRow:_0x321770,endRow:_0x139bc4,startColumn:_0x35a0b2,endColumn:_0x12cba3}=_0x396c63,{startRow:_0x2617bb,startColumn:_0xa55cd6}=_0x1031ae,_0x3bff88=_0x2617bb-_0x321770,_0x1bef9f=_0xa55cd6-_0x35a0b2,_0x2925f7=this[_0x1a1fa9(0x180)][_0x1a1fa9(0x173)](_0x3a136f,_0x3e5ed8);if(!(_0x2925f7!=null&&_0x2925f7['size']))return;for(let _0x1561b0=_0x321770;_0x1561b0<=_0x139bc4;_0x1561b0++)for(let _0x8077f9=_0x35a0b2;_0x8077f9<=_0x12cba3;_0x8077f9++){let _0x5382bb=this[_0x1a1fa9(0x180)]['getSparkline'](_0x3a136f,_0x3e5ed8,_0x1561b0,_0x8077f9);if(_0x5382bb){let _0x58f60f=this['_sparklineDataSourceModel'][_0x1a1fa9(0x1b8)](_0x3a136f,_0x3e5ed8,_0x5382bb);if(_0x58f60f){let _0x48070d=_0x58f60f[_0x1a1fa9(0x12d)][_0x1a1fa9(0x15e)](_0x1561b0,_0x8077f9);_0x48070d&&(_0x58f60f[_0x1a1fa9(0x12d)][_0x1a1fa9(0xf6)](_0x1561b0+_0x3bff88,_0x8077f9+_0x1bef9f,_0x48070d),_0x58f60f['sparklines'][_0x1a1fa9(0x145)](_0x1561b0,_0x8077f9));}}}for(let [_0x214d26,_0x20ce31]of _0x2925f7){let _0xa79c02=_0x20ce31[_0x1a1fa9(0x12d)];_0xa79c02[_0x1a1fa9(0x1c7)]((_0x25e1cc,_0x419c43,_0x2b0a16)=>{const _0x4e85fd=_0x1a1fa9;let _0x5dbc22={..._0x2b0a16};_0x4c1cc4[_0x4e85fd(0x140)][_0x4e85fd(0x133)](_0x396c63,_0x2b0a16)&&(_0x5dbc22[_0x4e85fd(0x1a3)]+=_0x3bff88,_0x5dbc22[_0x4e85fd(0x157)]+=_0x3bff88,_0x5dbc22[_0x4e85fd(0x14c)]+=_0x1bef9f,_0x5dbc22[_0x4e85fd(0xf0)]+=_0x1bef9f),_0xa79c02[_0x4e85fd(0xf6)](_0x25e1cc,_0x419c43,_0x5dbc22);});}this[_0x1a1fa9(0x180)][_0x1a1fa9(0x16c)](_0x3a136f,_0x3e5ed8);}}}}}}}}));}};_0x290897=_0x3bdd04([_0x419523(0x0,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c1cc4[_0x26e3f0(0x1a2)])),_0x419523(0x1,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x52364e['RefRangeService'])),_0x419523(0x2,_0x4c1cc4[_0x26e3f0(0x16e)]),_0x419523(0x3,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c05d7))],_0x290897);let _0x24b442=class extends _0x4c1cc4[_0x26e3f0(0x152)]{constructor(_0x34284e,_0x34b068,_0x152993){const _0x585852=_0x26e3f0;super(),this['_univerInstanceService']=_0x34284e,this[_0x585852(0x110)]=_0x34b068,this[_0x585852(0x180)]=_0x152993,this[_0x585852(0xda)]();}['_initSheetChange'](){const _0xb38396=_0x26e3f0;this['disposeWithMe'](this[_0xb38396(0x110)][_0xb38396(0xd9)]({'getMutations':_0xa6dad9=>{const _0x50bb16=_0xb38396;if(_0xa6dad9['id']===_0x52364e[_0x50bb16(0xfd)]['id']){var _0x3b05c9;let _0x1b0c50=_0xa6dad9[_0x50bb16(0x1d8)],_0x2b334a=_0x1b0c50[_0x50bb16(0x160)]||this['_univerInstanceService'][_0x50bb16(0xdc)](_0x4c1cc4[_0x50bb16(0x159)][_0x50bb16(0x149)])[_0x50bb16(0x181)](),_0x116a22=_0x1b0c50[_0x50bb16(0x18a)]||((_0x3b05c9=this['_univerInstanceService'][_0x50bb16(0xdc)](_0x4c1cc4['UniverInstanceType']['UNIVER_SHEET'])[_0x50bb16(0x16b)]())==null?void 0x0:_0x3b05c9[_0x50bb16(0x105)]());if(!_0x2b334a||!_0x116a22)return{'redos':[],'undos':[]};let _0x38b86f=this[_0x50bb16(0x180)]['getSubUnitSparkline'](_0x2b334a,_0x116a22);if(!_0x38b86f)return{'redos':[],'undos':[]};let _0x3747fd=new Set(),_0x572c07={};for(let [_0x4c1a5c,_0x46fe34]of _0x38b86f)_0x3747fd[_0x50bb16(0xd5)](_0x4c1a5c),_0x572c07[_0x4c1a5c]={'config':_0x4c1cc4[_0x50bb16(0xeb)][_0x50bb16(0xd4)](_0x46fe34[_0x50bb16(0x117)]),'sparklines':_0x4c1cc4[_0x50bb16(0xeb)][_0x50bb16(0xd4)](_0x46fe34[_0x50bb16(0x12d)][_0x50bb16(0x190)]())};if(_0x3747fd['size'])return{'redos':[{'id':_0x49b999['id'],'params':{'unitId':_0x2b334a,'subUnitId':_0x116a22,'groupIds':Array[_0x50bb16(0x137)](_0x3747fd),'isSingle':!0x1}}],'undos':[{'id':_0x4771b3['id'],'params':{'unitId':_0x2b334a,'subUnitId':_0x116a22,'sparklineConfigMap':_0x572c07}}]};}else{if(_0xa6dad9['id']===_0x52364e[_0x50bb16(0x1b2)]['id']){let {unitId:_0xc3a1ea,subUnitId:_0x432a2b,targetSubUnitId:_0x1f0a39}=_0xa6dad9['params'];if(!_0xc3a1ea||!_0x432a2b||!_0x1f0a39)return{'redos':[],'undos':[]};let _0x245d0c=this[_0x50bb16(0x180)][_0x50bb16(0x173)](_0xc3a1ea,_0x432a2b);if(!_0x245d0c)return{'redos':[],'undos':[]};let _0x2b4c59=new Set(),_0x133e65={};for(let [_0x2eb6dd,_0x3a3a4c]of _0x245d0c){let _0x663aee='g_'+(0x0,_0x4c1cc4[_0x50bb16(0xf9)])(0x6);_0x2b4c59['add'](_0x2eb6dd),_0x133e65[_0x663aee]={'config':_0x4c1cc4['Tools']['deepClone'](_0x3a3a4c[_0x50bb16(0x117)]),'sparklines':_0x4c1cc4[_0x50bb16(0xeb)][_0x50bb16(0xd4)](_0x3a3a4c[_0x50bb16(0x12d)]['clone']())};}if(_0x2b4c59['size'])return{'redos':[{'id':_0x4771b3['id'],'params':{'unitId':_0xc3a1ea,'subUnitId':_0x1f0a39,'sparklineConfigMap':_0x133e65}}],'undos':[{'id':_0x49b999['id'],'params':{'unitId':_0xc3a1ea,'subUnitId':_0x1f0a39,'groupIds':Array[_0x50bb16(0x137)](_0x2b4c59),'isSingle':!0x1}}]};}}return{'redos':[],'undos':[]};}}));}};_0x24b442=_0x3bdd04([_0x419523(0x0,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c1cc4['IUniverInstanceService'])),_0x419523(0x1,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x52364e[_0x26e3f0(0xf1)])),_0x419523(0x2,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c05d7))],_0x24b442);let _0x480e00=class extends _0x4c1cc4['Disposable']{constructor(_0x3a1426,_0x169f13){const _0x279fb1=_0x26e3f0;super(),this[_0x279fb1(0xdf)]=_0x3a1426,this[_0x279fb1(0x180)]=_0x169f13,this[_0x279fb1(0x116)]();}[_0x26e3f0(0x116)](){const _0x2ea61c=_0x26e3f0;this[_0x2ea61c(0x118)](this[_0x2ea61c(0xdf)]['registerPluginResource']({'toJson':_0x3381e9=>{const _0x788663=_0x2ea61c;let _0x95fe4e=this['_sparklineDataSourceModel'][_0x788663(0x111)](_0x3381e9);return _0x95fe4e?JSON[_0x788663(0x17c)](_0x95fe4e):'';},'parseJson':_0x23f471=>_0x23f471?JSON['parse'](_0x23f471):{},'pluginName':_0x10015c,'businesses':[_0x4c1cc4[_0x2ea61c(0x159)][_0x2ea61c(0x149)]],'onLoad':(_0x1b900f,_0x19a3ac)=>{const _0x3e0c3e=_0x2ea61c;this[_0x3e0c3e(0x180)]['fromJSON'](_0x19a3ac);},'onUnLoad':_0x1ee26b=>{const _0x34d8be=_0x2ea61c;this[_0x34d8be(0x180)][_0x34d8be(0x132)](_0x1ee26b);}}));}};_0x480e00=_0x3bdd04([_0x419523(0x0,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c1cc4['IResourceManagerService'])),_0x419523(0x1,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c05d7))],_0x480e00);let _0x430e9c=class extends _0x4c1cc4[_0x26e3f0(0x151)]{constructor(_0x206824={},_0x391e32,_0x44bd30){const _0x36ccd5=_0x26e3f0;super(),this['_config']=_0x206824,this[_0x36ccd5(0x165)]=_0x391e32,this[_0x36ccd5(0x19c)]=_0x44bd30,this[_0x36ccd5(0x147)](),this[_0x36ccd5(0x1d5)]();}[_0x26e3f0(0x147)](){const _0x316eb8=_0x26e3f0;[[_0x4c05d7],[_0x104b2d],[_0x2de1af],[_0x14fab7],[_0x290897],[_0x46220e],[_0x24b442],[_0x480e00]]['forEach'](_0x33954d=>{const _0x366d78=_0x3a8a;this[_0x366d78(0x165)][_0x366d78(0xd5)](_0x33954d);}),(0x0,_0x4c1cc4['touchDependencies'])(this[_0x316eb8(0x165)],[[_0x480e00]]);}['onReady'](){const _0x258453=_0x26e3f0;(0x0,_0x4c1cc4[_0x258453(0x15a)])(this['_injector'],[[_0x104b2d],[_0x2de1af],[_0x14fab7],[_0x290897],[_0x46220e],[_0x24b442]]);}[_0x26e3f0(0x1d5)](){const _0x3543bf=_0x26e3f0;[_0x2e55d5,_0x4771b3,_0x34f8fa,_0x49b999,_0x184372,_0x4ebd1b][_0x3543bf(0x176)](_0x3c7640=>this['_commandService'][_0x3543bf(0xe1)](_0x3c7640));}};_0x2148da(_0x430e9c,_0x26e3f0(0x114),_0x10015c),_0x2148da(_0x430e9c,_0x26e3f0(0x1c8),_0x3cd833),_0x2148da(_0x430e9c,_0x26e3f0(0xf4),_0x48258b),_0x2148da(_0x430e9c,'type',_0x4c1cc4[_0x26e3f0(0x159)][_0x26e3f0(0x149)]),_0x430e9c=_0x3bdd04([(0x0,_0x4c1cc4[_0x26e3f0(0xe3)])(_0x55e0d4['UniverLicensePlugin']),_0x419523(0x1,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c1cc4[_0x26e3f0(0x18c)])),_0x419523(0x2,(0x0,_0x4c1cc4[_0x26e3f0(0x174)])(_0x4c1cc4[_0x26e3f0(0x1a2)]))],_0x430e9c),_0x29d0c5[_0x26e3f0(0x19d)]=_0x2e55d5,_0x29d0c5[_0x26e3f0(0x1cf)]=_0x4771b3,_0x29d0c5[_0x26e3f0(0x1b1)]=_0x10015c,_0x29d0c5[_0x26e3f0(0x1a7)]=_0x34f8fa,_0x29d0c5['RemoveSheetSparklineMutation']=_0x49b999,_0x29d0c5[_0x26e3f0(0x1ab)]=_0x184372,_0x29d0c5['SetSheetSparklineMutation']=_0x4ebd1b,_0x29d0c5['SpacialShowAsEnum']=_0x36d69b,Object[_0x26e3f0(0x1a8)](_0x29d0c5,_0x26e3f0(0xe8),{'enumerable':!0x0,'get':function(){return _0x4c05d7;}}),_0x29d0c5[_0x26e3f0(0x19a)]=_0x4c53ee,_0x29d0c5[_0x26e3f0(0x153)]=_0x219a59,_0x29d0c5[_0x26e3f0(0x1b7)]=_0x1fdf70,_0x29d0c5[_0x26e3f0(0x13a)]=_0x24d3e2,_0x29d0c5['SparklineTypeEnum']=_0x47ba04,Object['defineProperty'](_0x29d0c5,'UniverSheetSparklinePlugin',{'enumerable':!0x0,'get':function(){return _0x430e9c;}}),_0x29d0c5['getSparklinePlacement']=_0x405e6b;}));
1
+ function _0x264a(){const _0x1721da=['function','_initHideRowColWithSparkline','@univerjs-pro/license','NUMBER','call','CONNECT_WITH_LINE','emptyShowAs','rgb(49,106,246)','254353kIrhmN','Range','max','exclusiveRangesChange$','SPECIALTY','object','Injector','getUnitId','getSparkline','DisposableCollection','exports','_initMergeWithSparkline','BOOLEAN','_sparklineAnchorMap','startRow','from','21196aIhZmY','_univerInstanceService','unitId','RemoveRowMutation','ReorderRangeMutation','toRgbString','_commandService','0.25.2','UNIVER_SHEET','removeColumns','IUndoRedoService','sparklineAnchorMap','RemoveSheetCommand','Module','SpacialShowAsEnum','matrix','zero_value','SparklineThemeMapping','amd','_getRefRangeMutationsByDeleteRows','adjustRangeOnMutation','getSparklinePlacement','deleteUnit','size','ColorKit','entries','clone','item','_initSnapshot','_initRegisterCommand','updateConfig$','clearSparklineCache','assign','@univerjs/sheets','_ensureAnchorMatrix','SetColVisibleMutation','Rectangle','actualColumn','type','PIE_CHART','MoveColsMutation','contains','rgb(248,190,21)','SetColHiddenMutation','_sparklineDataSourceModel','_exclusiveRangeService','4dRPCsI','SetRowHiddenMutation','rxjs','params','u-connect','PROFIT_AND_LOSS_CHART','22071yWVJRS','SheetsSelectionsService','rgb(236,100,169)','InsertColMutation','rgb(80,102,248)','RemoveSheetSparklineCommand','getCurrentUnitOfType','prototype','map','nonNumShowAs','string','516UxRLqc','688923fRtWVH','setAlpha','range','COMMAND','_initDataChangeListener','toJSON','SheetInterceptorService','sheet.mutation.set-sparkline','RANGE_TYPE','isValidRange','setValue','48sMnRac','DISTINCTIVE','GROUP_EXTREMUM','add','asObservable','push','sheet.mutation.add-sparkline','spacing','AddSheetSparklineMutation','getActiveSheet','updateSparklineExtraNum','values','Inject','CommandType','themeType','delete','rgb(54,78,244)','Disposable','highPoint','setSparkline','44zkFlkC','actualRow','_sheetSelectionService','SparklineTypeEnum','sparklineModel','FRESH','getSizeOf','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','parse','_onRefRangeChange','UniverProSheetsSparkline','row','next','subscribe','getMatrix','iterator','markersPoint','realDeleteValue','rgb(124,66,147)','CUSTOM_EXTREMUM','refRangeHandle','SetSheetSparklineMutation','UniverInstanceType','CellValueType','getCellRaw','ranges','SELF_EXTREMUM','cellToRange','MoveRowsMutation','MoveRangeMutation','SPACING','symbol','RemoveSheetSparklineMutation','pushUndoRedo','length','SetRangeValuesMutation','Subject','distinctive','standard','forValue','rgb(30,177,189)','config','RemoveRowCommand','_injector','IUniverInstanceService','getSheetId','MUTATION','disposeWithMe','number','_initSheetChange','getValue','registerCommand','extremumMax','_sheetInterceptorService','IExclusiveRangeService','getCurrentSelections','lastPoint','BAR_CHART','22431ZTJLzt','disposableCollection','min','value','version','fromJSON','touchDependencies','forEach','getOwnPropertyDescriptor','SetRowVisibleMutation','getSheetCommandTarget','84jliBEx','getSparklineCache','rgb(252,117,60)','1458310CDLsNi','removePartSparkline','_sparklineModel','hasValue','PLUGIN_NAME','generateRandomId','defineProperty','getSparklineById','endRow','sequenceExecute','sparklines','negativePoint','default','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','UniverSheets','4632290YmaYjM','removeSparkline','SOFT','sheet.command.add-sparkline','ClearSelectionAllCommand','removeRows','getSubUnitSparkline','groupId','startColumn','has','ICommandService','endColumn','UniverProLicense','get','UniverSheetSparklinePlugin','intersects','_config','subUnitId','_refRangeService','_initCorrectRangeWithSparkline','decorate','reBuildAnchorCache','fresh','keys','LINE_CHART','Tools','ObjectMatrix','NORMAL','AddSheetSparklineCommand','_getRefRangeMutationsByDeleteCols','getCell','foreach','_initExclusiveRangeChange','set','column','toStringTag','UniverCore','DependentOn','moveRows','addSparkline','deepClone','rgb(244,104,249)','FORCE_STRING','specialty','_updateConfig$','_ensureConfigMap','toPrimitive','remove','onCommandExecuted','sheet.command.set-sparkline','_resourceManagerService','result','_initDependencies','@univerjs-pro/sheets-sparkline','STANDARD','connect_with_line','InsertRowMutation','dispose','SparklineExtremumTypeEnum','RemoveColCommand','CopySheetCommand','interceptCommand','u-spacing','SetWorksheetActivateCommand','stringify','STRING','IResourceManagerService'];_0x264a=function(){return _0x1721da;};return _0x264a();}function _0x5e17(_0x4b411f,_0x3bb423){_0x4b411f=_0x4b411f-0x1e8;const _0x264a82=_0x264a();let _0x5e17c1=_0x264a82[_0x4b411f];return _0x5e17c1;}(function(_0x565c83,_0x4e0c3c){const _0x5bfc26=_0x5e17,_0x132cfe=_0x565c83();while(!![]){try{const _0x3230de=-parseInt(_0x5bfc26(0x2df))/0x1*(parseInt(_0x5bfc26(0x2a5))/0x2)+parseInt(_0x5bfc26(0x27a))/0x3*(parseInt(_0x5bfc26(0x274))/0x4)+-parseInt(_0x5bfc26(0x2ed))/0x5+parseInt(_0x5bfc26(0x2ea))/0x6*(parseInt(_0x5bfc26(0x246))/0x7)+parseInt(_0x5bfc26(0x291))/0x8*(-parseInt(_0x5bfc26(0x286))/0x9)+parseInt(_0x5bfc26(0x1eb))/0xa+-parseInt(_0x5bfc26(0x236))/0xb*(-parseInt(_0x5bfc26(0x285))/0xc);if(_0x3230de===_0x4e0c3c)break;else _0x132cfe['push'](_0x132cfe['shift']());}catch(_0x26a2f5){_0x132cfe['push'](_0x132cfe['shift']());}}}(_0x264a,0x402b9),function(_0x43e93a,_0x51eb14){const _0x156057=_0x5e17;typeof exports==_0x156057(0x23b)&&typeof module<'u'?_0x51eb14(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x156057(0x22e)&&define[_0x156057(0x258)]?define([_0x156057(0x240),'@univerjs/core',_0x156057(0x267),'rxjs',_0x156057(0x230)],_0x51eb14):(_0x43e93a=typeof globalThis<'u'?globalThis:_0x43e93a||self,_0x51eb14(_0x43e93a[_0x156057(0x2af)]={},_0x43e93a[_0x156057(0x20f)],_0x43e93a[_0x156057(0x1ea)],_0x43e93a[_0x156057(0x276)],_0x43e93a[_0x156057(0x1f7)]));}(this,function(_0x21765b,_0x40a9fc,_0x1d765c,_0x47fa69,_0x4ba634){const _0x38bb02=_0x5e17;Object[_0x38bb02(0x2f3)](_0x21765b,Symbol[_0x38bb02(0x20e)],{'value':_0x38bb02(0x253)});function _0x14491c(_0x3bbbf4,_0x2dd283){const _0x29ca60=_0x38bb02;let _0x2fe546=new _0x40a9fc['ObjectMatrix'](),_0x3d6685=[],_0x5527c1=_0x3bbbf4[_0x29ca60(0x2c7)]>0x1,_0x5be1f8=0x0,_0x2a2d49=0x0;for(let _0x343e80 of _0x3bbbf4)_0x5be1f8+=_0x343e80[_0x29ca60(0x2f5)]-_0x343e80[_0x29ca60(0x244)]+0x1,_0x2a2d49+=_0x343e80[_0x29ca60(0x1f6)]-_0x343e80[_0x29ca60(0x1f3)]+0x1;for(let _0x37c9c3 of _0x2dd283)for(let _0x176db5=_0x37c9c3[_0x29ca60(0x244)];_0x176db5<=_0x37c9c3[_0x29ca60(0x2f5)];_0x176db5++)for(let _0x119350=_0x37c9c3[_0x29ca60(0x1f3)];_0x119350<=_0x37c9c3['endColumn'];_0x119350++)_0x3d6685[_0x29ca60(0x296)]({'row':_0x176db5,'column':_0x119350});if(_0x3d6685['length']===_0x5be1f8)_0x5527c1?_0x3d6685['forEach']((_0x3b7fe1,_0x46a9c0)=>{const _0xb2b001=_0x29ca60;let _0x17d582=_0x3bbbf4[_0x46a9c0],_0x8e25df={'startRow':_0x17d582[_0xb2b001(0x244)],'startColumn':_0x17d582[_0xb2b001(0x1f3)],'endRow':_0x17d582[_0xb2b001(0x244)],'endColumn':_0x17d582['endColumn']};_0x2fe546[_0xb2b001(0x290)](_0x3b7fe1[_0xb2b001(0x2b0)],_0x3b7fe1[_0xb2b001(0x20d)],_0x8e25df);}):_0x3d6685[_0x29ca60(0x2e6)]((_0x49b554,_0x67dded)=>{const _0xe4f891=_0x29ca60;let _0x52f31e=_0x3bbbf4[0x0],_0x5d9966={'startRow':_0x52f31e[_0xe4f891(0x244)]+_0x67dded,'startColumn':_0x52f31e[_0xe4f891(0x1f3)],'endRow':_0x52f31e['startRow']+_0x67dded,'endColumn':_0x52f31e['endColumn']};_0x2fe546[_0xe4f891(0x290)](_0x49b554[_0xe4f891(0x2b0)],_0x49b554['column'],_0x5d9966);});else{if(_0x3d6685[_0x29ca60(0x2c7)]===_0x2a2d49)_0x5527c1?_0x3d6685[_0x29ca60(0x2e6)]((_0x402654,_0x56f045)=>{const _0x184f78=_0x29ca60;let _0x437e2c=_0x3bbbf4[_0x56f045],_0x49d8b5={'startRow':_0x437e2c['startRow'],'startColumn':_0x437e2c[_0x184f78(0x1f3)],'endRow':_0x437e2c[_0x184f78(0x2f5)],'endColumn':_0x437e2c[_0x184f78(0x1f3)]};_0x2fe546[_0x184f78(0x290)](_0x402654[_0x184f78(0x2b0)],_0x402654[_0x184f78(0x20d)],_0x49d8b5);}):_0x3d6685['forEach']((_0x50f954,_0x4371aa)=>{const _0x5c9130=_0x29ca60;let _0x12f1be=_0x3bbbf4[0x0],_0x54dbd5={'startRow':_0x12f1be[_0x5c9130(0x244)],'startColumn':_0x12f1be[_0x5c9130(0x1f3)]+_0x4371aa,'endRow':_0x12f1be[_0x5c9130(0x2f5)],'endColumn':_0x12f1be[_0x5c9130(0x1f3)]+_0x4371aa};_0x2fe546['setValue'](_0x50f954['row'],_0x50f954[_0x5c9130(0x20d)],_0x54dbd5);});else{if(_0x3d6685[_0x29ca60(0x2c7)]===_0x3bbbf4[_0x29ca60(0x2c7)])_0x3bbbf4['every'](_0x3fdcee=>!(_0x3fdcee[_0x29ca60(0x244)]!==_0x3fdcee['endRow']&&_0x3fdcee['startColumn']!==_0x3fdcee['endColumn']))&&_0x3d6685[_0x29ca60(0x2e6)]((_0x109b98,_0x1717bc)=>{const _0xcdaa24=_0x29ca60;let _0x11ae12=_0x3bbbf4[_0x1717bc];_0x2fe546[_0xcdaa24(0x290)](_0x109b98[_0xcdaa24(0x2b0)],_0x109b98[_0xcdaa24(0x20d)],_0x11ae12);});else throw Error(_0x29ca60(0x1e9));}}return _0x2fe546;}let _0x10b317='SHEET_SPARKLINE_PLUGIN',_0x43330f={'standard':[_0x38bb02(0x2a1),_0x38bb02(0x27c)],'specialty':[_0x38bb02(0x235),_0x38bb02(0x2cd)],'distinctive':[_0x38bb02(0x2b7),_0x38bb02(0x2ec)],'soft':[_0x38bb02(0x27e),_0x38bb02(0x214)],'fresh':['rgb(46,187,122)',_0x38bb02(0x270)]},_0x2fb838=[_0x38bb02(0x2a3),'firstPoint',_0x38bb02(0x2dd),'lowPoint',_0x38bb02(0x2f8),_0x38bb02(0x2b5)],_0x2289d6=function(_0x1833e9){const _0x3dddea=_0x38bb02;return _0x1833e9[_0x3dddea(0x221)]=_0x3dddea(0x2cb),_0x1833e9[_0x3dddea(0x23a)]=_0x3dddea(0x216),_0x1833e9[_0x3dddea(0x292)]=_0x3dddea(0x2ca),_0x1833e9[_0x3dddea(0x1ed)]='soft',_0x1833e9[_0x3dddea(0x2aa)]=_0x3dddea(0x201),_0x1833e9['CUSTOM']='custom',_0x1833e9;}({}),_0x3c7b03=function(_0x2b65e1){const _0x1bae5c=_0x38bb02;return _0x2b65e1[_0x2b65e1[_0x1bae5c(0x203)]=0x1]=_0x1bae5c(0x203),_0x2b65e1[_0x2b65e1[_0x1bae5c(0x2de)]=0x2]='BAR_CHART',_0x2b65e1[_0x2b65e1[_0x1bae5c(0x279)]=0x3]='PROFIT_AND_LOSS_CHART',_0x2b65e1[_0x2b65e1[_0x1bae5c(0x26d)]=0x4]=_0x1bae5c(0x26d),_0x2b65e1;}({}),_0x229327=function(_0x4c416b){const _0x4a69c9=_0x38bb02;return _0x4c416b[_0x4a69c9(0x2c3)]='spacing',_0x4c416b['ZERO_VALUE']=_0x4a69c9(0x256),_0x4c416b[_0x4a69c9(0x233)]=_0x4a69c9(0x222),_0x4c416b;}({}),_0x3cf326=function(_0x20b91c){const _0x2f4b49=_0x38bb02;return _0x20b91c[_0x20b91c[_0x2f4b49(0x2bf)]=0x1]='SELF_EXTREMUM',_0x20b91c[_0x20b91c['GROUP_EXTREMUM']=0x2]=_0x2f4b49(0x293),_0x20b91c[_0x20b91c['CUSTOM_EXTREMUM']=0x3]=_0x2f4b49(0x2b8),_0x20b91c;}({});function _0x51ba3f(_0x109794){'@babel/helpers - typeof';const _0x3c6833=_0x38bb02;return _0x51ba3f=typeof Symbol==_0x3c6833(0x22e)&&typeof Symbol[_0x3c6833(0x2b4)]=='symbol'?function(_0xfc78d4){return typeof _0xfc78d4;}:function(_0x34b3e9){const _0x598f55=_0x3c6833;return _0x34b3e9&&typeof Symbol==_0x598f55(0x22e)&&_0x34b3e9['constructor']===Symbol&&_0x34b3e9!==Symbol[_0x598f55(0x281)]?_0x598f55(0x2c4):typeof _0x34b3e9;},_0x51ba3f(_0x109794);}function _0x2b1060(_0x277408,_0x37c4f5){const _0x5a24a9=_0x38bb02;if(_0x51ba3f(_0x277408)!=_0x5a24a9(0x23b)||!_0x277408)return _0x277408;var _0x2c15ba=_0x277408[Symbol[_0x5a24a9(0x219)]];if(_0x2c15ba!==void 0x0){var _0x3f33a9=_0x2c15ba[_0x5a24a9(0x232)](_0x277408,_0x37c4f5||_0x5a24a9(0x1e8));if(_0x51ba3f(_0x3f33a9)!=_0x5a24a9(0x23b))return _0x3f33a9;throw TypeError(_0x5a24a9(0x2ac));}return(_0x37c4f5===_0x5a24a9(0x284)?String:Number)(_0x277408);}function _0x1affa2(_0x4be4c3){const _0x316d38=_0x38bb02;var _0x163384=_0x2b1060(_0x4be4c3,_0x316d38(0x284));return _0x51ba3f(_0x163384)==_0x316d38(0x2c4)?_0x163384:_0x163384+'';}function _0x29101a(_0x3b392d,_0x307783,_0x353491){const _0x130b72=_0x38bb02;return(_0x307783=_0x1affa2(_0x307783))in _0x3b392d?Object[_0x130b72(0x2f3)](_0x3b392d,_0x307783,{'value':_0x353491,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b392d[_0x307783]=_0x353491,_0x3b392d;}function _0x36ff29(_0x522d68,_0x1f4b3b){return function(_0x2ca211,_0x3dfe10){_0x1f4b3b(_0x2ca211,_0x3dfe10,_0x522d68);};}function _0x89741f(_0x5ac86a,_0x8c6f94,_0x1238ae,_0x46036b){const _0x4df60d=_0x38bb02;var _0x309d56=arguments[_0x4df60d(0x2c7)],_0x3dbe40=_0x309d56<0x3?_0x8c6f94:_0x46036b===null?_0x46036b=Object[_0x4df60d(0x2e7)](_0x8c6f94,_0x1238ae):_0x46036b,_0x13d4f7;if(typeof Reflect==_0x4df60d(0x23b)&&typeof Reflect[_0x4df60d(0x1ff)]==_0x4df60d(0x22e))_0x3dbe40=Reflect[_0x4df60d(0x1ff)](_0x5ac86a,_0x8c6f94,_0x1238ae,_0x46036b);else{for(var _0x1d8fa0=_0x5ac86a[_0x4df60d(0x2c7)]-0x1;_0x1d8fa0>=0x0;_0x1d8fa0--)(_0x13d4f7=_0x5ac86a[_0x1d8fa0])&&(_0x3dbe40=(_0x309d56<0x3?_0x13d4f7(_0x3dbe40):_0x309d56>0x3?_0x13d4f7(_0x8c6f94,_0x1238ae,_0x3dbe40):_0x13d4f7(_0x8c6f94,_0x1238ae))||_0x3dbe40);}return _0x309d56>0x3&&_0x3dbe40&&Object['defineProperty'](_0x8c6f94,_0x1238ae,_0x3dbe40),_0x3dbe40;}let _0x17df7a=class extends _0x40a9fc['Disposable']{constructor(_0x45de10){const _0xad237=_0x38bb02;super(),this[_0xad237(0x247)]=_0x45de10,_0x29101a(this,_0xad237(0x2ef),new Map()),_0x29101a(this,_0xad237(0x243),new Map()),_0x29101a(this,_0xad237(0x217),new _0x47fa69[(_0xad237(0x2c9))]()),_0x29101a(this,_0xad237(0x264),this['_updateConfig$'][_0xad237(0x295)]());}[_0x38bb02(0x218)](_0x26d88a,_0x1507b1){const _0x5e742d=_0x38bb02;let _0x51519e=this['_sparklineModel'][_0x5e742d(0x1f8)](_0x26d88a);_0x51519e||(_0x51519e=new Map(),this[_0x5e742d(0x2ef)]['set'](_0x26d88a,_0x51519e));let _0x3e59aa=_0x51519e[_0x5e742d(0x1f8)](_0x1507b1);return _0x3e59aa||(_0x3e59aa=new Map(),_0x51519e[_0x5e742d(0x20c)](_0x1507b1,_0x3e59aa)),_0x3e59aa;}[_0x38bb02(0x268)](_0x3d4a,_0x2ff153){const _0x2af2df=_0x38bb02;let _0x3a2e42=this[_0x2af2df(0x243)][_0x2af2df(0x1f8)](_0x3d4a);_0x3a2e42||(_0x3a2e42=new Map(),this[_0x2af2df(0x243)][_0x2af2df(0x20c)](_0x3d4a,_0x3a2e42));let _0x1d9000=_0x3a2e42[_0x2af2df(0x1f8)](_0x2ff153);return _0x1d9000||(_0x1d9000={'matrix':new _0x40a9fc['ObjectMatrix'](),'extra':{}},_0x3a2e42[_0x2af2df(0x20c)](_0x2ff153,_0x1d9000)),_0x1d9000;}[_0x38bb02(0x29b)](_0x1c84c2,_0x466779,_0x44c5a7,_0x3e8057=_0x38bb02(0x20c)){const _0x318d39=_0x38bb02;var _0x55480e,_0x36bb30,_0x37f446,_0x3b77af,_0x265ed4,_0x5b2667,_0x55e51a,_0x1cf3bb;let _0x58a0a3=(_0x55480e=this[_0x318d39(0x2ef)][_0x318d39(0x1f8)](_0x1c84c2))==null||(_0x55480e=_0x55480e[_0x318d39(0x1f8)](_0x466779))==null?void 0x0:_0x55480e[_0x318d39(0x1f8)](_0x44c5a7);if(!_0x58a0a3)return;let _0x5550ed=(0x0,_0x1d765c[_0x318d39(0x2e9)])(this[_0x318d39(0x247)],{'unitId':_0x1c84c2,'subUnitId':_0x466779});if(!_0x5550ed)return;let {extra:_0x564cad,matrix:_0x31869b}=this[_0x318d39(0x268)](_0x1c84c2,_0x466779),{worksheet:_0x1d9304}=_0x5550ed,_0x30aef4=-(0x2**0x35-0x1),_0x16c68d=0x2**0x35-0x1,_0x30d074=(_0x36bb30=_0x58a0a3['config']['containHiddenCells'])==null?!0x1:_0x36bb30;_0x58a0a3['sparklines'][_0x318d39(0x2cc)]((_0x15b0ea,_0x4bd926,_0x2010be)=>{const _0x55ad7e=_0x318d39;let _0x8df659=_0x2010be,_0x33943a=-(0x2**0x35-0x1),_0x1ba0d6=0x2**0x35-0x1,_0x2cba0a=0x0,_0x144539=0x0,_0x3657df=[];if(!(0x0,_0x40a9fc[_0x55ad7e(0x28f)])(_0x8df659))_0x31869b[_0x55ad7e(0x290)](_0x15b0ea,_0x4bd926,{'groupId':_0x44c5a7,'data':[],'max':_0x33943a,'min':_0x1ba0d6,'highIndex':_0x2cba0a,'lowIndex':_0x144539,'negativeIndexes':_0x3657df});else{let _0x23fcdd=[];for(let _0x4a36e6=_0x8df659[_0x55ad7e(0x244)];_0x4a36e6<=_0x8df659['endRow'];_0x4a36e6++){for(let _0x30806c=_0x8df659[_0x55ad7e(0x1f3)];_0x30806c<=_0x8df659[_0x55ad7e(0x1f6)];_0x30806c++){var _0x5beb51;let _0x2a5220=_0x1d9304['getRowVisible'](_0x4a36e6),_0x45e649=_0x1d9304['getColVisible'](_0x30806c);if(!_0x30d074&&(!_0x2a5220||!_0x45e649))continue;let _0x2d54f9=0x0,_0x19385=((_0x5beb51=_0x1d9304[_0x55ad7e(0x2bd)](_0x4a36e6,_0x30806c))==null?void 0x0:_0x5beb51['v'])===void 0x0?_0x1d9304[_0x55ad7e(0x209)](_0x4a36e6,_0x30806c):_0x1d9304[_0x55ad7e(0x2bd)](_0x4a36e6,_0x30806c);if(!_0x19385||_0x19385['v']===void 0x0||_0x19385['v']===null){var _0x324bab;let _0x5d90ab=(_0x324bab=_0x58a0a3['config'][_0x55ad7e(0x234)])==null?_0x55ad7e(0x298):_0x324bab;_0x5d90ab===_0x55ad7e(0x256)?_0x2d54f9=0x0:_0x5d90ab==='spacing'?_0x2d54f9=_0x55ad7e(0x229):_0x5d90ab===_0x55ad7e(0x222)&&(_0x2d54f9=_0x55ad7e(0x278));}else{if(_0x19385['t']===_0x40a9fc[_0x55ad7e(0x2bc)][_0x55ad7e(0x22c)]||_0x19385['t']===_0x40a9fc[_0x55ad7e(0x2bc)][_0x55ad7e(0x215)]){var _0xfea3d5;let _0xfd41d4=(_0xfea3d5=_0x58a0a3[_0x55ad7e(0x2ce)][_0x55ad7e(0x283)])==null?_0x55ad7e(0x298):_0xfea3d5;_0xfd41d4===_0x55ad7e(0x256)?_0x2d54f9=0x0:_0xfd41d4===_0x55ad7e(0x298)?_0x2d54f9=_0x55ad7e(0x229):_0xfd41d4===_0x55ad7e(0x222)&&(_0x2d54f9='u-connect');}else _0x2d54f9=_0x19385['t']===_0x40a9fc[_0x55ad7e(0x2bc)][_0x55ad7e(0x242)]?+!!_0x19385['v']:_0x19385['t']===_0x40a9fc[_0x55ad7e(0x2bc)][_0x55ad7e(0x231)]?Number(_0x19385['v']):_0x19385['v'];}if(_0x23fcdd[_0x55ad7e(0x296)](_0x2d54f9),typeof _0x2d54f9==_0x55ad7e(0x2d5)){_0x33943a=Math[_0x55ad7e(0x238)](_0x33943a,_0x2d54f9),_0x30aef4=Math['max'](_0x30aef4,_0x2d54f9),_0x16c68d=Math[_0x55ad7e(0x2e1)](_0x16c68d,_0x2d54f9),_0x1ba0d6=Math[_0x55ad7e(0x2e1)](_0x1ba0d6,_0x2d54f9);let _0x231aff=typeof _0x23fcdd[_0x2cba0a]==_0x55ad7e(0x2d5)?Number(_0x23fcdd[_0x2cba0a]):-(0x2**0x35-0x1);_0x2d54f9>_0x231aff&&(_0x2cba0a=_0x23fcdd['length']-0x1);let _0x1dcb05=typeof _0x23fcdd[_0x144539]==_0x55ad7e(0x2d5)?Number(_0x23fcdd[_0x144539]):0x2**0x35-0x1;_0x2d54f9<_0x1dcb05&&(_0x144539=_0x23fcdd['length']-0x1),_0x2d54f9<0x0&&_0x3657df[_0x55ad7e(0x296)](_0x23fcdd[_0x55ad7e(0x2c7)]-0x1);}}_0x31869b['setValue'](_0x15b0ea,_0x4bd926,{'groupId':_0x44c5a7,'data':_0x23fcdd,'max':_0x33943a,'min':_0x1ba0d6,'highIndex':_0x2cba0a,'lowIndex':_0x144539,'negativeIndexes':_0x3657df});}}});let _0x40d680=_0x30aef4;if(((_0x37f446=_0x58a0a3[_0x318d39(0x2ce)][_0x318d39(0x2d9)])==null?void 0x0:_0x37f446['type'])===0x3){var _0x3da797,_0x460476;_0x40d680=(_0x3da797=(_0x460476=_0x58a0a3[_0x318d39(0x2ce)][_0x318d39(0x2d9)])==null?void 0x0:_0x460476['value'])==null?_0x30aef4:_0x3da797;}let _0x17af09=_0x16c68d;if(((_0x3b77af=_0x58a0a3[_0x318d39(0x2ce)]['extremumMin'])==null?void 0x0:_0x3b77af[_0x318d39(0x26c)])===0x3){var _0x45b19a,_0x2f9a45;_0x17af09=(_0x45b19a=(_0x2f9a45=_0x58a0a3[_0x318d39(0x2ce)]['extremumMin'])==null?void 0x0:_0x2f9a45[_0x318d39(0x2e2)])==null?_0x16c68d:_0x45b19a;}let _0x1924e2=(_0x265ed4=_0x58a0a3[_0x318d39(0x2ce)][_0x318d39(0x29f)])==null?_0x318d39(0x2cb):_0x265ed4,_0x2ae377=new _0x40a9fc[(_0x318d39(0x25e))]((_0x5b2667=(_0x55e51a=_0x58a0a3[_0x318d39(0x2ce)]['seriesColor'])==null?(_0x1cf3bb=_0x43330f[_0x1924e2])==null?void 0x0:_0x1cf3bb[0x0]:_0x55e51a)==null?_0x43330f[_0x318d39(0x2cb)][0x0]:_0x5b2667),_0x2e0ea2=_0x2ae377[_0x318d39(0x287)](0.2)['toRgbString'](),_0x1702ef=_0x2ae377[_0x318d39(0x287)](0.05)[_0x318d39(0x24b)]();_0x564cad[_0x44c5a7]={'groupMax':_0x30aef4,'groupMin':_0x16c68d,'showMax':_0x40d680,'showMin':_0x17af09,'startGradient':_0x2e0ea2,'endGradient':_0x1702ef},this['_updateConfig$'][_0x318d39(0x2b1)]({'unitId':_0x1c84c2,'subUnitId':_0x466779,'groupId':_0x44c5a7,'config':_0x58a0a3,'type':_0x3e8057});}[_0x38bb02(0x212)](_0x2becd0,_0x3203cb,_0x1735d3,_0x12c770){const _0x28d20a=_0x38bb02;this[_0x28d20a(0x218)](_0x2becd0,_0x3203cb)[_0x28d20a(0x20c)](_0x1735d3,_0x12c770),this[_0x28d20a(0x29b)](_0x2becd0,_0x3203cb,_0x1735d3,_0x28d20a(0x294));}['setSparkline'](_0x539e8d,_0x1c5f01,_0x43a479,_0x5a2b4f){const _0x13ed45=_0x38bb02;var _0x1afccc;let _0x57dcee=(_0x1afccc=this['_sparklineModel']['get'](_0x539e8d))==null?void 0x0:_0x1afccc[_0x13ed45(0x1f8)](_0x1c5f01);_0x43a479['forEach'](_0x41ed99=>{const _0x576615=_0x13ed45;_0x57dcee!=null&&_0x57dcee['has'](_0x41ed99)&&(_0x57dcee[_0x576615(0x20c)](_0x41ed99,_0x5a2b4f),this[_0x576615(0x29b)](_0x539e8d,_0x1c5f01,_0x41ed99));});}[_0x38bb02(0x1ec)](_0x37cfe4,_0x557ef4,_0x5a12cc){const _0xd74641=_0x38bb02;let _0x102a5f=this[_0xd74641(0x2ef)]['get'](_0x37cfe4);if(_0x102a5f){let _0x5d8b45=_0x102a5f['get'](_0x557ef4);if(_0x5d8b45){var _0x37e572,_0xe7482d;_0x5d8b45['delete'](_0x5a12cc);let _0x3d7045=(_0x37e572=this['_sparklineAnchorMap'][_0xd74641(0x1f8)](_0x37cfe4))==null?void 0x0:_0x37e572[_0xd74641(0x1f8)](_0x557ef4);_0x3d7045==null||(_0xe7482d=_0x3d7045[_0xd74641(0x255)])==null||_0xe7482d[_0xd74641(0x2cc)]((_0x35677d,_0x40430d,_0x324894)=>{const _0x418a41=_0xd74641;(_0x324894==null?void 0x0:_0x324894[_0x418a41(0x1f2)])===_0x5a12cc&&(_0x3d7045==null||_0x3d7045[_0x418a41(0x255)][_0x418a41(0x2b6)](_0x35677d,_0x40430d));}),this[_0xd74641(0x217)][_0xd74641(0x2b1)]({'unitId':_0x37cfe4,'subUnitId':_0x557ef4,'groupId':_0x5a12cc,'type':_0xd74641(0x21a)}),_0x5d8b45[_0xd74641(0x25d)]===0x0&&_0x102a5f[_0xd74641(0x2a0)](_0x557ef4);}}}[_0x38bb02(0x2ee)](_0x4ca267,_0x2603fa,_0x55ec63,_0x2862ef){const _0x4840b5=_0x38bb02;var _0x36dcf2;let _0x59fc5e=(_0x36dcf2=this['_sparklineAnchorMap'][_0x4840b5(0x1f8)](_0x4ca267))==null?void 0x0:_0x36dcf2['get'](_0x2603fa),_0x426c31=_0x59fc5e==null?void 0x0:_0x59fc5e[_0x4840b5(0x255)][_0x4840b5(0x2d7)](_0x55ec63,_0x2862ef);if(_0x426c31){var _0x15763a,_0x3699e4,_0xa9f15d;let {groupId:_0x4143d0}=_0x426c31,_0x1af644=(_0x15763a=this[_0x4840b5(0x2ef)][_0x4840b5(0x1f8)](_0x4ca267))==null?void 0x0:_0x15763a[_0x4840b5(0x1f8)](_0x2603fa);_0x1af644==null||(_0x3699e4=_0x1af644['get'](_0x4143d0))==null||_0x3699e4[_0x4840b5(0x2f7)][_0x4840b5(0x2b6)](_0x55ec63,_0x2862ef),!(_0x1af644==null||(_0xa9f15d=_0x1af644[_0x4840b5(0x1f8)](_0x4143d0))==null)&&_0xa9f15d[_0x4840b5(0x2f7)][_0x4840b5(0x2f0)]()||_0x1af644==null||_0x1af644[_0x4840b5(0x2a0)](_0x4143d0),_0x59fc5e==null||_0x59fc5e['matrix']['realDeleteValue'](_0x55ec63,_0x2862ef),this[_0x4840b5(0x217)][_0x4840b5(0x2b1)]({'unitId':_0x4ca267,'subUnitId':_0x2603fa,'groupId':_0x4143d0,'type':_0x4840b5(0x21a)});}}[_0x38bb02(0x265)](_0x4cd64b,_0x20c3f4,_0x133ebc){const _0x1c2977=_0x38bb02;var _0x243964,_0x252932;let _0x44d417=(_0x243964=this[_0x1c2977(0x2ef)][_0x1c2977(0x1f8)](_0x4cd64b))==null||(_0x243964=_0x243964[_0x1c2977(0x1f8)](_0x20c3f4))==null||(_0x243964=_0x243964['get'](_0x133ebc))==null?void 0x0:_0x243964[_0x1c2977(0x2f7)],_0xa5f2b7=(_0x252932=this[_0x1c2977(0x243)][_0x1c2977(0x1f8)](_0x4cd64b))==null?void 0x0:_0x252932[_0x1c2977(0x1f8)](_0x20c3f4);if(_0x44d417&&_0xa5f2b7){let {matrix:_0x1dfd06,extra:_0x2e6027}=_0xa5f2b7;_0x44d417['forValue']((_0x5883cd,_0xa48d39,_0x1f96cf)=>{const _0xef141c=_0x1c2977;_0x1dfd06[_0xef141c(0x2b6)](_0x5883cd,_0xa48d39);}),delete _0x2e6027[_0x133ebc];}}[_0x38bb02(0x1f1)](_0x4d1334,_0x3c852f){const _0x4210ba=_0x38bb02;var _0x1083d6;return(_0x1083d6=this[_0x4210ba(0x2ef)][_0x4210ba(0x1f8)](_0x4d1334))==null?void 0x0:_0x1083d6[_0x4210ba(0x1f8)](_0x3c852f);}[_0x38bb02(0x2f4)](_0x51bf2c,_0x568208,_0x4fadae){const _0x5a033d=_0x38bb02;var _0x525cda;return(_0x525cda=this[_0x5a033d(0x2ef)][_0x5a033d(0x1f8)](_0x51bf2c))==null||(_0x525cda=_0x525cda['get'](_0x568208))==null?void 0x0:_0x525cda[_0x5a033d(0x1f8)](_0x4fadae);}[_0x38bb02(0x23e)](_0x3e4cc4,_0x38c3ae,_0x1978f2,_0x1022b8){const _0x546776=_0x38bb02;var _0x54bd48;return(_0x54bd48=this[_0x546776(0x243)]['get'](_0x3e4cc4))==null||(_0x54bd48=_0x54bd48[_0x546776(0x1f8)](_0x38c3ae))==null||(_0x54bd48=_0x54bd48[_0x546776(0x255)][_0x546776(0x2d7)](_0x1978f2,_0x1022b8))==null?void 0x0:_0x54bd48[_0x546776(0x1f2)];}[_0x38bb02(0x200)](_0x4cc1a3,_0xea7e68){const _0x22b265=_0x38bb02;var _0x3e6a19;let _0x4b4c6d=this[_0x22b265(0x268)](_0x4cc1a3,_0xea7e68);_0x4b4c6d[_0x22b265(0x255)][_0x22b265(0x2cc)]((_0x19708c,_0x217976)=>{const _0x9f2083=_0x22b265;_0x4b4c6d[_0x9f2083(0x255)]['realDeleteValue'](_0x19708c,_0x217976);});let _0x50a1f7=(_0x3e6a19=this['_sparklineModel']['get'](_0x4cc1a3))==null?void 0x0:_0x3e6a19['get'](_0xea7e68);if(_0x50a1f7){for(let [_0x455fd1]of _0x50a1f7)this['updateSparklineExtraNum'](_0x4cc1a3,_0xea7e68,_0x455fd1);}}[_0x38bb02(0x2eb)](){const _0x238c51=_0x38bb02;return{'sparklineModel':this[_0x238c51(0x2ef)],'sparklineAnchorMap':this[_0x238c51(0x243)]};}[_0x38bb02(0x28b)](_0x9ea0d3){const _0x1ea322=_0x38bb02;let _0x54b485={};if(this[_0x1ea322(0x2ef)][_0x1ea322(0x1f4)](_0x9ea0d3)){_0x54b485[_0x9ea0d3]={};let _0x813b96=this[_0x1ea322(0x2ef)][_0x1ea322(0x1f8)](_0x9ea0d3);_0x813b96!=null&&_0x813b96['size']&&Array[_0x1ea322(0x245)](_0x813b96[_0x1ea322(0x202)]())['forEach'](_0xc205bf=>{const _0x3c0209=_0x1ea322;_0x54b485[_0x9ea0d3][_0xc205bf]={};let _0x16ff2c=_0x813b96[_0x3c0209(0x1f8)](_0xc205bf);_0x16ff2c!=null&&_0x16ff2c[_0x3c0209(0x25d)]&&Array[_0x3c0209(0x245)](_0x16ff2c[_0x3c0209(0x202)]())[_0x3c0209(0x2e6)](_0x5829f2=>{const _0x568d64=_0x3c0209;let _0x7b1b51=_0x16ff2c[_0x568d64(0x1f8)](_0x5829f2);_0x7b1b51&&(_0x54b485[_0x9ea0d3][_0xc205bf][_0x5829f2]={'config':_0x7b1b51['config'],'sparklines':_0x7b1b51[_0x568d64(0x2f7)]['getMatrix']()});});});}return _0x54b485;}[_0x38bb02(0x2e4)](_0x5d0bed){const _0x13cb5c=_0x38bb02;_0x5d0bed&&Object['keys'](_0x5d0bed)[_0x13cb5c(0x2e6)](_0xebd235=>{const _0x4d616b=_0x13cb5c;let _0x1346cb=_0x5d0bed[_0xebd235];_0x1346cb&&Object[_0x4d616b(0x202)](_0x1346cb)['forEach'](_0xccc50f=>{const _0xe85d33=_0x4d616b;let _0x5e5aee=_0x1346cb[_0xccc50f];_0x5e5aee&&Object[_0xe85d33(0x202)](_0x5e5aee)[_0xe85d33(0x2e6)](_0x4caafb=>{const _0x56e07e=_0xe85d33;let _0x40bcbc=_0x5e5aee[_0x4caafb];if(_0x40bcbc){let _0x23ec0c={'config':_0x40bcbc[_0x56e07e(0x2ce)],'sparklines':new _0x40a9fc[(_0x56e07e(0x205))](_0x40bcbc['sparklines'])};this[_0x56e07e(0x212)](_0xebd235,_0xccc50f,_0x4caafb,_0x23ec0c);}});});});}[_0x38bb02(0x25c)](_0x24faa3){const _0x3f7364=_0x38bb02;let _0x511efa=this['_sparklineModel'][_0x3f7364(0x1f8)](_0x24faa3);if(_0x511efa){for(let [_0x252a84]of _0x511efa){let _0x43aee3=_0x511efa[_0x3f7364(0x1f8)](_0x252a84);if(_0x43aee3){for(let [_0x85e901]of _0x43aee3)this[_0x3f7364(0x265)](_0x24faa3,_0x252a84,_0x85e901);}}this[_0x3f7364(0x2ef)]['delete'](_0x24faa3);}}};_0x17df7a=_0x89741f([_0x36ff29(0x0,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x40a9fc[_0x38bb02(0x2d1)]))],_0x17df7a);let _0x3011a5={'id':_0x38bb02(0x297),'type':_0x40a9fc[_0x38bb02(0x29e)]['MUTATION'],'handler':(_0x28b6bf,_0x424cd1)=>{const _0x21b36d=_0x38bb02;if(!_0x424cd1)return!0x1;let {sparklineConfigMap:_0x441ce0,unitId:_0x543ae7,subUnitId:_0x1bc4a3}=_0x424cd1,_0x1bf501=_0x28b6bf[_0x21b36d(0x1f8)](_0x17df7a);return Object[_0x21b36d(0x25f)](_0x441ce0)[_0x21b36d(0x2e6)](([_0x308413,_0x24f392])=>{const _0x12fd5d=_0x21b36d;let _0x292e7c={'config':_0x24f392['config'],'sparklines':new _0x40a9fc[(_0x12fd5d(0x205))](_0x24f392[_0x12fd5d(0x2f7)])};_0x1bf501[_0x12fd5d(0x212)](_0x543ae7,_0x1bc4a3,_0x308413,_0x292e7c);}),!0x0;}},_0x1551a4={'id':'sheet.mutation.remove-sparkline','type':_0x40a9fc['CommandType']['MUTATION'],'handler':(_0x949a2f,_0x5cc932)=>{const _0x152e7e=_0x38bb02;if(!_0x5cc932)return!0x1;let {unitId:_0x5a5efb,subUnitId:_0x5cb5e4,ranges:_0x2b8cef,isSingle:_0x261979,groupIds:_0x484596}=_0x5cc932,_0x40c8c9=_0x949a2f[_0x152e7e(0x1f8)](_0x17df7a);return _0x484596?(_0x484596[_0x152e7e(0x2e6)](_0x93c017=>{_0x40c8c9['removeSparkline'](_0x5a5efb,_0x5cb5e4,_0x93c017);}),!0x0):_0x2b8cef?(_0x2b8cef['forEach'](_0x2ee91d=>{_0x40a9fc['Range']['foreach'](_0x2ee91d,(_0x36f5bb,_0x8b87fb)=>{const _0x2d5667=_0x5e17;let _0x16954c=_0x40c8c9[_0x2d5667(0x23e)](_0x5a5efb,_0x5cb5e4,_0x36f5bb,_0x8b87fb);_0x16954c&&(_0x261979?_0x40c8c9[_0x2d5667(0x2ee)](_0x5a5efb,_0x5cb5e4,_0x36f5bb,_0x8b87fb):_0x40c8c9[_0x2d5667(0x1ec)](_0x5a5efb,_0x5cb5e4,_0x16954c));});}),!0x0):!0x1;}},_0x17b0a6={'id':_0x38bb02(0x1ee),'type':_0x40a9fc['CommandType']['COMMAND'],'handler':(_0x3f1af5,_0x466d43)=>{const _0xe8fff5=_0x38bb02;if(!_0x466d43)return!0x1;let {sourceRanges:_0x5c25d9,targetRanges:_0x418718,config:_0x1f9494}=_0x466d43,_0x715f95=_0x3f1af5['get'](_0x40a9fc[_0xe8fff5(0x250)]),_0x2c8197='g_'+(0x0,_0x40a9fc[_0xe8fff5(0x2f2)])(0x6),_0x3bc124=_0x14491c(_0x5c25d9,_0x418718),_0x54e7da={'config':_0x1f9494==null?{}:_0x1f9494,'sparklines':_0x3bc124[_0xe8fff5(0x2b3)]()},_0x5b16bb=_0x3f1af5[_0xe8fff5(0x1f8)](_0x40a9fc[_0xe8fff5(0x2d1)]),_0x7d53d2=_0x3f1af5[_0xe8fff5(0x1f8)](_0x17df7a),_0x56d7c9=(0x0,_0x1d765c[_0xe8fff5(0x2e9)])(_0x5b16bb);if(!_0x56d7c9)return!0x1;let {unitId:_0x523c3e,subUnitId:_0x5344cf}=_0x56d7c9,_0x86e24e=_0x3f1af5[_0xe8fff5(0x1f8)](_0x40a9fc[_0xe8fff5(0x1f5)]),_0x297adb=[],_0x3ab27d=[],_0x20f6b1={},_0x2b4f8f={},_0x22bd86=new Set([_0x2c8197]);_0x3bc124[_0xe8fff5(0x2cc)]((_0x4467a6,_0x4e8346,_0x1b35a8)=>{const _0x394270=_0xe8fff5;let _0x28f5c5=_0x7d53d2[_0x394270(0x23e)](_0x523c3e,_0x5344cf,_0x4467a6,_0x4e8346);if(_0x28f5c5){let _0x1e3ef6=_0x7d53d2[_0x394270(0x2f4)](_0x523c3e,_0x5344cf,_0x28f5c5);if(_0x1e3ef6){_0x22bd86[_0x394270(0x294)](_0x28f5c5);let _0x55c7cf=_0x20f6b1[_0x28f5c5],_0x1925f8=_0x2b4f8f[_0x28f5c5];_0x1925f8||(_0x1925f8={'config':_0x40a9fc[_0x394270(0x204)][_0x394270(0x213)](_0x1e3ef6[_0x394270(0x2ce)]),'sparklines':new _0x40a9fc['ObjectMatrix'](_0x1e3ef6[_0x394270(0x2f7)][_0x394270(0x260)]())},_0x2b4f8f[_0x28f5c5]=_0x1925f8),_0x55c7cf||(_0x55c7cf={'config':_0x40a9fc[_0x394270(0x204)][_0x394270(0x213)](_0x1e3ef6[_0x394270(0x2ce)]),'sparklines':_0x1e3ef6['sparklines'][_0x394270(0x260)]()},_0x20f6b1[_0x28f5c5]=_0x55c7cf),_0x1925f8['sparklines'][_0x394270(0x2b6)](_0x4467a6,_0x4e8346);}}});let _0x1179e1={};return Object[_0xe8fff5(0x25f)](_0x2b4f8f)[_0xe8fff5(0x2e6)](([_0x5745a9,_0x1b20a9])=>{const _0x592c99=_0xe8fff5;_0x1b20a9['sparklines']['getSizeOf']()&&(_0x1179e1[_0x5745a9]={'config':_0x1b20a9[_0x592c99(0x2ce)],'sparklines':_0x1b20a9[_0x592c99(0x2f7)][_0x592c99(0x260)]()});}),_0x1179e1[_0x2c8197]=_0x54e7da,_0x297adb[_0xe8fff5(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0x523c3e,'subUnitId':_0x5344cf,'groupIds':Array['from'](_0x22bd86),'isSingle':!0x1}}),_0x22bd86['size']>0x1&&(_0x3ab27d['push']({'id':_0x1551a4['id'],'params':{'unitId':_0x523c3e,'subUnitId':_0x5344cf,'groupIds':Array['from'](_0x22bd86),'isSingle':!0x1}}),_0x297adb[_0xe8fff5(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0x523c3e,'subUnitId':_0x5344cf,'sparklineConfigMap':_0x20f6b1}})),_0x3ab27d['push']({'id':_0x3011a5['id'],'params':{'unitId':_0x523c3e,'subUnitId':_0x5344cf,'sparklineConfigMap':_0x1179e1}}),(0x0,_0x40a9fc[_0xe8fff5(0x2f6)])(_0x3ab27d,_0x86e24e)[_0xe8fff5(0x21e)]?(_0x715f95['pushUndoRedo']({'unitID':_0x523c3e,'undoMutations':_0x297adb,'redoMutations':_0x3ab27d}),!0x0):!0x1;}},_0x613b29={'id':'sheet.command.remove-sparkline','type':_0x40a9fc['CommandType'][_0x38bb02(0x289)],'handler':(_0x53c67f,_0x4be909)=>{const _0x55428a=_0x38bb02;var _0x4fe57c;let {isSingle:_0x20113a=!0x0}=_0x4be909||{},_0x406380=_0x53c67f['get'](_0x40a9fc[_0x55428a(0x1f5)]),_0xb826dc=_0x53c67f[_0x55428a(0x1f8)](_0x40a9fc[_0x55428a(0x2d1)]),_0x50faf9=_0x53c67f[_0x55428a(0x1f8)](_0x17df7a),_0x4b45c7=_0x53c67f[_0x55428a(0x1f8)](_0x40a9fc[_0x55428a(0x250)]),_0x27d8a2=(0x0,_0x1d765c[_0x55428a(0x2e9)])(_0xb826dc);if(!_0x27d8a2)return!0x1;let _0x55479d=_0x53c67f['get'](_0x1d765c[_0x55428a(0x27b)]),_0x5aedd1=(_0x4fe57c=_0x4be909==null?void 0x0:_0x4be909[_0x55428a(0x2be)])==null?_0x55479d[_0x55428a(0x2dc)]()[_0x55428a(0x282)](_0x7dc17=>_0x7dc17['range']):_0x4fe57c,{unitId:_0x2a1115,subUnitId:_0x112134}=_0x27d8a2,_0x73a2b6=[],_0x5b78ad=[];_0x73a2b6['push']({'id':_0x1551a4['id'],'params':{'unitId':_0x2a1115,'subUnitId':_0x112134,'ranges':_0x5aedd1,'isSingle':_0x20113a}});let _0x24874c=[],_0x5b98e2={};return _0x5aedd1[_0x55428a(0x2e6)](_0x1a1397=>{const _0x391fcb=_0x55428a;_0x40a9fc[_0x391fcb(0x237)][_0x391fcb(0x20a)](_0x1a1397,(_0x19fa99,_0x3ec88c)=>{const _0x529d76=_0x391fcb;let _0x2852de=_0x50faf9['getSparkline'](_0x2a1115,_0x112134,_0x19fa99,_0x3ec88c);if(_0x2852de){let _0x126ecb=_0x50faf9[_0x529d76(0x2f4)](_0x2a1115,_0x112134,_0x2852de);_0x126ecb&&(_0x24874c[_0x529d76(0x296)](_0x2852de),_0x5b98e2[_0x2852de]={'config':_0x40a9fc['Tools'][_0x529d76(0x213)](_0x126ecb[_0x529d76(0x2ce)]),'sparklines':_0x40a9fc[_0x529d76(0x204)][_0x529d76(0x213)](_0x126ecb[_0x529d76(0x2f7)][_0x529d76(0x260)]())});}});}),_0x5b78ad['push']({'id':_0x1551a4['id'],'params':{'unitId':_0x2a1115,'subUnitId':_0x112134,'groupIds':_0x24874c,'isSingle':!0x1}}),_0x5b78ad[_0x55428a(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0x2a1115,'subUnitId':_0x112134,'sparklineConfigMap':_0x5b98e2}}),(0x0,_0x40a9fc[_0x55428a(0x2f6)])(_0x73a2b6,_0x406380)['result']?(_0x4b45c7[_0x55428a(0x2c6)]({'unitID':_0x2a1115,'undoMutations':_0x5b78ad,'redoMutations':_0x73a2b6}),!0x0):!0x1;}},_0x485853={'id':_0x38bb02(0x28d),'type':_0x40a9fc[_0x38bb02(0x29e)][_0x38bb02(0x2d3)],'handler':(_0x3962c6,_0xe90487)=>{const _0x3ef294=_0x38bb02;if(!_0xe90487)return!0x1;let {unitId:_0x1ca0a5,subUnitId:_0x47d406,groupIds:_0x50ccc7,config:_0x2bb637}=_0xe90487,_0x34e5b3=_0x3962c6[_0x3ef294(0x1f8)](_0x17df7a);return _0x50ccc7[_0x3ef294(0x2e6)](_0x55803f=>{const _0x2793a3=_0x3ef294;let _0x98fe14=_0x34e5b3[_0x2793a3(0x2f4)](_0x1ca0a5,_0x47d406,_0x55803f);if(_0x98fe14){let _0xc29fa1={'config':Object[_0x2793a3(0x266)]({},_0x98fe14[_0x2793a3(0x2ce)],_0x2bb637[_0x2793a3(0x2ce)]),'sparklines':new _0x40a9fc[(_0x2793a3(0x205))](_0x98fe14[_0x2793a3(0x2f7)]['clone']())};_0x34e5b3[_0x2793a3(0x2a4)](_0x1ca0a5,_0x47d406,[_0x55803f],_0xc29fa1);}}),!0x0;}},_0x11dffa={'id':_0x38bb02(0x21c),'type':_0x40a9fc[_0x38bb02(0x29e)][_0x38bb02(0x289)],'handler':(_0x54a899,_0x1cbf7c)=>{const _0x27caec=_0x38bb02;var _0x47541a,_0x2bde5f;if(!_0x1cbf7c)return!0x1;let _0x96a629=_0x54a899[_0x27caec(0x1f8)](_0x40a9fc['ICommandService']),_0x5f8c37=_0x54a899['get'](_0x1d765c[_0x27caec(0x27b)]),_0x4b666b=_0x54a899[_0x27caec(0x1f8)](_0x17df7a),_0x4dd5e4=_0x54a899[_0x27caec(0x1f8)](_0x40a9fc[_0x27caec(0x2d1)]),_0x37e320=_0x54a899[_0x27caec(0x1f8)](_0x40a9fc[_0x27caec(0x250)]),_0x3cc5b4=(0x0,_0x1d765c['getSheetCommandTarget'])(_0x4dd5e4);if(!_0x3cc5b4)return!0x1;let {unitId:_0x38ce5e,subUnitId:_0x244c8f}=_0x3cc5b4,_0x40576a=(_0x47541a=_0x1cbf7c==null?void 0x0:_0x1cbf7c[_0x27caec(0x2be)])==null?_0x5f8c37['getCurrentSelections']()[_0x27caec(0x282)](_0x33eca9=>_0x33eca9[_0x27caec(0x288)]):_0x47541a,_0xe2b0e8=(_0x2bde5f=_0x4b666b['getSparklineCache']()[_0x27caec(0x251)][_0x27caec(0x1f8)](_0x38ce5e))==null?void 0x0:_0x2bde5f[_0x27caec(0x1f8)](_0x244c8f),{isChangeDataSource:_0x53465d,config:_0x5efcf9,combine:_0xd8e5,unCombine:_0x5caee6}=_0x1cbf7c;if(_0xd8e5){var _0x48ae3a;let _0x296d48=[],_0x13dab9=[];_0x296d48['push']({'id':_0x1551a4['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'ranges':_0x40576a,'isSingle':!0x0}});let _0x3565d9='g_'+(0x0,_0x40a9fc['generateRandomId'])(0x6),_0x1a4744=new _0x40a9fc['ObjectMatrix'](),_0xc228c=(_0x48ae3a=_0x4b666b['getSparklineCache']()['sparklineModel']['get'](_0x38ce5e))==null?void 0x0:_0x48ae3a[_0x27caec(0x1f8)](_0x244c8f),_0x91db6c=new Set([_0x3565d9]),_0x279fbc={};return _0x40576a[_0x27caec(0x2e6)](_0x5051d8=>{const _0x565e31=_0x27caec;let {startRow:_0x340c0b,endRow:_0x5e15a9,startColumn:_0x70d3fb,endColumn:_0x32e884}=_0x5051d8;for(let _0x21f82f=_0x340c0b;_0x21f82f<=_0x5e15a9;_0x21f82f++)for(let _0x31e12f=_0x70d3fb;_0x31e12f<=_0x32e884;_0x31e12f++){var _0x2a5836;let _0x466a32=_0xe2b0e8==null||(_0x2a5836=_0xe2b0e8['matrix'][_0x565e31(0x2d7)](_0x21f82f,_0x31e12f))==null?void 0x0:_0x2a5836['groupId'];if(_0x466a32){var _0x2fbea2;_0x91db6c['add'](_0x466a32);let _0x58c84a=_0x4b666b['getSparklineById'](_0x38ce5e,_0x244c8f,_0x466a32);_0x58c84a&&(_0x279fbc[_0x466a32]={'config':_0x40a9fc[_0x565e31(0x204)][_0x565e31(0x213)](_0x58c84a[_0x565e31(0x2ce)]),'sparklines':_0x40a9fc['Tools']['deepClone'](_0x58c84a[_0x565e31(0x2f7)][_0x565e31(0x260)]())});let _0x57ab65=_0xc228c==null||(_0x2fbea2=_0xc228c[_0x565e31(0x1f8)](_0x466a32))==null?void 0x0:_0x2fbea2[_0x565e31(0x2f7)]['getValue'](_0x21f82f,_0x31e12f);_0x57ab65&&_0x1a4744[_0x565e31(0x290)](_0x21f82f,_0x31e12f,_0x57ab65);}}}),_0x296d48['push']({'id':_0x3011a5['id'],'params':{'sparklineConfigMap':{[_0x3565d9]:{'config':_0x40a9fc['Tools'][_0x27caec(0x213)](_0x5efcf9[_0x27caec(0x2ce)]),'sparklines':_0x1a4744['getMatrix']()}},'unitId':_0x38ce5e,'subUnitId':_0x244c8f}}),_0x13dab9['push']({'id':_0x1551a4['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'isSingle':!0x1,'groupIds':Array['from'](_0x91db6c)}}),_0x13dab9['push']({'id':_0x3011a5['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'sparklineConfigMap':_0x279fbc}}),(0x0,_0x40a9fc[_0x27caec(0x2f6)])(_0x296d48,_0x96a629)['result']?(_0x37e320['pushUndoRedo']({'unitID':_0x38ce5e,'undoMutations':_0x13dab9,'redoMutations':_0x296d48}),!0x0):!0x1;}else{if(_0x5caee6){var _0x3a07d8;let _0x5b1831=[],_0x301554=[];_0x5b1831['push']({'id':_0x1551a4['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'ranges':_0x40576a,'isSingle':!0x0}});let _0x3faeec=(_0x3a07d8=_0x4b666b[_0x27caec(0x2eb)]()[_0x27caec(0x2a9)][_0x27caec(0x1f8)](_0x38ce5e))==null?void 0x0:_0x3a07d8[_0x27caec(0x1f8)](_0x244c8f),_0x19c372={},_0x539d6c=new Set(),_0x48269a={};return _0x40576a[_0x27caec(0x2e6)](_0x2d3624=>{const _0x4c17e0=_0x27caec;let {startRow:_0x3ec6c7,endRow:_0x479a83,startColumn:_0xcd7511,endColumn:_0x1d4550}=_0x2d3624;for(let _0x3885fd=_0x3ec6c7;_0x3885fd<=_0x479a83;_0x3885fd++)for(let _0x8b294f=_0xcd7511;_0x8b294f<=_0x1d4550;_0x8b294f++){var _0x4b8de5;let _0x513700=_0xe2b0e8==null||(_0x4b8de5=_0xe2b0e8['matrix']['getValue'](_0x3885fd,_0x8b294f))==null?void 0x0:_0x4b8de5[_0x4c17e0(0x1f2)];if(_0x513700){var _0xac9c2a;let _0x4cabd9=new _0x40a9fc[(_0x4c17e0(0x205))](),_0x421350='g_'+(0x0,_0x40a9fc[_0x4c17e0(0x2f2)])(0x6);_0x539d6c['add'](_0x513700),_0x539d6c['add'](_0x421350);let _0x2619c4=_0x4b666b[_0x4c17e0(0x2f4)](_0x38ce5e,_0x244c8f,_0x513700);_0x2619c4&&(_0x48269a[_0x513700]={'config':_0x40a9fc['Tools']['deepClone'](_0x2619c4[_0x4c17e0(0x2ce)]),'sparklines':_0x40a9fc[_0x4c17e0(0x204)][_0x4c17e0(0x213)](_0x2619c4[_0x4c17e0(0x2f7)][_0x4c17e0(0x260)]())});let _0x1b3f6d=_0x3faeec==null||(_0xac9c2a=_0x3faeec[_0x4c17e0(0x1f8)](_0x513700))==null?void 0x0:_0xac9c2a[_0x4c17e0(0x2f7)][_0x4c17e0(0x2d7)](_0x3885fd,_0x8b294f);_0x1b3f6d&&_0x4cabd9[_0x4c17e0(0x290)](_0x3885fd,_0x8b294f,_0x1b3f6d),_0x19c372[_0x421350]={'sparklines':_0x4cabd9[_0x4c17e0(0x2b3)](),'config':_0x40a9fc[_0x4c17e0(0x204)][_0x4c17e0(0x213)](_0x5efcf9[_0x4c17e0(0x2ce)])};}}}),_0x5b1831[_0x27caec(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'sparklineConfigMap':_0x19c372}}),_0x301554[_0x27caec(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'isSingle':!0x1,'groupIds':Array[_0x27caec(0x245)](_0x539d6c)}}),_0x301554[_0x27caec(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'sparklineConfigMap':_0x48269a}}),(0x0,_0x40a9fc[_0x27caec(0x2f6)])(_0x5b1831,_0x96a629)['result']?(_0x37e320['pushUndoRedo']({'unitID':_0x38ce5e,'undoMutations':_0x301554,'redoMutations':_0x5b1831}),!0x0):!0x1;}}if(_0x53465d){let _0x12d7b2=_0x1cbf7c['changeDataSourceInfo'];if(!_0x12d7b2)return!0x1;let {groupId:_0x35b4a2,sourceRanges:_0x5722ea,targetRanges:_0x2d3bc9,resetType:_0x4368fc,primary:_0x2c2f4f}=_0x12d7b2,_0x37a0d1=[],_0x40c60d=[];_0x37a0d1[_0x27caec(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'ranges':_0x40576a,'isSingle':!0x1,'groupIds':[_0x35b4a2]}}),_0x40c60d['push']({'id':_0x1551a4['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'ranges':_0x40576a,'isSingle':!0x1,'groupIds':[_0x35b4a2]}});let _0x35fe1a;_0x4368fc===_0x27caec(0x261)?(_0x35fe1a=new _0x40a9fc[(_0x27caec(0x205))](_0x5efcf9[_0x27caec(0x2f7)][_0x27caec(0x260)]()),_0x35fe1a[_0x27caec(0x2b6)](_0x2c2f4f[_0x27caec(0x2a6)],_0x2c2f4f[_0x27caec(0x26b)]),_0x35fe1a[_0x27caec(0x290)](_0x2d3bc9[0x0][_0x27caec(0x244)],_0x2d3bc9[0x0][_0x27caec(0x1f3)],_0x5722ea[0x0])):_0x35fe1a=_0x14491c(_0x5722ea,_0x2d3bc9);let _0x4f3661={'config':_0x40a9fc[_0x27caec(0x204)]['deepClone'](_0x5efcf9[_0x27caec(0x2ce)]),'sparklines':_0x35fe1a[_0x27caec(0x2b3)]()},_0x1d665c={'config':_0x40a9fc[_0x27caec(0x204)][_0x27caec(0x213)](_0x5efcf9[_0x27caec(0x2ce)]),'sparklines':_0x40a9fc[_0x27caec(0x204)][_0x27caec(0x213)](_0x5efcf9['sparklines'][_0x27caec(0x260)]())};return _0x37a0d1[_0x27caec(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'sparklineConfigMap':{[_0x35b4a2]:_0x4f3661}}}),_0x40c60d[_0x27caec(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'sparklineConfigMap':{[_0x35b4a2]:_0x1d665c}}}),(0x0,_0x40a9fc[_0x27caec(0x2f6)])(_0x37a0d1,_0x96a629)[_0x27caec(0x21e)]?(_0x37e320[_0x27caec(0x2c6)]({'unitID':_0x38ce5e,'undoMutations':_0x40c60d,'redoMutations':_0x37a0d1}),!0x0):!0x1;}else{let _0x558c59=[],_0x524331=[],_0x9d2462=new Set(),_0x5dde37={};return _0x40576a[_0x27caec(0x2e6)](_0x56ce79=>{const _0x54522c=_0x27caec;let {startRow:_0x2b932f,endRow:_0x47fa4f,startColumn:_0x5a75f9,endColumn:_0x541911}=_0x56ce79;for(let _0xd28190=_0x2b932f;_0xd28190<=_0x47fa4f;_0xd28190++)for(let _0x34a85c=_0x5a75f9;_0x34a85c<=_0x541911;_0x34a85c++){var _0x30f135;let _0x310288=_0xe2b0e8==null||(_0x30f135=_0xe2b0e8[_0x54522c(0x255)][_0x54522c(0x2d7)](_0xd28190,_0x34a85c))==null?void 0x0:_0x30f135[_0x54522c(0x1f2)];if(_0x310288){_0x9d2462[_0x54522c(0x294)](_0x310288);let _0x3e24ab=_0x4b666b['getSparklineById'](_0x38ce5e,_0x244c8f,_0x310288);_0x3e24ab&&(_0x5dde37[_0x310288]={'config':_0x40a9fc['Tools'][_0x54522c(0x213)](_0x3e24ab['config']),'sparklines':_0x40a9fc['Tools'][_0x54522c(0x213)](_0x3e24ab[_0x54522c(0x2f7)][_0x54522c(0x260)]())});}}}),_0x524331[_0x27caec(0x296)]({'id':_0x485853['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'groupIds':Array[_0x27caec(0x245)](_0x9d2462),'config':{'config':_0x40a9fc[_0x27caec(0x204)][_0x27caec(0x213)](_0x5efcf9[_0x27caec(0x2ce)]),'sparklines':_0x5efcf9[_0x27caec(0x2f7)][_0x27caec(0x2b3)]()}}}),_0x558c59['push']({'id':_0x1551a4['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'isSingle':!0x1,'groupIds':Array[_0x27caec(0x245)](_0x9d2462)}}),_0x558c59['push']({'id':_0x3011a5['id'],'params':{'unitId':_0x38ce5e,'subUnitId':_0x244c8f,'sparklineConfigMap':_0x5dde37}}),(0x0,_0x40a9fc['sequenceExecute'])(_0x524331,_0x96a629)['result']?(_0x37e320['pushUndoRedo']({'unitID':_0x38ce5e,'undoMutations':_0x558c59,'redoMutations':_0x524331}),!0x0):!0x1;}}};var _0x4b3b7a=_0x38bb02(0x220),_0x4be93a=_0x38bb02(0x24d);let _0x1b6314=class extends _0x40a9fc[_0x38bb02(0x2a2)]{constructor(_0x20e8e5,_0x857cfa,_0x1752f3,_0x483db5){const _0x58a392=_0x38bb02;super(),this['_sparklineDataSourceModel']=_0x20e8e5,this[_0x58a392(0x2da)]=_0x857cfa,this[_0x58a392(0x247)]=_0x1752f3,this[_0x58a392(0x2a7)]=_0x483db5,this['_initClearWithSparkline']();}['_initClearWithSparkline'](){const _0x3a86c5=_0x38bb02;this['disposeWithMe'](this[_0x3a86c5(0x2da)][_0x3a86c5(0x228)]({'getMutations':_0x3b4de9=>{const _0x116ee3=_0x3a86c5;let _0x3e86bf=[],_0x304d5a=[];if(_0x3b4de9['id']===_0x1d765c[_0x116ee3(0x1ef)]['id']){let _0xc65996=(0x0,_0x1d765c[_0x116ee3(0x2e9)])(this[_0x116ee3(0x247)],_0x3b4de9[_0x116ee3(0x277)]);if(!_0xc65996)return{'redos':_0x3e86bf,'undos':_0x304d5a};let {unitId:_0x1d4cf5,subUnitId:_0x148da3}=_0xc65996,_0x56e8b2=this[_0x116ee3(0x2a7)]['getCurrentSelections']()[_0x116ee3(0x282)](_0x177b8d=>_0x177b8d[_0x116ee3(0x288)]),_0x201b6a=new Set(),_0x421901={},_0x4b461a={};_0x56e8b2['forEach'](_0x493a3b=>{const _0x5655b8=_0x116ee3;_0x40a9fc[_0x5655b8(0x237)][_0x5655b8(0x20a)](_0x493a3b,(_0x2266d1,_0x46c249)=>{const _0x210eef=_0x5655b8;let _0x18ed5b=this[_0x210eef(0x272)]['getSparkline'](_0x1d4cf5,_0x148da3,_0x2266d1,_0x46c249);if(_0x18ed5b&&!_0x201b6a[_0x210eef(0x1f4)](_0x18ed5b)){let _0x39690f=this[_0x210eef(0x272)][_0x210eef(0x2f4)](_0x1d4cf5,_0x148da3,_0x18ed5b);_0x39690f&&(_0x201b6a[_0x210eef(0x294)](_0x18ed5b),_0x421901[_0x18ed5b]={'config':_0x40a9fc[_0x210eef(0x204)][_0x210eef(0x213)](_0x39690f[_0x210eef(0x2ce)]),'sparklines':_0x40a9fc[_0x210eef(0x204)][_0x210eef(0x213)](_0x39690f[_0x210eef(0x2f7)][_0x210eef(0x260)]())},_0x4b461a[_0x18ed5b]={'config':_0x40a9fc[_0x210eef(0x204)]['deepClone'](_0x39690f[_0x210eef(0x2ce)]),'sparklines':_0x40a9fc[_0x210eef(0x204)][_0x210eef(0x213)](_0x39690f[_0x210eef(0x2f7)][_0x210eef(0x260)]())});}});}),Object[_0x116ee3(0x29c)](_0x4b461a)['forEach'](_0x42c9a8=>{const _0x720908=_0x116ee3;let _0x41ae55=_0x42c9a8['sparklines'];new _0x40a9fc['ObjectMatrix'](_0x41ae55)[_0x720908(0x2cc)]((_0x19c452,_0x3b4706,_0x84c8c9)=>{const _0x1ef390=_0x720908;_0x56e8b2['some'](_0x1e7dd6=>_0x40a9fc[_0x1ef390(0x26a)][_0x1ef390(0x1fa)](_0x1e7dd6,(0x0,_0x40a9fc[_0x1ef390(0x2c0)])(_0x19c452,_0x3b4706)))&&delete _0x41ae55[_0x19c452][_0x3b4706];});}),_0x201b6a[_0x116ee3(0x25d)]>0x0&&(_0x3e86bf[_0x116ee3(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0x1d4cf5,'subUnitId':_0x148da3,'groupIds':Array[_0x116ee3(0x245)](_0x201b6a),'isSingle':!0x1}}),_0x304d5a[_0x116ee3(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0x1d4cf5,'subUnitId':_0x148da3,'groupIds':Array['from'](_0x201b6a),'isSingle':!0x1}})),Object[_0x116ee3(0x202)](_0x4b461a)[_0x116ee3(0x2c7)]>0x0&&_0x3e86bf['push']({'id':_0x3011a5['id'],'params':{'unitId':_0x1d4cf5,'subUnitId':_0x148da3,'sparklineConfigMap':_0x4b461a}}),Object[_0x116ee3(0x202)](_0x421901)[_0x116ee3(0x2c7)]>0x0&&_0x304d5a['push']({'id':_0x3011a5['id'],'params':{'unitId':_0x1d4cf5,'subUnitId':_0x148da3,'sparklineConfigMap':_0x421901}});}return{'redos':_0x3e86bf,'undos':_0x304d5a};}}));}};_0x1b6314=_0x89741f([_0x36ff29(0x0,(0x0,_0x40a9fc['Inject'])(_0x17df7a)),_0x36ff29(0x1,(0x0,_0x40a9fc['Inject'])(_0x1d765c[_0x38bb02(0x28c)])),_0x36ff29(0x2,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x40a9fc[_0x38bb02(0x2d1)])),_0x36ff29(0x3,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x1d765c[_0x38bb02(0x27b)]))],_0x1b6314);let _0x1e8fe4=class extends _0x40a9fc['Disposable']{constructor(_0x3d4452,_0x2d40ec,_0x1496ed){const _0x5d7db7=_0x38bb02;super(),this[_0x5d7db7(0x24c)]=_0x3d4452,this[_0x5d7db7(0x272)]=_0x2d40ec,this[_0x5d7db7(0x273)]=_0x1496ed,this[_0x5d7db7(0x28a)](),this[_0x5d7db7(0x20b)]();}[_0x38bb02(0x28a)](){const _0x2d39a8=_0x38bb02;this[_0x2d39a8(0x2d4)](this[_0x2d39a8(0x24c)]['onCommandExecuted'](_0x5e4bc6=>{const _0x2c1210=_0x2d39a8;if(_0x5e4bc6['id']===_0x1d765c[_0x2c1210(0x2c8)]['id']){let {cellValue:_0x25163c,unitId:_0x1b42d6,subUnitId:_0x5dee94}=_0x5e4bc6[_0x2c1210(0x277)],_0x470cb3=new _0x40a9fc['ObjectMatrix'](_0x25163c),_0x265387=new Set(),_0xc3b99c=this['_sparklineDataSourceModel'][_0x2c1210(0x1f1)](_0x1b42d6,_0x5dee94);if(!_0xc3b99c)return;let _0x3cd6c8=Array['from'](_0xc3b99c);_0x470cb3['forValue']((_0x1141d1,_0x4e22dd,_0x3e1f07)=>{const _0x59c624=_0x2c1210;let _0x396a25=(0x0,_0x40a9fc[_0x59c624(0x2c0)])(_0x1141d1,_0x4e22dd);for(let _0x488b14=0x0;_0x488b14<_0x3cd6c8['length'];_0x488b14++){let [_0x355a23,_0x454797]=_0x3cd6c8[_0x488b14],_0x5f101f=_0x265387[_0x59c624(0x1f4)](_0x355a23);_0x5f101f||_0x454797[_0x59c624(0x2f7)]['forValue']((_0x284e47,_0x18c69e,_0xd963f3)=>{const _0xd5db7c=_0x59c624;let _0x34a972=_0xd963f3;if(_0x34a972&&!_0x5f101f&&_0x40a9fc[_0xd5db7c(0x26a)][_0xd5db7c(0x1fa)](_0x396a25,_0x34a972))return _0x265387[_0xd5db7c(0x294)](_0x355a23),!0x0;});}}),_0x265387[_0x2c1210(0x2e6)](_0x270092=>{const _0x2793bc=_0x2c1210;this[_0x2793bc(0x272)]['clearSparklineCache'](_0x1b42d6,_0x5dee94,_0x270092),this[_0x2793bc(0x272)][_0x2793bc(0x29b)](_0x1b42d6,_0x5dee94,_0x270092);});}else{if(_0x5e4bc6['id']===_0x1d765c[_0x2c1210(0x24a)]['id']){let {range:_0x1f5629,unitId:_0x16b959,subUnitId:_0x11b253}=_0x5e4bc6[_0x2c1210(0x277)],_0x39b63d=new Set(),_0x577650=this[_0x2c1210(0x272)][_0x2c1210(0x1f1)](_0x16b959,_0x11b253);if(!_0x577650)return;let _0x32b715=Array['from'](_0x577650);for(let _0x460de0=0x0;_0x460de0<_0x32b715[_0x2c1210(0x2c7)];_0x460de0++){let [_0x2b7d70,_0x5030f1]=_0x32b715[_0x460de0],_0x4361f2=_0x39b63d['has'](_0x2b7d70);_0x4361f2||_0x5030f1['sparklines'][_0x2c1210(0x2cc)]((_0x271224,_0xf7a3fc,_0x31343c)=>{const _0x234271=_0x2c1210;let _0xc8eef7=_0x31343c;if(_0xc8eef7&&!_0x4361f2&&_0x40a9fc[_0x234271(0x26a)]['intersects'](_0x1f5629,_0xc8eef7))return _0x39b63d[_0x234271(0x294)](_0x2b7d70),!0x0;});}_0x39b63d[_0x2c1210(0x2e6)](_0x58a440=>{const _0x197dc8=_0x2c1210;this['_sparklineDataSourceModel'][_0x197dc8(0x265)](_0x16b959,_0x11b253,_0x58a440),this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x16b959,_0x11b253,_0x58a440);});}}}));}[_0x38bb02(0x20b)](){const _0x5c66a3=_0x38bb02;this[_0x5c66a3(0x2d4)](this[_0x5c66a3(0x273)][_0x5c66a3(0x239)][_0x5c66a3(0x2b2)](_0x1647fb=>{const _0x56b7c3=_0x5c66a3;let {unitId:_0x238a88,subUnitId:_0x5a118b,ranges:_0x190700}=_0x1647fb,_0x156843=this[_0x56b7c3(0x272)][_0x56b7c3(0x1f1)](_0x238a88,_0x5a118b);if(!_0x156843)return;let _0x467e0f=Array['from'](_0x156843),_0x11bbad=new Set();for(let _0x3ecda5=0x0;_0x3ecda5<_0x467e0f[_0x56b7c3(0x2c7)];_0x3ecda5++){let [_0x2ea294,_0x2e52b2]=_0x467e0f[_0x3ecda5],_0x229959=_0x11bbad[_0x56b7c3(0x1f4)](_0x2ea294);_0x229959||_0x2e52b2[_0x56b7c3(0x2f7)][_0x56b7c3(0x2cc)]((_0x12ed03,_0x4777c4,_0xb96504)=>{const _0x3cddf0=_0x56b7c3;let _0xe9e423=_0xb96504;if(_0xe9e423&&!_0x229959){for(let _0x179480 of _0x190700)if(_0x40a9fc['Rectangle'][_0x3cddf0(0x1fa)](_0x179480,_0xe9e423)){_0x11bbad['add'](_0x2ea294);break;}}});}_0x11bbad[_0x56b7c3(0x2e6)](_0x412255=>{const _0x29af57=_0x56b7c3;this[_0x29af57(0x272)]['clearSparklineCache'](_0x238a88,_0x5a118b,_0x412255),this[_0x29af57(0x272)][_0x29af57(0x29b)](_0x238a88,_0x5a118b,_0x412255);});}));}};_0x1e8fe4=_0x89741f([_0x36ff29(0x0,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x40a9fc[_0x38bb02(0x1f5)])),_0x36ff29(0x1,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x17df7a)),_0x36ff29(0x2,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x1d765c[_0x38bb02(0x2db)]))],_0x1e8fe4);let _0xfe3bb2=class extends _0x40a9fc[_0x38bb02(0x2a2)]{constructor(_0x4f6f13,_0x4abd6f){const _0x2b5cf4=_0x38bb02;super(),this[_0x2b5cf4(0x24c)]=_0x4f6f13,this['_sparklineDataSourceModel']=_0x4abd6f,this[_0x2b5cf4(0x22f)]();}[_0x38bb02(0x22f)](){this['_commandService']['onCommandExecuted'](_0x18f3c3=>{const _0x441712=_0x5e17;if(_0x18f3c3['id']===_0x1d765c[_0x441712(0x275)]['id']||_0x18f3c3['id']===_0x1d765c[_0x441712(0x271)]['id']||_0x18f3c3['id']===_0x1d765c[_0x441712(0x2e8)]['id']||_0x18f3c3['id']===_0x1d765c[_0x441712(0x269)]['id']){let {ranges:_0x305e18,unitId:_0x418e62,subUnitId:_0x11a5af}=_0x18f3c3[_0x441712(0x277)],_0x42a124=new Set(),_0x274bb3=this['_sparklineDataSourceModel'][_0x441712(0x1f1)](_0x418e62,_0x11a5af);if(!_0x274bb3)return;let _0x376d82=Array[_0x441712(0x245)](_0x274bb3);_0x305e18['forEach'](_0x4683b9=>{const _0x1e25ab=_0x441712;_0x40a9fc['Range'][_0x1e25ab(0x20a)](_0x4683b9,(_0x5e89aa,_0x5d6e82)=>{const _0x520fc3=_0x1e25ab;let _0x2ec38e=(0x0,_0x40a9fc[_0x520fc3(0x2c0)])(_0x5e89aa,_0x5d6e82);for(let _0x5201c0=0x0;_0x5201c0<_0x376d82[_0x520fc3(0x2c7)];_0x5201c0++){let [_0x4936eb,_0x2991a6]=_0x376d82[_0x5201c0],_0xa2e4b0=_0x42a124[_0x520fc3(0x1f4)](_0x4936eb);_0xa2e4b0||_0x2991a6[_0x520fc3(0x2f7)][_0x520fc3(0x2cc)]((_0xe40ec1,_0xa41273,_0x31ebf2)=>{const _0x2b1ac=_0x520fc3;let _0x56ede2=_0x31ebf2;if(_0x56ede2&&!_0xa2e4b0&&_0x40a9fc['Rectangle'][_0x2b1ac(0x1fa)](_0x2ec38e,_0x56ede2))return _0x42a124[_0x2b1ac(0x294)](_0x4936eb),!0x0;});}});}),_0x42a124[_0x441712(0x2e6)](_0x53278f=>{const _0x2520c5=_0x441712;this[_0x2520c5(0x272)]['clearSparklineCache'](_0x418e62,_0x11a5af,_0x53278f),this[_0x2520c5(0x272)]['updateSparklineExtraNum'](_0x418e62,_0x11a5af,_0x53278f);});}});}};_0xfe3bb2=_0x89741f([_0x36ff29(0x0,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x40a9fc[_0x38bb02(0x1f5)])),_0x36ff29(0x1,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x17df7a))],_0xfe3bb2);let _0xbdfbc8=class extends _0x40a9fc[_0x38bb02(0x2a2)]{constructor(_0x431905,_0x2a1baf,_0x36d337){const _0x508ab1=_0x38bb02;super(),this[_0x508ab1(0x24c)]=_0x431905,this[_0x508ab1(0x2da)]=_0x2a1baf,this['_sparklineDataSourceModel']=_0x36d337,this[_0x508ab1(0x241)]();}[_0x38bb02(0x241)](){const _0x40e40b=_0x38bb02;this[_0x40e40b(0x2d4)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x2dc18e=>{const _0x57cfc3=_0x40e40b;let _0x41639a=[],_0x9acb0e=[];if(_0x2dc18e['id']===_0x1d765c['AddWorksheetMergeCommand']['id']){let _0x513855=_0x2dc18e[_0x57cfc3(0x277)];if(!_0x513855)return{'redos':_0x41639a,'undos':_0x9acb0e};let {unitId:_0x2c107e,subUnitId:_0x38795c,ranges:_0x45d35f}=_0x513855,_0x53232b=this[_0x57cfc3(0x272)][_0x57cfc3(0x1f1)](_0x2c107e,_0x38795c);if(!_0x53232b)return{'redos':_0x41639a,'undos':_0x9acb0e};let _0x581f49={},_0x3d1083={},_0x5f4078=new Set();_0x45d35f[_0x57cfc3(0x2e6)](_0x478ee0=>{const _0x174872=_0x57cfc3;let _0x42341d=_0x478ee0['startRow'],_0x39ee30=_0x478ee0[_0x174872(0x1f3)];_0x40a9fc[_0x174872(0x237)]['foreach'](_0x478ee0,(_0x194497,_0x284722)=>{const _0x300496=_0x174872;let _0x5c37ee=this['_sparklineDataSourceModel'][_0x300496(0x23e)](_0x2c107e,_0x38795c,_0x194497,_0x284722);if(_0x5c37ee&&!(_0x194497===_0x42341d&&_0x284722===_0x39ee30)){let _0x4053ce=this[_0x300496(0x272)][_0x300496(0x2f4)](_0x2c107e,_0x38795c,_0x5c37ee);if(_0x4053ce){_0x5f4078[_0x300496(0x294)](_0x5c37ee);let _0x5a48e4=_0x581f49[_0x5c37ee];_0x5a48e4||(_0x5a48e4={'config':_0x40a9fc['Tools'][_0x300496(0x213)](_0x4053ce[_0x300496(0x2ce)]),'sparklines':new _0x40a9fc[(_0x300496(0x205))](_0x4053ce[_0x300496(0x2f7)][_0x300496(0x260)]())},_0x581f49[_0x5c37ee]=_0x5a48e4),_0x5a48e4['sparklines']['realDeleteValue'](_0x194497,_0x284722),_0x3d1083[_0x5c37ee]={'config':_0x40a9fc[_0x300496(0x204)][_0x300496(0x213)](_0x4053ce[_0x300496(0x2ce)]),'sparklines':_0x40a9fc[_0x300496(0x204)]['deepClone'](_0x4053ce[_0x300496(0x2f7)][_0x300496(0x260)]())};}}});});for(let [_0x5e767a,_0x2428a4]of _0x53232b){let _0x3548fd=_0x2428a4[_0x57cfc3(0x2f7)];_0x3548fd['forValue']((_0x40c640,_0x4ad6d8,_0x34b64f)=>{const _0x3f5302=_0x57cfc3;for(let _0x5a50cc=0x0;_0x5a50cc<_0x45d35f['length'];_0x5a50cc++){let _0x37a8b8=_0x45d35f[_0x5a50cc];if(_0x40a9fc['Rectangle'][_0x3f5302(0x26f)](_0x37a8b8,_0x34b64f)){_0x5f4078['add'](_0x5e767a);let _0x9fab77=_0x581f49[_0x5e767a];_0x9fab77||(_0x9fab77={'config':_0x40a9fc[_0x3f5302(0x204)]['deepClone'](_0x2428a4[_0x3f5302(0x2ce)]),'sparklines':new _0x40a9fc[(_0x3f5302(0x205))](_0x3548fd[_0x3f5302(0x260)]())},_0x581f49[_0x5e767a]=_0x9fab77),_0x9fab77[_0x3f5302(0x2f7)]['realDeleteValue'](_0x40c640,_0x4ad6d8),_0x3d1083[_0x5e767a]||(_0x3d1083[_0x5e767a]={'config':_0x40a9fc['Tools'][_0x3f5302(0x213)](_0x2428a4['config']),'sparklines':_0x40a9fc[_0x3f5302(0x204)][_0x3f5302(0x213)](_0x3548fd[_0x3f5302(0x260)]())});}}});}let _0x1dbefa={};Object['entries'](_0x581f49)[_0x57cfc3(0x2e6)](([_0xfd8527,_0xb85d97])=>{const _0x2960d8=_0x57cfc3;_0xb85d97[_0x2960d8(0x2f7)][_0x2960d8(0x2ab)]()&&(_0x1dbefa[_0xfd8527]={'config':_0xb85d97[_0x2960d8(0x2ce)],'sparklines':_0xb85d97[_0x2960d8(0x2f7)][_0x2960d8(0x260)]()});}),_0x5f4078['size']&&(_0x41639a[_0x57cfc3(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0x2c107e,'subUnitId':_0x38795c,'groupIds':Array[_0x57cfc3(0x245)](_0x5f4078),'isSingle':!0x1}}),_0x9acb0e[_0x57cfc3(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0x2c107e,'subUnitId':_0x38795c,'groupIds':Array[_0x57cfc3(0x245)](_0x5f4078),'isSingle':!0x1}}),_0x41639a[_0x57cfc3(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0x2c107e,'subUnitId':_0x38795c,'sparklineConfigMap':_0x1dbefa}}),_0x9acb0e[_0x57cfc3(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0x2c107e,'subUnitId':_0x38795c,'sparklineConfigMap':_0x3d1083}}));}return{'redos':_0x41639a,'undos':_0x9acb0e};}}));}};_0xbdfbc8=_0x89741f([_0x36ff29(0x0,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x40a9fc[_0x38bb02(0x1f5)])),_0x36ff29(0x1,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x1d765c[_0x38bb02(0x28c)])),_0x36ff29(0x2,(0x0,_0x40a9fc['Inject'])(_0x17df7a))],_0xbdfbc8);let _0xa5998a=class extends _0x40a9fc[_0x38bb02(0x2a2)]{constructor(_0x2d9f25,_0x5c84bb,_0x9e2987,_0x386645){const _0x34df14=_0x38bb02;super(),this[_0x34df14(0x24c)]=_0x2d9f25,this['_refRangeService']=_0x5c84bb,this[_0x34df14(0x247)]=_0x9e2987,this['_sparklineDataSourceModel']=_0x386645,_0x29101a(this,_0x34df14(0x2e0),new _0x40a9fc[(_0x34df14(0x23f))]()),this[_0x34df14(0x2ae)](),this[_0x34df14(0x1fe)]();}['_onRefRangeChange'](){const _0x210e2d=_0x38bb02;let _0x1fa497=(_0x482ed0,_0x1ae89d)=>{const _0x1fc39a=_0x5e17;let _0x143ac7=this['_univerInstanceService'][_0x1fc39a(0x280)](_0x40a9fc['UniverInstanceType']['UNIVER_SHEET']);if(!_0x143ac7||!(_0x143ac7!=null&&_0x143ac7['getSheetBySheetId'](_0x1ae89d)))return;this[_0x1fc39a(0x2e0)][_0x1fc39a(0x224)]();let _0x3191d8=_0x9c93f5=>this[_0x1fc39a(0x2b9)](_0x9c93f5,_0x482ed0,_0x1ae89d),_0x5a61be=[],_0x1153d5=this[_0x1fc39a(0x272)][_0x1fc39a(0x1f1)](_0x482ed0,_0x1ae89d);if(_0x1153d5){for(let [_0x6d0401,_0x2cd927]of _0x1153d5)_0x2cd927[_0x1fc39a(0x2f7)]['forValue']((_0x101758,_0x4ce21d,_0x4d47f8)=>{const _0x1dfea1=_0x1fc39a;let _0xda527b=(0x0,_0x40a9fc[_0x1dfea1(0x2c0)])(_0x101758,_0x4ce21d);_0x5a61be[_0x1dfea1(0x296)](_0xda527b);});_0x5a61be[_0x1fc39a(0x2e6)](_0x48eba5=>{const _0x1d3497=_0x1fc39a;this['disposableCollection'][_0x1d3497(0x294)](this[_0x1d3497(0x1fd)]['registerRefRange'](_0x48eba5,_0x3191d8,_0x482ed0,_0x1ae89d));});}};this[_0x210e2d(0x2d4)](this[_0x210e2d(0x24c)][_0x210e2d(0x21b)](_0x3b50cb=>{const _0x20a191=_0x210e2d;if(_0x3b50cb['id']===_0x1d765c[_0x20a191(0x22a)]['id']){let _0x1c5236=_0x3b50cb[_0x20a191(0x277)],_0x46b9c2=_0x1c5236[_0x20a191(0x1fc)],_0x320e36=_0x1c5236[_0x20a191(0x248)];if(!_0x46b9c2||!_0x320e36)return;_0x1fa497(_0x320e36,_0x46b9c2);}if(_0x3b50cb['id']===_0x485853['id']||_0x3b50cb['id']===_0x3011a5['id']){let _0x2ed7e2=_0x3b50cb[_0x20a191(0x277)],_0x84139a=_0x2ed7e2[_0x20a191(0x1fc)],_0x5defaa=_0x2ed7e2[_0x20a191(0x248)];if(!_0x84139a||!_0x5defaa)return;_0x1fa497(_0x5defaa,_0x84139a);}}));}[_0x38bb02(0x2b9)](_0x4c16a2,_0x3b5523,_0x2b4a74){const _0x339fb0=_0x38bb02;switch(_0x4c16a2['id']){case _0x1d765c[_0x339fb0(0x226)]['id']:return this[_0x339fb0(0x208)](_0x4c16a2['params'],_0x3b5523,_0x2b4a74);case _0x1d765c[_0x339fb0(0x2cf)]['id']:return this[_0x339fb0(0x259)](_0x4c16a2['params'],_0x3b5523,_0x2b4a74);default:break;}return{'redos':[],'undos':[]};}[_0x38bb02(0x259)](_0x17c03c,_0x4d91fd,_0x33676d){const _0x23fbe3=_0x38bb02;var _0x41fd4f;let {range:_0x320742}=_0x17c03c,_0x5c3224=new Set(),_0x3b6edb={},_0x2bde65={},_0x750fa8=[],_0x114378=[],_0x2ef327=[],_0x2743da=[];if(!(0x0,_0x1d765c['getSheetCommandTarget'])(this[_0x23fbe3(0x247)],{'unitId':_0x4d91fd,'subUnitId':_0x33676d}))return{'redos':_0x114378,'undos':_0x750fa8};let _0xde7797=this[_0x23fbe3(0x272)][_0x23fbe3(0x1f1)](_0x4d91fd,_0x33676d);if(!_0xde7797||!(!((_0x41fd4f=this['_sparklineDataSourceModel'][_0x23fbe3(0x2eb)]()[_0x23fbe3(0x251)][_0x23fbe3(0x1f8)](_0x4d91fd))==null||(_0x41fd4f=_0x41fd4f[_0x23fbe3(0x1f8)](_0x33676d))==null)&&_0x41fd4f[_0x23fbe3(0x255)]))return{'redos':_0x114378,'undos':_0x750fa8};for(let [_0x53f28e,_0x1e84a3]of _0xde7797){let _0x3fa183=_0x1e84a3['sparklines'];_0x3fa183[_0x23fbe3(0x2cc)]((_0x4f16c7,_0x18e90d,_0x8dffca)=>{const _0x29d1f6=_0x23fbe3;if(_0x40a9fc[_0x29d1f6(0x26a)][_0x29d1f6(0x1fa)](_0x320742,_0x8dffca)){_0x5c3224['add'](_0x53f28e);let _0x28f796=_0x2bde65[_0x53f28e];_0x28f796||(_0x28f796={'config':_0x1e84a3[_0x29d1f6(0x2ce)],'sparklines':_0x1e84a3[_0x29d1f6(0x2f7)][_0x29d1f6(0x260)]()},_0x2bde65[_0x53f28e]=_0x28f796);let _0x40e90a=_0x3b6edb[_0x53f28e];_0x40e90a||(_0x40e90a={'config':_0x1e84a3[_0x29d1f6(0x2ce)],'sparklines':new _0x40a9fc[(_0x29d1f6(0x205))](_0x1e84a3['sparklines']['clone']())},_0x3b6edb[_0x53f28e]=_0x40e90a);let _0x16c2b0=(0x0,_0x1d765c[_0x29d1f6(0x25a)])(_0x8dffca,{'id':_0x1d765c[_0x29d1f6(0x249)]['id'],'params':_0x17c03c});_0x16c2b0?_0x40e90a[_0x29d1f6(0x2f7)][_0x29d1f6(0x290)](_0x4f16c7,_0x18e90d,_0x16c2b0):_0x40e90a[_0x29d1f6(0x2f7)][_0x29d1f6(0x290)](_0x4f16c7,_0x18e90d,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40a9fc[_0x29d1f6(0x28e)][_0x29d1f6(0x206)]});}}),_0x3fa183[_0x23fbe3(0x2cc)](_0x371051=>{const _0x5f0599=_0x23fbe3;if(_0x371051<=_0x320742[_0x5f0599(0x2f5)]&&_0x371051>=_0x320742[_0x5f0599(0x244)]){_0x5c3224[_0x5f0599(0x294)](_0x53f28e);let _0x12b9a6=_0x2bde65[_0x53f28e];_0x12b9a6||(_0x12b9a6={'config':_0x1e84a3['config'],'sparklines':_0x1e84a3[_0x5f0599(0x2f7)]['clone']()},_0x2bde65[_0x53f28e]=_0x12b9a6);let _0x23078b=_0x3b6edb[_0x53f28e];_0x23078b||(_0x23078b={'config':_0x1e84a3[_0x5f0599(0x2ce)],'sparklines':new _0x40a9fc[(_0x5f0599(0x205))](_0x1e84a3['sparklines']['clone']())},_0x3b6edb[_0x53f28e]=_0x23078b);}});}_0x5c3224[_0x23fbe3(0x25d)]>0x0&&(_0x2743da[_0x23fbe3(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0x4d91fd,'subUnitId':_0x33676d,'groupIds':Array[_0x23fbe3(0x245)](_0x5c3224),'isSingle':!0x1}}),_0x2ef327[_0x23fbe3(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0x4d91fd,'subUnitId':_0x33676d,'groupIds':Array['from'](_0x5c3224),'isSingle':!0x1}}));let _0x12346d={},_0xc00bc1=!0x1;return Object['entries'](_0x3b6edb)[_0x23fbe3(0x2e6)](([_0x2f354a,_0x3cdba8])=>{const _0x30b322=_0x23fbe3;_0x3cdba8[_0x30b322(0x2f7)]['getSizeOf']()&&(_0xc00bc1=!0x0,_0x3cdba8[_0x30b322(0x2f7)][_0x30b322(0x1f0)](_0x320742[_0x30b322(0x244)],_0x320742[_0x30b322(0x2f5)]-_0x320742['startRow']+0x1),_0x12346d[_0x2f354a]={'config':_0x3cdba8[_0x30b322(0x2ce)],'sparklines':_0x3cdba8['sparklines'][_0x30b322(0x260)]()});}),_0xc00bc1&&_0x114378[_0x23fbe3(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0x4d91fd,'subUnitId':_0x33676d,'sparklineConfigMap':_0x12346d}}),Object[_0x23fbe3(0x202)](_0x2bde65)[_0x23fbe3(0x2c7)]>0x0&&_0x750fa8['push']({'id':_0x3011a5['id'],'params':{'unitId':_0x4d91fd,'subUnitId':_0x33676d,'sparklineConfigMap':_0x2bde65}}),{'redos':_0x114378,'undos':_0x750fa8,'preRedos':_0x2ef327,'preUndos':_0x2743da};}[_0x38bb02(0x208)](_0x45846d,_0xebe846,_0x11d64f){const _0x4890cf=_0x38bb02;var _0x559800;let {range:_0x58ae97}=_0x45846d,_0x18d4f4=new Set(),_0x68e65c={},_0x5b7b4c={},_0x3fd04b=[],_0x36de57=[],_0x32811f=[],_0xdcbf79=[];if(!(0x0,_0x1d765c['getSheetCommandTarget'])(this[_0x4890cf(0x247)],{'unitId':_0xebe846,'subUnitId':_0x11d64f}))return{'redos':_0x36de57,'undos':_0x3fd04b};let _0x4de1e4=this[_0x4890cf(0x272)][_0x4890cf(0x1f1)](_0xebe846,_0x11d64f);if(!_0x4de1e4||!(!((_0x559800=this[_0x4890cf(0x272)]['getSparklineCache']()[_0x4890cf(0x251)]['get'](_0xebe846))==null||(_0x559800=_0x559800['get'](_0x11d64f))==null)&&_0x559800[_0x4890cf(0x255)]))return{'redos':_0x36de57,'undos':_0x3fd04b};for(let [_0x507296,_0xb97d86]of _0x4de1e4){let _0x500712=_0xb97d86[_0x4890cf(0x2f7)];_0x500712[_0x4890cf(0x2cc)]((_0x4dc8bb,_0x595408,_0x4ee3b5)=>{const _0x2716a5=_0x4890cf;if(_0x40a9fc[_0x2716a5(0x26a)][_0x2716a5(0x1fa)](_0x58ae97,_0x4ee3b5)){_0x18d4f4[_0x2716a5(0x294)](_0x507296);let _0x1a267e=_0x5b7b4c[_0x507296];_0x1a267e||(_0x1a267e={'config':_0xb97d86['config'],'sparklines':_0xb97d86['sparklines'][_0x2716a5(0x260)]()},_0x5b7b4c[_0x507296]=_0x1a267e);let _0x219830=_0x68e65c[_0x507296];_0x219830||(_0x219830={'config':_0xb97d86[_0x2716a5(0x2ce)],'sparklines':new _0x40a9fc['ObjectMatrix'](_0xb97d86['sparklines'][_0x2716a5(0x260)]())},_0x68e65c[_0x507296]=_0x219830);let _0x39df4d=(0x0,_0x1d765c['adjustRangeOnMutation'])(_0x4ee3b5,{'id':_0x1d765c['RemoveColMutation']['id'],'params':_0x45846d});_0x39df4d?_0x219830['sparklines'][_0x2716a5(0x290)](_0x4dc8bb,_0x595408,_0x39df4d):_0x219830[_0x2716a5(0x2f7)][_0x2716a5(0x290)](_0x4dc8bb,_0x595408,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40a9fc['RANGE_TYPE']['NORMAL']});}}),_0x500712['forValue']((_0x3f7033,_0x34a6a0,_0x2ab676)=>{const _0x192085=_0x4890cf;if(_0x34a6a0<=_0x58ae97[_0x192085(0x1f6)]&&_0x34a6a0>=_0x58ae97[_0x192085(0x1f3)]){_0x18d4f4[_0x192085(0x294)](_0x507296);let _0x22639d=_0x5b7b4c[_0x507296];_0x22639d||(_0x22639d={'config':_0xb97d86[_0x192085(0x2ce)],'sparklines':_0xb97d86[_0x192085(0x2f7)][_0x192085(0x260)]()},_0x5b7b4c[_0x507296]=_0x22639d);let _0x48de1c=_0x68e65c[_0x507296];_0x48de1c||(_0x48de1c={'config':_0xb97d86[_0x192085(0x2ce)],'sparklines':new _0x40a9fc[(_0x192085(0x205))](_0xb97d86[_0x192085(0x2f7)][_0x192085(0x260)]())},_0x68e65c[_0x507296]=_0x48de1c);}});}_0x18d4f4[_0x4890cf(0x25d)]>0x0&&(_0xdcbf79[_0x4890cf(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0xebe846,'subUnitId':_0x11d64f,'groupIds':Array['from'](_0x18d4f4),'isSingle':!0x1}}),_0x32811f[_0x4890cf(0x296)]({'id':_0x1551a4['id'],'params':{'unitId':_0xebe846,'subUnitId':_0x11d64f,'groupIds':Array[_0x4890cf(0x245)](_0x18d4f4),'isSingle':!0x1}}));let _0x45f5df={},_0x432a34=!0x1;return Object[_0x4890cf(0x25f)](_0x68e65c)[_0x4890cf(0x2e6)](([_0x2b6890,_0x1fb953])=>{const _0x57d5e6=_0x4890cf;_0x1fb953['sparklines'][_0x57d5e6(0x2ab)]()&&(_0x432a34=!0x0,_0x1fb953['sparklines'][_0x57d5e6(0x24f)](_0x58ae97['startColumn'],_0x58ae97[_0x57d5e6(0x1f6)]-_0x58ae97[_0x57d5e6(0x1f3)]+0x1),_0x45f5df[_0x2b6890]={'config':_0x1fb953[_0x57d5e6(0x2ce)],'sparklines':_0x1fb953[_0x57d5e6(0x2f7)][_0x57d5e6(0x260)]()});}),_0x432a34&&_0x36de57[_0x4890cf(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0xebe846,'subUnitId':_0x11d64f,'sparklineConfigMap':_0x45f5df}}),Object[_0x4890cf(0x202)](_0x5b7b4c)[_0x4890cf(0x2c7)]>0x0&&_0x3fd04b[_0x4890cf(0x296)]({'id':_0x3011a5['id'],'params':{'unitId':_0xebe846,'subUnitId':_0x11d64f,'sparklineConfigMap':_0x5b7b4c}}),{'redos':_0x36de57,'undos':_0x3fd04b,'preRedos':_0x32811f,'preUndos':_0xdcbf79};}[_0x38bb02(0x1fe)](){const _0xb82cc2=_0x38bb02;this[_0xb82cc2(0x2d4)](this['_commandService'][_0xb82cc2(0x21b)](_0x2d9d20=>{const _0x45fceb=_0xb82cc2;if(_0x2d9d20['id']===_0x1d765c[_0x45fceb(0x27d)]['id']){let {unitId:_0x506c67,subUnitId:_0x2ece9f,range:_0x313d54}=_0x2d9d20['params'],_0xd162d8=_0x313d54['startColumn'],_0x32e0f0=_0x313d54['endColumn']-_0x313d54[_0x45fceb(0x1f3)]+0x1,_0x137824=this[_0x45fceb(0x272)][_0x45fceb(0x1f1)](_0x506c67,_0x2ece9f);if(!_0x137824)return;for(let [_0x212bcd,_0x1d80ab]of _0x137824){this[_0x45fceb(0x272)][_0x45fceb(0x265)](_0x506c67,_0x2ece9f,_0x212bcd);let _0x56830f=_0x1d80ab[_0x45fceb(0x2f7)];_0x56830f[_0x45fceb(0x2cc)]((_0x10f1c3,_0x55d42d,_0x4a726b)=>{const _0x880bdb=_0x45fceb;let _0x1a9491={..._0x4a726b};_0xd162d8<=_0x1a9491[_0x880bdb(0x1f3)]?(_0x1a9491[_0x880bdb(0x1f3)]+=_0x32e0f0,_0x1a9491[_0x880bdb(0x1f6)]+=_0x32e0f0):_0xd162d8>_0x1a9491[_0x880bdb(0x1f6)]||(_0x1a9491['endColumn']+=_0x32e0f0),_0x56830f[_0x880bdb(0x290)](_0x10f1c3,_0x55d42d,_0x1a9491);});let _0x8841c9=_0x56830f[_0x45fceb(0x2b3)]();for(let _0x9a3c14 in _0x8841c9){let _0x29a1be=_0x8841c9[Number(_0x9a3c14)];if(!_0x29a1be)continue;let _0x301f27=Object['keys'](_0x29a1be)[_0x45fceb(0x282)](Number),_0x400287=Math[_0x45fceb(0x238)](..._0x301f27);for(let _0x58c83f=_0x400287;_0x58c83f>=_0xd162d8;_0x58c83f--)_0x58c83f>=_0xd162d8&&_0x29a1be[_0x58c83f]&&(_0x29a1be[_0x58c83f+_0x32e0f0]=_0x29a1be[_0x58c83f],delete _0x29a1be[_0x58c83f]);}this[_0x45fceb(0x272)][_0x45fceb(0x29b)](_0x506c67,_0x2ece9f,_0x212bcd);}}else{if(_0x2d9d20['id']===_0x1d765c[_0x45fceb(0x223)]['id']){let {unitId:_0x46229d,subUnitId:_0x3724b5,range:_0x528bf6}=_0x2d9d20['params'],_0x5a5586=_0x528bf6[_0x45fceb(0x244)],_0x10df7f=_0x528bf6['endRow']-_0x528bf6['startRow']+0x1,_0x568b54=this[_0x45fceb(0x272)][_0x45fceb(0x1f1)](_0x46229d,_0x3724b5);if(!_0x568b54)return;for(let [_0x2dc713,_0x2ed734]of _0x568b54){this[_0x45fceb(0x272)][_0x45fceb(0x265)](_0x46229d,_0x3724b5,_0x2dc713);let _0x522968=_0x2ed734[_0x45fceb(0x2f7)];_0x522968[_0x45fceb(0x2cc)]((_0x161e2b,_0x8676,_0x5d2dee)=>{const _0x279fec=_0x45fceb;let _0x2a6ec2={..._0x5d2dee};_0x5a5586<=_0x2a6ec2[_0x279fec(0x244)]?(_0x2a6ec2[_0x279fec(0x244)]+=_0x10df7f,_0x2a6ec2[_0x279fec(0x2f5)]+=_0x10df7f):_0x5a5586>_0x2a6ec2['endRow']||(_0x2a6ec2[_0x279fec(0x2f5)]+=_0x10df7f),_0x522968[_0x279fec(0x290)](_0x161e2b,_0x8676,_0x2a6ec2);});let _0xb21c3e=_0x522968[_0x45fceb(0x2b3)](),_0xfd2d8e=Object[_0x45fceb(0x202)](_0xb21c3e)[_0x45fceb(0x282)](Number),_0x166ff6=Math[_0x45fceb(0x238)](..._0xfd2d8e);for(let _0x3f8722=_0x166ff6;_0x3f8722>=_0x5a5586;_0x3f8722--)_0x3f8722>=_0x5a5586&&_0xb21c3e[_0x3f8722]&&(_0xb21c3e[_0x3f8722+_0x10df7f]=_0xb21c3e[_0x3f8722],delete _0xb21c3e[_0x3f8722]);this['_sparklineDataSourceModel'][_0x45fceb(0x29b)](_0x46229d,_0x3724b5,_0x2dc713);}}else{if(_0x2d9d20['id']===_0x1d765c['RemoveColMutation']['id']){let {range:_0x1db3dd,unitId:_0x5eedb8,subUnitId:_0x3d2def}=_0x2d9d20[_0x45fceb(0x277)],_0x609527=this[_0x45fceb(0x272)][_0x45fceb(0x1f1)](_0x5eedb8,_0x3d2def);if(!_0x609527)return;for(let [_0x854a01,_0x4edc76]of _0x609527){let _0x3a1b87=_0x4edc76[_0x45fceb(0x2f7)];_0x3a1b87[_0x45fceb(0x2cc)]((_0x412495,_0x43c55a,_0x2ba235)=>{const _0x36e498=_0x45fceb;let _0x400a2d=(0x0,_0x1d765c[_0x36e498(0x25a)])(_0x2ba235,_0x2d9d20);_0x400a2d?_0x3a1b87[_0x36e498(0x290)](_0x412495,_0x43c55a,_0x400a2d):_0x3a1b87[_0x36e498(0x290)](_0x412495,_0x43c55a,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40a9fc[_0x36e498(0x28e)][_0x36e498(0x206)]});}),_0x3a1b87[_0x45fceb(0x24f)](_0x1db3dd['startColumn'],_0x1db3dd[_0x45fceb(0x1f6)]-_0x1db3dd['startColumn']+0x1);}this['_sparklineDataSourceModel'][_0x45fceb(0x200)](_0x5eedb8,_0x3d2def);}else{if(_0x2d9d20['id']===_0x1d765c[_0x45fceb(0x249)]['id']){let {range:_0x1d6c00,unitId:_0x5f26aa,subUnitId:_0x4055b3}=_0x2d9d20['params'],_0x221b67=this[_0x45fceb(0x272)][_0x45fceb(0x1f1)](_0x5f26aa,_0x4055b3);if(!_0x221b67)return;for(let [_0x2c5f70,_0x111056]of _0x221b67){let _0x596e48=_0x111056[_0x45fceb(0x2f7)];_0x596e48[_0x45fceb(0x2cc)]((_0x5aed8b,_0x45e9ef,_0x1ba692)=>{const _0x3e12b9=_0x45fceb;let _0x36be26=(0x0,_0x1d765c['adjustRangeOnMutation'])(_0x1ba692,_0x2d9d20);_0x36be26?_0x596e48[_0x3e12b9(0x290)](_0x5aed8b,_0x45e9ef,_0x36be26):_0x596e48[_0x3e12b9(0x290)](_0x5aed8b,_0x45e9ef,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40a9fc[_0x3e12b9(0x28e)][_0x3e12b9(0x206)]});}),_0x596e48['removeRows'](_0x1d6c00['startRow'],_0x1d6c00[_0x45fceb(0x2f5)]-_0x1d6c00[_0x45fceb(0x244)]+0x1);}this[_0x45fceb(0x272)][_0x45fceb(0x200)](_0x5f26aa,_0x4055b3);}else{if(_0x2d9d20['id']===_0x1d765c[_0x45fceb(0x26e)]['id']){let {unitId:_0x210be4,subUnitId:_0x478897,sourceRange:_0x2ccb3f,targetRange:_0x1cf516}=_0x2d9d20[_0x45fceb(0x277)],_0x305377=this[_0x45fceb(0x272)][_0x45fceb(0x1f1)](_0x210be4,_0x478897);if(!_0x305377)return;for(let [_0x3bc20f,_0x56120d]of _0x305377){let _0x59ce93=_0x56120d['sparklines'];_0x59ce93[_0x45fceb(0x2cc)]((_0x435c42,_0x4b12d1,_0x375f51)=>{const _0xa2f0c8=_0x45fceb;let _0x74cefe=(0x0,_0x1d765c[_0xa2f0c8(0x25a)])(_0x375f51,_0x2d9d20);_0x74cefe?_0x59ce93[_0xa2f0c8(0x290)](_0x435c42,_0x4b12d1,_0x74cefe):_0x59ce93[_0xa2f0c8(0x290)](_0x435c42,_0x4b12d1,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40a9fc[_0xa2f0c8(0x28e)][_0xa2f0c8(0x206)]});}),_0x59ce93['moveColumns'](_0x2ccb3f['startColumn'],_0x2ccb3f[_0x45fceb(0x1f6)]-_0x2ccb3f[_0x45fceb(0x1f3)]+0x1,_0x1cf516[_0x45fceb(0x1f3)]);}this[_0x45fceb(0x272)]['reBuildAnchorCache'](_0x210be4,_0x478897);}else{if(_0x2d9d20['id']===_0x1d765c[_0x45fceb(0x2c1)]['id']){let {unitId:_0x444a60,subUnitId:_0x1fe811,sourceRange:_0x4de2e7,targetRange:_0x5d21b5}=_0x2d9d20[_0x45fceb(0x277)],_0x45de19=this[_0x45fceb(0x272)][_0x45fceb(0x1f1)](_0x444a60,_0x1fe811);if(!_0x45de19)return;for(let [_0x27b518,_0x33728e]of _0x45de19){let _0x40c986=_0x33728e[_0x45fceb(0x2f7)];_0x40c986[_0x45fceb(0x2cc)]((_0x94f489,_0x208125,_0x4f1bee)=>{const _0x3a4a79=_0x45fceb;let _0x4b0c0b=(0x0,_0x1d765c[_0x3a4a79(0x25a)])(_0x4f1bee,_0x2d9d20);_0x4b0c0b?_0x40c986['setValue'](_0x94f489,_0x208125,_0x4b0c0b):_0x40c986[_0x3a4a79(0x290)](_0x94f489,_0x208125,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40a9fc[_0x3a4a79(0x28e)][_0x3a4a79(0x206)]});}),_0x40c986[_0x45fceb(0x211)](_0x4de2e7[_0x45fceb(0x244)],_0x4de2e7['endRow']-_0x4de2e7[_0x45fceb(0x244)]+0x1,_0x5d21b5[_0x45fceb(0x244)]);}this[_0x45fceb(0x272)]['reBuildAnchorCache'](_0x444a60,_0x1fe811);}else{if(_0x2d9d20['id']===_0x1d765c[_0x45fceb(0x2c2)]['id']){let {fromRange:_0x53a699,toRange:_0x4b22ea,unitId:_0x542987,from:_0x10f224,to:_0x17defa}=_0x2d9d20['params'];if(_0x10f224[_0x45fceb(0x1fc)]!==_0x17defa[_0x45fceb(0x1fc)])return;let _0x44f52f=_0x10f224[_0x45fceb(0x1fc)],{startRow:_0x47ddcb,endRow:_0x5a8202,startColumn:_0x771ea2,endColumn:_0x5543cf}=_0x53a699,{startRow:_0x20c378,startColumn:_0x50b380}=_0x4b22ea,_0x4196fc=_0x20c378-_0x47ddcb,_0x5d5eff=_0x50b380-_0x771ea2,_0x300bc0=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x542987,_0x44f52f);if(!(_0x300bc0!=null&&_0x300bc0[_0x45fceb(0x25d)]))return;for(let _0x2530e4=_0x47ddcb;_0x2530e4<=_0x5a8202;_0x2530e4++)for(let _0x10ac04=_0x771ea2;_0x10ac04<=_0x5543cf;_0x10ac04++){let _0x2a4e29=this[_0x45fceb(0x272)]['getSparkline'](_0x542987,_0x44f52f,_0x2530e4,_0x10ac04);if(_0x2a4e29){let _0x5175e3=this[_0x45fceb(0x272)][_0x45fceb(0x2f4)](_0x542987,_0x44f52f,_0x2a4e29);if(_0x5175e3){let _0x48fd63=_0x5175e3[_0x45fceb(0x2f7)]['getValue'](_0x2530e4,_0x10ac04);_0x48fd63&&(_0x5175e3[_0x45fceb(0x2f7)][_0x45fceb(0x290)](_0x2530e4+_0x4196fc,_0x10ac04+_0x5d5eff,_0x48fd63),_0x5175e3[_0x45fceb(0x2f7)][_0x45fceb(0x2b6)](_0x2530e4,_0x10ac04));}}}for(let [_0x453e85,_0x2764c2]of _0x300bc0){let _0x2a5d69=_0x2764c2[_0x45fceb(0x2f7)];_0x2a5d69['forValue']((_0x1d0a94,_0x41367c,_0x48eaef)=>{const _0x2eeddb=_0x45fceb;let _0x5b2603={..._0x48eaef};_0x40a9fc[_0x2eeddb(0x26a)][_0x2eeddb(0x26f)](_0x53a699,_0x48eaef)&&(_0x5b2603[_0x2eeddb(0x244)]+=_0x4196fc,_0x5b2603['endRow']+=_0x4196fc,_0x5b2603[_0x2eeddb(0x1f3)]+=_0x5d5eff,_0x5b2603[_0x2eeddb(0x1f6)]+=_0x5d5eff),_0x2a5d69['setValue'](_0x1d0a94,_0x41367c,_0x5b2603);});}this[_0x45fceb(0x272)]['reBuildAnchorCache'](_0x542987,_0x44f52f);}}}}}}}}));}};_0xa5998a=_0x89741f([_0x36ff29(0x0,(0x0,_0x40a9fc['Inject'])(_0x40a9fc[_0x38bb02(0x1f5)])),_0x36ff29(0x1,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x1d765c['RefRangeService'])),_0x36ff29(0x2,_0x40a9fc[_0x38bb02(0x2d1)]),_0x36ff29(0x3,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x17df7a))],_0xa5998a);let _0x42e559=class extends _0x40a9fc['Disposable']{constructor(_0x485d68,_0x212893,_0x5bf4e7){const _0x56fddf=_0x38bb02;super(),this[_0x56fddf(0x247)]=_0x485d68,this['_sheetInterceptorService']=_0x212893,this[_0x56fddf(0x272)]=_0x5bf4e7,this[_0x56fddf(0x2d6)]();}[_0x38bb02(0x2d6)](){const _0x36a6d9=_0x38bb02;this[_0x36a6d9(0x2d4)](this[_0x36a6d9(0x2da)][_0x36a6d9(0x228)]({'getMutations':_0x192fcb=>{const _0x28d7bd=_0x36a6d9;if(_0x192fcb['id']===_0x1d765c[_0x28d7bd(0x252)]['id']){var _0x93e444;let _0x559671=_0x192fcb[_0x28d7bd(0x277)],_0x190a46=_0x559671[_0x28d7bd(0x248)]||this[_0x28d7bd(0x247)][_0x28d7bd(0x280)](_0x40a9fc[_0x28d7bd(0x2bb)][_0x28d7bd(0x24e)])[_0x28d7bd(0x23d)](),_0x58b016=_0x559671['subUnitId']||((_0x93e444=this[_0x28d7bd(0x247)][_0x28d7bd(0x280)](_0x40a9fc[_0x28d7bd(0x2bb)]['UNIVER_SHEET'])[_0x28d7bd(0x29a)]())==null?void 0x0:_0x93e444[_0x28d7bd(0x2d2)]());if(!_0x190a46||!_0x58b016)return{'redos':[],'undos':[]};let _0x52aa4e=this[_0x28d7bd(0x272)]['getSubUnitSparkline'](_0x190a46,_0x58b016);if(!_0x52aa4e)return{'redos':[],'undos':[]};let _0x55e3f0=new Set(),_0x5d4a66={};for(let [_0xb01394,_0x5ad82f]of _0x52aa4e)_0x55e3f0['add'](_0xb01394),_0x5d4a66[_0xb01394]={'config':_0x40a9fc[_0x28d7bd(0x204)][_0x28d7bd(0x213)](_0x5ad82f[_0x28d7bd(0x2ce)]),'sparklines':_0x40a9fc['Tools'][_0x28d7bd(0x213)](_0x5ad82f['sparklines'][_0x28d7bd(0x260)]())};if(_0x55e3f0[_0x28d7bd(0x25d)])return{'redos':[{'id':_0x1551a4['id'],'params':{'unitId':_0x190a46,'subUnitId':_0x58b016,'groupIds':Array[_0x28d7bd(0x245)](_0x55e3f0),'isSingle':!0x1}}],'undos':[{'id':_0x3011a5['id'],'params':{'unitId':_0x190a46,'subUnitId':_0x58b016,'sparklineConfigMap':_0x5d4a66}}]};}else{if(_0x192fcb['id']===_0x1d765c[_0x28d7bd(0x227)]['id']){let {unitId:_0x34a1f6,subUnitId:_0x2c0540,targetSubUnitId:_0x3c5a0f}=_0x192fcb['params'];if(!_0x34a1f6||!_0x2c0540||!_0x3c5a0f)return{'redos':[],'undos':[]};let _0x3ae259=this[_0x28d7bd(0x272)]['getSubUnitSparkline'](_0x34a1f6,_0x2c0540);if(!_0x3ae259)return{'redos':[],'undos':[]};let _0xd40df7=new Set(),_0x22bdfe={};for(let [_0x153ba2,_0x422b41]of _0x3ae259){let _0x178772='g_'+(0x0,_0x40a9fc[_0x28d7bd(0x2f2)])(0x6);_0xd40df7['add'](_0x153ba2),_0x22bdfe[_0x178772]={'config':_0x40a9fc[_0x28d7bd(0x204)][_0x28d7bd(0x213)](_0x422b41[_0x28d7bd(0x2ce)]),'sparklines':_0x40a9fc[_0x28d7bd(0x204)][_0x28d7bd(0x213)](_0x422b41[_0x28d7bd(0x2f7)][_0x28d7bd(0x260)]())};}if(_0xd40df7['size'])return{'redos':[{'id':_0x3011a5['id'],'params':{'unitId':_0x34a1f6,'subUnitId':_0x3c5a0f,'sparklineConfigMap':_0x22bdfe}}],'undos':[{'id':_0x1551a4['id'],'params':{'unitId':_0x34a1f6,'subUnitId':_0x3c5a0f,'groupIds':Array[_0x28d7bd(0x245)](_0xd40df7),'isSingle':!0x1}}]};}}return{'redos':[],'undos':[]};}}));}};_0x42e559=_0x89741f([_0x36ff29(0x0,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x40a9fc['IUniverInstanceService'])),_0x36ff29(0x1,(0x0,_0x40a9fc['Inject'])(_0x1d765c['SheetInterceptorService'])),_0x36ff29(0x2,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x17df7a))],_0x42e559);let _0x2a4d3f=class extends _0x40a9fc[_0x38bb02(0x2a2)]{constructor(_0x244060,_0x5b857c){const _0x5899f0=_0x38bb02;super(),this['_resourceManagerService']=_0x244060,this[_0x5899f0(0x272)]=_0x5b857c,this[_0x5899f0(0x262)]();}[_0x38bb02(0x262)](){const _0x3fcd46=_0x38bb02;this['disposeWithMe'](this[_0x3fcd46(0x21d)]['registerPluginResource']({'toJson':_0x58f40f=>{const _0x1becc1=_0x3fcd46;let _0x2b89f8=this[_0x1becc1(0x272)][_0x1becc1(0x28b)](_0x58f40f);return _0x2b89f8?JSON[_0x1becc1(0x22b)](_0x2b89f8):'';},'parseJson':_0x30f128=>_0x30f128?JSON[_0x3fcd46(0x2ad)](_0x30f128):{},'pluginName':_0x10b317,'businesses':[_0x40a9fc[_0x3fcd46(0x2bb)][_0x3fcd46(0x24e)]],'onLoad':(_0x36e5b6,_0x10470d)=>{const _0x56115c=_0x3fcd46;this['_sparklineDataSourceModel'][_0x56115c(0x2e4)](_0x10470d);},'onUnLoad':_0x276555=>{const _0x4ce7f7=_0x3fcd46;this[_0x4ce7f7(0x272)][_0x4ce7f7(0x25c)](_0x276555);}}));}};_0x2a4d3f=_0x89741f([_0x36ff29(0x0,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x40a9fc[_0x38bb02(0x22d)])),_0x36ff29(0x1,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x17df7a))],_0x2a4d3f);let _0xd30128=class extends _0x40a9fc['Plugin']{constructor(_0x52af7d={},_0x20c4eb,_0x2151a4){const _0x2e779a=_0x38bb02;super(),this[_0x2e779a(0x1fb)]=_0x52af7d,this[_0x2e779a(0x2d0)]=_0x20c4eb,this[_0x2e779a(0x24c)]=_0x2151a4,this[_0x2e779a(0x21f)](),this[_0x2e779a(0x263)]();}[_0x38bb02(0x21f)](){const _0x49660b=_0x38bb02;[[_0x17df7a],[_0x1e8fe4],[_0xbdfbc8],[_0x1b6314],[_0xa5998a],[_0xfe3bb2],[_0x42e559],[_0x2a4d3f]][_0x49660b(0x2e6)](_0x49872f=>{const _0x338f2c=_0x49660b;this[_0x338f2c(0x2d0)][_0x338f2c(0x294)](_0x49872f);}),(0x0,_0x40a9fc[_0x49660b(0x2e5)])(this[_0x49660b(0x2d0)],[[_0x2a4d3f]]);}['onReady'](){const _0x2af30e=_0x38bb02;(0x0,_0x40a9fc[_0x2af30e(0x2e5)])(this[_0x2af30e(0x2d0)],[[_0x1e8fe4],[_0xbdfbc8],[_0x1b6314],[_0xa5998a],[_0xfe3bb2],[_0x42e559]]);}[_0x38bb02(0x263)](){const _0xcdfde4=_0x38bb02;[_0x17b0a6,_0x3011a5,_0x613b29,_0x1551a4,_0x11dffa,_0x485853]['forEach'](_0x4128fb=>this[_0xcdfde4(0x24c)][_0xcdfde4(0x2d8)](_0x4128fb));}};_0x29101a(_0xd30128,'pluginName',_0x10b317),_0x29101a(_0xd30128,'packageName',_0x4b3b7a),_0x29101a(_0xd30128,_0x38bb02(0x2e3),_0x4be93a),_0x29101a(_0xd30128,_0x38bb02(0x26c),_0x40a9fc[_0x38bb02(0x2bb)][_0x38bb02(0x24e)]),_0xd30128=_0x89741f([(0x0,_0x40a9fc[_0x38bb02(0x210)])(_0x4ba634['UniverLicensePlugin']),_0x36ff29(0x1,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x40a9fc[_0x38bb02(0x23c)])),_0x36ff29(0x2,(0x0,_0x40a9fc[_0x38bb02(0x29d)])(_0x40a9fc['ICommandService']))],_0xd30128),_0x21765b[_0x38bb02(0x207)]=_0x17b0a6,_0x21765b[_0x38bb02(0x299)]=_0x3011a5,_0x21765b[_0x38bb02(0x2f1)]=_0x10b317,_0x21765b[_0x38bb02(0x27f)]=_0x613b29,_0x21765b[_0x38bb02(0x2c5)]=_0x1551a4,_0x21765b['SetSheetSparklineCommand']=_0x11dffa,_0x21765b[_0x38bb02(0x2ba)]=_0x485853,_0x21765b[_0x38bb02(0x254)]=_0x229327,Object[_0x38bb02(0x2f3)](_0x21765b,'SparklineDataSourceModel',{'enumerable':!0x0,'get':function(){return _0x17df7a;}}),_0x21765b[_0x38bb02(0x225)]=_0x3cf326,_0x21765b['SparklinePointsNames']=_0x2fb838,_0x21765b[_0x38bb02(0x257)]=_0x43330f,_0x21765b['SparklineThemeTypeEnum']=_0x2289d6,_0x21765b[_0x38bb02(0x2a8)]=_0x3c7b03,Object[_0x38bb02(0x2f3)](_0x21765b,_0x38bb02(0x1f9),{'enumerable':!0x0,'get':function(){return _0xd30128;}}),_0x21765b[_0x38bb02(0x25b)]=_0x14491c;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-sparkline",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "private": false,
5
5
  "description": "Sparkline model integration for Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -65,15 +65,15 @@
65
65
  "rxjs": ">=7.0.0"
66
66
  },
67
67
  "dependencies": {
68
- "@univerjs-pro/license": "0.25.0",
69
- "@univerjs/core": "0.25.0",
70
- "@univerjs/sheets": "0.25.0"
68
+ "@univerjs-pro/license": "0.25.2",
69
+ "@univerjs/core": "0.25.2",
70
+ "@univerjs/sheets": "0.25.2"
71
71
  },
72
72
  "devDependencies": {
73
73
  "rxjs": "7.8.2",
74
74
  "typescript": "^6.0.3",
75
75
  "vitest": "^4.1.6",
76
- "@univerjs-infra/shared": "0.25.0"
76
+ "@univerjs-infra/shared": "0.25.2"
77
77
  },
78
78
  "scripts": {
79
79
  "test": "vitest run",