@univerjs-pro/sheets-sparkline 0.8.1-nightly.202506151606 → 0.8.1-nightly.202506171607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4fb522=_0xa9aa;(function(_0xd70e13,_0x48dd20){const _0x89791d=_0xa9aa,_0x4ebf62=_0xd70e13();while(!![]){try{const _0x3e9444=-parseInt(_0x89791d(0x16f))/0x1+-parseInt(_0x89791d(0x18e))/0x2+-parseInt(_0x89791d(0x18b))/0x3*(parseInt(_0x89791d(0x162))/0x4)+parseInt(_0x89791d(0x1bc))/0x5+-parseInt(_0x89791d(0x110))/0x6+-parseInt(_0x89791d(0x159))/0x7*(parseInt(_0x89791d(0x1a2))/0x8)+parseInt(_0x89791d(0x1ad))/0x9;if(_0x3e9444===_0x48dd20)break;else _0x4ebf62['push'](_0x4ebf62['shift']());}catch(_0x28cc7a){_0x4ebf62['push'](_0x4ebf62['shift']());}}}(_0x54e0,0xb6235));var qe=Object[_0x4fb522(0x125)],Qe=(_0x1da47e,_0x10eadd,_0x1d1fd9)=>_0x10eadd in _0x1da47e?qe(_0x1da47e,_0x10eadd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d1fd9}):_0x1da47e[_0x10eadd]=_0x1d1fd9,se=(_0x4363e9,_0x17fff7,_0x1766de)=>Qe(_0x4363e9,typeof _0x17fff7!=_0x4fb522(0x144)?_0x17fff7+'':_0x17fff7,_0x1766de);import{UniverLicensePlugin as _0x4e9fc5}from'@univerjs-pro/license';import{ObjectMatrix as _0x2080ce,Inject as _0x36ac04,IUniverInstanceService as _0x34ae2b,Disposable as _0x38e949,isValidRange as _0x29b07b,CellValueType as _0x5624c9,ColorKit as _0x58aea9,CommandType as _0x3c0f13,Range as _0x1794d9,IUndoRedoService as _0x3b2f8d,generateRandomId as _0x51f3a9,ICommandService as _0x268ad9,Tools as _0x3ccc44,sequenceExecute as _0x3cce5b,Rectangle as _0x3b8d48,cellToRange as _0x3309a3,DisposableCollection as _0x563b88,RANGE_TYPE as _0x40b876,UniverInstanceType as _0x1fb932,IResourceManagerService as _0x38f9b5,DependentOn as _0x58a45f,Injector as _0x25ab4e,Plugin as _0x1d6ae6,touchDependencies as _0x32fc3c}from'@univerjs/core';import{getSheetCommandTarget as _0x56d415,SheetsSelectionsService as _0x4b2cd4,SheetInterceptorService as _0x136aa0,ClearSelectionAllCommand as _0xe2ebe1,CopySheetCommand as _0x41a6ad,IExclusiveRangeService as _0x2b8023,SetRangeValuesMutation as _0x1fe5b6,ReorderRangeMutation as _0x41232a,SetRowHiddenMutation as _0x24d078,SetColHiddenMutation as _0x1666f9,SetRowVisibleMutation as _0x58dcb8,SetColVisibleMutation as _0x9e7942,AddWorksheetMergeCommand as _0x38849e,RefRangeService as _0xecf202,SetWorksheetActivateCommand as _0x550127,RemoveRowCommand as _0x3735b3,RemoveColCommand as _0xea0645,adjustRangeOnMutation as _0x2a933e,RemoveRowMutation as _0x577dcd,RemoveColMutation as _0x36736e,InsertColMutation as _0x38b493,InsertRowMutation as _0xcd3f92,MoveColsMutation as _0x2d0c5f,MoveRowsMutation as _0x19bef0,MoveRangeMutation as _0x2861b}from'@univerjs/sheets';import{Subject as _0x20f71c}from'rxjs';function Fe(_0x3eec01,_0x574cf7){const _0x36b2d0=_0x4fb522,_0x24137b=new _0x2080ce(),_0x1e483f=[],_0x5bf4ad=_0x3eec01[_0x36b2d0(0x1c2)]>0x1;let _0x4fd05c=0x0,_0x151366=0x0;for(const _0x445482 of _0x3eec01)_0x4fd05c+=_0x445482[_0x36b2d0(0x115)]-_0x445482[_0x36b2d0(0x132)]+0x1,_0x151366+=_0x445482[_0x36b2d0(0x177)]-_0x445482[_0x36b2d0(0x13b)]+0x1;for(const _0x36d1af of _0x574cf7)for(let _0x43db09=_0x36d1af[_0x36b2d0(0x132)];_0x43db09<=_0x36d1af[_0x36b2d0(0x115)];_0x43db09++)for(let _0x64ae8=_0x36d1af[_0x36b2d0(0x13b)];_0x64ae8<=_0x36d1af[_0x36b2d0(0x177)];_0x64ae8++)_0x1e483f[_0x36b2d0(0x127)]({'row':_0x43db09,'column':_0x64ae8});if(_0x1e483f['length']===_0x4fd05c)_0x5bf4ad?_0x1e483f[_0x36b2d0(0x174)]((_0x3d05d3,_0x99697)=>{const _0x1bd3b7=_0x36b2d0,_0x1e13f5=_0x3eec01[_0x99697],_0x5b8912={'startRow':_0x1e13f5[_0x1bd3b7(0x132)],'startColumn':_0x1e13f5['startColumn'],'endRow':_0x1e13f5[_0x1bd3b7(0x132)],'endColumn':_0x1e13f5[_0x1bd3b7(0x177)]};_0x24137b['setValue'](_0x3d05d3[_0x1bd3b7(0x160)],_0x3d05d3['column'],_0x5b8912);}):_0x1e483f['forEach']((_0x979dce,_0x2edfe7)=>{const _0x266799=_0x36b2d0,_0x19314d=_0x3eec01[0x0],_0x2f0022={'startRow':_0x19314d[_0x266799(0x132)]+_0x2edfe7,'startColumn':_0x19314d['startColumn'],'endRow':_0x19314d[_0x266799(0x132)]+_0x2edfe7,'endColumn':_0x19314d[_0x266799(0x177)]};_0x24137b[_0x266799(0x1a5)](_0x979dce[_0x266799(0x160)],_0x979dce[_0x266799(0x161)],_0x2f0022);});else{if(_0x1e483f[_0x36b2d0(0x1c2)]===_0x151366)_0x5bf4ad?_0x1e483f[_0x36b2d0(0x174)]((_0x2bfd58,_0x5ccbdf)=>{const _0x45e272=_0x36b2d0,_0x3db609=_0x3eec01[_0x5ccbdf],_0x2038ee={'startRow':_0x3db609[_0x45e272(0x132)],'startColumn':_0x3db609['startColumn'],'endRow':_0x3db609['endRow'],'endColumn':_0x3db609['startColumn']};_0x24137b[_0x45e272(0x1a5)](_0x2bfd58[_0x45e272(0x160)],_0x2bfd58[_0x45e272(0x161)],_0x2038ee);}):_0x1e483f[_0x36b2d0(0x174)]((_0x1aa17d,_0x1c99ea)=>{const _0x44f4b0=_0x36b2d0,_0x3426cd=_0x3eec01[0x0],_0x3f8dc9={'startRow':_0x3426cd[_0x44f4b0(0x132)],'startColumn':_0x3426cd[_0x44f4b0(0x13b)]+_0x1c99ea,'endRow':_0x3426cd[_0x44f4b0(0x115)],'endColumn':_0x3426cd[_0x44f4b0(0x13b)]+_0x1c99ea};_0x24137b['setValue'](_0x1aa17d[_0x44f4b0(0x160)],_0x1aa17d[_0x44f4b0(0x161)],_0x3f8dc9);});else{if(_0x1e483f['length']===_0x3eec01[_0x36b2d0(0x1c2)])_0x3eec01[_0x36b2d0(0x195)](_0x469500=>!(_0x469500['startRow']!==_0x469500[_0x36b2d0(0x115)]&&_0x469500[_0x36b2d0(0x13b)]!==_0x469500[_0x36b2d0(0x177)]))&&_0x1e483f['forEach']((_0x71be4c,_0x15d160)=>{const _0x421b23=_0x36b2d0,_0x3cd6d9=_0x3eec01[_0x15d160];_0x24137b['setValue'](_0x71be4c['row'],_0x71be4c[_0x421b23(0x161)],_0x3cd6d9);});else throw new Error(_0x36b2d0(0x170));}}return _0x24137b;}const Ke=_0x4fb522(0x189),Le={'standard':[_0x4fb522(0x11f),_0x4fb522(0x1b3)],'specialty':[_0x4fb522(0x17f),'rgb(30,177,189)'],'distinctive':[_0x4fb522(0x116),_0x4fb522(0x19a)],'soft':[_0x4fb522(0x192),_0x4fb522(0x13f)],'fresh':['rgb(46,187,122)',_0x4fb522(0x169)]},on=['highPoint',_0x4fb522(0x12e),_0x4fb522(0x122),'lowPoint',_0x4fb522(0x12d),_0x4fb522(0x133)];var Xe=(_0x1a5af1=>(_0x1a5af1['STANDARD']=_0x4fb522(0x1b2),_0x1a5af1[_0x4fb522(0x197)]=_0x4fb522(0x1af),_0x1a5af1[_0x4fb522(0x18d)]=_0x4fb522(0x15e),_0x1a5af1[_0x4fb522(0x121)]='soft',_0x1a5af1['FRESH']=_0x4fb522(0x185),_0x1a5af1[_0x4fb522(0x17b)]=_0x4fb522(0x135),_0x1a5af1))(Xe||{}),Dt=(_0x22dfce=>(_0x22dfce[_0x22dfce[_0x4fb522(0x136)]=0x1]=_0x4fb522(0x136),_0x22dfce[_0x22dfce[_0x4fb522(0x114)]=0x2]=_0x4fb522(0x114),_0x22dfce[_0x22dfce[_0x4fb522(0x16b)]=0x3]=_0x4fb522(0x16b),_0x22dfce[_0x22dfce[_0x4fb522(0x117)]=0x4]=_0x4fb522(0x117),_0x22dfce))(Dt||{}),J=(_0x2978e7=>(_0x2978e7[_0x4fb522(0x1b0)]='spacing',_0x2978e7[_0x4fb522(0x16a)]=_0x4fb522(0x14e),_0x2978e7[_0x4fb522(0x165)]='connect_with_line',_0x2978e7))(J||{}),Ee=(_0x201861=>(_0x201861[_0x201861[_0x4fb522(0x193)]=0x1]=_0x4fb522(0x193),_0x201861[_0x201861[_0x4fb522(0x1b8)]=0x2]=_0x4fb522(0x1b8),_0x201861[_0x201861[_0x4fb522(0x1a4)]=0x3]=_0x4fb522(0x1a4),_0x201861))(Ee||{}),Et=Object[_0x4fb522(0x146)],Vt=(_0x50720e,_0x17c983,_0x46b96c,_0x39ab36)=>{for(var _0x1d40a7=_0x39ab36>0x1?void 0x0:_0x39ab36?Et(_0x17c983,_0x46b96c):_0x17c983,_0x4f6fc4=_0x50720e['length']-0x1,_0x27f2b3;_0x4f6fc4>=0x0;_0x4f6fc4--)(_0x27f2b3=_0x50720e[_0x4f6fc4])&&(_0x1d40a7=_0x27f2b3(_0x1d40a7)||_0x1d40a7);return _0x1d40a7;},yt=(_0x26d069,_0x1179a2)=>(_0x337ec5,_0x245435)=>_0x1179a2(_0x337ec5,_0x245435,_0x26d069);let x=class extends _0x38e949{constructor(_0x3bc777){const _0x589718=_0x4fb522;super(),se(this,_0x589718(0x1b9),new Map()),se(this,_0x589718(0x19e),new Map()),se(this,_0x589718(0x14d),new _0x20f71c()),se(this,_0x589718(0x16d),this[_0x589718(0x14d)][_0x589718(0x11e)]()),this['_univerInstanceService']=_0x3bc777;}[_0x4fb522(0x163)](_0x56301a,_0x3e1c46){const _0x14913e=_0x4fb522;let _0x137fde=this['_sparklineModel'][_0x14913e(0x17d)](_0x56301a);_0x137fde||(_0x137fde=new Map(),this[_0x14913e(0x1b9)][_0x14913e(0x164)](_0x56301a,_0x137fde));let _0x6a622c=_0x137fde[_0x14913e(0x17d)](_0x3e1c46);return _0x6a622c||(_0x6a622c=new Map(),_0x137fde[_0x14913e(0x164)](_0x3e1c46,_0x6a622c)),_0x6a622c;}[_0x4fb522(0x19c)](_0x500533,_0xa6461d){const _0x161914=_0x4fb522;let _0x41cabd=this[_0x161914(0x19e)][_0x161914(0x17d)](_0x500533);_0x41cabd||(_0x41cabd=new Map(),this['_sparklineAnchorMap'][_0x161914(0x164)](_0x500533,_0x41cabd));let _0x278aa0=_0x41cabd[_0x161914(0x17d)](_0xa6461d);return _0x278aa0||(_0x278aa0={'matrix':new _0x2080ce(),'extra':{}},_0x41cabd['set'](_0xa6461d,_0x278aa0)),_0x278aa0;}['updateSparklineExtraNum'](_0x3ae6c1,_0x32999e,_0x599f6b,_0x30922c=_0x4fb522(0x164)){const _0x343c72=_0x4fb522;var _0xa903df,_0x15b5eb,_0x1546ae,_0x2cf769,_0x484ff5,_0xa5f9bd,_0x5ba9ed,_0x23d1d4,_0x493a6b,_0x3eebe0,_0x4f56d7,_0x10b08b,_0x23088d;const _0x88a4e8=(_0x15b5eb=(_0xa903df=this[_0x343c72(0x1b9)]['get'](_0x3ae6c1))==null?void 0x0:_0xa903df[_0x343c72(0x17d)](_0x32999e))==null?void 0x0:_0x15b5eb[_0x343c72(0x17d)](_0x599f6b);if(!_0x88a4e8)return;const _0x2ee6db=_0x56d415(this[_0x343c72(0x152)],{'unitId':_0x3ae6c1,'subUnitId':_0x32999e});if(!_0x2ee6db)return;const _0x2df8cf=this[_0x343c72(0x19c)](_0x3ae6c1,_0x32999e),{extra:_0x28ae4b,matrix:_0x36fcec}=_0x2df8cf,{worksheet:_0x53e51f}=_0x2ee6db;let _0x20a478=Number[_0x343c72(0x1a8)],_0x2b190c=Number[_0x343c72(0x171)];const _0x27c048=(_0x1546ae=_0x88a4e8[_0x343c72(0x19f)]['containHiddenCells'])!=null?_0x1546ae:!0x1;_0x88a4e8[_0x343c72(0x19d)][_0x343c72(0x187)]((_0x13f2f1,_0x3fe965,_0x5c2236)=>{const _0x311528=_0x343c72;var _0x1b8fd1,_0x24a780,_0x45a3f6;const _0x37b00d=_0x5c2236;let _0x1d329e=Number[_0x311528(0x1a8)],_0x7f376=Number[_0x311528(0x171)],_0x3bb920=0x0,_0x32fd97=0x0;const _0x41cd12=[];if(!_0x29b07b(_0x37b00d))_0x36fcec[_0x311528(0x1a5)](_0x13f2f1,_0x3fe965,{'groupId':_0x599f6b,'data':[],'max':_0x1d329e,'min':_0x7f376,'highIndex':_0x3bb920,'lowIndex':_0x32fd97,'negativeIndexes':_0x41cd12});else{const _0x2660fb=[];for(let _0x3e5486=_0x37b00d[_0x311528(0x132)];_0x3e5486<=_0x37b00d['endRow'];_0x3e5486++){for(let _0x1ceb4b=_0x37b00d[_0x311528(0x13b)];_0x1ceb4b<=_0x37b00d['endColumn'];_0x1ceb4b++){const _0x1c69af=_0x53e51f[_0x311528(0x138)](_0x3e5486),_0x7846ed=_0x53e51f[_0x311528(0x166)](_0x1ceb4b);if(!_0x27c048&&(!_0x1c69af||!_0x7846ed))continue;let _0x3b9061=0x0;const _0xb478a9=((_0x1b8fd1=_0x53e51f[_0x311528(0x149)](_0x3e5486,_0x1ceb4b))==null?void 0x0:_0x1b8fd1['v'])!==void 0x0?_0x53e51f[_0x311528(0x149)](_0x3e5486,_0x1ceb4b):_0x53e51f[_0x311528(0x1bf)](_0x3e5486,_0x1ceb4b);if(!_0xb478a9||_0xb478a9['v']===void 0x0||_0xb478a9['v']===null){const _0x339108=(_0x24a780=_0x88a4e8[_0x311528(0x19f)][_0x311528(0x172)])!=null?_0x24a780:J[_0x311528(0x1b0)];_0x339108===J[_0x311528(0x16a)]?_0x3b9061=0x0:_0x339108===J[_0x311528(0x1b0)]?_0x3b9061='u-spacing':_0x339108===J[_0x311528(0x165)]&&(_0x3b9061=_0x311528(0x15c));}else{if(_0xb478a9['t']===_0x5624c9[_0x311528(0x11b)]||_0xb478a9['t']===_0x5624c9[_0x311528(0x19b)]){const _0x31c5a7=(_0x45a3f6=_0x88a4e8[_0x311528(0x19f)]['nonNumShowAs'])!=null?_0x45a3f6:J[_0x311528(0x1b0)];_0x31c5a7===J[_0x311528(0x16a)]?_0x3b9061=0x0:_0x31c5a7===J[_0x311528(0x1b0)]?_0x3b9061=_0x311528(0x173):_0x31c5a7===J[_0x311528(0x165)]&&(_0x3b9061='u-connect');}else _0xb478a9['t']===_0x5624c9[_0x311528(0x11a)]?_0x3b9061=_0xb478a9['v']?0x1:0x0:_0xb478a9['t']===_0x5624c9[_0x311528(0x14f)]?_0x3b9061=Number(_0xb478a9['v']):_0x3b9061=_0xb478a9['v'];}if(_0x2660fb['push'](_0x3b9061),typeof _0x3b9061==_0x311528(0x167)){_0x1d329e=Math[_0x311528(0x18a)](_0x1d329e,_0x3b9061),_0x20a478=Math[_0x311528(0x18a)](_0x20a478,_0x3b9061),_0x2b190c=Math[_0x311528(0x141)](_0x2b190c,_0x3b9061),_0x7f376=Math['min'](_0x7f376,_0x3b9061);const _0x4eecf6=typeof _0x2660fb[_0x3bb920]==_0x311528(0x167)?Number(_0x2660fb[_0x3bb920]):Number[_0x311528(0x1a8)];_0x3b9061>_0x4eecf6&&(_0x3bb920=_0x2660fb[_0x311528(0x1c2)]-0x1);const _0x5a00ae=typeof _0x2660fb[_0x32fd97]==_0x311528(0x167)?Number(_0x2660fb[_0x32fd97]):Number[_0x311528(0x171)];_0x3b9061<_0x5a00ae&&(_0x32fd97=_0x2660fb[_0x311528(0x1c2)]-0x1),_0x3b9061<0x0&&_0x41cd12['push'](_0x2660fb[_0x311528(0x1c2)]-0x1);}}_0x36fcec['setValue'](_0x13f2f1,_0x3fe965,{'groupId':_0x599f6b,'data':_0x2660fb,'max':_0x1d329e,'min':_0x7f376,'highIndex':_0x3bb920,'lowIndex':_0x32fd97,'negativeIndexes':_0x41cd12});}}});let _0x3a0489=_0x20a478;((_0x2cf769=_0x88a4e8[_0x343c72(0x19f)][_0x343c72(0x13a)])==null?void 0x0:_0x2cf769[_0x343c72(0x120)])===Ee[_0x343c72(0x1a4)]&&(_0x3a0489=(_0xa5f9bd=(_0x484ff5=_0x88a4e8[_0x343c72(0x19f)]['extremumMax'])==null?void 0x0:_0x484ff5[_0x343c72(0x15b)])!=null?_0xa5f9bd:_0x20a478);let _0x2ddd94=_0x2b190c;((_0x5ba9ed=_0x88a4e8[_0x343c72(0x19f)][_0x343c72(0x111)])==null?void 0x0:_0x5ba9ed[_0x343c72(0x120)])===Ee[_0x343c72(0x1a4)]&&(_0x2ddd94=(_0x493a6b=(_0x23d1d4=_0x88a4e8[_0x343c72(0x19f)][_0x343c72(0x111)])==null?void 0x0:_0x23d1d4[_0x343c72(0x15b)])!=null?_0x493a6b:_0x2b190c);const _0x123ae7=(_0x3eebe0=_0x88a4e8[_0x343c72(0x19f)]['themeType'])!=null?_0x3eebe0:Xe['STANDARD'],_0x2fa0d6=(_0x23088d=(_0x10b08b=_0x88a4e8[_0x343c72(0x19f)]['seriesColor'])!=null?_0x10b08b:(_0x4f56d7=Le[_0x123ae7])==null?void 0x0:_0x4f56d7[0x0])!=null?_0x23088d:Le[_0x343c72(0x1b2)][0x0],_0x28e464=new _0x58aea9(_0x2fa0d6),_0x1f20ac=_0x28e464[_0x343c72(0x17a)](0.2)[_0x343c72(0x134)](),_0x3e4562=_0x28e464[_0x343c72(0x17a)](0.05)[_0x343c72(0x134)]();_0x28ae4b[_0x599f6b]={'groupMax':_0x20a478,'groupMin':_0x2b190c,'showMax':_0x3a0489,'showMin':_0x2ddd94,'startGradient':_0x1f20ac,'endGradient':_0x3e4562},this['_updateConfig$'][_0x343c72(0x18c)]({'unitId':_0x3ae6c1,'subUnitId':_0x32999e,'groupId':_0x599f6b,'config':_0x88a4e8,'type':_0x30922c});}[_0x4fb522(0x186)](_0x2551de,_0x5d8d8d,_0x577633,_0x4cb923){const _0x11f8e6=_0x4fb522;this['_ensureConfigMap'](_0x2551de,_0x5d8d8d)[_0x11f8e6(0x164)](_0x577633,_0x4cb923),this[_0x11f8e6(0x140)](_0x2551de,_0x5d8d8d,_0x577633,_0x11f8e6(0x1a3));}['setSparkline'](_0x44f219,_0x216874,_0x21d6dd,_0x2a98fe){const _0x34d030=_0x4fb522;var _0xbef942;const _0x1835c6=(_0xbef942=this['_sparklineModel'][_0x34d030(0x17d)](_0x44f219))==null?void 0x0:_0xbef942['get'](_0x216874);_0x21d6dd[_0x34d030(0x174)](_0x54445e=>{const _0x3966f0=_0x34d030;_0x1835c6!=null&&_0x1835c6['has'](_0x54445e)&&(_0x1835c6[_0x3966f0(0x164)](_0x54445e,_0x2a98fe),this[_0x3966f0(0x140)](_0x44f219,_0x216874,_0x54445e));});}[_0x4fb522(0x1be)](_0x24866a,_0x2778b9,_0x4ac501){const _0x224a1d=_0x4fb522;var _0x5cb9bd,_0x2fde58;const _0x33af15=this['_sparklineModel'][_0x224a1d(0x17d)](_0x24866a);if(_0x33af15){const _0x4dfcfc=_0x33af15[_0x224a1d(0x17d)](_0x2778b9);if(_0x4dfcfc){_0x4dfcfc[_0x224a1d(0x12f)](_0x4ac501);const _0x154e13=(_0x5cb9bd=this[_0x224a1d(0x19e)][_0x224a1d(0x17d)](_0x24866a))==null?void 0x0:_0x5cb9bd[_0x224a1d(0x17d)](_0x2778b9);(_0x2fde58=_0x154e13==null?void 0x0:_0x154e13[_0x224a1d(0x156)])==null||_0x2fde58[_0x224a1d(0x187)]((_0x56ed71,_0x4061af,_0x2ec5fb)=>{const _0xe947e1=_0x224a1d;(_0x2ec5fb==null?void 0x0:_0x2ec5fb[_0xe947e1(0x154)])===_0x4ac501&&(_0x154e13==null||_0x154e13[_0xe947e1(0x156)][_0xe947e1(0x178)](_0x56ed71,_0x4061af));}),this['_updateConfig$'][_0x224a1d(0x18c)]({'unitId':_0x24866a,'subUnitId':_0x2778b9,'groupId':_0x4ac501,'type':'remove'});}}}[_0x4fb522(0x1bd)](_0x21ea0f,_0x5ef73c,_0x589e7a,_0x408c11){const _0x39d98e=_0x4fb522;var _0x5ded50,_0x1bb4d5,_0x3bca0f,_0x8ced37;const _0x48a479=(_0x5ded50=this[_0x39d98e(0x19e)][_0x39d98e(0x17d)](_0x21ea0f))==null?void 0x0:_0x5ded50[_0x39d98e(0x17d)](_0x5ef73c),_0x5b47cc=_0x48a479==null?void 0x0:_0x48a479[_0x39d98e(0x156)][_0x39d98e(0x11d)](_0x589e7a,_0x408c11);if(_0x5b47cc){const {groupId:_0x186125}=_0x5b47cc,_0x127871=(_0x1bb4d5=this[_0x39d98e(0x1b9)]['get'](_0x21ea0f))==null?void 0x0:_0x1bb4d5[_0x39d98e(0x17d)](_0x5ef73c);(_0x3bca0f=_0x127871==null?void 0x0:_0x127871[_0x39d98e(0x17d)](_0x186125))==null||_0x3bca0f['sparklines'][_0x39d98e(0x178)](_0x589e7a,_0x408c11),(_0x8ced37=_0x127871==null?void 0x0:_0x127871[_0x39d98e(0x17d)](_0x186125))!=null&&_0x8ced37['sparklines'][_0x39d98e(0x11c)]()||_0x127871==null||_0x127871[_0x39d98e(0x12f)](_0x186125),_0x48a479==null||_0x48a479['matrix'][_0x39d98e(0x178)](_0x589e7a,_0x408c11),this['_updateConfig$']['next']({'unitId':_0x21ea0f,'subUnitId':_0x5ef73c,'groupId':_0x186125,'type':_0x39d98e(0x1b6)});}}[_0x4fb522(0x148)](_0x39eba7,_0x4ae8e2,_0xc4c7b8){const _0x4b7561=_0x4fb522;var _0x14366d,_0x576537,_0x54dcb1,_0xca4d71;const _0xd6c92f=(_0x54dcb1=(_0x576537=(_0x14366d=this[_0x4b7561(0x1b9)][_0x4b7561(0x17d)](_0x39eba7))==null?void 0x0:_0x14366d[_0x4b7561(0x17d)](_0x4ae8e2))==null?void 0x0:_0x576537[_0x4b7561(0x17d)](_0xc4c7b8))==null?void 0x0:_0x54dcb1['sparklines'],_0x1f438b=(_0xca4d71=this[_0x4b7561(0x19e)][_0x4b7561(0x17d)](_0x39eba7))==null?void 0x0:_0xca4d71['get'](_0x4ae8e2);if(_0xd6c92f&&_0x1f438b){const {matrix:_0x4849ea,extra:_0x97d681}=_0x1f438b;_0xd6c92f['forValue']((_0x1de4ec,_0x4bc25c,_0x23f19e)=>{const _0x45c7c7=_0x4b7561;_0x4849ea[_0x45c7c7(0x178)](_0x1de4ec,_0x4bc25c);}),delete _0x97d681[_0xc4c7b8];}}[_0x4fb522(0x13d)](_0x417630,_0x6b6a7b){const _0x56c198=_0x4fb522;var _0x5ecc24;return(_0x5ecc24=this[_0x56c198(0x1b9)][_0x56c198(0x17d)](_0x417630))==null?void 0x0:_0x5ecc24[_0x56c198(0x17d)](_0x6b6a7b);}[_0x4fb522(0x129)](_0x427461,_0x4ebce1,_0xd4048){const _0x2b81bd=_0x4fb522;var _0x2a4d41,_0x3caf99;return(_0x3caf99=(_0x2a4d41=this[_0x2b81bd(0x1b9)][_0x2b81bd(0x17d)](_0x427461))==null?void 0x0:_0x2a4d41[_0x2b81bd(0x17d)](_0x4ebce1))==null?void 0x0:_0x3caf99[_0x2b81bd(0x17d)](_0xd4048);}[_0x4fb522(0x190)](_0x419e77,_0x2b1c90,_0x4682f2,_0x41064e){const _0x4ab348=_0x4fb522;var _0x1dd58c,_0x1f0ebb,_0x425466;return(_0x425466=(_0x1f0ebb=(_0x1dd58c=this[_0x4ab348(0x19e)]['get'](_0x419e77))==null?void 0x0:_0x1dd58c[_0x4ab348(0x17d)](_0x2b1c90))==null?void 0x0:_0x1f0ebb['matrix'][_0x4ab348(0x11d)](_0x4682f2,_0x41064e))==null?void 0x0:_0x425466['groupId'];}[_0x4fb522(0x126)](_0x5adac1,_0x307247){const _0x37d5c7=_0x4fb522;var _0x287225;const _0x11c673=this[_0x37d5c7(0x19c)](_0x5adac1,_0x307247);_0x11c673['matrix'][_0x37d5c7(0x187)]((_0x2448ec,_0x480926,_0x3b8199)=>{const _0x3a57d4=_0x37d5c7;_0x11c673[_0x3a57d4(0x156)][_0x3a57d4(0x178)](_0x2448ec,_0x480926);});const _0x5e8f71=(_0x287225=this[_0x37d5c7(0x1b9)][_0x37d5c7(0x17d)](_0x5adac1))==null?void 0x0:_0x287225['get'](_0x307247);if(_0x5e8f71){for(const [_0x3d997f,_0x6a6981]of _0x5e8f71)this['updateSparklineExtraNum'](_0x5adac1,_0x307247,_0x3d997f);}}[_0x4fb522(0x147)](){return{'sparklineModel':this['_sparklineModel'],'sparklineAnchorMap':this['_sparklineAnchorMap']};}[_0x4fb522(0x1a0)](_0x8f5626){const _0x3d0057=_0x4fb522,_0x3a3dda={};if(this[_0x3d0057(0x1b9)]['has'](_0x8f5626)){_0x3a3dda[_0x8f5626]={};const _0x1478c0=this[_0x3d0057(0x1b9)][_0x3d0057(0x17d)](_0x8f5626);_0x1478c0!=null&&_0x1478c0[_0x3d0057(0x12a)]&&Array[_0x3d0057(0x17e)](_0x1478c0['keys']())['forEach'](_0xc764fa=>{const _0x3e43fa=_0x3d0057;_0x3a3dda[_0x8f5626][_0xc764fa]={};const _0x24cf63=_0x1478c0[_0x3e43fa(0x17d)](_0xc764fa);_0x24cf63!=null&&_0x24cf63[_0x3e43fa(0x12a)]&&Array[_0x3e43fa(0x17e)](_0x24cf63['keys']())[_0x3e43fa(0x174)](_0x3bb260=>{const _0x34a85a=_0x3e43fa,_0x428d9a=_0x24cf63[_0x34a85a(0x17d)](_0x3bb260);_0x428d9a&&(_0x3a3dda[_0x8f5626][_0xc764fa][_0x3bb260]={'config':_0x428d9a['config'],'sparklines':_0x428d9a[_0x34a85a(0x19d)][_0x34a85a(0x1bb)]()});});});}return _0x3a3dda;}['fromJSON'](_0x3fc0f4){const _0x265177=_0x4fb522;if(!_0x3fc0f4)return;Object[_0x265177(0x12b)](_0x3fc0f4)[_0x265177(0x174)](_0x3df29a=>{const _0x2c481b=_0x265177,_0x4e9a28=_0x3fc0f4[_0x3df29a];_0x4e9a28&&Object[_0x2c481b(0x12b)](_0x4e9a28)[_0x2c481b(0x174)](_0x49ad26=>{const _0x21b22d=_0x4e9a28[_0x49ad26];_0x21b22d&&Object['keys'](_0x21b22d)['forEach'](_0x10d40f=>{const _0x1f7693=_0xa9aa,_0x102fdd=_0x21b22d[_0x10d40f];if(_0x102fdd){const _0x87c08d={'config':_0x102fdd[_0x1f7693(0x19f)],'sparklines':new _0x2080ce(_0x102fdd['sparklines'])};this['addSparkline'](_0x3df29a,_0x49ad26,_0x10d40f,_0x87c08d);}});});});}['deleteUnit'](_0x58214c){const _0x35050e=_0x4fb522,_0x1e1152=this[_0x35050e(0x1b9)][_0x35050e(0x17d)](_0x58214c);if(_0x1e1152){for(const [_0x36dd30]of _0x1e1152){const _0x66ff5b=_0x1e1152[_0x35050e(0x17d)](_0x36dd30);if(_0x66ff5b){for(const [_0x5d3daf]of _0x66ff5b)this[_0x35050e(0x148)](_0x58214c,_0x36dd30,_0x5d3daf);}}this[_0x35050e(0x1b9)][_0x35050e(0x12f)](_0x58214c);}}};x=Vt([yt(0x0,_0x36ac04(_0x34ae2b))],x);const V={'id':_0x4fb522(0x194),'type':_0x3c0f13['MUTATION'],'handler':(_0x58547b,_0x42b12a)=>{const _0x191613=_0x4fb522;if(!_0x42b12a)return!0x1;const {sparklineConfigMap:_0x51763e,unitId:_0x2b0bfa,subUnitId:_0x765185}=_0x42b12a,_0x5b662e=_0x58547b[_0x191613(0x17d)](x);return Object[_0x191613(0x124)](_0x51763e)[_0x191613(0x174)](([_0x12bea5,_0x5992f2])=>{const _0x374380=_0x191613,_0xbfca18={'config':_0x5992f2[_0x374380(0x19f)],'sparklines':new _0x2080ce(_0x5992f2['sparklines'])};_0x5b662e[_0x374380(0x186)](_0x2b0bfa,_0x765185,_0x12bea5,_0xbfca18);}),!0x0;}},y={'id':_0x4fb522(0x155),'type':_0x3c0f13[_0x4fb522(0x198)],'handler':(_0x27f04b,_0x413e6a)=>{const _0x44e4df=_0x4fb522;if(!_0x413e6a)return!0x1;const {unitId:_0x2b7155,subUnitId:_0x4dddf4,ranges:_0x2776e5,isSingle:_0x7d493e,groupIds:_0x2f8342}=_0x413e6a,_0x5c556f=_0x27f04b[_0x44e4df(0x17d)](x);return _0x2f8342?(_0x2f8342[_0x44e4df(0x174)](_0x3d86f7=>{const _0x3f78c4=_0x44e4df;_0x5c556f[_0x3f78c4(0x1be)](_0x2b7155,_0x4dddf4,_0x3d86f7);}),!0x0):_0x2776e5?(_0x2776e5[_0x44e4df(0x174)](_0x54ce5c=>{const _0x71a7b2=_0x44e4df;_0x1794d9[_0x71a7b2(0x196)](_0x54ce5c,(_0x21d325,_0x247184)=>{const _0x3fe977=_0x71a7b2,_0x24fa8c=_0x5c556f[_0x3fe977(0x190)](_0x2b7155,_0x4dddf4,_0x21d325,_0x247184);_0x24fa8c&&(_0x7d493e?_0x5c556f[_0x3fe977(0x1bd)](_0x2b7155,_0x4dddf4,_0x21d325,_0x247184):_0x5c556f[_0x3fe977(0x1be)](_0x2b7155,_0x4dddf4,_0x24fa8c));});}),!0x0):!0x1;}},Nt={'id':_0x4fb522(0x145),'type':_0x3c0f13[_0x4fb522(0x1aa)],'handler':(_0x1ce4f5,_0x4ad8ce)=>{const _0x315395=_0x4fb522;if(!_0x4ad8ce)return!0x1;const {sourceRanges:_0x495eba,targetRanges:_0x5b7bc2,config:_0x49ee31}=_0x4ad8ce,_0x2d556d=_0x1ce4f5['get'](_0x3b2f8d),_0x51bbf1='g_'+_0x51f3a9(0x6),_0x1a55f6=Fe(_0x495eba,_0x5b7bc2),_0x1a34c2={'config':_0x49ee31!=null?_0x49ee31:{},'sparklines':_0x1a55f6['getMatrix']()},_0x44b26d=_0x1ce4f5[_0x315395(0x17d)](_0x34ae2b),_0x388590=_0x1ce4f5[_0x315395(0x17d)](x),_0x5f37e3=_0x56d415(_0x44b26d);if(!_0x5f37e3)return!0x1;const {unitId:_0x1c8f58,subUnitId:_0x42e6c8}=_0x5f37e3,_0x3d2747=_0x1ce4f5[_0x315395(0x17d)](_0x268ad9),_0x29f0bd=[],_0x5ec8bd=[],_0x423fcb={},_0x197b2d={},_0x3821dc=new Set([_0x51bbf1]);_0x1a55f6['forValue']((_0x5bb722,_0x5a25e2,_0x4967c0)=>{const _0x4a522f=_0x315395,_0x1090bc=_0x388590[_0x4a522f(0x190)](_0x1c8f58,_0x42e6c8,_0x5bb722,_0x5a25e2);if(_0x1090bc){const _0x1c2f1f=_0x388590[_0x4a522f(0x129)](_0x1c8f58,_0x42e6c8,_0x1090bc);if(_0x1c2f1f){_0x3821dc['add'](_0x1090bc);let _0x44be52=_0x423fcb[_0x1090bc],_0x1f8e17=_0x197b2d[_0x1090bc];_0x1f8e17||(_0x1f8e17={'config':_0x3ccc44['deepClone'](_0x1c2f1f[_0x4a522f(0x19f)]),'sparklines':new _0x2080ce(_0x1c2f1f['sparklines'][_0x4a522f(0x113)]())},_0x197b2d[_0x1090bc]=_0x1f8e17),_0x44be52||(_0x44be52={'config':_0x3ccc44[_0x4a522f(0x188)](_0x1c2f1f['config']),'sparklines':_0x1c2f1f[_0x4a522f(0x19d)][_0x4a522f(0x113)]()},_0x423fcb[_0x1090bc]=_0x44be52),_0x1f8e17[_0x4a522f(0x19d)][_0x4a522f(0x178)](_0x5bb722,_0x5a25e2);}}});const _0x27d19c={};return Object[_0x315395(0x124)](_0x197b2d)[_0x315395(0x174)](([_0x21faec,_0x258326])=>{const _0x2dfb55=_0x315395;_0x258326[_0x2dfb55(0x19d)][_0x2dfb55(0x119)]()&&(_0x27d19c[_0x21faec]={'config':_0x258326[_0x2dfb55(0x19f)],'sparklines':_0x258326[_0x2dfb55(0x19d)]['clone']()});}),_0x27d19c[_0x51bbf1]=_0x1a34c2,_0x29f0bd[_0x315395(0x127)]({'id':y['id'],'params':{'unitId':_0x1c8f58,'subUnitId':_0x42e6c8,'groupIds':Array['from'](_0x3821dc),'isSingle':!0x1}}),_0x3821dc['size']>0x1&&(_0x5ec8bd['push']({'id':y['id'],'params':{'unitId':_0x1c8f58,'subUnitId':_0x42e6c8,'groupIds':Array[_0x315395(0x17e)](_0x3821dc),'isSingle':!0x1}}),_0x29f0bd[_0x315395(0x127)]({'id':V['id'],'params':{'unitId':_0x1c8f58,'subUnitId':_0x42e6c8,'sparklineConfigMap':_0x423fcb}})),_0x5ec8bd[_0x315395(0x127)]({'id':V['id'],'params':{'unitId':_0x1c8f58,'subUnitId':_0x42e6c8,'sparklineConfigMap':_0x27d19c}}),_0x3cce5b(_0x5ec8bd,_0x3d2747),_0x2d556d[_0x315395(0x153)]({'unitID':_0x1c8f58,'undoMutations':_0x29f0bd,'redoMutations':_0x5ec8bd}),!0x0;}},Ot={'id':_0x4fb522(0x15d),'type':_0x3c0f13[_0x4fb522(0x1aa)],'handler':(_0x3266b3,_0x371ad3)=>{const _0x16d888=_0x4fb522;var _0x516741;const {isSingle:_0x1c2352=!0x0}=_0x371ad3||{},_0x50e186=_0x3266b3[_0x16d888(0x17d)](_0x268ad9),_0x59ebb9=_0x3266b3[_0x16d888(0x17d)](_0x34ae2b),_0x102517=_0x3266b3[_0x16d888(0x17d)](x),_0x44a86f=_0x3266b3[_0x16d888(0x17d)](_0x3b2f8d),_0xd030fd=_0x56d415(_0x59ebb9);if(!_0xd030fd)return!0x1;const _0x4a83d3=_0x3266b3['get'](_0x4b2cd4),_0x3a9972=(_0x516741=_0x371ad3==null?void 0x0:_0x371ad3[_0x16d888(0x13e)])!=null?_0x516741:_0x4a83d3['getCurrentSelections']()[_0x16d888(0x142)](_0x37a21e=>_0x37a21e[_0x16d888(0x1c0)]),{unitId:_0x3f3c83,subUnitId:_0x5a69ce}=_0xd030fd,_0x108748=[],_0xd14fa6=[];_0x108748[_0x16d888(0x127)]({'id':y['id'],'params':{'unitId':_0x3f3c83,'subUnitId':_0x5a69ce,'ranges':_0x3a9972,'isSingle':_0x1c2352}});const _0x528127=[],_0x154c27={};return _0x3a9972[_0x16d888(0x174)](_0x1980d1=>{_0x1794d9['foreach'](_0x1980d1,(_0x4e2155,_0x1fb14a)=>{const _0x4c7a24=_0xa9aa,_0x5e087c=_0x102517['getSparkline'](_0x3f3c83,_0x5a69ce,_0x4e2155,_0x1fb14a);if(_0x5e087c){const _0x1f3867=_0x102517[_0x4c7a24(0x129)](_0x3f3c83,_0x5a69ce,_0x5e087c);_0x1f3867&&(_0x528127[_0x4c7a24(0x127)](_0x5e087c),_0x154c27[_0x5e087c]={'config':_0x3ccc44[_0x4c7a24(0x188)](_0x1f3867['config']),'sparklines':_0x3ccc44['deepClone'](_0x1f3867['sparklines']['clone']())});}});}),_0xd14fa6[_0x16d888(0x127)]({'id':y['id'],'params':{'unitId':_0x3f3c83,'subUnitId':_0x5a69ce,'groupIds':_0x528127,'isSingle':!0x1}}),_0xd14fa6[_0x16d888(0x127)]({'id':V['id'],'params':{'unitId':_0x3f3c83,'subUnitId':_0x5a69ce,'sparklineConfigMap':_0x154c27}}),_0x3cce5b(_0x108748,_0x50e186),_0x44a86f['pushUndoRedo']({'unitID':_0x3f3c83,'undoMutations':_0xd14fa6,'redoMutations':_0x108748}),!0x0;}},Oe={'id':'sheet.mutation.set-sparkline','type':_0x3c0f13[_0x4fb522(0x198)],'handler':(_0x253539,_0x5a1bcf)=>{if(!_0x5a1bcf)return!0x1;const {unitId:_0x87a9df,subUnitId:_0x442c05,groupIds:_0xb5ff69,config:_0x5d577b}=_0x5a1bcf,_0x4d2303=_0x253539['get'](x);return _0xb5ff69['forEach'](_0x4a4f5c=>{const _0x59a14b=_0xa9aa,_0x521ec2=_0x4d2303[_0x59a14b(0x129)](_0x87a9df,_0x442c05,_0x4a4f5c);if(_0x521ec2){const _0x10b0ed={'config':Object['assign']({},_0x521ec2['config'],_0x5d577b[_0x59a14b(0x19f)]),'sparklines':new _0x2080ce(_0x521ec2['sparklines']['clone']())};_0x4d2303['setSparkline'](_0x87a9df,_0x442c05,[_0x4a4f5c],_0x10b0ed);}}),!0x0;}},xt={'id':_0x4fb522(0x158),'type':_0x3c0f13['COMMAND'],'handler':(_0x522cda,_0x3df777)=>{const _0x2ac51b=_0x4fb522;var _0x396f7a,_0x2b7d,_0x32bc00,_0x15d34e;if(!_0x3df777)return!0x1;const _0xd10056=_0x522cda[_0x2ac51b(0x17d)](_0x268ad9),_0x47e105=_0x522cda[_0x2ac51b(0x17d)](_0x4b2cd4),_0x5aaf08=_0x522cda[_0x2ac51b(0x17d)](x),_0x178187=_0x522cda[_0x2ac51b(0x17d)](_0x34ae2b),_0x18a294=_0x522cda[_0x2ac51b(0x17d)](_0x3b2f8d),_0x1ff050=_0x56d415(_0x178187);if(!_0x1ff050)return!0x1;const {unitId:_0x1a92f7,subUnitId:_0x45e6c1}=_0x1ff050,_0x8ae216=(_0x396f7a=_0x3df777==null?void 0x0:_0x3df777[_0x2ac51b(0x13e)])!=null?_0x396f7a:_0x47e105[_0x2ac51b(0x17c)]()['map'](_0x45c692=>_0x45c692['range']),_0x338b09=(_0x2b7d=_0x5aaf08[_0x2ac51b(0x147)]()[_0x2ac51b(0x182)][_0x2ac51b(0x17d)](_0x1a92f7))==null?void 0x0:_0x2b7d[_0x2ac51b(0x17d)](_0x45e6c1),{isChangeDataSource:_0x5362cd,config:_0x3670da,combine:_0xfdb7b1,unCombine:_0xd6524a}=_0x3df777;if(_0xfdb7b1){const _0x30931b=[],_0x1a58b0=[];_0x30931b['push']({'id':y['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'ranges':_0x8ae216,'isSingle':!0x0}});const _0x4a7c1d='g_'+_0x51f3a9(0x6),_0x19d0b3=new _0x2080ce(),_0x194ffc=(_0x32bc00=_0x5aaf08[_0x2ac51b(0x147)]()[_0x2ac51b(0x1a9)]['get'](_0x1a92f7))==null?void 0x0:_0x32bc00[_0x2ac51b(0x17d)](_0x45e6c1),_0x34c02b=new Set([_0x4a7c1d]),_0xbc5f34={};return _0x8ae216[_0x2ac51b(0x174)](_0x4c4f01=>{const _0x3ad071=_0x2ac51b;var _0x17e460,_0x330cc9;const {startRow:_0x526e0e,endRow:_0x3c2bd6,startColumn:_0x5e3cbb,endColumn:_0x26ec87}=_0x4c4f01;for(let _0xb252b4=_0x526e0e;_0xb252b4<=_0x3c2bd6;_0xb252b4++)for(let _0x3498c3=_0x5e3cbb;_0x3498c3<=_0x26ec87;_0x3498c3++){const _0x451f0e=(_0x17e460=_0x338b09==null?void 0x0:_0x338b09['matrix'][_0x3ad071(0x11d)](_0xb252b4,_0x3498c3))==null?void 0x0:_0x17e460[_0x3ad071(0x154)];if(_0x451f0e){_0x34c02b['add'](_0x451f0e);const _0x29df83=_0x5aaf08['getSparklineById'](_0x1a92f7,_0x45e6c1,_0x451f0e);_0x29df83&&(_0xbc5f34[_0x451f0e]={'config':_0x3ccc44[_0x3ad071(0x188)](_0x29df83[_0x3ad071(0x19f)]),'sparklines':_0x3ccc44[_0x3ad071(0x188)](_0x29df83[_0x3ad071(0x19d)][_0x3ad071(0x113)]())});const _0x610a35=(_0x330cc9=_0x194ffc==null?void 0x0:_0x194ffc[_0x3ad071(0x17d)](_0x451f0e))==null?void 0x0:_0x330cc9[_0x3ad071(0x19d)]['getValue'](_0xb252b4,_0x3498c3);_0x610a35&&_0x19d0b3[_0x3ad071(0x1a5)](_0xb252b4,_0x3498c3,_0x610a35);}}}),_0x30931b[_0x2ac51b(0x127)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x4a7c1d]:{'config':_0x3ccc44[_0x2ac51b(0x188)](_0x3670da[_0x2ac51b(0x19f)]),'sparklines':_0x19d0b3[_0x2ac51b(0x1bb)]()}},'unitId':_0x1a92f7,'subUnitId':_0x45e6c1}}),_0x1a58b0[_0x2ac51b(0x127)]({'id':y['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'isSingle':!0x1,'groupIds':Array[_0x2ac51b(0x17e)](_0x34c02b)}}),_0x1a58b0[_0x2ac51b(0x127)]({'id':V['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'sparklineConfigMap':_0xbc5f34}}),_0x3cce5b(_0x30931b,_0xd10056),_0x18a294[_0x2ac51b(0x153)]({'unitID':_0x1a92f7,'undoMutations':_0x1a58b0,'redoMutations':_0x30931b}),!0x0;}else{if(_0xd6524a){const _0x3e1e6b=[],_0x47f32c=[];_0x3e1e6b[_0x2ac51b(0x127)]({'id':y['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'ranges':_0x8ae216,'isSingle':!0x0}});const _0x58ae3f=(_0x15d34e=_0x5aaf08[_0x2ac51b(0x147)]()[_0x2ac51b(0x1a9)][_0x2ac51b(0x17d)](_0x1a92f7))==null?void 0x0:_0x15d34e[_0x2ac51b(0x17d)](_0x45e6c1),_0x4dceed={},_0xe9f05a=new Set(),_0x3f0274={};return _0x8ae216[_0x2ac51b(0x174)](_0x422099=>{const _0x2b995a=_0x2ac51b;var _0x598459,_0x2e06cc;const {startRow:_0x1e8b8d,endRow:_0x44acec,startColumn:_0x7b288d,endColumn:_0x2f8b23}=_0x422099;for(let _0x122367=_0x1e8b8d;_0x122367<=_0x44acec;_0x122367++)for(let _0x18ad95=_0x7b288d;_0x18ad95<=_0x2f8b23;_0x18ad95++){const _0x3b8cdf=(_0x598459=_0x338b09==null?void 0x0:_0x338b09[_0x2b995a(0x156)][_0x2b995a(0x11d)](_0x122367,_0x18ad95))==null?void 0x0:_0x598459[_0x2b995a(0x154)];if(_0x3b8cdf){const _0x7178a3=new _0x2080ce(),_0x4ad558='g_'+_0x51f3a9(0x6);_0xe9f05a[_0x2b995a(0x1a3)](_0x3b8cdf),_0xe9f05a[_0x2b995a(0x1a3)](_0x4ad558);const _0x1655fc=_0x5aaf08[_0x2b995a(0x129)](_0x1a92f7,_0x45e6c1,_0x3b8cdf);_0x1655fc&&(_0x3f0274[_0x3b8cdf]={'config':_0x3ccc44[_0x2b995a(0x188)](_0x1655fc[_0x2b995a(0x19f)]),'sparklines':_0x3ccc44[_0x2b995a(0x188)](_0x1655fc[_0x2b995a(0x19d)][_0x2b995a(0x113)]())});const _0x4ce638=(_0x2e06cc=_0x58ae3f==null?void 0x0:_0x58ae3f[_0x2b995a(0x17d)](_0x3b8cdf))==null?void 0x0:_0x2e06cc['sparklines'][_0x2b995a(0x11d)](_0x122367,_0x18ad95);_0x4ce638&&_0x7178a3[_0x2b995a(0x1a5)](_0x122367,_0x18ad95,_0x4ce638),_0x4dceed[_0x4ad558]={'sparklines':_0x7178a3[_0x2b995a(0x1bb)](),'config':_0x3ccc44[_0x2b995a(0x188)](_0x3670da[_0x2b995a(0x19f)])};}}}),_0x3e1e6b[_0x2ac51b(0x127)]({'id':V['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'sparklineConfigMap':_0x4dceed}}),_0x47f32c[_0x2ac51b(0x127)]({'id':y['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'isSingle':!0x1,'groupIds':Array['from'](_0xe9f05a)}}),_0x47f32c[_0x2ac51b(0x127)]({'id':V['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'sparklineConfigMap':_0x3f0274}}),_0x3cce5b(_0x3e1e6b,_0xd10056),_0x18a294[_0x2ac51b(0x153)]({'unitID':_0x1a92f7,'undoMutations':_0x47f32c,'redoMutations':_0x3e1e6b}),!0x0;}}if(_0x5362cd){const _0x5dae65=_0x3df777[_0x2ac51b(0x199)];if(!_0x5dae65)return!0x1;const {groupId:_0x4c00d3,sourceRanges:_0x2d9ccf,targetRanges:_0x4a998f,resetType:_0xc019c2,primary:_0x4f64b8}=_0x5dae65,_0x4fc271=[],_0x5e7eac=[];_0x4fc271[_0x2ac51b(0x127)]({'id':y['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'ranges':_0x8ae216,'isSingle':!0x1,'groupIds':[_0x4c00d3]}}),_0x5e7eac[_0x2ac51b(0x127)]({'id':y['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'ranges':_0x8ae216,'isSingle':!0x1,'groupIds':[_0x4c00d3]}});let _0x4c600e;_0xc019c2==='item'?(_0x4c600e=new _0x2080ce(_0x3670da[_0x2ac51b(0x19d)][_0x2ac51b(0x113)]()),_0x4c600e[_0x2ac51b(0x178)](_0x4f64b8['actualRow'],_0x4f64b8[_0x2ac51b(0x1b4)]),_0x4c600e[_0x2ac51b(0x1a5)](_0x4a998f[0x0][_0x2ac51b(0x132)],_0x4a998f[0x0][_0x2ac51b(0x13b)],_0x2d9ccf[0x0])):_0x4c600e=Fe(_0x2d9ccf,_0x4a998f);const _0x3f4276={'config':_0x3ccc44[_0x2ac51b(0x188)](_0x3670da[_0x2ac51b(0x19f)]),'sparklines':_0x4c600e[_0x2ac51b(0x1bb)]()},_0x308790={'config':_0x3ccc44[_0x2ac51b(0x188)](_0x3670da[_0x2ac51b(0x19f)]),'sparklines':_0x3ccc44['deepClone'](_0x3670da['sparklines']['clone']())};_0x4fc271[_0x2ac51b(0x127)]({'id':V['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'sparklineConfigMap':{[_0x4c00d3]:_0x3f4276}}}),_0x5e7eac[_0x2ac51b(0x127)]({'id':V['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'sparklineConfigMap':{[_0x4c00d3]:_0x308790}}}),_0x3cce5b(_0x4fc271,_0xd10056),_0x18a294[_0x2ac51b(0x153)]({'unitID':_0x1a92f7,'undoMutations':_0x5e7eac,'redoMutations':_0x4fc271});}else{const _0x5af660=[],_0x171e54=[],_0x45e364=new Set(),_0x114ea7={};_0x8ae216[_0x2ac51b(0x174)](_0xb96cd8=>{const _0x5529cd=_0x2ac51b;var _0x432f58;const {startRow:_0x48db58,endRow:_0x314c6e,startColumn:_0x2aa13d,endColumn:_0x3c58ea}=_0xb96cd8;for(let _0x362eb2=_0x48db58;_0x362eb2<=_0x314c6e;_0x362eb2++)for(let _0x2e9857=_0x2aa13d;_0x2e9857<=_0x3c58ea;_0x2e9857++){const _0x2d3c41=(_0x432f58=_0x338b09==null?void 0x0:_0x338b09[_0x5529cd(0x156)][_0x5529cd(0x11d)](_0x362eb2,_0x2e9857))==null?void 0x0:_0x432f58[_0x5529cd(0x154)];if(_0x2d3c41){_0x45e364['add'](_0x2d3c41);const _0x4d1545=_0x5aaf08[_0x5529cd(0x129)](_0x1a92f7,_0x45e6c1,_0x2d3c41);_0x4d1545&&(_0x114ea7[_0x2d3c41]={'config':_0x3ccc44[_0x5529cd(0x188)](_0x4d1545[_0x5529cd(0x19f)]),'sparklines':_0x3ccc44[_0x5529cd(0x188)](_0x4d1545[_0x5529cd(0x19d)][_0x5529cd(0x113)]())});}}}),_0x171e54[_0x2ac51b(0x127)]({'id':Oe['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'groupIds':Array[_0x2ac51b(0x17e)](_0x45e364),'config':{'config':_0x3ccc44['deepClone'](_0x3670da['config']),'sparklines':_0x3670da[_0x2ac51b(0x19d)][_0x2ac51b(0x1bb)]()}}}),_0x5af660[_0x2ac51b(0x127)]({'id':y['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'isSingle':!0x1,'groupIds':Array['from'](_0x45e364)}}),_0x5af660[_0x2ac51b(0x127)]({'id':V['id'],'params':{'unitId':_0x1a92f7,'subUnitId':_0x45e6c1,'sparklineConfigMap':_0x114ea7}}),_0x3cce5b(_0x171e54,_0xd10056),_0x18a294[_0x2ac51b(0x153)]({'unitID':_0x1a92f7,'undoMutations':_0x5af660,'redoMutations':_0x171e54});}return!0x0;}};var Ut=Object[_0x4fb522(0x146)],Pt=(_0x4a1fd0,_0x26686c,_0x5d2f25,_0x5e5cde)=>{const _0x5cc9bb=_0x4fb522;for(var _0x3e6e10=_0x5e5cde>0x1?void 0x0:_0x5e5cde?Ut(_0x26686c,_0x5d2f25):_0x26686c,_0x10c00b=_0x4a1fd0[_0x5cc9bb(0x1c2)]-0x1,_0x1dd56e;_0x10c00b>=0x0;_0x10c00b--)(_0x1dd56e=_0x4a1fd0[_0x10c00b])&&(_0x3e6e10=_0x1dd56e(_0x3e6e10)||_0x3e6e10);return _0x3e6e10;},ge=(_0x3a77ff,_0x4ff998)=>(_0x5a6aca,_0x81283)=>_0x4ff998(_0x5a6aca,_0x81283,_0x3a77ff);let Se=class extends _0x38e949{constructor(_0x46ebb9,_0x42e2eb,_0x31ab5c,_0x1f5007){const _0x537521=_0x4fb522;super(),this[_0x537521(0x1ba)]=_0x46ebb9,this[_0x537521(0x143)]=_0x42e2eb,this[_0x537521(0x152)]=_0x31ab5c,this['_sheetSelectionService']=_0x1f5007,this['_initClearWithSparkline']();}[_0x4fb522(0x183)](){const _0x3bf557=_0x4fb522;this[_0x3bf557(0x1b5)](this[_0x3bf557(0x143)]['interceptCommand']({'getMutations':_0x10924a=>{const _0x5e709c=_0x3bf557,_0x3d3ad4=[],_0x2ba282=[];if(_0x10924a['id']===_0xe2ebe1['id']){const _0x2d1b0b=_0x56d415(this[_0x5e709c(0x152)]);if(!_0x2d1b0b)return{'redos':_0x3d3ad4,'undos':_0x2ba282};const {unitId:_0x3d3b59,subUnitId:_0x27df06,worksheet:_0x1f6941}=_0x2d1b0b,_0xe5a560=this[_0x5e709c(0x15f)][_0x5e709c(0x17c)]()['map'](_0x59d6f0=>_0x59d6f0[_0x5e709c(0x1c0)]),_0x21b068=new Set(),_0x35f730={},_0x1e017f={};_0xe5a560['forEach'](_0x5f4d9c=>{const _0x525580=_0x5e709c;_0x1794d9[_0x525580(0x196)](_0x5f4d9c,(_0x15791e,_0x36fa48)=>{const _0x1797f9=_0x525580,_0x5effba=this[_0x1797f9(0x1ba)][_0x1797f9(0x190)](_0x3d3b59,_0x27df06,_0x15791e,_0x36fa48);if(_0x5effba&&!_0x21b068[_0x1797f9(0x168)](_0x5effba)){const _0x5cc2cb=this['_sparklineDataSourceModel']['getSparklineById'](_0x3d3b59,_0x27df06,_0x5effba);_0x5cc2cb&&(_0x21b068[_0x1797f9(0x1a3)](_0x5effba),_0x35f730[_0x5effba]={'config':_0x3ccc44['deepClone'](_0x5cc2cb['config']),'sparklines':_0x3ccc44['deepClone'](_0x5cc2cb[_0x1797f9(0x19d)][_0x1797f9(0x113)]())},_0x1e017f[_0x5effba]={'config':_0x3ccc44[_0x1797f9(0x188)](_0x5cc2cb['config']),'sparklines':_0x3ccc44[_0x1797f9(0x188)](_0x5cc2cb['sparklines'][_0x1797f9(0x113)]())});}});}),Object[_0x5e709c(0x1a6)](_0x1e017f)[_0x5e709c(0x174)](_0x1c3dd8=>{const _0x25cb42=_0x5e709c,_0x225043=_0x1c3dd8[_0x25cb42(0x19d)];new _0x2080ce(_0x225043)[_0x25cb42(0x187)]((_0x1ea12d,_0x268550,_0x5e9af1)=>{const _0x47b843=_0x25cb42;_0xe5a560['some'](_0x47d556=>_0x3b8d48[_0x47b843(0x14b)](_0x47d556,_0x3309a3(_0x1ea12d,_0x268550)))&&delete _0x225043[_0x1ea12d][_0x268550];});}),_0x3d3ad4['push']({'id':y['id'],'params':{'unitId':_0x3d3b59,'subUnitId':_0x27df06,'groupIds':Array[_0x5e709c(0x17e)](_0x21b068),'isSingle':!0x1}}),_0x3d3ad4[_0x5e709c(0x127)]({'id':V['id'],'params':{'unitId':_0x3d3b59,'subUnitId':_0x27df06,'sparklineConfigMap':_0x1e017f}}),_0x2ba282['push']({'id':y['id'],'params':{'unitId':_0x3d3b59,'subUnitId':_0x27df06,'groupIds':Array[_0x5e709c(0x17e)](_0x21b068),'isSingle':!0x1}}),_0x2ba282[_0x5e709c(0x127)]({'id':V['id'],'params':{'unitId':_0x3d3b59,'subUnitId':_0x27df06,'sparklineConfigMap':_0x35f730}});}return{'redos':_0x3d3ad4,'undos':_0x2ba282};}}));}};Se=Pt([ge(0x0,_0x36ac04(x)),ge(0x1,_0x36ac04(_0x136aa0)),ge(0x2,_0x36ac04(_0x34ae2b)),ge(0x3,_0x36ac04(_0x4b2cd4))],Se);var Tt=Object[_0x4fb522(0x146)],$t=(_0xf198a4,_0x51f78a,_0x334033,_0x1a51d2)=>{for(var _0x40dc76=_0x1a51d2>0x1?void 0x0:_0x1a51d2?Tt(_0x51f78a,_0x334033):_0x51f78a,_0x42007f=_0xf198a4['length']-0x1,_0x3f2f21;_0x42007f>=0x0;_0x42007f--)(_0x3f2f21=_0xf198a4[_0x42007f])&&(_0x40dc76=_0x3f2f21(_0x40dc76)||_0x40dc76);return _0x40dc76;},Ge=(_0x46e9f4,_0x5a09b3)=>(_0x10beeb,_0x4831ef)=>_0x5a09b3(_0x10beeb,_0x4831ef,_0x46e9f4);let ke=class extends _0x38e949{constructor(_0x1ceefe,_0x50f78c){const _0x199f28=_0x4fb522;super(),this[_0x199f28(0x143)]=_0x1ceefe,this[_0x199f28(0x1ba)]=_0x50f78c,this['_initCopySheetWithSparkline']();}[_0x4fb522(0x14a)](){const _0x5b444e=_0x4fb522;this[_0x5b444e(0x1b5)](this[_0x5b444e(0x143)][_0x5b444e(0x175)]({'getMutations':_0x33d9de=>{const _0x48d6f2=_0x5b444e,_0x4040ab=[],_0x2e4bf8=[];if(_0x33d9de['id']===_0x41a6ad['id']){const _0x567bf1=_0x33d9de[_0x48d6f2(0x157)];if(!_0x567bf1)return{'redos':_0x4040ab,'undos':_0x2e4bf8};const {unitId:_0x3cb49e,subUnitId:_0x26aec6,targetSubUnitId:_0x1ffd1d}=_0x567bf1;if(!_0x3cb49e||!_0x26aec6||!_0x1ffd1d)return{'redos':_0x4040ab,'undos':_0x2e4bf8};const _0x2f6b9a=new Set(),_0x43a512={},_0x53a33f=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x3cb49e,_0x26aec6);if(!_0x53a33f)return{'redos':_0x4040ab,'undos':_0x2e4bf8};for(const [_0x6ac8bc,_0x21ae3a]of _0x53a33f){const _0x52478d='g_'+_0x51f3a9(0x6);_0x2f6b9a['add'](_0x6ac8bc),_0x43a512[_0x52478d]={'config':_0x3ccc44['deepClone'](_0x21ae3a['config']),'sparklines':_0x3ccc44[_0x48d6f2(0x188)](_0x21ae3a['sparklines'][_0x48d6f2(0x113)]())};}_0x2f6b9a[_0x48d6f2(0x12a)]&&(_0x2e4bf8[_0x48d6f2(0x127)]({'id':y['id'],'params':{'unitId':_0x3cb49e,'subUnitId':_0x1ffd1d,'groupIds':Array['from'](_0x2f6b9a),'isSingle':!0x1}}),_0x4040ab[_0x48d6f2(0x127)]({'id':V['id'],'params':{'unitId':_0x3cb49e,'subUnitId':_0x1ffd1d,'sparklineConfigMap':_0x43a512}}));}return{'redos':_0x4040ab,'undos':_0x2e4bf8};}}));}};ke=$t([Ge(0x0,_0x36ac04(_0x136aa0)),Ge(0x1,_0x36ac04(x))],ke);var jt=Object[_0x4fb522(0x146)],Lt=(_0x1acf41,_0x15a4ca,_0x357a26,_0x2c1bb5)=>{const _0x40f6a7=_0x4fb522;for(var _0x5084f6=_0x2c1bb5>0x1?void 0x0:_0x2c1bb5?jt(_0x15a4ca,_0x357a26):_0x15a4ca,_0x3aa178=_0x1acf41[_0x40f6a7(0x1c2)]-0x1,_0x56e5cf;_0x3aa178>=0x0;_0x3aa178--)(_0x56e5cf=_0x1acf41[_0x3aa178])&&(_0x5084f6=_0x56e5cf(_0x5084f6)||_0x5084f6);return _0x5084f6;},be=(_0x1c88e1,_0x230050)=>(_0x4d6ab3,_0x4871db)=>_0x230050(_0x4d6ab3,_0x4871db,_0x1c88e1);let me=class extends _0x38e949{constructor(_0x598b77,_0x1fcc2d,_0x411947){const _0xd106d2=_0x4fb522;super(),this[_0xd106d2(0x191)]=_0x598b77,this[_0xd106d2(0x1ba)]=_0x1fcc2d,this[_0xd106d2(0x180)]=_0x411947,this[_0xd106d2(0x137)](),this[_0xd106d2(0x150)]();}[_0x4fb522(0x137)](){const _0x41d8b2=_0x4fb522;this[_0x41d8b2(0x1b5)](this[_0x41d8b2(0x191)][_0x41d8b2(0x13c)](_0x5ae8b8=>{const _0x2f0345=_0x41d8b2;if(_0x5ae8b8['id']===_0x1fe5b6['id']){const _0x383995=_0x5ae8b8['params'],{cellValue:_0x3e8a34,unitId:_0x17c897,subUnitId:_0x4a8dc9}=_0x383995,_0x109075=new _0x2080ce(_0x3e8a34),_0x11ebb7=new Set(),_0x201ded=this[_0x2f0345(0x1ba)][_0x2f0345(0x13d)](_0x17c897,_0x4a8dc9);if(!_0x201ded)return;const _0x170063=Array['from'](_0x201ded);_0x109075['forValue']((_0x478cc1,_0x3ddf57,_0x2c88dc)=>{const _0x5bdaa1=_0x2f0345,_0x1bb572=_0x3309a3(_0x478cc1,_0x3ddf57);for(let _0x4ddb75=0x0;_0x4ddb75<_0x170063['length'];_0x4ddb75++){const [_0x332816,_0x3eaf75]=_0x170063[_0x4ddb75],_0x32e8d9=_0x11ebb7['has'](_0x332816);_0x32e8d9||_0x3eaf75[_0x5bdaa1(0x19d)]['forValue']((_0x51a3d2,_0x100f25,_0x28e71b)=>{const _0x2868a6=_0x5bdaa1,_0x1a602d=_0x28e71b;if(_0x1a602d&&!_0x32e8d9&&_0x3b8d48[_0x2868a6(0x14b)](_0x1bb572,_0x1a602d))return _0x11ebb7[_0x2868a6(0x1a3)](_0x332816),!0x0;});}}),_0x11ebb7[_0x2f0345(0x174)](_0x294e61=>{const _0x80892d=_0x2f0345;this[_0x80892d(0x1ba)][_0x80892d(0x148)](_0x17c897,_0x4a8dc9,_0x294e61),this[_0x80892d(0x1ba)][_0x80892d(0x140)](_0x17c897,_0x4a8dc9,_0x294e61);});}else{if(_0x5ae8b8['id']===_0x41232a['id']){const _0xb5ca47=_0x5ae8b8['params'],{range:_0xa8ef23,unitId:_0x1eedd1,subUnitId:_0x1ad981}=_0xb5ca47,_0x288f17=new Set(),_0x259c86=this[_0x2f0345(0x1ba)][_0x2f0345(0x13d)](_0x1eedd1,_0x1ad981);if(!_0x259c86)return;const _0x50f422=Array[_0x2f0345(0x17e)](_0x259c86);for(let _0x207a30=0x0;_0x207a30<_0x50f422[_0x2f0345(0x1c2)];_0x207a30++){const [_0x415f08,_0xbdda50]=_0x50f422[_0x207a30],_0x4fc1db=_0x288f17[_0x2f0345(0x168)](_0x415f08);_0x4fc1db||_0xbdda50[_0x2f0345(0x19d)][_0x2f0345(0x187)]((_0x111989,_0x26ce67,_0x302e1d)=>{const _0x1343b6=_0x2f0345,_0x2fbf58=_0x302e1d;if(_0x2fbf58&&!_0x4fc1db&&_0x3b8d48[_0x1343b6(0x14b)](_0xa8ef23,_0x2fbf58))return _0x288f17[_0x1343b6(0x1a3)](_0x415f08),!0x0;});}_0x288f17['forEach'](_0x35833a=>{const _0x1f81d2=_0x2f0345;this[_0x1f81d2(0x1ba)][_0x1f81d2(0x148)](_0x1eedd1,_0x1ad981,_0x35833a),this['_sparklineDataSourceModel'][_0x1f81d2(0x140)](_0x1eedd1,_0x1ad981,_0x35833a);});}}}));}[_0x4fb522(0x150)](){const _0x526e22=_0x4fb522;this['disposeWithMe'](this[_0x526e22(0x180)]['exclusiveRangesChange$'][_0x526e22(0x1c1)](_0x5eba6e=>{const _0x2ac1b8=_0x526e22,{unitId:_0x936674,subUnitId:_0x5e195a,ranges:_0xae2750}=_0x5eba6e,_0x2faba2=this['_sparklineDataSourceModel'][_0x2ac1b8(0x13d)](_0x936674,_0x5e195a);if(!_0x2faba2)return;const _0x2ea892=Array[_0x2ac1b8(0x17e)](_0x2faba2),_0x4a638d=new Set();for(let _0x4cc6a5=0x0;_0x4cc6a5<_0x2ea892[_0x2ac1b8(0x1c2)];_0x4cc6a5++){const [_0x3812ad,_0x2aa0c4]=_0x2ea892[_0x4cc6a5],_0x58c9e1=_0x4a638d['has'](_0x3812ad);_0x58c9e1||_0x2aa0c4[_0x2ac1b8(0x19d)][_0x2ac1b8(0x187)]((_0x41d95e,_0x27cea1,_0x12275c)=>{const _0x44ea66=_0x2ac1b8,_0x42817d=_0x12275c;if(_0x42817d&&!_0x58c9e1){for(const _0x18a64c of _0xae2750)if(_0x3b8d48['intersects'](_0x18a64c,_0x42817d)){_0x4a638d[_0x44ea66(0x1a3)](_0x3812ad);break;}}});}_0x4a638d[_0x2ac1b8(0x174)](_0xa33d14=>{const _0x291594=_0x2ac1b8;this[_0x291594(0x1ba)][_0x291594(0x148)](_0x936674,_0x5e195a,_0xa33d14),this[_0x291594(0x1ba)][_0x291594(0x140)](_0x936674,_0x5e195a,_0xa33d14);});}));}};me=Lt([be(0x0,_0x36ac04(_0x268ad9)),be(0x1,_0x36ac04(x)),be(0x2,_0x36ac04(_0x2b8023))],me);var Gt=Object[_0x4fb522(0x146)],Wt=(_0x3f7cdb,_0x4a8201,_0x2b79bb,_0x9a6876)=>{for(var _0x22ebac=_0x9a6876>0x1?void 0x0:_0x9a6876?Gt(_0x4a8201,_0x2b79bb):_0x4a8201,_0x4a3a6d=_0x3f7cdb['length']-0x1,_0x2b1a1c;_0x4a3a6d>=0x0;_0x4a3a6d--)(_0x2b1a1c=_0x3f7cdb[_0x4a3a6d])&&(_0x22ebac=_0x2b1a1c(_0x22ebac)||_0x22ebac);return _0x22ebac;},We=(_0x5f2fdf,_0x26234f)=>(_0x51af00,_0x339a51)=>_0x26234f(_0x51af00,_0x339a51,_0x5f2fdf);let Ce=class extends _0x38e949{constructor(_0x5df05d,_0x5c8195){const _0x1f349f=_0x4fb522;super(),this['_commandService']=_0x5df05d,this[_0x1f349f(0x1ba)]=_0x5c8195,this[_0x1f349f(0x1a7)]();}[_0x4fb522(0x1a7)](){const _0x4845d1=_0x4fb522;this[_0x4845d1(0x191)]['onCommandExecuted'](_0x4f7e9e=>{const _0x11f41b=_0x4845d1;if(_0x4f7e9e['id']===_0x24d078['id']||_0x4f7e9e['id']===_0x1666f9['id']||_0x4f7e9e['id']===_0x58dcb8['id']||_0x4f7e9e['id']===_0x9e7942['id']){const _0x3b2f79=_0x4f7e9e['params'],{ranges:_0x559a1a,unitId:_0x22719d,subUnitId:_0xbcd5ca}=_0x3b2f79,_0x703be8=new Set(),_0x4e1d23=this[_0x11f41b(0x1ba)][_0x11f41b(0x13d)](_0x22719d,_0xbcd5ca);if(!_0x4e1d23)return;const _0x865cbe=Array[_0x11f41b(0x17e)](_0x4e1d23);_0x559a1a[_0x11f41b(0x174)](_0x4c7204=>{_0x1794d9['foreach'](_0x4c7204,(_0x1f97e0,_0x50b0c2)=>{const _0x1d86f8=_0xa9aa,_0x31417b=_0x3309a3(_0x1f97e0,_0x50b0c2);for(let _0x51678a=0x0;_0x51678a<_0x865cbe[_0x1d86f8(0x1c2)];_0x51678a++){const [_0xd9c12b,_0x3cdbc1]=_0x865cbe[_0x51678a],_0x563b2e=_0x703be8['has'](_0xd9c12b);_0x563b2e||_0x3cdbc1[_0x1d86f8(0x19d)]['forValue']((_0x5c276e,_0x876464,_0x16fc64)=>{const _0x53cd7d=_0x1d86f8,_0x321709=_0x16fc64;if(_0x321709&&!_0x563b2e&&_0x3b8d48[_0x53cd7d(0x14b)](_0x31417b,_0x321709))return _0x703be8[_0x53cd7d(0x1a3)](_0xd9c12b),!0x0;});}});}),_0x703be8[_0x11f41b(0x174)](_0x172398=>{const _0x5a30bf=_0x11f41b;this[_0x5a30bf(0x1ba)][_0x5a30bf(0x148)](_0x22719d,_0xbcd5ca,_0x172398),this[_0x5a30bf(0x1ba)][_0x5a30bf(0x140)](_0x22719d,_0xbcd5ca,_0x172398);});}});}};Ce=Wt([We(0x0,_0x36ac04(_0x268ad9)),We(0x1,_0x36ac04(x))],Ce);var Bt=Object['getOwnPropertyDescriptor'],Ht=(_0x97b81e,_0x3fed7d,_0x6b5238,_0x3c0154)=>{for(var _0x2377e1=_0x3c0154>0x1?void 0x0:_0x3c0154?Bt(_0x3fed7d,_0x6b5238):_0x3fed7d,_0xc266f6=_0x97b81e['length']-0x1,_0x1c2398;_0xc266f6>=0x0;_0xc266f6--)(_0x1c2398=_0x97b81e[_0xc266f6])&&(_0x2377e1=_0x1c2398(_0x2377e1)||_0x2377e1);return _0x2377e1;},De=(_0x361a10,_0x5d555e)=>(_0x4fae7c,_0x5d030a)=>_0x5d555e(_0x4fae7c,_0x5d030a,_0x361a10);let _e=class extends _0x38e949{constructor(_0x248765,_0x3e4c66,_0x1b685c){const _0x38a707=_0x4fb522;super(),this[_0x38a707(0x191)]=_0x248765,this[_0x38a707(0x143)]=_0x3e4c66,this[_0x38a707(0x1ba)]=_0x1b685c,this['_initMergeWithSparkline']();}['_initMergeWithSparkline'](){const _0x268826=_0x4fb522;this[_0x268826(0x1b5)](this['_sheetInterceptorService'][_0x268826(0x175)]({'getMutations':_0x3cf3e0=>{const _0x259faa=_0x268826,_0x2a9198=[],_0x7507e2=[];if(_0x3cf3e0['id']===_0x38849e['id']){const _0x1f23aa=_0x3cf3e0[_0x259faa(0x157)];if(!_0x1f23aa)return{'redos':_0x2a9198,'undos':_0x7507e2};const {unitId:_0x14b2c3,subUnitId:_0x124bae,ranges:_0x3e98b4}=_0x1f23aa,_0x21f837=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x14b2c3,_0x124bae);if(!_0x21f837)return{'redos':_0x2a9198,'undos':_0x7507e2};const _0x13d0e1={},_0x512508={},_0x4db5ef=new Set();_0x3e98b4['forEach'](_0x15e4e6=>{const _0x5adf26=_0x259faa,_0x566e31=_0x15e4e6[_0x5adf26(0x132)],_0x3ba384=_0x15e4e6[_0x5adf26(0x13b)];_0x1794d9[_0x5adf26(0x196)](_0x15e4e6,(_0x20c3f8,_0x57f52d)=>{const _0x492f0c=_0x5adf26,_0x3ecac6=this[_0x492f0c(0x1ba)]['getSparkline'](_0x14b2c3,_0x124bae,_0x20c3f8,_0x57f52d);if(_0x3ecac6&&!(_0x20c3f8===_0x566e31&&_0x57f52d===_0x3ba384)){const _0x40e721=this['_sparklineDataSourceModel'][_0x492f0c(0x129)](_0x14b2c3,_0x124bae,_0x3ecac6);if(_0x40e721){_0x4db5ef['add'](_0x3ecac6);let _0x1d23df=_0x13d0e1[_0x3ecac6];_0x1d23df||(_0x1d23df={'config':_0x3ccc44[_0x492f0c(0x188)](_0x40e721[_0x492f0c(0x19f)]),'sparklines':new _0x2080ce(_0x40e721[_0x492f0c(0x19d)][_0x492f0c(0x113)]())},_0x13d0e1[_0x3ecac6]=_0x1d23df),_0x1d23df[_0x492f0c(0x19d)][_0x492f0c(0x178)](_0x20c3f8,_0x57f52d),_0x512508[_0x3ecac6]={'config':_0x3ccc44[_0x492f0c(0x188)](_0x40e721[_0x492f0c(0x19f)]),'sparklines':_0x3ccc44['deepClone'](_0x40e721[_0x492f0c(0x19d)]['clone']())};}}});});for(const [_0x143f3c,_0x479cfa]of _0x21f837){const _0x35c9bf=_0x479cfa['sparklines'];_0x35c9bf['forValue']((_0x1588f,_0xe85906,_0x56ef12)=>{const _0x3e501f=_0x259faa;for(let _0x4a033a=0x0;_0x4a033a<_0x3e98b4[_0x3e501f(0x1c2)];_0x4a033a++){const _0x40822e=_0x3e98b4[_0x4a033a];if(_0x3b8d48[_0x3e501f(0x179)](_0x40822e,_0x56ef12)){_0x4db5ef[_0x3e501f(0x1a3)](_0x143f3c);let _0x4f6450=_0x13d0e1[_0x143f3c];_0x4f6450||(_0x4f6450={'config':_0x3ccc44[_0x3e501f(0x188)](_0x479cfa[_0x3e501f(0x19f)]),'sparklines':new _0x2080ce(_0x35c9bf[_0x3e501f(0x113)]())},_0x13d0e1[_0x143f3c]=_0x4f6450),_0x4f6450[_0x3e501f(0x19d)]['realDeleteValue'](_0x1588f,_0xe85906),_0x512508[_0x143f3c]||(_0x512508[_0x143f3c]={'config':_0x3ccc44[_0x3e501f(0x188)](_0x479cfa[_0x3e501f(0x19f)]),'sparklines':_0x3ccc44[_0x3e501f(0x188)](_0x35c9bf[_0x3e501f(0x113)]())});}}});}const _0x2f1ea6={};Object[_0x259faa(0x124)](_0x13d0e1)[_0x259faa(0x174)](([_0x365c04,_0x40abef])=>{const _0x1eae5b=_0x259faa;_0x40abef['sparklines'][_0x1eae5b(0x119)]()&&(_0x2f1ea6[_0x365c04]={'config':_0x40abef[_0x1eae5b(0x19f)],'sparklines':_0x40abef['sparklines'][_0x1eae5b(0x113)]()});}),_0x4db5ef['size']&&(_0x2a9198[_0x259faa(0x127)]({'id':y['id'],'params':{'unitId':_0x14b2c3,'subUnitId':_0x124bae,'groupIds':Array[_0x259faa(0x17e)](_0x4db5ef),'isSingle':!0x1}}),_0x7507e2[_0x259faa(0x127)]({'id':y['id'],'params':{'unitId':_0x14b2c3,'subUnitId':_0x124bae,'groupIds':Array[_0x259faa(0x17e)](_0x4db5ef),'isSingle':!0x1}}),_0x2a9198[_0x259faa(0x127)]({'id':V['id'],'params':{'unitId':_0x14b2c3,'subUnitId':_0x124bae,'sparklineConfigMap':_0x2f1ea6}}),_0x7507e2['push']({'id':V['id'],'params':{'unitId':_0x14b2c3,'subUnitId':_0x124bae,'sparklineConfigMap':_0x512508}}));}return{'redos':_0x2a9198,'undos':_0x7507e2};}}));}};_e=Ht([De(0x0,_0x36ac04(_0x268ad9)),De(0x1,_0x36ac04(_0x136aa0)),De(0x2,_0x36ac04(x))],_e);var Ft=Object[_0x4fb522(0x146)],Kt=(_0x58b012,_0x1ea412,_0x400fec,_0x461485)=>{const _0x154987=_0x4fb522;for(var _0x52f204=_0x461485>0x1?void 0x0:_0x461485?Ft(_0x1ea412,_0x400fec):_0x1ea412,_0x5c3fd8=_0x58b012[_0x154987(0x1c2)]-0x1,_0x505388;_0x5c3fd8>=0x0;_0x5c3fd8--)(_0x505388=_0x58b012[_0x5c3fd8])&&(_0x52f204=_0x505388(_0x52f204)||_0x52f204);return _0x52f204;},ue=(_0x3764d9,_0x2e49c6)=>(_0x3e4a7d,_0x47b592)=>_0x2e49c6(_0x3e4a7d,_0x47b592,_0x3764d9);let Me=class extends _0x38e949{constructor(_0x3554b3,_0x4dd8f7,_0x4c990a,_0x568f4b,_0x3e2a15){const _0xe3a35b=_0x4fb522;super(),se(this,'disposableCollection',new _0x563b88()),(this[_0xe3a35b(0x191)]=_0x3554b3,this[_0xe3a35b(0x143)]=_0x4dd8f7,this[_0xe3a35b(0x10f)]=_0x4c990a,this[_0xe3a35b(0x152)]=_0x568f4b,this[_0xe3a35b(0x1ba)]=_0x3e2a15,this['_onRefRangeChange'](),this['_initCorrectRangeWithSparkline']());}[_0x4fb522(0x130)](){const _0x50eecb=_0x4fb522,_0x3888b9=(_0x3da0c2,_0x8a3ce2)=>{const _0x1d81d9=_0xa9aa,_0x2879c3=this[_0x1d81d9(0x152)][_0x1d81d9(0x131)](_0x1fb932['UNIVER_SHEET']);if(!_0x2879c3||!(_0x2879c3==null?void 0x0:_0x2879c3[_0x1d81d9(0x12c)](_0x8a3ce2)))return;this['disposableCollection']['dispose']();const _0x22f543=_0x311e0c=>this['refRangeHandle'](_0x311e0c,_0x3da0c2,_0x8a3ce2),_0x5b55ec=[],_0x3f9975=this['_sparklineDataSourceModel'][_0x1d81d9(0x13d)](_0x3da0c2,_0x8a3ce2);if(_0x3f9975){for(const [_0x5aca52,_0x174e99]of _0x3f9975)_0x174e99[_0x1d81d9(0x19d)]['forValue']((_0x187b3,_0x566c2b,_0x317ea0)=>{const _0x5aad92=_0x1d81d9,_0x5aea98=_0x3309a3(_0x187b3,_0x566c2b);_0x5b55ec[_0x5aad92(0x127)](_0x5aea98);});_0x5b55ec[_0x1d81d9(0x174)](_0x37895a=>{const _0x13bda9=_0x1d81d9;this[_0x13bda9(0x151)][_0x13bda9(0x1a3)](this['_refRangeService'][_0x13bda9(0x181)](_0x37895a,_0x22f543,_0x3da0c2,_0x8a3ce2));});}};this[_0x50eecb(0x1b5)](this['_commandService'][_0x50eecb(0x13c)](_0x568c85=>{const _0x46bd45=_0x50eecb;if(_0x568c85['id']===_0x550127['id']){const _0x491c05=_0x568c85[_0x46bd45(0x157)],_0x2fc87a=_0x491c05[_0x46bd45(0x128)],_0x1edeb1=_0x491c05[_0x46bd45(0x16c)];if(!_0x2fc87a||!_0x1edeb1)return;_0x3888b9(_0x1edeb1,_0x2fc87a);}if(_0x568c85['id']===Oe['id']||_0x568c85['id']===V['id']){const _0x4cbe06=_0x568c85[_0x46bd45(0x157)],_0x1c9fd9=_0x4cbe06[_0x46bd45(0x128)],_0x2971b8=_0x4cbe06[_0x46bd45(0x16c)];if(!_0x1c9fd9||!_0x2971b8)return;_0x3888b9(_0x2971b8,_0x1c9fd9);}}));}[_0x4fb522(0x112)](_0x3aed42,_0x567172,_0x4a1c54){const _0x4f8ece=_0x4fb522;switch(_0x3aed42['id']){case _0xea0645['id']:return this[_0x4f8ece(0x14c)](_0x3aed42[_0x4f8ece(0x157)],_0x567172,_0x4a1c54);case _0x3735b3['id']:return this[_0x4f8ece(0x18f)](_0x3aed42[_0x4f8ece(0x157)],_0x567172,_0x4a1c54);}return{'redos':[],'undos':[]};}[_0x4fb522(0x18f)](_0x2d52f7,_0x151383,_0x222fdf){const _0x27351e=_0x4fb522;var _0x33f52a,_0x28c017;const {range:_0x2f9e09}=_0x2d52f7,_0x55e3b2=new Set(),_0x40e2c6={},_0xd8bea7={},_0x29a307=[],_0x50150b=[],_0x2848ca=[],_0x360698=[];if(!_0x56d415(this['_univerInstanceService'],{'unitId':_0x151383,'subUnitId':_0x222fdf}))return{'redos':_0x50150b,'undos':_0x29a307};const _0x555aec=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x151383,_0x222fdf);if(!_0x555aec)return{'redos':_0x50150b,'undos':_0x29a307};if(!((_0x28c017=(_0x33f52a=this[_0x27351e(0x1ba)]['getSparklineCache']()['sparklineAnchorMap'][_0x27351e(0x17d)](_0x151383))==null?void 0x0:_0x33f52a[_0x27351e(0x17d)](_0x222fdf))==null?void 0x0:_0x28c017[_0x27351e(0x156)]))return{'redos':_0x50150b,'undos':_0x29a307};for(const [_0x3df0f6,_0x463f38]of _0x555aec){const _0x3ee7cb=_0x463f38[_0x27351e(0x19d)];_0x3ee7cb['forValue']((_0x32722b,_0x368879,_0x563c62)=>{const _0x41b968=_0x27351e;if(_0x3b8d48['intersects'](_0x2f9e09,_0x563c62)){_0x55e3b2[_0x41b968(0x1a3)](_0x3df0f6);let _0xa63180=_0xd8bea7[_0x3df0f6];_0xa63180||(_0xa63180={'config':_0x463f38[_0x41b968(0x19f)],'sparklines':_0x463f38['sparklines']['clone']()},_0xd8bea7[_0x3df0f6]=_0xa63180);let _0x4f8b39=_0x40e2c6[_0x3df0f6];_0x4f8b39||(_0x4f8b39={'config':_0x463f38[_0x41b968(0x19f)],'sparklines':new _0x2080ce(_0x463f38[_0x41b968(0x19d)][_0x41b968(0x113)]())},_0x40e2c6[_0x3df0f6]=_0x4f8b39);const _0x21773c=_0x2a933e(_0x563c62,{'id':_0x577dcd['id'],'params':_0x2d52f7});_0x21773c?_0x4f8b39[_0x41b968(0x19d)][_0x41b968(0x1a5)](_0x32722b,_0x368879,_0x21773c):_0x4f8b39[_0x41b968(0x19d)][_0x41b968(0x1a5)](_0x32722b,_0x368879,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40b876[_0x41b968(0x16e)]});}}),_0x3ee7cb[_0x27351e(0x187)]((_0x3d6cb1,_0x221b70,_0x58df2e)=>{const _0x5947ea=_0x27351e;if(_0x3d6cb1<=_0x2f9e09[_0x5947ea(0x115)]&&_0x3d6cb1>=_0x2f9e09[_0x5947ea(0x132)]){_0x55e3b2['add'](_0x3df0f6);let _0x49bd84=_0xd8bea7[_0x3df0f6];_0x49bd84||(_0x49bd84={'config':_0x463f38['config'],'sparklines':_0x463f38[_0x5947ea(0x19d)][_0x5947ea(0x113)]()},_0xd8bea7[_0x3df0f6]=_0x49bd84);let _0x4c6ddf=_0x40e2c6[_0x3df0f6];_0x4c6ddf||(_0x4c6ddf={'config':_0x463f38['config'],'sparklines':new _0x2080ce(_0x463f38[_0x5947ea(0x19d)][_0x5947ea(0x113)]())},_0x40e2c6[_0x3df0f6]=_0x4c6ddf);}});}_0x360698[_0x27351e(0x127)]({'id':y['id'],'params':{'unitId':_0x151383,'subUnitId':_0x222fdf,'groupIds':Array[_0x27351e(0x17e)](_0x55e3b2),'isSingle':!0x1}}),_0x2848ca['push']({'id':y['id'],'params':{'unitId':_0x151383,'subUnitId':_0x222fdf,'groupIds':Array[_0x27351e(0x17e)](_0x55e3b2),'isSingle':!0x1}});const _0x230e42={};let _0x4969c=!0x1;return Object['entries'](_0x40e2c6)[_0x27351e(0x174)](([_0x18141b,_0x1387f0])=>{const _0x1b2578=_0x27351e;_0x1387f0[_0x1b2578(0x19d)][_0x1b2578(0x119)]()&&(_0x4969c=!0x0,_0x1387f0[_0x1b2578(0x19d)]['removeRows'](_0x2f9e09[_0x1b2578(0x132)],_0x2f9e09[_0x1b2578(0x115)]-_0x2f9e09['startRow']+0x1),_0x230e42[_0x18141b]={'config':_0x1387f0[_0x1b2578(0x19f)],'sparklines':_0x1387f0[_0x1b2578(0x19d)][_0x1b2578(0x113)]()});}),_0x4969c&&_0x50150b['push']({'id':V['id'],'params':{'unitId':_0x151383,'subUnitId':_0x222fdf,'sparklineConfigMap':_0x230e42}}),_0x29a307['push']({'id':V['id'],'params':{'unitId':_0x151383,'subUnitId':_0x222fdf,'sparklineConfigMap':_0xd8bea7}}),{'redos':_0x50150b,'undos':_0x29a307,'preRedos':_0x2848ca,'preUndos':_0x360698};}[_0x4fb522(0x14c)](_0x34dd56,_0x2f25e9,_0x144575){const _0x4c90a3=_0x4fb522;var _0x213ba2,_0x10d1f1;const {range:_0x4f1b39}=_0x34dd56,_0x13b8eb=new Set(),_0x2c8165={},_0x5de1f0={},_0x2d053b=[],_0x363db4=[],_0x3618f3=[],_0x18bdbc=[];if(!_0x56d415(this[_0x4c90a3(0x152)],{'unitId':_0x2f25e9,'subUnitId':_0x144575}))return{'redos':_0x363db4,'undos':_0x2d053b};const _0x48e64b=this['_sparklineDataSourceModel'][_0x4c90a3(0x13d)](_0x2f25e9,_0x144575);if(!_0x48e64b)return{'redos':_0x363db4,'undos':_0x2d053b};if(!((_0x10d1f1=(_0x213ba2=this['_sparklineDataSourceModel']['getSparklineCache']()[_0x4c90a3(0x182)]['get'](_0x2f25e9))==null?void 0x0:_0x213ba2['get'](_0x144575))==null?void 0x0:_0x10d1f1[_0x4c90a3(0x156)]))return{'redos':_0x363db4,'undos':_0x2d053b};for(const [_0x439240,_0x478a1f]of _0x48e64b){const _0x2ba3cb=_0x478a1f['sparklines'];_0x2ba3cb[_0x4c90a3(0x187)]((_0xc8031f,_0x244242,_0x3a74a8)=>{const _0x2cfcf4=_0x4c90a3;if(_0x3b8d48[_0x2cfcf4(0x14b)](_0x4f1b39,_0x3a74a8)){_0x13b8eb['add'](_0x439240);let _0x506fa8=_0x5de1f0[_0x439240];_0x506fa8||(_0x506fa8={'config':_0x478a1f[_0x2cfcf4(0x19f)],'sparklines':_0x478a1f[_0x2cfcf4(0x19d)][_0x2cfcf4(0x113)]()},_0x5de1f0[_0x439240]=_0x506fa8);let _0x4c509f=_0x2c8165[_0x439240];_0x4c509f||(_0x4c509f={'config':_0x478a1f[_0x2cfcf4(0x19f)],'sparklines':new _0x2080ce(_0x478a1f[_0x2cfcf4(0x19d)]['clone']())},_0x2c8165[_0x439240]=_0x4c509f);const _0x419908=_0x2a933e(_0x3a74a8,{'id':_0x36736e['id'],'params':_0x34dd56});_0x419908?_0x4c509f['sparklines'][_0x2cfcf4(0x1a5)](_0xc8031f,_0x244242,_0x419908):_0x4c509f['sparklines'][_0x2cfcf4(0x1a5)](_0xc8031f,_0x244242,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40b876[_0x2cfcf4(0x16e)]});}}),_0x2ba3cb[_0x4c90a3(0x187)]((_0x327f89,_0x4a9388,_0x3981b4)=>{const _0x1538f6=_0x4c90a3;if(_0x4a9388<=_0x4f1b39['endColumn']&&_0x4a9388>=_0x4f1b39[_0x1538f6(0x13b)]){_0x13b8eb[_0x1538f6(0x1a3)](_0x439240);let _0x2c6041=_0x5de1f0[_0x439240];_0x2c6041||(_0x2c6041={'config':_0x478a1f[_0x1538f6(0x19f)],'sparklines':_0x478a1f[_0x1538f6(0x19d)][_0x1538f6(0x113)]()},_0x5de1f0[_0x439240]=_0x2c6041);let _0x76d180=_0x2c8165[_0x439240];_0x76d180||(_0x76d180={'config':_0x478a1f['config'],'sparklines':new _0x2080ce(_0x478a1f[_0x1538f6(0x19d)][_0x1538f6(0x113)]())},_0x2c8165[_0x439240]=_0x76d180);}});}_0x18bdbc[_0x4c90a3(0x127)]({'id':y['id'],'params':{'unitId':_0x2f25e9,'subUnitId':_0x144575,'groupIds':Array[_0x4c90a3(0x17e)](_0x13b8eb),'isSingle':!0x1}}),_0x3618f3[_0x4c90a3(0x127)]({'id':y['id'],'params':{'unitId':_0x2f25e9,'subUnitId':_0x144575,'groupIds':Array['from'](_0x13b8eb),'isSingle':!0x1}});const _0x2a97bf={};let _0x35a262=!0x1;return Object['entries'](_0x2c8165)[_0x4c90a3(0x174)](([_0x19bdcf,_0xc12ae9])=>{const _0x185db0=_0x4c90a3;_0xc12ae9[_0x185db0(0x19d)][_0x185db0(0x119)]()&&(_0x35a262=!0x0,_0xc12ae9['sparklines'][_0x185db0(0x1b7)](_0x4f1b39[_0x185db0(0x13b)],_0x4f1b39[_0x185db0(0x177)]-_0x4f1b39['startColumn']+0x1),_0x2a97bf[_0x19bdcf]={'config':_0xc12ae9['config'],'sparklines':_0xc12ae9[_0x185db0(0x19d)][_0x185db0(0x113)]()});}),_0x35a262&&_0x363db4[_0x4c90a3(0x127)]({'id':V['id'],'params':{'unitId':_0x2f25e9,'subUnitId':_0x144575,'sparklineConfigMap':_0x2a97bf}}),_0x2d053b['push']({'id':V['id'],'params':{'unitId':_0x2f25e9,'subUnitId':_0x144575,'sparklineConfigMap':_0x5de1f0}}),{'redos':_0x363db4,'undos':_0x2d053b,'preRedos':_0x3618f3,'preUndos':_0x18bdbc};}[_0x4fb522(0x118)](){const _0x3c086b=_0x4fb522;this[_0x3c086b(0x1b5)](this['_commandService'][_0x3c086b(0x13c)](_0xdfd432=>{const _0x38fbeb=_0x3c086b;if(_0xdfd432['id']===_0x38b493['id']){const _0x399fbc=_0xdfd432['params'],{unitId:_0x298abf,subUnitId:_0x727c7c,range:_0x57afe6}=_0x399fbc,_0x2b5f78=_0x57afe6[_0x38fbeb(0x13b)],_0xe64f9d=_0x57afe6[_0x38fbeb(0x177)]-_0x57afe6[_0x38fbeb(0x13b)]+0x1,_0x1071de=this[_0x38fbeb(0x1ba)][_0x38fbeb(0x13d)](_0x298abf,_0x727c7c);if(!_0x1071de)return;for(const [_0x58a887,_0x4ef649]of _0x1071de){this[_0x38fbeb(0x1ba)][_0x38fbeb(0x148)](_0x298abf,_0x727c7c,_0x58a887);const _0x4d58dd=_0x4ef649[_0x38fbeb(0x19d)];_0x4d58dd[_0x38fbeb(0x187)]((_0x2c04b4,_0x50e977,_0x358a3c)=>{const _0x2c0d5c=_0x38fbeb,_0x12c339={..._0x358a3c};_0x2b5f78<=_0x12c339[_0x2c0d5c(0x13b)]?(_0x12c339[_0x2c0d5c(0x13b)]+=_0xe64f9d,_0x12c339[_0x2c0d5c(0x177)]+=_0xe64f9d):_0x2b5f78>_0x12c339['endColumn']||(_0x12c339[_0x2c0d5c(0x177)]+=_0xe64f9d),_0x4d58dd[_0x2c0d5c(0x1a5)](_0x2c04b4,_0x50e977,_0x12c339);});const _0x3c9387=_0x4d58dd[_0x38fbeb(0x1bb)]();for(const _0x2e51ff in _0x3c9387){const _0x51a4fc=_0x3c9387[Number(_0x2e51ff)];if(!_0x51a4fc)continue;const _0x58e066=Object['keys'](_0x51a4fc)[_0x38fbeb(0x142)](Number),_0x250850=Math[_0x38fbeb(0x18a)](..._0x58e066);for(let _0x6fb691=_0x250850;_0x6fb691>=_0x2b5f78;_0x6fb691--)_0x6fb691>=_0x2b5f78&&_0x51a4fc[_0x6fb691]&&(_0x51a4fc[_0x6fb691+_0xe64f9d]=_0x51a4fc[_0x6fb691],delete _0x51a4fc[_0x6fb691]);}this[_0x38fbeb(0x1ba)][_0x38fbeb(0x140)](_0x298abf,_0x727c7c,_0x58a887);}}else{if(_0xdfd432['id']===_0xcd3f92['id']){const _0x207551=_0xdfd432['params'],{unitId:_0xae560a,subUnitId:_0x53faa5,range:_0x5ea12e}=_0x207551,_0x36343f=_0x5ea12e[_0x38fbeb(0x132)],_0x459ef3=_0x5ea12e[_0x38fbeb(0x115)]-_0x5ea12e[_0x38fbeb(0x132)]+0x1,_0x45bb88=this[_0x38fbeb(0x1ba)][_0x38fbeb(0x13d)](_0xae560a,_0x53faa5);if(!_0x45bb88)return;for(const [_0x3f5641,_0x17fb36]of _0x45bb88){this[_0x38fbeb(0x1ba)][_0x38fbeb(0x148)](_0xae560a,_0x53faa5,_0x3f5641);const _0x431b0a=_0x17fb36[_0x38fbeb(0x19d)];_0x431b0a[_0x38fbeb(0x187)]((_0x5d8eb9,_0x8715fd,_0x49b1e3)=>{const _0x52b7b7=_0x38fbeb,_0x21fecc={..._0x49b1e3};_0x36343f<=_0x21fecc[_0x52b7b7(0x132)]?(_0x21fecc[_0x52b7b7(0x132)]+=_0x459ef3,_0x21fecc['endRow']+=_0x459ef3):_0x36343f>_0x21fecc[_0x52b7b7(0x115)]||(_0x21fecc['endRow']+=_0x459ef3),_0x431b0a[_0x52b7b7(0x1a5)](_0x5d8eb9,_0x8715fd,_0x21fecc);});const _0x532d1d=_0x431b0a['getMatrix'](),_0x227956=Object[_0x38fbeb(0x12b)](_0x532d1d)[_0x38fbeb(0x142)](Number),_0x5d0982=Math[_0x38fbeb(0x18a)](..._0x227956);for(let _0x221339=_0x5d0982;_0x221339>=_0x36343f;_0x221339--)_0x221339>=_0x36343f&&_0x532d1d[_0x221339]&&(_0x532d1d[_0x221339+_0x459ef3]=_0x532d1d[_0x221339],delete _0x532d1d[_0x221339]);this[_0x38fbeb(0x1ba)][_0x38fbeb(0x140)](_0xae560a,_0x53faa5,_0x3f5641);}}else{if(_0xdfd432['id']===_0x36736e['id']){const _0x3d49bb=_0xdfd432[_0x38fbeb(0x157)],{range:_0x26c0dc,unitId:_0x51859c,subUnitId:_0x72f783}=_0x3d49bb,_0x95fc8c=this[_0x38fbeb(0x1ba)]['getSubUnitSparkline'](_0x51859c,_0x72f783);if(!_0x95fc8c)return;for(const [_0x18d7eb,_0x5c3d3d]of _0x95fc8c){const _0x508414=_0x5c3d3d[_0x38fbeb(0x19d)];_0x508414[_0x38fbeb(0x187)]((_0x1f02f8,_0x1c42d7,_0x421120)=>{const _0x8fd16a=_0x38fbeb,_0x2458ea=_0x2a933e(_0x421120,_0xdfd432);_0x2458ea?_0x508414[_0x8fd16a(0x1a5)](_0x1f02f8,_0x1c42d7,_0x2458ea):_0x508414[_0x8fd16a(0x1a5)](_0x1f02f8,_0x1c42d7,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40b876['NORMAL']});}),_0x508414[_0x38fbeb(0x1b7)](_0x26c0dc[_0x38fbeb(0x13b)],_0x26c0dc[_0x38fbeb(0x177)]-_0x26c0dc[_0x38fbeb(0x13b)]+0x1);}this['_sparklineDataSourceModel'][_0x38fbeb(0x126)](_0x51859c,_0x72f783);}else{if(_0xdfd432['id']===_0x577dcd['id']){const _0x2be025=_0xdfd432['params'],{range:_0x11cecf,unitId:_0x36cb1e,subUnitId:_0x53050c}=_0x2be025,_0x1d3bc0=this[_0x38fbeb(0x1ba)][_0x38fbeb(0x13d)](_0x36cb1e,_0x53050c);if(!_0x1d3bc0)return;for(const [_0x1903b6,_0x2dfddd]of _0x1d3bc0){const _0x366d4b=_0x2dfddd[_0x38fbeb(0x19d)];_0x366d4b[_0x38fbeb(0x187)]((_0xd0d0f0,_0x5871b7,_0x421a49)=>{const _0x54cb61=_0x38fbeb,_0x49efb6=_0x2a933e(_0x421a49,_0xdfd432);_0x49efb6?_0x366d4b[_0x54cb61(0x1a5)](_0xd0d0f0,_0x5871b7,_0x49efb6):_0x366d4b[_0x54cb61(0x1a5)](_0xd0d0f0,_0x5871b7,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40b876['NORMAL']});}),_0x366d4b['removeRows'](_0x11cecf[_0x38fbeb(0x132)],_0x11cecf[_0x38fbeb(0x115)]-_0x11cecf['startRow']+0x1);}this['_sparklineDataSourceModel'][_0x38fbeb(0x126)](_0x36cb1e,_0x53050c);}else{if(_0xdfd432['id']===_0x2d0c5f['id']){const _0x5408a4=_0xdfd432[_0x38fbeb(0x157)],{unitId:_0x29e1a7,subUnitId:_0xe4690b,sourceRange:_0x41a7c7,targetRange:_0x42bc3c}=_0x5408a4,_0x7abe5f=this[_0x38fbeb(0x1ba)][_0x38fbeb(0x13d)](_0x29e1a7,_0xe4690b);if(!_0x7abe5f)return;for(const [_0x48f630,_0x2fd474]of _0x7abe5f){const _0x517d8b=_0x2fd474[_0x38fbeb(0x19d)];_0x517d8b['forValue']((_0x243bfc,_0x345938,_0x25c039)=>{const _0x2cac73=_0x38fbeb,_0x29dc9e=_0x2a933e(_0x25c039,_0xdfd432);_0x29dc9e?_0x517d8b[_0x2cac73(0x1a5)](_0x243bfc,_0x345938,_0x29dc9e):_0x517d8b[_0x2cac73(0x1a5)](_0x243bfc,_0x345938,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40b876[_0x2cac73(0x16e)]});}),_0x517d8b[_0x38fbeb(0x176)](_0x41a7c7['startColumn'],_0x41a7c7[_0x38fbeb(0x177)]-_0x41a7c7['startColumn']+0x1,_0x42bc3c[_0x38fbeb(0x13b)]);}this[_0x38fbeb(0x1ba)]['reBuildAnchorCache'](_0x29e1a7,_0xe4690b);}else{if(_0xdfd432['id']===_0x19bef0['id']){const _0x36dc7d=_0xdfd432[_0x38fbeb(0x157)],{unitId:_0x10575f,subUnitId:_0x1c36d4,sourceRange:_0x22b4f6,targetRange:_0x57d738}=_0x36dc7d,_0x468c03=this[_0x38fbeb(0x1ba)][_0x38fbeb(0x13d)](_0x10575f,_0x1c36d4);if(!_0x468c03)return;for(const [_0x16b1ff,_0x33088c]of _0x468c03){const _0x149bbb=_0x33088c[_0x38fbeb(0x19d)];_0x149bbb[_0x38fbeb(0x187)]((_0x9dfb76,_0x1d2d39,_0x232b7c)=>{const _0x2ad856=_0x38fbeb,_0x5f27f6=_0x2a933e(_0x232b7c,_0xdfd432);_0x5f27f6?_0x149bbb['setValue'](_0x9dfb76,_0x1d2d39,_0x5f27f6):_0x149bbb[_0x2ad856(0x1a5)](_0x9dfb76,_0x1d2d39,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x40b876[_0x2ad856(0x16e)]});}),_0x149bbb['moveRows'](_0x22b4f6[_0x38fbeb(0x132)],_0x22b4f6[_0x38fbeb(0x115)]-_0x22b4f6['startRow']+0x1,_0x57d738['startRow']);}this[_0x38fbeb(0x1ba)][_0x38fbeb(0x126)](_0x10575f,_0x1c36d4);}else{if(_0xdfd432['id']===_0x2861b['id']){const _0x40fa51=_0xdfd432[_0x38fbeb(0x157)],{fromRange:_0x5cb981,toRange:_0x5bb789,unitId:_0x3e1e69,from:_0x45fa98,to:_0x247e2e}=_0x40fa51;if(_0x45fa98[_0x38fbeb(0x128)]!==_0x247e2e[_0x38fbeb(0x128)])return;const _0xc53934=_0x45fa98[_0x38fbeb(0x128)],{startRow:_0x5f8880,endRow:_0x46bb0d,startColumn:_0x217326,endColumn:_0x67d4c3}=_0x5cb981,{startRow:_0x2c26c0,startColumn:_0x739734}=_0x5bb789,_0x2a1352=_0x2c26c0-_0x5f8880,_0x1e997d=_0x739734-_0x217326,_0x57f0bf=this[_0x38fbeb(0x1ba)][_0x38fbeb(0x13d)](_0x3e1e69,_0xc53934);if(!(_0x57f0bf!=null&&_0x57f0bf[_0x38fbeb(0x12a)]))return;for(let _0xab0f9b=_0x5f8880;_0xab0f9b<=_0x46bb0d;_0xab0f9b++)for(let _0x1ecced=_0x217326;_0x1ecced<=_0x67d4c3;_0x1ecced++){const _0x3db8b1=this[_0x38fbeb(0x1ba)]['getSparkline'](_0x3e1e69,_0xc53934,_0xab0f9b,_0x1ecced);if(_0x3db8b1){const _0x2356c6=this[_0x38fbeb(0x1ba)][_0x38fbeb(0x129)](_0x3e1e69,_0xc53934,_0x3db8b1);if(_0x2356c6){const _0x1a1f83=_0x2356c6['sparklines'][_0x38fbeb(0x11d)](_0xab0f9b,_0x1ecced);_0x1a1f83&&(_0x2356c6[_0x38fbeb(0x19d)]['setValue'](_0xab0f9b+_0x2a1352,_0x1ecced+_0x1e997d,_0x1a1f83),_0x2356c6['sparklines']['realDeleteValue'](_0xab0f9b,_0x1ecced));}}}for(const [_0xb82207,_0x596e06]of _0x57f0bf){const _0x5086a5=_0x596e06[_0x38fbeb(0x19d)];_0x5086a5[_0x38fbeb(0x187)]((_0x4dc0f5,_0x1dc8cc,_0x15511b)=>{const _0x26b39e=_0x38fbeb,_0x2d32e6={..._0x15511b};_0x3b8d48[_0x26b39e(0x179)](_0x5cb981,_0x15511b)&&(_0x2d32e6[_0x26b39e(0x132)]+=_0x2a1352,_0x2d32e6['endRow']+=_0x2a1352,_0x2d32e6[_0x26b39e(0x13b)]+=_0x1e997d,_0x2d32e6[_0x26b39e(0x177)]+=_0x1e997d),_0x5086a5[_0x26b39e(0x1a5)](_0x4dc0f5,_0x1dc8cc,_0x2d32e6);});}this['_sparklineDataSourceModel']['reBuildAnchorCache'](_0x3e1e69,_0xc53934);}}}}}}}}));}};function _0x54e0(){const _0x4cbeeb=['_sparklineModel','_sparklineDataSourceModel','getMatrix','4327335mtSjMz','removePartSparkline','removeSparkline','getCell','range','subscribe','length','_refRangeService','8298498jpbAxv','extremumMin','refRangeHandle','clone','BAR_CHART','endRow','rgb(124,66,147)','PIE_CHART','_initCorrectRangeWithSparkline','getSizeOf','BOOLEAN','STRING','hasValue','getValue','asObservable','rgb(54,78,244)','type','SOFT','lastPoint','registerPluginResource','entries','defineProperty','reBuildAnchorCache','push','subUnitId','getSparklineById','size','keys','getSheetBySheetId','negativePoint','firstPoint','delete','_onRefRangeChange','getCurrentUnitForType','startRow','markersPoint','toRgbString','custom','LINE_CHART','_initDataChangeListener','getRowVisible','_initDependencies','extremumMax','startColumn','onCommandExecuted','getSubUnitSparkline','ranges','rgb(244,104,249)','updateSparklineExtraNum','min','map','_sheetInterceptorService','symbol','sheet.command.add-sparkline','getOwnPropertyDescriptor','getSparklineCache','clearSparklineCache','getCellRaw','_initCopySheetWithSparkline','intersects','_getRefRangeMutationsByDeleteCols','_updateConfig$','zero_value','NUMBER','_initExclusiveRangeChange','disposableCollection','_univerInstanceService','pushUndoRedo','groupId','sheet.mutation.remove-sparkline','matrix','params','sheet.command.set-sparkline','4407977syMNRe','_config','value','u-connect','sheet.command.remove-sparkline','distinctive','_sheetSelectionService','row','column','2620noAlfd','_ensureConfigMap','set','CONNECT_WITH_LINE','getColVisible','number','has','rgb(248,190,21)','ZERO_VALUE','PROFIT_AND_LOSS_CHART','unitId','updateConfig$','NORMAL','880081qSdewJ','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','MAX_SAFE_INTEGER','emptyShowAs','u-spacing','forEach','interceptCommand','moveColumns','endColumn','realDeleteValue','contains','setAlpha','CUSTOM','getCurrentSelections','get','from','rgb(49,106,246)','_exclusiveRangeService','registerRefRange','sparklineAnchorMap','_initClearWithSparkline','stringify','fresh','addSparkline','forValue','deepClone','SHEET_SPARKLINE_PLUGIN','max','3657qgJcwW','next','DISTINCTIVE','2324192bOuCfc','_getRefRangeMutationsByDeleteRows','getSparkline','_commandService','rgb(80,102,248)','SELF_EXTREMUM','sheet.mutation.add-sparkline','every','foreach','SPECIALTY','MUTATION','changeDataSourceInfo','rgb(252,117,60)','FORCE_STRING','_ensureAnchorMatrix','sparklines','_sparklineAnchorMap','config','toJSON','_resourceManagerService','8rsNbUk','add','CUSTOM_EXTREMUM','setValue','values','_initHideRowColWithSparkline','MIN_SAFE_INTEGER','sparklineModel','COMMAND','UNIVER_SHEET','onReady','42605874UkbBYP','_initSnapshot','specialty','SPACING','_injector','standard','rgb(236,100,169)','actualColumn','disposeWithMe','remove','removeColumns','GROUP_EXTREMUM'];_0x54e0=function(){return _0x4cbeeb;};return _0x54e0();}Me=Kt([ue(0x0,_0x36ac04(_0x268ad9)),ue(0x1,_0x36ac04(_0x136aa0)),ue(0x2,_0x36ac04(_0xecf202)),ue(0x3,_0x34ae2b),ue(0x4,_0x36ac04(x))],Me);var Xt=Object[_0x4fb522(0x146)],zt=(_0x1200e3,_0x41aac4,_0x3be1d6,_0xa9678c)=>{for(var _0x44b6d1=_0xa9678c>0x1?void 0x0:_0xa9678c?Xt(_0x41aac4,_0x3be1d6):_0x41aac4,_0x2b353d=_0x1200e3['length']-0x1,_0x162ee0;_0x2b353d>=0x0;_0x2b353d--)(_0x162ee0=_0x1200e3[_0x2b353d])&&(_0x44b6d1=_0x162ee0(_0x44b6d1)||_0x44b6d1);return _0x44b6d1;},Be=(_0x1c523e,_0x9cff8a)=>(_0x395dd2,_0x39c103)=>_0x9cff8a(_0x395dd2,_0x39c103,_0x1c523e);let Re=class extends _0x38e949{constructor(_0x20260b,_0x457e43){const _0x1685bc=_0x4fb522;super(),this[_0x1685bc(0x1a1)]=_0x20260b,this[_0x1685bc(0x1ba)]=_0x457e43,this[_0x1685bc(0x1ae)]();}[_0x4fb522(0x1ae)](){const _0x1499b4=_0x4fb522,_0x115e03=_0x169bdc=>{const _0x4324fa=_0xa9aa,_0x5c9ae8=this[_0x4324fa(0x1ba)][_0x4324fa(0x1a0)](_0x169bdc);return _0x5c9ae8?JSON[_0x4324fa(0x184)](_0x5c9ae8):'';},_0x49d491=_0x3d0c80=>_0x3d0c80?JSON['parse'](_0x3d0c80):{};this[_0x1499b4(0x1b5)](this[_0x1499b4(0x1a1)][_0x1499b4(0x123)]({'toJson':_0x115e03,'parseJson':_0x49d491,'pluginName':Ke,'businesses':[_0x1fb932[_0x1499b4(0x1ab)]],'onLoad':(_0x23c94f,_0x290235)=>{const _0x46036e=_0x1499b4;this[_0x46036e(0x1ba)]['fromJSON'](_0x290235);},'onUnLoad':_0x121e9b=>{const _0x4aea68=_0x1499b4;this[_0x4aea68(0x1ba)]['deleteUnit'](_0x121e9b);}}));}};function _0xa9aa(_0x34fc99,_0xd921c8){const _0x54e0e9=_0x54e0();return _0xa9aa=function(_0xa9aa2e,_0x21c701){_0xa9aa2e=_0xa9aa2e-0x10f;let _0x395e79=_0x54e0e9[_0xa9aa2e];return _0x395e79;},_0xa9aa(_0x34fc99,_0xd921c8);}Re=zt([Be(0x0,_0x36ac04(_0x38f9b5)),Be(0x1,_0x36ac04(x))],Re);var Jt=Object[_0x4fb522(0x125)],Zt=Object[_0x4fb522(0x146)],Yt=(_0x2526d3,_0x2b7e35,_0x18ea64)=>_0x2b7e35 in _0x2526d3?Jt(_0x2526d3,_0x2b7e35,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18ea64}):_0x2526d3[_0x2b7e35]=_0x18ea64,qt=(_0x167f37,_0x3c4522,_0x2e0ff0,_0x5cccf8)=>{const _0xbb9c7a=_0x4fb522;for(var _0xfcd16b=_0x5cccf8>0x1?void 0x0:_0x5cccf8?Zt(_0x3c4522,_0x2e0ff0):_0x3c4522,_0x3ea8de=_0x167f37[_0xbb9c7a(0x1c2)]-0x1,_0x386b63;_0x3ea8de>=0x0;_0x3ea8de--)(_0x386b63=_0x167f37[_0x3ea8de])&&(_0xfcd16b=_0x386b63(_0xfcd16b)||_0xfcd16b);return _0xfcd16b;},He=(_0x561daf,_0x5a7a82)=>(_0x44ddca,_0x5e628)=>_0x5a7a82(_0x44ddca,_0x5e628,_0x561daf),ze=(_0x46156e,_0x419955,_0x393b89)=>Yt(_0x46156e,typeof _0x419955!=_0x4fb522(0x144)?_0x419955+'':_0x419955,_0x393b89);let ve=class extends _0x1d6ae6{constructor(_0x58157e={},_0x12d8b0,_0x12d22e){const _0x5831de=_0x4fb522;super(),this[_0x5831de(0x15a)]=_0x58157e,this[_0x5831de(0x1b1)]=_0x12d8b0,this['_commandService']=_0x12d22e,this['_initDependencies'](),this['_initRegisterCommand']();}[_0x4fb522(0x139)](){[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]]['forEach'](_0x15d539=>{const _0x5bf414=_0xa9aa;this[_0x5bf414(0x1b1)][_0x5bf414(0x1a3)](_0x15d539);}),_0x32fc3c(this['_injector'],[[Re]]);}[_0x4fb522(0x1ac)](){const _0x1235f2=_0x4fb522;_0x32fc3c(this[_0x1235f2(0x1b1)],[[me],[_e],[Se],[Me],[Ce],[ke]]);}['_initRegisterCommand'](){const _0x39a782=_0x4fb522;[Nt,V,Ot,y,xt,Oe][_0x39a782(0x174)](_0x23a77a=>this[_0x39a782(0x191)]['registerCommand'](_0x23a77a));}};ze(ve,'pluginName',Ke),ze(ve,_0x4fb522(0x120),_0x1fb932[_0x4fb522(0x1ab)]),ve=qt([_0x58a45f(_0x4e9fc5),He(0x1,_0x36ac04(_0x25ab4e)),He(0x2,_0x36ac04(_0x268ad9))],ve);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Ot as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,xt as SetSheetSparklineCommand,Oe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,Ee as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,ve as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
|
|
1
|
+
const _0x40ac0d=_0x557a;(function(_0x3635e9,_0x191df6){const _0x272317=_0x557a,_0x36404e=_0x3635e9();while(!![]){try{const _0x178394=parseInt(_0x272317(0x11d))/0x1+-parseInt(_0x272317(0xbc))/0x2*(parseInt(_0x272317(0xb1))/0x3)+-parseInt(_0x272317(0xad))/0x4*(-parseInt(_0x272317(0x7c))/0x5)+-parseInt(_0x272317(0x126))/0x6+parseInt(_0x272317(0x91))/0x7+-parseInt(_0x272317(0x109))/0x8*(parseInt(_0x272317(0x103))/0x9)+parseInt(_0x272317(0xb5))/0xa;if(_0x178394===_0x191df6)break;else _0x36404e['push'](_0x36404e['shift']());}catch(_0x2de338){_0x36404e['push'](_0x36404e['shift']());}}}(_0x3f06,0x94da7));var qe=Object[_0x40ac0d(0xab)],Qe=(_0x2dec59,_0x31b1db,_0x3294dd)=>_0x31b1db in _0x2dec59?qe(_0x2dec59,_0x31b1db,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3294dd}):_0x2dec59[_0x31b1db]=_0x3294dd,se=(_0x517ad7,_0x58eca5,_0x5e52af)=>Qe(_0x517ad7,typeof _0x58eca5!='symbol'?_0x58eca5+'':_0x58eca5,_0x5e52af);import{UniverLicensePlugin as _0x3d5536}from'@univerjs-pro/license';import{ObjectMatrix as _0x383241,Inject as _0x219988,IUniverInstanceService as _0x1f020b,Disposable as _0x55cef7,isValidRange as _0x1ab04e,CellValueType as _0x3d0f92,ColorKit as _0x3159ff,CommandType as _0x2d656d,Range as _0x2bb2b8,IUndoRedoService as _0x36f802,generateRandomId as _0x3991cb,ICommandService as _0x1a4d08,Tools as _0x343fc7,sequenceExecute as _0x549c18,Rectangle as _0x482be5,cellToRange as _0xb86f13,DisposableCollection as _0x49893f,RANGE_TYPE as _0xba1188,UniverInstanceType as _0x3880d7,IResourceManagerService as _0x297583,DependentOn as _0x3e0e7f,Injector as _0x35aff1,Plugin as _0x5f2117,touchDependencies as _0x3ba1f9}from'@univerjs/core';import{getSheetCommandTarget as _0x1e95f5,SheetsSelectionsService as _0x55d9bc,SheetInterceptorService as _0x39a411,ClearSelectionAllCommand as _0xbf3617,CopySheetCommand as _0x48fc8a,IExclusiveRangeService as _0x462b29,SetRangeValuesMutation as _0x546c68,ReorderRangeMutation as _0x2d03c9,SetRowHiddenMutation as _0x33bb48,SetColHiddenMutation as _0x432312,SetRowVisibleMutation as _0x341561,SetColVisibleMutation as _0x46e140,AddWorksheetMergeCommand as _0x13538a,RefRangeService as _0x2cf858,SetWorksheetActivateCommand as _0x59c5eb,RemoveRowCommand as _0x2eabf7,RemoveColCommand as _0x2394c2,adjustRangeOnMutation as _0x29f3ab,RemoveRowMutation as _0x4ab564,RemoveColMutation as _0x11bb71,InsertColMutation as _0x318d7a,InsertRowMutation as _0x34627c,MoveColsMutation as _0x1f3d47,MoveRowsMutation as _0x9c17cf,MoveRangeMutation as _0x31ff93}from'@univerjs/sheets';function _0x3f06(){const _0x4bca35=['reBuildAnchorCache','ZERO_VALUE','from','PROFIT_AND_LOSS_CHART','changeDataSourceInfo','actualColumn','rgb(124,66,147)','_exclusiveRangeService','keys','getSparkline','sparklines','rgb(248,190,21)','MAX_SAFE_INTEGER','952685KetOfQ','value','updateSparklineExtraNum','_sparklineModel','delete','forValue','remove','item','LINE_CHART','matrix','onReady','exclusiveRangesChange$','contains','startRow','toRgbString','setAlpha','_ensureConfigMap','COMMAND','BAR_CHART','get','GROUP_EXTREMUM','776454yBwAmP','_univerInstanceService','setValue','getRowVisible','getSizeOf','SELF_EXTREMUM','hasValue','seriesColor','intersects','getMatrix','_sheetSelectionService','emptyShowAs','containHiddenCells','standard','_updateConfig$','forEach','_config','_initDependencies','extremumMax','_initExclusiveRangeChange','NORMAL','pushUndoRedo','addSparkline','_initHideRowColWithSparkline','map','CUSTOM_EXTREMUM','defineProperty','rgb(49,106,246)','4fifauQ','parse','range','config','1089nNiWgW','UNIVER_SHEET','sheet.command.add-sparkline','_initMergeWithSparkline','8483020IVOjvj','markersPoint','_refRangeService','has','negativePoint','updateConfig$','moveRows','956dxoxLQ','unitId','onCommandExecuted','next','push','lastPoint','custom','type','specialty','getOwnPropertyDescriptor','removeColumns','CUSTOM','realDeleteValue','connect_with_line','_initClearWithSparkline','disposableCollection','min','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','deepClone','getCurrentUnitForType','_sparklineAnchorMap','getSubUnitSparkline','_sheetInterceptorService','MIN_SAFE_INTEGER','rgb(30,177,189)','_initRegisterCommand','deleteUnit','removeSparkline','u-spacing','themeType','_initCopySheetWithSparkline','rgb(252,117,60)','entries','STANDARD','length','rgb(80,102,248)','endColumn','_initSnapshot','getSparklineById','assign','_onRefRangeChange','registerRefRange','_injector','every','extremumMin','spacing','NUMBER','getCurrentSelections','size','_getRefRangeMutationsByDeleteCols','stringify','getColVisible','distinctive','toJSON','SPACING','lowPoint','zero_value','fromJSON','params','_initCorrectRangeWithSparkline','set','getValue','symbol','setSparkline','firstPoint','_getRefRangeMutationsByDeleteRows','startColumn','soft','_commandService','STRING','sparklineAnchorMap','59229GtemdT','sheet.mutation.remove-sparkline','asObservable','removePartSparkline','PIE_CHART','row','304XEjsjf','some','dispose','refRangeHandle','subUnitId','endRow','sparklineModel','getCell','_ensureAnchorMatrix','sheet.command.set-sparkline','disposeWithMe','getSparklineCache','column','SPECIALTY','_resourceManagerService','number','SOFT','u-connect','removeRows','BOOLEAN','563848avVkxv','clearSparklineCache','foreach','groupId','clone','ranges','_initDataChangeListener','add','max','4081884IiMsRO','_sparklineDataSourceModel','moveColumns','FRESH','CONNECT_WITH_LINE'];_0x3f06=function(){return _0x4bca35;};return _0x3f06();}function _0x557a(_0x1f5df6,_0xe19cb2){const _0x3f0636=_0x3f06();return _0x557a=function(_0x557aab,_0x419927){_0x557aab=_0x557aab-0x75;let _0x41b9f7=_0x3f0636[_0x557aab];return _0x41b9f7;},_0x557a(_0x1f5df6,_0xe19cb2);}import{Subject as _0x7891eb}from'rxjs';function Fe(_0x35a5f7,_0xc48e67){const _0x22832f=_0x40ac0d,_0x51e47d=new _0x383241(),_0x41483d=[],_0x169d66=_0x35a5f7['length']>0x1;let _0x1003bd=0x0,_0x36c276=0x0;for(const _0x55954d of _0x35a5f7)_0x1003bd+=_0x55954d[_0x22832f(0x10e)]-_0x55954d['startRow']+0x1,_0x36c276+=_0x55954d['endColumn']-_0x55954d['startColumn']+0x1;for(const _0x17b944 of _0xc48e67)for(let _0x58ecb0=_0x17b944['startRow'];_0x58ecb0<=_0x17b944[_0x22832f(0x10e)];_0x58ecb0++)for(let _0x53876d=_0x17b944['startColumn'];_0x53876d<=_0x17b944['endColumn'];_0x53876d++)_0x41483d[_0x22832f(0xc0)]({'row':_0x58ecb0,'column':_0x53876d});if(_0x41483d[_0x22832f(0xde)]===_0x1003bd)_0x169d66?_0x41483d[_0x22832f(0xa0)]((_0x25d4b7,_0x5b1890)=>{const _0x3c8394=_0x22832f,_0xdbd23d=_0x35a5f7[_0x5b1890],_0x1cdae8={'startRow':_0xdbd23d['startRow'],'startColumn':_0xdbd23d[_0x3c8394(0xfe)],'endRow':_0xdbd23d[_0x3c8394(0x89)],'endColumn':_0xdbd23d['endColumn']};_0x51e47d[_0x3c8394(0x93)](_0x25d4b7[_0x3c8394(0x108)],_0x25d4b7[_0x3c8394(0x115)],_0x1cdae8);}):_0x41483d['forEach']((_0x3d9940,_0x5a6d3d)=>{const _0x557ddc=_0x22832f,_0x32924c=_0x35a5f7[0x0],_0x1d862b={'startRow':_0x32924c[_0x557ddc(0x89)]+_0x5a6d3d,'startColumn':_0x32924c['startColumn'],'endRow':_0x32924c[_0x557ddc(0x89)]+_0x5a6d3d,'endColumn':_0x32924c[_0x557ddc(0xe0)]};_0x51e47d[_0x557ddc(0x93)](_0x3d9940[_0x557ddc(0x108)],_0x3d9940[_0x557ddc(0x115)],_0x1d862b);});else{if(_0x41483d[_0x22832f(0xde)]===_0x36c276)_0x169d66?_0x41483d['forEach']((_0x3684ce,_0x29a5d6)=>{const _0x1d8d02=_0x22832f,_0x541a71=_0x35a5f7[_0x29a5d6],_0x56fd5a={'startRow':_0x541a71[_0x1d8d02(0x89)],'startColumn':_0x541a71[_0x1d8d02(0xfe)],'endRow':_0x541a71['endRow'],'endColumn':_0x541a71[_0x1d8d02(0xfe)]};_0x51e47d[_0x1d8d02(0x93)](_0x3684ce[_0x1d8d02(0x108)],_0x3684ce[_0x1d8d02(0x115)],_0x56fd5a);}):_0x41483d['forEach']((_0x5e6bf3,_0x5cd4af)=>{const _0x189f96=_0x22832f,_0x44c8f6=_0x35a5f7[0x0],_0x1a0b05={'startRow':_0x44c8f6[_0x189f96(0x89)],'startColumn':_0x44c8f6[_0x189f96(0xfe)]+_0x5cd4af,'endRow':_0x44c8f6['endRow'],'endColumn':_0x44c8f6['startColumn']+_0x5cd4af};_0x51e47d[_0x189f96(0x93)](_0x5e6bf3['row'],_0x5e6bf3['column'],_0x1a0b05);});else{if(_0x41483d[_0x22832f(0xde)]===_0x35a5f7[_0x22832f(0xde)])_0x35a5f7[_0x22832f(0xe7)](_0x345e5a=>!(_0x345e5a[_0x22832f(0x89)]!==_0x345e5a[_0x22832f(0x10e)]&&_0x345e5a[_0x22832f(0xfe)]!==_0x345e5a[_0x22832f(0xe0)]))&&_0x41483d['forEach']((_0x554777,_0x5c94a9)=>{const _0x344883=_0x22832f,_0x498238=_0x35a5f7[_0x5c94a9];_0x51e47d[_0x344883(0x93)](_0x554777[_0x344883(0x108)],_0x554777[_0x344883(0x115)],_0x498238);});else throw new Error(_0x22832f(0xcd));}}return _0x51e47d;}const Ke='SHEET_SPARKLINE_PLUGIN',Le={'standard':['rgb(54,78,244)','rgb(236,100,169)'],'specialty':[_0x40ac0d(0xac),_0x40ac0d(0xd4)],'distinctive':[_0x40ac0d(0x75),_0x40ac0d(0xdb)],'soft':[_0x40ac0d(0xdf),'rgb(244,104,249)'],'fresh':['rgb(46,187,122)',_0x40ac0d(0x7a)]},on=['highPoint',_0x40ac0d(0xfc),_0x40ac0d(0xc1),_0x40ac0d(0xf3),_0x40ac0d(0xb9),_0x40ac0d(0xb6)];var Xe=(_0x3ba0e2=>(_0x3ba0e2['STANDARD']=_0x40ac0d(0x9e),_0x3ba0e2[_0x40ac0d(0x116)]=_0x40ac0d(0xc4),_0x3ba0e2['DISTINCTIVE']=_0x40ac0d(0xf0),_0x3ba0e2[_0x40ac0d(0x119)]=_0x40ac0d(0xff),_0x3ba0e2[_0x40ac0d(0x129)]='fresh',_0x3ba0e2[_0x40ac0d(0xc7)]=_0x40ac0d(0xc2),_0x3ba0e2))(Xe||{}),Dt=(_0x2b4dbe=>(_0x2b4dbe[_0x2b4dbe[_0x40ac0d(0x84)]=0x1]='LINE_CHART',_0x2b4dbe[_0x2b4dbe['BAR_CHART']=0x2]=_0x40ac0d(0x8e),_0x2b4dbe[_0x2b4dbe[_0x40ac0d(0x12e)]=0x3]=_0x40ac0d(0x12e),_0x2b4dbe[_0x2b4dbe[_0x40ac0d(0x107)]=0x4]=_0x40ac0d(0x107),_0x2b4dbe))(Dt||{}),J=(_0x6c0676=>(_0x6c0676['SPACING']=_0x40ac0d(0xe9),_0x6c0676['ZERO_VALUE']=_0x40ac0d(0xf4),_0x6c0676['CONNECT_WITH_LINE']=_0x40ac0d(0xc9),_0x6c0676))(J||{}),Ee=(_0x15ec89=>(_0x15ec89[_0x15ec89[_0x40ac0d(0x96)]=0x1]=_0x40ac0d(0x96),_0x15ec89[_0x15ec89[_0x40ac0d(0x90)]=0x2]='GROUP_EXTREMUM',_0x15ec89[_0x15ec89[_0x40ac0d(0xaa)]=0x3]='CUSTOM_EXTREMUM',_0x15ec89))(Ee||{}),Et=Object[_0x40ac0d(0xc5)],Vt=(_0x51da2f,_0x1fff44,_0x4ac5eb,_0x3978cb)=>{for(var _0x374acf=_0x3978cb>0x1?void 0x0:_0x3978cb?Et(_0x1fff44,_0x4ac5eb):_0x1fff44,_0x24f455=_0x51da2f['length']-0x1,_0x47e74b;_0x24f455>=0x0;_0x24f455--)(_0x47e74b=_0x51da2f[_0x24f455])&&(_0x374acf=_0x47e74b(_0x374acf)||_0x374acf);return _0x374acf;},yt=(_0x2717e7,_0x21fabf)=>(_0x1f06e2,_0xb834ab)=>_0x21fabf(_0x1f06e2,_0xb834ab,_0x2717e7);let x=class extends _0x55cef7{constructor(_0xeeda91){const _0x314305=_0x40ac0d;super(),se(this,_0x314305(0x7f),new Map()),se(this,'_sparklineAnchorMap',new Map()),se(this,'_updateConfig$',new _0x7891eb()),se(this,_0x314305(0xba),this[_0x314305(0x9f)][_0x314305(0x105)]()),this[_0x314305(0x92)]=_0xeeda91;}[_0x40ac0d(0x8c)](_0x2fc2f0,_0x1add06){const _0x33bd4b=_0x40ac0d;let _0x46549e=this[_0x33bd4b(0x7f)][_0x33bd4b(0x8f)](_0x2fc2f0);_0x46549e||(_0x46549e=new Map(),this[_0x33bd4b(0x7f)][_0x33bd4b(0xf8)](_0x2fc2f0,_0x46549e));let _0x2dff68=_0x46549e['get'](_0x1add06);return _0x2dff68||(_0x2dff68=new Map(),_0x46549e[_0x33bd4b(0xf8)](_0x1add06,_0x2dff68)),_0x2dff68;}[_0x40ac0d(0x111)](_0x543d34,_0x1b65eb){const _0x132e58=_0x40ac0d;let _0x29a7c2=this[_0x132e58(0xd0)]['get'](_0x543d34);_0x29a7c2||(_0x29a7c2=new Map(),this['_sparklineAnchorMap'][_0x132e58(0xf8)](_0x543d34,_0x29a7c2));let _0x434e55=_0x29a7c2[_0x132e58(0x8f)](_0x1b65eb);return _0x434e55||(_0x434e55={'matrix':new _0x383241(),'extra':{}},_0x29a7c2[_0x132e58(0xf8)](_0x1b65eb,_0x434e55)),_0x434e55;}[_0x40ac0d(0x7e)](_0x14fa17,_0x4ad167,_0xceccbc,_0x520503=_0x40ac0d(0xf8)){const _0x8e6585=_0x40ac0d;var _0x4f30f3,_0x1eb2c6,_0x5425b9,_0x1036c4,_0x952eec,_0x489dce,_0x3e07cc,_0x2f284a,_0x16615c,_0x45b839,_0x35d39a,_0x26f25c,_0x4b2081;const _0x98c588=(_0x1eb2c6=(_0x4f30f3=this[_0x8e6585(0x7f)]['get'](_0x14fa17))==null?void 0x0:_0x4f30f3[_0x8e6585(0x8f)](_0x4ad167))==null?void 0x0:_0x1eb2c6[_0x8e6585(0x8f)](_0xceccbc);if(!_0x98c588)return;const _0x3c7693=_0x1e95f5(this[_0x8e6585(0x92)],{'unitId':_0x14fa17,'subUnitId':_0x4ad167});if(!_0x3c7693)return;const _0x3ff2e2=this['_ensureAnchorMatrix'](_0x14fa17,_0x4ad167),{extra:_0x3d1c0a,matrix:_0x4ac131}=_0x3ff2e2,{worksheet:_0x4e97ae}=_0x3c7693;let _0x3f798e=Number[_0x8e6585(0xd3)],_0x59f30b=Number[_0x8e6585(0x7b)];const _0x50c685=(_0x5425b9=_0x98c588[_0x8e6585(0xb0)][_0x8e6585(0x9d)])!=null?_0x5425b9:!0x1;_0x98c588[_0x8e6585(0x79)][_0x8e6585(0x81)]((_0x4c864e,_0x45f6af,_0xbf239f)=>{const _0x1b0660=_0x8e6585;var _0x337d46,_0x234398,_0x4013f1;const _0x233eaf=_0xbf239f;let _0xe35a3=Number[_0x1b0660(0xd3)],_0x52477b=Number[_0x1b0660(0x7b)],_0x11e504=0x0,_0x34bb81=0x0;const _0x489e84=[];if(!_0x1ab04e(_0x233eaf))_0x4ac131[_0x1b0660(0x93)](_0x4c864e,_0x45f6af,{'groupId':_0xceccbc,'data':[],'max':_0xe35a3,'min':_0x52477b,'highIndex':_0x11e504,'lowIndex':_0x34bb81,'negativeIndexes':_0x489e84});else{const _0x37765a=[];for(let _0x400540=_0x233eaf[_0x1b0660(0x89)];_0x400540<=_0x233eaf[_0x1b0660(0x10e)];_0x400540++){for(let _0x5ee092=_0x233eaf[_0x1b0660(0xfe)];_0x5ee092<=_0x233eaf['endColumn'];_0x5ee092++){const _0x192791=_0x4e97ae[_0x1b0660(0x94)](_0x400540),_0x412542=_0x4e97ae[_0x1b0660(0xef)](_0x5ee092);if(!_0x50c685&&(!_0x192791||!_0x412542))continue;let _0x4e0b1c=0x0;const _0x4a24cc=((_0x337d46=_0x4e97ae['getCellRaw'](_0x400540,_0x5ee092))==null?void 0x0:_0x337d46['v'])!==void 0x0?_0x4e97ae['getCellRaw'](_0x400540,_0x5ee092):_0x4e97ae[_0x1b0660(0x110)](_0x400540,_0x5ee092);if(!_0x4a24cc||_0x4a24cc['v']===void 0x0||_0x4a24cc['v']===null){const _0x4d0fb9=(_0x234398=_0x98c588[_0x1b0660(0xb0)][_0x1b0660(0x9c)])!=null?_0x234398:J['SPACING'];_0x4d0fb9===J[_0x1b0660(0x12c)]?_0x4e0b1c=0x0:_0x4d0fb9===J[_0x1b0660(0xf2)]?_0x4e0b1c=_0x1b0660(0xd8):_0x4d0fb9===J[_0x1b0660(0x12a)]&&(_0x4e0b1c=_0x1b0660(0x11a));}else{if(_0x4a24cc['t']===_0x3d0f92[_0x1b0660(0x101)]||_0x4a24cc['t']===_0x3d0f92['FORCE_STRING']){const _0x3a4750=(_0x4013f1=_0x98c588['config']['nonNumShowAs'])!=null?_0x4013f1:J['SPACING'];_0x3a4750===J['ZERO_VALUE']?_0x4e0b1c=0x0:_0x3a4750===J[_0x1b0660(0xf2)]?_0x4e0b1c='u-spacing':_0x3a4750===J[_0x1b0660(0x12a)]&&(_0x4e0b1c='u-connect');}else _0x4a24cc['t']===_0x3d0f92[_0x1b0660(0x11c)]?_0x4e0b1c=_0x4a24cc['v']?0x1:0x0:_0x4a24cc['t']===_0x3d0f92[_0x1b0660(0xea)]?_0x4e0b1c=Number(_0x4a24cc['v']):_0x4e0b1c=_0x4a24cc['v'];}if(_0x37765a[_0x1b0660(0xc0)](_0x4e0b1c),typeof _0x4e0b1c==_0x1b0660(0x118)){_0xe35a3=Math[_0x1b0660(0x125)](_0xe35a3,_0x4e0b1c),_0x3f798e=Math[_0x1b0660(0x125)](_0x3f798e,_0x4e0b1c),_0x59f30b=Math['min'](_0x59f30b,_0x4e0b1c),_0x52477b=Math[_0x1b0660(0xcc)](_0x52477b,_0x4e0b1c);const _0x41b4c5=typeof _0x37765a[_0x11e504]==_0x1b0660(0x118)?Number(_0x37765a[_0x11e504]):Number[_0x1b0660(0xd3)];_0x4e0b1c>_0x41b4c5&&(_0x11e504=_0x37765a[_0x1b0660(0xde)]-0x1);const _0x1b3e3a=typeof _0x37765a[_0x34bb81]==_0x1b0660(0x118)?Number(_0x37765a[_0x34bb81]):Number[_0x1b0660(0x7b)];_0x4e0b1c<_0x1b3e3a&&(_0x34bb81=_0x37765a[_0x1b0660(0xde)]-0x1),_0x4e0b1c<0x0&&_0x489e84[_0x1b0660(0xc0)](_0x37765a[_0x1b0660(0xde)]-0x1);}}_0x4ac131[_0x1b0660(0x93)](_0x4c864e,_0x45f6af,{'groupId':_0xceccbc,'data':_0x37765a,'max':_0xe35a3,'min':_0x52477b,'highIndex':_0x11e504,'lowIndex':_0x34bb81,'negativeIndexes':_0x489e84});}}});let _0x5144c3=_0x3f798e;((_0x1036c4=_0x98c588['config'][_0x8e6585(0xa3)])==null?void 0x0:_0x1036c4[_0x8e6585(0xc3)])===Ee['CUSTOM_EXTREMUM']&&(_0x5144c3=(_0x489dce=(_0x952eec=_0x98c588[_0x8e6585(0xb0)]['extremumMax'])==null?void 0x0:_0x952eec[_0x8e6585(0x7d)])!=null?_0x489dce:_0x3f798e);let _0x43e779=_0x59f30b;((_0x3e07cc=_0x98c588[_0x8e6585(0xb0)][_0x8e6585(0xe8)])==null?void 0x0:_0x3e07cc[_0x8e6585(0xc3)])===Ee[_0x8e6585(0xaa)]&&(_0x43e779=(_0x16615c=(_0x2f284a=_0x98c588[_0x8e6585(0xb0)][_0x8e6585(0xe8)])==null?void 0x0:_0x2f284a[_0x8e6585(0x7d)])!=null?_0x16615c:_0x59f30b);const _0x4e4f5c=(_0x45b839=_0x98c588[_0x8e6585(0xb0)][_0x8e6585(0xd9)])!=null?_0x45b839:Xe[_0x8e6585(0xdd)],_0x435436=(_0x4b2081=(_0x26f25c=_0x98c588[_0x8e6585(0xb0)][_0x8e6585(0x98)])!=null?_0x26f25c:(_0x35d39a=Le[_0x4e4f5c])==null?void 0x0:_0x35d39a[0x0])!=null?_0x4b2081:Le[_0x8e6585(0x9e)][0x0],_0x20db01=new _0x3159ff(_0x435436),_0x4a900a=_0x20db01[_0x8e6585(0x8b)](0.2)[_0x8e6585(0x8a)](),_0x140563=_0x20db01[_0x8e6585(0x8b)](0.05)[_0x8e6585(0x8a)]();_0x3d1c0a[_0xceccbc]={'groupMax':_0x3f798e,'groupMin':_0x59f30b,'showMax':_0x5144c3,'showMin':_0x43e779,'startGradient':_0x4a900a,'endGradient':_0x140563},this['_updateConfig$']['next']({'unitId':_0x14fa17,'subUnitId':_0x4ad167,'groupId':_0xceccbc,'config':_0x98c588,'type':_0x520503});}[_0x40ac0d(0xa7)](_0x5d2832,_0x133c16,_0x1ddb87,_0x4ee90c){const _0x37dae3=_0x40ac0d;this[_0x37dae3(0x8c)](_0x5d2832,_0x133c16)[_0x37dae3(0xf8)](_0x1ddb87,_0x4ee90c),this[_0x37dae3(0x7e)](_0x5d2832,_0x133c16,_0x1ddb87,_0x37dae3(0x124));}[_0x40ac0d(0xfb)](_0x4e5903,_0x47f5ae,_0xe3d953,_0x2a5301){const _0xc3f869=_0x40ac0d;var _0x36d35b;const _0x4b0485=(_0x36d35b=this[_0xc3f869(0x7f)]['get'](_0x4e5903))==null?void 0x0:_0x36d35b[_0xc3f869(0x8f)](_0x47f5ae);_0xe3d953[_0xc3f869(0xa0)](_0x18a3f9=>{const _0x524708=_0xc3f869;_0x4b0485!=null&&_0x4b0485['has'](_0x18a3f9)&&(_0x4b0485[_0x524708(0xf8)](_0x18a3f9,_0x2a5301),this['updateSparklineExtraNum'](_0x4e5903,_0x47f5ae,_0x18a3f9));});}[_0x40ac0d(0xd7)](_0x599291,_0x1d8476,_0x58d460){const _0x10f525=_0x40ac0d;var _0x4e7607,_0x13456a;const _0x4ee771=this['_sparklineModel'][_0x10f525(0x8f)](_0x599291);if(_0x4ee771){const _0x36343e=_0x4ee771[_0x10f525(0x8f)](_0x1d8476);if(_0x36343e){_0x36343e[_0x10f525(0x80)](_0x58d460);const _0x3c6bb2=(_0x4e7607=this[_0x10f525(0xd0)]['get'](_0x599291))==null?void 0x0:_0x4e7607[_0x10f525(0x8f)](_0x1d8476);(_0x13456a=_0x3c6bb2==null?void 0x0:_0x3c6bb2[_0x10f525(0x85)])==null||_0x13456a[_0x10f525(0x81)]((_0x5790a2,_0x2cd4cc,_0x2f59e8)=>{const _0x5c3335=_0x10f525;(_0x2f59e8==null?void 0x0:_0x2f59e8['groupId'])===_0x58d460&&(_0x3c6bb2==null||_0x3c6bb2[_0x5c3335(0x85)][_0x5c3335(0xc8)](_0x5790a2,_0x2cd4cc));}),this[_0x10f525(0x9f)][_0x10f525(0xbf)]({'unitId':_0x599291,'subUnitId':_0x1d8476,'groupId':_0x58d460,'type':'remove'});}}}[_0x40ac0d(0x106)](_0x3b0638,_0x35c6fb,_0x5f3a28,_0x4589a4){const _0x2f98d9=_0x40ac0d;var _0x163a80,_0xb82a2f,_0xe7aa96,_0x1c3284;const _0x215a6a=(_0x163a80=this[_0x2f98d9(0xd0)][_0x2f98d9(0x8f)](_0x3b0638))==null?void 0x0:_0x163a80[_0x2f98d9(0x8f)](_0x35c6fb),_0x32a5e9=_0x215a6a==null?void 0x0:_0x215a6a[_0x2f98d9(0x85)][_0x2f98d9(0xf9)](_0x5f3a28,_0x4589a4);if(_0x32a5e9){const {groupId:_0xfea7e5}=_0x32a5e9,_0x40011a=(_0xb82a2f=this[_0x2f98d9(0x7f)][_0x2f98d9(0x8f)](_0x3b0638))==null?void 0x0:_0xb82a2f[_0x2f98d9(0x8f)](_0x35c6fb);(_0xe7aa96=_0x40011a==null?void 0x0:_0x40011a[_0x2f98d9(0x8f)](_0xfea7e5))==null||_0xe7aa96[_0x2f98d9(0x79)]['realDeleteValue'](_0x5f3a28,_0x4589a4),(_0x1c3284=_0x40011a==null?void 0x0:_0x40011a[_0x2f98d9(0x8f)](_0xfea7e5))!=null&&_0x1c3284[_0x2f98d9(0x79)][_0x2f98d9(0x97)]()||_0x40011a==null||_0x40011a[_0x2f98d9(0x80)](_0xfea7e5),_0x215a6a==null||_0x215a6a[_0x2f98d9(0x85)][_0x2f98d9(0xc8)](_0x5f3a28,_0x4589a4),this[_0x2f98d9(0x9f)][_0x2f98d9(0xbf)]({'unitId':_0x3b0638,'subUnitId':_0x35c6fb,'groupId':_0xfea7e5,'type':_0x2f98d9(0x82)});}}['clearSparklineCache'](_0x3f16bc,_0x2403d7,_0x4e2cc2){const _0x496988=_0x40ac0d;var _0xc91c8b,_0x433cb8,_0x1ae162,_0x39d5a9;const _0x371aed=(_0x1ae162=(_0x433cb8=(_0xc91c8b=this[_0x496988(0x7f)][_0x496988(0x8f)](_0x3f16bc))==null?void 0x0:_0xc91c8b[_0x496988(0x8f)](_0x2403d7))==null?void 0x0:_0x433cb8[_0x496988(0x8f)](_0x4e2cc2))==null?void 0x0:_0x1ae162[_0x496988(0x79)],_0x33b9bb=(_0x39d5a9=this['_sparklineAnchorMap']['get'](_0x3f16bc))==null?void 0x0:_0x39d5a9[_0x496988(0x8f)](_0x2403d7);if(_0x371aed&&_0x33b9bb){const {matrix:_0x4a677f,extra:_0x62fd91}=_0x33b9bb;_0x371aed[_0x496988(0x81)]((_0x3d5155,_0x124e2c,_0x5179c5)=>{const _0x302eb4=_0x496988;_0x4a677f[_0x302eb4(0xc8)](_0x3d5155,_0x124e2c);}),delete _0x62fd91[_0x4e2cc2];}}[_0x40ac0d(0xd1)](_0x72dc6d,_0x142fbd){const _0x506ea4=_0x40ac0d;var _0xe44646;return(_0xe44646=this[_0x506ea4(0x7f)][_0x506ea4(0x8f)](_0x72dc6d))==null?void 0x0:_0xe44646[_0x506ea4(0x8f)](_0x142fbd);}[_0x40ac0d(0xe2)](_0x1821f1,_0xac642f,_0x501397){const _0x8efccd=_0x40ac0d;var _0x1f3d9b,_0x35228a;return(_0x35228a=(_0x1f3d9b=this[_0x8efccd(0x7f)][_0x8efccd(0x8f)](_0x1821f1))==null?void 0x0:_0x1f3d9b[_0x8efccd(0x8f)](_0xac642f))==null?void 0x0:_0x35228a[_0x8efccd(0x8f)](_0x501397);}[_0x40ac0d(0x78)](_0x5935a9,_0x57d0c2,_0x25c124,_0x13cd7d){const _0x1c5270=_0x40ac0d;var _0x2794ae,_0x3bf95b,_0x43d937;return(_0x43d937=(_0x3bf95b=(_0x2794ae=this[_0x1c5270(0xd0)][_0x1c5270(0x8f)](_0x5935a9))==null?void 0x0:_0x2794ae[_0x1c5270(0x8f)](_0x57d0c2))==null?void 0x0:_0x3bf95b[_0x1c5270(0x85)]['getValue'](_0x25c124,_0x13cd7d))==null?void 0x0:_0x43d937[_0x1c5270(0x120)];}[_0x40ac0d(0x12b)](_0x217e51,_0x44821d){const _0x424400=_0x40ac0d;var _0x256731;const _0x4890ec=this[_0x424400(0x111)](_0x217e51,_0x44821d);_0x4890ec[_0x424400(0x85)][_0x424400(0x81)]((_0x2094bf,_0x262929,_0x167b47)=>{const _0x137d22=_0x424400;_0x4890ec[_0x137d22(0x85)][_0x137d22(0xc8)](_0x2094bf,_0x262929);});const _0x1921b5=(_0x256731=this[_0x424400(0x7f)][_0x424400(0x8f)](_0x217e51))==null?void 0x0:_0x256731[_0x424400(0x8f)](_0x44821d);if(_0x1921b5){for(const [_0x11f47b,_0x533d38]of _0x1921b5)this[_0x424400(0x7e)](_0x217e51,_0x44821d,_0x11f47b);}}[_0x40ac0d(0x114)](){const _0x4d4575=_0x40ac0d;return{'sparklineModel':this['_sparklineModel'],'sparklineAnchorMap':this[_0x4d4575(0xd0)]};}[_0x40ac0d(0xf1)](_0x268319){const _0x4631d3=_0x40ac0d,_0x2e8c72={};if(this[_0x4631d3(0x7f)][_0x4631d3(0xb8)](_0x268319)){_0x2e8c72[_0x268319]={};const _0x9814b5=this['_sparklineModel'][_0x4631d3(0x8f)](_0x268319);_0x9814b5!=null&&_0x9814b5[_0x4631d3(0xec)]&&Array[_0x4631d3(0x12d)](_0x9814b5['keys']())[_0x4631d3(0xa0)](_0x5ac390=>{const _0x45b9b5=_0x4631d3;_0x2e8c72[_0x268319][_0x5ac390]={};const _0x56a893=_0x9814b5['get'](_0x5ac390);_0x56a893!=null&&_0x56a893['size']&&Array[_0x45b9b5(0x12d)](_0x56a893[_0x45b9b5(0x77)]())[_0x45b9b5(0xa0)](_0x268f7a=>{const _0x709873=_0x45b9b5,_0x4471d1=_0x56a893[_0x709873(0x8f)](_0x268f7a);_0x4471d1&&(_0x2e8c72[_0x268319][_0x5ac390][_0x268f7a]={'config':_0x4471d1['config'],'sparklines':_0x4471d1[_0x709873(0x79)]['getMatrix']()});});});}return _0x2e8c72;}[_0x40ac0d(0xf5)](_0x20dc67){const _0x5af130=_0x40ac0d;if(!_0x20dc67)return;Object[_0x5af130(0x77)](_0x20dc67)[_0x5af130(0xa0)](_0x5e77a0=>{const _0x323f7b=_0x5af130,_0x57b5d8=_0x20dc67[_0x5e77a0];_0x57b5d8&&Object['keys'](_0x57b5d8)[_0x323f7b(0xa0)](_0x101a05=>{const _0x41f1ef=_0x323f7b,_0x3f5a6d=_0x57b5d8[_0x101a05];_0x3f5a6d&&Object['keys'](_0x3f5a6d)[_0x41f1ef(0xa0)](_0x1b2299=>{const _0x402109=_0x41f1ef,_0x10c5da=_0x3f5a6d[_0x1b2299];if(_0x10c5da){const _0x48a408={'config':_0x10c5da[_0x402109(0xb0)],'sparklines':new _0x383241(_0x10c5da[_0x402109(0x79)])};this['addSparkline'](_0x5e77a0,_0x101a05,_0x1b2299,_0x48a408);}});});});}[_0x40ac0d(0xd6)](_0x170897){const _0x342d64=_0x40ac0d,_0x3fb5e5=this[_0x342d64(0x7f)][_0x342d64(0x8f)](_0x170897);if(_0x3fb5e5){for(const [_0x27a0c5]of _0x3fb5e5){const _0x3fbfb0=_0x3fb5e5['get'](_0x27a0c5);if(_0x3fbfb0){for(const [_0x573ffd]of _0x3fbfb0)this[_0x342d64(0x11e)](_0x170897,_0x27a0c5,_0x573ffd);}}this[_0x342d64(0x7f)][_0x342d64(0x80)](_0x170897);}}};x=Vt([yt(0x0,_0x219988(_0x1f020b))],x);const V={'id':'sheet.mutation.add-sparkline','type':_0x2d656d['MUTATION'],'handler':(_0x33fa77,_0x525de8)=>{const _0x5cfaf=_0x40ac0d;if(!_0x525de8)return!0x1;const {sparklineConfigMap:_0x3f118a,unitId:_0x43720f,subUnitId:_0x1f20a1}=_0x525de8,_0x48102d=_0x33fa77[_0x5cfaf(0x8f)](x);return Object[_0x5cfaf(0xdc)](_0x3f118a)[_0x5cfaf(0xa0)](([_0x449104,_0x5ddc8c])=>{const _0x5c1f1a=_0x5cfaf,_0x36713f={'config':_0x5ddc8c[_0x5c1f1a(0xb0)],'sparklines':new _0x383241(_0x5ddc8c[_0x5c1f1a(0x79)])};_0x48102d[_0x5c1f1a(0xa7)](_0x43720f,_0x1f20a1,_0x449104,_0x36713f);}),!0x0;}},y={'id':_0x40ac0d(0x104),'type':_0x2d656d['MUTATION'],'handler':(_0x46e8c6,_0x554a57)=>{const _0x5f10b0=_0x40ac0d;if(!_0x554a57)return!0x1;const {unitId:_0x307fbc,subUnitId:_0x583911,ranges:_0x1897eb,isSingle:_0x486e4a,groupIds:_0xc96d6c}=_0x554a57,_0x18d1fa=_0x46e8c6[_0x5f10b0(0x8f)](x);return _0xc96d6c?(_0xc96d6c[_0x5f10b0(0xa0)](_0xe60eb4=>{const _0x17a93e=_0x5f10b0;_0x18d1fa[_0x17a93e(0xd7)](_0x307fbc,_0x583911,_0xe60eb4);}),!0x0):_0x1897eb?(_0x1897eb['forEach'](_0x15e805=>{_0x2bb2b8['foreach'](_0x15e805,(_0x3308a9,_0x7bd01c)=>{const _0x176887=_0x557a,_0x5161cf=_0x18d1fa[_0x176887(0x78)](_0x307fbc,_0x583911,_0x3308a9,_0x7bd01c);_0x5161cf&&(_0x486e4a?_0x18d1fa[_0x176887(0x106)](_0x307fbc,_0x583911,_0x3308a9,_0x7bd01c):_0x18d1fa['removeSparkline'](_0x307fbc,_0x583911,_0x5161cf));});}),!0x0):!0x1;}},Nt={'id':_0x40ac0d(0xb3),'type':_0x2d656d[_0x40ac0d(0x8d)],'handler':(_0xb08847,_0x2dbc71)=>{const _0x1c0bb2=_0x40ac0d;if(!_0x2dbc71)return!0x1;const {sourceRanges:_0x530a2c,targetRanges:_0x24a24b,config:_0x3f7978}=_0x2dbc71,_0x37fcd0=_0xb08847['get'](_0x36f802),_0x1ba457='g_'+_0x3991cb(0x6),_0x1c24c2=Fe(_0x530a2c,_0x24a24b),_0x3159ba={'config':_0x3f7978!=null?_0x3f7978:{},'sparklines':_0x1c24c2['getMatrix']()},_0x1f20a3=_0xb08847[_0x1c0bb2(0x8f)](_0x1f020b),_0x20aca1=_0xb08847['get'](x),_0xa7020b=_0x1e95f5(_0x1f20a3);if(!_0xa7020b)return!0x1;const {unitId:_0x5746e6,subUnitId:_0x2855de}=_0xa7020b,_0x4d3460=_0xb08847[_0x1c0bb2(0x8f)](_0x1a4d08),_0x305fac=[],_0x421a0e=[],_0x409072={},_0x2088e1={},_0x5976be=new Set([_0x1ba457]);_0x1c24c2['forValue']((_0xca1606,_0x484fc4,_0x5806b1)=>{const _0x13979a=_0x1c0bb2,_0x22d247=_0x20aca1[_0x13979a(0x78)](_0x5746e6,_0x2855de,_0xca1606,_0x484fc4);if(_0x22d247){const _0x239669=_0x20aca1[_0x13979a(0xe2)](_0x5746e6,_0x2855de,_0x22d247);if(_0x239669){_0x5976be[_0x13979a(0x124)](_0x22d247);let _0xffa623=_0x409072[_0x22d247],_0x175b45=_0x2088e1[_0x22d247];_0x175b45||(_0x175b45={'config':_0x343fc7[_0x13979a(0xce)](_0x239669[_0x13979a(0xb0)]),'sparklines':new _0x383241(_0x239669[_0x13979a(0x79)][_0x13979a(0x121)]())},_0x2088e1[_0x22d247]=_0x175b45),_0xffa623||(_0xffa623={'config':_0x343fc7['deepClone'](_0x239669[_0x13979a(0xb0)]),'sparklines':_0x239669[_0x13979a(0x79)][_0x13979a(0x121)]()},_0x409072[_0x22d247]=_0xffa623),_0x175b45[_0x13979a(0x79)][_0x13979a(0xc8)](_0xca1606,_0x484fc4);}}});const _0xd7450={};return Object['entries'](_0x2088e1)[_0x1c0bb2(0xa0)](([_0x57d4b2,_0x611185])=>{const _0x1c4a29=_0x1c0bb2;_0x611185[_0x1c4a29(0x79)]['getSizeOf']()&&(_0xd7450[_0x57d4b2]={'config':_0x611185['config'],'sparklines':_0x611185[_0x1c4a29(0x79)][_0x1c4a29(0x121)]()});}),_0xd7450[_0x1ba457]=_0x3159ba,_0x305fac[_0x1c0bb2(0xc0)]({'id':y['id'],'params':{'unitId':_0x5746e6,'subUnitId':_0x2855de,'groupIds':Array[_0x1c0bb2(0x12d)](_0x5976be),'isSingle':!0x1}}),_0x5976be[_0x1c0bb2(0xec)]>0x1&&(_0x421a0e[_0x1c0bb2(0xc0)]({'id':y['id'],'params':{'unitId':_0x5746e6,'subUnitId':_0x2855de,'groupIds':Array['from'](_0x5976be),'isSingle':!0x1}}),_0x305fac[_0x1c0bb2(0xc0)]({'id':V['id'],'params':{'unitId':_0x5746e6,'subUnitId':_0x2855de,'sparklineConfigMap':_0x409072}})),_0x421a0e[_0x1c0bb2(0xc0)]({'id':V['id'],'params':{'unitId':_0x5746e6,'subUnitId':_0x2855de,'sparklineConfigMap':_0xd7450}}),_0x549c18(_0x421a0e,_0x4d3460),_0x37fcd0['pushUndoRedo']({'unitID':_0x5746e6,'undoMutations':_0x305fac,'redoMutations':_0x421a0e}),!0x0;}},Ot={'id':'sheet.command.remove-sparkline','type':_0x2d656d[_0x40ac0d(0x8d)],'handler':(_0x222d67,_0x545439)=>{const _0x4a08c0=_0x40ac0d;var _0x444c3e;const {isSingle:_0xcf1f92=!0x0}=_0x545439||{},_0x34dbbc=_0x222d67[_0x4a08c0(0x8f)](_0x1a4d08),_0x41f35d=_0x222d67[_0x4a08c0(0x8f)](_0x1f020b),_0x432829=_0x222d67[_0x4a08c0(0x8f)](x),_0x8b4d8d=_0x222d67[_0x4a08c0(0x8f)](_0x36f802),_0x1bb86e=_0x1e95f5(_0x41f35d);if(!_0x1bb86e)return!0x1;const _0x315832=_0x222d67['get'](_0x55d9bc),_0x5b8924=(_0x444c3e=_0x545439==null?void 0x0:_0x545439[_0x4a08c0(0x122)])!=null?_0x444c3e:_0x315832['getCurrentSelections']()[_0x4a08c0(0xa9)](_0x2f234e=>_0x2f234e['range']),{unitId:_0x1d3c59,subUnitId:_0x3a7e22}=_0x1bb86e,_0x47d599=[],_0x451a5c=[];_0x47d599['push']({'id':y['id'],'params':{'unitId':_0x1d3c59,'subUnitId':_0x3a7e22,'ranges':_0x5b8924,'isSingle':_0xcf1f92}});const _0x4f59b6=[],_0x3ec98e={};return _0x5b8924['forEach'](_0xed3638=>{const _0x467cae=_0x4a08c0;_0x2bb2b8[_0x467cae(0x11f)](_0xed3638,(_0xda2117,_0x4de758)=>{const _0x31abf3=_0x467cae,_0x7f1071=_0x432829[_0x31abf3(0x78)](_0x1d3c59,_0x3a7e22,_0xda2117,_0x4de758);if(_0x7f1071){const _0x67d6e1=_0x432829[_0x31abf3(0xe2)](_0x1d3c59,_0x3a7e22,_0x7f1071);_0x67d6e1&&(_0x4f59b6[_0x31abf3(0xc0)](_0x7f1071),_0x3ec98e[_0x7f1071]={'config':_0x343fc7[_0x31abf3(0xce)](_0x67d6e1[_0x31abf3(0xb0)]),'sparklines':_0x343fc7[_0x31abf3(0xce)](_0x67d6e1[_0x31abf3(0x79)][_0x31abf3(0x121)]())});}});}),_0x451a5c[_0x4a08c0(0xc0)]({'id':y['id'],'params':{'unitId':_0x1d3c59,'subUnitId':_0x3a7e22,'groupIds':_0x4f59b6,'isSingle':!0x1}}),_0x451a5c[_0x4a08c0(0xc0)]({'id':V['id'],'params':{'unitId':_0x1d3c59,'subUnitId':_0x3a7e22,'sparklineConfigMap':_0x3ec98e}}),_0x549c18(_0x47d599,_0x34dbbc),_0x8b4d8d['pushUndoRedo']({'unitID':_0x1d3c59,'undoMutations':_0x451a5c,'redoMutations':_0x47d599}),!0x0;}},Oe={'id':'sheet.mutation.set-sparkline','type':_0x2d656d['MUTATION'],'handler':(_0x554ca2,_0x596adc)=>{const _0x4fb08e=_0x40ac0d;if(!_0x596adc)return!0x1;const {unitId:_0x4da2e3,subUnitId:_0x50b789,groupIds:_0xa64f9d,config:_0x4f5059}=_0x596adc,_0x5d33e8=_0x554ca2[_0x4fb08e(0x8f)](x);return _0xa64f9d['forEach'](_0x28a43c=>{const _0x24b53e=_0x4fb08e,_0x18341f=_0x5d33e8[_0x24b53e(0xe2)](_0x4da2e3,_0x50b789,_0x28a43c);if(_0x18341f){const _0x457f8c={'config':Object[_0x24b53e(0xe3)]({},_0x18341f[_0x24b53e(0xb0)],_0x4f5059['config']),'sparklines':new _0x383241(_0x18341f[_0x24b53e(0x79)]['clone']())};_0x5d33e8[_0x24b53e(0xfb)](_0x4da2e3,_0x50b789,[_0x28a43c],_0x457f8c);}}),!0x0;}},xt={'id':_0x40ac0d(0x112),'type':_0x2d656d[_0x40ac0d(0x8d)],'handler':(_0x1326c1,_0x7b7ac)=>{const _0x47c183=_0x40ac0d;var _0x1f3ba3,_0x37f459,_0x494b43,_0x17cc99;if(!_0x7b7ac)return!0x1;const _0x857401=_0x1326c1[_0x47c183(0x8f)](_0x1a4d08),_0x3fda97=_0x1326c1[_0x47c183(0x8f)](_0x55d9bc),_0x42def0=_0x1326c1[_0x47c183(0x8f)](x),_0x1ab515=_0x1326c1['get'](_0x1f020b),_0x216fe6=_0x1326c1['get'](_0x36f802),_0x2c0842=_0x1e95f5(_0x1ab515);if(!_0x2c0842)return!0x1;const {unitId:_0x2ad3d7,subUnitId:_0x4f7107}=_0x2c0842,_0x5853ec=(_0x1f3ba3=_0x7b7ac==null?void 0x0:_0x7b7ac[_0x47c183(0x122)])!=null?_0x1f3ba3:_0x3fda97[_0x47c183(0xeb)]()[_0x47c183(0xa9)](_0x41f328=>_0x41f328[_0x47c183(0xaf)]),_0x225b38=(_0x37f459=_0x42def0[_0x47c183(0x114)]()[_0x47c183(0x102)][_0x47c183(0x8f)](_0x2ad3d7))==null?void 0x0:_0x37f459[_0x47c183(0x8f)](_0x4f7107),{isChangeDataSource:_0x334c8a,config:_0x49306a,combine:_0x2bfa19,unCombine:_0x326fb3}=_0x7b7ac;if(_0x2bfa19){const _0xf103e3=[],_0x32e51d=[];_0xf103e3['push']({'id':y['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'ranges':_0x5853ec,'isSingle':!0x0}});const _0x49e208='g_'+_0x3991cb(0x6),_0x3a1d73=new _0x383241(),_0x599908=(_0x494b43=_0x42def0[_0x47c183(0x114)]()[_0x47c183(0x10f)][_0x47c183(0x8f)](_0x2ad3d7))==null?void 0x0:_0x494b43['get'](_0x4f7107),_0x309fe8=new Set([_0x49e208]),_0x2b50cc={};return _0x5853ec[_0x47c183(0xa0)](_0xe66713=>{const _0xcdab2c=_0x47c183;var _0x52483e,_0x41a4f6;const {startRow:_0x214c49,endRow:_0x655b3e,startColumn:_0x4e939f,endColumn:_0x21c3e4}=_0xe66713;for(let _0x56d7d6=_0x214c49;_0x56d7d6<=_0x655b3e;_0x56d7d6++)for(let _0x246305=_0x4e939f;_0x246305<=_0x21c3e4;_0x246305++){const _0x5f3575=(_0x52483e=_0x225b38==null?void 0x0:_0x225b38[_0xcdab2c(0x85)][_0xcdab2c(0xf9)](_0x56d7d6,_0x246305))==null?void 0x0:_0x52483e[_0xcdab2c(0x120)];if(_0x5f3575){_0x309fe8['add'](_0x5f3575);const _0x2502fe=_0x42def0[_0xcdab2c(0xe2)](_0x2ad3d7,_0x4f7107,_0x5f3575);_0x2502fe&&(_0x2b50cc[_0x5f3575]={'config':_0x343fc7[_0xcdab2c(0xce)](_0x2502fe[_0xcdab2c(0xb0)]),'sparklines':_0x343fc7[_0xcdab2c(0xce)](_0x2502fe[_0xcdab2c(0x79)][_0xcdab2c(0x121)]())});const _0x55c2f3=(_0x41a4f6=_0x599908==null?void 0x0:_0x599908['get'](_0x5f3575))==null?void 0x0:_0x41a4f6[_0xcdab2c(0x79)][_0xcdab2c(0xf9)](_0x56d7d6,_0x246305);_0x55c2f3&&_0x3a1d73['setValue'](_0x56d7d6,_0x246305,_0x55c2f3);}}}),_0xf103e3[_0x47c183(0xc0)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x49e208]:{'config':_0x343fc7[_0x47c183(0xce)](_0x49306a[_0x47c183(0xb0)]),'sparklines':_0x3a1d73['getMatrix']()}},'unitId':_0x2ad3d7,'subUnitId':_0x4f7107}}),_0x32e51d['push']({'id':y['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'isSingle':!0x1,'groupIds':Array[_0x47c183(0x12d)](_0x309fe8)}}),_0x32e51d['push']({'id':V['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'sparklineConfigMap':_0x2b50cc}}),_0x549c18(_0xf103e3,_0x857401),_0x216fe6['pushUndoRedo']({'unitID':_0x2ad3d7,'undoMutations':_0x32e51d,'redoMutations':_0xf103e3}),!0x0;}else{if(_0x326fb3){const _0x2d3ea4=[],_0x171b8d=[];_0x2d3ea4[_0x47c183(0xc0)]({'id':y['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'ranges':_0x5853ec,'isSingle':!0x0}});const _0x2fa6d9=(_0x17cc99=_0x42def0[_0x47c183(0x114)]()[_0x47c183(0x10f)]['get'](_0x2ad3d7))==null?void 0x0:_0x17cc99['get'](_0x4f7107),_0x210c08={},_0x48d4ed=new Set(),_0x506958={};return _0x5853ec[_0x47c183(0xa0)](_0x30ed55=>{const _0x568c99=_0x47c183;var _0x2a9212,_0x59e373;const {startRow:_0x59c4c7,endRow:_0x171a19,startColumn:_0x48e007,endColumn:_0x276e5f}=_0x30ed55;for(let _0x3ea524=_0x59c4c7;_0x3ea524<=_0x171a19;_0x3ea524++)for(let _0x363e6f=_0x48e007;_0x363e6f<=_0x276e5f;_0x363e6f++){const _0x3f3359=(_0x2a9212=_0x225b38==null?void 0x0:_0x225b38[_0x568c99(0x85)][_0x568c99(0xf9)](_0x3ea524,_0x363e6f))==null?void 0x0:_0x2a9212[_0x568c99(0x120)];if(_0x3f3359){const _0x4d32eb=new _0x383241(),_0x53128c='g_'+_0x3991cb(0x6);_0x48d4ed[_0x568c99(0x124)](_0x3f3359),_0x48d4ed[_0x568c99(0x124)](_0x53128c);const _0x391834=_0x42def0[_0x568c99(0xe2)](_0x2ad3d7,_0x4f7107,_0x3f3359);_0x391834&&(_0x506958[_0x3f3359]={'config':_0x343fc7[_0x568c99(0xce)](_0x391834[_0x568c99(0xb0)]),'sparklines':_0x343fc7[_0x568c99(0xce)](_0x391834[_0x568c99(0x79)][_0x568c99(0x121)]())});const _0x52060a=(_0x59e373=_0x2fa6d9==null?void 0x0:_0x2fa6d9['get'](_0x3f3359))==null?void 0x0:_0x59e373[_0x568c99(0x79)][_0x568c99(0xf9)](_0x3ea524,_0x363e6f);_0x52060a&&_0x4d32eb[_0x568c99(0x93)](_0x3ea524,_0x363e6f,_0x52060a),_0x210c08[_0x53128c]={'sparklines':_0x4d32eb[_0x568c99(0x9a)](),'config':_0x343fc7[_0x568c99(0xce)](_0x49306a['config'])};}}}),_0x2d3ea4['push']({'id':V['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'sparklineConfigMap':_0x210c08}}),_0x171b8d['push']({'id':y['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'isSingle':!0x1,'groupIds':Array['from'](_0x48d4ed)}}),_0x171b8d[_0x47c183(0xc0)]({'id':V['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'sparklineConfigMap':_0x506958}}),_0x549c18(_0x2d3ea4,_0x857401),_0x216fe6[_0x47c183(0xa6)]({'unitID':_0x2ad3d7,'undoMutations':_0x171b8d,'redoMutations':_0x2d3ea4}),!0x0;}}if(_0x334c8a){const _0x26273b=_0x7b7ac[_0x47c183(0x12f)];if(!_0x26273b)return!0x1;const {groupId:_0x38e5a9,sourceRanges:_0x5221c8,targetRanges:_0x56d9c6,resetType:_0x53292a,primary:_0x17aa0a}=_0x26273b,_0x13d77b=[],_0x292ee4=[];_0x13d77b[_0x47c183(0xc0)]({'id':y['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'ranges':_0x5853ec,'isSingle':!0x1,'groupIds':[_0x38e5a9]}}),_0x292ee4[_0x47c183(0xc0)]({'id':y['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'ranges':_0x5853ec,'isSingle':!0x1,'groupIds':[_0x38e5a9]}});let _0x3b9a86;_0x53292a===_0x47c183(0x83)?(_0x3b9a86=new _0x383241(_0x49306a['sparklines']['clone']()),_0x3b9a86[_0x47c183(0xc8)](_0x17aa0a['actualRow'],_0x17aa0a[_0x47c183(0x130)]),_0x3b9a86[_0x47c183(0x93)](_0x56d9c6[0x0][_0x47c183(0x89)],_0x56d9c6[0x0][_0x47c183(0xfe)],_0x5221c8[0x0])):_0x3b9a86=Fe(_0x5221c8,_0x56d9c6);const _0xc477f={'config':_0x343fc7[_0x47c183(0xce)](_0x49306a[_0x47c183(0xb0)]),'sparklines':_0x3b9a86[_0x47c183(0x9a)]()},_0x175ed5={'config':_0x343fc7[_0x47c183(0xce)](_0x49306a[_0x47c183(0xb0)]),'sparklines':_0x343fc7[_0x47c183(0xce)](_0x49306a['sparklines']['clone']())};_0x13d77b[_0x47c183(0xc0)]({'id':V['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'sparklineConfigMap':{[_0x38e5a9]:_0xc477f}}}),_0x292ee4['push']({'id':V['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'sparklineConfigMap':{[_0x38e5a9]:_0x175ed5}}}),_0x549c18(_0x13d77b,_0x857401),_0x216fe6[_0x47c183(0xa6)]({'unitID':_0x2ad3d7,'undoMutations':_0x292ee4,'redoMutations':_0x13d77b});}else{const _0x550ca5=[],_0xf5e91e=[],_0x5dd82d=new Set(),_0x3057a2={};_0x5853ec[_0x47c183(0xa0)](_0x1a50d6=>{const _0x3e4469=_0x47c183;var _0x77296f;const {startRow:_0x8f0dbc,endRow:_0x177bb5,startColumn:_0x5d504a,endColumn:_0x23bdac}=_0x1a50d6;for(let _0x8dac1=_0x8f0dbc;_0x8dac1<=_0x177bb5;_0x8dac1++)for(let _0x3546b4=_0x5d504a;_0x3546b4<=_0x23bdac;_0x3546b4++){const _0xe6c0a4=(_0x77296f=_0x225b38==null?void 0x0:_0x225b38[_0x3e4469(0x85)][_0x3e4469(0xf9)](_0x8dac1,_0x3546b4))==null?void 0x0:_0x77296f[_0x3e4469(0x120)];if(_0xe6c0a4){_0x5dd82d[_0x3e4469(0x124)](_0xe6c0a4);const _0x80ae8f=_0x42def0['getSparklineById'](_0x2ad3d7,_0x4f7107,_0xe6c0a4);_0x80ae8f&&(_0x3057a2[_0xe6c0a4]={'config':_0x343fc7['deepClone'](_0x80ae8f['config']),'sparklines':_0x343fc7[_0x3e4469(0xce)](_0x80ae8f[_0x3e4469(0x79)][_0x3e4469(0x121)]())});}}}),_0xf5e91e[_0x47c183(0xc0)]({'id':Oe['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'groupIds':Array[_0x47c183(0x12d)](_0x5dd82d),'config':{'config':_0x343fc7[_0x47c183(0xce)](_0x49306a[_0x47c183(0xb0)]),'sparklines':_0x49306a[_0x47c183(0x79)]['getMatrix']()}}}),_0x550ca5['push']({'id':y['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'isSingle':!0x1,'groupIds':Array[_0x47c183(0x12d)](_0x5dd82d)}}),_0x550ca5[_0x47c183(0xc0)]({'id':V['id'],'params':{'unitId':_0x2ad3d7,'subUnitId':_0x4f7107,'sparklineConfigMap':_0x3057a2}}),_0x549c18(_0xf5e91e,_0x857401),_0x216fe6['pushUndoRedo']({'unitID':_0x2ad3d7,'undoMutations':_0x550ca5,'redoMutations':_0xf5e91e});}return!0x0;}};var Ut=Object[_0x40ac0d(0xc5)],Pt=(_0x5f3235,_0x2185d2,_0xf07973,_0x3070c6)=>{const _0x83e268=_0x40ac0d;for(var _0x241442=_0x3070c6>0x1?void 0x0:_0x3070c6?Ut(_0x2185d2,_0xf07973):_0x2185d2,_0x51ec2a=_0x5f3235[_0x83e268(0xde)]-0x1,_0x30580a;_0x51ec2a>=0x0;_0x51ec2a--)(_0x30580a=_0x5f3235[_0x51ec2a])&&(_0x241442=_0x30580a(_0x241442)||_0x241442);return _0x241442;},ge=(_0x509975,_0x56c4b3)=>(_0x25c6de,_0x64f83c)=>_0x56c4b3(_0x25c6de,_0x64f83c,_0x509975);let Se=class extends _0x55cef7{constructor(_0x552bcb,_0x17e5d8,_0x5dc5b3,_0x47bf5f){const _0x38867f=_0x40ac0d;super(),this[_0x38867f(0x127)]=_0x552bcb,this[_0x38867f(0xd2)]=_0x17e5d8,this[_0x38867f(0x92)]=_0x5dc5b3,this[_0x38867f(0x9b)]=_0x47bf5f,this[_0x38867f(0xca)]();}[_0x40ac0d(0xca)](){const _0x547373=_0x40ac0d;this[_0x547373(0x113)](this[_0x547373(0xd2)]['interceptCommand']({'getMutations':_0x3a7c23=>{const _0x5f478c=_0x547373,_0x105d39=[],_0x49cdbd=[];if(_0x3a7c23['id']===_0xbf3617['id']){const _0x1398f2=_0x1e95f5(this[_0x5f478c(0x92)]);if(!_0x1398f2)return{'redos':_0x105d39,'undos':_0x49cdbd};const {unitId:_0x24355f,subUnitId:_0x8382b9,worksheet:_0x4122f1}=_0x1398f2,_0x12d2c4=this[_0x5f478c(0x9b)]['getCurrentSelections']()['map'](_0x321b03=>_0x321b03[_0x5f478c(0xaf)]),_0x2266f2=new Set(),_0x14e86f={},_0x562d4d={};_0x12d2c4[_0x5f478c(0xa0)](_0x335f68=>{const _0x402a52=_0x5f478c;_0x2bb2b8[_0x402a52(0x11f)](_0x335f68,(_0x4c8ac3,_0x2ede72)=>{const _0xbcd7dd=_0x402a52,_0x521275=this['_sparklineDataSourceModel'][_0xbcd7dd(0x78)](_0x24355f,_0x8382b9,_0x4c8ac3,_0x2ede72);if(_0x521275&&!_0x2266f2[_0xbcd7dd(0xb8)](_0x521275)){const _0x275e67=this[_0xbcd7dd(0x127)][_0xbcd7dd(0xe2)](_0x24355f,_0x8382b9,_0x521275);_0x275e67&&(_0x2266f2[_0xbcd7dd(0x124)](_0x521275),_0x14e86f[_0x521275]={'config':_0x343fc7[_0xbcd7dd(0xce)](_0x275e67[_0xbcd7dd(0xb0)]),'sparklines':_0x343fc7[_0xbcd7dd(0xce)](_0x275e67['sparklines'][_0xbcd7dd(0x121)]())},_0x562d4d[_0x521275]={'config':_0x343fc7[_0xbcd7dd(0xce)](_0x275e67['config']),'sparklines':_0x343fc7[_0xbcd7dd(0xce)](_0x275e67[_0xbcd7dd(0x79)]['clone']())});}});}),Object['values'](_0x562d4d)[_0x5f478c(0xa0)](_0x323365=>{const _0x65d597=_0x5f478c,_0x40799a=_0x323365[_0x65d597(0x79)];new _0x383241(_0x40799a)[_0x65d597(0x81)]((_0x1f31e2,_0x1fc5b6,_0x28f35d)=>{const _0x3c8c7c=_0x65d597;_0x12d2c4[_0x3c8c7c(0x10a)](_0xf6d87=>_0x482be5[_0x3c8c7c(0x99)](_0xf6d87,_0xb86f13(_0x1f31e2,_0x1fc5b6)))&&delete _0x40799a[_0x1f31e2][_0x1fc5b6];});}),_0x105d39['push']({'id':y['id'],'params':{'unitId':_0x24355f,'subUnitId':_0x8382b9,'groupIds':Array[_0x5f478c(0x12d)](_0x2266f2),'isSingle':!0x1}}),_0x105d39['push']({'id':V['id'],'params':{'unitId':_0x24355f,'subUnitId':_0x8382b9,'sparklineConfigMap':_0x562d4d}}),_0x49cdbd['push']({'id':y['id'],'params':{'unitId':_0x24355f,'subUnitId':_0x8382b9,'groupIds':Array[_0x5f478c(0x12d)](_0x2266f2),'isSingle':!0x1}}),_0x49cdbd[_0x5f478c(0xc0)]({'id':V['id'],'params':{'unitId':_0x24355f,'subUnitId':_0x8382b9,'sparklineConfigMap':_0x14e86f}});}return{'redos':_0x105d39,'undos':_0x49cdbd};}}));}};Se=Pt([ge(0x0,_0x219988(x)),ge(0x1,_0x219988(_0x39a411)),ge(0x2,_0x219988(_0x1f020b)),ge(0x3,_0x219988(_0x55d9bc))],Se);var Tt=Object[_0x40ac0d(0xc5)],$t=(_0x16c08c,_0x539be7,_0x2ea399,_0x45f783)=>{const _0x29bc83=_0x40ac0d;for(var _0x195d79=_0x45f783>0x1?void 0x0:_0x45f783?Tt(_0x539be7,_0x2ea399):_0x539be7,_0x437dba=_0x16c08c[_0x29bc83(0xde)]-0x1,_0x3343fd;_0x437dba>=0x0;_0x437dba--)(_0x3343fd=_0x16c08c[_0x437dba])&&(_0x195d79=_0x3343fd(_0x195d79)||_0x195d79);return _0x195d79;},Ge=(_0x44680e,_0xcaca16)=>(_0x3d56aa,_0x2eb246)=>_0xcaca16(_0x3d56aa,_0x2eb246,_0x44680e);let ke=class extends _0x55cef7{constructor(_0x46af4,_0x27ba51){const _0x2bf1bc=_0x40ac0d;super(),this['_sheetInterceptorService']=_0x46af4,this[_0x2bf1bc(0x127)]=_0x27ba51,this[_0x2bf1bc(0xda)]();}[_0x40ac0d(0xda)](){const _0x563551=_0x40ac0d;this[_0x563551(0x113)](this[_0x563551(0xd2)]['interceptCommand']({'getMutations':_0x3d7477=>{const _0x16ecfc=_0x563551,_0x1aeeea=[],_0x5a074a=[];if(_0x3d7477['id']===_0x48fc8a['id']){const _0xe341e2=_0x3d7477[_0x16ecfc(0xf6)];if(!_0xe341e2)return{'redos':_0x1aeeea,'undos':_0x5a074a};const {unitId:_0x4e4db9,subUnitId:_0x17db6f,targetSubUnitId:_0x1cbc9e}=_0xe341e2;if(!_0x4e4db9||!_0x17db6f||!_0x1cbc9e)return{'redos':_0x1aeeea,'undos':_0x5a074a};const _0x568f20=new Set(),_0x1d3e32={},_0x215150=this[_0x16ecfc(0x127)][_0x16ecfc(0xd1)](_0x4e4db9,_0x17db6f);if(!_0x215150)return{'redos':_0x1aeeea,'undos':_0x5a074a};for(const [_0x39b07e,_0x26b32e]of _0x215150){const _0x3374c7='g_'+_0x3991cb(0x6);_0x568f20[_0x16ecfc(0x124)](_0x39b07e),_0x1d3e32[_0x3374c7]={'config':_0x343fc7['deepClone'](_0x26b32e['config']),'sparklines':_0x343fc7['deepClone'](_0x26b32e['sparklines'][_0x16ecfc(0x121)]())};}_0x568f20['size']&&(_0x5a074a[_0x16ecfc(0xc0)]({'id':y['id'],'params':{'unitId':_0x4e4db9,'subUnitId':_0x1cbc9e,'groupIds':Array[_0x16ecfc(0x12d)](_0x568f20),'isSingle':!0x1}}),_0x1aeeea[_0x16ecfc(0xc0)]({'id':V['id'],'params':{'unitId':_0x4e4db9,'subUnitId':_0x1cbc9e,'sparklineConfigMap':_0x1d3e32}}));}return{'redos':_0x1aeeea,'undos':_0x5a074a};}}));}};ke=$t([Ge(0x0,_0x219988(_0x39a411)),Ge(0x1,_0x219988(x))],ke);var jt=Object[_0x40ac0d(0xc5)],Lt=(_0x404326,_0x4239a6,_0xcadceb,_0x4b3093)=>{const _0x426eca=_0x40ac0d;for(var _0x1dedc4=_0x4b3093>0x1?void 0x0:_0x4b3093?jt(_0x4239a6,_0xcadceb):_0x4239a6,_0x2aa268=_0x404326[_0x426eca(0xde)]-0x1,_0x18e3ff;_0x2aa268>=0x0;_0x2aa268--)(_0x18e3ff=_0x404326[_0x2aa268])&&(_0x1dedc4=_0x18e3ff(_0x1dedc4)||_0x1dedc4);return _0x1dedc4;},be=(_0x50a700,_0x19650e)=>(_0x58dc59,_0x1eb9b0)=>_0x19650e(_0x58dc59,_0x1eb9b0,_0x50a700);let me=class extends _0x55cef7{constructor(_0x5d022c,_0x337eef,_0x262c54){const _0x4431c8=_0x40ac0d;super(),this[_0x4431c8(0x100)]=_0x5d022c,this[_0x4431c8(0x127)]=_0x337eef,this[_0x4431c8(0x76)]=_0x262c54,this['_initDataChangeListener'](),this[_0x4431c8(0xa4)]();}[_0x40ac0d(0x123)](){const _0xe3fbf4=_0x40ac0d;this[_0xe3fbf4(0x113)](this['_commandService'][_0xe3fbf4(0xbe)](_0x66be5b=>{const _0x3b3c50=_0xe3fbf4;if(_0x66be5b['id']===_0x546c68['id']){const _0xd8d79f=_0x66be5b[_0x3b3c50(0xf6)],{cellValue:_0x4012b5,unitId:_0x209569,subUnitId:_0x444094}=_0xd8d79f,_0x4ba619=new _0x383241(_0x4012b5),_0x134ef0=new Set(),_0x22a2b7=this[_0x3b3c50(0x127)][_0x3b3c50(0xd1)](_0x209569,_0x444094);if(!_0x22a2b7)return;const _0x4ed0fc=Array['from'](_0x22a2b7);_0x4ba619[_0x3b3c50(0x81)]((_0x17d75b,_0x4516a0,_0x287719)=>{const _0x5d5dcb=_0x3b3c50,_0xbe0948=_0xb86f13(_0x17d75b,_0x4516a0);for(let _0x21e035=0x0;_0x21e035<_0x4ed0fc[_0x5d5dcb(0xde)];_0x21e035++){const [_0x4aedc5,_0x5516a4]=_0x4ed0fc[_0x21e035],_0x1b8fc7=_0x134ef0[_0x5d5dcb(0xb8)](_0x4aedc5);_0x1b8fc7||_0x5516a4[_0x5d5dcb(0x79)]['forValue']((_0x1f45b8,_0x4b1f43,_0x4a55c0)=>{const _0xd38d59=_0x5d5dcb,_0x1e4c79=_0x4a55c0;if(_0x1e4c79&&!_0x1b8fc7&&_0x482be5[_0xd38d59(0x99)](_0xbe0948,_0x1e4c79))return _0x134ef0[_0xd38d59(0x124)](_0x4aedc5),!0x0;});}}),_0x134ef0[_0x3b3c50(0xa0)](_0x1d9853=>{const _0x4a72a6=_0x3b3c50;this['_sparklineDataSourceModel'][_0x4a72a6(0x11e)](_0x209569,_0x444094,_0x1d9853),this[_0x4a72a6(0x127)][_0x4a72a6(0x7e)](_0x209569,_0x444094,_0x1d9853);});}else{if(_0x66be5b['id']===_0x2d03c9['id']){const _0x53062c=_0x66be5b[_0x3b3c50(0xf6)],{range:_0x3c11e7,unitId:_0x31b97f,subUnitId:_0x531c6a}=_0x53062c,_0x48fdb6=new Set(),_0x5e8626=this[_0x3b3c50(0x127)][_0x3b3c50(0xd1)](_0x31b97f,_0x531c6a);if(!_0x5e8626)return;const _0x101698=Array[_0x3b3c50(0x12d)](_0x5e8626);for(let _0x18745a=0x0;_0x18745a<_0x101698[_0x3b3c50(0xde)];_0x18745a++){const [_0x4b5008,_0x4839a2]=_0x101698[_0x18745a],_0x3d3d18=_0x48fdb6['has'](_0x4b5008);_0x3d3d18||_0x4839a2[_0x3b3c50(0x79)]['forValue']((_0x3aa2dd,_0x5881f1,_0x16a28c)=>{const _0x180883=_0x3b3c50,_0x8b674d=_0x16a28c;if(_0x8b674d&&!_0x3d3d18&&_0x482be5[_0x180883(0x99)](_0x3c11e7,_0x8b674d))return _0x48fdb6['add'](_0x4b5008),!0x0;});}_0x48fdb6['forEach'](_0x4daea2=>{const _0x399bbe=_0x3b3c50;this[_0x399bbe(0x127)][_0x399bbe(0x11e)](_0x31b97f,_0x531c6a,_0x4daea2),this[_0x399bbe(0x127)][_0x399bbe(0x7e)](_0x31b97f,_0x531c6a,_0x4daea2);});}}}));}['_initExclusiveRangeChange'](){const _0x55d7a9=_0x40ac0d;this[_0x55d7a9(0x113)](this['_exclusiveRangeService'][_0x55d7a9(0x87)]['subscribe'](_0x3251e0=>{const _0x88d79b=_0x55d7a9,{unitId:_0x53bf05,subUnitId:_0x27761c,ranges:_0x5be005}=_0x3251e0,_0x36e8c4=this[_0x88d79b(0x127)][_0x88d79b(0xd1)](_0x53bf05,_0x27761c);if(!_0x36e8c4)return;const _0x48ffae=Array[_0x88d79b(0x12d)](_0x36e8c4),_0x11f696=new Set();for(let _0x2102fa=0x0;_0x2102fa<_0x48ffae[_0x88d79b(0xde)];_0x2102fa++){const [_0x4fa325,_0x462361]=_0x48ffae[_0x2102fa],_0x31663e=_0x11f696[_0x88d79b(0xb8)](_0x4fa325);_0x31663e||_0x462361[_0x88d79b(0x79)][_0x88d79b(0x81)]((_0x2999b8,_0x7e58ba,_0x5b9265)=>{const _0x175bbd=_0x88d79b,_0x43aacc=_0x5b9265;if(_0x43aacc&&!_0x31663e){for(const _0x17543d of _0x5be005)if(_0x482be5[_0x175bbd(0x99)](_0x17543d,_0x43aacc)){_0x11f696[_0x175bbd(0x124)](_0x4fa325);break;}}});}_0x11f696['forEach'](_0x5b21ed=>{const _0x2d930a=_0x88d79b;this[_0x2d930a(0x127)][_0x2d930a(0x11e)](_0x53bf05,_0x27761c,_0x5b21ed),this[_0x2d930a(0x127)][_0x2d930a(0x7e)](_0x53bf05,_0x27761c,_0x5b21ed);});}));}};me=Lt([be(0x0,_0x219988(_0x1a4d08)),be(0x1,_0x219988(x)),be(0x2,_0x219988(_0x462b29))],me);var Gt=Object[_0x40ac0d(0xc5)],Wt=(_0x5de006,_0x541980,_0x1bf4d4,_0x5b7812)=>{for(var _0xcbb9a6=_0x5b7812>0x1?void 0x0:_0x5b7812?Gt(_0x541980,_0x1bf4d4):_0x541980,_0x54569d=_0x5de006['length']-0x1,_0x3cf03b;_0x54569d>=0x0;_0x54569d--)(_0x3cf03b=_0x5de006[_0x54569d])&&(_0xcbb9a6=_0x3cf03b(_0xcbb9a6)||_0xcbb9a6);return _0xcbb9a6;},We=(_0x54b1dc,_0x1f1a71)=>(_0x45a57f,_0x509382)=>_0x1f1a71(_0x45a57f,_0x509382,_0x54b1dc);let Ce=class extends _0x55cef7{constructor(_0x5cb806,_0x53bfe4){const _0x55369c=_0x40ac0d;super(),this['_commandService']=_0x5cb806,this[_0x55369c(0x127)]=_0x53bfe4,this[_0x55369c(0xa8)]();}[_0x40ac0d(0xa8)](){const _0x25c78e=_0x40ac0d;this[_0x25c78e(0x100)][_0x25c78e(0xbe)](_0x4fd172=>{const _0x34f591=_0x25c78e;if(_0x4fd172['id']===_0x33bb48['id']||_0x4fd172['id']===_0x432312['id']||_0x4fd172['id']===_0x341561['id']||_0x4fd172['id']===_0x46e140['id']){const _0x19cbf4=_0x4fd172[_0x34f591(0xf6)],{ranges:_0x46e5c2,unitId:_0x5a8cf8,subUnitId:_0x269c15}=_0x19cbf4,_0x31ea5a=new Set(),_0x37a94c=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x5a8cf8,_0x269c15);if(!_0x37a94c)return;const _0x2e95e5=Array[_0x34f591(0x12d)](_0x37a94c);_0x46e5c2[_0x34f591(0xa0)](_0x7f8771=>{const _0x3c8ce6=_0x34f591;_0x2bb2b8[_0x3c8ce6(0x11f)](_0x7f8771,(_0xd6365d,_0x26472c)=>{const _0x9f8fe3=_0x3c8ce6,_0x247073=_0xb86f13(_0xd6365d,_0x26472c);for(let _0x19ceef=0x0;_0x19ceef<_0x2e95e5[_0x9f8fe3(0xde)];_0x19ceef++){const [_0x3f0e70,_0xe6c303]=_0x2e95e5[_0x19ceef],_0x586303=_0x31ea5a[_0x9f8fe3(0xb8)](_0x3f0e70);_0x586303||_0xe6c303[_0x9f8fe3(0x79)][_0x9f8fe3(0x81)]((_0x400e26,_0x4a7b5a,_0x26a5df)=>{const _0x1f16e2=_0x9f8fe3,_0x13d7ce=_0x26a5df;if(_0x13d7ce&&!_0x586303&&_0x482be5[_0x1f16e2(0x99)](_0x247073,_0x13d7ce))return _0x31ea5a[_0x1f16e2(0x124)](_0x3f0e70),!0x0;});}});}),_0x31ea5a[_0x34f591(0xa0)](_0xb8000c=>{const _0x436fd6=_0x34f591;this[_0x436fd6(0x127)][_0x436fd6(0x11e)](_0x5a8cf8,_0x269c15,_0xb8000c),this[_0x436fd6(0x127)][_0x436fd6(0x7e)](_0x5a8cf8,_0x269c15,_0xb8000c);});}});}};Ce=Wt([We(0x0,_0x219988(_0x1a4d08)),We(0x1,_0x219988(x))],Ce);var Bt=Object[_0x40ac0d(0xc5)],Ht=(_0x3cc209,_0x2e710d,_0x30585e,_0xd68ba1)=>{for(var _0x1a7880=_0xd68ba1>0x1?void 0x0:_0xd68ba1?Bt(_0x2e710d,_0x30585e):_0x2e710d,_0x42dd24=_0x3cc209['length']-0x1,_0x36308b;_0x42dd24>=0x0;_0x42dd24--)(_0x36308b=_0x3cc209[_0x42dd24])&&(_0x1a7880=_0x36308b(_0x1a7880)||_0x1a7880);return _0x1a7880;},De=(_0x3fd57f,_0x6ac531)=>(_0x146f58,_0x505d5d)=>_0x6ac531(_0x146f58,_0x505d5d,_0x3fd57f);let _e=class extends _0x55cef7{constructor(_0x4cfdea,_0x21bb5f,_0x3ce867){const _0x1db886=_0x40ac0d;super(),this[_0x1db886(0x100)]=_0x4cfdea,this[_0x1db886(0xd2)]=_0x21bb5f,this[_0x1db886(0x127)]=_0x3ce867,this[_0x1db886(0xb4)]();}[_0x40ac0d(0xb4)](){const _0x420925=_0x40ac0d;this[_0x420925(0x113)](this[_0x420925(0xd2)]['interceptCommand']({'getMutations':_0x2fb4b2=>{const _0x19f51a=_0x420925,_0x45a36a=[],_0xc4b1fe=[];if(_0x2fb4b2['id']===_0x13538a['id']){const _0x14e4b3=_0x2fb4b2['params'];if(!_0x14e4b3)return{'redos':_0x45a36a,'undos':_0xc4b1fe};const {unitId:_0x4aa0ba,subUnitId:_0x2f5591,ranges:_0x1d7aed}=_0x14e4b3,_0x32b3fa=this[_0x19f51a(0x127)]['getSubUnitSparkline'](_0x4aa0ba,_0x2f5591);if(!_0x32b3fa)return{'redos':_0x45a36a,'undos':_0xc4b1fe};const _0x5843b4={},_0x327851={},_0x58b478=new Set();_0x1d7aed[_0x19f51a(0xa0)](_0x1236e5=>{const _0xe1f420=_0x19f51a,_0x2354f2=_0x1236e5['startRow'],_0x2c2677=_0x1236e5[_0xe1f420(0xfe)];_0x2bb2b8['foreach'](_0x1236e5,(_0x251ab0,_0x1e036d)=>{const _0x52419e=_0xe1f420,_0x24b22a=this[_0x52419e(0x127)][_0x52419e(0x78)](_0x4aa0ba,_0x2f5591,_0x251ab0,_0x1e036d);if(_0x24b22a&&!(_0x251ab0===_0x2354f2&&_0x1e036d===_0x2c2677)){const _0x3747a9=this[_0x52419e(0x127)][_0x52419e(0xe2)](_0x4aa0ba,_0x2f5591,_0x24b22a);if(_0x3747a9){_0x58b478[_0x52419e(0x124)](_0x24b22a);let _0x5ef1b3=_0x5843b4[_0x24b22a];_0x5ef1b3||(_0x5ef1b3={'config':_0x343fc7[_0x52419e(0xce)](_0x3747a9[_0x52419e(0xb0)]),'sparklines':new _0x383241(_0x3747a9[_0x52419e(0x79)][_0x52419e(0x121)]())},_0x5843b4[_0x24b22a]=_0x5ef1b3),_0x5ef1b3[_0x52419e(0x79)][_0x52419e(0xc8)](_0x251ab0,_0x1e036d),_0x327851[_0x24b22a]={'config':_0x343fc7[_0x52419e(0xce)](_0x3747a9[_0x52419e(0xb0)]),'sparklines':_0x343fc7[_0x52419e(0xce)](_0x3747a9[_0x52419e(0x79)]['clone']())};}}});});for(const [_0x53bb14,_0x271786]of _0x32b3fa){const _0x2e33e8=_0x271786['sparklines'];_0x2e33e8[_0x19f51a(0x81)]((_0x47dc6b,_0x2fea2c,_0x440220)=>{const _0x12ceaa=_0x19f51a;for(let _0x454da6=0x0;_0x454da6<_0x1d7aed[_0x12ceaa(0xde)];_0x454da6++){const _0x174f99=_0x1d7aed[_0x454da6];if(_0x482be5[_0x12ceaa(0x88)](_0x174f99,_0x440220)){_0x58b478[_0x12ceaa(0x124)](_0x53bb14);let _0x20b25d=_0x5843b4[_0x53bb14];_0x20b25d||(_0x20b25d={'config':_0x343fc7['deepClone'](_0x271786[_0x12ceaa(0xb0)]),'sparklines':new _0x383241(_0x2e33e8['clone']())},_0x5843b4[_0x53bb14]=_0x20b25d),_0x20b25d[_0x12ceaa(0x79)][_0x12ceaa(0xc8)](_0x47dc6b,_0x2fea2c),_0x327851[_0x53bb14]||(_0x327851[_0x53bb14]={'config':_0x343fc7['deepClone'](_0x271786[_0x12ceaa(0xb0)]),'sparklines':_0x343fc7['deepClone'](_0x2e33e8[_0x12ceaa(0x121)]())});}}});}const _0x5fe171={};Object['entries'](_0x5843b4)[_0x19f51a(0xa0)](([_0x1de5cd,_0x3b119b])=>{const _0x17c7fd=_0x19f51a;_0x3b119b[_0x17c7fd(0x79)][_0x17c7fd(0x95)]()&&(_0x5fe171[_0x1de5cd]={'config':_0x3b119b[_0x17c7fd(0xb0)],'sparklines':_0x3b119b[_0x17c7fd(0x79)]['clone']()});}),_0x58b478['size']&&(_0x45a36a[_0x19f51a(0xc0)]({'id':y['id'],'params':{'unitId':_0x4aa0ba,'subUnitId':_0x2f5591,'groupIds':Array[_0x19f51a(0x12d)](_0x58b478),'isSingle':!0x1}}),_0xc4b1fe[_0x19f51a(0xc0)]({'id':y['id'],'params':{'unitId':_0x4aa0ba,'subUnitId':_0x2f5591,'groupIds':Array[_0x19f51a(0x12d)](_0x58b478),'isSingle':!0x1}}),_0x45a36a['push']({'id':V['id'],'params':{'unitId':_0x4aa0ba,'subUnitId':_0x2f5591,'sparklineConfigMap':_0x5fe171}}),_0xc4b1fe['push']({'id':V['id'],'params':{'unitId':_0x4aa0ba,'subUnitId':_0x2f5591,'sparklineConfigMap':_0x327851}}));}return{'redos':_0x45a36a,'undos':_0xc4b1fe};}}));}};_e=Ht([De(0x0,_0x219988(_0x1a4d08)),De(0x1,_0x219988(_0x39a411)),De(0x2,_0x219988(x))],_e);var Ft=Object[_0x40ac0d(0xc5)],Kt=(_0x31c02d,_0x5caa9c,_0x28d9fb,_0x300e0c)=>{const _0x3b5b64=_0x40ac0d;for(var _0x169155=_0x300e0c>0x1?void 0x0:_0x300e0c?Ft(_0x5caa9c,_0x28d9fb):_0x5caa9c,_0x115329=_0x31c02d[_0x3b5b64(0xde)]-0x1,_0x2c453f;_0x115329>=0x0;_0x115329--)(_0x2c453f=_0x31c02d[_0x115329])&&(_0x169155=_0x2c453f(_0x169155)||_0x169155);return _0x169155;},ue=(_0x5790fd,_0x374932)=>(_0x4a8e1a,_0x5593b9)=>_0x374932(_0x4a8e1a,_0x5593b9,_0x5790fd);let Me=class extends _0x55cef7{constructor(_0x47ec98,_0x556483,_0x275f32,_0xe9a594,_0x16ccd9){const _0x59db63=_0x40ac0d;super(),se(this,_0x59db63(0xcb),new _0x49893f()),(this[_0x59db63(0x100)]=_0x47ec98,this['_sheetInterceptorService']=_0x556483,this['_refRangeService']=_0x275f32,this['_univerInstanceService']=_0xe9a594,this['_sparklineDataSourceModel']=_0x16ccd9,this[_0x59db63(0xe4)](),this[_0x59db63(0xf7)]());}[_0x40ac0d(0xe4)](){const _0xa6b142=_0x40ac0d,_0x26da99=(_0xd83f61,_0x4c66f7)=>{const _0x2e7061=_0x557a,_0x565f5d=this['_univerInstanceService'][_0x2e7061(0xcf)](_0x3880d7[_0x2e7061(0xb2)]);if(!_0x565f5d||!(_0x565f5d==null?void 0x0:_0x565f5d['getSheetBySheetId'](_0x4c66f7)))return;this[_0x2e7061(0xcb)][_0x2e7061(0x10b)]();const _0x28ce9a=_0x15e9c9=>this[_0x2e7061(0x10c)](_0x15e9c9,_0xd83f61,_0x4c66f7),_0xc1de7b=[],_0x2a58b7=this[_0x2e7061(0x127)][_0x2e7061(0xd1)](_0xd83f61,_0x4c66f7);if(_0x2a58b7){for(const [_0xd9a768,_0x2f2af8]of _0x2a58b7)_0x2f2af8['sparklines'][_0x2e7061(0x81)]((_0xb20c47,_0x349f1e,_0x1f61e1)=>{const _0x379f40=_0x2e7061,_0x426b6e=_0xb86f13(_0xb20c47,_0x349f1e);_0xc1de7b[_0x379f40(0xc0)](_0x426b6e);});_0xc1de7b['forEach'](_0x3050a6=>{const _0x2f0a3e=_0x2e7061;this[_0x2f0a3e(0xcb)][_0x2f0a3e(0x124)](this[_0x2f0a3e(0xb7)][_0x2f0a3e(0xe5)](_0x3050a6,_0x28ce9a,_0xd83f61,_0x4c66f7));});}};this[_0xa6b142(0x113)](this[_0xa6b142(0x100)][_0xa6b142(0xbe)](_0x3e2541=>{const _0x2f7859=_0xa6b142;if(_0x3e2541['id']===_0x59c5eb['id']){const _0x2fb3bc=_0x3e2541[_0x2f7859(0xf6)],_0x1b302f=_0x2fb3bc[_0x2f7859(0x10d)],_0x3a26fe=_0x2fb3bc['unitId'];if(!_0x1b302f||!_0x3a26fe)return;_0x26da99(_0x3a26fe,_0x1b302f);}if(_0x3e2541['id']===Oe['id']||_0x3e2541['id']===V['id']){const _0x338f9a=_0x3e2541[_0x2f7859(0xf6)],_0x2f7dea=_0x338f9a[_0x2f7859(0x10d)],_0x28bca4=_0x338f9a[_0x2f7859(0xbd)];if(!_0x2f7dea||!_0x28bca4)return;_0x26da99(_0x28bca4,_0x2f7dea);}}));}[_0x40ac0d(0x10c)](_0x364b26,_0xdfc93b,_0x58ef3b){const _0x51a0bb=_0x40ac0d;switch(_0x364b26['id']){case _0x2394c2['id']:return this['_getRefRangeMutationsByDeleteCols'](_0x364b26['params'],_0xdfc93b,_0x58ef3b);case _0x2eabf7['id']:return this[_0x51a0bb(0xfd)](_0x364b26['params'],_0xdfc93b,_0x58ef3b);}return{'redos':[],'undos':[]};}[_0x40ac0d(0xfd)](_0x12262e,_0xf1f866,_0x40a5d0){const _0x46b765=_0x40ac0d;var _0x392e3d,_0x4f05d8;const {range:_0x581612}=_0x12262e,_0x486170=new Set(),_0x5ec1e2={},_0x437162={},_0x2f79a1=[],_0x491b78=[],_0x30cf8e=[],_0xc7e62c=[];if(!_0x1e95f5(this[_0x46b765(0x92)],{'unitId':_0xf1f866,'subUnitId':_0x40a5d0}))return{'redos':_0x491b78,'undos':_0x2f79a1};const _0x2cfcaf=this[_0x46b765(0x127)][_0x46b765(0xd1)](_0xf1f866,_0x40a5d0);if(!_0x2cfcaf)return{'redos':_0x491b78,'undos':_0x2f79a1};if(!((_0x4f05d8=(_0x392e3d=this[_0x46b765(0x127)]['getSparklineCache']()[_0x46b765(0x102)]['get'](_0xf1f866))==null?void 0x0:_0x392e3d[_0x46b765(0x8f)](_0x40a5d0))==null?void 0x0:_0x4f05d8[_0x46b765(0x85)]))return{'redos':_0x491b78,'undos':_0x2f79a1};for(const [_0x3438fb,_0x5b2f30]of _0x2cfcaf){const _0x3d0948=_0x5b2f30[_0x46b765(0x79)];_0x3d0948[_0x46b765(0x81)]((_0x42ec2f,_0x2eeef4,_0x7ad5d3)=>{const _0x4c469a=_0x46b765;if(_0x482be5[_0x4c469a(0x99)](_0x581612,_0x7ad5d3)){_0x486170[_0x4c469a(0x124)](_0x3438fb);let _0x1dd1ab=_0x437162[_0x3438fb];_0x1dd1ab||(_0x1dd1ab={'config':_0x5b2f30['config'],'sparklines':_0x5b2f30['sparklines']['clone']()},_0x437162[_0x3438fb]=_0x1dd1ab);let _0x579947=_0x5ec1e2[_0x3438fb];_0x579947||(_0x579947={'config':_0x5b2f30[_0x4c469a(0xb0)],'sparklines':new _0x383241(_0x5b2f30[_0x4c469a(0x79)][_0x4c469a(0x121)]())},_0x5ec1e2[_0x3438fb]=_0x579947);const _0x14a27a=_0x29f3ab(_0x7ad5d3,{'id':_0x4ab564['id'],'params':_0x12262e});_0x14a27a?_0x579947[_0x4c469a(0x79)][_0x4c469a(0x93)](_0x42ec2f,_0x2eeef4,_0x14a27a):_0x579947[_0x4c469a(0x79)]['setValue'](_0x42ec2f,_0x2eeef4,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xba1188['NORMAL']});}}),_0x3d0948['forValue']((_0x28c3c7,_0x5a95ea,_0x18f0bd)=>{const _0x26ae28=_0x46b765;if(_0x28c3c7<=_0x581612[_0x26ae28(0x10e)]&&_0x28c3c7>=_0x581612[_0x26ae28(0x89)]){_0x486170['add'](_0x3438fb);let _0x5e089a=_0x437162[_0x3438fb];_0x5e089a||(_0x5e089a={'config':_0x5b2f30['config'],'sparklines':_0x5b2f30[_0x26ae28(0x79)]['clone']()},_0x437162[_0x3438fb]=_0x5e089a);let _0x57d828=_0x5ec1e2[_0x3438fb];_0x57d828||(_0x57d828={'config':_0x5b2f30[_0x26ae28(0xb0)],'sparklines':new _0x383241(_0x5b2f30[_0x26ae28(0x79)][_0x26ae28(0x121)]())},_0x5ec1e2[_0x3438fb]=_0x57d828);}});}_0xc7e62c['push']({'id':y['id'],'params':{'unitId':_0xf1f866,'subUnitId':_0x40a5d0,'groupIds':Array['from'](_0x486170),'isSingle':!0x1}}),_0x30cf8e[_0x46b765(0xc0)]({'id':y['id'],'params':{'unitId':_0xf1f866,'subUnitId':_0x40a5d0,'groupIds':Array['from'](_0x486170),'isSingle':!0x1}});const _0x1c2d9d={};let _0x128133=!0x1;return Object[_0x46b765(0xdc)](_0x5ec1e2)[_0x46b765(0xa0)](([_0x2494d9,_0x2c5ee6])=>{const _0x5072ff=_0x46b765;_0x2c5ee6[_0x5072ff(0x79)][_0x5072ff(0x95)]()&&(_0x128133=!0x0,_0x2c5ee6[_0x5072ff(0x79)][_0x5072ff(0x11b)](_0x581612[_0x5072ff(0x89)],_0x581612['endRow']-_0x581612[_0x5072ff(0x89)]+0x1),_0x1c2d9d[_0x2494d9]={'config':_0x2c5ee6['config'],'sparklines':_0x2c5ee6['sparklines'][_0x5072ff(0x121)]()});}),_0x128133&&_0x491b78['push']({'id':V['id'],'params':{'unitId':_0xf1f866,'subUnitId':_0x40a5d0,'sparklineConfigMap':_0x1c2d9d}}),_0x2f79a1[_0x46b765(0xc0)]({'id':V['id'],'params':{'unitId':_0xf1f866,'subUnitId':_0x40a5d0,'sparklineConfigMap':_0x437162}}),{'redos':_0x491b78,'undos':_0x2f79a1,'preRedos':_0x30cf8e,'preUndos':_0xc7e62c};}[_0x40ac0d(0xed)](_0x27729a,_0x466273,_0x438936){const _0x2e1911=_0x40ac0d;var _0x4ece35,_0x55d740;const {range:_0x358a9a}=_0x27729a,_0x2ff170=new Set(),_0x2b4224={},_0x512e76={},_0x5e7e93=[],_0x4d1bd8=[],_0x792c58=[],_0x20764a=[];if(!_0x1e95f5(this[_0x2e1911(0x92)],{'unitId':_0x466273,'subUnitId':_0x438936}))return{'redos':_0x4d1bd8,'undos':_0x5e7e93};const _0xa58316=this[_0x2e1911(0x127)][_0x2e1911(0xd1)](_0x466273,_0x438936);if(!_0xa58316)return{'redos':_0x4d1bd8,'undos':_0x5e7e93};if(!((_0x55d740=(_0x4ece35=this[_0x2e1911(0x127)]['getSparklineCache']()['sparklineAnchorMap']['get'](_0x466273))==null?void 0x0:_0x4ece35['get'](_0x438936))==null?void 0x0:_0x55d740[_0x2e1911(0x85)]))return{'redos':_0x4d1bd8,'undos':_0x5e7e93};for(const [_0x573120,_0x5365d5]of _0xa58316){const _0x48a840=_0x5365d5[_0x2e1911(0x79)];_0x48a840[_0x2e1911(0x81)]((_0x585239,_0x106542,_0x63fc86)=>{const _0x5167bc=_0x2e1911;if(_0x482be5[_0x5167bc(0x99)](_0x358a9a,_0x63fc86)){_0x2ff170[_0x5167bc(0x124)](_0x573120);let _0x5e2c4d=_0x512e76[_0x573120];_0x5e2c4d||(_0x5e2c4d={'config':_0x5365d5[_0x5167bc(0xb0)],'sparklines':_0x5365d5[_0x5167bc(0x79)][_0x5167bc(0x121)]()},_0x512e76[_0x573120]=_0x5e2c4d);let _0x416fc5=_0x2b4224[_0x573120];_0x416fc5||(_0x416fc5={'config':_0x5365d5[_0x5167bc(0xb0)],'sparklines':new _0x383241(_0x5365d5[_0x5167bc(0x79)]['clone']())},_0x2b4224[_0x573120]=_0x416fc5);const _0x5e189b=_0x29f3ab(_0x63fc86,{'id':_0x11bb71['id'],'params':_0x27729a});_0x5e189b?_0x416fc5['sparklines'][_0x5167bc(0x93)](_0x585239,_0x106542,_0x5e189b):_0x416fc5[_0x5167bc(0x79)]['setValue'](_0x585239,_0x106542,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xba1188[_0x5167bc(0xa5)]});}}),_0x48a840[_0x2e1911(0x81)]((_0x64a14,_0x470cda,_0x3101bd)=>{const _0x2c5130=_0x2e1911;if(_0x470cda<=_0x358a9a['endColumn']&&_0x470cda>=_0x358a9a['startColumn']){_0x2ff170[_0x2c5130(0x124)](_0x573120);let _0x3601a4=_0x512e76[_0x573120];_0x3601a4||(_0x3601a4={'config':_0x5365d5[_0x2c5130(0xb0)],'sparklines':_0x5365d5[_0x2c5130(0x79)][_0x2c5130(0x121)]()},_0x512e76[_0x573120]=_0x3601a4);let _0x3f85ad=_0x2b4224[_0x573120];_0x3f85ad||(_0x3f85ad={'config':_0x5365d5['config'],'sparklines':new _0x383241(_0x5365d5[_0x2c5130(0x79)][_0x2c5130(0x121)]())},_0x2b4224[_0x573120]=_0x3f85ad);}});}_0x20764a[_0x2e1911(0xc0)]({'id':y['id'],'params':{'unitId':_0x466273,'subUnitId':_0x438936,'groupIds':Array[_0x2e1911(0x12d)](_0x2ff170),'isSingle':!0x1}}),_0x792c58[_0x2e1911(0xc0)]({'id':y['id'],'params':{'unitId':_0x466273,'subUnitId':_0x438936,'groupIds':Array['from'](_0x2ff170),'isSingle':!0x1}});const _0xa6f43c={};let _0x2921a9=!0x1;return Object[_0x2e1911(0xdc)](_0x2b4224)['forEach'](([_0x281d90,_0x2ac374])=>{const _0x250cd4=_0x2e1911;_0x2ac374['sparklines'][_0x250cd4(0x95)]()&&(_0x2921a9=!0x0,_0x2ac374['sparklines'][_0x250cd4(0xc6)](_0x358a9a[_0x250cd4(0xfe)],_0x358a9a[_0x250cd4(0xe0)]-_0x358a9a[_0x250cd4(0xfe)]+0x1),_0xa6f43c[_0x281d90]={'config':_0x2ac374[_0x250cd4(0xb0)],'sparklines':_0x2ac374[_0x250cd4(0x79)]['clone']()});}),_0x2921a9&&_0x4d1bd8[_0x2e1911(0xc0)]({'id':V['id'],'params':{'unitId':_0x466273,'subUnitId':_0x438936,'sparklineConfigMap':_0xa6f43c}}),_0x5e7e93['push']({'id':V['id'],'params':{'unitId':_0x466273,'subUnitId':_0x438936,'sparklineConfigMap':_0x512e76}}),{'redos':_0x4d1bd8,'undos':_0x5e7e93,'preRedos':_0x792c58,'preUndos':_0x20764a};}['_initCorrectRangeWithSparkline'](){const _0x62df7c=_0x40ac0d;this[_0x62df7c(0x113)](this[_0x62df7c(0x100)][_0x62df7c(0xbe)](_0x3d1459=>{const _0x5b5caf=_0x62df7c;if(_0x3d1459['id']===_0x318d7a['id']){const _0x155637=_0x3d1459['params'],{unitId:_0x41b8a8,subUnitId:_0x2a999f,range:_0x1b0028}=_0x155637,_0xa5abb6=_0x1b0028[_0x5b5caf(0xfe)],_0x5943ca=_0x1b0028[_0x5b5caf(0xe0)]-_0x1b0028[_0x5b5caf(0xfe)]+0x1,_0x519cd6=this[_0x5b5caf(0x127)][_0x5b5caf(0xd1)](_0x41b8a8,_0x2a999f);if(!_0x519cd6)return;for(const [_0x1f79f5,_0x1cedb2]of _0x519cd6){this[_0x5b5caf(0x127)][_0x5b5caf(0x11e)](_0x41b8a8,_0x2a999f,_0x1f79f5);const _0xd2cf0a=_0x1cedb2[_0x5b5caf(0x79)];_0xd2cf0a[_0x5b5caf(0x81)]((_0xb6b606,_0x450df3,_0x594e9f)=>{const _0x2043a5=_0x5b5caf,_0x3828de={..._0x594e9f};_0xa5abb6<=_0x3828de[_0x2043a5(0xfe)]?(_0x3828de[_0x2043a5(0xfe)]+=_0x5943ca,_0x3828de[_0x2043a5(0xe0)]+=_0x5943ca):_0xa5abb6>_0x3828de[_0x2043a5(0xe0)]||(_0x3828de[_0x2043a5(0xe0)]+=_0x5943ca),_0xd2cf0a[_0x2043a5(0x93)](_0xb6b606,_0x450df3,_0x3828de);});const _0x3c0373=_0xd2cf0a[_0x5b5caf(0x9a)]();for(const _0x42f3d7 in _0x3c0373){const _0x4ba196=_0x3c0373[Number(_0x42f3d7)];if(!_0x4ba196)continue;const _0xba1664=Object[_0x5b5caf(0x77)](_0x4ba196)[_0x5b5caf(0xa9)](Number),_0x3e7f33=Math[_0x5b5caf(0x125)](..._0xba1664);for(let _0x34fb9a=_0x3e7f33;_0x34fb9a>=_0xa5abb6;_0x34fb9a--)_0x34fb9a>=_0xa5abb6&&_0x4ba196[_0x34fb9a]&&(_0x4ba196[_0x34fb9a+_0x5943ca]=_0x4ba196[_0x34fb9a],delete _0x4ba196[_0x34fb9a]);}this[_0x5b5caf(0x127)][_0x5b5caf(0x7e)](_0x41b8a8,_0x2a999f,_0x1f79f5);}}else{if(_0x3d1459['id']===_0x34627c['id']){const _0x4c5d29=_0x3d1459[_0x5b5caf(0xf6)],{unitId:_0x5d5508,subUnitId:_0x15f376,range:_0x3d654f}=_0x4c5d29,_0x3e0651=_0x3d654f['startRow'],_0x54076e=_0x3d654f['endRow']-_0x3d654f[_0x5b5caf(0x89)]+0x1,_0x2038e8=this[_0x5b5caf(0x127)][_0x5b5caf(0xd1)](_0x5d5508,_0x15f376);if(!_0x2038e8)return;for(const [_0x4ece9a,_0x236c4f]of _0x2038e8){this[_0x5b5caf(0x127)][_0x5b5caf(0x11e)](_0x5d5508,_0x15f376,_0x4ece9a);const _0x5bc700=_0x236c4f['sparklines'];_0x5bc700[_0x5b5caf(0x81)]((_0x44dea1,_0x4f7be2,_0x482f96)=>{const _0x3533da=_0x5b5caf,_0x356497={..._0x482f96};_0x3e0651<=_0x356497[_0x3533da(0x89)]?(_0x356497['startRow']+=_0x54076e,_0x356497[_0x3533da(0x10e)]+=_0x54076e):_0x3e0651>_0x356497[_0x3533da(0x10e)]||(_0x356497['endRow']+=_0x54076e),_0x5bc700[_0x3533da(0x93)](_0x44dea1,_0x4f7be2,_0x356497);});const _0x41fbe8=_0x5bc700['getMatrix'](),_0x19b440=Object[_0x5b5caf(0x77)](_0x41fbe8)['map'](Number),_0x300d02=Math['max'](..._0x19b440);for(let _0x1258dd=_0x300d02;_0x1258dd>=_0x3e0651;_0x1258dd--)_0x1258dd>=_0x3e0651&&_0x41fbe8[_0x1258dd]&&(_0x41fbe8[_0x1258dd+_0x54076e]=_0x41fbe8[_0x1258dd],delete _0x41fbe8[_0x1258dd]);this[_0x5b5caf(0x127)]['updateSparklineExtraNum'](_0x5d5508,_0x15f376,_0x4ece9a);}}else{if(_0x3d1459['id']===_0x11bb71['id']){const _0x1e476c=_0x3d1459[_0x5b5caf(0xf6)],{range:_0x307a7e,unitId:_0x1c5955,subUnitId:_0x360041}=_0x1e476c,_0x1eb648=this['_sparklineDataSourceModel'][_0x5b5caf(0xd1)](_0x1c5955,_0x360041);if(!_0x1eb648)return;for(const [_0x16bfe8,_0x3a2944]of _0x1eb648){const _0x1e7e66=_0x3a2944[_0x5b5caf(0x79)];_0x1e7e66['forValue']((_0x4c1783,_0x3cf2c7,_0x3a7712)=>{const _0x3beefc=_0x5b5caf,_0x466b6b=_0x29f3ab(_0x3a7712,_0x3d1459);_0x466b6b?_0x1e7e66[_0x3beefc(0x93)](_0x4c1783,_0x3cf2c7,_0x466b6b):_0x1e7e66[_0x3beefc(0x93)](_0x4c1783,_0x3cf2c7,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xba1188['NORMAL']});}),_0x1e7e66[_0x5b5caf(0xc6)](_0x307a7e[_0x5b5caf(0xfe)],_0x307a7e[_0x5b5caf(0xe0)]-_0x307a7e[_0x5b5caf(0xfe)]+0x1);}this[_0x5b5caf(0x127)][_0x5b5caf(0x12b)](_0x1c5955,_0x360041);}else{if(_0x3d1459['id']===_0x4ab564['id']){const _0x5835f4=_0x3d1459['params'],{range:_0x556749,unitId:_0x30c802,subUnitId:_0x2c1170}=_0x5835f4,_0x1dc9b1=this[_0x5b5caf(0x127)][_0x5b5caf(0xd1)](_0x30c802,_0x2c1170);if(!_0x1dc9b1)return;for(const [_0x391ecf,_0x40adf1]of _0x1dc9b1){const _0x3fc500=_0x40adf1['sparklines'];_0x3fc500[_0x5b5caf(0x81)]((_0x18e834,_0x563eed,_0x567ace)=>{const _0x49f3d8=_0x5b5caf,_0x2c9238=_0x29f3ab(_0x567ace,_0x3d1459);_0x2c9238?_0x3fc500[_0x49f3d8(0x93)](_0x18e834,_0x563eed,_0x2c9238):_0x3fc500[_0x49f3d8(0x93)](_0x18e834,_0x563eed,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xba1188[_0x49f3d8(0xa5)]});}),_0x3fc500[_0x5b5caf(0x11b)](_0x556749[_0x5b5caf(0x89)],_0x556749[_0x5b5caf(0x10e)]-_0x556749['startRow']+0x1);}this[_0x5b5caf(0x127)]['reBuildAnchorCache'](_0x30c802,_0x2c1170);}else{if(_0x3d1459['id']===_0x1f3d47['id']){const _0x465086=_0x3d1459['params'],{unitId:_0x84d7a7,subUnitId:_0x5cf7ee,sourceRange:_0x3e4931,targetRange:_0x1480f8}=_0x465086,_0x230b2e=this[_0x5b5caf(0x127)][_0x5b5caf(0xd1)](_0x84d7a7,_0x5cf7ee);if(!_0x230b2e)return;for(const [_0xb0173c,_0x348cdf]of _0x230b2e){const _0x5747ed=_0x348cdf[_0x5b5caf(0x79)];_0x5747ed['forValue']((_0x5afd4c,_0x414f46,_0x133b6c)=>{const _0x22b1de=_0x5b5caf,_0x5bcad6=_0x29f3ab(_0x133b6c,_0x3d1459);_0x5bcad6?_0x5747ed[_0x22b1de(0x93)](_0x5afd4c,_0x414f46,_0x5bcad6):_0x5747ed[_0x22b1de(0x93)](_0x5afd4c,_0x414f46,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xba1188[_0x22b1de(0xa5)]});}),_0x5747ed[_0x5b5caf(0x128)](_0x3e4931['startColumn'],_0x3e4931[_0x5b5caf(0xe0)]-_0x3e4931[_0x5b5caf(0xfe)]+0x1,_0x1480f8[_0x5b5caf(0xfe)]);}this[_0x5b5caf(0x127)][_0x5b5caf(0x12b)](_0x84d7a7,_0x5cf7ee);}else{if(_0x3d1459['id']===_0x9c17cf['id']){const _0x15924b=_0x3d1459[_0x5b5caf(0xf6)],{unitId:_0x47a95c,subUnitId:_0x193e61,sourceRange:_0x435778,targetRange:_0x4ffe8a}=_0x15924b,_0x372859=this[_0x5b5caf(0x127)][_0x5b5caf(0xd1)](_0x47a95c,_0x193e61);if(!_0x372859)return;for(const [_0x5cf5b1,_0x4dce15]of _0x372859){const _0x1df7aa=_0x4dce15[_0x5b5caf(0x79)];_0x1df7aa[_0x5b5caf(0x81)]((_0x186f41,_0x5714c8,_0x2155af)=>{const _0x10be6d=_0x5b5caf,_0x332b60=_0x29f3ab(_0x2155af,_0x3d1459);_0x332b60?_0x1df7aa[_0x10be6d(0x93)](_0x186f41,_0x5714c8,_0x332b60):_0x1df7aa[_0x10be6d(0x93)](_0x186f41,_0x5714c8,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xba1188[_0x10be6d(0xa5)]});}),_0x1df7aa[_0x5b5caf(0xbb)](_0x435778['startRow'],_0x435778[_0x5b5caf(0x10e)]-_0x435778[_0x5b5caf(0x89)]+0x1,_0x4ffe8a[_0x5b5caf(0x89)]);}this['_sparklineDataSourceModel']['reBuildAnchorCache'](_0x47a95c,_0x193e61);}else{if(_0x3d1459['id']===_0x31ff93['id']){const _0x1f4fad=_0x3d1459['params'],{fromRange:_0x51684e,toRange:_0x476f90,unitId:_0x3d68bc,from:_0x3b943e,to:_0x1398ce}=_0x1f4fad;if(_0x3b943e[_0x5b5caf(0x10d)]!==_0x1398ce[_0x5b5caf(0x10d)])return;const _0x344d45=_0x3b943e['subUnitId'],{startRow:_0x53f489,endRow:_0x102ad0,startColumn:_0x245e55,endColumn:_0x220039}=_0x51684e,{startRow:_0x503b67,startColumn:_0x5a48cb}=_0x476f90,_0x55a90d=_0x503b67-_0x53f489,_0x3fe402=_0x5a48cb-_0x245e55,_0x3740de=this[_0x5b5caf(0x127)][_0x5b5caf(0xd1)](_0x3d68bc,_0x344d45);if(!(_0x3740de!=null&&_0x3740de['size']))return;for(let _0x2fca93=_0x53f489;_0x2fca93<=_0x102ad0;_0x2fca93++)for(let _0x209a49=_0x245e55;_0x209a49<=_0x220039;_0x209a49++){const _0x1a3c38=this[_0x5b5caf(0x127)][_0x5b5caf(0x78)](_0x3d68bc,_0x344d45,_0x2fca93,_0x209a49);if(_0x1a3c38){const _0x9ba667=this[_0x5b5caf(0x127)]['getSparklineById'](_0x3d68bc,_0x344d45,_0x1a3c38);if(_0x9ba667){const _0x576372=_0x9ba667[_0x5b5caf(0x79)][_0x5b5caf(0xf9)](_0x2fca93,_0x209a49);_0x576372&&(_0x9ba667[_0x5b5caf(0x79)][_0x5b5caf(0x93)](_0x2fca93+_0x55a90d,_0x209a49+_0x3fe402,_0x576372),_0x9ba667[_0x5b5caf(0x79)][_0x5b5caf(0xc8)](_0x2fca93,_0x209a49));}}}for(const [_0x10a22d,_0x1334b1]of _0x3740de){const _0x4da7ec=_0x1334b1[_0x5b5caf(0x79)];_0x4da7ec['forValue']((_0x21db94,_0x5ad45a,_0x214343)=>{const _0x6f0340=_0x5b5caf,_0x45c636={..._0x214343};_0x482be5[_0x6f0340(0x88)](_0x51684e,_0x214343)&&(_0x45c636[_0x6f0340(0x89)]+=_0x55a90d,_0x45c636['endRow']+=_0x55a90d,_0x45c636[_0x6f0340(0xfe)]+=_0x3fe402,_0x45c636[_0x6f0340(0xe0)]+=_0x3fe402),_0x4da7ec[_0x6f0340(0x93)](_0x21db94,_0x5ad45a,_0x45c636);});}this[_0x5b5caf(0x127)][_0x5b5caf(0x12b)](_0x3d68bc,_0x344d45);}}}}}}}}));}};Me=Kt([ue(0x0,_0x219988(_0x1a4d08)),ue(0x1,_0x219988(_0x39a411)),ue(0x2,_0x219988(_0x2cf858)),ue(0x3,_0x1f020b),ue(0x4,_0x219988(x))],Me);var Xt=Object[_0x40ac0d(0xc5)],zt=(_0x5cd49d,_0x16c0c8,_0x41bf17,_0x55e727)=>{const _0x5c35b3=_0x40ac0d;for(var _0x455e2a=_0x55e727>0x1?void 0x0:_0x55e727?Xt(_0x16c0c8,_0x41bf17):_0x16c0c8,_0x3b314a=_0x5cd49d[_0x5c35b3(0xde)]-0x1,_0x24c162;_0x3b314a>=0x0;_0x3b314a--)(_0x24c162=_0x5cd49d[_0x3b314a])&&(_0x455e2a=_0x24c162(_0x455e2a)||_0x455e2a);return _0x455e2a;},Be=(_0x50968e,_0x1aaf4b)=>(_0x5a9492,_0x3d7b74)=>_0x1aaf4b(_0x5a9492,_0x3d7b74,_0x50968e);let Re=class extends _0x55cef7{constructor(_0x138bc3,_0x12ec13){const _0x2fe46c=_0x40ac0d;super(),this[_0x2fe46c(0x117)]=_0x138bc3,this[_0x2fe46c(0x127)]=_0x12ec13,this[_0x2fe46c(0xe1)]();}['_initSnapshot'](){const _0x236f02=_0x40ac0d,_0x5c998c=_0x2d20cb=>{const _0x4cd642=_0x557a,_0x108004=this['_sparklineDataSourceModel'][_0x4cd642(0xf1)](_0x2d20cb);return _0x108004?JSON[_0x4cd642(0xee)](_0x108004):'';},_0x298bbf=_0x4c655a=>_0x4c655a?JSON[_0x236f02(0xae)](_0x4c655a):{};this[_0x236f02(0x113)](this[_0x236f02(0x117)]['registerPluginResource']({'toJson':_0x5c998c,'parseJson':_0x298bbf,'pluginName':Ke,'businesses':[_0x3880d7[_0x236f02(0xb2)]],'onLoad':(_0x3dbc33,_0x5a6647)=>{const _0x2ab405=_0x236f02;this[_0x2ab405(0x127)][_0x2ab405(0xf5)](_0x5a6647);},'onUnLoad':_0x1ad668=>{const _0x2ba8c9=_0x236f02;this[_0x2ba8c9(0x127)][_0x2ba8c9(0xd6)](_0x1ad668);}}));}};Re=zt([Be(0x0,_0x219988(_0x297583)),Be(0x1,_0x219988(x))],Re);var Jt=Object['defineProperty'],Zt=Object['getOwnPropertyDescriptor'],Yt=(_0x107474,_0x4f9179,_0x22e08c)=>_0x4f9179 in _0x107474?Jt(_0x107474,_0x4f9179,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22e08c}):_0x107474[_0x4f9179]=_0x22e08c,qt=(_0x1440f3,_0xc76599,_0x415b77,_0x59dc89)=>{const _0x2b9e99=_0x40ac0d;for(var _0x1fd092=_0x59dc89>0x1?void 0x0:_0x59dc89?Zt(_0xc76599,_0x415b77):_0xc76599,_0x5ec514=_0x1440f3[_0x2b9e99(0xde)]-0x1,_0x598e61;_0x5ec514>=0x0;_0x5ec514--)(_0x598e61=_0x1440f3[_0x5ec514])&&(_0x1fd092=_0x598e61(_0x1fd092)||_0x1fd092);return _0x1fd092;},He=(_0x461073,_0x3aea54)=>(_0x45b47a,_0x1b7afb)=>_0x3aea54(_0x45b47a,_0x1b7afb,_0x461073),ze=(_0x1ad8dd,_0x2e3f41,_0x474140)=>Yt(_0x1ad8dd,typeof _0x2e3f41!=_0x40ac0d(0xfa)?_0x2e3f41+'':_0x2e3f41,_0x474140);let ve=class extends _0x5f2117{constructor(_0x305dbe={},_0x194107,_0x48e8e0){const _0x4e120d=_0x40ac0d;super(),this[_0x4e120d(0xa1)]=_0x305dbe,this[_0x4e120d(0xe6)]=_0x194107,this[_0x4e120d(0x100)]=_0x48e8e0,this[_0x4e120d(0xa2)](),this['_initRegisterCommand']();}[_0x40ac0d(0xa2)](){const _0x5ea62e=_0x40ac0d;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]]['forEach'](_0x4f0061=>{const _0x3066f0=_0x557a;this[_0x3066f0(0xe6)][_0x3066f0(0x124)](_0x4f0061);}),_0x3ba1f9(this[_0x5ea62e(0xe6)],[[Re]]);}[_0x40ac0d(0x86)](){_0x3ba1f9(this['_injector'],[[me],[_e],[Se],[Me],[Ce],[ke]]);}[_0x40ac0d(0xd5)](){const _0x7bcd87=_0x40ac0d;[Nt,V,Ot,y,xt,Oe]['forEach'](_0x14ccb2=>this[_0x7bcd87(0x100)]['registerCommand'](_0x14ccb2));}};ze(ve,'pluginName',Ke),ze(ve,_0x40ac0d(0xc3),_0x3880d7[_0x40ac0d(0xb2)]),ve=qt([_0x3e0e7f(_0x3d5536),He(0x1,_0x219988(_0x35aff1)),He(0x2,_0x219988(_0x1a4d08))],ve);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Ot as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,xt as SetSheetSparklineCommand,Oe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,Ee as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,ve as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xaa5b(_0x199845,_0x3f6a11){const _0x2e2472=_0x2e24();return _0xaa5b=function(_0xaa5b7e,_0x20a707){_0xaa5b7e=_0xaa5b7e-0x67;let _0x180f07=_0x2e2472[_0xaa5b7e];return _0x180f07;},_0xaa5b(_0x199845,_0x3f6a11);}(function(_0x4ff4de,_0x24897c){const _0x563bf8=_0xaa5b,_0x1f3a23=_0x4ff4de();while(!![]){try{const _0x38a3df=-parseInt(_0x563bf8(0xc2))/0x1+-parseInt(_0x563bf8(0x8c))/0x2*(-parseInt(_0x563bf8(0xaf))/0x3)+parseInt(_0x563bf8(0x85))/0x4+-parseInt(_0x563bf8(0x7b))/0x5+parseInt(_0x563bf8(0xa6))/0x6*(parseInt(_0x563bf8(0x71))/0x7)+parseInt(_0x563bf8(0x78))/0x8+parseInt(_0x563bf8(0x83))/0x9*(-parseInt(_0x563bf8(0x94))/0xa);if(_0x38a3df===_0x24897c)break;else _0x1f3a23['push'](_0x1f3a23['shift']());}catch(_0x3e0510){_0x1f3a23['push'](_0x1f3a23['shift']());}}}(_0x2e24,0x98c72),function(_0x50426b,_0x10ccf3){const _0x49e2d0=_0xaa5b;typeof exports==_0x49e2d0(0xa5)&&typeof module<'u'?_0x10ccf3(exports,require(_0x49e2d0(0xc5)),require(_0x49e2d0(0x95)),require(_0x49e2d0(0x84)),require(_0x49e2d0(0x93)),require('@univerjs/sheets')):typeof define==_0x49e2d0(0x6f)&&define['amd']?define([_0x49e2d0(0xb7),_0x49e2d0(0xc5),_0x49e2d0(0x95),_0x49e2d0(0x84),_0x49e2d0(0x93),_0x49e2d0(0xb0)],_0x10ccf3):(_0x50426b=typeof globalThis<'u'?globalThis:_0x50426b||self,_0x10ccf3(_0x50426b[_0x49e2d0(0xa1)]={},_0x50426b[_0x49e2d0(0x8f)],_0x50426b[_0x49e2d0(0xbe)],_0x50426b[_0x49e2d0(0x8a)],_0x50426b[_0x49e2d0(0x7a)],_0x50426b['UniverSheets']));}(this,function(_0x5cca39,_0x1136b8,_0x3c9ef2,_0x5e7cdd,_0x5a1ab1,_0x4dd9ef){'use strict';const _0x19bb28=_0xaa5b;var _0x249764=Object[_0x19bb28(0x9b)],_0x1c883f=(_0x4d3a95,_0x3782a1,_0xf506ec,_0x57a7de)=>{const _0x39b334=_0x19bb28;for(var _0x520ee6=_0x57a7de>0x1?void 0x0:_0x57a7de?_0x249764(_0x3782a1,_0xf506ec):_0x3782a1,_0x31566=_0x4d3a95[_0x39b334(0xbd)]-0x1,_0x2616c3;_0x31566>=0x0;_0x31566--)(_0x2616c3=_0x4d3a95[_0x31566])&&(_0x520ee6=_0x2616c3(_0x520ee6)||_0x520ee6);return _0x520ee6;},_0xa03c9f=(_0x1547ee,_0x251a28)=>(_0x5981e9,_0x26732a)=>_0x251a28(_0x5981e9,_0x26732a,_0x1547ee);_0x5cca39[_0x19bb28(0x97)]=class{constructor(_0x36b866,_0x4a37b2,_0x462cca,_0x49f1ef,_0x38ed55,_0x43d1a9){const _0xb3e096=_0x19bb28;this[_0xb3e096(0xab)]=_0x36b866,this[_0xb3e096(0x9c)]=_0x4a37b2,this[_0xb3e096(0x69)]=_0x462cca,this[_0xb3e096(0x90)]=_0x49f1ef,this[_0xb3e096(0xb8)]=_0x38ed55,this['_injector']=_0x43d1a9;}[_0x19bb28(0xc3)](_0x371b65,_0x53dca2){const _0x5864f6=_0x19bb28,_0x3e32a2=this['_injector'][_0x5864f6(0xba)](_0x1136b8[_0x5864f6(0xa3)]),_0x317ee3=this[_0x5864f6(0x6a)][_0x5864f6(0xba)](_0x3c9ef2[_0x5864f6(0xb4)]),_0x2d48f0=_0x3e32a2['getSparklineById'](this['_unitId'],this[_0x5864f6(0x9c)],this['_groupId']);if(!_0x2d48f0)return;const _0x1c4030={'config':_0x2d48f0,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x5864f6(0x69)],'resetType':_0x5864f6(0x91),'sourceRanges':[_0x371b65],'targetRanges':[_0x53dca2],'primary':{'startRow':this[_0x5864f6(0x90)],'startColumn':this[_0x5864f6(0xb8)],'endRow':this[_0x5864f6(0x90)],'endColumn':this[_0x5864f6(0xb8)],'actualRow':this[_0x5864f6(0x90)],'actualColumn':this[_0x5864f6(0xb8)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x317ee3[_0x5864f6(0xb6)](_0x1136b8[_0x5864f6(0x9d)]['id'],_0x1c4030),this['_row']=_0x53dca2[_0x5864f6(0x74)],this[_0x5864f6(0xb8)]=_0x53dca2[_0x5864f6(0xbb)],this;}[_0x19bb28(0x75)](){const _0x459a84=_0x19bb28,_0x45bc70=this['_injector'][_0x459a84(0xba)](_0x3c9ef2['ICommandService']),_0x726da0={'isSingle':!0x0,'ranges':[{'startRow':this[_0x459a84(0x90)],'startColumn':this[_0x459a84(0xb8)],'endRow':this[_0x459a84(0x90)],'endColumn':this[_0x459a84(0xb8)]}]};_0x45bc70[_0x459a84(0xb6)](_0x1136b8[_0x459a84(0x70)]['id'],_0x726da0);}},_0x5cca39[_0x19bb28(0x97)]=_0x1c883f([_0xa03c9f(0x5,_0x3c9ef2['Inject'](_0x3c9ef2[_0x19bb28(0xb1)]))],_0x5cca39[_0x19bb28(0x97)]);var _0x16da0b=Object[_0x19bb28(0x9b)],_0x49d03e=(_0x1f2137,_0x1e3bab,_0x18a647,_0x55bc68)=>{const _0x53f599=_0x19bb28;for(var _0x5c98ae=_0x55bc68>0x1?void 0x0:_0x55bc68?_0x16da0b(_0x1e3bab,_0x18a647):_0x1e3bab,_0x346712=_0x1f2137[_0x53f599(0xbd)]-0x1,_0x5867cf;_0x346712>=0x0;_0x346712--)(_0x5867cf=_0x1f2137[_0x346712])&&(_0x5c98ae=_0x5867cf(_0x5c98ae)||_0x5c98ae);return _0x5c98ae;},_0x1196ed=(_0xd7e3e3,_0x1ce6a7)=>(_0x5b5779,_0x44f613)=>_0x1ce6a7(_0x5b5779,_0x44f613,_0xd7e3e3);_0x5cca39[_0x19bb28(0x6d)]=class{constructor(_0x321a3b,_0x21b92d,_0xb40575,_0x3e86d0,_0xf000a,_0x266ef3){const _0x3395e6=_0x19bb28;this[_0x3395e6(0xab)]=_0x321a3b,this[_0x3395e6(0x9c)]=_0x21b92d,this[_0x3395e6(0x69)]=_0xb40575,this['_row']=_0x3e86d0,this[_0x3395e6(0xb8)]=_0xf000a,this[_0x3395e6(0x6a)]=_0x266ef3;}[_0x19bb28(0xc3)](_0xccb7a7,_0x42a60b){const _0x234d7d=_0x19bb28,_0x49442e=this[_0x234d7d(0x6a)]['get'](_0x1136b8[_0x234d7d(0xa3)]),_0x4bb5ed=this['_injector']['get'](_0x3c9ef2[_0x234d7d(0xb4)]),_0x3d6b37=_0x49442e[_0x234d7d(0x96)](this[_0x234d7d(0xab)],this[_0x234d7d(0x9c)],this['_groupId']);if(!_0x3d6b37)return;const _0x35b5c2={'config':_0x3d6b37,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x234d7d(0x69)],'resetType':_0x234d7d(0xa8),'sourceRanges':_0xccb7a7,'targetRanges':_0x42a60b,'primary':{'startRow':this[_0x234d7d(0x90)],'startColumn':this[_0x234d7d(0xb8)],'endRow':this[_0x234d7d(0x90)],'endColumn':this['_col'],'actualRow':this[_0x234d7d(0x90)],'actualColumn':this[_0x234d7d(0xb8)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x4bb5ed[_0x234d7d(0xb6)](_0x1136b8[_0x234d7d(0x9d)]['id'],_0x35b5c2),this[_0x234d7d(0x90)]=_0x42a60b[0x0][_0x234d7d(0x74)],this['_col']=_0x42a60b[0x0][_0x234d7d(0xbb)],this;}[_0x19bb28(0x98)](){const _0x5d38b3=_0x19bb28,_0x2001f8=this['_injector']['get'](_0x3c9ef2['ICommandService']),_0x560c1a={'isSingle':!0x1,'ranges':[{'startRow':this[_0x5d38b3(0x90)],'startColumn':this[_0x5d38b3(0xb8)],'endRow':this[_0x5d38b3(0x90)],'endColumn':this[_0x5d38b3(0xb8)]}]};_0x2001f8['syncExecuteCommand'](_0x1136b8[_0x5d38b3(0x70)]['id'],_0x560c1a);}[_0x19bb28(0x68)](_0x135f6b){const _0x22c92c=_0x19bb28,_0x34e6f6=this[_0x22c92c(0x6a)][_0x22c92c(0xba)](_0x1136b8[_0x22c92c(0xa3)])[_0x22c92c(0x96)](this['_unitId'],this[_0x22c92c(0x9c)],this['_groupId']);if(_0x34e6f6){const _0x1543df={'config':{'config':_0x135f6b,'sparklines':_0x34e6f6[_0x22c92c(0xbc)]},'isChangeDataSource':!0x1};this['_injector'][_0x22c92c(0xba)](_0x3c9ef2[_0x22c92c(0xb4)])[_0x22c92c(0xb6)](_0x1136b8[_0x22c92c(0x9d)]['id'],_0x1543df);}return this;}},_0x5cca39[_0x19bb28(0x6d)]=_0x49d03e([_0x1196ed(0x5,_0x3c9ef2['Inject'](_0x3c9ef2[_0x19bb28(0xb1)]))],_0x5cca39['FSparklineGroup']);class _0x279241 extends _0x5e7cdd[_0x19bb28(0x6e)]{[_0x19bb28(0x82)](_0x46315d,_0x148ea2,_0x511a27){const _0x3431a2=_0x19bb28;if(this['_commandService']['syncExecuteCommand'](_0x1136b8[_0x3431a2(0x88)]['id'],{'sourceRanges':_0x46315d,'targetRanges':_0x148ea2,'targetInfo':{'unitId':this['_workbook'][_0x3431a2(0xaa)](),'subUnitId':this[_0x3431a2(0x9e)]['getSheetId']()},'config':{'type':_0x511a27}})){const {startRow:_0x17d184,startColumn:_0x565c5a}=_0x148ea2[0x0];return this[_0x3431a2(0x79)](_0x17d184,_0x565c5a);}}[_0x19bb28(0x9a)](){const _0x4bccc6=_0x19bb28;return this[_0x4bccc6(0x6a)][_0x4bccc6(0xba)](_0x1136b8[_0x4bccc6(0xa3)])['getSubUnitSparkline'](this[_0x4bccc6(0x87)][_0x4bccc6(0xaa)](),this[_0x4bccc6(0x9e)]['getSheetId']());}['composeSparkline'](_0x4ad5b8){const _0xef0b1f=_0x19bb28,_0xd9933c=this[_0xef0b1f(0x6a)][_0xef0b1f(0xba)](_0x1136b8[_0xef0b1f(0xa3)]);let _0x5397dd;for(let _0x194266=0x0;_0x194266<_0x4ad5b8['length'];_0x194266++){const _0x3cf6dc=_0x4ad5b8[_0x194266],{startRow:_0x5caa9e,endRow:_0x1a5c42,startColumn:_0x2db2e3,endColumn:_0x2121a6}=_0x3cf6dc;for(let _0x5cf305=_0x5caa9e;_0x5cf305<=_0x1a5c42;_0x5cf305++)for(let _0x57f7f0=_0x2db2e3;_0x57f7f0<=_0x2121a6;_0x57f7f0++){const _0x50de04=_0xd9933c[_0xef0b1f(0xae)](this[_0xef0b1f(0x87)][_0xef0b1f(0xaa)](),this['_worksheet'][_0xef0b1f(0xc4)](),_0x5cf305,_0x57f7f0);if(_0x50de04){const _0x2b8ba4=_0xd9933c[_0xef0b1f(0x96)](this[_0xef0b1f(0x87)][_0xef0b1f(0xaa)](),this[_0xef0b1f(0x9e)][_0xef0b1f(0xc4)](),_0x50de04);if(_0x2b8ba4){_0x5397dd=_0x3c9ef2[_0xef0b1f(0xc0)][_0xef0b1f(0xa4)](_0x2b8ba4);break;}}}}_0x5397dd&&this[_0xef0b1f(0x80)][_0xef0b1f(0xad)](_0x1136b8[_0xef0b1f(0x9d)]['id'],{'ranges':_0x4ad5b8,'combine':!0x0,'config':_0x5397dd,'isChangeDataSource':!0x1});}['unComposeSparkline'](_0x4dd483){const _0x3fa238=_0x19bb28,_0x38f9d7=this[_0x3fa238(0x6a)][_0x3fa238(0xba)](_0x1136b8[_0x3fa238(0xa3)]);let _0x5e3752;for(let _0x3d4bf4=0x0;_0x3d4bf4<_0x4dd483['length'];_0x3d4bf4++){const _0x9ff122=_0x4dd483[_0x3d4bf4],{startRow:_0x12ba3d,endRow:_0x576fc2,startColumn:_0x2fbd92,endColumn:_0x1bd973}=_0x9ff122;for(let _0x51572f=_0x12ba3d;_0x51572f<=_0x576fc2;_0x51572f++)for(let _0x20af49=_0x2fbd92;_0x20af49<=_0x1bd973;_0x20af49++){const _0x3e25b0=_0x38f9d7[_0x3fa238(0xae)](this[_0x3fa238(0x87)][_0x3fa238(0xaa)](),this[_0x3fa238(0x9e)][_0x3fa238(0xc4)](),_0x51572f,_0x20af49);if(_0x3e25b0){const _0x33d764=_0x38f9d7[_0x3fa238(0x96)](this[_0x3fa238(0x87)][_0x3fa238(0xaa)](),this[_0x3fa238(0x9e)][_0x3fa238(0xc4)](),_0x3e25b0);if(_0x33d764){_0x5e3752=_0x3c9ef2[_0x3fa238(0xc0)]['deepClone'](_0x33d764);break;}}}}_0x5e3752||this[_0x3fa238(0x80)][_0x3fa238(0xad)](_0x1136b8[_0x3fa238(0x9d)]['id'],{'ranges':_0x4dd483,'unCombine':!0x0,'config':_0x5e3752,'isChangeDataSource':!0x1});}[_0x19bb28(0x79)](_0x1b1dde,_0x24d9f7){const _0x14a992=_0x19bb28,_0x44268d=this['_injector'][_0x14a992(0xba)](_0x1136b8['SparklineDataSourceModel']),_0x964964=this[_0x14a992(0x87)][_0x14a992(0xaa)](),_0x335ca5=this['_worksheet'][_0x14a992(0xc4)](),_0x5d16cc=_0x44268d[_0x14a992(0xae)](_0x964964,_0x335ca5,_0x1b1dde,_0x24d9f7);if(_0x5d16cc)return this['_injector'][_0x14a992(0x7d)](_0x5cca39[_0x14a992(0x97)],_0x964964,_0x335ca5,_0x5d16cc,_0x1b1dde,_0x24d9f7);}[_0x19bb28(0xa0)](_0x4a7ee1,_0x24c862){const _0x18e11b=_0x19bb28,_0x640d1c=this[_0x18e11b(0x6a)][_0x18e11b(0xba)](_0x1136b8['SparklineDataSourceModel']),_0x1ac4a3=this['_workbook'][_0x18e11b(0xaa)](),_0x3dbd32=this[_0x18e11b(0x9e)][_0x18e11b(0xc4)](),_0x1ee1c1=_0x640d1c[_0x18e11b(0xae)](_0x1ac4a3,_0x3dbd32,_0x4a7ee1,_0x24c862);if(_0x1ee1c1)return this[_0x18e11b(0x6a)][_0x18e11b(0x7d)](_0x5cca39['FSparklineGroup'],_0x1ac4a3,_0x3dbd32,_0x1ee1c1,_0x4a7ee1,_0x24c862);}}_0x5e7cdd[_0x19bb28(0x6e)]['extend'](_0x279241);class _0x54f867 extends _0x5a1ab1[_0x19bb28(0x67)]{get[_0x19bb28(0x8b)](){return _0x1136b8['SparklineTypeEnum'];}}_0x5a1ab1['FEnum'][_0x19bb28(0x86)](_0x54f867);class _0x5d3439 extends _0x5a1ab1[_0x19bb28(0x81)]{get[_0x19bb28(0x76)](){const _0x25bde0=_0x19bb28;return _0x25bde0(0x76);}}_0x5a1ab1[_0x19bb28(0x81)][_0x19bb28(0x86)](_0x5d3439);class _0x4d4404 extends _0x5a1ab1[_0x19bb28(0x9f)]{[_0x19bb28(0x77)](_0x49e5d2){const _0x3b035d=_0x19bb28,_0x5ec00b=_0x49e5d2['get'](_0x3c9ef2[_0x3b035d(0xb4)]);this[_0x3b035d(0xa2)](this[_0x3b035d(0x8d)]['SheetSparklineChanged'],()=>_0x5ec00b['onCommandExecuted'](_0xb1176a=>{const _0x345e02=_0x3b035d;var _0x153e6f,_0x350c3f;if(_0xb1176a['id']===_0x1136b8[_0x345e02(0x9d)]['id']){const _0x385ccf=_0xb1176a['params'];if(!_0x385ccf[_0x345e02(0x7e)]){const _0x1483e1=this[_0x345e02(0xa9)](),_0x5987d0=_0x1483e1==null?void 0x0:_0x1483e1[_0x345e02(0x6b)]();if(!_0x1483e1||!_0x5987d0)return;const _0x5d1e16=_0x1483e1[_0x345e02(0x89)](),_0xec01b=_0x5987d0[_0x345e02(0xc4)](),_0x152982=this[_0x345e02(0x6a)][_0x345e02(0xba)](_0x4dd9ef[_0x345e02(0xa7)]),_0x3833f6=this['_injector'][_0x345e02(0xba)](_0x1136b8[_0x345e02(0xa3)]),_0xd46dec=(_0x153e6f=_0x385ccf==null?void 0x0:_0x385ccf[_0x345e02(0xc1)])!=null?_0x153e6f:_0x152982['getCurrentSelections']()[_0x345e02(0x92)](_0x17ac82=>_0x17ac82[_0x345e02(0x6c)]),_0x47540f=(_0x350c3f=_0x3833f6[_0x345e02(0x72)]()[_0x345e02(0xac)]['get'](_0x5d1e16))==null?void 0x0:_0x350c3f[_0x345e02(0xba)](_0xec01b),_0x40f064=new Set();_0xd46dec[_0x345e02(0x99)](_0x3c42a1=>{const _0x142e08=_0x345e02;var _0xb82375;const {startRow:_0x20423f,endRow:_0x462fec,startColumn:_0x13f003,endColumn:_0x4ead75}=_0x3c42a1;for(let _0x5cdb7d=_0x20423f;_0x5cdb7d<=_0x462fec;_0x5cdb7d++)for(let _0x421926=_0x13f003;_0x421926<=_0x4ead75;_0x421926++){const _0x372324=(_0xb82375=_0x47540f==null?void 0x0:_0x47540f['matrix'][_0x142e08(0x7c)](_0x5cdb7d,_0x421926))==null?void 0x0:_0xb82375[_0x142e08(0x8e)];_0x372324&&_0x40f064[_0x142e08(0x7f)](_0x372324);}});const _0x19972f=Array['from'](_0x40f064)['map'](_0x1d130d=>_0x3833f6['getSparklineById'](_0x5d1e16,_0xec01b,_0x1d130d))[_0x345e02(0xb9)](_0x1409ca=>!!_0x1409ca),_0x3ff122={'workbook':_0x1483e1,'worksheet':_0x5987d0,'sparklines':_0x19972f};if(this[_0x345e02(0xb5)](this['Event']['SheetSparklineChanged'],_0x3ff122),_0x3ff122['cancel'])throw new Error(_0x345e02(0x73));}}}));}}_0x5a1ab1[_0x19bb28(0x9f)][_0x19bb28(0x86)](_0x4d4404),Object[_0x19bb28(0xbf)](_0x5cca39,Symbol[_0x19bb28(0xb3)],{'value':_0x19bb28(0xb2)});}));function _0x2e24(){const _0x3c4d68=['ICommandService','fireEvent','syncExecuteCommand','exports','_col','filter','get','startColumn','sparklines','length','UniverCore','defineProperty','Tools','ranges','319753KIIVks','changeDataSource','getSheetId','@univerjs-pro/sheets-sparkline','FEnum','setConfig','_groupId','_injector','getActiveSheet','range','FSparklineGroup','FWorksheet','function','RemoveSheetSparklineCommand','4571WVlzvW','getSparklineCache','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','startRow','removeSparkline','SheetSparklineChanged','_initialize','9886528Rocyyb','getSparklineByCell','UniverCoreFacade','479235ikxNBk','getValue','createInstance','isChangeDataSource','add','_commandService','FEventName','addSparkline','351882oOITAb','@univerjs/sheets/facade','438168ugzIGL','extend','_workbook','AddSheetSparklineCommand','getId','UniverSheetsFacade','SparklineTypeEnum','456838fabsQA','Event','groupId','UniverProSheetsSparkline','_row','item','map','@univerjs/core/facade','230tPEpeO','@univerjs/core','getSparklineById','FSparkline','removeSparklineGroup','forEach','getAllSubSparkline','getOwnPropertyDescriptor','_subUnitId','SetSheetSparklineCommand','_worksheet','FUniver','getSparklineGroupByCell','UniverProSheetsSparklineFacade','registerEventHandler','SparklineDataSourceModel','deepClone','object','1272mmWJWx','SheetsSelectionsService','group','getActiveWorkbook','getUnitId','_unitId','sparklineAnchorMap','executeCommand','getSparkline','6wjiuxC','@univerjs/sheets','Injector','Module','toStringTag'];_0x2e24=function(){return _0x3c4d68;};return _0x2e24();}
|
|
1
|
+
function _0x5ad2(){const _0x1ec248=['SheetSparklineChanged','matrix','Tools','setConfig','6599955zsruwd','getActiveWorkbook','onCommandExecuted','FEventName','getActiveSheet','Event','defineProperty','_commandService','getUnitId','fireEvent','item','changeDataSource','unComposeSparkline','extend','getOwnPropertyDescriptor','_unitId','@univerjs-pro/sheets-sparkline','2vMcRYe','sparklineAnchorMap','getSparklineCache','composeSparkline','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','add','deepClone','removeSparklineGroup','_subUnitId','executeCommand','SparklineTypeEnum','UniverSheets','1838457RCufQg','getValue','getSparklineById','FSparklineGroup','get','@univerjs/core/facade','FUniver','getSparkline','exports','Inject','getSparklineGroupByCell','SheetsSelectionsService','Injector','getId','UniverProSheetsSparkline','range','_col','map','forEach','AddSheetSparklineCommand','UniverCore','_workbook','733304ptIwEW','group','getAllSubSparkline','@univerjs/sheets/facade','_row','_groupId','getCurrentSelections','addSparkline','7974224tmDQWV','Module','FWorksheet','function','SparklineDataSourceModel','2712619SqWhvJ','FEnum','FSparkline','4813188qwUPHm','length','SetSheetSparklineCommand','ICommandService','getSheetId','_injector','UniverSheetsFacade','amd','startColumn','from','filter','startRow','cancel','RemoveSheetSparklineCommand','@univerjs/sheets','_worksheet','isChangeDataSource','ranges','_initialize','syncExecuteCommand','4766199MstuuG'];_0x5ad2=function(){return _0x1ec248;};return _0x5ad2();}function _0x261d(_0x3599e9,_0x13e298){const _0x5ad22a=_0x5ad2();return _0x261d=function(_0x261d1d,_0x4f63c7){_0x261d1d=_0x261d1d-0x179;let _0x1e5deb=_0x5ad22a[_0x261d1d];return _0x1e5deb;},_0x261d(_0x3599e9,_0x13e298);}(function(_0x597198,_0x4f2692){const _0x202eff=_0x261d,_0x2d83b8=_0x597198();while(!![]){try{const _0xb4c370=parseInt(_0x202eff(0x1ca))/0x1+parseInt(_0x202eff(0x1be))/0x2*(-parseInt(_0x202eff(0x1a8))/0x3)+-parseInt(_0x202eff(0x184))/0x4+-parseInt(_0x202eff(0x1ad))/0x5+parseInt(_0x202eff(0x194))/0x6+parseInt(_0x202eff(0x191))/0x7+parseInt(_0x202eff(0x18c))/0x8;if(_0xb4c370===_0x4f2692)break;else _0x2d83b8['push'](_0x2d83b8['shift']());}catch(_0x471cfe){_0x2d83b8['push'](_0x2d83b8['shift']());}}}(_0x5ad2,0xe3c24),function(_0x3655f9,_0xd79ab7){const _0x25105a=_0x261d;typeof exports=='object'&&typeof module<'u'?_0xd79ab7(exports,require(_0x25105a(0x1bd)),require('@univerjs/core'),require(_0x25105a(0x187)),require(_0x25105a(0x1cf)),require('@univerjs/sheets')):typeof define==_0x25105a(0x18f)&&define[_0x25105a(0x19b)]?define([_0x25105a(0x1d2),_0x25105a(0x1bd),'@univerjs/core',_0x25105a(0x187),_0x25105a(0x1cf),_0x25105a(0x1a2)],_0xd79ab7):(_0x3655f9=typeof globalThis<'u'?globalThis:_0x3655f9||self,_0xd79ab7(_0x3655f9['UniverProSheetsSparklineFacade']={},_0x3655f9[_0x25105a(0x17c)],_0x3655f9[_0x25105a(0x182)],_0x3655f9[_0x25105a(0x19a)],_0x3655f9['UniverCoreFacade'],_0x3655f9[_0x25105a(0x1c9)]));}(this,function(_0x5dc917,_0x47d6b8,_0x5ce91a,_0x19f330,_0x324119,_0x167efb){'use strict';const _0x5c085a=_0x261d;var _0x419699=Object[_0x5c085a(0x1bb)],_0x35ee8f=(_0x45e058,_0x300b8c,_0x31ddf1,_0x1a0007)=>{const _0x19017d=_0x5c085a;for(var _0x13ac5e=_0x1a0007>0x1?void 0x0:_0x1a0007?_0x419699(_0x300b8c,_0x31ddf1):_0x300b8c,_0xca7c22=_0x45e058[_0x19017d(0x195)]-0x1,_0x1a10b2;_0xca7c22>=0x0;_0xca7c22--)(_0x1a10b2=_0x45e058[_0xca7c22])&&(_0x13ac5e=_0x1a10b2(_0x13ac5e)||_0x13ac5e);return _0x13ac5e;},_0x17dc28=(_0x24e6a5,_0x328f6f)=>(_0x15b31e,_0x5f58f2)=>_0x328f6f(_0x15b31e,_0x5f58f2,_0x24e6a5);_0x5dc917[_0x5c085a(0x193)]=class{constructor(_0x301787,_0xcb85ee,_0x2002be,_0x279a7b,_0x3a6871,_0x4f0473){const _0x421991=_0x5c085a;this[_0x421991(0x1bc)]=_0x301787,this['_subUnitId']=_0xcb85ee,this[_0x421991(0x189)]=_0x2002be,this['_row']=_0x279a7b,this['_col']=_0x3a6871,this[_0x421991(0x199)]=_0x4f0473;}[_0x5c085a(0x1b8)](_0x512ffe,_0x8db9e9){const _0x1fdec8=_0x5c085a,_0x319867=this[_0x1fdec8(0x199)][_0x1fdec8(0x1ce)](_0x47d6b8['SparklineDataSourceModel']),_0x38ac21=this['_injector'][_0x1fdec8(0x1ce)](_0x5ce91a[_0x1fdec8(0x197)]),_0x4b15af=_0x319867[_0x1fdec8(0x1cc)](this[_0x1fdec8(0x1bc)],this['_subUnitId'],this[_0x1fdec8(0x189)]);if(!_0x4b15af)return;const _0x70bcf3={'config':_0x4b15af,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x1fdec8(0x189)],'resetType':_0x1fdec8(0x1b7),'sourceRanges':[_0x512ffe],'targetRanges':[_0x8db9e9],'primary':{'startRow':this['_row'],'startColumn':this['_col'],'endRow':this[_0x1fdec8(0x188)],'endColumn':this[_0x1fdec8(0x17e)],'actualRow':this[_0x1fdec8(0x188)],'actualColumn':this[_0x1fdec8(0x17e)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x38ac21['syncExecuteCommand'](_0x47d6b8[_0x1fdec8(0x196)]['id'],_0x70bcf3),this['_row']=_0x8db9e9[_0x1fdec8(0x19f)],this[_0x1fdec8(0x17e)]=_0x8db9e9[_0x1fdec8(0x19c)],this;}['removeSparkline'](){const _0x1ada7f=_0x5c085a,_0x346337=this[_0x1ada7f(0x199)][_0x1ada7f(0x1ce)](_0x5ce91a[_0x1ada7f(0x197)]),_0x12dc6a={'isSingle':!0x0,'ranges':[{'startRow':this[_0x1ada7f(0x188)],'startColumn':this[_0x1ada7f(0x17e)],'endRow':this['_row'],'endColumn':this['_col']}]};_0x346337[_0x1ada7f(0x1a7)](_0x47d6b8[_0x1ada7f(0x1a1)]['id'],_0x12dc6a);}},_0x5dc917['FSparkline']=_0x35ee8f([_0x17dc28(0x5,_0x5ce91a['Inject'](_0x5ce91a['Injector']))],_0x5dc917[_0x5c085a(0x193)]);var _0x52c184=Object[_0x5c085a(0x1bb)],_0x2cc6c6=(_0x19a6c8,_0x112168,_0x1822f3,_0x4ae449)=>{const _0x1438d7=_0x5c085a;for(var _0x5b4890=_0x4ae449>0x1?void 0x0:_0x4ae449?_0x52c184(_0x112168,_0x1822f3):_0x112168,_0x53a46c=_0x19a6c8[_0x1438d7(0x195)]-0x1,_0xa93e1c;_0x53a46c>=0x0;_0x53a46c--)(_0xa93e1c=_0x19a6c8[_0x53a46c])&&(_0x5b4890=_0xa93e1c(_0x5b4890)||_0x5b4890);return _0x5b4890;},_0x1cddf1=(_0x26d098,_0x44e526)=>(_0x4081e1,_0x4ab4fc)=>_0x44e526(_0x4081e1,_0x4ab4fc,_0x26d098);_0x5dc917[_0x5c085a(0x1cd)]=class{constructor(_0xa1d82d,_0x2a6f8f,_0x518e21,_0x207b99,_0x281f04,_0x284740){const _0x49da3a=_0x5c085a;this[_0x49da3a(0x1bc)]=_0xa1d82d,this['_subUnitId']=_0x2a6f8f,this['_groupId']=_0x518e21,this[_0x49da3a(0x188)]=_0x207b99,this[_0x49da3a(0x17e)]=_0x281f04,this[_0x49da3a(0x199)]=_0x284740;}['changeDataSource'](_0x4b5117,_0x4a7a12){const _0x513234=_0x5c085a,_0x137863=this['_injector']['get'](_0x47d6b8[_0x513234(0x190)]),_0x503a68=this[_0x513234(0x199)][_0x513234(0x1ce)](_0x5ce91a[_0x513234(0x197)]),_0x302d77=_0x137863[_0x513234(0x1cc)](this[_0x513234(0x1bc)],this['_subUnitId'],this[_0x513234(0x189)]);if(!_0x302d77)return;const _0x29b152={'config':_0x302d77,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x513234(0x189)],'resetType':_0x513234(0x185),'sourceRanges':_0x4b5117,'targetRanges':_0x4a7a12,'primary':{'startRow':this[_0x513234(0x188)],'startColumn':this[_0x513234(0x17e)],'endRow':this[_0x513234(0x188)],'endColumn':this[_0x513234(0x17e)],'actualRow':this[_0x513234(0x188)],'actualColumn':this[_0x513234(0x17e)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x503a68[_0x513234(0x1a7)](_0x47d6b8[_0x513234(0x196)]['id'],_0x29b152),this[_0x513234(0x188)]=_0x4a7a12[0x0][_0x513234(0x19f)],this[_0x513234(0x17e)]=_0x4a7a12[0x0]['startColumn'],this;}[_0x5c085a(0x1c5)](){const _0x2c1032=_0x5c085a,_0x56f43d=this[_0x2c1032(0x199)][_0x2c1032(0x1ce)](_0x5ce91a[_0x2c1032(0x197)]),_0x1e9e22={'isSingle':!0x1,'ranges':[{'startRow':this[_0x2c1032(0x188)],'startColumn':this['_col'],'endRow':this['_row'],'endColumn':this[_0x2c1032(0x17e)]}]};_0x56f43d[_0x2c1032(0x1a7)](_0x47d6b8['RemoveSheetSparklineCommand']['id'],_0x1e9e22);}[_0x5c085a(0x1ac)](_0xb0b4f6){const _0x183507=_0x5c085a,_0x20f256=this[_0x183507(0x199)]['get'](_0x47d6b8['SparklineDataSourceModel'])[_0x183507(0x1cc)](this[_0x183507(0x1bc)],this[_0x183507(0x1c6)],this['_groupId']);if(_0x20f256){const _0x1593f0={'config':{'config':_0xb0b4f6,'sparklines':_0x20f256['sparklines']},'isChangeDataSource':!0x1};this[_0x183507(0x199)]['get'](_0x5ce91a[_0x183507(0x197)])[_0x183507(0x1a7)](_0x47d6b8[_0x183507(0x196)]['id'],_0x1593f0);}return this;}},_0x5dc917[_0x5c085a(0x1cd)]=_0x2cc6c6([_0x1cddf1(0x5,_0x5ce91a[_0x5c085a(0x1d3)](_0x5ce91a[_0x5c085a(0x17a)]))],_0x5dc917['FSparklineGroup']);class _0x31c83d extends _0x19f330[_0x5c085a(0x18e)]{[_0x5c085a(0x18b)](_0x5df5eb,_0x4e8a8d,_0x290e07){const _0x3f6949=_0x5c085a;if(this['_commandService']['syncExecuteCommand'](_0x47d6b8[_0x3f6949(0x181)]['id'],{'sourceRanges':_0x5df5eb,'targetRanges':_0x4e8a8d,'targetInfo':{'unitId':this[_0x3f6949(0x183)]['getUnitId'](),'subUnitId':this[_0x3f6949(0x1a3)][_0x3f6949(0x198)]()},'config':{'type':_0x290e07}})){const {startRow:_0xa08ead,startColumn:_0x14648f}=_0x4e8a8d[0x0];return this['getSparklineByCell'](_0xa08ead,_0x14648f);}}[_0x5c085a(0x186)](){const _0x28bc37=_0x5c085a;return this['_injector'][_0x28bc37(0x1ce)](_0x47d6b8[_0x28bc37(0x190)])['getSubUnitSparkline'](this[_0x28bc37(0x183)]['getUnitId'](),this[_0x28bc37(0x1a3)][_0x28bc37(0x198)]());}[_0x5c085a(0x1c1)](_0x285e6d){const _0x5f07bb=_0x5c085a,_0x43f84f=this[_0x5f07bb(0x199)][_0x5f07bb(0x1ce)](_0x47d6b8[_0x5f07bb(0x190)]);let _0x12997a;for(let _0x3c728c=0x0;_0x3c728c<_0x285e6d[_0x5f07bb(0x195)];_0x3c728c++){const _0x2b3e5a=_0x285e6d[_0x3c728c],{startRow:_0xe319f7,endRow:_0x156ff4,startColumn:_0x44116d,endColumn:_0x55abc1}=_0x2b3e5a;for(let _0x460223=_0xe319f7;_0x460223<=_0x156ff4;_0x460223++)for(let _0x22bf92=_0x44116d;_0x22bf92<=_0x55abc1;_0x22bf92++){const _0xe3d30e=_0x43f84f['getSparkline'](this[_0x5f07bb(0x183)][_0x5f07bb(0x1b5)](),this['_worksheet']['getSheetId'](),_0x460223,_0x22bf92);if(_0xe3d30e){const _0x29fbb5=_0x43f84f['getSparklineById'](this[_0x5f07bb(0x183)][_0x5f07bb(0x1b5)](),this[_0x5f07bb(0x1a3)][_0x5f07bb(0x198)](),_0xe3d30e);if(_0x29fbb5){_0x12997a=_0x5ce91a['Tools']['deepClone'](_0x29fbb5);break;}}}}_0x12997a&&this['_commandService']['executeCommand'](_0x47d6b8[_0x5f07bb(0x196)]['id'],{'ranges':_0x285e6d,'combine':!0x0,'config':_0x12997a,'isChangeDataSource':!0x1});}[_0x5c085a(0x1b9)](_0x477522){const _0x25ab72=_0x5c085a,_0x4aa023=this['_injector'][_0x25ab72(0x1ce)](_0x47d6b8[_0x25ab72(0x190)]);let _0x35cc43;for(let _0x9a9127=0x0;_0x9a9127<_0x477522[_0x25ab72(0x195)];_0x9a9127++){const _0x6ba0dc=_0x477522[_0x9a9127],{startRow:_0x4d64e1,endRow:_0x3b62b8,startColumn:_0x4c81a3,endColumn:_0x4e9182}=_0x6ba0dc;for(let _0x5d28c0=_0x4d64e1;_0x5d28c0<=_0x3b62b8;_0x5d28c0++)for(let _0x2dccdf=_0x4c81a3;_0x2dccdf<=_0x4e9182;_0x2dccdf++){const _0x110ce5=_0x4aa023[_0x25ab72(0x1d1)](this[_0x25ab72(0x183)][_0x25ab72(0x1b5)](),this[_0x25ab72(0x1a3)][_0x25ab72(0x198)](),_0x5d28c0,_0x2dccdf);if(_0x110ce5){const _0x528d0b=_0x4aa023[_0x25ab72(0x1cc)](this[_0x25ab72(0x183)]['getUnitId'](),this['_worksheet']['getSheetId'](),_0x110ce5);if(_0x528d0b){_0x35cc43=_0x5ce91a[_0x25ab72(0x1ab)][_0x25ab72(0x1c4)](_0x528d0b);break;}}}}_0x35cc43||this[_0x25ab72(0x1b4)][_0x25ab72(0x1c7)](_0x47d6b8[_0x25ab72(0x196)]['id'],{'ranges':_0x477522,'unCombine':!0x0,'config':_0x35cc43,'isChangeDataSource':!0x1});}['getSparklineByCell'](_0x2f56c3,_0x5eed86){const _0x35d2f4=_0x5c085a,_0x362a0f=this['_injector'][_0x35d2f4(0x1ce)](_0x47d6b8[_0x35d2f4(0x190)]),_0xac24b2=this[_0x35d2f4(0x183)]['getUnitId'](),_0x48d4e3=this['_worksheet'][_0x35d2f4(0x198)](),_0x1b8491=_0x362a0f['getSparkline'](_0xac24b2,_0x48d4e3,_0x2f56c3,_0x5eed86);if(_0x1b8491)return this[_0x35d2f4(0x199)]['createInstance'](_0x5dc917['FSparkline'],_0xac24b2,_0x48d4e3,_0x1b8491,_0x2f56c3,_0x5eed86);}[_0x5c085a(0x1d4)](_0x266017,_0x353c95){const _0xc26aa4=_0x5c085a,_0x1dcf8e=this[_0xc26aa4(0x199)][_0xc26aa4(0x1ce)](_0x47d6b8['SparklineDataSourceModel']),_0x2a1571=this[_0xc26aa4(0x183)][_0xc26aa4(0x1b5)](),_0x325788=this[_0xc26aa4(0x1a3)][_0xc26aa4(0x198)](),_0x451e25=_0x1dcf8e[_0xc26aa4(0x1d1)](_0x2a1571,_0x325788,_0x266017,_0x353c95);if(_0x451e25)return this[_0xc26aa4(0x199)]['createInstance'](_0x5dc917[_0xc26aa4(0x1cd)],_0x2a1571,_0x325788,_0x451e25,_0x266017,_0x353c95);}}_0x19f330[_0x5c085a(0x18e)][_0x5c085a(0x1ba)](_0x31c83d);class _0x183474 extends _0x324119['FEnum']{get['SparklineTypeEnum'](){const _0x487ffc=_0x5c085a;return _0x47d6b8[_0x487ffc(0x1c8)];}}_0x324119[_0x5c085a(0x192)][_0x5c085a(0x1ba)](_0x183474);class _0x379149 extends _0x324119['FEventName']{get[_0x5c085a(0x1a9)](){const _0x547fe4=_0x5c085a;return _0x547fe4(0x1a9);}}_0x324119[_0x5c085a(0x1b0)][_0x5c085a(0x1ba)](_0x379149);class _0x9037ae extends _0x324119[_0x5c085a(0x1d0)]{[_0x5c085a(0x1a6)](_0x236370){const _0x25091b=_0x5c085a,_0x598e81=_0x236370[_0x25091b(0x1ce)](_0x5ce91a[_0x25091b(0x197)]);this['registerEventHandler'](this[_0x25091b(0x1b2)]['SheetSparklineChanged'],()=>_0x598e81[_0x25091b(0x1af)](_0x3e9c83=>{const _0x565088=_0x25091b;var _0xcfcf46,_0x296ff9;if(_0x3e9c83['id']===_0x47d6b8[_0x565088(0x196)]['id']){const _0x515e22=_0x3e9c83['params'];if(!_0x515e22[_0x565088(0x1a4)]){const _0x417aea=this[_0x565088(0x1ae)](),_0x537476=_0x417aea==null?void 0x0:_0x417aea[_0x565088(0x1b1)]();if(!_0x417aea||!_0x537476)return;const _0x55d21a=_0x417aea[_0x565088(0x17b)](),_0xc2b4d1=_0x537476[_0x565088(0x198)](),_0x3e9c58=this[_0x565088(0x199)]['get'](_0x167efb[_0x565088(0x179)]),_0x235e6b=this['_injector'][_0x565088(0x1ce)](_0x47d6b8['SparklineDataSourceModel']),_0x15075a=(_0xcfcf46=_0x515e22==null?void 0x0:_0x515e22[_0x565088(0x1a5)])!=null?_0xcfcf46:_0x3e9c58[_0x565088(0x18a)]()['map'](_0x39b249=>_0x39b249[_0x565088(0x17d)]),_0x4e184d=(_0x296ff9=_0x235e6b[_0x565088(0x1c0)]()[_0x565088(0x1bf)][_0x565088(0x1ce)](_0x55d21a))==null?void 0x0:_0x296ff9['get'](_0xc2b4d1),_0x57fb19=new Set();_0x15075a[_0x565088(0x180)](_0x54f2bc=>{const _0xe7cf20=_0x565088;var _0x424d8f;const {startRow:_0x2dfaee,endRow:_0x365b99,startColumn:_0x1cc33a,endColumn:_0x10b60a}=_0x54f2bc;for(let _0x3dffbe=_0x2dfaee;_0x3dffbe<=_0x365b99;_0x3dffbe++)for(let _0x532ffb=_0x1cc33a;_0x532ffb<=_0x10b60a;_0x532ffb++){const _0x469fb8=(_0x424d8f=_0x4e184d==null?void 0x0:_0x4e184d[_0xe7cf20(0x1aa)][_0xe7cf20(0x1cb)](_0x3dffbe,_0x532ffb))==null?void 0x0:_0x424d8f['groupId'];_0x469fb8&&_0x57fb19[_0xe7cf20(0x1c3)](_0x469fb8);}});const _0x285fac=Array[_0x565088(0x19d)](_0x57fb19)[_0x565088(0x17f)](_0x227576=>_0x235e6b['getSparklineById'](_0x55d21a,_0xc2b4d1,_0x227576))[_0x565088(0x19e)](_0x986c14=>!!_0x986c14),_0x1925b6={'workbook':_0x417aea,'worksheet':_0x537476,'sparklines':_0x285fac};if(this[_0x565088(0x1b6)](this[_0x565088(0x1b2)][_0x565088(0x1a9)],_0x1925b6),_0x1925b6[_0x565088(0x1a0)])throw new Error(_0x565088(0x1c2));}}}));}}_0x324119[_0x5c085a(0x1d0)]['extend'](_0x9037ae),Object[_0x5c085a(0x1b3)](_0x5dc917,Symbol['toStringTag'],{'value':_0x5c085a(0x18d)});}));
|