@univerjs-pro/sheets-pivot 0.7.0-nightly.202504291607 → 0.7.0-nightly.202504301607

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(_0xcf6a7c,_0x2a050e){const _0x55e946=_0x5b70,_0x31b338=_0xcf6a7c();while(!![]){try{const _0x46c818=-parseInt(_0x55e946(0x41b))/0x1*(-parseInt(_0x55e946(0x44b))/0x2)+-parseInt(_0x55e946(0x1aa))/0x3*(parseInt(_0x55e946(0x2bd))/0x4)+parseInt(_0x55e946(0x20a))/0x5*(parseInt(_0x55e946(0x345))/0x6)+-parseInt(_0x55e946(0x323))/0x7+-parseInt(_0x55e946(0x2fa))/0x8+parseInt(_0x55e946(0x210))/0x9*(-parseInt(_0x55e946(0x20b))/0xa)+parseInt(_0x55e946(0x237))/0xb;if(_0x46c818===_0x2a050e)break;else _0x31b338['push'](_0x31b338['shift']());}catch(_0x1f3aea){_0x31b338['push'](_0x31b338['shift']());}}}(_0x30ce,0x28445),function(_0x30fd8d,_0x1b0e1e){const _0xfd6f91=_0x5b70;typeof exports=='object'&&typeof module<'u'?_0x1b0e1e(exports,require(_0xfd6f91(0x3c7)),require(_0xfd6f91(0x2c0)),require('@univerjs/engine-formula'),require(_0xfd6f91(0x296)),require('rxjs'),require(_0xfd6f91(0x224)),require(_0xfd6f91(0x15e)),require(_0xfd6f91(0x24e)),require(_0xfd6f91(0x302))):typeof define==_0xfd6f91(0x2a1)&&define[_0xfd6f91(0x40b)]?define([_0xfd6f91(0x1b3),_0xfd6f91(0x3c7),_0xfd6f91(0x2c0),_0xfd6f91(0x3ad),_0xfd6f91(0x296),'rxjs','@univerjs-pro/license',_0xfd6f91(0x15e),_0xfd6f91(0x24e),_0xfd6f91(0x302)],_0x1b0e1e):(_0x30fd8d=typeof globalThis<'u'?globalThis:_0x30fd8d||self,_0x1b0e1e(_0x30fd8d['UniverProSheetsPivot']={},_0x30fd8d[_0xfd6f91(0x29a)],_0x30fd8d['UniverCore'],_0x30fd8d[_0xfd6f91(0x2bc)],_0x30fd8d[_0xfd6f91(0x419)],_0x30fd8d[_0xfd6f91(0x2fd)],_0x30fd8d[_0xfd6f91(0x406)],_0x30fd8d[_0xfd6f91(0x43a)],_0x30fd8d[_0xfd6f91(0x3c4)],_0x30fd8d[_0xfd6f91(0x29c)]));}(this,function(_0x29b926,_0x1d148a,_0x475d1b,_0x45a5e0,_0x44476f,_0x53d07a,_0x474209,_0x37da3e,_0x702276,_0x47785e){'use strict';const _0x9268c=_0x5b70;var _0x4675ba=Object[_0x9268c(0x2a0)],_0xe4a584=(_0x2f4fdb,_0x218f43,_0xe0f687)=>_0x218f43 in _0x2f4fdb?_0x4675ba(_0x2f4fdb,_0x218f43,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe0f687}):_0x2f4fdb[_0x218f43]=_0xe0f687,_0x346b88=(_0x2a90e7,_0xa7d1d0,_0x3001d4)=>_0xe4a584(_0x2a90e7,typeof _0xa7d1d0!=_0x9268c(0x207)?_0xa7d1d0+'':_0xa7d1d0,_0x3001d4);const _0x307b41=Number[_0x9268c(0x1ff)](0x6810fa3c),_0x2a1781=0x10,_0x41ce1b=0x1,_0x2ecc25=_0x9268c(0x421),_0xe9af5e=0x1,_0x638cf1=_0x9268c(0x2d2),_0x4e4540='rgb(255,255,255)',_0x54db5f=_0x9268c(0x394),_0x565f44='#f4f4f5',_0x248674='#f4f4f5',_0x56c2b1='#eceeff',_0x2e1da9=_0x9268c(0x318),_0x2936e2=_0x9268c(0x31a),_0xba0c2a='#e6ebfa',_0x451b71=_0x9268c(0x318),_0xb8a6b=_0x9268c(0x31a),_0x1e229f=_0x9268c(0x2c5),_0x39e3d5=0xe,_0x35fa5b=0x6;var _0xb63b0b=(_0x47b6ae=>(_0x47b6ae[_0x9268c(0x18f)]=_0x9268c(0x339),_0x47b6ae[_0x9268c(0x1a1)]=_0x9268c(0x3fe),_0x47b6ae))(_0xb63b0b||{});const _0x475b38={'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':''}}},_0x28174c=0x1e,_0x479a9f={'b':{'s':0x1,'cl':{'rgb':_0x54db5f}},'l':{'s':0x1,'cl':{'rgb':_0x54db5f}},'r':{'s':0x1,'cl':{'rgb':_0x54db5f}},'t':{'s':0x1,'cl':{'rgb':_0x54db5f}}},_0x180ae2={'bg':{'rgb':_0x638cf1},'ht':0x2,'vt':0x2,'tb':0x1},_0x497268={'bg':{'rgb':_0x4e4540},'ht':0x2,'vt':0x2,'tb':0x1},_0x442467={'rowStyle':{'bg':{'rgb':_0x1e229f},'bd':_0x479a9f,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x451b71},'bd':null,'cl':{'rgb':_0xb8a6b},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x479a9f,'bg':{'rgb':_0xba0c2a},'vt':0x2},'cornerStyle':{'bd':_0x479a9f,'bg':{'rgb':_0x56c2b1},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x479a9f,'bg':{'rgb':_0x565f44},'vt':0x2},'leafStyle':{'bd':_0x479a9f,'bg':{'rgb':_0x248674},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x2e1da9},'cl':{'rgb':_0x2936e2},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x479a9f,'vt':0x2}};function _0x3afbdc(_0x3d7296,_0x4de6ef,_0x11f9fa){const _0x458624=_0x9268c,_0x4b0e67=_0x3d7296['get'](_0x475d1b[_0x458624(0x3b7)]),_0x1e8a89=_0x11f9fa[_0x458624(0x249)]('_');switch(_0x4de6ef){case _0x1d148a[_0x458624(0x1e8)][_0x458624(0x2e4)]:return _0x4b0e67['t'](_0x458624(0x458),..._0x1e8a89);case _0x1d148a[_0x458624(0x1e8)][_0x458624(0x24c)]:return _0x4b0e67['t']('sheets-pivot.cellDateGroupDisplay.minute',..._0x1e8a89);case _0x1d148a[_0x458624(0x1e8)][_0x458624(0x271)]:return _0x4b0e67['t']('sheets-pivot.cellDateGroupDisplay.hour',..._0x1e8a89);case _0x1d148a[_0x458624(0x1e8)][_0x458624(0x3a6)]:return _0x4b0e67['t'](_0x458624(0x2d6),..._0x1e8a89);case _0x1d148a[_0x458624(0x1e8)][_0x458624(0x1f5)]:return _0x4b0e67['t'](_0x458624(0x18a),..._0x1e8a89);case _0x1d148a[_0x458624(0x1e8)][_0x458624(0x29d)]:return _0x4b0e67['t'](_0x458624(0x1c2),..._0x1e8a89);case _0x1d148a[_0x458624(0x1e8)][_0x458624(0x25c)]:return _0x4b0e67['t'](_0x458624(0x19d),..._0x1e8a89);case _0x1d148a[_0x458624(0x1e8)][_0x458624(0x1d6)]:return _0x4b0e67['t'](_0x458624(0x163),..._0x1e8a89);case _0x1d148a[_0x458624(0x1e8)][_0x458624(0x2bf)]:return _0x4b0e67['t'](_0x458624(0x1fe),..._0x1e8a89);case _0x1d148a[_0x458624(0x1e8)][_0x458624(0x180)]:return _0x4b0e67['t'](_0x458624(0x3e7),..._0x1e8a89);}return'';}const _0x4ddb33=(_0x55755a,_0x47659f,_0x51e02b,_0x359076)=>{const _0x4b4f55=_0x9268c;let _0x4d42a2;const _0xd01598=_0x55755a[_0x4b4f55(0x3bb)](_0x475d1b[_0x4b4f55(0x261)])[_0x4b4f55(0x243)](_0x475d1b['UniverInstanceType'][_0x4b4f55(0x461)]);if(!_0xd01598)return null;const _0x57668c=_0xd01598[_0x4b4f55(0x44e)]();let _0x6506db;if(_0x51e02b&&(_0x6506db=_0x57668c['setValue'](_0x51e02b)),_0x47659f!=null&&_0x47659f['v']||(_0x47659f==null?void 0x0:_0x47659f['v'])===0x0){_0x4d42a2||(_0x4d42a2={});const _0x4c35f3=_0x40f122(_0x47659f['v']);typeof _0x4c35f3=='number'?_0x4d42a2['t']=_0x475d1b['CellValueType'][_0x4b4f55(0x371)]:typeof _0x4c35f3=='string'&&(_0x4d42a2['t']=_0x475d1b[_0x4b4f55(0x3ca)][_0x4b4f55(0x25b)]),_0x4d42a2['v']=_0x4c35f3;}if((_0x47659f!=null&&_0x47659f['i']||(_0x47659f==null?void 0x0:_0x47659f['i'])===0x0)&&(_0x4d42a2||(_0x4d42a2={}),_0x4d42a2['fi']=_0x47659f['i']),_0x47659f!=null&&_0x47659f['s']&&(_0x4d42a2||(_0x4d42a2={}),_0x4d42a2[_0x4b4f55(0x37a)]=_0x47659f['s']),_0x51e02b&&(_0x4d42a2||(_0x4d42a2={}),_0x4d42a2['s']=_0x6506db),_0x359076&&_0x4d42a2!=null&&_0x4d42a2['v']&&_0x4d42a2[_0x4b4f55(0x37a)]!==_0x1d148a[_0x4b4f55(0x1b7)][_0x4b4f55(0x3cb)]&&_0x4d42a2['pbt']!==_0x1d148a['PivotCellStyleTypeEnum'][_0x4b4f55(0x307)]){const _0x410986=String(_0x4d42a2['v']),{dateType:_0x557292}=_0x359076;_0x4d42a2['v']=_0x3afbdc(_0x55755a,_0x557292,_0x410986),_0x4d42a2['t']=_0x475d1b[_0x4b4f55(0x3ca)][_0x4b4f55(0x25b)];}return _0x4d42a2;},_0x14ac7a=(_0x4bf96e,_0x33dab1,_0x4af0d8,_0x51c535)=>{const _0xf14c67=_0x9268c;var _0x44a104,_0x1def10,_0x2f5955,_0x568eff,_0x1e5a90,_0x25f27b,_0x2fe7e1,_0x14cfe0,_0x1af78b,_0xc0f832,_0x1363ef,_0x4c07cf,_0x5811d9,_0x17274e;const _0x1d8aa5=_0x4af0d8[_0xf14c67(0x1bf)],{cornerView:_0x2679d8,rowView:_0x59ebfc,colView:_0x222939,dataView:_0x4ad4cf,pageView:_0x158b84,formatMap:_0x1983be,groupInfo:_0x49fed8}=_0x33dab1,{row:_0x1e4d5e,col:_0x21cc01}=_0x1d8aa5,_0x1d1b50=new _0x475d1b[(_0xf14c67(0x405))](),_0x42086b={},_0x5e4c87={},_0x155056={},_0x2c7229={},_0x482f5d={};let _0x2e9e18=_0x1e4d5e,_0x324d18=_0x21cc01;Object[_0xf14c67(0x16a)](_0x158b84['data'])[_0xf14c67(0x3df)](_0x4089b1=>{const _0x15545e=_0xf14c67;Object[_0x15545e(0x16a)](_0x158b84[_0x15545e(0x43e)][Number(_0x4089b1)])[_0x15545e(0x3df)](_0xa44f90=>{const _0x184b52=_0x15545e,_0x25dbf6={..._0x158b84['data'][Number(_0x4089b1)][Number(_0xa44f90)]};_0x1d1b50[_0x184b52(0x316)](Number(_0x4089b1)+_0x2e9e18,Number(_0xa44f90)+_0x324d18,_0x4ddb33(_0x4bf96e,_0x25dbf6,_0x442467['pageStyle']));});});const _0x33770e=Object[_0xf14c67(0x16a)](_0x158b84['data'])['length'];_0x2e9e18+=_0x33770e+(_0x33770e?_0xe9af5e:0x0);const _0x425246=_0x2679d8['getRowCount'](),_0x2348c1=_0x2679d8[_0xf14c67(0x3e9)]();for(let _0x2b5625=0x0;_0x2b5625<_0x425246;_0x2b5625++)for(let _0x4fe80f=0x0;_0x4fe80f<_0x2348c1;_0x4fe80f++){const _0x206499={...(_0x1def10=(_0x44a104=_0x2679d8['data'])==null?void 0x0:_0x44a104[_0x2b5625])==null?void 0x0:_0x1def10[_0x4fe80f]};_0x206499&&((_0x2f5955=_0x59ebfc[_0xf14c67(0x29f)][_0x4fe80f])!=null&&_0x2f5955[_0xf14c67(0x1ae)])&&_0x4fe80f===_0x2348c1-0x1&&_0x2b5625===_0x425246-0x1&&(_0x206499['v']=''+_0x51c535[_0xf14c67(0x19f)]),_0x1d1b50[_0xf14c67(0x316)](_0x2b5625+_0x2e9e18,_0x4fe80f+_0x324d18,_0x4ddb33(_0x4bf96e,_0x206499,_0x442467['cornerStyle']));}for(let _0x4476c7=0x0;_0x4476c7<_0x2679d8[_0xf14c67(0x31b)][_0xf14c67(0x32d)];_0x4476c7++)_0x2679d8['info'][_0x4476c7]&&(_0x155056[''+(_0x4476c7+_0x324d18)]=_0x2679d8[_0xf14c67(0x31b)][_0x4476c7]);_0x324d18+=_0x2348c1;const _0x59ea24=_0x222939[_0xf14c67(0x29f)],_0x625f28=_0x222939[_0xf14c67(0x1db)]()>=0x0?_0x222939[_0xf14c67(0x1db)]()+0x1:0x0,_0x7971e5=_0x222939[_0xf14c67(0x34a)]()>=0x0?_0x222939[_0xf14c67(0x34a)]()+0x1:0x0;for(let _0x188ff8=0x0;_0x188ff8<_0x7971e5;_0x188ff8++){for(let _0x1124ee=0x0;_0x1124ee<_0x625f28;_0x1124ee++){const _0x224877={...(_0x1e5a90=(_0x568eff=_0x222939['data'])==null?void 0x0:_0x568eff[_0x1124ee])==null?void 0x0:_0x1e5a90[_0x188ff8]},_0x4d39df=(_0x25f27b=_0x59ea24[_0x1124ee])==null?void 0x0:_0x25f27b[_0xf14c67(0x3a9)],_0xeaa590=_0x1983be[_0x4d39df],_0x3802c9=_0x49fed8[_0x4d39df];_0x224877&&(_0x224877['v']=_0x551650(_0x224877,_0x1124ee===0x0&&((_0x2fe7e1=_0x222939[_0xf14c67(0x2e1)](_0x188ff8+0x1))==null?void 0x0:_0x2fe7e1[_0xf14c67(0x1ae)]),_0xeaa590,_0x51c535));let _0x3f7987;_0xeaa590?_0x3f7987={..._0x442467['colStyle'],'n':{'pattern':_0xeaa590}}:_0x3f7987={..._0x442467[_0xf14c67(0x3b2)]},_0x1d1b50['setValue'](_0x1124ee+_0x2e9e18,_0x188ff8+_0x324d18,_0x4ddb33(_0x4bf96e,_0x224877,_0x3f7987,_0x3802c9));}_0x222939[_0xf14c67(0x31b)][_0x188ff8]&&(_0x5e4c87[''+(_0x188ff8+_0x324d18)]=_0x222939['info'][_0x188ff8]),_0x222939['headerMap'][_0x188ff8+0x1]&&(_0x482f5d[''+(_0x188ff8+_0x2e9e18+0x1)]=_0x222939[_0xf14c67(0x29f)][_0x188ff8+0x1]);}_0x2e9e18+=_0x425246;const _0x2ce4fb=_0x59ebfc['headerMap'],_0x1b297c=_0x59ebfc[_0xf14c67(0x1db)]()>=0x0?_0x59ebfc[_0xf14c67(0x1db)]()+0x1:0x0,_0x433076=_0x59ebfc[_0xf14c67(0x34a)]()>=0x0?_0x59ebfc[_0xf14c67(0x34a)]()+0x1:0x0;for(let _0x41ab39=0x0;_0x41ab39<_0x1b297c;_0x41ab39++){for(let _0x6a9284=0x0;_0x6a9284<_0x433076;_0x6a9284++){const _0x248051={...(_0x1af78b=(_0x14cfe0=_0x59ebfc['data'])==null?void 0x0:_0x14cfe0[_0x41ab39])==null?void 0x0:_0x1af78b[_0x6a9284]},_0x22db17=(_0xc0f832=_0x2ce4fb[_0x6a9284])==null?void 0x0:_0xc0f832[_0xf14c67(0x3a9)],_0x901062=_0x1983be[_0x22db17],_0xe6983f=_0x49fed8[_0x22db17];_0x248051&&(_0x248051['v']=_0x551650(_0x248051,!0x1,_0x901062,_0x51c535));let _0x477d71;_0x59ebfc[_0xf14c67(0x31b)][_0x41ab39][_0xf14c67(0x204)]===_0x59ebfc[_0xf14c67(0x3e9)]()?_0x477d71=_0x442467[_0xf14c67(0x25f)]:_0x59ebfc[_0xf14c67(0x31b)][_0x41ab39]['isBottomTotal']?_0x477d71=_0x59ebfc['info'][_0x41ab39][_0xf14c67(0x204)]===0x0?_0x442467['grandTotal']:_0x442467[_0xf14c67(0x211)]:_0x477d71=_0x442467['rowStyle'],_0x901062&&(_0x477d71={..._0x477d71,'n':{'pattern':_0x901062}}),_0x1d1b50[_0xf14c67(0x316)](_0x41ab39+_0x2e9e18,_0x6a9284+_0x21cc01,_0x4ddb33(_0x4bf96e,_0x248051,_0x477d71,_0xe6983f));}_0x59ebfc['info'][_0x41ab39]&&(_0x42086b[''+(_0x41ab39+_0x2e9e18)]=_0x59ebfc[_0xf14c67(0x31b)][_0x41ab39]),_0x59ebfc[_0xf14c67(0x29f)][_0x41ab39]&&(_0x2c7229[''+(_0x41ab39+_0x21cc01)]=_0x59ebfc[_0xf14c67(0x29f)][_0x41ab39]);}const _0x557423=_0x4ad4cf['getRowCount'](),_0x563eaf=_0x4ad4cf[_0xf14c67(0x3e9)]();for(let _0x3165f8=0x0;_0x3165f8<_0x557423;_0x3165f8++)for(let _0x37b291=0x0;_0x37b291<_0x563eaf;_0x37b291++){const _0x2bc9e2={...(_0x4c07cf=(_0x1363ef=_0x4ad4cf['data'])==null?void 0x0:_0x1363ef[_0x3165f8])==null?void 0x0:_0x4c07cf[_0x37b291]};let _0x279fcf;_0x59ebfc[_0xf14c67(0x31b)][_0x3165f8]['isBottomTotal']?_0x279fcf=_0x59ebfc[_0xf14c67(0x31b)][_0x3165f8][_0xf14c67(0x204)]===0x0?_0x442467[_0xf14c67(0x42e)]:_0x442467['subTotalStyle']:_0x279fcf=_0x442467['dataStyle'];const _0x4d531a=_0x59ebfc[_0xf14c67(0x31b)][_0x3165f8][_0xf14c67(0x30f)],_0x5a4d16=_0x222939[_0xf14c67(0x31b)][_0x37b291][_0xf14c67(0x30f)],_0x2b2315=Math[_0xf14c67(0x328)](_0x4d531a,_0x5a4d16),_0x27e1d8=_0x4af0d8[_0xf14c67(0x1e6)][_0xf14c67(0x374)][_0xf14c67(0x39f)]();let _0x46eec7='';_0x2b2315<0x0?_0x46eec7=(_0x5811d9=_0x27e1d8[0x0])!=null?_0x5811d9:'':_0x46eec7=(_0x17274e=_0x27e1d8[_0x2b2315])!=null?_0x17274e:'';const _0x4fdcd4=_0x1983be[_0x46eec7];_0x4fdcd4&&(_0x279fcf={..._0x279fcf,'n':{'pattern':_0x4fdcd4}}),_0x1d1b50['setValue'](_0x3165f8+_0x2e9e18,_0x37b291+_0x324d18,_0x4ddb33(_0x4bf96e,_0x2bc9e2,_0x279fcf));}return{'valueMatrix':_0x1d1b50,'rowInfo':_0x42086b,'colInfo':_0x5e4c87,'cornerInfo':_0x155056,'rowHeaderMap':_0x2c7229,'colHeaderMap':_0x482f5d};};function _0x551650(_0x120b64,_0x2c8b8d,_0x30b03e,_0x2d5e9b){const _0x231d5b=_0x9268c;let _0x2df1c4=_0x120b64['v'];_0x2c8b8d&&(_0x2df1c4=''+_0x2d5e9b[_0x231d5b(0x19f)]);const _0x3bb47e=_0x120b64['t']&&(_0x120b64['t']&_0x1d148a[_0x231d5b(0x3d3)][_0x231d5b(0x21f)])>0x0;if(_0x3bb47e&&(_0x2df1c4=''+_0x2d5e9b[_0x231d5b(0x1b2)]),_0x120b64['s']===_0x1d148a[_0x231d5b(0x1b7)][_0x231d5b(0x307)]){let _0xaf17fb=_0x2df1c4,_0x5a52fb='';_0x1d148a[_0x231d5b(0x44d)](_0x2df1c4)&&(_0xaf17fb=_0x2df1c4[_0x231d5b(0x2e3)],_0x5a52fb=_0x2df1c4[_0x231d5b(0x1bc)]);const _0x1af341=_0x30b03e&&!_0x3bb47e?_0x475d1b[_0x231d5b(0x2d5)]['format'](_0x30b03e,Number(_0xaf17fb)):_0xaf17fb;_0x5a52fb?_0x2df1c4=_0x1af341+'\x20'+_0x5a52fb:_0x2df1c4=_0x1af341+'\x20'+_0x2d5e9b[_0x231d5b(0x468)];}else _0x120b64['s']===_0x1d148a[_0x231d5b(0x1b7)][_0x231d5b(0x3cb)]&&(_0x2df1c4=_0x2df1c4+'\x20'+_0x2d5e9b[_0x231d5b(0x39b)]);return _0x2df1c4;}function _0x40f122(_0x35ab34){const _0x1a188a=_0x9268c;if(_0x1d148a[_0x1a188a(0x295)](_0x35ab34)){const {errorType:_0x108e39}=_0x35ab34;switch(_0x108e39){case _0x1d148a['PivotErrorTypeEnum'][_0x1a188a(0x3d5)]:return _0x45a5e0[_0x1a188a(0x234)][_0x1a188a(0x2cf)];case _0x1d148a[_0x1a188a(0x447)][_0x1a188a(0x37b)]:return _0x45a5e0['ErrorType']['NUM'];case _0x1d148a[_0x1a188a(0x447)][_0x1a188a(0x315)]:return _0x45a5e0['ErrorType'][_0x1a188a(0x1c9)];case _0x1d148a[_0x1a188a(0x447)][_0x1a188a(0x28c)]:return _0x45a5e0[_0x1a188a(0x234)]['NAME'];case _0x1d148a[_0x1a188a(0x447)][_0x1a188a(0x3e8)]:return _0x45a5e0['ErrorType'][_0x1a188a(0x45a)];}}return _0x35ab34;}function _0xc7a07b(_0x315659,_0x4b0d8c,_0x29aaf7=!0x1,_0x3aa29e=!0x1){const _0x2d4838=_0x9268c,{data:_0x40ef2b}=_0x4b0d8c,_0x4fd95b=_0x4b0d8c[_0x2d4838(0x418)](),_0x10e8ac=_0x4b0d8c[_0x2d4838(0x3e9)]();if(_0x4fd95b<=0x0||_0x10e8ac<=0x0)return[];const _0x4bfbc6=_0x4b0d8c['getLastCol'](),_0x156060=_0x4b0d8c['getLastRow'](),_0x201487=_0x3aa29e?_0x156060>=0x0?_0x156060+0x1:0x0:_0x4fd95b,_0x43e2c3=_0x3aa29e?_0x4bfbc6>=0x0?_0x4bfbc6+0x1:0x0:_0x10e8ac,{row:_0x1ceaa3,col:_0xa0cea6}=_0x315659,_0xfd0794=_0x1ceaa3,_0x93e1c=_0xa0cea6;if(_0x29aaf7){const _0x5eb2ce=[];for(const [_0x182e8e,_0x394a39]of Object['entries'](_0x40ef2b))for(const [_0x18778f,_0x1724ed]of Object['entries'](_0x394a39))_0x5eb2ce[_0x2d4838(0x17b)](_0x475d1b[_0x2d4838(0x335)](_0xfd0794+Number(_0x182e8e),_0x93e1c+Number(_0x18778f)));return _0x5eb2ce;}else{const _0x108d1a=_0x3aa29e?_0x201487>0x0?0x1:0x0:0x1,_0x437b2d=_0x3aa29e?_0x43e2c3>0x0?0x1:0x0:0x1,_0x302bd9=_0x1ceaa3+_0x201487-_0x108d1a,_0xd6886b=_0xa0cea6+_0x43e2c3-_0x437b2d;return[{'startRow':_0xfd0794,'startColumn':_0x93e1c,'endRow':_0x302bd9,'endColumn':_0xd6886b}];}}const _0x1bd950=_0x9268c(0x46d),_0x506cb3='SHEET_PIVOT_EXCLUSIVE_ID';var _0x3ca738=(_0x4ed4ff=>(_0x4ed4ff[_0x9268c(0x228)]='filter',_0x4ed4ff[_0x9268c(0x312)]=_0x9268c(0x1ce),_0x4ed4ff[_0x9268c(0x17f)]=_0x9268c(0x28d),_0x4ed4ff[_0x9268c(0x1cb)]=_0x9268c(0x1cb),_0x4ed4ff[_0x9268c(0x34c)]=_0x9268c(0x15b),_0x4ed4ff[_0x9268c(0x196)]=_0x9268c(0x30a),_0x4ed4ff[_0x9268c(0x2de)]='removePivotField',_0x4ed4ff[_0x9268c(0x181)]=_0x9268c(0x388),_0x4ed4ff[_0x9268c(0x160)]=_0x9268c(0x410),_0x4ed4ff[_0x9268c(0x3c9)]=_0x9268c(0x28b),_0x4ed4ff[_0x9268c(0x304)]=_0x9268c(0x1ac),_0x4ed4ff[_0x9268c(0x314)]=_0x9268c(0x1fc),_0x4ed4ff[_0x9268c(0x44f)]=_0x9268c(0x1fa),_0x4ed4ff[_0x9268c(0x2ac)]='drillDown',_0x4ed4ff[_0x9268c(0x2ce)]='setValuePivotFilter',_0x4ed4ff[_0x9268c(0x35b)]=_0x9268c(0x429),_0x4ed4ff[_0x9268c(0x36f)]=_0x9268c(0x2c4),_0x4ed4ff))(_0x3ca738||{});const _0x48891c={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':_0x9268c(0x241),'sheets-pivot.subTotalText':_0x9268c(0x285),'sheets-pivot.grandTotalText':'Grand\x20Total','sheets-pivot.valueText':_0x9268c(0x3c2),'sheets-pivot.averageName':_0x9268c(0x272),'sheets-pivot.countName':_0x9268c(0x265),'sheets-pivot.countNumsName':_0x9268c(0x265),'sheets-pivot.maxName':_0x9268c(0x1ec),'sheets-pivot.minName':_0x9268c(0x452),'sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':_0x9268c(0x26d),'sheets-pivot.stdDevpName':_0x9268c(0x176),'sheets-pivot.sumName':_0x9268c(0x428),'sheets-pivot.varName':_0x9268c(0x33a),'sheets-pivot.varpName':_0x9268c(0x465),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':_0x9268c(0x33c),'sheets-pivot.value':_0x9268c(0x1bc),'sheets-pivot.blank':_0x9268c(0x21f),'sheets-pivot.emptyPivot.filter':_0x9268c(0x228),'sheets-pivot.emptyPivot.row':'Row','sheets-pivot.emptyPivot.column':_0x9268c(0x174),'sheets-pivot.emptyPivot.values':'Values'},_0x1de6dd={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x3b3162=_0x475d1b[_0x9268c(0x28e)]('pivotPerformCheck'),_0x79d632=_0x475d1b[_0x9268c(0x1b4)]('pivotMutationGenerate');var _0x2f2b6e=(_0x4bc1da=>(_0x4bc1da[_0x9268c(0x156)]=_0x9268c(0x156),_0x4bc1da['delete']='delete',_0x4bc1da[_0x9268c(0x402)]=_0x9268c(0x402),_0x4bc1da))(_0x2f2b6e||{}),_0x94aa6e=(_0x2255b2=>(_0x2255b2[_0x9268c(0x332)]='add',_0x2255b2[_0x9268c(0x381)]=_0x9268c(0x40a),_0x2255b2[_0x9268c(0x22e)]=_0x9268c(0x37c),_0x2255b2))(_0x94aa6e||{});const _0x1a8b36={0x0:'6',0x1:'U',0x2:'b',0x3:'P',0x4:'Z',0x5:'G',0x6:'l',0x7:'E',0x8:'T',0x9:'N','j':'0','A':'1','U':'2','k':'3','u':'4','F':'5','N':'7','H':'8','D':'9','J':'a','c':'c','p':'d','w':'e','O':'f','a':'g','X':'h','W':'i','V':'j','Z':'k','M':'m','P':'n','h':'o','s':'p','e':'q','r':'r','v':'s','m':'t','G':'u','t':'v','R':'w','b':'x','f':'y','L':'z','C':'A','B':'B','Y':'C','K':'D','o':'F','y':'H','n':'I','T':'J','g':'K','i':'L','x':'M','d':'O','S':'Q','I':'R','l':'S','Q':'V','E':'W','z':'X','q':'Y'},_0x3df0b4=_0x9268c(0x391),_0x239074={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':_0x9268c(0x3a2),'handler':()=>!0x0},_0x29dd01={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':_0x9268c(0x32e),'handler':()=>!0x0},_0x421bc0={'type':_0x475d1b[_0x9268c(0x15f)]['MUTATION'],'id':_0x9268c(0x306),'handler':()=>!0x0},_0x2c1bd3={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':_0x9268c(0x28a),'handler':()=>!0x0},_0x499dd5={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':_0x9268c(0x343),'handler':()=>!0x0},_0x1bae6f=_0x425659=>{const _0x2ff626=_0x9268c;var _0x433075;return((_0x433075=_0x425659[_0x2ff626(0x24b)])==null?void 0x0:_0x433075['dataStream']['replace'](/\r\n$/,''))||'';};class _0x2171ca extends _0x1d148a[_0x9268c(0x2c7)]{constructor(_0x1a6ff4,_0x56a6c6){const _0x423bd2=_0x9268c;super(),_0x346b88(this,'rangeKeyMap',{}),_0x346b88(this,_0x423bd2(0x2d4)),_0x346b88(this,_0x423bd2(0x445)),(this['_univerInstanceService']=_0x56a6c6,this[_0x423bd2(0x445)]=_0x1a6ff4);}['initDataRanges'](){const _0xd44a9b=_0x9268c;for(const _0x4f9b98 in this['dataFields']){const _0x210144=this['dataFields'][_0x4f9b98],_0x4eeb3d=_0x210144[_0xd44a9b(0x2e7)]();this['rangeKeyMap'][_0x4eeb3d]=_0x210144[_0xd44a9b(0x1ef)]();}}[_0x9268c(0x349)](){const _0x8f433c=_0x9268c,_0x61d87d=this[_0x8f433c(0x445)];return _0x38ef51[_0x8f433c(0x27c)](_0x61d87d);}[_0x9268c(0x378)](_0x5476f5){const _0x3972b7=_0x9268c,_0x3a68d1=this[_0x3972b7(0x1eb)][_0x5476f5][_0x3972b7(0x2e9)];delete this[_0x3972b7(0x1eb)][_0x5476f5],delete this[_0x3972b7(0x1f8)][_0x3a68d1];}[_0x9268c(0x1d9)](_0x6839c7){const _0x21b966=_0x9268c;this[_0x21b966(0x1eb)][_0x6839c7[_0x21b966(0x1ef)]()]=_0x6839c7;}['removeCollectionImp'](_0x3420d1){const _0x5977cc=_0x9268c;var _0x125162,_0x5ad13a;const _0x2d51c9=this[_0x5977cc(0x445)]['getTargetByPivotId'](_0x3420d1);if(_0x2d51c9){const {unitId:_0x2f6c46,subUnitId:_0x391dfe}=_0x2d51c9,_0x461ad5=(_0x125162=this[_0x5977cc(0x445)][_0x5977cc(0x346)](_0x2f6c46,_0x391dfe,_0x3420d1))==null?void 0x0:_0x125162[_0x5977cc(0x453)];this[_0x5977cc(0x445)][_0x5977cc(0x2fc)]({'token':_0x3420d1,'type':_0x2f2b6e['delete'],'dataRangeInfo':_0x461ad5});}(_0x5ad13a=this[_0x5977cc(0x35a)](_0x3420d1))==null||_0x5ad13a[_0x5977cc(0x3dc)](),delete this['collections'][_0x3420d1];}['getRangeKey'](_0x25b0fe,_0x45a2fd){const _0x2293c8=_0x9268c,{sheetName:_0x3cfec9,unitId:_0x1d6b1d,range:_0x4db2e3}=_0x25b0fe,{startRow:_0x313fcb,endRow:_0x27d581}=_0x4db2e3;return _0x45a5e0[_0x2293c8(0x369)](_0x1d6b1d,_0x3cfec9,{'startRow':_0x313fcb,'endRow':_0x27d581,'startColumn':_0x45a2fd,'endColumn':_0x45a2fd});}[_0x9268c(0x2f4)](_0x24fc2f){const _0x4ded4b=_0x9268c;return this[_0x4ded4b(0x1eb)][this[_0x4ded4b(0x1f8)][_0x24fc2f]];}[_0x9268c(0x178)](_0x223298,_0x553d6b){const _0x263314=_0x9268c;this[_0x263314(0x1f8)][_0x223298]=_0x553d6b;}['updateRangeKeyMap'](_0x7863a2,_0x13602d){const _0x4c3d21=_0x9268c;this[_0x4c3d21(0x1f8)][_0x13602d]=this[_0x4c3d21(0x1f8)][_0x7863a2],delete this[_0x4c3d21(0x1f8)][_0x7863a2];}[_0x9268c(0x222)](_0x447115,_0x25fb27,_0x4951d5,_0x54aa81){const _0x32e87b=_0x9268c,_0x475a16=new _0x1d148a['FieldsCollection'](this);_0x475a16[_0x32e87b(0x20e)](_0x25fb27);const _0x3e93e5=[];let _0x4f1133=0x0;for(const _0x110b08 of _0x475a16[_0x32e87b(0x449)]){const _0x2c3b3e=this[_0x32e87b(0x2e7)](_0x4951d5,_0x4f1133),_0x42ccc4=this['dataFields'][_0x110b08];_0x42ccc4&&(_0x42ccc4[_0x32e87b(0x2e9)]=_0x2c3b3e,this[_0x32e87b(0x178)](_0x2c3b3e,_0x110b08),_0x3e93e5['push']({'index':_0x4f1133,'dataField':_0x42ccc4})),_0x4f1133++;}return this['addCollection'](_0x447115,_0x475a16,_0x4951d5,_0x54aa81),{'collection':_0x475a16,'updateDataFieldList':_0x3e93e5};}[_0x9268c(0x42b)](_0x245f16,_0x1507ec){const _0xf17b9c=_0x9268c;return _0x245f16[_0xf17b9c(0x24a)]===_0x475d1b[_0xf17b9c(0x444)][_0xf17b9c(0x155)]?{'startRow':0x0,'startColumn':_0x245f16['startColumn'],'endRow':_0x1507ec[_0xf17b9c(0x418)]()-0x1,'endColumn':_0x245f16[_0xf17b9c(0x277)]}:{'startRow':_0x245f16[_0xf17b9c(0x2ff)],'startColumn':_0x245f16[_0xf17b9c(0x1e9)],'endRow':_0x245f16['endRow'],'endColumn':_0x245f16[_0xf17b9c(0x277)]};}[_0x9268c(0x2aa)](_0xe89276){const _0x47ab0f=_0x9268c,{sheetName:_0x36ecc3,range:_0x550236}=_0xe89276,_0x7f4671=this[_0x47ab0f(0x2d4)][_0x47ab0f(0x243)](_0x475d1b[_0x47ab0f(0x194)][_0x47ab0f(0x461)]),_0x342bc7=_0x7f4671['getSheetBySheetName'](_0x36ecc3),_0x9806de=_0x342bc7[_0x47ab0f(0x2d0)](),{startColumn:_0x42aac1,startRow:_0x1e3bce,endColumn:_0x374f90}=this[_0x47ab0f(0x42b)](_0x550236,_0x342bc7),_0x586512=_0x7f4671[_0x47ab0f(0x44e)](),_0x118c72=new _0x1d148a[(_0x47ab0f(0x3b8))](this);_0x118c72[_0x47ab0f(0x182)](_0xe89276);const _0x35a7a8=[],_0x1e1663={};for(let _0x3b9591=_0x42aac1;_0x3b9591<=_0x374f90;_0x3b9591++){const _0x5d07e9=_0x9806de[_0x47ab0f(0x25a)](_0x1e3bce,_0x3b9591),_0x195adf=this[_0x47ab0f(0x2e7)](_0xe89276,_0x3b9591),_0x195e7a=this[_0x47ab0f(0x2f4)](_0x195adf);if(_0x195e7a)_0x118c72[_0x47ab0f(0x426)](_0x195e7a[_0x47ab0f(0x1ef)](),_0x195e7a[_0x47ab0f(0x231)]());else{const _0x255938=this[_0x47ab0f(0x17c)]();let _0x501905=this['adjustSheetCellData'](_0x5d07e9,_0x586512,_0x1e1663);_0x1d148a['isDateValue'](_0x501905)&&(_0x501905=_0x475d1b[_0x47ab0f(0x2d5)][_0x47ab0f(0x17a)](_0x501905['f'],Number(_0x501905['v'])));const _0x31d38b=this[_0x47ab0f(0x430)](_0x501905,_0x3b9591),_0x553ab0=new _0x1d148a[(_0x47ab0f(0x3f7))](_0x255938,_0x31d38b,_0x1d148a['generateHexNumber'](0x3));_0x553ab0[_0x47ab0f(0x2e9)]=_0x195adf,this['dataFields'][_0x255938]=_0x553ab0,_0x118c72['addField'](_0x255938,_0x31d38b),_0x35a7a8['push']({'index':_0x3b9591,'dataField':_0x553ab0});}}return{'updateDataFieldList':_0x35a7a8,'collection':_0x118c72};}[_0x9268c(0x290)](_0x22508c){const _0x13f8f4=_0x9268c;return this[_0x13f8f4(0x445)][_0x13f8f4(0x22d)]()[_0x13f8f4(0x3f6)]+'\x20'+_0x475d1b[_0x13f8f4(0x372)](_0x22508c);}[_0x9268c(0x430)](_0x551783,_0x3ac626){const _0x35788e=_0x9268c;return _0x551783==null||_0x551783===''?this[_0x35788e(0x290)](_0x3ac626):String(_0x551783);}['getCollection'](_0x42d96c){return this['collections'][_0x42d96c];}[_0x9268c(0x2f6)](_0x5c30de,_0x1caf6c,_0x1120c3,_0x504fba){const _0x21a930=_0x9268c;this[_0x21a930(0x3c3)][_0x5c30de]=_0x1caf6c,_0x1caf6c[_0x21a930(0x182)](_0x1120c3),this[_0x21a930(0x445)][_0x21a930(0x2fc)]({'token':_0x5c30de,'type':_0x2f2b6e[_0x21a930(0x156)],'dataRangeInfo':_0x1120c3,'targetCellInfo':_0x504fba});}[_0x9268c(0x3eb)](_0x28ebff,_0x434c1b){const _0xa76283=_0x9268c,_0x57d9bf=this[_0xa76283(0x35a)](_0x28ebff),_0x911b36=_0x57d9bf[_0xa76283(0x1ed)]();let _0x46d839=0x0;for(const _0x47e9f0 of _0x911b36){const _0x469e87=_0x57d9bf[_0xa76283(0x3ec)](_0x47e9f0),_0x4cc7d2=this[_0xa76283(0x2e7)](_0x434c1b,_0x46d839);this['updateRangeKeyMap'](_0x469e87[_0xa76283(0x2e9)],_0x4cc7d2),_0x46d839++;}}[_0x9268c(0x278)](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x411080,_0x431bcd){const _0x7e6e6c=_0x9268c;if(this['getCollection'](_0x411080)){const _0x145fdf=this[_0x7e6e6c(0x325)](_0x431bcd),_0x1308e6=[];for(const _0x2e1019 of _0x145fdf)this[_0x7e6e6c(0x1f8)][_0x2e1019]!==void 0x0&&_0x1308e6[_0x7e6e6c(0x17b)](this[_0x7e6e6c(0x1f8)][_0x2e1019]);const _0x1e3753=this[_0x7e6e6c(0x42a)](_0x411080),_0x38201e=[],_0x2c43c4=new Set(_0x1308e6);for(const _0x4c51f2 of _0x1e3753)_0x2c43c4[_0x7e6e6c(0x2a4)](_0x4c51f2)||_0x38201e[_0x7e6e6c(0x17b)](_0x4c51f2);return _0x38201e;}}[_0x9268c(0x299)](_0x4d7b8f,_0xfdf6ce,_0x4f14d0,_0x32f098,_0x1168f0){const _0x2f895d=_0x9268c;return _0xfdf6ce&&_0xfdf6ce[_0x2f895d(0x25a)](_0x32f098,_0x1168f0)?_0xfdf6ce[_0x2f895d(0x25a)](_0x32f098,_0x1168f0):_0x4f14d0&&_0x4f14d0[_0x2f895d(0x25a)](_0x32f098,_0x1168f0)?_0x4f14d0[_0x2f895d(0x25a)](_0x32f098,_0x1168f0):_0x4d7b8f[_0x2f895d(0x25a)](_0x32f098,_0x1168f0);}[_0x9268c(0x457)](_0x4bb411,_0x51b0b7,_0x113bae,_0x5c3c0b){const _0x4fd92a=_0x9268c,_0x9939a1=this[_0x4fd92a(0x1eb)][_0x4bb411];if(!_0x9939a1)return;const {subUnitId:_0x49cbd0,range:_0x4e4163,unitId:_0x2a0943}=_0x51b0b7,_0x5570a3=this[_0x4fd92a(0x2d4)][_0x4fd92a(0x3a3)](_0x2a0943);if(!_0x5570a3){console['error'](_0x4fd92a(0x19e));return;}const _0x18c6ac=_0x5570a3[_0x4fd92a(0x171)](_0x49cbd0),_0x5f0604=_0x18c6ac[_0x4fd92a(0x2d0)](),{arrayFormulaCellDataMatrix:_0x1fd871,unitDataMatrix:_0x2ae203}=_0x5c3c0b||{},{startRow:_0x25d9bd,startColumn:_0x373538,endRow:_0x3c1d7e}=this[_0x4fd92a(0x42b)](_0x4e4163,_0x18c6ac);_0x9939a1['reset']();const _0x339fa2=_0x5570a3['getStyles'](),_0x128a16={},_0x200f0b=this[_0x4fd92a(0x299)](_0x5f0604,_0x1fd871,_0x2ae203,_0x25d9bd,_0x373538+_0x113bae);let _0x289179=this['adjustSheetCellData'](_0x200f0b,_0x339fa2,_0x128a16);_0x1d148a['isDateValue'](_0x289179)&&(_0x289179=_0x475d1b['numfmt'][_0x4fd92a(0x17a)](_0x289179['f'],Number(_0x289179['v'])));const _0xaea78e=this[_0x4fd92a(0x430)](_0x289179,_0x373538+_0x113bae);_0x9939a1[_0x4fd92a(0x3bf)](_0xaea78e);for(let _0x5df941=_0x25d9bd+0x1;_0x5df941<=_0x3c1d7e;_0x5df941++){const _0x384d48=this['getMatrixValue'](_0x5f0604,_0x1fd871,_0x2ae203,_0x5df941,_0x373538+_0x113bae);_0x9939a1[_0x4fd92a(0x404)](this[_0x4fd92a(0x408)](_0x384d48,_0x339fa2,_0x128a16),_0x5df941-0x1-_0x25d9bd);}}[_0x9268c(0x168)](_0x19a926,_0x208e1f,_0x27e036){const _0xc2cdca=_0x9268c,{subUnitId:_0xf8af95,range:_0x1610db,unitId:_0xb4890d}=_0x27e036,_0x145fe3=this['_univerInstanceService']['getUnit'](_0xb4890d);if(!_0x145fe3){console[_0xc2cdca(0x3a0)](_0xc2cdca(0x19e));return;}const _0x2227cc=_0x145fe3[_0xc2cdca(0x171)](_0xf8af95),_0x143e59=_0x2227cc['getCellMatrix'](),{startRow:_0x47f566,startColumn:_0x5614ae,endRow:_0x1c8c5d}=this['getRangeStartEndInfo'](_0x1610db,_0x2227cc),_0x243cfd=_0x145fe3[_0xc2cdca(0x44e)](),_0xd648dd={};for(const {dataField:_0x29c9a5,index:_0x1e59a4}of _0x208e1f){_0x29c9a5[_0xc2cdca(0x1b6)]();const _0x417cc2=this[_0xc2cdca(0x299)](_0x143e59,void 0x0,void 0x0,_0x47f566,_0x5614ae+_0x1e59a4);let _0x3ec28f=this[_0xc2cdca(0x408)](_0x417cc2,_0x243cfd,_0xd648dd);_0x1d148a[_0xc2cdca(0x20f)](_0x3ec28f)&&(_0x3ec28f=_0x475d1b[_0xc2cdca(0x2d5)][_0xc2cdca(0x17a)](_0x3ec28f['f'],Number(_0x3ec28f['v'])));const _0x2885cc=this[_0xc2cdca(0x430)](_0x3ec28f,_0x5614ae+_0x1e59a4);_0x29c9a5[_0xc2cdca(0x3bf)](_0x2885cc);}_0x19a926['updateAllDisplayName']();for(let _0x2b667a=_0x47f566+0x1;_0x2b667a<=_0x1c8c5d;_0x2b667a++)for(const {index:_0x1c31d4,dataField:_0x45b988}of _0x208e1f){const _0x2600a6=_0x143e59['getValue'](_0x2b667a,_0x5614ae+_0x1c31d4);_0x45b988['addRecord'](this[_0xc2cdca(0x408)](_0x2600a6,_0x243cfd,_0xd648dd),_0x2b667a-0x1-_0x47f566);}_0x19a926[_0xc2cdca(0x305)](_0x1c8c5d-_0x47f566);}[_0x9268c(0x325)](_0xdfa36a){const _0x269598=_0x9268c,{range:_0x2877d9}=_0xdfa36a,{startColumn:_0x3b67fa,endColumn:_0x4e626a}=_0x2877d9,_0x3abba6=[];for(let _0x363aaf=_0x3b67fa;_0x363aaf<=_0x4e626a;_0x363aaf++)_0x3abba6[_0x269598(0x17b)](this[_0x269598(0x2e7)](_0xdfa36a,_0x363aaf));return _0x3abba6;}[_0x9268c(0x408)](_0xcc736b,_0x172053,_0x55fbf1){const _0x5cc71f=_0x9268c;if(_0xcc736b){const {s:_0x5a4d32,v:_0x106523,t:_0xcccb17,p:_0x45cc78}=_0xcc736b;if(_0x45cc78)return _0x1bae6f(_0x45cc78);const _0x14079e=_0x172053[_0x5cc71f(0x3bb)](_0x5a4d32);if(_0x14079e&&_0xcccb17===_0x475d1b[_0x5cc71f(0x3ca)][_0x5cc71f(0x371)]&&_0x14079e['n']){const {pattern:_0x2c9b73}=_0x14079e['n'];_0x55fbf1[_0x2c9b73]||(_0x55fbf1[_0x2c9b73]=_0x475d1b['numfmt'][_0x5cc71f(0x266)](_0x2c9b73));const _0x1636b5=_0x55fbf1[_0x2c9b73],_0x5683c=_0x1636b5['isDate'];if(_0x1636b5[_0x5cc71f(0x354)])return String(_0x106523);if(_0x5683c)return{'v':_0x106523,'f':_0x2c9b73};}if(_0xcccb17===_0x475d1b['CellValueType'][_0x5cc71f(0x371)])return Number(_0x106523);if(_0xcccb17===_0x475d1b[_0x5cc71f(0x3ca)]['STRING']||_0xcccb17===_0x475d1b[_0x5cc71f(0x3ca)]['FORCE_STRING'])return String(_0x106523);if(_0xcccb17===void 0x0){const _0x362702=Number(_0x106523);if(!Number['isNaN'](_0x362702)&&String(_0x362702)===_0x106523)return _0x362702;}return _0x106523!=null?_0x106523:null;}else return null;}[_0x9268c(0x2cc)](_0x422e73){const _0x16dfc3=_0x9268c,{sheetName:_0x4ddaf4,range:_0x47c18e,unitId:_0x50d12d}=_0x422e73,_0x189023=this[_0x16dfc3(0x2d4)][_0x16dfc3(0x3a3)](_0x50d12d);if(!_0x189023)return console[_0x16dfc3(0x3a0)](_0x16dfc3(0x19e)),{'header':[],'data':[]};const _0x2400b7=_0x189023['getSheetBySheetName'](_0x4ddaf4),_0xf6558d=_0x2400b7[_0x16dfc3(0x2d0)](),{startRow:_0xb5a85a,startColumn:_0x5b8573,endRow:_0x1a3f1b,endColumn:_0x172110}=this[_0x16dfc3(0x42b)](_0x47c18e,_0x2400b7),_0x3a9290=_0x189023[_0x16dfc3(0x44e)](),_0x4b2ab4=[],_0x50a1ba=[],_0x433b53={};for(let _0x3cb658=_0xb5a85a;_0x3cb658<=_0x1a3f1b;_0x3cb658++){const _0x26a71d=[];for(let _0x582c8b=_0x5b8573;_0x582c8b<=_0x172110;_0x582c8b++){const _0xd0b28c=_0xf6558d[_0x16dfc3(0x25a)](_0x3cb658,_0x582c8b);_0x3cb658===_0xb5a85a?_0x4b2ab4[_0x16dfc3(0x17b)](_0xd0b28c==null?null:String(_0xd0b28c['v'])):_0x26a71d['push'](this[_0x16dfc3(0x408)](_0xd0b28c,_0x3a9290,_0x433b53));}_0x50a1ba[_0x16dfc3(0x17b)](_0x26a71d);}return{'header':_0x4b2ab4,'data':_0x50a1ba};}[_0x9268c(0x38e)](){const _0x10016d=_0x9268c;return super[_0x10016d(0x38e)]();}[_0x9268c(0x20e)](_0x2b488e){const _0xa9981a=_0x9268c;super[_0xa9981a(0x20e)](_0x2b488e),this[_0xa9981a(0x33e)]();}[_0x9268c(0x3dc)](){const _0x550597=_0x9268c;super[_0x550597(0x3dc)](),this['rangeKeyMap']={},this[_0x550597(0x445)]=null;}}const _0x100a8a=_0x1b9bd1=>{const _0x59ef83=_0x9268c,{targetCellInfo:_0xd2d954}=_0x1b9bd1,{matrixCache:_0xc2573e,rangesCache:_0x2540d5}=_0x39db0e({'filter':_0x59ef83(0x228),'row':'Row','column':_0x59ef83(0x174),'values':_0x59ef83(0x183)},_0xd2d954),_0x126f33=new _0x475d1b[(_0x59ef83(0x405))]();return _0xc2573e[_0x59ef83(0x45e)]((_0x214412,_0x3936ca,_0x8c7591)=>{_0x126f33['setValue'](_0x214412,_0x3936ca,_0x8c7591);}),{'matrix':_0x126f33,'rangesCache':_0x2540d5};},_0x189f78=_0xfe3c5e=>{const _0xdcf5ff=_0x9268c;let _0x523fbe;if(_0xfe3c5e!=null&&_0xfe3c5e['v']||(_0xfe3c5e==null?void 0x0:_0xfe3c5e['v'])===0x0){_0x523fbe||(_0x523fbe={});const _0x13c2fe=_0x40f122(_0xfe3c5e['v']);typeof _0x13c2fe==_0xdcf5ff(0x409)?_0x523fbe['t']=_0x475d1b[_0xdcf5ff(0x3ca)][_0xdcf5ff(0x371)]:typeof _0x13c2fe=='string'&&(_0x523fbe['t']=_0x475d1b[_0xdcf5ff(0x3ca)]['STRING']),_0x523fbe['v']=_0x13c2fe;}return _0x523fbe;},_0x4cebe8=(_0x1d6b99,_0x4226e4,_0x451ab9)=>{const _0x54d37f=_0x9268c;var _0x92dfe3,_0x370b78,_0x1d5da5,_0x20fbb6,_0x308fe9,_0xaaab57,_0x5d574e,_0x22073f,_0x2e7aa2,_0x414ccc,_0x5c4805,_0x57b6d6;const {cornerView:_0xc3b4a0,rowView:_0x5aac5e,colView:_0x47de4b,dataView:_0x139af6,pageView:_0x3f3f8c,formatMap:_0x33ae30}=_0x1d6b99,{row:_0x421995,col:_0x46b04e}=_0x4226e4,_0x20ce9e=new _0x475d1b[(_0x54d37f(0x405))]();let _0x564593=_0x421995,_0x101ac9=_0x46b04e;Object[_0x54d37f(0x16a)](_0x3f3f8c[_0x54d37f(0x43e)])[_0x54d37f(0x3df)](_0xf544af=>{const _0x50c78d=_0x54d37f;Object[_0x50c78d(0x16a)](_0x3f3f8c[_0x50c78d(0x43e)][Number(_0xf544af)])[_0x50c78d(0x3df)](_0x27aa0b=>{const _0x3a6064=_0x50c78d,_0x368748={..._0x3f3f8c[_0x3a6064(0x43e)][Number(_0xf544af)][Number(_0x27aa0b)]};_0x20ce9e[_0x3a6064(0x316)](Number(_0xf544af)+_0x564593,Number(_0x27aa0b)+_0x101ac9,_0x189f78(_0x368748));});});const _0x19aca9=Object[_0x54d37f(0x16a)](_0x3f3f8c[_0x54d37f(0x43e)])['length'];_0x564593+=_0x19aca9+(_0x19aca9?_0xe9af5e:0x0);const _0x38e158=_0xc3b4a0[_0x54d37f(0x418)](),_0x47934c=_0xc3b4a0[_0x54d37f(0x3e9)]();for(let _0x561472=0x0;_0x561472<_0x38e158;_0x561472++)for(let _0x27c993=0x0;_0x27c993<_0x47934c;_0x27c993++){const _0x34038a={...(_0x370b78=(_0x92dfe3=_0xc3b4a0[_0x54d37f(0x43e)])==null?void 0x0:_0x92dfe3[_0x561472])==null?void 0x0:_0x370b78[_0x27c993]};_0x34038a&&((_0x1d5da5=_0x5aac5e[_0x54d37f(0x29f)][_0x27c993])!=null&&_0x1d5da5[_0x54d37f(0x1ae)])&&_0x27c993===_0x47934c-0x1&&_0x561472===_0x38e158-0x1&&(_0x34038a['v']=''+_0x451ab9['sheets-pivot.value']),_0x20ce9e['setValue'](_0x561472+_0x564593,_0x27c993+_0x101ac9,_0x189f78(_0x34038a));}_0x101ac9+=_0x47934c;const _0x19b416=_0x47de4b['headerMap'],_0x4bfd3c=_0x47de4b[_0x54d37f(0x1db)]()>=0x0?_0x47de4b['getLastRow']()+0x1:0x0,_0xef8f59=_0x47de4b[_0x54d37f(0x34a)]()>=0x0?_0x47de4b[_0x54d37f(0x34a)]()+0x1:0x0;for(let _0x158775=0x0;_0x158775<_0xef8f59;_0x158775++)for(let _0xcfec36=0x0;_0xcfec36<_0x4bfd3c;_0xcfec36++){const _0x39a716={...(_0x308fe9=(_0x20fbb6=_0x47de4b[_0x54d37f(0x43e)])==null?void 0x0:_0x20fbb6[_0x158775])==null?void 0x0:_0x308fe9[_0xcfec36]},_0x15d105=(_0xaaab57=_0x19b416[_0x158775])==null?void 0x0:_0xaaab57[_0x54d37f(0x3a9)],_0x41a6c6=_0x33ae30[_0x15d105];_0x39a716&&(_0x39a716['v']=_0x551650(_0x39a716,_0x158775===0x0&&((_0x5d574e=_0x47de4b[_0x54d37f(0x2e1)](_0xcfec36+0x1))==null?void 0x0:_0x5d574e[_0x54d37f(0x1ae)]),_0x41a6c6,_0x451ab9)),_0x20ce9e[_0x54d37f(0x316)](_0x158775+_0x564593,_0xcfec36+_0x101ac9,_0x189f78(_0x39a716));}_0x564593+=_0x38e158;const _0x324bf1=_0x5aac5e[_0x54d37f(0x29f)],_0x5d2513=_0x5aac5e[_0x54d37f(0x1db)]()>=0x0?_0x5aac5e['getLastRow']()+0x1:0x0,_0x138c49=_0x5aac5e[_0x54d37f(0x34a)]()>=0x0?_0x5aac5e[_0x54d37f(0x34a)]()+0x1:0x0;for(let _0x386eaa=0x0;_0x386eaa<_0x5d2513;_0x386eaa++)for(let _0x52c033=0x0;_0x52c033<_0x138c49;_0x52c033++){const _0x140568={...(_0x2e7aa2=(_0x22073f=_0x5aac5e[_0x54d37f(0x43e)])==null?void 0x0:_0x22073f[_0x386eaa])==null?void 0x0:_0x2e7aa2[_0x52c033]},_0xf93ae6=(_0x414ccc=_0x324bf1[_0x52c033])==null?void 0x0:_0x414ccc[_0x54d37f(0x3a9)],_0x5ce831=_0x33ae30[_0xf93ae6];_0x140568&&(_0x140568['v']=_0x551650(_0x140568,!0x1,_0x5ce831,_0x451ab9)),_0x20ce9e[_0x54d37f(0x316)](_0x386eaa+_0x564593,_0x52c033+_0x46b04e,_0x189f78(_0x140568));}const _0x394f9b=_0x139af6[_0x54d37f(0x418)](),_0x36a88b=_0x139af6[_0x54d37f(0x3e9)]();for(let _0x2c6be9=0x0;_0x2c6be9<_0x394f9b;_0x2c6be9++)for(let _0x3201a9=0x0;_0x3201a9<_0x36a88b;_0x3201a9++){const _0x2a4ca4={...(_0x57b6d6=(_0x5c4805=_0x139af6[_0x54d37f(0x43e)])==null?void 0x0:_0x5c4805[_0x2c6be9])==null?void 0x0:_0x57b6d6[_0x3201a9]};_0x20ce9e['setValue'](_0x2c6be9+_0x564593,_0x3201a9+_0x101ac9,_0x189f78(_0x2a4ca4));}return _0x20ce9e;},_0x5e1a38=_0x1a0020=>{const _0x64655c=_0x9268c,{view:_0x218130,targetCellInfo:_0x3e8d7d,isEmpty:_0x55e2d6,textInfo:_0x5eab67}=_0x1a0020;if(_0x55e2d6)return _0x100a8a(_0x1a0020);const {pageView:_0x266bd3,cornerView:_0x274573,rowView:_0x352fbb,colView:_0x29445b,dataView:_0x139709}=_0x218130,_0x10932c=_0xc7a07b(_0x3e8d7d,_0x266bd3,!0x0),_0x493699=_0x266bd3[_0x64655c(0x16f)]>=0x0?_0x266bd3[_0x64655c(0x16f)]+0x1:0x0,_0x206abf=_0x274573[_0x64655c(0x418)](),_0x9066bf=_0x274573[_0x64655c(0x3e9)](),_0xcd74a8=_0x10932c['length']>0x0?_0xe9af5e:0x0,_0xcf32c5=_0xc7a07b({'row':_0x3e8d7d[_0x64655c(0x18c)]+_0x493699+_0xcd74a8,'col':_0x3e8d7d[_0x64655c(0x2b7)]},_0x274573,!0x1,!0x1),_0x4abb50=_0xc7a07b({'row':_0x3e8d7d[_0x64655c(0x18c)]+_0x493699+_0xcd74a8+_0x206abf,'col':_0x3e8d7d[_0x64655c(0x2b7)]},_0x352fbb,!0x1,!0x0),_0x5f435d=_0xc7a07b({'row':_0x3e8d7d['row']+_0x493699+_0xcd74a8,'col':_0x3e8d7d[_0x64655c(0x2b7)]+_0x9066bf},_0x29445b,!0x1,!0x0),_0x3d018a=_0xc7a07b({'row':_0x3e8d7d[_0x64655c(0x18c)]+_0x493699+_0xcd74a8+_0x206abf,'col':_0x3e8d7d[_0x64655c(0x2b7)]+_0x9066bf},_0x139709,!0x1,!0x1),_0x43666d={'rowRanges':_0x4abb50,'colRanges':_0x5f435d,'cornerRanges':_0xcf32c5,'dataRanges':_0x3d018a,'pageRanges':_0x10932c};return{'matrix':_0x4cebe8(_0x218130,_0x3e8d7d,_0x5eab67),'rangesCache':_0x43666d};};var _0xb2b58=Object[_0x9268c(0x379)],_0x2aef01=(_0x5a947a,_0x2d35c9,_0x33c821,_0x4276ec)=>{const _0x5f10b0=_0x9268c;for(var _0x16146e=_0x4276ec>0x1?void 0x0:_0x4276ec?_0xb2b58(_0x2d35c9,_0x33c821):_0x2d35c9,_0x1e7d1e=_0x5a947a[_0x5f10b0(0x32d)]-0x1,_0x2a834b;_0x1e7d1e>=0x0;_0x1e7d1e--)(_0x2a834b=_0x5a947a[_0x1e7d1e])&&(_0x16146e=_0x2a834b(_0x16146e)||_0x16146e);return _0x16146e;},_0x2232d3=(_0x2c7f9c,_0x571c70)=>(_0x58f71d,_0x350890)=>_0x571c70(_0x58f71d,_0x350890,_0x2c7f9c);_0x29b926[_0x9268c(0x420)]=class extends _0x475d1b[_0x9268c(0x158)]{constructor(_0x18e403,_0x244910,_0x43bf57,_0x4abaf9,_0x5cf061,_0x6f0ed1){const _0x2eb778=_0x9268c;super(),_0x346b88(this,_0x2eb778(0x462),new Map()),_0x346b88(this,_0x2eb778(0x287),new Map()),_0x346b88(this,_0x2eb778(0x41d),new Map()),_0x346b88(this,_0x2eb778(0x1b0)),_0x346b88(this,_0x2eb778(0x3ba),new _0x53d07a[(_0x2eb778(0x1f6))]()),_0x346b88(this,_0x2eb778(0x411),this[_0x2eb778(0x3ba)][_0x2eb778(0x1f1)]()),_0x346b88(this,'_viewData$',new _0x53d07a[(_0x2eb778(0x1f6))]()),_0x346b88(this,_0x2eb778(0x1d8),this[_0x2eb778(0x2b8)]['asObservable']()),_0x346b88(this,_0x2eb778(0x162),new _0x53d07a['Subject']()),_0x346b88(this,_0x2eb778(0x440),this[_0x2eb778(0x162)][_0x2eb778(0x1f1)]()),_0x346b88(this,_0x2eb778(0x177),new Map()),_0x346b88(this,_0x2eb778(0x2f2),[]),_0x346b88(this,_0x2eb778(0x18b),new Map()),(this['_injector']=_0x18e403,this['_univerInstanceService']=_0x244910,this[_0x2eb778(0x279)]=_0x43bf57,this[_0x2eb778(0x336)]=_0x4abaf9,this[_0x2eb778(0x31d)]=_0x5cf061,this[_0x2eb778(0x3e5)]=_0x6f0ed1,this['_initSnapshot']());}[_0x9268c(0x22d)](){const _0x487d0a=_0x9268c;return this['_textInfo']?this[_0x487d0a(0x1b0)]:_0x48891c;}[_0x9268c(0x2da)](_0x4fc65f){const _0xff37da=_0x9268c;this[_0xff37da(0x1b0)]=_0x4fc65f;}[_0x9268c(0x3eb)](_0x1f278e){const _0x43783c=_0x9268c;var _0x41576e;const {from:_0x3a25d3,to:_0x3a05a1,unitId:_0xf1097c,fromRange:_0x93cc78,toRange:_0x4aeea7}=_0x1f278e;if(_0x3a25d3&&_0x3a05a1){const _0x5d4627=this[_0x43783c(0x35d)](_0xf1097c),_0x5216a2=this[_0x43783c(0x462)][_0x43783c(0x3bb)](_0xf1097c),_0x6e912f=(_0x41576e=this[_0x43783c(0x2d4)]['getUnit'](_0xf1097c))==null?void 0x0:_0x41576e[_0x43783c(0x171)](_0x3a05a1[_0x43783c(0x1ca)]);if(!_0x5216a2||!_0x6e912f)return;const _0x2b1d39=_0x6e912f==null?void 0x0:_0x6e912f['getName']();for(const [_0x3bf2e7,_0xd650ce]of _0x5216a2['entries']())for(const [_0x838c7c,_0x37e1cd]of _0xd650ce[_0x43783c(0x30b)]()){const {sourceRangeInfo:_0x1816b8}=_0x37e1cd;if(_0x1816b8['unitId']===_0xf1097c&&_0x1816b8['subUnitId']===_0x3a25d3['subUnitId']&&_0x475d1b['Rectangle']['contains'](_0x93cc78,_0x1816b8[_0x43783c(0x3bd)])){const _0x2aa115={'row':_0x1816b8['range'][_0x43783c(0x2ff)]-_0x93cc78[_0x43783c(0x2ff)],'col':_0x1816b8['range']['startColumn']-_0x93cc78[_0x43783c(0x1e9)]},_0x205812={'unitId':_0xf1097c,'subUnitId':_0x3a05a1[_0x43783c(0x1ca)],'sheetName':_0x2b1d39,'range':{'startRow':_0x4aeea7[_0x43783c(0x2ff)]+_0x2aa115[_0x43783c(0x18c)],'endRow':_0x4aeea7[_0x43783c(0x2ff)]+_0x2aa115[_0x43783c(0x18c)]+_0x1816b8[_0x43783c(0x3bd)][_0x43783c(0x1b9)]-_0x1816b8['range'][_0x43783c(0x2ff)],'startColumn':_0x4aeea7['startColumn']+_0x2aa115[_0x43783c(0x2b7)],'endColumn':_0x4aeea7[_0x43783c(0x1e9)]+_0x2aa115[_0x43783c(0x2b7)]+_0x1816b8[_0x43783c(0x3bd)]['endColumn']-_0x1816b8[_0x43783c(0x3bd)][_0x43783c(0x1e9)]}};_0x5d4627[_0x43783c(0x3eb)](_0x838c7c,_0x205812);const _0x6b70f0={..._0x37e1cd,'sourceRangeInfo':_0x205812};this['_updateModelCache'](_0xf1097c,_0x3a05a1[_0x43783c(0x1ca)],_0x838c7c,_0x6b70f0),this[_0x43783c(0x2fc)]({'unitId':_0xf1097c,'token':_0x838c7c,'type':_0x2f2b6e[_0x43783c(0x402)],'oldSourceRangeInfo':_0x1816b8,'dataRangeInfo':_0x205812,'targetCellInfo':_0x37e1cd[_0x43783c(0x1bf)]}),this['updateConfig']({'unitId':_0xf1097c,'subUnitId':_0x3a05a1[_0x43783c(0x1ca)],'oldSubUnitId':_0x3bf2e7,'pivotTableId':_0x838c7c,'pivotTableConfig':_0x6b70f0,'collectionConfig':_0x5d4627[_0x43783c(0x38e)]()});}}}}[_0x9268c(0x2fc)](_0x831744){const _0x5d9eff=_0x9268c;this[_0x5d9eff(0x3ba)][_0x5d9eff(0x347)](_0x831744);}[_0x9268c(0x35d)](_0x2b4c47){const _0x176875=_0x9268c;let _0x17ad8b=this[_0x176875(0x177)][_0x176875(0x3bb)](_0x2b4c47);return _0x17ad8b||(_0x17ad8b=new _0x2171ca(this,this[_0x176875(0x2d4)]),this['_dataFieldManagerCollection'][_0x176875(0x40a)](_0x2b4c47,_0x17ad8b)),_0x17ad8b;}['getCollection'](_0x2fc114,_0x34c16b){const _0x2b86f0=_0x9268c;return this['getDataFieldManager'](_0x2fc114)[_0x2b86f0(0x3c3)][_0x34c16b];}[_0x9268c(0x3b4)](_0x136ec5,_0x4ff673,_0x2f6a70){const _0x57a765=_0x9268c;return this[_0x57a765(0x35d)](_0x136ec5)['getUpdateRangeDeleteIds'](_0x4ff673,_0x2f6a70);}['_ensurePivotMap'](_0x538912,_0x386a07){const _0x4428aa=_0x9268c;let _0x202f68=this[_0x4428aa(0x462)][_0x4428aa(0x3bb)](_0x538912);_0x202f68||(_0x202f68=new Map(),this[_0x4428aa(0x462)][_0x4428aa(0x40a)](_0x538912,_0x202f68));let _0x406379=_0x202f68[_0x4428aa(0x3bb)](_0x386a07);return _0x406379||(_0x406379=new Map(),_0x202f68['set'](_0x386a07,_0x406379)),_0x406379;}['_updateModelCache'](_0x1b9e09,_0x287c9b,_0x526d27,_0x282e29){const _0x118be7=_0x9268c;this[_0x118be7(0x1e5)](_0x1b9e09,_0x287c9b)['set'](_0x526d27,_0x282e29);}[_0x9268c(0x3cd)](_0xf757f1,_0x2016a4,_0x5c9bba){const _0xf04405=_0x9268c;var _0x13b2cd,_0x56a1dd,_0x4fd7cc,_0x3a3501;((_0x56a1dd=(_0x13b2cd=this[_0xf04405(0x462)]['get'](_0xf757f1))==null?void 0x0:_0x13b2cd[_0xf04405(0x3bb)](_0x2016a4))==null?void 0x0:_0x56a1dd[_0xf04405(0x3bb)](_0x5c9bba))&&((_0x3a3501=(_0x4fd7cc=this[_0xf04405(0x462)][_0xf04405(0x3bb)](_0xf757f1))==null?void 0x0:_0x4fd7cc[_0xf04405(0x3bb)](_0x2016a4))==null||_0x3a3501['delete'](_0x5c9bba));}[_0x9268c(0x333)](_0x286244,_0x9b3632){const _0x4c5281=_0x9268c;this[_0x4c5281(0x287)]['set'](_0x286244,_0x9b3632);}[_0x9268c(0x2e8)](_0x1c8cb6){const _0x156249=_0x9268c;this[_0x156249(0x287)][_0x156249(0x37c)](_0x1c8cb6);}[_0x9268c(0x300)](_0x31d368,_0x116c03){const _0x2e1f7c=_0x9268c;let _0x19e960=this[_0x2e1f7c(0x41d)][_0x2e1f7c(0x3bb)](_0x31d368);_0x19e960||(_0x19e960=new Map(),this[_0x2e1f7c(0x41d)][_0x2e1f7c(0x40a)](_0x31d368,_0x19e960));let _0x569392=_0x19e960[_0x2e1f7c(0x3bb)](_0x116c03);return _0x569392||(_0x569392=new Map(),_0x19e960[_0x2e1f7c(0x40a)](_0x116c03,_0x569392)),_0x569392;}['updateConfig'](_0x46911c){const _0x3dd115=_0x9268c,{unitId:_0x4c836c,subUnitId:_0x22bde9,pivotTableId:_0x5c589d,pivotTableConfig:_0x27df22,collectionConfig:_0x5a8242}=_0x46911c,_0xc26972={'unitId':_0x4c836c,'subUnitId':_0x22bde9,'oldSubUnitId':_0x22bde9,'pivotTableId':_0x5c589d,'pivotTableConfig':_0x27df22,'collectionConfig':_0x5a8242};this['_commandService'][_0x3dd115(0x267)](_0x2c1bd3['id'],_0xc26972,{'onlyLocal':!0x0});}[_0x9268c(0x1b5)](_0x39ea57,_0x329c7b,_0xd2c57a,_0x59f579,_0x38afe8,_0x50c949,_0x4bd7ef,_0x2c7cc8=!0x1){const _0x45b519=_0x9268c;var _0xec0b1c;this[_0x45b519(0x31d)][_0x45b519(0x267)](_0x421bc0['id'],{'single':{'unitId':_0x39ea57,'subUnitId':_0x329c7b,'type':_0xd2c57a,'pivotTableId':_0x59f579,'view':_0x38afe8,'pivotConfig':_0x50c949},'collectionConfig':{[_0x39ea57]:_0x4bd7ef}},{'onlyLocal':!0x0});const _0x461037=!!((_0xec0b1c=this[_0x45b519(0x289)](_0x59f579))!=null&&_0xec0b1c[_0x45b519(0x173)]()),_0x4410c3=this['getPivotTableConfig'](_0x39ea57,_0x329c7b,_0x59f579);_0x4410c3&&this[_0x45b519(0x217)]({'view':_0x38afe8,'pivotTableId':_0x59f579,'textInfo':this[_0x45b519(0x22d)](),'isEmpty':_0x461037,'targetCellInfo':_0x4410c3[_0x45b519(0x1bf)]},_0x2c7cc8);}[_0x9268c(0x217)](_0x475efa,_0x3d9c96){const _0x269200=_0x9268c,{targetCellInfo:_0x1f821b,pivotTableId:_0x4846cb}=_0x475efa,{unitId:_0x1461f6,subUnitId:_0x400984}=_0x1f821b,_0xaddaf8=this[_0x269200(0x300)](_0x1461f6,_0x400984),_0x3c2a4a=_0xaddaf8[_0x269200(0x3bb)](_0x4846cb);let _0x3ba7c6,_0x2e6b31;_0x3c2a4a&&(_0x3ba7c6=_0x3c2a4a[_0x269200(0x1b8)],_0x2e6b31=_0x3c2a4a[_0x269200(0x293)]);const {rangesCache:_0x400950,matrix:_0xef2f9}=_0x5e1a38(_0x475efa);_0xaddaf8[_0x269200(0x40a)](_0x4846cb,{'rangeCache':_0x400950,'matrix':_0xef2f9,'oldMatrix':_0x2e6b31,'oldRangeCache':_0x3ba7c6}),_0x3d9c96||this[_0x269200(0x2b8)][_0x269200(0x347)]({'unitId':_0x1461f6,'subUnitId':_0x400984,'pivotTableId':_0x4846cb});}['addPivotTable'](_0x2cc61e,_0x5a637d,_0x476155,_0x237301,_0xe3f5ec){const _0x149ffd=_0x9268c;this['_updateModelCache'](_0x2cc61e,_0x5a637d,_0x476155,_0xe3f5ec),this[_0x149ffd(0x333)](_0x476155,_0x237301);}[_0x9268c(0x2e5)](_0x5739ff,_0x241a91,_0x4f7a26){const _0x336a25=_0x9268c,_0x164f1d=this[_0x336a25(0x35d)](_0x5739ff);_0x164f1d[_0x336a25(0x42a)](_0x4f7a26)[_0x336a25(0x3df)](_0x54f416=>{const _0x453104=_0x336a25;_0x164f1d[_0x453104(0x378)](_0x54f416);}),this['removeCollections'](_0x5739ff,_0x4f7a26),this[_0x336a25(0x3cd)](_0x5739ff,_0x241a91,_0x4f7a26),this[_0x336a25(0x2e8)](_0x4f7a26);}[_0x9268c(0x16e)](_0x524e17,_0x468883,_0x163ee0,_0x2b81b2){const _0x344018=_0x9268c;this[_0x344018(0x466)](_0x524e17,_0x468883,_0x163ee0,_0x2b81b2);}[_0x9268c(0x346)](_0x3f93ee,_0x17bb09,_0x1a5e66){const _0x138a0d=_0x9268c;var _0x414561,_0x369b42;const _0x1f8996=(_0x369b42=(_0x414561=this['_model'][_0x138a0d(0x3bb)](_0x3f93ee))==null?void 0x0:_0x414561[_0x138a0d(0x3bb)](_0x17bb09))==null?void 0x0:_0x369b42[_0x138a0d(0x3bb)](_0x1a5e66);if(_0x1f8996)return _0x1f8996;}[_0x9268c(0x327)](_0x3103c8,_0x92f7e4,_0x307c64){const _0x366a7f=_0x9268c;var _0x332684,_0x2a136b;const _0x450f08=(_0x2a136b=(_0x332684=this['_model'][_0x366a7f(0x3bb)](_0x3103c8))==null?void 0x0:_0x332684[_0x366a7f(0x3bb)](_0x92f7e4))==null?void 0x0:_0x2a136b[_0x366a7f(0x3bb)](_0x307c64);if(_0x450f08)return _0x450f08['fieldsConfig'];}['getPivotTableInstance'](_0x509a37){const _0x4b2c8a=_0x9268c;return this[_0x4b2c8a(0x287)]['get'](_0x509a37);}[_0x9268c(0x3cf)](_0x44df3c){const _0x4d6aee=_0x9268c;this[_0x4d6aee(0x462)][_0x4d6aee(0x37c)](_0x44df3c);const _0x202cd3=this[_0x4d6aee(0x177)][_0x4d6aee(0x3bb)](_0x44df3c);_0x202cd3&&(_0x202cd3[_0x4d6aee(0x3dc)](),this[_0x4d6aee(0x177)][_0x4d6aee(0x37c)](_0x44df3c)),this[_0x4d6aee(0x41d)]['delete'](_0x44df3c),this[_0x4d6aee(0x2f2)][_0x4d6aee(0x3df)](_0x5bde50=>{const _0x5d3128=_0x4d6aee;_0x5bde50[_0x5d3128(0x3cf)](_0x44df3c);});}[_0x9268c(0x222)](_0x52697c,_0x49f652,_0xdd2b7f,_0x4742d4){const _0x5b11c4=_0x9268c;return this[_0x5b11c4(0x35d)](_0xdd2b7f[_0x5b11c4(0x329)])['addCollectionByJSON'](_0x52697c,_0x49f652,_0xdd2b7f,_0x4742d4);}['createCollectionWithDataRange'](_0x5d7dd9){const _0x5effde=_0x9268c;return this['getDataFieldManager'](_0x5d7dd9[_0x5effde(0x329)])[_0x5effde(0x2aa)](_0x5d7dd9);}[_0x9268c(0x168)](_0x1f77e9,_0x1083ba,_0x44598f){const _0x4da751=_0x9268c;this[_0x4da751(0x35d)](_0x44598f[_0x4da751(0x329)])[_0x4da751(0x168)](_0x1f77e9,_0x1083ba,_0x44598f);}[_0x9268c(0x319)](_0x178600,_0x5e241a){const _0x475ccf=_0x9268c;this['getDataFieldManager'](_0x178600)[_0x475ccf(0x378)](_0x5e241a);}[_0x9268c(0x3dd)](_0x5051d4,_0x1a102f){const _0x4a3b7b=_0x9268c;this[_0x4a3b7b(0x35d)](_0x5051d4)['removeCollectionImp'](_0x1a102f);}['getSubUnitPivotConfigs'](_0xfc012c,_0x424301){const _0xae8302=_0x9268c;var _0x2310dc;return(_0x2310dc=this['_model']['get'](_0xfc012c))==null?void 0x0:_0x2310dc[_0xae8302(0x3bb)](_0x424301);}[_0x9268c(0x19a)](_0x26266b){const _0x522b69=_0x9268c;for(const [_0x1da96e,_0x306125]of this[_0x522b69(0x462)][_0x522b69(0x30b)]())for(const [_0x298332,_0x36490a]of _0x306125['entries']())if(_0x36490a['has'](_0x26266b))return{'unitId':_0x1da96e,'subUnitId':_0x298332};return null;}[_0x9268c(0x3f1)](_0x8cec81,_0x4091b6,_0x5c7a0a,_0x265321){const _0x2a34c4=_0x9268c,_0x1f4829=this[_0x2a34c4(0x300)](_0x8cec81,_0x4091b6);_0x265321?_0x1f4829['set'](_0x5c7a0a,_0x265321):_0x1f4829['delete'](_0x5c7a0a),this[_0x2a34c4(0x2b8)][_0x2a34c4(0x347)]({'unitId':_0x8cec81,'subUnitId':_0x4091b6,'pivotTableId':_0x5c7a0a});}[_0x9268c(0x3dc)](){const _0x899b85=_0x9268c;super[_0x899b85(0x3dc)]();}['getViewData'](_0x1a76b8,_0x40ac3d,_0x2b74b4){const _0x46acbd=_0x9268c;var _0x352d09,_0x2ce721;const _0x2914ec=(_0x2ce721=(_0x352d09=this['_viewData'][_0x46acbd(0x3bb)](_0x1a76b8))==null?void 0x0:_0x352d09[_0x46acbd(0x3bb)](_0x40ac3d))==null?void 0x0:_0x2ce721[_0x46acbd(0x3bb)](_0x2b74b4);return _0x2914ec||null;}[_0x9268c(0x387)](_0x1476c0){this['updateDirtyPivotTable'](_0x1476c0);}[_0x9268c(0x294)](_0x2a22b0){const _0x2729fb=_0x9268c,{token:_0x458210,unitId:_0x5e63ac,subUnitId:_0x524b93}=_0x2a22b0,_0x1ed7f0=_0x5e63ac+'-'+_0x524b93+'-'+_0x458210;this[_0x2729fb(0x18b)][_0x2729fb(0x3bb)](_0x1ed7f0)&&clearTimeout(this['_queryingMap'][_0x2729fb(0x3bb)](_0x1ed7f0));const _0x1e3e5a=setTimeout(()=>{const _0x3bd37f=_0x2729fb;this[_0x3bd37f(0x27f)](_0x2a22b0),this['_queryingMap'][_0x3bd37f(0x37c)](_0x1ed7f0);},_0x28174c);this['_queryingMap'][_0x2729fb(0x40a)](_0x1ed7f0,_0x1e3e5a);}['queryDirtyPivotTable'](_0x427bbc){const _0x5286d0=_0x9268c,{unitId:_0x186424,subUnitId:_0x1f5ad2,token:_0x529f17,type:_0x1bc693,pivotConfig:_0x15753c}=_0x427bbc,_0x4a21cc=this['getPivotTableInstance'](_0x529f17),_0x3c8248=_0x4a21cc==null?void 0x0:_0x4a21cc[_0x5286d0(0x3f9)](),_0x4a96c0=_0x15753c!=null?_0x15753c:this[_0x5286d0(0x346)](_0x186424,_0x1f5ad2,_0x529f17);_0x4a96c0&&(_0x4a96c0[_0x5286d0(0x173)]=!!(_0x4a21cc!=null&&_0x4a21cc['isEmpty']())),(_0x3c8248||_0x1bc693===_0x94aa6e[_0x5286d0(0x22e)])&&this[_0x5286d0(0x1b5)](_0x186424,_0x1f5ad2,_0x1bc693,_0x529f17,_0x3c8248,_0x4a96c0,this[_0x5286d0(0x35d)](_0x186424)[_0x5286d0(0x38e)]());}['toJSON'](_0x52c495){const _0x1d98ec=_0x9268c,_0x51ea1b={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x1d98ec(0x35d)](_0x52c495)&&(_0x51ea1b['dataFieldManagerConfig'][_0x52c495]=this[_0x1d98ec(0x35d)](_0x52c495)[_0x1d98ec(0x38e)]()),this['_model']['get'](_0x52c495)){_0x51ea1b[_0x1d98ec(0x159)][_0x52c495]={};const _0xe9c8c2=this['_model'][_0x1d98ec(0x3bb)](_0x52c495);_0xe9c8c2!=null&&_0xe9c8c2[_0x1d98ec(0x3d7)]&&[..._0xe9c8c2['keys']()][_0x1d98ec(0x3df)](_0x42833=>{const _0x5d6b68=_0x1d98ec,_0x489973=_0xe9c8c2[_0x5d6b68(0x3bb)](_0x42833);_0x489973!=null&&_0x489973['size']&&(_0x51ea1b[_0x5d6b68(0x159)][_0x52c495][_0x42833]={},[..._0x489973[_0x5d6b68(0x16a)]()][_0x5d6b68(0x3df)](_0x485dc6=>{const _0x2860ac=_0x5d6b68,_0x32b624=_0x489973[_0x2860ac(0x3bb)](_0x485dc6);_0x32b624&&(_0x51ea1b[_0x2860ac(0x159)][_0x52c495][_0x42833][_0x485dc6]=_0x32b624);}));});}return _0x51ea1b;}[_0x9268c(0x20e)](_0x5c81d1){const _0x2453c0=_0x9268c;var _0x39e3f8;const {dataFieldManagerConfig:_0x1b2f6e,pivotTableConfigs:_0x4362b9}=_0x5c81d1;_0x1b2f6e&&Object[_0x2453c0(0x16a)](_0x1b2f6e)['forEach'](_0x5e6b8d=>{const _0x465570=_0x2453c0;this[_0x465570(0x35d)](_0x5e6b8d)[_0x465570(0x20e)](_0x1b2f6e[_0x5e6b8d]);});const _0x4576be=[];if(_0x4362b9){const _0x1fa914=(_0x39e3f8=this[_0x2453c0(0x2cd)][_0x2453c0(0x3bb)](_0x475d1b['IConfigService'])[_0x2453c0(0x32b)](_0x474209['LS_CONFIG_KEY']))!=null?_0x39e3f8:{},{ls:_0xe7cb34,pbk:_0x4ebac5}=_0x1fa914,_0x3e75fe=_0x406235(_0x41ce1b,_0xe7cb34,_0x4ebac5)['count'];Object[_0x2453c0(0x16a)](_0x4362b9)['forEach'](_0x3357f5=>{const _0xfe867=_0x2453c0;let _0x432865=0x0;const _0x418832=_0x4362b9[_0x3357f5];Object[_0xfe867(0x16a)](_0x418832)[_0xfe867(0x3df)](_0x7da17=>{const _0x565f60=_0xfe867,_0x4d6acd=_0x418832[_0x7da17];Object[_0x565f60(0x16a)](_0x4d6acd)['forEach'](_0x204090=>{const _0xc0d0c2=_0x565f60,_0x3246d9=_0x4d6acd[_0x204090];if(_0x3246d9){if(_0x432865>=_0x3e75fe)return;_0x432865++;const _0x2a3891=this[_0xc0d0c2(0x35d)](_0x3357f5),_0x219db3=_0x2a3891[_0xc0d0c2(0x3c3)][_0x204090],_0x2cc86d=_0x219db3[_0xc0d0c2(0x1ed)]();let _0x32bb8b=0x0;const _0x5dd08f=[];for(const _0x159c1a of _0x2cc86d){const _0xd2cac6=_0x219db3[_0xc0d0c2(0x3ec)](_0x159c1a);if(_0x1d148a['isBaseGroupField'](_0xd2cac6)){const _0x2776b8=_0xd2cac6[_0xc0d0c2(0x34f)](),_0x4d26ab=_0x219db3[_0xc0d0c2(0x3ec)](_0x2776b8);_0x4d26ab&&_0x5dd08f[_0xc0d0c2(0x17b)]([_0xd2cac6,_0x4d26ab]);continue;}_0x2a3891[_0xc0d0c2(0x457)](_0x159c1a,_0x3246d9[_0xc0d0c2(0x453)],_0x32bb8b),_0x32bb8b++;}_0x5dd08f['forEach'](([_0x2f3b80,_0x1671b3])=>{const _0x5f2f37=_0xc0d0c2;_0x2f3b80[_0x5f2f37(0x455)](_0x1671b3);});const _0x49ebc1=new _0x1d148a[(_0xc0d0c2(0x205))](_0x219db3);_0x49ebc1[_0xc0d0c2(0x20e)](_0x3246d9[_0xc0d0c2(0x1e6)]),this[_0xc0d0c2(0x15b)](_0x3357f5,_0x7da17,_0x204090,_0x49ebc1,_0x3246d9);const _0x8e531c=_0x49ebc1[_0xc0d0c2(0x3f9)]();_0x4576be[_0xc0d0c2(0x17b)]({'unitId':_0x3357f5,'subUnitId':_0x7da17,'pivotTableId':_0x204090,'view':_0x8e531c[_0xc0d0c2(0x38e)](),'pivotConfig':_0x3246d9,'type':_0x94aa6e['Add']});const _0x5c512c=!!_0x49ebc1[_0xc0d0c2(0x173)](),_0x2c7643={'view':_0x8e531c,'pivotTableId':_0x204090,'textInfo':this[_0xc0d0c2(0x22d)](),'isEmpty':_0x5c512c,'targetCellInfo':_0x3246d9[_0xc0d0c2(0x1bf)]};this[_0xc0d0c2(0x217)](_0x2c7643,!0x1);}});});});}_0x1b2f6e&&Object[_0x2453c0(0x16a)](_0x1b2f6e)[_0x2453c0(0x3df)](_0xfa93dd=>{const _0x3ffaa2=_0x2453c0,_0x3c9f43=this[_0x3ffaa2(0x35d)](_0xfa93dd);this[_0x3ffaa2(0x162)][_0x3ffaa2(0x347)](_0x3c9f43['collections']);}),this[_0x2453c0(0x31d)][_0x2453c0(0x267)](_0x421bc0['id'],{'batch':_0x4576be,'collectionConfig':_0x1b2f6e},{'onlyLocal':!0x0});}[_0x9268c(0x3e4)](){const _0x54db3d=_0x9268c;this[_0x54db3d(0x2c9)](this['_resourceManagerService'][_0x54db3d(0x281)]({'toJson':_0x4d9350=>JSON['stringify'](this[_0x54db3d(0x38e)](_0x4d9350)),'parseJson':_0x517122=>{const _0x30f463=_0x54db3d;if(!_0x517122)return{};try{return JSON[_0x30f463(0x1af)](_0x517122);}catch{return{};}},'businesses':[_0x475d1b[_0x54db3d(0x194)]['UNIVER_SHEET']],'pluginName':_0x2ecc25,'onLoad':(_0x2a6e19,_0x110442)=>{const _0x263fb1=_0x54db3d;this[_0x263fb1(0x20e)](_0x110442);},'onUnLoad':_0x5bf9a7=>{const _0x49a261=_0x54db3d;this[_0x49a261(0x3cf)](_0x5bf9a7);}}));}},_0x29b926['SheetsPivotDataSourceModel']=_0x2aef01([_0x2232d3(0x0,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x250)])),_0x2232d3(0x1,_0x475d1b['IUniverInstanceService']),_0x2232d3(0x2,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b['LifecycleService'])),_0x2232d3(0x3,_0x475d1b[_0x9268c(0x260)]),_0x2232d3(0x4,_0x475d1b[_0x9268c(0x342)]),_0x2232d3(0x5,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x203)]))],_0x29b926[_0x9268c(0x420)]);const _0x4fdb07={0x0:{0x0:{'v':_0x9268c(0x16c),'s':_0x180ae2}},0x2:{0x1:{'v':'','s':_0x180ae2},0x2:{'v':'','s':_0x180ae2},0x3:{'v':'column','s':_0x180ae2},0x4:{'v':'','s':_0x180ae2},0x5:{'v':'','s':_0x180ae2}},0x3:{0x0:{'v':'','s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':'','s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}},0x4:{0x0:{'v':'','s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':'','s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}},0x5:{0x0:{'v':'','s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':'','s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}},0x6:{0x0:{'v':'','s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':'','s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}},0x7:{0x0:{'v':'','s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':'','s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}},0x8:{0x0:{'v':_0x9268c(0x18c),'s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':_0x9268c(0x3c6),'s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}},0x9:{0x0:{'v':'','s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':'','s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}},0xa:{0x0:{'v':'','s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':'','s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}},0xb:{0x0:{'v':'','s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':'','s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}},0xc:{0x0:{'v':'','s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':'','s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}},0xd:{0x0:{'v':'','s':_0x180ae2},0x1:{'v':'','s':_0x497268},0x2:{'v':'','s':_0x497268},0x3:{'v':'','s':_0x497268},0x4:{'v':'','s':_0x497268},0x5:{'v':'','s':_0x497268}}},_0x56a07b={'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':[]},_0x39db0e=(_0x588bb8,_0x24249c)=>{const _0x337395=_0x9268c,_0x14fde9=new _0x475d1b[(_0x337395(0x405))](),_0x1bb5b3=new _0x475d1b[(_0x337395(0x405))](_0x4fdb07),{row:_0x5cc943,col:_0x58c8ea}=_0x24249c;_0x1bb5b3['forValue']((_0x3ec1b3,_0x21ce43,_0x47bd36)=>{const _0x579276=_0x337395;let _0x2fa699='';_0x47bd36['v']===_0x579276(0x16c)?_0x2fa699=_0x588bb8[_0x579276(0x16c)]:_0x47bd36['v']==='row'?_0x2fa699=_0x588bb8[_0x579276(0x18c)]:_0x47bd36['v']===_0x579276(0x38c)?_0x2fa699=_0x588bb8[_0x579276(0x38c)]:_0x47bd36['v']===_0x579276(0x3c6)&&(_0x2fa699=_0x588bb8[_0x579276(0x3c6)]),_0x14fde9[_0x579276(0x316)](_0x3ec1b3+_0x5cc943,_0x21ce43+_0x58c8ea,{..._0x47bd36,'v':_0x2fa699});});const _0xb8560e=_0x475d1b['Tools']['deepClone'](_0x56a07b);return Object[_0x337395(0x16a)](_0x56a07b)[_0x337395(0x3df)](_0x597d2b=>{const _0x5dd9a2=_0x337395;_0xb8560e[_0x597d2b]=_0x56a07b[_0x597d2b][_0x5dd9a2(0x1c5)](_0x1a34d2=>({..._0x1a34d2,'startRow':_0x1a34d2[_0x5dd9a2(0x2ff)]+_0x5cc943,'endRow':_0x1a34d2[_0x5dd9a2(0x1b9)]+_0x5cc943,'startColumn':_0x1a34d2['startColumn']+_0x58c8ea,'endColumn':_0x1a34d2[_0x5dd9a2(0x277)]+_0x58c8ea}));}),{'matrixCache':_0x14fde9,'rangesCache':_0xb8560e};};function _0x38ef51(_0x4dd9c7,_0xb8ed53){const _0x42cf69=_0x9268c;let _0x7d2496='';const _0x1cbad4=this['getTextInfo']();switch(_0xb8ed53){case _0x1d148a[_0x42cf69(0x170)][_0x42cf69(0x2d1)]:_0x7d2496=_0x1cbad4[_0x42cf69(0x401)]+_0x4dd9c7;break;case _0x1d148a[_0x42cf69(0x170)][_0x42cf69(0x34e)]:_0x7d2496=_0x1cbad4[_0x42cf69(0x226)]+_0x4dd9c7;break;case _0x1d148a[_0x42cf69(0x170)][_0x42cf69(0x255)]:_0x7d2496=_0x1cbad4[_0x42cf69(0x193)]+_0x4dd9c7;break;case _0x1d148a[_0x42cf69(0x170)]['max']:_0x7d2496=_0x1cbad4['sheets-pivot.maxName']+_0x4dd9c7;break;case _0x1d148a['PivotSubtotalTypeEnum'][_0x42cf69(0x2bb)]:_0x7d2496=_0x1cbad4[_0x42cf69(0x431)]+_0x4dd9c7;break;case _0x1d148a[_0x42cf69(0x170)]['product']:_0x7d2496=_0x1cbad4[_0x42cf69(0x433)]+_0x4dd9c7;break;case _0x1d148a[_0x42cf69(0x170)]['stdDev']:_0x7d2496=_0x1cbad4[_0x42cf69(0x3cc)]+_0x4dd9c7;break;case _0x1d148a[_0x42cf69(0x170)]['stdDevp']:_0x7d2496=_0x1cbad4[_0x42cf69(0x324)]+_0x4dd9c7;break;case _0x1d148a[_0x42cf69(0x170)][_0x42cf69(0x3be)]:_0x7d2496=_0x1cbad4[_0x42cf69(0x257)]+_0x4dd9c7;break;case _0x1d148a[_0x42cf69(0x170)]['var']:_0x7d2496=_0x1cbad4[_0x42cf69(0x45b)]+_0x4dd9c7;break;case _0x1d148a[_0x42cf69(0x170)][_0x42cf69(0x21d)]:_0x7d2496=_0x1cbad4[_0x42cf69(0x309)]+_0x4dd9c7;break;default:_0x7d2496=_0x4dd9c7;break;}return _0x7d2496;}function _0x289393(_0x36a580,_0x5a216e,_0x37829c,_0x3c17fd,_0xeb2cd4){const _0x18be4c=_0x9268c;var _0x22236e,_0x1dc3a5,_0x4c6790,_0xe424af,_0x55612a;const _0x38ceb3=_0x475d1b[_0x18be4c(0x335)](_0x36a580,_0x5a216e),{rangesInfo:_0x170541,areaInfo:_0x16ba4d,headerMap:_0x3c531d}=_0xeb2cd4;if(!_0x170541||!_0x16ba4d||!_0x3c531d)return;const _0x416f38=Object[_0x18be4c(0x16a)](_0x170541)[_0x18be4c(0x414)](_0x2242e5=>_0x170541[_0x2242e5][_0x18be4c(0x400)](_0x5679b5=>_0x475d1b['Rectangle'][_0x18be4c(0x3c0)](_0x5679b5,_0x38ceb3))),_0x3a1196=_0x16ba4d;let _0x2ff0a2,_0x29191e,_0x5d5701;if(_0x416f38===_0x18be4c(0x191))_0x2ff0a2=(_0x22236e=_0x3a1196==null?void 0x0:_0x3a1196[_0x18be4c(0x2ef)])==null?void 0x0:_0x22236e[_0x36a580],_0x29191e=(_0x1dc3a5=_0x3c531d==null?void 0x0:_0x3c531d[_0x18be4c(0x24f)])==null?void 0x0:_0x1dc3a5[_0x5a216e],_0x5d5701=_0x29191e==null?void 0x0:_0x29191e[_0x18be4c(0x3a9)];else{if(_0x416f38===_0x18be4c(0x218))_0x2ff0a2=(_0x4c6790=_0x3a1196==null?void 0x0:_0x3a1196[_0x18be4c(0x35e)])==null?void 0x0:_0x4c6790[_0x5a216e],_0x29191e=(_0xe424af=_0x3c531d[_0x18be4c(0x2ad)])==null?void 0x0:_0xe424af[_0x36a580+0x1+_0x5a216e-_0x170541['colRanges'][0x0][_0x18be4c(0x1e9)]],_0x5d5701=_0x29191e==null?void 0x0:_0x29191e[_0x18be4c(0x3a9)];else{if(_0x416f38===_0x18be4c(0x3ff))_0x2ff0a2=(_0x55612a=_0x3a1196==null?void 0x0:_0x3a1196['cornerInfo'])==null?void 0x0:_0x55612a[_0x5a216e],_0x5d5701=_0x2ff0a2==null?void 0x0:_0x2ff0a2[_0x18be4c(0x3a9)];else{if(_0x416f38==='pageRanges'){const _0x4b0599=_0x37829c==null?void 0x0:_0x37829c['fi'];_0x4b0599!==void 0x0&&(_0x5d5701=_0x3c17fd[_0x18be4c(0x1da)](_0x4b0599));}}}}return{'filterId':_0x5d5701,'info':_0x2ff0a2,'data':_0x37829c,'headerInfo':_0x29191e};}function _0x336cf4(_0x1b4a7d,_0x19adb0,_0x94c7){const _0xfb727c=_0x9268c,_0x83708e=_0x1b4a7d[_0xfb727c(0x199)],_0x19faf0=_0x83708e['getFieldIds'](),_0x1b07c8=new Set();_0x1b4a7d['iterateField'](_0x315865=>{const _0x22b771=_0xfb727c;_0x1b07c8['add'](_0x315865[_0x22b771(0x3af)]);});const _0x4096db=_0x19faf0[_0xfb727c(0x1c5)](_0x8b03a6=>{const _0xeb1605=_0xfb727c,_0x56c500=_0x83708e['getFieldById'](_0x8b03a6);return{'checked':_0x1b07c8[_0xeb1605(0x2a4)](_0x8b03a6),'dataFieldId':_0x56c500['id'],'id':_0x56c500['id'],'name':_0x83708e[_0xeb1605(0x3a5)](_0x56c500['id']),'type':_0x56c500['getFieldDataType'](),'pivotTableId':_0x19adb0};}),_0x1bb6d3=[];_0x1b4a7d[_0xfb727c(0x1d3)](_0x1d148a[_0xfb727c(0x2ed)][_0xfb727c(0x407)],_0x10fb71=>{const _0x555db1=_0xfb727c;_0x1bb6d3[_0x555db1(0x17b)]({'dataFieldId':_0x10fb71[_0x555db1(0x3af)],'tableFieldId':_0x10fb71[_0x555db1(0x1ef)](),'displayName':_0x10fb71['getDisplayName']()});});const _0x32ec30=[];_0x1b4a7d['iterateFieldByArea'](_0x1d148a[_0xfb727c(0x2ed)][_0xfb727c(0x174)],_0x24bd95=>{const _0x47b180=_0xfb727c;_0x32ec30[_0x47b180(0x17b)]({'dataFieldId':_0x24bd95[_0x47b180(0x3af)],'tableFieldId':_0x24bd95[_0x47b180(0x1ef)](),'displayName':_0x24bd95[_0x47b180(0x3a5)]()});});const _0x5244bb=[];if(_0x1b4a7d[_0xfb727c(0x1d3)](_0x1d148a['PivotTableFiledAreaEnum']['Value'],_0x17ea44=>{const _0x32040f=_0xfb727c;_0x5244bb[_0x32040f(0x17b)]({'dataFieldId':_0x17ea44[_0x32040f(0x3af)],'tableFieldId':_0x17ea44['getId'](),'displayName':_0x17ea44['getDisplayName'](),'format':_0x17ea44[_0x32040f(0x322)](),'subTotalType':_0x17ea44[_0x32040f(0x41c)]()});}),_0x5244bb[_0xfb727c(0x32d)]>0x1){const _0x18c2d2=_0x1b4a7d[_0xfb727c(0x3f4)]();(_0x1b4a7d[_0xfb727c(0x2f8)]()?_0x32ec30:_0x1bb6d3)['splice'](_0x18c2d2,0x0,{'dataFieldId':'','tableFieldId':_0xfb727c(0x2cb),'displayName':_0xfb727c(0x435)});}const _0x355fc2=[];_0x1b4a7d[_0xfb727c(0x1d3)](_0x1d148a[_0xfb727c(0x2ed)][_0xfb727c(0x228)],_0x2f1b24=>{const _0x258929=_0xfb727c;_0x355fc2[_0x258929(0x17b)]({'dataFieldId':_0x2f1b24['dataFieldId'],'tableFieldId':_0x2f1b24['getId'](),'displayName':_0x2f1b24['getDisplayName']()});});const _0x1ee98d=_0x94c7['sourceRangeInfo'];return{'sourceList':_0x4096db,'sourceRange':_0x1ee98d,'rowFields':_0x1bb6d3,'columnFields':_0x32ec30,'valueFields':_0x5244bb,'filterFields':_0x355fc2,'positionInfo':_0x94c7['targetCellInfo']};}function _0x368654(_0x571372,_0x520eff,_0xf0ed1b='',_0x5d2a85={}){const _0x4188c4=_0x9268c,_0x1f2de9=_0x571372['get'](_0x475d1b[_0x4188c4(0x3b7)]);for(const _0x5e3bf1 in _0x520eff)if(Object['prototype'][_0x4188c4(0x26c)][_0x4188c4(0x2fb)](_0x520eff,_0x5e3bf1)){const _0xd2eb6a=_0xf0ed1b?_0xf0ed1b+'.'+_0x5e3bf1:_0x5e3bf1;typeof _0x520eff[_0x5e3bf1]==_0x4188c4(0x251)&&_0x520eff[_0x5e3bf1]!==null&&!Array[_0x4188c4(0x321)](_0x520eff[_0x5e3bf1])?_0x368654(_0x571372,_0x520eff[_0x5e3bf1],_0xd2eb6a,_0x5d2a85):_0x5d2a85[_0xd2eb6a]=_0x1f2de9['t'](_0xd2eb6a);}return _0x5d2a85;}const _0x5608c1=_0x1cba59=>{const _0x4fb637=_0x9268c;if(!_0x1cba59)return[];const {rowRanges:_0x21657f,colRanges:_0x329cf0,cornerRanges:_0x1cb9d7,dataRanges:_0x2eeaed,pageRanges:_0x8dd10d}=_0x1cba59,_0x4856de=[..._0x329cf0,..._0x21657f,..._0x2eeaed,..._0x1cb9d7]['filter'](_0x55a9de=>_0x55a9de[_0x4fb637(0x2ff)]>=0x0&&_0x55a9de['startColumn']>=0x0&&_0x55a9de['endRow']>=0x0&&_0x55a9de[_0x4fb637(0x277)]>=0x0);let _0x423fca=Number[_0x4fb637(0x240)],_0x3b7283=Number[_0x4fb637(0x3d4)],_0x3aaf92=Number[_0x4fb637(0x240)],_0x23d432=Number['MIN_SAFE_INTEGER'];for(let _0x40a466=0x0;_0x40a466<_0x4856de[_0x4fb637(0x32d)];_0x40a466++)_0x423fca=Math[_0x4fb637(0x2bb)](_0x423fca,_0x4856de[_0x40a466][_0x4fb637(0x2ff)]),_0x3b7283=Math[_0x4fb637(0x328)](_0x3b7283,_0x4856de[_0x40a466]['endRow']),_0x3aaf92=Math[_0x4fb637(0x2bb)](_0x3aaf92,_0x4856de[_0x40a466]['startColumn']),_0x23d432=Math[_0x4fb637(0x328)](_0x23d432,_0x4856de[_0x40a466]['endColumn']);return[..._0x8dd10d,{'startRow':_0x423fca,'endRow':_0x3b7283,'startColumn':_0x3aaf92,'endColumn':_0x23d432}];};function _0x3734ae(_0x47a119,_0x44e24d){const _0x5ac805=_0x9268c,_0x4c0b64=_0x44e24d['params'][_0x5ac805(0x21c)],{pivotTableId:_0x1b168d,unitId:_0x5bc97b,subUnitId:_0x47677d}=_0x44e24d;if(!_0x4c0b64)return;const _0x27dbe7=_0x47a119[_0x5ac805(0x3bb)](_0x29b926[_0x5ac805(0x420)]),_0x28927f=_0x27dbe7[_0x5ac805(0x289)](_0x1b168d),_0x53fd0d=_0x27dbe7['getPivotTableConfig'](_0x5bc97b,_0x47677d,_0x1b168d);if(!_0x28927f||!_0x53fd0d)return;const _0x211064=_0x28927f[_0x5ac805(0x2f0)](_0x4c0b64['tuple']);if(!(_0x211064!=null&&_0x211064['length']))return;const _0x1d07a2=_0x53fd0d[_0x5ac805(0x453)],{unitId:_0x24b429,subUnitId:_0x34070b,range:_0x55ed3e}=_0x1d07a2;let _0xc4ede6=0x0;const _0xb3930d=_0x28927f['dataFieldsCollection'][_0x5ac805(0x1ed)]()[_0x5ac805(0x262)]((_0x24e287,_0x48dde3)=>{const _0x15343c=_0x5ac805;var _0x59c71a;const _0x44287a=(_0x59c71a=_0x28927f[_0x15343c(0x34d)](_0x48dde3))==null?void 0x0:_0x59c71a[_0x15343c(0x1a4)]();return _0x44287a&&(_0x24e287[String(_0xc4ede6)]=_0x44287a),_0xc4ede6++,_0x24e287;},{});return{'indexes':_0x211064,'range':_0x55ed3e,'sourceUnitId':_0x24b429,'sourceSubUnitId':_0x34070b,'formatMap':_0xb3930d};}function _0x30b5d9(_0x1f4db7,_0x58bc51){const _0x1d84b5=_0x9268c;if(!_0x1f4db7||!_0x58bc51)return!0x0;const _0x1e40d9=_0x474209[_0x1d84b5(0x36e)](_0x3df0b4,_0x1a8b36),_0x33d108=new Function(_0x1d84b5(0x27a)+_0x1e40d9)()(_0x1f4db7,_0x58bc51)[_0x1d84b5(0x40f)],_0x4ce0b6=_0x474209[_0x1d84b5(0x2c3)](_0x33d108,'sf',_0x307b41);return!((_0x33d108==null?void 0x0:_0x33d108['rt'])===_0x474209[_0x1d84b5(0x415)][_0x1d84b5(0x326)]&&!_0x4ce0b6);}function _0x406235(_0x2f249d,_0x168d1d,_0x13dc0a){const _0x461a44=_0x9268c,_0x4a5ab4={'count':_0x2f249d,'timeValid':!0x1};if(!_0x168d1d||!_0x13dc0a)return _0x4a5ab4;const _0x4e10c7=_0x474209[_0x461a44(0x36e)](_0x3df0b4,_0x1a8b36),_0x453761=new Function('return\x20'+_0x4e10c7)()(_0x168d1d,_0x13dc0a);if(_0x453761!=null&&_0x453761[_0x461a44(0x454)]){const _0x2cf50f=_0x453761[_0x461a44(0x40f)],_0x590300=_0x474209['isFeatureAuthorizedWithinTime'](_0x2cf50f,'sf',_0x307b41);return{'count':_0x474209['getSheetFeatureLimit'](_0x2cf50f,_0x590300,_0x461a44(0x37e),_0x2f249d,_0x2f249d,0x0),'timeValid':_0x590300};}return _0x4a5ab4;}function _0x3f1ba5(_0x4e64e6,_0x1b04b0,_0x8c2bbd,_0x604f9){const _0xe3abf6=_0x9268c,_0x323827={'subUnitId':_0x8c2bbd,'unitId':_0x1b04b0,'cellValue':_0x44476f[_0xe3abf6(0x3d0)](_0x604f9)},_0x55e6bb=_0x44476f['SetRangeValuesUndoMutationFactory'](_0x4e64e6,_0x323827);let _0x62249=!0x1;return new _0x475d1b[(_0xe3abf6(0x405))](_0x55e6bb[_0xe3abf6(0x303)])[_0xe3abf6(0x45e)]((_0x205ad2,_0x3f7108,_0x3291fa)=>{const _0x61f134=_0xe3abf6;if(!_0x62249&&_0x3291fa&&(_0x3291fa[_0x61f134(0x31e)]||_0x3291fa['f']||_0x3291fa['p']||_0x3291fa['s']||_0x3291fa['si']||_0x3291fa['t']||_0x3291fa['v']))return _0x62249=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x44476f['SetRangeValuesMutation']['id'],'params':_0x55e6bb},'setRangeValueRedoMutation':{'id':_0x44476f['SetRangeValuesMutation']['id'],'params':_0x323827},'shouldClear':_0x62249};}function _0x4dd364(_0x1a22cb){const {row:_0x4a29e0,col:_0xd5641}=_0x1a22cb,_0x44e765={'startRow':_0x4a29e0,'endRow':_0x4a29e0,'startColumn':_0xd5641,'endColumn':_0xd5641},_0x27e7e8={'startRow':_0x4a29e0+0x2,'endRow':_0x4a29e0+0xe,'startColumn':_0xd5641,'endColumn':_0xd5641+0x6};return[_0x44e765,_0x27e7e8];}function _0x4af82e(_0x43fc83,_0x1da8b4,_0x2b0e4c){const _0x22d3e8=_0x9268c,{cornerView:_0x5d41af,rowView:_0x3ea774,colView:_0x5a7090,pageView:_0x28c847}=_0x43fc83,{row:_0x5d8e8a,col:_0x5ed739}=_0x1da8b4;if(_0x2b0e4c)return{'rowCount':_0x39e3d5+_0x5d8e8a,'colCount':_0x35fa5b+_0x5ed739};const _0x4759fc=_0x28c847[_0x22d3e8(0x16f)]>-0x1?_0x28c847[_0x22d3e8(0x16f)]+0x1:0x0,_0x1baa01=_0x28c847[_0x22d3e8(0x175)]>-0x1?_0x28c847[_0x22d3e8(0x175)]:0x0,_0x177df9=_0x5d8e8a+_0x4759fc+(_0x4759fc?0x1:0x0)+_0x5d41af[_0x22d3e8(0x166)]+_0x3ea774['rowCount'],_0x35d1e6=_0x5ed739+_0x1baa01,_0x5d33b7=_0x5ed739+_0x5d41af[_0x22d3e8(0x40d)]+_0x5a7090['colCount'],_0x5a22f1=Math[_0x22d3e8(0x328)](_0x35d1e6,_0x5d33b7);return{'rowCount':_0x177df9,'colCount':_0x5a22f1};}function _0x26091e(_0xff1027,_0x56e9f7,_0x6d36cf,_0x505dc5){const _0x9a9006=_0x9268c,{row:_0x992c55,col:_0x4f8cd1,unitId:_0x5b9ef4,subUnitId:_0x4fee11}=_0x6d36cf,_0x59df1d=_0x4af82e(_0x56e9f7,{'row':_0x992c55,'col':_0x4f8cd1},_0x505dc5),_0x5ba6d4=_0xff1027[_0x9a9006(0x3bb)](_0x475d1b['IUniverInstanceService']),_0x9c9d18=_0x44476f[_0x9a9006(0x340)](_0x5ba6d4,{'unitId':_0x5b9ef4,'subUnitId':_0x4fee11}),_0x4755d2=[],_0x21704c=[];if(!_0x9c9d18)return{'undos':_0x21704c,'redos':_0x4755d2};const {worksheet:_0x227ae3}=_0x9c9d18,_0x29a384=_0x227ae3[_0x9a9006(0x418)](),_0x5c17bc=_0x227ae3['getColumnCount']();return _0x29a384<_0x59df1d['rowCount']&&(_0x4755d2[_0x9a9006(0x17b)]({'id':_0x44476f['InsertRowMutation']['id'],'params':{'unitId':_0x5b9ef4,'subUnitId':_0x4fee11,'range':{'startRow':_0x29a384,'endRow':_0x59df1d[_0x9a9006(0x166)]-0x1,'startColumn':0x0,'endColumn':_0x5c17bc-0x1}}}),_0x21704c[_0x9a9006(0x17b)]({'id':_0x44476f[_0x9a9006(0x286)]['id'],'params':{'unitId':_0x5b9ef4,'subUnitId':_0x4fee11,'range':{'startRow':_0x29a384,'endRow':_0x59df1d['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x5c17bc-0x1}}})),_0x5c17bc<_0x59df1d[_0x9a9006(0x40d)]&&(_0x4755d2[_0x9a9006(0x17b)]({'id':_0x44476f['InsertColMutation']['id'],'params':{'unitId':_0x5b9ef4,'subUnitId':_0x4fee11,'range':{'startRow':0x0,'endRow':_0x29a384-0x1,'startColumn':_0x5c17bc,'endColumn':_0x59df1d[_0x9a9006(0x40d)]-0x1}}}),_0x21704c['push']({'id':_0x44476f['RemoveColMutation']['id'],'params':{'unitId':_0x5b9ef4,'subUnitId':_0x4fee11,'range':{'startRow':0x0,'endRow':_0x29a384-0x1,'startColumn':_0x5c17bc,'endColumn':_0x59df1d[_0x9a9006(0x40d)]-0x1}}})),{'undos':_0x21704c,'redos':_0x4755d2};}function _0x41917b(_0x2a616a){const _0x6cf21f=_0x9268c;let _0x407a99=0x0;for(let _0x2472fb=0x0;_0x2472fb<_0x2a616a[_0x6cf21f(0x32d)];_0x2472fb++){const _0x36dcf1=_0x2a616a[_0x6cf21f(0x301)](_0x2472fb);_0x36dcf1>=0x4e00&&_0x36dcf1<=0x9fff||_0x36dcf1>=0x3000&&_0x36dcf1<=0x303f||_0x36dcf1>=0xff00&&_0x36dcf1<=0xffef?_0x407a99+=0x2:_0x407a99+=0x1;}return _0x407a99;}function _0x55f414(_0x5efbde,_0x4ceeaf,_0x4b7a79,_0x35f42c){const _0x118bfc=_0x9268c;var _0x4281c3,_0x22aaeb,_0x117aff,_0x12339f;const {rowCount:_0x1cd54a,colCount:_0x5c8cdd,headerMap:_0x2632cc}=_0x5efbde,_0x41709b=0x64,_0x1f9585=Math[_0x118bfc(0x2bb)](_0x1cd54a,_0x41709b),_0x1eaa36=Math[_0x118bfc(0x2bb)](_0x5c8cdd,_0x41709b);let _0x557b11='',_0x236251=0x0;for(let _0x3cd4aa=0x0;_0x3cd4aa<_0x1f9585;_0x3cd4aa++)for(let _0x3e93e0=0x0;_0x3e93e0<_0x1eaa36;_0x3e93e0++){const _0x566087={...(_0x22aaeb=(_0x4281c3=_0x5efbde[_0x118bfc(0x43e)])==null?void 0x0:_0x4281c3[_0x3cd4aa])==null?void 0x0:_0x22aaeb[_0x3e93e0]},_0x4f99ec=(_0x117aff=_0x2632cc[_0x3cd4aa])==null?void 0x0:_0x117aff[_0x118bfc(0x3a9)],_0x1e855c=_0x35f42c[_0x4f99ec];let _0x2b26d0=_0x5efbde[_0x118bfc(0x25a)](_0x3cd4aa,_0x3e93e0);if(_0x566087){const _0x5dd159=_0x4b7a79?_0x3e93e0===0x0&&((_0x12339f=_0x5efbde[_0x118bfc(0x2e1)](_0x3e93e0+0x1))==null?void 0x0:_0x12339f[_0x118bfc(0x1ae)]):!0x1;_0x2b26d0=_0x551650(_0x566087,_0x5dd159,_0x1e855c,_0x4ceeaf);}if(_0x2b26d0!==void 0x0){const _0x2a80fc=_0x41917b(String(_0x2b26d0));_0x236251<_0x2a80fc&&(_0x557b11=String(_0x2b26d0),_0x236251=_0x2a80fc);}}return _0x557b11;}function _0x2cf7ad(_0x404a0d){const _0x5513d7=_0x9268c,{rowCount:_0x4839a6,colCount:_0x52adaa}=_0x404a0d;let _0x1531a7='',_0x1dc112=0x0;for(let _0x47f959=_0x4839a6-0x1;_0x47f959>0x0&&_0x47f959>_0x4839a6-0x3;_0x47f959--)for(let _0x19471e=0x0;_0x19471e<_0x52adaa;_0x19471e++){const _0x1626dd=_0x404a0d['getValue'](_0x47f959,_0x19471e);if(_0x1626dd!==void 0x0){const _0xe11d4=String(_0x1626dd)[_0x5513d7(0x32d)];_0x1dc112<_0xe11d4&&(_0x1531a7=String(_0x1626dd),_0x1dc112=_0xe11d4);}}return _0x1531a7;}function _0x2ea84b(_0xbb9e49){const _0x3d4f69=_0x9268c,{rowCount:_0x39f6ee,colCount:_0x2f56e8}=_0xbb9e49;let _0x2ffa39='',_0x430774=0x0;for(let _0x5eaff0=0x0;_0x5eaff0<_0x39f6ee;_0x5eaff0++)for(let _0x11785a=0x0;_0x11785a<_0x2f56e8;_0x11785a++){const _0x46eccb=_0xbb9e49['getValue'](_0x5eaff0,_0x11785a);if(_0x46eccb!==void 0x0){const _0x45c9d2=String(_0x46eccb)[_0x3d4f69(0x32d)];_0x430774<_0x45c9d2&&(_0x2ffa39=String(_0x46eccb),_0x430774=_0x45c9d2);}}return _0x2ffa39;}function _0x4021cd(_0x1a98b1,_0x2f443c){const _0x59fefa=_0x9268c,{rowFields:_0x4983ab,columnFields:_0x2e725b,valueFields:_0x409813,filterFields:_0xd4f7dc,dimension:_0x37d2eb,measure:_0x4f6c79}=_0x2f443c;for(const _0x4b0d12 of _0x4983ab){const _0x15c876=_0x37d2eb[_0x4b0d12];_0x15c876&&_0x1a98b1[_0x59fefa(0x34d)](_0x15c876[_0x59fefa(0x3af)])&&(_0x1a98b1[_0x59fefa(0x256)](_0x15c876[_0x59fefa(0x3af)],_0x1d148a[_0x59fefa(0x2ed)][_0x59fefa(0x407)],void 0x0,_0x4b0d12),_0x15c876[_0x59fefa(0x1c8)]&&_0x1a98b1['renameField'](_0x15c876['id'],_0x15c876[_0x59fefa(0x1c8)]),_0x15c876['sortInfo']&&_0x1a98b1[_0x59fefa(0x367)](_0x15c876['id'],_0x15c876[_0x59fefa(0x44a)]),_0x15c876[_0x59fefa(0x1ee)]&&_0x1a98b1[_0x59fefa(0x2eb)](_0x15c876['id'],_0x15c876[_0x59fefa(0x1ee)]));}for(const _0x12c53a of _0x2e725b){const _0x3ba45d=_0x37d2eb[_0x12c53a];_0x3ba45d&&_0x1a98b1[_0x59fefa(0x34d)](_0x3ba45d[_0x59fefa(0x3af)])&&(_0x1a98b1['addFieldWithSourceId'](_0x3ba45d['dataFieldId'],_0x1d148a[_0x59fefa(0x2ed)][_0x59fefa(0x174)],void 0x0,_0x12c53a),_0x3ba45d[_0x59fefa(0x44a)]&&_0x1a98b1[_0x59fefa(0x367)](_0x3ba45d['id'],_0x3ba45d[_0x59fefa(0x44a)]),_0x3ba45d[_0x59fefa(0x1ee)]&&_0x1a98b1[_0x59fefa(0x2eb)](_0x3ba45d['id'],_0x3ba45d['filterInfo']),_0x3ba45d[_0x59fefa(0x1c8)]&&_0x1a98b1[_0x59fefa(0x185)](_0x3ba45d['id'],_0x3ba45d[_0x59fefa(0x1c8)]));}for(const _0x439ff2 of _0xd4f7dc){const _0x1e9036=_0x37d2eb[_0x439ff2];_0x1e9036&&_0x1a98b1[_0x59fefa(0x34d)](_0x1e9036[_0x59fefa(0x3af)])&&(_0x1a98b1[_0x59fefa(0x256)](_0x1e9036[_0x59fefa(0x3af)],_0x1d148a[_0x59fefa(0x2ed)][_0x59fefa(0x228)],void 0x0,_0x439ff2),_0x1e9036[_0x59fefa(0x44a)]&&_0x1a98b1[_0x59fefa(0x367)](_0x1e9036['id'],_0x1e9036[_0x59fefa(0x44a)]),_0x1e9036[_0x59fefa(0x1ee)]&&_0x1a98b1[_0x59fefa(0x2eb)](_0x1e9036['id'],_0x1e9036[_0x59fefa(0x1ee)]),_0x1e9036[_0x59fefa(0x1c8)]&&_0x1a98b1[_0x59fefa(0x185)](_0x1e9036['id'],_0x1e9036[_0x59fefa(0x1c8)]));}for(const _0x27fec of _0x409813){const _0x1b24cd=_0x4f6c79[_0x27fec];_0x1b24cd&&_0x1a98b1[_0x59fefa(0x34d)](_0x1b24cd[_0x59fefa(0x3af)])&&(_0x1a98b1[_0x59fefa(0x256)](_0x1b24cd[_0x59fefa(0x3af)],_0x1d148a[_0x59fefa(0x2ed)]['Value'],void 0x0,_0x27fec),_0x1b24cd[_0x59fefa(0x37d)]!==void 0x0&&_0x1a98b1[_0x59fefa(0x273)](_0x27fec,_0x1b24cd[_0x59fefa(0x37d)]),_0x1b24cd[_0x59fefa(0x17a)]&&_0x1a98b1[_0x59fefa(0x412)](_0x27fec,_0x1b24cd[_0x59fefa(0x17a)]),_0x1b24cd[_0x59fefa(0x1c8)]&&_0x1a98b1[_0x59fefa(0x185)](_0x1b24cd['id'],_0x1b24cd['displayName']));}const _0x4a40a3=_0x2f443c[_0x59fefa(0x31c)];for(const {fieldId:_0x40b21c,filterInfo:_0x120b79}of _0x4a40a3)_0x1a98b1[_0x59fefa(0x2b6)](_0x40b21c,_0x120b79);}function _0x28c9b4(_0x24fce9,_0x1da37d){const _0x109756=_0x9268c,_0x403939=[];_0x1da37d===_0x1d148a[_0x109756(0x2ed)][_0x109756(0x407)]&&_0x24fce9[_0x109756(0x1d3)](_0x1d148a[_0x109756(0x2ed)][_0x109756(0x407)],_0x4e09fd=>{const _0x515429=_0x109756;_0x403939[_0x515429(0x17b)](_0x4e09fd['getId']());}),_0x1da37d===_0x1d148a[_0x109756(0x2ed)][_0x109756(0x174)]&&_0x24fce9[_0x109756(0x1d3)](_0x1d148a[_0x109756(0x2ed)][_0x109756(0x174)],_0x4a6249=>{const _0x1bd918=_0x109756;_0x403939[_0x1bd918(0x17b)](_0x4a6249['getId']());}),_0x1da37d===_0x1d148a[_0x109756(0x2ed)][_0x109756(0x228)]&&_0x24fce9[_0x109756(0x1d3)](_0x1d148a[_0x109756(0x2ed)][_0x109756(0x228)],_0x1d73b2=>{const _0x271b5e=_0x109756;_0x403939[_0x271b5e(0x17b)](_0x1d73b2[_0x271b5e(0x1ef)]());}),_0x1da37d===_0x1d148a[_0x109756(0x2ed)]['Value']&&_0x24fce9[_0x109756(0x1d3)](_0x1d148a[_0x109756(0x2ed)]['Value'],_0x1f1784=>{const _0x53f10a=_0x109756;_0x403939[_0x53f10a(0x17b)](_0x1f1784[_0x53f10a(0x1ef)]());}),_0x1da37d===void 0x0&&_0x24fce9[_0x109756(0x1e2)](_0x4ac37d=>{const _0x3de556=_0x109756;_0x403939[_0x3de556(0x17b)](_0x4ac37d['getId']());});const _0x1185be=_0x403939['length'];for(let _0x3e7c6b=_0x1185be-0x1;_0x3e7c6b>=0x0;_0x3e7c6b--)_0x24fce9[_0x109756(0x1a5)](_0x403939[_0x3e7c6b]);const _0x272b41=_0x24fce9['getValueFilterInfos']();for(const _0xbcf18 in _0x272b41)_0x24fce9['removeValueFilterInfo'](_0xbcf18);}function _0x447ce2(_0x534bce,_0x365e33){const _0x5e5f36=_0x9268c,_0x5947c5=new Date(_0x1d148a[_0x5e5f36(0x195)](_0x365e33)),_0x5eae18=new Date(_0x1d148a[_0x5e5f36(0x195)](_0x534bce)),_0x30f240=_0x5947c5[_0x5e5f36(0x3ed)](),_0x27ea06=_0x5eae18[_0x5e5f36(0x3ed)](),_0x2716c3=_0x5947c5[_0x5e5f36(0x3ab)](),_0x4ddff5=_0x5eae18[_0x5e5f36(0x3ab)](),_0x27d00b=_0x5947c5[_0x5e5f36(0x1a3)](),_0x50b1a5=_0x5eae18[_0x5e5f36(0x1a3)](),_0x52165e=_0x30f240===_0x27ea06,_0x2c3fb0=_0x52165e&&_0x2716c3===_0x4ddff5;return _0x52165e&&_0x2c3fb0&&!(_0x2c3fb0&&_0x27d00b===_0x50b1a5)?_0x1d148a[_0x5e5f36(0x1e8)][_0x5e5f36(0x2bf)]:_0x52165e&&!_0x2c3fb0?_0x1d148a[_0x5e5f36(0x1e8)][_0x5e5f36(0x1d6)]:_0x1d148a[_0x5e5f36(0x1e8)][_0x5e5f36(0x2e4)];}function _0x1fac8e(_0x395639,_0x156b51){const _0x1f4919=_0x9268c,_0xb0cd1f=_0x395639['get'](_0x29b926[_0x1f4919(0x420)])[_0x1f4919(0x22d)]();let _0x422add='';switch(_0x156b51){case _0x1d148a[_0x1f4919(0x1e8)]['YearMonthDate']:_0x422add=_0xb0cd1f[_0x1f4919(0x39d)];break;case _0x1d148a[_0x1f4919(0x1e8)][_0x1f4919(0x1d6)]:_0x422add=_0xb0cd1f[_0x1f4919(0x3d6)];break;case _0x1d148a[_0x1f4919(0x1e8)][_0x1f4919(0x2e4)]:_0x422add=_0xb0cd1f['sheets-pivot.dateGroup.year'];break;case _0x1d148a[_0x1f4919(0x1e8)][_0x1f4919(0x29d)]:_0x422add=_0xb0cd1f[_0x1f4919(0x36d)];break;case _0x1d148a[_0x1f4919(0x1e8)][_0x1f4919(0x25c)]:_0x422add=_0xb0cd1f[_0x1f4919(0x3fb)];break;case _0x1d148a[_0x1f4919(0x1e8)][_0x1f4919(0x1f5)]:_0x422add=_0xb0cd1f['sheets-pivot.dateGroup.date'];break;case _0x1d148a[_0x1f4919(0x1e8)]['HourMinute']:_0x422add=_0xb0cd1f[_0x1f4919(0x42f)];break;case _0x1d148a[_0x1f4919(0x1e8)][_0x1f4919(0x271)]:_0x422add=_0xb0cd1f[_0x1f4919(0x392)];break;case _0x1d148a[_0x1f4919(0x1e8)][_0x1f4919(0x24c)]:_0x422add=_0xb0cd1f[_0x1f4919(0x268)];break;case _0x1d148a[_0x1f4919(0x1e8)][_0x1f4919(0x3e3)]:_0x422add=_0xb0cd1f[_0x1f4919(0x1c1)];break;case _0x1d148a[_0x1f4919(0x1e8)]['YearQuarter']:_0x422add=_0xb0cd1f['sheets-pivot.dateGroup.yearQuarter'];break;default:_0x422add='';break;}return _0x422add;}const _0x571d16='sheets-pivot.config',_0x180b02={};var _0x215153=Object[_0x9268c(0x379)],_0x26b5af=(_0x5ec219,_0x128155,_0x4a593d,_0x4c244f)=>{const _0x147c6c=_0x9268c;for(var _0x577132=_0x4c244f>0x1?void 0x0:_0x4c244f?_0x215153(_0x128155,_0x4a593d):_0x128155,_0x2f1619=_0x5ec219[_0x147c6c(0x32d)]-0x1,_0x2da236;_0x2f1619>=0x0;_0x2f1619--)(_0x2da236=_0x5ec219[_0x2f1619])&&(_0x577132=_0x2da236(_0x577132)||_0x577132);return _0x577132;},_0x3a7e38=(_0x267d5f,_0x254a86)=>(_0x3b766f,_0x4d07af)=>_0x254a86(_0x3b766f,_0x4d07af,_0x267d5f);_0x29b926[_0x9268c(0x15d)]=class extends _0x475d1b[_0x9268c(0x158)]{constructor(_0x72d38,_0x1bc31d,_0x4b8d51,_0x2d5e11,_0x336477){const _0x432ca4=_0x9268c;super(),_0x346b88(this,_0x432ca4(0x462),new Map()),_0x346b88(this,_0x432ca4(0x167),new Map()),_0x346b88(this,_0x432ca4(0x385),new Map()),_0x346b88(this,_0x432ca4(0x1fb),new Map()),_0x346b88(this,_0x432ca4(0x1dc),new _0x53d07a['Subject']()),_0x346b88(this,'_pivotInitCompleted$',new _0x53d07a[(_0x432ca4(0x1f6))]()),_0x346b88(this,_0x432ca4(0x1f9),this[_0x432ca4(0x2b3)][_0x432ca4(0x1f1)]()),_0x346b88(this,'_pivotConfigChange$',new _0x53d07a['Subject']()),_0x346b88(this,'pivotConfigChange$',this[_0x432ca4(0x439)][_0x432ca4(0x1f1)]()),_0x346b88(this,_0x432ca4(0x1b0),{}),_0x346b88(this,_0x432ca4(0x377),this[_0x432ca4(0x1dc)][_0x432ca4(0x1f1)]()),(this[_0x432ca4(0x2cd)]=_0x72d38,this[_0x432ca4(0x31d)]=_0x1bc31d,this[_0x432ca4(0x2d4)]=_0x4b8d51,this[_0x432ca4(0x3e5)]=_0x2d5e11,this[_0x432ca4(0x336)]=_0x336477,this['_initLocale'](),this[_0x432ca4(0x2e6)]());const _0x28dfed=this[_0x432ca4(0x336)][_0x432ca4(0x32b)](_0x571d16);(_0x28dfed==null?void 0x0:_0x28dfed[_0x432ca4(0x353)])===!0x0&&this[_0x432ca4(0x3e4)]();}[_0x9268c(0x2e6)](){const _0x24a7ac=_0x9268c;this[_0x24a7ac(0x2c9)](this[_0x24a7ac(0x2d4)][_0x24a7ac(0x365)](_0x475d1b[_0x24a7ac(0x194)][_0x24a7ac(0x461)])['subscribe'](_0x4d1b86=>{this['deleteUnitId'](_0x4d1b86['getUnitId']());}));}[_0x9268c(0x3bc)](){const _0x19892a=_0x9268c;this[_0x19892a(0x2b3)][_0x19892a(0x347)](!0x0);}[_0x9268c(0x1f4)](){const _0x1ca3b7=_0x9268c,_0xfa213=_0x368654(this[_0x1ca3b7(0x2cd)],_0x475b38,'',{});this[_0x1ca3b7(0x1b0)]=_0xfa213,this[_0x1ca3b7(0x31d)][_0x1ca3b7(0x267)](_0x499dd5['id'],{'textInfo':_0xfa213},{'onlyLocal':!0x0});}['getTextInfo'](){const _0x29c727=_0x9268c;return this[_0x29c727(0x1b0)];}[_0x9268c(0x2af)](_0x2efd50,_0x574740,_0x512806,_0x337dfa,_0x224be1){const _0x59a3c2=_0x9268c;this[_0x59a3c2(0x32a)](_0x2efd50,_0x574740,_0x512806,_0x337dfa),this['updatePivotTableRangeInfo'](_0x2efd50,_0x574740,_0x512806,_0x224be1);}[_0x9268c(0x346)](_0x58fb2f,_0x5e1f56,_0x11eb38){const _0x329af7=_0x9268c;var _0x4fdf51;const _0x22242e=(_0x4fdf51=this[_0x329af7(0x462)][_0x329af7(0x3bb)](_0x58fb2f))==null?void 0x0:_0x4fdf51[_0x329af7(0x3bb)](_0x5e1f56);if(_0x22242e)return _0x22242e[_0x329af7(0x3bb)](_0x11eb38);}[_0x9268c(0x202)](_0x1796d8,_0x42b951){const _0x42a0b0=_0x9268c,_0x2fb4c6=this[_0x42a0b0(0x462)][_0x42a0b0(0x3bb)](_0x1796d8);if(_0x2fb4c6){for(const [_0x5d6618,_0x2b88cc]of _0x2fb4c6[_0x42a0b0(0x30b)]())for(const [_0x7357f9,_0x4c7248]of _0x2b88cc['entries']())if(_0x7357f9===_0x42b951)return _0x4c7248[_0x42a0b0(0x1bf)];}}[_0x9268c(0x19a)](_0x203cce,_0x25eacc,_0x23644d){const _0x262619=_0x9268c,_0x5ccb7c=this[_0x262619(0x346)](_0x203cce,_0x25eacc,_0x23644d);return _0x5ccb7c==null?void 0x0:_0x5ccb7c[_0x262619(0x1bf)];}[_0x9268c(0x46c)](_0x474bf3,_0x62edc2){const _0x32df5f=_0x9268c;var _0x5220f3;return(_0x5220f3=this[_0x32df5f(0x462)][_0x32df5f(0x3bb)](_0x474bf3))==null?void 0x0:_0x5220f3[_0x32df5f(0x3bb)](_0x62edc2);}[_0x9268c(0x313)](_0x4fa4a8,_0x199ba3,_0x4fbef7,_0x3e3f5a){const _0x183aff=_0x9268c,_0x2beec1=this[_0x183aff(0x1e5)](_0x4fa4a8,_0x199ba3);_0x3e3f5a?_0x2beec1[_0x183aff(0x40a)](_0x4fbef7,_0x3e3f5a):_0x2beec1[_0x183aff(0x37c)](_0x4fbef7),this[_0x183aff(0x439)][_0x183aff(0x347)]({'unitId':_0x4fa4a8,'subUnitId':_0x199ba3,'pivotTableId':_0x4fbef7,'pivotTableConfig':_0x3e3f5a});}[_0x9268c(0x35a)](_0x373903,_0x134176){const _0x34b190=_0x9268c;var _0x32fd8b;return(_0x32fd8b=this['_collectionConfigModel']['get'](_0x373903))==null?void 0x0:_0x32fd8b[_0x34b190(0x3c3)][_0x134176];}[_0x9268c(0x3c5)](_0x42d5d5,_0x4c63b2){const _0x504f77=_0x9268c;this['_collectionConfigModel'][_0x504f77(0x40a)](_0x42d5d5,_0x4c63b2),this['_configVersion$']['next'](Math['random']());}[_0x9268c(0x1e5)](_0x3901e0,_0x505b27){const _0x5da3ce=_0x9268c;let _0x318a9d=this['_model'][_0x5da3ce(0x3bb)](_0x3901e0);_0x318a9d||(_0x318a9d=new Map(),this[_0x5da3ce(0x462)][_0x5da3ce(0x40a)](_0x3901e0,_0x318a9d));let _0x3a6da4=_0x318a9d['get'](_0x505b27);return _0x3a6da4||(_0x3a6da4=new Map(),_0x318a9d[_0x5da3ce(0x40a)](_0x505b27,_0x3a6da4)),_0x3a6da4;}[_0x9268c(0x26a)](_0x36182a,_0x4fd8f6){const _0x3308b9=_0x9268c;let _0x4b5849=this[_0x3308b9(0x385)][_0x3308b9(0x3bb)](_0x36182a);_0x4b5849||(_0x4b5849=new Map(),this[_0x3308b9(0x385)]['set'](_0x36182a,_0x4b5849));let _0x208bab=_0x4b5849[_0x3308b9(0x3bb)](_0x4fd8f6);return _0x208bab||(_0x208bab=new Map(),_0x4b5849[_0x3308b9(0x40a)](_0x4fd8f6,_0x208bab)),_0x208bab;}[_0x9268c(0x38a)](_0x4ce63e,_0x1c3f2b){const _0xc1d2eb=_0x9268c;let _0x4e2d50=this[_0xc1d2eb(0x1fb)][_0xc1d2eb(0x3bb)](_0x4ce63e);_0x4e2d50||(_0x4e2d50=new Map(),this[_0xc1d2eb(0x1fb)]['set'](_0x4ce63e,_0x4e2d50));let _0x5c01ec=_0x4e2d50[_0xc1d2eb(0x3bb)](_0x1c3f2b);return _0x5c01ec||(_0x5c01ec=new Map(),_0x4e2d50[_0xc1d2eb(0x40a)](_0x1c3f2b,_0x5c01ec)),_0x5c01ec;}[_0x9268c(0x233)](_0x448cd3,_0x548f0d,_0x218eae,_0x2707a8){const _0xb75fb0=_0x9268c;var _0x1727bf;const _0x306188=this[_0xb75fb0(0x26a)](_0x448cd3,_0x548f0d),_0x54a227=(_0x1727bf=_0x306188[_0xb75fb0(0x3bb)](_0x218eae))==null?void 0x0:_0x1727bf[_0xb75fb0(0x45d)];_0x306188[_0xb75fb0(0x40a)](_0x218eae,{'oldRangeInfo':_0x54a227,'rangeInfo':_0x2707a8});}[_0x9268c(0x32a)](_0x4343d7,_0x4da4d9,_0x247761,_0x464370){const _0x386124=_0x9268c;var _0x4044fc;const _0x80e4d8=this['_ensurePivotTableMatrixInfo'](_0x4343d7,_0x4da4d9),_0x56acc2=(_0x4044fc=_0x80e4d8[_0x386124(0x3bb)](_0x247761))==null?void 0x0:_0x4044fc[_0x386124(0x459)];_0x80e4d8[_0x386124(0x40a)](_0x247761,{'oldMatrix':_0x56acc2,'matrix':_0x464370});}[_0x9268c(0x3a4)](_0x39f6b0,_0x5be1e0,_0x53cd4b){const _0x490692=_0x9268c;var _0x4b410d,_0x3e57b2;return(_0x3e57b2=(_0x4b410d=this['_pivotTableRangeInfo'][_0x490692(0x3bb)](_0x39f6b0))==null?void 0x0:_0x4b410d[_0x490692(0x3bb)](_0x5be1e0))==null?void 0x0:_0x3e57b2[_0x490692(0x3bb)](_0x53cd4b);}[_0x9268c(0x464)](_0x452c38,_0x3bf845,_0x328476){const _0xb08a1=_0x9268c;var _0xb0cc14,_0x2dab2e;return(_0x2dab2e=(_0xb0cc14=this[_0xb08a1(0x1fb)][_0xb08a1(0x3bb)](_0x452c38))==null?void 0x0:_0xb0cc14[_0xb08a1(0x3bb)](_0x3bf845))==null?void 0x0:_0x2dab2e['get'](_0x328476);}[_0x9268c(0x3cf)](_0x3bbc31){const _0x156f56=_0x9268c;this[_0x156f56(0x462)][_0x156f56(0x37c)](_0x3bbc31),this[_0x156f56(0x167)][_0x156f56(0x37c)](_0x3bbc31);}[_0x9268c(0x380)](_0x174039){const _0x5d519c=_0x9268c,_0x4ddd0a={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x5d519c(0x167)][_0x5d519c(0x3bb)](_0x174039)&&(_0x4ddd0a[_0x5d519c(0x189)][_0x174039]=this['_collectionConfigModel'][_0x5d519c(0x3bb)](_0x174039)),this[_0x5d519c(0x462)][_0x5d519c(0x3bb)](_0x174039)){_0x4ddd0a['pivotTableConfigs'][_0x174039]={};const _0x18ccc1=this['_model'][_0x5d519c(0x3bb)](_0x174039);_0x18ccc1!=null&&_0x18ccc1[_0x5d519c(0x3d7)]&&[..._0x18ccc1[_0x5d519c(0x16a)]()][_0x5d519c(0x3df)](_0x421153=>{const _0x588b1b=_0x5d519c,_0x50f8f0=_0x18ccc1[_0x588b1b(0x3bb)](_0x421153);_0x50f8f0!=null&&_0x50f8f0[_0x588b1b(0x3d7)]&&(_0x4ddd0a['pivotTableConfigs'][_0x174039][_0x421153]={},[..._0x50f8f0[_0x588b1b(0x16a)]()]['forEach'](_0x2fc8a5=>{const _0x561a38=_0x588b1b,_0x41a940=_0x50f8f0[_0x561a38(0x3bb)](_0x2fc8a5);_0x41a940&&(_0x4ddd0a[_0x561a38(0x159)][_0x174039][_0x421153][_0x2fc8a5]=_0x41a940);}));});}return _0x4ddd0a;}['_initSnapshot'](){const _0x27a8eb=_0x9268c;this[_0x27a8eb(0x2c9)](this[_0x27a8eb(0x3e5)]['registerPluginResource']({'toJson':_0x39cbee=>JSON['stringify'](this['_toJSON'](_0x39cbee)),'parseJson':_0x3aad80=>({}),'businesses':[_0x475d1b[_0x27a8eb(0x194)][_0x27a8eb(0x461)]],'pluginName':_0x2ecc25,'onLoad':(_0x164267,_0xee948)=>{},'onUnLoad':_0x4323e1=>{const _0x48edf6=_0x27a8eb;this[_0x48edf6(0x3cf)](_0x4323e1);}}));}},_0x29b926[_0x9268c(0x15d)]=_0x26b5af([_0x3a7e38(0x0,_0x475d1b['Inject'](_0x475d1b[_0x9268c(0x250)])),_0x3a7e38(0x1,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x342)])),_0x3a7e38(0x2,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b['IUniverInstanceService'])),_0x3a7e38(0x3,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x203)])),_0x3a7e38(0x4,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b['IConfigService']))],_0x29b926[_0x9268c(0x15d)]);var _0x3cb427=Object[_0x9268c(0x379)],_0x21db0e=(_0x4643f6,_0x5b9241,_0x229296,_0x3796f8)=>{const _0x6d01c2=_0x9268c;for(var _0x31b385=_0x3796f8>0x1?void 0x0:_0x3796f8?_0x3cb427(_0x5b9241,_0x229296):_0x5b9241,_0x2f3700=_0x4643f6[_0x6d01c2(0x32d)]-0x1,_0x518ec2;_0x2f3700>=0x0;_0x2f3700--)(_0x518ec2=_0x4643f6[_0x2f3700])&&(_0x31b385=_0x518ec2(_0x31b385)||_0x31b385);return _0x31b385;},_0x3a06e7=(_0x452cf1,_0x558994)=>(_0x20eab3,_0xd654c)=>_0x558994(_0x20eab3,_0xd654c,_0x452cf1);_0x29b926[_0x9268c(0x317)]=class extends _0x475d1b[_0x9268c(0x158)]{constructor(_0x3387a6,_0x220f23,_0x3c1396,_0x3a588d,_0x27de08){const _0x13ddbc=_0x9268c;super(),_0x346b88(this,_0x13ddbc(0x460),new Map()),_0x346b88(this,_0x13ddbc(0x23a),new Map()),_0x346b88(this,_0x13ddbc(0x351),new _0x53d07a['Subject']()),_0x346b88(this,_0x13ddbc(0x386),this[_0x13ddbc(0x351)][_0x13ddbc(0x1f1)]()),_0x346b88(this,_0x13ddbc(0x416),new _0x53d07a[(_0x13ddbc(0x1f6))]()),_0x346b88(this,_0x13ddbc(0x41a),this['_viewUpdate$']['asObservable']()),_0x346b88(this,_0x13ddbc(0x1b0)),(this[_0x13ddbc(0x437)]=_0x3387a6,this[_0x13ddbc(0x2cd)]=_0x220f23,this[_0x13ddbc(0x1d7)]=_0x3c1396,this['_univerInstanceService']=_0x3a588d,this[_0x13ddbc(0x208)]=_0x27de08,this[_0x13ddbc(0x1f4)](),this['_initUnitDisposed']());}[_0x9268c(0x2e6)](){const _0x26a32d=_0x9268c;this['disposeWithMe'](this[_0x26a32d(0x2d4)][_0x26a32d(0x365)](_0x475d1b[_0x26a32d(0x194)][_0x26a32d(0x461)])[_0x26a32d(0x282)](_0x1f671b=>{const _0xf77f87=_0x26a32d;this[_0xf77f87(0x3cf)](_0x1f671b[_0xf77f87(0x25d)]());}));}[_0x9268c(0x1f4)](){const _0x399741=_0x9268c;this[_0x399741(0x1b0)]=_0x368654(this[_0x399741(0x2cd)],_0x475b38,'',{});}[_0x9268c(0x274)](_0xb27370){const _0x4d4929=_0x9268c,{view:_0x23f3fc,unitId:_0x9baa2d,subUnitId:_0x59c7bf,pivotTableId:_0xf4a6f9,type:_0x402856}=_0xb27370,_0x41267a=this[_0x4d4929(0x1d7)][_0x4d4929(0x346)](_0x9baa2d,_0x59c7bf,_0xf4a6f9);if(!_0x23f3fc||!_0x41267a||_0x402856===_0x94aa6e[_0x4d4929(0x22e)])return;const {pageView:_0x3f7886,cornerView:_0x4126c2,rowView:_0xb31526,colView:_0x11988f,dataView:_0x2dc9e5}=_0x23f3fc,_0x191b98=_0x41267a['targetCellInfo'],_0x16194c=_0x41267a['isEmpty'],_0x20f0dd=this[_0x4d4929(0x46e)](_0x9baa2d,_0x59c7bf),_0x27643d=this[_0x4d4929(0x334)](_0x9baa2d,_0x59c7bf,_0xf4a6f9);if(_0x16194c)return this['_updateRenderEmptyCache'](_0xb27370,_0x20f0dd,_0x191b98,_0x27643d);{const _0x2f412b=_0xc7a07b(_0x191b98,_0x3f7886,!0x0),_0x476dbf=_0x3f7886[_0x4d4929(0x16f)]>=0x0?_0x3f7886[_0x4d4929(0x16f)]+0x1:0x0,_0x568d07=_0x4126c2[_0x4d4929(0x418)](),_0x49a98a=_0x4126c2[_0x4d4929(0x3e9)](),_0x1d9562=_0x2f412b[_0x4d4929(0x32d)]>0x0?_0xe9af5e:0x0,_0x4e79a7=_0xc7a07b({'row':_0x191b98[_0x4d4929(0x18c)]+_0x476dbf+_0x1d9562,'col':_0x191b98[_0x4d4929(0x2b7)]},_0x4126c2,!0x1,!0x1),_0x231eb4=_0xc7a07b({'row':_0x191b98[_0x4d4929(0x18c)]+_0x476dbf+_0x1d9562+_0x568d07,'col':_0x191b98[_0x4d4929(0x2b7)]},_0xb31526,!0x1,!0x0),_0x41f1ef=_0xc7a07b({'row':_0x191b98['row']+_0x476dbf+_0x1d9562,'col':_0x191b98[_0x4d4929(0x2b7)]+_0x49a98a},_0x11988f,!0x1,!0x0),_0xb2e23f=_0xc7a07b({'row':_0x191b98['row']+_0x476dbf+_0x1d9562+_0x568d07,'col':_0x191b98[_0x4d4929(0x2b7)]+_0x49a98a},_0x2dc9e5,!0x1,!0x1);_0x27643d['rangesInfo']={'rowRanges':_0x231eb4,'colRanges':_0x41f1ef,'cornerRanges':_0x4e79a7,'dataRanges':_0xb2e23f,'pageRanges':_0x2f412b};const _0x2585a2=_0x14ac7a(this[_0x4d4929(0x2cd)],_0x23f3fc,_0x41267a,this[_0x4d4929(0x1b0)]),{valueMatrix:_0x36efb5,rowInfo:_0x2ca7ca,colInfo:_0x73b88c,cornerInfo:_0x3a7fb4,rowHeaderMap:_0x4d868c,colHeaderMap:_0x38871e}=_0x2585a2;return _0x27643d[_0x4d4929(0x2b9)]={'rowInfo':_0x2ca7ca,'colInfo':_0x73b88c,'cornerInfo':_0x3a7fb4},_0x27643d[_0x4d4929(0x29f)]={'rowHeaderMap':_0x4d868c,'colHeaderMap':_0x38871e},_0x36efb5[_0x4d4929(0x3df)]((_0x4e7fbf,_0x2515bb)=>{const _0x42537f=_0x4d4929;Object[_0x42537f(0x16a)](_0x2515bb)[_0x42537f(0x3df)](_0x467cd2=>{const _0x2b6916=_0x42537f,_0x403569=+_0x467cd2,_0x6fd7e9=_0x36efb5[_0x2b6916(0x25a)](_0x4e7fbf,_0x403569);_0x20f0dd['setValue'](_0x4e7fbf,_0x403569,_0x6fd7e9);});}),this['_viewUpdate$'][_0x4d4929(0x347)]({'unitId':_0x9baa2d,'subUnitId':_0x59c7bf,'valueMatrix':_0x20f0dd,'rangesCache':_0x27643d[_0x4d4929(0x2a9)],'pivotTableId':_0xf4a6f9,'type':_0xb27370['type']}),this[_0x4d4929(0x1d7)][_0x4d4929(0x2af)](_0x9baa2d,_0x59c7bf,_0xf4a6f9,_0x20f0dd,_0x27643d[_0x4d4929(0x2a9)]),this['_exclusiveRangeService']['addExclusiveRange'](_0x9baa2d,_0x59c7bf,_0x506cb3,this['_createExclusiveRange'](_0x27643d[_0x4d4929(0x2a9)],_0xf4a6f9)),{'rangeCache':_0x27643d['rangesInfo'],'matrix':_0x20f0dd};}}[_0x9268c(0x38b)](_0x1b1e32,_0x3d07d4,_0x52a2d6,_0xd29b5f){const _0x5b7259=_0x9268c,_0x1b446a=this['_localeService']['t'],{unitId:_0x44f9a2,subUnitId:_0x22170e,pivotTableId:_0x40b9db}=_0x1b1e32,_0x5a550c={'filter':_0x1b446a(_0x5b7259(0x384)),'row':_0x1b446a(_0x5b7259(0x446)),'column':_0x1b446a(_0x5b7259(0x341)),'values':_0x1b446a('sheets-pivot.emptyPivot.values')},{matrixCache:_0x49e40f,rangesCache:_0x56946b}=_0x39db0e(_0x5a550c,_0x52a2d6);return _0x49e40f[_0x5b7259(0x45e)]((_0x25b713,_0x219677,_0x15451d)=>{const _0x352a2a=_0x5b7259;_0x3d07d4[_0x352a2a(0x316)](_0x25b713,_0x219677,_0x15451d);}),_0xd29b5f[_0x5b7259(0x2a9)]=_0x56946b,this[_0x5b7259(0x416)]['next']({'unitId':_0x44f9a2,'subUnitId':_0x22170e,'valueMatrix':_0x3d07d4,'rangesCache':_0x56946b,'pivotTableId':_0x40b9db,'type':_0x1b1e32[_0x5b7259(0x436)],'isEmpty':!0x0}),this[_0x5b7259(0x1d7)][_0x5b7259(0x2af)](_0x44f9a2,_0x22170e,_0x40b9db,_0x3d07d4,_0x56946b),this[_0x5b7259(0x208)][_0x5b7259(0x26f)](_0x44f9a2,_0x22170e,_0x506cb3,this[_0x5b7259(0x2a7)](_0x56946b,_0x40b9db)),{'rangeCache':_0xd29b5f[_0x5b7259(0x2a9)],'matrix':_0x3d07d4};}[_0x9268c(0x2a7)](_0x3c276d,_0x41ea7f){const _0x581421=[],_0x1d0eb6=_0x5608c1(_0x3c276d);for(const _0x5057d0 of _0x1d0eb6)_0x581421['push']({'groupId':_0x41ea7f,'range':_0x5057d0});return _0x581421;}[_0x9268c(0x216)](_0x89c4a9){const _0x2cad00=_0x9268c;var _0x2c52e8,_0x250492,_0x301436,_0xf187dd;const {pivotTableId:_0x53a0ae,unitId:_0x58b0b5,subUnitId:_0x4a57ee}=_0x89c4a9;if(!_0x53a0ae||!_0x58b0b5||!_0x4a57ee)return;const _0x3012a4=this['_ensurePivotItemRenderValueMatrixCache'](_0x58b0b5,_0x4a57ee),_0x29fb94=(_0x250492=(_0x2c52e8=this[_0x2cad00(0x460)][_0x2cad00(0x3bb)](_0x58b0b5))==null?void 0x0:_0x2c52e8['get'](_0x4a57ee))==null?void 0x0:_0x250492[_0x2cad00(0x3bb)](_0x53a0ae);if(_0x29fb94!=null&&_0x29fb94['rangesInfo']){for(const _0x41a3a5 of Object[_0x2cad00(0x16a)](_0x29fb94['rangesInfo']))_0x29fb94[_0x2cad00(0x2a9)][_0x41a3a5][_0x2cad00(0x3df)](_0xcf1186=>{const _0x492659=_0x2cad00;for(let _0x12cd88=_0xcf1186[_0x492659(0x2ff)];_0x12cd88<=_0xcf1186['endRow'];_0x12cd88++)for(let _0x4bb5e1=_0xcf1186['startColumn'];_0x4bb5e1<=_0xcf1186[_0x492659(0x277)];_0x4bb5e1++)_0x3012a4['realDeleteValue'](_0x12cd88,_0x4bb5e1);});}_0x29fb94&&((_0xf187dd=(_0x301436=this[_0x2cad00(0x460)]['get'](_0x58b0b5))==null?void 0x0:_0x301436['get'](_0x4a57ee))==null||_0xf187dd[_0x2cad00(0x37c)](_0x53a0ae)),this['_viewUpdate$'][_0x2cad00(0x347)]({'unitId':_0x58b0b5,'subUnitId':_0x4a57ee,'valueMatrix':_0x3012a4,'pivotTableId':_0x53a0ae,'rangesCache':void 0x0,'type':_0x89c4a9['type']}),this['_exclusiveRangeService'][_0x2cad00(0x232)](_0x58b0b5,_0x4a57ee,_0x506cb3,_0x53a0ae);}[_0x9268c(0x334)](_0x1ee340,_0x1b1f99,_0x311b32){const _0x6c6c86=_0x9268c;var _0x335089,_0x44019a,_0x5b7f46,_0x4c48fc,_0x2d9e34,_0x126b66;return this['_pivotRenderInfoCache'][_0x6c6c86(0x2a4)](_0x1ee340)||this[_0x6c6c86(0x460)][_0x6c6c86(0x40a)](_0x1ee340,new Map()),(_0x335089=this['_pivotRenderInfoCache'][_0x6c6c86(0x3bb)](_0x1ee340))!=null&&_0x335089['has'](_0x1b1f99)||(_0x44019a=this[_0x6c6c86(0x460)][_0x6c6c86(0x3bb)](_0x1ee340))==null||_0x44019a[_0x6c6c86(0x40a)](_0x1b1f99,new Map()),(_0x4c48fc=(_0x5b7f46=this[_0x6c6c86(0x460)][_0x6c6c86(0x3bb)](_0x1ee340))==null?void 0x0:_0x5b7f46[_0x6c6c86(0x3bb)](_0x1b1f99))!=null&&_0x4c48fc['has'](_0x311b32)||(_0x126b66=(_0x2d9e34=this[_0x6c6c86(0x460)][_0x6c6c86(0x3bb)](_0x1ee340))==null?void 0x0:_0x2d9e34[_0x6c6c86(0x3bb)](_0x1b1f99))==null||_0x126b66[_0x6c6c86(0x40a)](_0x311b32,{}),this[_0x6c6c86(0x460)][_0x6c6c86(0x3bb)](_0x1ee340)['get'](_0x1b1f99)[_0x6c6c86(0x3bb)](_0x311b32);}['_ensurePivotItemRenderValueMatrixCache'](_0x315662,_0x1db0dc){const _0xb32419=_0x9268c;var _0x163b91,_0x5021b8;return this['_pivotRenderValueMatrixCache'][_0xb32419(0x2a4)](_0x315662)||this[_0xb32419(0x23a)][_0xb32419(0x40a)](_0x315662,new Map()),(_0x163b91=this[_0xb32419(0x23a)]['get'](_0x315662))!=null&&_0x163b91[_0xb32419(0x2a4)](_0x1db0dc)||(_0x5021b8=this['_pivotRenderValueMatrixCache'][_0xb32419(0x3bb)](_0x315662))==null||_0x5021b8[_0xb32419(0x40a)](_0x1db0dc,new _0x475d1b['ObjectMatrix']()),this[_0xb32419(0x23a)][_0xb32419(0x3bb)](_0x315662)['get'](_0x1db0dc);}[_0x9268c(0x164)](_0x2e2970,_0x1f91ed,_0x152102,_0x123893){const _0x1256ac=_0x9268c;var _0x1f59ae,_0x39eb7b;const _0xd429dc=(_0x39eb7b=(_0x1f59ae=this[_0x1256ac(0x23a)][_0x1256ac(0x3bb)](_0x2e2970))==null?void 0x0:_0x1f59ae[_0x1256ac(0x3bb)](_0x1f91ed))==null?void 0x0:_0x39eb7b[_0x1256ac(0x25a)](_0x152102,_0x123893);if(_0xd429dc!=null)return _0xd429dc;}[_0x9268c(0x403)](_0x1c3927,_0x4e5f90,_0x53904e,_0x4a1107){const _0x33dddb=_0x9268c;var _0x230128;const _0x1c8f74=_0x475d1b['cellToRange'](_0x53904e,_0x4a1107),_0x3e9bbd=(_0x230128=this[_0x33dddb(0x460)][_0x33dddb(0x3bb)](_0x1c3927))==null?void 0x0:_0x230128[_0x33dddb(0x3bb)](_0x4e5f90);return _0x3e9bbd?Array[_0x33dddb(0x3fd)](_0x3e9bbd[_0x33dddb(0x16a)]())['find'](_0x35963e=>{const _0x38fddb=_0x33dddb,_0x1029b0=_0x3e9bbd[_0x38fddb(0x3bb)](_0x35963e),_0x1c5c1e=_0x1029b0==null?void 0x0:_0x1029b0[_0x38fddb(0x2a9)];return _0x1c5c1e?Object[_0x38fddb(0x16a)](_0x1c5c1e)[_0x38fddb(0x400)](_0x1923e9=>_0x1c5c1e[_0x1923e9][_0x38fddb(0x400)](_0x485734=>_0x475d1b[_0x38fddb(0x3a7)]['contains'](_0x485734,_0x1c8f74))):!0x1;}):void 0x0;}[_0x9268c(0x2a8)](_0x5a2ef6,_0x449e38,_0x564ba6){const _0x3d6cb4=_0x9268c;var _0x373bcd;const _0x2760da=(_0x373bcd=this['_pivotRenderInfoCache']['get'](_0x5a2ef6))==null?void 0x0:_0x373bcd[_0x3d6cb4(0x3bb)](_0x449e38),_0x5993bd=[];return _0x2760da&&Array[_0x3d6cb4(0x3fd)](_0x2760da[_0x3d6cb4(0x16a)]())[_0x3d6cb4(0x3df)](_0x957f56=>{const _0x23d78c=_0x3d6cb4,_0x124fd8=_0x2760da[_0x23d78c(0x3bb)](_0x957f56),_0x3a0fa2=_0x124fd8==null?void 0x0:_0x124fd8[_0x23d78c(0x2a9)];if(_0x3a0fa2)for(const _0x5769b5 of Object[_0x23d78c(0x3c6)](_0x3a0fa2)){let _0x1ac347=!0x1;for(const _0x45c546 of _0x5769b5)if(_0x475d1b['Rectangle'][_0x23d78c(0x259)](_0x45c546,_0x564ba6)){_0x5993bd['push'](_0x957f56),_0x1ac347=!0x0;break;}if(_0x1ac347)break;}}),_0x5993bd;}[_0x9268c(0x28f)](_0x55b7c4,_0x56350d){const _0x51720c=_0x9268c;var _0x1d4ce0,_0x28a68d;return(_0x28a68d=(_0x1d4ce0=this['_pivotRenderValueMatrixCache'][_0x51720c(0x3bb)](_0x55b7c4))==null?void 0x0:_0x1d4ce0[_0x51720c(0x3bb)](_0x56350d))!=null?_0x28a68d:new _0x475d1b[(_0x51720c(0x405))]();}[_0x9268c(0x357)](_0x20114f,_0x2517f7){const _0x4ddc0f=_0x9268c;var _0x27872a;return(_0x27872a=this[_0x4ddc0f(0x460)][_0x4ddc0f(0x3bb)](_0x20114f))==null?void 0x0:_0x27872a[_0x4ddc0f(0x3bb)](_0x2517f7);}['getPivotItemRenderInfoCache'](_0x111070,_0x31e5cb,_0x50362d){const _0x5541ed=_0x9268c;var _0x545ea6,_0x103b91;return(_0x103b91=(_0x545ea6=this[_0x5541ed(0x460)]['get'](_0x111070))==null?void 0x0:_0x545ea6[_0x5541ed(0x3bb)](_0x31e5cb))==null?void 0x0:_0x103b91[_0x5541ed(0x3bb)](_0x50362d);}['deleteUnitId'](_0x59bcb4){const _0x41bf42=_0x9268c;this[_0x41bf42(0x460)]['delete'](_0x59bcb4),this[_0x41bf42(0x23a)][_0x41bf42(0x37c)](_0x59bcb4);}[_0x9268c(0x438)](_0x2b6563,_0x5c1266){const _0x53fa3d=_0x9268c;this[_0x53fa3d(0x351)][_0x53fa3d(0x347)]({'unitId':_0x2b6563,'subUnitId':_0x5c1266});}},_0x29b926[_0x9268c(0x317)]=_0x21db0e([_0x3a06e7(0x0,_0x475d1b['Inject'](_0x475d1b[_0x9268c(0x3b7)])),_0x3a06e7(0x1,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x250)])),_0x3a06e7(0x2,_0x475d1b[_0x9268c(0x3b0)](_0x29b926[_0x9268c(0x15d)])),_0x3a06e7(0x3,_0x475d1b['Inject'](_0x475d1b[_0x9268c(0x261)])),_0x3a06e7(0x4,_0x475d1b[_0x9268c(0x3b0)](_0x44476f[_0x9268c(0x1df)]))],_0x29b926[_0x9268c(0x317)]);var _0x2dcba6=Object[_0x9268c(0x379)],_0x4055a4=(_0xb6a844,_0x4b2445,_0x3bdfec,_0x28ca0c)=>{for(var _0x5273ec=_0x28ca0c>0x1?void 0x0:_0x28ca0c?_0x2dcba6(_0x4b2445,_0x3bdfec):_0x4b2445,_0x54e64e=_0xb6a844['length']-0x1,_0x11abdb;_0x54e64e>=0x0;_0x54e64e--)(_0x11abdb=_0xb6a844[_0x54e64e])&&(_0x5273ec=_0x11abdb(_0x5273ec)||_0x5273ec);return _0x5273ec;},_0x16fceb=(_0x457b82,_0x3bcc36)=>(_0x283880,_0x47e570)=>_0x3bcc36(_0x283880,_0x47e570,_0x457b82);_0x29b926['SheetsPivotTableService']=class extends _0x475d1b[_0x9268c(0x158)]{constructor(_0x24525c,_0x1e0bbe){const _0x4050d0=_0x9268c;super(),_0x346b88(this,_0x4050d0(0x3d1),new _0x475d1b[(_0x4050d0(0x3db))]({'PIVOT_PERFORM_CHECK':_0x3b3162})),_0x346b88(this,_0x4050d0(0x311),new _0x475d1b['InterceptorManager']({'PIVOT_MUTATION_GENERATE':_0x79d632})),(this[_0x4050d0(0x258)]=_0x24525c,this['_sheetsPivotTableAdaptorModel']=_0x1e0bbe,this[_0x4050d0(0x3fc)]());}[_0x9268c(0x3fc)](){const _0x59e202=_0x9268c;this[_0x59e202(0x1cc)]();}[_0x9268c(0x17e)](_0x5c1233){const _0x31a5c9=_0x9268c;return this[_0x31a5c9(0x3d1)]['fetchThroughAsyncInterceptors'](_0x3b3162)(!0x1,_0x5c1233);}[_0x9268c(0x1cc)](){const _0x4ed0b5=_0x9268c;this[_0x4ed0b5(0x2c9)](this[_0x4ed0b5(0x258)][_0x4ed0b5(0x1f3)](_0x44476f[_0x4ed0b5(0x1f0)][_0x4ed0b5(0x19c)],{'priority':0xc8,'effect':_0x475d1b[_0x4ed0b5(0x38d)]['Value']|_0x475d1b['InterceptorEffectEnum'][_0x4ed0b5(0x298)],'handler':(_0x13278a,_0x20fb91,_0xd3bfad)=>{const _0x319bea=_0x4ed0b5,{row:_0x2abb5f,col:_0x2e7fd2,unitId:_0x50016a,subUnitId:_0x2a3220,workbook:_0x52b3d7}=_0x20fb91,_0x15ac84=this[_0x319bea(0x427)]['getPivotTableCellData'](_0x50016a,_0x2a3220,_0x2abb5f,_0x2e7fd2);if(!_0x15ac84)return _0xd3bfad(_0x13278a);const _0x22bb4f={..._0x13278a};(_0x15ac84['v']||_0x15ac84['v']===0x0)&&(_0x22bb4f['v']=_0x15ac84['v']),_0x15ac84['t']&&(_0x22bb4f['t']=_0x15ac84['t']);const _0x2191fb=(typeof(_0x13278a==null?void 0x0:_0x13278a['s'])==_0x319bea(0x19b)?_0x52b3d7[_0x319bea(0x44e)]()[_0x319bea(0x3bb)](_0x13278a==null?void 0x0:_0x13278a['s']):_0x13278a==null?void 0x0:_0x13278a['s'])||{},_0x270a80=_0x52b3d7[_0x319bea(0x44e)]()[_0x319bea(0x3bb)](_0x15ac84['s']),_0x2cd486={..._0x270a80,..._0x2191fb};_0x270a80!=null&&_0x270a80['n']&&(_0x2cd486['n']=_0x270a80['n']);const _0x40c19c=_0x52b3d7[_0x319bea(0x44e)]()[_0x319bea(0x316)](_0x2cd486);return _0x22bb4f['s']=_0x40c19c,(_0x15ac84[_0x319bea(0x37a)]===_0x1d148a[_0x319bea(0x1b7)][_0x319bea(0x2b4)]||_0x15ac84[_0x319bea(0x37a)]===_0x1d148a[_0x319bea(0x1b7)]['Expand'])&&(_0x22bb4f[_0x319bea(0x399)]={},_0x22bb4f['fontRenderExtension'][_0x319bea(0x2ca)]=_0x2a1781),_0xd3bfad(_0x22bb4f);}}));}},_0x29b926[_0x9268c(0x3c8)]=_0x4055a4([_0x16fceb(0x0,_0x475d1b[_0x9268c(0x3b0)](_0x44476f[_0x9268c(0x375)])),_0x16fceb(0x1,_0x475d1b[_0x9268c(0x3b0)](_0x29b926[_0x9268c(0x317)]))],_0x29b926[_0x9268c(0x3c8)]);function _0x126764(_0x2d664c,_0x572c58){const _0x4353ca=_0x9268c;switch(_0x572c58){case _0x1d148a[_0x4353ca(0x2ed)][_0x4353ca(0x3c2)]:return _0x2d664c[_0x4353ca(0x374)];case _0x1d148a['PivotTableFiledAreaEnum'][_0x4353ca(0x228)]:return _0x2d664c[_0x4353ca(0x25e)];case _0x1d148a[_0x4353ca(0x2ed)][_0x4353ca(0x407)]:return _0x2d664c[_0x4353ca(0x3da)];case _0x1d148a['PivotTableFiledAreaEnum'][_0x4353ca(0x174)]:return _0x2d664c[_0x4353ca(0x3ac)];default:return[];}}function _0x1e7392(_0xc5c0a4,_0xa294de){const _0x2a546d=_0x9268c;return _0xc5c0a4[_0x2a546d(0x366)][_0xa294de]||_0xc5c0a4[_0x2a546d(0x3d8)][_0xa294de];}function _0x9452c7(_0x3e4972,_0xde7fc2){const _0x5d8078=_0x9268c,{area:_0x4d8028,fieldJson:_0x2b61c5,index:_0x99279b}=_0xde7fc2;_0x4d8028===_0x1d148a[_0x5d8078(0x2ed)]['Value']?_0x3e4972[_0x5d8078(0x366)][_0x2b61c5['id']]=_0x2b61c5:_0x3e4972[_0x5d8078(0x3d8)][_0x2b61c5['id']]=_0x2b61c5,_0x126764(_0x3e4972,_0x4d8028)[_0x5d8078(0x16b)](_0x99279b,0x0,_0x2b61c5['id']);}function _0x4ec487(_0x29b747,_0x533759){const _0xa21f69=_0x9268c,{area:_0x483ce6,fieldId:_0x1526a5,index:_0x2d0500}=_0x533759;_0x483ce6===_0x1d148a[_0xa21f69(0x2ed)]['Value']?delete _0x29b747['measure'][_0x1526a5]:delete _0x29b747['dimension'][_0x1526a5],_0x126764(_0x29b747,_0x483ce6)[_0xa21f69(0x16b)](_0x2d0500,0x1);}function _0x3b0e44(_0xe17c94,_0x31c63f){const _0x2fb11b=_0x9268c,{fieldId:_0x2271bd,name:_0x4cc44e}=_0x31c63f,_0x59339c=_0x1e7392(_0xe17c94,_0x2271bd);_0x59339c&&(_0x59339c[_0x2fb11b(0x1c8)]=_0x4cc44e);}function _0x30730b(_0x236403,_0x2345c2){const _0x5b0fe3=_0x9268c,{fieldId:_0x2a77ec,collapse:_0xd87141,item:_0x27b669}=_0x2345c2;_0x27b669!==void 0x0?(_0x236403['collapseInfo'][_0x2a77ec]=_0x236403['collapseInfo'][_0x2a77ec]||{},_0x236403[_0x5b0fe3(0x43c)][_0x2a77ec][_0x27b669]=_0xd87141):_0x236403[_0x5b0fe3(0x43c)][_0x2a77ec]=_0xd87141;}function _0x28b762(_0xa66006,_0x5d09bc){const {fieldId:_0x767a58,format:_0x737a1d}=_0x5d09bc,_0x2c3425=_0x1e7392(_0xa66006,_0x767a58);_0x2c3425&&(_0x2c3425['format']=_0x737a1d);}function _0x5b29dd(_0x479d13,_0x5db90d){const {fieldId:_0x42471f,filterInfo:_0x2bfec9}=_0x5db90d,_0x8e90ed=_0x1e7392(_0x479d13,_0x42471f);_0x8e90ed&&(_0x8e90ed['filterInfo']=_0x2bfec9);}function _0x451eae(_0x552c82,_0xc26d31){const _0x2dbd46=_0x9268c,{fieldId:_0x11297a,filterInfo:_0x1c1081}=_0xc26d31,_0x311431=_0x552c82[_0x2dbd46(0x31c)]['filter'](_0x58b889=>_0x58b889['fieldId']!==_0x11297a);_0x1c1081&&_0x311431[_0x2dbd46(0x17b)]({'fieldId':_0x11297a,'filterInfo':_0x1c1081}),_0x552c82[_0x2dbd46(0x31c)]=_0x311431;}function _0x5415a6(_0x54779e,_0x6d51d9){const _0x247806=_0x9268c,{fieldId:_0x53cf92,subtotalType:_0x1d8685}=_0x6d51d9,_0x1b7003=_0x1e7392(_0x54779e,_0x53cf92);_0x1b7003&&(_0x1b7003[_0x247806(0x37d)]=_0x1d8685);}function _0x452af2(_0x4365ee,_0x220b39){const _0x385630=_0x9268c,{fieldId:_0x5b3cd8,oldArea:_0x3c792c,area:_0x50af85,oldIndex:_0x139f16,index:_0x1cf477}=_0x220b39,_0x5e64d1=_0x3c792c!==_0x1d148a['PivotTableFiledAreaEnum'][_0x385630(0x3c2)]&&_0x50af85===_0x1d148a['PivotTableFiledAreaEnum'][_0x385630(0x3c2)],_0x4630d6=_0x3c792c===_0x1d148a[_0x385630(0x2ed)][_0x385630(0x3c2)]&&_0x50af85!==_0x1d148a[_0x385630(0x2ed)]['Value'];if(_0x5e64d1||_0x4630d6){const _0x104ebb=_0x1e7392(_0x4365ee,_0x5b3cd8);_0x104ebb&&(_0x5e64d1?(delete _0x4365ee[_0x385630(0x3d8)][_0x5b3cd8],_0x4365ee[_0x385630(0x366)][_0x5b3cd8]=_0x104ebb):(delete _0x4365ee[_0x385630(0x366)][_0x5b3cd8],_0x4365ee[_0x385630(0x3d8)][_0x5b3cd8]=_0x104ebb));}const _0x2c1462=_0x126764(_0x4365ee,_0x3c792c),_0x553184=_0x126764(_0x4365ee,_0x50af85);_0x2c1462[_0x385630(0x16b)](_0x139f16,0x1),_0x553184['splice'](_0x1cf477,0x0,_0x5b3cd8);}function _0x3d1968(_0x51f68d,_0x54fdc8){const _0x1b8c73=_0x9268c,{valuePosition:_0x2bb74b,index:_0x227d3d}=_0x54fdc8;_0x51f68d[_0x1b8c73(0x2fe)]=_0x2bb74b,_0x51f68d['valueIndex']=_0x227d3d;}function _0xfa7f8a(_0x2e2cb7,_0x101da4){const _0x4ba8d0=_0x9268c,{tableFieldId:_0x178f1e,sourceName:_0x4f3c67,dataFieldId:_0xa4081a}=_0x101da4,_0x370944=_0x1e7392(_0x2e2cb7,_0x178f1e);_0x370944&&(_0x370944[_0x4ba8d0(0x29b)]=_0x4f3c67,_0x370944[_0x4ba8d0(0x3af)]=_0xa4081a);}function _0xc7cb8e(_0x1ac067,_0x48c8e7){const _0x152136=_0x9268c,{fieldId:_0x3fd364,sortInfo:_0x47763e}=_0x48c8e7,_0x29f2b0=_0x1e7392(_0x1ac067,_0x3fd364);_0x29f2b0&&(_0x29f2b0[_0x152136(0x44a)]=_0x47763e);}function _0x39a06e(_0x55b7a0,_0x920b7a){const _0x59ee13=_0x9268c,{options:_0x4466a0}=_0x920b7a;_0x55b7a0[_0x59ee13(0x1b1)]={..._0x55b7a0['options'],..._0x4466a0};}const _0x56c11b={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':_0x9268c(0x212),'handler'(_0x3e3b29,_0x1b3a15){const _0xb4b9d4=_0x9268c;if(!_0x1b3a15)return!0x1;if(!!_0x3e3b29['get'](_0x475d1b[_0xb4b9d4(0x260)])[_0xb4b9d4(0x32b)](_0x1bd950))return!0x0;const _0x3248e3=_0x3e3b29[_0xb4b9d4(0x3bb)](_0x29b926[_0xb4b9d4(0x420)]),{pivotTableId:_0x4d75e9,fieldJson:_0x133b26,area:_0x39ed5c,index:_0x416805,unitId:_0xd99510,subUnitId:_0x165933}=_0x1b3a15,_0xcbac80=_0x3248e3[_0xb4b9d4(0x289)](_0x4d75e9);if(!_0xcbac80)return!0x1;let _0x5dae3f;_0x39ed5c===_0x1d148a['PivotTableFiledAreaEnum'][_0xb4b9d4(0x3c2)]?_0x5dae3f=_0x1d148a['createValueField'](_0x133b26):_0x5dae3f=_0x1d148a[_0xb4b9d4(0x41e)](_0x133b26),_0xcbac80[_0xb4b9d4(0x426)](_0x5dae3f,_0x39ed5c,_0x416805);const _0xb9b77c=_0x3248e3['getPivotTableModelConfig'](_0xd99510,_0x165933,_0x4d75e9);_0x9452c7(_0xb9b77c,_0x1b3a15);const _0x45fb5f=_0x3248e3[_0xb4b9d4(0x346)](_0xd99510,_0x165933,_0x4d75e9);return _0x3248e3[_0xb4b9d4(0x387)]({'unitId':_0xd99510,'subUnitId':_0x165933,'token':_0x4d75e9,'type':_0x94aa6e['Set'],'pivotConfig':_0x45fb5f}),!0x0;}},_0x171424={'type':_0x475d1b[_0x9268c(0x15f)]['MUTATION'],'id':_0x9268c(0x355),'handler'(_0x1ae86a,_0xdad9a6){const _0xb8e4e2=_0x9268c;if(!_0xdad9a6)return!0x1;if(!!_0x1ae86a[_0xb8e4e2(0x3bb)](_0x475d1b[_0xb8e4e2(0x260)])[_0xb8e4e2(0x32b)](_0x1bd950))return!0x0;const _0x3e3e4b=_0x1ae86a['get'](_0x29b926[_0xb8e4e2(0x420)]),{pivotTableId:_0x452a19,fieldId:_0x4fa1f7,unitId:_0x2d0566,subUnitId:_0x50c808}=_0xdad9a6,_0x27399a=_0x3e3e4b['getPivotTableInstance'](_0x452a19);if(!_0x27399a)return!0x1;_0x27399a['removeField'](_0x4fa1f7);const _0x1ca99e=_0x3e3e4b['getPivotTableModelConfig'](_0x2d0566,_0x50c808,_0x452a19);_0x4ec487(_0x1ca99e,_0xdad9a6);const _0x54d253=_0x3e3e4b[_0xb8e4e2(0x346)](_0x2d0566,_0x50c808,_0x452a19);return _0x3e3e4b[_0xb8e4e2(0x387)]({'unitId':_0x2d0566,'subUnitId':_0x50c808,'token':_0x452a19,'type':_0x94aa6e[_0xb8e4e2(0x381)],'pivotConfig':_0x54d253}),!0x0;}},_0xb9bf76={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':'sheet.mutation.rename-pivot-field','handler'(_0x1e16dc,_0x59a1eb){const _0x1f015f=_0x9268c;if(!_0x59a1eb)return!0x1;if(!!_0x1e16dc[_0x1f015f(0x3bb)](_0x475d1b[_0x1f015f(0x260)])[_0x1f015f(0x32b)](_0x1bd950))return!0x0;const _0x401980=_0x1e16dc[_0x1f015f(0x3bb)](_0x29b926[_0x1f015f(0x420)]),{unitId:_0x2d0863,subUnitId:_0x286800,pivotTableId:_0x45c853,fieldId:_0x5d046d,name:_0x223018}=_0x59a1eb,_0x39ef52=_0x401980['getPivotTableInstance'](_0x45c853);if(!_0x39ef52)return!0x1;_0x39ef52['renameField'](_0x5d046d,_0x223018);const _0x947761=_0x401980[_0x1f015f(0x327)](_0x2d0863,_0x286800,_0x45c853);return _0x3b0e44(_0x947761,_0x59a1eb),_0x401980[_0x1f015f(0x387)]({'unitId':_0x2d0863,'subUnitId':_0x286800,'token':_0x45c853,'type':_0x94aa6e[_0x1f015f(0x381)]}),!0x0;}},_0x5f0a5e={'type':_0x475d1b['CommandType']['MUTATION'],'id':_0x9268c(0x3ef),'handler'(_0x376527,_0x1baf73){const _0x586d50=_0x9268c;if(!_0x1baf73)return!0x1;if(!!_0x376527['get'](_0x475d1b[_0x586d50(0x260)])['getConfig'](_0x1bd950))return!0x0;const _0x45c659=_0x376527[_0x586d50(0x3bb)](_0x29b926['SheetsPivotDataSourceModel']),{unitId:_0x1dbe99,subUnitId:_0x389ea5,pivotTableId:_0x5e6fc9,fieldId:_0x20d7c8,collapse:_0x363351,item:_0x84d1ad}=_0x1baf73,_0x1e43d7=_0x45c659[_0x586d50(0x289)](_0x5e6fc9);if(!_0x1e43d7)return!0x1;_0x1e43d7[_0x586d50(0x244)](_0x20d7c8,_0x363351,_0x84d1ad);const _0x486b12=_0x45c659[_0x586d50(0x327)](_0x1dbe99,_0x389ea5,_0x5e6fc9);return _0x30730b(_0x486b12,_0x1baf73),_0x45c659[_0x586d50(0x387)]({'unitId':_0x1dbe99,'subUnitId':_0x389ea5,'token':_0x5e6fc9,'type':_0x94aa6e[_0x586d50(0x381)]}),!0x0;}},_0x2def0f={'type':_0x475d1b['CommandType'][_0x9268c(0x23e)],'id':_0x9268c(0x36c),'handler'(_0x3bdde7,_0x3a427c){const _0x4641c6=_0x9268c;if(!_0x3a427c)return!0x1;if(!!_0x3bdde7[_0x4641c6(0x3bb)](_0x475d1b['IConfigService'])[_0x4641c6(0x32b)](_0x1bd950))return!0x0;const _0x4c55fe=_0x3bdde7['get'](_0x29b926[_0x4641c6(0x420)]),{unitId:_0x1a6c82,subUnitId:_0x203ade,pivotTableId:_0x25f5aa,fieldId:_0x2dcd54,format:_0x367840}=_0x3a427c,_0x5d03c2=_0x4c55fe[_0x4641c6(0x289)](_0x25f5aa);if(!_0x5d03c2)return!0x1;_0x5d03c2[_0x4641c6(0x412)](_0x2dcd54,_0x367840);const _0x586051=_0x4c55fe[_0x4641c6(0x327)](_0x1a6c82,_0x203ade,_0x25f5aa);return _0x28b762(_0x586051,_0x3a427c),_0x4c55fe[_0x4641c6(0x387)]({'unitId':_0x1a6c82,'subUnitId':_0x203ade,'token':_0x25f5aa,'type':_0x94aa6e[_0x4641c6(0x381)]}),!0x0;}},_0x13719d={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':'sheet.mutation.set-pivot-filter','handler'(_0x4dee20,_0x14b802){const _0x35df0e=_0x9268c;if(!_0x14b802)return!0x1;if(!!_0x4dee20['get'](_0x475d1b['IConfigService'])[_0x35df0e(0x32b)](_0x1bd950))return!0x0;const _0x4a3c28=_0x4dee20[_0x35df0e(0x3bb)](_0x29b926[_0x35df0e(0x420)]),{unitId:_0x4deff2,subUnitId:_0x2a291f,pivotTableId:_0x25db2d,fieldId:_0x671bce,filterInfo:_0x4a4813}=_0x14b802,_0x3d81cc=_0x4a3c28[_0x35df0e(0x289)](_0x25db2d);if(!_0x3d81cc)return!0x1;_0x3d81cc[_0x35df0e(0x2eb)](_0x671bce,_0x4a4813);const _0x1755a7=_0x4a3c28['getPivotTableModelConfig'](_0x4deff2,_0x2a291f,_0x25db2d);return _0x5b29dd(_0x1755a7,_0x14b802),_0x4a3c28['addDirtyPivotTable']({'unitId':_0x4deff2,'subUnitId':_0x2a291f,'token':_0x25db2d,'type':_0x94aa6e[_0x35df0e(0x381)]}),!0x0;}},_0x50d5f1={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':_0x9268c(0x1e3),'handler'(_0x54c600,_0x2bfa2b){const _0x6a590b=_0x9268c;if(!_0x2bfa2b)return!0x1;if(!!_0x54c600[_0x6a590b(0x3bb)](_0x475d1b[_0x6a590b(0x260)])[_0x6a590b(0x32b)](_0x1bd950))return!0x0;const _0x5055cb=_0x54c600[_0x6a590b(0x3bb)](_0x29b926[_0x6a590b(0x420)]),{unitId:_0x1b9918,subUnitId:_0x590046,pivotTableId:_0x11546a,options:_0x3882a0}=_0x2bfa2b,_0xd1c996=_0x5055cb['getPivotTableInstance'](_0x11546a);if(!_0xd1c996)return!0x1;_0xd1c996['setOptions'](_0x3882a0);const _0x3e757b=_0x5055cb[_0x6a590b(0x327)](_0x1b9918,_0x590046,_0x11546a);return _0x39a06e(_0x3e757b,_0x2bfa2b),_0x5055cb[_0x6a590b(0x387)]({'unitId':_0x1b9918,'subUnitId':_0x590046,'token':_0x11546a,'type':_0x94aa6e[_0x6a590b(0x381)]}),!0x0;}},_0x3e0bbd={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0x19abe5,_0xb98e5c){const _0x14c95a=_0x9268c;if(!_0xb98e5c)return!0x1;if(!!_0x19abe5[_0x14c95a(0x3bb)](_0x475d1b['IConfigService'])[_0x14c95a(0x32b)](_0x1bd950))return!0x0;const _0x4210cc=_0x19abe5[_0x14c95a(0x3bb)](_0x29b926['SheetsPivotDataSourceModel']),{unitId:_0x1ca82a,subUnitId:_0xeeadc8,pivotTableId:_0x1c54e6,sortInfo:_0x1b73d2,fieldId:_0x5997f6}=_0xb98e5c,_0x4b5235=_0x4210cc[_0x14c95a(0x289)](_0x1c54e6);if(!_0x4b5235)return!0x1;_0x4b5235[_0x14c95a(0x367)](_0x5997f6,_0x1b73d2);const _0x359c10=_0x4210cc[_0x14c95a(0x327)](_0x1ca82a,_0xeeadc8,_0x1c54e6);return _0xc7cb8e(_0x359c10,_0xb98e5c),_0x4210cc[_0x14c95a(0x387)]({'unitId':_0x1ca82a,'subUnitId':_0xeeadc8,'token':_0x1c54e6,'type':_0x94aa6e[_0x14c95a(0x381)]}),!0x0;}},_0x2b2f10={'type':_0x475d1b['CommandType'][_0x9268c(0x23e)],'id':_0x9268c(0x348),'handler'(_0x394789,_0x174f61){const _0x3321c9=_0x9268c;if(!_0x174f61)return!0x1;if(!!_0x394789['get'](_0x475d1b['IConfigService'])[_0x3321c9(0x32b)](_0x1bd950))return!0x0;const _0x235bfa=_0x394789[_0x3321c9(0x3bb)](_0x29b926[_0x3321c9(0x420)]),{unitId:_0x577cd0,subUnitId:_0x16646c,pivotTableId:_0x4dfdca,fieldId:_0x4138f6,subtotalType:_0xdf56ba}=_0x174f61,_0x2ea331=_0x235bfa['getPivotTableInstance'](_0x4dfdca);if(!_0x2ea331)return!0x1;_0x2ea331[_0x3321c9(0x273)](_0x4138f6,_0xdf56ba);const _0xbf3e6e=_0x235bfa['getPivotTableModelConfig'](_0x577cd0,_0x16646c,_0x4dfdca);return _0x5415a6(_0xbf3e6e,_0x174f61),_0x235bfa['addDirtyPivotTable']({'unitId':_0x577cd0,'subUnitId':_0x16646c,'token':_0x4dfdca,'type':_0x94aa6e['Set']}),!0x0;}},_0x5dda94={'type':_0x475d1b['CommandType'][_0x9268c(0x23e)],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x5a202f,_0x55b927){const _0x33dda9=_0x9268c;if(!_0x55b927)return!0x1;if(!!_0x5a202f[_0x33dda9(0x3bb)](_0x475d1b['IConfigService'])['getConfig'](_0x1bd950))return!0x0;const _0x27d0f6=_0x5a202f['get'](_0x29b926['SheetsPivotDataSourceModel']),{unitId:_0x35a80c,subUnitId:_0x33b164,pivotTableId:_0xed6541,fieldId:_0x109cca,filterInfo:_0x46db45}=_0x55b927,_0x59a3af=_0x27d0f6['getPivotTableInstance'](_0xed6541);if(!_0x59a3af)return!0x1;_0x59a3af[_0x33dda9(0x2b6)](_0x109cca,_0x46db45);const _0x1bb1ae=_0x27d0f6['getPivotTableModelConfig'](_0x35a80c,_0x33b164,_0xed6541);return _0x451eae(_0x1bb1ae,_0x55b927),_0x27d0f6[_0x33dda9(0x387)]({'unitId':_0x35a80c,'subUnitId':_0x33b164,'token':_0xed6541,'type':_0x94aa6e[_0x33dda9(0x381)]}),!0x0;}},_0x170a7e={'type':_0x475d1b['CommandType'][_0x9268c(0x23e)],'id':_0x9268c(0x469),'handler'(_0x130e82,_0x349597){const _0x21d2a1=_0x9268c;if(!_0x349597)return!0x1;if(!!_0x130e82[_0x21d2a1(0x3bb)](_0x475d1b[_0x21d2a1(0x260)])[_0x21d2a1(0x32b)](_0x1bd950))return!0x0;const _0x5dc36c=_0x130e82[_0x21d2a1(0x3bb)](_0x29b926[_0x21d2a1(0x420)]),{unitId:_0x3d9a5d,subUnitId:_0x447243,pivotTableId:_0x4b1370,area:_0xe084e6,index:_0x56b89e,fieldId:_0x2692f1}=_0x349597,_0x3427ed=_0x5dc36c[_0x21d2a1(0x289)](_0x4b1370);if(!_0x3427ed)return!0x1;_0x3427ed['updateFieldPosition'](_0x2692f1,_0xe084e6,_0x56b89e);const _0xaf6bc2=_0x5dc36c['getPivotTableModelConfig'](_0x3d9a5d,_0x447243,_0x4b1370);return _0x452af2(_0xaf6bc2,_0x349597),_0x5dc36c[_0x21d2a1(0x387)]({'unitId':_0x3d9a5d,'subUnitId':_0x447243,'token':_0x4b1370,'type':_0x94aa6e['Set']}),!0x0;}},_0x2703fc={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':_0x9268c(0x45c),'handler'(_0x1b4cd4,_0x4f123e){const _0x258b68=_0x9268c;if(!_0x4f123e)return!0x1;if(!!_0x1b4cd4['get'](_0x475d1b[_0x258b68(0x260)])[_0x258b68(0x32b)](_0x1bd950))return!0x0;const _0x8b32db=_0x1b4cd4[_0x258b68(0x3bb)](_0x29b926[_0x258b68(0x420)]),{unitId:_0x5e4678,subUnitId:_0x5a77da,pivotTableId:_0xe327c4,sourceName:_0x5af0ac,dataFieldId:_0x157ecc,tableFieldId:_0x1ea0be}=_0x4f123e,_0x4673ec=_0x8b32db[_0x258b68(0x289)](_0xe327c4);if(!_0x4673ec)return!0x1;_0x4673ec[_0x258b68(0x32f)](_0x1ea0be,_0x5af0ac,_0x157ecc);const _0x3fef8e=_0x8b32db[_0x258b68(0x327)](_0x5e4678,_0x5a77da,_0xe327c4);return _0xfa7f8a(_0x3fef8e,_0x4f123e),_0x8b32db[_0x258b68(0x387)]({'unitId':_0x5e4678,'subUnitId':_0x5a77da,'token':_0xe327c4,'type':_0x94aa6e['Set']}),!0x0;}},_0xab0afc={'type':_0x475d1b[_0x9268c(0x15f)]['MUTATION'],'id':_0x9268c(0x36b),'handler'(_0x5c4aa4,_0x5a9ede){const _0x35094f=_0x9268c;if(!_0x5a9ede)return!0x1;if(!!_0x5c4aa4[_0x35094f(0x3bb)](_0x475d1b[_0x35094f(0x260)])['getConfig'](_0x1bd950))return!0x0;const _0xb78708=_0x5c4aa4[_0x35094f(0x3bb)](_0x29b926[_0x35094f(0x420)]),{unitId:_0x16fbf9,subUnitId:_0x3a9d12,pivotTableId:_0x4b4c6c,valuePosition:_0x4bdc0f,index:_0x131de8}=_0x5a9ede,_0x51af77=_0xb78708[_0x35094f(0x289)](_0x4b4c6c);if(!_0x51af77)return!0x1;_0x51af77[_0x35094f(0x1fa)](_0x4bdc0f,_0x131de8);const _0x20eb3c=_0xb78708[_0x35094f(0x327)](_0x16fbf9,_0x3a9d12,_0x4b4c6c);return _0x3d1968(_0x20eb3c,_0x5a9ede),_0xb78708[_0x35094f(0x387)]({'unitId':_0x16fbf9,'subUnitId':_0x3a9d12,'token':_0x4b4c6c,'type':_0x94aa6e[_0x35094f(0x381)]}),!0x0;}};function _0x44fef9(_0x1d081e,_0x39c32d,_0x5d9896){const _0x27da37=_0x9268c,{pivotTableId:_0x32342d,unitId:_0x5843cf,subUnitId:_0x4e3082}=_0x39c32d,_0x3d97c5=[],_0x5a2873=[];for(const _0x5dd7c2 of _0x5d9896)switch(_0x5dd7c2[_0x27da37(0x436)]){case _0x1d148a[_0x27da37(0x42c)][_0x27da37(0x198)]:{const {fieldJson:_0x17672c,area:_0x1c8762,index:_0x49c2bf}=_0x5dd7c2,_0x1cee76={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldJson':_0x17672c,'area':_0x1c8762,'index':_0x49c2bf},_0x40a32e={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x17672c['id'],'area':_0x1c8762,'index':_0x49c2bf};_0x3d97c5['push']({'id':_0x56c11b['id'],'params':_0x1cee76}),_0x5a2873[_0x27da37(0x3f0)]({'id':_0x171424['id'],'params':_0x40a32e});}break;case _0x1d148a[_0x27da37(0x42c)][_0x27da37(0x2ea)]:{const {fieldId:_0x346615,newSubtotalType:_0x55c53b,oldSubtotalType:_0x193228}=_0x5dd7c2,_0x356036={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x346615,'subtotalType':_0x55c53b};_0x3d97c5[_0x27da37(0x17b)]({'id':_0x2b2f10['id'],'params':_0x356036});const _0x5a15dd={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x346615,'subtotalType':_0x193228};_0x5a2873['unshift']({'id':_0x2b2f10['id'],'params':_0x5a15dd});}break;case _0x1d148a[_0x27da37(0x42c)][_0x27da37(0x330)]:{const {fieldId:_0x39d059,fieldJson:_0x257aae,area:_0x32968a,index:_0x56729e}=_0x5dd7c2,_0x3353c5={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x39d059,'index':_0x56729e,'area':_0x32968a};_0x3d97c5[_0x27da37(0x17b)]({'id':_0x171424['id'],'params':_0x3353c5});const _0x2a9dd0={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldJson':_0x257aae,'area':_0x32968a,'index':_0x56729e};_0x5a2873[_0x27da37(0x3f0)]({'id':_0x56c11b['id'],'params':_0x2a9dd0});}break;case _0x1d148a[_0x27da37(0x42c)][_0x27da37(0x3b1)]:{const {fieldId:_0x1a99dc,oldName:_0xb7f44e,newName:_0x45d771}=_0x5dd7c2,_0x1fbc35={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x1a99dc,'name':_0x45d771};_0x3d97c5[_0x27da37(0x17b)]({'id':_0xb9bf76['id'],'params':_0x1fbc35});const _0x1360fa={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x1a99dc,'name':_0xb7f44e};_0x5a2873['unshift']({'id':_0xb9bf76['id'],'params':_0x1360fa});}break;case _0x1d148a['PivotTableChangeTypeEnum']['SetFilterInfo']:{const {fieldId:_0x32c6a8,oldFilterInfo:_0x3fae35,newFilterInfo:_0x3c7b13}=_0x5dd7c2,_0xb5b036={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x32c6a8,'filterInfo':_0x3c7b13};_0x3d97c5[_0x27da37(0x17b)]({'id':_0x13719d['id'],'params':_0xb5b036});const _0xd4ddf5={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x32c6a8,'filterInfo':_0x3fae35};_0x5a2873[_0x27da37(0x3f0)]({'id':_0x13719d['id'],'params':_0xd4ddf5});}break;case _0x1d148a['PivotTableChangeTypeEnum']['SetSortInfo']:{const {fieldId:_0x64c22f,oldSortInfo:_0x3771c7,newSortInfo:_0x282d1a}=_0x5dd7c2,_0x34844b={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x64c22f,'sortInfo':_0x282d1a};_0x3d97c5['push']({'id':_0x3e0bbd['id'],'params':_0x34844b});const _0x5ec875={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x64c22f,'sortInfo':_0x3771c7};_0x5a2873[_0x27da37(0x3f0)]({'id':_0x3e0bbd['id'],'params':_0x5ec875});}break;case _0x1d148a[_0x27da37(0x42c)][_0x27da37(0x3b3)]:{const {oldOptions:_0x3bbbac,newOptions:_0x4bcb2a}=_0x5dd7c2,_0x230413={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'options':_0x4bcb2a};_0x3d97c5[_0x27da37(0x17b)]({'id':_0x50d5f1['id'],'params':_0x230413});const _0x1a50a3={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'options':_0x3bbbac};_0x5a2873[_0x27da37(0x3f0)]({'id':_0x50d5f1['id'],'params':_0x1a50a3});}break;case _0x1d148a[_0x27da37(0x42c)]['UpdateFieldPosition']:{const {oldArea:_0x5ae9e0,newArea:_0x543ec1,oldIndex:_0x5e3ad9,newIndex:_0x392e0a,fieldId:_0x3d01f1}=_0x5dd7c2,_0x845102={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x3d01f1,'area':_0x543ec1,'index':_0x392e0a,'oldArea':_0x5ae9e0,'oldIndex':_0x5e3ad9};_0x3d97c5[_0x27da37(0x17b)]({'id':_0x170a7e['id'],'params':_0x845102});const _0x3bf056={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x3d01f1,'area':_0x5ae9e0,'index':_0x5e3ad9,'oldArea':_0x543ec1,'oldIndex':_0x392e0a};_0x5a2873[_0x27da37(0x3f0)]({'id':_0x170a7e['id'],'params':_0x3bf056});}break;case _0x1d148a[_0x27da37(0x42c)]['UpdateValuePosition']:{const {oldValuePosition:_0x86a443,newValuePosition:_0x4a2704,oldIndex:_0x1a643a,newIndex:_0x441a3c}=_0x5dd7c2,_0x18d6d0={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'valuePosition':_0x4a2704,'index':_0x441a3c};_0x3d97c5['push']({'id':_0xab0afc['id'],'params':_0x18d6d0});const _0x1c9e93={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'valuePosition':_0x86a443,'index':_0x1a643a};_0x5a2873['unshift']({'id':_0xab0afc['id'],'params':_0x1c9e93});}break;case _0x1d148a[_0x27da37(0x42c)][_0x27da37(0x209)]:{const {fieldId:_0x59b277,collapse:_0x231d0d,item:_0x204a41}=_0x5dd7c2,_0x32d444={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x59b277,'collapse':_0x231d0d,'item':_0x204a41};_0x3d97c5[_0x27da37(0x17b)]({'id':_0x5f0a5e['id'],'params':_0x32d444});const _0xe7bca3={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x59b277,'collapse':!_0x231d0d,'item':_0x204a41};_0x5a2873[_0x27da37(0x3f0)]({'id':_0x5f0a5e['id'],'params':_0xe7bca3});}break;case _0x1d148a[_0x27da37(0x42c)][_0x27da37(0x3ae)]:{const {newFormat:_0x3fa1fa,oldFormat:_0x52331a,fieldId:_0x26f932}=_0x5dd7c2,_0x294281={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x26f932,'format':_0x3fa1fa};_0x3d97c5[_0x27da37(0x17b)]({'id':_0x2def0f['id'],'params':_0x294281});const _0x37238b={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0x26f932,'format':_0x52331a};_0x5a2873[_0x27da37(0x3f0)]({'id':_0x2def0f['id'],'params':_0x37238b});}break;case _0x1d148a[_0x27da37(0x42c)]['UpdateSource']:{const {tableFieldId:_0x3c0fe8,oldSourceName:_0x10df21,newSourceName:_0x3bffd8,oldDataFieldId:_0x5ad9f3,newDataFieldId:_0x2ce44b}=_0x5dd7c2,_0x39dbd7={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'tableFieldId':_0x3c0fe8,'sourceName':_0x3bffd8,'dataFieldId':_0x2ce44b};_0x3d97c5[_0x27da37(0x17b)]({'id':_0x2703fc['id'],'params':_0x39dbd7});const _0x43aa8e={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'tableFieldId':_0x3c0fe8,'sourceName':_0x10df21,'dataFieldId':_0x5ad9f3};_0x5a2873[_0x27da37(0x3f0)]({'id':_0x2703fc['id'],'params':_0x43aa8e});}break;case _0x1d148a[_0x27da37(0x42c)][_0x27da37(0x31f)]:{const {fieldId:_0xfc9c57,filterInfo:_0x243dd7,oldFilterInfo:_0x18198d}=_0x5dd7c2,_0xcbc5b8={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0xfc9c57,'filterInfo':_0x243dd7};_0x3d97c5[_0x27da37(0x17b)]({'id':_0x5dda94['id'],'params':_0xcbc5b8});const _0x45b6c5={'unitId':_0x5843cf,'subUnitId':_0x4e3082,'pivotTableId':_0x32342d,'fieldId':_0xfc9c57,'filterInfo':_0x18198d};_0x5a2873[_0x27da37(0x3f0)]({'id':_0x5dda94['id'],'params':_0x45b6c5});}}return{'redos':_0x3d97c5,'undos':_0x5a2873};}function _0x51d5b7(_0x2fed2f,_0x1c33b9){const _0x4b4a64=_0x9268c;var _0x45ff85;const _0x466921=_0x2fed2f[_0x4b4a64(0x3bb)](_0x29b926['SheetsPivotTableService']),{cellInfo:_0x4e3430,view:_0x5b4b64,isEmpty:_0xc0ce03}=_0x1c33b9;return(_0x45ff85=_0x466921[_0x4b4a64(0x311)][_0x4b4a64(0x206)](_0x79d632)(_0x1de6dd,{'cellInfo':_0x4e3430,'view':_0x5b4b64,'isEmpty':_0xc0ce03}))!=null?_0x45ff85:_0x1de6dd;}const _0x32d1ec=()=>typeof process<'u'&&process[_0x9268c(0x382)]!=null&&process[_0x9268c(0x382)]['node']!=null,_0x2288ec={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':_0x9268c(0x44c),'handler'(_0xcc92b9,_0x52b9b4){const _0x3829c6=_0x9268c;var _0x800744;if(!_0x52b9b4)return!0x1;const _0x350ce9=_0xcc92b9[_0x3829c6(0x3bb)](_0x475d1b[_0x3829c6(0x260)]);if(!!_0x350ce9['getConfig'](_0x1bd950))return!0x0;const _0x2b907d=_0xcc92b9[_0x3829c6(0x3bb)](_0x475d1b[_0x3829c6(0x261)]),_0x2353ac=_0xcc92b9[_0x3829c6(0x3bb)](_0x29b926[_0x3829c6(0x420)]),{pivotTableId:_0x3a825a,pivotTableConfig:_0xf9211,collectionConfig:_0x40d315,unitId:_0x1aa1ec,subUnitId:_0x4ca4c0}=_0x52b9b4,{sourceRangeInfo:_0x5cdd3d,fieldsConfig:_0x6ae1b1,targetCellInfo:_0x5cf7a1}=_0xf9211,_0x13f531=_0x2b907d['getUnit'](_0x1aa1ec);if(!_0x13f531||!_0x13f531[_0x3829c6(0x171)](_0x4ca4c0))return!0x1;if(!_0x32d1ec()){let _0x38f71a=0x0;_0x13f531['getSheets']()[_0x3829c6(0x3df)](_0x26a22c=>{const _0x2eb476=_0x3829c6;var _0x418a3f,_0x77acd;_0x38f71a+=(_0x77acd=(_0x418a3f=_0x2353ac['getSubUnitPivotConfigs'](_0x1aa1ec,_0x26a22c[_0x2eb476(0x3e2)]()))==null?void 0x0:_0x418a3f['size'])!=null?_0x77acd:0x0;});const _0x485547=(_0x800744=_0x350ce9[_0x3829c6(0x32b)](_0x474209[_0x3829c6(0x2b5)]))!=null?_0x800744:{},{ls:_0x21f149,pbk:_0x214988}=_0x485547;if(!_0x30b5d9(_0x21f149,_0x214988))throw new _0x475d1b[(_0x3829c6(0x3ee))]('limit\x20pivot');const _0x202d0f=_0x406235(_0x41ce1b,_0x21f149,_0x214988)[_0x3829c6(0x34e)];if(_0x38f71a>=_0x202d0f)throw new _0x475d1b['CustomCommandExecutionError'](_0x3829c6(0x200));}if(!_0x40d315||!_0x6ae1b1)return!0x1;const {collection:_0x8d9600,updateDataFieldList:_0x4f5559}=_0x2353ac['addCollectionByJSON'](_0x3a825a,_0x40d315,_0x5cdd3d,_0x5cf7a1);_0x2353ac[_0x3829c6(0x168)](_0x8d9600,_0x4f5559,_0x5cdd3d);const _0x2e854c=new _0x1d148a[(_0x3829c6(0x205))](_0x8d9600,void 0x0,_0x3a825a);_0x2e854c[_0x3829c6(0x20e)](_0x6ae1b1);const _0x1a1db3=JSON['parse'](JSON['stringify'](_0xf9211));return _0x2353ac[_0x3829c6(0x15b)](_0x1aa1ec,_0x4ca4c0,_0x3a825a,_0x2e854c,_0x1a1db3),_0x2353ac[_0x3829c6(0x387)]({'unitId':_0x1aa1ec,'subUnitId':_0x4ca4c0,'token':_0x3a825a,'type':_0x94aa6e[_0x3829c6(0x332)],'pivotConfig':_0x1a1db3}),!0x0;}},_0x5a8bef={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':_0x9268c(0x3b5),'handler'(_0x293b80,_0x560f70){const _0x2644a2=_0x9268c;if(!_0x560f70)return!0x1;if(!!_0x293b80[_0x2644a2(0x3bb)](_0x475d1b[_0x2644a2(0x260)])[_0x2644a2(0x32b)](_0x1bd950))return!0x0;const {pivotTableId:_0x57acd9,unitId:_0x4813c2,subUnitId:_0x5d137f}=_0x560f70,_0x36cee2=_0x293b80[_0x2644a2(0x3bb)](_0x29b926[_0x2644a2(0x420)]);return _0x36cee2['getPivotTableConfig'](_0x4813c2,_0x5d137f,_0x57acd9)?(_0x36cee2[_0x2644a2(0x387)]({'unitId':_0x4813c2,'subUnitId':_0x5d137f,'token':_0x57acd9,'type':_0x94aa6e['Delete']}),_0x36cee2[_0x2644a2(0x2e5)](_0x4813c2,_0x5d137f,_0x57acd9),!0x0):!0x1;}},_0x3e9757={'type':_0x475d1b['CommandType'][_0x9268c(0x23e)],'id':'sheet.mutation.set-pivot-position','handler'(_0x2b943f,_0x374608){const _0x2443c2=_0x9268c;if(!_0x374608)return!0x1;if(!!_0x2b943f['get'](_0x475d1b[_0x2443c2(0x260)])[_0x2443c2(0x32b)](_0x1bd950))return!0x0;const {pivotTableId:_0x272ea2,targetCellPosition:_0x1ea73b,unitId:_0x166048,subUnitId:_0x139ab5}=_0x374608,_0x2fd493=_0x2b943f[_0x2443c2(0x3bb)](_0x29b926[_0x2443c2(0x420)]);if(!_0x2fd493[_0x2443c2(0x289)](_0x374608[_0x2443c2(0x213)]))return!0x1;const _0x28f4b5=_0x2fd493[_0x2443c2(0x19a)](_0x272ea2);if(!_0x28f4b5)return!0x1;const _0x2c278f=_0x2fd493[_0x2443c2(0x35a)](_0x28f4b5[_0x2443c2(0x329)],_0x374608[_0x2443c2(0x213)]);if(!_0x2c278f)return!0x1;const _0x46dac1=_0x2fd493[_0x2443c2(0x346)](_0x28f4b5[_0x2443c2(0x329)],_0x28f4b5[_0x2443c2(0x1ca)],_0x272ea2);if(!_0x46dac1)return!0x1;const _0x5078da=_0x475d1b[_0x2443c2(0x201)]['deepClone'](_0x46dac1);_0x5078da['targetCellInfo']={'unitId':_0x166048,'subUnitId':_0x139ab5,'row':_0x1ea73b[_0x2443c2(0x18c)],'col':_0x1ea73b[_0x2443c2(0x2b7)]};const _0x1c5c5c=_0x2c278f['toJSON']();if(_0x28f4b5['subUnitId']===_0x139ab5&&_0x28f4b5[_0x2443c2(0x329)]===_0x166048)_0x2fd493[_0x2443c2(0x16e)](_0x166048,_0x139ab5,_0x272ea2,_0x5078da),_0x2fd493[_0x2443c2(0x387)]({'unitId':_0x166048,'subUnitId':_0x139ab5,'token':_0x272ea2,'type':_0x94aa6e[_0x2443c2(0x381)]});else{_0x2fd493['addDirtyPivotTable']({'unitId':_0x28f4b5[_0x2443c2(0x329)],'subUnitId':_0x28f4b5[_0x2443c2(0x1ca)],'token':_0x272ea2,'type':_0x94aa6e[_0x2443c2(0x22e)]}),_0x2fd493['removePivotTable'](_0x28f4b5[_0x2443c2(0x329)],_0x28f4b5[_0x2443c2(0x1ca)],_0x272ea2);const _0x168e94=_0x2fd493[_0x2443c2(0x222)](_0x272ea2,_0x1c5c5c,_0x46dac1[_0x2443c2(0x453)],_0x5078da[_0x2443c2(0x1bf)]),_0x4a74d7=new _0x1d148a[(_0x2443c2(0x205))](_0x168e94[_0x2443c2(0x3ce)],void 0x0,_0x272ea2);_0x4a74d7[_0x2443c2(0x20e)](_0x5078da[_0x2443c2(0x1e6)]),_0x2fd493[_0x2443c2(0x15b)](_0x166048,_0x139ab5,_0x272ea2,_0x4a74d7,_0x5078da),_0x2fd493[_0x2443c2(0x387)]({'unitId':_0x166048,'subUnitId':_0x139ab5,'token':_0x272ea2,'type':_0x94aa6e['Add'],'pivotConfig':_0x5078da});}return!0x0;}},_0x5c08b3={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'id':_0x9268c(0x310),'handler'(_0x416083,_0x15437e){const _0x49b176=_0x9268c;if(!_0x15437e)return!0x1;if(!!_0x416083[_0x49b176(0x3bb)](_0x475d1b['IConfigService'])[_0x49b176(0x32b)](_0x1bd950))return!0x0;const _0x107353=_0x416083['get'](_0x29b926['SheetsPivotDataSourceModel']),{pivotTableId:_0x3ea396,deleteIds:_0x45899,collectionJSON:_0x24ecf5,dataRangeInfo:_0x20d607,unitId:_0x58365e,subUnitId:_0x4c0904}=_0x15437e,_0x3d2a97=_0x107353[_0x49b176(0x289)](_0x3ea396),_0x4b87f5=_0x107353[_0x49b176(0x346)](_0x58365e,_0x4c0904,_0x3ea396);if(!_0x3d2a97||!_0x4b87f5)return!0x1;const {collection:_0x2701b3,updateDataFieldList:_0x538b9a}=_0x107353[_0x49b176(0x222)](_0x3ea396,_0x24ecf5,_0x20d607,_0x4b87f5['targetCellInfo']);_0x107353['refreshData'](_0x2701b3,_0x538b9a,_0x20d607),_0x3d2a97[_0x49b176(0x358)](_0x2701b3);for(const _0x29d66a of _0x45899)_0x107353['removeDataField'](_0x20d607[_0x49b176(0x329)],_0x29d66a);const _0x1e78ba=_0x107353[_0x49b176(0x346)](_0x58365e,_0x4c0904,_0x3ea396);return _0x1e78ba[_0x49b176(0x453)]=JSON[_0x49b176(0x1af)](JSON[_0x49b176(0x172)](_0x20d607)),_0x107353[_0x49b176(0x387)]({'unitId':_0x58365e,'subUnitId':_0x4c0904,'token':_0x3ea396,'type':_0x94aa6e['Set']}),!0x0;}},_0x3a2ea0={'type':_0x475d1b['CommandType']['MUTATION'],'id':_0x9268c(0x2db),'handler'(){return!0x0;}};var _0x400a84=Object[_0x9268c(0x379)],_0x1b3745=(_0x31ec47,_0x16be65,_0x402b9d,_0x33d685)=>{const _0xa6a64=_0x9268c;for(var _0x4c9991=_0x33d685>0x1?void 0x0:_0x33d685?_0x400a84(_0x16be65,_0x402b9d):_0x16be65,_0x5a204a=_0x31ec47[_0xa6a64(0x32d)]-0x1,_0x10638d;_0x5a204a>=0x0;_0x5a204a--)(_0x10638d=_0x31ec47[_0x5a204a])&&(_0x4c9991=_0x10638d(_0x4c9991)||_0x4c9991);return _0x4c9991;},_0x4ec89e=(_0x4fec9b,_0x1de027)=>(_0x1968a9,_0x4f7e31)=>_0x1de027(_0x1968a9,_0x4f7e31,_0x4fec9b);_0x29b926[_0x9268c(0x17d)]=class extends _0x475d1b['Disposable']{constructor(_0x34af08,_0x1a806c){const _0x1d4b22=_0x9268c;super(),_0x346b88(this,_0x1d4b22(0x18d),new Map()),(this['_injector']=_0x34af08,this[_0x1d4b22(0x31d)]=_0x1a806c);}['handleAsyncResponse'](_0x313cbb){const _0x142acf=_0x9268c,{version:_0x54fdf9}=_0x313cbb,_0x18d8a2=this[_0x142acf(0x18d)][_0x142acf(0x3bb)](_0x54fdf9);_0x18d8a2&&(_0x18d8a2(_0x313cbb),this[_0x142acf(0x18d)][_0x142acf(0x37c)](_0x54fdf9));}[_0x9268c(0x288)](_0x1616af){return new Promise((_0x4c0390,_0x1edaac)=>{const _0x292a00=_0x5b70,_0x218a69=this['_generateUniqueVersion']();this[_0x292a00(0x18d)][_0x292a00(0x40a)](_0x218a69,_0x4c0390),this[_0x292a00(0x31d)]['executeCommand'](_0x239074['id'],{'version':_0x218a69,..._0x1616af},{'onlyLocal':!0x0});});}[_0x9268c(0x219)](){const _0x18ffea=_0x9268c;return Math['random']()[_0x18ffea(0x46a)](0x24)[_0x18ffea(0x1a0)](0x2,0x10);}},_0x29b926[_0x9268c(0x17d)]=_0x1b3745([_0x4ec89e(0x0,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x250)])),_0x4ec89e(0x1,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b['ICommandService']))],_0x29b926[_0x9268c(0x17d)]);const _0x4bd734={'id':'sheet.mutation.add-group-collection','type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'handler':(_0x36be70,_0x32480b)=>{const _0x2fa47a=_0x9268c;if(!_0x32480b)return!0x1;if(!!_0x36be70[_0x2fa47a(0x3bb)](_0x475d1b[_0x2fa47a(0x260)])[_0x2fa47a(0x32b)](_0x1bd950))return!0x0;const {pivotTableId:_0x1c091b,fieldJSON:_0x110b26,unitId:_0x1ee06b,subUnitId:_0x2a5d36}=_0x32480b,_0x53ffcb=_0x1d148a[_0x2fa47a(0x2ee)][_0x2fa47a(0x20e)](_0x110b26);if(!_0x53ffcb)return!0x1;const _0x2849de=_0x36be70['get'](_0x29b926['SheetsPivotDataSourceModel']),_0x2f1287=_0x2849de[_0x2fa47a(0x35d)](_0x1ee06b),_0x2dccad=_0x2f1287[_0x2fa47a(0x35a)](_0x1c091b);_0x2f1287[_0x2fa47a(0x1d9)](_0x53ffcb),_0x2dccad[_0x2fa47a(0x426)](_0x53ffcb['getId'](),_0x53ffcb['getName']());const _0x4af9af=_0x2dccad[_0x2fa47a(0x3ec)](_0x53ffcb[_0x2fa47a(0x34f)]());_0x4af9af&&_0x53ffcb[_0x2fa47a(0x455)](_0x4af9af);const _0x44f94=_0x2849de[_0x2fa47a(0x346)](_0x1ee06b,_0x2a5d36,_0x1c091b);return _0x2849de[_0x2fa47a(0x387)]({'unitId':_0x1ee06b,'subUnitId':_0x2a5d36,'token':_0x1c091b,'type':_0x94aa6e['Set'],'pivotConfig':_0x44f94}),!0x0;}},_0x4c2526={'id':_0x9268c(0x2a5),'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'handler':(_0x2ccfed,_0x368a5f)=>{const _0x89eb2f=_0x9268c;if(!_0x368a5f)return!0x1;if(!!_0x2ccfed[_0x89eb2f(0x3bb)](_0x475d1b['IConfigService'])[_0x89eb2f(0x32b)](_0x1bd950))return!0x0;const {pivotTableId:_0xd030c4,dataFieldId:_0x185b9d,unitId:_0x8079f1,subUnitId:_0x478569}=_0x368a5f,_0x333e9b=_0x2ccfed[_0x89eb2f(0x3bb)](_0x29b926['SheetsPivotDataSourceModel']),_0x5487ce=_0x333e9b[_0x89eb2f(0x35d)](_0x8079f1);_0x5487ce['getCollection'](_0xd030c4)[_0x89eb2f(0x190)](_0x185b9d);let _0x3a0a45=!0x0;for(const _0x22036b in _0x5487ce['collections'])if(_0x5487ce[_0x89eb2f(0x3c3)][_0x22036b][_0x89eb2f(0x1ed)]()[_0x89eb2f(0x23b)](_0x185b9d)){_0x3a0a45=!0x1;break;}_0x3a0a45&&_0x5487ce[_0x89eb2f(0x378)](_0x185b9d);const _0x2b4b8d=_0x333e9b[_0x89eb2f(0x346)](_0x8079f1,_0x478569,_0xd030c4);return _0x333e9b[_0x89eb2f(0x387)]({'unitId':_0x8079f1,'subUnitId':_0x478569,'token':_0xd030c4,'type':_0x94aa6e[_0x89eb2f(0x381)],'pivotConfig':_0x2b4b8d}),!0x0;}},_0x3785b0={'type':_0x475d1b[_0x9268c(0x15f)]['COMMAND'],'id':_0x9268c(0x373),async 'handler'(_0x23050d,_0x38e7e8){const _0x687556=_0x9268c;if(!_0x38e7e8)return!0x1;const _0x1839e1=_0x23050d[_0x687556(0x3bb)](_0x475d1b[_0x687556(0x342)]),_0x5b2b7f=_0x23050d['get'](_0x29b926[_0x687556(0x17d)]),_0x38f92e=_0x23050d[_0x687556(0x3bb)](_0x475d1b[_0x687556(0x425)]),{pivotTableId:_0x23720b,dataFieldId:_0x185a39,fieldArea:_0x40f558,index:_0x546fae,unitId:_0x1d3d0b,subUnitId:_0x50eedd}=_0x38e7e8,_0x46706e=(await _0x5b2b7f[_0x687556(0x288)]({'unitId':_0x1d3d0b,'subUnitId':_0x50eedd,'pivotTableId':_0x23720b,'params':{'type':_0x3ca738['AddPivotField'],'addPivotField':{'dataFieldId':_0x185a39,'fieldArea':_0x40f558,'index':_0x546fae}}}))[_0x687556(0x3f8)][_0x687556(0x28d)];if(!_0x46706e)return!0x1;const {view:_0x3aa23a,changesets:_0x375c45,isEmpty:_0x641ee1,pivotTableConfig:_0x5e13aa,shouldBeAddedGroupJSON:_0x2ef87e}=_0x46706e,_0x29b104=_0x5e13aa[_0x687556(0x1bf)],_0x5ca729=new _0x1d148a[(_0x687556(0x442))]();_0x5ca729[_0x687556(0x33d)](_0x3aa23a);const _0x41a46d={'cellInfo':_0x29b104,'view':_0x5ca729,'isEmpty':_0x641ee1};if(!await _0x23050d[_0x687556(0x3bb)](_0x29b926[_0x687556(0x3c8)])['asyncInterceptor'][_0x687556(0x1dd)](_0x3b3162)(!0x0,_0x41a46d))return!0x1;const _0x282f2d=_0x26091e(_0x23050d,_0x5ca729,_0x29b104,_0x641ee1),_0x5d68b2=_0x51d5b7(_0x23050d,_0x41a46d),{undos:_0x3b506f,redos:_0xe36ab8}=_0x44fef9(_0x1839e1,{'pivotTableId':_0x23720b,'unitId':_0x1d3d0b,'subUnitId':_0x50eedd},_0x375c45);return _0x2ef87e&&(_0xe36ab8[_0x687556(0x3f0)]({'id':_0x4bd734['id'],'params':{'pivotTableId':_0x23720b,'fieldJSON':_0x2ef87e,'unitId':_0x1d3d0b,'subUnitId':_0x50eedd}}),_0x3b506f[_0x687556(0x17b)]({'id':_0x4c2526['id'],'params':{'pivotTableId':_0x23720b,'dataFieldId':_0x2ef87e['id'],'unitId':_0x1d3d0b,'subUnitId':_0x50eedd}})),_0x475d1b[_0x687556(0x29e)]([..._0x282f2d[_0x687556(0x30e)],..._0x5d68b2[_0x687556(0x30e)],..._0xe36ab8],_0x1839e1),_0x38f92e[_0x687556(0x1e1)]({'unitID':_0x1d3d0b,'redoMutations':[..._0x282f2d[_0x687556(0x30e)],..._0x5d68b2['redos'],..._0xe36ab8],'undoMutations':[..._0x282f2d[_0x687556(0x1c7)],..._0x5d68b2['undos'],..._0x3b506f]}),!0x0;}},_0x1de490={'type':_0x475d1b[_0x9268c(0x15f)]['COMMAND'],'id':'sheet.command.add-pivot-table-with-config',async 'handler'(_0x33265a,_0x1e83c5){const _0x350b0e=_0x9268c;if(!_0x1e83c5)return!0x1;const {sourceDataInfo:_0x1e3dfb,pivotTableConfig:_0x29752e}=_0x1e83c5;if(!_0x1e3dfb||!_0x29752e)return!0x1;const {unitId:_0x13276f,subUnitId:_0x451775,range:_0x4d79d0}=_0x1e3dfb,_0x194ec5=_0x33265a[_0x350b0e(0x3bb)](_0x475d1b[_0x350b0e(0x261)]),_0xd9967c=_0x33265a[_0x350b0e(0x3bb)](_0x29b926[_0x350b0e(0x17d)]),_0x848da5=_0x33265a[_0x350b0e(0x3bb)](_0x475d1b[_0x350b0e(0x3b7)]),_0x424a9d=_0x33265a['get'](_0x475d1b['ICommandService']),_0x2fd898=_0x194ec5[_0x350b0e(0x3a3)](_0x13276f);if(!_0x2fd898)return!0x1;const _0x10dadf=_0x2fd898['getSheetBySheetId'](_0x451775);if(!_0x10dadf)return!0x1;const _0x2e5c50=_0x1d148a[_0x350b0e(0x448)](0x8),_0x4a1dc3=_0x4d79d0||{'startRow':0x0,'startColumn':0x0,'endRow':_0x10dadf[_0x350b0e(0x418)]()-0x1,'endColumn':_0x10dadf[_0x350b0e(0x2d8)]()-0x1};_0x4a1dc3['rangeType']=_0x475d1b[_0x350b0e(0x444)][_0x350b0e(0x23f)];const _0x29bae1=(await _0xd9967c['getPivotDisplayConfig']({'unitId':_0x13276f,'subUnitId':_0x451775,'pivotTableId':_0x2e5c50,'params':{'type':_0x3ca738[_0x350b0e(0x1cb)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x13276f,'sheetName':_0x10dadf[_0x350b0e(0x231)](),'subUnitId':_0x451775,'range':_0x4a1dc3},'pivotTableId':_0x2e5c50,'pivotTableIndexConfig':_0x29752e}}}))[_0x350b0e(0x3f8)][_0x350b0e(0x363)];if(!_0x29bae1)return!0x1;const {isEmpty:_0x1bf74d,fieldsConfig:_0x3090e9,collectionConfig:_0x3aa331,changesets:_0x3dfff3}=_0x29bae1,_0x205b2f=_0x2fd898[_0x350b0e(0x3d9)]()[_0x350b0e(0x32d)],_0xdda22=_0x475d1b[_0x350b0e(0x463)]({'rowCount':_0x10dadf['getRowCount']()-0x1,'columnCount':_0x10dadf[_0x350b0e(0x2d8)]()-0x1});_0xdda22['id']=_0x475d1b[_0x350b0e(0x1c4)](),_0xdda22[_0x350b0e(0x33f)]=_0x2fd898[_0x350b0e(0x215)](''+_0x848da5['t'](_0x350b0e(0x361)));const _0xa2a21a={'index':_0x205b2f,'sheet':_0xdda22,'unitId':_0x13276f},{redos:_0x4d3fcd}=_0x44fef9(_0x424a9d,{'pivotTableId':_0x2e5c50,'unitId':_0x13276f,'subUnitId':_0xdda22['id']},_0x3dfff3),_0x439605=[{'id':_0x44476f[_0x350b0e(0x1a2)]['id'],'params':_0xa2a21a},{'id':_0x2288ec['id'],'params':{'unitId':_0x13276f,'subUnitId':_0xdda22['id'],'pivotTableId':_0x2e5c50,'pivotTableConfig':{'isEmpty':_0x1bf74d,'fieldsConfig':_0x3090e9,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x13276f,'subUnitId':_0xdda22['id']},'sourceRangeInfo':{'subUnitId':_0x451775,'unitId':_0x13276f,'range':_0x4a1dc3,'sheetName':_0x10dadf[_0x350b0e(0x231)]()}},'collectionConfig':_0x3aa331}},..._0x4d3fcd];return _0x475d1b[_0x350b0e(0x29e)](_0x439605,_0x424a9d),!0x0;}},_0x1e70af={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x360)],'id':_0x9268c(0x3a1),async 'handler'(_0x101a05,_0x4b7c9d){const _0x4cf01b=_0x9268c;var _0x3f22c8,_0x5eb723;const _0x1526d3=_0x101a05['get'](_0x475d1b[_0x4cf01b(0x342)]),_0x41de69=_0x101a05[_0x4cf01b(0x3bb)](_0x475d1b[_0x4cf01b(0x261)]),_0x46f978=_0x101a05[_0x4cf01b(0x3bb)](_0x475d1b[_0x4cf01b(0x3b7)]),_0x5c04df=_0x101a05['get'](_0x29b926[_0x4cf01b(0x17d)]),_0x2d47fe=_0x101a05[_0x4cf01b(0x3bb)](_0x475d1b[_0x4cf01b(0x425)]),_0x3f7584=_0x101a05[_0x4cf01b(0x3bb)](_0x29b926[_0x4cf01b(0x15d)]),_0x177bdb=_0x101a05[_0x4cf01b(0x3bb)](_0x475d1b[_0x4cf01b(0x260)]);if(!_0x4b7c9d)return!0x1;const {pivotTableConfig:_0x9b9f2c,positionType:_0x45aef8}=_0x4b7c9d,{targetCellInfo:_0x44a53b,sourceRangeInfo:_0x53ec3a}=_0x9b9f2c,{unitId:_0x167121,subUnitId:_0xd49a48}=_0x44a53b,_0x4609cf=_0x41de69[_0x4cf01b(0x3a3)](_0x167121);if(!_0x4609cf)return!0x1;let _0x122291=0x0;_0x4609cf['getSheets']()['forEach'](_0x21a751=>{const _0x183c48=_0x4cf01b;var _0x4075d2,_0x549394;_0x122291+=(_0x549394=(_0x4075d2=_0x3f7584['getSubUnitPivotConfigs'](_0x167121,_0x21a751[_0x183c48(0x3e2)]()))==null?void 0x0:_0x4075d2[_0x183c48(0x3d7)])!=null?_0x549394:0x0;});const _0x1ab22e=(_0x3f22c8=_0x177bdb[_0x4cf01b(0x32b)](_0x474209[_0x4cf01b(0x2b5)]))!=null?_0x3f22c8:{},{ls:_0x3826bb,pbk:_0x446a76}=_0x1ab22e;if(!_0x30b5d9(_0x3826bb,_0x446a76))return!0x1;const _0x3fd806=_0x406235(_0x41ce1b,_0x3826bb,_0x446a76)[_0x4cf01b(0x34e)];if(_0x122291>=_0x3fd806)return!0x1;const _0x21a0ee=_0x4b7c9d[_0x4cf01b(0x213)]||_0x1d148a['generateHexNumber'](0x8),_0x39db99=(await _0x5c04df[_0x4cf01b(0x288)]({'unitId':_0x167121,'subUnitId':_0xd49a48,'pivotTableId':_0x21a0ee,'params':{'type':_0x3ca738['AddPivotTable'],'addPivotTable':{'sourceRangeInfo':_0x53ec3a,'pivotTableId':_0x21a0ee}}}))[_0x4cf01b(0x3f8)][_0x4cf01b(0x15b)];if(!_0x39db99)return!0x1;const {view:_0x41b904,isEmpty:_0x5a9001,fieldsConfig:_0x14e6c1,collectionConfig:_0x41b67e}=_0x39db99,_0x10e173=[],_0x5ad7d8=[];if(_0x45aef8===_0xb63b0b[_0x4cf01b(0x1a1)]){const _0x308d86=_0x4609cf[_0x4cf01b(0x3d9)]()[_0x4cf01b(0x32d)],_0x357b0e=_0x475d1b[_0x4cf01b(0x463)]({});_0x357b0e['id']=_0x9b9f2c[_0x4cf01b(0x1bf)][_0x4cf01b(0x1ca)],_0x357b0e['name']=(_0x5eb723=_0x9b9f2c['targetCellInfo'][_0x4cf01b(0x331)])!=null?_0x5eb723:_0x4609cf['generateNewSheetName'](''+_0x46f978['t']('sheets.tabs.sheet'));const _0x3b7d39={'index':_0x308d86,'sheet':_0x357b0e,'unitId':_0x167121},_0x42c171=_0x44476f[_0x4cf01b(0x2ec)](_0x101a05,_0x3b7d39);_0x10e173['push']({'id':_0x44476f[_0x4cf01b(0x253)]['id'],'params':_0x42c171}),_0x5ad7d8[_0x4cf01b(0x17b)]({'id':_0x44476f[_0x4cf01b(0x2a3)]['id'],'params':_0x3b7d39});}else{if(!_0x4609cf['getSheetBySheetId'](_0xd49a48))return!0x1;const _0x5aa8a7=_0x26091e(_0x101a05,new _0x1d148a[(_0x4cf01b(0x442))](),_0x44a53b,!0x0);_0x5ad7d8['push'](..._0x5aa8a7[_0x4cf01b(0x30e)]),_0x10e173[_0x4cf01b(0x17b)](..._0x5aa8a7['undos']);const _0x481d85={'cellInfo':_0x44a53b,'view':_0x41b904,'isEmpty':_0x5a9001};if(!await _0x101a05[_0x4cf01b(0x3bb)](_0x29b926[_0x4cf01b(0x3c8)])[_0x4cf01b(0x3d1)]['fetchThroughAsyncInterceptors'](_0x3b3162)(!0x0,_0x481d85))return!0x1;const _0x4fef90=_0x51d5b7(_0x101a05,_0x481d85);_0x5ad7d8['push'](..._0x4fef90[_0x4cf01b(0x30e)]),_0x10e173[_0x4cf01b(0x17b)](..._0x4fef90[_0x4cf01b(0x1c7)]);}return _0x5ad7d8[_0x4cf01b(0x17b)]({'id':_0x2288ec['id'],'params':{'unitId':_0x44a53b[_0x4cf01b(0x329)],'subUnitId':_0x44a53b[_0x4cf01b(0x1ca)],'pivotTableId':_0x21a0ee,'pivotTableConfig':{'targetCellInfo':_0x44a53b,'sourceRangeInfo':_0x53ec3a,'fieldsConfig':_0x14e6c1},'collectionConfig':_0x41b67e}}),_0x10e173['unshift']({'id':_0x5a8bef['id'],'params':{'unitId':_0x167121,'subUnitId':_0xd49a48,'pivotTableId':_0x21a0ee}}),_0x475d1b[_0x4cf01b(0x29e)](_0x5ad7d8,_0x1526d3)&&_0x2d47fe[_0x4cf01b(0x1e1)]({'unitID':_0x167121,'undoMutations':_0x10e173,'redoMutations':_0x5ad7d8}),!0x0;}},_0xe702fa={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x360)],'id':_0x9268c(0x396),async 'handler'(_0x39b98c,_0x400101){const _0x27e47b=_0x9268c;if(!_0x400101)return!0x1;const _0x37d59=_0x39b98c[_0x27e47b(0x3bb)](_0x475d1b[_0x27e47b(0x342)]),_0x34d7ca=_0x39b98c['get'](_0x29b926[_0x27e47b(0x17d)]),_0x18584a=_0x39b98c[_0x27e47b(0x3bb)](_0x475d1b[_0x27e47b(0x425)]),{pivotTableId:_0x2ddecf,fieldId:_0x349dcc,area:_0xae33b2,index:_0x589e91,unitId:_0x15b879,subUnitId:_0x51d7b2}=_0x400101,_0x191015=(await _0x34d7ca[_0x27e47b(0x288)]({'unitId':_0x15b879,'subUnitId':_0x51d7b2,'pivotTableId':_0x2ddecf,'params':{'type':_0x3ca738['MovePivotField'],'movePivotField':{'fieldId':_0x349dcc,'area':_0xae33b2,'index':_0x589e91}}}))[_0x27e47b(0x3f8)][_0x27e47b(0x30a)];if(!_0x191015)return!0x1;const {changesets:_0x382499,view:_0x1f5c10,isEmpty:_0x2bdd2b,pivotTableConfig:_0x49d1f1}=_0x191015,_0xc42290=_0x49d1f1['targetCellInfo'],_0x2e96df=new _0x1d148a[(_0x27e47b(0x442))]();_0x2e96df[_0x27e47b(0x33d)](_0x1f5c10);const _0x2afffc={'cellInfo':_0xc42290,'view':_0x2e96df,'isEmpty':_0x2bdd2b};if(!await _0x39b98c['get'](_0x29b926[_0x27e47b(0x3c8)])[_0x27e47b(0x3d1)][_0x27e47b(0x1dd)](_0x3b3162)(!0x0,_0x2afffc))return!0x1;const _0x7c7132=_0x26091e(_0x39b98c,_0x2e96df,_0xc42290,_0x2bdd2b),_0x6ab8fb=_0x51d5b7(_0x39b98c,_0x2afffc),{redos:_0x288a5a,undos:_0x33bd68}=_0x44fef9(_0x37d59,{'pivotTableId':_0x2ddecf,'unitId':_0x15b879,'subUnitId':_0x51d7b2},_0x382499);return _0x475d1b[_0x27e47b(0x29e)]([..._0x7c7132[_0x27e47b(0x30e)],..._0x6ab8fb['redos'],..._0x288a5a],_0x37d59),_0x18584a[_0x27e47b(0x1e1)]({'unitID':_0x15b879,'redoMutations':[..._0x7c7132[_0x27e47b(0x30e)],..._0x6ab8fb[_0x27e47b(0x30e)],..._0x288a5a],'undoMutations':[..._0x7c7132[_0x27e47b(0x1c7)],..._0x6ab8fb['undos'],..._0x33bd68]}),!0x0;}},_0xc0f12b={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x360)],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x50a890,_0x11f12e){const _0x492355=_0x9268c;var _0x33ad6c;if(!_0x11f12e)return!0x1;const _0x30b80a=_0x50a890[_0x492355(0x3bb)](_0x475d1b[_0x492355(0x261)]),_0x41f19d=_0x44476f['getSheetCommandTarget'](_0x30b80a);if(!_0x41f19d)return!0x1;const {unitId:_0x36b074,subUnitId:_0x50ab06,workbook:_0x3891b0}=_0x41f19d,{row:_0x49a7e2,col:_0xe1357b}=_0x11f12e,_0x444c55=_0x50a890['get'](_0x29b926[_0x492355(0x317)]),_0x2bc6b6=_0x444c55[_0x492355(0x403)](_0x36b074,_0x50ab06,_0x49a7e2,_0xe1357b);if(!_0x2bc6b6)return!0x1;const _0x361983=(_0x33ad6c=_0x444c55[_0x492355(0x27b)](_0x36b074,_0x50ab06,_0x2bc6b6))==null?void 0x0:_0x33ad6c[_0x492355(0x2b9)];if(!_0x361983)return!0x1;const _0x170545=_0x50a890[_0x492355(0x3bb)](_0x29b926[_0x492355(0x15d)])[_0x492355(0x346)](_0x36b074,_0x50ab06,_0x2bc6b6);if(!_0x170545)return!0x1;const {rowInfo:_0x4190cf,colInfo:_0xfef3cf}=_0x361983,_0x4e445c=_0x4190cf[_0x49a7e2][_0x492355(0x362)],_0x23a1ab=_0xfef3cf[_0xe1357b][_0x492355(0x362)],_0x10a65b=_0x4190cf[_0x49a7e2][_0x492355(0x204)],_0x2906b8=_0xfef3cf[_0xe1357b][_0x492355(0x204)],_0x4f5aa8=_0x4e445c['concat'](_0x23a1ab),_0xb0abf3=_0x170545[_0x492355(0x1e6)][_0x492355(0x3da)]['slice'](0x0,_0x10a65b),_0x42881e=_0x170545[_0x492355(0x1e6)]['columnFields'][_0x492355(0x238)](0x0,_0x2906b8),_0x57e044=_0xb0abf3['concat'](_0x42881e),_0x20d672=_0x4f5aa8['map']((_0x121971,_0x9bd22a)=>[_0x121971,_0x57e044[_0x9bd22a]]),_0x343434=(await _0x50a890[_0x492355(0x3bb)](_0x29b926[_0x492355(0x17d)])[_0x492355(0x288)]({'unitId':_0x36b074,'subUnitId':_0x50ab06,'pivotTableId':_0x2bc6b6,'params':{'type':_0x3ca738[_0x492355(0x2ac)],'drillDown':{'tuple':_0x20d672}}}))[_0x492355(0x3f8)]['drillDown'];if(!_0x343434)return!0x1;const {indexes:_0x3d0ced,range:_0x29e6c1,sourceUnitId:_0x2d4030,sourceSubUnitId:_0x417843,formatMap:_0x564ed8}=_0x343434,{startRow:_0x5d541d,endRow:_0x508b4d,startColumn:_0x2139b9,endColumn:_0x5132a2}=_0x29e6c1,_0x578a86=new _0x475d1b[(_0x492355(0x405))](),_0x4f6c3b=_0x508b4d-_0x5d541d,_0x5e9ee6=_0x5132a2-_0x2139b9,_0x4e7ba4={},_0xcc4318=_0x44476f[_0x492355(0x340)](_0x30b80a,{'unitId':_0x2d4030,'subUnitId':_0x417843});if(!_0xcc4318)return!0x1;const _0x17029d=_0x442467[_0x492355(0x3b2)],_0x2967db=_0x442467[_0x492355(0x211)],_0x90a3c4=_0x442467[_0x492355(0x211)],_0x41a1af=_0x3891b0['getStyles']()[_0x492355(0x316)](_0x17029d),_0x467cc4=_0x3891b0[_0x492355(0x44e)]()[_0x492355(0x316)](_0x2967db),_0x81eb3d=_0x3891b0[_0x492355(0x44e)]()[_0x492355(0x316)](_0x90a3c4),{worksheet:_0x13481f}=_0xcc4318;let _0x2130f=0x0;const _0x3f375f=0x1;_0x3d0ced[_0x492355(0x3df)](_0x4d8340=>{const _0x41b76b=_0x492355;for(let _0x51fbd4=0x0;_0x51fbd4<=_0x5132a2-_0x2139b9;_0x51fbd4++)_0x578a86[_0x41b76b(0x316)](_0x2130f,_0x51fbd4,_0x13481f[_0x41b76b(0x1f2)](_0x4d8340+_0x29e6c1[_0x41b76b(0x2ff)]+_0x3f375f,_0x51fbd4));_0x2130f++;});for(let _0x39dd1c=_0x2139b9;_0x39dd1c<=_0x5132a2;_0x39dd1c++){const _0x4e4ed7=_0x13481f[_0x492355(0x1f2)](_0x5d541d,_0x39dd1c);_0x4e7ba4[_0x5d541d]||(_0x4e7ba4[_0x5d541d]={}),_0x4e7ba4[_0x5d541d][_0x39dd1c]={..._0x4e4ed7,'s':_0x41a1af};}let _0x2ade3e=0x1;const _0x369f9c={},_0x5af8ec={};_0x578a86[_0x492355(0x239)]((_0x4db9d1,_0x2a278d)=>{const _0x17b56b=_0x492355;_0x2a278d[_0x17b56b(0x3df)](_0x29e884=>{const _0x44bc6f=_0x17b56b,_0x4abe97=_0x578a86[_0x44bc6f(0x25a)](_0x4db9d1,_0x29e884);if(_0x4e7ba4[_0x2ade3e]||(_0x4e7ba4[_0x2ade3e]={}),_0x4e7ba4[_0x2ade3e][_0x29e884]={..._0x4abe97,'s':_0x2ade3e%0x2===0x0?_0x81eb3d:_0x467cc4},_0x564ed8[_0x29e884]&&_0x4db9d1>=0x0){const _0x29fa8c=_0x2ade3e%0x2===0x0;let _0x9c8cfc=_0x29fa8c?_0x5af8ec[_0x29e884]:_0x369f9c[_0x29e884];_0x9c8cfc||(_0x9c8cfc=_0x3891b0[_0x44bc6f(0x44e)]()[_0x44bc6f(0x316)]({..._0x29fa8c?_0x90a3c4:_0x2967db,'n':{'pattern':_0x564ed8[_0x29e884]}}),_0x29fa8c?_0x5af8ec[_0x29e884]=_0x9c8cfc:_0x369f9c[_0x29e884]=_0x9c8cfc),_0x4e7ba4[_0x2ade3e][_0x29e884]['s']=_0x9c8cfc;}}),_0x2ade3e++;});const _0x3f9cbb=new _0x475d1b[(_0x492355(0x405))](_0x4e7ba4),_0x25ed5={};_0x3f9cbb[_0x492355(0x45e)]((_0x11593a,_0x3c2b43,_0x43aac7)=>{_0x25ed5[_0x11593a]||(_0x25ed5[_0x11593a]={}),_0x25ed5[_0x11593a][_0x3c2b43]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x2747c7=[],_0x5c33d1=[],_0x3602c4=_0x3891b0[_0x492355(0x3d9)]()['length'],_0x43b595=_0x475d1b[_0x492355(0x463)]({'rowCount':Math[_0x492355(0x328)](_0x475d1b['DEFAULT_WORKSHEET_ROW_COUNT'],_0x4f6c3b+0xa),'columnCount':Math[_0x492355(0x328)](_0x475d1b['DEFAULT_WORKSHEET_COLUMN_COUNT'],_0x5e9ee6+0x5)}),_0x2aead1=_0x50a890[_0x492355(0x3bb)](_0x475d1b[_0x492355(0x3b7)]);_0x43b595['id']=_0x475d1b['generateRandomId'](),_0x43b595['name']=_0x3891b0[_0x492355(0x215)](''+_0x2aead1['t'](_0x492355(0x361)));const _0x1e74e2={'index':_0x3602c4,'sheet':_0x43b595,'unitId':_0x36b074},_0x54d012=_0x44476f[_0x492355(0x2ec)](_0x50a890,_0x1e74e2);_0x5c33d1[_0x492355(0x17b)]({'id':_0x44476f[_0x492355(0x2a3)]['id'],'params':_0x1e74e2}),_0x2747c7[_0x492355(0x17b)]({'id':_0x44476f['RemoveSheetMutation']['id'],'params':_0x54d012}),_0x5c33d1[_0x492355(0x17b)]({'id':_0x44476f[_0x492355(0x1cd)]['id'],'params':{'unitId':_0x36b074,'subUnitId':_0x43b595['id'],'cellValue':_0x4e7ba4}}),_0x2747c7[_0x492355(0x3f0)]({'id':_0x44476f[_0x492355(0x1cd)]['id'],'params':{'unitId':_0x36b074,'subUnitId':_0x43b595['id'],'cellValue':_0x25ed5}});const _0x4215d9={'startRow':0x0,'startColumn':0x0,'endRow':_0x2ade3e-0x1,'endColumn':_0x5132a2};_0x5c33d1[_0x492355(0x17b)]({'id':_0x37da3e[_0x492355(0x441)]['id'],'params':{'unitId':_0x36b074,'subUnitId':_0x43b595['id'],'range':_0x4215d9}}),_0x2747c7[_0x492355(0x3f0)]({'id':_0x37da3e[_0x492355(0x26e)]['id'],'params':{'unitId':_0x36b074,'subUnitId':_0x43b595['id']}});const _0x2c8ec9=_0x50a890[_0x492355(0x3bb)](_0x475d1b[_0x492355(0x342)]);return _0x475d1b[_0x492355(0x29e)](_0x5c33d1,_0x2c8ec9)&&_0x50a890[_0x492355(0x3bb)](_0x475d1b['IUndoRedoService'])[_0x492355(0x1e1)]({'unitID':_0x36b074,'undoMutations':_0x2747c7,'redoMutations':_0x5c33d1}),!0x0;}},_0x351b41={'type':_0x475d1b[_0x9268c(0x15f)]['COMMAND'],'id':_0x9268c(0x40e),async 'handler'(_0x4dbfda,_0x9931ea){const _0x34f5c2=_0x9268c;if(!_0x9931ea)return!0x1;const _0x19c14a=_0x4dbfda[_0x34f5c2(0x3bb)](_0x475d1b[_0x34f5c2(0x342)]),_0xd108ce=_0x4dbfda[_0x34f5c2(0x3bb)](_0x29b926[_0x34f5c2(0x17d)]),_0x6e13da=_0x4dbfda[_0x34f5c2(0x3bb)](_0x475d1b[_0x34f5c2(0x425)]),{pivotTableId:_0x5735af,fieldIds:_0xfdb285,unitId:_0x8eb510,subUnitId:_0x1a5917}=_0x9931ea,_0x2639c0=(await _0xd108ce[_0x34f5c2(0x288)]({'unitId':_0x8eb510,'subUnitId':_0x1a5917,'pivotTableId':_0x5735af,'params':{'type':_0x3ca738[_0x34f5c2(0x2de)],'removePivotField':{'fieldIds':_0xfdb285}}}))[_0x34f5c2(0x3f8)][_0x34f5c2(0x43d)];if(!_0x2639c0)return!0x1;const {view:_0x4347a5,changesets:_0x1f1d1e,isEmpty:_0x48932f,pivotTableConfig:_0x253e47}=_0x2639c0,_0x49e444=_0x253e47['targetCellInfo'],_0x5c1470=new _0x1d148a[(_0x34f5c2(0x442))]();_0x5c1470[_0x34f5c2(0x33d)](_0x4347a5);const _0x37f34e={'cellInfo':_0x49e444,'view':_0x5c1470,'isEmpty':_0x48932f};if(!await _0x4dbfda[_0x34f5c2(0x3bb)](_0x29b926[_0x34f5c2(0x3c8)])['asyncInterceptor'][_0x34f5c2(0x1dd)](_0x3b3162)(!0x0,_0x37f34e))return!0x1;const _0x2f95bc=_0x26091e(_0x4dbfda,_0x5c1470,_0x49e444,_0x48932f),_0x41a96f=_0x51d5b7(_0x4dbfda,_0x37f34e),{redos:_0x109ef3,undos:_0x44a81b}=_0x44fef9(_0x19c14a,{'pivotTableId':_0x5735af,'unitId':_0x8eb510,'subUnitId':_0x1a5917},_0x1f1d1e);return _0x475d1b['sequenceExecute']([..._0x2f95bc[_0x34f5c2(0x30e)],..._0x41a96f[_0x34f5c2(0x30e)],..._0x109ef3],_0x19c14a),_0x6e13da[_0x34f5c2(0x1e1)]({'unitID':_0x8eb510,'redoMutations':[..._0x2f95bc[_0x34f5c2(0x30e)],..._0x41a96f[_0x34f5c2(0x30e)],..._0x109ef3],'undoMutations':[..._0x2f95bc[_0x34f5c2(0x1c7)],..._0x41a96f['undos'],..._0x44a81b]}),!0x0;}},_0x15a8f9={'type':_0x475d1b[_0x9268c(0x15f)]['COMMAND'],'id':_0x9268c(0x2c2),async 'handler'(_0x178fac,_0x3cd151){const _0x5a519c=_0x9268c;var _0x42e21d;const _0x2c0e8f=_0x178fac[_0x5a519c(0x3bb)](_0x475d1b[_0x5a519c(0x342)]),_0x19d981=_0x178fac[_0x5a519c(0x3bb)](_0x29b926[_0x5a519c(0x17d)]),_0x3d6535=_0x178fac[_0x5a519c(0x3bb)](_0x29b926[_0x5a519c(0x317)]),_0x3d9971=_0x178fac[_0x5a519c(0x3bb)](_0x475d1b[_0x5a519c(0x261)]),_0x5135c7=_0x178fac[_0x5a519c(0x3bb)](_0x475d1b[_0x5a519c(0x425)]);if(!_0x3cd151)return!0x1;const {unitId:_0x4972ba,subUnitId:_0x231be1,row:_0x2390bd,col:_0x2ec97b,collapse:_0x21acdd}=_0x3cd151,_0x557b75=_0x3d9971[_0x5a519c(0x3a3)](_0x4972ba);if(!_0x557b75||!_0x557b75['getSheetBySheetId'](_0x231be1))return!0x1;const _0x403f35=_0x3d6535[_0x5a519c(0x403)](_0x4972ba,_0x231be1,_0x2390bd,_0x2ec97b);if(!_0x403f35)return!0x1;const _0x14df17=_0x3d6535[_0x5a519c(0x27b)](_0x4972ba,_0x231be1,_0x403f35);if(!_0x14df17)return!0x1;const _0x416cc8=_0x475d1b[_0x5a519c(0x335)](_0x2390bd,_0x2ec97b),{rangesInfo:_0x36eccd,areaInfo:_0x15cc30,headerMap:_0x19cd01}=_0x14df17;if(!_0x36eccd||!_0x15cc30||!_0x19cd01)return!0x1;const _0xd90f3e=Object[_0x5a519c(0x16a)](_0x36eccd)[_0x5a519c(0x414)](_0x3b8565=>_0x36eccd[_0x3b8565][_0x5a519c(0x400)](_0x2f8492=>_0x475d1b[_0x5a519c(0x3a7)][_0x5a519c(0x3c0)](_0x2f8492,_0x416cc8)));let _0x193eee;_0xd90f3e===_0x5a519c(0x191)?_0x193eee=_0x19cd01['rowHeaderMap'][_0x2ec97b]:_0xd90f3e===_0x5a519c(0x218)&&(_0x193eee=_0x19cd01[_0x5a519c(0x2ad)][_0x2390bd]);const _0x6411fc=_0x193eee==null?void 0x0:_0x193eee['tableFieldId'],_0x2de1cc=(_0x42e21d=_0x3d6535[_0x5a519c(0x164)](_0x4972ba,_0x231be1,_0x2390bd,_0x2ec97b))==null?void 0x0:_0x42e21d['v'];if(_0x2de1cc==null||!_0x403f35||!_0x6411fc)return!0x1;const _0x30d7db=await _0x19d981[_0x5a519c(0x288)]({'unitId':_0x4972ba,'subUnitId':_0x231be1,'pivotTableId':_0x403f35,'params':{'type':_0x3ca738[_0x5a519c(0x181)],'setPivotCollapse':{'tableFieldId':_0x6411fc,'collapse':_0x21acdd,'item':_0x2de1cc}}}),_0x193cc8=_0x30d7db==null?void 0x0:_0x30d7db[_0x5a519c(0x3f8)]['setPivotCollapse'];if(!_0x193cc8)return!0x1;const {view:_0x4a571a,pivotTableConfig:_0x1f0878,isEmpty:_0x19fda2,changesets:_0x3834fd}=_0x193cc8,_0x30ec83=new _0x1d148a[(_0x5a519c(0x442))]();_0x30ec83['formJSON'](_0x4a571a);const _0x5668f9=_0x1f0878[_0x5a519c(0x1bf)],_0x5d254e={'cellInfo':_0x5668f9,'view':_0x30ec83,'isEmpty':_0x19fda2};if(!await _0x178fac['get'](_0x29b926[_0x5a519c(0x3c8)])[_0x5a519c(0x3d1)][_0x5a519c(0x1dd)](_0x3b3162)(!0x0,_0x5d254e))return!0x1;const _0x36ec67=_0x26091e(_0x178fac,_0x30ec83,_0x5668f9,_0x19fda2),_0x5d96df=_0x51d5b7(_0x178fac,_0x5d254e),{redos:_0x309d83,undos:_0x508c1f}=_0x44fef9(_0x2c0e8f,{'pivotTableId':_0x403f35,'unitId':_0x4972ba,'subUnitId':_0x231be1},_0x3834fd);return _0x475d1b[_0x5a519c(0x29e)]([..._0x36ec67[_0x5a519c(0x30e)],..._0x5d96df[_0x5a519c(0x30e)],..._0x309d83],_0x2c0e8f),_0x5135c7[_0x5a519c(0x1e1)]({'unitID':_0x4972ba,'redoMutations':[..._0x36ec67['redos'],..._0x5d96df[_0x5a519c(0x30e)],..._0x309d83],'undoMutations':[..._0x36ec67[_0x5a519c(0x1c7)],..._0x5d96df[_0x5a519c(0x1c7)],..._0x508c1f]}),!0x0;}},_0x4355ed={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x360)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0x333d1d,_0x26c234){const _0x4c6e42=_0x9268c;if(!_0x26c234)return!0x1;const _0x3332bf=_0x333d1d[_0x4c6e42(0x3bb)](_0x475d1b[_0x4c6e42(0x342)]),{pivotTableId:_0x562efe,tableFieldId:_0x3a27fc,items:_0x53968d,unitId:_0x113b72,subUnitId:_0x469d34,isAll:_0x2ba390}=_0x26c234,_0x44246b=_0x333d1d[_0x4c6e42(0x3bb)](_0x29b926['SheetsPivotRPCService']),_0x467a88=_0x333d1d[_0x4c6e42(0x3bb)](_0x475d1b['IUndoRedoService']),_0x191bae=(await _0x44246b['getPivotDisplayConfig']({'unitId':_0x113b72,'subUnitId':_0x469d34,'pivotTableId':_0x562efe,'params':{'type':_0x3ca738[_0x4c6e42(0x160)],'setPivotFilter':{'tableFieldId':_0x3a27fc,'items':_0x53968d,'isAll':_0x2ba390}}}))[_0x4c6e42(0x3f8)][_0x4c6e42(0x410)];if(!_0x191bae)return!0x1;const {changesets:_0x5d680c,pivotTableConfig:_0x268053,isEmpty:_0x5a58cb,view:_0x14a376}=_0x191bae,_0x45dde5=_0x268053['targetCellInfo'],_0x50316=new _0x1d148a[(_0x4c6e42(0x442))]();_0x50316[_0x4c6e42(0x33d)](_0x14a376);const _0x2dc9ae={'cellInfo':_0x45dde5,'view':_0x50316,'isEmpty':_0x5a58cb};if(!await _0x333d1d[_0x4c6e42(0x3bb)](_0x29b926[_0x4c6e42(0x3c8)])[_0x4c6e42(0x3d1)][_0x4c6e42(0x1dd)](_0x3b3162)(!0x0,_0x2dc9ae))return!0x1;const _0x74cdf4=_0x26091e(_0x333d1d,_0x50316,_0x45dde5,_0x5a58cb),_0x3c8173=_0x51d5b7(_0x333d1d,_0x2dc9ae),{undos:_0x773cd,redos:_0x297d12}=_0x44fef9(_0x3332bf,{'pivotTableId':_0x562efe,'unitId':_0x113b72,'subUnitId':_0x469d34},_0x5d680c);return _0x475d1b['sequenceExecute']([..._0x74cdf4[_0x4c6e42(0x30e)],..._0x3c8173[_0x4c6e42(0x30e)],..._0x297d12],_0x3332bf),_0x467a88[_0x4c6e42(0x1e1)]({'unitID':_0x113b72,'redoMutations':[..._0x74cdf4[_0x4c6e42(0x30e)],..._0x3c8173[_0x4c6e42(0x30e)],..._0x297d12],'undoMutations':[..._0x74cdf4[_0x4c6e42(0x1c7)],..._0x3c8173[_0x4c6e42(0x1c7)],..._0x773cd]}),!0x0;}},_0x407283={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x360)],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x115f56,_0x499cbe){const _0x4403b8=_0x9268c;if(!_0x499cbe)return!0x1;const _0x3f19f3=_0x115f56['get'](_0x475d1b[_0x4403b8(0x342)]),_0x13d3ea=_0x115f56[_0x4403b8(0x3bb)](_0x475d1b[_0x4403b8(0x425)]),_0x7149bb=_0x115f56[_0x4403b8(0x3bb)](_0x29b926[_0x4403b8(0x17d)]),{info:_0x4c433f,tableFieldId:_0x4eb91e,pivotTableId:_0x595c7a,unitId:_0x559c54,subUnitId:_0xc14bf1}=_0x499cbe,_0x254950=(await _0x7149bb[_0x4403b8(0x288)]({'unitId':_0x559c54,'subUnitId':_0xc14bf1,'pivotTableId':_0x595c7a,'params':{'type':_0x3ca738['SetPivotSort'],'setPivotSort':{'tableFieldId':_0x4eb91e,'info':_0x4c433f}}}))[_0x4403b8(0x3f8)][_0x4403b8(0x28b)];if(!_0x254950)return!0x1;const {changesets:_0x284c76}=_0x254950,{redos:_0xf4f822,undos:_0xa12ba}=_0x44fef9(_0x3f19f3,{'pivotTableId':_0x595c7a,'unitId':_0x559c54,'subUnitId':_0xc14bf1},_0x284c76);return _0x475d1b[_0x4403b8(0x29e)](_0xf4f822,_0x3f19f3),_0x13d3ea[_0x4403b8(0x1e1)]({'unitID':_0x559c54,'redoMutations':_0xf4f822,'undoMutations':_0xa12ba}),!0x0;}},_0xc51722={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x360)],'id':_0x9268c(0x350),async 'handler'(_0x3b4a9a,_0x555c6d){const _0x549667=_0x9268c;if(!_0x555c6d)return!0x1;const _0xbc11a5=_0x3b4a9a[_0x549667(0x3bb)](_0x475d1b['ICommandService']),_0x4758a3=_0x3b4a9a[_0x549667(0x3bb)](_0x475d1b[_0x549667(0x425)]),_0x145915=_0x3b4a9a[_0x549667(0x3bb)](_0x29b926[_0x549667(0x17d)]),{displayName:_0x5e20c6,subtotalType:_0x2fdca8,format:_0x4771f7,tableFieldId:_0x3b6f84,pivotTableId:_0x50bab0,unitId:_0x196250,subUnitId:_0x39877e}=_0x555c6d,_0x59ae2d=(await _0x145915[_0x549667(0x288)]({'unitId':_0x196250,'subUnitId':_0x39877e,'pivotTableId':_0x50bab0,'params':{'type':_0x3ca738[_0x549667(0x304)],'setPivotSetting':{'tableFieldId':_0x3b6f84,'displayName':_0x5e20c6,'subtotalType':_0x2fdca8,'format':_0x4771f7}}}))[_0x549667(0x3f8)][_0x549667(0x1ac)];if(!_0x59ae2d)return!0x1;const {changesets:_0x43aa8b,view:_0x4563ac,pivotTableConfig:_0x586213,isEmpty:_0x1c5f03}=_0x59ae2d,_0x2c81ce=_0x586213['targetCellInfo'],_0x497f74=new _0x1d148a[(_0x549667(0x442))]();_0x497f74[_0x549667(0x33d)](_0x4563ac);const _0x25e458={'cellInfo':_0x2c81ce,'view':_0x497f74,'isEmpty':_0x1c5f03};if(!await _0x3b4a9a[_0x549667(0x3bb)](_0x29b926[_0x549667(0x3c8)])['asyncInterceptor'][_0x549667(0x1dd)](_0x3b3162)(!0x0,_0x25e458))return!0x1;const _0x3ac418=_0x26091e(_0x3b4a9a,_0x497f74,_0x2c81ce,_0x1c5f03),_0x1d6130=_0x51d5b7(_0x3b4a9a,_0x25e458),{undos:_0x1443c0,redos:_0x2376d8}=_0x44fef9(_0xbc11a5,{'pivotTableId':_0x50bab0,'unitId':_0x196250,'subUnitId':_0x39877e},_0x43aa8b);return _0x475d1b[_0x549667(0x29e)]([..._0x3ac418['redos'],..._0x1d6130[_0x549667(0x30e)],..._0x2376d8],_0xbc11a5),_0x4758a3[_0x549667(0x1e1)]({'unitID':_0x196250,'redoMutations':[..._0x3ac418['redos'],..._0x1d6130['redos'],..._0x2376d8],'undoMutations':[..._0x3ac418[_0x549667(0x1c7)],..._0x1d6130[_0x549667(0x1c7)],..._0x1443c0]}),!0x0;}},_0x11d2c7={'type':_0x475d1b[_0x9268c(0x15f)]['COMMAND'],'id':_0x9268c(0x3e6),async 'handler'(_0x4fcbb8,_0x3a255a){const _0x16097a=_0x9268c,_0x413f51=_0x4fcbb8[_0x16097a(0x3bb)](_0x475d1b[_0x16097a(0x342)]),_0x11ecd7=_0x4fcbb8[_0x16097a(0x3bb)](_0x29b926[_0x16097a(0x17d)]),_0x2f045d=_0x4fcbb8['get'](_0x475d1b[_0x16097a(0x425)]);if(!_0x3a255a)return!0x1;const {token:_0x2a236a,dataRangeInfo:_0x3f8933,unitId:_0x5dffb7,subUnitId:_0x2f2a31}=_0x3a255a,_0x3d61f8=[],_0x37c6ad=[],_0x16baa8=(await _0x11ecd7[_0x16097a(0x288)]({'unitId':_0x5dffb7,'subUnitId':_0x2f2a31,'pivotTableId':_0x2a236a,'params':{'type':_0x3ca738['UpdatePivotSource'],'updatePivotSource':{'dataRangeInfo':_0x3f8933,'unitId':_0x5dffb7,'subUnitId':_0x2f2a31}}}))[_0x16097a(0x3f8)][_0x16097a(0x1fc)];if(!_0x16baa8)return!0x1;const {changesets:_0x396bf8,deleteIds:_0x23eaf9,collectionConfig:_0x2b7f29,oldCollectionConfig:_0x2fe5cf,view:_0x548f5f,isEmpty:_0x45ade5,pivotTableConfig:_0x23f1cd}=_0x16baa8;_0x37c6ad[_0x16097a(0x17b)]({'id':_0x5c08b3['id'],'params':{'pivotTableId':_0x2a236a,'deleteIds':_0x23eaf9,'collectionJSON':_0x2b7f29,'dataRangeInfo':_0x3f8933,'unitId':_0x5dffb7,'subUnitId':_0x2f2a31}}),_0x3d61f8[_0x16097a(0x3f0)]({'id':_0x5c08b3['id'],'params':{'pivotTableId':_0x2a236a,'deleteIds':[],'collectionJSON':_0x2fe5cf,'dataRangeInfo':_0x23f1cd[_0x16097a(0x453)],'unitId':_0x5dffb7,'subUnitId':_0x2f2a31}});const _0x3e3c02=_0x23f1cd[_0x16097a(0x1bf)],_0x4bc078=new _0x1d148a['PivotView']();_0x4bc078[_0x16097a(0x33d)](_0x548f5f);const _0x3bb57f={'cellInfo':_0x3e3c02,'view':_0x4bc078,'isEmpty':_0x45ade5};if(!await _0x4fcbb8[_0x16097a(0x3bb)](_0x29b926[_0x16097a(0x3c8)])[_0x16097a(0x3d1)]['fetchThroughAsyncInterceptors'](_0x3b3162)(!0x0,_0x3bb57f))return!0x1;const _0x2182d7=_0x26091e(_0x4fcbb8,_0x4bc078,_0x3e3c02,_0x45ade5),_0x51ef11=_0x51d5b7(_0x4fcbb8,_0x3bb57f),{undos:_0x267e5f,redos:_0x52e06c}=_0x44fef9(_0x413f51,{'pivotTableId':_0x2a236a,'unitId':_0x5dffb7,'subUnitId':_0x2f2a31},_0x396bf8);return _0x475d1b[_0x16097a(0x29e)]([..._0x2182d7['redos'],..._0x51ef11[_0x16097a(0x30e)],..._0x37c6ad,..._0x267e5f],_0x413f51),_0x2f045d[_0x16097a(0x1e1)]({'unitID':_0x5dffb7,'redoMutations':[..._0x2182d7['redos'],..._0x51ef11[_0x16097a(0x30e)],..._0x37c6ad,..._0x267e5f],'undoMutations':[..._0x2182d7['undos'],..._0x51ef11[_0x16097a(0x1c7)],..._0x3d61f8,..._0x52e06c]}),!0x0;}},_0x38d5bf={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x360)],'id':_0x9268c(0x1e0),async 'handler'(_0xa6a0a0,_0x3232df){const _0x3ea432=_0x9268c;if(!_0x3232df)return!0x1;const _0x3e250e=_0xa6a0a0[_0x3ea432(0x3bb)](_0x475d1b[_0x3ea432(0x342)]),_0x2094da=_0xa6a0a0[_0x3ea432(0x3bb)](_0x29b926[_0x3ea432(0x17d)]),_0x376b2c=_0xa6a0a0[_0x3ea432(0x3bb)](_0x475d1b[_0x3ea432(0x261)]),_0x392b56=_0xa6a0a0[_0x3ea432(0x3bb)](_0x475d1b[_0x3ea432(0x425)]),{pivotTableId:_0x3507d3,position:_0x44a574,index:_0x3c6d30}=_0x3232df,_0x466743=_0x44476f[_0x3ea432(0x340)](_0x376b2c);if(!_0x466743)return!0x1;const {unitId:_0x244c5f,subUnitId:_0x42c6b2}=_0x466743,_0x16a979=(await _0x2094da[_0x3ea432(0x288)]({'unitId':_0x244c5f,'subUnitId':_0x42c6b2,'pivotTableId':_0x3507d3,'params':{'type':_0x3ca738['UpdateValuePosition'],'updateValuePosition':{'position':_0x44a574,'index':_0x3c6d30}}}))[_0x3ea432(0x3f8)][_0x3ea432(0x1fa)];if(!_0x16a979)return!0x1;const {changesets:_0x465906,view:_0x4fd252,isEmpty:_0x5d5401,pivotTableConfig:_0x4bee87}=_0x16a979,_0x18e25c=_0x4bee87['targetCellInfo'],_0x4f2670=new _0x1d148a['PivotView']();_0x4f2670[_0x3ea432(0x33d)](_0x4fd252);const _0x59f6c3=_0xa6a0a0[_0x3ea432(0x3bb)](_0x29b926['SheetsPivotTableService']),_0x1a711a={'cellInfo':_0x18e25c,'view':_0x4f2670,'isEmpty':_0x5d5401};if(!await _0x59f6c3[_0x3ea432(0x3d1)]['fetchThroughAsyncInterceptors'](_0x3b3162)(!0x0,_0x1a711a))return!0x1;const _0x30c6fd=_0x26091e(_0xa6a0a0,_0x4f2670,_0x18e25c,_0x5d5401),_0x4bde8c=_0x51d5b7(_0xa6a0a0,_0x1a711a),{undos:_0x26496f,redos:_0x3b73c2}=_0x44fef9(_0x3e250e,{'pivotTableId':_0x3507d3,'unitId':_0x244c5f,'subUnitId':_0x42c6b2},_0x465906);return _0x475d1b['sequenceExecute']([..._0x30c6fd[_0x3ea432(0x30e)],..._0x4bde8c[_0x3ea432(0x30e)],..._0x3b73c2],_0x3e250e),_0x392b56['pushUndoRedo']({'unitID':_0x244c5f,'redoMutations':[..._0x30c6fd[_0x3ea432(0x30e)],..._0x4bde8c[_0x3ea432(0x30e)],..._0x3b73c2],'undoMutations':[..._0x30c6fd[_0x3ea432(0x1c7)],..._0x4bde8c[_0x3ea432(0x1c7)],..._0x26496f]}),!0x0;}},_0x34f389={'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x360)],'id':'sheet.command.move-pivot-table','handler':(_0x1241d5,_0x5ea014)=>{const _0x39f485=_0x9268c,_0x9d6682=_0x1241d5[_0x39f485(0x3bb)](_0x475d1b[_0x39f485(0x342)]),_0x358f1d=_0x1241d5[_0x39f485(0x3bb)](_0x475d1b[_0x39f485(0x425)]),_0x1a9750=_0x1241d5[_0x39f485(0x3bb)](_0x29b926['SheetsPivotTableConfigModel']),_0x1806dc=_0x1241d5[_0x39f485(0x3bb)](_0x475d1b[_0x39f485(0x261)]);if(!_0x5ea014)return!0x1;const _0x1e3352=_0x44476f[_0x39f485(0x340)](_0x1806dc);if(!_0x1e3352)return!0x1;const {unitId:_0x14d39e,subUnitId:_0x48c7c9,workbook:_0xac0b0a}=_0x1e3352,_0x328334=_0x1a9750['getPivotTableConfig'](_0x5ea014[_0x39f485(0x275)][_0x39f485(0x329)],_0x5ea014[_0x39f485(0x275)][_0x39f485(0x1ca)],_0x5ea014['pivotTableId']);if(!_0x328334)return!0x1;const _0x2f6e8c=_0xac0b0a[_0x39f485(0x171)](_0x5ea014[_0x39f485(0x1bf)][_0x39f485(0x1ca)]);if(!_0x2f6e8c)throw new Error(_0x39f485(0x423));const _0x228597=_0x2f6e8c[_0x39f485(0x418)](),_0x36d242=_0x2f6e8c[_0x39f485(0x2d8)]();if(_0x5ea014['targetCellInfo']['row']>_0x228597||_0x5ea014['targetCellInfo'][_0x39f485(0x2b7)]>_0x36d242)throw new Error('[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range');const _0x3c482a=[{'id':_0x3e9757['id'],'params':{'unitId':_0x14d39e,'subUnitId':_0x5ea014[_0x39f485(0x1bf)][_0x39f485(0x1ca)],'pivotTableId':_0x5ea014[_0x39f485(0x213)],'targetCellPosition':{'row':_0x5ea014[_0x39f485(0x1bf)]['row'],'col':_0x5ea014['targetCellInfo'][_0x39f485(0x2b7)]}}}],_0x22378b=[{'id':_0x3e9757['id'],'params':{'unitId':_0x14d39e,'subUnitId':_0x48c7c9,'pivotTableId':_0x5ea014[_0x39f485(0x213)],'targetCellPosition':{'row':_0x328334[_0x39f485(0x1bf)]['row'],'col':_0x328334[_0x39f485(0x1bf)]['col']}}}];return _0x475d1b[_0x39f485(0x29e)](_0x3c482a,_0x9d6682)&&_0x358f1d[_0x39f485(0x1e1)]({'unitID':_0x14d39e,'undoMutations':_0x22378b,'redoMutations':_0x3c482a}),!0x0;}},_0x46c5bd={'type':_0x475d1b[_0x9268c(0x15f)]['COMMAND'],'id':_0x9268c(0x225),async 'handler'(_0x41e716,_0x324fae){const _0x38906d=_0x9268c;if(!_0x324fae)return!0x1;const _0x33d9d9=_0x41e716['get'](_0x475d1b[_0x38906d(0x342)]),{pivotTableId:_0x5ad09d,fieldId:_0x511203,valueFilterInfo:_0x26a6f1,unitId:_0x38b55f,subUnitId:_0x351090}=_0x324fae,_0x37f9e1=_0x41e716['get'](_0x29b926[_0x38906d(0x17d)]),_0x1ed06d=_0x41e716['get'](_0x475d1b[_0x38906d(0x425)]),_0x2ca955=(await _0x37f9e1[_0x38906d(0x288)]({'unitId':_0x38b55f,'subUnitId':_0x351090,'pivotTableId':_0x5ad09d,'params':{'type':_0x3ca738[_0x38906d(0x2ce)],'setValuePivotFilter':{'tableFieldId':_0x511203,'filterInfo':_0x26a6f1}}}))[_0x38906d(0x3f8)][_0x38906d(0x245)];if(!_0x2ca955)return!0x1;const {changesets:_0x5d65e0,pivotTableConfig:_0xa1d669,isEmpty:_0x68471f,view:_0x446d2c}=_0x2ca955,_0x2b8d93=_0xa1d669[_0x38906d(0x1bf)],_0x24e6f9=new _0x1d148a['PivotView']();_0x24e6f9[_0x38906d(0x33d)](_0x446d2c);const _0xcadc0b={'cellInfo':_0x2b8d93,'view':_0x24e6f9,'isEmpty':_0x68471f};if(!await _0x41e716[_0x38906d(0x3bb)](_0x29b926[_0x38906d(0x3c8)])[_0x38906d(0x3d1)][_0x38906d(0x1dd)](_0x3b3162)(!0x0,_0xcadc0b))return!0x1;const _0x3ad32a=_0x26091e(_0x41e716,_0x24e6f9,_0x2b8d93,_0x68471f),_0x40c557=_0x51d5b7(_0x41e716,_0xcadc0b),{undos:_0x343661,redos:_0x1571b2}=_0x44fef9(_0x33d9d9,{'pivotTableId':_0x5ad09d,'unitId':_0x38b55f,'subUnitId':_0x351090},_0x5d65e0);return _0x475d1b[_0x38906d(0x29e)]([..._0x3ad32a[_0x38906d(0x30e)],..._0x40c557[_0x38906d(0x30e)],..._0x1571b2],_0x33d9d9),_0x1ed06d['pushUndoRedo']({'unitID':_0x38b55f,'redoMutations':[..._0x3ad32a[_0x38906d(0x30e)],..._0x40c557[_0x38906d(0x30e)],..._0x1571b2],'undoMutations':[..._0x3ad32a['undos'],..._0x40c557[_0x38906d(0x1c7)],..._0x343661]}),!0x0;}},_0x3c9c58={'type':_0x475d1b[_0x9268c(0x15f)]['COMMAND'],'id':_0x9268c(0x320),async 'handler'(_0x4b26ec,_0x5ca7e7){const _0x50ba16=_0x9268c;if(!_0x5ca7e7)return!0x1;const _0x3a616c=_0x4b26ec['get'](_0x475d1b['ICommandService']),_0x295e14=_0x4b26ec[_0x50ba16(0x3bb)](_0x475d1b['IUndoRedoService']),_0x56e578=_0x4b26ec[_0x50ba16(0x3bb)](_0x29b926['SheetsPivotRPCService']),{pivotTableConfig:_0x38f22f,pivotTableId:_0x1221fa,unitId:_0x25daed,subUnitId:_0x5b45b8}=_0x5ca7e7,_0x53368e=(await _0x56e578[_0x50ba16(0x288)]({'unitId':_0x25daed,'subUnitId':_0x5b45b8,'pivotTableId':_0x1221fa,'params':{'type':_0x3ca738[_0x50ba16(0x35b)],'setPivotTableConfig':{'pivotTableId':_0x1221fa,'pivotTableConfig':_0x38f22f}}}))[_0x50ba16(0x3f8)][_0x50ba16(0x429)];if(!_0x53368e)return!0x1;const {changesets:_0x9426ac}=_0x53368e,{redos:_0x15c516,undos:_0xee27d}=_0x44fef9(_0x3a616c,{'pivotTableId':_0x1221fa,'unitId':_0x25daed,'subUnitId':_0x5b45b8},_0x9426ac);return _0x475d1b[_0x50ba16(0x29e)](_0x15c516,_0x3a616c),_0x295e14[_0x50ba16(0x1e1)]({'unitID':_0x25daed,'redoMutations':_0x15c516,'undoMutations':_0xee27d}),!0x0;}},_0x239d2b={'type':_0x475d1b[_0x9268c(0x15f)]['COMMAND'],'id':_0x9268c(0x37f),async 'handler'(_0x5585eb,_0x5279ae){const _0x3da23b=_0x9268c;if(!_0x5279ae)return!0x1;const _0x22d89c=_0x5585eb[_0x3da23b(0x3bb)](_0x475d1b[_0x3da23b(0x342)]),_0x59bfa1=_0x5585eb[_0x3da23b(0x3bb)](_0x475d1b[_0x3da23b(0x425)]),_0x1d1e3f=_0x5585eb['get'](_0x29b926[_0x3da23b(0x17d)]),{resetArea:_0x20403f,pivotTableId:_0x4868d9,unitId:_0xe9983f,subUnitId:_0xab7c9a}=_0x5279ae,_0x47f818=(await _0x1d1e3f[_0x3da23b(0x288)]({'unitId':_0xe9983f,'subUnitId':_0xab7c9a,'pivotTableId':_0x4868d9,'params':{'type':_0x3ca738['ResetPivotTable'],'resetPivotTable':{'pivotTableId':_0x4868d9,'resetArea':_0x20403f}}}))['result'][_0x3da23b(0x2c4)];if(!_0x47f818)return!0x1;const {changesets:_0x4c783c}=_0x47f818,{redos:_0xedcf94,undos:_0x1fbadd}=_0x44fef9(_0x22d89c,{'pivotTableId':_0x4868d9,'unitId':_0xe9983f,'subUnitId':_0xab7c9a},_0x4c783c);return _0x475d1b[_0x3da23b(0x29e)](_0xedcf94,_0x22d89c),_0x59bfa1[_0x3da23b(0x1e1)]({'unitID':_0xe9983f,'redoMutations':_0xedcf94,'undoMutations':_0x1fbadd}),!0x0;}},_0x20cf48={'id':_0x9268c(0x230),'type':_0x475d1b[_0x9268c(0x15f)][_0x9268c(0x23e)],'handler':(_0x432eb0,_0x1a8366)=>{const _0x3a9a4e=_0x9268c;if(!_0x1a8366)return!0x1;if(!!_0x432eb0['get'](_0x475d1b['IConfigService'])[_0x3a9a4e(0x32b)](_0x1bd950))return!0x0;const {unitId:_0x5afbbe,subUnitId:_0x23e6a2,pivotTableId:_0x37f744,tableFieldId:_0xbac239,dateType:_0x456bde}=_0x1a8366,_0x36d123=_0x432eb0['get'](_0x29b926[_0x3a9a4e(0x420)]),_0x1ddc38=_0x36d123['getPivotTableInstance'](_0x37f744);if(!_0x1ddc38)return!0x1;const _0x4593be=_0x1ddc38[_0x3a9a4e(0x30c)](_0xbac239);if(!_0x4593be)return!0x1;const _0x934636=_0x4593be[_0x3a9a4e(0x34f)](),_0x4ea87a=_0x1ddc38[_0x3a9a4e(0x34d)](_0x934636),_0x28de45=(_0x4ea87a==null?void 0x0:_0x4ea87a[_0x3a9a4e(0x231)]())+'\x20'+_0x1fac8e(_0x432eb0,_0x456bde);_0x36d123[_0x3a9a4e(0x35a)](_0x5afbbe,_0x37f744)[_0x3a9a4e(0x364)](_0x4593be['id'],_0x28de45);const _0x25ceb8=_0x1ddc38['getTableFieldById'](_0xbac239);if(!_0x25ceb8)return!0x1;_0x1ddc38[_0x3a9a4e(0x185)](_0x25ceb8[_0x3a9a4e(0x1ef)](),_0x28de45),_0x4593be['setDateType'](_0x456bde);const _0x39f19a=_0x36d123[_0x3a9a4e(0x346)](_0x5afbbe,_0x23e6a2,_0x37f744);return _0x36d123[_0x3a9a4e(0x387)]({'unitId':_0x5afbbe,'subUnitId':_0x23e6a2,'token':_0x37f744,'type':_0x94aa6e[_0x3a9a4e(0x381)],'pivotConfig':_0x39f19a}),!0x0;}},_0x5eb53={'id':_0x9268c(0x376),'type':_0x475d1b['CommandType'][_0x9268c(0x360)],'handler':(_0x1b295b,_0x525b32)=>{const _0x1ccb77=_0x9268c;if(!_0x525b32)return!0x1;const _0x361cb4=_0x1b295b['get'](_0x475d1b[_0x1ccb77(0x425)]),{unitId:_0x24bd58,subUnitId:_0x2dcc4b,pivotTableId:_0x6bde59,tableFieldId:_0x522778}=_0x525b32,_0x20fef7=[],_0x11e183=[],_0x33c7b2=_0x1b295b['get'](_0x29b926['SheetsPivotTableConfigModel']),_0xb05b18=_0x33c7b2[_0x1ccb77(0x35a)](_0x24bd58,_0x6bde59),_0x1746dd=_0x33c7b2['getPivotTableConfig'](_0x24bd58,_0x2dcc4b,_0x6bde59);if(!(_0x1746dd!=null&&_0x1746dd['fieldsConfig'][_0x1ccb77(0x3d8)]))return!0x1;const _0x15ea80=Object[_0x1ccb77(0x3c6)](_0x1746dd['fieldsConfig'][_0x1ccb77(0x3d8)])[_0x1ccb77(0x414)](_0x5628f5=>_0x5628f5['id']===_0x522778);if(!_0x15ea80)return!0x1;const _0x4b825a=_0x15ea80[_0x1ccb77(0x3af)];if(!(_0xb05b18!=null&&_0xb05b18[_0x1ccb77(0x227)]))return!0x1;const _0x14d1f3=Object[_0x1ccb77(0x3c6)](_0xb05b18==null?void 0x0:_0xb05b18[_0x1ccb77(0x227)])['find'](_0x525c1f=>_0x525c1f['id']===_0x4b825a);if(!_0x14d1f3)return!0x1;_0x1d148a[_0x1ccb77(0x42d)](_0x14d1f3)&&_0x20fef7[_0x1ccb77(0x17b)]({'id':_0x20cf48['id'],'params':{..._0x525b32,'dateType':_0x14d1f3[_0x1ccb77(0x393)]}}),_0x11e183[_0x1ccb77(0x17b)]({'id':_0x20cf48['id'],'params':{..._0x525b32}});const _0x25f057=_0x1b295b[_0x1ccb77(0x3bb)](_0x475d1b['ICommandService']);return _0x475d1b[_0x1ccb77(0x29e)](_0x11e183,_0x25f057)&&_0x361cb4[_0x1ccb77(0x1e1)]({'unitID':_0x24bd58,'undoMutations':_0x20fef7,'redoMutations':_0x11e183}),!0x0;}};var _0x9c775=Object[_0x9268c(0x379)],_0x5a3704=(_0x33884d,_0x87761c,_0x419eb0,_0x4cd1a8)=>{const _0x3dc4c3=_0x9268c;for(var _0x4a4846=_0x4cd1a8>0x1?void 0x0:_0x4cd1a8?_0x9c775(_0x87761c,_0x419eb0):_0x87761c,_0xa9b253=_0x33884d[_0x3dc4c3(0x32d)]-0x1,_0x2fbea7;_0xa9b253>=0x0;_0xa9b253--)(_0x2fbea7=_0x33884d[_0xa9b253])&&(_0x4a4846=_0x2fbea7(_0x4a4846)||_0x4a4846);return _0x4a4846;},_0xe01a7d=(_0x4ddae5,_0x588c63)=>(_0x2178fa,_0x27c4e9)=>_0x588c63(_0x2178fa,_0x27c4e9,_0x4ddae5);const _0x26bdad=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x21f5c8=(_0x3ea15a,_0x2e1a69,_0x18aeda)=>{const _0x17a920=_0x9268c,_0x50c25b=_0x3ea15a[_0x17a920(0x199)];_0x3ea15a['iterateFieldDim'](_0x492eb0=>{const _0x244a17=_0x17a920,_0x2683e5=_0x492eb0['getId'](),_0x499e9f=_0x492eb0[_0x244a17(0x1a6)](),_0x334d3a=_0x492eb0[_0x244a17(0x3e0)](),_0xd710dc=_0x492eb0[_0x244a17(0x3a5)]();_0x2e1a69[_0x499e9f]&&_0x2e1a69[_0x499e9f]===_0xd710dc&&_0x334d3a===_0xd710dc&&(_0x3ea15a[_0x244a17(0x185)](_0x2683e5,_0x50c25b[_0x244a17(0x3a5)](_0x499e9f)),_0x492eb0['setSourceName'](_0x50c25b[_0x244a17(0x3a5)](_0x499e9f)));}),_0x3ea15a[_0x17a920(0x1d3)](_0x1d148a[_0x17a920(0x2ed)][_0x17a920(0x3c2)],_0x2ff51e=>{const _0x437983=_0x17a920,_0x689c0=_0x2ff51e[_0x437983(0x1ef)](),_0x250a7a=_0x2ff51e[_0x437983(0x1a6)](),_0x57dd65=_0x2ff51e[_0x437983(0x3e0)](),_0x1338f7=_0x2ff51e[_0x437983(0x3a5)](),_0xb7f318=_0x2ff51e[_0x437983(0x41c)](),_0x41ad03=_0x18aeda(_0x57dd65,_0xb7f318);_0x2e1a69[_0x250a7a]&&_0x2e1a69[_0x250a7a]===_0x57dd65&&_0x41ad03===_0x1338f7&&(_0x3ea15a[_0x437983(0x185)](_0x689c0,_0x18aeda(_0x50c25b[_0x437983(0x3a5)](_0x250a7a),_0xb7f318)),_0x2ff51e[_0x437983(0x188)](_0x50c25b[_0x437983(0x3a5)](_0x250a7a)));});},_0x3e9a91=(_0x47a1e0,_0x27de39,_0x33e192)=>{const _0x3d635a=_0x9268c;var _0x319841,_0x4d25e5;const {arrayFormulaCellData:_0x213a00,unitData:_0x34d7c1}=_0x27de39,{unitId:_0x5ce060,subUnitId:_0x54efb5}=_0x33e192,_0x427554=_0x33e192[_0x3d635a(0x3bd)],{startColumn:_0x2afadc,endColumn:_0x5c2a22}=_0x427554,_0x5001fa=(_0x319841=_0x213a00==null?void 0x0:_0x213a00[_0x5ce060])==null?void 0x0:_0x319841[_0x54efb5],_0x10b0dc=(_0x4d25e5=_0x34d7c1==null?void 0x0:_0x34d7c1[_0x5ce060])==null?void 0x0:_0x4d25e5[_0x54efb5],_0x3f658b=new Set(),_0x49a621=_0x5c2a22-_0x2afadc+0x1,{dirtyRanges:_0x1e6765}=_0x47a1e0;if(_0x1e6765)for(const {range:_0x2f8838,sheetId:_0x32e2f8,unitId:_0xb12951}of _0x1e6765){if(_0x32e2f8!==_0x54efb5||_0x5ce060!==_0xb12951)continue;const _0x194128=_0x475d1b[_0x3d635a(0x3a7)]['getIntersects'](_0x2f8838,_0x427554);if(_0x194128){const {startColumn:_0x42f493,endColumn:_0x707165}=_0x194128;for(let _0xa93cc9=_0x42f493;_0xa93cc9<=_0x707165;_0xa93cc9++)_0x3f658b[_0x3d635a(0x156)](_0xa93cc9);}}if(_0x3f658b['size']===_0x49a621||_0x3f658b[_0x3d635a(0x3d7)]===_0x49a621)return Array['from'](_0x3f658b);if(_0x10b0dc){const _0x261d66=_0x10b0dc['getMatrix'](),_0x4e0cc1=Object[_0x3d635a(0x16a)](_0x261d66);for(const _0x25b615 of _0x4e0cc1){const _0x42e2e7=Number(_0x25b615),_0x46aedf=_0x261d66[_0x42e2e7];if(_0x3f658b[_0x3d635a(0x3d7)]===_0x49a621)break;for(const _0x3af8ed in _0x46aedf){const _0x2a7cea=Number(_0x3af8ed);_0x2a7cea<_0x2afadc||_0x2a7cea>_0x5c2a22||_0x3f658b[_0x3d635a(0x156)](_0x2a7cea);}}}if(_0x5001fa){const _0x43a8dc=_0x5001fa['getMatrix'](),_0x5bbc06=Object[_0x3d635a(0x16a)](_0x43a8dc);for(const _0x511167 of _0x5bbc06){const _0x4d9c60=Number(_0x511167),_0x502706=_0x43a8dc[_0x4d9c60];if(_0x3f658b['size']===_0x49a621)break;for(const _0xfe2cc0 in _0x502706){const _0x11d607=Number(_0xfe2cc0);_0x11d607<_0x2afadc||_0x11d607>_0x5c2a22||_0x3f658b[_0x3d635a(0x156)](_0x11d607);}}}return Array[_0x3d635a(0x3fd)](_0x3f658b);},_0x2c3319=_0x30192d=>{const _0x4b0d6f=_0x9268c,_0x3a0431=new Set(),_0x5d7505=[];for(const _0xae3fb of _0x30192d){const _0x345a31=_0xae3fb[_0x4b0d6f(0x2ff)]+','+_0xae3fb['endRow']+','+_0xae3fb['startColumn']+','+_0xae3fb[_0x4b0d6f(0x277)];_0x3a0431[_0x4b0d6f(0x2a4)](_0x345a31)||(_0x3a0431['add'](_0x345a31),_0x5d7505['push'](_0xae3fb));}return _0x5d7505;};let _0x5c421c=class extends _0x475d1b[_0x9268c(0x158)]{constructor(_0x4cae5f,_0x34c581,_0x466a31,_0x6604c,_0x532f15,_0x17ed41){const _0x5b1537=_0x9268c;super(),_0x346b88(this,'_globalSubject',new _0x53d07a[(_0x5b1537(0x3f5))](!0x0)),_0x346b88(this,_0x5b1537(0x3b6),_0x27a047=>{const _0x3e7d66=_0x5b1537;this['_globalSubject'][_0x3e7d66(0x347)](!0x1);}),_0x346b88(this,_0x5b1537(0x2ae),_0x4347a9=>{const _0x50e2e8=_0x5b1537;this[_0x50e2e8(0x39a)][_0x50e2e8(0x347)](!0x0);}),(this[_0x5b1537(0x15a)]=_0x4cae5f,this[_0x5b1537(0x336)]=_0x34c581,this['_featureCalculationManagerService']=_0x466a31,this['_commandService']=_0x6604c,this['_globalComputingSrv']=_0x532f15,this[_0x5b1537(0x2cd)]=_0x17ed41,this[_0x5b1537(0x3fc)](),this[_0x5b1537(0x2f1)]());}[_0x9268c(0x3fc)](){const _0x38a71c=_0x9268c;this[_0x38a71c(0x223)](),this[_0x38a71c(0x254)](),this[_0x38a71c(0x26b)](),this[_0x38a71c(0x1e4)]();}['_initGlobalComputed'](){const _0x310b6f=_0x9268c;this[_0x310b6f(0x179)]['pushComputingStatusSubject'](this[_0x310b6f(0x39a)]),_0x1d148a[_0x310b6f(0x205)][_0x310b6f(0x337)](_0x1d148a[_0x310b6f(0x270)][_0x310b6f(0x43f)],this[_0x310b6f(0x3b6)]),_0x1d148a[_0x310b6f(0x205)][_0x310b6f(0x337)](_0x1d148a[_0x310b6f(0x270)][_0x310b6f(0x214)],this[_0x310b6f(0x2ae)]);}['_initPivotDataGetListener'](){const _0x3c6fd9=_0x9268c;this[_0x3c6fd9(0x2c9)](this[_0x3c6fd9(0x31d)][_0x3c6fd9(0x24d)](_0xd7d472=>{const _0x3071c0=_0x3c6fd9;_0xd7d472['id']===_0x44476f['MoveRangeMutation']['id']&&this['_sheetsPivotDataSourceModel']['handleMoveRange'](_0xd7d472[_0x3071c0(0x352)]);})),this['disposeWithMe'](this[_0x3c6fd9(0x31d)][_0x3c6fd9(0x24d)](_0x3c0aae=>{const _0x329060=_0x3c6fd9;if(_0x3c0aae['id']!==_0x239074['id'])return;const _0x173a46=_0x3c0aae[_0x329060(0x352)],{unitId:_0x25bb71,subUnitId:_0x90af25,pivotTableId:_0x4eb630}=_0x173a46,_0x5c761c=_0x173a46['params'][_0x329060(0x436)],_0x3c8dd2={};switch(_0x5c761c){case _0x3ca738[_0x329060(0x228)]:{const _0x511c0c=_0x173a46[_0x329060(0x352)][_0x329060(0x16c)];if(!_0x511c0c)return;const {row:_0x3d9f2c,col:_0x2afaaa,cellData:_0x4585a9,pivotItemRenderInfoCache:_0x5c3bd1,tableFieldId:_0x398901}=_0x511c0c,_0xab1f15=this[_0x329060(0x15a)][_0x329060(0x289)](_0x173a46[_0x329060(0x213)]);if(!_0xab1f15||!_0x5c3bd1)return;if(_0x398901){const _0xeb476a=_0xab1f15[_0x329060(0x30c)](_0x398901);if(!_0xeb476a)return;_0x3c8dd2[_0x329060(0x16c)]={..._0xab1f15[_0x329060(0x1c0)](_0xeb476a),'tableFieldId':_0x398901,'pivotTableId':_0x173a46[_0x329060(0x213)],'filterInfo':_0xab1f15['getFilterInfo'](_0x398901),'sortInfo':_0xab1f15[_0x329060(0x186)](_0x398901),'format':_0xab1f15[_0x329060(0x2e0)](_0x398901)};}else{const _0x15765e=_0x289393(_0x3d9f2c,_0x2afaaa,_0x4585a9,_0xab1f15,_0x5c3bd1),_0x4fda83=_0x15765e==null?void 0x0:_0x15765e[_0x329060(0x2c1)];if(!_0x4fda83)return;const _0x34c09e=_0xab1f15[_0x329060(0x30c)](_0x4fda83);if(!_0x34c09e)return;_0x3c8dd2[_0x329060(0x16c)]={..._0xab1f15[_0x329060(0x1c0)](_0x34c09e),'tableFieldId':_0x4fda83,'pivotTableId':_0x173a46[_0x329060(0x213)],'filterInfo':_0xab1f15[_0x329060(0x2e2)](_0x4fda83),'sortInfo':_0xab1f15['getSortInfo'](_0x4fda83),'format':_0xab1f15[_0x329060(0x2e0)](_0x4fda83)};}}break;case _0x3ca738[_0x329060(0x312)]:{const _0x116ac8=_0x173a46[_0x329060(0x352)][_0x329060(0x1ce)];if(!_0x116ac8)return;const {pivotTableId:_0x2c5aa5}=_0x116ac8,_0x5b7f03=this[_0x329060(0x15a)][_0x329060(0x289)](_0x2c5aa5);if(!_0x5b7f03)return;const _0xb99458=this[_0x329060(0x15a)]['getPivotTableConfig'](_0x25bb71,_0x90af25,_0x2c5aa5),_0x37f194=_0x336cf4(_0x5b7f03,_0x2c5aa5,_0xb99458);_0x3c8dd2[_0x329060(0x1ce)]=_0x37f194;}break;case _0x3ca738[_0x329060(0x17f)]:{const _0x38c05e=this[_0x329060(0x15a)][_0x329060(0x289)](_0x4eb630),_0x22e758=this[_0x329060(0x15a)][_0x329060(0x35d)](_0x25bb71),_0x361aa0=_0x22e758['getCollection'](_0x4eb630);let _0x17ad80=null;const _0x1723bd=this['_sheetsPivotDataSourceModel'][_0x329060(0x346)](_0x25bb71,_0x90af25,_0x4eb630),_0x1ad262=_0x173a46[_0x329060(0x352)][_0x329060(0x28d)];if(!_0x38c05e||!_0x1723bd||!_0x1ad262)return!0x1;const {dataFieldId:_0x1fd4b2,fieldArea:_0x29c493,index:_0x4a35ff}=_0x1ad262;_0x38c05e[_0x329060(0x398)]();const _0x317921=_0x38c05e[_0x329060(0x256)](_0x1fd4b2,_0x29c493,_0x4a35ff);if(_0x317921&&_0x29c493===_0x1d148a[_0x329060(0x2ed)][_0x329060(0x3c2)]){const _0x5a3b6e=_0x317921[_0x329060(0x1ef)](),_0x747ed4=_0x38c05e['getDataFieldByTableId'](_0x5a3b6e);if(_0x747ed4){const _0x233482=_0x747ed4==null?void 0x0:_0x747ed4[_0x329060(0x3f3)]();_0x38c05e[_0x329060(0x273)](_0x317921[_0x329060(0x1ef)](),_0x233482===_0x1d148a[_0x329060(0x27e)][_0x329060(0x409)]?_0x1d148a[_0x329060(0x170)][_0x329060(0x3be)]:_0x1d148a[_0x329060(0x170)][_0x329060(0x34e)]);}const _0x52dd07=_0x38c05e['getValueIndex'](),_0x1e9977=_0x38c05e[_0x329060(0x165)](),_0x5a834a=_0x38c05e[_0x329060(0x1fd)](_0x1d148a[_0x329060(0x2ed)]['Value']);if(_0x52dd07===-0x1&&_0x5a834a>0x1){const _0x25854e=_0x1e9977===_0x1d148a[_0x329060(0x34b)][_0x329060(0x2a2)]?_0x1d148a[_0x329060(0x34b)][_0x329060(0x174)]:_0x1e9977,_0x40b44e=_0x25854e===_0x1d148a['PivotTableValuePositionEnum']['Row']?_0x1d148a['PivotTableFiledAreaEnum'][_0x329060(0x407)]:_0x1d148a[_0x329060(0x2ed)][_0x329060(0x174)];_0x38c05e[_0x329060(0x1fa)](_0x25854e,_0x38c05e[_0x329060(0x1fd)](_0x40b44e));}}else{if(_0x317921&&(_0x29c493===_0x1d148a['PivotTableFiledAreaEnum'][_0x329060(0x407)]||_0x29c493===_0x1d148a[_0x329060(0x2ed)][_0x329060(0x174)])){const _0x1cf205=_0x317921[_0x329060(0x1ef)](),_0x246177=_0x38c05e['getDataFieldByTableId'](_0x1cf205);if(_0x246177&&(_0x246177==null?void 0x0:_0x246177[_0x329060(0x3f3)]())===_0x1d148a[_0x329060(0x27e)][_0x329060(0x184)]){const _0x4cc423=_0x246177[_0x329060(0x1a4)]();if(_0x4cc423&&_0x38c05e[_0x329060(0x412)](_0x317921['getId'](),_0x4cc423),!_0x361aa0[_0x329060(0x1ed)]()[_0x329060(0x400)](_0x1bf9b9=>{const _0x4c5d70=_0x329060,_0x69e6b5=_0x361aa0[_0x4c5d70(0x3ec)](_0x1bf9b9);return _0x1d148a['isDateGroupField'](_0x69e6b5)?_0x69e6b5[_0x4c5d70(0x2dd)]()[_0x4c5d70(0x2f7)]===_0x1fd4b2:!0x1;})){const _0x3265eb=_0x22e758[_0x329060(0x17c)](),_0x5313cf=_0x447ce2(_0x246177['maxDate'],_0x246177[_0x329060(0x23c)]),_0xdca132=_0x246177['getName']()+'\x20-\x20'+_0x1fac8e(this[_0x329060(0x2cd)],_0x5313cf),_0x2ebe74=new _0x1d148a[(_0x329060(0x283))](_0x3265eb,_0xdca132,_0x1d148a['generateHexNumber'](0x3),_0x246177[_0x329060(0x1ef)](),_0x5313cf);_0x22e758[_0x329060(0x1d9)](_0x2ebe74),_0x361aa0[_0x329060(0x426)](_0x3265eb,_0xdca132),_0x38c05e['addFieldWithSourceId'](_0x3265eb,_0x29c493,(_0x4a35ff!=null?_0x4a35ff:0x0)+0x1),_0x17ad80=_0x2ebe74;}}}}const _0x112aed=_0x38c05e[_0x329060(0x173)](),_0x42e1ee=_0x38c05e[_0x329060(0x3f9)]()['toJSON']();let _0x38e35f;if(_0x17ad80){_0x38e35f=_0x17ad80['toJSON']();const _0x2d5678=_0x17ad80['getId']();_0x361aa0[_0x329060(0x190)](_0x2d5678);let _0x1d173a=!0x0;for(const _0xd6cb07 in _0x22e758[_0x329060(0x3c3)])if(_0x22e758['collections'][_0xd6cb07][_0x329060(0x1ed)]()['includes'](_0x2d5678)){_0x1d173a=!0x1;break;}_0x1d173a&&_0x22e758[_0x329060(0x378)](_0x2d5678);}const _0x4d1aa4=_0x38c05e[_0x329060(0x187)]();_0x3c8dd2['addPivotField']={'view':_0x42e1ee,'changesets':_0x4d1aa4,'isEmpty':_0x112aed,'pivotTableConfig':_0x1723bd,'shouldBeAddedGroupJSON':_0x38e35f};}break;case _0x3ca738[_0x329060(0x34c)]:{const _0xc05e23=_0x173a46[_0x329060(0x352)]['addPivotTable'];if(!_0xc05e23)return;const _0x52ec81=_0xc05e23['sourceRangeInfo'],_0x4d61e2=_0xc05e23['pivotTableId'],{collection:_0x22a770}=this[_0x329060(0x15a)]['createCollectionWithDataRange']({'unitId':_0x52ec81[_0x329060(0x329)],'sheetName':_0x52ec81[_0x329060(0x331)],'subUnitId':_0x52ec81[_0x329060(0x1ca)],'range':_0x52ec81[_0x329060(0x3bd)]}),_0xb3f7b2=new _0x1d148a[(_0x329060(0x205))](_0x22a770,void 0x0,_0x4d61e2),_0x5262dc=_0xb3f7b2[_0x329060(0x3f9)](),_0x3a826b=_0xb3f7b2[_0x329060(0x38e)](),_0x235b4e=_0x22a770[_0x329060(0x38e)]();_0x3c8dd2[_0x329060(0x15b)]={'view':_0x5262dc,'fieldsConfig':_0x3a826b,'collectionConfig':_0x235b4e,'isEmpty':_0xb3f7b2[_0x329060(0x173)]()};}break;case _0x3ca738['MovePivotField']:{const _0x23d1d2=_0x173a46['params'][_0x329060(0x30a)];if(!_0x23d1d2)return;const {fieldId:_0x4498ee,area:_0x32cab2,index:_0x4f124a}=_0x23d1d2,_0x35e494=this[_0x329060(0x15a)][_0x329060(0x346)](_0x25bb71,_0x90af25,_0x4eb630);if(!_0x35e494)return;const _0x8da047=this[_0x329060(0x15a)][_0x329060(0x289)](_0x4eb630);if(!_0x8da047)return;_0x8da047[_0x329060(0x398)]();const {area:_0x33c4d9,index:_0x349237}=_0x8da047['getFieldPositionInfoById'](_0x4498ee);if(_0x8da047[_0x329060(0x192)](_0x4498ee,_0x32cab2,_0x4f124a),_0x32cab2===_0x1d148a[_0x329060(0x2ed)]['Value']&&_0x8da047[_0x329060(0x1ad)](_0x4498ee)[_0x329060(0x41c)]()===void 0x0){const _0x10d08e=_0x8da047[_0x329060(0x1ad)](_0x4498ee);if(_0x10d08e&&_0x10d08e[_0x329060(0x41c)]()===void 0x0){const _0x581653=_0x8da047['getDataFieldByTableId'](_0x4498ee);if(_0x581653){const _0x45fa94=_0x581653==null?void 0x0:_0x581653[_0x329060(0x3f3)]();_0x8da047[_0x329060(0x273)](_0x4498ee,_0x45fa94===_0x1d148a[_0x329060(0x27e)][_0x329060(0x409)]?_0x1d148a['PivotSubtotalTypeEnum'][_0x329060(0x3be)]:_0x1d148a[_0x329060(0x170)][_0x329060(0x34e)]);}}}const _0x2fcdce=_0x8da047[_0x329060(0x165)](),_0x5d3d1b=_0x8da047[_0x329060(0x3f4)](),_0x4893db=_0x8da047[_0x329060(0x1fd)](_0x1d148a['PivotTableFiledAreaEnum'][_0x329060(0x3c2)])>0x1;if(_0x4893db&&_0x33c4d9===_0x32cab2&&(_0x32cab2===_0x1d148a[_0x329060(0x2ed)][_0x329060(0x407)]&&_0x2fcdce===_0x1d148a['PivotTableValuePositionEnum'][_0x329060(0x407)]||_0x32cab2===_0x1d148a[_0x329060(0x2ed)][_0x329060(0x174)]&&_0x2fcdce===_0x1d148a[_0x329060(0x34b)][_0x329060(0x174)])){let _0x6bd4ea=_0x5d3d1b;_0x349237<=_0x5d3d1b&&_0x6bd4ea--,_0x4f124a<=_0x5d3d1b&&_0x6bd4ea++,_0x8da047[_0x329060(0x1fa)](_0x2fcdce,_0x6bd4ea);}else _0x4893db&&(_0x33c4d9===_0x1d148a[_0x329060(0x2ed)][_0x329060(0x407)]&&_0x2fcdce===_0x1d148a[_0x329060(0x34b)][_0x329060(0x407)]||_0x33c4d9===_0x1d148a[_0x329060(0x2ed)]['Column']&&_0x2fcdce===_0x1d148a[_0x329060(0x34b)]['Column'])&&_0x5d3d1b>=_0x349237&&_0x8da047[_0x329060(0x1fa)](_0x2fcdce,_0x5d3d1b-0x1),_0x4893db&&(_0x32cab2===_0x1d148a[_0x329060(0x2ed)][_0x329060(0x407)]&&_0x2fcdce===_0x1d148a['PivotTableValuePositionEnum']['Row']||_0x32cab2===_0x1d148a['PivotTableFiledAreaEnum'][_0x329060(0x174)]&&_0x2fcdce===_0x1d148a[_0x329060(0x34b)][_0x329060(0x174)])&&_0x5d3d1b>=_0x4f124a&&_0x8da047[_0x329060(0x1fa)](_0x2fcdce,_0x5d3d1b+0x1);const _0x1b01d5=_0x8da047['query'](),_0x3ad913=_0x8da047[_0x329060(0x173)](),_0x2b1ae3=_0x8da047[_0x329060(0x187)]();_0x3c8dd2[_0x329060(0x30a)]={'view':_0x1b01d5['toJSON'](),'changesets':_0x2b1ae3,'isEmpty':_0x3ad913,'pivotTableConfig':_0x35e494};}break;case _0x3ca738[_0x329060(0x2de)]:{const _0xa83f7e=_0x173a46[_0x329060(0x352)]['removePivotField'];if(!_0xa83f7e)return;const _0x2c38d=_0xa83f7e['fieldIds'],_0x44b942=this[_0x329060(0x15a)]['getPivotTableConfig'](_0x25bb71,_0x90af25,_0x4eb630);if(!_0x44b942)return!0x1;const _0x212e2f=this[_0x329060(0x15a)][_0x329060(0x289)](_0x4eb630);if(!_0x212e2f)return!0x1;_0x212e2f[_0x329060(0x398)]();for(const _0x11a02c of _0x2c38d){const {area:_0xbc310d}=_0x212e2f[_0x329060(0x248)](_0x11a02c);_0xbc310d===_0x1d148a[_0x329060(0x2ed)]['Value']&&_0x212e2f['removeValueFilterInfoByValueFieldId'](_0x11a02c),(_0xbc310d===_0x1d148a[_0x329060(0x2ed)]['Row']||_0xbc310d===_0x1d148a[_0x329060(0x2ed)]['Column'])&&_0x212e2f[_0x329060(0x2df)](_0x11a02c),_0x212e2f['removeField'](_0x11a02c);}const _0x15413a=_0x212e2f[_0x329060(0x173)](),_0x512605=_0x212e2f[_0x329060(0x3f9)]()[_0x329060(0x38e)](),_0x46acdf=_0x212e2f[_0x329060(0x187)]();_0x3c8dd2['removePivotField']={'changesets':_0x46acdf,'pivotTableConfig':_0x44b942,'isEmpty':_0x15413a,'view':_0x512605};}break;case _0x3ca738[_0x329060(0x160)]:{const _0x32e1a6=_0x173a46[_0x329060(0x352)][_0x329060(0x410)];if(!_0x32e1a6)return;const {tableFieldId:_0x4aef51,items:_0x2056c7,isAll:_0x2e27e8}=_0x32e1a6,_0x147624=this['_sheetsPivotDataSourceModel'][_0x329060(0x289)](_0x4eb630),_0x55c8bf=this[_0x329060(0x15a)][_0x329060(0x346)](_0x25bb71,_0x90af25,_0x4eb630);if(!_0x147624||!_0x55c8bf)return;_0x147624[_0x329060(0x398)](),_0x147624[_0x329060(0x2eb)](_0x4aef51,{'type':_0x1d148a[_0x329060(0x1a9)][_0x329060(0x284)],'list':_0x2056c7,'isAll':_0x2e27e8});const _0x4e41de=_0x147624[_0x329060(0x173)](),_0x2a7148=_0x147624['query']()['toJSON'](),_0x40bc0a=_0x147624[_0x329060(0x187)]();_0x3c8dd2[_0x329060(0x410)]={'view':_0x2a7148,'changesets':_0x40bc0a,'isEmpty':_0x4e41de,'pivotTableConfig':_0x55c8bf};}break;case _0x3ca738[_0x329060(0x2ce)]:{const _0x1b5a1f=_0x173a46['params'][_0x329060(0x245)];if(!_0x1b5a1f)return;const {tableFieldId:_0x33e1e1,filterInfo:_0x99bd81}=_0x1b5a1f,_0x5bdbf7=this[_0x329060(0x15a)]['getPivotTableInstance'](_0x4eb630),_0xaecfcd=this[_0x329060(0x15a)][_0x329060(0x346)](_0x25bb71,_0x90af25,_0x4eb630);if(!_0x5bdbf7||!_0xaecfcd)return;_0x5bdbf7[_0x329060(0x398)](),_0x5bdbf7[_0x329060(0x2b6)](_0x33e1e1,_0x99bd81);const _0x2d628b=_0x5bdbf7[_0x329060(0x173)](),_0x2ae3f3=_0x5bdbf7[_0x329060(0x3f9)]()[_0x329060(0x38e)](),_0x5ad2ec=_0x5bdbf7['endCollectChangeset']();_0x3c8dd2[_0x329060(0x245)]={'view':_0x2ae3f3,'changesets':_0x5ad2ec,'isEmpty':_0x2d628b,'pivotTableConfig':_0xaecfcd};}break;case _0x3ca738[_0x329060(0x3c9)]:{const _0x391706=_0x173a46['params'][_0x329060(0x28b)];if(!_0x391706)return;const {tableFieldId:_0x26c698,info:_0x1f5992}=_0x391706,_0x14f77f=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x4eb630),_0x26f137=this[_0x329060(0x15a)][_0x329060(0x346)](_0x25bb71,_0x90af25,_0x4eb630);if(!_0x14f77f||!_0x26f137)return;_0x14f77f['startCollectChangeset'](),_0x14f77f['setSortInfo'](_0x26c698,_0x1f5992);const _0x358845=_0x14f77f['isEmpty'](),_0x38cc11=_0x14f77f['query']()['toJSON'](),_0x12d830=_0x14f77f[_0x329060(0x187)]();_0x3c8dd2[_0x329060(0x28b)]={'view':_0x38cc11,'changesets':_0x12d830,'isEmpty':_0x358845,'pivotTableConfig':_0x26f137};}break;case _0x3ca738[_0x329060(0x304)]:{const _0x25c9c5=_0x173a46[_0x329060(0x352)][_0x329060(0x1ac)];if(!_0x25c9c5)return;const {tableFieldId:_0xbc2b3d,displayName:_0x341c62,subtotalType:_0x1dccce,format:_0x21b385}=_0x25c9c5,_0x4adc8b=this[_0x329060(0x15a)][_0x329060(0x289)](_0x4eb630),_0x3fdcf2=this[_0x329060(0x15a)]['getPivotTableConfig'](_0x25bb71,_0x90af25,_0x4eb630);if(!_0x4adc8b||!_0x3fdcf2)return;_0x4adc8b[_0x329060(0x398)](),_0x341c62!==void 0x0&&_0x4adc8b['renameField'](_0xbc2b3d,_0x341c62),_0x1dccce!==void 0x0&&_0x4adc8b['setSubtotalType'](_0xbc2b3d,_0x1dccce),_0x21b385!==void 0x0&&_0x4adc8b[_0x329060(0x412)](_0xbc2b3d,_0x21b385);const _0x31aa6b=_0x4adc8b['isEmpty'](),_0x4d1808=_0x4adc8b[_0x329060(0x3f9)]()['toJSON'](),_0x128a45=_0x4adc8b['endCollectChangeset']();_0x3c8dd2[_0x329060(0x1ac)]={'changesets':_0x128a45,'pivotTableConfig':_0x3fdcf2,'isEmpty':_0x31aa6b,'view':_0x4d1808};}break;case _0x3ca738['UpdatePivotSource']:{const _0x76e5cf=_0x173a46[_0x329060(0x352)][_0x329060(0x1fc)];if(!_0x76e5cf)return;const {dataRangeInfo:_0x2652f8,unitId:_0x28494c,subUnitId:_0x5e5351}=_0x76e5cf,_0x388eca=this[_0x329060(0x15a)][_0x329060(0x346)](_0x28494c,_0x5e5351,_0x4eb630),_0x44ee87=this[_0x329060(0x15a)][_0x329060(0x289)](_0x4eb630);if(!this[_0x329060(0x15a)]['getCollection'](_0x28494c,_0x4eb630)||!_0x44ee87||!_0x388eca)return;const _0x2ffe0a=this[_0x329060(0x15a)][_0x329060(0x3b4)](_0x28494c,_0x4eb630,_0x2652f8),_0x2c2775=this['_sheetsPivotDataSourceModel']['getCollection'](_0x28494c,_0x4eb630)['toJSON'](),{collection:_0x48fe3a}=this[_0x329060(0x15a)]['createCollectionWithDataRange']({'unitId':_0x2652f8[_0x329060(0x329)],'sheetName':_0x2652f8[_0x329060(0x331)],'subUnitId':_0x2652f8[_0x329060(0x1ca)],'range':_0x2652f8[_0x329060(0x3bd)]}),_0x4ec072=_0x48fe3a[_0x329060(0x38e)]();_0x44ee87[_0x329060(0x398)]();const _0xd0bf88=this[_0x329060(0x15a)][_0x329060(0x35d)](_0x28494c)['getAutoDisplayNameFunction']()||_0x1d148a[_0x329060(0x2c8)];_0x44ee87[_0x329060(0x1e2)](_0x4efbb5=>{const _0x6e1e4f=_0x329060,_0xed93b1=_0x4efbb5['getDataFieldId']();if(!_0x48fe3a[_0x6e1e4f(0x2c6)](_0xed93b1)){const _0x13e902=_0x48fe3a[_0x6e1e4f(0x3a8)](_0x4efbb5[_0x6e1e4f(0x3e0)]());if(_0x13e902){_0x44ee87[_0x6e1e4f(0x32f)](_0x4efbb5[_0x6e1e4f(0x1ef)](),_0x13e902[_0x6e1e4f(0x231)](),_0x13e902[_0x6e1e4f(0x1ef)]());const {area:_0x2d1fa5}=_0x44ee87[_0x6e1e4f(0x248)](_0x4efbb5[_0x6e1e4f(0x1ef)]());let _0x5279da=_0x4efbb5[_0x6e1e4f(0x3e0)]();const _0x1f77f8=_0x4efbb5[_0x6e1e4f(0x3a5)]();if(_0x2d1fa5===_0x1d148a['PivotTableFiledAreaEnum'][_0x6e1e4f(0x3c2)]){const _0x4f7a8d=_0x4efbb5['getSubtotal']();_0x5279da=_0xd0bf88(_0x13e902[_0x6e1e4f(0x231)](),_0x4f7a8d);}_0x1f77f8!==_0x5279da&&_0x44ee87['renameField'](_0x4efbb5[_0x6e1e4f(0x1ef)](),_0x5279da);}else _0x44ee87[_0x6e1e4f(0x1a5)](_0x4efbb5[_0x6e1e4f(0x1ef)]());}});const _0x4e28b8=_0x44ee87[_0x329060(0x173)](),_0x288b4d=_0x44ee87[_0x329060(0x3f9)]()[_0x329060(0x38e)](),_0x21e663=_0x44ee87[_0x329060(0x187)]();_0x3c8dd2['updatePivotSource']={'view':_0x288b4d,'changesets':_0x21e663,'isEmpty':_0x4e28b8,'pivotTableConfig':_0x388eca,'collectionConfig':_0x4ec072,'oldCollectionConfig':_0x2c2775,'deleteIds':_0x2ffe0a};}break;case _0x3ca738[_0x329060(0x44f)]:{const _0x14f76b=_0x173a46[_0x329060(0x352)][_0x329060(0x1fa)];if(!_0x14f76b)return;const {position:_0x2d8815,index:_0x4e922f}=_0x14f76b,_0x4320e6=this['_sheetsPivotDataSourceModel'][_0x329060(0x346)](_0x25bb71,_0x90af25,_0x4eb630);if(!_0x4320e6)return!0x1;const _0x408548=this[_0x329060(0x15a)][_0x329060(0x289)](_0x4eb630);if(!_0x408548)return!0x1;_0x408548[_0x329060(0x398)](),_0x408548[_0x329060(0x1fa)](_0x2d8815,_0x4e922f);const _0x38d3e2=_0x408548['isEmpty'](),_0x1ef893=_0x408548[_0x329060(0x3f9)]()[_0x329060(0x38e)](),_0x596649=_0x408548[_0x329060(0x187)]();_0x3c8dd2[_0x329060(0x1fa)]={'changesets':_0x596649,'pivotTableConfig':_0x4320e6,'isEmpty':_0x38d3e2,'view':_0x1ef893};}break;case _0x3ca738[_0x329060(0x181)]:{const _0x5cf911=_0x173a46[_0x329060(0x352)][_0x329060(0x388)];if(!_0x5cf911)return;const {tableFieldId:_0x2a6a7,collapse:_0x54be40,item:_0x55d1b3}=_0x5cf911,_0x2ecf99=this[_0x329060(0x15a)][_0x329060(0x289)](_0x4eb630),_0x53ed3c=this[_0x329060(0x15a)][_0x329060(0x346)](_0x25bb71,_0x90af25,_0x4eb630);if(!_0x2ecf99||!_0x53ed3c)return;_0x2ecf99[_0x329060(0x398)](),_0x2ecf99[_0x329060(0x244)](_0x2a6a7,_0x54be40,_0x55d1b3);const _0x4f2cdc=_0x2ecf99[_0x329060(0x173)](),_0x6f5539=_0x2ecf99['query']()[_0x329060(0x38e)](),_0x5ef2c0=_0x2ecf99['endCollectChangeset']();_0x3c8dd2[_0x329060(0x388)]={'view':_0x6f5539,'isEmpty':_0x4f2cdc,'pivotTableConfig':_0x53ed3c,'changesets':_0x5ef2c0};}break;case _0x3ca738[_0x329060(0x35b)]:{const _0x26d1f3=_0x173a46[_0x329060(0x352)][_0x329060(0x429)];if(!_0x26d1f3)return;const {pivotTableConfig:_0x4a9741}=_0x26d1f3,_0x4f52a2=this[_0x329060(0x15a)][_0x329060(0x289)](_0x4eb630),_0xf32454=this[_0x329060(0x15a)][_0x329060(0x346)](_0x25bb71,_0x90af25,_0x4eb630);if(!_0x4f52a2||!_0xf32454)return;_0x4f52a2[_0x329060(0x398)](),_0x4021cd(_0x4f52a2,_0x4a9741);const _0x537953=_0x4f52a2[_0x329060(0x173)](),_0x33b87d=_0x4f52a2['query']()['toJSON'](),_0x148bfd=_0x4f52a2['endCollectChangeset']();_0x3c8dd2[_0x329060(0x429)]={'view':_0x33b87d,'isEmpty':_0x537953,'pivotTableConfig':{..._0xf32454,'fieldsConfig':_0x4f52a2[_0x329060(0x38e)]()},'changesets':_0x148bfd};}break;case _0x3ca738[_0x329060(0x36f)]:{const _0x19679c=_0x173a46[_0x329060(0x352)]['resetPivotTable'];if(!_0x19679c)return;const _0x3932ee=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x4eb630),_0x59b3dd=this[_0x329060(0x15a)][_0x329060(0x346)](_0x25bb71,_0x90af25,_0x4eb630);if(!_0x3932ee||!_0x59b3dd)return;_0x3932ee[_0x329060(0x398)](),_0x28c9b4(_0x3932ee,_0x19679c[_0x329060(0x35c)]);const _0xedf8ed=_0x3932ee[_0x329060(0x3f9)]()['toJSON'](),_0x22ded5=_0x3932ee[_0x329060(0x187)]();_0x3c8dd2[_0x329060(0x2c4)]={'view':_0xedf8ed,'isEmpty':!0x0,'pivotTableConfig':{..._0x59b3dd,'fieldsConfig':_0x3932ee[_0x329060(0x38e)]()},'changesets':_0x22ded5};}break;case _0x3ca738[_0x329060(0x1cb)]:{const _0x561dd7=_0x173a46[_0x329060(0x352)]['addPivotTableWithConfig'];if(!_0x561dd7)return;const _0x4a567f=_0x561dd7[_0x329060(0x453)],_0x340a47=_0x561dd7['pivotTableId'],{collection:_0x3b1ecb}=this[_0x329060(0x15a)][_0x329060(0x2aa)]({'unitId':_0x4a567f[_0x329060(0x329)],'sheetName':_0x4a567f['sheetName'],'subUnitId':_0x4a567f[_0x329060(0x1ca)],'range':_0x4a567f['range']}),_0x516c68=new _0x1d148a[(_0x329060(0x205))](_0x3b1ecb,void 0x0,_0x340a47),_0xadb06f=_0x3b1ecb[_0x329060(0x1ed)](),{rows:_0x5bf947,columns:_0x403f04,filters:_0x169ab9,values:_0x24194a}=_0x561dd7[_0x329060(0x3de)];_0x516c68[_0x329060(0x398)]();for(const {field:_0x4309ec,selectedItems:_0x38c120}of _0x5bf947||[]){const _0x231e47=_0xadb06f[_0x4309ec];if(_0x231e47){const _0x32abe7=_0x516c68['addFieldWithSourceId'](_0x231e47,_0x1d148a[_0x329060(0x2ed)][_0x329060(0x407)]);_0x38c120&&_0x32abe7&&_0x516c68[_0x329060(0x2eb)](_0x32abe7[_0x329060(0x1ef)](),{'type':_0x1d148a['PivotFilterTypeEnum']['ManualFilter'],'list':_0x38c120,'isAll':!0x1});}}for(const {field:_0x217a8f,selectedItems:_0x206e33}of _0x403f04||[]){const _0x22ec7b=_0xadb06f[_0x217a8f];if(_0x22ec7b){const _0x4e3010=_0x516c68['addFieldWithSourceId'](_0x22ec7b,_0x1d148a[_0x329060(0x2ed)][_0x329060(0x174)]);_0x206e33&&_0x4e3010&&_0x516c68['setLabelFilterInfo'](_0x4e3010[_0x329060(0x1ef)](),{'type':_0x1d148a['PivotFilterTypeEnum'][_0x329060(0x284)],'list':_0x206e33,'isAll':!0x1});}}for(const {field:_0x1f7ed2,selectedItems:_0x266a04}of _0x169ab9||[]){const _0xaf519c=_0xadb06f[_0x1f7ed2];if(_0xaf519c){const _0x2f2661=_0x516c68[_0x329060(0x256)](_0xaf519c,_0x1d148a['PivotTableFiledAreaEnum'][_0x329060(0x228)]);_0x266a04&&_0x2f2661&&_0x516c68[_0x329060(0x2eb)](_0x2f2661[_0x329060(0x1ef)](),{'type':_0x1d148a['PivotFilterTypeEnum'][_0x329060(0x284)],'list':_0x266a04,'isAll':!0x1});}}for(const {field:_0x139490,subTotalType:_0x661fb1,formatString:_0x3ad869}of _0x24194a||[]){const _0x38c485=_0x3b1ecb[_0x329060(0x3ec)](_0xadb06f[_0x139490]);if(!_0x38c485)continue;const _0x3104e3=_0xadb06f[_0x139490];if(_0x3104e3){const _0x15a672=_0x516c68[_0x329060(0x256)](_0x3104e3,_0x1d148a['PivotTableFiledAreaEnum']['Value']);if(_0x15a672){if(_0x661fb1!==void 0x0){_0x516c68['setSubtotalType'](_0x15a672[_0x329060(0x1ef)](),_0x661fb1);const _0x3372db=this[_0x329060(0x15a)][_0x329060(0x35d)](_0x4a567f[_0x329060(0x329)])[_0x329060(0x349)]()||_0x1d148a[_0x329060(0x2c8)],_0x5f4120=_0x3b1ecb['getDisplayName'](_0x3104e3),_0x2e4dc7=_0x3372db(_0x5f4120,_0x661fb1);_0x516c68[_0x329060(0x185)](_0x15a672[_0x329060(0x1ef)](),_0x2e4dc7);}else{if(_0x38c485){const _0x23fae1=_0x38c485==null?void 0x0:_0x38c485[_0x329060(0x3f3)]();_0x516c68[_0x329060(0x273)](_0x15a672[_0x329060(0x1ef)](),_0x23fae1===_0x1d148a['PivotDataFieldDataTypeEnum'][_0x329060(0x409)]?_0x1d148a[_0x329060(0x170)]['sum']:_0x1d148a[_0x329060(0x170)][_0x329060(0x34e)]);}}_0x3ad869&&_0x516c68[_0x329060(0x412)](_0x15a672[_0x329060(0x1ef)](),_0x3ad869);}}}const _0xe45208=_0x516c68[_0x329060(0x3f9)](),_0x32f8b8=_0x516c68[_0x329060(0x38e)](),_0x1aae3c=_0x516c68['isEmpty'](),_0x1edd86=_0x516c68['endCollectChangeset'](),_0x2d3565=_0x3b1ecb['toJSON']();_0x3c8dd2['addPivotTableWithConfig']={'view':_0xe45208,'fieldsConfig':_0x32f8b8,'collectionConfig':_0x2d3565,'isEmpty':_0x1aae3c,'changesets':_0x1edd86};}break;case _0x3ca738['DrillDown']:{const _0x1929ae=_0x3734ae(this[_0x329060(0x2cd)],_0x173a46);if(!_0x1929ae)return;const {range:_0x2660e2,sourceSubUnitId:_0x77bbc2,sourceUnitId:_0x14b3b3,formatMap:_0x238816,indexes:_0x36da71}=_0x1929ae;_0x3c8dd2[_0x329060(0x21c)]={'range':_0x2660e2,'sourceSubUnitId':_0x77bbc2,'sourceUnitId':_0x14b3b3,'formatMap':_0x238816,'indexes':_0x36da71};}break;}this[_0x329060(0x31d)][_0x329060(0x267)](_0x29dd01['id'],{'version':_0x173a46[_0x329060(0x22f)],'result':_0x3c8dd2},{'onlyLocal':!0x0});}));}['_initPivotTextInfo'](){const _0x143ae1=_0x9268c;this['disposeWithMe'](this[_0x143ae1(0x31d)][_0x143ae1(0x24d)](_0x217f43=>{const _0x3d8a87=_0x143ae1;if(_0x217f43['id']!==_0x499dd5['id'])return;const _0x21cabd=_0x217f43['params'];return this[_0x3d8a87(0x15a)][_0x3d8a87(0x2da)](_0x21cabd[_0x3d8a87(0x3b9)]),!0x0;}));}[_0x9268c(0x223)](){const _0x1bad0d=_0x9268c;this[_0x1bad0d(0x15a)][_0x1bad0d(0x411)]['subscribe'](_0x19beab=>{const _0x5aaf10=_0x1bad0d;switch(_0x19beab['type']){case _0x2f2b6e['add']:_0x19beab[_0x5aaf10(0x235)]&&_0x19beab[_0x5aaf10(0x1bf)]&&this['handleSourceRangeChange'](_0x19beab[_0x5aaf10(0x21a)],_0x19beab[_0x5aaf10(0x235)],_0x19beab[_0x5aaf10(0x1bf)]);break;case _0x2f2b6e[_0x5aaf10(0x37c)]:{const {unitId:_0x1cee3c,subUnitId:_0x2615a3,token:_0x1bc399}=_0x19beab;_0x1cee3c&&_0x2615a3&&_0x1bc399&&this[_0x5aaf10(0x2f3)](_0x1cee3c,_0x2615a3,_0x1bc399);}break;case _0x2f2b6e['update']:{const {token:_0x31e6b8,oldSourceRangeInfo:_0x2efa10,dataRangeInfo:_0x4ed1b0,targetCellInfo:_0x4edd88}=_0x19beab,{unitId:_0x55438a,subUnitId:_0x3a2509}=_0x2efa10||{};_0x55438a&&_0x3a2509&&_0x31e6b8&&this[_0x5aaf10(0x2f3)](_0x55438a,_0x3a2509,_0x31e6b8),_0x4ed1b0&&_0x4edd88&&this[_0x5aaf10(0x1bb)](_0x31e6b8,_0x4ed1b0,_0x4edd88);}break;}});}['_subjectFieldsCollectionChange'](){const _0x59a420=_0x9268c;this['_sheetsPivotDataSourceModel'][_0x59a420(0x440)][_0x59a420(0x282)](_0x346f41=>{const _0x5d1f15=_0x59a420;Object[_0x5d1f15(0x16a)](_0x346f41)[_0x5d1f15(0x3df)](_0x330409=>{const _0x1e6dd6=_0x5d1f15,_0x299c20=this['_sheetsPivotDataSourceModel'][_0x1e6dd6(0x19a)](_0x330409);if(_0x299c20){const _0x145f4e=this[_0x1e6dd6(0x15a)][_0x1e6dd6(0x346)](_0x299c20==null?void 0x0:_0x299c20[_0x1e6dd6(0x329)],_0x299c20==null?void 0x0:_0x299c20[_0x1e6dd6(0x1ca)],_0x330409);_0x145f4e&&(this[_0x1e6dd6(0x1bb)](_0x330409,_0x145f4e[_0x1e6dd6(0x453)],_0x145f4e[_0x1e6dd6(0x1bf)]),this[_0x1e6dd6(0x1d5)]([{'unitId':_0x299c20[_0x1e6dd6(0x329)],'subUnitId':_0x299c20[_0x1e6dd6(0x1ca)],'token':_0x330409}]));}});});}[_0x9268c(0x254)](){const _0x3f107b=_0x9268c;this['_sheetsPivotDataSourceModel']['viewData$'][_0x3f107b(0x282)](_0x53c77d=>{const _0x4004ae=_0x3f107b,{unitId:_0x4923a7,subUnitId:_0x48d357,pivotTableId:_0x43a914}=_0x53c77d;_0x4923a7&&_0x48d357&&_0x43a914&&this[_0x4004ae(0x1d5)]([{'unitId':_0x4923a7,'subUnitId':_0x48d357,'token':_0x43a914}]);});}['triggerDirtyFeature'](_0x558df6){const _0x3882d5=_0x9268c,_0x377c4f={};_0x558df6[_0x3882d5(0x3df)](_0x541b9f=>{var _0x36aad6,_0x29c45d;const {unitId:_0x1b3044,subUnitId:_0x5b709b,token:_0x3e46f4}=_0x541b9f;_0x377c4f[_0x1b3044]=(_0x36aad6=_0x377c4f[_0x1b3044])!=null?_0x36aad6:{},_0x377c4f[_0x1b3044][_0x5b709b]=(_0x29c45d=_0x377c4f[_0x1b3044][_0x5b709b])!=null?_0x29c45d:{},_0x377c4f[_0x1b3044][_0x5b709b][_0x3e46f4]=!0x0;}),this[_0x3882d5(0x31d)]['executeCommand'](_0x3a2ea0['id'],_0x377c4f);}[_0x9268c(0x2f3)](_0xb5e50c,_0x146cdf,_0x5a3142){this['_featureCalculationManagerService']['remove'](_0xb5e50c,_0x146cdf,[_0x5a3142]);}['handleSourceRangeChange'](_0x3373b9,_0x5e8920,_0x11211f){const _0x321d01=_0x9268c,{unitId:_0x36dae9,subUnitId:_0x1edbd8}=_0x5e8920;this[_0x321d01(0x3aa)][_0x321d01(0x2a4)](_0x11211f[_0x321d01(0x329)],_0x11211f[_0x321d01(0x1ca)],_0x3373b9)&&this[_0x321d01(0x2f3)](_0x36dae9,_0x1edbd8,_0x3373b9);const _0x470acc={'sheetId':_0x1edbd8,..._0x5e8920};this[_0x321d01(0x3aa)][_0x321d01(0x33b)](_0x11211f[_0x321d01(0x329)],_0x11211f[_0x321d01(0x1ca)],_0x3373b9,{'unitId':_0x11211f[_0x321d01(0x329)],'subUnitId':_0x11211f['subUnitId'],'dependencyRanges':[_0x470acc],'getDirtyData':(_0xd7bc46,_0xde03d4)=>{const _0x597a87=_0x321d01,_0x39f50a=this['_sheetsPivotDataSourceModel'],_0xd0404f=_0x39f50a[_0x597a87(0x19a)](_0x3373b9);if(!_0xd0404f)return _0x26bdad();const {unitId:_0x4abf0e,subUnitId:_0x515436}=_0xd0404f,_0x383285=_0x3e9a91(_0xd7bc46,_0xde03d4,_0x5e8920);if(_0x383285['length']>0x0){const _0xdf3828=_0x39f50a[_0x597a87(0x35a)](_0x36dae9,_0x3373b9),_0x225c95=_0xdf3828[_0x597a87(0x1ed)](),_0x58b412=this[_0x597a87(0x2a6)](_0x5e8920[_0x597a87(0x329)],_0x5e8920[_0x597a87(0x1ca)],_0xde03d4),_0x50a3af={},_0x318154=this[_0x597a87(0x15a)][_0x597a87(0x35d)](_0x4abf0e)[_0x597a87(0x349)]()||_0x1d148a[_0x597a87(0x2c8)],_0x3e962a=[];for(const _0x242d78 of _0x383285){const _0xb1cc40=_0x242d78-(_0x5e8920[_0x597a87(0x3bd)][_0x597a87(0x1e9)]||0x0),_0xea9e5=_0x225c95[_0xb1cc40];_0x3e962a['push'](_0xea9e5),_0x50a3af[_0xea9e5]=_0xdf3828[_0x597a87(0x3ec)](_0xea9e5)[_0x597a87(0x231)](),_0x39f50a['getDataFieldManager'](_0x36dae9)[_0x597a87(0x457)](_0xea9e5,_0x5e8920,_0xb1cc40,_0x58b412);}_0xdf3828['getGroupFieldsInfoByIds'](_0x3e962a)[_0x597a87(0x3df)](_0x66d41f=>{const _0x39a432=_0x597a87,[_0x20be31,_0xc0d863]=_0x66d41f,_0x19ede4=_0xdf3828[_0x39a432(0x3ec)](_0x20be31),_0x5ad7fd=_0xdf3828[_0x39a432(0x3ec)](_0xc0d863);_0x19ede4&&_0x5ad7fd&&_0x19ede4[_0x39a432(0x455)](_0x5ad7fd);}),_0xdf3828['updateAllDisplayName']();const _0x2d465e=_0x39f50a[_0x597a87(0x289)](_0x3373b9);if(_0x2d465e){_0x21f5c8(_0x2d465e,_0x50a3af,_0x318154),_0x2d465e[_0x597a87(0x3c1)](!0x0);const _0x4427ec=_0x2d465e[_0x597a87(0x3f9)](),_0xc6a652=_0x39f50a['getPivotTableConfig'](_0x4abf0e,_0x515436,_0x3373b9),_0x446ec4=_0x39f50a['getDataFieldManager'](_0x36dae9)['toJSON']();_0x39f50a[_0x597a87(0x1b5)](_0x4abf0e,_0x515436,_0x94aa6e['Set'],_0x3373b9,_0x4427ec,_0xc6a652,_0x446ec4,!0x0);}}return this[_0x597a87(0x20c)](_0x4abf0e,_0x515436,_0x3373b9);}});}['getMatrixFromRunTimeData'](_0x42b614,_0x3f8baa,_0x1e21ab){var _0x48ea22,_0x27ab6d;const {arrayFormulaCellData:_0x108cc7,unitData:_0x1633ef}=_0x1e21ab,_0x22e99c=(_0x48ea22=_0x108cc7==null?void 0x0:_0x108cc7[_0x42b614])==null?void 0x0:_0x48ea22[_0x3f8baa],_0x123696=(_0x27ab6d=_0x1633ef==null?void 0x0:_0x1633ef[_0x42b614])==null?void 0x0:_0x27ab6d[_0x3f8baa];return{'arrayFormulaCellDataMatrix':_0x22e99c,'unitDataMatrix':_0x123696};}[_0x9268c(0x20c)](_0x450f9d,_0x2651bc,_0x4ca366){const _0x389f57=_0x9268c,_0x49e51e=this[_0x389f57(0x15a)][_0x389f57(0x3fa)](_0x450f9d,_0x2651bc,_0x4ca366),_0x28fe82=[],_0x29a1b7=new _0x475d1b[(_0x389f57(0x405))]();if(_0x49e51e){const {rangeCache:_0x39b753,matrix:_0x5c2541,oldRangeCache:_0x39270d,oldMatrix:_0x48c5d2}=_0x49e51e,_0x594643=_0x5608c1(_0x39270d),_0x389825=_0x5608c1(_0x39b753);_0x28fe82[_0x389f57(0x17b)](..._0x389825,..._0x594643),_0x48c5d2&&_0x39270d&&_0x594643[_0x389f57(0x3df)](_0x1d1909=>{const _0x227599=_0x389f57;for(let _0x5cff6f=_0x1d1909[_0x227599(0x2ff)];_0x5cff6f<=_0x1d1909[_0x227599(0x1b9)];_0x5cff6f++)for(let _0x4a4c08=_0x1d1909[_0x227599(0x1e9)];_0x4a4c08<=_0x1d1909[_0x227599(0x277)];_0x4a4c08++)_0x29a1b7['realDeleteValue'](_0x5cff6f,_0x4a4c08);}),_0x5c2541&&_0x389825&&_0x389825[_0x389f57(0x3df)](_0x2053b1=>{const _0x151337=_0x389f57;for(let _0x2e04e3=_0x2053b1[_0x151337(0x2ff)];_0x2e04e3<=_0x2053b1['endRow'];_0x2e04e3++)for(let _0x19686f=_0x2053b1[_0x151337(0x1e9)];_0x19686f<=_0x2053b1['endColumn'];_0x19686f++)_0x29a1b7[_0x151337(0x316)](_0x2e04e3,_0x19686f,_0x5c2541[_0x151337(0x25a)](_0x2e04e3,_0x19686f));});}const _0x88ac48={};return _0x88ac48[_0x450f9d]={[_0x2651bc]:_0x2c3319(_0x28fe82)},{'runtimeCellData':{[_0x450f9d]:{[_0x2651bc]:_0x29a1b7}},'dirtyRanges':_0x88ac48};}[_0x9268c(0x3dc)](){}};_0x5c421c=_0x5a3704([_0xe01a7d(0x0,_0x475d1b[_0x9268c(0x3b0)](_0x29b926[_0x9268c(0x420)])),_0xe01a7d(0x1,_0x475d1b[_0x9268c(0x260)]),_0xe01a7d(0x2,_0x475d1b[_0x9268c(0x3b0)](_0x45a5e0[_0x9268c(0x21e)])),_0xe01a7d(0x3,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x342)])),_0xe01a7d(0x4,_0x475d1b['Inject'](_0x45a5e0[_0x9268c(0x390)])),_0xe01a7d(0x5,_0x475d1b['Inject'](_0x475d1b[_0x9268c(0x250)]))],_0x5c421c);var _0x102ef5=Object[_0x9268c(0x379)],_0x12eaaf=(_0x2ed33c,_0x2e2bd3,_0x26168a,_0x4fb5df)=>{const _0x508679=_0x9268c;for(var _0x1b89e0=_0x4fb5df>0x1?void 0x0:_0x4fb5df?_0x102ef5(_0x2e2bd3,_0x26168a):_0x2e2bd3,_0x29582e=_0x2ed33c[_0x508679(0x32d)]-0x1,_0x36ec1d;_0x29582e>=0x0;_0x29582e--)(_0x36ec1d=_0x2ed33c[_0x29582e])&&(_0x1b89e0=_0x36ec1d(_0x1b89e0)||_0x1b89e0);return _0x1b89e0;},_0x39f6dc=(_0x34ab4b,_0x559ff1)=>(_0x11edf6,_0x52fada)=>_0x559ff1(_0x11edf6,_0x52fada,_0x34ab4b);let _0x5a61c4=class extends _0x475d1b[_0x9268c(0x158)]{constructor(_0x3f18b0,_0x703603,_0x147a8e,_0x1c329d){const _0x188644=_0x9268c;super(),_0x346b88(this,_0x188644(0x38f),new _0x475d1b[(_0x188644(0x2ba))]()),(this[_0x188644(0x2d4)]=_0x3f18b0,this[_0x188644(0x258)]=_0x703603,this[_0x188644(0x220)]=_0x147a8e,this[_0x188644(0x1d7)]=_0x1c329d,this[_0x188644(0x263)]());}[_0x9268c(0x263)](){const _0x3b4095=_0x9268c;this['disposeWithMe'](this[_0x3b4095(0x258)][_0x3b4095(0x2f9)]({'getMutations':_0x48cf7a=>{const _0x4a25f1=_0x3b4095;if(_0x48cf7a['id']===_0x44476f[_0x4a25f1(0x3ea)]['id']||_0x48cf7a['id']===_0x44476f[_0x4a25f1(0x383)]['id']){const _0x3012b8=[],_0x4b3bdf=[],_0x3db749=this[_0x4a25f1(0x220)]['getCurrentSelections']()['map'](_0x135bc8=>_0x135bc8[_0x4a25f1(0x3bd)]),_0x27621e=_0x44476f[_0x4a25f1(0x340)](this['_univerInstanceService']);if(!_0x27621e)return{'redos':[],'undos':[]};const {unitId:_0xf8915a,subUnitId:_0x37326c}=_0x27621e,_0x163e23={},_0x328580=this[_0x4a25f1(0x1d7)][_0x4a25f1(0x46c)](_0xf8915a,_0x37326c);if(_0x328580!=null&&_0x328580[_0x4a25f1(0x3d7)])for(const [_0x2843bf,_0x3dbe8c]of _0x328580){const {unitId:_0x22e3bf,subUnitId:_0xe2eb4d,row:_0x1c4b13,col:_0x5a0b4b}=_0x3dbe8c[_0x4a25f1(0x1bf)];_0x22e3bf===_0x27621e[_0x4a25f1(0x329)]&&_0xe2eb4d===_0x27621e['subUnitId']&&(_0x163e23[_0x1c4b13+'-'+_0x5a0b4b]=_0x2843bf);}return _0x3db749&&_0x27621e&&_0x3db749['forEach'](_0x395fee=>{const _0x42a733=_0x4a25f1;_0x475d1b[_0x42a733(0x297)][_0x42a733(0x1f7)](_0x395fee,(_0x55bc6e,_0x36d28d)=>{const _0x22c006=_0x42a733,_0x17fa92=_0x55bc6e+'-'+_0x36d28d;if(_0x163e23[_0x17fa92]){const _0x222caa=_0x163e23[_0x17fa92];_0x3012b8['push']({'id':_0x5a8bef['id'],'params':{'unitId':_0xf8915a,'subUnitId':_0x37326c,'pivotTableId':_0x222caa}});const _0x1d3d9d=this[_0x22c006(0x1d7)][_0x22c006(0x35a)](_0xf8915a,_0x222caa),_0x1c91fc=this['_sheetsPivotTableConfigModel'][_0x22c006(0x346)](_0xf8915a,_0x37326c,_0x222caa);_0x4b3bdf['push']({'id':_0x2288ec['id'],'params':{'unitId':_0xf8915a,'subUnitId':_0x37326c,'pivotTableId':_0x222caa,'pivotTableConfig':_0x1c91fc,'collectionConfig':_0x1d3d9d}});}});}),{'redos':_0x3012b8,'undos':_0x4b3bdf};}return{'redos':[],'undos':[]};}}));}};_0x5a61c4=_0x12eaaf([_0x39f6dc(0x0,_0x475d1b[_0x9268c(0x261)]),_0x39f6dc(0x1,_0x475d1b[_0x9268c(0x3b0)](_0x44476f[_0x9268c(0x375)])),_0x39f6dc(0x2,_0x475d1b['Inject'](_0x44476f['SheetsSelectionsService'])),_0x39f6dc(0x3,_0x475d1b[_0x9268c(0x3b0)](_0x29b926['SheetsPivotTableConfigModel']))],_0x5a61c4);var _0x13cba6=Object[_0x9268c(0x379)],_0x108d86=(_0x59f59f,_0x55affd,_0x5af76b,_0x3c3ad2)=>{const _0x58105c=_0x9268c;for(var _0x360bea=_0x3c3ad2>0x1?void 0x0:_0x3c3ad2?_0x13cba6(_0x55affd,_0x5af76b):_0x55affd,_0x20c42c=_0x59f59f[_0x58105c(0x32d)]-0x1,_0x1a973d;_0x20c42c>=0x0;_0x20c42c--)(_0x1a973d=_0x59f59f[_0x20c42c])&&(_0x360bea=_0x1a973d(_0x360bea)||_0x360bea);return _0x360bea;},_0x38b117=(_0x174447,_0x3ce23d)=>(_0x2673b7,_0x116dcc)=>_0x3ce23d(_0x2673b7,_0x116dcc,_0x174447);let _0x91f317=class extends _0x475d1b[_0x9268c(0x158)]{constructor(_0x7d8bcc,_0x486083,_0x2beea1,_0x2cc8de,_0x135c6e,_0x27557e){const _0x58f562=_0x9268c;super(),this['_localeService']=_0x7d8bcc,this[_0x58f562(0x258)]=_0x486083,this[_0x58f562(0x2cd)]=_0x2beea1,this['_univerInstanceService']=_0x2cc8de,this['_sheetsPivotTableConfigModel']=_0x135c6e,this[_0x58f562(0x2b0)]=_0x27557e,this[_0x58f562(0x1d4)]();}[_0x9268c(0x30d)](_0xa43a6f,_0x3a6360,_0x4c281b){const _0x2db51a=_0x9268c,{pageView:_0x42baee,cornerView:_0x5a9f5e,rowView:_0x8f918e,colView:_0x10133f,dataView:_0x2e703c}=_0x3a6360,_0x525b23=_0xa43a6f;let _0x3c68e8;if(_0x4c281b)_0x3c68e8=[..._0x4dd364(_0x525b23)];else{const _0x2e7f7d=_0xc7a07b(_0x525b23,_0x42baee,!0x0),_0x515980=_0x42baee[_0x2db51a(0x16f)]>=0x0?_0x42baee[_0x2db51a(0x16f)]+0x1:0x0,_0x3b4b1d=_0x5a9f5e[_0x2db51a(0x166)],_0x202910=_0x5a9f5e['colCount'],_0x440221=_0x2e7f7d[_0x2db51a(0x32d)]>0x0?_0xe9af5e:0x0,_0x1c6f50=_0xc7a07b({'row':_0x525b23['row']+_0x515980+_0x440221,'col':_0x525b23[_0x2db51a(0x2b7)]},_0x5a9f5e,!0x1,!0x1),_0x5a7622=_0xc7a07b({'row':_0x525b23[_0x2db51a(0x18c)]+_0x515980+_0x440221+_0x3b4b1d,'col':_0x525b23[_0x2db51a(0x2b7)]},_0x8f918e,!0x1,!0x0),_0x5aef9a=_0xc7a07b({'row':_0x525b23[_0x2db51a(0x18c)]+_0x515980+_0x440221,'col':_0x525b23[_0x2db51a(0x2b7)]+_0x202910},_0x10133f,!0x1,!0x0),_0x4b18e2=_0xc7a07b({'row':_0x525b23['row']+_0x515980+_0x440221+_0x3b4b1d,'col':_0x525b23[_0x2db51a(0x2b7)]+_0x202910},_0x2e703c,!0x1,!0x0);_0x3c68e8=[..._0x2e7f7d,..._0x1c6f50,..._0x5a7622,..._0x5aef9a,..._0x4b18e2];}return _0x3c68e8;}[_0x9268c(0x1d4)](){const _0x3133bd=_0x9268c;this[_0x3133bd(0x2c9)](this['_sheetsPivotTableService'][_0x3133bd(0x311)][_0x3133bd(0x1f3)](this[_0x3133bd(0x2b0)][_0x3133bd(0x311)]['getInterceptPoints']()[_0x3133bd(0x22a)],{'handler':(_0x5bd93b,_0x5f02e4)=>{const _0x13523c=_0x3133bd,{cellInfo:_0x534e4c,view:_0x463bd1,isEmpty:_0x204a89}=_0x5f02e4,_0x16200e=_0x534e4c,{unitId:_0x4644e5,subUnitId:_0x40a0ab}=_0x16200e,_0x37f544=this[_0x13523c(0x30d)](_0x534e4c,_0x463bd1,_0x204a89),_0x4742e3=this[_0x13523c(0x258)][_0x13523c(0x221)]({'unitId':_0x4644e5,'subUnitId':_0x40a0ab,'ranges':_0x37f544}),_0x4fae88=_0x3f1ba5(this[_0x13523c(0x2cd)],_0x4644e5,_0x40a0ab,_0x37f544);_0x4fae88['shouldClear']&&(_0x4742e3['redos']['push'](_0x4fae88[_0x13523c(0x15c)]),_0x4742e3[_0x13523c(0x1c7)][_0x13523c(0x17b)](_0x4fae88[_0x13523c(0x422)]));const _0x3db735=this[_0x13523c(0x246)](_0x463bd1,_0x534e4c);return _0x4742e3['redos'][_0x13523c(0x17b)](..._0x3db735[_0x13523c(0x30e)]),_0x4742e3['undos'][_0x13523c(0x17b)](..._0x3db735['undos']),{'redos':_0x4742e3['redos'],'undos':_0x4742e3[_0x13523c(0x1c7)]};}}));}[_0x9268c(0x246)](_0x51f420,_0x542316){const _0x3c50a9=_0x9268c,{col:_0x26c7f3,unitId:_0x4a784e,subUnitId:_0x3535ad}=_0x542316,_0x6fb7d2=[],_0x131b50=[],_0x23eb8f=_0x44476f[_0x3c50a9(0x340)](this[_0x3c50a9(0x2d4)],{'unitId':_0x4a784e,'subUnitId':_0x3535ad});if(!_0x542316||!_0x51f420||!_0x23eb8f)return{'undos':_0x131b50,'redos':_0x6fb7d2};const _0x289142=this['_sheetsPivotTableConfigModel']['getTextInfo'](),{colView:_0xfa6016,dataView:_0x47658d,cornerView:_0x376fc6,rowView:_0x13c759,formatMap:_0x58aded}=_0x51f420,_0x279236=_0x55f414(_0xfa6016,_0x289142,!0x0,_0x58aded),_0x3a0f5a=_0x55f414(_0x13c759,_0x289142,!0x1,_0x58aded),_0x389dba=_0x2cf7ad(_0x47658d),_0x2e19cb=_0x2ea84b(_0x376fc6),{worksheet:_0x1ef12a}=_0x23eb8f;if(typeof window<'u'&&window[_0x3c50a9(0x3d2)]){const _0x2344dd=_0x47785e['getFontStyleString']({..._0x442467[_0x3c50a9(0x3b2)]}),_0x3844bc=_0x47785e[_0x3c50a9(0x157)]['getTextSize'](_0x279236,_0x2344dd)['width']+0x10,_0x4bcffd=_0x47785e[_0x3c50a9(0x157)][_0x3c50a9(0x2ab)](_0x389dba,_0x2344dd)[_0x3c50a9(0x247)],_0x3532b6=Math['floor'](Math[_0x3c50a9(0x328)](_0x3844bc,_0x4bcffd))+0x10,_0x686bec=Math[_0x3c50a9(0x229)](_0x47785e[_0x3c50a9(0x157)][_0x3c50a9(0x2ab)](_0x3a0f5a,_0x2344dd)['width']),_0x2b4874=Math[_0x3c50a9(0x229)](_0x47785e[_0x3c50a9(0x157)][_0x3c50a9(0x2ab)](_0x2e19cb,_0x2344dd)['width']),_0x4d6cf6=Math[_0x3c50a9(0x328)](_0x686bec,_0x2b4874,0x28)+0xc,_0x4c0aef=_0xfa6016['colCount']+_0x376fc6[_0x3c50a9(0x40d)],_0x21f985={},_0x13ecb5={};for(let _0x4f64ac=_0x26c7f3;_0x4f64ac<_0x26c7f3+_0x4c0aef;_0x4f64ac++){const _0x38f1d7=_0x1ef12a[_0x3c50a9(0x276)](_0x4f64ac);_0x21f985[_0x4f64ac]=_0x38f1d7,_0x4f64ac-_0x26c7f3<_0x376fc6['colCount']?_0x13ecb5[_0x4f64ac-_0x26c7f3]=_0x4d6cf6:_0x13ecb5[_0x4f64ac-_0x26c7f3]=_0x3532b6;}_0x6fb7d2['push']({'id':_0x44476f[_0x3c50a9(0x16d)]['id'],'params':{'subUnitId':_0x3535ad,'unitId':_0x4a784e,'ranges':[{'startColumn':_0x26c7f3,'endColumn':_0x26c7f3+_0x4c0aef-0x1,'startRow':0x0,'endRow':_0x1ef12a[_0x3c50a9(0x418)]()-0x1}],'colWidth':_0x13ecb5}}),_0x131b50[_0x3c50a9(0x17b)]({'id':_0x44476f[_0x3c50a9(0x16d)]['id'],'params':{'subUnitId':_0x3535ad,'unitId':_0x4a784e,'ranges':[{'startColumn':_0x26c7f3,'endColumn':_0x26c7f3+_0x4c0aef-0x1,'startRow':0x0,'endRow':_0x1ef12a[_0x3c50a9(0x418)]()-0x1}],'colWidth':_0x21f985}});}return{'undos':_0x131b50,'redos':_0x6fb7d2};}};_0x91f317=_0x108d86([_0x38b117(0x0,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x3b7)])),_0x38b117(0x1,_0x475d1b[_0x9268c(0x3b0)](_0x44476f[_0x9268c(0x375)])),_0x38b117(0x2,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x250)])),_0x38b117(0x3,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x261)])),_0x38b117(0x4,_0x475d1b[_0x9268c(0x3b0)](_0x29b926[_0x9268c(0x15d)])),_0x38b117(0x5,_0x475d1b[_0x9268c(0x3b0)](_0x29b926['SheetsPivotTableService']))],_0x91f317);var _0x1250ec=Object[_0x9268c(0x379)],_0x307282=(_0xb822bb,_0x3f6d96,_0x452d66,_0x479be5)=>{const _0x4224db=_0x9268c;for(var _0x35ed95=_0x479be5>0x1?void 0x0:_0x479be5?_0x1250ec(_0x3f6d96,_0x452d66):_0x3f6d96,_0x265f4a=_0xb822bb[_0x4224db(0x32d)]-0x1,_0x370520;_0x265f4a>=0x0;_0x265f4a--)(_0x370520=_0xb822bb[_0x265f4a])&&(_0x35ed95=_0x370520(_0x35ed95)||_0x35ed95);return _0x35ed95;},_0x229a00=(_0x40123a,_0x50f9e0)=>(_0x106230,_0x30bbd3)=>_0x50f9e0(_0x106230,_0x30bbd3,_0x40123a);let _0xa8891d=class extends _0x475d1b[_0x9268c(0x158)]{constructor(_0x3268a6,_0x1a08cb,_0x327d30,_0x5ea92e,_0x3c1767,_0x1e5842,_0x30f34b){const _0x260990=_0x9268c;super(),_0x346b88(this,_0x260990(0x38f),new _0x475d1b[(_0x260990(0x2ba))]()),(this[_0x260990(0x2cd)]=_0x3268a6,this[_0x260990(0x20d)]=_0x1a08cb,this[_0x260990(0x31d)]=_0x327d30,this[_0x260990(0x2d4)]=_0x5ea92e,this[_0x260990(0x1d7)]=_0x3c1767,this['_sheetsPivotTableAdaptorModel']=_0x1e5842,this['_sheetInterceptorService']=_0x30f34b,this[_0x260990(0x1c6)]());}[_0x9268c(0x1c6)](){const _0x4a12bb=_0x9268c,_0x162c69=(_0x555991,_0x39f5f3)=>{const _0x593ee7=_0x5b70,_0x4e0f67=this[_0x593ee7(0x2d4)][_0x593ee7(0x243)](_0x475d1b[_0x593ee7(0x194)][_0x593ee7(0x461)]);if(!_0x4e0f67||!(_0x4e0f67==null?void 0x0:_0x4e0f67[_0x593ee7(0x171)](_0x39f5f3)))return;this['disposableCollection'][_0x593ee7(0x3dc)]();const _0xe7a2d=_0x300428=>this[_0x593ee7(0x456)](_0x300428,_0x555991,_0x39f5f3),_0x49378c=this['_sheetsPivotTableConfigModel'][_0x593ee7(0x46c)](_0x555991,_0x39f5f3);if(!(_0x49378c!=null&&_0x49378c[_0x593ee7(0x3d7)]))return;Array[_0x593ee7(0x3fd)](_0x49378c[_0x593ee7(0x3c6)]())[_0x593ee7(0x1c5)](_0x299392=>{const _0xc52ce2=_0x593ee7,{row:_0x537bb4,col:_0x522c62}=_0x299392[_0xc52ce2(0x1bf)];return _0x475d1b[_0xc52ce2(0x335)](_0x537bb4,_0x522c62);})[_0x593ee7(0x3df)](_0x487004=>{const _0x1edd08=_0x593ee7;this['disposableCollection'][_0x1edd08(0x156)](this['_refRangeService'][_0x1edd08(0x1cf)](_0x487004,_0xe7a2d,_0x555991,_0x39f5f3));});},_0x4ce297=()=>{const _0x73d80d=_0x5b70,_0x3884a7=this[_0x73d80d(0x2d4)][_0x73d80d(0x243)](_0x475d1b[_0x73d80d(0x194)][_0x73d80d(0x461)]);if(_0x3884a7){const _0x1cfc43=_0x3884a7['getActiveSheet']();if(!_0x1cfc43)return;_0x162c69(_0x3884a7['getUnitId'](),_0x1cfc43[_0x73d80d(0x3e2)]());}};this['disposeWithMe'](this['_commandService'][_0x4a12bb(0x24d)](_0x4c14c2=>{const _0x439725=_0x4a12bb;if(_0x4c14c2['id']===_0x44476f[_0x439725(0x397)]['id']){const _0x39974c=_0x4c14c2[_0x439725(0x352)],_0x26d160=_0x39974c[_0x439725(0x1ca)],_0x1c88ae=_0x39974c[_0x439725(0x329)];if(!_0x26d160||!_0x1c88ae)return;_0x162c69(_0x1c88ae,_0x26d160);}})),this['disposeWithMe'](this[_0x4a12bb(0x1d7)]['pivotInitCompleted$']['subscribe'](_0x46c902=>{_0x46c902&&_0x4ce297();})),this['disposeWithMe'](this['_sheetsPivotTableConfigModel']['pivotConfigChange$'][_0x4a12bb(0x282)](_0xd77ca9=>{const _0x4cf257=_0x4a12bb,_0x5d678e=_0x44476f[_0x4cf257(0x340)](this[_0x4cf257(0x2d4)]);if(!_0x5d678e)return;const {unitId:_0x130945,subUnitId:_0x429cc9}=_0x5d678e,{unitId:_0x844639,subUnitId:_0x30c562}=_0xd77ca9;_0x130945!==_0x844639||_0x429cc9!==_0x30c562||_0x162c69(_0x130945,_0x429cc9);})),_0x4ce297();}[_0x9268c(0x456)](_0x3dce21,_0x446747,_0xd41f8b){const _0x2ccaf3=_0x9268c;switch(_0x3dce21['id']){case _0x44476f[_0x2ccaf3(0x356)]['id']:return this[_0x2ccaf3(0x43b)](_0x3dce21[_0x2ccaf3(0x352)],_0x446747,_0xd41f8b);}return{'redos':[],'undos':[]};}[_0x9268c(0x43b)](_0x4ed1a3,_0x44dd83,_0x56d967){const _0x537fac=_0x9268c,{fromRange:_0x56c2c7,toRange:_0x54ceb1}=_0x4ed1a3,_0x177ba6=[],_0x21efa2=[],_0x1898e1=_0x44476f[_0x537fac(0x340)](this[_0x537fac(0x2d4)]);if(!_0x1898e1)return{'undos':_0x21efa2,'redos':_0x177ba6};if(_0x44dd83!==_0x1898e1[_0x537fac(0x329)]||_0x56d967!==_0x1898e1[_0x537fac(0x1ca)])return{'undos':_0x21efa2,'redos':_0x177ba6};const _0xe8fdd0=this[_0x537fac(0x1d7)][_0x537fac(0x46c)](_0x44dd83,_0x56d967);if(_0xe8fdd0!=null&&_0xe8fdd0[_0x537fac(0x3d7)])for(const [_0x2be3ca,_0x36e13d]of _0xe8fdd0){const {unitId:_0x38cc01,subUnitId:_0x21f723,row:_0x20dae5,col:_0x3b94f5}=_0x36e13d[_0x537fac(0x1bf)];if(_0x38cc01===_0x1898e1[_0x537fac(0x329)]&&_0x21f723===_0x1898e1[_0x537fac(0x1ca)]){const _0x2d1853=_0x475d1b[_0x537fac(0x335)](_0x20dae5,_0x3b94f5);if(_0x475d1b[_0x537fac(0x3a7)][_0x537fac(0x259)](_0x2d1853,_0x56c2c7)){const _0x312de8=_0x20dae5-_0x56c2c7[_0x537fac(0x2ff)],_0x42da2a=_0x3b94f5-_0x56c2c7[_0x537fac(0x1e9)],_0x3e1496={'row':_0x54ceb1[_0x537fac(0x2ff)]+_0x312de8,'col':_0x54ceb1[_0x537fac(0x1e9)]+_0x42da2a};_0x177ba6['push']({'id':_0x3e9757['id'],'params':{'unitId':_0x38cc01,'subUnitId':_0x21f723,'pivotTableId':_0x2be3ca,'targetCellPosition':_0x3e1496}}),_0x21efa2[_0x537fac(0x17b)]({'id':_0x3e9757['id'],'params':{'unitId':_0x38cc01,'subUnitId':_0x21f723,'pivotTableId':_0x2be3ca,'targetCellPosition':{'row':_0x20dae5,'col':_0x3b94f5}}});const _0x518120=_0x3e1496['row']-_0x20dae5,_0x49b516=_0x3e1496[_0x537fac(0x2b7)]-_0x3b94f5,_0x3970be=[],_0x17aa33=this[_0x537fac(0x427)]['getPivotItemRenderInfoCache'](_0x38cc01,_0x21f723,_0x2be3ca),_0xc8b701=_0x17aa33==null?void 0x0:_0x17aa33['rangesInfo'];if(_0xc8b701){Object[_0x537fac(0x16a)](_0xc8b701)[_0x537fac(0x3df)](_0x527646=>{_0xc8b701[_0x527646]['forEach'](_0x289fe4=>{const _0x4f5fe3=_0x5b70,_0x5ea29b={..._0x289fe4};_0x5ea29b[_0x4f5fe3(0x2ff)]=_0x289fe4[_0x4f5fe3(0x2ff)]+_0x518120,_0x5ea29b[_0x4f5fe3(0x1b9)]=_0x289fe4[_0x4f5fe3(0x1b9)]+_0x518120,_0x5ea29b['startColumn']=_0x289fe4[_0x4f5fe3(0x1e9)]+_0x49b516,_0x5ea29b[_0x4f5fe3(0x277)]=_0x289fe4[_0x4f5fe3(0x277)]+_0x49b516,_0x3970be[_0x4f5fe3(0x17b)](_0x5ea29b);});});const _0x295ee0=this['_sheetInterceptorService']['generateMutationsByRanges']({'unitId':_0x38cc01,'subUnitId':_0x21f723,'ranges':_0x3970be});_0x177ba6[_0x537fac(0x17b)](..._0x295ee0[_0x537fac(0x30e)]),_0x21efa2[_0x537fac(0x17b)](..._0x295ee0['undos']);const _0x2a27f7=_0x3f1ba5(this['_injector'],_0x38cc01,_0x21f723,_0x3970be);_0x2a27f7[_0x537fac(0x46b)]&&(_0x177ba6[_0x537fac(0x17b)](_0x2a27f7[_0x537fac(0x15c)]),_0x21efa2[_0x537fac(0x17b)](_0x2a27f7['setRangeValueUndoMutation']));}}}}return{'redos':_0x177ba6,'undos':_0x21efa2};}};_0xa8891d=_0x307282([_0x229a00(0x0,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x250)])),_0x229a00(0x1,_0x475d1b[_0x9268c(0x3b0)](_0x44476f[_0x9268c(0x344)])),_0x229a00(0x2,_0x475d1b[_0x9268c(0x342)]),_0x229a00(0x3,_0x475d1b[_0x9268c(0x261)]),_0x229a00(0x4,_0x475d1b[_0x9268c(0x3b0)](_0x29b926[_0x9268c(0x15d)])),_0x229a00(0x5,_0x475d1b['Inject'](_0x29b926['SheetsPivotTableAdaptorModel'])),_0x229a00(0x6,_0x475d1b[_0x9268c(0x3b0)](_0x44476f['SheetInterceptorService']))],_0xa8891d);var _0x35592b=Object[_0x9268c(0x379)],_0x2c8151=(_0x542ea6,_0x14d1b9,_0xde1b5d,_0x437e4e)=>{for(var _0x4e188c=_0x437e4e>0x1?void 0x0:_0x437e4e?_0x35592b(_0x14d1b9,_0xde1b5d):_0x14d1b9,_0x3d22c2=_0x542ea6['length']-0x1,_0x4af8bd;_0x3d22c2>=0x0;_0x3d22c2--)(_0x4af8bd=_0x542ea6[_0x3d22c2])&&(_0x4e188c=_0x4af8bd(_0x4e188c)||_0x4e188c);return _0x4e188c;},_0x5ca6a3=(_0x56ab30,_0x514192)=>(_0x490763,_0x110aa1)=>_0x514192(_0x490763,_0x110aa1,_0x56ab30);let _0x1dec4b=class extends _0x475d1b[_0x9268c(0x158)]{constructor(_0x2064d5,_0x2a82f6){const _0x494de4=_0x9268c;super(),this[_0x494de4(0x258)]=_0x2064d5,this[_0x494de4(0x1d7)]=_0x2a82f6,this['_initRemoveSheetCommandInterceptor']();}['_initRemoveSheetCommandInterceptor'](){const _0x26fac2=_0x9268c;this[_0x26fac2(0x2c9)](this[_0x26fac2(0x258)][_0x26fac2(0x2f9)]({'getMutations':_0xca9e8c=>{const _0x51f116=_0x26fac2;if(_0xca9e8c['id']===_0x44476f[_0x51f116(0x197)]['id']){const _0x2e683f=[],_0x5c5ef2=[],_0x3509a8=_0xca9e8c[_0x51f116(0x352)],{unitId:_0x506dab,subUnitId:_0x17fe16}=_0x3509a8;if(!_0x506dab||!_0x17fe16)return{'undos':_0x5c5ef2,'redos':_0x2e683f};const _0xa40c61=this[_0x51f116(0x1d7)]['getSubUnitPivotConfigs'](_0x506dab,_0x17fe16);if(_0xa40c61!=null&&_0xa40c61[_0x51f116(0x3d7)])for(const [_0x26a41b,_0x19ece]of _0xa40c61){_0x2e683f['push']({'id':_0x5a8bef['id'],'params':{'unitId':_0x506dab,'subUnitId':_0x17fe16,'pivotTableId':_0x26a41b}});const _0x2d099c={...this['_sheetsPivotTableConfigModel'][_0x51f116(0x35a)](_0x506dab,_0x26a41b)};_0x5c5ef2['push']({'id':_0x2288ec['id'],'params':{'unitId':_0x506dab,'subUnitId':_0x17fe16,'pivotTableId':_0x26a41b,'pivotTableConfig':_0x19ece,'collectionConfig':_0x2d099c}});}return{'redos':_0x2e683f,'undos':_0x5c5ef2};}return{'redos':[],'undos':[]};}}));}};_0x1dec4b=_0x2c8151([_0x5ca6a3(0x0,_0x475d1b[_0x9268c(0x3b0)](_0x44476f['SheetInterceptorService'])),_0x5ca6a3(0x1,_0x475d1b[_0x9268c(0x3b0)](_0x29b926[_0x9268c(0x15d)]))],_0x1dec4b);var _0x570a26=Object[_0x9268c(0x379)],_0x54415e=(_0x5db40b,_0x1c38c8,_0x341bde,_0x1e3534)=>{const _0xdabfbd=_0x9268c;for(var _0x56349a=_0x1e3534>0x1?void 0x0:_0x1e3534?_0x570a26(_0x1c38c8,_0x341bde):_0x1c38c8,_0x37ca83=_0x5db40b[_0xdabfbd(0x32d)]-0x1,_0x5d25a2;_0x37ca83>=0x0;_0x37ca83--)(_0x5d25a2=_0x5db40b[_0x37ca83])&&(_0x56349a=_0x5d25a2(_0x56349a)||_0x56349a);return _0x56349a;},_0x4e0ee6=(_0x1bf46e,_0x24101b)=>(_0x20a190,_0x4efb7f)=>_0x24101b(_0x20a190,_0x4efb7f,_0x1bf46e);let _0x59010d=class extends _0x475d1b[_0x9268c(0x158)]{constructor(_0x12a59a,_0xc37116,_0x548a83,_0x165608,_0x1d0333,_0x186e8d){const _0x12ea7c=_0x9268c;super(),this['_commandService']=_0x12a59a,this[_0x12ea7c(0x2d9)]=_0xc37116,this[_0x12ea7c(0x427)]=_0x548a83,this[_0x12ea7c(0x1d7)]=_0x165608,this['_univerInstanceService']=_0x1d0333,this['_activeDirtyManagerService']=_0x186e8d,this['_initDataSendListener'](),this['registerDirtyService']();}[_0x9268c(0x45f)](){const _0x1b156f=_0x9268c;this[_0x1b156f(0x2c9)](this[_0x1b156f(0x31d)][_0x1b156f(0x24d)](_0x178f19=>{const _0x17373a=_0x1b156f;if(_0x178f19['id']!==_0x29dd01['id'])return;const _0x14ebe9=_0x178f19[_0x17373a(0x352)];this[_0x17373a(0x2d9)]['handleAsyncResponse'](_0x14ebe9);})),this[_0x1b156f(0x2c9)](this[_0x1b156f(0x31d)][_0x1b156f(0x24d)](_0x278194=>{const _0x55b987=_0x1b156f;if(_0x278194['id']===_0x2c1bd3['id']){const _0x4bd935=_0x278194['params'];if(_0x4bd935){const {unitId:_0x5a4cdd,subUnitId:_0x4c824c,oldSubUnitId:_0x8ce42,pivotTableId:_0x2233d5,pivotTableConfig:_0x1f0dc2,collectionConfig:_0x109d36}=_0x4bd935;this[_0x55b987(0x1d7)][_0x55b987(0x313)](_0x5a4cdd,_0x8ce42,_0x4bd935[_0x55b987(0x213)],null),this[_0x55b987(0x1d7)][_0x55b987(0x313)](_0x5a4cdd,_0x4c824c,_0x2233d5,_0x1f0dc2),this['_sheetsPivotTableConfigModel'][_0x55b987(0x3c5)](_0x5a4cdd,_0x109d36);}}})),this['disposeWithMe'](this['_commandService'][_0x1b156f(0x24d)](_0x2ac990=>{const _0x1e234a=_0x1b156f;if(_0x2ac990['id']!==_0x421bc0['id'])return;const _0x4e43ef=_0x44476f['getSheetCommandTarget'](this[_0x1e234a(0x2d4)]);if(!_0x4e43ef)return;const {unitId:_0x2c83c2,subUnitId:_0x5ba5c2}=_0x4e43ef,_0x5d15c9=_0x2ac990['params'];if(_0x5d15c9[_0x1e234a(0x39e)]&&Object[_0x1e234a(0x16a)](_0x5d15c9[_0x1e234a(0x39e)])['forEach'](_0xfe4053=>{const _0x34a6c0=_0x1e234a;var _0x19487c;(_0x19487c=_0x5d15c9[_0x34a6c0(0x39e)])!=null&&_0x19487c[_0xfe4053]&&this['_sheetsPivotTableConfigModel'][_0x34a6c0(0x3c5)](_0xfe4053,_0x5d15c9[_0x34a6c0(0x39e)][_0xfe4053]);}),_0x5d15c9['single']){const _0x30a4cd=_0x5d15c9[_0x1e234a(0x467)],{unitId:_0x39fe24,subUnitId:_0x4120d9,view:_0x2581fd,pivotTableId:_0xa7b998,type:_0x571569,pivotConfig:_0x34b990}=_0x30a4cd;if(_0x571569===_0x94aa6e[_0x1e234a(0x22e)])this['_sheetsPivotTableAdaptorModel'][_0x1e234a(0x216)]({'unitId':_0x39fe24,'subUnitId':_0x4120d9,'pivotTableId':_0xa7b998,'type':_0x571569}),this[_0x1e234a(0x1d7)][_0x1e234a(0x313)](_0x39fe24,_0x4120d9,_0xa7b998,null);else{const _0x4fe239=new _0x1d148a[(_0x1e234a(0x442))]();_0x4fe239[_0x1e234a(0x33d)](_0x2581fd),this[_0x1e234a(0x1d7)][_0x1e234a(0x313)](_0x39fe24,_0x4120d9,_0xa7b998,_0x34b990),this[_0x1e234a(0x427)][_0x1e234a(0x216)]({'unitId':_0x39fe24,'subUnitId':_0x4120d9,'pivotTableId':_0xa7b998,'type':_0x571569,'view':_0x4fe239}),this['_sheetsPivotTableAdaptorModel'][_0x1e234a(0x274)]({'unitId':_0x39fe24,'subUnitId':_0x4120d9,'view':_0x4fe239,'pivotTableId':_0xa7b998,'type':_0x571569});}}else _0x5d15c9['batch']&&(_0x5d15c9['batch'][_0x1e234a(0x3df)](_0x2e2bb3=>{const _0x1a87c4=_0x1e234a,{unitId:_0x1246da,subUnitId:_0x576fed,view:_0x52ed91,pivotTableId:_0x5d1230,type:_0x32c389,pivotConfig:_0x15a61e}=_0x2e2bb3,_0x23b4a1=new _0x1d148a['PivotView']();_0x23b4a1[_0x1a87c4(0x33d)](_0x52ed91),this['_sheetsPivotTableConfigModel'][_0x1a87c4(0x313)](_0x1246da,_0x576fed,_0x5d1230,_0x15a61e),this[_0x1a87c4(0x427)][_0x1a87c4(0x274)]({'unitId':_0x1246da,'subUnitId':_0x576fed,'view':_0x23b4a1,'pivotTableId':_0x5d1230,'type':_0x32c389});}),this[_0x1e234a(0x1d7)]['setPivotInitCompleted']());this[_0x1e234a(0x427)][_0x1e234a(0x438)](_0x2c83c2,_0x5ba5c2);}));}[_0x9268c(0x370)](){const _0x14f158=_0x9268c;this['_activeDirtyManagerService'][_0x14f158(0x33b)](_0x3a2ea0['id'],{'commandId':_0x3a2ea0['id'],'getDirtyData'(_0x5ee2a9){const _0x2ee653=_0x14f158;return{'dirtyUnitFeatureMap':_0x5ee2a9[_0x2ee653(0x352)]};}});}};_0x59010d=_0x54415e([_0x4e0ee6(0x0,_0x475d1b['Inject'](_0x475d1b[_0x9268c(0x342)])),_0x4e0ee6(0x1,_0x475d1b[_0x9268c(0x3b0)](_0x29b926[_0x9268c(0x17d)])),_0x4e0ee6(0x2,_0x475d1b['Inject'](_0x29b926[_0x9268c(0x317)])),_0x4e0ee6(0x3,_0x475d1b[_0x9268c(0x3b0)](_0x29b926[_0x9268c(0x15d)])),_0x4e0ee6(0x4,_0x475d1b['Inject'](_0x475d1b[_0x9268c(0x261)])),_0x4e0ee6(0x5,_0x45a5e0[_0x9268c(0x3f2)])],_0x59010d);var _0x41a0f3=Object[_0x9268c(0x2a0)],_0x54400e=Object['getOwnPropertyDescriptor'],_0x24fd30=(_0x42b446,_0x1c8c55,_0x88679d)=>_0x1c8c55 in _0x42b446?_0x41a0f3(_0x42b446,_0x1c8c55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x88679d}):_0x42b446[_0x1c8c55]=_0x88679d,_0x336c9d=(_0x337229,_0x4af478,_0x4edd5f,_0x30bf16)=>{const _0x3dab52=_0x9268c;for(var _0x1a32df=_0x30bf16>0x1?void 0x0:_0x30bf16?_0x54400e(_0x4af478,_0x4edd5f):_0x4af478,_0x58b947=_0x337229[_0x3dab52(0x32d)]-0x1,_0x8259ad;_0x58b947>=0x0;_0x58b947--)(_0x8259ad=_0x337229[_0x58b947])&&(_0x1a32df=_0x8259ad(_0x1a32df)||_0x1a32df);return _0x1a32df;},_0x14a1fb=(_0x327ea8,_0x146844)=>(_0x51c351,_0x2f5e2e)=>_0x146844(_0x51c351,_0x2f5e2e,_0x327ea8),_0x21976e=(_0x3025ea,_0x2c0a4c,_0x3bcc13)=>_0x24fd30(_0x3025ea,typeof _0x2c0a4c!=_0x9268c(0x207)?_0x2c0a4c+'':_0x2c0a4c,_0x3bcc13);_0x29b926['UniverSheetsPivotTablePlugin']=class extends _0x475d1b[_0x9268c(0x23d)]{constructor(_0xde0736=_0x180b02,_0xef41f8,_0x5c2193,_0x3d6981,_0x139aec){const _0x32c86f=_0x9268c;super(),this[_0x32c86f(0x36a)]=_0xde0736,this[_0x32c86f(0x2cd)]=_0xef41f8,this[_0x32c86f(0x31d)]=_0x5c2193,this[_0x32c86f(0x336)]=_0x3d6981,this[_0x32c86f(0x1a7)]=_0x139aec;const {..._0x3bb044}=_0x475d1b['merge']({},_0x180b02,this['_config']);this['_configService']['setConfig'](_0x571d16,_0x3bb044),this[_0x32c86f(0x359)](),this[_0x32c86f(0x252)]();}['_initConfig'](){const _0x33638a=_0x9268c;var _0x50efee;const _0x4e02e0=(_0x50efee=this[_0x33638a(0x36a)])==null?void 0x0:_0x50efee[_0x33638a(0x353)];this[_0x33638a(0x336)][_0x33638a(0x21b)](_0x1bd950,_0x4e02e0===!0x0);}[_0x9268c(0x413)](){const _0x53e11b=_0x9268c;var _0x3bda03;let _0x10b5da=[];const _0x4beea5=(_0x3bda03=this['_config'])==null?void 0x0:_0x3bda03[_0x53e11b(0x353)];_0x4beea5===!0x0?_0x10b5da=[[_0x29b926[_0x53e11b(0x3c8)]],[_0x29b926['SheetsPivotRPCService']],[_0x59010d],[_0x29b926[_0x53e11b(0x317)]],[_0x29b926[_0x53e11b(0x15d)]],[_0x1dec4b],[_0x5a61c4],[_0xa8891d],[_0x91f317]]:_0x4beea5===!0x1?_0x10b5da=[[_0x29b926['SheetsPivotDataSourceModel']],[_0x5c421c]]:_0x4beea5===void 0x0&&(_0x10b5da=[[_0x29b926[_0x53e11b(0x420)]],[_0x5c421c],[_0x29b926[_0x53e11b(0x3c8)]],[_0x29b926[_0x53e11b(0x17d)]],[_0x59010d],[_0x29b926[_0x53e11b(0x317)]],[_0x29b926[_0x53e11b(0x15d)]],[_0x1dec4b],[_0x5a61c4],[_0xa8891d],[_0x91f317]]),_0x10b5da[_0x53e11b(0x3df)](_0x3014d8=>this[_0x53e11b(0x2cd)][_0x53e11b(0x156)](_0x3014d8)),[_0x5c421c,_0x59010d,_0x29b926[_0x53e11b(0x3c8)],_0x5a61c4,_0x1dec4b,_0xa8891d,_0x91f317][_0x53e11b(0x3df)](_0x4805dd=>{const _0x5be35d=_0x53e11b;this[_0x5be35d(0x2cd)][_0x5be35d(0x2a4)](_0x4805dd)&&this[_0x5be35d(0x2cd)][_0x5be35d(0x3bb)](_0x4805dd);});}[_0x9268c(0x359)](){const _0x3ae7c7=_0x9268c;[_0x1de490,_0x1e70af,_0x3785b0,_0xe702fa,_0x351b41,_0x38d5bf,_0x5eb53,_0x15a8f9,_0x407283,_0x4355ed,_0xc51722,_0x11d2c7,_0x34f389,_0xc0f12b,_0x2288ec,_0x20cf48,_0x5a8bef,_0x56c11b,_0x4bd734,_0x4c2526,_0x13719d,_0x171424,_0xb9bf76,_0x5f0a5e,_0x3e0bbd,_0x50d5f1,_0x3e9757,_0x239074,_0x29dd01,_0x421bc0,_0x170a7e,_0xab0afc,_0x2b2f10,_0x2def0f,_0x499dd5,_0x5c08b3,_0x2703fc,_0x3a2ea0,_0x2c1bd3,_0x46c5bd,_0x5dda94,_0x3c9c58,_0x239d2b][_0x3ae7c7(0x3df)](_0x31a311=>{const _0x5f5b43=_0x3ae7c7;var _0x5ca181;(_0x5ca181=this[_0x5f5b43(0x1a7)])==null||_0x5ca181[_0x5f5b43(0x2b2)](_0x31a311),this[_0x5f5b43(0x31d)][_0x5f5b43(0x1d1)](_0x31a311);});}},_0x21976e(_0x29b926[_0x9268c(0x32c)],_0x9268c(0x291),_0x2ecc25),_0x21976e(_0x29b926['UniverSheetsPivotTablePlugin'],_0x9268c(0x436),_0x475d1b[_0x9268c(0x194)][_0x9268c(0x461)]),_0x29b926[_0x9268c(0x32c)]=_0x336c9d([_0x475d1b['DependentOn'](_0x474209[_0x9268c(0x2dc)]),_0x14a1fb(0x1,_0x475d1b['Inject'](_0x475d1b[_0x9268c(0x250)])),_0x14a1fb(0x2,_0x475d1b[_0x9268c(0x3b0)](_0x475d1b[_0x9268c(0x342)])),_0x14a1fb(0x3,_0x475d1b[_0x9268c(0x260)]),_0x14a1fb(0x4,_0x475d1b[_0x9268c(0x292)](_0x702276[_0x9268c(0x1d0)]))],_0x29b926[_0x9268c(0x32c)]),_0x29b926[_0x9268c(0x2be)]=_0x3785b0,_0x29b926['AddPivotFieldMutation']=_0x56c11b,_0x29b926[_0x9268c(0x1ab)]=_0x1e70af,_0x29b926[_0x9268c(0x236)]=_0x2288ec,_0x29b926[_0x9268c(0x22b)]=_0x1de490,_0x29b926[_0x9268c(0x1be)]=_0xe9af5e,_0x29b926[_0x9268c(0x2f5)]=_0x41ce1b,_0x29b926['MovePivotFieldCommand']=_0xe702fa,_0x29b926['MovePivotTableCommand']=_0x34f389,_0x29b926['PivotDisplayDataType']=_0x3ca738,_0x29b926[_0x9268c(0x1de)]=_0xc0f12b,_0x29b926[_0x9268c(0x2b1)]=_0x94aa6e,_0x29b926[_0x9268c(0x1bd)]=_0x3a2ea0,_0x29b926[_0x9268c(0x1a8)]=_0xb63b0b,_0x29b926[_0x9268c(0x18e)]=_0x351b41,_0x29b926[_0x9268c(0x417)]=_0x171424,_0x29b926[_0x9268c(0x389)]=_0x5a8bef,_0x29b926[_0x9268c(0x3e1)]=_0xb9bf76,_0x29b926[_0x9268c(0x161)]=_0x239d2b,_0x29b926[_0x9268c(0x2d7)]=_0x571d16,_0x29b926[_0x9268c(0x421)]=_0x2ecc25,_0x29b926[_0x9268c(0x450)]=_0x15a8f9,_0x29b926[_0x9268c(0x1ea)]=_0x5f0a5e,_0x29b926[_0x9268c(0x443)]=_0x2def0f,_0x29b926[_0x9268c(0x1e7)]=_0x3c9c58,_0x29b926['SetPivotFilterCommand']=_0x4355ed,_0x29b926['SetPivotFilterMutation']=_0x13719d,_0x29b926[_0x9268c(0x264)]=_0x50d5f1,_0x29b926[_0x9268c(0x41f)]=_0x3e9757,_0x29b926[_0x9268c(0x432)]=_0x407283,_0x29b926[_0x9268c(0x280)]=_0x3e0bbd,_0x29b926[_0x9268c(0x169)]=_0x2b2f10,_0x29b926[_0x9268c(0x2d3)]=_0x46c5bd,_0x29b926['SetPivotValueFilterMutation']=_0x5dda94,_0x29b926[_0x9268c(0x22c)]=_0x5eb53,_0x29b926['UpdateFieldPositionMutation']=_0x170a7e,_0x29b926[_0x9268c(0x451)]=_0xc51722,_0x29b926['UpdatePivotFieldSourceInfoMutation']=_0x2703fc,_0x29b926['UpdatePivotTableSourceRangeCommand']=_0x11d2c7,_0x29b926[_0x9268c(0x434)]=_0x5c08b3,_0x29b926[_0x9268c(0x368)]=_0x38d5bf,_0x29b926[_0x9268c(0x1ba)]=_0xab0afc,_0x29b926[_0x9268c(0x395)]=_0x44fef9,_0x29b926[_0x9268c(0x35f)]=_0x30b5d9,_0x29b926[_0x9268c(0x1c3)]=_0x442467,_0x29b926[_0x9268c(0x269)]=_0x3f1ba5,_0x29b926[_0x9268c(0x338)]=_0xc7a07b,_0x29b926[_0x9268c(0x242)]=_0x4dd364,_0x29b926[_0x9268c(0x308)]=_0x126764,_0x29b926['getInsertRowColMutations']=_0x26091e,_0x29b926[_0x9268c(0x39c)]=_0x289393,_0x29b926['getPivotInfoByLicense']=_0x406235,_0x29b926[_0x9268c(0x424)]=_0x336cf4,_0x29b926[_0x9268c(0x1d2)]=_0x551650,_0x29b926['unionPivotViewRange']=_0x5608c1,Object['defineProperty'](_0x29b926,Symbol[_0x9268c(0x27d)],{'value':_0x9268c(0x40c)});}));function _0x5b70(_0x52c03d,_0x458879){const _0x30ce75=_0x30ce();return _0x5b70=function(_0x5b707d,_0x2829b8){_0x5b707d=_0x5b707d-0x155;let _0x597d9c=_0x30ce75[_0x5b707d];return _0x597d9c;},_0x5b70(_0x52c03d,_0x458879);}function _0x30ce(){const _0x4c8b2d=['dimension','getSheets','rowFields','AsyncInterceptorManager','dispose','removeCollections','pivotTableIndexConfig','forEach','getSourceName','RenamePivotFieldMutation','getSheetId','MonthDate','_initSnapshot','_resourceManagerService','sheet.command.update-pivot-table-source-range','sheets-pivot.cellDateGroupDisplay.yearQuarter','BadReference','getColCount','ClearSelectionContentCommand','handleMoveRange','getFieldById','getFullYear','CustomCommandExecutionError','sheet.mutation.set-pivot-collapse','unshift','sideEffectUpdateWorkerCache','IActiveDirtyManagerService','getFieldDataType','getValueIndex','BehaviorSubject','sheets-pivot.columnName','DataField','result','query','getViewData','sheets-pivot.dateGroup.quarter','_init','from','new','cornerRanges','some','sheets-pivot.averageName','update','getPivotTableIdByCell','addRecord','ObjectMatrix','UniverProLicense','Row','adjustSheetCellData','number','set','amd','Module','colCount','sheet.command.remove-pivot-field','message','setPivotFilter','collectionChange$','setFieldFormat','onStarting','find','ReleaseType','_viewUpdate$','RemovePivotFieldMutation','getRowCount','UniverSheets','viewUpdate$','4UOMKHU','getSubtotal','_viewData','createLabelField','SetPivotPositionMutation','SheetsPivotDataSourceModel','SHEET_PIVOT_TABLE_PLUGIN','setRangeValueUndoMutation','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','getPivotTableInfo','IUndoRedoService','addField','_sheetsPivotTableAdaptorModel','Sum\x20of\x20','setPivotTableConfig','getNoUsedDataFieldIds','getRangeStartEndInfo','PivotTableChangeTypeEnum','isDateGroupFieldJSON','grandTotal','sheets-pivot.dateGroup.hourMinute','uniqueDataFieldName','sheets-pivot.minName','SetPivotSortCommand','sheets-pivot.productName','UpdatePivotTableSourceRangeMutation','ΣValue','type','_localeService','markDirty','_pivotConfigChange$','UniverSheetsFilter','getRefRangeMutationsByMoveRange','collapseInfo','removePivotField','data','onQueryStart','fieldsCollectionChange$','SetSheetsFilterRangeMutation','PivotView','SetPivotFieldFormatMutation','RANGE_TYPE','_host','sheets-pivot.emptyPivot.row','PivotErrorTypeEnum','generateHexNumber','fieldIds','sortInfo','28354natiSA','sheet.mutation.add-pivot-table','isPrefixValue','getStyles','UpdateValuePosition','SetPivotCollapseCommand','UpdatePivotFieldSettingCommand','Min\x20of\x20','sourceRangeInfo','valid','refreshGroupField','_refRangeHandle','refreshDataField','sheets-pivot.cellDateGroupDisplay.year','oldMatrix','REF','sheets-pivot.varName','sheet.mutation.pivot-update-field-source-info','oldRangeInfo','forValue','_initDataSendListener','_pivotRenderInfoCache','UNIVER_SHEET','_model','mergeWorksheetSnapshotWithDefault','getPivotTableMatrixInfo','Varp\x20of\x20','_updateModelCache','single','sheets-pivot.subTotal','sheet.mutation.pivot-update-field-position','toString','shouldClear','getSubUnitPivotConfigs','SHEET_PIVOT_IN_MAIN_THREAD','_ensurePivotItemRenderValueMatrixCache','COLUMN','add','FontCache','Disposable','pivotTableConfigs','_sheetsPivotDataSourceModel','addPivotTable','setRangeValueRedoMutation','SheetsPivotTableConfigModel','@univerjs/sheets-filter','CommandType','SetPivotFilter','ResetPivotFieldsConfigCommand','_fieldsCollectionChange$','sheets-pivot.cellDateGroupDisplay.yearMonth','getPivotTableCellData','getValuePosition','rowCount','_collectionConfigModel','refreshData','SetPivotSubtotalTypeMutation','keys','splice','filter','SetWorksheetColWidthMutation','setPivotTable','lastRow','PivotSubtotalTypeEnum','getSheetBySheetId','stringify','isEmpty','Column','lastCol','StdDevp\x20of\x20','_dataFieldManagerCollection','setRangeKeyMap','_globalComputingSrv','format','push','createDataFieldId','SheetsPivotRPCService','getPivotPerformCheck','AddPivotField','YearQuarter','SetPivotCollapse','setRange','Values','date','renameField','getSortInfo','endCollectChangeset','setSourceName','dataFieldManagerConfig','sheets-pivot.cellDateGroupDisplay.date','_queryingMap','row','_requestResolvers','RemovePivotFieldCommand','Existing','deleteField','rowRanges','updateFieldPosition','sheets-pivot.countNumsName','UniverInstanceType','excelDateToUnixMilliseconds','MovePivotField','RemoveSheetCommand','AddField','dataFieldsCollection','getTargetByPivotId','string','CELL_CONTENT','sheets-pivot.cellDateGroupDisplay.quarter','workbook\x20is\x20not\x20found','sheets-pivot.value','substring','New','InsertSheetCommand','getDate','getformat','removeField','getDataFieldId','_dataSyncPrimaryController','PositionType','PivotFilterTypeEnum','3fBOvMV','AddPivotTableCommand','setPivotSetting','getTableFieldById','isValue','parse','_textInfo','options','sheets-pivot.blank','exports','createInterceptorKey','updateView','reset','PivotCellStyleTypeEnum','rangeCache','endRow','UpdateValuePositionMutation','handleSourceRangeChange','value','PivotTableViewDirtyMarkOperation','BLANK_ROW_COUNT','targetCellInfo','getDataFieldItemInfo','sheets-pivot.dateGroup.monthDate','sheets-pivot.cellDateGroupDisplay.month','defaultThemeStyle','generateRandomId','map','_onRefRangeChange','undos','displayName','NAME','subUnitId','AddPivotTableWithConfig','_initViewModelBySheetInterceptor','SetRangeValuesMutation','panel','registerRefRange','DataSyncPrimaryController','registerCommand','transFromCellValue','iterateFieldByArea','_initCommandInterceptListener','triggerDirtyFeature','YearMonth','_sheetsPivotTableConfigModel','viewData$','addDataFieldWithoutUnitInfo','getFilterFieldIdByIndex','getLastRow','_configVersion$','fetchThroughAsyncInterceptors','PivotDrillDownCommand','IExclusiveRangeService','sheet.command.update-pivot-value-position','pushUndoRedo','iterateField','sheet.mutation.set-pivot-option','_subjectFieldsCollectionChange','_ensurePivotMap','fieldsConfig','SetPivotFieldsConfigCommand','PivotDateGroupFieldDateTypeEnum','startColumn','SetPivotCollapseMutation','dataFields','Max\x20of\x20','getFieldIds','filterInfo','getId','INTERCEPTOR_POINT','asObservable','getCellRaw','intercept','_initLocale','Date','Subject','foreach','rangeKeyMap','pivotInitCompleted$','updateValuePosition','_pivotTableMatrixInfo','updatePivotSource','getFieldCountByArea','sheets-pivot.cellDateGroupDisplay.yearMonthDate','parseInt','limit\x20pivot','Tools','getTargetByPivotTableId','IResourceManagerService','level','PivotTable','fetchThroughInterceptors','symbol','_exclusiveRangeService','SetCollapse','381355ZQlETP','30JwjBDh','getDirtyInfo','_refRangeService','fromJSON','isDateValue','862497XqBhws','subTotalStyle','sheet.mutation.add-pivot-field','pivotTableId','onQueryEnd','generateNewSheetName','clearRenderCache','updateViewData','colRanges','_generateUniqueVersion','token','setConfig','drillDown','varp','IFeatureCalculationManagerService','blank','_sheetsSelectionsService','generateMutationsByRanges','addCollectionByJSON','_subjectCollectionChange','@univerjs-pro/license','sheet.command.set-pivot-value-filter','sheets-pivot.countName','fields','Filter','floor','PIVOT_MUTATION_GENERATE','AddPivotTableWithConfigCommand','UpdateDateGroupCommand','getTextInfo','Delete','version','sheet.mutation.update-date-group','getName','clearExclusiveRangesByGroupId','updatePivotTableRangeInfo','ErrorType','dataRangeInfo','AddPivotTableMutation','8199477TlnEbf','slice','forRow','_pivotRenderValueMatrixCache','includes','minDate','Plugin','MUTATION','NORMAL','MAX_SAFE_INTEGER','Column\x20','getEmptyPivotRanges','getCurrentUnitForType','setCollapse','setValuePivotFilter','getAutoFitColumnsMutations','width','getFieldPositionInfoById','split','rangeType','body','Minute','onCommandExecuted','@univerjs/rpc','rowHeaderMap','Injector','object','_initConfig','RemoveSheetMutation','_subjectViewChange','countNums','addFieldWithSourceId','sheets-pivot.sumName','_sheetInterceptorService','intersects','getValue','STRING','Quarter','getUnitId','filterFields','leafStyle','IConfigService','IUniverInstanceService','reduce','_initClearSelectionCommandInterceptor','SetPivotOptionMutation','Count\x20of\x20','getInfo','executeCommand','sheets-pivot.dateGroup.minute','generateSetRangeValueMutations','_ensurePivotTableRangeInfo','_initPivotTextInfo','hasOwnProperty','StdDev\x20of\x20','RemoveSheetsFilterMutation','addExclusiveRange','PivotCallbackEnum','Hour','Average\x20of\x20','setSubtotalType','updateRenderCache','originTargetInfo','getColumnWidth','endColumn','getPivotDirtyViewInfo','_lifecycleService','return\x20','getPivotItemRenderInfoCache','bind','toStringTag','PivotDataFieldDataTypeEnum','queryDirtyPivotTable','SetPivotSortMutation','registerPluginResource','subscribe','DateGroupField','ManualFilter','Total','RemoveRowMutation','_pivotTableInstanceCache','getPivotDisplayConfig','getPivotTableInstance','sheet.mutation.send-pivot-config-local','setPivotSort','NotName','addPivotField','createAsyncInterceptorKey','getSubUnitPivotMatrix','_getAutoName','pluginName','Optional','matrix','updateDirtyPivotTable','isErrorValue','@univerjs/sheets','Range','Style','getMatrixValue','UniverProEnginePivot','sourceName','UniverEngineRender','Month','sequenceExecute','headerMap','defineProperty','function','None','InsertSheetMutation','has','sheet.mutation.remove-group-collection','getMatrixFromRunTimeData','_createExclusiveRange','getIntersectsPivotTable','rangesInfo','createCollectionWithDataRange','getTextSize','DrillDown','colHeaderMap','_globalComputedEndHelpFunc','updateViewInfo','_sheetsPivotTableService','PivotTableOperationEnum','registerSyncingMutations','_pivotInitCompleted$','Collapse','LS_CONFIG_KEY','setValueFilterInfo','col','_viewData$','areaInfo','DisposableCollection','min','UniverEngineFormula','1004688JYURsX','AddPivotFieldCommand','YearMonthDate','@univerjs/core','filterId','sheet.command.set-pivot-collapse','isFeatureAuthorizedWithinTime','resetPivotTable','#e6ebfb','hasField','DataFieldManager','getAutoDisplayName','disposeWithMe','leftOffset','PivotMultipleValueId','getRangeData','_injector','SetValuePivotFilter','DIV_BY_ZERO','getCellMatrix','average','rgb(240,241,243)','SetPivotValueFilterCommand','_univerInstanceService','numfmt','sheets-pivot.cellDateGroupDisplay.hourMinute','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','getColumnCount','_sheetsPivotRpcService','setTextInfo','sheet.operation.pivot-table-view-formula-mark-dirty','UniverLicensePlugin','getFieldInfo','RemovePivotField','removeValueFilterInfo','getFieldFormat','getHeaderMapItem','getFilterInfo','prefix','Year','removePivotTable','_initUnitDisposed','getRangeKey','_deletePivotTableInstanceCache','rangeKey','SetSubtotalType','setLabelFilterInfo','InsertSheetUndoMutationFactory','PivotTableFiledAreaEnum','BaseGroupField','rowInfo','getIndexesByPathStr','_initPivotDataGetListener','needSameDeleteModel','removeSourceRangeChange','getDataFieldByRangeKey','DEFAULT_PIVOT_NUMBER','addCollection','originalFieldId','isColMultiMeasure','interceptCommand','340352mbSrbT','call','broadcastCollectionChange','rxjs','valuePosition','startRow','_ensureViewDataMap','charCodeAt','@univerjs/engine-render','cellValue','SetPivotSetting','setDataRecordCount','sheet.mutation.send-pivot-view-local','Subtotal','getFieldListByArea','sheets-pivot.varpName','movePivotField','entries','getDataFieldByTableId','_getPivotAppliedRanges','redos','valueIndex','sheet.mutation.update-pivot-table-source-range','interceptor','Panel','updateConfigCache','UpdatePivotSource','NotFunction','setValue','SheetsPivotTableAdaptorModel','#1d32e9','removeDataField','#FFFFFF','info','valueFilter','_commandService','custom','SetValueFilter','sheet.command.set-pivot-fields-config','isArray','getFormat','925666kGCSff','sheets-pivot.stdDevpName','getRangeKeyList','NO_COMMERCIAL','getPivotTableModelConfig','max','unitId','updatePivotTableMatrixInfo','getConfig','UniverSheetsPivotTablePlugin','length','sheet.mutation.send-pivot-data-local','updateFieldSourceInfo','RemoveField','sheetName','Add','_updatePivotTableInstanceCache','_ensurePivotItemRenderInfoCache','cellToRange','_configService','registerCallbackWithEvent','getAdjustRangesPosition','existing','Var\x20of\x20','register','Grand\x20Total','formJSON','initDataRanges','name','getSheetCommandTarget','sheets-pivot.emptyPivot.column','ICommandService','sheet.mutation.send-init-pivot-text-local','RefRangeService','6JbSPZB','getPivotTableConfig','next','sheet.mutation.set-pivot-field-subtotal-type','getAutoDisplayNameFunction','getLastCol','PivotTableValuePositionEnum','AddPivotTable','getDataFieldByDataFieldId','count','getOriginFieldId','sheet.command.set-pivot-field-setting','_markDirty$','params','notExecuteFormula','isText','sheet.mutation.remove-pivot-field','MoveRangeCommand','getSubUnitPivotRenderCache','updateDataFieldsCollection','_initRegisterCommand','getCollection','SetPivotTableConfig','resetArea','getDataFieldManager','colInfo','canUsePivot','COMMAND','sheets.tabs.sheet','paths','addPivotTableWithConfig','setDisplayName','getTypeOfUnitDisposed$','measure','setSortInfo','UpdatePivotValuePositionCommand','serializeRangeWithSpreadsheet','_config','sheet.mutation.pivot-update-value-position','sheet.mutation.set-pivot-format','sheets-pivot.dateGroup.month','unshiftString','ResetPivotTable','registerDirtyService','NUMBER','numberToABC','sheet.command.add-pivot-field','valueFields','SheetInterceptorService','sheet.command.update-date-group','configVersion$','deleteDataField','getOwnPropertyDescriptor','pbt','NotNumber','delete','subtotal','ptn','sheet.command.reset-pivot-fields-config','_toJSON','Set','versions','ClearSelectionAllCommand','sheets-pivot.emptyPivot.filter','_pivotTableRangeInfo','markDirty$','addDirtyPivotTable','setPivotCollapse','RemovePivotTableMutation','_ensurePivotTableMatrixInfo','_updateRenderEmptyCache','column','InterceptorEffectEnum','toJSON','disposableCollection','GlobalComputingStatusService','OGPcmWhP\x20pwcrfsmWhP(6WcwPvw,\x20sG26Wcgwf)\x20{\x20\x20\x20\x20mrf\x20{\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x206WcwPvwnPOh3JrmCrrJf\x20=\x206WcwPvw.vs6Wm(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20hrWaWPxwvvJaw\x20=\x20Tld9.sJrvw(Jmh2(6WcwPvwnPOh3JrmCrrJf[U]));\x20\x20\x20\x20\x20\x20\x20\x20WO\x20(!hrWaWPxwvvJaw.Gp)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hrWaWPxwvvJaw.Gp\x20=\x209GM2wr(6WcwPvwnPOh3JrmCrrJf[u]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20WvEhrZwr\x20=\x20mfswhO\x20EhrZwr56h2J6lchsw\x20!==\x20\x27GPpwOWPwp\x27\x20&&\x20vw6O\x20WPvmJPcwhO\x20EhrZwr56h2J6lchsw;\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20chPmwbm\x20=\x20WvEhrZwr\x20?\x20vw6O\x20:\x20RWPphR;\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20MwvvJawEhrp\x20=\x20chPmwbm.__BJvw0u__.sJrvw(6WcwPvwnPOh3JrmCrrJf[U]);\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20MwvvJaw\x20=\x20chPmwbm.__ywb__.vmrWPaWOf(MwvvJawEhrp);\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20vWaPJmGrwEhrp\x20=\x20chPmwbm.__BJvw0u__.sJrvw(6WcwPvwnPOh3JrmCrrJf[k]);\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20vWaPJmGrw\x20=\x20chPmwbm.__ywb__.vmrWPaWOf(vWaPJmGrwEhrp);\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20vWaPQJ6Wp\x20=\x20chPmwbm.__twrWOf__(vWaPJmGrw,\x20MwvvJaw,\x20sG26Wcgwf);\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20phMJWP\x20=\x20hrWaWPxwvvJaw.pM;\x20\x20\x20\x20\x20\x20\x20\x20OGPcmWhP\x20WvKhMJWPxJmcXWPa(h3JmmwrP,\x20hyhvm)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20sJmmwrP\x20=\x20h3JmmwrP.rws6Jcw(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20Xhvm\x20=\x20hyhvm.rws6Jcw(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20sJmmwrP3Jrmv\x20=\x20sJmmwrP.vs6Wm(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20Xhvm3Jrmv\x20=\x20Xhvm.vs6Wm(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WO\x20(!sJmmwrP.WPc6Gpwv(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20rwmGrP\x20sJmmwrP\x20===\x20Xhvm;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WO\x20(sJmmwrP3Jrmv.6wPamX\x20<\x20U\x20||\x20sJmmwrP3Jrmv[j]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20rwmGrP\x20OJ6vw;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20sJmmwrPlGOOWb\x20=\x20sJmmwrP3Jrmv.v6Wcw(A).VhWP(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20XhvmlGOOWb\x20=\x20Xhvm3Jrmv.v6Wcw(-sJmmwrP3Jrmv.6wPamX\x20+\x20A).VhWP(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20rwmGrP\x20sJmmwrPlGOOWb\x20===\x20XhvmlGOOWb;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x206wm\x20phMJWPQJ6Wp\x20=\x20(phMJWP\x20&&\x20phMJWP.6wPamX)\x20?\x20phMJWP.vhMw((pMnmwM)\x20=>\x20WvKhMJWPxJmcXWPa(pMnmwM,\x206hcJmWhP.XhvmPJMw))\x20:\x20mrGw;\x20\x20\x20\x20\x20\x20\x20\x20WO\x20(6hcJmWhP.XhvmPJMw\x20===\x20\x276hcJ6Xhvm\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20phMJWPQJ6Wp\x20=\x20mrGw;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20chPvm\x20tJ6Wp\x20=\x20vWaPQJ6Wp\x20&&\x20phMJWPQJ6Wp;\x20\x20\x20\x20\x20\x20\x20\x20rwmGrP\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tJ6Wp,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20MwvvJaw:\x20hrWaWPxwvvJaw,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20cJmcX\x20(wrrhr)\x20{\x20\x20\x20\x20\x20\x20\x20\x20rwmGrP\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tJ6Wp:\x20OJ6vw,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20MwvvJaw:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','sheets-pivot.dateGroup.hour','dateType','#b2b2b2','applyChangeSet','sheet.command.move-pivot-field','SetWorksheetActiveOperation','startCollectChangeset','fontRenderExtension','_globalSubject','sheets-pivot.grandTotal','getPivotCellInfo','sheets-pivot.dateGroup.yearMonthDate','collectionConfig','concat','error','sheet.command.add-pivot-table','sheet.mutation.get-pivot-data-local','getUnit','getPivotTableRangeInfo','getDisplayName','HourMinute','Rectangle','getDataFieldBySourceName','tableFieldId','_featureCalculationManagerService','getMonth','columnFields','@univerjs/engine-formula','SetFieldFormat','dataFieldId','Inject','RenameField','colStyle','SetOptions','getUpdateRangeDeleteIds','sheet.mutation.remove-pivot-table','_globalComputedStartHelpFunc','LocaleService','FieldsCollection','textInfo','_collectionChange$','get','setPivotInitCompleted','range','sum','setName','contains','setDirty','Value','collections','UniverRpc','updateCollectionConfig','values','@univerjs-pro/engine-pivot','SheetsPivotTableService','SetPivotSort','CellValueType','GrandTotal','sheets-pivot.stdDevName','_deleteModelCache','collection','deleteUnitId','generateNullCell','asyncInterceptor','document','PivotViewCellValueTypeEnum','MIN_SAFE_INTEGER','Div0','sheets-pivot.dateGroup.yearMonth','size'];_0x30ce=function(){return _0x4c8b2d;};return _0x30ce();}
1
+ function _0x466a(_0x412d50,_0x20430f){const _0x51a118=_0x51a1();return _0x466a=function(_0x466acb,_0x392293){_0x466acb=_0x466acb-0x73;let _0x5e8d1e=_0x51a118[_0x466acb];return _0x5e8d1e;},_0x466a(_0x412d50,_0x20430f);}(function(_0x5adf4d,_0x2972e0){const _0x47e67b=_0x466a,_0x29b642=_0x5adf4d();while(!![]){try{const _0x5e3c33=parseInt(_0x47e67b(0x1e6))/0x1+-parseInt(_0x47e67b(0x1f8))/0x2*(parseInt(_0x47e67b(0x229))/0x3)+-parseInt(_0x47e67b(0x1b7))/0x4+-parseInt(_0x47e67b(0x1f3))/0x5+-parseInt(_0x47e67b(0x213))/0x6*(parseInt(_0x47e67b(0x314))/0x7)+parseInt(_0x47e67b(0x1ad))/0x8*(-parseInt(_0x47e67b(0x33f))/0x9)+parseInt(_0x47e67b(0x26c))/0xa;if(_0x5e3c33===_0x2972e0)break;else _0x29b642['push'](_0x29b642['shift']());}catch(_0x52590b){_0x29b642['push'](_0x29b642['shift']());}}}(_0x51a1,0xae35c),function(_0x2f22a9,_0x2c31e9){const _0x53431e=_0x466a;typeof exports=='object'&&typeof module<'u'?_0x2c31e9(exports,require('@univerjs-pro/engine-pivot'),require(_0x53431e(0x2de)),require(_0x53431e(0x2d3)),require(_0x53431e(0x33b)),require('rxjs'),require(_0x53431e(0x387)),require('@univerjs/sheets-filter'),require(_0x53431e(0x1b8)),require(_0x53431e(0x1a1))):typeof define==_0x53431e(0x246)&&define['amd']?define([_0x53431e(0x2d4),_0x53431e(0x2d1),'@univerjs/core','@univerjs/engine-formula','@univerjs/sheets','rxjs',_0x53431e(0x387),'@univerjs/sheets-filter',_0x53431e(0x1b8),_0x53431e(0x1a1)],_0x2c31e9):(_0x2f22a9=typeof globalThis<'u'?globalThis:_0x2f22a9||self,_0x2c31e9(_0x2f22a9[_0x53431e(0x37d)]={},_0x2f22a9['UniverProEnginePivot'],_0x2f22a9[_0x53431e(0x2c6)],_0x2f22a9[_0x53431e(0x299)],_0x2f22a9[_0x53431e(0x73)],_0x2f22a9[_0x53431e(0x21e)],_0x2f22a9[_0x53431e(0x239)],_0x2f22a9['UniverSheetsFilter'],_0x2f22a9['UniverRpc'],_0x2f22a9[_0x53431e(0x19d)]));}(this,function(_0x4b10df,_0x40290a,_0x22b490,_0x2189f1,_0x2c7bf0,_0x1e57bc,_0x19c977,_0x480a8a,_0x48a447,_0x3d7aa2){'use strict';const _0x3b026f=_0x466a;var _0x54e1b0=Object[_0x3b026f(0x23e)],_0x67e4ad=(_0x8e0107,_0x46ecad,_0x2fa9bd)=>_0x46ecad in _0x8e0107?_0x54e1b0(_0x8e0107,_0x46ecad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fa9bd}):_0x8e0107[_0x46ecad]=_0x2fa9bd,_0x57dd8e=(_0x574008,_0x556120,_0x262804)=>_0x67e4ad(_0x574008,typeof _0x556120!=_0x3b026f(0x396)?_0x556120+'':_0x556120,_0x262804);const _0x23e9ec=Number[_0x3b026f(0x20e)](0x68124c56),_0x55e6e5=0x10,_0x4a2a99=0x1,_0x4dbb63='SHEET_PIVOT_TABLE_PLUGIN',_0x365ec8=0x1,_0x218cb5=_0x3b026f(0x32a),_0x476294=_0x3b026f(0x2d7),_0x4c97bd=_0x3b026f(0x358),_0x28fff8='#f4f4f5',_0x18a7ab=_0x3b026f(0xa0),_0x2e3049=_0x3b026f(0x160),_0x1860dc=_0x3b026f(0x189),_0x2d5993=_0x3b026f(0x77),_0x2d60d0='#e6ebfa',_0x124a62=_0x3b026f(0x189),_0x2d61cc='#FFFFFF',_0x5a0792=_0x3b026f(0x28b),_0x28d420=0xe,_0x2542a1=0x6;var _0xbae8da=(_0x532e35=>(_0x532e35[_0x3b026f(0x346)]='existing',_0x532e35[_0x3b026f(0x170)]=_0x3b026f(0x25e),_0x532e35))(_0xbae8da||{});const _0x47a9d6={'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':''}}},_0x2ee3d2=0x1e,_0x53b06a={'b':{'s':0x1,'cl':{'rgb':_0x4c97bd}},'l':{'s':0x1,'cl':{'rgb':_0x4c97bd}},'r':{'s':0x1,'cl':{'rgb':_0x4c97bd}},'t':{'s':0x1,'cl':{'rgb':_0x4c97bd}}},_0x1d18db={'bg':{'rgb':_0x218cb5},'ht':0x2,'vt':0x2,'tb':0x1},_0x3626c9={'bg':{'rgb':_0x476294},'ht':0x2,'vt':0x2,'tb':0x1},_0x27e686={'rowStyle':{'bg':{'rgb':_0x5a0792},'bd':_0x53b06a,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x124a62},'bd':null,'cl':{'rgb':_0x2d61cc},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x53b06a,'bg':{'rgb':_0x2d60d0},'vt':0x2},'cornerStyle':{'bd':_0x53b06a,'bg':{'rgb':_0x2e3049},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x53b06a,'bg':{'rgb':_0x28fff8},'vt':0x2},'leafStyle':{'bd':_0x53b06a,'bg':{'rgb':_0x18a7ab},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x1860dc},'cl':{'rgb':_0x2d5993},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x53b06a,'vt':0x2}};function _0x42cc96(_0x38b3ec,_0x15a55a,_0xb2fe99){const _0x225875=_0x3b026f,_0x3276d8=_0x38b3ec[_0x225875(0x257)](_0x22b490[_0x225875(0x2f1)]),_0x24c6ed=_0xb2fe99[_0x225875(0x2d6)]('_');switch(_0x15a55a){case _0x40290a[_0x225875(0x399)][_0x225875(0xd3)]:return _0x3276d8['t'](_0x225875(0x2bb),..._0x24c6ed);case _0x40290a['PivotDateGroupFieldDateTypeEnum'][_0x225875(0x19a)]:return _0x3276d8['t'](_0x225875(0x225),..._0x24c6ed);case _0x40290a[_0x225875(0x399)][_0x225875(0x9f)]:return _0x3276d8['t'](_0x225875(0x1e9),..._0x24c6ed);case _0x40290a[_0x225875(0x399)][_0x225875(0x31b)]:return _0x3276d8['t'](_0x225875(0x26b),..._0x24c6ed);case _0x40290a[_0x225875(0x399)][_0x225875(0x348)]:return _0x3276d8['t'](_0x225875(0x32c),..._0x24c6ed);case _0x40290a[_0x225875(0x399)][_0x225875(0x187)]:return _0x3276d8['t'](_0x225875(0x307),..._0x24c6ed);case _0x40290a[_0x225875(0x399)][_0x225875(0x12a)]:return _0x3276d8['t'](_0x225875(0x285),..._0x24c6ed);case _0x40290a[_0x225875(0x399)][_0x225875(0x217)]:return _0x3276d8['t'](_0x225875(0x287),..._0x24c6ed);case _0x40290a[_0x225875(0x399)][_0x225875(0x366)]:return _0x3276d8['t'](_0x225875(0x1b0),..._0x24c6ed);case _0x40290a[_0x225875(0x399)][_0x225875(0x27e)]:return _0x3276d8['t'](_0x225875(0x2e3),..._0x24c6ed);}return'';}const _0x4a4a81=(_0x44405a,_0x45ea58,_0x5618b3,_0x18ad35)=>{const _0x2406b5=_0x3b026f;let _0x702a76;const _0x3de00b=_0x44405a['get'](_0x22b490[_0x2406b5(0x276)])[_0x2406b5(0x28c)](_0x22b490['UniverInstanceType'][_0x2406b5(0x19f)]);if(!_0x3de00b)return null;const _0x3edc61=_0x3de00b[_0x2406b5(0x280)]();let _0x1ac540;if(_0x5618b3&&(_0x1ac540=_0x3edc61[_0x2406b5(0x194)](_0x5618b3)),_0x45ea58!=null&&_0x45ea58['v']||(_0x45ea58==null?void 0x0:_0x45ea58['v'])===0x0){_0x702a76||(_0x702a76={});const _0x5c355e=_0x817337(_0x45ea58['v']);typeof _0x5c355e==_0x2406b5(0xc7)?_0x702a76['t']=_0x22b490['CellValueType'][_0x2406b5(0x18e)]:typeof _0x5c355e==_0x2406b5(0x33d)&&(_0x702a76['t']=_0x22b490[_0x2406b5(0x30b)][_0x2406b5(0x94)]),_0x702a76['v']=_0x5c355e;}if((_0x45ea58!=null&&_0x45ea58['i']||(_0x45ea58==null?void 0x0:_0x45ea58['i'])===0x0)&&(_0x702a76||(_0x702a76={}),_0x702a76['fi']=_0x45ea58['i']),_0x45ea58!=null&&_0x45ea58['s']&&(_0x702a76||(_0x702a76={}),_0x702a76[_0x2406b5(0x30f)]=_0x45ea58['s']),_0x5618b3&&(_0x702a76||(_0x702a76={}),_0x702a76['s']=_0x1ac540),_0x18ad35&&_0x702a76!=null&&_0x702a76['v']&&_0x702a76[_0x2406b5(0x30f)]!==_0x40290a[_0x2406b5(0x2ef)][_0x2406b5(0x37a)]&&_0x702a76['pbt']!==_0x40290a[_0x2406b5(0x2ef)]['Subtotal']){const _0xe358f8=String(_0x702a76['v']),{dateType:_0x56212e}=_0x18ad35;_0x702a76['v']=_0x42cc96(_0x44405a,_0x56212e,_0xe358f8),_0x702a76['t']=_0x22b490[_0x2406b5(0x30b)]['STRING'];}return _0x702a76;},_0x52b2be=(_0xd99275,_0x43a78b,_0x42bad0,_0x26c6d8)=>{const _0x1427dd=_0x3b026f;var _0x34a63d,_0x1fb6ff,_0x40ea7c,_0xdfcd5d,_0x86d9b6,_0xb6928c,_0x1a448e,_0x458c4a,_0x3f55d9,_0x570ed8,_0x4bf611,_0x411742,_0xd55447,_0x1ba536;const _0x22263b=_0x42bad0[_0x1427dd(0x157)],{cornerView:_0x302097,rowView:_0x32b219,colView:_0x3de193,dataView:_0x4b0944,pageView:_0xc5b2ac,formatMap:_0x491c43,groupInfo:_0x60e161}=_0x43a78b,{row:_0x3ec727,col:_0x42f54b}=_0x22263b,_0x1efae1=new _0x22b490[(_0x1427dd(0x398))](),_0x2dea70={},_0x4b8516={},_0x2548b0={},_0x2bf529={},_0x5c34d6={};let _0x212c13=_0x3ec727,_0x325047=_0x42f54b;Object[_0x1427dd(0x226)](_0xc5b2ac[_0x1427dd(0x28f)])[_0x1427dd(0x38c)](_0x446f95=>{const _0x26822b=_0x1427dd;Object[_0x26822b(0x226)](_0xc5b2ac['data'][Number(_0x446f95)])[_0x26822b(0x38c)](_0x4616dc=>{const _0x11eeab=_0x26822b,_0x4d452a={..._0xc5b2ac[_0x11eeab(0x28f)][Number(_0x446f95)][Number(_0x4616dc)]};_0x1efae1[_0x11eeab(0x194)](Number(_0x446f95)+_0x212c13,Number(_0x4616dc)+_0x325047,_0x4a4a81(_0xd99275,_0x4d452a,_0x27e686[_0x11eeab(0x199)]));});});const _0x149f9a=Object[_0x1427dd(0x226)](_0xc5b2ac[_0x1427dd(0x28f)])[_0x1427dd(0x28e)];_0x212c13+=_0x149f9a+(_0x149f9a?_0x365ec8:0x0);const _0x2cefb9=_0x302097[_0x1427dd(0x33a)](),_0x524af9=_0x302097[_0x1427dd(0x192)]();for(let _0x4f7c89=0x0;_0x4f7c89<_0x2cefb9;_0x4f7c89++)for(let _0x4b31c6=0x0;_0x4b31c6<_0x524af9;_0x4b31c6++){const _0x3e550e={...(_0x1fb6ff=(_0x34a63d=_0x302097[_0x1427dd(0x28f)])==null?void 0x0:_0x34a63d[_0x4f7c89])==null?void 0x0:_0x1fb6ff[_0x4b31c6]};_0x3e550e&&((_0x40ea7c=_0x32b219['headerMap'][_0x4b31c6])!=null&&_0x40ea7c[_0x1427dd(0xee)])&&_0x4b31c6===_0x524af9-0x1&&_0x4f7c89===_0x2cefb9-0x1&&(_0x3e550e['v']=''+_0x26c6d8[_0x1427dd(0x191)]),_0x1efae1['setValue'](_0x4f7c89+_0x212c13,_0x4b31c6+_0x325047,_0x4a4a81(_0xd99275,_0x3e550e,_0x27e686[_0x1427dd(0x306)]));}for(let _0x25c73c=0x0;_0x25c73c<_0x302097[_0x1427dd(0x321)]['length'];_0x25c73c++)_0x302097[_0x1427dd(0x321)][_0x25c73c]&&(_0x2548b0[''+(_0x25c73c+_0x325047)]=_0x302097['info'][_0x25c73c]);_0x325047+=_0x524af9;const _0x5ad86f=_0x3de193['headerMap'],_0x94843e=_0x3de193[_0x1427dd(0xbd)]()>=0x0?_0x3de193[_0x1427dd(0xbd)]()+0x1:0x0,_0x4d872b=_0x3de193[_0x1427dd(0x296)]()>=0x0?_0x3de193[_0x1427dd(0x296)]()+0x1:0x0;for(let _0x22709e=0x0;_0x22709e<_0x4d872b;_0x22709e++){for(let _0x492d64=0x0;_0x492d64<_0x94843e;_0x492d64++){const _0xfe20c6={...(_0x86d9b6=(_0xdfcd5d=_0x3de193[_0x1427dd(0x28f)])==null?void 0x0:_0xdfcd5d[_0x492d64])==null?void 0x0:_0x86d9b6[_0x22709e]},_0x103516=(_0xb6928c=_0x5ad86f[_0x492d64])==null?void 0x0:_0xb6928c['tableFieldId'],_0x424353=_0x491c43[_0x103516],_0xcf49bb=_0x60e161[_0x103516];_0xfe20c6&&(_0xfe20c6['v']=_0xa7d1b6(_0xfe20c6,_0x492d64===0x0&&((_0x1a448e=_0x3de193[_0x1427dd(0x1f1)](_0x22709e+0x1))==null?void 0x0:_0x1a448e['isValue']),_0x424353,_0x26c6d8));let _0x5512e9;_0x424353?_0x5512e9={..._0x27e686[_0x1427dd(0x156)],'n':{'pattern':_0x424353}}:_0x5512e9={..._0x27e686['colStyle']},_0x1efae1[_0x1427dd(0x194)](_0x492d64+_0x212c13,_0x22709e+_0x325047,_0x4a4a81(_0xd99275,_0xfe20c6,_0x5512e9,_0xcf49bb));}_0x3de193['info'][_0x22709e]&&(_0x4b8516[''+(_0x22709e+_0x325047)]=_0x3de193[_0x1427dd(0x321)][_0x22709e]),_0x3de193[_0x1427dd(0x323)][_0x22709e+0x1]&&(_0x5c34d6[''+(_0x22709e+_0x212c13+0x1)]=_0x3de193[_0x1427dd(0x323)][_0x22709e+0x1]);}_0x212c13+=_0x2cefb9;const _0x3219cc=_0x32b219['headerMap'],_0x4080a3=_0x32b219['getLastRow']()>=0x0?_0x32b219['getLastRow']()+0x1:0x0,_0x4f2772=_0x32b219[_0x1427dd(0x296)]()>=0x0?_0x32b219[_0x1427dd(0x296)]()+0x1:0x0;for(let _0x154351=0x0;_0x154351<_0x4080a3;_0x154351++){for(let _0x3c9e73=0x0;_0x3c9e73<_0x4f2772;_0x3c9e73++){const _0x436ba3={...(_0x3f55d9=(_0x458c4a=_0x32b219[_0x1427dd(0x28f)])==null?void 0x0:_0x458c4a[_0x154351])==null?void 0x0:_0x3f55d9[_0x3c9e73]},_0x2a98b4=(_0x570ed8=_0x3219cc[_0x3c9e73])==null?void 0x0:_0x570ed8[_0x1427dd(0x355)],_0x1e95df=_0x491c43[_0x2a98b4],_0x19216e=_0x60e161[_0x2a98b4];_0x436ba3&&(_0x436ba3['v']=_0xa7d1b6(_0x436ba3,!0x1,_0x1e95df,_0x26c6d8));let _0x3cad99;_0x32b219[_0x1427dd(0x321)][_0x154351][_0x1427dd(0x251)]===_0x32b219[_0x1427dd(0x192)]()?_0x3cad99=_0x27e686[_0x1427dd(0x393)]:_0x32b219[_0x1427dd(0x321)][_0x154351][_0x1427dd(0x342)]?_0x3cad99=_0x32b219[_0x1427dd(0x321)][_0x154351][_0x1427dd(0x251)]===0x0?_0x27e686[_0x1427dd(0x158)]:_0x27e686[_0x1427dd(0x2dc)]:_0x3cad99=_0x27e686['rowStyle'],_0x1e95df&&(_0x3cad99={..._0x3cad99,'n':{'pattern':_0x1e95df}}),_0x1efae1[_0x1427dd(0x194)](_0x154351+_0x212c13,_0x3c9e73+_0x42f54b,_0x4a4a81(_0xd99275,_0x436ba3,_0x3cad99,_0x19216e));}_0x32b219['info'][_0x154351]&&(_0x2dea70[''+(_0x154351+_0x212c13)]=_0x32b219['info'][_0x154351]),_0x32b219[_0x1427dd(0x323)][_0x154351]&&(_0x2bf529[''+(_0x154351+_0x42f54b)]=_0x32b219[_0x1427dd(0x323)][_0x154351]);}const _0xf09bd6=_0x4b0944[_0x1427dd(0x33a)](),_0x21d651=_0x4b0944['getColCount']();for(let _0xb7b6d6=0x0;_0xb7b6d6<_0xf09bd6;_0xb7b6d6++)for(let _0x430d24=0x0;_0x430d24<_0x21d651;_0x430d24++){const _0x264fec={...(_0x411742=(_0x4bf611=_0x4b0944[_0x1427dd(0x28f)])==null?void 0x0:_0x4bf611[_0xb7b6d6])==null?void 0x0:_0x411742[_0x430d24]};let _0x5ed0ad;_0x32b219[_0x1427dd(0x321)][_0xb7b6d6][_0x1427dd(0x342)]?_0x5ed0ad=_0x32b219['info'][_0xb7b6d6][_0x1427dd(0x251)]===0x0?_0x27e686[_0x1427dd(0x158)]:_0x27e686[_0x1427dd(0x2dc)]:_0x5ed0ad=_0x27e686['dataStyle'];const _0xb8c2ff=_0x32b219[_0x1427dd(0x321)][_0xb7b6d6][_0x1427dd(0x14e)],_0x25b3e9=_0x3de193[_0x1427dd(0x321)][_0x430d24]['valueIndex'],_0x39e7a9=Math[_0x1427dd(0x178)](_0xb8c2ff,_0x25b3e9),_0x26d12=_0x42bad0[_0x1427dd(0xc9)][_0x1427dd(0xa6)][_0x1427dd(0xf7)]();let _0x480c34='';_0x39e7a9<0x0?_0x480c34=(_0xd55447=_0x26d12[0x0])!=null?_0xd55447:'':_0x480c34=(_0x1ba536=_0x26d12[_0x39e7a9])!=null?_0x1ba536:'';const _0x13ca59=_0x491c43[_0x480c34];_0x13ca59&&(_0x5ed0ad={..._0x5ed0ad,'n':{'pattern':_0x13ca59}}),_0x1efae1['setValue'](_0xb7b6d6+_0x212c13,_0x430d24+_0x325047,_0x4a4a81(_0xd99275,_0x264fec,_0x5ed0ad));}return{'valueMatrix':_0x1efae1,'rowInfo':_0x2dea70,'colInfo':_0x4b8516,'cornerInfo':_0x2548b0,'rowHeaderMap':_0x2bf529,'colHeaderMap':_0x5c34d6};};function _0xa7d1b6(_0x41113c,_0x127d69,_0x3b6a5d,_0x476d39){const _0x14d6c1=_0x3b026f;let _0x4e35bb=_0x41113c['v'];_0x127d69&&(_0x4e35bb=''+_0x476d39[_0x14d6c1(0x191)]);const _0x4e446f=_0x41113c['t']&&(_0x41113c['t']&_0x40290a[_0x14d6c1(0x150)][_0x14d6c1(0x332)])>0x0;if(_0x4e446f&&(_0x4e35bb=''+_0x476d39[_0x14d6c1(0x1e3)]),_0x41113c['s']===_0x40290a[_0x14d6c1(0x2ef)]['Subtotal']){let _0x572891=_0x4e35bb,_0x39a486='';_0x40290a[_0x14d6c1(0x1c9)](_0x4e35bb)&&(_0x572891=_0x4e35bb[_0x14d6c1(0x2bf)],_0x39a486=_0x4e35bb['value']);const _0x2d25f6=_0x3b6a5d&&!_0x4e446f?_0x22b490[_0x14d6c1(0x322)]['format'](_0x3b6a5d,Number(_0x572891)):_0x572891;_0x39a486?_0x4e35bb=_0x2d25f6+'\x20'+_0x39a486:_0x4e35bb=_0x2d25f6+'\x20'+_0x476d39['sheets-pivot.subTotal'];}else _0x41113c['s']===_0x40290a['PivotCellStyleTypeEnum'][_0x14d6c1(0x37a)]&&(_0x4e35bb=_0x4e35bb+'\x20'+_0x476d39[_0x14d6c1(0x184)]);return _0x4e35bb;}function _0x817337(_0x3b30ba){const _0x2e7a8b=_0x3b026f;if(_0x40290a[_0x2e7a8b(0x266)](_0x3b30ba)){const {errorType:_0x42076d}=_0x3b30ba;switch(_0x42076d){case _0x40290a['PivotErrorTypeEnum'][_0x2e7a8b(0x1ec)]:return _0x2189f1[_0x2e7a8b(0x351)][_0x2e7a8b(0x264)];case _0x40290a[_0x2e7a8b(0x31a)][_0x2e7a8b(0x2e1)]:return _0x2189f1[_0x2e7a8b(0x351)]['NUM'];case _0x40290a[_0x2e7a8b(0x31a)][_0x2e7a8b(0x392)]:return _0x2189f1['ErrorType'][_0x2e7a8b(0x344)];case _0x40290a[_0x2e7a8b(0x31a)][_0x2e7a8b(0x39c)]:return _0x2189f1[_0x2e7a8b(0x351)]['NAME'];case _0x40290a[_0x2e7a8b(0x31a)][_0x2e7a8b(0x288)]:return _0x2189f1[_0x2e7a8b(0x351)][_0x2e7a8b(0x200)];}}return _0x3b30ba;}function _0x47bb47(_0x52f8e3,_0x575968,_0x5489ff=!0x1,_0x1f8e84=!0x1){const _0xa125ed=_0x3b026f,{data:_0x2acc69}=_0x575968,_0x23a863=_0x575968[_0xa125ed(0x33a)](),_0x473e77=_0x575968['getColCount']();if(_0x23a863<=0x0||_0x473e77<=0x0)return[];const _0x22efc9=_0x575968[_0xa125ed(0x296)](),_0x67de28=_0x575968[_0xa125ed(0xbd)](),_0x31c9d1=_0x1f8e84?_0x67de28>=0x0?_0x67de28+0x1:0x0:_0x23a863,_0x55e4a6=_0x1f8e84?_0x22efc9>=0x0?_0x22efc9+0x1:0x0:_0x473e77,{row:_0x127536,col:_0x25639e}=_0x52f8e3,_0x51072c=_0x127536,_0x1d304e=_0x25639e;if(_0x5489ff){const _0x18f203=[];for(const [_0x2356b5,_0x3149d4]of Object['entries'](_0x2acc69))for(const [_0x1a3582,_0x456af6]of Object['entries'](_0x3149d4))_0x18f203['push'](_0x22b490[_0xa125ed(0x1cc)](_0x51072c+Number(_0x2356b5),_0x1d304e+Number(_0x1a3582)));return _0x18f203;}else{const _0x539720=_0x1f8e84?_0x31c9d1>0x0?0x1:0x0:0x1,_0x2a8121=_0x1f8e84?_0x55e4a6>0x0?0x1:0x0:0x1,_0x22a982=_0x127536+_0x31c9d1-_0x539720,_0xb3484c=_0x25639e+_0x55e4a6-_0x2a8121;return[{'startRow':_0x51072c,'startColumn':_0x1d304e,'endRow':_0x22a982,'endColumn':_0xb3484c}];}}const _0x1ca274=_0x3b026f(0x385),_0x117177=_0x3b026f(0x379);var _0x5ab7c7=(_0x7a11e1=>(_0x7a11e1['Filter']=_0x3b026f(0x394),_0x7a11e1[_0x3b026f(0x33e)]='panel',_0x7a11e1[_0x3b026f(0x302)]=_0x3b026f(0x105),_0x7a11e1[_0x3b026f(0x190)]=_0x3b026f(0x190),_0x7a11e1['AddPivotTable']='addPivotTable',_0x7a11e1[_0x3b026f(0x338)]='movePivotField',_0x7a11e1['RemovePivotField']=_0x3b026f(0xb5),_0x7a11e1[_0x3b026f(0xfc)]=_0x3b026f(0x354),_0x7a11e1[_0x3b026f(0x397)]=_0x3b026f(0x2cf),_0x7a11e1[_0x3b026f(0x2bd)]=_0x3b026f(0x1fa),_0x7a11e1['SetPivotSetting']=_0x3b026f(0x384),_0x7a11e1[_0x3b026f(0xcf)]=_0x3b026f(0xd8),_0x7a11e1[_0x3b026f(0x2d9)]=_0x3b026f(0x1fc),_0x7a11e1[_0x3b026f(0x35f)]=_0x3b026f(0x74),_0x7a11e1['SetValuePivotFilter']='setValuePivotFilter',_0x7a11e1[_0x3b026f(0x373)]=_0x3b026f(0x381),_0x7a11e1[_0x3b026f(0xc1)]=_0x3b026f(0x24e),_0x7a11e1))(_0x5ab7c7||{});const _0x50dc43={'sheets-pivot.blankValue':_0x3b026f(0x281),'sheets-pivot.columnName':_0x3b026f(0x81),'sheets-pivot.subTotalText':_0x3b026f(0xd2),'sheets-pivot.grandTotalText':_0x3b026f(0x31c),'sheets-pivot.valueText':_0x3b026f(0x13e),'sheets-pivot.averageName':'Average\x20of\x20','sheets-pivot.countName':_0x3b026f(0x279),'sheets-pivot.countNumsName':'Count\x20of\x20','sheets-pivot.maxName':_0x3b026f(0x1cb),'sheets-pivot.minName':'Min\x20of\x20','sheets-pivot.productName':_0x3b026f(0x1f6),'sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x3b026f(0xec),'sheets-pivot.varName':'Var\x20of\x20','sheets-pivot.varpName':'Varp\x20of\x20','sheets-pivot.subTotal':_0x3b026f(0x34f),'sheets-pivot.grandTotal':_0x3b026f(0x31c),'sheets-pivot.value':_0x3b026f(0xed),'sheets-pivot.blank':'blank','sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':_0x3b026f(0x168),'sheets-pivot.emptyPivot.column':_0x3b026f(0xa8),'sheets-pivot.emptyPivot.values':_0x3b026f(0x114)},_0x223297={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x5d7e40=_0x22b490[_0x3b026f(0x218)](_0x3b026f(0x326)),_0x40e90f=_0x22b490['createInterceptorKey'](_0x3b026f(0x230));var _0x424e6c=(_0x5e033e=>(_0x5e033e[_0x3b026f(0x208)]=_0x3b026f(0x208),_0x5e033e[_0x3b026f(0x32e)]=_0x3b026f(0x32e),_0x5e033e['update']=_0x3b026f(0xf1),_0x5e033e))(_0x424e6c||{}),_0x1fd0cc=(_0x510a49=>(_0x510a49[_0x3b026f(0x38f)]=_0x3b026f(0x208),_0x510a49['Set']=_0x3b026f(0x118),_0x510a49[_0x3b026f(0x35d)]=_0x3b026f(0x32e),_0x510a49))(_0x1fd0cc||{});const _0xb9c4d6={0x0:'N',0x1:'p',0x2:'5',0x3:'S',0x4:'w',0x5:'x',0x6:'9',0x7:'o',0x8:'I',0x9:'T','G':'0','q':'1','w':'2','r':'3','e':'4','v':'6','E':'7','k':'8','d':'a','R':'b','P':'c','F':'d','c':'e','l':'f','g':'g','t':'h','D':'i','Y':'j','X':'k','M':'l','J':'m','N':'n','z':'q','o':'r','W':'s','s':'t','Q':'u','H':'v','Z':'y','K':'z','j':'A','n':'B','y':'C','b':'D','I':'E','V':'F','u':'G','A':'H','L':'J','O':'K','i':'L','C':'M','h':'O','T':'P','U':'Q','m':'R','x':'U','B':'V','p':'W','a':'X','f':'Y','S':'Z'},_0x13ffea=_0x3b026f(0x328),_0x5c2ddd={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},_0x39ada9={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':_0x3b026f(0x2b1),'handler':()=>!0x0},_0x5973c5={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':_0x3b026f(0x24a),'handler':()=>!0x0},_0x2017a3={'type':_0x22b490[_0x3b026f(0x17b)]['MUTATION'],'id':_0x3b026f(0x35b),'handler':()=>!0x0},_0x5461f8={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':'sheet.mutation.send-init-pivot-text-local','handler':()=>!0x0},_0x54fb9a=_0x3eb82b=>{const _0x418b76=_0x3b026f;var _0x351ff2;return((_0x351ff2=_0x3eb82b[_0x418b76(0x10f)])==null?void 0x0:_0x351ff2[_0x418b76(0x149)][_0x418b76(0x141)](/\r\n$/,''))||'';};class _0x4947c0 extends _0x40290a[_0x3b026f(0x24f)]{constructor(_0x45c155,_0x59344e){const _0xc33982=_0x3b026f;super(),_0x57dd8e(this,_0xc33982(0x1d3),{}),_0x57dd8e(this,_0xc33982(0x2a0)),_0x57dd8e(this,_0xc33982(0xa7)),(this[_0xc33982(0x2a0)]=_0x59344e,this[_0xc33982(0xa7)]=_0x45c155);}[_0x3b026f(0x12c)](){const _0x59a46a=_0x3b026f;for(const _0x47c9c2 in this['dataFields']){const _0x11fe66=this[_0x59a46a(0x275)][_0x47c9c2],_0x119c1b=_0x11fe66[_0x59a46a(0x2eb)]();this[_0x59a46a(0x1d3)][_0x119c1b]=_0x11fe66['getId']();}}['getAutoDisplayNameFunction'](){const _0x2335ae=_0x3b026f,_0x568163=this[_0x2335ae(0xa7)];return _0x2b67ed['bind'](_0x568163);}[_0x3b026f(0x175)](_0x331d92){const _0x1aad1b=_0x3b026f,_0x12e201=this[_0x1aad1b(0x275)][_0x331d92][_0x1aad1b(0x201)];delete this[_0x1aad1b(0x275)][_0x331d92],delete this[_0x1aad1b(0x1d3)][_0x12e201];}['addDataFieldWithoutUnitInfo'](_0x5575de){const _0x3b134f=_0x3b026f;this['dataFields'][_0x5575de[_0x3b134f(0x35a)]()]=_0x5575de;}['removeCollectionImp'](_0x3abba9){const _0x564efe=_0x3b026f;var _0x2b02a9,_0x1ccf58;const _0x33f24a=this[_0x564efe(0xa7)][_0x564efe(0xc4)](_0x3abba9);if(_0x33f24a){const {unitId:_0x5fdad6,subUnitId:_0x349234}=_0x33f24a,_0x1ed381=(_0x2b02a9=this[_0x564efe(0xa7)]['getPivotTableConfig'](_0x5fdad6,_0x349234,_0x3abba9))==null?void 0x0:_0x2b02a9[_0x564efe(0x382)];this[_0x564efe(0xa7)]['broadcastCollectionChange']({'token':_0x3abba9,'type':_0x424e6c[_0x564efe(0x32e)],'dataRangeInfo':_0x1ed381});}(_0x1ccf58=this['getCollection'](_0x3abba9))==null||_0x1ccf58[_0x564efe(0x209)](),delete this[_0x564efe(0x112)][_0x3abba9];}['getRangeKey'](_0x1fbdbb,_0x31d4a5){const _0xef1fe9=_0x3b026f,{sheetName:_0x2fe022,unitId:_0xbf37e0,range:_0x3e6e49}=_0x1fbdbb,{startRow:_0x110fae,endRow:_0x14bb97}=_0x3e6e49;return _0x2189f1[_0xef1fe9(0x357)](_0xbf37e0,_0x2fe022,{'startRow':_0x110fae,'endRow':_0x14bb97,'startColumn':_0x31d4a5,'endColumn':_0x31d4a5});}[_0x3b026f(0x13b)](_0xd34f3b){const _0x26a9ee=_0x3b026f;return this[_0x26a9ee(0x275)][this[_0x26a9ee(0x1d3)][_0xd34f3b]];}[_0x3b026f(0x22d)](_0x3d629f,_0x3cfde4){const _0xe733a=_0x3b026f;this[_0xe733a(0x1d3)][_0x3d629f]=_0x3cfde4;}[_0x3b026f(0x7d)](_0x3ddd89,_0x4dcacc){const _0x1eecd4=_0x3b026f;this[_0x1eecd4(0x1d3)][_0x4dcacc]=this['rangeKeyMap'][_0x3ddd89],delete this['rangeKeyMap'][_0x3ddd89];}[_0x3b026f(0x215)](_0x3e0a4f,_0xaa9715,_0x1defa9,_0x39aca8){const _0x5dee15=_0x3b026f,_0x97708=new _0x40290a[(_0x5dee15(0x210))](this);_0x97708['fromJSON'](_0xaa9715);const _0xa32acf=[];let _0x1c2e2e=0x0;for(const _0x534ee5 of _0x97708[_0x5dee15(0x92)]){const _0x555074=this['getRangeKey'](_0x1defa9,_0x1c2e2e),_0x363c5f=this['dataFields'][_0x534ee5];_0x363c5f&&(_0x363c5f[_0x5dee15(0x201)]=_0x555074,this[_0x5dee15(0x22d)](_0x555074,_0x534ee5),_0xa32acf[_0x5dee15(0x1b3)]({'index':_0x1c2e2e,'dataField':_0x363c5f})),_0x1c2e2e++;}return this['addCollection'](_0x3e0a4f,_0x97708,_0x1defa9,_0x39aca8),{'collection':_0x97708,'updateDataFieldList':_0xa32acf};}[_0x3b026f(0x1b5)](_0xe9fb7e,_0x94b1c6){const _0x14f04b=_0x3b026f;return _0xe9fb7e[_0x14f04b(0x193)]===_0x22b490[_0x14f04b(0x1c6)][_0x14f04b(0x2a9)]?{'startRow':0x0,'startColumn':_0xe9fb7e[_0x14f04b(0x2e5)],'endRow':_0x94b1c6['getRowCount']()-0x1,'endColumn':_0xe9fb7e[_0x14f04b(0xe2)]}:{'startRow':_0xe9fb7e['startRow'],'startColumn':_0xe9fb7e['startColumn'],'endRow':_0xe9fb7e[_0x14f04b(0x15d)],'endColumn':_0xe9fb7e[_0x14f04b(0xe2)]};}[_0x3b026f(0x2e7)](_0xb868ea){const _0x5ed672=_0x3b026f,{sheetName:_0x29d21a,range:_0x56fc0}=_0xb868ea,_0x487144=this[_0x5ed672(0x2a0)][_0x5ed672(0x28c)](_0x22b490[_0x5ed672(0x8f)]['UNIVER_SHEET']),_0x3c163f=_0x487144[_0x5ed672(0x21a)](_0x29d21a),_0x1639de=_0x3c163f[_0x5ed672(0x19e)](),{startColumn:_0x5786e8,startRow:_0x243a6b,endColumn:_0x582985}=this[_0x5ed672(0x1b5)](_0x56fc0,_0x3c163f),_0x4b5767=_0x487144['getStyles'](),_0x47c2fe=new _0x40290a[(_0x5ed672(0x210))](this);_0x47c2fe[_0x5ed672(0x1e8)](_0xb868ea);const _0x3e3bf0=[],_0x4c3046={};for(let _0x150a68=_0x5786e8;_0x150a68<=_0x582985;_0x150a68++){const _0x3ca8d2=_0x1639de[_0x5ed672(0xc2)](_0x243a6b,_0x150a68),_0xae1ae2=this[_0x5ed672(0x2eb)](_0xb868ea,_0x150a68),_0x4c3c2e=this[_0x5ed672(0x13b)](_0xae1ae2);if(_0x4c3c2e)_0x47c2fe[_0x5ed672(0x11d)](_0x4c3c2e[_0x5ed672(0x35a)](),_0x4c3c2e[_0x5ed672(0x111)]());else{const _0x56098a=this[_0x5ed672(0x30d)]();let _0x4e9139=this[_0x5ed672(0x9c)](_0x3ca8d2,_0x4b5767,_0x4c3046);_0x40290a['isDateValue'](_0x4e9139)&&(_0x4e9139=_0x22b490[_0x5ed672(0x322)][_0x5ed672(0x2a4)](_0x4e9139['f'],Number(_0x4e9139['v'])));const _0x1f1b7a=this['uniqueDataFieldName'](_0x4e9139,_0x150a68),_0x269b91=new _0x40290a[(_0x5ed672(0x8b))](_0x56098a,_0x1f1b7a,_0x40290a[_0x5ed672(0xbc)](0x3));_0x269b91[_0x5ed672(0x201)]=_0xae1ae2,this['dataFields'][_0x56098a]=_0x269b91,_0x47c2fe['addField'](_0x56098a,_0x1f1b7a),_0x3e3bf0[_0x5ed672(0x1b3)]({'index':_0x150a68,'dataField':_0x269b91});}}return{'updateDataFieldList':_0x3e3bf0,'collection':_0x47c2fe};}[_0x3b026f(0xb1)](_0x3191e7){const _0x57b81b=_0x3b026f;return this[_0x57b81b(0xa7)][_0x57b81b(0x1d2)]()['sheets-pivot.columnName']+'\x20'+_0x22b490['numberToABC'](_0x3191e7);}[_0x3b026f(0x10d)](_0x415233,_0x3092e5){const _0x5a8224=_0x3b026f;return _0x415233==null||_0x415233===''?this[_0x5a8224(0xb1)](_0x3092e5):String(_0x415233);}[_0x3b026f(0x14d)](_0x2b8e9f){const _0x4833f3=_0x3b026f;return this[_0x4833f3(0x112)][_0x2b8e9f];}[_0x3b026f(0x2c7)](_0x58f340,_0x314d18,_0x596c9d,_0x282200){const _0x29394b=_0x3b026f;this[_0x29394b(0x112)][_0x58f340]=_0x314d18,_0x314d18[_0x29394b(0x1e8)](_0x596c9d),this[_0x29394b(0xa7)]['broadcastCollectionChange']({'token':_0x58f340,'type':_0x424e6c[_0x29394b(0x208)],'dataRangeInfo':_0x596c9d,'targetCellInfo':_0x282200});}['handleMoveRange'](_0xf1ff22,_0x214732){const _0x2e5d28=_0x3b026f,_0x2cf9a3=this[_0x2e5d28(0x14d)](_0xf1ff22),_0x4c943f=_0x2cf9a3[_0x2e5d28(0x378)]();let _0x19af58=0x0;for(const _0x32c867 of _0x4c943f){const _0x2a5991=_0x2cf9a3[_0x2e5d28(0x2e9)](_0x32c867),_0x2cdcc3=this[_0x2e5d28(0x2eb)](_0x214732,_0x19af58);this[_0x2e5d28(0x7d)](_0x2a5991[_0x2e5d28(0x201)],_0x2cdcc3),_0x19af58++;}}[_0x3b026f(0x143)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x3b026f(0x1ae)](_0x224c67,_0x5d0513){const _0xc16109=_0x3b026f;if(this['getCollection'](_0x224c67)){const _0x43a9eb=this['getRangeKeyList'](_0x5d0513),_0x468f6d=[];for(const _0x49eb86 of _0x43a9eb)this[_0xc16109(0x1d3)][_0x49eb86]!==void 0x0&&_0x468f6d[_0xc16109(0x1b3)](this[_0xc16109(0x1d3)][_0x49eb86]);const _0x2203a3=this[_0xc16109(0x137)](_0x224c67),_0xb23ac8=[],_0x20f894=new Set(_0x468f6d);for(const _0x4abed6 of _0x2203a3)_0x20f894[_0xc16109(0x188)](_0x4abed6)||_0xb23ac8[_0xc16109(0x1b3)](_0x4abed6);return _0xb23ac8;}}[_0x3b026f(0x30e)](_0x5dbf85,_0x3a2c50,_0x313e0d,_0x2ca5b8,_0x4fa17a){const _0x44413f=_0x3b026f;return _0x3a2c50&&_0x3a2c50['getValue'](_0x2ca5b8,_0x4fa17a)?_0x3a2c50['getValue'](_0x2ca5b8,_0x4fa17a):_0x313e0d&&_0x313e0d[_0x44413f(0xc2)](_0x2ca5b8,_0x4fa17a)?_0x313e0d[_0x44413f(0xc2)](_0x2ca5b8,_0x4fa17a):_0x5dbf85['getValue'](_0x2ca5b8,_0x4fa17a);}['refreshDataField'](_0x4eceb2,_0xe4f97b,_0x116ce2,_0x1d05e3){const _0x40edbd=_0x3b026f,_0x579926=this[_0x40edbd(0x275)][_0x4eceb2];if(!_0x579926)return;const {subUnitId:_0x3c2bac,range:_0xe92e20,unitId:_0x296af0}=_0xe4f97b,_0x2a87ae=this['_univerInstanceService'][_0x40edbd(0xe3)](_0x296af0);if(!_0x2a87ae){console[_0x40edbd(0x294)](_0x40edbd(0x289));return;}const _0x458413=_0x2a87ae[_0x40edbd(0x36c)](_0x3c2bac),_0x523bde=_0x458413[_0x40edbd(0x19e)](),{arrayFormulaCellDataMatrix:_0x5b2c8e,unitDataMatrix:_0x13ee80}=_0x1d05e3||{},{startRow:_0x1fea49,startColumn:_0x16232b,endRow:_0x56fce4}=this[_0x40edbd(0x1b5)](_0xe92e20,_0x458413);_0x579926[_0x40edbd(0xaa)]();const _0x57841b=_0x2a87ae[_0x40edbd(0x280)](),_0x3e5025={},_0x1e856d=this[_0x40edbd(0x30e)](_0x523bde,_0x5b2c8e,_0x13ee80,_0x1fea49,_0x16232b+_0x116ce2);let _0x24d0fe=this[_0x40edbd(0x9c)](_0x1e856d,_0x57841b,_0x3e5025);_0x40290a['isDateValue'](_0x24d0fe)&&(_0x24d0fe=_0x22b490[_0x40edbd(0x322)][_0x40edbd(0x2a4)](_0x24d0fe['f'],Number(_0x24d0fe['v'])));const _0x15b7c7=this[_0x40edbd(0x10d)](_0x24d0fe,_0x16232b+_0x116ce2);_0x579926['setName'](_0x15b7c7);for(let _0x28c990=_0x1fea49+0x1;_0x28c990<=_0x56fce4;_0x28c990++){const _0xdc487=this[_0x40edbd(0x30e)](_0x523bde,_0x5b2c8e,_0x13ee80,_0x28c990,_0x16232b+_0x116ce2);_0x579926[_0x40edbd(0x2a3)](this['adjustSheetCellData'](_0xdc487,_0x57841b,_0x3e5025),_0x28c990-0x1-_0x1fea49);}}[_0x3b026f(0x89)](_0x3a91d5,_0xe73239,_0x8f32df){const _0x4d1a1f=_0x3b026f,{subUnitId:_0x19fee4,range:_0x4ca180,unitId:_0x3eecac}=_0x8f32df,_0x41e426=this[_0x4d1a1f(0x2a0)][_0x4d1a1f(0xe3)](_0x3eecac);if(!_0x41e426){console[_0x4d1a1f(0x294)](_0x4d1a1f(0x289));return;}const _0x308c19=_0x41e426[_0x4d1a1f(0x36c)](_0x19fee4),_0x3f69e6=_0x308c19[_0x4d1a1f(0x19e)](),{startRow:_0x169f60,startColumn:_0x28a7ff,endRow:_0x15fc4b}=this[_0x4d1a1f(0x1b5)](_0x4ca180,_0x308c19),_0x48493=_0x41e426['getStyles'](),_0x4ece47={};for(const {dataField:_0x386e92,index:_0x289d87}of _0xe73239){_0x386e92['reset']();const _0x819e30=this[_0x4d1a1f(0x30e)](_0x3f69e6,void 0x0,void 0x0,_0x169f60,_0x28a7ff+_0x289d87);let _0x49e8bf=this['adjustSheetCellData'](_0x819e30,_0x48493,_0x4ece47);_0x40290a[_0x4d1a1f(0x2f0)](_0x49e8bf)&&(_0x49e8bf=_0x22b490[_0x4d1a1f(0x322)]['format'](_0x49e8bf['f'],Number(_0x49e8bf['v'])));const _0x355533=this[_0x4d1a1f(0x10d)](_0x49e8bf,_0x28a7ff+_0x289d87);_0x386e92[_0x4d1a1f(0x2d5)](_0x355533);}_0x3a91d5[_0x4d1a1f(0x1e5)]();for(let _0x2c3877=_0x169f60+0x1;_0x2c3877<=_0x15fc4b;_0x2c3877++)for(const {index:_0x468f79,dataField:_0x342238}of _0xe73239){const _0xb6edff=_0x3f69e6[_0x4d1a1f(0xc2)](_0x2c3877,_0x28a7ff+_0x468f79);_0x342238[_0x4d1a1f(0x2a3)](this[_0x4d1a1f(0x9c)](_0xb6edff,_0x48493,_0x4ece47),_0x2c3877-0x1-_0x169f60);}_0x3a91d5[_0x4d1a1f(0x14a)](_0x15fc4b-_0x169f60);}[_0x3b026f(0x162)](_0x161b07){const _0xab0a93=_0x3b026f,{range:_0x559e7c}=_0x161b07,{startColumn:_0x2034b8,endColumn:_0xacfe07}=_0x559e7c,_0x187648=[];for(let _0x3062df=_0x2034b8;_0x3062df<=_0xacfe07;_0x3062df++)_0x187648['push'](this[_0xab0a93(0x2eb)](_0x161b07,_0x3062df));return _0x187648;}['adjustSheetCellData'](_0x25136b,_0x2a6496,_0x4c69d9){const _0x215c0c=_0x3b026f;if(_0x25136b){const {s:_0x51f523,v:_0x5b5f21,t:_0x1a8165,p:_0xb48b11}=_0x25136b;if(_0xb48b11)return _0x54fb9a(_0xb48b11);const _0x3ea6c6=_0x2a6496[_0x215c0c(0x257)](_0x51f523);if(_0x3ea6c6&&_0x1a8165===_0x22b490[_0x215c0c(0x30b)][_0x215c0c(0x18e)]&&_0x3ea6c6['n']){const {pattern:_0x391a66}=_0x3ea6c6['n'];_0x4c69d9[_0x391a66]||(_0x4c69d9[_0x391a66]=_0x22b490[_0x215c0c(0x322)]['getInfo'](_0x391a66));const _0x323e38=_0x4c69d9[_0x391a66],_0x41d1f0=_0x323e38[_0x215c0c(0x1e0)];if(_0x323e38[_0x215c0c(0x29e)])return String(_0x5b5f21);if(_0x41d1f0)return{'v':_0x5b5f21,'f':_0x391a66};}if(_0x1a8165===_0x22b490[_0x215c0c(0x30b)][_0x215c0c(0x18e)])return Number(_0x5b5f21);if(_0x1a8165===_0x22b490[_0x215c0c(0x30b)][_0x215c0c(0x94)]||_0x1a8165===_0x22b490[_0x215c0c(0x30b)][_0x215c0c(0x152)])return String(_0x5b5f21);if(_0x1a8165===void 0x0){const _0x4c63a4=Number(_0x5b5f21);if(!Number[_0x215c0c(0x2af)](_0x4c63a4)&&String(_0x4c63a4)===_0x5b5f21)return _0x4c63a4;}return _0x5b5f21!=null?_0x5b5f21:null;}else return null;}[_0x3b026f(0xb0)](_0x44247c){const _0x49c046=_0x3b026f,{sheetName:_0x55717d,range:_0x4437a4,unitId:_0x1713b1}=_0x44247c,_0x525135=this[_0x49c046(0x2a0)][_0x49c046(0xe3)](_0x1713b1);if(!_0x525135)return console[_0x49c046(0x294)](_0x49c046(0x289)),{'header':[],'data':[]};const _0x26ea93=_0x525135['getSheetBySheetName'](_0x55717d),_0x38200d=_0x26ea93[_0x49c046(0x19e)](),{startRow:_0x2e3e7c,startColumn:_0xc01e46,endRow:_0x2264e7,endColumn:_0x5ecbf5}=this[_0x49c046(0x1b5)](_0x4437a4,_0x26ea93),_0x4fa0df=_0x525135[_0x49c046(0x280)](),_0xcf0327=[],_0x4ca2dc=[],_0x15a29a={};for(let _0xe4b47d=_0x2e3e7c;_0xe4b47d<=_0x2264e7;_0xe4b47d++){const _0x3f4caa=[];for(let _0x564f3e=_0xc01e46;_0x564f3e<=_0x5ecbf5;_0x564f3e++){const _0x354652=_0x38200d[_0x49c046(0xc2)](_0xe4b47d,_0x564f3e);_0xe4b47d===_0x2e3e7c?_0xcf0327[_0x49c046(0x1b3)](_0x354652==null?null:String(_0x354652['v'])):_0x3f4caa['push'](this[_0x49c046(0x9c)](_0x354652,_0x4fa0df,_0x15a29a));}_0x4ca2dc[_0x49c046(0x1b3)](_0x3f4caa);}return{'header':_0xcf0327,'data':_0x4ca2dc};}[_0x3b026f(0x2b3)](){const _0x17f776=_0x3b026f;return super[_0x17f776(0x2b3)]();}[_0x3b026f(0x27a)](_0x2bedaa){const _0x45e919=_0x3b026f;super[_0x45e919(0x27a)](_0x2bedaa),this[_0x45e919(0x12c)]();}[_0x3b026f(0x209)](){const _0x351817=_0x3b026f;super['dispose'](),this[_0x351817(0x1d3)]={},this['_host']=null;}}const _0x3d32eb=_0x49fbf8=>{const _0xbd3d20=_0x3b026f,{targetCellInfo:_0x55d4dd}=_0x49fbf8,{matrixCache:_0x518b77,rangesCache:_0x319de1}=_0x16154e({'filter':_0xbd3d20(0x361),'row':_0xbd3d20(0x168),'column':_0xbd3d20(0xa8),'values':_0xbd3d20(0x114)},_0x55d4dd),_0x3f52d7=new _0x22b490['ObjectMatrix']();return _0x518b77[_0xbd3d20(0x17f)]((_0x4da3e,_0x1d2fab,_0xec1ee4)=>{const _0x12f8d7=_0xbd3d20;_0x3f52d7[_0x12f8d7(0x194)](_0x4da3e,_0x1d2fab,_0xec1ee4);}),{'matrix':_0x3f52d7,'rangesCache':_0x319de1};},_0x166ddd=_0x3d29ef=>{const _0x359b7f=_0x3b026f;let _0x2ac45b;if(_0x3d29ef!=null&&_0x3d29ef['v']||(_0x3d29ef==null?void 0x0:_0x3d29ef['v'])===0x0){_0x2ac45b||(_0x2ac45b={});const _0x4c7044=_0x817337(_0x3d29ef['v']);typeof _0x4c7044=='number'?_0x2ac45b['t']=_0x22b490[_0x359b7f(0x30b)][_0x359b7f(0x18e)]:typeof _0x4c7044==_0x359b7f(0x33d)&&(_0x2ac45b['t']=_0x22b490[_0x359b7f(0x30b)][_0x359b7f(0x94)]),_0x2ac45b['v']=_0x4c7044;}return _0x2ac45b;},_0x572a95=(_0xe511,_0xf4b368,_0x45bec7)=>{const _0x4fcaab=_0x3b026f;var _0x31e580,_0x2bcfcf,_0x442d90,_0x21c22e,_0x2211a1,_0x36525b,_0x19924c,_0x3fd664,_0x2be765,_0x504a6d,_0x25a289,_0x138d8d;const {cornerView:_0x491628,rowView:_0x2b290c,colView:_0x4ee6d5,dataView:_0x1cc236,pageView:_0x32e69e,formatMap:_0x863660}=_0xe511,{row:_0x5119f7,col:_0xcddc5c}=_0xf4b368,_0x1fea94=new _0x22b490[(_0x4fcaab(0x398))]();let _0xc82f98=_0x5119f7,_0x54269f=_0xcddc5c;Object[_0x4fcaab(0x226)](_0x32e69e['data'])[_0x4fcaab(0x38c)](_0x645da1=>{const _0x161e8c=_0x4fcaab;Object[_0x161e8c(0x226)](_0x32e69e[_0x161e8c(0x28f)][Number(_0x645da1)])[_0x161e8c(0x38c)](_0x1c461f=>{const _0x21cedb=_0x161e8c,_0x234fd8={..._0x32e69e[_0x21cedb(0x28f)][Number(_0x645da1)][Number(_0x1c461f)]};_0x1fea94['setValue'](Number(_0x645da1)+_0xc82f98,Number(_0x1c461f)+_0x54269f,_0x166ddd(_0x234fd8));});});const _0x26dc2e=Object[_0x4fcaab(0x226)](_0x32e69e[_0x4fcaab(0x28f)])[_0x4fcaab(0x28e)];_0xc82f98+=_0x26dc2e+(_0x26dc2e?_0x365ec8:0x0);const _0x1ac695=_0x491628[_0x4fcaab(0x33a)](),_0x15ce43=_0x491628[_0x4fcaab(0x192)]();for(let _0xc7691f=0x0;_0xc7691f<_0x1ac695;_0xc7691f++)for(let _0x427640=0x0;_0x427640<_0x15ce43;_0x427640++){const _0x2ea14b={...(_0x2bcfcf=(_0x31e580=_0x491628[_0x4fcaab(0x28f)])==null?void 0x0:_0x31e580[_0xc7691f])==null?void 0x0:_0x2bcfcf[_0x427640]};_0x2ea14b&&((_0x442d90=_0x2b290c['headerMap'][_0x427640])!=null&&_0x442d90['isValue'])&&_0x427640===_0x15ce43-0x1&&_0xc7691f===_0x1ac695-0x1&&(_0x2ea14b['v']=''+_0x45bec7[_0x4fcaab(0x191)]),_0x1fea94[_0x4fcaab(0x194)](_0xc7691f+_0xc82f98,_0x427640+_0x54269f,_0x166ddd(_0x2ea14b));}_0x54269f+=_0x15ce43;const _0x18c8d4=_0x4ee6d5[_0x4fcaab(0x323)],_0x4a05d9=_0x4ee6d5['getLastRow']()>=0x0?_0x4ee6d5[_0x4fcaab(0xbd)]()+0x1:0x0,_0xd32c5e=_0x4ee6d5[_0x4fcaab(0x296)]()>=0x0?_0x4ee6d5[_0x4fcaab(0x296)]()+0x1:0x0;for(let _0x44eb21=0x0;_0x44eb21<_0xd32c5e;_0x44eb21++)for(let _0x2d65e5=0x0;_0x2d65e5<_0x4a05d9;_0x2d65e5++){const _0x18f5ab={...(_0x2211a1=(_0x21c22e=_0x4ee6d5[_0x4fcaab(0x28f)])==null?void 0x0:_0x21c22e[_0x44eb21])==null?void 0x0:_0x2211a1[_0x2d65e5]},_0x434c15=(_0x36525b=_0x18c8d4[_0x44eb21])==null?void 0x0:_0x36525b['tableFieldId'],_0x535be3=_0x863660[_0x434c15];_0x18f5ab&&(_0x18f5ab['v']=_0xa7d1b6(_0x18f5ab,_0x44eb21===0x0&&((_0x19924c=_0x4ee6d5[_0x4fcaab(0x1f1)](_0x2d65e5+0x1))==null?void 0x0:_0x19924c[_0x4fcaab(0xee)]),_0x535be3,_0x45bec7)),_0x1fea94[_0x4fcaab(0x194)](_0x44eb21+_0xc82f98,_0x2d65e5+_0x54269f,_0x166ddd(_0x18f5ab));}_0xc82f98+=_0x1ac695;const _0x1b762d=_0x2b290c[_0x4fcaab(0x323)],_0x7781f2=_0x2b290c['getLastRow']()>=0x0?_0x2b290c[_0x4fcaab(0xbd)]()+0x1:0x0,_0xc44c6c=_0x2b290c[_0x4fcaab(0x296)]()>=0x0?_0x2b290c[_0x4fcaab(0x296)]()+0x1:0x0;for(let _0x3b2cee=0x0;_0x3b2cee<_0x7781f2;_0x3b2cee++)for(let _0x37add5=0x0;_0x37add5<_0xc44c6c;_0x37add5++){const _0x45fea8={...(_0x2be765=(_0x3fd664=_0x2b290c[_0x4fcaab(0x28f)])==null?void 0x0:_0x3fd664[_0x3b2cee])==null?void 0x0:_0x2be765[_0x37add5]},_0x436efc=(_0x504a6d=_0x1b762d[_0x37add5])==null?void 0x0:_0x504a6d[_0x4fcaab(0x355)],_0x2c7a1a=_0x863660[_0x436efc];_0x45fea8&&(_0x45fea8['v']=_0xa7d1b6(_0x45fea8,!0x1,_0x2c7a1a,_0x45bec7)),_0x1fea94['setValue'](_0x3b2cee+_0xc82f98,_0x37add5+_0xcddc5c,_0x166ddd(_0x45fea8));}const _0x149cc4=_0x1cc236['getRowCount'](),_0x3afd93=_0x1cc236[_0x4fcaab(0x192)]();for(let _0x232a49=0x0;_0x232a49<_0x149cc4;_0x232a49++)for(let _0xd6a140=0x0;_0xd6a140<_0x3afd93;_0xd6a140++){const _0x397ad1={...(_0x138d8d=(_0x25a289=_0x1cc236[_0x4fcaab(0x28f)])==null?void 0x0:_0x25a289[_0x232a49])==null?void 0x0:_0x138d8d[_0xd6a140]};_0x1fea94[_0x4fcaab(0x194)](_0x232a49+_0xc82f98,_0xd6a140+_0x54269f,_0x166ddd(_0x397ad1));}return _0x1fea94;},_0x4e3990=_0xb716b4=>{const _0x477e28=_0x3b026f,{view:_0x2596d3,targetCellInfo:_0x406ee7,isEmpty:_0x231134,textInfo:_0xe291c1}=_0xb716b4;if(_0x231134)return _0x3d32eb(_0xb716b4);const {pageView:_0x4335d8,cornerView:_0x4ed994,rowView:_0x3bacf3,colView:_0x1e3f46,dataView:_0x382d2b}=_0x2596d3,_0x4f8552=_0x47bb47(_0x406ee7,_0x4335d8,!0x0),_0x30b1a9=_0x4335d8[_0x477e28(0x15f)]>=0x0?_0x4335d8[_0x477e28(0x15f)]+0x1:0x0,_0x31897e=_0x4ed994[_0x477e28(0x33a)](),_0x364c37=_0x4ed994[_0x477e28(0x192)](),_0x17fa6b=_0x4f8552[_0x477e28(0x28e)]>0x0?_0x365ec8:0x0,_0x53543a=_0x47bb47({'row':_0x406ee7[_0x477e28(0x2e2)]+_0x30b1a9+_0x17fa6b,'col':_0x406ee7[_0x477e28(0x185)]},_0x4ed994,!0x1,!0x1),_0x1988e2=_0x47bb47({'row':_0x406ee7[_0x477e28(0x2e2)]+_0x30b1a9+_0x17fa6b+_0x31897e,'col':_0x406ee7[_0x477e28(0x185)]},_0x3bacf3,!0x1,!0x0),_0x422ca0=_0x47bb47({'row':_0x406ee7[_0x477e28(0x2e2)]+_0x30b1a9+_0x17fa6b,'col':_0x406ee7['col']+_0x364c37},_0x1e3f46,!0x1,!0x0),_0x33a6d2=_0x47bb47({'row':_0x406ee7[_0x477e28(0x2e2)]+_0x30b1a9+_0x17fa6b+_0x31897e,'col':_0x406ee7[_0x477e28(0x185)]+_0x364c37},_0x382d2b,!0x1,!0x1),_0x3c4d33={'rowRanges':_0x1988e2,'colRanges':_0x422ca0,'cornerRanges':_0x53543a,'dataRanges':_0x33a6d2,'pageRanges':_0x4f8552};return{'matrix':_0x572a95(_0x2596d3,_0x406ee7,_0xe291c1),'rangesCache':_0x3c4d33};};var _0x3121f4=Object[_0x3b026f(0xd7)],_0x589e5b=(_0x4c144c,_0x585dbc,_0x45a1cc,_0xcfc643)=>{const _0x562e1a=_0x3b026f;for(var _0x19a6ab=_0xcfc643>0x1?void 0x0:_0xcfc643?_0x3121f4(_0x585dbc,_0x45a1cc):_0x585dbc,_0x294f4a=_0x4c144c[_0x562e1a(0x28e)]-0x1,_0x582e58;_0x294f4a>=0x0;_0x294f4a--)(_0x582e58=_0x4c144c[_0x294f4a])&&(_0x19a6ab=_0x582e58(_0x19a6ab)||_0x19a6ab);return _0x19a6ab;},_0x56e1c0=(_0x43133c,_0x36c72f)=>(_0x54fd17,_0x12b62f)=>_0x36c72f(_0x54fd17,_0x12b62f,_0x43133c);_0x4b10df[_0x3b026f(0x19b)]=class extends _0x22b490['Disposable']{constructor(_0x5c9341,_0xcfc4c9,_0x20e0a6,_0x1444ca,_0x387894,_0x4d804e){const _0x369c5a=_0x3b026f;super(),_0x57dd8e(this,'_model',new Map()),_0x57dd8e(this,_0x369c5a(0xe6),new Map()),_0x57dd8e(this,_0x369c5a(0x21c),new Map()),_0x57dd8e(this,_0x369c5a(0x12f)),_0x57dd8e(this,_0x369c5a(0x1be),new _0x1e57bc['Subject']()),_0x57dd8e(this,_0x369c5a(0x2c4),this[_0x369c5a(0x1be)]['asObservable']()),_0x57dd8e(this,_0x369c5a(0x391),new _0x1e57bc[(_0x369c5a(0x116))]()),_0x57dd8e(this,_0x369c5a(0x1a4),this[_0x369c5a(0x391)][_0x369c5a(0x35c)]()),_0x57dd8e(this,_0x369c5a(0x1bd),new _0x1e57bc[(_0x369c5a(0x116))]()),_0x57dd8e(this,_0x369c5a(0xf4),this[_0x369c5a(0x1bd)]['asObservable']()),_0x57dd8e(this,_0x369c5a(0x1f7),new Map()),_0x57dd8e(this,_0x369c5a(0x376),[]),_0x57dd8e(this,'_queryingMap',new Map()),(this[_0x369c5a(0xf5)]=_0x5c9341,this['_univerInstanceService']=_0xcfc4c9,this[_0x369c5a(0x260)]=_0x20e0a6,this[_0x369c5a(0x122)]=_0x1444ca,this[_0x369c5a(0x1c7)]=_0x387894,this[_0x369c5a(0x2a7)]=_0x4d804e,this[_0x369c5a(0x360)]());}[_0x3b026f(0x1d2)](){const _0x2032e5=_0x3b026f;return this[_0x2032e5(0x12f)]?this[_0x2032e5(0x12f)]:_0x50dc43;}[_0x3b026f(0x2db)](_0x127011){const _0x5aebc6=_0x3b026f;this[_0x5aebc6(0x12f)]=_0x127011;}['handleMoveRange'](_0x42f6fb){const _0x4dea87=_0x3b026f;var _0x15e164;const {from:_0x24b838,to:_0x56281b,unitId:_0xcb9d3,fromRange:_0x3db83e,toRange:_0x397610}=_0x42f6fb;if(_0x24b838&&_0x56281b){const _0x27753e=this['getDataFieldManager'](_0xcb9d3),_0x535f19=this['_model'][_0x4dea87(0x257)](_0xcb9d3),_0x4e067c=(_0x15e164=this['_univerInstanceService'][_0x4dea87(0xe3)](_0xcb9d3))==null?void 0x0:_0x15e164['getSheetBySheetId'](_0x56281b[_0x4dea87(0x214)]);if(!_0x535f19||!_0x4e067c)return;const _0x5dec3d=_0x4e067c==null?void 0x0:_0x4e067c[_0x4dea87(0x111)]();for(const [_0x2cf5de,_0xc13c17]of _0x535f19[_0x4dea87(0x278)]())for(const [_0x425cab,_0x2c29ef]of _0xc13c17[_0x4dea87(0x278)]()){const {sourceRangeInfo:_0x2f52fe}=_0x2c29ef;if(_0x2f52fe['unitId']===_0xcb9d3&&_0x2f52fe['subUnitId']===_0x24b838[_0x4dea87(0x214)]&&_0x22b490[_0x4dea87(0x36e)]['contains'](_0x3db83e,_0x2f52fe[_0x4dea87(0x12d)])){const _0x3df5b6={'row':_0x2f52fe[_0x4dea87(0x12d)][_0x4dea87(0x284)]-_0x3db83e[_0x4dea87(0x284)],'col':_0x2f52fe[_0x4dea87(0x12d)][_0x4dea87(0x2e5)]-_0x3db83e['startColumn']},_0x3ac144={'unitId':_0xcb9d3,'subUnitId':_0x56281b['subUnitId'],'sheetName':_0x5dec3d,'range':{'startRow':_0x397610[_0x4dea87(0x284)]+_0x3df5b6[_0x4dea87(0x2e2)],'endRow':_0x397610[_0x4dea87(0x284)]+_0x3df5b6[_0x4dea87(0x2e2)]+_0x2f52fe[_0x4dea87(0x12d)]['endRow']-_0x2f52fe[_0x4dea87(0x12d)][_0x4dea87(0x284)],'startColumn':_0x397610[_0x4dea87(0x2e5)]+_0x3df5b6[_0x4dea87(0x185)],'endColumn':_0x397610['startColumn']+_0x3df5b6[_0x4dea87(0x185)]+_0x2f52fe[_0x4dea87(0x12d)][_0x4dea87(0xe2)]-_0x2f52fe['range'][_0x4dea87(0x2e5)]}};_0x27753e[_0x4dea87(0xf2)](_0x425cab,_0x3ac144);const _0x491018={..._0x2c29ef,'sourceRangeInfo':_0x3ac144};this[_0x4dea87(0x110)](_0xcb9d3,_0x56281b[_0x4dea87(0x214)],_0x425cab,_0x491018),this[_0x4dea87(0xe9)]({'unitId':_0xcb9d3,'token':_0x425cab,'type':_0x424e6c['update'],'oldSourceRangeInfo':_0x2f52fe,'dataRangeInfo':_0x3ac144,'targetCellInfo':_0x2c29ef[_0x4dea87(0x157)]}),this[_0x4dea87(0x20a)]({'unitId':_0xcb9d3,'subUnitId':_0x56281b[_0x4dea87(0x214)],'oldSubUnitId':_0x2cf5de,'pivotTableId':_0x425cab,'pivotTableConfig':_0x491018,'collectionConfig':_0x27753e[_0x4dea87(0x2b3)]()});}}}}['broadcastCollectionChange'](_0x3fd80a){const _0x38f58c=_0x3b026f;this[_0x38f58c(0x1be)]['next'](_0x3fd80a);}[_0x3b026f(0x37f)](_0x100bc7){const _0x1b4689=_0x3b026f;let _0x4ffb69=this[_0x1b4689(0x1f7)][_0x1b4689(0x257)](_0x100bc7);return _0x4ffb69||(_0x4ffb69=new _0x4947c0(this,this[_0x1b4689(0x2a0)]),this[_0x1b4689(0x1f7)][_0x1b4689(0x118)](_0x100bc7,_0x4ffb69)),_0x4ffb69;}[_0x3b026f(0x14d)](_0x152804,_0x96762a){const _0x34ce98=_0x3b026f;return this[_0x34ce98(0x37f)](_0x152804)['collections'][_0x96762a];}['getUpdateRangeDeleteIds'](_0x4bb5b0,_0x18b3ec,_0x261109){const _0x412dd5=_0x3b026f;return this[_0x412dd5(0x37f)](_0x4bb5b0)['getUpdateRangeDeleteIds'](_0x18b3ec,_0x261109);}[_0x3b026f(0x290)](_0x4a795a,_0x3c0e24){const _0x26186d=_0x3b026f;let _0x292c93=this['_model'][_0x26186d(0x257)](_0x4a795a);_0x292c93||(_0x292c93=new Map(),this['_model'][_0x26186d(0x118)](_0x4a795a,_0x292c93));let _0xe48ed3=_0x292c93[_0x26186d(0x257)](_0x3c0e24);return _0xe48ed3||(_0xe48ed3=new Map(),_0x292c93[_0x26186d(0x118)](_0x3c0e24,_0xe48ed3)),_0xe48ed3;}[_0x3b026f(0x110)](_0x2b0667,_0x59bc12,_0x44d6d5,_0x491fe4){const _0x1a4d54=_0x3b026f;this[_0x1a4d54(0x290)](_0x2b0667,_0x59bc12)[_0x1a4d54(0x118)](_0x44d6d5,_0x491fe4);}[_0x3b026f(0x255)](_0x34ccd3,_0x4e3513,_0x4f9a5f){const _0x576503=_0x3b026f;var _0x4883c6,_0x2098ed,_0x33cf37,_0xfa8bc2;((_0x2098ed=(_0x4883c6=this[_0x576503(0x2b8)][_0x576503(0x257)](_0x34ccd3))==null?void 0x0:_0x4883c6[_0x576503(0x257)](_0x4e3513))==null?void 0x0:_0x2098ed[_0x576503(0x257)](_0x4f9a5f))&&((_0xfa8bc2=(_0x33cf37=this['_model'][_0x576503(0x257)](_0x34ccd3))==null?void 0x0:_0x33cf37[_0x576503(0x257)](_0x4e3513))==null||_0xfa8bc2[_0x576503(0x32e)](_0x4f9a5f));}[_0x3b026f(0x336)](_0x539233,_0x1af95b){const _0x5cef4f=_0x3b026f;this[_0x5cef4f(0xe6)][_0x5cef4f(0x118)](_0x539233,_0x1af95b);}[_0x3b026f(0x240)](_0x4e8127){const _0x3403e7=_0x3b026f;this['_pivotTableInstanceCache'][_0x3403e7(0x32e)](_0x4e8127);}[_0x3b026f(0x205)](_0x13c3f2,_0x47f57c){const _0x1e2bc4=_0x3b026f;let _0x4d63b1=this[_0x1e2bc4(0x21c)][_0x1e2bc4(0x257)](_0x13c3f2);_0x4d63b1||(_0x4d63b1=new Map(),this[_0x1e2bc4(0x21c)][_0x1e2bc4(0x118)](_0x13c3f2,_0x4d63b1));let _0x45dea9=_0x4d63b1[_0x1e2bc4(0x257)](_0x47f57c);return _0x45dea9||(_0x45dea9=new Map(),_0x4d63b1[_0x1e2bc4(0x118)](_0x47f57c,_0x45dea9)),_0x45dea9;}[_0x3b026f(0x20a)](_0x4c6870){const _0x4b61c6=_0x3b026f,{unitId:_0x2b6429,subUnitId:_0x26ed4e,pivotTableId:_0x3054b3,pivotTableConfig:_0x28f583,collectionConfig:_0x5f18e5}=_0x4c6870,_0x407592={'unitId':_0x2b6429,'subUnitId':_0x26ed4e,'oldSubUnitId':_0x26ed4e,'pivotTableId':_0x3054b3,'pivotTableConfig':_0x28f583,'collectionConfig':_0x5f18e5};this[_0x4b61c6(0x1c7)][_0x4b61c6(0xe1)](_0x2017a3['id'],_0x407592,{'onlyLocal':!0x0});}['updateView'](_0x1d3624,_0x3ae14b,_0x591e7b,_0x216433,_0x54f0a5,_0x100fb0,_0x24fe2f,_0x2d4dc1=!0x1){const _0x48f205=_0x3b026f;var _0x1127fd;this['_commandService'][_0x48f205(0xe1)](_0x5973c5['id'],{'single':{'unitId':_0x1d3624,'subUnitId':_0x3ae14b,'type':_0x591e7b,'pivotTableId':_0x216433,'view':_0x54f0a5,'pivotConfig':_0x100fb0},'collectionConfig':{[_0x1d3624]:_0x24fe2f}},{'onlyLocal':!0x0});const _0x5f03b1=!!((_0x1127fd=this[_0x48f205(0xcc)](_0x216433))!=null&&_0x1127fd[_0x48f205(0x298)]()),_0x297528=this[_0x48f205(0x26f)](_0x1d3624,_0x3ae14b,_0x216433);_0x297528&&this[_0x48f205(0x18a)]({'view':_0x54f0a5,'pivotTableId':_0x216433,'textInfo':this[_0x48f205(0x1d2)](),'isEmpty':_0x5f03b1,'targetCellInfo':_0x297528[_0x48f205(0x157)]},_0x2d4dc1);}[_0x3b026f(0x18a)](_0x23ef89,_0xb4aeea){const _0x14663f=_0x3b026f,{targetCellInfo:_0x1fbe22,pivotTableId:_0x754bfe}=_0x23ef89,{unitId:_0x4165a7,subUnitId:_0x427212}=_0x1fbe22,_0xea9339=this['_ensureViewDataMap'](_0x4165a7,_0x427212),_0x31f5ef=_0xea9339[_0x14663f(0x257)](_0x754bfe);let _0x16902b,_0x496d13;_0x31f5ef&&(_0x16902b=_0x31f5ef[_0x14663f(0x1c1)],_0x496d13=_0x31f5ef[_0x14663f(0x2a1)]);const {rangesCache:_0x1d42ba,matrix:_0x114136}=_0x4e3990(_0x23ef89);_0xea9339['set'](_0x754bfe,{'rangeCache':_0x1d42ba,'matrix':_0x114136,'oldMatrix':_0x496d13,'oldRangeCache':_0x16902b}),_0xb4aeea||this[_0x14663f(0x391)][_0x14663f(0x2ba)]({'unitId':_0x4165a7,'subUnitId':_0x427212,'pivotTableId':_0x754bfe});}['addPivotTable'](_0x2cedec,_0x37bcf3,_0x2d9604,_0x14612d,_0xeecc22){const _0x2c62ba=_0x3b026f;this[_0x2c62ba(0x110)](_0x2cedec,_0x37bcf3,_0x2d9604,_0xeecc22),this[_0x2c62ba(0x336)](_0x2d9604,_0x14612d);}[_0x3b026f(0x177)](_0x32fbf0,_0x5b8da8,_0x25ed4b){const _0xb3e67a=_0x3b026f,_0x543e34=this[_0xb3e67a(0x37f)](_0x32fbf0);_0x543e34[_0xb3e67a(0x137)](_0x25ed4b)[_0xb3e67a(0x38c)](_0x2e8d03=>{_0x543e34['deleteDataField'](_0x2e8d03);}),this[_0xb3e67a(0xe0)](_0x32fbf0,_0x25ed4b),this[_0xb3e67a(0x255)](_0x32fbf0,_0x5b8da8,_0x25ed4b),this[_0xb3e67a(0x240)](_0x25ed4b);}[_0x3b026f(0x2f5)](_0x26834d,_0x54ae57,_0x16e989,_0xe3d866){const _0x1027b5=_0x3b026f;this[_0x1027b5(0x110)](_0x26834d,_0x54ae57,_0x16e989,_0xe3d866);}['getPivotTableConfig'](_0xbbd79f,_0x468ef7,_0x13f042){const _0x3c8ea8=_0x3b026f;var _0x2b5bf6,_0x52f7e6;const _0x5ba8bc=(_0x52f7e6=(_0x2b5bf6=this['_model'][_0x3c8ea8(0x257)](_0xbbd79f))==null?void 0x0:_0x2b5bf6[_0x3c8ea8(0x257)](_0x468ef7))==null?void 0x0:_0x52f7e6[_0x3c8ea8(0x257)](_0x13f042);if(_0x5ba8bc)return _0x5ba8bc;}[_0x3b026f(0xf3)](_0x5cf729,_0x2d6800,_0x4222e4){const _0x38af39=_0x3b026f;var _0x3771b6,_0x29b9ee;const _0x34c026=(_0x29b9ee=(_0x3771b6=this['_model'][_0x38af39(0x257)](_0x5cf729))==null?void 0x0:_0x3771b6[_0x38af39(0x257)](_0x2d6800))==null?void 0x0:_0x29b9ee['get'](_0x4222e4);if(_0x34c026)return _0x34c026[_0x38af39(0xc9)];}['getPivotTableInstance'](_0x3262ed){const _0x15946e=_0x3b026f;return this[_0x15946e(0xe6)][_0x15946e(0x257)](_0x3262ed);}[_0x3b026f(0x1d1)](_0x465734){const _0x1e10ef=_0x3b026f;this[_0x1e10ef(0x2b8)][_0x1e10ef(0x32e)](_0x465734);const _0x3e9db4=this['_dataFieldManagerCollection']['get'](_0x465734);_0x3e9db4&&(_0x3e9db4[_0x1e10ef(0x209)](),this[_0x1e10ef(0x1f7)][_0x1e10ef(0x32e)](_0x465734)),this[_0x1e10ef(0x21c)][_0x1e10ef(0x32e)](_0x465734),this['needSameDeleteModel'][_0x1e10ef(0x38c)](_0x3d6212=>{const _0x190a91=_0x1e10ef;_0x3d6212[_0x190a91(0x1d1)](_0x465734);});}[_0x3b026f(0x215)](_0x5c16f4,_0x392db3,_0x25b63b,_0x334f78){const _0x47e11b=_0x3b026f;return this[_0x47e11b(0x37f)](_0x25b63b[_0x47e11b(0xbb)])[_0x47e11b(0x215)](_0x5c16f4,_0x392db3,_0x25b63b,_0x334f78);}[_0x3b026f(0x2e7)](_0x21f015){const _0x449e0d=_0x3b026f;return this[_0x449e0d(0x37f)](_0x21f015[_0x449e0d(0xbb)])[_0x449e0d(0x2e7)](_0x21f015);}[_0x3b026f(0x89)](_0x3f420b,_0x36195c,_0x1bdaf7){const _0x35367a=_0x3b026f;this[_0x35367a(0x37f)](_0x1bdaf7[_0x35367a(0xbb)])[_0x35367a(0x89)](_0x3f420b,_0x36195c,_0x1bdaf7);}[_0x3b026f(0x24c)](_0x46249e,_0x1b1e61){const _0x642917=_0x3b026f;this['getDataFieldManager'](_0x46249e)[_0x642917(0x175)](_0x1b1e61);}[_0x3b026f(0xe0)](_0x1f3362,_0x554580){const _0x2eff05=_0x3b026f;this[_0x2eff05(0x37f)](_0x1f3362)['removeCollectionImp'](_0x554580);}[_0x3b026f(0x2f9)](_0x2b754a,_0x7f4520){const _0x1f75cb=_0x3b026f;var _0x971814;return(_0x971814=this['_model'][_0x1f75cb(0x257)](_0x2b754a))==null?void 0x0:_0x971814[_0x1f75cb(0x257)](_0x7f4520);}['getTargetByPivotId'](_0x52e97e){const _0x46ace4=_0x3b026f;for(const [_0x4ae34b,_0x53822d]of this[_0x46ace4(0x2b8)][_0x46ace4(0x278)]())for(const [_0x6b453a,_0x4ff56c]of _0x53822d[_0x46ace4(0x278)]())if(_0x4ff56c[_0x46ace4(0x188)](_0x52e97e))return{'unitId':_0x4ae34b,'subUnitId':_0x6b453a};return null;}[_0x3b026f(0x369)](_0x34e69c,_0x1c9c0e,_0xbbddf6,_0x1cba9f){const _0x35bbd9=_0x3b026f,_0x1916c5=this['_ensureViewDataMap'](_0x34e69c,_0x1c9c0e);_0x1cba9f?_0x1916c5[_0x35bbd9(0x118)](_0xbbddf6,_0x1cba9f):_0x1916c5[_0x35bbd9(0x32e)](_0xbbddf6),this[_0x35bbd9(0x391)][_0x35bbd9(0x2ba)]({'unitId':_0x34e69c,'subUnitId':_0x1c9c0e,'pivotTableId':_0xbbddf6});}[_0x3b026f(0x209)](){const _0x16b399=_0x3b026f;super[_0x16b399(0x209)]();}[_0x3b026f(0x2f7)](_0x1573ed,_0xa41c24,_0x50fda0){const _0x4c21fa=_0x3b026f;var _0x598a96,_0x307406;const _0x4031f6=(_0x307406=(_0x598a96=this[_0x4c21fa(0x21c)]['get'](_0x1573ed))==null?void 0x0:_0x598a96['get'](_0xa41c24))==null?void 0x0:_0x307406[_0x4c21fa(0x257)](_0x50fda0);return _0x4031f6||null;}[_0x3b026f(0xc5)](_0x14a8b3){const _0x177ab7=_0x3b026f;this[_0x177ab7(0x82)](_0x14a8b3);}[_0x3b026f(0x82)](_0x3f0c5c){const _0x171e56=_0x3b026f,{token:_0x441c25,unitId:_0x41c51e,subUnitId:_0x3ab61f}=_0x3f0c5c,_0x2a75a4=_0x41c51e+'-'+_0x3ab61f+'-'+_0x441c25;this[_0x171e56(0xa5)][_0x171e56(0x257)](_0x2a75a4)&&clearTimeout(this[_0x171e56(0xa5)][_0x171e56(0x257)](_0x2a75a4));const _0x12e968=setTimeout(()=>{const _0x29d07e=_0x171e56;this['queryDirtyPivotTable'](_0x3f0c5c),this[_0x29d07e(0xa5)]['delete'](_0x2a75a4);},_0x2ee3d2);this['_queryingMap'][_0x171e56(0x118)](_0x2a75a4,_0x12e968);}['queryDirtyPivotTable'](_0x3723f0){const _0x47359e=_0x3b026f,{unitId:_0x580a21,subUnitId:_0x373922,token:_0xe828ab,type:_0x4ed8d2,pivotConfig:_0x20869b}=_0x3723f0,_0x63740b=this[_0x47359e(0xcc)](_0xe828ab),_0x47ebd7=_0x63740b==null?void 0x0:_0x63740b[_0x47359e(0x349)](),_0x293c5f=_0x20869b!=null?_0x20869b:this[_0x47359e(0x26f)](_0x580a21,_0x373922,_0xe828ab);_0x293c5f&&(_0x293c5f[_0x47359e(0x298)]=!!(_0x63740b!=null&&_0x63740b['isEmpty']())),(_0x47ebd7||_0x4ed8d2===_0x1fd0cc[_0x47359e(0x35d)])&&this['updateView'](_0x580a21,_0x373922,_0x4ed8d2,_0xe828ab,_0x47ebd7,_0x293c5f,this[_0x47359e(0x37f)](_0x580a21)[_0x47359e(0x2b3)]());}[_0x3b026f(0x2b3)](_0x3e706b){const _0x451d2b=_0x3b026f,_0xdc8287={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['getDataFieldManager'](_0x3e706b)&&(_0xdc8287[_0x451d2b(0x1cd)][_0x3e706b]=this[_0x451d2b(0x37f)](_0x3e706b)[_0x451d2b(0x2b3)]()),this['_model'][_0x451d2b(0x257)](_0x3e706b)){_0xdc8287['pivotTableConfigs'][_0x3e706b]={};const _0x49ae88=this[_0x451d2b(0x2b8)][_0x451d2b(0x257)](_0x3e706b);_0x49ae88!=null&&_0x49ae88['size']&&[..._0x49ae88['keys']()][_0x451d2b(0x38c)](_0x97a168=>{const _0x503529=_0x451d2b,_0x19d1a6=_0x49ae88[_0x503529(0x257)](_0x97a168);_0x19d1a6!=null&&_0x19d1a6[_0x503529(0x15e)]&&(_0xdc8287[_0x503529(0x233)][_0x3e706b][_0x97a168]={},[..._0x19d1a6['keys']()][_0x503529(0x38c)](_0x47aa21=>{const _0x2ce9ab=_0x503529,_0x20d0e9=_0x19d1a6[_0x2ce9ab(0x257)](_0x47aa21);_0x20d0e9&&(_0xdc8287[_0x2ce9ab(0x233)][_0x3e706b][_0x97a168][_0x47aa21]=_0x20d0e9);}));});}return _0xdc8287;}[_0x3b026f(0x27a)](_0xdb6d6c){const _0x240b8f=_0x3b026f;var _0x3912c0;const {dataFieldManagerConfig:_0x1f28bd,pivotTableConfigs:_0x1a0077}=_0xdb6d6c;_0x1f28bd&&Object['keys'](_0x1f28bd)[_0x240b8f(0x38c)](_0x318d53=>{const _0x2e7d9e=_0x240b8f;this[_0x2e7d9e(0x37f)](_0x318d53)[_0x2e7d9e(0x27a)](_0x1f28bd[_0x318d53]);});const _0x5f0cd0=[];if(_0x1a0077){const _0x56f811=(_0x3912c0=this[_0x240b8f(0xf5)][_0x240b8f(0x257)](_0x22b490[_0x240b8f(0x145)])[_0x240b8f(0x9e)](_0x19c977[_0x240b8f(0x2a8)]))!=null?_0x3912c0:{},{ls:_0x53b742,pbk:_0x4008f8}=_0x56f811,_0x56a8a1=_0xefb951(_0x4a2a99,_0x53b742,_0x4008f8)[_0x240b8f(0x269)];Object[_0x240b8f(0x226)](_0x1a0077)[_0x240b8f(0x38c)](_0x55b885=>{const _0x4290ea=_0x240b8f;let _0x2954cc=0x0;const _0x3e9dea=_0x1a0077[_0x55b885];Object['keys'](_0x3e9dea)[_0x4290ea(0x38c)](_0x3163fa=>{const _0x45e276=_0x4290ea,_0x152ae4=_0x3e9dea[_0x3163fa];Object[_0x45e276(0x226)](_0x152ae4)[_0x45e276(0x38c)](_0x33106c=>{const _0x16aac=_0x45e276,_0x11542c=_0x152ae4[_0x33106c];if(_0x11542c){if(_0x2954cc>=_0x56a8a1)return;_0x2954cc++;const _0x26c673=this[_0x16aac(0x37f)](_0x55b885),_0x3ec807=_0x26c673[_0x16aac(0x112)][_0x33106c],_0x17bf30=_0x3ec807[_0x16aac(0x378)]();let _0x1147c2=0x0;const _0x5954cb=[];for(const _0x26376a of _0x17bf30){const _0x49b344=_0x3ec807[_0x16aac(0x2e9)](_0x26376a);if(_0x40290a['isBaseGroupField'](_0x49b344)){const _0x20dc62=_0x49b344[_0x16aac(0x124)](),_0xd44edb=_0x3ec807['getFieldById'](_0x20dc62);_0xd44edb&&_0x5954cb[_0x16aac(0x1b3)]([_0x49b344,_0xd44edb]);continue;}_0x26c673[_0x16aac(0x24d)](_0x26376a,_0x11542c[_0x16aac(0x382)],_0x1147c2),_0x1147c2++;}_0x5954cb[_0x16aac(0x38c)](([_0x51e4d6,_0x3b5745])=>{const _0x43c5b3=_0x16aac;_0x51e4d6[_0x43c5b3(0x261)](_0x3b5745);});const _0x41a8a1=new _0x40290a[(_0x16aac(0x1f9))](_0x3ec807);_0x41a8a1[_0x16aac(0x27a)](_0x11542c[_0x16aac(0xc9)]),this['addPivotTable'](_0x55b885,_0x3163fa,_0x33106c,_0x41a8a1,_0x11542c);const _0x3165d0=_0x41a8a1[_0x16aac(0x349)]();_0x5f0cd0[_0x16aac(0x1b3)]({'unitId':_0x55b885,'subUnitId':_0x3163fa,'pivotTableId':_0x33106c,'view':_0x3165d0[_0x16aac(0x2b3)](),'pivotConfig':_0x11542c,'type':_0x1fd0cc['Add']});const _0x4b556b=!!_0x41a8a1[_0x16aac(0x298)](),_0x2e43f4={'view':_0x3165d0,'pivotTableId':_0x33106c,'textInfo':this[_0x16aac(0x1d2)](),'isEmpty':_0x4b556b,'targetCellInfo':_0x11542c[_0x16aac(0x157)]};this[_0x16aac(0x18a)](_0x2e43f4,!0x1);}});});});}_0x1f28bd&&Object[_0x240b8f(0x226)](_0x1f28bd)[_0x240b8f(0x38c)](_0x1c5a36=>{const _0x3bd752=_0x240b8f,_0x50d3d3=this[_0x3bd752(0x37f)](_0x1c5a36);this[_0x3bd752(0x1bd)][_0x3bd752(0x2ba)](_0x50d3d3[_0x3bd752(0x112)]);}),this[_0x240b8f(0x1c7)][_0x240b8f(0xe1)](_0x5973c5['id'],{'batch':_0x5f0cd0,'collectionConfig':_0x1f28bd},{'onlyLocal':!0x0});}[_0x3b026f(0x360)](){const _0x26fd97=_0x3b026f;this[_0x26fd97(0x2ea)](this[_0x26fd97(0x2a7)][_0x26fd97(0x1db)]({'toJson':_0x1573fb=>JSON[_0x26fd97(0x1bb)](this['toJSON'](_0x1573fb)),'parseJson':_0x58909c=>{const _0x5b42a3=_0x26fd97;if(!_0x58909c)return{};try{return JSON[_0x5b42a3(0x235)](_0x58909c);}catch{return{};}},'businesses':[_0x22b490[_0x26fd97(0x8f)][_0x26fd97(0x19f)]],'pluginName':_0x4dbb63,'onLoad':(_0x2ce3e2,_0xeaba2c)=>{const _0xc81ac5=_0x26fd97;this[_0xc81ac5(0x27a)](_0xeaba2c);},'onUnLoad':_0x591dc9=>{this['deleteUnitId'](_0x591dc9);}}));}},_0x4b10df[_0x3b026f(0x19b)]=_0x589e5b([_0x56e1c0(0x0,_0x22b490['Inject'](_0x22b490[_0x3b026f(0x227)])),_0x56e1c0(0x1,_0x22b490[_0x3b026f(0x276)]),_0x56e1c0(0x2,_0x22b490['Inject'](_0x22b490[_0x3b026f(0xd1)])),_0x56e1c0(0x3,_0x22b490['IConfigService']),_0x56e1c0(0x4,_0x22b490[_0x3b026f(0x2fe)]),_0x56e1c0(0x5,_0x22b490['Inject'](_0x22b490[_0x3b026f(0x2d0)]))],_0x4b10df[_0x3b026f(0x19b)]);const _0x440874={0x0:{0x0:{'v':'filter','s':_0x1d18db}},0x2:{0x1:{'v':'','s':_0x1d18db},0x2:{'v':'','s':_0x1d18db},0x3:{'v':'column','s':_0x1d18db},0x4:{'v':'','s':_0x1d18db},0x5:{'v':'','s':_0x1d18db}},0x3:{0x0:{'v':'','s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':'','s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}},0x4:{0x0:{'v':'','s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':'','s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}},0x5:{0x0:{'v':'','s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':'','s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}},0x6:{0x0:{'v':'','s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':'','s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}},0x7:{0x0:{'v':'','s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':'','s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}},0x8:{0x0:{'v':_0x3b026f(0x2e2),'s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':_0x3b026f(0x248),'s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}},0x9:{0x0:{'v':'','s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':'','s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}},0xa:{0x0:{'v':'','s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':'','s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}},0xb:{0x0:{'v':'','s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':'','s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}},0xc:{0x0:{'v':'','s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':'','s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}},0xd:{0x0:{'v':'','s':_0x1d18db},0x1:{'v':'','s':_0x3626c9},0x2:{'v':'','s':_0x3626c9},0x3:{'v':'','s':_0x3626c9},0x4:{'v':'','s':_0x3626c9},0x5:{'v':'','s':_0x3626c9}}},_0x4fe19e={'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':[]},_0x16154e=(_0x6ff504,_0x127c2c)=>{const _0x2a31a3=_0x3b026f,_0x386b7c=new _0x22b490[(_0x2a31a3(0x398))](),_0x426e8b=new _0x22b490[(_0x2a31a3(0x398))](_0x440874),{row:_0x1356af,col:_0x32d42f}=_0x127c2c;_0x426e8b['forValue']((_0xf8b9ec,_0x175163,_0x2bfa42)=>{const _0x42ceea=_0x2a31a3;let _0x148ee0='';_0x2bfa42['v']===_0x42ceea(0x394)?_0x148ee0=_0x6ff504[_0x42ceea(0x394)]:_0x2bfa42['v']===_0x42ceea(0x2e2)?_0x148ee0=_0x6ff504[_0x42ceea(0x2e2)]:_0x2bfa42['v']===_0x42ceea(0x169)?_0x148ee0=_0x6ff504[_0x42ceea(0x169)]:_0x2bfa42['v']===_0x42ceea(0x248)&&(_0x148ee0=_0x6ff504[_0x42ceea(0x248)]),_0x386b7c['setValue'](_0xf8b9ec+_0x1356af,_0x175163+_0x32d42f,{..._0x2bfa42,'v':_0x148ee0});});const _0x250c21=_0x22b490['Tools'][_0x2a31a3(0x1b4)](_0x4fe19e);return Object[_0x2a31a3(0x226)](_0x4fe19e)['forEach'](_0x92132e=>{const _0x56802b=_0x2a31a3;_0x250c21[_0x92132e]=_0x4fe19e[_0x92132e][_0x56802b(0x28d)](_0x33ccac=>({..._0x33ccac,'startRow':_0x33ccac['startRow']+_0x1356af,'endRow':_0x33ccac[_0x56802b(0x15d)]+_0x1356af,'startColumn':_0x33ccac[_0x56802b(0x2e5)]+_0x32d42f,'endColumn':_0x33ccac[_0x56802b(0xe2)]+_0x32d42f}));}),{'matrixCache':_0x386b7c,'rangesCache':_0x250c21};};function _0x2b67ed(_0x2e297d,_0x4ce144){const _0x363bac=_0x3b026f;let _0x4abd5f='';const _0x8de53=this[_0x363bac(0x1d2)]();switch(_0x4ce144){case _0x40290a[_0x363bac(0x10e)][_0x363bac(0x33c)]:_0x4abd5f=_0x8de53[_0x363bac(0x2ad)]+_0x2e297d;break;case _0x40290a[_0x363bac(0x10e)][_0x363bac(0x269)]:_0x4abd5f=_0x8de53['sheets-pivot.countName']+_0x2e297d;break;case _0x40290a['PivotSubtotalTypeEnum'][_0x363bac(0x27c)]:_0x4abd5f=_0x8de53[_0x363bac(0x87)]+_0x2e297d;break;case _0x40290a[_0x363bac(0x10e)]['max']:_0x4abd5f=_0x8de53['sheets-pivot.maxName']+_0x2e297d;break;case _0x40290a[_0x363bac(0x10e)][_0x363bac(0x1e4)]:_0x4abd5f=_0x8de53['sheets-pivot.minName']+_0x2e297d;break;case _0x40290a[_0x363bac(0x10e)][_0x363bac(0x365)]:_0x4abd5f=_0x8de53[_0x363bac(0x2f4)]+_0x2e297d;break;case _0x40290a['PivotSubtotalTypeEnum'][_0x363bac(0x159)]:_0x4abd5f=_0x8de53[_0x363bac(0x8a)]+_0x2e297d;break;case _0x40290a[_0x363bac(0x10e)][_0x363bac(0x234)]:_0x4abd5f=_0x8de53['sheets-pivot.stdDevpName']+_0x2e297d;break;case _0x40290a[_0x363bac(0x10e)][_0x363bac(0x1ab)]:_0x4abd5f=_0x8de53[_0x363bac(0x1cf)]+_0x2e297d;break;case _0x40290a[_0x363bac(0x10e)][_0x363bac(0x136)]:_0x4abd5f=_0x8de53[_0x363bac(0x7a)]+_0x2e297d;break;case _0x40290a[_0x363bac(0x10e)]['varp']:_0x4abd5f=_0x8de53[_0x363bac(0x1e7)]+_0x2e297d;break;default:_0x4abd5f=_0x2e297d;break;}return _0x4abd5f;}function _0x5ca324(_0x191ca6,_0x55d2c9,_0x4ad4b9,_0x54c023,_0xa5f12a){const _0x18434b=_0x3b026f;var _0x2a6fb2,_0x4d55a5,_0x3a11db,_0x2f539f,_0x286fe6;const _0x1c62a5=_0x22b490[_0x18434b(0x1cc)](_0x191ca6,_0x55d2c9),{rangesInfo:_0x572d82,areaInfo:_0x41ddb2,headerMap:_0x3b505a}=_0xa5f12a;if(!_0x572d82||!_0x41ddb2||!_0x3b505a)return;const _0xe4bdac=Object['keys'](_0x572d82)[_0x18434b(0x219)](_0x40c1ae=>_0x572d82[_0x40c1ae][_0x18434b(0x224)](_0x2b51e0=>_0x22b490[_0x18434b(0x36e)][_0x18434b(0x14b)](_0x2b51e0,_0x1c62a5))),_0x386e86=_0x41ddb2;let _0x49d5e5,_0x3330f5,_0x3a2355;if(_0xe4bdac===_0x18434b(0x223))_0x49d5e5=(_0x2a6fb2=_0x386e86==null?void 0x0:_0x386e86[_0x18434b(0x23f)])==null?void 0x0:_0x2a6fb2[_0x191ca6],_0x3330f5=(_0x4d55a5=_0x3b505a==null?void 0x0:_0x3b505a['rowHeaderMap'])==null?void 0x0:_0x4d55a5[_0x55d2c9],_0x3a2355=_0x3330f5==null?void 0x0:_0x3330f5[_0x18434b(0x355)];else{if(_0xe4bdac===_0x18434b(0x197))_0x49d5e5=(_0x3a11db=_0x386e86==null?void 0x0:_0x386e86['colInfo'])==null?void 0x0:_0x3a11db[_0x55d2c9],_0x3330f5=(_0x2f539f=_0x3b505a[_0x18434b(0x303)])==null?void 0x0:_0x2f539f[_0x191ca6+0x1+_0x55d2c9-_0x572d82['colRanges'][0x0][_0x18434b(0x2e5)]],_0x3a2355=_0x3330f5==null?void 0x0:_0x3330f5['tableFieldId'];else{if(_0xe4bdac===_0x18434b(0x282))_0x49d5e5=(_0x286fe6=_0x386e86==null?void 0x0:_0x386e86[_0x18434b(0x27f)])==null?void 0x0:_0x286fe6[_0x55d2c9],_0x3a2355=_0x49d5e5==null?void 0x0:_0x49d5e5[_0x18434b(0x355)];else{if(_0xe4bdac===_0x18434b(0xad)){const _0x47d3a1=_0x4ad4b9==null?void 0x0:_0x4ad4b9['fi'];_0x47d3a1!==void 0x0&&(_0x3a2355=_0x54c023['getFilterFieldIdByIndex'](_0x47d3a1));}}}}return{'filterId':_0x3a2355,'info':_0x49d5e5,'data':_0x4ad4b9,'headerInfo':_0x3330f5};}function _0xecf658(_0x4a5ea8,_0x40fac1,_0x1c7311){const _0x336ad7=_0x3b026f,_0x58f9e4=_0x4a5ea8[_0x336ad7(0xbf)],_0x31b0e1=_0x58f9e4['getFieldIds'](),_0x35b83a=new Set();_0x4a5ea8[_0x336ad7(0x309)](_0x4e8ec5=>{const _0x2b25b8=_0x336ad7;_0x35b83a[_0x2b25b8(0x208)](_0x4e8ec5[_0x2b25b8(0x10c)]);});const _0x2ebaab=_0x31b0e1[_0x336ad7(0x28d)](_0x3afd72=>{const _0x5efaa8=_0x336ad7,_0x54b964=_0x58f9e4[_0x5efaa8(0x2e9)](_0x3afd72);return{'checked':_0x35b83a[_0x5efaa8(0x188)](_0x3afd72),'dataFieldId':_0x54b964['id'],'id':_0x54b964['id'],'name':_0x58f9e4[_0x5efaa8(0x16a)](_0x54b964['id']),'type':_0x54b964['getFieldDataType'](),'pivotTableId':_0x40fac1};}),_0x2a9051=[];_0x4a5ea8['iterateFieldByArea'](_0x40290a[_0x336ad7(0x380)][_0x336ad7(0x168)],_0x47bb70=>{const _0xbb13a7=_0x336ad7;_0x2a9051[_0xbb13a7(0x1b3)]({'dataFieldId':_0x47bb70[_0xbb13a7(0x10c)],'tableFieldId':_0x47bb70[_0xbb13a7(0x35a)](),'displayName':_0x47bb70[_0xbb13a7(0x16a)]()});});const _0x15cf43=[];_0x4a5ea8['iterateFieldByArea'](_0x40290a[_0x336ad7(0x380)][_0x336ad7(0xa8)],_0xfb9d2f=>{const _0x51cef0=_0x336ad7;_0x15cf43['push']({'dataFieldId':_0xfb9d2f['dataFieldId'],'tableFieldId':_0xfb9d2f['getId'](),'displayName':_0xfb9d2f[_0x51cef0(0x16a)]()});});const _0x17ec2d=[];if(_0x4a5ea8['iterateFieldByArea'](_0x40290a[_0x336ad7(0x380)][_0x336ad7(0x13e)],_0x4e6aea=>{const _0x559b40=_0x336ad7;_0x17ec2d[_0x559b40(0x1b3)]({'dataFieldId':_0x4e6aea[_0x559b40(0x10c)],'tableFieldId':_0x4e6aea[_0x559b40(0x35a)](),'displayName':_0x4e6aea[_0x559b40(0x16a)](),'format':_0x4e6aea[_0x559b40(0x2a6)](),'subTotalType':_0x4e6aea['getSubtotal']()});}),_0x17ec2d['length']>0x1){const _0x35f274=_0x4a5ea8[_0x336ad7(0x334)]();(_0x4a5ea8[_0x336ad7(0x1a9)]()?_0x15cf43:_0x2a9051)[_0x336ad7(0x2ec)](_0x35f274,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':_0x336ad7(0xd6)});}const _0x1b16d2=[];_0x4a5ea8[_0x336ad7(0x353)](_0x40290a['PivotTableFiledAreaEnum'][_0x336ad7(0x361)],_0x379e70=>{const _0x3c8bfd=_0x336ad7;_0x1b16d2[_0x3c8bfd(0x1b3)]({'dataFieldId':_0x379e70[_0x3c8bfd(0x10c)],'tableFieldId':_0x379e70[_0x3c8bfd(0x35a)](),'displayName':_0x379e70[_0x3c8bfd(0x16a)]()});});const _0x28b51a=_0x1c7311[_0x336ad7(0x382)];return{'sourceList':_0x2ebaab,'sourceRange':_0x28b51a,'rowFields':_0x2a9051,'columnFields':_0x15cf43,'valueFields':_0x17ec2d,'filterFields':_0x1b16d2,'positionInfo':_0x1c7311[_0x336ad7(0x157)]};}function _0x132d63(_0x1e85b8,_0x2f0710,_0x44ad37='',_0x243520={}){const _0xf2028c=_0x3b026f,_0x260967=_0x1e85b8[_0xf2028c(0x257)](_0x22b490[_0xf2028c(0x2f1)]);for(const _0xd28544 in _0x2f0710)if(Object[_0xf2028c(0x1a2)][_0xf2028c(0x13a)][_0xf2028c(0x232)](_0x2f0710,_0xd28544)){const _0x19bfb5=_0x44ad37?_0x44ad37+'.'+_0xd28544:_0xd28544;typeof _0x2f0710[_0xd28544]=='object'&&_0x2f0710[_0xd28544]!==null&&!Array['isArray'](_0x2f0710[_0xd28544])?_0x132d63(_0x1e85b8,_0x2f0710[_0xd28544],_0x19bfb5,_0x243520):_0x243520[_0x19bfb5]=_0x260967['t'](_0x19bfb5);}return _0x243520;}const _0xfd99c7=_0x59dd7d=>{const _0x31f841=_0x3b026f;if(!_0x59dd7d)return[];const {rowRanges:_0x1c0c81,colRanges:_0x5d0776,cornerRanges:_0x30ab8a,dataRanges:_0x52c4cf,pageRanges:_0x170ba8}=_0x59dd7d,_0xa10a51=[..._0x5d0776,..._0x1c0c81,..._0x52c4cf,..._0x30ab8a][_0x31f841(0x394)](_0xeed423=>_0xeed423[_0x31f841(0x284)]>=0x0&&_0xeed423[_0x31f841(0x2e5)]>=0x0&&_0xeed423[_0x31f841(0x15d)]>=0x0&&_0xeed423[_0x31f841(0xe2)]>=0x0);let _0x4b8702=Number[_0x31f841(0x2c2)],_0xe32b01=Number[_0x31f841(0x1df)],_0x134bad=Number[_0x31f841(0x2c2)],_0x1ab5db=Number['MIN_SAFE_INTEGER'];for(let _0x2fc3c1=0x0;_0x2fc3c1<_0xa10a51[_0x31f841(0x28e)];_0x2fc3c1++)_0x4b8702=Math['min'](_0x4b8702,_0xa10a51[_0x2fc3c1]['startRow']),_0xe32b01=Math[_0x31f841(0x178)](_0xe32b01,_0xa10a51[_0x2fc3c1][_0x31f841(0x15d)]),_0x134bad=Math['min'](_0x134bad,_0xa10a51[_0x2fc3c1][_0x31f841(0x2e5)]),_0x1ab5db=Math[_0x31f841(0x178)](_0x1ab5db,_0xa10a51[_0x2fc3c1]['endColumn']);return[..._0x170ba8,{'startRow':_0x4b8702,'endRow':_0xe32b01,'startColumn':_0x134bad,'endColumn':_0x1ab5db}];};function _0x2c03e4(_0x5c083d,_0x32b00c){const _0x5c0c69=_0x3b026f,_0x43a00c=_0x32b00c[_0x5c0c69(0x265)]['drillDown'],{pivotTableId:_0x9f0e7d,unitId:_0x4ca6af,subUnitId:_0x36ad7f}=_0x32b00c;if(!_0x43a00c)return;const _0x7b3432=_0x5c083d[_0x5c0c69(0x257)](_0x4b10df[_0x5c0c69(0x19b)]),_0x31468a=_0x7b3432['getPivotTableInstance'](_0x9f0e7d),_0x26fee3=_0x7b3432[_0x5c0c69(0x26f)](_0x4ca6af,_0x36ad7f,_0x9f0e7d);if(!_0x31468a||!_0x26fee3)return;const _0x595acf=_0x31468a[_0x5c0c69(0x16d)](_0x43a00c[_0x5c0c69(0x195)]);if(!(_0x595acf!=null&&_0x595acf[_0x5c0c69(0x28e)]))return;const _0x36e62a=_0x26fee3['sourceRangeInfo'],{unitId:_0x56296f,subUnitId:_0x329e3b,range:_0x366028}=_0x36e62a;let _0x32ac8f=0x0;const _0x20ddca=_0x31468a[_0x5c0c69(0xbf)]['getFieldIds']()[_0x5c0c69(0x7f)]((_0x4d5ce3,_0x234463)=>{const _0x5d8d60=_0x5c0c69;var _0x5ac23a;const _0x2b7a55=(_0x5ac23a=_0x31468a[_0x5d8d60(0xc8)](_0x234463))==null?void 0x0:_0x5ac23a[_0x5d8d60(0x165)]();return _0x2b7a55&&(_0x4d5ce3[String(_0x32ac8f)]=_0x2b7a55),_0x32ac8f++,_0x4d5ce3;},{});return{'indexes':_0x595acf,'range':_0x366028,'sourceUnitId':_0x56296f,'sourceSubUnitId':_0x329e3b,'formatMap':_0x20ddca};}function _0x1ef1bf(_0x1ecce5,_0x363588){const _0x38bd48=_0x3b026f;if(!_0x1ecce5||!_0x363588)return!0x0;const _0x30759b=_0x19c977[_0x38bd48(0x134)](_0x13ffea,_0xb9c4d6),_0x10191e=new Function(_0x38bd48(0x238)+_0x30759b)()(_0x1ecce5,_0x363588)[_0x38bd48(0x148)],_0x1a6a2c=_0x19c977[_0x38bd48(0x2cb)](_0x10191e,'sf',_0x23e9ec);return!((_0x10191e==null?void 0x0:_0x10191e['rt'])===_0x19c977[_0x38bd48(0x16f)][_0x38bd48(0x1ea)]&&!_0x1a6a2c);}function _0xefb951(_0x53b305,_0x241abf,_0x2121d7){const _0x541f28=_0x3b026f,_0x579803={'count':_0x53b305,'timeValid':!0x1};if(!_0x241abf||!_0x2121d7)return _0x579803;const _0x143457=_0x19c977[_0x541f28(0x134)](_0x13ffea,_0xb9c4d6),_0x494659=new Function(_0x541f28(0x238)+_0x143457)()(_0x241abf,_0x2121d7);if(_0x494659!=null&&_0x494659[_0x541f28(0x1bc)]){const _0x36359d=_0x494659[_0x541f28(0x148)],_0x2ba008=_0x19c977[_0x541f28(0x2cb)](_0x36359d,'sf',_0x23e9ec);return{'count':_0x19c977[_0x541f28(0x1a5)](_0x36359d,_0x2ba008,_0x541f28(0x1ca),_0x53b305,_0x53b305,0x0),'timeValid':_0x2ba008};}return _0x579803;}function _0xbdd905(_0x5c0873,_0x2faf0d,_0x2aa36b,_0x45372e){const _0x3b7d03=_0x3b026f,_0x1cd8ee={'subUnitId':_0x2aa36b,'unitId':_0x2faf0d,'cellValue':_0x2c7bf0[_0x3b7d03(0x2c5)](_0x45372e)},_0x537cf4=_0x2c7bf0[_0x3b7d03(0xdb)](_0x5c0873,_0x1cd8ee);let _0x14370c=!0x1;return new _0x22b490[(_0x3b7d03(0x398))](_0x537cf4['cellValue'])[_0x3b7d03(0x17f)]((_0x12c0a5,_0x2317f0,_0x599b8f)=>{const _0x24b07f=_0x3b7d03;if(!_0x14370c&&_0x599b8f&&(_0x599b8f[_0x24b07f(0x347)]||_0x599b8f['f']||_0x599b8f['p']||_0x599b8f['s']||_0x599b8f['si']||_0x599b8f['t']||_0x599b8f['v']))return _0x14370c=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x2c7bf0['SetRangeValuesMutation']['id'],'params':_0x537cf4},'setRangeValueRedoMutation':{'id':_0x2c7bf0[_0x3b7d03(0x12e)]['id'],'params':_0x1cd8ee},'shouldClear':_0x14370c};}function _0x1e19fb(_0x2c5df3){const {row:_0x56e4d5,col:_0x4394cd}=_0x2c5df3,_0x22c37f={'startRow':_0x56e4d5,'endRow':_0x56e4d5,'startColumn':_0x4394cd,'endColumn':_0x4394cd},_0x1b712d={'startRow':_0x56e4d5+0x2,'endRow':_0x56e4d5+0xe,'startColumn':_0x4394cd,'endColumn':_0x4394cd+0x6};return[_0x22c37f,_0x1b712d];}function _0x32d480(_0x4ea4cb,_0x1dbe1e,_0x438774){const _0x506747=_0x3b026f,{cornerView:_0x38fb61,rowView:_0x5b03ce,colView:_0x15ee8c,pageView:_0x4f3562}=_0x4ea4cb,{row:_0x8b471c,col:_0x4f75c6}=_0x1dbe1e;if(_0x438774)return{'rowCount':_0x28d420+_0x8b471c,'colCount':_0x2542a1+_0x4f75c6};const _0x3a823c=_0x4f3562[_0x506747(0x15f)]>-0x1?_0x4f3562[_0x506747(0x15f)]+0x1:0x0,_0x5d1fdd=_0x4f3562['lastCol']>-0x1?_0x4f3562[_0x506747(0x1a6)]:0x0,_0x49d33a=_0x8b471c+_0x3a823c+(_0x3a823c?0x1:0x0)+_0x38fb61[_0x506747(0x174)]+_0x5b03ce['rowCount'],_0x3ca5a2=_0x4f75c6+_0x5d1fdd,_0x1e779d=_0x4f75c6+_0x38fb61['colCount']+_0x15ee8c[_0x506747(0x325)],_0xe22047=Math[_0x506747(0x178)](_0x3ca5a2,_0x1e779d);return{'rowCount':_0x49d33a,'colCount':_0xe22047};}function _0x27400a(_0x361598,_0x3f7518,_0xcbf302,_0x2775ce){const _0x5c6eaf=_0x3b026f,{row:_0xfdf22d,col:_0x166e75,unitId:_0x679e41,subUnitId:_0x3d93a4}=_0xcbf302,_0x5a41e0=_0x32d480(_0x3f7518,{'row':_0xfdf22d,'col':_0x166e75},_0x2775ce),_0xa93e2f=_0x361598['get'](_0x22b490[_0x5c6eaf(0x276)]),_0xf1d5e4=_0x2c7bf0['getSheetCommandTarget'](_0xa93e2f,{'unitId':_0x679e41,'subUnitId':_0x3d93a4}),_0x524733=[],_0x5e9b99=[];if(!_0xf1d5e4)return{'undos':_0x5e9b99,'redos':_0x524733};const {worksheet:_0x3a2c48}=_0xf1d5e4,_0x321b7f=_0x3a2c48['getRowCount'](),_0x5c972a=_0x3a2c48[_0x5c6eaf(0x11f)]();return _0x321b7f<_0x5a41e0[_0x5c6eaf(0x174)]&&(_0x524733[_0x5c6eaf(0x1b3)]({'id':_0x2c7bf0[_0x5c6eaf(0x25f)]['id'],'params':{'unitId':_0x679e41,'subUnitId':_0x3d93a4,'range':{'startRow':_0x321b7f,'endRow':_0x5a41e0[_0x5c6eaf(0x174)]-0x1,'startColumn':0x0,'endColumn':_0x5c972a-0x1}}}),_0x5e9b99[_0x5c6eaf(0x1b3)]({'id':_0x2c7bf0['RemoveRowMutation']['id'],'params':{'unitId':_0x679e41,'subUnitId':_0x3d93a4,'range':{'startRow':_0x321b7f,'endRow':_0x5a41e0[_0x5c6eaf(0x174)]-0x1,'startColumn':0x0,'endColumn':_0x5c972a-0x1}}})),_0x5c972a<_0x5a41e0['colCount']&&(_0x524733[_0x5c6eaf(0x1b3)]({'id':_0x2c7bf0[_0x5c6eaf(0x317)]['id'],'params':{'unitId':_0x679e41,'subUnitId':_0x3d93a4,'range':{'startRow':0x0,'endRow':_0x321b7f-0x1,'startColumn':_0x5c972a,'endColumn':_0x5a41e0[_0x5c6eaf(0x325)]-0x1}}}),_0x5e9b99['push']({'id':_0x2c7bf0[_0x5c6eaf(0x1b2)]['id'],'params':{'unitId':_0x679e41,'subUnitId':_0x3d93a4,'range':{'startRow':0x0,'endRow':_0x321b7f-0x1,'startColumn':_0x5c972a,'endColumn':_0x5a41e0['colCount']-0x1}}})),{'undos':_0x5e9b99,'redos':_0x524733};}function _0x3f8354(_0xed7c9f){const _0x3df2a4=_0x3b026f;let _0x50cefa=0x0;for(let _0x4a7c55=0x0;_0x4a7c55<_0xed7c9f[_0x3df2a4(0x28e)];_0x4a7c55++){const _0x466644=_0xed7c9f[_0x3df2a4(0x11c)](_0x4a7c55);_0x466644>=0x4e00&&_0x466644<=0x9fff||_0x466644>=0x3000&&_0x466644<=0x303f||_0x466644>=0xff00&&_0x466644<=0xffef?_0x50cefa+=0x2:_0x50cefa+=0x1;}return _0x50cefa;}function _0x598323(_0x1a1324,_0x5b94a4,_0x206c7a,_0x5a11a8){const _0x5b9107=_0x3b026f;var _0x369d8c,_0x1ad519,_0x4577da,_0x2a5d46;const {rowCount:_0x35943f,colCount:_0x30d17b,headerMap:_0x59fef0}=_0x1a1324,_0x310848=0x64,_0xdc0ddf=Math['min'](_0x35943f,_0x310848),_0x47d7ba=Math['min'](_0x30d17b,_0x310848);let _0x3dbbd0='',_0x5d2e48=0x0;for(let _0x271072=0x0;_0x271072<_0xdc0ddf;_0x271072++)for(let _0x368265=0x0;_0x368265<_0x47d7ba;_0x368265++){const _0x3847a2={...(_0x1ad519=(_0x369d8c=_0x1a1324['data'])==null?void 0x0:_0x369d8c[_0x271072])==null?void 0x0:_0x1ad519[_0x368265]},_0x2f96b5=(_0x4577da=_0x59fef0[_0x271072])==null?void 0x0:_0x4577da['tableFieldId'],_0x31682e=_0x5a11a8[_0x2f96b5];let _0x51e4b2=_0x1a1324['getValue'](_0x271072,_0x368265);if(_0x3847a2){const _0xcf421d=_0x206c7a?_0x368265===0x0&&((_0x2a5d46=_0x1a1324[_0x5b9107(0x1f1)](_0x368265+0x1))==null?void 0x0:_0x2a5d46[_0x5b9107(0xee)]):!0x1;_0x51e4b2=_0xa7d1b6(_0x3847a2,_0xcf421d,_0x31682e,_0x5b94a4);}if(_0x51e4b2!==void 0x0){const _0x2d21ee=_0x3f8354(String(_0x51e4b2));_0x5d2e48<_0x2d21ee&&(_0x3dbbd0=String(_0x51e4b2),_0x5d2e48=_0x2d21ee);}}return _0x3dbbd0;}function _0x34a0fb(_0x48d7dd){const _0x19792c=_0x3b026f,{rowCount:_0x2cebe3,colCount:_0x3ef471}=_0x48d7dd;let _0x26494f='',_0x5085ab=0x0;for(let _0x24e019=_0x2cebe3-0x1;_0x24e019>0x0&&_0x24e019>_0x2cebe3-0x3;_0x24e019--)for(let _0xf72fd1=0x0;_0xf72fd1<_0x3ef471;_0xf72fd1++){const _0x12dbe2=_0x48d7dd[_0x19792c(0xc2)](_0x24e019,_0xf72fd1);if(_0x12dbe2!==void 0x0){const _0xc2c940=String(_0x12dbe2)[_0x19792c(0x28e)];_0x5085ab<_0xc2c940&&(_0x26494f=String(_0x12dbe2),_0x5085ab=_0xc2c940);}}return _0x26494f;}function _0x160e08(_0x8f280b){const _0xa1b10d=_0x3b026f,{rowCount:_0x5eac73,colCount:_0x1abad6}=_0x8f280b;let _0x468a4e='',_0x3d71f6=0x0;for(let _0x54e4d3=0x0;_0x54e4d3<_0x5eac73;_0x54e4d3++)for(let _0x1516e8=0x0;_0x1516e8<_0x1abad6;_0x1516e8++){const _0x1aeadf=_0x8f280b[_0xa1b10d(0xc2)](_0x54e4d3,_0x1516e8);if(_0x1aeadf!==void 0x0){const _0x1d3a69=String(_0x1aeadf)[_0xa1b10d(0x28e)];_0x3d71f6<_0x1d3a69&&(_0x468a4e=String(_0x1aeadf),_0x3d71f6=_0x1d3a69);}}return _0x468a4e;}function _0xf3a918(_0x1d2c2e,_0x3312d4){const _0x6f87b9=_0x3b026f,{rowFields:_0x780ad0,columnFields:_0x315280,valueFields:_0x273329,filterFields:_0x355c1e,dimension:_0x1c0906,measure:_0x119a78}=_0x3312d4;for(const _0x542005 of _0x780ad0){const _0x1a4a5d=_0x1c0906[_0x542005];_0x1a4a5d&&_0x1d2c2e[_0x6f87b9(0xc8)](_0x1a4a5d[_0x6f87b9(0x10c)])&&(_0x1d2c2e[_0x6f87b9(0xb2)](_0x1a4a5d['dataFieldId'],_0x40290a[_0x6f87b9(0x380)][_0x6f87b9(0x168)],void 0x0,_0x542005),_0x1a4a5d[_0x6f87b9(0x167)]&&_0x1d2c2e[_0x6f87b9(0x259)](_0x1a4a5d['id'],_0x1a4a5d[_0x6f87b9(0x167)]),_0x1a4a5d[_0x6f87b9(0x2fb)]&&_0x1d2c2e[_0x6f87b9(0x14c)](_0x1a4a5d['id'],_0x1a4a5d[_0x6f87b9(0x2fb)]),_0x1a4a5d[_0x6f87b9(0x15b)]&&_0x1d2c2e[_0x6f87b9(0xa9)](_0x1a4a5d['id'],_0x1a4a5d[_0x6f87b9(0x15b)]));}for(const _0x4d43b9 of _0x315280){const _0x466041=_0x1c0906[_0x4d43b9];_0x466041&&_0x1d2c2e[_0x6f87b9(0xc8)](_0x466041['dataFieldId'])&&(_0x1d2c2e[_0x6f87b9(0xb2)](_0x466041[_0x6f87b9(0x10c)],_0x40290a[_0x6f87b9(0x380)][_0x6f87b9(0xa8)],void 0x0,_0x4d43b9),_0x466041['sortInfo']&&_0x1d2c2e[_0x6f87b9(0x14c)](_0x466041['id'],_0x466041[_0x6f87b9(0x2fb)]),_0x466041[_0x6f87b9(0x15b)]&&_0x1d2c2e[_0x6f87b9(0xa9)](_0x466041['id'],_0x466041[_0x6f87b9(0x15b)]),_0x466041[_0x6f87b9(0x167)]&&_0x1d2c2e['renameField'](_0x466041['id'],_0x466041[_0x6f87b9(0x167)]));}for(const _0x2e12ef of _0x355c1e){const _0xd80ba7=_0x1c0906[_0x2e12ef];_0xd80ba7&&_0x1d2c2e[_0x6f87b9(0xc8)](_0xd80ba7['dataFieldId'])&&(_0x1d2c2e['addFieldWithSourceId'](_0xd80ba7[_0x6f87b9(0x10c)],_0x40290a[_0x6f87b9(0x380)][_0x6f87b9(0x361)],void 0x0,_0x2e12ef),_0xd80ba7[_0x6f87b9(0x2fb)]&&_0x1d2c2e['setSortInfo'](_0xd80ba7['id'],_0xd80ba7[_0x6f87b9(0x2fb)]),_0xd80ba7[_0x6f87b9(0x15b)]&&_0x1d2c2e[_0x6f87b9(0xa9)](_0xd80ba7['id'],_0xd80ba7[_0x6f87b9(0x15b)]),_0xd80ba7[_0x6f87b9(0x167)]&&_0x1d2c2e[_0x6f87b9(0x259)](_0xd80ba7['id'],_0xd80ba7['displayName']));}for(const _0x177f3b of _0x273329){const _0x4d4d49=_0x119a78[_0x177f3b];_0x4d4d49&&_0x1d2c2e[_0x6f87b9(0xc8)](_0x4d4d49[_0x6f87b9(0x10c)])&&(_0x1d2c2e[_0x6f87b9(0xb2)](_0x4d4d49['dataFieldId'],_0x40290a[_0x6f87b9(0x380)]['Value'],void 0x0,_0x177f3b),_0x4d4d49['subtotal']!==void 0x0&&_0x1d2c2e[_0x6f87b9(0x98)](_0x177f3b,_0x4d4d49[_0x6f87b9(0x1a3)]),_0x4d4d49[_0x6f87b9(0x2a4)]&&_0x1d2c2e[_0x6f87b9(0x7b)](_0x177f3b,_0x4d4d49[_0x6f87b9(0x2a4)]),_0x4d4d49[_0x6f87b9(0x167)]&&_0x1d2c2e[_0x6f87b9(0x259)](_0x4d4d49['id'],_0x4d4d49[_0x6f87b9(0x167)]));}const _0x4481e7=_0x3312d4['valueFilter'];for(const {fieldId:_0x9894f5,filterInfo:_0x5d7d16}of _0x4481e7)_0x1d2c2e[_0x6f87b9(0x203)](_0x9894f5,_0x5d7d16);}function _0x58671b(_0x43708f,_0x5bd0da){const _0x2c323d=_0x3b026f,_0x3f84ea=[];_0x5bd0da===_0x40290a[_0x2c323d(0x380)]['Row']&&_0x43708f['iterateFieldByArea'](_0x40290a[_0x2c323d(0x380)][_0x2c323d(0x168)],_0x2a338e=>{const _0x15c7cd=_0x2c323d;_0x3f84ea[_0x15c7cd(0x1b3)](_0x2a338e[_0x15c7cd(0x35a)]());}),_0x5bd0da===_0x40290a[_0x2c323d(0x380)][_0x2c323d(0xa8)]&&_0x43708f['iterateFieldByArea'](_0x40290a['PivotTableFiledAreaEnum']['Column'],_0x3eb8bf=>{const _0x4c941e=_0x2c323d;_0x3f84ea[_0x4c941e(0x1b3)](_0x3eb8bf[_0x4c941e(0x35a)]());}),_0x5bd0da===_0x40290a[_0x2c323d(0x380)]['Filter']&&_0x43708f[_0x2c323d(0x353)](_0x40290a[_0x2c323d(0x380)][_0x2c323d(0x361)],_0x4e3d08=>{const _0xd4d7ae=_0x2c323d;_0x3f84ea[_0xd4d7ae(0x1b3)](_0x4e3d08['getId']());}),_0x5bd0da===_0x40290a['PivotTableFiledAreaEnum'][_0x2c323d(0x13e)]&&_0x43708f[_0x2c323d(0x353)](_0x40290a['PivotTableFiledAreaEnum'][_0x2c323d(0x13e)],_0x3bf085=>{const _0x3db514=_0x2c323d;_0x3f84ea['push'](_0x3bf085[_0x3db514(0x35a)]());}),_0x5bd0da===void 0x0&&_0x43708f[_0x2c323d(0x309)](_0x453087=>{const _0x3488af=_0x2c323d;_0x3f84ea[_0x3488af(0x1b3)](_0x453087[_0x3488af(0x35a)]());});const _0x51b3f1=_0x3f84ea[_0x2c323d(0x28e)];for(let _0x4ca617=_0x51b3f1-0x1;_0x4ca617>=0x0;_0x4ca617--)_0x43708f[_0x2c323d(0x21f)](_0x3f84ea[_0x4ca617]);const _0x476ca7=_0x43708f['getValueFilterInfos']();for(const _0x39fae0 in _0x476ca7)_0x43708f[_0x2c323d(0xe7)](_0x39fae0);}function _0x2255e1(_0x213ca7,_0x27840e){const _0x5d51fe=_0x3b026f,_0x2ec878=new Date(_0x40290a[_0x5d51fe(0x1c8)](_0x27840e)),_0xa0baf5=new Date(_0x40290a['excelDateToUnixMilliseconds'](_0x213ca7)),_0x55312b=_0x2ec878[_0x5d51fe(0x2c9)](),_0x56f1ec=_0xa0baf5[_0x5d51fe(0x2c9)](),_0x71b56d=_0x2ec878['getMonth'](),_0x3478c8=_0xa0baf5[_0x5d51fe(0x2e8)](),_0x298ce4=_0x2ec878['getDate'](),_0x373b7=_0xa0baf5[_0x5d51fe(0x1f2)](),_0x473bf9=_0x55312b===_0x56f1ec,_0x5aec7b=_0x473bf9&&_0x71b56d===_0x3478c8;return _0x473bf9&&_0x5aec7b&&!(_0x5aec7b&&_0x298ce4===_0x373b7)?_0x40290a['PivotDateGroupFieldDateTypeEnum'][_0x5d51fe(0x366)]:_0x473bf9&&!_0x5aec7b?_0x40290a[_0x5d51fe(0x399)][_0x5d51fe(0x217)]:_0x40290a[_0x5d51fe(0x399)]['Year'];}function _0x560d71(_0x44213c,_0x5c65bc){const _0x4f26f7=_0x3b026f,_0x2dfffc=_0x44213c[_0x4f26f7(0x257)](_0x4b10df['SheetsPivotDataSourceModel'])[_0x4f26f7(0x1d2)]();let _0xb86f2f='';switch(_0x5c65bc){case _0x40290a[_0x4f26f7(0x399)][_0x4f26f7(0x366)]:_0xb86f2f=_0x2dfffc['sheets-pivot.dateGroup.yearMonthDate'];break;case _0x40290a[_0x4f26f7(0x399)][_0x4f26f7(0x217)]:_0xb86f2f=_0x2dfffc[_0x4f26f7(0x312)];break;case _0x40290a['PivotDateGroupFieldDateTypeEnum'][_0x4f26f7(0xd3)]:_0xb86f2f=_0x2dfffc[_0x4f26f7(0x17a)];break;case _0x40290a['PivotDateGroupFieldDateTypeEnum'][_0x4f26f7(0x187)]:_0xb86f2f=_0x2dfffc[_0x4f26f7(0x171)];break;case _0x40290a[_0x4f26f7(0x399)][_0x4f26f7(0x12a)]:_0xb86f2f=_0x2dfffc[_0x4f26f7(0xa4)];break;case _0x40290a['PivotDateGroupFieldDateTypeEnum']['Date']:_0xb86f2f=_0x2dfffc[_0x4f26f7(0x104)];break;case _0x40290a[_0x4f26f7(0x399)][_0x4f26f7(0x31b)]:_0xb86f2f=_0x2dfffc[_0x4f26f7(0x20b)];break;case _0x40290a[_0x4f26f7(0x399)][_0x4f26f7(0x9f)]:_0xb86f2f=_0x2dfffc[_0x4f26f7(0x38a)];break;case _0x40290a[_0x4f26f7(0x399)][_0x4f26f7(0x19a)]:_0xb86f2f=_0x2dfffc[_0x4f26f7(0x9b)];break;case _0x40290a['PivotDateGroupFieldDateTypeEnum'][_0x4f26f7(0x2cc)]:_0xb86f2f=_0x2dfffc[_0x4f26f7(0x147)];break;case _0x40290a[_0x4f26f7(0x399)][_0x4f26f7(0x27e)]:_0xb86f2f=_0x2dfffc['sheets-pivot.dateGroup.yearQuarter'];break;default:_0xb86f2f='';break;}return _0xb86f2f;}const _0x365664=_0x3b026f(0x1c4),_0x2f5106={};var _0x2600e5=Object['getOwnPropertyDescriptor'],_0x134d70=(_0x152ee9,_0x4d8e6a,_0x1cd9e7,_0x12f688)=>{const _0x19ad35=_0x3b026f;for(var _0x35119b=_0x12f688>0x1?void 0x0:_0x12f688?_0x2600e5(_0x4d8e6a,_0x1cd9e7):_0x4d8e6a,_0x24ba83=_0x152ee9[_0x19ad35(0x28e)]-0x1,_0x1d1f88;_0x24ba83>=0x0;_0x24ba83--)(_0x1d1f88=_0x152ee9[_0x24ba83])&&(_0x35119b=_0x1d1f88(_0x35119b)||_0x35119b);return _0x35119b;},_0x504c0b=(_0x4671bd,_0x3d5f82)=>(_0x253e8b,_0x392fc4)=>_0x3d5f82(_0x253e8b,_0x392fc4,_0x4671bd);_0x4b10df[_0x3b026f(0x125)]=class extends _0x22b490[_0x3b026f(0x2ab)]{constructor(_0x5007e4,_0x225dee,_0x4e0b53,_0xc946ff,_0x4c2d20){const _0x475020=_0x3b026f;super(),_0x57dd8e(this,_0x475020(0x2b8),new Map()),_0x57dd8e(this,_0x475020(0x20f),new Map()),_0x57dd8e(this,'_pivotTableRangeInfo',new Map()),_0x57dd8e(this,_0x475020(0x1d0),new Map()),_0x57dd8e(this,_0x475020(0x333),new _0x1e57bc[(_0x475020(0x116))]()),_0x57dd8e(this,'_pivotInitCompleted$',new _0x1e57bc['Subject']()),_0x57dd8e(this,_0x475020(0x2a5),this[_0x475020(0x221)][_0x475020(0x35c)]()),_0x57dd8e(this,_0x475020(0xd9),new _0x1e57bc[(_0x475020(0x116))]()),_0x57dd8e(this,'pivotConfigChange$',this['_pivotConfigChange$'][_0x475020(0x35c)]()),_0x57dd8e(this,'_textInfo',{}),_0x57dd8e(this,_0x475020(0x258),this['_configVersion$'][_0x475020(0x35c)]()),(this[_0x475020(0xf5)]=_0x5007e4,this[_0x475020(0x1c7)]=_0x225dee,this[_0x475020(0x2a0)]=_0x4e0b53,this[_0x475020(0x2a7)]=_0xc946ff,this[_0x475020(0x122)]=_0x4c2d20,this[_0x475020(0x1f5)](),this[_0x475020(0x388)]());const _0x951f39=this[_0x475020(0x122)][_0x475020(0x9e)](_0x365664);(_0x951f39==null?void 0x0:_0x951f39[_0x475020(0xe8)])===!0x0&&this['_initSnapshot']();}['_initUnitDisposed'](){const _0x2d62c7=_0x3b026f;this[_0x2d62c7(0x2ea)](this['_univerInstanceService'][_0x2d62c7(0x115)](_0x22b490[_0x2d62c7(0x8f)][_0x2d62c7(0x19f)])[_0x2d62c7(0x2ce)](_0x2f117d=>{const _0x576e96=_0x2d62c7;this[_0x576e96(0x1d1)](_0x2f117d[_0x576e96(0x95)]());}));}['setPivotInitCompleted'](){const _0x5e8133=_0x3b026f;this[_0x5e8133(0x221)][_0x5e8133(0x2ba)](!0x0);}[_0x3b026f(0x1f5)](){const _0x2c8719=_0x3b026f,_0x5289cc=_0x132d63(this[_0x2c8719(0xf5)],_0x47a9d6,'',{});this['_textInfo']=_0x5289cc,this[_0x2c8719(0x1c7)][_0x2c8719(0xe1)](_0x5461f8['id'],{'textInfo':_0x5289cc},{'onlyLocal':!0x0});}[_0x3b026f(0x1d2)](){const _0x3c54bf=_0x3b026f;return this[_0x3c54bf(0x12f)];}[_0x3b026f(0x270)](_0x19b6e3,_0x384942,_0x319d6c,_0xc09fbd,_0x49df75){const _0x4046a8=_0x3b026f;this[_0x4046a8(0x1eb)](_0x19b6e3,_0x384942,_0x319d6c,_0xc09fbd),this[_0x4046a8(0x1d9)](_0x19b6e3,_0x384942,_0x319d6c,_0x49df75);}[_0x3b026f(0x26f)](_0xe6ca15,_0x51661f,_0x24525e){const _0x57dcc0=_0x3b026f;var _0x2b03c9;const _0x324dfb=(_0x2b03c9=this['_model']['get'](_0xe6ca15))==null?void 0x0:_0x2b03c9[_0x57dcc0(0x257)](_0x51661f);if(_0x324dfb)return _0x324dfb[_0x57dcc0(0x257)](_0x24525e);}['getTargetByPivotTableId'](_0x5539b0,_0x4d768a){const _0x1e4501=_0x3b026f,_0x2e2e3e=this[_0x1e4501(0x2b8)]['get'](_0x5539b0);if(_0x2e2e3e){for(const [_0x1bdd39,_0x43dbb2]of _0x2e2e3e[_0x1e4501(0x278)]())for(const [_0x3be10f,_0x36dc38]of _0x43dbb2[_0x1e4501(0x278)]())if(_0x3be10f===_0x4d768a)return _0x36dc38[_0x1e4501(0x157)];}}[_0x3b026f(0xc4)](_0x4bf83b,_0x4ccb43,_0x2c2f63){const _0x281bca=_0x3b026f,_0x453f1a=this[_0x281bca(0x26f)](_0x4bf83b,_0x4ccb43,_0x2c2f63);return _0x453f1a==null?void 0x0:_0x453f1a['targetCellInfo'];}['getSubUnitPivotConfigs'](_0x507c98,_0x5159af){const _0x7212ff=_0x3b026f;var _0x4fa787;return(_0x4fa787=this[_0x7212ff(0x2b8)][_0x7212ff(0x257)](_0x507c98))==null?void 0x0:_0x4fa787[_0x7212ff(0x257)](_0x5159af);}[_0x3b026f(0x108)](_0x158324,_0x596363,_0x3d80a9,_0x4170ae){const _0x59b922=_0x3b026f,_0x311e83=this[_0x59b922(0x290)](_0x158324,_0x596363);_0x4170ae?_0x311e83[_0x59b922(0x118)](_0x3d80a9,_0x4170ae):_0x311e83[_0x59b922(0x32e)](_0x3d80a9),this[_0x59b922(0xd9)][_0x59b922(0x2ba)]({'unitId':_0x158324,'subUnitId':_0x596363,'pivotTableId':_0x3d80a9,'pivotTableConfig':_0x4170ae});}[_0x3b026f(0x14d)](_0x435c92,_0x2db8df){const _0x8d24b9=_0x3b026f;var _0xa359ca;return(_0xa359ca=this[_0x8d24b9(0x20f)]['get'](_0x435c92))==null?void 0x0:_0xa359ca[_0x8d24b9(0x112)][_0x2db8df];}[_0x3b026f(0xde)](_0x16084e,_0x2ced04){const _0x37151b=_0x3b026f;this[_0x37151b(0x20f)]['set'](_0x16084e,_0x2ced04),this['_configVersion$'][_0x37151b(0x2ba)](Math[_0x37151b(0x131)]());}[_0x3b026f(0x290)](_0x4e45d3,_0x29d640){const _0x50bd95=_0x3b026f;let _0x545566=this[_0x50bd95(0x2b8)][_0x50bd95(0x257)](_0x4e45d3);_0x545566||(_0x545566=new Map(),this[_0x50bd95(0x2b8)]['set'](_0x4e45d3,_0x545566));let _0x57d080=_0x545566['get'](_0x29d640);return _0x57d080||(_0x57d080=new Map(),_0x545566['set'](_0x29d640,_0x57d080)),_0x57d080;}[_0x3b026f(0x1f0)](_0x24c59c,_0x2c20ec){const _0x5d41ec=_0x3b026f;let _0x3c4080=this[_0x5d41ec(0x1c3)][_0x5d41ec(0x257)](_0x24c59c);_0x3c4080||(_0x3c4080=new Map(),this[_0x5d41ec(0x1c3)][_0x5d41ec(0x118)](_0x24c59c,_0x3c4080));let _0x4fdbd0=_0x3c4080['get'](_0x2c20ec);return _0x4fdbd0||(_0x4fdbd0=new Map(),_0x3c4080['set'](_0x2c20ec,_0x4fdbd0)),_0x4fdbd0;}[_0x3b026f(0xfe)](_0x11b12e,_0x288878){const _0x236696=_0x3b026f;let _0x4eb543=this[_0x236696(0x1d0)][_0x236696(0x257)](_0x11b12e);_0x4eb543||(_0x4eb543=new Map(),this[_0x236696(0x1d0)][_0x236696(0x118)](_0x11b12e,_0x4eb543));let _0x20b956=_0x4eb543[_0x236696(0x257)](_0x288878);return _0x20b956||(_0x20b956=new Map(),_0x4eb543[_0x236696(0x118)](_0x288878,_0x20b956)),_0x20b956;}[_0x3b026f(0x1d9)](_0x509be0,_0x34030e,_0xb2e7cc,_0x68a1de){const _0x5a615f=_0x3b026f;var _0x385ef9;const _0x172d31=this[_0x5a615f(0x1f0)](_0x509be0,_0x34030e),_0x21983a=(_0x385ef9=_0x172d31[_0x5a615f(0x257)](_0xb2e7cc))==null?void 0x0:_0x385ef9[_0x5a615f(0x244)];_0x172d31[_0x5a615f(0x118)](_0xb2e7cc,{'oldRangeInfo':_0x21983a,'rangeInfo':_0x68a1de});}[_0x3b026f(0x1eb)](_0x537797,_0x191a61,_0x115ca3,_0x11bb71){const _0x39e587=_0x3b026f;var _0x52537a;const _0x4f1ba0=this[_0x39e587(0xfe)](_0x537797,_0x191a61),_0x4a4135=(_0x52537a=_0x4f1ba0[_0x39e587(0x257)](_0x115ca3))==null?void 0x0:_0x52537a['oldMatrix'];_0x4f1ba0[_0x39e587(0x118)](_0x115ca3,{'oldMatrix':_0x4a4135,'matrix':_0x11bb71});}[_0x3b026f(0xdc)](_0x5ec40a,_0x1ab5b0,_0x17c11b){const _0x4784a4=_0x3b026f;var _0x251102,_0x1bf01d;return(_0x1bf01d=(_0x251102=this[_0x4784a4(0x1c3)][_0x4784a4(0x257)](_0x5ec40a))==null?void 0x0:_0x251102[_0x4784a4(0x257)](_0x1ab5b0))==null?void 0x0:_0x1bf01d[_0x4784a4(0x257)](_0x17c11b);}[_0x3b026f(0x29a)](_0x2e05bd,_0x2e9a2b,_0x928f63){const _0x298fa1=_0x3b026f;var _0x5b6ef6,_0xac2bb0;return(_0xac2bb0=(_0x5b6ef6=this['_pivotTableMatrixInfo'][_0x298fa1(0x257)](_0x2e05bd))==null?void 0x0:_0x5b6ef6['get'](_0x2e9a2b))==null?void 0x0:_0xac2bb0[_0x298fa1(0x257)](_0x928f63);}['deleteUnitId'](_0x479bad){const _0x259718=_0x3b026f;this[_0x259718(0x2b8)]['delete'](_0x479bad),this[_0x259718(0x20f)][_0x259718(0x32e)](_0x479bad);}[_0x3b026f(0x135)](_0x70b6df){const _0x261daa=_0x3b026f,_0x164dfe={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['_collectionConfigModel'][_0x261daa(0x257)](_0x70b6df)&&(_0x164dfe['dataFieldManagerConfig'][_0x70b6df]=this[_0x261daa(0x20f)][_0x261daa(0x257)](_0x70b6df)),this['_model']['get'](_0x70b6df)){_0x164dfe['pivotTableConfigs'][_0x70b6df]={};const _0x318665=this[_0x261daa(0x2b8)][_0x261daa(0x257)](_0x70b6df);_0x318665!=null&&_0x318665[_0x261daa(0x15e)]&&[..._0x318665[_0x261daa(0x226)]()]['forEach'](_0x3e6c05=>{const _0x281387=_0x261daa,_0x9e92c=_0x318665[_0x281387(0x257)](_0x3e6c05);_0x9e92c!=null&&_0x9e92c[_0x281387(0x15e)]&&(_0x164dfe[_0x281387(0x233)][_0x70b6df][_0x3e6c05]={},[..._0x9e92c[_0x281387(0x226)]()][_0x281387(0x38c)](_0x197b63=>{const _0x1f6d30=_0x281387,_0x2cee49=_0x9e92c[_0x1f6d30(0x257)](_0x197b63);_0x2cee49&&(_0x164dfe[_0x1f6d30(0x233)][_0x70b6df][_0x3e6c05][_0x197b63]=_0x2cee49);}));});}return _0x164dfe;}[_0x3b026f(0x360)](){const _0x3e1133=_0x3b026f;this[_0x3e1133(0x2ea)](this['_resourceManagerService']['registerPluginResource']({'toJson':_0x3c95bd=>JSON[_0x3e1133(0x1bb)](this[_0x3e1133(0x135)](_0x3c95bd)),'parseJson':_0x1f4565=>({}),'businesses':[_0x22b490[_0x3e1133(0x8f)][_0x3e1133(0x19f)]],'pluginName':_0x4dbb63,'onLoad':(_0x1275b2,_0x3cbd34)=>{},'onUnLoad':_0x3b406b=>{const _0x232967=_0x3e1133;this[_0x232967(0x1d1)](_0x3b406b);}}));}},_0x4b10df[_0x3b026f(0x125)]=_0x134d70([_0x504c0b(0x0,_0x22b490[_0x3b026f(0xb8)](_0x22b490[_0x3b026f(0x227)])),_0x504c0b(0x1,_0x22b490[_0x3b026f(0xb8)](_0x22b490[_0x3b026f(0x2fe)])),_0x504c0b(0x2,_0x22b490['Inject'](_0x22b490[_0x3b026f(0x276)])),_0x504c0b(0x3,_0x22b490[_0x3b026f(0xb8)](_0x22b490[_0x3b026f(0x2d0)])),_0x504c0b(0x4,_0x22b490['Inject'](_0x22b490['IConfigService']))],_0x4b10df[_0x3b026f(0x125)]);var _0x618d42=Object[_0x3b026f(0xd7)],_0x118b3c=(_0x5f492b,_0x15ce3a,_0x5c9dd4,_0x1d39f1)=>{const _0x78a4f5=_0x3b026f;for(var _0x3cebb0=_0x1d39f1>0x1?void 0x0:_0x1d39f1?_0x618d42(_0x15ce3a,_0x5c9dd4):_0x15ce3a,_0x1fa999=_0x5f492b[_0x78a4f5(0x28e)]-0x1,_0x3edddc;_0x1fa999>=0x0;_0x1fa999--)(_0x3edddc=_0x5f492b[_0x1fa999])&&(_0x3cebb0=_0x3edddc(_0x3cebb0)||_0x3cebb0);return _0x3cebb0;},_0x48a876=(_0x181416,_0x29cd18)=>(_0x2542ff,_0x190d2b)=>_0x29cd18(_0x2542ff,_0x190d2b,_0x181416);_0x4b10df[_0x3b026f(0x2f6)]=class extends _0x22b490['Disposable']{constructor(_0x4153d0,_0xcb16fe,_0x33c4dc,_0x1e75ab,_0x388515){const _0xe48ee=_0x3b026f;super(),_0x57dd8e(this,'_pivotRenderInfoCache',new Map()),_0x57dd8e(this,_0xe48ee(0x36a),new Map()),_0x57dd8e(this,_0xe48ee(0x34e),new _0x1e57bc[(_0xe48ee(0x116))]()),_0x57dd8e(this,_0xe48ee(0x119),this['_markDirty$'][_0xe48ee(0x35c)]()),_0x57dd8e(this,_0xe48ee(0x2f8),new _0x1e57bc['Subject']()),_0x57dd8e(this,_0xe48ee(0xda),this[_0xe48ee(0x2f8)][_0xe48ee(0x35c)]()),_0x57dd8e(this,_0xe48ee(0x12f)),(this['_localeService']=_0x4153d0,this[_0xe48ee(0xf5)]=_0xcb16fe,this['_sheetsPivotTableConfigModel']=_0x33c4dc,this[_0xe48ee(0x2a0)]=_0x1e75ab,this[_0xe48ee(0x2a2)]=_0x388515,this[_0xe48ee(0x1f5)](),this[_0xe48ee(0x388)]());}[_0x3b026f(0x388)](){const _0x1b108d=_0x3b026f;this[_0x1b108d(0x2ea)](this[_0x1b108d(0x2a0)]['getTypeOfUnitDisposed$'](_0x22b490[_0x1b108d(0x8f)][_0x1b108d(0x19f)])[_0x1b108d(0x2ce)](_0x1b44bc=>{const _0x20a2e3=_0x1b108d;this['deleteUnitId'](_0x1b44bc[_0x20a2e3(0x95)]());}));}[_0x3b026f(0x1f5)](){const _0x49097d=_0x3b026f;this[_0x49097d(0x12f)]=_0x132d63(this[_0x49097d(0xf5)],_0x47a9d6,'',{});}[_0x3b026f(0x1b6)](_0x1dd736){const _0xa2862f=_0x3b026f,{view:_0xd819f9,unitId:_0x2953fd,subUnitId:_0x5b4075,pivotTableId:_0x324e8d,type:_0x334324}=_0x1dd736,_0x3602a9=this[_0xa2862f(0xea)]['getPivotTableConfig'](_0x2953fd,_0x5b4075,_0x324e8d);if(!_0xd819f9||!_0x3602a9||_0x334324===_0x1fd0cc[_0xa2862f(0x35d)])return;const {pageView:_0x18c3ce,cornerView:_0x4f4afa,rowView:_0x2addd6,colView:_0x536107,dataView:_0x47dd53}=_0xd819f9,_0x22319b=_0x3602a9[_0xa2862f(0x157)],_0x43d4f2=_0x3602a9['isEmpty'],_0x254617=this['_ensurePivotItemRenderValueMatrixCache'](_0x2953fd,_0x5b4075),_0x5245ba=this[_0xa2862f(0x245)](_0x2953fd,_0x5b4075,_0x324e8d);if(_0x43d4f2)return this['_updateRenderEmptyCache'](_0x1dd736,_0x254617,_0x22319b,_0x5245ba);{const _0x40a719=_0x47bb47(_0x22319b,_0x18c3ce,!0x0),_0x446aaf=_0x18c3ce[_0xa2862f(0x15f)]>=0x0?_0x18c3ce[_0xa2862f(0x15f)]+0x1:0x0,_0x19910b=_0x4f4afa[_0xa2862f(0x33a)](),_0x54c834=_0x4f4afa[_0xa2862f(0x192)](),_0x113b10=_0x40a719[_0xa2862f(0x28e)]>0x0?_0x365ec8:0x0,_0x4a05f1=_0x47bb47({'row':_0x22319b[_0xa2862f(0x2e2)]+_0x446aaf+_0x113b10,'col':_0x22319b[_0xa2862f(0x185)]},_0x4f4afa,!0x1,!0x1),_0x54ff95=_0x47bb47({'row':_0x22319b[_0xa2862f(0x2e2)]+_0x446aaf+_0x113b10+_0x19910b,'col':_0x22319b['col']},_0x2addd6,!0x1,!0x0),_0x2695d3=_0x47bb47({'row':_0x22319b[_0xa2862f(0x2e2)]+_0x446aaf+_0x113b10,'col':_0x22319b[_0xa2862f(0x185)]+_0x54c834},_0x536107,!0x1,!0x0),_0x138b9f=_0x47bb47({'row':_0x22319b['row']+_0x446aaf+_0x113b10+_0x19910b,'col':_0x22319b[_0xa2862f(0x185)]+_0x54c834},_0x47dd53,!0x1,!0x1);_0x5245ba[_0xa2862f(0x172)]={'rowRanges':_0x54ff95,'colRanges':_0x2695d3,'cornerRanges':_0x4a05f1,'dataRanges':_0x138b9f,'pageRanges':_0x40a719};const _0x31e189=_0x52b2be(this[_0xa2862f(0xf5)],_0xd819f9,_0x3602a9,this[_0xa2862f(0x12f)]),{valueMatrix:_0x30106b,rowInfo:_0x3f265c,colInfo:_0xe24bc2,cornerInfo:_0x219bbb,rowHeaderMap:_0xb59355,colHeaderMap:_0x425fef}=_0x31e189;return _0x5245ba[_0xa2862f(0x277)]={'rowInfo':_0x3f265c,'colInfo':_0xe24bc2,'cornerInfo':_0x219bbb},_0x5245ba[_0xa2862f(0x323)]={'rowHeaderMap':_0xb59355,'colHeaderMap':_0x425fef},_0x30106b[_0xa2862f(0x38c)]((_0x48ab92,_0x1a06e1)=>{const _0x262059=_0xa2862f;Object[_0x262059(0x226)](_0x1a06e1)[_0x262059(0x38c)](_0x40cdc4=>{const _0x19a295=_0x262059,_0x44b555=+_0x40cdc4,_0x27499b=_0x30106b[_0x19a295(0xc2)](_0x48ab92,_0x44b555);_0x254617[_0x19a295(0x194)](_0x48ab92,_0x44b555,_0x27499b);});}),this[_0xa2862f(0x2f8)][_0xa2862f(0x2ba)]({'unitId':_0x2953fd,'subUnitId':_0x5b4075,'valueMatrix':_0x254617,'rangesCache':_0x5245ba['rangesInfo'],'pivotTableId':_0x324e8d,'type':_0x1dd736[_0xa2862f(0x252)]}),this[_0xa2862f(0xea)][_0xa2862f(0x270)](_0x2953fd,_0x5b4075,_0x324e8d,_0x254617,_0x5245ba[_0xa2862f(0x172)]),this[_0xa2862f(0x2a2)][_0xa2862f(0x1f4)](_0x2953fd,_0x5b4075,_0x117177,this[_0xa2862f(0x29d)](_0x5245ba['rangesInfo'],_0x324e8d)),{'rangeCache':_0x5245ba['rangesInfo'],'matrix':_0x254617};}}[_0x3b026f(0x375)](_0x22e778,_0x149617,_0x474d20,_0x47b4fa){const _0x2dd65e=_0x3b026f,_0x5775cd=this[_0x2dd65e(0x34a)]['t'],{unitId:_0x3a4ead,subUnitId:_0x44f183,pivotTableId:_0x192c4f}=_0x22e778,_0x569a59={'filter':_0x5775cd(_0x2dd65e(0x9d)),'row':_0x5775cd(_0x2dd65e(0x129)),'column':_0x5775cd(_0x2dd65e(0xff)),'values':_0x5775cd(_0x2dd65e(0x31e))},{matrixCache:_0x16ffdc,rangesCache:_0x497182}=_0x16154e(_0x569a59,_0x474d20);return _0x16ffdc[_0x2dd65e(0x17f)]((_0x5edab9,_0x4b557b,_0x59a525)=>{const _0x427287=_0x2dd65e;_0x149617[_0x427287(0x194)](_0x5edab9,_0x4b557b,_0x59a525);}),_0x47b4fa[_0x2dd65e(0x172)]=_0x497182,this[_0x2dd65e(0x2f8)][_0x2dd65e(0x2ba)]({'unitId':_0x3a4ead,'subUnitId':_0x44f183,'valueMatrix':_0x149617,'rangesCache':_0x497182,'pivotTableId':_0x192c4f,'type':_0x22e778[_0x2dd65e(0x252)],'isEmpty':!0x0}),this[_0x2dd65e(0xea)]['updateViewInfo'](_0x3a4ead,_0x44f183,_0x192c4f,_0x149617,_0x497182),this['_exclusiveRangeService'][_0x2dd65e(0x1f4)](_0x3a4ead,_0x44f183,_0x117177,this[_0x2dd65e(0x29d)](_0x497182,_0x192c4f)),{'rangeCache':_0x47b4fa['rangesInfo'],'matrix':_0x149617};}[_0x3b026f(0x29d)](_0x53a011,_0x22039d){const _0x1088d1=[],_0x2ab44c=_0xfd99c7(_0x53a011);for(const _0x5f21c4 of _0x2ab44c)_0x1088d1['push']({'groupId':_0x22039d,'range':_0x5f21c4});return _0x1088d1;}['clearRenderCache'](_0x3a1f15){const _0x4971c4=_0x3b026f;var _0x3bd4ab,_0x477287,_0x2372ff,_0x4d3298;const {pivotTableId:_0x1f74ab,unitId:_0x43d266,subUnitId:_0x1535d9}=_0x3a1f15;if(!_0x1f74ab||!_0x43d266||!_0x1535d9)return;const _0xc7adb9=this[_0x4971c4(0x249)](_0x43d266,_0x1535d9),_0x47670e=(_0x477287=(_0x3bd4ab=this[_0x4971c4(0x362)][_0x4971c4(0x257)](_0x43d266))==null?void 0x0:_0x3bd4ab['get'](_0x1535d9))==null?void 0x0:_0x477287[_0x4971c4(0x257)](_0x1f74ab);if(_0x47670e!=null&&_0x47670e[_0x4971c4(0x172)]){for(const _0x3c9aff of Object[_0x4971c4(0x226)](_0x47670e[_0x4971c4(0x172)]))_0x47670e[_0x4971c4(0x172)][_0x3c9aff]['forEach'](_0x1ddc91=>{const _0x343cd6=_0x4971c4;for(let _0x45685d=_0x1ddc91['startRow'];_0x45685d<=_0x1ddc91[_0x343cd6(0x15d)];_0x45685d++)for(let _0x3dfb4f=_0x1ddc91[_0x343cd6(0x2e5)];_0x3dfb4f<=_0x1ddc91[_0x343cd6(0xe2)];_0x3dfb4f++)_0xc7adb9['realDeleteValue'](_0x45685d,_0x3dfb4f);});}_0x47670e&&((_0x4d3298=(_0x2372ff=this[_0x4971c4(0x362)][_0x4971c4(0x257)](_0x43d266))==null?void 0x0:_0x2372ff['get'](_0x1535d9))==null||_0x4d3298['delete'](_0x1f74ab)),this['_viewUpdate$'][_0x4971c4(0x2ba)]({'unitId':_0x43d266,'subUnitId':_0x1535d9,'valueMatrix':_0xc7adb9,'pivotTableId':_0x1f74ab,'rangesCache':void 0x0,'type':_0x3a1f15[_0x4971c4(0x252)]}),this[_0x4971c4(0x2a2)][_0x4971c4(0x2ee)](_0x43d266,_0x1535d9,_0x117177,_0x1f74ab);}['_ensurePivotItemRenderInfoCache'](_0x1276cb,_0x32a5d1,_0x19b5bc){const _0x46fabc=_0x3b026f;var _0x3844e6,_0x4f3eb9,_0x168e2d,_0x36184d,_0x3dfcf4,_0x19739f;return this[_0x46fabc(0x362)][_0x46fabc(0x188)](_0x1276cb)||this[_0x46fabc(0x362)][_0x46fabc(0x118)](_0x1276cb,new Map()),(_0x3844e6=this['_pivotRenderInfoCache'][_0x46fabc(0x257)](_0x1276cb))!=null&&_0x3844e6[_0x46fabc(0x188)](_0x32a5d1)||(_0x4f3eb9=this[_0x46fabc(0x362)][_0x46fabc(0x257)](_0x1276cb))==null||_0x4f3eb9[_0x46fabc(0x118)](_0x32a5d1,new Map()),(_0x36184d=(_0x168e2d=this[_0x46fabc(0x362)][_0x46fabc(0x257)](_0x1276cb))==null?void 0x0:_0x168e2d[_0x46fabc(0x257)](_0x32a5d1))!=null&&_0x36184d[_0x46fabc(0x188)](_0x19b5bc)||(_0x19739f=(_0x3dfcf4=this[_0x46fabc(0x362)]['get'](_0x1276cb))==null?void 0x0:_0x3dfcf4[_0x46fabc(0x257)](_0x32a5d1))==null||_0x19739f[_0x46fabc(0x118)](_0x19b5bc,{}),this[_0x46fabc(0x362)][_0x46fabc(0x257)](_0x1276cb)[_0x46fabc(0x257)](_0x32a5d1)[_0x46fabc(0x257)](_0x19b5bc);}[_0x3b026f(0x249)](_0x3811cf,_0x56a8d9){const _0x2aa0a0=_0x3b026f;var _0x7c5bd4,_0x38e8c7;return this[_0x2aa0a0(0x36a)][_0x2aa0a0(0x188)](_0x3811cf)||this[_0x2aa0a0(0x36a)][_0x2aa0a0(0x118)](_0x3811cf,new Map()),(_0x7c5bd4=this[_0x2aa0a0(0x36a)][_0x2aa0a0(0x257)](_0x3811cf))!=null&&_0x7c5bd4[_0x2aa0a0(0x188)](_0x56a8d9)||(_0x38e8c7=this[_0x2aa0a0(0x36a)]['get'](_0x3811cf))==null||_0x38e8c7[_0x2aa0a0(0x118)](_0x56a8d9,new _0x22b490[(_0x2aa0a0(0x398))]()),this['_pivotRenderValueMatrixCache'][_0x2aa0a0(0x257)](_0x3811cf)[_0x2aa0a0(0x257)](_0x56a8d9);}[_0x3b026f(0x11b)](_0x1103c9,_0x2e7c84,_0x51c1f1,_0x4317bb){const _0x575212=_0x3b026f;var _0x48e2b2,_0x4f8643;const _0x18a1b5=(_0x4f8643=(_0x48e2b2=this['_pivotRenderValueMatrixCache'][_0x575212(0x257)](_0x1103c9))==null?void 0x0:_0x48e2b2[_0x575212(0x257)](_0x2e7c84))==null?void 0x0:_0x4f8643[_0x575212(0xc2)](_0x51c1f1,_0x4317bb);if(_0x18a1b5!=null)return _0x18a1b5;}[_0x3b026f(0xc3)](_0x438578,_0x59f5e0,_0x3f43c6,_0x5b9e63){const _0x3b8a31=_0x3b026f;var _0x25bf27;const _0xeda81c=_0x22b490['cellToRange'](_0x3f43c6,_0x5b9e63),_0x185030=(_0x25bf27=this[_0x3b8a31(0x362)][_0x3b8a31(0x257)](_0x438578))==null?void 0x0:_0x25bf27[_0x3b8a31(0x257)](_0x59f5e0);return _0x185030?Array[_0x3b8a31(0x2ae)](_0x185030[_0x3b8a31(0x226)]())['find'](_0x32b020=>{const _0x16ba7d=_0x3b8a31,_0x2c434f=_0x185030['get'](_0x32b020),_0x342bba=_0x2c434f==null?void 0x0:_0x2c434f[_0x16ba7d(0x172)];return _0x342bba?Object[_0x16ba7d(0x226)](_0x342bba)[_0x16ba7d(0x224)](_0x57ca4d=>_0x342bba[_0x57ca4d][_0x16ba7d(0x224)](_0x1ddc55=>_0x22b490[_0x16ba7d(0x36e)]['contains'](_0x1ddc55,_0xeda81c))):!0x1;}):void 0x0;}[_0x3b026f(0x107)](_0x217a84,_0x204a82,_0x21f494){const _0x3e43ec=_0x3b026f;var _0x396996;const _0x3136d5=(_0x396996=this[_0x3e43ec(0x362)]['get'](_0x217a84))==null?void 0x0:_0x396996[_0x3e43ec(0x257)](_0x204a82),_0x553377=[];return _0x3136d5&&Array[_0x3e43ec(0x2ae)](_0x3136d5['keys']())[_0x3e43ec(0x38c)](_0x2de0e3=>{const _0x42ae89=_0x3e43ec,_0x42cef4=_0x3136d5['get'](_0x2de0e3),_0x1133ba=_0x42cef4==null?void 0x0:_0x42cef4['rangesInfo'];if(_0x1133ba)for(const _0x18dcfe of Object[_0x42ae89(0x248)](_0x1133ba)){let _0x1fe294=!0x1;for(const _0x5c348c of _0x18dcfe)if(_0x22b490[_0x42ae89(0x36e)][_0x42ae89(0x161)](_0x5c348c,_0x21f494)){_0x553377[_0x42ae89(0x1b3)](_0x2de0e3),_0x1fe294=!0x0;break;}if(_0x1fe294)break;}}),_0x553377;}[_0x3b026f(0xa1)](_0xac70d5,_0x46a4f5){const _0x2e3e95=_0x3b026f;var _0x4d0e90,_0x544814;return(_0x544814=(_0x4d0e90=this[_0x2e3e95(0x36a)][_0x2e3e95(0x257)](_0xac70d5))==null?void 0x0:_0x4d0e90[_0x2e3e95(0x257)](_0x46a4f5))!=null?_0x544814:new _0x22b490[(_0x2e3e95(0x398))]();}[_0x3b026f(0x372)](_0x3cf1f0,_0x431f1a){const _0x353d76=_0x3b026f;var _0x43cbbd;return(_0x43cbbd=this[_0x353d76(0x362)]['get'](_0x3cf1f0))==null?void 0x0:_0x43cbbd[_0x353d76(0x257)](_0x431f1a);}['getPivotItemRenderInfoCache'](_0x39f379,_0x312fea,_0x20e90d){const _0xf5843d=_0x3b026f;var _0x419f98,_0x39cc15;return(_0x39cc15=(_0x419f98=this['_pivotRenderInfoCache']['get'](_0x39f379))==null?void 0x0:_0x419f98[_0xf5843d(0x257)](_0x312fea))==null?void 0x0:_0x39cc15[_0xf5843d(0x257)](_0x20e90d);}[_0x3b026f(0x1d1)](_0x1f2324){const _0x46d414=_0x3b026f;this[_0x46d414(0x362)][_0x46d414(0x32e)](_0x1f2324),this[_0x46d414(0x36a)]['delete'](_0x1f2324);}['markDirty'](_0x2c7e97,_0x73aef2){const _0x4fe9af=_0x3b026f;this['_markDirty$'][_0x4fe9af(0x2ba)]({'unitId':_0x2c7e97,'subUnitId':_0x73aef2});}},_0x4b10df[_0x3b026f(0x2f6)]=_0x118b3c([_0x48a876(0x0,_0x22b490[_0x3b026f(0xb8)](_0x22b490['LocaleService'])),_0x48a876(0x1,_0x22b490[_0x3b026f(0xb8)](_0x22b490['Injector'])),_0x48a876(0x2,_0x22b490[_0x3b026f(0xb8)](_0x4b10df[_0x3b026f(0x125)])),_0x48a876(0x3,_0x22b490[_0x3b026f(0xb8)](_0x22b490['IUniverInstanceService'])),_0x48a876(0x4,_0x22b490['Inject'](_0x2c7bf0[_0x3b026f(0x2dd)]))],_0x4b10df[_0x3b026f(0x2f6)]);var _0x5198b3=Object[_0x3b026f(0xd7)],_0x3525fc=(_0x96bad,_0x722919,_0x31b61b,_0x5c5073)=>{const _0x30103f=_0x3b026f;for(var _0x40e486=_0x5c5073>0x1?void 0x0:_0x5c5073?_0x5198b3(_0x722919,_0x31b61b):_0x722919,_0x2cc8bd=_0x96bad[_0x30103f(0x28e)]-0x1,_0x5d0dd0;_0x2cc8bd>=0x0;_0x2cc8bd--)(_0x5d0dd0=_0x96bad[_0x2cc8bd])&&(_0x40e486=_0x5d0dd0(_0x40e486)||_0x40e486);return _0x40e486;},_0x3cf459=(_0x24470f,_0x5dad2b)=>(_0x13066d,_0x12fb17)=>_0x5dad2b(_0x13066d,_0x12fb17,_0x24470f);_0x4b10df[_0x3b026f(0x206)]=class extends _0x22b490[_0x3b026f(0x2ab)]{constructor(_0x4c71cc,_0x25841d){const _0x5f225b=_0x3b026f;super(),_0x57dd8e(this,_0x5f225b(0x1ed),new _0x22b490[(_0x5f225b(0x85))]({'PIVOT_PERFORM_CHECK':_0x5d7e40})),_0x57dd8e(this,_0x5f225b(0x2c8),new _0x22b490[(_0x5f225b(0x395))]({'PIVOT_MUTATION_GENERATE':_0x40e90f})),(this[_0x5f225b(0x23c)]=_0x4c71cc,this[_0x5f225b(0x283)]=_0x25841d,this[_0x5f225b(0x212)]());}[_0x3b026f(0x212)](){const _0x1d4aef=_0x3b026f;this[_0x1d4aef(0x132)]();}[_0x3b026f(0x183)](_0x32c85a){const _0xbde016=_0x3b026f;return this[_0xbde016(0x1ed)][_0xbde016(0x39b)](_0x5d7e40)(!0x1,_0x32c85a);}['_initViewModelBySheetInterceptor'](){const _0x2cdebe=_0x3b026f;this['disposeWithMe'](this[_0x2cdebe(0x23c)][_0x2cdebe(0x17e)](_0x2c7bf0[_0x2cdebe(0x88)][_0x2cdebe(0xab)],{'priority':0xc8,'effect':_0x22b490[_0x2cdebe(0x243)][_0x2cdebe(0x13e)]|_0x22b490[_0x2cdebe(0x243)][_0x2cdebe(0x126)],'handler':(_0x4dd4f9,_0x3a89f2,_0x185709)=>{const _0x925831=_0x2cdebe,{row:_0x207151,col:_0x3f04c4,unitId:_0x1ed321,subUnitId:_0x11c400,workbook:_0xa3dc9d}=_0x3a89f2,_0x51d9f2=this['_sheetsPivotTableAdaptorModel'][_0x925831(0x11b)](_0x1ed321,_0x11c400,_0x207151,_0x3f04c4);if(!_0x51d9f2)return _0x185709(_0x4dd4f9);const _0x1ca60f={..._0x4dd4f9};(_0x51d9f2['v']||_0x51d9f2['v']===0x0)&&(_0x1ca60f['v']=_0x51d9f2['v']),_0x51d9f2['t']&&(_0x1ca60f['t']=_0x51d9f2['t']);const _0x3668e1=(typeof(_0x4dd4f9==null?void 0x0:_0x4dd4f9['s'])==_0x925831(0x33d)?_0xa3dc9d[_0x925831(0x280)]()[_0x925831(0x257)](_0x4dd4f9==null?void 0x0:_0x4dd4f9['s']):_0x4dd4f9==null?void 0x0:_0x4dd4f9['s'])||{},_0x10e357=_0xa3dc9d[_0x925831(0x280)]()[_0x925831(0x257)](_0x51d9f2['s']),_0x14796b={..._0x10e357,..._0x3668e1};_0x10e357!=null&&_0x10e357['n']&&(_0x14796b['n']=_0x10e357['n']);const _0x8b9703=_0xa3dc9d[_0x925831(0x280)]()[_0x925831(0x194)](_0x14796b);return _0x1ca60f['s']=_0x8b9703,(_0x51d9f2['pbt']===_0x40290a[_0x925831(0x2ef)][_0x925831(0x231)]||_0x51d9f2['pbt']===_0x40290a['PivotCellStyleTypeEnum']['Expand'])&&(_0x1ca60f[_0x925831(0x291)]={},_0x1ca60f[_0x925831(0x291)][_0x925831(0x9a)]=_0x55e6e5),_0x185709(_0x1ca60f);}}));}},_0x4b10df[_0x3b026f(0x206)]=_0x3525fc([_0x3cf459(0x0,_0x22b490[_0x3b026f(0xb8)](_0x2c7bf0[_0x3b026f(0x37c)])),_0x3cf459(0x1,_0x22b490[_0x3b026f(0xb8)](_0x4b10df[_0x3b026f(0x2f6)]))],_0x4b10df[_0x3b026f(0x206)]);function _0x59e614(_0x4c5079,_0xa7f6d0){const _0xb7be71=_0x3b026f;switch(_0xa7f6d0){case _0x40290a[_0xb7be71(0x380)]['Value']:return _0x4c5079['valueFields'];case _0x40290a[_0xb7be71(0x380)][_0xb7be71(0x361)]:return _0x4c5079['filterFields'];case _0x40290a['PivotTableFiledAreaEnum'][_0xb7be71(0x168)]:return _0x4c5079[_0xb7be71(0x304)];case _0x40290a['PivotTableFiledAreaEnum'][_0xb7be71(0xa8)]:return _0x4c5079[_0xb7be71(0x186)];default:return[];}}function _0x4779f6(_0x1e8a11,_0x1e3c61){const _0x1dd86a=_0x3b026f;return _0x1e8a11[_0x1dd86a(0x2fa)][_0x1e3c61]||_0x1e8a11[_0x1dd86a(0x20c)][_0x1e3c61];}function _0x52b56b(_0x4e2e91,_0x2f91c6){const _0x16da07=_0x3b026f,{area:_0x3fab82,fieldJson:_0x4e04d2,index:_0x3159a6}=_0x2f91c6;_0x3fab82===_0x40290a[_0x16da07(0x380)][_0x16da07(0x13e)]?_0x4e2e91['measure'][_0x4e04d2['id']]=_0x4e04d2:_0x4e2e91['dimension'][_0x4e04d2['id']]=_0x4e04d2,_0x59e614(_0x4e2e91,_0x3fab82)[_0x16da07(0x2ec)](_0x3159a6,0x0,_0x4e04d2['id']);}function _0x56daf4(_0x4b0e8e,_0x3bd257){const _0x51ce7a=_0x3b026f,{area:_0x40dafc,fieldId:_0x38b6a9,index:_0x201433}=_0x3bd257;_0x40dafc===_0x40290a['PivotTableFiledAreaEnum'][_0x51ce7a(0x13e)]?delete _0x4b0e8e[_0x51ce7a(0x2fa)][_0x38b6a9]:delete _0x4b0e8e['dimension'][_0x38b6a9],_0x59e614(_0x4b0e8e,_0x40dafc)[_0x51ce7a(0x2ec)](_0x201433,0x1);}function _0x163193(_0x2302d0,_0x35b82a){const _0x4dc089=_0x3b026f,{fieldId:_0x8a07b0,name:_0x5f4c7d}=_0x35b82a,_0x10baeb=_0x4779f6(_0x2302d0,_0x8a07b0);_0x10baeb&&(_0x10baeb[_0x4dc089(0x167)]=_0x5f4c7d);}function _0x123b88(_0x1abd5a,_0x4572de){const _0x5a0abb=_0x3b026f,{fieldId:_0x2fdcd8,collapse:_0x155e6b,item:_0x39e0d9}=_0x4572de;_0x39e0d9!==void 0x0?(_0x1abd5a[_0x5a0abb(0x26e)][_0x2fdcd8]=_0x1abd5a[_0x5a0abb(0x26e)][_0x2fdcd8]||{},_0x1abd5a[_0x5a0abb(0x26e)][_0x2fdcd8][_0x39e0d9]=_0x155e6b):_0x1abd5a['collapseInfo'][_0x2fdcd8]=_0x155e6b;}function _0x457e3f(_0x126400,_0x55c139){const {fieldId:_0x117b04,format:_0x43fbd5}=_0x55c139,_0x487996=_0x4779f6(_0x126400,_0x117b04);_0x487996&&(_0x487996['format']=_0x43fbd5);}function _0x368fb7(_0x546259,_0x3ca23d){const _0x1079c0=_0x3b026f,{fieldId:_0x152d2f,filterInfo:_0x3a0dfa}=_0x3ca23d,_0x3257e0=_0x4779f6(_0x546259,_0x152d2f);_0x3257e0&&(_0x3257e0[_0x1079c0(0x15b)]=_0x3a0dfa);}function _0x5fe4cb(_0x29f0bb,_0x11de82){const _0x252630=_0x3b026f,{fieldId:_0x157f7a,filterInfo:_0x572654}=_0x11de82,_0xf7b951=_0x29f0bb['valueFilter'][_0x252630(0x394)](_0x144bdb=>_0x144bdb['fieldId']!==_0x157f7a);_0x572654&&_0xf7b951[_0x252630(0x1b3)]({'fieldId':_0x157f7a,'filterInfo':_0x572654}),_0x29f0bb[_0x252630(0x331)]=_0xf7b951;}function _0x51ef0f(_0x49d7b4,_0x408c33){const _0x5bb5ce=_0x3b026f,{fieldId:_0x5bb078,subtotalType:_0x394857}=_0x408c33,_0x337d31=_0x4779f6(_0x49d7b4,_0x5bb078);_0x337d31&&(_0x337d31[_0x5bb5ce(0x1a3)]=_0x394857);}function _0x3c08f8(_0x4887ea,_0x58fd87){const _0xe1c03d=_0x3b026f,{fieldId:_0x526d15,oldArea:_0x4a7e6d,area:_0x5d1f11,oldIndex:_0x1c8a53,index:_0x262b2d}=_0x58fd87,_0x4ae583=_0x4a7e6d!==_0x40290a[_0xe1c03d(0x380)][_0xe1c03d(0x13e)]&&_0x5d1f11===_0x40290a[_0xe1c03d(0x380)][_0xe1c03d(0x13e)],_0xc85adf=_0x4a7e6d===_0x40290a['PivotTableFiledAreaEnum'][_0xe1c03d(0x13e)]&&_0x5d1f11!==_0x40290a['PivotTableFiledAreaEnum'][_0xe1c03d(0x13e)];if(_0x4ae583||_0xc85adf){const _0xead0ab=_0x4779f6(_0x4887ea,_0x526d15);_0xead0ab&&(_0x4ae583?(delete _0x4887ea[_0xe1c03d(0x20c)][_0x526d15],_0x4887ea['measure'][_0x526d15]=_0xead0ab):(delete _0x4887ea[_0xe1c03d(0x2fa)][_0x526d15],_0x4887ea['dimension'][_0x526d15]=_0xead0ab));}const _0x43c88a=_0x59e614(_0x4887ea,_0x4a7e6d),_0x57c59c=_0x59e614(_0x4887ea,_0x5d1f11);_0x43c88a['splice'](_0x1c8a53,0x1),_0x57c59c[_0xe1c03d(0x2ec)](_0x262b2d,0x0,_0x526d15);}function _0x16bd2a(_0x5dab96,_0x421860){const _0x9866fc=_0x3b026f,{valuePosition:_0x590477,index:_0x788cb0}=_0x421860;_0x5dab96[_0x9866fc(0x182)]=_0x590477,_0x5dab96[_0x9866fc(0x14e)]=_0x788cb0;}function _0x1500b3(_0x3a6a3e,_0x12c36f){const _0x38fb0a=_0x3b026f,{tableFieldId:_0x2a718f,sourceName:_0x6822fc,dataFieldId:_0x279a43}=_0x12c36f,_0x43a64f=_0x4779f6(_0x3a6a3e,_0x2a718f);_0x43a64f&&(_0x43a64f['sourceName']=_0x6822fc,_0x43a64f[_0x38fb0a(0x10c)]=_0x279a43);}function _0xc5775a(_0x540596,_0x22c078){const _0x47d70b=_0x3b026f,{fieldId:_0x208e7b,sortInfo:_0x1e6c7a}=_0x22c078,_0x1c1aca=_0x4779f6(_0x540596,_0x208e7b);_0x1c1aca&&(_0x1c1aca[_0x47d70b(0x2fb)]=_0x1e6c7a);}function _0x318fb0(_0x4f8345,_0x3883c2){const _0x4da420=_0x3b026f,{options:_0x232b6f}=_0x3883c2;_0x4f8345['options']={..._0x4f8345[_0x4da420(0x155)],..._0x232b6f};}const _0x394516={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':_0x3b026f(0x1ee),'handler'(_0x185134,_0x569204){const _0x4896d2=_0x3b026f;if(!_0x569204)return!0x1;if(!!_0x185134[_0x4896d2(0x257)](_0x22b490[_0x4896d2(0x145)])[_0x4896d2(0x9e)](_0x1ca274))return!0x0;const _0x53a17c=_0x185134['get'](_0x4b10df[_0x4896d2(0x19b)]),{pivotTableId:_0x665f55,fieldJson:_0x123146,area:_0x12d9ef,index:_0x2cc903,unitId:_0x7d702d,subUnitId:_0x4ebbe9}=_0x569204,_0x220551=_0x53a17c[_0x4896d2(0xcc)](_0x665f55);if(!_0x220551)return!0x1;let _0x598585;_0x12d9ef===_0x40290a[_0x4896d2(0x380)][_0x4896d2(0x13e)]?_0x598585=_0x40290a[_0x4896d2(0x297)](_0x123146):_0x598585=_0x40290a[_0x4896d2(0x2c3)](_0x123146),_0x220551['addField'](_0x598585,_0x12d9ef,_0x2cc903);const _0xcfe98e=_0x53a17c[_0x4896d2(0xf3)](_0x7d702d,_0x4ebbe9,_0x665f55);_0x52b56b(_0xcfe98e,_0x569204);const _0x17e4ce=_0x53a17c[_0x4896d2(0x26f)](_0x7d702d,_0x4ebbe9,_0x665f55);return _0x53a17c['addDirtyPivotTable']({'unitId':_0x7d702d,'subUnitId':_0x4ebbe9,'token':_0x665f55,'type':_0x1fd0cc[_0x4896d2(0x2b6)],'pivotConfig':_0x17e4ce}),!0x0;}},_0x11f84a={'type':_0x22b490[_0x3b026f(0x17b)]['MUTATION'],'id':_0x3b026f(0x2b4),'handler'(_0x5ae0d2,_0xcee4be){const _0x8201aa=_0x3b026f;if(!_0xcee4be)return!0x1;if(!!_0x5ae0d2['get'](_0x22b490[_0x8201aa(0x145)])['getConfig'](_0x1ca274))return!0x0;const _0x742606=_0x5ae0d2[_0x8201aa(0x257)](_0x4b10df[_0x8201aa(0x19b)]),{pivotTableId:_0x3f58cb,fieldId:_0x1f0579,unitId:_0x433659,subUnitId:_0x243bdb}=_0xcee4be,_0x3d4d5e=_0x742606[_0x8201aa(0xcc)](_0x3f58cb);if(!_0x3d4d5e)return!0x1;_0x3d4d5e[_0x8201aa(0x21f)](_0x1f0579);const _0x2e574d=_0x742606[_0x8201aa(0xf3)](_0x433659,_0x243bdb,_0x3f58cb);_0x56daf4(_0x2e574d,_0xcee4be);const _0x2f2153=_0x742606[_0x8201aa(0x26f)](_0x433659,_0x243bdb,_0x3f58cb);return _0x742606[_0x8201aa(0xc5)]({'unitId':_0x433659,'subUnitId':_0x243bdb,'token':_0x3f58cb,'type':_0x1fd0cc[_0x8201aa(0x2b6)],'pivotConfig':_0x2f2153}),!0x0;}},_0x1ff897={'type':_0x22b490[_0x3b026f(0x17b)]['MUTATION'],'id':_0x3b026f(0x91),'handler'(_0x31b47f,_0x3e2d2b){const _0x387394=_0x3b026f;if(!_0x3e2d2b)return!0x1;if(!!_0x31b47f[_0x387394(0x257)](_0x22b490[_0x387394(0x145)])[_0x387394(0x9e)](_0x1ca274))return!0x0;const _0x1086f8=_0x31b47f[_0x387394(0x257)](_0x4b10df[_0x387394(0x19b)]),{unitId:_0x3e1354,subUnitId:_0x7bca2d,pivotTableId:_0x296c57,fieldId:_0x42c861,name:_0x4d5ffd}=_0x3e2d2b,_0x338154=_0x1086f8[_0x387394(0xcc)](_0x296c57);if(!_0x338154)return!0x1;_0x338154[_0x387394(0x259)](_0x42c861,_0x4d5ffd);const _0x108418=_0x1086f8['getPivotTableModelConfig'](_0x3e1354,_0x7bca2d,_0x296c57);return _0x163193(_0x108418,_0x3e2d2b),_0x1086f8[_0x387394(0xc5)]({'unitId':_0x3e1354,'subUnitId':_0x7bca2d,'token':_0x296c57,'type':_0x1fd0cc['Set']}),!0x0;}},_0x57bb3b={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':_0x3b026f(0x313),'handler'(_0x6f1e08,_0x1aa5ee){const _0x29be28=_0x3b026f;if(!_0x1aa5ee)return!0x1;if(!!_0x6f1e08[_0x29be28(0x257)](_0x22b490['IConfigService'])[_0x29be28(0x9e)](_0x1ca274))return!0x0;const _0x12324c=_0x6f1e08[_0x29be28(0x257)](_0x4b10df[_0x29be28(0x19b)]),{unitId:_0x40b7d2,subUnitId:_0x36e54f,pivotTableId:_0x2188fb,fieldId:_0x3a8f9a,collapse:_0x5aadc1,item:_0x24f5a9}=_0x1aa5ee,_0x12a67b=_0x12324c[_0x29be28(0xcc)](_0x2188fb);if(!_0x12a67b)return!0x1;_0x12a67b[_0x29be28(0x101)](_0x3a8f9a,_0x5aadc1,_0x24f5a9);const _0x41d969=_0x12324c[_0x29be28(0xf3)](_0x40b7d2,_0x36e54f,_0x2188fb);return _0x123b88(_0x41d969,_0x1aa5ee),_0x12324c[_0x29be28(0xc5)]({'unitId':_0x40b7d2,'subUnitId':_0x36e54f,'token':_0x2188fb,'type':_0x1fd0cc['Set']}),!0x0;}},_0x1559d7={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':'sheet.mutation.set-pivot-format','handler'(_0x16908b,_0x2e652c){const _0x522988=_0x3b026f;if(!_0x2e652c)return!0x1;if(!!_0x16908b[_0x522988(0x257)](_0x22b490[_0x522988(0x145)])[_0x522988(0x9e)](_0x1ca274))return!0x0;const _0x430c09=_0x16908b[_0x522988(0x257)](_0x4b10df['SheetsPivotDataSourceModel']),{unitId:_0x4251b5,subUnitId:_0x5e96c0,pivotTableId:_0x2a84fc,fieldId:_0x450517,format:_0x3bb32e}=_0x2e652c,_0x35c1d6=_0x430c09[_0x522988(0xcc)](_0x2a84fc);if(!_0x35c1d6)return!0x1;_0x35c1d6['setFieldFormat'](_0x450517,_0x3bb32e);const _0x53f84c=_0x430c09[_0x522988(0xf3)](_0x4251b5,_0x5e96c0,_0x2a84fc);return _0x457e3f(_0x53f84c,_0x2e652c),_0x430c09[_0x522988(0xc5)]({'unitId':_0x4251b5,'subUnitId':_0x5e96c0,'token':_0x2a84fc,'type':_0x1fd0cc['Set']}),!0x0;}},_0x44a819={'type':_0x22b490[_0x3b026f(0x17b)]['MUTATION'],'id':_0x3b026f(0x370),'handler'(_0x5eefb8,_0x232b09){const _0x247470=_0x3b026f;if(!_0x232b09)return!0x1;if(!!_0x5eefb8[_0x247470(0x257)](_0x22b490['IConfigService'])['getConfig'](_0x1ca274))return!0x0;const _0x5a4086=_0x5eefb8[_0x247470(0x257)](_0x4b10df['SheetsPivotDataSourceModel']),{unitId:_0x4412a7,subUnitId:_0x3ee3c1,pivotTableId:_0x29b382,fieldId:_0x13b157,filterInfo:_0x16a2cd}=_0x232b09,_0x1f2aa5=_0x5a4086[_0x247470(0xcc)](_0x29b382);if(!_0x1f2aa5)return!0x1;_0x1f2aa5['setLabelFilterInfo'](_0x13b157,_0x16a2cd);const _0x25980f=_0x5a4086[_0x247470(0xf3)](_0x4412a7,_0x3ee3c1,_0x29b382);return _0x368fb7(_0x25980f,_0x232b09),_0x5a4086[_0x247470(0xc5)]({'unitId':_0x4412a7,'subUnitId':_0x3ee3c1,'token':_0x29b382,'type':_0x1fd0cc[_0x247470(0x2b6)]}),!0x0;}},_0x130a02={'type':_0x22b490['CommandType'][_0x3b026f(0x273)],'id':_0x3b026f(0x16e),'handler'(_0x206338,_0x167242){const _0x5c32a4=_0x3b026f;if(!_0x167242)return!0x1;if(!!_0x206338[_0x5c32a4(0x257)](_0x22b490['IConfigService'])[_0x5c32a4(0x9e)](_0x1ca274))return!0x0;const _0x42b430=_0x206338[_0x5c32a4(0x257)](_0x4b10df[_0x5c32a4(0x19b)]),{unitId:_0x88ba31,subUnitId:_0x5a3b22,pivotTableId:_0x35eb56,options:_0x258a45}=_0x167242,_0x13b498=_0x42b430['getPivotTableInstance'](_0x35eb56);if(!_0x13b498)return!0x1;_0x13b498['setOptions'](_0x258a45);const _0x27cae1=_0x42b430[_0x5c32a4(0xf3)](_0x88ba31,_0x5a3b22,_0x35eb56);return _0x318fb0(_0x27cae1,_0x167242),_0x42b430[_0x5c32a4(0xc5)]({'unitId':_0x88ba31,'subUnitId':_0x5a3b22,'token':_0x35eb56,'type':_0x1fd0cc[_0x5c32a4(0x2b6)]}),!0x0;}},_0x508ca4={'type':_0x22b490['CommandType'][_0x3b026f(0x273)],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0x187439,_0x2df53c){const _0x22f1eb=_0x3b026f;if(!_0x2df53c)return!0x1;if(!!_0x187439[_0x22f1eb(0x257)](_0x22b490['IConfigService'])[_0x22f1eb(0x9e)](_0x1ca274))return!0x0;const _0x37984b=_0x187439['get'](_0x4b10df[_0x22f1eb(0x19b)]),{unitId:_0x18b528,subUnitId:_0x2dcae7,pivotTableId:_0x2f4dd0,sortInfo:_0x11d753,fieldId:_0x5248cf}=_0x2df53c,_0x14a9b3=_0x37984b['getPivotTableInstance'](_0x2f4dd0);if(!_0x14a9b3)return!0x1;_0x14a9b3[_0x22f1eb(0x14c)](_0x5248cf,_0x11d753);const _0x461bec=_0x37984b[_0x22f1eb(0xf3)](_0x18b528,_0x2dcae7,_0x2f4dd0);return _0xc5775a(_0x461bec,_0x2df53c),_0x37984b[_0x22f1eb(0xc5)]({'unitId':_0x18b528,'subUnitId':_0x2dcae7,'token':_0x2f4dd0,'type':_0x1fd0cc[_0x22f1eb(0x2b6)]}),!0x0;}},_0xccef87={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':_0x3b026f(0x79),'handler'(_0x5c98d0,_0x47f346){const _0x2d513e=_0x3b026f;if(!_0x47f346)return!0x1;if(!!_0x5c98d0[_0x2d513e(0x257)](_0x22b490['IConfigService'])[_0x2d513e(0x9e)](_0x1ca274))return!0x0;const _0x9e9a83=_0x5c98d0[_0x2d513e(0x257)](_0x4b10df[_0x2d513e(0x19b)]),{unitId:_0x250109,subUnitId:_0x1a4d81,pivotTableId:_0x2e3fab,fieldId:_0x10087e,subtotalType:_0x1095cc}=_0x47f346,_0x5d46ab=_0x9e9a83['getPivotTableInstance'](_0x2e3fab);if(!_0x5d46ab)return!0x1;_0x5d46ab[_0x2d513e(0x98)](_0x10087e,_0x1095cc);const _0x2264a5=_0x9e9a83[_0x2d513e(0xf3)](_0x250109,_0x1a4d81,_0x2e3fab);return _0x51ef0f(_0x2264a5,_0x47f346),_0x9e9a83['addDirtyPivotTable']({'unitId':_0x250109,'subUnitId':_0x1a4d81,'token':_0x2e3fab,'type':_0x1fd0cc[_0x2d513e(0x2b6)]}),!0x0;}},_0x59797f={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':_0x3b026f(0x25c),'handler'(_0x41455a,_0x50df84){const _0x375ddf=_0x3b026f;if(!_0x50df84)return!0x1;if(!!_0x41455a[_0x375ddf(0x257)](_0x22b490[_0x375ddf(0x145)])[_0x375ddf(0x9e)](_0x1ca274))return!0x0;const _0x441ef1=_0x41455a['get'](_0x4b10df['SheetsPivotDataSourceModel']),{unitId:_0x326d38,subUnitId:_0x5c0669,pivotTableId:_0x447e0a,fieldId:_0x4b7ba9,filterInfo:_0x550d81}=_0x50df84,_0x32b008=_0x441ef1[_0x375ddf(0xcc)](_0x447e0a);if(!_0x32b008)return!0x1;_0x32b008[_0x375ddf(0x203)](_0x4b7ba9,_0x550d81);const _0x476035=_0x441ef1[_0x375ddf(0xf3)](_0x326d38,_0x5c0669,_0x447e0a);return _0x5fe4cb(_0x476035,_0x50df84),_0x441ef1[_0x375ddf(0xc5)]({'unitId':_0x326d38,'subUnitId':_0x5c0669,'token':_0x447e0a,'type':_0x1fd0cc[_0x375ddf(0x2b6)]}),!0x0;}},_0x245b51={'type':_0x22b490['CommandType'][_0x3b026f(0x273)],'id':_0x3b026f(0x1fd),'handler'(_0x14f942,_0x435e5d){const _0x82a3a2=_0x3b026f;if(!_0x435e5d)return!0x1;if(!!_0x14f942[_0x82a3a2(0x257)](_0x22b490['IConfigService'])[_0x82a3a2(0x9e)](_0x1ca274))return!0x0;const _0xdef29d=_0x14f942[_0x82a3a2(0x257)](_0x4b10df[_0x82a3a2(0x19b)]),{unitId:_0x336382,subUnitId:_0x1b2e65,pivotTableId:_0x4b866e,area:_0x58b599,index:_0x393ab2,fieldId:_0x58eb8c}=_0x435e5d,_0x1600bc=_0xdef29d[_0x82a3a2(0xcc)](_0x4b866e);if(!_0x1600bc)return!0x1;_0x1600bc['updateFieldPosition'](_0x58eb8c,_0x58b599,_0x393ab2);const _0x44a4bf=_0xdef29d[_0x82a3a2(0xf3)](_0x336382,_0x1b2e65,_0x4b866e);return _0x3c08f8(_0x44a4bf,_0x435e5d),_0xdef29d[_0x82a3a2(0xc5)]({'unitId':_0x336382,'subUnitId':_0x1b2e65,'token':_0x4b866e,'type':_0x1fd0cc[_0x82a3a2(0x2b6)]}),!0x0;}},_0x4e8a15={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':_0x3b026f(0xd4),'handler'(_0x1b6cf7,_0x3a2d97){const _0x2e87ba=_0x3b026f;if(!_0x3a2d97)return!0x1;if(!!_0x1b6cf7[_0x2e87ba(0x257)](_0x22b490[_0x2e87ba(0x145)])[_0x2e87ba(0x9e)](_0x1ca274))return!0x0;const _0x14ec86=_0x1b6cf7[_0x2e87ba(0x257)](_0x4b10df[_0x2e87ba(0x19b)]),{unitId:_0x2660fe,subUnitId:_0x39513c,pivotTableId:_0x30cfa7,sourceName:_0x1c898d,dataFieldId:_0x47c842,tableFieldId:_0x708d18}=_0x3a2d97,_0x1cd3e0=_0x14ec86['getPivotTableInstance'](_0x30cfa7);if(!_0x1cd3e0)return!0x1;_0x1cd3e0['updateFieldSourceInfo'](_0x708d18,_0x1c898d,_0x47c842);const _0x1c416d=_0x14ec86[_0x2e87ba(0xf3)](_0x2660fe,_0x39513c,_0x30cfa7);return _0x1500b3(_0x1c416d,_0x3a2d97),_0x14ec86[_0x2e87ba(0xc5)]({'unitId':_0x2660fe,'subUnitId':_0x39513c,'token':_0x30cfa7,'type':_0x1fd0cc['Set']}),!0x0;}},_0x1dd788={'type':_0x22b490['CommandType'][_0x3b026f(0x273)],'id':_0x3b026f(0x25d),'handler'(_0xfce007,_0xfe52d){const _0x17228c=_0x3b026f;if(!_0xfe52d)return!0x1;if(!!_0xfce007['get'](_0x22b490[_0x17228c(0x145)])[_0x17228c(0x9e)](_0x1ca274))return!0x0;const _0x15a100=_0xfce007[_0x17228c(0x257)](_0x4b10df[_0x17228c(0x19b)]),{unitId:_0x502bbd,subUnitId:_0x21397f,pivotTableId:_0x29c062,valuePosition:_0xcc9a9c,index:_0x20460c}=_0xfe52d,_0x344315=_0x15a100[_0x17228c(0xcc)](_0x29c062);if(!_0x344315)return!0x1;_0x344315['updateValuePosition'](_0xcc9a9c,_0x20460c);const _0x409c6d=_0x15a100[_0x17228c(0xf3)](_0x502bbd,_0x21397f,_0x29c062);return _0x16bd2a(_0x409c6d,_0xfe52d),_0x15a100[_0x17228c(0xc5)]({'unitId':_0x502bbd,'subUnitId':_0x21397f,'token':_0x29c062,'type':_0x1fd0cc[_0x17228c(0x2b6)]}),!0x0;}};function _0x1f19e1(_0x4cdfb2,_0x41a95a,_0x4959f6){const _0x27483e=_0x3b026f,{pivotTableId:_0x4480bf,unitId:_0xdfa64c,subUnitId:_0x300de7}=_0x41a95a,_0xae0a4a=[],_0x436997=[];for(const _0x3f4fc4 of _0x4959f6)switch(_0x3f4fc4['type']){case _0x40290a['PivotTableChangeTypeEnum'][_0x27483e(0x374)]:{const {fieldJson:_0x521478,area:_0x51bed4,index:_0x39edea}=_0x3f4fc4,_0x599a75={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldJson':_0x521478,'area':_0x51bed4,'index':_0x39edea},_0x5e4f53={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x521478['id'],'area':_0x51bed4,'index':_0x39edea};_0xae0a4a['push']({'id':_0x394516['id'],'params':_0x599a75}),_0x436997['unshift']({'id':_0x11f84a['id'],'params':_0x5e4f53});}break;case _0x40290a['PivotTableChangeTypeEnum'][_0x27483e(0x241)]:{const {fieldId:_0x18d078,newSubtotalType:_0x411abf,oldSubtotalType:_0x3d5139}=_0x3f4fc4,_0x305fea={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x18d078,'subtotalType':_0x411abf};_0xae0a4a['push']({'id':_0xccef87['id'],'params':_0x305fea});const _0x28d34f={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x18d078,'subtotalType':_0x3d5139};_0x436997[_0x27483e(0x84)]({'id':_0xccef87['id'],'params':_0x28d34f});}break;case _0x40290a[_0x27483e(0x2ca)]['RemoveField']:{const {fieldId:_0x423658,fieldJson:_0x5c9043,area:_0x12a763,index:_0x2b18dc}=_0x3f4fc4,_0xe6c5e9={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x423658,'index':_0x2b18dc,'area':_0x12a763};_0xae0a4a[_0x27483e(0x1b3)]({'id':_0x11f84a['id'],'params':_0xe6c5e9});const _0x31c1db={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldJson':_0x5c9043,'area':_0x12a763,'index':_0x2b18dc};_0x436997[_0x27483e(0x84)]({'id':_0x394516['id'],'params':_0x31c1db});}break;case _0x40290a[_0x27483e(0x2ca)]['RenameField']:{const {fieldId:_0x2335b7,oldName:_0x2d7a0d,newName:_0x44d16a}=_0x3f4fc4,_0x503430={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x2335b7,'name':_0x44d16a};_0xae0a4a[_0x27483e(0x1b3)]({'id':_0x1ff897['id'],'params':_0x503430});const _0x33ebdc={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x2335b7,'name':_0x2d7a0d};_0x436997[_0x27483e(0x84)]({'id':_0x1ff897['id'],'params':_0x33ebdc});}break;case _0x40290a[_0x27483e(0x2ca)][_0x27483e(0x383)]:{const {fieldId:_0x34e9d9,oldFilterInfo:_0x505796,newFilterInfo:_0x1f1f04}=_0x3f4fc4,_0x351309={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x34e9d9,'filterInfo':_0x1f1f04};_0xae0a4a[_0x27483e(0x1b3)]({'id':_0x44a819['id'],'params':_0x351309});const _0x23a23f={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x34e9d9,'filterInfo':_0x505796};_0x436997[_0x27483e(0x84)]({'id':_0x44a819['id'],'params':_0x23a23f});}break;case _0x40290a[_0x27483e(0x2ca)]['SetSortInfo']:{const {fieldId:_0x37d5be,oldSortInfo:_0x4e0c9d,newSortInfo:_0x428e2c}=_0x3f4fc4,_0x3eb8fb={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x37d5be,'sortInfo':_0x428e2c};_0xae0a4a[_0x27483e(0x1b3)]({'id':_0x508ca4['id'],'params':_0x3eb8fb});const _0x4ce6f3={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x37d5be,'sortInfo':_0x4e0c9d};_0x436997[_0x27483e(0x84)]({'id':_0x508ca4['id'],'params':_0x4ce6f3});}break;case _0x40290a['PivotTableChangeTypeEnum'][_0x27483e(0x153)]:{const {oldOptions:_0x48cea3,newOptions:_0x2e081c}=_0x3f4fc4,_0x2cac57={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'options':_0x2e081c};_0xae0a4a[_0x27483e(0x1b3)]({'id':_0x130a02['id'],'params':_0x2cac57});const _0x409f34={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'options':_0x48cea3};_0x436997[_0x27483e(0x84)]({'id':_0x130a02['id'],'params':_0x409f34});}break;case _0x40290a[_0x27483e(0x2ca)]['UpdateFieldPosition']:{const {oldArea:_0x263e41,newArea:_0x3ba673,oldIndex:_0x32d6a6,newIndex:_0x10e193,fieldId:_0x35f38c}=_0x3f4fc4,_0x49f2d6={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x35f38c,'area':_0x3ba673,'index':_0x10e193,'oldArea':_0x263e41,'oldIndex':_0x32d6a6};_0xae0a4a[_0x27483e(0x1b3)]({'id':_0x245b51['id'],'params':_0x49f2d6});const _0x2fa1c2={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x35f38c,'area':_0x263e41,'index':_0x32d6a6,'oldArea':_0x3ba673,'oldIndex':_0x10e193};_0x436997[_0x27483e(0x84)]({'id':_0x245b51['id'],'params':_0x2fa1c2});}break;case _0x40290a[_0x27483e(0x2ca)][_0x27483e(0x2d9)]:{const {oldValuePosition:_0x11c5b6,newValuePosition:_0x294b8a,oldIndex:_0x4ed67e,newIndex:_0x31b562}=_0x3f4fc4,_0xd9bfea={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'valuePosition':_0x294b8a,'index':_0x31b562};_0xae0a4a['push']({'id':_0x1dd788['id'],'params':_0xd9bfea});const _0x1b531d={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'valuePosition':_0x11c5b6,'index':_0x4ed67e};_0x436997[_0x27483e(0x84)]({'id':_0x1dd788['id'],'params':_0x1b531d});}break;case _0x40290a['PivotTableChangeTypeEnum']['SetCollapse']:{const {fieldId:_0x2ae07c,collapse:_0x4c1228,item:_0x56431b}=_0x3f4fc4,_0xa02af7={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x2ae07c,'collapse':_0x4c1228,'item':_0x56431b};_0xae0a4a['push']({'id':_0x57bb3b['id'],'params':_0xa02af7});const _0x42241={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x2ae07c,'collapse':!_0x4c1228,'item':_0x56431b};_0x436997[_0x27483e(0x84)]({'id':_0x57bb3b['id'],'params':_0x42241});}break;case _0x40290a['PivotTableChangeTypeEnum'][_0x27483e(0x140)]:{const {newFormat:_0x4e5611,oldFormat:_0x10d4e1,fieldId:_0x400b0a}=_0x3f4fc4,_0x3fd95d={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x400b0a,'format':_0x4e5611};_0xae0a4a[_0x27483e(0x1b3)]({'id':_0x1559d7['id'],'params':_0x3fd95d});const _0x36eb79={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x400b0a,'format':_0x10d4e1};_0x436997['unshift']({'id':_0x1559d7['id'],'params':_0x36eb79});}break;case _0x40290a[_0x27483e(0x2ca)][_0x27483e(0x228)]:{const {tableFieldId:_0x1701dc,oldSourceName:_0x243907,newSourceName:_0x215108,oldDataFieldId:_0xbb930e,newDataFieldId:_0x2f0d87}=_0x3f4fc4,_0x100696={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'tableFieldId':_0x1701dc,'sourceName':_0x215108,'dataFieldId':_0x2f0d87};_0xae0a4a[_0x27483e(0x1b3)]({'id':_0x4e8a15['id'],'params':_0x100696});const _0x360472={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'tableFieldId':_0x1701dc,'sourceName':_0x243907,'dataFieldId':_0xbb930e};_0x436997[_0x27483e(0x84)]({'id':_0x4e8a15['id'],'params':_0x360472});}break;case _0x40290a['PivotTableChangeTypeEnum']['SetValueFilter']:{const {fieldId:_0x96f67f,filterInfo:_0x5de905,oldFilterInfo:_0x5706f8}=_0x3f4fc4,_0x2ac8b7={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x96f67f,'filterInfo':_0x5de905};_0xae0a4a[_0x27483e(0x1b3)]({'id':_0x59797f['id'],'params':_0x2ac8b7});const _0x190524={'unitId':_0xdfa64c,'subUnitId':_0x300de7,'pivotTableId':_0x4480bf,'fieldId':_0x96f67f,'filterInfo':_0x5706f8};_0x436997[_0x27483e(0x84)]({'id':_0x59797f['id'],'params':_0x190524});}}return{'redos':_0xae0a4a,'undos':_0x436997};}function _0x1b9b8c(_0x42191b,_0x3e0b6e){const _0x4e70f4=_0x3b026f;var _0x1def12;const _0x346f7f=_0x42191b[_0x4e70f4(0x257)](_0x4b10df[_0x4e70f4(0x206)]),{cellInfo:_0x4d0102,view:_0x264de1,isEmpty:_0x497c9d}=_0x3e0b6e;return(_0x1def12=_0x346f7f[_0x4e70f4(0x2c8)][_0x4e70f4(0x1fe)](_0x40e90f)(_0x223297,{'cellInfo':_0x4d0102,'view':_0x264de1,'isEmpty':_0x497c9d}))!=null?_0x1def12:_0x223297;}const _0x2d608a=()=>typeof process<'u'&&process[_0x3b026f(0x34b)]!=null&&process['versions'][_0x3b026f(0x39a)]!=null,_0x4a007b={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':_0x3b026f(0x166),'handler'(_0x3a673f,_0x5dd157){const _0x44f59e=_0x3b026f;var _0x3e1d76;if(!_0x5dd157)return!0x1;const _0x595e26=_0x3a673f[_0x44f59e(0x257)](_0x22b490[_0x44f59e(0x145)]);if(!!_0x595e26[_0x44f59e(0x9e)](_0x1ca274))return!0x0;const _0x4caa37=_0x3a673f[_0x44f59e(0x257)](_0x22b490[_0x44f59e(0x276)]),_0x14647e=_0x3a673f[_0x44f59e(0x257)](_0x4b10df[_0x44f59e(0x19b)]),{pivotTableId:_0x138259,pivotTableConfig:_0x41cb48,collectionConfig:_0xc95dd1,unitId:_0x39966a,subUnitId:_0x497689}=_0x5dd157,{sourceRangeInfo:_0x261cf5,fieldsConfig:_0x4fce5f,targetCellInfo:_0x1de24d}=_0x41cb48,_0x34113f=_0x4caa37[_0x44f59e(0xe3)](_0x39966a);if(!_0x34113f||!_0x34113f[_0x44f59e(0x36c)](_0x497689))return!0x1;if(!_0x2d608a()){let _0x1269c1=0x0;_0x34113f[_0x44f59e(0xca)]()['forEach'](_0x25860c=>{const _0x2dc2fb=_0x44f59e;var _0x4bc945,_0x46db7b;_0x1269c1+=(_0x46db7b=(_0x4bc945=_0x14647e[_0x2dc2fb(0x2f9)](_0x39966a,_0x25860c[_0x2dc2fb(0x121)]()))==null?void 0x0:_0x4bc945[_0x2dc2fb(0x15e)])!=null?_0x46db7b:0x0;});const _0x25b325=(_0x3e1d76=_0x595e26['getConfig'](_0x19c977[_0x44f59e(0x2a8)]))!=null?_0x3e1d76:{},{ls:_0x2920e4,pbk:_0x2e874a}=_0x25b325;if(!_0x1ef1bf(_0x2920e4,_0x2e874a))throw new _0x22b490[(_0x44f59e(0x103))](_0x44f59e(0x340));const _0x31b0f6=_0xefb951(_0x4a2a99,_0x2920e4,_0x2e874a)['count'];if(_0x1269c1>=_0x31b0f6)throw new _0x22b490[(_0x44f59e(0x103))](_0x44f59e(0x340));}if(!_0xc95dd1||!_0x4fce5f)return!0x1;const {collection:_0x3314bd,updateDataFieldList:_0x54bb3f}=_0x14647e[_0x44f59e(0x215)](_0x138259,_0xc95dd1,_0x261cf5,_0x1de24d);_0x14647e[_0x44f59e(0x89)](_0x3314bd,_0x54bb3f,_0x261cf5);const _0xa07d30=new _0x40290a[(_0x44f59e(0x1f9))](_0x3314bd,void 0x0,_0x138259);_0xa07d30[_0x44f59e(0x27a)](_0x4fce5f);const _0x19b308=JSON[_0x44f59e(0x235)](JSON[_0x44f59e(0x1bb)](_0x41cb48));return _0x14647e['addPivotTable'](_0x39966a,_0x497689,_0x138259,_0xa07d30,_0x19b308),_0x14647e[_0x44f59e(0xc5)]({'unitId':_0x39966a,'subUnitId':_0x497689,'token':_0x138259,'type':_0x1fd0cc['Add'],'pivotConfig':_0x19b308}),!0x0;}},_0x2b2613={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':_0x3b026f(0x38d),'handler'(_0x99a96b,_0x97b5ce){const _0x2da7ce=_0x3b026f;if(!_0x97b5ce)return!0x1;if(!!_0x99a96b[_0x2da7ce(0x257)](_0x22b490[_0x2da7ce(0x145)])[_0x2da7ce(0x9e)](_0x1ca274))return!0x0;const {pivotTableId:_0x364981,unitId:_0x46c16a,subUnitId:_0xcd387f}=_0x97b5ce,_0x252b47=_0x99a96b[_0x2da7ce(0x257)](_0x4b10df['SheetsPivotDataSourceModel']);return _0x252b47[_0x2da7ce(0x26f)](_0x46c16a,_0xcd387f,_0x364981)?(_0x252b47[_0x2da7ce(0xc5)]({'unitId':_0x46c16a,'subUnitId':_0xcd387f,'token':_0x364981,'type':_0x1fd0cc[_0x2da7ce(0x35d)]}),_0x252b47[_0x2da7ce(0x177)](_0x46c16a,_0xcd387f,_0x364981),!0x0):!0x1;}},_0x2b9b15={'type':_0x22b490['CommandType'][_0x3b026f(0x273)],'id':_0x3b026f(0x32f),'handler'(_0x6de4ff,_0x594b0c){const _0x49492c=_0x3b026f;if(!_0x594b0c)return!0x1;if(!!_0x6de4ff['get'](_0x22b490['IConfigService'])[_0x49492c(0x9e)](_0x1ca274))return!0x0;const {pivotTableId:_0x1d61ca,targetCellPosition:_0x51d0ac,unitId:_0x36e5a6,subUnitId:_0x8ad307}=_0x594b0c,_0x33ae50=_0x6de4ff[_0x49492c(0x257)](_0x4b10df[_0x49492c(0x19b)]);if(!_0x33ae50[_0x49492c(0xcc)](_0x594b0c['pivotTableId']))return!0x1;const _0x1a3b43=_0x33ae50[_0x49492c(0xc4)](_0x1d61ca);if(!_0x1a3b43)return!0x1;const _0xec5270=_0x33ae50[_0x49492c(0x14d)](_0x1a3b43[_0x49492c(0xbb)],_0x594b0c[_0x49492c(0x2b7)]);if(!_0xec5270)return!0x1;const _0x19551e=_0x33ae50[_0x49492c(0x26f)](_0x1a3b43[_0x49492c(0xbb)],_0x1a3b43[_0x49492c(0x214)],_0x1d61ca);if(!_0x19551e)return!0x1;const _0xc4558c=_0x22b490['Tools'][_0x49492c(0x1b4)](_0x19551e);_0xc4558c[_0x49492c(0x157)]={'unitId':_0x36e5a6,'subUnitId':_0x8ad307,'row':_0x51d0ac[_0x49492c(0x2e2)],'col':_0x51d0ac[_0x49492c(0x185)]};const _0x6dbffb=_0xec5270[_0x49492c(0x2b3)]();if(_0x1a3b43[_0x49492c(0x214)]===_0x8ad307&&_0x1a3b43[_0x49492c(0xbb)]===_0x36e5a6)_0x33ae50[_0x49492c(0x2f5)](_0x36e5a6,_0x8ad307,_0x1d61ca,_0xc4558c),_0x33ae50[_0x49492c(0xc5)]({'unitId':_0x36e5a6,'subUnitId':_0x8ad307,'token':_0x1d61ca,'type':_0x1fd0cc['Set']});else{_0x33ae50[_0x49492c(0xc5)]({'unitId':_0x1a3b43[_0x49492c(0xbb)],'subUnitId':_0x1a3b43[_0x49492c(0x214)],'token':_0x1d61ca,'type':_0x1fd0cc[_0x49492c(0x35d)]}),_0x33ae50[_0x49492c(0x177)](_0x1a3b43[_0x49492c(0xbb)],_0x1a3b43[_0x49492c(0x214)],_0x1d61ca);const _0x47a4a5=_0x33ae50[_0x49492c(0x215)](_0x1d61ca,_0x6dbffb,_0x19551e[_0x49492c(0x382)],_0xc4558c['targetCellInfo']),_0x31d167=new _0x40290a[(_0x49492c(0x1f9))](_0x47a4a5[_0x49492c(0x2d8)],void 0x0,_0x1d61ca);_0x31d167[_0x49492c(0x27a)](_0xc4558c[_0x49492c(0xc9)]),_0x33ae50[_0x49492c(0x26a)](_0x36e5a6,_0x8ad307,_0x1d61ca,_0x31d167,_0xc4558c),_0x33ae50[_0x49492c(0xc5)]({'unitId':_0x36e5a6,'subUnitId':_0x8ad307,'token':_0x1d61ca,'type':_0x1fd0cc[_0x49492c(0x38f)],'pivotConfig':_0xc4558c});}return!0x0;}},_0x4b2b87={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'id':_0x3b026f(0x18b),'handler'(_0x3e0f8d,_0x55a165){const _0x1f7b18=_0x3b026f;if(!_0x55a165)return!0x1;if(!!_0x3e0f8d['get'](_0x22b490[_0x1f7b18(0x145)])[_0x1f7b18(0x9e)](_0x1ca274))return!0x0;const _0x51c6eb=_0x3e0f8d[_0x1f7b18(0x257)](_0x4b10df[_0x1f7b18(0x19b)]),{pivotTableId:_0x3d1ad1,deleteIds:_0x418b3d,collectionJSON:_0x3cafc0,dataRangeInfo:_0x120c9f,unitId:_0x4f3b31,subUnitId:_0x1bf5ac}=_0x55a165,_0x26a346=_0x51c6eb[_0x1f7b18(0xcc)](_0x3d1ad1),_0xc6c8f6=_0x51c6eb[_0x1f7b18(0x26f)](_0x4f3b31,_0x1bf5ac,_0x3d1ad1);if(!_0x26a346||!_0xc6c8f6)return!0x1;const {collection:_0x4113c5,updateDataFieldList:_0x41bb68}=_0x51c6eb[_0x1f7b18(0x215)](_0x3d1ad1,_0x3cafc0,_0x120c9f,_0xc6c8f6['targetCellInfo']);_0x51c6eb['refreshData'](_0x4113c5,_0x41bb68,_0x120c9f),_0x26a346[_0x1f7b18(0x2aa)](_0x4113c5);for(const _0x4df7cb of _0x418b3d)_0x51c6eb[_0x1f7b18(0x24c)](_0x120c9f[_0x1f7b18(0xbb)],_0x4df7cb);const _0x15467f=_0x51c6eb[_0x1f7b18(0x26f)](_0x4f3b31,_0x1bf5ac,_0x3d1ad1);return _0x15467f[_0x1f7b18(0x382)]=JSON[_0x1f7b18(0x235)](JSON[_0x1f7b18(0x1bb)](_0x120c9f)),_0x51c6eb[_0x1f7b18(0xc5)]({'unitId':_0x4f3b31,'subUnitId':_0x1bf5ac,'token':_0x3d1ad1,'type':_0x1fd0cc['Set']}),!0x0;}},_0x38644a={'type':_0x22b490['CommandType'][_0x3b026f(0x273)],'id':_0x3b026f(0x295),'handler'(){return!0x0;}};var _0x5406df=Object['getOwnPropertyDescriptor'],_0x45d5ca=(_0x339937,_0x5e726e,_0x5e77aa,_0x10dc4d)=>{const _0x3c83db=_0x3b026f;for(var _0x489a90=_0x10dc4d>0x1?void 0x0:_0x10dc4d?_0x5406df(_0x5e726e,_0x5e77aa):_0x5e726e,_0x320461=_0x339937[_0x3c83db(0x28e)]-0x1,_0x20f5ee;_0x320461>=0x0;_0x320461--)(_0x20f5ee=_0x339937[_0x320461])&&(_0x489a90=_0x20f5ee(_0x489a90)||_0x489a90);return _0x489a90;},_0x5f86ab=(_0x3a69ec,_0x3cc6c3)=>(_0x47cf03,_0x2a5c1d)=>_0x3cc6c3(_0x47cf03,_0x2a5c1d,_0x3a69ec);_0x4b10df['SheetsPivotRPCService']=class extends _0x22b490['Disposable']{constructor(_0x58aaef,_0x4705ec){const _0xe04ed9=_0x3b026f;super(),_0x57dd8e(this,_0xe04ed9(0x10b),new Map()),(this[_0xe04ed9(0xf5)]=_0x58aaef,this[_0xe04ed9(0x1c7)]=_0x4705ec);}[_0x3b026f(0x1fb)](_0x25c5b8){const _0x3f1d49=_0x3b026f,{version:_0x23cdbc}=_0x25c5b8,_0x5173e0=this[_0x3f1d49(0x10b)][_0x3f1d49(0x257)](_0x23cdbc);_0x5173e0&&(_0x5173e0(_0x25c5b8),this['_requestResolvers'][_0x3f1d49(0x32e)](_0x23cdbc));}[_0x3b026f(0x211)](_0x1dafa0){return new Promise((_0x13fae1,_0x316043)=>{const _0x3729a3=_0x466a,_0x34a90a=this[_0x3729a3(0x1d6)]();this[_0x3729a3(0x10b)][_0x3729a3(0x118)](_0x34a90a,_0x13fae1),this[_0x3729a3(0x1c7)][_0x3729a3(0xe1)](_0x5c2ddd['id'],{'version':_0x34a90a,..._0x1dafa0},{'onlyLocal':!0x0});});}[_0x3b026f(0x1d6)](){const _0x1fe18b=_0x3b026f;return Math[_0x1fe18b(0x131)]()[_0x1fe18b(0x78)](0x24)[_0x1fe18b(0x39d)](0x2,0x10);}},_0x4b10df[_0x3b026f(0x97)]=_0x45d5ca([_0x5f86ab(0x0,_0x22b490['Inject'](_0x22b490[_0x3b026f(0x227)])),_0x5f86ab(0x1,_0x22b490[_0x3b026f(0xb8)](_0x22b490[_0x3b026f(0x2fe)]))],_0x4b10df['SheetsPivotRPCService']);const _0x3d2fcc={'id':_0x3b026f(0x139),'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'handler':(_0x53b682,_0x3577d2)=>{const _0x3f9b58=_0x3b026f;if(!_0x3577d2)return!0x1;if(!!_0x53b682[_0x3f9b58(0x257)](_0x22b490[_0x3f9b58(0x145)])[_0x3f9b58(0x9e)](_0x1ca274))return!0x0;const {pivotTableId:_0x217b9e,fieldJSON:_0x5dc887,unitId:_0x13ccf9,subUnitId:_0x2cea65}=_0x3577d2,_0x3bd6ff=_0x40290a[_0x3f9b58(0x20d)]['fromJSON'](_0x5dc887);if(!_0x3bd6ff)return!0x1;const _0x543ff4=_0x53b682[_0x3f9b58(0x257)](_0x4b10df[_0x3f9b58(0x19b)]),_0x2cb89e=_0x543ff4[_0x3f9b58(0x37f)](_0x13ccf9),_0x5c928c=_0x2cb89e[_0x3f9b58(0x14d)](_0x217b9e);_0x2cb89e[_0x3f9b58(0x2f2)](_0x3bd6ff),_0x5c928c[_0x3f9b58(0x11d)](_0x3bd6ff[_0x3f9b58(0x35a)](),_0x3bd6ff['getName']());const _0x32ffec=_0x5c928c['getFieldById'](_0x3bd6ff[_0x3f9b58(0x124)]());_0x32ffec&&_0x3bd6ff[_0x3f9b58(0x261)](_0x32ffec);const _0x31ca97=_0x543ff4[_0x3f9b58(0x26f)](_0x13ccf9,_0x2cea65,_0x217b9e);return _0x543ff4[_0x3f9b58(0xc5)]({'unitId':_0x13ccf9,'subUnitId':_0x2cea65,'token':_0x217b9e,'type':_0x1fd0cc[_0x3f9b58(0x2b6)],'pivotConfig':_0x31ca97}),!0x0;}},_0x3616d4={'id':_0x3b026f(0x368),'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'handler':(_0x541fd0,_0x344780)=>{const _0x26351d=_0x3b026f;if(!_0x344780)return!0x1;if(!!_0x541fd0[_0x26351d(0x257)](_0x22b490[_0x26351d(0x145)])[_0x26351d(0x9e)](_0x1ca274))return!0x0;const {pivotTableId:_0x12e27d,dataFieldId:_0x5a5753,unitId:_0x1d5d1f,subUnitId:_0x30263d}=_0x344780,_0x507c0c=_0x541fd0[_0x26351d(0x257)](_0x4b10df[_0x26351d(0x19b)]),_0x4b633c=_0x507c0c[_0x26351d(0x37f)](_0x1d5d1f);_0x4b633c[_0x26351d(0x14d)](_0x12e27d)['deleteField'](_0x5a5753);let _0x4be00a=!0x0;for(const _0x6b2750 in _0x4b633c['collections'])if(_0x4b633c[_0x26351d(0x112)][_0x6b2750][_0x26351d(0x378)]()[_0x26351d(0xeb)](_0x5a5753)){_0x4be00a=!0x1;break;}_0x4be00a&&_0x4b633c[_0x26351d(0x175)](_0x5a5753);const _0x1e829c=_0x507c0c[_0x26351d(0x26f)](_0x1d5d1f,_0x30263d,_0x12e27d);return _0x507c0c[_0x26351d(0xc5)]({'unitId':_0x1d5d1f,'subUnitId':_0x30263d,'token':_0x12e27d,'type':_0x1fd0cc[_0x26351d(0x2b6)],'pivotConfig':_0x1e829c}),!0x0;}},_0x12acfe={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x23b)],'id':_0x3b026f(0x11e),async 'handler'(_0x3f572e,_0x1b7f27){const _0x1fc153=_0x3b026f;if(!_0x1b7f27)return!0x1;const _0x3c1e78=_0x3f572e[_0x1fc153(0x257)](_0x22b490[_0x1fc153(0x2fe)]),_0x148c39=_0x3f572e[_0x1fc153(0x257)](_0x4b10df[_0x1fc153(0x97)]),_0x4e5f1d=_0x3f572e[_0x1fc153(0x257)](_0x22b490[_0x1fc153(0x163)]),{pivotTableId:_0x56c9f3,dataFieldId:_0x1fe0aa,fieldArea:_0x8786aa,index:_0x5c8386,unitId:_0x10915b,subUnitId:_0x20788c}=_0x1b7f27,_0x3e1a0f=(await _0x148c39['getPivotDisplayConfig']({'unitId':_0x10915b,'subUnitId':_0x20788c,'pivotTableId':_0x56c9f3,'params':{'type':_0x5ab7c7['AddPivotField'],'addPivotField':{'dataFieldId':_0x1fe0aa,'fieldArea':_0x8786aa,'index':_0x5c8386}}}))['result']['addPivotField'];if(!_0x3e1a0f)return!0x1;const {view:_0x2afb34,changesets:_0x3a72c0,isEmpty:_0x49338e,pivotTableConfig:_0x122ad8,shouldBeAddedGroupJSON:_0x42cfc6}=_0x3e1a0f,_0x578511=_0x122ad8[_0x1fc153(0x157)],_0x13ef68=new _0x40290a['PivotView']();_0x13ef68[_0x1fc153(0x32b)](_0x2afb34);const _0x5cc2ba={'cellInfo':_0x578511,'view':_0x13ef68,'isEmpty':_0x49338e};if(!await _0x3f572e[_0x1fc153(0x257)](_0x4b10df[_0x1fc153(0x206)])[_0x1fc153(0x1ed)][_0x1fc153(0x39b)](_0x5d7e40)(!0x0,_0x5cc2ba))return!0x1;const _0x545466=_0x27400a(_0x3f572e,_0x13ef68,_0x578511,_0x49338e),_0x5e210f=_0x1b9b8c(_0x3f572e,_0x5cc2ba),{undos:_0x1fbdf5,redos:_0xef6283}=_0x1f19e1(_0x3c1e78,{'pivotTableId':_0x56c9f3,'unitId':_0x10915b,'subUnitId':_0x20788c},_0x3a72c0);return _0x42cfc6&&(_0xef6283['unshift']({'id':_0x3d2fcc['id'],'params':{'pivotTableId':_0x56c9f3,'fieldJSON':_0x42cfc6,'unitId':_0x10915b,'subUnitId':_0x20788c}}),_0x1fbdf5[_0x1fc153(0x1b3)]({'id':_0x3616d4['id'],'params':{'pivotTableId':_0x56c9f3,'dataFieldId':_0x42cfc6['id'],'unitId':_0x10915b,'subUnitId':_0x20788c}})),_0x22b490[_0x1fc153(0x1a0)]([..._0x545466['redos'],..._0x5e210f[_0x1fc153(0x29c)],..._0xef6283],_0x3c1e78),_0x4e5f1d[_0x1fc153(0x7e)]({'unitID':_0x10915b,'redoMutations':[..._0x545466[_0x1fc153(0x29c)],..._0x5e210f[_0x1fc153(0x29c)],..._0xef6283],'undoMutations':[..._0x545466[_0x1fc153(0x36b)],..._0x5e210f[_0x1fc153(0x36b)],..._0x1fbdf5]}),!0x0;}},_0x23172e={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x23b)],'id':_0x3b026f(0x22b),async 'handler'(_0x477076,_0x18761d){const _0x1883fd=_0x3b026f;if(!_0x18761d)return!0x1;const {sourceDataInfo:_0x2dd0b,pivotTableConfig:_0x52b728}=_0x18761d;if(!_0x2dd0b||!_0x52b728)return!0x1;const {unitId:_0x2897fc,subUnitId:_0x33fb01,range:_0x228d0c}=_0x2dd0b,_0x58abd9=_0x477076[_0x1883fd(0x257)](_0x22b490[_0x1883fd(0x276)]),_0x376e6c=_0x477076['get'](_0x4b10df[_0x1883fd(0x97)]),_0x497733=_0x477076[_0x1883fd(0x257)](_0x22b490[_0x1883fd(0x2f1)]),_0x5222c1=_0x477076['get'](_0x22b490[_0x1883fd(0x2fe)]),_0x2d38f7=_0x58abd9['getUnit'](_0x2897fc);if(!_0x2d38f7)return!0x1;const _0x5a8083=_0x2d38f7[_0x1883fd(0x36c)](_0x33fb01);if(!_0x5a8083)return!0x1;const _0x5233f1=_0x40290a[_0x1883fd(0xbc)](0x8),_0x51f383=_0x228d0c||{'startRow':0x0,'startColumn':0x0,'endRow':_0x5a8083[_0x1883fd(0x33a)]()-0x1,'endColumn':_0x5a8083[_0x1883fd(0x11f)]()-0x1};_0x51f383[_0x1883fd(0x193)]=_0x22b490[_0x1883fd(0x1c6)][_0x1883fd(0x151)];const _0x200b7b=(await _0x376e6c[_0x1883fd(0x211)]({'unitId':_0x2897fc,'subUnitId':_0x33fb01,'pivotTableId':_0x5233f1,'params':{'type':_0x5ab7c7[_0x1883fd(0x190)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x2897fc,'sheetName':_0x5a8083[_0x1883fd(0x111)](),'subUnitId':_0x33fb01,'range':_0x51f383},'pivotTableId':_0x5233f1,'pivotTableIndexConfig':_0x52b728}}}))['result'][_0x1883fd(0x106)];if(!_0x200b7b)return!0x1;const {isEmpty:_0x5386bd,fieldsConfig:_0x2587d4,collectionConfig:_0x2715fc,changesets:_0x247e1f}=_0x200b7b,_0x41248a=_0x2d38f7[_0x1883fd(0xca)]()[_0x1883fd(0x28e)],_0x244ee9=_0x22b490['mergeWorksheetSnapshotWithDefault']({'rowCount':_0x5a8083[_0x1883fd(0x33a)]()-0x1,'columnCount':_0x5a8083[_0x1883fd(0x11f)]()-0x1});_0x244ee9['id']=_0x22b490[_0x1883fd(0xe4)](),_0x244ee9[_0x1883fd(0x181)]=_0x2d38f7['generateNewSheetName'](''+_0x497733['t'](_0x1883fd(0xef)));const _0x248abe={'index':_0x41248a,'sheet':_0x244ee9,'unitId':_0x2897fc},{redos:_0x189e29}=_0x1f19e1(_0x5222c1,{'pivotTableId':_0x5233f1,'unitId':_0x2897fc,'subUnitId':_0x244ee9['id']},_0x247e1f),_0x540486=[{'id':_0x2c7bf0[_0x1883fd(0x99)]['id'],'params':_0x248abe},{'id':_0x4a007b['id'],'params':{'unitId':_0x2897fc,'subUnitId':_0x244ee9['id'],'pivotTableId':_0x5233f1,'pivotTableConfig':{'isEmpty':_0x5386bd,'fieldsConfig':_0x2587d4,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x2897fc,'subUnitId':_0x244ee9['id']},'sourceRangeInfo':{'subUnitId':_0x33fb01,'unitId':_0x2897fc,'range':_0x51f383,'sheetName':_0x5a8083['getName']()}},'collectionConfig':_0x2715fc}},..._0x189e29];return _0x22b490[_0x1883fd(0x1a0)](_0x540486,_0x5222c1),!0x0;}},_0x3b098c={'type':_0x22b490['CommandType'][_0x3b026f(0x23b)],'id':_0x3b026f(0x345),async 'handler'(_0x46385c,_0x337d40){const _0x24a8cb=_0x3b026f;var _0x3e120a,_0x438ab3;const _0x14e939=_0x46385c[_0x24a8cb(0x257)](_0x22b490[_0x24a8cb(0x2fe)]),_0x2e9f1f=_0x46385c[_0x24a8cb(0x257)](_0x22b490[_0x24a8cb(0x276)]),_0x42dbaf=_0x46385c[_0x24a8cb(0x257)](_0x22b490[_0x24a8cb(0x2f1)]),_0x375248=_0x46385c[_0x24a8cb(0x257)](_0x4b10df['SheetsPivotRPCService']),_0x58379f=_0x46385c['get'](_0x22b490[_0x24a8cb(0x163)]),_0x16eea3=_0x46385c[_0x24a8cb(0x257)](_0x4b10df[_0x24a8cb(0x125)]),_0x3dfb8d=_0x46385c[_0x24a8cb(0x257)](_0x22b490[_0x24a8cb(0x145)]);if(!_0x337d40)return!0x1;const {pivotTableConfig:_0x4d8e7b,positionType:_0xb33ffc}=_0x337d40,{targetCellInfo:_0x40fa4a,sourceRangeInfo:_0x5cf06c}=_0x4d8e7b,{unitId:_0x14c47f,subUnitId:_0x3d00ba}=_0x40fa4a,_0x3e8bdf=_0x2e9f1f[_0x24a8cb(0xe3)](_0x14c47f);if(!_0x3e8bdf)return!0x1;let _0x25ec10=0x0;_0x3e8bdf['getSheets']()[_0x24a8cb(0x38c)](_0x1a0c04=>{const _0x26b144=_0x24a8cb;var _0x55bf65,_0xb0ff20;_0x25ec10+=(_0xb0ff20=(_0x55bf65=_0x16eea3[_0x26b144(0x2f9)](_0x14c47f,_0x1a0c04[_0x26b144(0x121)]()))==null?void 0x0:_0x55bf65[_0x26b144(0x15e)])!=null?_0xb0ff20:0x0;});const _0x49347f=(_0x3e120a=_0x3dfb8d['getConfig'](_0x19c977[_0x24a8cb(0x2a8)]))!=null?_0x3e120a:{},{ls:_0x23b399,pbk:_0x333445}=_0x49347f;if(!_0x1ef1bf(_0x23b399,_0x333445))return!0x1;const _0x3b4bab=_0xefb951(_0x4a2a99,_0x23b399,_0x333445)[_0x24a8cb(0x269)];if(_0x25ec10>=_0x3b4bab)return!0x1;const _0x24138f=_0x337d40[_0x24a8cb(0x2b7)]||_0x40290a[_0x24a8cb(0xbc)](0x8),_0x5487f0=(await _0x375248[_0x24a8cb(0x211)]({'unitId':_0x14c47f,'subUnitId':_0x3d00ba,'pivotTableId':_0x24138f,'params':{'type':_0x5ab7c7['AddPivotTable'],'addPivotTable':{'sourceRangeInfo':_0x5cf06c,'pivotTableId':_0x24138f}}}))[_0x24a8cb(0x356)][_0x24a8cb(0x26a)];if(!_0x5487f0)return!0x1;const {view:_0x1dbd89,isEmpty:_0x164fb6,fieldsConfig:_0x487db7,collectionConfig:_0x1be939}=_0x5487f0,_0x5bc32b=[],_0x209dde=[];if(_0xb33ffc===_0xbae8da[_0x24a8cb(0x170)]){const _0x4bf49e=_0x3e8bdf[_0x24a8cb(0xca)]()[_0x24a8cb(0x28e)],_0x52c9db=_0x22b490['mergeWorksheetSnapshotWithDefault']({});_0x52c9db['id']=_0x4d8e7b[_0x24a8cb(0x157)][_0x24a8cb(0x214)],_0x52c9db[_0x24a8cb(0x181)]=(_0x438ab3=_0x4d8e7b['targetCellInfo'][_0x24a8cb(0x16b)])!=null?_0x438ab3:_0x3e8bdf[_0x24a8cb(0xfb)](''+_0x42dbaf['t']('sheets.tabs.sheet'));const _0xdea4da={'index':_0x4bf49e,'sheet':_0x52c9db,'unitId':_0x14c47f},_0x1d869b=_0x2c7bf0[_0x24a8cb(0x364)](_0x46385c,_0xdea4da);_0x5bc32b[_0x24a8cb(0x1b3)]({'id':_0x2c7bf0[_0x24a8cb(0x30c)]['id'],'params':_0x1d869b}),_0x209dde[_0x24a8cb(0x1b3)]({'id':_0x2c7bf0[_0x24a8cb(0x292)]['id'],'params':_0xdea4da});}else{if(!_0x3e8bdf[_0x24a8cb(0x36c)](_0x3d00ba))return!0x1;const _0x191763=_0x27400a(_0x46385c,new _0x40290a[(_0x24a8cb(0xc0))](),_0x40fa4a,!0x0);_0x209dde[_0x24a8cb(0x1b3)](..._0x191763[_0x24a8cb(0x29c)]),_0x5bc32b[_0x24a8cb(0x1b3)](..._0x191763[_0x24a8cb(0x36b)]);const _0x5295e5={'cellInfo':_0x40fa4a,'view':_0x1dbd89,'isEmpty':_0x164fb6};if(!await _0x46385c[_0x24a8cb(0x257)](_0x4b10df[_0x24a8cb(0x206)])[_0x24a8cb(0x1ed)][_0x24a8cb(0x39b)](_0x5d7e40)(!0x0,_0x5295e5))return!0x1;const _0x13c1c9=_0x1b9b8c(_0x46385c,_0x5295e5);_0x209dde['push'](..._0x13c1c9[_0x24a8cb(0x29c)]),_0x5bc32b[_0x24a8cb(0x1b3)](..._0x13c1c9[_0x24a8cb(0x36b)]);}return _0x209dde[_0x24a8cb(0x1b3)]({'id':_0x4a007b['id'],'params':{'unitId':_0x40fa4a[_0x24a8cb(0xbb)],'subUnitId':_0x40fa4a[_0x24a8cb(0x214)],'pivotTableId':_0x24138f,'pivotTableConfig':{'targetCellInfo':_0x40fa4a,'sourceRangeInfo':_0x5cf06c,'fieldsConfig':_0x487db7},'collectionConfig':_0x1be939}}),_0x5bc32b[_0x24a8cb(0x84)]({'id':_0x2b2613['id'],'params':{'unitId':_0x14c47f,'subUnitId':_0x3d00ba,'pivotTableId':_0x24138f}}),_0x22b490['sequenceExecute'](_0x209dde,_0x14e939)&&_0x58379f[_0x24a8cb(0x7e)]({'unitID':_0x14c47f,'undoMutations':_0x5bc32b,'redoMutations':_0x209dde}),!0x0;}},_0x4f3980={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x23b)],'id':_0x3b026f(0xaf),async 'handler'(_0x41c1df,_0x208e23){const _0x20263d=_0x3b026f;if(!_0x208e23)return!0x1;const _0x512f0a=_0x41c1df['get'](_0x22b490[_0x20263d(0x2fe)]),_0x601917=_0x41c1df[_0x20263d(0x257)](_0x4b10df[_0x20263d(0x97)]),_0x56545a=_0x41c1df[_0x20263d(0x257)](_0x22b490['IUndoRedoService']),{pivotTableId:_0x257baf,fieldId:_0x4af9f0,area:_0x5879f5,index:_0x1069d5,unitId:_0xbd2da7,subUnitId:_0xafeea7}=_0x208e23,_0x3f9c10=(await _0x601917[_0x20263d(0x211)]({'unitId':_0xbd2da7,'subUnitId':_0xafeea7,'pivotTableId':_0x257baf,'params':{'type':_0x5ab7c7[_0x20263d(0x338)],'movePivotField':{'fieldId':_0x4af9f0,'area':_0x5879f5,'index':_0x1069d5}}}))[_0x20263d(0x356)]['movePivotField'];if(!_0x3f9c10)return!0x1;const {changesets:_0x251eb5,view:_0x151065,isEmpty:_0x272dcc,pivotTableConfig:_0x127f52}=_0x3f9c10,_0x41ced8=_0x127f52[_0x20263d(0x157)],_0x15bd84=new _0x40290a[(_0x20263d(0xc0))]();_0x15bd84[_0x20263d(0x32b)](_0x151065);const _0x2ff584={'cellInfo':_0x41ced8,'view':_0x15bd84,'isEmpty':_0x272dcc};if(!await _0x41c1df[_0x20263d(0x257)](_0x4b10df['SheetsPivotTableService'])[_0x20263d(0x1ed)]['fetchThroughAsyncInterceptors'](_0x5d7e40)(!0x0,_0x2ff584))return!0x1;const _0x304d06=_0x27400a(_0x41c1df,_0x15bd84,_0x41ced8,_0x272dcc),_0x36beea=_0x1b9b8c(_0x41c1df,_0x2ff584),{redos:_0x34c13d,undos:_0x50b18d}=_0x1f19e1(_0x512f0a,{'pivotTableId':_0x257baf,'unitId':_0xbd2da7,'subUnitId':_0xafeea7},_0x251eb5);return _0x22b490['sequenceExecute']([..._0x304d06[_0x20263d(0x29c)],..._0x36beea[_0x20263d(0x29c)],..._0x34c13d],_0x512f0a),_0x56545a[_0x20263d(0x7e)]({'unitID':_0xbd2da7,'redoMutations':[..._0x304d06['redos'],..._0x36beea['redos'],..._0x34c13d],'undoMutations':[..._0x304d06[_0x20263d(0x36b)],..._0x36beea[_0x20263d(0x36b)],..._0x50b18d]}),!0x0;}},_0xe7cd56={'type':_0x22b490['CommandType'][_0x3b026f(0x23b)],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x26d171,_0x206a53){const _0x134063=_0x3b026f;var _0x40abf9;if(!_0x206a53)return!0x1;const _0x38de44=_0x26d171['get'](_0x22b490[_0x134063(0x276)]),_0x6f8723=_0x2c7bf0['getSheetCommandTarget'](_0x38de44);if(!_0x6f8723)return!0x1;const {unitId:_0x176126,subUnitId:_0x4af3ca,workbook:_0x4a3c66}=_0x6f8723,{row:_0x7b79b1,col:_0x5ee1f9}=_0x206a53,_0x351a7a=_0x26d171[_0x134063(0x257)](_0x4b10df[_0x134063(0x2f6)]),_0x5b35e9=_0x351a7a[_0x134063(0xc3)](_0x176126,_0x4af3ca,_0x7b79b1,_0x5ee1f9);if(!_0x5b35e9)return!0x1;const _0x1935d2=(_0x40abf9=_0x351a7a[_0x134063(0x310)](_0x176126,_0x4af3ca,_0x5b35e9))==null?void 0x0:_0x40abf9[_0x134063(0x277)];if(!_0x1935d2)return!0x1;const _0x510547=_0x26d171[_0x134063(0x257)](_0x4b10df[_0x134063(0x125)])['getPivotTableConfig'](_0x176126,_0x4af3ca,_0x5b35e9);if(!_0x510547)return!0x1;const {rowInfo:_0x1c4be5,colInfo:_0x18a273}=_0x1935d2,_0x2a9f25=_0x1c4be5[_0x7b79b1][_0x134063(0x1e2)],_0x5e9f40=_0x18a273[_0x5ee1f9]['paths'],_0x76406b=_0x1c4be5[_0x7b79b1][_0x134063(0x251)],_0x519d76=_0x18a273[_0x5ee1f9][_0x134063(0x251)],_0xaa4ac7=_0x2a9f25[_0x134063(0xf7)](_0x5e9f40),_0x291dbf=_0x510547[_0x134063(0xc9)]['rowFields'][_0x134063(0x253)](0x0,_0x76406b),_0x55db39=_0x510547[_0x134063(0xc9)]['columnFields']['slice'](0x0,_0x519d76),_0x1877af=_0x291dbf['concat'](_0x55db39),_0x2c197a=_0xaa4ac7['map']((_0xf5311a,_0x52c5c8)=>[_0xf5311a,_0x1877af[_0x52c5c8]]),_0x5df240=(await _0x26d171[_0x134063(0x257)](_0x4b10df[_0x134063(0x97)])[_0x134063(0x211)]({'unitId':_0x176126,'subUnitId':_0x4af3ca,'pivotTableId':_0x5b35e9,'params':{'type':_0x5ab7c7[_0x134063(0x35f)],'drillDown':{'tuple':_0x2c197a}}}))[_0x134063(0x356)][_0x134063(0x74)];if(!_0x5df240)return!0x1;const {indexes:_0x5e3798,range:_0x1f87ce,sourceUnitId:_0x54ea63,sourceSubUnitId:_0x12ec66,formatMap:_0x455a14}=_0x5df240,{startRow:_0x4a6ca8,endRow:_0x1399a7,startColumn:_0x519255,endColumn:_0x51efcd}=_0x1f87ce,_0x507662=new _0x22b490[(_0x134063(0x398))](),_0x4313ed=_0x1399a7-_0x4a6ca8,_0x5444c6=_0x51efcd-_0x519255,_0x234825={},_0x1d525f=_0x2c7bf0[_0x134063(0x28a)](_0x38de44,{'unitId':_0x54ea63,'subUnitId':_0x12ec66});if(!_0x1d525f)return!0x1;const _0x30a1db=_0x27e686['colStyle'],_0x652862=_0x27e686[_0x134063(0x2dc)],_0x900111=_0x27e686['subTotalStyle'],_0x1bb95e=_0x4a3c66['getStyles']()[_0x134063(0x194)](_0x30a1db),_0x3dc767=_0x4a3c66[_0x134063(0x280)]()[_0x134063(0x194)](_0x652862),_0x3b6ed5=_0x4a3c66[_0x134063(0x280)]()[_0x134063(0x194)](_0x900111),{worksheet:_0x5adf71}=_0x1d525f;let _0x4012e8=0x0;const _0x5418b0=0x1;_0x5e3798['forEach'](_0x5d4388=>{const _0x204775=_0x134063;for(let _0x2e693e=0x0;_0x2e693e<=_0x51efcd-_0x519255;_0x2e693e++)_0x507662[_0x204775(0x194)](_0x4012e8,_0x2e693e,_0x5adf71[_0x204775(0x83)](_0x5d4388+_0x1f87ce[_0x204775(0x284)]+_0x5418b0,_0x2e693e));_0x4012e8++;});for(let _0x48dde2=_0x519255;_0x48dde2<=_0x51efcd;_0x48dde2++){const _0x468485=_0x5adf71[_0x134063(0x83)](_0x4a6ca8,_0x48dde2);_0x234825[_0x4a6ca8]||(_0x234825[_0x4a6ca8]={}),_0x234825[_0x4a6ca8][_0x48dde2]={..._0x468485,'s':_0x1bb95e};}let _0x213f33=0x1;const _0x49029b={},_0x77853f={};_0x507662[_0x134063(0x1d8)]((_0x1d5258,_0x35b580)=>{const _0x3f36d5=_0x134063;_0x35b580[_0x3f36d5(0x38c)](_0x2b5c23=>{const _0x1b9af1=_0x3f36d5,_0x3add6c=_0x507662[_0x1b9af1(0xc2)](_0x1d5258,_0x2b5c23);if(_0x234825[_0x213f33]||(_0x234825[_0x213f33]={}),_0x234825[_0x213f33][_0x2b5c23]={..._0x3add6c,'s':_0x213f33%0x2===0x0?_0x3b6ed5:_0x3dc767},_0x455a14[_0x2b5c23]&&_0x1d5258>=0x0){const _0x5df921=_0x213f33%0x2===0x0;let _0x15804f=_0x5df921?_0x77853f[_0x2b5c23]:_0x49029b[_0x2b5c23];_0x15804f||(_0x15804f=_0x4a3c66['getStyles']()[_0x1b9af1(0x194)]({..._0x5df921?_0x900111:_0x652862,'n':{'pattern':_0x455a14[_0x2b5c23]}}),_0x5df921?_0x77853f[_0x2b5c23]=_0x15804f:_0x49029b[_0x2b5c23]=_0x15804f),_0x234825[_0x213f33][_0x2b5c23]['s']=_0x15804f;}}),_0x213f33++;});const _0x1c99a3=new _0x22b490['ObjectMatrix'](_0x234825),_0xe0ae27={};_0x1c99a3[_0x134063(0x17f)]((_0x161d32,_0x39250a,_0x5b229e)=>{_0xe0ae27[_0x161d32]||(_0xe0ae27[_0x161d32]={}),_0xe0ae27[_0x161d32][_0x39250a]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x46cef6=[],_0x152eab=[],_0x4531df=_0x4a3c66[_0x134063(0xca)]()['length'],_0x429fc9=_0x22b490[_0x134063(0x13d)]({'rowCount':Math[_0x134063(0x178)](_0x22b490[_0x134063(0x262)],_0x4313ed+0xa),'columnCount':Math[_0x134063(0x178)](_0x22b490[_0x134063(0xb7)],_0x5444c6+0x5)}),_0x432d82=_0x26d171[_0x134063(0x257)](_0x22b490['LocaleService']);_0x429fc9['id']=_0x22b490[_0x134063(0xe4)](),_0x429fc9[_0x134063(0x181)]=_0x4a3c66[_0x134063(0xfb)](''+_0x432d82['t']('sheets.tabs.sheet'));const _0x58ba28={'index':_0x4531df,'sheet':_0x429fc9,'unitId':_0x176126},_0x29e444=_0x2c7bf0['InsertSheetUndoMutationFactory'](_0x26d171,_0x58ba28);_0x152eab[_0x134063(0x1b3)]({'id':_0x2c7bf0[_0x134063(0x292)]['id'],'params':_0x58ba28}),_0x46cef6[_0x134063(0x1b3)]({'id':_0x2c7bf0[_0x134063(0x30c)]['id'],'params':_0x29e444}),_0x152eab[_0x134063(0x1b3)]({'id':_0x2c7bf0['SetRangeValuesMutation']['id'],'params':{'unitId':_0x176126,'subUnitId':_0x429fc9['id'],'cellValue':_0x234825}}),_0x46cef6[_0x134063(0x84)]({'id':_0x2c7bf0['SetRangeValuesMutation']['id'],'params':{'unitId':_0x176126,'subUnitId':_0x429fc9['id'],'cellValue':_0xe0ae27}});const _0x379b76={'startRow':0x0,'startColumn':0x0,'endRow':_0x213f33-0x1,'endColumn':_0x51efcd};_0x152eab[_0x134063(0x1b3)]({'id':_0x480a8a['SetSheetsFilterRangeMutation']['id'],'params':{'unitId':_0x176126,'subUnitId':_0x429fc9['id'],'range':_0x379b76}}),_0x46cef6[_0x134063(0x84)]({'id':_0x480a8a[_0x134063(0x237)]['id'],'params':{'unitId':_0x176126,'subUnitId':_0x429fc9['id']}});const _0x209271=_0x26d171[_0x134063(0x257)](_0x22b490[_0x134063(0x2fe)]);return _0x22b490[_0x134063(0x1a0)](_0x152eab,_0x209271)&&_0x26d171[_0x134063(0x257)](_0x22b490[_0x134063(0x163)])[_0x134063(0x7e)]({'unitID':_0x176126,'undoMutations':_0x46cef6,'redoMutations':_0x152eab}),!0x0;}},_0x281f45={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x23b)],'id':_0x3b026f(0x311),async 'handler'(_0xe18e5d,_0x24339b){const _0x55877d=_0x3b026f;if(!_0x24339b)return!0x1;const _0x2c2718=_0xe18e5d['get'](_0x22b490[_0x55877d(0x2fe)]),_0xf0dbd4=_0xe18e5d[_0x55877d(0x257)](_0x4b10df[_0x55877d(0x97)]),_0x15f51f=_0xe18e5d['get'](_0x22b490[_0x55877d(0x163)]),{pivotTableId:_0x3e4140,fieldIds:_0x52ddc4,unitId:_0x2d998e,subUnitId:_0x87ab34}=_0x24339b,_0x3c0edd=(await _0xf0dbd4[_0x55877d(0x211)]({'unitId':_0x2d998e,'subUnitId':_0x87ab34,'pivotTableId':_0x3e4140,'params':{'type':_0x5ab7c7[_0x55877d(0x7c)],'removePivotField':{'fieldIds':_0x52ddc4}}}))[_0x55877d(0x356)][_0x55877d(0xb5)];if(!_0x3c0edd)return!0x1;const {view:_0x292730,changesets:_0x233bb1,isEmpty:_0x1a8361,pivotTableConfig:_0x5aed02}=_0x3c0edd,_0x478213=_0x5aed02[_0x55877d(0x157)],_0x198173=new _0x40290a['PivotView']();_0x198173[_0x55877d(0x32b)](_0x292730);const _0x51753f={'cellInfo':_0x478213,'view':_0x198173,'isEmpty':_0x1a8361};if(!await _0xe18e5d[_0x55877d(0x257)](_0x4b10df[_0x55877d(0x206)])['asyncInterceptor'][_0x55877d(0x39b)](_0x5d7e40)(!0x0,_0x51753f))return!0x1;const _0x41ea2d=_0x27400a(_0xe18e5d,_0x198173,_0x478213,_0x1a8361),_0x3e02ac=_0x1b9b8c(_0xe18e5d,_0x51753f),{redos:_0x3a5576,undos:_0x24d01a}=_0x1f19e1(_0x2c2718,{'pivotTableId':_0x3e4140,'unitId':_0x2d998e,'subUnitId':_0x87ab34},_0x233bb1);return _0x22b490[_0x55877d(0x1a0)]([..._0x41ea2d[_0x55877d(0x29c)],..._0x3e02ac[_0x55877d(0x29c)],..._0x3a5576],_0x2c2718),_0x15f51f[_0x55877d(0x7e)]({'unitID':_0x2d998e,'redoMutations':[..._0x41ea2d[_0x55877d(0x29c)],..._0x3e02ac[_0x55877d(0x29c)],..._0x3a5576],'undoMutations':[..._0x41ea2d[_0x55877d(0x36b)],..._0x3e02ac[_0x55877d(0x36b)],..._0x24d01a]}),!0x0;}},_0x27d6e0={'type':_0x22b490['CommandType'][_0x3b026f(0x23b)],'id':_0x3b026f(0xb9),async 'handler'(_0x1b74dd,_0x51588c){const _0x51d2f9=_0x3b026f;var _0x4a947c;const _0x117fa1=_0x1b74dd[_0x51d2f9(0x257)](_0x22b490[_0x51d2f9(0x2fe)]),_0x26e984=_0x1b74dd[_0x51d2f9(0x257)](_0x4b10df['SheetsPivotRPCService']),_0x45f922=_0x1b74dd['get'](_0x4b10df[_0x51d2f9(0x2f6)]),_0x15cb3b=_0x1b74dd['get'](_0x22b490['IUniverInstanceService']),_0x2050a4=_0x1b74dd[_0x51d2f9(0x257)](_0x22b490[_0x51d2f9(0x163)]);if(!_0x51588c)return!0x1;const {unitId:_0x33be5e,subUnitId:_0x552377,row:_0x1f1aff,col:_0x27d7e9,collapse:_0xb43077}=_0x51588c,_0xfd08d2=_0x15cb3b['getUnit'](_0x33be5e);if(!_0xfd08d2||!_0xfd08d2[_0x51d2f9(0x36c)](_0x552377))return!0x1;const _0xf4d59c=_0x45f922[_0x51d2f9(0xc3)](_0x33be5e,_0x552377,_0x1f1aff,_0x27d7e9);if(!_0xf4d59c)return!0x1;const _0xcfac7a=_0x45f922[_0x51d2f9(0x310)](_0x33be5e,_0x552377,_0xf4d59c);if(!_0xcfac7a)return!0x1;const _0x40f388=_0x22b490[_0x51d2f9(0x1cc)](_0x1f1aff,_0x27d7e9),{rangesInfo:_0xbcf233,areaInfo:_0x1e3513,headerMap:_0x30a9b3}=_0xcfac7a;if(!_0xbcf233||!_0x1e3513||!_0x30a9b3)return!0x1;const _0x655978=Object[_0x51d2f9(0x226)](_0xbcf233)['find'](_0x343b61=>_0xbcf233[_0x343b61][_0x51d2f9(0x224)](_0x279fad=>_0x22b490[_0x51d2f9(0x36e)]['contains'](_0x279fad,_0x40f388)));let _0x319350;_0x655978===_0x51d2f9(0x223)?_0x319350=_0x30a9b3['rowHeaderMap'][_0x27d7e9]:_0x655978===_0x51d2f9(0x197)&&(_0x319350=_0x30a9b3['colHeaderMap'][_0x1f1aff]);const _0x460146=_0x319350==null?void 0x0:_0x319350[_0x51d2f9(0x355)],_0x36c5ed=(_0x4a947c=_0x45f922[_0x51d2f9(0x11b)](_0x33be5e,_0x552377,_0x1f1aff,_0x27d7e9))==null?void 0x0:_0x4a947c['v'];if(_0x36c5ed==null||!_0xf4d59c||!_0x460146)return!0x1;const _0x5e58f7=await _0x26e984[_0x51d2f9(0x211)]({'unitId':_0x33be5e,'subUnitId':_0x552377,'pivotTableId':_0xf4d59c,'params':{'type':_0x5ab7c7[_0x51d2f9(0xfc)],'setPivotCollapse':{'tableFieldId':_0x460146,'collapse':_0xb43077,'item':_0x36c5ed}}}),_0x4ec083=_0x5e58f7==null?void 0x0:_0x5e58f7['result'][_0x51d2f9(0x354)];if(!_0x4ec083)return!0x1;const {view:_0x5ced1f,pivotTableConfig:_0x261184,isEmpty:_0x4f4b1a,changesets:_0x11a173}=_0x4ec083,_0x1b5c82=new _0x40290a[(_0x51d2f9(0xc0))]();_0x1b5c82[_0x51d2f9(0x32b)](_0x5ced1f);const _0x411b29=_0x261184[_0x51d2f9(0x157)],_0x478d6b={'cellInfo':_0x411b29,'view':_0x1b5c82,'isEmpty':_0x4f4b1a};if(!await _0x1b74dd[_0x51d2f9(0x257)](_0x4b10df[_0x51d2f9(0x206)])['asyncInterceptor'][_0x51d2f9(0x39b)](_0x5d7e40)(!0x0,_0x478d6b))return!0x1;const _0x5cb1dd=_0x27400a(_0x1b74dd,_0x1b5c82,_0x411b29,_0x4f4b1a),_0x3493ce=_0x1b9b8c(_0x1b74dd,_0x478d6b),{redos:_0x5d4db4,undos:_0x142587}=_0x1f19e1(_0x117fa1,{'pivotTableId':_0xf4d59c,'unitId':_0x33be5e,'subUnitId':_0x552377},_0x11a173);return _0x22b490['sequenceExecute']([..._0x5cb1dd[_0x51d2f9(0x29c)],..._0x3493ce[_0x51d2f9(0x29c)],..._0x5d4db4],_0x117fa1),_0x2050a4[_0x51d2f9(0x7e)]({'unitID':_0x33be5e,'redoMutations':[..._0x5cb1dd['redos'],..._0x3493ce[_0x51d2f9(0x29c)],..._0x5d4db4],'undoMutations':[..._0x5cb1dd[_0x51d2f9(0x36b)],..._0x3493ce['undos'],..._0x142587]}),!0x0;}},_0x125e7a={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x23b)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0x16b20d,_0x4d5596){const _0x3420b5=_0x3b026f;if(!_0x4d5596)return!0x1;const _0x4cc97e=_0x16b20d[_0x3420b5(0x257)](_0x22b490[_0x3420b5(0x2fe)]),{pivotTableId:_0x24f3a4,tableFieldId:_0x16e943,items:_0x1641fe,unitId:_0x56f7a5,subUnitId:_0x21ade7,isAll:_0x467f47}=_0x4d5596,_0xea9ba0=_0x16b20d[_0x3420b5(0x257)](_0x4b10df[_0x3420b5(0x97)]),_0x3ba8fd=_0x16b20d['get'](_0x22b490[_0x3420b5(0x163)]),_0x180eb6=(await _0xea9ba0[_0x3420b5(0x211)]({'unitId':_0x56f7a5,'subUnitId':_0x21ade7,'pivotTableId':_0x24f3a4,'params':{'type':_0x5ab7c7['SetPivotFilter'],'setPivotFilter':{'tableFieldId':_0x16e943,'items':_0x1641fe,'isAll':_0x467f47}}}))[_0x3420b5(0x356)][_0x3420b5(0x2cf)];if(!_0x180eb6)return!0x1;const {changesets:_0x214939,pivotTableConfig:_0x14d156,isEmpty:_0x476f30,view:_0xd8b323}=_0x180eb6,_0x5a1199=_0x14d156['targetCellInfo'],_0x492854=new _0x40290a[(_0x3420b5(0xc0))]();_0x492854['formJSON'](_0xd8b323);const _0x10b2e3={'cellInfo':_0x5a1199,'view':_0x492854,'isEmpty':_0x476f30};if(!await _0x16b20d[_0x3420b5(0x257)](_0x4b10df['SheetsPivotTableService'])[_0x3420b5(0x1ed)][_0x3420b5(0x39b)](_0x5d7e40)(!0x0,_0x10b2e3))return!0x1;const _0x5ae4f1=_0x27400a(_0x16b20d,_0x492854,_0x5a1199,_0x476f30),_0x521d48=_0x1b9b8c(_0x16b20d,_0x10b2e3),{undos:_0x21c6fc,redos:_0x2a354c}=_0x1f19e1(_0x4cc97e,{'pivotTableId':_0x24f3a4,'unitId':_0x56f7a5,'subUnitId':_0x21ade7},_0x214939);return _0x22b490[_0x3420b5(0x1a0)]([..._0x5ae4f1[_0x3420b5(0x29c)],..._0x521d48[_0x3420b5(0x29c)],..._0x2a354c],_0x4cc97e),_0x3ba8fd[_0x3420b5(0x7e)]({'unitID':_0x56f7a5,'redoMutations':[..._0x5ae4f1[_0x3420b5(0x29c)],..._0x521d48[_0x3420b5(0x29c)],..._0x2a354c],'undoMutations':[..._0x5ae4f1[_0x3420b5(0x36b)],..._0x521d48[_0x3420b5(0x36b)],..._0x21c6fc]}),!0x0;}},_0x35c66c={'type':_0x22b490[_0x3b026f(0x17b)]['COMMAND'],'id':_0x3b026f(0x198),async 'handler'(_0xe21374,_0x4ed69e){const _0x3a12ba=_0x3b026f;if(!_0x4ed69e)return!0x1;const _0x1649e5=_0xe21374['get'](_0x22b490[_0x3a12ba(0x2fe)]),_0x3d2ff2=_0xe21374[_0x3a12ba(0x257)](_0x22b490[_0x3a12ba(0x163)]),_0x593b36=_0xe21374[_0x3a12ba(0x257)](_0x4b10df[_0x3a12ba(0x97)]),{info:_0x207923,tableFieldId:_0x14a096,pivotTableId:_0x4a779f,unitId:_0x5f4b8a,subUnitId:_0x2ad5ca}=_0x4ed69e,_0x31a798=(await _0x593b36[_0x3a12ba(0x211)]({'unitId':_0x5f4b8a,'subUnitId':_0x2ad5ca,'pivotTableId':_0x4a779f,'params':{'type':_0x5ab7c7[_0x3a12ba(0x2bd)],'setPivotSort':{'tableFieldId':_0x14a096,'info':_0x207923}}}))['result'][_0x3a12ba(0x1fa)];if(!_0x31a798)return!0x1;const {changesets:_0x281d12}=_0x31a798,{redos:_0x531da4,undos:_0x173ebf}=_0x1f19e1(_0x1649e5,{'pivotTableId':_0x4a779f,'unitId':_0x5f4b8a,'subUnitId':_0x2ad5ca},_0x281d12);return _0x22b490[_0x3a12ba(0x1a0)](_0x531da4,_0x1649e5),_0x3d2ff2[_0x3a12ba(0x7e)]({'unitID':_0x5f4b8a,'redoMutations':_0x531da4,'undoMutations':_0x173ebf}),!0x0;}},_0x1c7e24={'type':_0x22b490['CommandType'][_0x3b026f(0x23b)],'id':_0x3b026f(0x19c),async 'handler'(_0x4ebc58,_0x52744c){const _0x501af0=_0x3b026f;if(!_0x52744c)return!0x1;const _0x3693c6=_0x4ebc58[_0x501af0(0x257)](_0x22b490['ICommandService']),_0x3ebfaa=_0x4ebc58[_0x501af0(0x257)](_0x22b490[_0x501af0(0x163)]),_0x1a46b0=_0x4ebc58['get'](_0x4b10df[_0x501af0(0x97)]),{displayName:_0x59376b,subtotalType:_0x27027d,format:_0xd4f3f0,tableFieldId:_0x46cd69,pivotTableId:_0x1b3ecd,unitId:_0x3f3482,subUnitId:_0x1186fd}=_0x52744c,_0x523b4e=(await _0x1a46b0[_0x501af0(0x211)]({'unitId':_0x3f3482,'subUnitId':_0x1186fd,'pivotTableId':_0x1b3ecd,'params':{'type':_0x5ab7c7[_0x501af0(0x207)],'setPivotSetting':{'tableFieldId':_0x46cd69,'displayName':_0x59376b,'subtotalType':_0x27027d,'format':_0xd4f3f0}}}))[_0x501af0(0x356)][_0x501af0(0x384)];if(!_0x523b4e)return!0x1;const {changesets:_0x41235e,view:_0x2407b8,pivotTableConfig:_0x437315,isEmpty:_0x3db876}=_0x523b4e,_0x581f0e=_0x437315[_0x501af0(0x157)],_0x48d875=new _0x40290a[(_0x501af0(0xc0))]();_0x48d875[_0x501af0(0x32b)](_0x2407b8);const _0x54026f={'cellInfo':_0x581f0e,'view':_0x48d875,'isEmpty':_0x3db876};if(!await _0x4ebc58[_0x501af0(0x257)](_0x4b10df[_0x501af0(0x206)])[_0x501af0(0x1ed)][_0x501af0(0x39b)](_0x5d7e40)(!0x0,_0x54026f))return!0x1;const _0x10bf9c=_0x27400a(_0x4ebc58,_0x48d875,_0x581f0e,_0x3db876),_0x5ef1f9=_0x1b9b8c(_0x4ebc58,_0x54026f),{undos:_0x5c12cc,redos:_0x5a601c}=_0x1f19e1(_0x3693c6,{'pivotTableId':_0x1b3ecd,'unitId':_0x3f3482,'subUnitId':_0x1186fd},_0x41235e);return _0x22b490['sequenceExecute']([..._0x10bf9c[_0x501af0(0x29c)],..._0x5ef1f9[_0x501af0(0x29c)],..._0x5a601c],_0x3693c6),_0x3ebfaa[_0x501af0(0x7e)]({'unitID':_0x3f3482,'redoMutations':[..._0x10bf9c[_0x501af0(0x29c)],..._0x5ef1f9[_0x501af0(0x29c)],..._0x5a601c],'undoMutations':[..._0x10bf9c['undos'],..._0x5ef1f9[_0x501af0(0x36b)],..._0x5c12cc]}),!0x0;}},_0x7f7a82={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x23b)],'id':_0x3b026f(0x34c),async 'handler'(_0x20b1c6,_0x3d0393){const _0x5c11b7=_0x3b026f,_0x453dbf=_0x20b1c6[_0x5c11b7(0x257)](_0x22b490[_0x5c11b7(0x2fe)]),_0x2ef461=_0x20b1c6[_0x5c11b7(0x257)](_0x4b10df['SheetsPivotRPCService']),_0xb73443=_0x20b1c6['get'](_0x22b490[_0x5c11b7(0x163)]);if(!_0x3d0393)return!0x1;const {token:_0x2db31e,dataRangeInfo:_0x5e30c1,unitId:_0x552a99,subUnitId:_0x49bfec}=_0x3d0393,_0x3023a5=[],_0x76859e=[],_0x207930=(await _0x2ef461[_0x5c11b7(0x211)]({'unitId':_0x552a99,'subUnitId':_0x49bfec,'pivotTableId':_0x2db31e,'params':{'type':_0x5ab7c7[_0x5c11b7(0xcf)],'updatePivotSource':{'dataRangeInfo':_0x5e30c1,'unitId':_0x552a99,'subUnitId':_0x49bfec}}}))['result'][_0x5c11b7(0xd8)];if(!_0x207930)return!0x1;const {changesets:_0x1e9966,deleteIds:_0x42f178,collectionConfig:_0x47a34d,oldCollectionConfig:_0x39c3c5,view:_0x1ce367,isEmpty:_0x14a6a7,pivotTableConfig:_0x462129}=_0x207930;_0x76859e[_0x5c11b7(0x1b3)]({'id':_0x4b2b87['id'],'params':{'pivotTableId':_0x2db31e,'deleteIds':_0x42f178,'collectionJSON':_0x47a34d,'dataRangeInfo':_0x5e30c1,'unitId':_0x552a99,'subUnitId':_0x49bfec}}),_0x3023a5[_0x5c11b7(0x84)]({'id':_0x4b2b87['id'],'params':{'pivotTableId':_0x2db31e,'deleteIds':[],'collectionJSON':_0x39c3c5,'dataRangeInfo':_0x462129['sourceRangeInfo'],'unitId':_0x552a99,'subUnitId':_0x49bfec}});const _0x3f3809=_0x462129[_0x5c11b7(0x157)],_0x2e2935=new _0x40290a[(_0x5c11b7(0xc0))]();_0x2e2935[_0x5c11b7(0x32b)](_0x1ce367);const _0x1ee1c0={'cellInfo':_0x3f3809,'view':_0x2e2935,'isEmpty':_0x14a6a7};if(!await _0x20b1c6[_0x5c11b7(0x257)](_0x4b10df[_0x5c11b7(0x206)])[_0x5c11b7(0x1ed)][_0x5c11b7(0x39b)](_0x5d7e40)(!0x0,_0x1ee1c0))return!0x1;const _0x345b9d=_0x27400a(_0x20b1c6,_0x2e2935,_0x3f3809,_0x14a6a7),_0x110000=_0x1b9b8c(_0x20b1c6,_0x1ee1c0),{undos:_0x3dacb6,redos:_0x227cae}=_0x1f19e1(_0x453dbf,{'pivotTableId':_0x2db31e,'unitId':_0x552a99,'subUnitId':_0x49bfec},_0x1e9966);return _0x22b490[_0x5c11b7(0x1a0)]([..._0x345b9d[_0x5c11b7(0x29c)],..._0x110000['redos'],..._0x76859e,..._0x3dacb6],_0x453dbf),_0xb73443[_0x5c11b7(0x7e)]({'unitID':_0x552a99,'redoMutations':[..._0x345b9d['redos'],..._0x110000['redos'],..._0x76859e,..._0x3dacb6],'undoMutations':[..._0x345b9d['undos'],..._0x110000['undos'],..._0x3023a5,..._0x227cae]}),!0x0;}},_0x51070e={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x23b)],'id':_0x3b026f(0x371),async 'handler'(_0x16e419,_0x40e4bb){const _0x37ed7b=_0x3b026f;if(!_0x40e4bb)return!0x1;const _0x422932=_0x16e419['get'](_0x22b490[_0x37ed7b(0x2fe)]),_0x24ccc2=_0x16e419['get'](_0x4b10df[_0x37ed7b(0x97)]),_0x5d1052=_0x16e419[_0x37ed7b(0x257)](_0x22b490['IUniverInstanceService']),_0x4a454d=_0x16e419[_0x37ed7b(0x257)](_0x22b490[_0x37ed7b(0x163)]),{pivotTableId:_0x55a648,position:_0x1fea52,index:_0xd88ca5}=_0x40e4bb,_0x3ad6aa=_0x2c7bf0[_0x37ed7b(0x28a)](_0x5d1052);if(!_0x3ad6aa)return!0x1;const {unitId:_0x595c2d,subUnitId:_0x3d70ad}=_0x3ad6aa,_0x369777=(await _0x24ccc2[_0x37ed7b(0x211)]({'unitId':_0x595c2d,'subUnitId':_0x3d70ad,'pivotTableId':_0x55a648,'params':{'type':_0x5ab7c7['UpdateValuePosition'],'updateValuePosition':{'position':_0x1fea52,'index':_0xd88ca5}}}))[_0x37ed7b(0x356)][_0x37ed7b(0x1fc)];if(!_0x369777)return!0x1;const {changesets:_0x498872,view:_0x1eab05,isEmpty:_0x112a7b,pivotTableConfig:_0x4e6f75}=_0x369777,_0x4e6cee=_0x4e6f75[_0x37ed7b(0x157)],_0x33c17a=new _0x40290a['PivotView']();_0x33c17a[_0x37ed7b(0x32b)](_0x1eab05);const _0x8a1231=_0x16e419['get'](_0x4b10df[_0x37ed7b(0x206)]),_0x315a50={'cellInfo':_0x4e6cee,'view':_0x33c17a,'isEmpty':_0x112a7b};if(!await _0x8a1231[_0x37ed7b(0x1ed)]['fetchThroughAsyncInterceptors'](_0x5d7e40)(!0x0,_0x315a50))return!0x1;const _0x42deab=_0x27400a(_0x16e419,_0x33c17a,_0x4e6cee,_0x112a7b),_0x2a7558=_0x1b9b8c(_0x16e419,_0x315a50),{undos:_0x5c9e12,redos:_0x50007a}=_0x1f19e1(_0x422932,{'pivotTableId':_0x55a648,'unitId':_0x595c2d,'subUnitId':_0x3d70ad},_0x498872);return _0x22b490[_0x37ed7b(0x1a0)]([..._0x42deab[_0x37ed7b(0x29c)],..._0x2a7558[_0x37ed7b(0x29c)],..._0x50007a],_0x422932),_0x4a454d[_0x37ed7b(0x7e)]({'unitID':_0x595c2d,'redoMutations':[..._0x42deab[_0x37ed7b(0x29c)],..._0x2a7558[_0x37ed7b(0x29c)],..._0x50007a],'undoMutations':[..._0x42deab[_0x37ed7b(0x36b)],..._0x2a7558['undos'],..._0x5c9e12]}),!0x0;}},_0xd82ba8={'type':_0x22b490['CommandType'][_0x3b026f(0x23b)],'id':_0x3b026f(0x274),'handler':(_0x515464,_0x5587ca)=>{const _0x84eddb=_0x3b026f,_0x4dd174=_0x515464['get'](_0x22b490['ICommandService']),_0x43a4e3=_0x515464[_0x84eddb(0x257)](_0x22b490[_0x84eddb(0x163)]),_0x56123d=_0x515464[_0x84eddb(0x257)](_0x4b10df[_0x84eddb(0x125)]),_0x219559=_0x515464[_0x84eddb(0x257)](_0x22b490[_0x84eddb(0x276)]);if(!_0x5587ca)return!0x1;const _0x39f565=_0x2c7bf0[_0x84eddb(0x28a)](_0x219559);if(!_0x39f565)return!0x1;const {unitId:_0x1c0c2e,subUnitId:_0xb995f0,workbook:_0x565707}=_0x39f565,_0x5531a3=_0x56123d[_0x84eddb(0x26f)](_0x5587ca[_0x84eddb(0x300)][_0x84eddb(0xbb)],_0x5587ca[_0x84eddb(0x300)][_0x84eddb(0x214)],_0x5587ca[_0x84eddb(0x2b7)]);if(!_0x5531a3)return!0x1;const _0x21d5ea=_0x565707[_0x84eddb(0x36c)](_0x5587ca[_0x84eddb(0x157)][_0x84eddb(0x214)]);if(!_0x21d5ea)throw new Error(_0x84eddb(0x109));const _0x57d19a=_0x21d5ea['getRowCount'](),_0x2d5de1=_0x21d5ea['getColumnCount']();if(_0x5587ca[_0x84eddb(0x157)][_0x84eddb(0x2e2)]>_0x57d19a||_0x5587ca['targetCellInfo'][_0x84eddb(0x185)]>_0x2d5de1)throw new Error(_0x84eddb(0x2e4));const _0x2525bd=[{'id':_0x2b9b15['id'],'params':{'unitId':_0x1c0c2e,'subUnitId':_0x5587ca[_0x84eddb(0x157)][_0x84eddb(0x214)],'pivotTableId':_0x5587ca[_0x84eddb(0x2b7)],'targetCellPosition':{'row':_0x5587ca[_0x84eddb(0x157)][_0x84eddb(0x2e2)],'col':_0x5587ca[_0x84eddb(0x157)][_0x84eddb(0x185)]}}}],_0x500ca2=[{'id':_0x2b9b15['id'],'params':{'unitId':_0x1c0c2e,'subUnitId':_0xb995f0,'pivotTableId':_0x5587ca['pivotTableId'],'targetCellPosition':{'row':_0x5531a3['targetCellInfo'][_0x84eddb(0x2e2)],'col':_0x5531a3[_0x84eddb(0x157)][_0x84eddb(0x185)]}}}];return _0x22b490[_0x84eddb(0x1a0)](_0x2525bd,_0x4dd174)&&_0x43a4e3[_0x84eddb(0x7e)]({'unitID':_0x1c0c2e,'undoMutations':_0x500ca2,'redoMutations':_0x2525bd}),!0x0;}},_0x1a2f00={'type':_0x22b490[_0x3b026f(0x17b)]['COMMAND'],'id':'sheet.command.set-pivot-value-filter',async 'handler'(_0x5d18c2,_0x56f585){const _0x31a21f=_0x3b026f;if(!_0x56f585)return!0x1;const _0x1e9fc7=_0x5d18c2[_0x31a21f(0x257)](_0x22b490[_0x31a21f(0x2fe)]),{pivotTableId:_0x54c7b1,fieldId:_0x50551e,valueFilterInfo:_0x85631a,unitId:_0x2ab964,subUnitId:_0x285558}=_0x56f585,_0x5bc94b=_0x5d18c2[_0x31a21f(0x257)](_0x4b10df['SheetsPivotRPCService']),_0x527678=_0x5d18c2[_0x31a21f(0x257)](_0x22b490[_0x31a21f(0x163)]),_0xd66b03=(await _0x5bc94b[_0x31a21f(0x211)]({'unitId':_0x2ab964,'subUnitId':_0x285558,'pivotTableId':_0x54c7b1,'params':{'type':_0x5ab7c7[_0x31a21f(0x86)],'setValuePivotFilter':{'tableFieldId':_0x50551e,'filterInfo':_0x85631a}}}))[_0x31a21f(0x356)][_0x31a21f(0x16c)];if(!_0xd66b03)return!0x1;const {changesets:_0x1534b4,pivotTableConfig:_0x283405,isEmpty:_0x8e4d39,view:_0x5d2707}=_0xd66b03,_0x34ed86=_0x283405[_0x31a21f(0x157)],_0x1e91df=new _0x40290a[(_0x31a21f(0xc0))]();_0x1e91df['formJSON'](_0x5d2707);const _0x2c1383={'cellInfo':_0x34ed86,'view':_0x1e91df,'isEmpty':_0x8e4d39};if(!await _0x5d18c2[_0x31a21f(0x257)](_0x4b10df[_0x31a21f(0x206)])[_0x31a21f(0x1ed)][_0x31a21f(0x39b)](_0x5d7e40)(!0x0,_0x2c1383))return!0x1;const _0x53c823=_0x27400a(_0x5d18c2,_0x1e91df,_0x34ed86,_0x8e4d39),_0x4a4e18=_0x1b9b8c(_0x5d18c2,_0x2c1383),{undos:_0x3a9737,redos:_0x10a577}=_0x1f19e1(_0x1e9fc7,{'pivotTableId':_0x54c7b1,'unitId':_0x2ab964,'subUnitId':_0x285558},_0x1534b4);return _0x22b490[_0x31a21f(0x1a0)]([..._0x53c823['redos'],..._0x4a4e18[_0x31a21f(0x29c)],..._0x10a577],_0x1e9fc7),_0x527678[_0x31a21f(0x7e)]({'unitID':_0x2ab964,'redoMutations':[..._0x53c823[_0x31a21f(0x29c)],..._0x4a4e18[_0x31a21f(0x29c)],..._0x10a577],'undoMutations':[..._0x53c823[_0x31a21f(0x36b)],..._0x4a4e18[_0x31a21f(0x36b)],..._0x3a9737]}),!0x0;}},_0x59efea={'type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x23b)],'id':'sheet.command.set-pivot-fields-config',async 'handler'(_0x8e85ce,_0x1c5135){const _0x1cc70c=_0x3b026f;if(!_0x1c5135)return!0x1;const _0x110bbc=_0x8e85ce[_0x1cc70c(0x257)](_0x22b490[_0x1cc70c(0x2fe)]),_0x35182e=_0x8e85ce[_0x1cc70c(0x257)](_0x22b490['IUndoRedoService']),_0x2e5ed4=_0x8e85ce[_0x1cc70c(0x257)](_0x4b10df[_0x1cc70c(0x97)]),{pivotTableConfig:_0x2f897f,pivotTableId:_0xf259eb,unitId:_0x35b411,subUnitId:_0x202798}=_0x1c5135,_0x643081=(await _0x2e5ed4[_0x1cc70c(0x211)]({'unitId':_0x35b411,'subUnitId':_0x202798,'pivotTableId':_0xf259eb,'params':{'type':_0x5ab7c7[_0x1cc70c(0x373)],'setPivotTableConfig':{'pivotTableId':_0xf259eb,'pivotTableConfig':_0x2f897f}}}))[_0x1cc70c(0x356)]['setPivotTableConfig'];if(!_0x643081)return!0x1;const {changesets:_0x5a3375}=_0x643081,{redos:_0x3e4de5,undos:_0x326fb0}=_0x1f19e1(_0x110bbc,{'pivotTableId':_0xf259eb,'unitId':_0x35b411,'subUnitId':_0x202798},_0x5a3375);return _0x22b490['sequenceExecute'](_0x3e4de5,_0x110bbc),_0x35182e[_0x1cc70c(0x7e)]({'unitID':_0x35b411,'redoMutations':_0x3e4de5,'undoMutations':_0x326fb0}),!0x0;}},_0x502568={'type':_0x22b490['CommandType']['COMMAND'],'id':_0x3b026f(0xf9),async 'handler'(_0xc5d91a,_0x5c6f77){const _0x4a0505=_0x3b026f;if(!_0x5c6f77)return!0x1;const _0x3379e7=_0xc5d91a['get'](_0x22b490[_0x4a0505(0x2fe)]),_0x3c4594=_0xc5d91a['get'](_0x22b490[_0x4a0505(0x163)]),_0x5b7cbb=_0xc5d91a['get'](_0x4b10df[_0x4a0505(0x97)]),{resetArea:_0x35ce00,pivotTableId:_0x5b6fc4,unitId:_0x4316f3,subUnitId:_0x9c4ac1}=_0x5c6f77,_0x4e0337=(await _0x5b7cbb[_0x4a0505(0x211)]({'unitId':_0x4316f3,'subUnitId':_0x9c4ac1,'pivotTableId':_0x5b6fc4,'params':{'type':_0x5ab7c7['ResetPivotTable'],'resetPivotTable':{'pivotTableId':_0x5b6fc4,'resetArea':_0x35ce00}}}))[_0x4a0505(0x356)][_0x4a0505(0x24e)];if(!_0x4e0337)return!0x1;const {changesets:_0x4e101d}=_0x4e0337,{redos:_0x13e798,undos:_0x7e2489}=_0x1f19e1(_0x3379e7,{'pivotTableId':_0x5b6fc4,'unitId':_0x4316f3,'subUnitId':_0x9c4ac1},_0x4e101d);return _0x22b490[_0x4a0505(0x1a0)](_0x13e798,_0x3379e7),_0x3c4594[_0x4a0505(0x7e)]({'unitID':_0x4316f3,'redoMutations':_0x13e798,'undoMutations':_0x7e2489}),!0x0;}},_0x4f1906={'id':'sheet.mutation.update-date-group','type':_0x22b490[_0x3b026f(0x17b)][_0x3b026f(0x273)],'handler':(_0x2bc5ef,_0x447ade)=>{const _0x18431f=_0x3b026f;if(!_0x447ade)return!0x1;if(!!_0x2bc5ef[_0x18431f(0x257)](_0x22b490[_0x18431f(0x145)])[_0x18431f(0x9e)](_0x1ca274))return!0x0;const {unitId:_0x3a69fd,subUnitId:_0xbdb781,pivotTableId:_0x530f65,tableFieldId:_0x4ece4f,dateType:_0x166c47}=_0x447ade,_0x53e296=_0x2bc5ef['get'](_0x4b10df[_0x18431f(0x19b)]),_0x2ef8e7=_0x53e296[_0x18431f(0xcc)](_0x530f65);if(!_0x2ef8e7)return!0x1;const _0x5a7e24=_0x2ef8e7[_0x18431f(0x31f)](_0x4ece4f);if(!_0x5a7e24)return!0x1;const _0x1460ae=_0x5a7e24[_0x18431f(0x124)](),_0x49b8d8=_0x2ef8e7[_0x18431f(0xc8)](_0x1460ae),_0x456b01=(_0x49b8d8==null?void 0x0:_0x49b8d8['getName']())+'\x20'+_0x560d71(_0x2bc5ef,_0x166c47);_0x53e296[_0x18431f(0x14d)](_0x3a69fd,_0x530f65)[_0x18431f(0xb3)](_0x5a7e24['id'],_0x456b01);const _0x5717cc=_0x2ef8e7[_0x18431f(0x350)](_0x4ece4f);if(!_0x5717cc)return!0x1;_0x2ef8e7[_0x18431f(0x259)](_0x5717cc[_0x18431f(0x35a)](),_0x456b01),_0x5a7e24[_0x18431f(0xdd)](_0x166c47);const _0x1860e0=_0x53e296[_0x18431f(0x26f)](_0x3a69fd,_0xbdb781,_0x530f65);return _0x53e296['addDirtyPivotTable']({'unitId':_0x3a69fd,'subUnitId':_0xbdb781,'token':_0x530f65,'type':_0x1fd0cc['Set'],'pivotConfig':_0x1860e0}),!0x0;}},_0x3b34be={'id':_0x3b026f(0x2c1),'type':_0x22b490[_0x3b026f(0x17b)]['COMMAND'],'handler':(_0x336e4f,_0x16bd42)=>{const _0x38ca2c=_0x3b026f;if(!_0x16bd42)return!0x1;const _0x36c7d0=_0x336e4f['get'](_0x22b490[_0x38ca2c(0x163)]),{unitId:_0x8b810c,subUnitId:_0x454631,pivotTableId:_0x48c77e,tableFieldId:_0x447c36}=_0x16bd42,_0x35e753=[],_0x2bd2bb=[],_0x3e2c55=_0x336e4f[_0x38ca2c(0x257)](_0x4b10df[_0x38ca2c(0x125)]),_0x162785=_0x3e2c55['getCollection'](_0x8b810c,_0x48c77e),_0x19bd1d=_0x3e2c55[_0x38ca2c(0x26f)](_0x8b810c,_0x454631,_0x48c77e);if(!(_0x19bd1d!=null&&_0x19bd1d[_0x38ca2c(0xc9)][_0x38ca2c(0x20c)]))return!0x1;const _0x55cd3f=Object[_0x38ca2c(0x248)](_0x19bd1d[_0x38ca2c(0xc9)][_0x38ca2c(0x20c)])['find'](_0x43b3d0=>_0x43b3d0['id']===_0x447c36);if(!_0x55cd3f)return!0x1;const _0x415371=_0x55cd3f[_0x38ca2c(0x10c)];if(!(_0x162785!=null&&_0x162785['fields']))return!0x1;const _0x1043a6=Object[_0x38ca2c(0x248)](_0x162785==null?void 0x0:_0x162785[_0x38ca2c(0x113)])[_0x38ca2c(0x219)](_0x28f7dc=>_0x28f7dc['id']===_0x415371);if(!_0x1043a6)return!0x1;_0x40290a[_0x38ca2c(0xf8)](_0x1043a6)&&_0x35e753[_0x38ca2c(0x1b3)]({'id':_0x4f1906['id'],'params':{..._0x16bd42,'dateType':_0x1043a6[_0x38ca2c(0x34d)]}}),_0x2bd2bb['push']({'id':_0x4f1906['id'],'params':{..._0x16bd42}});const _0x353725=_0x336e4f[_0x38ca2c(0x257)](_0x22b490[_0x38ca2c(0x2fe)]);return _0x22b490[_0x38ca2c(0x1a0)](_0x2bd2bb,_0x353725)&&_0x36c7d0['pushUndoRedo']({'unitID':_0x8b810c,'undoMutations':_0x35e753,'redoMutations':_0x2bd2bb}),!0x0;}};var _0xaf2874=Object[_0x3b026f(0xd7)],_0x43e415=(_0xed2188,_0x3f1535,_0x1a3407,_0x9f21be)=>{const _0x451667=_0x3b026f;for(var _0x5017c9=_0x9f21be>0x1?void 0x0:_0x9f21be?_0xaf2874(_0x3f1535,_0x1a3407):_0x3f1535,_0x568d6d=_0xed2188[_0x451667(0x28e)]-0x1,_0x3112df;_0x568d6d>=0x0;_0x568d6d--)(_0x3112df=_0xed2188[_0x568d6d])&&(_0x5017c9=_0x3112df(_0x5017c9)||_0x5017c9);return _0x5017c9;},_0x46d7e4=(_0x536511,_0x148009)=>(_0x102289,_0x337c59)=>_0x148009(_0x102289,_0x337c59,_0x536511);const _0x293030=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x2d3bad=(_0x1a6754,_0x5c3617,_0x56997f)=>{const _0x4a09a4=_0x3b026f,_0x2e20c5=_0x1a6754[_0x4a09a4(0xbf)];_0x1a6754[_0x4a09a4(0x31d)](_0x534ecc=>{const _0x1113e2=_0x4a09a4,_0x5d4250=_0x534ecc['getId'](),_0x27b02c=_0x534ecc[_0x1113e2(0x204)](),_0x4c880a=_0x534ecc['getSourceName'](),_0x6fbe73=_0x534ecc[_0x1113e2(0x16a)]();_0x5c3617[_0x27b02c]&&_0x5c3617[_0x27b02c]===_0x6fbe73&&_0x4c880a===_0x6fbe73&&(_0x1a6754['renameField'](_0x5d4250,_0x2e20c5[_0x1113e2(0x16a)](_0x27b02c)),_0x534ecc[_0x1113e2(0x13f)](_0x2e20c5[_0x1113e2(0x16a)](_0x27b02c)));}),_0x1a6754[_0x4a09a4(0x353)](_0x40290a[_0x4a09a4(0x380)][_0x4a09a4(0x13e)],_0x35d455=>{const _0x168055=_0x4a09a4,_0x1cc42b=_0x35d455[_0x168055(0x35a)](),_0x128d53=_0x35d455[_0x168055(0x204)](),_0x521378=_0x35d455[_0x168055(0x2d2)](),_0x3d4c04=_0x35d455['getDisplayName'](),_0x31eafe=_0x35d455['getSubtotal'](),_0xc2ee57=_0x56997f(_0x521378,_0x31eafe);_0x5c3617[_0x128d53]&&_0x5c3617[_0x128d53]===_0x521378&&_0xc2ee57===_0x3d4c04&&(_0x1a6754['renameField'](_0x1cc42b,_0x56997f(_0x2e20c5[_0x168055(0x16a)](_0x128d53),_0x31eafe)),_0x35d455['setSourceName'](_0x2e20c5[_0x168055(0x16a)](_0x128d53)));});},_0x1ccb8f=(_0xf76641,_0x23a8d1,_0x4acbb1)=>{const _0x22af84=_0x3b026f;var _0x21c2b1,_0x5992f5;const {arrayFormulaCellData:_0x9db06d,unitData:_0x1e3165}=_0x23a8d1,{unitId:_0x59830e,subUnitId:_0x1bdd26}=_0x4acbb1,_0x11cb5c=_0x4acbb1[_0x22af84(0x12d)],{startColumn:_0xf92f43,endColumn:_0x473c68}=_0x11cb5c,_0xc45e99=(_0x21c2b1=_0x9db06d==null?void 0x0:_0x9db06d[_0x59830e])==null?void 0x0:_0x21c2b1[_0x1bdd26],_0x25862a=(_0x5992f5=_0x1e3165==null?void 0x0:_0x1e3165[_0x59830e])==null?void 0x0:_0x5992f5[_0x1bdd26],_0x3c6e7b=new Set(),_0x123315=_0x473c68-_0xf92f43+0x1,{dirtyRanges:_0x3fad2b}=_0xf76641;if(_0x3fad2b)for(const {range:_0x2091d4,sheetId:_0x520be0,unitId:_0x1db968}of _0x3fad2b){if(_0x520be0!==_0x1bdd26||_0x59830e!==_0x1db968)continue;const _0x3124ef=_0x22b490['Rectangle'][_0x22af84(0xf6)](_0x2091d4,_0x11cb5c);if(_0x3124ef){const {startColumn:_0x5bcea6,endColumn:_0x562b97}=_0x3124ef;for(let _0x2fa1af=_0x5bcea6;_0x2fa1af<=_0x562b97;_0x2fa1af++)_0x3c6e7b[_0x22af84(0x208)](_0x2fa1af);}}if(_0x3c6e7b['size']===_0x123315||_0x3c6e7b[_0x22af84(0x15e)]===_0x123315)return Array[_0x22af84(0x2ae)](_0x3c6e7b);if(_0x25862a){const _0x44fd59=_0x25862a[_0x22af84(0x128)](),_0x5816db=Object[_0x22af84(0x226)](_0x44fd59);for(const _0x4810c2 of _0x5816db){const _0x1a1dbb=Number(_0x4810c2),_0x14866a=_0x44fd59[_0x1a1dbb];if(_0x3c6e7b[_0x22af84(0x15e)]===_0x123315)break;for(const _0x36f79e in _0x14866a){const _0x1a10a3=Number(_0x36f79e);_0x1a10a3<_0xf92f43||_0x1a10a3>_0x473c68||_0x3c6e7b[_0x22af84(0x208)](_0x1a10a3);}}}if(_0xc45e99){const _0x2f86c1=_0xc45e99['getMatrix'](),_0x28a674=Object[_0x22af84(0x226)](_0x2f86c1);for(const _0x7cb760 of _0x28a674){const _0x3f3ce1=Number(_0x7cb760),_0x55d721=_0x2f86c1[_0x3f3ce1];if(_0x3c6e7b[_0x22af84(0x15e)]===_0x123315)break;for(const _0x4914c2 in _0x55d721){const _0x26b978=Number(_0x4914c2);_0x26b978<_0xf92f43||_0x26b978>_0x473c68||_0x3c6e7b[_0x22af84(0x208)](_0x26b978);}}}return Array[_0x22af84(0x2ae)](_0x3c6e7b);},_0x2fc95b=_0x4b6765=>{const _0x5913b5=_0x3b026f,_0x10f57c=new Set(),_0x3f4954=[];for(const _0x56cb2f of _0x4b6765){const _0x494724=_0x56cb2f[_0x5913b5(0x284)]+','+_0x56cb2f['endRow']+','+_0x56cb2f[_0x5913b5(0x2e5)]+','+_0x56cb2f[_0x5913b5(0xe2)];_0x10f57c[_0x5913b5(0x188)](_0x494724)||(_0x10f57c[_0x5913b5(0x208)](_0x494724),_0x3f4954[_0x5913b5(0x1b3)](_0x56cb2f));}return _0x3f4954;};let _0x523420=class extends _0x22b490[_0x3b026f(0x2ab)]{constructor(_0x52e9fe,_0x363af3,_0x290af3,_0x42c145,_0x32f5af,_0xe022f6){const _0x952889=_0x3b026f;super(),_0x57dd8e(this,_0x952889(0x2b2),new _0x1e57bc[(_0x952889(0x337))](!0x0)),_0x57dd8e(this,_0x952889(0x1dc),_0x10b5ac=>{const _0x45c391=_0x952889;this[_0x45c391(0x2b2)][_0x45c391(0x2ba)](!0x1);}),_0x57dd8e(this,'_globalComputedEndHelpFunc',_0x2ba434=>{this['_globalSubject']['next'](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0x52e9fe,this[_0x952889(0x122)]=_0x363af3,this[_0x952889(0x38e)]=_0x290af3,this[_0x952889(0x1c7)]=_0x42c145,this['_globalComputingSrv']=_0x32f5af,this[_0x952889(0xf5)]=_0xe022f6,this['_init'](),this[_0x952889(0x35e)]());}[_0x3b026f(0x212)](){const _0x3e8d83=_0x3b026f;this[_0x3e8d83(0x38b)](),this[_0x3e8d83(0x26d)](),this[_0x3e8d83(0xba)](),this[_0x3e8d83(0x130)]();}[_0x3b026f(0x96)](){const _0x436980=_0x3b026f;this['_globalComputingSrv'][_0x436980(0x27d)](this[_0x436980(0x2b2)]),_0x40290a[_0x436980(0x1f9)][_0x436980(0x76)](_0x40290a['PivotCallbackEnum'][_0x436980(0xa2)],this[_0x436980(0x1dc)]),_0x40290a[_0x436980(0x1f9)][_0x436980(0x76)](_0x40290a['PivotCallbackEnum'][_0x436980(0x176)],this['_globalComputedEndHelpFunc']);}[_0x3b026f(0x35e)](){const _0x3e07ca=_0x3b026f;this[_0x3e07ca(0x2ea)](this['_commandService']['onCommandExecuted'](_0x26d26b=>{const _0x462918=_0x3e07ca;_0x26d26b['id']===_0x2c7bf0[_0x462918(0x301)]['id']&&this['_sheetsPivotDataSourceModel'][_0x462918(0xf2)](_0x26d26b['params']);})),this[_0x3e07ca(0x2ea)](this[_0x3e07ca(0x1c7)]['onCommandExecuted'](_0x259da6=>{const _0x29222e=_0x3e07ca;if(_0x259da6['id']!==_0x5c2ddd['id'])return;const _0x56f224=_0x259da6['params'],{unitId:_0x1a3230,subUnitId:_0x3f28dc,pivotTableId:_0x518094}=_0x56f224,_0x2e18c6=_0x56f224[_0x29222e(0x265)][_0x29222e(0x252)],_0x4d5518={};switch(_0x2e18c6){case _0x5ab7c7[_0x29222e(0x361)]:{const _0x34fc77=_0x56f224[_0x29222e(0x265)]['filter'];if(!_0x34fc77)return;const {row:_0x3d5826,col:_0x296ce2,cellData:_0x1a1b07,pivotItemRenderInfoCache:_0x3a352b,tableFieldId:_0x429277}=_0x34fc77,_0x2d2522=this[_0x29222e(0x339)][_0x29222e(0xcc)](_0x56f224[_0x29222e(0x2b7)]);if(!_0x2d2522||!_0x3a352b)return;if(_0x429277){const _0x3e534d=_0x2d2522[_0x29222e(0x31f)](_0x429277);if(!_0x3e534d)return;_0x4d5518['filter']={..._0x2d2522['getDataFieldItemInfo'](_0x3e534d),'tableFieldId':_0x429277,'pivotTableId':_0x56f224[_0x29222e(0x2b7)],'filterInfo':_0x2d2522[_0x29222e(0xbe)](_0x429277),'sortInfo':_0x2d2522['getSortInfo'](_0x429277),'format':_0x2d2522[_0x29222e(0x123)](_0x429277)};}else{const _0x298136=_0x5ca324(_0x3d5826,_0x296ce2,_0x1a1b07,_0x2d2522,_0x3a352b),_0x42565b=_0x298136==null?void 0x0:_0x298136[_0x29222e(0x2f3)];if(!_0x42565b)return;const _0x50adc4=_0x2d2522[_0x29222e(0x31f)](_0x42565b);if(!_0x50adc4)return;_0x4d5518[_0x29222e(0x394)]={..._0x2d2522[_0x29222e(0x389)](_0x50adc4),'tableFieldId':_0x42565b,'pivotTableId':_0x56f224[_0x29222e(0x2b7)],'filterInfo':_0x2d2522[_0x29222e(0xbe)](_0x42565b),'sortInfo':_0x2d2522[_0x29222e(0x341)](_0x42565b),'format':_0x2d2522[_0x29222e(0x123)](_0x42565b)};}}break;case _0x5ab7c7[_0x29222e(0x33e)]:{const _0x258efa=_0x56f224[_0x29222e(0x265)]['panel'];if(!_0x258efa)return;const {pivotTableId:_0x5db6a3}=_0x258efa,_0x1395d4=this[_0x29222e(0x339)][_0x29222e(0xcc)](_0x5db6a3);if(!_0x1395d4)return;const _0xc92cfd=this['_sheetsPivotDataSourceModel'][_0x29222e(0x26f)](_0x1a3230,_0x3f28dc,_0x5db6a3),_0x4508ca=_0xecf658(_0x1395d4,_0x5db6a3,_0xc92cfd);_0x4d5518[_0x29222e(0x36d)]=_0x4508ca;}break;case _0x5ab7c7[_0x29222e(0x302)]:{const _0x81c6f0=this['_sheetsPivotDataSourceModel'][_0x29222e(0xcc)](_0x518094),_0x1b7d08=this[_0x29222e(0x339)][_0x29222e(0x37f)](_0x1a3230),_0xf14be5=_0x1b7d08[_0x29222e(0x14d)](_0x518094);let _0x4fb56b=null;const _0x45a8ec=this[_0x29222e(0x339)]['getPivotTableConfig'](_0x1a3230,_0x3f28dc,_0x518094),_0x4c1f77=_0x56f224[_0x29222e(0x265)][_0x29222e(0x105)];if(!_0x81c6f0||!_0x45a8ec||!_0x4c1f77)return!0x1;const {dataFieldId:_0x4858e2,fieldArea:_0x13c880,index:_0x344df6}=_0x4c1f77;_0x81c6f0['startCollectChangeset']();const _0x1f76af=_0x81c6f0['addFieldWithSourceId'](_0x4858e2,_0x13c880,_0x344df6);if(_0x1f76af&&_0x13c880===_0x40290a['PivotTableFiledAreaEnum'][_0x29222e(0x13e)]){const _0x3158e8=_0x1f76af[_0x29222e(0x35a)](),_0x416bbe=_0x81c6f0['getDataFieldByTableId'](_0x3158e8);if(_0x416bbe){const _0x9ffec6=_0x416bbe==null?void 0x0:_0x416bbe['getFieldDataType']();_0x81c6f0[_0x29222e(0x98)](_0x1f76af[_0x29222e(0x35a)](),_0x9ffec6===_0x40290a[_0x29222e(0xc6)][_0x29222e(0xc7)]?_0x40290a[_0x29222e(0x10e)][_0x29222e(0x1ab)]:_0x40290a[_0x29222e(0x10e)][_0x29222e(0x269)]);}const _0xc235f3=_0x81c6f0[_0x29222e(0x334)](),_0x1c7238=_0x81c6f0['getValuePosition'](),_0x23d64b=_0x81c6f0['getFieldCountByArea'](_0x40290a[_0x29222e(0x380)][_0x29222e(0x13e)]);if(_0xc235f3===-0x1&&_0x23d64b>0x1){const _0x25cc6c=_0x1c7238===_0x40290a['PivotTableValuePositionEnum'][_0x29222e(0x17c)]?_0x40290a['PivotTableValuePositionEnum'][_0x29222e(0xa8)]:_0x1c7238,_0x50e898=_0x25cc6c===_0x40290a[_0x29222e(0x220)][_0x29222e(0x168)]?_0x40290a[_0x29222e(0x380)][_0x29222e(0x168)]:_0x40290a['PivotTableFiledAreaEnum']['Column'];_0x81c6f0[_0x29222e(0x1fc)](_0x25cc6c,_0x81c6f0[_0x29222e(0x377)](_0x50e898));}}else{if(_0x1f76af&&(_0x13c880===_0x40290a[_0x29222e(0x380)]['Row']||_0x13c880===_0x40290a[_0x29222e(0x380)][_0x29222e(0xa8)])){const _0x4e6452=_0x1f76af[_0x29222e(0x35a)](),_0x54af74=_0x81c6f0[_0x29222e(0x31f)](_0x4e6452);if(_0x54af74&&(_0x54af74==null?void 0x0:_0x54af74[_0x29222e(0x271)]())===_0x40290a[_0x29222e(0xc6)][_0x29222e(0x120)]){const _0x1732f7=_0x54af74[_0x29222e(0x165)]();if(_0x1732f7&&_0x81c6f0[_0x29222e(0x7b)](_0x1f76af[_0x29222e(0x35a)](),_0x1732f7),!_0xf14be5['getFieldIds']()[_0x29222e(0x224)](_0x358354=>{const _0x119021=_0x29222e,_0x1218b4=_0xf14be5['getFieldById'](_0x358354);return _0x40290a[_0x119021(0x1de)](_0x1218b4)?_0x1218b4['getFieldInfo']()[_0x119021(0x25a)]===_0x4858e2:!0x1;})){const _0x39dafc=_0x1b7d08['createDataFieldId'](),_0x2ef8a9=_0x2255e1(_0x54af74[_0x29222e(0x2fd)],_0x54af74[_0x29222e(0x2ff)]),_0x4a233b=_0x54af74[_0x29222e(0x111)]()+_0x29222e(0x144)+_0x560d71(this['_injector'],_0x2ef8a9),_0x6493ab=new _0x40290a[(_0x29222e(0x293))](_0x39dafc,_0x4a233b,_0x40290a[_0x29222e(0xbc)](0x3),_0x54af74[_0x29222e(0x35a)](),_0x2ef8a9);_0x1b7d08[_0x29222e(0x2f2)](_0x6493ab),_0xf14be5[_0x29222e(0x11d)](_0x39dafc,_0x4a233b),_0x81c6f0['addFieldWithSourceId'](_0x39dafc,_0x13c880,(_0x344df6!=null?_0x344df6:0x0)+0x1),_0x4fb56b=_0x6493ab;}}}}const _0x44fd6f=_0x81c6f0[_0x29222e(0x298)](),_0x2e16dd=_0x81c6f0['query']()[_0x29222e(0x2b3)]();let _0x3ed342;if(_0x4fb56b){_0x3ed342=_0x4fb56b[_0x29222e(0x2b3)]();const _0x59d521=_0x4fb56b[_0x29222e(0x35a)]();_0xf14be5[_0x29222e(0x37e)](_0x59d521);let _0x86c189=!0x0;for(const _0x8a2a17 in _0x1b7d08[_0x29222e(0x112)])if(_0x1b7d08[_0x29222e(0x112)][_0x8a2a17]['getFieldIds']()[_0x29222e(0xeb)](_0x59d521)){_0x86c189=!0x1;break;}_0x86c189&&_0x1b7d08[_0x29222e(0x175)](_0x59d521);}const _0x46262e=_0x81c6f0[_0x29222e(0x250)]();_0x4d5518[_0x29222e(0x105)]={'view':_0x2e16dd,'changesets':_0x46262e,'isEmpty':_0x44fd6f,'pivotTableConfig':_0x45a8ec,'shouldBeAddedGroupJSON':_0x3ed342};}break;case _0x5ab7c7[_0x29222e(0x27b)]:{const _0x2ececc=_0x56f224[_0x29222e(0x265)]['addPivotTable'];if(!_0x2ececc)return;const _0x252868=_0x2ececc[_0x29222e(0x382)],_0x48b08a=_0x2ececc[_0x29222e(0x2b7)],{collection:_0x283ffd}=this[_0x29222e(0x339)][_0x29222e(0x2e7)]({'unitId':_0x252868[_0x29222e(0xbb)],'sheetName':_0x252868[_0x29222e(0x16b)],'subUnitId':_0x252868[_0x29222e(0x214)],'range':_0x252868[_0x29222e(0x12d)]}),_0x5a6d66=new _0x40290a['PivotTable'](_0x283ffd,void 0x0,_0x48b08a),_0x53818d=_0x5a6d66['query'](),_0x539c53=_0x5a6d66[_0x29222e(0x2b3)](),_0x3f4c31=_0x283ffd[_0x29222e(0x2b3)]();_0x4d5518[_0x29222e(0x26a)]={'view':_0x53818d,'fieldsConfig':_0x539c53,'collectionConfig':_0x3f4c31,'isEmpty':_0x5a6d66[_0x29222e(0x298)]()};}break;case _0x5ab7c7['MovePivotField']:{const _0x57609f=_0x56f224[_0x29222e(0x265)]['movePivotField'];if(!_0x57609f)return;const {fieldId:_0x20f950,area:_0x21e70d,index:_0x5b748b}=_0x57609f,_0x449ea2=this[_0x29222e(0x339)][_0x29222e(0x26f)](_0x1a3230,_0x3f28dc,_0x518094);if(!_0x449ea2)return;const _0x444fad=this[_0x29222e(0x339)][_0x29222e(0xcc)](_0x518094);if(!_0x444fad)return;_0x444fad[_0x29222e(0x1bf)]();const {area:_0x4237a2,index:_0x35d001}=_0x444fad['getFieldPositionInfoById'](_0x20f950);if(_0x444fad[_0x29222e(0x320)](_0x20f950,_0x21e70d,_0x5b748b),_0x21e70d===_0x40290a[_0x29222e(0x380)][_0x29222e(0x13e)]&&_0x444fad[_0x29222e(0x350)](_0x20f950)[_0x29222e(0x36f)]()===void 0x0){const _0x1e2277=_0x444fad['getTableFieldById'](_0x20f950);if(_0x1e2277&&_0x1e2277[_0x29222e(0x36f)]()===void 0x0){const _0x4bb106=_0x444fad[_0x29222e(0x31f)](_0x20f950);if(_0x4bb106){const _0x4ed21a=_0x4bb106==null?void 0x0:_0x4bb106['getFieldDataType']();_0x444fad[_0x29222e(0x98)](_0x20f950,_0x4ed21a===_0x40290a[_0x29222e(0xc6)]['number']?_0x40290a['PivotSubtotalTypeEnum'][_0x29222e(0x1ab)]:_0x40290a[_0x29222e(0x10e)][_0x29222e(0x269)]);}}}const _0x2fd41b=_0x444fad[_0x29222e(0x286)](),_0x39c37f=_0x444fad[_0x29222e(0x334)](),_0x3e293a=_0x444fad[_0x29222e(0x377)](_0x40290a[_0x29222e(0x380)][_0x29222e(0x13e)])>0x1;if(_0x3e293a&&_0x4237a2===_0x21e70d&&(_0x21e70d===_0x40290a['PivotTableFiledAreaEnum'][_0x29222e(0x168)]&&_0x2fd41b===_0x40290a[_0x29222e(0x220)][_0x29222e(0x168)]||_0x21e70d===_0x40290a[_0x29222e(0x380)][_0x29222e(0xa8)]&&_0x2fd41b===_0x40290a[_0x29222e(0x220)][_0x29222e(0xa8)])){let _0x2a3cc7=_0x39c37f;_0x35d001<=_0x39c37f&&_0x2a3cc7--,_0x5b748b<=_0x39c37f&&_0x2a3cc7++,_0x444fad[_0x29222e(0x1fc)](_0x2fd41b,_0x2a3cc7);}else _0x3e293a&&(_0x4237a2===_0x40290a[_0x29222e(0x380)]['Row']&&_0x2fd41b===_0x40290a['PivotTableValuePositionEnum'][_0x29222e(0x168)]||_0x4237a2===_0x40290a[_0x29222e(0x380)][_0x29222e(0xa8)]&&_0x2fd41b===_0x40290a[_0x29222e(0x220)][_0x29222e(0xa8)])&&_0x39c37f>=_0x35d001&&_0x444fad[_0x29222e(0x1fc)](_0x2fd41b,_0x39c37f-0x1),_0x3e293a&&(_0x21e70d===_0x40290a[_0x29222e(0x380)][_0x29222e(0x168)]&&_0x2fd41b===_0x40290a['PivotTableValuePositionEnum'][_0x29222e(0x168)]||_0x21e70d===_0x40290a[_0x29222e(0x380)][_0x29222e(0xa8)]&&_0x2fd41b===_0x40290a['PivotTableValuePositionEnum'][_0x29222e(0xa8)])&&_0x39c37f>=_0x5b748b&&_0x444fad[_0x29222e(0x1fc)](_0x2fd41b,_0x39c37f+0x1);const _0x5ca41e=_0x444fad['query'](),_0x2093c3=_0x444fad[_0x29222e(0x298)](),_0x2a26b1=_0x444fad['endCollectChangeset']();_0x4d5518[_0x29222e(0x1d5)]={'view':_0x5ca41e[_0x29222e(0x2b3)](),'changesets':_0x2a26b1,'isEmpty':_0x2093c3,'pivotTableConfig':_0x449ea2};}break;case _0x5ab7c7[_0x29222e(0x7c)]:{const _0x46bad8=_0x56f224[_0x29222e(0x265)]['removePivotField'];if(!_0x46bad8)return;const _0x47b3dd=_0x46bad8[_0x29222e(0x92)],_0x393bc7=this[_0x29222e(0x339)][_0x29222e(0x26f)](_0x1a3230,_0x3f28dc,_0x518094);if(!_0x393bc7)return!0x1;const _0x747a82=this['_sheetsPivotDataSourceModel'][_0x29222e(0xcc)](_0x518094);if(!_0x747a82)return!0x1;_0x747a82['startCollectChangeset']();for(const _0x323979 of _0x47b3dd){const {area:_0x5a908c}=_0x747a82[_0x29222e(0xe5)](_0x323979);_0x5a908c===_0x40290a[_0x29222e(0x380)][_0x29222e(0x13e)]&&_0x747a82[_0x29222e(0x386)](_0x323979),(_0x5a908c===_0x40290a[_0x29222e(0x380)]['Row']||_0x5a908c===_0x40290a[_0x29222e(0x380)][_0x29222e(0xa8)])&&_0x747a82['removeValueFilterInfo'](_0x323979),_0x747a82[_0x29222e(0x21f)](_0x323979);}const _0x407c77=_0x747a82['isEmpty'](),_0x5b71a9=_0x747a82[_0x29222e(0x349)]()[_0x29222e(0x2b3)](),_0x9aabba=_0x747a82[_0x29222e(0x250)]();_0x4d5518[_0x29222e(0xb5)]={'changesets':_0x9aabba,'pivotTableConfig':_0x393bc7,'isEmpty':_0x407c77,'view':_0x5b71a9};}break;case _0x5ab7c7['SetPivotFilter']:{const _0x484391=_0x56f224[_0x29222e(0x265)][_0x29222e(0x2cf)];if(!_0x484391)return;const {tableFieldId:_0x20de79,items:_0x302a70,isAll:_0x261f20}=_0x484391,_0x422b25=this[_0x29222e(0x339)]['getPivotTableInstance'](_0x518094),_0x2a874b=this['_sheetsPivotDataSourceModel'][_0x29222e(0x26f)](_0x1a3230,_0x3f28dc,_0x518094);if(!_0x422b25||!_0x2a874b)return;_0x422b25[_0x29222e(0x1bf)](),_0x422b25[_0x29222e(0xa9)](_0x20de79,{'type':_0x40290a[_0x29222e(0x2b5)][_0x29222e(0x29b)],'list':_0x302a70,'isAll':_0x261f20});const _0xc7ef65=_0x422b25[_0x29222e(0x298)](),_0x146c0a=_0x422b25[_0x29222e(0x349)]()['toJSON'](),_0x406536=_0x422b25[_0x29222e(0x250)]();_0x4d5518[_0x29222e(0x2cf)]={'view':_0x146c0a,'changesets':_0x406536,'isEmpty':_0xc7ef65,'pivotTableConfig':_0x2a874b};}break;case _0x5ab7c7[_0x29222e(0x86)]:{const _0x28a126=_0x56f224[_0x29222e(0x265)][_0x29222e(0x16c)];if(!_0x28a126)return;const {tableFieldId:_0x39289d,filterInfo:_0x839540}=_0x28a126,_0x58816f=this[_0x29222e(0x339)]['getPivotTableInstance'](_0x518094),_0x244e4f=this['_sheetsPivotDataSourceModel'][_0x29222e(0x26f)](_0x1a3230,_0x3f28dc,_0x518094);if(!_0x58816f||!_0x244e4f)return;_0x58816f[_0x29222e(0x1bf)](),_0x58816f['setValueFilterInfo'](_0x39289d,_0x839540);const _0x15c29e=_0x58816f[_0x29222e(0x298)](),_0x5b77b2=_0x58816f[_0x29222e(0x349)]()[_0x29222e(0x2b3)](),_0x4b91f7=_0x58816f['endCollectChangeset']();_0x4d5518[_0x29222e(0x16c)]={'view':_0x5b77b2,'changesets':_0x4b91f7,'isEmpty':_0x15c29e,'pivotTableConfig':_0x244e4f};}break;case _0x5ab7c7['SetPivotSort']:{const _0x1a8f71=_0x56f224[_0x29222e(0x265)][_0x29222e(0x1fa)];if(!_0x1a8f71)return;const {tableFieldId:_0x46e55f,info:_0x3b086b}=_0x1a8f71,_0x63c094=this['_sheetsPivotDataSourceModel'][_0x29222e(0xcc)](_0x518094),_0x11ca4a=this[_0x29222e(0x339)]['getPivotTableConfig'](_0x1a3230,_0x3f28dc,_0x518094);if(!_0x63c094||!_0x11ca4a)return;_0x63c094[_0x29222e(0x1bf)](),_0x63c094[_0x29222e(0x14c)](_0x46e55f,_0x3b086b);const _0x21e5cd=_0x63c094[_0x29222e(0x298)](),_0x3098ab=_0x63c094[_0x29222e(0x349)]()[_0x29222e(0x2b3)](),_0x5d1f2f=_0x63c094[_0x29222e(0x250)]();_0x4d5518[_0x29222e(0x1fa)]={'view':_0x3098ab,'changesets':_0x5d1f2f,'isEmpty':_0x21e5cd,'pivotTableConfig':_0x11ca4a};}break;case _0x5ab7c7[_0x29222e(0x207)]:{const _0x153d58=_0x56f224[_0x29222e(0x265)]['setPivotSetting'];if(!_0x153d58)return;const {tableFieldId:_0x3088f5,displayName:_0x1720a6,subtotalType:_0x1415a4,format:_0x28b0e8}=_0x153d58,_0x184466=this[_0x29222e(0x339)][_0x29222e(0xcc)](_0x518094),_0x2c46e4=this['_sheetsPivotDataSourceModel'][_0x29222e(0x26f)](_0x1a3230,_0x3f28dc,_0x518094);if(!_0x184466||!_0x2c46e4)return;_0x184466['startCollectChangeset'](),_0x1720a6!==void 0x0&&_0x184466[_0x29222e(0x259)](_0x3088f5,_0x1720a6),_0x1415a4!==void 0x0&&_0x184466[_0x29222e(0x98)](_0x3088f5,_0x1415a4),_0x28b0e8!==void 0x0&&_0x184466[_0x29222e(0x7b)](_0x3088f5,_0x28b0e8);const _0x5b8a17=_0x184466[_0x29222e(0x298)](),_0x10962f=_0x184466[_0x29222e(0x349)]()['toJSON'](),_0x2d3ad4=_0x184466['endCollectChangeset']();_0x4d5518[_0x29222e(0x384)]={'changesets':_0x2d3ad4,'pivotTableConfig':_0x2c46e4,'isEmpty':_0x5b8a17,'view':_0x10962f};}break;case _0x5ab7c7[_0x29222e(0xcf)]:{const _0x30ace4=_0x56f224['params'][_0x29222e(0xd8)];if(!_0x30ace4)return;const {dataRangeInfo:_0x413cc6,unitId:_0x3a472e,subUnitId:_0x5b42c5}=_0x30ace4,_0x19f570=this[_0x29222e(0x339)][_0x29222e(0x26f)](_0x3a472e,_0x5b42c5,_0x518094),_0x4367b0=this[_0x29222e(0x339)][_0x29222e(0xcc)](_0x518094);if(!this['_sheetsPivotDataSourceModel'][_0x29222e(0x14d)](_0x3a472e,_0x518094)||!_0x4367b0||!_0x19f570)return;const _0x3febc1=this[_0x29222e(0x339)][_0x29222e(0x1ae)](_0x3a472e,_0x518094,_0x413cc6),_0x171d75=this[_0x29222e(0x339)][_0x29222e(0x14d)](_0x3a472e,_0x518094)[_0x29222e(0x2b3)](),{collection:_0x507aa4}=this['_sheetsPivotDataSourceModel'][_0x29222e(0x2e7)]({'unitId':_0x413cc6[_0x29222e(0xbb)],'sheetName':_0x413cc6[_0x29222e(0x16b)],'subUnitId':_0x413cc6[_0x29222e(0x214)],'range':_0x413cc6[_0x29222e(0x12d)]}),_0x15ba32=_0x507aa4['toJSON']();_0x4367b0[_0x29222e(0x1bf)]();const _0x5392c3=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x3a472e)['getAutoDisplayNameFunction']()||_0x40290a[_0x29222e(0x2b9)];_0x4367b0[_0x29222e(0x309)](_0x2fbff2=>{const _0x5710f1=_0x29222e,_0x369223=_0x2fbff2[_0x5710f1(0x204)]();if(!_0x507aa4['hasField'](_0x369223)){const _0x3aca11=_0x507aa4[_0x5710f1(0x236)](_0x2fbff2[_0x5710f1(0x2d2)]());if(_0x3aca11){_0x4367b0['updateFieldSourceInfo'](_0x2fbff2['getId'](),_0x3aca11[_0x5710f1(0x111)](),_0x3aca11[_0x5710f1(0x35a)]());const {area:_0x5be027}=_0x4367b0[_0x5710f1(0xe5)](_0x2fbff2['getId']());let _0x132e51=_0x2fbff2[_0x5710f1(0x2d2)]();const _0x3dec54=_0x2fbff2[_0x5710f1(0x16a)]();if(_0x5be027===_0x40290a[_0x5710f1(0x380)][_0x5710f1(0x13e)]){const _0x1b9305=_0x2fbff2['getSubtotal']();_0x132e51=_0x5392c3(_0x3aca11[_0x5710f1(0x111)](),_0x1b9305);}_0x3dec54!==_0x132e51&&_0x4367b0['renameField'](_0x2fbff2[_0x5710f1(0x35a)](),_0x132e51);}else _0x4367b0[_0x5710f1(0x21f)](_0x2fbff2[_0x5710f1(0x35a)]());}});const _0x23a152=_0x4367b0[_0x29222e(0x298)](),_0xbeeb6f=_0x4367b0[_0x29222e(0x349)]()['toJSON'](),_0x4d5e76=_0x4367b0['endCollectChangeset']();_0x4d5518[_0x29222e(0xd8)]={'view':_0xbeeb6f,'changesets':_0x4d5e76,'isEmpty':_0x23a152,'pivotTableConfig':_0x19f570,'collectionConfig':_0x15ba32,'oldCollectionConfig':_0x171d75,'deleteIds':_0x3febc1};}break;case _0x5ab7c7[_0x29222e(0x2d9)]:{const _0x2a0d45=_0x56f224[_0x29222e(0x265)][_0x29222e(0x1fc)];if(!_0x2a0d45)return;const {position:_0x2c8e69,index:_0xab90d0}=_0x2a0d45,_0x548889=this[_0x29222e(0x339)][_0x29222e(0x26f)](_0x1a3230,_0x3f28dc,_0x518094);if(!_0x548889)return!0x1;const _0x16edfb=this[_0x29222e(0x339)]['getPivotTableInstance'](_0x518094);if(!_0x16edfb)return!0x1;_0x16edfb[_0x29222e(0x1bf)](),_0x16edfb[_0x29222e(0x1fc)](_0x2c8e69,_0xab90d0);const _0x1d9dc2=_0x16edfb[_0x29222e(0x298)](),_0x583b49=_0x16edfb[_0x29222e(0x349)]()[_0x29222e(0x2b3)](),_0x2105cb=_0x16edfb[_0x29222e(0x250)]();_0x4d5518[_0x29222e(0x1fc)]={'changesets':_0x2105cb,'pivotTableConfig':_0x548889,'isEmpty':_0x1d9dc2,'view':_0x583b49};}break;case _0x5ab7c7[_0x29222e(0xfc)]:{const _0x312b71=_0x56f224[_0x29222e(0x265)][_0x29222e(0x354)];if(!_0x312b71)return;const {tableFieldId:_0x48a51a,collapse:_0x306f67,item:_0x57e3fd}=_0x312b71,_0x259aff=this[_0x29222e(0x339)][_0x29222e(0xcc)](_0x518094),_0x491bbd=this[_0x29222e(0x339)][_0x29222e(0x26f)](_0x1a3230,_0x3f28dc,_0x518094);if(!_0x259aff||!_0x491bbd)return;_0x259aff[_0x29222e(0x1bf)](),_0x259aff[_0x29222e(0x101)](_0x48a51a,_0x306f67,_0x57e3fd);const _0x257d91=_0x259aff['isEmpty'](),_0x3e42c6=_0x259aff[_0x29222e(0x349)]()[_0x29222e(0x2b3)](),_0x2c27fd=_0x259aff[_0x29222e(0x250)]();_0x4d5518[_0x29222e(0x354)]={'view':_0x3e42c6,'isEmpty':_0x257d91,'pivotTableConfig':_0x491bbd,'changesets':_0x2c27fd};}break;case _0x5ab7c7[_0x29222e(0x373)]:{const _0x17eeb7=_0x56f224[_0x29222e(0x265)][_0x29222e(0x381)];if(!_0x17eeb7)return;const {pivotTableConfig:_0x3075b3}=_0x17eeb7,_0x570036=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x518094),_0x26dce2=this[_0x29222e(0x339)][_0x29222e(0x26f)](_0x1a3230,_0x3f28dc,_0x518094);if(!_0x570036||!_0x26dce2)return;_0x570036[_0x29222e(0x1bf)](),_0xf3a918(_0x570036,_0x3075b3);const _0x217de5=_0x570036[_0x29222e(0x298)](),_0x43ba31=_0x570036['query']()[_0x29222e(0x2b3)](),_0xd1254d=_0x570036[_0x29222e(0x250)]();_0x4d5518['setPivotTableConfig']={'view':_0x43ba31,'isEmpty':_0x217de5,'pivotTableConfig':{..._0x26dce2,'fieldsConfig':_0x570036[_0x29222e(0x2b3)]()},'changesets':_0xd1254d};}break;case _0x5ab7c7[_0x29222e(0xc1)]:{const _0x391186=_0x56f224[_0x29222e(0x265)][_0x29222e(0x24e)];if(!_0x391186)return;const _0x255e95=this['_sheetsPivotDataSourceModel'][_0x29222e(0xcc)](_0x518094),_0x2ce585=this[_0x29222e(0x339)][_0x29222e(0x26f)](_0x1a3230,_0x3f28dc,_0x518094);if(!_0x255e95||!_0x2ce585)return;_0x255e95[_0x29222e(0x1bf)](),_0x58671b(_0x255e95,_0x391186[_0x29222e(0x1aa)]);const _0x3cb6f6=_0x255e95[_0x29222e(0x349)]()[_0x29222e(0x2b3)](),_0x48691f=_0x255e95['endCollectChangeset']();_0x4d5518['resetPivotTable']={'view':_0x3cb6f6,'isEmpty':!0x0,'pivotTableConfig':{..._0x2ce585,'fieldsConfig':_0x255e95[_0x29222e(0x2b3)]()},'changesets':_0x48691f};}break;case _0x5ab7c7['AddPivotTableWithConfig']:{const _0x3e0748=_0x56f224[_0x29222e(0x265)]['addPivotTableWithConfig'];if(!_0x3e0748)return;const _0x3453ab=_0x3e0748['sourceRangeInfo'],_0x5b93c6=_0x3e0748[_0x29222e(0x2b7)],{collection:_0x22b369}=this[_0x29222e(0x339)][_0x29222e(0x2e7)]({'unitId':_0x3453ab['unitId'],'sheetName':_0x3453ab[_0x29222e(0x16b)],'subUnitId':_0x3453ab[_0x29222e(0x214)],'range':_0x3453ab[_0x29222e(0x12d)]}),_0x350f90=new _0x40290a[(_0x29222e(0x1f9))](_0x22b369,void 0x0,_0x5b93c6),_0x3af302=_0x22b369[_0x29222e(0x378)](),{rows:_0x58cfb0,columns:_0x38c204,filters:_0x7b2059,values:_0x24985a}=_0x3e0748[_0x29222e(0x367)];_0x350f90['startCollectChangeset']();for(const {field:_0x118c39,selectedItems:_0x3f8de5}of _0x58cfb0||[]){const _0x217621=_0x3af302[_0x118c39];if(_0x217621){const _0x494fd1=_0x350f90[_0x29222e(0xb2)](_0x217621,_0x40290a['PivotTableFiledAreaEnum']['Row']);_0x3f8de5&&_0x494fd1&&_0x350f90[_0x29222e(0xa9)](_0x494fd1[_0x29222e(0x35a)](),{'type':_0x40290a[_0x29222e(0x2b5)][_0x29222e(0x29b)],'list':_0x3f8de5,'isAll':!0x1});}}for(const {field:_0xeb3137,selectedItems:_0x11b0a4}of _0x38c204||[]){const _0xfe4c08=_0x3af302[_0xeb3137];if(_0xfe4c08){const _0x1ff33f=_0x350f90[_0x29222e(0xb2)](_0xfe4c08,_0x40290a[_0x29222e(0x380)]['Column']);_0x11b0a4&&_0x1ff33f&&_0x350f90[_0x29222e(0xa9)](_0x1ff33f[_0x29222e(0x35a)](),{'type':_0x40290a['PivotFilterTypeEnum']['ManualFilter'],'list':_0x11b0a4,'isAll':!0x1});}}for(const {field:_0x1cc348,selectedItems:_0x497069}of _0x7b2059||[]){const _0x478b7e=_0x3af302[_0x1cc348];if(_0x478b7e){const _0x4f1672=_0x350f90['addFieldWithSourceId'](_0x478b7e,_0x40290a[_0x29222e(0x380)][_0x29222e(0x361)]);_0x497069&&_0x4f1672&&_0x350f90[_0x29222e(0xa9)](_0x4f1672[_0x29222e(0x35a)](),{'type':_0x40290a['PivotFilterTypeEnum'][_0x29222e(0x29b)],'list':_0x497069,'isAll':!0x1});}}for(const {field:_0x4d66eb,subTotalType:_0x390cbb,formatString:_0x5215e9}of _0x24985a||[]){const _0x31c581=_0x22b369[_0x29222e(0x2e9)](_0x3af302[_0x4d66eb]);if(!_0x31c581)continue;const _0x11d788=_0x3af302[_0x4d66eb];if(_0x11d788){const _0x4817f1=_0x350f90[_0x29222e(0xb2)](_0x11d788,_0x40290a['PivotTableFiledAreaEnum'][_0x29222e(0x13e)]);if(_0x4817f1){if(_0x390cbb!==void 0x0){_0x350f90[_0x29222e(0x98)](_0x4817f1[_0x29222e(0x35a)](),_0x390cbb);const _0x371e32=this[_0x29222e(0x339)][_0x29222e(0x37f)](_0x3453ab[_0x29222e(0xbb)])[_0x29222e(0x1c2)]()||_0x40290a[_0x29222e(0x2b9)],_0x196774=_0x22b369['getDisplayName'](_0x11d788),_0x60092c=_0x371e32(_0x196774,_0x390cbb);_0x350f90[_0x29222e(0x259)](_0x4817f1['getId'](),_0x60092c);}else{if(_0x31c581){const _0xe215d0=_0x31c581==null?void 0x0:_0x31c581[_0x29222e(0x271)]();_0x350f90[_0x29222e(0x98)](_0x4817f1[_0x29222e(0x35a)](),_0xe215d0===_0x40290a['PivotDataFieldDataTypeEnum'][_0x29222e(0xc7)]?_0x40290a[_0x29222e(0x10e)][_0x29222e(0x1ab)]:_0x40290a['PivotSubtotalTypeEnum']['count']);}}_0x5215e9&&_0x350f90['setFieldFormat'](_0x4817f1['getId'](),_0x5215e9);}}}const _0x41247f=_0x350f90[_0x29222e(0x349)](),_0x16efc2=_0x350f90[_0x29222e(0x2b3)](),_0xf0c749=_0x350f90['isEmpty'](),_0x5de124=_0x350f90['endCollectChangeset'](),_0x5b7fa8=_0x22b369[_0x29222e(0x2b3)]();_0x4d5518['addPivotTableWithConfig']={'view':_0x41247f,'fieldsConfig':_0x16efc2,'collectionConfig':_0x5b7fa8,'isEmpty':_0xf0c749,'changesets':_0x5de124};}break;case _0x5ab7c7[_0x29222e(0x35f)]:{const _0x419381=_0x2c03e4(this[_0x29222e(0xf5)],_0x56f224);if(!_0x419381)return;const {range:_0x2786c7,sourceSubUnitId:_0x44ffa0,sourceUnitId:_0xd9027,formatMap:_0x272242,indexes:_0x28e621}=_0x419381;_0x4d5518['drillDown']={'range':_0x2786c7,'sourceSubUnitId':_0x44ffa0,'sourceUnitId':_0xd9027,'formatMap':_0x272242,'indexes':_0x28e621};}break;}this[_0x29222e(0x1c7)][_0x29222e(0xe1)](_0x39ada9['id'],{'version':_0x56f224[_0x29222e(0x8c)],'result':_0x4d5518},{'onlyLocal':!0x0});}));}['_initPivotTextInfo'](){const _0x12e3e4=_0x3b026f;this[_0x12e3e4(0x2ea)](this[_0x12e3e4(0x1c7)][_0x12e3e4(0x268)](_0xdeb604=>{const _0x256374=_0x12e3e4;if(_0xdeb604['id']!==_0x5461f8['id'])return;const _0x3edbd8=_0xdeb604[_0x256374(0x265)];return this['_sheetsPivotDataSourceModel'][_0x256374(0x2db)](_0x3edbd8['textInfo']),!0x0;}));}[_0x3b026f(0x38b)](){const _0x786ead=_0x3b026f;this[_0x786ead(0x339)][_0x786ead(0x2c4)][_0x786ead(0x2ce)](_0x1ddf6e=>{const _0x129549=_0x786ead;switch(_0x1ddf6e['type']){case _0x424e6c[_0x129549(0x208)]:_0x1ddf6e[_0x129549(0x173)]&&_0x1ddf6e[_0x129549(0x157)]&&this[_0x129549(0x2fc)](_0x1ddf6e[_0x129549(0x146)],_0x1ddf6e[_0x129549(0x173)],_0x1ddf6e[_0x129549(0x157)]);break;case _0x424e6c[_0x129549(0x32e)]:{const {unitId:_0x38fb2f,subUnitId:_0x4a1cde,token:_0x3e8c57}=_0x1ddf6e;_0x38fb2f&&_0x4a1cde&&_0x3e8c57&&this[_0x129549(0x1b1)](_0x38fb2f,_0x4a1cde,_0x3e8c57);}break;case _0x424e6c[_0x129549(0xf1)]:{const {token:_0x37db88,oldSourceRangeInfo:_0x28f3c2,dataRangeInfo:_0x3fd338,targetCellInfo:_0x215e1c}=_0x1ddf6e,{unitId:_0x5d9b93,subUnitId:_0x3e8ae5}=_0x28f3c2||{};_0x5d9b93&&_0x3e8ae5&&_0x37db88&&this['removeSourceRangeChange'](_0x5d9b93,_0x3e8ae5,_0x37db88),_0x3fd338&&_0x215e1c&&this[_0x129549(0x2fc)](_0x37db88,_0x3fd338,_0x215e1c);}break;}});}[_0x3b026f(0x130)](){const _0x57020a=_0x3b026f;this['_sheetsPivotDataSourceModel']['fieldsCollectionChange$'][_0x57020a(0x2ce)](_0x198ad5=>{const _0x2fc822=_0x57020a;Object[_0x2fc822(0x226)](_0x198ad5)[_0x2fc822(0x38c)](_0x53c58a=>{const _0x401518=_0x2fc822,_0x7c8b3d=this[_0x401518(0x339)][_0x401518(0xc4)](_0x53c58a);if(_0x7c8b3d){const _0x4509ec=this[_0x401518(0x339)][_0x401518(0x26f)](_0x7c8b3d==null?void 0x0:_0x7c8b3d[_0x401518(0xbb)],_0x7c8b3d==null?void 0x0:_0x7c8b3d['subUnitId'],_0x53c58a);_0x4509ec&&(this[_0x401518(0x2fc)](_0x53c58a,_0x4509ec[_0x401518(0x382)],_0x4509ec[_0x401518(0x157)]),this[_0x401518(0x1c0)]([{'unitId':_0x7c8b3d[_0x401518(0xbb)],'subUnitId':_0x7c8b3d['subUnitId'],'token':_0x53c58a}]));}});});}[_0x3b026f(0x26d)](){const _0x275df5=_0x3b026f;this['_sheetsPivotDataSourceModel'][_0x275df5(0x1a4)][_0x275df5(0x2ce)](_0x40f6f0=>{const {unitId:_0x41980d,subUnitId:_0x40d9c3,pivotTableId:_0x484762}=_0x40f6f0;_0x41980d&&_0x40d9c3&&_0x484762&&this['triggerDirtyFeature']([{'unitId':_0x41980d,'subUnitId':_0x40d9c3,'token':_0x484762}]);});}['triggerDirtyFeature'](_0x3dc4ee){const _0x26687b=_0x3b026f,_0x5cb707={};_0x3dc4ee[_0x26687b(0x38c)](_0x39d525=>{var _0x134bbd,_0x273c09;const {unitId:_0x5ceded,subUnitId:_0x5a4e16,token:_0x28095b}=_0x39d525;_0x5cb707[_0x5ceded]=(_0x134bbd=_0x5cb707[_0x5ceded])!=null?_0x134bbd:{},_0x5cb707[_0x5ceded][_0x5a4e16]=(_0x273c09=_0x5cb707[_0x5ceded][_0x5a4e16])!=null?_0x273c09:{},_0x5cb707[_0x5ceded][_0x5a4e16][_0x28095b]=!0x0;}),this['_commandService'][_0x26687b(0xe1)](_0x38644a['id'],_0x5cb707);}[_0x3b026f(0x1b1)](_0x2bbb79,_0x1613a6,_0x5164fc){const _0x5c78ca=_0x3b026f;this[_0x5c78ca(0x38e)][_0x5c78ca(0x138)](_0x2bbb79,_0x1613a6,[_0x5164fc]);}[_0x3b026f(0x2fc)](_0x51dcef,_0x3e9b76,_0x53f40c){const _0x532273=_0x3b026f,{unitId:_0x215786,subUnitId:_0x424888}=_0x3e9b76;this[_0x532273(0x38e)][_0x532273(0x188)](_0x53f40c[_0x532273(0xbb)],_0x53f40c[_0x532273(0x214)],_0x51dcef)&&this[_0x532273(0x1b1)](_0x215786,_0x424888,_0x51dcef);const _0x4d4285={'sheetId':_0x424888,..._0x3e9b76};this[_0x532273(0x38e)][_0x532273(0x10a)](_0x53f40c[_0x532273(0xbb)],_0x53f40c['subUnitId'],_0x51dcef,{'unitId':_0x53f40c[_0x532273(0xbb)],'subUnitId':_0x53f40c['subUnitId'],'dependencyRanges':[_0x4d4285],'getDirtyData':(_0x46d8c5,_0x1d6d6d)=>{const _0x5240f8=_0x532273,_0x8a75b1=this[_0x5240f8(0x339)],_0x5e3a69=_0x8a75b1[_0x5240f8(0xc4)](_0x51dcef);if(!_0x5e3a69)return _0x293030();const {unitId:_0x311624,subUnitId:_0xa10dac}=_0x5e3a69,_0x38c3f3=_0x1ccb8f(_0x46d8c5,_0x1d6d6d,_0x3e9b76);if(_0x38c3f3['length']>0x0){const _0x35bbea=_0x8a75b1[_0x5240f8(0x14d)](_0x215786,_0x51dcef),_0x497d10=_0x35bbea[_0x5240f8(0x378)](),_0x58d81d=this[_0x5240f8(0x154)](_0x3e9b76['unitId'],_0x3e9b76[_0x5240f8(0x214)],_0x1d6d6d),_0x1a27f4={},_0x17b0f2=this[_0x5240f8(0x339)][_0x5240f8(0x37f)](_0x311624)[_0x5240f8(0x1c2)]()||_0x40290a[_0x5240f8(0x2b9)],_0x111e9b=[];for(const _0x18a14e of _0x38c3f3){const _0x2fc218=_0x18a14e-(_0x3e9b76[_0x5240f8(0x12d)][_0x5240f8(0x2e5)]||0x0),_0x595260=_0x497d10[_0x2fc218];_0x111e9b['push'](_0x595260),_0x1a27f4[_0x595260]=_0x35bbea[_0x5240f8(0x2e9)](_0x595260)[_0x5240f8(0x111)](),_0x8a75b1[_0x5240f8(0x37f)](_0x215786)['refreshDataField'](_0x595260,_0x3e9b76,_0x2fc218,_0x58d81d);}_0x35bbea[_0x5240f8(0x319)](_0x111e9b)['forEach'](_0x1bea10=>{const _0x1ba771=_0x5240f8,[_0x475ac5,_0x1fe92d]=_0x1bea10,_0xbf9a9d=_0x35bbea[_0x1ba771(0x2e9)](_0x475ac5),_0xe07a7d=_0x35bbea[_0x1ba771(0x2e9)](_0x1fe92d);_0xbf9a9d&&_0xe07a7d&&_0xbf9a9d['refreshGroupField'](_0xe07a7d);}),_0x35bbea[_0x5240f8(0x1e5)]();const _0xd87c54=_0x8a75b1[_0x5240f8(0xcc)](_0x51dcef);if(_0xd87c54){_0x2d3bad(_0xd87c54,_0x1a27f4,_0x17b0f2),_0xd87c54['setDirty'](!0x0);const _0x284a0b=_0xd87c54[_0x5240f8(0x349)](),_0x50e02c=_0x8a75b1['getPivotTableConfig'](_0x311624,_0xa10dac,_0x51dcef),_0x13c621=_0x8a75b1[_0x5240f8(0x37f)](_0x215786)['toJSON']();_0x8a75b1['updateView'](_0x311624,_0xa10dac,_0x1fd0cc[_0x5240f8(0x2b6)],_0x51dcef,_0x284a0b,_0x50e02c,_0x13c621,!0x0);}}return this['getDirtyInfo'](_0x311624,_0xa10dac,_0x51dcef);}});}[_0x3b026f(0x154)](_0x42dc48,_0x53ae6a,_0x557c7b){var _0x58b30c,_0x9d1811;const {arrayFormulaCellData:_0x141359,unitData:_0xfc615a}=_0x557c7b,_0x3d4fc9=(_0x58b30c=_0x141359==null?void 0x0:_0x141359[_0x42dc48])==null?void 0x0:_0x58b30c[_0x53ae6a],_0x4d4333=(_0x9d1811=_0xfc615a==null?void 0x0:_0xfc615a[_0x42dc48])==null?void 0x0:_0x9d1811[_0x53ae6a];return{'arrayFormulaCellDataMatrix':_0x3d4fc9,'unitDataMatrix':_0x4d4333};}[_0x3b026f(0x316)](_0x5f3f0b,_0xaf542a,_0x38d821){const _0x5bfe0f=_0x3b026f,_0x32b9e5=this[_0x5bfe0f(0x339)][_0x5bfe0f(0x2f7)](_0x5f3f0b,_0xaf542a,_0x38d821),_0x1c51dd=[],_0x1c78f1=new _0x22b490[(_0x5bfe0f(0x398))]();if(_0x32b9e5){const {rangeCache:_0x976aab,matrix:_0x21ecb6,oldRangeCache:_0x94ee3b,oldMatrix:_0x14da0f}=_0x32b9e5,_0x4280f2=_0xfd99c7(_0x94ee3b),_0x3a231a=_0xfd99c7(_0x976aab);_0x1c51dd[_0x5bfe0f(0x1b3)](..._0x3a231a,..._0x4280f2),_0x14da0f&&_0x94ee3b&&_0x4280f2[_0x5bfe0f(0x38c)](_0xa2f757=>{const _0x66889d=_0x5bfe0f;for(let _0x25bb7b=_0xa2f757[_0x66889d(0x284)];_0x25bb7b<=_0xa2f757['endRow'];_0x25bb7b++)for(let _0x4d3659=_0xa2f757[_0x66889d(0x2e5)];_0x4d3659<=_0xa2f757['endColumn'];_0x4d3659++)_0x1c78f1[_0x66889d(0xd5)](_0x25bb7b,_0x4d3659);}),_0x21ecb6&&_0x3a231a&&_0x3a231a[_0x5bfe0f(0x38c)](_0x545b91=>{const _0x5e5d02=_0x5bfe0f;for(let _0x507d07=_0x545b91[_0x5e5d02(0x284)];_0x507d07<=_0x545b91[_0x5e5d02(0x15d)];_0x507d07++)for(let _0x161119=_0x545b91[_0x5e5d02(0x2e5)];_0x161119<=_0x545b91[_0x5e5d02(0xe2)];_0x161119++)_0x1c78f1[_0x5e5d02(0x194)](_0x507d07,_0x161119,_0x21ecb6[_0x5e5d02(0xc2)](_0x507d07,_0x161119));});}const _0x3abb55={};return _0x3abb55[_0x5f3f0b]={[_0xaf542a]:_0x2fc95b(_0x1c51dd)},{'runtimeCellData':{[_0x5f3f0b]:{[_0xaf542a]:_0x1c78f1}},'dirtyRanges':_0x3abb55};}[_0x3b026f(0x209)](){}};_0x523420=_0x43e415([_0x46d7e4(0x0,_0x22b490[_0x3b026f(0xb8)](_0x4b10df['SheetsPivotDataSourceModel'])),_0x46d7e4(0x1,_0x22b490[_0x3b026f(0x145)]),_0x46d7e4(0x2,_0x22b490[_0x3b026f(0xb8)](_0x2189f1[_0x3b026f(0xdf)])),_0x46d7e4(0x3,_0x22b490[_0x3b026f(0xb8)](_0x22b490[_0x3b026f(0x2fe)])),_0x46d7e4(0x4,_0x22b490['Inject'](_0x2189f1[_0x3b026f(0x324)])),_0x46d7e4(0x5,_0x22b490[_0x3b026f(0xb8)](_0x22b490['Injector']))],_0x523420);var _0x31f6e6=Object['getOwnPropertyDescriptor'],_0x4791f9=(_0x39235b,_0x26c8e1,_0x116f4d,_0x488b67)=>{const _0x52e5e3=_0x3b026f;for(var _0x58128f=_0x488b67>0x1?void 0x0:_0x488b67?_0x31f6e6(_0x26c8e1,_0x116f4d):_0x26c8e1,_0x28c566=_0x39235b[_0x52e5e3(0x28e)]-0x1,_0x1c47eb;_0x28c566>=0x0;_0x28c566--)(_0x1c47eb=_0x39235b[_0x28c566])&&(_0x58128f=_0x1c47eb(_0x58128f)||_0x58128f);return _0x58128f;},_0x2daceb=(_0x4a6627,_0x3fd51d)=>(_0x458c66,_0x25d4ae)=>_0x3fd51d(_0x458c66,_0x25d4ae,_0x4a6627);let _0x576c30=class extends _0x22b490[_0x3b026f(0x2ab)]{constructor(_0x5da3e9,_0x1e3978,_0x2c81be,_0x1c0ef5){const _0x66192b=_0x3b026f;super(),_0x57dd8e(this,_0x66192b(0x179),new _0x22b490[(_0x66192b(0x256))]()),(this['_univerInstanceService']=_0x5da3e9,this['_sheetInterceptorService']=_0x1e3978,this[_0x66192b(0x100)]=_0x2c81be,this[_0x66192b(0xea)]=_0x1c0ef5,this[_0x66192b(0x327)]());}['_initClearSelectionCommandInterceptor'](){const _0x44806f=_0x3b026f;this[_0x44806f(0x2ea)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x53dfb8=>{const _0x312e45=_0x44806f;if(_0x53dfb8['id']===_0x2c7bf0[_0x312e45(0x142)]['id']||_0x53dfb8['id']===_0x2c7bf0[_0x312e45(0x22c)]['id']){const _0x4af0a9=[],_0x54380a=[],_0x3e1a9c=this[_0x312e45(0x100)][_0x312e45(0x32d)]()[_0x312e45(0x28d)](_0x2e02ab=>_0x2e02ab[_0x312e45(0x12d)]),_0x48a5f6=_0x2c7bf0[_0x312e45(0x28a)](this[_0x312e45(0x2a0)]);if(!_0x48a5f6)return{'redos':[],'undos':[]};const {unitId:_0x2934fa,subUnitId:_0x365c0c}=_0x48a5f6,_0x22f41f={},_0x3191cf=this[_0x312e45(0xea)][_0x312e45(0x2f9)](_0x2934fa,_0x365c0c);if(_0x3191cf!=null&&_0x3191cf[_0x312e45(0x15e)])for(const [_0x5b863b,_0x307e5b]of _0x3191cf){const {unitId:_0x1756e7,subUnitId:_0x4c5adb,row:_0x4b1c1c,col:_0x373914}=_0x307e5b[_0x312e45(0x157)];_0x1756e7===_0x48a5f6['unitId']&&_0x4c5adb===_0x48a5f6[_0x312e45(0x214)]&&(_0x22f41f[_0x4b1c1c+'-'+_0x373914]=_0x5b863b);}return _0x3e1a9c&&_0x48a5f6&&_0x3e1a9c[_0x312e45(0x38c)](_0x4267f6=>{const _0x2965bc=_0x312e45;_0x22b490[_0x2965bc(0x14f)]['foreach'](_0x4267f6,(_0x185fb4,_0x2fe02b)=>{const _0x4fcb67=_0x2965bc,_0x1768d1=_0x185fb4+'-'+_0x2fe02b;if(_0x22f41f[_0x1768d1]){const _0x34fc03=_0x22f41f[_0x1768d1];_0x4af0a9['push']({'id':_0x2b2613['id'],'params':{'unitId':_0x2934fa,'subUnitId':_0x365c0c,'pivotTableId':_0x34fc03}});const _0x4869a5=this[_0x4fcb67(0xea)][_0x4fcb67(0x14d)](_0x2934fa,_0x34fc03),_0xf57869=this[_0x4fcb67(0xea)][_0x4fcb67(0x26f)](_0x2934fa,_0x365c0c,_0x34fc03);_0x54380a[_0x4fcb67(0x1b3)]({'id':_0x4a007b['id'],'params':{'unitId':_0x2934fa,'subUnitId':_0x365c0c,'pivotTableId':_0x34fc03,'pivotTableConfig':_0xf57869,'collectionConfig':_0x4869a5}});}});}),{'redos':_0x4af0a9,'undos':_0x54380a};}return{'redos':[],'undos':[]};}}));}};_0x576c30=_0x4791f9([_0x2daceb(0x0,_0x22b490[_0x3b026f(0x276)]),_0x2daceb(0x1,_0x22b490['Inject'](_0x2c7bf0[_0x3b026f(0x37c)])),_0x2daceb(0x2,_0x22b490[_0x3b026f(0xb8)](_0x2c7bf0[_0x3b026f(0x93)])),_0x2daceb(0x3,_0x22b490[_0x3b026f(0xb8)](_0x4b10df['SheetsPivotTableConfigModel']))],_0x576c30);var _0xd24434=Object[_0x3b026f(0xd7)],_0x1226b6=(_0x1c97a8,_0x35f2c7,_0x457fbf,_0x38c352)=>{const _0xea6ddd=_0x3b026f;for(var _0x515fe0=_0x38c352>0x1?void 0x0:_0x38c352?_0xd24434(_0x35f2c7,_0x457fbf):_0x35f2c7,_0xe3acd5=_0x1c97a8[_0xea6ddd(0x28e)]-0x1,_0x567543;_0xe3acd5>=0x0;_0xe3acd5--)(_0x567543=_0x1c97a8[_0xe3acd5])&&(_0x515fe0=_0x567543(_0x515fe0)||_0x515fe0);return _0x515fe0;},_0x40544e=(_0x84096e,_0x7a96a7)=>(_0x5e07d0,_0x36c0dc)=>_0x7a96a7(_0x5e07d0,_0x36c0dc,_0x84096e);let _0x5daa4c=class extends _0x22b490[_0x3b026f(0x2ab)]{constructor(_0x47b219,_0x4f0270,_0x2785d9,_0x4d6169,_0x1d9ec9,_0x164741){const _0x23f589=_0x3b026f;super(),this[_0x23f589(0x34a)]=_0x47b219,this[_0x23f589(0x23c)]=_0x4f0270,this[_0x23f589(0xf5)]=_0x2785d9,this[_0x23f589(0x2a0)]=_0x4d6169,this[_0x23f589(0xea)]=_0x1d9ec9,this[_0x23f589(0x330)]=_0x164741,this['_initCommandInterceptListener']();}['_getPivotAppliedRanges'](_0x19b8a4,_0x297eaa,_0x54f17a){const _0x40ec0a=_0x3b026f,{pageView:_0x40573a,cornerView:_0x1f41c3,rowView:_0x2f04a8,colView:_0x2f233a,dataView:_0x1e1c3e}=_0x297eaa,_0x1b6e24=_0x19b8a4;let _0x54b324;if(_0x54f17a)_0x54b324=[..._0x1e19fb(_0x1b6e24)];else{const _0x511d74=_0x47bb47(_0x1b6e24,_0x40573a,!0x0),_0xae745e=_0x40573a[_0x40ec0a(0x15f)]>=0x0?_0x40573a[_0x40ec0a(0x15f)]+0x1:0x0,_0x151f53=_0x1f41c3['rowCount'],_0x2805f2=_0x1f41c3[_0x40ec0a(0x325)],_0x596f83=_0x511d74[_0x40ec0a(0x28e)]>0x0?_0x365ec8:0x0,_0x2b5057=_0x47bb47({'row':_0x1b6e24['row']+_0xae745e+_0x596f83,'col':_0x1b6e24[_0x40ec0a(0x185)]},_0x1f41c3,!0x1,!0x1),_0x1532e1=_0x47bb47({'row':_0x1b6e24[_0x40ec0a(0x2e2)]+_0xae745e+_0x596f83+_0x151f53,'col':_0x1b6e24[_0x40ec0a(0x185)]},_0x2f04a8,!0x1,!0x0),_0x39c2e2=_0x47bb47({'row':_0x1b6e24['row']+_0xae745e+_0x596f83,'col':_0x1b6e24[_0x40ec0a(0x185)]+_0x2805f2},_0x2f233a,!0x1,!0x0),_0x363e22=_0x47bb47({'row':_0x1b6e24[_0x40ec0a(0x2e2)]+_0xae745e+_0x596f83+_0x151f53,'col':_0x1b6e24[_0x40ec0a(0x185)]+_0x2805f2},_0x1e1c3e,!0x1,!0x0);_0x54b324=[..._0x511d74,..._0x2b5057,..._0x1532e1,..._0x39c2e2,..._0x363e22];}return _0x54b324;}[_0x3b026f(0x22a)](){const _0x1f230f=_0x3b026f;this[_0x1f230f(0x2ea)](this[_0x1f230f(0x330)]['interceptor']['intercept'](this['_sheetsPivotTableService'][_0x1f230f(0x2c8)][_0x1f230f(0x18d)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x4dabf6,_0x52c293)=>{const _0x3c4ad1=_0x1f230f,{cellInfo:_0x11d5a0,view:_0x45210a,isEmpty:_0x3ee392}=_0x52c293,_0x44f7d3=_0x11d5a0,{unitId:_0x398e4a,subUnitId:_0x21a1e9}=_0x44f7d3,_0x219dab=this[_0x3c4ad1(0x343)](_0x11d5a0,_0x45210a,_0x3ee392),_0x51738e=this['_sheetInterceptorService']['generateMutationsByRanges']({'unitId':_0x398e4a,'subUnitId':_0x21a1e9,'ranges':_0x219dab}),_0x3538a6=_0xbdd905(this[_0x3c4ad1(0xf5)],_0x398e4a,_0x21a1e9,_0x219dab);_0x3538a6[_0x3c4ad1(0x117)]&&(_0x51738e[_0x3c4ad1(0x29c)]['push'](_0x3538a6[_0x3c4ad1(0x1da)]),_0x51738e[_0x3c4ad1(0x36b)][_0x3c4ad1(0x1b3)](_0x3538a6['setRangeValueUndoMutation']));const _0x20e170=this[_0x3c4ad1(0x164)](_0x45210a,_0x11d5a0);return _0x51738e[_0x3c4ad1(0x29c)][_0x3c4ad1(0x1b3)](..._0x20e170['redos']),_0x51738e[_0x3c4ad1(0x36b)][_0x3c4ad1(0x1b3)](..._0x20e170[_0x3c4ad1(0x36b)]),{'redos':_0x51738e[_0x3c4ad1(0x29c)],'undos':_0x51738e['undos']};}}));}['getAutoFitColumnsMutations'](_0x3a8474,_0x43d7d1){const _0x3714f4=_0x3b026f,{col:_0x12faae,unitId:_0x491ba2,subUnitId:_0x2f714c}=_0x43d7d1,_0x13812f=[],_0x15e4c2=[],_0x226497=_0x2c7bf0[_0x3714f4(0x28a)](this[_0x3714f4(0x2a0)],{'unitId':_0x491ba2,'subUnitId':_0x2f714c});if(!_0x43d7d1||!_0x3a8474||!_0x226497)return{'undos':_0x15e4c2,'redos':_0x13812f};const _0x30e57e=this[_0x3714f4(0xea)][_0x3714f4(0x1d2)](),{colView:_0x214d44,dataView:_0x5ad12e,cornerView:_0x620014,rowView:_0x3dda7e,formatMap:_0x461aa1}=_0x3a8474,_0x38a06b=_0x598323(_0x214d44,_0x30e57e,!0x0,_0x461aa1),_0x426048=_0x598323(_0x3dda7e,_0x30e57e,!0x1,_0x461aa1),_0x490d42=_0x34a0fb(_0x5ad12e),_0x24c9b3=_0x160e08(_0x620014),{worksheet:_0x1780a2}=_0x226497;if(typeof window<'u'&&window[_0x3714f4(0x1dd)]){const _0xe0d963=_0x3d7aa2[_0x3714f4(0x1ce)]({..._0x27e686['colStyle']}),_0x13423a=_0x3d7aa2['FontCache'][_0x3714f4(0x15a)](_0x38a06b,_0xe0d963)[_0x3714f4(0x216)]+0x10,_0x2c3e43=_0x3d7aa2[_0x3714f4(0x12b)][_0x3714f4(0x15a)](_0x490d42,_0xe0d963)['width'],_0xa95d07=Math[_0x3714f4(0x359)](Math['max'](_0x13423a,_0x2c3e43))+0x10,_0x1d32be=Math[_0x3714f4(0x359)](_0x3d7aa2[_0x3714f4(0x12b)][_0x3714f4(0x15a)](_0x426048,_0xe0d963)['width']),_0x5e6a76=Math['floor'](_0x3d7aa2[_0x3714f4(0x12b)][_0x3714f4(0x15a)](_0x24c9b3,_0xe0d963)[_0x3714f4(0x216)]),_0xd593d2=Math[_0x3714f4(0x178)](_0x1d32be,_0x5e6a76,0x28)+0xc,_0x208ba0=_0x214d44[_0x3714f4(0x325)]+_0x620014[_0x3714f4(0x325)],_0xe9837d={},_0x3a4679={};for(let _0x390ff5=_0x12faae;_0x390ff5<_0x12faae+_0x208ba0;_0x390ff5++){const _0x5458cf=_0x1780a2[_0x3714f4(0x29f)](_0x390ff5);_0xe9837d[_0x390ff5]=_0x5458cf,_0x390ff5-_0x12faae<_0x620014[_0x3714f4(0x325)]?_0x3a4679[_0x390ff5-_0x12faae]=_0xd593d2:_0x3a4679[_0x390ff5-_0x12faae]=_0xa95d07;}_0x13812f[_0x3714f4(0x1b3)]({'id':_0x2c7bf0['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x2f714c,'unitId':_0x491ba2,'ranges':[{'startColumn':_0x12faae,'endColumn':_0x12faae+_0x208ba0-0x1,'startRow':0x0,'endRow':_0x1780a2[_0x3714f4(0x33a)]()-0x1}],'colWidth':_0x3a4679}}),_0x15e4c2[_0x3714f4(0x1b3)]({'id':_0x2c7bf0[_0x3714f4(0x25b)]['id'],'params':{'subUnitId':_0x2f714c,'unitId':_0x491ba2,'ranges':[{'startColumn':_0x12faae,'endColumn':_0x12faae+_0x208ba0-0x1,'startRow':0x0,'endRow':_0x1780a2[_0x3714f4(0x33a)]()-0x1}],'colWidth':_0xe9837d}});}return{'undos':_0x15e4c2,'redos':_0x13812f};}};_0x5daa4c=_0x1226b6([_0x40544e(0x0,_0x22b490['Inject'](_0x22b490[_0x3b026f(0x2f1)])),_0x40544e(0x1,_0x22b490['Inject'](_0x2c7bf0[_0x3b026f(0x37c)])),_0x40544e(0x2,_0x22b490[_0x3b026f(0xb8)](_0x22b490[_0x3b026f(0x227)])),_0x40544e(0x3,_0x22b490[_0x3b026f(0xb8)](_0x22b490['IUniverInstanceService'])),_0x40544e(0x4,_0x22b490[_0x3b026f(0xb8)](_0x4b10df[_0x3b026f(0x125)])),_0x40544e(0x5,_0x22b490[_0x3b026f(0xb8)](_0x4b10df[_0x3b026f(0x206)]))],_0x5daa4c);var _0x1a467a=Object[_0x3b026f(0xd7)],_0x193b21=(_0x475912,_0x24e2fd,_0x23edf3,_0x1cc85a)=>{const _0xfa2af2=_0x3b026f;for(var _0x3fff1c=_0x1cc85a>0x1?void 0x0:_0x1cc85a?_0x1a467a(_0x24e2fd,_0x23edf3):_0x24e2fd,_0xcc7150=_0x475912[_0xfa2af2(0x28e)]-0x1,_0x2ac4f1;_0xcc7150>=0x0;_0xcc7150--)(_0x2ac4f1=_0x475912[_0xcc7150])&&(_0x3fff1c=_0x2ac4f1(_0x3fff1c)||_0x3fff1c);return _0x3fff1c;},_0xc39ad0=(_0xecea74,_0x51bbd9)=>(_0x16b66f,_0x585b14)=>_0x51bbd9(_0x16b66f,_0x585b14,_0xecea74);let _0x353160=class extends _0x22b490[_0x3b026f(0x2ab)]{constructor(_0x427c0e,_0x54d6bc,_0x25e1e8,_0x5161d2,_0xd5190,_0x33ab64,_0x5b5e99){const _0x405cb3=_0x3b026f;super(),_0x57dd8e(this,_0x405cb3(0x179),new _0x22b490['DisposableCollection']()),(this[_0x405cb3(0xf5)]=_0x427c0e,this[_0x405cb3(0xcd)]=_0x54d6bc,this[_0x405cb3(0x1c7)]=_0x25e1e8,this['_univerInstanceService']=_0x5161d2,this[_0x405cb3(0xea)]=_0xd5190,this[_0x405cb3(0x283)]=_0x33ab64,this[_0x405cb3(0x23c)]=_0x5b5e99,this[_0x405cb3(0x242)]());}[_0x3b026f(0x242)](){const _0x12ba75=_0x3b026f,_0x40e6fb=(_0x446dd7,_0x5e772e)=>{const _0x2a3c66=_0x466a,_0x17d50a=this[_0x2a3c66(0x2a0)]['getCurrentUnitForType'](_0x22b490['UniverInstanceType']['UNIVER_SHEET']);if(!_0x17d50a||!(_0x17d50a==null?void 0x0:_0x17d50a['getSheetBySheetId'](_0x5e772e)))return;this[_0x2a3c66(0x179)][_0x2a3c66(0x209)]();const _0x1df9a9=_0x4e7e57=>this[_0x2a3c66(0x196)](_0x4e7e57,_0x446dd7,_0x5e772e),_0xff310d=this[_0x2a3c66(0xea)][_0x2a3c66(0x2f9)](_0x446dd7,_0x5e772e);if(!(_0xff310d!=null&&_0xff310d[_0x2a3c66(0x15e)]))return;Array[_0x2a3c66(0x2ae)](_0xff310d[_0x2a3c66(0x248)]())[_0x2a3c66(0x28d)](_0x30b46f=>{const _0x11bebf=_0x2a3c66,{row:_0x1449c9,col:_0x34c9c0}=_0x30b46f[_0x11bebf(0x157)];return _0x22b490[_0x11bebf(0x1cc)](_0x1449c9,_0x34c9c0);})['forEach'](_0x3a1bfc=>{const _0x1add30=_0x2a3c66;this[_0x1add30(0x179)][_0x1add30(0x208)](this[_0x1add30(0xcd)][_0x1add30(0x1e1)](_0x3a1bfc,_0x1df9a9,_0x446dd7,_0x5e772e));});},_0x3fb9f7=()=>{const _0x43a7b1=_0x466a,_0x133951=this['_univerInstanceService'][_0x43a7b1(0x28c)](_0x22b490[_0x43a7b1(0x8f)][_0x43a7b1(0x19f)]);if(_0x133951){const _0xf432e5=_0x133951[_0x43a7b1(0x267)]();if(!_0xf432e5)return;_0x40e6fb(_0x133951[_0x43a7b1(0x95)](),_0xf432e5[_0x43a7b1(0x121)]());}};this[_0x12ba75(0x2ea)](this[_0x12ba75(0x1c7)][_0x12ba75(0x268)](_0x21c5e6=>{const _0x2c4d75=_0x12ba75;if(_0x21c5e6['id']===_0x2c7bf0[_0x2c4d75(0x254)]['id']){const _0x5f0ea2=_0x21c5e6[_0x2c4d75(0x265)],_0x5906af=_0x5f0ea2[_0x2c4d75(0x214)],_0x5d9ed5=_0x5f0ea2[_0x2c4d75(0xbb)];if(!_0x5906af||!_0x5d9ed5)return;_0x40e6fb(_0x5d9ed5,_0x5906af);}})),this[_0x12ba75(0x2ea)](this[_0x12ba75(0xea)]['pivotInitCompleted$']['subscribe'](_0x1b00cb=>{_0x1b00cb&&_0x3fb9f7();})),this['disposeWithMe'](this[_0x12ba75(0xea)][_0x12ba75(0x2da)][_0x12ba75(0x2ce)](_0x5d2b0e=>{const _0x287055=_0x12ba75,_0x12bdbb=_0x2c7bf0[_0x287055(0x28a)](this['_univerInstanceService']);if(!_0x12bdbb)return;const {unitId:_0x45720d,subUnitId:_0x11fe89}=_0x12bdbb,{unitId:_0x494602,subUnitId:_0x5a66c6}=_0x5d2b0e;_0x45720d!==_0x494602||_0x11fe89!==_0x5a66c6||_0x40e6fb(_0x45720d,_0x11fe89);})),_0x3fb9f7();}[_0x3b026f(0x196)](_0x2910de,_0x28f271,_0x4900a0){const _0x1f6cb6=_0x3b026f;switch(_0x2910de['id']){case _0x2c7bf0[_0x1f6cb6(0x75)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x2910de['params'],_0x28f271,_0x4900a0);}return{'redos':[],'undos':[]};}[_0x3b026f(0x363)](_0x35601b,_0x38173d,_0x3633da){const _0xf8c84=_0x3b026f,{fromRange:_0x5adc82,toRange:_0x2a5272}=_0x35601b,_0x4e53e6=[],_0x305eb0=[],_0x2e4b16=_0x2c7bf0[_0xf8c84(0x28a)](this[_0xf8c84(0x2a0)]);if(!_0x2e4b16)return{'undos':_0x305eb0,'redos':_0x4e53e6};if(_0x38173d!==_0x2e4b16[_0xf8c84(0xbb)]||_0x3633da!==_0x2e4b16[_0xf8c84(0x214)])return{'undos':_0x305eb0,'redos':_0x4e53e6};const _0x599613=this[_0xf8c84(0xea)]['getSubUnitPivotConfigs'](_0x38173d,_0x3633da);if(_0x599613!=null&&_0x599613[_0xf8c84(0x15e)])for(const [_0x1ca40e,_0x5656e1]of _0x599613){const {unitId:_0x1599b0,subUnitId:_0x4bb42d,row:_0x491ddf,col:_0x5bb8b0}=_0x5656e1[_0xf8c84(0x157)];if(_0x1599b0===_0x2e4b16['unitId']&&_0x4bb42d===_0x2e4b16['subUnitId']){const _0x9ad454=_0x22b490[_0xf8c84(0x1cc)](_0x491ddf,_0x5bb8b0);if(_0x22b490[_0xf8c84(0x36e)]['intersects'](_0x9ad454,_0x5adc82)){const _0x2d7856=_0x491ddf-_0x5adc82['startRow'],_0x2e6cf0=_0x5bb8b0-_0x5adc82[_0xf8c84(0x2e5)],_0x2eac7e={'row':_0x2a5272['startRow']+_0x2d7856,'col':_0x2a5272['startColumn']+_0x2e6cf0};_0x4e53e6['push']({'id':_0x2b9b15['id'],'params':{'unitId':_0x1599b0,'subUnitId':_0x4bb42d,'pivotTableId':_0x1ca40e,'targetCellPosition':_0x2eac7e}}),_0x305eb0[_0xf8c84(0x1b3)]({'id':_0x2b9b15['id'],'params':{'unitId':_0x1599b0,'subUnitId':_0x4bb42d,'pivotTableId':_0x1ca40e,'targetCellPosition':{'row':_0x491ddf,'col':_0x5bb8b0}}});const _0x40b338=_0x2eac7e[_0xf8c84(0x2e2)]-_0x491ddf,_0x5a6cc8=_0x2eac7e[_0xf8c84(0x185)]-_0x5bb8b0,_0x38dff3=[],_0x57e7a6=this[_0xf8c84(0x283)][_0xf8c84(0x310)](_0x1599b0,_0x4bb42d,_0x1ca40e),_0x1635ea=_0x57e7a6==null?void 0x0:_0x57e7a6[_0xf8c84(0x172)];if(_0x1635ea){Object[_0xf8c84(0x226)](_0x1635ea)['forEach'](_0x4f46d5=>{const _0x210f59=_0xf8c84;_0x1635ea[_0x4f46d5][_0x210f59(0x38c)](_0xbe37a4=>{const _0x17043a=_0x210f59,_0x339c27={..._0xbe37a4};_0x339c27[_0x17043a(0x284)]=_0xbe37a4[_0x17043a(0x284)]+_0x40b338,_0x339c27[_0x17043a(0x15d)]=_0xbe37a4[_0x17043a(0x15d)]+_0x40b338,_0x339c27[_0x17043a(0x2e5)]=_0xbe37a4[_0x17043a(0x2e5)]+_0x5a6cc8,_0x339c27['endColumn']=_0xbe37a4[_0x17043a(0xe2)]+_0x5a6cc8,_0x38dff3[_0x17043a(0x1b3)](_0x339c27);});});const _0x358b97=this[_0xf8c84(0x23c)][_0xf8c84(0x1ba)]({'unitId':_0x1599b0,'subUnitId':_0x4bb42d,'ranges':_0x38dff3});_0x4e53e6['push'](..._0x358b97[_0xf8c84(0x29c)]),_0x305eb0[_0xf8c84(0x1b3)](..._0x358b97['undos']);const _0x3141a0=_0xbdd905(this[_0xf8c84(0xf5)],_0x1599b0,_0x4bb42d,_0x38dff3);_0x3141a0['shouldClear']&&(_0x4e53e6[_0xf8c84(0x1b3)](_0x3141a0['setRangeValueRedoMutation']),_0x305eb0[_0xf8c84(0x1b3)](_0x3141a0['setRangeValueUndoMutation']));}}}}return{'redos':_0x4e53e6,'undos':_0x305eb0};}};_0x353160=_0x193b21([_0xc39ad0(0x0,_0x22b490[_0x3b026f(0xb8)](_0x22b490[_0x3b026f(0x227)])),_0xc39ad0(0x1,_0x22b490[_0x3b026f(0xb8)](_0x2c7bf0[_0x3b026f(0xfd)])),_0xc39ad0(0x2,_0x22b490[_0x3b026f(0x2fe)]),_0xc39ad0(0x3,_0x22b490[_0x3b026f(0x276)]),_0xc39ad0(0x4,_0x22b490['Inject'](_0x4b10df[_0x3b026f(0x125)])),_0xc39ad0(0x5,_0x22b490['Inject'](_0x4b10df[_0x3b026f(0x2f6)])),_0xc39ad0(0x6,_0x22b490['Inject'](_0x2c7bf0[_0x3b026f(0x37c)]))],_0x353160);var _0x55e3e5=Object[_0x3b026f(0xd7)],_0x45b233=(_0x4c6f55,_0x23a864,_0x102138,_0x409170)=>{const _0x2f353f=_0x3b026f;for(var _0x18a0c8=_0x409170>0x1?void 0x0:_0x409170?_0x55e3e5(_0x23a864,_0x102138):_0x23a864,_0x489561=_0x4c6f55[_0x2f353f(0x28e)]-0x1,_0x6e1aea;_0x489561>=0x0;_0x489561--)(_0x6e1aea=_0x4c6f55[_0x489561])&&(_0x18a0c8=_0x6e1aea(_0x18a0c8)||_0x18a0c8);return _0x18a0c8;},_0x1cb2a2=(_0x26c492,_0x2db6c7)=>(_0x93a651,_0x1409b6)=>_0x2db6c7(_0x93a651,_0x1409b6,_0x26c492);let _0x2e9bfd=class extends _0x22b490[_0x3b026f(0x2ab)]{constructor(_0x5a68e2,_0x3275ef){const _0x124513=_0x3b026f;super(),this[_0x124513(0x23c)]=_0x5a68e2,this[_0x124513(0xea)]=_0x3275ef,this[_0x124513(0x272)]();}[_0x3b026f(0x272)](){const _0x1bcd50=_0x3b026f;this[_0x1bcd50(0x2ea)](this[_0x1bcd50(0x23c)][_0x1bcd50(0x1a8)]({'getMutations':_0x341905=>{const _0x46956b=_0x1bcd50;if(_0x341905['id']===_0x2c7bf0[_0x46956b(0xfa)]['id']){const _0x1b302b=[],_0x5c65e5=[],_0x26be3c=_0x341905['params'],{unitId:_0x52c929,subUnitId:_0x1616b7}=_0x26be3c;if(!_0x52c929||!_0x1616b7)return{'undos':_0x5c65e5,'redos':_0x1b302b};const _0x3e9a=this['_sheetsPivotTableConfigModel'][_0x46956b(0x2f9)](_0x52c929,_0x1616b7);if(_0x3e9a!=null&&_0x3e9a[_0x46956b(0x15e)])for(const [_0x397112,_0x1a7af8]of _0x3e9a){_0x1b302b[_0x46956b(0x1b3)]({'id':_0x2b2613['id'],'params':{'unitId':_0x52c929,'subUnitId':_0x1616b7,'pivotTableId':_0x397112}});const _0xba2cfe={...this[_0x46956b(0xea)][_0x46956b(0x14d)](_0x52c929,_0x397112)};_0x5c65e5[_0x46956b(0x1b3)]({'id':_0x4a007b['id'],'params':{'unitId':_0x52c929,'subUnitId':_0x1616b7,'pivotTableId':_0x397112,'pivotTableConfig':_0x1a7af8,'collectionConfig':_0xba2cfe}});}return{'redos':_0x1b302b,'undos':_0x5c65e5};}return{'redos':[],'undos':[]};}}));}};_0x2e9bfd=_0x45b233([_0x1cb2a2(0x0,_0x22b490[_0x3b026f(0xb8)](_0x2c7bf0[_0x3b026f(0x37c)])),_0x1cb2a2(0x1,_0x22b490['Inject'](_0x4b10df[_0x3b026f(0x125)]))],_0x2e9bfd);var _0x513514=Object[_0x3b026f(0xd7)],_0x3805e9=(_0x4cc3bd,_0x2dcab4,_0x3586df,_0x43c755)=>{const _0x1c58d4=_0x3b026f;for(var _0x5bb1dc=_0x43c755>0x1?void 0x0:_0x43c755?_0x513514(_0x2dcab4,_0x3586df):_0x2dcab4,_0x25e4df=_0x4cc3bd[_0x1c58d4(0x28e)]-0x1,_0x573c12;_0x25e4df>=0x0;_0x25e4df--)(_0x573c12=_0x4cc3bd[_0x25e4df])&&(_0x5bb1dc=_0x573c12(_0x5bb1dc)||_0x5bb1dc);return _0x5bb1dc;},_0x136ee9=(_0x30d990,_0x4f9198)=>(_0xc7fa53,_0x57c4f9)=>_0x4f9198(_0xc7fa53,_0x57c4f9,_0x30d990);let _0x1a2afd=class extends _0x22b490[_0x3b026f(0x2ab)]{constructor(_0x4826c0,_0x394d47,_0x3a018c,_0x10bb0d,_0x3d7136,_0x5082f3){const _0x43c2e=_0x3b026f;super(),this[_0x43c2e(0x1c7)]=_0x4826c0,this['_sheetsPivotRpcService']=_0x394d47,this[_0x43c2e(0x283)]=_0x3a018c,this[_0x43c2e(0xea)]=_0x10bb0d,this['_univerInstanceService']=_0x3d7136,this[_0x43c2e(0x318)]=_0x5082f3,this[_0x43c2e(0x2e6)](),this[_0x43c2e(0xf0)]();}['_initDataSendListener'](){const _0x2e1084=_0x3b026f;this[_0x2e1084(0x2ea)](this[_0x2e1084(0x1c7)]['onCommandExecuted'](_0x4f6c96=>{if(_0x4f6c96['id']!==_0x39ada9['id'])return;const _0x1bd791=_0x4f6c96['params'];this['_sheetsPivotRpcService']['handleAsyncResponse'](_0x1bd791);})),this[_0x2e1084(0x2ea)](this[_0x2e1084(0x1c7)][_0x2e1084(0x268)](_0x1cc77f=>{const _0x4ce50d=_0x2e1084;if(_0x1cc77f['id']===_0x2017a3['id']){const _0x551b37=_0x1cc77f['params'];if(_0x551b37){const {unitId:_0x141d31,subUnitId:_0x27324f,oldSubUnitId:_0x20ac14,pivotTableId:_0x254c6e,pivotTableConfig:_0x33550d,collectionConfig:_0x38a878}=_0x551b37;this[_0x4ce50d(0xea)]['updateConfigCache'](_0x141d31,_0x20ac14,_0x551b37[_0x4ce50d(0x2b7)],null),this[_0x4ce50d(0xea)]['updateConfigCache'](_0x141d31,_0x27324f,_0x254c6e,_0x33550d),this[_0x4ce50d(0xea)]['updateCollectionConfig'](_0x141d31,_0x38a878);}}})),this[_0x2e1084(0x2ea)](this[_0x2e1084(0x1c7)][_0x2e1084(0x268)](_0x1a3a98=>{const _0x21e618=_0x2e1084;if(_0x1a3a98['id']!==_0x5973c5['id'])return;const _0x25daef=_0x2c7bf0[_0x21e618(0x28a)](this[_0x21e618(0x2a0)]);if(!_0x25daef)return;const {unitId:_0xf557fc,subUnitId:_0x5dcbd7}=_0x25daef,_0x46c044=_0x1a3a98[_0x21e618(0x265)];if(_0x46c044['collectionConfig']&&Object[_0x21e618(0x226)](_0x46c044[_0x21e618(0x1b9)])['forEach'](_0x206176=>{const _0x37bcaf=_0x21e618;var _0x41ed84;(_0x41ed84=_0x46c044[_0x37bcaf(0x1b9)])!=null&&_0x41ed84[_0x206176]&&this[_0x37bcaf(0xea)][_0x37bcaf(0xde)](_0x206176,_0x46c044[_0x37bcaf(0x1b9)][_0x206176]);}),_0x46c044['single']){const _0x1bc56d=_0x46c044['single'],{unitId:_0xcc7d49,subUnitId:_0x2b0f2b,view:_0x3fd771,pivotTableId:_0x40b856,type:_0x554c69,pivotConfig:_0x23875c}=_0x1bc56d;if(_0x554c69===_0x1fd0cc[_0x21e618(0x35d)])this[_0x21e618(0x283)][_0x21e618(0x180)]({'unitId':_0xcc7d49,'subUnitId':_0x2b0f2b,'pivotTableId':_0x40b856,'type':_0x554c69}),this[_0x21e618(0xea)]['updateConfigCache'](_0xcc7d49,_0x2b0f2b,_0x40b856,null);else{const _0xbb1e27=new _0x40290a['PivotView']();_0xbb1e27[_0x21e618(0x32b)](_0x3fd771),this[_0x21e618(0xea)][_0x21e618(0x108)](_0xcc7d49,_0x2b0f2b,_0x40b856,_0x23875c),this[_0x21e618(0x283)][_0x21e618(0x180)]({'unitId':_0xcc7d49,'subUnitId':_0x2b0f2b,'pivotTableId':_0x40b856,'type':_0x554c69,'view':_0xbb1e27}),this[_0x21e618(0x283)][_0x21e618(0x1b6)]({'unitId':_0xcc7d49,'subUnitId':_0x2b0f2b,'view':_0xbb1e27,'pivotTableId':_0x40b856,'type':_0x554c69});}}else _0x46c044[_0x21e618(0x329)]&&(_0x46c044[_0x21e618(0x329)][_0x21e618(0x38c)](_0x1ca3c5=>{const _0x3c0d8c=_0x21e618,{unitId:_0x4e0767,subUnitId:_0x98cc16,view:_0x3cbb77,pivotTableId:_0x201580,type:_0x1029f2,pivotConfig:_0x3e543f}=_0x1ca3c5,_0x356539=new _0x40290a['PivotView']();_0x356539['formJSON'](_0x3cbb77),this['_sheetsPivotTableConfigModel'][_0x3c0d8c(0x108)](_0x4e0767,_0x98cc16,_0x201580,_0x3e543f),this[_0x3c0d8c(0x283)][_0x3c0d8c(0x1b6)]({'unitId':_0x4e0767,'subUnitId':_0x98cc16,'view':_0x356539,'pivotTableId':_0x201580,'type':_0x1029f2});}),this['_sheetsPivotTableConfigModel'][_0x21e618(0x102)]());this[_0x21e618(0x283)][_0x21e618(0xcb)](_0xf557fc,_0x5dcbd7);}));}[_0x3b026f(0xf0)](){const _0x1222db=_0x3b026f;this[_0x1222db(0x318)][_0x1222db(0x10a)](_0x38644a['id'],{'commandId':_0x38644a['id'],'getDirtyData'(_0x4aa716){const _0x78f653=_0x1222db;return{'dirtyUnitFeatureMap':_0x4aa716[_0x78f653(0x265)]};}});}};_0x1a2afd=_0x3805e9([_0x136ee9(0x0,_0x22b490[_0x3b026f(0xb8)](_0x22b490['ICommandService'])),_0x136ee9(0x1,_0x22b490[_0x3b026f(0xb8)](_0x4b10df[_0x3b026f(0x97)])),_0x136ee9(0x2,_0x22b490[_0x3b026f(0xb8)](_0x4b10df['SheetsPivotTableAdaptorModel'])),_0x136ee9(0x3,_0x22b490[_0x3b026f(0xb8)](_0x4b10df['SheetsPivotTableConfigModel'])),_0x136ee9(0x4,_0x22b490['Inject'](_0x22b490[_0x3b026f(0x276)])),_0x136ee9(0x5,_0x2189f1[_0x3b026f(0x127)])],_0x1a2afd);var _0x4ec1af=Object[_0x3b026f(0x23e)],_0x2a51c2=Object[_0x3b026f(0xd7)],_0x341fd3=(_0x59c428,_0x312a82,_0x418668)=>_0x312a82 in _0x59c428?_0x4ec1af(_0x59c428,_0x312a82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x418668}):_0x59c428[_0x312a82]=_0x418668,_0x18e344=(_0x4b8614,_0x2fbafe,_0x2e25f9,_0x100356)=>{const _0x19b04d=_0x3b026f;for(var _0x465a54=_0x100356>0x1?void 0x0:_0x100356?_0x2a51c2(_0x2fbafe,_0x2e25f9):_0x2fbafe,_0x5e8514=_0x4b8614[_0x19b04d(0x28e)]-0x1,_0x59feb3;_0x5e8514>=0x0;_0x5e8514--)(_0x59feb3=_0x4b8614[_0x5e8514])&&(_0x465a54=_0x59feb3(_0x465a54)||_0x465a54);return _0x465a54;},_0x59ac7d=(_0x49393a,_0xfaf01)=>(_0x24bf69,_0xb9b1c4)=>_0xfaf01(_0x24bf69,_0xb9b1c4,_0x49393a),_0x3d10d6=(_0x7290c8,_0x50493c,_0x5880e7)=>_0x341fd3(_0x7290c8,typeof _0x50493c!=_0x3b026f(0x396)?_0x50493c+'':_0x50493c,_0x5880e7);_0x4b10df['UniverSheetsPivotTablePlugin']=class extends _0x22b490[_0x3b026f(0x18f)]{constructor(_0x41ecb6=_0x2f5106,_0x4faa62,_0x53f3eb,_0x29aab9,_0x4e2e7e){const _0x4155aa=_0x3b026f;super(),this[_0x4155aa(0x305)]=_0x41ecb6,this['_injector']=_0x4faa62,this[_0x4155aa(0x1c7)]=_0x53f3eb,this[_0x4155aa(0x122)]=_0x29aab9,this[_0x4155aa(0x133)]=_0x4e2e7e;const {..._0x4d3528}=_0x22b490[_0x4155aa(0x22f)]({},_0x2f5106,this[_0x4155aa(0x305)]);this['_configService'][_0x4155aa(0xd0)](_0x365664,_0x4d3528),this['_initRegisterCommand'](),this[_0x4155aa(0x1ff)]();}['_initConfig'](){const _0x3d2f77=_0x3b026f;var _0x265c6d;const _0x22d545=(_0x265c6d=this[_0x3d2f77(0x305)])==null?void 0x0:_0x265c6d[_0x3d2f77(0xe8)];this[_0x3d2f77(0x122)][_0x3d2f77(0xd0)](_0x1ca274,_0x22d545===!0x0);}[_0x3b026f(0x13c)](){const _0x566df2=_0x3b026f;var _0x3c9dbd;let _0x205e6b=[];const _0x1ee168=(_0x3c9dbd=this[_0x566df2(0x305)])==null?void 0x0:_0x3c9dbd[_0x566df2(0xe8)];_0x1ee168===!0x0?_0x205e6b=[[_0x4b10df[_0x566df2(0x206)]],[_0x4b10df[_0x566df2(0x97)]],[_0x1a2afd],[_0x4b10df[_0x566df2(0x2f6)]],[_0x4b10df[_0x566df2(0x125)]],[_0x2e9bfd],[_0x576c30],[_0x353160],[_0x5daa4c]]:_0x1ee168===!0x1?_0x205e6b=[[_0x4b10df[_0x566df2(0x19b)]],[_0x523420]]:_0x1ee168===void 0x0&&(_0x205e6b=[[_0x4b10df['SheetsPivotDataSourceModel']],[_0x523420],[_0x4b10df['SheetsPivotTableService']],[_0x4b10df[_0x566df2(0x97)]],[_0x1a2afd],[_0x4b10df[_0x566df2(0x2f6)]],[_0x4b10df[_0x566df2(0x125)]],[_0x2e9bfd],[_0x576c30],[_0x353160],[_0x5daa4c]]),_0x205e6b[_0x566df2(0x38c)](_0x13796d=>this[_0x566df2(0xf5)]['add'](_0x13796d)),[_0x523420,_0x1a2afd,_0x4b10df['SheetsPivotTableService'],_0x576c30,_0x2e9bfd,_0x353160,_0x5daa4c]['forEach'](_0x38433c=>{const _0x5ed8fc=_0x566df2;this[_0x5ed8fc(0xf5)][_0x5ed8fc(0x188)](_0x38433c)&&this[_0x5ed8fc(0xf5)][_0x5ed8fc(0x257)](_0x38433c);});}['_initRegisterCommand'](){const _0x37f9ec=_0x3b026f;[_0x23172e,_0x3b098c,_0x12acfe,_0x4f3980,_0x281f45,_0x51070e,_0x3b34be,_0x27d6e0,_0x35c66c,_0x125e7a,_0x1c7e24,_0x7f7a82,_0xd82ba8,_0xe7cd56,_0x4a007b,_0x4f1906,_0x2b2613,_0x394516,_0x3d2fcc,_0x3616d4,_0x44a819,_0x11f84a,_0x1ff897,_0x57bb3b,_0x508ca4,_0x130a02,_0x2b9b15,_0x5c2ddd,_0x39ada9,_0x5973c5,_0x245b51,_0x1dd788,_0xccef87,_0x1559d7,_0x5461f8,_0x4b2b87,_0x4e8a15,_0x38644a,_0x2017a3,_0x1a2f00,_0x59797f,_0x59efea,_0x502568][_0x37f9ec(0x38c)](_0x4837a2=>{const _0x18a719=_0x37f9ec;var _0x436da9;(_0x436da9=this['_dataSyncPrimaryController'])==null||_0x436da9[_0x18a719(0xac)](_0x4837a2),this[_0x18a719(0x1c7)][_0x18a719(0x247)](_0x4837a2);});}},_0x3d10d6(_0x4b10df['UniverSheetsPivotTablePlugin'],_0x3b026f(0x1d7),_0x4dbb63),_0x3d10d6(_0x4b10df[_0x3b026f(0x2cd)],_0x3b026f(0x252),_0x22b490['UniverInstanceType'][_0x3b026f(0x19f)]),_0x4b10df['UniverSheetsPivotTablePlugin']=_0x18e344([_0x22b490['DependentOn'](_0x19c977[_0x3b026f(0x37b)]),_0x59ac7d(0x1,_0x22b490[_0x3b026f(0xb8)](_0x22b490['Injector'])),_0x59ac7d(0x2,_0x22b490[_0x3b026f(0xb8)](_0x22b490['ICommandService'])),_0x59ac7d(0x3,_0x22b490['IConfigService']),_0x59ac7d(0x4,_0x22b490['Optional'](_0x48a447[_0x3b026f(0x263)]))],_0x4b10df[_0x3b026f(0x2cd)]),_0x4b10df['AddPivotFieldCommand']=_0x12acfe,_0x4b10df[_0x3b026f(0x335)]=_0x394516,_0x4b10df[_0x3b026f(0x15c)]=_0x3b098c,_0x4b10df['AddPivotTableMutation']=_0x4a007b,_0x4b10df['AddPivotTableWithConfigCommand']=_0x23172e,_0x4b10df[_0x3b026f(0xb4)]=_0x365ec8,_0x4b10df[_0x3b026f(0x1ef)]=_0x4a2a99,_0x4b10df[_0x3b026f(0xce)]=_0x4f3980,_0x4b10df[_0x3b026f(0x1c5)]=_0xd82ba8,_0x4b10df['PivotDisplayDataType']=_0x5ab7c7,_0x4b10df[_0x3b026f(0x23a)]=_0xe7cd56,_0x4b10df[_0x3b026f(0x21d)]=_0x1fd0cc,_0x4b10df[_0x3b026f(0x222)]=_0x38644a,_0x4b10df['PositionType']=_0xbae8da,_0x4b10df[_0x3b026f(0x22e)]=_0x281f45,_0x4b10df[_0x3b026f(0x2c0)]=_0x11f84a,_0x4b10df[_0x3b026f(0x1d4)]=_0x2b2613,_0x4b10df[_0x3b026f(0x315)]=_0x1ff897,_0x4b10df[_0x3b026f(0x202)]=_0x502568,_0x4b10df[_0x3b026f(0x30a)]=_0x365664,_0x4b10df[_0x3b026f(0x21b)]=_0x4dbb63,_0x4b10df[_0x3b026f(0x90)]=_0x27d6e0,_0x4b10df[_0x3b026f(0x8d)]=_0x57bb3b,_0x4b10df['SetPivotFieldFormatMutation']=_0x1559d7,_0x4b10df[_0x3b026f(0x2bc)]=_0x59efea,_0x4b10df[_0x3b026f(0x24b)]=_0x125e7a,_0x4b10df[_0x3b026f(0x2e0)]=_0x44a819,_0x4b10df['SetPivotOptionMutation']=_0x130a02,_0x4b10df[_0x3b026f(0x11a)]=_0x2b9b15,_0x4b10df['SetPivotSortCommand']=_0x35c66c,_0x4b10df[_0x3b026f(0x17d)]=_0x508ca4,_0x4b10df[_0x3b026f(0x18c)]=_0xccef87,_0x4b10df[_0x3b026f(0x308)]=_0x1a2f00,_0x4b10df[_0x3b026f(0x2b0)]=_0x59797f,_0x4b10df['UpdateDateGroupCommand']=_0x3b34be,_0x4b10df[_0x3b026f(0x80)]=_0x245b51,_0x4b10df[_0x3b026f(0x2df)]=_0x1c7e24,_0x4b10df[_0x3b026f(0xae)]=_0x4e8a15,_0x4b10df[_0x3b026f(0x1a7)]=_0x7f7a82,_0x4b10df['UpdatePivotTableSourceRangeMutation']=_0x4b2b87,_0x4b10df[_0x3b026f(0x2ed)]=_0x51070e,_0x4b10df['UpdateValuePositionMutation']=_0x1dd788,_0x4b10df[_0x3b026f(0x2be)]=_0x1f19e1,_0x4b10df['canUsePivot']=_0x1ef1bf,_0x4b10df[_0x3b026f(0x1af)]=_0x27e686,_0x4b10df['generateSetRangeValueMutations']=_0xbdd905,_0x4b10df[_0x3b026f(0xb6)]=_0x47bb47,_0x4b10df[_0x3b026f(0x23d)]=_0x1e19fb,_0x4b10df[_0x3b026f(0x352)]=_0x59e614,_0x4b10df['getInsertRowColMutations']=_0x27400a,_0x4b10df[_0x3b026f(0x8e)]=_0x5ca324,_0x4b10df['getPivotInfoByLicense']=_0xefb951,_0x4b10df[_0x3b026f(0x2ac)]=_0xecf658,_0x4b10df[_0x3b026f(0xa3)]=_0xa7d1b6,_0x4b10df[_0x3b026f(0x390)]=_0xfd99c7,Object[_0x3b026f(0x23e)](_0x4b10df,Symbol[_0x3b026f(0x1ac)],{'value':'Module'});}));function _0x51a1(){const _0x313357=['handleSourceRangeChange','maxDate','ICommandService','minDate','originTargetInfo','MoveRangeMutation','AddPivotField','colHeaderMap','rowFields','_config','cornerStyle','sheets-pivot.cellDateGroupDisplay.month','SetPivotValueFilterCommand','iterateField','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','CellValueType','RemoveSheetMutation','createDataFieldId','getMatrixValue','pbt','getPivotItemRenderInfoCache','sheet.command.remove-pivot-field','sheets-pivot.dateGroup.yearMonth','sheet.mutation.set-pivot-collapse','7720454UUVdTK','RenamePivotFieldMutation','getDirtyInfo','InsertColMutation','_activeDirtyManagerService','getGroupFieldsInfoByIds','PivotErrorTypeEnum','HourMinute','Grand\x20Total','iterateFieldDim','sheets-pivot.emptyPivot.values','getDataFieldByTableId','updateFieldPosition','info','numfmt','headerMap','GlobalComputingStatusService','colCount','pivotPerformCheck','_initClearSelectionCommandInterceptor','lQNPsD7N\x20FcPoZ1sD7N(MDPcNWc,\x201QRMDPOcZ)\x20{\x20\x20\x20\x20soZ\x20{\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20MDPcNWc8Nl7TdosjoodZ\x20=\x20MDPcNWc.W1MDs(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x207oDgDNCcWWdgc\x20=\x20L3h0.1doWc(ds7R(MDPcNWc8Nl7TdosjoodZ[w]));\x20\x20\x20\x20\x20\x20\x20\x20Dl\x20(!7oDgDNCcWWdgc.QF)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207oDgDNCcWWdgc.QF\x20=\x200QJRco(MDPcNWc8Nl7TdosjoodZ[e]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20DWp7oXco\x20=\x20sZ1c7l\x20p7oXcouM7RdM3P71c\x20!==\x20\x27QNFclDNcF\x27\x20&&\x20WcMl\x20DNWsdNPc7l\x20p7oXcouM7RdM3P71c;\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20P7Nsc5s\x20=\x20DWp7oXco\x20?\x20WcMl\x20:\x204DNF74;\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20JcWWdgcp7oF\x20=\x20P7Nsc5s.__ndWcve__.1doWc(MDPcNWc8Nl7TdosjoodZ[w]);\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20JcWWdgc\x20=\x20P7Nsc5s.__Ac5__.WsoDNgDlZ(JcWWdgcp7oF);\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20WDgNdsQocp7oF\x20=\x20P7Nsc5s.__ndWcve__.1doWc(MDPcNWc8Nl7TdosjoodZ[r]);\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20WDgNdsQoc\x20=\x20P7Nsc5s.__Ac5__.WsoDNgDlZ(WDgNdsQocp7oF);\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20WDgNBdMDF\x20=\x20P7Nsc5s.__HcoDlZ__(WDgNdsQoc,\x20JcWWdgc,\x201QRMDPOcZ);\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20F7JdDN\x20=\x207oDgDNCcWWdgc.FJ;\x20\x20\x20\x20\x20\x20\x20\x20lQNPsD7N\x20DWb7JdDNCdsPtDNg(7TdsscoN,\x207A7Ws)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x201dsscoN\x20=\x207TdsscoN.oc1MdPc(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20t7Ws\x20=\x207A7Ws.oc1MdPc(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x201dsscoNTdosW\x20=\x201dsscoN.W1MDs(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20t7WsTdosW\x20=\x20t7Ws.W1MDs(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Dl\x20(!1dsscoN.DNPMQFcW(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ocsQoN\x201dsscoN\x20===\x20t7Ws;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Dl\x20(1dsscoNTdosW.McNgst\x20<\x20w\x20||\x201dsscoNTdosW[G]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ocsQoN\x20ldMWc;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x201dsscoN3QllD5\x20=\x201dsscoNTdosW.WMDPc(q).Y7DN(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20t7Ws3QllD5\x20=\x20t7WsTdosW.WMDPc(-1dsscoNTdosW.McNgst\x20+\x20q).Y7DN(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ocsQoN\x201dsscoN3QllD5\x20===\x20t7Ws3QllD5;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20Mcs\x20F7JdDNBdMDF\x20=\x20(F7JdDN\x20&&\x20F7JdDN.McNgst)\x20?\x20F7JdDN.W7Jc((FJ8scJ)\x20=>\x20DWb7JdDNCdsPtDNg(FJ8scJ,\x20M7PdsD7N.t7WsNdJc))\x20:\x20soQc;\x20\x20\x20\x20\x20\x20\x20\x20Dl\x20(M7PdsD7N.t7WsNdJc\x20===\x20\x27M7PdMt7Ws\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20F7JdDNBdMDF\x20=\x20soQc;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20P7NWs\x20HdMDF\x20=\x20WDgNBdMDF\x20&&\x20F7JdDNBdMDF;\x20\x20\x20\x20\x20\x20\x20\x20ocsQoN\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HdMDF,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JcWWdgc:\x207oDgDNCcWWdgc,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20PdsPt\x20(coo7o)\x20{\x20\x20\x20\x20\x20\x20\x20\x20ocsQoN\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HdMDF:\x20ldMWc,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JcWWdgc:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','batch','rgb(240,241,243)','formJSON','sheets-pivot.cellDateGroupDisplay.date','getCurrentSelections','delete','sheet.mutation.set-pivot-position','_sheetsPivotTableService','valueFilter','blank','_configVersion$','getValueIndex','AddPivotFieldMutation','_updatePivotTableInstanceCache','BehaviorSubject','MovePivotField','_sheetsPivotDataSourceModel','getRowCount','@univerjs/sheets','average','string','Panel','27HskZam','limit\x20pivot','getSortInfo','isBottomTotal','_getPivotAppliedRanges','NAME','sheet.command.add-pivot-table','Existing','custom','Date','query','_localeService','versions','sheet.command.update-pivot-table-source-range','dateType','_markDirty$','Subtotal','getTableFieldById','ErrorType','getFieldListByArea','iterateFieldByArea','setPivotCollapse','tableFieldId','result','serializeRangeWithSpreadsheet','#b2b2b2','floor','getId','sheet.mutation.send-pivot-config-local','asObservable','Delete','_initPivotDataGetListener','DrillDown','_initSnapshot','Filter','_pivotRenderInfoCache','getRefRangeMutationsByMoveRange','InsertSheetUndoMutationFactory','product','YearMonthDate','pivotTableIndexConfig','sheet.mutation.remove-group-collection','sideEffectUpdateWorkerCache','_pivotRenderValueMatrixCache','undos','getSheetBySheetId','panel','Rectangle','getSubtotal','sheet.mutation.set-pivot-filter','sheet.command.update-pivot-value-position','getSubUnitPivotRenderCache','SetPivotTableConfig','AddField','_updateRenderEmptyCache','needSameDeleteModel','getFieldCountByArea','getFieldIds','SHEET_PIVOT_EXCLUSIVE_ID','GrandTotal','UniverLicensePlugin','SheetInterceptorService','UniverProSheetsPivot','deleteField','getDataFieldManager','PivotTableFiledAreaEnum','setPivotTableConfig','sourceRangeInfo','SetFilterInfo','setPivotSetting','SHEET_PIVOT_IN_MAIN_THREAD','removeValueFilterInfoByValueFieldId','@univerjs-pro/license','_initUnitDisposed','getDataFieldItemInfo','sheets-pivot.dateGroup.hour','_subjectCollectionChange','forEach','sheet.mutation.remove-pivot-table','_featureCalculationManagerService','Add','unionPivotViewRange','_viewData$','NotFunction','leafStyle','filter','InterceptorManager','symbol','SetPivotFilter','ObjectMatrix','PivotDateGroupFieldDateTypeEnum','node','fetchThroughAsyncInterceptors','NotName','substring','UniverSheets','drillDown','MoveRangeCommand','registerCallbackWithEvent','#FFFFFF','toString','sheet.mutation.set-pivot-field-subtotal-type','sheets-pivot.varName','setFieldFormat','RemovePivotField','updateRangeKeyMap','pushUndoRedo','reduce','UpdateFieldPositionMutation','Column\x20','updateDirtyPivotTable','getCellRaw','unshift','AsyncInterceptorManager','SetValuePivotFilter','sheets-pivot.countNumsName','INTERCEPTOR_POINT','refreshData','sheets-pivot.stdDevName','DataField','version','SetPivotCollapseMutation','getPivotCellInfo','UniverInstanceType','SetPivotCollapseCommand','sheet.mutation.rename-pivot-field','fieldIds','SheetsSelectionsService','STRING','getUnitId','_initGlobalComputed','SheetsPivotRPCService','setSubtotalType','InsertSheetCommand','leftOffset','sheets-pivot.dateGroup.minute','adjustSheetCellData','sheets-pivot.emptyPivot.filter','getConfig','Hour','#f4f4f5','getSubUnitPivotMatrix','onQueryStart','transFromCellValue','sheets-pivot.dateGroup.quarter','_queryingMap','valueFields','_host','Column','setLabelFilterInfo','reset','CELL_CONTENT','registerSyncingMutations','pageRanges','UpdatePivotFieldSourceInfoMutation','sheet.command.move-pivot-field','getRangeData','_getAutoName','addFieldWithSourceId','setDisplayName','BLANK_ROW_COUNT','removePivotField','getAdjustRangesPosition','DEFAULT_WORKSHEET_COLUMN_COUNT','Inject','sheet.command.set-pivot-collapse','_initPivotTextInfo','unitId','generateHexNumber','getLastRow','getFilterInfo','dataFieldsCollection','PivotView','ResetPivotTable','getValue','getPivotTableIdByCell','getTargetByPivotId','addDirtyPivotTable','PivotDataFieldDataTypeEnum','number','getDataFieldByDataFieldId','fieldsConfig','getSheets','markDirty','getPivotTableInstance','_refRangeService','MovePivotFieldCommand','UpdatePivotSource','setConfig','LifecycleService','Total','Year','sheet.mutation.pivot-update-field-source-info','realDeleteValue','ΣValue','getOwnPropertyDescriptor','updatePivotSource','_pivotConfigChange$','viewUpdate$','SetRangeValuesUndoMutationFactory','getPivotTableRangeInfo','setDateType','updateCollectionConfig','IFeatureCalculationManagerService','removeCollections','executeCommand','endColumn','getUnit','generateRandomId','getFieldPositionInfoById','_pivotTableInstanceCache','removeValueFilterInfo','notExecuteFormula','broadcastCollectionChange','_sheetsPivotTableConfigModel','includes','Sum\x20of\x20','value','isValue','sheets.tabs.sheet','registerDirtyService','update','handleMoveRange','getPivotTableModelConfig','fieldsCollectionChange$','_injector','getIntersects','concat','isDateGroupFieldJSON','sheet.command.reset-pivot-fields-config','RemoveSheetCommand','generateNewSheetName','SetPivotCollapse','RefRangeService','_ensurePivotTableMatrixInfo','sheets-pivot.emptyPivot.column','_sheetsSelectionsService','setCollapse','setPivotInitCompleted','CustomCommandExecutionError','sheets-pivot.dateGroup.date','addPivotField','addPivotTableWithConfig','getIntersectsPivotTable','updateConfigCache','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','register','_requestResolvers','dataFieldId','uniqueDataFieldName','PivotSubtotalTypeEnum','body','_updateModelCache','getName','collections','fields','Values','getTypeOfUnitDisposed$','Subject','shouldClear','set','markDirty$','SetPivotPositionMutation','getPivotTableCellData','charCodeAt','addField','sheet.command.add-pivot-field','getColumnCount','date','getSheetId','_configService','getFieldFormat','getOriginFieldId','SheetsPivotTableConfigModel','Style','IActiveDirtyManagerService','getMatrix','sheets-pivot.emptyPivot.row','Quarter','FontCache','initDataRanges','range','SetRangeValuesMutation','_textInfo','_subjectFieldsCollectionChange','random','_initViewModelBySheetInterceptor','_dataSyncPrimaryController','unshiftString','_toJSON','var','getNoUsedDataFieldIds','remove','sheet.mutation.add-group-collection','hasOwnProperty','getDataFieldByRangeKey','onStarting','mergeWorksheetSnapshotWithDefault','Value','setSourceName','SetFieldFormat','replace','ClearSelectionContentCommand','getPivotDirtyViewInfo','\x20-\x20','IConfigService','token','sheets-pivot.dateGroup.monthDate','message','dataStream','setDataRecordCount','contains','setSortInfo','getCollection','valueIndex','Range','PivotViewCellValueTypeEnum','NORMAL','FORCE_STRING','SetOptions','getMatrixFromRunTimeData','options','colStyle','targetCellInfo','grandTotal','stdDev','getTextSize','filterInfo','AddPivotTableCommand','endRow','size','lastRow','#eceeff','intersects','getRangeKeyList','IUndoRedoService','getAutoFitColumnsMutations','getformat','sheet.mutation.add-pivot-table','displayName','Row','column','getDisplayName','sheetName','setValuePivotFilter','getIndexesByPathStr','sheet.mutation.set-pivot-option','ReleaseType','New','sheets-pivot.dateGroup.month','rangesInfo','dataRangeInfo','rowCount','deleteDataField','onQueryEnd','removePivotTable','max','disposableCollection','sheets-pivot.dateGroup.year','CommandType','None','SetPivotSortMutation','intercept','forValue','clearRenderCache','name','valuePosition','getPivotPerformCheck','sheets-pivot.grandTotal','col','columnFields','Month','has','#1d32e9','updateViewData','sheet.mutation.update-pivot-table-source-range','SetPivotSubtotalTypeMutation','getInterceptPoints','NUMBER','Plugin','AddPivotTableWithConfig','sheets-pivot.value','getColCount','rangeType','setValue','tuple','_refRangeHandle','colRanges','sheet.command.set-pivot-sort','pageStyle','Minute','SheetsPivotDataSourceModel','sheet.command.set-pivot-field-setting','UniverEngineRender','getCellMatrix','UNIVER_SHEET','sequenceExecute','@univerjs/engine-render','prototype','subtotal','viewData$','getSheetFeatureLimit','lastCol','UpdatePivotTableSourceRangeCommand','interceptCommand','isColMultiMeasure','resetArea','sum','toStringTag','1014968VXrNPL','getUpdateRangeDeleteIds','defaultThemeStyle','sheets-pivot.cellDateGroupDisplay.yearMonthDate','removeSourceRangeChange','RemoveColMutation','push','deepClone','getRangeStartEndInfo','updateRenderCache','2463316KuzJEt','@univerjs/rpc','collectionConfig','generateMutationsByRanges','stringify','valid','_fieldsCollectionChange$','_collectionChange$','startCollectChangeset','triggerDirtyFeature','rangeCache','getAutoDisplayNameFunction','_pivotTableRangeInfo','sheets-pivot.config','MovePivotTableCommand','RANGE_TYPE','_commandService','excelDateToUnixMilliseconds','isPrefixValue','ptn','Max\x20of\x20','cellToRange','dataFieldManagerConfig','getFontStyleString','sheets-pivot.sumName','_pivotTableMatrixInfo','deleteUnitId','getTextInfo','rangeKeyMap','RemovePivotTableMutation','movePivotField','_generateUniqueVersion','pluginName','forRow','updatePivotTableRangeInfo','setRangeValueRedoMutation','registerPluginResource','_globalComputedStartHelpFunc','document','isDateGroupField','MIN_SAFE_INTEGER','isDate','registerRefRange','paths','sheets-pivot.blank','min','updateAllDisplayName','1324487CkLtKl','sheets-pivot.varpName','setRange','sheets-pivot.cellDateGroupDisplay.hour','NO_COMMERCIAL','updatePivotTableMatrixInfo','Div0','asyncInterceptor','sheet.mutation.add-pivot-field','DEFAULT_PIVOT_NUMBER','_ensurePivotTableRangeInfo','getHeaderMapItem','getDate','2058425QMHYeN','addExclusiveRange','_initLocale','Product\x20of\x20','_dataFieldManagerCollection','108254tpxbyM','PivotTable','setPivotSort','handleAsyncResponse','updateValuePosition','sheet.mutation.pivot-update-field-position','fetchThroughInterceptors','_initConfig','REF','rangeKey','ResetPivotFieldsConfigCommand','setValueFilterInfo','getDataFieldId','_ensureViewDataMap','SheetsPivotTableService','SetPivotSetting','add','dispose','updateConfig','sheets-pivot.dateGroup.hourMinute','dimension','BaseGroupField','parseInt','_collectionConfigModel','FieldsCollection','getPivotDisplayConfig','_init','6HfTUja','subUnitId','addCollectionByJSON','width','YearMonth','createAsyncInterceptorKey','find','getSheetBySheetName','SHEET_PIVOT_TABLE_PLUGIN','_viewData','PivotTableOperationEnum','rxjs','removeField','PivotTableValuePositionEnum','_pivotInitCompleted$','PivotTableViewDirtyMarkOperation','rowRanges','some','sheets-pivot.cellDateGroupDisplay.minute','keys','Injector','UpdateSource','6UvIUrE','_initCommandInterceptListener','sheet.command.add-pivot-table-with-config','ClearSelectionAllCommand','setRangeKeyMap','RemovePivotFieldCommand','merge','pivotMutationGenerate','Collapse','call','pivotTableConfigs','stdDevp','parse','getDataFieldBySourceName','RemoveSheetsFilterMutation','return\x20','UniverProLicense','PivotDrillDownCommand','COMMAND','_sheetInterceptorService','getEmptyPivotRanges','defineProperty','rowInfo','_deletePivotTableInstanceCache','SetSubtotalType','_onRefRangeChange','InterceptorEffectEnum','oldRangeInfo','_ensurePivotItemRenderInfoCache','function','registerCommand','values','_ensurePivotItemRenderValueMatrixCache','sheet.mutation.send-pivot-view-local','SetPivotFilterCommand','removeDataField','refreshDataField','resetPivotTable','DataFieldManager','endCollectChangeset','level','type','slice','SetWorksheetActiveOperation','_deleteModelCache','DisposableCollection','get','configVersion$','renameField','originalFieldId','SetWorksheetColWidthMutation','sheet.mutation.set-pivot-value-filter','sheet.mutation.pivot-update-value-position','new','InsertRowMutation','_lifecycleService','refreshGroupField','DEFAULT_WORKSHEET_ROW_COUNT','DataSyncPrimaryController','DIV_BY_ZERO','params','isErrorValue','getActiveSheet','onCommandExecuted','count','addPivotTable','sheets-pivot.cellDateGroupDisplay.hourMinute','20083800rblihI','_subjectViewChange','collapseInfo','getPivotTableConfig','updateViewInfo','getFieldDataType','_initRemoveSheetCommandInterceptor','MUTATION','sheet.command.move-pivot-table','dataFields','IUniverInstanceService','areaInfo','entries','Count\x20of\x20','fromJSON','AddPivotTable','countNums','pushComputingStatusSubject','YearQuarter','cornerInfo','getStyles','(Blank)','cornerRanges','_sheetsPivotTableAdaptorModel','startRow','sheets-pivot.cellDateGroupDisplay.quarter','getValuePosition','sheets-pivot.cellDateGroupDisplay.yearMonth','BadReference','workbook\x20is\x20not\x20found','getSheetCommandTarget','#e6ebfb','getCurrentUnitForType','map','length','data','_ensurePivotMap','fontRenderExtension','InsertSheetMutation','DateGroupField','error','sheet.operation.pivot-table-view-formula-mark-dirty','getLastCol','createValueField','isEmpty','UniverEngineFormula','getPivotTableMatrixInfo','ManualFilter','redos','_createExclusiveRange','isText','getColumnWidth','_univerInstanceService','matrix','_exclusiveRangeService','addRecord','format','pivotInitCompleted$','getFormat','_resourceManagerService','LS_CONFIG_KEY','COLUMN','updateDataFieldsCollection','Disposable','getPivotTableInfo','sheets-pivot.averageName','from','isNaN','SetPivotValueFilterMutation','sheet.mutation.send-pivot-data-local','_globalSubject','toJSON','sheet.mutation.remove-pivot-field','PivotFilterTypeEnum','Set','pivotTableId','_model','getAutoDisplayName','next','sheets-pivot.cellDateGroupDisplay.year','SetPivotFieldsConfigCommand','SetPivotSort','applyChangeSet','prefix','RemovePivotFieldMutation','sheet.command.update-date-group','MAX_SAFE_INTEGER','createLabelField','collectionChange$','generateNullCell','UniverCore','addCollection','interceptor','getFullYear','PivotTableChangeTypeEnum','isFeatureAuthorizedWithinTime','MonthDate','UniverSheetsPivotTablePlugin','subscribe','setPivotFilter','IResourceManagerService','@univerjs-pro/engine-pivot','getSourceName','@univerjs/engine-formula','exports','setName','split','rgb(255,255,255)','collection','UpdateValuePosition','pivotConfigChange$','setTextInfo','subTotalStyle','IExclusiveRangeService','@univerjs/core','UpdatePivotFieldSettingCommand','SetPivotFilterMutation','NotNumber','row','sheets-pivot.cellDateGroupDisplay.yearQuarter','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','startColumn','_initDataSendListener','createCollectionWithDataRange','getMonth','getFieldById','disposeWithMe','getRangeKey','splice','UpdatePivotValuePositionCommand','clearExclusiveRangesByGroupId','PivotCellStyleTypeEnum','isDateValue','LocaleService','addDataFieldWithoutUnitInfo','filterId','sheets-pivot.productName','setPivotTable','SheetsPivotTableAdaptorModel','getViewData','_viewUpdate$','getSubUnitPivotConfigs','measure','sortInfo'];_0x51a1=function(){return _0x313357;};return _0x51a1();}