@univerjs-pro/sheets-pivot 0.8.0-nightly.202506071606 → 0.8.0-nightly.202506081606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4059(_0x3b7099,_0x211b1c){const _0x53279c=_0x5327();return _0x4059=function(_0x405921,_0x1c4979){_0x405921=_0x405921-0x114;let _0x6915ba=_0x53279c[_0x405921];return _0x6915ba;},_0x4059(_0x3b7099,_0x211b1c);}(function(_0xd30cff,_0x51296e){const _0x17838d=_0x4059,_0x3c097a=_0xd30cff();while(!![]){try{const _0x241122=-parseInt(_0x17838d(0x3ec))/0x1+parseInt(_0x17838d(0x120))/0x2+parseInt(_0x17838d(0x207))/0x3+parseInt(_0x17838d(0x3c6))/0x4+-parseInt(_0x17838d(0x421))/0x5*(parseInt(_0x17838d(0x397))/0x6)+parseInt(_0x17838d(0x3d0))/0x7+parseInt(_0x17838d(0x3d9))/0x8*(parseInt(_0x17838d(0x329))/0x9);if(_0x241122===_0x51296e)break;else _0x3c097a['push'](_0x3c097a['shift']());}catch(_0x35df62){_0x3c097a['push'](_0x3c097a['shift']());}}}(_0x5327,0x44ed4),function(_0x273187,_0x4db15c){const _0x56c894=_0x4059;typeof exports==_0x56c894(0x3cb)&&typeof module<'u'?_0x4db15c(exports,require(_0x56c894(0x1f4)),require(_0x56c894(0x2d9)),require(_0x56c894(0x20e)),require(_0x56c894(0x2b0)),require(_0x56c894(0x27a)),require(_0x56c894(0x2e5)),require(_0x56c894(0x172)),require(_0x56c894(0x286)),require(_0x56c894(0x246))):typeof define==_0x56c894(0x402)&&define[_0x56c894(0x414)]?define(['exports',_0x56c894(0x1f4),_0x56c894(0x2d9),'@univerjs/engine-formula',_0x56c894(0x2b0),'rxjs',_0x56c894(0x2e5),_0x56c894(0x172),_0x56c894(0x286),'@univerjs/engine-render'],_0x4db15c):(_0x273187=typeof globalThis<'u'?globalThis:_0x273187||self,_0x4db15c(_0x273187['UniverProSheetsPivot']={},_0x273187[_0x56c894(0x273)],_0x273187[_0x56c894(0x319)],_0x273187[_0x56c894(0x3e7)],_0x273187[_0x56c894(0x24b)],_0x273187[_0x56c894(0x27a)],_0x273187[_0x56c894(0x25e)],_0x273187[_0x56c894(0x2dc)],_0x273187[_0x56c894(0x1ec)],_0x273187['UniverEngineRender']));}(this,function(_0x8a946e,_0x401889,_0x7d31a,_0x2e7afd,_0x399d28,_0x24643e,_0x11dac8,_0x2a5fd6,_0x150f7b,_0x38302b){'use strict';const _0x504d77=_0x4059;var _0x4ba3ac=Object[_0x504d77(0x3fb)],_0x1d2496=(_0x5c0bb2,_0x9a1815,_0x1c70ba)=>_0x9a1815 in _0x5c0bb2?_0x4ba3ac(_0x5c0bb2,_0x9a1815,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c70ba}):_0x5c0bb2[_0x9a1815]=_0x1c70ba,_0xa31747=(_0x39d515,_0xad8850,_0x47e0db)=>_0x1d2496(_0x39d515,typeof _0xad8850!='symbol'?_0xad8850+'':_0xad8850,_0x47e0db);const _0x371240=Number[_0x504d77(0x365)](0x68446431),_0x2d1c06=0x10,_0x474d8e=0x1,_0x5533fc=_0x504d77(0x426),_0x548227=0x1,_0x517621=_0x504d77(0x1ad),_0x5bde8d=_0x504d77(0x1fb),_0x1187ea=_0x504d77(0x3a5),_0x161c75=_0x504d77(0x2ba),_0x2c65a7=_0x504d77(0x2ba),_0x30d261='#eceeff',_0x39dac9=_0x504d77(0x1f0),_0x554383=_0x504d77(0x371),_0x374492='#e6ebfa',_0x56f60d=_0x504d77(0x1f0),_0xea2c47=_0x504d77(0x371),_0x84b70=_0x504d77(0x39c),_0x5bc6b3=0xe,_0x35064e=0x6;var _0x403e0d=(_0xe84ff8=>(_0xe84ff8[_0x504d77(0x39a)]='existing',_0xe84ff8[_0x504d77(0x1d0)]=_0x504d77(0x418),_0xe84ff8))(_0x403e0d||{});const _0x8d92c0={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},_0x54911d=0x1e,_0x4b07f8={'b':{'s':0x1,'cl':{'rgb':_0x1187ea}},'l':{'s':0x1,'cl':{'rgb':_0x1187ea}},'r':{'s':0x1,'cl':{'rgb':_0x1187ea}},'t':{'s':0x1,'cl':{'rgb':_0x1187ea}}},_0x5616d5={'bg':{'rgb':_0x517621},'ht':0x2,'vt':0x2,'tb':0x1},_0xe55163={'bg':{'rgb':_0x5bde8d},'ht':0x2,'vt':0x2,'tb':0x1},_0x2f9434={'rowStyle':{'bg':{'rgb':_0x84b70},'bd':_0x4b07f8,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x56f60d},'bd':null,'cl':{'rgb':_0xea2c47},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x4b07f8,'bg':{'rgb':_0x374492},'vt':0x2},'cornerStyle':{'bd':_0x4b07f8,'bg':{'rgb':_0x30d261},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x4b07f8,'bg':{'rgb':_0x161c75},'vt':0x2},'leafStyle':{'bd':_0x4b07f8,'bg':{'rgb':_0x2c65a7},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x39dac9},'cl':{'rgb':_0x554383},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x4b07f8,'vt':0x2}};function _0x2d4413(_0x715702,_0x36e6ba,_0x48853c){const _0x27554d=_0x504d77,_0x35d05f=_0x715702[_0x27554d(0x3f1)](_0x7d31a[_0x27554d(0x3e5)]),_0x4669dd=_0x48853c[_0x27554d(0x389)]('_');switch(_0x36e6ba){case _0x401889['PivotDateGroupFieldDateTypeEnum'][_0x27554d(0x416)]:return _0x35d05f['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x4669dd);case _0x401889['PivotDateGroupFieldDateTypeEnum']['Minute']:return _0x35d05f['t']('sheets-pivot.cellDateGroupDisplay.minute',..._0x4669dd);case _0x401889[_0x27554d(0x2bc)]['Hour']:return _0x35d05f['t'](_0x27554d(0x237),..._0x4669dd);case _0x401889[_0x27554d(0x2bc)][_0x27554d(0x387)]:return _0x35d05f['t'](_0x27554d(0x14f),..._0x4669dd);case _0x401889[_0x27554d(0x2bc)][_0x27554d(0x306)]:return _0x35d05f['t'](_0x27554d(0x2c3),..._0x4669dd);case _0x401889[_0x27554d(0x2bc)][_0x27554d(0x1d2)]:return _0x35d05f['t'](_0x27554d(0x245),..._0x4669dd);case _0x401889['PivotDateGroupFieldDateTypeEnum'][_0x27554d(0x1a3)]:return _0x35d05f['t'](_0x27554d(0x1b2),..._0x4669dd);case _0x401889[_0x27554d(0x2bc)][_0x27554d(0x2f8)]:return _0x35d05f['t'](_0x27554d(0x130),..._0x4669dd);case _0x401889['PivotDateGroupFieldDateTypeEnum']['YearMonthDate']:return _0x35d05f['t'](_0x27554d(0x366),..._0x4669dd);case _0x401889[_0x27554d(0x2bc)][_0x27554d(0x210)]:return _0x35d05f['t'](_0x27554d(0x3fa),..._0x4669dd);}return'';}const _0x1c7ee7=(_0x20537d,_0x4f1b3f,_0x49d440,_0x341191)=>{const _0x4faf2c=_0x504d77;let _0xed53e8;const _0x22adfe=_0x20537d[_0x4faf2c(0x3f1)](_0x7d31a['IUniverInstanceService'])[_0x4faf2c(0x331)](_0x7d31a[_0x4faf2c(0x24f)]['UNIVER_SHEET']);if(!_0x22adfe)return null;const _0x438df1=_0x22adfe['getStyles']();let _0x260a32;if(_0x49d440&&(_0x260a32=_0x438df1['setValue'](_0x49d440)),_0x4f1b3f!=null&&_0x4f1b3f['v']||(_0x4f1b3f==null?void 0x0:_0x4f1b3f['v'])===0x0){_0xed53e8||(_0xed53e8={});const _0x2b2f89=_0x2a15d0(_0x4f1b3f['v']);typeof _0x2b2f89==_0x4faf2c(0x143)?_0xed53e8['t']=_0x7d31a[_0x4faf2c(0x291)]['NUMBER']:typeof _0x2b2f89=='string'&&(_0xed53e8['t']=_0x7d31a[_0x4faf2c(0x291)][_0x4faf2c(0x31a)]),_0xed53e8['v']=_0x2b2f89;}if((_0x4f1b3f!=null&&_0x4f1b3f['i']||(_0x4f1b3f==null?void 0x0:_0x4f1b3f['i'])===0x0)&&(_0xed53e8||(_0xed53e8={}),_0xed53e8['fi']=_0x4f1b3f['i']),_0x4f1b3f!=null&&_0x4f1b3f['s']&&(_0xed53e8||(_0xed53e8={}),_0xed53e8[_0x4faf2c(0x37b)]=_0x4f1b3f['s']),_0x49d440&&(_0xed53e8||(_0xed53e8={}),_0xed53e8['s']=_0x260a32),_0x341191&&_0xed53e8!=null&&_0xed53e8['v']&&_0xed53e8[_0x4faf2c(0x37b)]!==_0x401889[_0x4faf2c(0x3c4)][_0x4faf2c(0x313)]&&_0xed53e8[_0x4faf2c(0x37b)]!==_0x401889[_0x4faf2c(0x3c4)][_0x4faf2c(0x1c8)]){const _0x280df9=String(_0xed53e8['v']),{dateType:_0x97c6a9}=_0x341191;_0xed53e8['v']=_0x2d4413(_0x20537d,_0x97c6a9,_0x280df9),_0xed53e8['t']=_0x7d31a[_0x4faf2c(0x291)][_0x4faf2c(0x31a)];}return _0xed53e8;},_0x3859c5=(_0x185a38,_0x4c305f,_0x4da12a,_0x2fc367)=>{const _0x213b10=_0x504d77;var _0x45b2ca,_0x131084,_0x59459f,_0x4b3871,_0x257098,_0x167ed2,_0x3cbdad,_0x51a4ac,_0x31bc30,_0x26f084,_0x2c829f,_0x2b01e5,_0x141b82,_0x1ef1cc;const _0x386d36=_0x4da12a['targetCellInfo'],{cornerView:_0x221230,rowView:_0x4ce909,colView:_0x5c0f50,dataView:_0x1379f2,pageView:_0x1f08bb,formatMap:_0x58b5f3,groupInfo:_0x375c3d}=_0x4c305f,{row:_0x510da3,col:_0x24b6fa}=_0x386d36,_0x47fc71=new _0x7d31a[(_0x213b10(0x2ed))](),_0x2d7bea={},_0xfd6ebd={},_0x58ed0d={},_0x5c1fa4={},_0x2e426b={};let _0x76ef97=_0x510da3,_0x35c3ab=_0x24b6fa;Object['keys'](_0x1f08bb[_0x213b10(0x3b8)])[_0x213b10(0x20a)](_0x29efe1=>{const _0x208462=_0x213b10;Object[_0x208462(0x38c)](_0x1f08bb[_0x208462(0x3b8)][Number(_0x29efe1)])['forEach'](_0x21e20c=>{const _0x382dc3=_0x208462,_0xfc8bfe={..._0x1f08bb[_0x382dc3(0x3b8)][Number(_0x29efe1)][Number(_0x21e20c)]};_0x47fc71[_0x382dc3(0x33d)](Number(_0x29efe1)+_0x76ef97,Number(_0x21e20c)+_0x35c3ab,_0x1c7ee7(_0x185a38,_0xfc8bfe,_0x2f9434['pageStyle']));});});const _0x103115=Object[_0x213b10(0x38c)](_0x1f08bb[_0x213b10(0x3b8)])[_0x213b10(0x423)];_0x76ef97+=_0x103115+(_0x103115?_0x548227:0x0);const _0x445d7e=_0x221230[_0x213b10(0x270)](),_0x4f332c=_0x221230[_0x213b10(0x121)]();for(let _0x376d3a=0x0;_0x376d3a<_0x445d7e;_0x376d3a++)for(let _0x5d70a7=0x0;_0x5d70a7<_0x4f332c;_0x5d70a7++){const _0x5d210d={...(_0x131084=(_0x45b2ca=_0x221230[_0x213b10(0x3b8)])==null?void 0x0:_0x45b2ca[_0x376d3a])==null?void 0x0:_0x131084[_0x5d70a7]};_0x5d210d&&((_0x59459f=_0x4ce909['headerMap'][_0x5d70a7])!=null&&_0x59459f[_0x213b10(0x25d)])&&_0x5d70a7===_0x4f332c-0x1&&_0x376d3a===_0x445d7e-0x1&&(_0x5d210d['v']=''+_0x2fc367[_0x213b10(0x16f)]),_0x47fc71[_0x213b10(0x33d)](_0x376d3a+_0x76ef97,_0x5d70a7+_0x35c3ab,_0x1c7ee7(_0x185a38,_0x5d210d,_0x2f9434[_0x213b10(0x27b)]));}for(let _0x354f7a=0x0;_0x354f7a<_0x221230['info'][_0x213b10(0x423)];_0x354f7a++)_0x221230[_0x213b10(0x30b)][_0x354f7a]&&(_0x58ed0d[''+(_0x354f7a+_0x35c3ab)]=_0x221230[_0x213b10(0x30b)][_0x354f7a]);_0x35c3ab+=_0x4f332c;const _0x526918=_0x5c0f50[_0x213b10(0x38e)],_0x356e9a=_0x5c0f50[_0x213b10(0x312)]()>=0x0?_0x5c0f50[_0x213b10(0x312)]()+0x1:0x0,_0x3c1ad2=_0x5c0f50[_0x213b10(0x1ee)]()>=0x0?_0x5c0f50[_0x213b10(0x1ee)]()+0x1:0x0;for(let _0x15e66e=0x0;_0x15e66e<_0x3c1ad2;_0x15e66e++){for(let _0x5de5d9=0x0;_0x5de5d9<_0x356e9a;_0x5de5d9++){const _0x35b208={...(_0x257098=(_0x4b3871=_0x5c0f50[_0x213b10(0x3b8)])==null?void 0x0:_0x4b3871[_0x5de5d9])==null?void 0x0:_0x257098[_0x15e66e]},_0x232af0=(_0x167ed2=_0x526918[_0x5de5d9])==null?void 0x0:_0x167ed2[_0x213b10(0x3c0)],_0x9a2b2e=_0x58b5f3[_0x232af0],_0x3642ac=_0x375c3d[_0x232af0];_0x35b208&&(_0x35b208['v']=_0x39744b(_0x35b208,_0x5de5d9===0x0&&((_0x3cbdad=_0x5c0f50[_0x213b10(0x3ea)](_0x15e66e+0x1))==null?void 0x0:_0x3cbdad[_0x213b10(0x25d)]),_0x9a2b2e,_0x2fc367));let _0x459c11;_0x9a2b2e?_0x459c11={..._0x2f9434[_0x213b10(0x355)],'n':{'pattern':_0x9a2b2e}}:_0x459c11={..._0x2f9434[_0x213b10(0x355)]},_0x47fc71[_0x213b10(0x33d)](_0x5de5d9+_0x76ef97,_0x15e66e+_0x35c3ab,_0x1c7ee7(_0x185a38,_0x35b208,_0x459c11,_0x3642ac));}_0x5c0f50[_0x213b10(0x30b)][_0x15e66e]&&(_0xfd6ebd[''+(_0x15e66e+_0x35c3ab)]=_0x5c0f50[_0x213b10(0x30b)][_0x15e66e]),_0x5c0f50[_0x213b10(0x38e)][_0x15e66e+0x1]&&(_0x2e426b[''+(_0x15e66e+_0x76ef97+0x1)]=_0x5c0f50[_0x213b10(0x38e)][_0x15e66e+0x1]);}_0x76ef97+=_0x445d7e;const _0x540bbe=_0x4ce909[_0x213b10(0x38e)],_0x293217=_0x4ce909['getLastRow']()>=0x0?_0x4ce909[_0x213b10(0x312)]()+0x1:0x0,_0x37546e=_0x4ce909[_0x213b10(0x1ee)]()>=0x0?_0x4ce909[_0x213b10(0x1ee)]()+0x1:0x0;for(let _0x3932d4=0x0;_0x3932d4<_0x293217;_0x3932d4++){for(let _0xc444e=0x0;_0xc444e<_0x37546e;_0xc444e++){const _0x71c247={...(_0x31bc30=(_0x51a4ac=_0x4ce909[_0x213b10(0x3b8)])==null?void 0x0:_0x51a4ac[_0x3932d4])==null?void 0x0:_0x31bc30[_0xc444e]},_0x3f3411=(_0x26f084=_0x540bbe[_0xc444e])==null?void 0x0:_0x26f084[_0x213b10(0x3c0)],_0x42bbe9=_0x58b5f3[_0x3f3411],_0x5ce370=_0x375c3d[_0x3f3411];_0x71c247&&(_0x71c247['v']=_0x39744b(_0x71c247,!0x1,_0x42bbe9,_0x2fc367));let _0x23f7ed;_0x4ce909[_0x213b10(0x30b)][_0x3932d4][_0x213b10(0x3b1)]===_0x4ce909[_0x213b10(0x121)]()?_0x23f7ed=_0x2f9434[_0x213b10(0x349)]:_0x4ce909[_0x213b10(0x30b)][_0x3932d4][_0x213b10(0x344)]?_0x23f7ed=_0x4ce909[_0x213b10(0x30b)][_0x3932d4][_0x213b10(0x3b1)]===0x0?_0x2f9434[_0x213b10(0x267)]:_0x2f9434[_0x213b10(0x1de)]:_0x23f7ed=_0x2f9434['rowStyle'],_0x42bbe9&&(_0x23f7ed={..._0x23f7ed,'n':{'pattern':_0x42bbe9}}),_0x47fc71[_0x213b10(0x33d)](_0x3932d4+_0x76ef97,_0xc444e+_0x24b6fa,_0x1c7ee7(_0x185a38,_0x71c247,_0x23f7ed,_0x5ce370));}_0x4ce909['info'][_0x3932d4]&&(_0x2d7bea[''+(_0x3932d4+_0x76ef97)]=_0x4ce909[_0x213b10(0x30b)][_0x3932d4]),_0x4ce909[_0x213b10(0x38e)][_0x3932d4]&&(_0x5c1fa4[''+(_0x3932d4+_0x24b6fa)]=_0x4ce909[_0x213b10(0x38e)][_0x3932d4]);}const _0x4d53fa=_0x1379f2[_0x213b10(0x270)](),_0x50de00=_0x1379f2['getColCount']();for(let _0x5d3c02=0x0;_0x5d3c02<_0x4d53fa;_0x5d3c02++)for(let _0x34a4a4=0x0;_0x34a4a4<_0x50de00;_0x34a4a4++){const _0x5aefd1={...(_0x2b01e5=(_0x2c829f=_0x1379f2[_0x213b10(0x3b8)])==null?void 0x0:_0x2c829f[_0x5d3c02])==null?void 0x0:_0x2b01e5[_0x34a4a4]};let _0x577a17;_0x4ce909[_0x213b10(0x30b)][_0x5d3c02][_0x213b10(0x344)]?_0x577a17=_0x4ce909[_0x213b10(0x30b)][_0x5d3c02][_0x213b10(0x3b1)]===0x0?_0x2f9434['grandTotal']:_0x2f9434[_0x213b10(0x1de)]:_0x577a17=_0x2f9434[_0x213b10(0x188)];const _0x4c99b6=_0x4ce909[_0x213b10(0x30b)][_0x5d3c02][_0x213b10(0x32a)],_0x12a2b5=_0x5c0f50[_0x213b10(0x30b)][_0x34a4a4][_0x213b10(0x32a)],_0x5d055e=Math[_0x213b10(0x262)](_0x4c99b6,_0x12a2b5),_0x47d3f5=_0x4da12a[_0x213b10(0x197)]['valueFields']['concat']();let _0x48bcc5='';_0x5d055e<0x0?_0x48bcc5=(_0x141b82=_0x47d3f5[0x0])!=null?_0x141b82:'':_0x48bcc5=(_0x1ef1cc=_0x47d3f5[_0x5d055e])!=null?_0x1ef1cc:'';const _0x10b24d=_0x58b5f3[_0x48bcc5];_0x10b24d&&(_0x577a17={..._0x577a17,'n':{'pattern':_0x10b24d}}),_0x47fc71[_0x213b10(0x33d)](_0x5d3c02+_0x76ef97,_0x34a4a4+_0x35c3ab,_0x1c7ee7(_0x185a38,_0x5aefd1,_0x577a17));}return{'valueMatrix':_0x47fc71,'rowInfo':_0x2d7bea,'colInfo':_0xfd6ebd,'cornerInfo':_0x58ed0d,'rowHeaderMap':_0x5c1fa4,'colHeaderMap':_0x2e426b};};function _0x39744b(_0x2abce7,_0x1d929f,_0x1bebbf,_0x32433e){const _0x113169=_0x504d77;let _0x44dceb=_0x2abce7['v'];_0x1d929f&&(_0x44dceb=''+_0x32433e[_0x113169(0x16f)]);const _0x3906d8=_0x2abce7['t']&&(_0x2abce7['t']&_0x401889[_0x113169(0x21c)]['blank'])>0x0;if(_0x3906d8&&(_0x44dceb=''+_0x32433e[_0x113169(0x384)]),_0x2abce7['s']===_0x401889['PivotCellStyleTypeEnum'][_0x113169(0x1c8)]){let _0x2da938=_0x44dceb,_0x20912d='';_0x401889['isPrefixValue'](_0x44dceb)&&(_0x2da938=_0x44dceb[_0x113169(0x3fe)],_0x20912d=_0x44dceb[_0x113169(0x328)]);const _0x8fd7e9=_0x1bebbf&&!_0x3906d8?_0x7d31a['numfmt']['format'](_0x1bebbf,Number(_0x2da938)):_0x2da938;_0x20912d?_0x44dceb=_0x8fd7e9+'\x20'+_0x20912d:_0x44dceb=_0x8fd7e9+'\x20'+_0x32433e[_0x113169(0x1af)];}else _0x2abce7['s']===_0x401889[_0x113169(0x3c4)][_0x113169(0x313)]&&(_0x44dceb=_0x44dceb+'\x20'+_0x32433e[_0x113169(0x18a)]);return _0x44dceb;}function _0x2a15d0(_0x975db3){const _0x1a4c78=_0x504d77;if(_0x401889['isErrorValue'](_0x975db3)){const {errorType:_0x3760dd}=_0x975db3;switch(_0x3760dd){case _0x401889['PivotErrorTypeEnum'][_0x1a4c78(0x135)]:return _0x2e7afd[_0x1a4c78(0x251)][_0x1a4c78(0x22b)];case _0x401889['PivotErrorTypeEnum'][_0x1a4c78(0x37d)]:return _0x2e7afd['ErrorType']['NUM'];case _0x401889[_0x1a4c78(0x117)]['NotFunction']:return _0x2e7afd['ErrorType'][_0x1a4c78(0x153)];case _0x401889[_0x1a4c78(0x117)]['NotName']:return _0x2e7afd['ErrorType']['NAME'];case _0x401889[_0x1a4c78(0x117)]['BadReference']:return _0x2e7afd[_0x1a4c78(0x251)][_0x1a4c78(0x281)];}}return _0x975db3;}function _0x15efc2(_0x5b1cd6,_0x3e2e21,_0x1cb0fa=!0x1,_0x5c9750=!0x1){const _0x2e6727=_0x504d77,{data:_0x451476}=_0x3e2e21,_0x180730=_0x3e2e21[_0x2e6727(0x270)](),_0x127474=_0x3e2e21['getColCount']();if(_0x180730<=0x0||_0x127474<=0x0)return[];const _0x68558b=_0x3e2e21['getLastCol'](),_0x3b157a=_0x3e2e21[_0x2e6727(0x312)](),_0x39ee47=_0x5c9750?_0x3b157a>=0x0?_0x3b157a+0x1:0x0:_0x180730,_0x499adf=_0x5c9750?_0x68558b>=0x0?_0x68558b+0x1:0x0:_0x127474,{row:_0x11ef7e,col:_0x6433ec}=_0x5b1cd6,_0x27ae4a=_0x11ef7e,_0xf6484=_0x6433ec;if(_0x1cb0fa){const _0x5c28ae=[];for(const [_0x10b13c,_0x3a23a5]of Object['entries'](_0x451476))for(const [_0x5bfaf3,_0x26619e]of Object[_0x2e6727(0x12b)](_0x3a23a5))_0x5c28ae[_0x2e6727(0x25f)](_0x7d31a['cellToRange'](_0x27ae4a+Number(_0x10b13c),_0xf6484+Number(_0x5bfaf3)));return _0x5c28ae;}else{const _0x2d61dc=_0x5c9750?_0x39ee47>0x0?0x1:0x0:0x1,_0x4969d9=_0x5c9750?_0x499adf>0x0?0x1:0x0:0x1,_0x3116f6=_0x11ef7e+_0x39ee47-_0x2d61dc,_0x1b368f=_0x6433ec+_0x499adf-_0x4969d9;return[{'startRow':_0x27ae4a,'startColumn':_0xf6484,'endRow':_0x3116f6,'endColumn':_0x1b368f}];}}const _0x540f5f='SHEET_PIVOT_IN_MAIN_THREAD',_0x22d674=_0x504d77(0x39e);var _0x281e70=(_0xc71247=>(_0xc71247[_0x504d77(0x127)]=_0x504d77(0x3a7),_0xc71247[_0x504d77(0x36e)]=_0x504d77(0x2ab),_0xc71247[_0x504d77(0x1cd)]=_0x504d77(0x1b6),_0xc71247[_0x504d77(0x2dd)]=_0x504d77(0x2dd),_0xc71247[_0x504d77(0x272)]=_0x504d77(0x23e),_0xc71247[_0x504d77(0x2f2)]=_0x504d77(0x2a3),_0xc71247[_0x504d77(0x287)]='removePivotField',_0xc71247[_0x504d77(0x3b7)]=_0x504d77(0x3f9),_0xc71247[_0x504d77(0x2e0)]=_0x504d77(0x3c5),_0xc71247[_0x504d77(0x282)]=_0x504d77(0x21d),_0xc71247[_0x504d77(0x20f)]='setPivotSetting',_0xc71247[_0x504d77(0x16a)]=_0x504d77(0x30a),_0xc71247[_0x504d77(0x119)]=_0x504d77(0x175),_0xc71247[_0x504d77(0x337)]=_0x504d77(0x2be),_0xc71247[_0x504d77(0x151)]='setValuePivotFilter',_0xc71247['SetPivotTableConfig']=_0x504d77(0x3c8),_0xc71247['ResetPivotTable']=_0x504d77(0x352),_0xc71247))(_0x281e70||{});const _0x2d2c65={'sheets-pivot.blankValue':_0x504d77(0x315),'sheets-pivot.columnName':_0x504d77(0x2b7),'sheets-pivot.subTotalText':_0x504d77(0x380),'sheets-pivot.grandTotalText':'Grand\x20Total','sheets-pivot.valueText':'Value','sheets-pivot.averageName':_0x504d77(0x2f4),'sheets-pivot.countName':_0x504d77(0x3ad),'sheets-pivot.countNumsName':_0x504d77(0x3ad),'sheets-pivot.maxName':'Max\x20of\x20','sheets-pivot.minName':_0x504d77(0x3e4),'sheets-pivot.productName':_0x504d77(0x2a9),'sheets-pivot.stdDevName':_0x504d77(0x316),'sheets-pivot.stdDevpName':_0x504d77(0x36c),'sheets-pivot.sumName':_0x504d77(0x2b6),'sheets-pivot.varName':_0x504d77(0x22c),'sheets-pivot.varpName':_0x504d77(0x288),'sheets-pivot.subTotal':_0x504d77(0x1c8),'sheets-pivot.grandTotal':_0x504d77(0x13a),'sheets-pivot.value':_0x504d77(0x328),'sheets-pivot.blank':_0x504d77(0x40d),'sheets-pivot.emptyPivot.filter':_0x504d77(0x127),'sheets-pivot.emptyPivot.row':'Row','sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':_0x504d77(0x275)},_0x3340b7={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x4a899f=_0x7d31a[_0x504d77(0x292)](_0x504d77(0x33f)),_0x32e6cf=_0x7d31a[_0x504d77(0x23b)](_0x504d77(0x186));var _0x20561e=(_0x32f474=>(_0x32f474[_0x504d77(0x213)]='add',_0x32f474[_0x504d77(0x30e)]='delete',_0x32f474[_0x504d77(0x28e)]=_0x504d77(0x28e),_0x32f474))(_0x20561e||{}),_0x462181=(_0x598fbc=>(_0x598fbc[_0x504d77(0x2d4)]='add',_0x598fbc[_0x504d77(0x223)]=_0x504d77(0x293),_0x598fbc[_0x504d77(0x29a)]=_0x504d77(0x30e),_0x598fbc))(_0x462181||{});const _0x3f7f8={0x0:'s',0x1:'u',0x2:'h',0x3:'U',0x4:'t',0x5:'S',0x6:'v',0x7:'3',0x8:'5',0x9:'7','d':'0','B':'1','A':'2','C':'4','u':'6','S':'8','z':'9','a':'a','m':'b','f':'c','e':'d','J':'e','g':'f','Y':'g','q':'i','p':'j','L':'k','K':'l','s':'m','M':'n','o':'o','i':'p','Q':'q','h':'r','H':'w','U':'x','P':'y','X':'z','D':'A','v':'B','b':'C','j':'D','T':'E','G':'F','y':'G','R':'H','x':'I','N':'J','l':'K','W':'L','Z':'M','r':'N','F':'O','n':'P','O':'Q','k':'R','c':'T','I':'V','t':'W','V':'X','E':'Y','w':'Z'},_0x54fa98='g1Mf4qoM\x20eJfhPi4qoM(KqfJM0J,\x20i1mKqflJP)\x20{\x20\x20\x20\x204hP\x20{\x20\x20\x20\x20\x20\x20\x20\x20foM04\x20KqfJM0JxMgonah4DhhaP\x20=\x20KqfJM0J.0iKq4(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20foM04\x20ohqYqMZJ00aYJ\x20=\x20N5Fr.iah0J(a4om(KqfJM0JxMgonah4DhhaP[A]));\x20\x20\x20\x20\x20\x20\x20\x20qg\x20(!ohqYqMZJ00aYJ.1e)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ohqYqMZJ00aYJ.1e\x20=\x20r1smJh(KqfJM0JxMgonah4DhhaP[C]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20foM04\x20q0tohLJh\x20=\x204PiJog\x20tohLJhyKomaK5foiJ\x20!==\x20\x271MeJgqMJe\x27\x20&&\x200JKg\x20qM04aMfJog\x20tohLJhyKomaK5foiJ;\x20\x20\x20\x20\x20\x20\x20\x20foM04\x20foM4JU4\x20=\x20q0tohLJh\x20?\x200JKg\x20:\x20HqMeoH;\x20\x20\x20\x20\x20\x20\x20\x20foM04\x20sJ00aYJtohe\x20=\x20foM4JU4.__va0JuC__.iah0J(KqfJM0JxMgonah4DhhaP[A]);\x20\x20\x20\x20\x20\x20\x20\x20foM04\x20sJ00aYJ\x20=\x20foM4JU4.__RJU__.04hqMYqgP(sJ00aYJtohe);\x20\x20\x20\x20\x20\x20\x20\x20foM04\x200qYMa41hJtohe\x20=\x20foM4JU4.__va0JuC__.iah0J(KqfJM0JxMgonah4DhhaP[7]);\x20\x20\x20\x20\x20\x20\x20\x20foM04\x200qYMa41hJ\x20=\x20foM4JU4.__RJU__.04hqMYqgP(0qYMa41hJtohe);\x20\x20\x20\x20\x20\x20\x20\x20foM04\x200qYMIaKqe\x20=\x20foM4JU4.__6JhqgP__(0qYMa41hJ,\x20sJ00aYJ,\x20i1mKqflJP);\x20\x20\x20\x20\x20\x20\x20\x20foM04\x20eosaqM\x20=\x20ohqYqMZJ00aYJ.es;\x20\x20\x20\x20\x20\x20\x20\x20g1Mf4qoM\x20q0josaqMZa4f2qMY(ona44JhM,\x20oRo04)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foM04\x20ia44JhM\x20=\x20ona44JhM.hJiKafJ(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foM04\x202o04\x20=\x20oRo04.hJiKafJ(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foM04\x20ia44JhMnah40\x20=\x20ia44JhM.0iKq4(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foM04\x202o04nah40\x20=\x202o04.0iKq4(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qg\x20(!ia44JhM.qMfK1eJ0(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hJ41hM\x20ia44JhM\x20===\x202o04;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qg\x20(ia44JhMnah40.KJMY42\x20<\x20A\x20||\x20ia44JhMnah40[d]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hJ41hM\x20gaK0J;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foM04\x20ia44JhM51ggqU\x20=\x20ia44JhMnah40.0KqfJ(B).poqM(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foM04\x202o0451ggqU\x20=\x202o04nah40.0KqfJ(-ia44JhMnah40.KJMY42\x20+\x20B).poqM(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hJ41hM\x20ia44JhM51ggqU\x20===\x202o0451ggqU;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20KJ4\x20eosaqMIaKqe\x20=\x20(eosaqM\x20&&\x20eosaqM.KJMY42)\x20?\x20eosaqM.0osJ((esx4Js)\x20=>\x20q0josaqMZa4f2qMY(esx4Js,\x20Kofa4qoM.2o04MasJ))\x20:\x204h1J;\x20\x20\x20\x20\x20\x20\x20\x20qg\x20(Kofa4qoM.2o04MasJ\x20===\x20\x27KofaK2o04\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20eosaqMIaKqe\x20=\x204h1J;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20foM04\x206aKqe\x20=\x200qYMIaKqe\x20&&\x20eosaqMIaKqe;\x20\x20\x20\x20\x20\x20\x20\x20hJ41hM\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x206aKqe,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sJ00aYJ:\x20ohqYqMZJ00aYJ,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20fa4f2\x20(Jhhoh)\x20{\x20\x20\x20\x20\x20\x20\x20\x20hJ41hM\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x206aKqe:\x20gaK0J,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sJ00aYJ:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}',_0xafd79e={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x232),'handler':()=>!0x0},_0x252639={'type':_0x7d31a['CommandType'][_0x504d77(0x341)],'id':_0x504d77(0x2ec),'handler':()=>!0x0},_0x592b77={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x317),'handler':()=>!0x0},_0x14a613={'type':_0x7d31a['CommandType'][_0x504d77(0x341)],'id':_0x504d77(0x1f9),'handler':()=>!0x0},_0x4c05b6={'type':_0x7d31a['CommandType'][_0x504d77(0x341)],'id':_0x504d77(0x21a),'handler':()=>!0x0},_0x5a4d18=_0x55ecaa=>{const _0x3bc9e9=_0x504d77;var _0x2b763a;return((_0x2b763a=_0x55ecaa[_0x3bc9e9(0x250)])==null?void 0x0:_0x2b763a[_0x3bc9e9(0x2a1)][_0x3bc9e9(0x3a9)](/\r\n$/,''))||'';};class _0x47d4ee extends _0x401889['DataFieldManager']{constructor(_0x2344e7,_0x3499b0){const _0x34baec=_0x504d77;super(),_0xa31747(this,_0x34baec(0x2f0),{}),_0xa31747(this,'_univerInstanceService'),_0xa31747(this,_0x34baec(0x3f0)),(this[_0x34baec(0x2db)]=_0x3499b0,this['_host']=_0x2344e7);}[_0x504d77(0x3c7)](){const _0x51d242=_0x504d77;for(const _0x2b474b in this[_0x51d242(0x309)]){const _0x23f0ff=this[_0x51d242(0x309)][_0x2b474b],_0x426d3c=_0x23f0ff[_0x51d242(0x19a)]();this[_0x51d242(0x2f0)][_0x426d3c]=_0x23f0ff['getId']();}}['getAutoDisplayNameFunction'](){const _0x58d843=_0x504d77,_0x4a19bc=this['_host'];return _0x20d35c[_0x58d843(0x419)](_0x4a19bc);}['deleteDataField'](_0x3deb56){const _0x19bf4e=_0x504d77,_0x465984=this['dataFields'][_0x3deb56][_0x19bf4e(0x2eb)];delete this['dataFields'][_0x3deb56],delete this[_0x19bf4e(0x2f0)][_0x465984];}[_0x504d77(0x2fe)](_0x5e0dbe){const _0x56aaff=_0x504d77;this[_0x56aaff(0x309)][_0x5e0dbe['getId']()]=_0x5e0dbe;}[_0x504d77(0x212)](_0x39c745){const _0x58bbde=_0x504d77;var _0xa3d718,_0x17bb1e;const _0x26c8d2=this[_0x58bbde(0x3f0)][_0x58bbde(0x1ab)](_0x39c745);if(_0x26c8d2){const {unitId:_0x1e1e05,subUnitId:_0x53f678}=_0x26c8d2,_0x5726d6=(_0xa3d718=this[_0x58bbde(0x3f0)][_0x58bbde(0x2fb)](_0x1e1e05,_0x53f678,_0x39c745))==null?void 0x0:_0xa3d718[_0x58bbde(0x2ce)];this[_0x58bbde(0x3f0)][_0x58bbde(0x15a)]({'token':_0x39c745,'type':_0x20561e[_0x58bbde(0x30e)],'dataRangeInfo':_0x5726d6});}(_0x17bb1e=this[_0x58bbde(0x3f4)](_0x39c745))==null||_0x17bb1e[_0x58bbde(0x227)](),delete this['collections'][_0x39c745];}[_0x504d77(0x19a)](_0x4d040d,_0x257a6c){const _0x3d3a84=_0x504d77,{sheetName:_0xfe414b,unitId:_0x574faa,range:_0x4f1d88}=_0x4d040d,{startRow:_0x3e25ba,endRow:_0x3a3cb7}=_0x4f1d88;return _0x2e7afd[_0x3d3a84(0x2cb)](_0x574faa,_0xfe414b,{'startRow':_0x3e25ba,'endRow':_0x3a3cb7,'startColumn':_0x257a6c,'endColumn':_0x257a6c});}[_0x504d77(0x243)](_0x2b3d6a){const _0x5feeaf=_0x504d77;return this[_0x5feeaf(0x309)][this[_0x5feeaf(0x2f0)][_0x2b3d6a]];}[_0x504d77(0x1e9)](_0x39d738,_0x43e55c){const _0x3b985b=_0x504d77;this[_0x3b985b(0x2f0)][_0x39d738]=_0x43e55c;}[_0x504d77(0x285)](_0xed0f15,_0x3a0703){const _0x288f12=_0x504d77;this[_0x288f12(0x2f0)][_0x3a0703]=this[_0x288f12(0x2f0)][_0xed0f15],delete this['rangeKeyMap'][_0xed0f15];}[_0x504d77(0x430)](_0x311983,_0x4b56a8,_0x4a6e8b,_0x3a6fe9){const _0x49d75c=_0x504d77,_0x1c0d5e=new _0x401889[(_0x49d75c(0x132))](this);_0x1c0d5e[_0x49d75c(0x420)](_0x4b56a8);const _0x3146ca=[];let _0x461fe8=0x0;for(const _0x9f7879 of _0x1c0d5e[_0x49d75c(0x3b9)]){const _0x152223=this[_0x49d75c(0x19a)](_0x4a6e8b,_0x461fe8),_0x152d56=this[_0x49d75c(0x309)][_0x9f7879];_0x152d56&&(_0x152d56[_0x49d75c(0x2eb)]=_0x152223,this[_0x49d75c(0x1e9)](_0x152223,_0x9f7879),_0x3146ca[_0x49d75c(0x25f)]({'index':_0x461fe8,'dataField':_0x152d56})),_0x461fe8++;}return this[_0x49d75c(0x41b)](_0x311983,_0x1c0d5e,_0x4a6e8b,_0x3a6fe9),{'collection':_0x1c0d5e,'updateDataFieldList':_0x3146ca};}[_0x504d77(0x148)](_0x56b957,_0x9973e5){const _0x4fca7e=_0x504d77;return _0x56b957[_0x4fca7e(0x3d6)]===_0x7d31a[_0x4fca7e(0x425)][_0x4fca7e(0x3cd)]?{'startRow':0x0,'startColumn':_0x56b957[_0x4fca7e(0x30d)],'endRow':_0x9973e5[_0x4fca7e(0x270)]()-0x1,'endColumn':_0x56b957[_0x4fca7e(0x1e1)]}:{'startRow':_0x56b957[_0x4fca7e(0x2d5)],'startColumn':_0x56b957['startColumn'],'endRow':_0x56b957[_0x4fca7e(0x125)],'endColumn':_0x56b957[_0x4fca7e(0x1e1)]};}['createCollectionWithDataRange'](_0x156e3b){const _0x895435=_0x504d77,{sheetName:_0x1ae3a4,range:_0x266b1a}=_0x156e3b,_0x2f5ba9=this[_0x895435(0x2db)][_0x895435(0x331)](_0x7d31a[_0x895435(0x24f)][_0x895435(0x383)]),_0x3fe31b=_0x2f5ba9[_0x895435(0x225)](_0x1ae3a4),_0xccf1ae=_0x3fe31b[_0x895435(0x16d)](),{startColumn:_0x494806,startRow:_0x353d58,endColumn:_0x16f2f6}=this[_0x895435(0x148)](_0x266b1a,_0x3fe31b),_0x30e8c8=_0x2f5ba9['getStyles'](),_0x3b9b69=new _0x401889[(_0x895435(0x132))](this);_0x3b9b69[_0x895435(0x1b0)](_0x156e3b);const _0x47b853=[],_0x16574c={};for(let _0x4fc234=_0x494806;_0x4fc234<=_0x16f2f6;_0x4fc234++){const _0x533e06=_0xccf1ae['getValue'](_0x353d58,_0x4fc234),_0x31710b=this[_0x895435(0x19a)](_0x156e3b,_0x4fc234),_0x2aa7bf=this[_0x895435(0x243)](_0x31710b);if(_0x2aa7bf)_0x3b9b69[_0x895435(0x279)](_0x2aa7bf[_0x895435(0x347)](),_0x2aa7bf[_0x895435(0x2a6)]());else{const _0x16405d=this[_0x895435(0x15b)]();let _0x225377=this[_0x895435(0x19e)](_0x533e06,_0x30e8c8,_0x16574c);_0x401889[_0x895435(0x123)](_0x225377)&&(_0x225377=_0x7d31a[_0x895435(0x19d)][_0x895435(0x2ac)](_0x225377['f'],Number(_0x225377['v'])));const _0x36692e=this[_0x895435(0x256)](_0x225377,_0x4fc234),_0x3298b7=new _0x401889[(_0x895435(0x283))](_0x16405d,_0x36692e,_0x401889['generateHexNumber'](0x3));_0x3298b7[_0x895435(0x2eb)]=_0x31710b,this[_0x895435(0x309)][_0x16405d]=_0x3298b7,_0x3b9b69['addField'](_0x16405d,_0x36692e),_0x47b853[_0x895435(0x25f)]({'index':_0x4fc234,'dataField':_0x3298b7});}}return{'updateDataFieldList':_0x47b853,'collection':_0x3b9b69};}['_getAutoName'](_0x3ad6aa){const _0x1aaaa2=_0x504d77;return this[_0x1aaaa2(0x3f0)][_0x1aaaa2(0x257)]()['sheets-pivot.columnName']+'\x20'+_0x7d31a[_0x1aaaa2(0x3a0)](_0x3ad6aa);}[_0x504d77(0x256)](_0x3b9cb8,_0x56725d){const _0x26aef1=_0x504d77;return _0x3b9cb8==null||_0x3b9cb8===''?this[_0x26aef1(0x164)](_0x56725d):String(_0x3b9cb8);}[_0x504d77(0x3f4)](_0x404f56){return this['collections'][_0x404f56];}[_0x504d77(0x41b)](_0x60f3af,_0x1cf808,_0x17d749,_0x3bd476){const _0x538651=_0x504d77;this[_0x538651(0x150)][_0x60f3af]=_0x1cf808,_0x1cf808[_0x538651(0x1b0)](_0x17d749),this['_host'][_0x538651(0x15a)]({'token':_0x60f3af,'type':_0x20561e['add'],'dataRangeInfo':_0x17d749,'targetCellInfo':_0x3bd476});}[_0x504d77(0x350)](_0xae522c,_0x522678){const _0x291bed=_0x504d77,_0x2e6c46=this[_0x291bed(0x3f4)](_0xae522c),_0xa55149=_0x2e6c46[_0x291bed(0x375)]();let _0x353b4c=0x0;for(const _0x589e0a of _0xa55149){const _0x33bb1d=_0x2e6c46[_0x291bed(0x1e7)](_0x589e0a),_0x200a0e=this[_0x291bed(0x19a)](_0x522678,_0x353b4c);this[_0x291bed(0x285)](_0x33bb1d[_0x291bed(0x2eb)],_0x200a0e),_0x353b4c++;}}[_0x504d77(0x1fd)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x504d77(0x297)](_0x33a447,_0x5c2958){const _0x4b377e=_0x504d77;if(this[_0x4b377e(0x3f4)](_0x33a447)){const _0x2a1903=this[_0x4b377e(0x22a)](_0x5c2958),_0x319edf=[];for(const _0x105c3c of _0x2a1903)this[_0x4b377e(0x2f0)][_0x105c3c]!==void 0x0&&_0x319edf['push'](this['rangeKeyMap'][_0x105c3c]);const _0x488f41=this[_0x4b377e(0x198)](_0x33a447),_0x366d17=[],_0x3d5a2b=new Set(_0x319edf);for(const _0x11da19 of _0x488f41)_0x3d5a2b['has'](_0x11da19)||_0x366d17[_0x4b377e(0x25f)](_0x11da19);return _0x366d17;}}[_0x504d77(0x17f)](_0xe6e284,_0x5c1f24,_0x377cb6,_0x41e4bb,_0x3cf55b){const _0x495d35=_0x504d77;return _0x5c1f24&&_0x5c1f24['getValue'](_0x41e4bb,_0x3cf55b)?_0x5c1f24[_0x495d35(0x3ee)](_0x41e4bb,_0x3cf55b):_0x377cb6&&_0x377cb6[_0x495d35(0x3ee)](_0x41e4bb,_0x3cf55b)?_0x377cb6[_0x495d35(0x3ee)](_0x41e4bb,_0x3cf55b):_0xe6e284[_0x495d35(0x3ee)](_0x41e4bb,_0x3cf55b);}[_0x504d77(0x358)](_0x496e94,_0x17d165,_0x2c40b8,_0x12f22b){const _0x9d54f4=_0x504d77,_0x303d4f=this['dataFields'][_0x496e94];if(!_0x303d4f)return;const {subUnitId:_0x5720ed,range:_0x1bece8,unitId:_0x4d7c2a}=_0x17d165,_0x1e95d1=this['_univerInstanceService']['getUnit'](_0x4d7c2a);if(!_0x1e95d1){console['error'](_0x9d54f4(0x2d0));return;}const _0x3a2086=_0x1e95d1[_0x9d54f4(0x1ce)](_0x5720ed),_0x3e8b6a=_0x3a2086['getCellMatrix'](),{arrayFormulaCellDataMatrix:_0x50e31c,unitDataMatrix:_0x481cea}=_0x12f22b||{},{startRow:_0x334ad0,startColumn:_0x4a8bba,endRow:_0x2b9759}=this[_0x9d54f4(0x148)](_0x1bece8,_0x3a2086);_0x303d4f[_0x9d54f4(0x38a)]();const _0x5b721e=_0x1e95d1[_0x9d54f4(0x1dc)](),_0x5cce71={},_0x1982db=this[_0x9d54f4(0x17f)](_0x3e8b6a,_0x50e31c,_0x481cea,_0x334ad0,_0x4a8bba+_0x2c40b8);let _0x515a10=this[_0x9d54f4(0x19e)](_0x1982db,_0x5b721e,_0x5cce71);_0x401889[_0x9d54f4(0x123)](_0x515a10)&&(_0x515a10=_0x7d31a['numfmt']['format'](_0x515a10['f'],Number(_0x515a10['v'])));const _0x4aefb4=this[_0x9d54f4(0x256)](_0x515a10,_0x4a8bba+_0x2c40b8);_0x303d4f[_0x9d54f4(0x3e9)](_0x4aefb4);for(let _0x1d8bb3=_0x334ad0+0x1;_0x1d8bb3<=_0x2b9759;_0x1d8bb3++){const _0x1f65ab=this['getMatrixValue'](_0x3e8b6a,_0x50e31c,_0x481cea,_0x1d8bb3,_0x4a8bba+_0x2c40b8);_0x303d4f[_0x9d54f4(0x166)](this[_0x9d54f4(0x19e)](_0x1f65ab,_0x5b721e,_0x5cce71),_0x1d8bb3-0x1-_0x334ad0);}}[_0x504d77(0x42e)](_0x238160,_0x25ffb8,_0xf5da9d){const _0x47ffd5=_0x504d77,{subUnitId:_0x2d7e36,range:_0x45042e,unitId:_0x30e2d2}=_0xf5da9d,_0x40edf0=this[_0x47ffd5(0x2db)][_0x47ffd5(0x12e)](_0x30e2d2);if(!_0x40edf0){console[_0x47ffd5(0x357)](_0x47ffd5(0x2d0));return;}const _0x364562=_0x40edf0[_0x47ffd5(0x1ce)](_0x2d7e36),_0x172eda=_0x364562[_0x47ffd5(0x16d)](),{startRow:_0x546a39,startColumn:_0xc4e813,endRow:_0x5a1c82}=this[_0x47ffd5(0x148)](_0x45042e,_0x364562),_0x156398=_0x40edf0[_0x47ffd5(0x1dc)](),_0x26d79b={};for(const {dataField:_0x137fd2,index:_0x3ecb93}of _0x25ffb8){_0x137fd2[_0x47ffd5(0x38a)]();const _0x59642c=this[_0x47ffd5(0x17f)](_0x172eda,void 0x0,void 0x0,_0x546a39,_0xc4e813+_0x3ecb93);let _0x3b3bca=this[_0x47ffd5(0x19e)](_0x59642c,_0x156398,_0x26d79b);_0x401889[_0x47ffd5(0x123)](_0x3b3bca)&&(_0x3b3bca=_0x7d31a['numfmt'][_0x47ffd5(0x2ac)](_0x3b3bca['f'],Number(_0x3b3bca['v'])));const _0x4cc9d9=this[_0x47ffd5(0x256)](_0x3b3bca,_0xc4e813+_0x3ecb93);_0x137fd2[_0x47ffd5(0x3e9)](_0x4cc9d9);}_0x238160['updateAllDisplayName']();for(let _0x471b65=_0x546a39+0x1;_0x471b65<=_0x5a1c82;_0x471b65++)for(const {index:_0x4bec38,dataField:_0x5b55c1}of _0x25ffb8){const _0x56e53e=_0x172eda['getValue'](_0x471b65,_0xc4e813+_0x4bec38);_0x5b55c1[_0x47ffd5(0x166)](this[_0x47ffd5(0x19e)](_0x56e53e,_0x156398,_0x26d79b),_0x471b65-0x1-_0x546a39);}_0x238160[_0x47ffd5(0x200)](_0x5a1c82-_0x546a39);}[_0x504d77(0x22a)](_0x56cacd){const _0x370cfa=_0x504d77,{range:_0x3b99b3}=_0x56cacd,{startColumn:_0xd93699,endColumn:_0x116aa5}=_0x3b99b3,_0x14c924=[];for(let _0x2f4e87=_0xd93699;_0x2f4e87<=_0x116aa5;_0x2f4e87++)_0x14c924[_0x370cfa(0x25f)](this['getRangeKey'](_0x56cacd,_0x2f4e87));return _0x14c924;}[_0x504d77(0x19e)](_0x741212,_0x12d927,_0x13396a){const _0x4c76c0=_0x504d77;if(_0x741212){const {s:_0x4167b4,v:_0x2bf950,t:_0x45fe1d,p:_0xaa2dfb}=_0x741212;if(_0xaa2dfb)return _0x5a4d18(_0xaa2dfb);const _0x29094e=_0x12d927[_0x4c76c0(0x3f1)](_0x4167b4);if(_0x29094e&&_0x45fe1d===_0x7d31a['CellValueType']['NUMBER']&&_0x29094e['n']){const {pattern:_0x10c0f4}=_0x29094e['n'];_0x13396a[_0x10c0f4]||(_0x13396a[_0x10c0f4]=_0x7d31a[_0x4c76c0(0x19d)][_0x4c76c0(0x261)](_0x10c0f4));const _0x10584b=_0x13396a[_0x10c0f4],_0x42871b=_0x10584b[_0x4c76c0(0x2e2)];if(_0x10584b[_0x4c76c0(0x1be)])return String(_0x2bf950);if(_0x42871b)return{'v':_0x2bf950,'f':_0x10c0f4};}if(_0x45fe1d===_0x7d31a[_0x4c76c0(0x291)][_0x4c76c0(0x2df)])return Number(_0x2bf950);if(_0x45fe1d===_0x7d31a[_0x4c76c0(0x291)][_0x4c76c0(0x31a)]||_0x45fe1d===_0x7d31a[_0x4c76c0(0x291)][_0x4c76c0(0x22d)])return String(_0x2bf950);if(_0x45fe1d===void 0x0){const _0x4bf58f=Number(_0x2bf950);if(!Number[_0x4c76c0(0x28b)](_0x4bf58f)&&String(_0x4bf58f)===_0x2bf950)return _0x4bf58f;}return _0x2bf950!=null?_0x2bf950:null;}else return null;}['getRangeData'](_0x3e274d){const _0x184db8=_0x504d77,{sheetName:_0x513e17,range:_0x5adac8,unitId:_0x4e8f35}=_0x3e274d,_0x400a0a=this[_0x184db8(0x2db)][_0x184db8(0x12e)](_0x4e8f35);if(!_0x400a0a)return console[_0x184db8(0x357)](_0x184db8(0x2d0)),{'header':[],'data':[]};const _0x42aba7=_0x400a0a['getSheetBySheetName'](_0x513e17),_0x57ccc1=_0x42aba7['getCellMatrix'](),{startRow:_0xc4780c,startColumn:_0x67f26b,endRow:_0x1ab525,endColumn:_0xb265c9}=this[_0x184db8(0x148)](_0x5adac8,_0x42aba7),_0x2ab74c=_0x400a0a[_0x184db8(0x1dc)](),_0xdb4fcc=[],_0x7067a3=[],_0x6b50e2={};for(let _0x244df7=_0xc4780c;_0x244df7<=_0x1ab525;_0x244df7++){const _0x56c265=[];for(let _0x39c0c1=_0x67f26b;_0x39c0c1<=_0xb265c9;_0x39c0c1++){const _0x3783bc=_0x57ccc1[_0x184db8(0x3ee)](_0x244df7,_0x39c0c1);_0x244df7===_0xc4780c?_0xdb4fcc[_0x184db8(0x25f)](_0x3783bc==null?null:String(_0x3783bc['v'])):_0x56c265[_0x184db8(0x25f)](this[_0x184db8(0x19e)](_0x3783bc,_0x2ab74c,_0x6b50e2));}_0x7067a3['push'](_0x56c265);}return{'header':_0xdb4fcc,'data':_0x7067a3};}['toJSON'](){const _0x47b4cb=_0x504d77;return super[_0x47b4cb(0x2d3)]();}[_0x504d77(0x420)](_0x482625){const _0xdd093a=_0x504d77;super['fromJSON'](_0x482625),this[_0xdd093a(0x3c7)]();}[_0x504d77(0x227)](){const _0x2e49c9=_0x504d77;super['dispose'](),this[_0x2e49c9(0x2f0)]={},this[_0x2e49c9(0x3f0)]=null;}}const _0x4b5480=_0x73c6bd=>{const _0x3f2bdd=_0x504d77,{targetCellInfo:_0x4516b5}=_0x73c6bd,{matrixCache:_0x536d38,rangesCache:_0x4df40c}=_0x45061d({'filter':_0x3f2bdd(0x127),'row':'Row','column':_0x3f2bdd(0x1b9),'values':'Values'},_0x4516b5),_0x42c209=new _0x7d31a['ObjectMatrix']();return _0x536d38[_0x3f2bdd(0x40f)]((_0x5d8968,_0x33c0f8,_0x44d9a7)=>{const _0x40fa44=_0x3f2bdd;_0x42c209[_0x40fa44(0x33d)](_0x5d8968,_0x33c0f8,_0x44d9a7);}),{'matrix':_0x42c209,'rangesCache':_0x4df40c};},_0x1d5fde=_0x29fc21=>{const _0x59d1d2=_0x504d77;let _0xf6bb47;if(_0x29fc21!=null&&_0x29fc21['v']||(_0x29fc21==null?void 0x0:_0x29fc21['v'])===0x0){_0xf6bb47||(_0xf6bb47={});const _0x4337c=_0x2a15d0(_0x29fc21['v']);typeof _0x4337c==_0x59d1d2(0x143)?_0xf6bb47['t']=_0x7d31a['CellValueType'][_0x59d1d2(0x2df)]:typeof _0x4337c=='string'&&(_0xf6bb47['t']=_0x7d31a[_0x59d1d2(0x291)]['STRING']),_0xf6bb47['v']=_0x4337c;}return _0xf6bb47;},_0x310f17=(_0x48f370,_0x48cc34,_0xd8e307)=>{const _0x522507=_0x504d77;var _0x56a8c9,_0x5a3440,_0x1cca4a,_0x529e06,_0x4acd39,_0x549ec7,_0xfb19fb,_0x40fff2,_0x5600f0,_0x5826ce,_0x4add05,_0x355ceb;const {cornerView:_0x40c7f0,rowView:_0x493515,colView:_0x12a28a,dataView:_0x234b6b,pageView:_0x5e6a96,formatMap:_0x5b3dd4}=_0x48f370,{row:_0x5e42d8,col:_0x28a81e}=_0x48cc34,_0x11f081=new _0x7d31a[(_0x522507(0x2ed))]();let _0x229d88=_0x5e42d8,_0x1b426a=_0x28a81e;Object['keys'](_0x5e6a96[_0x522507(0x3b8)])[_0x522507(0x20a)](_0x3f29fb=>{const _0x1caf0a=_0x522507;Object[_0x1caf0a(0x38c)](_0x5e6a96[_0x1caf0a(0x3b8)][Number(_0x3f29fb)])[_0x1caf0a(0x20a)](_0x4456d9=>{const _0x1dad51=_0x1caf0a,_0x355f96={..._0x5e6a96[_0x1dad51(0x3b8)][Number(_0x3f29fb)][Number(_0x4456d9)]};_0x11f081['setValue'](Number(_0x3f29fb)+_0x229d88,Number(_0x4456d9)+_0x1b426a,_0x1d5fde(_0x355f96));});});const _0x58e832=Object[_0x522507(0x38c)](_0x5e6a96[_0x522507(0x3b8)])[_0x522507(0x423)];_0x229d88+=_0x58e832+(_0x58e832?_0x548227:0x0);const _0x278efe=_0x40c7f0[_0x522507(0x270)](),_0xfee7ac=_0x40c7f0[_0x522507(0x121)]();for(let _0x1b3087=0x0;_0x1b3087<_0x278efe;_0x1b3087++)for(let _0x3358cf=0x0;_0x3358cf<_0xfee7ac;_0x3358cf++){const _0x5188bb={...(_0x5a3440=(_0x56a8c9=_0x40c7f0[_0x522507(0x3b8)])==null?void 0x0:_0x56a8c9[_0x1b3087])==null?void 0x0:_0x5a3440[_0x3358cf]};_0x5188bb&&((_0x1cca4a=_0x493515[_0x522507(0x38e)][_0x3358cf])!=null&&_0x1cca4a[_0x522507(0x25d)])&&_0x3358cf===_0xfee7ac-0x1&&_0x1b3087===_0x278efe-0x1&&(_0x5188bb['v']=''+_0xd8e307['sheets-pivot.value']),_0x11f081[_0x522507(0x33d)](_0x1b3087+_0x229d88,_0x3358cf+_0x1b426a,_0x1d5fde(_0x5188bb));}_0x1b426a+=_0xfee7ac;const _0x1f2bd4=_0x12a28a[_0x522507(0x38e)],_0xe9af92=_0x12a28a[_0x522507(0x312)]()>=0x0?_0x12a28a[_0x522507(0x312)]()+0x1:0x0,_0x182be1=_0x12a28a['getLastCol']()>=0x0?_0x12a28a[_0x522507(0x1ee)]()+0x1:0x0;for(let _0x4d0106=0x0;_0x4d0106<_0x182be1;_0x4d0106++)for(let _0x5ed9c8=0x0;_0x5ed9c8<_0xe9af92;_0x5ed9c8++){const _0x493dd5={...(_0x4acd39=(_0x529e06=_0x12a28a['data'])==null?void 0x0:_0x529e06[_0x4d0106])==null?void 0x0:_0x4acd39[_0x5ed9c8]},_0x47ceec=(_0x549ec7=_0x1f2bd4[_0x4d0106])==null?void 0x0:_0x549ec7[_0x522507(0x3c0)],_0x4a0ce2=_0x5b3dd4[_0x47ceec];_0x493dd5&&(_0x493dd5['v']=_0x39744b(_0x493dd5,_0x4d0106===0x0&&((_0xfb19fb=_0x12a28a[_0x522507(0x3ea)](_0x5ed9c8+0x1))==null?void 0x0:_0xfb19fb[_0x522507(0x25d)]),_0x4a0ce2,_0xd8e307)),_0x11f081[_0x522507(0x33d)](_0x4d0106+_0x229d88,_0x5ed9c8+_0x1b426a,_0x1d5fde(_0x493dd5));}_0x229d88+=_0x278efe;const _0x213971=_0x493515[_0x522507(0x38e)],_0x114a5c=_0x493515[_0x522507(0x312)]()>=0x0?_0x493515[_0x522507(0x312)]()+0x1:0x0,_0x41d248=_0x493515[_0x522507(0x1ee)]()>=0x0?_0x493515[_0x522507(0x1ee)]()+0x1:0x0;for(let _0x3d5288=0x0;_0x3d5288<_0x114a5c;_0x3d5288++)for(let _0x4d1d55=0x0;_0x4d1d55<_0x41d248;_0x4d1d55++){const _0xad93de={...(_0x5600f0=(_0x40fff2=_0x493515['data'])==null?void 0x0:_0x40fff2[_0x3d5288])==null?void 0x0:_0x5600f0[_0x4d1d55]},_0x321dfe=(_0x5826ce=_0x213971[_0x4d1d55])==null?void 0x0:_0x5826ce['tableFieldId'],_0x1c2daf=_0x5b3dd4[_0x321dfe];_0xad93de&&(_0xad93de['v']=_0x39744b(_0xad93de,!0x1,_0x1c2daf,_0xd8e307)),_0x11f081[_0x522507(0x33d)](_0x3d5288+_0x229d88,_0x4d1d55+_0x28a81e,_0x1d5fde(_0xad93de));}const _0x42d7c8=_0x234b6b['getRowCount'](),_0x249c11=_0x234b6b[_0x522507(0x121)]();for(let _0x17f1bb=0x0;_0x17f1bb<_0x42d7c8;_0x17f1bb++)for(let _0x2c88e8=0x0;_0x2c88e8<_0x249c11;_0x2c88e8++){const _0x2b76a7={...(_0x355ceb=(_0x4add05=_0x234b6b[_0x522507(0x3b8)])==null?void 0x0:_0x4add05[_0x17f1bb])==null?void 0x0:_0x355ceb[_0x2c88e8]};_0x11f081[_0x522507(0x33d)](_0x17f1bb+_0x229d88,_0x2c88e8+_0x1b426a,_0x1d5fde(_0x2b76a7));}return _0x11f081;},_0xc85234=_0x40257c=>{const _0x114424=_0x504d77,{view:_0x6c0aee,targetCellInfo:_0x1d3184,isEmpty:_0x2db8bb,textInfo:_0x219786}=_0x40257c;if(_0x2db8bb)return _0x4b5480(_0x40257c);const {pageView:_0x16c670,cornerView:_0x34ef46,rowView:_0x57df84,colView:_0x106694,dataView:_0x2278e0}=_0x6c0aee,_0x10dc83=_0x15efc2(_0x1d3184,_0x16c670,!0x0),_0x9e3d68=_0x16c670[_0x114424(0x1e8)]>=0x0?_0x16c670[_0x114424(0x1e8)]+0x1:0x0,_0x7a639d=_0x34ef46[_0x114424(0x270)](),_0xf4d0db=_0x34ef46[_0x114424(0x121)](),_0x23e506=_0x10dc83[_0x114424(0x423)]>0x0?_0x548227:0x0,_0x23cc5d=_0x15efc2({'row':_0x1d3184[_0x114424(0x196)]+_0x9e3d68+_0x23e506,'col':_0x1d3184['col']},_0x34ef46,!0x1,!0x1),_0x6f03fc=_0x15efc2({'row':_0x1d3184['row']+_0x9e3d68+_0x23e506+_0x7a639d,'col':_0x1d3184[_0x114424(0x2c0)]},_0x57df84,!0x1,!0x0),_0x1dc850=_0x15efc2({'row':_0x1d3184[_0x114424(0x196)]+_0x9e3d68+_0x23e506,'col':_0x1d3184[_0x114424(0x2c0)]+_0xf4d0db},_0x106694,!0x1,!0x0),_0xf87d35=_0x15efc2({'row':_0x1d3184[_0x114424(0x196)]+_0x9e3d68+_0x23e506+_0x7a639d,'col':_0x1d3184[_0x114424(0x2c0)]+_0xf4d0db},_0x2278e0,!0x1,!0x1),_0x1d43ea={'rowRanges':_0x6f03fc,'colRanges':_0x1dc850,'cornerRanges':_0x23cc5d,'dataRanges':_0xf87d35,'pageRanges':_0x10dc83};return{'matrix':_0x310f17(_0x6c0aee,_0x1d3184,_0x219786),'rangesCache':_0x1d43ea};};var _0x8bf64c=Object[_0x504d77(0x353)],_0x502cac=(_0x1ff31b,_0x1eaa14,_0x283c69,_0x2f549c)=>{const _0x5a3206=_0x504d77;for(var _0x13bab3=_0x2f549c>0x1?void 0x0:_0x2f549c?_0x8bf64c(_0x1eaa14,_0x283c69):_0x1eaa14,_0x3e0af7=_0x1ff31b[_0x5a3206(0x423)]-0x1,_0x278140;_0x3e0af7>=0x0;_0x3e0af7--)(_0x278140=_0x1ff31b[_0x3e0af7])&&(_0x13bab3=_0x278140(_0x13bab3)||_0x13bab3);return _0x13bab3;},_0x220ebd=(_0x14dd5b,_0x2c20f2)=>(_0x1f8f1b,_0x21f8a3)=>_0x2c20f2(_0x1f8f1b,_0x21f8a3,_0x14dd5b);_0x8a946e[_0x504d77(0x3bd)]=class extends _0x7d31a['Disposable']{constructor(_0x2cea40,_0xbc5df2,_0x48efb9,_0x4a9d2e,_0x55a5fd,_0x1fe73a){const _0x168012=_0x504d77;super(),_0xa31747(this,'_model',new Map()),_0xa31747(this,_0x168012(0x2e6),new Map()),_0xa31747(this,_0x168012(0x26c),new Map()),_0xa31747(this,_0x168012(0x362)),_0xa31747(this,_0x168012(0x2d1),new _0x24643e[(_0x168012(0x39d))]()),_0xa31747(this,_0x168012(0x1ba),this['_collectionChange$']['asObservable']()),_0xa31747(this,_0x168012(0x269),new _0x24643e[(_0x168012(0x39d))]()),_0xa31747(this,_0x168012(0x32b),this['_viewData$'][_0x168012(0x1b5)]()),_0xa31747(this,'_fieldsCollectionChange$',new _0x24643e['Subject']()),_0xa31747(this,_0x168012(0x126),this[_0x168012(0x131)]['asObservable']()),_0xa31747(this,_0x168012(0x134),new Map()),_0xa31747(this,'needSameDeleteModel',[]),_0xa31747(this,_0x168012(0x146),new Map()),(this[_0x168012(0x3d4)]=_0x2cea40,this[_0x168012(0x2db)]=_0xbc5df2,this[_0x168012(0x17d)]=_0x48efb9,this[_0x168012(0x242)]=_0x4a9d2e,this[_0x168012(0x2b2)]=_0x55a5fd,this[_0x168012(0x11f)]=_0x1fe73a,this[_0x168012(0x417)]());}[_0x504d77(0x257)](){const _0x2fb5ee=_0x504d77;return this['_textInfo']?this[_0x2fb5ee(0x362)]:_0x2d2c65;}['setTextInfo'](_0x16bf77){const _0x9bee96=_0x504d77;this[_0x9bee96(0x362)]=_0x16bf77;}['handleMoveRange'](_0x22ecd4){const _0x412e02=_0x504d77;var _0x505e79;const {from:_0x4177ce,to:_0x4a9603,unitId:_0x3979fc,fromRange:_0x49b263,toRange:_0x174a9e}=_0x22ecd4;if(_0x4177ce&&_0x4a9603){const _0x56c078=this[_0x412e02(0x2c7)](_0x3979fc),_0x5df35e=this['_model']['get'](_0x3979fc),_0x5dfcf1=(_0x505e79=this[_0x412e02(0x2db)][_0x412e02(0x12e)](_0x3979fc))==null?void 0x0:_0x505e79[_0x412e02(0x1ce)](_0x4a9603[_0x412e02(0x1aa)]);if(!_0x5df35e||!_0x5dfcf1)return;const _0x51aae2=_0x5dfcf1==null?void 0x0:_0x5dfcf1[_0x412e02(0x2a6)]();for(const [_0x2904de,_0x333456]of _0x5df35e['entries']())for(const [_0x452ef9,_0x28dade]of _0x333456['entries']()){const {sourceRangeInfo:_0x4a6a33}=_0x28dade;if(_0x4a6a33['unitId']===_0x3979fc&&_0x4a6a33[_0x412e02(0x1aa)]===_0x4177ce['subUnitId']&&_0x7d31a[_0x412e02(0x1e6)][_0x412e02(0x2a7)](_0x49b263,_0x4a6a33['range'])){const _0x437f97={'row':_0x4a6a33[_0x412e02(0x247)]['startRow']-_0x49b263[_0x412e02(0x2d5)],'col':_0x4a6a33[_0x412e02(0x247)][_0x412e02(0x30d)]-_0x49b263[_0x412e02(0x30d)]},_0x277a65={'unitId':_0x3979fc,'subUnitId':_0x4a9603[_0x412e02(0x1aa)],'sheetName':_0x51aae2,'range':{'startRow':_0x174a9e[_0x412e02(0x2d5)]+_0x437f97[_0x412e02(0x196)],'endRow':_0x174a9e['startRow']+_0x437f97[_0x412e02(0x196)]+_0x4a6a33['range'][_0x412e02(0x125)]-_0x4a6a33[_0x412e02(0x247)][_0x412e02(0x2d5)],'startColumn':_0x174a9e['startColumn']+_0x437f97[_0x412e02(0x2c0)],'endColumn':_0x174a9e['startColumn']+_0x437f97[_0x412e02(0x2c0)]+_0x4a6a33['range'][_0x412e02(0x1e1)]-_0x4a6a33['range'][_0x412e02(0x30d)]}};_0x56c078['handleMoveRange'](_0x452ef9,_0x277a65);const _0x3ad77a={..._0x28dade,'sourceRangeInfo':_0x277a65};this[_0x412e02(0x37f)](_0x3979fc,_0x4a9603['subUnitId'],_0x452ef9,_0x3ad77a),this['broadcastCollectionChange']({'unitId':_0x3979fc,'token':_0x452ef9,'type':_0x20561e[_0x412e02(0x28e)],'oldSourceRangeInfo':_0x4a6a33,'dataRangeInfo':_0x277a65,'targetCellInfo':_0x28dade['targetCellInfo']}),this[_0x412e02(0x1d8)]({'unitId':_0x3979fc,'subUnitId':_0x4a9603[_0x412e02(0x1aa)],'oldSubUnitId':_0x2904de,'pivotTableId':_0x452ef9,'pivotTableConfig':_0x3ad77a,'collectionConfig':_0x56c078[_0x412e02(0x2d3)]()});}}}}[_0x504d77(0x15a)](_0x8d8356){const _0x300778=_0x504d77;this[_0x300778(0x2d1)][_0x300778(0x1e0)](_0x8d8356);}[_0x504d77(0x2c7)](_0x1fcdd3){const _0x2a0dd4=_0x504d77;let _0x4230a2=this['_dataFieldManagerCollection']['get'](_0x1fcdd3);return _0x4230a2||(_0x4230a2=new _0x47d4ee(this,this[_0x2a0dd4(0x2db)]),this['_dataFieldManagerCollection'][_0x2a0dd4(0x293)](_0x1fcdd3,_0x4230a2)),_0x4230a2;}[_0x504d77(0x3f4)](_0x5008d4,_0x4a7aab){const _0x48be9f=_0x504d77;return this[_0x48be9f(0x2c7)](_0x5008d4)['collections'][_0x4a7aab];}['getUpdateRangeDeleteIds'](_0x13e1f2,_0x5d4ad3,_0x312a93){const _0x440e5a=_0x504d77;return this[_0x440e5a(0x2c7)](_0x13e1f2)[_0x440e5a(0x297)](_0x5d4ad3,_0x312a93);}[_0x504d77(0x137)](_0xe3ceec,_0x7dc647){const _0x5af45b=_0x504d77;let _0x58221e=this[_0x5af45b(0x1db)][_0x5af45b(0x3f1)](_0xe3ceec);_0x58221e||(_0x58221e=new Map(),this[_0x5af45b(0x1db)][_0x5af45b(0x293)](_0xe3ceec,_0x58221e));let _0x36e60a=_0x58221e[_0x5af45b(0x3f1)](_0x7dc647);return _0x36e60a||(_0x36e60a=new Map(),_0x58221e[_0x5af45b(0x293)](_0x7dc647,_0x36e60a)),_0x36e60a;}[_0x504d77(0x37f)](_0xbee0c8,_0x57f17a,_0x43b826,_0x264917){const _0xf25197=_0x504d77;this[_0xf25197(0x137)](_0xbee0c8,_0x57f17a)[_0xf25197(0x293)](_0x43b826,_0x264917);}[_0x504d77(0x244)](_0x226ff0,_0x199a2f,_0x505233){const _0x421f23=_0x504d77;var _0x335646,_0xd1aa9b,_0x5b64b4,_0x463e11;((_0xd1aa9b=(_0x335646=this[_0x421f23(0x1db)]['get'](_0x226ff0))==null?void 0x0:_0x335646[_0x421f23(0x3f1)](_0x199a2f))==null?void 0x0:_0xd1aa9b[_0x421f23(0x3f1)](_0x505233))&&((_0x463e11=(_0x5b64b4=this[_0x421f23(0x1db)]['get'](_0x226ff0))==null?void 0x0:_0x5b64b4[_0x421f23(0x3f1)](_0x199a2f))==null||_0x463e11['delete'](_0x505233));}[_0x504d77(0x21e)](_0x5e992,_0x472821){const _0x198170=_0x504d77;this['_pivotTableInstanceCache'][_0x198170(0x293)](_0x5e992,_0x472821);}[_0x504d77(0x230)](_0x4a33a4){const _0x13e7e4=_0x504d77;this[_0x13e7e4(0x2e6)][_0x13e7e4(0x30e)](_0x4a33a4);}[_0x504d77(0x277)](_0x37e02a,_0x49598d){const _0x2e80bf=_0x504d77;let _0x1bb6d8=this[_0x2e80bf(0x26c)]['get'](_0x37e02a);_0x1bb6d8||(_0x1bb6d8=new Map(),this['_viewData'][_0x2e80bf(0x293)](_0x37e02a,_0x1bb6d8));let _0x3bca72=_0x1bb6d8['get'](_0x49598d);return _0x3bca72||(_0x3bca72=new Map(),_0x1bb6d8[_0x2e80bf(0x293)](_0x49598d,_0x3bca72)),_0x3bca72;}[_0x504d77(0x1d8)](_0x407879){const _0x2dea99=_0x504d77,{unitId:_0x4390ab,subUnitId:_0x4c0f16,pivotTableId:_0x1c7ec9,pivotTableConfig:_0x4a8f49,collectionConfig:_0x20fef6}=_0x407879,_0x2881af={'unitId':_0x4390ab,'subUnitId':_0x4c0f16,'oldSubUnitId':_0x4c0f16,'pivotTableId':_0x1c7ec9,'pivotTableConfig':_0x4a8f49,'collectionConfig':_0x20fef6};this[_0x2dea99(0x2b2)][_0x2dea99(0x1f8)](_0x14a613['id'],_0x2881af,{'onlyLocal':!0x0});}['updateView'](_0x3d7323,_0x37db54,_0x25da25,_0x1f91c7,_0x1359af,_0x39101d,_0x5454fd,_0x102768=!0x1){const _0x43ea0f=_0x504d77;var _0xd11dc9;this[_0x43ea0f(0x2b2)][_0x43ea0f(0x1f8)](_0x592b77['id'],{'single':{'unitId':_0x3d7323,'subUnitId':_0x37db54,'type':_0x25da25,'pivotTableId':_0x1f91c7,'view':_0x1359af,'pivotConfig':_0x39101d},'collectionConfig':{[_0x3d7323]:_0x5454fd}},{'onlyLocal':!0x0});const _0x54d9dc=!!((_0xd11dc9=this[_0x43ea0f(0x16e)](_0x1f91c7))!=null&&_0xd11dc9['isEmpty']()),_0x22492d=this[_0x43ea0f(0x2fb)](_0x3d7323,_0x37db54,_0x1f91c7);_0x22492d&&this[_0x43ea0f(0x21f)]({'view':_0x1359af,'pivotTableId':_0x1f91c7,'textInfo':this[_0x43ea0f(0x257)](),'isEmpty':_0x54d9dc,'targetCellInfo':_0x22492d[_0x43ea0f(0x2b1)]},_0x102768);}[_0x504d77(0x21f)](_0x54159a,_0x21436f){const _0x170a54=_0x504d77,{targetCellInfo:_0x1930ec,pivotTableId:_0x481f6e}=_0x54159a,{unitId:_0x2c11f5,subUnitId:_0x5a872a}=_0x1930ec,_0x454c22=this[_0x170a54(0x277)](_0x2c11f5,_0x5a872a),_0x156fdc=_0x454c22[_0x170a54(0x3f1)](_0x481f6e);let _0x164dac,_0x451aba;_0x156fdc&&(_0x164dac=_0x156fdc[_0x170a54(0x359)],_0x451aba=_0x156fdc[_0x170a54(0x32c)]);const {rangesCache:_0x6d077f,matrix:_0x4a1e50}=_0xc85234(_0x54159a);_0x454c22['set'](_0x481f6e,{'rangeCache':_0x6d077f,'matrix':_0x4a1e50,'oldMatrix':_0x451aba,'oldRangeCache':_0x164dac}),_0x21436f||this[_0x170a54(0x269)][_0x170a54(0x1e0)]({'unitId':_0x2c11f5,'subUnitId':_0x5a872a,'pivotTableId':_0x481f6e});}['addPivotTable'](_0xed3c77,_0x422e67,_0x2b071a,_0x1ad015,_0x43310a){this['_updateModelCache'](_0xed3c77,_0x422e67,_0x2b071a,_0x43310a),this['_updatePivotTableInstanceCache'](_0x2b071a,_0x1ad015);}[_0x504d77(0x211)](_0x3e1297,_0x10dd01,_0xeff416){const _0x2e0ee9=_0x504d77,_0x293551=this[_0x2e0ee9(0x2c7)](_0x3e1297);_0x293551[_0x2e0ee9(0x198)](_0xeff416)['forEach'](_0x9db9ce=>{const _0x1316e4=_0x2e0ee9;_0x293551[_0x1316e4(0x404)](_0x9db9ce);}),this[_0x2e0ee9(0x38b)](_0x3e1297,_0xeff416),this[_0x2e0ee9(0x244)](_0x3e1297,_0x10dd01,_0xeff416),this[_0x2e0ee9(0x230)](_0xeff416);}[_0x504d77(0x3b4)](_0x2f02b1,_0x48b7f1,_0x18183f,_0x27f38a){const _0x28e3f1=_0x504d77;this[_0x28e3f1(0x37f)](_0x2f02b1,_0x48b7f1,_0x18183f,_0x27f38a);}[_0x504d77(0x2fb)](_0x1f6c5d,_0x30e50d,_0x2c7a7e){const _0x5e62fa=_0x504d77;var _0x3cff3a,_0x2a96b8;const _0x431294=(_0x2a96b8=(_0x3cff3a=this[_0x5e62fa(0x1db)][_0x5e62fa(0x3f1)](_0x1f6c5d))==null?void 0x0:_0x3cff3a['get'](_0x30e50d))==null?void 0x0:_0x2a96b8['get'](_0x2c7a7e);if(_0x431294)return _0x431294;}[_0x504d77(0x1a5)](_0x4b8e5d,_0x115c05,_0x14d9d8){const _0x459876=_0x504d77;var _0x3b769f,_0xb133cd;const _0x415105=(_0xb133cd=(_0x3b769f=this[_0x459876(0x1db)][_0x459876(0x3f1)](_0x4b8e5d))==null?void 0x0:_0x3b769f[_0x459876(0x3f1)](_0x115c05))==null?void 0x0:_0xb133cd['get'](_0x14d9d8);if(_0x415105)return _0x415105['fieldsConfig'];}[_0x504d77(0x16e)](_0x2bf49a){const _0x1ea9b2=_0x504d77;return this[_0x1ea9b2(0x2e6)][_0x1ea9b2(0x3f1)](_0x2bf49a);}[_0x504d77(0x205)](_0x56e6ae){const _0x2c273c=_0x504d77;this[_0x2c273c(0x1db)][_0x2c273c(0x30e)](_0x56e6ae);const _0x5976f5=this[_0x2c273c(0x134)][_0x2c273c(0x3f1)](_0x56e6ae);_0x5976f5&&(_0x5976f5[_0x2c273c(0x227)](),this[_0x2c273c(0x134)][_0x2c273c(0x30e)](_0x56e6ae)),this[_0x2c273c(0x26c)]['delete'](_0x56e6ae),this[_0x2c273c(0x395)][_0x2c273c(0x20a)](_0x56a70a=>{const _0x52be3c=_0x2c273c;_0x56a70a[_0x52be3c(0x205)](_0x56e6ae);});}[_0x504d77(0x430)](_0x3b9bb5,_0x162b68,_0x531282,_0x83e1){const _0x2ecf49=_0x504d77;return this[_0x2ecf49(0x2c7)](_0x531282[_0x2ecf49(0x1bd)])[_0x2ecf49(0x430)](_0x3b9bb5,_0x162b68,_0x531282,_0x83e1);}[_0x504d77(0x3ef)](_0x45e205){const _0x11ee9c=_0x504d77;return this[_0x11ee9c(0x2c7)](_0x45e205[_0x11ee9c(0x1bd)])['createCollectionWithDataRange'](_0x45e205);}[_0x504d77(0x42e)](_0x2d6876,_0x67528f,_0x4fd12e){const _0x3eee31=_0x504d77;this[_0x3eee31(0x2c7)](_0x4fd12e[_0x3eee31(0x1bd)])[_0x3eee31(0x42e)](_0x2d6876,_0x67528f,_0x4fd12e);}['removeDataField'](_0x130e1b,_0x1af83c){const _0x313cea=_0x504d77;this[_0x313cea(0x2c7)](_0x130e1b)[_0x313cea(0x404)](_0x1af83c);}[_0x504d77(0x38b)](_0x446aa6,_0x36e5d6){const _0x9e30ab=_0x504d77;this[_0x9e30ab(0x2c7)](_0x446aa6)['removeCollectionImp'](_0x36e5d6);}['getSubUnitPivotConfigs'](_0x4181e6,_0x27aeeb){const _0x4de48b=_0x504d77;var _0x29105f;return(_0x29105f=this[_0x4de48b(0x1db)][_0x4de48b(0x3f1)](_0x4181e6))==null?void 0x0:_0x29105f[_0x4de48b(0x3f1)](_0x27aeeb);}['getTargetByPivotId'](_0x1e01fe){const _0x494556=_0x504d77;for(const [_0xca14f8,_0x365418]of this['_model'][_0x494556(0x12b)]())for(const [_0x1f2176,_0x17866e]of _0x365418[_0x494556(0x12b)]())if(_0x17866e[_0x494556(0x407)](_0x1e01fe))return{'unitId':_0xca14f8,'subUnitId':_0x1f2176};return null;}['sideEffectUpdateWorkerCache'](_0x4e89ea,_0x4625af,_0x5a7a4f,_0x5e51a4){const _0x162f31=_0x504d77,_0x1a3c37=this[_0x162f31(0x277)](_0x4e89ea,_0x4625af);_0x5e51a4?_0x1a3c37['set'](_0x5a7a4f,_0x5e51a4):_0x1a3c37[_0x162f31(0x30e)](_0x5a7a4f),this[_0x162f31(0x269)][_0x162f31(0x1e0)]({'unitId':_0x4e89ea,'subUnitId':_0x4625af,'pivotTableId':_0x5a7a4f});}[_0x504d77(0x227)](){const _0x2f262f=_0x504d77;super[_0x2f262f(0x227)]();}['getViewData'](_0x2f34a5,_0x2bdf2e,_0x3056b9){const _0x4b41ee=_0x504d77;var _0x59a56d,_0x343a7a;const _0x47a03f=(_0x343a7a=(_0x59a56d=this[_0x4b41ee(0x26c)][_0x4b41ee(0x3f1)](_0x2f34a5))==null?void 0x0:_0x59a56d['get'](_0x2bdf2e))==null?void 0x0:_0x343a7a[_0x4b41ee(0x3f1)](_0x3056b9);return _0x47a03f||null;}[_0x504d77(0x354)](_0xf00fe5){this['updateDirtyPivotTable'](_0xf00fe5);}[_0x504d77(0x3ca)](_0x1ddd46){const _0x47c1b2=_0x504d77,{token:_0x599891,unitId:_0x2ed105,subUnitId:_0x5b7546}=_0x1ddd46,_0x168c0d=_0x2ed105+'-'+_0x5b7546+'-'+_0x599891;this[_0x47c1b2(0x146)][_0x47c1b2(0x3f1)](_0x168c0d)&&clearTimeout(this[_0x47c1b2(0x146)][_0x47c1b2(0x3f1)](_0x168c0d));const _0x258b96=setTimeout(()=>{const _0x488a78=_0x47c1b2;this['queryDirtyPivotTable'](_0x1ddd46),this[_0x488a78(0x146)][_0x488a78(0x30e)](_0x168c0d);},_0x54911d);this[_0x47c1b2(0x146)][_0x47c1b2(0x293)](_0x168c0d,_0x258b96);}['queryDirtyPivotTable'](_0x3fefcb){const _0x2084c8=_0x504d77,{unitId:_0x1dac88,subUnitId:_0x33aef1,token:_0x2725d7,type:_0x44bf9f,pivotConfig:_0x50f2d3}=_0x3fefcb,_0x31c860=this[_0x2084c8(0x16e)](_0x2725d7),_0x389c60=_0x31c860==null?void 0x0:_0x31c860[_0x2084c8(0x2d8)](),_0x47d9bb=_0x50f2d3!=null?_0x50f2d3:this[_0x2084c8(0x2fb)](_0x1dac88,_0x33aef1,_0x2725d7);_0x47d9bb&&(_0x47d9bb['isEmpty']=!!(_0x31c860!=null&&_0x31c860[_0x2084c8(0x17c)]())),(_0x389c60||_0x44bf9f===_0x462181[_0x2084c8(0x29a)])&&this['updateView'](_0x1dac88,_0x33aef1,_0x44bf9f,_0x2725d7,_0x389c60,_0x47d9bb,this[_0x2084c8(0x2c7)](_0x1dac88)[_0x2084c8(0x2d3)]());}['toJSON'](_0x13266f){const _0x25e6a2=_0x504d77,_0x4c774e={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['getDataFieldManager'](_0x13266f)&&(_0x4c774e['dataFieldManagerConfig'][_0x13266f]=this[_0x25e6a2(0x2c7)](_0x13266f)[_0x25e6a2(0x2d3)]()),this[_0x25e6a2(0x1db)]['get'](_0x13266f)){_0x4c774e[_0x25e6a2(0x413)][_0x13266f]={};const _0x5214aa=this['_model']['get'](_0x13266f);_0x5214aa!=null&&_0x5214aa['size']&&[..._0x5214aa[_0x25e6a2(0x38c)]()]['forEach'](_0x225bfe=>{const _0x83272c=_0x25e6a2,_0x52fa68=_0x5214aa[_0x83272c(0x3f1)](_0x225bfe);_0x52fa68!=null&&_0x52fa68['size']&&(_0x4c774e['pivotTableConfigs'][_0x13266f][_0x225bfe]={},[..._0x52fa68[_0x83272c(0x38c)]()][_0x83272c(0x20a)](_0x4626d1=>{const _0x33c777=_0x83272c,_0x4117ad=_0x52fa68[_0x33c777(0x3f1)](_0x4626d1);_0x4117ad&&(_0x4c774e[_0x33c777(0x413)][_0x13266f][_0x225bfe][_0x4626d1]=_0x4117ad);}));});}return _0x4c774e;}[_0x504d77(0x420)](_0x5abd8c){const _0x214028=_0x504d77;var _0x638ed1;const {dataFieldManagerConfig:_0x687cf1,pivotTableConfigs:_0x97043b}=_0x5abd8c;_0x687cf1&&Object[_0x214028(0x38c)](_0x687cf1)[_0x214028(0x20a)](_0x3fead1=>{const _0xf7a31a=_0x214028;this[_0xf7a31a(0x2c7)](_0x3fead1)[_0xf7a31a(0x420)](_0x687cf1[_0x3fead1]);});const _0x2ef44d=[];if(_0x97043b){const _0x1ee8f4=(_0x638ed1=this[_0x214028(0x3d4)][_0x214028(0x3f1)](_0x7d31a[_0x214028(0x13f)])[_0x214028(0x2da)](_0x11dac8['LS_CONFIG_KEY']))!=null?_0x638ed1:{},{ls:_0x1ee272,pbk:_0x51bc4c}=_0x1ee8f4,_0x4d9375=_0x40e998(_0x474d8e,_0x1ee272,_0x51bc4c)[_0x214028(0x159)];Object[_0x214028(0x38c)](_0x97043b)[_0x214028(0x20a)](_0x4135db=>{let _0x4626cf=0x0;const _0x8bb425=_0x97043b[_0x4135db];Object['keys'](_0x8bb425)['forEach'](_0x75b028=>{const _0x17912d=_0x4059,_0x209ec7=_0x8bb425[_0x75b028];Object[_0x17912d(0x38c)](_0x209ec7)[_0x17912d(0x20a)](_0x5b6455=>{const _0x327074=_0x17912d,_0x10d7f4=_0x209ec7[_0x5b6455];if(_0x10d7f4){if(_0x4626cf>=_0x4d9375)return;_0x4626cf++;const _0x8b5f3a=this[_0x327074(0x2c7)](_0x4135db),_0x4f7fde=_0x8b5f3a[_0x327074(0x150)][_0x5b6455],_0x5277b6=_0x4f7fde[_0x327074(0x375)]();let _0x502d90=0x0;const _0x5373eb=[];for(const _0x209a17 of _0x5277b6){const _0x525c1d=_0x4f7fde[_0x327074(0x1e7)](_0x209a17);if(_0x401889['isBaseGroupField'](_0x525c1d)){const _0x138b8d=_0x525c1d[_0x327074(0x3fc)](),_0x5ae6d9=_0x4f7fde[_0x327074(0x1e7)](_0x138b8d);_0x5ae6d9&&_0x5373eb[_0x327074(0x25f)]([_0x525c1d,_0x5ae6d9]);continue;}_0x8b5f3a[_0x327074(0x358)](_0x209a17,_0x10d7f4[_0x327074(0x2ce)],_0x502d90),_0x502d90++;}_0x5373eb['forEach'](([_0x7318a1,_0xcf9623])=>{_0x7318a1['refreshGroupField'](_0xcf9623);});const _0x38eb69=new _0x401889['PivotTable'](_0x4f7fde);_0x38eb69[_0x327074(0x420)](_0x10d7f4['fieldsConfig']),this[_0x327074(0x23e)](_0x4135db,_0x75b028,_0x5b6455,_0x38eb69,_0x10d7f4);const _0xa7a12c=_0x38eb69[_0x327074(0x2d8)]();_0x2ef44d[_0x327074(0x25f)]({'unitId':_0x4135db,'subUnitId':_0x75b028,'pivotTableId':_0x5b6455,'view':_0xa7a12c['toJSON'](),'pivotConfig':_0x10d7f4,'type':_0x462181[_0x327074(0x2d4)]});const _0x5dbcff=!!_0x38eb69[_0x327074(0x17c)](),_0x307a6e={'view':_0xa7a12c,'pivotTableId':_0x5b6455,'textInfo':this[_0x327074(0x257)](),'isEmpty':_0x5dbcff,'targetCellInfo':_0x10d7f4[_0x327074(0x2b1)]};this['updateViewData'](_0x307a6e,!0x1);}});});});}_0x687cf1&&Object['keys'](_0x687cf1)[_0x214028(0x20a)](_0xfdb1cb=>{const _0x3a7715=_0x214028,_0x1ba696=this[_0x3a7715(0x2c7)](_0xfdb1cb);this[_0x3a7715(0x131)][_0x3a7715(0x1e0)](_0x1ba696[_0x3a7715(0x150)]);}),this[_0x214028(0x2b2)]['executeCommand'](_0x592b77['id'],{'batch':_0x2ef44d,'collectionConfig':_0x687cf1},{'onlyLocal':!0x0});}[_0x504d77(0x417)](){const _0x4df23e=_0x504d77;this[_0x4df23e(0x25b)](this['_resourceManagerService'][_0x4df23e(0x427)]({'toJson':_0x4fdd1f=>JSON[_0x4df23e(0x202)](this[_0x4df23e(0x2d3)](_0x4fdd1f)),'parseJson':_0x2befb8=>{const _0x4330ca=_0x4df23e;if(!_0x2befb8)return{};try{return JSON[_0x4330ca(0x1e5)](_0x2befb8);}catch{return{};}},'businesses':[_0x7d31a[_0x4df23e(0x24f)][_0x4df23e(0x383)]],'pluginName':_0x5533fc,'onLoad':(_0x393140,_0x3456fa)=>{const _0x44706e=_0x4df23e;this[_0x44706e(0x420)](_0x3456fa);},'onUnLoad':_0x2f7c41=>{const _0x585a69=_0x4df23e;this[_0x585a69(0x205)](_0x2f7c41);}}));}},_0x8a946e['SheetsPivotDataSourceModel']=_0x502cac([_0x220ebd(0x0,_0x7d31a['Inject'](_0x7d31a[_0x504d77(0x34d)])),_0x220ebd(0x1,_0x7d31a[_0x504d77(0x253)]),_0x220ebd(0x2,_0x7d31a['Inject'](_0x7d31a['LifecycleService'])),_0x220ebd(0x3,_0x7d31a['IConfigService']),_0x220ebd(0x4,_0x7d31a['ICommandService']),_0x220ebd(0x5,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x33e)]))],_0x8a946e[_0x504d77(0x3bd)]);const _0x54211f={0x0:{0x0:{'v':_0x504d77(0x3a7),'s':_0x5616d5}},0x2:{0x1:{'v':'','s':_0x5616d5},0x2:{'v':'','s':_0x5616d5},0x3:{'v':_0x504d77(0x360),'s':_0x5616d5},0x4:{'v':'','s':_0x5616d5},0x5:{'v':'','s':_0x5616d5}},0x3:{0x0:{'v':'','s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}},0x4:{0x0:{'v':'','s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}},0x5:{0x0:{'v':'','s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}},0x6:{0x0:{'v':'','s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}},0x7:{0x0:{'v':'','s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}},0x8:{0x0:{'v':_0x504d77(0x196),'s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'values','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}},0x9:{0x0:{'v':'','s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}},0xa:{0x0:{'v':'','s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}},0xb:{0x0:{'v':'','s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}},0xc:{0x0:{'v':'','s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}},0xd:{0x0:{'v':'','s':_0x5616d5},0x1:{'v':'','s':_0xe55163},0x2:{'v':'','s':_0xe55163},0x3:{'v':'','s':_0xe55163},0x4:{'v':'','s':_0xe55163},0x5:{'v':'','s':_0xe55163}}},_0x109342={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},_0x45061d=(_0x4a0884,_0x118e05)=>{const _0x269e1a=_0x504d77,_0x10e784=new _0x7d31a[(_0x269e1a(0x2ed))](),_0x7313b8=new _0x7d31a[(_0x269e1a(0x2ed))](_0x54211f),{row:_0x1e3109,col:_0xaa7518}=_0x118e05;_0x7313b8[_0x269e1a(0x40f)]((_0x36de08,_0x266555,_0x45c3f4)=>{const _0x2e2f22=_0x269e1a;let _0x5a81d6='';_0x45c3f4['v']===_0x2e2f22(0x3a7)?_0x5a81d6=_0x4a0884['filter']:_0x45c3f4['v']===_0x2e2f22(0x196)?_0x5a81d6=_0x4a0884['row']:_0x45c3f4['v']===_0x2e2f22(0x360)?_0x5a81d6=_0x4a0884[_0x2e2f22(0x360)]:_0x45c3f4['v']===_0x2e2f22(0x3de)&&(_0x5a81d6=_0x4a0884[_0x2e2f22(0x3de)]),_0x10e784[_0x2e2f22(0x33d)](_0x36de08+_0x1e3109,_0x266555+_0xaa7518,{..._0x45c3f4,'v':_0x5a81d6});});const _0x807ba5=_0x7d31a[_0x269e1a(0x1cf)][_0x269e1a(0x11a)](_0x109342);return Object['keys'](_0x109342)[_0x269e1a(0x20a)](_0x4cb885=>{const _0x21728e=_0x269e1a;_0x807ba5[_0x4cb885]=_0x109342[_0x4cb885]['map'](_0x369593=>({..._0x369593,'startRow':_0x369593[_0x21728e(0x2d5)]+_0x1e3109,'endRow':_0x369593['endRow']+_0x1e3109,'startColumn':_0x369593['startColumn']+_0xaa7518,'endColumn':_0x369593['endColumn']+_0xaa7518}));}),{'matrixCache':_0x10e784,'rangesCache':_0x807ba5};};function _0x20d35c(_0x575b18,_0x19f1e3){const _0x2c395c=_0x504d77;let _0x360a9b='';const _0x15b6d4=this[_0x2c395c(0x257)]();switch(_0x19f1e3){case _0x401889[_0x2c395c(0x3dc)][_0x2c395c(0x377)]:_0x360a9b=_0x15b6d4[_0x2c395c(0x252)]+_0x575b18;break;case _0x401889[_0x2c395c(0x3dc)]['count']:_0x360a9b=_0x15b6d4[_0x2c395c(0x229)]+_0x575b18;break;case _0x401889[_0x2c395c(0x3dc)]['countNums']:_0x360a9b=_0x15b6d4['sheets-pivot.countNumsName']+_0x575b18;break;case _0x401889[_0x2c395c(0x3dc)][_0x2c395c(0x262)]:_0x360a9b=_0x15b6d4[_0x2c395c(0x142)]+_0x575b18;break;case _0x401889[_0x2c395c(0x3dc)][_0x2c395c(0x3ae)]:_0x360a9b=_0x15b6d4[_0x2c395c(0x264)]+_0x575b18;break;case _0x401889[_0x2c395c(0x3dc)][_0x2c395c(0x343)]:_0x360a9b=_0x15b6d4['sheets-pivot.productName']+_0x575b18;break;case _0x401889[_0x2c395c(0x3dc)][_0x2c395c(0x345)]:_0x360a9b=_0x15b6d4[_0x2c395c(0x36a)]+_0x575b18;break;case _0x401889[_0x2c395c(0x3dc)]['stdDevp']:_0x360a9b=_0x15b6d4[_0x2c395c(0x3c9)]+_0x575b18;break;case _0x401889['PivotSubtotalTypeEnum'][_0x2c395c(0x429)]:_0x360a9b=_0x15b6d4[_0x2c395c(0x115)]+_0x575b18;break;case _0x401889[_0x2c395c(0x3dc)][_0x2c395c(0x3d7)]:_0x360a9b=_0x15b6d4[_0x2c395c(0x168)]+_0x575b18;break;case _0x401889[_0x2c395c(0x3dc)][_0x2c395c(0x318)]:_0x360a9b=_0x15b6d4[_0x2c395c(0x1b8)]+_0x575b18;break;default:_0x360a9b=_0x575b18;break;}return _0x360a9b;}function _0x43d68d(_0x4481db,_0x2b6583,_0x44d0ca,_0x5d5d90,_0xd996ce){const _0x57d3ea=_0x504d77;var _0x261633,_0x230843,_0x594172,_0x509e42,_0x1ba4a6;const _0x256479=_0x7d31a[_0x57d3ea(0x364)](_0x4481db,_0x2b6583),{rangesInfo:_0x3c3424,areaInfo:_0x12b299,headerMap:_0x385e2c}=_0xd996ce;if(!_0x3c3424||!_0x12b299||!_0x385e2c)return;const _0x2daf26=Object[_0x57d3ea(0x38c)](_0x3c3424)[_0x57d3ea(0x3a2)](_0x246594=>_0x3c3424[_0x246594][_0x57d3ea(0x35b)](_0x51f5e5=>_0x7d31a[_0x57d3ea(0x1e6)][_0x57d3ea(0x2a7)](_0x51f5e5,_0x256479))),_0x444691=_0x12b299;let _0x521786,_0xfaa84,_0xf7fb31;if(_0x2daf26===_0x57d3ea(0x29b))_0x521786=(_0x261633=_0x444691==null?void 0x0:_0x444691['rowInfo'])==null?void 0x0:_0x261633[_0x4481db],_0xfaa84=(_0x230843=_0x385e2c==null?void 0x0:_0x385e2c[_0x57d3ea(0x335)])==null?void 0x0:_0x230843[_0x2b6583],_0xf7fb31=_0xfaa84==null?void 0x0:_0xfaa84[_0x57d3ea(0x3c0)];else{if(_0x2daf26==='colRanges')_0x521786=(_0x594172=_0x444691==null?void 0x0:_0x444691[_0x57d3ea(0x189)])==null?void 0x0:_0x594172[_0x2b6583],_0xfaa84=(_0x509e42=_0x385e2c[_0x57d3ea(0x29e)])==null?void 0x0:_0x509e42[_0x4481db+0x1+_0x2b6583-_0x3c3424[_0x57d3ea(0x400)][0x0][_0x57d3ea(0x30d)]],_0xf7fb31=_0xfaa84==null?void 0x0:_0xfaa84['tableFieldId'];else{if(_0x2daf26==='cornerRanges')_0x521786=(_0x1ba4a6=_0x444691==null?void 0x0:_0x444691[_0x57d3ea(0x140)])==null?void 0x0:_0x1ba4a6[_0x2b6583],_0xf7fb31=_0x521786==null?void 0x0:_0x521786[_0x57d3ea(0x3c0)];else{if(_0x2daf26===_0x57d3ea(0x24e)){const _0x586d3=_0x44d0ca==null?void 0x0:_0x44d0ca['fi'];_0x586d3!==void 0x0&&(_0xf7fb31=_0x5d5d90[_0x57d3ea(0x28a)](_0x586d3));}}}}return{'filterId':_0xf7fb31,'info':_0x521786,'data':_0x44d0ca,'headerInfo':_0xfaa84};}function _0x4b9203(_0x4120b2,_0xd17f11,_0x11a784){const _0x2c81fc=_0x504d77,_0x3fe92a=_0x4120b2['dataFieldsCollection'],_0x33ae2e=_0x3fe92a['getFieldIds'](),_0x1fd208=new Set();_0x4120b2[_0x2c81fc(0x1d9)](_0x32448e=>{const _0x41a588=_0x2c81fc;_0x1fd208[_0x41a588(0x213)](_0x32448e[_0x41a588(0x1f5)]);});const _0x420c8d=_0x33ae2e[_0x2c81fc(0x410)](_0x1fb815=>{const _0x226a96=_0x2c81fc,_0x1d19a9=_0x3fe92a['getFieldById'](_0x1fb815);return{'checked':_0x1fd208[_0x226a96(0x407)](_0x1fb815),'dataFieldId':_0x1d19a9['id'],'id':_0x1d19a9['id'],'name':_0x3fe92a[_0x226a96(0x3f8)](_0x1d19a9['id']),'type':_0x1d19a9['getFieldDataType'](),'pivotTableId':_0xd17f11};}),_0x214417=[];_0x4120b2[_0x2c81fc(0x3c1)](_0x401889[_0x2c81fc(0x266)][_0x2c81fc(0x203)],_0x2a44d6=>{const _0x416c4b=_0x2c81fc;_0x214417['push']({'dataFieldId':_0x2a44d6['dataFieldId'],'tableFieldId':_0x2a44d6[_0x416c4b(0x347)](),'displayName':_0x2a44d6[_0x416c4b(0x3f8)]()});});const _0x4891da=[];_0x4120b2[_0x2c81fc(0x3c1)](_0x401889['PivotTableFiledAreaEnum'][_0x2c81fc(0x1b9)],_0x494007=>{const _0x171798=_0x2c81fc;_0x4891da[_0x171798(0x25f)]({'dataFieldId':_0x494007[_0x171798(0x1f5)],'tableFieldId':_0x494007[_0x171798(0x347)](),'displayName':_0x494007[_0x171798(0x3f8)]()});});const _0x50926d=[];if(_0x4120b2[_0x2c81fc(0x3c1)](_0x401889[_0x2c81fc(0x266)][_0x2c81fc(0x374)],_0x10b8a0=>{const _0x37ec16=_0x2c81fc;_0x50926d['push']({'dataFieldId':_0x10b8a0[_0x37ec16(0x1f5)],'tableFieldId':_0x10b8a0[_0x37ec16(0x347)](),'displayName':_0x10b8a0[_0x37ec16(0x3f8)](),'format':_0x10b8a0[_0x37ec16(0x169)](),'subTotalType':_0x10b8a0[_0x37ec16(0x17a)]()});}),_0x50926d[_0x2c81fc(0x423)]>0x1){const _0x190350=_0x4120b2['getValueIndex']();(_0x4120b2[_0x2c81fc(0x3d2)]()?_0x4891da:_0x214417)[_0x2c81fc(0x12d)](_0x190350,0x0,{'dataFieldId':'','tableFieldId':_0x2c81fc(0x2c5),'displayName':'ΣValue'});}const _0x2c5ff0=[];_0x4120b2[_0x2c81fc(0x3c1)](_0x401889[_0x2c81fc(0x266)][_0x2c81fc(0x127)],_0x41e430=>{const _0x5d4302=_0x2c81fc;_0x2c5ff0[_0x5d4302(0x25f)]({'dataFieldId':_0x41e430[_0x5d4302(0x1f5)],'tableFieldId':_0x41e430['getId'](),'displayName':_0x41e430['getDisplayName']()});});const _0x140d0b=_0x11a784[_0x2c81fc(0x2ce)];return{'sourceList':_0x420c8d,'sourceRange':_0x140d0b,'rowFields':_0x214417,'columnFields':_0x4891da,'valueFields':_0x50926d,'filterFields':_0x2c5ff0,'positionInfo':_0x11a784[_0x2c81fc(0x2b1)]};}function _0x53181d(_0xe893d4,_0x169f9e,_0x56fc36='',_0x11a041={}){const _0x5bd986=_0x504d77,_0x1cac10=_0xe893d4[_0x5bd986(0x3f1)](_0x7d31a[_0x5bd986(0x3e5)]);for(const _0x32cac9 in _0x169f9e)if(Object[_0x5bd986(0x422)][_0x5bd986(0x378)][_0x5bd986(0x41e)](_0x169f9e,_0x32cac9)){const _0x16890d=_0x56fc36?_0x56fc36+'.'+_0x32cac9:_0x32cac9;typeof _0x169f9e[_0x32cac9]==_0x5bd986(0x3cb)&&_0x169f9e[_0x32cac9]!==null&&!Array[_0x5bd986(0x183)](_0x169f9e[_0x32cac9])?_0x53181d(_0xe893d4,_0x169f9e[_0x32cac9],_0x16890d,_0x11a041):_0x11a041[_0x16890d]=_0x1cac10['t'](_0x16890d);}return _0x11a041;}const _0x318779=_0xdbed74=>{const _0x1bec6d=_0x504d77;if(!_0xdbed74)return[];const {rowRanges:_0xe0baea,colRanges:_0x57c146,cornerRanges:_0x3751b8,dataRanges:_0x5680e7,pageRanges:_0x2e2c4d}=_0xdbed74,_0x142b26=[..._0x57c146,..._0xe0baea,..._0x5680e7,..._0x3751b8]['filter'](_0x301c6b=>_0x301c6b['startRow']>=0x0&&_0x301c6b[_0x1bec6d(0x30d)]>=0x0&&_0x301c6b[_0x1bec6d(0x125)]>=0x0&&_0x301c6b[_0x1bec6d(0x1e1)]>=0x0);let _0x363ce7=Number[_0x1bec6d(0x3f3)],_0x19097e=Number[_0x1bec6d(0x208)],_0x2a4597=Number[_0x1bec6d(0x3f3)],_0x5cc733=Number[_0x1bec6d(0x208)];for(let _0x571fc3=0x0;_0x571fc3<_0x142b26[_0x1bec6d(0x423)];_0x571fc3++)_0x363ce7=Math['min'](_0x363ce7,_0x142b26[_0x571fc3][_0x1bec6d(0x2d5)]),_0x19097e=Math[_0x1bec6d(0x262)](_0x19097e,_0x142b26[_0x571fc3][_0x1bec6d(0x125)]),_0x2a4597=Math[_0x1bec6d(0x3ae)](_0x2a4597,_0x142b26[_0x571fc3]['startColumn']),_0x5cc733=Math['max'](_0x5cc733,_0x142b26[_0x571fc3]['endColumn']);return[..._0x2e2c4d,{'startRow':_0x363ce7,'endRow':_0x19097e,'startColumn':_0x2a4597,'endColumn':_0x5cc733}];};function _0x2ed9bd(_0x5763c0,_0x75462b){const _0x1a1b5c=_0x504d77,_0x349f2f=_0x75462b[_0x1a1b5c(0x176)][_0x1a1b5c(0x2be)],{pivotTableId:_0x1ee3e7,unitId:_0x22e696,subUnitId:_0x53e968}=_0x75462b;if(!_0x349f2f)return;const _0xfe7380=_0x5763c0[_0x1a1b5c(0x3f1)](_0x8a946e[_0x1a1b5c(0x3bd)]),_0x8cd596=_0xfe7380[_0x1a1b5c(0x16e)](_0x1ee3e7),_0x1ef177=_0xfe7380[_0x1a1b5c(0x2fb)](_0x22e696,_0x53e968,_0x1ee3e7);if(!_0x8cd596||!_0x1ef177)return;const _0x18c355=_0x8cd596[_0x1a1b5c(0x12c)](_0x349f2f[_0x1a1b5c(0x424)]);if(!(_0x18c355!=null&&_0x18c355['length']))return;const _0x3b1bc5=_0x1ef177[_0x1a1b5c(0x2ce)],{unitId:_0x48b2c6,subUnitId:_0xe58b64,range:_0x541e2e}=_0x3b1bc5;let _0x26ec18=0x0;const _0x534c15=_0x8cd596[_0x1a1b5c(0x2a2)][_0x1a1b5c(0x375)]()[_0x1a1b5c(0x12f)]((_0x3a34a0,_0x240b53)=>{const _0x40aec4=_0x1a1b5c;var _0x3b5535;const _0x29980e=(_0x3b5535=_0x8cd596['getDataFieldByDataFieldId'](_0x240b53))==null?void 0x0:_0x3b5535[_0x40aec4(0x415)]();return _0x29980e&&(_0x3a34a0[String(_0x26ec18)]=_0x29980e),_0x26ec18++,_0x3a34a0;},{});return{'indexes':_0x18c355,'range':_0x541e2e,'sourceUnitId':_0x48b2c6,'sourceSubUnitId':_0xe58b64,'formatMap':_0x534c15};}function _0x5e2ded(_0x12b7a5,_0x3aee8e){const _0x2db4c4=_0x504d77;if(!_0x12b7a5||!_0x3aee8e)return!0x0;const _0x12d19d=_0x11dac8[_0x2db4c4(0x1d6)](_0x54fa98,_0x3f7f8),_0x514174=new Function('return\x20'+_0x12d19d)()(_0x12b7a5,_0x3aee8e)[_0x2db4c4(0x182)],_0x1bb007=_0x11dac8['isFeatureAuthorizedWithinTime'](_0x514174,'sf',_0x371240);return!((_0x514174==null?void 0x0:_0x514174['rt'])===_0x11dac8['ReleaseType']['NO_COMMERCIAL']&&!_0x1bb007);}function _0x40e998(_0x8975a4,_0xfbe7c0,_0xd91893){const _0xb8005b=_0x504d77,_0x2388cc={'count':_0x8975a4,'timeValid':!0x1};if(!_0xfbe7c0||!_0xd91893)return _0x2388cc;const _0x3d9135=_0x11dac8[_0xb8005b(0x1d6)](_0x54fa98,_0x3f7f8),_0x2783bd=new Function('return\x20'+_0x3d9135)()(_0xfbe7c0,_0xd91893);if(_0x2783bd!=null&&_0x2783bd[_0xb8005b(0x3d1)]){const _0x2fd773=_0x2783bd['message'],_0x513870=_0x11dac8[_0xb8005b(0x2f5)](_0x2fd773,'sf',_0x371240);return{'count':_0x11dac8['getSheetFeatureLimit'](_0x2fd773,_0x513870,_0xb8005b(0x280),_0x8975a4,_0x8975a4,0x0),'timeValid':_0x513870};}return _0x2388cc;}function _0x18953a(_0x384c83,_0x22273b,_0x4f9eea,_0x61484f){const _0x5b5df5=_0x504d77,_0x302194={'subUnitId':_0x4f9eea,'unitId':_0x22273b,'cellValue':_0x399d28[_0x5b5df5(0x2ea)](_0x61484f)},_0x305549=_0x399d28['SetRangeValuesUndoMutationFactory'](_0x384c83,_0x302194);let _0x1f6e31=!0x1;return new _0x7d31a[(_0x5b5df5(0x2ed))](_0x305549[_0x5b5df5(0x28c)])[_0x5b5df5(0x40f)]((_0x510e68,_0x39f450,_0x5c93f8)=>{const _0x39f946=_0x5b5df5;if(!_0x1f6e31&&_0x5c93f8&&(_0x5c93f8[_0x39f946(0x320)]||_0x5c93f8['f']||_0x5c93f8['p']||_0x5c93f8['s']||_0x5c93f8['si']||_0x5c93f8['t']||_0x5c93f8['v']))return _0x1f6e31=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x399d28[_0x5b5df5(0x3e2)]['id'],'params':_0x305549},'setRangeValueRedoMutation':{'id':_0x399d28[_0x5b5df5(0x3e2)]['id'],'params':_0x302194},'shouldClear':_0x1f6e31};}function _0x3569d6(_0x143434){const {row:_0x44adb8,col:_0x3f13d3}=_0x143434,_0x39a388={'startRow':_0x44adb8,'endRow':_0x44adb8,'startColumn':_0x3f13d3,'endColumn':_0x3f13d3},_0x2fd66f={'startRow':_0x44adb8+0x2,'endRow':_0x44adb8+0xe,'startColumn':_0x3f13d3,'endColumn':_0x3f13d3+0x6};return[_0x39a388,_0x2fd66f];}function _0x24e54e(_0x579e13,_0x5c6c03,_0x59f500){const _0x2988df=_0x504d77,{cornerView:_0xd019f6,rowView:_0x41a0a9,colView:_0x59e3dd,pageView:_0x15e602}=_0x579e13,{row:_0xd29f8e,col:_0x26e3d4}=_0x5c6c03;if(_0x59f500)return{'rowCount':_0x5bc6b3+_0xd29f8e,'colCount':_0x35064e+_0x26e3d4};const _0x12627e=_0x15e602[_0x2988df(0x1e8)]>-0x1?_0x15e602[_0x2988df(0x1e8)]+0x1:0x0,_0x24882b=_0x15e602[_0x2988df(0x15c)]>-0x1?_0x15e602[_0x2988df(0x15c)]:0x0,_0x4fda40=_0xd29f8e+_0x12627e+(_0x12627e?0x1:0x0)+_0xd019f6[_0x2988df(0x13e)]+_0x41a0a9[_0x2988df(0x13e)],_0x26f51a=_0x26e3d4+_0x24882b,_0x481dc9=_0x26e3d4+_0xd019f6['colCount']+_0x59e3dd[_0x2988df(0x226)],_0x38933c=Math[_0x2988df(0x262)](_0x26f51a,_0x481dc9);return{'rowCount':_0x4fda40,'colCount':_0x38933c};}function _0x438f78(_0x51b151,_0x2d4180,_0x59d96b,_0x4916e0){const _0x1d9dec=_0x504d77,{row:_0x135834,col:_0x53589b,unitId:_0x4e5cbe,subUnitId:_0x3845d8}=_0x59d96b,_0x8e77a5=_0x24e54e(_0x2d4180,{'row':_0x135834,'col':_0x53589b},_0x4916e0),_0x2d9c64=_0x51b151['get'](_0x7d31a[_0x1d9dec(0x253)]),_0x32351d=_0x399d28[_0x1d9dec(0x33a)](_0x2d9c64,{'unitId':_0x4e5cbe,'subUnitId':_0x3845d8}),_0xea8143=[],_0x191464=[];if(!_0x32351d)return{'undos':_0x191464,'redos':_0xea8143};const {worksheet:_0x59d77c}=_0x32351d,_0x21676e=_0x59d77c[_0x1d9dec(0x270)](),_0x5ef7e6=_0x59d77c[_0x1d9dec(0x239)]();return _0x21676e<_0x8e77a5[_0x1d9dec(0x13e)]&&(_0xea8143[_0x1d9dec(0x25f)]({'id':_0x399d28[_0x1d9dec(0x379)]['id'],'params':{'unitId':_0x4e5cbe,'subUnitId':_0x3845d8,'range':{'startRow':_0x21676e,'endRow':_0x8e77a5['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x5ef7e6-0x1}}}),_0x191464['push']({'id':_0x399d28[_0x1d9dec(0x2f9)]['id'],'params':{'unitId':_0x4e5cbe,'subUnitId':_0x3845d8,'range':{'startRow':_0x21676e,'endRow':_0x8e77a5[_0x1d9dec(0x13e)]-0x1,'startColumn':0x0,'endColumn':_0x5ef7e6-0x1}}})),_0x5ef7e6<_0x8e77a5['colCount']&&(_0xea8143[_0x1d9dec(0x25f)]({'id':_0x399d28['InsertColMutation']['id'],'params':{'unitId':_0x4e5cbe,'subUnitId':_0x3845d8,'range':{'startRow':0x0,'endRow':_0x21676e-0x1,'startColumn':_0x5ef7e6,'endColumn':_0x8e77a5[_0x1d9dec(0x226)]-0x1}}}),_0x191464[_0x1d9dec(0x25f)]({'id':_0x399d28['RemoveColMutation']['id'],'params':{'unitId':_0x4e5cbe,'subUnitId':_0x3845d8,'range':{'startRow':0x0,'endRow':_0x21676e-0x1,'startColumn':_0x5ef7e6,'endColumn':_0x8e77a5[_0x1d9dec(0x226)]-0x1}}})),{'undos':_0x191464,'redos':_0xea8143};}function _0x580a15(_0x1ed007){let _0x302e95=0x0;for(let _0x21c01e=0x0;_0x21c01e<_0x1ed007['length'];_0x21c01e++){const _0x3b9337=_0x1ed007['charCodeAt'](_0x21c01e);_0x3b9337>=0x4e00&&_0x3b9337<=0x9fff||_0x3b9337>=0x3000&&_0x3b9337<=0x303f||_0x3b9337>=0xff00&&_0x3b9337<=0xffef?_0x302e95+=0x2:_0x302e95+=0x1;}return _0x302e95;}function _0x571d1f(_0x57e054,_0x407f2c,_0x268ebf,_0x238589){const _0x59cb29=_0x504d77;var _0x4da1e1,_0x35d8d6,_0x139d4e,_0x59e975;const {rowCount:_0x141e78,colCount:_0x514421,headerMap:_0x1a9318}=_0x57e054,_0x34288d=0x64,_0x3171be=Math[_0x59cb29(0x3ae)](_0x141e78,_0x34288d),_0x420a80=Math[_0x59cb29(0x3ae)](_0x514421,_0x34288d);let _0x28f5ce='',_0x4a0e3a=0x0;for(let _0x1a7ce9=0x0;_0x1a7ce9<_0x3171be;_0x1a7ce9++)for(let _0x28350a=0x0;_0x28350a<_0x420a80;_0x28350a++){const _0x5c8af0={...(_0x35d8d6=(_0x4da1e1=_0x57e054['data'])==null?void 0x0:_0x4da1e1[_0x1a7ce9])==null?void 0x0:_0x35d8d6[_0x28350a]},_0x7ac61b=(_0x139d4e=_0x1a9318[_0x1a7ce9])==null?void 0x0:_0x139d4e['tableFieldId'],_0x4c4d2a=_0x238589[_0x7ac61b];let _0x297f75=_0x57e054[_0x59cb29(0x3ee)](_0x1a7ce9,_0x28350a);if(_0x5c8af0){const _0xf3f91a=_0x268ebf?_0x28350a===0x0&&((_0x59e975=_0x57e054[_0x59cb29(0x3ea)](_0x28350a+0x1))==null?void 0x0:_0x59e975[_0x59cb29(0x25d)]):!0x1;_0x297f75=_0x39744b(_0x5c8af0,_0xf3f91a,_0x4c4d2a,_0x407f2c);}if(_0x297f75!==void 0x0){const _0x18a347=_0x580a15(String(_0x297f75));_0x4a0e3a<_0x18a347&&(_0x28f5ce=String(_0x297f75),_0x4a0e3a=_0x18a347);}}return _0x28f5ce;}function _0x45e89b(_0x5ace33){const _0x1af6e7=_0x504d77,{rowCount:_0x596125,colCount:_0x1771cc}=_0x5ace33;let _0x475500='',_0x3691a8=0x0;for(let _0x17bd8e=_0x596125-0x1;_0x17bd8e>0x0&&_0x17bd8e>_0x596125-0x3;_0x17bd8e--)for(let _0x1eda08=0x0;_0x1eda08<_0x1771cc;_0x1eda08++){const _0x5f5ccb=_0x5ace33[_0x1af6e7(0x3ee)](_0x17bd8e,_0x1eda08);if(_0x5f5ccb!==void 0x0){const _0xfa1e4c=String(_0x5f5ccb)[_0x1af6e7(0x423)];_0x3691a8<_0xfa1e4c&&(_0x475500=String(_0x5f5ccb),_0x3691a8=_0xfa1e4c);}}return _0x475500;}function _0x5d29fb(_0x567ff5){const {rowCount:_0x25b47f,colCount:_0x14d30d}=_0x567ff5;let _0x333759='',_0x4761e2=0x0;for(let _0x9de398=0x0;_0x9de398<_0x25b47f;_0x9de398++)for(let _0x16a9f5=0x0;_0x16a9f5<_0x14d30d;_0x16a9f5++){const _0xabd69b=_0x567ff5['getValue'](_0x9de398,_0x16a9f5);if(_0xabd69b!==void 0x0){const _0x2c0b8d=String(_0xabd69b)['length'];_0x4761e2<_0x2c0b8d&&(_0x333759=String(_0xabd69b),_0x4761e2=_0x2c0b8d);}}return _0x333759;}function _0x4d6419(_0x2cc362,_0x332560){const _0x54ef2c=_0x504d77,{rowFields:_0x5cfa4b,columnFields:_0x1e3dcd,valueFields:_0x4bc05e,filterFields:_0x1cb864,dimension:_0x21ea85,measure:_0x58ac27}=_0x332560;for(const _0xdf3ea1 of _0x5cfa4b){const _0x2224b8=_0x21ea85[_0xdf3ea1];_0x2224b8&&_0x2cc362[_0x54ef2c(0x2a5)](_0x2224b8[_0x54ef2c(0x1f5)])&&(_0x2cc362[_0x54ef2c(0x1a9)](_0x2224b8[_0x54ef2c(0x1f5)],_0x401889[_0x54ef2c(0x266)]['Row'],void 0x0,_0xdf3ea1),_0x2224b8['displayName']&&_0x2cc362['renameField'](_0x2224b8['id'],_0x2224b8[_0x54ef2c(0x118)]),_0x2224b8['sortInfo']&&_0x2cc362[_0x54ef2c(0x33c)](_0x2224b8['id'],_0x2224b8[_0x54ef2c(0x3d5)]),_0x2224b8[_0x54ef2c(0x2f1)]&&_0x2cc362[_0x54ef2c(0x2f7)](_0x2224b8['id'],_0x2224b8['filterInfo']));}for(const _0x5be315 of _0x1e3dcd){const _0x57765c=_0x21ea85[_0x5be315];_0x57765c&&_0x2cc362['getDataFieldByDataFieldId'](_0x57765c['dataFieldId'])&&(_0x2cc362[_0x54ef2c(0x1a9)](_0x57765c[_0x54ef2c(0x1f5)],_0x401889[_0x54ef2c(0x266)][_0x54ef2c(0x1b9)],void 0x0,_0x5be315),_0x57765c[_0x54ef2c(0x3d5)]&&_0x2cc362[_0x54ef2c(0x33c)](_0x57765c['id'],_0x57765c[_0x54ef2c(0x3d5)]),_0x57765c[_0x54ef2c(0x2f1)]&&_0x2cc362['setLabelFilterInfo'](_0x57765c['id'],_0x57765c[_0x54ef2c(0x2f1)]),_0x57765c[_0x54ef2c(0x118)]&&_0x2cc362[_0x54ef2c(0x311)](_0x57765c['id'],_0x57765c[_0x54ef2c(0x118)]));}for(const _0x474bba of _0x1cb864){const _0x41e942=_0x21ea85[_0x474bba];_0x41e942&&_0x2cc362['getDataFieldByDataFieldId'](_0x41e942[_0x54ef2c(0x1f5)])&&(_0x2cc362[_0x54ef2c(0x1a9)](_0x41e942[_0x54ef2c(0x1f5)],_0x401889[_0x54ef2c(0x266)][_0x54ef2c(0x127)],void 0x0,_0x474bba),_0x41e942[_0x54ef2c(0x3d5)]&&_0x2cc362[_0x54ef2c(0x33c)](_0x41e942['id'],_0x41e942['sortInfo']),_0x41e942['filterInfo']&&_0x2cc362[_0x54ef2c(0x2f7)](_0x41e942['id'],_0x41e942[_0x54ef2c(0x2f1)]),_0x41e942[_0x54ef2c(0x118)]&&_0x2cc362[_0x54ef2c(0x311)](_0x41e942['id'],_0x41e942['displayName']));}for(const _0x49bb7b of _0x4bc05e){const _0x2f307e=_0x58ac27[_0x49bb7b];_0x2f307e&&_0x2cc362['getDataFieldByDataFieldId'](_0x2f307e[_0x54ef2c(0x1f5)])&&(_0x2cc362[_0x54ef2c(0x1a9)](_0x2f307e[_0x54ef2c(0x1f5)],_0x401889[_0x54ef2c(0x266)][_0x54ef2c(0x374)],void 0x0,_0x49bb7b),_0x2f307e[_0x54ef2c(0x385)]!==void 0x0&&_0x2cc362[_0x54ef2c(0x152)](_0x49bb7b,_0x2f307e[_0x54ef2c(0x385)]),_0x2f307e['format']&&_0x2cc362[_0x54ef2c(0x322)](_0x49bb7b,_0x2f307e[_0x54ef2c(0x2ac)]),_0x2f307e[_0x54ef2c(0x118)]&&_0x2cc362[_0x54ef2c(0x311)](_0x2f307e['id'],_0x2f307e[_0x54ef2c(0x118)]));}const _0x44eea8=_0x332560[_0x54ef2c(0x26e)];for(const {fieldId:_0x1a4b5a,filterInfo:_0x455f98}of _0x44eea8)_0x2cc362[_0x54ef2c(0x35d)](_0x1a4b5a,_0x455f98);}function _0x4dc86f(_0x351410,_0x27efd0){const _0x31d970=_0x504d77,_0x342f81=[];_0x27efd0===_0x401889['PivotTableFiledAreaEnum'][_0x31d970(0x203)]&&_0x351410[_0x31d970(0x3c1)](_0x401889[_0x31d970(0x266)]['Row'],_0x279064=>{const _0x5ed918=_0x31d970;_0x342f81[_0x5ed918(0x25f)](_0x279064[_0x5ed918(0x347)]());}),_0x27efd0===_0x401889[_0x31d970(0x266)][_0x31d970(0x1b9)]&&_0x351410[_0x31d970(0x3c1)](_0x401889['PivotTableFiledAreaEnum'][_0x31d970(0x1b9)],_0x28008b=>{const _0x769eb=_0x31d970;_0x342f81['push'](_0x28008b[_0x769eb(0x347)]());}),_0x27efd0===_0x401889[_0x31d970(0x266)][_0x31d970(0x127)]&&_0x351410[_0x31d970(0x3c1)](_0x401889[_0x31d970(0x266)][_0x31d970(0x127)],_0x39eed0=>{const _0x54358d=_0x31d970;_0x342f81[_0x54358d(0x25f)](_0x39eed0[_0x54358d(0x347)]());}),_0x27efd0===_0x401889[_0x31d970(0x266)][_0x31d970(0x374)]&&_0x351410[_0x31d970(0x3c1)](_0x401889[_0x31d970(0x266)]['Value'],_0x4f9252=>{const _0x2f57d6=_0x31d970;_0x342f81[_0x2f57d6(0x25f)](_0x4f9252[_0x2f57d6(0x347)]());}),_0x27efd0===void 0x0&&_0x351410[_0x31d970(0x1d9)](_0xee1867=>{const _0x5e661c=_0x31d970;_0x342f81[_0x5e661c(0x25f)](_0xee1867[_0x5e661c(0x347)]());});const _0x20051e=_0x342f81[_0x31d970(0x423)];for(let _0x32a297=_0x20051e-0x1;_0x32a297>=0x0;_0x32a297--)_0x351410['removeField'](_0x342f81[_0x32a297]);const _0x140bf4=_0x351410['getValueFilterInfos']();for(const _0x9b725e in _0x140bf4)_0x351410[_0x31d970(0x38f)](_0x9b725e);}function _0x1ff12d(_0x3fa657,_0x2e0c3d){const _0x1a6753=_0x504d77,_0x3de9be=new Date(_0x401889[_0x1a6753(0x3aa)](_0x2e0c3d)),_0x442044=new Date(_0x401889[_0x1a6753(0x3aa)](_0x3fa657)),_0x552ba4=_0x3de9be[_0x1a6753(0x165)](),_0x3bdcde=_0x442044[_0x1a6753(0x165)](),_0x15e022=_0x3de9be[_0x1a6753(0x31f)](),_0xffb98c=_0x442044[_0x1a6753(0x31f)](),_0x15c3f7=_0x3de9be[_0x1a6753(0x128)](),_0x589243=_0x442044[_0x1a6753(0x128)](),_0x36dac0=_0x552ba4===_0x3bdcde,_0x2edfbe=_0x36dac0&&_0x15e022===_0xffb98c;return _0x36dac0&&_0x2edfbe&&!(_0x2edfbe&&_0x15c3f7===_0x589243)?_0x401889[_0x1a6753(0x2bc)]['YearMonthDate']:_0x36dac0&&!_0x2edfbe?_0x401889[_0x1a6753(0x2bc)]['YearMonth']:_0x401889['PivotDateGroupFieldDateTypeEnum']['Year'];}function _0x2546fa(_0x5638af,_0xcf82a0){const _0xb2c4cc=_0x504d77,_0xf65728=_0x5638af[_0xb2c4cc(0x3f1)](_0x8a946e['SheetsPivotDataSourceModel'])[_0xb2c4cc(0x257)]();let _0x2266bd='';switch(_0xcf82a0){case _0x401889['PivotDateGroupFieldDateTypeEnum'][_0xb2c4cc(0x13d)]:_0x2266bd=_0xf65728[_0xb2c4cc(0x3d8)];break;case _0x401889[_0xb2c4cc(0x2bc)][_0xb2c4cc(0x2f8)]:_0x2266bd=_0xf65728[_0xb2c4cc(0x1d5)];break;case _0x401889[_0xb2c4cc(0x2bc)]['Year']:_0x2266bd=_0xf65728[_0xb2c4cc(0x300)];break;case _0x401889[_0xb2c4cc(0x2bc)][_0xb2c4cc(0x1d2)]:_0x2266bd=_0xf65728[_0xb2c4cc(0x255)];break;case _0x401889[_0xb2c4cc(0x2bc)]['Quarter']:_0x2266bd=_0xf65728[_0xb2c4cc(0x405)];break;case _0x401889[_0xb2c4cc(0x2bc)][_0xb2c4cc(0x306)]:_0x2266bd=_0xf65728[_0xb2c4cc(0x304)];break;case _0x401889[_0xb2c4cc(0x2bc)]['HourMinute']:_0x2266bd=_0xf65728[_0xb2c4cc(0x2ca)];break;case _0x401889[_0xb2c4cc(0x2bc)][_0xb2c4cc(0x2d6)]:_0x2266bd=_0xf65728[_0xb2c4cc(0x31c)];break;case _0x401889[_0xb2c4cc(0x2bc)][_0xb2c4cc(0x274)]:_0x2266bd=_0xf65728[_0xb2c4cc(0x1b3)];break;case _0x401889[_0xb2c4cc(0x2bc)][_0xb2c4cc(0x3da)]:_0x2266bd=_0xf65728[_0xb2c4cc(0x124)];break;case _0x401889[_0xb2c4cc(0x2bc)][_0xb2c4cc(0x210)]:_0x2266bd=_0xf65728[_0xb2c4cc(0x236)];break;default:_0x2266bd='';break;}return _0x2266bd;}const _0x3c6b7d=_0x504d77(0x206),_0x359fa5={};var _0xe66f7a=Object['getOwnPropertyDescriptor'],_0x80f204=(_0x4098b0,_0x485351,_0x913365,_0x1f1834)=>{const _0x3e0add=_0x504d77;for(var _0x44d6a6=_0x1f1834>0x1?void 0x0:_0x1f1834?_0xe66f7a(_0x485351,_0x913365):_0x485351,_0x230c26=_0x4098b0[_0x3e0add(0x423)]-0x1,_0x4c0f90;_0x230c26>=0x0;_0x230c26--)(_0x4c0f90=_0x4098b0[_0x230c26])&&(_0x44d6a6=_0x4c0f90(_0x44d6a6)||_0x44d6a6);return _0x44d6a6;},_0x44ec01=(_0x283539,_0xbfc423)=>(_0x51a5ab,_0x3bdde6)=>_0xbfc423(_0x51a5ab,_0x3bdde6,_0x283539);_0x8a946e[_0x504d77(0x241)]=class extends _0x7d31a[_0x504d77(0x260)]{constructor(_0x550321,_0x4ceeb1,_0x3f5947,_0x29a264,_0x5441db){const _0x586cf0=_0x504d77;super(),_0xa31747(this,'_model',new Map()),_0xa31747(this,_0x586cf0(0x3e1),new Map()),_0xa31747(this,'_pivotTableRangeInfo',new Map()),_0xa31747(this,_0x586cf0(0x233),new Map()),_0xa31747(this,_0x586cf0(0x224),new _0x24643e['Subject']()),_0xa31747(this,_0x586cf0(0x2e1),new _0x24643e['Subject']()),_0xa31747(this,_0x586cf0(0x25c),this[_0x586cf0(0x2e1)]['asObservable']()),_0xa31747(this,_0x586cf0(0x2c2),new _0x24643e['Subject']()),_0xa31747(this,_0x586cf0(0x28f),this[_0x586cf0(0x2c2)][_0x586cf0(0x1b5)]()),_0xa31747(this,'_textInfo',{}),_0xa31747(this,'configVersion$',this[_0x586cf0(0x224)][_0x586cf0(0x1b5)]()),(this[_0x586cf0(0x3d4)]=_0x550321,this[_0x586cf0(0x2b2)]=_0x4ceeb1,this[_0x586cf0(0x2db)]=_0x3f5947,this[_0x586cf0(0x11f)]=_0x29a264,this[_0x586cf0(0x242)]=_0x5441db,this[_0x586cf0(0x40c)](),this[_0x586cf0(0x23a)]());const _0x1c4d2a=this[_0x586cf0(0x242)]['getConfig'](_0x3c6b7d);(_0x1c4d2a==null?void 0x0:_0x1c4d2a[_0x586cf0(0x412)])===!0x0&&this[_0x586cf0(0x417)]();}[_0x504d77(0x23a)](){const _0x35fef4=_0x504d77;this[_0x35fef4(0x25b)](this[_0x35fef4(0x2db)][_0x35fef4(0x216)](_0x7d31a[_0x35fef4(0x24f)][_0x35fef4(0x383)])['subscribe'](_0x4940f4=>{const _0x32aab7=_0x35fef4;this['deleteUnitId'](_0x4940f4[_0x32aab7(0x177)]());}));}['setPivotInitCompleted'](){const _0x41d7cd=_0x504d77;this[_0x41d7cd(0x2e1)][_0x41d7cd(0x1e0)](!0x0);}['_initLocale'](){const _0x424425=_0x504d77,_0x127cae=_0x53181d(this[_0x424425(0x3d4)],_0x8d92c0,'',{});this['_textInfo']=_0x127cae,this['_commandService'][_0x424425(0x1f8)](_0x4c05b6['id'],{'textInfo':_0x127cae},{'onlyLocal':!0x0});}[_0x504d77(0x257)](){const _0x125773=_0x504d77;return this[_0x125773(0x362)];}[_0x504d77(0x3ed)](_0x2b9136,_0x3aec32,_0x5b9d60,_0x34f36e,_0x362a1e){const _0x5daf83=_0x504d77;this[_0x5daf83(0x1c3)](_0x2b9136,_0x3aec32,_0x5b9d60,_0x34f36e),this['updatePivotTableRangeInfo'](_0x2b9136,_0x3aec32,_0x5b9d60,_0x362a1e);}['getPivotTableConfig'](_0x180332,_0x343086,_0xea0279){const _0x567d2d=_0x504d77;var _0x5a078f;const _0x479e7c=(_0x5a078f=this[_0x567d2d(0x1db)][_0x567d2d(0x3f1)](_0x180332))==null?void 0x0:_0x5a078f[_0x567d2d(0x3f1)](_0x343086);if(_0x479e7c)return _0x479e7c[_0x567d2d(0x3f1)](_0xea0279);}[_0x504d77(0x361)](_0xad8a0f,_0x41dd66){const _0x27de97=_0x504d77,_0x1e4fad=this[_0x27de97(0x1db)][_0x27de97(0x3f1)](_0xad8a0f);if(_0x1e4fad){for(const [_0x5cff9e,_0xb658c8]of _0x1e4fad['entries']())for(const [_0x47176a,_0x2db000]of _0xb658c8['entries']())if(_0x47176a===_0x41dd66)return _0x2db000['targetCellInfo'];}}[_0x504d77(0x1ab)](_0x99dc98,_0x25af81,_0x119eb5){const _0x205361=_0x504d77,_0x41dd4f=this[_0x205361(0x2fb)](_0x99dc98,_0x25af81,_0x119eb5);return _0x41dd4f==null?void 0x0:_0x41dd4f[_0x205361(0x2b1)];}[_0x504d77(0x2cd)](_0x5dd9d2,_0x9bcfba){const _0x5cafe6=_0x504d77;var _0xb00ae3;return(_0xb00ae3=this[_0x5cafe6(0x1db)][_0x5cafe6(0x3f1)](_0x5dd9d2))==null?void 0x0:_0xb00ae3[_0x5cafe6(0x3f1)](_0x9bcfba);}[_0x504d77(0x3e0)](_0x4a4a73,_0x36dec6,_0x3ac6e0,_0x38dbe1){const _0x5d5684=_0x504d77,_0x791a1=this[_0x5d5684(0x137)](_0x4a4a73,_0x36dec6);_0x38dbe1?_0x791a1['set'](_0x3ac6e0,_0x38dbe1):_0x791a1[_0x5d5684(0x30e)](_0x3ac6e0),this[_0x5d5684(0x2c2)][_0x5d5684(0x1e0)]({'unitId':_0x4a4a73,'subUnitId':_0x36dec6,'pivotTableId':_0x3ac6e0,'pivotTableConfig':_0x38dbe1});}[_0x504d77(0x3f4)](_0x23c637,_0x3d695f){const _0x157610=_0x504d77;var _0xf7f771;return(_0xf7f771=this[_0x157610(0x3e1)]['get'](_0x23c637))==null?void 0x0:_0xf7f771[_0x157610(0x150)][_0x3d695f];}[_0x504d77(0x3ab)](_0x315584,_0x5331fb){const _0x4a724c=_0x504d77;this['_collectionConfigModel'][_0x4a724c(0x293)](_0x315584,_0x5331fb),this['_configVersion$'][_0x4a724c(0x1e0)](Math['random']());}[_0x504d77(0x137)](_0x3c1d0c,_0x58754b){const _0x4e7187=_0x504d77;let _0x541aca=this[_0x4e7187(0x1db)][_0x4e7187(0x3f1)](_0x3c1d0c);_0x541aca||(_0x541aca=new Map(),this[_0x4e7187(0x1db)][_0x4e7187(0x293)](_0x3c1d0c,_0x541aca));let _0x9a3c1e=_0x541aca[_0x4e7187(0x3f1)](_0x58754b);return _0x9a3c1e||(_0x9a3c1e=new Map(),_0x541aca['set'](_0x58754b,_0x9a3c1e)),_0x9a3c1e;}[_0x504d77(0x160)](_0x26068e,_0x4f6626){const _0x55ef90=_0x504d77;let _0x171309=this[_0x55ef90(0x2c1)]['get'](_0x26068e);_0x171309||(_0x171309=new Map(),this['_pivotTableRangeInfo']['set'](_0x26068e,_0x171309));let _0x3965dc=_0x171309[_0x55ef90(0x3f1)](_0x4f6626);return _0x3965dc||(_0x3965dc=new Map(),_0x171309[_0x55ef90(0x293)](_0x4f6626,_0x3965dc)),_0x3965dc;}[_0x504d77(0x15d)](_0x12b598,_0x1a4a6e){const _0x2673cb=_0x504d77;let _0x285b26=this['_pivotTableMatrixInfo'][_0x2673cb(0x3f1)](_0x12b598);_0x285b26||(_0x285b26=new Map(),this['_pivotTableMatrixInfo'][_0x2673cb(0x293)](_0x12b598,_0x285b26));let _0x51a0b7=_0x285b26[_0x2673cb(0x3f1)](_0x1a4a6e);return _0x51a0b7||(_0x51a0b7=new Map(),_0x285b26['set'](_0x1a4a6e,_0x51a0b7)),_0x51a0b7;}['updatePivotTableRangeInfo'](_0x13f063,_0x2a11d6,_0x3f417f,_0x509500){const _0x2ee87d=_0x504d77;var _0x4aab1e;const _0xdb2657=this[_0x2ee87d(0x160)](_0x13f063,_0x2a11d6),_0xde7431=(_0x4aab1e=_0xdb2657['get'](_0x3f417f))==null?void 0x0:_0x4aab1e['oldRangeInfo'];_0xdb2657[_0x2ee87d(0x293)](_0x3f417f,{'oldRangeInfo':_0xde7431,'rangeInfo':_0x509500});}[_0x504d77(0x1c3)](_0x4df816,_0x435a8f,_0x139f88,_0xd2ad30){const _0x1fa176=_0x504d77;var _0x2eabaf;const _0x7730b3=this[_0x1fa176(0x15d)](_0x4df816,_0x435a8f),_0x2924c9=(_0x2eabaf=_0x7730b3[_0x1fa176(0x3f1)](_0x139f88))==null?void 0x0:_0x2eabaf[_0x1fa176(0x382)];_0x7730b3[_0x1fa176(0x293)](_0x139f88,{'oldMatrix':_0x2924c9,'matrix':_0xd2ad30});}[_0x504d77(0x24d)](_0x47e76d,_0x23b179,_0x11601a){const _0x309b5e=_0x504d77;var _0x255271,_0x173e17;return(_0x173e17=(_0x255271=this['_pivotTableRangeInfo'][_0x309b5e(0x3f1)](_0x47e76d))==null?void 0x0:_0x255271[_0x309b5e(0x3f1)](_0x23b179))==null?void 0x0:_0x173e17[_0x309b5e(0x3f1)](_0x11601a);}['getPivotTableMatrixInfo'](_0x4e6ee2,_0x21fed7,_0x32d9ec){const _0xbe67c=_0x504d77;var _0x2d7487,_0x203172;return(_0x203172=(_0x2d7487=this[_0xbe67c(0x233)][_0xbe67c(0x3f1)](_0x4e6ee2))==null?void 0x0:_0x2d7487[_0xbe67c(0x3f1)](_0x21fed7))==null?void 0x0:_0x203172[_0xbe67c(0x3f1)](_0x32d9ec);}[_0x504d77(0x205)](_0x57912d){const _0x28677b=_0x504d77;this[_0x28677b(0x1db)][_0x28677b(0x30e)](_0x57912d),this[_0x28677b(0x3e1)]['delete'](_0x57912d);}[_0x504d77(0x2b9)](_0x5249d1){const _0x1d23c8=_0x504d77,_0x270905={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x1d23c8(0x3e1)][_0x1d23c8(0x3f1)](_0x5249d1)&&(_0x270905['dataFieldManagerConfig'][_0x5249d1]=this[_0x1d23c8(0x3e1)][_0x1d23c8(0x3f1)](_0x5249d1)),this[_0x1d23c8(0x1db)][_0x1d23c8(0x3f1)](_0x5249d1)){_0x270905[_0x1d23c8(0x413)][_0x5249d1]={};const _0x532631=this[_0x1d23c8(0x1db)][_0x1d23c8(0x3f1)](_0x5249d1);_0x532631!=null&&_0x532631[_0x1d23c8(0x32d)]&&[..._0x532631[_0x1d23c8(0x38c)]()][_0x1d23c8(0x20a)](_0x4f6edf=>{const _0x137f31=_0x1d23c8,_0x14eb0f=_0x532631[_0x137f31(0x3f1)](_0x4f6edf);_0x14eb0f!=null&&_0x14eb0f[_0x137f31(0x32d)]&&(_0x270905[_0x137f31(0x413)][_0x5249d1][_0x4f6edf]={},[..._0x14eb0f[_0x137f31(0x38c)]()][_0x137f31(0x20a)](_0x326381=>{const _0x5eac1e=_0x137f31,_0x4d90b4=_0x14eb0f['get'](_0x326381);_0x4d90b4&&(_0x270905[_0x5eac1e(0x413)][_0x5249d1][_0x4f6edf][_0x326381]=_0x4d90b4);}));});}return _0x270905;}[_0x504d77(0x417)](){const _0x286f67=_0x504d77;this['disposeWithMe'](this[_0x286f67(0x11f)][_0x286f67(0x427)]({'toJson':_0x5146b2=>JSON['stringify'](this[_0x286f67(0x2b9)](_0x5146b2)),'parseJson':_0x38b3fd=>({}),'businesses':[_0x7d31a[_0x286f67(0x24f)][_0x286f67(0x383)]],'pluginName':_0x5533fc,'onLoad':(_0x34cc45,_0x6a49b4)=>{},'onUnLoad':_0x10d36a=>{const _0x18376c=_0x286f67;this[_0x18376c(0x205)](_0x10d36a);}}));}},_0x8a946e[_0x504d77(0x241)]=_0x80f204([_0x44ec01(0x0,_0x7d31a['Inject'](_0x7d31a[_0x504d77(0x34d)])),_0x44ec01(0x1,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x214)])),_0x44ec01(0x2,_0x7d31a['Inject'](_0x7d31a[_0x504d77(0x253)])),_0x44ec01(0x3,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x33e)])),_0x44ec01(0x4,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x13f)]))],_0x8a946e[_0x504d77(0x241)]);var _0x5e0d43=Object[_0x504d77(0x353)],_0x398079=(_0x5a04f4,_0xdff4ad,_0x464365,_0x30f168)=>{for(var _0x3085df=_0x30f168>0x1?void 0x0:_0x30f168?_0x5e0d43(_0xdff4ad,_0x464365):_0xdff4ad,_0x353680=_0x5a04f4['length']-0x1,_0x4e15d8;_0x353680>=0x0;_0x353680--)(_0x4e15d8=_0x5a04f4[_0x353680])&&(_0x3085df=_0x4e15d8(_0x3085df)||_0x3085df);return _0x3085df;},_0x430dea=(_0x3814ef,_0x194c42)=>(_0x55fc53,_0x4763f1)=>_0x194c42(_0x55fc53,_0x4763f1,_0x3814ef);_0x8a946e[_0x504d77(0x325)]=class extends _0x7d31a[_0x504d77(0x260)]{constructor(_0x4a6abe,_0x37477a,_0x4b93b0,_0x12ccb4,_0xb4b69a){const _0x4029a3=_0x504d77;super(),_0xa31747(this,'_pivotRenderInfoCache',new Map()),_0xa31747(this,'_pivotRenderValueMatrixCache',new Map()),_0xa31747(this,'_markDirty$',new _0x24643e['Subject']()),_0xa31747(this,'markDirty$',this[_0x4029a3(0x409)][_0x4029a3(0x1b5)]()),_0xa31747(this,_0x4029a3(0x301),new _0x24643e['Subject']()),_0xa31747(this,_0x4029a3(0x17b),this[_0x4029a3(0x301)][_0x4029a3(0x1b5)]()),_0xa31747(this,_0x4029a3(0x362)),(this['_localeService']=_0x4a6abe,this[_0x4029a3(0x3d4)]=_0x37477a,this[_0x4029a3(0x1a7)]=_0x4b93b0,this[_0x4029a3(0x2db)]=_0x12ccb4,this[_0x4029a3(0x221)]=_0xb4b69a,this[_0x4029a3(0x40c)](),this[_0x4029a3(0x23a)]());}[_0x504d77(0x23a)](){const _0x50a279=_0x504d77;this[_0x50a279(0x25b)](this[_0x50a279(0x2db)][_0x50a279(0x216)](_0x7d31a[_0x50a279(0x24f)][_0x50a279(0x383)])[_0x50a279(0x271)](_0x1bccd0=>{const _0x75ecf7=_0x50a279;this[_0x75ecf7(0x205)](_0x1bccd0[_0x75ecf7(0x177)]());}));}[_0x504d77(0x40c)](){const _0x5ab2e0=_0x504d77;this[_0x5ab2e0(0x362)]=_0x53181d(this[_0x5ab2e0(0x3d4)],_0x8d92c0,'',{});}[_0x504d77(0x2b4)](_0x455718){const _0x3e8af0=_0x504d77,{view:_0x5af054,unitId:_0x13cf38,subUnitId:_0x315717,pivotTableId:_0x4f6663,type:_0x58f757}=_0x455718,_0x52cf74=this[_0x3e8af0(0x1a7)][_0x3e8af0(0x2fb)](_0x13cf38,_0x315717,_0x4f6663);if(!_0x5af054||!_0x52cf74||_0x58f757===_0x462181[_0x3e8af0(0x29a)])return;const {pageView:_0x45885d,cornerView:_0x5efb83,rowView:_0x54f18c,colView:_0x2fdc8f,dataView:_0x56bc41}=_0x5af054,_0x392eef=_0x52cf74[_0x3e8af0(0x2b1)],_0x45cc99=_0x52cf74['isEmpty'],_0x253b3f=this[_0x3e8af0(0x2e9)](_0x13cf38,_0x315717),_0x16782a=this['_ensurePivotItemRenderInfoCache'](_0x13cf38,_0x315717,_0x4f6663);if(_0x45cc99)return this[_0x3e8af0(0x2ff)](_0x455718,_0x253b3f,_0x392eef,_0x16782a);{const _0x122452=_0x15efc2(_0x392eef,_0x45885d,!0x0),_0xa2df1a=_0x45885d[_0x3e8af0(0x1e8)]>=0x0?_0x45885d[_0x3e8af0(0x1e8)]+0x1:0x0,_0x762a75=_0x5efb83[_0x3e8af0(0x270)](),_0x5c7c25=_0x5efb83['getColCount'](),_0xcbbdac=_0x122452[_0x3e8af0(0x423)]>0x0?_0x548227:0x0,_0x49a8c7=_0x15efc2({'row':_0x392eef[_0x3e8af0(0x196)]+_0xa2df1a+_0xcbbdac,'col':_0x392eef[_0x3e8af0(0x2c0)]},_0x5efb83,!0x1,!0x1),_0x20e9fa=_0x15efc2({'row':_0x392eef[_0x3e8af0(0x196)]+_0xa2df1a+_0xcbbdac+_0x762a75,'col':_0x392eef[_0x3e8af0(0x2c0)]},_0x54f18c,!0x1,!0x0),_0x101995=_0x15efc2({'row':_0x392eef['row']+_0xa2df1a+_0xcbbdac,'col':_0x392eef[_0x3e8af0(0x2c0)]+_0x5c7c25},_0x2fdc8f,!0x1,!0x0),_0x1e52d1=_0x15efc2({'row':_0x392eef['row']+_0xa2df1a+_0xcbbdac+_0x762a75,'col':_0x392eef[_0x3e8af0(0x2c0)]+_0x5c7c25},_0x56bc41,!0x1,!0x1);_0x16782a[_0x3e8af0(0x15e)]={'rowRanges':_0x20e9fa,'colRanges':_0x101995,'cornerRanges':_0x49a8c7,'dataRanges':_0x1e52d1,'pageRanges':_0x122452};const _0x5de968=_0x3859c5(this[_0x3e8af0(0x3d4)],_0x5af054,_0x52cf74,this[_0x3e8af0(0x362)]),{valueMatrix:_0x3018dd,rowInfo:_0x51fea5,colInfo:_0x987d06,cornerInfo:_0x3e88b9,rowHeaderMap:_0x2932c1,colHeaderMap:_0x54665d}=_0x5de968;return _0x16782a['areaInfo']={'rowInfo':_0x51fea5,'colInfo':_0x987d06,'cornerInfo':_0x3e88b9},_0x16782a[_0x3e8af0(0x38e)]={'rowHeaderMap':_0x2932c1,'colHeaderMap':_0x54665d},_0x3018dd['forEach']((_0x1aa8b5,_0x32bb0d)=>{const _0x51d9f7=_0x3e8af0;Object[_0x51d9f7(0x38c)](_0x32bb0d)['forEach'](_0x4ad991=>{const _0x21bebd=_0x51d9f7,_0x2a5b80=+_0x4ad991,_0x191aa2=_0x3018dd[_0x21bebd(0x3ee)](_0x1aa8b5,_0x2a5b80);_0x253b3f[_0x21bebd(0x33d)](_0x1aa8b5,_0x2a5b80,_0x191aa2);});}),this[_0x3e8af0(0x301)]['next']({'unitId':_0x13cf38,'subUnitId':_0x315717,'valueMatrix':_0x253b3f,'rangesCache':_0x16782a[_0x3e8af0(0x15e)],'pivotTableId':_0x4f6663,'type':_0x455718['type']}),this[_0x3e8af0(0x1a7)]['updateViewInfo'](_0x13cf38,_0x315717,_0x4f6663,_0x253b3f,_0x16782a['rangesInfo']),this[_0x3e8af0(0x221)]['addExclusiveRange'](_0x13cf38,_0x315717,_0x22d674,this['_createExclusiveRange'](_0x16782a[_0x3e8af0(0x15e)],_0x4f6663)),{'rangeCache':_0x16782a['rangesInfo'],'matrix':_0x253b3f};}}['_updateRenderEmptyCache'](_0x27992f,_0x5b0589,_0x1c5212,_0x54e1e4){const _0x525b84=_0x504d77,_0x56d581=this['_localeService']['t'],{unitId:_0x5e1fc2,subUnitId:_0x31f850,pivotTableId:_0x13b8b0}=_0x27992f,_0x2c53be={'filter':_0x56d581(_0x525b84(0x1ca)),'row':_0x56d581(_0x525b84(0x13b)),'column':_0x56d581('sheets-pivot.emptyPivot.column'),'values':_0x56d581('sheets-pivot.emptyPivot.values')},{matrixCache:_0x54e6db,rangesCache:_0xfc3c0b}=_0x45061d(_0x2c53be,_0x1c5212);return _0x54e6db[_0x525b84(0x40f)]((_0x233f11,_0x852d75,_0x1fce6f)=>{_0x5b0589['setValue'](_0x233f11,_0x852d75,_0x1fce6f);}),_0x54e1e4['rangesInfo']=_0xfc3c0b,this[_0x525b84(0x301)]['next']({'unitId':_0x5e1fc2,'subUnitId':_0x31f850,'valueMatrix':_0x5b0589,'rangesCache':_0xfc3c0b,'pivotTableId':_0x13b8b0,'type':_0x27992f[_0x525b84(0x215)],'isEmpty':!0x0}),this[_0x525b84(0x1a7)]['updateViewInfo'](_0x5e1fc2,_0x31f850,_0x13b8b0,_0x5b0589,_0xfc3c0b),this[_0x525b84(0x221)][_0x525b84(0x179)](_0x5e1fc2,_0x31f850,_0x22d674,this[_0x525b84(0x2c4)](_0xfc3c0b,_0x13b8b0)),{'rangeCache':_0x54e1e4[_0x525b84(0x15e)],'matrix':_0x5b0589};}[_0x504d77(0x2c4)](_0x2b1967,_0x44fc33){const _0x2e3df6=_0x504d77,_0x2c5784=[],_0x182859=_0x318779(_0x2b1967);for(const _0x41a3fe of _0x182859)_0x2c5784[_0x2e3df6(0x25f)]({'groupId':_0x44fc33,'range':_0x41a3fe});return _0x2c5784;}[_0x504d77(0x406)](_0x4b5133){const _0x35a9b8=_0x504d77;var _0x24d507,_0x53a9ab,_0x34113d,_0x3e265a;const {pivotTableId:_0x528a18,unitId:_0x20344f,subUnitId:_0x5866d0}=_0x4b5133;if(!_0x528a18||!_0x20344f||!_0x5866d0)return;const _0x3da6f7=this[_0x35a9b8(0x2e9)](_0x20344f,_0x5866d0),_0x214d8a=(_0x53a9ab=(_0x24d507=this[_0x35a9b8(0x40e)][_0x35a9b8(0x3f1)](_0x20344f))==null?void 0x0:_0x24d507[_0x35a9b8(0x3f1)](_0x5866d0))==null?void 0x0:_0x53a9ab[_0x35a9b8(0x3f1)](_0x528a18);if(_0x214d8a!=null&&_0x214d8a[_0x35a9b8(0x15e)]){for(const _0x5f5874 of Object['keys'](_0x214d8a[_0x35a9b8(0x15e)]))_0x214d8a['rangesInfo'][_0x5f5874][_0x35a9b8(0x20a)](_0x3a23db=>{const _0x382d39=_0x35a9b8;for(let _0x464d2c=_0x3a23db[_0x382d39(0x2d5)];_0x464d2c<=_0x3a23db[_0x382d39(0x125)];_0x464d2c++)for(let _0x16eb86=_0x3a23db[_0x382d39(0x30d)];_0x16eb86<=_0x3a23db[_0x382d39(0x1e1)];_0x16eb86++)_0x3da6f7['realDeleteValue'](_0x464d2c,_0x16eb86);});}_0x214d8a&&((_0x3e265a=(_0x34113d=this[_0x35a9b8(0x40e)][_0x35a9b8(0x3f1)](_0x20344f))==null?void 0x0:_0x34113d[_0x35a9b8(0x3f1)](_0x5866d0))==null||_0x3e265a[_0x35a9b8(0x30e)](_0x528a18)),this[_0x35a9b8(0x301)][_0x35a9b8(0x1e0)]({'unitId':_0x20344f,'subUnitId':_0x5866d0,'valueMatrix':_0x3da6f7,'pivotTableId':_0x528a18,'rangesCache':void 0x0,'type':_0x4b5133[_0x35a9b8(0x215)]}),this[_0x35a9b8(0x221)][_0x35a9b8(0x2fd)](_0x20344f,_0x5866d0,_0x22d674,_0x528a18);}[_0x504d77(0x367)](_0x1c8956,_0x4efd2e,_0x1776e4){const _0x19328a=_0x504d77;var _0x380701,_0x27e6ed,_0x23e31d,_0xb87fd3,_0x5eed88,_0x68da2;return this[_0x19328a(0x40e)][_0x19328a(0x407)](_0x1c8956)||this['_pivotRenderInfoCache']['set'](_0x1c8956,new Map()),(_0x380701=this[_0x19328a(0x40e)][_0x19328a(0x3f1)](_0x1c8956))!=null&&_0x380701[_0x19328a(0x407)](_0x4efd2e)||(_0x27e6ed=this[_0x19328a(0x40e)][_0x19328a(0x3f1)](_0x1c8956))==null||_0x27e6ed[_0x19328a(0x293)](_0x4efd2e,new Map()),(_0xb87fd3=(_0x23e31d=this[_0x19328a(0x40e)][_0x19328a(0x3f1)](_0x1c8956))==null?void 0x0:_0x23e31d['get'](_0x4efd2e))!=null&&_0xb87fd3[_0x19328a(0x407)](_0x1776e4)||(_0x68da2=(_0x5eed88=this['_pivotRenderInfoCache'][_0x19328a(0x3f1)](_0x1c8956))==null?void 0x0:_0x5eed88['get'](_0x4efd2e))==null||_0x68da2['set'](_0x1776e4,{}),this['_pivotRenderInfoCache'][_0x19328a(0x3f1)](_0x1c8956)[_0x19328a(0x3f1)](_0x4efd2e)[_0x19328a(0x3f1)](_0x1776e4);}[_0x504d77(0x2e9)](_0x199707,_0xfb02f9){const _0x342853=_0x504d77;var _0x389170,_0x42df5c;return this['_pivotRenderValueMatrixCache']['has'](_0x199707)||this[_0x342853(0x41a)][_0x342853(0x293)](_0x199707,new Map()),(_0x389170=this['_pivotRenderValueMatrixCache'][_0x342853(0x3f1)](_0x199707))!=null&&_0x389170[_0x342853(0x407)](_0xfb02f9)||(_0x42df5c=this[_0x342853(0x41a)][_0x342853(0x3f1)](_0x199707))==null||_0x42df5c[_0x342853(0x293)](_0xfb02f9,new _0x7d31a['ObjectMatrix']()),this[_0x342853(0x41a)][_0x342853(0x3f1)](_0x199707)[_0x342853(0x3f1)](_0xfb02f9);}['getPivotTableCellData'](_0x539dcc,_0x1d0b99,_0x5b3a7a,_0x151244){const _0xf31f98=_0x504d77;var _0x4904fc,_0x189f3e;const _0x51198b=(_0x189f3e=(_0x4904fc=this[_0xf31f98(0x41a)]['get'](_0x539dcc))==null?void 0x0:_0x4904fc['get'](_0x1d0b99))==null?void 0x0:_0x189f3e['getValue'](_0x5b3a7a,_0x151244);if(_0x51198b!=null)return _0x51198b;}[_0x504d77(0x1c5)](_0x49ca12,_0x2c7acf,_0x346852,_0x1b78eb){const _0x1811f3=_0x504d77;var _0xa6e4a4;const _0x4d7487=_0x7d31a[_0x1811f3(0x364)](_0x346852,_0x1b78eb),_0x299211=(_0xa6e4a4=this['_pivotRenderInfoCache']['get'](_0x49ca12))==null?void 0x0:_0xa6e4a4[_0x1811f3(0x3f1)](_0x2c7acf);return _0x299211?Array[_0x1811f3(0x20c)](_0x299211[_0x1811f3(0x38c)]())[_0x1811f3(0x3a2)](_0x217caa=>{const _0x47b01b=_0x1811f3,_0xb69df8=_0x299211[_0x47b01b(0x3f1)](_0x217caa),_0x554f33=_0xb69df8==null?void 0x0:_0xb69df8[_0x47b01b(0x15e)];return _0x554f33?Object['keys'](_0x554f33)[_0x47b01b(0x35b)](_0x24f692=>_0x554f33[_0x24f692]['some'](_0xcb6e81=>_0x7d31a[_0x47b01b(0x1e6)]['contains'](_0xcb6e81,_0x4d7487))):!0x1;}):void 0x0;}[_0x504d77(0x201)](_0x509f6a,_0x5619c2,_0x593f5b){const _0x55f951=_0x504d77;var _0x1da460;const _0x17957d=(_0x1da460=this['_pivotRenderInfoCache'][_0x55f951(0x3f1)](_0x509f6a))==null?void 0x0:_0x1da460['get'](_0x5619c2),_0x1cf8a7=[];return _0x17957d&&Array[_0x55f951(0x20c)](_0x17957d[_0x55f951(0x38c)]())[_0x55f951(0x20a)](_0x50ec5f=>{const _0x2d1f48=_0x55f951,_0x4f0852=_0x17957d[_0x2d1f48(0x3f1)](_0x50ec5f),_0x4cca63=_0x4f0852==null?void 0x0:_0x4f0852[_0x2d1f48(0x15e)];if(_0x4cca63)for(const _0x528edd of Object[_0x2d1f48(0x3de)](_0x4cca63)){let _0x31757b=!0x1;for(const _0x5c6f8f of _0x528edd)if(_0x7d31a[_0x2d1f48(0x1e6)][_0x2d1f48(0x2d7)](_0x5c6f8f,_0x593f5b)){_0x1cf8a7[_0x2d1f48(0x25f)](_0x50ec5f),_0x31757b=!0x0;break;}if(_0x31757b)break;}}),_0x1cf8a7;}[_0x504d77(0x3bc)](_0x196cb1,_0xa2ca06){const _0x469e2c=_0x504d77;var _0x3b531d,_0x3ac9ac;return(_0x3ac9ac=(_0x3b531d=this[_0x469e2c(0x41a)][_0x469e2c(0x3f1)](_0x196cb1))==null?void 0x0:_0x3b531d[_0x469e2c(0x3f1)](_0xa2ca06))!=null?_0x3ac9ac:new _0x7d31a[(_0x469e2c(0x2ed))]();}[_0x504d77(0x1bf)](_0x4de250,_0x2ff97d){const _0x5208f1=_0x504d77;var _0x22bbd6;return(_0x22bbd6=this[_0x5208f1(0x40e)]['get'](_0x4de250))==null?void 0x0:_0x22bbd6[_0x5208f1(0x3f1)](_0x2ff97d);}[_0x504d77(0x22e)](_0x259df0,_0x233acb,_0x3b6a49){const _0x42b618=_0x504d77;var _0x4ee6e6,_0x2dab56;return(_0x2dab56=(_0x4ee6e6=this[_0x42b618(0x40e)][_0x42b618(0x3f1)](_0x259df0))==null?void 0x0:_0x4ee6e6[_0x42b618(0x3f1)](_0x233acb))==null?void 0x0:_0x2dab56[_0x42b618(0x3f1)](_0x3b6a49);}[_0x504d77(0x205)](_0x43a059){const _0x523d46=_0x504d77;this[_0x523d46(0x40e)][_0x523d46(0x30e)](_0x43a059),this['_pivotRenderValueMatrixCache'][_0x523d46(0x30e)](_0x43a059);}[_0x504d77(0x13c)](_0x454e6c,_0x5859d7){const _0x345eb4=_0x504d77;this['_markDirty$'][_0x345eb4(0x1e0)]({'unitId':_0x454e6c,'subUnitId':_0x5859d7});}},_0x8a946e[_0x504d77(0x325)]=_0x398079([_0x430dea(0x0,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a['LocaleService'])),_0x430dea(0x1,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x34d)])),_0x430dea(0x2,_0x7d31a[_0x504d77(0x2aa)](_0x8a946e[_0x504d77(0x241)])),_0x430dea(0x3,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x253)])),_0x430dea(0x4,_0x7d31a[_0x504d77(0x2aa)](_0x399d28['IExclusiveRangeService']))],_0x8a946e[_0x504d77(0x325)]);var _0x46d993=Object[_0x504d77(0x353)],_0x41b217=(_0x559438,_0x10f1f0,_0x41f3bb,_0x50b79f)=>{const _0x54f768=_0x504d77;for(var _0x53875a=_0x50b79f>0x1?void 0x0:_0x50b79f?_0x46d993(_0x10f1f0,_0x41f3bb):_0x10f1f0,_0x4310dd=_0x559438[_0x54f768(0x423)]-0x1,_0x4a595c;_0x4310dd>=0x0;_0x4310dd--)(_0x4a595c=_0x559438[_0x4310dd])&&(_0x53875a=_0x4a595c(_0x53875a)||_0x53875a);return _0x53875a;},_0x4ac136=(_0x2643a0,_0x6bc5fa)=>(_0x17d192,_0x3cd506)=>_0x6bc5fa(_0x17d192,_0x3cd506,_0x2643a0);_0x8a946e[_0x504d77(0x12a)]=class extends _0x7d31a[_0x504d77(0x260)]{constructor(_0x22fa4c,_0x52487c){const _0x2e001c=_0x504d77;super(),_0xa31747(this,'asyncInterceptor',new _0x7d31a[(_0x2e001c(0x338))]({'PIVOT_PERFORM_CHECK':_0x4a899f})),_0xa31747(this,'interceptor',new _0x7d31a[(_0x2e001c(0x290))]({'PIVOT_MUTATION_GENERATE':_0x32e6cf})),(this[_0x2e001c(0x3b6)]=_0x22fa4c,this[_0x2e001c(0x3a6)]=_0x52487c,this[_0x2e001c(0x376)]());}[_0x504d77(0x376)](){this['_initViewModelBySheetInterceptor']();}['getPivotPerformCheck'](_0x500344){const _0x2ca42e=_0x504d77;return this['asyncInterceptor'][_0x2ca42e(0x144)](_0x4a899f)(!0x1,_0x500344);}[_0x504d77(0x170)](){const _0x1bf766=_0x504d77;this['disposeWithMe'](this[_0x1bf766(0x3b6)][_0x1bf766(0x14d)](_0x399d28[_0x1bf766(0x1cb)][_0x1bf766(0x1c4)],{'priority':0xc8,'effect':_0x7d31a[_0x1bf766(0x330)]['Value']|_0x7d31a[_0x1bf766(0x330)][_0x1bf766(0x3a4)],'handler':(_0x46059c,_0x4c3323,_0x4be5fe)=>{const _0x4946e6=_0x1bf766,{row:_0x2e641f,col:_0x5e9234,unitId:_0x3f615d,subUnitId:_0x59234c,workbook:_0x49f3d4}=_0x4c3323,_0x278bb4=this[_0x4946e6(0x3a6)][_0x4946e6(0x346)](_0x3f615d,_0x59234c,_0x2e641f,_0x5e9234);if(!_0x278bb4)return _0x4be5fe(_0x46059c);const _0x24cfba={..._0x46059c};(_0x278bb4['v']||_0x278bb4['v']===0x0)&&(_0x24cfba['v']=_0x278bb4['v']),_0x278bb4['t']&&(_0x24cfba['t']=_0x278bb4['t']);const _0x3cb871=(typeof(_0x46059c==null?void 0x0:_0x46059c['s'])=='string'?_0x49f3d4[_0x4946e6(0x1dc)]()[_0x4946e6(0x3f1)](_0x46059c==null?void 0x0:_0x46059c['s']):_0x46059c==null?void 0x0:_0x46059c['s'])||{},_0x4bad0e=_0x49f3d4['getStyles']()['get'](_0x278bb4['s']),_0x106ae7={..._0x4bad0e,..._0x3cb871};_0x4bad0e!=null&&_0x4bad0e['n']&&(_0x106ae7['n']=_0x4bad0e['n']);const _0x592460=_0x49f3d4['getStyles']()[_0x4946e6(0x33d)](_0x106ae7);return _0x24cfba['s']=_0x592460,(_0x278bb4[_0x4946e6(0x37b)]===_0x401889[_0x4946e6(0x3c4)][_0x4946e6(0x263)]||_0x278bb4[_0x4946e6(0x37b)]===_0x401889[_0x4946e6(0x3c4)][_0x4946e6(0x408)])&&(_0x24cfba[_0x4946e6(0x1e2)]={},_0x24cfba[_0x4946e6(0x1e2)][_0x4946e6(0x2a4)]=_0x2d1c06),_0x4be5fe(_0x24cfba);}}));}},_0x8a946e[_0x504d77(0x12a)]=_0x41b217([_0x4ac136(0x0,_0x7d31a[_0x504d77(0x2aa)](_0x399d28[_0x504d77(0x24c)])),_0x4ac136(0x1,_0x7d31a['Inject'](_0x8a946e[_0x504d77(0x325)]))],_0x8a946e['SheetsPivotTableService']);function _0x455cfd(_0x5c3519,_0x5b7755){const _0x5400df=_0x504d77;switch(_0x5b7755){case _0x401889[_0x5400df(0x266)][_0x5400df(0x374)]:return _0x5c3519['valueFields'];case _0x401889[_0x5400df(0x266)]['Filter']:return _0x5c3519['filterFields'];case _0x401889[_0x5400df(0x266)]['Row']:return _0x5c3519[_0x5400df(0x1e4)];case _0x401889[_0x5400df(0x266)][_0x5400df(0x1b9)]:return _0x5c3519[_0x5400df(0x396)];default:return[];}}function _0xb8e112(_0x584f20,_0x445dfe){const _0x5c49aa=_0x504d77;return _0x584f20[_0x5c49aa(0x1fe)][_0x445dfe]||_0x584f20['dimension'][_0x445dfe];}function _0x558aec(_0x406e77,_0x2baa19){const _0x5130f7=_0x504d77,{area:_0x5cddde,fieldJson:_0x5b08f8,index:_0x4244fe}=_0x2baa19;_0x5cddde===_0x401889['PivotTableFiledAreaEnum']['Value']?_0x406e77[_0x5130f7(0x1fe)][_0x5b08f8['id']]=_0x5b08f8:_0x406e77[_0x5130f7(0x15f)][_0x5b08f8['id']]=_0x5b08f8,_0x455cfd(_0x406e77,_0x5cddde)[_0x5130f7(0x12d)](_0x4244fe,0x0,_0x5b08f8['id']);}function _0x172fca(_0xf78ae7,_0x59a54a){const _0x12678c=_0x504d77,{area:_0x1a7712,fieldId:_0x7d0aac,index:_0xdd13d5}=_0x59a54a;_0x1a7712===_0x401889[_0x12678c(0x266)][_0x12678c(0x374)]?delete _0xf78ae7[_0x12678c(0x1fe)][_0x7d0aac]:delete _0xf78ae7[_0x12678c(0x15f)][_0x7d0aac],_0x455cfd(_0xf78ae7,_0x1a7712)[_0x12678c(0x12d)](_0xdd13d5,0x1);}function _0x1752b1(_0x5ac5de,_0x57032a){const _0x3f6b57=_0x504d77,{fieldId:_0x4eee86,name:_0x55fb21}=_0x57032a,_0x262354=_0xb8e112(_0x5ac5de,_0x4eee86);_0x262354&&(_0x262354[_0x3f6b57(0x118)]=_0x55fb21);}function _0x4d9a6d(_0x25056c,_0x4b992c){const _0x4a3cb6=_0x504d77,{fieldId:_0x33014d,collapse:_0x28add1,item:_0x2eb58e}=_0x4b992c;_0x2eb58e!==void 0x0?(_0x25056c[_0x4a3cb6(0x3e3)][_0x33014d]=_0x25056c[_0x4a3cb6(0x3e3)][_0x33014d]||{},_0x25056c[_0x4a3cb6(0x3e3)][_0x33014d][_0x2eb58e]=_0x28add1):_0x25056c[_0x4a3cb6(0x3e3)][_0x33014d]=_0x28add1;}function _0x413f21(_0x84f5c4,_0x307eb8){const _0x338677=_0x504d77,{fieldId:_0x5eea6a,format:_0x4bec87}=_0x307eb8,_0x45b808=_0xb8e112(_0x84f5c4,_0x5eea6a);_0x45b808&&(_0x45b808[_0x338677(0x2ac)]=_0x4bec87);}function _0x475f9e(_0x3b44de,_0x1a1f96){const _0x581b2b=_0x504d77,{fieldId:_0x293062,filterInfo:_0x350b71}=_0x1a1f96,_0x2bd965=_0xb8e112(_0x3b44de,_0x293062);_0x2bd965&&(_0x2bd965[_0x581b2b(0x2f1)]=_0x350b71);}function _0x3ff797(_0x4ff115,_0x4410a4){const _0x272455=_0x504d77,{fieldId:_0x4f8d24,filterInfo:_0x5dce00}=_0x4410a4,_0xe2118a=_0x4ff115['valueFilter'][_0x272455(0x3a7)](_0x266f01=>_0x266f01[_0x272455(0x308)]!==_0x4f8d24);_0x5dce00&&_0xe2118a['push']({'fieldId':_0x4f8d24,'filterInfo':_0x5dce00}),_0x4ff115[_0x272455(0x26e)]=_0xe2118a;}function _0x2feca7(_0x872d6c,_0x3d9c28){const _0x3d3f87=_0x504d77,{fieldId:_0x31ef52,subtotalType:_0x267544}=_0x3d9c28,_0x1de6ba=_0xb8e112(_0x872d6c,_0x31ef52);_0x1de6ba&&(_0x1de6ba[_0x3d3f87(0x385)]=_0x267544);}function _0x42e75c(_0x5e9eda,_0x440661){const _0x890510=_0x504d77,{fieldId:_0x27adcf,oldArea:_0x4e3ddc,area:_0x3c9019,oldIndex:_0x1ab3cb,index:_0x5ef4e3}=_0x440661,_0x127816=_0x4e3ddc!==_0x401889['PivotTableFiledAreaEnum'][_0x890510(0x374)]&&_0x3c9019===_0x401889[_0x890510(0x266)][_0x890510(0x374)],_0xc12a92=_0x4e3ddc===_0x401889[_0x890510(0x266)]['Value']&&_0x3c9019!==_0x401889[_0x890510(0x266)][_0x890510(0x374)];if(_0x127816||_0xc12a92){const _0x5a8636=_0xb8e112(_0x5e9eda,_0x27adcf);_0x5a8636&&(_0x127816?(delete _0x5e9eda[_0x890510(0x15f)][_0x27adcf],_0x5e9eda[_0x890510(0x1fe)][_0x27adcf]=_0x5a8636):(delete _0x5e9eda['measure'][_0x27adcf],_0x5e9eda[_0x890510(0x15f)][_0x27adcf]=_0x5a8636));}const _0x299d0e=_0x455cfd(_0x5e9eda,_0x4e3ddc),_0x2fb012=_0x455cfd(_0x5e9eda,_0x3c9019);_0x299d0e['splice'](_0x1ab3cb,0x1),_0x2fb012['splice'](_0x5ef4e3,0x0,_0x27adcf);}function _0x48a0a4(_0x1b5ba2,_0x4f396c){const _0x3c262b=_0x504d77,{valuePosition:_0x5f0f1d,index:_0x4532aa}=_0x4f396c;_0x1b5ba2[_0x3c262b(0x1f6)]=_0x5f0f1d,_0x1b5ba2[_0x3c262b(0x32a)]=_0x4532aa;}function _0x5cd593(_0x49eeeb,_0x27d951){const _0x5069c1=_0x504d77,{tableFieldId:_0xefc75d,sourceName:_0x287706,dataFieldId:_0x610625}=_0x27d951,_0xa3c582=_0xb8e112(_0x49eeeb,_0xefc75d);_0xa3c582&&(_0xa3c582['sourceName']=_0x287706,_0xa3c582[_0x5069c1(0x1f5)]=_0x610625);}function _0x556469(_0x442ca7,_0xe745d1){const _0x3edac2=_0x504d77,{fieldId:_0x5ed327,sortInfo:_0x1e5278}=_0xe745d1,_0x41cc50=_0xb8e112(_0x442ca7,_0x5ed327);_0x41cc50&&(_0x41cc50[_0x3edac2(0x3d5)]=_0x1e5278);}function _0x8eb9c5(_0x1a8729,_0x403920){const _0x4bfad5=_0x504d77,{options:_0x390c01}=_0x403920;_0x1a8729[_0x4bfad5(0x1f1)]={..._0x1a8729['options'],..._0x390c01};}const _0x482a02={'type':_0x7d31a['CommandType'][_0x504d77(0x341)],'id':_0x504d77(0x138),'handler'(_0x19f205,_0x28dd0b){const _0x2c7120=_0x504d77;if(!_0x28dd0b)return!0x1;if(!!_0x19f205[_0x2c7120(0x3f1)](_0x7d31a[_0x2c7120(0x13f)])['getConfig'](_0x540f5f))return!0x0;const _0x1e053a=_0x19f205['get'](_0x8a946e[_0x2c7120(0x3bd)]),{pivotTableId:_0x3dc960,fieldJson:_0x42db22,area:_0x36232f,index:_0x33aab4,unitId:_0x1a8279,subUnitId:_0x25995f}=_0x28dd0b,_0x3b128f=_0x1e053a[_0x2c7120(0x16e)](_0x3dc960);if(!_0x3b128f)return!0x1;let _0x3764cf;_0x36232f===_0x401889[_0x2c7120(0x266)][_0x2c7120(0x374)]?_0x3764cf=_0x401889[_0x2c7120(0x314)](_0x42db22):_0x3764cf=_0x401889[_0x2c7120(0x23d)](_0x42db22),_0x3b128f[_0x2c7120(0x279)](_0x3764cf,_0x36232f,_0x33aab4);const _0x4540ab=_0x1e053a[_0x2c7120(0x1a5)](_0x1a8279,_0x25995f,_0x3dc960);_0x558aec(_0x4540ab,_0x28dd0b);const _0x206905=_0x1e053a['getPivotTableConfig'](_0x1a8279,_0x25995f,_0x3dc960);return _0x1e053a[_0x2c7120(0x354)]({'unitId':_0x1a8279,'subUnitId':_0x25995f,'token':_0x3dc960,'type':_0x462181[_0x2c7120(0x223)],'pivotConfig':_0x206905}),!0x0;}},_0x5c7f11={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x2d2),'handler'(_0x4a67cd,_0x143566){const _0x2606ca=_0x504d77;if(!_0x143566)return!0x1;if(!!_0x4a67cd[_0x2606ca(0x3f1)](_0x7d31a[_0x2606ca(0x13f)])[_0x2606ca(0x2da)](_0x540f5f))return!0x0;const _0x5e856b=_0x4a67cd['get'](_0x8a946e[_0x2606ca(0x3bd)]),{pivotTableId:_0x41085d,fieldId:_0x42a199,unitId:_0x3e4129,subUnitId:_0x1c6318}=_0x143566,_0x4a7830=_0x5e856b[_0x2606ca(0x16e)](_0x41085d);if(!_0x4a7830)return!0x1;_0x4a7830[_0x2606ca(0x3bb)](_0x42a199);const _0x50e985=_0x5e856b['getPivotTableModelConfig'](_0x3e4129,_0x1c6318,_0x41085d);_0x172fca(_0x50e985,_0x143566);const _0x4b756a=_0x5e856b[_0x2606ca(0x2fb)](_0x3e4129,_0x1c6318,_0x41085d);return _0x5e856b[_0x2606ca(0x354)]({'unitId':_0x3e4129,'subUnitId':_0x1c6318,'token':_0x41085d,'type':_0x462181[_0x2606ca(0x223)],'pivotConfig':_0x4b756a}),!0x0;}},_0x2a1698={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x37e),'handler'(_0x1bba89,_0x4f3ebd){const _0x44c0cd=_0x504d77;if(!_0x4f3ebd)return!0x1;if(!!_0x1bba89['get'](_0x7d31a[_0x44c0cd(0x13f)])[_0x44c0cd(0x2da)](_0x540f5f))return!0x0;const _0x2993a2=_0x1bba89[_0x44c0cd(0x3f1)](_0x8a946e['SheetsPivotDataSourceModel']),{unitId:_0x201291,subUnitId:_0x114da8,pivotTableId:_0x36a788,fieldId:_0x2efa65,name:_0x543949}=_0x4f3ebd,_0x4ebde0=_0x2993a2[_0x44c0cd(0x16e)](_0x36a788);if(!_0x4ebde0)return!0x1;_0x4ebde0[_0x44c0cd(0x311)](_0x2efa65,_0x543949);const _0xeb9c28=_0x2993a2['getPivotTableModelConfig'](_0x201291,_0x114da8,_0x36a788);return _0x1752b1(_0xeb9c28,_0x4f3ebd),_0x2993a2[_0x44c0cd(0x354)]({'unitId':_0x201291,'subUnitId':_0x114da8,'token':_0x36a788,'type':_0x462181[_0x44c0cd(0x223)]}),!0x0;}},_0x4429d7={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':'sheet.mutation.set-pivot-collapse','handler'(_0xf6499a,_0x2126b1){const _0x2b4880=_0x504d77;if(!_0x2126b1)return!0x1;if(!!_0xf6499a[_0x2b4880(0x3f1)](_0x7d31a[_0x2b4880(0x13f)])['getConfig'](_0x540f5f))return!0x0;const _0x5eba4b=_0xf6499a[_0x2b4880(0x3f1)](_0x8a946e[_0x2b4880(0x3bd)]),{unitId:_0x4a81e6,subUnitId:_0x13e7c4,pivotTableId:_0x82d1c8,fieldId:_0x1edd76,collapse:_0x4f39f0,item:_0x1de97a}=_0x2126b1,_0x3003da=_0x5eba4b['getPivotTableInstance'](_0x82d1c8);if(!_0x3003da)return!0x1;_0x3003da[_0x2b4880(0x36d)](_0x1edd76,_0x4f39f0,_0x1de97a);const _0xe97dd9=_0x5eba4b[_0x2b4880(0x1a5)](_0x4a81e6,_0x13e7c4,_0x82d1c8);return _0x4d9a6d(_0xe97dd9,_0x2126b1),_0x5eba4b[_0x2b4880(0x354)]({'unitId':_0x4a81e6,'subUnitId':_0x13e7c4,'token':_0x82d1c8,'type':_0x462181[_0x2b4880(0x223)]}),!0x0;}},_0x5d3e68={'type':_0x7d31a[_0x504d77(0x265)]['MUTATION'],'id':_0x504d77(0x114),'handler'(_0x1cec87,_0x571efa){const _0x97891d=_0x504d77;if(!_0x571efa)return!0x1;if(!!_0x1cec87[_0x97891d(0x3f1)](_0x7d31a[_0x97891d(0x13f)])[_0x97891d(0x2da)](_0x540f5f))return!0x0;const _0x2ed751=_0x1cec87[_0x97891d(0x3f1)](_0x8a946e['SheetsPivotDataSourceModel']),{unitId:_0xef3b84,subUnitId:_0x1159f9,pivotTableId:_0x58aa7d,fieldId:_0x3a5d5f,format:_0x104980}=_0x571efa,_0x4bbd5b=_0x2ed751[_0x97891d(0x16e)](_0x58aa7d);if(!_0x4bbd5b)return!0x1;_0x4bbd5b[_0x97891d(0x322)](_0x3a5d5f,_0x104980);const _0x366c72=_0x2ed751[_0x97891d(0x1a5)](_0xef3b84,_0x1159f9,_0x58aa7d);return _0x413f21(_0x366c72,_0x571efa),_0x2ed751[_0x97891d(0x354)]({'unitId':_0xef3b84,'subUnitId':_0x1159f9,'token':_0x58aa7d,'type':_0x462181[_0x97891d(0x223)]}),!0x0;}},_0x5b23d1={'type':_0x7d31a[_0x504d77(0x265)]['MUTATION'],'id':'sheet.mutation.set-pivot-filter','handler'(_0x61d145,_0x208d7a){const _0x19673=_0x504d77;if(!_0x208d7a)return!0x1;if(!!_0x61d145['get'](_0x7d31a[_0x19673(0x13f)])['getConfig'](_0x540f5f))return!0x0;const _0x27ddc9=_0x61d145[_0x19673(0x3f1)](_0x8a946e[_0x19673(0x3bd)]),{unitId:_0x257ddd,subUnitId:_0x5229a2,pivotTableId:_0xffd6b6,fieldId:_0x36aef5,filterInfo:_0x294e44}=_0x208d7a,_0xa089c4=_0x27ddc9['getPivotTableInstance'](_0xffd6b6);if(!_0xa089c4)return!0x1;_0xa089c4['setLabelFilterInfo'](_0x36aef5,_0x294e44);const _0x1c9a6b=_0x27ddc9['getPivotTableModelConfig'](_0x257ddd,_0x5229a2,_0xffd6b6);return _0x475f9e(_0x1c9a6b,_0x208d7a),_0x27ddc9['addDirtyPivotTable']({'unitId':_0x257ddd,'subUnitId':_0x5229a2,'token':_0xffd6b6,'type':_0x462181[_0x19673(0x223)]}),!0x0;}},_0x546d5a={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x340),'handler'(_0x387b2b,_0x13f32a){const _0x3e9a86=_0x504d77;if(!_0x13f32a)return!0x1;if(!!_0x387b2b[_0x3e9a86(0x3f1)](_0x7d31a[_0x3e9a86(0x13f)])[_0x3e9a86(0x2da)](_0x540f5f))return!0x0;const _0x27cf40=_0x387b2b[_0x3e9a86(0x3f1)](_0x8a946e[_0x3e9a86(0x3bd)]),{unitId:_0xb8a392,subUnitId:_0x17235e,pivotTableId:_0x584a7b,options:_0x45bde0}=_0x13f32a,_0x4da9d8=_0x27cf40[_0x3e9a86(0x16e)](_0x584a7b);if(!_0x4da9d8)return!0x1;_0x4da9d8['setOptions'](_0x45bde0);const _0x2366b5=_0x27cf40[_0x3e9a86(0x1a5)](_0xb8a392,_0x17235e,_0x584a7b);return _0x8eb9c5(_0x2366b5,_0x13f32a),_0x27cf40[_0x3e9a86(0x354)]({'unitId':_0xb8a392,'subUnitId':_0x17235e,'token':_0x584a7b,'type':_0x462181[_0x3e9a86(0x223)]}),!0x0;}},_0x251ed6={'type':_0x7d31a[_0x504d77(0x265)]['MUTATION'],'id':_0x504d77(0x30f),'handler'(_0x14e4e0,_0x99e307){const _0x23ad64=_0x504d77;if(!_0x99e307)return!0x1;if(!!_0x14e4e0[_0x23ad64(0x3f1)](_0x7d31a['IConfigService'])[_0x23ad64(0x2da)](_0x540f5f))return!0x0;const _0x112ac1=_0x14e4e0['get'](_0x8a946e['SheetsPivotDataSourceModel']),{unitId:_0x2b5b06,subUnitId:_0x33e16a,pivotTableId:_0x2970e1,sortInfo:_0x4128b1,fieldId:_0x19d6d3}=_0x99e307,_0x30813d=_0x112ac1[_0x23ad64(0x16e)](_0x2970e1);if(!_0x30813d)return!0x1;_0x30813d[_0x23ad64(0x33c)](_0x19d6d3,_0x4128b1);const _0x2bf2f9=_0x112ac1[_0x23ad64(0x1a5)](_0x2b5b06,_0x33e16a,_0x2970e1);return _0x556469(_0x2bf2f9,_0x99e307),_0x112ac1['addDirtyPivotTable']({'unitId':_0x2b5b06,'subUnitId':_0x33e16a,'token':_0x2970e1,'type':_0x462181[_0x23ad64(0x223)]}),!0x0;}},_0x4d5100={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':'sheet.mutation.set-pivot-field-subtotal-type','handler'(_0x7d4c45,_0x2b2529){const _0x171936=_0x504d77;if(!_0x2b2529)return!0x1;if(!!_0x7d4c45[_0x171936(0x3f1)](_0x7d31a[_0x171936(0x13f)])[_0x171936(0x2da)](_0x540f5f))return!0x0;const _0x2f6027=_0x7d4c45[_0x171936(0x3f1)](_0x8a946e['SheetsPivotDataSourceModel']),{unitId:_0x32ef58,subUnitId:_0x324b48,pivotTableId:_0x1cae64,fieldId:_0x25105f,subtotalType:_0x54d50c}=_0x2b2529,_0x1c8dc1=_0x2f6027[_0x171936(0x16e)](_0x1cae64);if(!_0x1c8dc1)return!0x1;_0x1c8dc1[_0x171936(0x152)](_0x25105f,_0x54d50c);const _0x2ba425=_0x2f6027[_0x171936(0x1a5)](_0x32ef58,_0x324b48,_0x1cae64);return _0x2feca7(_0x2ba425,_0x2b2529),_0x2f6027['addDirtyPivotTable']({'unitId':_0x32ef58,'subUnitId':_0x324b48,'token':_0x1cae64,'type':_0x462181[_0x171936(0x223)]}),!0x0;}},_0x58f82c={'type':_0x7d31a[_0x504d77(0x265)]['MUTATION'],'id':_0x504d77(0x184),'handler'(_0x35eb05,_0x5d1807){const _0x32a19a=_0x504d77;if(!_0x5d1807)return!0x1;if(!!_0x35eb05[_0x32a19a(0x3f1)](_0x7d31a[_0x32a19a(0x13f)])[_0x32a19a(0x2da)](_0x540f5f))return!0x0;const _0x591eed=_0x35eb05['get'](_0x8a946e[_0x32a19a(0x3bd)]),{unitId:_0x56f213,subUnitId:_0x1cbd8a,pivotTableId:_0x55640a,fieldId:_0x1ba71f,filterInfo:_0x1e9b3b}=_0x5d1807,_0x28e401=_0x591eed[_0x32a19a(0x16e)](_0x55640a);if(!_0x28e401)return!0x1;_0x28e401[_0x32a19a(0x35d)](_0x1ba71f,_0x1e9b3b);const _0x4013c9=_0x591eed[_0x32a19a(0x1a5)](_0x56f213,_0x1cbd8a,_0x55640a);return _0x3ff797(_0x4013c9,_0x5d1807),_0x591eed['addDirtyPivotTable']({'unitId':_0x56f213,'subUnitId':_0x1cbd8a,'token':_0x55640a,'type':_0x462181[_0x32a19a(0x223)]}),!0x0;}},_0x2242e4={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x278),'handler'(_0x103727,_0xb32a08){const _0x3aaf38=_0x504d77;if(!_0xb32a08)return!0x1;if(!!_0x103727['get'](_0x7d31a[_0x3aaf38(0x13f)])['getConfig'](_0x540f5f))return!0x0;const _0x2c7ac1=_0x103727['get'](_0x8a946e[_0x3aaf38(0x3bd)]),{unitId:_0x502e6a,subUnitId:_0x190a2d,pivotTableId:_0x2af8e1,area:_0x4e7916,index:_0x3382b0,fieldId:_0x45b8b1}=_0xb32a08,_0x22d204=_0x2c7ac1[_0x3aaf38(0x16e)](_0x2af8e1);if(!_0x22d204)return!0x1;_0x22d204[_0x3aaf38(0x3e6)](_0x45b8b1,_0x4e7916,_0x3382b0);const _0x3b1089=_0x2c7ac1[_0x3aaf38(0x1a5)](_0x502e6a,_0x190a2d,_0x2af8e1);return _0x42e75c(_0x3b1089,_0xb32a08),_0x2c7ac1['addDirtyPivotTable']({'unitId':_0x502e6a,'subUnitId':_0x190a2d,'token':_0x2af8e1,'type':_0x462181[_0x3aaf38(0x223)]}),!0x0;}},_0x39d704={'type':_0x7d31a['CommandType'][_0x504d77(0x341)],'id':_0x504d77(0x42b),'handler'(_0x590641,_0xf2aa95){const _0x519bd2=_0x504d77;if(!_0xf2aa95)return!0x1;if(!!_0x590641['get'](_0x7d31a['IConfigService'])[_0x519bd2(0x2da)](_0x540f5f))return!0x0;const _0x10cb55=_0x590641[_0x519bd2(0x3f1)](_0x8a946e[_0x519bd2(0x3bd)]),{unitId:_0x189e2c,subUnitId:_0x2a1851,pivotTableId:_0x123485,sourceName:_0x214bf7,dataFieldId:_0x55e023,tableFieldId:_0x12c54e}=_0xf2aa95,_0x4054cd=_0x10cb55[_0x519bd2(0x16e)](_0x123485);if(!_0x4054cd)return!0x1;_0x4054cd[_0x519bd2(0x35e)](_0x12c54e,_0x214bf7,_0x55e023);const _0x2a1347=_0x10cb55['getPivotTableModelConfig'](_0x189e2c,_0x2a1851,_0x123485);return _0x5cd593(_0x2a1347,_0xf2aa95),_0x10cb55[_0x519bd2(0x354)]({'unitId':_0x189e2c,'subUnitId':_0x2a1851,'token':_0x123485,'type':_0x462181[_0x519bd2(0x223)]}),!0x0;}},_0x4ff238={'type':_0x7d31a[_0x504d77(0x265)]['MUTATION'],'id':_0x504d77(0x351),'handler'(_0x3b7181,_0x320e70){const _0x3802bf=_0x504d77;if(!_0x320e70)return!0x1;if(!!_0x3b7181[_0x3802bf(0x3f1)](_0x7d31a[_0x3802bf(0x13f)])['getConfig'](_0x540f5f))return!0x0;const _0x1ec709=_0x3b7181[_0x3802bf(0x3f1)](_0x8a946e['SheetsPivotDataSourceModel']),{unitId:_0x1543af,subUnitId:_0x5174df,pivotTableId:_0x31a93b,valuePosition:_0x58e875,index:_0x441853}=_0x320e70,_0x24bc51=_0x1ec709['getPivotTableInstance'](_0x31a93b);if(!_0x24bc51)return!0x1;_0x24bc51['updateValuePosition'](_0x58e875,_0x441853);const _0x41c273=_0x1ec709[_0x3802bf(0x1a5)](_0x1543af,_0x5174df,_0x31a93b);return _0x48a0a4(_0x41c273,_0x320e70),_0x1ec709[_0x3802bf(0x354)]({'unitId':_0x1543af,'subUnitId':_0x5174df,'token':_0x31a93b,'type':_0x462181[_0x3802bf(0x223)]}),!0x0;}};function _0x562b9d(_0x2d9b74,_0x3bdebc,_0x272cd7){const _0x815e96=_0x504d77,{pivotTableId:_0x5039cc,unitId:_0x12f8e1,subUnitId:_0x17c855}=_0x3bdebc,_0x2fa7fa=[],_0x54ce98=[];for(const _0x2f0c95 of _0x272cd7)switch(_0x2f0c95['type']){case _0x401889[_0x815e96(0x1eb)][_0x815e96(0x163)]:{const {fieldJson:_0x54d70f,area:_0x4f112d,index:_0x397b94}=_0x2f0c95,_0x7d7724={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldJson':_0x54d70f,'area':_0x4f112d,'index':_0x397b94},_0x483349={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x54d70f['id'],'area':_0x4f112d,'index':_0x397b94};_0x2fa7fa[_0x815e96(0x25f)]({'id':_0x482a02['id'],'params':_0x7d7724}),_0x54ce98[_0x815e96(0x20b)]({'id':_0x5c7f11['id'],'params':_0x483349});}break;case _0x401889['PivotTableChangeTypeEnum']['SetSubtotalType']:{const {fieldId:_0xffc76e,newSubtotalType:_0x2e107e,oldSubtotalType:_0x1540ad}=_0x2f0c95,_0x22674e={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0xffc76e,'subtotalType':_0x2e107e};_0x2fa7fa['push']({'id':_0x4d5100['id'],'params':_0x22674e});const _0x542dc6={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0xffc76e,'subtotalType':_0x1540ad};_0x54ce98[_0x815e96(0x20b)]({'id':_0x4d5100['id'],'params':_0x542dc6});}break;case _0x401889['PivotTableChangeTypeEnum']['RemoveField']:{const {fieldId:_0x1223f5,fieldJson:_0x5d2ec8,area:_0x1cc26e,index:_0x445754}=_0x2f0c95,_0xa18f30={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x1223f5,'index':_0x445754,'area':_0x1cc26e};_0x2fa7fa['push']({'id':_0x5c7f11['id'],'params':_0xa18f30});const _0x3f1c19={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldJson':_0x5d2ec8,'area':_0x1cc26e,'index':_0x445754};_0x54ce98[_0x815e96(0x20b)]({'id':_0x482a02['id'],'params':_0x3f1c19});}break;case _0x401889['PivotTableChangeTypeEnum'][_0x815e96(0x1b4)]:{const {fieldId:_0x4866ee,oldName:_0x8523dc,newName:_0x26a371}=_0x2f0c95,_0xcf4942={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x4866ee,'name':_0x26a371};_0x2fa7fa['push']({'id':_0x2a1698['id'],'params':_0xcf4942});const _0x4efe72={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x4866ee,'name':_0x8523dc};_0x54ce98['unshift']({'id':_0x2a1698['id'],'params':_0x4efe72});}break;case _0x401889['PivotTableChangeTypeEnum'][_0x815e96(0x289)]:{const {fieldId:_0x4d8ee3,oldFilterInfo:_0x16bdf3,newFilterInfo:_0x2250df}=_0x2f0c95,_0x3c71df={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x4d8ee3,'filterInfo':_0x2250df};_0x2fa7fa[_0x815e96(0x25f)]({'id':_0x5b23d1['id'],'params':_0x3c71df});const _0x3d2e93={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x4d8ee3,'filterInfo':_0x16bdf3};_0x54ce98['unshift']({'id':_0x5b23d1['id'],'params':_0x3d2e93});}break;case _0x401889['PivotTableChangeTypeEnum']['SetSortInfo']:{const {fieldId:_0x21f19a,oldSortInfo:_0x50f867,newSortInfo:_0x2e294e}=_0x2f0c95,_0x5cccd6={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x21f19a,'sortInfo':_0x2e294e};_0x2fa7fa[_0x815e96(0x25f)]({'id':_0x251ed6['id'],'params':_0x5cccd6});const _0x22878a={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x21f19a,'sortInfo':_0x50f867};_0x54ce98[_0x815e96(0x20b)]({'id':_0x251ed6['id'],'params':_0x22878a});}break;case _0x401889[_0x815e96(0x1eb)][_0x815e96(0x381)]:{const {oldOptions:_0x2ea998,newOptions:_0x5a0ca4}=_0x2f0c95,_0x1c3de4={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'options':_0x5a0ca4};_0x2fa7fa[_0x815e96(0x25f)]({'id':_0x546d5a['id'],'params':_0x1c3de4});const _0x457d6d={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'options':_0x2ea998};_0x54ce98[_0x815e96(0x20b)]({'id':_0x546d5a['id'],'params':_0x457d6d});}break;case _0x401889['PivotTableChangeTypeEnum'][_0x815e96(0x219)]:{const {oldArea:_0x5f4e92,newArea:_0x4c43fa,oldIndex:_0x44ae16,newIndex:_0x352db2,fieldId:_0x5580d7}=_0x2f0c95,_0x137cd7={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x5580d7,'area':_0x4c43fa,'index':_0x352db2,'oldArea':_0x5f4e92,'oldIndex':_0x44ae16};_0x2fa7fa[_0x815e96(0x25f)]({'id':_0x2242e4['id'],'params':_0x137cd7});const _0x54ed59={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x5580d7,'area':_0x5f4e92,'index':_0x44ae16,'oldArea':_0x4c43fa,'oldIndex':_0x352db2};_0x54ce98[_0x815e96(0x20b)]({'id':_0x2242e4['id'],'params':_0x54ed59});}break;case _0x401889[_0x815e96(0x1eb)][_0x815e96(0x119)]:{const {oldValuePosition:_0x4b9df0,newValuePosition:_0x102de6,oldIndex:_0x49d6a7,newIndex:_0x3835b3}=_0x2f0c95,_0x4dfb71={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'valuePosition':_0x102de6,'index':_0x3835b3};_0x2fa7fa[_0x815e96(0x25f)]({'id':_0x4ff238['id'],'params':_0x4dfb71});const _0x4c08bd={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'valuePosition':_0x4b9df0,'index':_0x49d6a7};_0x54ce98[_0x815e96(0x20b)]({'id':_0x4ff238['id'],'params':_0x4c08bd});}break;case _0x401889[_0x815e96(0x1eb)][_0x815e96(0x3a3)]:{const {fieldId:_0x5a156f,collapse:_0x22abca,item:_0x4a6712}=_0x2f0c95,_0x379f63={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x5a156f,'collapse':_0x22abca,'item':_0x4a6712};_0x2fa7fa['push']({'id':_0x4429d7['id'],'params':_0x379f63});const _0x40f54a={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x5a156f,'collapse':!_0x22abca,'item':_0x4a6712};_0x54ce98[_0x815e96(0x20b)]({'id':_0x4429d7['id'],'params':_0x40f54a});}break;case _0x401889[_0x815e96(0x1eb)][_0x815e96(0x3ce)]:{const {newFormat:_0x597a7c,oldFormat:_0x547198,fieldId:_0x4428d5}=_0x2f0c95,_0x31fbd3={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x4428d5,'format':_0x597a7c};_0x2fa7fa[_0x815e96(0x25f)]({'id':_0x5d3e68['id'],'params':_0x31fbd3});const _0x340586={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x4428d5,'format':_0x547198};_0x54ce98[_0x815e96(0x20b)]({'id':_0x5d3e68['id'],'params':_0x340586});}break;case _0x401889[_0x815e96(0x1eb)][_0x815e96(0x30c)]:{const {tableFieldId:_0xf7a9b1,oldSourceName:_0x38d8a9,newSourceName:_0x56851d,oldDataFieldId:_0x4b9774,newDataFieldId:_0x2247a7}=_0x2f0c95,_0x4ac0c6={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'tableFieldId':_0xf7a9b1,'sourceName':_0x56851d,'dataFieldId':_0x2247a7};_0x2fa7fa['push']({'id':_0x39d704['id'],'params':_0x4ac0c6});const _0x2549e7={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'tableFieldId':_0xf7a9b1,'sourceName':_0x38d8a9,'dataFieldId':_0x4b9774};_0x54ce98[_0x815e96(0x20b)]({'id':_0x39d704['id'],'params':_0x2549e7});}break;case _0x401889[_0x815e96(0x1eb)][_0x815e96(0x167)]:{const {fieldId:_0x5a694f,filterInfo:_0xc34b8b,oldFilterInfo:_0x4082c8}=_0x2f0c95,_0x59d948={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x5a694f,'filterInfo':_0xc34b8b};_0x2fa7fa[_0x815e96(0x25f)]({'id':_0x58f82c['id'],'params':_0x59d948});const _0xa0a46={'unitId':_0x12f8e1,'subUnitId':_0x17c855,'pivotTableId':_0x5039cc,'fieldId':_0x5a694f,'filterInfo':_0x4082c8};_0x54ce98[_0x815e96(0x20b)]({'id':_0x58f82c['id'],'params':_0xa0a46});}}return{'redos':_0x2fa7fa,'undos':_0x54ce98};}function _0x2a79aa(_0x400729,_0x5739f6){const _0x4a5349=_0x504d77;var _0x5a1e7b;const _0x3f4392=_0x400729[_0x4a5349(0x3f1)](_0x8a946e[_0x4a5349(0x12a)]),{cellInfo:_0x24bbb9,view:_0x402644,isEmpty:_0x6c8fd6}=_0x5739f6;return(_0x5a1e7b=_0x3f4392[_0x4a5349(0x2b8)][_0x4a5349(0x36b)](_0x32e6cf)(_0x3340b7,{'cellInfo':_0x24bbb9,'view':_0x402644,'isEmpty':_0x6c8fd6}))!=null?_0x5a1e7b:_0x3340b7;}const _0x4418c0=()=>typeof process<'u'&&process[_0x504d77(0x14a)]!=null&&process[_0x504d77(0x14a)][_0x504d77(0x22f)]!=null,_0x595299={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x162),'handler'(_0x641562,_0x1d4c31){const _0x31d091=_0x504d77;var _0x38e956;if(!_0x1d4c31)return!0x1;const _0x5278c4=_0x641562[_0x31d091(0x3f1)](_0x7d31a[_0x31d091(0x13f)]);if(!!_0x5278c4['getConfig'](_0x540f5f))return!0x0;const _0x264c07=_0x641562[_0x31d091(0x3f1)](_0x7d31a['IUniverInstanceService']),_0xe6be42=_0x641562['get'](_0x8a946e[_0x31d091(0x3bd)]),{pivotTableId:_0x2d1b24,pivotTableConfig:_0x535efe,collectionConfig:_0x4e4134,unitId:_0x39ba71,subUnitId:_0x25c8c0}=_0x1d4c31,{sourceRangeInfo:_0xa710f4,fieldsConfig:_0x25c710,targetCellInfo:_0x296d41}=_0x535efe,_0x1634c4=_0x264c07[_0x31d091(0x12e)](_0x39ba71);if(!_0x1634c4||!_0x1634c4[_0x31d091(0x1ce)](_0x25c8c0))return!0x1;if(!_0x4418c0()){let _0x13fa6d=0x0;_0x1634c4[_0x31d091(0x3b2)]()[_0x31d091(0x20a)](_0x3f1d0a=>{const _0xd210c=_0x31d091;var _0x1ed2f1,_0x57db06;_0x13fa6d+=(_0x57db06=(_0x1ed2f1=_0xe6be42[_0xd210c(0x2cd)](_0x39ba71,_0x3f1d0a['getSheetId']()))==null?void 0x0:_0x1ed2f1[_0xd210c(0x32d)])!=null?_0x57db06:0x0;});const _0x331cf5=(_0x38e956=_0x5278c4[_0x31d091(0x2da)](_0x11dac8[_0x31d091(0x321)]))!=null?_0x38e956:{},{ls:_0x30e788,pbk:_0x5148af}=_0x331cf5;if(!_0x5e2ded(_0x30e788,_0x5148af))throw new _0x7d31a[(_0x31d091(0x27c))](_0x31d091(0x20d));const _0x11ed52=_0x40e998(_0x474d8e,_0x30e788,_0x5148af)[_0x31d091(0x159)];if(_0x13fa6d>=_0x11ed52)throw new _0x7d31a['CustomCommandExecutionError'](_0x31d091(0x20d));}if(!_0x4e4134||!_0x25c710)return!0x1;const {collection:_0x251e6d,updateDataFieldList:_0x196d39}=_0xe6be42['addCollectionByJSON'](_0x2d1b24,_0x4e4134,_0xa710f4,_0x296d41);_0xe6be42['refreshData'](_0x251e6d,_0x196d39,_0xa710f4);const _0x3e2d6e=new _0x401889[(_0x31d091(0x2ae))](_0x251e6d,void 0x0,_0x2d1b24);_0x3e2d6e[_0x31d091(0x420)](_0x25c710);const _0x231eb3=JSON[_0x31d091(0x1e5)](JSON[_0x31d091(0x202)](_0x535efe));return _0xe6be42['addPivotTable'](_0x39ba71,_0x25c8c0,_0x2d1b24,_0x3e2d6e,_0x231eb3),_0xe6be42[_0x31d091(0x354)]({'unitId':_0x39ba71,'subUnitId':_0x25c8c0,'token':_0x2d1b24,'type':_0x462181[_0x31d091(0x2d4)],'pivotConfig':_0x231eb3}),!0x0;}},_0x4356ce={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x284),'handler'(_0x4e34c6,_0xb27cd7){const _0x507f68=_0x504d77;if(!_0xb27cd7)return!0x1;if(!!_0x4e34c6['get'](_0x7d31a[_0x507f68(0x13f)])['getConfig'](_0x540f5f))return!0x0;const {pivotTableId:_0x1464fc,unitId:_0x5ae14d,subUnitId:_0xf8d30d}=_0xb27cd7,_0x37b676=_0x4e34c6[_0x507f68(0x3f1)](_0x8a946e[_0x507f68(0x3bd)]);return _0x37b676[_0x507f68(0x2fb)](_0x5ae14d,_0xf8d30d,_0x1464fc)?(_0x37b676[_0x507f68(0x354)]({'unitId':_0x5ae14d,'subUnitId':_0xf8d30d,'token':_0x1464fc,'type':_0x462181['Delete']}),_0x37b676[_0x507f68(0x211)](_0x5ae14d,_0xf8d30d,_0x1464fc),!0x0):!0x1;}},_0x123019={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x129),'handler'(_0x8aa6fb,_0x1c0725){const _0x28397b=_0x504d77;if(!_0x1c0725)return!0x1;if(!!_0x8aa6fb[_0x28397b(0x3f1)](_0x7d31a['IConfigService'])[_0x28397b(0x2da)](_0x540f5f))return!0x0;const {pivotTableId:_0x36dd1e,targetCellPosition:_0x223eee,unitId:_0x542945,subUnitId:_0x17ad70}=_0x1c0725,_0x94b4d1=_0x8aa6fb[_0x28397b(0x3f1)](_0x8a946e[_0x28397b(0x3bd)]);if(!_0x94b4d1[_0x28397b(0x16e)](_0x1c0725[_0x28397b(0x19b)]))return!0x1;const _0x520ea9=_0x94b4d1[_0x28397b(0x1ab)](_0x36dd1e);if(!_0x520ea9)return!0x1;const _0x15ab0e=_0x94b4d1[_0x28397b(0x3f4)](_0x520ea9[_0x28397b(0x1bd)],_0x1c0725['pivotTableId']);if(!_0x15ab0e)return!0x1;const _0x3e6d44=_0x94b4d1['getPivotTableConfig'](_0x520ea9[_0x28397b(0x1bd)],_0x520ea9[_0x28397b(0x1aa)],_0x36dd1e);if(!_0x3e6d44)return!0x1;const _0x2ee8af=_0x7d31a[_0x28397b(0x1cf)][_0x28397b(0x11a)](_0x3e6d44);_0x2ee8af[_0x28397b(0x2b1)]={'unitId':_0x542945,'subUnitId':_0x17ad70,'row':_0x223eee[_0x28397b(0x196)],'col':_0x223eee[_0x28397b(0x2c0)]};const _0x371df7=_0x15ab0e[_0x28397b(0x2d3)]();if(_0x520ea9[_0x28397b(0x1aa)]===_0x17ad70&&_0x520ea9[_0x28397b(0x1bd)]===_0x542945)_0x94b4d1[_0x28397b(0x3b4)](_0x542945,_0x17ad70,_0x36dd1e,_0x2ee8af),_0x94b4d1['addDirtyPivotTable']({'unitId':_0x542945,'subUnitId':_0x17ad70,'token':_0x36dd1e,'type':_0x462181[_0x28397b(0x223)]});else{_0x94b4d1[_0x28397b(0x354)]({'unitId':_0x520ea9[_0x28397b(0x1bd)],'subUnitId':_0x520ea9[_0x28397b(0x1aa)],'token':_0x36dd1e,'type':_0x462181[_0x28397b(0x29a)]}),_0x94b4d1[_0x28397b(0x211)](_0x520ea9[_0x28397b(0x1bd)],_0x520ea9[_0x28397b(0x1aa)],_0x36dd1e);const _0x175e3b=_0x94b4d1[_0x28397b(0x430)](_0x36dd1e,_0x371df7,_0x3e6d44[_0x28397b(0x2ce)],_0x2ee8af[_0x28397b(0x2b1)]),_0x35aced=new _0x401889[(_0x28397b(0x2ae))](_0x175e3b['collection'],void 0x0,_0x36dd1e);_0x35aced['fromJSON'](_0x2ee8af['fieldsConfig']),_0x94b4d1['addPivotTable'](_0x542945,_0x17ad70,_0x36dd1e,_0x35aced,_0x2ee8af),_0x94b4d1['addDirtyPivotTable']({'unitId':_0x542945,'subUnitId':_0x17ad70,'token':_0x36dd1e,'type':_0x462181[_0x28397b(0x2d4)],'pivotConfig':_0x2ee8af});}return!0x0;}},_0x5434d={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x1ed),'handler'(_0x2b43d6,_0x3540e7){const _0x9986d4=_0x504d77;if(!_0x3540e7)return!0x1;if(!!_0x2b43d6['get'](_0x7d31a[_0x9986d4(0x13f)])[_0x9986d4(0x2da)](_0x540f5f))return!0x0;const _0xfc835=_0x2b43d6['get'](_0x8a946e[_0x9986d4(0x3bd)]),{pivotTableId:_0x19cb10,deleteIds:_0x171c62,collectionJSON:_0x2992a8,dataRangeInfo:_0x2c6d0e,unitId:_0x24c085,subUnitId:_0x2df568}=_0x3540e7,_0x4906b3=_0xfc835['getPivotTableInstance'](_0x19cb10),_0x5cb5b4=_0xfc835[_0x9986d4(0x2fb)](_0x24c085,_0x2df568,_0x19cb10);if(!_0x4906b3||!_0x5cb5b4)return!0x1;const {collection:_0x56bc9d,updateDataFieldList:_0x596697}=_0xfc835[_0x9986d4(0x430)](_0x19cb10,_0x2992a8,_0x2c6d0e,_0x5cb5b4['targetCellInfo']);_0xfc835[_0x9986d4(0x42e)](_0x56bc9d,_0x596697,_0x2c6d0e),_0x4906b3[_0x9986d4(0x324)](_0x56bc9d);for(const _0x27b8bc of _0x171c62)_0xfc835[_0x9986d4(0x1e3)](_0x2c6d0e[_0x9986d4(0x1bd)],_0x27b8bc);const _0x44e134=_0xfc835[_0x9986d4(0x2fb)](_0x24c085,_0x2df568,_0x19cb10);return _0x44e134[_0x9986d4(0x2ce)]=JSON[_0x9986d4(0x1e5)](JSON[_0x9986d4(0x202)](_0x2c6d0e)),_0xfc835['addDirtyPivotTable']({'unitId':_0x24c085,'subUnitId':_0x2df568,'token':_0x19cb10,'type':_0x462181[_0x9986d4(0x223)]}),!0x0;}},_0x24bb10={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'id':_0x504d77(0x2c8),'handler'(){return!0x0;}};var _0x5c2c16=Object[_0x504d77(0x353)],_0x1469c6=(_0x8b1798,_0x5be00f,_0x101e4,_0xd3486c)=>{for(var _0x2dc757=_0xd3486c>0x1?void 0x0:_0xd3486c?_0x5c2c16(_0x5be00f,_0x101e4):_0x5be00f,_0x498f37=_0x8b1798['length']-0x1,_0x47eac7;_0x498f37>=0x0;_0x498f37--)(_0x47eac7=_0x8b1798[_0x498f37])&&(_0x2dc757=_0x47eac7(_0x2dc757)||_0x2dc757);return _0x2dc757;},_0x50a059=(_0x47e4b5,_0x8fdf53)=>(_0x4864d0,_0x694f47)=>_0x8fdf53(_0x4864d0,_0x694f47,_0x47e4b5);_0x8a946e[_0x504d77(0x1c0)]=class extends _0x7d31a[_0x504d77(0x260)]{constructor(_0xae3d0f,_0xb633d8){const _0x202833=_0x504d77;super(),_0xa31747(this,'_requestResolvers',new Map()),(this[_0x202833(0x3d4)]=_0xae3d0f,this[_0x202833(0x2b2)]=_0xb633d8);}['handleAsyncResponse'](_0x31c138){const _0x2f00bf=_0x504d77,{version:_0x418079}=_0x31c138,_0x9c4f58=this[_0x2f00bf(0x14b)]['get'](_0x418079);_0x9c4f58&&(_0x9c4f58(_0x31c138),this[_0x2f00bf(0x14b)][_0x2f00bf(0x30e)](_0x418079));}[_0x504d77(0x26d)](_0x4919a5){return new Promise((_0x4c2390,_0x2dee0a)=>{const _0xb636aa=_0x4059,_0x18854b=this[_0xb636aa(0x28d)]();this[_0xb636aa(0x14b)]['set'](_0x18854b,_0x4c2390),this[_0xb636aa(0x2b2)]['executeCommand'](_0xafd79e['id'],{'version':_0x18854b,..._0x4919a5},{'onlyLocal':!0x0});});}[_0x504d77(0x28d)](){const _0x5d1775=_0x504d77;return Math[_0x5d1775(0x11e)]()[_0x5d1775(0x1c1)](0x24)[_0x5d1775(0x2fa)](0x2,0x10);}},_0x8a946e[_0x504d77(0x1c0)]=_0x1469c6([_0x50a059(0x0,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x34d)])),_0x50a059(0x1,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x214)]))],_0x8a946e['SheetsPivotRPCService']);const _0x887ba3={'id':_0x504d77(0x3db),'type':_0x7d31a[_0x504d77(0x265)]['MUTATION'],'handler':(_0x1aad5d,_0x23427e)=>{const _0x1bd944=_0x504d77;if(!_0x23427e)return!0x1;if(!!_0x1aad5d['get'](_0x7d31a['IConfigService'])[_0x1bd944(0x2da)](_0x540f5f))return!0x0;const {pivotTableId:_0x10fa13,fieldJSON:_0x2eeb2f,unitId:_0x4a5248,subUnitId:_0xec5bb0}=_0x23427e,_0x3e3ef2=_0x401889[_0x1bd944(0x3c3)]['fromJSON'](_0x2eeb2f);if(!_0x3e3ef2)return!0x1;const _0x3ff64f=_0x1aad5d[_0x1bd944(0x3f1)](_0x8a946e[_0x1bd944(0x3bd)]),_0x18e4b0=_0x3ff64f[_0x1bd944(0x2c7)](_0x4a5248),_0x31bf63=_0x18e4b0[_0x1bd944(0x3f4)](_0x10fa13);_0x18e4b0[_0x1bd944(0x2fe)](_0x3e3ef2),_0x31bf63[_0x1bd944(0x279)](_0x3e3ef2[_0x1bd944(0x347)](),_0x3e3ef2[_0x1bd944(0x2a6)]());const _0x1e2f40=_0x31bf63[_0x1bd944(0x1e7)](_0x3e3ef2[_0x1bd944(0x3fc)]());_0x1e2f40&&_0x3e3ef2[_0x1bd944(0x199)](_0x1e2f40);const _0x6a2141=_0x3ff64f[_0x1bd944(0x2fb)](_0x4a5248,_0xec5bb0,_0x10fa13);return _0x3ff64f[_0x1bd944(0x354)]({'unitId':_0x4a5248,'subUnitId':_0xec5bb0,'token':_0x10fa13,'type':_0x462181[_0x1bd944(0x223)],'pivotConfig':_0x6a2141}),!0x0;}},_0xa49793={'id':'sheet.mutation.remove-group-collection','type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'handler':(_0x51698a,_0x20f682)=>{const _0x2a55c0=_0x504d77;if(!_0x20f682)return!0x1;if(!!_0x51698a['get'](_0x7d31a[_0x2a55c0(0x13f)])[_0x2a55c0(0x2da)](_0x540f5f))return!0x0;const {pivotTableId:_0xc8d19f,dataFieldId:_0x32515f,unitId:_0xb109f4,subUnitId:_0x2a36c6}=_0x20f682,_0x516e6b=_0x51698a[_0x2a55c0(0x3f1)](_0x8a946e['SheetsPivotDataSourceModel']),_0x42e85f=_0x516e6b[_0x2a55c0(0x2c7)](_0xb109f4);_0x42e85f[_0x2a55c0(0x3f4)](_0xc8d19f)['deleteField'](_0x32515f);let _0x5bd757=!0x0;for(const _0x172803 in _0x42e85f['collections'])if(_0x42e85f['collections'][_0x172803][_0x2a55c0(0x375)]()['includes'](_0x32515f)){_0x5bd757=!0x1;break;}_0x5bd757&&_0x42e85f[_0x2a55c0(0x404)](_0x32515f);const _0x1c4bde=_0x516e6b[_0x2a55c0(0x2fb)](_0xb109f4,_0x2a36c6,_0xc8d19f);return _0x516e6b[_0x2a55c0(0x354)]({'unitId':_0xb109f4,'subUnitId':_0x2a36c6,'token':_0xc8d19f,'type':_0x462181[_0x2a55c0(0x223)],'pivotConfig':_0x1c4bde}),!0x0;}},_0x9cf1e3={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x139)],'id':_0x504d77(0x11d),async 'handler'(_0x1dd2aa,_0x56c2df){const _0x3b171e=_0x504d77;if(!_0x56c2df)return!0x1;const _0x261ea4=_0x1dd2aa[_0x3b171e(0x3f1)](_0x7d31a[_0x3b171e(0x214)]),_0x116bba=_0x1dd2aa[_0x3b171e(0x3f1)](_0x8a946e['SheetsPivotRPCService']),_0x16a29a=_0x1dd2aa['get'](_0x7d31a[_0x3b171e(0x1ae)]),{pivotTableId:_0x1497ab,dataFieldId:_0x1c535b,fieldArea:_0x76634,index:_0x2bc967,unitId:_0x1fb524,subUnitId:_0xc917f8}=_0x56c2df,_0x1650b8=(await _0x116bba[_0x3b171e(0x26d)]({'unitId':_0x1fb524,'subUnitId':_0xc917f8,'pivotTableId':_0x1497ab,'params':{'type':_0x281e70[_0x3b171e(0x1cd)],'addPivotField':{'dataFieldId':_0x1c535b,'fieldArea':_0x76634,'index':_0x2bc967}}}))[_0x3b171e(0x3cf)][_0x3b171e(0x1b6)];if(!_0x1650b8)return!0x1;const {view:_0x350da8,changesets:_0x9aaa2b,isEmpty:_0x1a73be,pivotTableConfig:_0x4a9cbd,shouldBeAddedGroupJSON:_0x21ac9}=_0x1650b8,_0x36e2b0=_0x4a9cbd[_0x3b171e(0x2b1)],_0x2f211e=new _0x401889[(_0x3b171e(0x34f))]();_0x2f211e['formJSON'](_0x350da8);const _0xa11ee3={'cellInfo':_0x36e2b0,'view':_0x2f211e,'isEmpty':_0x1a73be};if(!await _0x1dd2aa[_0x3b171e(0x3f1)](_0x8a946e[_0x3b171e(0x12a)])['asyncInterceptor'][_0x3b171e(0x144)](_0x4a899f)(!0x0,_0xa11ee3))return!0x1;const _0x1727e5=_0x438f78(_0x1dd2aa,_0x2f211e,_0x36e2b0,_0x1a73be),_0x31a73d=_0x2a79aa(_0x1dd2aa,_0xa11ee3),{undos:_0x5c358a,redos:_0x496281}=_0x562b9d(_0x261ea4,{'pivotTableId':_0x1497ab,'unitId':_0x1fb524,'subUnitId':_0xc917f8},_0x9aaa2b);return _0x21ac9&&(_0x496281[_0x3b171e(0x20b)]({'id':_0x887ba3['id'],'params':{'pivotTableId':_0x1497ab,'fieldJSON':_0x21ac9,'unitId':_0x1fb524,'subUnitId':_0xc917f8}}),_0x5c358a[_0x3b171e(0x25f)]({'id':_0xa49793['id'],'params':{'pivotTableId':_0x1497ab,'dataFieldId':_0x21ac9['id'],'unitId':_0x1fb524,'subUnitId':_0xc917f8}})),_0x7d31a[_0x3b171e(0x26f)]([..._0x1727e5[_0x3b171e(0x369)],..._0x31a73d['redos'],..._0x496281],_0x261ea4),_0x16a29a[_0x3b171e(0x36f)]({'unitID':_0x1fb524,'redoMutations':[..._0x1727e5[_0x3b171e(0x369)],..._0x31a73d[_0x3b171e(0x369)],..._0x496281],'undoMutations':[..._0x1727e5[_0x3b171e(0x372)],..._0x31a73d[_0x3b171e(0x372)],..._0x5c358a]}),!0x0;}},_0x5b6bd6={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x139)],'id':_0x504d77(0x174),async 'handler'(_0x46948e,_0x32470c){const _0xbb6a30=_0x504d77;if(!_0x32470c)return!0x1;const {sourceDataInfo:_0x51728d,pivotTableConfig:_0x203c77}=_0x32470c;if(!_0x51728d||!_0x203c77)return!0x1;const {unitId:_0x83b0d0,subUnitId:_0x3a1333,range:_0x29d255}=_0x51728d,_0x5cecdb=_0x46948e[_0xbb6a30(0x3f1)](_0x7d31a['IUniverInstanceService']),_0x5941c3=_0x46948e[_0xbb6a30(0x3f1)](_0x8a946e['SheetsPivotRPCService']),_0x77433=_0x46948e[_0xbb6a30(0x3f1)](_0x7d31a[_0xbb6a30(0x3e5)]),_0x40e75b=_0x46948e[_0xbb6a30(0x3f1)](_0x7d31a[_0xbb6a30(0x214)]),_0x53994f=_0x5cecdb[_0xbb6a30(0x12e)](_0x83b0d0);if(!_0x53994f)return!0x1;const _0x2172f2=_0x53994f[_0xbb6a30(0x1ce)](_0x3a1333);if(!_0x2172f2)return!0x1;const _0x131e1f=_0x401889['generateHexNumber'](0x8),_0x28ed89=_0x29d255||{'startRow':0x0,'startColumn':0x0,'endRow':_0x2172f2[_0xbb6a30(0x270)]()-0x1,'endColumn':_0x2172f2[_0xbb6a30(0x239)]()-0x1};_0x28ed89['rangeType']=_0x7d31a[_0xbb6a30(0x425)]['NORMAL'];const _0x45bade=(await _0x5941c3[_0xbb6a30(0x26d)]({'unitId':_0x83b0d0,'subUnitId':_0x3a1333,'pivotTableId':_0x131e1f,'params':{'type':_0x281e70[_0xbb6a30(0x2dd)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x83b0d0,'sheetName':_0x2172f2[_0xbb6a30(0x2a6)](),'subUnitId':_0x3a1333,'range':_0x28ed89},'pivotTableId':_0x131e1f,'pivotTableIndexConfig':_0x203c77}}}))[_0xbb6a30(0x3cf)][_0xbb6a30(0x326)];if(!_0x45bade)return!0x1;const {isEmpty:_0x1dfd6d,fieldsConfig:_0xbdb334,collectionConfig:_0x345ea3,changesets:_0x3cb8b0}=_0x45bade,_0x2758c4=_0x53994f[_0xbb6a30(0x3b2)]()[_0xbb6a30(0x423)],_0x3a7c3d=_0x7d31a[_0xbb6a30(0x1a6)]({'rowCount':_0x2172f2['getRowCount']()-0x1,'columnCount':_0x2172f2[_0xbb6a30(0x239)]()-0x1});_0x3a7c3d['id']=_0x7d31a[_0xbb6a30(0x403)](),_0x3a7c3d['name']=_0x53994f[_0xbb6a30(0x238)](''+_0x77433['t'](_0xbb6a30(0x254)));const _0x17dde4={'index':_0x2758c4,'sheet':_0x3a7c3d,'unitId':_0x83b0d0},{redos:_0x4cf1c8}=_0x562b9d(_0x40e75b,{'pivotTableId':_0x131e1f,'unitId':_0x83b0d0,'subUnitId':_0x3a7c3d['id']},_0x3cb8b0),_0x1411e4=[{'id':_0x399d28[_0xbb6a30(0x1c9)]['id'],'params':_0x17dde4},{'id':_0x595299['id'],'params':{'unitId':_0x83b0d0,'subUnitId':_0x3a7c3d['id'],'pivotTableId':_0x131e1f,'pivotTableConfig':{'isEmpty':_0x1dfd6d,'fieldsConfig':_0xbdb334,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x83b0d0,'subUnitId':_0x3a7c3d['id']},'sourceRangeInfo':{'subUnitId':_0x3a1333,'unitId':_0x83b0d0,'range':_0x28ed89,'sheetName':_0x2172f2[_0xbb6a30(0x2a6)]()}},'collectionConfig':_0x345ea3}},..._0x4cf1c8];return _0x7d31a[_0xbb6a30(0x26f)](_0x1411e4,_0x40e75b),!0x0;}},_0x43238e={'type':_0x7d31a[_0x504d77(0x265)]['COMMAND'],'id':_0x504d77(0x3a1),async 'handler'(_0x5bbe7e,_0x1409b7){const _0x375c7a=_0x504d77;var _0x5ea0f6,_0x395275;const _0x1d7a84=_0x5bbe7e['get'](_0x7d31a['ICommandService']),_0x32bd32=_0x5bbe7e['get'](_0x7d31a[_0x375c7a(0x253)]),_0x433609=_0x5bbe7e['get'](_0x7d31a[_0x375c7a(0x3e5)]),_0x3ee169=_0x5bbe7e[_0x375c7a(0x3f1)](_0x8a946e[_0x375c7a(0x1c0)]),_0x8c15bc=_0x5bbe7e[_0x375c7a(0x3f1)](_0x7d31a[_0x375c7a(0x1ae)]),_0x834e17=_0x5bbe7e[_0x375c7a(0x3f1)](_0x8a946e[_0x375c7a(0x241)]),_0x3d9ea7=_0x5bbe7e[_0x375c7a(0x3f1)](_0x7d31a[_0x375c7a(0x13f)]);if(!_0x1409b7)return!0x1;const {pivotTableConfig:_0x51b786,positionType:_0x3cb23d}=_0x1409b7,{targetCellInfo:_0x323f29,sourceRangeInfo:_0x4555c7}=_0x51b786,{unitId:_0x4dfa6a,subUnitId:_0x2ce56a}=_0x323f29,_0x56b40d=_0x32bd32[_0x375c7a(0x12e)](_0x4dfa6a);if(!_0x56b40d)return!0x1;let _0x8cf610=0x0;_0x56b40d['getSheets']()[_0x375c7a(0x20a)](_0x1d77ba=>{const _0x2efa8d=_0x375c7a;var _0xc9713b,_0x4e1cb4;_0x8cf610+=(_0x4e1cb4=(_0xc9713b=_0x834e17['getSubUnitPivotConfigs'](_0x4dfa6a,_0x1d77ba[_0x2efa8d(0x3ba)]()))==null?void 0x0:_0xc9713b[_0x2efa8d(0x32d)])!=null?_0x4e1cb4:0x0;});const _0x4f181a=(_0x5ea0f6=_0x3d9ea7['getConfig'](_0x11dac8[_0x375c7a(0x321)]))!=null?_0x5ea0f6:{},{ls:_0x4c38e0,pbk:_0x15339b}=_0x4f181a;if(!_0x5e2ded(_0x4c38e0,_0x15339b))return!0x1;const _0x3c92a8=_0x40e998(_0x474d8e,_0x4c38e0,_0x15339b)[_0x375c7a(0x159)];if(_0x8cf610>=_0x3c92a8)return!0x1;const _0x3879e=_0x1409b7[_0x375c7a(0x19b)]||_0x401889[_0x375c7a(0x370)](0x8),_0x265e2e=(await _0x3ee169['getPivotDisplayConfig']({'unitId':_0x4dfa6a,'subUnitId':_0x2ce56a,'pivotTableId':_0x3879e,'params':{'type':_0x281e70[_0x375c7a(0x272)],'addPivotTable':{'sourceRangeInfo':_0x4555c7,'pivotTableId':_0x3879e}}}))[_0x375c7a(0x3cf)][_0x375c7a(0x23e)];if(!_0x265e2e)return!0x1;const {view:_0x375b1a,isEmpty:_0x38271d,fieldsConfig:_0xddea2e,collectionConfig:_0x8e18b4}=_0x265e2e,_0x151eff=[],_0x470172=[];if(_0x3cb23d===_0x403e0d[_0x375c7a(0x1d0)]){const _0x1d9548=_0x56b40d[_0x375c7a(0x3b2)]()[_0x375c7a(0x423)],_0x5c4be1=_0x7d31a[_0x375c7a(0x1a6)]({});_0x5c4be1['id']=_0x51b786['targetCellInfo'][_0x375c7a(0x1aa)],_0x5c4be1['name']=(_0x395275=_0x51b786['targetCellInfo'][_0x375c7a(0x1fa)])!=null?_0x395275:_0x56b40d['generateNewSheetName'](''+_0x433609['t'](_0x375c7a(0x254)));const _0x466751={'index':_0x1d9548,'sheet':_0x5c4be1,'unitId':_0x4dfa6a},_0x27f61f=_0x399d28[_0x375c7a(0x399)](_0x5bbe7e,_0x466751);_0x151eff[_0x375c7a(0x25f)]({'id':_0x399d28['RemoveSheetMutation']['id'],'params':_0x27f61f}),_0x470172[_0x375c7a(0x25f)]({'id':_0x399d28[_0x375c7a(0x149)]['id'],'params':_0x466751});}else{if(!_0x56b40d['getSheetBySheetId'](_0x2ce56a))return!0x1;const _0x485680=_0x438f78(_0x5bbe7e,new _0x401889['PivotView'](),_0x323f29,!0x0);_0x470172['push'](..._0x485680[_0x375c7a(0x369)]),_0x151eff['push'](..._0x485680[_0x375c7a(0x372)]);const _0x37d83d={'cellInfo':_0x323f29,'view':_0x375b1a,'isEmpty':_0x38271d};if(!await _0x5bbe7e[_0x375c7a(0x3f1)](_0x8a946e[_0x375c7a(0x12a)])[_0x375c7a(0x2b5)][_0x375c7a(0x144)](_0x4a899f)(!0x0,_0x37d83d))return!0x1;const _0x100e7e=_0x2a79aa(_0x5bbe7e,_0x37d83d);_0x470172[_0x375c7a(0x25f)](..._0x100e7e[_0x375c7a(0x369)]),_0x151eff[_0x375c7a(0x25f)](..._0x100e7e[_0x375c7a(0x372)]);}return _0x470172['push']({'id':_0x595299['id'],'params':{'unitId':_0x323f29[_0x375c7a(0x1bd)],'subUnitId':_0x323f29['subUnitId'],'pivotTableId':_0x3879e,'pivotTableConfig':{'targetCellInfo':_0x323f29,'sourceRangeInfo':_0x4555c7,'fieldsConfig':_0xddea2e},'collectionConfig':_0x8e18b4}}),_0x151eff[_0x375c7a(0x20b)]({'id':_0x4356ce['id'],'params':{'unitId':_0x4dfa6a,'subUnitId':_0x2ce56a,'pivotTableId':_0x3879e}}),_0x7d31a[_0x375c7a(0x26f)](_0x470172,_0x1d7a84)&&_0x8c15bc[_0x375c7a(0x36f)]({'unitID':_0x4dfa6a,'undoMutations':_0x151eff,'redoMutations':_0x470172}),!0x0;}},_0x17592b={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x139)],'id':'sheet.command.move-pivot-field',async 'handler'(_0x34f5bd,_0x59c734){const _0x588a02=_0x504d77;if(!_0x59c734)return!0x1;const _0x54e26=_0x34f5bd[_0x588a02(0x3f1)](_0x7d31a[_0x588a02(0x214)]),_0x3660c8=_0x34f5bd['get'](_0x8a946e[_0x588a02(0x1c0)]),_0x18222b=_0x34f5bd['get'](_0x7d31a[_0x588a02(0x1ae)]),{pivotTableId:_0x1e0c3,fieldId:_0x5c3d78,area:_0x2b8e50,index:_0x5a8eb8,unitId:_0x5d3d59,subUnitId:_0xaf88d1}=_0x59c734,_0x14491f=(await _0x3660c8[_0x588a02(0x26d)]({'unitId':_0x5d3d59,'subUnitId':_0xaf88d1,'pivotTableId':_0x1e0c3,'params':{'type':_0x281e70['MovePivotField'],'movePivotField':{'fieldId':_0x5c3d78,'area':_0x2b8e50,'index':_0x5a8eb8}}}))[_0x588a02(0x3cf)]['movePivotField'];if(!_0x14491f)return!0x1;const {changesets:_0x2ef717,view:_0x58310a,isEmpty:_0x31d124,pivotTableConfig:_0x6e5b73}=_0x14491f,_0x16adce=_0x6e5b73[_0x588a02(0x2b1)],_0x82996e=new _0x401889['PivotView']();_0x82996e[_0x588a02(0x386)](_0x58310a);const _0x2f963f={'cellInfo':_0x16adce,'view':_0x82996e,'isEmpty':_0x31d124};if(!await _0x34f5bd[_0x588a02(0x3f1)](_0x8a946e[_0x588a02(0x12a)])['asyncInterceptor'][_0x588a02(0x144)](_0x4a899f)(!0x0,_0x2f963f))return!0x1;const _0x279a48=_0x438f78(_0x34f5bd,_0x82996e,_0x16adce,_0x31d124),_0x3328ac=_0x2a79aa(_0x34f5bd,_0x2f963f),{redos:_0x50cb8a,undos:_0x1ad454}=_0x562b9d(_0x54e26,{'pivotTableId':_0x1e0c3,'unitId':_0x5d3d59,'subUnitId':_0xaf88d1},_0x2ef717);return _0x7d31a[_0x588a02(0x26f)]([..._0x279a48[_0x588a02(0x369)],..._0x3328ac['redos'],..._0x50cb8a],_0x54e26),_0x18222b['pushUndoRedo']({'unitID':_0x5d3d59,'redoMutations':[..._0x279a48[_0x588a02(0x369)],..._0x3328ac[_0x588a02(0x369)],..._0x50cb8a],'undoMutations':[..._0x279a48[_0x588a02(0x372)],..._0x3328ac[_0x588a02(0x372)],..._0x1ad454]}),!0x0;}},_0x11c3db={'type':_0x7d31a['CommandType']['COMMAND'],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x3b8755,_0x4fcef2){const _0xff71f8=_0x504d77;var _0x371842;if(!_0x4fcef2)return!0x1;const _0x241bb4=_0x3b8755[_0xff71f8(0x3f1)](_0x7d31a[_0xff71f8(0x253)]),_0x5e4d35=_0x399d28[_0xff71f8(0x33a)](_0x241bb4);if(!_0x5e4d35)return!0x1;const {unitId:_0x2b84a7,subUnitId:_0x47d3f3,workbook:_0x318619}=_0x5e4d35,{row:_0xfc78ba,col:_0x4131a3}=_0x4fcef2,_0x3485e5=_0x3b8755['get'](_0x8a946e[_0xff71f8(0x325)]),_0x1d7944=_0x3485e5['getPivotTableIdByCell'](_0x2b84a7,_0x47d3f3,_0xfc78ba,_0x4131a3);if(!_0x1d7944)return!0x1;const _0x4aeebb=(_0x371842=_0x3485e5[_0xff71f8(0x22e)](_0x2b84a7,_0x47d3f3,_0x1d7944))==null?void 0x0:_0x371842[_0xff71f8(0x41f)];if(!_0x4aeebb)return!0x1;const _0x449c8e=_0x3b8755[_0xff71f8(0x3f1)](_0x8a946e['SheetsPivotTableConfigModel'])['getPivotTableConfig'](_0x2b84a7,_0x47d3f3,_0x1d7944);if(!_0x449c8e)return!0x1;const {rowInfo:_0x5d9781,colInfo:_0x5bb1aa}=_0x4aeebb,_0xe80311=_0x5d9781[_0xfc78ba][_0xff71f8(0x173)],_0x5a81a1=_0x5bb1aa[_0x4131a3][_0xff71f8(0x173)],_0x3e75e3=_0x5d9781[_0xfc78ba][_0xff71f8(0x3b1)],_0x18900e=_0x5bb1aa[_0x4131a3][_0xff71f8(0x3b1)],_0xc61c40=_0xe80311['concat'](_0x5a81a1),_0x5170db=_0x449c8e[_0xff71f8(0x197)][_0xff71f8(0x1e4)][_0xff71f8(0x209)](0x0,_0x3e75e3),_0x2dfdb1=_0x449c8e[_0xff71f8(0x197)][_0xff71f8(0x396)][_0xff71f8(0x209)](0x0,_0x18900e),_0x24452c=_0x5170db[_0xff71f8(0x388)](_0x2dfdb1),_0x15d796=_0xc61c40['map']((_0x47ece,_0x343c78)=>[_0x47ece,_0x24452c[_0x343c78]]),_0x4bb135=(await _0x3b8755[_0xff71f8(0x3f1)](_0x8a946e['SheetsPivotRPCService'])[_0xff71f8(0x26d)]({'unitId':_0x2b84a7,'subUnitId':_0x47d3f3,'pivotTableId':_0x1d7944,'params':{'type':_0x281e70[_0xff71f8(0x337)],'drillDown':{'tuple':_0x15d796}}}))['result'][_0xff71f8(0x2be)];if(!_0x4bb135)return!0x1;const {indexes:_0x5d6628,range:_0x29a154,sourceUnitId:_0x577fee,sourceSubUnitId:_0x4b7eab,formatMap:_0x359bc0}=_0x4bb135,{startRow:_0x56b066,endRow:_0x2a5461,startColumn:_0x5375f0,endColumn:_0x42d342}=_0x29a154,_0x32872a=new _0x7d31a[(_0xff71f8(0x2ed))](),_0x2dfdd1=_0x2a5461-_0x56b066,_0x3caa0d=_0x42d342-_0x5375f0,_0x424a83={},_0x1312a4=_0x399d28['getSheetCommandTarget'](_0x241bb4,{'unitId':_0x577fee,'subUnitId':_0x4b7eab});if(!_0x1312a4)return!0x1;const _0x655317=_0x2f9434[_0xff71f8(0x355)],_0x31766f=_0x2f9434[_0xff71f8(0x1de)],_0x5e3193=_0x2f9434['subTotalStyle'],_0x1b5110=_0x318619['getStyles']()[_0xff71f8(0x33d)](_0x655317),_0x2286c3=_0x318619[_0xff71f8(0x1dc)]()[_0xff71f8(0x33d)](_0x31766f),_0x4cffc5=_0x318619[_0xff71f8(0x1dc)]()[_0xff71f8(0x33d)](_0x5e3193),{worksheet:_0x368c78}=_0x1312a4;let _0x102e43=0x0;const _0x7d783a=0x1;_0x5d6628[_0xff71f8(0x20a)](_0xd473e1=>{const _0x1d8602=_0xff71f8;for(let _0x285fec=0x0;_0x285fec<=_0x42d342-_0x5375f0;_0x285fec++)_0x32872a[_0x1d8602(0x33d)](_0x102e43,_0x285fec,_0x368c78[_0x1d8602(0x268)](_0xd473e1+_0x29a154[_0x1d8602(0x2d5)]+_0x7d783a,_0x285fec));_0x102e43++;});for(let _0x4dbba6=_0x5375f0;_0x4dbba6<=_0x42d342;_0x4dbba6++){const _0x403572=_0x368c78[_0xff71f8(0x268)](_0x56b066,_0x4dbba6);_0x424a83[_0x56b066]||(_0x424a83[_0x56b066]={}),_0x424a83[_0x56b066][_0x4dbba6]={..._0x403572,'s':_0x1b5110};}let _0x3b5521=0x1;const _0x28bc6b={},_0x55ddbd={};_0x32872a[_0xff71f8(0x29f)]((_0x1d02fd,_0x86ce75)=>{const _0x37d13e=_0xff71f8;_0x86ce75[_0x37d13e(0x20a)](_0x35a5a8=>{const _0xd77953=_0x37d13e,_0x3766c7=_0x32872a[_0xd77953(0x3ee)](_0x1d02fd,_0x35a5a8);if(_0x424a83[_0x3b5521]||(_0x424a83[_0x3b5521]={}),_0x424a83[_0x3b5521][_0x35a5a8]={..._0x3766c7,'s':_0x3b5521%0x2===0x0?_0x4cffc5:_0x2286c3},_0x359bc0[_0x35a5a8]&&_0x1d02fd>=0x0){const _0x47a01d=_0x3b5521%0x2===0x0;let _0x4bea69=_0x47a01d?_0x55ddbd[_0x35a5a8]:_0x28bc6b[_0x35a5a8];_0x4bea69||(_0x4bea69=_0x318619[_0xd77953(0x1dc)]()[_0xd77953(0x33d)]({..._0x47a01d?_0x5e3193:_0x31766f,'n':{'pattern':_0x359bc0[_0x35a5a8]}}),_0x47a01d?_0x55ddbd[_0x35a5a8]=_0x4bea69:_0x28bc6b[_0x35a5a8]=_0x4bea69),_0x424a83[_0x3b5521][_0x35a5a8]['s']=_0x4bea69;}}),_0x3b5521++;});const _0x1d12d7=new _0x7d31a[(_0xff71f8(0x2ed))](_0x424a83),_0x8b72d1={};_0x1d12d7['forValue']((_0x5e3794,_0x3e749d,_0x240614)=>{_0x8b72d1[_0x5e3794]||(_0x8b72d1[_0x5e3794]={}),_0x8b72d1[_0x5e3794][_0x3e749d]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x23c0ab=[],_0x546361=[],_0x2c280a=_0x318619['getSheets']()[_0xff71f8(0x423)],_0x177071=_0x7d31a['mergeWorksheetSnapshotWithDefault']({'rowCount':Math[_0xff71f8(0x262)](_0x7d31a[_0xff71f8(0x29d)],_0x2dfdd1+0xa),'columnCount':Math[_0xff71f8(0x262)](_0x7d31a['DEFAULT_WORKSHEET_COLUMN_COUNT'],_0x3caa0d+0x5)}),_0x2367a8=_0x3b8755[_0xff71f8(0x3f1)](_0x7d31a[_0xff71f8(0x3e5)]);_0x177071['id']=_0x7d31a[_0xff71f8(0x403)](),_0x177071[_0xff71f8(0x18b)]=_0x318619['generateNewSheetName'](''+_0x2367a8['t']('sheets.tabs.sheet'));const _0x2599dd={'index':_0x2c280a,'sheet':_0x177071,'unitId':_0x2b84a7},_0x3d21a1=_0x399d28[_0xff71f8(0x399)](_0x3b8755,_0x2599dd);_0x546361[_0xff71f8(0x25f)]({'id':_0x399d28[_0xff71f8(0x149)]['id'],'params':_0x2599dd}),_0x23c0ab[_0xff71f8(0x25f)]({'id':_0x399d28[_0xff71f8(0x185)]['id'],'params':_0x3d21a1}),_0x546361[_0xff71f8(0x25f)]({'id':_0x399d28[_0xff71f8(0x3e2)]['id'],'params':{'unitId':_0x2b84a7,'subUnitId':_0x177071['id'],'cellValue':_0x424a83}}),_0x23c0ab['unshift']({'id':_0x399d28[_0xff71f8(0x3e2)]['id'],'params':{'unitId':_0x2b84a7,'subUnitId':_0x177071['id'],'cellValue':_0x8b72d1}});const _0x4f681a={'startRow':0x0,'startColumn':0x0,'endRow':_0x3b5521-0x1,'endColumn':_0x42d342};_0x546361[_0xff71f8(0x25f)]({'id':_0x2a5fd6[_0xff71f8(0x1f2)]['id'],'params':{'unitId':_0x2b84a7,'subUnitId':_0x177071['id'],'range':_0x4f681a}}),_0x23c0ab['unshift']({'id':_0x2a5fd6[_0xff71f8(0x42c)]['id'],'params':{'unitId':_0x2b84a7,'subUnitId':_0x177071['id']}});const _0x3bd825=_0x3b8755['get'](_0x7d31a[_0xff71f8(0x214)]);return _0x7d31a[_0xff71f8(0x26f)](_0x546361,_0x3bd825)&&_0x3b8755[_0xff71f8(0x3f1)](_0x7d31a[_0xff71f8(0x1ae)])['pushUndoRedo']({'unitID':_0x2b84a7,'undoMutations':_0x23c0ab,'redoMutations':_0x546361}),!0x0;}},_0x1bd048={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x139)],'id':_0x504d77(0x299),async 'handler'(_0x453e5c,_0x11c4b3){const _0x3dc015=_0x504d77;if(!_0x11c4b3)return!0x1;const _0x13ce04=_0x453e5c[_0x3dc015(0x3f1)](_0x7d31a['ICommandService']),_0x4da054=_0x453e5c[_0x3dc015(0x3f1)](_0x8a946e['SheetsPivotRPCService']),_0x37c92b=_0x453e5c[_0x3dc015(0x3f1)](_0x7d31a[_0x3dc015(0x1ae)]),{pivotTableId:_0x52f777,fieldIds:_0x544ce1,unitId:_0x1769f2,subUnitId:_0x3b9aa5}=_0x11c4b3,_0x1cc19a=(await _0x4da054[_0x3dc015(0x26d)]({'unitId':_0x1769f2,'subUnitId':_0x3b9aa5,'pivotTableId':_0x52f777,'params':{'type':_0x281e70[_0x3dc015(0x287)],'removePivotField':{'fieldIds':_0x544ce1}}}))[_0x3dc015(0x3cf)]['removePivotField'];if(!_0x1cc19a)return!0x1;const {view:_0x4cf97f,changesets:_0x5aeabb,isEmpty:_0xc1b1e4,pivotTableConfig:_0x5584dd}=_0x1cc19a,_0x34fbe2=_0x5584dd[_0x3dc015(0x2b1)],_0x5c0f17=new _0x401889[(_0x3dc015(0x34f))]();_0x5c0f17[_0x3dc015(0x386)](_0x4cf97f);const _0x33de0d={'cellInfo':_0x34fbe2,'view':_0x5c0f17,'isEmpty':_0xc1b1e4};if(!await _0x453e5c[_0x3dc015(0x3f1)](_0x8a946e['SheetsPivotTableService'])[_0x3dc015(0x2b5)][_0x3dc015(0x144)](_0x4a899f)(!0x0,_0x33de0d))return!0x1;const _0x190b5e=_0x438f78(_0x453e5c,_0x5c0f17,_0x34fbe2,_0xc1b1e4),_0x46aa44=_0x2a79aa(_0x453e5c,_0x33de0d),{redos:_0x21c0d3,undos:_0x20953b}=_0x562b9d(_0x13ce04,{'pivotTableId':_0x52f777,'unitId':_0x1769f2,'subUnitId':_0x3b9aa5},_0x5aeabb);return _0x7d31a[_0x3dc015(0x26f)]([..._0x190b5e[_0x3dc015(0x369)],..._0x46aa44[_0x3dc015(0x369)],..._0x21c0d3],_0x13ce04),_0x37c92b[_0x3dc015(0x36f)]({'unitID':_0x1769f2,'redoMutations':[..._0x190b5e['redos'],..._0x46aa44['redos'],..._0x21c0d3],'undoMutations':[..._0x190b5e[_0x3dc015(0x372)],..._0x46aa44[_0x3dc015(0x372)],..._0x20953b]}),!0x0;}},_0x22cd17={'type':_0x7d31a['CommandType'][_0x504d77(0x139)],'id':_0x504d77(0x191),async 'handler'(_0x274d2c,_0x2abdc1){const _0x1950ba=_0x504d77;var _0x2021b3;const _0x5c3cf7=_0x274d2c[_0x1950ba(0x3f1)](_0x7d31a[_0x1950ba(0x214)]),_0x538e2b=_0x274d2c[_0x1950ba(0x3f1)](_0x8a946e[_0x1950ba(0x1c0)]),_0x49c0ba=_0x274d2c[_0x1950ba(0x3f1)](_0x8a946e['SheetsPivotTableAdaptorModel']),_0x5bf369=_0x274d2c[_0x1950ba(0x3f1)](_0x7d31a[_0x1950ba(0x253)]),_0x444c82=_0x274d2c['get'](_0x7d31a[_0x1950ba(0x1ae)]);if(!_0x2abdc1)return!0x1;const {unitId:_0x590788,subUnitId:_0x22d08c,row:_0x28ab65,col:_0x53d62c,collapse:_0x19d10a}=_0x2abdc1,_0x522c3e=_0x5bf369[_0x1950ba(0x12e)](_0x590788);if(!_0x522c3e||!_0x522c3e[_0x1950ba(0x1ce)](_0x22d08c))return!0x1;const _0x2b8f91=_0x49c0ba[_0x1950ba(0x1c5)](_0x590788,_0x22d08c,_0x28ab65,_0x53d62c);if(!_0x2b8f91)return!0x1;const _0x3580d4=_0x49c0ba[_0x1950ba(0x22e)](_0x590788,_0x22d08c,_0x2b8f91);if(!_0x3580d4)return!0x1;const _0x17e6da=_0x7d31a[_0x1950ba(0x364)](_0x28ab65,_0x53d62c),{rangesInfo:_0x18036e,areaInfo:_0x3aeb0,headerMap:_0x3a8b3f}=_0x3580d4;if(!_0x18036e||!_0x3aeb0||!_0x3a8b3f)return!0x1;const _0x2b5a86=Object[_0x1950ba(0x38c)](_0x18036e)[_0x1950ba(0x3a2)](_0x139ce3=>_0x18036e[_0x139ce3][_0x1950ba(0x35b)](_0x185363=>_0x7d31a['Rectangle'][_0x1950ba(0x2a7)](_0x185363,_0x17e6da)));let _0x369420;_0x2b5a86===_0x1950ba(0x29b)?_0x369420=_0x3a8b3f[_0x1950ba(0x335)][_0x53d62c]:_0x2b5a86===_0x1950ba(0x400)&&(_0x369420=_0x3a8b3f[_0x1950ba(0x29e)][_0x28ab65]);const _0x2ad99b=_0x369420==null?void 0x0:_0x369420['tableFieldId'],_0x4f00eb=(_0x2021b3=_0x49c0ba[_0x1950ba(0x346)](_0x590788,_0x22d08c,_0x28ab65,_0x53d62c))==null?void 0x0:_0x2021b3['v'];if(_0x4f00eb==null||!_0x2b8f91||!_0x2ad99b)return!0x1;const _0x33c236=await _0x538e2b[_0x1950ba(0x26d)]({'unitId':_0x590788,'subUnitId':_0x22d08c,'pivotTableId':_0x2b8f91,'params':{'type':_0x281e70[_0x1950ba(0x3b7)],'setPivotCollapse':{'tableFieldId':_0x2ad99b,'collapse':_0x19d10a,'item':_0x4f00eb}}}),_0x5e0f29=_0x33c236==null?void 0x0:_0x33c236['result']['setPivotCollapse'];if(!_0x5e0f29)return!0x1;const {view:_0x45d757,pivotTableConfig:_0x4edc58,isEmpty:_0x4fe1a2,changesets:_0x70c200}=_0x5e0f29,_0x24e737=new _0x401889[(_0x1950ba(0x34f))]();_0x24e737[_0x1950ba(0x386)](_0x45d757);const _0x2dd12c=_0x4edc58[_0x1950ba(0x2b1)],_0x3603a1={'cellInfo':_0x2dd12c,'view':_0x24e737,'isEmpty':_0x4fe1a2};if(!await _0x274d2c[_0x1950ba(0x3f1)](_0x8a946e[_0x1950ba(0x12a)])['asyncInterceptor'][_0x1950ba(0x144)](_0x4a899f)(!0x0,_0x3603a1))return!0x1;const _0x3925ed=_0x438f78(_0x274d2c,_0x24e737,_0x2dd12c,_0x4fe1a2),_0x311512=_0x2a79aa(_0x274d2c,_0x3603a1),{redos:_0x1919a3,undos:_0x3e73d3}=_0x562b9d(_0x5c3cf7,{'pivotTableId':_0x2b8f91,'unitId':_0x590788,'subUnitId':_0x22d08c},_0x70c200);return _0x7d31a[_0x1950ba(0x26f)]([..._0x3925ed[_0x1950ba(0x369)],..._0x311512[_0x1950ba(0x369)],..._0x1919a3],_0x5c3cf7),_0x444c82['pushUndoRedo']({'unitID':_0x590788,'redoMutations':[..._0x3925ed['redos'],..._0x311512[_0x1950ba(0x369)],..._0x1919a3],'undoMutations':[..._0x3925ed['undos'],..._0x311512[_0x1950ba(0x372)],..._0x3e73d3]}),!0x0;}},_0x2b3cc7={'type':_0x7d31a[_0x504d77(0x265)]['COMMAND'],'id':_0x504d77(0x37a),async 'handler'(_0x3c466d,_0xfa3489){const _0x5ec295=_0x504d77;if(!_0xfa3489)return!0x1;const _0x58e70a=_0x3c466d[_0x5ec295(0x3f1)](_0x7d31a['ICommandService']),{pivotTableId:_0x57ec0b,tableFieldId:_0x1f0a47,items:_0x3828ee,unitId:_0x51453b,subUnitId:_0x4ac88a,isAll:_0x2cc68e}=_0xfa3489,_0x2cadfd=_0x3c466d[_0x5ec295(0x3f1)](_0x8a946e[_0x5ec295(0x1c0)]),_0x1939d9=_0x3c466d[_0x5ec295(0x3f1)](_0x7d31a[_0x5ec295(0x1ae)]),_0x428c01=(await _0x2cadfd[_0x5ec295(0x26d)]({'unitId':_0x51453b,'subUnitId':_0x4ac88a,'pivotTableId':_0x57ec0b,'params':{'type':_0x281e70[_0x5ec295(0x2e0)],'setPivotFilter':{'tableFieldId':_0x1f0a47,'items':_0x3828ee,'isAll':_0x2cc68e}}}))[_0x5ec295(0x3cf)][_0x5ec295(0x3c5)];if(!_0x428c01)return!0x1;const {changesets:_0x4b1d55,pivotTableConfig:_0x1d1335,isEmpty:_0x1748f4,view:_0x181e38}=_0x428c01,_0x27ff4d=_0x1d1335[_0x5ec295(0x2b1)],_0x5abebf=new _0x401889[(_0x5ec295(0x34f))]();_0x5abebf['formJSON'](_0x181e38);const _0x1ce6d8={'cellInfo':_0x27ff4d,'view':_0x5abebf,'isEmpty':_0x1748f4};if(!await _0x3c466d[_0x5ec295(0x3f1)](_0x8a946e[_0x5ec295(0x12a)])[_0x5ec295(0x2b5)][_0x5ec295(0x144)](_0x4a899f)(!0x0,_0x1ce6d8))return!0x1;const _0x325380=_0x438f78(_0x3c466d,_0x5abebf,_0x27ff4d,_0x1748f4),_0x5bb481=_0x2a79aa(_0x3c466d,_0x1ce6d8),{undos:_0x12b935,redos:_0x4a500d}=_0x562b9d(_0x58e70a,{'pivotTableId':_0x57ec0b,'unitId':_0x51453b,'subUnitId':_0x4ac88a},_0x4b1d55);return _0x7d31a['sequenceExecute']([..._0x325380['redos'],..._0x5bb481[_0x5ec295(0x369)],..._0x4a500d],_0x58e70a),_0x1939d9['pushUndoRedo']({'unitID':_0x51453b,'redoMutations':[..._0x325380['redos'],..._0x5bb481['redos'],..._0x4a500d],'undoMutations':[..._0x325380[_0x5ec295(0x372)],..._0x5bb481[_0x5ec295(0x372)],..._0x12b935]}),!0x0;}},_0x1f1030={'type':_0x7d31a['CommandType']['COMMAND'],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x2a1a98,_0x935f6b){const _0x139186=_0x504d77;if(!_0x935f6b)return!0x1;const _0x35f864=_0x2a1a98[_0x139186(0x3f1)](_0x7d31a[_0x139186(0x214)]),_0x3fd6fd=_0x2a1a98[_0x139186(0x3f1)](_0x7d31a[_0x139186(0x1ae)]),_0x2c11b7=_0x2a1a98[_0x139186(0x3f1)](_0x8a946e['SheetsPivotRPCService']),{info:_0x309ee4,tableFieldId:_0x3f87cb,pivotTableId:_0x562ae8,unitId:_0x177c0b,subUnitId:_0x36bba0}=_0x935f6b,_0x5a3993=(await _0x2c11b7[_0x139186(0x26d)]({'unitId':_0x177c0b,'subUnitId':_0x36bba0,'pivotTableId':_0x562ae8,'params':{'type':_0x281e70[_0x139186(0x282)],'setPivotSort':{'tableFieldId':_0x3f87cb,'info':_0x309ee4}}}))['result']['setPivotSort'];if(!_0x5a3993)return!0x1;const {changesets:_0x1bf905}=_0x5a3993,{redos:_0x217e55,undos:_0x17ceb0}=_0x562b9d(_0x35f864,{'pivotTableId':_0x562ae8,'unitId':_0x177c0b,'subUnitId':_0x36bba0},_0x1bf905);return _0x7d31a[_0x139186(0x26f)](_0x217e55,_0x35f864),_0x3fd6fd['pushUndoRedo']({'unitID':_0x177c0b,'redoMutations':_0x217e55,'undoMutations':_0x17ceb0}),!0x0;}},_0x229a96={'type':_0x7d31a['CommandType']['COMMAND'],'id':_0x504d77(0x25a),async 'handler'(_0x1b6e75,_0x1a1931){const _0x4f310a=_0x504d77;if(!_0x1a1931)return!0x1;const _0x1460a2=_0x1b6e75[_0x4f310a(0x3f1)](_0x7d31a[_0x4f310a(0x214)]),_0xde569e=_0x1b6e75['get'](_0x7d31a['IUndoRedoService']),_0x318b33=_0x1b6e75[_0x4f310a(0x3f1)](_0x8a946e['SheetsPivotRPCService']),{displayName:_0x24481f,subtotalType:_0x451dbf,format:_0x390c2a,tableFieldId:_0x3b6462,pivotTableId:_0x5005a3,unitId:_0x122eec,subUnitId:_0x2eb403}=_0x1a1931,_0x18eb92=(await _0x318b33['getPivotDisplayConfig']({'unitId':_0x122eec,'subUnitId':_0x2eb403,'pivotTableId':_0x5005a3,'params':{'type':_0x281e70[_0x4f310a(0x20f)],'setPivotSetting':{'tableFieldId':_0x3b6462,'displayName':_0x24481f,'subtotalType':_0x451dbf,'format':_0x390c2a}}}))[_0x4f310a(0x3cf)]['setPivotSetting'];if(!_0x18eb92)return!0x1;const {changesets:_0x275476,view:_0x1e0782,pivotTableConfig:_0x518b5f,isEmpty:_0x502167}=_0x18eb92,_0x2ca704=_0x518b5f['targetCellInfo'],_0x11191d=new _0x401889[(_0x4f310a(0x34f))]();_0x11191d['formJSON'](_0x1e0782);const _0x50684b={'cellInfo':_0x2ca704,'view':_0x11191d,'isEmpty':_0x502167};if(!await _0x1b6e75[_0x4f310a(0x3f1)](_0x8a946e[_0x4f310a(0x12a)])[_0x4f310a(0x2b5)][_0x4f310a(0x144)](_0x4a899f)(!0x0,_0x50684b))return!0x1;const _0x4114ba=_0x438f78(_0x1b6e75,_0x11191d,_0x2ca704,_0x502167),_0x410755=_0x2a79aa(_0x1b6e75,_0x50684b),{undos:_0xb70583,redos:_0x50a51e}=_0x562b9d(_0x1460a2,{'pivotTableId':_0x5005a3,'unitId':_0x122eec,'subUnitId':_0x2eb403},_0x275476);return _0x7d31a[_0x4f310a(0x26f)]([..._0x4114ba[_0x4f310a(0x369)],..._0x410755[_0x4f310a(0x369)],..._0x50a51e],_0x1460a2),_0xde569e[_0x4f310a(0x36f)]({'unitID':_0x122eec,'redoMutations':[..._0x4114ba['redos'],..._0x410755[_0x4f310a(0x369)],..._0x50a51e],'undoMutations':[..._0x4114ba[_0x4f310a(0x372)],..._0x410755[_0x4f310a(0x372)],..._0xb70583]}),!0x0;}},_0x52894a={'type':_0x7d31a[_0x504d77(0x265)]['COMMAND'],'id':_0x504d77(0x1da),async 'handler'(_0x48ae50,_0x37df4c){const _0x9c6615=_0x504d77,_0x10d4a4=_0x48ae50[_0x9c6615(0x3f1)](_0x7d31a[_0x9c6615(0x214)]),_0x48444c=_0x48ae50[_0x9c6615(0x3f1)](_0x8a946e[_0x9c6615(0x1c0)]),_0x50e768=_0x48ae50['get'](_0x7d31a[_0x9c6615(0x1ae)]);if(!_0x37df4c)return!0x1;const {token:_0x1c17ce,dataRangeInfo:_0x14d250,unitId:_0x3d3d11,subUnitId:_0x38bb46}=_0x37df4c,_0x2f0a7e=[],_0x358d3c=[],_0x30d434=(await _0x48444c[_0x9c6615(0x26d)]({'unitId':_0x3d3d11,'subUnitId':_0x38bb46,'pivotTableId':_0x1c17ce,'params':{'type':_0x281e70['UpdatePivotSource'],'updatePivotSource':{'dataRangeInfo':_0x14d250,'unitId':_0x3d3d11,'subUnitId':_0x38bb46}}}))[_0x9c6615(0x3cf)]['updatePivotSource'];if(!_0x30d434)return!0x1;const {changesets:_0x5115f1,deleteIds:_0x11cc7a,collectionConfig:_0x2749a3,oldCollectionConfig:_0x553ac0,view:_0x47dada,isEmpty:_0x1ccb17,pivotTableConfig:_0x2bcf03}=_0x30d434;_0x358d3c['push']({'id':_0x5434d['id'],'params':{'pivotTableId':_0x1c17ce,'deleteIds':_0x11cc7a,'collectionJSON':_0x2749a3,'dataRangeInfo':_0x14d250,'unitId':_0x3d3d11,'subUnitId':_0x38bb46}}),_0x2f0a7e['unshift']({'id':_0x5434d['id'],'params':{'pivotTableId':_0x1c17ce,'deleteIds':[],'collectionJSON':_0x553ac0,'dataRangeInfo':_0x2bcf03[_0x9c6615(0x2ce)],'unitId':_0x3d3d11,'subUnitId':_0x38bb46}});const _0x451a02=_0x2bcf03[_0x9c6615(0x2b1)],_0x44f038=new _0x401889[(_0x9c6615(0x34f))]();_0x44f038['formJSON'](_0x47dada);const _0x23ca17={'cellInfo':_0x451a02,'view':_0x44f038,'isEmpty':_0x1ccb17};if(!await _0x48ae50['get'](_0x8a946e[_0x9c6615(0x12a)])[_0x9c6615(0x2b5)]['fetchThroughAsyncInterceptors'](_0x4a899f)(!0x0,_0x23ca17))return!0x1;const _0x5ae943=_0x438f78(_0x48ae50,_0x44f038,_0x451a02,_0x1ccb17),_0x5ccace=_0x2a79aa(_0x48ae50,_0x23ca17),{undos:_0x406224,redos:_0x288e7a}=_0x562b9d(_0x10d4a4,{'pivotTableId':_0x1c17ce,'unitId':_0x3d3d11,'subUnitId':_0x38bb46},_0x5115f1);return _0x7d31a[_0x9c6615(0x26f)]([..._0x5ae943[_0x9c6615(0x369)],..._0x5ccace[_0x9c6615(0x369)],..._0x358d3c,..._0x406224],_0x10d4a4),_0x50e768[_0x9c6615(0x36f)]({'unitID':_0x3d3d11,'redoMutations':[..._0x5ae943[_0x9c6615(0x369)],..._0x5ccace['redos'],..._0x358d3c,..._0x406224],'undoMutations':[..._0x5ae943['undos'],..._0x5ccace[_0x9c6615(0x372)],..._0x2f0a7e,..._0x288e7a]}),!0x0;}},_0x1e4546={'type':_0x7d31a['CommandType']['COMMAND'],'id':_0x504d77(0x34e),async 'handler'(_0x5e6d78,_0x2a80ca){const _0x11c6c6=_0x504d77;if(!_0x2a80ca)return!0x1;const _0x379114=_0x5e6d78[_0x11c6c6(0x3f1)](_0x7d31a[_0x11c6c6(0x214)]),_0x136883=_0x5e6d78[_0x11c6c6(0x3f1)](_0x8a946e['SheetsPivotRPCService']),_0x4a65c6=_0x5e6d78['get'](_0x7d31a['IUniverInstanceService']),_0xf2fddd=_0x5e6d78[_0x11c6c6(0x3f1)](_0x7d31a[_0x11c6c6(0x1ae)]),{pivotTableId:_0x493eb3,position:_0x2d2df8,index:_0x232a9b}=_0x2a80ca,_0x5e93fb=_0x399d28[_0x11c6c6(0x33a)](_0x4a65c6);if(!_0x5e93fb)return!0x1;const {unitId:_0x2dc8db,subUnitId:_0x40da96}=_0x5e93fb,_0xf1df38=(await _0x136883['getPivotDisplayConfig']({'unitId':_0x2dc8db,'subUnitId':_0x40da96,'pivotTableId':_0x493eb3,'params':{'type':_0x281e70[_0x11c6c6(0x119)],'updateValuePosition':{'position':_0x2d2df8,'index':_0x232a9b}}}))['result'][_0x11c6c6(0x175)];if(!_0xf1df38)return!0x1;const {changesets:_0x2de496,view:_0x4fb7c8,isEmpty:_0x22a550,pivotTableConfig:_0x30aed8}=_0xf1df38,_0x28c488=_0x30aed8['targetCellInfo'],_0x20a4b5=new _0x401889[(_0x11c6c6(0x34f))]();_0x20a4b5[_0x11c6c6(0x386)](_0x4fb7c8);const _0x4fb52d=_0x5e6d78[_0x11c6c6(0x3f1)](_0x8a946e[_0x11c6c6(0x12a)]),_0x2892b4={'cellInfo':_0x28c488,'view':_0x20a4b5,'isEmpty':_0x22a550};if(!await _0x4fb52d['asyncInterceptor'][_0x11c6c6(0x144)](_0x4a899f)(!0x0,_0x2892b4))return!0x1;const _0x61fca8=_0x438f78(_0x5e6d78,_0x20a4b5,_0x28c488,_0x22a550),_0x6faeea=_0x2a79aa(_0x5e6d78,_0x2892b4),{undos:_0xdfbae1,redos:_0x1d971f}=_0x562b9d(_0x379114,{'pivotTableId':_0x493eb3,'unitId':_0x2dc8db,'subUnitId':_0x40da96},_0x2de496);return _0x7d31a['sequenceExecute']([..._0x61fca8[_0x11c6c6(0x369)],..._0x6faeea[_0x11c6c6(0x369)],..._0x1d971f],_0x379114),_0xf2fddd[_0x11c6c6(0x36f)]({'unitID':_0x2dc8db,'redoMutations':[..._0x61fca8[_0x11c6c6(0x369)],..._0x6faeea[_0x11c6c6(0x369)],..._0x1d971f],'undoMutations':[..._0x61fca8[_0x11c6c6(0x372)],..._0x6faeea[_0x11c6c6(0x372)],..._0xdfbae1]}),!0x0;}},_0x2f83d1={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x139)],'id':_0x504d77(0x3b3),'handler':(_0x1cbfa5,_0x49198d)=>{const _0xd26291=_0x504d77,_0x4c5ce4=_0x1cbfa5[_0xd26291(0x3f1)](_0x7d31a[_0xd26291(0x214)]),_0xa3e571=_0x1cbfa5[_0xd26291(0x3f1)](_0x7d31a['IUndoRedoService']),_0x1be4ee=_0x1cbfa5[_0xd26291(0x3f1)](_0x8a946e['SheetsPivotTableConfigModel']),_0x535850=_0x1cbfa5['get'](_0x7d31a[_0xd26291(0x253)]);if(!_0x49198d)return!0x1;const _0x199f5e=_0x399d28['getSheetCommandTarget'](_0x535850);if(!_0x199f5e)return!0x1;const {unitId:_0x3a79fc,subUnitId:_0x47d0cd,workbook:_0x420748}=_0x199f5e,_0x35be63=_0x1be4ee[_0xd26291(0x2fb)](_0x49198d[_0xd26291(0x3be)][_0xd26291(0x1bd)],_0x49198d['originTargetInfo'][_0xd26291(0x1aa)],_0x49198d[_0xd26291(0x19b)]);if(!_0x35be63)return!0x1;const _0x4124b8=_0x420748[_0xd26291(0x1ce)](_0x49198d[_0xd26291(0x2b1)][_0xd26291(0x1aa)]);if(!_0x4124b8)throw new Error(_0xd26291(0x32f));const _0x4e2104=_0x4124b8[_0xd26291(0x270)](),_0x16ae6f=_0x4124b8[_0xd26291(0x239)]();if(_0x49198d[_0xd26291(0x2b1)][_0xd26291(0x196)]>_0x4e2104||_0x49198d[_0xd26291(0x2b1)]['col']>_0x16ae6f)throw new Error(_0xd26291(0x1bb));const _0x19e703=[{'id':_0x123019['id'],'params':{'unitId':_0x3a79fc,'subUnitId':_0x49198d[_0xd26291(0x2b1)][_0xd26291(0x1aa)],'pivotTableId':_0x49198d['pivotTableId'],'targetCellPosition':{'row':_0x49198d[_0xd26291(0x2b1)]['row'],'col':_0x49198d['targetCellInfo'][_0xd26291(0x2c0)]}}}],_0x2c9dd1=[{'id':_0x123019['id'],'params':{'unitId':_0x3a79fc,'subUnitId':_0x47d0cd,'pivotTableId':_0x49198d[_0xd26291(0x19b)],'targetCellPosition':{'row':_0x35be63[_0xd26291(0x2b1)]['row'],'col':_0x35be63[_0xd26291(0x2b1)][_0xd26291(0x2c0)]}}}];return _0x7d31a[_0xd26291(0x26f)](_0x19e703,_0x4c5ce4)&&_0xa3e571[_0xd26291(0x36f)]({'unitID':_0x3a79fc,'undoMutations':_0x2c9dd1,'redoMutations':_0x19e703}),!0x0;}},_0x2fa490={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x139)],'id':_0x504d77(0x1f3),async 'handler'(_0x2dbc13,_0x126c70){const _0x756a9d=_0x504d77;if(!_0x126c70)return!0x1;const _0x128758=_0x2dbc13[_0x756a9d(0x3f1)](_0x7d31a['ICommandService']),{pivotTableId:_0x368439,fieldId:_0x48a081,valueFilterInfo:_0xed1e2e,unitId:_0x1b6783,subUnitId:_0x5eeb88}=_0x126c70,_0x4276e3=_0x2dbc13['get'](_0x8a946e[_0x756a9d(0x1c0)]),_0x3515ba=_0x2dbc13[_0x756a9d(0x3f1)](_0x7d31a[_0x756a9d(0x1ae)]),_0x5dfcc1=(await _0x4276e3['getPivotDisplayConfig']({'unitId':_0x1b6783,'subUnitId':_0x5eeb88,'pivotTableId':_0x368439,'params':{'type':_0x281e70[_0x756a9d(0x151)],'setValuePivotFilter':{'tableFieldId':_0x48a081,'filterInfo':_0xed1e2e}}}))[_0x756a9d(0x3cf)][_0x756a9d(0x401)];if(!_0x5dfcc1)return!0x1;const {changesets:_0x25f3fc,pivotTableConfig:_0x55d1ca,isEmpty:_0x3b7fab,view:_0x218970}=_0x5dfcc1,_0x3caaab=_0x55d1ca[_0x756a9d(0x2b1)],_0x18d6ec=new _0x401889[(_0x756a9d(0x34f))]();_0x18d6ec[_0x756a9d(0x386)](_0x218970);const _0x4f356f={'cellInfo':_0x3caaab,'view':_0x18d6ec,'isEmpty':_0x3b7fab};if(!await _0x2dbc13[_0x756a9d(0x3f1)](_0x8a946e['SheetsPivotTableService'])[_0x756a9d(0x2b5)][_0x756a9d(0x144)](_0x4a899f)(!0x0,_0x4f356f))return!0x1;const _0x196e09=_0x438f78(_0x2dbc13,_0x18d6ec,_0x3caaab,_0x3b7fab),_0x493d8b=_0x2a79aa(_0x2dbc13,_0x4f356f),{undos:_0x26f3e5,redos:_0x5b3df7}=_0x562b9d(_0x128758,{'pivotTableId':_0x368439,'unitId':_0x1b6783,'subUnitId':_0x5eeb88},_0x25f3fc);return _0x7d31a[_0x756a9d(0x26f)]([..._0x196e09[_0x756a9d(0x369)],..._0x493d8b['redos'],..._0x5b3df7],_0x128758),_0x3515ba[_0x756a9d(0x36f)]({'unitID':_0x1b6783,'redoMutations':[..._0x196e09[_0x756a9d(0x369)],..._0x493d8b[_0x756a9d(0x369)],..._0x5b3df7],'undoMutations':[..._0x196e09['undos'],..._0x493d8b[_0x756a9d(0x372)],..._0x26f3e5]}),!0x0;}},_0x230bd6={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x139)],'id':_0x504d77(0x147),async 'handler'(_0x33c5da,_0x433ba5){const _0x1ca4f3=_0x504d77;if(!_0x433ba5)return!0x1;const _0x1340d7=_0x33c5da[_0x1ca4f3(0x3f1)](_0x7d31a[_0x1ca4f3(0x214)]),_0x4f0002=_0x33c5da[_0x1ca4f3(0x3f1)](_0x7d31a[_0x1ca4f3(0x1ae)]),_0x5a0393=_0x33c5da['get'](_0x8a946e['SheetsPivotRPCService']),{pivotTableConfig:_0x14f0eb,pivotTableId:_0x373e20,unitId:_0x4f178a,subUnitId:_0x3fff1e}=_0x433ba5,_0x43f57d=(await _0x5a0393[_0x1ca4f3(0x26d)]({'unitId':_0x4f178a,'subUnitId':_0x3fff1e,'pivotTableId':_0x373e20,'params':{'type':_0x281e70['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x373e20,'pivotTableConfig':_0x14f0eb}}}))['result']['setPivotTableConfig'];if(!_0x43f57d)return!0x1;const {changesets:_0x5b3fed}=_0x43f57d,{redos:_0x50d662,undos:_0x2ae1c8}=_0x562b9d(_0x1340d7,{'pivotTableId':_0x373e20,'unitId':_0x4f178a,'subUnitId':_0x3fff1e},_0x5b3fed);return _0x7d31a['sequenceExecute'](_0x50d662,_0x1340d7),_0x4f0002[_0x1ca4f3(0x36f)]({'unitID':_0x4f178a,'redoMutations':_0x50d662,'undoMutations':_0x2ae1c8}),!0x0;}},_0x2809d6={'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x139)],'id':_0x504d77(0x1f7),async 'handler'(_0x2f94a3,_0x5e8839){const _0x44dc39=_0x504d77;if(!_0x5e8839)return!0x1;const _0x61a2ac=_0x2f94a3[_0x44dc39(0x3f1)](_0x7d31a['ICommandService']),_0x36b60d=_0x2f94a3[_0x44dc39(0x3f1)](_0x7d31a[_0x44dc39(0x1ae)]),_0x2ef50b=_0x2f94a3['get'](_0x8a946e[_0x44dc39(0x1c0)]),{resetArea:_0x117031,pivotTableId:_0x1fa4a5,unitId:_0x5e51ee,subUnitId:_0xb37446}=_0x5e8839,_0x106690=(await _0x2ef50b['getPivotDisplayConfig']({'unitId':_0x5e51ee,'subUnitId':_0xb37446,'pivotTableId':_0x1fa4a5,'params':{'type':_0x281e70[_0x44dc39(0x31d)],'resetPivotTable':{'pivotTableId':_0x1fa4a5,'resetArea':_0x117031}}}))[_0x44dc39(0x3cf)][_0x44dc39(0x352)];if(!_0x106690)return!0x1;const {changesets:_0x51ac4d}=_0x106690,{redos:_0x53f051,undos:_0x3771ff}=_0x562b9d(_0x61a2ac,{'pivotTableId':_0x1fa4a5,'unitId':_0x5e51ee,'subUnitId':_0xb37446},_0x51ac4d);return _0x7d31a[_0x44dc39(0x26f)](_0x53f051,_0x61a2ac),_0x36b60d['pushUndoRedo']({'unitID':_0x5e51ee,'redoMutations':_0x53f051,'undoMutations':_0x3771ff}),!0x0;}},_0x45f92a={'id':_0x504d77(0x18c),'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x341)],'handler':(_0x34ba9e,_0x2d0b92)=>{const _0x5acef8=_0x504d77;if(!_0x2d0b92)return!0x1;if(!!_0x34ba9e['get'](_0x7d31a[_0x5acef8(0x13f)])[_0x5acef8(0x2da)](_0x540f5f))return!0x0;const {unitId:_0x3085d5,subUnitId:_0x2035cc,pivotTableId:_0x2fc693,tableFieldId:_0x296c97,dateType:_0x153ec0}=_0x2d0b92,_0x391a51=_0x34ba9e[_0x5acef8(0x3f1)](_0x8a946e[_0x5acef8(0x3bd)]),_0x14c075=_0x391a51[_0x5acef8(0x16e)](_0x2fc693);if(!_0x14c075)return!0x1;const _0x29ffc7=_0x14c075['getDataFieldByTableId'](_0x296c97);if(!_0x29ffc7)return!0x1;const _0x11c7bd=_0x29ffc7[_0x5acef8(0x3fc)](),_0x30c179=_0x14c075[_0x5acef8(0x2a5)](_0x11c7bd),_0x58d9ce=(_0x30c179==null?void 0x0:_0x30c179[_0x5acef8(0x2a6)]())+'\x20'+_0x2546fa(_0x34ba9e,_0x153ec0);_0x391a51[_0x5acef8(0x3f4)](_0x3085d5,_0x2fc693)[_0x5acef8(0x204)](_0x29ffc7['id'],_0x58d9ce);const _0x49d9ed=_0x14c075[_0x5acef8(0x3f7)](_0x296c97);if(!_0x49d9ed)return!0x1;_0x14c075[_0x5acef8(0x311)](_0x49d9ed[_0x5acef8(0x347)](),_0x58d9ce),_0x29ffc7[_0x5acef8(0x1dd)](_0x153ec0);const _0x41b1c6=_0x391a51[_0x5acef8(0x2fb)](_0x3085d5,_0x2035cc,_0x2fc693);return _0x391a51[_0x5acef8(0x354)]({'unitId':_0x3085d5,'subUnitId':_0x2035cc,'token':_0x2fc693,'type':_0x462181[_0x5acef8(0x223)],'pivotConfig':_0x41b1c6}),!0x0;}},_0x388abd={'id':_0x504d77(0x24a),'type':_0x7d31a[_0x504d77(0x265)][_0x504d77(0x139)],'handler':(_0x5715e7,_0x3fa6ea)=>{const _0x342d59=_0x504d77;if(!_0x3fa6ea)return!0x1;const _0x562d4b=_0x5715e7[_0x342d59(0x3f1)](_0x7d31a[_0x342d59(0x1ae)]),{unitId:_0x55c308,subUnitId:_0x1b9acb,pivotTableId:_0x203855,tableFieldId:_0x4e3b53}=_0x3fa6ea,_0x2949a6=[],_0x3d3b68=[],_0x44a47f=_0x5715e7[_0x342d59(0x3f1)](_0x8a946e['SheetsPivotTableConfigModel']),_0x1e5f92=_0x44a47f[_0x342d59(0x3f4)](_0x55c308,_0x203855),_0x5a05a1=_0x44a47f[_0x342d59(0x2fb)](_0x55c308,_0x1b9acb,_0x203855);if(!(_0x5a05a1!=null&&_0x5a05a1[_0x342d59(0x197)][_0x342d59(0x15f)]))return!0x1;const _0x43f1f1=Object[_0x342d59(0x3de)](_0x5a05a1[_0x342d59(0x197)]['dimension'])[_0x342d59(0x3a2)](_0x3b2cff=>_0x3b2cff['id']===_0x4e3b53);if(!_0x43f1f1)return!0x1;const _0x4ad4a5=_0x43f1f1['dataFieldId'];if(!(_0x1e5f92!=null&&_0x1e5f92[_0x342d59(0x394)]))return!0x1;const _0x2c6be8=Object[_0x342d59(0x3de)](_0x1e5f92==null?void 0x0:_0x1e5f92[_0x342d59(0x394)])[_0x342d59(0x3a2)](_0x265aae=>_0x265aae['id']===_0x4ad4a5);if(!_0x2c6be8)return!0x1;_0x401889[_0x342d59(0x1d4)](_0x2c6be8)&&_0x2949a6['push']({'id':_0x45f92a['id'],'params':{..._0x3fa6ea,'dateType':_0x2c6be8[_0x342d59(0x194)]}}),_0x3d3b68[_0x342d59(0x25f)]({'id':_0x45f92a['id'],'params':{..._0x3fa6ea}});const _0xb82182=_0x5715e7[_0x342d59(0x3f1)](_0x7d31a[_0x342d59(0x214)]);return _0x7d31a[_0x342d59(0x26f)](_0x3d3b68,_0xb82182)&&_0x562d4b['pushUndoRedo']({'unitID':_0x55c308,'undoMutations':_0x2949a6,'redoMutations':_0x3d3b68}),!0x0;}};var _0x3e69d0=Object[_0x504d77(0x353)],_0x1aaf0b=(_0x178489,_0x461b90,_0x433a80,_0x12f604)=>{const _0x1dc711=_0x504d77;for(var _0x1af1c8=_0x12f604>0x1?void 0x0:_0x12f604?_0x3e69d0(_0x461b90,_0x433a80):_0x461b90,_0x4c1c31=_0x178489[_0x1dc711(0x423)]-0x1,_0x120e2f;_0x4c1c31>=0x0;_0x4c1c31--)(_0x120e2f=_0x178489[_0x4c1c31])&&(_0x1af1c8=_0x120e2f(_0x1af1c8)||_0x1af1c8);return _0x1af1c8;},_0x4b5ae8=(_0x353cde,_0x206d36)=>(_0x3eeaa4,_0x14f0c5)=>_0x206d36(_0x3eeaa4,_0x14f0c5,_0x353cde);const _0x11131d=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x5ae9c9=(_0x39d240,_0x4580f4,_0x2891e3)=>{const _0xcf370f=_0x504d77,_0xfca7=_0x39d240[_0xcf370f(0x2a2)];_0x39d240[_0xcf370f(0x2ee)](_0x1e065b=>{const _0x2120fc=_0xcf370f,_0x29c01b=_0x1e065b[_0x2120fc(0x347)](),_0x46e9a2=_0x1e065b[_0x2120fc(0x40b)](),_0x493d66=_0x1e065b['getSourceName'](),_0x166641=_0x1e065b[_0x2120fc(0x3f8)]();_0x4580f4[_0x46e9a2]&&_0x4580f4[_0x46e9a2]===_0x166641&&_0x493d66===_0x166641&&(_0x39d240[_0x2120fc(0x311)](_0x29c01b,_0xfca7[_0x2120fc(0x3f8)](_0x46e9a2)),_0x1e065b['setSourceName'](_0xfca7['getDisplayName'](_0x46e9a2)));}),_0x39d240[_0xcf370f(0x3c1)](_0x401889['PivotTableFiledAreaEnum'][_0xcf370f(0x374)],_0x47be0f=>{const _0x36d26f=_0xcf370f,_0x1ddf12=_0x47be0f['getId'](),_0x2c8f17=_0x47be0f[_0x36d26f(0x40b)](),_0x35530b=_0x47be0f[_0x36d26f(0x258)](),_0x5ba655=_0x47be0f[_0x36d26f(0x3f8)](),_0x4de6fc=_0x47be0f[_0x36d26f(0x17a)](),_0x183285=_0x2891e3(_0x35530b,_0x4de6fc);_0x4580f4[_0x2c8f17]&&_0x4580f4[_0x2c8f17]===_0x35530b&&_0x183285===_0x5ba655&&(_0x39d240[_0x36d26f(0x311)](_0x1ddf12,_0x2891e3(_0xfca7[_0x36d26f(0x3f8)](_0x2c8f17),_0x4de6fc)),_0x47be0f[_0x36d26f(0x3b0)](_0xfca7[_0x36d26f(0x3f8)](_0x2c8f17)));});},_0x19c40f=(_0x31a1d8,_0x16fdd1,_0xcd665a)=>{const _0x56bb48=_0x504d77;var _0x1a6021,_0x2bb4be;const {arrayFormulaCellData:_0x53df6b,unitData:_0x30d3af}=_0x16fdd1,{unitId:_0xa962dd,subUnitId:_0x1eefa1}=_0xcd665a,_0x5b09d7=_0xcd665a[_0x56bb48(0x247)],{startColumn:_0x1b1e63,endColumn:_0xe2ac4e}=_0x5b09d7,_0x28221c=(_0x1a6021=_0x53df6b==null?void 0x0:_0x53df6b[_0xa962dd])==null?void 0x0:_0x1a6021[_0x1eefa1],_0x331079=(_0x2bb4be=_0x30d3af==null?void 0x0:_0x30d3af[_0xa962dd])==null?void 0x0:_0x2bb4be[_0x1eefa1],_0x35118e=new Set(),_0x5034b8=_0xe2ac4e-_0x1b1e63+0x1,{dirtyRanges:_0x55d8e2}=_0x31a1d8;if(_0x55d8e2)for(const {range:_0x120ff3,sheetId:_0x1f3df0,unitId:_0x5c6558}of _0x55d8e2){if(_0x1f3df0!==_0x1eefa1||_0xa962dd!==_0x5c6558)continue;const _0x368b36=_0x7d31a[_0x56bb48(0x1e6)][_0x56bb48(0x342)](_0x120ff3,_0x5b09d7);if(_0x368b36){const {startColumn:_0x135b78,endColumn:_0x5973fd}=_0x368b36;for(let _0x1063b5=_0x135b78;_0x1063b5<=_0x5973fd;_0x1063b5++)_0x35118e[_0x56bb48(0x213)](_0x1063b5);}}if(_0x35118e[_0x56bb48(0x32d)]===_0x5034b8||_0x35118e['size']===_0x5034b8)return Array['from'](_0x35118e);if(_0x331079){const _0xdb92fd=_0x331079[_0x56bb48(0x39f)](),_0x13ce28=Object[_0x56bb48(0x38c)](_0xdb92fd);for(const _0x39f9bf of _0x13ce28){const _0x466e66=Number(_0x39f9bf),_0x2ce67e=_0xdb92fd[_0x466e66];if(_0x35118e[_0x56bb48(0x32d)]===_0x5034b8)break;for(const _0x9a646e in _0x2ce67e){const _0x17cb34=Number(_0x9a646e);_0x17cb34<_0x1b1e63||_0x17cb34>_0xe2ac4e||_0x35118e[_0x56bb48(0x213)](_0x17cb34);}}}if(_0x28221c){const _0x23294d=_0x28221c[_0x56bb48(0x39f)](),_0x42e985=Object[_0x56bb48(0x38c)](_0x23294d);for(const _0xf9c98 of _0x42e985){const _0x44fbcc=Number(_0xf9c98),_0x377854=_0x23294d[_0x44fbcc];if(_0x35118e[_0x56bb48(0x32d)]===_0x5034b8)break;for(const _0x59b2cb in _0x377854){const _0x576065=Number(_0x59b2cb);_0x576065<_0x1b1e63||_0x576065>_0xe2ac4e||_0x35118e[_0x56bb48(0x213)](_0x576065);}}}return Array[_0x56bb48(0x20c)](_0x35118e);},_0x1735fd=_0x1babb4=>{const _0x25ac91=_0x504d77,_0x306a98=new Set(),_0x30d84d=[];for(const _0x34e207 of _0x1babb4){const _0x1df4b5=_0x34e207[_0x25ac91(0x2d5)]+','+_0x34e207[_0x25ac91(0x125)]+','+_0x34e207[_0x25ac91(0x30d)]+','+_0x34e207[_0x25ac91(0x1e1)];_0x306a98[_0x25ac91(0x407)](_0x1df4b5)||(_0x306a98[_0x25ac91(0x213)](_0x1df4b5),_0x30d84d['push'](_0x34e207));}return _0x30d84d;};let _0xa371f2=class extends _0x7d31a[_0x504d77(0x260)]{constructor(_0x2f4392,_0x4f4daa,_0x1d4642,_0x47217f,_0x35dec6,_0x4044c3){const _0xeec961=_0x504d77;super(),_0xa31747(this,'_globalSubject',new _0x24643e[(_0xeec961(0x298))](!0x0)),_0xa31747(this,_0xeec961(0x2cf),_0x243de2=>{const _0x262801=_0xeec961;this[_0x262801(0x23c)][_0x262801(0x1e0)](!0x1);}),_0xa31747(this,_0xeec961(0x157),_0x3c0b98=>{const _0x24fa76=_0xeec961;this[_0x24fa76(0x23c)][_0x24fa76(0x1e0)](!0x0);}),(this[_0xeec961(0x296)]=_0x2f4392,this[_0xeec961(0x242)]=_0x4f4daa,this[_0xeec961(0x34c)]=_0x1d4642,this[_0xeec961(0x2b2)]=_0x47217f,this[_0xeec961(0x1a1)]=_0x35dec6,this[_0xeec961(0x3d4)]=_0x4044c3,this['_init'](),this['_initPivotDataGetListener']());}[_0x504d77(0x376)](){const _0x5dd31b=_0x504d77;this['_subjectCollectionChange'](),this[_0x5dd31b(0x156)](),this[_0x5dd31b(0x248)](),this[_0x5dd31b(0x235)]();}[_0x504d77(0x27f)](){const _0x101c88=_0x504d77;this[_0x101c88(0x1a1)][_0x101c88(0x1d1)](this[_0x101c88(0x23c)]),_0x401889[_0x101c88(0x2ae)][_0x101c88(0x2a0)](_0x401889[_0x101c88(0x178)][_0x101c88(0x27e)],this['_globalComputedStartHelpFunc']),_0x401889[_0x101c88(0x2ae)][_0x101c88(0x2a0)](_0x401889['PivotCallbackEnum'][_0x101c88(0x187)],this['_globalComputedEndHelpFunc']);}[_0x504d77(0x17e)](){const _0x576200=_0x504d77;this[_0x576200(0x25b)](this['_commandService']['onCommandExecuted'](_0x1ba59a=>{_0x1ba59a['id']===_0x399d28['MoveRangeMutation']['id']&&this['_sheetsPivotDataSourceModel']['handleMoveRange'](_0x1ba59a['params']);})),this[_0x576200(0x25b)](this[_0x576200(0x2b2)][_0x576200(0x35f)](_0x14a161=>{const _0x13ea91=_0x576200;if(_0x14a161['id']!==_0xafd79e['id'])return;const _0x25f18e=_0x14a161[_0x13ea91(0x176)],{unitId:_0x419af4,subUnitId:_0x505952,pivotTableId:_0x4832ea}=_0x25f18e,_0x20b61e=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x215)],_0x3f90e1={};switch(_0x20b61e){case _0x281e70[_0x13ea91(0x127)]:{const _0x3c9c5c=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x3a7)];if(!_0x3c9c5c)return;const {row:_0x20968b,col:_0x118e3d,cellData:_0x318b1f,pivotItemRenderInfoCache:_0x46bed0,tableFieldId:_0x594ea9}=_0x3c9c5c,_0x155061=this['_sheetsPivotDataSourceModel'][_0x13ea91(0x16e)](_0x25f18e[_0x13ea91(0x19b)]);if(!_0x155061||!_0x46bed0)return;if(_0x594ea9){const _0x5d6896=_0x155061[_0x13ea91(0x431)](_0x594ea9);if(!_0x5d6896)return;_0x3f90e1['filter']={..._0x155061[_0x13ea91(0x18d)](_0x5d6896),'tableFieldId':_0x594ea9,'pivotTableId':_0x25f18e[_0x13ea91(0x19b)],'filterInfo':_0x155061[_0x13ea91(0x29c)](_0x594ea9),'sortInfo':_0x155061[_0x13ea91(0x193)](_0x594ea9),'format':_0x155061[_0x13ea91(0x1ff)](_0x594ea9)};}else{const _0x2e09c7=_0x43d68d(_0x20968b,_0x118e3d,_0x318b1f,_0x155061,_0x46bed0),_0x573ad6=_0x2e09c7==null?void 0x0:_0x2e09c7[_0x13ea91(0x1c6)];if(!_0x573ad6)return;const _0x7e229b=_0x155061['getDataFieldByTableId'](_0x573ad6);if(!_0x7e229b)return;_0x3f90e1[_0x13ea91(0x3a7)]={..._0x155061[_0x13ea91(0x18d)](_0x7e229b),'tableFieldId':_0x573ad6,'pivotTableId':_0x25f18e[_0x13ea91(0x19b)],'filterInfo':_0x155061[_0x13ea91(0x29c)](_0x573ad6),'sortInfo':_0x155061['getSortInfo'](_0x573ad6),'format':_0x155061[_0x13ea91(0x1ff)](_0x573ad6)};}}break;case _0x281e70[_0x13ea91(0x36e)]:{const _0x46e60d=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x2ab)];if(!_0x46e60d)return;const {pivotTableId:_0x52525f}=_0x46e60d,_0x733b4d=this[_0x13ea91(0x296)]['getPivotTableInstance'](_0x52525f);if(!_0x733b4d)return;const _0x494b28=this[_0x13ea91(0x296)][_0x13ea91(0x2fb)](_0x419af4,_0x505952,_0x52525f),_0x48b626=_0x4b9203(_0x733b4d,_0x52525f,_0x494b28);_0x3f90e1[_0x13ea91(0x2ab)]=_0x48b626;}break;case _0x281e70[_0x13ea91(0x1cd)]:{const _0x4ad1e6=this[_0x13ea91(0x296)]['getPivotTableInstance'](_0x4832ea),_0x178036=this[_0x13ea91(0x296)]['getDataFieldManager'](_0x419af4),_0x202e82=_0x178036[_0x13ea91(0x3f4)](_0x4832ea);let _0x385b38=null;const _0x10dd2b=this[_0x13ea91(0x296)]['getPivotTableConfig'](_0x419af4,_0x505952,_0x4832ea),_0x5e7d8f=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x1b6)];if(!_0x4ad1e6||!_0x10dd2b||!_0x5e7d8f)return!0x1;const {dataFieldId:_0x4a4ae4,fieldArea:_0x63f4,index:_0xe80c17}=_0x5e7d8f;_0x4ad1e6[_0x13ea91(0x39b)]();const _0x58b69a=_0x4ad1e6[_0x13ea91(0x1a9)](_0x4a4ae4,_0x63f4,_0xe80c17);if(_0x58b69a&&_0x63f4===_0x401889[_0x13ea91(0x266)][_0x13ea91(0x374)]){const _0x42f4f6=_0x58b69a['getId'](),_0x387fa9=_0x4ad1e6[_0x13ea91(0x431)](_0x42f4f6);if(_0x387fa9){const _0x314087=_0x387fa9==null?void 0x0:_0x387fa9[_0x13ea91(0x391)]();_0x4ad1e6[_0x13ea91(0x152)](_0x58b69a[_0x13ea91(0x347)](),_0x314087===_0x401889[_0x13ea91(0x3af)][_0x13ea91(0x143)]?_0x401889['PivotSubtotalTypeEnum'][_0x13ea91(0x429)]:_0x401889[_0x13ea91(0x3dc)][_0x13ea91(0x159)]);}const _0x4b39be=_0x4ad1e6['getValueIndex'](),_0x306f2b=_0x4ad1e6[_0x13ea91(0x16b)](),_0x42ac4f=_0x4ad1e6['getFieldCountByArea'](_0x401889['PivotTableFiledAreaEnum'][_0x13ea91(0x374)]);if(_0x4b39be===-0x1&&_0x42ac4f>0x1){const _0x21a384=_0x306f2b===_0x401889[_0x13ea91(0x3cc)][_0x13ea91(0x3c2)]?_0x401889[_0x13ea91(0x3cc)]['Column']:_0x306f2b,_0x5dd6ff=_0x21a384===_0x401889[_0x13ea91(0x3cc)][_0x13ea91(0x203)]?_0x401889[_0x13ea91(0x266)][_0x13ea91(0x203)]:_0x401889['PivotTableFiledAreaEnum'][_0x13ea91(0x1b9)];_0x4ad1e6[_0x13ea91(0x175)](_0x21a384,_0x4ad1e6[_0x13ea91(0x3e8)](_0x5dd6ff));}}else{if(_0x58b69a&&(_0x63f4===_0x401889[_0x13ea91(0x266)][_0x13ea91(0x203)]||_0x63f4===_0x401889['PivotTableFiledAreaEnum']['Column'])){const _0x56c689=_0x58b69a[_0x13ea91(0x347)](),_0x234ca7=_0x4ad1e6[_0x13ea91(0x431)](_0x56c689);if(_0x234ca7&&(_0x234ca7==null?void 0x0:_0x234ca7[_0x13ea91(0x391)]())===_0x401889['PivotDataFieldDataTypeEnum']['date']){const _0x576163=_0x234ca7[_0x13ea91(0x415)]();if(_0x576163&&_0x4ad1e6[_0x13ea91(0x322)](_0x58b69a[_0x13ea91(0x347)](),_0x576163),!_0x202e82[_0x13ea91(0x375)]()['some'](_0x197297=>{const _0xfb5a28=_0x13ea91,_0x3834b6=_0x202e82[_0xfb5a28(0x1e7)](_0x197297);return _0x401889[_0xfb5a28(0x40a)](_0x3834b6)?_0x3834b6[_0xfb5a28(0x1ac)]()[_0xfb5a28(0x1ef)]===_0x4a4ae4:!0x1;})){const _0x2085d0=_0x178036['createDataFieldId'](),_0x54e7d4=_0x1ff12d(_0x234ca7[_0x13ea91(0x11b)],_0x234ca7['minDate']),_0x5a6cc1=_0x234ca7[_0x13ea91(0x2a6)]()+_0x13ea91(0x2f6)+_0x2546fa(this[_0x13ea91(0x3d4)],_0x54e7d4),_0x50b1cf=new _0x401889[(_0x13ea91(0x23f))](_0x2085d0,_0x5a6cc1,_0x401889[_0x13ea91(0x370)](0x3),_0x234ca7[_0x13ea91(0x347)](),_0x54e7d4);_0x178036[_0x13ea91(0x2fe)](_0x50b1cf),_0x202e82[_0x13ea91(0x279)](_0x2085d0,_0x5a6cc1),_0x4ad1e6[_0x13ea91(0x1a9)](_0x2085d0,_0x63f4,(_0xe80c17!=null?_0xe80c17:0x0)+0x1),_0x385b38=_0x50b1cf;}}}}const _0x50ab66=_0x4ad1e6['isEmpty'](),_0x48d2e4=_0x4ad1e6['query']()[_0x13ea91(0x2d3)]();let _0x53e33a;if(_0x385b38){_0x53e33a=_0x385b38[_0x13ea91(0x2d3)]();const _0x11b80a=_0x385b38[_0x13ea91(0x347)]();_0x202e82[_0x13ea91(0x303)](_0x11b80a);let _0x5dcfe0=!0x0;for(const _0x1aa326 in _0x178036[_0x13ea91(0x150)])if(_0x178036[_0x13ea91(0x150)][_0x1aa326][_0x13ea91(0x375)]()[_0x13ea91(0x3eb)](_0x11b80a)){_0x5dcfe0=!0x1;break;}_0x5dcfe0&&_0x178036[_0x13ea91(0x404)](_0x11b80a);}const _0x134453=_0x4ad1e6[_0x13ea91(0x3ac)]();_0x3f90e1[_0x13ea91(0x1b6)]={'view':_0x48d2e4,'changesets':_0x134453,'isEmpty':_0x50ab66,'pivotTableConfig':_0x10dd2b,'shouldBeAddedGroupJSON':_0x53e33a};}break;case _0x281e70[_0x13ea91(0x272)]:{const _0x2b1f32=_0x25f18e[_0x13ea91(0x176)]['addPivotTable'];if(!_0x2b1f32)return;const _0x4b2d7b=_0x2b1f32[_0x13ea91(0x2ce)],_0x4858c1=_0x2b1f32[_0x13ea91(0x19b)],{collection:_0x3aea7f}=this['_sheetsPivotDataSourceModel']['createCollectionWithDataRange']({'unitId':_0x4b2d7b[_0x13ea91(0x1bd)],'sheetName':_0x4b2d7b[_0x13ea91(0x1fa)],'subUnitId':_0x4b2d7b['subUnitId'],'range':_0x4b2d7b['range']}),_0x2129a6=new _0x401889[(_0x13ea91(0x2ae))](_0x3aea7f,void 0x0,_0x4858c1),_0x514983=_0x2129a6[_0x13ea91(0x2d8)](),_0x1fdb17=_0x2129a6[_0x13ea91(0x2d3)](),_0x4a4caf=_0x3aea7f[_0x13ea91(0x2d3)]();_0x3f90e1[_0x13ea91(0x23e)]={'view':_0x514983,'fieldsConfig':_0x1fdb17,'collectionConfig':_0x4a4caf,'isEmpty':_0x2129a6[_0x13ea91(0x17c)]()};}break;case _0x281e70[_0x13ea91(0x2f2)]:{const _0x1f58b0=_0x25f18e[_0x13ea91(0x176)]['movePivotField'];if(!_0x1f58b0)return;const {fieldId:_0x33fe5e,area:_0x57dce7,index:_0x46e20c}=_0x1f58b0,_0x576595=this[_0x13ea91(0x296)][_0x13ea91(0x2fb)](_0x419af4,_0x505952,_0x4832ea);if(!_0x576595)return;const _0x34bcb5=this[_0x13ea91(0x296)][_0x13ea91(0x16e)](_0x4832ea);if(!_0x34bcb5)return;_0x34bcb5['startCollectChangeset']();const {area:_0x4acab8,index:_0x5e8375}=_0x34bcb5['getFieldPositionInfoById'](_0x33fe5e);if(_0x34bcb5[_0x13ea91(0x3e6)](_0x33fe5e,_0x57dce7,_0x46e20c),_0x57dce7===_0x401889[_0x13ea91(0x266)][_0x13ea91(0x374)]&&_0x34bcb5[_0x13ea91(0x3f7)](_0x33fe5e)[_0x13ea91(0x17a)]()===void 0x0){const _0x47d95b=_0x34bcb5[_0x13ea91(0x3f7)](_0x33fe5e);if(_0x47d95b&&_0x47d95b['getSubtotal']()===void 0x0){const _0x18c793=_0x34bcb5['getDataFieldByTableId'](_0x33fe5e);if(_0x18c793){const _0x661f40=_0x18c793==null?void 0x0:_0x18c793[_0x13ea91(0x391)]();_0x34bcb5[_0x13ea91(0x152)](_0x33fe5e,_0x661f40===_0x401889[_0x13ea91(0x3af)]['number']?_0x401889[_0x13ea91(0x3dc)][_0x13ea91(0x429)]:_0x401889[_0x13ea91(0x3dc)]['count']);}}}const _0x4e6feb=_0x34bcb5['getValuePosition'](),_0x1d8a22=_0x34bcb5[_0x13ea91(0x1c7)](),_0x1db706=_0x34bcb5['getFieldCountByArea'](_0x401889[_0x13ea91(0x266)][_0x13ea91(0x374)])>0x1;if(_0x1db706&&_0x4acab8===_0x57dce7&&(_0x57dce7===_0x401889[_0x13ea91(0x266)][_0x13ea91(0x203)]&&_0x4e6feb===_0x401889[_0x13ea91(0x3cc)][_0x13ea91(0x203)]||_0x57dce7===_0x401889['PivotTableFiledAreaEnum'][_0x13ea91(0x1b9)]&&_0x4e6feb===_0x401889[_0x13ea91(0x3cc)][_0x13ea91(0x1b9)])){let _0x171ea0=_0x1d8a22;_0x5e8375<=_0x1d8a22&&_0x171ea0--,_0x46e20c<=_0x1d8a22&&_0x171ea0++,_0x34bcb5[_0x13ea91(0x175)](_0x4e6feb,_0x171ea0);}else _0x1db706&&(_0x4acab8===_0x401889[_0x13ea91(0x266)][_0x13ea91(0x203)]&&_0x4e6feb===_0x401889[_0x13ea91(0x3cc)][_0x13ea91(0x203)]||_0x4acab8===_0x401889[_0x13ea91(0x266)][_0x13ea91(0x1b9)]&&_0x4e6feb===_0x401889[_0x13ea91(0x3cc)][_0x13ea91(0x1b9)])&&_0x1d8a22>=_0x5e8375&&_0x34bcb5['updateValuePosition'](_0x4e6feb,_0x1d8a22-0x1),_0x1db706&&(_0x57dce7===_0x401889[_0x13ea91(0x266)]['Row']&&_0x4e6feb===_0x401889[_0x13ea91(0x3cc)][_0x13ea91(0x203)]||_0x57dce7===_0x401889[_0x13ea91(0x266)][_0x13ea91(0x1b9)]&&_0x4e6feb===_0x401889[_0x13ea91(0x3cc)][_0x13ea91(0x1b9)])&&_0x1d8a22>=_0x46e20c&&_0x34bcb5['updateValuePosition'](_0x4e6feb,_0x1d8a22+0x1);const _0x5a7eec=_0x34bcb5[_0x13ea91(0x2d8)](),_0xb3cf7c=_0x34bcb5['isEmpty'](),_0x3f8bca=_0x34bcb5[_0x13ea91(0x3ac)]();_0x3f90e1[_0x13ea91(0x2a3)]={'view':_0x5a7eec[_0x13ea91(0x2d3)](),'changesets':_0x3f8bca,'isEmpty':_0xb3cf7c,'pivotTableConfig':_0x576595};}break;case _0x281e70[_0x13ea91(0x287)]:{const _0x428865=_0x25f18e['params'][_0x13ea91(0x334)];if(!_0x428865)return;const _0x39abe6=_0x428865[_0x13ea91(0x3b9)],_0x3a9f13=this[_0x13ea91(0x296)][_0x13ea91(0x2fb)](_0x419af4,_0x505952,_0x4832ea);if(!_0x3a9f13)return!0x1;const _0x3a3452=this[_0x13ea91(0x296)][_0x13ea91(0x16e)](_0x4832ea);if(!_0x3a3452)return!0x1;_0x3a3452[_0x13ea91(0x39b)]();for(const _0x71c3d5 of _0x39abe6){const {area:_0xf264f5}=_0x3a3452[_0x13ea91(0x26b)](_0x71c3d5);_0xf264f5===_0x401889[_0x13ea91(0x266)]['Value']&&_0x3a3452[_0x13ea91(0x37c)](_0x71c3d5),(_0xf264f5===_0x401889[_0x13ea91(0x266)]['Row']||_0xf264f5===_0x401889[_0x13ea91(0x266)]['Column'])&&_0x3a3452['removeValueFilterInfo'](_0x71c3d5),_0x3a3452[_0x13ea91(0x3bb)](_0x71c3d5);}const _0xf14c08=_0x3a3452[_0x13ea91(0x17c)](),_0x1dd0d1=_0x3a3452[_0x13ea91(0x2d8)]()['toJSON'](),_0xd449ee=_0x3a3452[_0x13ea91(0x3ac)]();_0x3f90e1[_0x13ea91(0x334)]={'changesets':_0xd449ee,'pivotTableConfig':_0x3a9f13,'isEmpty':_0xf14c08,'view':_0x1dd0d1};}break;case _0x281e70[_0x13ea91(0x2e0)]:{const _0x5c8cdd=_0x25f18e[_0x13ea91(0x176)]['setPivotFilter'];if(!_0x5c8cdd)return;const {tableFieldId:_0x456f5a,items:_0xf9c11e,isAll:_0x178aab}=_0x5c8cdd,_0x323760=this[_0x13ea91(0x296)][_0x13ea91(0x16e)](_0x4832ea),_0x4a9d4f=this[_0x13ea91(0x296)]['getPivotTableConfig'](_0x419af4,_0x505952,_0x4832ea);if(!_0x323760||!_0x4a9d4f)return;_0x323760[_0x13ea91(0x39b)](),_0x323760[_0x13ea91(0x2f7)](_0x456f5a,{'type':_0x401889[_0x13ea91(0x155)][_0x13ea91(0x1fc)],'list':_0xf9c11e,'isAll':_0x178aab});const _0x3ff295=_0x323760[_0x13ea91(0x17c)](),_0xb96f6a=_0x323760[_0x13ea91(0x2d8)]()[_0x13ea91(0x2d3)](),_0x459c4a=_0x323760['endCollectChangeset']();_0x3f90e1[_0x13ea91(0x3c5)]={'view':_0xb96f6a,'changesets':_0x459c4a,'isEmpty':_0x3ff295,'pivotTableConfig':_0x4a9d4f};}break;case _0x281e70[_0x13ea91(0x151)]:{const _0x11988e=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x401)];if(!_0x11988e)return;const {tableFieldId:_0x4f62c6,filterInfo:_0x420791}=_0x11988e,_0x22e31a=this['_sheetsPivotDataSourceModel'][_0x13ea91(0x16e)](_0x4832ea),_0x88b72b=this[_0x13ea91(0x296)][_0x13ea91(0x2fb)](_0x419af4,_0x505952,_0x4832ea);if(!_0x22e31a||!_0x88b72b)return;_0x22e31a[_0x13ea91(0x39b)](),_0x22e31a[_0x13ea91(0x35d)](_0x4f62c6,_0x420791);const _0x3a0e72=_0x22e31a[_0x13ea91(0x17c)](),_0x254f02=_0x22e31a[_0x13ea91(0x2d8)]()[_0x13ea91(0x2d3)](),_0x247752=_0x22e31a[_0x13ea91(0x3ac)]();_0x3f90e1['setValuePivotFilter']={'view':_0x254f02,'changesets':_0x247752,'isEmpty':_0x3a0e72,'pivotTableConfig':_0x88b72b};}break;case _0x281e70[_0x13ea91(0x282)]:{const _0x577b9a=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x21d)];if(!_0x577b9a)return;const {tableFieldId:_0x350f6f,info:_0x4c92ed}=_0x577b9a,_0x1cd0b3=this[_0x13ea91(0x296)]['getPivotTableInstance'](_0x4832ea),_0x5ba965=this[_0x13ea91(0x296)][_0x13ea91(0x2fb)](_0x419af4,_0x505952,_0x4832ea);if(!_0x1cd0b3||!_0x5ba965)return;_0x1cd0b3[_0x13ea91(0x39b)](),_0x1cd0b3[_0x13ea91(0x33c)](_0x350f6f,_0x4c92ed);const _0x38d5a6=_0x1cd0b3['isEmpty'](),_0x108ea9=_0x1cd0b3[_0x13ea91(0x2d8)]()['toJSON'](),_0x1747be=_0x1cd0b3[_0x13ea91(0x3ac)]();_0x3f90e1[_0x13ea91(0x21d)]={'view':_0x108ea9,'changesets':_0x1747be,'isEmpty':_0x38d5a6,'pivotTableConfig':_0x5ba965};}break;case _0x281e70[_0x13ea91(0x20f)]:{const _0x4ac79d=_0x25f18e['params']['setPivotSetting'];if(!_0x4ac79d)return;const {tableFieldId:_0x4d7050,displayName:_0x505252,subtotalType:_0x42dc4d,format:_0x1a5416}=_0x4ac79d,_0x58eb96=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x4832ea),_0x36f197=this[_0x13ea91(0x296)][_0x13ea91(0x2fb)](_0x419af4,_0x505952,_0x4832ea);if(!_0x58eb96||!_0x36f197)return;_0x58eb96[_0x13ea91(0x39b)](),_0x505252!==void 0x0&&_0x58eb96[_0x13ea91(0x311)](_0x4d7050,_0x505252),_0x42dc4d!==void 0x0&&_0x58eb96[_0x13ea91(0x152)](_0x4d7050,_0x42dc4d),_0x1a5416!==void 0x0&&_0x58eb96[_0x13ea91(0x322)](_0x4d7050,_0x1a5416);const _0xf534bf=_0x58eb96[_0x13ea91(0x17c)](),_0xa821cb=_0x58eb96['query']()[_0x13ea91(0x2d3)](),_0x4aebee=_0x58eb96[_0x13ea91(0x3ac)]();_0x3f90e1[_0x13ea91(0x393)]={'changesets':_0x4aebee,'pivotTableConfig':_0x36f197,'isEmpty':_0xf534bf,'view':_0xa821cb};}break;case _0x281e70[_0x13ea91(0x16a)]:{const _0x4d3ad7=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x30a)];if(!_0x4d3ad7)return;const {dataRangeInfo:_0x1489d3,unitId:_0x8e9ae7,subUnitId:_0x331a02}=_0x4d3ad7,_0x5035ec=this[_0x13ea91(0x296)][_0x13ea91(0x2fb)](_0x8e9ae7,_0x331a02,_0x4832ea),_0x292860=this[_0x13ea91(0x296)][_0x13ea91(0x16e)](_0x4832ea);if(!this[_0x13ea91(0x296)]['getCollection'](_0x8e9ae7,_0x4832ea)||!_0x292860||!_0x5035ec)return;const _0x20bda0=this[_0x13ea91(0x296)][_0x13ea91(0x297)](_0x8e9ae7,_0x4832ea,_0x1489d3),_0x4af80b=this[_0x13ea91(0x296)][_0x13ea91(0x3f4)](_0x8e9ae7,_0x4832ea)[_0x13ea91(0x2d3)](),{collection:_0x34f2e7}=this[_0x13ea91(0x296)][_0x13ea91(0x3ef)]({'unitId':_0x1489d3[_0x13ea91(0x1bd)],'sheetName':_0x1489d3['sheetName'],'subUnitId':_0x1489d3['subUnitId'],'range':_0x1489d3['range']}),_0x2503b3=_0x34f2e7['toJSON']();_0x292860[_0x13ea91(0x39b)]();const _0x472414=this[_0x13ea91(0x296)][_0x13ea91(0x2c7)](_0x8e9ae7)[_0x13ea91(0x2bd)]()||_0x401889['getAutoDisplayName'];_0x292860[_0x13ea91(0x1d9)](_0x4daf55=>{const _0xcf362f=_0x13ea91,_0xd6b794=_0x4daf55['getDataFieldId']();if(!_0x34f2e7[_0xcf362f(0x154)](_0xd6b794)){const _0x127915=_0x34f2e7[_0xcf362f(0x2e8)](_0x4daf55[_0xcf362f(0x258)]());if(_0x127915){_0x292860['updateFieldSourceInfo'](_0x4daf55[_0xcf362f(0x347)](),_0x127915['getName'](),_0x127915['getId']());const {area:_0x22ecd1}=_0x292860[_0xcf362f(0x26b)](_0x4daf55[_0xcf362f(0x347)]());let _0x1838a7=_0x4daf55[_0xcf362f(0x258)]();const _0x234732=_0x4daf55[_0xcf362f(0x3f8)]();if(_0x22ecd1===_0x401889[_0xcf362f(0x266)][_0xcf362f(0x374)]){const _0x5484f6=_0x4daf55['getSubtotal']();_0x1838a7=_0x472414(_0x127915[_0xcf362f(0x2a6)](),_0x5484f6);}_0x234732!==_0x1838a7&&_0x292860[_0xcf362f(0x311)](_0x4daf55[_0xcf362f(0x347)](),_0x1838a7);}else _0x292860[_0xcf362f(0x3bb)](_0x4daf55['getId']());}});const _0x55b25e=_0x292860[_0x13ea91(0x17c)](),_0x448ccc=_0x292860['query']()[_0x13ea91(0x2d3)](),_0x3ab03a=_0x292860[_0x13ea91(0x3ac)]();_0x3f90e1['updatePivotSource']={'view':_0x448ccc,'changesets':_0x3ab03a,'isEmpty':_0x55b25e,'pivotTableConfig':_0x5035ec,'collectionConfig':_0x2503b3,'oldCollectionConfig':_0x4af80b,'deleteIds':_0x20bda0};}break;case _0x281e70['UpdateValuePosition']:{const _0x41629e=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x175)];if(!_0x41629e)return;const {position:_0x48fa43,index:_0x1ecf76}=_0x41629e,_0x46099a=this['_sheetsPivotDataSourceModel'][_0x13ea91(0x2fb)](_0x419af4,_0x505952,_0x4832ea);if(!_0x46099a)return!0x1;const _0x36b796=this[_0x13ea91(0x296)][_0x13ea91(0x16e)](_0x4832ea);if(!_0x36b796)return!0x1;_0x36b796[_0x13ea91(0x39b)](),_0x36b796[_0x13ea91(0x175)](_0x48fa43,_0x1ecf76);const _0x17f384=_0x36b796[_0x13ea91(0x17c)](),_0x4f710b=_0x36b796[_0x13ea91(0x2d8)]()[_0x13ea91(0x2d3)](),_0x4eb3d1=_0x36b796[_0x13ea91(0x3ac)]();_0x3f90e1[_0x13ea91(0x175)]={'changesets':_0x4eb3d1,'pivotTableConfig':_0x46099a,'isEmpty':_0x17f384,'view':_0x4f710b};}break;case _0x281e70['SetPivotCollapse']:{const _0x5a8330=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x3f9)];if(!_0x5a8330)return;const {tableFieldId:_0x5e2549,collapse:_0x304cfb,item:_0x54cbc1}=_0x5a8330,_0x2bf9b3=this[_0x13ea91(0x296)][_0x13ea91(0x16e)](_0x4832ea),_0x4883af=this['_sheetsPivotDataSourceModel'][_0x13ea91(0x2fb)](_0x419af4,_0x505952,_0x4832ea);if(!_0x2bf9b3||!_0x4883af)return;_0x2bf9b3[_0x13ea91(0x39b)](),_0x2bf9b3[_0x13ea91(0x36d)](_0x5e2549,_0x304cfb,_0x54cbc1);const _0x21a65a=_0x2bf9b3[_0x13ea91(0x17c)](),_0x1492df=_0x2bf9b3['query']()[_0x13ea91(0x2d3)](),_0x213e4e=_0x2bf9b3[_0x13ea91(0x3ac)]();_0x3f90e1[_0x13ea91(0x3f9)]={'view':_0x1492df,'isEmpty':_0x21a65a,'pivotTableConfig':_0x4883af,'changesets':_0x213e4e};}break;case _0x281e70[_0x13ea91(0x3f6)]:{const _0x52ed8e=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x3c8)];if(!_0x52ed8e)return;const {pivotTableConfig:_0x54ee17}=_0x52ed8e,_0x4f80a3=this[_0x13ea91(0x296)][_0x13ea91(0x16e)](_0x4832ea),_0x5871f7=this['_sheetsPivotDataSourceModel'][_0x13ea91(0x2fb)](_0x419af4,_0x505952,_0x4832ea);if(!_0x4f80a3||!_0x5871f7)return;_0x4f80a3[_0x13ea91(0x39b)](),_0x4d6419(_0x4f80a3,_0x54ee17);const _0x16d96f=_0x4f80a3[_0x13ea91(0x17c)](),_0x3c2e90=_0x4f80a3[_0x13ea91(0x2d8)]()['toJSON'](),_0x48d223=_0x4f80a3['endCollectChangeset']();_0x3f90e1[_0x13ea91(0x3c8)]={'view':_0x3c2e90,'isEmpty':_0x16d96f,'pivotTableConfig':{..._0x5871f7,'fieldsConfig':_0x4f80a3[_0x13ea91(0x2d3)]()},'changesets':_0x48d223};}break;case _0x281e70[_0x13ea91(0x31d)]:{const _0x46fbd3=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x352)];if(!_0x46fbd3)return;const _0x243bc4=this[_0x13ea91(0x296)][_0x13ea91(0x16e)](_0x4832ea),_0x40dccb=this[_0x13ea91(0x296)][_0x13ea91(0x2fb)](_0x419af4,_0x505952,_0x4832ea);if(!_0x243bc4||!_0x40dccb)return;_0x243bc4[_0x13ea91(0x39b)](),_0x4dc86f(_0x243bc4,_0x46fbd3['resetArea']);const _0x19c07d=_0x243bc4['query']()[_0x13ea91(0x2d3)](),_0x2e3c95=_0x243bc4['endCollectChangeset']();_0x3f90e1[_0x13ea91(0x352)]={'view':_0x19c07d,'isEmpty':!0x0,'pivotTableConfig':{..._0x40dccb,'fieldsConfig':_0x243bc4[_0x13ea91(0x2d3)]()},'changesets':_0x2e3c95};}break;case _0x281e70[_0x13ea91(0x2dd)]:{const _0x11bc31=_0x25f18e[_0x13ea91(0x176)][_0x13ea91(0x326)];if(!_0x11bc31)return;const _0xc6bad=_0x11bc31['sourceRangeInfo'],_0x531bfc=_0x11bc31[_0x13ea91(0x19b)],{collection:_0x5d4a37}=this['_sheetsPivotDataSourceModel']['createCollectionWithDataRange']({'unitId':_0xc6bad[_0x13ea91(0x1bd)],'sheetName':_0xc6bad[_0x13ea91(0x1fa)],'subUnitId':_0xc6bad['subUnitId'],'range':_0xc6bad['range']}),_0x417234=new _0x401889[(_0x13ea91(0x2ae))](_0x5d4a37,void 0x0,_0x531bfc),_0xc21f50=_0x5d4a37['getFieldIds'](),{rows:_0x2c7c5c,columns:_0x234927,filters:_0x4ec92f,values:_0x5609f2}=_0x11bc31[_0x13ea91(0x145)];_0x417234[_0x13ea91(0x39b)]();for(const {field:_0x201f4f,selectedItems:_0x1337cf}of _0x2c7c5c||[]){const _0x37eaa5=_0xc21f50[_0x201f4f];if(_0x37eaa5){const _0x84488d=_0x417234[_0x13ea91(0x1a9)](_0x37eaa5,_0x401889[_0x13ea91(0x266)][_0x13ea91(0x203)]);_0x1337cf&&_0x84488d&&_0x417234['setLabelFilterInfo'](_0x84488d[_0x13ea91(0x347)](),{'type':_0x401889[_0x13ea91(0x155)][_0x13ea91(0x1fc)],'list':_0x1337cf,'isAll':!0x1});}}for(const {field:_0x36c0e5,selectedItems:_0x3fe34e}of _0x234927||[]){const _0x545a1f=_0xc21f50[_0x36c0e5];if(_0x545a1f){const _0x375d1d=_0x417234[_0x13ea91(0x1a9)](_0x545a1f,_0x401889['PivotTableFiledAreaEnum'][_0x13ea91(0x1b9)]);_0x3fe34e&&_0x375d1d&&_0x417234[_0x13ea91(0x2f7)](_0x375d1d[_0x13ea91(0x347)](),{'type':_0x401889[_0x13ea91(0x155)][_0x13ea91(0x1fc)],'list':_0x3fe34e,'isAll':!0x1});}}for(const {field:_0x33c816,selectedItems:_0x1f8710}of _0x4ec92f||[]){const _0x262437=_0xc21f50[_0x33c816];if(_0x262437){const _0x3749c6=_0x417234[_0x13ea91(0x1a9)](_0x262437,_0x401889[_0x13ea91(0x266)][_0x13ea91(0x127)]);_0x1f8710&&_0x3749c6&&_0x417234[_0x13ea91(0x2f7)](_0x3749c6['getId'](),{'type':_0x401889[_0x13ea91(0x155)][_0x13ea91(0x1fc)],'list':_0x1f8710,'isAll':!0x1});}}for(const {field:_0x3b6e9b,subTotalType:_0x10fb95,formatString:_0x27bcc5}of _0x5609f2||[]){const _0x5541be=_0x5d4a37[_0x13ea91(0x1e7)](_0xc21f50[_0x3b6e9b]);if(!_0x5541be)continue;const _0x3c1c82=_0xc21f50[_0x3b6e9b];if(_0x3c1c82){const _0x562cd6=_0x417234['addFieldWithSourceId'](_0x3c1c82,_0x401889['PivotTableFiledAreaEnum'][_0x13ea91(0x374)]);if(_0x562cd6){if(_0x10fb95!==void 0x0){_0x417234['setSubtotalType'](_0x562cd6['getId'](),_0x10fb95);const _0x1bfd53=this[_0x13ea91(0x296)][_0x13ea91(0x2c7)](_0xc6bad[_0x13ea91(0x1bd)])[_0x13ea91(0x2bd)]()||_0x401889[_0x13ea91(0x2a8)],_0x488aca=_0x5d4a37[_0x13ea91(0x3f8)](_0x3c1c82),_0x6abc3e=_0x1bfd53(_0x488aca,_0x10fb95);_0x417234[_0x13ea91(0x311)](_0x562cd6[_0x13ea91(0x347)](),_0x6abc3e);}else{if(_0x5541be){const _0xe6ce62=_0x5541be==null?void 0x0:_0x5541be[_0x13ea91(0x391)]();_0x417234['setSubtotalType'](_0x562cd6[_0x13ea91(0x347)](),_0xe6ce62===_0x401889[_0x13ea91(0x3af)]['number']?_0x401889[_0x13ea91(0x3dc)]['sum']:_0x401889[_0x13ea91(0x3dc)][_0x13ea91(0x159)]);}}_0x27bcc5&&_0x417234['setFieldFormat'](_0x562cd6[_0x13ea91(0x347)](),_0x27bcc5);}}}const _0x4ee8c0=_0x417234[_0x13ea91(0x2d8)](),_0x1ad754=_0x417234[_0x13ea91(0x2d3)](),_0x1cc933=_0x417234[_0x13ea91(0x17c)](),_0xb6bdf8=_0x417234[_0x13ea91(0x3ac)](),_0x317f28=_0x5d4a37[_0x13ea91(0x2d3)]();_0x3f90e1[_0x13ea91(0x326)]={'view':_0x4ee8c0,'fieldsConfig':_0x1ad754,'collectionConfig':_0x317f28,'isEmpty':_0x1cc933,'changesets':_0xb6bdf8};}break;case _0x281e70[_0x13ea91(0x337)]:{const _0xe3a130=_0x2ed9bd(this[_0x13ea91(0x3d4)],_0x25f18e);if(!_0xe3a130)return;const {range:_0x3ee4a6,sourceSubUnitId:_0x313e4b,sourceUnitId:_0xb56a87,formatMap:_0x1ac355,indexes:_0x49e83d}=_0xe3a130;_0x3f90e1['drillDown']={'range':_0x3ee4a6,'sourceSubUnitId':_0x313e4b,'sourceUnitId':_0xb56a87,'formatMap':_0x1ac355,'indexes':_0x49e83d};}break;}this[_0x13ea91(0x2b2)][_0x13ea91(0x1f8)](_0x252639['id'],{'version':_0x25f18e[_0x13ea91(0x122)],'result':_0x3f90e1},{'onlyLocal':!0x0});}));}[_0x504d77(0x248)](){const _0x35ef79=_0x504d77;this[_0x35ef79(0x25b)](this['_commandService']['onCommandExecuted'](_0x575585=>{if(_0x575585['id']!==_0x4c05b6['id'])return;const _0x404a0f=_0x575585['params'];return this['_sheetsPivotDataSourceModel']['setTextInfo'](_0x404a0f['textInfo']),!0x0;}));}['_subjectCollectionChange'](){const _0x3b703d=_0x504d77;this[_0x3b703d(0x296)]['collectionChange$'][_0x3b703d(0x271)](_0x2766be=>{const _0xc04995=_0x3b703d;switch(_0x2766be['type']){case _0x20561e[_0xc04995(0x213)]:_0x2766be[_0xc04995(0x1b7)]&&_0x2766be[_0xc04995(0x2b1)]&&this[_0xc04995(0x18f)](_0x2766be[_0xc04995(0x2ad)],_0x2766be['dataRangeInfo'],_0x2766be[_0xc04995(0x2b1)]);break;case _0x20561e[_0xc04995(0x30e)]:{const {unitId:_0x23be27,subUnitId:_0x247966,token:_0x51f13e}=_0x2766be;_0x23be27&&_0x247966&&_0x51f13e&&this['removeSourceRangeChange'](_0x23be27,_0x247966,_0x51f13e);}break;case _0x20561e[_0xc04995(0x28e)]:{const {token:_0xa15b00,oldSourceRangeInfo:_0x4e1117,dataRangeInfo:_0x79573e,targetCellInfo:_0x483a13}=_0x2766be,{unitId:_0x437a39,subUnitId:_0x204596}=_0x4e1117||{};_0x437a39&&_0x204596&&_0xa15b00&&this[_0xc04995(0x3fd)](_0x437a39,_0x204596,_0xa15b00),_0x79573e&&_0x483a13&&this['handleSourceRangeChange'](_0xa15b00,_0x79573e,_0x483a13);}break;}});}[_0x504d77(0x235)](){const _0x8d9281=_0x504d77;this[_0x8d9281(0x296)]['fieldsCollectionChange$'][_0x8d9281(0x271)](_0x3d7a26=>{const _0x12839b=_0x8d9281;Object[_0x12839b(0x38c)](_0x3d7a26)[_0x12839b(0x20a)](_0xfef066=>{const _0x2cfaec=_0x12839b,_0x3a3739=this['_sheetsPivotDataSourceModel'][_0x2cfaec(0x1ab)](_0xfef066);if(_0x3a3739){const _0x16ee20=this[_0x2cfaec(0x296)][_0x2cfaec(0x2fb)](_0x3a3739==null?void 0x0:_0x3a3739[_0x2cfaec(0x1bd)],_0x3a3739==null?void 0x0:_0x3a3739[_0x2cfaec(0x1aa)],_0xfef066);_0x16ee20&&(this[_0x2cfaec(0x18f)](_0xfef066,_0x16ee20[_0x2cfaec(0x2ce)],_0x16ee20[_0x2cfaec(0x2b1)]),this['triggerDirtyFeature']([{'unitId':_0x3a3739[_0x2cfaec(0x1bd)],'subUnitId':_0x3a3739[_0x2cfaec(0x1aa)],'token':_0xfef066}]));}});});}[_0x504d77(0x156)](){const _0x3ef6c3=_0x504d77;this['_sheetsPivotDataSourceModel'][_0x3ef6c3(0x32b)][_0x3ef6c3(0x271)](_0x5c410c=>{const _0x4b3b11=_0x3ef6c3,{unitId:_0x5c43ea,subUnitId:_0xc71fb,pivotTableId:_0x3189ff}=_0x5c410c;_0x5c43ea&&_0xc71fb&&_0x3189ff&&this[_0x4b3b11(0x2c6)]([{'unitId':_0x5c43ea,'subUnitId':_0xc71fb,'token':_0x3189ff}]);});}[_0x504d77(0x2c6)](_0x489e90){const _0x30a977=_0x504d77,_0x1e6883={};_0x489e90[_0x30a977(0x20a)](_0x2c0813=>{var _0x5926f2,_0xac8b2e;const {unitId:_0x4c096e,subUnitId:_0x2e7757,token:_0x42e037}=_0x2c0813;_0x1e6883[_0x4c096e]=(_0x5926f2=_0x1e6883[_0x4c096e])!=null?_0x5926f2:{},_0x1e6883[_0x4c096e][_0x2e7757]=(_0xac8b2e=_0x1e6883[_0x4c096e][_0x2e7757])!=null?_0xac8b2e:{},_0x1e6883[_0x4c096e][_0x2e7757][_0x42e037]=!0x0;}),this[_0x30a977(0x2b2)][_0x30a977(0x1f8)](_0x24bb10['id'],_0x1e6883);}[_0x504d77(0x3fd)](_0x438e84,_0x44c6a9,_0x5557fa){const _0xd91455=_0x504d77;this[_0xd91455(0x34c)][_0xd91455(0x16c)](_0x438e84,_0x44c6a9,[_0x5557fa]);}[_0x504d77(0x18f)](_0x386b5a,_0xab6610,_0x3816a7){const _0x1e850e=_0x504d77,{unitId:_0x39d6a0,subUnitId:_0x923bf6}=_0xab6610;this[_0x1e850e(0x34c)][_0x1e850e(0x407)](_0x3816a7[_0x1e850e(0x1bd)],_0x3816a7[_0x1e850e(0x1aa)],_0x386b5a)&&this[_0x1e850e(0x3fd)](_0x39d6a0,_0x923bf6,_0x386b5a);const _0x11f9db={'sheetId':_0x923bf6,..._0xab6610};this[_0x1e850e(0x34c)]['register'](_0x3816a7[_0x1e850e(0x1bd)],_0x3816a7[_0x1e850e(0x1aa)],_0x386b5a,{'unitId':_0x3816a7['unitId'],'subUnitId':_0x3816a7[_0x1e850e(0x1aa)],'dependencyRanges':[_0x11f9db],'getDirtyData':(_0x30f7bf,_0x543b2b)=>{const _0x4eacc6=_0x1e850e,_0x227cba=this[_0x4eacc6(0x296)],_0x4899f4=_0x227cba[_0x4eacc6(0x1ab)](_0x386b5a);if(!_0x4899f4)return _0x11131d();const {unitId:_0x5c54cb,subUnitId:_0x1a08e7}=_0x4899f4,_0xdaac2f=_0x19c40f(_0x30f7bf,_0x543b2b,_0xab6610);if(_0xdaac2f[_0x4eacc6(0x423)]>0x0){const _0x10badf=_0x227cba[_0x4eacc6(0x3f4)](_0x39d6a0,_0x386b5a),_0x2d6e0b=_0x10badf['getFieldIds'](),_0x4c30be=this[_0x4eacc6(0x136)](_0xab6610[_0x4eacc6(0x1bd)],_0xab6610['subUnitId'],_0x543b2b),_0xefffc7={},_0x2d5533=this[_0x4eacc6(0x296)][_0x4eacc6(0x2c7)](_0x5c54cb)[_0x4eacc6(0x2bd)]()||_0x401889['getAutoDisplayName'],_0x258703=[];for(const _0x195235 of _0xdaac2f){const _0x5e4bb7=_0x195235-(_0xab6610[_0x4eacc6(0x247)][_0x4eacc6(0x30d)]||0x0),_0x10b08d=_0x2d6e0b[_0x5e4bb7];_0x258703['push'](_0x10b08d),_0xefffc7[_0x10b08d]=_0x10badf[_0x4eacc6(0x1e7)](_0x10b08d)['getName'](),_0x227cba[_0x4eacc6(0x2c7)](_0x39d6a0)['refreshDataField'](_0x10b08d,_0xab6610,_0x5e4bb7,_0x4c30be);}_0x10badf[_0x4eacc6(0x195)](_0x258703)['forEach'](_0x159d02=>{const _0x112eb1=_0x4eacc6,[_0x4d9033,_0x1bbc91]=_0x159d02,_0x403356=_0x10badf[_0x112eb1(0x1e7)](_0x4d9033),_0x2d36c4=_0x10badf[_0x112eb1(0x1e7)](_0x1bbc91);_0x403356&&_0x2d36c4&&_0x403356[_0x112eb1(0x199)](_0x2d36c4);}),_0x10badf[_0x4eacc6(0x249)]();const _0x4a4160=_0x227cba['getPivotTableInstance'](_0x386b5a);if(_0x4a4160){_0x5ae9c9(_0x4a4160,_0xefffc7,_0x2d5533),_0x4a4160[_0x4eacc6(0x2ef)](!0x0);const _0xd0c1fe=_0x4a4160[_0x4eacc6(0x2d8)](),_0x2b1fc8=_0x227cba[_0x4eacc6(0x2fb)](_0x5c54cb,_0x1a08e7,_0x386b5a),_0x40d89d=_0x227cba[_0x4eacc6(0x2c7)](_0x39d6a0)[_0x4eacc6(0x2d3)]();_0x227cba['updateView'](_0x5c54cb,_0x1a08e7,_0x462181[_0x4eacc6(0x223)],_0x386b5a,_0xd0c1fe,_0x2b1fc8,_0x40d89d,!0x0);}}return this[_0x4eacc6(0x411)](_0x5c54cb,_0x1a08e7,_0x386b5a);}});}[_0x504d77(0x136)](_0xa53eca,_0x3f799c,_0x59e4d8){var _0x3e5032,_0x303729;const {arrayFormulaCellData:_0x41baa2,unitData:_0x1a2fb6}=_0x59e4d8,_0x1097eb=(_0x3e5032=_0x41baa2==null?void 0x0:_0x41baa2[_0xa53eca])==null?void 0x0:_0x3e5032[_0x3f799c],_0x1b595d=(_0x303729=_0x1a2fb6==null?void 0x0:_0x1a2fb6[_0xa53eca])==null?void 0x0:_0x303729[_0x3f799c];return{'arrayFormulaCellDataMatrix':_0x1097eb,'unitDataMatrix':_0x1b595d};}[_0x504d77(0x411)](_0x17610f,_0x1a26ec,_0x59d729){const _0x338e24=_0x504d77,_0x12038e=this[_0x338e24(0x296)][_0x338e24(0x2e3)](_0x17610f,_0x1a26ec,_0x59d729),_0x4c0a0b=[],_0x4e577c=new _0x7d31a[(_0x338e24(0x2ed))]();if(_0x12038e){const {rangeCache:_0x804a13,matrix:_0x1c35fc,oldRangeCache:_0x5b5f24,oldMatrix:_0x51d9ef}=_0x12038e,_0x54cf94=_0x318779(_0x5b5f24),_0x35875a=_0x318779(_0x804a13);_0x4c0a0b['push'](..._0x35875a,..._0x54cf94),_0x51d9ef&&_0x5b5f24&&_0x54cf94[_0x338e24(0x20a)](_0x35521c=>{const _0xa6cd78=_0x338e24;for(let _0x963bd=_0x35521c[_0xa6cd78(0x2d5)];_0x963bd<=_0x35521c[_0xa6cd78(0x125)];_0x963bd++)for(let _0x4bb195=_0x35521c[_0xa6cd78(0x30d)];_0x4bb195<=_0x35521c['endColumn'];_0x4bb195++)_0x4e577c[_0xa6cd78(0x14c)](_0x963bd,_0x4bb195);}),_0x1c35fc&&_0x35875a&&_0x35875a[_0x338e24(0x20a)](_0x94425d=>{const _0x56354a=_0x338e24;for(let _0x31a6ab=_0x94425d[_0x56354a(0x2d5)];_0x31a6ab<=_0x94425d['endRow'];_0x31a6ab++)for(let _0x481197=_0x94425d[_0x56354a(0x30d)];_0x481197<=_0x94425d[_0x56354a(0x1e1)];_0x481197++)_0x4e577c[_0x56354a(0x33d)](_0x31a6ab,_0x481197,_0x1c35fc[_0x56354a(0x3ee)](_0x31a6ab,_0x481197));});}const _0x19b4eb={};return _0x19b4eb[_0x17610f]={[_0x1a26ec]:_0x1735fd(_0x4c0a0b)},{'runtimeCellData':{[_0x17610f]:{[_0x1a26ec]:_0x4e577c}},'dirtyRanges':_0x19b4eb};}[_0x504d77(0x227)](){}};_0xa371f2=_0x1aaf0b([_0x4b5ae8(0x0,_0x7d31a[_0x504d77(0x2aa)](_0x8a946e[_0x504d77(0x3bd)])),_0x4b5ae8(0x1,_0x7d31a['IConfigService']),_0x4b5ae8(0x2,_0x7d31a['Inject'](_0x2e7afd[_0x504d77(0x181)])),_0x4b5ae8(0x3,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x214)])),_0x4b5ae8(0x4,_0x7d31a[_0x504d77(0x2aa)](_0x2e7afd['GlobalComputingStatusService'])),_0x4b5ae8(0x5,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x34d)]))],_0xa371f2);var _0x3100d3=Object[_0x504d77(0x353)],_0x102757=(_0x1efaae,_0x31517d,_0x15616e,_0x1f96fe)=>{const _0x2e47ff=_0x504d77;for(var _0x1a8869=_0x1f96fe>0x1?void 0x0:_0x1f96fe?_0x3100d3(_0x31517d,_0x15616e):_0x31517d,_0x5abb19=_0x1efaae[_0x2e47ff(0x423)]-0x1,_0x468665;_0x5abb19>=0x0;_0x5abb19--)(_0x468665=_0x1efaae[_0x5abb19])&&(_0x1a8869=_0x468665(_0x1a8869)||_0x1a8869);return _0x1a8869;},_0xbc70=(_0x53304e,_0x4ea282)=>(_0x200635,_0x16633b)=>_0x4ea282(_0x200635,_0x16633b,_0x53304e);let _0x587aa7=class extends _0x7d31a[_0x504d77(0x260)]{constructor(_0x5cc47d,_0x175aa5,_0x49d11a,_0x22dcf2){const _0x30e077=_0x504d77;super(),_0xa31747(this,'disposableCollection',new _0x7d31a['DisposableCollection']()),(this[_0x30e077(0x2db)]=_0x5cc47d,this[_0x30e077(0x3b6)]=_0x175aa5,this[_0x30e077(0x234)]=_0x49d11a,this[_0x30e077(0x1a7)]=_0x22dcf2,this[_0x30e077(0x3a8)]());}[_0x504d77(0x3a8)](){const _0x517316=_0x504d77;this[_0x517316(0x25b)](this[_0x517316(0x3b6)][_0x517316(0x3d3)]({'getMutations':_0x5e2b10=>{const _0x81ddd9=_0x517316;if(_0x5e2b10['id']===_0x399d28[_0x81ddd9(0x2bb)]['id']||_0x5e2b10['id']===_0x399d28[_0x81ddd9(0x14e)]['id']){const _0x16855f=[],_0x50c624=[],_0x58d7f1=this[_0x81ddd9(0x234)][_0x81ddd9(0x32e)]()[_0x81ddd9(0x410)](_0x172416=>_0x172416[_0x81ddd9(0x247)]),_0x27761e=_0x399d28[_0x81ddd9(0x33a)](this[_0x81ddd9(0x2db)]);if(!_0x27761e)return{'redos':[],'undos':[]};const {unitId:_0x2ae9fe,subUnitId:_0x261371}=_0x27761e,_0x2b3188={},_0x4157fe=this[_0x81ddd9(0x1a7)][_0x81ddd9(0x2cd)](_0x2ae9fe,_0x261371);if(_0x4157fe!=null&&_0x4157fe[_0x81ddd9(0x32d)])for(const [_0x5015bf,_0x3d7c70]of _0x4157fe){const {unitId:_0x501d20,subUnitId:_0x5f4210,row:_0x7c1e83,col:_0x1285de}=_0x3d7c70[_0x81ddd9(0x2b1)];_0x501d20===_0x27761e[_0x81ddd9(0x1bd)]&&_0x5f4210===_0x27761e[_0x81ddd9(0x1aa)]&&(_0x2b3188[_0x7c1e83+'-'+_0x1285de]=_0x5015bf);}return _0x58d7f1&&_0x27761e&&_0x58d7f1['forEach'](_0x212992=>{const _0x16e3ec=_0x81ddd9;_0x7d31a[_0x16e3ec(0x3bf)]['foreach'](_0x212992,(_0x5a449b,_0xc895c8)=>{const _0x41b3d3=_0x16e3ec,_0x600153=_0x5a449b+'-'+_0xc895c8;if(_0x2b3188[_0x600153]){const _0x33f6d5=_0x2b3188[_0x600153];_0x16855f[_0x41b3d3(0x25f)]({'id':_0x4356ce['id'],'params':{'unitId':_0x2ae9fe,'subUnitId':_0x261371,'pivotTableId':_0x33f6d5}});const _0x37c8d2=this[_0x41b3d3(0x1a7)][_0x41b3d3(0x3f4)](_0x2ae9fe,_0x33f6d5),_0xde454=this[_0x41b3d3(0x1a7)][_0x41b3d3(0x2fb)](_0x2ae9fe,_0x261371,_0x33f6d5);_0x50c624[_0x41b3d3(0x25f)]({'id':_0x595299['id'],'params':{'unitId':_0x2ae9fe,'subUnitId':_0x261371,'pivotTableId':_0x33f6d5,'pivotTableConfig':_0xde454,'collectionConfig':_0x37c8d2}});}});}),{'redos':_0x16855f,'undos':_0x50c624};}return{'redos':[],'undos':[]};}}));}};_0x587aa7=_0x102757([_0xbc70(0x0,_0x7d31a[_0x504d77(0x253)]),_0xbc70(0x1,_0x7d31a[_0x504d77(0x2aa)](_0x399d28[_0x504d77(0x24c)])),_0xbc70(0x2,_0x7d31a[_0x504d77(0x2aa)](_0x399d28[_0x504d77(0x2fc)])),_0xbc70(0x3,_0x7d31a[_0x504d77(0x2aa)](_0x8a946e[_0x504d77(0x241)]))],_0x587aa7);var _0x362527=Object[_0x504d77(0x353)],_0x57afd0=(_0x885853,_0x560b33,_0x37d669,_0x54c8b1)=>{const _0x423c2e=_0x504d77;for(var _0x59ff3f=_0x54c8b1>0x1?void 0x0:_0x54c8b1?_0x362527(_0x560b33,_0x37d669):_0x560b33,_0x46d621=_0x885853[_0x423c2e(0x423)]-0x1,_0x23989f;_0x46d621>=0x0;_0x46d621--)(_0x23989f=_0x885853[_0x46d621])&&(_0x59ff3f=_0x23989f(_0x59ff3f)||_0x59ff3f);return _0x59ff3f;},_0x27ddf6=(_0xf5f1e1,_0x374896)=>(_0x552a3e,_0x51db4c)=>_0x374896(_0x552a3e,_0x51db4c,_0xf5f1e1);let _0x4653a3=class extends _0x7d31a['Disposable']{constructor(_0x1c6948,_0x19facc,_0x332bdb,_0x58f52a,_0x3e873e,_0xf2d04d){const _0x12fc92=_0x504d77;super(),this[_0x12fc92(0x161)]=_0x1c6948,this['_sheetInterceptorService']=_0x19facc,this['_injector']=_0x332bdb,this['_univerInstanceService']=_0x58f52a,this[_0x12fc92(0x1a7)]=_0x3e873e,this['_sheetsPivotTableService']=_0xf2d04d,this[_0x12fc92(0x1d7)]();}[_0x504d77(0x217)](_0x35b16a,_0x3e55b0,_0x4a2954){const _0x4e4ea1=_0x504d77,{pageView:_0x179e1e,cornerView:_0x1267bf,rowView:_0x32a97a,colView:_0x408225,dataView:_0x1412be}=_0x3e55b0,_0x35c3ba=_0x35b16a;let _0x5dff7e;if(_0x4a2954)_0x5dff7e=[..._0x3569d6(_0x35c3ba)];else{const _0x4770ca=_0x15efc2(_0x35c3ba,_0x179e1e,!0x0),_0x335364=_0x179e1e['lastRow']>=0x0?_0x179e1e[_0x4e4ea1(0x1e8)]+0x1:0x0,_0x3ebf6f=_0x1267bf[_0x4e4ea1(0x13e)],_0x5c87f4=_0x1267bf[_0x4e4ea1(0x226)],_0x130921=_0x4770ca[_0x4e4ea1(0x423)]>0x0?_0x548227:0x0,_0x49eb87=_0x15efc2({'row':_0x35c3ba['row']+_0x335364+_0x130921,'col':_0x35c3ba['col']},_0x1267bf,!0x1,!0x1),_0x5d0ff7=_0x15efc2({'row':_0x35c3ba['row']+_0x335364+_0x130921+_0x3ebf6f,'col':_0x35c3ba[_0x4e4ea1(0x2c0)]},_0x32a97a,!0x1,!0x0),_0x2525a8=_0x15efc2({'row':_0x35c3ba[_0x4e4ea1(0x196)]+_0x335364+_0x130921,'col':_0x35c3ba[_0x4e4ea1(0x2c0)]+_0x5c87f4},_0x408225,!0x1,!0x0),_0x50bd2e=_0x15efc2({'row':_0x35c3ba[_0x4e4ea1(0x196)]+_0x335364+_0x130921+_0x3ebf6f,'col':_0x35c3ba[_0x4e4ea1(0x2c0)]+_0x5c87f4},_0x1412be,!0x1,!0x0);_0x5dff7e=[..._0x4770ca,..._0x49eb87,..._0x5d0ff7,..._0x2525a8,..._0x50bd2e];}return _0x5dff7e;}[_0x504d77(0x1d7)](){const _0x9a9740=_0x504d77;this['disposeWithMe'](this['_sheetsPivotTableService'][_0x9a9740(0x2b8)][_0x9a9740(0x14d)](this[_0x9a9740(0x310)][_0x9a9740(0x2b8)][_0x9a9740(0x1a2)]()[_0x9a9740(0x356)],{'handler':(_0x31794a,_0x5b76ea)=>{const _0x375620=_0x9a9740,{cellInfo:_0x500261,view:_0x1a1b4f,isEmpty:_0x2c95b3}=_0x5b76ea,_0x592871=_0x500261,{unitId:_0x547c6f,subUnitId:_0x8d07fc}=_0x592871,_0x320de1=this[_0x375620(0x217)](_0x500261,_0x1a1b4f,_0x2c95b3),_0x201657=this[_0x375620(0x3b6)][_0x375620(0x363)]({'unitId':_0x547c6f,'subUnitId':_0x8d07fc,'ranges':_0x320de1}),_0x2b5fe9=_0x18953a(this[_0x375620(0x3d4)],_0x547c6f,_0x8d07fc,_0x320de1);_0x2b5fe9[_0x375620(0x339)]&&(_0x201657[_0x375620(0x369)][_0x375620(0x25f)](_0x2b5fe9[_0x375620(0x307)]),_0x201657['undos']['push'](_0x2b5fe9[_0x375620(0x38d)]));const _0x390010=this[_0x375620(0x231)](_0x1a1b4f,_0x500261);return _0x201657[_0x375620(0x369)][_0x375620(0x25f)](..._0x390010['redos']),_0x201657['undos']['push'](..._0x390010['undos']),{'redos':_0x201657[_0x375620(0x369)],'undos':_0x201657['undos']};}}));}[_0x504d77(0x231)](_0x3ee81a,_0x4c8a12){const _0x319179=_0x504d77,{col:_0x130fb9,unitId:_0x41367f,subUnitId:_0x1224f9}=_0x4c8a12,_0x15e99b=[],_0x980eae=[],_0x496fc2=_0x399d28[_0x319179(0x33a)](this['_univerInstanceService'],{'unitId':_0x41367f,'subUnitId':_0x1224f9});if(!_0x4c8a12||!_0x3ee81a||!_0x496fc2)return{'undos':_0x980eae,'redos':_0x15e99b};const _0x3e87e6=this[_0x319179(0x1a7)][_0x319179(0x257)](),{colView:_0x16f28f,dataView:_0x2a176f,cornerView:_0x2959ae,rowView:_0x4c05f7,formatMap:_0x37a228}=_0x3ee81a,_0x42d48b=_0x571d1f(_0x16f28f,_0x3e87e6,!0x0,_0x37a228),_0x227507=_0x571d1f(_0x4c05f7,_0x3e87e6,!0x1,_0x37a228),_0x5c2d96=_0x45e89b(_0x2a176f),_0x3476a3=_0x5d29fb(_0x2959ae),{worksheet:_0xd426db}=_0x496fc2;if(typeof window<'u'&&window['document']){const _0x55d37e=_0x38302b[_0x319179(0x41c)]({..._0x2f9434[_0x319179(0x355)]}),_0x14cd4c=_0x38302b[_0x319179(0x3f5)][_0x319179(0x228)](_0x42d48b,_0x55d37e)[_0x319179(0x21b)]+0x10,_0x93ef51=_0x38302b[_0x319179(0x3f5)]['getTextSize'](_0x5c2d96,_0x55d37e)['width'],_0x5e8871=Math[_0x319179(0x323)](Math[_0x319179(0x262)](_0x14cd4c,_0x93ef51))+0x10,_0xc88c8b=Math[_0x319179(0x323)](_0x38302b['FontCache']['getTextSize'](_0x227507,_0x55d37e)[_0x319179(0x21b)]),_0x6178e8=Math[_0x319179(0x323)](_0x38302b[_0x319179(0x3f5)]['getTextSize'](_0x3476a3,_0x55d37e)[_0x319179(0x21b)]),_0x2e8f7e=Math['max'](_0xc88c8b,_0x6178e8,0x28)+0xc,_0x2c85c4=_0x16f28f[_0x319179(0x226)]+_0x2959ae['colCount'],_0x532419={},_0x48abf7={};for(let _0x5b51e6=_0x130fb9;_0x5b51e6<_0x130fb9+_0x2c85c4;_0x5b51e6++){const _0x1705f0=_0xd426db['getColumnWidth'](_0x5b51e6);_0x532419[_0x5b51e6]=_0x1705f0,_0x5b51e6-_0x130fb9<_0x2959ae['colCount']?_0x48abf7[_0x5b51e6-_0x130fb9]=_0x2e8f7e:_0x48abf7[_0x5b51e6-_0x130fb9]=_0x5e8871;}_0x15e99b[_0x319179(0x25f)]({'id':_0x399d28[_0x319179(0x1b1)]['id'],'params':{'subUnitId':_0x1224f9,'unitId':_0x41367f,'ranges':[{'startColumn':_0x130fb9,'endColumn':_0x130fb9+_0x2c85c4-0x1,'startRow':0x0,'endRow':_0xd426db[_0x319179(0x270)]()-0x1}],'colWidth':_0x48abf7}}),_0x980eae[_0x319179(0x25f)]({'id':_0x399d28['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x1224f9,'unitId':_0x41367f,'ranges':[{'startColumn':_0x130fb9,'endColumn':_0x130fb9+_0x2c85c4-0x1,'startRow':0x0,'endRow':_0xd426db[_0x319179(0x270)]()-0x1}],'colWidth':_0x532419}});}return{'undos':_0x980eae,'redos':_0x15e99b};}};_0x4653a3=_0x57afd0([_0x27ddf6(0x0,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x3e5)])),_0x27ddf6(0x1,_0x7d31a['Inject'](_0x399d28[_0x504d77(0x24c)])),_0x27ddf6(0x2,_0x7d31a['Inject'](_0x7d31a['Injector'])),_0x27ddf6(0x3,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x253)])),_0x27ddf6(0x4,_0x7d31a[_0x504d77(0x2aa)](_0x8a946e[_0x504d77(0x241)])),_0x27ddf6(0x5,_0x7d31a['Inject'](_0x8a946e[_0x504d77(0x12a)]))],_0x4653a3);var _0xb870e2=Object['getOwnPropertyDescriptor'],_0x5e43b8=(_0xe2430,_0x1cf869,_0x38194e,_0x56814b)=>{for(var _0x2d739b=_0x56814b>0x1?void 0x0:_0x56814b?_0xb870e2(_0x1cf869,_0x38194e):_0x1cf869,_0xe2c253=_0xe2430['length']-0x1,_0x3d2403;_0xe2c253>=0x0;_0xe2c253--)(_0x3d2403=_0xe2430[_0xe2c253])&&(_0x2d739b=_0x3d2403(_0x2d739b)||_0x2d739b);return _0x2d739b;},_0xaa398e=(_0x2bf19d,_0x57f15c)=>(_0x12ddca,_0x47dfda)=>_0x57f15c(_0x12ddca,_0x47dfda,_0x2bf19d);let _0x5d846b=class extends _0x7d31a[_0x504d77(0x260)]{constructor(_0x38b6d1,_0x20214d,_0x368e3b,_0x414cbe,_0x9d0961,_0x492b16,_0x8b7dc7){const _0x5dd443=_0x504d77;super(),_0xa31747(this,_0x5dd443(0x190),new _0x7d31a[(_0x5dd443(0x34a))]()),(this[_0x5dd443(0x3d4)]=_0x38b6d1,this[_0x5dd443(0x133)]=_0x20214d,this[_0x5dd443(0x2b2)]=_0x368e3b,this[_0x5dd443(0x2db)]=_0x414cbe,this[_0x5dd443(0x1a7)]=_0x9d0961,this[_0x5dd443(0x3a6)]=_0x492b16,this[_0x5dd443(0x3b6)]=_0x8b7dc7,this[_0x5dd443(0x18e)]());}[_0x504d77(0x18e)](){const _0x21df32=_0x504d77,_0x52a5ee=(_0x3545f9,_0x908c88)=>{const _0x3cdcf9=_0x4059,_0x57b8b1=this[_0x3cdcf9(0x2db)][_0x3cdcf9(0x331)](_0x7d31a[_0x3cdcf9(0x24f)]['UNIVER_SHEET']);if(!_0x57b8b1||!(_0x57b8b1==null?void 0x0:_0x57b8b1['getSheetBySheetId'](_0x908c88)))return;this[_0x3cdcf9(0x190)][_0x3cdcf9(0x227)]();const _0x38c30e=_0x43a6a9=>this[_0x3cdcf9(0x332)](_0x43a6a9,_0x3545f9,_0x908c88),_0x5a5ab4=this[_0x3cdcf9(0x1a7)][_0x3cdcf9(0x2cd)](_0x3545f9,_0x908c88);if(!(_0x5a5ab4!=null&&_0x5a5ab4['size']))return;Array[_0x3cdcf9(0x20c)](_0x5a5ab4[_0x3cdcf9(0x3de)]())[_0x3cdcf9(0x410)](_0x5d5733=>{const {row:_0x5d3ffd,col:_0x380708}=_0x5d5733['targetCellInfo'];return _0x7d31a['cellToRange'](_0x5d3ffd,_0x380708);})['forEach'](_0x6971b8=>{const _0x58ac20=_0x3cdcf9;this['disposableCollection'][_0x58ac20(0x213)](this[_0x58ac20(0x133)][_0x58ac20(0x295)](_0x6971b8,_0x38c30e,_0x3545f9,_0x908c88));});},_0x2c66a7=()=>{const _0x51b10d=_0x4059,_0x5e98de=this[_0x51b10d(0x2db)][_0x51b10d(0x331)](_0x7d31a[_0x51b10d(0x24f)]['UNIVER_SHEET']);if(_0x5e98de){const _0x183951=_0x5e98de[_0x51b10d(0x2e7)]();if(!_0x183951)return;_0x52a5ee(_0x5e98de[_0x51b10d(0x177)](),_0x183951['getSheetId']());}};this[_0x21df32(0x25b)](this['_commandService']['onCommandExecuted'](_0x580a02=>{const _0x4c7355=_0x21df32;if(_0x580a02['id']===_0x399d28[_0x4c7355(0x31b)]['id']){const _0x50d7dc=_0x580a02[_0x4c7355(0x176)],_0x32ef35=_0x50d7dc[_0x4c7355(0x1aa)],_0x4b4903=_0x50d7dc[_0x4c7355(0x1bd)];if(!_0x32ef35||!_0x4b4903)return;_0x52a5ee(_0x4b4903,_0x32ef35);}})),this[_0x21df32(0x25b)](this[_0x21df32(0x1a7)]['pivotInitCompleted$']['subscribe'](_0x1d271e=>{_0x1d271e&&_0x2c66a7();})),this['disposeWithMe'](this[_0x21df32(0x1a7)][_0x21df32(0x28f)][_0x21df32(0x271)](_0x210f77=>{const _0x480343=_0x21df32,_0x373f1a=_0x399d28[_0x480343(0x33a)](this[_0x480343(0x2db)]);if(!_0x373f1a)return;const {unitId:_0x490853,subUnitId:_0x346b64}=_0x373f1a,{unitId:_0x3a5f84,subUnitId:_0x162974}=_0x210f77;_0x490853!==_0x3a5f84||_0x346b64!==_0x162974||_0x52a5ee(_0x490853,_0x346b64);})),_0x2c66a7();}[_0x504d77(0x332)](_0x3e1fa7,_0x178cb7,_0x500f27){const _0x3e1f16=_0x504d77;switch(_0x3e1fa7['id']){case _0x399d28['MoveRangeCommand']['id']:return this[_0x3e1f16(0x3df)](_0x3e1fa7[_0x3e1f16(0x176)],_0x178cb7,_0x500f27);}return{'redos':[],'undos':[]};}[_0x504d77(0x3df)](_0x8da05d,_0x5244fe,_0x8ee0e1){const _0x4691c4=_0x504d77,{fromRange:_0x582133,toRange:_0x6fd483}=_0x8da05d,_0x3d96ac=[],_0x970d0a=[],_0x211640=_0x399d28['getSheetCommandTarget'](this['_univerInstanceService']);if(!_0x211640)return{'undos':_0x970d0a,'redos':_0x3d96ac};if(_0x5244fe!==_0x211640['unitId']||_0x8ee0e1!==_0x211640[_0x4691c4(0x1aa)])return{'undos':_0x970d0a,'redos':_0x3d96ac};const _0x3792a4=this[_0x4691c4(0x1a7)][_0x4691c4(0x2cd)](_0x5244fe,_0x8ee0e1);if(_0x3792a4!=null&&_0x3792a4[_0x4691c4(0x32d)])for(const [_0x229c81,_0x5d637a]of _0x3792a4){const {unitId:_0x3e587a,subUnitId:_0x545c47,row:_0x602724,col:_0x325068}=_0x5d637a[_0x4691c4(0x2b1)];if(_0x3e587a===_0x211640[_0x4691c4(0x1bd)]&&_0x545c47===_0x211640[_0x4691c4(0x1aa)]){const _0x55c8f0=_0x7d31a[_0x4691c4(0x364)](_0x602724,_0x325068);if(_0x7d31a[_0x4691c4(0x1e6)][_0x4691c4(0x2d7)](_0x55c8f0,_0x582133)){const _0x63c2e5=_0x602724-_0x582133[_0x4691c4(0x2d5)],_0x10c9d5=_0x325068-_0x582133[_0x4691c4(0x30d)],_0x2c66cd={'row':_0x6fd483[_0x4691c4(0x2d5)]+_0x63c2e5,'col':_0x6fd483[_0x4691c4(0x30d)]+_0x10c9d5};_0x3d96ac[_0x4691c4(0x25f)]({'id':_0x123019['id'],'params':{'unitId':_0x3e587a,'subUnitId':_0x545c47,'pivotTableId':_0x229c81,'targetCellPosition':_0x2c66cd}}),_0x970d0a['push']({'id':_0x123019['id'],'params':{'unitId':_0x3e587a,'subUnitId':_0x545c47,'pivotTableId':_0x229c81,'targetCellPosition':{'row':_0x602724,'col':_0x325068}}});const _0x2230e7=_0x2c66cd['row']-_0x602724,_0x36476a=_0x2c66cd[_0x4691c4(0x2c0)]-_0x325068,_0x5e842e=[],_0x146799=this[_0x4691c4(0x3a6)][_0x4691c4(0x22e)](_0x3e587a,_0x545c47,_0x229c81),_0x196906=_0x146799==null?void 0x0:_0x146799[_0x4691c4(0x15e)];if(_0x196906){Object[_0x4691c4(0x38c)](_0x196906)[_0x4691c4(0x20a)](_0x51fffb=>{_0x196906[_0x51fffb]['forEach'](_0x52bd2e=>{const _0x3fa5d0=_0x4059,_0x1699f0={..._0x52bd2e};_0x1699f0[_0x3fa5d0(0x2d5)]=_0x52bd2e[_0x3fa5d0(0x2d5)]+_0x2230e7,_0x1699f0[_0x3fa5d0(0x125)]=_0x52bd2e[_0x3fa5d0(0x125)]+_0x2230e7,_0x1699f0['startColumn']=_0x52bd2e[_0x3fa5d0(0x30d)]+_0x36476a,_0x1699f0['endColumn']=_0x52bd2e[_0x3fa5d0(0x1e1)]+_0x36476a,_0x5e842e[_0x3fa5d0(0x25f)](_0x1699f0);});});const _0x1d6b98=this[_0x4691c4(0x3b6)][_0x4691c4(0x363)]({'unitId':_0x3e587a,'subUnitId':_0x545c47,'ranges':_0x5e842e});_0x3d96ac[_0x4691c4(0x25f)](..._0x1d6b98[_0x4691c4(0x369)]),_0x970d0a['push'](..._0x1d6b98['undos']);const _0xbf5239=_0x18953a(this[_0x4691c4(0x3d4)],_0x3e587a,_0x545c47,_0x5e842e);_0xbf5239[_0x4691c4(0x339)]&&(_0x3d96ac['push'](_0xbf5239[_0x4691c4(0x307)]),_0x970d0a[_0x4691c4(0x25f)](_0xbf5239[_0x4691c4(0x38d)]));}}}}return{'redos':_0x3d96ac,'undos':_0x970d0a};}};_0x5d846b=_0x5e43b8([_0xaa398e(0x0,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x34d)])),_0xaa398e(0x1,_0x7d31a['Inject'](_0x399d28[_0x504d77(0x1ea)])),_0xaa398e(0x2,_0x7d31a['ICommandService']),_0xaa398e(0x3,_0x7d31a[_0x504d77(0x253)]),_0xaa398e(0x4,_0x7d31a[_0x504d77(0x2aa)](_0x8a946e[_0x504d77(0x241)])),_0xaa398e(0x5,_0x7d31a[_0x504d77(0x2aa)](_0x8a946e[_0x504d77(0x325)])),_0xaa398e(0x6,_0x7d31a['Inject'](_0x399d28['SheetInterceptorService']))],_0x5d846b);var _0x1a4659=Object[_0x504d77(0x353)],_0x2c20c1=(_0x592131,_0x55a404,_0x1ea20,_0x56efb6)=>{const _0x5c236e=_0x504d77;for(var _0x59aedd=_0x56efb6>0x1?void 0x0:_0x56efb6?_0x1a4659(_0x55a404,_0x1ea20):_0x55a404,_0x32f198=_0x592131[_0x5c236e(0x423)]-0x1,_0x15f179;_0x32f198>=0x0;_0x32f198--)(_0x15f179=_0x592131[_0x32f198])&&(_0x59aedd=_0x15f179(_0x59aedd)||_0x59aedd);return _0x59aedd;},_0x36dc5e=(_0x4f2005,_0x115521)=>(_0x3ff669,_0x41b9fb)=>_0x115521(_0x3ff669,_0x41b9fb,_0x4f2005);let _0x477944=class extends _0x7d31a[_0x504d77(0x260)]{constructor(_0x30b878,_0xb3611c){const _0x16ce9e=_0x504d77;super(),this[_0x16ce9e(0x3b6)]=_0x30b878,this[_0x16ce9e(0x1a7)]=_0xb3611c,this[_0x16ce9e(0x33b)]();}['_initRemoveSheetCommandInterceptor'](){const _0x3de343=_0x504d77;this[_0x3de343(0x25b)](this['_sheetInterceptorService'][_0x3de343(0x3d3)]({'getMutations':_0x9ad90a=>{const _0x4cef1a=_0x3de343;if(_0x9ad90a['id']===_0x399d28['RemoveSheetCommand']['id']){const _0x477f99=[],_0x26cc03=[],_0x47ada1=_0x9ad90a[_0x4cef1a(0x176)],{unitId:_0x28425f,subUnitId:_0x4e83a5}=_0x47ada1;if(!_0x28425f||!_0x4e83a5)return{'undos':_0x26cc03,'redos':_0x477f99};const _0x2947bb=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x28425f,_0x4e83a5);if(_0x2947bb!=null&&_0x2947bb['size'])for(const [_0x1f73e4,_0x5e5040]of _0x2947bb){_0x477f99['push']({'id':_0x4356ce['id'],'params':{'unitId':_0x28425f,'subUnitId':_0x4e83a5,'pivotTableId':_0x1f73e4}});const _0x1ced82={...this[_0x4cef1a(0x1a7)]['getCollection'](_0x28425f,_0x1f73e4)};_0x26cc03[_0x4cef1a(0x25f)]({'id':_0x595299['id'],'params':{'unitId':_0x28425f,'subUnitId':_0x4e83a5,'pivotTableId':_0x1f73e4,'pivotTableConfig':_0x5e5040,'collectionConfig':_0x1ced82}});}return{'redos':_0x477f99,'undos':_0x26cc03};}return{'redos':[],'undos':[]};}}));}};_0x477944=_0x2c20c1([_0x36dc5e(0x0,_0x7d31a[_0x504d77(0x2aa)](_0x399d28['SheetInterceptorService'])),_0x36dc5e(0x1,_0x7d31a['Inject'](_0x8a946e['SheetsPivotTableConfigModel']))],_0x477944);var _0x48784d=Object[_0x504d77(0x353)],_0x588ebf=(_0x2f1636,_0x1f71ee,_0x1fff83,_0x57fda7)=>{const _0xe3e12a=_0x504d77;for(var _0x3cfe62=_0x57fda7>0x1?void 0x0:_0x57fda7?_0x48784d(_0x1f71ee,_0x1fff83):_0x1f71ee,_0x3dd5bb=_0x2f1636[_0xe3e12a(0x423)]-0x1,_0x1c7a51;_0x3dd5bb>=0x0;_0x3dd5bb--)(_0x1c7a51=_0x2f1636[_0x3dd5bb])&&(_0x3cfe62=_0x1c7a51(_0x3cfe62)||_0x3cfe62);return _0x3cfe62;},_0x2b5b61=(_0x42a071,_0x2582bb)=>(_0x2abf95,_0x4d744f)=>_0x2582bb(_0x2abf95,_0x4d744f,_0x42a071);let _0x3feac1=class extends _0x7d31a[_0x504d77(0x260)]{constructor(_0xcbaf94,_0x2bd014,_0x43e67d,_0x2a9269,_0xe23195,_0x3b4da8){const _0x51de1f=_0x504d77;super(),this['_commandService']=_0xcbaf94,this[_0x51de1f(0x3ff)]=_0x2bd014,this['_sheetsPivotTableAdaptorModel']=_0x43e67d,this['_sheetsPivotTableConfigModel']=_0x2a9269,this[_0x51de1f(0x2db)]=_0xe23195,this[_0x51de1f(0x2e4)]=_0x3b4da8,this[_0x51de1f(0x1df)](),this[_0x51de1f(0x276)]();}[_0x504d77(0x1df)](){const _0x466755=_0x504d77;this[_0x466755(0x25b)](this[_0x466755(0x2b2)][_0x466755(0x35f)](_0x4f6217=>{const _0x5b93b8=_0x466755;if(_0x4f6217['id']!==_0x252639['id'])return;const _0x359ca4=_0x4f6217['params'];this[_0x5b93b8(0x3ff)][_0x5b93b8(0x2af)](_0x359ca4);})),this[_0x466755(0x25b)](this[_0x466755(0x2b2)][_0x466755(0x35f)](_0x24ad3e=>{const _0x517a40=_0x466755;if(_0x24ad3e['id']===_0x14a613['id']){const _0x2ee285=_0x24ad3e[_0x517a40(0x176)];if(_0x2ee285){const {unitId:_0x437916,subUnitId:_0x1783f7,oldSubUnitId:_0xcec12,pivotTableId:_0x10c93a,pivotTableConfig:_0x5e4b61,collectionConfig:_0x3f7350}=_0x2ee285;this['_sheetsPivotTableConfigModel'][_0x517a40(0x3e0)](_0x437916,_0xcec12,_0x2ee285[_0x517a40(0x19b)],null),this[_0x517a40(0x1a7)][_0x517a40(0x3e0)](_0x437916,_0x1783f7,_0x10c93a,_0x5e4b61),this[_0x517a40(0x1a7)]['updateCollectionConfig'](_0x437916,_0x3f7350);}}})),this[_0x466755(0x25b)](this[_0x466755(0x2b2)][_0x466755(0x35f)](_0x92120d=>{const _0x19cb9b=_0x466755;if(_0x92120d['id']!==_0x592b77['id'])return;const _0x5e48e5=_0x399d28[_0x19cb9b(0x33a)](this[_0x19cb9b(0x2db)]);if(!_0x5e48e5)return;const {unitId:_0x5d3329,subUnitId:_0x502b24}=_0x5e48e5,_0x141d86=_0x92120d[_0x19cb9b(0x176)];if(_0x141d86['collectionConfig']&&Object[_0x19cb9b(0x38c)](_0x141d86[_0x19cb9b(0x218)])[_0x19cb9b(0x20a)](_0x42eefc=>{const _0x5bc068=_0x19cb9b;var _0x4c3aa8;(_0x4c3aa8=_0x141d86[_0x5bc068(0x218)])!=null&&_0x4c3aa8[_0x42eefc]&&this[_0x5bc068(0x1a7)]['updateCollectionConfig'](_0x42eefc,_0x141d86['collectionConfig'][_0x42eefc]);}),_0x141d86[_0x19cb9b(0x3f2)]){const _0xe22415=_0x141d86['single'],{unitId:_0x439b0f,subUnitId:_0x2daca8,view:_0x3ad656,pivotTableId:_0x385510,type:_0x3d949a,pivotConfig:_0x56f5da}=_0xe22415;if(_0x3d949a===_0x462181[_0x19cb9b(0x29a)])this[_0x19cb9b(0x3a6)][_0x19cb9b(0x406)]({'unitId':_0x439b0f,'subUnitId':_0x2daca8,'pivotTableId':_0x385510,'type':_0x3d949a}),this['_sheetsPivotTableConfigModel'][_0x19cb9b(0x3e0)](_0x439b0f,_0x2daca8,_0x385510,null);else{const _0x43a70d=new _0x401889[(_0x19cb9b(0x34f))]();_0x43a70d['formJSON'](_0x3ad656),this['_sheetsPivotTableConfigModel'][_0x19cb9b(0x3e0)](_0x439b0f,_0x2daca8,_0x385510,_0x56f5da),this['_sheetsPivotTableAdaptorModel'][_0x19cb9b(0x406)]({'unitId':_0x439b0f,'subUnitId':_0x2daca8,'pivotTableId':_0x385510,'type':_0x3d949a,'view':_0x43a70d}),this[_0x19cb9b(0x3a6)]['updateRenderCache']({'unitId':_0x439b0f,'subUnitId':_0x2daca8,'view':_0x43a70d,'pivotTableId':_0x385510,'type':_0x3d949a});}}else _0x141d86[_0x19cb9b(0x26a)]&&(_0x141d86[_0x19cb9b(0x26a)][_0x19cb9b(0x20a)](_0x17a844=>{const _0x32e581=_0x19cb9b,{unitId:_0x2834dd,subUnitId:_0x4f5409,view:_0x2e45e4,pivotTableId:_0x4f190b,type:_0x1bfb12,pivotConfig:_0x5b10d9}=_0x17a844,_0x3fe75a=new _0x401889[(_0x32e581(0x34f))]();_0x3fe75a[_0x32e581(0x386)](_0x2e45e4),this[_0x32e581(0x1a7)][_0x32e581(0x3e0)](_0x2834dd,_0x4f5409,_0x4f190b,_0x5b10d9),this[_0x32e581(0x3a6)][_0x32e581(0x2b4)]({'unitId':_0x2834dd,'subUnitId':_0x4f5409,'view':_0x3fe75a,'pivotTableId':_0x4f190b,'type':_0x1bfb12});}),this[_0x19cb9b(0x1a7)]['setPivotInitCompleted']());this[_0x19cb9b(0x3a6)][_0x19cb9b(0x13c)](_0x5d3329,_0x502b24);}));}[_0x504d77(0x276)](){const _0x5db98f=_0x504d77;this[_0x5db98f(0x2e4)][_0x5db98f(0x222)](_0x24bb10['id'],{'commandId':_0x24bb10['id'],'getDirtyData'(_0x26fe1d){const _0x157f7f=_0x5db98f;return{'dirtyUnitFeatureMap':_0x26fe1d[_0x157f7f(0x176)]};}});}};_0x3feac1=_0x588ebf([_0x2b5b61(0x0,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x214)])),_0x2b5b61(0x1,_0x7d31a[_0x504d77(0x2aa)](_0x8a946e[_0x504d77(0x1c0)])),_0x2b5b61(0x2,_0x7d31a[_0x504d77(0x2aa)](_0x8a946e[_0x504d77(0x325)])),_0x2b5b61(0x3,_0x7d31a[_0x504d77(0x2aa)](_0x8a946e['SheetsPivotTableConfigModel'])),_0x2b5b61(0x4,_0x7d31a['Inject'](_0x7d31a['IUniverInstanceService'])),_0x2b5b61(0x5,_0x2e7afd['IActiveDirtyManagerService'])],_0x3feac1);var _0x4bf17b=Object[_0x504d77(0x3fb)],_0x4d5022=Object[_0x504d77(0x353)],_0x101d25=(_0xb934cd,_0x10100d,_0x291580)=>_0x10100d in _0xb934cd?_0x4bf17b(_0xb934cd,_0x10100d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x291580}):_0xb934cd[_0x10100d]=_0x291580,_0x476f3b=(_0x54b525,_0x2441c8,_0x558320,_0x4af11a)=>{for(var _0x3c6e89=_0x4af11a>0x1?void 0x0:_0x4af11a?_0x4d5022(_0x2441c8,_0x558320):_0x2441c8,_0x516c0b=_0x54b525['length']-0x1,_0x1db5de;_0x516c0b>=0x0;_0x516c0b--)(_0x1db5de=_0x54b525[_0x516c0b])&&(_0x3c6e89=_0x1db5de(_0x3c6e89)||_0x3c6e89);return _0x3c6e89;},_0x45a4bb=(_0xb73955,_0x43db41)=>(_0x4d59da,_0x21d3f5)=>_0x43db41(_0x4d59da,_0x21d3f5,_0xb73955),_0x4991b2=(_0x5cf186,_0xfe8d7b,_0x247aa6)=>_0x101d25(_0x5cf186,typeof _0xfe8d7b!=_0x504d77(0x116)?_0xfe8d7b+'':_0xfe8d7b,_0x247aa6);_0x8a946e[_0x504d77(0x2de)]=class extends _0x7d31a[_0x504d77(0x220)]{constructor(_0x2c7817=_0x359fa5,_0x349c2d,_0x38c632,_0x3bb377,_0x15eec5){const _0x1e0fa9=_0x504d77;super(),this[_0x1e0fa9(0x333)]=_0x2c7817,this[_0x1e0fa9(0x3d4)]=_0x349c2d,this[_0x1e0fa9(0x2b2)]=_0x38c632,this['_configService']=_0x3bb377,this['_dataSyncPrimaryController']=_0x15eec5;const {..._0x5f53ac}=_0x7d31a['merge']({},_0x359fa5,this[_0x1e0fa9(0x333)]);this[_0x1e0fa9(0x242)][_0x1e0fa9(0x3b5)](_0x3c6b7d,_0x5f53ac),this[_0x1e0fa9(0x35c)](),this[_0x1e0fa9(0x34b)]();}[_0x504d77(0x34b)](){const _0x650ce=_0x504d77;var _0x49ed4e;const _0x3cc11a=(_0x49ed4e=this['_config'])==null?void 0x0:_0x49ed4e[_0x650ce(0x412)];this[_0x650ce(0x242)][_0x650ce(0x3b5)](_0x540f5f,_0x3cc11a===!0x0);}[_0x504d77(0x11c)](){const _0x4b7dd8=_0x504d77;var _0x16c455;let _0x2b1108=[];const _0x24b42e=(_0x16c455=this[_0x4b7dd8(0x333)])==null?void 0x0:_0x16c455[_0x4b7dd8(0x412)];_0x24b42e===!0x0?_0x2b1108=[[_0x8a946e[_0x4b7dd8(0x12a)]],[_0x8a946e[_0x4b7dd8(0x1c0)]],[_0x3feac1],[_0x8a946e['SheetsPivotTableAdaptorModel']],[_0x8a946e[_0x4b7dd8(0x241)]],[_0x477944],[_0x587aa7],[_0x5d846b],[_0x4653a3]]:_0x24b42e===!0x1?_0x2b1108=[[_0x8a946e['SheetsPivotDataSourceModel']],[_0xa371f2]]:_0x24b42e===void 0x0&&(_0x2b1108=[[_0x8a946e[_0x4b7dd8(0x3bd)]],[_0xa371f2],[_0x8a946e['SheetsPivotTableService']],[_0x8a946e[_0x4b7dd8(0x1c0)]],[_0x3feac1],[_0x8a946e['SheetsPivotTableAdaptorModel']],[_0x8a946e['SheetsPivotTableConfigModel']],[_0x477944],[_0x587aa7],[_0x5d846b],[_0x4653a3]]),_0x2b1108[_0x4b7dd8(0x20a)](_0x1fc436=>this[_0x4b7dd8(0x3d4)]['add'](_0x1fc436)),[_0xa371f2,_0x3feac1,_0x8a946e[_0x4b7dd8(0x12a)],_0x587aa7,_0x477944,_0x5d846b,_0x4653a3][_0x4b7dd8(0x20a)](_0x4ad764=>{const _0xe74f30=_0x4b7dd8;this[_0xe74f30(0x3d4)]['has'](_0x4ad764)&&this[_0xe74f30(0x3d4)][_0xe74f30(0x3f1)](_0x4ad764);});}[_0x504d77(0x35c)](){const _0x1f7fea=_0x504d77;[_0x5b6bd6,_0x43238e,_0x9cf1e3,_0x17592b,_0x1bd048,_0x1e4546,_0x388abd,_0x22cd17,_0x1f1030,_0x2b3cc7,_0x229a96,_0x52894a,_0x2f83d1,_0x11c3db,_0x595299,_0x45f92a,_0x4356ce,_0x482a02,_0x887ba3,_0xa49793,_0x5b23d1,_0x5c7f11,_0x2a1698,_0x4429d7,_0x251ed6,_0x546d5a,_0x123019,_0xafd79e,_0x252639,_0x592b77,_0x2242e4,_0x4ff238,_0x4d5100,_0x5d3e68,_0x4c05b6,_0x5434d,_0x39d704,_0x24bb10,_0x14a613,_0x2fa490,_0x58f82c,_0x230bd6,_0x2809d6][_0x1f7fea(0x20a)](_0x1a82e5=>{const _0x274b2b=_0x1f7fea;var _0xd9918;(_0xd9918=this['_dataSyncPrimaryController'])==null||_0xd9918[_0x274b2b(0x1cc)](_0x1a82e5),this[_0x274b2b(0x2b2)]['registerCommand'](_0x1a82e5);});}},_0x4991b2(_0x8a946e['UniverSheetsPivotTablePlugin'],_0x504d77(0x390),_0x5533fc),_0x4991b2(_0x8a946e[_0x504d77(0x2de)],_0x504d77(0x215),_0x7d31a[_0x504d77(0x24f)][_0x504d77(0x383)]),_0x8a946e[_0x504d77(0x2de)]=_0x476f3b([_0x7d31a[_0x504d77(0x2b3)](_0x11dac8['UniverLicensePlugin']),_0x45a4bb(0x1,_0x7d31a['Inject'](_0x7d31a['Injector'])),_0x45a4bb(0x2,_0x7d31a[_0x504d77(0x2aa)](_0x7d31a[_0x504d77(0x214)])),_0x45a4bb(0x3,_0x7d31a[_0x504d77(0x13f)]),_0x45a4bb(0x4,_0x7d31a[_0x504d77(0x294)](_0x150f7b['DataSyncPrimaryController']))],_0x8a946e[_0x504d77(0x2de)]),_0x8a946e[_0x504d77(0x1a4)]=_0x9cf1e3,_0x8a946e[_0x504d77(0x368)]=_0x482a02,_0x8a946e['AddPivotTableCommand']=_0x43238e,_0x8a946e['AddPivotTableMutation']=_0x595299,_0x8a946e[_0x504d77(0x2bf)]=_0x5b6bd6,_0x8a946e[_0x504d77(0x171)]=_0x548227,_0x8a946e[_0x504d77(0x42a)]=_0x474d8e,_0x8a946e['MovePivotFieldCommand']=_0x17592b,_0x8a946e[_0x504d77(0x327)]=_0x2f83d1,_0x8a946e[_0x504d77(0x41d)]=_0x281e70,_0x8a946e[_0x504d77(0x2c9)]=_0x11c3db,_0x8a946e[_0x504d77(0x19c)]=_0x462181,_0x8a946e[_0x504d77(0x1a8)]=_0x24bb10,_0x8a946e['PositionType']=_0x403e0d,_0x8a946e[_0x504d77(0x398)]=_0x1bd048,_0x8a946e['RemovePivotFieldMutation']=_0x5c7f11,_0x8a946e['RemovePivotTableMutation']=_0x4356ce,_0x8a946e[_0x504d77(0x42f)]=_0x2a1698,_0x8a946e[_0x504d77(0x1bc)]=_0x2809d6,_0x8a946e[_0x504d77(0x19f)]=_0x3c6b7d,_0x8a946e['SHEET_PIVOT_TABLE_PLUGIN']=_0x5533fc,_0x8a946e['SetPivotCollapseCommand']=_0x22cd17,_0x8a946e[_0x504d77(0x2f3)]=_0x4429d7,_0x8a946e['SetPivotFieldFormatMutation']=_0x5d3e68,_0x8a946e[_0x504d77(0x305)]=_0x230bd6,_0x8a946e[_0x504d77(0x428)]=_0x2b3cc7,_0x8a946e[_0x504d77(0x259)]=_0x5b23d1,_0x8a946e[_0x504d77(0x31e)]=_0x546d5a,_0x8a946e[_0x504d77(0x180)]=_0x123019,_0x8a946e['SetPivotSortCommand']=_0x1f1030,_0x8a946e[_0x504d77(0x2cc)]=_0x251ed6,_0x8a946e[_0x504d77(0x3dd)]=_0x4d5100,_0x8a946e['SetPivotValueFilterCommand']=_0x2fa490,_0x8a946e[_0x504d77(0x141)]=_0x58f82c,_0x8a946e[_0x504d77(0x1a0)]=_0x388abd,_0x8a946e[_0x504d77(0x302)]=_0x2242e4,_0x8a946e['UpdatePivotFieldSettingCommand']=_0x229a96,_0x8a946e['UpdatePivotFieldSourceInfoMutation']=_0x39d704,_0x8a946e[_0x504d77(0x373)]=_0x52894a,_0x8a946e[_0x504d77(0x240)]=_0x5434d,_0x8a946e['UpdatePivotValuePositionCommand']=_0x1e4546,_0x8a946e[_0x504d77(0x158)]=_0x4ff238,_0x8a946e['applyChangeSet']=_0x562b9d,_0x8a946e['canUsePivot']=_0x5e2ded,_0x8a946e['defaultThemeStyle']=_0x2f9434,_0x8a946e['generateSetRangeValueMutations']=_0x18953a,_0x8a946e[_0x504d77(0x42d)]=_0x15efc2,_0x8a946e[_0x504d77(0x1d3)]=_0x3569d6,_0x8a946e[_0x504d77(0x1c2)]=_0x455cfd,_0x8a946e[_0x504d77(0x35a)]=_0x438f78,_0x8a946e[_0x504d77(0x348)]=_0x43d68d,_0x8a946e[_0x504d77(0x392)]=_0x40e998,_0x8a946e[_0x504d77(0x27d)]=_0x4b9203,_0x8a946e['transFromCellValue']=_0x39744b,_0x8a946e[_0x504d77(0x336)]=_0x318779,Object[_0x504d77(0x3fb)](_0x8a946e,Symbol[_0x504d77(0x192)],{'value':'Module'});}));function _0x5327(){const _0x412512=['_config','removePivotField','rowHeaderMap','unionPivotViewRange','DrillDown','AsyncInterceptorManager','shouldClear','getSheetCommandTarget','_initRemoveSheetCommandInterceptor','setSortInfo','setValue','IResourceManagerService','pivotPerformCheck','sheet.mutation.set-pivot-option','MUTATION','getIntersects','product','isBottomTotal','stdDev','getPivotTableCellData','getId','getPivotCellInfo','leafStyle','DisposableCollection','_initConfig','_featureCalculationManagerService','Injector','sheet.command.update-pivot-value-position','PivotView','handleMoveRange','sheet.mutation.pivot-update-value-position','resetPivotTable','getOwnPropertyDescriptor','addDirtyPivotTable','colStyle','PIVOT_MUTATION_GENERATE','error','refreshDataField','rangeCache','getInsertRowColMutations','some','_initRegisterCommand','setValueFilterInfo','updateFieldSourceInfo','onCommandExecuted','column','getTargetByPivotTableId','_textInfo','generateMutationsByRanges','cellToRange','parseInt','sheets-pivot.cellDateGroupDisplay.yearMonthDate','_ensurePivotItemRenderInfoCache','AddPivotFieldMutation','redos','sheets-pivot.stdDevName','fetchThroughInterceptors','StdDevp\x20of\x20','setCollapse','Panel','pushUndoRedo','generateHexNumber','#FFFFFF','undos','UpdatePivotTableSourceRangeCommand','Value','getFieldIds','_init','average','hasOwnProperty','InsertRowMutation','sheet.command.set-pivot-filter','pbt','removeValueFilterInfoByValueFieldId','NotNumber','sheet.mutation.rename-pivot-field','_updateModelCache','Total','SetOptions','oldMatrix','UNIVER_SHEET','sheets-pivot.blank','subtotal','formJSON','HourMinute','concat','split','reset','removeCollections','keys','setRangeValueUndoMutation','headerMap','removeValueFilterInfo','pluginName','getFieldDataType','getPivotInfoByLicense','setPivotSetting','fields','needSameDeleteModel','columnFields','6RnmlAQ','RemovePivotFieldCommand','InsertSheetUndoMutationFactory','Existing','startCollectChangeset','#e6ebfb','Subject','SHEET_PIVOT_EXCLUSIVE_ID','getMatrix','numberToABC','sheet.command.add-pivot-table','find','SetCollapse','Style','#b2b2b2','_sheetsPivotTableAdaptorModel','filter','_initClearSelectionCommandInterceptor','replace','excelDateToUnixMilliseconds','updateCollectionConfig','endCollectChangeset','Count\x20of\x20','min','PivotDataFieldDataTypeEnum','setSourceName','level','getSheets','sheet.command.move-pivot-table','setPivotTable','setConfig','_sheetInterceptorService','SetPivotCollapse','data','fieldIds','getSheetId','removeField','getSubUnitPivotMatrix','SheetsPivotDataSourceModel','originTargetInfo','Range','tableFieldId','iterateFieldByArea','None','BaseGroupField','PivotCellStyleTypeEnum','setPivotFilter','532844QNbIwW','initDataRanges','setPivotTableConfig','sheets-pivot.stdDevpName','updateDirtyPivotTable','object','PivotTableValuePositionEnum','COLUMN','SetFieldFormat','result','915299aHPgMS','valid','isColMultiMeasure','interceptCommand','_injector','sortInfo','rangeType','var','sheets-pivot.dateGroup.yearMonthDate','186272LgxZuK','MonthDate','sheet.mutation.add-group-collection','PivotSubtotalTypeEnum','SetPivotSubtotalTypeMutation','values','getRefRangeMutationsByMoveRange','updateConfigCache','_collectionConfigModel','SetRangeValuesMutation','collapseInfo','Min\x20of\x20','LocaleService','updateFieldPosition','UniverEngineFormula','getFieldCountByArea','setName','getHeaderMapItem','includes','551832lPrzvc','updateViewInfo','getValue','createCollectionWithDataRange','_host','get','single','MAX_SAFE_INTEGER','getCollection','FontCache','SetPivotTableConfig','getTableFieldById','getDisplayName','setPivotCollapse','sheets-pivot.cellDateGroupDisplay.yearQuarter','defineProperty','getOriginFieldId','removeSourceRangeChange','prefix','_sheetsPivotRpcService','colRanges','setValuePivotFilter','function','generateRandomId','deleteDataField','sheets-pivot.dateGroup.quarter','clearRenderCache','has','Expand','_markDirty$','isDateGroupField','getDataFieldId','_initLocale','blank','_pivotRenderInfoCache','forValue','map','getDirtyInfo','notExecuteFormula','pivotTableConfigs','amd','getformat','Year','_initSnapshot','new','bind','_pivotRenderValueMatrixCache','addCollection','getFontStyleString','PivotDisplayDataType','call','areaInfo','fromJSON','725455yAtGWw','prototype','length','tuple','RANGE_TYPE','SHEET_PIVOT_TABLE_PLUGIN','registerPluginResource','SetPivotFilterCommand','sum','DEFAULT_PIVOT_NUMBER','sheet.mutation.pivot-update-field-source-info','RemoveSheetsFilterMutation','getAdjustRangesPosition','refreshData','RenamePivotFieldMutation','addCollectionByJSON','getDataFieldByTableId','sheet.mutation.set-pivot-format','sheets-pivot.sumName','symbol','PivotErrorTypeEnum','displayName','UpdateValuePosition','deepClone','maxDate','onStarting','sheet.command.add-pivot-field','random','_resourceManagerService','355106YFDGor','getColCount','version','isDateValue','sheets-pivot.dateGroup.monthDate','endRow','fieldsCollectionChange$','Filter','getDate','sheet.mutation.set-pivot-position','SheetsPivotTableService','entries','getIndexesByPathStr','splice','getUnit','reduce','sheets-pivot.cellDateGroupDisplay.yearMonth','_fieldsCollectionChange$','FieldsCollection','_refRangeService','_dataFieldManagerCollection','Div0','getMatrixFromRunTimeData','_ensurePivotMap','sheet.mutation.add-pivot-field','COMMAND','Grand\x20Total','sheets-pivot.emptyPivot.row','markDirty','YearMonthDate','rowCount','IConfigService','cornerInfo','SetPivotValueFilterMutation','sheets-pivot.maxName','number','fetchThroughAsyncInterceptors','pivotTableIndexConfig','_queryingMap','sheet.command.set-pivot-fields-config','getRangeStartEndInfo','InsertSheetMutation','versions','_requestResolvers','realDeleteValue','intercept','ClearSelectionAllCommand','sheets-pivot.cellDateGroupDisplay.hourMinute','collections','SetValuePivotFilter','setSubtotalType','NAME','hasField','PivotFilterTypeEnum','_subjectViewChange','_globalComputedEndHelpFunc','UpdateValuePositionMutation','count','broadcastCollectionChange','createDataFieldId','lastCol','_ensurePivotTableMatrixInfo','rangesInfo','dimension','_ensurePivotTableRangeInfo','_localeService','sheet.mutation.add-pivot-table','AddField','_getAutoName','getFullYear','addRecord','SetValueFilter','sheets-pivot.varName','getFormat','UpdatePivotSource','getValuePosition','remove','getCellMatrix','getPivotTableInstance','sheets-pivot.value','_initViewModelBySheetInterceptor','BLANK_ROW_COUNT','@univerjs/sheets-filter','paths','sheet.command.add-pivot-table-with-config','updateValuePosition','params','getUnitId','PivotCallbackEnum','addExclusiveRange','getSubtotal','viewUpdate$','isEmpty','_lifecycleService','_initPivotDataGetListener','getMatrixValue','SetPivotPositionMutation','IFeatureCalculationManagerService','message','isArray','sheet.mutation.set-pivot-value-filter','RemoveSheetMutation','pivotMutationGenerate','onQueryEnd','dataStyle','colInfo','sheets-pivot.grandTotal','name','sheet.mutation.update-date-group','getDataFieldItemInfo','_onRefRangeChange','handleSourceRangeChange','disposableCollection','sheet.command.set-pivot-collapse','toStringTag','getSortInfo','dateType','getGroupFieldsInfoByIds','row','fieldsConfig','getNoUsedDataFieldIds','refreshGroupField','getRangeKey','pivotTableId','PivotTableOperationEnum','numfmt','adjustSheetCellData','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','UpdateDateGroupCommand','_globalComputingSrv','getInterceptPoints','Quarter','AddPivotFieldCommand','getPivotTableModelConfig','mergeWorksheetSnapshotWithDefault','_sheetsPivotTableConfigModel','PivotTableViewDirtyMarkOperation','addFieldWithSourceId','subUnitId','getTargetByPivotId','getFieldInfo','rgb(240,241,243)','IUndoRedoService','sheets-pivot.subTotal','setRange','SetWorksheetColWidthMutation','sheets-pivot.cellDateGroupDisplay.quarter','sheets-pivot.dateGroup.minute','RenameField','asObservable','addPivotField','dataRangeInfo','sheets-pivot.varpName','Column','collectionChange$','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','ResetPivotFieldsConfigCommand','unitId','isText','getSubUnitPivotRenderCache','SheetsPivotRPCService','toString','getFieldListByArea','updatePivotTableMatrixInfo','CELL_CONTENT','getPivotTableIdByCell','filterId','getValueIndex','Subtotal','InsertSheetCommand','sheets-pivot.emptyPivot.filter','INTERCEPTOR_POINT','registerSyncingMutations','AddPivotField','getSheetBySheetId','Tools','New','pushComputingStatusSubject','Month','getEmptyPivotRanges','isDateGroupFieldJSON','sheets-pivot.dateGroup.yearMonth','unshiftString','_initCommandInterceptListener','updateConfig','iterateField','sheet.command.update-pivot-table-source-range','_model','getStyles','setDateType','subTotalStyle','_initDataSendListener','next','endColumn','fontRenderExtension','removeDataField','rowFields','parse','Rectangle','getFieldById','lastRow','setRangeKeyMap','RefRangeService','PivotTableChangeTypeEnum','UniverRpc','sheet.mutation.update-pivot-table-source-range','getLastCol','originalFieldId','#1d32e9','options','SetSheetsFilterRangeMutation','sheet.command.set-pivot-value-filter','@univerjs-pro/engine-pivot','dataFieldId','valuePosition','sheet.command.reset-pivot-fields-config','executeCommand','sheet.mutation.send-pivot-config-local','sheetName','rgb(255,255,255)','ManualFilter','getPivotDirtyViewInfo','measure','getFieldFormat','setDataRecordCount','getIntersectsPivotTable','stringify','Row','setDisplayName','deleteUnitId','sheets-pivot.config','1194066kimxXm','MIN_SAFE_INTEGER','slice','forEach','unshift','from','limit\x20pivot','@univerjs/engine-formula','SetPivotSetting','YearQuarter','removePivotTable','removeCollectionImp','add','ICommandService','type','getTypeOfUnitDisposed$','_getPivotAppliedRanges','collectionConfig','UpdateFieldPosition','sheet.mutation.send-init-pivot-text-local','width','PivotViewCellValueTypeEnum','setPivotSort','_updatePivotTableInstanceCache','updateViewData','Plugin','_exclusiveRangeService','register','Set','_configVersion$','getSheetBySheetName','colCount','dispose','getTextSize','sheets-pivot.countName','getRangeKeyList','DIV_BY_ZERO','Var\x20of\x20','FORCE_STRING','getPivotItemRenderInfoCache','node','_deletePivotTableInstanceCache','getAutoFitColumnsMutations','sheet.mutation.get-pivot-data-local','_pivotTableMatrixInfo','_sheetsSelectionsService','_subjectFieldsCollectionChange','sheets-pivot.dateGroup.yearQuarter','sheets-pivot.cellDateGroupDisplay.hour','generateNewSheetName','getColumnCount','_initUnitDisposed','createInterceptorKey','_globalSubject','createLabelField','addPivotTable','DateGroupField','UpdatePivotTableSourceRangeMutation','SheetsPivotTableConfigModel','_configService','getDataFieldByRangeKey','_deleteModelCache','sheets-pivot.cellDateGroupDisplay.month','@univerjs/engine-render','range','_initPivotTextInfo','updateAllDisplayName','sheet.command.update-date-group','UniverSheets','SheetInterceptorService','getPivotTableRangeInfo','pageRanges','UniverInstanceType','body','ErrorType','sheets-pivot.averageName','IUniverInstanceService','sheets.tabs.sheet','sheets-pivot.dateGroup.month','uniqueDataFieldName','getTextInfo','getSourceName','SetPivotFilterMutation','sheet.command.set-pivot-field-setting','disposeWithMe','pivotInitCompleted$','isValue','UniverProLicense','push','Disposable','getFormatInfo','max','Collapse','sheets-pivot.minName','CommandType','PivotTableFiledAreaEnum','grandTotal','getCellRaw','_viewData$','batch','getFieldPositionInfoById','_viewData','getPivotDisplayConfig','valueFilter','sequenceExecute','getRowCount','subscribe','AddPivotTable','UniverProEnginePivot','Minute','Values','registerDirtyService','_ensureViewDataMap','sheet.mutation.pivot-update-field-position','addField','rxjs','cornerStyle','CustomCommandExecutionError','getPivotTableInfo','onQueryStart','_initGlobalComputed','ptn','REF','SetPivotSort','DataField','sheet.mutation.remove-pivot-table','updateRangeKeyMap','@univerjs/rpc','RemovePivotField','Varp\x20of\x20','SetFilterInfo','getFilterFieldIdByIndex','isNaN','cellValue','_generateUniqueVersion','update','pivotConfigChange$','InterceptorManager','CellValueType','createAsyncInterceptorKey','set','Optional','registerRefRange','_sheetsPivotDataSourceModel','getUpdateRangeDeleteIds','BehaviorSubject','sheet.command.remove-pivot-field','Delete','rowRanges','getFilterInfo','DEFAULT_WORKSHEET_ROW_COUNT','colHeaderMap','forRow','registerCallbackWithEvent','dataStream','dataFieldsCollection','movePivotField','leftOffset','getDataFieldByDataFieldId','getName','contains','getAutoDisplayName','Product\x20of\x20','Inject','panel','format','token','PivotTable','handleAsyncResponse','@univerjs/sheets','targetCellInfo','_commandService','DependentOn','updateRenderCache','asyncInterceptor','Sum\x20of\x20','Column\x20','interceptor','_toJSON','#f4f4f5','ClearSelectionContentCommand','PivotDateGroupFieldDateTypeEnum','getAutoDisplayNameFunction','drillDown','AddPivotTableWithConfigCommand','col','_pivotTableRangeInfo','_pivotConfigChange$','sheets-pivot.cellDateGroupDisplay.date','_createExclusiveRange','PivotMultipleValueId','triggerDirtyFeature','getDataFieldManager','sheet.operation.pivot-table-view-formula-mark-dirty','PivotDrillDownCommand','sheets-pivot.dateGroup.hourMinute','serializeRangeWithSpreadsheet','SetPivotSortMutation','getSubUnitPivotConfigs','sourceRangeInfo','_globalComputedStartHelpFunc','workbook\x20is\x20not\x20found','_collectionChange$','sheet.mutation.remove-pivot-field','toJSON','Add','startRow','Hour','intersects','query','@univerjs/core','getConfig','_univerInstanceService','UniverSheetsFilter','AddPivotTableWithConfig','UniverSheetsPivotTablePlugin','NUMBER','SetPivotFilter','_pivotInitCompleted$','isDate','getViewData','_activeDirtyManagerService','@univerjs-pro/license','_pivotTableInstanceCache','getActiveSheet','getDataFieldBySourceName','_ensurePivotItemRenderValueMatrixCache','generateNullCell','rangeKey','sheet.mutation.send-pivot-data-local','ObjectMatrix','iterateFieldDim','setDirty','rangeKeyMap','filterInfo','MovePivotField','SetPivotCollapseMutation','Average\x20of\x20','isFeatureAuthorizedWithinTime','\x20-\x20','setLabelFilterInfo','YearMonth','RemoveRowMutation','substring','getPivotTableConfig','SheetsSelectionsService','clearExclusiveRangesByGroupId','addDataFieldWithoutUnitInfo','_updateRenderEmptyCache','sheets-pivot.dateGroup.year','_viewUpdate$','UpdateFieldPositionMutation','deleteField','sheets-pivot.dateGroup.date','SetPivotFieldsConfigCommand','Date','setRangeValueRedoMutation','fieldId','dataFields','updatePivotSource','info','UpdateSource','startColumn','delete','sheet.mutation.set-pivot-sort-info','_sheetsPivotTableService','renameField','getLastRow','GrandTotal','createValueField','(Blank)','StdDev\x20of\x20','sheet.mutation.send-pivot-view-local','varp','UniverCore','STRING','SetWorksheetActiveOperation','sheets-pivot.dateGroup.hour','ResetPivotTable','SetPivotOptionMutation','getMonth','custom','LS_CONFIG_KEY','setFieldFormat','floor','updateDataFieldsCollection','SheetsPivotTableAdaptorModel','addPivotTableWithConfig','MovePivotTableCommand','value','54zOQrQL','valueIndex','viewData$','matrix','size','getCurrentSelections','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','InterceptorEffectEnum','getCurrentUnitForType','_refRangeHandle'];_0x5327=function(){return _0x412512;};return _0x5327();}
1
+ (function(_0x30c036,_0x36a7dd){const _0x355c33=_0x5ae0,_0x3dd5cf=_0x30c036();while(!![]){try{const _0x58d491=parseInt(_0x355c33(0x345))/0x1*(-parseInt(_0x355c33(0x2a3))/0x2)+parseInt(_0x355c33(0xa6))/0x3*(parseInt(_0x355c33(0x23b))/0x4)+parseInt(_0x355c33(0x2b9))/0x5*(-parseInt(_0x355c33(0x31b))/0x6)+-parseInt(_0x355c33(0x25e))/0x7+parseInt(_0x355c33(0x194))/0x8+-parseInt(_0x355c33(0x115))/0x9+-parseInt(_0x355c33(0x32c))/0xa*(-parseInt(_0x355c33(0x2a4))/0xb);if(_0x58d491===_0x36a7dd)break;else _0x3dd5cf['push'](_0x3dd5cf['shift']());}catch(_0x25d83b){_0x3dd5cf['push'](_0x3dd5cf['shift']());}}}(_0x4668,0x80e03),function(_0x52511e,_0x58d0){const _0x5800d0=_0x5ae0;typeof exports==_0x5800d0(0xdf)&&typeof module<'u'?_0x58d0(exports,require('@univerjs-pro/engine-pivot'),require(_0x5800d0(0x192)),require(_0x5800d0(0x337)),require(_0x5800d0(0x11c)),require(_0x5800d0(0x14b)),require(_0x5800d0(0x22f)),require(_0x5800d0(0x328)),require(_0x5800d0(0xb3)),require('@univerjs/engine-render')):typeof define==_0x5800d0(0x197)&&define[_0x5800d0(0xed)]?define(['exports','@univerjs-pro/engine-pivot',_0x5800d0(0x192),'@univerjs/engine-formula',_0x5800d0(0x11c),_0x5800d0(0x14b),_0x5800d0(0x22f),_0x5800d0(0x328),'@univerjs/rpc',_0x5800d0(0xb4)],_0x58d0):(_0x52511e=typeof globalThis<'u'?globalThis:_0x52511e||self,_0x58d0(_0x52511e[_0x5800d0(0x1f1)]={},_0x52511e['UniverProEnginePivot'],_0x52511e[_0x5800d0(0x19c)],_0x52511e[_0x5800d0(0x35d)],_0x52511e[_0x5800d0(0x1f4)],_0x52511e[_0x5800d0(0x14b)],_0x52511e[_0x5800d0(0x16c)],_0x52511e[_0x5800d0(0x33f)],_0x52511e[_0x5800d0(0x29d)],_0x52511e[_0x5800d0(0x92)]));}(this,function(_0x190415,_0x38bc74,_0x493c7d,_0x3d1a00,_0x188291,_0x22c0d0,_0x17beef,_0x31168e,_0x3859bf,_0x2b763b){'use strict';const _0x566c44=_0x5ae0;var _0x30f087=Object[_0x566c44(0x396)],_0x387cc7=(_0x3812ad,_0x44645d,_0x54feba)=>_0x44645d in _0x3812ad?_0x30f087(_0x3812ad,_0x44645d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54feba}):_0x3812ad[_0x44645d]=_0x54feba,_0x3a454e=(_0x16d07e,_0x16565e,_0x34c3cf)=>_0x387cc7(_0x16d07e,typeof _0x16565e!=_0x566c44(0x165)?_0x16565e+'':_0x16565e,_0x34c3cf);const _0x5a60dc=Number['parseInt'](0x6845b5c9),_0x5761d4=0x10,_0x4302a8=0x1,_0x2600ad=_0x566c44(0x174),_0x2657b5=0x1,_0x5cb253='rgb(240,241,243)',_0xedaaad='rgb(255,255,255)',_0xf2267f=_0x566c44(0x285),_0xeb269c='#f4f4f5',_0x1c3e7c=_0x566c44(0x2ab),_0x4e9178=_0x566c44(0x336),_0x28e407=_0x566c44(0x2b5),_0x584d8a=_0x566c44(0x12b),_0x43dae0='#e6ebfa',_0xdb8fb7=_0x566c44(0x2b5),_0x46393f=_0x566c44(0x12b),_0x20d985=_0x566c44(0x224),_0x1319b1=0xe,_0x3db25f=0x6;var _0x34f04a=(_0x2bcbe3=>(_0x2bcbe3[_0x566c44(0xc9)]=_0x566c44(0x129),_0x2bcbe3[_0x566c44(0x2c6)]='new',_0x2bcbe3))(_0x34f04a||{});const _0x2322db={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},_0x419532=0x1e,_0x293dd6={'b':{'s':0x1,'cl':{'rgb':_0xf2267f}},'l':{'s':0x1,'cl':{'rgb':_0xf2267f}},'r':{'s':0x1,'cl':{'rgb':_0xf2267f}},'t':{'s':0x1,'cl':{'rgb':_0xf2267f}}},_0xf5954f={'bg':{'rgb':_0x5cb253},'ht':0x2,'vt':0x2,'tb':0x1},_0x5d7553={'bg':{'rgb':_0xedaaad},'ht':0x2,'vt':0x2,'tb':0x1},_0x487c1e={'rowStyle':{'bg':{'rgb':_0x20d985},'bd':_0x293dd6,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0xdb8fb7},'bd':null,'cl':{'rgb':_0x46393f},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x293dd6,'bg':{'rgb':_0x43dae0},'vt':0x2},'cornerStyle':{'bd':_0x293dd6,'bg':{'rgb':_0x4e9178},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x293dd6,'bg':{'rgb':_0xeb269c},'vt':0x2},'leafStyle':{'bd':_0x293dd6,'bg':{'rgb':_0x1c3e7c},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x28e407},'cl':{'rgb':_0x584d8a},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x293dd6,'vt':0x2}};function _0x482548(_0x445b88,_0x8f42c4,_0x402049){const _0x2b8d61=_0x566c44,_0x10b155=_0x445b88[_0x2b8d61(0x9f)](_0x493c7d[_0x2b8d61(0x2e7)]),_0x549385=_0x402049[_0x2b8d61(0x37e)]('_');switch(_0x8f42c4){case _0x38bc74[_0x2b8d61(0xe2)]['Year']:return _0x10b155['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x549385);case _0x38bc74[_0x2b8d61(0xe2)][_0x2b8d61(0x29a)]:return _0x10b155['t'](_0x2b8d61(0x91),..._0x549385);case _0x38bc74[_0x2b8d61(0xe2)]['Hour']:return _0x10b155['t'](_0x2b8d61(0x178),..._0x549385);case _0x38bc74[_0x2b8d61(0xe2)][_0x2b8d61(0x228)]:return _0x10b155['t'](_0x2b8d61(0x18f),..._0x549385);case _0x38bc74['PivotDateGroupFieldDateTypeEnum']['Date']:return _0x10b155['t'](_0x2b8d61(0x2f0),..._0x549385);case _0x38bc74[_0x2b8d61(0xe2)][_0x2b8d61(0x83)]:return _0x10b155['t'](_0x2b8d61(0xa8),..._0x549385);case _0x38bc74['PivotDateGroupFieldDateTypeEnum'][_0x2b8d61(0x10d)]:return _0x10b155['t'](_0x2b8d61(0x1dc),..._0x549385);case _0x38bc74[_0x2b8d61(0xe2)][_0x2b8d61(0x289)]:return _0x10b155['t'](_0x2b8d61(0xd8),..._0x549385);case _0x38bc74[_0x2b8d61(0xe2)][_0x2b8d61(0x154)]:return _0x10b155['t'](_0x2b8d61(0x292),..._0x549385);case _0x38bc74[_0x2b8d61(0xe2)][_0x2b8d61(0xa0)]:return _0x10b155['t'](_0x2b8d61(0x35a),..._0x549385);}return'';}const _0x12ee8d=(_0x318e86,_0x300113,_0xd6ea67,_0x18ba34)=>{const _0xd85537=_0x566c44;let _0x26e6a6;const _0x4d45fd=_0x318e86[_0xd85537(0x9f)](_0x493c7d[_0xd85537(0x356)])[_0xd85537(0x1c3)](_0x493c7d[_0xd85537(0x33a)][_0xd85537(0x2ae)]);if(!_0x4d45fd)return null;const _0x47731a=_0x4d45fd[_0xd85537(0x182)]();let _0x21ff0b;if(_0xd6ea67&&(_0x21ff0b=_0x47731a[_0xd85537(0x164)](_0xd6ea67)),_0x300113!=null&&_0x300113['v']||(_0x300113==null?void 0x0:_0x300113['v'])===0x0){_0x26e6a6||(_0x26e6a6={});const _0x4b506c=_0x10b3cb(_0x300113['v']);typeof _0x4b506c==_0xd85537(0x2ef)?_0x26e6a6['t']=_0x493c7d[_0xd85537(0x298)][_0xd85537(0x2f5)]:typeof _0x4b506c=='string'&&(_0x26e6a6['t']=_0x493c7d[_0xd85537(0x298)][_0xd85537(0x2d1)]),_0x26e6a6['v']=_0x4b506c;}if((_0x300113!=null&&_0x300113['i']||(_0x300113==null?void 0x0:_0x300113['i'])===0x0)&&(_0x26e6a6||(_0x26e6a6={}),_0x26e6a6['fi']=_0x300113['i']),_0x300113!=null&&_0x300113['s']&&(_0x26e6a6||(_0x26e6a6={}),_0x26e6a6[_0xd85537(0x331)]=_0x300113['s']),_0xd6ea67&&(_0x26e6a6||(_0x26e6a6={}),_0x26e6a6['s']=_0x21ff0b),_0x18ba34&&_0x26e6a6!=null&&_0x26e6a6['v']&&_0x26e6a6['pbt']!==_0x38bc74[_0xd85537(0x200)]['GrandTotal']&&_0x26e6a6[_0xd85537(0x331)]!==_0x38bc74[_0xd85537(0x200)][_0xd85537(0xd9)]){const _0x21ff6d=String(_0x26e6a6['v']),{dateType:_0x4ae6e4}=_0x18ba34;_0x26e6a6['v']=_0x482548(_0x318e86,_0x4ae6e4,_0x21ff6d),_0x26e6a6['t']=_0x493c7d['CellValueType'][_0xd85537(0x2d1)];}return _0x26e6a6;},_0x3ce265=(_0xaa333d,_0x3f1d1e,_0x4dd455,_0xa6308e)=>{const _0x2772c6=_0x566c44;var _0x3cb40d,_0x58f920,_0x504616,_0x13406f,_0x15f7f4,_0x181d8a,_0x40dd4f,_0x3c9da4,_0xd91e4d,_0x29e19a,_0xdfc834,_0x1af1e7,_0x5ab974,_0x1ba0d8;const _0x41549f=_0x4dd455[_0x2772c6(0x12d)],{cornerView:_0x5cfaba,rowView:_0x23ff7d,colView:_0x997638,dataView:_0x3bce41,pageView:_0x41a155,formatMap:_0x5a1aed,groupInfo:_0x3c7bca}=_0x3f1d1e,{row:_0x32a81c,col:_0x4826cc}=_0x41549f,_0x17000c=new _0x493c7d[(_0x2772c6(0x335))](),_0x503f11={},_0x5ce202={},_0x5a8cf6={},_0x80cf6a={},_0x8f1824={};let _0x2b0ee9=_0x32a81c,_0x49015e=_0x4826cc;Object[_0x2772c6(0x102)](_0x41a155[_0x2772c6(0x25b)])[_0x2772c6(0xe5)](_0x2ee494=>{const _0x16cbea=_0x2772c6;Object[_0x16cbea(0x102)](_0x41a155[_0x16cbea(0x25b)][Number(_0x2ee494)])['forEach'](_0x6a6fb1=>{const _0x58fde1=_0x16cbea,_0x3cc64a={..._0x41a155[_0x58fde1(0x25b)][Number(_0x2ee494)][Number(_0x6a6fb1)]};_0x17000c[_0x58fde1(0x164)](Number(_0x2ee494)+_0x2b0ee9,Number(_0x6a6fb1)+_0x49015e,_0x12ee8d(_0xaa333d,_0x3cc64a,_0x487c1e[_0x58fde1(0x305)]));});});const _0x43dd2c=Object[_0x2772c6(0x102)](_0x41a155[_0x2772c6(0x25b)])[_0x2772c6(0x13c)];_0x2b0ee9+=_0x43dd2c+(_0x43dd2c?_0x2657b5:0x0);const _0x40e302=_0x5cfaba[_0x2772c6(0x121)](),_0x5b1020=_0x5cfaba['getColCount']();for(let _0x3b374c=0x0;_0x3b374c<_0x40e302;_0x3b374c++)for(let _0xad3a97=0x0;_0xad3a97<_0x5b1020;_0xad3a97++){const _0x475450={...(_0x58f920=(_0x3cb40d=_0x5cfaba['data'])==null?void 0x0:_0x3cb40d[_0x3b374c])==null?void 0x0:_0x58f920[_0xad3a97]};_0x475450&&((_0x504616=_0x23ff7d['headerMap'][_0xad3a97])!=null&&_0x504616[_0x2772c6(0xfe)])&&_0xad3a97===_0x5b1020-0x1&&_0x3b374c===_0x40e302-0x1&&(_0x475450['v']=''+_0xa6308e[_0x2772c6(0x245)]),_0x17000c[_0x2772c6(0x164)](_0x3b374c+_0x2b0ee9,_0xad3a97+_0x49015e,_0x12ee8d(_0xaa333d,_0x475450,_0x487c1e[_0x2772c6(0x242)]));}for(let _0x2d7668=0x0;_0x2d7668<_0x5cfaba[_0x2772c6(0x1b1)][_0x2772c6(0x13c)];_0x2d7668++)_0x5cfaba[_0x2772c6(0x1b1)][_0x2d7668]&&(_0x5a8cf6[''+(_0x2d7668+_0x49015e)]=_0x5cfaba['info'][_0x2d7668]);_0x49015e+=_0x5b1020;const _0x47b26a=_0x997638['headerMap'],_0x5773ab=_0x997638[_0x2772c6(0x325)]()>=0x0?_0x997638[_0x2772c6(0x325)]()+0x1:0x0,_0x72f2cc=_0x997638[_0x2772c6(0x17c)]()>=0x0?_0x997638[_0x2772c6(0x17c)]()+0x1:0x0;for(let _0x3644df=0x0;_0x3644df<_0x72f2cc;_0x3644df++){for(let _0x120ad1=0x0;_0x120ad1<_0x5773ab;_0x120ad1++){const _0x18b2b0={...(_0x15f7f4=(_0x13406f=_0x997638[_0x2772c6(0x25b)])==null?void 0x0:_0x13406f[_0x120ad1])==null?void 0x0:_0x15f7f4[_0x3644df]},_0x59a504=(_0x181d8a=_0x47b26a[_0x120ad1])==null?void 0x0:_0x181d8a[_0x2772c6(0x170)],_0x392cae=_0x5a1aed[_0x59a504],_0x5afffc=_0x3c7bca[_0x59a504];_0x18b2b0&&(_0x18b2b0['v']=_0x18b92d(_0x18b2b0,_0x120ad1===0x0&&((_0x40dd4f=_0x997638['getHeaderMapItem'](_0x3644df+0x1))==null?void 0x0:_0x40dd4f[_0x2772c6(0xfe)]),_0x392cae,_0xa6308e));let _0x2a0402;_0x392cae?_0x2a0402={..._0x487c1e[_0x2772c6(0xef)],'n':{'pattern':_0x392cae}}:_0x2a0402={..._0x487c1e['colStyle']},_0x17000c['setValue'](_0x120ad1+_0x2b0ee9,_0x3644df+_0x49015e,_0x12ee8d(_0xaa333d,_0x18b2b0,_0x2a0402,_0x5afffc));}_0x997638['info'][_0x3644df]&&(_0x5ce202[''+(_0x3644df+_0x49015e)]=_0x997638['info'][_0x3644df]),_0x997638['headerMap'][_0x3644df+0x1]&&(_0x8f1824[''+(_0x3644df+_0x2b0ee9+0x1)]=_0x997638[_0x2772c6(0x85)][_0x3644df+0x1]);}_0x2b0ee9+=_0x40e302;const _0x47dc98=_0x23ff7d['headerMap'],_0x289235=_0x23ff7d['getLastRow']()>=0x0?_0x23ff7d[_0x2772c6(0x325)]()+0x1:0x0,_0x96e952=_0x23ff7d[_0x2772c6(0x17c)]()>=0x0?_0x23ff7d['getLastCol']()+0x1:0x0;for(let _0xcea8cd=0x0;_0xcea8cd<_0x289235;_0xcea8cd++){for(let _0x227124=0x0;_0x227124<_0x96e952;_0x227124++){const _0x1de853={...(_0xd91e4d=(_0x3c9da4=_0x23ff7d[_0x2772c6(0x25b)])==null?void 0x0:_0x3c9da4[_0xcea8cd])==null?void 0x0:_0xd91e4d[_0x227124]},_0x5e938c=(_0x29e19a=_0x47dc98[_0x227124])==null?void 0x0:_0x29e19a['tableFieldId'],_0x212c03=_0x5a1aed[_0x5e938c],_0x3b399c=_0x3c7bca[_0x5e938c];_0x1de853&&(_0x1de853['v']=_0x18b92d(_0x1de853,!0x1,_0x212c03,_0xa6308e));let _0x8f9e7c;_0x23ff7d[_0x2772c6(0x1b1)][_0xcea8cd][_0x2772c6(0x25d)]===_0x23ff7d[_0x2772c6(0x159)]()?_0x8f9e7c=_0x487c1e[_0x2772c6(0x11d)]:_0x23ff7d['info'][_0xcea8cd]['isBottomTotal']?_0x8f9e7c=_0x23ff7d[_0x2772c6(0x1b1)][_0xcea8cd][_0x2772c6(0x25d)]===0x0?_0x487c1e[_0x2772c6(0x1f3)]:_0x487c1e[_0x2772c6(0x234)]:_0x8f9e7c=_0x487c1e[_0x2772c6(0x246)],_0x212c03&&(_0x8f9e7c={..._0x8f9e7c,'n':{'pattern':_0x212c03}}),_0x17000c[_0x2772c6(0x164)](_0xcea8cd+_0x2b0ee9,_0x227124+_0x4826cc,_0x12ee8d(_0xaa333d,_0x1de853,_0x8f9e7c,_0x3b399c));}_0x23ff7d['info'][_0xcea8cd]&&(_0x503f11[''+(_0xcea8cd+_0x2b0ee9)]=_0x23ff7d[_0x2772c6(0x1b1)][_0xcea8cd]),_0x23ff7d['headerMap'][_0xcea8cd]&&(_0x80cf6a[''+(_0xcea8cd+_0x4826cc)]=_0x23ff7d[_0x2772c6(0x85)][_0xcea8cd]);}const _0x4009a5=_0x3bce41[_0x2772c6(0x121)](),_0x64bd86=_0x3bce41[_0x2772c6(0x159)]();for(let _0x164b54=0x0;_0x164b54<_0x4009a5;_0x164b54++)for(let _0x55de0d=0x0;_0x55de0d<_0x64bd86;_0x55de0d++){const _0x1d3478={...(_0x1af1e7=(_0xdfc834=_0x3bce41[_0x2772c6(0x25b)])==null?void 0x0:_0xdfc834[_0x164b54])==null?void 0x0:_0x1af1e7[_0x55de0d]};let _0xdee0af;_0x23ff7d[_0x2772c6(0x1b1)][_0x164b54][_0x2772c6(0xbc)]?_0xdee0af=_0x23ff7d[_0x2772c6(0x1b1)][_0x164b54][_0x2772c6(0x25d)]===0x0?_0x487c1e[_0x2772c6(0x1f3)]:_0x487c1e['subTotalStyle']:_0xdee0af=_0x487c1e[_0x2772c6(0x27e)];const _0x207d67=_0x23ff7d[_0x2772c6(0x1b1)][_0x164b54][_0x2772c6(0x9d)],_0x3def83=_0x997638['info'][_0x55de0d][_0x2772c6(0x9d)],_0x116c87=Math[_0x2772c6(0x10f)](_0x207d67,_0x3def83),_0x11c6e3=_0x4dd455[_0x2772c6(0x2fc)]['valueFields'][_0x2772c6(0x2a6)]();let _0x504102='';_0x116c87<0x0?_0x504102=(_0x5ab974=_0x11c6e3[0x0])!=null?_0x5ab974:'':_0x504102=(_0x1ba0d8=_0x11c6e3[_0x116c87])!=null?_0x1ba0d8:'';const _0x5ae2ef=_0x5a1aed[_0x504102];_0x5ae2ef&&(_0xdee0af={..._0xdee0af,'n':{'pattern':_0x5ae2ef}}),_0x17000c[_0x2772c6(0x164)](_0x164b54+_0x2b0ee9,_0x55de0d+_0x49015e,_0x12ee8d(_0xaa333d,_0x1d3478,_0xdee0af));}return{'valueMatrix':_0x17000c,'rowInfo':_0x503f11,'colInfo':_0x5ce202,'cornerInfo':_0x5a8cf6,'rowHeaderMap':_0x80cf6a,'colHeaderMap':_0x8f1824};};function _0x18b92d(_0x187b99,_0x16eed9,_0x41667d,_0x3ecc08){const _0x3f50af=_0x566c44;let _0x13224c=_0x187b99['v'];_0x16eed9&&(_0x13224c=''+_0x3ecc08[_0x3f50af(0x245)]);const _0x268c0d=_0x187b99['t']&&(_0x187b99['t']&_0x38bc74[_0x3f50af(0x374)][_0x3f50af(0xc8)])>0x0;if(_0x268c0d&&(_0x13224c=''+_0x3ecc08['sheets-pivot.blank']),_0x187b99['s']===_0x38bc74[_0x3f50af(0x200)][_0x3f50af(0xd9)]){let _0x542916=_0x13224c,_0x3affe6='';_0x38bc74[_0x3f50af(0x172)](_0x13224c)&&(_0x542916=_0x13224c[_0x3f50af(0x32b)],_0x3affe6=_0x13224c[_0x3f50af(0x1c8)]);const _0x5c4318=_0x41667d&&!_0x268c0d?_0x493c7d[_0x3f50af(0x16d)]['format'](_0x41667d,Number(_0x542916)):_0x542916;_0x3affe6?_0x13224c=_0x5c4318+'\x20'+_0x3affe6:_0x13224c=_0x5c4318+'\x20'+_0x3ecc08[_0x3f50af(0x31a)];}else _0x187b99['s']===_0x38bc74['PivotCellStyleTypeEnum']['GrandTotal']&&(_0x13224c=_0x13224c+'\x20'+_0x3ecc08['sheets-pivot.grandTotal']);return _0x13224c;}function _0x10b3cb(_0x5a578e){const _0x35d68e=_0x566c44;if(_0x38bc74['isErrorValue'](_0x5a578e)){const {errorType:_0x336c12}=_0x5a578e;switch(_0x336c12){case _0x38bc74['PivotErrorTypeEnum'][_0x35d68e(0x19e)]:return _0x3d1a00[_0x35d68e(0x30e)][_0x35d68e(0x259)];case _0x38bc74[_0x35d68e(0x29e)]['NotNumber']:return _0x3d1a00['ErrorType']['NUM'];case _0x38bc74[_0x35d68e(0x29e)][_0x35d68e(0x297)]:return _0x3d1a00[_0x35d68e(0x30e)][_0x35d68e(0x2a1)];case _0x38bc74[_0x35d68e(0x29e)][_0x35d68e(0x363)]:return _0x3d1a00[_0x35d68e(0x30e)][_0x35d68e(0x2a1)];case _0x38bc74[_0x35d68e(0x29e)]['BadReference']:return _0x3d1a00['ErrorType'][_0x35d68e(0x1c5)];}}return _0x5a578e;}function _0x403407(_0x34f971,_0x51d047,_0x501b77=!0x1,_0x23d52a=!0x1){const _0x48a5aa=_0x566c44,{data:_0x5f24dd}=_0x51d047,_0x546a74=_0x51d047[_0x48a5aa(0x121)](),_0x3dce79=_0x51d047[_0x48a5aa(0x159)]();if(_0x546a74<=0x0||_0x3dce79<=0x0)return[];const _0x3ef594=_0x51d047[_0x48a5aa(0x17c)](),_0x1dfd21=_0x51d047[_0x48a5aa(0x325)](),_0x5b4de1=_0x23d52a?_0x1dfd21>=0x0?_0x1dfd21+0x1:0x0:_0x546a74,_0x1f0c78=_0x23d52a?_0x3ef594>=0x0?_0x3ef594+0x1:0x0:_0x3dce79,{row:_0x3eed2b,col:_0x65d428}=_0x34f971,_0xb6c427=_0x3eed2b,_0x9c23a1=_0x65d428;if(_0x501b77){const _0x1bdc68=[];for(const [_0x261280,_0x119763]of Object[_0x48a5aa(0x206)](_0x5f24dd))for(const [_0x2c8acf,_0x432e14]of Object[_0x48a5aa(0x206)](_0x119763))_0x1bdc68[_0x48a5aa(0xb7)](_0x493c7d[_0x48a5aa(0x362)](_0xb6c427+Number(_0x261280),_0x9c23a1+Number(_0x2c8acf)));return _0x1bdc68;}else{const _0x5d6f29=_0x23d52a?_0x5b4de1>0x0?0x1:0x0:0x1,_0x17a4b3=_0x23d52a?_0x1f0c78>0x0?0x1:0x0:0x1,_0x2d5391=_0x3eed2b+_0x5b4de1-_0x5d6f29,_0x4110db=_0x65d428+_0x1f0c78-_0x17a4b3;return[{'startRow':_0xb6c427,'startColumn':_0x9c23a1,'endRow':_0x2d5391,'endColumn':_0x4110db}];}}const _0xb9a66d='SHEET_PIVOT_IN_MAIN_THREAD',_0x103e53=_0x566c44(0x2eb);var _0x223f7f=(_0x3d1b4e=>(_0x3d1b4e[_0x566c44(0x2a8)]=_0x566c44(0xc7),_0x3d1b4e[_0x566c44(0x173)]=_0x566c44(0xcd),_0x3d1b4e[_0x566c44(0x1c4)]='addPivotField',_0x3d1b4e[_0x566c44(0x2b2)]=_0x566c44(0x2b2),_0x3d1b4e[_0x566c44(0x14c)]=_0x566c44(0x368),_0x3d1b4e['MovePivotField']='movePivotField',_0x3d1b4e[_0x566c44(0x1a8)]=_0x566c44(0x2aa),_0x3d1b4e['SetPivotCollapse']=_0x566c44(0x189),_0x3d1b4e['SetPivotFilter']=_0x566c44(0x1bd),_0x3d1b4e['SetPivotSort']=_0x566c44(0x375),_0x3d1b4e[_0x566c44(0x37a)]=_0x566c44(0x373),_0x3d1b4e['UpdatePivotSource']=_0x566c44(0x2d7),_0x3d1b4e[_0x566c44(0x118)]='updateValuePosition',_0x3d1b4e['DrillDown']=_0x566c44(0x384),_0x3d1b4e[_0x566c44(0x1a7)]=_0x566c44(0x266),_0x3d1b4e[_0x566c44(0xf9)]=_0x566c44(0x29b),_0x3d1b4e[_0x566c44(0x18e)]=_0x566c44(0x2c3),_0x3d1b4e))(_0x223f7f||{});const _0x5b78da={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':_0x566c44(0x27a),'sheets-pivot.grandTotalText':_0x566c44(0x24e),'sheets-pivot.valueText':_0x566c44(0x9a),'sheets-pivot.averageName':_0x566c44(0x167),'sheets-pivot.countName':_0x566c44(0x1e4),'sheets-pivot.countNumsName':_0x566c44(0x1e4),'sheets-pivot.maxName':_0x566c44(0x1d8),'sheets-pivot.minName':_0x566c44(0x1a4),'sheets-pivot.productName':_0x566c44(0x9c),'sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':_0x566c44(0x188),'sheets-pivot.sumName':_0x566c44(0x14f),'sheets-pivot.varName':_0x566c44(0x2f9),'sheets-pivot.varpName':_0x566c44(0x332),'sheets-pivot.subTotal':_0x566c44(0xd9),'sheets-pivot.grandTotal':_0x566c44(0x24e),'sheets-pivot.value':_0x566c44(0x1c8),'sheets-pivot.blank':'blank','sheets-pivot.emptyPivot.filter':_0x566c44(0x2a8),'sheets-pivot.emptyPivot.row':_0x566c44(0x1a1),'sheets-pivot.emptyPivot.column':_0x566c44(0x38f),'sheets-pivot.emptyPivot.values':_0x566c44(0x112)},_0x2e4016={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x29c52c=_0x493c7d['createAsyncInterceptorKey'](_0x566c44(0x1ed)),_0x536eb3=_0x493c7d[_0x566c44(0x138)](_0x566c44(0xf0));var _0x2a7c10=(_0x3d5bd8=>(_0x3d5bd8[_0x566c44(0x158)]=_0x566c44(0x158),_0x3d5bd8[_0x566c44(0x15f)]=_0x566c44(0x15f),_0x3d5bd8[_0x566c44(0x28b)]='update',_0x3d5bd8))(_0x2a7c10||{}),_0x3e1445=(_0x1caccb=>(_0x1caccb[_0x566c44(0x2e0)]='add',_0x1caccb['Set']=_0x566c44(0xb8),_0x1caccb[_0x566c44(0x107)]=_0x566c44(0x15f),_0x1caccb))(_0x3e1445||{});const _0x42c4cd={0x0:'m',0x1:'z',0x2:'Y',0x3:'p',0x4:'X',0x5:'n',0x6:'i',0x7:'q',0x8:'Q',0x9:'r','J':'0','p':'1','f':'2','r':'3','P':'4','j':'5','u':'6','W':'7','T':'8','A':'9','z':'a','L':'b','G':'c','h':'d','C':'e','l':'f','t':'g','a':'h','q':'j','w':'k','v':'l','X':'o','b':'s','g':'t','x':'u','R':'v','k':'w','U':'x','Z':'y','i':'A','M':'B','B':'C','Q':'D','O':'E','S':'F','V':'G','K':'H','E':'I','s':'J','n':'K','e':'L','H':'M','c':'N','y':'O','Y':'P','F':'R','D':'S','m':'T','d':'U','I':'V','o':'W','N':'Z'},_0x496737=_0x566c44(0x1f8),_0x33cd84={'type':_0x493c7d['CommandType'][_0x566c44(0x391)],'id':_0x566c44(0x347),'handler':()=>!0x0},_0x1c305c={'type':_0x493c7d['CommandType'][_0x566c44(0x391)],'id':'sheet.mutation.send-pivot-data-local','handler':()=>!0x0},_0x241f07={'type':_0x493c7d['CommandType'][_0x566c44(0x391)],'id':_0x566c44(0x319),'handler':()=>!0x0},_0x5bf8da={'type':_0x493c7d[_0x566c44(0x327)]['MUTATION'],'id':'sheet.mutation.send-pivot-config-local','handler':()=>!0x0},_0x2373dc={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':'sheet.mutation.send-init-pivot-text-local','handler':()=>!0x0},_0x361d89=_0x18356a=>{const _0x3dbbf2=_0x566c44;var _0xf59c04;return((_0xf59c04=_0x18356a[_0x3dbbf2(0x94)])==null?void 0x0:_0xf59c04[_0x3dbbf2(0xda)][_0x3dbbf2(0x275)](/\r\n$/,''))||'';};class _0x3cef9 extends _0x38bc74['DataFieldManager']{constructor(_0x368238,_0x217d49){const _0x10d24b=_0x566c44;super(),_0x3a454e(this,_0x10d24b(0x1ff),{}),_0x3a454e(this,_0x10d24b(0x394)),_0x3a454e(this,_0x10d24b(0x2bf)),(this[_0x10d24b(0x394)]=_0x217d49,this[_0x10d24b(0x2bf)]=_0x368238);}['initDataRanges'](){const _0x311b18=_0x566c44;for(const _0x25abf1 in this[_0x311b18(0x258)]){const _0x14e6b6=this[_0x311b18(0x258)][_0x25abf1],_0x426637=_0x14e6b6['getRangeKey']();this[_0x311b18(0x1ff)][_0x426637]=_0x14e6b6['getId']();}}['getAutoDisplayNameFunction'](){const _0x3c677b=this['_host'];return _0x3b6376['bind'](_0x3c677b);}['deleteDataField'](_0x341263){const _0x194459=_0x566c44,_0xbef726=this[_0x194459(0x258)][_0x341263][_0x194459(0x1db)];delete this[_0x194459(0x258)][_0x341263],delete this[_0x194459(0x1ff)][_0xbef726];}[_0x566c44(0x24c)](_0x589103){const _0x34c1b9=_0x566c44;this[_0x34c1b9(0x258)][_0x589103['getId']()]=_0x589103;}[_0x566c44(0x213)](_0x2be601){const _0x26348c=_0x566c44;var _0x46c301,_0x26c8fa;const _0x7d60a0=this['_host']['getTargetByPivotId'](_0x2be601);if(_0x7d60a0){const {unitId:_0x571929,subUnitId:_0x3edc78}=_0x7d60a0,_0x4c5ed3=(_0x46c301=this[_0x26348c(0x2bf)][_0x26348c(0x132)](_0x571929,_0x3edc78,_0x2be601))==null?void 0x0:_0x46c301[_0x26348c(0x12a)];this[_0x26348c(0x2bf)]['broadcastCollectionChange']({'token':_0x2be601,'type':_0x2a7c10[_0x26348c(0x15f)],'dataRangeInfo':_0x4c5ed3});}(_0x26c8fa=this['getCollection'](_0x2be601))==null||_0x26c8fa['dispose'](),delete this['collections'][_0x2be601];}['getRangeKey'](_0x4ccbf7,_0x4f8601){const _0x3efa81=_0x566c44,{sheetName:_0x2832a5,unitId:_0x224a0e,range:_0x12763f}=_0x4ccbf7,{startRow:_0x3d0479,endRow:_0x1a9511}=_0x12763f;return _0x3d1a00[_0x3efa81(0x152)](_0x224a0e,_0x2832a5,{'startRow':_0x3d0479,'endRow':_0x1a9511,'startColumn':_0x4f8601,'endColumn':_0x4f8601});}[_0x566c44(0x12e)](_0x2ae53d){const _0x143def=_0x566c44;return this[_0x143def(0x258)][this[_0x143def(0x1ff)][_0x2ae53d]];}[_0x566c44(0x385)](_0x15cc73,_0xee23be){const _0x7a8e3d=_0x566c44;this[_0x7a8e3d(0x1ff)][_0x15cc73]=_0xee23be;}['updateRangeKeyMap'](_0x2e66e3,_0x465495){const _0x305297=_0x566c44;this[_0x305297(0x1ff)][_0x465495]=this[_0x305297(0x1ff)][_0x2e66e3],delete this[_0x305297(0x1ff)][_0x2e66e3];}[_0x566c44(0xcc)](_0x43d3b6,_0x1cb5c8,_0x1a05f6,_0x395bdd){const _0x2c08ad=_0x566c44,_0x3dfa92=new _0x38bc74[(_0x2c08ad(0xc6))](this);_0x3dfa92[_0x2c08ad(0x244)](_0x1cb5c8);const _0x30ff0e=[];let _0x56387e=0x0;for(const _0x547a05 of _0x3dfa92[_0x2c08ad(0x291)]){const _0x2635ca=this[_0x2c08ad(0x280)](_0x1a05f6,_0x56387e),_0x3c755e=this[_0x2c08ad(0x258)][_0x547a05];_0x3c755e&&(_0x3c755e[_0x2c08ad(0x1db)]=_0x2635ca,this['setRangeKeyMap'](_0x2635ca,_0x547a05),_0x30ff0e[_0x2c08ad(0xb7)]({'index':_0x56387e,'dataField':_0x3c755e})),_0x56387e++;}return this[_0x2c08ad(0x370)](_0x43d3b6,_0x3dfa92,_0x1a05f6,_0x395bdd),{'collection':_0x3dfa92,'updateDataFieldList':_0x30ff0e};}[_0x566c44(0x10b)](_0x57c2b1,_0x1dc91e){const _0x2f5067=_0x566c44;return _0x57c2b1['rangeType']===_0x493c7d[_0x2f5067(0x31f)][_0x2f5067(0x17d)]?{'startRow':0x0,'startColumn':_0x57c2b1[_0x2f5067(0x175)],'endRow':_0x1dc91e['getRowCount']()-0x1,'endColumn':_0x57c2b1[_0x2f5067(0x354)]}:{'startRow':_0x57c2b1[_0x2f5067(0x1cf)],'startColumn':_0x57c2b1[_0x2f5067(0x175)],'endRow':_0x57c2b1[_0x2f5067(0x1b5)],'endColumn':_0x57c2b1[_0x2f5067(0x354)]};}[_0x566c44(0x161)](_0x5acdfd){const _0x3fef7b=_0x566c44,{sheetName:_0x5c6548,range:_0x1e6fdb}=_0x5acdfd,_0x5c06df=this['_univerInstanceService']['getCurrentUnitForType'](_0x493c7d[_0x3fef7b(0x33a)][_0x3fef7b(0x2ae)]),_0x4f6017=_0x5c06df[_0x3fef7b(0x9b)](_0x5c6548),_0x5d7e07=_0x4f6017['getCellMatrix'](),{startColumn:_0x18742,startRow:_0x58efda,endColumn:_0x59f254}=this[_0x3fef7b(0x10b)](_0x1e6fdb,_0x4f6017),_0xf805fb=_0x5c06df[_0x3fef7b(0x182)](),_0x42466a=new _0x38bc74[(_0x3fef7b(0xc6))](this);_0x42466a[_0x3fef7b(0x274)](_0x5acdfd);const _0x1640d7=[],_0x49aa94={};for(let _0x37126c=_0x18742;_0x37126c<=_0x59f254;_0x37126c++){const _0x28b221=_0x5d7e07[_0x3fef7b(0x276)](_0x58efda,_0x37126c),_0x2780d1=this[_0x3fef7b(0x280)](_0x5acdfd,_0x37126c),_0x497652=this[_0x3fef7b(0x12e)](_0x2780d1);if(_0x497652)_0x42466a[_0x3fef7b(0x353)](_0x497652[_0x3fef7b(0x13f)](),_0x497652[_0x3fef7b(0x279)]());else{const _0x1ff814=this['createDataFieldId']();let _0x495f77=this[_0x3fef7b(0x351)](_0x28b221,_0xf805fb,_0x49aa94);_0x38bc74[_0x3fef7b(0x315)](_0x495f77)&&(_0x495f77=_0x493c7d[_0x3fef7b(0x16d)][_0x3fef7b(0x355)](_0x495f77['f'],Number(_0x495f77['v'])));const _0xe26a16=this[_0x3fef7b(0xe9)](_0x495f77,_0x37126c),_0x211ae6=new _0x38bc74[(_0x3fef7b(0x361))](_0x1ff814,_0xe26a16,_0x38bc74[_0x3fef7b(0x2cd)](0x3));_0x211ae6['rangeKey']=_0x2780d1,this[_0x3fef7b(0x258)][_0x1ff814]=_0x211ae6,_0x42466a['addField'](_0x1ff814,_0xe26a16),_0x1640d7[_0x3fef7b(0xb7)]({'index':_0x37126c,'dataField':_0x211ae6});}}return{'updateDataFieldList':_0x1640d7,'collection':_0x42466a};}[_0x566c44(0xf5)](_0x4d7c9f){const _0x8a6955=_0x566c44;return this[_0x8a6955(0x2bf)][_0x8a6955(0x269)]()['sheets-pivot.columnName']+'\x20'+_0x493c7d['numberToABC'](_0x4d7c9f);}[_0x566c44(0xe9)](_0xf404db,_0x400a84){return _0xf404db==null||_0xf404db===''?this['_getAutoName'](_0x400a84):String(_0xf404db);}[_0x566c44(0x1e6)](_0x2ab99c){const _0x35e9e7=_0x566c44;return this[_0x35e9e7(0x339)][_0x2ab99c];}[_0x566c44(0x370)](_0x471cea,_0x4534da,_0x1c6086,_0x2b9779){const _0x239586=_0x566c44;this[_0x239586(0x339)][_0x471cea]=_0x4534da,_0x4534da[_0x239586(0x274)](_0x1c6086),this['_host'][_0x239586(0x1b2)]({'token':_0x471cea,'type':_0x2a7c10[_0x239586(0x158)],'dataRangeInfo':_0x1c6086,'targetCellInfo':_0x2b9779});}[_0x566c44(0x2f3)](_0x368902,_0x22c6c3){const _0x1c8181=_0x566c44,_0x4f8008=this[_0x1c8181(0x1e6)](_0x368902),_0xd0fb8e=_0x4f8008[_0x1c8181(0x90)]();let _0x22e4f1=0x0;for(const _0x3d0d0c of _0xd0fb8e){const _0x286ae0=_0x4f8008['getFieldById'](_0x3d0d0c),_0x299fed=this[_0x1c8181(0x280)](_0x22c6c3,_0x22e4f1);this[_0x1c8181(0x367)](_0x286ae0[_0x1c8181(0x1db)],_0x299fed),_0x22e4f1++;}}[_0x566c44(0x316)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x566c44(0x1bf)](_0x33cf4d,_0x35b470){const _0x3b24be=_0x566c44;if(this[_0x3b24be(0x1e6)](_0x33cf4d)){const _0x3a56c4=this[_0x3b24be(0x39b)](_0x35b470),_0x3a3906=[];for(const _0x342d80 of _0x3a56c4)this['rangeKeyMap'][_0x342d80]!==void 0x0&&_0x3a3906[_0x3b24be(0xb7)](this[_0x3b24be(0x1ff)][_0x342d80]);const _0x5e7f14=this[_0x3b24be(0x252)](_0x33cf4d),_0x897dde=[],_0x519481=new Set(_0x3a3906);for(const _0x9d25b5 of _0x5e7f14)_0x519481[_0x3b24be(0x137)](_0x9d25b5)||_0x897dde[_0x3b24be(0xb7)](_0x9d25b5);return _0x897dde;}}[_0x566c44(0x160)](_0x4f13d2,_0x2d9d0a,_0x9774a,_0xb9901c,_0x4548c9){const _0x22daa7=_0x566c44;return _0x2d9d0a&&_0x2d9d0a[_0x22daa7(0x276)](_0xb9901c,_0x4548c9)?_0x2d9d0a[_0x22daa7(0x276)](_0xb9901c,_0x4548c9):_0x9774a&&_0x9774a[_0x22daa7(0x276)](_0xb9901c,_0x4548c9)?_0x9774a[_0x22daa7(0x276)](_0xb9901c,_0x4548c9):_0x4f13d2[_0x22daa7(0x276)](_0xb9901c,_0x4548c9);}[_0x566c44(0x1de)](_0x2897d4,_0x1b0c18,_0x509c71,_0x15a19c){const _0x276b24=_0x566c44,_0x4ee695=this[_0x276b24(0x258)][_0x2897d4];if(!_0x4ee695)return;const {subUnitId:_0x45ee30,range:_0x34ac9a,unitId:_0x2ebb44}=_0x1b0c18,_0x1632b3=this[_0x276b24(0x394)][_0x276b24(0x2d8)](_0x2ebb44);if(!_0x1632b3){console[_0x276b24(0x113)](_0x276b24(0x222));return;}const _0x113e33=_0x1632b3[_0x276b24(0x17e)](_0x45ee30),_0x996be2=_0x113e33['getCellMatrix'](),{arrayFormulaCellDataMatrix:_0x303685,unitDataMatrix:_0x359620}=_0x15a19c||{},{startRow:_0x2a3ab4,startColumn:_0x1f425d,endRow:_0x36486a}=this[_0x276b24(0x10b)](_0x34ac9a,_0x113e33);_0x4ee695[_0x276b24(0x1c6)]();const _0x10e799=_0x1632b3[_0x276b24(0x182)](),_0x2efbca={},_0x3d4727=this[_0x276b24(0x160)](_0x996be2,_0x303685,_0x359620,_0x2a3ab4,_0x1f425d+_0x509c71);let _0x44cfdb=this['adjustSheetCellData'](_0x3d4727,_0x10e799,_0x2efbca);_0x38bc74[_0x276b24(0x315)](_0x44cfdb)&&(_0x44cfdb=_0x493c7d[_0x276b24(0x16d)]['format'](_0x44cfdb['f'],Number(_0x44cfdb['v'])));const _0x573c71=this[_0x276b24(0xe9)](_0x44cfdb,_0x1f425d+_0x509c71);_0x4ee695[_0x276b24(0x18d)](_0x573c71);for(let _0x320da0=_0x2a3ab4+0x1;_0x320da0<=_0x36486a;_0x320da0++){const _0x147be9=this[_0x276b24(0x160)](_0x996be2,_0x303685,_0x359620,_0x320da0,_0x1f425d+_0x509c71);_0x4ee695[_0x276b24(0x168)](this[_0x276b24(0x351)](_0x147be9,_0x10e799,_0x2efbca),_0x320da0-0x1-_0x2a3ab4);}}[_0x566c44(0x233)](_0x1f2593,_0x317f8c,_0xcc59c3){const _0x3a6b08=_0x566c44,{subUnitId:_0x4f3db5,range:_0x4d7f56,unitId:_0x20e870}=_0xcc59c3,_0x2df9d7=this['_univerInstanceService']['getUnit'](_0x20e870);if(!_0x2df9d7){console[_0x3a6b08(0x113)](_0x3a6b08(0x222));return;}const _0x1b050b=_0x2df9d7[_0x3a6b08(0x17e)](_0x4f3db5),_0x4bc33b=_0x1b050b['getCellMatrix'](),{startRow:_0xd01e94,startColumn:_0x4fe81e,endRow:_0x4d8128}=this[_0x3a6b08(0x10b)](_0x4d7f56,_0x1b050b),_0x3719b3=_0x2df9d7[_0x3a6b08(0x182)](),_0x44ee0a={};for(const {dataField:_0xba5f2f,index:_0x428d56}of _0x317f8c){_0xba5f2f[_0x3a6b08(0x1c6)]();const _0x507365=this[_0x3a6b08(0x160)](_0x4bc33b,void 0x0,void 0x0,_0xd01e94,_0x4fe81e+_0x428d56);let _0x32cc9b=this[_0x3a6b08(0x351)](_0x507365,_0x3719b3,_0x44ee0a);_0x38bc74[_0x3a6b08(0x315)](_0x32cc9b)&&(_0x32cc9b=_0x493c7d[_0x3a6b08(0x16d)]['format'](_0x32cc9b['f'],Number(_0x32cc9b['v'])));const _0x2679e6=this[_0x3a6b08(0xe9)](_0x32cc9b,_0x4fe81e+_0x428d56);_0xba5f2f[_0x3a6b08(0x18d)](_0x2679e6);}_0x1f2593[_0x3a6b08(0x130)]();for(let _0x25ed86=_0xd01e94+0x1;_0x25ed86<=_0x4d8128;_0x25ed86++)for(const {index:_0x46560a,dataField:_0x2b0c09}of _0x317f8c){const _0x1df570=_0x4bc33b[_0x3a6b08(0x276)](_0x25ed86,_0x4fe81e+_0x46560a);_0x2b0c09['addRecord'](this['adjustSheetCellData'](_0x1df570,_0x3719b3,_0x44ee0a),_0x25ed86-0x1-_0xd01e94);}_0x1f2593[_0x3a6b08(0x39d)](_0x4d8128-_0xd01e94);}['getRangeKeyList'](_0x595c52){const _0x1aa80a=_0x566c44,{range:_0x4b56bc}=_0x595c52,{startColumn:_0x32a293,endColumn:_0x556af9}=_0x4b56bc,_0x843663=[];for(let _0x487b9c=_0x32a293;_0x487b9c<=_0x556af9;_0x487b9c++)_0x843663[_0x1aa80a(0xb7)](this['getRangeKey'](_0x595c52,_0x487b9c));return _0x843663;}[_0x566c44(0x351)](_0x44263b,_0x1487ef,_0x3f6a6d){const _0x6e04cd=_0x566c44;if(_0x44263b){const {s:_0x4839b5,v:_0xe59153,t:_0x3e3b39,p:_0x38be11}=_0x44263b;if(_0x38be11)return _0x361d89(_0x38be11);const _0x44d75c=_0x1487ef['get'](_0x4839b5);if(_0x44d75c&&_0x3e3b39===_0x493c7d[_0x6e04cd(0x298)]['NUMBER']&&_0x44d75c['n']){const {pattern:_0x13f561}=_0x44d75c['n'];_0x3f6a6d[_0x13f561]||(_0x3f6a6d[_0x13f561]=_0x493c7d['numfmt'][_0x6e04cd(0x25c)](_0x13f561));const _0x50b7fb=_0x3f6a6d[_0x13f561],_0x66efb2=_0x50b7fb[_0x6e04cd(0x235)];if(_0x50b7fb[_0x6e04cd(0x2b7)])return String(_0xe59153);if(_0x66efb2)return{'v':_0xe59153,'f':_0x13f561};}if(_0x3e3b39===_0x493c7d[_0x6e04cd(0x298)][_0x6e04cd(0x2f5)])return Number(_0xe59153);if(_0x3e3b39===_0x493c7d[_0x6e04cd(0x298)][_0x6e04cd(0x2d1)]||_0x3e3b39===_0x493c7d['CellValueType'][_0x6e04cd(0x231)])return String(_0xe59153);if(_0x3e3b39===void 0x0){const _0x28e93a=Number(_0xe59153);if(!Number[_0x6e04cd(0x8f)](_0x28e93a)&&String(_0x28e93a)===_0xe59153)return _0x28e93a;}return _0xe59153!=null?_0xe59153:null;}else return null;}[_0x566c44(0x186)](_0x3fc391){const _0x228789=_0x566c44,{sheetName:_0x2b5e03,range:_0x234bf3,unitId:_0x1fa84d}=_0x3fc391,_0x2fac93=this['_univerInstanceService']['getUnit'](_0x1fa84d);if(!_0x2fac93)return console[_0x228789(0x113)]('workbook\x20is\x20not\x20found'),{'header':[],'data':[]};const _0x46284e=_0x2fac93[_0x228789(0x9b)](_0x2b5e03),_0x3989eb=_0x46284e[_0x228789(0x20e)](),{startRow:_0x3f5058,startColumn:_0x3e1ff5,endRow:_0x54a877,endColumn:_0x1abde1}=this[_0x228789(0x10b)](_0x234bf3,_0x46284e),_0x5a664c=_0x2fac93[_0x228789(0x182)](),_0x4b4d00=[],_0x2bbce6=[],_0x8efc4c={};for(let _0x1689db=_0x3f5058;_0x1689db<=_0x54a877;_0x1689db++){const _0x5ae798=[];for(let _0x5a6811=_0x3e1ff5;_0x5a6811<=_0x1abde1;_0x5a6811++){const _0x3ba7e3=_0x3989eb[_0x228789(0x276)](_0x1689db,_0x5a6811);_0x1689db===_0x3f5058?_0x4b4d00[_0x228789(0xb7)](_0x3ba7e3==null?null:String(_0x3ba7e3['v'])):_0x5ae798[_0x228789(0xb7)](this[_0x228789(0x351)](_0x3ba7e3,_0x5a664c,_0x8efc4c));}_0x2bbce6[_0x228789(0xb7)](_0x5ae798);}return{'header':_0x4b4d00,'data':_0x2bbce6};}[_0x566c44(0x37f)](){const _0x33528f=_0x566c44;return super[_0x33528f(0x37f)]();}[_0x566c44(0x244)](_0x5d0bd4){const _0x5b8350=_0x566c44;super[_0x5b8350(0x244)](_0x5d0bd4),this[_0x5b8350(0x208)]();}[_0x566c44(0xa5)](){const _0x40260a=_0x566c44;super['dispose'](),this[_0x40260a(0x1ff)]={},this['_host']=null;}}const _0x4e8eb1=_0x38734f=>{const _0x4a4f1e=_0x566c44,{targetCellInfo:_0x3dc834}=_0x38734f,{matrixCache:_0x51d804,rangesCache:_0x36a47b}=_0x4265e8({'filter':'Filter','row':'Row','column':_0x4a4f1e(0x38f),'values':_0x4a4f1e(0x112)},_0x3dc834),_0xf8b422=new _0x493c7d[(_0x4a4f1e(0x335))]();return _0x51d804[_0x4a4f1e(0x1e3)]((_0x38ed32,_0x4e9699,_0x1d2903)=>{const _0x31069f=_0x4a4f1e;_0xf8b422[_0x31069f(0x164)](_0x38ed32,_0x4e9699,_0x1d2903);}),{'matrix':_0xf8b422,'rangesCache':_0x36a47b};},_0xc2a349=_0x4aca92=>{const _0x1d26b0=_0x566c44;let _0x48a447;if(_0x4aca92!=null&&_0x4aca92['v']||(_0x4aca92==null?void 0x0:_0x4aca92['v'])===0x0){_0x48a447||(_0x48a447={});const _0x50d73e=_0x10b3cb(_0x4aca92['v']);typeof _0x50d73e==_0x1d26b0(0x2ef)?_0x48a447['t']=_0x493c7d[_0x1d26b0(0x298)][_0x1d26b0(0x2f5)]:typeof _0x50d73e==_0x1d26b0(0x146)&&(_0x48a447['t']=_0x493c7d[_0x1d26b0(0x298)][_0x1d26b0(0x2d1)]),_0x48a447['v']=_0x50d73e;}return _0x48a447;},_0x236694=(_0x960fbd,_0x340e41,_0x19a7dd)=>{const _0x2f304b=_0x566c44;var _0xbdca92,_0x125fb1,_0x347edb,_0x3db295,_0xf1d678,_0x2c0234,_0x42ebc6,_0x511d7c,_0x1932ba,_0x3ea830,_0x68abd9,_0x439605;const {cornerView:_0x183d1a,rowView:_0x3fadc3,colView:_0x3f1781,dataView:_0x4206ee,pageView:_0x418c09,formatMap:_0x2e5add}=_0x960fbd,{row:_0x40e5f4,col:_0x1bb2f0}=_0x340e41,_0x567401=new _0x493c7d[(_0x2f304b(0x335))]();let _0x12625f=_0x40e5f4,_0xd3001=_0x1bb2f0;Object['keys'](_0x418c09[_0x2f304b(0x25b)])[_0x2f304b(0xe5)](_0x246c52=>{const _0x1e728c=_0x2f304b;Object[_0x1e728c(0x102)](_0x418c09[_0x1e728c(0x25b)][Number(_0x246c52)])[_0x1e728c(0xe5)](_0x3df928=>{const _0x4a3f62=_0x1e728c,_0x43d59a={..._0x418c09[_0x4a3f62(0x25b)][Number(_0x246c52)][Number(_0x3df928)]};_0x567401['setValue'](Number(_0x246c52)+_0x12625f,Number(_0x3df928)+_0xd3001,_0xc2a349(_0x43d59a));});});const _0x565ee5=Object[_0x2f304b(0x102)](_0x418c09[_0x2f304b(0x25b)])[_0x2f304b(0x13c)];_0x12625f+=_0x565ee5+(_0x565ee5?_0x2657b5:0x0);const _0x3a371c=_0x183d1a[_0x2f304b(0x121)](),_0x36cad5=_0x183d1a[_0x2f304b(0x159)]();for(let _0x31c8a1=0x0;_0x31c8a1<_0x3a371c;_0x31c8a1++)for(let _0x549d04=0x0;_0x549d04<_0x36cad5;_0x549d04++){const _0x190f02={...(_0x125fb1=(_0xbdca92=_0x183d1a[_0x2f304b(0x25b)])==null?void 0x0:_0xbdca92[_0x31c8a1])==null?void 0x0:_0x125fb1[_0x549d04]};_0x190f02&&((_0x347edb=_0x3fadc3['headerMap'][_0x549d04])!=null&&_0x347edb[_0x2f304b(0xfe)])&&_0x549d04===_0x36cad5-0x1&&_0x31c8a1===_0x3a371c-0x1&&(_0x190f02['v']=''+_0x19a7dd[_0x2f304b(0x245)]),_0x567401[_0x2f304b(0x164)](_0x31c8a1+_0x12625f,_0x549d04+_0xd3001,_0xc2a349(_0x190f02));}_0xd3001+=_0x36cad5;const _0x1849be=_0x3f1781[_0x2f304b(0x85)],_0x179c7a=_0x3f1781[_0x2f304b(0x325)]()>=0x0?_0x3f1781[_0x2f304b(0x325)]()+0x1:0x0,_0xf885ca=_0x3f1781['getLastCol']()>=0x0?_0x3f1781['getLastCol']()+0x1:0x0;for(let _0x24bc0=0x0;_0x24bc0<_0xf885ca;_0x24bc0++)for(let _0x8f0c5f=0x0;_0x8f0c5f<_0x179c7a;_0x8f0c5f++){const _0x36a6ec={...(_0xf1d678=(_0x3db295=_0x3f1781['data'])==null?void 0x0:_0x3db295[_0x24bc0])==null?void 0x0:_0xf1d678[_0x8f0c5f]},_0x56150b=(_0x2c0234=_0x1849be[_0x24bc0])==null?void 0x0:_0x2c0234[_0x2f304b(0x170)],_0xaa09aa=_0x2e5add[_0x56150b];_0x36a6ec&&(_0x36a6ec['v']=_0x18b92d(_0x36a6ec,_0x24bc0===0x0&&((_0x42ebc6=_0x3f1781['getHeaderMapItem'](_0x8f0c5f+0x1))==null?void 0x0:_0x42ebc6[_0x2f304b(0xfe)]),_0xaa09aa,_0x19a7dd)),_0x567401[_0x2f304b(0x164)](_0x24bc0+_0x12625f,_0x8f0c5f+_0xd3001,_0xc2a349(_0x36a6ec));}_0x12625f+=_0x3a371c;const _0x107667=_0x3fadc3[_0x2f304b(0x85)],_0x44f46d=_0x3fadc3['getLastRow']()>=0x0?_0x3fadc3[_0x2f304b(0x325)]()+0x1:0x0,_0x5b72c8=_0x3fadc3['getLastCol']()>=0x0?_0x3fadc3[_0x2f304b(0x17c)]()+0x1:0x0;for(let _0x5475f4=0x0;_0x5475f4<_0x44f46d;_0x5475f4++)for(let _0x4dd101=0x0;_0x4dd101<_0x5b72c8;_0x4dd101++){const _0x3dd0e2={...(_0x1932ba=(_0x511d7c=_0x3fadc3[_0x2f304b(0x25b)])==null?void 0x0:_0x511d7c[_0x5475f4])==null?void 0x0:_0x1932ba[_0x4dd101]},_0x1e1011=(_0x3ea830=_0x107667[_0x4dd101])==null?void 0x0:_0x3ea830[_0x2f304b(0x170)],_0x1de799=_0x2e5add[_0x1e1011];_0x3dd0e2&&(_0x3dd0e2['v']=_0x18b92d(_0x3dd0e2,!0x1,_0x1de799,_0x19a7dd)),_0x567401['setValue'](_0x5475f4+_0x12625f,_0x4dd101+_0x1bb2f0,_0xc2a349(_0x3dd0e2));}const _0x42c9e0=_0x4206ee[_0x2f304b(0x121)](),_0x59fe50=_0x4206ee[_0x2f304b(0x159)]();for(let _0x599cbb=0x0;_0x599cbb<_0x42c9e0;_0x599cbb++)for(let _0x355eb8=0x0;_0x355eb8<_0x59fe50;_0x355eb8++){const _0x69f94c={...(_0x439605=(_0x68abd9=_0x4206ee[_0x2f304b(0x25b)])==null?void 0x0:_0x68abd9[_0x599cbb])==null?void 0x0:_0x439605[_0x355eb8]};_0x567401[_0x2f304b(0x164)](_0x599cbb+_0x12625f,_0x355eb8+_0xd3001,_0xc2a349(_0x69f94c));}return _0x567401;},_0x4a0cd8=_0x3d6032=>{const _0x4f0302=_0x566c44,{view:_0x2bab06,targetCellInfo:_0x1bd38c,isEmpty:_0x28ffd9,textInfo:_0x29d546}=_0x3d6032;if(_0x28ffd9)return _0x4e8eb1(_0x3d6032);const {pageView:_0x35dee0,cornerView:_0x361303,rowView:_0x31ee27,colView:_0xb28e2b,dataView:_0x4c82a9}=_0x2bab06,_0x1383ff=_0x403407(_0x1bd38c,_0x35dee0,!0x0),_0x50ad33=_0x35dee0[_0x4f0302(0x247)]>=0x0?_0x35dee0['lastRow']+0x1:0x0,_0x9b15ab=_0x361303['getRowCount'](),_0x5f3763=_0x361303[_0x4f0302(0x159)](),_0x575e60=_0x1383ff['length']>0x0?_0x2657b5:0x0,_0xf1580=_0x403407({'row':_0x1bd38c[_0x4f0302(0x232)]+_0x50ad33+_0x575e60,'col':_0x1bd38c['col']},_0x361303,!0x1,!0x1),_0x12cd07=_0x403407({'row':_0x1bd38c[_0x4f0302(0x232)]+_0x50ad33+_0x575e60+_0x9b15ab,'col':_0x1bd38c[_0x4f0302(0x212)]},_0x31ee27,!0x1,!0x0),_0x3c59fb=_0x403407({'row':_0x1bd38c[_0x4f0302(0x232)]+_0x50ad33+_0x575e60,'col':_0x1bd38c[_0x4f0302(0x212)]+_0x5f3763},_0xb28e2b,!0x1,!0x0),_0x2ef2a7=_0x403407({'row':_0x1bd38c[_0x4f0302(0x232)]+_0x50ad33+_0x575e60+_0x9b15ab,'col':_0x1bd38c[_0x4f0302(0x212)]+_0x5f3763},_0x4c82a9,!0x1,!0x1),_0x18c31d={'rowRanges':_0x12cd07,'colRanges':_0x3c59fb,'cornerRanges':_0xf1580,'dataRanges':_0x2ef2a7,'pageRanges':_0x1383ff};return{'matrix':_0x236694(_0x2bab06,_0x1bd38c,_0x29d546),'rangesCache':_0x18c31d};};var _0x1cf524=Object[_0x566c44(0x183)],_0x44152d=(_0x5f7afd,_0x5b890c,_0x464bd5,_0x108b13)=>{const _0x2e07cd=_0x566c44;for(var _0x307c16=_0x108b13>0x1?void 0x0:_0x108b13?_0x1cf524(_0x5b890c,_0x464bd5):_0x5b890c,_0x92fc62=_0x5f7afd[_0x2e07cd(0x13c)]-0x1,_0x3cf1e6;_0x92fc62>=0x0;_0x92fc62--)(_0x3cf1e6=_0x5f7afd[_0x92fc62])&&(_0x307c16=_0x3cf1e6(_0x307c16)||_0x307c16);return _0x307c16;},_0x4b0683=(_0x21c549,_0x101f35)=>(_0x33d4ef,_0x71243d)=>_0x101f35(_0x33d4ef,_0x71243d,_0x21c549);_0x190415[_0x566c44(0x324)]=class extends _0x493c7d[_0x566c44(0x1ef)]{constructor(_0x4076ef,_0x1338f5,_0x64ea98,_0x26bbf3,_0x32d16d,_0x4543e3){const _0x412f29=_0x566c44;super(),_0x3a454e(this,_0x412f29(0x218),new Map()),_0x3a454e(this,'_pivotTableInstanceCache',new Map()),_0x3a454e(this,_0x412f29(0xba),new Map()),_0x3a454e(this,'_textInfo'),_0x3a454e(this,_0x412f29(0x371),new _0x22c0d0['Subject']()),_0x3a454e(this,'collectionChange$',this[_0x412f29(0x371)][_0x412f29(0x103)]()),_0x3a454e(this,_0x412f29(0x21b),new _0x22c0d0[(_0x412f29(0x333))]()),_0x3a454e(this,_0x412f29(0x8c),this[_0x412f29(0x21b)][_0x412f29(0x103)]()),_0x3a454e(this,_0x412f29(0x322),new _0x22c0d0['Subject']()),_0x3a454e(this,'fieldsCollectionChange$',this[_0x412f29(0x322)][_0x412f29(0x103)]()),_0x3a454e(this,_0x412f29(0xaf),new Map()),_0x3a454e(this,_0x412f29(0x27b),[]),_0x3a454e(this,'_queryingMap',new Map()),(this[_0x412f29(0x93)]=_0x4076ef,this['_univerInstanceService']=_0x1338f5,this[_0x412f29(0x11f)]=_0x64ea98,this[_0x412f29(0x31e)]=_0x26bbf3,this[_0x412f29(0x30a)]=_0x32d16d,this[_0x412f29(0x22a)]=_0x4543e3,this[_0x412f29(0x264)]());}[_0x566c44(0x269)](){return this['_textInfo']?this['_textInfo']:_0x5b78da;}[_0x566c44(0x1dd)](_0xb36538){this['_textInfo']=_0xb36538;}[_0x566c44(0x2f3)](_0x20ecdb){const _0x1e1f32=_0x566c44;var _0x21cae2;const {from:_0x5a4624,to:_0x46567a,unitId:_0xcd0842,fromRange:_0x2d14bf,toRange:_0x14f94a}=_0x20ecdb;if(_0x5a4624&&_0x46567a){const _0x5dcb65=this[_0x1e1f32(0x34c)](_0xcd0842),_0x5138cf=this['_model'][_0x1e1f32(0x9f)](_0xcd0842),_0x274a8d=(_0x21cae2=this[_0x1e1f32(0x394)][_0x1e1f32(0x2d8)](_0xcd0842))==null?void 0x0:_0x21cae2[_0x1e1f32(0x17e)](_0x46567a['subUnitId']);if(!_0x5138cf||!_0x274a8d)return;const _0x3d3974=_0x274a8d==null?void 0x0:_0x274a8d[_0x1e1f32(0x279)]();for(const [_0x200161,_0x2ff4bb]of _0x5138cf['entries']())for(const [_0x6b3dd6,_0x175fb6]of _0x2ff4bb['entries']()){const {sourceRangeInfo:_0x12a5f2}=_0x175fb6;if(_0x12a5f2['unitId']===_0xcd0842&&_0x12a5f2[_0x1e1f32(0x32f)]===_0x5a4624[_0x1e1f32(0x32f)]&&_0x493c7d['Rectangle'][_0x1e1f32(0x18b)](_0x2d14bf,_0x12a5f2[_0x1e1f32(0x383)])){const _0x3fb903={'row':_0x12a5f2[_0x1e1f32(0x383)][_0x1e1f32(0x1cf)]-_0x2d14bf['startRow'],'col':_0x12a5f2[_0x1e1f32(0x383)][_0x1e1f32(0x175)]-_0x2d14bf[_0x1e1f32(0x175)]},_0x56610f={'unitId':_0xcd0842,'subUnitId':_0x46567a['subUnitId'],'sheetName':_0x3d3974,'range':{'startRow':_0x14f94a[_0x1e1f32(0x1cf)]+_0x3fb903['row'],'endRow':_0x14f94a['startRow']+_0x3fb903[_0x1e1f32(0x232)]+_0x12a5f2[_0x1e1f32(0x383)]['endRow']-_0x12a5f2[_0x1e1f32(0x383)][_0x1e1f32(0x1cf)],'startColumn':_0x14f94a[_0x1e1f32(0x175)]+_0x3fb903[_0x1e1f32(0x212)],'endColumn':_0x14f94a[_0x1e1f32(0x175)]+_0x3fb903[_0x1e1f32(0x212)]+_0x12a5f2[_0x1e1f32(0x383)]['endColumn']-_0x12a5f2['range'][_0x1e1f32(0x175)]}};_0x5dcb65[_0x1e1f32(0x2f3)](_0x6b3dd6,_0x56610f);const _0x427df2={..._0x175fb6,'sourceRangeInfo':_0x56610f};this[_0x1e1f32(0xea)](_0xcd0842,_0x46567a[_0x1e1f32(0x32f)],_0x6b3dd6,_0x427df2),this['broadcastCollectionChange']({'unitId':_0xcd0842,'token':_0x6b3dd6,'type':_0x2a7c10[_0x1e1f32(0x28b)],'oldSourceRangeInfo':_0x12a5f2,'dataRangeInfo':_0x56610f,'targetCellInfo':_0x175fb6[_0x1e1f32(0x12d)]}),this[_0x1e1f32(0x147)]({'unitId':_0xcd0842,'subUnitId':_0x46567a[_0x1e1f32(0x32f)],'oldSubUnitId':_0x200161,'pivotTableId':_0x6b3dd6,'pivotTableConfig':_0x427df2,'collectionConfig':_0x5dcb65[_0x1e1f32(0x37f)]()});}}}}[_0x566c44(0x1b2)](_0x392367){const _0x536942=_0x566c44;this[_0x536942(0x371)]['next'](_0x392367);}['getDataFieldManager'](_0x320c86){const _0x44098c=_0x566c44;let _0x5c5e2a=this[_0x44098c(0xaf)][_0x44098c(0x9f)](_0x320c86);return _0x5c5e2a||(_0x5c5e2a=new _0x3cef9(this,this[_0x44098c(0x394)]),this[_0x44098c(0xaf)][_0x44098c(0xb8)](_0x320c86,_0x5c5e2a)),_0x5c5e2a;}[_0x566c44(0x1e6)](_0x57e948,_0x512a6c){const _0x190090=_0x566c44;return this[_0x190090(0x34c)](_0x57e948)['collections'][_0x512a6c];}['getUpdateRangeDeleteIds'](_0x388128,_0x36f8cc,_0x59e7e3){const _0x3def52=_0x566c44;return this[_0x3def52(0x34c)](_0x388128)[_0x3def52(0x1bf)](_0x36f8cc,_0x59e7e3);}[_0x566c44(0x148)](_0x3f8b33,_0x3353b7){const _0x43d119=_0x566c44;let _0x50790f=this[_0x43d119(0x218)][_0x43d119(0x9f)](_0x3f8b33);_0x50790f||(_0x50790f=new Map(),this['_model']['set'](_0x3f8b33,_0x50790f));let _0x345dbc=_0x50790f[_0x43d119(0x9f)](_0x3353b7);return _0x345dbc||(_0x345dbc=new Map(),_0x50790f['set'](_0x3353b7,_0x345dbc)),_0x345dbc;}['_updateModelCache'](_0x1c86b9,_0x1bc905,_0x44c53f,_0x87eb6a){const _0x477e60=_0x566c44;this['_ensurePivotMap'](_0x1c86b9,_0x1bc905)[_0x477e60(0xb8)](_0x44c53f,_0x87eb6a);}[_0x566c44(0x309)](_0x28e0fb,_0x355e58,_0x53f65a){const _0x362665=_0x566c44;var _0x5045af,_0xab59ec,_0x19f8c3,_0x2dea7c;((_0xab59ec=(_0x5045af=this[_0x362665(0x218)][_0x362665(0x9f)](_0x28e0fb))==null?void 0x0:_0x5045af[_0x362665(0x9f)](_0x355e58))==null?void 0x0:_0xab59ec[_0x362665(0x9f)](_0x53f65a))&&((_0x2dea7c=(_0x19f8c3=this[_0x362665(0x218)][_0x362665(0x9f)](_0x28e0fb))==null?void 0x0:_0x19f8c3[_0x362665(0x9f)](_0x355e58))==null||_0x2dea7c[_0x362665(0x15f)](_0x53f65a));}[_0x566c44(0x1fc)](_0x34e8f8,_0x60ba18){const _0x16f3cc=_0x566c44;this[_0x16f3cc(0x357)][_0x16f3cc(0xb8)](_0x34e8f8,_0x60ba18);}['_deletePivotTableInstanceCache'](_0x2eed10){const _0x573a37=_0x566c44;this[_0x573a37(0x357)][_0x573a37(0x15f)](_0x2eed10);}[_0x566c44(0xf4)](_0x4866be,_0x3a0c78){const _0x290722=_0x566c44;let _0x25bae2=this[_0x290722(0xba)][_0x290722(0x9f)](_0x4866be);_0x25bae2||(_0x25bae2=new Map(),this[_0x290722(0xba)][_0x290722(0xb8)](_0x4866be,_0x25bae2));let _0x2770e9=_0x25bae2['get'](_0x3a0c78);return _0x2770e9||(_0x2770e9=new Map(),_0x25bae2[_0x290722(0xb8)](_0x3a0c78,_0x2770e9)),_0x2770e9;}['updateConfig'](_0x1c2f75){const _0x3560d1=_0x566c44,{unitId:_0x4c74d4,subUnitId:_0x586fd8,pivotTableId:_0x39558d,pivotTableConfig:_0x31a752,collectionConfig:_0x4936b7}=_0x1c2f75,_0x3905b5={'unitId':_0x4c74d4,'subUnitId':_0x586fd8,'oldSubUnitId':_0x586fd8,'pivotTableId':_0x39558d,'pivotTableConfig':_0x31a752,'collectionConfig':_0x4936b7};this[_0x3560d1(0x30a)][_0x3560d1(0xff)](_0x5bf8da['id'],_0x3905b5,{'onlyLocal':!0x0});}[_0x566c44(0x30c)](_0x2fc390,_0x2b8354,_0x44188c,_0x1e9f61,_0x3985f0,_0x270ad1,_0x5002b8,_0x20b4c4=!0x1){const _0x2e4870=_0x566c44;var _0x1ff5b1;this[_0x2e4870(0x30a)][_0x2e4870(0xff)](_0x241f07['id'],{'single':{'unitId':_0x2fc390,'subUnitId':_0x2b8354,'type':_0x44188c,'pivotTableId':_0x1e9f61,'view':_0x3985f0,'pivotConfig':_0x270ad1},'collectionConfig':{[_0x2fc390]:_0x5002b8}},{'onlyLocal':!0x0});const _0x49be85=!!((_0x1ff5b1=this[_0x2e4870(0x2db)](_0x1e9f61))!=null&&_0x1ff5b1[_0x2e4870(0x15c)]()),_0x1d67c0=this[_0x2e4870(0x132)](_0x2fc390,_0x2b8354,_0x1e9f61);_0x1d67c0&&this['updateViewData']({'view':_0x3985f0,'pivotTableId':_0x1e9f61,'textInfo':this[_0x2e4870(0x269)](),'isEmpty':_0x49be85,'targetCellInfo':_0x1d67c0[_0x2e4870(0x12d)]},_0x20b4c4);}['updateViewData'](_0xe83d11,_0x1dcbd4){const _0x1facfc=_0x566c44,{targetCellInfo:_0x199153,pivotTableId:_0x47a560}=_0xe83d11,{unitId:_0x569b2f,subUnitId:_0x19c239}=_0x199153,_0x373b05=this[_0x1facfc(0xf4)](_0x569b2f,_0x19c239),_0xd5fe88=_0x373b05[_0x1facfc(0x9f)](_0x47a560);let _0x3082f2,_0x729081;_0xd5fe88&&(_0x3082f2=_0xd5fe88[_0x1facfc(0x216)],_0x729081=_0xd5fe88['matrix']);const {rangesCache:_0x4037ec,matrix:_0x367a0d}=_0x4a0cd8(_0xe83d11);_0x373b05['set'](_0x47a560,{'rangeCache':_0x4037ec,'matrix':_0x367a0d,'oldMatrix':_0x729081,'oldRangeCache':_0x3082f2}),_0x1dcbd4||this[_0x1facfc(0x21b)][_0x1facfc(0x191)]({'unitId':_0x569b2f,'subUnitId':_0x19c239,'pivotTableId':_0x47a560});}[_0x566c44(0x368)](_0x3333ac,_0x95bb06,_0x14ba97,_0x59f6fe,_0x229a21){const _0x171683=_0x566c44;this[_0x171683(0xea)](_0x3333ac,_0x95bb06,_0x14ba97,_0x229a21),this[_0x171683(0x1fc)](_0x14ba97,_0x59f6fe);}[_0x566c44(0x377)](_0x1852ee,_0x2ed1b6,_0x25e08f){const _0x52c84e=_0x566c44,_0x5be1ba=this[_0x52c84e(0x34c)](_0x1852ee);_0x5be1ba[_0x52c84e(0x252)](_0x25e08f)[_0x52c84e(0xe5)](_0x2a9941=>{const _0x4976fb=_0x52c84e;_0x5be1ba[_0x4976fb(0x346)](_0x2a9941);}),this['removeCollections'](_0x1852ee,_0x25e08f),this[_0x52c84e(0x309)](_0x1852ee,_0x2ed1b6,_0x25e08f),this[_0x52c84e(0x23d)](_0x25e08f);}['setPivotTable'](_0x1b1e0d,_0x13d62e,_0x375620,_0x37cbc9){this['_updateModelCache'](_0x1b1e0d,_0x13d62e,_0x375620,_0x37cbc9);}['getPivotTableConfig'](_0x873cfb,_0x5cd612,_0x34c41c){const _0x1c0e4b=_0x566c44;var _0x590a23,_0x55c89a;const _0x300e6f=(_0x55c89a=(_0x590a23=this[_0x1c0e4b(0x218)][_0x1c0e4b(0x9f)](_0x873cfb))==null?void 0x0:_0x590a23[_0x1c0e4b(0x9f)](_0x5cd612))==null?void 0x0:_0x55c89a[_0x1c0e4b(0x9f)](_0x34c41c);if(_0x300e6f)return _0x300e6f;}[_0x566c44(0x389)](_0x277337,_0x14753a,_0x1c753a){const _0x927ad9=_0x566c44;var _0x3fbd36,_0x235475;const _0x464815=(_0x235475=(_0x3fbd36=this[_0x927ad9(0x218)][_0x927ad9(0x9f)](_0x277337))==null?void 0x0:_0x3fbd36[_0x927ad9(0x9f)](_0x14753a))==null?void 0x0:_0x235475[_0x927ad9(0x9f)](_0x1c753a);if(_0x464815)return _0x464815[_0x927ad9(0x2fc)];}['getPivotTableInstance'](_0x1e2b35){return this['_pivotTableInstanceCache']['get'](_0x1e2b35);}['deleteUnitId'](_0x46e290){const _0x363075=_0x566c44;this[_0x363075(0x218)][_0x363075(0x15f)](_0x46e290);const _0x5c03fb=this['_dataFieldManagerCollection'][_0x363075(0x9f)](_0x46e290);_0x5c03fb&&(_0x5c03fb[_0x363075(0xa5)](),this[_0x363075(0xaf)]['delete'](_0x46e290)),this[_0x363075(0xba)][_0x363075(0x15f)](_0x46e290),this['needSameDeleteModel']['forEach'](_0x5b16b0=>{const _0x444d89=_0x363075;_0x5b16b0[_0x444d89(0x1d0)](_0x46e290);});}[_0x566c44(0xcc)](_0x502e73,_0x3c182c,_0x4dad45,_0x5c4588){const _0x55d9aa=_0x566c44;return this[_0x55d9aa(0x34c)](_0x4dad45[_0x55d9aa(0x35b)])[_0x55d9aa(0xcc)](_0x502e73,_0x3c182c,_0x4dad45,_0x5c4588);}[_0x566c44(0x161)](_0x3d6c6c){const _0x31f5be=_0x566c44;return this[_0x31f5be(0x34c)](_0x3d6c6c[_0x31f5be(0x35b)])[_0x31f5be(0x161)](_0x3d6c6c);}[_0x566c44(0x233)](_0x23c051,_0x30144f,_0x3994a1){const _0xeda157=_0x566c44;this[_0xeda157(0x34c)](_0x3994a1[_0xeda157(0x35b)])['refreshData'](_0x23c051,_0x30144f,_0x3994a1);}[_0x566c44(0x2c1)](_0x39ccb8,_0x3c186b){const _0x44b8fe=_0x566c44;this[_0x44b8fe(0x34c)](_0x39ccb8)['deleteDataField'](_0x3c186b);}[_0x566c44(0x1cc)](_0x33006d,_0x2c8605){const _0x5dc8b1=_0x566c44;this[_0x5dc8b1(0x34c)](_0x33006d)[_0x5dc8b1(0x213)](_0x2c8605);}[_0x566c44(0x1ab)](_0x1adc48,_0x1122a2){const _0x2d2e06=_0x566c44;var _0x92ce68;return(_0x92ce68=this['_model'][_0x2d2e06(0x9f)](_0x1adc48))==null?void 0x0:_0x92ce68[_0x2d2e06(0x9f)](_0x1122a2);}['getTargetByPivotId'](_0x1ca955){const _0x167b39=_0x566c44;for(const [_0x4afbed,_0x1da359]of this[_0x167b39(0x218)]['entries']())for(const [_0x8ee18f,_0x4234a1]of _0x1da359['entries']())if(_0x4234a1[_0x167b39(0x137)](_0x1ca955))return{'unitId':_0x4afbed,'subUnitId':_0x8ee18f};return null;}[_0x566c44(0x28d)](_0x2049cf,_0xe42f79,_0x5d39f7,_0x5c55f6){const _0x412b75=_0x566c44,_0x20c19f=this[_0x412b75(0xf4)](_0x2049cf,_0xe42f79);_0x5c55f6?_0x20c19f[_0x412b75(0xb8)](_0x5d39f7,_0x5c55f6):_0x20c19f[_0x412b75(0x15f)](_0x5d39f7),this['_viewData$']['next']({'unitId':_0x2049cf,'subUnitId':_0xe42f79,'pivotTableId':_0x5d39f7});}['dispose'](){const _0x122862=_0x566c44;super[_0x122862(0xa5)]();}[_0x566c44(0x28f)](_0x4f5db4,_0x58740f,_0x461c5d){const _0x3806b=_0x566c44;var _0x1bb28f,_0x48273e;const _0x9dfd43=(_0x48273e=(_0x1bb28f=this[_0x3806b(0xba)]['get'](_0x4f5db4))==null?void 0x0:_0x1bb28f[_0x3806b(0x9f)](_0x58740f))==null?void 0x0:_0x48273e['get'](_0x461c5d);return _0x9dfd43||null;}[_0x566c44(0x166)](_0x104620){this['updateDirtyPivotTable'](_0x104620);}[_0x566c44(0x36d)](_0x4ebfd){const _0x2c62e0=_0x566c44,{token:_0x35e9c2,unitId:_0x24670f,subUnitId:_0x5d0921}=_0x4ebfd,_0x3e3023=_0x24670f+'-'+_0x5d0921+'-'+_0x35e9c2;this['_queryingMap']['get'](_0x3e3023)&&clearTimeout(this[_0x2c62e0(0x2c0)][_0x2c62e0(0x9f)](_0x3e3023));const _0x279688=setTimeout(()=>{const _0x3f8ba4=_0x2c62e0;this[_0x3f8ba4(0xbf)](_0x4ebfd),this[_0x3f8ba4(0x2c0)][_0x3f8ba4(0x15f)](_0x3e3023);},_0x419532);this[_0x2c62e0(0x2c0)][_0x2c62e0(0xb8)](_0x3e3023,_0x279688);}[_0x566c44(0xbf)](_0x4111c4){const _0x979c88=_0x566c44,{unitId:_0x851f26,subUnitId:_0x3346d2,token:_0x3d1b7b,type:_0x93403,pivotConfig:_0x3b412f}=_0x4111c4,_0x4a3dbc=this[_0x979c88(0x2db)](_0x3d1b7b),_0x1753be=_0x4a3dbc==null?void 0x0:_0x4a3dbc[_0x979c88(0x210)](),_0x21ccab=_0x3b412f!=null?_0x3b412f:this[_0x979c88(0x132)](_0x851f26,_0x3346d2,_0x3d1b7b);_0x21ccab&&(_0x21ccab[_0x979c88(0x15c)]=!!(_0x4a3dbc!=null&&_0x4a3dbc[_0x979c88(0x15c)]())),(_0x1753be||_0x93403===_0x3e1445[_0x979c88(0x107)])&&this[_0x979c88(0x30c)](_0x851f26,_0x3346d2,_0x93403,_0x3d1b7b,_0x1753be,_0x21ccab,this['getDataFieldManager'](_0x851f26)[_0x979c88(0x37f)]());}[_0x566c44(0x37f)](_0x14f5c6){const _0x37fd21=_0x566c44,_0x4c5455={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x37fd21(0x34c)](_0x14f5c6)&&(_0x4c5455[_0x37fd21(0x2cc)][_0x14f5c6]=this[_0x37fd21(0x34c)](_0x14f5c6)['toJSON']()),this['_model'][_0x37fd21(0x9f)](_0x14f5c6)){_0x4c5455[_0x37fd21(0x262)][_0x14f5c6]={};const _0x43c1ab=this[_0x37fd21(0x218)][_0x37fd21(0x9f)](_0x14f5c6);_0x43c1ab!=null&&_0x43c1ab['size']&&[..._0x43c1ab[_0x37fd21(0x102)]()][_0x37fd21(0xe5)](_0x5055a5=>{const _0x3703e0=_0x37fd21,_0x573635=_0x43c1ab[_0x3703e0(0x9f)](_0x5055a5);_0x573635!=null&&_0x573635[_0x3703e0(0x399)]&&(_0x4c5455[_0x3703e0(0x262)][_0x14f5c6][_0x5055a5]={},[..._0x573635[_0x3703e0(0x102)]()]['forEach'](_0x592ea6=>{const _0x1d092f=_0x3703e0,_0x5fd80b=_0x573635[_0x1d092f(0x9f)](_0x592ea6);_0x5fd80b&&(_0x4c5455['pivotTableConfigs'][_0x14f5c6][_0x5055a5][_0x592ea6]=_0x5fd80b);}));});}return _0x4c5455;}[_0x566c44(0x244)](_0x3c4faf){const _0x2f84a5=_0x566c44;var _0x1273d8;const {dataFieldManagerConfig:_0x913eb,pivotTableConfigs:_0x485204}=_0x3c4faf;_0x913eb&&Object[_0x2f84a5(0x102)](_0x913eb)[_0x2f84a5(0xe5)](_0x4e6501=>{this['getDataFieldManager'](_0x4e6501)['fromJSON'](_0x913eb[_0x4e6501]);});const _0xf8713a=[];if(_0x485204){const _0xc2490f=(_0x1273d8=this[_0x2f84a5(0x93)][_0x2f84a5(0x9f)](_0x493c7d['IConfigService'])[_0x2f84a5(0x290)](_0x17beef['LS_CONFIG_KEY']))!=null?_0x1273d8:{},{ls:_0x5c8aab,pbk:_0x2720eb}=_0xc2490f,_0x22fe46=_0x5bc9e8(_0x4302a8,_0x5c8aab,_0x2720eb)[_0x2f84a5(0x1ac)];Object['keys'](_0x485204)[_0x2f84a5(0xe5)](_0x47047b=>{const _0x10f714=_0x2f84a5;let _0x54698d=0x0;const _0x487226=_0x485204[_0x47047b];Object[_0x10f714(0x102)](_0x487226)[_0x10f714(0xe5)](_0x5977c8=>{const _0x4c6c07=_0x10f714,_0x2d9c8a=_0x487226[_0x5977c8];Object[_0x4c6c07(0x102)](_0x2d9c8a)['forEach'](_0x1c09cf=>{const _0x3d9e9b=_0x4c6c07,_0x3958bd=_0x2d9c8a[_0x1c09cf];if(_0x3958bd){if(_0x54698d>=_0x22fe46)return;_0x54698d++;const _0x4246e8=this[_0x3d9e9b(0x34c)](_0x47047b),_0x4d913c=_0x4246e8[_0x3d9e9b(0x339)][_0x1c09cf],_0xb03495=_0x4d913c[_0x3d9e9b(0x90)]();let _0x43bd6c=0x0;const _0x588d78=[];for(const _0x58a8db of _0xb03495){const _0x32c885=_0x4d913c[_0x3d9e9b(0x15a)](_0x58a8db);if(_0x38bc74[_0x3d9e9b(0x317)](_0x32c885)){const _0x379b72=_0x32c885[_0x3d9e9b(0x2c5)](),_0x2cdce8=_0x4d913c[_0x3d9e9b(0x15a)](_0x379b72);_0x2cdce8&&_0x588d78[_0x3d9e9b(0xb7)]([_0x32c885,_0x2cdce8]);continue;}_0x4246e8[_0x3d9e9b(0x1de)](_0x58a8db,_0x3958bd[_0x3d9e9b(0x12a)],_0x43bd6c),_0x43bd6c++;}_0x588d78[_0x3d9e9b(0xe5)](([_0x3d1eb7,_0x2a67b6])=>{const _0x236cb9=_0x3d9e9b;_0x3d1eb7[_0x236cb9(0xc3)](_0x2a67b6);});const _0xb55e4d=new _0x38bc74['PivotTable'](_0x4d913c);_0xb55e4d[_0x3d9e9b(0x244)](_0x3958bd[_0x3d9e9b(0x2fc)]),this['addPivotTable'](_0x47047b,_0x5977c8,_0x1c09cf,_0xb55e4d,_0x3958bd);const _0x27a317=_0xb55e4d[_0x3d9e9b(0x210)]();_0xf8713a['push']({'unitId':_0x47047b,'subUnitId':_0x5977c8,'pivotTableId':_0x1c09cf,'view':_0x27a317[_0x3d9e9b(0x37f)](),'pivotConfig':_0x3958bd,'type':_0x3e1445[_0x3d9e9b(0x2e0)]});const _0x4fa71c=!!_0xb55e4d[_0x3d9e9b(0x15c)](),_0x4802d0={'view':_0x27a317,'pivotTableId':_0x1c09cf,'textInfo':this['getTextInfo'](),'isEmpty':_0x4fa71c,'targetCellInfo':_0x3958bd[_0x3d9e9b(0x12d)]};this['updateViewData'](_0x4802d0,!0x1);}});});});}_0x913eb&&Object['keys'](_0x913eb)[_0x2f84a5(0xe5)](_0x3c3750=>{const _0x16d08e=_0x2f84a5,_0x83164=this[_0x16d08e(0x34c)](_0x3c3750);this[_0x16d08e(0x322)][_0x16d08e(0x191)](_0x83164['collections']);}),this[_0x2f84a5(0x30a)]['executeCommand'](_0x241f07['id'],{'batch':_0xf8713a,'collectionConfig':_0x913eb},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x21d27a=_0x566c44;this[_0x21d27a(0x18a)](this[_0x21d27a(0x22a)]['registerPluginResource']({'toJson':_0x282a94=>JSON['stringify'](this['toJSON'](_0x282a94)),'parseJson':_0x3d5bb3=>{if(!_0x3d5bb3)return{};try{return JSON['parse'](_0x3d5bb3);}catch{return{};}},'businesses':[_0x493c7d[_0x21d27a(0x33a)][_0x21d27a(0x2ae)]],'pluginName':_0x2600ad,'onLoad':(_0x42914a,_0x2c393a)=>{this['fromJSON'](_0x2c393a);},'onUnLoad':_0x3d5b8c=>{const _0x4196d0=_0x21d27a;this[_0x4196d0(0x1d0)](_0x3d5b8c);}}));}},_0x190415['SheetsPivotDataSourceModel']=_0x44152d([_0x4b0683(0x0,_0x493c7d['Inject'](_0x493c7d[_0x566c44(0x1a5)])),_0x4b0683(0x1,_0x493c7d[_0x566c44(0x356)]),_0x4b0683(0x2,_0x493c7d['Inject'](_0x493c7d['LifecycleService'])),_0x4b0683(0x3,_0x493c7d[_0x566c44(0xa7)]),_0x4b0683(0x4,_0x493c7d[_0x566c44(0x1a0)]),_0x4b0683(0x5,_0x493c7d[_0x566c44(0xc0)](_0x493c7d[_0x566c44(0xc4)]))],_0x190415['SheetsPivotDataSourceModel']);const _0x3513ef={0x0:{0x0:{'v':'filter','s':_0xf5954f}},0x2:{0x1:{'v':'','s':_0xf5954f},0x2:{'v':'','s':_0xf5954f},0x3:{'v':_0x566c44(0x1f5),'s':_0xf5954f},0x4:{'v':'','s':_0xf5954f},0x5:{'v':'','s':_0xf5954f}},0x3:{0x0:{'v':'','s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':'','s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}},0x4:{0x0:{'v':'','s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':'','s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}},0x5:{0x0:{'v':'','s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':'','s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}},0x6:{0x0:{'v':'','s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':'','s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}},0x7:{0x0:{'v':'','s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':'','s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}},0x8:{0x0:{'v':_0x566c44(0x232),'s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':_0x566c44(0x293),'s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}},0x9:{0x0:{'v':'','s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':'','s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}},0xa:{0x0:{'v':'','s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':'','s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}},0xb:{0x0:{'v':'','s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':'','s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}},0xc:{0x0:{'v':'','s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':'','s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}},0xd:{0x0:{'v':'','s':_0xf5954f},0x1:{'v':'','s':_0x5d7553},0x2:{'v':'','s':_0x5d7553},0x3:{'v':'','s':_0x5d7553},0x4:{'v':'','s':_0x5d7553},0x5:{'v':'','s':_0x5d7553}}},_0xa2a472={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},_0x4265e8=(_0x2ba6dc,_0x38ffe6)=>{const _0x22ae34=_0x566c44,_0x548847=new _0x493c7d['ObjectMatrix'](),_0x412d2b=new _0x493c7d[(_0x22ae34(0x335))](_0x3513ef),{row:_0x4f8495,col:_0x42613e}=_0x38ffe6;_0x412d2b[_0x22ae34(0x1e3)]((_0x157789,_0x228185,_0x5245bf)=>{const _0x2d2799=_0x22ae34;let _0x436a4a='';_0x5245bf['v']===_0x2d2799(0xc7)?_0x436a4a=_0x2ba6dc[_0x2d2799(0xc7)]:_0x5245bf['v']===_0x2d2799(0x232)?_0x436a4a=_0x2ba6dc[_0x2d2799(0x232)]:_0x5245bf['v']==='column'?_0x436a4a=_0x2ba6dc[_0x2d2799(0x1f5)]:_0x5245bf['v']===_0x2d2799(0x293)&&(_0x436a4a=_0x2ba6dc['values']),_0x548847[_0x2d2799(0x164)](_0x157789+_0x4f8495,_0x228185+_0x42613e,{..._0x5245bf,'v':_0x436a4a});});const _0x48ce29=_0x493c7d['Tools'][_0x22ae34(0x30f)](_0xa2a472);return Object[_0x22ae34(0x102)](_0xa2a472)[_0x22ae34(0xe5)](_0x40f72c=>{const _0x7a2c=_0x22ae34;_0x48ce29[_0x40f72c]=_0xa2a472[_0x40f72c]['map'](_0x3f79d4=>({..._0x3f79d4,'startRow':_0x3f79d4['startRow']+_0x4f8495,'endRow':_0x3f79d4[_0x7a2c(0x1b5)]+_0x4f8495,'startColumn':_0x3f79d4[_0x7a2c(0x175)]+_0x42613e,'endColumn':_0x3f79d4['endColumn']+_0x42613e}));}),{'matrixCache':_0x548847,'rangesCache':_0x48ce29};};function _0x3b6376(_0x498888,_0x5a81fb){const _0x358bf0=_0x566c44;let _0x5a1a00='';const _0x250332=this[_0x358bf0(0x269)]();switch(_0x5a81fb){case _0x38bc74[_0x358bf0(0x123)][_0x358bf0(0x2f1)]:_0x5a1a00=_0x250332[_0x358bf0(0x350)]+_0x498888;break;case _0x38bc74['PivotSubtotalTypeEnum']['count']:_0x5a1a00=_0x250332[_0x358bf0(0x2e9)]+_0x498888;break;case _0x38bc74[_0x358bf0(0x123)]['countNums']:_0x5a1a00=_0x250332[_0x358bf0(0x28e)]+_0x498888;break;case _0x38bc74[_0x358bf0(0x123)][_0x358bf0(0x10f)]:_0x5a1a00=_0x250332['sheets-pivot.maxName']+_0x498888;break;case _0x38bc74[_0x358bf0(0x123)][_0x358bf0(0x365)]:_0x5a1a00=_0x250332[_0x358bf0(0x177)]+_0x498888;break;case _0x38bc74[_0x358bf0(0x123)][_0x358bf0(0x33d)]:_0x5a1a00=_0x250332[_0x358bf0(0x26d)]+_0x498888;break;case _0x38bc74[_0x358bf0(0x123)]['stdDev']:_0x5a1a00=_0x250332[_0x358bf0(0x304)]+_0x498888;break;case _0x38bc74[_0x358bf0(0x123)][_0x358bf0(0x39c)]:_0x5a1a00=_0x250332[_0x358bf0(0x16f)]+_0x498888;break;case _0x38bc74[_0x358bf0(0x123)][_0x358bf0(0xeb)]:_0x5a1a00=_0x250332['sheets-pivot.sumName']+_0x498888;break;case _0x38bc74[_0x358bf0(0x123)][_0x358bf0(0x36a)]:_0x5a1a00=_0x250332[_0x358bf0(0x382)]+_0x498888;break;case _0x38bc74['PivotSubtotalTypeEnum']['varp']:_0x5a1a00=_0x250332['sheets-pivot.varpName']+_0x498888;break;default:_0x5a1a00=_0x498888;break;}return _0x5a1a00;}function _0x119ead(_0x15f9c6,_0x178026,_0x37fa95,_0x1505fc,_0x5c6f51){const _0x316e75=_0x566c44;var _0x1305a7,_0x404587,_0x3afc50,_0x31eeb0,_0x424d50;const _0xad34ab=_0x493c7d[_0x316e75(0x362)](_0x15f9c6,_0x178026),{rangesInfo:_0x56756b,areaInfo:_0x1b3abc,headerMap:_0x25c575}=_0x5c6f51;if(!_0x56756b||!_0x1b3abc||!_0x25c575)return;const _0x4f90e9=Object[_0x316e75(0x102)](_0x56756b)[_0x316e75(0xb5)](_0x3c7271=>_0x56756b[_0x3c7271][_0x316e75(0x38e)](_0x2762bf=>_0x493c7d[_0x316e75(0x249)][_0x316e75(0x18b)](_0x2762bf,_0xad34ab))),_0x54d4a7=_0x1b3abc;let _0x49ac32,_0x50d93b,_0x360282;if(_0x4f90e9===_0x316e75(0x240))_0x49ac32=(_0x1305a7=_0x54d4a7==null?void 0x0:_0x54d4a7[_0x316e75(0x272)])==null?void 0x0:_0x1305a7[_0x15f9c6],_0x50d93b=(_0x404587=_0x25c575==null?void 0x0:_0x25c575['rowHeaderMap'])==null?void 0x0:_0x404587[_0x178026],_0x360282=_0x50d93b==null?void 0x0:_0x50d93b[_0x316e75(0x170)];else{if(_0x4f90e9===_0x316e75(0x19d))_0x49ac32=(_0x3afc50=_0x54d4a7==null?void 0x0:_0x54d4a7[_0x316e75(0x321)])==null?void 0x0:_0x3afc50[_0x178026],_0x50d93b=(_0x31eeb0=_0x25c575[_0x316e75(0x349)])==null?void 0x0:_0x31eeb0[_0x15f9c6+0x1+_0x178026-_0x56756b[_0x316e75(0x19d)][0x0]['startColumn']],_0x360282=_0x50d93b==null?void 0x0:_0x50d93b[_0x316e75(0x170)];else{if(_0x4f90e9===_0x316e75(0x36b))_0x49ac32=(_0x424d50=_0x54d4a7==null?void 0x0:_0x54d4a7[_0x316e75(0x17a)])==null?void 0x0:_0x424d50[_0x178026],_0x360282=_0x49ac32==null?void 0x0:_0x49ac32[_0x316e75(0x170)];else{if(_0x4f90e9==='pageRanges'){const _0x4acfd8=_0x37fa95==null?void 0x0:_0x37fa95['fi'];_0x4acfd8!==void 0x0&&(_0x360282=_0x1505fc[_0x316e75(0x209)](_0x4acfd8));}}}}return{'filterId':_0x360282,'info':_0x49ac32,'data':_0x37fa95,'headerInfo':_0x50d93b};}function _0x24b403(_0x1e4fe8,_0x461bb7,_0x55b663){const _0x288641=_0x566c44,_0x3e2ff6=_0x1e4fe8[_0x288641(0x144)],_0x205351=_0x3e2ff6['getFieldIds'](),_0x435f77=new Set();_0x1e4fe8[_0x288641(0x1ba)](_0x45d811=>{const _0x44fa01=_0x288641;_0x435f77['add'](_0x45d811[_0x44fa01(0x1d6)]);});const _0x15446b=_0x205351[_0x288641(0x1c9)](_0x464af7=>{const _0x44799e=_0x288641,_0x21f84e=_0x3e2ff6[_0x44799e(0x15a)](_0x464af7);return{'checked':_0x435f77['has'](_0x464af7),'dataFieldId':_0x21f84e['id'],'id':_0x21f84e['id'],'name':_0x3e2ff6[_0x44799e(0xa9)](_0x21f84e['id']),'type':_0x21f84e[_0x44799e(0x30b)](),'pivotTableId':_0x461bb7};}),_0x4e07ea=[];_0x1e4fe8[_0x288641(0x31c)](_0x38bc74[_0x288641(0x1fa)][_0x288641(0x1a1)],_0x4ed223=>{const _0x1561d8=_0x288641;_0x4e07ea[_0x1561d8(0xb7)]({'dataFieldId':_0x4ed223[_0x1561d8(0x1d6)],'tableFieldId':_0x4ed223[_0x1561d8(0x13f)](),'displayName':_0x4ed223[_0x1561d8(0xa9)]()});});const _0x16096c=[];_0x1e4fe8[_0x288641(0x31c)](_0x38bc74['PivotTableFiledAreaEnum'][_0x288641(0x38f)],_0xe89d5a=>{const _0x2658b6=_0x288641;_0x16096c['push']({'dataFieldId':_0xe89d5a['dataFieldId'],'tableFieldId':_0xe89d5a[_0x2658b6(0x13f)](),'displayName':_0xe89d5a[_0x2658b6(0xa9)]()});});const _0x24eb56=[];if(_0x1e4fe8[_0x288641(0x31c)](_0x38bc74['PivotTableFiledAreaEnum'][_0x288641(0x9a)],_0x2bf91d=>{const _0x54beea=_0x288641;_0x24eb56[_0x54beea(0xb7)]({'dataFieldId':_0x2bf91d[_0x54beea(0x1d6)],'tableFieldId':_0x2bf91d[_0x54beea(0x13f)](),'displayName':_0x2bf91d[_0x54beea(0xa9)](),'format':_0x2bf91d[_0x54beea(0x2e4)](),'subTotalType':_0x2bf91d[_0x54beea(0x323)]()});}),_0x24eb56[_0x288641(0x13c)]>0x1){const _0x1a231f=_0x1e4fe8[_0x288641(0x271)]();(_0x1e4fe8[_0x288641(0x157)]()?_0x16096c:_0x4e07ea)[_0x288641(0x22d)](_0x1a231f,0x0,{'dataFieldId':'','tableFieldId':_0x288641(0x128),'displayName':_0x288641(0x1f7)});}const _0x3e8292=[];_0x1e4fe8[_0x288641(0x31c)](_0x38bc74[_0x288641(0x1fa)][_0x288641(0x2a8)],_0x565d75=>{const _0x297896=_0x288641;_0x3e8292[_0x297896(0xb7)]({'dataFieldId':_0x565d75[_0x297896(0x1d6)],'tableFieldId':_0x565d75[_0x297896(0x13f)](),'displayName':_0x565d75[_0x297896(0xa9)]()});});const _0x51cbe7=_0x55b663['sourceRangeInfo'];return{'sourceList':_0x15446b,'sourceRange':_0x51cbe7,'rowFields':_0x4e07ea,'columnFields':_0x16096c,'valueFields':_0x24eb56,'filterFields':_0x3e8292,'positionInfo':_0x55b663['targetCellInfo']};}function _0x234472(_0xb0f42b,_0x486a7c,_0xf70751='',_0x3e0555={}){const _0x2dacdc=_0x566c44,_0x39cc39=_0xb0f42b[_0x2dacdc(0x9f)](_0x493c7d[_0x2dacdc(0x2e7)]);for(const _0x2e8732 in _0x486a7c)if(Object['prototype']['hasOwnProperty'][_0x2dacdc(0x31d)](_0x486a7c,_0x2e8732)){const _0x489719=_0xf70751?_0xf70751+'.'+_0x2e8732:_0x2e8732;typeof _0x486a7c[_0x2e8732]=='object'&&_0x486a7c[_0x2e8732]!==null&&!Array[_0x2dacdc(0x125)](_0x486a7c[_0x2e8732])?_0x234472(_0xb0f42b,_0x486a7c[_0x2e8732],_0x489719,_0x3e0555):_0x3e0555[_0x489719]=_0x39cc39['t'](_0x489719);}return _0x3e0555;}const _0x259848=_0x5530fd=>{const _0x21b157=_0x566c44;if(!_0x5530fd)return[];const {rowRanges:_0x2e2ddd,colRanges:_0x68a4b6,cornerRanges:_0x48ab51,dataRanges:_0x101de4,pageRanges:_0x122de2}=_0x5530fd,_0xd7b998=[..._0x68a4b6,..._0x2e2ddd,..._0x101de4,..._0x48ab51][_0x21b157(0xc7)](_0x26effb=>_0x26effb[_0x21b157(0x1cf)]>=0x0&&_0x26effb['startColumn']>=0x0&&_0x26effb[_0x21b157(0x1b5)]>=0x0&&_0x26effb['endColumn']>=0x0);let _0x3da1d0=Number[_0x21b157(0xe4)],_0x2f368b=Number[_0x21b157(0x21f)],_0x26e8e1=Number[_0x21b157(0xe4)],_0x4b2943=Number['MIN_SAFE_INTEGER'];for(let _0x500242=0x0;_0x500242<_0xd7b998[_0x21b157(0x13c)];_0x500242++)_0x3da1d0=Math[_0x21b157(0x365)](_0x3da1d0,_0xd7b998[_0x500242][_0x21b157(0x1cf)]),_0x2f368b=Math[_0x21b157(0x10f)](_0x2f368b,_0xd7b998[_0x500242][_0x21b157(0x1b5)]),_0x26e8e1=Math[_0x21b157(0x365)](_0x26e8e1,_0xd7b998[_0x500242][_0x21b157(0x175)]),_0x4b2943=Math[_0x21b157(0x10f)](_0x4b2943,_0xd7b998[_0x500242][_0x21b157(0x354)]);return[..._0x122de2,{'startRow':_0x3da1d0,'endRow':_0x2f368b,'startColumn':_0x26e8e1,'endColumn':_0x4b2943}];};function _0x57d6e4(_0x3da301,_0x493a89){const _0x4b0b9d=_0x566c44,_0x5d3615=_0x493a89['params'][_0x4b0b9d(0x384)],{pivotTableId:_0x4a1417,unitId:_0x4ba74c,subUnitId:_0x7d8eef}=_0x493a89;if(!_0x5d3615)return;const _0x46d889=_0x3da301[_0x4b0b9d(0x9f)](_0x190415['SheetsPivotDataSourceModel']),_0x39fe88=_0x46d889[_0x4b0b9d(0x2db)](_0x4a1417),_0x22cc8b=_0x46d889['getPivotTableConfig'](_0x4ba74c,_0x7d8eef,_0x4a1417);if(!_0x39fe88||!_0x22cc8b)return;const _0x12e3c1=_0x39fe88[_0x4b0b9d(0x29c)](_0x5d3615[_0x4b0b9d(0x88)]);if(!(_0x12e3c1!=null&&_0x12e3c1[_0x4b0b9d(0x13c)]))return;const _0x310fee=_0x22cc8b[_0x4b0b9d(0x12a)],{unitId:_0x46f8d8,subUnitId:_0x560ecd,range:_0x17aceb}=_0x310fee;let _0x3ac790=0x0;const _0x1e8145=_0x39fe88[_0x4b0b9d(0x144)][_0x4b0b9d(0x90)]()[_0x4b0b9d(0xd7)]((_0x1f6b22,_0xbf609b)=>{const _0x332352=_0x4b0b9d;var _0xda42e2;const _0x818349=(_0xda42e2=_0x39fe88[_0x332352(0x187)](_0xbf609b))==null?void 0x0:_0xda42e2['getformat']();return _0x818349&&(_0x1f6b22[String(_0x3ac790)]=_0x818349),_0x3ac790++,_0x1f6b22;},{});return{'indexes':_0x12e3c1,'range':_0x17aceb,'sourceUnitId':_0x46f8d8,'sourceSubUnitId':_0x560ecd,'formatMap':_0x1e8145};}function _0x2cafe8(_0x2f36e0,_0x3751c8){const _0xf1b9ac=_0x566c44;if(!_0x2f36e0||!_0x3751c8)return!0x0;const _0x3ce17e=_0x17beef[_0xf1b9ac(0xac)](_0x496737,_0x42c4cd),_0xcb52da=new Function('return\x20'+_0x3ce17e)()(_0x2f36e0,_0x3751c8)['message'],_0x425970=_0x17beef[_0xf1b9ac(0x24f)](_0xcb52da,'sf',_0x5a60dc);return!((_0xcb52da==null?void 0x0:_0xcb52da['rt'])===_0x17beef['ReleaseType']['NO_COMMERCIAL']&&!_0x425970);}function _0x5bc9e8(_0x4f0bd2,_0x931d92,_0x529828){const _0x1d70f4=_0x566c44,_0x3acf9c={'count':_0x4f0bd2,'timeValid':!0x1};if(!_0x931d92||!_0x529828)return _0x3acf9c;const _0x436e13=_0x17beef[_0x1d70f4(0xac)](_0x496737,_0x42c4cd),_0x29ff7f=new Function('return\x20'+_0x436e13)()(_0x931d92,_0x529828);if(_0x29ff7f!=null&&_0x29ff7f[_0x1d70f4(0x299)]){const _0xfc676=_0x29ff7f[_0x1d70f4(0x84)],_0x4ce8c4=_0x17beef[_0x1d70f4(0x24f)](_0xfc676,'sf',_0x5a60dc);return{'count':_0x17beef[_0x1d70f4(0xe3)](_0xfc676,_0x4ce8c4,_0x1d70f4(0x2d0),_0x4f0bd2,_0x4f0bd2,0x0),'timeValid':_0x4ce8c4};}return _0x3acf9c;}function _0x4ccb9d(_0x36494c,_0x17e011,_0x4da070,_0x45d8a7){const _0x337799=_0x566c44,_0xbf0b8b={'subUnitId':_0x4da070,'unitId':_0x17e011,'cellValue':_0x188291[_0x337799(0x1d7)](_0x45d8a7)},_0x181b97=_0x188291['SetRangeValuesUndoMutationFactory'](_0x36494c,_0xbf0b8b);let _0x3db6de=!0x1;return new _0x493c7d[(_0x337799(0x335))](_0x181b97[_0x337799(0x207)])[_0x337799(0x1e3)]((_0x49202d,_0x5b3135,_0x1317dd)=>{const _0x118a41=_0x337799;if(!_0x3db6de&&_0x1317dd&&(_0x1317dd[_0x118a41(0x20d)]||_0x1317dd['f']||_0x1317dd['p']||_0x1317dd['s']||_0x1317dd['si']||_0x1317dd['t']||_0x1317dd['v']))return _0x3db6de=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x188291['SetRangeValuesMutation']['id'],'params':_0x181b97},'setRangeValueRedoMutation':{'id':_0x188291[_0x337799(0x2ca)]['id'],'params':_0xbf0b8b},'shouldClear':_0x3db6de};}function _0x3c809f(_0x2553a3){const {row:_0x5b8eb2,col:_0x4737ac}=_0x2553a3,_0x5c19a6={'startRow':_0x5b8eb2,'endRow':_0x5b8eb2,'startColumn':_0x4737ac,'endColumn':_0x4737ac},_0x3e1cef={'startRow':_0x5b8eb2+0x2,'endRow':_0x5b8eb2+0xe,'startColumn':_0x4737ac,'endColumn':_0x4737ac+0x6};return[_0x5c19a6,_0x3e1cef];}function _0x52de28(_0x5d2037,_0xa3c2c8,_0x498c3e){const _0x124fec=_0x566c44,{cornerView:_0x446129,rowView:_0x47adec,colView:_0x3a6f08,pageView:_0x16f02b}=_0x5d2037,{row:_0x3ec339,col:_0x4aeae5}=_0xa3c2c8;if(_0x498c3e)return{'rowCount':_0x1319b1+_0x3ec339,'colCount':_0x3db25f+_0x4aeae5};const _0x4ab523=_0x16f02b[_0x124fec(0x247)]>-0x1?_0x16f02b[_0x124fec(0x247)]+0x1:0x0,_0x3b3846=_0x16f02b[_0x124fec(0xaa)]>-0x1?_0x16f02b[_0x124fec(0xaa)]:0x0,_0x1b774d=_0x3ec339+_0x4ab523+(_0x4ab523?0x1:0x0)+_0x446129[_0x124fec(0x2ac)]+_0x47adec[_0x124fec(0x2ac)],_0x3ab837=_0x4aeae5+_0x3b3846,_0x39ce9f=_0x4aeae5+_0x446129[_0x124fec(0x238)]+_0x3a6f08['colCount'],_0x9c0ef1=Math[_0x124fec(0x10f)](_0x3ab837,_0x39ce9f);return{'rowCount':_0x1b774d,'colCount':_0x9c0ef1};}function _0x14be64(_0x4fea2f,_0x196fb2,_0x13ebba,_0x1e5886){const _0x2991db=_0x566c44,{row:_0x520e74,col:_0x53c968,unitId:_0x380274,subUnitId:_0xecb549}=_0x13ebba,_0x428b23=_0x52de28(_0x196fb2,{'row':_0x520e74,'col':_0x53c968},_0x1e5886),_0x1a1590=_0x4fea2f['get'](_0x493c7d[_0x2991db(0x356)]),_0x2429b0=_0x188291[_0x2991db(0x10e)](_0x1a1590,{'unitId':_0x380274,'subUnitId':_0xecb549}),_0x262ee7=[],_0x5514b3=[];if(!_0x2429b0)return{'undos':_0x5514b3,'redos':_0x262ee7};const {worksheet:_0x213107}=_0x2429b0,_0x4ac793=_0x213107[_0x2991db(0x121)](),_0x4f844e=_0x213107[_0x2991db(0x139)]();return _0x4ac793<_0x428b23[_0x2991db(0x2ac)]&&(_0x262ee7['push']({'id':_0x188291['InsertRowMutation']['id'],'params':{'unitId':_0x380274,'subUnitId':_0xecb549,'range':{'startRow':_0x4ac793,'endRow':_0x428b23['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x4f844e-0x1}}}),_0x5514b3[_0x2991db(0xb7)]({'id':_0x188291['RemoveRowMutation']['id'],'params':{'unitId':_0x380274,'subUnitId':_0xecb549,'range':{'startRow':_0x4ac793,'endRow':_0x428b23[_0x2991db(0x2ac)]-0x1,'startColumn':0x0,'endColumn':_0x4f844e-0x1}}})),_0x4f844e<_0x428b23[_0x2991db(0x238)]&&(_0x262ee7['push']({'id':_0x188291['InsertColMutation']['id'],'params':{'unitId':_0x380274,'subUnitId':_0xecb549,'range':{'startRow':0x0,'endRow':_0x4ac793-0x1,'startColumn':_0x4f844e,'endColumn':_0x428b23[_0x2991db(0x238)]-0x1}}}),_0x5514b3['push']({'id':_0x188291[_0x2991db(0x39e)]['id'],'params':{'unitId':_0x380274,'subUnitId':_0xecb549,'range':{'startRow':0x0,'endRow':_0x4ac793-0x1,'startColumn':_0x4f844e,'endColumn':_0x428b23[_0x2991db(0x238)]-0x1}}})),{'undos':_0x5514b3,'redos':_0x262ee7};}function _0x156353(_0x5e312c){const _0x3ca5af=_0x566c44;let _0x2c7eaa=0x0;for(let _0x469aed=0x0;_0x469aed<_0x5e312c['length'];_0x469aed++){const _0x76cdc6=_0x5e312c[_0x3ca5af(0x1e9)](_0x469aed);_0x76cdc6>=0x4e00&&_0x76cdc6<=0x9fff||_0x76cdc6>=0x3000&&_0x76cdc6<=0x303f||_0x76cdc6>=0xff00&&_0x76cdc6<=0xffef?_0x2c7eaa+=0x2:_0x2c7eaa+=0x1;}return _0x2c7eaa;}function _0x280cb4(_0x35fb26,_0x50d349,_0x285b3f,_0x400f9b){const _0x17f642=_0x566c44;var _0x3082d8,_0x3fd9ef,_0x2bb83c,_0x31a09d;const {rowCount:_0x1e73b2,colCount:_0x1ef6cc,headerMap:_0x48bf25}=_0x35fb26,_0x59cf2c=0x64,_0x574a92=Math['min'](_0x1e73b2,_0x59cf2c),_0x2b4b0c=Math[_0x17f642(0x365)](_0x1ef6cc,_0x59cf2c);let _0x28efcf='',_0x4f0d10=0x0;for(let _0x44b3c0=0x0;_0x44b3c0<_0x574a92;_0x44b3c0++)for(let _0x331453=0x0;_0x331453<_0x2b4b0c;_0x331453++){const _0x5a3b5e={...(_0x3fd9ef=(_0x3082d8=_0x35fb26[_0x17f642(0x25b)])==null?void 0x0:_0x3082d8[_0x44b3c0])==null?void 0x0:_0x3fd9ef[_0x331453]},_0x46d962=(_0x2bb83c=_0x48bf25[_0x44b3c0])==null?void 0x0:_0x2bb83c[_0x17f642(0x170)],_0x566312=_0x400f9b[_0x46d962];let _0x57732c=_0x35fb26[_0x17f642(0x276)](_0x44b3c0,_0x331453);if(_0x5a3b5e){const _0x158489=_0x285b3f?_0x331453===0x0&&((_0x31a09d=_0x35fb26['getHeaderMapItem'](_0x331453+0x1))==null?void 0x0:_0x31a09d[_0x17f642(0xfe)]):!0x1;_0x57732c=_0x18b92d(_0x5a3b5e,_0x158489,_0x566312,_0x50d349);}if(_0x57732c!==void 0x0){const _0x32149b=_0x156353(String(_0x57732c));_0x4f0d10<_0x32149b&&(_0x28efcf=String(_0x57732c),_0x4f0d10=_0x32149b);}}return _0x28efcf;}function _0x2eca5f(_0x13bfdc){const _0x547f2b=_0x566c44,{rowCount:_0x365200,colCount:_0x734f2}=_0x13bfdc;let _0x33acce='',_0x5c5392=0x0;for(let _0x35b0c5=_0x365200-0x1;_0x35b0c5>0x0&&_0x35b0c5>_0x365200-0x3;_0x35b0c5--)for(let _0x51dd2e=0x0;_0x51dd2e<_0x734f2;_0x51dd2e++){const _0x2c7591=_0x13bfdc[_0x547f2b(0x276)](_0x35b0c5,_0x51dd2e);if(_0x2c7591!==void 0x0){const _0x4fcf67=String(_0x2c7591)['length'];_0x5c5392<_0x4fcf67&&(_0x33acce=String(_0x2c7591),_0x5c5392=_0x4fcf67);}}return _0x33acce;}function _0x38eca3(_0x25b355){const _0x27b4c4=_0x566c44,{rowCount:_0x33335b,colCount:_0x17e7dd}=_0x25b355;let _0x1ac1ed='',_0x5161ac=0x0;for(let _0x45841f=0x0;_0x45841f<_0x33335b;_0x45841f++)for(let _0x3b5b79=0x0;_0x3b5b79<_0x17e7dd;_0x3b5b79++){const _0x3f0257=_0x25b355[_0x27b4c4(0x276)](_0x45841f,_0x3b5b79);if(_0x3f0257!==void 0x0){const _0x5464ae=String(_0x3f0257)[_0x27b4c4(0x13c)];_0x5161ac<_0x5464ae&&(_0x1ac1ed=String(_0x3f0257),_0x5161ac=_0x5464ae);}}return _0x1ac1ed;}function _0x1c4de1(_0x6c3ee1,_0x23f133){const _0x12c0d2=_0x566c44,{rowFields:_0x2f25a6,columnFields:_0x32f4db,valueFields:_0xbaebf3,filterFields:_0x1ef222,dimension:_0x20ffe1,measure:_0x17d918}=_0x23f133;for(const _0x190ca1 of _0x2f25a6){const _0x44c1a4=_0x20ffe1[_0x190ca1];_0x44c1a4&&_0x6c3ee1[_0x12c0d2(0x187)](_0x44c1a4['dataFieldId'])&&(_0x6c3ee1['addFieldWithSourceId'](_0x44c1a4[_0x12c0d2(0x1d6)],_0x38bc74[_0x12c0d2(0x1fa)]['Row'],void 0x0,_0x190ca1),_0x44c1a4[_0x12c0d2(0xfb)]&&_0x6c3ee1[_0x12c0d2(0x25a)](_0x44c1a4['id'],_0x44c1a4[_0x12c0d2(0xfb)]),_0x44c1a4[_0x12c0d2(0x32e)]&&_0x6c3ee1['setSortInfo'](_0x44c1a4['id'],_0x44c1a4[_0x12c0d2(0x32e)]),_0x44c1a4[_0x12c0d2(0x202)]&&_0x6c3ee1['setLabelFilterInfo'](_0x44c1a4['id'],_0x44c1a4[_0x12c0d2(0x202)]));}for(const _0x239410 of _0x32f4db){const _0x485fcd=_0x20ffe1[_0x239410];_0x485fcd&&_0x6c3ee1[_0x12c0d2(0x187)](_0x485fcd[_0x12c0d2(0x1d6)])&&(_0x6c3ee1[_0x12c0d2(0xad)](_0x485fcd[_0x12c0d2(0x1d6)],_0x38bc74[_0x12c0d2(0x1fa)][_0x12c0d2(0x38f)],void 0x0,_0x239410),_0x485fcd['sortInfo']&&_0x6c3ee1[_0x12c0d2(0x1f6)](_0x485fcd['id'],_0x485fcd[_0x12c0d2(0x32e)]),_0x485fcd[_0x12c0d2(0x202)]&&_0x6c3ee1[_0x12c0d2(0x124)](_0x485fcd['id'],_0x485fcd[_0x12c0d2(0x202)]),_0x485fcd[_0x12c0d2(0xfb)]&&_0x6c3ee1[_0x12c0d2(0x25a)](_0x485fcd['id'],_0x485fcd[_0x12c0d2(0xfb)]));}for(const _0x529e3a of _0x1ef222){const _0x2835f4=_0x20ffe1[_0x529e3a];_0x2835f4&&_0x6c3ee1[_0x12c0d2(0x187)](_0x2835f4[_0x12c0d2(0x1d6)])&&(_0x6c3ee1[_0x12c0d2(0xad)](_0x2835f4['dataFieldId'],_0x38bc74[_0x12c0d2(0x1fa)][_0x12c0d2(0x2a8)],void 0x0,_0x529e3a),_0x2835f4[_0x12c0d2(0x32e)]&&_0x6c3ee1[_0x12c0d2(0x1f6)](_0x2835f4['id'],_0x2835f4[_0x12c0d2(0x32e)]),_0x2835f4[_0x12c0d2(0x202)]&&_0x6c3ee1[_0x12c0d2(0x124)](_0x2835f4['id'],_0x2835f4[_0x12c0d2(0x202)]),_0x2835f4['displayName']&&_0x6c3ee1[_0x12c0d2(0x25a)](_0x2835f4['id'],_0x2835f4[_0x12c0d2(0xfb)]));}for(const _0x41edd6 of _0xbaebf3){const _0x17e615=_0x17d918[_0x41edd6];_0x17e615&&_0x6c3ee1['getDataFieldByDataFieldId'](_0x17e615[_0x12c0d2(0x1d6)])&&(_0x6c3ee1[_0x12c0d2(0xad)](_0x17e615[_0x12c0d2(0x1d6)],_0x38bc74[_0x12c0d2(0x1fa)][_0x12c0d2(0x9a)],void 0x0,_0x41edd6),_0x17e615[_0x12c0d2(0x14a)]!==void 0x0&&_0x6c3ee1[_0x12c0d2(0x313)](_0x41edd6,_0x17e615['subtotal']),_0x17e615[_0x12c0d2(0x355)]&&_0x6c3ee1['setFieldFormat'](_0x41edd6,_0x17e615['format']),_0x17e615['displayName']&&_0x6c3ee1[_0x12c0d2(0x25a)](_0x17e615['id'],_0x17e615[_0x12c0d2(0xfb)]));}const _0x6df94d=_0x23f133[_0x12c0d2(0x281)];for(const {fieldId:_0x50562b,filterInfo:_0x54011c}of _0x6df94d)_0x6c3ee1[_0x12c0d2(0x379)](_0x50562b,_0x54011c);}function _0x150d80(_0x2a91ab,_0x42d4d3){const _0x556016=_0x566c44,_0x47cc8a=[];_0x42d4d3===_0x38bc74['PivotTableFiledAreaEnum']['Row']&&_0x2a91ab[_0x556016(0x31c)](_0x38bc74['PivotTableFiledAreaEnum']['Row'],_0xba5459=>{const _0x5e51ef=_0x556016;_0x47cc8a[_0x5e51ef(0xb7)](_0xba5459['getId']());}),_0x42d4d3===_0x38bc74[_0x556016(0x1fa)]['Column']&&_0x2a91ab[_0x556016(0x31c)](_0x38bc74['PivotTableFiledAreaEnum'][_0x556016(0x38f)],_0x4147c9=>{const _0x495fb8=_0x556016;_0x47cc8a[_0x495fb8(0xb7)](_0x4147c9[_0x495fb8(0x13f)]());}),_0x42d4d3===_0x38bc74[_0x556016(0x1fa)][_0x556016(0x2a8)]&&_0x2a91ab[_0x556016(0x31c)](_0x38bc74[_0x556016(0x1fa)][_0x556016(0x2a8)],_0x540519=>{const _0x426c9f=_0x556016;_0x47cc8a[_0x426c9f(0xb7)](_0x540519[_0x426c9f(0x13f)]());}),_0x42d4d3===_0x38bc74[_0x556016(0x1fa)][_0x556016(0x9a)]&&_0x2a91ab[_0x556016(0x31c)](_0x38bc74[_0x556016(0x1fa)][_0x556016(0x9a)],_0x5ebe04=>{const _0x6a75f1=_0x556016;_0x47cc8a[_0x6a75f1(0xb7)](_0x5ebe04['getId']());}),_0x42d4d3===void 0x0&&_0x2a91ab[_0x556016(0x1ba)](_0x1c8b61=>{const _0x959753=_0x556016;_0x47cc8a[_0x959753(0xb7)](_0x1c8b61[_0x959753(0x13f)]());});const _0x9c5150=_0x47cc8a[_0x556016(0x13c)];for(let _0x2d9867=_0x9c5150-0x1;_0x2d9867>=0x0;_0x2d9867--)_0x2a91ab[_0x556016(0x15b)](_0x47cc8a[_0x2d9867]);const _0x31bb47=_0x2a91ab[_0x556016(0x26f)]();for(const _0x254c39 in _0x31bb47)_0x2a91ab['removeValueFilterInfo'](_0x254c39);}function _0x71e23f(_0xf0ae29,_0x5043aa){const _0x3f9dc4=_0x566c44,_0x3ef079=new Date(_0x38bc74[_0x3f9dc4(0x96)](_0x5043aa)),_0x47fea6=new Date(_0x38bc74['excelDateToUnixMilliseconds'](_0xf0ae29)),_0x505bcb=_0x3ef079[_0x3f9dc4(0x122)](),_0x58b13f=_0x47fea6[_0x3f9dc4(0x122)](),_0x1b48ae=_0x3ef079[_0x3f9dc4(0x2b8)](),_0x108ea7=_0x47fea6[_0x3f9dc4(0x2b8)](),_0x55ee6c=_0x3ef079[_0x3f9dc4(0x111)](),_0x33f548=_0x47fea6[_0x3f9dc4(0x111)](),_0x413f49=_0x505bcb===_0x58b13f,_0x3231f5=_0x413f49&&_0x1b48ae===_0x108ea7;return _0x413f49&&_0x3231f5&&!(_0x3231f5&&_0x55ee6c===_0x33f548)?_0x38bc74[_0x3f9dc4(0xe2)][_0x3f9dc4(0x154)]:_0x413f49&&!_0x3231f5?_0x38bc74[_0x3f9dc4(0xe2)][_0x3f9dc4(0x289)]:_0x38bc74['PivotDateGroupFieldDateTypeEnum'][_0x3f9dc4(0x2d6)];}function _0x2775d3(_0x2bf23a,_0x2ac1bb){const _0x4a3e2b=_0x566c44,_0x3fd364=_0x2bf23a[_0x4a3e2b(0x9f)](_0x190415[_0x4a3e2b(0x324)])[_0x4a3e2b(0x269)]();let _0x48c1ab='';switch(_0x2ac1bb){case _0x38bc74[_0x4a3e2b(0xe2)][_0x4a3e2b(0x154)]:_0x48c1ab=_0x3fd364[_0x4a3e2b(0x27f)];break;case _0x38bc74[_0x4a3e2b(0xe2)][_0x4a3e2b(0x289)]:_0x48c1ab=_0x3fd364[_0x4a3e2b(0x2ee)];break;case _0x38bc74['PivotDateGroupFieldDateTypeEnum']['Year']:_0x48c1ab=_0x3fd364[_0x4a3e2b(0xe6)];break;case _0x38bc74[_0x4a3e2b(0xe2)][_0x4a3e2b(0x83)]:_0x48c1ab=_0x3fd364[_0x4a3e2b(0x12f)];break;case _0x38bc74[_0x4a3e2b(0xe2)]['Quarter']:_0x48c1ab=_0x3fd364[_0x4a3e2b(0x35e)];break;case _0x38bc74[_0x4a3e2b(0xe2)][_0x4a3e2b(0x307)]:_0x48c1ab=_0x3fd364['sheets-pivot.dateGroup.date'];break;case _0x38bc74['PivotDateGroupFieldDateTypeEnum']['HourMinute']:_0x48c1ab=_0x3fd364[_0x4a3e2b(0x263)];break;case _0x38bc74['PivotDateGroupFieldDateTypeEnum'][_0x4a3e2b(0x2f6)]:_0x48c1ab=_0x3fd364[_0x4a3e2b(0x20f)];break;case _0x38bc74[_0x4a3e2b(0xe2)]['Minute']:_0x48c1ab=_0x3fd364[_0x4a3e2b(0x2b6)];break;case _0x38bc74['PivotDateGroupFieldDateTypeEnum'][_0x4a3e2b(0x98)]:_0x48c1ab=_0x3fd364[_0x4a3e2b(0x295)];break;case _0x38bc74[_0x4a3e2b(0xe2)][_0x4a3e2b(0xa0)]:_0x48c1ab=_0x3fd364['sheets-pivot.dateGroup.yearQuarter'];break;default:_0x48c1ab='';break;}return _0x48c1ab;}const _0xcf4f55=_0x566c44(0xde),_0x480f04={};var _0x38dde0=Object[_0x566c44(0x183)],_0x22cc4a=(_0x5ac642,_0x2eac59,_0x555c3f,_0x2393cf)=>{for(var _0x3f83b1=_0x2393cf>0x1?void 0x0:_0x2393cf?_0x38dde0(_0x2eac59,_0x555c3f):_0x2eac59,_0x2246f9=_0x5ac642['length']-0x1,_0x56b2c8;_0x2246f9>=0x0;_0x2246f9--)(_0x56b2c8=_0x5ac642[_0x2246f9])&&(_0x3f83b1=_0x56b2c8(_0x3f83b1)||_0x3f83b1);return _0x3f83b1;},_0x17c0d4=(_0x194b67,_0x45b08a)=>(_0x45e663,_0xe442ac)=>_0x45b08a(_0x45e663,_0xe442ac,_0x194b67);_0x190415[_0x566c44(0x142)]=class extends _0x493c7d[_0x566c44(0x1ef)]{constructor(_0x20ef10,_0x4ccaff,_0x658890,_0x2d6f64,_0x19e30e){const _0x4b45a4=_0x566c44;super(),_0x3a454e(this,_0x4b45a4(0x218),new Map()),_0x3a454e(this,'_collectionConfigModel',new Map()),_0x3a454e(this,_0x4b45a4(0xbe),new Map()),_0x3a454e(this,_0x4b45a4(0x230),new Map()),_0x3a454e(this,_0x4b45a4(0x1bc),new _0x22c0d0['Subject']()),_0x3a454e(this,_0x4b45a4(0x16e),new _0x22c0d0[(_0x4b45a4(0x333))]()),_0x3a454e(this,_0x4b45a4(0x11a),this[_0x4b45a4(0x16e)][_0x4b45a4(0x103)]()),_0x3a454e(this,_0x4b45a4(0xb1),new _0x22c0d0['Subject']()),_0x3a454e(this,_0x4b45a4(0xfd),this[_0x4b45a4(0xb1)][_0x4b45a4(0x103)]()),_0x3a454e(this,_0x4b45a4(0xc1),{}),_0x3a454e(this,_0x4b45a4(0x203),this[_0x4b45a4(0x1bc)][_0x4b45a4(0x103)]()),(this[_0x4b45a4(0x93)]=_0x20ef10,this[_0x4b45a4(0x30a)]=_0x4ccaff,this['_univerInstanceService']=_0x658890,this[_0x4b45a4(0x22a)]=_0x2d6f64,this[_0x4b45a4(0x31e)]=_0x19e30e,this[_0x4b45a4(0x1b9)](),this[_0x4b45a4(0x2e2)]());const _0x84f9e4=this[_0x4b45a4(0x31e)][_0x4b45a4(0x290)](_0xcf4f55);(_0x84f9e4==null?void 0x0:_0x84f9e4[_0x4b45a4(0x17f)])===!0x0&&this['_initSnapshot']();}['_initUnitDisposed'](){const _0xc97297=_0x566c44;this[_0xc97297(0x18a)](this[_0xc97297(0x394)]['getTypeOfUnitDisposed$'](_0x493c7d[_0xc97297(0x33a)][_0xc97297(0x2ae)])['subscribe'](_0x52ff09=>{const _0x18ad2f=_0xc97297;this['deleteUnitId'](_0x52ff09[_0x18ad2f(0x2a9)]());}));}[_0x566c44(0x141)](){const _0x17599d=_0x566c44;this[_0x17599d(0x16e)]['next'](!0x0);}[_0x566c44(0x1b9)](){const _0xf18d4b=_0x566c44,_0x53da52=_0x234472(this[_0xf18d4b(0x93)],_0x2322db,'',{});this[_0xf18d4b(0xc1)]=_0x53da52,this[_0xf18d4b(0x30a)][_0xf18d4b(0xff)](_0x2373dc['id'],{'textInfo':_0x53da52},{'onlyLocal':!0x0});}['getTextInfo'](){return this['_textInfo'];}[_0x566c44(0x2c2)](_0x2f89cb,_0x53002f,_0x2f6dfb,_0x1810a1,_0x541b2c){const _0x590f79=_0x566c44;this[_0x590f79(0x23f)](_0x2f89cb,_0x53002f,_0x2f6dfb,_0x1810a1),this[_0x590f79(0xcb)](_0x2f89cb,_0x53002f,_0x2f6dfb,_0x541b2c);}[_0x566c44(0x132)](_0xe96c21,_0x367976,_0x52ba3b){const _0x3b789c=_0x566c44;var _0x4be9d0;const _0x3ed371=(_0x4be9d0=this[_0x3b789c(0x218)][_0x3b789c(0x9f)](_0xe96c21))==null?void 0x0:_0x4be9d0['get'](_0x367976);if(_0x3ed371)return _0x3ed371[_0x3b789c(0x9f)](_0x52ba3b);}[_0x566c44(0x14d)](_0x48931b,_0x18c841){const _0x151f9c=_0x566c44,_0x20ea25=this[_0x151f9c(0x218)][_0x151f9c(0x9f)](_0x48931b);if(_0x20ea25){for(const [_0x97ec43,_0x4d56c6]of _0x20ea25[_0x151f9c(0x206)]())for(const [_0x539a39,_0x1e063e]of _0x4d56c6[_0x151f9c(0x206)]())if(_0x539a39===_0x18c841)return _0x1e063e[_0x151f9c(0x12d)];}}['getTargetByPivotId'](_0x46efd6,_0x2a50bf,_0x163518){const _0x15814f=_0x566c44,_0x4899ee=this[_0x15814f(0x132)](_0x46efd6,_0x2a50bf,_0x163518);return _0x4899ee==null?void 0x0:_0x4899ee[_0x15814f(0x12d)];}['getSubUnitPivotConfigs'](_0x4372a1,_0x3c96ed){const _0x3398d9=_0x566c44;var _0xac75c7;return(_0xac75c7=this[_0x3398d9(0x218)][_0x3398d9(0x9f)](_0x4372a1))==null?void 0x0:_0xac75c7[_0x3398d9(0x9f)](_0x3c96ed);}[_0x566c44(0x2df)](_0x21a0e1,_0x9e56d6,_0x7ad946,_0x4a437d){const _0x55d9d1=_0x566c44,_0x2a6ae5=this[_0x55d9d1(0x148)](_0x21a0e1,_0x9e56d6);_0x4a437d?_0x2a6ae5[_0x55d9d1(0xb8)](_0x7ad946,_0x4a437d):_0x2a6ae5[_0x55d9d1(0x15f)](_0x7ad946),this[_0x55d9d1(0xb1)][_0x55d9d1(0x191)]({'unitId':_0x21a0e1,'subUnitId':_0x9e56d6,'pivotTableId':_0x7ad946,'pivotTableConfig':_0x4a437d});}[_0x566c44(0x1e6)](_0x35b196,_0x4f0ec7){const _0x5324e0=_0x566c44;var _0x1cbe7d;return(_0x1cbe7d=this[_0x5324e0(0x381)][_0x5324e0(0x9f)](_0x35b196))==null?void 0x0:_0x1cbe7d[_0x5324e0(0x339)][_0x4f0ec7];}[_0x566c44(0x21c)](_0x34e5a4,_0x525e9e){const _0x950c81=_0x566c44;this[_0x950c81(0x381)][_0x950c81(0xb8)](_0x34e5a4,_0x525e9e),this[_0x950c81(0x1bc)][_0x950c81(0x191)](Math[_0x950c81(0x2fa)]());}[_0x566c44(0x148)](_0x434b58,_0x396323){const _0x2bf691=_0x566c44;let _0x324996=this[_0x2bf691(0x218)][_0x2bf691(0x9f)](_0x434b58);_0x324996||(_0x324996=new Map(),this[_0x2bf691(0x218)][_0x2bf691(0xb8)](_0x434b58,_0x324996));let _0xf53e6e=_0x324996['get'](_0x396323);return _0xf53e6e||(_0xf53e6e=new Map(),_0x324996[_0x2bf691(0xb8)](_0x396323,_0xf53e6e)),_0xf53e6e;}['_ensurePivotTableRangeInfo'](_0x1ab4e5,_0x262b4d){const _0x36a416=_0x566c44;let _0xc51979=this[_0x36a416(0xbe)][_0x36a416(0x9f)](_0x1ab4e5);_0xc51979||(_0xc51979=new Map(),this[_0x36a416(0xbe)][_0x36a416(0xb8)](_0x1ab4e5,_0xc51979));let _0x5f2563=_0xc51979[_0x36a416(0x9f)](_0x262b4d);return _0x5f2563||(_0x5f2563=new Map(),_0xc51979[_0x36a416(0xb8)](_0x262b4d,_0x5f2563)),_0x5f2563;}['_ensurePivotTableMatrixInfo'](_0x54ba6a,_0x4e926a){const _0x339447=_0x566c44;let _0x400a04=this[_0x339447(0x230)][_0x339447(0x9f)](_0x54ba6a);_0x400a04||(_0x400a04=new Map(),this[_0x339447(0x230)][_0x339447(0xb8)](_0x54ba6a,_0x400a04));let _0x47dc3a=_0x400a04[_0x339447(0x9f)](_0x4e926a);return _0x47dc3a||(_0x47dc3a=new Map(),_0x400a04[_0x339447(0xb8)](_0x4e926a,_0x47dc3a)),_0x47dc3a;}[_0x566c44(0xcb)](_0x536bb3,_0x414dba,_0x4b83cf,_0x5f2761){const _0x50bd6b=_0x566c44;var _0x34da2c;const _0xf9c6c6=this[_0x50bd6b(0x1da)](_0x536bb3,_0x414dba),_0x12f4eb=(_0x34da2c=_0xf9c6c6[_0x50bd6b(0x9f)](_0x4b83cf))==null?void 0x0:_0x34da2c['oldRangeInfo'];_0xf9c6c6[_0x50bd6b(0xb8)](_0x4b83cf,{'oldRangeInfo':_0x12f4eb,'rangeInfo':_0x5f2761});}['updatePivotTableMatrixInfo'](_0x11abc0,_0x2ce138,_0x46b5e5,_0x23fb7b){const _0x375897=_0x566c44;var _0x35085b;const _0x2e1815=this[_0x375897(0xf2)](_0x11abc0,_0x2ce138),_0x8bce8=(_0x35085b=_0x2e1815[_0x375897(0x9f)](_0x46b5e5))==null?void 0x0:_0x35085b['oldMatrix'];_0x2e1815[_0x375897(0xb8)](_0x46b5e5,{'oldMatrix':_0x8bce8,'matrix':_0x23fb7b});}[_0x566c44(0xa2)](_0x7159b2,_0x599d49,_0x31b334){const _0x4e9af2=_0x566c44;var _0x225c87,_0x10cf5a;return(_0x10cf5a=(_0x225c87=this[_0x4e9af2(0xbe)][_0x4e9af2(0x9f)](_0x7159b2))==null?void 0x0:_0x225c87[_0x4e9af2(0x9f)](_0x599d49))==null?void 0x0:_0x10cf5a[_0x4e9af2(0x9f)](_0x31b334);}[_0x566c44(0x366)](_0x2e1564,_0x4c77ce,_0x907f43){const _0x41aac3=_0x566c44;var _0x417d0b,_0xee3951;return(_0xee3951=(_0x417d0b=this[_0x41aac3(0x230)][_0x41aac3(0x9f)](_0x2e1564))==null?void 0x0:_0x417d0b[_0x41aac3(0x9f)](_0x4c77ce))==null?void 0x0:_0xee3951['get'](_0x907f43);}[_0x566c44(0x1d0)](_0x3df9db){const _0x9f67cb=_0x566c44;this[_0x9f67cb(0x218)][_0x9f67cb(0x15f)](_0x3df9db),this[_0x9f67cb(0x381)][_0x9f67cb(0x15f)](_0x3df9db);}[_0x566c44(0x1c0)](_0x34a089){const _0x38c734=_0x566c44,_0x113069={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x38c734(0x381)][_0x38c734(0x9f)](_0x34a089)&&(_0x113069[_0x38c734(0x2cc)][_0x34a089]=this[_0x38c734(0x381)][_0x38c734(0x9f)](_0x34a089)),this[_0x38c734(0x218)][_0x38c734(0x9f)](_0x34a089)){_0x113069[_0x38c734(0x262)][_0x34a089]={};const _0x13436b=this[_0x38c734(0x218)][_0x38c734(0x9f)](_0x34a089);_0x13436b!=null&&_0x13436b['size']&&[..._0x13436b[_0x38c734(0x102)]()]['forEach'](_0x120474=>{const _0x50f249=_0x38c734,_0xafabb6=_0x13436b[_0x50f249(0x9f)](_0x120474);_0xafabb6!=null&&_0xafabb6['size']&&(_0x113069[_0x50f249(0x262)][_0x34a089][_0x120474]={},[..._0xafabb6['keys']()][_0x50f249(0xe5)](_0x427df7=>{const _0x221736=_0x50f249,_0x52bd51=_0xafabb6[_0x221736(0x9f)](_0x427df7);_0x52bd51&&(_0x113069[_0x221736(0x262)][_0x34a089][_0x120474][_0x427df7]=_0x52bd51);}));});}return _0x113069;}[_0x566c44(0x264)](){const _0x1dfcc3=_0x566c44;this[_0x1dfcc3(0x18a)](this[_0x1dfcc3(0x22a)][_0x1dfcc3(0x34a)]({'toJson':_0x452ed6=>JSON[_0x1dfcc3(0x21a)](this[_0x1dfcc3(0x1c0)](_0x452ed6)),'parseJson':_0x5798f7=>({}),'businesses':[_0x493c7d['UniverInstanceType']['UNIVER_SHEET']],'pluginName':_0x2600ad,'onLoad':(_0x23160c,_0x523ad2)=>{},'onUnLoad':_0x51a138=>{const _0x243aa6=_0x1dfcc3;this[_0x243aa6(0x1d0)](_0x51a138);}}));}},_0x190415[_0x566c44(0x142)]=_0x22cc4a([_0x17c0d4(0x0,_0x493c7d[_0x566c44(0xc0)](_0x493c7d['Injector'])),_0x17c0d4(0x1,_0x493c7d[_0x566c44(0xc0)](_0x493c7d[_0x566c44(0x1a0)])),_0x17c0d4(0x2,_0x493c7d['Inject'](_0x493c7d[_0x566c44(0x356)])),_0x17c0d4(0x3,_0x493c7d['Inject'](_0x493c7d[_0x566c44(0xc4)])),_0x17c0d4(0x4,_0x493c7d['Inject'](_0x493c7d['IConfigService']))],_0x190415[_0x566c44(0x142)]);var _0x2b8766=Object['getOwnPropertyDescriptor'],_0x24f912=(_0x225e3,_0x14d982,_0x57b712,_0x3421c3)=>{for(var _0x52d6ea=_0x3421c3>0x1?void 0x0:_0x3421c3?_0x2b8766(_0x14d982,_0x57b712):_0x14d982,_0x421653=_0x225e3['length']-0x1,_0x3b9249;_0x421653>=0x0;_0x421653--)(_0x3b9249=_0x225e3[_0x421653])&&(_0x52d6ea=_0x3b9249(_0x52d6ea)||_0x52d6ea);return _0x52d6ea;},_0x296c8f=(_0x418e06,_0x719c86)=>(_0x1ee747,_0x579f40)=>_0x719c86(_0x1ee747,_0x579f40,_0x418e06);_0x190415[_0x566c44(0x2e1)]=class extends _0x493c7d['Disposable']{constructor(_0x45b99f,_0x2779f3,_0x5f35be,_0x1dc82d,_0x95d117){const _0x5a1995=_0x566c44;super(),_0x3a454e(this,_0x5a1995(0x1b6),new Map()),_0x3a454e(this,_0x5a1995(0x330),new Map()),_0x3a454e(this,_0x5a1995(0x1c7),new _0x22c0d0['Subject']()),_0x3a454e(this,_0x5a1995(0x2a0),this[_0x5a1995(0x1c7)][_0x5a1995(0x103)]()),_0x3a454e(this,'_viewUpdate$',new _0x22c0d0[(_0x5a1995(0x333))]()),_0x3a454e(this,'viewUpdate$',this[_0x5a1995(0x21e)]['asObservable']()),_0x3a454e(this,_0x5a1995(0xc1)),(this[_0x5a1995(0x1d2)]=_0x45b99f,this['_injector']=_0x2779f3,this[_0x5a1995(0x87)]=_0x5f35be,this[_0x5a1995(0x394)]=_0x1dc82d,this['_exclusiveRangeService']=_0x95d117,this[_0x5a1995(0x1b9)](),this['_initUnitDisposed']());}[_0x566c44(0x2e2)](){const _0x2881b6=_0x566c44;this['disposeWithMe'](this[_0x2881b6(0x394)][_0x2881b6(0x277)](_0x493c7d[_0x2881b6(0x33a)][_0x2881b6(0x2ae)])[_0x2881b6(0x251)](_0x3afab0=>{const _0x5f0763=_0x2881b6;this[_0x5f0763(0x1d0)](_0x3afab0[_0x5f0763(0x2a9)]());}));}[_0x566c44(0x1b9)](){const _0x430b2f=_0x566c44;this[_0x430b2f(0xc1)]=_0x234472(this['_injector'],_0x2322db,'',{});}[_0x566c44(0xf8)](_0x22ab42){const _0x925701=_0x566c44,{view:_0x19883f,unitId:_0x35b359,subUnitId:_0x1cd3df,pivotTableId:_0x11b980,type:_0x3c7647}=_0x22ab42,_0x342c5e=this[_0x925701(0x87)][_0x925701(0x132)](_0x35b359,_0x1cd3df,_0x11b980);if(!_0x19883f||!_0x342c5e||_0x3c7647===_0x3e1445[_0x925701(0x107)])return;const {pageView:_0x498846,cornerView:_0x131605,rowView:_0x1527b6,colView:_0x25eac6,dataView:_0x263764}=_0x19883f,_0x430d73=_0x342c5e[_0x925701(0x12d)],_0x1bb231=_0x342c5e['isEmpty'],_0x1960c1=this[_0x925701(0x24a)](_0x35b359,_0x1cd3df),_0x1e803c=this[_0x925701(0xdb)](_0x35b359,_0x1cd3df,_0x11b980);if(_0x1bb231)return this[_0x925701(0x1fb)](_0x22ab42,_0x1960c1,_0x430d73,_0x1e803c);{const _0x44ba5f=_0x403407(_0x430d73,_0x498846,!0x0),_0x2604d0=_0x498846[_0x925701(0x247)]>=0x0?_0x498846[_0x925701(0x247)]+0x1:0x0,_0x28e202=_0x131605[_0x925701(0x121)](),_0x34af4f=_0x131605[_0x925701(0x159)](),_0x4c20bc=_0x44ba5f['length']>0x0?_0x2657b5:0x0,_0x174368=_0x403407({'row':_0x430d73[_0x925701(0x232)]+_0x2604d0+_0x4c20bc,'col':_0x430d73[_0x925701(0x212)]},_0x131605,!0x1,!0x1),_0x7ed09f=_0x403407({'row':_0x430d73[_0x925701(0x232)]+_0x2604d0+_0x4c20bc+_0x28e202,'col':_0x430d73[_0x925701(0x212)]},_0x1527b6,!0x1,!0x0),_0x2a1803=_0x403407({'row':_0x430d73[_0x925701(0x232)]+_0x2604d0+_0x4c20bc,'col':_0x430d73['col']+_0x34af4f},_0x25eac6,!0x1,!0x0),_0x2e35d6=_0x403407({'row':_0x430d73[_0x925701(0x232)]+_0x2604d0+_0x4c20bc+_0x28e202,'col':_0x430d73['col']+_0x34af4f},_0x263764,!0x1,!0x1);_0x1e803c[_0x925701(0x162)]={'rowRanges':_0x7ed09f,'colRanges':_0x2a1803,'cornerRanges':_0x174368,'dataRanges':_0x2e35d6,'pageRanges':_0x44ba5f};const _0x1b0788=_0x3ce265(this['_injector'],_0x19883f,_0x342c5e,this['_textInfo']),{valueMatrix:_0x13defc,rowInfo:_0x49e22a,colInfo:_0x4cde53,cornerInfo:_0x587bb0,rowHeaderMap:_0x635ee6,colHeaderMap:_0x27f5eb}=_0x1b0788;return _0x1e803c[_0x925701(0x23a)]={'rowInfo':_0x49e22a,'colInfo':_0x4cde53,'cornerInfo':_0x587bb0},_0x1e803c['headerMap']={'rowHeaderMap':_0x635ee6,'colHeaderMap':_0x27f5eb},_0x13defc[_0x925701(0xe5)]((_0x27a116,_0x303146)=>{const _0xeab6f8=_0x925701;Object[_0xeab6f8(0x102)](_0x303146)[_0xeab6f8(0xe5)](_0x55cbe8=>{const _0x306ff3=_0xeab6f8,_0x30129a=+_0x55cbe8,_0x52e743=_0x13defc[_0x306ff3(0x276)](_0x27a116,_0x30129a);_0x1960c1[_0x306ff3(0x164)](_0x27a116,_0x30129a,_0x52e743);});}),this[_0x925701(0x21e)][_0x925701(0x191)]({'unitId':_0x35b359,'subUnitId':_0x1cd3df,'valueMatrix':_0x1960c1,'rangesCache':_0x1e803c[_0x925701(0x162)],'pivotTableId':_0x11b980,'type':_0x22ab42[_0x925701(0xa4)]}),this[_0x925701(0x87)][_0x925701(0x2c2)](_0x35b359,_0x1cd3df,_0x11b980,_0x1960c1,_0x1e803c[_0x925701(0x162)]),this[_0x925701(0x2b1)][_0x925701(0xca)](_0x35b359,_0x1cd3df,_0x103e53,this[_0x925701(0x119)](_0x1e803c[_0x925701(0x162)],_0x11b980)),{'rangeCache':_0x1e803c[_0x925701(0x162)],'matrix':_0x1960c1};}}['_updateRenderEmptyCache'](_0xa6a9b8,_0x39dd79,_0x5e5118,_0x131b4c){const _0x2255cd=_0x566c44,_0x1e55f9=this[_0x2255cd(0x1d2)]['t'],{unitId:_0x125626,subUnitId:_0x42be42,pivotTableId:_0x4fd5b9}=_0xa6a9b8,_0x1d0bf6={'filter':_0x1e55f9(_0x2255cd(0x16b)),'row':_0x1e55f9(_0x2255cd(0x81)),'column':_0x1e55f9('sheets-pivot.emptyPivot.column'),'values':_0x1e55f9(_0x2255cd(0x15d))},{matrixCache:_0x1b711a,rangesCache:_0x253370}=_0x4265e8(_0x1d0bf6,_0x5e5118);return _0x1b711a[_0x2255cd(0x1e3)]((_0x49e1e9,_0x1a1345,_0x1084f2)=>{const _0x220ef5=_0x2255cd;_0x39dd79[_0x220ef5(0x164)](_0x49e1e9,_0x1a1345,_0x1084f2);}),_0x131b4c[_0x2255cd(0x162)]=_0x253370,this[_0x2255cd(0x21e)]['next']({'unitId':_0x125626,'subUnitId':_0x42be42,'valueMatrix':_0x39dd79,'rangesCache':_0x253370,'pivotTableId':_0x4fd5b9,'type':_0xa6a9b8[_0x2255cd(0xa4)],'isEmpty':!0x0}),this['_sheetsPivotTableConfigModel'][_0x2255cd(0x2c2)](_0x125626,_0x42be42,_0x4fd5b9,_0x39dd79,_0x253370),this['_exclusiveRangeService'][_0x2255cd(0xca)](_0x125626,_0x42be42,_0x103e53,this['_createExclusiveRange'](_0x253370,_0x4fd5b9)),{'rangeCache':_0x131b4c[_0x2255cd(0x162)],'matrix':_0x39dd79};}[_0x566c44(0x119)](_0x4d860c,_0x4852b7){const _0x35429a=_0x566c44,_0x422a4d=[],_0x384ba9=_0x259848(_0x4d860c);for(const _0x26f10f of _0x384ba9)_0x422a4d[_0x35429a(0xb7)]({'groupId':_0x4852b7,'range':_0x26f10f});return _0x422a4d;}['clearRenderCache'](_0x3a2ad9){const _0x37fc3c=_0x566c44;var _0x34c639,_0x217c64,_0xf59d41,_0xfbdd21;const {pivotTableId:_0x5a988c,unitId:_0x1346d5,subUnitId:_0x305a09}=_0x3a2ad9;if(!_0x5a988c||!_0x1346d5||!_0x305a09)return;const _0x77d4e6=this['_ensurePivotItemRenderValueMatrixCache'](_0x1346d5,_0x305a09),_0xed3924=(_0x217c64=(_0x34c639=this[_0x37fc3c(0x1b6)][_0x37fc3c(0x9f)](_0x1346d5))==null?void 0x0:_0x34c639[_0x37fc3c(0x9f)](_0x305a09))==null?void 0x0:_0x217c64[_0x37fc3c(0x9f)](_0x5a988c);if(_0xed3924!=null&&_0xed3924[_0x37fc3c(0x162)]){for(const _0x1c8935 of Object[_0x37fc3c(0x102)](_0xed3924['rangesInfo']))_0xed3924[_0x37fc3c(0x162)][_0x1c8935][_0x37fc3c(0xe5)](_0x1d4254=>{const _0x47b653=_0x37fc3c;for(let _0x411d56=_0x1d4254[_0x47b653(0x1cf)];_0x411d56<=_0x1d4254[_0x47b653(0x1b5)];_0x411d56++)for(let _0x5b0d98=_0x1d4254[_0x47b653(0x175)];_0x5b0d98<=_0x1d4254[_0x47b653(0x354)];_0x5b0d98++)_0x77d4e6['realDeleteValue'](_0x411d56,_0x5b0d98);});}_0xed3924&&((_0xfbdd21=(_0xf59d41=this['_pivotRenderInfoCache'][_0x37fc3c(0x9f)](_0x1346d5))==null?void 0x0:_0xf59d41[_0x37fc3c(0x9f)](_0x305a09))==null||_0xfbdd21[_0x37fc3c(0x15f)](_0x5a988c)),this[_0x37fc3c(0x21e)][_0x37fc3c(0x191)]({'unitId':_0x1346d5,'subUnitId':_0x305a09,'valueMatrix':_0x77d4e6,'pivotTableId':_0x5a988c,'rangesCache':void 0x0,'type':_0x3a2ad9[_0x37fc3c(0xa4)]}),this[_0x37fc3c(0x2b1)]['clearExclusiveRangesByGroupId'](_0x1346d5,_0x305a09,_0x103e53,_0x5a988c);}[_0x566c44(0xdb)](_0x4e283d,_0x2921d1,_0x5429c0){const _0x1ced84=_0x566c44;var _0x26b1ba,_0x465d8f,_0x5e088c,_0x3c6b23,_0x8ce65d,_0x481239;return this['_pivotRenderInfoCache'][_0x1ced84(0x137)](_0x4e283d)||this[_0x1ced84(0x1b6)][_0x1ced84(0xb8)](_0x4e283d,new Map()),(_0x26b1ba=this['_pivotRenderInfoCache'][_0x1ced84(0x9f)](_0x4e283d))!=null&&_0x26b1ba['has'](_0x2921d1)||(_0x465d8f=this[_0x1ced84(0x1b6)]['get'](_0x4e283d))==null||_0x465d8f[_0x1ced84(0xb8)](_0x2921d1,new Map()),(_0x3c6b23=(_0x5e088c=this[_0x1ced84(0x1b6)][_0x1ced84(0x9f)](_0x4e283d))==null?void 0x0:_0x5e088c[_0x1ced84(0x9f)](_0x2921d1))!=null&&_0x3c6b23[_0x1ced84(0x137)](_0x5429c0)||(_0x481239=(_0x8ce65d=this[_0x1ced84(0x1b6)]['get'](_0x4e283d))==null?void 0x0:_0x8ce65d['get'](_0x2921d1))==null||_0x481239[_0x1ced84(0xb8)](_0x5429c0,{}),this[_0x1ced84(0x1b6)][_0x1ced84(0x9f)](_0x4e283d)[_0x1ced84(0x9f)](_0x2921d1)[_0x1ced84(0x9f)](_0x5429c0);}[_0x566c44(0x24a)](_0x3f91ec,_0x129b49){const _0x292ecc=_0x566c44;var _0x5cdbd3,_0x39503e;return this[_0x292ecc(0x330)]['has'](_0x3f91ec)||this[_0x292ecc(0x330)]['set'](_0x3f91ec,new Map()),(_0x5cdbd3=this[_0x292ecc(0x330)][_0x292ecc(0x9f)](_0x3f91ec))!=null&&_0x5cdbd3['has'](_0x129b49)||(_0x39503e=this[_0x292ecc(0x330)][_0x292ecc(0x9f)](_0x3f91ec))==null||_0x39503e['set'](_0x129b49,new _0x493c7d[(_0x292ecc(0x335))]()),this[_0x292ecc(0x330)][_0x292ecc(0x9f)](_0x3f91ec)['get'](_0x129b49);}[_0x566c44(0x22c)](_0x1f7d2b,_0x545463,_0x4150a6,_0x268043){const _0x1c012b=_0x566c44;var _0x1a7355,_0x3d5c2d;const _0x4194c4=(_0x3d5c2d=(_0x1a7355=this[_0x1c012b(0x330)]['get'](_0x1f7d2b))==null?void 0x0:_0x1a7355[_0x1c012b(0x9f)](_0x545463))==null?void 0x0:_0x3d5c2d[_0x1c012b(0x276)](_0x4150a6,_0x268043);if(_0x4194c4!=null)return _0x4194c4;}[_0x566c44(0x364)](_0x3f04b8,_0x3f963b,_0x17fb26,_0x2616ee){const _0x4eb981=_0x566c44;var _0x1803ae;const _0x8b379a=_0x493c7d[_0x4eb981(0x362)](_0x17fb26,_0x2616ee),_0x4adce3=(_0x1803ae=this['_pivotRenderInfoCache'][_0x4eb981(0x9f)](_0x3f04b8))==null?void 0x0:_0x1803ae['get'](_0x3f963b);return _0x4adce3?Array[_0x4eb981(0x19f)](_0x4adce3['keys']())[_0x4eb981(0xb5)](_0xf10910=>{const _0x7cb7c4=_0x4eb981,_0x3f1326=_0x4adce3[_0x7cb7c4(0x9f)](_0xf10910),_0x2a66cd=_0x3f1326==null?void 0x0:_0x3f1326['rangesInfo'];return _0x2a66cd?Object[_0x7cb7c4(0x102)](_0x2a66cd)[_0x7cb7c4(0x38e)](_0x48ca63=>_0x2a66cd[_0x48ca63][_0x7cb7c4(0x38e)](_0x2ddb45=>_0x493c7d[_0x7cb7c4(0x249)]['contains'](_0x2ddb45,_0x8b379a))):!0x1;}):void 0x0;}['getIntersectsPivotTable'](_0x94aa45,_0x32d4de,_0x397265){const _0x4c129d=_0x566c44;var _0x197fe7;const _0x4faa95=(_0x197fe7=this[_0x4c129d(0x1b6)][_0x4c129d(0x9f)](_0x94aa45))==null?void 0x0:_0x197fe7['get'](_0x32d4de),_0x31de70=[];return _0x4faa95&&Array[_0x4c129d(0x19f)](_0x4faa95[_0x4c129d(0x102)]())[_0x4c129d(0xe5)](_0x272321=>{const _0x4d882b=_0x4c129d,_0xfbb2ca=_0x4faa95[_0x4d882b(0x9f)](_0x272321),_0x324d69=_0xfbb2ca==null?void 0x0:_0xfbb2ca[_0x4d882b(0x162)];if(_0x324d69)for(const _0x464c1d of Object['values'](_0x324d69)){let _0x49ddea=!0x1;for(const _0x150217 of _0x464c1d)if(_0x493c7d[_0x4d882b(0x249)][_0x4d882b(0x2ad)](_0x150217,_0x397265)){_0x31de70[_0x4d882b(0xb7)](_0x272321),_0x49ddea=!0x0;break;}if(_0x49ddea)break;}}),_0x31de70;}[_0x566c44(0x288)](_0x50440c,_0x40dd6f){const _0x36e404=_0x566c44;var _0xf20fe1,_0x46c2c6;return(_0x46c2c6=(_0xf20fe1=this['_pivotRenderValueMatrixCache'][_0x36e404(0x9f)](_0x50440c))==null?void 0x0:_0xf20fe1['get'](_0x40dd6f))!=null?_0x46c2c6:new _0x493c7d[(_0x36e404(0x335))]();}[_0x566c44(0x2cf)](_0x31c513,_0x52cd00){const _0x270e3c=_0x566c44;var _0x6bf56a;return(_0x6bf56a=this[_0x270e3c(0x1b6)]['get'](_0x31c513))==null?void 0x0:_0x6bf56a[_0x270e3c(0x9f)](_0x52cd00);}['getPivotItemRenderInfoCache'](_0x22c860,_0x415fdd,_0x5989ee){const _0x37f119=_0x566c44;var _0x1da1fd,_0x187132;return(_0x187132=(_0x1da1fd=this['_pivotRenderInfoCache'][_0x37f119(0x9f)](_0x22c860))==null?void 0x0:_0x1da1fd[_0x37f119(0x9f)](_0x415fdd))==null?void 0x0:_0x187132['get'](_0x5989ee);}[_0x566c44(0x1d0)](_0x1faf24){const _0x947b6=_0x566c44;this[_0x947b6(0x1b6)][_0x947b6(0x15f)](_0x1faf24),this[_0x947b6(0x330)][_0x947b6(0x15f)](_0x1faf24);}[_0x566c44(0x20c)](_0x512f43,_0x1e3228){const _0x579a7b=_0x566c44;this[_0x579a7b(0x1c7)][_0x579a7b(0x191)]({'unitId':_0x512f43,'subUnitId':_0x1e3228});}},_0x190415['SheetsPivotTableAdaptorModel']=_0x24f912([_0x296c8f(0x0,_0x493c7d['Inject'](_0x493c7d[_0x566c44(0x2e7)])),_0x296c8f(0x1,_0x493c7d[_0x566c44(0xc0)](_0x493c7d[_0x566c44(0x1a5)])),_0x296c8f(0x2,_0x493c7d[_0x566c44(0xc0)](_0x190415['SheetsPivotTableConfigModel'])),_0x296c8f(0x3,_0x493c7d['Inject'](_0x493c7d[_0x566c44(0x356)])),_0x296c8f(0x4,_0x493c7d[_0x566c44(0xc0)](_0x188291[_0x566c44(0x359)]))],_0x190415[_0x566c44(0x2e1)]);var _0x36a825=Object[_0x566c44(0x183)],_0x2b29ec=(_0x5b0ef7,_0x254819,_0x332a07,_0x3bc98a)=>{const _0x39e485=_0x566c44;for(var _0x409c26=_0x3bc98a>0x1?void 0x0:_0x3bc98a?_0x36a825(_0x254819,_0x332a07):_0x254819,_0xe1812=_0x5b0ef7[_0x39e485(0x13c)]-0x1,_0x35d3dc;_0xe1812>=0x0;_0xe1812--)(_0x35d3dc=_0x5b0ef7[_0xe1812])&&(_0x409c26=_0x35d3dc(_0x409c26)||_0x409c26);return _0x409c26;},_0x3152fe=(_0x4e0280,_0x2c3d32)=>(_0x11e8ca,_0x3dcf4d)=>_0x2c3d32(_0x11e8ca,_0x3dcf4d,_0x4e0280);_0x190415[_0x566c44(0x10c)]=class extends _0x493c7d[_0x566c44(0x1ef)]{constructor(_0xe1d76a,_0x3fdb80){const _0x449edb=_0x566c44;super(),_0x3a454e(this,_0x449edb(0x2f7),new _0x493c7d[(_0x449edb(0x256))]({'PIVOT_PERFORM_CHECK':_0x29c52c})),_0x3a454e(this,_0x449edb(0x20a),new _0x493c7d[(_0x449edb(0x306))]({'PIVOT_MUTATION_GENERATE':_0x536eb3})),(this[_0x449edb(0x16a)]=_0xe1d76a,this[_0x449edb(0xab)]=_0x3fdb80,this[_0x449edb(0x34f)]());}[_0x566c44(0x34f)](){const _0x27574a=_0x566c44;this[_0x27574a(0x2ba)]();}['getPivotPerformCheck'](_0x11d5ce){const _0x4c9e0f=_0x566c44;return this[_0x4c9e0f(0x2f7)][_0x4c9e0f(0x344)](_0x29c52c)(!0x1,_0x11d5ce);}[_0x566c44(0x2ba)](){const _0xbd82ab=_0x566c44;this['disposeWithMe'](this[_0xbd82ab(0x16a)][_0xbd82ab(0xb6)](_0x188291['INTERCEPTOR_POINT']['CELL_CONTENT'],{'priority':0xc8,'effect':_0x493c7d[_0xbd82ab(0x2a7)]['Value']|_0x493c7d[_0xbd82ab(0x2a7)][_0xbd82ab(0x369)],'handler':(_0x1fc481,_0x142ff1,_0x5cd519)=>{const _0x59bd38=_0xbd82ab,{row:_0x42e3dd,col:_0x2105ac,unitId:_0x225012,subUnitId:_0x205877,workbook:_0x47eb9c}=_0x142ff1,_0xa18005=this[_0x59bd38(0xab)][_0x59bd38(0x22c)](_0x225012,_0x205877,_0x42e3dd,_0x2105ac);if(!_0xa18005)return _0x5cd519(_0x1fc481);const _0x419e91={..._0x1fc481};(_0xa18005['v']||_0xa18005['v']===0x0)&&(_0x419e91['v']=_0xa18005['v']),_0xa18005['t']&&(_0x419e91['t']=_0xa18005['t']);const _0x12e3c5=(typeof(_0x1fc481==null?void 0x0:_0x1fc481['s'])==_0x59bd38(0x146)?_0x47eb9c[_0x59bd38(0x182)]()[_0x59bd38(0x9f)](_0x1fc481==null?void 0x0:_0x1fc481['s']):_0x1fc481==null?void 0x0:_0x1fc481['s'])||{},_0x313987=_0x47eb9c['getStyles']()[_0x59bd38(0x9f)](_0xa18005['s']),_0x2c3864={..._0x313987,..._0x12e3c5};_0x313987!=null&&_0x313987['n']&&(_0x2c3864['n']=_0x313987['n']);const _0x4e4332=_0x47eb9c['getStyles']()[_0x59bd38(0x164)](_0x2c3864);return _0x419e91['s']=_0x4e4332,(_0xa18005[_0x59bd38(0x331)]===_0x38bc74[_0x59bd38(0x200)][_0x59bd38(0x33c)]||_0xa18005[_0x59bd38(0x331)]===_0x38bc74[_0x59bd38(0x200)][_0x59bd38(0x8b)])&&(_0x419e91[_0x59bd38(0x181)]={},_0x419e91['fontRenderExtension']['leftOffset']=_0x5761d4),_0x5cd519(_0x419e91);}}));}},_0x190415[_0x566c44(0x10c)]=_0x2b29ec([_0x3152fe(0x0,_0x493c7d[_0x566c44(0xc0)](_0x188291[_0x566c44(0x343)])),_0x3152fe(0x1,_0x493c7d[_0x566c44(0xc0)](_0x190415[_0x566c44(0x2e1)]))],_0x190415[_0x566c44(0x10c)]);function _0x249710(_0x5f3a19,_0x2df768){const _0xccd5a7=_0x566c44;switch(_0x2df768){case _0x38bc74['PivotTableFiledAreaEnum']['Value']:return _0x5f3a19[_0xccd5a7(0x214)];case _0x38bc74[_0xccd5a7(0x1fa)][_0xccd5a7(0x2a8)]:return _0x5f3a19['filterFields'];case _0x38bc74['PivotTableFiledAreaEnum'][_0xccd5a7(0x1a1)]:return _0x5f3a19[_0xccd5a7(0x398)];case _0x38bc74['PivotTableFiledAreaEnum'][_0xccd5a7(0x38f)]:return _0x5f3a19['columnFields'];default:return[];}}function _0x1e7862(_0x4836ea,_0x3e27f0){const _0x1216d7=_0x566c44;return _0x4836ea['measure'][_0x3e27f0]||_0x4836ea[_0x1216d7(0x358)][_0x3e27f0];}function _0x217b3f(_0x118908,_0x470fe0){const _0x258340=_0x566c44,{area:_0x4ef92b,fieldJson:_0x5bf813,index:_0x142d10}=_0x470fe0;_0x4ef92b===_0x38bc74['PivotTableFiledAreaEnum'][_0x258340(0x9a)]?_0x118908[_0x258340(0x2b0)][_0x5bf813['id']]=_0x5bf813:_0x118908[_0x258340(0x358)][_0x5bf813['id']]=_0x5bf813,_0x249710(_0x118908,_0x4ef92b)[_0x258340(0x22d)](_0x142d10,0x0,_0x5bf813['id']);}function _0x621ae3(_0x3f6272,_0x2ac637){const _0xf3e7d8=_0x566c44,{area:_0x454e4b,fieldId:_0x308f69,index:_0x46a8c2}=_0x2ac637;_0x454e4b===_0x38bc74[_0xf3e7d8(0x1fa)][_0xf3e7d8(0x9a)]?delete _0x3f6272['measure'][_0x308f69]:delete _0x3f6272[_0xf3e7d8(0x358)][_0x308f69],_0x249710(_0x3f6272,_0x454e4b)['splice'](_0x46a8c2,0x1);}function _0x401207(_0x538cbc,_0x2a1725){const {fieldId:_0x2b2c86,name:_0x31e434}=_0x2a1725,_0x3d219a=_0x1e7862(_0x538cbc,_0x2b2c86);_0x3d219a&&(_0x3d219a['displayName']=_0x31e434);}function _0x217874(_0x2eab71,_0x5e2d9c){const _0x48bb8a=_0x566c44,{fieldId:_0x344b7b,collapse:_0x432a70,item:_0xeb04b7}=_0x5e2d9c;_0xeb04b7!==void 0x0?(_0x2eab71[_0x48bb8a(0x199)][_0x344b7b]=_0x2eab71[_0x48bb8a(0x199)][_0x344b7b]||{},_0x2eab71[_0x48bb8a(0x199)][_0x344b7b][_0xeb04b7]=_0x432a70):_0x2eab71[_0x48bb8a(0x199)][_0x344b7b]=_0x432a70;}function _0x1bfecc(_0x4946bb,_0x1c4aaf){const {fieldId:_0x1a7acd,format:_0x7864c1}=_0x1c4aaf,_0x37191f=_0x1e7862(_0x4946bb,_0x1a7acd);_0x37191f&&(_0x37191f['format']=_0x7864c1);}function _0x50c9e1(_0x56b792,_0x40f8c7){const {fieldId:_0x3a103b,filterInfo:_0x20f18c}=_0x40f8c7,_0x4b276f=_0x1e7862(_0x56b792,_0x3a103b);_0x4b276f&&(_0x4b276f['filterInfo']=_0x20f18c);}function _0x15e4d7(_0x573295,_0x32d6f2){const _0x303ed9=_0x566c44,{fieldId:_0x133529,filterInfo:_0x57230e}=_0x32d6f2,_0x35610d=_0x573295[_0x303ed9(0x281)][_0x303ed9(0xc7)](_0x17578a=>_0x17578a[_0x303ed9(0x219)]!==_0x133529);_0x57230e&&_0x35610d[_0x303ed9(0xb7)]({'fieldId':_0x133529,'filterInfo':_0x57230e}),_0x573295[_0x303ed9(0x281)]=_0x35610d;}function _0x1f135b(_0x4a7239,_0x536300){const _0x33e445=_0x566c44,{fieldId:_0x233ffa,subtotalType:_0x38f601}=_0x536300,_0x2cde39=_0x1e7862(_0x4a7239,_0x233ffa);_0x2cde39&&(_0x2cde39[_0x33e445(0x14a)]=_0x38f601);}function _0x28c4c8(_0x4be7c6,_0x38ab83){const _0x4eee98=_0x566c44,{fieldId:_0x1fb520,oldArea:_0x4de240,area:_0x366a3b,oldIndex:_0x2b2d24,index:_0x4faa18}=_0x38ab83,_0x3fdad1=_0x4de240!==_0x38bc74[_0x4eee98(0x1fa)][_0x4eee98(0x9a)]&&_0x366a3b===_0x38bc74[_0x4eee98(0x1fa)][_0x4eee98(0x9a)],_0x1ea039=_0x4de240===_0x38bc74[_0x4eee98(0x1fa)][_0x4eee98(0x9a)]&&_0x366a3b!==_0x38bc74[_0x4eee98(0x1fa)][_0x4eee98(0x9a)];if(_0x3fdad1||_0x1ea039){const _0x47ed95=_0x1e7862(_0x4be7c6,_0x1fb520);_0x47ed95&&(_0x3fdad1?(delete _0x4be7c6[_0x4eee98(0x358)][_0x1fb520],_0x4be7c6[_0x4eee98(0x2b0)][_0x1fb520]=_0x47ed95):(delete _0x4be7c6[_0x4eee98(0x2b0)][_0x1fb520],_0x4be7c6['dimension'][_0x1fb520]=_0x47ed95));}const _0x4319da=_0x249710(_0x4be7c6,_0x4de240),_0x17aee3=_0x249710(_0x4be7c6,_0x366a3b);_0x4319da[_0x4eee98(0x22d)](_0x2b2d24,0x1),_0x17aee3[_0x4eee98(0x22d)](_0x4faa18,0x0,_0x1fb520);}function _0x5b27c0(_0x516c7c,_0x558730){const _0x565912=_0x566c44,{valuePosition:_0x38c53f,index:_0x5f58cf}=_0x558730;_0x516c7c[_0x565912(0x1c2)]=_0x38c53f,_0x516c7c[_0x565912(0x9d)]=_0x5f58cf;}function _0x5ca541(_0x39d8e4,_0x25f8b8){const _0x486295=_0x566c44,{tableFieldId:_0x5706ce,sourceName:_0x29bec8,dataFieldId:_0x247f35}=_0x25f8b8,_0x43b5c3=_0x1e7862(_0x39d8e4,_0x5706ce);_0x43b5c3&&(_0x43b5c3[_0x486295(0x204)]=_0x29bec8,_0x43b5c3[_0x486295(0x1d6)]=_0x247f35);}function _0x2c7aab(_0x17b86a,_0x5ba347){const _0x2f9e47=_0x566c44,{fieldId:_0x14afe5,sortInfo:_0x5cc44f}=_0x5ba347,_0x396432=_0x1e7862(_0x17b86a,_0x14afe5);_0x396432&&(_0x396432[_0x2f9e47(0x32e)]=_0x5cc44f);}function _0x2d69d7(_0x3c5cc5,_0x21797f){const _0x257e56=_0x566c44,{options:_0x32cc9d}=_0x21797f;_0x3c5cc5[_0x257e56(0x193)]={..._0x3c5cc5[_0x257e56(0x193)],..._0x32cc9d};}const _0x427f59={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':'sheet.mutation.add-pivot-field','handler'(_0x394322,_0x1cad9b){const _0x32fcd6=_0x566c44;if(!_0x1cad9b)return!0x1;if(!!_0x394322[_0x32fcd6(0x9f)](_0x493c7d[_0x32fcd6(0xa7)])[_0x32fcd6(0x290)](_0xb9a66d))return!0x0;const _0x2398cf=_0x394322[_0x32fcd6(0x9f)](_0x190415[_0x32fcd6(0x324)]),{pivotTableId:_0x5d387a,fieldJson:_0x333e20,area:_0x29e707,index:_0x54a83c,unitId:_0xb1157c,subUnitId:_0x4e1325}=_0x1cad9b,_0xf5dddb=_0x2398cf[_0x32fcd6(0x2db)](_0x5d387a);if(!_0xf5dddb)return!0x1;let _0x5055f5;_0x29e707===_0x38bc74['PivotTableFiledAreaEnum'][_0x32fcd6(0x9a)]?_0x5055f5=_0x38bc74[_0x32fcd6(0x28a)](_0x333e20):_0x5055f5=_0x38bc74[_0x32fcd6(0x282)](_0x333e20),_0xf5dddb['addField'](_0x5055f5,_0x29e707,_0x54a83c);const _0x2800d0=_0x2398cf['getPivotTableModelConfig'](_0xb1157c,_0x4e1325,_0x5d387a);_0x217b3f(_0x2800d0,_0x1cad9b);const _0x4eafbe=_0x2398cf['getPivotTableConfig'](_0xb1157c,_0x4e1325,_0x5d387a);return _0x2398cf[_0x32fcd6(0x166)]({'unitId':_0xb1157c,'subUnitId':_0x4e1325,'token':_0x5d387a,'type':_0x3e1445[_0x32fcd6(0x352)],'pivotConfig':_0x4eafbe}),!0x0;}},_0x18897e={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x423c0d,_0xfd4791){const _0x401b62=_0x566c44;if(!_0xfd4791)return!0x1;if(!!_0x423c0d[_0x401b62(0x9f)](_0x493c7d['IConfigService'])[_0x401b62(0x290)](_0xb9a66d))return!0x0;const _0x576a48=_0x423c0d[_0x401b62(0x9f)](_0x190415[_0x401b62(0x324)]),{pivotTableId:_0x1d2979,fieldId:_0x14b495,unitId:_0x4c1700,subUnitId:_0x1a1124}=_0xfd4791,_0x5900d4=_0x576a48[_0x401b62(0x2db)](_0x1d2979);if(!_0x5900d4)return!0x1;_0x5900d4[_0x401b62(0x15b)](_0x14b495);const _0x3d8bb8=_0x576a48[_0x401b62(0x389)](_0x4c1700,_0x1a1124,_0x1d2979);_0x621ae3(_0x3d8bb8,_0xfd4791);const _0x45917a=_0x576a48[_0x401b62(0x132)](_0x4c1700,_0x1a1124,_0x1d2979);return _0x576a48['addDirtyPivotTable']({'unitId':_0x4c1700,'subUnitId':_0x1a1124,'token':_0x1d2979,'type':_0x3e1445['Set'],'pivotConfig':_0x45917a}),!0x0;}},_0x3e1ca4={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':'sheet.mutation.rename-pivot-field','handler'(_0x43df08,_0x4b1124){const _0x318fde=_0x566c44;if(!_0x4b1124)return!0x1;if(!!_0x43df08[_0x318fde(0x9f)](_0x493c7d[_0x318fde(0xa7)])[_0x318fde(0x290)](_0xb9a66d))return!0x0;const _0x2491f3=_0x43df08[_0x318fde(0x9f)](_0x190415['SheetsPivotDataSourceModel']),{unitId:_0x5e262b,subUnitId:_0x26ad4e,pivotTableId:_0x1f5574,fieldId:_0x240b75,name:_0x1b6c89}=_0x4b1124,_0x174f37=_0x2491f3[_0x318fde(0x2db)](_0x1f5574);if(!_0x174f37)return!0x1;_0x174f37['renameField'](_0x240b75,_0x1b6c89);const _0x4c2050=_0x2491f3[_0x318fde(0x389)](_0x5e262b,_0x26ad4e,_0x1f5574);return _0x401207(_0x4c2050,_0x4b1124),_0x2491f3[_0x318fde(0x166)]({'unitId':_0x5e262b,'subUnitId':_0x26ad4e,'token':_0x1f5574,'type':_0x3e1445['Set']}),!0x0;}},_0x406146={'type':_0x493c7d['CommandType'][_0x566c44(0x391)],'id':_0x566c44(0xa3),'handler'(_0x1a89f6,_0xca4ceb){const _0x3f91e3=_0x566c44;if(!_0xca4ceb)return!0x1;if(!!_0x1a89f6['get'](_0x493c7d[_0x3f91e3(0xa7)])['getConfig'](_0xb9a66d))return!0x0;const _0x3bed78=_0x1a89f6[_0x3f91e3(0x9f)](_0x190415[_0x3f91e3(0x324)]),{unitId:_0x392d7f,subUnitId:_0x47652d,pivotTableId:_0x1dc4b2,fieldId:_0x46efd3,collapse:_0x4c95d8,item:_0x47385b}=_0xca4ceb,_0x222877=_0x3bed78['getPivotTableInstance'](_0x1dc4b2);if(!_0x222877)return!0x1;_0x222877[_0x3f91e3(0x26a)](_0x46efd3,_0x4c95d8,_0x47385b);const _0x344082=_0x3bed78[_0x3f91e3(0x389)](_0x392d7f,_0x47652d,_0x1dc4b2);return _0x217874(_0x344082,_0xca4ceb),_0x3bed78['addDirtyPivotTable']({'unitId':_0x392d7f,'subUnitId':_0x47652d,'token':_0x1dc4b2,'type':_0x3e1445[_0x3f91e3(0x352)]}),!0x0;}},_0x1704bb={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':'sheet.mutation.set-pivot-format','handler'(_0x894bd8,_0x40d199){const _0x2125c9=_0x566c44;if(!_0x40d199)return!0x1;if(!!_0x894bd8[_0x2125c9(0x9f)](_0x493c7d[_0x2125c9(0xa7)])['getConfig'](_0xb9a66d))return!0x0;const _0x439c8e=_0x894bd8[_0x2125c9(0x9f)](_0x190415[_0x2125c9(0x324)]),{unitId:_0x3dda5d,subUnitId:_0x1a0994,pivotTableId:_0x2089bb,fieldId:_0x161f7c,format:_0x3c888f}=_0x40d199,_0x590757=_0x439c8e['getPivotTableInstance'](_0x2089bb);if(!_0x590757)return!0x1;_0x590757[_0x2125c9(0x250)](_0x161f7c,_0x3c888f);const _0x3fef6a=_0x439c8e[_0x2125c9(0x389)](_0x3dda5d,_0x1a0994,_0x2089bb);return _0x1bfecc(_0x3fef6a,_0x40d199),_0x439c8e[_0x2125c9(0x166)]({'unitId':_0x3dda5d,'subUnitId':_0x1a0994,'token':_0x2089bb,'type':_0x3e1445[_0x2125c9(0x352)]}),!0x0;}},_0x2993c6={'type':_0x493c7d[_0x566c44(0x327)]['MUTATION'],'id':_0x566c44(0x38b),'handler'(_0x29de89,_0x554218){const _0x10740d=_0x566c44;if(!_0x554218)return!0x1;if(!!_0x29de89[_0x10740d(0x9f)](_0x493c7d[_0x10740d(0xa7)])[_0x10740d(0x290)](_0xb9a66d))return!0x0;const _0x255816=_0x29de89[_0x10740d(0x9f)](_0x190415[_0x10740d(0x324)]),{unitId:_0x9383d6,subUnitId:_0x3a1a87,pivotTableId:_0x3ef1ae,fieldId:_0x2da852,filterInfo:_0x450bfb}=_0x554218,_0x23fc54=_0x255816['getPivotTableInstance'](_0x3ef1ae);if(!_0x23fc54)return!0x1;_0x23fc54[_0x10740d(0x124)](_0x2da852,_0x450bfb);const _0x10d39b=_0x255816['getPivotTableModelConfig'](_0x9383d6,_0x3a1a87,_0x3ef1ae);return _0x50c9e1(_0x10d39b,_0x554218),_0x255816[_0x10740d(0x166)]({'unitId':_0x9383d6,'subUnitId':_0x3a1a87,'token':_0x3ef1ae,'type':_0x3e1445[_0x10740d(0x352)]}),!0x0;}},_0x1d49cb={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':'sheet.mutation.set-pivot-option','handler'(_0x5115e1,_0xeaae35){const _0x553ebc=_0x566c44;if(!_0xeaae35)return!0x1;if(!!_0x5115e1[_0x553ebc(0x9f)](_0x493c7d[_0x553ebc(0xa7)])[_0x553ebc(0x290)](_0xb9a66d))return!0x0;const _0x95c266=_0x5115e1[_0x553ebc(0x9f)](_0x190415['SheetsPivotDataSourceModel']),{unitId:_0x555704,subUnitId:_0x468167,pivotTableId:_0x419627,options:_0x48506e}=_0xeaae35,_0x10a22a=_0x95c266['getPivotTableInstance'](_0x419627);if(!_0x10a22a)return!0x1;_0x10a22a[_0x553ebc(0x19a)](_0x48506e);const _0xbf2c2b=_0x95c266['getPivotTableModelConfig'](_0x555704,_0x468167,_0x419627);return _0x2d69d7(_0xbf2c2b,_0xeaae35),_0x95c266['addDirtyPivotTable']({'unitId':_0x555704,'subUnitId':_0x468167,'token':_0x419627,'type':_0x3e1445[_0x553ebc(0x352)]}),!0x0;}},_0x38df92={'type':_0x493c7d['CommandType']['MUTATION'],'id':_0x566c44(0x2fb),'handler'(_0x45472a,_0x1c2f02){const _0x1ec0fc=_0x566c44;if(!_0x1c2f02)return!0x1;if(!!_0x45472a[_0x1ec0fc(0x9f)](_0x493c7d['IConfigService'])['getConfig'](_0xb9a66d))return!0x0;const _0x23aeaf=_0x45472a['get'](_0x190415['SheetsPivotDataSourceModel']),{unitId:_0x492895,subUnitId:_0x4d9e64,pivotTableId:_0x66140d,sortInfo:_0x1edc37,fieldId:_0x55fccf}=_0x1c2f02,_0x369072=_0x23aeaf[_0x1ec0fc(0x2db)](_0x66140d);if(!_0x369072)return!0x1;_0x369072[_0x1ec0fc(0x1f6)](_0x55fccf,_0x1edc37);const _0x211fbf=_0x23aeaf['getPivotTableModelConfig'](_0x492895,_0x4d9e64,_0x66140d);return _0x2c7aab(_0x211fbf,_0x1c2f02),_0x23aeaf[_0x1ec0fc(0x166)]({'unitId':_0x492895,'subUnitId':_0x4d9e64,'token':_0x66140d,'type':_0x3e1445['Set']}),!0x0;}},_0x219519={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':_0x566c44(0x2a2),'handler'(_0xae30fd,_0x22b3ea){const _0x137e98=_0x566c44;if(!_0x22b3ea)return!0x1;if(!!_0xae30fd['get'](_0x493c7d[_0x137e98(0xa7)])[_0x137e98(0x290)](_0xb9a66d))return!0x0;const _0x2c48d2=_0xae30fd['get'](_0x190415['SheetsPivotDataSourceModel']),{unitId:_0xe3e2bd,subUnitId:_0x31c2e9,pivotTableId:_0x23a57b,fieldId:_0xc83fae,subtotalType:_0x368498}=_0x22b3ea,_0xbe1cc6=_0x2c48d2[_0x137e98(0x2db)](_0x23a57b);if(!_0xbe1cc6)return!0x1;_0xbe1cc6[_0x137e98(0x313)](_0xc83fae,_0x368498);const _0x4a5eb3=_0x2c48d2[_0x137e98(0x389)](_0xe3e2bd,_0x31c2e9,_0x23a57b);return _0x1f135b(_0x4a5eb3,_0x22b3ea),_0x2c48d2[_0x137e98(0x166)]({'unitId':_0xe3e2bd,'subUnitId':_0x31c2e9,'token':_0x23a57b,'type':_0x3e1445['Set']}),!0x0;}},_0x3c2891={'type':_0x493c7d['CommandType'][_0x566c44(0x391)],'id':_0x566c44(0x36e),'handler'(_0x5f1bce,_0x77fbe2){const _0x633d4=_0x566c44;if(!_0x77fbe2)return!0x1;if(!!_0x5f1bce[_0x633d4(0x9f)](_0x493c7d['IConfigService'])['getConfig'](_0xb9a66d))return!0x0;const _0x59442e=_0x5f1bce[_0x633d4(0x9f)](_0x190415['SheetsPivotDataSourceModel']),{unitId:_0x57e3c2,subUnitId:_0x30f3bb,pivotTableId:_0x5717ce,fieldId:_0x4bb11d,filterInfo:_0x29874f}=_0x77fbe2,_0x55716c=_0x59442e[_0x633d4(0x2db)](_0x5717ce);if(!_0x55716c)return!0x1;_0x55716c[_0x633d4(0x379)](_0x4bb11d,_0x29874f);const _0x56bb5c=_0x59442e[_0x633d4(0x389)](_0x57e3c2,_0x30f3bb,_0x5717ce);return _0x15e4d7(_0x56bb5c,_0x77fbe2),_0x59442e[_0x633d4(0x166)]({'unitId':_0x57e3c2,'subUnitId':_0x30f3bb,'token':_0x5717ce,'type':_0x3e1445['Set']}),!0x0;}},_0x50f5a3={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':'sheet.mutation.pivot-update-field-position','handler'(_0x2f02ad,_0x2e2484){const _0x261d18=_0x566c44;if(!_0x2e2484)return!0x1;if(!!_0x2f02ad['get'](_0x493c7d[_0x261d18(0xa7)])[_0x261d18(0x290)](_0xb9a66d))return!0x0;const _0x18276d=_0x2f02ad[_0x261d18(0x9f)](_0x190415[_0x261d18(0x324)]),{unitId:_0x2002fc,subUnitId:_0x5f3777,pivotTableId:_0x3d0cb4,area:_0x288c52,index:_0x42f044,fieldId:_0x3f3c56}=_0x2e2484,_0x5d1b8b=_0x18276d['getPivotTableInstance'](_0x3d0cb4);if(!_0x5d1b8b)return!0x1;_0x5d1b8b[_0x261d18(0x2d3)](_0x3f3c56,_0x288c52,_0x42f044);const _0x4fcbb4=_0x18276d['getPivotTableModelConfig'](_0x2002fc,_0x5f3777,_0x3d0cb4);return _0x28c4c8(_0x4fcbb4,_0x2e2484),_0x18276d['addDirtyPivotTable']({'unitId':_0x2002fc,'subUnitId':_0x5f3777,'token':_0x3d0cb4,'type':_0x3e1445[_0x261d18(0x352)]}),!0x0;}},_0x189f85={'type':_0x493c7d[_0x566c44(0x327)]['MUTATION'],'id':'sheet.mutation.pivot-update-field-source-info','handler'(_0x37ba9f,_0x38b4e7){const _0x24c9db=_0x566c44;if(!_0x38b4e7)return!0x1;if(!!_0x37ba9f[_0x24c9db(0x9f)](_0x493c7d['IConfigService'])[_0x24c9db(0x290)](_0xb9a66d))return!0x0;const _0x2940d5=_0x37ba9f[_0x24c9db(0x9f)](_0x190415['SheetsPivotDataSourceModel']),{unitId:_0x26f326,subUnitId:_0x12f72b,pivotTableId:_0x2ee921,sourceName:_0x43303f,dataFieldId:_0x3755da,tableFieldId:_0x533549}=_0x38b4e7,_0x1c8ba2=_0x2940d5[_0x24c9db(0x2db)](_0x2ee921);if(!_0x1c8ba2)return!0x1;_0x1c8ba2[_0x24c9db(0x38d)](_0x533549,_0x43303f,_0x3755da);const _0x59e151=_0x2940d5[_0x24c9db(0x389)](_0x26f326,_0x12f72b,_0x2ee921);return _0x5ca541(_0x59e151,_0x38b4e7),_0x2940d5['addDirtyPivotTable']({'unitId':_0x26f326,'subUnitId':_0x12f72b,'token':_0x2ee921,'type':_0x3e1445[_0x24c9db(0x352)]}),!0x0;}},_0x1e8f14={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':'sheet.mutation.pivot-update-value-position','handler'(_0x1ceaf1,_0x42c6d3){const _0x4786a6=_0x566c44;if(!_0x42c6d3)return!0x1;if(!!_0x1ceaf1[_0x4786a6(0x9f)](_0x493c7d[_0x4786a6(0xa7)])['getConfig'](_0xb9a66d))return!0x0;const _0x259286=_0x1ceaf1[_0x4786a6(0x9f)](_0x190415[_0x4786a6(0x324)]),{unitId:_0x4d785e,subUnitId:_0x9d0809,pivotTableId:_0x45d78f,valuePosition:_0x450cc8,index:_0x16c3e9}=_0x42c6d3,_0x3616bd=_0x259286['getPivotTableInstance'](_0x45d78f);if(!_0x3616bd)return!0x1;_0x3616bd[_0x4786a6(0x1eb)](_0x450cc8,_0x16c3e9);const _0x4b6d1e=_0x259286['getPivotTableModelConfig'](_0x4d785e,_0x9d0809,_0x45d78f);return _0x5b27c0(_0x4b6d1e,_0x42c6d3),_0x259286[_0x4786a6(0x166)]({'unitId':_0x4d785e,'subUnitId':_0x9d0809,'token':_0x45d78f,'type':_0x3e1445[_0x4786a6(0x352)]}),!0x0;}};function _0x52b608(_0xaf0dfe,_0x4ba28c,_0x57844e){const _0x35ebbd=_0x566c44,{pivotTableId:_0x3a7d4f,unitId:_0x4b9bad,subUnitId:_0x1611bc}=_0x4ba28c,_0x4d826a=[],_0xb11444=[];for(const _0x13d1d0 of _0x57844e)switch(_0x13d1d0[_0x35ebbd(0xa4)]){case _0x38bc74['PivotTableChangeTypeEnum'][_0x35ebbd(0xb2)]:{const {fieldJson:_0x223d0d,area:_0x1f79e4,index:_0x339b08}=_0x13d1d0,_0x11f751={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldJson':_0x223d0d,'area':_0x1f79e4,'index':_0x339b08},_0x2e13aa={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x223d0d['id'],'area':_0x1f79e4,'index':_0x339b08};_0x4d826a[_0x35ebbd(0xb7)]({'id':_0x427f59['id'],'params':_0x11f751}),_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x18897e['id'],'params':_0x2e13aa});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0x1a9)]:{const {fieldId:_0x4a5651,newSubtotalType:_0x1a2ddc,oldSubtotalType:_0x18c9c8}=_0x13d1d0,_0xfeef8c={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x4a5651,'subtotalType':_0x1a2ddc};_0x4d826a[_0x35ebbd(0xb7)]({'id':_0x219519['id'],'params':_0xfeef8c});const _0x3e174d={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x4a5651,'subtotalType':_0x18c9c8};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x219519['id'],'params':_0x3e174d});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0xae)]:{const {fieldId:_0x2eb7df,fieldJson:_0x8df21,area:_0x380d98,index:_0x37be89}=_0x13d1d0,_0x507f8a={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x2eb7df,'index':_0x37be89,'area':_0x380d98};_0x4d826a['push']({'id':_0x18897e['id'],'params':_0x507f8a});const _0x508e5a={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldJson':_0x8df21,'area':_0x380d98,'index':_0x37be89};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x427f59['id'],'params':_0x508e5a});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0x2fe)]:{const {fieldId:_0x29061c,oldName:_0x552597,newName:_0x2c657c}=_0x13d1d0,_0x254c3f={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x29061c,'name':_0x2c657c};_0x4d826a['push']({'id':_0x3e1ca4['id'],'params':_0x254c3f});const _0x4b1836={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x29061c,'name':_0x552597};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x3e1ca4['id'],'params':_0x4b1836});}break;case _0x38bc74[_0x35ebbd(0x135)]['SetFilterInfo']:{const {fieldId:_0x29f46a,oldFilterInfo:_0x3c69d7,newFilterInfo:_0x1ba4e9}=_0x13d1d0,_0x242ea6={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x29f46a,'filterInfo':_0x1ba4e9};_0x4d826a[_0x35ebbd(0xb7)]({'id':_0x2993c6['id'],'params':_0x242ea6});const _0x4ab873={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x29f46a,'filterInfo':_0x3c69d7};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x2993c6['id'],'params':_0x4ab873});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0x1fe)]:{const {fieldId:_0x5994e6,oldSortInfo:_0x9dc3c3,newSortInfo:_0xfaa9ef}=_0x13d1d0,_0x2084f0={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x5994e6,'sortInfo':_0xfaa9ef};_0x4d826a['push']({'id':_0x38df92['id'],'params':_0x2084f0});const _0x5994a5={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x5994e6,'sortInfo':_0x9dc3c3};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x38df92['id'],'params':_0x5994a5});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0x1e7)]:{const {oldOptions:_0x210137,newOptions:_0x509572}=_0x13d1d0,_0x9235e7={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'options':_0x509572};_0x4d826a[_0x35ebbd(0xb7)]({'id':_0x1d49cb['id'],'params':_0x9235e7});const _0x1228a9={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'options':_0x210137};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x1d49cb['id'],'params':_0x1228a9});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0x155)]:{const {oldArea:_0x46d344,newArea:_0x5d5f2c,oldIndex:_0x1bff15,newIndex:_0x525e69,fieldId:_0x3ce902}=_0x13d1d0,_0x51fc99={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x3ce902,'area':_0x5d5f2c,'index':_0x525e69,'oldArea':_0x46d344,'oldIndex':_0x1bff15};_0x4d826a['push']({'id':_0x50f5a3['id'],'params':_0x51fc99});const _0x21894d={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x3ce902,'area':_0x46d344,'index':_0x1bff15,'oldArea':_0x5d5f2c,'oldIndex':_0x525e69};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x50f5a3['id'],'params':_0x21894d});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0x118)]:{const {oldValuePosition:_0x4f77ff,newValuePosition:_0x31954d,oldIndex:_0x30131e,newIndex:_0x1a68dd}=_0x13d1d0,_0x1be4fe={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'valuePosition':_0x31954d,'index':_0x1a68dd};_0x4d826a['push']({'id':_0x1e8f14['id'],'params':_0x1be4fe});const _0x5088fe={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'valuePosition':_0x4f77ff,'index':_0x30131e};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x1e8f14['id'],'params':_0x5088fe});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0x39a)]:{const {fieldId:_0x3c5645,collapse:_0x572fe8,item:_0xb9d3e4}=_0x13d1d0,_0x3317f2={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x3c5645,'collapse':_0x572fe8,'item':_0xb9d3e4};_0x4d826a[_0x35ebbd(0xb7)]({'id':_0x406146['id'],'params':_0x3317f2});const _0xbf9c32={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x3c5645,'collapse':!_0x572fe8,'item':_0xb9d3e4};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x406146['id'],'params':_0xbf9c32});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0x308)]:{const {newFormat:_0x39cc75,oldFormat:_0x238477,fieldId:_0x3420eb}=_0x13d1d0,_0x33c993={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x3420eb,'format':_0x39cc75};_0x4d826a['push']({'id':_0x1704bb['id'],'params':_0x33c993});const _0x377429={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x3420eb,'format':_0x238477};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x1704bb['id'],'params':_0x377429});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0x117)]:{const {tableFieldId:_0x36a358,oldSourceName:_0x222ff9,newSourceName:_0x4ec0d6,oldDataFieldId:_0x580aae,newDataFieldId:_0xabce6f}=_0x13d1d0,_0x38e47d={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'tableFieldId':_0x36a358,'sourceName':_0x4ec0d6,'dataFieldId':_0xabce6f};_0x4d826a[_0x35ebbd(0xb7)]({'id':_0x189f85['id'],'params':_0x38e47d});const _0x43d674={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'tableFieldId':_0x36a358,'sourceName':_0x222ff9,'dataFieldId':_0x580aae};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x189f85['id'],'params':_0x43d674});}break;case _0x38bc74[_0x35ebbd(0x135)][_0x35ebbd(0x1fd)]:{const {fieldId:_0x1df2dd,filterInfo:_0x3a5c1e,oldFilterInfo:_0x4d6d09}=_0x13d1d0,_0x2abcdd={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x1df2dd,'filterInfo':_0x3a5c1e};_0x4d826a[_0x35ebbd(0xb7)]({'id':_0x3c2891['id'],'params':_0x2abcdd});const _0x515f07={'unitId':_0x4b9bad,'subUnitId':_0x1611bc,'pivotTableId':_0x3a7d4f,'fieldId':_0x1df2dd,'filterInfo':_0x4d6d09};_0xb11444[_0x35ebbd(0x1a6)]({'id':_0x3c2891['id'],'params':_0x515f07});}}return{'redos':_0x4d826a,'undos':_0xb11444};}function _0x39ef34(_0x2a5ef7,_0x292a80){const _0x5e48ae=_0x566c44;var _0x5a4355;const _0x34ad14=_0x2a5ef7[_0x5e48ae(0x9f)](_0x190415[_0x5e48ae(0x10c)]),{cellInfo:_0x525c1b,view:_0x2b5a44,isEmpty:_0x58e339}=_0x292a80;return(_0x5a4355=_0x34ad14[_0x5e48ae(0x20a)][_0x5e48ae(0x2c4)](_0x536eb3)(_0x2e4016,{'cellInfo':_0x525c1b,'view':_0x2b5a44,'isEmpty':_0x58e339}))!=null?_0x5a4355:_0x2e4016;}const _0x617ed1=()=>typeof process<'u'&&process[_0x566c44(0xcf)]!=null&&process[_0x566c44(0xcf)]['node']!=null,_0x20bce1={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':_0x566c44(0xd5),'handler'(_0x1f9590,_0x7a13c2){const _0x1f3d43=_0x566c44;var _0x595060;if(!_0x7a13c2)return!0x1;const _0x425baa=_0x1f9590[_0x1f3d43(0x9f)](_0x493c7d['IConfigService']);if(!!_0x425baa[_0x1f3d43(0x290)](_0xb9a66d))return!0x0;const _0x4304ce=_0x1f9590[_0x1f3d43(0x9f)](_0x493c7d[_0x1f3d43(0x356)]),_0x1959a7=_0x1f9590[_0x1f3d43(0x9f)](_0x190415[_0x1f3d43(0x324)]),{pivotTableId:_0x2c14f3,pivotTableConfig:_0x39d1ce,collectionConfig:_0x58795c,unitId:_0x485431,subUnitId:_0x45eab1}=_0x7a13c2,{sourceRangeInfo:_0x478313,fieldsConfig:_0x5ce870,targetCellInfo:_0x43f433}=_0x39d1ce,_0x104e0f=_0x4304ce[_0x1f3d43(0x2d8)](_0x485431);if(!_0x104e0f||!_0x104e0f['getSheetBySheetId'](_0x45eab1))return!0x1;if(!_0x617ed1()){let _0x28af4c=0x0;_0x104e0f[_0x1f3d43(0x25f)]()['forEach'](_0x55b380=>{const _0x1621df=_0x1f3d43;var _0x29f198,_0x318069;_0x28af4c+=(_0x318069=(_0x29f198=_0x1959a7[_0x1621df(0x1ab)](_0x485431,_0x55b380[_0x1621df(0x149)]()))==null?void 0x0:_0x29f198['size'])!=null?_0x318069:0x0;});const _0x19a608=(_0x595060=_0x425baa['getConfig'](_0x17beef[_0x1f3d43(0x80)]))!=null?_0x595060:{},{ls:_0x4b53b9,pbk:_0x57e869}=_0x19a608;if(!_0x2cafe8(_0x4b53b9,_0x57e869))throw new _0x493c7d[(_0x1f3d43(0x24d))](_0x1f3d43(0x300));const _0x445383=_0x5bc9e8(_0x4302a8,_0x4b53b9,_0x57e869)['count'];if(_0x28af4c>=_0x445383)throw new _0x493c7d[(_0x1f3d43(0x24d))](_0x1f3d43(0x300));}if(!_0x58795c||!_0x5ce870)return!0x1;const {collection:_0x4f8dc1,updateDataFieldList:_0x266994}=_0x1959a7[_0x1f3d43(0xcc)](_0x2c14f3,_0x58795c,_0x478313,_0x43f433);_0x1959a7['refreshData'](_0x4f8dc1,_0x266994,_0x478313);const _0x8ed6e0=new _0x38bc74[(_0x1f3d43(0x221))](_0x4f8dc1,void 0x0,_0x2c14f3);_0x8ed6e0[_0x1f3d43(0x244)](_0x5ce870);const _0x3db774=JSON[_0x1f3d43(0x32a)](JSON[_0x1f3d43(0x21a)](_0x39d1ce));return _0x1959a7['addPivotTable'](_0x485431,_0x45eab1,_0x2c14f3,_0x8ed6e0,_0x3db774),_0x1959a7[_0x1f3d43(0x166)]({'unitId':_0x485431,'subUnitId':_0x45eab1,'token':_0x2c14f3,'type':_0x3e1445['Add'],'pivotConfig':_0x3db774}),!0x0;}},_0x20bb2b={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':_0x566c44(0xd0),'handler'(_0x560a41,_0xa63eed){const _0x3a38de=_0x566c44;if(!_0xa63eed)return!0x1;if(!!_0x560a41['get'](_0x493c7d[_0x3a38de(0xa7)])[_0x3a38de(0x290)](_0xb9a66d))return!0x0;const {pivotTableId:_0xe80a27,unitId:_0x295c22,subUnitId:_0x4380e8}=_0xa63eed,_0x4fbfe5=_0x560a41[_0x3a38de(0x9f)](_0x190415[_0x3a38de(0x324)]);return _0x4fbfe5[_0x3a38de(0x132)](_0x295c22,_0x4380e8,_0xe80a27)?(_0x4fbfe5['addDirtyPivotTable']({'unitId':_0x295c22,'subUnitId':_0x4380e8,'token':_0xe80a27,'type':_0x3e1445[_0x3a38de(0x107)]}),_0x4fbfe5[_0x3a38de(0x377)](_0x295c22,_0x4380e8,_0xe80a27),!0x0):!0x1;}},_0x1ee6e8={'type':_0x493c7d[_0x566c44(0x327)]['MUTATION'],'id':_0x566c44(0x169),'handler'(_0xdf4045,_0x303c88){const _0x329bc7=_0x566c44;if(!_0x303c88)return!0x1;if(!!_0xdf4045[_0x329bc7(0x9f)](_0x493c7d[_0x329bc7(0xa7)])[_0x329bc7(0x290)](_0xb9a66d))return!0x0;const {pivotTableId:_0x2ef49d,targetCellPosition:_0x5040d9,unitId:_0x528406,subUnitId:_0x48ab19}=_0x303c88,_0x15e954=_0xdf4045[_0x329bc7(0x9f)](_0x190415[_0x329bc7(0x324)]);if(!_0x15e954['getPivotTableInstance'](_0x303c88['pivotTableId']))return!0x1;const _0x26e179=_0x15e954['getTargetByPivotId'](_0x2ef49d);if(!_0x26e179)return!0x1;const _0x414e2d=_0x15e954[_0x329bc7(0x1e6)](_0x26e179[_0x329bc7(0x35b)],_0x303c88[_0x329bc7(0x140)]);if(!_0x414e2d)return!0x1;const _0x25ddf9=_0x15e954[_0x329bc7(0x132)](_0x26e179[_0x329bc7(0x35b)],_0x26e179['subUnitId'],_0x2ef49d);if(!_0x25ddf9)return!0x1;const _0x52aa3e=_0x493c7d[_0x329bc7(0x227)][_0x329bc7(0x30f)](_0x25ddf9);_0x52aa3e[_0x329bc7(0x12d)]={'unitId':_0x528406,'subUnitId':_0x48ab19,'row':_0x5040d9[_0x329bc7(0x232)],'col':_0x5040d9[_0x329bc7(0x212)]};const _0x4cad08=_0x414e2d[_0x329bc7(0x37f)]();if(_0x26e179[_0x329bc7(0x32f)]===_0x48ab19&&_0x26e179[_0x329bc7(0x35b)]===_0x528406)_0x15e954[_0x329bc7(0x320)](_0x528406,_0x48ab19,_0x2ef49d,_0x52aa3e),_0x15e954['addDirtyPivotTable']({'unitId':_0x528406,'subUnitId':_0x48ab19,'token':_0x2ef49d,'type':_0x3e1445[_0x329bc7(0x352)]});else{_0x15e954[_0x329bc7(0x166)]({'unitId':_0x26e179[_0x329bc7(0x35b)],'subUnitId':_0x26e179[_0x329bc7(0x32f)],'token':_0x2ef49d,'type':_0x3e1445['Delete']}),_0x15e954[_0x329bc7(0x377)](_0x26e179['unitId'],_0x26e179[_0x329bc7(0x32f)],_0x2ef49d);const _0x2f78cd=_0x15e954[_0x329bc7(0xcc)](_0x2ef49d,_0x4cad08,_0x25ddf9[_0x329bc7(0x12a)],_0x52aa3e[_0x329bc7(0x12d)]),_0x4c8aa2=new _0x38bc74[(_0x329bc7(0x221))](_0x2f78cd[_0x329bc7(0x13d)],void 0x0,_0x2ef49d);_0x4c8aa2[_0x329bc7(0x244)](_0x52aa3e[_0x329bc7(0x2fc)]),_0x15e954[_0x329bc7(0x368)](_0x528406,_0x48ab19,_0x2ef49d,_0x4c8aa2,_0x52aa3e),_0x15e954[_0x329bc7(0x166)]({'unitId':_0x528406,'subUnitId':_0x48ab19,'token':_0x2ef49d,'type':_0x3e1445[_0x329bc7(0x2e0)],'pivotConfig':_0x52aa3e});}return!0x0;}},_0x837734={'type':_0x493c7d['CommandType'][_0x566c44(0x391)],'id':_0x566c44(0xce),'handler'(_0x315163,_0x3a3a18){const _0x4483e5=_0x566c44;if(!_0x3a3a18)return!0x1;if(!!_0x315163[_0x4483e5(0x9f)](_0x493c7d[_0x4483e5(0xa7)])[_0x4483e5(0x290)](_0xb9a66d))return!0x0;const _0x211bbf=_0x315163[_0x4483e5(0x9f)](_0x190415['SheetsPivotDataSourceModel']),{pivotTableId:_0x3e60b0,deleteIds:_0x3e7df4,collectionJSON:_0x328bce,dataRangeInfo:_0x139554,unitId:_0x42fafe,subUnitId:_0x505ca9}=_0x3a3a18,_0x358fac=_0x211bbf[_0x4483e5(0x2db)](_0x3e60b0),_0x28c87c=_0x211bbf[_0x4483e5(0x132)](_0x42fafe,_0x505ca9,_0x3e60b0);if(!_0x358fac||!_0x28c87c)return!0x1;const {collection:_0x439af7,updateDataFieldList:_0x203f89}=_0x211bbf[_0x4483e5(0xcc)](_0x3e60b0,_0x328bce,_0x139554,_0x28c87c[_0x4483e5(0x12d)]);_0x211bbf[_0x4483e5(0x233)](_0x439af7,_0x203f89,_0x139554),_0x358fac['updateDataFieldsCollection'](_0x439af7);for(const _0x5aec36 of _0x3e7df4)_0x211bbf['removeDataField'](_0x139554[_0x4483e5(0x35b)],_0x5aec36);const _0x584c4f=_0x211bbf[_0x4483e5(0x132)](_0x42fafe,_0x505ca9,_0x3e60b0);return _0x584c4f[_0x4483e5(0x12a)]=JSON[_0x4483e5(0x32a)](JSON['stringify'](_0x139554)),_0x211bbf[_0x4483e5(0x166)]({'unitId':_0x42fafe,'subUnitId':_0x505ca9,'token':_0x3e60b0,'type':_0x3e1445[_0x4483e5(0x352)]}),!0x0;}},_0x2cd19f={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'id':_0x566c44(0x1b4),'handler'(){return!0x0;}};var _0x1e9d27=Object[_0x566c44(0x183)],_0x3c9d63=(_0x532c8e,_0x59c777,_0x4d92dd,_0x182731)=>{const _0x4c8f80=_0x566c44;for(var _0x17dcd5=_0x182731>0x1?void 0x0:_0x182731?_0x1e9d27(_0x59c777,_0x4d92dd):_0x59c777,_0x6c44b7=_0x532c8e[_0x4c8f80(0x13c)]-0x1,_0x45bf3d;_0x6c44b7>=0x0;_0x6c44b7--)(_0x45bf3d=_0x532c8e[_0x6c44b7])&&(_0x17dcd5=_0x45bf3d(_0x17dcd5)||_0x17dcd5);return _0x17dcd5;},_0x54130c=(_0x603883,_0x3ceb1f)=>(_0x16d01a,_0x241ec2)=>_0x3ceb1f(_0x16d01a,_0x241ec2,_0x603883);_0x190415['SheetsPivotRPCService']=class extends _0x493c7d[_0x566c44(0x1ef)]{constructor(_0x489765,_0x2feedb){const _0x4af74a=_0x566c44;super(),_0x3a454e(this,_0x4af74a(0x393),new Map()),(this[_0x4af74a(0x93)]=_0x489765,this[_0x4af74a(0x30a)]=_0x2feedb);}['handleAsyncResponse'](_0x8c7a61){const _0x13295e=_0x566c44,{version:_0x32fc91}=_0x8c7a61,_0x6391=this[_0x13295e(0x393)]['get'](_0x32fc91);_0x6391&&(_0x6391(_0x8c7a61),this[_0x13295e(0x393)][_0x13295e(0x15f)](_0x32fc91));}[_0x566c44(0x29f)](_0x51422d){return new Promise((_0x126d25,_0x111a2d)=>{const _0x3df78c=_0x5ae0,_0x11394f=this['_generateUniqueVersion']();this[_0x3df78c(0x393)]['set'](_0x11394f,_0x126d25),this[_0x3df78c(0x30a)]['executeCommand'](_0x33cd84['id'],{'version':_0x11394f,..._0x51422d},{'onlyLocal':!0x0});});}[_0x566c44(0x229)](){const _0x56a099=_0x566c44;return Math['random']()[_0x56a099(0x15e)](0x24)[_0x56a099(0x386)](0x2,0x10);}},_0x190415['SheetsPivotRPCService']=_0x3c9d63([_0x54130c(0x0,_0x493c7d['Inject'](_0x493c7d[_0x566c44(0x1a5)])),_0x54130c(0x1,_0x493c7d[_0x566c44(0xc0)](_0x493c7d[_0x566c44(0x1a0)]))],_0x190415['SheetsPivotRPCService']);const _0x224351={'id':'sheet.mutation.add-group-collection','type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'handler':(_0x2c3cf9,_0x5741d1)=>{const _0x26bdc3=_0x566c44;if(!_0x5741d1)return!0x1;if(!!_0x2c3cf9[_0x26bdc3(0x9f)](_0x493c7d[_0x26bdc3(0xa7)])[_0x26bdc3(0x290)](_0xb9a66d))return!0x0;const {pivotTableId:_0x4811bc,fieldJSON:_0x2c4d23,unitId:_0x33541c,subUnitId:_0x3be9b4}=_0x5741d1,_0x222aee=_0x38bc74[_0x26bdc3(0x1a2)][_0x26bdc3(0x244)](_0x2c4d23);if(!_0x222aee)return!0x1;const _0x14bc16=_0x2c3cf9['get'](_0x190415[_0x26bdc3(0x324)]),_0x5109bb=_0x14bc16[_0x26bdc3(0x34c)](_0x33541c),_0x1091c4=_0x5109bb[_0x26bdc3(0x1e6)](_0x4811bc);_0x5109bb['addDataFieldWithoutUnitInfo'](_0x222aee),_0x1091c4[_0x26bdc3(0x353)](_0x222aee[_0x26bdc3(0x13f)](),_0x222aee[_0x26bdc3(0x279)]());const _0x61ee08=_0x1091c4[_0x26bdc3(0x15a)](_0x222aee[_0x26bdc3(0x2c5)]());_0x61ee08&&_0x222aee[_0x26bdc3(0xc3)](_0x61ee08);const _0xe6df11=_0x14bc16['getPivotTableConfig'](_0x33541c,_0x3be9b4,_0x4811bc);return _0x14bc16['addDirtyPivotTable']({'unitId':_0x33541c,'subUnitId':_0x3be9b4,'token':_0x4811bc,'type':_0x3e1445[_0x26bdc3(0x352)],'pivotConfig':_0xe6df11}),!0x0;}},_0x5bac82={'id':_0x566c44(0x2e6),'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x391)],'handler':(_0x4bcfd1,_0x45c6ee)=>{const _0x47fa8a=_0x566c44;if(!_0x45c6ee)return!0x1;if(!!_0x4bcfd1[_0x47fa8a(0x9f)](_0x493c7d[_0x47fa8a(0xa7)])[_0x47fa8a(0x290)](_0xb9a66d))return!0x0;const {pivotTableId:_0x2e996d,dataFieldId:_0x31773c,unitId:_0x11cf94,subUnitId:_0x50471a}=_0x45c6ee,_0x3a2d6f=_0x4bcfd1[_0x47fa8a(0x9f)](_0x190415['SheetsPivotDataSourceModel']),_0x162e8a=_0x3a2d6f[_0x47fa8a(0x34c)](_0x11cf94);_0x162e8a[_0x47fa8a(0x1e6)](_0x2e996d)[_0x47fa8a(0x243)](_0x31773c);let _0x3e244d=!0x0;for(const _0x2f6166 in _0x162e8a['collections'])if(_0x162e8a[_0x47fa8a(0x339)][_0x2f6166][_0x47fa8a(0x90)]()[_0x47fa8a(0x32d)](_0x31773c)){_0x3e244d=!0x1;break;}_0x3e244d&&_0x162e8a[_0x47fa8a(0x346)](_0x31773c);const _0x719723=_0x3a2d6f[_0x47fa8a(0x132)](_0x11cf94,_0x50471a,_0x2e996d);return _0x3a2d6f[_0x47fa8a(0x166)]({'unitId':_0x11cf94,'subUnitId':_0x50471a,'token':_0x2e996d,'type':_0x3e1445['Set'],'pivotConfig':_0x719723}),!0x0;}},_0x3946d1={'type':_0x493c7d['CommandType'][_0x566c44(0x17b)],'id':'sheet.command.add-pivot-field',async 'handler'(_0xcf335e,_0x187798){const _0x48f272=_0x566c44;if(!_0x187798)return!0x1;const _0x4ba749=_0xcf335e[_0x48f272(0x9f)](_0x493c7d['ICommandService']),_0x5528e6=_0xcf335e[_0x48f272(0x9f)](_0x190415[_0x48f272(0x388)]),_0x15d6a4=_0xcf335e[_0x48f272(0x9f)](_0x493c7d[_0x48f272(0xa1)]),{pivotTableId:_0x2ca16d,dataFieldId:_0x3a6b12,fieldArea:_0x2552e8,index:_0x381c89,unitId:_0x4c2800,subUnitId:_0x2be462}=_0x187798,_0x4c374a=(await _0x5528e6[_0x48f272(0x29f)]({'unitId':_0x4c2800,'subUnitId':_0x2be462,'pivotTableId':_0x2ca16d,'params':{'type':_0x223f7f['AddPivotField'],'addPivotField':{'dataFieldId':_0x3a6b12,'fieldArea':_0x2552e8,'index':_0x381c89}}}))[_0x48f272(0x215)]['addPivotField'];if(!_0x4c374a)return!0x1;const {view:_0x41652b,changesets:_0x4b4a3,isEmpty:_0x2eddfe,pivotTableConfig:_0x5be573,shouldBeAddedGroupJSON:_0x479131}=_0x4c374a,_0x352928=_0x5be573[_0x48f272(0x12d)],_0x1d1c3a=new _0x38bc74[(_0x48f272(0x1c1))]();_0x1d1c3a[_0x48f272(0x34e)](_0x41652b);const _0x34b7f6={'cellInfo':_0x352928,'view':_0x1d1c3a,'isEmpty':_0x2eddfe};if(!await _0xcf335e[_0x48f272(0x9f)](_0x190415['SheetsPivotTableService'])[_0x48f272(0x2f7)][_0x48f272(0x344)](_0x29c52c)(!0x0,_0x34b7f6))return!0x1;const _0x3993b9=_0x14be64(_0xcf335e,_0x1d1c3a,_0x352928,_0x2eddfe),_0x51eb0c=_0x39ef34(_0xcf335e,_0x34b7f6),{undos:_0x4578d2,redos:_0x18e1e3}=_0x52b608(_0x4ba749,{'pivotTableId':_0x2ca16d,'unitId':_0x4c2800,'subUnitId':_0x2be462},_0x4b4a3);return _0x479131&&(_0x18e1e3[_0x48f272(0x1a6)]({'id':_0x224351['id'],'params':{'pivotTableId':_0x2ca16d,'fieldJSON':_0x479131,'unitId':_0x4c2800,'subUnitId':_0x2be462}}),_0x4578d2[_0x48f272(0xb7)]({'id':_0x5bac82['id'],'params':{'pivotTableId':_0x2ca16d,'dataFieldId':_0x479131['id'],'unitId':_0x4c2800,'subUnitId':_0x2be462}})),_0x493c7d[_0x48f272(0x2f8)]([..._0x3993b9[_0x48f272(0x1cb)],..._0x51eb0c[_0x48f272(0x1cb)],..._0x18e1e3],_0x4ba749),_0x15d6a4[_0x48f272(0xb0)]({'unitID':_0x4c2800,'redoMutations':[..._0x3993b9[_0x48f272(0x1cb)],..._0x51eb0c[_0x48f272(0x1cb)],..._0x18e1e3],'undoMutations':[..._0x3993b9[_0x48f272(0x97)],..._0x51eb0c[_0x48f272(0x97)],..._0x4578d2]}),!0x0;}},_0x29caaa={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x17b)],'id':'sheet.command.add-pivot-table-with-config',async 'handler'(_0x3208a6,_0x198a08){const _0x142d9e=_0x566c44;if(!_0x198a08)return!0x1;const {sourceDataInfo:_0x417e1c,pivotTableConfig:_0x22f75e}=_0x198a08;if(!_0x417e1c||!_0x22f75e)return!0x1;const {unitId:_0x1f4443,subUnitId:_0x4f92cd,range:_0x165900}=_0x417e1c,_0xa28902=_0x3208a6[_0x142d9e(0x9f)](_0x493c7d['IUniverInstanceService']),_0x3571a7=_0x3208a6['get'](_0x190415[_0x142d9e(0x388)]),_0x33496a=_0x3208a6[_0x142d9e(0x9f)](_0x493c7d[_0x142d9e(0x2e7)]),_0x218e22=_0x3208a6[_0x142d9e(0x9f)](_0x493c7d['ICommandService']),_0x291a24=_0xa28902['getUnit'](_0x1f4443);if(!_0x291a24)return!0x1;const _0x35c2e8=_0x291a24[_0x142d9e(0x17e)](_0x4f92cd);if(!_0x35c2e8)return!0x1;const _0x15adf7=_0x38bc74[_0x142d9e(0x2cd)](0x8),_0x216cd0=_0x165900||{'startRow':0x0,'startColumn':0x0,'endRow':_0x35c2e8[_0x142d9e(0x121)]()-0x1,'endColumn':_0x35c2e8[_0x142d9e(0x139)]()-0x1};_0x216cd0[_0x142d9e(0x2be)]=_0x493c7d[_0x142d9e(0x31f)]['NORMAL'];const _0x5997f5=(await _0x3571a7[_0x142d9e(0x29f)]({'unitId':_0x1f4443,'subUnitId':_0x4f92cd,'pivotTableId':_0x15adf7,'params':{'type':_0x223f7f[_0x142d9e(0x2b2)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x1f4443,'sheetName':_0x35c2e8[_0x142d9e(0x279)](),'subUnitId':_0x4f92cd,'range':_0x216cd0},'pivotTableId':_0x15adf7,'pivotTableIndexConfig':_0x22f75e}}}))[_0x142d9e(0x215)]['addPivotTableWithConfig'];if(!_0x5997f5)return!0x1;const {isEmpty:_0x30cd6f,fieldsConfig:_0x3b2a28,collectionConfig:_0x400b05,changesets:_0x5bf14f}=_0x5997f5,_0x537495=_0x291a24[_0x142d9e(0x25f)]()['length'],_0x5b5aca=_0x493c7d[_0x142d9e(0xc2)]({'rowCount':_0x35c2e8[_0x142d9e(0x121)]()-0x1,'columnCount':_0x35c2e8[_0x142d9e(0x139)]()-0x1});_0x5b5aca['id']=_0x493c7d[_0x142d9e(0x296)](),_0x5b5aca[_0x142d9e(0x180)]=_0x291a24[_0x142d9e(0x33b)](''+_0x33496a['t'](_0x142d9e(0xc5)));const _0xa65943={'index':_0x537495,'sheet':_0x5b5aca,'unitId':_0x1f4443},{redos:_0x5a43a8}=_0x52b608(_0x218e22,{'pivotTableId':_0x15adf7,'unitId':_0x1f4443,'subUnitId':_0x5b5aca['id']},_0x5bf14f),_0x8721a7=[{'id':_0x188291['InsertSheetCommand']['id'],'params':_0xa65943},{'id':_0x20bce1['id'],'params':{'unitId':_0x1f4443,'subUnitId':_0x5b5aca['id'],'pivotTableId':_0x15adf7,'pivotTableConfig':{'isEmpty':_0x30cd6f,'fieldsConfig':_0x3b2a28,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x1f4443,'subUnitId':_0x5b5aca['id']},'sourceRangeInfo':{'subUnitId':_0x4f92cd,'unitId':_0x1f4443,'range':_0x216cd0,'sheetName':_0x35c2e8[_0x142d9e(0x279)]()}},'collectionConfig':_0x400b05}},..._0x5a43a8];return _0x493c7d[_0x142d9e(0x2f8)](_0x8721a7,_0x218e22),!0x0;}},_0x1b6683={'type':_0x493c7d[_0x566c44(0x327)]['COMMAND'],'id':_0x566c44(0x312),async 'handler'(_0x52b1d1,_0x3ee010){const _0x4fcfea=_0x566c44;var _0x530c6f,_0x5847f8;const _0x125aab=_0x52b1d1['get'](_0x493c7d[_0x4fcfea(0x1a0)]),_0x1be326=_0x52b1d1[_0x4fcfea(0x9f)](_0x493c7d[_0x4fcfea(0x356)]),_0x3ac2cc=_0x52b1d1['get'](_0x493c7d[_0x4fcfea(0x2e7)]),_0x110069=_0x52b1d1[_0x4fcfea(0x9f)](_0x190415[_0x4fcfea(0x388)]),_0x1aaa4a=_0x52b1d1[_0x4fcfea(0x9f)](_0x493c7d[_0x4fcfea(0xa1)]),_0x7dceb3=_0x52b1d1[_0x4fcfea(0x9f)](_0x190415[_0x4fcfea(0x142)]),_0x54570e=_0x52b1d1['get'](_0x493c7d[_0x4fcfea(0xa7)]);if(!_0x3ee010)return!0x1;const {pivotTableConfig:_0x1e9fc4,positionType:_0x43516f}=_0x3ee010,{targetCellInfo:_0x5a5f24,sourceRangeInfo:_0x1dcdb8}=_0x1e9fc4,{unitId:_0x70a184,subUnitId:_0x5865d5}=_0x5a5f24,_0x5a17e3=_0x1be326['getUnit'](_0x70a184);if(!_0x5a17e3)return!0x1;let _0x4359f4=0x0;_0x5a17e3[_0x4fcfea(0x25f)]()[_0x4fcfea(0xe5)](_0x1518a0=>{const _0x384a73=_0x4fcfea;var _0x41df48,_0x324fb3;_0x4359f4+=(_0x324fb3=(_0x41df48=_0x7dceb3[_0x384a73(0x1ab)](_0x70a184,_0x1518a0['getSheetId']()))==null?void 0x0:_0x41df48[_0x384a73(0x399)])!=null?_0x324fb3:0x0;});const _0x541d14=(_0x530c6f=_0x54570e[_0x4fcfea(0x290)](_0x17beef[_0x4fcfea(0x80)]))!=null?_0x530c6f:{},{ls:_0x33a4bf,pbk:_0x4dfcd5}=_0x541d14;if(!_0x2cafe8(_0x33a4bf,_0x4dfcd5))return!0x1;const _0x4596d3=_0x5bc9e8(_0x4302a8,_0x33a4bf,_0x4dfcd5)[_0x4fcfea(0x1ac)];if(_0x4359f4>=_0x4596d3)return!0x1;const _0x30c483=_0x3ee010[_0x4fcfea(0x140)]||_0x38bc74[_0x4fcfea(0x2cd)](0x8),_0x398553=(await _0x110069[_0x4fcfea(0x29f)]({'unitId':_0x70a184,'subUnitId':_0x5865d5,'pivotTableId':_0x30c483,'params':{'type':_0x223f7f[_0x4fcfea(0x14c)],'addPivotTable':{'sourceRangeInfo':_0x1dcdb8,'pivotTableId':_0x30c483}}}))[_0x4fcfea(0x215)][_0x4fcfea(0x368)];if(!_0x398553)return!0x1;const {view:_0x5bc0c5,isEmpty:_0x3d0781,fieldsConfig:_0x3529d2,collectionConfig:_0x368282}=_0x398553,_0x3f2b62=[],_0x5bd390=[];if(_0x43516f===_0x34f04a[_0x4fcfea(0x2c6)]){const _0x4d4299=_0x5a17e3['getSheets']()[_0x4fcfea(0x13c)],_0x38ee81=_0x493c7d[_0x4fcfea(0xc2)]({});_0x38ee81['id']=_0x1e9fc4[_0x4fcfea(0x12d)][_0x4fcfea(0x32f)],_0x38ee81[_0x4fcfea(0x180)]=(_0x5847f8=_0x1e9fc4[_0x4fcfea(0x12d)][_0x4fcfea(0x378)])!=null?_0x5847f8:_0x5a17e3[_0x4fcfea(0x33b)](''+_0x3ac2cc['t'](_0x4fcfea(0xc5)));const _0x509e7f={'index':_0x4d4299,'sheet':_0x38ee81,'unitId':_0x70a184},_0x492460=_0x188291[_0x4fcfea(0x99)](_0x52b1d1,_0x509e7f);_0x3f2b62[_0x4fcfea(0xb7)]({'id':_0x188291['RemoveSheetMutation']['id'],'params':_0x492460}),_0x5bd390[_0x4fcfea(0xb7)]({'id':_0x188291[_0x4fcfea(0x2af)]['id'],'params':_0x509e7f});}else{if(!_0x5a17e3[_0x4fcfea(0x17e)](_0x5865d5))return!0x1;const _0x50e961=_0x14be64(_0x52b1d1,new _0x38bc74[(_0x4fcfea(0x1c1))](),_0x5a5f24,!0x0);_0x5bd390[_0x4fcfea(0xb7)](..._0x50e961[_0x4fcfea(0x1cb)]),_0x3f2b62[_0x4fcfea(0xb7)](..._0x50e961[_0x4fcfea(0x97)]);const _0x8a06fd={'cellInfo':_0x5a5f24,'view':_0x5bc0c5,'isEmpty':_0x3d0781};if(!await _0x52b1d1['get'](_0x190415['SheetsPivotTableService'])[_0x4fcfea(0x2f7)][_0x4fcfea(0x344)](_0x29c52c)(!0x0,_0x8a06fd))return!0x1;const _0x3c0a25=_0x39ef34(_0x52b1d1,_0x8a06fd);_0x5bd390[_0x4fcfea(0xb7)](..._0x3c0a25['redos']),_0x3f2b62[_0x4fcfea(0xb7)](..._0x3c0a25['undos']);}return _0x5bd390[_0x4fcfea(0xb7)]({'id':_0x20bce1['id'],'params':{'unitId':_0x5a5f24[_0x4fcfea(0x35b)],'subUnitId':_0x5a5f24['subUnitId'],'pivotTableId':_0x30c483,'pivotTableConfig':{'targetCellInfo':_0x5a5f24,'sourceRangeInfo':_0x1dcdb8,'fieldsConfig':_0x3529d2},'collectionConfig':_0x368282}}),_0x3f2b62[_0x4fcfea(0x1a6)]({'id':_0x20bb2b['id'],'params':{'unitId':_0x70a184,'subUnitId':_0x5865d5,'pivotTableId':_0x30c483}}),_0x493c7d['sequenceExecute'](_0x5bd390,_0x125aab)&&_0x1aaa4a[_0x4fcfea(0xb0)]({'unitID':_0x70a184,'undoMutations':_0x3f2b62,'redoMutations':_0x5bd390}),!0x0;}},_0x434644={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x17b)],'id':'sheet.command.move-pivot-field',async 'handler'(_0x256d58,_0x13fde){const _0x47d59b=_0x566c44;if(!_0x13fde)return!0x1;const _0x292afb=_0x256d58['get'](_0x493c7d['ICommandService']),_0x2ea572=_0x256d58[_0x47d59b(0x9f)](_0x190415[_0x47d59b(0x388)]),_0x267602=_0x256d58[_0x47d59b(0x9f)](_0x493c7d[_0x47d59b(0xa1)]),{pivotTableId:_0x183323,fieldId:_0x12bba6,area:_0xbe65a5,index:_0x167433,unitId:_0x232e85,subUnitId:_0x292752}=_0x13fde,_0x15ca97=(await _0x2ea572[_0x47d59b(0x29f)]({'unitId':_0x232e85,'subUnitId':_0x292752,'pivotTableId':_0x183323,'params':{'type':_0x223f7f[_0x47d59b(0x2d2)],'movePivotField':{'fieldId':_0x12bba6,'area':_0xbe65a5,'index':_0x167433}}}))[_0x47d59b(0x215)][_0x47d59b(0xee)];if(!_0x15ca97)return!0x1;const {changesets:_0x2ec844,view:_0x1e9167,isEmpty:_0x253b55,pivotTableConfig:_0x2bfe83}=_0x15ca97,_0x2ae737=_0x2bfe83[_0x47d59b(0x12d)],_0x2d2d2e=new _0x38bc74[(_0x47d59b(0x1c1))]();_0x2d2d2e[_0x47d59b(0x34e)](_0x1e9167);const _0x135af7={'cellInfo':_0x2ae737,'view':_0x2d2d2e,'isEmpty':_0x253b55};if(!await _0x256d58[_0x47d59b(0x9f)](_0x190415[_0x47d59b(0x10c)])['asyncInterceptor'][_0x47d59b(0x344)](_0x29c52c)(!0x0,_0x135af7))return!0x1;const _0x5174c6=_0x14be64(_0x256d58,_0x2d2d2e,_0x2ae737,_0x253b55),_0x4f0f76=_0x39ef34(_0x256d58,_0x135af7),{redos:_0x2e49aa,undos:_0x597c17}=_0x52b608(_0x292afb,{'pivotTableId':_0x183323,'unitId':_0x232e85,'subUnitId':_0x292752},_0x2ec844);return _0x493c7d['sequenceExecute']([..._0x5174c6['redos'],..._0x4f0f76[_0x47d59b(0x1cb)],..._0x2e49aa],_0x292afb),_0x267602['pushUndoRedo']({'unitID':_0x232e85,'redoMutations':[..._0x5174c6[_0x47d59b(0x1cb)],..._0x4f0f76[_0x47d59b(0x1cb)],..._0x2e49aa],'undoMutations':[..._0x5174c6[_0x47d59b(0x97)],..._0x4f0f76[_0x47d59b(0x97)],..._0x597c17]}),!0x0;}},_0x4e47b0={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x17b)],'id':_0x566c44(0x95),async 'handler'(_0x3f50f2,_0x297ba3){const _0x12f2a6=_0x566c44;var _0x18f9ba;if(!_0x297ba3)return!0x1;const _0x111516=_0x3f50f2['get'](_0x493c7d['IUniverInstanceService']),_0x37e2c7=_0x188291[_0x12f2a6(0x10e)](_0x111516);if(!_0x37e2c7)return!0x1;const {unitId:_0x32e974,subUnitId:_0x390716,workbook:_0x33bb6a}=_0x37e2c7,{row:_0x142b73,col:_0x1f9901}=_0x297ba3,_0x4c9a76=_0x3f50f2['get'](_0x190415[_0x12f2a6(0x2e1)]),_0x2cd15=_0x4c9a76['getPivotTableIdByCell'](_0x32e974,_0x390716,_0x142b73,_0x1f9901);if(!_0x2cd15)return!0x1;const _0x352385=(_0x18f9ba=_0x4c9a76[_0x12f2a6(0x310)](_0x32e974,_0x390716,_0x2cd15))==null?void 0x0:_0x18f9ba[_0x12f2a6(0x23a)];if(!_0x352385)return!0x1;const _0x470f9a=_0x3f50f2[_0x12f2a6(0x9f)](_0x190415['SheetsPivotTableConfigModel'])[_0x12f2a6(0x132)](_0x32e974,_0x390716,_0x2cd15);if(!_0x470f9a)return!0x1;const {rowInfo:_0x43d129,colInfo:_0x10901b}=_0x352385,_0x194f1c=_0x43d129[_0x142b73][_0x12f2a6(0x22b)],_0x435270=_0x10901b[_0x1f9901][_0x12f2a6(0x22b)],_0x2f7c74=_0x43d129[_0x142b73][_0x12f2a6(0x25d)],_0x49b9ad=_0x10901b[_0x1f9901][_0x12f2a6(0x25d)],_0x1f12d5=_0x194f1c[_0x12f2a6(0x2a6)](_0x435270),_0x3276a5=_0x470f9a[_0x12f2a6(0x2fc)]['rowFields'][_0x12f2a6(0x13e)](0x0,_0x2f7c74),_0x3bbe80=_0x470f9a[_0x12f2a6(0x2fc)][_0x12f2a6(0xdc)]['slice'](0x0,_0x49b9ad),_0x4af9df=_0x3276a5['concat'](_0x3bbe80),_0x2f274e=_0x1f12d5[_0x12f2a6(0x1c9)]((_0x109d0d,_0x2dae4a)=>[_0x109d0d,_0x4af9df[_0x2dae4a]]),_0x49644d=(await _0x3f50f2[_0x12f2a6(0x9f)](_0x190415[_0x12f2a6(0x388)])[_0x12f2a6(0x29f)]({'unitId':_0x32e974,'subUnitId':_0x390716,'pivotTableId':_0x2cd15,'params':{'type':_0x223f7f[_0x12f2a6(0x2ce)],'drillDown':{'tuple':_0x2f274e}}}))[_0x12f2a6(0x215)][_0x12f2a6(0x384)];if(!_0x49644d)return!0x1;const {indexes:_0x1e0848,range:_0x3cbae0,sourceUnitId:_0x1ef8b8,sourceSubUnitId:_0xff637e,formatMap:_0x5450af}=_0x49644d,{startRow:_0x21c289,endRow:_0x5f21c1,startColumn:_0x6e5fe3,endColumn:_0x55e63c}=_0x3cbae0,_0x5df758=new _0x493c7d[(_0x12f2a6(0x335))](),_0x515a21=_0x5f21c1-_0x21c289,_0xb61dac=_0x55e63c-_0x6e5fe3,_0x4b2d80={},_0x199cb4=_0x188291[_0x12f2a6(0x10e)](_0x111516,{'unitId':_0x1ef8b8,'subUnitId':_0xff637e});if(!_0x199cb4)return!0x1;const _0x4ab8af=_0x487c1e[_0x12f2a6(0xef)],_0x58f879=_0x487c1e[_0x12f2a6(0x234)],_0x2620c0=_0x487c1e[_0x12f2a6(0x234)],_0x59fae7=_0x33bb6a[_0x12f2a6(0x182)]()[_0x12f2a6(0x164)](_0x4ab8af),_0x54e4f1=_0x33bb6a[_0x12f2a6(0x182)]()['setValue'](_0x58f879),_0x26142f=_0x33bb6a[_0x12f2a6(0x182)]()['setValue'](_0x2620c0),{worksheet:_0x3f3666}=_0x199cb4;let _0x59d14a=0x0;const _0x381461=0x1;_0x1e0848[_0x12f2a6(0xe5)](_0x43f9a5=>{const _0x18570e=_0x12f2a6;for(let _0x2884e8=0x0;_0x2884e8<=_0x55e63c-_0x6e5fe3;_0x2884e8++)_0x5df758[_0x18570e(0x164)](_0x59d14a,_0x2884e8,_0x3f3666[_0x18570e(0x1d5)](_0x43f9a5+_0x3cbae0[_0x18570e(0x1cf)]+_0x381461,_0x2884e8));_0x59d14a++;});for(let _0x58a8ca=_0x6e5fe3;_0x58a8ca<=_0x55e63c;_0x58a8ca++){const _0x2bf78a=_0x3f3666['getCellRaw'](_0x21c289,_0x58a8ca);_0x4b2d80[_0x21c289]||(_0x4b2d80[_0x21c289]={}),_0x4b2d80[_0x21c289][_0x58a8ca]={..._0x2bf78a,'s':_0x59fae7};}let _0x3a4d40=0x1;const _0x52e8f5={},_0x54c93b={};_0x5df758[_0x12f2a6(0x1e5)]((_0xa3fbb2,_0x26b0ec)=>{const _0x55e704=_0x12f2a6;_0x26b0ec[_0x55e704(0xe5)](_0x2d1db4=>{const _0x490237=_0x55e704,_0x45472e=_0x5df758[_0x490237(0x276)](_0xa3fbb2,_0x2d1db4);if(_0x4b2d80[_0x3a4d40]||(_0x4b2d80[_0x3a4d40]={}),_0x4b2d80[_0x3a4d40][_0x2d1db4]={..._0x45472e,'s':_0x3a4d40%0x2===0x0?_0x26142f:_0x54e4f1},_0x5450af[_0x2d1db4]&&_0xa3fbb2>=0x0){const _0x496437=_0x3a4d40%0x2===0x0;let _0x4c7bb6=_0x496437?_0x54c93b[_0x2d1db4]:_0x52e8f5[_0x2d1db4];_0x4c7bb6||(_0x4c7bb6=_0x33bb6a[_0x490237(0x182)]()[_0x490237(0x164)]({..._0x496437?_0x2620c0:_0x58f879,'n':{'pattern':_0x5450af[_0x2d1db4]}}),_0x496437?_0x54c93b[_0x2d1db4]=_0x4c7bb6:_0x52e8f5[_0x2d1db4]=_0x4c7bb6),_0x4b2d80[_0x3a4d40][_0x2d1db4]['s']=_0x4c7bb6;}}),_0x3a4d40++;});const _0x2ae26d=new _0x493c7d[(_0x12f2a6(0x335))](_0x4b2d80),_0x204c51={};_0x2ae26d[_0x12f2a6(0x1e3)]((_0x4942a1,_0x8af2ce,_0x18db4e)=>{_0x204c51[_0x4942a1]||(_0x204c51[_0x4942a1]={}),_0x204c51[_0x4942a1][_0x8af2ce]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x2df4f5=[],_0x52a1d9=[],_0x3c6249=_0x33bb6a['getSheets']()[_0x12f2a6(0x13c)],_0x5c5e9b=_0x493c7d[_0x12f2a6(0xc2)]({'rowCount':Math['max'](_0x493c7d[_0x12f2a6(0xe8)],_0x515a21+0xa),'columnCount':Math[_0x12f2a6(0x10f)](_0x493c7d[_0x12f2a6(0xe7)],_0xb61dac+0x5)}),_0x4c42cf=_0x3f50f2[_0x12f2a6(0x9f)](_0x493c7d[_0x12f2a6(0x2e7)]);_0x5c5e9b['id']=_0x493c7d['generateRandomId'](),_0x5c5e9b[_0x12f2a6(0x180)]=_0x33bb6a['generateNewSheetName'](''+_0x4c42cf['t'](_0x12f2a6(0xc5)));const _0x268e03={'index':_0x3c6249,'sheet':_0x5c5e9b,'unitId':_0x32e974},_0x51f393=_0x188291['InsertSheetUndoMutationFactory'](_0x3f50f2,_0x268e03);_0x52a1d9[_0x12f2a6(0xb7)]({'id':_0x188291[_0x12f2a6(0x2af)]['id'],'params':_0x268e03}),_0x2df4f5[_0x12f2a6(0xb7)]({'id':_0x188291['RemoveSheetMutation']['id'],'params':_0x51f393}),_0x52a1d9[_0x12f2a6(0xb7)]({'id':_0x188291[_0x12f2a6(0x2ca)]['id'],'params':{'unitId':_0x32e974,'subUnitId':_0x5c5e9b['id'],'cellValue':_0x4b2d80}}),_0x2df4f5[_0x12f2a6(0x1a6)]({'id':_0x188291[_0x12f2a6(0x2ca)]['id'],'params':{'unitId':_0x32e974,'subUnitId':_0x5c5e9b['id'],'cellValue':_0x204c51}});const _0x411917={'startRow':0x0,'startColumn':0x0,'endRow':_0x3a4d40-0x1,'endColumn':_0x55e63c};_0x52a1d9[_0x12f2a6(0xb7)]({'id':_0x31168e[_0x12f2a6(0xfa)]['id'],'params':{'unitId':_0x32e974,'subUnitId':_0x5c5e9b['id'],'range':_0x411917}}),_0x2df4f5[_0x12f2a6(0x1a6)]({'id':_0x31168e[_0x12f2a6(0x225)]['id'],'params':{'unitId':_0x32e974,'subUnitId':_0x5c5e9b['id']}});const _0x46ac32=_0x3f50f2[_0x12f2a6(0x9f)](_0x493c7d[_0x12f2a6(0x1a0)]);return _0x493c7d[_0x12f2a6(0x2f8)](_0x52a1d9,_0x46ac32)&&_0x3f50f2[_0x12f2a6(0x9f)](_0x493c7d[_0x12f2a6(0xa1)])[_0x12f2a6(0xb0)]({'unitID':_0x32e974,'undoMutations':_0x2df4f5,'redoMutations':_0x52a1d9}),!0x0;}},_0x1a9d27={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x17b)],'id':_0x566c44(0x145),async 'handler'(_0x4be908,_0x2be654){const _0x26abc4=_0x566c44;if(!_0x2be654)return!0x1;const _0x4c143b=_0x4be908['get'](_0x493c7d[_0x26abc4(0x1a0)]),_0x5505ac=_0x4be908['get'](_0x190415[_0x26abc4(0x388)]),_0x411247=_0x4be908['get'](_0x493c7d[_0x26abc4(0xa1)]),{pivotTableId:_0x58086e,fieldIds:_0x25bc0a,unitId:_0x1cd74a,subUnitId:_0x2f1adc}=_0x2be654,_0x495263=(await _0x5505ac[_0x26abc4(0x29f)]({'unitId':_0x1cd74a,'subUnitId':_0x2f1adc,'pivotTableId':_0x58086e,'params':{'type':_0x223f7f[_0x26abc4(0x1a8)],'removePivotField':{'fieldIds':_0x25bc0a}}}))[_0x26abc4(0x215)][_0x26abc4(0x2aa)];if(!_0x495263)return!0x1;const {view:_0x17a3cf,changesets:_0x5cef00,isEmpty:_0x31c82f,pivotTableConfig:_0x2d81ea}=_0x495263,_0x110970=_0x2d81ea[_0x26abc4(0x12d)],_0x4572d7=new _0x38bc74[(_0x26abc4(0x1c1))]();_0x4572d7['formJSON'](_0x17a3cf);const _0x284def={'cellInfo':_0x110970,'view':_0x4572d7,'isEmpty':_0x31c82f};if(!await _0x4be908[_0x26abc4(0x9f)](_0x190415[_0x26abc4(0x10c)])['asyncInterceptor'][_0x26abc4(0x344)](_0x29c52c)(!0x0,_0x284def))return!0x1;const _0x709f9f=_0x14be64(_0x4be908,_0x4572d7,_0x110970,_0x31c82f),_0x1e545b=_0x39ef34(_0x4be908,_0x284def),{redos:_0x225c12,undos:_0x201b1a}=_0x52b608(_0x4c143b,{'pivotTableId':_0x58086e,'unitId':_0x1cd74a,'subUnitId':_0x2f1adc},_0x5cef00);return _0x493c7d[_0x26abc4(0x2f8)]([..._0x709f9f[_0x26abc4(0x1cb)],..._0x1e545b['redos'],..._0x225c12],_0x4c143b),_0x411247[_0x26abc4(0xb0)]({'unitID':_0x1cd74a,'redoMutations':[..._0x709f9f[_0x26abc4(0x1cb)],..._0x1e545b[_0x26abc4(0x1cb)],..._0x225c12],'undoMutations':[..._0x709f9f[_0x26abc4(0x97)],..._0x1e545b[_0x26abc4(0x97)],..._0x201b1a]}),!0x0;}},_0x39e029={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x17b)],'id':_0x566c44(0x286),async 'handler'(_0x292af7,_0x591cba){const _0x4c1669=_0x566c44;var _0x22d6c7;const _0xe7f674=_0x292af7[_0x4c1669(0x9f)](_0x493c7d[_0x4c1669(0x1a0)]),_0x4840d2=_0x292af7[_0x4c1669(0x9f)](_0x190415['SheetsPivotRPCService']),_0x1a2fb3=_0x292af7[_0x4c1669(0x9f)](_0x190415[_0x4c1669(0x2e1)]),_0x655da=_0x292af7[_0x4c1669(0x9f)](_0x493c7d[_0x4c1669(0x356)]),_0x39b3cb=_0x292af7[_0x4c1669(0x9f)](_0x493c7d[_0x4c1669(0xa1)]);if(!_0x591cba)return!0x1;const {unitId:_0x22e75b,subUnitId:_0x3b2d63,row:_0x2535c1,col:_0x4df5ae,collapse:_0x23f674}=_0x591cba,_0x46a157=_0x655da['getUnit'](_0x22e75b);if(!_0x46a157||!_0x46a157[_0x4c1669(0x17e)](_0x3b2d63))return!0x1;const _0x1f5f91=_0x1a2fb3[_0x4c1669(0x364)](_0x22e75b,_0x3b2d63,_0x2535c1,_0x4df5ae);if(!_0x1f5f91)return!0x1;const _0x534fc5=_0x1a2fb3[_0x4c1669(0x310)](_0x22e75b,_0x3b2d63,_0x1f5f91);if(!_0x534fc5)return!0x1;const _0xdcb99d=_0x493c7d[_0x4c1669(0x362)](_0x2535c1,_0x4df5ae),{rangesInfo:_0x17b4c9,areaInfo:_0x274480,headerMap:_0x387d51}=_0x534fc5;if(!_0x17b4c9||!_0x274480||!_0x387d51)return!0x1;const _0x3a1583=Object['keys'](_0x17b4c9)[_0x4c1669(0xb5)](_0x1c883e=>_0x17b4c9[_0x1c883e][_0x4c1669(0x38e)](_0x5e2860=>_0x493c7d['Rectangle']['contains'](_0x5e2860,_0xdcb99d)));let _0x529da2;_0x3a1583==='rowRanges'?_0x529da2=_0x387d51['rowHeaderMap'][_0x4df5ae]:_0x3a1583===_0x4c1669(0x19d)&&(_0x529da2=_0x387d51[_0x4c1669(0x349)][_0x2535c1]);const _0x1a98a3=_0x529da2==null?void 0x0:_0x529da2[_0x4c1669(0x170)],_0x393bfe=(_0x22d6c7=_0x1a2fb3['getPivotTableCellData'](_0x22e75b,_0x3b2d63,_0x2535c1,_0x4df5ae))==null?void 0x0:_0x22d6c7['v'];if(_0x393bfe==null||!_0x1f5f91||!_0x1a98a3)return!0x1;const _0x47544e=await _0x4840d2[_0x4c1669(0x29f)]({'unitId':_0x22e75b,'subUnitId':_0x3b2d63,'pivotTableId':_0x1f5f91,'params':{'type':_0x223f7f[_0x4c1669(0x10a)],'setPivotCollapse':{'tableFieldId':_0x1a98a3,'collapse':_0x23f674,'item':_0x393bfe}}}),_0x1aedf2=_0x47544e==null?void 0x0:_0x47544e[_0x4c1669(0x215)][_0x4c1669(0x189)];if(!_0x1aedf2)return!0x1;const {view:_0xc08b0f,pivotTableConfig:_0x301175,isEmpty:_0x2ca98d,changesets:_0x2a4547}=_0x1aedf2,_0xc2ea20=new _0x38bc74[(_0x4c1669(0x1c1))]();_0xc2ea20[_0x4c1669(0x34e)](_0xc08b0f);const _0x5e1fd7=_0x301175[_0x4c1669(0x12d)],_0x448fa9={'cellInfo':_0x5e1fd7,'view':_0xc2ea20,'isEmpty':_0x2ca98d};if(!await _0x292af7[_0x4c1669(0x9f)](_0x190415[_0x4c1669(0x10c)])[_0x4c1669(0x2f7)][_0x4c1669(0x344)](_0x29c52c)(!0x0,_0x448fa9))return!0x1;const _0x146d9c=_0x14be64(_0x292af7,_0xc2ea20,_0x5e1fd7,_0x2ca98d),_0x1b789d=_0x39ef34(_0x292af7,_0x448fa9),{redos:_0x208807,undos:_0x2e006b}=_0x52b608(_0xe7f674,{'pivotTableId':_0x1f5f91,'unitId':_0x22e75b,'subUnitId':_0x3b2d63},_0x2a4547);return _0x493c7d['sequenceExecute']([..._0x146d9c[_0x4c1669(0x1cb)],..._0x1b789d[_0x4c1669(0x1cb)],..._0x208807],_0xe7f674),_0x39b3cb['pushUndoRedo']({'unitID':_0x22e75b,'redoMutations':[..._0x146d9c['redos'],..._0x1b789d['redos'],..._0x208807],'undoMutations':[..._0x146d9c['undos'],..._0x1b789d[_0x4c1669(0x97)],..._0x2e006b]}),!0x0;}},_0x866ee8={'type':_0x493c7d[_0x566c44(0x327)]['COMMAND'],'id':_0x566c44(0x38c),async 'handler'(_0x4aab32,_0x175414){const _0x5f5d2e=_0x566c44;if(!_0x175414)return!0x1;const _0x8e1c42=_0x4aab32[_0x5f5d2e(0x9f)](_0x493c7d[_0x5f5d2e(0x1a0)]),{pivotTableId:_0x560848,tableFieldId:_0x49f2d4,items:_0x1dc0e5,unitId:_0x103cdd,subUnitId:_0x173583,isAll:_0x4ba01b}=_0x175414,_0x4cb265=_0x4aab32['get'](_0x190415['SheetsPivotRPCService']),_0x244e0f=_0x4aab32['get'](_0x493c7d[_0x5f5d2e(0xa1)]),_0x583392=(await _0x4cb265['getPivotDisplayConfig']({'unitId':_0x103cdd,'subUnitId':_0x173583,'pivotTableId':_0x560848,'params':{'type':_0x223f7f[_0x5f5d2e(0x11b)],'setPivotFilter':{'tableFieldId':_0x49f2d4,'items':_0x1dc0e5,'isAll':_0x4ba01b}}}))[_0x5f5d2e(0x215)][_0x5f5d2e(0x1bd)];if(!_0x583392)return!0x1;const {changesets:_0xabbec9,pivotTableConfig:_0x199aec,isEmpty:_0x56ade8,view:_0x35f275}=_0x583392,_0x366a93=_0x199aec[_0x5f5d2e(0x12d)],_0xcba515=new _0x38bc74[(_0x5f5d2e(0x1c1))]();_0xcba515['formJSON'](_0x35f275);const _0x6b9467={'cellInfo':_0x366a93,'view':_0xcba515,'isEmpty':_0x56ade8};if(!await _0x4aab32[_0x5f5d2e(0x9f)](_0x190415[_0x5f5d2e(0x10c)])['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x29c52c)(!0x0,_0x6b9467))return!0x1;const _0x1fb047=_0x14be64(_0x4aab32,_0xcba515,_0x366a93,_0x56ade8),_0x456936=_0x39ef34(_0x4aab32,_0x6b9467),{undos:_0xf98fd,redos:_0xc65749}=_0x52b608(_0x8e1c42,{'pivotTableId':_0x560848,'unitId':_0x103cdd,'subUnitId':_0x173583},_0xabbec9);return _0x493c7d[_0x5f5d2e(0x2f8)]([..._0x1fb047[_0x5f5d2e(0x1cb)],..._0x456936[_0x5f5d2e(0x1cb)],..._0xc65749],_0x8e1c42),_0x244e0f['pushUndoRedo']({'unitID':_0x103cdd,'redoMutations':[..._0x1fb047[_0x5f5d2e(0x1cb)],..._0x456936['redos'],..._0xc65749],'undoMutations':[..._0x1fb047['undos'],..._0x456936[_0x5f5d2e(0x97)],..._0xf98fd]}),!0x0;}},_0x196307={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x17b)],'id':_0x566c44(0x1be),async 'handler'(_0x32486d,_0x26aa66){const _0x3e979f=_0x566c44;if(!_0x26aa66)return!0x1;const _0xe0cb8c=_0x32486d[_0x3e979f(0x9f)](_0x493c7d[_0x3e979f(0x1a0)]),_0x11e842=_0x32486d[_0x3e979f(0x9f)](_0x493c7d['IUndoRedoService']),_0x42033e=_0x32486d['get'](_0x190415[_0x3e979f(0x388)]),{info:_0x597c46,tableFieldId:_0x35da5a,pivotTableId:_0x55260c,unitId:_0x433127,subUnitId:_0x2c76b3}=_0x26aa66,_0x15ba82=(await _0x42033e[_0x3e979f(0x29f)]({'unitId':_0x433127,'subUnitId':_0x2c76b3,'pivotTableId':_0x55260c,'params':{'type':_0x223f7f[_0x3e979f(0x1cd)],'setPivotSort':{'tableFieldId':_0x35da5a,'info':_0x597c46}}}))['result']['setPivotSort'];if(!_0x15ba82)return!0x1;const {changesets:_0x3e591c}=_0x15ba82,{redos:_0x3a7580,undos:_0x5e27ca}=_0x52b608(_0xe0cb8c,{'pivotTableId':_0x55260c,'unitId':_0x433127,'subUnitId':_0x2c76b3},_0x3e591c);return _0x493c7d[_0x3e979f(0x2f8)](_0x3a7580,_0xe0cb8c),_0x11e842[_0x3e979f(0xb0)]({'unitID':_0x433127,'redoMutations':_0x3a7580,'undoMutations':_0x5e27ca}),!0x0;}},_0x52a0ca={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x17b)],'id':_0x566c44(0x255),async 'handler'(_0x819303,_0x42eafa){const _0x454848=_0x566c44;if(!_0x42eafa)return!0x1;const _0x463a6d=_0x819303['get'](_0x493c7d[_0x454848(0x1a0)]),_0x1f93bf=_0x819303[_0x454848(0x9f)](_0x493c7d[_0x454848(0xa1)]),_0x20a815=_0x819303[_0x454848(0x9f)](_0x190415[_0x454848(0x388)]),{displayName:_0x15a894,subtotalType:_0x3fce47,format:_0x5bad71,tableFieldId:_0x35cf3a,pivotTableId:_0x187409,unitId:_0x416566,subUnitId:_0x378f1a}=_0x42eafa,_0x586b9e=(await _0x20a815[_0x454848(0x29f)]({'unitId':_0x416566,'subUnitId':_0x378f1a,'pivotTableId':_0x187409,'params':{'type':_0x223f7f[_0x454848(0x37a)],'setPivotSetting':{'tableFieldId':_0x35cf3a,'displayName':_0x15a894,'subtotalType':_0x3fce47,'format':_0x5bad71}}}))[_0x454848(0x215)][_0x454848(0x373)];if(!_0x586b9e)return!0x1;const {changesets:_0x41c1ca,view:_0x5ac277,pivotTableConfig:_0x2bf122,isEmpty:_0x150b8d}=_0x586b9e,_0x22da66=_0x2bf122[_0x454848(0x12d)],_0x309fad=new _0x38bc74[(_0x454848(0x1c1))]();_0x309fad[_0x454848(0x34e)](_0x5ac277);const _0x4ae2d5={'cellInfo':_0x22da66,'view':_0x309fad,'isEmpty':_0x150b8d};if(!await _0x819303[_0x454848(0x9f)](_0x190415['SheetsPivotTableService'])[_0x454848(0x2f7)]['fetchThroughAsyncInterceptors'](_0x29c52c)(!0x0,_0x4ae2d5))return!0x1;const _0x32ce88=_0x14be64(_0x819303,_0x309fad,_0x22da66,_0x150b8d),_0x3cd90e=_0x39ef34(_0x819303,_0x4ae2d5),{undos:_0x3118e1,redos:_0x546487}=_0x52b608(_0x463a6d,{'pivotTableId':_0x187409,'unitId':_0x416566,'subUnitId':_0x378f1a},_0x41c1ca);return _0x493c7d['sequenceExecute']([..._0x32ce88[_0x454848(0x1cb)],..._0x3cd90e[_0x454848(0x1cb)],..._0x546487],_0x463a6d),_0x1f93bf[_0x454848(0xb0)]({'unitID':_0x416566,'redoMutations':[..._0x32ce88[_0x454848(0x1cb)],..._0x3cd90e[_0x454848(0x1cb)],..._0x546487],'undoMutations':[..._0x32ce88['undos'],..._0x3cd90e['undos'],..._0x3118e1]}),!0x0;}},_0x2e92cb={'type':_0x493c7d['CommandType']['COMMAND'],'id':_0x566c44(0x1b7),async 'handler'(_0x2639e6,_0xc4f514){const _0x111f09=_0x566c44,_0x33508b=_0x2639e6[_0x111f09(0x9f)](_0x493c7d[_0x111f09(0x1a0)]),_0x5562f7=_0x2639e6[_0x111f09(0x9f)](_0x190415['SheetsPivotRPCService']),_0x659c4f=_0x2639e6[_0x111f09(0x9f)](_0x493c7d[_0x111f09(0xa1)]);if(!_0xc4f514)return!0x1;const {token:_0x3a64c4,dataRangeInfo:_0x1141a2,unitId:_0x233393,subUnitId:_0x628047}=_0xc4f514,_0xaa29cd=[],_0x4789cc=[],_0x1931dd=(await _0x5562f7[_0x111f09(0x29f)]({'unitId':_0x233393,'subUnitId':_0x628047,'pivotTableId':_0x3a64c4,'params':{'type':_0x223f7f[_0x111f09(0x261)],'updatePivotSource':{'dataRangeInfo':_0x1141a2,'unitId':_0x233393,'subUnitId':_0x628047}}}))[_0x111f09(0x215)][_0x111f09(0x2d7)];if(!_0x1931dd)return!0x1;const {changesets:_0x5538a5,deleteIds:_0x133269,collectionConfig:_0x29aef7,oldCollectionConfig:_0x17bbe1,view:_0xbba4dc,isEmpty:_0x175c22,pivotTableConfig:_0x119118}=_0x1931dd;_0x4789cc[_0x111f09(0xb7)]({'id':_0x837734['id'],'params':{'pivotTableId':_0x3a64c4,'deleteIds':_0x133269,'collectionJSON':_0x29aef7,'dataRangeInfo':_0x1141a2,'unitId':_0x233393,'subUnitId':_0x628047}}),_0xaa29cd['unshift']({'id':_0x837734['id'],'params':{'pivotTableId':_0x3a64c4,'deleteIds':[],'collectionJSON':_0x17bbe1,'dataRangeInfo':_0x119118[_0x111f09(0x12a)],'unitId':_0x233393,'subUnitId':_0x628047}});const _0x1571f7=_0x119118[_0x111f09(0x12d)],_0x556e7a=new _0x38bc74[(_0x111f09(0x1c1))]();_0x556e7a[_0x111f09(0x34e)](_0xbba4dc);const _0x1a0b31={'cellInfo':_0x1571f7,'view':_0x556e7a,'isEmpty':_0x175c22};if(!await _0x2639e6[_0x111f09(0x9f)](_0x190415[_0x111f09(0x10c)])[_0x111f09(0x2f7)][_0x111f09(0x344)](_0x29c52c)(!0x0,_0x1a0b31))return!0x1;const _0x156394=_0x14be64(_0x2639e6,_0x556e7a,_0x1571f7,_0x175c22),_0x57292f=_0x39ef34(_0x2639e6,_0x1a0b31),{undos:_0x21903e,redos:_0x48f18a}=_0x52b608(_0x33508b,{'pivotTableId':_0x3a64c4,'unitId':_0x233393,'subUnitId':_0x628047},_0x5538a5);return _0x493c7d['sequenceExecute']([..._0x156394[_0x111f09(0x1cb)],..._0x57292f['redos'],..._0x4789cc,..._0x21903e],_0x33508b),_0x659c4f['pushUndoRedo']({'unitID':_0x233393,'redoMutations':[..._0x156394[_0x111f09(0x1cb)],..._0x57292f[_0x111f09(0x1cb)],..._0x4789cc,..._0x21903e],'undoMutations':[..._0x156394[_0x111f09(0x97)],..._0x57292f[_0x111f09(0x97)],..._0xaa29cd,..._0x48f18a]}),!0x0;}},_0x2cc102={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x17b)],'id':_0x566c44(0x2dc),async 'handler'(_0x1bab13,_0x46c471){const _0x33129b=_0x566c44;if(!_0x46c471)return!0x1;const _0x17cb3f=_0x1bab13[_0x33129b(0x9f)](_0x493c7d['ICommandService']),_0x589ea4=_0x1bab13[_0x33129b(0x9f)](_0x190415['SheetsPivotRPCService']),_0xcf67b4=_0x1bab13[_0x33129b(0x9f)](_0x493c7d[_0x33129b(0x356)]),_0x2fbbb2=_0x1bab13[_0x33129b(0x9f)](_0x493c7d[_0x33129b(0xa1)]),{pivotTableId:_0x154e09,position:_0x7de135,index:_0x5ebab9}=_0x46c471,_0x12a35b=_0x188291[_0x33129b(0x10e)](_0xcf67b4);if(!_0x12a35b)return!0x1;const {unitId:_0x1c5d8b,subUnitId:_0x247f32}=_0x12a35b,_0x8c6ca2=(await _0x589ea4[_0x33129b(0x29f)]({'unitId':_0x1c5d8b,'subUnitId':_0x247f32,'pivotTableId':_0x154e09,'params':{'type':_0x223f7f[_0x33129b(0x118)],'updateValuePosition':{'position':_0x7de135,'index':_0x5ebab9}}}))['result']['updateValuePosition'];if(!_0x8c6ca2)return!0x1;const {changesets:_0x3c324c,view:_0x2d9584,isEmpty:_0x5e1e60,pivotTableConfig:_0x58f07e}=_0x8c6ca2,_0x2128eb=_0x58f07e[_0x33129b(0x12d)],_0x305a7d=new _0x38bc74[(_0x33129b(0x1c1))]();_0x305a7d[_0x33129b(0x34e)](_0x2d9584);const _0x6a7bab=_0x1bab13[_0x33129b(0x9f)](_0x190415[_0x33129b(0x10c)]),_0x3d3ed6={'cellInfo':_0x2128eb,'view':_0x305a7d,'isEmpty':_0x5e1e60};if(!await _0x6a7bab[_0x33129b(0x2f7)]['fetchThroughAsyncInterceptors'](_0x29c52c)(!0x0,_0x3d3ed6))return!0x1;const _0x2bfcd3=_0x14be64(_0x1bab13,_0x305a7d,_0x2128eb,_0x5e1e60),_0x32c802=_0x39ef34(_0x1bab13,_0x3d3ed6),{undos:_0x10d53b,redos:_0x5dad05}=_0x52b608(_0x17cb3f,{'pivotTableId':_0x154e09,'unitId':_0x1c5d8b,'subUnitId':_0x247f32},_0x3c324c);return _0x493c7d[_0x33129b(0x2f8)]([..._0x2bfcd3[_0x33129b(0x1cb)],..._0x32c802[_0x33129b(0x1cb)],..._0x5dad05],_0x17cb3f),_0x2fbbb2[_0x33129b(0xb0)]({'unitID':_0x1c5d8b,'redoMutations':[..._0x2bfcd3[_0x33129b(0x1cb)],..._0x32c802['redos'],..._0x5dad05],'undoMutations':[..._0x2bfcd3[_0x33129b(0x97)],..._0x32c802[_0x33129b(0x97)],..._0x10d53b]}),!0x0;}},_0x244222={'type':_0x493c7d['CommandType'][_0x566c44(0x17b)],'id':_0x566c44(0x1d1),'handler':(_0x47b711,_0x2f5903)=>{const _0xad135e=_0x566c44,_0x18b5ae=_0x47b711[_0xad135e(0x9f)](_0x493c7d[_0xad135e(0x1a0)]),_0x2bb8ee=_0x47b711['get'](_0x493c7d[_0xad135e(0xa1)]),_0x1a461c=_0x47b711[_0xad135e(0x9f)](_0x190415[_0xad135e(0x142)]),_0x1e4035=_0x47b711[_0xad135e(0x9f)](_0x493c7d['IUniverInstanceService']);if(!_0x2f5903)return!0x1;const _0x2fb80a=_0x188291[_0xad135e(0x10e)](_0x1e4035);if(!_0x2fb80a)return!0x1;const {unitId:_0xd85527,subUnitId:_0x388b8a,workbook:_0x266766}=_0x2fb80a,_0xb5e7bd=_0x1a461c[_0xad135e(0x132)](_0x2f5903[_0xad135e(0x37d)][_0xad135e(0x35b)],_0x2f5903[_0xad135e(0x37d)][_0xad135e(0x32f)],_0x2f5903['pivotTableId']);if(!_0xb5e7bd)return!0x1;const _0x10eb46=_0x266766[_0xad135e(0x17e)](_0x2f5903[_0xad135e(0x12d)]['subUnitId']);if(!_0x10eb46)throw new Error(_0xad135e(0x86));const _0x4c1b97=_0x10eb46['getRowCount'](),_0xd30dbb=_0x10eb46[_0xad135e(0x139)]();if(_0x2f5903[_0xad135e(0x12d)][_0xad135e(0x232)]>_0x4c1b97||_0x2f5903['targetCellInfo'][_0xad135e(0x212)]>_0xd30dbb)throw new Error('[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range');const _0x1d3ef9=[{'id':_0x1ee6e8['id'],'params':{'unitId':_0xd85527,'subUnitId':_0x2f5903[_0xad135e(0x12d)][_0xad135e(0x32f)],'pivotTableId':_0x2f5903[_0xad135e(0x140)],'targetCellPosition':{'row':_0x2f5903[_0xad135e(0x12d)][_0xad135e(0x232)],'col':_0x2f5903['targetCellInfo'][_0xad135e(0x212)]}}}],_0x2a1bdf=[{'id':_0x1ee6e8['id'],'params':{'unitId':_0xd85527,'subUnitId':_0x388b8a,'pivotTableId':_0x2f5903[_0xad135e(0x140)],'targetCellPosition':{'row':_0xb5e7bd['targetCellInfo'][_0xad135e(0x232)],'col':_0xb5e7bd[_0xad135e(0x12d)]['col']}}}];return _0x493c7d[_0xad135e(0x2f8)](_0x1d3ef9,_0x18b5ae)&&_0x2bb8ee['pushUndoRedo']({'unitID':_0xd85527,'undoMutations':_0x2a1bdf,'redoMutations':_0x1d3ef9}),!0x0;}},_0x48dd4f={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x17b)],'id':_0x566c44(0x30d),async 'handler'(_0x2990d6,_0x140999){const _0x5d0354=_0x566c44;if(!_0x140999)return!0x1;const _0x573ac4=_0x2990d6[_0x5d0354(0x9f)](_0x493c7d[_0x5d0354(0x1a0)]),{pivotTableId:_0x1b2b73,fieldId:_0x3a55c1,valueFilterInfo:_0x50503c,unitId:_0x2b5e3d,subUnitId:_0x10340f}=_0x140999,_0x2a8948=_0x2990d6['get'](_0x190415['SheetsPivotRPCService']),_0x3b199a=_0x2990d6[_0x5d0354(0x9f)](_0x493c7d[_0x5d0354(0xa1)]),_0x3fe098=(await _0x2a8948[_0x5d0354(0x29f)]({'unitId':_0x2b5e3d,'subUnitId':_0x10340f,'pivotTableId':_0x1b2b73,'params':{'type':_0x223f7f['SetValuePivotFilter'],'setValuePivotFilter':{'tableFieldId':_0x3a55c1,'filterInfo':_0x50503c}}}))[_0x5d0354(0x215)][_0x5d0354(0x266)];if(!_0x3fe098)return!0x1;const {changesets:_0x1dd565,pivotTableConfig:_0x425d50,isEmpty:_0x4427e3,view:_0x2ed247}=_0x3fe098,_0x1ab9ef=_0x425d50[_0x5d0354(0x12d)],_0x4ff129=new _0x38bc74['PivotView']();_0x4ff129[_0x5d0354(0x34e)](_0x2ed247);const _0xa5a061={'cellInfo':_0x1ab9ef,'view':_0x4ff129,'isEmpty':_0x4427e3};if(!await _0x2990d6[_0x5d0354(0x9f)](_0x190415[_0x5d0354(0x10c)])[_0x5d0354(0x2f7)][_0x5d0354(0x344)](_0x29c52c)(!0x0,_0xa5a061))return!0x1;const _0x264e5a=_0x14be64(_0x2990d6,_0x4ff129,_0x1ab9ef,_0x4427e3),_0x41437f=_0x39ef34(_0x2990d6,_0xa5a061),{undos:_0xc19a6d,redos:_0x3d59ec}=_0x52b608(_0x573ac4,{'pivotTableId':_0x1b2b73,'unitId':_0x2b5e3d,'subUnitId':_0x10340f},_0x1dd565);return _0x493c7d['sequenceExecute']([..._0x264e5a[_0x5d0354(0x1cb)],..._0x41437f[_0x5d0354(0x1cb)],..._0x3d59ec],_0x573ac4),_0x3b199a[_0x5d0354(0xb0)]({'unitID':_0x2b5e3d,'redoMutations':[..._0x264e5a[_0x5d0354(0x1cb)],..._0x41437f['redos'],..._0x3d59ec],'undoMutations':[..._0x264e5a[_0x5d0354(0x97)],..._0x41437f[_0x5d0354(0x97)],..._0xc19a6d]}),!0x0;}},_0x2d938e={'type':_0x493c7d[_0x566c44(0x327)][_0x566c44(0x17b)],'id':_0x566c44(0x2e3),async 'handler'(_0x958954,_0x2f011c){const _0x5dd63f=_0x566c44;if(!_0x2f011c)return!0x1;const _0x787f6a=_0x958954[_0x5dd63f(0x9f)](_0x493c7d[_0x5dd63f(0x1a0)]),_0x2616d9=_0x958954['get'](_0x493c7d[_0x5dd63f(0xa1)]),_0x599e55=_0x958954[_0x5dd63f(0x9f)](_0x190415[_0x5dd63f(0x388)]),{pivotTableConfig:_0x4d656a,pivotTableId:_0x268315,unitId:_0x4416a2,subUnitId:_0x498d48}=_0x2f011c,_0x2d21fc=(await _0x599e55[_0x5dd63f(0x29f)]({'unitId':_0x4416a2,'subUnitId':_0x498d48,'pivotTableId':_0x268315,'params':{'type':_0x223f7f[_0x5dd63f(0xf9)],'setPivotTableConfig':{'pivotTableId':_0x268315,'pivotTableConfig':_0x4d656a}}}))[_0x5dd63f(0x215)][_0x5dd63f(0x29b)];if(!_0x2d21fc)return!0x1;const {changesets:_0x592ef7}=_0x2d21fc,{redos:_0x4fb7f4,undos:_0x2b6838}=_0x52b608(_0x787f6a,{'pivotTableId':_0x268315,'unitId':_0x4416a2,'subUnitId':_0x498d48},_0x592ef7);return _0x493c7d[_0x5dd63f(0x2f8)](_0x4fb7f4,_0x787f6a),_0x2616d9[_0x5dd63f(0xb0)]({'unitID':_0x4416a2,'redoMutations':_0x4fb7f4,'undoMutations':_0x2b6838}),!0x0;}},_0x26ee75={'type':_0x493c7d[_0x566c44(0x327)]['COMMAND'],'id':_0x566c44(0x1e1),async 'handler'(_0x17431f,_0x4cd0ec){const _0x5dbf4a=_0x566c44;if(!_0x4cd0ec)return!0x1;const _0x32dfdd=_0x17431f[_0x5dbf4a(0x9f)](_0x493c7d['ICommandService']),_0x562d91=_0x17431f[_0x5dbf4a(0x9f)](_0x493c7d[_0x5dbf4a(0xa1)]),_0x3c62ea=_0x17431f[_0x5dbf4a(0x9f)](_0x190415[_0x5dbf4a(0x388)]),{resetArea:_0x430296,pivotTableId:_0x23bf93,unitId:_0x4d3615,subUnitId:_0x48edbd}=_0x4cd0ec,_0x4b0d57=(await _0x3c62ea['getPivotDisplayConfig']({'unitId':_0x4d3615,'subUnitId':_0x48edbd,'pivotTableId':_0x23bf93,'params':{'type':_0x223f7f[_0x5dbf4a(0x18e)],'resetPivotTable':{'pivotTableId':_0x23bf93,'resetArea':_0x430296}}}))['result'][_0x5dbf4a(0x2c3)];if(!_0x4b0d57)return!0x1;const {changesets:_0xf537d6}=_0x4b0d57,{redos:_0x36cbf4,undos:_0x559789}=_0x52b608(_0x32dfdd,{'pivotTableId':_0x23bf93,'unitId':_0x4d3615,'subUnitId':_0x48edbd},_0xf537d6);return _0x493c7d[_0x5dbf4a(0x2f8)](_0x36cbf4,_0x32dfdd),_0x562d91[_0x5dbf4a(0xb0)]({'unitID':_0x4d3615,'redoMutations':_0x36cbf4,'undoMutations':_0x559789}),!0x0;}},_0x53b74b={'id':'sheet.mutation.update-date-group','type':_0x493c7d[_0x566c44(0x327)]['MUTATION'],'handler':(_0x4d686d,_0x45632a)=>{const _0x502f01=_0x566c44;if(!_0x45632a)return!0x1;if(!!_0x4d686d[_0x502f01(0x9f)](_0x493c7d[_0x502f01(0xa7)])[_0x502f01(0x290)](_0xb9a66d))return!0x0;const {unitId:_0x12c2c2,subUnitId:_0x19fd8b,pivotTableId:_0xcb04c9,tableFieldId:_0x3b469a,dateType:_0x557026}=_0x45632a,_0x3aeae8=_0x4d686d[_0x502f01(0x9f)](_0x190415[_0x502f01(0x324)]),_0x168695=_0x3aeae8[_0x502f01(0x2db)](_0xcb04c9);if(!_0x168695)return!0x1;const _0xcebeed=_0x168695['getDataFieldByTableId'](_0x3b469a);if(!_0xcebeed)return!0x1;const _0x2d6054=_0xcebeed['getOriginFieldId'](),_0xde175c=_0x168695[_0x502f01(0x187)](_0x2d6054),_0x11347e=(_0xde175c==null?void 0x0:_0xde175c[_0x502f01(0x279)]())+'\x20'+_0x2775d3(_0x4d686d,_0x557026);_0x3aeae8['getCollection'](_0x12c2c2,_0xcb04c9)['setDisplayName'](_0xcebeed['id'],_0x11347e);const _0x34a346=_0x168695['getTableFieldById'](_0x3b469a);if(!_0x34a346)return!0x1;_0x168695['renameField'](_0x34a346[_0x502f01(0x13f)](),_0x11347e),_0xcebeed[_0x502f01(0x35f)](_0x557026);const _0x32a206=_0x3aeae8[_0x502f01(0x132)](_0x12c2c2,_0x19fd8b,_0xcb04c9);return _0x3aeae8[_0x502f01(0x166)]({'unitId':_0x12c2c2,'subUnitId':_0x19fd8b,'token':_0xcb04c9,'type':_0x3e1445[_0x502f01(0x352)],'pivotConfig':_0x32a206}),!0x0;}},_0x42b2ed={'id':_0x566c44(0x14e),'type':_0x493c7d[_0x566c44(0x327)]['COMMAND'],'handler':(_0x380934,_0x3d4d18)=>{const _0xe33904=_0x566c44;if(!_0x3d4d18)return!0x1;const _0x23469b=_0x380934['get'](_0x493c7d[_0xe33904(0xa1)]),{unitId:_0x56fa95,subUnitId:_0x135268,pivotTableId:_0x5b9011,tableFieldId:_0xf25083}=_0x3d4d18,_0x3cfb68=[],_0x2b3ec7=[],_0x4774e8=_0x380934[_0xe33904(0x9f)](_0x190415[_0xe33904(0x142)]),_0x43310a=_0x4774e8[_0xe33904(0x1e6)](_0x56fa95,_0x5b9011),_0x3d736f=_0x4774e8[_0xe33904(0x132)](_0x56fa95,_0x135268,_0x5b9011);if(!(_0x3d736f!=null&&_0x3d736f[_0xe33904(0x2fc)][_0xe33904(0x358)]))return!0x1;const _0x440b79=Object[_0xe33904(0x293)](_0x3d736f[_0xe33904(0x2fc)][_0xe33904(0x358)])[_0xe33904(0xb5)](_0x5b7aa0=>_0x5b7aa0['id']===_0xf25083);if(!_0x440b79)return!0x1;const _0x4ad07d=_0x440b79[_0xe33904(0x1d6)];if(!(_0x43310a!=null&&_0x43310a[_0xe33904(0xec)]))return!0x1;const _0x12c4b4=Object[_0xe33904(0x293)](_0x43310a==null?void 0x0:_0x43310a[_0xe33904(0xec)])[_0xe33904(0xb5)](_0x45fe66=>_0x45fe66['id']===_0x4ad07d);if(!_0x12c4b4)return!0x1;_0x38bc74[_0xe33904(0x28c)](_0x12c4b4)&&_0x3cfb68[_0xe33904(0xb7)]({'id':_0x53b74b['id'],'params':{..._0x3d4d18,'dateType':_0x12c4b4['dateType']}}),_0x2b3ec7[_0xe33904(0xb7)]({'id':_0x53b74b['id'],'params':{..._0x3d4d18}});const _0x2410df=_0x380934[_0xe33904(0x9f)](_0x493c7d[_0xe33904(0x1a0)]);return _0x493c7d['sequenceExecute'](_0x2b3ec7,_0x2410df)&&_0x23469b['pushUndoRedo']({'unitID':_0x56fa95,'undoMutations':_0x3cfb68,'redoMutations':_0x2b3ec7}),!0x0;}};var _0x531b3b=Object[_0x566c44(0x183)],_0x2d9c1c=(_0x3cf8ff,_0x17b1bb,_0x2cb52b,_0x38d9c7)=>{for(var _0xf416c1=_0x38d9c7>0x1?void 0x0:_0x38d9c7?_0x531b3b(_0x17b1bb,_0x2cb52b):_0x17b1bb,_0x32f3ab=_0x3cf8ff['length']-0x1,_0x329b40;_0x32f3ab>=0x0;_0x32f3ab--)(_0x329b40=_0x3cf8ff[_0x32f3ab])&&(_0xf416c1=_0x329b40(_0xf416c1)||_0xf416c1);return _0xf416c1;},_0x1fff11=(_0x573235,_0x2ced2f)=>(_0x2ba3c5,_0xe988bd)=>_0x2ced2f(_0x2ba3c5,_0xe988bd,_0x573235);const _0x42c550=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x1a9adc=(_0x5ed01a,_0x4a1db6,_0x336aa7)=>{const _0x490c65=_0x566c44,_0x2969c9=_0x5ed01a[_0x490c65(0x144)];_0x5ed01a[_0x490c65(0x153)](_0x4bede6=>{const _0x3e888b=_0x490c65,_0x290b21=_0x4bede6[_0x3e888b(0x13f)](),_0x2525b2=_0x4bede6[_0x3e888b(0x1ce)](),_0x47a16c=_0x4bede6[_0x3e888b(0x301)](),_0x4d090a=_0x4bede6[_0x3e888b(0xa9)]();_0x4a1db6[_0x2525b2]&&_0x4a1db6[_0x2525b2]===_0x4d090a&&_0x47a16c===_0x4d090a&&(_0x5ed01a[_0x3e888b(0x25a)](_0x290b21,_0x2969c9[_0x3e888b(0xa9)](_0x2525b2)),_0x4bede6[_0x3e888b(0x171)](_0x2969c9[_0x3e888b(0xa9)](_0x2525b2)));}),_0x5ed01a[_0x490c65(0x31c)](_0x38bc74[_0x490c65(0x1fa)][_0x490c65(0x9a)],_0x5e865f=>{const _0xa95bd9=_0x490c65,_0x472b40=_0x5e865f[_0xa95bd9(0x13f)](),_0x6164ee=_0x5e865f['getDataFieldId'](),_0x2bfbf4=_0x5e865f[_0xa95bd9(0x301)](),_0xc87d14=_0x5e865f['getDisplayName'](),_0x51723c=_0x5e865f[_0xa95bd9(0x323)](),_0x55370b=_0x336aa7(_0x2bfbf4,_0x51723c);_0x4a1db6[_0x6164ee]&&_0x4a1db6[_0x6164ee]===_0x2bfbf4&&_0x55370b===_0xc87d14&&(_0x5ed01a['renameField'](_0x472b40,_0x336aa7(_0x2969c9[_0xa95bd9(0xa9)](_0x6164ee),_0x51723c)),_0x5e865f[_0xa95bd9(0x171)](_0x2969c9[_0xa95bd9(0xa9)](_0x6164ee)));});},_0x35f8da=(_0x2fb64a,_0x205254,_0x22d574)=>{const _0x163d90=_0x566c44;var _0xb484c,_0x63eb5b;const {arrayFormulaCellData:_0x5cf1e8,unitData:_0x2f877a}=_0x205254,{unitId:_0x202017,subUnitId:_0x2970}=_0x22d574,_0x4f9315=_0x22d574[_0x163d90(0x383)],{startColumn:_0x2b1dfa,endColumn:_0x37bfd5}=_0x4f9315,_0x443e6c=(_0xb484c=_0x5cf1e8==null?void 0x0:_0x5cf1e8[_0x202017])==null?void 0x0:_0xb484c[_0x2970],_0x592236=(_0x63eb5b=_0x2f877a==null?void 0x0:_0x2f877a[_0x202017])==null?void 0x0:_0x63eb5b[_0x2970],_0x235027=new Set(),_0x298a6e=_0x37bfd5-_0x2b1dfa+0x1,{dirtyRanges:_0x449786}=_0x2fb64a;if(_0x449786)for(const {range:_0x3471de,sheetId:_0x2a66c3,unitId:_0x188b55}of _0x449786){if(_0x2a66c3!==_0x2970||_0x202017!==_0x188b55)continue;const _0x566fc0=_0x493c7d['Rectangle'][_0x163d90(0x268)](_0x3471de,_0x4f9315);if(_0x566fc0){const {startColumn:_0x4a2eca,endColumn:_0x3c8cd3}=_0x566fc0;for(let _0x52d8a8=_0x4a2eca;_0x52d8a8<=_0x3c8cd3;_0x52d8a8++)_0x235027[_0x163d90(0x158)](_0x52d8a8);}}if(_0x235027[_0x163d90(0x399)]===_0x298a6e||_0x235027[_0x163d90(0x399)]===_0x298a6e)return Array[_0x163d90(0x19f)](_0x235027);if(_0x592236){const _0x7b880d=_0x592236['getMatrix'](),_0x6c944c=Object[_0x163d90(0x102)](_0x7b880d);for(const _0x169c39 of _0x6c944c){const _0x452cbf=Number(_0x169c39),_0x21f507=_0x7b880d[_0x452cbf];if(_0x235027[_0x163d90(0x399)]===_0x298a6e)break;for(const _0xcf7de6 in _0x21f507){const _0x15fa05=Number(_0xcf7de6);_0x15fa05<_0x2b1dfa||_0x15fa05>_0x37bfd5||_0x235027[_0x163d90(0x158)](_0x15fa05);}}}if(_0x443e6c){const _0x2a9cab=_0x443e6c[_0x163d90(0xd3)](),_0x2d3788=Object[_0x163d90(0x102)](_0x2a9cab);for(const _0x29831e of _0x2d3788){const _0x1cd19f=Number(_0x29831e),_0x4164f9=_0x2a9cab[_0x1cd19f];if(_0x235027[_0x163d90(0x399)]===_0x298a6e)break;for(const _0x5a13ea in _0x4164f9){const _0x2f9c3c=Number(_0x5a13ea);_0x2f9c3c<_0x2b1dfa||_0x2f9c3c>_0x37bfd5||_0x235027['add'](_0x2f9c3c);}}}return Array[_0x163d90(0x19f)](_0x235027);},_0xa86050=_0x267082=>{const _0x496652=_0x566c44,_0x34dc3e=new Set(),_0x18cd92=[];for(const _0x176151 of _0x267082){const _0x2961b9=_0x176151[_0x496652(0x1cf)]+','+_0x176151[_0x496652(0x1b5)]+','+_0x176151[_0x496652(0x175)]+','+_0x176151[_0x496652(0x354)];_0x34dc3e[_0x496652(0x137)](_0x2961b9)||(_0x34dc3e[_0x496652(0x158)](_0x2961b9),_0x18cd92[_0x496652(0xb7)](_0x176151));}return _0x18cd92;};let _0x1a8822=class extends _0x493c7d['Disposable']{constructor(_0x3ab11c,_0x24345b,_0x436039,_0x54a14d,_0xcb538c,_0x2e3408){const _0xf0e7c9=_0x566c44;super(),_0x3a454e(this,_0xf0e7c9(0x13a),new _0x22c0d0[(_0xf0e7c9(0x1e8))](!0x0)),_0x3a454e(this,_0xf0e7c9(0x326),_0x5bedf8=>{const _0x218a65=_0xf0e7c9;this[_0x218a65(0x13a)][_0x218a65(0x191)](!0x1);}),_0x3a454e(this,_0xf0e7c9(0x1d9),_0x18de75=>{const _0x2c4f56=_0xf0e7c9;this[_0x2c4f56(0x13a)][_0x2c4f56(0x191)](!0x0);}),(this[_0xf0e7c9(0x314)]=_0x3ab11c,this[_0xf0e7c9(0x31e)]=_0x24345b,this[_0xf0e7c9(0x176)]=_0x436039,this[_0xf0e7c9(0x30a)]=_0x54a14d,this['_globalComputingSrv']=_0xcb538c,this['_injector']=_0x2e3408,this[_0xf0e7c9(0x34f)](),this[_0xf0e7c9(0x114)]());}[_0x566c44(0x34f)](){const _0x16e80d=_0x566c44;this['_subjectCollectionChange'](),this[_0x16e80d(0x1f9)](),this[_0x16e80d(0x89)](),this[_0x16e80d(0x36f)]();}[_0x566c44(0x2cb)](){const _0x41b9f4=_0x566c44;this[_0x41b9f4(0x106)][_0x41b9f4(0x151)](this[_0x41b9f4(0x13a)]),_0x38bc74[_0x41b9f4(0x221)]['registerCallbackWithEvent'](_0x38bc74[_0x41b9f4(0x2dd)]['onQueryStart'],this[_0x41b9f4(0x326)]),_0x38bc74['PivotTable'][_0x41b9f4(0x2fd)](_0x38bc74[_0x41b9f4(0x2dd)][_0x41b9f4(0x329)],this[_0x41b9f4(0x1d9)]);}[_0x566c44(0x114)](){const _0x3fa531=_0x566c44;this[_0x3fa531(0x18a)](this[_0x3fa531(0x30a)][_0x3fa531(0x342)](_0x20447c=>{const _0x30c7bc=_0x3fa531;_0x20447c['id']===_0x188291[_0x30c7bc(0x110)]['id']&&this[_0x30c7bc(0x314)][_0x30c7bc(0x2f3)](_0x20447c[_0x30c7bc(0x185)]);})),this[_0x3fa531(0x18a)](this[_0x3fa531(0x30a)][_0x3fa531(0x342)](_0x3a9411=>{const _0xa5923b=_0x3fa531;if(_0x3a9411['id']!==_0x33cd84['id'])return;const _0x1259d1=_0x3a9411[_0xa5923b(0x185)],{unitId:_0x325254,subUnitId:_0x5f1cc1,pivotTableId:_0x29b0f2}=_0x1259d1,_0x2687cb=_0x1259d1[_0xa5923b(0x185)]['type'],_0x22a355={};switch(_0x2687cb){case _0x223f7f['Filter']:{const _0x5d4803=_0x1259d1[_0xa5923b(0x185)]['filter'];if(!_0x5d4803)return;const {row:_0x29e117,col:_0x20e93d,cellData:_0x17536a,pivotItemRenderInfoCache:_0x11211b,tableFieldId:_0x345593}=_0x5d4803,_0x4846ba=this[_0xa5923b(0x314)][_0xa5923b(0x2db)](_0x1259d1['pivotTableId']);if(!_0x4846ba||!_0x11211b)return;if(_0x345593){const _0x4701f9=_0x4846ba[_0xa5923b(0x2a5)](_0x345593);if(!_0x4701f9)return;_0x22a355[_0xa5923b(0xc7)]={..._0x4846ba[_0xa5923b(0x24b)](_0x4701f9),'tableFieldId':_0x345593,'pivotTableId':_0x1259d1['pivotTableId'],'filterInfo':_0x4846ba[_0xa5923b(0xd2)](_0x345593),'sortInfo':_0x4846ba[_0xa5923b(0x150)](_0x345593),'format':_0x4846ba[_0xa5923b(0x2ec)](_0x345593)};}else{const _0x2a0987=_0x119ead(_0x29e117,_0x20e93d,_0x17536a,_0x4846ba,_0x11211b),_0x1a6d97=_0x2a0987==null?void 0x0:_0x2a0987['filterId'];if(!_0x1a6d97)return;const _0x58f826=_0x4846ba[_0xa5923b(0x2a5)](_0x1a6d97);if(!_0x58f826)return;_0x22a355[_0xa5923b(0xc7)]={..._0x4846ba[_0xa5923b(0x24b)](_0x58f826),'tableFieldId':_0x1a6d97,'pivotTableId':_0x1259d1[_0xa5923b(0x140)],'filterInfo':_0x4846ba[_0xa5923b(0xd2)](_0x1a6d97),'sortInfo':_0x4846ba[_0xa5923b(0x150)](_0x1a6d97),'format':_0x4846ba[_0xa5923b(0x2ec)](_0x1a6d97)};}}break;case _0x223f7f[_0xa5923b(0x173)]:{const _0x425a1c=_0x1259d1[_0xa5923b(0x185)][_0xa5923b(0xcd)];if(!_0x425a1c)return;const {pivotTableId:_0x411ab6}=_0x425a1c,_0xba796e=this[_0xa5923b(0x314)][_0xa5923b(0x2db)](_0x411ab6);if(!_0xba796e)return;const _0x2ec059=this[_0xa5923b(0x314)][_0xa5923b(0x132)](_0x325254,_0x5f1cc1,_0x411ab6),_0x434584=_0x24b403(_0xba796e,_0x411ab6,_0x2ec059);_0x22a355[_0xa5923b(0xcd)]=_0x434584;}break;case _0x223f7f[_0xa5923b(0x1c4)]:{const _0x2cd9b1=this[_0xa5923b(0x314)][_0xa5923b(0x2db)](_0x29b0f2),_0x192ffc=this[_0xa5923b(0x314)][_0xa5923b(0x34c)](_0x325254),_0x2ecac1=_0x192ffc[_0xa5923b(0x1e6)](_0x29b0f2);let _0x4c5432=null;const _0x55dcf6=this[_0xa5923b(0x314)][_0xa5923b(0x132)](_0x325254,_0x5f1cc1,_0x29b0f2),_0x3c5331=_0x1259d1['params'][_0xa5923b(0x283)];if(!_0x2cd9b1||!_0x55dcf6||!_0x3c5331)return!0x1;const {dataFieldId:_0x26fcb7,fieldArea:_0x50cba8,index:_0x35258f}=_0x3c5331;_0x2cd9b1[_0xa5923b(0x2f2)]();const _0x21d857=_0x2cd9b1[_0xa5923b(0xad)](_0x26fcb7,_0x50cba8,_0x35258f);if(_0x21d857&&_0x50cba8===_0x38bc74['PivotTableFiledAreaEnum'][_0xa5923b(0x9a)]){const _0x5d7aff=_0x21d857['getId'](),_0x1d2453=_0x2cd9b1[_0xa5923b(0x2a5)](_0x5d7aff);if(_0x1d2453){const _0x2285b3=_0x1d2453==null?void 0x0:_0x1d2453['getFieldDataType']();_0x2cd9b1[_0xa5923b(0x313)](_0x21d857[_0xa5923b(0x13f)](),_0x2285b3===_0x38bc74[_0xa5923b(0x395)]['number']?_0x38bc74[_0xa5923b(0x123)][_0xa5923b(0xeb)]:_0x38bc74[_0xa5923b(0x123)][_0xa5923b(0x1ac)]);}const _0x204a77=_0x2cd9b1[_0xa5923b(0x271)](),_0x5dfe1f=_0x2cd9b1[_0xa5923b(0x2c9)](),_0x322c0a=_0x2cd9b1[_0xa5923b(0x205)](_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x9a)]);if(_0x204a77===-0x1&&_0x322c0a>0x1){const _0x1bdc9e=_0x5dfe1f===_0x38bc74[_0xa5923b(0x2c8)][_0xa5923b(0x2e5)]?_0x38bc74[_0xa5923b(0x2c8)]['Column']:_0x5dfe1f,_0x2c1a75=_0x1bdc9e===_0x38bc74[_0xa5923b(0x2c8)][_0xa5923b(0x1a1)]?_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x1a1)]:_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x38f)];_0x2cd9b1[_0xa5923b(0x1eb)](_0x1bdc9e,_0x2cd9b1[_0xa5923b(0x205)](_0x2c1a75));}}else{if(_0x21d857&&(_0x50cba8===_0x38bc74[_0xa5923b(0x1fa)]['Row']||_0x50cba8===_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x38f)])){const _0xf2642e=_0x21d857['getId'](),_0x3ece28=_0x2cd9b1['getDataFieldByTableId'](_0xf2642e);if(_0x3ece28&&(_0x3ece28==null?void 0x0:_0x3ece28['getFieldDataType']())===_0x38bc74[_0xa5923b(0x395)][_0xa5923b(0xd4)]){const _0x2b37e8=_0x3ece28['getformat']();if(_0x2b37e8&&_0x2cd9b1['setFieldFormat'](_0x21d857[_0xa5923b(0x13f)](),_0x2b37e8),!_0x2ecac1['getFieldIds']()[_0xa5923b(0x38e)](_0x2fe85c=>{const _0x4f4333=_0xa5923b,_0xb5808a=_0x2ecac1[_0x4f4333(0x15a)](_0x2fe85c);return _0x38bc74[_0x4f4333(0x334)](_0xb5808a)?_0xb5808a['getFieldInfo']()[_0x4f4333(0xbb)]===_0x26fcb7:!0x1;})){const _0x1a32bf=_0x192ffc[_0xa5923b(0x397)](),_0x49627b=_0x71e23f(_0x3ece28[_0xa5923b(0x26b)],_0x3ece28['minDate']),_0x38e1b1=_0x3ece28[_0xa5923b(0x279)]()+_0xa5923b(0x27c)+_0x2775d3(this['_injector'],_0x49627b),_0x7de6e2=new _0x38bc74[(_0xa5923b(0x34b))](_0x1a32bf,_0x38e1b1,_0x38bc74['generateHexNumber'](0x3),_0x3ece28['getId'](),_0x49627b);_0x192ffc['addDataFieldWithoutUnitInfo'](_0x7de6e2),_0x2ecac1['addField'](_0x1a32bf,_0x38e1b1),_0x2cd9b1['addFieldWithSourceId'](_0x1a32bf,_0x50cba8,(_0x35258f!=null?_0x35258f:0x0)+0x1),_0x4c5432=_0x7de6e2;}}}}const _0x53b0fc=_0x2cd9b1[_0xa5923b(0x15c)](),_0x136f90=_0x2cd9b1[_0xa5923b(0x210)]()['toJSON']();let _0x227ad9;if(_0x4c5432){_0x227ad9=_0x4c5432[_0xa5923b(0x37f)]();const _0x2a6073=_0x4c5432[_0xa5923b(0x13f)]();_0x2ecac1[_0xa5923b(0x243)](_0x2a6073);let _0x79ab56=!0x0;for(const _0x54af6b in _0x192ffc[_0xa5923b(0x339)])if(_0x192ffc[_0xa5923b(0x339)][_0x54af6b][_0xa5923b(0x90)]()[_0xa5923b(0x32d)](_0x2a6073)){_0x79ab56=!0x1;break;}_0x79ab56&&_0x192ffc[_0xa5923b(0x346)](_0x2a6073);}const _0x1ad98a=_0x2cd9b1['endCollectChangeset']();_0x22a355[_0xa5923b(0x283)]={'view':_0x136f90,'changesets':_0x1ad98a,'isEmpty':_0x53b0fc,'pivotTableConfig':_0x55dcf6,'shouldBeAddedGroupJSON':_0x227ad9};}break;case _0x223f7f[_0xa5923b(0x14c)]:{const _0x4338e5=_0x1259d1[_0xa5923b(0x185)][_0xa5923b(0x368)];if(!_0x4338e5)return;const _0x503706=_0x4338e5['sourceRangeInfo'],_0x4363d3=_0x4338e5[_0xa5923b(0x140)],{collection:_0x35f362}=this[_0xa5923b(0x314)][_0xa5923b(0x161)]({'unitId':_0x503706[_0xa5923b(0x35b)],'sheetName':_0x503706['sheetName'],'subUnitId':_0x503706['subUnitId'],'range':_0x503706['range']}),_0x138d89=new _0x38bc74[(_0xa5923b(0x221))](_0x35f362,void 0x0,_0x4363d3),_0x5c2e82=_0x138d89[_0xa5923b(0x210)](),_0x46a847=_0x138d89[_0xa5923b(0x37f)](),_0x4546dc=_0x35f362['toJSON']();_0x22a355[_0xa5923b(0x368)]={'view':_0x5c2e82,'fieldsConfig':_0x46a847,'collectionConfig':_0x4546dc,'isEmpty':_0x138d89[_0xa5923b(0x15c)]()};}break;case _0x223f7f['MovePivotField']:{const _0x21075a=_0x1259d1[_0xa5923b(0x185)][_0xa5923b(0xee)];if(!_0x21075a)return;const {fieldId:_0x2a9e73,area:_0x53bf55,index:_0x30935e}=_0x21075a,_0x30b475=this[_0xa5923b(0x314)]['getPivotTableConfig'](_0x325254,_0x5f1cc1,_0x29b0f2);if(!_0x30b475)return;const _0x315d74=this[_0xa5923b(0x314)][_0xa5923b(0x2db)](_0x29b0f2);if(!_0x315d74)return;_0x315d74['startCollectChangeset']();const {area:_0x15e344,index:_0x2b15c9}=_0x315d74[_0xa5923b(0x13b)](_0x2a9e73);if(_0x315d74[_0xa5923b(0x2d3)](_0x2a9e73,_0x53bf55,_0x30935e),_0x53bf55===_0x38bc74['PivotTableFiledAreaEnum'][_0xa5923b(0x9a)]&&_0x315d74[_0xa5923b(0x8d)](_0x2a9e73)[_0xa5923b(0x323)]()===void 0x0){const _0x6534b3=_0x315d74[_0xa5923b(0x8d)](_0x2a9e73);if(_0x6534b3&&_0x6534b3['getSubtotal']()===void 0x0){const _0x330e42=_0x315d74[_0xa5923b(0x2a5)](_0x2a9e73);if(_0x330e42){const _0x23c205=_0x330e42==null?void 0x0:_0x330e42[_0xa5923b(0x30b)]();_0x315d74[_0xa5923b(0x313)](_0x2a9e73,_0x23c205===_0x38bc74[_0xa5923b(0x395)][_0xa5923b(0x2ef)]?_0x38bc74[_0xa5923b(0x123)][_0xa5923b(0xeb)]:_0x38bc74[_0xa5923b(0x123)]['count']);}}}const _0x12aaea=_0x315d74[_0xa5923b(0x2c9)](),_0x47fdef=_0x315d74['getValueIndex'](),_0x512d40=_0x315d74['getFieldCountByArea'](_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x9a)])>0x1;if(_0x512d40&&_0x15e344===_0x53bf55&&(_0x53bf55===_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x1a1)]&&_0x12aaea===_0x38bc74[_0xa5923b(0x2c8)][_0xa5923b(0x1a1)]||_0x53bf55===_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x38f)]&&_0x12aaea===_0x38bc74[_0xa5923b(0x2c8)]['Column'])){let _0x427bd8=_0x47fdef;_0x2b15c9<=_0x47fdef&&_0x427bd8--,_0x30935e<=_0x47fdef&&_0x427bd8++,_0x315d74[_0xa5923b(0x1eb)](_0x12aaea,_0x427bd8);}else _0x512d40&&(_0x15e344===_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x1a1)]&&_0x12aaea===_0x38bc74[_0xa5923b(0x2c8)]['Row']||_0x15e344===_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x38f)]&&_0x12aaea===_0x38bc74['PivotTableValuePositionEnum']['Column'])&&_0x47fdef>=_0x2b15c9&&_0x315d74[_0xa5923b(0x1eb)](_0x12aaea,_0x47fdef-0x1),_0x512d40&&(_0x53bf55===_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x1a1)]&&_0x12aaea===_0x38bc74['PivotTableValuePositionEnum'][_0xa5923b(0x1a1)]||_0x53bf55===_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x38f)]&&_0x12aaea===_0x38bc74[_0xa5923b(0x2c8)][_0xa5923b(0x38f)])&&_0x47fdef>=_0x30935e&&_0x315d74[_0xa5923b(0x1eb)](_0x12aaea,_0x47fdef+0x1);const _0x2f8555=_0x315d74[_0xa5923b(0x210)](),_0x4af344=_0x315d74[_0xa5923b(0x15c)](),_0x5e68e5=_0x315d74['endCollectChangeset']();_0x22a355[_0xa5923b(0xee)]={'view':_0x2f8555[_0xa5923b(0x37f)](),'changesets':_0x5e68e5,'isEmpty':_0x4af344,'pivotTableConfig':_0x30b475};}break;case _0x223f7f[_0xa5923b(0x1a8)]:{const _0x44d8bc=_0x1259d1[_0xa5923b(0x185)][_0xa5923b(0x2aa)];if(!_0x44d8bc)return;const _0x39c051=_0x44d8bc[_0xa5923b(0x291)],_0x48a646=this[_0xa5923b(0x314)][_0xa5923b(0x132)](_0x325254,_0x5f1cc1,_0x29b0f2);if(!_0x48a646)return!0x1;const _0x2efac9=this[_0xa5923b(0x314)]['getPivotTableInstance'](_0x29b0f2);if(!_0x2efac9)return!0x1;_0x2efac9['startCollectChangeset']();for(const _0x4f1d32 of _0x39c051){const {area:_0x4e6e81}=_0x2efac9[_0xa5923b(0x13b)](_0x4f1d32);_0x4e6e81===_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x9a)]&&_0x2efac9['removeValueFilterInfoByValueFieldId'](_0x4f1d32),(_0x4e6e81===_0x38bc74[_0xa5923b(0x1fa)]['Row']||_0x4e6e81===_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x38f)])&&_0x2efac9[_0xa5923b(0x1ca)](_0x4f1d32),_0x2efac9[_0xa5923b(0x15b)](_0x4f1d32);}const _0x389798=_0x2efac9['isEmpty'](),_0x57452d=_0x2efac9[_0xa5923b(0x210)]()[_0xa5923b(0x37f)](),_0xceffd6=_0x2efac9[_0xa5923b(0x360)]();_0x22a355[_0xa5923b(0x2aa)]={'changesets':_0xceffd6,'pivotTableConfig':_0x48a646,'isEmpty':_0x389798,'view':_0x57452d};}break;case _0x223f7f[_0xa5923b(0x11b)]:{const _0x5ff218=_0x1259d1[_0xa5923b(0x185)][_0xa5923b(0x1bd)];if(!_0x5ff218)return;const {tableFieldId:_0x3a71e7,items:_0x4e46bf,isAll:_0x2b4b1e}=_0x5ff218,_0x229a70=this['_sheetsPivotDataSourceModel'][_0xa5923b(0x2db)](_0x29b0f2),_0x736746=this['_sheetsPivotDataSourceModel'][_0xa5923b(0x132)](_0x325254,_0x5f1cc1,_0x29b0f2);if(!_0x229a70||!_0x736746)return;_0x229a70[_0xa5923b(0x2f2)](),_0x229a70[_0xa5923b(0x124)](_0x3a71e7,{'type':_0x38bc74[_0xa5923b(0x1af)][_0xa5923b(0x33e)],'list':_0x4e46bf,'isAll':_0x2b4b1e});const _0x2eafbb=_0x229a70[_0xa5923b(0x15c)](),_0x41a797=_0x229a70[_0xa5923b(0x210)]()['toJSON'](),_0x431621=_0x229a70[_0xa5923b(0x360)]();_0x22a355[_0xa5923b(0x1bd)]={'view':_0x41a797,'changesets':_0x431621,'isEmpty':_0x2eafbb,'pivotTableConfig':_0x736746};}break;case _0x223f7f[_0xa5923b(0x1a7)]:{const _0x34f7d1=_0x1259d1[_0xa5923b(0x185)][_0xa5923b(0x266)];if(!_0x34f7d1)return;const {tableFieldId:_0x3038ec,filterInfo:_0x52906b}=_0x34f7d1,_0x582a5d=this['_sheetsPivotDataSourceModel'][_0xa5923b(0x2db)](_0x29b0f2),_0x56e782=this[_0xa5923b(0x314)][_0xa5923b(0x132)](_0x325254,_0x5f1cc1,_0x29b0f2);if(!_0x582a5d||!_0x56e782)return;_0x582a5d[_0xa5923b(0x2f2)](),_0x582a5d[_0xa5923b(0x379)](_0x3038ec,_0x52906b);const _0x50317b=_0x582a5d[_0xa5923b(0x15c)](),_0x593c7c=_0x582a5d[_0xa5923b(0x210)]()['toJSON'](),_0x4f2159=_0x582a5d[_0xa5923b(0x360)]();_0x22a355['setValuePivotFilter']={'view':_0x593c7c,'changesets':_0x4f2159,'isEmpty':_0x50317b,'pivotTableConfig':_0x56e782};}break;case _0x223f7f[_0xa5923b(0x1cd)]:{const _0x49deff=_0x1259d1['params']['setPivotSort'];if(!_0x49deff)return;const {tableFieldId:_0x6fca40,info:_0x4eed85}=_0x49deff,_0x1fb2a9=this[_0xa5923b(0x314)][_0xa5923b(0x2db)](_0x29b0f2),_0x4087d4=this[_0xa5923b(0x314)]['getPivotTableConfig'](_0x325254,_0x5f1cc1,_0x29b0f2);if(!_0x1fb2a9||!_0x4087d4)return;_0x1fb2a9[_0xa5923b(0x2f2)](),_0x1fb2a9['setSortInfo'](_0x6fca40,_0x4eed85);const _0x4181c9=_0x1fb2a9[_0xa5923b(0x15c)](),_0x16caf9=_0x1fb2a9['query']()[_0xa5923b(0x37f)](),_0x320a59=_0x1fb2a9['endCollectChangeset']();_0x22a355[_0xa5923b(0x375)]={'view':_0x16caf9,'changesets':_0x320a59,'isEmpty':_0x4181c9,'pivotTableConfig':_0x4087d4};}break;case _0x223f7f[_0xa5923b(0x37a)]:{const _0x1bc6e1=_0x1259d1[_0xa5923b(0x185)][_0xa5923b(0x373)];if(!_0x1bc6e1)return;const {tableFieldId:_0x2e6c9e,displayName:_0x228881,subtotalType:_0x5a1758,format:_0x51643d}=_0x1bc6e1,_0x22ddda=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x29b0f2),_0x4b0a70=this[_0xa5923b(0x314)][_0xa5923b(0x132)](_0x325254,_0x5f1cc1,_0x29b0f2);if(!_0x22ddda||!_0x4b0a70)return;_0x22ddda[_0xa5923b(0x2f2)](),_0x228881!==void 0x0&&_0x22ddda['renameField'](_0x2e6c9e,_0x228881),_0x5a1758!==void 0x0&&_0x22ddda[_0xa5923b(0x313)](_0x2e6c9e,_0x5a1758),_0x51643d!==void 0x0&&_0x22ddda[_0xa5923b(0x250)](_0x2e6c9e,_0x51643d);const _0x2ed347=_0x22ddda[_0xa5923b(0x15c)](),_0x574a9b=_0x22ddda[_0xa5923b(0x210)]()[_0xa5923b(0x37f)](),_0x166dc2=_0x22ddda[_0xa5923b(0x360)]();_0x22a355[_0xa5923b(0x373)]={'changesets':_0x166dc2,'pivotTableConfig':_0x4b0a70,'isEmpty':_0x2ed347,'view':_0x574a9b};}break;case _0x223f7f[_0xa5923b(0x261)]:{const _0x30bfc0=_0x1259d1[_0xa5923b(0x185)][_0xa5923b(0x2d7)];if(!_0x30bfc0)return;const {dataRangeInfo:_0x499232,unitId:_0x5924ed,subUnitId:_0x1e3140}=_0x30bfc0,_0x51d50e=this[_0xa5923b(0x314)]['getPivotTableConfig'](_0x5924ed,_0x1e3140,_0x29b0f2),_0x58ab50=this[_0xa5923b(0x314)][_0xa5923b(0x2db)](_0x29b0f2);if(!this[_0xa5923b(0x314)]['getCollection'](_0x5924ed,_0x29b0f2)||!_0x58ab50||!_0x51d50e)return;const _0xa6cefe=this[_0xa5923b(0x314)][_0xa5923b(0x1bf)](_0x5924ed,_0x29b0f2,_0x499232),_0x249a21=this['_sheetsPivotDataSourceModel']['getCollection'](_0x5924ed,_0x29b0f2)[_0xa5923b(0x37f)](),{collection:_0x5b2af4}=this['_sheetsPivotDataSourceModel']['createCollectionWithDataRange']({'unitId':_0x499232[_0xa5923b(0x35b)],'sheetName':_0x499232[_0xa5923b(0x378)],'subUnitId':_0x499232[_0xa5923b(0x32f)],'range':_0x499232[_0xa5923b(0x383)]}),_0x375bd3=_0x5b2af4[_0xa5923b(0x37f)]();_0x58ab50['startCollectChangeset']();const _0x43bdad=this[_0xa5923b(0x314)]['getDataFieldManager'](_0x5924ed)['getAutoDisplayNameFunction']()||_0x38bc74[_0xa5923b(0xe0)];_0x58ab50[_0xa5923b(0x1ba)](_0x56d3e4=>{const _0x3a06f7=_0xa5923b,_0x5eab00=_0x56d3e4['getDataFieldId']();if(!_0x5b2af4[_0x3a06f7(0x2ed)](_0x5eab00)){const _0x146e44=_0x5b2af4[_0x3a06f7(0x12c)](_0x56d3e4['getSourceName']());if(_0x146e44){_0x58ab50[_0x3a06f7(0x38d)](_0x56d3e4[_0x3a06f7(0x13f)](),_0x146e44[_0x3a06f7(0x279)](),_0x146e44[_0x3a06f7(0x13f)]());const {area:_0x520225}=_0x58ab50[_0x3a06f7(0x13b)](_0x56d3e4['getId']());let _0x5dedaf=_0x56d3e4['getSourceName']();const _0x3010f3=_0x56d3e4[_0x3a06f7(0xa9)]();if(_0x520225===_0x38bc74[_0x3a06f7(0x1fa)][_0x3a06f7(0x9a)]){const _0x3f666d=_0x56d3e4[_0x3a06f7(0x323)]();_0x5dedaf=_0x43bdad(_0x146e44[_0x3a06f7(0x279)](),_0x3f666d);}_0x3010f3!==_0x5dedaf&&_0x58ab50[_0x3a06f7(0x25a)](_0x56d3e4['getId'](),_0x5dedaf);}else _0x58ab50[_0x3a06f7(0x15b)](_0x56d3e4[_0x3a06f7(0x13f)]());}});const _0x1fb726=_0x58ab50[_0xa5923b(0x15c)](),_0xc97d6b=_0x58ab50[_0xa5923b(0x210)]()['toJSON'](),_0x2b259a=_0x58ab50[_0xa5923b(0x360)]();_0x22a355[_0xa5923b(0x2d7)]={'view':_0xc97d6b,'changesets':_0x2b259a,'isEmpty':_0x1fb726,'pivotTableConfig':_0x51d50e,'collectionConfig':_0x375bd3,'oldCollectionConfig':_0x249a21,'deleteIds':_0xa6cefe};}break;case _0x223f7f['UpdateValuePosition']:{const _0x417aaf=_0x1259d1['params'][_0xa5923b(0x1eb)];if(!_0x417aaf)return;const {position:_0x59639b,index:_0x50f4b8}=_0x417aaf,_0x167c09=this['_sheetsPivotDataSourceModel'][_0xa5923b(0x132)](_0x325254,_0x5f1cc1,_0x29b0f2);if(!_0x167c09)return!0x1;const _0x853666=this[_0xa5923b(0x314)]['getPivotTableInstance'](_0x29b0f2);if(!_0x853666)return!0x1;_0x853666['startCollectChangeset'](),_0x853666[_0xa5923b(0x1eb)](_0x59639b,_0x50f4b8);const _0x1f834a=_0x853666[_0xa5923b(0x15c)](),_0x599948=_0x853666[_0xa5923b(0x210)]()['toJSON'](),_0x31bc2b=_0x853666[_0xa5923b(0x360)]();_0x22a355[_0xa5923b(0x1eb)]={'changesets':_0x31bc2b,'pivotTableConfig':_0x167c09,'isEmpty':_0x1f834a,'view':_0x599948};}break;case _0x223f7f['SetPivotCollapse']:{const _0x182615=_0x1259d1['params'][_0xa5923b(0x189)];if(!_0x182615)return;const {tableFieldId:_0x50451d,collapse:_0x271dd3,item:_0x3b161a}=_0x182615,_0x168687=this[_0xa5923b(0x314)][_0xa5923b(0x2db)](_0x29b0f2),_0x58b260=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x325254,_0x5f1cc1,_0x29b0f2);if(!_0x168687||!_0x58b260)return;_0x168687[_0xa5923b(0x2f2)](),_0x168687['setCollapse'](_0x50451d,_0x271dd3,_0x3b161a);const _0x54f0b7=_0x168687[_0xa5923b(0x15c)](),_0x19d6c2=_0x168687[_0xa5923b(0x210)]()[_0xa5923b(0x37f)](),_0x9d696a=_0x168687['endCollectChangeset']();_0x22a355['setPivotCollapse']={'view':_0x19d6c2,'isEmpty':_0x54f0b7,'pivotTableConfig':_0x58b260,'changesets':_0x9d696a};}break;case _0x223f7f['SetPivotTableConfig']:{const _0x348772=_0x1259d1[_0xa5923b(0x185)][_0xa5923b(0x29b)];if(!_0x348772)return;const {pivotTableConfig:_0x539a40}=_0x348772,_0x453a63=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x29b0f2),_0x3dafd1=this[_0xa5923b(0x314)]['getPivotTableConfig'](_0x325254,_0x5f1cc1,_0x29b0f2);if(!_0x453a63||!_0x3dafd1)return;_0x453a63[_0xa5923b(0x2f2)](),_0x1c4de1(_0x453a63,_0x539a40);const _0xa628a9=_0x453a63[_0xa5923b(0x15c)](),_0x20f380=_0x453a63[_0xa5923b(0x210)]()['toJSON'](),_0x4f0727=_0x453a63[_0xa5923b(0x360)]();_0x22a355[_0xa5923b(0x29b)]={'view':_0x20f380,'isEmpty':_0xa628a9,'pivotTableConfig':{..._0x3dafd1,'fieldsConfig':_0x453a63[_0xa5923b(0x37f)]()},'changesets':_0x4f0727};}break;case _0x223f7f['ResetPivotTable']:{const _0x1a95ba=_0x1259d1[_0xa5923b(0x185)][_0xa5923b(0x2c3)];if(!_0x1a95ba)return;const _0x3a3a5e=this[_0xa5923b(0x314)][_0xa5923b(0x2db)](_0x29b0f2),_0x294c84=this[_0xa5923b(0x314)][_0xa5923b(0x132)](_0x325254,_0x5f1cc1,_0x29b0f2);if(!_0x3a3a5e||!_0x294c84)return;_0x3a3a5e['startCollectChangeset'](),_0x150d80(_0x3a3a5e,_0x1a95ba[_0xa5923b(0x1e2)]);const _0x26e960=_0x3a3a5e[_0xa5923b(0x210)]()[_0xa5923b(0x37f)](),_0x245e21=_0x3a3a5e['endCollectChangeset']();_0x22a355[_0xa5923b(0x2c3)]={'view':_0x26e960,'isEmpty':!0x0,'pivotTableConfig':{..._0x294c84,'fieldsConfig':_0x3a3a5e['toJSON']()},'changesets':_0x245e21};}break;case _0x223f7f[_0xa5923b(0x2b2)]:{const _0x14c8d3=_0x1259d1['params'][_0xa5923b(0x134)];if(!_0x14c8d3)return;const _0x161a09=_0x14c8d3[_0xa5923b(0x12a)],_0xc5eb42=_0x14c8d3[_0xa5923b(0x140)],{collection:_0x203c6a}=this[_0xa5923b(0x314)][_0xa5923b(0x161)]({'unitId':_0x161a09[_0xa5923b(0x35b)],'sheetName':_0x161a09[_0xa5923b(0x378)],'subUnitId':_0x161a09[_0xa5923b(0x32f)],'range':_0x161a09[_0xa5923b(0x383)]}),_0x351381=new _0x38bc74[(_0xa5923b(0x221))](_0x203c6a,void 0x0,_0xc5eb42),_0x1595ba=_0x203c6a[_0xa5923b(0x90)](),{rows:_0x12a72e,columns:_0x315d71,filters:_0xc7f2f8,values:_0x25a1e4}=_0x14c8d3['pivotTableIndexConfig'];_0x351381[_0xa5923b(0x2f2)]();for(const {field:_0x4251f3,selectedItems:_0x496fd1}of _0x12a72e||[]){const _0x1ac780=_0x1595ba[_0x4251f3];if(_0x1ac780){const _0x42dd3c=_0x351381['addFieldWithSourceId'](_0x1ac780,_0x38bc74[_0xa5923b(0x1fa)]['Row']);_0x496fd1&&_0x42dd3c&&_0x351381[_0xa5923b(0x124)](_0x42dd3c[_0xa5923b(0x13f)](),{'type':_0x38bc74[_0xa5923b(0x1af)][_0xa5923b(0x33e)],'list':_0x496fd1,'isAll':!0x1});}}for(const {field:_0x269876,selectedItems:_0x52a7dd}of _0x315d71||[]){const _0x341b1c=_0x1595ba[_0x269876];if(_0x341b1c){const _0x2d8607=_0x351381[_0xa5923b(0xad)](_0x341b1c,_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x38f)]);_0x52a7dd&&_0x2d8607&&_0x351381['setLabelFilterInfo'](_0x2d8607[_0xa5923b(0x13f)](),{'type':_0x38bc74[_0xa5923b(0x1af)][_0xa5923b(0x33e)],'list':_0x52a7dd,'isAll':!0x1});}}for(const {field:_0x5cb7af,selectedItems:_0x3403c0}of _0xc7f2f8||[]){const _0x2cbf9f=_0x1595ba[_0x5cb7af];if(_0x2cbf9f){const _0x24b86f=_0x351381[_0xa5923b(0xad)](_0x2cbf9f,_0x38bc74[_0xa5923b(0x1fa)]['Filter']);_0x3403c0&&_0x24b86f&&_0x351381[_0xa5923b(0x124)](_0x24b86f[_0xa5923b(0x13f)](),{'type':_0x38bc74['PivotFilterTypeEnum']['ManualFilter'],'list':_0x3403c0,'isAll':!0x1});}}for(const {field:_0x25ef62,subTotalType:_0x5e0a3f,formatString:_0x54b0ac}of _0x25a1e4||[]){const _0x5d6145=_0x203c6a[_0xa5923b(0x15a)](_0x1595ba[_0x25ef62]);if(!_0x5d6145)continue;const _0x55fdc5=_0x1595ba[_0x25ef62];if(_0x55fdc5){const _0x210043=_0x351381[_0xa5923b(0xad)](_0x55fdc5,_0x38bc74[_0xa5923b(0x1fa)][_0xa5923b(0x9a)]);if(_0x210043){if(_0x5e0a3f!==void 0x0){_0x351381[_0xa5923b(0x313)](_0x210043[_0xa5923b(0x13f)](),_0x5e0a3f);const _0x509860=this[_0xa5923b(0x314)]['getDataFieldManager'](_0x161a09[_0xa5923b(0x35b)])['getAutoDisplayNameFunction']()||_0x38bc74[_0xa5923b(0xe0)],_0x488653=_0x203c6a[_0xa5923b(0xa9)](_0x55fdc5),_0x1bd266=_0x509860(_0x488653,_0x5e0a3f);_0x351381[_0xa5923b(0x25a)](_0x210043[_0xa5923b(0x13f)](),_0x1bd266);}else{if(_0x5d6145){const _0x23dfc5=_0x5d6145==null?void 0x0:_0x5d6145['getFieldDataType']();_0x351381[_0xa5923b(0x313)](_0x210043[_0xa5923b(0x13f)](),_0x23dfc5===_0x38bc74[_0xa5923b(0x395)][_0xa5923b(0x2ef)]?_0x38bc74[_0xa5923b(0x123)][_0xa5923b(0xeb)]:_0x38bc74['PivotSubtotalTypeEnum'][_0xa5923b(0x1ac)]);}}_0x54b0ac&&_0x351381[_0xa5923b(0x250)](_0x210043[_0xa5923b(0x13f)](),_0x54b0ac);}}}const _0x5d1d89=_0x351381[_0xa5923b(0x210)](),_0x5e80b2=_0x351381['toJSON'](),_0x7dc490=_0x351381['isEmpty'](),_0x463082=_0x351381['endCollectChangeset'](),_0x3242ba=_0x203c6a[_0xa5923b(0x37f)]();_0x22a355['addPivotTableWithConfig']={'view':_0x5d1d89,'fieldsConfig':_0x5e80b2,'collectionConfig':_0x3242ba,'isEmpty':_0x7dc490,'changesets':_0x463082};}break;case _0x223f7f['DrillDown']:{const _0x182ea5=_0x57d6e4(this[_0xa5923b(0x93)],_0x1259d1);if(!_0x182ea5)return;const {range:_0x240cdc,sourceSubUnitId:_0x424b86,sourceUnitId:_0x143a2d,formatMap:_0x5f33e1,indexes:_0x532fbf}=_0x182ea5;_0x22a355['drillDown']={'range':_0x240cdc,'sourceSubUnitId':_0x424b86,'sourceUnitId':_0x143a2d,'formatMap':_0x5f33e1,'indexes':_0x532fbf};}break;}this[_0xa5923b(0x30a)][_0xa5923b(0xff)](_0x1c305c['id'],{'version':_0x1259d1[_0xa5923b(0x27d)],'result':_0x22a355},{'onlyLocal':!0x0});}));}['_initPivotTextInfo'](){const _0x294f23=_0x566c44;this[_0x294f23(0x18a)](this['_commandService'][_0x294f23(0x342)](_0x1c7cab=>{const _0x3c6fa4=_0x294f23;if(_0x1c7cab['id']!==_0x2373dc['id'])return;const _0x1f6ddc=_0x1c7cab[_0x3c6fa4(0x185)];return this[_0x3c6fa4(0x314)]['setTextInfo'](_0x1f6ddc['textInfo']),!0x0;}));}['_subjectCollectionChange'](){const _0x6d6ce6=_0x566c44;this[_0x6d6ce6(0x314)][_0x6d6ce6(0x126)][_0x6d6ce6(0x251)](_0x13c39b=>{const _0x168e17=_0x6d6ce6;switch(_0x13c39b['type']){case _0x2a7c10[_0x168e17(0x158)]:_0x13c39b['dataRangeInfo']&&_0x13c39b[_0x168e17(0x12d)]&&this['handleSourceRangeChange'](_0x13c39b[_0x168e17(0x2d9)],_0x13c39b[_0x168e17(0x340)],_0x13c39b['targetCellInfo']);break;case _0x2a7c10[_0x168e17(0x15f)]:{const {unitId:_0x5288b6,subUnitId:_0x258de9,token:_0x149b23}=_0x13c39b;_0x5288b6&&_0x258de9&&_0x149b23&&this['removeSourceRangeChange'](_0x5288b6,_0x258de9,_0x149b23);}break;case _0x2a7c10['update']:{const {token:_0x48541a,oldSourceRangeInfo:_0x148992,dataRangeInfo:_0x51bf51,targetCellInfo:_0x3a1757}=_0x13c39b,{unitId:_0x15923,subUnitId:_0x307e0f}=_0x148992||{};_0x15923&&_0x307e0f&&_0x48541a&&this[_0x168e17(0x2f4)](_0x15923,_0x307e0f,_0x48541a),_0x51bf51&&_0x3a1757&&this[_0x168e17(0xf1)](_0x48541a,_0x51bf51,_0x3a1757);}break;}});}[_0x566c44(0x36f)](){const _0x1a1ee5=_0x566c44;this[_0x1a1ee5(0x314)]['fieldsCollectionChange$'][_0x1a1ee5(0x251)](_0x28b638=>{const _0x4d135c=_0x1a1ee5;Object[_0x4d135c(0x102)](_0x28b638)[_0x4d135c(0xe5)](_0x409483=>{const _0x55871f=_0x4d135c,_0x67cc1=this[_0x55871f(0x314)][_0x55871f(0x19b)](_0x409483);if(_0x67cc1){const _0x4ba801=this[_0x55871f(0x314)][_0x55871f(0x132)](_0x67cc1==null?void 0x0:_0x67cc1[_0x55871f(0x35b)],_0x67cc1==null?void 0x0:_0x67cc1[_0x55871f(0x32f)],_0x409483);_0x4ba801&&(this[_0x55871f(0xf1)](_0x409483,_0x4ba801[_0x55871f(0x12a)],_0x4ba801[_0x55871f(0x12d)]),this[_0x55871f(0x248)]([{'unitId':_0x67cc1[_0x55871f(0x35b)],'subUnitId':_0x67cc1[_0x55871f(0x32f)],'token':_0x409483}]));}});});}[_0x566c44(0x1f9)](){const _0x327e7e=_0x566c44;this[_0x327e7e(0x314)][_0x327e7e(0x8c)][_0x327e7e(0x251)](_0x4d4aa6=>{const _0x2f910e=_0x327e7e,{unitId:_0x2deb65,subUnitId:_0x1c68c6,pivotTableId:_0x32f68e}=_0x4d4aa6;_0x2deb65&&_0x1c68c6&&_0x32f68e&&this[_0x2f910e(0x248)]([{'unitId':_0x2deb65,'subUnitId':_0x1c68c6,'token':_0x32f68e}]);});}[_0x566c44(0x248)](_0x404133){const _0x150867=_0x566c44,_0x1f68ca={};_0x404133[_0x150867(0xe5)](_0x2935ee=>{var _0x51498c,_0x5037b3;const {unitId:_0x407c58,subUnitId:_0x5db569,token:_0x216ae8}=_0x2935ee;_0x1f68ca[_0x407c58]=(_0x51498c=_0x1f68ca[_0x407c58])!=null?_0x51498c:{},_0x1f68ca[_0x407c58][_0x5db569]=(_0x5037b3=_0x1f68ca[_0x407c58][_0x5db569])!=null?_0x5037b3:{},_0x1f68ca[_0x407c58][_0x5db569][_0x216ae8]=!0x0;}),this['_commandService'][_0x150867(0xff)](_0x2cd19f['id'],_0x1f68ca);}[_0x566c44(0x2f4)](_0xaf2b4,_0x44ffe3,_0x12f87f){const _0x1f9c7c=_0x566c44;this['_featureCalculationManagerService'][_0x1f9c7c(0x101)](_0xaf2b4,_0x44ffe3,[_0x12f87f]);}['handleSourceRangeChange'](_0x4530c1,_0x51b3e2,_0x444927){const _0x193585=_0x566c44,{unitId:_0x266fbb,subUnitId:_0x140a61}=_0x51b3e2;this[_0x193585(0x176)][_0x193585(0x137)](_0x444927[_0x193585(0x35b)],_0x444927[_0x193585(0x32f)],_0x4530c1)&&this[_0x193585(0x2f4)](_0x266fbb,_0x140a61,_0x4530c1);const _0x34e5fd={'sheetId':_0x140a61,..._0x51b3e2};this['_featureCalculationManagerService'][_0x193585(0x284)](_0x444927[_0x193585(0x35b)],_0x444927['subUnitId'],_0x4530c1,{'unitId':_0x444927[_0x193585(0x35b)],'subUnitId':_0x444927[_0x193585(0x32f)],'dependencyRanges':[_0x34e5fd],'getDirtyData':(_0x3440b2,_0x96e41c)=>{const _0x2a07a0=_0x193585,_0x6fb5c1=this[_0x2a07a0(0x314)],_0xe9c5cc=_0x6fb5c1['getTargetByPivotId'](_0x4530c1);if(!_0xe9c5cc)return _0x42c550();const {unitId:_0x5e6d79,subUnitId:_0x474735}=_0xe9c5cc,_0x5d231a=_0x35f8da(_0x3440b2,_0x96e41c,_0x51b3e2);if(_0x5d231a[_0x2a07a0(0x13c)]>0x0){const _0x14be18=_0x6fb5c1[_0x2a07a0(0x1e6)](_0x266fbb,_0x4530c1),_0x11c6c8=_0x14be18['getFieldIds'](),_0x12946e=this[_0x2a07a0(0x2de)](_0x51b3e2[_0x2a07a0(0x35b)],_0x51b3e2[_0x2a07a0(0x32f)],_0x96e41c),_0x5a95fd={},_0x5ee22a=this[_0x2a07a0(0x314)][_0x2a07a0(0x34c)](_0x5e6d79)[_0x2a07a0(0xbd)]()||_0x38bc74[_0x2a07a0(0xe0)],_0x7fe8bb=[];for(const _0x31e779 of _0x5d231a){const _0x375c51=_0x31e779-(_0x51b3e2[_0x2a07a0(0x383)][_0x2a07a0(0x175)]||0x0),_0x4ae0ab=_0x11c6c8[_0x375c51];_0x7fe8bb[_0x2a07a0(0xb7)](_0x4ae0ab),_0x5a95fd[_0x4ae0ab]=_0x14be18[_0x2a07a0(0x15a)](_0x4ae0ab)[_0x2a07a0(0x279)](),_0x6fb5c1[_0x2a07a0(0x34c)](_0x266fbb)['refreshDataField'](_0x4ae0ab,_0x51b3e2,_0x375c51,_0x12946e);}_0x14be18[_0x2a07a0(0x35c)](_0x7fe8bb)[_0x2a07a0(0xe5)](_0xa96eb7=>{const _0x5ea81d=_0x2a07a0,[_0x25f46a,_0x13997e]=_0xa96eb7,_0x23eedb=_0x14be18[_0x5ea81d(0x15a)](_0x25f46a),_0x37f547=_0x14be18[_0x5ea81d(0x15a)](_0x13997e);_0x23eedb&&_0x37f547&&_0x23eedb[_0x5ea81d(0xc3)](_0x37f547);}),_0x14be18[_0x2a07a0(0x130)]();const _0x519301=_0x6fb5c1['getPivotTableInstance'](_0x4530c1);if(_0x519301){_0x1a9adc(_0x519301,_0x5a95fd,_0x5ee22a),_0x519301['setDirty'](!0x0);const _0x4a78a7=_0x519301['query'](),_0x93f3e5=_0x6fb5c1[_0x2a07a0(0x132)](_0x5e6d79,_0x474735,_0x4530c1),_0x4c1e28=_0x6fb5c1['getDataFieldManager'](_0x266fbb)[_0x2a07a0(0x37f)]();_0x6fb5c1['updateView'](_0x5e6d79,_0x474735,_0x3e1445['Set'],_0x4530c1,_0x4a78a7,_0x93f3e5,_0x4c1e28,!0x0);}}return this[_0x2a07a0(0x254)](_0x5e6d79,_0x474735,_0x4530c1);}});}[_0x566c44(0x2de)](_0x25a486,_0x220b1c,_0x5b1fe4){var _0x29cd6f,_0x1bdf1c;const {arrayFormulaCellData:_0x572811,unitData:_0xe19bd3}=_0x5b1fe4,_0x369787=(_0x29cd6f=_0x572811==null?void 0x0:_0x572811[_0x25a486])==null?void 0x0:_0x29cd6f[_0x220b1c],_0x265432=(_0x1bdf1c=_0xe19bd3==null?void 0x0:_0xe19bd3[_0x25a486])==null?void 0x0:_0x1bdf1c[_0x220b1c];return{'arrayFormulaCellDataMatrix':_0x369787,'unitDataMatrix':_0x265432};}['getDirtyInfo'](_0x58f016,_0x3d1828,_0x15fb3e){const _0x34474e=_0x566c44,_0x3c493c=this[_0x34474e(0x314)][_0x34474e(0x28f)](_0x58f016,_0x3d1828,_0x15fb3e),_0xa34353=[],_0x55667e=new _0x493c7d[(_0x34474e(0x335))]();if(_0x3c493c){const {rangeCache:_0x4c41ca,matrix:_0x32ec22,oldRangeCache:_0xa3a7a4,oldMatrix:_0x280e75}=_0x3c493c,_0x5c0548=_0x259848(_0xa3a7a4),_0x192b33=_0x259848(_0x4c41ca);_0xa34353[_0x34474e(0xb7)](..._0x192b33,..._0x5c0548),_0x280e75&&_0xa3a7a4&&_0x5c0548[_0x34474e(0xe5)](_0x48ee0e=>{const _0x22f9fa=_0x34474e;for(let _0x198e07=_0x48ee0e[_0x22f9fa(0x1cf)];_0x198e07<=_0x48ee0e['endRow'];_0x198e07++)for(let _0x29d991=_0x48ee0e['startColumn'];_0x29d991<=_0x48ee0e['endColumn'];_0x29d991++)_0x55667e[_0x22f9fa(0x223)](_0x198e07,_0x29d991);}),_0x32ec22&&_0x192b33&&_0x192b33['forEach'](_0x48a4fd=>{const _0x5c7e75=_0x34474e;for(let _0x503212=_0x48a4fd[_0x5c7e75(0x1cf)];_0x503212<=_0x48a4fd[_0x5c7e75(0x1b5)];_0x503212++)for(let _0x3a943d=_0x48a4fd['startColumn'];_0x3a943d<=_0x48a4fd[_0x5c7e75(0x354)];_0x3a943d++)_0x55667e['setValue'](_0x503212,_0x3a943d,_0x32ec22[_0x5c7e75(0x276)](_0x503212,_0x3a943d));});}const _0x18e766={};return _0x18e766[_0x58f016]={[_0x3d1828]:_0xa86050(_0xa34353)},{'runtimeCellData':{[_0x58f016]:{[_0x3d1828]:_0x55667e}},'dirtyRanges':_0x18e766};}[_0x566c44(0xa5)](){}};_0x1a8822=_0x2d9c1c([_0x1fff11(0x0,_0x493c7d[_0x566c44(0xc0)](_0x190415[_0x566c44(0x324)])),_0x1fff11(0x1,_0x493c7d[_0x566c44(0xa7)]),_0x1fff11(0x2,_0x493c7d['Inject'](_0x3d1a00[_0x566c44(0x278)])),_0x1fff11(0x3,_0x493c7d['Inject'](_0x493c7d[_0x566c44(0x1a0)])),_0x1fff11(0x4,_0x493c7d['Inject'](_0x3d1a00[_0x566c44(0x270)])),_0x1fff11(0x5,_0x493c7d[_0x566c44(0xc0)](_0x493c7d['Injector']))],_0x1a8822);var _0x37abce=Object[_0x566c44(0x183)],_0x382136=(_0x561fe8,_0x3138af,_0x1daf28,_0x66fa85)=>{for(var _0xb1d939=_0x66fa85>0x1?void 0x0:_0x66fa85?_0x37abce(_0x3138af,_0x1daf28):_0x3138af,_0x2b1224=_0x561fe8['length']-0x1,_0x1a8039;_0x2b1224>=0x0;_0x2b1224--)(_0x1a8039=_0x561fe8[_0x2b1224])&&(_0xb1d939=_0x1a8039(_0xb1d939)||_0xb1d939);return _0xb1d939;},_0xee6c54=(_0x47cc6b,_0x2bb3e0)=>(_0x2b9759,_0x341c4b)=>_0x2bb3e0(_0x2b9759,_0x341c4b,_0x47cc6b);let _0x47d9e1=class extends _0x493c7d[_0x566c44(0x1ef)]{constructor(_0x14bce5,_0x4cbe43,_0x159ec2,_0x217ed6){const _0x17884c=_0x566c44;super(),_0x3a454e(this,_0x17884c(0x120),new _0x493c7d['DisposableCollection']()),(this[_0x17884c(0x394)]=_0x14bce5,this[_0x17884c(0x16a)]=_0x4cbe43,this[_0x17884c(0x2d5)]=_0x159ec2,this[_0x17884c(0x87)]=_0x217ed6,this[_0x17884c(0xd6)]());}['_initClearSelectionCommandInterceptor'](){const _0x23853c=_0x566c44;this[_0x23853c(0x18a)](this['_sheetInterceptorService'][_0x23853c(0x143)]({'getMutations':_0x39d4d4=>{const _0x24659e=_0x23853c;if(_0x39d4d4['id']===_0x188291['ClearSelectionContentCommand']['id']||_0x39d4d4['id']===_0x188291[_0x24659e(0x184)]['id']){const _0x2554bc=[],_0x554173=[],_0x5ceb6b=this[_0x24659e(0x2d5)][_0x24659e(0x1ad)]()['map'](_0x5dc53d=>_0x5dc53d[_0x24659e(0x383)]),_0x5d9147=_0x188291[_0x24659e(0x10e)](this['_univerInstanceService']);if(!_0x5d9147)return{'redos':[],'undos':[]};const {unitId:_0x2193e0,subUnitId:_0x47123f}=_0x5d9147,_0x18868c={},_0x2180fd=this[_0x24659e(0x87)][_0x24659e(0x1ab)](_0x2193e0,_0x47123f);if(_0x2180fd!=null&&_0x2180fd[_0x24659e(0x399)])for(const [_0x54d745,_0x2f5ee7]of _0x2180fd){const {unitId:_0x376270,subUnitId:_0x2d03e1,row:_0x42574f,col:_0x17c2a4}=_0x2f5ee7[_0x24659e(0x12d)];_0x376270===_0x5d9147[_0x24659e(0x35b)]&&_0x2d03e1===_0x5d9147['subUnitId']&&(_0x18868c[_0x42574f+'-'+_0x17c2a4]=_0x54d745);}return _0x5ceb6b&&_0x5d9147&&_0x5ceb6b['forEach'](_0x438c8d=>{const _0x218c0e=_0x24659e;_0x493c7d[_0x218c0e(0x236)][_0x218c0e(0x1e0)](_0x438c8d,(_0x1b85da,_0x153e26)=>{const _0x2dc64e=_0x218c0e,_0x5c83bc=_0x1b85da+'-'+_0x153e26;if(_0x18868c[_0x5c83bc]){const _0x44a563=_0x18868c[_0x5c83bc];_0x2554bc[_0x2dc64e(0xb7)]({'id':_0x20bb2b['id'],'params':{'unitId':_0x2193e0,'subUnitId':_0x47123f,'pivotTableId':_0x44a563}});const _0x2c4d0c=this[_0x2dc64e(0x87)][_0x2dc64e(0x1e6)](_0x2193e0,_0x44a563),_0x12eab0=this['_sheetsPivotTableConfigModel']['getPivotTableConfig'](_0x2193e0,_0x47123f,_0x44a563);_0x554173[_0x2dc64e(0xb7)]({'id':_0x20bce1['id'],'params':{'unitId':_0x2193e0,'subUnitId':_0x47123f,'pivotTableId':_0x44a563,'pivotTableConfig':_0x12eab0,'collectionConfig':_0x2c4d0c}});}});}),{'redos':_0x2554bc,'undos':_0x554173};}return{'redos':[],'undos':[]};}}));}};_0x47d9e1=_0x382136([_0xee6c54(0x0,_0x493c7d[_0x566c44(0x356)]),_0xee6c54(0x1,_0x493c7d[_0x566c44(0xc0)](_0x188291[_0x566c44(0x343)])),_0xee6c54(0x2,_0x493c7d['Inject'](_0x188291[_0x566c44(0x133)])),_0xee6c54(0x3,_0x493c7d[_0x566c44(0xc0)](_0x190415[_0x566c44(0x142)]))],_0x47d9e1);var _0x3b8d06=Object[_0x566c44(0x183)],_0x2a03cc=(_0xcd8f56,_0x15976d,_0x2a8871,_0x379179)=>{const _0x1b918c=_0x566c44;for(var _0x24fa52=_0x379179>0x1?void 0x0:_0x379179?_0x3b8d06(_0x15976d,_0x2a8871):_0x15976d,_0x4cb62e=_0xcd8f56[_0x1b918c(0x13c)]-0x1,_0x142a78;_0x4cb62e>=0x0;_0x4cb62e--)(_0x142a78=_0xcd8f56[_0x4cb62e])&&(_0x24fa52=_0x142a78(_0x24fa52)||_0x24fa52);return _0x24fa52;},_0x13976c=(_0x2fa2fe,_0x1850ad)=>(_0x50b34a,_0x3dd8a6)=>_0x1850ad(_0x50b34a,_0x3dd8a6,_0x2fa2fe);let _0x1d8ead=class extends _0x493c7d['Disposable']{constructor(_0x1fec6b,_0x2fbbd8,_0x54251a,_0x144fe9,_0x51e92e,_0x4505f0){const _0x327915=_0x566c44;super(),this[_0x327915(0x1d2)]=_0x1fec6b,this[_0x327915(0x16a)]=_0x2fbbd8,this[_0x327915(0x93)]=_0x54251a,this['_univerInstanceService']=_0x144fe9,this['_sheetsPivotTableConfigModel']=_0x51e92e,this['_sheetsPivotTableService']=_0x4505f0,this[_0x327915(0x1bb)]();}[_0x566c44(0x303)](_0x4a267d,_0x170491,_0x49c0){const _0x923c16=_0x566c44,{pageView:_0x4faf47,cornerView:_0x322ec0,rowView:_0x581bc3,colView:_0x5d518d,dataView:_0x4c03ea}=_0x170491,_0x2de3e8=_0x4a267d;let _0x179d61;if(_0x49c0)_0x179d61=[..._0x3c809f(_0x2de3e8)];else{const _0x284d89=_0x403407(_0x2de3e8,_0x4faf47,!0x0),_0x2f338b=_0x4faf47[_0x923c16(0x247)]>=0x0?_0x4faf47[_0x923c16(0x247)]+0x1:0x0,_0x258211=_0x322ec0['rowCount'],_0x3cc8f9=_0x322ec0[_0x923c16(0x238)],_0x5b1237=_0x284d89[_0x923c16(0x13c)]>0x0?_0x2657b5:0x0,_0xf01bb1=_0x403407({'row':_0x2de3e8[_0x923c16(0x232)]+_0x2f338b+_0x5b1237,'col':_0x2de3e8[_0x923c16(0x212)]},_0x322ec0,!0x1,!0x1),_0x3fdd40=_0x403407({'row':_0x2de3e8[_0x923c16(0x232)]+_0x2f338b+_0x5b1237+_0x258211,'col':_0x2de3e8['col']},_0x581bc3,!0x1,!0x0),_0x2af52f=_0x403407({'row':_0x2de3e8[_0x923c16(0x232)]+_0x2f338b+_0x5b1237,'col':_0x2de3e8['col']+_0x3cc8f9},_0x5d518d,!0x1,!0x0),_0x7cdae=_0x403407({'row':_0x2de3e8['row']+_0x2f338b+_0x5b1237+_0x258211,'col':_0x2de3e8['col']+_0x3cc8f9},_0x4c03ea,!0x1,!0x0);_0x179d61=[..._0x284d89,..._0xf01bb1,..._0x3fdd40,..._0x2af52f,..._0x7cdae];}return _0x179d61;}[_0x566c44(0x1bb)](){const _0x900edd=_0x566c44;this[_0x900edd(0x18a)](this[_0x900edd(0x1df)][_0x900edd(0x20a)][_0x900edd(0xb6)](this[_0x900edd(0x1df)][_0x900edd(0x20a)][_0x900edd(0x1f0)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x553b48,_0xd36558)=>{const _0x5b19ad=_0x900edd,{cellInfo:_0x246098,view:_0x21d558,isEmpty:_0x5f3f50}=_0xd36558,_0x11d3c3=_0x246098,{unitId:_0x33dbad,subUnitId:_0x3f0a6d}=_0x11d3c3,_0x5e7fe6=this['_getPivotAppliedRanges'](_0x246098,_0x21d558,_0x5f3f50),_0x4757da=this[_0x5b19ad(0x16a)][_0x5b19ad(0x36c)]({'unitId':_0x33dbad,'subUnitId':_0x3f0a6d,'ranges':_0x5e7fe6}),_0xc9694e=_0x4ccb9d(this[_0x5b19ad(0x93)],_0x33dbad,_0x3f0a6d,_0x5e7fe6);_0xc9694e[_0x5b19ad(0x156)]&&(_0x4757da[_0x5b19ad(0x1cb)][_0x5b19ad(0xb7)](_0xc9694e[_0x5b19ad(0x21d)]),_0x4757da[_0x5b19ad(0x97)]['push'](_0xc9694e[_0x5b19ad(0x26e)]));const _0xed822d=this[_0x5b19ad(0x2c7)](_0x21d558,_0x246098);return _0x4757da[_0x5b19ad(0x1cb)][_0x5b19ad(0xb7)](..._0xed822d[_0x5b19ad(0x1cb)]),_0x4757da['undos'][_0x5b19ad(0xb7)](..._0xed822d[_0x5b19ad(0x97)]),{'redos':_0x4757da[_0x5b19ad(0x1cb)],'undos':_0x4757da[_0x5b19ad(0x97)]};}}));}[_0x566c44(0x2c7)](_0x5c3d7e,_0x446d15){const _0xc8977f=_0x566c44,{col:_0x657d1f,unitId:_0x450885,subUnitId:_0x5538e3}=_0x446d15,_0x5d13d7=[],_0x364d7b=[],_0x4f93d2=_0x188291[_0xc8977f(0x10e)](this[_0xc8977f(0x394)],{'unitId':_0x450885,'subUnitId':_0x5538e3});if(!_0x446d15||!_0x5c3d7e||!_0x4f93d2)return{'undos':_0x364d7b,'redos':_0x5d13d7};const _0x1ce73e=this[_0xc8977f(0x87)][_0xc8977f(0x269)](),{colView:_0x381e1e,dataView:_0x59fa67,cornerView:_0x1e2a30,rowView:_0x386dca,formatMap:_0x461e96}=_0x5c3d7e,_0x56bfd9=_0x280cb4(_0x381e1e,_0x1ce73e,!0x0,_0x461e96),_0x1aaadb=_0x280cb4(_0x386dca,_0x1ce73e,!0x1,_0x461e96),_0x4706cc=_0x2eca5f(_0x59fa67),_0x5bca05=_0x38eca3(_0x1e2a30),{worksheet:_0x23a3c4}=_0x4f93d2;if(typeof window<'u'&&window[_0xc8977f(0x260)]){const _0x3c3f2c=_0x2b763b[_0xc8977f(0x1ae)]({..._0x487c1e[_0xc8977f(0xef)]}),_0xc050b5=_0x2b763b['FontCache']['getTextSize'](_0x56bfd9,_0x3c3f2c)['width']+0x10,_0x5345f5=_0x2b763b[_0xc8977f(0x318)][_0xc8977f(0x1f2)](_0x4706cc,_0x3c3f2c)[_0xc8977f(0xf7)],_0x4ad277=Math[_0xc8977f(0x267)](Math['max'](_0xc050b5,_0x5345f5))+0x10,_0xf49048=Math[_0xc8977f(0x267)](_0x2b763b[_0xc8977f(0x318)][_0xc8977f(0x1f2)](_0x1aaadb,_0x3c3f2c)['width']),_0x47ad07=Math[_0xc8977f(0x267)](_0x2b763b['FontCache']['getTextSize'](_0x5bca05,_0x3c3f2c)[_0xc8977f(0xf7)]),_0xc64e5=Math['max'](_0xf49048,_0x47ad07,0x28)+0xc,_0x1a96ea=_0x381e1e[_0xc8977f(0x238)]+_0x1e2a30[_0xc8977f(0x238)],_0x541b92={},_0x270f48={};for(let _0x2bee4d=_0x657d1f;_0x2bee4d<_0x657d1f+_0x1a96ea;_0x2bee4d++){const _0x1f9839=_0x23a3c4[_0xc8977f(0x131)](_0x2bee4d);_0x541b92[_0x2bee4d]=_0x1f9839,_0x2bee4d-_0x657d1f<_0x1e2a30['colCount']?_0x270f48[_0x2bee4d-_0x657d1f]=_0xc64e5:_0x270f48[_0x2bee4d-_0x657d1f]=_0x4ad277;}_0x5d13d7[_0xc8977f(0xb7)]({'id':_0x188291[_0xc8977f(0x38a)]['id'],'params':{'subUnitId':_0x5538e3,'unitId':_0x450885,'ranges':[{'startColumn':_0x657d1f,'endColumn':_0x657d1f+_0x1a96ea-0x1,'startRow':0x0,'endRow':_0x23a3c4[_0xc8977f(0x121)]()-0x1}],'colWidth':_0x270f48}}),_0x364d7b['push']({'id':_0x188291['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x5538e3,'unitId':_0x450885,'ranges':[{'startColumn':_0x657d1f,'endColumn':_0x657d1f+_0x1a96ea-0x1,'startRow':0x0,'endRow':_0x23a3c4[_0xc8977f(0x121)]()-0x1}],'colWidth':_0x541b92}});}return{'undos':_0x364d7b,'redos':_0x5d13d7};}};_0x1d8ead=_0x2a03cc([_0x13976c(0x0,_0x493c7d['Inject'](_0x493c7d[_0x566c44(0x2e7)])),_0x13976c(0x1,_0x493c7d['Inject'](_0x188291[_0x566c44(0x343)])),_0x13976c(0x2,_0x493c7d[_0x566c44(0xc0)](_0x493c7d['Injector'])),_0x13976c(0x3,_0x493c7d['Inject'](_0x493c7d[_0x566c44(0x356)])),_0x13976c(0x4,_0x493c7d[_0x566c44(0xc0)](_0x190415['SheetsPivotTableConfigModel'])),_0x13976c(0x5,_0x493c7d[_0x566c44(0xc0)](_0x190415[_0x566c44(0x10c)]))],_0x1d8ead);var _0x1ca7c7=Object['getOwnPropertyDescriptor'],_0xd92dbc=(_0x34d57f,_0x3dc7c8,_0x243717,_0x37647f)=>{for(var _0x9bcf7=_0x37647f>0x1?void 0x0:_0x37647f?_0x1ca7c7(_0x3dc7c8,_0x243717):_0x3dc7c8,_0x232551=_0x34d57f['length']-0x1,_0x53fa95;_0x232551>=0x0;_0x232551--)(_0x53fa95=_0x34d57f[_0x232551])&&(_0x9bcf7=_0x53fa95(_0x9bcf7)||_0x9bcf7);return _0x9bcf7;},_0x263315=(_0x55659f,_0x55b28e)=>(_0x326a38,_0x5226db)=>_0x55b28e(_0x326a38,_0x5226db,_0x55659f);let _0x2d9fd4=class extends _0x493c7d[_0x566c44(0x1ef)]{constructor(_0x27ccd3,_0x274689,_0x35e7cb,_0xdfb8fb,_0x44b32a,_0x1d3560,_0x5e33e6){const _0x28ccfb=_0x566c44;super(),_0x3a454e(this,_0x28ccfb(0x120),new _0x493c7d[(_0x28ccfb(0x2da))]()),(this[_0x28ccfb(0x93)]=_0x27ccd3,this[_0x28ccfb(0x195)]=_0x274689,this[_0x28ccfb(0x30a)]=_0x35e7cb,this['_univerInstanceService']=_0xdfb8fb,this[_0x28ccfb(0x87)]=_0x44b32a,this[_0x28ccfb(0xab)]=_0x1d3560,this[_0x28ccfb(0x16a)]=_0x5e33e6,this[_0x28ccfb(0x179)]());}[_0x566c44(0x179)](){const _0x32123e=_0x566c44,_0x5d0f09=(_0xca4879,_0x333fc7)=>{const _0x255fdd=_0x5ae0,_0x32fb4b=this['_univerInstanceService'][_0x255fdd(0x1c3)](_0x493c7d[_0x255fdd(0x33a)][_0x255fdd(0x2ae)]);if(!_0x32fb4b||!(_0x32fb4b==null?void 0x0:_0x32fb4b[_0x255fdd(0x17e)](_0x333fc7)))return;this[_0x255fdd(0x120)][_0x255fdd(0xa5)]();const _0x25f0f4=_0x17acb9=>this['_refRangeHandle'](_0x17acb9,_0xca4879,_0x333fc7),_0xf6d0b8=this['_sheetsPivotTableConfigModel'][_0x255fdd(0x1ab)](_0xca4879,_0x333fc7);if(!(_0xf6d0b8!=null&&_0xf6d0b8[_0x255fdd(0x399)]))return;Array['from'](_0xf6d0b8['values']())[_0x255fdd(0x1c9)](_0xd19027=>{const _0x3c0c18=_0x255fdd,{row:_0x4d2658,col:_0x1c335d}=_0xd19027['targetCellInfo'];return _0x493c7d[_0x3c0c18(0x362)](_0x4d2658,_0x1c335d);})[_0x255fdd(0xe5)](_0xa3609f=>{const _0x41854d=_0x255fdd;this[_0x41854d(0x120)][_0x41854d(0x158)](this['_refRangeService'][_0x41854d(0x2d4)](_0xa3609f,_0x25f0f4,_0xca4879,_0x333fc7));});},_0x2a9e5a=()=>{const _0x5673d7=_0x5ae0,_0x3b2d19=this[_0x5673d7(0x394)]['getCurrentUnitForType'](_0x493c7d['UniverInstanceType'][_0x5673d7(0x2ae)]);if(_0x3b2d19){const _0x35d16f=_0x3b2d19[_0x5673d7(0x198)]();if(!_0x35d16f)return;_0x5d0f09(_0x3b2d19[_0x5673d7(0x2a9)](),_0x35d16f[_0x5673d7(0x149)]());}};this['disposeWithMe'](this[_0x32123e(0x30a)][_0x32123e(0x342)](_0x170b87=>{const _0x2ac836=_0x32123e;if(_0x170b87['id']===_0x188291[_0x2ac836(0x380)]['id']){const _0x48716d=_0x170b87[_0x2ac836(0x185)],_0xdd61d6=_0x48716d[_0x2ac836(0x32f)],_0x4b22af=_0x48716d['unitId'];if(!_0xdd61d6||!_0x4b22af)return;_0x5d0f09(_0x4b22af,_0xdd61d6);}})),this[_0x32123e(0x18a)](this[_0x32123e(0x87)][_0x32123e(0x11a)][_0x32123e(0x251)](_0x1ac1c0=>{_0x1ac1c0&&_0x2a9e5a();})),this[_0x32123e(0x18a)](this[_0x32123e(0x87)][_0x32123e(0xfd)]['subscribe'](_0x2a9d57=>{const _0x234990=_0x32123e,_0x711c44=_0x188291[_0x234990(0x10e)](this['_univerInstanceService']);if(!_0x711c44)return;const {unitId:_0x15d03f,subUnitId:_0x1e9080}=_0x711c44,{unitId:_0x2c897f,subUnitId:_0x4b0b99}=_0x2a9d57;_0x15d03f!==_0x2c897f||_0x1e9080!==_0x4b0b99||_0x5d0f09(_0x15d03f,_0x1e9080);})),_0x2a9e5a();}[_0x566c44(0x376)](_0x44483f,_0x3520f7,_0x19b15f){const _0x4e40ff=_0x566c44;switch(_0x44483f['id']){case _0x188291['MoveRangeCommand']['id']:return this['getRefRangeMutationsByMoveRange'](_0x44483f[_0x4e40ff(0x185)],_0x3520f7,_0x19b15f);}return{'redos':[],'undos':[]};}[_0x566c44(0x226)](_0x2b3b7c,_0x545b61,_0x9c1cb0){const _0x547251=_0x566c44,{fromRange:_0x5f1f0b,toRange:_0x5c6874}=_0x2b3b7c,_0x232860=[],_0x26f9b0=[],_0x49d07f=_0x188291['getSheetCommandTarget'](this[_0x547251(0x394)]);if(!_0x49d07f)return{'undos':_0x26f9b0,'redos':_0x232860};if(_0x545b61!==_0x49d07f[_0x547251(0x35b)]||_0x9c1cb0!==_0x49d07f['subUnitId'])return{'undos':_0x26f9b0,'redos':_0x232860};const _0x4b2cd7=this[_0x547251(0x87)]['getSubUnitPivotConfigs'](_0x545b61,_0x9c1cb0);if(_0x4b2cd7!=null&&_0x4b2cd7[_0x547251(0x399)])for(const [_0x3275e0,_0x5ad048]of _0x4b2cd7){const {unitId:_0x42cb99,subUnitId:_0x1b42eb,row:_0x1e5e9d,col:_0x4593f9}=_0x5ad048['targetCellInfo'];if(_0x42cb99===_0x49d07f[_0x547251(0x35b)]&&_0x1b42eb===_0x49d07f['subUnitId']){const _0x51a068=_0x493c7d['cellToRange'](_0x1e5e9d,_0x4593f9);if(_0x493c7d[_0x547251(0x249)][_0x547251(0x2ad)](_0x51a068,_0x5f1f0b)){const _0x470166=_0x1e5e9d-_0x5f1f0b[_0x547251(0x1cf)],_0x40d19f=_0x4593f9-_0x5f1f0b['startColumn'],_0x4f6b15={'row':_0x5c6874['startRow']+_0x470166,'col':_0x5c6874['startColumn']+_0x40d19f};_0x232860['push']({'id':_0x1ee6e8['id'],'params':{'unitId':_0x42cb99,'subUnitId':_0x1b42eb,'pivotTableId':_0x3275e0,'targetCellPosition':_0x4f6b15}}),_0x26f9b0['push']({'id':_0x1ee6e8['id'],'params':{'unitId':_0x42cb99,'subUnitId':_0x1b42eb,'pivotTableId':_0x3275e0,'targetCellPosition':{'row':_0x1e5e9d,'col':_0x4593f9}}});const _0x4509d5=_0x4f6b15[_0x547251(0x232)]-_0x1e5e9d,_0x23b3f2=_0x4f6b15[_0x547251(0x212)]-_0x4593f9,_0x302d6f=[],_0x3f16b1=this[_0x547251(0xab)][_0x547251(0x310)](_0x42cb99,_0x1b42eb,_0x3275e0),_0x5aa8ef=_0x3f16b1==null?void 0x0:_0x3f16b1[_0x547251(0x162)];if(_0x5aa8ef){Object[_0x547251(0x102)](_0x5aa8ef)[_0x547251(0xe5)](_0x5c4d65=>{const _0x4218d0=_0x547251;_0x5aa8ef[_0x5c4d65][_0x4218d0(0xe5)](_0x413e60=>{const _0x9d5504=_0x4218d0,_0x4954d8={..._0x413e60};_0x4954d8[_0x9d5504(0x1cf)]=_0x413e60[_0x9d5504(0x1cf)]+_0x4509d5,_0x4954d8[_0x9d5504(0x1b5)]=_0x413e60['endRow']+_0x4509d5,_0x4954d8[_0x9d5504(0x175)]=_0x413e60[_0x9d5504(0x175)]+_0x23b3f2,_0x4954d8[_0x9d5504(0x354)]=_0x413e60['endColumn']+_0x23b3f2,_0x302d6f['push'](_0x4954d8);});});const _0x1ecc0c=this[_0x547251(0x16a)][_0x547251(0x36c)]({'unitId':_0x42cb99,'subUnitId':_0x1b42eb,'ranges':_0x302d6f});_0x232860[_0x547251(0xb7)](..._0x1ecc0c[_0x547251(0x1cb)]),_0x26f9b0[_0x547251(0xb7)](..._0x1ecc0c['undos']);const _0x399503=_0x4ccb9d(this[_0x547251(0x93)],_0x42cb99,_0x1b42eb,_0x302d6f);_0x399503[_0x547251(0x156)]&&(_0x232860[_0x547251(0xb7)](_0x399503[_0x547251(0x21d)]),_0x26f9b0[_0x547251(0xb7)](_0x399503[_0x547251(0x26e)]));}}}}return{'redos':_0x232860,'undos':_0x26f9b0};}};_0x2d9fd4=_0xd92dbc([_0x263315(0x0,_0x493c7d['Inject'](_0x493c7d[_0x566c44(0x1a5)])),_0x263315(0x1,_0x493c7d[_0x566c44(0xc0)](_0x188291['RefRangeService'])),_0x263315(0x2,_0x493c7d[_0x566c44(0x1a0)]),_0x263315(0x3,_0x493c7d[_0x566c44(0x356)]),_0x263315(0x4,_0x493c7d[_0x566c44(0xc0)](_0x190415[_0x566c44(0x142)])),_0x263315(0x5,_0x493c7d['Inject'](_0x190415[_0x566c44(0x2e1)])),_0x263315(0x6,_0x493c7d[_0x566c44(0xc0)](_0x188291[_0x566c44(0x343)]))],_0x2d9fd4);var _0x5de9cb=Object[_0x566c44(0x183)],_0x5393e8=(_0xbcb2ff,_0x2cb834,_0x42c20c,_0x27a5e0)=>{for(var _0x33ee3d=_0x27a5e0>0x1?void 0x0:_0x27a5e0?_0x5de9cb(_0x2cb834,_0x42c20c):_0x2cb834,_0x491c98=_0xbcb2ff['length']-0x1,_0xcb7835;_0x491c98>=0x0;_0x491c98--)(_0xcb7835=_0xbcb2ff[_0x491c98])&&(_0x33ee3d=_0xcb7835(_0x33ee3d)||_0x33ee3d);return _0x33ee3d;},_0x42e026=(_0x4db8e1,_0x2618ed)=>(_0x2b5373,_0x285464)=>_0x2618ed(_0x2b5373,_0x285464,_0x4db8e1);let _0x5c1bea=class extends _0x493c7d[_0x566c44(0x1ef)]{constructor(_0x2f95bd,_0x8360ca){const _0x5815cf=_0x566c44;super(),this[_0x5815cf(0x16a)]=_0x2f95bd,this[_0x5815cf(0x87)]=_0x8360ca,this['_initRemoveSheetCommandInterceptor']();}['_initRemoveSheetCommandInterceptor'](){const _0x337e4d=_0x566c44;this[_0x337e4d(0x18a)](this[_0x337e4d(0x16a)]['interceptCommand']({'getMutations':_0x2a3057=>{const _0x300607=_0x337e4d;if(_0x2a3057['id']===_0x188291[_0x300607(0x2ff)]['id']){const _0x4932da=[],_0x277bba=[],_0x4eb820=_0x2a3057[_0x300607(0x185)],{unitId:_0x153a62,subUnitId:_0x369b0b}=_0x4eb820;if(!_0x153a62||!_0x369b0b)return{'undos':_0x277bba,'redos':_0x4932da};const _0x36151e=this['_sheetsPivotTableConfigModel'][_0x300607(0x1ab)](_0x153a62,_0x369b0b);if(_0x36151e!=null&&_0x36151e[_0x300607(0x399)])for(const [_0x5ce372,_0x51d148]of _0x36151e){_0x4932da[_0x300607(0xb7)]({'id':_0x20bb2b['id'],'params':{'unitId':_0x153a62,'subUnitId':_0x369b0b,'pivotTableId':_0x5ce372}});const _0x49af1f={...this[_0x300607(0x87)][_0x300607(0x1e6)](_0x153a62,_0x5ce372)};_0x277bba[_0x300607(0xb7)]({'id':_0x20bce1['id'],'params':{'unitId':_0x153a62,'subUnitId':_0x369b0b,'pivotTableId':_0x5ce372,'pivotTableConfig':_0x51d148,'collectionConfig':_0x49af1f}});}return{'redos':_0x4932da,'undos':_0x277bba};}return{'redos':[],'undos':[]};}}));}};_0x5c1bea=_0x5393e8([_0x42e026(0x0,_0x493c7d[_0x566c44(0xc0)](_0x188291[_0x566c44(0x343)])),_0x42e026(0x1,_0x493c7d[_0x566c44(0xc0)](_0x190415['SheetsPivotTableConfigModel']))],_0x5c1bea);var _0x34f065=Object[_0x566c44(0x183)],_0x30353b=(_0x5ac4d3,_0x318176,_0xacadfa,_0x381ef8)=>{const _0x4e8c4b=_0x566c44;for(var _0xf61c3c=_0x381ef8>0x1?void 0x0:_0x381ef8?_0x34f065(_0x318176,_0xacadfa):_0x318176,_0xa81595=_0x5ac4d3[_0x4e8c4b(0x13c)]-0x1,_0x255017;_0xa81595>=0x0;_0xa81595--)(_0x255017=_0x5ac4d3[_0xa81595])&&(_0xf61c3c=_0x255017(_0xf61c3c)||_0xf61c3c);return _0xf61c3c;},_0x50d2f3=(_0x4e2527,_0x41800f)=>(_0x159d1c,_0xa1ddd)=>_0x41800f(_0x159d1c,_0xa1ddd,_0x4e2527);let _0xbd031d=class extends _0x493c7d[_0x566c44(0x1ef)]{constructor(_0x51a6ee,_0x1a95a5,_0x566f83,_0x3ba0a1,_0x12038e,_0xa291ca){const _0xfdf695=_0x566c44;super(),this[_0xfdf695(0x30a)]=_0x51a6ee,this[_0xfdf695(0x116)]=_0x1a95a5,this[_0xfdf695(0xab)]=_0x566f83,this[_0xfdf695(0x87)]=_0x3ba0a1,this[_0xfdf695(0x394)]=_0x12038e,this[_0xfdf695(0x211)]=_0xa291ca,this[_0xfdf695(0xfc)](),this['registerDirtyService']();}[_0x566c44(0xfc)](){const _0x4b6454=_0x566c44;this[_0x4b6454(0x18a)](this[_0x4b6454(0x30a)][_0x4b6454(0x342)](_0x5b6d74=>{const _0x58b8a3=_0x4b6454;if(_0x5b6d74['id']!==_0x1c305c['id'])return;const _0x1d3ed6=_0x5b6d74[_0x58b8a3(0x185)];this[_0x58b8a3(0x116)][_0x58b8a3(0x1b0)](_0x1d3ed6);})),this[_0x4b6454(0x18a)](this[_0x4b6454(0x30a)]['onCommandExecuted'](_0x2ed1c2=>{const _0x1be415=_0x4b6454;if(_0x2ed1c2['id']===_0x5bf8da['id']){const _0x41e20d=_0x2ed1c2[_0x1be415(0x185)];if(_0x41e20d){const {unitId:_0x4ad45f,subUnitId:_0xc60761,oldSubUnitId:_0x186a40,pivotTableId:_0x2826e4,pivotTableConfig:_0x4f0124,collectionConfig:_0x3be048}=_0x41e20d;this[_0x1be415(0x87)]['updateConfigCache'](_0x4ad45f,_0x186a40,_0x41e20d['pivotTableId'],null),this[_0x1be415(0x87)][_0x1be415(0x2df)](_0x4ad45f,_0xc60761,_0x2826e4,_0x4f0124),this[_0x1be415(0x87)][_0x1be415(0x21c)](_0x4ad45f,_0x3be048);}}})),this['disposeWithMe'](this[_0x4b6454(0x30a)][_0x4b6454(0x342)](_0x11e585=>{const _0x1fa854=_0x4b6454;if(_0x11e585['id']!==_0x241f07['id'])return;const _0xe4ac78=_0x188291[_0x1fa854(0x10e)](this['_univerInstanceService']);if(!_0xe4ac78)return;const {unitId:_0x2938f5,subUnitId:_0x29538d}=_0xe4ac78,_0x1ed827=_0x11e585['params'];if(_0x1ed827[_0x1fa854(0x239)]&&Object[_0x1fa854(0x102)](_0x1ed827[_0x1fa854(0x239)])[_0x1fa854(0xe5)](_0x363425=>{const _0x7cd97=_0x1fa854;var _0x974560;(_0x974560=_0x1ed827[_0x7cd97(0x239)])!=null&&_0x974560[_0x363425]&&this['_sheetsPivotTableConfigModel']['updateCollectionConfig'](_0x363425,_0x1ed827[_0x7cd97(0x239)][_0x363425]);}),_0x1ed827[_0x1fa854(0x2bd)]){const _0x273eee=_0x1ed827[_0x1fa854(0x2bd)],{unitId:_0x160ae4,subUnitId:_0x3ae296,view:_0x4fb1,pivotTableId:_0x3c55ef,type:_0x1a6876,pivotConfig:_0x4f5fc3}=_0x273eee;if(_0x1a6876===_0x3e1445[_0x1fa854(0x107)])this[_0x1fa854(0xab)][_0x1fa854(0x237)]({'unitId':_0x160ae4,'subUnitId':_0x3ae296,'pivotTableId':_0x3c55ef,'type':_0x1a6876}),this['_sheetsPivotTableConfigModel'][_0x1fa854(0x2df)](_0x160ae4,_0x3ae296,_0x3c55ef,null);else{const _0x14e200=new _0x38bc74['PivotView']();_0x14e200[_0x1fa854(0x34e)](_0x4fb1),this[_0x1fa854(0x87)]['updateConfigCache'](_0x160ae4,_0x3ae296,_0x3c55ef,_0x4f5fc3),this[_0x1fa854(0xab)][_0x1fa854(0x237)]({'unitId':_0x160ae4,'subUnitId':_0x3ae296,'pivotTableId':_0x3c55ef,'type':_0x1a6876,'view':_0x14e200}),this[_0x1fa854(0xab)][_0x1fa854(0xf8)]({'unitId':_0x160ae4,'subUnitId':_0x3ae296,'view':_0x14e200,'pivotTableId':_0x3c55ef,'type':_0x1a6876});}}else _0x1ed827[_0x1fa854(0x37c)]&&(_0x1ed827[_0x1fa854(0x37c)]['forEach'](_0x591084=>{const _0x151cc5=_0x1fa854,{unitId:_0x222d7e,subUnitId:_0x5b9f13,view:_0x12cf8c,pivotTableId:_0x53e631,type:_0x162d34,pivotConfig:_0x2e38d8}=_0x591084,_0x3854c9=new _0x38bc74['PivotView']();_0x3854c9['formJSON'](_0x12cf8c),this[_0x151cc5(0x87)][_0x151cc5(0x2df)](_0x222d7e,_0x5b9f13,_0x53e631,_0x2e38d8),this['_sheetsPivotTableAdaptorModel']['updateRenderCache']({'unitId':_0x222d7e,'subUnitId':_0x5b9f13,'view':_0x3854c9,'pivotTableId':_0x53e631,'type':_0x162d34});}),this['_sheetsPivotTableConfigModel']['setPivotInitCompleted']());this[_0x1fa854(0xab)]['markDirty'](_0x2938f5,_0x29538d);}));}['registerDirtyService'](){const _0x5acbb4=_0x566c44;this[_0x5acbb4(0x211)]['register'](_0x2cd19f['id'],{'commandId':_0x2cd19f['id'],'getDirtyData'(_0x3ef2a0){const _0x355457=_0x5acbb4;return{'dirtyUnitFeatureMap':_0x3ef2a0[_0x355457(0x185)]};}});}};_0xbd031d=_0x30353b([_0x50d2f3(0x0,_0x493c7d[_0x566c44(0xc0)](_0x493c7d[_0x566c44(0x1a0)])),_0x50d2f3(0x1,_0x493c7d[_0x566c44(0xc0)](_0x190415[_0x566c44(0x388)])),_0x50d2f3(0x2,_0x493c7d[_0x566c44(0xc0)](_0x190415[_0x566c44(0x2e1)])),_0x50d2f3(0x3,_0x493c7d[_0x566c44(0xc0)](_0x190415[_0x566c44(0x142)])),_0x50d2f3(0x4,_0x493c7d[_0x566c44(0xc0)](_0x493c7d[_0x566c44(0x356)])),_0x50d2f3(0x5,_0x3d1a00[_0x566c44(0x220)])],_0xbd031d);var _0x552077=Object[_0x566c44(0x396)],_0x3f1b96=Object['getOwnPropertyDescriptor'],_0x37543f=(_0x433c44,_0x3383c7,_0x1044f7)=>_0x3383c7 in _0x433c44?_0x552077(_0x433c44,_0x3383c7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1044f7}):_0x433c44[_0x3383c7]=_0x1044f7,_0x2c61d6=(_0x101aad,_0x437893,_0x218b1f,_0x48a294)=>{const _0x2ac49b=_0x566c44;for(var _0x4836cd=_0x48a294>0x1?void 0x0:_0x48a294?_0x3f1b96(_0x437893,_0x218b1f):_0x437893,_0x2b5f56=_0x101aad[_0x2ac49b(0x13c)]-0x1,_0x1779aa;_0x2b5f56>=0x0;_0x2b5f56--)(_0x1779aa=_0x101aad[_0x2b5f56])&&(_0x4836cd=_0x1779aa(_0x4836cd)||_0x4836cd);return _0x4836cd;},_0x37039c=(_0x9e3157,_0x59766d)=>(_0x5dc47f,_0x597cb1)=>_0x59766d(_0x5dc47f,_0x597cb1,_0x9e3157),_0x29121c=(_0xe01a32,_0x4b70fd,_0x318e17)=>_0x37543f(_0xe01a32,typeof _0x4b70fd!=_0x566c44(0x165)?_0x4b70fd+'':_0x4b70fd,_0x318e17);_0x190415[_0x566c44(0xb9)]=class extends _0x493c7d[_0x566c44(0x2bc)]{constructor(_0x2a9489=_0x480f04,_0x164931,_0x2861bb,_0x2d5106,_0x2e3322){const _0x415961=_0x566c44;super(),this['_config']=_0x2a9489,this[_0x415961(0x93)]=_0x164931,this[_0x415961(0x30a)]=_0x2861bb,this[_0x415961(0x31e)]=_0x2d5106,this[_0x415961(0x390)]=_0x2e3322;const {..._0x34b92c}=_0x493c7d[_0x415961(0x1a3)]({},_0x480f04,this[_0x415961(0x1ea)]);this[_0x415961(0x31e)][_0x415961(0x311)](_0xcf4f55,_0x34b92c),this[_0x415961(0x253)](),this['_initConfig']();}[_0x566c44(0x2ea)](){const _0x4c1bfd=_0x566c44;var _0x4a4009;const _0x4360df=(_0x4a4009=this[_0x4c1bfd(0x1ea)])==null?void 0x0:_0x4a4009[_0x4c1bfd(0x17f)];this[_0x4c1bfd(0x31e)]['setConfig'](_0xb9a66d,_0x4360df===!0x0);}['onStarting'](){const _0x28ef49=_0x566c44;var _0x5120f4;let _0x3d6b14=[];const _0x2e9fdf=(_0x5120f4=this[_0x28ef49(0x1ea)])==null?void 0x0:_0x5120f4['notExecuteFormula'];_0x2e9fdf===!0x0?_0x3d6b14=[[_0x190415[_0x28ef49(0x10c)]],[_0x190415[_0x28ef49(0x388)]],[_0xbd031d],[_0x190415['SheetsPivotTableAdaptorModel']],[_0x190415[_0x28ef49(0x142)]],[_0x5c1bea],[_0x47d9e1],[_0x2d9fd4],[_0x1d8ead]]:_0x2e9fdf===!0x1?_0x3d6b14=[[_0x190415['SheetsPivotDataSourceModel']],[_0x1a8822]]:_0x2e9fdf===void 0x0&&(_0x3d6b14=[[_0x190415['SheetsPivotDataSourceModel']],[_0x1a8822],[_0x190415[_0x28ef49(0x10c)]],[_0x190415[_0x28ef49(0x388)]],[_0xbd031d],[_0x190415['SheetsPivotTableAdaptorModel']],[_0x190415[_0x28ef49(0x142)]],[_0x5c1bea],[_0x47d9e1],[_0x2d9fd4],[_0x1d8ead]]),_0x3d6b14[_0x28ef49(0xe5)](_0x3e5030=>this[_0x28ef49(0x93)][_0x28ef49(0x158)](_0x3e5030)),[_0x1a8822,_0xbd031d,_0x190415[_0x28ef49(0x10c)],_0x47d9e1,_0x5c1bea,_0x2d9fd4,_0x1d8ead][_0x28ef49(0xe5)](_0x5c130=>{const _0x5c91bc=_0x28ef49;this[_0x5c91bc(0x93)]['has'](_0x5c130)&&this[_0x5c91bc(0x93)][_0x5c91bc(0x9f)](_0x5c130);});}[_0x566c44(0x253)](){const _0x486c7a=_0x566c44;[_0x29caaa,_0x1b6683,_0x3946d1,_0x434644,_0x1a9d27,_0x2cc102,_0x42b2ed,_0x39e029,_0x196307,_0x866ee8,_0x52a0ca,_0x2e92cb,_0x244222,_0x4e47b0,_0x20bce1,_0x53b74b,_0x20bb2b,_0x427f59,_0x224351,_0x5bac82,_0x2993c6,_0x18897e,_0x3e1ca4,_0x406146,_0x38df92,_0x1d49cb,_0x1ee6e8,_0x33cd84,_0x1c305c,_0x241f07,_0x50f5a3,_0x1e8f14,_0x219519,_0x1704bb,_0x2373dc,_0x837734,_0x189f85,_0x2cd19f,_0x5bf8da,_0x48dd4f,_0x3c2891,_0x2d938e,_0x26ee75][_0x486c7a(0xe5)](_0x1dbbd1=>{const _0x161b9c=_0x486c7a;var _0x4eee6a;(_0x4eee6a=this['_dataSyncPrimaryController'])==null||_0x4eee6a[_0x161b9c(0x1b8)](_0x1dbbd1),this[_0x161b9c(0x30a)][_0x161b9c(0x105)](_0x1dbbd1);});}},_0x29121c(_0x190415[_0x566c44(0xb9)],_0x566c44(0x127),_0x2600ad),_0x29121c(_0x190415[_0x566c44(0xb9)],_0x566c44(0xa4),_0x493c7d[_0x566c44(0x33a)][_0x566c44(0x2ae)]),_0x190415[_0x566c44(0xb9)]=_0x2c61d6([_0x493c7d[_0x566c44(0x136)](_0x17beef[_0x566c44(0x26c)]),_0x37039c(0x1,_0x493c7d[_0x566c44(0xc0)](_0x493c7d[_0x566c44(0x1a5)])),_0x37039c(0x2,_0x493c7d[_0x566c44(0xc0)](_0x493c7d[_0x566c44(0x1a0)])),_0x37039c(0x3,_0x493c7d[_0x566c44(0xa7)]),_0x37039c(0x4,_0x493c7d[_0x566c44(0x287)](_0x3859bf[_0x566c44(0x20b)]))],_0x190415['UniverSheetsPivotTablePlugin']),_0x190415['AddPivotFieldCommand']=_0x3946d1,_0x190415[_0x566c44(0xe1)]=_0x427f59,_0x190415['AddPivotTableCommand']=_0x1b6683,_0x190415[_0x566c44(0x392)]=_0x20bce1,_0x190415[_0x566c44(0x8a)]=_0x29caaa,_0x190415[_0x566c44(0xd1)]=_0x2657b5,_0x190415[_0x566c44(0x104)]=_0x4302a8,_0x190415[_0x566c44(0x387)]=_0x434644,_0x190415[_0x566c44(0x257)]=_0x244222,_0x190415[_0x566c44(0x201)]=_0x223f7f,_0x190415[_0x566c44(0x1ee)]=_0x4e47b0,_0x190415[_0x566c44(0x241)]=_0x3e1445,_0x190415[_0x566c44(0x302)]=_0x2cd19f,_0x190415[_0x566c44(0x273)]=_0x34f04a,_0x190415[_0x566c44(0x2bb)]=_0x1a9d27,_0x190415['RemovePivotFieldMutation']=_0x18897e,_0x190415[_0x566c44(0x348)]=_0x20bb2b,_0x190415[_0x566c44(0x341)]=_0x3e1ca4,_0x190415['ResetPivotFieldsConfigCommand']=_0x26ee75,_0x190415[_0x566c44(0x338)]=_0xcf4f55,_0x190415['SHEET_PIVOT_TABLE_PLUGIN']=_0x2600ad,_0x190415[_0x566c44(0x2b3)]=_0x39e029,_0x190415[_0x566c44(0x9e)]=_0x406146,_0x190415[_0x566c44(0x217)]=_0x1704bb,_0x190415[_0x566c44(0xf3)]=_0x2d938e,_0x190415[_0x566c44(0x11e)]=_0x866ee8,_0x190415[_0x566c44(0x2b4)]=_0x2993c6,_0x190415[_0x566c44(0x108)]=_0x1d49cb,_0x190415[_0x566c44(0x23c)]=_0x1ee6e8,_0x190415[_0x566c44(0x23e)]=_0x196307,_0x190415[_0x566c44(0x190)]=_0x38df92,_0x190415[_0x566c44(0x1b3)]=_0x219519,_0x190415[_0x566c44(0x34d)]=_0x48dd4f,_0x190415[_0x566c44(0xdd)]=_0x3c2891,_0x190415[_0x566c44(0x196)]=_0x42b2ed,_0x190415[_0x566c44(0xf6)]=_0x50f5a3,_0x190415[_0x566c44(0x82)]=_0x52a0ca,_0x190415[_0x566c44(0x1ec)]=_0x189f85,_0x190415[_0x566c44(0x372)]=_0x2e92cb,_0x190415[_0x566c44(0x109)]=_0x837734,_0x190415[_0x566c44(0x1d3)]=_0x2cc102,_0x190415[_0x566c44(0x1aa)]=_0x1e8f14,_0x190415[_0x566c44(0x2e8)]=_0x52b608,_0x190415[_0x566c44(0x265)]=_0x2cafe8,_0x190415[_0x566c44(0x8e)]=_0x487c1e,_0x190415[_0x566c44(0x100)]=_0x4ccb9d,_0x190415['getAdjustRangesPosition']=_0x403407,_0x190415[_0x566c44(0x163)]=_0x3c809f,_0x190415['getFieldListByArea']=_0x249710,_0x190415['getInsertRowColMutations']=_0x14be64,_0x190415[_0x566c44(0x294)]=_0x119ead,_0x190415[_0x566c44(0x37b)]=_0x5bc9e8,_0x190415['getPivotTableInfo']=_0x24b403,_0x190415[_0x566c44(0x1d4)]=_0x18b92d,_0x190415['unionPivotViewRange']=_0x259848,Object['defineProperty'](_0x190415,Symbol[_0x566c44(0x22e)],{'value':_0x566c44(0x18c)});}));function _0x5ae0(_0x3887d5,_0x47fa1a){const _0x46680a=_0x4668();return _0x5ae0=function(_0x5ae0e8,_0x434f84){_0x5ae0e8=_0x5ae0e8-0x80;let _0x3a7521=_0x46680a[_0x5ae0e8];return _0x3a7521;},_0x5ae0(_0x3887d5,_0x47fa1a);}function _0x4668(){const _0x2b2abb=['registerCallbackWithEvent','RenameField','RemoveSheetCommand','limit\x20pivot','getSourceName','PivotTableViewDirtyMarkOperation','_getPivotAppliedRanges','sheets-pivot.stdDevName','pageStyle','InterceptorManager','Date','SetFieldFormat','_deleteModelCache','_commandService','getFieldDataType','updateView','sheet.command.set-pivot-value-filter','ErrorType','deepClone','getPivotItemRenderInfoCache','setConfig','sheet.command.add-pivot-table','setSubtotalType','_sheetsPivotDataSourceModel','isDateValue','getPivotDirtyViewInfo','isBaseGroupField','FontCache','sheet.mutation.send-pivot-view-local','sheets-pivot.subTotal','311118UVwLbw','iterateFieldByArea','call','_configService','RANGE_TYPE','setPivotTable','colInfo','_fieldsCollectionChange$','getSubtotal','SheetsPivotDataSourceModel','getLastRow','_globalComputedStartHelpFunc','CommandType','@univerjs/sheets-filter','onQueryEnd','parse','prefix','6026570NfWLrw','includes','sortInfo','subUnitId','_pivotRenderValueMatrixCache','pbt','Varp\x20of\x20','Subject','isDateGroupField','ObjectMatrix','#eceeff','@univerjs/engine-formula','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','collections','UniverInstanceType','generateNewSheetName','Collapse','product','ManualFilter','UniverSheetsFilter','dataRangeInfo','RenamePivotFieldMutation','onCommandExecuted','SheetInterceptorService','fetchThroughAsyncInterceptors','441809frjXre','deleteDataField','sheet.mutation.get-pivot-data-local','RemovePivotTableMutation','colHeaderMap','registerPluginResource','DateGroupField','getDataFieldManager','SetPivotValueFilterCommand','formJSON','_init','sheets-pivot.averageName','adjustSheetCellData','Set','addField','endColumn','format','IUniverInstanceService','_pivotTableInstanceCache','dimension','IExclusiveRangeService','sheets-pivot.cellDateGroupDisplay.yearQuarter','unitId','getGroupFieldsInfoByIds','UniverEngineFormula','sheets-pivot.dateGroup.quarter','setDateType','endCollectChangeset','DataField','cellToRange','NotName','getPivotTableIdByCell','min','getPivotTableMatrixInfo','updateRangeKeyMap','addPivotTable','Style','var','cornerRanges','generateMutationsByRanges','updateDirtyPivotTable','sheet.mutation.set-pivot-value-filter','_subjectFieldsCollectionChange','addCollection','_collectionChange$','UpdatePivotTableSourceRangeCommand','setPivotSetting','PivotViewCellValueTypeEnum','setPivotSort','_refRangeHandle','removePivotTable','sheetName','setValueFilterInfo','SetPivotSetting','getPivotInfoByLicense','batch','originTargetInfo','split','toJSON','SetWorksheetActiveOperation','_collectionConfigModel','sheets-pivot.varName','range','drillDown','setRangeKeyMap','substring','MovePivotFieldCommand','SheetsPivotRPCService','getPivotTableModelConfig','SetWorksheetColWidthMutation','sheet.mutation.set-pivot-filter','sheet.command.set-pivot-filter','updateFieldSourceInfo','some','Column','_dataSyncPrimaryController','MUTATION','AddPivotTableMutation','_requestResolvers','_univerInstanceService','PivotDataFieldDataTypeEnum','defineProperty','createDataFieldId','rowFields','size','SetCollapse','getRangeKeyList','stdDevp','setDataRecordCount','RemoveColMutation','LS_CONFIG_KEY','sheets-pivot.emptyPivot.row','UpdatePivotFieldSettingCommand','Month','message','headerMap','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','_sheetsPivotTableConfigModel','tuple','_initPivotTextInfo','AddPivotTableWithConfigCommand','Expand','viewData$','getTableFieldById','defaultThemeStyle','isNaN','getFieldIds','sheets-pivot.cellDateGroupDisplay.minute','UniverEngineRender','_injector','body','sheet.command.pivot-drill-down','excelDateToUnixMilliseconds','undos','MonthDate','InsertSheetUndoMutationFactory','Value','getSheetBySheetName','Product\x20of\x20','valueIndex','SetPivotCollapseMutation','get','YearQuarter','IUndoRedoService','getPivotTableRangeInfo','sheet.mutation.set-pivot-collapse','type','dispose','140601KKdjmF','IConfigService','sheets-pivot.cellDateGroupDisplay.month','getDisplayName','lastCol','_sheetsPivotTableAdaptorModel','unshiftString','addFieldWithSourceId','RemoveField','_dataFieldManagerCollection','pushUndoRedo','_pivotConfigChange$','AddField','@univerjs/rpc','@univerjs/engine-render','find','intercept','push','set','UniverSheetsPivotTablePlugin','_viewData','originalFieldId','isBottomTotal','getAutoDisplayNameFunction','_pivotTableRangeInfo','queryDirtyPivotTable','Inject','_textInfo','mergeWorksheetSnapshotWithDefault','refreshGroupField','IResourceManagerService','sheets.tabs.sheet','FieldsCollection','filter','blank','Existing','addExclusiveRange','updatePivotTableRangeInfo','addCollectionByJSON','panel','sheet.mutation.update-pivot-table-source-range','versions','sheet.mutation.remove-pivot-table','BLANK_ROW_COUNT','getFilterInfo','getMatrix','date','sheet.mutation.add-pivot-table','_initClearSelectionCommandInterceptor','reduce','sheets-pivot.cellDateGroupDisplay.yearMonth','Subtotal','dataStream','_ensurePivotItemRenderInfoCache','columnFields','SetPivotValueFilterMutation','sheets-pivot.config','object','getAutoDisplayName','AddPivotFieldMutation','PivotDateGroupFieldDateTypeEnum','getSheetFeatureLimit','MAX_SAFE_INTEGER','forEach','sheets-pivot.dateGroup.year','DEFAULT_WORKSHEET_COLUMN_COUNT','DEFAULT_WORKSHEET_ROW_COUNT','uniqueDataFieldName','_updateModelCache','sum','fields','amd','movePivotField','colStyle','pivotMutationGenerate','handleSourceRangeChange','_ensurePivotTableMatrixInfo','SetPivotFieldsConfigCommand','_ensureViewDataMap','_getAutoName','UpdateFieldPositionMutation','width','updateRenderCache','SetPivotTableConfig','SetSheetsFilterRangeMutation','displayName','_initDataSendListener','pivotConfigChange$','isValue','executeCommand','generateSetRangeValueMutations','remove','keys','asObservable','DEFAULT_PIVOT_NUMBER','registerCommand','_globalComputingSrv','Delete','SetPivotOptionMutation','UpdatePivotTableSourceRangeMutation','SetPivotCollapse','getRangeStartEndInfo','SheetsPivotTableService','Quarter','getSheetCommandTarget','max','MoveRangeMutation','getDate','Values','error','_initPivotDataGetListener','4812624awzmib','_sheetsPivotRpcService','UpdateSource','UpdateValuePosition','_createExclusiveRange','pivotInitCompleted$','SetPivotFilter','@univerjs/sheets','leafStyle','SetPivotFilterCommand','_lifecycleService','disposableCollection','getRowCount','getFullYear','PivotSubtotalTypeEnum','setLabelFilterInfo','isArray','collectionChange$','pluginName','PivotMultipleValueId','existing','sourceRangeInfo','#FFFFFF','getDataFieldBySourceName','targetCellInfo','getDataFieldByRangeKey','sheets-pivot.dateGroup.month','updateAllDisplayName','getColumnWidth','getPivotTableConfig','SheetsSelectionsService','addPivotTableWithConfig','PivotTableChangeTypeEnum','DependentOn','has','createInterceptorKey','getColumnCount','_globalSubject','getFieldPositionInfoById','length','collection','slice','getId','pivotTableId','setPivotInitCompleted','SheetsPivotTableConfigModel','interceptCommand','dataFieldsCollection','sheet.command.remove-pivot-field','string','updateConfig','_ensurePivotMap','getSheetId','subtotal','rxjs','AddPivotTable','getTargetByPivotTableId','sheet.command.update-date-group','Sum\x20of\x20','getSortInfo','pushComputingStatusSubject','serializeRangeWithSpreadsheet','iterateFieldDim','YearMonthDate','UpdateFieldPosition','shouldClear','isColMultiMeasure','add','getColCount','getFieldById','removeField','isEmpty','sheets-pivot.emptyPivot.values','toString','delete','getMatrixValue','createCollectionWithDataRange','rangesInfo','getEmptyPivotRanges','setValue','symbol','addDirtyPivotTable','Average\x20of\x20','addRecord','sheet.mutation.set-pivot-position','_sheetInterceptorService','sheets-pivot.emptyPivot.filter','UniverProLicense','numfmt','_pivotInitCompleted$','sheets-pivot.stdDevpName','tableFieldId','setSourceName','isPrefixValue','Panel','SHEET_PIVOT_TABLE_PLUGIN','startColumn','_featureCalculationManagerService','sheets-pivot.minName','sheets-pivot.cellDateGroupDisplay.hour','_onRefRangeChange','cornerInfo','COMMAND','getLastCol','COLUMN','getSheetBySheetId','notExecuteFormula','name','fontRenderExtension','getStyles','getOwnPropertyDescriptor','ClearSelectionAllCommand','params','getRangeData','getDataFieldByDataFieldId','StdDevp\x20of\x20','setPivotCollapse','disposeWithMe','contains','Module','setName','ResetPivotTable','sheets-pivot.cellDateGroupDisplay.hourMinute','SetPivotSortMutation','next','@univerjs/core','options','3847440fGojNB','_refRangeService','UpdateDateGroupCommand','function','getActiveSheet','collapseInfo','setOptions','getTargetByPivotId','UniverCore','colRanges','Div0','from','ICommandService','Row','BaseGroupField','merge','Min\x20of\x20','Injector','unshift','SetValuePivotFilter','RemovePivotField','SetSubtotalType','UpdateValuePositionMutation','getSubUnitPivotConfigs','count','getCurrentSelections','getFontStyleString','PivotFilterTypeEnum','handleAsyncResponse','info','broadcastCollectionChange','SetPivotSubtotalTypeMutation','sheet.operation.pivot-table-view-formula-mark-dirty','endRow','_pivotRenderInfoCache','sheet.command.update-pivot-table-source-range','registerSyncingMutations','_initLocale','iterateField','_initCommandInterceptListener','_configVersion$','setPivotFilter','sheet.command.set-pivot-sort','getUpdateRangeDeleteIds','_toJSON','PivotView','valuePosition','getCurrentUnitForType','AddPivotField','REF','reset','_markDirty$','value','map','removeValueFilterInfo','redos','removeCollections','SetPivotSort','getDataFieldId','startRow','deleteUnitId','sheet.command.move-pivot-table','_localeService','UpdatePivotValuePositionCommand','transFromCellValue','getCellRaw','dataFieldId','generateNullCell','Max\x20of\x20','_globalComputedEndHelpFunc','_ensurePivotTableRangeInfo','rangeKey','sheets-pivot.cellDateGroupDisplay.quarter','setTextInfo','refreshDataField','_sheetsPivotTableService','foreach','sheet.command.reset-pivot-fields-config','resetArea','forValue','Count\x20of\x20','forRow','getCollection','SetOptions','BehaviorSubject','charCodeAt','_config','updateValuePosition','UpdatePivotFieldSourceInfoMutation','pivotPerformCheck','PivotDrillDownCommand','Disposable','getInterceptPoints','UniverProSheetsPivot','getTextSize','grandTotal','UniverSheets','column','setSortInfo','ΣValue','lx5Gg6X5\x20hCG9Z3g6X5(v6GC5bC,\x203xLv6GnCZ)\x20{\x20\x20\x20\x20g9Z\x20{\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20v6GC5bCE5lXYz9gi99zZ\x20=\x20v6GC5bC.b3v6g(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20X96t65HCbbztC\x20=\x20sDyc.3z9bC(zgXL(v6GC5bCE5lXYz9gi99zZ[f]));\x20\x20\x20\x20\x20\x20\x20\x206l\x20(!X96t65HCbbztC.xh)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20X96t65HCbbztC.xh\x20=\x20cx0LC9(v6GC5bCE5lXYz9gi99zZ[P]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x206boX9wC9\x20=\x20gZ3CXl\x20oX9wC9VvXLzvDGX3C\x20!==\x20\x27x5hCl65Ch\x27\x20&&\x20bCvl\x2065bgz5GCXl\x20oX9wC9VvXLzvDGX3C;\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20GX5gCUg\x20=\x206boX9wC9\x20?\x20bCvl\x20:\x20k65hXk;\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x200CbbztCoX9h\x20=\x20GX5gCUg.__MzbCuP__.3z9bC(v6GC5bCE5lXYz9gi99zZ[f]);\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x200CbbztC\x20=\x20GX5gCUg.__KCU__.bg965t6lZ(0CbbztCoX9h);\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20b6t5zgx9CoX9h\x20=\x20GX5gCUg.__MzbCuP__.3z9bC(v6GC5bCE5lXYz9gi99zZ[r]);\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20b6t5zgx9C\x20=\x20GX5gCUg.__KCU__.bg965t6lZ(b6t5zgx9CoX9h);\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20b6t5Izv6h\x20=\x20GX5gCUg.__RC96lZ__(b6t5zgx9C,\x200CbbztC,\x203xLv6GnCZ);\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20hX0z65\x20=\x20X96t65HCbbztC.h0;\x20\x20\x20\x20\x20\x20\x20\x20lx5Gg6X5\x206bQX0z65HzgGa65t(XYzggC95,\x20XKXbg)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x203zggC95\x20=\x20XYzggC95.9C3vzGC(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20aXbg\x20=\x20XKXbg.9C3vzGC(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x203zggC95Yz9gb\x20=\x203zggC95.b3v6g(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20aXbgYz9gb\x20=\x20aXbg.b3v6g(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x206l\x20(!3zggC95.65GvxhCb(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209Cgx95\x203zggC95\x20===\x20aXbg;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x206l\x20(3zggC95Yz9gb.vC5tga\x20<\x20f\x20||\x203zggC95Yz9gb[J]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209Cgx95\x20lzvbC;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x203zggC95Dxll6U\x20=\x203zggC95Yz9gb.bv6GC(p).qX65(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20aXbgDxll6U\x20=\x20aXbgYz9gb.bv6GC(-3zggC95Yz9gb.vC5tga\x20+\x20p).qX65(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209Cgx95\x203zggC95Dxll6U\x20===\x20aXbgDxll6U;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20vCg\x20hX0z65Izv6h\x20=\x20(hX0z65\x20&&\x20hX0z65.vC5tga)\x20?\x20hX0z65.bX0C((h0EgC0)\x20=>\x206bQX0z65HzgGa65t(h0EgC0,\x20vXGzg6X5.aXbg5z0C))\x20:\x20g9xC;\x20\x20\x20\x20\x20\x20\x20\x206l\x20(vXGzg6X5.aXbg5z0C\x20===\x20\x27vXGzvaXbg\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hX0z65Izv6h\x20=\x20g9xC;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20GX5bg\x20Rzv6h\x20=\x20b6t5Izv6h\x20&&\x20hX0z65Izv6h;\x20\x20\x20\x20\x20\x20\x20\x209Cgx95\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rzv6h,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x200CbbztC:\x20X96t65HCbbztC,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20GzgGa\x20(C99X9)\x20{\x20\x20\x20\x20\x20\x20\x20\x209Cgx95\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rzv6h:\x20lzvbC,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x200CbbztC:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','_subjectViewChange','PivotTableFiledAreaEnum','_updateRenderEmptyCache','_updatePivotTableInstanceCache','SetValueFilter','SetSortInfo','rangeKeyMap','PivotCellStyleTypeEnum','PivotDisplayDataType','filterInfo','configVersion$','sourceName','getFieldCountByArea','entries','cellValue','initDataRanges','getFilterFieldIdByIndex','interceptor','DataSyncPrimaryController','markDirty','custom','getCellMatrix','sheets-pivot.dateGroup.hour','query','_activeDirtyManagerService','col','removeCollectionImp','valueFields','result','rangeCache','SetPivotFieldFormatMutation','_model','fieldId','stringify','_viewData$','updateCollectionConfig','setRangeValueRedoMutation','_viewUpdate$','MIN_SAFE_INTEGER','IActiveDirtyManagerService','PivotTable','workbook\x20is\x20not\x20found','realDeleteValue','#e6ebfb','RemoveSheetsFilterMutation','getRefRangeMutationsByMoveRange','Tools','HourMinute','_generateUniqueVersion','_resourceManagerService','paths','getPivotTableCellData','splice','toStringTag','@univerjs-pro/license','_pivotTableMatrixInfo','FORCE_STRING','row','refreshData','subTotalStyle','isDate','Range','clearRenderCache','colCount','collectionConfig','areaInfo','48qjCylY','SetPivotPositionMutation','_deletePivotTableInstanceCache','SetPivotSortCommand','updatePivotTableMatrixInfo','rowRanges','PivotTableOperationEnum','cornerStyle','deleteField','fromJSON','sheets-pivot.value','rowStyle','lastRow','triggerDirtyFeature','Rectangle','_ensurePivotItemRenderValueMatrixCache','getDataFieldItemInfo','addDataFieldWithoutUnitInfo','CustomCommandExecutionError','Grand\x20Total','isFeatureAuthorizedWithinTime','setFieldFormat','subscribe','getNoUsedDataFieldIds','_initRegisterCommand','getDirtyInfo','sheet.command.set-pivot-field-setting','AsyncInterceptorManager','MovePivotTableCommand','dataFields','DIV_BY_ZERO','renameField','data','getFormatInfo','level','1579886PuRJvy','getSheets','document','UpdatePivotSource','pivotTableConfigs','sheets-pivot.dateGroup.hourMinute','_initSnapshot','canUsePivot','setValuePivotFilter','floor','getIntersects','getTextInfo','setCollapse','maxDate','UniverLicensePlugin','sheets-pivot.productName','setRangeValueUndoMutation','getValueFilterInfos','GlobalComputingStatusService','getValueIndex','rowInfo','PositionType','setRange','replace','getValue','getTypeOfUnitDisposed$','IFeatureCalculationManagerService','getName','Total','needSameDeleteModel','\x20-\x20','version','dataStyle','sheets-pivot.dateGroup.yearMonthDate','getRangeKey','valueFilter','createLabelField','addPivotField','register','#b2b2b2','sheet.command.set-pivot-collapse','Optional','getSubUnitPivotMatrix','YearMonth','createValueField','update','isDateGroupFieldJSON','sideEffectUpdateWorkerCache','sheets-pivot.countNumsName','getViewData','getConfig','fieldIds','sheets-pivot.cellDateGroupDisplay.yearMonthDate','values','getPivotCellInfo','sheets-pivot.dateGroup.monthDate','generateRandomId','NotFunction','CellValueType','valid','Minute','setPivotTableConfig','getIndexesByPathStr','UniverRpc','PivotErrorTypeEnum','getPivotDisplayConfig','markDirty$','NAME','sheet.mutation.set-pivot-field-subtotal-type','2ThTrpb','22NUucDA','getDataFieldByTableId','concat','InterceptorEffectEnum','Filter','getUnitId','removePivotField','#f4f4f5','rowCount','intersects','UNIVER_SHEET','InsertSheetMutation','measure','_exclusiveRangeService','AddPivotTableWithConfig','SetPivotCollapseCommand','SetPivotFilterMutation','#1d32e9','sheets-pivot.dateGroup.minute','isText','getMonth','50thYmfN','_initViewModelBySheetInterceptor','RemovePivotFieldCommand','Plugin','single','rangeType','_host','_queryingMap','removeDataField','updateViewInfo','resetPivotTable','fetchThroughInterceptors','getOriginFieldId','New','getAutoFitColumnsMutations','PivotTableValuePositionEnum','getValuePosition','SetRangeValuesMutation','_initGlobalComputed','dataFieldManagerConfig','generateHexNumber','DrillDown','getSubUnitPivotRenderCache','ptn','STRING','MovePivotField','updateFieldPosition','registerRefRange','_sheetsSelectionsService','Year','updatePivotSource','getUnit','token','DisposableCollection','getPivotTableInstance','sheet.command.update-pivot-value-position','PivotCallbackEnum','getMatrixFromRunTimeData','updateConfigCache','Add','SheetsPivotTableAdaptorModel','_initUnitDisposed','sheet.command.set-pivot-fields-config','getFormat','None','sheet.mutation.remove-group-collection','LocaleService','applyChangeSet','sheets-pivot.countName','_initConfig','SHEET_PIVOT_EXCLUSIVE_ID','getFieldFormat','hasField','sheets-pivot.dateGroup.yearMonth','number','sheets-pivot.cellDateGroupDisplay.date','average','startCollectChangeset','handleMoveRange','removeSourceRangeChange','NUMBER','Hour','asyncInterceptor','sequenceExecute','Var\x20of\x20','random','sheet.mutation.set-pivot-sort-info','fieldsConfig'];_0x4668=function(){return _0x2b2abb;};return _0x4668();}