@univerjs-pro/sheets-sparkline 0.12.2-experimental.20251129-0fa20cd → 0.12.2-experimental.20251202-45172c6

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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x19c031=_0xb6e5;(function(_0x39c7db,_0x505769){const _0x218af7=_0xb6e5,_0x3d10bb=_0x39c7db();while(!![]){try{const _0x5391f3=parseInt(_0x218af7(0x1b2))/0x1+parseInt(_0x218af7(0x1d0))/0x2+-parseInt(_0x218af7(0x1bd))/0x3+-parseInt(_0x218af7(0x16d))/0x4*(parseInt(_0x218af7(0x18c))/0x5)+-parseInt(_0x218af7(0x189))/0x6+parseInt(_0x218af7(0x186))/0x7+parseInt(_0x218af7(0x161))/0x8*(parseInt(_0x218af7(0x1e1))/0x9);if(_0x5391f3===_0x505769)break;else _0x3d10bb['push'](_0x3d10bb['shift']());}catch(_0x24b89f){_0x3d10bb['push'](_0x3d10bb['shift']());}}}(_0x58c6,0xe5ecc));var qe=Object[_0x19c031(0x1ee)],Qe=(_0x3cb1a2,_0x2fd41c,_0x937fa0)=>_0x2fd41c in _0x3cb1a2?qe(_0x3cb1a2,_0x2fd41c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x937fa0}):_0x3cb1a2[_0x2fd41c]=_0x937fa0,se=(_0x2c9ff9,_0x22ee01,_0x7a2a0c)=>Qe(_0x2c9ff9,typeof _0x22ee01!=_0x19c031(0x1c9)?_0x22ee01+'':_0x22ee01,_0x7a2a0c);import{ObjectMatrix as _0xf353c2,Inject as _0x23d78c,IUniverInstanceService as _0x5aa92b,Disposable as _0x364334,isValidRange as _0x4ffb7e,CellValueType as _0x387eff,ColorKit as _0xbbb9da,CommandType as _0x23bf96,Range as _0x558206,IUndoRedoService as _0x37b1df,generateRandomId as _0x25559d,ICommandService as _0x47c4ee,Tools as _0x25f294,sequenceExecute as _0x47cdc9,Rectangle as _0x4fc423,cellToRange as _0x590db2,DisposableCollection as _0x1bce70,RANGE_TYPE as _0x42c5ee,UniverInstanceType as _0x177fe0,IResourceManagerService as _0x4ca723,DependentOn as _0x36ab06,Injector as _0x2e8329,Plugin as _0x1ca6bb,touchDependencies as _0x12836b}from'@univerjs/core';import{getSheetCommandTarget as _0x20a119,SheetsSelectionsService as _0x24d183,SheetInterceptorService as _0x1710a3,ClearSelectionAllCommand as _0x8aa8ad,CopySheetCommand as _0x2b54e7,IExclusiveRangeService as _0x779793,SetRangeValuesMutation as _0x12e868,ReorderRangeMutation as _0x189a3e,SetRowHiddenMutation as _0x52559d,SetColHiddenMutation as _0x30fca6,SetRowVisibleMutation as _0x4daa4c,SetColVisibleMutation as _0x146dd3,AddWorksheetMergeCommand as _0x31fc9a,RefRangeService as _0x3ea65c,SetWorksheetActivateCommand as _0x43348c,RemoveRowCommand as _0x268407,RemoveColCommand as _0x4cbf4d,adjustRangeOnMutation as _0x5a7b69,RemoveRowMutation as _0x26fb31,RemoveColMutation as _0x573e36,InsertColMutation as _0x5d6c0e,InsertRowMutation as _0xa9ca91,MoveColsMutation as _0x45a313,MoveRowsMutation as _0x631cc9,MoveRangeMutation as _0x3f35a8}from'@univerjs/sheets';import{Subject as _0x4f60b7}from'rxjs';import{UniverLicensePlugin as _0x4f0cfe}from'@univerjs-pro/license';function Fe(_0x2ccc32,_0x5746eb){const _0x19c107=_0x19c031,_0x5e3d29=new _0xf353c2(),_0x3f0303=[],_0x4b04a8=_0x2ccc32[_0x19c107(0x1cc)]>0x1;let _0x3b2739=0x0,_0x5d3111=0x0;for(const _0x4d05d4 of _0x2ccc32)_0x3b2739+=_0x4d05d4[_0x19c107(0x142)]-_0x4d05d4['startRow']+0x1,_0x5d3111+=_0x4d05d4[_0x19c107(0x145)]-_0x4d05d4[_0x19c107(0x176)]+0x1;for(const _0x33fa1e of _0x5746eb)for(let _0x4813fe=_0x33fa1e['startRow'];_0x4813fe<=_0x33fa1e[_0x19c107(0x142)];_0x4813fe++)for(let _0x2b68d8=_0x33fa1e[_0x19c107(0x176)];_0x2b68d8<=_0x33fa1e['endColumn'];_0x2b68d8++)_0x3f0303[_0x19c107(0x17d)]({'row':_0x4813fe,'column':_0x2b68d8});if(_0x3f0303[_0x19c107(0x1cc)]===_0x3b2739)_0x4b04a8?_0x3f0303[_0x19c107(0x17b)]((_0x34e845,_0x4c6378)=>{const _0x15366d=_0x19c107,_0x407889=_0x2ccc32[_0x4c6378],_0x5ceaee={'startRow':_0x407889['startRow'],'startColumn':_0x407889[_0x15366d(0x176)],'endRow':_0x407889['startRow'],'endColumn':_0x407889[_0x15366d(0x145)]};_0x5e3d29[_0x15366d(0x1c8)](_0x34e845[_0x15366d(0x1c3)],_0x34e845[_0x15366d(0x188)],_0x5ceaee);}):_0x3f0303[_0x19c107(0x17b)]((_0x256db7,_0x1de49f)=>{const _0x81f605=_0x19c107,_0x42b317=_0x2ccc32[0x0],_0x25c6ef={'startRow':_0x42b317[_0x81f605(0x17c)]+_0x1de49f,'startColumn':_0x42b317['startColumn'],'endRow':_0x42b317[_0x81f605(0x17c)]+_0x1de49f,'endColumn':_0x42b317['endColumn']};_0x5e3d29['setValue'](_0x256db7[_0x81f605(0x1c3)],_0x256db7['column'],_0x25c6ef);});else{if(_0x3f0303[_0x19c107(0x1cc)]===_0x5d3111)_0x4b04a8?_0x3f0303[_0x19c107(0x17b)]((_0x92fce8,_0xbcf198)=>{const _0x57a003=_0x19c107,_0x233c33=_0x2ccc32[_0xbcf198],_0x36ee48={'startRow':_0x233c33[_0x57a003(0x17c)],'startColumn':_0x233c33[_0x57a003(0x176)],'endRow':_0x233c33['endRow'],'endColumn':_0x233c33['startColumn']};_0x5e3d29['setValue'](_0x92fce8[_0x57a003(0x1c3)],_0x92fce8[_0x57a003(0x188)],_0x36ee48);}):_0x3f0303['forEach']((_0x1d0100,_0x3c7506)=>{const _0x2f9a4e=_0x19c107,_0x3965f0=_0x2ccc32[0x0],_0x18e16b={'startRow':_0x3965f0[_0x2f9a4e(0x17c)],'startColumn':_0x3965f0[_0x2f9a4e(0x176)]+_0x3c7506,'endRow':_0x3965f0['endRow'],'endColumn':_0x3965f0['startColumn']+_0x3c7506};_0x5e3d29[_0x2f9a4e(0x1c8)](_0x1d0100['row'],_0x1d0100[_0x2f9a4e(0x188)],_0x18e16b);});else{if(_0x3f0303['length']===_0x2ccc32['length'])_0x2ccc32[_0x19c107(0x1d8)](_0x224914=>!(_0x224914[_0x19c107(0x17c)]!==_0x224914[_0x19c107(0x142)]&&_0x224914[_0x19c107(0x176)]!==_0x224914['endColumn']))&&_0x3f0303[_0x19c107(0x17b)]((_0x274a70,_0x3cc383)=>{const _0x3abf53=_0x19c107,_0x392cad=_0x2ccc32[_0x3cc383];_0x5e3d29[_0x3abf53(0x1c8)](_0x274a70[_0x3abf53(0x1c3)],_0x274a70[_0x3abf53(0x188)],_0x392cad);});else throw new Error(_0x19c107(0x1d5));}}return _0x5e3d29;}const Ke=_0x19c031(0x180),Le={'standard':[_0x19c031(0x1a3),'rgb(236,100,169)'],'specialty':[_0x19c031(0x146),_0x19c031(0x192)],'distinctive':['rgb(124,66,147)',_0x19c031(0x1ab)],'soft':[_0x19c031(0x1a4),_0x19c031(0x15b)],'fresh':['rgb(46,187,122)',_0x19c031(0x1d2)]},on=[_0x19c031(0x197),_0x19c031(0x19a),_0x19c031(0x18f),_0x19c031(0x194),_0x19c031(0x154),_0x19c031(0x16e)];var Xe=(_0x27068c=>(_0x27068c[_0x19c031(0x1e7)]=_0x19c031(0x19c),_0x27068c['SPECIALTY']=_0x19c031(0x181),_0x27068c['DISTINCTIVE']=_0x19c031(0x1c6),_0x27068c['SOFT']=_0x19c031(0x1a7),_0x27068c['FRESH']=_0x19c031(0x187),_0x27068c[_0x19c031(0x1a8)]='custom',_0x27068c))(Xe||{}),Dt=(_0x14f11b=>(_0x14f11b[_0x14f11b['LINE_CHART']=0x1]='LINE_CHART',_0x14f11b[_0x14f11b['BAR_CHART']=0x2]=_0x19c031(0x1b0),_0x14f11b[_0x14f11b[_0x19c031(0x1b6)]=0x3]=_0x19c031(0x1b6),_0x14f11b[_0x14f11b[_0x19c031(0x1b5)]=0x4]=_0x19c031(0x1b5),_0x14f11b))(Dt||{}),J=(_0x326cf3=>(_0x326cf3[_0x19c031(0x1dc)]=_0x19c031(0x191),_0x326cf3[_0x19c031(0x14c)]='zero_value',_0x326cf3[_0x19c031(0x139)]='connect_with_line',_0x326cf3))(J||{}),De=(_0x37ce57=>(_0x37ce57[_0x37ce57['SELF_EXTREMUM']=0x1]='SELF_EXTREMUM',_0x37ce57[_0x37ce57[_0x19c031(0x137)]=0x2]=_0x19c031(0x137),_0x37ce57[_0x37ce57['CUSTOM_EXTREMUM']=0x3]=_0x19c031(0x144),_0x37ce57))(De||{}),Et=Object[_0x19c031(0x17e)],Vt=(_0x44a8cd,_0x513660,_0x20593,_0x2645cf)=>{const _0x191ea8=_0x19c031;for(var _0x3d0884=_0x2645cf>0x1?void 0x0:_0x2645cf?Et(_0x513660,_0x20593):_0x513660,_0x613bef=_0x44a8cd[_0x191ea8(0x1cc)]-0x1,_0x46cb92;_0x613bef>=0x0;_0x613bef--)(_0x46cb92=_0x44a8cd[_0x613bef])&&(_0x3d0884=_0x46cb92(_0x3d0884)||_0x3d0884);return _0x3d0884;},yt=(_0x3a8790,_0x33c46c)=>(_0x32b6e9,_0x3add2f)=>_0x33c46c(_0x32b6e9,_0x3add2f,_0x3a8790);let x=class extends _0x364334{constructor(_0x54e8bc){const _0x5a379e=_0x19c031;super(),se(this,_0x5a379e(0x14f),new Map()),se(this,_0x5a379e(0x155),new Map()),se(this,_0x5a379e(0x1ad),new _0x4f60b7()),se(this,_0x5a379e(0x1a2),this[_0x5a379e(0x1ad)][_0x5a379e(0x193)]()),this[_0x5a379e(0x199)]=_0x54e8bc;}[_0x19c031(0x15f)](_0x4f546e,_0x328433){const _0x28b29e=_0x19c031;let _0x18f5bd=this[_0x28b29e(0x14f)][_0x28b29e(0x15d)](_0x4f546e);_0x18f5bd||(_0x18f5bd=new Map(),this[_0x28b29e(0x14f)][_0x28b29e(0x13f)](_0x4f546e,_0x18f5bd));let _0x49b008=_0x18f5bd[_0x28b29e(0x15d)](_0x328433);return _0x49b008||(_0x49b008=new Map(),_0x18f5bd[_0x28b29e(0x13f)](_0x328433,_0x49b008)),_0x49b008;}[_0x19c031(0x1ed)](_0x238bab,_0x1f9d23){const _0x4395c0=_0x19c031;let _0x433900=this[_0x4395c0(0x155)][_0x4395c0(0x15d)](_0x238bab);_0x433900||(_0x433900=new Map(),this[_0x4395c0(0x155)][_0x4395c0(0x13f)](_0x238bab,_0x433900));let _0x5f05e9=_0x433900[_0x4395c0(0x15d)](_0x1f9d23);return _0x5f05e9||(_0x5f05e9={'matrix':new _0xf353c2(),'extra':{}},_0x433900[_0x4395c0(0x13f)](_0x1f9d23,_0x5f05e9)),_0x5f05e9;}['updateSparklineExtraNum'](_0x32a684,_0x173802,_0x2710a6,_0x3f8309='set'){const _0x4c6d33=_0x19c031;var _0x96f1ae,_0x571936,_0xe1edcd,_0x54f398,_0x1a1c38,_0x2dbbd5,_0x3feed9,_0x321c4a,_0x1e9e3d,_0x47ba84,_0x1a20db,_0x274fc9,_0x3e5fa6;const _0x4828d5=(_0x571936=(_0x96f1ae=this[_0x4c6d33(0x14f)][_0x4c6d33(0x15d)](_0x32a684))==null?void 0x0:_0x96f1ae[_0x4c6d33(0x15d)](_0x173802))==null?void 0x0:_0x571936[_0x4c6d33(0x15d)](_0x2710a6);if(!_0x4828d5)return;const _0x17337a=_0x20a119(this[_0x4c6d33(0x199)],{'unitId':_0x32a684,'subUnitId':_0x173802});if(!_0x17337a)return;const _0x17b0dd=this[_0x4c6d33(0x1ed)](_0x32a684,_0x173802),{extra:_0x39485e,matrix:_0x30a90e}=_0x17b0dd,{worksheet:_0xa7dad}=_0x17337a;let _0x498234=Number['MIN_SAFE_INTEGER'],_0x4295db=Number[_0x4c6d33(0x1d4)];const _0x57a2aa=(_0xe1edcd=_0x4828d5[_0x4c6d33(0x143)][_0x4c6d33(0x17f)])!=null?_0xe1edcd:!0x1;_0x4828d5[_0x4c6d33(0x158)]['forValue']((_0x874810,_0x46720e,_0x36e829)=>{const _0x3d2b2e=_0x4c6d33;var _0x5ee716,_0x2565d9,_0x22abf4;const _0x2166a1=_0x36e829;let _0x5f4f22=Number['MIN_SAFE_INTEGER'],_0x975f40=Number['MAX_SAFE_INTEGER'],_0x3861cb=0x0,_0x468cb1=0x0;const _0x4a8111=[];if(!_0x4ffb7e(_0x2166a1))_0x30a90e[_0x3d2b2e(0x1c8)](_0x874810,_0x46720e,{'groupId':_0x2710a6,'data':[],'max':_0x5f4f22,'min':_0x975f40,'highIndex':_0x3861cb,'lowIndex':_0x468cb1,'negativeIndexes':_0x4a8111});else{const _0x2c06b2=[];for(let _0xd2872b=_0x2166a1[_0x3d2b2e(0x17c)];_0xd2872b<=_0x2166a1[_0x3d2b2e(0x142)];_0xd2872b++){for(let _0x41e4b3=_0x2166a1[_0x3d2b2e(0x176)];_0x41e4b3<=_0x2166a1['endColumn'];_0x41e4b3++){const _0x1242f1=_0xa7dad[_0x3d2b2e(0x1ef)](_0xd2872b),_0x39ed18=_0xa7dad[_0x3d2b2e(0x170)](_0x41e4b3);if(!_0x57a2aa&&(!_0x1242f1||!_0x39ed18))continue;let _0x42e9d5=0x0;const _0x1d7fd8=((_0x5ee716=_0xa7dad[_0x3d2b2e(0x172)](_0xd2872b,_0x41e4b3))==null?void 0x0:_0x5ee716['v'])!==void 0x0?_0xa7dad[_0x3d2b2e(0x172)](_0xd2872b,_0x41e4b3):_0xa7dad[_0x3d2b2e(0x149)](_0xd2872b,_0x41e4b3);if(!_0x1d7fd8||_0x1d7fd8['v']===void 0x0||_0x1d7fd8['v']===null){const _0x108d34=(_0x2565d9=_0x4828d5[_0x3d2b2e(0x143)][_0x3d2b2e(0x1c0)])!=null?_0x2565d9:J[_0x3d2b2e(0x1dc)];_0x108d34===J['ZERO_VALUE']?_0x42e9d5=0x0:_0x108d34===J[_0x3d2b2e(0x1dc)]?_0x42e9d5='u-spacing':_0x108d34===J[_0x3d2b2e(0x139)]&&(_0x42e9d5=_0x3d2b2e(0x1e4));}else{if(_0x1d7fd8['t']===_0x387eff[_0x3d2b2e(0x16c)]||_0x1d7fd8['t']===_0x387eff[_0x3d2b2e(0x164)]){const _0x104494=(_0x22abf4=_0x4828d5['config'][_0x3d2b2e(0x1eb)])!=null?_0x22abf4:J[_0x3d2b2e(0x1dc)];_0x104494===J[_0x3d2b2e(0x14c)]?_0x42e9d5=0x0:_0x104494===J[_0x3d2b2e(0x1dc)]?_0x42e9d5=_0x3d2b2e(0x1a9):_0x104494===J['CONNECT_WITH_LINE']&&(_0x42e9d5=_0x3d2b2e(0x1e4));}else _0x1d7fd8['t']===_0x387eff['BOOLEAN']?_0x42e9d5=_0x1d7fd8['v']?0x1:0x0:_0x1d7fd8['t']===_0x387eff[_0x3d2b2e(0x1aa)]?_0x42e9d5=Number(_0x1d7fd8['v']):_0x42e9d5=_0x1d7fd8['v'];}if(_0x2c06b2[_0x3d2b2e(0x17d)](_0x42e9d5),typeof _0x42e9d5==_0x3d2b2e(0x167)){_0x5f4f22=Math[_0x3d2b2e(0x1e2)](_0x5f4f22,_0x42e9d5),_0x498234=Math[_0x3d2b2e(0x1e2)](_0x498234,_0x42e9d5),_0x4295db=Math[_0x3d2b2e(0x171)](_0x4295db,_0x42e9d5),_0x975f40=Math[_0x3d2b2e(0x171)](_0x975f40,_0x42e9d5);const _0xaae94=typeof _0x2c06b2[_0x3861cb]==_0x3d2b2e(0x167)?Number(_0x2c06b2[_0x3861cb]):Number['MIN_SAFE_INTEGER'];_0x42e9d5>_0xaae94&&(_0x3861cb=_0x2c06b2['length']-0x1);const _0x290c64=typeof _0x2c06b2[_0x468cb1]==_0x3d2b2e(0x167)?Number(_0x2c06b2[_0x468cb1]):Number['MAX_SAFE_INTEGER'];_0x42e9d5<_0x290c64&&(_0x468cb1=_0x2c06b2['length']-0x1),_0x42e9d5<0x0&&_0x4a8111[_0x3d2b2e(0x17d)](_0x2c06b2['length']-0x1);}}_0x30a90e[_0x3d2b2e(0x1c8)](_0x874810,_0x46720e,{'groupId':_0x2710a6,'data':_0x2c06b2,'max':_0x5f4f22,'min':_0x975f40,'highIndex':_0x3861cb,'lowIndex':_0x468cb1,'negativeIndexes':_0x4a8111});}}});let _0x307498=_0x498234;((_0x54f398=_0x4828d5['config'][_0x4c6d33(0x1d9)])==null?void 0x0:_0x54f398[_0x4c6d33(0x1dd)])===De[_0x4c6d33(0x144)]&&(_0x307498=(_0x2dbbd5=(_0x1a1c38=_0x4828d5[_0x4c6d33(0x143)][_0x4c6d33(0x1d9)])==null?void 0x0:_0x1a1c38[_0x4c6d33(0x1c2)])!=null?_0x2dbbd5:_0x498234);let _0x37642e=_0x4295db;((_0x3feed9=_0x4828d5[_0x4c6d33(0x143)][_0x4c6d33(0x18e)])==null?void 0x0:_0x3feed9['type'])===De[_0x4c6d33(0x144)]&&(_0x37642e=(_0x1e9e3d=(_0x321c4a=_0x4828d5[_0x4c6d33(0x143)]['extremumMin'])==null?void 0x0:_0x321c4a['value'])!=null?_0x1e9e3d:_0x4295db);const _0x5f3e08=(_0x47ba84=_0x4828d5[_0x4c6d33(0x143)][_0x4c6d33(0x19f)])!=null?_0x47ba84:Xe[_0x4c6d33(0x1e7)],_0x2edd9a=(_0x3e5fa6=(_0x274fc9=_0x4828d5['config'][_0x4c6d33(0x166)])!=null?_0x274fc9:(_0x1a20db=Le[_0x5f3e08])==null?void 0x0:_0x1a20db[0x0])!=null?_0x3e5fa6:Le[_0x4c6d33(0x19c)][0x0],_0x3b0088=new _0xbbb9da(_0x2edd9a),_0x544206=_0x3b0088['setAlpha'](0.2)[_0x4c6d33(0x160)](),_0x7d265=_0x3b0088['setAlpha'](0.05)[_0x4c6d33(0x160)]();_0x39485e[_0x2710a6]={'groupMax':_0x498234,'groupMin':_0x4295db,'showMax':_0x307498,'showMin':_0x37642e,'startGradient':_0x544206,'endGradient':_0x7d265},this[_0x4c6d33(0x1ad)][_0x4c6d33(0x1b4)]({'unitId':_0x32a684,'subUnitId':_0x173802,'groupId':_0x2710a6,'config':_0x4828d5,'type':_0x3f8309});}[_0x19c031(0x141)](_0x4968fc,_0x54d043,_0x45168c,_0x382f9a){const _0xdb8e0e=_0x19c031;this[_0xdb8e0e(0x15f)](_0x4968fc,_0x54d043)[_0xdb8e0e(0x13f)](_0x45168c,_0x382f9a),this[_0xdb8e0e(0x1cf)](_0x4968fc,_0x54d043,_0x45168c,_0xdb8e0e(0x138));}['setSparkline'](_0x5edced,_0x251ea0,_0x1a167f,_0x35890f){const _0x2d85b3=_0x19c031;var _0x3de33c;const _0x2f5ea4=(_0x3de33c=this[_0x2d85b3(0x14f)]['get'](_0x5edced))==null?void 0x0:_0x3de33c[_0x2d85b3(0x15d)](_0x251ea0);_0x1a167f[_0x2d85b3(0x17b)](_0x42de0d=>{_0x2f5ea4!=null&&_0x2f5ea4['has'](_0x42de0d)&&(_0x2f5ea4['set'](_0x42de0d,_0x35890f),this['updateSparklineExtraNum'](_0x5edced,_0x251ea0,_0x42de0d));});}[_0x19c031(0x177)](_0x5796dd,_0x2e2db8,_0x39af8c){const _0x16f64c=_0x19c031;var _0x83acd0,_0x4a819e;const _0x3f6364=this[_0x16f64c(0x14f)][_0x16f64c(0x15d)](_0x5796dd);if(_0x3f6364){const _0x3e03ae=_0x3f6364[_0x16f64c(0x15d)](_0x2e2db8);if(_0x3e03ae){_0x3e03ae['delete'](_0x39af8c);const _0x187793=(_0x83acd0=this[_0x16f64c(0x155)][_0x16f64c(0x15d)](_0x5796dd))==null?void 0x0:_0x83acd0['get'](_0x2e2db8);(_0x4a819e=_0x187793==null?void 0x0:_0x187793[_0x16f64c(0x1f1)])==null||_0x4a819e[_0x16f64c(0x15c)]((_0x3dbffb,_0x4c6f51,_0x4279cb)=>{const _0x467e9e=_0x16f64c;(_0x4279cb==null?void 0x0:_0x4279cb[_0x467e9e(0x183)])===_0x39af8c&&(_0x187793==null||_0x187793['matrix'][_0x467e9e(0x1cd)](_0x3dbffb,_0x4c6f51));}),this['_updateConfig$'][_0x16f64c(0x1b4)]({'unitId':_0x5796dd,'subUnitId':_0x2e2db8,'groupId':_0x39af8c,'type':_0x16f64c(0x1ae)});}}}[_0x19c031(0x1bf)](_0x171d49,_0x52a44f,_0xff7c7,_0x369df1){const _0xceb3da=_0x19c031;var _0x4e83f3,_0x3e1004,_0x5bd0b5,_0x14f887;const _0x1eff83=(_0x4e83f3=this['_sparklineAnchorMap'][_0xceb3da(0x15d)](_0x171d49))==null?void 0x0:_0x4e83f3[_0xceb3da(0x15d)](_0x52a44f),_0x3adb1a=_0x1eff83==null?void 0x0:_0x1eff83[_0xceb3da(0x1f1)][_0xceb3da(0x1d6)](_0xff7c7,_0x369df1);if(_0x3adb1a){const {groupId:_0x4eee36}=_0x3adb1a,_0x4bf453=(_0x3e1004=this['_sparklineModel'][_0xceb3da(0x15d)](_0x171d49))==null?void 0x0:_0x3e1004[_0xceb3da(0x15d)](_0x52a44f);(_0x5bd0b5=_0x4bf453==null?void 0x0:_0x4bf453[_0xceb3da(0x15d)](_0x4eee36))==null||_0x5bd0b5[_0xceb3da(0x158)]['realDeleteValue'](_0xff7c7,_0x369df1),(_0x14f887=_0x4bf453==null?void 0x0:_0x4bf453[_0xceb3da(0x15d)](_0x4eee36))!=null&&_0x14f887[_0xceb3da(0x158)][_0xceb3da(0x162)]()||_0x4bf453==null||_0x4bf453[_0xceb3da(0x168)](_0x4eee36),_0x1eff83==null||_0x1eff83[_0xceb3da(0x1f1)]['realDeleteValue'](_0xff7c7,_0x369df1),this[_0xceb3da(0x1ad)][_0xceb3da(0x1b4)]({'unitId':_0x171d49,'subUnitId':_0x52a44f,'groupId':_0x4eee36,'type':'remove'});}}['clearSparklineCache'](_0xfa7832,_0x33ae54,_0x521110){const _0x2c86b1=_0x19c031;var _0x5993e6,_0x34752f,_0x4dafda,_0x2fa325;const _0x15bb1d=(_0x4dafda=(_0x34752f=(_0x5993e6=this[_0x2c86b1(0x14f)][_0x2c86b1(0x15d)](_0xfa7832))==null?void 0x0:_0x5993e6[_0x2c86b1(0x15d)](_0x33ae54))==null?void 0x0:_0x34752f[_0x2c86b1(0x15d)](_0x521110))==null?void 0x0:_0x4dafda[_0x2c86b1(0x158)],_0x3ef867=(_0x2fa325=this[_0x2c86b1(0x155)][_0x2c86b1(0x15d)](_0xfa7832))==null?void 0x0:_0x2fa325[_0x2c86b1(0x15d)](_0x33ae54);if(_0x15bb1d&&_0x3ef867){const {matrix:_0x37890a,extra:_0x55ae72}=_0x3ef867;_0x15bb1d[_0x2c86b1(0x15c)]((_0x504704,_0x5cc8bb,_0x3d6524)=>{const _0x23b4f6=_0x2c86b1;_0x37890a[_0x23b4f6(0x1cd)](_0x504704,_0x5cc8bb);}),delete _0x55ae72[_0x521110];}}[_0x19c031(0x169)](_0x2e65b8,_0x1cb6cf){const _0x4bc225=_0x19c031;var _0x1dbefd;return(_0x1dbefd=this[_0x4bc225(0x14f)][_0x4bc225(0x15d)](_0x2e65b8))==null?void 0x0:_0x1dbefd['get'](_0x1cb6cf);}[_0x19c031(0x1e8)](_0xd2c555,_0x3d4fa9,_0xa18499){const _0x401236=_0x19c031;var _0x532944,_0x470a69;return(_0x470a69=(_0x532944=this[_0x401236(0x14f)][_0x401236(0x15d)](_0xd2c555))==null?void 0x0:_0x532944['get'](_0x3d4fa9))==null?void 0x0:_0x470a69[_0x401236(0x15d)](_0xa18499);}['getSparkline'](_0x577d8c,_0x31b4bf,_0x1fb20a,_0x42cfa2){const _0x345662=_0x19c031;var _0x460c2e,_0x4a0178,_0x4006e5;return(_0x4006e5=(_0x4a0178=(_0x460c2e=this[_0x345662(0x155)]['get'](_0x577d8c))==null?void 0x0:_0x460c2e['get'](_0x31b4bf))==null?void 0x0:_0x4a0178['matrix']['getValue'](_0x1fb20a,_0x42cfa2))==null?void 0x0:_0x4006e5['groupId'];}[_0x19c031(0x17a)](_0x5ca9f7,_0x3b78fc){const _0x3ac30e=_0x19c031;var _0x5ebd62;const _0x1c4c4f=this[_0x3ac30e(0x1ed)](_0x5ca9f7,_0x3b78fc);_0x1c4c4f[_0x3ac30e(0x1f1)][_0x3ac30e(0x15c)]((_0x23d1aa,_0x355c38)=>{const _0x1f92e5=_0x3ac30e;_0x1c4c4f[_0x1f92e5(0x1f1)][_0x1f92e5(0x1cd)](_0x23d1aa,_0x355c38);});const _0xc93f0=(_0x5ebd62=this[_0x3ac30e(0x14f)]['get'](_0x5ca9f7))==null?void 0x0:_0x5ebd62[_0x3ac30e(0x15d)](_0x3b78fc);if(_0xc93f0){for(const [_0xb6bc63]of _0xc93f0)this[_0x3ac30e(0x1cf)](_0x5ca9f7,_0x3b78fc,_0xb6bc63);}}[_0x19c031(0x174)](){const _0x1bde1e=_0x19c031;return{'sparklineModel':this['_sparklineModel'],'sparklineAnchorMap':this[_0x1bde1e(0x155)]};}[_0x19c031(0x173)](_0x39d16e){const _0x5eb525=_0x19c031,_0x2cbb52={};if(this[_0x5eb525(0x14f)][_0x5eb525(0x1ac)](_0x39d16e)){_0x2cbb52[_0x39d16e]={};const _0x5c47d7=this[_0x5eb525(0x14f)][_0x5eb525(0x15d)](_0x39d16e);_0x5c47d7!=null&&_0x5c47d7[_0x5eb525(0x151)]&&Array[_0x5eb525(0x19d)](_0x5c47d7[_0x5eb525(0x1d1)]())[_0x5eb525(0x17b)](_0x4f144d=>{const _0x407d93=_0x5eb525;_0x2cbb52[_0x39d16e][_0x4f144d]={};const _0x2a784a=_0x5c47d7['get'](_0x4f144d);_0x2a784a!=null&&_0x2a784a[_0x407d93(0x151)]&&Array[_0x407d93(0x19d)](_0x2a784a[_0x407d93(0x1d1)]())['forEach'](_0x11c079=>{const _0x4b7a9e=_0x407d93,_0x5c025f=_0x2a784a[_0x4b7a9e(0x15d)](_0x11c079);_0x5c025f&&(_0x2cbb52[_0x39d16e][_0x4f144d][_0x11c079]={'config':_0x5c025f[_0x4b7a9e(0x143)],'sparklines':_0x5c025f[_0x4b7a9e(0x158)][_0x4b7a9e(0x198)]()});});});}return _0x2cbb52;}[_0x19c031(0x1b7)](_0x492414){const _0x42ba38=_0x19c031;if(!_0x492414)return;Object[_0x42ba38(0x1d1)](_0x492414)['forEach'](_0x3fc0ba=>{const _0x279ea5=_0x42ba38,_0x328f74=_0x492414[_0x3fc0ba];_0x328f74&&Object[_0x279ea5(0x1d1)](_0x328f74)['forEach'](_0x3e2622=>{const _0x37bfa0=_0x279ea5,_0x3c5deb=_0x328f74[_0x3e2622];_0x3c5deb&&Object[_0x37bfa0(0x1d1)](_0x3c5deb)[_0x37bfa0(0x17b)](_0x172181=>{const _0x353670=_0x37bfa0,_0x8d7243=_0x3c5deb[_0x172181];if(_0x8d7243){const _0x2cce27={'config':_0x8d7243[_0x353670(0x143)],'sparklines':new _0xf353c2(_0x8d7243['sparklines'])};this[_0x353670(0x141)](_0x3fc0ba,_0x3e2622,_0x172181,_0x2cce27);}});});});}[_0x19c031(0x147)](_0x1ac1c9){const _0x27b396=_0x19c031,_0x482d35=this[_0x27b396(0x14f)][_0x27b396(0x15d)](_0x1ac1c9);if(_0x482d35){for(const [_0x4ce3f4]of _0x482d35){const _0x36e387=_0x482d35[_0x27b396(0x15d)](_0x4ce3f4);if(_0x36e387){for(const [_0x146626]of _0x36e387)this[_0x27b396(0x1e0)](_0x1ac1c9,_0x4ce3f4,_0x146626);}}this[_0x27b396(0x14f)][_0x27b396(0x168)](_0x1ac1c9);}}};function _0xb6e5(_0xce205d,_0x1e9dbd){const _0x58c665=_0x58c6();return _0xb6e5=function(_0xb6e59d,_0x3a516a){_0xb6e59d=_0xb6e59d-0x136;let _0x44a1d2=_0x58c665[_0xb6e59d];return _0x44a1d2;},_0xb6e5(_0xce205d,_0x1e9dbd);}x=Vt([yt(0x0,_0x23d78c(_0x5aa92b))],x);const V={'id':'sheet.mutation.add-sparkline','type':_0x23bf96[_0x19c031(0x1b9)],'handler':(_0x3e5911,_0x37bc87)=>{const _0x477d30=_0x19c031;if(!_0x37bc87)return!0x1;const {sparklineConfigMap:_0x18147d,unitId:_0x3253e4,subUnitId:_0x857e4a}=_0x37bc87,_0x7b91e8=_0x3e5911['get'](x);return Object['entries'](_0x18147d)[_0x477d30(0x17b)](([_0xb929c4,_0xb64b2f])=>{const _0x313a64=_0x477d30,_0xe7f290={'config':_0xb64b2f[_0x313a64(0x143)],'sparklines':new _0xf353c2(_0xb64b2f[_0x313a64(0x158)])};_0x7b91e8[_0x313a64(0x141)](_0x3253e4,_0x857e4a,_0xb929c4,_0xe7f290);}),!0x0;}},y={'id':_0x19c031(0x18b),'type':_0x23bf96[_0x19c031(0x1b9)],'handler':(_0x8c02af,_0xaa503d)=>{const _0xe054ef=_0x19c031;if(!_0xaa503d)return!0x1;const {unitId:_0x195da4,subUnitId:_0x5afdde,ranges:_0x4eebdc,isSingle:_0x411775,groupIds:_0x40cc3b}=_0xaa503d,_0x58c3c2=_0x8c02af['get'](x);return _0x40cc3b?(_0x40cc3b[_0xe054ef(0x17b)](_0x3d6ed7=>{const _0x5ed892=_0xe054ef;_0x58c3c2[_0x5ed892(0x177)](_0x195da4,_0x5afdde,_0x3d6ed7);}),!0x0):_0x4eebdc?(_0x4eebdc[_0xe054ef(0x17b)](_0x1364a8=>{const _0x4787ec=_0xe054ef;_0x558206[_0x4787ec(0x13d)](_0x1364a8,(_0x23192e,_0x527197)=>{const _0x3ac231=_0x4787ec,_0x47f603=_0x58c3c2[_0x3ac231(0x184)](_0x195da4,_0x5afdde,_0x23192e,_0x527197);_0x47f603&&(_0x411775?_0x58c3c2[_0x3ac231(0x1bf)](_0x195da4,_0x5afdde,_0x23192e,_0x527197):_0x58c3c2[_0x3ac231(0x177)](_0x195da4,_0x5afdde,_0x47f603));});}),!0x0):!0x1;}},Nt={'id':_0x19c031(0x152),'type':_0x23bf96[_0x19c031(0x13b)],'handler':(_0x3a9fad,_0x37dde1)=>{const _0x37bc6a=_0x19c031;if(!_0x37dde1)return!0x1;const {sourceRanges:_0x390aa2,targetRanges:_0x217d69,config:_0x153351}=_0x37dde1,_0x121de0=_0x3a9fad['get'](_0x37b1df),_0x1eebbf='g_'+_0x25559d(0x6),_0x576808=Fe(_0x390aa2,_0x217d69),_0x3edcdb={'config':_0x153351!=null?_0x153351:{},'sparklines':_0x576808[_0x37bc6a(0x198)]()},_0x1f04ae=_0x3a9fad['get'](_0x5aa92b),_0x488bc2=_0x3a9fad[_0x37bc6a(0x15d)](x),_0x5099ba=_0x20a119(_0x1f04ae);if(!_0x5099ba)return!0x1;const {unitId:_0x44ba1e,subUnitId:_0x2a2652}=_0x5099ba,_0x4621f5=_0x3a9fad[_0x37bc6a(0x15d)](_0x47c4ee),_0x2bd731=[],_0x214d87=[],_0x2e54ab={},_0x3d5eb1={},_0xf7e9b=new Set([_0x1eebbf]);_0x576808['forValue']((_0x5b58ec,_0x134012,_0x1415dd)=>{const _0x3be5fb=_0x37bc6a,_0x54579d=_0x488bc2[_0x3be5fb(0x184)](_0x44ba1e,_0x2a2652,_0x5b58ec,_0x134012);if(_0x54579d){const _0x1cc930=_0x488bc2[_0x3be5fb(0x1e8)](_0x44ba1e,_0x2a2652,_0x54579d);if(_0x1cc930){_0xf7e9b['add'](_0x54579d);let _0x2f77d6=_0x2e54ab[_0x54579d],_0x1a3ae1=_0x3d5eb1[_0x54579d];_0x1a3ae1||(_0x1a3ae1={'config':_0x25f294[_0x3be5fb(0x1a0)](_0x1cc930['config']),'sparklines':new _0xf353c2(_0x1cc930[_0x3be5fb(0x158)][_0x3be5fb(0x1d7)]())},_0x3d5eb1[_0x54579d]=_0x1a3ae1),_0x2f77d6||(_0x2f77d6={'config':_0x25f294['deepClone'](_0x1cc930[_0x3be5fb(0x143)]),'sparklines':_0x1cc930['sparklines'][_0x3be5fb(0x1d7)]()},_0x2e54ab[_0x54579d]=_0x2f77d6),_0x1a3ae1[_0x3be5fb(0x158)][_0x3be5fb(0x1cd)](_0x5b58ec,_0x134012);}}});const _0x34a86d={};return Object['entries'](_0x3d5eb1)[_0x37bc6a(0x17b)](([_0x47e491,_0x468414])=>{const _0x44c8b6=_0x37bc6a;_0x468414[_0x44c8b6(0x158)]['getSizeOf']()&&(_0x34a86d[_0x47e491]={'config':_0x468414[_0x44c8b6(0x143)],'sparklines':_0x468414[_0x44c8b6(0x158)][_0x44c8b6(0x1d7)]()});}),_0x34a86d[_0x1eebbf]=_0x3edcdb,_0x2bd731[_0x37bc6a(0x17d)]({'id':y['id'],'params':{'unitId':_0x44ba1e,'subUnitId':_0x2a2652,'groupIds':Array['from'](_0xf7e9b),'isSingle':!0x1}}),_0xf7e9b[_0x37bc6a(0x151)]>0x1&&(_0x214d87[_0x37bc6a(0x17d)]({'id':y['id'],'params':{'unitId':_0x44ba1e,'subUnitId':_0x2a2652,'groupIds':Array[_0x37bc6a(0x19d)](_0xf7e9b),'isSingle':!0x1}}),_0x2bd731[_0x37bc6a(0x17d)]({'id':V['id'],'params':{'unitId':_0x44ba1e,'subUnitId':_0x2a2652,'sparklineConfigMap':_0x2e54ab}})),_0x214d87['push']({'id':V['id'],'params':{'unitId':_0x44ba1e,'subUnitId':_0x2a2652,'sparklineConfigMap':_0x34a86d}}),_0x47cdc9(_0x214d87,_0x4621f5),_0x121de0['pushUndoRedo']({'unitID':_0x44ba1e,'undoMutations':_0x2bd731,'redoMutations':_0x214d87}),!0x0;}},Ot={'id':_0x19c031(0x1c4),'type':_0x23bf96['COMMAND'],'handler':(_0xa96c3c,_0x1cac36)=>{const _0x51d230=_0x19c031;var _0x5eb8bc;const {isSingle:_0x1645c4=!0x0}=_0x1cac36||{},_0x4a9cc6=_0xa96c3c[_0x51d230(0x15d)](_0x47c4ee),_0x596c99=_0xa96c3c[_0x51d230(0x15d)](_0x5aa92b),_0x3471f2=_0xa96c3c[_0x51d230(0x15d)](x),_0x28f0f1=_0xa96c3c[_0x51d230(0x15d)](_0x37b1df),_0x397777=_0x20a119(_0x596c99);if(!_0x397777)return!0x1;const _0xba904d=_0xa96c3c[_0x51d230(0x15d)](_0x24d183),_0x2a1daf=(_0x5eb8bc=_0x1cac36==null?void 0x0:_0x1cac36['ranges'])!=null?_0x5eb8bc:_0xba904d['getCurrentSelections']()[_0x51d230(0x159)](_0x43c37d=>_0x43c37d[_0x51d230(0x1bb)]),{unitId:_0x9c17e9,subUnitId:_0x59ea29}=_0x397777,_0x1287b3=[],_0x93877e=[];_0x1287b3['push']({'id':y['id'],'params':{'unitId':_0x9c17e9,'subUnitId':_0x59ea29,'ranges':_0x2a1daf,'isSingle':_0x1645c4}});const _0x2453f3=[],_0x5611e2={};return _0x2a1daf[_0x51d230(0x17b)](_0x368890=>{const _0x314765=_0x51d230;_0x558206[_0x314765(0x13d)](_0x368890,(_0x4cd4c7,_0x198d8d)=>{const _0xb47255=_0x314765,_0x288f9a=_0x3471f2['getSparkline'](_0x9c17e9,_0x59ea29,_0x4cd4c7,_0x198d8d);if(_0x288f9a){const _0x779d2=_0x3471f2[_0xb47255(0x1e8)](_0x9c17e9,_0x59ea29,_0x288f9a);_0x779d2&&(_0x2453f3['push'](_0x288f9a),_0x5611e2[_0x288f9a]={'config':_0x25f294[_0xb47255(0x1a0)](_0x779d2[_0xb47255(0x143)]),'sparklines':_0x25f294[_0xb47255(0x1a0)](_0x779d2[_0xb47255(0x158)]['clone']())});}});}),_0x93877e[_0x51d230(0x17d)]({'id':y['id'],'params':{'unitId':_0x9c17e9,'subUnitId':_0x59ea29,'groupIds':_0x2453f3,'isSingle':!0x1}}),_0x93877e[_0x51d230(0x17d)]({'id':V['id'],'params':{'unitId':_0x9c17e9,'subUnitId':_0x59ea29,'sparklineConfigMap':_0x5611e2}}),_0x47cdc9(_0x1287b3,_0x4a9cc6),_0x28f0f1[_0x51d230(0x1ce)]({'unitID':_0x9c17e9,'undoMutations':_0x93877e,'redoMutations':_0x1287b3}),!0x0;}},Oe={'id':_0x19c031(0x163),'type':_0x23bf96[_0x19c031(0x1b9)],'handler':(_0x497132,_0x5d6408)=>{const _0x563f95=_0x19c031;if(!_0x5d6408)return!0x1;const {unitId:_0x3077f9,subUnitId:_0x3ae181,groupIds:_0x372833,config:_0x4500e9}=_0x5d6408,_0x320d98=_0x497132[_0x563f95(0x15d)](x);return _0x372833[_0x563f95(0x17b)](_0x243f0d=>{const _0x201a6a=_0x563f95,_0x14bace=_0x320d98[_0x201a6a(0x1e8)](_0x3077f9,_0x3ae181,_0x243f0d);if(_0x14bace){const _0x5eaddf={'config':Object['assign']({},_0x14bace[_0x201a6a(0x143)],_0x4500e9[_0x201a6a(0x143)]),'sparklines':new _0xf353c2(_0x14bace['sparklines']['clone']())};_0x320d98[_0x201a6a(0x195)](_0x3077f9,_0x3ae181,[_0x243f0d],_0x5eaddf);}}),!0x0;}},xt={'id':_0x19c031(0x140),'type':_0x23bf96[_0x19c031(0x13b)],'handler':(_0x469926,_0xeb5159)=>{const _0x408390=_0x19c031;var _0x40e700,_0x1dabdd,_0x4ee282,_0x1f4ad8;if(!_0xeb5159)return!0x1;const _0x37df9a=_0x469926[_0x408390(0x15d)](_0x47c4ee),_0x2a2217=_0x469926[_0x408390(0x15d)](_0x24d183),_0x47d573=_0x469926[_0x408390(0x15d)](x),_0xb401df=_0x469926[_0x408390(0x15d)](_0x5aa92b),_0x8fbd9e=_0x469926[_0x408390(0x15d)](_0x37b1df),_0x334451=_0x20a119(_0xb401df);if(!_0x334451)return!0x1;const {unitId:_0x158caa,subUnitId:_0x485826}=_0x334451,_0x64d906=(_0x40e700=_0xeb5159==null?void 0x0:_0xeb5159[_0x408390(0x1c5)])!=null?_0x40e700:_0x2a2217[_0x408390(0x150)]()[_0x408390(0x159)](_0x1bd7a6=>_0x1bd7a6[_0x408390(0x1bb)]),_0x4ff9a7=(_0x1dabdd=_0x47d573[_0x408390(0x174)]()['sparklineAnchorMap'][_0x408390(0x15d)](_0x158caa))==null?void 0x0:_0x1dabdd['get'](_0x485826),{isChangeDataSource:_0x8f19c4,config:_0x2a4c4d,combine:_0x1a9184,unCombine:_0x2b274c}=_0xeb5159;if(_0x1a9184){const _0x5639a7=[],_0x34236f=[];_0x5639a7[_0x408390(0x17d)]({'id':y['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'ranges':_0x64d906,'isSingle':!0x0}});const _0x33647c='g_'+_0x25559d(0x6),_0x1c4134=new _0xf353c2(),_0x5c010b=(_0x4ee282=_0x47d573[_0x408390(0x174)]()[_0x408390(0x14d)]['get'](_0x158caa))==null?void 0x0:_0x4ee282[_0x408390(0x15d)](_0x485826),_0x183ce5=new Set([_0x33647c]),_0x43df04={};return _0x64d906['forEach'](_0x501cf4=>{const _0x21af9a=_0x408390;var _0x3f51c6,_0x539f98;const {startRow:_0x3e073a,endRow:_0x3f18aa,startColumn:_0xe63a1a,endColumn:_0x9751fe}=_0x501cf4;for(let _0x22ff54=_0x3e073a;_0x22ff54<=_0x3f18aa;_0x22ff54++)for(let _0x30ace0=_0xe63a1a;_0x30ace0<=_0x9751fe;_0x30ace0++){const _0x1b690=(_0x3f51c6=_0x4ff9a7==null?void 0x0:_0x4ff9a7[_0x21af9a(0x1f1)]['getValue'](_0x22ff54,_0x30ace0))==null?void 0x0:_0x3f51c6[_0x21af9a(0x183)];if(_0x1b690){_0x183ce5[_0x21af9a(0x138)](_0x1b690);const _0x8bcff=_0x47d573[_0x21af9a(0x1e8)](_0x158caa,_0x485826,_0x1b690);_0x8bcff&&(_0x43df04[_0x1b690]={'config':_0x25f294[_0x21af9a(0x1a0)](_0x8bcff[_0x21af9a(0x143)]),'sparklines':_0x25f294[_0x21af9a(0x1a0)](_0x8bcff[_0x21af9a(0x158)][_0x21af9a(0x1d7)]())});const _0x17e48c=(_0x539f98=_0x5c010b==null?void 0x0:_0x5c010b[_0x21af9a(0x15d)](_0x1b690))==null?void 0x0:_0x539f98[_0x21af9a(0x158)]['getValue'](_0x22ff54,_0x30ace0);_0x17e48c&&_0x1c4134[_0x21af9a(0x1c8)](_0x22ff54,_0x30ace0,_0x17e48c);}}}),_0x5639a7[_0x408390(0x17d)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x33647c]:{'config':_0x25f294[_0x408390(0x1a0)](_0x2a4c4d[_0x408390(0x143)]),'sparklines':_0x1c4134[_0x408390(0x198)]()}},'unitId':_0x158caa,'subUnitId':_0x485826}}),_0x34236f[_0x408390(0x17d)]({'id':y['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'isSingle':!0x1,'groupIds':Array[_0x408390(0x19d)](_0x183ce5)}}),_0x34236f[_0x408390(0x17d)]({'id':V['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'sparklineConfigMap':_0x43df04}}),_0x47cdc9(_0x5639a7,_0x37df9a),_0x8fbd9e['pushUndoRedo']({'unitID':_0x158caa,'undoMutations':_0x34236f,'redoMutations':_0x5639a7}),!0x0;}else{if(_0x2b274c){const _0x32e0ad=[],_0x423d56=[];_0x32e0ad[_0x408390(0x17d)]({'id':y['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'ranges':_0x64d906,'isSingle':!0x0}});const _0x235be0=(_0x1f4ad8=_0x47d573[_0x408390(0x174)]()[_0x408390(0x14d)][_0x408390(0x15d)](_0x158caa))==null?void 0x0:_0x1f4ad8[_0x408390(0x15d)](_0x485826),_0x252006={},_0x88de30=new Set(),_0x1b1714={};return _0x64d906['forEach'](_0xe945c5=>{const _0x2710f9=_0x408390;var _0x5682e8,_0x1fc350;const {startRow:_0x366c89,endRow:_0x5750e6,startColumn:_0x2eb4a6,endColumn:_0x4ddf97}=_0xe945c5;for(let _0x2b6c8c=_0x366c89;_0x2b6c8c<=_0x5750e6;_0x2b6c8c++)for(let _0x227ee6=_0x2eb4a6;_0x227ee6<=_0x4ddf97;_0x227ee6++){const _0x1141d4=(_0x5682e8=_0x4ff9a7==null?void 0x0:_0x4ff9a7[_0x2710f9(0x1f1)][_0x2710f9(0x1d6)](_0x2b6c8c,_0x227ee6))==null?void 0x0:_0x5682e8['groupId'];if(_0x1141d4){const _0x5d6f48=new _0xf353c2(),_0x23c6f0='g_'+_0x25559d(0x6);_0x88de30['add'](_0x1141d4),_0x88de30['add'](_0x23c6f0);const _0x36533f=_0x47d573['getSparklineById'](_0x158caa,_0x485826,_0x1141d4);_0x36533f&&(_0x1b1714[_0x1141d4]={'config':_0x25f294[_0x2710f9(0x1a0)](_0x36533f[_0x2710f9(0x143)]),'sparklines':_0x25f294[_0x2710f9(0x1a0)](_0x36533f[_0x2710f9(0x158)][_0x2710f9(0x1d7)]())});const _0x456f52=(_0x1fc350=_0x235be0==null?void 0x0:_0x235be0[_0x2710f9(0x15d)](_0x1141d4))==null?void 0x0:_0x1fc350['sparklines'][_0x2710f9(0x1d6)](_0x2b6c8c,_0x227ee6);_0x456f52&&_0x5d6f48[_0x2710f9(0x1c8)](_0x2b6c8c,_0x227ee6,_0x456f52),_0x252006[_0x23c6f0]={'sparklines':_0x5d6f48[_0x2710f9(0x198)](),'config':_0x25f294[_0x2710f9(0x1a0)](_0x2a4c4d['config'])};}}}),_0x32e0ad[_0x408390(0x17d)]({'id':V['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'sparklineConfigMap':_0x252006}}),_0x423d56['push']({'id':y['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'isSingle':!0x1,'groupIds':Array['from'](_0x88de30)}}),_0x423d56['push']({'id':V['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'sparklineConfigMap':_0x1b1714}}),_0x47cdc9(_0x32e0ad,_0x37df9a),_0x8fbd9e['pushUndoRedo']({'unitID':_0x158caa,'undoMutations':_0x423d56,'redoMutations':_0x32e0ad}),!0x0;}}if(_0x8f19c4){const _0x4c8a8b=_0xeb5159[_0x408390(0x1ec)];if(!_0x4c8a8b)return!0x1;const {groupId:_0x3eca61,sourceRanges:_0x33c54a,targetRanges:_0x34e329,resetType:_0x1b436e,primary:_0x5ba6ad}=_0x4c8a8b,_0x10185b=[],_0x2f0228=[];_0x10185b[_0x408390(0x17d)]({'id':y['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'ranges':_0x64d906,'isSingle':!0x1,'groupIds':[_0x3eca61]}}),_0x2f0228[_0x408390(0x17d)]({'id':y['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'ranges':_0x64d906,'isSingle':!0x1,'groupIds':[_0x3eca61]}});let _0x1374fc;_0x1b436e==='item'?(_0x1374fc=new _0xf353c2(_0x2a4c4d[_0x408390(0x158)][_0x408390(0x1d7)]()),_0x1374fc[_0x408390(0x1cd)](_0x5ba6ad[_0x408390(0x16b)],_0x5ba6ad[_0x408390(0x1a1)]),_0x1374fc[_0x408390(0x1c8)](_0x34e329[0x0][_0x408390(0x17c)],_0x34e329[0x0][_0x408390(0x176)],_0x33c54a[0x0])):_0x1374fc=Fe(_0x33c54a,_0x34e329);const _0x56bb7d={'config':_0x25f294[_0x408390(0x1a0)](_0x2a4c4d['config']),'sparklines':_0x1374fc[_0x408390(0x198)]()},_0x1a2096={'config':_0x25f294[_0x408390(0x1a0)](_0x2a4c4d[_0x408390(0x143)]),'sparklines':_0x25f294[_0x408390(0x1a0)](_0x2a4c4d[_0x408390(0x158)][_0x408390(0x1d7)]())};_0x10185b['push']({'id':V['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'sparklineConfigMap':{[_0x3eca61]:_0x56bb7d}}}),_0x2f0228[_0x408390(0x17d)]({'id':V['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'sparklineConfigMap':{[_0x3eca61]:_0x1a2096}}}),_0x47cdc9(_0x10185b,_0x37df9a),_0x8fbd9e[_0x408390(0x1ce)]({'unitID':_0x158caa,'undoMutations':_0x2f0228,'redoMutations':_0x10185b});}else{const _0x2f6f41=[],_0x5c8b1f=[],_0x376f9f=new Set(),_0x22afda={};_0x64d906[_0x408390(0x17b)](_0x4995ee=>{const _0x5b722c=_0x408390;var _0x575229;const {startRow:_0x3d74ca,endRow:_0x280047,startColumn:_0x193fb2,endColumn:_0x5e1f87}=_0x4995ee;for(let _0x14aad8=_0x3d74ca;_0x14aad8<=_0x280047;_0x14aad8++)for(let _0x4d4589=_0x193fb2;_0x4d4589<=_0x5e1f87;_0x4d4589++){const _0x29d7cd=(_0x575229=_0x4ff9a7==null?void 0x0:_0x4ff9a7['matrix'][_0x5b722c(0x1d6)](_0x14aad8,_0x4d4589))==null?void 0x0:_0x575229[_0x5b722c(0x183)];if(_0x29d7cd){_0x376f9f['add'](_0x29d7cd);const _0x1774c4=_0x47d573[_0x5b722c(0x1e8)](_0x158caa,_0x485826,_0x29d7cd);_0x1774c4&&(_0x22afda[_0x29d7cd]={'config':_0x25f294[_0x5b722c(0x1a0)](_0x1774c4[_0x5b722c(0x143)]),'sparklines':_0x25f294['deepClone'](_0x1774c4[_0x5b722c(0x158)][_0x5b722c(0x1d7)]())});}}}),_0x5c8b1f[_0x408390(0x17d)]({'id':Oe['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'groupIds':Array[_0x408390(0x19d)](_0x376f9f),'config':{'config':_0x25f294[_0x408390(0x1a0)](_0x2a4c4d['config']),'sparklines':_0x2a4c4d['sparklines']['getMatrix']()}}}),_0x2f6f41[_0x408390(0x17d)]({'id':y['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'isSingle':!0x1,'groupIds':Array[_0x408390(0x19d)](_0x376f9f)}}),_0x2f6f41['push']({'id':V['id'],'params':{'unitId':_0x158caa,'subUnitId':_0x485826,'sparklineConfigMap':_0x22afda}}),_0x47cdc9(_0x5c8b1f,_0x37df9a),_0x8fbd9e[_0x408390(0x1ce)]({'unitID':_0x158caa,'undoMutations':_0x2f6f41,'redoMutations':_0x5c8b1f});}return!0x0;}};var Ut=Object[_0x19c031(0x17e)],Pt=(_0x13f4d2,_0x2d39ad,_0x3a03af,_0x9a123f)=>{const _0x2a2b9b=_0x19c031;for(var _0x3c15fc=_0x9a123f>0x1?void 0x0:_0x9a123f?Ut(_0x2d39ad,_0x3a03af):_0x2d39ad,_0xeccd7f=_0x13f4d2[_0x2a2b9b(0x1cc)]-0x1,_0x3e5e77;_0xeccd7f>=0x0;_0xeccd7f--)(_0x3e5e77=_0x13f4d2[_0xeccd7f])&&(_0x3c15fc=_0x3e5e77(_0x3c15fc)||_0x3c15fc);return _0x3c15fc;},fe=(_0x56fba7,_0x56cff8)=>(_0x30aa5a,_0x1febbf)=>_0x56cff8(_0x30aa5a,_0x1febbf,_0x56fba7);let Se=class extends _0x364334{constructor(_0x3944bf,_0x350d68,_0x369280,_0x394288){const _0x55da7a=_0x19c031;super(),this[_0x55da7a(0x1b8)]=_0x3944bf,this[_0x55da7a(0x1e9)]=_0x350d68,this['_univerInstanceService']=_0x369280,this['_sheetSelectionService']=_0x394288,this[_0x55da7a(0x1f0)]();}['_initClearWithSparkline'](){const _0x421273=_0x19c031;this[_0x421273(0x1b3)](this['_sheetInterceptorService'][_0x421273(0x179)]({'getMutations':_0x56e30f=>{const _0x52d5a2=_0x421273,_0x4289f1=[],_0x192d27=[];if(_0x56e30f['id']===_0x8aa8ad['id']){const _0x12075c=_0x20a119(this[_0x52d5a2(0x199)]);if(!_0x12075c)return{'redos':_0x4289f1,'undos':_0x192d27};const {unitId:_0x4a429d,subUnitId:_0x2c89f5,worksheet:_0x471929}=_0x12075c,_0x17cd65=this[_0x52d5a2(0x1cb)][_0x52d5a2(0x150)]()[_0x52d5a2(0x159)](_0x46de60=>_0x46de60['range']),_0x6b80d8=new Set(),_0x5358e1={},_0x49e167={};_0x17cd65['forEach'](_0x117fad=>{const _0x13933b=_0x52d5a2;_0x558206[_0x13933b(0x13d)](_0x117fad,(_0x5e7003,_0x4d6596)=>{const _0x279cf7=_0x13933b,_0x3d8ad6=this['_sparklineDataSourceModel']['getSparkline'](_0x4a429d,_0x2c89f5,_0x5e7003,_0x4d6596);if(_0x3d8ad6&&!_0x6b80d8[_0x279cf7(0x1ac)](_0x3d8ad6)){const _0xae45ae=this[_0x279cf7(0x1b8)][_0x279cf7(0x1e8)](_0x4a429d,_0x2c89f5,_0x3d8ad6);_0xae45ae&&(_0x6b80d8['add'](_0x3d8ad6),_0x5358e1[_0x3d8ad6]={'config':_0x25f294['deepClone'](_0xae45ae[_0x279cf7(0x143)]),'sparklines':_0x25f294[_0x279cf7(0x1a0)](_0xae45ae['sparklines'][_0x279cf7(0x1d7)]())},_0x49e167[_0x3d8ad6]={'config':_0x25f294[_0x279cf7(0x1a0)](_0xae45ae[_0x279cf7(0x143)]),'sparklines':_0x25f294[_0x279cf7(0x1a0)](_0xae45ae[_0x279cf7(0x158)]['clone']())});}});}),Object[_0x52d5a2(0x14b)](_0x49e167)[_0x52d5a2(0x17b)](_0x418f9e=>{const _0x118047=_0x52d5a2,_0x22f607=_0x418f9e[_0x118047(0x158)];new _0xf353c2(_0x22f607)['forValue']((_0x206d6e,_0x453322,_0x2500a7)=>{const _0xec910a=_0x118047;_0x17cd65[_0xec910a(0x196)](_0xe911c3=>_0x4fc423[_0xec910a(0x190)](_0xe911c3,_0x590db2(_0x206d6e,_0x453322)))&&delete _0x22f607[_0x206d6e][_0x453322];});}),_0x4289f1[_0x52d5a2(0x17d)]({'id':y['id'],'params':{'unitId':_0x4a429d,'subUnitId':_0x2c89f5,'groupIds':Array[_0x52d5a2(0x19d)](_0x6b80d8),'isSingle':!0x1}}),_0x4289f1[_0x52d5a2(0x17d)]({'id':V['id'],'params':{'unitId':_0x4a429d,'subUnitId':_0x2c89f5,'sparklineConfigMap':_0x49e167}}),_0x192d27['push']({'id':y['id'],'params':{'unitId':_0x4a429d,'subUnitId':_0x2c89f5,'groupIds':Array[_0x52d5a2(0x19d)](_0x6b80d8),'isSingle':!0x1}}),_0x192d27[_0x52d5a2(0x17d)]({'id':V['id'],'params':{'unitId':_0x4a429d,'subUnitId':_0x2c89f5,'sparklineConfigMap':_0x5358e1}});}return{'redos':_0x4289f1,'undos':_0x192d27};}}));}};Se=Pt([fe(0x0,_0x23d78c(x)),fe(0x1,_0x23d78c(_0x1710a3)),fe(0x2,_0x23d78c(_0x5aa92b)),fe(0x3,_0x23d78c(_0x24d183))],Se);var Tt=Object[_0x19c031(0x17e)],$t=(_0x271a89,_0x3d297c,_0x50581b,_0xe6584a)=>{const _0x57fc51=_0x19c031;for(var _0x139c92=_0xe6584a>0x1?void 0x0:_0xe6584a?Tt(_0x3d297c,_0x50581b):_0x3d297c,_0x8e2274=_0x271a89[_0x57fc51(0x1cc)]-0x1,_0x4c1aab;_0x8e2274>=0x0;_0x8e2274--)(_0x4c1aab=_0x271a89[_0x8e2274])&&(_0x139c92=_0x4c1aab(_0x139c92)||_0x139c92);return _0x139c92;},Ge=(_0x1358fe,_0x18f9bf)=>(_0x544b44,_0x1cb8ab)=>_0x18f9bf(_0x544b44,_0x1cb8ab,_0x1358fe);let ke=class extends _0x364334{constructor(_0x21042a,_0x102d94){const _0x53a87e=_0x19c031;super(),this[_0x53a87e(0x1e9)]=_0x21042a,this[_0x53a87e(0x1b8)]=_0x102d94,this[_0x53a87e(0x1db)]();}[_0x19c031(0x1db)](){const _0x39d593=_0x19c031;this[_0x39d593(0x1b3)](this['_sheetInterceptorService'][_0x39d593(0x179)]({'getMutations':_0x1599ab=>{const _0x44bf01=_0x39d593,_0x3b984d=[],_0x246acc=[];if(_0x1599ab['id']===_0x2b54e7['id']){const _0x10f52f=_0x1599ab[_0x44bf01(0x1c1)];if(!_0x10f52f)return{'redos':_0x3b984d,'undos':_0x246acc};const {unitId:_0x5447ec,subUnitId:_0x23b82b,targetSubUnitId:_0xd9c4ff}=_0x10f52f;if(!_0x5447ec||!_0x23b82b||!_0xd9c4ff)return{'redos':_0x3b984d,'undos':_0x246acc};const _0x48fd46=new Set(),_0x1c03c7={},_0x4fa505=this[_0x44bf01(0x1b8)][_0x44bf01(0x169)](_0x5447ec,_0x23b82b);if(!_0x4fa505)return{'redos':_0x3b984d,'undos':_0x246acc};for(const [_0x451343,_0x3a47fc]of _0x4fa505){const _0x177b9c='g_'+_0x25559d(0x6);_0x48fd46[_0x44bf01(0x138)](_0x451343),_0x1c03c7[_0x177b9c]={'config':_0x25f294[_0x44bf01(0x1a0)](_0x3a47fc['config']),'sparklines':_0x25f294['deepClone'](_0x3a47fc['sparklines'][_0x44bf01(0x1d7)]())};}_0x48fd46[_0x44bf01(0x151)]&&(_0x246acc[_0x44bf01(0x17d)]({'id':y['id'],'params':{'unitId':_0x5447ec,'subUnitId':_0xd9c4ff,'groupIds':Array['from'](_0x48fd46),'isSingle':!0x1}}),_0x3b984d[_0x44bf01(0x17d)]({'id':V['id'],'params':{'unitId':_0x5447ec,'subUnitId':_0xd9c4ff,'sparklineConfigMap':_0x1c03c7}}));}return{'redos':_0x3b984d,'undos':_0x246acc};}}));}};ke=$t([Ge(0x0,_0x23d78c(_0x1710a3)),Ge(0x1,_0x23d78c(x))],ke);var jt=Object[_0x19c031(0x17e)],Lt=(_0x4d3e98,_0x478787,_0x5deb54,_0x3c4d96)=>{const _0x4fd19c=_0x19c031;for(var _0x2e8c71=_0x3c4d96>0x1?void 0x0:_0x3c4d96?jt(_0x478787,_0x5deb54):_0x478787,_0x14718f=_0x4d3e98[_0x4fd19c(0x1cc)]-0x1,_0x2b4d7b;_0x14718f>=0x0;_0x14718f--)(_0x2b4d7b=_0x4d3e98[_0x14718f])&&(_0x2e8c71=_0x2b4d7b(_0x2e8c71)||_0x2e8c71);return _0x2e8c71;},Ie=(_0x229a4d,_0x23cabc)=>(_0x22c470,_0x1b839d)=>_0x23cabc(_0x22c470,_0x1b839d,_0x229a4d);let me=class extends _0x364334{constructor(_0x151aef,_0x13d6e5,_0x51fc72){const _0x398da0=_0x19c031;super(),this[_0x398da0(0x15e)]=_0x151aef,this[_0x398da0(0x1b8)]=_0x13d6e5,this['_exclusiveRangeService']=_0x51fc72,this[_0x398da0(0x14e)](),this[_0x398da0(0x19e)]();}[_0x19c031(0x14e)](){const _0x3fa62=_0x19c031;this[_0x3fa62(0x1b3)](this[_0x3fa62(0x15e)][_0x3fa62(0x136)](_0x5e58b1=>{const _0x408d9c=_0x3fa62;if(_0x5e58b1['id']===_0x12e868['id']){const _0x37861b=_0x5e58b1['params'],{cellValue:_0x14f348,unitId:_0xc3ee66,subUnitId:_0x2cb160}=_0x37861b,_0x30e6eb=new _0xf353c2(_0x14f348),_0x49cff6=new Set(),_0x535a85=this[_0x408d9c(0x1b8)][_0x408d9c(0x169)](_0xc3ee66,_0x2cb160);if(!_0x535a85)return;const _0x41bd19=Array[_0x408d9c(0x19d)](_0x535a85);_0x30e6eb['forValue']((_0x3454c2,_0x281af4,_0x43c3d6)=>{const _0x5bd99a=_0x408d9c,_0x35e69e=_0x590db2(_0x3454c2,_0x281af4);for(let _0x425730=0x0;_0x425730<_0x41bd19[_0x5bd99a(0x1cc)];_0x425730++){const [_0x462f5e,_0x21195a]=_0x41bd19[_0x425730],_0x2b8c32=_0x49cff6[_0x5bd99a(0x1ac)](_0x462f5e);_0x2b8c32||_0x21195a[_0x5bd99a(0x158)][_0x5bd99a(0x15c)]((_0x271722,_0x4fa037,_0xfca9ca)=>{const _0x1d5aff=_0x5bd99a,_0x1a1b44=_0xfca9ca;if(_0x1a1b44&&!_0x2b8c32&&_0x4fc423['intersects'](_0x35e69e,_0x1a1b44))return _0x49cff6[_0x1d5aff(0x138)](_0x462f5e),!0x0;});}}),_0x49cff6['forEach'](_0x150724=>{const _0x15f7da=_0x408d9c;this[_0x15f7da(0x1b8)][_0x15f7da(0x1e0)](_0xc3ee66,_0x2cb160,_0x150724),this[_0x15f7da(0x1b8)][_0x15f7da(0x1cf)](_0xc3ee66,_0x2cb160,_0x150724);});}else{if(_0x5e58b1['id']===_0x189a3e['id']){const _0x172363=_0x5e58b1['params'],{range:_0x5cdd52,unitId:_0x1766bc,subUnitId:_0x1a0505}=_0x172363,_0x5afbe1=new Set(),_0x5f13a9=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x1766bc,_0x1a0505);if(!_0x5f13a9)return;const _0x1062e8=Array[_0x408d9c(0x19d)](_0x5f13a9);for(let _0x306893=0x0;_0x306893<_0x1062e8['length'];_0x306893++){const [_0x2f1dca,_0x40e43c]=_0x1062e8[_0x306893],_0x148371=_0x5afbe1[_0x408d9c(0x1ac)](_0x2f1dca);_0x148371||_0x40e43c[_0x408d9c(0x158)][_0x408d9c(0x15c)]((_0x1dcf7b,_0x111d4d,_0x587b24)=>{const _0x5cc14e=_0x408d9c,_0xe09304=_0x587b24;if(_0xe09304&&!_0x148371&&_0x4fc423[_0x5cc14e(0x190)](_0x5cdd52,_0xe09304))return _0x5afbe1[_0x5cc14e(0x138)](_0x2f1dca),!0x0;});}_0x5afbe1[_0x408d9c(0x17b)](_0x2aa7a7=>{const _0x248149=_0x408d9c;this[_0x248149(0x1b8)]['clearSparklineCache'](_0x1766bc,_0x1a0505,_0x2aa7a7),this[_0x248149(0x1b8)][_0x248149(0x1cf)](_0x1766bc,_0x1a0505,_0x2aa7a7);});}}}));}['_initExclusiveRangeChange'](){const _0x240343=_0x19c031;this[_0x240343(0x1b3)](this[_0x240343(0x175)][_0x240343(0x178)][_0x240343(0x13c)](_0x11ed2b=>{const _0x93299b=_0x240343,{unitId:_0x29da9f,subUnitId:_0x55ddef,ranges:_0x3ce865}=_0x11ed2b,_0x279dc8=this[_0x93299b(0x1b8)][_0x93299b(0x169)](_0x29da9f,_0x55ddef);if(!_0x279dc8)return;const _0x5f2539=Array[_0x93299b(0x19d)](_0x279dc8),_0x26e12b=new Set();for(let _0x5c6c78=0x0;_0x5c6c78<_0x5f2539[_0x93299b(0x1cc)];_0x5c6c78++){const [_0x56e391,_0x587926]=_0x5f2539[_0x5c6c78],_0x33735c=_0x26e12b[_0x93299b(0x1ac)](_0x56e391);_0x33735c||_0x587926['sparklines'][_0x93299b(0x15c)]((_0x2ae2b1,_0xdeeffd,_0x448aa4)=>{const _0x142215=_0x93299b,_0x917330=_0x448aa4;if(_0x917330&&!_0x33735c){for(const _0x301365 of _0x3ce865)if(_0x4fc423[_0x142215(0x190)](_0x301365,_0x917330)){_0x26e12b[_0x142215(0x138)](_0x56e391);break;}}});}_0x26e12b[_0x93299b(0x17b)](_0x171d2f=>{const _0x17b51e=_0x93299b;this['_sparklineDataSourceModel'][_0x17b51e(0x1e0)](_0x29da9f,_0x55ddef,_0x171d2f),this[_0x17b51e(0x1b8)]['updateSparklineExtraNum'](_0x29da9f,_0x55ddef,_0x171d2f);});}));}};me=Lt([Ie(0x0,_0x23d78c(_0x47c4ee)),Ie(0x1,_0x23d78c(x)),Ie(0x2,_0x23d78c(_0x779793))],me);var Gt=Object[_0x19c031(0x17e)],Wt=(_0x43428d,_0x5031a7,_0x2e53ad,_0x273e77)=>{for(var _0x2f2541=_0x273e77>0x1?void 0x0:_0x273e77?Gt(_0x5031a7,_0x2e53ad):_0x5031a7,_0xf96aaa=_0x43428d['length']-0x1,_0x3475df;_0xf96aaa>=0x0;_0xf96aaa--)(_0x3475df=_0x43428d[_0xf96aaa])&&(_0x2f2541=_0x3475df(_0x2f2541)||_0x2f2541);return _0x2f2541;},We=(_0x191d5c,_0x9a50c)=>(_0x3698b8,_0xe4b847)=>_0x9a50c(_0x3698b8,_0xe4b847,_0x191d5c);let Ce=class extends _0x364334{constructor(_0xc04e27,_0x51e0f8){const _0x293ae0=_0x19c031;super(),this[_0x293ae0(0x15e)]=_0xc04e27,this[_0x293ae0(0x1b8)]=_0x51e0f8,this['_initHideRowColWithSparkline']();}[_0x19c031(0x1bc)](){const _0x22405e=_0x19c031;this[_0x22405e(0x15e)]['onCommandExecuted'](_0xc24873=>{const _0x398900=_0x22405e;if(_0xc24873['id']===_0x52559d['id']||_0xc24873['id']===_0x30fca6['id']||_0xc24873['id']===_0x4daa4c['id']||_0xc24873['id']===_0x146dd3['id']){const _0x59aac1=_0xc24873['params'],{ranges:_0x3602f5,unitId:_0x2acc45,subUnitId:_0x1a643d}=_0x59aac1,_0x1681cd=new Set(),_0x4390cd=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x2acc45,_0x1a643d);if(!_0x4390cd)return;const _0xcaa75f=Array[_0x398900(0x19d)](_0x4390cd);_0x3602f5[_0x398900(0x17b)](_0x34281e=>{const _0x2ac8cc=_0x398900;_0x558206[_0x2ac8cc(0x13d)](_0x34281e,(_0x7ce6eb,_0xab1c80)=>{const _0x36a7bc=_0x2ac8cc,_0x4576e8=_0x590db2(_0x7ce6eb,_0xab1c80);for(let _0x1aa83a=0x0;_0x1aa83a<_0xcaa75f[_0x36a7bc(0x1cc)];_0x1aa83a++){const [_0x430e54,_0x124161]=_0xcaa75f[_0x1aa83a],_0x3d621=_0x1681cd[_0x36a7bc(0x1ac)](_0x430e54);_0x3d621||_0x124161[_0x36a7bc(0x158)][_0x36a7bc(0x15c)]((_0x410fb8,_0x2bd795,_0x521ee4)=>{const _0x5456c2=_0x36a7bc,_0x55c42d=_0x521ee4;if(_0x55c42d&&!_0x3d621&&_0x4fc423[_0x5456c2(0x190)](_0x4576e8,_0x55c42d))return _0x1681cd[_0x5456c2(0x138)](_0x430e54),!0x0;});}});}),_0x1681cd['forEach'](_0x141a2a=>{const _0x2068b3=_0x398900;this[_0x2068b3(0x1b8)]['clearSparklineCache'](_0x2acc45,_0x1a643d,_0x141a2a),this[_0x2068b3(0x1b8)][_0x2068b3(0x1cf)](_0x2acc45,_0x1a643d,_0x141a2a);});}});}};Ce=Wt([We(0x0,_0x23d78c(_0x47c4ee)),We(0x1,_0x23d78c(x))],Ce);var Bt=Object[_0x19c031(0x17e)],Ht=(_0x1832d2,_0x420934,_0x240760,_0x12c5d8)=>{for(var _0x5e8b5f=_0x12c5d8>0x1?void 0x0:_0x12c5d8?Bt(_0x420934,_0x240760):_0x420934,_0x26548a=_0x1832d2['length']-0x1,_0x1530f5;_0x26548a>=0x0;_0x26548a--)(_0x1530f5=_0x1832d2[_0x26548a])&&(_0x5e8b5f=_0x1530f5(_0x5e8b5f)||_0x5e8b5f);return _0x5e8b5f;},be=(_0x1aca48,_0x19e342)=>(_0x3be386,_0x31b141)=>_0x19e342(_0x3be386,_0x31b141,_0x1aca48);let _e=class extends _0x364334{constructor(_0x3018b3,_0x3c5c23,_0x5ca278){const _0x5475bb=_0x19c031;super(),this[_0x5475bb(0x15e)]=_0x3018b3,this[_0x5475bb(0x1e9)]=_0x3c5c23,this['_sparklineDataSourceModel']=_0x5ca278,this[_0x5475bb(0x13e)]();}['_initMergeWithSparkline'](){const _0x11b853=_0x19c031;this[_0x11b853(0x1b3)](this['_sheetInterceptorService'][_0x11b853(0x179)]({'getMutations':_0xaf3949=>{const _0x514348=_0x11b853,_0x168e49=[],_0x31033c=[];if(_0xaf3949['id']===_0x31fc9a['id']){const _0xb9b7f7=_0xaf3949[_0x514348(0x1c1)];if(!_0xb9b7f7)return{'redos':_0x168e49,'undos':_0x31033c};const {unitId:_0x233ebf,subUnitId:_0xbfc981,ranges:_0x269bc7}=_0xb9b7f7,_0x3fcc06=this[_0x514348(0x1b8)][_0x514348(0x169)](_0x233ebf,_0xbfc981);if(!_0x3fcc06)return{'redos':_0x168e49,'undos':_0x31033c};const _0x48ec92={},_0x12b738={},_0x231efa=new Set();_0x269bc7[_0x514348(0x17b)](_0x12824b=>{const _0x2db7ec=_0x514348,_0x43b3be=_0x12824b[_0x2db7ec(0x17c)],_0xfd3938=_0x12824b['startColumn'];_0x558206[_0x2db7ec(0x13d)](_0x12824b,(_0x2d1d37,_0x844fc3)=>{const _0x4ae295=_0x2db7ec,_0x85e9d1=this[_0x4ae295(0x1b8)][_0x4ae295(0x184)](_0x233ebf,_0xbfc981,_0x2d1d37,_0x844fc3);if(_0x85e9d1&&!(_0x2d1d37===_0x43b3be&&_0x844fc3===_0xfd3938)){const _0x12a884=this[_0x4ae295(0x1b8)][_0x4ae295(0x1e8)](_0x233ebf,_0xbfc981,_0x85e9d1);if(_0x12a884){_0x231efa[_0x4ae295(0x138)](_0x85e9d1);let _0x5e9d4b=_0x48ec92[_0x85e9d1];_0x5e9d4b||(_0x5e9d4b={'config':_0x25f294[_0x4ae295(0x1a0)](_0x12a884['config']),'sparklines':new _0xf353c2(_0x12a884[_0x4ae295(0x158)][_0x4ae295(0x1d7)]())},_0x48ec92[_0x85e9d1]=_0x5e9d4b),_0x5e9d4b[_0x4ae295(0x158)][_0x4ae295(0x1cd)](_0x2d1d37,_0x844fc3),_0x12b738[_0x85e9d1]={'config':_0x25f294[_0x4ae295(0x1a0)](_0x12a884[_0x4ae295(0x143)]),'sparklines':_0x25f294[_0x4ae295(0x1a0)](_0x12a884[_0x4ae295(0x158)][_0x4ae295(0x1d7)]())};}}});});for(const [_0x6a4955,_0x6e6a90]of _0x3fcc06){const _0x45c213=_0x6e6a90['sparklines'];_0x45c213[_0x514348(0x15c)]((_0x3b969d,_0x51d124,_0x10a764)=>{const _0x6b397c=_0x514348;for(let _0x2b83db=0x0;_0x2b83db<_0x269bc7['length'];_0x2b83db++){const _0x47c0b3=_0x269bc7[_0x2b83db];if(_0x4fc423[_0x6b397c(0x148)](_0x47c0b3,_0x10a764)){_0x231efa['add'](_0x6a4955);let _0x2b51b8=_0x48ec92[_0x6a4955];_0x2b51b8||(_0x2b51b8={'config':_0x25f294['deepClone'](_0x6e6a90[_0x6b397c(0x143)]),'sparklines':new _0xf353c2(_0x45c213[_0x6b397c(0x1d7)]())},_0x48ec92[_0x6a4955]=_0x2b51b8),_0x2b51b8[_0x6b397c(0x158)][_0x6b397c(0x1cd)](_0x3b969d,_0x51d124),_0x12b738[_0x6a4955]||(_0x12b738[_0x6a4955]={'config':_0x25f294[_0x6b397c(0x1a0)](_0x6e6a90[_0x6b397c(0x143)]),'sparklines':_0x25f294[_0x6b397c(0x1a0)](_0x45c213[_0x6b397c(0x1d7)]())});}}});}const _0x393a2d={};Object[_0x514348(0x16a)](_0x48ec92)[_0x514348(0x17b)](([_0x378615,_0x115d76])=>{const _0x315bab=_0x514348;_0x115d76[_0x315bab(0x158)]['getSizeOf']()&&(_0x393a2d[_0x378615]={'config':_0x115d76[_0x315bab(0x143)],'sparklines':_0x115d76[_0x315bab(0x158)][_0x315bab(0x1d7)]()});}),_0x231efa[_0x514348(0x151)]&&(_0x168e49['push']({'id':y['id'],'params':{'unitId':_0x233ebf,'subUnitId':_0xbfc981,'groupIds':Array['from'](_0x231efa),'isSingle':!0x1}}),_0x31033c['push']({'id':y['id'],'params':{'unitId':_0x233ebf,'subUnitId':_0xbfc981,'groupIds':Array[_0x514348(0x19d)](_0x231efa),'isSingle':!0x1}}),_0x168e49['push']({'id':V['id'],'params':{'unitId':_0x233ebf,'subUnitId':_0xbfc981,'sparklineConfigMap':_0x393a2d}}),_0x31033c[_0x514348(0x17d)]({'id':V['id'],'params':{'unitId':_0x233ebf,'subUnitId':_0xbfc981,'sparklineConfigMap':_0x12b738}}));}return{'redos':_0x168e49,'undos':_0x31033c};}}));}};_e=Ht([be(0x0,_0x23d78c(_0x47c4ee)),be(0x1,_0x23d78c(_0x1710a3)),be(0x2,_0x23d78c(x))],_e);var Ft=Object[_0x19c031(0x17e)],Kt=(_0x46c1b7,_0x679420,_0x503c89,_0x222ea8)=>{const _0x27849b=_0x19c031;for(var _0xe8ffa4=_0x222ea8>0x1?void 0x0:_0x222ea8?Ft(_0x679420,_0x503c89):_0x679420,_0x26899c=_0x46c1b7[_0x27849b(0x1cc)]-0x1,_0x1d2e12;_0x26899c>=0x0;_0x26899c--)(_0x1d2e12=_0x46c1b7[_0x26899c])&&(_0xe8ffa4=_0x1d2e12(_0xe8ffa4)||_0xe8ffa4);return _0xe8ffa4;},ge=(_0x3e4b1d,_0x57d0e4)=>(_0x5d7ab8,_0x3f7a28)=>_0x57d0e4(_0x5d7ab8,_0x3f7a28,_0x3e4b1d);let Me=class extends _0x364334{constructor(_0x4f8965,_0x3f5046,_0x5e1c6a,_0x349614){const _0x3920cf=_0x19c031;super(),se(this,_0x3920cf(0x1e5),new _0x1bce70()),(this[_0x3920cf(0x15e)]=_0x4f8965,this[_0x3920cf(0x1b1)]=_0x3f5046,this['_univerInstanceService']=_0x5e1c6a,this['_sparklineDataSourceModel']=_0x349614,this[_0x3920cf(0x1c7)](),this[_0x3920cf(0x182)]());}[_0x19c031(0x1c7)](){const _0x1f6b86=_0x19c031,_0x5f0fbe=(_0x935f09,_0x4b7276)=>{const _0x13dd3f=_0xb6e5,_0x4c7af5=this[_0x13dd3f(0x199)]['getCurrentUnitForType'](_0x177fe0[_0x13dd3f(0x1ba)]);if(!_0x4c7af5||!(_0x4c7af5==null?void 0x0:_0x4c7af5[_0x13dd3f(0x1da)](_0x4b7276)))return;this[_0x13dd3f(0x1e5)][_0x13dd3f(0x1df)]();const _0x2b42b5=_0x2cdccf=>this['refRangeHandle'](_0x2cdccf,_0x935f09,_0x4b7276),_0x52b1fa=[],_0x3cae0f=this[_0x13dd3f(0x1b8)][_0x13dd3f(0x169)](_0x935f09,_0x4b7276);if(_0x3cae0f){for(const [_0x59d310,_0x1b0a01]of _0x3cae0f)_0x1b0a01[_0x13dd3f(0x158)]['forValue']((_0x41ec93,_0x313c2f,_0x183dff)=>{const _0x1d337a=_0x13dd3f,_0x49a3c2=_0x590db2(_0x41ec93,_0x313c2f);_0x52b1fa[_0x1d337a(0x17d)](_0x49a3c2);});_0x52b1fa[_0x13dd3f(0x17b)](_0xb901f7=>{const _0x5abbf1=_0x13dd3f;this[_0x5abbf1(0x1e5)][_0x5abbf1(0x138)](this['_refRangeService'][_0x5abbf1(0x1a6)](_0xb901f7,_0x2b42b5,_0x935f09,_0x4b7276));});}};this[_0x1f6b86(0x1b3)](this[_0x1f6b86(0x15e)][_0x1f6b86(0x136)](_0x1a546f=>{const _0x4ad813=_0x1f6b86;if(_0x1a546f['id']===_0x43348c['id']){const _0x37af09=_0x1a546f['params'],_0x18ec83=_0x37af09[_0x4ad813(0x153)],_0x5c1e71=_0x37af09[_0x4ad813(0x1f2)];if(!_0x18ec83||!_0x5c1e71)return;_0x5f0fbe(_0x5c1e71,_0x18ec83);}if(_0x1a546f['id']===Oe['id']||_0x1a546f['id']===V['id']){const _0x37fa49=_0x1a546f[_0x4ad813(0x1c1)],_0x285f8e=_0x37fa49['subUnitId'],_0x26bd42=_0x37fa49[_0x4ad813(0x1f2)];if(!_0x285f8e||!_0x26bd42)return;_0x5f0fbe(_0x26bd42,_0x285f8e);}}));}[_0x19c031(0x14a)](_0x337bce,_0x268f4d,_0x51ba8c){const _0x6422f6=_0x19c031;switch(_0x337bce['id']){case _0x4cbf4d['id']:return this[_0x6422f6(0x1e3)](_0x337bce[_0x6422f6(0x1c1)],_0x268f4d,_0x51ba8c);case _0x268407['id']:return this[_0x6422f6(0x1a5)](_0x337bce[_0x6422f6(0x1c1)],_0x268f4d,_0x51ba8c);}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0x1ac9e2,_0xd29383,_0x129e3f){const _0x37afcc=_0x19c031;var _0x2a824c,_0x12d27a;const {range:_0x10b9ed}=_0x1ac9e2,_0x249aad=new Set(),_0x1d4ac4={},_0x4aeb13={},_0xc98edb=[],_0x4b1786=[],_0x220e02=[],_0x3a4f1f=[];if(!_0x20a119(this[_0x37afcc(0x199)],{'unitId':_0xd29383,'subUnitId':_0x129e3f}))return{'redos':_0x4b1786,'undos':_0xc98edb};const _0x1e8afc=this[_0x37afcc(0x1b8)][_0x37afcc(0x169)](_0xd29383,_0x129e3f);if(!_0x1e8afc)return{'redos':_0x4b1786,'undos':_0xc98edb};if(!((_0x12d27a=(_0x2a824c=this[_0x37afcc(0x1b8)][_0x37afcc(0x174)]()[_0x37afcc(0x1ca)][_0x37afcc(0x15d)](_0xd29383))==null?void 0x0:_0x2a824c[_0x37afcc(0x15d)](_0x129e3f))==null?void 0x0:_0x12d27a[_0x37afcc(0x1f1)]))return{'redos':_0x4b1786,'undos':_0xc98edb};for(const [_0x1fe160,_0x30be14]of _0x1e8afc){const _0x2a2057=_0x30be14[_0x37afcc(0x158)];_0x2a2057[_0x37afcc(0x15c)]((_0x61c5ca,_0x218a15,_0x5eb1c8)=>{const _0x1afc97=_0x37afcc;if(_0x4fc423['intersects'](_0x10b9ed,_0x5eb1c8)){_0x249aad[_0x1afc97(0x138)](_0x1fe160);let _0xbb82c1=_0x4aeb13[_0x1fe160];_0xbb82c1||(_0xbb82c1={'config':_0x30be14[_0x1afc97(0x143)],'sparklines':_0x30be14[_0x1afc97(0x158)][_0x1afc97(0x1d7)]()},_0x4aeb13[_0x1fe160]=_0xbb82c1);let _0x30e4e3=_0x1d4ac4[_0x1fe160];_0x30e4e3||(_0x30e4e3={'config':_0x30be14['config'],'sparklines':new _0xf353c2(_0x30be14[_0x1afc97(0x158)][_0x1afc97(0x1d7)]())},_0x1d4ac4[_0x1fe160]=_0x30e4e3);const _0x522494=_0x5a7b69(_0x5eb1c8,{'id':_0x26fb31['id'],'params':_0x1ac9e2});_0x522494?_0x30e4e3[_0x1afc97(0x158)][_0x1afc97(0x1c8)](_0x61c5ca,_0x218a15,_0x522494):_0x30e4e3['sparklines'][_0x1afc97(0x1c8)](_0x61c5ca,_0x218a15,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x42c5ee[_0x1afc97(0x1af)]});}}),_0x2a2057[_0x37afcc(0x15c)]((_0x45a025,_0x3d7b85,_0xd81dcf)=>{const _0x11c3fe=_0x37afcc;if(_0x45a025<=_0x10b9ed[_0x11c3fe(0x142)]&&_0x45a025>=_0x10b9ed['startRow']){_0x249aad['add'](_0x1fe160);let _0x10faa2=_0x4aeb13[_0x1fe160];_0x10faa2||(_0x10faa2={'config':_0x30be14[_0x11c3fe(0x143)],'sparklines':_0x30be14[_0x11c3fe(0x158)]['clone']()},_0x4aeb13[_0x1fe160]=_0x10faa2);let _0x27e905=_0x1d4ac4[_0x1fe160];_0x27e905||(_0x27e905={'config':_0x30be14[_0x11c3fe(0x143)],'sparklines':new _0xf353c2(_0x30be14[_0x11c3fe(0x158)][_0x11c3fe(0x1d7)]())},_0x1d4ac4[_0x1fe160]=_0x27e905);}});}_0x3a4f1f[_0x37afcc(0x17d)]({'id':y['id'],'params':{'unitId':_0xd29383,'subUnitId':_0x129e3f,'groupIds':Array[_0x37afcc(0x19d)](_0x249aad),'isSingle':!0x1}}),_0x220e02[_0x37afcc(0x17d)]({'id':y['id'],'params':{'unitId':_0xd29383,'subUnitId':_0x129e3f,'groupIds':Array[_0x37afcc(0x19d)](_0x249aad),'isSingle':!0x1}});const _0x36ab6c={};let _0x4f9cf1=!0x1;return Object[_0x37afcc(0x16a)](_0x1d4ac4)['forEach'](([_0x4348eb,_0x4354b6])=>{const _0x5a962c=_0x37afcc;_0x4354b6[_0x5a962c(0x158)][_0x5a962c(0x1ea)]()&&(_0x4f9cf1=!0x0,_0x4354b6['sparklines']['removeRows'](_0x10b9ed[_0x5a962c(0x17c)],_0x10b9ed[_0x5a962c(0x142)]-_0x10b9ed[_0x5a962c(0x17c)]+0x1),_0x36ab6c[_0x4348eb]={'config':_0x4354b6[_0x5a962c(0x143)],'sparklines':_0x4354b6[_0x5a962c(0x158)][_0x5a962c(0x1d7)]()});}),_0x4f9cf1&&_0x4b1786[_0x37afcc(0x17d)]({'id':V['id'],'params':{'unitId':_0xd29383,'subUnitId':_0x129e3f,'sparklineConfigMap':_0x36ab6c}}),_0xc98edb[_0x37afcc(0x17d)]({'id':V['id'],'params':{'unitId':_0xd29383,'subUnitId':_0x129e3f,'sparklineConfigMap':_0x4aeb13}}),{'redos':_0x4b1786,'undos':_0xc98edb,'preRedos':_0x220e02,'preUndos':_0x3a4f1f};}[_0x19c031(0x1e3)](_0x2e5b0c,_0x35545d,_0x5e2488){const _0x29e018=_0x19c031;var _0x11a4b3,_0x44aeba;const {range:_0x4e5e3a}=_0x2e5b0c,_0x3b5b1e=new Set(),_0x542241={},_0x1d0fd9={},_0x497596=[],_0x301795=[],_0x298097=[],_0x2eafb8=[];if(!_0x20a119(this[_0x29e018(0x199)],{'unitId':_0x35545d,'subUnitId':_0x5e2488}))return{'redos':_0x301795,'undos':_0x497596};const _0x38e5a9=this['_sparklineDataSourceModel'][_0x29e018(0x169)](_0x35545d,_0x5e2488);if(!_0x38e5a9)return{'redos':_0x301795,'undos':_0x497596};if(!((_0x44aeba=(_0x11a4b3=this[_0x29e018(0x1b8)][_0x29e018(0x174)]()[_0x29e018(0x1ca)][_0x29e018(0x15d)](_0x35545d))==null?void 0x0:_0x11a4b3[_0x29e018(0x15d)](_0x5e2488))==null?void 0x0:_0x44aeba[_0x29e018(0x1f1)]))return{'redos':_0x301795,'undos':_0x497596};for(const [_0x171c10,_0x33a0ad]of _0x38e5a9){const _0x3730b1=_0x33a0ad[_0x29e018(0x158)];_0x3730b1[_0x29e018(0x15c)]((_0x125bfe,_0x5a4f61,_0x4f7d0f)=>{const _0x42517b=_0x29e018;if(_0x4fc423['intersects'](_0x4e5e3a,_0x4f7d0f)){_0x3b5b1e[_0x42517b(0x138)](_0x171c10);let _0x3cb36e=_0x1d0fd9[_0x171c10];_0x3cb36e||(_0x3cb36e={'config':_0x33a0ad[_0x42517b(0x143)],'sparklines':_0x33a0ad[_0x42517b(0x158)][_0x42517b(0x1d7)]()},_0x1d0fd9[_0x171c10]=_0x3cb36e);let _0x51cf2a=_0x542241[_0x171c10];_0x51cf2a||(_0x51cf2a={'config':_0x33a0ad[_0x42517b(0x143)],'sparklines':new _0xf353c2(_0x33a0ad[_0x42517b(0x158)][_0x42517b(0x1d7)]())},_0x542241[_0x171c10]=_0x51cf2a);const _0x5a2445=_0x5a7b69(_0x4f7d0f,{'id':_0x573e36['id'],'params':_0x2e5b0c});_0x5a2445?_0x51cf2a['sparklines'][_0x42517b(0x1c8)](_0x125bfe,_0x5a4f61,_0x5a2445):_0x51cf2a['sparklines'][_0x42517b(0x1c8)](_0x125bfe,_0x5a4f61,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x42c5ee[_0x42517b(0x1af)]});}}),_0x3730b1[_0x29e018(0x15c)]((_0x180558,_0xad8705,_0x328523)=>{const _0x383d66=_0x29e018;if(_0xad8705<=_0x4e5e3a[_0x383d66(0x145)]&&_0xad8705>=_0x4e5e3a[_0x383d66(0x176)]){_0x3b5b1e['add'](_0x171c10);let _0x3f93cf=_0x1d0fd9[_0x171c10];_0x3f93cf||(_0x3f93cf={'config':_0x33a0ad['config'],'sparklines':_0x33a0ad['sparklines'][_0x383d66(0x1d7)]()},_0x1d0fd9[_0x171c10]=_0x3f93cf);let _0x53d020=_0x542241[_0x171c10];_0x53d020||(_0x53d020={'config':_0x33a0ad[_0x383d66(0x143)],'sparklines':new _0xf353c2(_0x33a0ad[_0x383d66(0x158)][_0x383d66(0x1d7)]())},_0x542241[_0x171c10]=_0x53d020);}});}_0x2eafb8[_0x29e018(0x17d)]({'id':y['id'],'params':{'unitId':_0x35545d,'subUnitId':_0x5e2488,'groupIds':Array['from'](_0x3b5b1e),'isSingle':!0x1}}),_0x298097['push']({'id':y['id'],'params':{'unitId':_0x35545d,'subUnitId':_0x5e2488,'groupIds':Array[_0x29e018(0x19d)](_0x3b5b1e),'isSingle':!0x1}});const _0x473e10={};let _0x1c8921=!0x1;return Object[_0x29e018(0x16a)](_0x542241)['forEach'](([_0x54719f,_0xb1c971])=>{const _0x248af9=_0x29e018;_0xb1c971['sparklines'][_0x248af9(0x1ea)]()&&(_0x1c8921=!0x0,_0xb1c971[_0x248af9(0x158)]['removeColumns'](_0x4e5e3a[_0x248af9(0x176)],_0x4e5e3a[_0x248af9(0x145)]-_0x4e5e3a[_0x248af9(0x176)]+0x1),_0x473e10[_0x54719f]={'config':_0xb1c971[_0x248af9(0x143)],'sparklines':_0xb1c971['sparklines'][_0x248af9(0x1d7)]()});}),_0x1c8921&&_0x301795['push']({'id':V['id'],'params':{'unitId':_0x35545d,'subUnitId':_0x5e2488,'sparklineConfigMap':_0x473e10}}),_0x497596['push']({'id':V['id'],'params':{'unitId':_0x35545d,'subUnitId':_0x5e2488,'sparklineConfigMap':_0x1d0fd9}}),{'redos':_0x301795,'undos':_0x497596,'preRedos':_0x298097,'preUndos':_0x2eafb8};}[_0x19c031(0x182)](){const _0x4f9a72=_0x19c031;this[_0x4f9a72(0x1b3)](this['_commandService'][_0x4f9a72(0x136)](_0x31ef96=>{const _0xf0bbf2=_0x4f9a72;if(_0x31ef96['id']===_0x5d6c0e['id']){const _0x7fb6b3=_0x31ef96['params'],{unitId:_0x5132eb,subUnitId:_0x18dd7c,range:_0x3995d1}=_0x7fb6b3,_0x22599d=_0x3995d1['startColumn'],_0x165660=_0x3995d1['endColumn']-_0x3995d1[_0xf0bbf2(0x176)]+0x1,_0x1827a3=this[_0xf0bbf2(0x1b8)]['getSubUnitSparkline'](_0x5132eb,_0x18dd7c);if(!_0x1827a3)return;for(const [_0x14fda5,_0xee1469]of _0x1827a3){this[_0xf0bbf2(0x1b8)]['clearSparklineCache'](_0x5132eb,_0x18dd7c,_0x14fda5);const _0x42bb92=_0xee1469[_0xf0bbf2(0x158)];_0x42bb92['forValue']((_0x514c82,_0x1b7cba,_0x501eda)=>{const _0x46e861=_0xf0bbf2,_0x24ae60={..._0x501eda};_0x22599d<=_0x24ae60[_0x46e861(0x176)]?(_0x24ae60[_0x46e861(0x176)]+=_0x165660,_0x24ae60[_0x46e861(0x145)]+=_0x165660):_0x22599d>_0x24ae60[_0x46e861(0x145)]||(_0x24ae60[_0x46e861(0x145)]+=_0x165660),_0x42bb92['setValue'](_0x514c82,_0x1b7cba,_0x24ae60);});const _0x2c66b5=_0x42bb92[_0xf0bbf2(0x198)]();for(const _0x349618 in _0x2c66b5){const _0xd09a76=_0x2c66b5[Number(_0x349618)];if(!_0xd09a76)continue;const _0x4681ce=Object[_0xf0bbf2(0x1d1)](_0xd09a76)[_0xf0bbf2(0x159)](Number),_0x10cdf3=Math[_0xf0bbf2(0x1e2)](..._0x4681ce);for(let _0x27110f=_0x10cdf3;_0x27110f>=_0x22599d;_0x27110f--)_0x27110f>=_0x22599d&&_0xd09a76[_0x27110f]&&(_0xd09a76[_0x27110f+_0x165660]=_0xd09a76[_0x27110f],delete _0xd09a76[_0x27110f]);}this[_0xf0bbf2(0x1b8)][_0xf0bbf2(0x1cf)](_0x5132eb,_0x18dd7c,_0x14fda5);}}else{if(_0x31ef96['id']===_0xa9ca91['id']){const _0x2e5f5c=_0x31ef96[_0xf0bbf2(0x1c1)],{unitId:_0x3866ca,subUnitId:_0x693dae,range:_0x52978f}=_0x2e5f5c,_0x2afc2c=_0x52978f['startRow'],_0x22bb86=_0x52978f[_0xf0bbf2(0x142)]-_0x52978f['startRow']+0x1,_0x1207a1=this[_0xf0bbf2(0x1b8)]['getSubUnitSparkline'](_0x3866ca,_0x693dae);if(!_0x1207a1)return;for(const [_0x38dfa3,_0x292a04]of _0x1207a1){this[_0xf0bbf2(0x1b8)][_0xf0bbf2(0x1e0)](_0x3866ca,_0x693dae,_0x38dfa3);const _0x4f88f2=_0x292a04[_0xf0bbf2(0x158)];_0x4f88f2[_0xf0bbf2(0x15c)]((_0x13fcc5,_0x19ccea,_0xe4733c)=>{const _0xadbabd=_0xf0bbf2,_0x12f9eb={..._0xe4733c};_0x2afc2c<=_0x12f9eb['startRow']?(_0x12f9eb[_0xadbabd(0x17c)]+=_0x22bb86,_0x12f9eb[_0xadbabd(0x142)]+=_0x22bb86):_0x2afc2c>_0x12f9eb['endRow']||(_0x12f9eb['endRow']+=_0x22bb86),_0x4f88f2['setValue'](_0x13fcc5,_0x19ccea,_0x12f9eb);});const _0x2508d7=_0x4f88f2[_0xf0bbf2(0x198)](),_0x36671c=Object[_0xf0bbf2(0x1d1)](_0x2508d7)[_0xf0bbf2(0x159)](Number),_0x4c1077=Math[_0xf0bbf2(0x1e2)](..._0x36671c);for(let _0x1383d4=_0x4c1077;_0x1383d4>=_0x2afc2c;_0x1383d4--)_0x1383d4>=_0x2afc2c&&_0x2508d7[_0x1383d4]&&(_0x2508d7[_0x1383d4+_0x22bb86]=_0x2508d7[_0x1383d4],delete _0x2508d7[_0x1383d4]);this[_0xf0bbf2(0x1b8)]['updateSparklineExtraNum'](_0x3866ca,_0x693dae,_0x38dfa3);}}else{if(_0x31ef96['id']===_0x573e36['id']){const _0x1a9c1e=_0x31ef96[_0xf0bbf2(0x1c1)],{range:_0x805195,unitId:_0x214a00,subUnitId:_0x25975e}=_0x1a9c1e,_0x8ed39=this[_0xf0bbf2(0x1b8)][_0xf0bbf2(0x169)](_0x214a00,_0x25975e);if(!_0x8ed39)return;for(const [_0xc2d505,_0x199ff8]of _0x8ed39){const _0x3a853d=_0x199ff8['sparklines'];_0x3a853d['forValue']((_0x5e3614,_0x4efc12,_0x289f11)=>{const _0x2ffeaa=_0xf0bbf2,_0x15bb34=_0x5a7b69(_0x289f11,_0x31ef96);_0x15bb34?_0x3a853d[_0x2ffeaa(0x1c8)](_0x5e3614,_0x4efc12,_0x15bb34):_0x3a853d['setValue'](_0x5e3614,_0x4efc12,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x42c5ee[_0x2ffeaa(0x1af)]});}),_0x3a853d[_0xf0bbf2(0x185)](_0x805195['startColumn'],_0x805195['endColumn']-_0x805195['startColumn']+0x1);}this[_0xf0bbf2(0x1b8)]['reBuildAnchorCache'](_0x214a00,_0x25975e);}else{if(_0x31ef96['id']===_0x26fb31['id']){const _0x3bb64f=_0x31ef96[_0xf0bbf2(0x1c1)],{range:_0x1d05fa,unitId:_0x16c51f,subUnitId:_0x43e69c}=_0x3bb64f,_0x15fae7=this[_0xf0bbf2(0x1b8)][_0xf0bbf2(0x169)](_0x16c51f,_0x43e69c);if(!_0x15fae7)return;for(const [_0x54156a,_0x2299ec]of _0x15fae7){const _0x1095c1=_0x2299ec['sparklines'];_0x1095c1[_0xf0bbf2(0x15c)]((_0x2e256a,_0x140952,_0x3c6f7f)=>{const _0x2da67c=_0xf0bbf2,_0xe0457f=_0x5a7b69(_0x3c6f7f,_0x31ef96);_0xe0457f?_0x1095c1[_0x2da67c(0x1c8)](_0x2e256a,_0x140952,_0xe0457f):_0x1095c1['setValue'](_0x2e256a,_0x140952,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x42c5ee['NORMAL']});}),_0x1095c1[_0xf0bbf2(0x15a)](_0x1d05fa[_0xf0bbf2(0x17c)],_0x1d05fa[_0xf0bbf2(0x142)]-_0x1d05fa[_0xf0bbf2(0x17c)]+0x1);}this[_0xf0bbf2(0x1b8)][_0xf0bbf2(0x17a)](_0x16c51f,_0x43e69c);}else{if(_0x31ef96['id']===_0x45a313['id']){const _0x517bb2=_0x31ef96['params'],{unitId:_0x37feed,subUnitId:_0x6bf50c,sourceRange:_0x106352,targetRange:_0x1b0c2b}=_0x517bb2,_0x1a8dad=this[_0xf0bbf2(0x1b8)][_0xf0bbf2(0x169)](_0x37feed,_0x6bf50c);if(!_0x1a8dad)return;for(const [_0x1ece21,_0x19aa2d]of _0x1a8dad){const _0x885f03=_0x19aa2d[_0xf0bbf2(0x158)];_0x885f03[_0xf0bbf2(0x15c)]((_0x2a8e3f,_0x44fa61,_0x249c5b)=>{const _0x37264b=_0xf0bbf2,_0x414007=_0x5a7b69(_0x249c5b,_0x31ef96);_0x414007?_0x885f03[_0x37264b(0x1c8)](_0x2a8e3f,_0x44fa61,_0x414007):_0x885f03[_0x37264b(0x1c8)](_0x2a8e3f,_0x44fa61,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x42c5ee['NORMAL']});}),_0x885f03[_0xf0bbf2(0x13a)](_0x106352[_0xf0bbf2(0x176)],_0x106352[_0xf0bbf2(0x145)]-_0x106352[_0xf0bbf2(0x176)]+0x1,_0x1b0c2b[_0xf0bbf2(0x176)]);}this[_0xf0bbf2(0x1b8)]['reBuildAnchorCache'](_0x37feed,_0x6bf50c);}else{if(_0x31ef96['id']===_0x631cc9['id']){const _0x5b0976=_0x31ef96[_0xf0bbf2(0x1c1)],{unitId:_0x25d9ae,subUnitId:_0x1b0825,sourceRange:_0xbfef0d,targetRange:_0x2e3da1}=_0x5b0976,_0x118b5a=this[_0xf0bbf2(0x1b8)][_0xf0bbf2(0x169)](_0x25d9ae,_0x1b0825);if(!_0x118b5a)return;for(const [_0x5e79c6,_0x1e2408]of _0x118b5a){const _0xb29c7=_0x1e2408[_0xf0bbf2(0x158)];_0xb29c7[_0xf0bbf2(0x15c)]((_0xb20d05,_0x3ec7ec,_0x1da829)=>{const _0x3cf92a=_0xf0bbf2,_0x548728=_0x5a7b69(_0x1da829,_0x31ef96);_0x548728?_0xb29c7['setValue'](_0xb20d05,_0x3ec7ec,_0x548728):_0xb29c7[_0x3cf92a(0x1c8)](_0xb20d05,_0x3ec7ec,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x42c5ee[_0x3cf92a(0x1af)]});}),_0xb29c7['moveRows'](_0xbfef0d['startRow'],_0xbfef0d[_0xf0bbf2(0x142)]-_0xbfef0d[_0xf0bbf2(0x17c)]+0x1,_0x2e3da1[_0xf0bbf2(0x17c)]);}this[_0xf0bbf2(0x1b8)][_0xf0bbf2(0x17a)](_0x25d9ae,_0x1b0825);}else{if(_0x31ef96['id']===_0x3f35a8['id']){const _0x37e325=_0x31ef96[_0xf0bbf2(0x1c1)],{fromRange:_0x35e22c,toRange:_0x296605,unitId:_0x1804c9,from:_0x1524eb,to:_0x30a4b2}=_0x37e325;if(_0x1524eb[_0xf0bbf2(0x153)]!==_0x30a4b2['subUnitId'])return;const _0x29c149=_0x1524eb[_0xf0bbf2(0x153)],{startRow:_0x3cefc0,endRow:_0xb44e38,startColumn:_0x4f499f,endColumn:_0x5cef59}=_0x35e22c,{startRow:_0x1ec38d,startColumn:_0x3abd74}=_0x296605,_0x52853a=_0x1ec38d-_0x3cefc0,_0x5ac59d=_0x3abd74-_0x4f499f,_0x18cbdd=this[_0xf0bbf2(0x1b8)][_0xf0bbf2(0x169)](_0x1804c9,_0x29c149);if(!(_0x18cbdd!=null&&_0x18cbdd['size']))return;for(let _0x373fe4=_0x3cefc0;_0x373fe4<=_0xb44e38;_0x373fe4++)for(let _0x7b77c=_0x4f499f;_0x7b77c<=_0x5cef59;_0x7b77c++){const _0x2bcb50=this['_sparklineDataSourceModel'][_0xf0bbf2(0x184)](_0x1804c9,_0x29c149,_0x373fe4,_0x7b77c);if(_0x2bcb50){const _0x486480=this['_sparklineDataSourceModel']['getSparklineById'](_0x1804c9,_0x29c149,_0x2bcb50);if(_0x486480){const _0x16c57b=_0x486480['sparklines'][_0xf0bbf2(0x1d6)](_0x373fe4,_0x7b77c);_0x16c57b&&(_0x486480[_0xf0bbf2(0x158)][_0xf0bbf2(0x1c8)](_0x373fe4+_0x52853a,_0x7b77c+_0x5ac59d,_0x16c57b),_0x486480[_0xf0bbf2(0x158)][_0xf0bbf2(0x1cd)](_0x373fe4,_0x7b77c));}}}for(const [_0xce0e6a,_0x56240a]of _0x18cbdd){const _0x32eb85=_0x56240a[_0xf0bbf2(0x158)];_0x32eb85[_0xf0bbf2(0x15c)]((_0x251517,_0xce03e9,_0x5bcd08)=>{const _0x230528=_0xf0bbf2,_0x4644e1={..._0x5bcd08};_0x4fc423[_0x230528(0x148)](_0x35e22c,_0x5bcd08)&&(_0x4644e1[_0x230528(0x17c)]+=_0x52853a,_0x4644e1['endRow']+=_0x52853a,_0x4644e1[_0x230528(0x176)]+=_0x5ac59d,_0x4644e1['endColumn']+=_0x5ac59d),_0x32eb85[_0x230528(0x1c8)](_0x251517,_0xce03e9,_0x4644e1);});}this[_0xf0bbf2(0x1b8)][_0xf0bbf2(0x17a)](_0x1804c9,_0x29c149);}}}}}}}}));}};Me=Kt([ge(0x0,_0x23d78c(_0x47c4ee)),ge(0x1,_0x23d78c(_0x3ea65c)),ge(0x2,_0x5aa92b),ge(0x3,_0x23d78c(x))],Me);function _0x58c6(){const _0x5f048f=['_ensureConfigMap','toRgbString','16pfPIHf','hasValue','sheet.mutation.set-sparkline','FORCE_STRING','registerPluginResource','seriesColor','number','delete','getSubUnitSparkline','entries','actualRow','STRING','3163120HCOArY','markersPoint','_injector','getColVisible','min','getCellRaw','toJSON','getSparklineCache','_exclusiveRangeService','startColumn','removeSparkline','exclusiveRangesChange$','interceptCommand','reBuildAnchorCache','forEach','startRow','push','getOwnPropertyDescriptor','containHiddenCells','SHEET_SPARKLINE_PLUGIN','specialty','_initCorrectRangeWithSparkline','groupId','getSparkline','removeColumns','6610198trzqQP','fresh','column','3242388TTunWB','_initRegisterCommand','sheet.mutation.remove-sparkline','5aYxhNV','pluginName','extremumMin','lastPoint','intersects','spacing','rgb(30,177,189)','asObservable','lowPoint','setSparkline','some','highPoint','getMatrix','_univerInstanceService','firstPoint','registerCommand','standard','from','_initExclusiveRangeChange','themeType','deepClone','actualColumn','updateConfig$','rgb(54,78,244)','rgb(80,102,248)','_getRefRangeMutationsByDeleteRows','registerRefRange','soft','CUSTOM','u-spacing','NUMBER','rgb(252,117,60)','has','_updateConfig$','remove','NORMAL','BAR_CHART','_refRangeService','1331490iLjQSA','disposeWithMe','next','PIE_CHART','PROFIT_AND_LOSS_CHART','fromJSON','_sparklineDataSourceModel','MUTATION','UNIVER_SHEET','range','_initHideRowColWithSparkline','3178311QNloLv','_resourceManagerService','removePartSparkline','emptyShowAs','params','value','row','sheet.command.remove-sparkline','ranges','distinctive','_onRefRangeChange','setValue','symbol','sparklineAnchorMap','_sheetSelectionService','length','realDeleteValue','pushUndoRedo','updateSparklineExtraNum','768606gzvCdz','keys','rgb(248,190,21)','onReady','MAX_SAFE_INTEGER','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','getValue','clone','every','extremumMax','getSheetBySheetId','_initCopySheetWithSparkline','SPACING','type','stringify','dispose','clearSparklineCache','3025260toBEsT','max','_getRefRangeMutationsByDeleteCols','u-connect','disposableCollection','_initSnapshot','STANDARD','getSparklineById','_sheetInterceptorService','getSizeOf','nonNumShowAs','changeDataSourceInfo','_ensureAnchorMatrix','defineProperty','getRowVisible','_initClearWithSparkline','matrix','unitId','onCommandExecuted','GROUP_EXTREMUM','add','CONNECT_WITH_LINE','moveColumns','COMMAND','subscribe','foreach','_initMergeWithSparkline','set','sheet.command.set-sparkline','addSparkline','endRow','config','CUSTOM_EXTREMUM','endColumn','rgb(49,106,246)','deleteUnit','contains','getCell','refRangeHandle','values','ZERO_VALUE','sparklineModel','_initDataChangeListener','_sparklineModel','getCurrentSelections','size','sheet.command.add-sparkline','subUnitId','negativePoint','_sparklineAnchorMap','_config','_initDependencies','sparklines','map','removeRows','rgb(244,104,249)','forValue','get','_commandService'];_0x58c6=function(){return _0x5f048f;};return _0x58c6();}var Xt=Object['getOwnPropertyDescriptor'],zt=(_0x337424,_0x3c26c6,_0x10ed49,_0x108fcd)=>{const _0x52aaf8=_0x19c031;for(var _0x3e9b01=_0x108fcd>0x1?void 0x0:_0x108fcd?Xt(_0x3c26c6,_0x10ed49):_0x3c26c6,_0x323085=_0x337424[_0x52aaf8(0x1cc)]-0x1,_0x4a6246;_0x323085>=0x0;_0x323085--)(_0x4a6246=_0x337424[_0x323085])&&(_0x3e9b01=_0x4a6246(_0x3e9b01)||_0x3e9b01);return _0x3e9b01;},Be=(_0x1a7d42,_0x320187)=>(_0x539c6b,_0x2b21d4)=>_0x320187(_0x539c6b,_0x2b21d4,_0x1a7d42);let Re=class extends _0x364334{constructor(_0x50cf8d,_0x381542){const _0x371074=_0x19c031;super(),this[_0x371074(0x1be)]=_0x50cf8d,this['_sparklineDataSourceModel']=_0x381542,this[_0x371074(0x1e6)]();}[_0x19c031(0x1e6)](){const _0x11969f=_0x19c031,_0x330469=_0x178642=>{const _0xf13829=_0xb6e5,_0x1dc738=this[_0xf13829(0x1b8)][_0xf13829(0x173)](_0x178642);return _0x1dc738?JSON[_0xf13829(0x1de)](_0x1dc738):'';},_0x1fe32b=_0x2831a4=>_0x2831a4?JSON['parse'](_0x2831a4):{};this[_0x11969f(0x1b3)](this[_0x11969f(0x1be)][_0x11969f(0x165)]({'toJson':_0x330469,'parseJson':_0x1fe32b,'pluginName':Ke,'businesses':[_0x177fe0[_0x11969f(0x1ba)]],'onLoad':(_0x4bbb2a,_0xc70c1b)=>{const _0x8371f6=_0x11969f;this[_0x8371f6(0x1b8)][_0x8371f6(0x1b7)](_0xc70c1b);},'onUnLoad':_0x11c05e=>{const _0x3f5824=_0x11969f;this[_0x3f5824(0x1b8)]['deleteUnit'](_0x11c05e);}}));}};Re=zt([Be(0x0,_0x23d78c(_0x4ca723)),Be(0x1,_0x23d78c(x))],Re);var Jt=Object[_0x19c031(0x1ee)],Zt=Object[_0x19c031(0x17e)],Yt=(_0x22facd,_0x28f547,_0x4d0329)=>_0x28f547 in _0x22facd?Jt(_0x22facd,_0x28f547,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d0329}):_0x22facd[_0x28f547]=_0x4d0329,qt=(_0x3fd3c9,_0x59f53f,_0x5b23f4,_0x133ce9)=>{const _0x31c9f2=_0x19c031;for(var _0x36b7e2=_0x133ce9>0x1?void 0x0:_0x133ce9?Zt(_0x59f53f,_0x5b23f4):_0x59f53f,_0x172b78=_0x3fd3c9[_0x31c9f2(0x1cc)]-0x1,_0x335c56;_0x172b78>=0x0;_0x172b78--)(_0x335c56=_0x3fd3c9[_0x172b78])&&(_0x36b7e2=_0x335c56(_0x36b7e2)||_0x36b7e2);return _0x36b7e2;},He=(_0x10c5ee,_0x49f433)=>(_0x2612e4,_0x2149cf)=>_0x49f433(_0x2612e4,_0x2149cf,_0x10c5ee),ze=(_0x3451e5,_0x5094b5,_0x16a8e6)=>Yt(_0x3451e5,typeof _0x5094b5!=_0x19c031(0x1c9)?_0x5094b5+'':_0x5094b5,_0x16a8e6);let ve=class extends _0x1ca6bb{constructor(_0x5af3cc={},_0x3fc220,_0x55fe37){const _0x341905=_0x19c031;super(),this[_0x341905(0x156)]=_0x5af3cc,this[_0x341905(0x16f)]=_0x3fc220,this[_0x341905(0x15e)]=_0x55fe37,this[_0x341905(0x157)](),this[_0x341905(0x18a)]();}['_initDependencies'](){const _0x12b28a=_0x19c031;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x12b28a(0x17b)](_0x52a64d=>{const _0x53b4fe=_0x12b28a;this[_0x53b4fe(0x16f)][_0x53b4fe(0x138)](_0x52a64d);}),_0x12836b(this[_0x12b28a(0x16f)],[[Re]]);}[_0x19c031(0x1d3)](){_0x12836b(this['_injector'],[[me],[_e],[Se],[Me],[Ce],[ke]]);}[_0x19c031(0x18a)](){const _0x2aa38f=_0x19c031;[Nt,V,Ot,y,xt,Oe][_0x2aa38f(0x17b)](_0x37c5f8=>this[_0x2aa38f(0x15e)][_0x2aa38f(0x19b)](_0x37c5f8));}};ze(ve,_0x19c031(0x18d),Ke),ze(ve,_0x19c031(0x1dd),_0x177fe0['UNIVER_SHEET']),ve=qt([_0x36ab06(_0x4f0cfe),He(0x1,_0x23d78c(_0x2e8329)),He(0x2,_0x23d78c(_0x47c4ee))],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,De as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,ve as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
1
+ const _0x196211=_0x45c2;(function(_0x45a9c7,_0x27ba52){const _0x392a6c=_0x45c2,_0x103fac=_0x45a9c7();while(!![]){try{const _0x17e9d3=parseInt(_0x392a6c(0xad))/0x1*(parseInt(_0x392a6c(0x93))/0x2)+-parseInt(_0x392a6c(0x88))/0x3+-parseInt(_0x392a6c(0xc6))/0x4*(parseInt(_0x392a6c(0xf3))/0x5)+-parseInt(_0x392a6c(0xaa))/0x6+-parseInt(_0x392a6c(0x10b))/0x7+parseInt(_0x392a6c(0xd9))/0x8+parseInt(_0x392a6c(0xc0))/0x9*(parseInt(_0x392a6c(0x11d))/0xa);if(_0x17e9d3===_0x27ba52)break;else _0x103fac['push'](_0x103fac['shift']());}catch(_0x4ac29c){_0x103fac['push'](_0x103fac['shift']());}}}(_0x3d04,0xea3df));var qe=Object[_0x196211(0xc9)],Qe=(_0x2d2e5e,_0x318b82,_0x5c6d5e)=>_0x318b82 in _0x2d2e5e?qe(_0x2d2e5e,_0x318b82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c6d5e}):_0x2d2e5e[_0x318b82]=_0x5c6d5e,se=(_0x37ecc0,_0x1db55b,_0x153dd2)=>Qe(_0x37ecc0,typeof _0x1db55b!=_0x196211(0x85)?_0x1db55b+'':_0x1db55b,_0x153dd2);import{ObjectMatrix as _0x30188c,Inject as _0x145e78,IUniverInstanceService as _0x4c6c1a,Disposable as _0x17ef6f,isValidRange as _0x3f0d7a,CellValueType as _0x2eddb6,ColorKit as _0xac6cd0,CommandType as _0x512d0f,Range as _0x146272,IUndoRedoService as _0x3cd76b,generateRandomId as _0xdf724a,ICommandService as _0x2a59fd,Tools as _0x471ba1,sequenceExecute as _0x23819d,Rectangle as _0x240f2f,cellToRange as _0x55fe80,DisposableCollection as _0x4a1eb6,RANGE_TYPE as _0x321cea,UniverInstanceType as _0x45e4c2,IResourceManagerService as _0x4065e5,DependentOn as _0x208d15,Injector as _0x4d6357,Plugin as _0x3ced7d,touchDependencies as _0x5f3894}from'@univerjs/core';import{getSheetCommandTarget as _0x5e9d4e,SheetsSelectionsService as _0x1bec73,SheetInterceptorService as _0x16120f,ClearSelectionAllCommand as _0x4c1676,CopySheetCommand as _0x503130,IExclusiveRangeService as _0x18462e,SetRangeValuesMutation as _0x51ad06,ReorderRangeMutation as _0x404b36,SetRowHiddenMutation as _0x447f5e,SetColHiddenMutation as _0x567283,SetRowVisibleMutation as _0x132ad1,SetColVisibleMutation as _0x3e8b34,AddWorksheetMergeCommand as _0x32b4d6,RefRangeService as _0x3d7d65,SetWorksheetActivateCommand as _0x1ca433,RemoveRowCommand as _0xf483eb,RemoveColCommand as _0x12a407,adjustRangeOnMutation as _0x1c9263,RemoveRowMutation as _0x37cdfe,RemoveColMutation as _0x10ea05,InsertColMutation as _0x5cb8d8,InsertRowMutation as _0x39651a,MoveColsMutation as _0x1f4f57,MoveRowsMutation as _0xf96e4e,MoveRangeMutation as _0x392d22}from'@univerjs/sheets';function _0x3d04(){const _0x5936e0=['rgb(244,104,249)','changeDataSourceInfo','startRow','entries','NORMAL','unitId','NUMBER','rgb(236,100,169)','UNIVER_SHEET','clearSparklineCache','subscribe','FORCE_STRING','2654816NZOdYZ','startColumn','SPACING','_ensureAnchorMatrix','standard','sheet.mutation.remove-sparkline','CUSTOM_EXTREMUM','next','row','sparklineAnchorMap','removeColumns','PIE_CHART','BAR_CHART','_sparklineModel','_onRefRangeChange','add','_sparklineAnchorMap','endRow','extremumMax','specialty','subUnitId','getSparklineCache','sparklineModel','setSparkline','contains','_initDataChangeListener','1135yioAWi','MUTATION','_ensureConfigMap','from','registerRefRange','updateSparklineExtraNum','get','column','getCurrentSelections','values','realDeleteValue','SOFT','matrix','type','disposeWithMe','_initDependencies','registerPluginResource','max','params','config','MIN_SAFE_INTEGER','getSparkline','rgb(252,117,60)','stringify','3045609wNrtuO','SELF_EXTREMUM','actualColumn','sheet.command.add-sparkline','fromJSON','MAX_SAFE_INTEGER','_sheetSelectionService','size','getSubUnitSparkline','foreach','_univerInstanceService','CUSTOM','GROUP_EXTREMUM','pushUndoRedo','setValue','has','ZERO_VALUE','rgb(248,190,21)','2453910FMvuRb','_updateConfig$','LINE_CHART','ranges','every','rgb(124,66,147)','CONNECT_WITH_LINE','_initSnapshot','endColumn','forEach','keys','asObservable','parse','rgb(49,106,246)','rgb(30,177,189)','deleteUnit','rgb(54,78,244)','min','range','_commandService','getSparklineById','removePartSparkline','getOwnPropertyDescriptor','interceptCommand','_initClearWithSparkline','_initHideRowColWithSparkline','negativePoint','lastPoint','intersects','dispose','getColVisible','SHEET_SPARKLINE_PLUGIN','toJSON','markersPoint','fresh','PROFIT_AND_LOSS_CHART','symbol','delete','_getRefRangeMutationsByDeleteRows','2244156ExMjtZ','moveColumns','_injector','_refRangeService','pluginName','deepClone','length','remove','sheet.mutation.set-sparkline','nonNumShowAs','STANDARD','674NmlQdp','set','some','FRESH','value','u-connect','getSheetBySheetId','disposableCollection','containHiddenCells','sheet.mutation.add-sparkline','onCommandExecuted','getValue','groupId','sheet.command.set-sparkline','BOOLEAN','addSparkline','setAlpha','emptyShowAs','getCurrentUnitForType','clone','reBuildAnchorCache','map','seriesColor','10300680PivVGI','toRgbString','u-spacing','1588dYrGZj','COMMAND','_initCopySheetWithSparkline','push','_initRegisterCommand','_initCorrectRangeWithSparkline','rgb(46,187,122)','_sparklineDataSourceModel','getSizeOf','sparklines','spacing','extremumMin','_resourceManagerService','getCellRaw','_sheetInterceptorService','lowPoint','forValue','removeRows','getMatrix','117IZQUtk','getCell','STRING','updateConfig$','rgb(80,102,248)','_initMergeWithSparkline','3484qwksQi','refRangeHandle','item','defineProperty','moveRows','hasValue','removeSparkline'];_0x3d04=function(){return _0x5936e0;};return _0x3d04();}import{Subject as _0xc09d78}from'rxjs';import{UniverLicensePlugin as _0x245b01}from'@univerjs-pro/license';function Fe(_0x92eaac,_0x265c23){const _0x492674=_0x196211,_0x41ad9d=new _0x30188c(),_0x2ce139=[],_0x4cef4b=_0x92eaac['length']>0x1;let _0x153fe5=0x0,_0x15750f=0x0;for(const _0x494745 of _0x92eaac)_0x153fe5+=_0x494745[_0x492674(0xea)]-_0x494745[_0x492674(0xcf)]+0x1,_0x15750f+=_0x494745[_0x492674(0x125)]-_0x494745[_0x492674(0xda)]+0x1;for(const _0x6ae746 of _0x265c23)for(let _0x1fbb97=_0x6ae746[_0x492674(0xcf)];_0x1fbb97<=_0x6ae746[_0x492674(0xea)];_0x1fbb97++)for(let _0x1001cb=_0x6ae746['startColumn'];_0x1001cb<=_0x6ae746['endColumn'];_0x1001cb++)_0x2ce139[_0x492674(0xb0)]({'row':_0x1fbb97,'column':_0x1001cb});if(_0x2ce139['length']===_0x153fe5)_0x4cef4b?_0x2ce139[_0x492674(0x126)]((_0xd3336b,_0x4ad987)=>{const _0x2dda3c=_0x492674,_0x3af8e4=_0x92eaac[_0x4ad987],_0x5cc2b6={'startRow':_0x3af8e4[_0x2dda3c(0xcf)],'startColumn':_0x3af8e4[_0x2dda3c(0xda)],'endRow':_0x3af8e4['startRow'],'endColumn':_0x3af8e4['endColumn']};_0x41ad9d[_0x2dda3c(0x119)](_0xd3336b[_0x2dda3c(0xe1)],_0xd3336b[_0x2dda3c(0xfa)],_0x5cc2b6);}):_0x2ce139[_0x492674(0x126)]((_0x54b775,_0x1b8bac)=>{const _0x5f4d17=_0x492674,_0x34403f=_0x92eaac[0x0],_0x13db5f={'startRow':_0x34403f[_0x5f4d17(0xcf)]+_0x1b8bac,'startColumn':_0x34403f[_0x5f4d17(0xda)],'endRow':_0x34403f[_0x5f4d17(0xcf)]+_0x1b8bac,'endColumn':_0x34403f[_0x5f4d17(0x125)]};_0x41ad9d[_0x5f4d17(0x119)](_0x54b775['row'],_0x54b775[_0x5f4d17(0xfa)],_0x13db5f);});else{if(_0x2ce139[_0x492674(0x8e)]===_0x15750f)_0x4cef4b?_0x2ce139[_0x492674(0x126)]((_0x5b039a,_0x524f92)=>{const _0x278c99=_0x492674,_0x2d0cd8=_0x92eaac[_0x524f92],_0x49f180={'startRow':_0x2d0cd8[_0x278c99(0xcf)],'startColumn':_0x2d0cd8[_0x278c99(0xda)],'endRow':_0x2d0cd8[_0x278c99(0xea)],'endColumn':_0x2d0cd8['startColumn']};_0x41ad9d[_0x278c99(0x119)](_0x5b039a[_0x278c99(0xe1)],_0x5b039a[_0x278c99(0xfa)],_0x49f180);}):_0x2ce139[_0x492674(0x126)]((_0x577b99,_0x2535c8)=>{const _0x35d1d2=_0x492674,_0x4dfe02=_0x92eaac[0x0],_0x5a7f0c={'startRow':_0x4dfe02[_0x35d1d2(0xcf)],'startColumn':_0x4dfe02['startColumn']+_0x2535c8,'endRow':_0x4dfe02[_0x35d1d2(0xea)],'endColumn':_0x4dfe02['startColumn']+_0x2535c8};_0x41ad9d[_0x35d1d2(0x119)](_0x577b99['row'],_0x577b99[_0x35d1d2(0xfa)],_0x5a7f0c);});else{if(_0x2ce139[_0x492674(0x8e)]===_0x92eaac[_0x492674(0x8e)])_0x92eaac[_0x492674(0x121)](_0x42519b=>!(_0x42519b[_0x492674(0xcf)]!==_0x42519b['endRow']&&_0x42519b[_0x492674(0xda)]!==_0x42519b[_0x492674(0x125)]))&&_0x2ce139[_0x492674(0x126)]((_0x3857cb,_0x102fc9)=>{const _0x126149=_0x492674,_0x5d6ebb=_0x92eaac[_0x102fc9];_0x41ad9d[_0x126149(0x119)](_0x3857cb[_0x126149(0xe1)],_0x3857cb[_0x126149(0xfa)],_0x5d6ebb);});else throw new Error('Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.');}}return _0x41ad9d;}const Ke=_0x196211(0x80),Le={'standard':[_0x196211(0x12d),_0x196211(0xd4)],'specialty':[_0x196211(0x12a),_0x196211(0x12b)],'distinctive':[_0x196211(0x122),_0x196211(0x109)],'soft':[_0x196211(0xc4),_0x196211(0xcd)],'fresh':[_0x196211(0xb3),_0x196211(0x11c)]},on=['highPoint','firstPoint',_0x196211(0x7c),_0x196211(0xbc),_0x196211(0x7b),_0x196211(0x82)];var Xe=(_0x2f70f3=>(_0x2f70f3[_0x196211(0x92)]=_0x196211(0xdd),_0x2f70f3['SPECIALTY']=_0x196211(0xec),_0x2f70f3['DISTINCTIVE']='distinctive',_0x2f70f3[_0x196211(0xfe)]='soft',_0x2f70f3[_0x196211(0x96)]=_0x196211(0x83),_0x2f70f3[_0x196211(0x116)]='custom',_0x2f70f3))(Xe||{}),Dt=(_0x67d0de=>(_0x67d0de[_0x67d0de['LINE_CHART']=0x1]=_0x196211(0x11f),_0x67d0de[_0x67d0de[_0x196211(0xe5)]=0x2]='BAR_CHART',_0x67d0de[_0x67d0de[_0x196211(0x84)]=0x3]=_0x196211(0x84),_0x67d0de[_0x67d0de['PIE_CHART']=0x4]=_0x196211(0xe4),_0x67d0de))(Dt||{}),J=(_0x1a9b37=>(_0x1a9b37[_0x196211(0xdb)]=_0x196211(0xb7),_0x1a9b37['ZERO_VALUE']='zero_value',_0x1a9b37[_0x196211(0x123)]='connect_with_line',_0x1a9b37))(J||{}),De=(_0x2507ce=>(_0x2507ce[_0x2507ce[_0x196211(0x10c)]=0x1]=_0x196211(0x10c),_0x2507ce[_0x2507ce[_0x196211(0x117)]=0x2]=_0x196211(0x117),_0x2507ce[_0x2507ce[_0x196211(0xdf)]=0x3]='CUSTOM_EXTREMUM',_0x2507ce))(De||{}),Et=Object[_0x196211(0x77)],Vt=(_0x30fd32,_0x558087,_0x23bd14,_0x18b603)=>{const _0x3731ff=_0x196211;for(var _0x1b5ccf=_0x18b603>0x1?void 0x0:_0x18b603?Et(_0x558087,_0x23bd14):_0x558087,_0x48bb1d=_0x30fd32[_0x3731ff(0x8e)]-0x1,_0x32041a;_0x48bb1d>=0x0;_0x48bb1d--)(_0x32041a=_0x30fd32[_0x48bb1d])&&(_0x1b5ccf=_0x32041a(_0x1b5ccf)||_0x1b5ccf);return _0x1b5ccf;},yt=(_0x9c9d2,_0x4f94e2)=>(_0x18e5db,_0x2b7b61)=>_0x4f94e2(_0x18e5db,_0x2b7b61,_0x9c9d2);let x=class extends _0x17ef6f{constructor(_0x5d4a9f){const _0x1e51d9=_0x196211;super(),se(this,_0x1e51d9(0xe6),new Map()),se(this,_0x1e51d9(0xe9),new Map()),se(this,_0x1e51d9(0x11e),new _0xc09d78()),se(this,_0x1e51d9(0xc3),this[_0x1e51d9(0x11e)][_0x1e51d9(0x128)]()),this[_0x1e51d9(0x115)]=_0x5d4a9f;}[_0x196211(0xf5)](_0x5479e7,_0x108398){const _0x15eed6=_0x196211;let _0x377bd9=this[_0x15eed6(0xe6)][_0x15eed6(0xf9)](_0x5479e7);_0x377bd9||(_0x377bd9=new Map(),this[_0x15eed6(0xe6)][_0x15eed6(0x94)](_0x5479e7,_0x377bd9));let _0x38ae4a=_0x377bd9[_0x15eed6(0xf9)](_0x108398);return _0x38ae4a||(_0x38ae4a=new Map(),_0x377bd9[_0x15eed6(0x94)](_0x108398,_0x38ae4a)),_0x38ae4a;}[_0x196211(0xdc)](_0x46e888,_0x46a6cd){const _0x249bf8=_0x196211;let _0x2eddda=this[_0x249bf8(0xe9)][_0x249bf8(0xf9)](_0x46e888);_0x2eddda||(_0x2eddda=new Map(),this[_0x249bf8(0xe9)][_0x249bf8(0x94)](_0x46e888,_0x2eddda));let _0x192267=_0x2eddda[_0x249bf8(0xf9)](_0x46a6cd);return _0x192267||(_0x192267={'matrix':new _0x30188c(),'extra':{}},_0x2eddda[_0x249bf8(0x94)](_0x46a6cd,_0x192267)),_0x192267;}[_0x196211(0xf8)](_0x23debc,_0x174aa5,_0x3a9b5b,_0x9ccee3=_0x196211(0x94)){const _0x5275ab=_0x196211;var _0x55a1bd,_0x2ad6c2,_0x35e791,_0x211d2b,_0x5e4cbd,_0x42d3ee,_0x32f70e,_0x5b6557,_0x346ce9,_0x37a648,_0x2961c2,_0x6ebbcc,_0x36c937;const _0x28a87f=(_0x2ad6c2=(_0x55a1bd=this[_0x5275ab(0xe6)][_0x5275ab(0xf9)](_0x23debc))==null?void 0x0:_0x55a1bd['get'](_0x174aa5))==null?void 0x0:_0x2ad6c2[_0x5275ab(0xf9)](_0x3a9b5b);if(!_0x28a87f)return;const _0x409e63=_0x5e9d4e(this[_0x5275ab(0x115)],{'unitId':_0x23debc,'subUnitId':_0x174aa5});if(!_0x409e63)return;const _0x2da6a5=this[_0x5275ab(0xdc)](_0x23debc,_0x174aa5),{extra:_0x57d81c,matrix:_0x33f8e8}=_0x2da6a5,{worksheet:_0x2eb39d}=_0x409e63;let _0x2814fe=Number[_0x5275ab(0x107)],_0x2016e7=Number['MAX_SAFE_INTEGER'];const _0x12d8b8=(_0x35e791=_0x28a87f[_0x5275ab(0x106)][_0x5275ab(0x9b)])!=null?_0x35e791:!0x1;_0x28a87f[_0x5275ab(0xb6)]['forValue']((_0x1fdd66,_0x2caef4,_0x4b5eea)=>{const _0x561714=_0x5275ab;var _0x10395b,_0x1433aa,_0x742ab7;const _0xc4f4c7=_0x4b5eea;let _0x3cd619=Number[_0x561714(0x107)],_0x261b05=Number[_0x561714(0x110)],_0x132113=0x0,_0x5a6338=0x0;const _0x6ce713=[];if(!_0x3f0d7a(_0xc4f4c7))_0x33f8e8['setValue'](_0x1fdd66,_0x2caef4,{'groupId':_0x3a9b5b,'data':[],'max':_0x3cd619,'min':_0x261b05,'highIndex':_0x132113,'lowIndex':_0x5a6338,'negativeIndexes':_0x6ce713});else{const _0x28284d=[];for(let _0x27498b=_0xc4f4c7[_0x561714(0xcf)];_0x27498b<=_0xc4f4c7[_0x561714(0xea)];_0x27498b++){for(let _0x33e330=_0xc4f4c7['startColumn'];_0x33e330<=_0xc4f4c7[_0x561714(0x125)];_0x33e330++){const _0x12200a=_0x2eb39d['getRowVisible'](_0x27498b),_0x3d5ca6=_0x2eb39d[_0x561714(0x7f)](_0x33e330);if(!_0x12d8b8&&(!_0x12200a||!_0x3d5ca6))continue;let _0x331d7c=0x0;const _0x4518a5=((_0x10395b=_0x2eb39d[_0x561714(0xba)](_0x27498b,_0x33e330))==null?void 0x0:_0x10395b['v'])!==void 0x0?_0x2eb39d[_0x561714(0xba)](_0x27498b,_0x33e330):_0x2eb39d[_0x561714(0xc1)](_0x27498b,_0x33e330);if(!_0x4518a5||_0x4518a5['v']===void 0x0||_0x4518a5['v']===null){const _0x2d1990=(_0x1433aa=_0x28a87f['config'][_0x561714(0xa4)])!=null?_0x1433aa:J[_0x561714(0xdb)];_0x2d1990===J[_0x561714(0x11b)]?_0x331d7c=0x0:_0x2d1990===J[_0x561714(0xdb)]?_0x331d7c=_0x561714(0xac):_0x2d1990===J[_0x561714(0x123)]&&(_0x331d7c=_0x561714(0x98));}else{if(_0x4518a5['t']===_0x2eddb6[_0x561714(0xc2)]||_0x4518a5['t']===_0x2eddb6[_0x561714(0xd8)]){const _0x4d80ac=(_0x742ab7=_0x28a87f[_0x561714(0x106)][_0x561714(0x91)])!=null?_0x742ab7:J[_0x561714(0xdb)];_0x4d80ac===J[_0x561714(0x11b)]?_0x331d7c=0x0:_0x4d80ac===J[_0x561714(0xdb)]?_0x331d7c=_0x561714(0xac):_0x4d80ac===J[_0x561714(0x123)]&&(_0x331d7c=_0x561714(0x98));}else _0x4518a5['t']===_0x2eddb6[_0x561714(0xa1)]?_0x331d7c=_0x4518a5['v']?0x1:0x0:_0x4518a5['t']===_0x2eddb6[_0x561714(0xd3)]?_0x331d7c=Number(_0x4518a5['v']):_0x331d7c=_0x4518a5['v'];}if(_0x28284d[_0x561714(0xb0)](_0x331d7c),typeof _0x331d7c=='number'){_0x3cd619=Math[_0x561714(0x104)](_0x3cd619,_0x331d7c),_0x2814fe=Math[_0x561714(0x104)](_0x2814fe,_0x331d7c),_0x2016e7=Math['min'](_0x2016e7,_0x331d7c),_0x261b05=Math[_0x561714(0x72)](_0x261b05,_0x331d7c);const _0xef071f=typeof _0x28284d[_0x132113]=='number'?Number(_0x28284d[_0x132113]):Number[_0x561714(0x107)];_0x331d7c>_0xef071f&&(_0x132113=_0x28284d[_0x561714(0x8e)]-0x1);const _0x68469d=typeof _0x28284d[_0x5a6338]=='number'?Number(_0x28284d[_0x5a6338]):Number['MAX_SAFE_INTEGER'];_0x331d7c<_0x68469d&&(_0x5a6338=_0x28284d[_0x561714(0x8e)]-0x1),_0x331d7c<0x0&&_0x6ce713[_0x561714(0xb0)](_0x28284d['length']-0x1);}}_0x33f8e8[_0x561714(0x119)](_0x1fdd66,_0x2caef4,{'groupId':_0x3a9b5b,'data':_0x28284d,'max':_0x3cd619,'min':_0x261b05,'highIndex':_0x132113,'lowIndex':_0x5a6338,'negativeIndexes':_0x6ce713});}}});let _0x371322=_0x2814fe;((_0x211d2b=_0x28a87f[_0x5275ab(0x106)][_0x5275ab(0xeb)])==null?void 0x0:_0x211d2b[_0x5275ab(0x100)])===De[_0x5275ab(0xdf)]&&(_0x371322=(_0x42d3ee=(_0x5e4cbd=_0x28a87f[_0x5275ab(0x106)][_0x5275ab(0xeb)])==null?void 0x0:_0x5e4cbd[_0x5275ab(0x97)])!=null?_0x42d3ee:_0x2814fe);let _0x33815c=_0x2016e7;((_0x32f70e=_0x28a87f[_0x5275ab(0x106)][_0x5275ab(0xb8)])==null?void 0x0:_0x32f70e[_0x5275ab(0x100)])===De['CUSTOM_EXTREMUM']&&(_0x33815c=(_0x346ce9=(_0x5b6557=_0x28a87f[_0x5275ab(0x106)]['extremumMin'])==null?void 0x0:_0x5b6557[_0x5275ab(0x97)])!=null?_0x346ce9:_0x2016e7);const _0xbb47c5=(_0x37a648=_0x28a87f[_0x5275ab(0x106)]['themeType'])!=null?_0x37a648:Xe[_0x5275ab(0x92)],_0x4e1fb0=(_0x36c937=(_0x6ebbcc=_0x28a87f[_0x5275ab(0x106)][_0x5275ab(0xa9)])!=null?_0x6ebbcc:(_0x2961c2=Le[_0xbb47c5])==null?void 0x0:_0x2961c2[0x0])!=null?_0x36c937:Le[_0x5275ab(0xdd)][0x0],_0x26b06f=new _0xac6cd0(_0x4e1fb0),_0x21ab43=_0x26b06f[_0x5275ab(0xa3)](0.2)['toRgbString'](),_0x4175b6=_0x26b06f[_0x5275ab(0xa3)](0.05)[_0x5275ab(0xab)]();_0x57d81c[_0x3a9b5b]={'groupMax':_0x2814fe,'groupMin':_0x2016e7,'showMax':_0x371322,'showMin':_0x33815c,'startGradient':_0x21ab43,'endGradient':_0x4175b6},this[_0x5275ab(0x11e)][_0x5275ab(0xe0)]({'unitId':_0x23debc,'subUnitId':_0x174aa5,'groupId':_0x3a9b5b,'config':_0x28a87f,'type':_0x9ccee3});}['addSparkline'](_0x81bf87,_0x32f656,_0x21d463,_0x2bf723){const _0x5f2379=_0x196211;this[_0x5f2379(0xf5)](_0x81bf87,_0x32f656)[_0x5f2379(0x94)](_0x21d463,_0x2bf723),this[_0x5f2379(0xf8)](_0x81bf87,_0x32f656,_0x21d463,_0x5f2379(0xe8));}[_0x196211(0xf0)](_0x56ad80,_0x52ac72,_0x404743,_0x20ed4a){const _0x3edba7=_0x196211;var _0xca3972;const _0x3eab90=(_0xca3972=this[_0x3edba7(0xe6)][_0x3edba7(0xf9)](_0x56ad80))==null?void 0x0:_0xca3972['get'](_0x52ac72);_0x404743[_0x3edba7(0x126)](_0x482030=>{const _0x4cc34d=_0x3edba7;_0x3eab90!=null&&_0x3eab90[_0x4cc34d(0x11a)](_0x482030)&&(_0x3eab90['set'](_0x482030,_0x20ed4a),this[_0x4cc34d(0xf8)](_0x56ad80,_0x52ac72,_0x482030));});}[_0x196211(0xcc)](_0x55ef5d,_0x281665,_0x725160){const _0x41fbfc=_0x196211;var _0x5dbdf3,_0x1c416b;const _0xe0c99b=this['_sparklineModel'][_0x41fbfc(0xf9)](_0x55ef5d);if(_0xe0c99b){const _0x4b44e3=_0xe0c99b[_0x41fbfc(0xf9)](_0x281665);if(_0x4b44e3){_0x4b44e3['delete'](_0x725160);const _0x1caafd=(_0x5dbdf3=this[_0x41fbfc(0xe9)][_0x41fbfc(0xf9)](_0x55ef5d))==null?void 0x0:_0x5dbdf3[_0x41fbfc(0xf9)](_0x281665);(_0x1c416b=_0x1caafd==null?void 0x0:_0x1caafd[_0x41fbfc(0xff)])==null||_0x1c416b['forValue']((_0x282384,_0x16dedb,_0x563ec6)=>{const _0x4a6bc6=_0x41fbfc;(_0x563ec6==null?void 0x0:_0x563ec6[_0x4a6bc6(0x9f)])===_0x725160&&(_0x1caafd==null||_0x1caafd['matrix'][_0x4a6bc6(0xfd)](_0x282384,_0x16dedb));}),this[_0x41fbfc(0x11e)][_0x41fbfc(0xe0)]({'unitId':_0x55ef5d,'subUnitId':_0x281665,'groupId':_0x725160,'type':_0x41fbfc(0x8f)});}}}[_0x196211(0x76)](_0x3b8804,_0x511bfd,_0x3322c5,_0x195532){const _0x29da58=_0x196211;var _0x3ff1de,_0x4422c5,_0x4959ea,_0x79dca8;const _0x5e42a4=(_0x3ff1de=this[_0x29da58(0xe9)]['get'](_0x3b8804))==null?void 0x0:_0x3ff1de[_0x29da58(0xf9)](_0x511bfd),_0x2922d3=_0x5e42a4==null?void 0x0:_0x5e42a4[_0x29da58(0xff)][_0x29da58(0x9e)](_0x3322c5,_0x195532);if(_0x2922d3){const {groupId:_0x21fd85}=_0x2922d3,_0x9e93ac=(_0x4422c5=this['_sparklineModel'][_0x29da58(0xf9)](_0x3b8804))==null?void 0x0:_0x4422c5[_0x29da58(0xf9)](_0x511bfd);(_0x4959ea=_0x9e93ac==null?void 0x0:_0x9e93ac['get'](_0x21fd85))==null||_0x4959ea[_0x29da58(0xb6)][_0x29da58(0xfd)](_0x3322c5,_0x195532),(_0x79dca8=_0x9e93ac==null?void 0x0:_0x9e93ac[_0x29da58(0xf9)](_0x21fd85))!=null&&_0x79dca8[_0x29da58(0xb6)][_0x29da58(0xcb)]()||_0x9e93ac==null||_0x9e93ac[_0x29da58(0x86)](_0x21fd85),_0x5e42a4==null||_0x5e42a4[_0x29da58(0xff)][_0x29da58(0xfd)](_0x3322c5,_0x195532),this[_0x29da58(0x11e)][_0x29da58(0xe0)]({'unitId':_0x3b8804,'subUnitId':_0x511bfd,'groupId':_0x21fd85,'type':_0x29da58(0x8f)});}}[_0x196211(0xd6)](_0x3a3fed,_0x11f5e3,_0x339f3b){const _0x27ab76=_0x196211;var _0xe1851f,_0x304168,_0x2d4631,_0x498f83;const _0x6ff7f3=(_0x2d4631=(_0x304168=(_0xe1851f=this['_sparklineModel'][_0x27ab76(0xf9)](_0x3a3fed))==null?void 0x0:_0xe1851f[_0x27ab76(0xf9)](_0x11f5e3))==null?void 0x0:_0x304168[_0x27ab76(0xf9)](_0x339f3b))==null?void 0x0:_0x2d4631['sparklines'],_0x57c3cb=(_0x498f83=this[_0x27ab76(0xe9)][_0x27ab76(0xf9)](_0x3a3fed))==null?void 0x0:_0x498f83[_0x27ab76(0xf9)](_0x11f5e3);if(_0x6ff7f3&&_0x57c3cb){const {matrix:_0x94c913,extra:_0x4aaa75}=_0x57c3cb;_0x6ff7f3[_0x27ab76(0xbd)]((_0x4c421e,_0x3572e1,_0x517252)=>{const _0x4fcf74=_0x27ab76;_0x94c913[_0x4fcf74(0xfd)](_0x4c421e,_0x3572e1);}),delete _0x4aaa75[_0x339f3b];}}['getSubUnitSparkline'](_0xc674f4,_0x1685b4){const _0x434e09=_0x196211;var _0x2240f3;return(_0x2240f3=this[_0x434e09(0xe6)]['get'](_0xc674f4))==null?void 0x0:_0x2240f3[_0x434e09(0xf9)](_0x1685b4);}[_0x196211(0x75)](_0x1797b6,_0x4c2a02,_0x2ad594){const _0x5ed86e=_0x196211;var _0x4bd49d,_0x1c9c07;return(_0x1c9c07=(_0x4bd49d=this[_0x5ed86e(0xe6)][_0x5ed86e(0xf9)](_0x1797b6))==null?void 0x0:_0x4bd49d[_0x5ed86e(0xf9)](_0x4c2a02))==null?void 0x0:_0x1c9c07[_0x5ed86e(0xf9)](_0x2ad594);}[_0x196211(0x108)](_0x1ec8d4,_0x4e26a1,_0x417680,_0x2d15e6){const _0x574302=_0x196211;var _0x35d1e1,_0x1ab02d,_0x3ba4c7;return(_0x3ba4c7=(_0x1ab02d=(_0x35d1e1=this[_0x574302(0xe9)]['get'](_0x1ec8d4))==null?void 0x0:_0x35d1e1[_0x574302(0xf9)](_0x4e26a1))==null?void 0x0:_0x1ab02d['matrix']['getValue'](_0x417680,_0x2d15e6))==null?void 0x0:_0x3ba4c7[_0x574302(0x9f)];}[_0x196211(0xa7)](_0x247175,_0x208c17){const _0x3d7c60=_0x196211;var _0x2dd3b8;const _0x50b39d=this['_ensureAnchorMatrix'](_0x247175,_0x208c17);_0x50b39d['matrix'][_0x3d7c60(0xbd)]((_0x29c7f9,_0xd57e8b)=>{_0x50b39d['matrix']['realDeleteValue'](_0x29c7f9,_0xd57e8b);});const _0x18c8e7=(_0x2dd3b8=this[_0x3d7c60(0xe6)][_0x3d7c60(0xf9)](_0x247175))==null?void 0x0:_0x2dd3b8[_0x3d7c60(0xf9)](_0x208c17);if(_0x18c8e7){for(const [_0x41a757]of _0x18c8e7)this[_0x3d7c60(0xf8)](_0x247175,_0x208c17,_0x41a757);}}['getSparklineCache'](){const _0x3d8e86=_0x196211;return{'sparklineModel':this[_0x3d8e86(0xe6)],'sparklineAnchorMap':this[_0x3d8e86(0xe9)]};}[_0x196211(0x81)](_0x3d8f0f){const _0x5e208f=_0x196211,_0x43353b={};if(this['_sparklineModel'][_0x5e208f(0x11a)](_0x3d8f0f)){_0x43353b[_0x3d8f0f]={};const _0x297f15=this['_sparklineModel'][_0x5e208f(0xf9)](_0x3d8f0f);_0x297f15!=null&&_0x297f15[_0x5e208f(0x112)]&&Array[_0x5e208f(0xf6)](_0x297f15[_0x5e208f(0x127)]())[_0x5e208f(0x126)](_0x610d0c=>{const _0x8300d8=_0x5e208f;_0x43353b[_0x3d8f0f][_0x610d0c]={};const _0x220103=_0x297f15[_0x8300d8(0xf9)](_0x610d0c);_0x220103!=null&&_0x220103['size']&&Array['from'](_0x220103[_0x8300d8(0x127)]())[_0x8300d8(0x126)](_0x1689cb=>{const _0x1a7ccf=_0x8300d8,_0x1c6a23=_0x220103[_0x1a7ccf(0xf9)](_0x1689cb);_0x1c6a23&&(_0x43353b[_0x3d8f0f][_0x610d0c][_0x1689cb]={'config':_0x1c6a23[_0x1a7ccf(0x106)],'sparklines':_0x1c6a23['sparklines']['getMatrix']()});});});}return _0x43353b;}['fromJSON'](_0x36e83a){const _0x3f931f=_0x196211;if(!_0x36e83a)return;Object[_0x3f931f(0x127)](_0x36e83a)[_0x3f931f(0x126)](_0x11c42e=>{const _0x430fb3=_0x3f931f,_0x2be578=_0x36e83a[_0x11c42e];_0x2be578&&Object[_0x430fb3(0x127)](_0x2be578)[_0x430fb3(0x126)](_0x30d6f5=>{const _0x314a57=_0x430fb3,_0x5e70ce=_0x2be578[_0x30d6f5];_0x5e70ce&&Object[_0x314a57(0x127)](_0x5e70ce)[_0x314a57(0x126)](_0x209c26=>{const _0x5a007b=_0x314a57,_0x472e61=_0x5e70ce[_0x209c26];if(_0x472e61){const _0x699c3={'config':_0x472e61[_0x5a007b(0x106)],'sparklines':new _0x30188c(_0x472e61['sparklines'])};this[_0x5a007b(0xa2)](_0x11c42e,_0x30d6f5,_0x209c26,_0x699c3);}});});});}[_0x196211(0x12c)](_0x5dbffe){const _0x23493c=_0x196211,_0x9a2ff4=this[_0x23493c(0xe6)][_0x23493c(0xf9)](_0x5dbffe);if(_0x9a2ff4){for(const [_0x3e8803]of _0x9a2ff4){const _0x515727=_0x9a2ff4['get'](_0x3e8803);if(_0x515727){for(const [_0x2eabe]of _0x515727)this[_0x23493c(0xd6)](_0x5dbffe,_0x3e8803,_0x2eabe);}}this[_0x23493c(0xe6)][_0x23493c(0x86)](_0x5dbffe);}}};x=Vt([yt(0x0,_0x145e78(_0x4c6c1a))],x);const V={'id':_0x196211(0x9c),'type':_0x512d0f[_0x196211(0xf4)],'handler':(_0x127fdf,_0x2d6e17)=>{const _0x564f4e=_0x196211;if(!_0x2d6e17)return!0x1;const {sparklineConfigMap:_0x4bd04f,unitId:_0x312bd5,subUnitId:_0x487a6d}=_0x2d6e17,_0xe9c4b4=_0x127fdf['get'](x);return Object['entries'](_0x4bd04f)[_0x564f4e(0x126)](([_0x56de94,_0x555a2e])=>{const _0x42969a=_0x564f4e,_0x5e4430={'config':_0x555a2e[_0x42969a(0x106)],'sparklines':new _0x30188c(_0x555a2e[_0x42969a(0xb6)])};_0xe9c4b4[_0x42969a(0xa2)](_0x312bd5,_0x487a6d,_0x56de94,_0x5e4430);}),!0x0;}},y={'id':_0x196211(0xde),'type':_0x512d0f[_0x196211(0xf4)],'handler':(_0x4ba8ba,_0x4606af)=>{const _0x17ffb9=_0x196211;if(!_0x4606af)return!0x1;const {unitId:_0x19ef45,subUnitId:_0x57b48c,ranges:_0x412c56,isSingle:_0x46ba30,groupIds:_0x83ada}=_0x4606af,_0x1b2500=_0x4ba8ba['get'](x);return _0x83ada?(_0x83ada[_0x17ffb9(0x126)](_0x3c6666=>{const _0x2596dd=_0x17ffb9;_0x1b2500[_0x2596dd(0xcc)](_0x19ef45,_0x57b48c,_0x3c6666);}),!0x0):_0x412c56?(_0x412c56[_0x17ffb9(0x126)](_0x41c161=>{const _0x3fc2d1=_0x17ffb9;_0x146272[_0x3fc2d1(0x114)](_0x41c161,(_0x4551df,_0x56e869)=>{const _0x38d7ac=_0x3fc2d1,_0x2b4b1c=_0x1b2500['getSparkline'](_0x19ef45,_0x57b48c,_0x4551df,_0x56e869);_0x2b4b1c&&(_0x46ba30?_0x1b2500['removePartSparkline'](_0x19ef45,_0x57b48c,_0x4551df,_0x56e869):_0x1b2500[_0x38d7ac(0xcc)](_0x19ef45,_0x57b48c,_0x2b4b1c));});}),!0x0):!0x1;}},Nt={'id':_0x196211(0x10e),'type':_0x512d0f['COMMAND'],'handler':(_0x54cc0e,_0x44019c)=>{const _0x54a58e=_0x196211;if(!_0x44019c)return!0x1;const {sourceRanges:_0x4b78e7,targetRanges:_0x1fc68a,config:_0x530f20}=_0x44019c,_0xe83e05=_0x54cc0e[_0x54a58e(0xf9)](_0x3cd76b),_0x2bb417='g_'+_0xdf724a(0x6),_0x3a82dd=Fe(_0x4b78e7,_0x1fc68a),_0x295c83={'config':_0x530f20!=null?_0x530f20:{},'sparklines':_0x3a82dd['getMatrix']()},_0x1f288b=_0x54cc0e[_0x54a58e(0xf9)](_0x4c6c1a),_0xdb47a7=_0x54cc0e[_0x54a58e(0xf9)](x),_0x4c9c5e=_0x5e9d4e(_0x1f288b);if(!_0x4c9c5e)return!0x1;const {unitId:_0x184231,subUnitId:_0x1e36d0}=_0x4c9c5e,_0x1e631a=_0x54cc0e[_0x54a58e(0xf9)](_0x2a59fd),_0x344599=[],_0x34e92b=[],_0x484f46={},_0x408a99={},_0x277edf=new Set([_0x2bb417]);_0x3a82dd[_0x54a58e(0xbd)]((_0x50087e,_0x3678f9,_0x4444cf)=>{const _0x2c2bcc=_0x54a58e,_0x3d1cbd=_0xdb47a7[_0x2c2bcc(0x108)](_0x184231,_0x1e36d0,_0x50087e,_0x3678f9);if(_0x3d1cbd){const _0x20c34b=_0xdb47a7['getSparklineById'](_0x184231,_0x1e36d0,_0x3d1cbd);if(_0x20c34b){_0x277edf[_0x2c2bcc(0xe8)](_0x3d1cbd);let _0x1a24f1=_0x484f46[_0x3d1cbd],_0x1e2f5e=_0x408a99[_0x3d1cbd];_0x1e2f5e||(_0x1e2f5e={'config':_0x471ba1[_0x2c2bcc(0x8d)](_0x20c34b['config']),'sparklines':new _0x30188c(_0x20c34b[_0x2c2bcc(0xb6)][_0x2c2bcc(0xa6)]())},_0x408a99[_0x3d1cbd]=_0x1e2f5e),_0x1a24f1||(_0x1a24f1={'config':_0x471ba1[_0x2c2bcc(0x8d)](_0x20c34b[_0x2c2bcc(0x106)]),'sparklines':_0x20c34b[_0x2c2bcc(0xb6)][_0x2c2bcc(0xa6)]()},_0x484f46[_0x3d1cbd]=_0x1a24f1),_0x1e2f5e['sparklines'][_0x2c2bcc(0xfd)](_0x50087e,_0x3678f9);}}});const _0x5ed461={};return Object[_0x54a58e(0xd0)](_0x408a99)['forEach'](([_0x2604a5,_0x5acf63])=>{const _0x3f2a91=_0x54a58e;_0x5acf63[_0x3f2a91(0xb6)][_0x3f2a91(0xb5)]()&&(_0x5ed461[_0x2604a5]={'config':_0x5acf63[_0x3f2a91(0x106)],'sparklines':_0x5acf63[_0x3f2a91(0xb6)][_0x3f2a91(0xa6)]()});}),_0x5ed461[_0x2bb417]=_0x295c83,_0x344599['push']({'id':y['id'],'params':{'unitId':_0x184231,'subUnitId':_0x1e36d0,'groupIds':Array[_0x54a58e(0xf6)](_0x277edf),'isSingle':!0x1}}),_0x277edf[_0x54a58e(0x112)]>0x1&&(_0x34e92b[_0x54a58e(0xb0)]({'id':y['id'],'params':{'unitId':_0x184231,'subUnitId':_0x1e36d0,'groupIds':Array['from'](_0x277edf),'isSingle':!0x1}}),_0x344599[_0x54a58e(0xb0)]({'id':V['id'],'params':{'unitId':_0x184231,'subUnitId':_0x1e36d0,'sparklineConfigMap':_0x484f46}})),_0x34e92b[_0x54a58e(0xb0)]({'id':V['id'],'params':{'unitId':_0x184231,'subUnitId':_0x1e36d0,'sparklineConfigMap':_0x5ed461}}),_0x23819d(_0x34e92b,_0x1e631a),_0xe83e05[_0x54a58e(0x118)]({'unitID':_0x184231,'undoMutations':_0x344599,'redoMutations':_0x34e92b}),!0x0;}},Ot={'id':'sheet.command.remove-sparkline','type':_0x512d0f[_0x196211(0xae)],'handler':(_0x279c85,_0x4d28b9)=>{const _0x4cfe5a=_0x196211;var _0x2db469;const {isSingle:_0x4cdef7=!0x0}=_0x4d28b9||{},_0x420a70=_0x279c85[_0x4cfe5a(0xf9)](_0x2a59fd),_0x31d169=_0x279c85['get'](_0x4c6c1a),_0x2f213d=_0x279c85[_0x4cfe5a(0xf9)](x),_0x42f8d0=_0x279c85['get'](_0x3cd76b),_0x73c9fe=_0x5e9d4e(_0x31d169);if(!_0x73c9fe)return!0x1;const _0xd46814=_0x279c85[_0x4cfe5a(0xf9)](_0x1bec73),_0x5c097b=(_0x2db469=_0x4d28b9==null?void 0x0:_0x4d28b9['ranges'])!=null?_0x2db469:_0xd46814[_0x4cfe5a(0xfb)]()[_0x4cfe5a(0xa8)](_0x38708c=>_0x38708c[_0x4cfe5a(0x73)]),{unitId:_0x2a3019,subUnitId:_0x13463f}=_0x73c9fe,_0x1106d4=[],_0x714c53=[];_0x1106d4['push']({'id':y['id'],'params':{'unitId':_0x2a3019,'subUnitId':_0x13463f,'ranges':_0x5c097b,'isSingle':_0x4cdef7}});const _0x3e81d2=[],_0x2b53fc={};return _0x5c097b['forEach'](_0x357734=>{const _0x5319a1=_0x4cfe5a;_0x146272[_0x5319a1(0x114)](_0x357734,(_0x1caf59,_0x4183a5)=>{const _0x36d93a=_0x5319a1,_0x56be00=_0x2f213d[_0x36d93a(0x108)](_0x2a3019,_0x13463f,_0x1caf59,_0x4183a5);if(_0x56be00){const _0x241811=_0x2f213d[_0x36d93a(0x75)](_0x2a3019,_0x13463f,_0x56be00);_0x241811&&(_0x3e81d2['push'](_0x56be00),_0x2b53fc[_0x56be00]={'config':_0x471ba1['deepClone'](_0x241811['config']),'sparklines':_0x471ba1[_0x36d93a(0x8d)](_0x241811[_0x36d93a(0xb6)]['clone']())});}});}),_0x714c53[_0x4cfe5a(0xb0)]({'id':y['id'],'params':{'unitId':_0x2a3019,'subUnitId':_0x13463f,'groupIds':_0x3e81d2,'isSingle':!0x1}}),_0x714c53[_0x4cfe5a(0xb0)]({'id':V['id'],'params':{'unitId':_0x2a3019,'subUnitId':_0x13463f,'sparklineConfigMap':_0x2b53fc}}),_0x23819d(_0x1106d4,_0x420a70),_0x42f8d0['pushUndoRedo']({'unitID':_0x2a3019,'undoMutations':_0x714c53,'redoMutations':_0x1106d4}),!0x0;}},Oe={'id':_0x196211(0x90),'type':_0x512d0f[_0x196211(0xf4)],'handler':(_0x3a6888,_0x272834)=>{const _0x3b8d13=_0x196211;if(!_0x272834)return!0x1;const {unitId:_0x5591f8,subUnitId:_0x171e1c,groupIds:_0x588edd,config:_0x3938b8}=_0x272834,_0x33e14a=_0x3a6888[_0x3b8d13(0xf9)](x);return _0x588edd[_0x3b8d13(0x126)](_0x2dc635=>{const _0x88a2ff=_0x3b8d13,_0x19421c=_0x33e14a[_0x88a2ff(0x75)](_0x5591f8,_0x171e1c,_0x2dc635);if(_0x19421c){const _0x46bf63={'config':Object['assign']({},_0x19421c[_0x88a2ff(0x106)],_0x3938b8[_0x88a2ff(0x106)]),'sparklines':new _0x30188c(_0x19421c['sparklines'][_0x88a2ff(0xa6)]())};_0x33e14a['setSparkline'](_0x5591f8,_0x171e1c,[_0x2dc635],_0x46bf63);}}),!0x0;}},xt={'id':_0x196211(0xa0),'type':_0x512d0f[_0x196211(0xae)],'handler':(_0x5901c8,_0x1f437a)=>{const _0x2014d9=_0x196211;var _0x7414de,_0x43f62e,_0xb89ae4,_0x44beab;if(!_0x1f437a)return!0x1;const _0x2f815d=_0x5901c8['get'](_0x2a59fd),_0x202f7=_0x5901c8[_0x2014d9(0xf9)](_0x1bec73),_0x19b303=_0x5901c8['get'](x),_0x260f96=_0x5901c8[_0x2014d9(0xf9)](_0x4c6c1a),_0x266507=_0x5901c8[_0x2014d9(0xf9)](_0x3cd76b),_0x275133=_0x5e9d4e(_0x260f96);if(!_0x275133)return!0x1;const {unitId:_0x5a4766,subUnitId:_0x76cc5f}=_0x275133,_0xa4c857=(_0x7414de=_0x1f437a==null?void 0x0:_0x1f437a[_0x2014d9(0x120)])!=null?_0x7414de:_0x202f7['getCurrentSelections']()[_0x2014d9(0xa8)](_0x4118cd=>_0x4118cd[_0x2014d9(0x73)]),_0x556e58=(_0x43f62e=_0x19b303['getSparklineCache']()[_0x2014d9(0xe2)]['get'](_0x5a4766))==null?void 0x0:_0x43f62e['get'](_0x76cc5f),{isChangeDataSource:_0x2702f0,config:_0x256d66,combine:_0x2c19b9,unCombine:_0x3306bd}=_0x1f437a;if(_0x2c19b9){const _0x21052d=[],_0x34a499=[];_0x21052d[_0x2014d9(0xb0)]({'id':y['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'ranges':_0xa4c857,'isSingle':!0x0}});const _0x20a990='g_'+_0xdf724a(0x6),_0x1c3d02=new _0x30188c(),_0x37b96b=(_0xb89ae4=_0x19b303['getSparklineCache']()['sparklineModel'][_0x2014d9(0xf9)](_0x5a4766))==null?void 0x0:_0xb89ae4['get'](_0x76cc5f),_0x4ff157=new Set([_0x20a990]),_0xef3a31={};return _0xa4c857['forEach'](_0x3f9db5=>{const _0x1b4b75=_0x2014d9;var _0x49a20f,_0x81e63c;const {startRow:_0x1a37c4,endRow:_0xc8808d,startColumn:_0x1ca4c9,endColumn:_0x11c215}=_0x3f9db5;for(let _0x3aa7cf=_0x1a37c4;_0x3aa7cf<=_0xc8808d;_0x3aa7cf++)for(let _0x419e79=_0x1ca4c9;_0x419e79<=_0x11c215;_0x419e79++){const _0x5575bf=(_0x49a20f=_0x556e58==null?void 0x0:_0x556e58[_0x1b4b75(0xff)][_0x1b4b75(0x9e)](_0x3aa7cf,_0x419e79))==null?void 0x0:_0x49a20f[_0x1b4b75(0x9f)];if(_0x5575bf){_0x4ff157[_0x1b4b75(0xe8)](_0x5575bf);const _0x224895=_0x19b303[_0x1b4b75(0x75)](_0x5a4766,_0x76cc5f,_0x5575bf);_0x224895&&(_0xef3a31[_0x5575bf]={'config':_0x471ba1[_0x1b4b75(0x8d)](_0x224895[_0x1b4b75(0x106)]),'sparklines':_0x471ba1[_0x1b4b75(0x8d)](_0x224895[_0x1b4b75(0xb6)][_0x1b4b75(0xa6)]())});const _0x5ea6cb=(_0x81e63c=_0x37b96b==null?void 0x0:_0x37b96b[_0x1b4b75(0xf9)](_0x5575bf))==null?void 0x0:_0x81e63c[_0x1b4b75(0xb6)][_0x1b4b75(0x9e)](_0x3aa7cf,_0x419e79);_0x5ea6cb&&_0x1c3d02[_0x1b4b75(0x119)](_0x3aa7cf,_0x419e79,_0x5ea6cb);}}}),_0x21052d[_0x2014d9(0xb0)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x20a990]:{'config':_0x471ba1[_0x2014d9(0x8d)](_0x256d66['config']),'sparklines':_0x1c3d02[_0x2014d9(0xbf)]()}},'unitId':_0x5a4766,'subUnitId':_0x76cc5f}}),_0x34a499[_0x2014d9(0xb0)]({'id':y['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'isSingle':!0x1,'groupIds':Array['from'](_0x4ff157)}}),_0x34a499['push']({'id':V['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'sparklineConfigMap':_0xef3a31}}),_0x23819d(_0x21052d,_0x2f815d),_0x266507['pushUndoRedo']({'unitID':_0x5a4766,'undoMutations':_0x34a499,'redoMutations':_0x21052d}),!0x0;}else{if(_0x3306bd){const _0x2c8238=[],_0x49f4eb=[];_0x2c8238['push']({'id':y['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'ranges':_0xa4c857,'isSingle':!0x0}});const _0x5cc61e=(_0x44beab=_0x19b303[_0x2014d9(0xee)]()[_0x2014d9(0xef)][_0x2014d9(0xf9)](_0x5a4766))==null?void 0x0:_0x44beab[_0x2014d9(0xf9)](_0x76cc5f),_0x5e68e8={},_0x1da1a9=new Set(),_0x3e43d3={};return _0xa4c857['forEach'](_0x4212be=>{const _0x14dcfd=_0x2014d9;var _0x8cd2b1,_0x3cc997;const {startRow:_0x48317c,endRow:_0xd621d,startColumn:_0x145090,endColumn:_0x2fb48b}=_0x4212be;for(let _0x4c6f25=_0x48317c;_0x4c6f25<=_0xd621d;_0x4c6f25++)for(let _0x266685=_0x145090;_0x266685<=_0x2fb48b;_0x266685++){const _0x2d772f=(_0x8cd2b1=_0x556e58==null?void 0x0:_0x556e58['matrix'][_0x14dcfd(0x9e)](_0x4c6f25,_0x266685))==null?void 0x0:_0x8cd2b1[_0x14dcfd(0x9f)];if(_0x2d772f){const _0x1439d0=new _0x30188c(),_0x34e7c2='g_'+_0xdf724a(0x6);_0x1da1a9[_0x14dcfd(0xe8)](_0x2d772f),_0x1da1a9[_0x14dcfd(0xe8)](_0x34e7c2);const _0x4a15b1=_0x19b303[_0x14dcfd(0x75)](_0x5a4766,_0x76cc5f,_0x2d772f);_0x4a15b1&&(_0x3e43d3[_0x2d772f]={'config':_0x471ba1[_0x14dcfd(0x8d)](_0x4a15b1[_0x14dcfd(0x106)]),'sparklines':_0x471ba1[_0x14dcfd(0x8d)](_0x4a15b1[_0x14dcfd(0xb6)][_0x14dcfd(0xa6)]())});const _0x53f5cd=(_0x3cc997=_0x5cc61e==null?void 0x0:_0x5cc61e[_0x14dcfd(0xf9)](_0x2d772f))==null?void 0x0:_0x3cc997[_0x14dcfd(0xb6)][_0x14dcfd(0x9e)](_0x4c6f25,_0x266685);_0x53f5cd&&_0x1439d0[_0x14dcfd(0x119)](_0x4c6f25,_0x266685,_0x53f5cd),_0x5e68e8[_0x34e7c2]={'sparklines':_0x1439d0[_0x14dcfd(0xbf)](),'config':_0x471ba1[_0x14dcfd(0x8d)](_0x256d66[_0x14dcfd(0x106)])};}}}),_0x2c8238[_0x2014d9(0xb0)]({'id':V['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'sparklineConfigMap':_0x5e68e8}}),_0x49f4eb[_0x2014d9(0xb0)]({'id':y['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'isSingle':!0x1,'groupIds':Array[_0x2014d9(0xf6)](_0x1da1a9)}}),_0x49f4eb[_0x2014d9(0xb0)]({'id':V['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'sparklineConfigMap':_0x3e43d3}}),_0x23819d(_0x2c8238,_0x2f815d),_0x266507[_0x2014d9(0x118)]({'unitID':_0x5a4766,'undoMutations':_0x49f4eb,'redoMutations':_0x2c8238}),!0x0;}}if(_0x2702f0){const _0x16d322=_0x1f437a[_0x2014d9(0xce)];if(!_0x16d322)return!0x1;const {groupId:_0x21b854,sourceRanges:_0x1f851a,targetRanges:_0x2b0377,resetType:_0x50198e,primary:_0x224cfe}=_0x16d322,_0xd6aaf5=[],_0x47f2b4=[];_0xd6aaf5[_0x2014d9(0xb0)]({'id':y['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'ranges':_0xa4c857,'isSingle':!0x1,'groupIds':[_0x21b854]}}),_0x47f2b4[_0x2014d9(0xb0)]({'id':y['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'ranges':_0xa4c857,'isSingle':!0x1,'groupIds':[_0x21b854]}});let _0x387898;_0x50198e===_0x2014d9(0xc8)?(_0x387898=new _0x30188c(_0x256d66[_0x2014d9(0xb6)][_0x2014d9(0xa6)]()),_0x387898[_0x2014d9(0xfd)](_0x224cfe['actualRow'],_0x224cfe[_0x2014d9(0x10d)]),_0x387898[_0x2014d9(0x119)](_0x2b0377[0x0][_0x2014d9(0xcf)],_0x2b0377[0x0]['startColumn'],_0x1f851a[0x0])):_0x387898=Fe(_0x1f851a,_0x2b0377);const _0x4c653b={'config':_0x471ba1[_0x2014d9(0x8d)](_0x256d66[_0x2014d9(0x106)]),'sparklines':_0x387898[_0x2014d9(0xbf)]()},_0x487887={'config':_0x471ba1['deepClone'](_0x256d66[_0x2014d9(0x106)]),'sparklines':_0x471ba1['deepClone'](_0x256d66[_0x2014d9(0xb6)][_0x2014d9(0xa6)]())};_0xd6aaf5['push']({'id':V['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'sparklineConfigMap':{[_0x21b854]:_0x4c653b}}}),_0x47f2b4['push']({'id':V['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'sparklineConfigMap':{[_0x21b854]:_0x487887}}}),_0x23819d(_0xd6aaf5,_0x2f815d),_0x266507[_0x2014d9(0x118)]({'unitID':_0x5a4766,'undoMutations':_0x47f2b4,'redoMutations':_0xd6aaf5});}else{const _0x21af37=[],_0x2ca96f=[],_0x362c48=new Set(),_0x593f1e={};_0xa4c857[_0x2014d9(0x126)](_0x6e5638=>{const _0x1d6a3f=_0x2014d9;var _0x5ca286;const {startRow:_0x4279ca,endRow:_0x12365b,startColumn:_0x154bd3,endColumn:_0x33e310}=_0x6e5638;for(let _0x558cc3=_0x4279ca;_0x558cc3<=_0x12365b;_0x558cc3++)for(let _0x5b2dba=_0x154bd3;_0x5b2dba<=_0x33e310;_0x5b2dba++){const _0x1f35a0=(_0x5ca286=_0x556e58==null?void 0x0:_0x556e58['matrix'][_0x1d6a3f(0x9e)](_0x558cc3,_0x5b2dba))==null?void 0x0:_0x5ca286[_0x1d6a3f(0x9f)];if(_0x1f35a0){_0x362c48[_0x1d6a3f(0xe8)](_0x1f35a0);const _0x22e9b0=_0x19b303['getSparklineById'](_0x5a4766,_0x76cc5f,_0x1f35a0);_0x22e9b0&&(_0x593f1e[_0x1f35a0]={'config':_0x471ba1['deepClone'](_0x22e9b0['config']),'sparklines':_0x471ba1[_0x1d6a3f(0x8d)](_0x22e9b0[_0x1d6a3f(0xb6)][_0x1d6a3f(0xa6)]())});}}}),_0x2ca96f['push']({'id':Oe['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'groupIds':Array['from'](_0x362c48),'config':{'config':_0x471ba1[_0x2014d9(0x8d)](_0x256d66[_0x2014d9(0x106)]),'sparklines':_0x256d66[_0x2014d9(0xb6)]['getMatrix']()}}}),_0x21af37[_0x2014d9(0xb0)]({'id':y['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'isSingle':!0x1,'groupIds':Array[_0x2014d9(0xf6)](_0x362c48)}}),_0x21af37[_0x2014d9(0xb0)]({'id':V['id'],'params':{'unitId':_0x5a4766,'subUnitId':_0x76cc5f,'sparklineConfigMap':_0x593f1e}}),_0x23819d(_0x2ca96f,_0x2f815d),_0x266507[_0x2014d9(0x118)]({'unitID':_0x5a4766,'undoMutations':_0x21af37,'redoMutations':_0x2ca96f});}return!0x0;}};var Ut=Object['getOwnPropertyDescriptor'],Pt=(_0x2b36d1,_0x2093f1,_0x33342a,_0x348923)=>{for(var _0x5e7702=_0x348923>0x1?void 0x0:_0x348923?Ut(_0x2093f1,_0x33342a):_0x2093f1,_0x181ea7=_0x2b36d1['length']-0x1,_0x2f4b7a;_0x181ea7>=0x0;_0x181ea7--)(_0x2f4b7a=_0x2b36d1[_0x181ea7])&&(_0x5e7702=_0x2f4b7a(_0x5e7702)||_0x5e7702);return _0x5e7702;},fe=(_0x2927cc,_0x3c164e)=>(_0x50da06,_0x36748e)=>_0x3c164e(_0x50da06,_0x36748e,_0x2927cc);let Se=class extends _0x17ef6f{constructor(_0x124c46,_0x1f602c,_0x26bff0,_0x30df04){const _0x3d0043=_0x196211;super(),this[_0x3d0043(0xb4)]=_0x124c46,this['_sheetInterceptorService']=_0x1f602c,this[_0x3d0043(0x115)]=_0x26bff0,this['_sheetSelectionService']=_0x30df04,this[_0x3d0043(0x79)]();}[_0x196211(0x79)](){const _0x36e1d7=_0x196211;this[_0x36e1d7(0x101)](this[_0x36e1d7(0xbb)][_0x36e1d7(0x78)]({'getMutations':_0x17b5d5=>{const _0xdb07e2=_0x36e1d7,_0x44b804=[],_0x1d921b=[];if(_0x17b5d5['id']===_0x4c1676['id']){const _0x5e1ceb=_0x5e9d4e(this[_0xdb07e2(0x115)]);if(!_0x5e1ceb)return{'redos':_0x44b804,'undos':_0x1d921b};const {unitId:_0x419d22,subUnitId:_0x39b1aa,worksheet:_0x1eb5c7}=_0x5e1ceb,_0x198416=this[_0xdb07e2(0x111)][_0xdb07e2(0xfb)]()[_0xdb07e2(0xa8)](_0x4082b3=>_0x4082b3['range']),_0x6b391b=new Set(),_0x1a8bd6={},_0x1a265d={};_0x198416[_0xdb07e2(0x126)](_0x3f643c=>{const _0x5a8151=_0xdb07e2;_0x146272[_0x5a8151(0x114)](_0x3f643c,(_0x3325cd,_0x8a7735)=>{const _0x36a07d=_0x5a8151,_0x461164=this['_sparklineDataSourceModel'][_0x36a07d(0x108)](_0x419d22,_0x39b1aa,_0x3325cd,_0x8a7735);if(_0x461164&&!_0x6b391b[_0x36a07d(0x11a)](_0x461164)){const _0x87bd8d=this[_0x36a07d(0xb4)]['getSparklineById'](_0x419d22,_0x39b1aa,_0x461164);_0x87bd8d&&(_0x6b391b[_0x36a07d(0xe8)](_0x461164),_0x1a8bd6[_0x461164]={'config':_0x471ba1[_0x36a07d(0x8d)](_0x87bd8d[_0x36a07d(0x106)]),'sparklines':_0x471ba1[_0x36a07d(0x8d)](_0x87bd8d[_0x36a07d(0xb6)][_0x36a07d(0xa6)]())},_0x1a265d[_0x461164]={'config':_0x471ba1[_0x36a07d(0x8d)](_0x87bd8d[_0x36a07d(0x106)]),'sparklines':_0x471ba1[_0x36a07d(0x8d)](_0x87bd8d[_0x36a07d(0xb6)][_0x36a07d(0xa6)]())});}});}),Object[_0xdb07e2(0xfc)](_0x1a265d)[_0xdb07e2(0x126)](_0x4aa65e=>{const _0x2c7482=_0xdb07e2,_0x3c4a52=_0x4aa65e[_0x2c7482(0xb6)];new _0x30188c(_0x3c4a52)[_0x2c7482(0xbd)]((_0x39d35e,_0x489961,_0x1f769b)=>{const _0x2c481f=_0x2c7482;_0x198416[_0x2c481f(0x95)](_0x2015d7=>_0x240f2f[_0x2c481f(0x7d)](_0x2015d7,_0x55fe80(_0x39d35e,_0x489961)))&&delete _0x3c4a52[_0x39d35e][_0x489961];});}),_0x44b804[_0xdb07e2(0xb0)]({'id':y['id'],'params':{'unitId':_0x419d22,'subUnitId':_0x39b1aa,'groupIds':Array['from'](_0x6b391b),'isSingle':!0x1}}),_0x44b804[_0xdb07e2(0xb0)]({'id':V['id'],'params':{'unitId':_0x419d22,'subUnitId':_0x39b1aa,'sparklineConfigMap':_0x1a265d}}),_0x1d921b[_0xdb07e2(0xb0)]({'id':y['id'],'params':{'unitId':_0x419d22,'subUnitId':_0x39b1aa,'groupIds':Array[_0xdb07e2(0xf6)](_0x6b391b),'isSingle':!0x1}}),_0x1d921b['push']({'id':V['id'],'params':{'unitId':_0x419d22,'subUnitId':_0x39b1aa,'sparklineConfigMap':_0x1a8bd6}});}return{'redos':_0x44b804,'undos':_0x1d921b};}}));}};Se=Pt([fe(0x0,_0x145e78(x)),fe(0x1,_0x145e78(_0x16120f)),fe(0x2,_0x145e78(_0x4c6c1a)),fe(0x3,_0x145e78(_0x1bec73))],Se);var Tt=Object[_0x196211(0x77)],$t=(_0x293e18,_0x1f7967,_0x37d61e,_0x2dd354)=>{const _0x2ce9e4=_0x196211;for(var _0x3f46b9=_0x2dd354>0x1?void 0x0:_0x2dd354?Tt(_0x1f7967,_0x37d61e):_0x1f7967,_0x1c267a=_0x293e18[_0x2ce9e4(0x8e)]-0x1,_0x2b1a4f;_0x1c267a>=0x0;_0x1c267a--)(_0x2b1a4f=_0x293e18[_0x1c267a])&&(_0x3f46b9=_0x2b1a4f(_0x3f46b9)||_0x3f46b9);return _0x3f46b9;},Ge=(_0x295063,_0x39d60f)=>(_0x151889,_0x38fd54)=>_0x39d60f(_0x151889,_0x38fd54,_0x295063);let ke=class extends _0x17ef6f{constructor(_0x1a43f6,_0x23c33b){super(),this['_sheetInterceptorService']=_0x1a43f6,this['_sparklineDataSourceModel']=_0x23c33b,this['_initCopySheetWithSparkline']();}[_0x196211(0xaf)](){const _0x1b8542=_0x196211;this['disposeWithMe'](this[_0x1b8542(0xbb)]['interceptCommand']({'getMutations':_0x208b55=>{const _0x5d2026=_0x1b8542,_0x25c99c=[],_0x92e7af=[];if(_0x208b55['id']===_0x503130['id']){const _0x4bd470=_0x208b55[_0x5d2026(0x105)];if(!_0x4bd470)return{'redos':_0x25c99c,'undos':_0x92e7af};const {unitId:_0x57c069,subUnitId:_0x32263a,targetSubUnitId:_0xbfc279}=_0x4bd470;if(!_0x57c069||!_0x32263a||!_0xbfc279)return{'redos':_0x25c99c,'undos':_0x92e7af};const _0x4fd503=new Set(),_0x34b1a3={},_0x4e9e54=this[_0x5d2026(0xb4)][_0x5d2026(0x113)](_0x57c069,_0x32263a);if(!_0x4e9e54)return{'redos':_0x25c99c,'undos':_0x92e7af};for(const [_0x2dbccb,_0x112126]of _0x4e9e54){const _0x372297='g_'+_0xdf724a(0x6);_0x4fd503[_0x5d2026(0xe8)](_0x2dbccb),_0x34b1a3[_0x372297]={'config':_0x471ba1[_0x5d2026(0x8d)](_0x112126[_0x5d2026(0x106)]),'sparklines':_0x471ba1[_0x5d2026(0x8d)](_0x112126[_0x5d2026(0xb6)][_0x5d2026(0xa6)]())};}_0x4fd503[_0x5d2026(0x112)]&&(_0x92e7af[_0x5d2026(0xb0)]({'id':y['id'],'params':{'unitId':_0x57c069,'subUnitId':_0xbfc279,'groupIds':Array[_0x5d2026(0xf6)](_0x4fd503),'isSingle':!0x1}}),_0x25c99c[_0x5d2026(0xb0)]({'id':V['id'],'params':{'unitId':_0x57c069,'subUnitId':_0xbfc279,'sparklineConfigMap':_0x34b1a3}}));}return{'redos':_0x25c99c,'undos':_0x92e7af};}}));}};ke=$t([Ge(0x0,_0x145e78(_0x16120f)),Ge(0x1,_0x145e78(x))],ke);var jt=Object[_0x196211(0x77)],Lt=(_0x55e139,_0x1d971e,_0x2170a8,_0x4c2cdd)=>{const _0xe56b48=_0x196211;for(var _0x2aaa37=_0x4c2cdd>0x1?void 0x0:_0x4c2cdd?jt(_0x1d971e,_0x2170a8):_0x1d971e,_0x295f9d=_0x55e139[_0xe56b48(0x8e)]-0x1,_0xabdee7;_0x295f9d>=0x0;_0x295f9d--)(_0xabdee7=_0x55e139[_0x295f9d])&&(_0x2aaa37=_0xabdee7(_0x2aaa37)||_0x2aaa37);return _0x2aaa37;},Ie=(_0x4cc620,_0x3dd822)=>(_0xeca253,_0x86d9ca)=>_0x3dd822(_0xeca253,_0x86d9ca,_0x4cc620);let me=class extends _0x17ef6f{constructor(_0x5aced7,_0x17c886,_0x2f5525){const _0x43acea=_0x196211;super(),this[_0x43acea(0x74)]=_0x5aced7,this[_0x43acea(0xb4)]=_0x17c886,this['_exclusiveRangeService']=_0x2f5525,this[_0x43acea(0xf2)](),this['_initExclusiveRangeChange']();}[_0x196211(0xf2)](){const _0xe008cd=_0x196211;this[_0xe008cd(0x101)](this[_0xe008cd(0x74)][_0xe008cd(0x9d)](_0x3421a8=>{const _0x4b7cd7=_0xe008cd;if(_0x3421a8['id']===_0x51ad06['id']){const _0x3e3386=_0x3421a8['params'],{cellValue:_0x4fb177,unitId:_0x2ced1d,subUnitId:_0x23dc6f}=_0x3e3386,_0x4402ac=new _0x30188c(_0x4fb177),_0x5cbf20=new Set(),_0x4160a6=this['_sparklineDataSourceModel'][_0x4b7cd7(0x113)](_0x2ced1d,_0x23dc6f);if(!_0x4160a6)return;const _0x1c686e=Array['from'](_0x4160a6);_0x4402ac[_0x4b7cd7(0xbd)]((_0x5ca99e,_0x4efaf2,_0x5f1d36)=>{const _0x2d3a92=_0x4b7cd7,_0x377077=_0x55fe80(_0x5ca99e,_0x4efaf2);for(let _0x203460=0x0;_0x203460<_0x1c686e[_0x2d3a92(0x8e)];_0x203460++){const [_0x120127,_0x57baed]=_0x1c686e[_0x203460],_0x557bb1=_0x5cbf20[_0x2d3a92(0x11a)](_0x120127);_0x557bb1||_0x57baed[_0x2d3a92(0xb6)]['forValue']((_0x484160,_0x1f478f,_0x532e98)=>{const _0x1ad4c7=_0x2d3a92,_0x4355f2=_0x532e98;if(_0x4355f2&&!_0x557bb1&&_0x240f2f['intersects'](_0x377077,_0x4355f2))return _0x5cbf20[_0x1ad4c7(0xe8)](_0x120127),!0x0;});}}),_0x5cbf20['forEach'](_0x50daf6=>{const _0x57dfa0=_0x4b7cd7;this[_0x57dfa0(0xb4)][_0x57dfa0(0xd6)](_0x2ced1d,_0x23dc6f,_0x50daf6),this[_0x57dfa0(0xb4)][_0x57dfa0(0xf8)](_0x2ced1d,_0x23dc6f,_0x50daf6);});}else{if(_0x3421a8['id']===_0x404b36['id']){const _0x327f88=_0x3421a8[_0x4b7cd7(0x105)],{range:_0x561744,unitId:_0x52d4ae,subUnitId:_0x48858a}=_0x327f88,_0xd44d04=new Set(),_0x10ff76=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x52d4ae,_0x48858a);if(!_0x10ff76)return;const _0x4cbf3d=Array[_0x4b7cd7(0xf6)](_0x10ff76);for(let _0x31c0c4=0x0;_0x31c0c4<_0x4cbf3d[_0x4b7cd7(0x8e)];_0x31c0c4++){const [_0x47be97,_0x581143]=_0x4cbf3d[_0x31c0c4],_0x2a2cf9=_0xd44d04[_0x4b7cd7(0x11a)](_0x47be97);_0x2a2cf9||_0x581143['sparklines'][_0x4b7cd7(0xbd)]((_0x57f69a,_0x1ecb96,_0x5793ee)=>{const _0x245ea5=_0x4b7cd7,_0x45d662=_0x5793ee;if(_0x45d662&&!_0x2a2cf9&&_0x240f2f[_0x245ea5(0x7d)](_0x561744,_0x45d662))return _0xd44d04[_0x245ea5(0xe8)](_0x47be97),!0x0;});}_0xd44d04['forEach'](_0x3d1439=>{const _0x1dfed0=_0x4b7cd7;this['_sparklineDataSourceModel'][_0x1dfed0(0xd6)](_0x52d4ae,_0x48858a,_0x3d1439),this[_0x1dfed0(0xb4)][_0x1dfed0(0xf8)](_0x52d4ae,_0x48858a,_0x3d1439);});}}}));}['_initExclusiveRangeChange'](){const _0x168fcb=_0x196211;this[_0x168fcb(0x101)](this['_exclusiveRangeService']['exclusiveRangesChange$'][_0x168fcb(0xd7)](_0x5c56a1=>{const _0x44566d=_0x168fcb,{unitId:_0x1845a3,subUnitId:_0x492cc6,ranges:_0x21728d}=_0x5c56a1,_0x11dc01=this[_0x44566d(0xb4)][_0x44566d(0x113)](_0x1845a3,_0x492cc6);if(!_0x11dc01)return;const _0x28a4ce=Array['from'](_0x11dc01),_0x51fa60=new Set();for(let _0x476419=0x0;_0x476419<_0x28a4ce[_0x44566d(0x8e)];_0x476419++){const [_0x5b6252,_0x307b7f]=_0x28a4ce[_0x476419],_0x52cb93=_0x51fa60['has'](_0x5b6252);_0x52cb93||_0x307b7f[_0x44566d(0xb6)][_0x44566d(0xbd)]((_0x34d694,_0x2645f7,_0x84afef)=>{const _0x2b7e09=_0x44566d,_0x15788f=_0x84afef;if(_0x15788f&&!_0x52cb93){for(const _0x3fee39 of _0x21728d)if(_0x240f2f[_0x2b7e09(0x7d)](_0x3fee39,_0x15788f)){_0x51fa60[_0x2b7e09(0xe8)](_0x5b6252);break;}}});}_0x51fa60[_0x44566d(0x126)](_0x4c6954=>{const _0x631729=_0x44566d;this['_sparklineDataSourceModel']['clearSparklineCache'](_0x1845a3,_0x492cc6,_0x4c6954),this[_0x631729(0xb4)][_0x631729(0xf8)](_0x1845a3,_0x492cc6,_0x4c6954);});}));}};me=Lt([Ie(0x0,_0x145e78(_0x2a59fd)),Ie(0x1,_0x145e78(x)),Ie(0x2,_0x145e78(_0x18462e))],me);var Gt=Object[_0x196211(0x77)],Wt=(_0xee0768,_0xbefb00,_0x528837,_0x183c4e)=>{for(var _0x6be84=_0x183c4e>0x1?void 0x0:_0x183c4e?Gt(_0xbefb00,_0x528837):_0xbefb00,_0x57dc1d=_0xee0768['length']-0x1,_0x15f26f;_0x57dc1d>=0x0;_0x57dc1d--)(_0x15f26f=_0xee0768[_0x57dc1d])&&(_0x6be84=_0x15f26f(_0x6be84)||_0x6be84);return _0x6be84;},We=(_0x5bbd31,_0x48ad2c)=>(_0x1700f2,_0x3e5eb0)=>_0x48ad2c(_0x1700f2,_0x3e5eb0,_0x5bbd31);let Ce=class extends _0x17ef6f{constructor(_0x3c4b00,_0x9fa386){const _0x4bd84a=_0x196211;super(),this['_commandService']=_0x3c4b00,this[_0x4bd84a(0xb4)]=_0x9fa386,this[_0x4bd84a(0x7a)]();}['_initHideRowColWithSparkline'](){const _0x55fb0a=_0x196211;this[_0x55fb0a(0x74)][_0x55fb0a(0x9d)](_0xbf70bd=>{const _0x34df82=_0x55fb0a;if(_0xbf70bd['id']===_0x447f5e['id']||_0xbf70bd['id']===_0x567283['id']||_0xbf70bd['id']===_0x132ad1['id']||_0xbf70bd['id']===_0x3e8b34['id']){const _0xa33a72=_0xbf70bd[_0x34df82(0x105)],{ranges:_0x20d670,unitId:_0x3f3f6e,subUnitId:_0x53437f}=_0xa33a72,_0x46353d=new Set(),_0x3daf97=this[_0x34df82(0xb4)][_0x34df82(0x113)](_0x3f3f6e,_0x53437f);if(!_0x3daf97)return;const _0x103e66=Array[_0x34df82(0xf6)](_0x3daf97);_0x20d670[_0x34df82(0x126)](_0x4f9c83=>{const _0x163b9a=_0x34df82;_0x146272[_0x163b9a(0x114)](_0x4f9c83,(_0x59ddca,_0x103d51)=>{const _0x1593be=_0x163b9a,_0x4442b8=_0x55fe80(_0x59ddca,_0x103d51);for(let _0x426cb6=0x0;_0x426cb6<_0x103e66['length'];_0x426cb6++){const [_0x11d73c,_0x81ac6]=_0x103e66[_0x426cb6],_0x3007b0=_0x46353d[_0x1593be(0x11a)](_0x11d73c);_0x3007b0||_0x81ac6['sparklines'][_0x1593be(0xbd)]((_0x6c80c7,_0x54b27b,_0x229f34)=>{const _0x12a253=_0x1593be,_0x173d66=_0x229f34;if(_0x173d66&&!_0x3007b0&&_0x240f2f[_0x12a253(0x7d)](_0x4442b8,_0x173d66))return _0x46353d[_0x12a253(0xe8)](_0x11d73c),!0x0;});}});}),_0x46353d[_0x34df82(0x126)](_0x279cc9=>{const _0x49a794=_0x34df82;this[_0x49a794(0xb4)][_0x49a794(0xd6)](_0x3f3f6e,_0x53437f,_0x279cc9),this['_sparklineDataSourceModel'][_0x49a794(0xf8)](_0x3f3f6e,_0x53437f,_0x279cc9);});}});}};Ce=Wt([We(0x0,_0x145e78(_0x2a59fd)),We(0x1,_0x145e78(x))],Ce);var Bt=Object['getOwnPropertyDescriptor'],Ht=(_0x25983d,_0x20e6a6,_0x34923f,_0x36e41b)=>{for(var _0x1d94a3=_0x36e41b>0x1?void 0x0:_0x36e41b?Bt(_0x20e6a6,_0x34923f):_0x20e6a6,_0x59332b=_0x25983d['length']-0x1,_0x338b5a;_0x59332b>=0x0;_0x59332b--)(_0x338b5a=_0x25983d[_0x59332b])&&(_0x1d94a3=_0x338b5a(_0x1d94a3)||_0x1d94a3);return _0x1d94a3;},be=(_0x1ac200,_0x1b6c85)=>(_0x2b3dbf,_0x178b1c)=>_0x1b6c85(_0x2b3dbf,_0x178b1c,_0x1ac200);let _e=class extends _0x17ef6f{constructor(_0x4d027c,_0x46799b,_0x5481c9){const _0x49b716=_0x196211;super(),this[_0x49b716(0x74)]=_0x4d027c,this['_sheetInterceptorService']=_0x46799b,this['_sparklineDataSourceModel']=_0x5481c9,this['_initMergeWithSparkline']();}[_0x196211(0xc5)](){const _0xffab58=_0x196211;this[_0xffab58(0x101)](this[_0xffab58(0xbb)][_0xffab58(0x78)]({'getMutations':_0x4e34dc=>{const _0x215560=_0xffab58,_0x1241a2=[],_0x2f3843=[];if(_0x4e34dc['id']===_0x32b4d6['id']){const _0x44d6ae=_0x4e34dc['params'];if(!_0x44d6ae)return{'redos':_0x1241a2,'undos':_0x2f3843};const {unitId:_0x1213e6,subUnitId:_0x23f3d4,ranges:_0x5bd7d5}=_0x44d6ae,_0x5a330e=this[_0x215560(0xb4)][_0x215560(0x113)](_0x1213e6,_0x23f3d4);if(!_0x5a330e)return{'redos':_0x1241a2,'undos':_0x2f3843};const _0x12602a={},_0x407f3c={},_0x5c003a=new Set();_0x5bd7d5[_0x215560(0x126)](_0x4b71d9=>{const _0x3778cc=_0x215560,_0x2e648c=_0x4b71d9['startRow'],_0x416ad0=_0x4b71d9[_0x3778cc(0xda)];_0x146272[_0x3778cc(0x114)](_0x4b71d9,(_0x3de89e,_0x53c119)=>{const _0xb00cfc=_0x3778cc,_0x54040b=this['_sparklineDataSourceModel'][_0xb00cfc(0x108)](_0x1213e6,_0x23f3d4,_0x3de89e,_0x53c119);if(_0x54040b&&!(_0x3de89e===_0x2e648c&&_0x53c119===_0x416ad0)){const _0x24b277=this[_0xb00cfc(0xb4)][_0xb00cfc(0x75)](_0x1213e6,_0x23f3d4,_0x54040b);if(_0x24b277){_0x5c003a['add'](_0x54040b);let _0x30870e=_0x12602a[_0x54040b];_0x30870e||(_0x30870e={'config':_0x471ba1[_0xb00cfc(0x8d)](_0x24b277['config']),'sparklines':new _0x30188c(_0x24b277[_0xb00cfc(0xb6)][_0xb00cfc(0xa6)]())},_0x12602a[_0x54040b]=_0x30870e),_0x30870e[_0xb00cfc(0xb6)]['realDeleteValue'](_0x3de89e,_0x53c119),_0x407f3c[_0x54040b]={'config':_0x471ba1[_0xb00cfc(0x8d)](_0x24b277[_0xb00cfc(0x106)]),'sparklines':_0x471ba1[_0xb00cfc(0x8d)](_0x24b277[_0xb00cfc(0xb6)]['clone']())};}}});});for(const [_0x371fa3,_0x55d2fa]of _0x5a330e){const _0x3bf25d=_0x55d2fa[_0x215560(0xb6)];_0x3bf25d[_0x215560(0xbd)]((_0x5c87f4,_0x3bdad6,_0x3e7b4c)=>{const _0x18b926=_0x215560;for(let _0x1089f0=0x0;_0x1089f0<_0x5bd7d5[_0x18b926(0x8e)];_0x1089f0++){const _0x16ed7e=_0x5bd7d5[_0x1089f0];if(_0x240f2f['contains'](_0x16ed7e,_0x3e7b4c)){_0x5c003a[_0x18b926(0xe8)](_0x371fa3);let _0x5a068b=_0x12602a[_0x371fa3];_0x5a068b||(_0x5a068b={'config':_0x471ba1[_0x18b926(0x8d)](_0x55d2fa[_0x18b926(0x106)]),'sparklines':new _0x30188c(_0x3bf25d[_0x18b926(0xa6)]())},_0x12602a[_0x371fa3]=_0x5a068b),_0x5a068b[_0x18b926(0xb6)][_0x18b926(0xfd)](_0x5c87f4,_0x3bdad6),_0x407f3c[_0x371fa3]||(_0x407f3c[_0x371fa3]={'config':_0x471ba1[_0x18b926(0x8d)](_0x55d2fa[_0x18b926(0x106)]),'sparklines':_0x471ba1[_0x18b926(0x8d)](_0x3bf25d[_0x18b926(0xa6)]())});}}});}const _0x2b2505={};Object[_0x215560(0xd0)](_0x12602a)[_0x215560(0x126)](([_0x4e3fe7,_0xd0510a])=>{const _0x1d695c=_0x215560;_0xd0510a['sparklines'][_0x1d695c(0xb5)]()&&(_0x2b2505[_0x4e3fe7]={'config':_0xd0510a[_0x1d695c(0x106)],'sparklines':_0xd0510a[_0x1d695c(0xb6)][_0x1d695c(0xa6)]()});}),_0x5c003a[_0x215560(0x112)]&&(_0x1241a2[_0x215560(0xb0)]({'id':y['id'],'params':{'unitId':_0x1213e6,'subUnitId':_0x23f3d4,'groupIds':Array[_0x215560(0xf6)](_0x5c003a),'isSingle':!0x1}}),_0x2f3843[_0x215560(0xb0)]({'id':y['id'],'params':{'unitId':_0x1213e6,'subUnitId':_0x23f3d4,'groupIds':Array[_0x215560(0xf6)](_0x5c003a),'isSingle':!0x1}}),_0x1241a2[_0x215560(0xb0)]({'id':V['id'],'params':{'unitId':_0x1213e6,'subUnitId':_0x23f3d4,'sparklineConfigMap':_0x2b2505}}),_0x2f3843[_0x215560(0xb0)]({'id':V['id'],'params':{'unitId':_0x1213e6,'subUnitId':_0x23f3d4,'sparklineConfigMap':_0x407f3c}}));}return{'redos':_0x1241a2,'undos':_0x2f3843};}}));}};function _0x45c2(_0x5df078,_0x48c1a4){const _0x3d04b3=_0x3d04();return _0x45c2=function(_0x45c256,_0x573870){_0x45c256=_0x45c256-0x72;let _0xda61a7=_0x3d04b3[_0x45c256];return _0xda61a7;},_0x45c2(_0x5df078,_0x48c1a4);}_e=Ht([be(0x0,_0x145e78(_0x2a59fd)),be(0x1,_0x145e78(_0x16120f)),be(0x2,_0x145e78(x))],_e);var Ft=Object[_0x196211(0x77)],Kt=(_0x43d20b,_0x195a1d,_0x589047,_0x48f48e)=>{const _0x46440c=_0x196211;for(var _0x328e32=_0x48f48e>0x1?void 0x0:_0x48f48e?Ft(_0x195a1d,_0x589047):_0x195a1d,_0x231a32=_0x43d20b[_0x46440c(0x8e)]-0x1,_0x4edf9a;_0x231a32>=0x0;_0x231a32--)(_0x4edf9a=_0x43d20b[_0x231a32])&&(_0x328e32=_0x4edf9a(_0x328e32)||_0x328e32);return _0x328e32;},ge=(_0x71b5d2,_0x3553eb)=>(_0x3ab27f,_0x335a86)=>_0x3553eb(_0x3ab27f,_0x335a86,_0x71b5d2);let Me=class extends _0x17ef6f{constructor(_0x38f6f6,_0xf7332,_0x8e8c9d,_0x50c825){const _0xe5c311=_0x196211;super(),se(this,_0xe5c311(0x9a),new _0x4a1eb6()),(this['_commandService']=_0x38f6f6,this[_0xe5c311(0x8b)]=_0xf7332,this['_univerInstanceService']=_0x8e8c9d,this[_0xe5c311(0xb4)]=_0x50c825,this[_0xe5c311(0xe7)](),this['_initCorrectRangeWithSparkline']());}['_onRefRangeChange'](){const _0x40f8cd=_0x196211,_0xdbcadb=(_0x59b6df,_0x5b14fc)=>{const _0x4f3bec=_0x45c2,_0x537c0e=this[_0x4f3bec(0x115)][_0x4f3bec(0xa5)](_0x45e4c2[_0x4f3bec(0xd5)]);if(!_0x537c0e||!(_0x537c0e==null?void 0x0:_0x537c0e[_0x4f3bec(0x99)](_0x5b14fc)))return;this['disposableCollection'][_0x4f3bec(0x7e)]();const _0x2a5a11=_0x37eb7f=>this[_0x4f3bec(0xc7)](_0x37eb7f,_0x59b6df,_0x5b14fc),_0x1bbc49=[],_0x4da52c=this[_0x4f3bec(0xb4)][_0x4f3bec(0x113)](_0x59b6df,_0x5b14fc);if(_0x4da52c){for(const [_0x43b7a8,_0x56c39f]of _0x4da52c)_0x56c39f[_0x4f3bec(0xb6)]['forValue']((_0x239e91,_0xdd00eb,_0x2b9acd)=>{const _0x4d0768=_0x4f3bec,_0x5f165b=_0x55fe80(_0x239e91,_0xdd00eb);_0x1bbc49[_0x4d0768(0xb0)](_0x5f165b);});_0x1bbc49[_0x4f3bec(0x126)](_0x7ecf4b=>{const _0x4256ee=_0x4f3bec;this[_0x4256ee(0x9a)][_0x4256ee(0xe8)](this[_0x4256ee(0x8b)][_0x4256ee(0xf7)](_0x7ecf4b,_0x2a5a11,_0x59b6df,_0x5b14fc));});}};this[_0x40f8cd(0x101)](this[_0x40f8cd(0x74)][_0x40f8cd(0x9d)](_0x55386c=>{const _0x37bd30=_0x40f8cd;if(_0x55386c['id']===_0x1ca433['id']){const _0x32ef29=_0x55386c[_0x37bd30(0x105)],_0x41228a=_0x32ef29[_0x37bd30(0xed)],_0x14bfae=_0x32ef29[_0x37bd30(0xd2)];if(!_0x41228a||!_0x14bfae)return;_0xdbcadb(_0x14bfae,_0x41228a);}if(_0x55386c['id']===Oe['id']||_0x55386c['id']===V['id']){const _0x31f310=_0x55386c['params'],_0x4c6647=_0x31f310[_0x37bd30(0xed)],_0x389b26=_0x31f310[_0x37bd30(0xd2)];if(!_0x4c6647||!_0x389b26)return;_0xdbcadb(_0x389b26,_0x4c6647);}}));}['refRangeHandle'](_0x4ef869,_0xeb7140,_0x5aa72a){const _0x3944ac=_0x196211;switch(_0x4ef869['id']){case _0x12a407['id']:return this['_getRefRangeMutationsByDeleteCols'](_0x4ef869['params'],_0xeb7140,_0x5aa72a);case _0xf483eb['id']:return this['_getRefRangeMutationsByDeleteRows'](_0x4ef869[_0x3944ac(0x105)],_0xeb7140,_0x5aa72a);}return{'redos':[],'undos':[]};}[_0x196211(0x87)](_0x240453,_0x46dcb4,_0x5248c2){const _0x301ab0=_0x196211;var _0x567768,_0x107342;const {range:_0x1285ec}=_0x240453,_0x335b71=new Set(),_0x11ce25={},_0x817918={},_0x373bc2=[],_0x464c24=[],_0x3cad9b=[],_0x66507a=[];if(!_0x5e9d4e(this[_0x301ab0(0x115)],{'unitId':_0x46dcb4,'subUnitId':_0x5248c2}))return{'redos':_0x464c24,'undos':_0x373bc2};const _0x2a594c=this[_0x301ab0(0xb4)][_0x301ab0(0x113)](_0x46dcb4,_0x5248c2);if(!_0x2a594c)return{'redos':_0x464c24,'undos':_0x373bc2};if(!((_0x107342=(_0x567768=this[_0x301ab0(0xb4)][_0x301ab0(0xee)]()[_0x301ab0(0xe2)][_0x301ab0(0xf9)](_0x46dcb4))==null?void 0x0:_0x567768['get'](_0x5248c2))==null?void 0x0:_0x107342[_0x301ab0(0xff)]))return{'redos':_0x464c24,'undos':_0x373bc2};for(const [_0x32102b,_0x1c30dc]of _0x2a594c){const _0x191b25=_0x1c30dc['sparklines'];_0x191b25[_0x301ab0(0xbd)]((_0x15fd7a,_0x5afa54,_0x4b8660)=>{const _0x289084=_0x301ab0;if(_0x240f2f['intersects'](_0x1285ec,_0x4b8660)){_0x335b71[_0x289084(0xe8)](_0x32102b);let _0x150102=_0x817918[_0x32102b];_0x150102||(_0x150102={'config':_0x1c30dc[_0x289084(0x106)],'sparklines':_0x1c30dc[_0x289084(0xb6)][_0x289084(0xa6)]()},_0x817918[_0x32102b]=_0x150102);let _0xd474f=_0x11ce25[_0x32102b];_0xd474f||(_0xd474f={'config':_0x1c30dc['config'],'sparklines':new _0x30188c(_0x1c30dc[_0x289084(0xb6)][_0x289084(0xa6)]())},_0x11ce25[_0x32102b]=_0xd474f);const _0x3e9ba0=_0x1c9263(_0x4b8660,{'id':_0x37cdfe['id'],'params':_0x240453});_0x3e9ba0?_0xd474f[_0x289084(0xb6)][_0x289084(0x119)](_0x15fd7a,_0x5afa54,_0x3e9ba0):_0xd474f[_0x289084(0xb6)][_0x289084(0x119)](_0x15fd7a,_0x5afa54,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x321cea[_0x289084(0xd1)]});}}),_0x191b25[_0x301ab0(0xbd)]((_0x47cac8,_0x119561,_0x57bba1)=>{const _0x2a4dbd=_0x301ab0;if(_0x47cac8<=_0x1285ec[_0x2a4dbd(0xea)]&&_0x47cac8>=_0x1285ec['startRow']){_0x335b71[_0x2a4dbd(0xe8)](_0x32102b);let _0x3f9a74=_0x817918[_0x32102b];_0x3f9a74||(_0x3f9a74={'config':_0x1c30dc[_0x2a4dbd(0x106)],'sparklines':_0x1c30dc[_0x2a4dbd(0xb6)]['clone']()},_0x817918[_0x32102b]=_0x3f9a74);let _0x23aa87=_0x11ce25[_0x32102b];_0x23aa87||(_0x23aa87={'config':_0x1c30dc[_0x2a4dbd(0x106)],'sparklines':new _0x30188c(_0x1c30dc[_0x2a4dbd(0xb6)]['clone']())},_0x11ce25[_0x32102b]=_0x23aa87);}});}_0x66507a[_0x301ab0(0xb0)]({'id':y['id'],'params':{'unitId':_0x46dcb4,'subUnitId':_0x5248c2,'groupIds':Array['from'](_0x335b71),'isSingle':!0x1}}),_0x3cad9b[_0x301ab0(0xb0)]({'id':y['id'],'params':{'unitId':_0x46dcb4,'subUnitId':_0x5248c2,'groupIds':Array[_0x301ab0(0xf6)](_0x335b71),'isSingle':!0x1}});const _0x3c1e2a={};let _0x4f0c91=!0x1;return Object[_0x301ab0(0xd0)](_0x11ce25)[_0x301ab0(0x126)](([_0x41c639,_0x18054c])=>{const _0x1921c9=_0x301ab0;_0x18054c[_0x1921c9(0xb6)][_0x1921c9(0xb5)]()&&(_0x4f0c91=!0x0,_0x18054c[_0x1921c9(0xb6)][_0x1921c9(0xbe)](_0x1285ec[_0x1921c9(0xcf)],_0x1285ec[_0x1921c9(0xea)]-_0x1285ec['startRow']+0x1),_0x3c1e2a[_0x41c639]={'config':_0x18054c[_0x1921c9(0x106)],'sparklines':_0x18054c[_0x1921c9(0xb6)][_0x1921c9(0xa6)]()});}),_0x4f0c91&&_0x464c24[_0x301ab0(0xb0)]({'id':V['id'],'params':{'unitId':_0x46dcb4,'subUnitId':_0x5248c2,'sparklineConfigMap':_0x3c1e2a}}),_0x373bc2[_0x301ab0(0xb0)]({'id':V['id'],'params':{'unitId':_0x46dcb4,'subUnitId':_0x5248c2,'sparklineConfigMap':_0x817918}}),{'redos':_0x464c24,'undos':_0x373bc2,'preRedos':_0x3cad9b,'preUndos':_0x66507a};}['_getRefRangeMutationsByDeleteCols'](_0x17b5e5,_0x1fe557,_0x55c9a4){const _0x1e1b86=_0x196211;var _0x1bae7c,_0x371462;const {range:_0x28735e}=_0x17b5e5,_0x4b8179=new Set(),_0xe86fe0={},_0xd7f08f={},_0x8c5e76=[],_0xb8435b=[],_0x4d7758=[],_0x555b95=[];if(!_0x5e9d4e(this['_univerInstanceService'],{'unitId':_0x1fe557,'subUnitId':_0x55c9a4}))return{'redos':_0xb8435b,'undos':_0x8c5e76};const _0x520810=this[_0x1e1b86(0xb4)][_0x1e1b86(0x113)](_0x1fe557,_0x55c9a4);if(!_0x520810)return{'redos':_0xb8435b,'undos':_0x8c5e76};if(!((_0x371462=(_0x1bae7c=this[_0x1e1b86(0xb4)]['getSparklineCache']()[_0x1e1b86(0xe2)][_0x1e1b86(0xf9)](_0x1fe557))==null?void 0x0:_0x1bae7c[_0x1e1b86(0xf9)](_0x55c9a4))==null?void 0x0:_0x371462[_0x1e1b86(0xff)]))return{'redos':_0xb8435b,'undos':_0x8c5e76};for(const [_0x2435f7,_0x50c5e6]of _0x520810){const _0x21751a=_0x50c5e6['sparklines'];_0x21751a[_0x1e1b86(0xbd)]((_0x6523f9,_0x2a4f28,_0x4dfcfe)=>{const _0x4db508=_0x1e1b86;if(_0x240f2f[_0x4db508(0x7d)](_0x28735e,_0x4dfcfe)){_0x4b8179[_0x4db508(0xe8)](_0x2435f7);let _0x3cc14f=_0xd7f08f[_0x2435f7];_0x3cc14f||(_0x3cc14f={'config':_0x50c5e6[_0x4db508(0x106)],'sparklines':_0x50c5e6[_0x4db508(0xb6)][_0x4db508(0xa6)]()},_0xd7f08f[_0x2435f7]=_0x3cc14f);let _0x21975b=_0xe86fe0[_0x2435f7];_0x21975b||(_0x21975b={'config':_0x50c5e6[_0x4db508(0x106)],'sparklines':new _0x30188c(_0x50c5e6[_0x4db508(0xb6)][_0x4db508(0xa6)]())},_0xe86fe0[_0x2435f7]=_0x21975b);const _0x1d643b=_0x1c9263(_0x4dfcfe,{'id':_0x10ea05['id'],'params':_0x17b5e5});_0x1d643b?_0x21975b[_0x4db508(0xb6)][_0x4db508(0x119)](_0x6523f9,_0x2a4f28,_0x1d643b):_0x21975b['sparklines']['setValue'](_0x6523f9,_0x2a4f28,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x321cea['NORMAL']});}}),_0x21751a[_0x1e1b86(0xbd)]((_0x38dd77,_0x4eb042,_0x257337)=>{const _0x3929c0=_0x1e1b86;if(_0x4eb042<=_0x28735e[_0x3929c0(0x125)]&&_0x4eb042>=_0x28735e['startColumn']){_0x4b8179['add'](_0x2435f7);let _0x34ba8e=_0xd7f08f[_0x2435f7];_0x34ba8e||(_0x34ba8e={'config':_0x50c5e6[_0x3929c0(0x106)],'sparklines':_0x50c5e6[_0x3929c0(0xb6)][_0x3929c0(0xa6)]()},_0xd7f08f[_0x2435f7]=_0x34ba8e);let _0x59d111=_0xe86fe0[_0x2435f7];_0x59d111||(_0x59d111={'config':_0x50c5e6[_0x3929c0(0x106)],'sparklines':new _0x30188c(_0x50c5e6[_0x3929c0(0xb6)][_0x3929c0(0xa6)]())},_0xe86fe0[_0x2435f7]=_0x59d111);}});}_0x555b95[_0x1e1b86(0xb0)]({'id':y['id'],'params':{'unitId':_0x1fe557,'subUnitId':_0x55c9a4,'groupIds':Array['from'](_0x4b8179),'isSingle':!0x1}}),_0x4d7758[_0x1e1b86(0xb0)]({'id':y['id'],'params':{'unitId':_0x1fe557,'subUnitId':_0x55c9a4,'groupIds':Array[_0x1e1b86(0xf6)](_0x4b8179),'isSingle':!0x1}});const _0x4daaac={};let _0x2aca4d=!0x1;return Object[_0x1e1b86(0xd0)](_0xe86fe0)[_0x1e1b86(0x126)](([_0x29b340,_0x1f0c07])=>{const _0xb1d4fa=_0x1e1b86;_0x1f0c07[_0xb1d4fa(0xb6)]['getSizeOf']()&&(_0x2aca4d=!0x0,_0x1f0c07[_0xb1d4fa(0xb6)][_0xb1d4fa(0xe3)](_0x28735e[_0xb1d4fa(0xda)],_0x28735e[_0xb1d4fa(0x125)]-_0x28735e['startColumn']+0x1),_0x4daaac[_0x29b340]={'config':_0x1f0c07[_0xb1d4fa(0x106)],'sparklines':_0x1f0c07[_0xb1d4fa(0xb6)]['clone']()});}),_0x2aca4d&&_0xb8435b[_0x1e1b86(0xb0)]({'id':V['id'],'params':{'unitId':_0x1fe557,'subUnitId':_0x55c9a4,'sparklineConfigMap':_0x4daaac}}),_0x8c5e76[_0x1e1b86(0xb0)]({'id':V['id'],'params':{'unitId':_0x1fe557,'subUnitId':_0x55c9a4,'sparklineConfigMap':_0xd7f08f}}),{'redos':_0xb8435b,'undos':_0x8c5e76,'preRedos':_0x4d7758,'preUndos':_0x555b95};}[_0x196211(0xb2)](){const _0xc0ef37=_0x196211;this[_0xc0ef37(0x101)](this['_commandService']['onCommandExecuted'](_0x513c33=>{const _0x51ff3c=_0xc0ef37;if(_0x513c33['id']===_0x5cb8d8['id']){const _0x5da769=_0x513c33['params'],{unitId:_0x21f872,subUnitId:_0x22bc99,range:_0xa11bd}=_0x5da769,_0x1ecd6c=_0xa11bd[_0x51ff3c(0xda)],_0x179909=_0xa11bd[_0x51ff3c(0x125)]-_0xa11bd[_0x51ff3c(0xda)]+0x1,_0x14a67e=this[_0x51ff3c(0xb4)][_0x51ff3c(0x113)](_0x21f872,_0x22bc99);if(!_0x14a67e)return;for(const [_0x450d88,_0x459e72]of _0x14a67e){this['_sparklineDataSourceModel'][_0x51ff3c(0xd6)](_0x21f872,_0x22bc99,_0x450d88);const _0x4f33a7=_0x459e72[_0x51ff3c(0xb6)];_0x4f33a7['forValue']((_0x19e420,_0x4ca024,_0x484890)=>{const _0x43f61f=_0x51ff3c,_0x12f745={..._0x484890};_0x1ecd6c<=_0x12f745[_0x43f61f(0xda)]?(_0x12f745[_0x43f61f(0xda)]+=_0x179909,_0x12f745['endColumn']+=_0x179909):_0x1ecd6c>_0x12f745[_0x43f61f(0x125)]||(_0x12f745['endColumn']+=_0x179909),_0x4f33a7['setValue'](_0x19e420,_0x4ca024,_0x12f745);});const _0x181f47=_0x4f33a7[_0x51ff3c(0xbf)]();for(const _0xe73694 in _0x181f47){const _0x34726d=_0x181f47[Number(_0xe73694)];if(!_0x34726d)continue;const _0x7a43aa=Object[_0x51ff3c(0x127)](_0x34726d)[_0x51ff3c(0xa8)](Number),_0x271369=Math[_0x51ff3c(0x104)](..._0x7a43aa);for(let _0x138e35=_0x271369;_0x138e35>=_0x1ecd6c;_0x138e35--)_0x138e35>=_0x1ecd6c&&_0x34726d[_0x138e35]&&(_0x34726d[_0x138e35+_0x179909]=_0x34726d[_0x138e35],delete _0x34726d[_0x138e35]);}this[_0x51ff3c(0xb4)][_0x51ff3c(0xf8)](_0x21f872,_0x22bc99,_0x450d88);}}else{if(_0x513c33['id']===_0x39651a['id']){const _0x2255f2=_0x513c33[_0x51ff3c(0x105)],{unitId:_0x4992b0,subUnitId:_0x13f137,range:_0x5c9b19}=_0x2255f2,_0x1bf527=_0x5c9b19['startRow'],_0x362dd8=_0x5c9b19[_0x51ff3c(0xea)]-_0x5c9b19['startRow']+0x1,_0x5e0cae=this[_0x51ff3c(0xb4)][_0x51ff3c(0x113)](_0x4992b0,_0x13f137);if(!_0x5e0cae)return;for(const [_0x11cbb3,_0x1f9bff]of _0x5e0cae){this[_0x51ff3c(0xb4)][_0x51ff3c(0xd6)](_0x4992b0,_0x13f137,_0x11cbb3);const _0x31c0a6=_0x1f9bff[_0x51ff3c(0xb6)];_0x31c0a6[_0x51ff3c(0xbd)]((_0x4ae45e,_0x1525af,_0x4f8da0)=>{const _0x4abd30=_0x51ff3c,_0xb327f0={..._0x4f8da0};_0x1bf527<=_0xb327f0[_0x4abd30(0xcf)]?(_0xb327f0[_0x4abd30(0xcf)]+=_0x362dd8,_0xb327f0[_0x4abd30(0xea)]+=_0x362dd8):_0x1bf527>_0xb327f0[_0x4abd30(0xea)]||(_0xb327f0[_0x4abd30(0xea)]+=_0x362dd8),_0x31c0a6[_0x4abd30(0x119)](_0x4ae45e,_0x1525af,_0xb327f0);});const _0x40abc0=_0x31c0a6['getMatrix'](),_0x4df91d=Object[_0x51ff3c(0x127)](_0x40abc0)[_0x51ff3c(0xa8)](Number),_0x4b4789=Math[_0x51ff3c(0x104)](..._0x4df91d);for(let _0x3ae652=_0x4b4789;_0x3ae652>=_0x1bf527;_0x3ae652--)_0x3ae652>=_0x1bf527&&_0x40abc0[_0x3ae652]&&(_0x40abc0[_0x3ae652+_0x362dd8]=_0x40abc0[_0x3ae652],delete _0x40abc0[_0x3ae652]);this[_0x51ff3c(0xb4)][_0x51ff3c(0xf8)](_0x4992b0,_0x13f137,_0x11cbb3);}}else{if(_0x513c33['id']===_0x10ea05['id']){const _0x32feca=_0x513c33[_0x51ff3c(0x105)],{range:_0x3c1b84,unitId:_0x55309b,subUnitId:_0x429d06}=_0x32feca,_0x389a9b=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x55309b,_0x429d06);if(!_0x389a9b)return;for(const [_0x1c4dc4,_0x5b5655]of _0x389a9b){const _0x85362a=_0x5b5655['sparklines'];_0x85362a[_0x51ff3c(0xbd)]((_0x27b9dd,_0x114a9a,_0x5e1858)=>{const _0x4992e6=_0x51ff3c,_0x911dd=_0x1c9263(_0x5e1858,_0x513c33);_0x911dd?_0x85362a['setValue'](_0x27b9dd,_0x114a9a,_0x911dd):_0x85362a[_0x4992e6(0x119)](_0x27b9dd,_0x114a9a,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x321cea[_0x4992e6(0xd1)]});}),_0x85362a['removeColumns'](_0x3c1b84['startColumn'],_0x3c1b84[_0x51ff3c(0x125)]-_0x3c1b84[_0x51ff3c(0xda)]+0x1);}this[_0x51ff3c(0xb4)][_0x51ff3c(0xa7)](_0x55309b,_0x429d06);}else{if(_0x513c33['id']===_0x37cdfe['id']){const _0x2b6925=_0x513c33[_0x51ff3c(0x105)],{range:_0x93c1ec,unitId:_0x49dc64,subUnitId:_0x1e5a7b}=_0x2b6925,_0xc17b17=this[_0x51ff3c(0xb4)]['getSubUnitSparkline'](_0x49dc64,_0x1e5a7b);if(!_0xc17b17)return;for(const [_0x4e15d5,_0x44787d]of _0xc17b17){const _0x653628=_0x44787d[_0x51ff3c(0xb6)];_0x653628[_0x51ff3c(0xbd)]((_0x3a3053,_0x29e95f,_0x5df506)=>{const _0x13c7b8=_0x51ff3c,_0x3f1132=_0x1c9263(_0x5df506,_0x513c33);_0x3f1132?_0x653628[_0x13c7b8(0x119)](_0x3a3053,_0x29e95f,_0x3f1132):_0x653628[_0x13c7b8(0x119)](_0x3a3053,_0x29e95f,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x321cea[_0x13c7b8(0xd1)]});}),_0x653628[_0x51ff3c(0xbe)](_0x93c1ec[_0x51ff3c(0xcf)],_0x93c1ec[_0x51ff3c(0xea)]-_0x93c1ec[_0x51ff3c(0xcf)]+0x1);}this[_0x51ff3c(0xb4)][_0x51ff3c(0xa7)](_0x49dc64,_0x1e5a7b);}else{if(_0x513c33['id']===_0x1f4f57['id']){const _0x2bc1d0=_0x513c33[_0x51ff3c(0x105)],{unitId:_0x3e7ce7,subUnitId:_0x18e165,sourceRange:_0x46363f,targetRange:_0x353e01}=_0x2bc1d0,_0x3d9557=this[_0x51ff3c(0xb4)]['getSubUnitSparkline'](_0x3e7ce7,_0x18e165);if(!_0x3d9557)return;for(const [_0x5bdb24,_0xca204]of _0x3d9557){const _0xdd826=_0xca204[_0x51ff3c(0xb6)];_0xdd826[_0x51ff3c(0xbd)]((_0x129e0c,_0x15525e,_0x21fbce)=>{const _0x5d9a2c=_0x51ff3c,_0x5f44ee=_0x1c9263(_0x21fbce,_0x513c33);_0x5f44ee?_0xdd826[_0x5d9a2c(0x119)](_0x129e0c,_0x15525e,_0x5f44ee):_0xdd826[_0x5d9a2c(0x119)](_0x129e0c,_0x15525e,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x321cea[_0x5d9a2c(0xd1)]});}),_0xdd826[_0x51ff3c(0x89)](_0x46363f['startColumn'],_0x46363f[_0x51ff3c(0x125)]-_0x46363f[_0x51ff3c(0xda)]+0x1,_0x353e01['startColumn']);}this[_0x51ff3c(0xb4)][_0x51ff3c(0xa7)](_0x3e7ce7,_0x18e165);}else{if(_0x513c33['id']===_0xf96e4e['id']){const _0x4a7bd7=_0x513c33[_0x51ff3c(0x105)],{unitId:_0x5cfa73,subUnitId:_0x2cae4e,sourceRange:_0x52844d,targetRange:_0x4bf857}=_0x4a7bd7,_0x342df2=this[_0x51ff3c(0xb4)][_0x51ff3c(0x113)](_0x5cfa73,_0x2cae4e);if(!_0x342df2)return;for(const [_0x1c9ef8,_0x5df518]of _0x342df2){const _0x135003=_0x5df518[_0x51ff3c(0xb6)];_0x135003['forValue']((_0x5d8ed9,_0xabb771,_0x1453d7)=>{const _0x312975=_0x51ff3c,_0x597338=_0x1c9263(_0x1453d7,_0x513c33);_0x597338?_0x135003['setValue'](_0x5d8ed9,_0xabb771,_0x597338):_0x135003[_0x312975(0x119)](_0x5d8ed9,_0xabb771,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x321cea['NORMAL']});}),_0x135003[_0x51ff3c(0xca)](_0x52844d[_0x51ff3c(0xcf)],_0x52844d[_0x51ff3c(0xea)]-_0x52844d[_0x51ff3c(0xcf)]+0x1,_0x4bf857[_0x51ff3c(0xcf)]);}this['_sparklineDataSourceModel'][_0x51ff3c(0xa7)](_0x5cfa73,_0x2cae4e);}else{if(_0x513c33['id']===_0x392d22['id']){const _0x3b5d17=_0x513c33['params'],{fromRange:_0xa08ccf,toRange:_0x4185c3,unitId:_0x3d2ca4,from:_0x36ec2e,to:_0x2fe2d1}=_0x3b5d17;if(_0x36ec2e[_0x51ff3c(0xed)]!==_0x2fe2d1[_0x51ff3c(0xed)])return;const _0x59c673=_0x36ec2e['subUnitId'],{startRow:_0x23456f,endRow:_0x5bf5bb,startColumn:_0x508ec4,endColumn:_0x12f0bf}=_0xa08ccf,{startRow:_0x3caf27,startColumn:_0x28feba}=_0x4185c3,_0x3cd142=_0x3caf27-_0x23456f,_0x5f20fc=_0x28feba-_0x508ec4,_0x39a0cf=this['_sparklineDataSourceModel'][_0x51ff3c(0x113)](_0x3d2ca4,_0x59c673);if(!(_0x39a0cf!=null&&_0x39a0cf[_0x51ff3c(0x112)]))return;for(let _0x2c6ef2=_0x23456f;_0x2c6ef2<=_0x5bf5bb;_0x2c6ef2++)for(let _0x4b79b7=_0x508ec4;_0x4b79b7<=_0x12f0bf;_0x4b79b7++){const _0x3e1e5d=this[_0x51ff3c(0xb4)]['getSparkline'](_0x3d2ca4,_0x59c673,_0x2c6ef2,_0x4b79b7);if(_0x3e1e5d){const _0x139da5=this['_sparklineDataSourceModel'][_0x51ff3c(0x75)](_0x3d2ca4,_0x59c673,_0x3e1e5d);if(_0x139da5){const _0x5a6717=_0x139da5[_0x51ff3c(0xb6)][_0x51ff3c(0x9e)](_0x2c6ef2,_0x4b79b7);_0x5a6717&&(_0x139da5[_0x51ff3c(0xb6)][_0x51ff3c(0x119)](_0x2c6ef2+_0x3cd142,_0x4b79b7+_0x5f20fc,_0x5a6717),_0x139da5[_0x51ff3c(0xb6)][_0x51ff3c(0xfd)](_0x2c6ef2,_0x4b79b7));}}}for(const [_0x48aafe,_0x14d858]of _0x39a0cf){const _0x5c53cf=_0x14d858[_0x51ff3c(0xb6)];_0x5c53cf[_0x51ff3c(0xbd)]((_0x2b28a9,_0x40a088,_0x1a3d64)=>{const _0x35b71b=_0x51ff3c,_0x62795c={..._0x1a3d64};_0x240f2f[_0x35b71b(0xf1)](_0xa08ccf,_0x1a3d64)&&(_0x62795c[_0x35b71b(0xcf)]+=_0x3cd142,_0x62795c['endRow']+=_0x3cd142,_0x62795c[_0x35b71b(0xda)]+=_0x5f20fc,_0x62795c['endColumn']+=_0x5f20fc),_0x5c53cf['setValue'](_0x2b28a9,_0x40a088,_0x62795c);});}this[_0x51ff3c(0xb4)][_0x51ff3c(0xa7)](_0x3d2ca4,_0x59c673);}}}}}}}}));}};Me=Kt([ge(0x0,_0x145e78(_0x2a59fd)),ge(0x1,_0x145e78(_0x3d7d65)),ge(0x2,_0x4c6c1a),ge(0x3,_0x145e78(x))],Me);var Xt=Object['getOwnPropertyDescriptor'],zt=(_0x2691e3,_0x3637a9,_0x4ea4ff,_0x2835bc)=>{for(var _0x245e87=_0x2835bc>0x1?void 0x0:_0x2835bc?Xt(_0x3637a9,_0x4ea4ff):_0x3637a9,_0x183214=_0x2691e3['length']-0x1,_0x5b993c;_0x183214>=0x0;_0x183214--)(_0x5b993c=_0x2691e3[_0x183214])&&(_0x245e87=_0x5b993c(_0x245e87)||_0x245e87);return _0x245e87;},Be=(_0x1a8a60,_0x396ebc)=>(_0x13a159,_0x2eb960)=>_0x396ebc(_0x13a159,_0x2eb960,_0x1a8a60);let Re=class extends _0x17ef6f{constructor(_0x59d082,_0x33e853){const _0x3a62d5=_0x196211;super(),this[_0x3a62d5(0xb9)]=_0x59d082,this[_0x3a62d5(0xb4)]=_0x33e853,this['_initSnapshot']();}[_0x196211(0x124)](){const _0x1a149b=_0x196211,_0x4595ab=_0x514241=>{const _0x422b85=_0x45c2,_0x9add34=this['_sparklineDataSourceModel'][_0x422b85(0x81)](_0x514241);return _0x9add34?JSON[_0x422b85(0x10a)](_0x9add34):'';},_0x23e131=_0x91ce5=>_0x91ce5?JSON[_0x1a149b(0x129)](_0x91ce5):{};this[_0x1a149b(0x101)](this[_0x1a149b(0xb9)][_0x1a149b(0x103)]({'toJson':_0x4595ab,'parseJson':_0x23e131,'pluginName':Ke,'businesses':[_0x45e4c2[_0x1a149b(0xd5)]],'onLoad':(_0x2c824b,_0x444af9)=>{const _0x56afa6=_0x1a149b;this[_0x56afa6(0xb4)][_0x56afa6(0x10f)](_0x444af9);},'onUnLoad':_0xdc5d9b=>{const _0x5c02d8=_0x1a149b;this[_0x5c02d8(0xb4)][_0x5c02d8(0x12c)](_0xdc5d9b);}}));}};Re=zt([Be(0x0,_0x145e78(_0x4065e5)),Be(0x1,_0x145e78(x))],Re);var Jt=Object['defineProperty'],Zt=Object[_0x196211(0x77)],Yt=(_0x5c151e,_0x46b42b,_0x1db0be)=>_0x46b42b in _0x5c151e?Jt(_0x5c151e,_0x46b42b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1db0be}):_0x5c151e[_0x46b42b]=_0x1db0be,qt=(_0x3739ab,_0x11d8dd,_0x20e441,_0x17a230)=>{const _0x2d59ec=_0x196211;for(var _0x5d0900=_0x17a230>0x1?void 0x0:_0x17a230?Zt(_0x11d8dd,_0x20e441):_0x11d8dd,_0x1f3ae6=_0x3739ab[_0x2d59ec(0x8e)]-0x1,_0xcbbf81;_0x1f3ae6>=0x0;_0x1f3ae6--)(_0xcbbf81=_0x3739ab[_0x1f3ae6])&&(_0x5d0900=_0xcbbf81(_0x5d0900)||_0x5d0900);return _0x5d0900;},He=(_0x4c77ac,_0xb50df7)=>(_0xa291e4,_0x13a081)=>_0xb50df7(_0xa291e4,_0x13a081,_0x4c77ac),ze=(_0x27a547,_0x3bc02b,_0x4ab591)=>Yt(_0x27a547,typeof _0x3bc02b!=_0x196211(0x85)?_0x3bc02b+'':_0x3bc02b,_0x4ab591);let ve=class extends _0x3ced7d{constructor(_0x3a640d={},_0x3e33d8,_0x543d90){const _0x18fc29=_0x196211;super(),this['_config']=_0x3a640d,this['_injector']=_0x3e33d8,this[_0x18fc29(0x74)]=_0x543d90,this[_0x18fc29(0x102)](),this['_initRegisterCommand']();}['_initDependencies'](){const _0x251dd5=_0x196211;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]]['forEach'](_0x48c116=>{const _0xd2f429=_0x45c2;this[_0xd2f429(0x8a)]['add'](_0x48c116);}),_0x5f3894(this[_0x251dd5(0x8a)],[[Re]]);}['onReady'](){const _0x408631=_0x196211;_0x5f3894(this[_0x408631(0x8a)],[[me],[_e],[Se],[Me],[Ce],[ke]]);}[_0x196211(0xb1)](){const _0x5eda60=_0x196211;[Nt,V,Ot,y,xt,Oe][_0x5eda60(0x126)](_0x374246=>this[_0x5eda60(0x74)]['registerCommand'](_0x374246));}};ze(ve,_0x196211(0x8c),Ke),ze(ve,_0x196211(0x100),_0x45e4c2[_0x196211(0xd5)]),ve=qt([_0x208d15(_0x245b01),He(0x1,_0x145e78(_0x4d6357)),He(0x2,_0x145e78(_0x2a59fd))],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,De 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 _0x3dd325=_0x2587;(function(_0x49fdac,_0x158064){const _0x4f8e2d=_0x2587,_0x3e546d=_0x49fdac();while(!![]){try{const _0x3c774a=-parseInt(_0x4f8e2d(0x10f))/0x1*(parseInt(_0x4f8e2d(0xff))/0x2)+-parseInt(_0x4f8e2d(0xea))/0x3+-parseInt(_0x4f8e2d(0x117))/0x4+-parseInt(_0x4f8e2d(0x127))/0x5+-parseInt(_0x4f8e2d(0xf6))/0x6*(parseInt(_0x4f8e2d(0x120))/0x7)+parseInt(_0x4f8e2d(0xed))/0x8*(-parseInt(_0x4f8e2d(0x108))/0x9)+parseInt(_0x4f8e2d(0x100))/0xa;if(_0x3c774a===_0x158064)break;else _0x3e546d['push'](_0x3e546d['shift']());}catch(_0x285790){_0x3e546d['push'](_0x3e546d['shift']());}}}(_0x4f4c,0x42fc0));import{SparklineDataSourceModel as _0x78b5cd,SetSheetSparklineCommand as _0x1225fb,RemoveSheetSparklineCommand as _0x56a5a5,AddSheetSparklineCommand as _0x4c8da3,SparklineTypeEnum as _0x1da797}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x4936c1,Injector as _0x1f8193,ICommandService as _0x15f61a,Tools as _0x25ca9a}from'@univerjs/core';import{FWorksheet as _0x568dcd}from'@univerjs/sheets/facade';import{FEnum as _0x3f2d06,FEventName as _0x3b843e,FUniver as _0x12c1c4}from'@univerjs/core/facade';import{SheetsSelectionsService as _0x9c2e70}from'@univerjs/sheets';var z=Object['getOwnPropertyDescriptor'],H=(_0x49af2e,_0x4bb270,_0x4ae174,_0x3b6ae3)=>{const _0x2d63fb=_0x2587;for(var _0x3aa149=_0x3b6ae3>0x1?void 0x0:_0x3b6ae3?z(_0x4bb270,_0x4ae174):_0x4bb270,_0x1df31a=_0x49af2e[_0x2d63fb(0x10e)]-0x1,_0x38bb32;_0x1df31a>=0x0;_0x1df31a--)(_0x38bb32=_0x49af2e[_0x1df31a])&&(_0x3aa149=_0x38bb32(_0x3aa149)||_0x3aa149);return _0x3aa149;},V=(_0xabea61,_0x28915b)=>(_0x55ff18,_0x12fda6)=>_0x28915b(_0x55ff18,_0x12fda6,_0xabea61);let C=class{constructor(_0x28a6fb,_0x22fb61,_0x570297,_0x30dfa9,_0x41aea4,_0x36a38c){const _0x23b4ff=_0x2587;this[_0x23b4ff(0xfd)]=_0x28a6fb,this['_subUnitId']=_0x22fb61,this[_0x23b4ff(0x116)]=_0x570297,this[_0x23b4ff(0x10d)]=_0x30dfa9,this[_0x23b4ff(0xf8)]=_0x41aea4,this[_0x23b4ff(0x112)]=_0x36a38c;}[_0x3dd325(0xe7)](_0x1984d3,_0xca27f6){const _0x2f303c=_0x3dd325,_0x1dd0c3=this['_injector'][_0x2f303c(0xfa)](_0x78b5cd),_0x46f6ba=this[_0x2f303c(0x112)][_0x2f303c(0xfa)](_0x15f61a),_0x57a24c=_0x1dd0c3[_0x2f303c(0xfc)](this[_0x2f303c(0xfd)],this['_subUnitId'],this[_0x2f303c(0x116)]);if(!_0x57a24c)return;const _0x2acb98={'config':_0x57a24c,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x2f303c(0x116)],'resetType':_0x2f303c(0x10b),'sourceRanges':[_0x1984d3],'targetRanges':[_0xca27f6],'primary':{'startRow':this[_0x2f303c(0x10d)],'startColumn':this[_0x2f303c(0xf8)],'endRow':this[_0x2f303c(0x10d)],'endColumn':this[_0x2f303c(0xf8)],'actualRow':this[_0x2f303c(0x10d)],'actualColumn':this[_0x2f303c(0xf8)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x46f6ba['syncExecuteCommand'](_0x1225fb['id'],_0x2acb98),this[_0x2f303c(0x10d)]=_0xca27f6[_0x2f303c(0x10c)],this[_0x2f303c(0xf8)]=_0xca27f6[_0x2f303c(0x106)],this;}[_0x3dd325(0xf3)](){const _0x1db17a=_0x3dd325,_0x23c15b=this[_0x1db17a(0x112)][_0x1db17a(0xfa)](_0x15f61a),_0x2f486e={'isSingle':!0x0,'ranges':[{'startRow':this[_0x1db17a(0x10d)],'startColumn':this[_0x1db17a(0xf8)],'endRow':this[_0x1db17a(0x10d)],'endColumn':this[_0x1db17a(0xf8)]}]};_0x23c15b['syncExecuteCommand'](_0x56a5a5['id'],_0x2f486e);}};C=H([V(0x5,_0x4936c1(_0x1f8193))],C);var q=Object[_0x3dd325(0x105)],J=(_0x5acfc8,_0x1e19f9,_0x58998c,_0x54fc03)=>{const _0x409c8c=_0x3dd325;for(var _0x562ef1=_0x54fc03>0x1?void 0x0:_0x54fc03?q(_0x1e19f9,_0x58998c):_0x1e19f9,_0x2a0941=_0x5acfc8[_0x409c8c(0x10e)]-0x1,_0x30367f;_0x2a0941>=0x0;_0x2a0941--)(_0x30367f=_0x5acfc8[_0x2a0941])&&(_0x562ef1=_0x30367f(_0x562ef1)||_0x562ef1);return _0x562ef1;},K=(_0x3ebba7,_0x4043e6)=>(_0x576108,_0x254d71)=>_0x4043e6(_0x576108,_0x254d71,_0x3ebba7);let w=class{constructor(_0x1843a7,_0x14c960,_0x48c5b1,_0x295574,_0x3755a6,_0x1b082a){const _0x670213=_0x3dd325;this['_unitId']=_0x1843a7,this[_0x670213(0xe5)]=_0x14c960,this['_groupId']=_0x48c5b1,this[_0x670213(0x10d)]=_0x295574,this[_0x670213(0xf8)]=_0x3755a6,this['_injector']=_0x1b082a;}[_0x3dd325(0xe7)](_0x3c6695,_0xecc3b9){const _0x2eb1bb=_0x3dd325,_0xc7f7b8=this[_0x2eb1bb(0x112)][_0x2eb1bb(0xfa)](_0x78b5cd),_0xf5d184=this[_0x2eb1bb(0x112)]['get'](_0x15f61a),_0x8f4279=_0xc7f7b8[_0x2eb1bb(0xfc)](this[_0x2eb1bb(0xfd)],this[_0x2eb1bb(0xe5)],this[_0x2eb1bb(0x116)]);if(!_0x8f4279)return;const _0x4fa48a={'config':_0x8f4279,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x2eb1bb(0x116)],'resetType':'group','sourceRanges':_0x3c6695,'targetRanges':_0xecc3b9,'primary':{'startRow':this['_row'],'startColumn':this[_0x2eb1bb(0xf8)],'endRow':this[_0x2eb1bb(0x10d)],'endColumn':this[_0x2eb1bb(0xf8)],'actualRow':this['_row'],'actualColumn':this[_0x2eb1bb(0xf8)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0xf5d184[_0x2eb1bb(0xe9)](_0x1225fb['id'],_0x4fa48a),this[_0x2eb1bb(0x10d)]=_0xecc3b9[0x0][_0x2eb1bb(0x10c)],this[_0x2eb1bb(0xf8)]=_0xecc3b9[0x0][_0x2eb1bb(0x106)],this;}[_0x3dd325(0x124)](){const _0x5c28ac=_0x3dd325,_0x499b61=this['_injector'][_0x5c28ac(0xfa)](_0x15f61a),_0x746828={'isSingle':!0x1,'ranges':[{'startRow':this[_0x5c28ac(0x10d)],'startColumn':this[_0x5c28ac(0xf8)],'endRow':this[_0x5c28ac(0x10d)],'endColumn':this['_col']}]};_0x499b61['syncExecuteCommand'](_0x56a5a5['id'],_0x746828);}['setConfig'](_0x1df1b2){const _0x1c61d0=_0x3dd325,_0x35ec9b=this['_injector'][_0x1c61d0(0xfa)](_0x78b5cd)['getSparklineById'](this[_0x1c61d0(0xfd)],this['_subUnitId'],this[_0x1c61d0(0x116)]);if(_0x35ec9b){const _0x14243b={'config':{'config':_0x1df1b2,'sparklines':_0x35ec9b[_0x1c61d0(0xf7)]},'isChangeDataSource':!0x1};this[_0x1c61d0(0x112)][_0x1c61d0(0xfa)](_0x15f61a)[_0x1c61d0(0xe9)](_0x1225fb['id'],_0x14243b);}return this;}};w=J([K(0x5,_0x4936c1(_0x1f8193))],w);class L extends _0x568dcd{[_0x3dd325(0x121)](_0x2e45b3,_0x2fda00,_0x1501e3){const _0x296b70=_0x3dd325;if(this[_0x296b70(0xfb)][_0x296b70(0xe9)](_0x4c8da3['id'],{'sourceRanges':_0x2e45b3,'targetRanges':_0x2fda00,'targetInfo':{'unitId':this['_workbook'][_0x296b70(0x104)](),'subUnitId':this[_0x296b70(0xee)]['getSheetId']()},'config':{'type':_0x1501e3}})){const {startRow:_0x53de3f,startColumn:_0x4e95ee}=_0x2fda00[0x0];return this[_0x296b70(0x11f)](_0x53de3f,_0x4e95ee);}}[_0x3dd325(0x103)](){const _0x2823db=_0x3dd325;return this['_injector'][_0x2823db(0xfa)](_0x78b5cd)[_0x2823db(0x114)](this['_workbook'][_0x2823db(0x104)](),this[_0x2823db(0xee)][_0x2823db(0x109)]());}[_0x3dd325(0x10a)](_0x54e7e1){const _0x181444=_0x3dd325,_0x7ea1fe=this[_0x181444(0x112)][_0x181444(0xfa)](_0x78b5cd);let _0x508a11;for(let _0x54bf82=0x0;_0x54bf82<_0x54e7e1[_0x181444(0x10e)];_0x54bf82++){const _0x5b5f4c=_0x54e7e1[_0x54bf82],{startRow:_0x5ce61b,endRow:_0x97b6e9,startColumn:_0x31b989,endColumn:_0x28716d}=_0x5b5f4c;for(let _0x144742=_0x5ce61b;_0x144742<=_0x97b6e9;_0x144742++)for(let _0x47f8c4=_0x31b989;_0x47f8c4<=_0x28716d;_0x47f8c4++){const _0x4e953c=_0x7ea1fe['getSparkline'](this[_0x181444(0xeb)][_0x181444(0x104)](),this[_0x181444(0xee)][_0x181444(0x109)](),_0x144742,_0x47f8c4);if(_0x4e953c){const _0x398eaf=_0x7ea1fe[_0x181444(0xfc)](this[_0x181444(0xeb)][_0x181444(0x104)](),this[_0x181444(0xee)][_0x181444(0x109)](),_0x4e953c);if(_0x398eaf){_0x508a11=_0x25ca9a[_0x181444(0x115)](_0x398eaf);break;}}}}_0x508a11&&this[_0x181444(0xfb)]['executeCommand'](_0x1225fb['id'],{'ranges':_0x54e7e1,'combine':!0x0,'config':_0x508a11,'isChangeDataSource':!0x1});}[_0x3dd325(0xf4)](_0x26834c){const _0x2a645f=_0x3dd325,_0x221767=this[_0x2a645f(0x112)][_0x2a645f(0xfa)](_0x78b5cd);let _0x194531;for(let _0x16bafa=0x0;_0x16bafa<_0x26834c[_0x2a645f(0x10e)];_0x16bafa++){const _0x5a1c20=_0x26834c[_0x16bafa],{startRow:_0x14de25,endRow:_0x38a194,startColumn:_0x1699fe,endColumn:_0x5b09bb}=_0x5a1c20;for(let _0x3fdb33=_0x14de25;_0x3fdb33<=_0x38a194;_0x3fdb33++)for(let _0x598e2b=_0x1699fe;_0x598e2b<=_0x5b09bb;_0x598e2b++){const _0x1dffe1=_0x221767[_0x2a645f(0x107)](this[_0x2a645f(0xeb)][_0x2a645f(0x104)](),this['_worksheet'][_0x2a645f(0x109)](),_0x3fdb33,_0x598e2b);if(_0x1dffe1){const _0x15672f=_0x221767['getSparklineById'](this[_0x2a645f(0xeb)][_0x2a645f(0x104)](),this['_worksheet']['getSheetId'](),_0x1dffe1);if(_0x15672f){_0x194531=_0x25ca9a[_0x2a645f(0x115)](_0x15672f);break;}}}}_0x194531||this[_0x2a645f(0xfb)][_0x2a645f(0x11d)](_0x1225fb['id'],{'ranges':_0x26834c,'unCombine':!0x0,'config':_0x194531,'isChangeDataSource':!0x1});}[_0x3dd325(0x11f)](_0x29c227,_0x26ae7a){const _0x26ede9=_0x3dd325,_0x4bf482=this[_0x26ede9(0x112)][_0x26ede9(0xfa)](_0x78b5cd),_0x533e0d=this[_0x26ede9(0xeb)][_0x26ede9(0x104)](),_0x38fe44=this[_0x26ede9(0xee)]['getSheetId'](),_0x218eea=_0x4bf482['getSparkline'](_0x533e0d,_0x38fe44,_0x29c227,_0x26ae7a);if(_0x218eea)return this['_injector'][_0x26ede9(0xf2)](C,_0x533e0d,_0x38fe44,_0x218eea,_0x29c227,_0x26ae7a);}[_0x3dd325(0xfe)](_0x5c531f,_0x305d55){const _0x452e59=_0x3dd325,_0x184924=this[_0x452e59(0x112)][_0x452e59(0xfa)](_0x78b5cd),_0x509550=this[_0x452e59(0xeb)][_0x452e59(0x104)](),_0x4144d5=this['_worksheet']['getSheetId'](),_0x4a2f44=_0x184924[_0x452e59(0x107)](_0x509550,_0x4144d5,_0x5c531f,_0x305d55);if(_0x4a2f44)return this[_0x452e59(0x112)][_0x452e59(0xf2)](w,_0x509550,_0x4144d5,_0x4a2f44,_0x5c531f,_0x305d55);}}_0x568dcd['extend'](L);class Q extends _0x3f2d06{get[_0x3dd325(0x123)](){return _0x1da797;}}_0x3f2d06[_0x3dd325(0x11b)](Q);class X extends _0x3b843e{get['SheetSparklineChanged'](){return'SheetSparklineChanged';}}_0x3b843e[_0x3dd325(0x11b)](X);function _0x2587(_0x4fba3a,_0x41f423){const _0x4f4c0c=_0x4f4c();return _0x2587=function(_0x2587a7,_0x3d5ee4){_0x2587a7=_0x2587a7-0xe5;let _0x265cd4=_0x4f4c0c[_0x2587a7];return _0x265cd4;},_0x2587(_0x4fba3a,_0x41f423);}class Y extends _0x12c1c4{[_0x3dd325(0xe8)](_0x13224e){const _0x317cbe=_0x3dd325,_0x2d0483=_0x13224e[_0x317cbe(0xfa)](_0x15f61a);this[_0x317cbe(0xe6)](this[_0x317cbe(0x126)][_0x317cbe(0x102)],()=>_0x2d0483[_0x317cbe(0xf5)](_0x1559ed=>{const _0x5783e1=_0x317cbe;var _0x31a74e,_0x52207f;if(_0x1559ed['id']===_0x1225fb['id']){const _0x31e3a1=_0x1559ed[_0x5783e1(0xf9)];if(!_0x31e3a1[_0x5783e1(0x111)]){const _0x1dd93c=this[_0x5783e1(0x122)](),_0x2446ae=_0x1dd93c==null?void 0x0:_0x1dd93c['getActiveSheet']();if(!_0x1dd93c||!_0x2446ae)return;const _0xcdd31b=_0x1dd93c[_0x5783e1(0x11e)](),_0x258a73=_0x2446ae[_0x5783e1(0x109)](),_0x17fa4e=this[_0x5783e1(0x112)][_0x5783e1(0xfa)](_0x9c2e70),_0x42ebf0=this[_0x5783e1(0x112)]['get'](_0x78b5cd),_0x414c00=(_0x31a74e=_0x31e3a1==null?void 0x0:_0x31e3a1['ranges'])!=null?_0x31a74e:_0x17fa4e[_0x5783e1(0xef)]()[_0x5783e1(0x11a)](_0x19d256=>_0x19d256[_0x5783e1(0x118)]),_0x2926ef=(_0x52207f=_0x42ebf0[_0x5783e1(0xf0)]()[_0x5783e1(0x101)]['get'](_0xcdd31b))==null?void 0x0:_0x52207f[_0x5783e1(0xfa)](_0x258a73),_0x4db0d8=new Set();_0x414c00[_0x5783e1(0x110)](_0x10aef3=>{const _0x99e2d1=_0x5783e1;var _0x1a9213;const {startRow:_0x363d66,endRow:_0x3252b9,startColumn:_0x23e5fc,endColumn:_0x521871}=_0x10aef3;for(let _0x552e5a=_0x363d66;_0x552e5a<=_0x3252b9;_0x552e5a++)for(let _0x455ab0=_0x23e5fc;_0x455ab0<=_0x521871;_0x455ab0++){const _0x40d1e4=(_0x1a9213=_0x2926ef==null?void 0x0:_0x2926ef[_0x99e2d1(0xf1)]['getValue'](_0x552e5a,_0x455ab0))==null?void 0x0:_0x1a9213[_0x99e2d1(0x113)];_0x40d1e4&&_0x4db0d8[_0x99e2d1(0xec)](_0x40d1e4);}});const _0x5aa77c=Array['from'](_0x4db0d8)[_0x5783e1(0x11a)](_0xda927d=>_0x42ebf0[_0x5783e1(0xfc)](_0xcdd31b,_0x258a73,_0xda927d))[_0x5783e1(0x11c)](_0x1563a7=>!!_0x1563a7),_0x27fe80={'workbook':_0x1dd93c,'worksheet':_0x2446ae,'sparklines':_0x5aa77c};if(this[_0x5783e1(0x125)](this[_0x5783e1(0x126)][_0x5783e1(0x102)],_0x27fe80),_0x27fe80['cancel'])throw new Error(_0x5783e1(0x119));}}}));}}_0x12c1c4[_0x3dd325(0x11b)](Y);export{C as FSparkline,w as FSparklineGroup};function _0x4f4c(){const _0x322c63=['_commandService','getSparklineById','_unitId','getSparklineGroupByCell','3692kVQjik','14116370UrBHyz','sparklineAnchorMap','SheetSparklineChanged','getAllSubSparkline','getUnitId','getOwnPropertyDescriptor','startColumn','getSparkline','9JIhmJO','getSheetId','composeSparkline','item','startRow','_row','length','287EKYobJ','forEach','isChangeDataSource','_injector','groupId','getSubUnitSparkline','deepClone','_groupId','665040TmJRZh','range','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','map','extend','filter','executeCommand','getId','getSparklineByCell','161irQlwS','addSparkline','getActiveWorkbook','SparklineTypeEnum','removeSparklineGroup','fireEvent','Event','1108565OUGJyv','_subUnitId','registerEventHandler','changeDataSource','_initialize','syncExecuteCommand','189201hpDarq','_workbook','add','990136qMBBOQ','_worksheet','getCurrentSelections','getSparklineCache','matrix','createInstance','removeSparkline','unComposeSparkline','onCommandExecuted','8520DOvodq','sparklines','_col','params','get'];_0x4f4c=function(){return _0x322c63;};return _0x4f4c();}
1
+ const _0x333ac2=_0x51bb;(function(_0x12db63,_0x385737){const _0x3eb773=_0x51bb,_0x563b25=_0x12db63();while(!![]){try{const _0x3113b0=parseInt(_0x3eb773(0x95))/0x1*(parseInt(_0x3eb773(0x75))/0x2)+parseInt(_0x3eb773(0x68))/0x3+parseInt(_0x3eb773(0x80))/0x4+parseInt(_0x3eb773(0x89))/0x5*(-parseInt(_0x3eb773(0x99))/0x6)+-parseInt(_0x3eb773(0x82))/0x7*(parseInt(_0x3eb773(0x73))/0x8)+-parseInt(_0x3eb773(0x9f))/0x9+parseInt(_0x3eb773(0x9e))/0xa;if(_0x3113b0===_0x385737)break;else _0x563b25['push'](_0x563b25['shift']());}catch(_0x5918e1){_0x563b25['push'](_0x563b25['shift']());}}}(_0x2ffc,0x53bf2));import{SparklineDataSourceModel as _0x24f94d,SetSheetSparklineCommand as _0x39b0d4,RemoveSheetSparklineCommand as _0x24341c,AddSheetSparklineCommand as _0x29ac5d,SparklineTypeEnum as _0x5b2c06}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x3604e7,Injector as _0x2e5e25,ICommandService as _0x387c90,Tools as _0x46d5c9}from'@univerjs/core';import{FWorksheet as _0x308eee}from'@univerjs/sheets/facade';import{FEnum as _0x5a9180,FEventName as _0x426b61,FUniver as _0x1dc5d4}from'@univerjs/core/facade';import{SheetsSelectionsService as _0x225fa8}from'@univerjs/sheets';var z=Object[_0x333ac2(0xa2)],H=(_0x25caa4,_0x17f137,_0x251ed2,_0x16d302)=>{const _0xb19359=_0x333ac2;for(var _0x15e824=_0x16d302>0x1?void 0x0:_0x16d302?z(_0x17f137,_0x251ed2):_0x17f137,_0x552d3f=_0x25caa4[_0xb19359(0x7d)]-0x1,_0x1558be;_0x552d3f>=0x0;_0x552d3f--)(_0x1558be=_0x25caa4[_0x552d3f])&&(_0x15e824=_0x1558be(_0x15e824)||_0x15e824);return _0x15e824;},V=(_0x11df10,_0x519b35)=>(_0x22e9bd,_0xfa33dc)=>_0x519b35(_0x22e9bd,_0xfa33dc,_0x11df10);let C=class{constructor(_0x55d03a,_0x5007e6,_0x3f2bef,_0x27ceb7,_0x48763e,_0x4b5d86){const _0x344cb3=_0x333ac2;this[_0x344cb3(0x78)]=_0x55d03a,this[_0x344cb3(0x96)]=_0x5007e6,this[_0x344cb3(0x7b)]=_0x3f2bef,this[_0x344cb3(0x7a)]=_0x27ceb7,this[_0x344cb3(0x9d)]=_0x48763e,this[_0x344cb3(0x72)]=_0x4b5d86;}[_0x333ac2(0x83)](_0x4b0752,_0x483dca){const _0x3b2c0b=_0x333ac2,_0x54f71c=this[_0x3b2c0b(0x72)][_0x3b2c0b(0x77)](_0x24f94d),_0x3a0cd4=this['_injector'][_0x3b2c0b(0x77)](_0x387c90),_0x1db584=_0x54f71c[_0x3b2c0b(0x79)](this[_0x3b2c0b(0x78)],this[_0x3b2c0b(0x96)],this['_groupId']);if(!_0x1db584)return;const _0x55b619={'config':_0x1db584,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x3b2c0b(0x7b)],'resetType':_0x3b2c0b(0x6c),'sourceRanges':[_0x4b0752],'targetRanges':[_0x483dca],'primary':{'startRow':this['_row'],'startColumn':this[_0x3b2c0b(0x9d)],'endRow':this[_0x3b2c0b(0x7a)],'endColumn':this[_0x3b2c0b(0x9d)],'actualRow':this[_0x3b2c0b(0x7a)],'actualColumn':this[_0x3b2c0b(0x9d)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x3a0cd4[_0x3b2c0b(0x90)](_0x39b0d4['id'],_0x55b619),this[_0x3b2c0b(0x7a)]=_0x483dca[_0x3b2c0b(0x8b)],this[_0x3b2c0b(0x9d)]=_0x483dca[_0x3b2c0b(0x84)],this;}[_0x333ac2(0x93)](){const _0x577e86=_0x333ac2,_0x4cf793=this[_0x577e86(0x72)]['get'](_0x387c90),_0x160cea={'isSingle':!0x0,'ranges':[{'startRow':this[_0x577e86(0x7a)],'startColumn':this[_0x577e86(0x9d)],'endRow':this['_row'],'endColumn':this[_0x577e86(0x9d)]}]};_0x4cf793[_0x577e86(0x90)](_0x24341c['id'],_0x160cea);}};C=H([V(0x5,_0x3604e7(_0x2e5e25))],C);var q=Object['getOwnPropertyDescriptor'],J=(_0x76a03a,_0xc7aa7,_0x42c1b6,_0x485821)=>{const _0x380ae5=_0x333ac2;for(var _0x28f4dd=_0x485821>0x1?void 0x0:_0x485821?q(_0xc7aa7,_0x42c1b6):_0xc7aa7,_0x264366=_0x76a03a[_0x380ae5(0x7d)]-0x1,_0x488d09;_0x264366>=0x0;_0x264366--)(_0x488d09=_0x76a03a[_0x264366])&&(_0x28f4dd=_0x488d09(_0x28f4dd)||_0x28f4dd);return _0x28f4dd;},K=(_0x354ad1,_0x2fb1a3)=>(_0x48ec3a,_0x4fed93)=>_0x2fb1a3(_0x48ec3a,_0x4fed93,_0x354ad1);let w=class{constructor(_0xcf6d60,_0x41c12f,_0xbf2cdf,_0x44592f,_0x253a1e,_0x118d0f){const _0x23c17a=_0x333ac2;this[_0x23c17a(0x78)]=_0xcf6d60,this[_0x23c17a(0x96)]=_0x41c12f,this[_0x23c17a(0x7b)]=_0xbf2cdf,this['_row']=_0x44592f,this[_0x23c17a(0x9d)]=_0x253a1e,this[_0x23c17a(0x72)]=_0x118d0f;}['changeDataSource'](_0x456c04,_0x340cae){const _0x32fbbb=_0x333ac2,_0x5ddbb5=this[_0x32fbbb(0x72)][_0x32fbbb(0x77)](_0x24f94d),_0x372c82=this['_injector']['get'](_0x387c90),_0x3de12c=_0x5ddbb5[_0x32fbbb(0x79)](this[_0x32fbbb(0x78)],this[_0x32fbbb(0x96)],this['_groupId']);if(!_0x3de12c)return;const _0x3bb2ef={'config':_0x3de12c,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x32fbbb(0x7b)],'resetType':_0x32fbbb(0xa8),'sourceRanges':_0x456c04,'targetRanges':_0x340cae,'primary':{'startRow':this['_row'],'startColumn':this[_0x32fbbb(0x9d)],'endRow':this['_row'],'endColumn':this[_0x32fbbb(0x9d)],'actualRow':this[_0x32fbbb(0x7a)],'actualColumn':this[_0x32fbbb(0x9d)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x372c82['syncExecuteCommand'](_0x39b0d4['id'],_0x3bb2ef),this[_0x32fbbb(0x7a)]=_0x340cae[0x0]['startRow'],this[_0x32fbbb(0x9d)]=_0x340cae[0x0][_0x32fbbb(0x84)],this;}['removeSparklineGroup'](){const _0x2227e0=_0x333ac2,_0x188ea9=this['_injector'][_0x2227e0(0x77)](_0x387c90),_0xc135fd={'isSingle':!0x1,'ranges':[{'startRow':this[_0x2227e0(0x7a)],'startColumn':this['_col'],'endRow':this[_0x2227e0(0x7a)],'endColumn':this['_col']}]};_0x188ea9['syncExecuteCommand'](_0x24341c['id'],_0xc135fd);}['setConfig'](_0x5838e9){const _0x4078c1=_0x333ac2,_0x5b4a70=this[_0x4078c1(0x72)][_0x4078c1(0x77)](_0x24f94d)['getSparklineById'](this[_0x4078c1(0x78)],this[_0x4078c1(0x96)],this[_0x4078c1(0x7b)]);if(_0x5b4a70){const _0x22ec6a={'config':{'config':_0x5838e9,'sparklines':_0x5b4a70[_0x4078c1(0x6d)]},'isChangeDataSource':!0x1};this[_0x4078c1(0x72)]['get'](_0x387c90)[_0x4078c1(0x90)](_0x39b0d4['id'],_0x22ec6a);}return this;}};function _0x2ffc(){const _0xb7f565=['getActiveWorkbook','map','removeSparkline','getSparkline','2xBALWD','_subUnitId','onCommandExecuted','getAllSubSparkline','12096iCIYFu','_workbook','getUnitId','getSubUnitSparkline','_col','28330zuweWd','3436236ZbGcsX','cancel','getSparklineByCell','getOwnPropertyDescriptor','ranges','getSheetId','sparklineAnchorMap','fireEvent','addSparkline','group','1061955ahDUPE','Event','SheetSparklineChanged','range','item','sparklines','forEach','from','composeSparkline','getSparklineGroupByCell','_injector','16mGNzLy','groupId','558262TGveyu','deepClone','get','_unitId','getSparklineById','_row','_groupId','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','length','getSparklineCache','unComposeSparkline','2088656vjlJHQ','_worksheet','2387609xFivlb','changeDataSource','startColumn','_commandService','SparklineTypeEnum','extend','_initialize','75flwlQb','getId','startRow','getValue','isChangeDataSource','createInstance','executeCommand','syncExecuteCommand'];_0x2ffc=function(){return _0xb7f565;};return _0x2ffc();}w=J([K(0x5,_0x3604e7(_0x2e5e25))],w);class L extends _0x308eee{[_0x333ac2(0xa7)](_0x4e38b7,_0x3d33d5,_0x589053){const _0x31daf=_0x333ac2;if(this[_0x31daf(0x85)][_0x31daf(0x90)](_0x29ac5d['id'],{'sourceRanges':_0x4e38b7,'targetRanges':_0x3d33d5,'targetInfo':{'unitId':this[_0x31daf(0x9a)][_0x31daf(0x9b)](),'subUnitId':this['_worksheet'][_0x31daf(0xa4)]()},'config':{'type':_0x589053}})){const {startRow:_0x5ca6d6,startColumn:_0x520b87}=_0x3d33d5[0x0];return this[_0x31daf(0xa1)](_0x5ca6d6,_0x520b87);}}[_0x333ac2(0x98)](){const _0x2c4ff4=_0x333ac2;return this[_0x2c4ff4(0x72)]['get'](_0x24f94d)[_0x2c4ff4(0x9c)](this[_0x2c4ff4(0x9a)][_0x2c4ff4(0x9b)](),this[_0x2c4ff4(0x81)][_0x2c4ff4(0xa4)]());}[_0x333ac2(0x70)](_0xe7dd80){const _0xedb79c=_0x333ac2,_0x3ca080=this[_0xedb79c(0x72)][_0xedb79c(0x77)](_0x24f94d);let _0x5d0949;for(let _0x217bce=0x0;_0x217bce<_0xe7dd80[_0xedb79c(0x7d)];_0x217bce++){const _0x1e57c5=_0xe7dd80[_0x217bce],{startRow:_0x466376,endRow:_0x2e3e18,startColumn:_0x4e74cb,endColumn:_0x4d3546}=_0x1e57c5;for(let _0x5dcfa8=_0x466376;_0x5dcfa8<=_0x2e3e18;_0x5dcfa8++)for(let _0xbf8bad=_0x4e74cb;_0xbf8bad<=_0x4d3546;_0xbf8bad++){const _0x6f5fe5=_0x3ca080[_0xedb79c(0x94)](this['_workbook'][_0xedb79c(0x9b)](),this['_worksheet'][_0xedb79c(0xa4)](),_0x5dcfa8,_0xbf8bad);if(_0x6f5fe5){const _0x5eb8df=_0x3ca080[_0xedb79c(0x79)](this[_0xedb79c(0x9a)][_0xedb79c(0x9b)](),this[_0xedb79c(0x81)][_0xedb79c(0xa4)](),_0x6f5fe5);if(_0x5eb8df){_0x5d0949=_0x46d5c9[_0xedb79c(0x76)](_0x5eb8df);break;}}}}_0x5d0949&&this['_commandService'][_0xedb79c(0x8f)](_0x39b0d4['id'],{'ranges':_0xe7dd80,'combine':!0x0,'config':_0x5d0949,'isChangeDataSource':!0x1});}[_0x333ac2(0x7f)](_0x1d2662){const _0x183460=_0x333ac2,_0x38f200=this[_0x183460(0x72)][_0x183460(0x77)](_0x24f94d);let _0x3f1561;for(let _0x4da42f=0x0;_0x4da42f<_0x1d2662['length'];_0x4da42f++){const _0x4df71d=_0x1d2662[_0x4da42f],{startRow:_0x47e911,endRow:_0x294e6f,startColumn:_0x39b187,endColumn:_0xa98a46}=_0x4df71d;for(let _0x6b6121=_0x47e911;_0x6b6121<=_0x294e6f;_0x6b6121++)for(let _0x30ed5c=_0x39b187;_0x30ed5c<=_0xa98a46;_0x30ed5c++){const _0x2ef5ff=_0x38f200[_0x183460(0x94)](this[_0x183460(0x9a)][_0x183460(0x9b)](),this[_0x183460(0x81)][_0x183460(0xa4)](),_0x6b6121,_0x30ed5c);if(_0x2ef5ff){const _0xb047b5=_0x38f200[_0x183460(0x79)](this['_workbook'][_0x183460(0x9b)](),this['_worksheet']['getSheetId'](),_0x2ef5ff);if(_0xb047b5){_0x3f1561=_0x46d5c9['deepClone'](_0xb047b5);break;}}}}_0x3f1561||this[_0x183460(0x85)][_0x183460(0x8f)](_0x39b0d4['id'],{'ranges':_0x1d2662,'unCombine':!0x0,'config':_0x3f1561,'isChangeDataSource':!0x1});}[_0x333ac2(0xa1)](_0x4dc056,_0x5981b0){const _0x251ad2=_0x333ac2,_0x2abec4=this[_0x251ad2(0x72)][_0x251ad2(0x77)](_0x24f94d),_0x3241bc=this[_0x251ad2(0x9a)][_0x251ad2(0x9b)](),_0x3a4371=this[_0x251ad2(0x81)][_0x251ad2(0xa4)](),_0x930bb=_0x2abec4['getSparkline'](_0x3241bc,_0x3a4371,_0x4dc056,_0x5981b0);if(_0x930bb)return this[_0x251ad2(0x72)][_0x251ad2(0x8e)](C,_0x3241bc,_0x3a4371,_0x930bb,_0x4dc056,_0x5981b0);}[_0x333ac2(0x71)](_0x38b062,_0x2eeef9){const _0x11fca3=_0x333ac2,_0x190ba3=this['_injector'][_0x11fca3(0x77)](_0x24f94d),_0x1bdad6=this['_workbook'][_0x11fca3(0x9b)](),_0x2eb07a=this[_0x11fca3(0x81)][_0x11fca3(0xa4)](),_0x2bbce6=_0x190ba3[_0x11fca3(0x94)](_0x1bdad6,_0x2eb07a,_0x38b062,_0x2eeef9);if(_0x2bbce6)return this['_injector']['createInstance'](w,_0x1bdad6,_0x2eb07a,_0x2bbce6,_0x38b062,_0x2eeef9);}}_0x308eee[_0x333ac2(0x87)](L);class Q extends _0x5a9180{get[_0x333ac2(0x86)](){return _0x5b2c06;}}_0x5a9180[_0x333ac2(0x87)](Q);class X extends _0x426b61{get[_0x333ac2(0x6a)](){const _0x2017e4=_0x333ac2;return _0x2017e4(0x6a);}}function _0x51bb(_0x10315d,_0x5cd696){const _0x2ffc7c=_0x2ffc();return _0x51bb=function(_0x51bba5,_0x2a8a54){_0x51bba5=_0x51bba5-0x68;let _0x562a55=_0x2ffc7c[_0x51bba5];return _0x562a55;},_0x51bb(_0x10315d,_0x5cd696);}_0x426b61[_0x333ac2(0x87)](X);class Y extends _0x1dc5d4{[_0x333ac2(0x88)](_0x205608){const _0x1fdd81=_0x333ac2,_0x2408bf=_0x205608[_0x1fdd81(0x77)](_0x387c90);this['registerEventHandler'](this[_0x1fdd81(0x69)][_0x1fdd81(0x6a)],()=>_0x2408bf[_0x1fdd81(0x97)](_0x3b3844=>{const _0x493268=_0x1fdd81;var _0x1e415b,_0x55be63;if(_0x3b3844['id']===_0x39b0d4['id']){const _0x38584c=_0x3b3844['params'];if(!_0x38584c[_0x493268(0x8d)]){const _0x25ceaf=this[_0x493268(0x91)](),_0x3aab8f=_0x25ceaf==null?void 0x0:_0x25ceaf['getActiveSheet']();if(!_0x25ceaf||!_0x3aab8f)return;const _0x186f03=_0x25ceaf[_0x493268(0x8a)](),_0x3e00fc=_0x3aab8f[_0x493268(0xa4)](),_0x5649b5=this[_0x493268(0x72)][_0x493268(0x77)](_0x225fa8),_0x270c3c=this['_injector']['get'](_0x24f94d),_0x577609=(_0x1e415b=_0x38584c==null?void 0x0:_0x38584c[_0x493268(0xa3)])!=null?_0x1e415b:_0x5649b5['getCurrentSelections']()[_0x493268(0x92)](_0x8eb3c6=>_0x8eb3c6[_0x493268(0x6b)]),_0x3921ab=(_0x55be63=_0x270c3c[_0x493268(0x7e)]()[_0x493268(0xa5)]['get'](_0x186f03))==null?void 0x0:_0x55be63['get'](_0x3e00fc),_0x672b21=new Set();_0x577609[_0x493268(0x6e)](_0x4d1fc=>{const _0x446a04=_0x493268;var _0x30649f;const {startRow:_0xfbf6be,endRow:_0x2e5578,startColumn:_0x4ab410,endColumn:_0x53c05c}=_0x4d1fc;for(let _0x2afecf=_0xfbf6be;_0x2afecf<=_0x2e5578;_0x2afecf++)for(let _0x23f83d=_0x4ab410;_0x23f83d<=_0x53c05c;_0x23f83d++){const _0x40882f=(_0x30649f=_0x3921ab==null?void 0x0:_0x3921ab['matrix'][_0x446a04(0x8c)](_0x2afecf,_0x23f83d))==null?void 0x0:_0x30649f[_0x446a04(0x74)];_0x40882f&&_0x672b21['add'](_0x40882f);}});const _0x463550=Array[_0x493268(0x6f)](_0x672b21)[_0x493268(0x92)](_0x19db2f=>_0x270c3c[_0x493268(0x79)](_0x186f03,_0x3e00fc,_0x19db2f))['filter'](_0x57b6f0=>!!_0x57b6f0),_0x5dc2c5={'workbook':_0x25ceaf,'worksheet':_0x3aab8f,'sparklines':_0x463550};if(this[_0x493268(0xa6)](this[_0x493268(0x69)][_0x493268(0x6a)],_0x5dc2c5),_0x5dc2c5[_0x493268(0xa0)])throw new Error(_0x493268(0x7c));}}}));}}_0x1dc5d4[_0x333ac2(0x87)](Y);export{C as FSparkline,w as FSparklineGroup};