@univerjs-pro/sheets-sparkline 0.8.2-nightly.202506261607 → 0.8.3-nightly.202506271607
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 +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xccd401=_0x2307;(function(_0x4deb03,_0x17655f){const _0x4afe8b=_0x2307,_0x445184=_0x4deb03();while(!![]){try{const _0x4b4c93=-parseInt(_0x4afe8b(0x229))/0x1+parseInt(_0x4afe8b(0x224))/0x2*(-parseInt(_0x4afe8b(0x1cf))/0x3)+-parseInt(_0x4afe8b(0x240))/0x4*(-parseInt(_0x4afe8b(0x1ff))/0x5)+parseInt(_0x4afe8b(0x22d))/0x6*(parseInt(_0x4afe8b(0x20a))/0x7)+parseInt(_0x4afe8b(0x238))/0x8+parseInt(_0x4afe8b(0x1bc))/0x9+parseInt(_0x4afe8b(0x1d8))/0xa;if(_0x4b4c93===_0x17655f)break;else _0x445184['push'](_0x445184['shift']());}catch(_0x5136b6){_0x445184['push'](_0x445184['shift']());}}}(_0x14dc,0xe0370));var qe=Object[_0xccd401(0x202)],Qe=(_0x31075d,_0x4c610a,_0x1f9613)=>_0x4c610a in _0x31075d?qe(_0x31075d,_0x4c610a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f9613}):_0x31075d[_0x4c610a]=_0x1f9613,se=(_0x19389b,_0x29a325,_0x11f8d8)=>Qe(_0x19389b,typeof _0x29a325!=_0xccd401(0x1be)?_0x29a325+'':_0x29a325,_0x11f8d8);import{UniverLicensePlugin as _0x14e199}from'@univerjs-pro/license';import{ObjectMatrix as _0x1048d3,Inject as _0x225e0c,IUniverInstanceService as _0xc51d55,Disposable as _0x338254,isValidRange as _0x1889dc,CellValueType as _0x45cd32,ColorKit as _0x5bc6e7,CommandType as _0x1b32cf,Range as _0x538b0c,IUndoRedoService as _0x1d55f9,generateRandomId as _0x4d91f0,ICommandService as _0x20ed95,Tools as _0x4c1c6f,sequenceExecute as _0x120aff,Rectangle as _0xdfa53d,cellToRange as _0xb7b91f,DisposableCollection as _0x24c66d,RANGE_TYPE as _0x44efa4,UniverInstanceType as _0x4b0b73,IResourceManagerService as _0x1043aa,DependentOn as _0x510078,Injector as _0x375b6d,Plugin as _0x16de03,touchDependencies as _0x3bcf96}from'@univerjs/core';import{getSheetCommandTarget as _0x10d0a8,SheetsSelectionsService as _0xa9ab15,SheetInterceptorService as _0x30cdc7,ClearSelectionAllCommand as _0x191099,CopySheetCommand as _0x4c9751,IExclusiveRangeService as _0x11a8c4,SetRangeValuesMutation as _0x2120d3,ReorderRangeMutation as _0x391ebd,SetRowHiddenMutation as _0x4ea950,SetColHiddenMutation as _0x4993a6,SetRowVisibleMutation as _0x121817,SetColVisibleMutation as _0xcf4297,AddWorksheetMergeCommand as _0xf39eb3,RefRangeService as _0xe8b78e,SetWorksheetActivateCommand as _0x35ffcc,RemoveRowCommand as _0x3d5367,RemoveColCommand as _0x494e5b,adjustRangeOnMutation as _0x4b150d,RemoveRowMutation as _0x436bb2,RemoveColMutation as _0x59e507,InsertColMutation as _0x1ac185,InsertRowMutation as _0x59ec28,MoveColsMutation as _0x49156f,MoveRowsMutation as _0xd667e6,MoveRangeMutation as _0x29c039}from'@univerjs/sheets';import{Subject as _0x55f63b}from'rxjs';function Fe(_0x4dec90,_0x6e258c){const _0x4c01b2=_0xccd401,_0x1671cf=new _0x1048d3(),_0x2fda10=[],_0x3a18e3=_0x4dec90[_0x4c01b2(0x1ed)]>0x1;let _0x4b6657=0x0,_0x3f76e1=0x0;for(const _0x3f82d2 of _0x4dec90)_0x4b6657+=_0x3f82d2[_0x4c01b2(0x255)]-_0x3f82d2['startRow']+0x1,_0x3f76e1+=_0x3f82d2[_0x4c01b2(0x239)]-_0x3f82d2[_0x4c01b2(0x203)]+0x1;for(const _0x5b03ac of _0x6e258c)for(let _0x51d619=_0x5b03ac['startRow'];_0x51d619<=_0x5b03ac[_0x4c01b2(0x255)];_0x51d619++)for(let _0x4cd605=_0x5b03ac[_0x4c01b2(0x203)];_0x4cd605<=_0x5b03ac[_0x4c01b2(0x239)];_0x4cd605++)_0x2fda10[_0x4c01b2(0x1da)]({'row':_0x51d619,'column':_0x4cd605});if(_0x2fda10[_0x4c01b2(0x1ed)]===_0x4b6657)_0x3a18e3?_0x2fda10[_0x4c01b2(0x24d)]((_0x4ff93e,_0x177456)=>{const _0x4ecd28=_0x4c01b2,_0xdd52d0=_0x4dec90[_0x177456],_0x5c78ad={'startRow':_0xdd52d0[_0x4ecd28(0x22c)],'startColumn':_0xdd52d0[_0x4ecd28(0x203)],'endRow':_0xdd52d0[_0x4ecd28(0x22c)],'endColumn':_0xdd52d0[_0x4ecd28(0x239)]};_0x1671cf[_0x4ecd28(0x1f0)](_0x4ff93e[_0x4ecd28(0x227)],_0x4ff93e['column'],_0x5c78ad);}):_0x2fda10[_0x4c01b2(0x24d)]((_0x28670c,_0x12b73e)=>{const _0x59b0e4=_0x4c01b2,_0x1f85de=_0x4dec90[0x0],_0x254e3f={'startRow':_0x1f85de[_0x59b0e4(0x22c)]+_0x12b73e,'startColumn':_0x1f85de[_0x59b0e4(0x203)],'endRow':_0x1f85de[_0x59b0e4(0x22c)]+_0x12b73e,'endColumn':_0x1f85de[_0x59b0e4(0x239)]};_0x1671cf[_0x59b0e4(0x1f0)](_0x28670c[_0x59b0e4(0x227)],_0x28670c[_0x59b0e4(0x21c)],_0x254e3f);});else{if(_0x2fda10['length']===_0x3f76e1)_0x3a18e3?_0x2fda10[_0x4c01b2(0x24d)]((_0x22752a,_0x5dda7e)=>{const _0x1196bd=_0x4c01b2,_0x7e8696=_0x4dec90[_0x5dda7e],_0x5880e6={'startRow':_0x7e8696[_0x1196bd(0x22c)],'startColumn':_0x7e8696[_0x1196bd(0x203)],'endRow':_0x7e8696[_0x1196bd(0x255)],'endColumn':_0x7e8696[_0x1196bd(0x203)]};_0x1671cf[_0x1196bd(0x1f0)](_0x22752a[_0x1196bd(0x227)],_0x22752a[_0x1196bd(0x21c)],_0x5880e6);}):_0x2fda10[_0x4c01b2(0x24d)]((_0x2b00fe,_0x42ca84)=>{const _0x188149=_0x4c01b2,_0x1feb8f=_0x4dec90[0x0],_0x304dc5={'startRow':_0x1feb8f[_0x188149(0x22c)],'startColumn':_0x1feb8f[_0x188149(0x203)]+_0x42ca84,'endRow':_0x1feb8f['endRow'],'endColumn':_0x1feb8f[_0x188149(0x203)]+_0x42ca84};_0x1671cf[_0x188149(0x1f0)](_0x2b00fe[_0x188149(0x227)],_0x2b00fe['column'],_0x304dc5);});else{if(_0x2fda10['length']===_0x4dec90[_0x4c01b2(0x1ed)])_0x4dec90[_0x4c01b2(0x1d2)](_0x56b87f=>!(_0x56b87f[_0x4c01b2(0x22c)]!==_0x56b87f['endRow']&&_0x56b87f[_0x4c01b2(0x203)]!==_0x56b87f['endColumn']))&&_0x2fda10[_0x4c01b2(0x24d)]((_0x5f5705,_0x80dea4)=>{const _0x1d8289=_0x4c01b2,_0xe195e7=_0x4dec90[_0x80dea4];_0x1671cf[_0x1d8289(0x1f0)](_0x5f5705[_0x1d8289(0x227)],_0x5f5705[_0x1d8289(0x21c)],_0xe195e7);});else throw new Error(_0x4c01b2(0x264));}}return _0x1671cf;}const Ke=_0xccd401(0x21d),Le={'standard':[_0xccd401(0x1fb),_0xccd401(0x1bf)],'specialty':[_0xccd401(0x1c1),'rgb(30,177,189)'],'distinctive':[_0xccd401(0x1e8),_0xccd401(0x276)],'soft':[_0xccd401(0x25f),'rgb(244,104,249)'],'fresh':['rgb(46,187,122)',_0xccd401(0x1ee)]},on=[_0xccd401(0x1dd),_0xccd401(0x22e),_0xccd401(0x21e),_0xccd401(0x1d4),_0xccd401(0x1c3),_0xccd401(0x20b)];var Xe=(_0x38d718=>(_0x38d718[_0xccd401(0x275)]=_0xccd401(0x250),_0x38d718['SPECIALTY']='specialty',_0x38d718[_0xccd401(0x1fd)]='distinctive',_0x38d718[_0xccd401(0x214)]=_0xccd401(0x201),_0x38d718['FRESH']=_0xccd401(0x1c2),_0x38d718[_0xccd401(0x270)]=_0xccd401(0x1ce),_0x38d718))(Xe||{}),Dt=(_0x4d1f78=>(_0x4d1f78[_0x4d1f78[_0xccd401(0x1e1)]=0x1]=_0xccd401(0x1e1),_0x4d1f78[_0x4d1f78['BAR_CHART']=0x2]=_0xccd401(0x230),_0x4d1f78[_0x4d1f78['PROFIT_AND_LOSS_CHART']=0x3]=_0xccd401(0x222),_0x4d1f78[_0x4d1f78[_0xccd401(0x257)]=0x4]=_0xccd401(0x257),_0x4d1f78))(Dt||{}),J=(_0x3943ab=>(_0x3943ab[_0xccd401(0x1db)]=_0xccd401(0x266),_0x3943ab[_0xccd401(0x24f)]=_0xccd401(0x22b),_0x3943ab[_0xccd401(0x26b)]=_0xccd401(0x210),_0x3943ab))(J||{}),Ee=(_0x2514f4=>(_0x2514f4[_0x2514f4['SELF_EXTREMUM']=0x1]='SELF_EXTREMUM',_0x2514f4[_0x2514f4[_0xccd401(0x24a)]=0x2]=_0xccd401(0x24a),_0x2514f4[_0x2514f4['CUSTOM_EXTREMUM']=0x3]=_0xccd401(0x1c8),_0x2514f4))(Ee||{}),Et=Object[_0xccd401(0x1d0)],Vt=(_0x40f2b5,_0x2b4e31,_0x4c4cb1,_0x33c9ff)=>{const _0xf3d56c=_0xccd401;for(var _0x455f6c=_0x33c9ff>0x1?void 0x0:_0x33c9ff?Et(_0x2b4e31,_0x4c4cb1):_0x2b4e31,_0x1fdf27=_0x40f2b5[_0xf3d56c(0x1ed)]-0x1,_0x39520c;_0x1fdf27>=0x0;_0x1fdf27--)(_0x39520c=_0x40f2b5[_0x1fdf27])&&(_0x455f6c=_0x39520c(_0x455f6c)||_0x455f6c);return _0x455f6c;},yt=(_0x2de2a6,_0x553dc9)=>(_0x5bdee6,_0x195eb3)=>_0x553dc9(_0x5bdee6,_0x195eb3,_0x2de2a6);let x=class extends _0x338254{constructor(_0x5f3209){const _0x2a1074=_0xccd401;super(),se(this,_0x2a1074(0x232),new Map()),se(this,'_sparklineAnchorMap',new Map()),se(this,_0x2a1074(0x1f9),new _0x55f63b()),se(this,_0x2a1074(0x1e5),this[_0x2a1074(0x1f9)]['asObservable']()),this[_0x2a1074(0x1f5)]=_0x5f3209;}['_ensureConfigMap'](_0x43cc5d,_0x108ae0){const _0x44fcd1=_0xccd401;let _0x16b265=this[_0x44fcd1(0x232)][_0x44fcd1(0x24c)](_0x43cc5d);_0x16b265||(_0x16b265=new Map(),this[_0x44fcd1(0x232)][_0x44fcd1(0x256)](_0x43cc5d,_0x16b265));let _0x4d26cf=_0x16b265[_0x44fcd1(0x24c)](_0x108ae0);return _0x4d26cf||(_0x4d26cf=new Map(),_0x16b265[_0x44fcd1(0x256)](_0x108ae0,_0x4d26cf)),_0x4d26cf;}[_0xccd401(0x1f7)](_0x4a6d17,_0x45fc9d){const _0x172169=_0xccd401;let _0xbe7fc0=this[_0x172169(0x20e)][_0x172169(0x24c)](_0x4a6d17);_0xbe7fc0||(_0xbe7fc0=new Map(),this[_0x172169(0x20e)][_0x172169(0x256)](_0x4a6d17,_0xbe7fc0));let _0x2cb2b3=_0xbe7fc0[_0x172169(0x24c)](_0x45fc9d);return _0x2cb2b3||(_0x2cb2b3={'matrix':new _0x1048d3(),'extra':{}},_0xbe7fc0[_0x172169(0x256)](_0x45fc9d,_0x2cb2b3)),_0x2cb2b3;}[_0xccd401(0x213)](_0x170ff2,_0x374ad2,_0x2646c6,_0x382bec=_0xccd401(0x256)){const _0x4881c1=_0xccd401;var _0x3e5681,_0x57e92b,_0x335f67,_0x501733,_0x432574,_0x9837d0,_0x543e5a,_0x3c68c0,_0x1940de,_0x2b999a,_0x6497a0,_0x1e5c79,_0x5f4289;const _0x4b116d=(_0x57e92b=(_0x3e5681=this[_0x4881c1(0x232)]['get'](_0x170ff2))==null?void 0x0:_0x3e5681[_0x4881c1(0x24c)](_0x374ad2))==null?void 0x0:_0x57e92b[_0x4881c1(0x24c)](_0x2646c6);if(!_0x4b116d)return;const _0x4ecb6a=_0x10d0a8(this[_0x4881c1(0x1f5)],{'unitId':_0x170ff2,'subUnitId':_0x374ad2});if(!_0x4ecb6a)return;const _0x1e3e6b=this[_0x4881c1(0x1f7)](_0x170ff2,_0x374ad2),{extra:_0x4753ff,matrix:_0x42646e}=_0x1e3e6b,{worksheet:_0x7f2dbe}=_0x4ecb6a;let _0x22a3a6=Number[_0x4881c1(0x23b)],_0x2d0121=Number['MAX_SAFE_INTEGER'];const _0x4ae4c6=(_0x335f67=_0x4b116d[_0x4881c1(0x205)][_0x4881c1(0x1f6)])!=null?_0x335f67:!0x1;_0x4b116d[_0x4881c1(0x1d6)][_0x4881c1(0x1fa)]((_0x1def31,_0x520a42,_0x12740c)=>{const _0x204af3=_0x4881c1;var _0x4a6402,_0x35e829,_0xfeef7e;const _0x45adb2=_0x12740c;let _0x3b0240=Number['MIN_SAFE_INTEGER'],_0x517d96=Number[_0x204af3(0x26d)],_0x543aa8=0x0,_0x117b69=0x0;const _0x5262d2=[];if(!_0x1889dc(_0x45adb2))_0x42646e[_0x204af3(0x1f0)](_0x1def31,_0x520a42,{'groupId':_0x2646c6,'data':[],'max':_0x3b0240,'min':_0x517d96,'highIndex':_0x543aa8,'lowIndex':_0x117b69,'negativeIndexes':_0x5262d2});else{const _0x3e3bbe=[];for(let _0x550362=_0x45adb2[_0x204af3(0x22c)];_0x550362<=_0x45adb2['endRow'];_0x550362++){for(let _0x15c532=_0x45adb2[_0x204af3(0x203)];_0x15c532<=_0x45adb2[_0x204af3(0x239)];_0x15c532++){const _0x1f3054=_0x7f2dbe[_0x204af3(0x23f)](_0x550362),_0x33f252=_0x7f2dbe[_0x204af3(0x1f2)](_0x15c532);if(!_0x4ae4c6&&(!_0x1f3054||!_0x33f252))continue;let _0x4e9175=0x0;const _0x485ec1=((_0x4a6402=_0x7f2dbe[_0x204af3(0x278)](_0x550362,_0x15c532))==null?void 0x0:_0x4a6402['v'])!==void 0x0?_0x7f2dbe[_0x204af3(0x278)](_0x550362,_0x15c532):_0x7f2dbe[_0x204af3(0x207)](_0x550362,_0x15c532);if(!_0x485ec1||_0x485ec1['v']===void 0x0||_0x485ec1['v']===null){const _0x3d79cc=(_0x35e829=_0x4b116d[_0x204af3(0x205)]['emptyShowAs'])!=null?_0x35e829:J[_0x204af3(0x1db)];_0x3d79cc===J['ZERO_VALUE']?_0x4e9175=0x0:_0x3d79cc===J[_0x204af3(0x1db)]?_0x4e9175=_0x204af3(0x233):_0x3d79cc===J[_0x204af3(0x26b)]&&(_0x4e9175=_0x204af3(0x265));}else{if(_0x485ec1['t']===_0x45cd32[_0x204af3(0x1df)]||_0x485ec1['t']===_0x45cd32[_0x204af3(0x1c5)]){const _0x157618=(_0xfeef7e=_0x4b116d['config'][_0x204af3(0x1e0)])!=null?_0xfeef7e:J[_0x204af3(0x1db)];_0x157618===J['ZERO_VALUE']?_0x4e9175=0x0:_0x157618===J[_0x204af3(0x1db)]?_0x4e9175=_0x204af3(0x233):_0x157618===J[_0x204af3(0x26b)]&&(_0x4e9175='u-connect');}else _0x485ec1['t']===_0x45cd32['BOOLEAN']?_0x4e9175=_0x485ec1['v']?0x1:0x0:_0x485ec1['t']===_0x45cd32[_0x204af3(0x1c6)]?_0x4e9175=Number(_0x485ec1['v']):_0x4e9175=_0x485ec1['v'];}if(_0x3e3bbe[_0x204af3(0x1da)](_0x4e9175),typeof _0x4e9175==_0x204af3(0x26c)){_0x3b0240=Math[_0x204af3(0x1c9)](_0x3b0240,_0x4e9175),_0x22a3a6=Math[_0x204af3(0x1c9)](_0x22a3a6,_0x4e9175),_0x2d0121=Math['min'](_0x2d0121,_0x4e9175),_0x517d96=Math[_0x204af3(0x1fe)](_0x517d96,_0x4e9175);const _0x34249a=typeof _0x3e3bbe[_0x543aa8]==_0x204af3(0x26c)?Number(_0x3e3bbe[_0x543aa8]):Number[_0x204af3(0x23b)];_0x4e9175>_0x34249a&&(_0x543aa8=_0x3e3bbe[_0x204af3(0x1ed)]-0x1);const _0x16950c=typeof _0x3e3bbe[_0x117b69]==_0x204af3(0x26c)?Number(_0x3e3bbe[_0x117b69]):Number[_0x204af3(0x26d)];_0x4e9175<_0x16950c&&(_0x117b69=_0x3e3bbe[_0x204af3(0x1ed)]-0x1),_0x4e9175<0x0&&_0x5262d2[_0x204af3(0x1da)](_0x3e3bbe[_0x204af3(0x1ed)]-0x1);}}_0x42646e[_0x204af3(0x1f0)](_0x1def31,_0x520a42,{'groupId':_0x2646c6,'data':_0x3e3bbe,'max':_0x3b0240,'min':_0x517d96,'highIndex':_0x543aa8,'lowIndex':_0x117b69,'negativeIndexes':_0x5262d2});}}});let _0x4a068f=_0x22a3a6;((_0x501733=_0x4b116d[_0x4881c1(0x205)][_0x4881c1(0x1f8)])==null?void 0x0:_0x501733[_0x4881c1(0x21f)])===Ee['CUSTOM_EXTREMUM']&&(_0x4a068f=(_0x9837d0=(_0x432574=_0x4b116d['config'][_0x4881c1(0x1f8)])==null?void 0x0:_0x432574[_0x4881c1(0x249)])!=null?_0x9837d0:_0x22a3a6);let _0x2de0c3=_0x2d0121;((_0x543e5a=_0x4b116d[_0x4881c1(0x205)][_0x4881c1(0x26e)])==null?void 0x0:_0x543e5a[_0x4881c1(0x21f)])===Ee[_0x4881c1(0x1c8)]&&(_0x2de0c3=(_0x1940de=(_0x3c68c0=_0x4b116d[_0x4881c1(0x205)][_0x4881c1(0x26e)])==null?void 0x0:_0x3c68c0[_0x4881c1(0x249)])!=null?_0x1940de:_0x2d0121);const _0xae14c8=(_0x2b999a=_0x4b116d[_0x4881c1(0x205)][_0x4881c1(0x269)])!=null?_0x2b999a:Xe[_0x4881c1(0x275)],_0x4623ea=(_0x5f4289=(_0x1e5c79=_0x4b116d[_0x4881c1(0x205)]['seriesColor'])!=null?_0x1e5c79:(_0x6497a0=Le[_0xae14c8])==null?void 0x0:_0x6497a0[0x0])!=null?_0x5f4289:Le[_0x4881c1(0x250)][0x0],_0x22b9e2=new _0x5bc6e7(_0x4623ea),_0x41cb77=_0x22b9e2[_0x4881c1(0x272)](0.2)[_0x4881c1(0x24e)](),_0x2910fd=_0x22b9e2[_0x4881c1(0x272)](0.05)[_0x4881c1(0x24e)]();_0x4753ff[_0x2646c6]={'groupMax':_0x22a3a6,'groupMin':_0x2d0121,'showMax':_0x4a068f,'showMin':_0x2de0c3,'startGradient':_0x41cb77,'endGradient':_0x2910fd},this[_0x4881c1(0x1f9)]['next']({'unitId':_0x170ff2,'subUnitId':_0x374ad2,'groupId':_0x2646c6,'config':_0x4b116d,'type':_0x382bec});}[_0xccd401(0x273)](_0x4492bb,_0x533234,_0x397dcc,_0x57818c){const _0x5c9caf=_0xccd401;this['_ensureConfigMap'](_0x4492bb,_0x533234)[_0x5c9caf(0x256)](_0x397dcc,_0x57818c),this['updateSparklineExtraNum'](_0x4492bb,_0x533234,_0x397dcc,_0x5c9caf(0x1eb));}['setSparkline'](_0xe319d3,_0xa916db,_0x1003be,_0x442b30){const _0x518c07=_0xccd401;var _0x4650bc;const _0x35acc0=(_0x4650bc=this[_0x518c07(0x232)]['get'](_0xe319d3))==null?void 0x0:_0x4650bc[_0x518c07(0x24c)](_0xa916db);_0x1003be[_0x518c07(0x24d)](_0x384e9b=>{const _0x4ae7f2=_0x518c07;_0x35acc0!=null&&_0x35acc0[_0x4ae7f2(0x1c7)](_0x384e9b)&&(_0x35acc0['set'](_0x384e9b,_0x442b30),this[_0x4ae7f2(0x213)](_0xe319d3,_0xa916db,_0x384e9b));});}[_0xccd401(0x22a)](_0x185e4f,_0x4e6ab,_0x3f4dcf){const _0x206290=_0xccd401;var _0x3e4ab3,_0x59ccc0;const _0x5df054=this[_0x206290(0x232)][_0x206290(0x24c)](_0x185e4f);if(_0x5df054){const _0x42c665=_0x5df054[_0x206290(0x24c)](_0x4e6ab);if(_0x42c665){_0x42c665[_0x206290(0x1bd)](_0x3f4dcf);const _0x11b894=(_0x3e4ab3=this[_0x206290(0x20e)][_0x206290(0x24c)](_0x185e4f))==null?void 0x0:_0x3e4ab3[_0x206290(0x24c)](_0x4e6ab);(_0x59ccc0=_0x11b894==null?void 0x0:_0x11b894[_0x206290(0x1ea)])==null||_0x59ccc0['forValue']((_0x1eb837,_0x56fc4a,_0x54aefd)=>{const _0x389a0f=_0x206290;(_0x54aefd==null?void 0x0:_0x54aefd[_0x389a0f(0x20f)])===_0x3f4dcf&&(_0x11b894==null||_0x11b894[_0x389a0f(0x1ea)]['realDeleteValue'](_0x1eb837,_0x56fc4a));}),this[_0x206290(0x1f9)][_0x206290(0x26a)]({'unitId':_0x185e4f,'subUnitId':_0x4e6ab,'groupId':_0x3f4dcf,'type':_0x206290(0x23e)});}}}[_0xccd401(0x262)](_0x47282e,_0x3b285e,_0x5bf163,_0x4f6d05){const _0x1fcfab=_0xccd401;var _0x1d3bf5,_0x4f241a,_0x4c3058,_0x4caca1;const _0x4282a0=(_0x1d3bf5=this[_0x1fcfab(0x20e)][_0x1fcfab(0x24c)](_0x47282e))==null?void 0x0:_0x1d3bf5[_0x1fcfab(0x24c)](_0x3b285e),_0x5cbe28=_0x4282a0==null?void 0x0:_0x4282a0[_0x1fcfab(0x1ea)]['getValue'](_0x5bf163,_0x4f6d05);if(_0x5cbe28){const {groupId:_0x2adc47}=_0x5cbe28,_0x4290b4=(_0x4f241a=this['_sparklineModel'][_0x1fcfab(0x24c)](_0x47282e))==null?void 0x0:_0x4f241a[_0x1fcfab(0x24c)](_0x3b285e);(_0x4c3058=_0x4290b4==null?void 0x0:_0x4290b4['get'](_0x2adc47))==null||_0x4c3058[_0x1fcfab(0x1d6)][_0x1fcfab(0x1e9)](_0x5bf163,_0x4f6d05),(_0x4caca1=_0x4290b4==null?void 0x0:_0x4290b4[_0x1fcfab(0x24c)](_0x2adc47))!=null&&_0x4caca1[_0x1fcfab(0x1d6)][_0x1fcfab(0x25b)]()||_0x4290b4==null||_0x4290b4[_0x1fcfab(0x1bd)](_0x2adc47),_0x4282a0==null||_0x4282a0[_0x1fcfab(0x1ea)][_0x1fcfab(0x1e9)](_0x5bf163,_0x4f6d05),this['_updateConfig$']['next']({'unitId':_0x47282e,'subUnitId':_0x3b285e,'groupId':_0x2adc47,'type':_0x1fcfab(0x23e)});}}['clearSparklineCache'](_0x155cea,_0x4960c5,_0x5c4d2e){const _0x2e2f4d=_0xccd401;var _0x123d11,_0x479e70,_0x2827dc,_0x3f7720;const _0x2f99f1=(_0x2827dc=(_0x479e70=(_0x123d11=this[_0x2e2f4d(0x232)][_0x2e2f4d(0x24c)](_0x155cea))==null?void 0x0:_0x123d11[_0x2e2f4d(0x24c)](_0x4960c5))==null?void 0x0:_0x479e70[_0x2e2f4d(0x24c)](_0x5c4d2e))==null?void 0x0:_0x2827dc[_0x2e2f4d(0x1d6)],_0x576381=(_0x3f7720=this[_0x2e2f4d(0x20e)]['get'](_0x155cea))==null?void 0x0:_0x3f7720[_0x2e2f4d(0x24c)](_0x4960c5);if(_0x2f99f1&&_0x576381){const {matrix:_0x3b9f86,extra:_0x31fab8}=_0x576381;_0x2f99f1[_0x2e2f4d(0x1fa)]((_0x1c5130,_0x16c8eb,_0x406a88)=>{const _0x3f8161=_0x2e2f4d;_0x3b9f86[_0x3f8161(0x1e9)](_0x1c5130,_0x16c8eb);}),delete _0x31fab8[_0x5c4d2e];}}['getSubUnitSparkline'](_0x5c0e77,_0x1b999d){const _0x529ebb=_0xccd401;var _0x5df18d;return(_0x5df18d=this[_0x529ebb(0x232)]['get'](_0x5c0e77))==null?void 0x0:_0x5df18d['get'](_0x1b999d);}[_0xccd401(0x1ec)](_0x3160b0,_0x134dd2,_0xa1e72){const _0x2166cc=_0xccd401;var _0x1c194f,_0x33d8b2;return(_0x33d8b2=(_0x1c194f=this[_0x2166cc(0x232)][_0x2166cc(0x24c)](_0x3160b0))==null?void 0x0:_0x1c194f[_0x2166cc(0x24c)](_0x134dd2))==null?void 0x0:_0x33d8b2[_0x2166cc(0x24c)](_0xa1e72);}['getSparkline'](_0x254d58,_0x3f35ce,_0x10157a,_0x1ad3be){const _0x593284=_0xccd401;var _0x54ca4e,_0x38578a,_0x2d528f;return(_0x2d528f=(_0x38578a=(_0x54ca4e=this[_0x593284(0x20e)][_0x593284(0x24c)](_0x254d58))==null?void 0x0:_0x54ca4e[_0x593284(0x24c)](_0x3f35ce))==null?void 0x0:_0x38578a[_0x593284(0x1ea)][_0x593284(0x259)](_0x10157a,_0x1ad3be))==null?void 0x0:_0x2d528f[_0x593284(0x20f)];}[_0xccd401(0x1d7)](_0x46d201,_0xa8791a){const _0x49209a=_0xccd401;var _0x3a8197;const _0x550957=this[_0x49209a(0x1f7)](_0x46d201,_0xa8791a);_0x550957[_0x49209a(0x1ea)][_0x49209a(0x1fa)]((_0x351fe0,_0x377b91,_0x67936e)=>{const _0x420708=_0x49209a;_0x550957['matrix'][_0x420708(0x1e9)](_0x351fe0,_0x377b91);});const _0x4febfe=(_0x3a8197=this['_sparklineModel'][_0x49209a(0x24c)](_0x46d201))==null?void 0x0:_0x3a8197[_0x49209a(0x24c)](_0xa8791a);if(_0x4febfe){for(const [_0x5b72ce,_0x4f534f]of _0x4febfe)this[_0x49209a(0x213)](_0x46d201,_0xa8791a,_0x5b72ce);}}[_0xccd401(0x21b)](){const _0x445c4c=_0xccd401;return{'sparklineModel':this[_0x445c4c(0x232)],'sparklineAnchorMap':this[_0x445c4c(0x20e)]};}['toJSON'](_0x312706){const _0x535ce4=_0xccd401,_0x1d7822={};if(this[_0x535ce4(0x232)][_0x535ce4(0x1c7)](_0x312706)){_0x1d7822[_0x312706]={};const _0x4d9ae0=this[_0x535ce4(0x232)]['get'](_0x312706);_0x4d9ae0!=null&&_0x4d9ae0[_0x535ce4(0x1de)]&&Array[_0x535ce4(0x219)](_0x4d9ae0[_0x535ce4(0x226)]())['forEach'](_0x21ecd6=>{const _0x3900a3=_0x535ce4;_0x1d7822[_0x312706][_0x21ecd6]={};const _0x32fef1=_0x4d9ae0['get'](_0x21ecd6);_0x32fef1!=null&&_0x32fef1[_0x3900a3(0x1de)]&&Array[_0x3900a3(0x219)](_0x32fef1['keys']())['forEach'](_0x2c3d59=>{const _0x54837d=_0x3900a3,_0x51285b=_0x32fef1[_0x54837d(0x24c)](_0x2c3d59);_0x51285b&&(_0x1d7822[_0x312706][_0x21ecd6][_0x2c3d59]={'config':_0x51285b[_0x54837d(0x205)],'sparklines':_0x51285b[_0x54837d(0x1d6)]['getMatrix']()});});});}return _0x1d7822;}['fromJSON'](_0x2bb076){const _0x5503b0=_0xccd401;if(!_0x2bb076)return;Object[_0x5503b0(0x226)](_0x2bb076)[_0x5503b0(0x24d)](_0x3fce8a=>{const _0xf8630e=_0x5503b0,_0x2325a9=_0x2bb076[_0x3fce8a];_0x2325a9&&Object[_0xf8630e(0x226)](_0x2325a9)[_0xf8630e(0x24d)](_0x4372b0=>{const _0xeef46c=_0xf8630e,_0x15b036=_0x2325a9[_0x4372b0];_0x15b036&&Object[_0xeef46c(0x226)](_0x15b036)[_0xeef46c(0x24d)](_0x31aa8f=>{const _0x188fb7=_0xeef46c,_0x94dd40=_0x15b036[_0x31aa8f];if(_0x94dd40){const _0x230c7f={'config':_0x94dd40[_0x188fb7(0x205)],'sparklines':new _0x1048d3(_0x94dd40['sparklines'])};this['addSparkline'](_0x3fce8a,_0x4372b0,_0x31aa8f,_0x230c7f);}});});});}[_0xccd401(0x253)](_0x376992){const _0x37d126=_0xccd401,_0x2a05f6=this[_0x37d126(0x232)][_0x37d126(0x24c)](_0x376992);if(_0x2a05f6){for(const [_0x5ce02c]of _0x2a05f6){const _0xcb4240=_0x2a05f6[_0x37d126(0x24c)](_0x5ce02c);if(_0xcb4240){for(const [_0x451508]of _0xcb4240)this[_0x37d126(0x242)](_0x376992,_0x5ce02c,_0x451508);}}this[_0x37d126(0x232)][_0x37d126(0x1bd)](_0x376992);}}};x=Vt([yt(0x0,_0x225e0c(_0xc51d55))],x);const V={'id':_0xccd401(0x251),'type':_0x1b32cf[_0xccd401(0x20c)],'handler':(_0x880747,_0x34d6e2)=>{const _0x15f302=_0xccd401;if(!_0x34d6e2)return!0x1;const {sparklineConfigMap:_0x4d847c,unitId:_0xbf14f,subUnitId:_0x3b2093}=_0x34d6e2,_0x55db1f=_0x880747[_0x15f302(0x24c)](x);return Object[_0x15f302(0x1ca)](_0x4d847c)[_0x15f302(0x24d)](([_0x5ad1cd,_0x189c7f])=>{const _0x3b3f45=_0x15f302,_0xa77829={'config':_0x189c7f[_0x3b3f45(0x205)],'sparklines':new _0x1048d3(_0x189c7f[_0x3b3f45(0x1d6)])};_0x55db1f['addSparkline'](_0xbf14f,_0x3b2093,_0x5ad1cd,_0xa77829);}),!0x0;}},y={'id':'sheet.mutation.remove-sparkline','type':_0x1b32cf['MUTATION'],'handler':(_0x4d6662,_0x1f2ba3)=>{const _0x4bd9a0=_0xccd401;if(!_0x1f2ba3)return!0x1;const {unitId:_0x42865b,subUnitId:_0x56f389,ranges:_0x1ead10,isSingle:_0x14ec51,groupIds:_0x3ee942}=_0x1f2ba3,_0x40f57a=_0x4d6662[_0x4bd9a0(0x24c)](x);return _0x3ee942?(_0x3ee942[_0x4bd9a0(0x24d)](_0x4e00f1=>{_0x40f57a['removeSparkline'](_0x42865b,_0x56f389,_0x4e00f1);}),!0x0):_0x1ead10?(_0x1ead10[_0x4bd9a0(0x24d)](_0x57614f=>{const _0x2bff3e=_0x4bd9a0;_0x538b0c[_0x2bff3e(0x1fc)](_0x57614f,(_0x57d4c9,_0x1ecb9e)=>{const _0x304914=_0x2bff3e,_0xf81e43=_0x40f57a[_0x304914(0x268)](_0x42865b,_0x56f389,_0x57d4c9,_0x1ecb9e);_0xf81e43&&(_0x14ec51?_0x40f57a[_0x304914(0x262)](_0x42865b,_0x56f389,_0x57d4c9,_0x1ecb9e):_0x40f57a['removeSparkline'](_0x42865b,_0x56f389,_0xf81e43));});}),!0x0):!0x1;}},Nt={'id':_0xccd401(0x1e3),'type':_0x1b32cf[_0xccd401(0x248)],'handler':(_0x22c8b6,_0x2e22ab)=>{const _0x353506=_0xccd401;if(!_0x2e22ab)return!0x1;const {sourceRanges:_0x546fbc,targetRanges:_0x2b9a6c,config:_0x406b1e}=_0x2e22ab,_0x13a679=_0x22c8b6[_0x353506(0x24c)](_0x1d55f9),_0x537285='g_'+_0x4d91f0(0x6),_0x316d6b=Fe(_0x546fbc,_0x2b9a6c),_0x5c7a92={'config':_0x406b1e!=null?_0x406b1e:{},'sparklines':_0x316d6b[_0x353506(0x235)]()},_0x4852c5=_0x22c8b6[_0x353506(0x24c)](_0xc51d55),_0x2ca889=_0x22c8b6[_0x353506(0x24c)](x),_0x442825=_0x10d0a8(_0x4852c5);if(!_0x442825)return!0x1;const {unitId:_0x289804,subUnitId:_0x41c04c}=_0x442825,_0x4808d3=_0x22c8b6[_0x353506(0x24c)](_0x20ed95),_0x4121bb=[],_0x47f9c8=[],_0x2845c3={},_0x15b523={},_0x1fe58c=new Set([_0x537285]);_0x316d6b[_0x353506(0x1fa)]((_0x28cf28,_0x3b5da1,_0x560cc7)=>{const _0x27cb7a=_0x353506,_0x51f0a2=_0x2ca889[_0x27cb7a(0x268)](_0x289804,_0x41c04c,_0x28cf28,_0x3b5da1);if(_0x51f0a2){const _0xa8a3d1=_0x2ca889['getSparklineById'](_0x289804,_0x41c04c,_0x51f0a2);if(_0xa8a3d1){_0x1fe58c[_0x27cb7a(0x1eb)](_0x51f0a2);let _0x4b2d59=_0x2845c3[_0x51f0a2],_0x25272=_0x15b523[_0x51f0a2];_0x25272||(_0x25272={'config':_0x4c1c6f['deepClone'](_0xa8a3d1['config']),'sparklines':new _0x1048d3(_0xa8a3d1[_0x27cb7a(0x1d6)]['clone']())},_0x15b523[_0x51f0a2]=_0x25272),_0x4b2d59||(_0x4b2d59={'config':_0x4c1c6f['deepClone'](_0xa8a3d1['config']),'sparklines':_0xa8a3d1[_0x27cb7a(0x1d6)][_0x27cb7a(0x1e2)]()},_0x2845c3[_0x51f0a2]=_0x4b2d59),_0x25272['sparklines'][_0x27cb7a(0x1e9)](_0x28cf28,_0x3b5da1);}}});const _0x416b90={};return Object[_0x353506(0x1ca)](_0x15b523)[_0x353506(0x24d)](([_0x18af3b,_0x6bc4b9])=>{const _0x3db9ea=_0x353506;_0x6bc4b9['sparklines'][_0x3db9ea(0x1e7)]()&&(_0x416b90[_0x18af3b]={'config':_0x6bc4b9['config'],'sparklines':_0x6bc4b9[_0x3db9ea(0x1d6)][_0x3db9ea(0x1e2)]()});}),_0x416b90[_0x537285]=_0x5c7a92,_0x4121bb[_0x353506(0x1da)]({'id':y['id'],'params':{'unitId':_0x289804,'subUnitId':_0x41c04c,'groupIds':Array[_0x353506(0x219)](_0x1fe58c),'isSingle':!0x1}}),_0x1fe58c[_0x353506(0x1de)]>0x1&&(_0x47f9c8[_0x353506(0x1da)]({'id':y['id'],'params':{'unitId':_0x289804,'subUnitId':_0x41c04c,'groupIds':Array[_0x353506(0x219)](_0x1fe58c),'isSingle':!0x1}}),_0x4121bb[_0x353506(0x1da)]({'id':V['id'],'params':{'unitId':_0x289804,'subUnitId':_0x41c04c,'sparklineConfigMap':_0x2845c3}})),_0x47f9c8[_0x353506(0x1da)]({'id':V['id'],'params':{'unitId':_0x289804,'subUnitId':_0x41c04c,'sparklineConfigMap':_0x416b90}}),_0x120aff(_0x47f9c8,_0x4808d3),_0x13a679[_0x353506(0x277)]({'unitID':_0x289804,'undoMutations':_0x4121bb,'redoMutations':_0x47f9c8}),!0x0;}},Ot={'id':'sheet.command.remove-sparkline','type':_0x1b32cf[_0xccd401(0x248)],'handler':(_0x5c9723,_0x111a12)=>{const _0x1f9f67=_0xccd401;var _0x35ef9b;const {isSingle:_0x11500f=!0x0}=_0x111a12||{},_0x1dd399=_0x5c9723[_0x1f9f67(0x24c)](_0x20ed95),_0x1817f7=_0x5c9723[_0x1f9f67(0x24c)](_0xc51d55),_0x46b5d3=_0x5c9723[_0x1f9f67(0x24c)](x),_0x80fd14=_0x5c9723[_0x1f9f67(0x24c)](_0x1d55f9),_0x29c797=_0x10d0a8(_0x1817f7);if(!_0x29c797)return!0x1;const _0x4ce516=_0x5c9723[_0x1f9f67(0x24c)](_0xa9ab15),_0x7d359a=(_0x35ef9b=_0x111a12==null?void 0x0:_0x111a12[_0x1f9f67(0x1cc)])!=null?_0x35ef9b:_0x4ce516['getCurrentSelections']()[_0x1f9f67(0x1d5)](_0x27458f=>_0x27458f[_0x1f9f67(0x1d3)]),{unitId:_0x229090,subUnitId:_0x5e2665}=_0x29c797,_0x18255f=[],_0x41513f=[];_0x18255f['push']({'id':y['id'],'params':{'unitId':_0x229090,'subUnitId':_0x5e2665,'ranges':_0x7d359a,'isSingle':_0x11500f}});const _0x17aa46=[],_0x1bf65d={};return _0x7d359a[_0x1f9f67(0x24d)](_0x3343d2=>{const _0x2adca0=_0x1f9f67;_0x538b0c[_0x2adca0(0x1fc)](_0x3343d2,(_0x5d617a,_0x5bd6f4)=>{const _0x8c152=_0x2adca0,_0x2d3c96=_0x46b5d3[_0x8c152(0x268)](_0x229090,_0x5e2665,_0x5d617a,_0x5bd6f4);if(_0x2d3c96){const _0x1a6dd0=_0x46b5d3[_0x8c152(0x1ec)](_0x229090,_0x5e2665,_0x2d3c96);_0x1a6dd0&&(_0x17aa46[_0x8c152(0x1da)](_0x2d3c96),_0x1bf65d[_0x2d3c96]={'config':_0x4c1c6f[_0x8c152(0x1d9)](_0x1a6dd0[_0x8c152(0x205)]),'sparklines':_0x4c1c6f['deepClone'](_0x1a6dd0['sparklines'][_0x8c152(0x1e2)]())});}});}),_0x41513f[_0x1f9f67(0x1da)]({'id':y['id'],'params':{'unitId':_0x229090,'subUnitId':_0x5e2665,'groupIds':_0x17aa46,'isSingle':!0x1}}),_0x41513f[_0x1f9f67(0x1da)]({'id':V['id'],'params':{'unitId':_0x229090,'subUnitId':_0x5e2665,'sparklineConfigMap':_0x1bf65d}}),_0x120aff(_0x18255f,_0x1dd399),_0x80fd14[_0x1f9f67(0x277)]({'unitID':_0x229090,'undoMutations':_0x41513f,'redoMutations':_0x18255f}),!0x0;}},Oe={'id':_0xccd401(0x241),'type':_0x1b32cf[_0xccd401(0x20c)],'handler':(_0x488054,_0xa16fc3)=>{const _0x53c1c0=_0xccd401;if(!_0xa16fc3)return!0x1;const {unitId:_0x4ede2e,subUnitId:_0x1e9304,groupIds:_0x270633,config:_0x2c98f1}=_0xa16fc3,_0x1bb1c1=_0x488054['get'](x);return _0x270633[_0x53c1c0(0x24d)](_0x3335b8=>{const _0x293cdb=_0x53c1c0,_0x1f9cfc=_0x1bb1c1[_0x293cdb(0x1ec)](_0x4ede2e,_0x1e9304,_0x3335b8);if(_0x1f9cfc){const _0x51d2d7={'config':Object[_0x293cdb(0x204)]({},_0x1f9cfc[_0x293cdb(0x205)],_0x2c98f1[_0x293cdb(0x205)]),'sparklines':new _0x1048d3(_0x1f9cfc[_0x293cdb(0x1d6)][_0x293cdb(0x1e2)]())};_0x1bb1c1[_0x293cdb(0x23a)](_0x4ede2e,_0x1e9304,[_0x3335b8],_0x51d2d7);}}),!0x0;}},xt={'id':_0xccd401(0x24b),'type':_0x1b32cf['COMMAND'],'handler':(_0x5ef4a8,_0x1de93)=>{const _0x2207ed=_0xccd401;var _0x4afa83,_0x1d3244,_0x36b1a0,_0x1a69c8;if(!_0x1de93)return!0x1;const _0x35f311=_0x5ef4a8[_0x2207ed(0x24c)](_0x20ed95),_0x51e14f=_0x5ef4a8[_0x2207ed(0x24c)](_0xa9ab15),_0x2cf67b=_0x5ef4a8[_0x2207ed(0x24c)](x),_0x4d6ccc=_0x5ef4a8[_0x2207ed(0x24c)](_0xc51d55),_0x3452cd=_0x5ef4a8[_0x2207ed(0x24c)](_0x1d55f9),_0x2ef6e9=_0x10d0a8(_0x4d6ccc);if(!_0x2ef6e9)return!0x1;const {unitId:_0x73c4ae,subUnitId:_0x5eed21}=_0x2ef6e9,_0x4aa350=(_0x4afa83=_0x1de93==null?void 0x0:_0x1de93[_0x2207ed(0x1cc)])!=null?_0x4afa83:_0x51e14f[_0x2207ed(0x25a)]()['map'](_0x58f36b=>_0x58f36b['range']),_0x48f16a=(_0x1d3244=_0x2cf67b['getSparklineCache']()[_0x2207ed(0x1d1)][_0x2207ed(0x24c)](_0x73c4ae))==null?void 0x0:_0x1d3244[_0x2207ed(0x24c)](_0x5eed21),{isChangeDataSource:_0x492f81,config:_0x5d84f5,combine:_0x7e8f11,unCombine:_0x237c2c}=_0x1de93;if(_0x7e8f11){const _0x1a4d77=[],_0x2dbd33=[];_0x1a4d77['push']({'id':y['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'ranges':_0x4aa350,'isSingle':!0x0}});const _0x55f7b5='g_'+_0x4d91f0(0x6),_0x253025=new _0x1048d3(),_0x1a6cde=(_0x36b1a0=_0x2cf67b[_0x2207ed(0x21b)]()[_0x2207ed(0x1ef)][_0x2207ed(0x24c)](_0x73c4ae))==null?void 0x0:_0x36b1a0[_0x2207ed(0x24c)](_0x5eed21),_0x545774=new Set([_0x55f7b5]),_0x3b06db={};return _0x4aa350[_0x2207ed(0x24d)](_0x5a4af7=>{const _0x4baedf=_0x2207ed;var _0x33afa8,_0x45fdce;const {startRow:_0x18b2e0,endRow:_0x590f4e,startColumn:_0x5d7727,endColumn:_0x3ed68e}=_0x5a4af7;for(let _0x54e4f7=_0x18b2e0;_0x54e4f7<=_0x590f4e;_0x54e4f7++)for(let _0x119504=_0x5d7727;_0x119504<=_0x3ed68e;_0x119504++){const _0x2d76ae=(_0x33afa8=_0x48f16a==null?void 0x0:_0x48f16a[_0x4baedf(0x1ea)][_0x4baedf(0x259)](_0x54e4f7,_0x119504))==null?void 0x0:_0x33afa8[_0x4baedf(0x20f)];if(_0x2d76ae){_0x545774[_0x4baedf(0x1eb)](_0x2d76ae);const _0x4b1fc9=_0x2cf67b[_0x4baedf(0x1ec)](_0x73c4ae,_0x5eed21,_0x2d76ae);_0x4b1fc9&&(_0x3b06db[_0x2d76ae]={'config':_0x4c1c6f['deepClone'](_0x4b1fc9[_0x4baedf(0x205)]),'sparklines':_0x4c1c6f['deepClone'](_0x4b1fc9[_0x4baedf(0x1d6)][_0x4baedf(0x1e2)]())});const _0x2f38c5=(_0x45fdce=_0x1a6cde==null?void 0x0:_0x1a6cde[_0x4baedf(0x24c)](_0x2d76ae))==null?void 0x0:_0x45fdce[_0x4baedf(0x1d6)][_0x4baedf(0x259)](_0x54e4f7,_0x119504);_0x2f38c5&&_0x253025[_0x4baedf(0x1f0)](_0x54e4f7,_0x119504,_0x2f38c5);}}}),_0x1a4d77[_0x2207ed(0x1da)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x55f7b5]:{'config':_0x4c1c6f['deepClone'](_0x5d84f5['config']),'sparklines':_0x253025['getMatrix']()}},'unitId':_0x73c4ae,'subUnitId':_0x5eed21}}),_0x2dbd33[_0x2207ed(0x1da)]({'id':y['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'isSingle':!0x1,'groupIds':Array['from'](_0x545774)}}),_0x2dbd33['push']({'id':V['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'sparklineConfigMap':_0x3b06db}}),_0x120aff(_0x1a4d77,_0x35f311),_0x3452cd[_0x2207ed(0x277)]({'unitID':_0x73c4ae,'undoMutations':_0x2dbd33,'redoMutations':_0x1a4d77}),!0x0;}else{if(_0x237c2c){const _0x55b754=[],_0x41a6a8=[];_0x55b754[_0x2207ed(0x1da)]({'id':y['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'ranges':_0x4aa350,'isSingle':!0x0}});const _0x2901aa=(_0x1a69c8=_0x2cf67b['getSparklineCache']()['sparklineModel']['get'](_0x73c4ae))==null?void 0x0:_0x1a69c8['get'](_0x5eed21),_0x4adc24={},_0x5c0ed0=new Set(),_0x3b496d={};return _0x4aa350[_0x2207ed(0x24d)](_0x383339=>{const _0x374eb7=_0x2207ed;var _0x591a4a,_0x345044;const {startRow:_0x3df717,endRow:_0x157dc1,startColumn:_0x3fc228,endColumn:_0x595b06}=_0x383339;for(let _0x42dc30=_0x3df717;_0x42dc30<=_0x157dc1;_0x42dc30++)for(let _0x20c8c0=_0x3fc228;_0x20c8c0<=_0x595b06;_0x20c8c0++){const _0x4e55b0=(_0x591a4a=_0x48f16a==null?void 0x0:_0x48f16a[_0x374eb7(0x1ea)]['getValue'](_0x42dc30,_0x20c8c0))==null?void 0x0:_0x591a4a[_0x374eb7(0x20f)];if(_0x4e55b0){const _0x4af9af=new _0x1048d3(),_0x4bedc4='g_'+_0x4d91f0(0x6);_0x5c0ed0['add'](_0x4e55b0),_0x5c0ed0['add'](_0x4bedc4);const _0x3f7839=_0x2cf67b[_0x374eb7(0x1ec)](_0x73c4ae,_0x5eed21,_0x4e55b0);_0x3f7839&&(_0x3b496d[_0x4e55b0]={'config':_0x4c1c6f[_0x374eb7(0x1d9)](_0x3f7839['config']),'sparklines':_0x4c1c6f[_0x374eb7(0x1d9)](_0x3f7839[_0x374eb7(0x1d6)][_0x374eb7(0x1e2)]())});const _0x544a59=(_0x345044=_0x2901aa==null?void 0x0:_0x2901aa[_0x374eb7(0x24c)](_0x4e55b0))==null?void 0x0:_0x345044[_0x374eb7(0x1d6)][_0x374eb7(0x259)](_0x42dc30,_0x20c8c0);_0x544a59&&_0x4af9af[_0x374eb7(0x1f0)](_0x42dc30,_0x20c8c0,_0x544a59),_0x4adc24[_0x4bedc4]={'sparklines':_0x4af9af[_0x374eb7(0x235)](),'config':_0x4c1c6f[_0x374eb7(0x1d9)](_0x5d84f5[_0x374eb7(0x205)])};}}}),_0x55b754[_0x2207ed(0x1da)]({'id':V['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'sparklineConfigMap':_0x4adc24}}),_0x41a6a8[_0x2207ed(0x1da)]({'id':y['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'isSingle':!0x1,'groupIds':Array[_0x2207ed(0x219)](_0x5c0ed0)}}),_0x41a6a8[_0x2207ed(0x1da)]({'id':V['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'sparklineConfigMap':_0x3b496d}}),_0x120aff(_0x55b754,_0x35f311),_0x3452cd[_0x2207ed(0x277)]({'unitID':_0x73c4ae,'undoMutations':_0x41a6a8,'redoMutations':_0x55b754}),!0x0;}}if(_0x492f81){const _0x46706f=_0x1de93[_0x2207ed(0x1f3)];if(!_0x46706f)return!0x1;const {groupId:_0x3b2954,sourceRanges:_0x65a92a,targetRanges:_0x3c9deb,resetType:_0xe7cb27,primary:_0x12ad66}=_0x46706f,_0x23e94a=[],_0x22a8d7=[];_0x23e94a[_0x2207ed(0x1da)]({'id':y['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'ranges':_0x4aa350,'isSingle':!0x1,'groupIds':[_0x3b2954]}}),_0x22a8d7[_0x2207ed(0x1da)]({'id':y['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'ranges':_0x4aa350,'isSingle':!0x1,'groupIds':[_0x3b2954]}});let _0x156c85;_0xe7cb27===_0x2207ed(0x236)?(_0x156c85=new _0x1048d3(_0x5d84f5[_0x2207ed(0x1d6)][_0x2207ed(0x1e2)]()),_0x156c85[_0x2207ed(0x1e9)](_0x12ad66['actualRow'],_0x12ad66[_0x2207ed(0x25e)]),_0x156c85[_0x2207ed(0x1f0)](_0x3c9deb[0x0]['startRow'],_0x3c9deb[0x0]['startColumn'],_0x65a92a[0x0])):_0x156c85=Fe(_0x65a92a,_0x3c9deb);const _0x589170={'config':_0x4c1c6f[_0x2207ed(0x1d9)](_0x5d84f5[_0x2207ed(0x205)]),'sparklines':_0x156c85['getMatrix']()},_0x4b6541={'config':_0x4c1c6f[_0x2207ed(0x1d9)](_0x5d84f5['config']),'sparklines':_0x4c1c6f['deepClone'](_0x5d84f5[_0x2207ed(0x1d6)][_0x2207ed(0x1e2)]())};_0x23e94a[_0x2207ed(0x1da)]({'id':V['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'sparklineConfigMap':{[_0x3b2954]:_0x589170}}}),_0x22a8d7[_0x2207ed(0x1da)]({'id':V['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'sparklineConfigMap':{[_0x3b2954]:_0x4b6541}}}),_0x120aff(_0x23e94a,_0x35f311),_0x3452cd[_0x2207ed(0x277)]({'unitID':_0x73c4ae,'undoMutations':_0x22a8d7,'redoMutations':_0x23e94a});}else{const _0x13aca5=[],_0x5a017f=[],_0x16f5fe=new Set(),_0x41da17={};_0x4aa350[_0x2207ed(0x24d)](_0x560e6f=>{const _0x180930=_0x2207ed;var _0x2aa8aa;const {startRow:_0x3f3683,endRow:_0x41161e,startColumn:_0x1109bb,endColumn:_0x26ce7c}=_0x560e6f;for(let _0xe594db=_0x3f3683;_0xe594db<=_0x41161e;_0xe594db++)for(let _0x4855e=_0x1109bb;_0x4855e<=_0x26ce7c;_0x4855e++){const _0xcbebb7=(_0x2aa8aa=_0x48f16a==null?void 0x0:_0x48f16a[_0x180930(0x1ea)]['getValue'](_0xe594db,_0x4855e))==null?void 0x0:_0x2aa8aa[_0x180930(0x20f)];if(_0xcbebb7){_0x16f5fe[_0x180930(0x1eb)](_0xcbebb7);const _0x3dbebc=_0x2cf67b['getSparklineById'](_0x73c4ae,_0x5eed21,_0xcbebb7);_0x3dbebc&&(_0x41da17[_0xcbebb7]={'config':_0x4c1c6f[_0x180930(0x1d9)](_0x3dbebc[_0x180930(0x205)]),'sparklines':_0x4c1c6f[_0x180930(0x1d9)](_0x3dbebc['sparklines']['clone']())});}}}),_0x5a017f[_0x2207ed(0x1da)]({'id':Oe['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'groupIds':Array[_0x2207ed(0x219)](_0x16f5fe),'config':{'config':_0x4c1c6f[_0x2207ed(0x1d9)](_0x5d84f5[_0x2207ed(0x205)]),'sparklines':_0x5d84f5[_0x2207ed(0x1d6)][_0x2207ed(0x235)]()}}}),_0x13aca5['push']({'id':y['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'isSingle':!0x1,'groupIds':Array['from'](_0x16f5fe)}}),_0x13aca5[_0x2207ed(0x1da)]({'id':V['id'],'params':{'unitId':_0x73c4ae,'subUnitId':_0x5eed21,'sparklineConfigMap':_0x41da17}}),_0x120aff(_0x5a017f,_0x35f311),_0x3452cd[_0x2207ed(0x277)]({'unitID':_0x73c4ae,'undoMutations':_0x13aca5,'redoMutations':_0x5a017f});}return!0x0;}};var Ut=Object[_0xccd401(0x1d0)],Pt=(_0x65be22,_0x25fcad,_0x34e623,_0x556c4f)=>{const _0x3d0a51=_0xccd401;for(var _0x5a006d=_0x556c4f>0x1?void 0x0:_0x556c4f?Ut(_0x25fcad,_0x34e623):_0x25fcad,_0x37359c=_0x65be22[_0x3d0a51(0x1ed)]-0x1,_0x13bbd5;_0x37359c>=0x0;_0x37359c--)(_0x13bbd5=_0x65be22[_0x37359c])&&(_0x5a006d=_0x13bbd5(_0x5a006d)||_0x5a006d);return _0x5a006d;},ge=(_0x16cf62,_0x582820)=>(_0x4931fd,_0x324230)=>_0x582820(_0x4931fd,_0x324230,_0x16cf62);let Se=class extends _0x338254{constructor(_0x25c840,_0x498d43,_0x3cc807,_0x60e2ec){const _0x43ea1c=_0xccd401;super(),this[_0x43ea1c(0x274)]=_0x25c840,this['_sheetInterceptorService']=_0x498d43,this[_0x43ea1c(0x1f5)]=_0x3cc807,this[_0x43ea1c(0x258)]=_0x60e2ec,this[_0x43ea1c(0x1dc)]();}[_0xccd401(0x1dc)](){const _0x118e33=_0xccd401;this[_0x118e33(0x244)](this[_0x118e33(0x216)][_0x118e33(0x267)]({'getMutations':_0x50ff1b=>{const _0x245931=_0x118e33,_0x2516e9=[],_0x3b60a7=[];if(_0x50ff1b['id']===_0x191099['id']){const _0x416f51=_0x10d0a8(this[_0x245931(0x1f5)]);if(!_0x416f51)return{'redos':_0x2516e9,'undos':_0x3b60a7};const {unitId:_0x78b92d,subUnitId:_0x4c283b,worksheet:_0x131aa1}=_0x416f51,_0x105dac=this[_0x245931(0x258)][_0x245931(0x25a)]()['map'](_0x4f08e4=>_0x4f08e4[_0x245931(0x1d3)]),_0x3d9d71=new Set(),_0x292f68={},_0x5b5b96={};_0x105dac['forEach'](_0x1b7018=>{const _0x30beed=_0x245931;_0x538b0c[_0x30beed(0x1fc)](_0x1b7018,(_0x3a2b82,_0x3e06f6)=>{const _0x3a68e7=_0x30beed,_0x1a17c7=this[_0x3a68e7(0x274)]['getSparkline'](_0x78b92d,_0x4c283b,_0x3a2b82,_0x3e06f6);if(_0x1a17c7&&!_0x3d9d71['has'](_0x1a17c7)){const _0x32b3bf=this[_0x3a68e7(0x274)][_0x3a68e7(0x1ec)](_0x78b92d,_0x4c283b,_0x1a17c7);_0x32b3bf&&(_0x3d9d71[_0x3a68e7(0x1eb)](_0x1a17c7),_0x292f68[_0x1a17c7]={'config':_0x4c1c6f['deepClone'](_0x32b3bf['config']),'sparklines':_0x4c1c6f[_0x3a68e7(0x1d9)](_0x32b3bf[_0x3a68e7(0x1d6)]['clone']())},_0x5b5b96[_0x1a17c7]={'config':_0x4c1c6f[_0x3a68e7(0x1d9)](_0x32b3bf['config']),'sparklines':_0x4c1c6f['deepClone'](_0x32b3bf[_0x3a68e7(0x1d6)][_0x3a68e7(0x1e2)]())});}});}),Object[_0x245931(0x245)](_0x5b5b96)[_0x245931(0x24d)](_0x30d45f=>{const _0x4f3ab1=_0x245931,_0x26c99b=_0x30d45f[_0x4f3ab1(0x1d6)];new _0x1048d3(_0x26c99b)[_0x4f3ab1(0x1fa)]((_0x1bf73f,_0x4585f1,_0x534f9d)=>{const _0x351954=_0x4f3ab1;_0x105dac['some'](_0x438a39=>_0xdfa53d[_0x351954(0x271)](_0x438a39,_0xb7b91f(_0x1bf73f,_0x4585f1)))&&delete _0x26c99b[_0x1bf73f][_0x4585f1];});}),_0x2516e9['push']({'id':y['id'],'params':{'unitId':_0x78b92d,'subUnitId':_0x4c283b,'groupIds':Array['from'](_0x3d9d71),'isSingle':!0x1}}),_0x2516e9[_0x245931(0x1da)]({'id':V['id'],'params':{'unitId':_0x78b92d,'subUnitId':_0x4c283b,'sparklineConfigMap':_0x5b5b96}}),_0x3b60a7[_0x245931(0x1da)]({'id':y['id'],'params':{'unitId':_0x78b92d,'subUnitId':_0x4c283b,'groupIds':Array[_0x245931(0x219)](_0x3d9d71),'isSingle':!0x1}}),_0x3b60a7[_0x245931(0x1da)]({'id':V['id'],'params':{'unitId':_0x78b92d,'subUnitId':_0x4c283b,'sparklineConfigMap':_0x292f68}});}return{'redos':_0x2516e9,'undos':_0x3b60a7};}}));}};Se=Pt([ge(0x0,_0x225e0c(x)),ge(0x1,_0x225e0c(_0x30cdc7)),ge(0x2,_0x225e0c(_0xc51d55)),ge(0x3,_0x225e0c(_0xa9ab15))],Se);var Tt=Object['getOwnPropertyDescriptor'],$t=(_0x593d96,_0x1ea853,_0x65aee4,_0x62a596)=>{const _0x3d774d=_0xccd401;for(var _0x370944=_0x62a596>0x1?void 0x0:_0x62a596?Tt(_0x1ea853,_0x65aee4):_0x1ea853,_0x57d7b8=_0x593d96[_0x3d774d(0x1ed)]-0x1,_0x411a17;_0x57d7b8>=0x0;_0x57d7b8--)(_0x411a17=_0x593d96[_0x57d7b8])&&(_0x370944=_0x411a17(_0x370944)||_0x370944);return _0x370944;},Ge=(_0x293327,_0xc314d2)=>(_0x5602ba,_0x12219e)=>_0xc314d2(_0x5602ba,_0x12219e,_0x293327);let ke=class extends _0x338254{constructor(_0x148844,_0x34b9e7){const _0x46828c=_0xccd401;super(),this[_0x46828c(0x216)]=_0x148844,this['_sparklineDataSourceModel']=_0x34b9e7,this['_initCopySheetWithSparkline']();}['_initCopySheetWithSparkline'](){const _0x37c1bb=_0xccd401;this[_0x37c1bb(0x244)](this[_0x37c1bb(0x216)][_0x37c1bb(0x267)]({'getMutations':_0x51f048=>{const _0x46c8fb=_0x37c1bb,_0x64c66b=[],_0x32b765=[];if(_0x51f048['id']===_0x4c9751['id']){const _0x1bba8d=_0x51f048[_0x46c8fb(0x231)];if(!_0x1bba8d)return{'redos':_0x64c66b,'undos':_0x32b765};const {unitId:_0x23d674,subUnitId:_0x38225,targetSubUnitId:_0x3abda1}=_0x1bba8d;if(!_0x23d674||!_0x38225||!_0x3abda1)return{'redos':_0x64c66b,'undos':_0x32b765};const _0x15072b=new Set(),_0x15a2e1={},_0x2f1c43=this[_0x46c8fb(0x274)][_0x46c8fb(0x261)](_0x23d674,_0x38225);if(!_0x2f1c43)return{'redos':_0x64c66b,'undos':_0x32b765};for(const [_0x2a4ca0,_0x86f7de]of _0x2f1c43){const _0x3fd204='g_'+_0x4d91f0(0x6);_0x15072b['add'](_0x2a4ca0),_0x15a2e1[_0x3fd204]={'config':_0x4c1c6f[_0x46c8fb(0x1d9)](_0x86f7de['config']),'sparklines':_0x4c1c6f[_0x46c8fb(0x1d9)](_0x86f7de[_0x46c8fb(0x1d6)][_0x46c8fb(0x1e2)]())};}_0x15072b[_0x46c8fb(0x1de)]&&(_0x32b765[_0x46c8fb(0x1da)]({'id':y['id'],'params':{'unitId':_0x23d674,'subUnitId':_0x3abda1,'groupIds':Array[_0x46c8fb(0x219)](_0x15072b),'isSingle':!0x1}}),_0x64c66b[_0x46c8fb(0x1da)]({'id':V['id'],'params':{'unitId':_0x23d674,'subUnitId':_0x3abda1,'sparklineConfigMap':_0x15a2e1}}));}return{'redos':_0x64c66b,'undos':_0x32b765};}}));}};ke=$t([Ge(0x0,_0x225e0c(_0x30cdc7)),Ge(0x1,_0x225e0c(x))],ke);var jt=Object['getOwnPropertyDescriptor'],Lt=(_0x112090,_0x20d2db,_0x731dcc,_0x5c1564)=>{const _0x5bf035=_0xccd401;for(var _0x2356bf=_0x5c1564>0x1?void 0x0:_0x5c1564?jt(_0x20d2db,_0x731dcc):_0x20d2db,_0x347963=_0x112090[_0x5bf035(0x1ed)]-0x1,_0x54b4d3;_0x347963>=0x0;_0x347963--)(_0x54b4d3=_0x112090[_0x347963])&&(_0x2356bf=_0x54b4d3(_0x2356bf)||_0x2356bf);return _0x2356bf;},be=(_0x1bc811,_0x27a55f)=>(_0x276fb8,_0x4ee17e)=>_0x27a55f(_0x276fb8,_0x4ee17e,_0x1bc811);let me=class extends _0x338254{constructor(_0xcaccf2,_0x41b775,_0x58dff7){const _0x1b8b01=_0xccd401;super(),this[_0x1b8b01(0x246)]=_0xcaccf2,this[_0x1b8b01(0x274)]=_0x41b775,this[_0x1b8b01(0x1cb)]=_0x58dff7,this[_0x1b8b01(0x254)](),this[_0x1b8b01(0x23d)]();}['_initDataChangeListener'](){const _0x2a865f=_0xccd401;this['disposeWithMe'](this[_0x2a865f(0x246)]['onCommandExecuted'](_0x27b94f=>{const _0x58b730=_0x2a865f;if(_0x27b94f['id']===_0x2120d3['id']){const _0x48c80a=_0x27b94f[_0x58b730(0x231)],{cellValue:_0x56a0c8,unitId:_0x5f3cda,subUnitId:_0x219831}=_0x48c80a,_0x50b89c=new _0x1048d3(_0x56a0c8),_0x8c72bf=new Set(),_0xa4bf58=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x5f3cda,_0x219831);if(!_0xa4bf58)return;const _0x52dae2=Array[_0x58b730(0x219)](_0xa4bf58);_0x50b89c[_0x58b730(0x1fa)]((_0x26e8fe,_0x1dd12e,_0x471d66)=>{const _0x57bcd0=_0x58b730,_0x195f49=_0xb7b91f(_0x26e8fe,_0x1dd12e);for(let _0x533830=0x0;_0x533830<_0x52dae2[_0x57bcd0(0x1ed)];_0x533830++){const [_0x162bc4,_0x1c42bc]=_0x52dae2[_0x533830],_0x50e631=_0x8c72bf[_0x57bcd0(0x1c7)](_0x162bc4);_0x50e631||_0x1c42bc['sparklines'][_0x57bcd0(0x1fa)]((_0x1dd4fa,_0x13b71e,_0x27ef6a)=>{const _0x5e7bd9=_0x57bcd0,_0x4f1915=_0x27ef6a;if(_0x4f1915&&!_0x50e631&&_0xdfa53d[_0x5e7bd9(0x271)](_0x195f49,_0x4f1915))return _0x8c72bf[_0x5e7bd9(0x1eb)](_0x162bc4),!0x0;});}}),_0x8c72bf[_0x58b730(0x24d)](_0x5f1122=>{const _0xdde83=_0x58b730;this[_0xdde83(0x274)][_0xdde83(0x242)](_0x5f3cda,_0x219831,_0x5f1122),this[_0xdde83(0x274)][_0xdde83(0x213)](_0x5f3cda,_0x219831,_0x5f1122);});}else{if(_0x27b94f['id']===_0x391ebd['id']){const _0x27b1d8=_0x27b94f['params'],{range:_0x3016b5,unitId:_0x1ef28a,subUnitId:_0x517e0d}=_0x27b1d8,_0x2c9c10=new Set(),_0x4687b5=this[_0x58b730(0x274)]['getSubUnitSparkline'](_0x1ef28a,_0x517e0d);if(!_0x4687b5)return;const _0x3e1a81=Array[_0x58b730(0x219)](_0x4687b5);for(let _0x2bad6f=0x0;_0x2bad6f<_0x3e1a81[_0x58b730(0x1ed)];_0x2bad6f++){const [_0x2a8ec7,_0x33527f]=_0x3e1a81[_0x2bad6f],_0x3fa04b=_0x2c9c10['has'](_0x2a8ec7);_0x3fa04b||_0x33527f[_0x58b730(0x1d6)][_0x58b730(0x1fa)]((_0x10fe2f,_0xe5aa06,_0xb925c6)=>{const _0x5975b5=_0x58b730,_0x1e6f09=_0xb925c6;if(_0x1e6f09&&!_0x3fa04b&&_0xdfa53d[_0x5975b5(0x271)](_0x3016b5,_0x1e6f09))return _0x2c9c10[_0x5975b5(0x1eb)](_0x2a8ec7),!0x0;});}_0x2c9c10[_0x58b730(0x24d)](_0x4f9e84=>{const _0xf1db45=_0x58b730;this['_sparklineDataSourceModel'][_0xf1db45(0x242)](_0x1ef28a,_0x517e0d,_0x4f9e84),this[_0xf1db45(0x274)][_0xf1db45(0x213)](_0x1ef28a,_0x517e0d,_0x4f9e84);});}}}));}['_initExclusiveRangeChange'](){const _0xdefbc0=_0xccd401;this['disposeWithMe'](this[_0xdefbc0(0x1cb)][_0xdefbc0(0x25d)]['subscribe'](_0xa2e6bd=>{const _0x4d932f=_0xdefbc0,{unitId:_0x2b6510,subUnitId:_0x3d4d83,ranges:_0x281c2e}=_0xa2e6bd,_0x365bc8=this[_0x4d932f(0x274)][_0x4d932f(0x261)](_0x2b6510,_0x3d4d83);if(!_0x365bc8)return;const _0x3784d2=Array[_0x4d932f(0x219)](_0x365bc8),_0x5c068f=new Set();for(let _0x16bd4c=0x0;_0x16bd4c<_0x3784d2[_0x4d932f(0x1ed)];_0x16bd4c++){const [_0x5d6595,_0x523e8f]=_0x3784d2[_0x16bd4c],_0x3afeb6=_0x5c068f['has'](_0x5d6595);_0x3afeb6||_0x523e8f[_0x4d932f(0x1d6)]['forValue']((_0x1cc763,_0x2b3156,_0x4c5de5)=>{const _0x394ecf=_0x4d932f,_0x52d4b8=_0x4c5de5;if(_0x52d4b8&&!_0x3afeb6){for(const _0x33c383 of _0x281c2e)if(_0xdfa53d['intersects'](_0x33c383,_0x52d4b8)){_0x5c068f[_0x394ecf(0x1eb)](_0x5d6595);break;}}});}_0x5c068f[_0x4d932f(0x24d)](_0x9fd34f=>{const _0x5be209=_0x4d932f;this[_0x5be209(0x274)][_0x5be209(0x242)](_0x2b6510,_0x3d4d83,_0x9fd34f),this[_0x5be209(0x274)][_0x5be209(0x213)](_0x2b6510,_0x3d4d83,_0x9fd34f);});}));}};me=Lt([be(0x0,_0x225e0c(_0x20ed95)),be(0x1,_0x225e0c(x)),be(0x2,_0x225e0c(_0x11a8c4))],me);var Gt=Object[_0xccd401(0x1d0)],Wt=(_0x4ccadb,_0x1506e8,_0x154514,_0x595fab)=>{const _0x4b5b27=_0xccd401;for(var _0x256db7=_0x595fab>0x1?void 0x0:_0x595fab?Gt(_0x1506e8,_0x154514):_0x1506e8,_0x298146=_0x4ccadb[_0x4b5b27(0x1ed)]-0x1,_0xecd8c9;_0x298146>=0x0;_0x298146--)(_0xecd8c9=_0x4ccadb[_0x298146])&&(_0x256db7=_0xecd8c9(_0x256db7)||_0x256db7);return _0x256db7;},We=(_0x231cda,_0x55b2cd)=>(_0x1319bb,_0xdbdaf3)=>_0x55b2cd(_0x1319bb,_0xdbdaf3,_0x231cda);let Ce=class extends _0x338254{constructor(_0x4ce8ab,_0x3c1cd0){const _0x533ad0=_0xccd401;super(),this[_0x533ad0(0x246)]=_0x4ce8ab,this['_sparklineDataSourceModel']=_0x3c1cd0,this['_initHideRowColWithSparkline']();}[_0xccd401(0x260)](){const _0x5f1e3a=_0xccd401;this[_0x5f1e3a(0x246)][_0x5f1e3a(0x217)](_0x65cfc0=>{const _0x5ddd71=_0x5f1e3a;if(_0x65cfc0['id']===_0x4ea950['id']||_0x65cfc0['id']===_0x4993a6['id']||_0x65cfc0['id']===_0x121817['id']||_0x65cfc0['id']===_0xcf4297['id']){const _0x46a7b6=_0x65cfc0[_0x5ddd71(0x231)],{ranges:_0x41d403,unitId:_0x250ad1,subUnitId:_0x311e90}=_0x46a7b6,_0x2ae99c=new Set(),_0x57914b=this[_0x5ddd71(0x274)]['getSubUnitSparkline'](_0x250ad1,_0x311e90);if(!_0x57914b)return;const _0x2ab108=Array[_0x5ddd71(0x219)](_0x57914b);_0x41d403['forEach'](_0x2786d2=>{const _0x4e172e=_0x5ddd71;_0x538b0c[_0x4e172e(0x1fc)](_0x2786d2,(_0xbe8c52,_0x24fa52)=>{const _0x372acd=_0x4e172e,_0x473636=_0xb7b91f(_0xbe8c52,_0x24fa52);for(let _0x44e662=0x0;_0x44e662<_0x2ab108[_0x372acd(0x1ed)];_0x44e662++){const [_0xcc8a0b,_0x1b7474]=_0x2ab108[_0x44e662],_0xff64f5=_0x2ae99c['has'](_0xcc8a0b);_0xff64f5||_0x1b7474[_0x372acd(0x1d6)][_0x372acd(0x1fa)]((_0x2d72dd,_0x22f35e,_0x242610)=>{const _0x293bc2=_0x372acd,_0x8c4c43=_0x242610;if(_0x8c4c43&&!_0xff64f5&&_0xdfa53d[_0x293bc2(0x271)](_0x473636,_0x8c4c43))return _0x2ae99c[_0x293bc2(0x1eb)](_0xcc8a0b),!0x0;});}});}),_0x2ae99c[_0x5ddd71(0x24d)](_0xa49c18=>{const _0x5d292a=_0x5ddd71;this[_0x5d292a(0x274)][_0x5d292a(0x242)](_0x250ad1,_0x311e90,_0xa49c18),this[_0x5d292a(0x274)][_0x5d292a(0x213)](_0x250ad1,_0x311e90,_0xa49c18);});}});}};Ce=Wt([We(0x0,_0x225e0c(_0x20ed95)),We(0x1,_0x225e0c(x))],Ce);var Bt=Object[_0xccd401(0x1d0)],Ht=(_0x50c991,_0x1505f6,_0x4ee5cb,_0x2eb159)=>{const _0x2e58bd=_0xccd401;for(var _0x20126b=_0x2eb159>0x1?void 0x0:_0x2eb159?Bt(_0x1505f6,_0x4ee5cb):_0x1505f6,_0x483e93=_0x50c991[_0x2e58bd(0x1ed)]-0x1,_0x54a0ae;_0x483e93>=0x0;_0x483e93--)(_0x54a0ae=_0x50c991[_0x483e93])&&(_0x20126b=_0x54a0ae(_0x20126b)||_0x20126b);return _0x20126b;},De=(_0x1abe60,_0xe03817)=>(_0x43bcef,_0xcd8415)=>_0xe03817(_0x43bcef,_0xcd8415,_0x1abe60);let _e=class extends _0x338254{constructor(_0x1055ed,_0x2c29f3,_0x3b33b3){const _0x322768=_0xccd401;super(),this[_0x322768(0x246)]=_0x1055ed,this[_0x322768(0x216)]=_0x2c29f3,this[_0x322768(0x274)]=_0x3b33b3,this[_0x322768(0x212)]();}['_initMergeWithSparkline'](){const _0x5a77dd=_0xccd401;this[_0x5a77dd(0x244)](this[_0x5a77dd(0x216)][_0x5a77dd(0x267)]({'getMutations':_0x47306a=>{const _0x415b43=_0x5a77dd,_0x10a68f=[],_0x17063d=[];if(_0x47306a['id']===_0xf39eb3['id']){const _0xd17c35=_0x47306a[_0x415b43(0x231)];if(!_0xd17c35)return{'redos':_0x10a68f,'undos':_0x17063d};const {unitId:_0x4234af,subUnitId:_0x33cd20,ranges:_0x5d9573}=_0xd17c35,_0x4bd73a=this[_0x415b43(0x274)][_0x415b43(0x261)](_0x4234af,_0x33cd20);if(!_0x4bd73a)return{'redos':_0x10a68f,'undos':_0x17063d};const _0x2d1775={},_0x3964a2={},_0x41efc2=new Set();_0x5d9573['forEach'](_0x323b93=>{const _0x2cf84d=_0x415b43,_0x2498b4=_0x323b93[_0x2cf84d(0x22c)],_0x36c4e0=_0x323b93['startColumn'];_0x538b0c[_0x2cf84d(0x1fc)](_0x323b93,(_0x1f8f96,_0x10817b)=>{const _0x19411e=_0x2cf84d,_0x2e9488=this[_0x19411e(0x274)][_0x19411e(0x268)](_0x4234af,_0x33cd20,_0x1f8f96,_0x10817b);if(_0x2e9488&&!(_0x1f8f96===_0x2498b4&&_0x10817b===_0x36c4e0)){const _0x1e75eb=this[_0x19411e(0x274)][_0x19411e(0x1ec)](_0x4234af,_0x33cd20,_0x2e9488);if(_0x1e75eb){_0x41efc2[_0x19411e(0x1eb)](_0x2e9488);let _0x2c6335=_0x2d1775[_0x2e9488];_0x2c6335||(_0x2c6335={'config':_0x4c1c6f[_0x19411e(0x1d9)](_0x1e75eb[_0x19411e(0x205)]),'sparklines':new _0x1048d3(_0x1e75eb[_0x19411e(0x1d6)]['clone']())},_0x2d1775[_0x2e9488]=_0x2c6335),_0x2c6335[_0x19411e(0x1d6)]['realDeleteValue'](_0x1f8f96,_0x10817b),_0x3964a2[_0x2e9488]={'config':_0x4c1c6f['deepClone'](_0x1e75eb[_0x19411e(0x205)]),'sparklines':_0x4c1c6f[_0x19411e(0x1d9)](_0x1e75eb['sparklines'][_0x19411e(0x1e2)]())};}}});});for(const [_0x1ea240,_0x398fd1]of _0x4bd73a){const _0x454847=_0x398fd1[_0x415b43(0x1d6)];_0x454847[_0x415b43(0x1fa)]((_0x34b618,_0xd24f3e,_0x695c74)=>{const _0x4ac47e=_0x415b43;for(let _0x49a6d1=0x0;_0x49a6d1<_0x5d9573[_0x4ac47e(0x1ed)];_0x49a6d1++){const _0x3bc835=_0x5d9573[_0x49a6d1];if(_0xdfa53d['contains'](_0x3bc835,_0x695c74)){_0x41efc2[_0x4ac47e(0x1eb)](_0x1ea240);let _0x562b1e=_0x2d1775[_0x1ea240];_0x562b1e||(_0x562b1e={'config':_0x4c1c6f[_0x4ac47e(0x1d9)](_0x398fd1[_0x4ac47e(0x205)]),'sparklines':new _0x1048d3(_0x454847[_0x4ac47e(0x1e2)]())},_0x2d1775[_0x1ea240]=_0x562b1e),_0x562b1e[_0x4ac47e(0x1d6)]['realDeleteValue'](_0x34b618,_0xd24f3e),_0x3964a2[_0x1ea240]||(_0x3964a2[_0x1ea240]={'config':_0x4c1c6f[_0x4ac47e(0x1d9)](_0x398fd1['config']),'sparklines':_0x4c1c6f['deepClone'](_0x454847[_0x4ac47e(0x1e2)]())});}}});}const _0x25dd0f={};Object[_0x415b43(0x1ca)](_0x2d1775)[_0x415b43(0x24d)](([_0x273446,_0x5e1dfb])=>{const _0x103291=_0x415b43;_0x5e1dfb[_0x103291(0x1d6)][_0x103291(0x1e7)]()&&(_0x25dd0f[_0x273446]={'config':_0x5e1dfb[_0x103291(0x205)],'sparklines':_0x5e1dfb[_0x103291(0x1d6)][_0x103291(0x1e2)]()});}),_0x41efc2[_0x415b43(0x1de)]&&(_0x10a68f['push']({'id':y['id'],'params':{'unitId':_0x4234af,'subUnitId':_0x33cd20,'groupIds':Array[_0x415b43(0x219)](_0x41efc2),'isSingle':!0x1}}),_0x17063d[_0x415b43(0x1da)]({'id':y['id'],'params':{'unitId':_0x4234af,'subUnitId':_0x33cd20,'groupIds':Array['from'](_0x41efc2),'isSingle':!0x1}}),_0x10a68f[_0x415b43(0x1da)]({'id':V['id'],'params':{'unitId':_0x4234af,'subUnitId':_0x33cd20,'sparklineConfigMap':_0x25dd0f}}),_0x17063d[_0x415b43(0x1da)]({'id':V['id'],'params':{'unitId':_0x4234af,'subUnitId':_0x33cd20,'sparklineConfigMap':_0x3964a2}}));}return{'redos':_0x10a68f,'undos':_0x17063d};}}));}};_e=Ht([De(0x0,_0x225e0c(_0x20ed95)),De(0x1,_0x225e0c(_0x30cdc7)),De(0x2,_0x225e0c(x))],_e);var Ft=Object[_0xccd401(0x1d0)],Kt=(_0x23d884,_0x596be4,_0x441677,_0x49895d)=>{const _0x40b849=_0xccd401;for(var _0x5af190=_0x49895d>0x1?void 0x0:_0x49895d?Ft(_0x596be4,_0x441677):_0x596be4,_0x394cb2=_0x23d884[_0x40b849(0x1ed)]-0x1,_0x42b5c4;_0x394cb2>=0x0;_0x394cb2--)(_0x42b5c4=_0x23d884[_0x394cb2])&&(_0x5af190=_0x42b5c4(_0x5af190)||_0x5af190);return _0x5af190;},ue=(_0x9c5954,_0x45ed38)=>(_0x32fa6d,_0x1b4626)=>_0x45ed38(_0x32fa6d,_0x1b4626,_0x9c5954);let Me=class extends _0x338254{constructor(_0x2c2989,_0x3095e4,_0x3b6963,_0x8f86ef,_0xecd48d){const _0x2ff494=_0xccd401;super(),se(this,_0x2ff494(0x21a),new _0x24c66d()),(this[_0x2ff494(0x246)]=_0x2c2989,this[_0x2ff494(0x216)]=_0x3095e4,this['_refRangeService']=_0x3b6963,this[_0x2ff494(0x1f5)]=_0x8f86ef,this[_0x2ff494(0x274)]=_0xecd48d,this[_0x2ff494(0x20d)](),this[_0x2ff494(0x1e6)]());}[_0xccd401(0x20d)](){const _0x3973fc=_0xccd401,_0x366333=(_0x38bbeb,_0xa57897)=>{const _0x2f3256=_0x2307,_0x180575=this[_0x2f3256(0x1f5)][_0x2f3256(0x209)](_0x4b0b73['UNIVER_SHEET']);if(!_0x180575||!(_0x180575==null?void 0x0:_0x180575[_0x2f3256(0x1f1)](_0xa57897)))return;this[_0x2f3256(0x21a)]['dispose']();const _0x1e5e41=_0xd7b205=>this['refRangeHandle'](_0xd7b205,_0x38bbeb,_0xa57897),_0x56316b=[],_0xf7856d=this[_0x2f3256(0x274)][_0x2f3256(0x261)](_0x38bbeb,_0xa57897);if(_0xf7856d){for(const [_0x53bc10,_0x5aa04c]of _0xf7856d)_0x5aa04c[_0x2f3256(0x1d6)][_0x2f3256(0x1fa)]((_0x1905cd,_0x557f69,_0x25ff33)=>{const _0x5155ad=_0x2f3256,_0x274568=_0xb7b91f(_0x1905cd,_0x557f69);_0x56316b[_0x5155ad(0x1da)](_0x274568);});_0x56316b['forEach'](_0x3acdb1=>{const _0x2871fb=_0x2f3256;this[_0x2871fb(0x21a)][_0x2871fb(0x1eb)](this[_0x2871fb(0x1e4)][_0x2871fb(0x206)](_0x3acdb1,_0x1e5e41,_0x38bbeb,_0xa57897));});}};this[_0x3973fc(0x244)](this[_0x3973fc(0x246)]['onCommandExecuted'](_0xfc021e=>{const _0x5cbdd1=_0x3973fc;if(_0xfc021e['id']===_0x35ffcc['id']){const _0x593d5d=_0xfc021e['params'],_0x4ebc2e=_0x593d5d[_0x5cbdd1(0x1c4)],_0x356849=_0x593d5d[_0x5cbdd1(0x1c0)];if(!_0x4ebc2e||!_0x356849)return;_0x366333(_0x356849,_0x4ebc2e);}if(_0xfc021e['id']===Oe['id']||_0xfc021e['id']===V['id']){const _0x11ba3f=_0xfc021e[_0x5cbdd1(0x231)],_0xdbe3d=_0x11ba3f[_0x5cbdd1(0x1c4)],_0x2ede5c=_0x11ba3f[_0x5cbdd1(0x1c0)];if(!_0xdbe3d||!_0x2ede5c)return;_0x366333(_0x2ede5c,_0xdbe3d);}}));}[_0xccd401(0x234)](_0x224647,_0x336ae0,_0x2be2aa){const _0x1243d5=_0xccd401;switch(_0x224647['id']){case _0x494e5b['id']:return this[_0x1243d5(0x221)](_0x224647[_0x1243d5(0x231)],_0x336ae0,_0x2be2aa);case _0x3d5367['id']:return this[_0x1243d5(0x211)](_0x224647[_0x1243d5(0x231)],_0x336ae0,_0x2be2aa);}return{'redos':[],'undos':[]};}[_0xccd401(0x211)](_0x22175a,_0x301b82,_0x1857c9){const _0x4f1cb2=_0xccd401;var _0x265bfc,_0x3bd78a;const {range:_0x544d92}=_0x22175a,_0x745500=new Set(),_0x1d3d43={},_0x1f4db4={},_0x4e8a24=[],_0x13dfd2=[],_0x402acd=[],_0x4f016b=[];if(!_0x10d0a8(this[_0x4f1cb2(0x1f5)],{'unitId':_0x301b82,'subUnitId':_0x1857c9}))return{'redos':_0x13dfd2,'undos':_0x4e8a24};const _0x2f2389=this['_sparklineDataSourceModel'][_0x4f1cb2(0x261)](_0x301b82,_0x1857c9);if(!_0x2f2389)return{'redos':_0x13dfd2,'undos':_0x4e8a24};if(!((_0x3bd78a=(_0x265bfc=this[_0x4f1cb2(0x274)][_0x4f1cb2(0x21b)]()[_0x4f1cb2(0x1d1)][_0x4f1cb2(0x24c)](_0x301b82))==null?void 0x0:_0x265bfc[_0x4f1cb2(0x24c)](_0x1857c9))==null?void 0x0:_0x3bd78a[_0x4f1cb2(0x1ea)]))return{'redos':_0x13dfd2,'undos':_0x4e8a24};for(const [_0x24b81c,_0x47ad37]of _0x2f2389){const _0x25c446=_0x47ad37['sparklines'];_0x25c446[_0x4f1cb2(0x1fa)]((_0x54742d,_0xf5b61e,_0x4579fb)=>{const _0x17018b=_0x4f1cb2;if(_0xdfa53d[_0x17018b(0x271)](_0x544d92,_0x4579fb)){_0x745500['add'](_0x24b81c);let _0x4c0e4d=_0x1f4db4[_0x24b81c];_0x4c0e4d||(_0x4c0e4d={'config':_0x47ad37['config'],'sparklines':_0x47ad37[_0x17018b(0x1d6)][_0x17018b(0x1e2)]()},_0x1f4db4[_0x24b81c]=_0x4c0e4d);let _0x10af19=_0x1d3d43[_0x24b81c];_0x10af19||(_0x10af19={'config':_0x47ad37['config'],'sparklines':new _0x1048d3(_0x47ad37[_0x17018b(0x1d6)][_0x17018b(0x1e2)]())},_0x1d3d43[_0x24b81c]=_0x10af19);const _0x39548b=_0x4b150d(_0x4579fb,{'id':_0x436bb2['id'],'params':_0x22175a});_0x39548b?_0x10af19['sparklines'][_0x17018b(0x1f0)](_0x54742d,_0xf5b61e,_0x39548b):_0x10af19[_0x17018b(0x1d6)][_0x17018b(0x1f0)](_0x54742d,_0xf5b61e,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x44efa4[_0x17018b(0x237)]});}}),_0x25c446[_0x4f1cb2(0x1fa)]((_0x2d06af,_0x17a5be,_0x469f6c)=>{const _0x350fff=_0x4f1cb2;if(_0x2d06af<=_0x544d92[_0x350fff(0x255)]&&_0x2d06af>=_0x544d92[_0x350fff(0x22c)]){_0x745500[_0x350fff(0x1eb)](_0x24b81c);let _0x41be3d=_0x1f4db4[_0x24b81c];_0x41be3d||(_0x41be3d={'config':_0x47ad37[_0x350fff(0x205)],'sparklines':_0x47ad37[_0x350fff(0x1d6)]['clone']()},_0x1f4db4[_0x24b81c]=_0x41be3d);let _0x3d3834=_0x1d3d43[_0x24b81c];_0x3d3834||(_0x3d3834={'config':_0x47ad37[_0x350fff(0x205)],'sparklines':new _0x1048d3(_0x47ad37[_0x350fff(0x1d6)][_0x350fff(0x1e2)]())},_0x1d3d43[_0x24b81c]=_0x3d3834);}});}_0x4f016b[_0x4f1cb2(0x1da)]({'id':y['id'],'params':{'unitId':_0x301b82,'subUnitId':_0x1857c9,'groupIds':Array['from'](_0x745500),'isSingle':!0x1}}),_0x402acd[_0x4f1cb2(0x1da)]({'id':y['id'],'params':{'unitId':_0x301b82,'subUnitId':_0x1857c9,'groupIds':Array['from'](_0x745500),'isSingle':!0x1}});const _0x569aed={};let _0x8f1ea2=!0x1;return Object[_0x4f1cb2(0x1ca)](_0x1d3d43)[_0x4f1cb2(0x24d)](([_0x1f4046,_0x4843b1])=>{const _0x2b4963=_0x4f1cb2;_0x4843b1[_0x2b4963(0x1d6)][_0x2b4963(0x1e7)]()&&(_0x8f1ea2=!0x0,_0x4843b1[_0x2b4963(0x1d6)][_0x2b4963(0x263)](_0x544d92[_0x2b4963(0x22c)],_0x544d92[_0x2b4963(0x255)]-_0x544d92[_0x2b4963(0x22c)]+0x1),_0x569aed[_0x1f4046]={'config':_0x4843b1[_0x2b4963(0x205)],'sparklines':_0x4843b1[_0x2b4963(0x1d6)][_0x2b4963(0x1e2)]()});}),_0x8f1ea2&&_0x13dfd2[_0x4f1cb2(0x1da)]({'id':V['id'],'params':{'unitId':_0x301b82,'subUnitId':_0x1857c9,'sparklineConfigMap':_0x569aed}}),_0x4e8a24[_0x4f1cb2(0x1da)]({'id':V['id'],'params':{'unitId':_0x301b82,'subUnitId':_0x1857c9,'sparklineConfigMap':_0x1f4db4}}),{'redos':_0x13dfd2,'undos':_0x4e8a24,'preRedos':_0x402acd,'preUndos':_0x4f016b};}['_getRefRangeMutationsByDeleteCols'](_0x359114,_0x42562f,_0x43a208){const _0x40a2ae=_0xccd401;var _0x4fa161,_0x3589fb;const {range:_0x25c863}=_0x359114,_0x1c55c7=new Set(),_0x30a762={},_0x59904e={},_0x95218c=[],_0xd83b5a=[],_0x1f261f=[],_0x2e60dd=[];if(!_0x10d0a8(this[_0x40a2ae(0x1f5)],{'unitId':_0x42562f,'subUnitId':_0x43a208}))return{'redos':_0xd83b5a,'undos':_0x95218c};const _0x2a4127=this[_0x40a2ae(0x274)][_0x40a2ae(0x261)](_0x42562f,_0x43a208);if(!_0x2a4127)return{'redos':_0xd83b5a,'undos':_0x95218c};if(!((_0x3589fb=(_0x4fa161=this[_0x40a2ae(0x274)]['getSparklineCache']()[_0x40a2ae(0x1d1)][_0x40a2ae(0x24c)](_0x42562f))==null?void 0x0:_0x4fa161['get'](_0x43a208))==null?void 0x0:_0x3589fb[_0x40a2ae(0x1ea)]))return{'redos':_0xd83b5a,'undos':_0x95218c};for(const [_0x6bf88c,_0xb85f0d]of _0x2a4127){const _0xbf764d=_0xb85f0d['sparklines'];_0xbf764d['forValue']((_0x47328f,_0x2fffd8,_0x1d3727)=>{const _0x1b2986=_0x40a2ae;if(_0xdfa53d[_0x1b2986(0x271)](_0x25c863,_0x1d3727)){_0x1c55c7[_0x1b2986(0x1eb)](_0x6bf88c);let _0x4e4adb=_0x59904e[_0x6bf88c];_0x4e4adb||(_0x4e4adb={'config':_0xb85f0d[_0x1b2986(0x205)],'sparklines':_0xb85f0d[_0x1b2986(0x1d6)][_0x1b2986(0x1e2)]()},_0x59904e[_0x6bf88c]=_0x4e4adb);let _0xc12c1c=_0x30a762[_0x6bf88c];_0xc12c1c||(_0xc12c1c={'config':_0xb85f0d[_0x1b2986(0x205)],'sparklines':new _0x1048d3(_0xb85f0d[_0x1b2986(0x1d6)][_0x1b2986(0x1e2)]())},_0x30a762[_0x6bf88c]=_0xc12c1c);const _0xec5a23=_0x4b150d(_0x1d3727,{'id':_0x59e507['id'],'params':_0x359114});_0xec5a23?_0xc12c1c[_0x1b2986(0x1d6)]['setValue'](_0x47328f,_0x2fffd8,_0xec5a23):_0xc12c1c[_0x1b2986(0x1d6)][_0x1b2986(0x1f0)](_0x47328f,_0x2fffd8,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x44efa4[_0x1b2986(0x237)]});}}),_0xbf764d[_0x40a2ae(0x1fa)]((_0x194f68,_0x1b969a,_0x175293)=>{const _0x6eb409=_0x40a2ae;if(_0x1b969a<=_0x25c863['endColumn']&&_0x1b969a>=_0x25c863[_0x6eb409(0x203)]){_0x1c55c7['add'](_0x6bf88c);let _0x3091bb=_0x59904e[_0x6bf88c];_0x3091bb||(_0x3091bb={'config':_0xb85f0d[_0x6eb409(0x205)],'sparklines':_0xb85f0d[_0x6eb409(0x1d6)][_0x6eb409(0x1e2)]()},_0x59904e[_0x6bf88c]=_0x3091bb);let _0x13d8ce=_0x30a762[_0x6bf88c];_0x13d8ce||(_0x13d8ce={'config':_0xb85f0d[_0x6eb409(0x205)],'sparklines':new _0x1048d3(_0xb85f0d[_0x6eb409(0x1d6)][_0x6eb409(0x1e2)]())},_0x30a762[_0x6bf88c]=_0x13d8ce);}});}_0x2e60dd[_0x40a2ae(0x1da)]({'id':y['id'],'params':{'unitId':_0x42562f,'subUnitId':_0x43a208,'groupIds':Array[_0x40a2ae(0x219)](_0x1c55c7),'isSingle':!0x1}}),_0x1f261f['push']({'id':y['id'],'params':{'unitId':_0x42562f,'subUnitId':_0x43a208,'groupIds':Array[_0x40a2ae(0x219)](_0x1c55c7),'isSingle':!0x1}});const _0xa80fca={};let _0x179454=!0x1;return Object[_0x40a2ae(0x1ca)](_0x30a762)[_0x40a2ae(0x24d)](([_0x58033f,_0x247d52])=>{const _0x366506=_0x40a2ae;_0x247d52['sparklines']['getSizeOf']()&&(_0x179454=!0x0,_0x247d52[_0x366506(0x1d6)][_0x366506(0x247)](_0x25c863['startColumn'],_0x25c863[_0x366506(0x239)]-_0x25c863[_0x366506(0x203)]+0x1),_0xa80fca[_0x58033f]={'config':_0x247d52[_0x366506(0x205)],'sparklines':_0x247d52['sparklines'][_0x366506(0x1e2)]()});}),_0x179454&&_0xd83b5a[_0x40a2ae(0x1da)]({'id':V['id'],'params':{'unitId':_0x42562f,'subUnitId':_0x43a208,'sparklineConfigMap':_0xa80fca}}),_0x95218c[_0x40a2ae(0x1da)]({'id':V['id'],'params':{'unitId':_0x42562f,'subUnitId':_0x43a208,'sparklineConfigMap':_0x59904e}}),{'redos':_0xd83b5a,'undos':_0x95218c,'preRedos':_0x1f261f,'preUndos':_0x2e60dd};}[_0xccd401(0x1e6)](){const _0x28ccc0=_0xccd401;this[_0x28ccc0(0x244)](this['_commandService']['onCommandExecuted'](_0x47bbbb=>{const _0x56d9c9=_0x28ccc0;if(_0x47bbbb['id']===_0x1ac185['id']){const _0x2d8a62=_0x47bbbb['params'],{unitId:_0x3545ea,subUnitId:_0x11a052,range:_0x49e901}=_0x2d8a62,_0x352f2a=_0x49e901[_0x56d9c9(0x203)],_0x169f5a=_0x49e901[_0x56d9c9(0x239)]-_0x49e901[_0x56d9c9(0x203)]+0x1,_0x4bee4b=this[_0x56d9c9(0x274)][_0x56d9c9(0x261)](_0x3545ea,_0x11a052);if(!_0x4bee4b)return;for(const [_0x1a157e,_0x4eebde]of _0x4bee4b){this[_0x56d9c9(0x274)][_0x56d9c9(0x242)](_0x3545ea,_0x11a052,_0x1a157e);const _0x437882=_0x4eebde[_0x56d9c9(0x1d6)];_0x437882['forValue']((_0x1b772f,_0x889b00,_0x58f80b)=>{const _0x5e6222=_0x56d9c9,_0x191c71={..._0x58f80b};_0x352f2a<=_0x191c71['startColumn']?(_0x191c71[_0x5e6222(0x203)]+=_0x169f5a,_0x191c71['endColumn']+=_0x169f5a):_0x352f2a>_0x191c71[_0x5e6222(0x239)]||(_0x191c71[_0x5e6222(0x239)]+=_0x169f5a),_0x437882[_0x5e6222(0x1f0)](_0x1b772f,_0x889b00,_0x191c71);});const _0x19498=_0x437882[_0x56d9c9(0x235)]();for(const _0x40bb6b in _0x19498){const _0x16c52d=_0x19498[Number(_0x40bb6b)];if(!_0x16c52d)continue;const _0x429aac=Object[_0x56d9c9(0x226)](_0x16c52d)[_0x56d9c9(0x1d5)](Number),_0x3ed41b=Math[_0x56d9c9(0x1c9)](..._0x429aac);for(let _0x47e6af=_0x3ed41b;_0x47e6af>=_0x352f2a;_0x47e6af--)_0x47e6af>=_0x352f2a&&_0x16c52d[_0x47e6af]&&(_0x16c52d[_0x47e6af+_0x169f5a]=_0x16c52d[_0x47e6af],delete _0x16c52d[_0x47e6af]);}this[_0x56d9c9(0x274)][_0x56d9c9(0x213)](_0x3545ea,_0x11a052,_0x1a157e);}}else{if(_0x47bbbb['id']===_0x59ec28['id']){const _0x14108f=_0x47bbbb[_0x56d9c9(0x231)],{unitId:_0x5a9eaf,subUnitId:_0x82401d,range:_0x16e5dc}=_0x14108f,_0x2783b8=_0x16e5dc[_0x56d9c9(0x22c)],_0x3e0b19=_0x16e5dc[_0x56d9c9(0x255)]-_0x16e5dc[_0x56d9c9(0x22c)]+0x1,_0x22cafe=this[_0x56d9c9(0x274)][_0x56d9c9(0x261)](_0x5a9eaf,_0x82401d);if(!_0x22cafe)return;for(const [_0x9c392e,_0x402342]of _0x22cafe){this['_sparklineDataSourceModel'][_0x56d9c9(0x242)](_0x5a9eaf,_0x82401d,_0x9c392e);const _0xec87d4=_0x402342[_0x56d9c9(0x1d6)];_0xec87d4[_0x56d9c9(0x1fa)]((_0x46a7c6,_0x428849,_0x5a3cfc)=>{const _0x2f5bd8=_0x56d9c9,_0x4da042={..._0x5a3cfc};_0x2783b8<=_0x4da042[_0x2f5bd8(0x22c)]?(_0x4da042['startRow']+=_0x3e0b19,_0x4da042[_0x2f5bd8(0x255)]+=_0x3e0b19):_0x2783b8>_0x4da042[_0x2f5bd8(0x255)]||(_0x4da042[_0x2f5bd8(0x255)]+=_0x3e0b19),_0xec87d4[_0x2f5bd8(0x1f0)](_0x46a7c6,_0x428849,_0x4da042);});const _0x3e1a3a=_0xec87d4[_0x56d9c9(0x235)](),_0x612d3a=Object[_0x56d9c9(0x226)](_0x3e1a3a)[_0x56d9c9(0x1d5)](Number),_0x559c21=Math[_0x56d9c9(0x1c9)](..._0x612d3a);for(let _0x4fc7eb=_0x559c21;_0x4fc7eb>=_0x2783b8;_0x4fc7eb--)_0x4fc7eb>=_0x2783b8&&_0x3e1a3a[_0x4fc7eb]&&(_0x3e1a3a[_0x4fc7eb+_0x3e0b19]=_0x3e1a3a[_0x4fc7eb],delete _0x3e1a3a[_0x4fc7eb]);this[_0x56d9c9(0x274)][_0x56d9c9(0x213)](_0x5a9eaf,_0x82401d,_0x9c392e);}}else{if(_0x47bbbb['id']===_0x59e507['id']){const _0x4e9b3b=_0x47bbbb['params'],{range:_0x40b2d2,unitId:_0x55ce7a,subUnitId:_0xa42a62}=_0x4e9b3b,_0x388d65=this[_0x56d9c9(0x274)][_0x56d9c9(0x261)](_0x55ce7a,_0xa42a62);if(!_0x388d65)return;for(const [_0x4a3bb0,_0x35c04d]of _0x388d65){const _0x537f3a=_0x35c04d[_0x56d9c9(0x1d6)];_0x537f3a[_0x56d9c9(0x1fa)]((_0x7582b,_0x237d17,_0x946c29)=>{const _0x3bec91=_0x56d9c9,_0x377319=_0x4b150d(_0x946c29,_0x47bbbb);_0x377319?_0x537f3a[_0x3bec91(0x1f0)](_0x7582b,_0x237d17,_0x377319):_0x537f3a['setValue'](_0x7582b,_0x237d17,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x44efa4[_0x3bec91(0x237)]});}),_0x537f3a[_0x56d9c9(0x247)](_0x40b2d2['startColumn'],_0x40b2d2['endColumn']-_0x40b2d2[_0x56d9c9(0x203)]+0x1);}this[_0x56d9c9(0x274)][_0x56d9c9(0x1d7)](_0x55ce7a,_0xa42a62);}else{if(_0x47bbbb['id']===_0x436bb2['id']){const _0x3b1e81=_0x47bbbb[_0x56d9c9(0x231)],{range:_0x48b030,unitId:_0x5b9f7f,subUnitId:_0xbd3919}=_0x3b1e81,_0x5a4887=this[_0x56d9c9(0x274)][_0x56d9c9(0x261)](_0x5b9f7f,_0xbd3919);if(!_0x5a4887)return;for(const [_0x15cde4,_0x3776ca]of _0x5a4887){const _0x1385ad=_0x3776ca[_0x56d9c9(0x1d6)];_0x1385ad[_0x56d9c9(0x1fa)]((_0x474527,_0x562b67,_0x96f8c0)=>{const _0x58c83d=_0x56d9c9,_0x3d134a=_0x4b150d(_0x96f8c0,_0x47bbbb);_0x3d134a?_0x1385ad['setValue'](_0x474527,_0x562b67,_0x3d134a):_0x1385ad[_0x58c83d(0x1f0)](_0x474527,_0x562b67,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x44efa4[_0x58c83d(0x237)]});}),_0x1385ad[_0x56d9c9(0x263)](_0x48b030[_0x56d9c9(0x22c)],_0x48b030[_0x56d9c9(0x255)]-_0x48b030[_0x56d9c9(0x22c)]+0x1);}this[_0x56d9c9(0x274)][_0x56d9c9(0x1d7)](_0x5b9f7f,_0xbd3919);}else{if(_0x47bbbb['id']===_0x49156f['id']){const _0xf9fa73=_0x47bbbb[_0x56d9c9(0x231)],{unitId:_0x50d163,subUnitId:_0xc5b595,sourceRange:_0x86c19,targetRange:_0x4cd1fd}=_0xf9fa73,_0x263712=this[_0x56d9c9(0x274)]['getSubUnitSparkline'](_0x50d163,_0xc5b595);if(!_0x263712)return;for(const [_0x13d542,_0x59800f]of _0x263712){const _0xbcabdf=_0x59800f['sparklines'];_0xbcabdf[_0x56d9c9(0x1fa)]((_0x203ced,_0x52165e,_0x458f77)=>{const _0x3b07ef=_0x4b150d(_0x458f77,_0x47bbbb);_0x3b07ef?_0xbcabdf['setValue'](_0x203ced,_0x52165e,_0x3b07ef):_0xbcabdf['setValue'](_0x203ced,_0x52165e,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x44efa4['NORMAL']});}),_0xbcabdf[_0x56d9c9(0x22f)](_0x86c19[_0x56d9c9(0x203)],_0x86c19[_0x56d9c9(0x239)]-_0x86c19[_0x56d9c9(0x203)]+0x1,_0x4cd1fd[_0x56d9c9(0x203)]);}this[_0x56d9c9(0x274)][_0x56d9c9(0x1d7)](_0x50d163,_0xc5b595);}else{if(_0x47bbbb['id']===_0xd667e6['id']){const _0x4340c4=_0x47bbbb[_0x56d9c9(0x231)],{unitId:_0x482db6,subUnitId:_0x168bfd,sourceRange:_0x4e2c1e,targetRange:_0x55546f}=_0x4340c4,_0x7524e7=this[_0x56d9c9(0x274)][_0x56d9c9(0x261)](_0x482db6,_0x168bfd);if(!_0x7524e7)return;for(const [_0x2cb783,_0x2b9766]of _0x7524e7){const _0x46afdb=_0x2b9766[_0x56d9c9(0x1d6)];_0x46afdb['forValue']((_0x30b9c4,_0x4c95d6,_0x3eaa88)=>{const _0x3a4354=_0x56d9c9,_0x49999e=_0x4b150d(_0x3eaa88,_0x47bbbb);_0x49999e?_0x46afdb['setValue'](_0x30b9c4,_0x4c95d6,_0x49999e):_0x46afdb[_0x3a4354(0x1f0)](_0x30b9c4,_0x4c95d6,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x44efa4[_0x3a4354(0x237)]});}),_0x46afdb[_0x56d9c9(0x200)](_0x4e2c1e['startRow'],_0x4e2c1e[_0x56d9c9(0x255)]-_0x4e2c1e['startRow']+0x1,_0x55546f[_0x56d9c9(0x22c)]);}this[_0x56d9c9(0x274)][_0x56d9c9(0x1d7)](_0x482db6,_0x168bfd);}else{if(_0x47bbbb['id']===_0x29c039['id']){const _0x1cbe9c=_0x47bbbb[_0x56d9c9(0x231)],{fromRange:_0xc9915a,toRange:_0x4963c0,unitId:_0x17485f,from:_0x24dcd1,to:_0x18945c}=_0x1cbe9c;if(_0x24dcd1[_0x56d9c9(0x1c4)]!==_0x18945c[_0x56d9c9(0x1c4)])return;const _0x37e8b7=_0x24dcd1['subUnitId'],{startRow:_0x45039e,endRow:_0x4d0b0a,startColumn:_0x1f055a,endColumn:_0x15722b}=_0xc9915a,{startRow:_0x11e725,startColumn:_0x3fd46b}=_0x4963c0,_0x2ceaeb=_0x11e725-_0x45039e,_0x159252=_0x3fd46b-_0x1f055a,_0x21a0e9=this['_sparklineDataSourceModel'][_0x56d9c9(0x261)](_0x17485f,_0x37e8b7);if(!(_0x21a0e9!=null&&_0x21a0e9[_0x56d9c9(0x1de)]))return;for(let _0xfc367=_0x45039e;_0xfc367<=_0x4d0b0a;_0xfc367++)for(let _0x9144e=_0x1f055a;_0x9144e<=_0x15722b;_0x9144e++){const _0x148026=this[_0x56d9c9(0x274)][_0x56d9c9(0x268)](_0x17485f,_0x37e8b7,_0xfc367,_0x9144e);if(_0x148026){const _0x241bdb=this[_0x56d9c9(0x274)][_0x56d9c9(0x1ec)](_0x17485f,_0x37e8b7,_0x148026);if(_0x241bdb){const _0x2474cd=_0x241bdb['sparklines']['getValue'](_0xfc367,_0x9144e);_0x2474cd&&(_0x241bdb['sparklines'][_0x56d9c9(0x1f0)](_0xfc367+_0x2ceaeb,_0x9144e+_0x159252,_0x2474cd),_0x241bdb[_0x56d9c9(0x1d6)][_0x56d9c9(0x1e9)](_0xfc367,_0x9144e));}}}for(const [_0xf91149,_0x44363c]of _0x21a0e9){const _0x2b28d0=_0x44363c['sparklines'];_0x2b28d0[_0x56d9c9(0x1fa)]((_0x102572,_0x53bdd9,_0xf70931)=>{const _0x4d0e7f=_0x56d9c9,_0x365ab0={..._0xf70931};_0xdfa53d[_0x4d0e7f(0x25c)](_0xc9915a,_0xf70931)&&(_0x365ab0[_0x4d0e7f(0x22c)]+=_0x2ceaeb,_0x365ab0[_0x4d0e7f(0x255)]+=_0x2ceaeb,_0x365ab0[_0x4d0e7f(0x203)]+=_0x159252,_0x365ab0[_0x4d0e7f(0x239)]+=_0x159252),_0x2b28d0[_0x4d0e7f(0x1f0)](_0x102572,_0x53bdd9,_0x365ab0);});}this[_0x56d9c9(0x274)][_0x56d9c9(0x1d7)](_0x17485f,_0x37e8b7);}}}}}}}}));}};Me=Kt([ue(0x0,_0x225e0c(_0x20ed95)),ue(0x1,_0x225e0c(_0x30cdc7)),ue(0x2,_0x225e0c(_0xe8b78e)),ue(0x3,_0xc51d55),ue(0x4,_0x225e0c(x))],Me);var Xt=Object[_0xccd401(0x1d0)],zt=(_0x1cfb57,_0x15e509,_0x42ac25,_0xf279b)=>{const _0xb6a7cc=_0xccd401;for(var _0x2a7708=_0xf279b>0x1?void 0x0:_0xf279b?Xt(_0x15e509,_0x42ac25):_0x15e509,_0x1d98a0=_0x1cfb57[_0xb6a7cc(0x1ed)]-0x1,_0x2d0ddf;_0x1d98a0>=0x0;_0x1d98a0--)(_0x2d0ddf=_0x1cfb57[_0x1d98a0])&&(_0x2a7708=_0x2d0ddf(_0x2a7708)||_0x2a7708);return _0x2a7708;},Be=(_0x2e95ff,_0x16f720)=>(_0x7479b2,_0x7690f4)=>_0x16f720(_0x7479b2,_0x7690f4,_0x2e95ff);let Re=class extends _0x338254{constructor(_0x51dbbb,_0x3607f4){const _0x2401f0=_0xccd401;super(),this[_0x2401f0(0x208)]=_0x51dbbb,this[_0x2401f0(0x274)]=_0x3607f4,this[_0x2401f0(0x215)]();}[_0xccd401(0x215)](){const _0x2b37de=_0xccd401,_0x25ceba=_0x39ea44=>{const _0x4a7194=_0x2307,_0x556832=this[_0x4a7194(0x274)][_0x4a7194(0x218)](_0x39ea44);return _0x556832?JSON[_0x4a7194(0x228)](_0x556832):'';},_0x514519=_0x1a1270=>_0x1a1270?JSON[_0x2b37de(0x225)](_0x1a1270):{};this[_0x2b37de(0x244)](this[_0x2b37de(0x208)][_0x2b37de(0x1f4)]({'toJson':_0x25ceba,'parseJson':_0x514519,'pluginName':Ke,'businesses':[_0x4b0b73[_0x2b37de(0x223)]],'onLoad':(_0x505809,_0x10273c)=>{const _0x4b1f2f=_0x2b37de;this[_0x4b1f2f(0x274)][_0x4b1f2f(0x26f)](_0x10273c);},'onUnLoad':_0x27cd8f=>{const _0x4ed1a7=_0x2b37de;this['_sparklineDataSourceModel'][_0x4ed1a7(0x253)](_0x27cd8f);}}));}};Re=zt([Be(0x0,_0x225e0c(_0x1043aa)),Be(0x1,_0x225e0c(x))],Re);var Jt=Object[_0xccd401(0x202)],Zt=Object[_0xccd401(0x1d0)],Yt=(_0x5a9b66,_0x63fb11,_0x3fd595)=>_0x63fb11 in _0x5a9b66?Jt(_0x5a9b66,_0x63fb11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fd595}):_0x5a9b66[_0x63fb11]=_0x3fd595,qt=(_0x26538e,_0x559656,_0x6bbfc4,_0x50043f)=>{const _0x2c0bb2=_0xccd401;for(var _0x5db355=_0x50043f>0x1?void 0x0:_0x50043f?Zt(_0x559656,_0x6bbfc4):_0x559656,_0x4b29f3=_0x26538e[_0x2c0bb2(0x1ed)]-0x1,_0x5a2a8b;_0x4b29f3>=0x0;_0x4b29f3--)(_0x5a2a8b=_0x26538e[_0x4b29f3])&&(_0x5db355=_0x5a2a8b(_0x5db355)||_0x5db355);return _0x5db355;},He=(_0x150854,_0x5227a8)=>(_0x1af919,_0x117abf)=>_0x5227a8(_0x1af919,_0x117abf,_0x150854),ze=(_0x3f0e68,_0x546972,_0x2f9bd4)=>Yt(_0x3f0e68,typeof _0x546972!=_0xccd401(0x1be)?_0x546972+'':_0x546972,_0x2f9bd4);let ve=class extends _0x16de03{constructor(_0x5d544d={},_0xe34ced,_0x32492d){const _0x458dd6=_0xccd401;super(),this['_config']=_0x5d544d,this[_0x458dd6(0x23c)]=_0xe34ced,this[_0x458dd6(0x246)]=_0x32492d,this[_0x458dd6(0x220)](),this['_initRegisterCommand']();}[_0xccd401(0x220)](){const _0x409530=_0xccd401;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x409530(0x24d)](_0xd25cac=>{const _0x23f9b9=_0x409530;this[_0x23f9b9(0x23c)][_0x23f9b9(0x1eb)](_0xd25cac);}),_0x3bcf96(this['_injector'],[[Re]]);}[_0xccd401(0x1cd)](){_0x3bcf96(this['_injector'],[[me],[_e],[Se],[Me],[Ce],[ke]]);}[_0xccd401(0x243)](){const _0x35d9bf=_0xccd401;[Nt,V,Ot,y,xt,Oe]['forEach'](_0xc5c5fe=>this[_0x35d9bf(0x246)][_0x35d9bf(0x252)](_0xc5c5fe));}};function _0x2307(_0x27ec04,_0x4cedae){const _0x14dc61=_0x14dc();return _0x2307=function(_0x230794,_0xf78f80){_0x230794=_0x230794-0x1bc;let _0x2775de=_0x14dc61[_0x230794];return _0x2775de;},_0x2307(_0x27ec04,_0x4cedae);}function _0x14dc(){const _0x2ce3bb=['_initClearWithSparkline','highPoint','size','STRING','nonNumShowAs','LINE_CHART','clone','sheet.command.add-sparkline','_refRangeService','updateConfig$','_initCorrectRangeWithSparkline','getSizeOf','rgb(124,66,147)','realDeleteValue','matrix','add','getSparklineById','length','rgb(248,190,21)','sparklineModel','setValue','getSheetBySheetId','getColVisible','changeDataSourceInfo','registerPluginResource','_univerInstanceService','containHiddenCells','_ensureAnchorMatrix','extremumMax','_updateConfig$','forValue','rgb(54,78,244)','foreach','DISTINCTIVE','min','10QVWfMS','moveRows','soft','defineProperty','startColumn','assign','config','registerRefRange','getCell','_resourceManagerService','getCurrentUnitForType','63NTYPYy','markersPoint','MUTATION','_onRefRangeChange','_sparklineAnchorMap','groupId','connect_with_line','_getRefRangeMutationsByDeleteRows','_initMergeWithSparkline','updateSparklineExtraNum','SOFT','_initSnapshot','_sheetInterceptorService','onCommandExecuted','toJSON','from','disposableCollection','getSparklineCache','column','SHEET_SPARKLINE_PLUGIN','lastPoint','type','_initDependencies','_getRefRangeMutationsByDeleteCols','PROFIT_AND_LOSS_CHART','UNIVER_SHEET','80280boizgP','parse','keys','row','stringify','1211994sXcCAb','removeSparkline','zero_value','startRow','824118CUxqpj','firstPoint','moveColumns','BAR_CHART','params','_sparklineModel','u-spacing','refRangeHandle','getMatrix','item','NORMAL','2832528WVJbNK','endColumn','setSparkline','MIN_SAFE_INTEGER','_injector','_initExclusiveRangeChange','remove','getRowVisible','1151980zbGqOd','sheet.mutation.set-sparkline','clearSparklineCache','_initRegisterCommand','disposeWithMe','values','_commandService','removeColumns','COMMAND','value','GROUP_EXTREMUM','sheet.command.set-sparkline','get','forEach','toRgbString','ZERO_VALUE','standard','sheet.mutation.add-sparkline','registerCommand','deleteUnit','_initDataChangeListener','endRow','set','PIE_CHART','_sheetSelectionService','getValue','getCurrentSelections','hasValue','contains','exclusiveRangesChange$','actualColumn','rgb(80,102,248)','_initHideRowColWithSparkline','getSubUnitSparkline','removePartSparkline','removeRows','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','u-connect','spacing','interceptCommand','getSparkline','themeType','next','CONNECT_WITH_LINE','number','MAX_SAFE_INTEGER','extremumMin','fromJSON','CUSTOM','intersects','setAlpha','addSparkline','_sparklineDataSourceModel','STANDARD','rgb(252,117,60)','pushUndoRedo','getCellRaw','8319474eRoaae','delete','symbol','rgb(236,100,169)','unitId','rgb(49,106,246)','fresh','negativePoint','subUnitId','FORCE_STRING','NUMBER','has','CUSTOM_EXTREMUM','max','entries','_exclusiveRangeService','ranges','onReady','custom','105puCmzA','getOwnPropertyDescriptor','sparklineAnchorMap','every','range','lowPoint','map','sparklines','reBuildAnchorCache','4446590ScJODh','deepClone','push','SPACING'];_0x14dc=function(){return _0x2ce3bb;};return _0x14dc();}ze(ve,'pluginName',Ke),ze(ve,_0xccd401(0x21f),_0x4b0b73['UNIVER_SHEET']),ve=qt([_0x510078(_0x14e199),He(0x1,_0x225e0c(_0x375b6d)),He(0x2,_0x225e0c(_0x20ed95))],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
|
+
function _0x11b0(_0x147494,_0x2d1adc){const _0x56de03=_0x56de();return _0x11b0=function(_0x11b0d3,_0x1744d8){_0x11b0d3=_0x11b0d3-0x1d3;let _0x10df9d=_0x56de03[_0x11b0d3];return _0x10df9d;},_0x11b0(_0x147494,_0x2d1adc);}const _0xd288ed=_0x11b0;(function(_0x104805,_0x3ed519){const _0x41c3dd=_0x11b0,_0x12b66=_0x104805();while(!![]){try{const _0x142e1a=parseInt(_0x41c3dd(0x1df))/0x1*(parseInt(_0x41c3dd(0x241))/0x2)+parseInt(_0x41c3dd(0x20c))/0x3+parseInt(_0x41c3dd(0x268))/0x4+-parseInt(_0x41c3dd(0x1d7))/0x5*(parseInt(_0x41c3dd(0x23b))/0x6)+parseInt(_0x41c3dd(0x1eb))/0x7*(parseInt(_0x41c3dd(0x202))/0x8)+parseInt(_0x41c3dd(0x265))/0x9*(parseInt(_0x41c3dd(0x25f))/0xa)+-parseInt(_0x41c3dd(0x21b))/0xb;if(_0x142e1a===_0x3ed519)break;else _0x12b66['push'](_0x12b66['shift']());}catch(_0x5f0d40){_0x12b66['push'](_0x12b66['shift']());}}}(_0x56de,0xcc178));var qe=Object[_0xd288ed(0x23a)],Qe=(_0x3b8471,_0x1573c5,_0x1ec3db)=>_0x1573c5 in _0x3b8471?qe(_0x3b8471,_0x1573c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ec3db}):_0x3b8471[_0x1573c5]=_0x1ec3db,se=(_0xe6f81a,_0x22abf0,_0x24fbf8)=>Qe(_0xe6f81a,typeof _0x22abf0!=_0xd288ed(0x1e0)?_0x22abf0+'':_0x22abf0,_0x24fbf8);import{UniverLicensePlugin as _0x1b39bf}from'@univerjs-pro/license';import{ObjectMatrix as _0x2561c9,Inject as _0x5d1749,IUniverInstanceService as _0x247b96,Disposable as _0x3480d3,isValidRange as _0x3fd9ee,CellValueType as _0xd5f256,ColorKit as _0xe16716,CommandType as _0x472447,Range as _0x51f2c0,IUndoRedoService as _0xdcf169,generateRandomId as _0x13833d,ICommandService as _0x5e26ed,Tools as _0x5a3eb8,sequenceExecute as _0xf3ff2e,Rectangle as _0x2b7218,cellToRange as _0x1470e6,DisposableCollection as _0x2bf186,RANGE_TYPE as _0x3764e2,UniverInstanceType as _0x420990,IResourceManagerService as _0x3cd0d0,DependentOn as _0xcd782b,Injector as _0x5c3983,Plugin as _0x3616c3,touchDependencies as _0x5c60f3}from'@univerjs/core';import{getSheetCommandTarget as _0x1cb152,SheetsSelectionsService as _0x2a7198,SheetInterceptorService as _0x36afd7,ClearSelectionAllCommand as _0x19e45c,CopySheetCommand as _0x307642,IExclusiveRangeService as _0x57407d,SetRangeValuesMutation as _0x3d60c0,ReorderRangeMutation as _0x2a5df1,SetRowHiddenMutation as _0x26326d,SetColHiddenMutation as _0x169bd4,SetRowVisibleMutation as _0x546b1b,SetColVisibleMutation as _0xd4e8c7,AddWorksheetMergeCommand as _0xc93dac,RefRangeService as _0x179aff,SetWorksheetActivateCommand as _0x2d7683,RemoveRowCommand as _0xcd935a,RemoveColCommand as _0x3daf66,adjustRangeOnMutation as _0x3863a3,RemoveRowMutation as _0x4da17a,RemoveColMutation as _0x48414a,InsertColMutation as _0xa652c5,InsertRowMutation as _0x1fe6db,MoveColsMutation as _0x282322,MoveRowsMutation as _0x532025,MoveRangeMutation as _0x1f94c7}from'@univerjs/sheets';import{Subject as _0xe27cd3}from'rxjs';function Fe(_0x736618,_0x1d1794){const _0x35fdec=_0xd288ed,_0x1e2325=new _0x2561c9(),_0x19c6af=[],_0x2fb403=_0x736618[_0x35fdec(0x285)]>0x1;let _0x5bfa01=0x0,_0x5ada07=0x0;for(const _0xe39ec6 of _0x736618)_0x5bfa01+=_0xe39ec6[_0x35fdec(0x228)]-_0xe39ec6[_0x35fdec(0x1d6)]+0x1,_0x5ada07+=_0xe39ec6[_0x35fdec(0x28a)]-_0xe39ec6[_0x35fdec(0x1f6)]+0x1;for(const _0x53cabc of _0x1d1794)for(let _0x1629ed=_0x53cabc[_0x35fdec(0x1d6)];_0x1629ed<=_0x53cabc[_0x35fdec(0x228)];_0x1629ed++)for(let _0x6f3e55=_0x53cabc[_0x35fdec(0x1f6)];_0x6f3e55<=_0x53cabc[_0x35fdec(0x28a)];_0x6f3e55++)_0x19c6af[_0x35fdec(0x207)]({'row':_0x1629ed,'column':_0x6f3e55});if(_0x19c6af[_0x35fdec(0x285)]===_0x5bfa01)_0x2fb403?_0x19c6af[_0x35fdec(0x28b)]((_0x2de0fa,_0x14ef43)=>{const _0x415734=_0x35fdec,_0x347a7c=_0x736618[_0x14ef43],_0x3cb394={'startRow':_0x347a7c[_0x415734(0x1d6)],'startColumn':_0x347a7c[_0x415734(0x1f6)],'endRow':_0x347a7c[_0x415734(0x1d6)],'endColumn':_0x347a7c[_0x415734(0x28a)]};_0x1e2325[_0x415734(0x26d)](_0x2de0fa[_0x415734(0x221)],_0x2de0fa[_0x415734(0x1e1)],_0x3cb394);}):_0x19c6af['forEach']((_0x5b0810,_0x2aea8a)=>{const _0x154330=_0x35fdec,_0x1a2306=_0x736618[0x0],_0x2550c6={'startRow':_0x1a2306[_0x154330(0x1d6)]+_0x2aea8a,'startColumn':_0x1a2306[_0x154330(0x1f6)],'endRow':_0x1a2306['startRow']+_0x2aea8a,'endColumn':_0x1a2306['endColumn']};_0x1e2325[_0x154330(0x26d)](_0x5b0810['row'],_0x5b0810[_0x154330(0x1e1)],_0x2550c6);});else{if(_0x19c6af[_0x35fdec(0x285)]===_0x5ada07)_0x2fb403?_0x19c6af['forEach']((_0xf2ef4e,_0x33eecc)=>{const _0x3a139b=_0x35fdec,_0xcd2cc0=_0x736618[_0x33eecc],_0x40f8ff={'startRow':_0xcd2cc0[_0x3a139b(0x1d6)],'startColumn':_0xcd2cc0[_0x3a139b(0x1f6)],'endRow':_0xcd2cc0[_0x3a139b(0x228)],'endColumn':_0xcd2cc0[_0x3a139b(0x1f6)]};_0x1e2325[_0x3a139b(0x26d)](_0xf2ef4e['row'],_0xf2ef4e[_0x3a139b(0x1e1)],_0x40f8ff);}):_0x19c6af['forEach']((_0x3fe18e,_0x37ede8)=>{const _0x20eb7d=_0x35fdec,_0x2d6c97=_0x736618[0x0],_0x4a8d22={'startRow':_0x2d6c97[_0x20eb7d(0x1d6)],'startColumn':_0x2d6c97[_0x20eb7d(0x1f6)]+_0x37ede8,'endRow':_0x2d6c97[_0x20eb7d(0x228)],'endColumn':_0x2d6c97[_0x20eb7d(0x1f6)]+_0x37ede8};_0x1e2325[_0x20eb7d(0x26d)](_0x3fe18e[_0x20eb7d(0x221)],_0x3fe18e[_0x20eb7d(0x1e1)],_0x4a8d22);});else{if(_0x19c6af['length']===_0x736618[_0x35fdec(0x285)])_0x736618[_0x35fdec(0x1ed)](_0x177e19=>!(_0x177e19[_0x35fdec(0x1d6)]!==_0x177e19[_0x35fdec(0x228)]&&_0x177e19[_0x35fdec(0x1f6)]!==_0x177e19[_0x35fdec(0x28a)]))&&_0x19c6af[_0x35fdec(0x28b)]((_0x3bf262,_0x424e06)=>{const _0x34242f=_0x35fdec,_0x2b6290=_0x736618[_0x424e06];_0x1e2325[_0x34242f(0x26d)](_0x3bf262[_0x34242f(0x221)],_0x3bf262[_0x34242f(0x1e1)],_0x2b6290);});else throw new Error(_0x35fdec(0x237));}}return _0x1e2325;}const Ke=_0xd288ed(0x1e8),Le={'standard':[_0xd288ed(0x239),'rgb(236,100,169)'],'specialty':[_0xd288ed(0x1f7),_0xd288ed(0x246)],'distinctive':[_0xd288ed(0x1ec),_0xd288ed(0x263)],'soft':[_0xd288ed(0x213),_0xd288ed(0x208)],'fresh':['rgb(46,187,122)',_0xd288ed(0x250)]},on=[_0xd288ed(0x1e9),_0xd288ed(0x223),'lastPoint',_0xd288ed(0x278),'negativePoint',_0xd288ed(0x205)];function _0x56de(){const _0x3a043e=['_ensureConfigMap','exclusiveRangesChange$','_config','rgb(248,190,21)','CONNECT_WITH_LINE','getSizeOf','_initMergeWithSparkline','refRangeHandle','MAX_SAFE_INTEGER','subscribe','toJSON','_sheetInterceptorService','_refRangeService','entries','custom','item','moveColumns','STRING','130PKRubX','emptyShowAs','sparklineModel','interceptCommand','rgb(252,117,60)','COMMAND','439083sauIjG','_initRegisterCommand','getSparkline','2670080LHNVUa','actualColumn','remove','foreach','add','setValue','_resourceManagerService','next','type','u-spacing','specialty','removePartSparkline','has','size','assign','DISTINCTIVE','lowPoint','contains','PIE_CHART','updateSparklineExtraNum','range','_sheetSelectionService','sparklineAnchorMap','clearSparklineCache','get','soft','moveRows','stringify','set','length','FRESH','_sparklineDataSourceModel','_sparklineAnchorMap','UNIVER_SHEET','endColumn','forEach','toRgbString','unitId','matrix','CUSTOM_EXTREMUM','ZERO_VALUE','themeType','fresh','_initDependencies','LINE_CHART','startRow','8655cDUAvU','reBuildAnchorCache','params','parse','intersects','extremumMax','BAR_CHART','_initHideRowColWithSparkline','64ykbchI','symbol','column','getCellRaw','extremumMin','onReady','NUMBER','disposeWithMe','some','SHEET_SPARKLINE_PLUGIN','highPoint','disposableCollection','147btCWQy','rgb(124,66,147)','every','SELF_EXTREMUM','forValue','_ensureAnchorMatrix','CUSTOM','fromJSON','FORCE_STRING','_exclusiveRangeService','zero_value','startColumn','rgb(49,106,246)','_injector','asObservable','min','GROUP_EXTREMUM','groupId','STANDARD','NORMAL','getCell','clone','realDeleteValue','26584sEJxvb','removeColumns','connect_with_line','markersPoint','sheet.command.remove-sparkline','push','rgb(244,104,249)','hasValue','dispose','delete','1825104DHuFDF','_onRefRangeChange','SPACING','registerPluginResource','max','getSparklineById','_initExclusiveRangeChange','rgb(80,102,248)','getSparklineCache','MUTATION','getMatrix','_updateConfig$','from','MIN_SAFE_INTEGER','_initClearWithSparkline','19211940ANcBMm','BOOLEAN','getSubUnitSparkline','getColVisible','_initCorrectRangeWithSparkline','SPECIALTY','row','_sparklineModel','firstPoint','sheet.mutation.remove-sparkline','distinctive','setAlpha','number','endRow','subUnitId','_commandService','deepClone','getSheetBySheetId','_univerInstanceService','standard','map','PROFIT_AND_LOSS_CHART','changeDataSourceInfo','value','getValue','spacing','sparklines','ranges','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','containHiddenCells','rgb(54,78,244)','defineProperty','3636NEjDiW','addSparkline','pushUndoRedo','updateConfig$','removeSparkline','removeRows','51612mEYEUk','getCurrentSelections','getOwnPropertyDescriptor','registerCommand','actualRow','rgb(30,177,189)','config','setSparkline','sheet.command.add-sparkline','onCommandExecuted','_initSnapshot','keys'];_0x56de=function(){return _0x3a043e;};return _0x56de();}var Xe=(_0x1b62bd=>(_0x1b62bd[_0xd288ed(0x1fd)]=_0xd288ed(0x22e),_0x1b62bd[_0xd288ed(0x220)]=_0xd288ed(0x272),_0x1b62bd[_0xd288ed(0x277)]=_0xd288ed(0x225),_0x1b62bd['SOFT']=_0xd288ed(0x281),_0x1b62bd[_0xd288ed(0x286)]=_0xd288ed(0x1d3),_0x1b62bd[_0xd288ed(0x1f1)]=_0xd288ed(0x25b),_0x1b62bd))(Xe||{}),Dt=(_0x3a0985=>(_0x3a0985[_0x3a0985[_0xd288ed(0x1d5)]=0x1]=_0xd288ed(0x1d5),_0x3a0985[_0x3a0985[_0xd288ed(0x1dd)]=0x2]=_0xd288ed(0x1dd),_0x3a0985[_0x3a0985[_0xd288ed(0x230)]=0x3]='PROFIT_AND_LOSS_CHART',_0x3a0985[_0x3a0985[_0xd288ed(0x27a)]=0x4]=_0xd288ed(0x27a),_0x3a0985))(Dt||{}),J=(_0x4659cc=>(_0x4659cc['SPACING']=_0xd288ed(0x234),_0x4659cc[_0xd288ed(0x290)]=_0xd288ed(0x1f5),_0x4659cc[_0xd288ed(0x251)]=_0xd288ed(0x204),_0x4659cc))(J||{}),Ee=(_0x15acb7=>(_0x15acb7[_0x15acb7[_0xd288ed(0x1ee)]=0x1]=_0xd288ed(0x1ee),_0x15acb7[_0x15acb7[_0xd288ed(0x1fb)]=0x2]=_0xd288ed(0x1fb),_0x15acb7[_0x15acb7['CUSTOM_EXTREMUM']=0x3]=_0xd288ed(0x28f),_0x15acb7))(Ee||{}),Et=Object['getOwnPropertyDescriptor'],Vt=(_0x41aa01,_0x5385ef,_0x385f0b,_0x20a051)=>{const _0x1efe73=_0xd288ed;for(var _0x28d1e5=_0x20a051>0x1?void 0x0:_0x20a051?Et(_0x5385ef,_0x385f0b):_0x5385ef,_0x2bf1bb=_0x41aa01[_0x1efe73(0x285)]-0x1,_0x493d2f;_0x2bf1bb>=0x0;_0x2bf1bb--)(_0x493d2f=_0x41aa01[_0x2bf1bb])&&(_0x28d1e5=_0x493d2f(_0x28d1e5)||_0x28d1e5);return _0x28d1e5;},yt=(_0x3ab940,_0x5d07df)=>(_0x555c5d,_0x182419)=>_0x5d07df(_0x555c5d,_0x182419,_0x3ab940);let x=class extends _0x3480d3{constructor(_0x537227){const _0x249da5=_0xd288ed;super(),se(this,_0x249da5(0x222),new Map()),se(this,'_sparklineAnchorMap',new Map()),se(this,_0x249da5(0x217),new _0xe27cd3()),se(this,_0x249da5(0x23e),this[_0x249da5(0x217)][_0x249da5(0x1f9)]()),this['_univerInstanceService']=_0x537227;}[_0xd288ed(0x24d)](_0x26d213,_0xc24296){const _0x4f7240=_0xd288ed;let _0x2a46f7=this[_0x4f7240(0x222)]['get'](_0x26d213);_0x2a46f7||(_0x2a46f7=new Map(),this[_0x4f7240(0x222)][_0x4f7240(0x284)](_0x26d213,_0x2a46f7));let _0x16526a=_0x2a46f7[_0x4f7240(0x280)](_0xc24296);return _0x16526a||(_0x16526a=new Map(),_0x2a46f7[_0x4f7240(0x284)](_0xc24296,_0x16526a)),_0x16526a;}[_0xd288ed(0x1f0)](_0x2b8402,_0x494a50){const _0x28dd75=_0xd288ed;let _0x1fb861=this[_0x28dd75(0x288)][_0x28dd75(0x280)](_0x2b8402);_0x1fb861||(_0x1fb861=new Map(),this['_sparklineAnchorMap']['set'](_0x2b8402,_0x1fb861));let _0x5f2032=_0x1fb861[_0x28dd75(0x280)](_0x494a50);return _0x5f2032||(_0x5f2032={'matrix':new _0x2561c9(),'extra':{}},_0x1fb861[_0x28dd75(0x284)](_0x494a50,_0x5f2032)),_0x5f2032;}['updateSparklineExtraNum'](_0x2be940,_0x2cccb0,_0x517eee,_0x21ea40='set'){const _0x4dd90a=_0xd288ed;var _0x2b7486,_0x31134a,_0xf62b7b,_0x289326,_0x2f7bfd,_0x432a3f,_0x4b6db4,_0x4de34d,_0x27821e,_0x523750,_0x569f83,_0x14f47e,_0x2a3258;const _0x37cd64=(_0x31134a=(_0x2b7486=this[_0x4dd90a(0x222)][_0x4dd90a(0x280)](_0x2be940))==null?void 0x0:_0x2b7486[_0x4dd90a(0x280)](_0x2cccb0))==null?void 0x0:_0x31134a[_0x4dd90a(0x280)](_0x517eee);if(!_0x37cd64)return;const _0x27d752=_0x1cb152(this[_0x4dd90a(0x22d)],{'unitId':_0x2be940,'subUnitId':_0x2cccb0});if(!_0x27d752)return;const _0x3c50eb=this[_0x4dd90a(0x1f0)](_0x2be940,_0x2cccb0),{extra:_0x38de81,matrix:_0x258582}=_0x3c50eb,{worksheet:_0x4c5837}=_0x27d752;let _0x3c5629=Number['MIN_SAFE_INTEGER'],_0x52d468=Number[_0x4dd90a(0x255)];const _0x4588e9=(_0xf62b7b=_0x37cd64[_0x4dd90a(0x247)][_0x4dd90a(0x238)])!=null?_0xf62b7b:!0x1;_0x37cd64[_0x4dd90a(0x235)][_0x4dd90a(0x1ef)]((_0x562183,_0x4bf0a6,_0x2687f8)=>{const _0x392a57=_0x4dd90a;var _0x119d02,_0x46c243,_0x1b6fba;const _0x191208=_0x2687f8;let _0x2ae075=Number['MIN_SAFE_INTEGER'],_0x275ebf=Number['MAX_SAFE_INTEGER'],_0x17c2f4=0x0,_0x256623=0x0;const _0x1406b7=[];if(!_0x3fd9ee(_0x191208))_0x258582[_0x392a57(0x26d)](_0x562183,_0x4bf0a6,{'groupId':_0x517eee,'data':[],'max':_0x2ae075,'min':_0x275ebf,'highIndex':_0x17c2f4,'lowIndex':_0x256623,'negativeIndexes':_0x1406b7});else{const _0x3540c1=[];for(let _0x54c6a4=_0x191208['startRow'];_0x54c6a4<=_0x191208['endRow'];_0x54c6a4++){for(let _0x58a20f=_0x191208[_0x392a57(0x1f6)];_0x58a20f<=_0x191208[_0x392a57(0x28a)];_0x58a20f++){const _0x129c3e=_0x4c5837['getRowVisible'](_0x54c6a4),_0x2a1f6c=_0x4c5837[_0x392a57(0x21e)](_0x58a20f);if(!_0x4588e9&&(!_0x129c3e||!_0x2a1f6c))continue;let _0x237ec6=0x0;const _0x2623a1=((_0x119d02=_0x4c5837[_0x392a57(0x1e2)](_0x54c6a4,_0x58a20f))==null?void 0x0:_0x119d02['v'])!==void 0x0?_0x4c5837[_0x392a57(0x1e2)](_0x54c6a4,_0x58a20f):_0x4c5837[_0x392a57(0x1ff)](_0x54c6a4,_0x58a20f);if(!_0x2623a1||_0x2623a1['v']===void 0x0||_0x2623a1['v']===null){const _0x6957b=(_0x46c243=_0x37cd64['config'][_0x392a57(0x260)])!=null?_0x46c243:J[_0x392a57(0x20e)];_0x6957b===J[_0x392a57(0x290)]?_0x237ec6=0x0:_0x6957b===J[_0x392a57(0x20e)]?_0x237ec6=_0x392a57(0x271):_0x6957b===J['CONNECT_WITH_LINE']&&(_0x237ec6='u-connect');}else{if(_0x2623a1['t']===_0xd5f256[_0x392a57(0x25e)]||_0x2623a1['t']===_0xd5f256[_0x392a57(0x1f3)]){const _0x14ee96=(_0x1b6fba=_0x37cd64[_0x392a57(0x247)]['nonNumShowAs'])!=null?_0x1b6fba:J['SPACING'];_0x14ee96===J[_0x392a57(0x290)]?_0x237ec6=0x0:_0x14ee96===J['SPACING']?_0x237ec6=_0x392a57(0x271):_0x14ee96===J[_0x392a57(0x251)]&&(_0x237ec6='u-connect');}else _0x2623a1['t']===_0xd5f256[_0x392a57(0x21c)]?_0x237ec6=_0x2623a1['v']?0x1:0x0:_0x2623a1['t']===_0xd5f256[_0x392a57(0x1e5)]?_0x237ec6=Number(_0x2623a1['v']):_0x237ec6=_0x2623a1['v'];}if(_0x3540c1['push'](_0x237ec6),typeof _0x237ec6==_0x392a57(0x227)){_0x2ae075=Math[_0x392a57(0x210)](_0x2ae075,_0x237ec6),_0x3c5629=Math[_0x392a57(0x210)](_0x3c5629,_0x237ec6),_0x52d468=Math[_0x392a57(0x1fa)](_0x52d468,_0x237ec6),_0x275ebf=Math[_0x392a57(0x1fa)](_0x275ebf,_0x237ec6);const _0x2ba9f7=typeof _0x3540c1[_0x17c2f4]=='number'?Number(_0x3540c1[_0x17c2f4]):Number[_0x392a57(0x219)];_0x237ec6>_0x2ba9f7&&(_0x17c2f4=_0x3540c1[_0x392a57(0x285)]-0x1);const _0x2a1042=typeof _0x3540c1[_0x256623]==_0x392a57(0x227)?Number(_0x3540c1[_0x256623]):Number[_0x392a57(0x255)];_0x237ec6<_0x2a1042&&(_0x256623=_0x3540c1['length']-0x1),_0x237ec6<0x0&&_0x1406b7[_0x392a57(0x207)](_0x3540c1['length']-0x1);}}_0x258582['setValue'](_0x562183,_0x4bf0a6,{'groupId':_0x517eee,'data':_0x3540c1,'max':_0x2ae075,'min':_0x275ebf,'highIndex':_0x17c2f4,'lowIndex':_0x256623,'negativeIndexes':_0x1406b7});}}});let _0x317dd2=_0x3c5629;((_0x289326=_0x37cd64['config']['extremumMax'])==null?void 0x0:_0x289326[_0x4dd90a(0x270)])===Ee[_0x4dd90a(0x28f)]&&(_0x317dd2=(_0x432a3f=(_0x2f7bfd=_0x37cd64[_0x4dd90a(0x247)][_0x4dd90a(0x1dc)])==null?void 0x0:_0x2f7bfd[_0x4dd90a(0x232)])!=null?_0x432a3f:_0x3c5629);let _0x5e38a3=_0x52d468;((_0x4b6db4=_0x37cd64[_0x4dd90a(0x247)][_0x4dd90a(0x1e3)])==null?void 0x0:_0x4b6db4[_0x4dd90a(0x270)])===Ee[_0x4dd90a(0x28f)]&&(_0x5e38a3=(_0x27821e=(_0x4de34d=_0x37cd64[_0x4dd90a(0x247)]['extremumMin'])==null?void 0x0:_0x4de34d[_0x4dd90a(0x232)])!=null?_0x27821e:_0x52d468);const _0x1157b3=(_0x523750=_0x37cd64[_0x4dd90a(0x247)][_0x4dd90a(0x291)])!=null?_0x523750:Xe['STANDARD'],_0x3d653d=(_0x2a3258=(_0x14f47e=_0x37cd64[_0x4dd90a(0x247)]['seriesColor'])!=null?_0x14f47e:(_0x569f83=Le[_0x1157b3])==null?void 0x0:_0x569f83[0x0])!=null?_0x2a3258:Le[_0x4dd90a(0x22e)][0x0],_0x3e09a4=new _0xe16716(_0x3d653d),_0x587eef=_0x3e09a4[_0x4dd90a(0x226)](0.2)[_0x4dd90a(0x28c)](),_0x4b694b=_0x3e09a4[_0x4dd90a(0x226)](0.05)[_0x4dd90a(0x28c)]();_0x38de81[_0x517eee]={'groupMax':_0x3c5629,'groupMin':_0x52d468,'showMax':_0x317dd2,'showMin':_0x5e38a3,'startGradient':_0x587eef,'endGradient':_0x4b694b},this['_updateConfig$'][_0x4dd90a(0x26f)]({'unitId':_0x2be940,'subUnitId':_0x2cccb0,'groupId':_0x517eee,'config':_0x37cd64,'type':_0x21ea40});}[_0xd288ed(0x23c)](_0xd0facf,_0x429525,_0x111bbb,_0xba77bd){const _0x54bc8f=_0xd288ed;this['_ensureConfigMap'](_0xd0facf,_0x429525)[_0x54bc8f(0x284)](_0x111bbb,_0xba77bd),this[_0x54bc8f(0x27b)](_0xd0facf,_0x429525,_0x111bbb,_0x54bc8f(0x26c));}[_0xd288ed(0x248)](_0x33043c,_0x2e61fd,_0x5d9900,_0x27b630){const _0x35d2cd=_0xd288ed;var _0x563f95;const _0x3d6e12=(_0x563f95=this[_0x35d2cd(0x222)][_0x35d2cd(0x280)](_0x33043c))==null?void 0x0:_0x563f95[_0x35d2cd(0x280)](_0x2e61fd);_0x5d9900[_0x35d2cd(0x28b)](_0x2bc23c=>{const _0x2b271a=_0x35d2cd;_0x3d6e12!=null&&_0x3d6e12[_0x2b271a(0x274)](_0x2bc23c)&&(_0x3d6e12['set'](_0x2bc23c,_0x27b630),this[_0x2b271a(0x27b)](_0x33043c,_0x2e61fd,_0x2bc23c));});}[_0xd288ed(0x23f)](_0x48ece8,_0x39f212,_0x12bffb){const _0x10584e=_0xd288ed;var _0x3be74b,_0x2a37d9;const _0x5d50f0=this['_sparklineModel'][_0x10584e(0x280)](_0x48ece8);if(_0x5d50f0){const _0x4a1677=_0x5d50f0[_0x10584e(0x280)](_0x39f212);if(_0x4a1677){_0x4a1677[_0x10584e(0x20b)](_0x12bffb);const _0x542774=(_0x3be74b=this[_0x10584e(0x288)]['get'](_0x48ece8))==null?void 0x0:_0x3be74b[_0x10584e(0x280)](_0x39f212);(_0x2a37d9=_0x542774==null?void 0x0:_0x542774[_0x10584e(0x28e)])==null||_0x2a37d9[_0x10584e(0x1ef)]((_0x2cca63,_0x1c1906,_0x111488)=>{const _0x1b5b1c=_0x10584e;(_0x111488==null?void 0x0:_0x111488['groupId'])===_0x12bffb&&(_0x542774==null||_0x542774['matrix'][_0x1b5b1c(0x201)](_0x2cca63,_0x1c1906));}),this[_0x10584e(0x217)][_0x10584e(0x26f)]({'unitId':_0x48ece8,'subUnitId':_0x39f212,'groupId':_0x12bffb,'type':'remove'});}}}[_0xd288ed(0x273)](_0x255f55,_0x5a13e4,_0x4e988c,_0x32ccdf){const _0x40632a=_0xd288ed;var _0x185c48,_0x473542,_0x60792,_0x527c10;const _0x32f07b=(_0x185c48=this[_0x40632a(0x288)][_0x40632a(0x280)](_0x255f55))==null?void 0x0:_0x185c48[_0x40632a(0x280)](_0x5a13e4),_0x17e9d2=_0x32f07b==null?void 0x0:_0x32f07b[_0x40632a(0x28e)][_0x40632a(0x233)](_0x4e988c,_0x32ccdf);if(_0x17e9d2){const {groupId:_0x127066}=_0x17e9d2,_0x303dce=(_0x473542=this[_0x40632a(0x222)][_0x40632a(0x280)](_0x255f55))==null?void 0x0:_0x473542[_0x40632a(0x280)](_0x5a13e4);(_0x60792=_0x303dce==null?void 0x0:_0x303dce[_0x40632a(0x280)](_0x127066))==null||_0x60792[_0x40632a(0x235)]['realDeleteValue'](_0x4e988c,_0x32ccdf),(_0x527c10=_0x303dce==null?void 0x0:_0x303dce[_0x40632a(0x280)](_0x127066))!=null&&_0x527c10[_0x40632a(0x235)][_0x40632a(0x209)]()||_0x303dce==null||_0x303dce[_0x40632a(0x20b)](_0x127066),_0x32f07b==null||_0x32f07b[_0x40632a(0x28e)][_0x40632a(0x201)](_0x4e988c,_0x32ccdf),this[_0x40632a(0x217)][_0x40632a(0x26f)]({'unitId':_0x255f55,'subUnitId':_0x5a13e4,'groupId':_0x127066,'type':_0x40632a(0x26a)});}}[_0xd288ed(0x27f)](_0x445e0e,_0xcfc71,_0x1a5330){const _0x384dfb=_0xd288ed;var _0x4807c3,_0x420cd5,_0x3aec94,_0x45daa5;const _0x54f710=(_0x3aec94=(_0x420cd5=(_0x4807c3=this[_0x384dfb(0x222)][_0x384dfb(0x280)](_0x445e0e))==null?void 0x0:_0x4807c3[_0x384dfb(0x280)](_0xcfc71))==null?void 0x0:_0x420cd5[_0x384dfb(0x280)](_0x1a5330))==null?void 0x0:_0x3aec94[_0x384dfb(0x235)],_0x53234f=(_0x45daa5=this[_0x384dfb(0x288)][_0x384dfb(0x280)](_0x445e0e))==null?void 0x0:_0x45daa5[_0x384dfb(0x280)](_0xcfc71);if(_0x54f710&&_0x53234f){const {matrix:_0x15bcf5,extra:_0x81b453}=_0x53234f;_0x54f710[_0x384dfb(0x1ef)]((_0x55d1c9,_0x519bc7,_0x5cd14d)=>{const _0x53542e=_0x384dfb;_0x15bcf5[_0x53542e(0x201)](_0x55d1c9,_0x519bc7);}),delete _0x81b453[_0x1a5330];}}[_0xd288ed(0x21d)](_0x199afd,_0x47ed7f){const _0x498334=_0xd288ed;var _0xc0e600;return(_0xc0e600=this[_0x498334(0x222)][_0x498334(0x280)](_0x199afd))==null?void 0x0:_0xc0e600[_0x498334(0x280)](_0x47ed7f);}[_0xd288ed(0x211)](_0x5b77a4,_0x1c38bf,_0x26c72d){const _0x2ebd6f=_0xd288ed;var _0x256558,_0x4cc561;return(_0x4cc561=(_0x256558=this[_0x2ebd6f(0x222)][_0x2ebd6f(0x280)](_0x5b77a4))==null?void 0x0:_0x256558[_0x2ebd6f(0x280)](_0x1c38bf))==null?void 0x0:_0x4cc561['get'](_0x26c72d);}[_0xd288ed(0x267)](_0x5d9e7a,_0x31e8aa,_0x39c049,_0x17043d){const _0x3a8d1c=_0xd288ed;var _0x4825f3,_0x12840e,_0x2fd4bb;return(_0x2fd4bb=(_0x12840e=(_0x4825f3=this[_0x3a8d1c(0x288)][_0x3a8d1c(0x280)](_0x5d9e7a))==null?void 0x0:_0x4825f3['get'](_0x31e8aa))==null?void 0x0:_0x12840e[_0x3a8d1c(0x28e)][_0x3a8d1c(0x233)](_0x39c049,_0x17043d))==null?void 0x0:_0x2fd4bb[_0x3a8d1c(0x1fc)];}[_0xd288ed(0x1d8)](_0x4b5499,_0x3d9b11){const _0x1711fb=_0xd288ed;var _0x47477e;const _0x5d2852=this[_0x1711fb(0x1f0)](_0x4b5499,_0x3d9b11);_0x5d2852['matrix'][_0x1711fb(0x1ef)]((_0x4ef24e,_0x36efbe,_0x8fe74f)=>{const _0x6ed4dc=_0x1711fb;_0x5d2852[_0x6ed4dc(0x28e)]['realDeleteValue'](_0x4ef24e,_0x36efbe);});const _0x6d0826=(_0x47477e=this[_0x1711fb(0x222)][_0x1711fb(0x280)](_0x4b5499))==null?void 0x0:_0x47477e['get'](_0x3d9b11);if(_0x6d0826){for(const [_0xd6abf3,_0x58d77d]of _0x6d0826)this['updateSparklineExtraNum'](_0x4b5499,_0x3d9b11,_0xd6abf3);}}[_0xd288ed(0x214)](){const _0xca0d72=_0xd288ed;return{'sparklineModel':this[_0xca0d72(0x222)],'sparklineAnchorMap':this[_0xca0d72(0x288)]};}[_0xd288ed(0x257)](_0x256d36){const _0x2c7a0b=_0xd288ed,_0x39c3f0={};if(this[_0x2c7a0b(0x222)][_0x2c7a0b(0x274)](_0x256d36)){_0x39c3f0[_0x256d36]={};const _0x59ae20=this[_0x2c7a0b(0x222)]['get'](_0x256d36);_0x59ae20!=null&&_0x59ae20[_0x2c7a0b(0x275)]&&Array[_0x2c7a0b(0x218)](_0x59ae20['keys']())[_0x2c7a0b(0x28b)](_0x19f696=>{const _0x441df6=_0x2c7a0b;_0x39c3f0[_0x256d36][_0x19f696]={};const _0x4f3b1f=_0x59ae20[_0x441df6(0x280)](_0x19f696);_0x4f3b1f!=null&&_0x4f3b1f[_0x441df6(0x275)]&&Array[_0x441df6(0x218)](_0x4f3b1f[_0x441df6(0x24c)]())[_0x441df6(0x28b)](_0x57afd1=>{const _0x3a2f3c=_0x441df6,_0x2a850d=_0x4f3b1f[_0x3a2f3c(0x280)](_0x57afd1);_0x2a850d&&(_0x39c3f0[_0x256d36][_0x19f696][_0x57afd1]={'config':_0x2a850d[_0x3a2f3c(0x247)],'sparklines':_0x2a850d[_0x3a2f3c(0x235)]['getMatrix']()});});});}return _0x39c3f0;}[_0xd288ed(0x1f2)](_0x10a393){const _0x1549ee=_0xd288ed;if(!_0x10a393)return;Object[_0x1549ee(0x24c)](_0x10a393)[_0x1549ee(0x28b)](_0x265d4a=>{const _0x5d1f14=_0x1549ee,_0x5b1120=_0x10a393[_0x265d4a];_0x5b1120&&Object['keys'](_0x5b1120)[_0x5d1f14(0x28b)](_0x45bdc9=>{const _0x21ce2a=_0x5d1f14,_0x1d54d9=_0x5b1120[_0x45bdc9];_0x1d54d9&&Object[_0x21ce2a(0x24c)](_0x1d54d9)[_0x21ce2a(0x28b)](_0x1fc0b4=>{const _0x2908fc=_0x21ce2a,_0x18db90=_0x1d54d9[_0x1fc0b4];if(_0x18db90){const _0x869d01={'config':_0x18db90[_0x2908fc(0x247)],'sparklines':new _0x2561c9(_0x18db90['sparklines'])};this[_0x2908fc(0x23c)](_0x265d4a,_0x45bdc9,_0x1fc0b4,_0x869d01);}});});});}['deleteUnit'](_0x3bab3e){const _0x35ed12=_0xd288ed,_0x57bbdc=this['_sparklineModel'][_0x35ed12(0x280)](_0x3bab3e);if(_0x57bbdc){for(const [_0x3a26d9]of _0x57bbdc){const _0x441266=_0x57bbdc[_0x35ed12(0x280)](_0x3a26d9);if(_0x441266){for(const [_0xdf0f3e]of _0x441266)this[_0x35ed12(0x27f)](_0x3bab3e,_0x3a26d9,_0xdf0f3e);}}this['_sparklineModel'][_0x35ed12(0x20b)](_0x3bab3e);}}};x=Vt([yt(0x0,_0x5d1749(_0x247b96))],x);const V={'id':'sheet.mutation.add-sparkline','type':_0x472447[_0xd288ed(0x215)],'handler':(_0x52a5cb,_0x382c89)=>{const _0x15014a=_0xd288ed;if(!_0x382c89)return!0x1;const {sparklineConfigMap:_0x5afbd1,unitId:_0x5c6789,subUnitId:_0x4070bf}=_0x382c89,_0x1a3703=_0x52a5cb[_0x15014a(0x280)](x);return Object[_0x15014a(0x25a)](_0x5afbd1)[_0x15014a(0x28b)](([_0x1707f7,_0x86bc90])=>{const _0x27765b=_0x15014a,_0x2abbd7={'config':_0x86bc90['config'],'sparklines':new _0x2561c9(_0x86bc90[_0x27765b(0x235)])};_0x1a3703[_0x27765b(0x23c)](_0x5c6789,_0x4070bf,_0x1707f7,_0x2abbd7);}),!0x0;}},y={'id':_0xd288ed(0x224),'type':_0x472447[_0xd288ed(0x215)],'handler':(_0x203876,_0x22ed37)=>{const _0x12035b=_0xd288ed;if(!_0x22ed37)return!0x1;const {unitId:_0x1d42d4,subUnitId:_0x13d2ed,ranges:_0x379f15,isSingle:_0x3c2592,groupIds:_0x22668b}=_0x22ed37,_0x333dc6=_0x203876[_0x12035b(0x280)](x);return _0x22668b?(_0x22668b['forEach'](_0x173a79=>{const _0x291d91=_0x12035b;_0x333dc6[_0x291d91(0x23f)](_0x1d42d4,_0x13d2ed,_0x173a79);}),!0x0):_0x379f15?(_0x379f15['forEach'](_0x57a178=>{const _0x57e5b2=_0x12035b;_0x51f2c0[_0x57e5b2(0x26b)](_0x57a178,(_0x647a80,_0x4cc6f6)=>{const _0x6b1a8b=_0x57e5b2,_0x32994b=_0x333dc6[_0x6b1a8b(0x267)](_0x1d42d4,_0x13d2ed,_0x647a80,_0x4cc6f6);_0x32994b&&(_0x3c2592?_0x333dc6[_0x6b1a8b(0x273)](_0x1d42d4,_0x13d2ed,_0x647a80,_0x4cc6f6):_0x333dc6[_0x6b1a8b(0x23f)](_0x1d42d4,_0x13d2ed,_0x32994b));});}),!0x0):!0x1;}},Nt={'id':_0xd288ed(0x249),'type':_0x472447[_0xd288ed(0x264)],'handler':(_0x22cd3f,_0xd95043)=>{const _0x5bedb1=_0xd288ed;if(!_0xd95043)return!0x1;const {sourceRanges:_0x4a5b0e,targetRanges:_0x1314cb,config:_0x1b1b5a}=_0xd95043,_0x6e6d3e=_0x22cd3f[_0x5bedb1(0x280)](_0xdcf169),_0x45bb5b='g_'+_0x13833d(0x6),_0x49e5ed=Fe(_0x4a5b0e,_0x1314cb),_0x2f14b1={'config':_0x1b1b5a!=null?_0x1b1b5a:{},'sparklines':_0x49e5ed[_0x5bedb1(0x216)]()},_0x5870ef=_0x22cd3f[_0x5bedb1(0x280)](_0x247b96),_0x4ebdf7=_0x22cd3f[_0x5bedb1(0x280)](x),_0x4f8ce9=_0x1cb152(_0x5870ef);if(!_0x4f8ce9)return!0x1;const {unitId:_0x1c3ce9,subUnitId:_0xef32cb}=_0x4f8ce9,_0x4a4579=_0x22cd3f['get'](_0x5e26ed),_0xa7211a=[],_0x3eb407=[],_0x323174={},_0x38013e={},_0x15fc2=new Set([_0x45bb5b]);_0x49e5ed[_0x5bedb1(0x1ef)]((_0x207e25,_0x4b2619,_0x30bc6d)=>{const _0x13ea3d=_0x5bedb1,_0x9a4a93=_0x4ebdf7['getSparkline'](_0x1c3ce9,_0xef32cb,_0x207e25,_0x4b2619);if(_0x9a4a93){const _0x24f308=_0x4ebdf7[_0x13ea3d(0x211)](_0x1c3ce9,_0xef32cb,_0x9a4a93);if(_0x24f308){_0x15fc2[_0x13ea3d(0x26c)](_0x9a4a93);let _0x980e12=_0x323174[_0x9a4a93],_0x10e5b6=_0x38013e[_0x9a4a93];_0x10e5b6||(_0x10e5b6={'config':_0x5a3eb8[_0x13ea3d(0x22b)](_0x24f308[_0x13ea3d(0x247)]),'sparklines':new _0x2561c9(_0x24f308['sparklines']['clone']())},_0x38013e[_0x9a4a93]=_0x10e5b6),_0x980e12||(_0x980e12={'config':_0x5a3eb8[_0x13ea3d(0x22b)](_0x24f308['config']),'sparklines':_0x24f308[_0x13ea3d(0x235)][_0x13ea3d(0x200)]()},_0x323174[_0x9a4a93]=_0x980e12),_0x10e5b6[_0x13ea3d(0x235)][_0x13ea3d(0x201)](_0x207e25,_0x4b2619);}}});const _0x5ac512={};return Object[_0x5bedb1(0x25a)](_0x38013e)[_0x5bedb1(0x28b)](([_0x140391,_0x126b66])=>{const _0x2b79fc=_0x5bedb1;_0x126b66[_0x2b79fc(0x235)][_0x2b79fc(0x252)]()&&(_0x5ac512[_0x140391]={'config':_0x126b66['config'],'sparklines':_0x126b66['sparklines'][_0x2b79fc(0x200)]()});}),_0x5ac512[_0x45bb5b]=_0x2f14b1,_0xa7211a[_0x5bedb1(0x207)]({'id':y['id'],'params':{'unitId':_0x1c3ce9,'subUnitId':_0xef32cb,'groupIds':Array['from'](_0x15fc2),'isSingle':!0x1}}),_0x15fc2[_0x5bedb1(0x275)]>0x1&&(_0x3eb407[_0x5bedb1(0x207)]({'id':y['id'],'params':{'unitId':_0x1c3ce9,'subUnitId':_0xef32cb,'groupIds':Array[_0x5bedb1(0x218)](_0x15fc2),'isSingle':!0x1}}),_0xa7211a['push']({'id':V['id'],'params':{'unitId':_0x1c3ce9,'subUnitId':_0xef32cb,'sparklineConfigMap':_0x323174}})),_0x3eb407[_0x5bedb1(0x207)]({'id':V['id'],'params':{'unitId':_0x1c3ce9,'subUnitId':_0xef32cb,'sparklineConfigMap':_0x5ac512}}),_0xf3ff2e(_0x3eb407,_0x4a4579),_0x6e6d3e['pushUndoRedo']({'unitID':_0x1c3ce9,'undoMutations':_0xa7211a,'redoMutations':_0x3eb407}),!0x0;}},Ot={'id':_0xd288ed(0x206),'type':_0x472447[_0xd288ed(0x264)],'handler':(_0x3af3b8,_0x36dc6a)=>{const _0x10552e=_0xd288ed;var _0x38c6c7;const {isSingle:_0x4f7e6c=!0x0}=_0x36dc6a||{},_0x3a1c3d=_0x3af3b8[_0x10552e(0x280)](_0x5e26ed),_0x10e759=_0x3af3b8[_0x10552e(0x280)](_0x247b96),_0xd03c01=_0x3af3b8[_0x10552e(0x280)](x),_0x416665=_0x3af3b8[_0x10552e(0x280)](_0xdcf169),_0x7aea6d=_0x1cb152(_0x10e759);if(!_0x7aea6d)return!0x1;const _0x8aeea8=_0x3af3b8[_0x10552e(0x280)](_0x2a7198),_0x4a9c76=(_0x38c6c7=_0x36dc6a==null?void 0x0:_0x36dc6a[_0x10552e(0x236)])!=null?_0x38c6c7:_0x8aeea8[_0x10552e(0x242)]()[_0x10552e(0x22f)](_0x584e0e=>_0x584e0e[_0x10552e(0x27c)]),{unitId:_0x5bea68,subUnitId:_0x4fc802}=_0x7aea6d,_0x3cd103=[],_0xf9ddcc=[];_0x3cd103[_0x10552e(0x207)]({'id':y['id'],'params':{'unitId':_0x5bea68,'subUnitId':_0x4fc802,'ranges':_0x4a9c76,'isSingle':_0x4f7e6c}});const _0x2956a9=[],_0x58175d={};return _0x4a9c76['forEach'](_0x2987bb=>{_0x51f2c0['foreach'](_0x2987bb,(_0x7c29f3,_0x132837)=>{const _0x88fff3=_0x11b0,_0x2c47af=_0xd03c01[_0x88fff3(0x267)](_0x5bea68,_0x4fc802,_0x7c29f3,_0x132837);if(_0x2c47af){const _0x3f243e=_0xd03c01[_0x88fff3(0x211)](_0x5bea68,_0x4fc802,_0x2c47af);_0x3f243e&&(_0x2956a9[_0x88fff3(0x207)](_0x2c47af),_0x58175d[_0x2c47af]={'config':_0x5a3eb8[_0x88fff3(0x22b)](_0x3f243e[_0x88fff3(0x247)]),'sparklines':_0x5a3eb8[_0x88fff3(0x22b)](_0x3f243e[_0x88fff3(0x235)][_0x88fff3(0x200)]())});}});}),_0xf9ddcc['push']({'id':y['id'],'params':{'unitId':_0x5bea68,'subUnitId':_0x4fc802,'groupIds':_0x2956a9,'isSingle':!0x1}}),_0xf9ddcc[_0x10552e(0x207)]({'id':V['id'],'params':{'unitId':_0x5bea68,'subUnitId':_0x4fc802,'sparklineConfigMap':_0x58175d}}),_0xf3ff2e(_0x3cd103,_0x3a1c3d),_0x416665[_0x10552e(0x23d)]({'unitID':_0x5bea68,'undoMutations':_0xf9ddcc,'redoMutations':_0x3cd103}),!0x0;}},Oe={'id':'sheet.mutation.set-sparkline','type':_0x472447[_0xd288ed(0x215)],'handler':(_0x38ce0a,_0x526090)=>{const _0x37e34f=_0xd288ed;if(!_0x526090)return!0x1;const {unitId:_0x373ec7,subUnitId:_0x410719,groupIds:_0x3ed7c2,config:_0x192a00}=_0x526090,_0x28565a=_0x38ce0a[_0x37e34f(0x280)](x);return _0x3ed7c2[_0x37e34f(0x28b)](_0x12a52c=>{const _0x281a61=_0x37e34f,_0x4f31c0=_0x28565a[_0x281a61(0x211)](_0x373ec7,_0x410719,_0x12a52c);if(_0x4f31c0){const _0x2eef5c={'config':Object[_0x281a61(0x276)]({},_0x4f31c0[_0x281a61(0x247)],_0x192a00[_0x281a61(0x247)]),'sparklines':new _0x2561c9(_0x4f31c0[_0x281a61(0x235)][_0x281a61(0x200)]())};_0x28565a[_0x281a61(0x248)](_0x373ec7,_0x410719,[_0x12a52c],_0x2eef5c);}}),!0x0;}},xt={'id':'sheet.command.set-sparkline','type':_0x472447[_0xd288ed(0x264)],'handler':(_0x15091b,_0x24448d)=>{const _0x31cbdd=_0xd288ed;var _0x5d1996,_0x1213d0,_0x2992dc,_0x1773ae;if(!_0x24448d)return!0x1;const _0x45d9b4=_0x15091b['get'](_0x5e26ed),_0x1376f6=_0x15091b[_0x31cbdd(0x280)](_0x2a7198),_0x5165c7=_0x15091b['get'](x),_0x557667=_0x15091b[_0x31cbdd(0x280)](_0x247b96),_0x2ecb08=_0x15091b[_0x31cbdd(0x280)](_0xdcf169),_0x286043=_0x1cb152(_0x557667);if(!_0x286043)return!0x1;const {unitId:_0x3b91f7,subUnitId:_0x247e5d}=_0x286043,_0x597f3b=(_0x5d1996=_0x24448d==null?void 0x0:_0x24448d[_0x31cbdd(0x236)])!=null?_0x5d1996:_0x1376f6[_0x31cbdd(0x242)]()[_0x31cbdd(0x22f)](_0x55ec79=>_0x55ec79['range']),_0x2dcb66=(_0x1213d0=_0x5165c7[_0x31cbdd(0x214)]()[_0x31cbdd(0x27e)][_0x31cbdd(0x280)](_0x3b91f7))==null?void 0x0:_0x1213d0[_0x31cbdd(0x280)](_0x247e5d),{isChangeDataSource:_0x38ab75,config:_0x54e61b,combine:_0xcc53c6,unCombine:_0x5f0a3f}=_0x24448d;if(_0xcc53c6){const _0x54ca77=[],_0x19d6e4=[];_0x54ca77[_0x31cbdd(0x207)]({'id':y['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'ranges':_0x597f3b,'isSingle':!0x0}});const _0x38b795='g_'+_0x13833d(0x6),_0x12e0c6=new _0x2561c9(),_0x481cc1=(_0x2992dc=_0x5165c7['getSparklineCache']()[_0x31cbdd(0x261)][_0x31cbdd(0x280)](_0x3b91f7))==null?void 0x0:_0x2992dc['get'](_0x247e5d),_0x3760b3=new Set([_0x38b795]),_0x2b7214={};return _0x597f3b[_0x31cbdd(0x28b)](_0xf1af88=>{const _0x2f8a92=_0x31cbdd;var _0x227c9d,_0x15aed0;const {startRow:_0x1edc99,endRow:_0x212632,startColumn:_0x2280e3,endColumn:_0x3d622f}=_0xf1af88;for(let _0x34fcba=_0x1edc99;_0x34fcba<=_0x212632;_0x34fcba++)for(let _0x5ccbb1=_0x2280e3;_0x5ccbb1<=_0x3d622f;_0x5ccbb1++){const _0x9a5bdc=(_0x227c9d=_0x2dcb66==null?void 0x0:_0x2dcb66[_0x2f8a92(0x28e)]['getValue'](_0x34fcba,_0x5ccbb1))==null?void 0x0:_0x227c9d['groupId'];if(_0x9a5bdc){_0x3760b3['add'](_0x9a5bdc);const _0x1b6054=_0x5165c7[_0x2f8a92(0x211)](_0x3b91f7,_0x247e5d,_0x9a5bdc);_0x1b6054&&(_0x2b7214[_0x9a5bdc]={'config':_0x5a3eb8[_0x2f8a92(0x22b)](_0x1b6054[_0x2f8a92(0x247)]),'sparklines':_0x5a3eb8[_0x2f8a92(0x22b)](_0x1b6054[_0x2f8a92(0x235)][_0x2f8a92(0x200)]())});const _0x574e9b=(_0x15aed0=_0x481cc1==null?void 0x0:_0x481cc1[_0x2f8a92(0x280)](_0x9a5bdc))==null?void 0x0:_0x15aed0[_0x2f8a92(0x235)][_0x2f8a92(0x233)](_0x34fcba,_0x5ccbb1);_0x574e9b&&_0x12e0c6[_0x2f8a92(0x26d)](_0x34fcba,_0x5ccbb1,_0x574e9b);}}}),_0x54ca77[_0x31cbdd(0x207)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x38b795]:{'config':_0x5a3eb8[_0x31cbdd(0x22b)](_0x54e61b[_0x31cbdd(0x247)]),'sparklines':_0x12e0c6[_0x31cbdd(0x216)]()}},'unitId':_0x3b91f7,'subUnitId':_0x247e5d}}),_0x19d6e4[_0x31cbdd(0x207)]({'id':y['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'isSingle':!0x1,'groupIds':Array[_0x31cbdd(0x218)](_0x3760b3)}}),_0x19d6e4[_0x31cbdd(0x207)]({'id':V['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'sparklineConfigMap':_0x2b7214}}),_0xf3ff2e(_0x54ca77,_0x45d9b4),_0x2ecb08[_0x31cbdd(0x23d)]({'unitID':_0x3b91f7,'undoMutations':_0x19d6e4,'redoMutations':_0x54ca77}),!0x0;}else{if(_0x5f0a3f){const _0x4a61b6=[],_0x1f6478=[];_0x4a61b6[_0x31cbdd(0x207)]({'id':y['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'ranges':_0x597f3b,'isSingle':!0x0}});const _0x5e4fd7=(_0x1773ae=_0x5165c7[_0x31cbdd(0x214)]()[_0x31cbdd(0x261)][_0x31cbdd(0x280)](_0x3b91f7))==null?void 0x0:_0x1773ae['get'](_0x247e5d),_0x89f7ec={},_0x32a538=new Set(),_0x4a0dc5={};return _0x597f3b['forEach'](_0x6331bd=>{const _0x2511e0=_0x31cbdd;var _0x54180c,_0x373c81;const {startRow:_0x2a3883,endRow:_0x467afa,startColumn:_0x127ffa,endColumn:_0x341c88}=_0x6331bd;for(let _0x1cf239=_0x2a3883;_0x1cf239<=_0x467afa;_0x1cf239++)for(let _0x4e03ac=_0x127ffa;_0x4e03ac<=_0x341c88;_0x4e03ac++){const _0x3415ee=(_0x54180c=_0x2dcb66==null?void 0x0:_0x2dcb66[_0x2511e0(0x28e)][_0x2511e0(0x233)](_0x1cf239,_0x4e03ac))==null?void 0x0:_0x54180c[_0x2511e0(0x1fc)];if(_0x3415ee){const _0x575672=new _0x2561c9(),_0x5474b6='g_'+_0x13833d(0x6);_0x32a538['add'](_0x3415ee),_0x32a538['add'](_0x5474b6);const _0x41634f=_0x5165c7['getSparklineById'](_0x3b91f7,_0x247e5d,_0x3415ee);_0x41634f&&(_0x4a0dc5[_0x3415ee]={'config':_0x5a3eb8['deepClone'](_0x41634f[_0x2511e0(0x247)]),'sparklines':_0x5a3eb8[_0x2511e0(0x22b)](_0x41634f[_0x2511e0(0x235)][_0x2511e0(0x200)]())});const _0x2bddc1=(_0x373c81=_0x5e4fd7==null?void 0x0:_0x5e4fd7[_0x2511e0(0x280)](_0x3415ee))==null?void 0x0:_0x373c81[_0x2511e0(0x235)][_0x2511e0(0x233)](_0x1cf239,_0x4e03ac);_0x2bddc1&&_0x575672[_0x2511e0(0x26d)](_0x1cf239,_0x4e03ac,_0x2bddc1),_0x89f7ec[_0x5474b6]={'sparklines':_0x575672['getMatrix'](),'config':_0x5a3eb8[_0x2511e0(0x22b)](_0x54e61b[_0x2511e0(0x247)])};}}}),_0x4a61b6[_0x31cbdd(0x207)]({'id':V['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'sparklineConfigMap':_0x89f7ec}}),_0x1f6478[_0x31cbdd(0x207)]({'id':y['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'isSingle':!0x1,'groupIds':Array['from'](_0x32a538)}}),_0x1f6478['push']({'id':V['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'sparklineConfigMap':_0x4a0dc5}}),_0xf3ff2e(_0x4a61b6,_0x45d9b4),_0x2ecb08[_0x31cbdd(0x23d)]({'unitID':_0x3b91f7,'undoMutations':_0x1f6478,'redoMutations':_0x4a61b6}),!0x0;}}if(_0x38ab75){const _0x177e58=_0x24448d[_0x31cbdd(0x231)];if(!_0x177e58)return!0x1;const {groupId:_0x507760,sourceRanges:_0x32a508,targetRanges:_0x5ae2ea,resetType:_0x70d67e,primary:_0x25eeec}=_0x177e58,_0x321e92=[],_0x41f118=[];_0x321e92[_0x31cbdd(0x207)]({'id':y['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'ranges':_0x597f3b,'isSingle':!0x1,'groupIds':[_0x507760]}}),_0x41f118[_0x31cbdd(0x207)]({'id':y['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'ranges':_0x597f3b,'isSingle':!0x1,'groupIds':[_0x507760]}});let _0x357a1c;_0x70d67e===_0x31cbdd(0x25c)?(_0x357a1c=new _0x2561c9(_0x54e61b[_0x31cbdd(0x235)]['clone']()),_0x357a1c[_0x31cbdd(0x201)](_0x25eeec[_0x31cbdd(0x245)],_0x25eeec[_0x31cbdd(0x269)]),_0x357a1c[_0x31cbdd(0x26d)](_0x5ae2ea[0x0]['startRow'],_0x5ae2ea[0x0][_0x31cbdd(0x1f6)],_0x32a508[0x0])):_0x357a1c=Fe(_0x32a508,_0x5ae2ea);const _0x501d84={'config':_0x5a3eb8[_0x31cbdd(0x22b)](_0x54e61b[_0x31cbdd(0x247)]),'sparklines':_0x357a1c[_0x31cbdd(0x216)]()},_0x39cb55={'config':_0x5a3eb8[_0x31cbdd(0x22b)](_0x54e61b[_0x31cbdd(0x247)]),'sparklines':_0x5a3eb8[_0x31cbdd(0x22b)](_0x54e61b[_0x31cbdd(0x235)][_0x31cbdd(0x200)]())};_0x321e92[_0x31cbdd(0x207)]({'id':V['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'sparklineConfigMap':{[_0x507760]:_0x501d84}}}),_0x41f118[_0x31cbdd(0x207)]({'id':V['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'sparklineConfigMap':{[_0x507760]:_0x39cb55}}}),_0xf3ff2e(_0x321e92,_0x45d9b4),_0x2ecb08['pushUndoRedo']({'unitID':_0x3b91f7,'undoMutations':_0x41f118,'redoMutations':_0x321e92});}else{const _0xc7aca4=[],_0xb66e6f=[],_0x426f2a=new Set(),_0x3e6f5f={};_0x597f3b[_0x31cbdd(0x28b)](_0x532539=>{const _0x4070f3=_0x31cbdd;var _0x59f5da;const {startRow:_0x2e685d,endRow:_0x13b786,startColumn:_0x157675,endColumn:_0x516d35}=_0x532539;for(let _0x585f96=_0x2e685d;_0x585f96<=_0x13b786;_0x585f96++)for(let _0x3035ff=_0x157675;_0x3035ff<=_0x516d35;_0x3035ff++){const _0x3f502e=(_0x59f5da=_0x2dcb66==null?void 0x0:_0x2dcb66[_0x4070f3(0x28e)]['getValue'](_0x585f96,_0x3035ff))==null?void 0x0:_0x59f5da[_0x4070f3(0x1fc)];if(_0x3f502e){_0x426f2a[_0x4070f3(0x26c)](_0x3f502e);const _0x9d31d2=_0x5165c7[_0x4070f3(0x211)](_0x3b91f7,_0x247e5d,_0x3f502e);_0x9d31d2&&(_0x3e6f5f[_0x3f502e]={'config':_0x5a3eb8[_0x4070f3(0x22b)](_0x9d31d2[_0x4070f3(0x247)]),'sparklines':_0x5a3eb8[_0x4070f3(0x22b)](_0x9d31d2['sparklines'][_0x4070f3(0x200)]())});}}}),_0xb66e6f[_0x31cbdd(0x207)]({'id':Oe['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'groupIds':Array[_0x31cbdd(0x218)](_0x426f2a),'config':{'config':_0x5a3eb8[_0x31cbdd(0x22b)](_0x54e61b['config']),'sparklines':_0x54e61b['sparklines'][_0x31cbdd(0x216)]()}}}),_0xc7aca4[_0x31cbdd(0x207)]({'id':y['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'isSingle':!0x1,'groupIds':Array[_0x31cbdd(0x218)](_0x426f2a)}}),_0xc7aca4['push']({'id':V['id'],'params':{'unitId':_0x3b91f7,'subUnitId':_0x247e5d,'sparklineConfigMap':_0x3e6f5f}}),_0xf3ff2e(_0xb66e6f,_0x45d9b4),_0x2ecb08[_0x31cbdd(0x23d)]({'unitID':_0x3b91f7,'undoMutations':_0xc7aca4,'redoMutations':_0xb66e6f});}return!0x0;}};var Ut=Object['getOwnPropertyDescriptor'],Pt=(_0x6cf3b5,_0x4aa3fb,_0xa8155f,_0x2195e1)=>{for(var _0x530475=_0x2195e1>0x1?void 0x0:_0x2195e1?Ut(_0x4aa3fb,_0xa8155f):_0x4aa3fb,_0x5c9c7e=_0x6cf3b5['length']-0x1,_0x5231ca;_0x5c9c7e>=0x0;_0x5c9c7e--)(_0x5231ca=_0x6cf3b5[_0x5c9c7e])&&(_0x530475=_0x5231ca(_0x530475)||_0x530475);return _0x530475;},ge=(_0xfb42fb,_0x16c07e)=>(_0x32e2f3,_0x3a794f)=>_0x16c07e(_0x32e2f3,_0x3a794f,_0xfb42fb);let Se=class extends _0x3480d3{constructor(_0xde05a5,_0x4448a8,_0x2dadc5,_0x2899a4){const _0x11a0e6=_0xd288ed;super(),this[_0x11a0e6(0x287)]=_0xde05a5,this[_0x11a0e6(0x258)]=_0x4448a8,this[_0x11a0e6(0x22d)]=_0x2dadc5,this[_0x11a0e6(0x27d)]=_0x2899a4,this[_0x11a0e6(0x21a)]();}[_0xd288ed(0x21a)](){const _0x16e6a0=_0xd288ed;this['disposeWithMe'](this[_0x16e6a0(0x258)][_0x16e6a0(0x262)]({'getMutations':_0x20486e=>{const _0x5a96ee=_0x16e6a0,_0x52c1f0=[],_0x5e0a18=[];if(_0x20486e['id']===_0x19e45c['id']){const _0x5ecca3=_0x1cb152(this[_0x5a96ee(0x22d)]);if(!_0x5ecca3)return{'redos':_0x52c1f0,'undos':_0x5e0a18};const {unitId:_0x4169d6,subUnitId:_0x1f6603,worksheet:_0x411791}=_0x5ecca3,_0x271ec8=this[_0x5a96ee(0x27d)]['getCurrentSelections']()[_0x5a96ee(0x22f)](_0x450646=>_0x450646[_0x5a96ee(0x27c)]),_0x16a99c=new Set(),_0x4bafbd={},_0xd1c4ee={};_0x271ec8[_0x5a96ee(0x28b)](_0x186e74=>{_0x51f2c0['foreach'](_0x186e74,(_0x2866bd,_0x3c06f8)=>{const _0x4c09ba=_0x11b0,_0x20f0ab=this[_0x4c09ba(0x287)][_0x4c09ba(0x267)](_0x4169d6,_0x1f6603,_0x2866bd,_0x3c06f8);if(_0x20f0ab&&!_0x16a99c[_0x4c09ba(0x274)](_0x20f0ab)){const _0x1277dd=this[_0x4c09ba(0x287)][_0x4c09ba(0x211)](_0x4169d6,_0x1f6603,_0x20f0ab);_0x1277dd&&(_0x16a99c['add'](_0x20f0ab),_0x4bafbd[_0x20f0ab]={'config':_0x5a3eb8[_0x4c09ba(0x22b)](_0x1277dd[_0x4c09ba(0x247)]),'sparklines':_0x5a3eb8['deepClone'](_0x1277dd[_0x4c09ba(0x235)]['clone']())},_0xd1c4ee[_0x20f0ab]={'config':_0x5a3eb8['deepClone'](_0x1277dd[_0x4c09ba(0x247)]),'sparklines':_0x5a3eb8[_0x4c09ba(0x22b)](_0x1277dd[_0x4c09ba(0x235)][_0x4c09ba(0x200)]())});}});}),Object['values'](_0xd1c4ee)[_0x5a96ee(0x28b)](_0xf49301=>{const _0x1f617d=_0x5a96ee,_0x456c38=_0xf49301[_0x1f617d(0x235)];new _0x2561c9(_0x456c38)[_0x1f617d(0x1ef)]((_0x18436d,_0x4a35e8,_0x280d4c)=>{const _0x396fcc=_0x1f617d;_0x271ec8[_0x396fcc(0x1e7)](_0x812c9c=>_0x2b7218[_0x396fcc(0x1db)](_0x812c9c,_0x1470e6(_0x18436d,_0x4a35e8)))&&delete _0x456c38[_0x18436d][_0x4a35e8];});}),_0x52c1f0['push']({'id':y['id'],'params':{'unitId':_0x4169d6,'subUnitId':_0x1f6603,'groupIds':Array['from'](_0x16a99c),'isSingle':!0x1}}),_0x52c1f0[_0x5a96ee(0x207)]({'id':V['id'],'params':{'unitId':_0x4169d6,'subUnitId':_0x1f6603,'sparklineConfigMap':_0xd1c4ee}}),_0x5e0a18[_0x5a96ee(0x207)]({'id':y['id'],'params':{'unitId':_0x4169d6,'subUnitId':_0x1f6603,'groupIds':Array['from'](_0x16a99c),'isSingle':!0x1}}),_0x5e0a18[_0x5a96ee(0x207)]({'id':V['id'],'params':{'unitId':_0x4169d6,'subUnitId':_0x1f6603,'sparklineConfigMap':_0x4bafbd}});}return{'redos':_0x52c1f0,'undos':_0x5e0a18};}}));}};Se=Pt([ge(0x0,_0x5d1749(x)),ge(0x1,_0x5d1749(_0x36afd7)),ge(0x2,_0x5d1749(_0x247b96)),ge(0x3,_0x5d1749(_0x2a7198))],Se);var Tt=Object['getOwnPropertyDescriptor'],$t=(_0x26a5e2,_0x16f889,_0x1123d7,_0x35541b)=>{const _0x7e8165=_0xd288ed;for(var _0x400869=_0x35541b>0x1?void 0x0:_0x35541b?Tt(_0x16f889,_0x1123d7):_0x16f889,_0x3f60c6=_0x26a5e2[_0x7e8165(0x285)]-0x1,_0x9f50fc;_0x3f60c6>=0x0;_0x3f60c6--)(_0x9f50fc=_0x26a5e2[_0x3f60c6])&&(_0x400869=_0x9f50fc(_0x400869)||_0x400869);return _0x400869;},Ge=(_0xd0fe3a,_0x35f6d3)=>(_0x3b4980,_0x40f661)=>_0x35f6d3(_0x3b4980,_0x40f661,_0xd0fe3a);let ke=class extends _0x3480d3{constructor(_0x76ea64,_0x4d42e1){const _0x8d7485=_0xd288ed;super(),this[_0x8d7485(0x258)]=_0x76ea64,this[_0x8d7485(0x287)]=_0x4d42e1,this['_initCopySheetWithSparkline']();}['_initCopySheetWithSparkline'](){const _0x3118b0=_0xd288ed;this[_0x3118b0(0x1e6)](this['_sheetInterceptorService'][_0x3118b0(0x262)]({'getMutations':_0x3a4a5f=>{const _0x545350=_0x3118b0,_0x1efaa7=[],_0x1217d4=[];if(_0x3a4a5f['id']===_0x307642['id']){const _0x61494b=_0x3a4a5f['params'];if(!_0x61494b)return{'redos':_0x1efaa7,'undos':_0x1217d4};const {unitId:_0x2205d6,subUnitId:_0x309de6,targetSubUnitId:_0x3c7949}=_0x61494b;if(!_0x2205d6||!_0x309de6||!_0x3c7949)return{'redos':_0x1efaa7,'undos':_0x1217d4};const _0x29b3fa=new Set(),_0xa71dc6={},_0x46bc94=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x2205d6,_0x309de6);if(!_0x46bc94)return{'redos':_0x1efaa7,'undos':_0x1217d4};for(const [_0x214639,_0x1f0013]of _0x46bc94){const _0x568438='g_'+_0x13833d(0x6);_0x29b3fa[_0x545350(0x26c)](_0x214639),_0xa71dc6[_0x568438]={'config':_0x5a3eb8['deepClone'](_0x1f0013[_0x545350(0x247)]),'sparklines':_0x5a3eb8[_0x545350(0x22b)](_0x1f0013[_0x545350(0x235)][_0x545350(0x200)]())};}_0x29b3fa['size']&&(_0x1217d4['push']({'id':y['id'],'params':{'unitId':_0x2205d6,'subUnitId':_0x3c7949,'groupIds':Array[_0x545350(0x218)](_0x29b3fa),'isSingle':!0x1}}),_0x1efaa7[_0x545350(0x207)]({'id':V['id'],'params':{'unitId':_0x2205d6,'subUnitId':_0x3c7949,'sparklineConfigMap':_0xa71dc6}}));}return{'redos':_0x1efaa7,'undos':_0x1217d4};}}));}};ke=$t([Ge(0x0,_0x5d1749(_0x36afd7)),Ge(0x1,_0x5d1749(x))],ke);var jt=Object[_0xd288ed(0x243)],Lt=(_0x3585c5,_0x1b40f5,_0x18bb49,_0x21ca9a)=>{const _0x2a40e9=_0xd288ed;for(var _0x5eb215=_0x21ca9a>0x1?void 0x0:_0x21ca9a?jt(_0x1b40f5,_0x18bb49):_0x1b40f5,_0x73531b=_0x3585c5[_0x2a40e9(0x285)]-0x1,_0x342e9f;_0x73531b>=0x0;_0x73531b--)(_0x342e9f=_0x3585c5[_0x73531b])&&(_0x5eb215=_0x342e9f(_0x5eb215)||_0x5eb215);return _0x5eb215;},be=(_0x58c1d4,_0x15a53b)=>(_0x28db98,_0x2bb1fa)=>_0x15a53b(_0x28db98,_0x2bb1fa,_0x58c1d4);let me=class extends _0x3480d3{constructor(_0x1b4168,_0x3ca555,_0x31ba4c){const _0x43a22d=_0xd288ed;super(),this[_0x43a22d(0x22a)]=_0x1b4168,this[_0x43a22d(0x287)]=_0x3ca555,this[_0x43a22d(0x1f4)]=_0x31ba4c,this['_initDataChangeListener'](),this[_0x43a22d(0x212)]();}['_initDataChangeListener'](){const _0x33bfb6=_0xd288ed;this['disposeWithMe'](this['_commandService'][_0x33bfb6(0x24a)](_0x32b8b4=>{const _0x5df5c6=_0x33bfb6;if(_0x32b8b4['id']===_0x3d60c0['id']){const _0x3b595b=_0x32b8b4[_0x5df5c6(0x1d9)],{cellValue:_0x4d80b0,unitId:_0x3aeca8,subUnitId:_0x31d2ba}=_0x3b595b,_0x177acc=new _0x2561c9(_0x4d80b0),_0x206889=new Set(),_0x53c1b1=this[_0x5df5c6(0x287)]['getSubUnitSparkline'](_0x3aeca8,_0x31d2ba);if(!_0x53c1b1)return;const _0x152802=Array['from'](_0x53c1b1);_0x177acc[_0x5df5c6(0x1ef)]((_0x1dc1ff,_0x34fe0f,_0x28af39)=>{const _0x34cf5e=_0x5df5c6,_0x3aa4a2=_0x1470e6(_0x1dc1ff,_0x34fe0f);for(let _0xecdb76=0x0;_0xecdb76<_0x152802[_0x34cf5e(0x285)];_0xecdb76++){const [_0xa97cef,_0x52ab5f]=_0x152802[_0xecdb76],_0x20403b=_0x206889['has'](_0xa97cef);_0x20403b||_0x52ab5f[_0x34cf5e(0x235)]['forValue']((_0x52fe6f,_0x53f28c,_0x582255)=>{const _0x178142=_0x34cf5e,_0x303e71=_0x582255;if(_0x303e71&&!_0x20403b&&_0x2b7218[_0x178142(0x1db)](_0x3aa4a2,_0x303e71))return _0x206889['add'](_0xa97cef),!0x0;});}}),_0x206889['forEach'](_0x4f8784=>{const _0x593cf8=_0x5df5c6;this[_0x593cf8(0x287)]['clearSparklineCache'](_0x3aeca8,_0x31d2ba,_0x4f8784),this[_0x593cf8(0x287)][_0x593cf8(0x27b)](_0x3aeca8,_0x31d2ba,_0x4f8784);});}else{if(_0x32b8b4['id']===_0x2a5df1['id']){const _0x2afa7f=_0x32b8b4[_0x5df5c6(0x1d9)],{range:_0x2ff138,unitId:_0x123406,subUnitId:_0x52091b}=_0x2afa7f,_0x7ca789=new Set(),_0x1a87de=this['_sparklineDataSourceModel'][_0x5df5c6(0x21d)](_0x123406,_0x52091b);if(!_0x1a87de)return;const _0x340c58=Array[_0x5df5c6(0x218)](_0x1a87de);for(let _0x370b96=0x0;_0x370b96<_0x340c58[_0x5df5c6(0x285)];_0x370b96++){const [_0x261aa0,_0x82dfd2]=_0x340c58[_0x370b96],_0x3ea635=_0x7ca789['has'](_0x261aa0);_0x3ea635||_0x82dfd2[_0x5df5c6(0x235)][_0x5df5c6(0x1ef)]((_0x56dba1,_0x3bb67f,_0x3799b6)=>{const _0x5e0d2b=_0x5df5c6,_0x3636de=_0x3799b6;if(_0x3636de&&!_0x3ea635&&_0x2b7218[_0x5e0d2b(0x1db)](_0x2ff138,_0x3636de))return _0x7ca789[_0x5e0d2b(0x26c)](_0x261aa0),!0x0;});}_0x7ca789[_0x5df5c6(0x28b)](_0x26d38f=>{const _0x18362f=_0x5df5c6;this['_sparklineDataSourceModel'][_0x18362f(0x27f)](_0x123406,_0x52091b,_0x26d38f),this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x123406,_0x52091b,_0x26d38f);});}}}));}['_initExclusiveRangeChange'](){const _0x4f41a1=_0xd288ed;this[_0x4f41a1(0x1e6)](this['_exclusiveRangeService'][_0x4f41a1(0x24e)][_0x4f41a1(0x256)](_0x18c590=>{const _0x42eaf6=_0x4f41a1,{unitId:_0xc7a17e,subUnitId:_0x5b25d6,ranges:_0x2a21b7}=_0x18c590,_0x36ae96=this[_0x42eaf6(0x287)][_0x42eaf6(0x21d)](_0xc7a17e,_0x5b25d6);if(!_0x36ae96)return;const _0xd112b0=Array['from'](_0x36ae96),_0x46a3e0=new Set();for(let _0x388725=0x0;_0x388725<_0xd112b0[_0x42eaf6(0x285)];_0x388725++){const [_0x3ee228,_0x5ab0c0]=_0xd112b0[_0x388725],_0x460260=_0x46a3e0[_0x42eaf6(0x274)](_0x3ee228);_0x460260||_0x5ab0c0['sparklines'][_0x42eaf6(0x1ef)]((_0x42b39e,_0x1f2beb,_0x1ef9e8)=>{const _0x427e0a=_0x42eaf6,_0x5b6119=_0x1ef9e8;if(_0x5b6119&&!_0x460260){for(const _0x2872df of _0x2a21b7)if(_0x2b7218[_0x427e0a(0x1db)](_0x2872df,_0x5b6119)){_0x46a3e0['add'](_0x3ee228);break;}}});}_0x46a3e0[_0x42eaf6(0x28b)](_0x41c508=>{const _0x251f08=_0x42eaf6;this[_0x251f08(0x287)][_0x251f08(0x27f)](_0xc7a17e,_0x5b25d6,_0x41c508),this[_0x251f08(0x287)]['updateSparklineExtraNum'](_0xc7a17e,_0x5b25d6,_0x41c508);});}));}};me=Lt([be(0x0,_0x5d1749(_0x5e26ed)),be(0x1,_0x5d1749(x)),be(0x2,_0x5d1749(_0x57407d))],me);var Gt=Object['getOwnPropertyDescriptor'],Wt=(_0xa71284,_0x368389,_0x45a224,_0x2c8778)=>{const _0x3a51ff=_0xd288ed;for(var _0x48525b=_0x2c8778>0x1?void 0x0:_0x2c8778?Gt(_0x368389,_0x45a224):_0x368389,_0x5d54a0=_0xa71284[_0x3a51ff(0x285)]-0x1,_0x5c9c71;_0x5d54a0>=0x0;_0x5d54a0--)(_0x5c9c71=_0xa71284[_0x5d54a0])&&(_0x48525b=_0x5c9c71(_0x48525b)||_0x48525b);return _0x48525b;},We=(_0x4fa95f,_0x5c70d9)=>(_0x464153,_0x393471)=>_0x5c70d9(_0x464153,_0x393471,_0x4fa95f);let Ce=class extends _0x3480d3{constructor(_0x49ee6d,_0x32ec13){const _0x30d38e=_0xd288ed;super(),this[_0x30d38e(0x22a)]=_0x49ee6d,this[_0x30d38e(0x287)]=_0x32ec13,this['_initHideRowColWithSparkline']();}[_0xd288ed(0x1de)](){const _0x4ff061=_0xd288ed;this[_0x4ff061(0x22a)]['onCommandExecuted'](_0x2424d2=>{const _0x5ec405=_0x4ff061;if(_0x2424d2['id']===_0x26326d['id']||_0x2424d2['id']===_0x169bd4['id']||_0x2424d2['id']===_0x546b1b['id']||_0x2424d2['id']===_0xd4e8c7['id']){const _0xda4f68=_0x2424d2[_0x5ec405(0x1d9)],{ranges:_0x114a4a,unitId:_0xe0cecf,subUnitId:_0x831170}=_0xda4f68,_0x4db529=new Set(),_0xb20b0f=this[_0x5ec405(0x287)][_0x5ec405(0x21d)](_0xe0cecf,_0x831170);if(!_0xb20b0f)return;const _0xbb9ee3=Array[_0x5ec405(0x218)](_0xb20b0f);_0x114a4a['forEach'](_0x2c9e14=>{const _0x589bc9=_0x5ec405;_0x51f2c0[_0x589bc9(0x26b)](_0x2c9e14,(_0xf367fa,_0x1424a5)=>{const _0x56feed=_0x589bc9,_0x11cd21=_0x1470e6(_0xf367fa,_0x1424a5);for(let _0x4823cc=0x0;_0x4823cc<_0xbb9ee3[_0x56feed(0x285)];_0x4823cc++){const [_0x424e95,_0x119f00]=_0xbb9ee3[_0x4823cc],_0x1444c3=_0x4db529['has'](_0x424e95);_0x1444c3||_0x119f00[_0x56feed(0x235)][_0x56feed(0x1ef)]((_0x8b914b,_0x2e98a6,_0x297e69)=>{const _0x24ea59=_0x56feed,_0x4f5107=_0x297e69;if(_0x4f5107&&!_0x1444c3&&_0x2b7218[_0x24ea59(0x1db)](_0x11cd21,_0x4f5107))return _0x4db529[_0x24ea59(0x26c)](_0x424e95),!0x0;});}});}),_0x4db529[_0x5ec405(0x28b)](_0x1c936c=>{const _0x49931e=_0x5ec405;this['_sparklineDataSourceModel'][_0x49931e(0x27f)](_0xe0cecf,_0x831170,_0x1c936c),this[_0x49931e(0x287)][_0x49931e(0x27b)](_0xe0cecf,_0x831170,_0x1c936c);});}});}};Ce=Wt([We(0x0,_0x5d1749(_0x5e26ed)),We(0x1,_0x5d1749(x))],Ce);var Bt=Object['getOwnPropertyDescriptor'],Ht=(_0xb8099,_0x35e6da,_0x2626f8,_0x2cf60c)=>{const _0x445e56=_0xd288ed;for(var _0x1af86b=_0x2cf60c>0x1?void 0x0:_0x2cf60c?Bt(_0x35e6da,_0x2626f8):_0x35e6da,_0x44f2ec=_0xb8099[_0x445e56(0x285)]-0x1,_0x20be07;_0x44f2ec>=0x0;_0x44f2ec--)(_0x20be07=_0xb8099[_0x44f2ec])&&(_0x1af86b=_0x20be07(_0x1af86b)||_0x1af86b);return _0x1af86b;},De=(_0xfae1ca,_0x4ed3d5)=>(_0x22f629,_0x3a2eec)=>_0x4ed3d5(_0x22f629,_0x3a2eec,_0xfae1ca);let _e=class extends _0x3480d3{constructor(_0x4a0d60,_0x2640f1,_0x5c03b4){const _0x5e1cd2=_0xd288ed;super(),this['_commandService']=_0x4a0d60,this['_sheetInterceptorService']=_0x2640f1,this[_0x5e1cd2(0x287)]=_0x5c03b4,this[_0x5e1cd2(0x253)]();}['_initMergeWithSparkline'](){this['disposeWithMe'](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x30b237=>{const _0x46b901=_0x11b0,_0x22643f=[],_0x427c76=[];if(_0x30b237['id']===_0xc93dac['id']){const _0x2f6ea1=_0x30b237[_0x46b901(0x1d9)];if(!_0x2f6ea1)return{'redos':_0x22643f,'undos':_0x427c76};const {unitId:_0x428c61,subUnitId:_0x5b5786,ranges:_0x1fa446}=_0x2f6ea1,_0x11fbe2=this[_0x46b901(0x287)][_0x46b901(0x21d)](_0x428c61,_0x5b5786);if(!_0x11fbe2)return{'redos':_0x22643f,'undos':_0x427c76};const _0x9342a7={},_0x371403={},_0x5ac3d7=new Set();_0x1fa446[_0x46b901(0x28b)](_0x21aa8f=>{const _0x4f36ef=_0x46b901,_0x597135=_0x21aa8f[_0x4f36ef(0x1d6)],_0xd7265e=_0x21aa8f[_0x4f36ef(0x1f6)];_0x51f2c0[_0x4f36ef(0x26b)](_0x21aa8f,(_0xf188f4,_0x2e1503)=>{const _0x344671=_0x4f36ef,_0x4171cf=this[_0x344671(0x287)]['getSparkline'](_0x428c61,_0x5b5786,_0xf188f4,_0x2e1503);if(_0x4171cf&&!(_0xf188f4===_0x597135&&_0x2e1503===_0xd7265e)){const _0x126a6a=this[_0x344671(0x287)]['getSparklineById'](_0x428c61,_0x5b5786,_0x4171cf);if(_0x126a6a){_0x5ac3d7[_0x344671(0x26c)](_0x4171cf);let _0x4e48aa=_0x9342a7[_0x4171cf];_0x4e48aa||(_0x4e48aa={'config':_0x5a3eb8[_0x344671(0x22b)](_0x126a6a[_0x344671(0x247)]),'sparklines':new _0x2561c9(_0x126a6a[_0x344671(0x235)][_0x344671(0x200)]())},_0x9342a7[_0x4171cf]=_0x4e48aa),_0x4e48aa[_0x344671(0x235)][_0x344671(0x201)](_0xf188f4,_0x2e1503),_0x371403[_0x4171cf]={'config':_0x5a3eb8[_0x344671(0x22b)](_0x126a6a[_0x344671(0x247)]),'sparklines':_0x5a3eb8[_0x344671(0x22b)](_0x126a6a[_0x344671(0x235)][_0x344671(0x200)]())};}}});});for(const [_0x4a9838,_0x59ee8d]of _0x11fbe2){const _0x5c4394=_0x59ee8d[_0x46b901(0x235)];_0x5c4394[_0x46b901(0x1ef)]((_0x489f86,_0x56d0e1,_0x23ef4a)=>{const _0x341084=_0x46b901;for(let _0xd491=0x0;_0xd491<_0x1fa446['length'];_0xd491++){const _0x572e3e=_0x1fa446[_0xd491];if(_0x2b7218[_0x341084(0x279)](_0x572e3e,_0x23ef4a)){_0x5ac3d7[_0x341084(0x26c)](_0x4a9838);let _0x172b9f=_0x9342a7[_0x4a9838];_0x172b9f||(_0x172b9f={'config':_0x5a3eb8[_0x341084(0x22b)](_0x59ee8d['config']),'sparklines':new _0x2561c9(_0x5c4394['clone']())},_0x9342a7[_0x4a9838]=_0x172b9f),_0x172b9f[_0x341084(0x235)][_0x341084(0x201)](_0x489f86,_0x56d0e1),_0x371403[_0x4a9838]||(_0x371403[_0x4a9838]={'config':_0x5a3eb8[_0x341084(0x22b)](_0x59ee8d[_0x341084(0x247)]),'sparklines':_0x5a3eb8[_0x341084(0x22b)](_0x5c4394[_0x341084(0x200)]())});}}});}const _0x58ed13={};Object[_0x46b901(0x25a)](_0x9342a7)[_0x46b901(0x28b)](([_0x4c9e4f,_0x54b57f])=>{const _0x45a0e0=_0x46b901;_0x54b57f[_0x45a0e0(0x235)][_0x45a0e0(0x252)]()&&(_0x58ed13[_0x4c9e4f]={'config':_0x54b57f[_0x45a0e0(0x247)],'sparklines':_0x54b57f[_0x45a0e0(0x235)][_0x45a0e0(0x200)]()});}),_0x5ac3d7[_0x46b901(0x275)]&&(_0x22643f[_0x46b901(0x207)]({'id':y['id'],'params':{'unitId':_0x428c61,'subUnitId':_0x5b5786,'groupIds':Array[_0x46b901(0x218)](_0x5ac3d7),'isSingle':!0x1}}),_0x427c76['push']({'id':y['id'],'params':{'unitId':_0x428c61,'subUnitId':_0x5b5786,'groupIds':Array['from'](_0x5ac3d7),'isSingle':!0x1}}),_0x22643f[_0x46b901(0x207)]({'id':V['id'],'params':{'unitId':_0x428c61,'subUnitId':_0x5b5786,'sparklineConfigMap':_0x58ed13}}),_0x427c76['push']({'id':V['id'],'params':{'unitId':_0x428c61,'subUnitId':_0x5b5786,'sparklineConfigMap':_0x371403}}));}return{'redos':_0x22643f,'undos':_0x427c76};}}));}};_e=Ht([De(0x0,_0x5d1749(_0x5e26ed)),De(0x1,_0x5d1749(_0x36afd7)),De(0x2,_0x5d1749(x))],_e);var Ft=Object['getOwnPropertyDescriptor'],Kt=(_0x29b95e,_0x17bfa3,_0x423bbe,_0x5e9828)=>{for(var _0x2269ab=_0x5e9828>0x1?void 0x0:_0x5e9828?Ft(_0x17bfa3,_0x423bbe):_0x17bfa3,_0x390863=_0x29b95e['length']-0x1,_0x166a78;_0x390863>=0x0;_0x390863--)(_0x166a78=_0x29b95e[_0x390863])&&(_0x2269ab=_0x166a78(_0x2269ab)||_0x2269ab);return _0x2269ab;},ue=(_0x22bf83,_0x4ec286)=>(_0x480a05,_0x138453)=>_0x4ec286(_0x480a05,_0x138453,_0x22bf83);let Me=class extends _0x3480d3{constructor(_0x2cd28a,_0x2d1cbc,_0x22a66d,_0x1026b2,_0x2a7d7b){const _0x4dfd03=_0xd288ed;super(),se(this,_0x4dfd03(0x1ea),new _0x2bf186()),(this[_0x4dfd03(0x22a)]=_0x2cd28a,this[_0x4dfd03(0x258)]=_0x2d1cbc,this[_0x4dfd03(0x259)]=_0x22a66d,this[_0x4dfd03(0x22d)]=_0x1026b2,this[_0x4dfd03(0x287)]=_0x2a7d7b,this[_0x4dfd03(0x20d)](),this[_0x4dfd03(0x21f)]());}['_onRefRangeChange'](){const _0x4645b3=_0xd288ed,_0xca3e7e=(_0x4f9db6,_0x337db8)=>{const _0x404aa9=_0x11b0,_0x15a2e5=this[_0x404aa9(0x22d)]['getCurrentUnitForType'](_0x420990[_0x404aa9(0x289)]);if(!_0x15a2e5||!(_0x15a2e5==null?void 0x0:_0x15a2e5[_0x404aa9(0x22c)](_0x337db8)))return;this[_0x404aa9(0x1ea)][_0x404aa9(0x20a)]();const _0xa1b4d0=_0x13b318=>this[_0x404aa9(0x254)](_0x13b318,_0x4f9db6,_0x337db8),_0x10d2d0=[],_0x1a803f=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x4f9db6,_0x337db8);if(_0x1a803f){for(const [_0x1f246d,_0x487dd2]of _0x1a803f)_0x487dd2[_0x404aa9(0x235)][_0x404aa9(0x1ef)]((_0x4cb7ae,_0x5a6048,_0x5d1f38)=>{const _0x2edb61=_0x404aa9,_0x1102ea=_0x1470e6(_0x4cb7ae,_0x5a6048);_0x10d2d0[_0x2edb61(0x207)](_0x1102ea);});_0x10d2d0[_0x404aa9(0x28b)](_0x1c2a97=>{const _0x225818=_0x404aa9;this['disposableCollection'][_0x225818(0x26c)](this['_refRangeService']['registerRefRange'](_0x1c2a97,_0xa1b4d0,_0x4f9db6,_0x337db8));});}};this[_0x4645b3(0x1e6)](this[_0x4645b3(0x22a)][_0x4645b3(0x24a)](_0x3ff28e=>{const _0x26011a=_0x4645b3;if(_0x3ff28e['id']===_0x2d7683['id']){const _0x47183d=_0x3ff28e[_0x26011a(0x1d9)],_0x120561=_0x47183d['subUnitId'],_0x127dd7=_0x47183d[_0x26011a(0x28d)];if(!_0x120561||!_0x127dd7)return;_0xca3e7e(_0x127dd7,_0x120561);}if(_0x3ff28e['id']===Oe['id']||_0x3ff28e['id']===V['id']){const _0x247928=_0x3ff28e['params'],_0x203ad6=_0x247928['subUnitId'],_0x4bc597=_0x247928[_0x26011a(0x28d)];if(!_0x203ad6||!_0x4bc597)return;_0xca3e7e(_0x4bc597,_0x203ad6);}}));}[_0xd288ed(0x254)](_0x1e0195,_0x5da625,_0x15bc8e){const _0xcf80b5=_0xd288ed;switch(_0x1e0195['id']){case _0x3daf66['id']:return this['_getRefRangeMutationsByDeleteCols'](_0x1e0195[_0xcf80b5(0x1d9)],_0x5da625,_0x15bc8e);case _0xcd935a['id']:return this['_getRefRangeMutationsByDeleteRows'](_0x1e0195[_0xcf80b5(0x1d9)],_0x5da625,_0x15bc8e);}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0x10702e,_0x2a0e90,_0x2957f4){const _0xf9c73=_0xd288ed;var _0x104010,_0x91dd34;const {range:_0x57acb7}=_0x10702e,_0x713671=new Set(),_0xdd5995={},_0x391ad2={},_0x455cc1=[],_0x24dbd9=[],_0x3d59de=[],_0x535cbd=[];if(!_0x1cb152(this[_0xf9c73(0x22d)],{'unitId':_0x2a0e90,'subUnitId':_0x2957f4}))return{'redos':_0x24dbd9,'undos':_0x455cc1};const _0x1e5704=this['_sparklineDataSourceModel'][_0xf9c73(0x21d)](_0x2a0e90,_0x2957f4);if(!_0x1e5704)return{'redos':_0x24dbd9,'undos':_0x455cc1};if(!((_0x91dd34=(_0x104010=this['_sparklineDataSourceModel'][_0xf9c73(0x214)]()[_0xf9c73(0x27e)][_0xf9c73(0x280)](_0x2a0e90))==null?void 0x0:_0x104010[_0xf9c73(0x280)](_0x2957f4))==null?void 0x0:_0x91dd34[_0xf9c73(0x28e)]))return{'redos':_0x24dbd9,'undos':_0x455cc1};for(const [_0x5566ba,_0x1e9146]of _0x1e5704){const _0x3bdaf4=_0x1e9146[_0xf9c73(0x235)];_0x3bdaf4[_0xf9c73(0x1ef)]((_0x4bef4b,_0x4c8283,_0x11935e)=>{const _0x4b7951=_0xf9c73;if(_0x2b7218['intersects'](_0x57acb7,_0x11935e)){_0x713671['add'](_0x5566ba);let _0x5802c3=_0x391ad2[_0x5566ba];_0x5802c3||(_0x5802c3={'config':_0x1e9146[_0x4b7951(0x247)],'sparklines':_0x1e9146[_0x4b7951(0x235)]['clone']()},_0x391ad2[_0x5566ba]=_0x5802c3);let _0x2a2bca=_0xdd5995[_0x5566ba];_0x2a2bca||(_0x2a2bca={'config':_0x1e9146[_0x4b7951(0x247)],'sparklines':new _0x2561c9(_0x1e9146['sparklines']['clone']())},_0xdd5995[_0x5566ba]=_0x2a2bca);const _0x3d53f5=_0x3863a3(_0x11935e,{'id':_0x4da17a['id'],'params':_0x10702e});_0x3d53f5?_0x2a2bca[_0x4b7951(0x235)][_0x4b7951(0x26d)](_0x4bef4b,_0x4c8283,_0x3d53f5):_0x2a2bca[_0x4b7951(0x235)][_0x4b7951(0x26d)](_0x4bef4b,_0x4c8283,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3764e2[_0x4b7951(0x1fe)]});}}),_0x3bdaf4['forValue']((_0x514640,_0x6d3c5a,_0xba83b8)=>{const _0x574730=_0xf9c73;if(_0x514640<=_0x57acb7[_0x574730(0x228)]&&_0x514640>=_0x57acb7['startRow']){_0x713671['add'](_0x5566ba);let _0x56e0d8=_0x391ad2[_0x5566ba];_0x56e0d8||(_0x56e0d8={'config':_0x1e9146[_0x574730(0x247)],'sparklines':_0x1e9146[_0x574730(0x235)][_0x574730(0x200)]()},_0x391ad2[_0x5566ba]=_0x56e0d8);let _0x2c7354=_0xdd5995[_0x5566ba];_0x2c7354||(_0x2c7354={'config':_0x1e9146[_0x574730(0x247)],'sparklines':new _0x2561c9(_0x1e9146[_0x574730(0x235)][_0x574730(0x200)]())},_0xdd5995[_0x5566ba]=_0x2c7354);}});}_0x535cbd['push']({'id':y['id'],'params':{'unitId':_0x2a0e90,'subUnitId':_0x2957f4,'groupIds':Array[_0xf9c73(0x218)](_0x713671),'isSingle':!0x1}}),_0x3d59de['push']({'id':y['id'],'params':{'unitId':_0x2a0e90,'subUnitId':_0x2957f4,'groupIds':Array[_0xf9c73(0x218)](_0x713671),'isSingle':!0x1}});const _0xa95979={};let _0x124c07=!0x1;return Object[_0xf9c73(0x25a)](_0xdd5995)['forEach'](([_0x2ddf26,_0x10d9be])=>{const _0x43fb0a=_0xf9c73;_0x10d9be[_0x43fb0a(0x235)][_0x43fb0a(0x252)]()&&(_0x124c07=!0x0,_0x10d9be['sparklines']['removeRows'](_0x57acb7[_0x43fb0a(0x1d6)],_0x57acb7[_0x43fb0a(0x228)]-_0x57acb7['startRow']+0x1),_0xa95979[_0x2ddf26]={'config':_0x10d9be[_0x43fb0a(0x247)],'sparklines':_0x10d9be[_0x43fb0a(0x235)][_0x43fb0a(0x200)]()});}),_0x124c07&&_0x24dbd9[_0xf9c73(0x207)]({'id':V['id'],'params':{'unitId':_0x2a0e90,'subUnitId':_0x2957f4,'sparklineConfigMap':_0xa95979}}),_0x455cc1['push']({'id':V['id'],'params':{'unitId':_0x2a0e90,'subUnitId':_0x2957f4,'sparklineConfigMap':_0x391ad2}}),{'redos':_0x24dbd9,'undos':_0x455cc1,'preRedos':_0x3d59de,'preUndos':_0x535cbd};}['_getRefRangeMutationsByDeleteCols'](_0x2021d6,_0x40b9a8,_0x671df5){const _0x12e773=_0xd288ed;var _0x17ef75,_0xdfb2b7;const {range:_0x5f479b}=_0x2021d6,_0x579be8=new Set(),_0x4f6a54={},_0x2e8caf={},_0xbde46a=[],_0x1e99c5=[],_0x512d00=[],_0x59002b=[];if(!_0x1cb152(this[_0x12e773(0x22d)],{'unitId':_0x40b9a8,'subUnitId':_0x671df5}))return{'redos':_0x1e99c5,'undos':_0xbde46a};const _0x27f685=this['_sparklineDataSourceModel'][_0x12e773(0x21d)](_0x40b9a8,_0x671df5);if(!_0x27f685)return{'redos':_0x1e99c5,'undos':_0xbde46a};if(!((_0xdfb2b7=(_0x17ef75=this[_0x12e773(0x287)][_0x12e773(0x214)]()[_0x12e773(0x27e)][_0x12e773(0x280)](_0x40b9a8))==null?void 0x0:_0x17ef75[_0x12e773(0x280)](_0x671df5))==null?void 0x0:_0xdfb2b7[_0x12e773(0x28e)]))return{'redos':_0x1e99c5,'undos':_0xbde46a};for(const [_0x50aacc,_0xe37a12]of _0x27f685){const _0x53bcd0=_0xe37a12['sparklines'];_0x53bcd0[_0x12e773(0x1ef)]((_0x313874,_0x3fd2a1,_0x404927)=>{const _0xaaa6e6=_0x12e773;if(_0x2b7218[_0xaaa6e6(0x1db)](_0x5f479b,_0x404927)){_0x579be8[_0xaaa6e6(0x26c)](_0x50aacc);let _0x27ced=_0x2e8caf[_0x50aacc];_0x27ced||(_0x27ced={'config':_0xe37a12[_0xaaa6e6(0x247)],'sparklines':_0xe37a12[_0xaaa6e6(0x235)][_0xaaa6e6(0x200)]()},_0x2e8caf[_0x50aacc]=_0x27ced);let _0x5c0c04=_0x4f6a54[_0x50aacc];_0x5c0c04||(_0x5c0c04={'config':_0xe37a12[_0xaaa6e6(0x247)],'sparklines':new _0x2561c9(_0xe37a12['sparklines'][_0xaaa6e6(0x200)]())},_0x4f6a54[_0x50aacc]=_0x5c0c04);const _0x350dd2=_0x3863a3(_0x404927,{'id':_0x48414a['id'],'params':_0x2021d6});_0x350dd2?_0x5c0c04[_0xaaa6e6(0x235)][_0xaaa6e6(0x26d)](_0x313874,_0x3fd2a1,_0x350dd2):_0x5c0c04[_0xaaa6e6(0x235)][_0xaaa6e6(0x26d)](_0x313874,_0x3fd2a1,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3764e2[_0xaaa6e6(0x1fe)]});}}),_0x53bcd0['forValue']((_0x43ea7a,_0x598776,_0x5a4208)=>{const _0x2f498c=_0x12e773;if(_0x598776<=_0x5f479b[_0x2f498c(0x28a)]&&_0x598776>=_0x5f479b[_0x2f498c(0x1f6)]){_0x579be8[_0x2f498c(0x26c)](_0x50aacc);let _0x4ff749=_0x2e8caf[_0x50aacc];_0x4ff749||(_0x4ff749={'config':_0xe37a12[_0x2f498c(0x247)],'sparklines':_0xe37a12[_0x2f498c(0x235)][_0x2f498c(0x200)]()},_0x2e8caf[_0x50aacc]=_0x4ff749);let _0x2b6096=_0x4f6a54[_0x50aacc];_0x2b6096||(_0x2b6096={'config':_0xe37a12[_0x2f498c(0x247)],'sparklines':new _0x2561c9(_0xe37a12[_0x2f498c(0x235)]['clone']())},_0x4f6a54[_0x50aacc]=_0x2b6096);}});}_0x59002b[_0x12e773(0x207)]({'id':y['id'],'params':{'unitId':_0x40b9a8,'subUnitId':_0x671df5,'groupIds':Array['from'](_0x579be8),'isSingle':!0x1}}),_0x512d00[_0x12e773(0x207)]({'id':y['id'],'params':{'unitId':_0x40b9a8,'subUnitId':_0x671df5,'groupIds':Array[_0x12e773(0x218)](_0x579be8),'isSingle':!0x1}});const _0x6762e2={};let _0x173d60=!0x1;return Object[_0x12e773(0x25a)](_0x4f6a54)['forEach'](([_0x276799,_0x14264e])=>{const _0x74d3d2=_0x12e773;_0x14264e['sparklines']['getSizeOf']()&&(_0x173d60=!0x0,_0x14264e[_0x74d3d2(0x235)][_0x74d3d2(0x203)](_0x5f479b[_0x74d3d2(0x1f6)],_0x5f479b['endColumn']-_0x5f479b[_0x74d3d2(0x1f6)]+0x1),_0x6762e2[_0x276799]={'config':_0x14264e['config'],'sparklines':_0x14264e['sparklines']['clone']()});}),_0x173d60&&_0x1e99c5[_0x12e773(0x207)]({'id':V['id'],'params':{'unitId':_0x40b9a8,'subUnitId':_0x671df5,'sparklineConfigMap':_0x6762e2}}),_0xbde46a[_0x12e773(0x207)]({'id':V['id'],'params':{'unitId':_0x40b9a8,'subUnitId':_0x671df5,'sparklineConfigMap':_0x2e8caf}}),{'redos':_0x1e99c5,'undos':_0xbde46a,'preRedos':_0x512d00,'preUndos':_0x59002b};}[_0xd288ed(0x21f)](){const _0x34f446=_0xd288ed;this[_0x34f446(0x1e6)](this['_commandService'][_0x34f446(0x24a)](_0x2df10f=>{const _0x3106d2=_0x34f446;if(_0x2df10f['id']===_0xa652c5['id']){const _0xf5dcc6=_0x2df10f[_0x3106d2(0x1d9)],{unitId:_0x840db2,subUnitId:_0x5906ea,range:_0x488a03}=_0xf5dcc6,_0x908aeb=_0x488a03[_0x3106d2(0x1f6)],_0x3b9ce3=_0x488a03['endColumn']-_0x488a03['startColumn']+0x1,_0x284bfa=this['_sparklineDataSourceModel'][_0x3106d2(0x21d)](_0x840db2,_0x5906ea);if(!_0x284bfa)return;for(const [_0x3fd0e6,_0x480535]of _0x284bfa){this[_0x3106d2(0x287)][_0x3106d2(0x27f)](_0x840db2,_0x5906ea,_0x3fd0e6);const _0x272439=_0x480535['sparklines'];_0x272439[_0x3106d2(0x1ef)]((_0x32327e,_0x23d291,_0x35be3d)=>{const _0x2bdf81=_0x3106d2,_0x157e93={..._0x35be3d};_0x908aeb<=_0x157e93[_0x2bdf81(0x1f6)]?(_0x157e93[_0x2bdf81(0x1f6)]+=_0x3b9ce3,_0x157e93[_0x2bdf81(0x28a)]+=_0x3b9ce3):_0x908aeb>_0x157e93[_0x2bdf81(0x28a)]||(_0x157e93[_0x2bdf81(0x28a)]+=_0x3b9ce3),_0x272439[_0x2bdf81(0x26d)](_0x32327e,_0x23d291,_0x157e93);});const _0x3cc543=_0x272439['getMatrix']();for(const _0x2a8d20 in _0x3cc543){const _0x1c5695=_0x3cc543[Number(_0x2a8d20)];if(!_0x1c5695)continue;const _0x30de72=Object[_0x3106d2(0x24c)](_0x1c5695)[_0x3106d2(0x22f)](Number),_0x49f2d6=Math[_0x3106d2(0x210)](..._0x30de72);for(let _0x2309e9=_0x49f2d6;_0x2309e9>=_0x908aeb;_0x2309e9--)_0x2309e9>=_0x908aeb&&_0x1c5695[_0x2309e9]&&(_0x1c5695[_0x2309e9+_0x3b9ce3]=_0x1c5695[_0x2309e9],delete _0x1c5695[_0x2309e9]);}this[_0x3106d2(0x287)]['updateSparklineExtraNum'](_0x840db2,_0x5906ea,_0x3fd0e6);}}else{if(_0x2df10f['id']===_0x1fe6db['id']){const _0x234483=_0x2df10f[_0x3106d2(0x1d9)],{unitId:_0x4339f1,subUnitId:_0x1ea2e3,range:_0x4ac654}=_0x234483,_0x55c00e=_0x4ac654['startRow'],_0x207eab=_0x4ac654[_0x3106d2(0x228)]-_0x4ac654[_0x3106d2(0x1d6)]+0x1,_0x5d2856=this['_sparklineDataSourceModel'][_0x3106d2(0x21d)](_0x4339f1,_0x1ea2e3);if(!_0x5d2856)return;for(const [_0x49bbb7,_0x1452e5]of _0x5d2856){this['_sparklineDataSourceModel'][_0x3106d2(0x27f)](_0x4339f1,_0x1ea2e3,_0x49bbb7);const _0x5489ba=_0x1452e5[_0x3106d2(0x235)];_0x5489ba[_0x3106d2(0x1ef)]((_0x26eef5,_0x2a8846,_0x3cbcb7)=>{const _0x209aa1=_0x3106d2,_0x4d78dc={..._0x3cbcb7};_0x55c00e<=_0x4d78dc[_0x209aa1(0x1d6)]?(_0x4d78dc['startRow']+=_0x207eab,_0x4d78dc[_0x209aa1(0x228)]+=_0x207eab):_0x55c00e>_0x4d78dc[_0x209aa1(0x228)]||(_0x4d78dc[_0x209aa1(0x228)]+=_0x207eab),_0x5489ba[_0x209aa1(0x26d)](_0x26eef5,_0x2a8846,_0x4d78dc);});const _0x1d553c=_0x5489ba['getMatrix'](),_0x428c0a=Object[_0x3106d2(0x24c)](_0x1d553c)['map'](Number),_0x23e014=Math[_0x3106d2(0x210)](..._0x428c0a);for(let _0x1a7c95=_0x23e014;_0x1a7c95>=_0x55c00e;_0x1a7c95--)_0x1a7c95>=_0x55c00e&&_0x1d553c[_0x1a7c95]&&(_0x1d553c[_0x1a7c95+_0x207eab]=_0x1d553c[_0x1a7c95],delete _0x1d553c[_0x1a7c95]);this[_0x3106d2(0x287)][_0x3106d2(0x27b)](_0x4339f1,_0x1ea2e3,_0x49bbb7);}}else{if(_0x2df10f['id']===_0x48414a['id']){const _0x48ea3f=_0x2df10f['params'],{range:_0x50f9ec,unitId:_0x15d872,subUnitId:_0x477504}=_0x48ea3f,_0x481881=this[_0x3106d2(0x287)][_0x3106d2(0x21d)](_0x15d872,_0x477504);if(!_0x481881)return;for(const [_0x3a47ba,_0x347daa]of _0x481881){const _0x1fe988=_0x347daa[_0x3106d2(0x235)];_0x1fe988[_0x3106d2(0x1ef)]((_0x4f9c5e,_0x2c9835,_0x381ae1)=>{const _0x2a0a77=_0x3106d2,_0x205160=_0x3863a3(_0x381ae1,_0x2df10f);_0x205160?_0x1fe988[_0x2a0a77(0x26d)](_0x4f9c5e,_0x2c9835,_0x205160):_0x1fe988[_0x2a0a77(0x26d)](_0x4f9c5e,_0x2c9835,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3764e2['NORMAL']});}),_0x1fe988[_0x3106d2(0x203)](_0x50f9ec[_0x3106d2(0x1f6)],_0x50f9ec[_0x3106d2(0x28a)]-_0x50f9ec[_0x3106d2(0x1f6)]+0x1);}this[_0x3106d2(0x287)][_0x3106d2(0x1d8)](_0x15d872,_0x477504);}else{if(_0x2df10f['id']===_0x4da17a['id']){const _0x1f50bc=_0x2df10f[_0x3106d2(0x1d9)],{range:_0x30a1a6,unitId:_0x10ed35,subUnitId:_0x1c26a9}=_0x1f50bc,_0x5eed42=this[_0x3106d2(0x287)][_0x3106d2(0x21d)](_0x10ed35,_0x1c26a9);if(!_0x5eed42)return;for(const [_0x3f640a,_0x49d621]of _0x5eed42){const _0x401344=_0x49d621['sparklines'];_0x401344[_0x3106d2(0x1ef)]((_0x1c3055,_0x5c8630,_0x17ff9a)=>{const _0x58a6e3=_0x3106d2,_0x1b3568=_0x3863a3(_0x17ff9a,_0x2df10f);_0x1b3568?_0x401344[_0x58a6e3(0x26d)](_0x1c3055,_0x5c8630,_0x1b3568):_0x401344[_0x58a6e3(0x26d)](_0x1c3055,_0x5c8630,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3764e2[_0x58a6e3(0x1fe)]});}),_0x401344[_0x3106d2(0x240)](_0x30a1a6[_0x3106d2(0x1d6)],_0x30a1a6[_0x3106d2(0x228)]-_0x30a1a6['startRow']+0x1);}this[_0x3106d2(0x287)][_0x3106d2(0x1d8)](_0x10ed35,_0x1c26a9);}else{if(_0x2df10f['id']===_0x282322['id']){const _0x1d5fb8=_0x2df10f[_0x3106d2(0x1d9)],{unitId:_0x1435de,subUnitId:_0x39bd23,sourceRange:_0x9e09eb,targetRange:_0x2a4bd4}=_0x1d5fb8,_0x297700=this[_0x3106d2(0x287)][_0x3106d2(0x21d)](_0x1435de,_0x39bd23);if(!_0x297700)return;for(const [_0x562b7c,_0x237638]of _0x297700){const _0x63b1c7=_0x237638['sparklines'];_0x63b1c7[_0x3106d2(0x1ef)]((_0x35ddc0,_0x33ebae,_0x231bf6)=>{const _0x5aa66c=_0x3106d2,_0x4a9099=_0x3863a3(_0x231bf6,_0x2df10f);_0x4a9099?_0x63b1c7[_0x5aa66c(0x26d)](_0x35ddc0,_0x33ebae,_0x4a9099):_0x63b1c7[_0x5aa66c(0x26d)](_0x35ddc0,_0x33ebae,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3764e2[_0x5aa66c(0x1fe)]});}),_0x63b1c7[_0x3106d2(0x25d)](_0x9e09eb[_0x3106d2(0x1f6)],_0x9e09eb['endColumn']-_0x9e09eb[_0x3106d2(0x1f6)]+0x1,_0x2a4bd4[_0x3106d2(0x1f6)]);}this[_0x3106d2(0x287)][_0x3106d2(0x1d8)](_0x1435de,_0x39bd23);}else{if(_0x2df10f['id']===_0x532025['id']){const _0x5079f7=_0x2df10f['params'],{unitId:_0x238509,subUnitId:_0xf937d9,sourceRange:_0x2cedaf,targetRange:_0x1b4165}=_0x5079f7,_0x49afa2=this['_sparklineDataSourceModel'][_0x3106d2(0x21d)](_0x238509,_0xf937d9);if(!_0x49afa2)return;for(const [_0x359102,_0x54a929]of _0x49afa2){const _0x55b129=_0x54a929[_0x3106d2(0x235)];_0x55b129[_0x3106d2(0x1ef)]((_0x1c13c1,_0x377347,_0x56324d)=>{const _0x1cc4dc=_0x3106d2,_0x23f646=_0x3863a3(_0x56324d,_0x2df10f);_0x23f646?_0x55b129[_0x1cc4dc(0x26d)](_0x1c13c1,_0x377347,_0x23f646):_0x55b129['setValue'](_0x1c13c1,_0x377347,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3764e2[_0x1cc4dc(0x1fe)]});}),_0x55b129[_0x3106d2(0x282)](_0x2cedaf['startRow'],_0x2cedaf['endRow']-_0x2cedaf[_0x3106d2(0x1d6)]+0x1,_0x1b4165[_0x3106d2(0x1d6)]);}this['_sparklineDataSourceModel'][_0x3106d2(0x1d8)](_0x238509,_0xf937d9);}else{if(_0x2df10f['id']===_0x1f94c7['id']){const _0x51476e=_0x2df10f[_0x3106d2(0x1d9)],{fromRange:_0x5639f4,toRange:_0x4b1796,unitId:_0xc5fd8c,from:_0x2357b2,to:_0x55ed6f}=_0x51476e;if(_0x2357b2['subUnitId']!==_0x55ed6f[_0x3106d2(0x229)])return;const _0x3e8bbe=_0x2357b2[_0x3106d2(0x229)],{startRow:_0x4a4ec7,endRow:_0x4f84d9,startColumn:_0x3d2452,endColumn:_0x1ef268}=_0x5639f4,{startRow:_0x3db15d,startColumn:_0xcaa6f4}=_0x4b1796,_0x3ea47c=_0x3db15d-_0x4a4ec7,_0x491e77=_0xcaa6f4-_0x3d2452,_0x377ecd=this[_0x3106d2(0x287)]['getSubUnitSparkline'](_0xc5fd8c,_0x3e8bbe);if(!(_0x377ecd!=null&&_0x377ecd[_0x3106d2(0x275)]))return;for(let _0x1e1861=_0x4a4ec7;_0x1e1861<=_0x4f84d9;_0x1e1861++)for(let _0x54aa16=_0x3d2452;_0x54aa16<=_0x1ef268;_0x54aa16++){const _0x124bc5=this['_sparklineDataSourceModel'][_0x3106d2(0x267)](_0xc5fd8c,_0x3e8bbe,_0x1e1861,_0x54aa16);if(_0x124bc5){const _0x3a0697=this[_0x3106d2(0x287)]['getSparklineById'](_0xc5fd8c,_0x3e8bbe,_0x124bc5);if(_0x3a0697){const _0x1b81b4=_0x3a0697[_0x3106d2(0x235)]['getValue'](_0x1e1861,_0x54aa16);_0x1b81b4&&(_0x3a0697[_0x3106d2(0x235)][_0x3106d2(0x26d)](_0x1e1861+_0x3ea47c,_0x54aa16+_0x491e77,_0x1b81b4),_0x3a0697['sparklines'][_0x3106d2(0x201)](_0x1e1861,_0x54aa16));}}}for(const [_0x4be550,_0x1695ba]of _0x377ecd){const _0x23ca8c=_0x1695ba[_0x3106d2(0x235)];_0x23ca8c[_0x3106d2(0x1ef)]((_0x5876c6,_0x29e695,_0x80198e)=>{const _0x241389=_0x3106d2,_0x398e92={..._0x80198e};_0x2b7218[_0x241389(0x279)](_0x5639f4,_0x80198e)&&(_0x398e92[_0x241389(0x1d6)]+=_0x3ea47c,_0x398e92[_0x241389(0x228)]+=_0x3ea47c,_0x398e92['startColumn']+=_0x491e77,_0x398e92[_0x241389(0x28a)]+=_0x491e77),_0x23ca8c[_0x241389(0x26d)](_0x5876c6,_0x29e695,_0x398e92);});}this[_0x3106d2(0x287)]['reBuildAnchorCache'](_0xc5fd8c,_0x3e8bbe);}}}}}}}}));}};Me=Kt([ue(0x0,_0x5d1749(_0x5e26ed)),ue(0x1,_0x5d1749(_0x36afd7)),ue(0x2,_0x5d1749(_0x179aff)),ue(0x3,_0x247b96),ue(0x4,_0x5d1749(x))],Me);var Xt=Object[_0xd288ed(0x243)],zt=(_0x15afff,_0x12470e,_0x35148b,_0x256378)=>{const _0x564240=_0xd288ed;for(var _0x3eed72=_0x256378>0x1?void 0x0:_0x256378?Xt(_0x12470e,_0x35148b):_0x12470e,_0x4d8167=_0x15afff[_0x564240(0x285)]-0x1,_0x1db4ec;_0x4d8167>=0x0;_0x4d8167--)(_0x1db4ec=_0x15afff[_0x4d8167])&&(_0x3eed72=_0x1db4ec(_0x3eed72)||_0x3eed72);return _0x3eed72;},Be=(_0x1089c6,_0x4efb24)=>(_0x54a706,_0x3b2bf0)=>_0x4efb24(_0x54a706,_0x3b2bf0,_0x1089c6);let Re=class extends _0x3480d3{constructor(_0x23c6e8,_0x1f443f){const _0x344170=_0xd288ed;super(),this[_0x344170(0x26e)]=_0x23c6e8,this[_0x344170(0x287)]=_0x1f443f,this[_0x344170(0x24b)]();}[_0xd288ed(0x24b)](){const _0x86e565=_0xd288ed,_0x1beeec=_0x37ac6f=>{const _0x8b9194=_0x11b0,_0x2150dc=this[_0x8b9194(0x287)]['toJSON'](_0x37ac6f);return _0x2150dc?JSON[_0x8b9194(0x283)](_0x2150dc):'';},_0x2f8c44=_0x5b5352=>_0x5b5352?JSON[_0x86e565(0x1da)](_0x5b5352):{};this[_0x86e565(0x1e6)](this[_0x86e565(0x26e)][_0x86e565(0x20f)]({'toJson':_0x1beeec,'parseJson':_0x2f8c44,'pluginName':Ke,'businesses':[_0x420990[_0x86e565(0x289)]],'onLoad':(_0xe9f438,_0x1a91ce)=>{const _0x320202=_0x86e565;this[_0x320202(0x287)][_0x320202(0x1f2)](_0x1a91ce);},'onUnLoad':_0x489cf9=>{this['_sparklineDataSourceModel']['deleteUnit'](_0x489cf9);}}));}};Re=zt([Be(0x0,_0x5d1749(_0x3cd0d0)),Be(0x1,_0x5d1749(x))],Re);var Jt=Object[_0xd288ed(0x23a)],Zt=Object[_0xd288ed(0x243)],Yt=(_0x214d10,_0x5780b3,_0x5b75d4)=>_0x5780b3 in _0x214d10?Jt(_0x214d10,_0x5780b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b75d4}):_0x214d10[_0x5780b3]=_0x5b75d4,qt=(_0x23c17e,_0x1a4981,_0x337ba7,_0x37d431)=>{for(var _0x26490b=_0x37d431>0x1?void 0x0:_0x37d431?Zt(_0x1a4981,_0x337ba7):_0x1a4981,_0x5da146=_0x23c17e['length']-0x1,_0x50226d;_0x5da146>=0x0;_0x5da146--)(_0x50226d=_0x23c17e[_0x5da146])&&(_0x26490b=_0x50226d(_0x26490b)||_0x26490b);return _0x26490b;},He=(_0x21e87c,_0x4d14d3)=>(_0x2210a1,_0x12f5b1)=>_0x4d14d3(_0x2210a1,_0x12f5b1,_0x21e87c),ze=(_0x2a324e,_0x5af44b,_0x548172)=>Yt(_0x2a324e,typeof _0x5af44b!=_0xd288ed(0x1e0)?_0x5af44b+'':_0x5af44b,_0x548172);let ve=class extends _0x3616c3{constructor(_0x1d9ad2={},_0x151612,_0x573c94){const _0x21ed90=_0xd288ed;super(),this[_0x21ed90(0x24f)]=_0x1d9ad2,this['_injector']=_0x151612,this[_0x21ed90(0x22a)]=_0x573c94,this[_0x21ed90(0x1d4)](),this[_0x21ed90(0x266)]();}[_0xd288ed(0x1d4)](){const _0x45c58b=_0xd288ed;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x45c58b(0x28b)](_0x4ebcdc=>{const _0x583f4a=_0x45c58b;this[_0x583f4a(0x1f8)][_0x583f4a(0x26c)](_0x4ebcdc);}),_0x5c60f3(this[_0x45c58b(0x1f8)],[[Re]]);}[_0xd288ed(0x1e4)](){const _0x80794e=_0xd288ed;_0x5c60f3(this[_0x80794e(0x1f8)],[[me],[_e],[Se],[Me],[Ce],[ke]]);}['_initRegisterCommand'](){const _0x1d1cdf=_0xd288ed;[Nt,V,Ot,y,xt,Oe][_0x1d1cdf(0x28b)](_0x20d335=>this['_commandService'][_0x1d1cdf(0x244)](_0x20d335));}};ze(ve,'pluginName',Ke),ze(ve,_0xd288ed(0x270),_0x420990[_0xd288ed(0x289)]),ve=qt([_0xcd782b(_0x1b39bf),He(0x1,_0x5d1749(_0x5c3983)),He(0x2,_0x5d1749(_0x5e26ed))],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/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xb89029=_0x2ee7;(function(_0x55e965,_0x1354a4){const _0x569f2c=_0x2ee7,_0x354bd0=_0x55e965();while(!![]){try{const _0x563a44=parseInt(_0x569f2c(0xe5))/0x1+parseInt(_0x569f2c(0xe6))/0x2*(-parseInt(_0x569f2c(0xf3))/0x3)+-parseInt(_0x569f2c(0x10e))/0x4+parseInt(_0x569f2c(0x10d))/0x5+-parseInt(_0x569f2c(0x120))/0x6*(parseInt(_0x569f2c(0xee))/0x7)+-parseInt(_0x569f2c(0x112))/0x8*(parseInt(_0x569f2c(0x10a))/0x9)+-parseInt(_0x569f2c(0x106))/0xa*(-parseInt(_0x569f2c(0x114))/0xb);if(_0x563a44===_0x1354a4)break;else _0x354bd0['push'](_0x354bd0['shift']());}catch(_0x19153f){_0x354bd0['push'](_0x354bd0['shift']());}}}(_0x561d,0x4547e));import{SparklineDataSourceModel as _0x47ece6,SetSheetSparklineCommand as _0x53a21f,RemoveSheetSparklineCommand as _0x1d4925,AddSheetSparklineCommand as _0x396e30,SparklineTypeEnum as _0x2fe904}from'@univerjs-pro/sheets-sparkline';function _0x561d(){const _0x32428d=['changeDataSource','group','ranges','isChangeDataSource','from','281022zayuSZ','getSheetId','extend','matrix','deepClone','25629GXravx','getSparklineCache','getSparklineGroupByCell','getSubUnitSparkline','_col','startColumn','getSparklineByCell','_subUnitId','getOwnPropertyDescriptor','_row','_initialize','composeSparkline','get','unComposeSparkline','_unitId','_injector','getId','_commandService','syncExecuteCommand','10pxNjxa','startRow','getAllSubSparkline','_worksheet','3507417QhBmOG','executeCommand','getActiveSheet','1674580IOEubX','547224lrHCVQ','SheetSparklineChanged','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','removeSparklineGroup','8QRFFpK','add','10364794BiayvS','fireEvent','forEach','range','registerEventHandler','map','_groupId','cancel','_workbook','addSparkline','getUnitId','length','54WChAjp','Event','getCurrentSelections','createInstance','filter','getSparkline','244700RkHKKC','82hSKGMo','getSparklineById','groupId'];_0x561d=function(){return _0x32428d;};return _0x561d();}import{Inject as _0x57e7d6,Injector as _0x5acc47,ICommandService as _0x1c7d93,Tools as _0x142590}from'@univerjs/core';import{FWorksheet as _0x348ffa}from'@univerjs/sheets/facade';import{FEnum as _0x1b1fb9,FEventName as _0xd0c10c,FUniver as _0x375403}from'@univerjs/core/facade';import{SheetsSelectionsService as _0x3d51c6}from'@univerjs/sheets';var z=Object['getOwnPropertyDescriptor'],H=(_0x3fed34,_0x4f536a,_0x4cdc60,_0x82e89c)=>{const _0x418d2c=_0x2ee7;for(var _0x434e6d=_0x82e89c>0x1?void 0x0:_0x82e89c?z(_0x4f536a,_0x4cdc60):_0x4f536a,_0x3b6141=_0x3fed34[_0x418d2c(0x11f)]-0x1,_0x4e86cf;_0x3b6141>=0x0;_0x3b6141--)(_0x4e86cf=_0x3fed34[_0x3b6141])&&(_0x434e6d=_0x4e86cf(_0x434e6d)||_0x434e6d);return _0x434e6d;},V=(_0x39d4f0,_0x2403bb)=>(_0x4bb357,_0x951acd)=>_0x2403bb(_0x4bb357,_0x951acd,_0x39d4f0);let C=class{constructor(_0x1cd564,_0x331ba8,_0x3bb2e4,_0x139fdf,_0x302a36,_0x4e9fac){const _0x3a77cb=_0x2ee7;this[_0x3a77cb(0x101)]=_0x1cd564,this['_subUnitId']=_0x331ba8,this[_0x3a77cb(0x11a)]=_0x3bb2e4,this[_0x3a77cb(0xfc)]=_0x139fdf,this[_0x3a77cb(0xf7)]=_0x302a36,this['_injector']=_0x4e9fac;}[_0xb89029(0xe9)](_0x5cd1c6,_0x396fd0){const _0x422eb6=_0xb89029,_0x2844e1=this[_0x422eb6(0x102)]['get'](_0x47ece6),_0x41e8b2=this['_injector'][_0x422eb6(0xff)](_0x1c7d93),_0x14326d=_0x2844e1[_0x422eb6(0xe7)](this['_unitId'],this['_subUnitId'],this[_0x422eb6(0x11a)]);if(!_0x14326d)return;const _0x4907d9={'config':_0x14326d,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x422eb6(0x11a)],'resetType':'item','sourceRanges':[_0x5cd1c6],'targetRanges':[_0x396fd0],'primary':{'startRow':this[_0x422eb6(0xfc)],'startColumn':this[_0x422eb6(0xf7)],'endRow':this[_0x422eb6(0xfc)],'endColumn':this['_col'],'actualRow':this[_0x422eb6(0xfc)],'actualColumn':this[_0x422eb6(0xf7)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x41e8b2[_0x422eb6(0x105)](_0x53a21f['id'],_0x4907d9),this[_0x422eb6(0xfc)]=_0x396fd0[_0x422eb6(0x107)],this[_0x422eb6(0xf7)]=_0x396fd0[_0x422eb6(0xf8)],this;}['removeSparkline'](){const _0x27217b=_0xb89029,_0x2f32b3=this[_0x27217b(0x102)][_0x27217b(0xff)](_0x1c7d93),_0x38aead={'isSingle':!0x0,'ranges':[{'startRow':this[_0x27217b(0xfc)],'startColumn':this[_0x27217b(0xf7)],'endRow':this[_0x27217b(0xfc)],'endColumn':this[_0x27217b(0xf7)]}]};_0x2f32b3[_0x27217b(0x105)](_0x1d4925['id'],_0x38aead);}};C=H([V(0x5,_0x57e7d6(_0x5acc47))],C);var q=Object[_0xb89029(0xfb)],J=(_0x27154a,_0x4f968f,_0x536bb5,_0x482f49)=>{const _0x2fe7f7=_0xb89029;for(var _0x32ef96=_0x482f49>0x1?void 0x0:_0x482f49?q(_0x4f968f,_0x536bb5):_0x4f968f,_0x5be75f=_0x27154a[_0x2fe7f7(0x11f)]-0x1,_0x499f76;_0x5be75f>=0x0;_0x5be75f--)(_0x499f76=_0x27154a[_0x5be75f])&&(_0x32ef96=_0x499f76(_0x32ef96)||_0x32ef96);return _0x32ef96;},K=(_0x1cb657,_0x372dfc)=>(_0x2a9736,_0x2f7484)=>_0x372dfc(_0x2a9736,_0x2f7484,_0x1cb657);let w=class{constructor(_0x3e0bfd,_0x4d2a0f,_0x305b3d,_0x362f92,_0x441dde,_0x321384){const _0x24fd9d=_0xb89029;this[_0x24fd9d(0x101)]=_0x3e0bfd,this[_0x24fd9d(0xfa)]=_0x4d2a0f,this[_0x24fd9d(0x11a)]=_0x305b3d,this[_0x24fd9d(0xfc)]=_0x362f92,this[_0x24fd9d(0xf7)]=_0x441dde,this[_0x24fd9d(0x102)]=_0x321384;}[_0xb89029(0xe9)](_0x20f1ec,_0x1c4c64){const _0xad5e50=_0xb89029,_0x1fb054=this[_0xad5e50(0x102)][_0xad5e50(0xff)](_0x47ece6),_0x24af86=this[_0xad5e50(0x102)][_0xad5e50(0xff)](_0x1c7d93),_0x12d5e5=_0x1fb054[_0xad5e50(0xe7)](this['_unitId'],this[_0xad5e50(0xfa)],this[_0xad5e50(0x11a)]);if(!_0x12d5e5)return;const _0x477025={'config':_0x12d5e5,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0xad5e50(0x11a)],'resetType':_0xad5e50(0xea),'sourceRanges':_0x20f1ec,'targetRanges':_0x1c4c64,'primary':{'startRow':this[_0xad5e50(0xfc)],'startColumn':this[_0xad5e50(0xf7)],'endRow':this['_row'],'endColumn':this['_col'],'actualRow':this['_row'],'actualColumn':this[_0xad5e50(0xf7)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x24af86['syncExecuteCommand'](_0x53a21f['id'],_0x477025),this[_0xad5e50(0xfc)]=_0x1c4c64[0x0][_0xad5e50(0x107)],this[_0xad5e50(0xf7)]=_0x1c4c64[0x0]['startColumn'],this;}[_0xb89029(0x111)](){const _0x36ce49=_0xb89029,_0x5acdf6=this[_0x36ce49(0x102)][_0x36ce49(0xff)](_0x1c7d93),_0x40a53b={'isSingle':!0x1,'ranges':[{'startRow':this[_0x36ce49(0xfc)],'startColumn':this[_0x36ce49(0xf7)],'endRow':this[_0x36ce49(0xfc)],'endColumn':this['_col']}]};_0x5acdf6[_0x36ce49(0x105)](_0x1d4925['id'],_0x40a53b);}['setConfig'](_0x47e149){const _0x9ba97c=_0xb89029,_0x443032=this['_injector']['get'](_0x47ece6)[_0x9ba97c(0xe7)](this[_0x9ba97c(0x101)],this[_0x9ba97c(0xfa)],this[_0x9ba97c(0x11a)]);if(_0x443032){const _0x58aca7={'config':{'config':_0x47e149,'sparklines':_0x443032['sparklines']},'isChangeDataSource':!0x1};this[_0x9ba97c(0x102)][_0x9ba97c(0xff)](_0x1c7d93)[_0x9ba97c(0x105)](_0x53a21f['id'],_0x58aca7);}return this;}};w=J([K(0x5,_0x57e7d6(_0x5acc47))],w);class L extends _0x348ffa{[_0xb89029(0x11d)](_0xaea02c,_0x5d8250,_0x1c52c2){const _0x3e7f37=_0xb89029;if(this[_0x3e7f37(0x104)][_0x3e7f37(0x105)](_0x396e30['id'],{'sourceRanges':_0xaea02c,'targetRanges':_0x5d8250,'targetInfo':{'unitId':this[_0x3e7f37(0x11c)]['getUnitId'](),'subUnitId':this[_0x3e7f37(0x109)][_0x3e7f37(0xef)]()},'config':{'type':_0x1c52c2}})){const {startRow:_0x5033b0,startColumn:_0x235716}=_0x5d8250[0x0];return this[_0x3e7f37(0xf9)](_0x5033b0,_0x235716);}}[_0xb89029(0x108)](){const _0x203eb4=_0xb89029;return this[_0x203eb4(0x102)][_0x203eb4(0xff)](_0x47ece6)[_0x203eb4(0xf6)](this[_0x203eb4(0x11c)][_0x203eb4(0x11e)](),this[_0x203eb4(0x109)]['getSheetId']());}[_0xb89029(0xfe)](_0x3559bd){const _0x3710ad=_0xb89029,_0x58f9a5=this['_injector']['get'](_0x47ece6);let _0x449756;for(let _0x5d0931=0x0;_0x5d0931<_0x3559bd[_0x3710ad(0x11f)];_0x5d0931++){const _0x45538b=_0x3559bd[_0x5d0931],{startRow:_0x393458,endRow:_0x4a71ec,startColumn:_0x32b1d9,endColumn:_0x39c718}=_0x45538b;for(let _0xc0dbb9=_0x393458;_0xc0dbb9<=_0x4a71ec;_0xc0dbb9++)for(let _0x45d21c=_0x32b1d9;_0x45d21c<=_0x39c718;_0x45d21c++){const _0x443d94=_0x58f9a5[_0x3710ad(0xe4)](this['_workbook'][_0x3710ad(0x11e)](),this[_0x3710ad(0x109)][_0x3710ad(0xef)](),_0xc0dbb9,_0x45d21c);if(_0x443d94){const _0x62b984=_0x58f9a5[_0x3710ad(0xe7)](this[_0x3710ad(0x11c)][_0x3710ad(0x11e)](),this[_0x3710ad(0x109)][_0x3710ad(0xef)](),_0x443d94);if(_0x62b984){_0x449756=_0x142590[_0x3710ad(0xf2)](_0x62b984);break;}}}}_0x449756&&this['_commandService']['executeCommand'](_0x53a21f['id'],{'ranges':_0x3559bd,'combine':!0x0,'config':_0x449756,'isChangeDataSource':!0x1});}[_0xb89029(0x100)](_0x43afc5){const _0x54d431=_0xb89029,_0x47ea32=this[_0x54d431(0x102)][_0x54d431(0xff)](_0x47ece6);let _0x17551a;for(let _0x55b77d=0x0;_0x55b77d<_0x43afc5[_0x54d431(0x11f)];_0x55b77d++){const _0x841f7c=_0x43afc5[_0x55b77d],{startRow:_0x168df2,endRow:_0x1a779a,startColumn:_0x4eec78,endColumn:_0x108a39}=_0x841f7c;for(let _0x22eea1=_0x168df2;_0x22eea1<=_0x1a779a;_0x22eea1++)for(let _0x1c2189=_0x4eec78;_0x1c2189<=_0x108a39;_0x1c2189++){const _0x2070e7=_0x47ea32[_0x54d431(0xe4)](this[_0x54d431(0x11c)][_0x54d431(0x11e)](),this[_0x54d431(0x109)][_0x54d431(0xef)](),_0x22eea1,_0x1c2189);if(_0x2070e7){const _0x538595=_0x47ea32[_0x54d431(0xe7)](this['_workbook']['getUnitId'](),this[_0x54d431(0x109)][_0x54d431(0xef)](),_0x2070e7);if(_0x538595){_0x17551a=_0x142590['deepClone'](_0x538595);break;}}}}_0x17551a||this['_commandService'][_0x54d431(0x10b)](_0x53a21f['id'],{'ranges':_0x43afc5,'unCombine':!0x0,'config':_0x17551a,'isChangeDataSource':!0x1});}[_0xb89029(0xf9)](_0x169ac6,_0x1abd3b){const _0x35ba2e=_0xb89029,_0x4c9867=this['_injector'][_0x35ba2e(0xff)](_0x47ece6),_0x21c972=this[_0x35ba2e(0x11c)][_0x35ba2e(0x11e)](),_0x419186=this['_worksheet'][_0x35ba2e(0xef)](),_0x10a9da=_0x4c9867['getSparkline'](_0x21c972,_0x419186,_0x169ac6,_0x1abd3b);if(_0x10a9da)return this[_0x35ba2e(0x102)]['createInstance'](C,_0x21c972,_0x419186,_0x10a9da,_0x169ac6,_0x1abd3b);}[_0xb89029(0xf5)](_0x1ecebc,_0xc33cd3){const _0xdd983a=_0xb89029,_0x26cd2a=this[_0xdd983a(0x102)][_0xdd983a(0xff)](_0x47ece6),_0x2be220=this[_0xdd983a(0x11c)]['getUnitId'](),_0x222a3d=this['_worksheet'][_0xdd983a(0xef)](),_0x310c86=_0x26cd2a['getSparkline'](_0x2be220,_0x222a3d,_0x1ecebc,_0xc33cd3);if(_0x310c86)return this['_injector'][_0xdd983a(0x123)](w,_0x2be220,_0x222a3d,_0x310c86,_0x1ecebc,_0xc33cd3);}}_0x348ffa['extend'](L);class Q extends _0x1b1fb9{get['SparklineTypeEnum'](){return _0x2fe904;}}_0x1b1fb9['extend'](Q);class X extends _0xd0c10c{get[_0xb89029(0x10f)](){return'SheetSparklineChanged';}}function _0x2ee7(_0x3ead46,_0x42049f){const _0x561d01=_0x561d();return _0x2ee7=function(_0x2ee774,_0x485f29){_0x2ee774=_0x2ee774-0xe3;let _0x453236=_0x561d01[_0x2ee774];return _0x453236;},_0x2ee7(_0x3ead46,_0x42049f);}_0xd0c10c[_0xb89029(0xf0)](X);class Y extends _0x375403{[_0xb89029(0xfd)](_0x507fea){const _0xc995cd=_0xb89029,_0x510a66=_0x507fea['get'](_0x1c7d93);this[_0xc995cd(0x118)](this[_0xc995cd(0x121)][_0xc995cd(0x10f)],()=>_0x510a66['onCommandExecuted'](_0x476c01=>{const _0x10d260=_0xc995cd;var _0x4e7b47,_0x3e72bf;if(_0x476c01['id']===_0x53a21f['id']){const _0xa96875=_0x476c01['params'];if(!_0xa96875[_0x10d260(0xec)]){const _0x377444=this['getActiveWorkbook'](),_0x231f68=_0x377444==null?void 0x0:_0x377444[_0x10d260(0x10c)]();if(!_0x377444||!_0x231f68)return;const _0xc61f8d=_0x377444[_0x10d260(0x103)](),_0x208fd6=_0x231f68[_0x10d260(0xef)](),_0x2d3de9=this[_0x10d260(0x102)][_0x10d260(0xff)](_0x3d51c6),_0x1a37a2=this['_injector'][_0x10d260(0xff)](_0x47ece6),_0x3146bc=(_0x4e7b47=_0xa96875==null?void 0x0:_0xa96875[_0x10d260(0xeb)])!=null?_0x4e7b47:_0x2d3de9[_0x10d260(0x122)]()[_0x10d260(0x119)](_0x65e9cd=>_0x65e9cd[_0x10d260(0x117)]),_0x6d0676=(_0x3e72bf=_0x1a37a2[_0x10d260(0xf4)]()['sparklineAnchorMap'][_0x10d260(0xff)](_0xc61f8d))==null?void 0x0:_0x3e72bf[_0x10d260(0xff)](_0x208fd6),_0x1481b6=new Set();_0x3146bc[_0x10d260(0x116)](_0x5a2e81=>{const _0x4d917a=_0x10d260;var _0x5f3a6e;const {startRow:_0x4c0e56,endRow:_0x1627f7,startColumn:_0x100e54,endColumn:_0x3aa643}=_0x5a2e81;for(let _0x4d37f1=_0x4c0e56;_0x4d37f1<=_0x1627f7;_0x4d37f1++)for(let _0x41540a=_0x100e54;_0x41540a<=_0x3aa643;_0x41540a++){const _0x1991d6=(_0x5f3a6e=_0x6d0676==null?void 0x0:_0x6d0676[_0x4d917a(0xf1)]['getValue'](_0x4d37f1,_0x41540a))==null?void 0x0:_0x5f3a6e[_0x4d917a(0xe8)];_0x1991d6&&_0x1481b6[_0x4d917a(0x113)](_0x1991d6);}});const _0x27b20e=Array[_0x10d260(0xed)](_0x1481b6)[_0x10d260(0x119)](_0x3d6fb8=>_0x1a37a2['getSparklineById'](_0xc61f8d,_0x208fd6,_0x3d6fb8))[_0x10d260(0xe3)](_0x8c839a=>!!_0x8c839a),_0x3cc510={'workbook':_0x377444,'worksheet':_0x231f68,'sparklines':_0x27b20e};if(this[_0x10d260(0x115)](this[_0x10d260(0x121)][_0x10d260(0x10f)],_0x3cc510),_0x3cc510[_0x10d260(0x11b)])throw new Error(_0x10d260(0x110));}}}));}}_0x375403[_0xb89029(0xf0)](Y);export{C as FSparkline,w as FSparklineGroup};
|
|
1
|
+
const _0x1b5281=_0x2ff4;(function(_0x2f9a67,_0x427298){const _0x44d68f=_0x2ff4,_0x1c6157=_0x2f9a67();while(!![]){try{const _0x33a75c=-parseInt(_0x44d68f(0x192))/0x1+parseInt(_0x44d68f(0x164))/0x2+parseInt(_0x44d68f(0x180))/0x3*(-parseInt(_0x44d68f(0x187))/0x4)+-parseInt(_0x44d68f(0x19c))/0x5+-parseInt(_0x44d68f(0x18d))/0x6+-parseInt(_0x44d68f(0x1a0))/0x7+parseInt(_0x44d68f(0x198))/0x8;if(_0x33a75c===_0x427298)break;else _0x1c6157['push'](_0x1c6157['shift']());}catch(_0xbd5cad){_0x1c6157['push'](_0x1c6157['shift']());}}}(_0x2a6d,0x5e2b5));import{SparklineDataSourceModel as _0x424dfe,SetSheetSparklineCommand as _0x2f2eca,RemoveSheetSparklineCommand as _0x168db9,AddSheetSparklineCommand as _0x12abc7,SparklineTypeEnum as _0x5404fd}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x219188,Injector as _0x48a18f,ICommandService as _0x4aee61,Tools as _0x54c544}from'@univerjs/core';import{FWorksheet as _0x45d745}from'@univerjs/sheets/facade';import{FEnum as _0x4d74df,FEventName as _0x3994d7,FUniver as _0x4d0768}from'@univerjs/core/facade';function _0x2ff4(_0x5a50ed,_0x4cec7a){const _0x2a6dcf=_0x2a6d();return _0x2ff4=function(_0x2ff4a8,_0xd9329a){_0x2ff4a8=_0x2ff4a8-0x163;let _0x5244e0=_0x2a6dcf[_0x2ff4a8];return _0x5244e0;},_0x2ff4(_0x5a50ed,_0x4cec7a);}import{SheetsSelectionsService as _0x358949}from'@univerjs/sheets';var z=Object[_0x1b5281(0x18b)],H=(_0xfef6dc,_0x1cab52,_0x5183ba,_0x2be556)=>{const _0x322294=_0x1b5281;for(var _0x2e6702=_0x2be556>0x1?void 0x0:_0x2be556?z(_0x1cab52,_0x5183ba):_0x1cab52,_0x473555=_0xfef6dc[_0x322294(0x18e)]-0x1,_0x59877c;_0x473555>=0x0;_0x473555--)(_0x59877c=_0xfef6dc[_0x473555])&&(_0x2e6702=_0x59877c(_0x2e6702)||_0x2e6702);return _0x2e6702;},V=(_0x28f5f3,_0x46bf1)=>(_0x5b5383,_0x944027)=>_0x46bf1(_0x5b5383,_0x944027,_0x28f5f3);function _0x2a6d(){const _0x3bc808=['setConfig','unComposeSparkline','getOwnPropertyDescriptor','group','4290042GNTSsj','length','createInstance','getId','add','184596fNJqrX','addSparkline','getSubUnitSparkline','item','fireEvent','getActiveSheet','13160928cBgeym','getSparklineById','extend','startColumn','649620RNQZMz','groupId','_subUnitId','cancel','3110639wWqFqq','changeDataSource','1448856ZhDHTf','onCommandExecuted','Event','_groupId','_row','getValue','matrix','_injector','map','_workbook','getSparklineGroupByCell','SheetSparklineChanged','_initialize','executeCommand','_col','get','_commandService','getSparkline','syncExecuteCommand','getUnitId','from','SparklineTypeEnum','getSheetId','sparklines','getSparklineCache','range','getCurrentSelections','getSparklineByCell','1529769gimnrd','ranges','sparklineAnchorMap','forEach','removeSparkline','_worksheet','removeSparklineGroup','4VFRBkt','_unitId'];_0x2a6d=function(){return _0x3bc808;};return _0x2a6d();}let C=class{constructor(_0x392ade,_0x3927d9,_0x26f3d4,_0xd31321,_0xe5b9db,_0x10e6a0){const _0x527c08=_0x1b5281;this[_0x527c08(0x188)]=_0x392ade,this[_0x527c08(0x19e)]=_0x3927d9,this[_0x527c08(0x167)]=_0x26f3d4,this['_row']=_0xd31321,this[_0x527c08(0x172)]=_0xe5b9db,this[_0x527c08(0x16b)]=_0x10e6a0;}[_0x1b5281(0x163)](_0x363fd8,_0x31ceca){const _0x2ca739=_0x1b5281,_0x439c28=this['_injector'][_0x2ca739(0x173)](_0x424dfe),_0x191897=this[_0x2ca739(0x16b)][_0x2ca739(0x173)](_0x4aee61),_0xb22525=_0x439c28[_0x2ca739(0x199)](this[_0x2ca739(0x188)],this[_0x2ca739(0x19e)],this[_0x2ca739(0x167)]);if(!_0xb22525)return;const _0x1ce647={'config':_0xb22525,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x2ca739(0x167)],'resetType':_0x2ca739(0x195),'sourceRanges':[_0x363fd8],'targetRanges':[_0x31ceca],'primary':{'startRow':this[_0x2ca739(0x168)],'startColumn':this[_0x2ca739(0x172)],'endRow':this[_0x2ca739(0x168)],'endColumn':this[_0x2ca739(0x172)],'actualRow':this[_0x2ca739(0x168)],'actualColumn':this[_0x2ca739(0x172)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x191897[_0x2ca739(0x176)](_0x2f2eca['id'],_0x1ce647),this[_0x2ca739(0x168)]=_0x31ceca['startRow'],this['_col']=_0x31ceca[_0x2ca739(0x19b)],this;}[_0x1b5281(0x184)](){const _0x47ecf7=_0x1b5281,_0x4dab1e=this[_0x47ecf7(0x16b)][_0x47ecf7(0x173)](_0x4aee61),_0x519a61={'isSingle':!0x0,'ranges':[{'startRow':this[_0x47ecf7(0x168)],'startColumn':this[_0x47ecf7(0x172)],'endRow':this[_0x47ecf7(0x168)],'endColumn':this[_0x47ecf7(0x172)]}]};_0x4dab1e[_0x47ecf7(0x176)](_0x168db9['id'],_0x519a61);}};C=H([V(0x5,_0x219188(_0x48a18f))],C);var q=Object[_0x1b5281(0x18b)],J=(_0x3862db,_0x1d2629,_0x40edc0,_0x13aaaf)=>{const _0x516d18=_0x1b5281;for(var _0x5e4158=_0x13aaaf>0x1?void 0x0:_0x13aaaf?q(_0x1d2629,_0x40edc0):_0x1d2629,_0x4918f5=_0x3862db[_0x516d18(0x18e)]-0x1,_0x1c39d1;_0x4918f5>=0x0;_0x4918f5--)(_0x1c39d1=_0x3862db[_0x4918f5])&&(_0x5e4158=_0x1c39d1(_0x5e4158)||_0x5e4158);return _0x5e4158;},K=(_0x7a400e,_0x28a895)=>(_0xbf241c,_0x31f5a9)=>_0x28a895(_0xbf241c,_0x31f5a9,_0x7a400e);let w=class{constructor(_0xec5e92,_0xffe0bf,_0x34999c,_0xf34a22,_0x544d0f,_0xba98ea){const _0x221e13=_0x1b5281;this['_unitId']=_0xec5e92,this[_0x221e13(0x19e)]=_0xffe0bf,this[_0x221e13(0x167)]=_0x34999c,this[_0x221e13(0x168)]=_0xf34a22,this[_0x221e13(0x172)]=_0x544d0f,this[_0x221e13(0x16b)]=_0xba98ea;}[_0x1b5281(0x163)](_0x2b8ae6,_0x37c1a4){const _0x50289b=_0x1b5281,_0x29043d=this[_0x50289b(0x16b)][_0x50289b(0x173)](_0x424dfe),_0x5427af=this['_injector'][_0x50289b(0x173)](_0x4aee61),_0x108a49=_0x29043d[_0x50289b(0x199)](this[_0x50289b(0x188)],this['_subUnitId'],this[_0x50289b(0x167)]);if(!_0x108a49)return;const _0x320882={'config':_0x108a49,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x50289b(0x167)],'resetType':_0x50289b(0x18c),'sourceRanges':_0x2b8ae6,'targetRanges':_0x37c1a4,'primary':{'startRow':this[_0x50289b(0x168)],'startColumn':this[_0x50289b(0x172)],'endRow':this[_0x50289b(0x168)],'endColumn':this['_col'],'actualRow':this['_row'],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x5427af['syncExecuteCommand'](_0x2f2eca['id'],_0x320882),this[_0x50289b(0x168)]=_0x37c1a4[0x0]['startRow'],this[_0x50289b(0x172)]=_0x37c1a4[0x0][_0x50289b(0x19b)],this;}[_0x1b5281(0x186)](){const _0x306bfa=_0x1b5281,_0x4ca1ba=this[_0x306bfa(0x16b)][_0x306bfa(0x173)](_0x4aee61),_0x799c83={'isSingle':!0x1,'ranges':[{'startRow':this['_row'],'startColumn':this[_0x306bfa(0x172)],'endRow':this[_0x306bfa(0x168)],'endColumn':this[_0x306bfa(0x172)]}]};_0x4ca1ba['syncExecuteCommand'](_0x168db9['id'],_0x799c83);}[_0x1b5281(0x189)](_0x56f039){const _0x1be3fd=_0x1b5281,_0x432be3=this[_0x1be3fd(0x16b)][_0x1be3fd(0x173)](_0x424dfe)[_0x1be3fd(0x199)](this[_0x1be3fd(0x188)],this[_0x1be3fd(0x19e)],this['_groupId']);if(_0x432be3){const _0x1a6c1d={'config':{'config':_0x56f039,'sparklines':_0x432be3[_0x1be3fd(0x17b)]},'isChangeDataSource':!0x1};this[_0x1be3fd(0x16b)][_0x1be3fd(0x173)](_0x4aee61)[_0x1be3fd(0x176)](_0x2f2eca['id'],_0x1a6c1d);}return this;}};w=J([K(0x5,_0x219188(_0x48a18f))],w);class L extends _0x45d745{[_0x1b5281(0x193)](_0x109a66,_0xc3664e,_0x2d1340){const _0xf501e=_0x1b5281;if(this[_0xf501e(0x174)][_0xf501e(0x176)](_0x12abc7['id'],{'sourceRanges':_0x109a66,'targetRanges':_0xc3664e,'targetInfo':{'unitId':this[_0xf501e(0x16d)][_0xf501e(0x177)](),'subUnitId':this[_0xf501e(0x185)][_0xf501e(0x17a)]()},'config':{'type':_0x2d1340}})){const {startRow:_0x5e488f,startColumn:_0x28461c}=_0xc3664e[0x0];return this[_0xf501e(0x17f)](_0x5e488f,_0x28461c);}}['getAllSubSparkline'](){const _0x483359=_0x1b5281;return this[_0x483359(0x16b)][_0x483359(0x173)](_0x424dfe)[_0x483359(0x194)](this[_0x483359(0x16d)]['getUnitId'](),this[_0x483359(0x185)][_0x483359(0x17a)]());}['composeSparkline'](_0x3b3d4d){const _0xd1ae68=_0x1b5281,_0x27393d=this[_0xd1ae68(0x16b)][_0xd1ae68(0x173)](_0x424dfe);let _0x3bfb02;for(let _0x1fd7f1=0x0;_0x1fd7f1<_0x3b3d4d[_0xd1ae68(0x18e)];_0x1fd7f1++){const _0x58b033=_0x3b3d4d[_0x1fd7f1],{startRow:_0x16537e,endRow:_0x51fb03,startColumn:_0x5d8c49,endColumn:_0x5a3374}=_0x58b033;for(let _0x461ff6=_0x16537e;_0x461ff6<=_0x51fb03;_0x461ff6++)for(let _0x389272=_0x5d8c49;_0x389272<=_0x5a3374;_0x389272++){const _0x13c7f6=_0x27393d['getSparkline'](this[_0xd1ae68(0x16d)][_0xd1ae68(0x177)](),this[_0xd1ae68(0x185)][_0xd1ae68(0x17a)](),_0x461ff6,_0x389272);if(_0x13c7f6){const _0x3afb3b=_0x27393d['getSparklineById'](this[_0xd1ae68(0x16d)][_0xd1ae68(0x177)](),this[_0xd1ae68(0x185)][_0xd1ae68(0x17a)](),_0x13c7f6);if(_0x3afb3b){_0x3bfb02=_0x54c544['deepClone'](_0x3afb3b);break;}}}}_0x3bfb02&&this['_commandService'][_0xd1ae68(0x171)](_0x2f2eca['id'],{'ranges':_0x3b3d4d,'combine':!0x0,'config':_0x3bfb02,'isChangeDataSource':!0x1});}[_0x1b5281(0x18a)](_0x53710a){const _0x81d488=_0x1b5281,_0x2badae=this[_0x81d488(0x16b)][_0x81d488(0x173)](_0x424dfe);let _0x14eaf9;for(let _0x4b9930=0x0;_0x4b9930<_0x53710a[_0x81d488(0x18e)];_0x4b9930++){const _0x4b4a4c=_0x53710a[_0x4b9930],{startRow:_0x131585,endRow:_0x123619,startColumn:_0x5bfd37,endColumn:_0x22a36b}=_0x4b4a4c;for(let _0x399df7=_0x131585;_0x399df7<=_0x123619;_0x399df7++)for(let _0x36011c=_0x5bfd37;_0x36011c<=_0x22a36b;_0x36011c++){const _0x4653b8=_0x2badae[_0x81d488(0x175)](this[_0x81d488(0x16d)][_0x81d488(0x177)](),this[_0x81d488(0x185)][_0x81d488(0x17a)](),_0x399df7,_0x36011c);if(_0x4653b8){const _0x4fb9c3=_0x2badae[_0x81d488(0x199)](this[_0x81d488(0x16d)][_0x81d488(0x177)](),this[_0x81d488(0x185)]['getSheetId'](),_0x4653b8);if(_0x4fb9c3){_0x14eaf9=_0x54c544['deepClone'](_0x4fb9c3);break;}}}}_0x14eaf9||this['_commandService']['executeCommand'](_0x2f2eca['id'],{'ranges':_0x53710a,'unCombine':!0x0,'config':_0x14eaf9,'isChangeDataSource':!0x1});}[_0x1b5281(0x17f)](_0x222e7f,_0xbf946a){const _0x5cc7ee=_0x1b5281,_0x56b6d9=this[_0x5cc7ee(0x16b)][_0x5cc7ee(0x173)](_0x424dfe),_0x2f7823=this[_0x5cc7ee(0x16d)]['getUnitId'](),_0x4728d1=this['_worksheet'][_0x5cc7ee(0x17a)](),_0x454098=_0x56b6d9[_0x5cc7ee(0x175)](_0x2f7823,_0x4728d1,_0x222e7f,_0xbf946a);if(_0x454098)return this['_injector'][_0x5cc7ee(0x18f)](C,_0x2f7823,_0x4728d1,_0x454098,_0x222e7f,_0xbf946a);}[_0x1b5281(0x16e)](_0x1814d6,_0x1c45d7){const _0x20448b=_0x1b5281,_0xd096aa=this[_0x20448b(0x16b)][_0x20448b(0x173)](_0x424dfe),_0x5430b4=this[_0x20448b(0x16d)][_0x20448b(0x177)](),_0x1f27de=this[_0x20448b(0x185)]['getSheetId'](),_0x2996cb=_0xd096aa[_0x20448b(0x175)](_0x5430b4,_0x1f27de,_0x1814d6,_0x1c45d7);if(_0x2996cb)return this[_0x20448b(0x16b)][_0x20448b(0x18f)](w,_0x5430b4,_0x1f27de,_0x2996cb,_0x1814d6,_0x1c45d7);}}_0x45d745[_0x1b5281(0x19a)](L);class Q extends _0x4d74df{get[_0x1b5281(0x179)](){return _0x5404fd;}}_0x4d74df['extend'](Q);class X extends _0x3994d7{get['SheetSparklineChanged'](){return'SheetSparklineChanged';}}_0x3994d7['extend'](X);class Y extends _0x4d0768{[_0x1b5281(0x170)](_0x178f41){const _0x58d29f=_0x1b5281,_0x675c52=_0x178f41[_0x58d29f(0x173)](_0x4aee61);this['registerEventHandler'](this[_0x58d29f(0x166)][_0x58d29f(0x16f)],()=>_0x675c52[_0x58d29f(0x165)](_0x3bd67c=>{const _0xbf1ce7=_0x58d29f;var _0x23d36b,_0x38eca5;if(_0x3bd67c['id']===_0x2f2eca['id']){const _0x544e8e=_0x3bd67c['params'];if(!_0x544e8e['isChangeDataSource']){const _0x130771=this['getActiveWorkbook'](),_0x5d6e43=_0x130771==null?void 0x0:_0x130771[_0xbf1ce7(0x197)]();if(!_0x130771||!_0x5d6e43)return;const _0x28111e=_0x130771[_0xbf1ce7(0x190)](),_0x39c248=_0x5d6e43[_0xbf1ce7(0x17a)](),_0x5c3588=this[_0xbf1ce7(0x16b)][_0xbf1ce7(0x173)](_0x358949),_0x1b3e35=this[_0xbf1ce7(0x16b)][_0xbf1ce7(0x173)](_0x424dfe),_0x5490d8=(_0x23d36b=_0x544e8e==null?void 0x0:_0x544e8e[_0xbf1ce7(0x181)])!=null?_0x23d36b:_0x5c3588[_0xbf1ce7(0x17e)]()[_0xbf1ce7(0x16c)](_0x4e91bd=>_0x4e91bd[_0xbf1ce7(0x17d)]),_0x300976=(_0x38eca5=_0x1b3e35[_0xbf1ce7(0x17c)]()[_0xbf1ce7(0x182)][_0xbf1ce7(0x173)](_0x28111e))==null?void 0x0:_0x38eca5[_0xbf1ce7(0x173)](_0x39c248),_0x4d795d=new Set();_0x5490d8[_0xbf1ce7(0x183)](_0x3b5caa=>{const _0x3374a6=_0xbf1ce7;var _0x33c05e;const {startRow:_0x4c2b7e,endRow:_0x1cbc7e,startColumn:_0x437336,endColumn:_0x129b1f}=_0x3b5caa;for(let _0x9d5f52=_0x4c2b7e;_0x9d5f52<=_0x1cbc7e;_0x9d5f52++)for(let _0x10e766=_0x437336;_0x10e766<=_0x129b1f;_0x10e766++){const _0x390143=(_0x33c05e=_0x300976==null?void 0x0:_0x300976[_0x3374a6(0x16a)][_0x3374a6(0x169)](_0x9d5f52,_0x10e766))==null?void 0x0:_0x33c05e[_0x3374a6(0x19d)];_0x390143&&_0x4d795d[_0x3374a6(0x191)](_0x390143);}});const _0x1ec084=Array[_0xbf1ce7(0x178)](_0x4d795d)[_0xbf1ce7(0x16c)](_0xbe6a68=>_0x1b3e35['getSparklineById'](_0x28111e,_0x39c248,_0xbe6a68))['filter'](_0x563bf3=>!!_0x563bf3),_0x47cb11={'workbook':_0x130771,'worksheet':_0x5d6e43,'sparklines':_0x1ec084};if(this[_0xbf1ce7(0x196)](this[_0xbf1ce7(0x166)]['SheetSparklineChanged'],_0x47cb11),_0x47cb11[_0xbf1ce7(0x19f)])throw new Error('Sheet\x20create\x20canceled\x20by\x20facade\x20api.');}}}));}}_0x4d0768[_0x1b5281(0x19a)](Y);export{C as FSparkline,w as FSparklineGroup};
|