@univerjs-pro/sheets-pivot 0.10.12-nightly.202510251119 → 0.10.13

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.
Files changed (51) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/common/const.d.ts +41 -41
  38. package/lib/types/controllers/const.d.ts +1 -1
  39. package/lib/umd/facade.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ko-KR.js +1 -1
  47. package/lib/umd/locale/ru-RU.js +1 -1
  48. package/lib/umd/locale/vi-VN.js +1 -1
  49. package/lib/umd/locale/zh-CN.js +1 -1
  50. package/lib/umd/locale/zh-TW.js +1 -1
  51. package/package.json +10 -10
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1019(_0x5861e2,_0x2f58e3){const _0x2db2de=_0x2db2();return _0x1019=function(_0x1019e2,_0x33491c){_0x1019e2=_0x1019e2-0x177;let _0x36a6d0=_0x2db2de[_0x1019e2];return _0x36a6d0;},_0x1019(_0x5861e2,_0x2f58e3);}(function(_0x2a31f0,_0x3dba98){const _0x52314a=_0x1019,_0x3f8e97=_0x2a31f0();while(!![]){try{const _0x46713a=-parseInt(_0x52314a(0x316))/0x1+-parseInt(_0x52314a(0x408))/0x2+-parseInt(_0x52314a(0x337))/0x3+-parseInt(_0x52314a(0x3c6))/0x4+parseInt(_0x52314a(0x464))/0x5+-parseInt(_0x52314a(0x396))/0x6*(parseInt(_0x52314a(0x40b))/0x7)+parseInt(_0x52314a(0x17b))/0x8*(parseInt(_0x52314a(0x28b))/0x9);if(_0x46713a===_0x3dba98)break;else _0x3f8e97['push'](_0x3f8e97['shift']());}catch(_0x1d7fed){_0x3f8e97['push'](_0x3f8e97['shift']());}}}(_0x2db2,0xbc313),function(_0x4e9430,_0x1348e1){const _0x1183b6=_0x1019;typeof exports==_0x1183b6(0x1d9)&&typeof module<'u'?_0x1348e1(exports,require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license'),require('@univerjs/sheets-filter'),require('@univerjs/rpc'),require('@univerjs/engine-render')):typeof define==_0x1183b6(0x384)&&define[_0x1183b6(0x1f9)]?define([_0x1183b6(0x2ca),_0x1183b6(0x220),_0x1183b6(0x2c0),_0x1183b6(0x180),'@univerjs/sheets',_0x1183b6(0x3af),_0x1183b6(0x342),_0x1183b6(0x213),_0x1183b6(0x32e),_0x1183b6(0x27f)],_0x1348e1):(_0x4e9430=typeof globalThis<'u'?globalThis:_0x4e9430||self,_0x1348e1(_0x4e9430['UniverProSheetsPivot']={},_0x4e9430[_0x1183b6(0x356)],_0x4e9430[_0x1183b6(0x2fa)],_0x4e9430[_0x1183b6(0x450)],_0x4e9430[_0x1183b6(0x1b3)],_0x4e9430[_0x1183b6(0x3af)],_0x4e9430['UniverProLicense'],_0x4e9430[_0x1183b6(0x347)],_0x4e9430['UniverRpc'],_0x4e9430[_0x1183b6(0x196)]));}(this,function(_0x1cc2c4,_0x2eef51,_0x374f23,_0x925485,_0x24a2a7,_0x1cd777,_0x2169aa,_0x158537,_0x37f267,_0x132b06){'use strict';const _0x5d1072=_0x1019;var _0x40dc40=Object[_0x5d1072(0x46f)],_0x2cd8b8=(_0x15410f,_0x41c825,_0x57ee84)=>_0x41c825 in _0x15410f?_0x40dc40(_0x15410f,_0x41c825,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57ee84}):_0x15410f[_0x41c825]=_0x57ee84,_0x1e0b19=(_0x55789c,_0x234149,_0xc13073)=>_0x2cd8b8(_0x55789c,typeof _0x234149!=_0x5d1072(0x430)?_0x234149+'':_0x234149,_0xc13073);const _0x82b07b=Number['parseInt'](0x68fcb286),_0x1b6ed3=0x10,_0x5639c4=0x1,_0xcaa86f=_0x5d1072(0x304),_0x9545db=0x1,_0x229a28='rgb(240,241,243)',_0x32bba2='rgb(255,255,255)',_0x3af942=_0x5d1072(0x45f),_0x4028c2=_0x5d1072(0x3a6),_0x2157e1='#f4f4f5',_0x482a77=_0x5d1072(0x438),_0x368d31=_0x5d1072(0x21d),_0x4e5cc1=_0x5d1072(0x382),_0x3676d7=_0x5d1072(0x214),_0x3df884=_0x5d1072(0x21d),_0x3cced3=_0x5d1072(0x382),_0x536795='#e6ebfb',_0x2ccd6c=0xe,_0x69f1d9=0x6;var _0x55d455=(_0x474aa0=>(_0x474aa0[_0x5d1072(0x35e)]='existing',_0x474aa0[_0x5d1072(0x44a)]=_0x5d1072(0x1ee),_0x474aa0))(_0x55d455||{});const _0xe2c987={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','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':''}}},_0x350f93=0x1e,_0x39696={'b':{'s':0x1,'cl':{'rgb':_0x3af942}},'l':{'s':0x1,'cl':{'rgb':_0x3af942}},'r':{'s':0x1,'cl':{'rgb':_0x3af942}},'t':{'s':0x1,'cl':{'rgb':_0x3af942}}},_0x554db5={'bg':{'rgb':_0x229a28},'ht':0x2,'vt':0x2,'tb':0x1},_0x5c764c={'bg':{'rgb':_0x32bba2},'ht':0x2,'vt':0x2,'tb':0x1},_0x1ed179={'rowStyle':{'bg':{'rgb':_0x536795},'bd':_0x39696,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x3df884},'bd':null,'cl':{'rgb':_0x3cced3},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x39696,'bg':{'rgb':_0x3676d7},'vt':0x2},'cornerStyle':{'bd':_0x39696,'bg':{'rgb':_0x482a77},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x39696,'bg':{'rgb':_0x4028c2},'vt':0x2},'leafStyle':{'bd':_0x39696,'bg':{'rgb':_0x2157e1},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x368d31},'cl':{'rgb':_0x4e5cc1},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x39696,'vt':0x2}};function _0x485a6d(_0x5e505a,_0x49abd3,_0x153316){const _0x461cf6=_0x5d1072,_0x500fb2=_0x5e505a['get'](_0x374f23[_0x461cf6(0x3cd)]),_0x3ddc6e=_0x153316['split']('_');switch(_0x49abd3){case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x17e)]:return _0x500fb2['t'](_0x461cf6(0x2fd),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x1dd)]:return _0x500fb2['t'](_0x461cf6(0x3ef),..._0x3ddc6e);case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x461cf6(0x1c7)]:return _0x500fb2['t'](_0x461cf6(0x322),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x33e)]:return _0x500fb2['t']('sheets-pivot.cellDateGroupDisplay.hourMinute',..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x2e7)]:return _0x500fb2['t'](_0x461cf6(0x344),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x319)]:return _0x500fb2['t'](_0x461cf6(0x40d),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)]['Quarter']:return _0x500fb2['t']('sheets-pivot.cellDateGroupDisplay.quarter',..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)]['YearMonth']:return _0x500fb2['t']('sheets-pivot.cellDateGroupDisplay.yearMonth',..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x23f)]:return _0x500fb2['t'](_0x461cf6(0x297),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x17a)]:return _0x500fb2['t'](_0x461cf6(0x39f),..._0x3ddc6e);}return'';}const _0x111915=(_0x1bc558,_0x1bbd5c,_0x149a53,_0x25148d)=>{const _0x5bd684=_0x5d1072;let _0x17286a;const _0x42ce64=_0x1bc558[_0x5bd684(0x411)](_0x374f23[_0x5bd684(0x1d8)])[_0x5bd684(0x2fb)](_0x374f23[_0x5bd684(0x1e8)]['UNIVER_SHEET']);if(!_0x42ce64)return null;const _0x48a7c4=_0x42ce64['getStyles']();let _0x5c06e1;if(_0x149a53&&(_0x5c06e1=_0x48a7c4['setValue'](_0x149a53)),_0x1bbd5c!=null&&_0x1bbd5c['v']||(_0x1bbd5c==null?void 0x0:_0x1bbd5c['v'])===0x0){_0x17286a||(_0x17286a={});const _0x266e9e=_0x9bc11a(_0x1bbd5c['v']);typeof _0x266e9e==_0x5bd684(0x41e)?_0x17286a['t']=_0x374f23[_0x5bd684(0x278)]['NUMBER']:typeof _0x266e9e==_0x5bd684(0x436)&&(_0x17286a['t']=_0x374f23[_0x5bd684(0x278)][_0x5bd684(0x471)]),_0x17286a['v']=_0x266e9e;}if((_0x1bbd5c!=null&&_0x1bbd5c['i']||(_0x1bbd5c==null?void 0x0:_0x1bbd5c['i'])===0x0)&&(_0x17286a||(_0x17286a={}),_0x17286a['fi']=_0x1bbd5c['i']),_0x1bbd5c!=null&&_0x1bbd5c['s']&&(_0x17286a||(_0x17286a={}),_0x17286a[_0x5bd684(0x2d4)]=_0x1bbd5c['s']),_0x149a53&&(_0x17286a||(_0x17286a={}),_0x17286a['s']=_0x5c06e1),_0x25148d&&_0x17286a!=null&&_0x17286a['v']&&_0x17286a[_0x5bd684(0x2d4)]!==_0x2eef51[_0x5bd684(0x421)]['GrandTotal']&&_0x17286a['pbt']!==_0x2eef51['PivotCellStyleTypeEnum'][_0x5bd684(0x24e)]){const _0x3099a8=String(_0x17286a['v']),{dateType:_0x32773d}=_0x25148d;_0x17286a['v']=_0x485a6d(_0x1bc558,_0x32773d,_0x3099a8),_0x17286a['t']=_0x374f23[_0x5bd684(0x278)]['STRING'];}return _0x17286a;},_0x240ff5=(_0x1afdc0,_0x33cae4,_0x241096,_0x1b5228)=>{const _0x38bc83=_0x5d1072;var _0x837fef,_0x2efaa3,_0x581b16,_0x5677d8,_0x13fc63,_0x39369d,_0x2fe97a,_0x4cfb8b,_0x34bc6b,_0xf2d7b8,_0x3cf1ae,_0x23e90b,_0x83d8c2,_0x3bbc7b;const _0x2ca8eb=_0x241096[_0x38bc83(0x357)],{cornerView:_0x45a5d3,rowView:_0x72bb5d,colView:_0x518d5a,dataView:_0x3e4026,pageView:_0x3f0b96,formatMap:_0x4820a1,groupInfo:_0x4efa6e}=_0x33cae4,{row:_0x5c023a,col:_0xd9f5ef}=_0x2ca8eb,_0x9f36e2=new _0x374f23[(_0x38bc83(0x33b))](),_0x5b070b={},_0x2af582={},_0x1e50ac={},_0x2f51bd={},_0x1b6dd7={};let _0x44daf2=_0x5c023a,_0x494746=_0xd9f5ef;Object['keys'](_0x3f0b96['data'])[_0x38bc83(0x274)](_0x511739=>{const _0x2dfc38=_0x38bc83;Object[_0x2dfc38(0x3d8)](_0x3f0b96[_0x2dfc38(0x3b3)][Number(_0x511739)])[_0x2dfc38(0x274)](_0x19d82=>{const _0x46b374=_0x2dfc38,_0x48a232={..._0x3f0b96[_0x46b374(0x3b3)][Number(_0x511739)][Number(_0x19d82)]};_0x9f36e2[_0x46b374(0x388)](Number(_0x511739)+_0x44daf2,Number(_0x19d82)+_0x494746,_0x111915(_0x1afdc0,_0x48a232,_0x1ed179[_0x46b374(0x2e3)]));});});const _0x563f88=Object[_0x38bc83(0x3d8)](_0x3f0b96['data'])[_0x38bc83(0x468)];_0x44daf2+=_0x563f88+(_0x563f88?_0x9545db:0x0);const _0x4947d5=_0x45a5d3[_0x38bc83(0x46e)](),_0x2b36c9=_0x45a5d3[_0x38bc83(0x37f)]();for(let _0x5c7ffd=0x0;_0x5c7ffd<_0x4947d5;_0x5c7ffd++)for(let _0x533ed2=0x0;_0x533ed2<_0x2b36c9;_0x533ed2++){const _0x310a85={...(_0x2efaa3=(_0x837fef=_0x45a5d3[_0x38bc83(0x3b3)])==null?void 0x0:_0x837fef[_0x5c7ffd])==null?void 0x0:_0x2efaa3[_0x533ed2]};_0x310a85&&((_0x581b16=_0x72bb5d[_0x38bc83(0x271)][_0x533ed2])!=null&&_0x581b16[_0x38bc83(0x40e)])&&_0x533ed2===_0x2b36c9-0x1&&_0x5c7ffd===_0x4947d5-0x1&&(_0x310a85['v']=''+_0x1b5228[_0x38bc83(0x37a)]),_0x9f36e2['setValue'](_0x5c7ffd+_0x44daf2,_0x533ed2+_0x494746,_0x111915(_0x1afdc0,_0x310a85,_0x1ed179[_0x38bc83(0x1cc)]));}for(let _0x573ebc=0x0;_0x573ebc<_0x45a5d3[_0x38bc83(0x34c)][_0x38bc83(0x468)];_0x573ebc++)_0x45a5d3[_0x38bc83(0x34c)][_0x573ebc]&&(_0x1e50ac[''+(_0x573ebc+_0x494746)]=_0x45a5d3[_0x38bc83(0x34c)][_0x573ebc]);_0x494746+=_0x2b36c9;const _0x49cf5f=_0x518d5a[_0x38bc83(0x271)],_0x44167c=_0x518d5a[_0x38bc83(0x315)]()>=0x0?_0x518d5a[_0x38bc83(0x315)]()+0x1:0x0,_0x344680=_0x518d5a[_0x38bc83(0x20f)]()>=0x0?_0x518d5a[_0x38bc83(0x20f)]()+0x1:0x0;for(let _0x2d6395=0x0;_0x2d6395<_0x344680;_0x2d6395++){for(let _0x479d00=0x0;_0x479d00<_0x44167c;_0x479d00++){const _0x543efb={...(_0x13fc63=(_0x5677d8=_0x518d5a[_0x38bc83(0x3b3)])==null?void 0x0:_0x5677d8[_0x479d00])==null?void 0x0:_0x13fc63[_0x2d6395]},_0x14aa2a=(_0x39369d=_0x49cf5f[_0x479d00])==null?void 0x0:_0x39369d[_0x38bc83(0x44b)],_0x3e9e6c=_0x4820a1[_0x14aa2a],_0x1d5b11=_0x4efa6e[_0x14aa2a];_0x543efb&&(_0x543efb['v']=_0x99791(_0x543efb,_0x479d00===0x0&&((_0x2fe97a=_0x518d5a['getHeaderMapItem'](_0x2d6395+0x1))==null?void 0x0:_0x2fe97a[_0x38bc83(0x40e)]),_0x3e9e6c,_0x1b5228));let _0x248fe9;_0x3e9e6c?_0x248fe9={..._0x1ed179[_0x38bc83(0x268)],'n':{'pattern':_0x3e9e6c}}:_0x248fe9={..._0x1ed179[_0x38bc83(0x268)]},_0x9f36e2[_0x38bc83(0x388)](_0x479d00+_0x44daf2,_0x2d6395+_0x494746,_0x111915(_0x1afdc0,_0x543efb,_0x248fe9,_0x1d5b11));}_0x518d5a[_0x38bc83(0x34c)][_0x2d6395]&&(_0x2af582[''+(_0x2d6395+_0x494746)]=_0x518d5a[_0x38bc83(0x34c)][_0x2d6395]),_0x518d5a[_0x38bc83(0x271)][_0x2d6395+0x1]&&(_0x1b6dd7[''+(_0x2d6395+_0x44daf2+0x1)]=_0x518d5a['headerMap'][_0x2d6395+0x1]);}_0x44daf2+=_0x4947d5;const _0x1eacae=_0x72bb5d[_0x38bc83(0x271)],_0x154ea3=_0x72bb5d[_0x38bc83(0x315)]()>=0x0?_0x72bb5d[_0x38bc83(0x315)]()+0x1:0x0,_0x5c55da=_0x72bb5d[_0x38bc83(0x20f)]()>=0x0?_0x72bb5d[_0x38bc83(0x20f)]()+0x1:0x0;for(let _0x40b7c7=0x0;_0x40b7c7<_0x154ea3;_0x40b7c7++){for(let _0x4cdbb8=0x0;_0x4cdbb8<_0x5c55da;_0x4cdbb8++){const _0x16fb51={...(_0x34bc6b=(_0x4cfb8b=_0x72bb5d[_0x38bc83(0x3b3)])==null?void 0x0:_0x4cfb8b[_0x40b7c7])==null?void 0x0:_0x34bc6b[_0x4cdbb8]},_0x4feae0=(_0xf2d7b8=_0x1eacae[_0x4cdbb8])==null?void 0x0:_0xf2d7b8['tableFieldId'],_0x278b58=_0x4820a1[_0x4feae0],_0x94a07d=_0x4efa6e[_0x4feae0];_0x16fb51&&(_0x16fb51['v']=_0x99791(_0x16fb51,!0x1,_0x278b58,_0x1b5228));let _0x7edad7;_0x72bb5d[_0x38bc83(0x34c)][_0x40b7c7]['level']===_0x72bb5d[_0x38bc83(0x37f)]()?_0x7edad7=_0x1ed179[_0x38bc83(0x374)]:_0x72bb5d[_0x38bc83(0x34c)][_0x40b7c7][_0x38bc83(0x37d)]?_0x7edad7=_0x72bb5d[_0x38bc83(0x34c)][_0x40b7c7][_0x38bc83(0x2c4)]===0x0?_0x1ed179['grandTotal']:_0x1ed179['subTotalStyle']:_0x7edad7=_0x1ed179[_0x38bc83(0x47e)],_0x278b58&&(_0x7edad7={..._0x7edad7,'n':{'pattern':_0x278b58}}),_0x9f36e2[_0x38bc83(0x388)](_0x40b7c7+_0x44daf2,_0x4cdbb8+_0xd9f5ef,_0x111915(_0x1afdc0,_0x16fb51,_0x7edad7,_0x94a07d));}_0x72bb5d['info'][_0x40b7c7]&&(_0x5b070b[''+(_0x40b7c7+_0x44daf2)]=_0x72bb5d['info'][_0x40b7c7]),_0x72bb5d['headerMap'][_0x40b7c7]&&(_0x2f51bd[''+(_0x40b7c7+_0xd9f5ef)]=_0x72bb5d['headerMap'][_0x40b7c7]);}const _0x106505=_0x3e4026[_0x38bc83(0x46e)](),_0xfb2ae1=_0x3e4026[_0x38bc83(0x37f)]();for(let _0x475f1e=0x0;_0x475f1e<_0x106505;_0x475f1e++)for(let _0x165cef=0x0;_0x165cef<_0xfb2ae1;_0x165cef++){const _0x39f80e={...(_0x23e90b=(_0x3cf1ae=_0x3e4026[_0x38bc83(0x3b3)])==null?void 0x0:_0x3cf1ae[_0x475f1e])==null?void 0x0:_0x23e90b[_0x165cef]};let _0x28d022;_0x72bb5d['info'][_0x475f1e][_0x38bc83(0x37d)]?_0x28d022=_0x72bb5d[_0x38bc83(0x34c)][_0x475f1e][_0x38bc83(0x2c4)]===0x0?_0x1ed179[_0x38bc83(0x243)]:_0x1ed179[_0x38bc83(0x483)]:_0x28d022=_0x1ed179[_0x38bc83(0x197)];const _0x6ba2fb=_0x72bb5d[_0x38bc83(0x34c)][_0x475f1e][_0x38bc83(0x29c)],_0x5da589=_0x518d5a[_0x38bc83(0x34c)][_0x165cef]['valueIndex'],_0x1748b1=Math[_0x38bc83(0x275)](_0x6ba2fb,_0x5da589),_0x5e5657=_0x241096[_0x38bc83(0x3b6)][_0x38bc83(0x2a8)]['concat']();let _0x172e0b='';_0x1748b1<0x0?_0x172e0b=(_0x83d8c2=_0x5e5657[0x0])!=null?_0x83d8c2:'':_0x172e0b=(_0x3bbc7b=_0x5e5657[_0x1748b1])!=null?_0x3bbc7b:'';const _0x18159d=_0x4820a1[_0x172e0b];_0x18159d&&(_0x28d022={..._0x28d022,'n':{'pattern':_0x18159d}}),_0x9f36e2[_0x38bc83(0x388)](_0x475f1e+_0x44daf2,_0x165cef+_0x494746,_0x111915(_0x1afdc0,_0x39f80e,_0x28d022));}return{'valueMatrix':_0x9f36e2,'rowInfo':_0x5b070b,'colInfo':_0x2af582,'cornerInfo':_0x1e50ac,'rowHeaderMap':_0x2f51bd,'colHeaderMap':_0x1b6dd7};};function _0x99791(_0x346ed0,_0x28b49f,_0x54abbe,_0x1e96aa){const _0x3f1959=_0x5d1072;let _0x3f54fa=_0x346ed0['v'];_0x28b49f&&(_0x3f54fa=''+_0x1e96aa[_0x3f1959(0x37a)]);const _0x3055a8=_0x346ed0['t']&&(_0x346ed0['t']&_0x2eef51['PivotViewCellValueTypeEnum']['blank'])>0x0;_0x3055a8&&(_0x3f54fa=''+_0x1e96aa['sheets-pivot.blank']);const _0x5bd67f=_0x346ed0['t']&&(_0x346ed0['t']&_0x2eef51[_0x3f1959(0x3e3)]['other'])>0x0;if(_0x5bd67f&&(_0x3f54fa=''+_0x1e96aa[_0x3f1959(0x258)]),_0x346ed0['s']===_0x2eef51['PivotCellStyleTypeEnum'][_0x3f1959(0x24e)]){let _0x622b8e=_0x3f54fa,_0x1b1df0='';_0x2eef51['isPrefixValue'](_0x3f54fa)&&(_0x622b8e=_0x3f54fa[_0x3f1959(0x2ee)],_0x1b1df0=_0x3f54fa['value']);const _0x40ba30=_0x54abbe&&!_0x3055a8&&!_0x5bd67f?_0x374f23['numfmt']['format'](_0x54abbe,Number(_0x622b8e)):_0x622b8e;_0x1b1df0?_0x3f54fa=_0x40ba30+'\x20'+_0x1b1df0:_0x3f54fa=_0x40ba30+'\x20'+_0x1e96aa[_0x3f1959(0x17d)];}else _0x346ed0['s']===_0x2eef51[_0x3f1959(0x421)]['GrandTotal']&&(_0x3f54fa=_0x3f54fa+'\x20'+_0x1e96aa[_0x3f1959(0x21a)]);return _0x3f54fa;}function _0x9bc11a(_0xbd02ea){const _0x541276=_0x5d1072;if(_0x2eef51['isErrorValue'](_0xbd02ea)){const {errorType:_0x2cb0b1}=_0xbd02ea;switch(_0x2cb0b1){case _0x2eef51[_0x541276(0x1df)][_0x541276(0x398)]:return _0x925485[_0x541276(0x466)][_0x541276(0x414)];case _0x2eef51[_0x541276(0x1df)]['NotNumber']:return _0x925485[_0x541276(0x466)][_0x541276(0x2a1)];case _0x2eef51[_0x541276(0x1df)][_0x541276(0x25e)]:return _0x925485[_0x541276(0x466)][_0x541276(0x198)];case _0x2eef51['PivotErrorTypeEnum'][_0x541276(0x487)]:return _0x925485['ErrorType']['NAME'];case _0x2eef51[_0x541276(0x1df)][_0x541276(0x40a)]:return _0x925485[_0x541276(0x466)]['REF'];}}return _0xbd02ea;}function _0x227f31(_0x4fe17b,_0x590f18,_0x1b85c4=!0x1,_0x4ce5f8=!0x1){const _0x5a4dc8=_0x5d1072,{data:_0x1aaac5}=_0x590f18,_0x609f23=_0x590f18['getRowCount'](),_0x1b5e5a=_0x590f18[_0x5a4dc8(0x37f)]();if(_0x609f23<=0x0||_0x1b5e5a<=0x0)return[];const _0x2cc976=_0x590f18['getLastCol'](),_0x1a6f21=_0x590f18[_0x5a4dc8(0x315)](),_0x5605cd=_0x4ce5f8?_0x1a6f21>=0x0?_0x1a6f21+0x1:0x0:_0x609f23,_0x50f335=_0x4ce5f8?_0x2cc976>=0x0?_0x2cc976+0x1:0x0:_0x1b5e5a,{row:_0x424a0d,col:_0x3e3d0b}=_0x4fe17b,_0x190354=_0x424a0d,_0x302a2d=_0x3e3d0b;if(_0x1b85c4){const _0x731514=[];for(const [_0x19c163,_0x5a5f52]of Object[_0x5a4dc8(0x38d)](_0x1aaac5))for(const [_0x4eee32,_0x1e3fc5]of Object['entries'](_0x5a5f52))_0x731514[_0x5a4dc8(0x27b)](_0x374f23[_0x5a4dc8(0x3d6)](_0x190354+Number(_0x19c163),_0x302a2d+Number(_0x4eee32)));return _0x731514;}else{const _0xe2f5e1=_0x4ce5f8?_0x5605cd>0x0?0x1:0x0:0x1,_0x4cb8a2=_0x4ce5f8?_0x50f335>0x0?0x1:0x0:0x1,_0x40d920=_0x424a0d+_0x5605cd-_0xe2f5e1,_0x548765=_0x3e3d0b+_0x50f335-_0x4cb8a2;return[{'startRow':_0x190354,'startColumn':_0x302a2d,'endRow':_0x40d920,'endColumn':_0x548765}];}}const _0x1e657c=_0x5d1072(0x2f9),_0x2e78bd=_0x5d1072(0x3c3);var _0x5370e2=(_0xc8966a=>(_0xc8966a[_0x5d1072(0x2f1)]='filter',_0xc8966a[_0x5d1072(0x232)]='panel',_0xc8966a[_0x5d1072(0x35c)]=_0x5d1072(0x3e7),_0xc8966a[_0x5d1072(0x231)]='AddPivotTableWithConfig',_0xc8966a[_0x5d1072(0x358)]='addPivotTable',_0xc8966a[_0x5d1072(0x3a0)]='movePivotField',_0xc8966a[_0x5d1072(0x32f)]=_0x5d1072(0x3ac),_0xc8966a[_0x5d1072(0x2f6)]='setPivotCollapse',_0xc8966a['SetPivotFilter']='setPivotFilter',_0xc8966a[_0x5d1072(0x334)]='setPivotSort',_0xc8966a[_0x5d1072(0x46b)]=_0x5d1072(0x289),_0xc8966a['UpdatePivotSource']=_0x5d1072(0x26e),_0xc8966a[_0x5d1072(0x228)]=_0x5d1072(0x3ed),_0xc8966a[_0x5d1072(0x42f)]='drillDown',_0xc8966a[_0x5d1072(0x47d)]=_0x5d1072(0x426),_0xc8966a[_0x5d1072(0x267)]=_0x5d1072(0x47b),_0xc8966a[_0x5d1072(0x305)]='resetPivotTable',_0xc8966a))(_0x5370e2||{});const _0x283503={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':_0x5d1072(0x2c2),'sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':_0x5d1072(0x32c),'sheets-pivot.valueText':'Value','sheets-pivot.averageName':_0x5d1072(0x463),'sheets-pivot.countName':_0x5d1072(0x2aa),'sheets-pivot.countNumsName':_0x5d1072(0x2aa),'sheets-pivot.maxName':_0x5d1072(0x27d),'sheets-pivot.minName':'Min\x20of\x20','sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':_0x5d1072(0x1ce),'sheets-pivot.stdDevpName':_0x5d1072(0x251),'sheets-pivot.sumName':_0x5d1072(0x2e1),'sheets-pivot.varName':'Var\x20of\x20','sheets-pivot.varpName':_0x5d1072(0x375),'sheets-pivot.subTotal':_0x5d1072(0x24e),'sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x5d1072(0x306),'sheets-pivot.blank':_0x5d1072(0x1b7),'sheets-pivot.other':_0x5d1072(0x44d),'sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':'Row','sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':'Values'},_0x3f9a5f={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x460ff6=_0x374f23[_0x5d1072(0x34a)](_0x5d1072(0x480)),_0x1b27ae=_0x374f23[_0x5d1072(0x1f8)](_0x5d1072(0x27e));var _0x5493f6=(_0x5769d9=>(_0x5769d9[_0x5d1072(0x346)]='add',_0x5769d9[_0x5d1072(0x2af)]='delete',_0x5769d9[_0x5d1072(0x33f)]=_0x5d1072(0x33f),_0x5769d9))(_0x5493f6||{}),_0x5ae422=(_0x228cb0=>(_0x228cb0[_0x5d1072(0x395)]='add',_0x228cb0[_0x5d1072(0x332)]=_0x5d1072(0x3b5),_0x228cb0[_0x5d1072(0x36a)]=_0x5d1072(0x2af),_0x228cb0))(_0x5ae422||{});const _0x23d358={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},_0x38eba3={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x3bd),'handler':()=>!0x0},_0x4d7335={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},_0x306833={'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'id':_0x5d1072(0x240),'handler':()=>!0x0},_0x4a9d2d={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':'sheet.mutation.send-init-pivot-text-local','handler':()=>!0x0};var _0x50e247=Object[_0x5d1072(0x2c5)],_0x354d08=(_0x525efa,_0x3e1a77,_0x330797,_0x1f80ae)=>{const _0x37ffe6=_0x5d1072;for(var _0x54e5b6=_0x1f80ae>0x1?void 0x0:_0x1f80ae?_0x50e247(_0x3e1a77,_0x330797):_0x3e1a77,_0x3135c3=_0x525efa[_0x37ffe6(0x468)]-0x1,_0x6bea67;_0x3135c3>=0x0;_0x3135c3--)(_0x6bea67=_0x525efa[_0x3135c3])&&(_0x54e5b6=_0x6bea67(_0x54e5b6)||_0x54e5b6);return _0x54e5b6;},_0x472406=(_0x359a8b,_0x38367b)=>(_0x1dc5a6,_0x51bd5a)=>_0x38367b(_0x1dc5a6,_0x51bd5a,_0x359a8b);_0x1cc2c4[_0x5d1072(0x333)]=class extends _0x374f23['Disposable']{constructor(_0x33584b){const _0xc6aac1=_0x5d1072;super(),_0x1e0b19(this,_0xc6aac1(0x323),new Map()),this[_0xc6aac1(0x454)]=_0x33584b;}['handleAsyncResponse'](_0x1c3a4c){const _0x4c48ce=_0x5d1072,{version:_0xff65cb}=_0x1c3a4c,_0x5b8983=this[_0x4c48ce(0x323)]['get'](_0xff65cb);_0x5b8983&&(_0x5b8983(_0x1c3a4c),this[_0x4c48ce(0x323)]['delete'](_0xff65cb));}[_0x5d1072(0x291)](_0x405f52){return new Promise((_0x37a999,_0x1b3f73)=>{const _0x30a6db=_0x1019,_0xb7e512=this['_generateUniqueVersion']();this[_0x30a6db(0x323)]['set'](_0xb7e512,_0x37a999),this[_0x30a6db(0x454)][_0x30a6db(0x17c)](_0x23d358['id'],{'version':_0xb7e512,..._0x405f52},{'onlyLocal':!0x0});});}['_generateUniqueVersion'](){const _0x35b69e=_0x5d1072;return Math['random']()[_0x35b69e(0x17f)](0x24)[_0x35b69e(0x3c7)](0x2,0x10);}},_0x1cc2c4['SheetsPivotRPCService']=_0x354d08([_0x472406(0x0,_0x374f23['Inject'](_0x374f23['ICommandService']))],_0x1cc2c4[_0x5d1072(0x333)]);const _0x6b9aa1={0x0:'w',0x1:'s',0x2:'F',0x3:'i',0x4:'9',0x5:'a',0x6:'h',0x7:'1',0x8:'D',0x9:'S','C':'0','u':'2','l':'3','X':'4','v':'5','T':'6','Q':'7','n':'8','b':'b','c':'c','Z':'d','U':'e','x':'f','K':'g','h':'j','P':'k','t':'l','g':'m','M':'n','z':'o','e':'p','G':'q','q':'r','o':'t','R':'u','w':'v','s':'x','I':'y','J':'z','Y':'A','W':'B','F':'C','i':'E','a':'G','D':'H','f':'I','N':'J','m':'K','H':'L','V':'M','y':'N','A':'O','p':'P','B':'Q','O':'R','L':'T','S':'U','k':'V','E':'W','d':'X','j':'Y','r':'Z'},_0x137d34=_0x5d1072(0x264),_0x38d7ab=_0x4b4e65=>{const _0x5931d7=_0x5d1072;var _0x1f6ad2;return((_0x1f6ad2=_0x4b4e65[_0x5931d7(0x394)])==null?void 0x0:_0x1f6ad2['dataStream']['replace'](/\r\n$/,''))||'';};class _0x1d59b3 extends _0x2eef51[_0x5d1072(0x245)]{constructor(_0x2885d5,_0x2be258){const _0x7ba286=_0x5d1072;super(),_0x1e0b19(this,_0x7ba286(0x3df),{}),_0x1e0b19(this,'_univerInstanceService'),_0x1e0b19(this,_0x7ba286(0x182)),(this[_0x7ba286(0x443)]=_0x2be258,this[_0x7ba286(0x182)]=_0x2885d5);}[_0x5d1072(0x3e9)](){const _0x4e8702=_0x5d1072;for(const _0x4e2b8b in this[_0x4e8702(0x3d1)]){const _0x56f62f=this[_0x4e8702(0x3d1)][_0x4e2b8b],_0x2f1060=_0x56f62f[_0x4e8702(0x23b)]();this[_0x4e8702(0x3df)][_0x2f1060]=_0x56f62f[_0x4e8702(0x470)]();}}[_0x5d1072(0x477)](){const _0x462cf=_0x5d1072,_0x11fbd2=this[_0x462cf(0x182)];return _0x1f8c04[_0x462cf(0x449)](_0x11fbd2);}[_0x5d1072(0x34d)](_0x9e746e){const _0x456dca=_0x5d1072,_0xb5977c=this[_0x456dca(0x3d1)][_0x9e746e][_0x456dca(0x262)];delete this[_0x456dca(0x3d1)][_0x9e746e],delete this['rangeKeyMap'][_0xb5977c];}['addDataFieldWithoutUnitInfo'](_0x2eaea1){const _0x1dfd4c=_0x5d1072;this[_0x1dfd4c(0x3d1)][_0x2eaea1[_0x1dfd4c(0x470)]()]=_0x2eaea1;}[_0x5d1072(0x38a)](_0x12900b){const _0x26e3e7=_0x5d1072;var _0x59d83d,_0xf2ad99;const _0x257214=this[_0x26e3e7(0x182)][_0x26e3e7(0x1c8)](_0x12900b);if(_0x257214){const {unitId:_0x115020,subUnitId:_0x135694}=_0x257214,_0x48fb24=(_0x59d83d=this[_0x26e3e7(0x182)][_0x26e3e7(0x458)](_0x115020,_0x135694,_0x12900b))==null?void 0x0:_0x59d83d[_0x26e3e7(0x1d7)];this['_host'][_0x26e3e7(0x400)]({'token':_0x12900b,'type':_0x5493f6['delete'],'dataRangeInfo':_0x48fb24});}(_0xf2ad99=this['getCollection'](_0x12900b))==null||_0xf2ad99[_0x26e3e7(0x259)](),delete this['collections'][_0x12900b];}[_0x5d1072(0x23b)](_0x5a46d7,_0x1c98d8){const _0x477bc3=_0x5d1072,{sheetName:_0x5d9303,unitId:_0x2df302,range:_0x5c6f3a}=_0x5a46d7,{startRow:_0x44eb02,endRow:_0xbf6d33}=_0x5c6f3a;return _0x925485[_0x477bc3(0x484)](_0x2df302,_0x5d9303,{'startRow':_0x44eb02,'endRow':_0xbf6d33,'startColumn':_0x1c98d8,'endColumn':_0x1c98d8});}[_0x5d1072(0x373)](_0x56f587){const _0x3a7bc7=_0x5d1072;return this[_0x3a7bc7(0x3d1)][this[_0x3a7bc7(0x3df)][_0x56f587]];}[_0x5d1072(0x22b)](_0x27f105,_0x16fac0){this['rangeKeyMap'][_0x27f105]=_0x16fac0;}[_0x5d1072(0x22f)](_0x1825ff,_0x291e4b){const _0x59be6b=_0x5d1072;this['rangeKeyMap'][_0x291e4b]=this[_0x59be6b(0x3df)][_0x1825ff],delete this[_0x59be6b(0x3df)][_0x1825ff];}['addCollectionByJSON'](_0x572d2f,_0x5f01db,_0x1168ea,_0x55faad){const _0x525a58=_0x5d1072,_0x4d8fe9=new _0x2eef51[(_0x525a58(0x34f))](this);_0x4d8fe9[_0x525a58(0x328)](_0x5f01db);const _0x337593=[];let _0x4b02a2=0x0;for(const _0x16d0a9 of _0x4d8fe9[_0x525a58(0x1f7)]){const _0x2134a6=this['getRangeKey'](_0x1168ea,_0x4b02a2),_0xf121cd=this[_0x525a58(0x3d1)][_0x16d0a9];_0xf121cd&&(_0xf121cd['rangeKey']=_0x2134a6,this[_0x525a58(0x22b)](_0x2134a6,_0x16d0a9),_0x337593[_0x525a58(0x27b)]({'index':_0x4b02a2,'dataField':_0xf121cd})),_0x4b02a2++;}return this['addCollection'](_0x572d2f,_0x4d8fe9,_0x1168ea,_0x55faad),{'collection':_0x4d8fe9,'updateDataFieldList':_0x337593};}[_0x5d1072(0x2cd)](_0x2b0584,_0x897d){const _0x289439=_0x5d1072;return _0x2b0584['rangeType']===_0x374f23[_0x289439(0x1e6)][_0x289439(0x20a)]?{'startRow':0x0,'startColumn':_0x2b0584[_0x289439(0x3b9)],'endRow':_0x897d[_0x289439(0x46e)]()-0x1,'endColumn':_0x2b0584[_0x289439(0x217)]}:{'startRow':_0x2b0584[_0x289439(0x378)],'startColumn':_0x2b0584[_0x289439(0x3b9)],'endRow':_0x2b0584[_0x289439(0x3a2)],'endColumn':_0x2b0584[_0x289439(0x217)]};}[_0x5d1072(0x27c)](_0xc97c98){const _0x2dd791=_0x5d1072,{sheetName:_0x846260,range:_0xa9a8e2}=_0xc97c98,_0x3ca84e=this[_0x2dd791(0x443)][_0x2dd791(0x2fb)](_0x374f23[_0x2dd791(0x1e8)]['UNIVER_SHEET']),_0x35c98f=_0x3ca84e[_0x2dd791(0x404)](_0x846260),_0xf071c9=_0x35c98f[_0x2dd791(0x1b2)](),{startColumn:_0x3a3e18,startRow:_0x1c11de,endColumn:_0x18650a}=this[_0x2dd791(0x2cd)](_0xa9a8e2,_0x35c98f),_0x4de529=_0x3ca84e[_0x2dd791(0x26a)](),_0x4ad1cb=new _0x2eef51[(_0x2dd791(0x34f))](this);_0x4ad1cb[_0x2dd791(0x406)](_0xc97c98);const _0xb9624a=[],_0x5f0db4={};for(let _0x173641=_0x3a3e18;_0x173641<=_0x18650a;_0x173641++){const _0x2d2586=_0xf071c9[_0x2dd791(0x216)](_0x1c11de,_0x173641),_0xe5130c=this[_0x2dd791(0x23b)](_0xc97c98,_0x173641),_0x26dcd2=this['getDataFieldByRangeKey'](_0xe5130c);if(_0x26dcd2)_0x4ad1cb[_0x2dd791(0x34b)](_0x26dcd2[_0x2dd791(0x470)](),_0x26dcd2['getName']());else{const _0x353d91=this[_0x2dd791(0x1a6)]();let _0x1b1311=this[_0x2dd791(0x25b)](_0x2d2586,_0x4de529,_0x5f0db4);_0x2eef51['isDateValue'](_0x1b1311)&&(_0x1b1311=_0x374f23['numfmt'][_0x2dd791(0x429)](_0x1b1311['f'],Number(_0x1b1311['v'])));const _0xc972f0=this[_0x2dd791(0x273)](_0x1b1311,_0x173641),_0x480c21=new _0x2eef51[(_0x2dd791(0x1a9))](_0x353d91,_0xc972f0,_0x2eef51['generateHexNumber'](0x3));_0x480c21[_0x2dd791(0x262)]=_0xe5130c,this[_0x2dd791(0x3d1)][_0x353d91]=_0x480c21,_0x4ad1cb[_0x2dd791(0x34b)](_0x353d91,_0xc972f0),_0xb9624a[_0x2dd791(0x27b)]({'index':_0x173641,'dataField':_0x480c21});}}return{'updateDataFieldList':_0xb9624a,'collection':_0x4ad1cb};}[_0x5d1072(0x242)](_0xc624fe){const _0x2b1c1b=_0x5d1072;return this['_host'][_0x2b1c1b(0x277)]()[_0x2b1c1b(0x1ca)]+'\x20'+_0x374f23[_0x2b1c1b(0x2d5)](_0xc624fe);}[_0x5d1072(0x273)](_0x122496,_0x3f626b){const _0xaa011a=_0x5d1072;return _0x122496==null||_0x122496===''?this[_0xaa011a(0x242)](_0x3f626b):String(_0x122496);}[_0x5d1072(0x43d)](_0x3d305b){return this['collections'][_0x3d305b];}[_0x5d1072(0x1d6)](_0xb311f0,_0x27415f,_0x59c10a,_0x495f34){const _0x291643=_0x5d1072;this['collections'][_0xb311f0]=_0x27415f,_0x27415f[_0x291643(0x406)](_0x59c10a),this[_0x291643(0x182)][_0x291643(0x400)]({'token':_0xb311f0,'type':_0x5493f6['add'],'dataRangeInfo':_0x59c10a,'targetCellInfo':_0x495f34});}['handleMoveRange'](_0x27722f,_0x1abb6a){const _0x497bde=_0x5d1072,_0x1e1cfe=this[_0x497bde(0x43d)](_0x27722f),_0x229c0b=_0x1e1cfe[_0x497bde(0x324)]();let _0x3b82f2=0x0;for(const _0x217d28 of _0x229c0b){const _0x347619=_0x1e1cfe['getFieldById'](_0x217d28),_0x51603a=this[_0x497bde(0x23b)](_0x1abb6a,_0x3b82f2);this['updateRangeKeyMap'](_0x347619['rangeKey'],_0x51603a),_0x3b82f2++;}}[_0x5d1072(0x338)](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x2f4e18,_0x1ac73e){const _0x3fd5aa=_0x5d1072;if(this[_0x3fd5aa(0x43d)](_0x2f4e18)){const _0x4c34ca=this[_0x3fd5aa(0x412)](_0x1ac73e),_0x281f9b=[];for(const _0xe9bddc of _0x4c34ca)this[_0x3fd5aa(0x3df)][_0xe9bddc]!==void 0x0&&_0x281f9b['push'](this[_0x3fd5aa(0x3df)][_0xe9bddc]);const _0x56fc08=this[_0x3fd5aa(0x32a)](_0x2f4e18),_0x2c2890=[],_0x5d1185=new Set(_0x281f9b);for(const _0x3f8da1 of _0x56fc08)_0x5d1185[_0x3fd5aa(0x1b5)](_0x3f8da1)||_0x2c2890['push'](_0x3f8da1);return _0x2c2890;}}['getMatrixValue'](_0x23caf1,_0x19536c,_0x38a4c0,_0x5c81fb,_0x26b77e){const _0x1da6eb=_0x5d1072;return _0x19536c&&_0x19536c[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e)?_0x19536c[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e):_0x38a4c0&&_0x38a4c0[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e)?_0x38a4c0[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e):_0x23caf1[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e);}[_0x5d1072(0x246)](_0x8ded0d,_0x216e82,_0x522bbe,_0x221c34){const _0x51e26b=_0x5d1072,_0x151fba=this['dataFields'][_0x8ded0d];if(!_0x151fba)return;const {subUnitId:_0x5203ad,range:_0x305433,unitId:_0x3e6465}=_0x216e82,_0x3e3dc1=this[_0x51e26b(0x443)][_0x51e26b(0x2f2)](_0x3e6465);if(!_0x3e3dc1){console[_0x51e26b(0x3a7)](_0x51e26b(0x177));return;}const _0x8422f=_0x3e3dc1['getSheetBySheetId'](_0x5203ad),_0x40dfa6=_0x8422f[_0x51e26b(0x1b2)](),{arrayFormulaCellDataMatrix:_0x1d5e44,unitDataMatrix:_0x4a4069}=_0x221c34||{},{startRow:_0x5190cf,startColumn:_0x507810,endRow:_0x4b8db7}=this[_0x51e26b(0x2cd)](_0x305433,_0x8422f);_0x151fba[_0x51e26b(0x409)]();const _0x506404=_0x3e3dc1[_0x51e26b(0x26a)](),_0x469ff8={},_0xc164c9=this[_0x51e26b(0x292)](_0x40dfa6,_0x1d5e44,_0x4a4069,_0x5190cf,_0x507810+_0x522bbe);let _0x2e968c=this[_0x51e26b(0x25b)](_0xc164c9,_0x506404,_0x469ff8);_0x2eef51['isDateValue'](_0x2e968c)&&(_0x2e968c=_0x374f23['numfmt'][_0x51e26b(0x429)](_0x2e968c['f'],Number(_0x2e968c['v'])));const _0x2d89ff=this[_0x51e26b(0x273)](_0x2e968c,_0x507810+_0x522bbe);_0x151fba[_0x51e26b(0x1c0)](_0x2d89ff);for(let _0x2ffc26=_0x5190cf+0x1;_0x2ffc26<=_0x4b8db7;_0x2ffc26++){const _0x18768e=this[_0x51e26b(0x292)](_0x40dfa6,_0x1d5e44,_0x4a4069,_0x2ffc26,_0x507810+_0x522bbe);_0x151fba[_0x51e26b(0x43e)](this[_0x51e26b(0x25b)](_0x18768e,_0x506404,_0x469ff8),_0x2ffc26-0x1-_0x5190cf);}}[_0x5d1072(0x33a)](_0x53da28,_0x24d097,_0x3c35c8){const _0x1617d1=_0x5d1072,{subUnitId:_0x16f945,range:_0x25a593,unitId:_0x3734c8}=_0x3c35c8,_0x735312=this['_univerInstanceService'][_0x1617d1(0x2f2)](_0x3734c8);if(!_0x735312){console[_0x1617d1(0x3a7)](_0x1617d1(0x177));return;}const _0x29a2cc=_0x735312[_0x1617d1(0x317)](_0x16f945),_0x1fd4ac=_0x29a2cc[_0x1617d1(0x1b2)](),{startRow:_0x972605,startColumn:_0x4c5d97,endRow:_0x777b7a}=this[_0x1617d1(0x2cd)](_0x25a593,_0x29a2cc),_0x5a465b=_0x735312[_0x1617d1(0x26a)](),_0x5d2acf={};for(const {dataField:_0x12cadc,index:_0x477250}of _0x24d097){_0x12cadc[_0x1617d1(0x409)]();const _0x30e34=this[_0x1617d1(0x292)](_0x1fd4ac,void 0x0,void 0x0,_0x972605,_0x4c5d97+_0x477250);let _0x284915=this[_0x1617d1(0x25b)](_0x30e34,_0x5a465b,_0x5d2acf);_0x2eef51[_0x1617d1(0x28e)](_0x284915)&&(_0x284915=_0x374f23[_0x1617d1(0x1c9)][_0x1617d1(0x429)](_0x284915['f'],Number(_0x284915['v'])));const _0x2b93f5=this[_0x1617d1(0x273)](_0x284915,_0x4c5d97+_0x477250);_0x12cadc[_0x1617d1(0x1c0)](_0x2b93f5);}_0x53da28['updateAllDisplayName']();for(let _0x471c44=_0x972605+0x1;_0x471c44<=_0x777b7a;_0x471c44++)for(const {index:_0x145eed,dataField:_0x2f1f59}of _0x24d097){const _0x344e23=_0x1fd4ac['getValue'](_0x471c44,_0x4c5d97+_0x145eed);_0x2f1f59[_0x1617d1(0x43e)](this['adjustSheetCellData'](_0x344e23,_0x5a465b,_0x5d2acf),_0x471c44-0x1-_0x972605);}_0x53da28['setDataRecordCount'](_0x777b7a-_0x972605);}['getRangeKeyList'](_0x484313){const _0x314f9a=_0x5d1072,{range:_0x5e82c9}=_0x484313,{startColumn:_0x589215,endColumn:_0x54e77c}=_0x5e82c9,_0x418a73=[];for(let _0xad4e73=_0x589215;_0xad4e73<=_0x54e77c;_0xad4e73++)_0x418a73[_0x314f9a(0x27b)](this['getRangeKey'](_0x484313,_0xad4e73));return _0x418a73;}['adjustSheetCellData'](_0x1b17cc,_0x5a0c46,_0x3a4a9b){const _0x195024=_0x5d1072;if(_0x1b17cc){const {s:_0x2483a1,v:_0x3ebaff,t:_0x4a0f93,p:_0x1772e1}=_0x1b17cc;if(_0x1772e1)return _0x38d7ab(_0x1772e1);const _0x1b3625=_0x5a0c46[_0x195024(0x411)](_0x2483a1);if(_0x1b3625&&_0x4a0f93===_0x374f23[_0x195024(0x278)]['NUMBER']&&_0x1b3625['n']){const {pattern:_0x4960bb}=_0x1b3625['n'];_0x3a4a9b[_0x4960bb]||(_0x3a4a9b[_0x4960bb]=_0x374f23['numfmt']['getFormatInfo'](_0x4960bb));const _0x25f90d=_0x3a4a9b[_0x4960bb],_0x3d50ba=_0x25f90d[_0x195024(0x380)];if(_0x25f90d[_0x195024(0x488)])return String(_0x3ebaff);if(_0x3d50ba)return{'v':_0x3ebaff,'f':_0x4960bb};}if(_0x4a0f93===_0x374f23['CellValueType'][_0x195024(0x1f4)])return Number(_0x3ebaff);if(_0x4a0f93===_0x374f23[_0x195024(0x278)]['STRING']||_0x4a0f93===_0x374f23[_0x195024(0x278)][_0x195024(0x1d0)])return String(_0x3ebaff);if(_0x4a0f93===void 0x0){const _0x440df7=Number(_0x3ebaff);if(!Number[_0x195024(0x2cb)](_0x440df7)&&String(_0x440df7)===_0x3ebaff)return _0x440df7;}return _0x3ebaff!=null?_0x3ebaff:null;}else return null;}[_0x5d1072(0x2f0)](_0xc83cb9){const _0x771f6a=_0x5d1072,{sheetName:_0xfca6f8,range:_0x390ad5,unitId:_0x38e964}=_0xc83cb9,_0x36bb3f=this[_0x771f6a(0x443)][_0x771f6a(0x2f2)](_0x38e964);if(!_0x36bb3f)return console['error'](_0x771f6a(0x177)),{'header':[],'data':[]};const _0x1a6a85=_0x36bb3f[_0x771f6a(0x404)](_0xfca6f8),_0x40b0d2=_0x1a6a85[_0x771f6a(0x1b2)](),{startRow:_0x59aea5,startColumn:_0x550440,endRow:_0x51845d,endColumn:_0x38de39}=this[_0x771f6a(0x2cd)](_0x390ad5,_0x1a6a85),_0x37ab76=_0x36bb3f[_0x771f6a(0x26a)](),_0xea2b00=[],_0x286a83=[],_0x31ac17={};for(let _0x3ce9a0=_0x59aea5;_0x3ce9a0<=_0x51845d;_0x3ce9a0++){const _0x4cf2fe=[];for(let _0x4f9bad=_0x550440;_0x4f9bad<=_0x38de39;_0x4f9bad++){const _0x1f789c=_0x40b0d2[_0x771f6a(0x216)](_0x3ce9a0,_0x4f9bad);_0x3ce9a0===_0x59aea5?_0xea2b00[_0x771f6a(0x27b)](_0x1f789c==null?null:String(_0x1f789c['v'])):_0x4cf2fe[_0x771f6a(0x27b)](this[_0x771f6a(0x25b)](_0x1f789c,_0x37ab76,_0x31ac17));}_0x286a83[_0x771f6a(0x27b)](_0x4cf2fe);}return{'header':_0xea2b00,'data':_0x286a83};}['toJSON'](){const _0x6986d2=_0x5d1072;return super[_0x6986d2(0x3ff)]();}[_0x5d1072(0x328)](_0x1e37fa){const _0x4e037f=_0x5d1072;super[_0x4e037f(0x328)](_0x1e37fa),this[_0x4e037f(0x3e9)]();}[_0x5d1072(0x259)](){super['dispose'](),this['rangeKeyMap']={},this['_host']=null;}}const _0x1afa42=_0x3220a6=>{const _0x41446c=_0x5d1072,{targetCellInfo:_0x1bb6fe}=_0x3220a6,{matrixCache:_0x5842ac,rangesCache:_0x5e1845}=_0x36fb91({'filter':_0x41446c(0x2f1),'row':_0x41446c(0x415),'column':_0x41446c(0x403),'values':'Values'},_0x1bb6fe),_0x499a10=new _0x374f23[(_0x41446c(0x33b))]();return _0x5842ac[_0x41446c(0x1d1)]((_0x1268fb,_0x2c43e9,_0x372670)=>{const _0x16c9ee=_0x41446c;_0x499a10[_0x16c9ee(0x388)](_0x1268fb,_0x2c43e9,_0x372670);}),{'matrix':_0x499a10,'rangesCache':_0x5e1845};},_0x1806da=_0x52b6f4=>{const _0x83f007=_0x5d1072;let _0x375fb4;if(_0x52b6f4!=null&&_0x52b6f4['v']||(_0x52b6f4==null?void 0x0:_0x52b6f4['v'])===0x0){_0x375fb4||(_0x375fb4={});const _0x5afc54=_0x9bc11a(_0x52b6f4['v']);typeof _0x5afc54=='number'?_0x375fb4['t']=_0x374f23['CellValueType'][_0x83f007(0x1f4)]:typeof _0x5afc54==_0x83f007(0x436)&&(_0x375fb4['t']=_0x374f23[_0x83f007(0x278)]['STRING']),_0x375fb4['v']=_0x5afc54;}return _0x375fb4;},_0x59e2c1=(_0x2bb4b4,_0x4d6af7,_0x2831ef)=>{const _0x40eb8=_0x5d1072;var _0x3a84d5,_0x1be4f9,_0x16f879,_0x4b3b1b,_0x2d4dbf,_0x35e7ca,_0x99d1a3,_0x58c6b6,_0x227458,_0x46afae,_0x2f77cd,_0x4ce363;const {cornerView:_0x23723c,rowView:_0x22a422,colView:_0x506934,dataView:_0x4873f1,pageView:_0x187036,formatMap:_0x4e8af3}=_0x2bb4b4,{row:_0x216415,col:_0x5a0642}=_0x4d6af7,_0x46e2fe=new _0x374f23[(_0x40eb8(0x33b))]();let _0x3a62b6=_0x216415,_0x5195ce=_0x5a0642;Object[_0x40eb8(0x3d8)](_0x187036[_0x40eb8(0x3b3)])['forEach'](_0x334735=>{const _0x395eed=_0x40eb8;Object[_0x395eed(0x3d8)](_0x187036[_0x395eed(0x3b3)][Number(_0x334735)])[_0x395eed(0x274)](_0x5575a4=>{const _0x1ced46=_0x395eed,_0x20d571={..._0x187036[_0x1ced46(0x3b3)][Number(_0x334735)][Number(_0x5575a4)]};_0x46e2fe[_0x1ced46(0x388)](Number(_0x334735)+_0x3a62b6,Number(_0x5575a4)+_0x5195ce,_0x1806da(_0x20d571));});});const _0x348f6d=Object[_0x40eb8(0x3d8)](_0x187036[_0x40eb8(0x3b3)])[_0x40eb8(0x468)];_0x3a62b6+=_0x348f6d+(_0x348f6d?_0x9545db:0x0);const _0x33db8c=_0x23723c[_0x40eb8(0x46e)](),_0xb3d1c3=_0x23723c[_0x40eb8(0x37f)]();for(let _0x4759a9=0x0;_0x4759a9<_0x33db8c;_0x4759a9++)for(let _0x158ba2=0x0;_0x158ba2<_0xb3d1c3;_0x158ba2++){const _0x363254={...(_0x1be4f9=(_0x3a84d5=_0x23723c[_0x40eb8(0x3b3)])==null?void 0x0:_0x3a84d5[_0x4759a9])==null?void 0x0:_0x1be4f9[_0x158ba2]};_0x363254&&((_0x16f879=_0x22a422[_0x40eb8(0x271)][_0x158ba2])!=null&&_0x16f879[_0x40eb8(0x40e)])&&_0x158ba2===_0xb3d1c3-0x1&&_0x4759a9===_0x33db8c-0x1&&(_0x363254['v']=''+_0x2831ef[_0x40eb8(0x37a)]),_0x46e2fe['setValue'](_0x4759a9+_0x3a62b6,_0x158ba2+_0x5195ce,_0x1806da(_0x363254));}_0x5195ce+=_0xb3d1c3;const _0x440803=_0x506934[_0x40eb8(0x271)],_0x2cea94=_0x506934[_0x40eb8(0x315)]()>=0x0?_0x506934['getLastRow']()+0x1:0x0,_0x3b8293=_0x506934[_0x40eb8(0x20f)]()>=0x0?_0x506934[_0x40eb8(0x20f)]()+0x1:0x0;for(let _0x26033f=0x0;_0x26033f<_0x3b8293;_0x26033f++)for(let _0x13842d=0x0;_0x13842d<_0x2cea94;_0x13842d++){const _0x407a20={...(_0x2d4dbf=(_0x4b3b1b=_0x506934[_0x40eb8(0x3b3)])==null?void 0x0:_0x4b3b1b[_0x26033f])==null?void 0x0:_0x2d4dbf[_0x13842d]},_0x5aaf2e=(_0x35e7ca=_0x440803[_0x26033f])==null?void 0x0:_0x35e7ca[_0x40eb8(0x44b)],_0x376b85=_0x4e8af3[_0x5aaf2e];_0x407a20&&(_0x407a20['v']=_0x99791(_0x407a20,_0x26033f===0x0&&((_0x99d1a3=_0x506934[_0x40eb8(0x351)](_0x13842d+0x1))==null?void 0x0:_0x99d1a3[_0x40eb8(0x40e)]),_0x376b85,_0x2831ef)),_0x46e2fe['setValue'](_0x26033f+_0x3a62b6,_0x13842d+_0x5195ce,_0x1806da(_0x407a20));}_0x3a62b6+=_0x33db8c;const _0x31b665=_0x22a422[_0x40eb8(0x271)],_0x2a3fa7=_0x22a422[_0x40eb8(0x315)]()>=0x0?_0x22a422[_0x40eb8(0x315)]()+0x1:0x0,_0x35db7f=_0x22a422['getLastCol']()>=0x0?_0x22a422[_0x40eb8(0x20f)]()+0x1:0x0;for(let _0x3a6962=0x0;_0x3a6962<_0x2a3fa7;_0x3a6962++)for(let _0x134a86=0x0;_0x134a86<_0x35db7f;_0x134a86++){const _0xf96274={...(_0x227458=(_0x58c6b6=_0x22a422[_0x40eb8(0x3b3)])==null?void 0x0:_0x58c6b6[_0x3a6962])==null?void 0x0:_0x227458[_0x134a86]},_0xd9e537=(_0x46afae=_0x31b665[_0x134a86])==null?void 0x0:_0x46afae[_0x40eb8(0x44b)],_0x3d5d88=_0x4e8af3[_0xd9e537];_0xf96274&&(_0xf96274['v']=_0x99791(_0xf96274,!0x1,_0x3d5d88,_0x2831ef)),_0x46e2fe[_0x40eb8(0x388)](_0x3a6962+_0x3a62b6,_0x134a86+_0x5a0642,_0x1806da(_0xf96274));}const _0x249a18=_0x4873f1[_0x40eb8(0x46e)](),_0x22958b=_0x4873f1[_0x40eb8(0x37f)]();for(let _0x2348d4=0x0;_0x2348d4<_0x249a18;_0x2348d4++)for(let _0x4a9e13=0x0;_0x4a9e13<_0x22958b;_0x4a9e13++){const _0x42077a={...(_0x4ce363=(_0x2f77cd=_0x4873f1[_0x40eb8(0x3b3)])==null?void 0x0:_0x2f77cd[_0x2348d4])==null?void 0x0:_0x4ce363[_0x4a9e13]};_0x46e2fe[_0x40eb8(0x388)](_0x2348d4+_0x3a62b6,_0x4a9e13+_0x5195ce,_0x1806da(_0x42077a));}return _0x46e2fe;},_0x50fc8d=_0x7ca175=>{const _0x3028bf=_0x5d1072,{view:_0x598ec3,targetCellInfo:_0x2b4fb7,isEmpty:_0x284e74,textInfo:_0x57378f}=_0x7ca175;if(_0x284e74)return _0x1afa42(_0x7ca175);const {pageView:_0x5bb206,cornerView:_0x80d49d,rowView:_0x37124d,colView:_0x44321c,dataView:_0x5b7f3a}=_0x598ec3,_0x17a52d=_0x227f31(_0x2b4fb7,_0x5bb206,!0x0),_0x2f55bb=_0x5bb206[_0x3028bf(0x18f)]>=0x0?_0x5bb206['lastRow']+0x1:0x0,_0x5a328c=_0x80d49d['getRowCount'](),_0x6e8171=_0x80d49d['getColCount'](),_0x4e49f3=_0x17a52d[_0x3028bf(0x468)]>0x0?_0x9545db:0x0,_0x4ee248=_0x227f31({'row':_0x2b4fb7[_0x3028bf(0x23e)]+_0x2f55bb+_0x4e49f3,'col':_0x2b4fb7[_0x3028bf(0x434)]},_0x80d49d,!0x1,!0x1),_0x5c9cfa=_0x227f31({'row':_0x2b4fb7['row']+_0x2f55bb+_0x4e49f3+_0x5a328c,'col':_0x2b4fb7[_0x3028bf(0x434)]},_0x37124d,!0x1,!0x0),_0x562103=_0x227f31({'row':_0x2b4fb7[_0x3028bf(0x23e)]+_0x2f55bb+_0x4e49f3,'col':_0x2b4fb7[_0x3028bf(0x434)]+_0x6e8171},_0x44321c,!0x1,!0x0),_0x205ceb=_0x227f31({'row':_0x2b4fb7[_0x3028bf(0x23e)]+_0x2f55bb+_0x4e49f3+_0x5a328c,'col':_0x2b4fb7[_0x3028bf(0x434)]+_0x6e8171},_0x5b7f3a,!0x1,!0x1),_0x5f22fc={'rowRanges':_0x5c9cfa,'colRanges':_0x562103,'cornerRanges':_0x4ee248,'dataRanges':_0x205ceb,'pageRanges':_0x17a52d};return{'matrix':_0x59e2c1(_0x598ec3,_0x2b4fb7,_0x57378f),'rangesCache':_0x5f22fc};};var _0x3be594=Object[_0x5d1072(0x2c5)],_0x3ef864=(_0x306b1b,_0x28c0d6,_0x5c9b74,_0x5c6580)=>{const _0x1f837a=_0x5d1072;for(var _0xbd44a0=_0x5c6580>0x1?void 0x0:_0x5c6580?_0x3be594(_0x28c0d6,_0x5c9b74):_0x28c0d6,_0x19763c=_0x306b1b[_0x1f837a(0x468)]-0x1,_0x482f59;_0x19763c>=0x0;_0x19763c--)(_0x482f59=_0x306b1b[_0x19763c])&&(_0xbd44a0=_0x482f59(_0xbd44a0)||_0xbd44a0);return _0xbd44a0;},_0x3762a4=(_0x335708,_0x1e558e)=>(_0x5c7a6d,_0x394c57)=>_0x1e558e(_0x5c7a6d,_0x394c57,_0x335708);_0x1cc2c4['SheetsPivotDataSourceModel']=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x3035fc,_0x43c887,_0x3bd33b,_0x4d3047,_0x350ad){const _0x7ed3d9=_0x5d1072;super(),_0x1e0b19(this,_0x7ed3d9(0x193),new Map()),_0x1e0b19(this,_0x7ed3d9(0x476),new Map()),_0x1e0b19(this,_0x7ed3d9(0x201),new Map()),_0x1e0b19(this,'_textInfo'),_0x1e0b19(this,'_collectionChange$',new _0x1cd777[(_0x7ed3d9(0x2ac))]()),_0x1e0b19(this,_0x7ed3d9(0x28a),this[_0x7ed3d9(0x266)][_0x7ed3d9(0x3f4)]()),_0x1e0b19(this,_0x7ed3d9(0x26d),new _0x1cd777['Subject']()),_0x1e0b19(this,_0x7ed3d9(0x279),this[_0x7ed3d9(0x26d)][_0x7ed3d9(0x3f4)]()),_0x1e0b19(this,'_fieldsCollectionChange$',new _0x1cd777[(_0x7ed3d9(0x2ac))]()),_0x1e0b19(this,_0x7ed3d9(0x34e),this[_0x7ed3d9(0x253)]['asObservable']()),_0x1e0b19(this,_0x7ed3d9(0x178),new Map()),_0x1e0b19(this,_0x7ed3d9(0x38c),[]),_0x1e0b19(this,_0x7ed3d9(0x20c),new Map()),(this[_0x7ed3d9(0x42a)]=_0x3035fc,this['_univerInstanceService']=_0x43c887,this[_0x7ed3d9(0x25f)]=_0x3bd33b,this[_0x7ed3d9(0x454)]=_0x4d3047,this[_0x7ed3d9(0x2d1)]=_0x350ad,this[_0x7ed3d9(0x348)]());}[_0x5d1072(0x277)](){const _0x4327d2=_0x5d1072;return this[_0x4327d2(0x187)]?this['_textInfo']:_0x283503;}[_0x5d1072(0x340)](_0x426eed){const _0x315317=_0x5d1072;this[_0x315317(0x187)]=_0x426eed;}[_0x5d1072(0x2f8)](_0x508692){const _0x1356af=_0x5d1072;var _0xc9f310;const {from:_0x34352e,to:_0x1ee4e1,unitId:_0x2e0686,fromRange:_0x15a353,toRange:_0x1826b0}=_0x508692;if(_0x34352e&&_0x1ee4e1){const _0x33693d=this['getDataFieldManager'](_0x2e0686),_0x4c196e=this[_0x1356af(0x193)]['get'](_0x2e0686),_0x3755b7=(_0xc9f310=this['_univerInstanceService']['getUnit'](_0x2e0686))==null?void 0x0:_0xc9f310[_0x1356af(0x317)](_0x1ee4e1[_0x1356af(0x294)]);if(!_0x4c196e||!_0x3755b7)return;const _0x4a7ec7=_0x3755b7==null?void 0x0:_0x3755b7[_0x1356af(0x353)]();for(const [_0x3dae26,_0x28f7d1]of _0x4c196e['entries']())for(const [_0x3eb11b,_0x10b7dd]of _0x28f7d1[_0x1356af(0x38d)]()){const {sourceRangeInfo:_0x5ab24c}=_0x10b7dd;if(_0x5ab24c['unitId']===_0x2e0686&&_0x5ab24c[_0x1356af(0x294)]===_0x34352e[_0x1356af(0x294)]&&_0x374f23[_0x1356af(0x236)][_0x1356af(0x447)](_0x15a353,_0x5ab24c[_0x1356af(0x3ee)])){const _0x2be409={'row':_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x378)]-_0x15a353['startRow'],'col':_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x3b9)]-_0x15a353[_0x1356af(0x3b9)]},_0x411083={'unitId':_0x2e0686,'subUnitId':_0x1ee4e1['subUnitId'],'sheetName':_0x4a7ec7,'range':{'startRow':_0x1826b0[_0x1356af(0x378)]+_0x2be409[_0x1356af(0x23e)],'endRow':_0x1826b0['startRow']+_0x2be409['row']+_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x3a2)]-_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x378)],'startColumn':_0x1826b0['startColumn']+_0x2be409['col'],'endColumn':_0x1826b0[_0x1356af(0x3b9)]+_0x2be409[_0x1356af(0x434)]+_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x217)]-_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x3b9)]}};_0x33693d[_0x1356af(0x2f8)](_0x3eb11b,_0x411083);const _0x2e7765={..._0x10b7dd,'sourceRangeInfo':_0x411083};this[_0x1356af(0x1bf)](_0x2e0686,_0x1ee4e1['subUnitId'],_0x3eb11b,_0x2e7765),this[_0x1356af(0x400)]({'unitId':_0x2e0686,'token':_0x3eb11b,'type':_0x5493f6['update'],'oldSourceRangeInfo':_0x5ab24c,'dataRangeInfo':_0x411083,'targetCellInfo':_0x10b7dd[_0x1356af(0x357)]}),this[_0x1356af(0x1b4)]({'unitId':_0x2e0686,'subUnitId':_0x1ee4e1[_0x1356af(0x294)],'oldSubUnitId':_0x3dae26,'pivotTableId':_0x3eb11b,'pivotTableConfig':_0x2e7765,'collectionConfig':_0x33693d[_0x1356af(0x3ff)]()});}}}}[_0x5d1072(0x400)](_0x4bbc2e){const _0x47cb9f=_0x5d1072;this[_0x47cb9f(0x266)][_0x47cb9f(0x3f8)](_0x4bbc2e);}[_0x5d1072(0x367)](_0x50df3d){const _0x3f33a9=_0x5d1072;let _0x16c2c8=this[_0x3f33a9(0x178)][_0x3f33a9(0x411)](_0x50df3d);return _0x16c2c8||(_0x16c2c8=new _0x1d59b3(this,this['_univerInstanceService']),this['_dataFieldManagerCollection']['set'](_0x50df3d,_0x16c2c8)),_0x16c2c8;}['getCollection'](_0x19d085,_0x4a9c75){const _0x9edba0=_0x5d1072;return this[_0x9edba0(0x367)](_0x19d085)[_0x9edba0(0x459)][_0x4a9c75];}['getUpdateRangeDeleteIds'](_0x2b8d00,_0x4ff45e,_0x25fb57){const _0x4059fb=_0x5d1072;return this[_0x4059fb(0x367)](_0x2b8d00)[_0x4059fb(0x368)](_0x4ff45e,_0x25fb57);}[_0x5d1072(0x3d7)](_0x246a9f,_0x5921af){const _0x3fddf1=_0x5d1072;let _0x303ce2=this[_0x3fddf1(0x193)][_0x3fddf1(0x411)](_0x246a9f);_0x303ce2||(_0x303ce2=new Map(),this['_model'][_0x3fddf1(0x3b5)](_0x246a9f,_0x303ce2));let _0x50c480=_0x303ce2[_0x3fddf1(0x411)](_0x5921af);return _0x50c480||(_0x50c480=new Map(),_0x303ce2['set'](_0x5921af,_0x50c480)),_0x50c480;}['_updateModelCache'](_0x5726c3,_0x1377fa,_0x31d1e8,_0x560e83){const _0x4a08c4=_0x5d1072;this['_ensurePivotMap'](_0x5726c3,_0x1377fa)[_0x4a08c4(0x3b5)](_0x31d1e8,_0x560e83);}[_0x5d1072(0x2d6)](_0x4bbfad,_0x2d30eb,_0x1176f8){const _0x5365c6=_0x5d1072;var _0x534e11,_0x25dd51,_0x1654cf,_0x1efbe5;((_0x25dd51=(_0x534e11=this['_model'][_0x5365c6(0x411)](_0x4bbfad))==null?void 0x0:_0x534e11[_0x5365c6(0x411)](_0x2d30eb))==null?void 0x0:_0x25dd51[_0x5365c6(0x411)](_0x1176f8))&&((_0x1efbe5=(_0x1654cf=this['_model'][_0x5365c6(0x411)](_0x4bbfad))==null?void 0x0:_0x1654cf[_0x5365c6(0x411)](_0x2d30eb))==null||_0x1efbe5[_0x5365c6(0x2af)](_0x1176f8));}[_0x5d1072(0x1e9)](_0xfaaa5d,_0x467e99){const _0x3ccf71=_0x5d1072;this[_0x3ccf71(0x476)][_0x3ccf71(0x3b5)](_0xfaaa5d,_0x467e99);}[_0x5d1072(0x19a)](_0x44771b){const _0x4cb752=_0x5d1072;this[_0x4cb752(0x476)]['delete'](_0x44771b);}[_0x5d1072(0x2a6)](_0x1f90bb,_0x26009c){const _0x4b758d=_0x5d1072;let _0x46a688=this[_0x4b758d(0x201)]['get'](_0x1f90bb);_0x46a688||(_0x46a688=new Map(),this[_0x4b758d(0x201)][_0x4b758d(0x3b5)](_0x1f90bb,_0x46a688));let _0x55eb6e=_0x46a688[_0x4b758d(0x411)](_0x26009c);return _0x55eb6e||(_0x55eb6e=new Map(),_0x46a688[_0x4b758d(0x3b5)](_0x26009c,_0x55eb6e)),_0x55eb6e;}[_0x5d1072(0x1b4)](_0x4e1073){const _0x4bec35=_0x5d1072,{unitId:_0x5f76ec,subUnitId:_0x14a79a,pivotTableId:_0x1de5be,pivotTableConfig:_0x368e29,collectionConfig:_0x1d484b}=_0x4e1073,_0x44a381={'unitId':_0x5f76ec,'subUnitId':_0x14a79a,'oldSubUnitId':_0x14a79a,'pivotTableId':_0x1de5be,'pivotTableConfig':_0x368e29,'collectionConfig':_0x1d484b};this[_0x4bec35(0x454)]['executeCommand'](_0x306833['id'],_0x44a381,{'onlyLocal':!0x0});}['updateView'](_0x5f52ce,_0x21a1c6,_0x2023d6,_0xc37d98,_0x2af6c7,_0x2bca4f,_0x160b3e,_0x45a07d=!0x1){const _0x21bce8=_0x5d1072;var _0x2df02d;this['_commandService'][_0x21bce8(0x17c)](_0x4d7335['id'],{'single':{'unitId':_0x5f52ce,'subUnitId':_0x21a1c6,'type':_0x2023d6,'pivotTableId':_0xc37d98,'view':_0x2af6c7,'pivotConfig':_0x2bca4f},'collectionConfig':{[_0x5f52ce]:_0x160b3e}},{'onlyLocal':!0x0});const _0xa8bb09=!!((_0x2df02d=this[_0x21bce8(0x202)](_0xc37d98))!=null&&_0x2df02d[_0x21bce8(0x475)]()),_0x5d0069=this[_0x21bce8(0x458)](_0x5f52ce,_0x21a1c6,_0xc37d98);_0x5d0069&&this[_0x21bce8(0x3a8)]({'view':_0x2af6c7,'pivotTableId':_0xc37d98,'textInfo':this[_0x21bce8(0x277)](),'isEmpty':_0xa8bb09,'targetCellInfo':_0x5d0069[_0x21bce8(0x357)]},_0x45a07d);}[_0x5d1072(0x3a8)](_0x6d3983,_0x235854){const _0x52050d=_0x5d1072,{targetCellInfo:_0x19cbf0,pivotTableId:_0x4348da}=_0x6d3983,{unitId:_0x22d079,subUnitId:_0x446bee}=_0x19cbf0,_0x15fed7=this[_0x52050d(0x2a6)](_0x22d079,_0x446bee),_0x50ab00=_0x15fed7[_0x52050d(0x411)](_0x4348da);let _0x4b05e0,_0x2dc188;_0x50ab00&&(_0x4b05e0=_0x50ab00[_0x52050d(0x1ac)],_0x2dc188=_0x50ab00['matrix']);const {rangesCache:_0x118305,matrix:_0x366138}=_0x50fc8d(_0x6d3983);_0x15fed7['set'](_0x4348da,{'rangeCache':_0x118305,'matrix':_0x366138,'oldMatrix':_0x2dc188,'oldRangeCache':_0x4b05e0}),_0x235854||this['_viewData$'][_0x52050d(0x3f8)]({'unitId':_0x22d079,'subUnitId':_0x446bee,'pivotTableId':_0x4348da});}[_0x5d1072(0x42c)](_0x4d681e,_0x315600,_0x4de485,_0x57b68a,_0x310067){this['_updateModelCache'](_0x4d681e,_0x315600,_0x4de485,_0x310067),this['_updatePivotTableInstanceCache'](_0x4de485,_0x57b68a);}[_0x5d1072(0x46d)](_0x478461,_0x3b3f73,_0x275bce){const _0x4a2375=_0x5d1072,_0x4a658e=this[_0x4a2375(0x367)](_0x478461);_0x4a658e[_0x4a2375(0x32a)](_0x275bce)['forEach'](_0x295d31=>{_0x4a658e['deleteDataField'](_0x295d31);}),this[_0x4a2375(0x456)](_0x478461,_0x275bce),this[_0x4a2375(0x2d6)](_0x478461,_0x3b3f73,_0x275bce),this[_0x4a2375(0x19a)](_0x275bce);}[_0x5d1072(0x2e5)](_0x13f99a,_0x25fdd2,_0x396494,_0x49f1d3){const _0xd0cb3a=_0x5d1072;this[_0xd0cb3a(0x1bf)](_0x13f99a,_0x25fdd2,_0x396494,_0x49f1d3);}[_0x5d1072(0x458)](_0xdc08d4,_0x4888a7,_0x162903){const _0x57856d=_0x5d1072;var _0x563d67,_0x6c86fe;const _0x17b7bb=(_0x6c86fe=(_0x563d67=this[_0x57856d(0x193)]['get'](_0xdc08d4))==null?void 0x0:_0x563d67[_0x57856d(0x411)](_0x4888a7))==null?void 0x0:_0x6c86fe[_0x57856d(0x411)](_0x162903);if(_0x17b7bb)return _0x17b7bb;}[_0x5d1072(0x1fb)](_0x4eac5d,_0x17c2ba,_0x8358e5){const _0x2b85e5=_0x5d1072;var _0x411c9f,_0x2cdf77;const _0xace4a9=(_0x2cdf77=(_0x411c9f=this[_0x2b85e5(0x193)][_0x2b85e5(0x411)](_0x4eac5d))==null?void 0x0:_0x411c9f[_0x2b85e5(0x411)](_0x17c2ba))==null?void 0x0:_0x2cdf77['get'](_0x8358e5);if(_0xace4a9)return _0xace4a9['fieldsConfig'];}['getPivotTableInstance'](_0x24b49d){const _0x305731=_0x5d1072;return this[_0x305731(0x476)][_0x305731(0x411)](_0x24b49d);}[_0x5d1072(0x282)](_0xca391f){const _0x4b2f92=_0x5d1072;this[_0x4b2f92(0x193)]['delete'](_0xca391f);const _0x31f708=this['_dataFieldManagerCollection']['get'](_0xca391f);_0x31f708&&(_0x31f708[_0x4b2f92(0x259)](),this[_0x4b2f92(0x178)][_0x4b2f92(0x2af)](_0xca391f)),this[_0x4b2f92(0x201)][_0x4b2f92(0x2af)](_0xca391f),this['needSameDeleteModel'][_0x4b2f92(0x274)](_0x4f8242=>{const _0x2151c8=_0x4b2f92;_0x4f8242[_0x2151c8(0x282)](_0xca391f);});}[_0x5d1072(0x2b4)](_0x20e4df,_0x1933f7,_0x4b4aa3,_0x31342e){const _0x2c4c35=_0x5d1072;return this[_0x2c4c35(0x367)](_0x4b4aa3[_0x2c4c35(0x29a)])[_0x2c4c35(0x2b4)](_0x20e4df,_0x1933f7,_0x4b4aa3,_0x31342e);}[_0x5d1072(0x27c)](_0x5679da){const _0xcc0010=_0x5d1072;return this[_0xcc0010(0x367)](_0x5679da[_0xcc0010(0x29a)])['createCollectionWithDataRange'](_0x5679da);}[_0x5d1072(0x33a)](_0x3fb580,_0x3c3745,_0x47330e){const _0x5a7a20=_0x5d1072;this[_0x5a7a20(0x367)](_0x47330e['unitId'])[_0x5a7a20(0x33a)](_0x3fb580,_0x3c3745,_0x47330e);}[_0x5d1072(0x435)](_0x28e792,_0x25885d){const _0x339dce=_0x5d1072;this[_0x339dce(0x367)](_0x28e792)[_0x339dce(0x34d)](_0x25885d);}[_0x5d1072(0x456)](_0x1c78e1,_0x36bf66){const _0x58ba30=_0x5d1072;this[_0x58ba30(0x367)](_0x1c78e1)[_0x58ba30(0x38a)](_0x36bf66);}[_0x5d1072(0x239)](_0x399d48,_0x5b5f2f){const _0x1fb2b4=_0x5d1072;var _0x193b56;return(_0x193b56=this[_0x1fb2b4(0x193)]['get'](_0x399d48))==null?void 0x0:_0x193b56[_0x1fb2b4(0x411)](_0x5b5f2f);}['getTargetByPivotId'](_0x15757e){const _0x1e09e4=_0x5d1072;for(const [_0x36c284,_0x1b7595]of this[_0x1e09e4(0x193)][_0x1e09e4(0x38d)]())for(const [_0x46529d,_0x3f36ae]of _0x1b7595[_0x1e09e4(0x38d)]())if(_0x3f36ae['has'](_0x15757e))return{'unitId':_0x36c284,'subUnitId':_0x46529d};return null;}[_0x5d1072(0x2b5)](_0x583c8f,_0x406ba8,_0x1120f1,_0x349446){const _0x1aa018=_0x5d1072,_0x1841b8=this[_0x1aa018(0x2a6)](_0x583c8f,_0x406ba8);_0x349446?_0x1841b8[_0x1aa018(0x3b5)](_0x1120f1,_0x349446):_0x1841b8[_0x1aa018(0x2af)](_0x1120f1),this[_0x1aa018(0x26d)][_0x1aa018(0x3f8)]({'unitId':_0x583c8f,'subUnitId':_0x406ba8,'pivotTableId':_0x1120f1});}[_0x5d1072(0x259)](){const _0x58c608=_0x5d1072;super[_0x58c608(0x259)]();}['getViewData'](_0x462fdd,_0x7173a2,_0x53fa29){const _0x57bc53=_0x5d1072;var _0x81adb1,_0x5f4c92;const _0xde3147=(_0x5f4c92=(_0x81adb1=this[_0x57bc53(0x201)]['get'](_0x462fdd))==null?void 0x0:_0x81adb1[_0x57bc53(0x411)](_0x7173a2))==null?void 0x0:_0x5f4c92['get'](_0x53fa29);return _0xde3147||null;}['addDirtyPivotTable'](_0x2a5e3f){const _0x4710da=_0x5d1072;this[_0x4710da(0x183)](_0x2a5e3f);}['updateDirtyPivotTable'](_0x34e19c){const _0x2a4ae3=_0x5d1072,{token:_0xf46560,unitId:_0x1dd262,subUnitId:_0x99007b}=_0x34e19c,_0x3c344e=_0x1dd262+'-'+_0x99007b+'-'+_0xf46560;this[_0x2a4ae3(0x20c)][_0x2a4ae3(0x411)](_0x3c344e)&&clearTimeout(this['_queryingMap'][_0x2a4ae3(0x411)](_0x3c344e));const _0x280b11=setTimeout(()=>{const _0x435ceb=_0x2a4ae3;this['queryDirtyPivotTable'](_0x34e19c),this[_0x435ceb(0x20c)]['delete'](_0x3c344e);},_0x350f93);this[_0x2a4ae3(0x20c)]['set'](_0x3c344e,_0x280b11);}[_0x5d1072(0x1d5)](_0x55d91e){const _0x29fb84=_0x5d1072,{unitId:_0x51d182,subUnitId:_0x14810f,token:_0x5d1dca,type:_0x274dd3,pivotConfig:_0x4e76e5}=_0x55d91e,_0xba5f2c=this['getPivotTableInstance'](_0x5d1dca),_0x41250b=_0xba5f2c==null?void 0x0:_0xba5f2c[_0x29fb84(0x293)](),_0x354488=_0x4e76e5!=null?_0x4e76e5:this[_0x29fb84(0x458)](_0x51d182,_0x14810f,_0x5d1dca);_0x354488&&(_0x354488[_0x29fb84(0x475)]=!!(_0xba5f2c!=null&&_0xba5f2c['isEmpty']())),(_0x41250b||_0x274dd3===_0x5ae422[_0x29fb84(0x36a)])&&this[_0x29fb84(0x427)](_0x51d182,_0x14810f,_0x274dd3,_0x5d1dca,_0x41250b,_0x354488,this[_0x29fb84(0x367)](_0x51d182)[_0x29fb84(0x3ff)]());}[_0x5d1072(0x3ff)](_0x12ed3d){const _0x12414b=_0x5d1072,_0x16f7ae={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x12414b(0x367)](_0x12ed3d)&&(_0x16f7ae[_0x12414b(0x2e2)][_0x12ed3d]=this[_0x12414b(0x367)](_0x12ed3d)[_0x12414b(0x3ff)]()),this[_0x12414b(0x193)][_0x12414b(0x411)](_0x12ed3d)){_0x16f7ae[_0x12414b(0x1c3)][_0x12ed3d]={};const _0x2649be=this[_0x12414b(0x193)][_0x12414b(0x411)](_0x12ed3d);_0x2649be!=null&&_0x2649be[_0x12414b(0x249)]&&[..._0x2649be[_0x12414b(0x3d8)]()]['forEach'](_0x4c3a9c=>{const _0x1e47c8=_0x12414b,_0xa26797=_0x2649be['get'](_0x4c3a9c);_0xa26797!=null&&_0xa26797['size']&&(_0x16f7ae[_0x1e47c8(0x1c3)][_0x12ed3d][_0x4c3a9c]={},[..._0xa26797[_0x1e47c8(0x3d8)]()][_0x1e47c8(0x274)](_0x413c7c=>{const _0xf0b9a0=_0x1e47c8,_0x3f2870=_0xa26797[_0xf0b9a0(0x411)](_0x413c7c);_0x3f2870&&(_0x16f7ae[_0xf0b9a0(0x1c3)][_0x12ed3d][_0x4c3a9c][_0x413c7c]=_0x3f2870);}));});}return _0x16f7ae;}[_0x5d1072(0x328)](_0x21bda9){const _0x17f700=_0x5d1072;var _0x4fa7b0;const {dataFieldManagerConfig:_0x1dc7bb,pivotTableConfigs:_0xf90372}=_0x21bda9;_0x1dc7bb&&Object[_0x17f700(0x3d8)](_0x1dc7bb)[_0x17f700(0x274)](_0x149f1b=>{const _0x4dbeca=_0x17f700;this[_0x4dbeca(0x367)](_0x149f1b)['fromJSON'](_0x1dc7bb[_0x149f1b]);});const _0x24f066=[];if(_0xf90372){const _0x165a8a=(_0x4fa7b0=this['_injector'][_0x17f700(0x411)](_0x374f23[_0x17f700(0x224)])[_0x17f700(0x19c)](_0x2169aa[_0x17f700(0x442)]))!=null?_0x4fa7b0:{},{ls:_0xf88178,pbk:_0x4c996d}=_0x165a8a,_0x290544=_0x43fd63(_0x5639c4,_0xf88178,_0x4c996d)[_0x17f700(0x1a5)];Object[_0x17f700(0x3d8)](_0xf90372)['forEach'](_0x5ab89a=>{const _0x72ceff=_0x17f700;let _0x2e556a=0x0;const _0x1f57aa=_0xf90372[_0x5ab89a];Object[_0x72ceff(0x3d8)](_0x1f57aa)[_0x72ceff(0x274)](_0x5f1e10=>{const _0x43dab1=_0x72ceff,_0x27828e=_0x1f57aa[_0x5f1e10];Object[_0x43dab1(0x3d8)](_0x27828e)[_0x43dab1(0x274)](_0x387ae4=>{const _0x47c873=_0x43dab1,_0x31233f=_0x27828e[_0x387ae4];if(_0x31233f){if(_0x2e556a>=_0x290544)return;_0x2e556a++;const _0x284a49=this[_0x47c873(0x367)](_0x5ab89a),_0x5a76f1=_0x284a49['collections'][_0x387ae4],_0x554542=_0x5a76f1['getFieldIds']();let _0x5b8af0=0x0;const _0x22ebb2=[];for(const _0x113b1e of _0x554542){const _0x38c6d2=_0x5a76f1['getFieldById'](_0x113b1e);if(_0x2eef51[_0x47c873(0x44e)](_0x38c6d2)){const _0x1e6fb9=_0x38c6d2['getOriginFieldId'](),_0x5d0d91=_0x5a76f1[_0x47c873(0x35d)](_0x1e6fb9);_0x5d0d91&&_0x22ebb2[_0x47c873(0x27b)]([_0x38c6d2,_0x5d0d91]);continue;}_0x284a49[_0x47c873(0x246)](_0x113b1e,_0x31233f[_0x47c873(0x1d7)],_0x5b8af0),_0x5b8af0++;}_0x22ebb2[_0x47c873(0x274)](([_0x237917,_0x193570])=>{const _0x3ebea3=_0x47c873;_0x237917[_0x3ebea3(0x302)](_0x193570);});const _0x6bd165=new _0x2eef51[(_0x47c873(0x1dc))](_0x5a76f1);_0x6bd165[_0x47c873(0x328)](_0x31233f[_0x47c873(0x3b6)]),this[_0x47c873(0x42c)](_0x5ab89a,_0x5f1e10,_0x387ae4,_0x6bd165,_0x31233f);const _0x101eab=_0x6bd165['query']();_0x24f066['push']({'unitId':_0x5ab89a,'subUnitId':_0x5f1e10,'pivotTableId':_0x387ae4,'view':_0x101eab['toJSON'](),'pivotConfig':_0x31233f,'type':_0x5ae422[_0x47c873(0x395)]});const _0x2b0e33=!!_0x6bd165[_0x47c873(0x475)](),_0xc255f8={'view':_0x101eab,'pivotTableId':_0x387ae4,'textInfo':this['getTextInfo'](),'isEmpty':_0x2b0e33,'targetCellInfo':_0x31233f[_0x47c873(0x357)]};this[_0x47c873(0x3a8)](_0xc255f8,!0x1);}});});});}_0x1dc7bb&&Object[_0x17f700(0x3d8)](_0x1dc7bb)['forEach'](_0x4cb5e2=>{const _0x37d05e=_0x17f700,_0x4517b5=this[_0x37d05e(0x367)](_0x4cb5e2);this[_0x37d05e(0x253)][_0x37d05e(0x3f8)](_0x4517b5[_0x37d05e(0x459)]);}),this[_0x17f700(0x454)]['executeCommand'](_0x4d7335['id'],{'batch':_0x24f066,'collectionConfig':_0x1dc7bb},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x4d328e=_0x5d1072;this[_0x4d328e(0x372)](this[_0x4d328e(0x2d1)][_0x4d328e(0x486)]({'toJson':_0x1bcc15=>JSON[_0x4d328e(0x22c)](this[_0x4d328e(0x3ff)](_0x1bcc15)),'parseJson':_0x4289e6=>{const _0x161702=_0x4d328e;if(!_0x4289e6)return{};try{return JSON[_0x161702(0x2ab)](_0x4289e6);}catch{return{};}},'businesses':[_0x374f23[_0x4d328e(0x1e8)][_0x4d328e(0x2eb)]],'pluginName':_0xcaa86f,'onLoad':(_0x3e03c9,_0x40e8e3)=>{const _0x3f2f21=_0x4d328e;this[_0x3f2f21(0x328)](_0x40e8e3);},'onUnLoad':_0x3d6669=>{this['deleteUnitId'](_0x3d6669);}}));}},_0x1cc2c4[_0x5d1072(0x38e)]=_0x3ef864([_0x3762a4(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x3cf)])),_0x3762a4(0x1,_0x374f23[_0x5d1072(0x1d8)]),_0x3762a4(0x2,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x359)])),_0x3762a4(0x3,_0x374f23[_0x5d1072(0x386)]),_0x3762a4(0x4,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x30b)]))],_0x1cc2c4[_0x5d1072(0x38e)]);const _0xec4ff0={0x0:{0x0:{'v':'filter','s':_0x554db5}},0x2:{0x1:{'v':'','s':_0x554db5},0x2:{'v':'','s':_0x554db5},0x3:{'v':_0x5d1072(0x352),'s':_0x554db5},0x4:{'v':'','s':_0x554db5},0x5:{'v':'','s':_0x554db5}},0x3:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x4:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x5:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x6:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x7:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x8:{0x0:{'v':_0x5d1072(0x23e),'s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'values','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x9:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xa:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xb:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xc:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xd:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}}},_0x714d6e={'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':[]},_0x36fb91=(_0x371e81,_0x1a799b)=>{const _0x57801a=_0x5d1072,_0x367958=new _0x374f23['ObjectMatrix'](),_0xa4cf99=new _0x374f23[(_0x57801a(0x33b))](_0xec4ff0),{row:_0x42c1a4,col:_0x5aa6f0}=_0x1a799b;_0xa4cf99[_0x57801a(0x1d1)]((_0x568a93,_0x11d8e1,_0x37826b)=>{const _0x12e7ef=_0x57801a;let _0x18ef70='';_0x37826b['v']===_0x12e7ef(0x341)?_0x18ef70=_0x371e81['filter']:_0x37826b['v']===_0x12e7ef(0x23e)?_0x18ef70=_0x371e81['row']:_0x37826b['v']==='column'?_0x18ef70=_0x371e81[_0x12e7ef(0x352)]:_0x37826b['v']===_0x12e7ef(0x39c)&&(_0x18ef70=_0x371e81[_0x12e7ef(0x39c)]),_0x367958[_0x12e7ef(0x388)](_0x568a93+_0x42c1a4,_0x11d8e1+_0x5aa6f0,{..._0x37826b,'v':_0x18ef70});});const _0x53bcea=_0x374f23[_0x57801a(0x3c1)]['deepClone'](_0x714d6e);return Object['keys'](_0x714d6e)['forEach'](_0x39046c=>{const _0x2a7e97=_0x57801a;_0x53bcea[_0x39046c]=_0x714d6e[_0x39046c]['map'](_0x48598d=>({..._0x48598d,'startRow':_0x48598d['startRow']+_0x42c1a4,'endRow':_0x48598d[_0x2a7e97(0x3a2)]+_0x42c1a4,'startColumn':_0x48598d[_0x2a7e97(0x3b9)]+_0x5aa6f0,'endColumn':_0x48598d[_0x2a7e97(0x217)]+_0x5aa6f0}));}),{'matrixCache':_0x367958,'rangesCache':_0x53bcea};};function _0x1f8c04(_0xea747e,_0x20b5fb){const _0x5d35e9=_0x5d1072;let _0x5be600='';const _0x1f440b=this[_0x5d35e9(0x277)]();switch(_0x20b5fb){case _0x2eef51['PivotSubtotalTypeEnum'][_0x5d35e9(0x254)]:_0x5be600=_0x1f440b['sheets-pivot.averageName']+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x1a5)]:_0x5be600=_0x1f440b[_0x5d35e9(0x3f6)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x350)]:_0x5be600=_0x1f440b[_0x5d35e9(0x2d3)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x275)]:_0x5be600=_0x1f440b[_0x5d35e9(0x247)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)]['min']:_0x5be600=_0x1f440b['sheets-pivot.minName']+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x230)]:_0x5be600=_0x1f440b[_0x5d35e9(0x2de)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum']['stdDev']:_0x5be600=_0x1f440b[_0x5d35e9(0x369)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum']['stdDevp']:_0x5be600=_0x1f440b[_0x5d35e9(0x32b)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x25d)]:_0x5be600=_0x1f440b[_0x5d35e9(0x418)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum'][_0x5d35e9(0x1a7)]:_0x5be600=_0x1f440b[_0x5d35e9(0x1cd)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum'][_0x5d35e9(0x31f)]:_0x5be600=_0x1f440b[_0x5d35e9(0x28c)]+_0xea747e;break;default:_0x5be600=_0xea747e;break;}return _0x5be600;}function _0x21a2ff(_0x39ae11,_0x493142,_0x397fe8,_0x2fc7a4,_0x409e1f){const _0xbad48f=_0x5d1072;var _0x565864,_0x2ce97,_0x4c2666,_0x1da8ed,_0x9b36fd;const _0x2872ec=_0x374f23['cellToRange'](_0x39ae11,_0x493142),{rangesInfo:_0x57ca9a,areaInfo:_0x3e0df9,headerMap:_0x7c64a1}=_0x409e1f;if(!_0x57ca9a||!_0x3e0df9||!_0x7c64a1)return;const _0x3aaf23=Object[_0xbad48f(0x3d8)](_0x57ca9a)['find'](_0x2c3921=>_0x57ca9a[_0x2c3921][_0xbad48f(0x3c4)](_0x3f560f=>_0x374f23[_0xbad48f(0x236)][_0xbad48f(0x447)](_0x3f560f,_0x2872ec))),_0x20c374=_0x3e0df9;let _0x259ed1,_0x1e8bfb,_0xaa3720;if(_0x3aaf23===_0xbad48f(0x3d2))_0x259ed1=(_0x565864=_0x20c374==null?void 0x0:_0x20c374[_0xbad48f(0x30e)])==null?void 0x0:_0x565864[_0x39ae11],_0x1e8bfb=(_0x2ce97=_0x7c64a1==null?void 0x0:_0x7c64a1[_0xbad48f(0x452)])==null?void 0x0:_0x2ce97[_0x493142],_0xaa3720=_0x1e8bfb==null?void 0x0:_0x1e8bfb['tableFieldId'];else{if(_0x3aaf23===_0xbad48f(0x2ad))_0x259ed1=(_0x4c2666=_0x20c374==null?void 0x0:_0x20c374[_0xbad48f(0x276)])==null?void 0x0:_0x4c2666[_0x493142],_0x1e8bfb=(_0x1da8ed=_0x7c64a1['colHeaderMap'])==null?void 0x0:_0x1da8ed[_0x39ae11+0x1+_0x493142-_0x57ca9a[_0xbad48f(0x2ad)][0x0][_0xbad48f(0x3b9)]],_0xaa3720=_0x1e8bfb==null?void 0x0:_0x1e8bfb['tableFieldId'];else{if(_0x3aaf23===_0xbad48f(0x2bb))_0x259ed1=(_0x9b36fd=_0x20c374==null?void 0x0:_0x20c374['cornerInfo'])==null?void 0x0:_0x9b36fd[_0x493142],_0xaa3720=_0x259ed1==null?void 0x0:_0x259ed1['tableFieldId'];else{if(_0x3aaf23==='pageRanges'){const _0x2cd9f7=_0x397fe8==null?void 0x0:_0x397fe8['fi'];_0x2cd9f7!==void 0x0&&(_0xaa3720=_0x2fc7a4[_0xbad48f(0x1b1)](_0x2cd9f7));}}}}return{'filterId':_0xaa3720,'info':_0x259ed1,'data':_0x397fe8,'headerInfo':_0x1e8bfb};}function _0xb9c753(_0x3d1218,_0x1ab058,_0xe05df3){const _0x47b190=_0x5d1072,_0x1c5be2=_0x3d1218[_0x47b190(0x29d)],_0x1d9175=_0x1c5be2['getFieldIds'](),_0x2c9908=new Set();_0x3d1218[_0x47b190(0x1c4)](_0xc1df9f=>{const _0x3998e2=_0x47b190;_0x2c9908[_0x3998e2(0x346)](_0xc1df9f[_0x3998e2(0x423)]);});const _0x5ec47d=_0x1d9175['map'](_0x527d22=>{const _0x3f8408=_0x47b190,_0x3ee401=_0x1c5be2[_0x3f8408(0x35d)](_0x527d22);return{'checked':_0x2c9908[_0x3f8408(0x1b5)](_0x527d22),'dataFieldId':_0x3ee401['id'],'id':_0x3ee401['id'],'name':_0x1c5be2[_0x3f8408(0x263)](_0x3ee401['id']),'type':_0x3ee401[_0x3f8408(0x20b)](),'pivotTableId':_0x1ab058};}),_0x172ef5=[];_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)][_0x47b190(0x415)],_0x13ca89=>{const _0x5a967f=_0x47b190;_0x172ef5[_0x5a967f(0x27b)]({'dataFieldId':_0x13ca89['dataFieldId'],'tableFieldId':_0x13ca89[_0x5a967f(0x470)](),'displayName':_0x13ca89[_0x5a967f(0x263)]()});});const _0x4d5f41=[];_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)]['Column'],_0x20e468=>{const _0x2b331e=_0x47b190;_0x4d5f41[_0x2b331e(0x27b)]({'dataFieldId':_0x20e468['dataFieldId'],'tableFieldId':_0x20e468[_0x2b331e(0x470)](),'displayName':_0x20e468[_0x2b331e(0x263)]()});});const _0x19625c=[];if(_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)][_0x47b190(0x444)],_0x3fd4e8=>{const _0x408f85=_0x47b190;_0x19625c[_0x408f85(0x27b)]({'dataFieldId':_0x3fd4e8[_0x408f85(0x423)],'tableFieldId':_0x3fd4e8['getId'](),'displayName':_0x3fd4e8[_0x408f85(0x263)](),'format':_0x3fd4e8[_0x408f85(0x441)](),'subTotalType':_0x3fd4e8['getSubtotal']()});}),_0x19625c[_0x47b190(0x468)]>0x1){const _0x4272cb=_0x3d1218[_0x47b190(0x428)]();(_0x3d1218[_0x47b190(0x256)]()?_0x4d5f41:_0x172ef5)[_0x47b190(0x2bd)](_0x4272cb,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':'ΣValue'});}const _0x6bdb25=[];_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)][_0x47b190(0x2f1)],_0x5e0a93=>{const _0x3aea6c=_0x47b190;_0x6bdb25['push']({'dataFieldId':_0x5e0a93['dataFieldId'],'tableFieldId':_0x5e0a93[_0x3aea6c(0x470)](),'displayName':_0x5e0a93['getDisplayName']()});});const _0x4f1f58=_0xe05df3[_0x47b190(0x1d7)];return{'sourceList':_0x5ec47d,'sourceRange':_0x4f1f58,'rowFields':_0x172ef5,'columnFields':_0x4d5f41,'valueFields':_0x19625c,'filterFields':_0x6bdb25,'positionInfo':_0xe05df3[_0x47b190(0x357)]};}function _0x3db0d7(_0x161441,_0x4b59fa,_0x43cffe='',_0x6acea={}){const _0x25fe60=_0x5d1072,_0x65bbbd=_0x161441[_0x25fe60(0x411)](_0x374f23[_0x25fe60(0x3cd)]);for(const _0x5bca90 in _0x4b59fa)if(Object['prototype']['hasOwnProperty'][_0x25fe60(0x41d)](_0x4b59fa,_0x5bca90)){const _0xa2d003=_0x43cffe?_0x43cffe+'.'+_0x5bca90:_0x5bca90;typeof _0x4b59fa[_0x5bca90]==_0x25fe60(0x1d9)&&_0x4b59fa[_0x5bca90]!==null&&!Array[_0x25fe60(0x3d9)](_0x4b59fa[_0x5bca90])?_0x3db0d7(_0x161441,_0x4b59fa[_0x5bca90],_0xa2d003,_0x6acea):_0x6acea[_0xa2d003]=_0x65bbbd['t'](_0xa2d003);}return _0x6acea;}const _0x17e537=_0x59b2eb=>{const _0x2e1fb8=_0x5d1072;if(!_0x59b2eb)return[];const {rowRanges:_0xbb6752,colRanges:_0x572ef3,cornerRanges:_0x10e29b,dataRanges:_0x336c3c,pageRanges:_0x4fbe92}=_0x59b2eb,_0x600f6=[..._0x572ef3,..._0xbb6752,..._0x336c3c,..._0x10e29b][_0x2e1fb8(0x341)](_0x460b24=>_0x460b24[_0x2e1fb8(0x378)]>=0x0&&_0x460b24[_0x2e1fb8(0x3b9)]>=0x0&&_0x460b24[_0x2e1fb8(0x3a2)]>=0x0&&_0x460b24[_0x2e1fb8(0x217)]>=0x0);let _0x4d7dff=Number['MAX_SAFE_INTEGER'],_0x46398a=Number[_0x2e1fb8(0x3e8)],_0xfbd6b8=Number[_0x2e1fb8(0x1a3)],_0xba1fe=Number[_0x2e1fb8(0x3e8)];for(let _0x477e34=0x0;_0x477e34<_0x600f6[_0x2e1fb8(0x468)];_0x477e34++)_0x4d7dff=Math[_0x2e1fb8(0x3b1)](_0x4d7dff,_0x600f6[_0x477e34]['startRow']),_0x46398a=Math[_0x2e1fb8(0x275)](_0x46398a,_0x600f6[_0x477e34][_0x2e1fb8(0x3a2)]),_0xfbd6b8=Math[_0x2e1fb8(0x3b1)](_0xfbd6b8,_0x600f6[_0x477e34]['startColumn']),_0xba1fe=Math[_0x2e1fb8(0x275)](_0xba1fe,_0x600f6[_0x477e34][_0x2e1fb8(0x217)]);return[..._0x4fbe92,{'startRow':_0x4d7dff,'endRow':_0x46398a,'startColumn':_0xfbd6b8,'endColumn':_0xba1fe}];};function _0xaa3adf(_0x4be0d0,_0x4f1405){const _0x383ec0=_0x5d1072,_0x2cf954=_0x4f1405[_0x383ec0(0x3aa)][_0x383ec0(0x2d8)],{pivotTableId:_0x5bb815,unitId:_0x1c071a,subUnitId:_0x4dc721}=_0x4f1405;if(!_0x2cf954)return;const _0x1bf85f=_0x4be0d0[_0x383ec0(0x411)](_0x1cc2c4[_0x383ec0(0x38e)]),_0x2380e8=_0x1bf85f[_0x383ec0(0x202)](_0x5bb815),_0x4879b7=_0x1bf85f[_0x383ec0(0x458)](_0x1c071a,_0x4dc721,_0x5bb815);if(!_0x2380e8||!_0x4879b7)return;const _0x5b8f15=_0x2380e8[_0x383ec0(0x260)](_0x2cf954['tuple']);if(!(_0x5b8f15!=null&&_0x5b8f15[_0x383ec0(0x468)]))return;const _0x11e348=_0x4879b7[_0x383ec0(0x1d7)],{unitId:_0x4c3399,subUnitId:_0x5dcb77,range:_0x28dbeb}=_0x11e348;let _0x1a7488=0x0;const _0x1d08f5=_0x2380e8[_0x383ec0(0x29d)][_0x383ec0(0x324)]()['reduce']((_0x29a624,_0x23d04f)=>{const _0x160695=_0x383ec0;var _0x22d722;const _0x340ba4=(_0x22d722=_0x2380e8[_0x160695(0x257)](_0x23d04f))==null?void 0x0:_0x22d722[_0x160695(0x3c0)]();return _0x340ba4&&(_0x29a624[String(_0x1a7488)]=_0x340ba4),_0x1a7488++,_0x29a624;},{});return{'indexes':_0x5b8f15,'range':_0x28dbeb,'sourceUnitId':_0x4c3399,'sourceSubUnitId':_0x5dcb77,'formatMap':_0x1d08f5};}function _0x122880(_0x1450d0,_0x11a964){const _0x555055=_0x5d1072;if(!_0x1450d0||!_0x11a964)return!0x0;const _0x20e7fa=_0x2169aa[_0x555055(0x43b)](_0x137d34,_0x6b9aa1),_0x523a14=new Function(_0x555055(0x222)+_0x20e7fa)()(_0x1450d0,_0x11a964)[_0x555055(0x1ef)],_0x2d1754=_0x2169aa[_0x555055(0x43c)](_0x523a14,'sf',_0x82b07b);return!((_0x523a14==null?void 0x0:_0x523a14['rt'])===_0x2169aa[_0x555055(0x19e)]['NO_COMMERCIAL']&&!_0x2d1754);}function _0x43fd63(_0x18d6e1,_0x56bbb5,_0x182abb){const _0x44f245=_0x5d1072,_0x4ca25b={'count':_0x18d6e1,'timeValid':!0x1};if(!_0x56bbb5||!_0x182abb)return _0x4ca25b;const _0x469a7e=_0x2169aa[_0x44f245(0x43b)](_0x137d34,_0x6b9aa1),_0x46cbc9=new Function(_0x44f245(0x222)+_0x469a7e)()(_0x56bbb5,_0x182abb);if(_0x46cbc9!=null&&_0x46cbc9[_0x44f245(0x363)]){const _0x4ddd62=_0x46cbc9[_0x44f245(0x1ef)],_0xf49ef7=_0x2169aa['isFeatureAuthorizedWithinTime'](_0x4ddd62,'sf',_0x82b07b);return{'count':_0x2169aa[_0x44f245(0x20e)](_0x4ddd62,_0xf49ef7,_0x44f245(0x2ba),_0x18d6e1,_0x18d6e1,0x0),'timeValid':_0xf49ef7};}return _0x4ca25b;}function _0x347fea(_0xed4aff,_0x2c72d7,_0x32738f,_0x31a305){const _0x2b33e5=_0x5d1072,_0x1f5f7b={'subUnitId':_0x32738f,'unitId':_0x2c72d7,'cellValue':_0x24a2a7[_0x2b33e5(0x1e2)](_0x31a305)},_0x25a5e0=_0x24a2a7[_0x2b33e5(0x345)](_0xed4aff,_0x1f5f7b);let _0x55d77b=!0x1;return new _0x374f23[(_0x2b33e5(0x33b))](_0x25a5e0['cellValue'])[_0x2b33e5(0x1d1)]((_0x104486,_0x4ef94e,_0x26deab)=>{const _0x4ace37=_0x2b33e5;if(!_0x55d77b&&_0x26deab&&(_0x26deab[_0x4ace37(0x381)]||_0x26deab['f']||_0x26deab['p']||_0x26deab['s']||_0x26deab['si']||_0x26deab['t']||_0x26deab['v']))return _0x55d77b=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x24a2a7[_0x2b33e5(0x1d3)]['id'],'params':_0x25a5e0},'setRangeValueRedoMutation':{'id':_0x24a2a7[_0x2b33e5(0x1d3)]['id'],'params':_0x1f5f7b},'shouldClear':_0x55d77b};}function _0x4dfe41(_0x5c2e7f){const {row:_0x19b23a,col:_0x5d6f10}=_0x5c2e7f,_0x3e6a22={'startRow':_0x19b23a,'endRow':_0x19b23a,'startColumn':_0x5d6f10,'endColumn':_0x5d6f10},_0x21767c={'startRow':_0x19b23a+0x2,'endRow':_0x19b23a+0xe,'startColumn':_0x5d6f10,'endColumn':_0x5d6f10+0x6};return[_0x3e6a22,_0x21767c];}function _0x4cf74d(_0xd7959b,_0x4f86ef,_0x419738){const _0x18902a=_0x5d1072,{cornerView:_0x2b23d7,rowView:_0x24fe3d,colView:_0x570257,pageView:_0x42e2b}=_0xd7959b,{row:_0x11b794,col:_0x2ceffa}=_0x4f86ef;if(_0x419738)return{'rowCount':_0x2ccd6c+_0x11b794,'colCount':_0x69f1d9+_0x2ceffa};const _0x1bd4c3=_0x42e2b[_0x18902a(0x18f)]>-0x1?_0x42e2b[_0x18902a(0x18f)]+0x1:0x0,_0x4f4f0e=_0x42e2b[_0x18902a(0x473)]>-0x1?_0x42e2b[_0x18902a(0x473)]:0x0,_0xb11db0=_0x11b794+_0x1bd4c3+(_0x1bd4c3?0x1:0x0)+_0x2b23d7[_0x18902a(0x215)]+_0x24fe3d[_0x18902a(0x215)],_0x214532=_0x2ceffa+_0x4f4f0e,_0x429a25=_0x2ceffa+_0x2b23d7['colCount']+_0x570257['colCount'],_0x53f0d7=Math[_0x18902a(0x275)](_0x214532,_0x429a25);return{'rowCount':_0xb11db0,'colCount':_0x53f0d7};}function _0x20a5db(_0x29c87b,_0x4f9c79,_0x47356b,_0x5ca257){const _0x6a43ad=_0x5d1072,{row:_0x54b6a2,col:_0x2799ca,unitId:_0x51cdba,subUnitId:_0x3703aa}=_0x47356b,_0x25452a=_0x4cf74d(_0x4f9c79,{'row':_0x54b6a2,'col':_0x2799ca},_0x5ca257),_0x5cbf61=_0x29c87b['get'](_0x374f23[_0x6a43ad(0x1d8)]),_0x4de150=_0x24a2a7['getSheetCommandTarget'](_0x5cbf61,{'unitId':_0x51cdba,'subUnitId':_0x3703aa}),_0x14f05c=[],_0xeff126=[];if(!_0x4de150)return{'undos':_0xeff126,'redos':_0x14f05c};const {worksheet:_0x2c09b}=_0x4de150,_0x1aad70=_0x2c09b['getRowCount'](),_0x362b74=_0x2c09b[_0x6a43ad(0x281)]();return _0x1aad70<_0x25452a[_0x6a43ad(0x215)]&&(_0x14f05c[_0x6a43ad(0x27b)]({'id':_0x24a2a7['InsertRowMutation']['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':_0x1aad70,'endRow':_0x25452a[_0x6a43ad(0x215)]-0x1,'startColumn':0x0,'endColumn':_0x362b74-0x1}}}),_0xeff126[_0x6a43ad(0x27b)]({'id':_0x24a2a7[_0x6a43ad(0x290)]['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':_0x1aad70,'endRow':_0x25452a['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x362b74-0x1}}})),_0x362b74<_0x25452a[_0x6a43ad(0x392)]&&(_0x14f05c[_0x6a43ad(0x27b)]({'id':_0x24a2a7['InsertColMutation']['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':0x0,'endRow':_0x1aad70-0x1,'startColumn':_0x362b74,'endColumn':_0x25452a[_0x6a43ad(0x392)]-0x1}}}),_0xeff126['push']({'id':_0x24a2a7[_0x6a43ad(0x1c5)]['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':0x0,'endRow':_0x1aad70-0x1,'startColumn':_0x362b74,'endColumn':_0x25452a['colCount']-0x1}}})),{'undos':_0xeff126,'redos':_0x14f05c};}function _0x1ce604(_0x5c981f){const _0x4e9682=_0x5d1072;let _0x3def59=0x0;for(let _0x431027=0x0;_0x431027<_0x5c981f['length'];_0x431027++){const _0x376f46=_0x5c981f[_0x4e9682(0x28d)](_0x431027);_0x376f46>=0x4e00&&_0x376f46<=0x9fff||_0x376f46>=0x3000&&_0x376f46<=0x303f||_0x376f46>=0xff00&&_0x376f46<=0xffef?_0x3def59+=0x2:_0x3def59+=0x1;}return _0x3def59;}function _0x21df27(_0x3a7953,_0x5077ac,_0x4eeb01,_0x40937c){const _0x5b4ee5=_0x5d1072;var _0x191be0,_0x189e5a,_0xc5a5f8,_0xcd1b00;const {rowCount:_0x2ee371,colCount:_0x1e05bb,headerMap:_0x568e05}=_0x3a7953,_0x3b5cf3=0x64,_0xc33220=Math[_0x5b4ee5(0x3b1)](_0x2ee371,_0x3b5cf3),_0x4e94ff=Math[_0x5b4ee5(0x3b1)](_0x1e05bb,_0x3b5cf3);let _0x281023='',_0x222b0f=0x0;for(let _0x1dd7d4=0x0;_0x1dd7d4<_0xc33220;_0x1dd7d4++)for(let _0x145a30=0x0;_0x145a30<_0x4e94ff;_0x145a30++){const _0x1c87bc={...(_0x189e5a=(_0x191be0=_0x3a7953[_0x5b4ee5(0x3b3)])==null?void 0x0:_0x191be0[_0x1dd7d4])==null?void 0x0:_0x189e5a[_0x145a30]},_0x4c4b87=(_0xc5a5f8=_0x568e05[_0x1dd7d4])==null?void 0x0:_0xc5a5f8['tableFieldId'],_0x9d360b=_0x40937c[_0x4c4b87];let _0x49db81=_0x3a7953[_0x5b4ee5(0x216)](_0x1dd7d4,_0x145a30);if(_0x1c87bc){const _0xf1f2ff=_0x4eeb01?_0x145a30===0x0&&((_0xcd1b00=_0x3a7953[_0x5b4ee5(0x351)](_0x145a30+0x1))==null?void 0x0:_0xcd1b00[_0x5b4ee5(0x40e)]):!0x1;_0x49db81=_0x99791(_0x1c87bc,_0xf1f2ff,_0x9d360b,_0x5077ac);}if(_0x49db81!==void 0x0){const _0x5e03e2=_0x1ce604(String(_0x49db81));_0x222b0f<_0x5e03e2&&(_0x281023=String(_0x49db81),_0x222b0f=_0x5e03e2);}}return _0x281023;}function _0x59b274(_0x5f69b9){const _0x3c6afa=_0x5d1072,{rowCount:_0x3de406,colCount:_0x56814b}=_0x5f69b9;let _0x5b00a0='',_0x1df639=0x0;for(let _0x551d63=_0x3de406-0x1;_0x551d63>0x0&&_0x551d63>_0x3de406-0x3;_0x551d63--)for(let _0x5d49fa=0x0;_0x5d49fa<_0x56814b;_0x5d49fa++){const _0x3e4a52=_0x5f69b9[_0x3c6afa(0x216)](_0x551d63,_0x5d49fa);if(_0x3e4a52!==void 0x0){const _0xb1b0e6=String(_0x3e4a52)[_0x3c6afa(0x468)];_0x1df639<_0xb1b0e6&&(_0x5b00a0=String(_0x3e4a52),_0x1df639=_0xb1b0e6);}}return _0x5b00a0;}function _0x10a3cc(_0x590625){const _0xa28160=_0x5d1072,{rowCount:_0x4a536e,colCount:_0x23d87c}=_0x590625;let _0x44ca3e='',_0x1c0959=0x0;for(let _0x1dd733=0x0;_0x1dd733<_0x4a536e;_0x1dd733++)for(let _0x49b4b3=0x0;_0x49b4b3<_0x23d87c;_0x49b4b3++){const _0x4bc8a3=_0x590625[_0xa28160(0x216)](_0x1dd733,_0x49b4b3);if(_0x4bc8a3!==void 0x0){const _0x5c0497=String(_0x4bc8a3)['length'];_0x1c0959<_0x5c0497&&(_0x44ca3e=String(_0x4bc8a3),_0x1c0959=_0x5c0497);}}return _0x44ca3e;}function _0x5bb8f1(_0x3ceebd,_0x112c1a){const _0x28bc14=_0x5d1072,{rowFields:_0x3c3d33,columnFields:_0x2fcbae,valueFields:_0x407fac,filterFields:_0x16fac9,dimension:_0x12a17f,measure:_0x1f3fd8}=_0x112c1a;for(const _0x5a1e32 of _0x3c3d33){const _0xfefe95=_0x12a17f[_0x5a1e32];_0xfefe95&&_0x3ceebd[_0x28bc14(0x257)](_0xfefe95[_0x28bc14(0x423)])&&(_0x3ceebd[_0x28bc14(0x327)](_0xfefe95[_0x28bc14(0x423)],_0x2eef51[_0x28bc14(0x329)][_0x28bc14(0x415)],void 0x0,_0x5a1e32),_0xfefe95['displayName']&&_0x3ceebd[_0x28bc14(0x18a)](_0xfefe95['id'],_0xfefe95[_0x28bc14(0x39a)]),_0xfefe95[_0x28bc14(0x3c9)]&&_0x3ceebd[_0x28bc14(0x200)](_0xfefe95['id'],_0xfefe95['sortInfo']),_0xfefe95[_0x28bc14(0x3f3)]&&_0x3ceebd[_0x28bc14(0x3e2)](_0xfefe95['id'],_0xfefe95[_0x28bc14(0x3f3)]));}for(const _0x37aae2 of _0x2fcbae){const _0x11dcae=_0x12a17f[_0x37aae2];_0x11dcae&&_0x3ceebd[_0x28bc14(0x257)](_0x11dcae[_0x28bc14(0x423)])&&(_0x3ceebd['addFieldWithSourceId'](_0x11dcae[_0x28bc14(0x423)],_0x2eef51[_0x28bc14(0x329)][_0x28bc14(0x403)],void 0x0,_0x37aae2),_0x11dcae['sortInfo']&&_0x3ceebd[_0x28bc14(0x200)](_0x11dcae['id'],_0x11dcae[_0x28bc14(0x3c9)]),_0x11dcae[_0x28bc14(0x3f3)]&&_0x3ceebd[_0x28bc14(0x3e2)](_0x11dcae['id'],_0x11dcae[_0x28bc14(0x3f3)]),_0x11dcae['displayName']&&_0x3ceebd['renameField'](_0x11dcae['id'],_0x11dcae[_0x28bc14(0x39a)]));}for(const _0x1bec63 of _0x16fac9){const _0x41da90=_0x12a17f[_0x1bec63];_0x41da90&&_0x3ceebd[_0x28bc14(0x257)](_0x41da90['dataFieldId'])&&(_0x3ceebd[_0x28bc14(0x327)](_0x41da90[_0x28bc14(0x423)],_0x2eef51['PivotTableFiledAreaEnum']['Filter'],void 0x0,_0x1bec63),_0x41da90[_0x28bc14(0x3c9)]&&_0x3ceebd[_0x28bc14(0x200)](_0x41da90['id'],_0x41da90['sortInfo']),_0x41da90[_0x28bc14(0x3f3)]&&_0x3ceebd['setLabelFilterInfo'](_0x41da90['id'],_0x41da90[_0x28bc14(0x3f3)]),_0x41da90['displayName']&&_0x3ceebd[_0x28bc14(0x18a)](_0x41da90['id'],_0x41da90[_0x28bc14(0x39a)]));}for(const _0x22978a of _0x407fac){const _0x3f7fec=_0x1f3fd8[_0x22978a];_0x3f7fec&&_0x3ceebd[_0x28bc14(0x257)](_0x3f7fec[_0x28bc14(0x423)])&&(_0x3ceebd[_0x28bc14(0x327)](_0x3f7fec['dataFieldId'],_0x2eef51[_0x28bc14(0x329)][_0x28bc14(0x444)],void 0x0,_0x22978a),_0x3f7fec[_0x28bc14(0x3f7)]!==void 0x0&&_0x3ceebd['setSubtotalType'](_0x22978a,_0x3f7fec[_0x28bc14(0x3f7)]),_0x3f7fec[_0x28bc14(0x429)]&&_0x3ceebd['setFieldFormat'](_0x22978a,_0x3f7fec[_0x28bc14(0x429)]),_0x3f7fec[_0x28bc14(0x39a)]&&_0x3ceebd['renameField'](_0x3f7fec['id'],_0x3f7fec[_0x28bc14(0x39a)]));}const _0xe0e50b=_0x112c1a[_0x28bc14(0x1f2)];for(const {fieldId:_0x23bbfc,filterInfo:_0x6f328b}of _0xe0e50b)_0x3ceebd['setValueFilterInfo'](_0x23bbfc,_0x6f328b);}function _0x1f01f2(_0x18bb70,_0x1a745f){const _0x3e8e1f=_0x5d1072,_0x58a744=[];_0x1a745f===_0x2eef51[_0x3e8e1f(0x329)]['Row']&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x415)],_0x30d5ff=>{const _0x192947=_0x3e8e1f;_0x58a744[_0x192947(0x27b)](_0x30d5ff[_0x192947(0x470)]());}),_0x1a745f===_0x2eef51['PivotTableFiledAreaEnum'][_0x3e8e1f(0x403)]&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)]['Column'],_0x37af3a=>{const _0x2ee6ae=_0x3e8e1f;_0x58a744[_0x2ee6ae(0x27b)](_0x37af3a['getId']());}),_0x1a745f===_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x2f1)]&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x2f1)],_0x275451=>{const _0x3aaa4a=_0x3e8e1f;_0x58a744[_0x3aaa4a(0x27b)](_0x275451[_0x3aaa4a(0x470)]());}),_0x1a745f===_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x444)]&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x444)],_0x3e72b0=>{const _0xf85612=_0x3e8e1f;_0x58a744[_0xf85612(0x27b)](_0x3e72b0[_0xf85612(0x470)]());}),_0x1a745f===void 0x0&&_0x18bb70[_0x3e8e1f(0x1c4)](_0x15d131=>{_0x58a744['push'](_0x15d131['getId']());});const _0x294c3d=_0x58a744[_0x3e8e1f(0x468)];for(let _0x1e2eb8=_0x294c3d-0x1;_0x1e2eb8>=0x0;_0x1e2eb8--)_0x18bb70[_0x3e8e1f(0x37e)](_0x58a744[_0x1e2eb8]);const _0x45855c=_0x18bb70['getValueFilterInfos']();for(const _0x5797e9 in _0x45855c)_0x18bb70[_0x3e8e1f(0x255)](_0x5797e9);}function _0x1446a4(_0x4a17c3,_0x310eb1){const _0x5ede37=_0x5d1072,_0xe87e6c=new Date(_0x2eef51[_0x5ede37(0x36f)](_0x310eb1)),_0xb8df66=new Date(_0x2eef51[_0x5ede37(0x36f)](_0x4a17c3)),_0x1a9265=_0xe87e6c[_0x5ede37(0x1cb)](),_0x50e952=_0xb8df66[_0x5ede37(0x1cb)](),_0x854358=_0xe87e6c[_0x5ede37(0x1af)](),_0x1cf183=_0xb8df66['getMonth'](),_0x516ef0=_0xe87e6c[_0x5ede37(0x3d5)](),_0x541876=_0xb8df66['getDate'](),_0x6966b4=_0x1a9265===_0x50e952,_0x5ee002=_0x6966b4&&_0x854358===_0x1cf183;return _0x6966b4&&_0x5ee002&&!(_0x5ee002&&_0x516ef0===_0x541876)?_0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x5ede37(0x23f)]:_0x6966b4&&!_0x5ee002?_0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x5ede37(0x39e)]:_0x2eef51[_0x5ede37(0x1cf)][_0x5ede37(0x17e)];}function _0x379197(_0x5ca8f2,_0x14422c){const _0x290b7e=_0x5d1072,_0x2ef3d2=_0x5ca8f2[_0x290b7e(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel'])['getTextInfo']();let _0x5b3c54='';switch(_0x14422c){case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x290b7e(0x23f)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x298)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x39e)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x33c)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x17e)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x2cf)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x319)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.month'];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x2ae)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x390)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x2e7)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.date'];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x33e)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x295)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x1c7)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.hour'];break;case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x290b7e(0x1dd)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x22a)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x2a0)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.monthDate'];break;case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x290b7e(0x17a)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x453)];break;default:_0x5b3c54='';break;}return _0x5b3c54;}const _0x339ccc=_0x5d1072(0x45b),_0x28efdf={};var _0x4a0588=Object[_0x5d1072(0x2c5)],_0x548fef=(_0x3942d5,_0x22fb59,_0x19aa10,_0x4e68be)=>{for(var _0x5a4ec2=_0x4e68be>0x1?void 0x0:_0x4e68be?_0x4a0588(_0x22fb59,_0x19aa10):_0x22fb59,_0x3c2166=_0x3942d5['length']-0x1,_0x407dc0;_0x3c2166>=0x0;_0x3c2166--)(_0x407dc0=_0x3942d5[_0x3c2166])&&(_0x5a4ec2=_0x407dc0(_0x5a4ec2)||_0x5a4ec2);return _0x5a4ec2;},_0x3ae92c=(_0x5a2701,_0x54b62c)=>(_0x820e86,_0x561e87)=>_0x54b62c(_0x820e86,_0x561e87,_0x5a2701);_0x1cc2c4['SheetsPivotTableConfigModel']=class extends _0x374f23['Disposable']{constructor(_0x5bafda,_0x4c5b14,_0x4f6b47,_0x5e613e,_0x5e044b){const _0x221b45=_0x5d1072;super(),_0x1e0b19(this,'_model',new Map()),_0x1e0b19(this,_0x221b45(0x419),new Map()),_0x1e0b19(this,_0x221b45(0x336),new Map()),_0x1e0b19(this,_0x221b45(0x308),new Map()),_0x1e0b19(this,_0x221b45(0x3e6),new _0x1cd777[(_0x221b45(0x2ac))]()),_0x1e0b19(this,_0x221b45(0x1ba),new _0x1cd777['Subject']()),_0x1e0b19(this,'pivotInitCompleted$',this[_0x221b45(0x1ba)][_0x221b45(0x3f4)]()),_0x1e0b19(this,_0x221b45(0x2bc),new _0x1cd777['Subject']()),_0x1e0b19(this,_0x221b45(0x2b7),this[_0x221b45(0x2bc)][_0x221b45(0x3f4)]()),_0x1e0b19(this,_0x221b45(0x187),{}),_0x1e0b19(this,'configVersion$',this[_0x221b45(0x3e6)][_0x221b45(0x3f4)]()),(this['_injector']=_0x5bafda,this[_0x221b45(0x454)]=_0x4c5b14,this[_0x221b45(0x443)]=_0x4f6b47,this['_resourceManagerService']=_0x5e613e,this[_0x221b45(0x40f)]=_0x5e044b,this[_0x221b45(0x18b)](),this[_0x221b45(0x212)]());const _0xf02b4b=this['_configService']['getConfig'](_0x339ccc);(_0xf02b4b==null?void 0x0:_0xf02b4b['notExecuteFormula'])===!0x0&&this[_0x221b45(0x348)]();}['_initUnitDisposed'](){const _0x41a8bc=_0x5d1072;this[_0x41a8bc(0x372)](this['_univerInstanceService'][_0x41a8bc(0x46a)](_0x374f23[_0x41a8bc(0x1e8)][_0x41a8bc(0x2eb)])['subscribe'](_0x257f83=>{const _0x2daadc=_0x41a8bc;this[_0x2daadc(0x282)](_0x257f83['getUnitId']());}));}[_0x5d1072(0x3d3)](){const _0x42ae56=_0x5d1072;this[_0x42ae56(0x1ba)][_0x42ae56(0x3f8)](!0x0);}['_initLocale'](){const _0x29fc1f=_0x5d1072,_0x5341a9=_0x3db0d7(this[_0x29fc1f(0x42a)],_0xe2c987,'',{});this[_0x29fc1f(0x187)]=_0x5341a9,this[_0x29fc1f(0x454)][_0x29fc1f(0x17c)](_0x4a9d2d['id'],{'textInfo':_0x5341a9},{'onlyLocal':!0x0});}[_0x5d1072(0x277)](){const _0x5dfd5e=_0x5d1072;return this[_0x5dfd5e(0x187)];}[_0x5d1072(0x481)](_0x2bd59a,_0x48532a,_0x1942af,_0x2ad7fd,_0x164636){const _0x3bef1d=_0x5d1072;this[_0x3bef1d(0x1e4)](_0x2bd59a,_0x48532a,_0x1942af,_0x2ad7fd),this['updatePivotTableRangeInfo'](_0x2bd59a,_0x48532a,_0x1942af,_0x164636);}['getPivotTableConfig'](_0x4b1899,_0x42efb1,_0x4831c){const _0x445892=_0x5d1072;var _0x5560de;const _0x4b0c34=(_0x5560de=this[_0x445892(0x193)][_0x445892(0x411)](_0x4b1899))==null?void 0x0:_0x5560de[_0x445892(0x411)](_0x42efb1);if(_0x4b0c34)return _0x4b0c34[_0x445892(0x411)](_0x4831c);}[_0x5d1072(0x335)](_0x21832c,_0x34f438){const _0x4ca3be=_0x5d1072,_0x131c8d=this[_0x4ca3be(0x193)][_0x4ca3be(0x411)](_0x21832c);if(_0x131c8d){for(const [_0x16fb1a,_0x5e3e71]of _0x131c8d[_0x4ca3be(0x38d)]())for(const [_0x485a08,_0xf4d1b7]of _0x5e3e71[_0x4ca3be(0x38d)]())if(_0x485a08===_0x34f438)return _0xf4d1b7[_0x4ca3be(0x357)];}}[_0x5d1072(0x1c8)](_0x3438d9,_0x4e7d80,_0x26862f){const _0xbf1424=_0x5d1072,_0x4a6d17=this[_0xbf1424(0x458)](_0x3438d9,_0x4e7d80,_0x26862f);return _0x4a6d17==null?void 0x0:_0x4a6d17[_0xbf1424(0x357)];}[_0x5d1072(0x239)](_0x20708a,_0x4c8817){const _0x461852=_0x5d1072;var _0x3a2dc7;return(_0x3a2dc7=this[_0x461852(0x193)]['get'](_0x20708a))==null?void 0x0:_0x3a2dc7[_0x461852(0x411)](_0x4c8817);}[_0x5d1072(0x37c)](_0x5d20a8,_0x43661e,_0x1afc7e,_0x473ad4){const _0x187615=_0x5d1072,_0x5c9867=this[_0x187615(0x3d7)](_0x5d20a8,_0x43661e);_0x473ad4?_0x5c9867[_0x187615(0x3b5)](_0x1afc7e,_0x473ad4):_0x5c9867[_0x187615(0x2af)](_0x1afc7e),this['_pivotConfigChange$']['next']({'unitId':_0x5d20a8,'subUnitId':_0x43661e,'pivotTableId':_0x1afc7e,'pivotTableConfig':_0x473ad4});}[_0x5d1072(0x43d)](_0x2eb9d0,_0x5e6859){const _0x58bc56=_0x5d1072;var _0x5231f8;return(_0x5231f8=this[_0x58bc56(0x419)][_0x58bc56(0x411)](_0x2eb9d0))==null?void 0x0:_0x5231f8['collections'][_0x5e6859];}[_0x5d1072(0x3e5)](_0x1f7d07,_0x4278b0){const _0x5b56b7=_0x5d1072;this[_0x5b56b7(0x419)][_0x5b56b7(0x3b5)](_0x1f7d07,_0x4278b0),this[_0x5b56b7(0x3e6)][_0x5b56b7(0x3f8)](Math['random']());}['_ensurePivotMap'](_0x5cf9d3,_0x10123c){const _0x27832c=_0x5d1072;let _0x60e67f=this['_model'][_0x27832c(0x411)](_0x5cf9d3);_0x60e67f||(_0x60e67f=new Map(),this[_0x27832c(0x193)][_0x27832c(0x3b5)](_0x5cf9d3,_0x60e67f));let _0x40627d=_0x60e67f[_0x27832c(0x411)](_0x10123c);return _0x40627d||(_0x40627d=new Map(),_0x60e67f[_0x27832c(0x3b5)](_0x10123c,_0x40627d)),_0x40627d;}[_0x5d1072(0x318)](_0x59e2cd,_0x2589ce){const _0x40742e=_0x5d1072;let _0x5301e0=this['_pivotTableRangeInfo'][_0x40742e(0x411)](_0x59e2cd);_0x5301e0||(_0x5301e0=new Map(),this[_0x40742e(0x336)]['set'](_0x59e2cd,_0x5301e0));let _0xe7aafc=_0x5301e0['get'](_0x2589ce);return _0xe7aafc||(_0xe7aafc=new Map(),_0x5301e0[_0x40742e(0x3b5)](_0x2589ce,_0xe7aafc)),_0xe7aafc;}[_0x5d1072(0x223)](_0x2b9796,_0x3fe29d){const _0x55a19b=_0x5d1072;let _0x30b51b=this[_0x55a19b(0x308)]['get'](_0x2b9796);_0x30b51b||(_0x30b51b=new Map(),this['_pivotTableMatrixInfo']['set'](_0x2b9796,_0x30b51b));let _0x191759=_0x30b51b['get'](_0x3fe29d);return _0x191759||(_0x191759=new Map(),_0x30b51b[_0x55a19b(0x3b5)](_0x3fe29d,_0x191759)),_0x191759;}[_0x5d1072(0x2c8)](_0x5eddc1,_0x288457,_0x4c20e4,_0x1a9d3b){const _0x3f4f2c=_0x5d1072;var _0x4f923b;const _0x40b0e6=this[_0x3f4f2c(0x318)](_0x5eddc1,_0x288457),_0x426611=(_0x4f923b=_0x40b0e6[_0x3f4f2c(0x411)](_0x4c20e4))==null?void 0x0:_0x4f923b[_0x3f4f2c(0x1bd)];_0x40b0e6['set'](_0x4c20e4,{'oldRangeInfo':_0x426611,'rangeInfo':_0x1a9d3b});}[_0x5d1072(0x1e4)](_0x3d0747,_0x33dba0,_0x3fc8d9,_0x1048e7){const _0x1e6839=_0x5d1072;var _0x4ace7d;const _0x1f7ff9=this[_0x1e6839(0x223)](_0x3d0747,_0x33dba0),_0x210e3b=(_0x4ace7d=_0x1f7ff9['get'](_0x3fc8d9))==null?void 0x0:_0x4ace7d[_0x1e6839(0x20d)];_0x1f7ff9[_0x1e6839(0x3b5)](_0x3fc8d9,{'oldMatrix':_0x210e3b,'matrix':_0x1048e7});}[_0x5d1072(0x250)](_0x527dd8,_0x372da7,_0x3655cc){const _0x3a0d4c=_0x5d1072;var _0x162ac3,_0x509e7f;return(_0x509e7f=(_0x162ac3=this[_0x3a0d4c(0x336)][_0x3a0d4c(0x411)](_0x527dd8))==null?void 0x0:_0x162ac3[_0x3a0d4c(0x411)](_0x372da7))==null?void 0x0:_0x509e7f[_0x3a0d4c(0x411)](_0x3655cc);}[_0x5d1072(0x1a2)](_0xccc04,_0x3f4aec,_0x31c6f0){const _0x570de3=_0x5d1072;var _0x38f3dd,_0x39f51a;return(_0x39f51a=(_0x38f3dd=this[_0x570de3(0x308)][_0x570de3(0x411)](_0xccc04))==null?void 0x0:_0x38f3dd[_0x570de3(0x411)](_0x3f4aec))==null?void 0x0:_0x39f51a[_0x570de3(0x411)](_0x31c6f0);}[_0x5d1072(0x282)](_0x379415){const _0x4d6039=_0x5d1072;this['_model'][_0x4d6039(0x2af)](_0x379415),this[_0x4d6039(0x419)][_0x4d6039(0x2af)](_0x379415);}[_0x5d1072(0x3a9)](_0x3e9aca){const _0x2e982b=_0x5d1072,_0x5eef05={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['_collectionConfigModel']['get'](_0x3e9aca)&&(_0x5eef05['dataFieldManagerConfig'][_0x3e9aca]=this[_0x2e982b(0x419)]['get'](_0x3e9aca)),this['_model'][_0x2e982b(0x411)](_0x3e9aca)){_0x5eef05['pivotTableConfigs'][_0x3e9aca]={};const _0x3903c2=this[_0x2e982b(0x193)][_0x2e982b(0x411)](_0x3e9aca);_0x3903c2!=null&&_0x3903c2['size']&&[..._0x3903c2[_0x2e982b(0x3d8)]()][_0x2e982b(0x274)](_0x5db851=>{const _0x1408c6=_0x2e982b,_0x2f3e15=_0x3903c2['get'](_0x5db851);_0x2f3e15!=null&&_0x2f3e15[_0x1408c6(0x249)]&&(_0x5eef05[_0x1408c6(0x1c3)][_0x3e9aca][_0x5db851]={},[..._0x2f3e15[_0x1408c6(0x3d8)]()]['forEach'](_0x44129b=>{const _0xf89be=_0x1408c6,_0x576830=_0x2f3e15[_0xf89be(0x411)](_0x44129b);_0x576830&&(_0x5eef05['pivotTableConfigs'][_0x3e9aca][_0x5db851][_0x44129b]=_0x576830);}));});}return _0x5eef05;}[_0x5d1072(0x348)](){const _0x5a8415=_0x5d1072;this[_0x5a8415(0x372)](this[_0x5a8415(0x2d1)]['registerPluginResource']({'toJson':_0x394d59=>JSON[_0x5a8415(0x22c)](this[_0x5a8415(0x3a9)](_0x394d59)),'parseJson':_0x6afeb6=>({}),'businesses':[_0x374f23[_0x5a8415(0x1e8)][_0x5a8415(0x2eb)]],'pluginName':_0xcaa86f,'onLoad':(_0x33568a,_0x501911)=>{},'onUnLoad':_0x3c66d1=>{const _0x24c218=_0x5a8415;this[_0x24c218(0x282)](_0x3c66d1);}}));}},_0x1cc2c4[_0x5d1072(0x1ea)]=_0x548fef([_0x3ae92c(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector'])),_0x3ae92c(0x1,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x386)])),_0x3ae92c(0x2,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x1d8)])),_0x3ae92c(0x3,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x30b)])),_0x3ae92c(0x4,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x224)]))],_0x1cc2c4[_0x5d1072(0x1ea)]);var _0x5cfa3f=Object[_0x5d1072(0x2c5)],_0x365d82=(_0x5b073c,_0x3fc117,_0x1d10f3,_0x3549c0)=>{for(var _0x1e37b0=_0x3549c0>0x1?void 0x0:_0x3549c0?_0x5cfa3f(_0x3fc117,_0x1d10f3):_0x3fc117,_0x52e12d=_0x5b073c['length']-0x1,_0x10ebdf;_0x52e12d>=0x0;_0x52e12d--)(_0x10ebdf=_0x5b073c[_0x52e12d])&&(_0x1e37b0=_0x10ebdf(_0x1e37b0)||_0x1e37b0);return _0x1e37b0;},_0x1ca81d=(_0x564f9f,_0x2c4401)=>(_0x46f0dc,_0x38672d)=>_0x2c4401(_0x46f0dc,_0x38672d,_0x564f9f);_0x1cc2c4['SheetsPivotTableAdaptorModel']=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x5367ce,_0x476c2b,_0x2bb2ff,_0x40886c,_0x301555){const _0x3ca936=_0x5d1072;super(),_0x1e0b19(this,_0x3ca936(0x424),new Map()),_0x1e0b19(this,'_pivotRenderValueMatrixCache',new Map()),_0x1e0b19(this,'_markDirty$',new _0x1cd777['Subject']()),_0x1e0b19(this,_0x3ca936(0x1d2),this['_markDirty$'][_0x3ca936(0x3f4)]()),_0x1e0b19(this,_0x3ca936(0x2e9),new _0x1cd777[(_0x3ca936(0x2ac))]()),_0x1e0b19(this,_0x3ca936(0x461),this[_0x3ca936(0x2e9)][_0x3ca936(0x3f4)]()),_0x1e0b19(this,_0x3ca936(0x187)),(this[_0x3ca936(0x2dc)]=_0x5367ce,this[_0x3ca936(0x42a)]=_0x476c2b,this['_sheetsPivotTableConfigModel']=_0x2bb2ff,this[_0x3ca936(0x443)]=_0x40886c,this['_exclusiveRangeService']=_0x301555,this[_0x3ca936(0x18b)](),this['_initUnitDisposed']());}[_0x5d1072(0x212)](){const _0x325219=_0x5d1072;this[_0x325219(0x372)](this[_0x325219(0x443)][_0x325219(0x46a)](_0x374f23['UniverInstanceType'][_0x325219(0x2eb)])['subscribe'](_0x3dcdd6=>{const _0x2e33b8=_0x325219;this[_0x2e33b8(0x282)](_0x3dcdd6['getUnitId']());}));}[_0x5d1072(0x18b)](){const _0x42f5dc=_0x5d1072;this[_0x42f5dc(0x187)]=_0x3db0d7(this['_injector'],_0xe2c987,'',{});}[_0x5d1072(0x389)](_0x826cc8){const _0x5c78a9=_0x5d1072,{view:_0x55a561,unitId:_0x27e399,subUnitId:_0x4bdf76,pivotTableId:_0xeab1b,type:_0x424fdb}=_0x826cc8,_0x104c98=this['_sheetsPivotTableConfigModel'][_0x5c78a9(0x458)](_0x27e399,_0x4bdf76,_0xeab1b);if(!_0x55a561||!_0x104c98||_0x424fdb===_0x5ae422['Delete'])return;const {pageView:_0x16a468,cornerView:_0x26b8c0,rowView:_0x393890,colView:_0x4ef658,dataView:_0x11c276}=_0x55a561,_0x5d035f=_0x104c98[_0x5c78a9(0x357)],_0xa8ff6b=_0x104c98[_0x5c78a9(0x475)],_0x16a33b=this[_0x5c78a9(0x42b)](_0x27e399,_0x4bdf76),_0x3e1924=this[_0x5c78a9(0x189)](_0x27e399,_0x4bdf76,_0xeab1b);if(_0xa8ff6b)return this[_0x5c78a9(0x179)](_0x826cc8,_0x16a33b,_0x5d035f,_0x3e1924);{const _0x4c2b82=_0x227f31(_0x5d035f,_0x16a468,!0x0),_0x386c2b=_0x16a468[_0x5c78a9(0x18f)]>=0x0?_0x16a468[_0x5c78a9(0x18f)]+0x1:0x0,_0x5e5b23=_0x26b8c0[_0x5c78a9(0x46e)](),_0x437901=_0x26b8c0[_0x5c78a9(0x37f)](),_0x5be0e8=_0x4c2b82[_0x5c78a9(0x468)]>0x0?_0x9545db:0x0,_0x1815e1=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8,'col':_0x5d035f['col']},_0x26b8c0,!0x1,!0x1),_0x332ce8=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8+_0x5e5b23,'col':_0x5d035f[_0x5c78a9(0x434)]},_0x393890,!0x1,!0x0),_0x1af589=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8,'col':_0x5d035f[_0x5c78a9(0x434)]+_0x437901},_0x4ef658,!0x1,!0x0),_0x13bacc=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8+_0x5e5b23,'col':_0x5d035f['col']+_0x437901},_0x11c276,!0x1,!0x1);_0x3e1924[_0x5c78a9(0x1bc)]={'rowRanges':_0x332ce8,'colRanges':_0x1af589,'cornerRanges':_0x1815e1,'dataRanges':_0x13bacc,'pageRanges':_0x4c2b82};const _0x530f51=_0x240ff5(this[_0x5c78a9(0x42a)],_0x55a561,_0x104c98,this[_0x5c78a9(0x187)]),{valueMatrix:_0xa0ff5a,rowInfo:_0xc8c9ce,colInfo:_0x9c142f,cornerInfo:_0x280570,rowHeaderMap:_0x43b268,colHeaderMap:_0x14eb49}=_0x530f51;return _0x3e1924['areaInfo']={'rowInfo':_0xc8c9ce,'colInfo':_0x9c142f,'cornerInfo':_0x280570},_0x3e1924[_0x5c78a9(0x271)]={'rowHeaderMap':_0x43b268,'colHeaderMap':_0x14eb49},_0xa0ff5a[_0x5c78a9(0x274)]((_0x165232,_0x2546f2)=>{const _0x42049a=_0x5c78a9;Object[_0x42049a(0x3d8)](_0x2546f2)['forEach'](_0x146677=>{const _0x16cf08=_0x42049a,_0x59651e=+_0x146677,_0x2ae797=_0xa0ff5a[_0x16cf08(0x216)](_0x165232,_0x59651e);_0x16a33b['setValue'](_0x165232,_0x59651e,_0x2ae797);});}),this[_0x5c78a9(0x2e9)][_0x5c78a9(0x3f8)]({'unitId':_0x27e399,'subUnitId':_0x4bdf76,'valueMatrix':_0x16a33b,'rangesCache':_0x3e1924[_0x5c78a9(0x1bc)],'pivotTableId':_0xeab1b,'type':_0x826cc8[_0x5c78a9(0x1fd)]}),this[_0x5c78a9(0x1be)][_0x5c78a9(0x481)](_0x27e399,_0x4bdf76,_0xeab1b,_0x16a33b,_0x3e1924[_0x5c78a9(0x1bc)]),this[_0x5c78a9(0x3e1)][_0x5c78a9(0x1fc)](_0x27e399,_0x4bdf76,_0x2e78bd,this['_createExclusiveRange'](_0x3e1924[_0x5c78a9(0x1bc)],_0xeab1b)),{'rangeCache':_0x3e1924['rangesInfo'],'matrix':_0x16a33b};}}[_0x5d1072(0x179)](_0xd1cb5f,_0x32c543,_0xc9048c,_0x5f5c70){const _0x3ca1ca=_0x5d1072,_0x2c6187=this[_0x3ca1ca(0x2dc)]['t'],{unitId:_0x41d97f,subUnitId:_0x503b3e,pivotTableId:_0x3f08fa}=_0xd1cb5f,_0x5505d8={'filter':_0x2c6187(_0x3ca1ca(0x362)),'row':_0x2c6187('sheets-pivot.emptyPivot.row'),'column':_0x2c6187(_0x3ca1ca(0x2ef)),'values':_0x2c6187(_0x3ca1ca(0x286))},{matrixCache:_0x20a682,rangesCache:_0x4b0b4b}=_0x36fb91(_0x5505d8,_0xc9048c);return _0x20a682[_0x3ca1ca(0x1d1)]((_0x532a2e,_0x2082a1,_0x131787)=>{const _0x222e22=_0x3ca1ca;_0x32c543[_0x222e22(0x388)](_0x532a2e,_0x2082a1,_0x131787);}),_0x5f5c70[_0x3ca1ca(0x1bc)]=_0x4b0b4b,this['_viewUpdate$'][_0x3ca1ca(0x3f8)]({'unitId':_0x41d97f,'subUnitId':_0x503b3e,'valueMatrix':_0x32c543,'rangesCache':_0x4b0b4b,'pivotTableId':_0x3f08fa,'type':_0xd1cb5f[_0x3ca1ca(0x1fd)],'isEmpty':!0x0}),this[_0x3ca1ca(0x1be)]['updateViewInfo'](_0x41d97f,_0x503b3e,_0x3f08fa,_0x32c543,_0x4b0b4b),this[_0x3ca1ca(0x3e1)][_0x3ca1ca(0x1fc)](_0x41d97f,_0x503b3e,_0x2e78bd,this['_createExclusiveRange'](_0x4b0b4b,_0x3f08fa)),{'rangeCache':_0x5f5c70[_0x3ca1ca(0x1bc)],'matrix':_0x32c543};}[_0x5d1072(0x31d)](_0x2e3130,_0x464d08){const _0x6f2601=[],_0x24cd9a=_0x17e537(_0x2e3130);for(const _0x20e80b of _0x24cd9a)_0x6f2601['push']({'groupId':_0x464d08,'range':_0x20e80b});return _0x6f2601;}['clearRenderCache'](_0x4c1266){const _0x2d1097=_0x5d1072;var _0x3f19f3,_0xccb9d1,_0x4deb42,_0x2020a0;const {pivotTableId:_0x5b167e,unitId:_0x386b64,subUnitId:_0x5c006c}=_0x4c1266;if(!_0x5b167e||!_0x386b64||!_0x5c006c)return;const _0x36f0ff=this[_0x2d1097(0x42b)](_0x386b64,_0x5c006c),_0x39152a=(_0xccb9d1=(_0x3f19f3=this[_0x2d1097(0x424)][_0x2d1097(0x411)](_0x386b64))==null?void 0x0:_0x3f19f3[_0x2d1097(0x411)](_0x5c006c))==null?void 0x0:_0xccb9d1[_0x2d1097(0x411)](_0x5b167e);if(_0x39152a!=null&&_0x39152a[_0x2d1097(0x1bc)]){for(const _0x54fe9d of Object['keys'](_0x39152a[_0x2d1097(0x1bc)]))_0x39152a[_0x2d1097(0x1bc)][_0x54fe9d][_0x2d1097(0x274)](_0x47337e=>{const _0x112aaa=_0x2d1097;for(let _0x4a39eb=_0x47337e['startRow'];_0x4a39eb<=_0x47337e['endRow'];_0x4a39eb++)for(let _0xf92eb1=_0x47337e['startColumn'];_0xf92eb1<=_0x47337e[_0x112aaa(0x217)];_0xf92eb1++)_0x36f0ff[_0x112aaa(0x370)](_0x4a39eb,_0xf92eb1);});}_0x39152a&&((_0x2020a0=(_0x4deb42=this['_pivotRenderInfoCache']['get'](_0x386b64))==null?void 0x0:_0x4deb42['get'](_0x5c006c))==null||_0x2020a0[_0x2d1097(0x2af)](_0x5b167e)),this[_0x2d1097(0x2e9)][_0x2d1097(0x3f8)]({'unitId':_0x386b64,'subUnitId':_0x5c006c,'valueMatrix':_0x36f0ff,'pivotTableId':_0x5b167e,'rangesCache':void 0x0,'type':_0x4c1266[_0x2d1097(0x1fd)]}),this[_0x2d1097(0x3e1)]['clearExclusiveRangesByGroupId'](_0x386b64,_0x5c006c,_0x2e78bd,_0x5b167e);}[_0x5d1072(0x189)](_0x422249,_0x57ce5a,_0x11292f){const _0x3373e0=_0x5d1072;var _0x228fa6,_0x5980bb,_0x1f5dfd,_0x285d5f,_0x51f236,_0x31a34c;return this[_0x3373e0(0x424)]['has'](_0x422249)||this[_0x3373e0(0x424)]['set'](_0x422249,new Map()),(_0x228fa6=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))!=null&&_0x228fa6[_0x3373e0(0x1b5)](_0x57ce5a)||(_0x5980bb=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))==null||_0x5980bb[_0x3373e0(0x3b5)](_0x57ce5a,new Map()),(_0x285d5f=(_0x1f5dfd=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))==null?void 0x0:_0x1f5dfd['get'](_0x57ce5a))!=null&&_0x285d5f[_0x3373e0(0x1b5)](_0x11292f)||(_0x31a34c=(_0x51f236=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))==null?void 0x0:_0x51f236[_0x3373e0(0x411)](_0x57ce5a))==null||_0x31a34c[_0x3373e0(0x3b5)](_0x11292f,{}),this['_pivotRenderInfoCache'][_0x3373e0(0x411)](_0x422249)[_0x3373e0(0x411)](_0x57ce5a)[_0x3373e0(0x411)](_0x11292f);}[_0x5d1072(0x42b)](_0x33bb3b,_0x4b5cea){const _0x4b76b4=_0x5d1072;var _0x3e899e,_0x5bbf78;return this[_0x4b76b4(0x385)]['has'](_0x33bb3b)||this[_0x4b76b4(0x385)][_0x4b76b4(0x3b5)](_0x33bb3b,new Map()),(_0x3e899e=this['_pivotRenderValueMatrixCache']['get'](_0x33bb3b))!=null&&_0x3e899e['has'](_0x4b5cea)||(_0x5bbf78=this[_0x4b76b4(0x385)][_0x4b76b4(0x411)](_0x33bb3b))==null||_0x5bbf78[_0x4b76b4(0x3b5)](_0x4b5cea,new _0x374f23[(_0x4b76b4(0x33b))]()),this['_pivotRenderValueMatrixCache'][_0x4b76b4(0x411)](_0x33bb3b)[_0x4b76b4(0x411)](_0x4b5cea);}['getPivotTableCellData'](_0x439aa4,_0x23f0b7,_0xaa27a6,_0x75612e){const _0x15ed42=_0x5d1072;var _0x258e6f,_0x58b894;const _0x4bf385=(_0x58b894=(_0x258e6f=this[_0x15ed42(0x385)][_0x15ed42(0x411)](_0x439aa4))==null?void 0x0:_0x258e6f[_0x15ed42(0x411)](_0x23f0b7))==null?void 0x0:_0x58b894[_0x15ed42(0x216)](_0xaa27a6,_0x75612e);if(_0x4bf385!=null)return _0x4bf385;}[_0x5d1072(0x445)](_0x2f9a40,_0x5f42a8,_0x15417e,_0x49cc45){const _0x337ec9=_0x5d1072;var _0x1f5d12;const _0x21d555=_0x374f23['cellToRange'](_0x15417e,_0x49cc45),_0x546e13=(_0x1f5d12=this['_pivotRenderInfoCache'][_0x337ec9(0x411)](_0x2f9a40))==null?void 0x0:_0x1f5d12[_0x337ec9(0x411)](_0x5f42a8);return _0x546e13?Array[_0x337ec9(0x2d9)](_0x546e13[_0x337ec9(0x3d8)]())['find'](_0x28f0c0=>{const _0x4684eb=_0x337ec9,_0x4de43f=_0x546e13[_0x4684eb(0x411)](_0x28f0c0),_0x340cd9=_0x4de43f==null?void 0x0:_0x4de43f['rangesInfo'];return _0x340cd9?Object['keys'](_0x340cd9)['some'](_0x530be9=>_0x340cd9[_0x530be9][_0x4684eb(0x3c4)](_0x3efc8a=>_0x374f23[_0x4684eb(0x236)][_0x4684eb(0x447)](_0x3efc8a,_0x21d555))):!0x1;}):void 0x0;}[_0x5d1072(0x31b)](_0x330ec7,_0x46c72e,_0x1c9d08){const _0x1507dd=_0x5d1072;var _0x4771e0;const _0x176ac6=(_0x4771e0=this[_0x1507dd(0x424)]['get'](_0x330ec7))==null?void 0x0:_0x4771e0[_0x1507dd(0x411)](_0x46c72e),_0x3d612e=[];return _0x176ac6&&Array[_0x1507dd(0x2d9)](_0x176ac6[_0x1507dd(0x3d8)]())['forEach'](_0x972602=>{const _0x38a370=_0x1507dd,_0x44523a=_0x176ac6['get'](_0x972602),_0x3d9086=_0x44523a==null?void 0x0:_0x44523a[_0x38a370(0x1bc)];if(_0x3d9086)for(const _0xa49a59 of Object[_0x38a370(0x39c)](_0x3d9086)){let _0x3691e7=!0x1;for(const _0x581f08 of _0xa49a59)if(_0x374f23['Rectangle'][_0x38a370(0x1c1)](_0x581f08,_0x1c9d08)){_0x3d612e[_0x38a370(0x27b)](_0x972602),_0x3691e7=!0x0;break;}if(_0x3691e7)break;}}),_0x3d612e;}[_0x5d1072(0x194)](_0x1c8e9c,_0x2fdc5d){const _0x566aed=_0x5d1072;var _0x1f0a51,_0x36be52;return(_0x36be52=(_0x1f0a51=this[_0x566aed(0x385)]['get'](_0x1c8e9c))==null?void 0x0:_0x1f0a51[_0x566aed(0x411)](_0x2fdc5d))!=null?_0x36be52:new _0x374f23[(_0x566aed(0x33b))]();}[_0x5d1072(0x18c)](_0x1ff08e,_0x35cca3){const _0x30ae50=_0x5d1072;var _0x30de17;return(_0x30de17=this['_pivotRenderInfoCache']['get'](_0x1ff08e))==null?void 0x0:_0x30de17[_0x30ae50(0x411)](_0x35cca3);}[_0x5d1072(0x1b9)](_0x50d786,_0x6e3301,_0x24948d){const _0x4a8f46=_0x5d1072;var _0x2191e5,_0x205288;return(_0x205288=(_0x2191e5=this['_pivotRenderInfoCache'][_0x4a8f46(0x411)](_0x50d786))==null?void 0x0:_0x2191e5['get'](_0x6e3301))==null?void 0x0:_0x205288[_0x4a8f46(0x411)](_0x24948d);}['deleteUnitId'](_0x523c09){const _0x552ba0=_0x5d1072;this[_0x552ba0(0x424)]['delete'](_0x523c09),this[_0x552ba0(0x385)]['delete'](_0x523c09);}[_0x5d1072(0x43a)](_0x5e450f,_0x47f5b9){const _0x575de2=_0x5d1072;this['_markDirty$'][_0x575de2(0x3f8)]({'unitId':_0x5e450f,'subUnitId':_0x47f5b9});}},_0x1cc2c4['SheetsPivotTableAdaptorModel']=_0x365d82([_0x1ca81d(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x3cd)])),_0x1ca81d(0x1,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector'])),_0x1ca81d(0x2,_0x374f23['Inject'](_0x1cc2c4['SheetsPivotTableConfigModel'])),_0x1ca81d(0x3,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x1d8)])),_0x1ca81d(0x4,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x3bf)]))],_0x1cc2c4[_0x5d1072(0x3ba)]);var _0x29e034=Object[_0x5d1072(0x2c5)],_0x4eba98=(_0x56efab,_0xf3b5b0,_0xe91987,_0x115922)=>{for(var _0x3887d3=_0x115922>0x1?void 0x0:_0x115922?_0x29e034(_0xf3b5b0,_0xe91987):_0xf3b5b0,_0x3ca54b=_0x56efab['length']-0x1,_0x4db0f9;_0x3ca54b>=0x0;_0x3ca54b--)(_0x4db0f9=_0x56efab[_0x3ca54b])&&(_0x3887d3=_0x4db0f9(_0x3887d3)||_0x3887d3);return _0x3887d3;},_0x38b3f0=(_0x403838,_0x408f6a)=>(_0x5e78df,_0x302f50)=>_0x408f6a(_0x5e78df,_0x302f50,_0x403838);_0x1cc2c4['SheetsPivotTableService']=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x25a4bf,_0x32b602){const _0x33e44e=_0x5d1072;super(),_0x1e0b19(this,_0x33e44e(0x24d),new _0x374f23['AsyncInterceptorManager']({'PIVOT_PERFORM_CHECK':_0x460ff6})),_0x1e0b19(this,_0x33e44e(0x199),new _0x374f23[(_0x33e44e(0x2e4))]({'PIVOT_MUTATION_GENERATE':_0x1b27ae})),(this[_0x33e44e(0x420)]=_0x25a4bf,this[_0x33e44e(0x2d0)]=_0x32b602,this['_init']());}['_init'](){const _0x58395c=_0x5d1072;this[_0x58395c(0x482)]();}['getPivotPerformCheck'](_0x1130c4){const _0x195344=_0x5d1072;return this[_0x195344(0x24d)][_0x195344(0x3a5)](_0x460ff6)(!0x1,_0x1130c4);}[_0x5d1072(0x482)](){const _0x388acd=_0x5d1072;this[_0x388acd(0x372)](this['_sheetInterceptorService'][_0x388acd(0x2bf)](_0x24a2a7[_0x388acd(0x2a7)][_0x388acd(0x325)],{'priority':0xc8,'effect':_0x374f23[_0x388acd(0x270)][_0x388acd(0x444)]|_0x374f23['InterceptorEffectEnum'][_0x388acd(0x3fe)],'handler':(_0x3f98a8,_0x3b136c,_0x57050f)=>{const _0xf94295=_0x388acd,{row:_0x3f2065,col:_0x27f71c,unitId:_0x42fd47,subUnitId:_0x3ae4f1,workbook:_0x1c99fc}=_0x3b136c,_0x38badc=this[_0xf94295(0x2d0)][_0xf94295(0x360)](_0x42fd47,_0x3ae4f1,_0x3f2065,_0x27f71c);if(!_0x38badc)return _0x57050f(_0x3f98a8);const _0x44e7a8={..._0x3f98a8};(_0x38badc['v']||_0x38badc['v']===0x0)&&(_0x44e7a8['v']=_0x38badc['v']),_0x38badc['t']&&(_0x44e7a8['t']=_0x38badc['t']);const _0x59ed4b=(typeof(_0x3f98a8==null?void 0x0:_0x3f98a8['s'])==_0xf94295(0x436)?_0x1c99fc['getStyles']()[_0xf94295(0x411)](_0x3f98a8==null?void 0x0:_0x3f98a8['s']):_0x3f98a8==null?void 0x0:_0x3f98a8['s'])||{},_0x3157f1=_0x1c99fc[_0xf94295(0x26a)]()[_0xf94295(0x411)](_0x38badc['s']),_0x18d2de={..._0x3157f1,..._0x59ed4b};_0x3157f1!=null&&_0x3157f1['n']&&(_0x18d2de['n']=_0x3157f1['n']);const _0x53edb5=_0x1c99fc[_0xf94295(0x26a)]()[_0xf94295(0x388)](_0x18d2de);return _0x44e7a8['s']=_0x53edb5,(_0x38badc['pbt']===_0x2eef51[_0xf94295(0x421)]['Collapse']||_0x38badc[_0xf94295(0x2d4)]===_0x2eef51[_0xf94295(0x421)][_0xf94295(0x241)])&&(_0x44e7a8[_0xf94295(0x2b8)]={},_0x44e7a8['fontRenderExtension'][_0xf94295(0x3fc)]=_0x1b6ed3),_0x57050f(_0x44e7a8);}}));}},_0x1cc2c4[_0x5d1072(0x3f9)]=_0x4eba98([_0x38b3f0(0x0,_0x374f23[_0x5d1072(0x465)](_0x24a2a7['SheetInterceptorService'])),_0x38b3f0(0x1,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4[_0x5d1072(0x3ba)]))],_0x1cc2c4[_0x5d1072(0x3f9)]);const _0x2dc301={'id':_0x5d1072(0x1b8),'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'handler':(_0x361559,_0x32ede6)=>{const _0x278663=_0x5d1072;if(!_0x32ede6)return!0x1;if(!!_0x361559[_0x278663(0x411)](_0x374f23[_0x278663(0x224)])['getConfig'](_0x1e657c))return!0x0;const {pivotTableId:_0x3d44c7,fieldJSON:_0x1ea8f6,unitId:_0x1b94b2,subUnitId:_0x1dd48c}=_0x32ede6;let _0x28ac97;const {dataFieldType:_0x12ec31,id:_0x3aa022,name:_0x10dec9,hexCode:_0xed12cb,originalFieldId:_0x33244b}=_0x1ea8f6;if(_0x12ec31===_0x2eef51['PivotDataFieldTypeEnum'][_0x278663(0x1e5)]&&(_0x28ac97=new _0x2eef51[(_0x278663(0x3fd))](_0x3aa022,_0x10dec9,_0xed12cb,_0x33244b)),!_0x28ac97)return!0x1;const _0x32bce2=_0x361559[_0x278663(0x411)](_0x1cc2c4[_0x278663(0x38e)]),_0xc6fc80=_0x32bce2[_0x278663(0x367)](_0x1b94b2),_0xf10201=_0xc6fc80['getCollection'](_0x3d44c7);_0xc6fc80[_0x278663(0x387)](_0x28ac97),_0xf10201['addField'](_0x28ac97[_0x278663(0x470)](),_0x28ac97['getName']());const _0x29d32d=_0xf10201[_0x278663(0x35d)](_0x28ac97['getOriginFieldId']());_0x29d32d&&_0x28ac97['refreshGroupField'](_0x29d32d);const _0x33a01f=_0x32bce2[_0x278663(0x458)](_0x1b94b2,_0x1dd48c,_0x3d44c7);return _0x32bce2[_0x278663(0x1fe)]({'unitId':_0x1b94b2,'subUnitId':_0x1dd48c,'token':_0x3d44c7,'type':_0x5ae422[_0x278663(0x332)],'pivotConfig':_0x33a01f}),!0x0;}},_0x1b4e8f={'id':_0x5d1072(0x184),'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'handler':(_0x123d75,_0x4bd0b3)=>{const _0x3a64f6=_0x5d1072;if(!_0x4bd0b3)return!0x1;if(!!_0x123d75[_0x3a64f6(0x411)](_0x374f23[_0x3a64f6(0x224)])[_0x3a64f6(0x19c)](_0x1e657c))return!0x0;const {pivotTableId:_0x434432,dataFieldId:_0x2cd4c8,unitId:_0x2c53e8,subUnitId:_0x489f6a}=_0x4bd0b3,_0x1d27b0=_0x123d75['get'](_0x1cc2c4['SheetsPivotDataSourceModel']),_0x48cce6=_0x1d27b0['getDataFieldManager'](_0x2c53e8);_0x48cce6[_0x3a64f6(0x43d)](_0x434432)[_0x3a64f6(0x248)](_0x2cd4c8);let _0x357329=!0x0;for(const _0x5abc09 in _0x48cce6[_0x3a64f6(0x459)])if(_0x48cce6[_0x3a64f6(0x459)][_0x5abc09][_0x3a64f6(0x324)]()[_0x3a64f6(0x42d)](_0x2cd4c8)){_0x357329=!0x1;break;}_0x357329&&_0x48cce6[_0x3a64f6(0x34d)](_0x2cd4c8);const _0x3f0631=_0x1d27b0['getPivotTableConfig'](_0x2c53e8,_0x489f6a,_0x434432);return _0x1d27b0[_0x3a64f6(0x1fe)]({'unitId':_0x2c53e8,'subUnitId':_0x489f6a,'token':_0x434432,'type':_0x5ae422['Set'],'pivotConfig':_0x3f0631}),!0x0;}};function _0x424751(_0xd32111,_0x57885a){const _0xef04f4=_0x5d1072;switch(_0x57885a){case _0x2eef51[_0xef04f4(0x329)]['Value']:return _0xd32111[_0xef04f4(0x2a8)];case _0x2eef51['PivotTableFiledAreaEnum'][_0xef04f4(0x2f1)]:return _0xd32111['filterFields'];case _0x2eef51[_0xef04f4(0x329)]['Row']:return _0xd32111[_0xef04f4(0x206)];case _0x2eef51[_0xef04f4(0x329)][_0xef04f4(0x403)]:return _0xd32111[_0xef04f4(0x3a1)];default:return[];}}function _0x43a8ac(_0x521079,_0x229230){const _0x271bb4=_0x5d1072;return _0x521079[_0x271bb4(0x377)][_0x229230]||_0x521079[_0x271bb4(0x455)][_0x229230];}function _0x29a9c1(_0x783b10,_0xfbefd8){const _0x45d07e=_0x5d1072,{area:_0x435a3b,fieldJson:_0x82ca57,index:_0x1baff9}=_0xfbefd8;_0x435a3b===_0x2eef51['PivotTableFiledAreaEnum']['Value']?_0x783b10['measure'][_0x82ca57['id']]=_0x82ca57:_0x783b10[_0x45d07e(0x455)][_0x82ca57['id']]=_0x82ca57,_0x424751(_0x783b10,_0x435a3b)[_0x45d07e(0x2bd)](_0x1baff9,0x0,_0x82ca57['id']);}function _0x5f259e(_0x402031,_0x456ff8){const _0x2233b4=_0x5d1072,{area:_0x1f47c0,fieldId:_0x303d8d,index:_0x39a898}=_0x456ff8;_0x1f47c0===_0x2eef51[_0x2233b4(0x329)]['Value']?delete _0x402031[_0x2233b4(0x377)][_0x303d8d]:delete _0x402031['dimension'][_0x303d8d],_0x424751(_0x402031,_0x1f47c0)[_0x2233b4(0x2bd)](_0x39a898,0x1);}function _0xeb707c(_0x2e54fa,_0x378036){const _0x49d574=_0x5d1072,{fieldId:_0x110200,name:_0x2ae1de}=_0x378036,_0x518051=_0x43a8ac(_0x2e54fa,_0x110200);_0x518051&&(_0x518051[_0x49d574(0x39a)]=_0x2ae1de);}function _0x378aff(_0x2d43fb,_0x4578ac){const _0x2c67e3=_0x5d1072,{fieldId:_0x2d73fa,collapse:_0x1158dd,item:_0x23cc7c}=_0x4578ac;_0x23cc7c!==void 0x0?(_0x2d43fb[_0x2c67e3(0x23d)][_0x2d73fa]=_0x2d43fb[_0x2c67e3(0x23d)][_0x2d73fa]||{},_0x2d43fb[_0x2c67e3(0x23d)][_0x2d73fa][_0x23cc7c]=_0x1158dd):_0x2d43fb['collapseInfo'][_0x2d73fa]=_0x1158dd;}function _0x275df5(_0x5bcc6b,_0x33c027){const _0x217150=_0x5d1072,{fieldId:_0x40b93f,format:_0x4a0623}=_0x33c027,_0x535dca=_0x43a8ac(_0x5bcc6b,_0x40b93f);_0x535dca&&(_0x535dca[_0x217150(0x429)]=_0x4a0623);}function _0xfcbb47(_0x4b92f3,_0x520b1d){const _0x52d914=_0x5d1072,{fieldId:_0x6b8edb,filterInfo:_0x11d6db}=_0x520b1d,_0x25f3b4=_0x43a8ac(_0x4b92f3,_0x6b8edb);_0x25f3b4&&(_0x25f3b4[_0x52d914(0x3f3)]=_0x11d6db);}function _0x3a8287(_0x19d011,_0x46d331){const _0x3fe6c0=_0x5d1072,{fieldId:_0x1c9816,filterInfo:_0x3ca716}=_0x46d331,_0x51b276=_0x19d011['valueFilter']['filter'](_0x5c6a7a=>_0x5c6a7a[_0x3fe6c0(0x235)]!==_0x1c9816);_0x3ca716&&_0x51b276['push']({'fieldId':_0x1c9816,'filterInfo':_0x3ca716}),_0x19d011[_0x3fe6c0(0x1f2)]=_0x51b276;}function _0x5cb599(_0x468951,_0x2fb5f1){const {fieldId:_0x265ac2,subtotalType:_0x1db436}=_0x2fb5f1,_0x47c9f7=_0x43a8ac(_0x468951,_0x265ac2);_0x47c9f7&&(_0x47c9f7['subtotal']=_0x1db436);}function _0x424b6b(_0x1a8df6,_0x38d45f){const _0x1ce17e=_0x5d1072,{fieldId:_0x2280f7,oldArea:_0x54dcd4,area:_0x437e31,oldIndex:_0x19e775,index:_0x325de5}=_0x38d45f,_0x57c466=_0x54dcd4!==_0x2eef51['PivotTableFiledAreaEnum']['Value']&&_0x437e31===_0x2eef51['PivotTableFiledAreaEnum'][_0x1ce17e(0x444)],_0x5881a9=_0x54dcd4===_0x2eef51['PivotTableFiledAreaEnum'][_0x1ce17e(0x444)]&&_0x437e31!==_0x2eef51[_0x1ce17e(0x329)][_0x1ce17e(0x444)];if(_0x57c466||_0x5881a9){const _0x4c259f=_0x43a8ac(_0x1a8df6,_0x2280f7);_0x4c259f&&(_0x57c466?(delete _0x1a8df6['dimension'][_0x2280f7],_0x1a8df6['measure'][_0x2280f7]=_0x4c259f):(delete _0x1a8df6[_0x1ce17e(0x377)][_0x2280f7],_0x1a8df6['dimension'][_0x2280f7]=_0x4c259f));}const _0x5323e1=_0x424751(_0x1a8df6,_0x54dcd4),_0x2cc951=_0x424751(_0x1a8df6,_0x437e31);_0x5323e1[_0x1ce17e(0x2bd)](_0x19e775,0x1),_0x2cc951[_0x1ce17e(0x2bd)](_0x325de5,0x0,_0x2280f7);}function _0x1e8f15(_0x20af1e,_0x13cd40){const _0x411ad8=_0x5d1072,{valuePosition:_0xefee77,index:_0x41be5f}=_0x13cd40;_0x20af1e[_0x411ad8(0x24a)]=_0xefee77,_0x20af1e[_0x411ad8(0x29c)]=_0x41be5f;}function _0x5aff30(_0x558ffe,_0x5e41be){const _0xb33677=_0x5d1072,{tableFieldId:_0x109377,sourceName:_0x78867c,dataFieldId:_0x2bb863}=_0x5e41be,_0x4ce035=_0x43a8ac(_0x558ffe,_0x109377);_0x4ce035&&(_0x4ce035[_0xb33677(0x343)]=_0x78867c,_0x4ce035[_0xb33677(0x423)]=_0x2bb863);}function _0x2f7257(_0x748a1a,_0x4084ab){const _0xf46908=_0x5d1072,{fieldId:_0x53865d,sortInfo:_0x518046}=_0x4084ab,_0x55f876=_0x43a8ac(_0x748a1a,_0x53865d);_0x55f876&&(_0x55f876[_0xf46908(0x3c9)]=_0x518046);}function _0x4ba2f1(_0x303476,_0x4a67bb){const _0x2619ed=_0x5d1072,{options:_0xffb1a5}=_0x4a67bb;_0x303476[_0x2619ed(0x35a)]={..._0x303476['options'],..._0xffb1a5};}const _0x33b47c={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x1a1),'handler'(_0x38b267,_0x4be208){const _0x444acb=_0x5d1072;if(!_0x4be208)return!0x1;if(!!_0x38b267[_0x444acb(0x411)](_0x374f23[_0x444acb(0x224)])[_0x444acb(0x19c)](_0x1e657c))return!0x0;const _0x4673e1=_0x38b267[_0x444acb(0x411)](_0x1cc2c4[_0x444acb(0x38e)]),{pivotTableId:_0x7beb50,fieldJson:_0x577236,area:_0x1f9858,index:_0x19ba0d,unitId:_0x1f1ef0,subUnitId:_0x18483a}=_0x4be208,_0x2c0694=_0x4673e1[_0x444acb(0x202)](_0x7beb50);if(!_0x2c0694)return!0x1;let _0x32a6f5;_0x1f9858===_0x2eef51['PivotTableFiledAreaEnum'][_0x444acb(0x444)]?_0x32a6f5=_0x2eef51['createValueField'](_0x577236):_0x32a6f5=_0x2eef51[_0x444acb(0x1f0)](_0x577236),_0x2c0694[_0x444acb(0x34b)](_0x32a6f5,_0x1f9858,_0x19ba0d);const _0x3d2287=_0x4673e1['getPivotTableModelConfig'](_0x1f1ef0,_0x18483a,_0x7beb50);_0x29a9c1(_0x3d2287,_0x4be208);const _0x5840e8=_0x4673e1[_0x444acb(0x458)](_0x1f1ef0,_0x18483a,_0x7beb50);return _0x4673e1['addDirtyPivotTable']({'unitId':_0x1f1ef0,'subUnitId':_0x18483a,'token':_0x7beb50,'type':_0x5ae422[_0x444acb(0x332)],'pivotConfig':_0x5840e8}),!0x0;}},_0x1c531a={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':_0x5d1072(0x364),'handler'(_0x57eab2,_0x295b67){const _0x28b088=_0x5d1072;if(!_0x295b67)return!0x1;if(!!_0x57eab2[_0x28b088(0x411)](_0x374f23['IConfigService'])[_0x28b088(0x19c)](_0x1e657c))return!0x0;const _0x85f4da=_0x57eab2[_0x28b088(0x411)](_0x1cc2c4[_0x28b088(0x38e)]),{pivotTableId:_0x5c1526,fieldId:_0x436bb2,unitId:_0x34b09f,subUnitId:_0x102162}=_0x295b67,_0x1b1361=_0x85f4da['getPivotTableInstance'](_0x5c1526);if(!_0x1b1361)return!0x1;_0x1b1361[_0x28b088(0x37e)](_0x436bb2);const _0x377348=_0x85f4da[_0x28b088(0x1fb)](_0x34b09f,_0x102162,_0x5c1526);_0x5f259e(_0x377348,_0x295b67);const _0x22abbb=_0x85f4da['getPivotTableConfig'](_0x34b09f,_0x102162,_0x5c1526);return _0x85f4da[_0x28b088(0x1fe)]({'unitId':_0x34b09f,'subUnitId':_0x102162,'token':_0x5c1526,'type':_0x5ae422[_0x28b088(0x332)],'pivotConfig':_0x22abbb}),!0x0;}},_0x3a7b5e={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x2e8),'handler'(_0xd4ebea,_0x3d3239){const _0x502a82=_0x5d1072;if(!_0x3d3239)return!0x1;if(!!_0xd4ebea[_0x502a82(0x411)](_0x374f23[_0x502a82(0x224)])['getConfig'](_0x1e657c))return!0x0;const _0x518f85=_0xd4ebea[_0x502a82(0x411)](_0x1cc2c4[_0x502a82(0x38e)]),{unitId:_0x4c06a7,subUnitId:_0x480905,pivotTableId:_0x806de2,fieldId:_0x507220,name:_0x5290e5}=_0x3d3239,_0x39f309=_0x518f85[_0x502a82(0x202)](_0x806de2);if(!_0x39f309)return!0x1;_0x39f309[_0x502a82(0x18a)](_0x507220,_0x5290e5);const _0x561476=_0x518f85['getPivotTableModelConfig'](_0x4c06a7,_0x480905,_0x806de2);return _0xeb707c(_0x561476,_0x3d3239),_0x518f85[_0x502a82(0x1fe)]({'unitId':_0x4c06a7,'subUnitId':_0x480905,'token':_0x806de2,'type':_0x5ae422[_0x502a82(0x332)]}),!0x0;}},_0x4b3e58={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-collapse','handler'(_0x47a12c,_0x3bdd7d){const _0x2b2a4b=_0x5d1072;if(!_0x3bdd7d)return!0x1;if(!!_0x47a12c['get'](_0x374f23['IConfigService'])[_0x2b2a4b(0x19c)](_0x1e657c))return!0x0;const _0x28aeca=_0x47a12c[_0x2b2a4b(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x5a3eb3,subUnitId:_0x5bc294,pivotTableId:_0x4c2367,fieldId:_0x444978,collapse:_0x13360b,item:_0x2d984c}=_0x3bdd7d,_0x57ec1a=_0x28aeca[_0x2b2a4b(0x202)](_0x4c2367);if(!_0x57ec1a)return!0x1;_0x57ec1a[_0x2b2a4b(0x472)](_0x444978,_0x13360b,_0x2d984c);const _0xe057b=_0x28aeca[_0x2b2a4b(0x1fb)](_0x5a3eb3,_0x5bc294,_0x4c2367);return _0x378aff(_0xe057b,_0x3bdd7d),_0x28aeca['addDirtyPivotTable']({'unitId':_0x5a3eb3,'subUnitId':_0x5bc294,'token':_0x4c2367,'type':_0x5ae422[_0x2b2a4b(0x332)]}),!0x0;}},_0x9f6240={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-format','handler'(_0x25fa8d,_0x89d8aa){const _0x1bb66f=_0x5d1072;if(!_0x89d8aa)return!0x1;if(!!_0x25fa8d['get'](_0x374f23[_0x1bb66f(0x224)])[_0x1bb66f(0x19c)](_0x1e657c))return!0x0;const _0x1abcb5=_0x25fa8d[_0x1bb66f(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x11b2f9,subUnitId:_0xa5a824,pivotTableId:_0x32d733,fieldId:_0x493298,format:_0x5541bc}=_0x89d8aa,_0x19f84b=_0x1abcb5['getPivotTableInstance'](_0x32d733);if(!_0x19f84b)return!0x1;_0x19f84b['setFieldFormat'](_0x493298,_0x5541bc);const _0xbf0b8a=_0x1abcb5['getPivotTableModelConfig'](_0x11b2f9,_0xa5a824,_0x32d733);return _0x275df5(_0xbf0b8a,_0x89d8aa),_0x1abcb5[_0x1bb66f(0x1fe)]({'unitId':_0x11b2f9,'subUnitId':_0xa5a824,'token':_0x32d733,'type':_0x5ae422['Set']}),!0x0;}},_0xd9e8fb={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-filter','handler'(_0x178eb6,_0x33737f){const _0x3b4b96=_0x5d1072;if(!_0x33737f)return!0x1;if(!!_0x178eb6[_0x3b4b96(0x411)](_0x374f23['IConfigService'])['getConfig'](_0x1e657c))return!0x0;const _0x555831=_0x178eb6[_0x3b4b96(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x342b86,subUnitId:_0x50f596,pivotTableId:_0x22e02f,fieldId:_0x482584,filterInfo:_0x18e6e1}=_0x33737f,_0x1c8200=_0x555831[_0x3b4b96(0x202)](_0x22e02f);if(!_0x1c8200)return!0x1;_0x1c8200[_0x3b4b96(0x3e2)](_0x482584,_0x18e6e1);const _0x58e1fe=_0x555831[_0x3b4b96(0x1fb)](_0x342b86,_0x50f596,_0x22e02f);return _0xfcbb47(_0x58e1fe,_0x33737f),_0x555831[_0x3b4b96(0x1fe)]({'unitId':_0x342b86,'subUnitId':_0x50f596,'token':_0x22e02f,'type':_0x5ae422[_0x3b4b96(0x332)]}),!0x0;}},_0x6566df={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x366),'handler'(_0x191cec,_0x426bb8){const _0x13d434=_0x5d1072;if(!_0x426bb8)return!0x1;if(!!_0x191cec['get'](_0x374f23[_0x13d434(0x224)])[_0x13d434(0x19c)](_0x1e657c))return!0x0;const _0x2e3b4d=_0x191cec[_0x13d434(0x411)](_0x1cc2c4[_0x13d434(0x38e)]),{unitId:_0x4cea6d,subUnitId:_0x50c712,pivotTableId:_0x32f95d,options:_0x327f64}=_0x426bb8,_0x166b55=_0x2e3b4d[_0x13d434(0x202)](_0x32f95d);if(!_0x166b55)return!0x1;_0x166b55[_0x13d434(0x3bb)](_0x327f64);const _0x5a063f=_0x2e3b4d[_0x13d434(0x1fb)](_0x4cea6d,_0x50c712,_0x32f95d);return _0x4ba2f1(_0x5a063f,_0x426bb8),_0x2e3b4d['addDirtyPivotTable']({'unitId':_0x4cea6d,'subUnitId':_0x50c712,'token':_0x32f95d,'type':_0x5ae422[_0x13d434(0x332)]}),!0x0;}},_0x138786={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':_0x5d1072(0x2a3),'handler'(_0x67d966,_0x46a185){const _0x5843d2=_0x5d1072;if(!_0x46a185)return!0x1;if(!!_0x67d966[_0x5843d2(0x411)](_0x374f23['IConfigService'])[_0x5843d2(0x19c)](_0x1e657c))return!0x0;const _0x3bdb08=_0x67d966[_0x5843d2(0x411)](_0x1cc2c4[_0x5843d2(0x38e)]),{unitId:_0xb63d87,subUnitId:_0x820aa6,pivotTableId:_0x29c1f1,sortInfo:_0x4fa838,fieldId:_0x4be4a1}=_0x46a185,_0x42a154=_0x3bdb08[_0x5843d2(0x202)](_0x29c1f1);if(!_0x42a154)return!0x1;_0x42a154[_0x5843d2(0x200)](_0x4be4a1,_0x4fa838);const _0xbb6b3a=_0x3bdb08[_0x5843d2(0x1fb)](_0xb63d87,_0x820aa6,_0x29c1f1);return _0x2f7257(_0xbb6b3a,_0x46a185),_0x3bdb08[_0x5843d2(0x1fe)]({'unitId':_0xb63d87,'subUnitId':_0x820aa6,'token':_0x29c1f1,'type':_0x5ae422['Set']}),!0x0;}},_0x55c967={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-field-subtotal-type','handler'(_0x24b5c7,_0x2f795e){const _0x47b695=_0x5d1072;if(!_0x2f795e)return!0x1;if(!!_0x24b5c7[_0x47b695(0x411)](_0x374f23[_0x47b695(0x224)])[_0x47b695(0x19c)](_0x1e657c))return!0x0;const _0x5a0485=_0x24b5c7['get'](_0x1cc2c4[_0x47b695(0x38e)]),{unitId:_0x229ad1,subUnitId:_0x19d3cf,pivotTableId:_0x3eaf2d,fieldId:_0x16cf03,subtotalType:_0x11470c}=_0x2f795e,_0x2f0162=_0x5a0485[_0x47b695(0x202)](_0x3eaf2d);if(!_0x2f0162)return!0x1;_0x2f0162[_0x47b695(0x3ad)](_0x16cf03,_0x11470c);const _0x22bcfa=_0x5a0485[_0x47b695(0x1fb)](_0x229ad1,_0x19d3cf,_0x3eaf2d);return _0x5cb599(_0x22bcfa,_0x2f795e),_0x5a0485[_0x47b695(0x1fe)]({'unitId':_0x229ad1,'subUnitId':_0x19d3cf,'token':_0x3eaf2d,'type':_0x5ae422['Set']}),!0x0;}},_0x58f9b7={'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'id':_0x5d1072(0x402),'handler'(_0x1cc7d8,_0x1a26ca){const _0x37d78f=_0x5d1072;if(!_0x1a26ca)return!0x1;if(!!_0x1cc7d8[_0x37d78f(0x411)](_0x374f23['IConfigService'])[_0x37d78f(0x19c)](_0x1e657c))return!0x0;const _0x8fa12d=_0x1cc7d8['get'](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x2826d6,subUnitId:_0x96109d,pivotTableId:_0x148fcd,fieldId:_0x5a853d,filterInfo:_0x246e4a}=_0x1a26ca,_0x4da709=_0x8fa12d[_0x37d78f(0x202)](_0x148fcd);if(!_0x4da709)return!0x1;_0x4da709[_0x37d78f(0x1e7)](_0x5a853d,_0x246e4a);const _0x339866=_0x8fa12d['getPivotTableModelConfig'](_0x2826d6,_0x96109d,_0x148fcd);return _0x3a8287(_0x339866,_0x1a26ca),_0x8fa12d[_0x37d78f(0x1fe)]({'unitId':_0x2826d6,'subUnitId':_0x96109d,'token':_0x148fcd,'type':_0x5ae422[_0x37d78f(0x332)]}),!0x0;}},_0x5703ce={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x188),'handler'(_0x1e46d4,_0x3bc52e){const _0x18f979=_0x5d1072;if(!_0x3bc52e)return!0x1;if(!!_0x1e46d4[_0x18f979(0x411)](_0x374f23['IConfigService'])[_0x18f979(0x19c)](_0x1e657c))return!0x0;const _0x3b783d=_0x1e46d4[_0x18f979(0x411)](_0x1cc2c4[_0x18f979(0x38e)]),{unitId:_0x54b7f1,subUnitId:_0x73f521,pivotTableId:_0x49d472,area:_0x2266b0,index:_0x347e3b,fieldId:_0x3529dd}=_0x3bc52e,_0x45c1d9=_0x3b783d[_0x18f979(0x202)](_0x49d472);if(!_0x45c1d9)return!0x1;_0x45c1d9[_0x18f979(0x233)](_0x3529dd,_0x2266b0,_0x347e3b);const _0x4689fb=_0x3b783d[_0x18f979(0x1fb)](_0x54b7f1,_0x73f521,_0x49d472);return _0x424b6b(_0x4689fb,_0x3bc52e),_0x3b783d['addDirtyPivotTable']({'unitId':_0x54b7f1,'subUnitId':_0x73f521,'token':_0x49d472,'type':_0x5ae422[_0x18f979(0x332)]}),!0x0;}},_0x23bfb9={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.pivot-update-field-source-info','handler'(_0x1745a5,_0x5b8e0f){const _0x89f627=_0x5d1072;if(!_0x5b8e0f)return!0x1;if(!!_0x1745a5[_0x89f627(0x411)](_0x374f23[_0x89f627(0x224)])[_0x89f627(0x19c)](_0x1e657c))return!0x0;const _0x4e6a92=_0x1745a5['get'](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x182c94,subUnitId:_0x2a4840,pivotTableId:_0x5156a4,sourceName:_0x27bc67,dataFieldId:_0x4049d9,tableFieldId:_0x41cab9}=_0x5b8e0f,_0x3466ff=_0x4e6a92[_0x89f627(0x202)](_0x5156a4);if(!_0x3466ff)return!0x1;_0x3466ff['updateFieldSourceInfo'](_0x41cab9,_0x27bc67,_0x4049d9);const _0x3a7e33=_0x4e6a92[_0x89f627(0x1fb)](_0x182c94,_0x2a4840,_0x5156a4);return _0x5aff30(_0x3a7e33,_0x5b8e0f),_0x4e6a92[_0x89f627(0x1fe)]({'unitId':_0x182c94,'subUnitId':_0x2a4840,'token':_0x5156a4,'type':_0x5ae422[_0x89f627(0x332)]}),!0x0;}},_0x96a821={'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'id':'sheet.mutation.pivot-update-value-position','handler'(_0x240b13,_0xe36e8d){const _0x32baa1=_0x5d1072;if(!_0xe36e8d)return!0x1;if(!!_0x240b13[_0x32baa1(0x411)](_0x374f23[_0x32baa1(0x224)])[_0x32baa1(0x19c)](_0x1e657c))return!0x0;const _0x3a2362=_0x240b13['get'](_0x1cc2c4[_0x32baa1(0x38e)]),{unitId:_0x525863,subUnitId:_0x5625ab,pivotTableId:_0xac4a13,valuePosition:_0x12517e,index:_0x31a6b1}=_0xe36e8d,_0x2ed8d3=_0x3a2362['getPivotTableInstance'](_0xac4a13);if(!_0x2ed8d3)return!0x1;_0x2ed8d3[_0x32baa1(0x3ed)](_0x12517e,_0x31a6b1);const _0x4e07ef=_0x3a2362['getPivotTableModelConfig'](_0x525863,_0x5625ab,_0xac4a13);return _0x1e8f15(_0x4e07ef,_0xe36e8d),_0x3a2362['addDirtyPivotTable']({'unitId':_0x525863,'subUnitId':_0x5625ab,'token':_0xac4a13,'type':_0x5ae422[_0x32baa1(0x332)]}),!0x0;}};function _0x93d0f(_0x138937,_0x47b9f6,_0x23262d){const _0xc3ab06=_0x5d1072,{pivotTableId:_0x59161a,unitId:_0x10e919,subUnitId:_0x296ec1}=_0x47b9f6,_0x5f447b=[],_0x4c381f=[];for(const _0x148ccb of _0x23262d)switch(_0x148ccb['type']){case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x2e0)]:{const {fieldJson:_0x3c7f13,area:_0x6adf64,index:_0x46db62}=_0x148ccb,_0x167cf8={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldJson':_0x3c7f13,'area':_0x6adf64,'index':_0x46db62},_0x9bb242={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x3c7f13['id'],'area':_0x6adf64,'index':_0x46db62};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x33b47c['id'],'params':_0x167cf8}),_0x4c381f['unshift']({'id':_0x1c531a['id'],'params':_0x9bb242});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x2c1)]:{const {fieldId:_0x34fd61,newSubtotalType:_0x2d8aa7,oldSubtotalType:_0x5103c0}=_0x148ccb,_0x4f5213={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x34fd61,'subtotalType':_0x2d8aa7};_0x5f447b['push']({'id':_0x55c967['id'],'params':_0x4f5213});const _0x215b4d={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x34fd61,'subtotalType':_0x5103c0};_0x4c381f['unshift']({'id':_0x55c967['id'],'params':_0x215b4d});}break;case _0x2eef51[_0xc3ab06(0x462)]['RemoveField']:{const {fieldId:_0x2bd877,fieldJson:_0x42f38b,area:_0x3c134b,index:_0x55c286}=_0x148ccb,_0x47534e={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x2bd877,'index':_0x55c286,'area':_0x3c134b};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x1c531a['id'],'params':_0x47534e});const _0x248599={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldJson':_0x42f38b,'area':_0x3c134b,'index':_0x55c286};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x33b47c['id'],'params':_0x248599});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x29e)]:{const {fieldId:_0x17a447,oldName:_0x41dfdb,newName:_0xf94167}=_0x148ccb,_0x3aa685={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x17a447,'name':_0xf94167};_0x5f447b['push']({'id':_0x3a7b5e['id'],'params':_0x3aa685});const _0x5114b8={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x17a447,'name':_0x41dfdb};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x3a7b5e['id'],'params':_0x5114b8});}break;case _0x2eef51['PivotTableChangeTypeEnum'][_0xc3ab06(0x321)]:{const {fieldId:_0x4cd1df,oldFilterInfo:_0x502f83,newFilterInfo:_0x4bffec}=_0x148ccb,_0x3233fa={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x4cd1df,'filterInfo':_0x4bffec};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0xd9e8fb['id'],'params':_0x3233fa});const _0x275073={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x4cd1df,'filterInfo':_0x502f83};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0xd9e8fb['id'],'params':_0x275073});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x45a)]:{const {fieldId:_0x38a84f,oldSortInfo:_0x4a2c8b,newSortInfo:_0x218f9f}=_0x148ccb,_0x5d574c={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x38a84f,'sortInfo':_0x218f9f};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x138786['id'],'params':_0x5d574c});const _0x20d666={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x38a84f,'sortInfo':_0x4a2c8b};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x138786['id'],'params':_0x20d666});}break;case _0x2eef51['PivotTableChangeTypeEnum'][_0xc3ab06(0x339)]:{const {oldOptions:_0x3eaed3,newOptions:_0x578b09}=_0x148ccb,_0x3b2489={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'options':_0x578b09};_0x5f447b['push']({'id':_0x6566df['id'],'params':_0x3b2489});const _0x589c97={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'options':_0x3eaed3};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x6566df['id'],'params':_0x589c97});}break;case _0x2eef51[_0xc3ab06(0x462)]['UpdateFieldPosition']:{const {oldArea:_0x49a613,newArea:_0x3b0948,oldIndex:_0x25d701,newIndex:_0x2acd2a,fieldId:_0x3bcb4e}=_0x148ccb,_0x2e2e5c={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x3bcb4e,'area':_0x3b0948,'index':_0x2acd2a,'oldArea':_0x49a613,'oldIndex':_0x25d701};_0x5f447b['push']({'id':_0x5703ce['id'],'params':_0x2e2e5c});const _0x348f9b={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x3bcb4e,'area':_0x49a613,'index':_0x25d701,'oldArea':_0x3b0948,'oldIndex':_0x2acd2a};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x5703ce['id'],'params':_0x348f9b});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x228)]:{const {oldValuePosition:_0x166861,newValuePosition:_0x1d64aa,oldIndex:_0x473e62,newIndex:_0x2db0ce}=_0x148ccb,_0x41115f={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'valuePosition':_0x1d64aa,'index':_0x2db0ce};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x96a821['id'],'params':_0x41115f});const _0x3b10b1={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'valuePosition':_0x166861,'index':_0x473e62};_0x4c381f['unshift']({'id':_0x96a821['id'],'params':_0x3b10b1});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x2b0)]:{const {fieldId:_0x5f1fe6,collapse:_0x4333a2,item:_0x2bfc59}=_0x148ccb,_0x59bc99={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5f1fe6,'collapse':_0x4333a2,'item':_0x2bfc59};_0x5f447b['push']({'id':_0x4b3e58['id'],'params':_0x59bc99});const _0x2ad142={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5f1fe6,'collapse':!_0x4333a2,'item':_0x2bfc59};_0x4c381f['unshift']({'id':_0x4b3e58['id'],'params':_0x2ad142});}break;case _0x2eef51['PivotTableChangeTypeEnum'][_0xc3ab06(0x413)]:{const {newFormat:_0x49894d,oldFormat:_0x35342b,fieldId:_0x5d8500}=_0x148ccb,_0xbbd924={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5d8500,'format':_0x49894d};_0x5f447b['push']({'id':_0x9f6240['id'],'params':_0xbbd924});const _0x4604f7={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5d8500,'format':_0x35342b};_0x4c381f['unshift']({'id':_0x9f6240['id'],'params':_0x4604f7});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x21e)]:{const {tableFieldId:_0x454b54,oldSourceName:_0x1b24d1,newSourceName:_0x2a5b67,oldDataFieldId:_0x1456d6,newDataFieldId:_0x2ce558}=_0x148ccb,_0x46ae45={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'tableFieldId':_0x454b54,'sourceName':_0x2a5b67,'dataFieldId':_0x2ce558};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x23bfb9['id'],'params':_0x46ae45});const _0x232ae5={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'tableFieldId':_0x454b54,'sourceName':_0x1b24d1,'dataFieldId':_0x1456d6};_0x4c381f['unshift']({'id':_0x23bfb9['id'],'params':_0x232ae5});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x42e)]:{const {fieldId:_0x599094,filterInfo:_0xba38db,oldFilterInfo:_0x17d298}=_0x148ccb,_0x5705a1={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x599094,'filterInfo':_0xba38db};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x58f9b7['id'],'params':_0x5705a1});const _0x5a8f80={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x599094,'filterInfo':_0x17d298};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x58f9b7['id'],'params':_0x5a8f80});}}return{'redos':_0x5f447b,'undos':_0x4c381f};}function _0x1bde9c(_0x284fdb,_0x26bba8){const _0x1ea733=_0x5d1072;var _0xaeb5be;const _0x130942=_0x284fdb[_0x1ea733(0x411)](_0x1cc2c4[_0x1ea733(0x3f9)]),{cellInfo:_0x9bb308,view:_0x237270,isEmpty:_0x7f3ae0}=_0x26bba8;return(_0xaeb5be=_0x130942[_0x1ea733(0x199)][_0x1ea733(0x3ea)](_0x1b27ae)(_0x3f9a5f,{'cellInfo':_0x9bb308,'view':_0x237270,'isEmpty':_0x7f3ae0}))!=null?_0xaeb5be:_0x3f9a5f;}const _0x4bfc01={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.add-pivot-field',async 'handler'(_0x4374e7,_0x57501e){const _0x525c5=_0x5d1072;if(!_0x57501e)return!0x1;const _0x4a2ca9=_0x4374e7[_0x525c5(0x411)](_0x374f23['ICommandService']),_0x403625=_0x4374e7[_0x525c5(0x411)](_0x1cc2c4['SheetsPivotRPCService']),_0x6afd41=_0x4374e7[_0x525c5(0x411)](_0x374f23['IUndoRedoService']),{pivotTableId:_0x3e2979,dataFieldId:_0x35b2d3,fieldArea:_0x2d5e08,index:_0x12cbbc,unitId:_0x36b763,subUnitId:_0x470188}=_0x57501e,_0x46c16f=(await _0x403625[_0x525c5(0x291)]({'unitId':_0x36b763,'subUnitId':_0x470188,'pivotTableId':_0x3e2979,'params':{'type':_0x5370e2['AddPivotField'],'addPivotField':{'dataFieldId':_0x35b2d3,'fieldArea':_0x2d5e08,'index':_0x12cbbc}}}))[_0x525c5(0x3de)][_0x525c5(0x3e7)];if(!_0x46c16f)return!0x1;const {view:_0x3d3ecb,changesets:_0x335577,isEmpty:_0x4da9ea,pivotTableConfig:_0xc0dd26,shouldBeAddedGroupJSON:_0x2f5170}=_0x46c16f,_0x49123b=_0xc0dd26[_0x525c5(0x357)],_0x11417f=new _0x2eef51['PivotView']();_0x11417f[_0x525c5(0x1a8)](_0x3d3ecb);const _0x2a9dfa={'cellInfo':_0x49123b,'view':_0x11417f,'isEmpty':_0x4da9ea};if(!await _0x4374e7[_0x525c5(0x411)](_0x1cc2c4['SheetsPivotTableService'])[_0x525c5(0x24d)][_0x525c5(0x3a5)](_0x460ff6)(!0x0,_0x2a9dfa))return!0x1;const _0x483e90=_0x20a5db(_0x4374e7,_0x11417f,_0x49123b,_0x4da9ea),_0x3d792b=_0x1bde9c(_0x4374e7,_0x2a9dfa),{undos:_0x33ab59,redos:_0xd64a9d}=_0x93d0f(_0x4a2ca9,{'pivotTableId':_0x3e2979,'unitId':_0x36b763,'subUnitId':_0x470188},_0x335577);return _0x2f5170&&(_0xd64a9d[_0x525c5(0x31c)]({'id':_0x2dc301['id'],'params':{'pivotTableId':_0x3e2979,'fieldJSON':_0x2f5170,'unitId':_0x36b763,'subUnitId':_0x470188}}),_0x33ab59[_0x525c5(0x27b)]({'id':_0x1b4e8f['id'],'params':{'pivotTableId':_0x3e2979,'dataFieldId':_0x2f5170['id'],'unitId':_0x36b763,'subUnitId':_0x470188}})),_0x374f23[_0x525c5(0x203)]([..._0x483e90[_0x525c5(0x451)],..._0x3d792b[_0x525c5(0x451)],..._0xd64a9d],_0x4a2ca9),_0x6afd41[_0x525c5(0x2c7)]({'unitID':_0x36b763,'redoMutations':[..._0x483e90[_0x525c5(0x451)],..._0x3d792b[_0x525c5(0x451)],..._0xd64a9d],'undoMutations':[..._0x483e90[_0x525c5(0x252)],..._0x3d792b[_0x525c5(0x252)],..._0x33ab59]}),!0x0;}},_0x5e3456=()=>typeof process<'u'&&process[_0x5d1072(0x3da)]!=null&&process[_0x5d1072(0x3da)][_0x5d1072(0x474)]!=null,_0x1a650d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x43f),'handler'(_0x1d05bb,_0x14d16c){const _0x3f64bb=_0x5d1072;var _0x451365;if(!_0x14d16c)return!0x1;const _0x3ca5ad=_0x1d05bb[_0x3f64bb(0x411)](_0x374f23['IConfigService']);if(!!_0x3ca5ad[_0x3f64bb(0x19c)](_0x1e657c))return!0x0;const _0x56301e=_0x1d05bb['get'](_0x374f23[_0x3f64bb(0x1d8)]),_0x565c3e=_0x1d05bb[_0x3f64bb(0x411)](_0x1cc2c4[_0x3f64bb(0x38e)]),{pivotTableId:_0x24cd13,pivotTableConfig:_0x57f398,collectionConfig:_0xbc8ae5,unitId:_0x25c027,subUnitId:_0x30aaf6}=_0x14d16c,{sourceRangeInfo:_0x3f4663,fieldsConfig:_0x39486c,targetCellInfo:_0x131fa6}=_0x57f398,_0x42f0f2=_0x56301e['getUnit'](_0x25c027);if(!_0x42f0f2||!_0x42f0f2['getSheetBySheetId'](_0x30aaf6))return!0x1;if(!_0x5e3456()){let _0x238137=0x0;_0x42f0f2[_0x3f64bb(0x401)]()[_0x3f64bb(0x274)](_0x193267=>{const _0xc03fb8=_0x3f64bb;var _0x4a1d83,_0x39443f;_0x238137+=(_0x39443f=(_0x4a1d83=_0x565c3e[_0xc03fb8(0x239)](_0x25c027,_0x193267[_0xc03fb8(0x300)]()))==null?void 0x0:_0x4a1d83[_0xc03fb8(0x249)])!=null?_0x39443f:0x0;});const _0x547d65=(_0x451365=_0x3ca5ad['getConfig'](_0x2169aa['LS_CONFIG_KEY']))!=null?_0x451365:{},{ls:_0x34108b,pbk:_0x343caf}=_0x547d65;if(!_0x122880(_0x34108b,_0x343caf))throw new _0x374f23['CustomCommandExecutionError'](_0x3f64bb(0x2ce));const _0x3c32b9=_0x43fd63(_0x5639c4,_0x34108b,_0x343caf)[_0x3f64bb(0x1a5)];if(_0x238137>=_0x3c32b9)throw new _0x374f23[(_0x3f64bb(0x431))]('limit\x20pivot');}if(!_0xbc8ae5||!_0x39486c)return!0x1;const {collection:_0x4501ce,updateDataFieldList:_0x2dfcf9}=_0x565c3e[_0x3f64bb(0x2b4)](_0x24cd13,_0xbc8ae5,_0x3f4663,_0x131fa6);_0x565c3e['refreshData'](_0x4501ce,_0x2dfcf9,_0x3f4663);const _0x3f8294=new _0x2eef51['PivotTable'](_0x4501ce,void 0x0,_0x24cd13);_0x3f8294[_0x3f64bb(0x328)](_0x39486c);const _0x364646=JSON[_0x3f64bb(0x2ab)](JSON[_0x3f64bb(0x22c)](_0x57f398));return _0x565c3e[_0x3f64bb(0x42c)](_0x25c027,_0x30aaf6,_0x24cd13,_0x3f8294,_0x364646),_0x565c3e['addDirtyPivotTable']({'unitId':_0x25c027,'subUnitId':_0x30aaf6,'token':_0x24cd13,'type':_0x5ae422[_0x3f64bb(0x395)],'pivotConfig':_0x364646}),!0x0;}},_0x1cee8d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x2df),async 'handler'(_0x1ae319,_0x3edd1c){const _0x4543d7=_0x5d1072;if(!_0x3edd1c)return!0x1;const {sourceDataInfo:_0x31e631,pivotTableConfig:_0x477ad7}=_0x3edd1c;if(!_0x31e631||!_0x477ad7)return!0x1;const {unitId:_0x152373,subUnitId:_0x3a2301,range:_0x39e5c7}=_0x31e631,_0x3b5d94=_0x1ae319['get'](_0x374f23[_0x4543d7(0x1d8)]),_0x35a999=_0x1ae319[_0x4543d7(0x411)](_0x1cc2c4[_0x4543d7(0x333)]),_0x23ae2b=_0x1ae319[_0x4543d7(0x411)](_0x374f23[_0x4543d7(0x3cd)]),_0x498d3c=_0x1ae319['get'](_0x374f23[_0x4543d7(0x386)]),_0x32cd83=_0x3b5d94[_0x4543d7(0x2f2)](_0x152373);if(!_0x32cd83)return!0x1;const _0x4c69f=_0x32cd83[_0x4543d7(0x317)](_0x3a2301);if(!_0x4c69f)return!0x1;const _0x43e83e=_0x2eef51[_0x4543d7(0x39d)](0x8),_0x5bc509=_0x39e5c7||{'startRow':0x0,'startColumn':0x0,'endRow':_0x4c69f[_0x4543d7(0x46e)]()-0x1,'endColumn':_0x4c69f[_0x4543d7(0x281)]()-0x1};_0x5bc509['rangeType']=_0x374f23['RANGE_TYPE'][_0x4543d7(0x37b)];const _0x17137d=(await _0x35a999['getPivotDisplayConfig']({'unitId':_0x152373,'subUnitId':_0x3a2301,'pivotTableId':_0x43e83e,'params':{'type':_0x5370e2['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x152373,'sheetName':_0x4c69f['getName'](),'subUnitId':_0x3a2301,'range':_0x5bc509},'pivotTableId':_0x43e83e,'pivotTableIndexConfig':_0x477ad7}}}))[_0x4543d7(0x3de)]['addPivotTableWithConfig'];if(!_0x17137d)return!0x1;const {isEmpty:_0x5a5171,fieldsConfig:_0x3239b8,collectionConfig:_0x1b75b2,changesets:_0x22a0d7}=_0x17137d,_0x3c7088=_0x32cd83[_0x4543d7(0x401)]()['length'],_0x5bb12a=_0x374f23['mergeWorksheetSnapshotWithDefault']({'rowCount':_0x4c69f[_0x4543d7(0x46e)]()-0x1,'columnCount':_0x4c69f[_0x4543d7(0x281)]()-0x1});_0x5bb12a['id']=_0x374f23[_0x4543d7(0x407)](),_0x5bb12a['name']=_0x32cd83[_0x4543d7(0x44c)](''+_0x23ae2b['t'](_0x4543d7(0x365)));const _0x40b44d={'index':_0x3c7088,'sheet':_0x5bb12a,'unitId':_0x152373},{redos:_0x607ad1}=_0x93d0f(_0x498d3c,{'pivotTableId':_0x43e83e,'unitId':_0x152373,'subUnitId':_0x5bb12a['id']},_0x22a0d7),_0x520c38=[{'id':_0x24a2a7[_0x4543d7(0x379)]['id'],'params':_0x40b44d},{'id':_0x1a650d['id'],'params':{'unitId':_0x152373,'subUnitId':_0x5bb12a['id'],'pivotTableId':_0x43e83e,'pivotTableConfig':{'isEmpty':_0x5a5171,'fieldsConfig':_0x3239b8,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x152373,'subUnitId':_0x5bb12a['id']},'sourceRangeInfo':{'subUnitId':_0x3a2301,'unitId':_0x152373,'range':_0x5bc509,'sheetName':_0x4c69f[_0x4543d7(0x353)]()}},'collectionConfig':_0x1b75b2}},..._0x607ad1];return _0x374f23['sequenceExecute'](_0x520c38,_0x498d3c),!0x0;}},_0x2f23f0={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x208),'handler'(_0x1dace8,_0x667b81){const _0x4eb055=_0x5d1072;if(!_0x667b81)return!0x1;if(!!_0x1dace8[_0x4eb055(0x411)](_0x374f23['IConfigService'])[_0x4eb055(0x19c)](_0x1e657c))return!0x0;const {pivotTableId:_0x4930b6,unitId:_0x41f1c6,subUnitId:_0x384e1e}=_0x667b81,_0x1cfa12=_0x1dace8[_0x4eb055(0x411)](_0x1cc2c4[_0x4eb055(0x38e)]);return _0x1cfa12[_0x4eb055(0x458)](_0x41f1c6,_0x384e1e,_0x4930b6)?(_0x1cfa12['addDirtyPivotTable']({'unitId':_0x41f1c6,'subUnitId':_0x384e1e,'token':_0x4930b6,'type':_0x5ae422[_0x4eb055(0x36a)]}),_0x1cfa12[_0x4eb055(0x46d)](_0x41f1c6,_0x384e1e,_0x4930b6),!0x0):!0x1;}},_0x54fb2d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x331),async 'handler'(_0x2706fc,_0x14cb32){const _0x4b0f42=_0x5d1072;var _0x19d3fb,_0x2d9b6a;const _0x2e713f=_0x2706fc['get'](_0x374f23[_0x4b0f42(0x386)]),_0x5da7c6=_0x2706fc[_0x4b0f42(0x411)](_0x374f23['IUniverInstanceService']),_0x3163dc=_0x2706fc['get'](_0x374f23[_0x4b0f42(0x3cd)]),_0xbc7d7e=_0x2706fc[_0x4b0f42(0x411)](_0x1cc2c4[_0x4b0f42(0x333)]),_0xfa15dc=_0x2706fc['get'](_0x374f23[_0x4b0f42(0x284)]),_0x3cfb0a=_0x2706fc[_0x4b0f42(0x411)](_0x1cc2c4[_0x4b0f42(0x1ea)]),_0xe1ac02=_0x2706fc[_0x4b0f42(0x411)](_0x374f23[_0x4b0f42(0x224)]);if(!_0x14cb32)return!0x1;const {pivotTableConfig:_0x5af6d2,positionType:_0x445f04}=_0x14cb32,{targetCellInfo:_0x140b5e,sourceRangeInfo:_0x418f4f}=_0x5af6d2,{unitId:_0x168378,subUnitId:_0x3f034c}=_0x140b5e,_0x154a77=_0x5da7c6[_0x4b0f42(0x2f2)](_0x168378);if(!_0x154a77)return!0x1;let _0x4a4855=0x0;_0x154a77[_0x4b0f42(0x401)]()[_0x4b0f42(0x274)](_0x3a82f6=>{const _0x28c490=_0x4b0f42;var _0x58cd56,_0x47f476;_0x4a4855+=(_0x47f476=(_0x58cd56=_0x3cfb0a[_0x28c490(0x239)](_0x168378,_0x3a82f6['getSheetId']()))==null?void 0x0:_0x58cd56[_0x28c490(0x249)])!=null?_0x47f476:0x0;});const _0x419342=(_0x19d3fb=_0xe1ac02[_0x4b0f42(0x19c)](_0x2169aa[_0x4b0f42(0x442)]))!=null?_0x19d3fb:{},{ls:_0x43b0e5,pbk:_0x1e5539}=_0x419342;if(!_0x122880(_0x43b0e5,_0x1e5539))return!0x1;const _0x544891=_0x43fd63(_0x5639c4,_0x43b0e5,_0x1e5539)[_0x4b0f42(0x1a5)];if(_0x4a4855>=_0x544891)return!0x1;const _0x32f8f8=_0x14cb32['pivotTableId']||_0x2eef51[_0x4b0f42(0x39d)](0x8),_0x204cd2=(await _0xbc7d7e['getPivotDisplayConfig']({'unitId':_0x168378,'subUnitId':_0x3f034c,'pivotTableId':_0x32f8f8,'params':{'type':_0x5370e2[_0x4b0f42(0x358)],'addPivotTable':{'sourceRangeInfo':_0x418f4f,'pivotTableId':_0x32f8f8}}}))[_0x4b0f42(0x3de)]['addPivotTable'];if(!_0x204cd2)return!0x1;const {view:_0x12644d,isEmpty:_0x39428f,fieldsConfig:_0x2669c4,collectionConfig:_0x131d0f}=_0x204cd2,_0x379b74=[],_0x18177a=[];if(_0x445f04===_0x55d455['New']){const _0x1dd2d4=_0x154a77[_0x4b0f42(0x401)]()[_0x4b0f42(0x468)],_0x5e330e=_0x374f23[_0x4b0f42(0x1f3)]({});_0x5e330e['id']=_0x5af6d2['targetCellInfo'][_0x4b0f42(0x294)],_0x5e330e[_0x4b0f42(0x432)]=(_0x2d9b6a=_0x5af6d2['targetCellInfo'][_0x4b0f42(0x376)])!=null?_0x2d9b6a:_0x154a77[_0x4b0f42(0x44c)](''+_0x3163dc['t'](_0x4b0f42(0x365)));const _0x4eac09={'index':_0x1dd2d4,'sheet':_0x5e330e,'unitId':_0x168378},_0x418cfd=_0x24a2a7[_0x4b0f42(0x32d)](_0x2706fc,_0x4eac09);_0x379b74[_0x4b0f42(0x27b)]({'id':_0x24a2a7[_0x4b0f42(0x2d2)]['id'],'params':_0x418cfd}),_0x18177a['push']({'id':_0x24a2a7['InsertSheetMutation']['id'],'params':_0x4eac09});}else{if(!_0x154a77['getSheetBySheetId'](_0x3f034c))return!0x1;const _0x486915=_0x20a5db(_0x2706fc,new _0x2eef51[(_0x4b0f42(0x28f))](),_0x140b5e,!0x0);_0x18177a[_0x4b0f42(0x27b)](..._0x486915['redos']),_0x379b74[_0x4b0f42(0x27b)](..._0x486915[_0x4b0f42(0x252)]);const _0x438764={'cellInfo':_0x140b5e,'view':_0x12644d,'isEmpty':_0x39428f};if(!await _0x2706fc[_0x4b0f42(0x411)](_0x1cc2c4[_0x4b0f42(0x3f9)])[_0x4b0f42(0x24d)][_0x4b0f42(0x3a5)](_0x460ff6)(!0x0,_0x438764))return!0x1;const _0x45fe5b=_0x1bde9c(_0x2706fc,_0x438764);_0x18177a[_0x4b0f42(0x27b)](..._0x45fe5b['redos']),_0x379b74[_0x4b0f42(0x27b)](..._0x45fe5b[_0x4b0f42(0x252)]);}return _0x18177a[_0x4b0f42(0x27b)]({'id':_0x1a650d['id'],'params':{'unitId':_0x140b5e['unitId'],'subUnitId':_0x140b5e[_0x4b0f42(0x294)],'pivotTableId':_0x32f8f8,'pivotTableConfig':{'targetCellInfo':_0x140b5e,'sourceRangeInfo':_0x418f4f,'fieldsConfig':_0x2669c4},'collectionConfig':_0x131d0f}}),_0x379b74[_0x4b0f42(0x31c)]({'id':_0x2f23f0['id'],'params':{'unitId':_0x168378,'subUnitId':_0x3f034c,'pivotTableId':_0x32f8f8}}),_0x374f23[_0x4b0f42(0x203)](_0x18177a,_0x2e713f)&&_0xfa15dc['pushUndoRedo']({'unitID':_0x168378,'undoMutations':_0x379b74,'redoMutations':_0x18177a}),!0x0;}},_0x225bd3={'type':_0x374f23['CommandType'][_0x5d1072(0x2fe)],'id':'sheet.command.move-pivot-field',async 'handler'(_0x500223,_0xd170ee){const _0x1d4133=_0x5d1072;if(!_0xd170ee)return!0x1;const _0x2da340=_0x500223['get'](_0x374f23[_0x1d4133(0x386)]),_0x5401ff=_0x500223['get'](_0x1cc2c4[_0x1d4133(0x333)]),_0x1511ec=_0x500223[_0x1d4133(0x411)](_0x374f23['IUndoRedoService']),{pivotTableId:_0x2b88e4,fieldId:_0x246cf9,area:_0x2da65c,index:_0x109c1f,unitId:_0x4cfe36,subUnitId:_0x43a69a}=_0xd170ee,_0x31dc41=(await _0x5401ff[_0x1d4133(0x291)]({'unitId':_0x4cfe36,'subUnitId':_0x43a69a,'pivotTableId':_0x2b88e4,'params':{'type':_0x5370e2[_0x1d4133(0x3a0)],'movePivotField':{'fieldId':_0x246cf9,'area':_0x2da65c,'index':_0x109c1f}}}))['result']['movePivotField'];if(!_0x31dc41)return!0x1;const {changesets:_0x929037,view:_0x3af54b,isEmpty:_0x1c3839,pivotTableConfig:_0x1f245c}=_0x31dc41,_0x2d3bd4=_0x1f245c['targetCellInfo'],_0x21c44c=new _0x2eef51['PivotView']();_0x21c44c[_0x1d4133(0x1a8)](_0x3af54b);const _0x443ecf={'cellInfo':_0x2d3bd4,'view':_0x21c44c,'isEmpty':_0x1c3839};if(!await _0x500223[_0x1d4133(0x411)](_0x1cc2c4[_0x1d4133(0x3f9)])[_0x1d4133(0x24d)][_0x1d4133(0x3a5)](_0x460ff6)(!0x0,_0x443ecf))return!0x1;const _0x4fb4f7=_0x20a5db(_0x500223,_0x21c44c,_0x2d3bd4,_0x1c3839),_0x2719c7=_0x1bde9c(_0x500223,_0x443ecf),{redos:_0x4e33e2,undos:_0x948966}=_0x93d0f(_0x2da340,{'pivotTableId':_0x2b88e4,'unitId':_0x4cfe36,'subUnitId':_0x43a69a},_0x929037);return _0x374f23[_0x1d4133(0x203)]([..._0x4fb4f7[_0x1d4133(0x451)],..._0x2719c7[_0x1d4133(0x451)],..._0x4e33e2],_0x2da340),_0x1511ec[_0x1d4133(0x2c7)]({'unitID':_0x4cfe36,'redoMutations':[..._0x4fb4f7[_0x1d4133(0x451)],..._0x2719c7[_0x1d4133(0x451)],..._0x4e33e2],'undoMutations':[..._0x4fb4f7[_0x1d4133(0x252)],..._0x2719c7[_0x1d4133(0x252)],..._0x948966]}),!0x0;}},_0x24c983={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x36d),'handler'(_0x43691f,_0x5e07e6){const _0x4d5add=_0x5d1072;if(!_0x5e07e6)return!0x1;if(!!_0x43691f[_0x4d5add(0x411)](_0x374f23['IConfigService'])[_0x4d5add(0x19c)](_0x1e657c))return!0x0;const {pivotTableId:_0x2a781a,targetCellPosition:_0x23262a,unitId:_0x1c3370,subUnitId:_0x50c7ab}=_0x5e07e6,_0x4238b5=_0x43691f[_0x4d5add(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']);if(!_0x4238b5[_0x4d5add(0x202)](_0x5e07e6[_0x4d5add(0x280)]))return!0x1;const _0x59426c=_0x4238b5[_0x4d5add(0x1c8)](_0x2a781a);if(!_0x59426c)return!0x1;const _0x1b9d7a=_0x4238b5[_0x4d5add(0x43d)](_0x59426c['unitId'],_0x5e07e6[_0x4d5add(0x280)]);if(!_0x1b9d7a)return!0x1;const _0x2cdc2a=_0x4238b5[_0x4d5add(0x458)](_0x59426c[_0x4d5add(0x29a)],_0x59426c[_0x4d5add(0x294)],_0x2a781a);if(!_0x2cdc2a)return!0x1;const _0x338efd=_0x374f23[_0x4d5add(0x3c1)][_0x4d5add(0x191)](_0x2cdc2a);_0x338efd[_0x4d5add(0x357)]={'unitId':_0x1c3370,'subUnitId':_0x50c7ab,'row':_0x23262a[_0x4d5add(0x23e)],'col':_0x23262a[_0x4d5add(0x434)]};const _0x3e863f=_0x1b9d7a[_0x4d5add(0x3ff)]();if(_0x59426c[_0x4d5add(0x294)]===_0x50c7ab&&_0x59426c[_0x4d5add(0x29a)]===_0x1c3370)_0x4238b5[_0x4d5add(0x2e5)](_0x1c3370,_0x50c7ab,_0x2a781a,_0x338efd),_0x4238b5[_0x4d5add(0x1fe)]({'unitId':_0x1c3370,'subUnitId':_0x50c7ab,'token':_0x2a781a,'type':_0x5ae422['Set']});else{_0x4238b5[_0x4d5add(0x1fe)]({'unitId':_0x59426c[_0x4d5add(0x29a)],'subUnitId':_0x59426c[_0x4d5add(0x294)],'token':_0x2a781a,'type':_0x5ae422[_0x4d5add(0x36a)]}),_0x4238b5[_0x4d5add(0x46d)](_0x59426c[_0x4d5add(0x29a)],_0x59426c['subUnitId'],_0x2a781a);const _0x298ae5=_0x4238b5[_0x4d5add(0x2b4)](_0x2a781a,_0x3e863f,_0x2cdc2a['sourceRangeInfo'],_0x338efd[_0x4d5add(0x357)]),_0xfe3252=new _0x2eef51['PivotTable'](_0x298ae5[_0x4d5add(0x1ff)],void 0x0,_0x2a781a);_0xfe3252[_0x4d5add(0x328)](_0x338efd[_0x4d5add(0x3b6)]),_0x4238b5['addPivotTable'](_0x1c3370,_0x50c7ab,_0x2a781a,_0xfe3252,_0x338efd),_0x4238b5['addDirtyPivotTable']({'unitId':_0x1c3370,'subUnitId':_0x50c7ab,'token':_0x2a781a,'type':_0x5ae422[_0x4d5add(0x395)],'pivotConfig':_0x338efd});}return!0x0;}},_0x4007f1={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.move-pivot-table','handler':(_0x22aebe,_0x5e5f43)=>{const _0x240136=_0x5d1072,_0x428534=_0x22aebe['get'](_0x374f23[_0x240136(0x386)]),_0x480d3b=_0x22aebe[_0x240136(0x411)](_0x374f23['IUndoRedoService']),_0x2fb943=_0x22aebe[_0x240136(0x411)](_0x1cc2c4['SheetsPivotTableConfigModel']),_0x98032=_0x22aebe['get'](_0x374f23['IUniverInstanceService']);if(!_0x5e5f43)return!0x1;const _0x1eedbe=_0x24a2a7[_0x240136(0x1db)](_0x98032);if(!_0x1eedbe)return!0x1;const {unitId:_0x280c48,subUnitId:_0x3de5a9,workbook:_0x420f2e}=_0x1eedbe,_0x4e139f=_0x2fb943['getPivotTableConfig'](_0x5e5f43[_0x240136(0x1e0)]['unitId'],_0x5e5f43['originTargetInfo'][_0x240136(0x294)],_0x5e5f43[_0x240136(0x280)]);if(!_0x4e139f)return!0x1;const _0xa0a30f=_0x420f2e[_0x240136(0x317)](_0x5e5f43[_0x240136(0x357)][_0x240136(0x294)]);if(!_0xa0a30f)throw new Error(_0x240136(0x391));const _0x2eaf3a=_0xa0a30f[_0x240136(0x46e)](),_0x5c1cfd=_0xa0a30f[_0x240136(0x281)]();if(_0x5e5f43['targetCellInfo'][_0x240136(0x23e)]>_0x2eaf3a||_0x5e5f43['targetCellInfo'][_0x240136(0x434)]>_0x5c1cfd)throw new Error(_0x240136(0x204));const _0x3c126c=[{'id':_0x24c983['id'],'params':{'unitId':_0x280c48,'subUnitId':_0x5e5f43[_0x240136(0x357)][_0x240136(0x294)],'pivotTableId':_0x5e5f43[_0x240136(0x280)],'targetCellPosition':{'row':_0x5e5f43[_0x240136(0x357)][_0x240136(0x23e)],'col':_0x5e5f43[_0x240136(0x357)]['col']}}}],_0x3e0d55=[{'id':_0x24c983['id'],'params':{'unitId':_0x280c48,'subUnitId':_0x3de5a9,'pivotTableId':_0x5e5f43['pivotTableId'],'targetCellPosition':{'row':_0x4e139f[_0x240136(0x357)][_0x240136(0x23e)],'col':_0x4e139f[_0x240136(0x357)][_0x240136(0x434)]}}}];return _0x374f23[_0x240136(0x203)](_0x3c126c,_0x428534)&&_0x480d3b[_0x240136(0x2c7)]({'unitID':_0x280c48,'undoMutations':_0x3e0d55,'redoMutations':_0x3c126c}),!0x0;}},_0x1b9cf3={'type':_0x374f23['CommandType'][_0x5d1072(0x2fe)],'id':_0x5d1072(0x312),async 'handler'(_0x1e6441,_0x32acb7){const _0x3ec393=_0x5d1072;var _0x1052b9;if(!_0x32acb7)return!0x1;const _0x12117e=_0x1e6441['get'](_0x374f23['IUniverInstanceService']),_0x2cfc90=_0x24a2a7['getSheetCommandTarget'](_0x12117e);if(!_0x2cfc90)return!0x1;const {unitId:_0x13e420,subUnitId:_0x4fde33,workbook:_0x17ee73}=_0x2cfc90,{row:_0x27338a,col:_0x49c8f7}=_0x32acb7,_0x55dbd9=_0x1e6441['get'](_0x1cc2c4[_0x3ec393(0x3ba)]),_0x37daa7=_0x55dbd9[_0x3ec393(0x445)](_0x13e420,_0x4fde33,_0x27338a,_0x49c8f7);if(!_0x37daa7)return!0x1;const _0x57e00e=(_0x1052b9=_0x55dbd9['getPivotItemRenderInfoCache'](_0x13e420,_0x4fde33,_0x37daa7))==null?void 0x0:_0x1052b9[_0x3ec393(0x3db)];if(!_0x57e00e)return!0x1;const _0x3498e3=_0x1e6441['get'](_0x1cc2c4[_0x3ec393(0x1ea)])[_0x3ec393(0x458)](_0x13e420,_0x4fde33,_0x37daa7);if(!_0x3498e3)return!0x1;const {rowInfo:_0xa17c75,colInfo:_0x21f809}=_0x57e00e,_0x4a2c13=_0xa17c75[_0x27338a][_0x3ec393(0x3ae)],_0x43dc8a=_0x21f809[_0x49c8f7]['paths'],_0x1df90c=_0xa17c75[_0x27338a][_0x3ec393(0x2c4)],_0x2fe281=_0x21f809[_0x49c8f7][_0x3ec393(0x2c4)],_0x2b6697=_0x4a2c13[_0x3ec393(0x361)](_0x43dc8a),_0x39ac99=_0x3498e3[_0x3ec393(0x3b6)]['rowFields']['slice'](0x0,_0x1df90c),_0x1f541c=_0x3498e3[_0x3ec393(0x3b6)][_0x3ec393(0x3a1)][_0x3ec393(0x23a)](0x0,_0x2fe281),_0x190d16=_0x39ac99[_0x3ec393(0x361)](_0x1f541c),_0x4ef5d5=_0x2b6697['map']((_0x5dfcc0,_0x15f5f5)=>[_0x5dfcc0,_0x190d16[_0x15f5f5]]),_0x1525da=(await _0x1e6441[_0x3ec393(0x411)](_0x1cc2c4[_0x3ec393(0x333)])['getPivotDisplayConfig']({'unitId':_0x13e420,'subUnitId':_0x4fde33,'pivotTableId':_0x37daa7,'params':{'type':_0x5370e2[_0x3ec393(0x42f)],'drillDown':{'tuple':_0x4ef5d5}}}))[_0x3ec393(0x3de)][_0x3ec393(0x2d8)];if(!_0x1525da)return!0x1;const {indexes:_0x99aa67,range:_0x37c112,sourceUnitId:_0x12473f,sourceSubUnitId:_0x1135e9,formatMap:_0x340540}=_0x1525da,{startRow:_0x443b9f,endRow:_0x2a80ec,startColumn:_0x359464,endColumn:_0x4db50c}=_0x37c112,_0x5e28fb=new _0x374f23[(_0x3ec393(0x33b))](),_0x400d78=_0x2a80ec-_0x443b9f,_0x152211=_0x4db50c-_0x359464,_0xf83160={},_0x23bd0a=_0x24a2a7[_0x3ec393(0x1db)](_0x12117e,{'unitId':_0x12473f,'subUnitId':_0x1135e9});if(!_0x23bd0a)return!0x1;const _0x33650f=_0x1ed179['colStyle'],_0xaff928=_0x1ed179[_0x3ec393(0x483)],_0x4abf5d=_0x1ed179[_0x3ec393(0x483)],_0x49350d=_0x17ee73[_0x3ec393(0x26a)]()[_0x3ec393(0x388)](_0x33650f),_0x2e4842=_0x17ee73[_0x3ec393(0x26a)]()[_0x3ec393(0x388)](_0xaff928),_0x43911a=_0x17ee73['getStyles']()[_0x3ec393(0x388)](_0x4abf5d),{worksheet:_0x3d51d5}=_0x23bd0a;let _0x1ba05b=0x0;const _0x5d78b3=0x1;_0x99aa67[_0x3ec393(0x274)](_0x4b81a0=>{const _0x37b475=_0x3ec393;for(let _0x5355ef=0x0;_0x5355ef<=_0x4db50c-_0x359464;_0x5355ef++)_0x5e28fb[_0x37b475(0x388)](_0x1ba05b,_0x5355ef,_0x3d51d5[_0x37b475(0x181)](_0x4b81a0+_0x37c112['startRow']+_0x5d78b3,_0x5355ef));_0x1ba05b++;});for(let _0x4b717b=_0x359464;_0x4b717b<=_0x4db50c;_0x4b717b++){const _0x1a1907=_0x3d51d5[_0x3ec393(0x181)](_0x443b9f,_0x4b717b);_0xf83160[_0x443b9f]||(_0xf83160[_0x443b9f]={}),_0xf83160[_0x443b9f][_0x4b717b]={..._0x1a1907,'s':_0x49350d};}let _0x51c8cc=0x1;const _0x1fe67c={},_0x135634={};_0x5e28fb[_0x3ec393(0x19f)]((_0x28d196,_0xfe13f)=>{const _0xe0f1a7=_0x3ec393;_0xfe13f[_0xe0f1a7(0x274)](_0x53a861=>{const _0x5104f5=_0xe0f1a7,_0x3c39c0=_0x5e28fb[_0x5104f5(0x216)](_0x28d196,_0x53a861);if(_0xf83160[_0x51c8cc]||(_0xf83160[_0x51c8cc]={}),_0xf83160[_0x51c8cc][_0x53a861]={..._0x3c39c0,'s':_0x51c8cc%0x2===0x0?_0x43911a:_0x2e4842},_0x340540[_0x53a861]&&_0x28d196>=0x0){const _0x10666e=_0x51c8cc%0x2===0x0;let _0x2ad2c2=_0x10666e?_0x135634[_0x53a861]:_0x1fe67c[_0x53a861];_0x2ad2c2||(_0x2ad2c2=_0x17ee73['getStyles']()[_0x5104f5(0x388)]({..._0x10666e?_0x4abf5d:_0xaff928,'n':{'pattern':_0x340540[_0x53a861]}}),_0x10666e?_0x135634[_0x53a861]=_0x2ad2c2:_0x1fe67c[_0x53a861]=_0x2ad2c2),_0xf83160[_0x51c8cc][_0x53a861]['s']=_0x2ad2c2;}}),_0x51c8cc++;});const _0x5651ab=new _0x374f23[(_0x3ec393(0x33b))](_0xf83160),_0x8228ce={};_0x5651ab[_0x3ec393(0x1d1)]((_0x5960b3,_0x2d7c94,_0x362ce9)=>{_0x8228ce[_0x5960b3]||(_0x8228ce[_0x5960b3]={}),_0x8228ce[_0x5960b3][_0x2d7c94]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x2745b5=[],_0x4dd6de=[],_0x1a46f5=_0x17ee73['getSheets']()[_0x3ec393(0x468)],_0x3d1b19=_0x374f23[_0x3ec393(0x1f3)]({'rowCount':Math[_0x3ec393(0x275)](_0x374f23['DEFAULT_WORKSHEET_ROW_COUNT'],_0x400d78+0xa),'columnCount':Math[_0x3ec393(0x275)](_0x374f23[_0x3ec393(0x3cc)],_0x152211+0x5)}),_0x17b38a=_0x1e6441[_0x3ec393(0x411)](_0x374f23[_0x3ec393(0x3cd)]);_0x3d1b19['id']=_0x374f23[_0x3ec393(0x407)](),_0x3d1b19[_0x3ec393(0x432)]=_0x17ee73['generateNewSheetName'](''+_0x17b38a['t'](_0x3ec393(0x365)));const _0x4dc6bf={'index':_0x1a46f5,'sheet':_0x3d1b19,'unitId':_0x13e420},_0x595322=_0x24a2a7[_0x3ec393(0x32d)](_0x1e6441,_0x4dc6bf);_0x4dd6de[_0x3ec393(0x27b)]({'id':_0x24a2a7['InsertSheetMutation']['id'],'params':_0x4dc6bf}),_0x2745b5[_0x3ec393(0x27b)]({'id':_0x24a2a7[_0x3ec393(0x2d2)]['id'],'params':_0x595322}),_0x4dd6de[_0x3ec393(0x27b)]({'id':_0x24a2a7['SetRangeValuesMutation']['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id'],'cellValue':_0xf83160}}),_0x2745b5[_0x3ec393(0x31c)]({'id':_0x24a2a7['SetRangeValuesMutation']['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id'],'cellValue':_0x8228ce}});const _0xc8983f={'startRow':0x0,'startColumn':0x0,'endRow':_0x51c8cc-0x1,'endColumn':_0x4db50c};_0x4dd6de[_0x3ec393(0x27b)]({'id':_0x158537[_0x3ec393(0x21c)]['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id'],'range':_0xc8983f}}),_0x2745b5['unshift']({'id':_0x158537['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id']}});const _0x24310a=_0x1e6441[_0x3ec393(0x411)](_0x374f23['ICommandService']);return _0x374f23['sequenceExecute'](_0x4dd6de,_0x24310a)&&_0x1e6441[_0x3ec393(0x411)](_0x374f23['IUndoRedoService'])['pushUndoRedo']({'unitID':_0x13e420,'undoMutations':_0x2745b5,'redoMutations':_0x4dd6de}),!0x0;}},_0x490c7c={'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'id':_0x5d1072(0x1c2),async 'handler'(_0x4451da,_0x1bd938){const _0x1982f3=_0x5d1072;if(!_0x1bd938)return!0x1;const _0x5d09f8=_0x4451da['get'](_0x374f23[_0x1982f3(0x386)]),_0x478125=_0x4451da[_0x1982f3(0x411)](_0x1cc2c4[_0x1982f3(0x333)]),_0x551d27=_0x4451da[_0x1982f3(0x411)](_0x374f23[_0x1982f3(0x284)]),{pivotTableId:_0x46cd1a,fieldIds:_0x45f6e6,unitId:_0x1f502d,subUnitId:_0x54536d}=_0x1bd938,_0x24f5b8=(await _0x478125[_0x1982f3(0x291)]({'unitId':_0x1f502d,'subUnitId':_0x54536d,'pivotTableId':_0x46cd1a,'params':{'type':_0x5370e2[_0x1982f3(0x32f)],'removePivotField':{'fieldIds':_0x45f6e6}}}))[_0x1982f3(0x3de)]['removePivotField'];if(!_0x24f5b8)return!0x1;const {view:_0x1cb5c7,changesets:_0x2eb0fa,isEmpty:_0x5a0d77,pivotTableConfig:_0x54308e}=_0x24f5b8,_0x3b99a4=_0x54308e[_0x1982f3(0x357)],_0x125b17=new _0x2eef51[(_0x1982f3(0x28f))]();_0x125b17['formJSON'](_0x1cb5c7);const _0x36752a={'cellInfo':_0x3b99a4,'view':_0x125b17,'isEmpty':_0x5a0d77};if(!await _0x4451da[_0x1982f3(0x411)](_0x1cc2c4[_0x1982f3(0x3f9)])['asyncInterceptor'][_0x1982f3(0x3a5)](_0x460ff6)(!0x0,_0x36752a))return!0x1;const _0x2eba99=_0x20a5db(_0x4451da,_0x125b17,_0x3b99a4,_0x5a0d77),_0x24fd98=_0x1bde9c(_0x4451da,_0x36752a),{redos:_0x326944,undos:_0x2c0dc4}=_0x93d0f(_0x5d09f8,{'pivotTableId':_0x46cd1a,'unitId':_0x1f502d,'subUnitId':_0x54536d},_0x2eb0fa);return _0x374f23['sequenceExecute']([..._0x2eba99['redos'],..._0x24fd98[_0x1982f3(0x451)],..._0x326944],_0x5d09f8),_0x551d27[_0x1982f3(0x2c7)]({'unitID':_0x1f502d,'redoMutations':[..._0x2eba99[_0x1982f3(0x451)],..._0x24fd98['redos'],..._0x326944],'undoMutations':[..._0x2eba99[_0x1982f3(0x252)],..._0x24fd98[_0x1982f3(0x252)],..._0x2c0dc4]}),!0x0;}},_0x1e91f0={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.reset-pivot-fields-config',async 'handler'(_0x2b6108,_0x4f02e6){const _0x43e148=_0x5d1072;if(!_0x4f02e6)return!0x1;const _0x48a093=_0x2b6108['get'](_0x374f23[_0x43e148(0x386)]),_0x2bacc7=_0x2b6108[_0x43e148(0x411)](_0x374f23[_0x43e148(0x284)]),_0x37894c=_0x2b6108[_0x43e148(0x411)](_0x1cc2c4['SheetsPivotRPCService']),{resetArea:_0x2851f7,pivotTableId:_0x6ae283,unitId:_0x36b029,subUnitId:_0x529a59}=_0x4f02e6,_0x301772=(await _0x37894c['getPivotDisplayConfig']({'unitId':_0x36b029,'subUnitId':_0x529a59,'pivotTableId':_0x6ae283,'params':{'type':_0x5370e2[_0x43e148(0x305)],'resetPivotTable':{'pivotTableId':_0x6ae283,'resetArea':_0x2851f7}}}))[_0x43e148(0x3de)][_0x43e148(0x29f)];if(!_0x301772)return!0x1;const {changesets:_0x2176bc}=_0x301772,{redos:_0xaf4654,undos:_0x54fc2c}=_0x93d0f(_0x48a093,{'pivotTableId':_0x6ae283,'unitId':_0x36b029,'subUnitId':_0x529a59},_0x2176bc);return _0x374f23['sequenceExecute'](_0xaf4654,_0x48a093),_0x2bacc7[_0x43e148(0x2c7)]({'unitID':_0x36b029,'redoMutations':_0xaf4654,'undoMutations':_0x54fc2c}),!0x0;}},_0xc6bcab={'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'id':_0x5d1072(0x45e),async 'handler'(_0xd52c30,_0x1b3ef2){const _0x137369=_0x5d1072,_0x2e931e=_0xd52c30['get'](_0x374f23[_0x137369(0x386)]),_0x14a0b0=_0xd52c30['get'](_0x1cc2c4['SheetsPivotRPCService']),_0x9077d0=_0xd52c30[_0x137369(0x411)](_0x1cc2c4[_0x137369(0x3ba)]),_0x5a2dff=_0xd52c30[_0x137369(0x411)](_0x374f23[_0x137369(0x1d8)]),_0x4e50e7=_0xd52c30[_0x137369(0x411)](_0x374f23[_0x137369(0x3cd)]),_0x42b38f=_0xd52c30[_0x137369(0x411)](_0x374f23['IUndoRedoService']);if(!_0x1b3ef2)return!0x1;const {unitId:_0xfd7493,subUnitId:_0x6d9ee8,row:_0x41ecf5,col:_0x2b02df,collapse:_0x3542fb}=_0x1b3ef2,_0x252e1d=_0x5a2dff[_0x137369(0x2f2)](_0xfd7493);if(!_0x252e1d||!_0x252e1d[_0x137369(0x317)](_0x6d9ee8))return!0x1;const _0x26de16=_0x9077d0[_0x137369(0x445)](_0xfd7493,_0x6d9ee8,_0x41ecf5,_0x2b02df);if(!_0x26de16)return!0x1;const _0x17fd9d=_0x9077d0[_0x137369(0x1b9)](_0xfd7493,_0x6d9ee8,_0x26de16);if(!_0x17fd9d)return!0x1;const _0x1a2c0a=_0x374f23[_0x137369(0x3d6)](_0x41ecf5,_0x2b02df),{rangesInfo:_0x24913f,areaInfo:_0x496262,headerMap:_0x3cb4e1}=_0x17fd9d;if(!_0x24913f||!_0x496262||!_0x3cb4e1)return!0x1;const _0x53b58a=Object[_0x137369(0x3d8)](_0x24913f)[_0x137369(0x307)](_0x27ac4e=>_0x24913f[_0x27ac4e][_0x137369(0x3c4)](_0x32d89d=>_0x374f23[_0x137369(0x236)][_0x137369(0x447)](_0x32d89d,_0x1a2c0a)));let _0x449b6c;_0x53b58a===_0x137369(0x3d2)?_0x449b6c=_0x3cb4e1['rowHeaderMap'][_0x2b02df]:_0x53b58a===_0x137369(0x2ad)&&(_0x449b6c=_0x3cb4e1[_0x137369(0x405)][_0x41ecf5]);const _0x3a694a=_0x449b6c==null?void 0x0:_0x449b6c[_0x137369(0x44b)],_0x42d642=_0x9077d0[_0x137369(0x360)](_0xfd7493,_0x6d9ee8,_0x41ecf5,_0x2b02df);let _0x3ae23f=_0x42d642==null?void 0x0:_0x42d642['v'];if(_0x3ae23f===_0x4e50e7['t'](_0x137369(0x30d))&&(_0x3ae23f=_0x2eef51['GlobalConfig']['BLANK_PLACEHOLDER']),_0x3ae23f==null||!_0x26de16||!_0x3a694a)return!0x1;const _0x1582da=await _0x14a0b0['getPivotDisplayConfig']({'unitId':_0xfd7493,'subUnitId':_0x6d9ee8,'pivotTableId':_0x26de16,'params':{'type':_0x5370e2['SetPivotCollapse'],'setPivotCollapse':{'tableFieldId':_0x3a694a,'collapse':_0x3542fb,'item':_0x3ae23f}}}),_0x1313ce=_0x1582da==null?void 0x0:_0x1582da[_0x137369(0x3de)][_0x137369(0x2b9)];if(!_0x1313ce)return!0x1;const {view:_0x310135,pivotTableConfig:_0x4bedb4,isEmpty:_0xeb2e56,changesets:_0x44a299}=_0x1313ce,_0x309b10=new _0x2eef51[(_0x137369(0x28f))]();_0x309b10['formJSON'](_0x310135);const _0x130d42=_0x4bedb4[_0x137369(0x357)],_0x2e15cd={'cellInfo':_0x130d42,'view':_0x309b10,'isEmpty':_0xeb2e56};if(!await _0xd52c30[_0x137369(0x411)](_0x1cc2c4[_0x137369(0x3f9)])['asyncInterceptor'][_0x137369(0x3a5)](_0x460ff6)(!0x0,_0x2e15cd))return!0x1;const _0x4889a2=_0x20a5db(_0xd52c30,_0x309b10,_0x130d42,_0xeb2e56),_0x362432=_0x1bde9c(_0xd52c30,_0x2e15cd),{redos:_0x4a488a,undos:_0x491ef4}=_0x93d0f(_0x2e931e,{'pivotTableId':_0x26de16,'unitId':_0xfd7493,'subUnitId':_0x6d9ee8},_0x44a299);return _0x374f23['sequenceExecute']([..._0x4889a2[_0x137369(0x451)],..._0x362432[_0x137369(0x451)],..._0x4a488a],_0x2e931e),_0x42b38f[_0x137369(0x2c7)]({'unitID':_0xfd7493,'redoMutations':[..._0x4889a2[_0x137369(0x451)],..._0x362432['redos'],..._0x4a488a],'undoMutations':[..._0x4889a2[_0x137369(0x252)],..._0x362432[_0x137369(0x252)],..._0x491ef4]}),!0x0;}},_0x1a16fb={'type':_0x374f23['CommandType']['COMMAND'],'id':'sheet.command.set-pivot-fields-config',async 'handler'(_0x4d1873,_0x762d23){const _0x5f14e2=_0x5d1072;if(!_0x762d23)return!0x1;const _0x193c37=_0x4d1873[_0x5f14e2(0x411)](_0x374f23['ICommandService']),_0x310659=_0x4d1873['get'](_0x374f23[_0x5f14e2(0x284)]),_0x4184e1=_0x4d1873[_0x5f14e2(0x411)](_0x1cc2c4[_0x5f14e2(0x333)]),{pivotTableConfig:_0x41c2be,pivotTableId:_0x62ddc0,unitId:_0x1da069,subUnitId:_0x2fb0be}=_0x762d23,_0x2225ad=(await _0x4184e1['getPivotDisplayConfig']({'unitId':_0x1da069,'subUnitId':_0x2fb0be,'pivotTableId':_0x62ddc0,'params':{'type':_0x5370e2['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x62ddc0,'pivotTableConfig':_0x41c2be}}}))[_0x5f14e2(0x3de)][_0x5f14e2(0x47b)];if(!_0x2225ad)return!0x1;const {changesets:_0x21e450}=_0x2225ad,{redos:_0x1e11d8,undos:_0xe05d06}=_0x93d0f(_0x193c37,{'pivotTableId':_0x62ddc0,'unitId':_0x1da069,'subUnitId':_0x2fb0be},_0x21e450);return _0x374f23['sequenceExecute'](_0x1e11d8,_0x193c37),_0x310659[_0x5f14e2(0x2c7)]({'unitID':_0x1da069,'redoMutations':_0x1e11d8,'undoMutations':_0xe05d06}),!0x0;}},_0x3d55a3={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0x1c217a,_0x52928b){const _0x6b610c=_0x5d1072;if(!_0x52928b)return!0x1;const _0x59c0fb=_0x1c217a['get'](_0x374f23[_0x6b610c(0x386)]),{pivotTableId:_0x181c96,tableFieldId:_0x25f974,items:_0x137df7,unitId:_0x1eef84,subUnitId:_0x19d310,isAll:_0x3c7fab}=_0x52928b,_0x3f7404=_0x1c217a['get'](_0x1cc2c4[_0x6b610c(0x333)]),_0x3c7755=_0x1c217a[_0x6b610c(0x411)](_0x374f23['IUndoRedoService']),_0x4f80fc=(await _0x3f7404[_0x6b610c(0x291)]({'unitId':_0x1eef84,'subUnitId':_0x19d310,'pivotTableId':_0x181c96,'params':{'type':_0x5370e2[_0x6b610c(0x1f5)],'setPivotFilter':{'tableFieldId':_0x25f974,'items':_0x137df7,'isAll':_0x3c7fab}}}))['result'][_0x6b610c(0x2f3)];if(!_0x4f80fc)return!0x1;const {changesets:_0x2983fa,pivotTableConfig:_0x1bfa4f,isEmpty:_0x5099cc,view:_0x5eaef3}=_0x4f80fc,_0x5d5da4=_0x1bfa4f[_0x6b610c(0x357)],_0x3ba728=new _0x2eef51[(_0x6b610c(0x28f))]();_0x3ba728[_0x6b610c(0x1a8)](_0x5eaef3);const _0xe58616={'cellInfo':_0x5d5da4,'view':_0x3ba728,'isEmpty':_0x5099cc};if(!await _0x1c217a[_0x6b610c(0x411)](_0x1cc2c4['SheetsPivotTableService'])[_0x6b610c(0x24d)]['fetchThroughAsyncInterceptors'](_0x460ff6)(!0x0,_0xe58616))return!0x1;const _0xbfd948=_0x20a5db(_0x1c217a,_0x3ba728,_0x5d5da4,_0x5099cc),_0x8fa86d=_0x1bde9c(_0x1c217a,_0xe58616),{undos:_0x4ff8a0,redos:_0x197b1a}=_0x93d0f(_0x59c0fb,{'pivotTableId':_0x181c96,'unitId':_0x1eef84,'subUnitId':_0x19d310},_0x2983fa);return _0x374f23[_0x6b610c(0x203)]([..._0xbfd948[_0x6b610c(0x451)],..._0x8fa86d[_0x6b610c(0x451)],..._0x197b1a],_0x59c0fb),_0x3c7755['pushUndoRedo']({'unitID':_0x1eef84,'redoMutations':[..._0xbfd948['redos'],..._0x8fa86d['redos'],..._0x197b1a],'undoMutations':[..._0xbfd948[_0x6b610c(0x252)],..._0x8fa86d['undos'],..._0x4ff8a0]}),!0x0;}},_0x39e618={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x440),async 'handler'(_0xd77891,_0x3c8800){const _0x14dc8b=_0x5d1072;if(!_0x3c8800)return!0x1;const _0x4d2eea=_0xd77891[_0x14dc8b(0x411)](_0x374f23[_0x14dc8b(0x386)]),_0x563d8d=_0xd77891[_0x14dc8b(0x411)](_0x374f23[_0x14dc8b(0x284)]),_0xc51fe6=_0xd77891['get'](_0x1cc2c4['SheetsPivotRPCService']),{info:_0x332b03,tableFieldId:_0x4f6ec1,pivotTableId:_0x12425d,unitId:_0x26e0b3,subUnitId:_0x371ecd}=_0x3c8800,_0x32c85c=(await _0xc51fe6['getPivotDisplayConfig']({'unitId':_0x26e0b3,'subUnitId':_0x371ecd,'pivotTableId':_0x12425d,'params':{'type':_0x5370e2[_0x14dc8b(0x334)],'setPivotSort':{'tableFieldId':_0x4f6ec1,'info':_0x332b03}}}))['result']['setPivotSort'];if(!_0x32c85c)return!0x1;const {changesets:_0x197a27}=_0x32c85c,{redos:_0x2c55be,undos:_0x182e51}=_0x93d0f(_0x4d2eea,{'pivotTableId':_0x12425d,'unitId':_0x26e0b3,'subUnitId':_0x371ecd},_0x197a27);return _0x374f23[_0x14dc8b(0x203)](_0x2c55be,_0x4d2eea),_0x563d8d[_0x14dc8b(0x2c7)]({'unitID':_0x26e0b3,'redoMutations':_0x2c55be,'undoMutations':_0x182e51}),!0x0;}},_0x58248d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x439),async 'handler'(_0x841599,_0x1aafac){const _0x3e27f7=_0x5d1072;if(!_0x1aafac)return!0x1;const _0x481d44=_0x841599['get'](_0x374f23['ICommandService']),{pivotTableId:_0x3a51dc,fieldId:_0x4cc2ec,valueFilterInfo:_0x539b4e,unitId:_0xefb422,subUnitId:_0x546d1a}=_0x1aafac,_0x487d2c=_0x841599[_0x3e27f7(0x411)](_0x1cc2c4[_0x3e27f7(0x333)]),_0x2b2f73=_0x841599['get'](_0x374f23['IUndoRedoService']),_0x1fe620=(await _0x487d2c['getPivotDisplayConfig']({'unitId':_0xefb422,'subUnitId':_0x546d1a,'pivotTableId':_0x3a51dc,'params':{'type':_0x5370e2[_0x3e27f7(0x47d)],'setValuePivotFilter':{'tableFieldId':_0x4cc2ec,'filterInfo':_0x539b4e}}}))['result']['setValuePivotFilter'];if(!_0x1fe620)return!0x1;const {changesets:_0x60245b,pivotTableConfig:_0x3f1f05,isEmpty:_0x215222,view:_0x559f94}=_0x1fe620,_0x408395=_0x3f1f05[_0x3e27f7(0x357)],_0x41d93c=new _0x2eef51[(_0x3e27f7(0x28f))]();_0x41d93c[_0x3e27f7(0x1a8)](_0x559f94);const _0x44f149={'cellInfo':_0x408395,'view':_0x41d93c,'isEmpty':_0x215222};if(!await _0x841599[_0x3e27f7(0x411)](_0x1cc2c4[_0x3e27f7(0x3f9)])[_0x3e27f7(0x24d)][_0x3e27f7(0x3a5)](_0x460ff6)(!0x0,_0x44f149))return!0x1;const _0x2f3960=_0x20a5db(_0x841599,_0x41d93c,_0x408395,_0x215222),_0x380340=_0x1bde9c(_0x841599,_0x44f149),{undos:_0x1f22c6,redos:_0x4494d4}=_0x93d0f(_0x481d44,{'pivotTableId':_0x3a51dc,'unitId':_0xefb422,'subUnitId':_0x546d1a},_0x60245b);return _0x374f23['sequenceExecute']([..._0x2f3960['redos'],..._0x380340[_0x3e27f7(0x451)],..._0x4494d4],_0x481d44),_0x2b2f73[_0x3e27f7(0x2c7)]({'unitID':_0xefb422,'redoMutations':[..._0x2f3960[_0x3e27f7(0x451)],..._0x380340['redos'],..._0x4494d4],'undoMutations':[..._0x2f3960[_0x3e27f7(0x252)],..._0x380340['undos'],..._0x1f22c6]}),!0x0;}},_0x48a40f={'id':_0x5d1072(0x261),'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'handler':(_0x5ca6c2,_0x42bf4b)=>{const _0x51e153=_0x5d1072;if(!_0x42bf4b)return!0x1;if(!!_0x5ca6c2['get'](_0x374f23[_0x51e153(0x224)])['getConfig'](_0x1e657c))return!0x0;const {unitId:_0x58cacb,subUnitId:_0x4039f2,pivotTableId:_0x19175b,tableFieldId:_0x13711b,dateType:_0x269919}=_0x42bf4b,_0x4eb97d=_0x5ca6c2[_0x51e153(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),_0x162bd9=_0x4eb97d[_0x51e153(0x202)](_0x19175b);if(!_0x162bd9)return!0x1;const _0xb094f9=_0x162bd9[_0x51e153(0x1ed)](_0x13711b);if(!_0xb094f9)return!0x1;const _0x1100de=_0xb094f9['getOriginFieldId'](),_0x41a715=_0x162bd9['getDataFieldByDataFieldId'](_0x1100de),_0xe19aa7=(_0x41a715==null?void 0x0:_0x41a715['getName']())+'\x20'+_0x379197(_0x5ca6c2,_0x269919);_0x4eb97d[_0x51e153(0x43d)](_0x58cacb,_0x19175b)[_0x51e153(0x3b0)](_0xb094f9['id'],_0xe19aa7);const _0xafcda5=_0x162bd9['getTableFieldById'](_0x13711b);if(!_0xafcda5)return!0x1;_0x162bd9[_0x51e153(0x18a)](_0xafcda5['getId'](),_0xe19aa7),_0xb094f9['setDateType'](_0x269919);const _0x5d9ee9=_0x4eb97d[_0x51e153(0x458)](_0x58cacb,_0x4039f2,_0x19175b);return _0x4eb97d[_0x51e153(0x1fe)]({'unitId':_0x58cacb,'subUnitId':_0x4039f2,'token':_0x19175b,'type':_0x5ae422[_0x51e153(0x332)],'pivotConfig':_0x5d9ee9}),!0x0;}},_0x1206a2={'id':_0x5d1072(0x244),'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'handler':(_0x5a5c5b,_0x1b3f50)=>{const _0x2adf7a=_0x5d1072;if(!_0x1b3f50)return!0x1;const _0x54c8a2=_0x5a5c5b['get'](_0x374f23['IUndoRedoService']),{unitId:_0x20dfaa,subUnitId:_0x143e23,pivotTableId:_0x28db46,tableFieldId:_0x2d42b8}=_0x1b3f50,_0x37f21c=[],_0x17bd72=[],_0x471a4f=_0x5a5c5b[_0x2adf7a(0x411)](_0x1cc2c4['SheetsPivotTableConfigModel']),_0xbceb35=_0x471a4f['getCollection'](_0x20dfaa,_0x28db46),_0x5128e8=_0x471a4f[_0x2adf7a(0x458)](_0x20dfaa,_0x143e23,_0x28db46);if(!(_0x5128e8!=null&&_0x5128e8[_0x2adf7a(0x3b6)]['dimension']))return!0x1;const _0x5967f6=Object['values'](_0x5128e8[_0x2adf7a(0x3b6)][_0x2adf7a(0x455)])[_0x2adf7a(0x307)](_0x1409e4=>_0x1409e4['id']===_0x2d42b8);if(!_0x5967f6)return!0x1;const _0x1cc0b1=_0x5967f6['dataFieldId'];if(!(_0xbceb35!=null&&_0xbceb35[_0x2adf7a(0x45c)]))return!0x1;const _0xf07e50=Object[_0x2adf7a(0x39c)](_0xbceb35==null?void 0x0:_0xbceb35['fields'])[_0x2adf7a(0x307)](_0x4f3acc=>_0x4f3acc['id']===_0x1cc0b1);if(!_0xf07e50)return!0x1;_0x2eef51[_0x2adf7a(0x210)](_0xf07e50)&&_0x37f21c['push']({'id':_0x48a40f['id'],'params':{..._0x1b3f50,'dateType':_0xf07e50[_0x2adf7a(0x310)]}}),_0x17bd72['push']({'id':_0x48a40f['id'],'params':{..._0x1b3f50}});const _0x257f6a=_0x5a5c5b['get'](_0x374f23[_0x2adf7a(0x386)]);return _0x374f23[_0x2adf7a(0x203)](_0x17bd72,_0x257f6a)&&_0x54c8a2[_0x2adf7a(0x2c7)]({'unitID':_0x20dfaa,'undoMutations':_0x37f21c,'redoMutations':_0x17bd72}),!0x0;}},_0x1ebb0c={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x3dc),async 'handler'(_0x393570,_0x2338ab){const _0x17e56b=_0x5d1072;if(!_0x2338ab)return!0x1;const _0x56bad1=_0x393570[_0x17e56b(0x411)](_0x374f23[_0x17e56b(0x386)]),_0x4b0ad1=_0x393570[_0x17e56b(0x411)](_0x374f23[_0x17e56b(0x284)]),_0x4299e5=_0x393570['get'](_0x1cc2c4[_0x17e56b(0x333)]),{displayName:_0x5859d5,subtotalType:_0x4dd29c,format:_0x17fc9f,tableFieldId:_0x1788f4,pivotTableId:_0xd703fc,unitId:_0x17be08,subUnitId:_0x7ad3e5}=_0x2338ab,_0x8bcc78=(await _0x4299e5['getPivotDisplayConfig']({'unitId':_0x17be08,'subUnitId':_0x7ad3e5,'pivotTableId':_0xd703fc,'params':{'type':_0x5370e2['SetPivotSetting'],'setPivotSetting':{'tableFieldId':_0x1788f4,'displayName':_0x5859d5,'subtotalType':_0x4dd29c,'format':_0x17fc9f}}}))[_0x17e56b(0x3de)][_0x17e56b(0x289)];if(!_0x8bcc78)return!0x1;const {changesets:_0x4793cd,view:_0x39079f,pivotTableConfig:_0x2a3f8b,isEmpty:_0x433ef5}=_0x8bcc78,_0x4380a0=_0x2a3f8b[_0x17e56b(0x357)],_0x10eb83=new _0x2eef51[(_0x17e56b(0x28f))]();_0x10eb83[_0x17e56b(0x1a8)](_0x39079f);const _0x49a095={'cellInfo':_0x4380a0,'view':_0x10eb83,'isEmpty':_0x433ef5};if(!await _0x393570['get'](_0x1cc2c4[_0x17e56b(0x3f9)])[_0x17e56b(0x24d)][_0x17e56b(0x3a5)](_0x460ff6)(!0x0,_0x49a095))return!0x1;const _0x54b87e=_0x20a5db(_0x393570,_0x10eb83,_0x4380a0,_0x433ef5),_0x2b16c8=_0x1bde9c(_0x393570,_0x49a095),{undos:_0x58928a,redos:_0x5247bb}=_0x93d0f(_0x56bad1,{'pivotTableId':_0xd703fc,'unitId':_0x17be08,'subUnitId':_0x7ad3e5},_0x4793cd);return _0x374f23[_0x17e56b(0x203)]([..._0x54b87e['redos'],..._0x2b16c8[_0x17e56b(0x451)],..._0x5247bb],_0x56bad1),_0x4b0ad1[_0x17e56b(0x2c7)]({'unitID':_0x17be08,'redoMutations':[..._0x54b87e[_0x17e56b(0x451)],..._0x2b16c8[_0x17e56b(0x451)],..._0x5247bb],'undoMutations':[..._0x54b87e['undos'],..._0x2b16c8[_0x17e56b(0x252)],..._0x58928a]}),!0x0;}},_0x1708ad={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':_0x5d1072(0x1eb),'handler'(_0x46c793,_0x34f9c6){const _0x5e4164=_0x5d1072;if(!_0x34f9c6)return!0x1;if(!!_0x46c793[_0x5e4164(0x411)](_0x374f23[_0x5e4164(0x224)])[_0x5e4164(0x19c)](_0x1e657c))return!0x0;const _0x47eb0c=_0x46c793[_0x5e4164(0x411)](_0x1cc2c4[_0x5e4164(0x38e)]),{pivotTableId:_0x24b385,deleteIds:_0x17ea23,collectionJSON:_0x4cdcb1,dataRangeInfo:_0x13c28c,unitId:_0x37d39e,subUnitId:_0x39358c}=_0x34f9c6,_0xf15322=_0x47eb0c[_0x5e4164(0x202)](_0x24b385),_0x2e1082=_0x47eb0c[_0x5e4164(0x458)](_0x37d39e,_0x39358c,_0x24b385);if(!_0xf15322||!_0x2e1082)return!0x1;const {collection:_0x410ea2,updateDataFieldList:_0x2bbd1a}=_0x47eb0c[_0x5e4164(0x2b4)](_0x24b385,_0x4cdcb1,_0x13c28c,_0x2e1082[_0x5e4164(0x357)]);_0x47eb0c[_0x5e4164(0x33a)](_0x410ea2,_0x2bbd1a,_0x13c28c),_0xf15322['updateDataFieldsCollection'](_0x410ea2);for(const _0x57a158 of _0x17ea23)_0x47eb0c[_0x5e4164(0x435)](_0x13c28c[_0x5e4164(0x29a)],_0x57a158);const _0x3c1fa2=_0x47eb0c[_0x5e4164(0x458)](_0x37d39e,_0x39358c,_0x24b385);return _0x3c1fa2[_0x5e4164(0x1d7)]=JSON[_0x5e4164(0x2ab)](JSON[_0x5e4164(0x22c)](_0x13c28c)),_0x47eb0c[_0x5e4164(0x1fe)]({'unitId':_0x37d39e,'subUnitId':_0x39358c,'token':_0x24b385,'type':_0x5ae422['Set']}),!0x0;}},_0x5784b7={'type':_0x374f23['CommandType'][_0x5d1072(0x2fe)],'id':_0x5d1072(0x422),async 'handler'(_0x27a18a,_0xeaa27d){const _0x768e83=_0x5d1072,_0x49befa=_0x27a18a['get'](_0x374f23[_0x768e83(0x386)]),_0xf4725a=_0x27a18a[_0x768e83(0x411)](_0x1cc2c4['SheetsPivotRPCService']),_0x967485=_0x27a18a[_0x768e83(0x411)](_0x374f23[_0x768e83(0x284)]);if(!_0xeaa27d)return!0x1;const {token:_0x15f6e7,dataRangeInfo:_0x1ac748,unitId:_0x1307b6,subUnitId:_0x3d7570}=_0xeaa27d,_0x40f3f2=[],_0x23b005=[],_0x5530f5=(await _0xf4725a['getPivotDisplayConfig']({'unitId':_0x1307b6,'subUnitId':_0x3d7570,'pivotTableId':_0x15f6e7,'params':{'type':_0x5370e2[_0x768e83(0x18d)],'updatePivotSource':{'dataRangeInfo':_0x1ac748,'unitId':_0x1307b6,'subUnitId':_0x3d7570}}}))[_0x768e83(0x3de)]['updatePivotSource'];if(!_0x5530f5)return!0x1;const {changesets:_0x49b6be,deleteIds:_0x21cabe,collectionConfig:_0x459509,oldCollectionConfig:_0x362a64,view:_0x341a09,isEmpty:_0x9133a3,pivotTableConfig:_0x3e8299}=_0x5530f5;_0x23b005['push']({'id':_0x1708ad['id'],'params':{'pivotTableId':_0x15f6e7,'deleteIds':_0x21cabe,'collectionJSON':_0x459509,'dataRangeInfo':_0x1ac748,'unitId':_0x1307b6,'subUnitId':_0x3d7570}}),_0x40f3f2[_0x768e83(0x31c)]({'id':_0x1708ad['id'],'params':{'pivotTableId':_0x15f6e7,'deleteIds':[],'collectionJSON':_0x362a64,'dataRangeInfo':_0x3e8299[_0x768e83(0x1d7)],'unitId':_0x1307b6,'subUnitId':_0x3d7570}});const _0x2fb44f=_0x3e8299[_0x768e83(0x357)],_0x55690b=new _0x2eef51[(_0x768e83(0x28f))]();_0x55690b[_0x768e83(0x1a8)](_0x341a09);const _0xe0b10a={'cellInfo':_0x2fb44f,'view':_0x55690b,'isEmpty':_0x9133a3};if(!await _0x27a18a[_0x768e83(0x411)](_0x1cc2c4[_0x768e83(0x3f9)])[_0x768e83(0x24d)][_0x768e83(0x3a5)](_0x460ff6)(!0x0,_0xe0b10a))return!0x1;const _0x46aed6=_0x20a5db(_0x27a18a,_0x55690b,_0x2fb44f,_0x9133a3),_0x42fda0=_0x1bde9c(_0x27a18a,_0xe0b10a),{undos:_0x54e5c7,redos:_0x5d99ae}=_0x93d0f(_0x49befa,{'pivotTableId':_0x15f6e7,'unitId':_0x1307b6,'subUnitId':_0x3d7570},_0x49b6be);return _0x374f23[_0x768e83(0x203)]([..._0x46aed6['redos'],..._0x42fda0[_0x768e83(0x451)],..._0x23b005,..._0x54e5c7],_0x49befa),_0x967485[_0x768e83(0x2c7)]({'unitID':_0x1307b6,'redoMutations':[..._0x46aed6[_0x768e83(0x451)],..._0x42fda0[_0x768e83(0x451)],..._0x23b005,..._0x54e5c7],'undoMutations':[..._0x46aed6[_0x768e83(0x252)],..._0x42fda0[_0x768e83(0x252)],..._0x40f3f2,..._0x5d99ae]}),!0x0;}},_0x2c9eb9={'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'id':_0x5d1072(0x221),async 'handler'(_0x3bf97f,_0x136472){const _0x19e4a0=_0x5d1072;if(!_0x136472)return!0x1;const _0x3679d8=_0x3bf97f['get'](_0x374f23['ICommandService']),_0x1bc71a=_0x3bf97f['get'](_0x1cc2c4['SheetsPivotRPCService']),_0x575275=_0x3bf97f[_0x19e4a0(0x411)](_0x374f23[_0x19e4a0(0x1d8)]),_0x2aa94d=_0x3bf97f['get'](_0x374f23[_0x19e4a0(0x284)]),{pivotTableId:_0x14343d,position:_0x50a96f,index:_0x307b38}=_0x136472,_0x3b48d4=_0x24a2a7[_0x19e4a0(0x1db)](_0x575275);if(!_0x3b48d4)return!0x1;const {unitId:_0x574968,subUnitId:_0x2eb3dd}=_0x3b48d4,_0x2ddf7b=(await _0x1bc71a[_0x19e4a0(0x291)]({'unitId':_0x574968,'subUnitId':_0x2eb3dd,'pivotTableId':_0x14343d,'params':{'type':_0x5370e2[_0x19e4a0(0x228)],'updateValuePosition':{'position':_0x50a96f,'index':_0x307b38}}}))[_0x19e4a0(0x3de)][_0x19e4a0(0x3ed)];if(!_0x2ddf7b)return!0x1;const {changesets:_0x172750,view:_0x3d8b51,isEmpty:_0x77e12f,pivotTableConfig:_0x1d9347}=_0x2ddf7b,_0x5f8b8f=_0x1d9347[_0x19e4a0(0x357)],_0x153e2d=new _0x2eef51[(_0x19e4a0(0x28f))]();_0x153e2d[_0x19e4a0(0x1a8)](_0x3d8b51);const _0x1b88de=_0x3bf97f[_0x19e4a0(0x411)](_0x1cc2c4[_0x19e4a0(0x3f9)]),_0x4945da={'cellInfo':_0x5f8b8f,'view':_0x153e2d,'isEmpty':_0x77e12f};if(!await _0x1b88de[_0x19e4a0(0x24d)]['fetchThroughAsyncInterceptors'](_0x460ff6)(!0x0,_0x4945da))return!0x1;const _0x5c7b06=_0x20a5db(_0x3bf97f,_0x153e2d,_0x5f8b8f,_0x77e12f),_0x362a37=_0x1bde9c(_0x3bf97f,_0x4945da),{undos:_0x132f09,redos:_0x979285}=_0x93d0f(_0x3679d8,{'pivotTableId':_0x14343d,'unitId':_0x574968,'subUnitId':_0x2eb3dd},_0x172750);return _0x374f23[_0x19e4a0(0x203)]([..._0x5c7b06[_0x19e4a0(0x451)],..._0x362a37[_0x19e4a0(0x451)],..._0x979285],_0x3679d8),_0x2aa94d[_0x19e4a0(0x2c7)]({'unitID':_0x574968,'redoMutations':[..._0x5c7b06[_0x19e4a0(0x451)],..._0x362a37[_0x19e4a0(0x451)],..._0x979285],'undoMutations':[..._0x5c7b06['undos'],..._0x362a37[_0x19e4a0(0x252)],..._0x132f09]}),!0x0;}},_0x2daf6b={'type':_0x374f23['CommandType']['MUTATION'],'id':_0x5d1072(0x393),'handler'(){return!0x0;}};var _0x1a21a3=Object[_0x5d1072(0x2c5)],_0xd1ae08=(_0x4d5463,_0x36903c,_0x3b1fea,_0x5e4c51)=>{const _0x5e82ff=_0x5d1072;for(var _0x19f3a0=_0x5e4c51>0x1?void 0x0:_0x5e4c51?_0x1a21a3(_0x36903c,_0x3b1fea):_0x36903c,_0x17461d=_0x4d5463[_0x5e82ff(0x468)]-0x1,_0x414180;_0x17461d>=0x0;_0x17461d--)(_0x414180=_0x4d5463[_0x17461d])&&(_0x19f3a0=_0x414180(_0x19f3a0)||_0x19f3a0);return _0x19f3a0;},_0x3e00f9=(_0x210562,_0x55cc3b)=>(_0x3da42a,_0x1eaa22)=>_0x55cc3b(_0x3da42a,_0x1eaa22,_0x210562);const _0x3b8943=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0xc94a9b=(_0x1881de,_0x23ea6d,_0x134683)=>{const _0x1fa56c=_0x5d1072,_0x3a45fc=_0x1881de[_0x1fa56c(0x29d)];_0x1881de[_0x1fa56c(0x296)](_0x2480f1=>{const _0x38939f=_0x1fa56c,_0x8c6209=_0x2480f1['getId'](),_0x555204=_0x2480f1[_0x38939f(0x2ea)](),_0x398216=_0x2480f1[_0x38939f(0x269)](),_0xc429ea=_0x2480f1['getDisplayName']();_0x23ea6d[_0x555204]&&_0x23ea6d[_0x555204]===_0xc429ea&&_0x398216===_0xc429ea&&(_0x1881de[_0x38939f(0x18a)](_0x8c6209,_0x3a45fc[_0x38939f(0x263)](_0x555204)),_0x2480f1[_0x38939f(0x207)](_0x3a45fc[_0x38939f(0x263)](_0x555204)));}),_0x1881de[_0x1fa56c(0x29b)](_0x2eef51[_0x1fa56c(0x329)][_0x1fa56c(0x444)],_0x13d9da=>{const _0x2e55ca=_0x1fa56c,_0x2ef255=_0x13d9da['getId'](),_0x482210=_0x13d9da[_0x2e55ca(0x2ea)](),_0x139a1c=_0x13d9da[_0x2e55ca(0x269)](),_0x5c4cea=_0x13d9da[_0x2e55ca(0x263)](),_0x29c168=_0x13d9da[_0x2e55ca(0x3c2)](),_0x37545e=_0x134683(_0x139a1c,_0x29c168);_0x23ea6d[_0x482210]&&_0x23ea6d[_0x482210]===_0x139a1c&&_0x37545e===_0x5c4cea&&(_0x1881de[_0x2e55ca(0x18a)](_0x2ef255,_0x134683(_0x3a45fc[_0x2e55ca(0x263)](_0x482210),_0x29c168)),_0x13d9da['setSourceName'](_0x3a45fc[_0x2e55ca(0x263)](_0x482210)));});},_0x3455a3=(_0x1dd409,_0x127a4b,_0x1073a2)=>{const _0xd5b210=_0x5d1072;var _0x455262,_0x44cb98;const {arrayFormulaCellData:_0x338329,unitData:_0x3d69ee}=_0x127a4b,{unitId:_0x1750d1,subUnitId:_0x4158ab}=_0x1073a2,_0x50b059=_0x1073a2[_0xd5b210(0x3ee)],{startColumn:_0x168873,endColumn:_0x3fad3d}=_0x50b059,_0x47c372=(_0x455262=_0x338329==null?void 0x0:_0x338329[_0x1750d1])==null?void 0x0:_0x455262[_0x4158ab],_0x10f0bf=(_0x44cb98=_0x3d69ee==null?void 0x0:_0x3d69ee[_0x1750d1])==null?void 0x0:_0x44cb98[_0x4158ab],_0x686009=new Set(),_0x463c0c=_0x3fad3d-_0x168873+0x1,{dirtyRanges:_0x5a06c8}=_0x1dd409;if(_0x5a06c8)for(const {range:_0x16c506,sheetId:_0x5984de,unitId:_0x2ff79d}of _0x5a06c8){if(_0x5984de!==_0x4158ab||_0x1750d1!==_0x2ff79d)continue;const _0x65c6f5=_0x374f23['Rectangle'][_0xd5b210(0x19d)](_0x16c506,_0x50b059);if(_0x65c6f5){const {startColumn:_0x28a8bb,endColumn:_0x2ebf63}=_0x65c6f5;for(let _0x49dcf7=_0x28a8bb;_0x49dcf7<=_0x2ebf63;_0x49dcf7++)_0x686009[_0xd5b210(0x346)](_0x49dcf7);}}if(_0x686009[_0xd5b210(0x249)]===_0x463c0c||_0x686009[_0xd5b210(0x249)]===_0x463c0c)return Array[_0xd5b210(0x2d9)](_0x686009);if(_0x10f0bf){const _0x55f88f=_0x10f0bf[_0xd5b210(0x469)](),_0x539fe7=Object[_0xd5b210(0x3d8)](_0x55f88f);for(const _0x3a8cc7 of _0x539fe7){const _0x1a487e=Number(_0x3a8cc7),_0x5a214c=_0x55f88f[_0x1a487e];if(_0x686009[_0xd5b210(0x249)]===_0x463c0c)break;for(const _0x3015d0 in _0x5a214c){const _0x32bcd6=Number(_0x3015d0);_0x32bcd6<_0x168873||_0x32bcd6>_0x3fad3d||_0x686009[_0xd5b210(0x346)](_0x32bcd6);}}}if(_0x47c372){const _0x4f4b8b=_0x47c372[_0xd5b210(0x469)](),_0x2e82b2=Object[_0xd5b210(0x3d8)](_0x4f4b8b);for(const _0x3a36fd of _0x2e82b2){const _0xf3af96=Number(_0x3a36fd),_0x4f66b1=_0x4f4b8b[_0xf3af96];if(_0x686009[_0xd5b210(0x249)]===_0x463c0c)break;for(const _0x13b4ef in _0x4f66b1){const _0x1ae9aa=Number(_0x13b4ef);_0x1ae9aa<_0x168873||_0x1ae9aa>_0x3fad3d||_0x686009['add'](_0x1ae9aa);}}}return Array[_0xd5b210(0x2d9)](_0x686009);},_0xc5da59=_0x130736=>{const _0x4e0335=_0x5d1072,_0x3fdf62=new Set(),_0x4a03b0=[];for(const _0x4d2f6e of _0x130736){const _0x567699=_0x4d2f6e[_0x4e0335(0x378)]+','+_0x4d2f6e[_0x4e0335(0x3a2)]+','+_0x4d2f6e[_0x4e0335(0x3b9)]+','+_0x4d2f6e[_0x4e0335(0x217)];_0x3fdf62[_0x4e0335(0x1b5)](_0x567699)||(_0x3fdf62[_0x4e0335(0x346)](_0x567699),_0x4a03b0[_0x4e0335(0x27b)](_0x4d2f6e));}return _0x4a03b0;};let _0x5d6160=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x2c673e,_0x53daf1,_0x501c26,_0x14375a,_0x56cbfb){const _0xfdb553=_0x5d1072;super(),_0x1e0b19(this,_0xfdb553(0x3d0),new _0x1cd777['BehaviorSubject'](!0x0)),_0x1e0b19(this,_0xfdb553(0x3b8),_0x587074=>{const _0x3a096f=_0xfdb553;this[_0x3a096f(0x3d0)][_0x3a096f(0x3f8)](!0x1);}),_0x1e0b19(this,_0xfdb553(0x25a),_0x26dfdc=>{const _0x12775f=_0xfdb553;this[_0x12775f(0x3d0)]['next'](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0x2c673e,this[_0xfdb553(0x479)]=_0x53daf1,this[_0xfdb553(0x454)]=_0x501c26,this['_globalComputingSrv']=_0x14375a,this[_0xfdb553(0x42a)]=_0x56cbfb,this[_0xfdb553(0x3b2)](),this['_initPivotDataGetListener']());}[_0x5d1072(0x3b2)](){const _0x15da66=_0x5d1072;this[_0x15da66(0x1b6)](),this[_0x15da66(0x314)](),this['_initPivotTextInfo'](),this[_0x15da66(0x3e0)]();}[_0x5d1072(0x47c)](){const _0x4ae171=_0x5d1072;this['_globalComputingSrv'][_0x4ae171(0x36e)](this['_globalSubject']),_0x2eef51[_0x4ae171(0x1dc)][_0x4ae171(0x330)](_0x2eef51[_0x4ae171(0x287)]['onQueryStart'],this[_0x4ae171(0x3b8)]),_0x2eef51['PivotTable'][_0x4ae171(0x330)](_0x2eef51[_0x4ae171(0x287)][_0x4ae171(0x27a)],this[_0x4ae171(0x25a)]);}['_initPivotDataGetListener'](){const _0x10f7e3=_0x5d1072;this[_0x10f7e3(0x372)](this[_0x10f7e3(0x454)][_0x10f7e3(0x44f)](_0x10b497=>{const _0x35b365=_0x10f7e3;_0x10b497['id']===_0x24a2a7[_0x35b365(0x2c3)]['id']&&this[_0x35b365(0x1a4)][_0x35b365(0x2f8)](_0x10b497['params']);})),this[_0x10f7e3(0x372)](this[_0x10f7e3(0x454)][_0x10f7e3(0x44f)](_0x410d97=>{const _0x3f3abf=_0x10f7e3;if(_0x410d97['id']!==_0x23d358['id'])return;const _0x471fac=_0x410d97[_0x3f3abf(0x3aa)],{unitId:_0x11bd3a,subUnitId:_0x1c7c69,pivotTableId:_0x42b7b1}=_0x471fac,_0x128aeb=_0x471fac['params'][_0x3f3abf(0x1fd)],_0xcdaef4={};switch(_0x128aeb){case _0x5370e2[_0x3f3abf(0x2f1)]:{const _0xfff066=_0x471fac[_0x3f3abf(0x3aa)]['filter'];if(!_0xfff066)return;const {row:_0x156004,col:_0x3e425e,cellData:_0x4516d9,pivotItemRenderInfoCache:_0x2a5bb7,tableFieldId:_0x22ad56}=_0xfff066,_0x52cab2=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x471fac['pivotTableId']);if(!_0x52cab2||!_0x2a5bb7)return;if(_0x22ad56){const _0xa74f7d=_0x52cab2['getDataFieldByTableId'](_0x22ad56);if(!_0xa74f7d)return;_0xcdaef4[_0x3f3abf(0x341)]={..._0x52cab2[_0x3f3abf(0x3be)](_0xa74f7d),'tableFieldId':_0x22ad56,'pivotTableId':_0x471fac[_0x3f3abf(0x280)],'filterInfo':_0x52cab2[_0x3f3abf(0x24f)](_0x22ad56),'sortInfo':_0x52cab2[_0x3f3abf(0x219)](_0x22ad56),'format':_0x52cab2['getFieldFormat'](_0x22ad56)};}else{const _0x54a989=_0x21a2ff(_0x156004,_0x3e425e,_0x4516d9,_0x52cab2,_0x2a5bb7),_0x391fb4=_0x54a989==null?void 0x0:_0x54a989[_0x3f3abf(0x237)];if(!_0x391fb4)return;const _0x1aa3be=_0x52cab2[_0x3f3abf(0x1ed)](_0x391fb4);if(!_0x1aa3be)return;_0xcdaef4[_0x3f3abf(0x341)]={..._0x52cab2[_0x3f3abf(0x3be)](_0x1aa3be),'tableFieldId':_0x391fb4,'pivotTableId':_0x471fac['pivotTableId'],'filterInfo':_0x52cab2[_0x3f3abf(0x24f)](_0x391fb4),'sortInfo':_0x52cab2[_0x3f3abf(0x219)](_0x391fb4),'format':_0x52cab2[_0x3f3abf(0x1f6)](_0x391fb4)};}}break;case _0x5370e2[_0x3f3abf(0x232)]:{const _0xd73abb=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x313)];if(!_0xd73abb)return;const {pivotTableId:_0x50fcd8}=_0xd73abb,_0x50286d=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x50fcd8);if(!_0x50286d)return;const _0x25851f=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x50fcd8),_0x1ad6ed=_0xb9c753(_0x50286d,_0x50fcd8,_0x25851f);_0xcdaef4[_0x3f3abf(0x313)]=_0x1ad6ed;}break;case _0x5370e2[_0x3f3abf(0x35c)]:{const _0x483592=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x42b7b1),_0x3d6ea1=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x367)](_0x11bd3a),_0x43929f=_0x3d6ea1[_0x3f3abf(0x43d)](_0x42b7b1);let _0x17c262=null;const _0x531376=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1),_0x393590=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x3e7)];if(!_0x483592||!_0x531376||!_0x393590)return!0x1;const {dataFieldId:_0x4fb4ce,fieldArea:_0x44f906,index:_0x2d36d9}=_0x393590;_0x483592[_0x3f3abf(0x1c6)]();const _0x3722e0=_0x483592[_0x3f3abf(0x327)](_0x4fb4ce,_0x44f906,_0x2d36d9);if(_0x3722e0&&_0x44f906===_0x2eef51['PivotTableFiledAreaEnum']['Value']){const _0x524636=_0x3722e0['getId'](),_0x196287=_0x483592[_0x3f3abf(0x1ed)](_0x524636);if(_0x196287){const _0x2a434e=_0x196287==null?void 0x0:_0x196287['getFieldDataType']();_0x483592['setSubtotalType'](_0x3722e0[_0x3f3abf(0x470)](),_0x2a434e===_0x2eef51['PivotDataFieldDataTypeEnum'][_0x3f3abf(0x41e)]?_0x2eef51[_0x3f3abf(0x227)][_0x3f3abf(0x25d)]:_0x2eef51['PivotSubtotalTypeEnum'][_0x3f3abf(0x1a5)]);}const _0x3c85e3=_0x483592[_0x3f3abf(0x428)](),_0x37d341=_0x483592[_0x3f3abf(0x185)](),_0x2ad9b9=_0x483592[_0x3f3abf(0x30c)](_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x444)]);if(_0x3c85e3===-0x1&&_0x2ad9b9>0x1){const _0xce67f5=_0x37d341===_0x2eef51[_0x3f3abf(0x2b1)][_0x3f3abf(0x3f1)]?_0x2eef51[_0x3f3abf(0x2b1)][_0x3f3abf(0x403)]:_0x37d341,_0x3aa0b6=_0xce67f5===_0x2eef51['PivotTableValuePositionEnum']['Row']?_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]:_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x403)];_0x483592['updateValuePosition'](_0xce67f5,_0x483592['getFieldCountByArea'](_0x3aa0b6));}}else{if(_0x3722e0&&(_0x44f906===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]||_0x44f906===_0x2eef51[_0x3f3abf(0x329)]['Column'])){const _0x189f82=_0x3722e0['getId'](),_0x18827c=_0x483592[_0x3f3abf(0x1ed)](_0x189f82);if(_0x18827c&&(_0x18827c==null?void 0x0:_0x18827c[_0x3f3abf(0x20b)]())===_0x2eef51[_0x3f3abf(0x3fb)]['date']){const _0x457b7e=_0x18827c[_0x3f3abf(0x3c0)]();if(_0x457b7e&&_0x483592[_0x3f3abf(0x3a3)](_0x3722e0[_0x3f3abf(0x470)](),_0x457b7e),!_0x43929f[_0x3f3abf(0x324)]()[_0x3f3abf(0x3c4)](_0x156ad5=>{const _0x484ddd=_0x3f3abf,_0x59a84d=_0x43929f[_0x484ddd(0x35d)](_0x156ad5);return _0x2eef51[_0x484ddd(0x467)](_0x59a84d)?_0x59a84d[_0x484ddd(0x288)]()[_0x484ddd(0x3b7)]===_0x4fb4ce:!0x1;})){const _0x45bdfb=_0x3d6ea1[_0x3f3abf(0x1a6)](),_0x1cabea=_0x1446a4(_0x18827c[_0x3f3abf(0x190)],_0x18827c[_0x3f3abf(0x2a2)]),_0x102593=_0x18827c[_0x3f3abf(0x353)]()+_0x3f3abf(0x3fa)+_0x379197(this['_injector'],_0x1cabea),_0x17bd46=new _0x2eef51['DateGroupField'](_0x45bdfb,_0x102593,_0x2eef51[_0x3f3abf(0x39d)](0x3),_0x18827c[_0x3f3abf(0x470)](),_0x1cabea);_0x3d6ea1[_0x3f3abf(0x387)](_0x17bd46),_0x43929f[_0x3f3abf(0x34b)](_0x45bdfb,_0x102593),_0x483592['addFieldWithSourceId'](_0x45bdfb,_0x44f906,(_0x2d36d9!=null?_0x2d36d9:0x0)+0x1),_0x17c262=_0x17bd46;}}}}const _0xe14189=_0x483592[_0x3f3abf(0x475)](),_0x4e5cd5=_0x483592[_0x3f3abf(0x293)]()['toJSON']();let _0x344beb;if(_0x17c262){_0x344beb=_0x17c262[_0x3f3abf(0x3ff)]();const _0xba3a38=_0x17c262['getId']();_0x43929f[_0x3f3abf(0x248)](_0xba3a38);let _0x4d7fb9=!0x0;for(const _0x3b2f2d in _0x3d6ea1['collections'])if(_0x3d6ea1[_0x3f3abf(0x459)][_0x3b2f2d][_0x3f3abf(0x324)]()[_0x3f3abf(0x42d)](_0xba3a38)){_0x4d7fb9=!0x1;break;}_0x4d7fb9&&_0x3d6ea1['deleteDataField'](_0xba3a38);}const _0x2cb61b=_0x483592[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x3e7)]={'view':_0x4e5cd5,'changesets':_0x2cb61b,'isEmpty':_0xe14189,'pivotTableConfig':_0x531376,'shouldBeAddedGroupJSON':_0x344beb};}break;case _0x5370e2['AddPivotTable']:{const _0x50f9=_0x471fac[_0x3f3abf(0x3aa)]['addPivotTable'];if(!_0x50f9)return;const _0x8ff475=_0x50f9[_0x3f3abf(0x1d7)],_0x5a894a=_0x50f9[_0x3f3abf(0x280)],{collection:_0x1f60db}=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x27c)]({'unitId':_0x8ff475['unitId'],'sheetName':_0x8ff475[_0x3f3abf(0x376)],'subUnitId':_0x8ff475[_0x3f3abf(0x294)],'range':_0x8ff475[_0x3f3abf(0x3ee)]}),_0x30fee2=new _0x2eef51[(_0x3f3abf(0x1dc))](_0x1f60db,void 0x0,_0x5a894a),_0xb58137=_0x30fee2[_0x3f3abf(0x293)](),_0x2cdd79=_0x30fee2[_0x3f3abf(0x3ff)](),_0x18517a=_0x1f60db[_0x3f3abf(0x3ff)]();_0xcdaef4[_0x3f3abf(0x42c)]={'view':_0xb58137,'fieldsConfig':_0x2cdd79,'collectionConfig':_0x18517a,'isEmpty':_0x30fee2[_0x3f3abf(0x475)]()};}break;case _0x5370e2[_0x3f3abf(0x3a0)]:{const _0x20bc3f=_0x471fac['params'][_0x3f3abf(0x3ab)];if(!_0x20bc3f)return;const {fieldId:_0x19a40c,area:_0x4f56c0,index:_0x5583fa}=_0x20bc3f,_0x419d71=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x419d71)return;const _0x3fef3f=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1);if(!_0x3fef3f)return;_0x3fef3f[_0x3f3abf(0x1c6)]();const {area:_0x77423b,index:_0x4867bc}=_0x3fef3f[_0x3f3abf(0x23c)](_0x19a40c);if(_0x3fef3f['updateFieldPosition'](_0x19a40c,_0x4f56c0,_0x5583fa),_0x4f56c0===_0x2eef51['PivotTableFiledAreaEnum']['Value']&&_0x3fef3f[_0x3f3abf(0x3c5)](_0x19a40c)[_0x3f3abf(0x3c2)]()===void 0x0){const _0x7f5c8b=_0x3fef3f[_0x3f3abf(0x3c5)](_0x19a40c);if(_0x7f5c8b&&_0x7f5c8b[_0x3f3abf(0x3c2)]()===void 0x0){const _0x375942=_0x3fef3f[_0x3f3abf(0x1ed)](_0x19a40c);if(_0x375942){const _0x323311=_0x375942==null?void 0x0:_0x375942[_0x3f3abf(0x20b)]();_0x3fef3f['setSubtotalType'](_0x19a40c,_0x323311===_0x2eef51[_0x3f3abf(0x3fb)][_0x3f3abf(0x41e)]?_0x2eef51['PivotSubtotalTypeEnum'][_0x3f3abf(0x25d)]:_0x2eef51['PivotSubtotalTypeEnum'][_0x3f3abf(0x1a5)]);}}}const _0x28bb45=_0x3fef3f[_0x3f3abf(0x185)](),_0x55e2ac=_0x3fef3f[_0x3f3abf(0x428)](),_0x4237ca=_0x3fef3f[_0x3f3abf(0x30c)](_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x444)])>0x1;if(_0x4237ca&&_0x77423b===_0x4f56c0&&(_0x4f56c0===_0x2eef51[_0x3f3abf(0x329)]['Row']&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum']['Row']||_0x4f56c0===_0x2eef51[_0x3f3abf(0x329)]['Column']&&_0x28bb45===_0x2eef51[_0x3f3abf(0x2b1)]['Column'])){let _0x2064c9=_0x55e2ac;_0x4867bc<=_0x55e2ac&&_0x2064c9--,_0x5583fa<=_0x55e2ac&&_0x2064c9++,_0x3fef3f[_0x3f3abf(0x3ed)](_0x28bb45,_0x2064c9);}else _0x4237ca&&(_0x77423b===_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x415)]&&_0x28bb45===_0x2eef51[_0x3f3abf(0x2b1)][_0x3f3abf(0x415)]||_0x77423b===_0x2eef51[_0x3f3abf(0x329)]['Column']&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum'][_0x3f3abf(0x403)])&&_0x55e2ac>=_0x4867bc&&_0x3fef3f[_0x3f3abf(0x3ed)](_0x28bb45,_0x55e2ac-0x1),_0x4237ca&&(_0x4f56c0===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum'][_0x3f3abf(0x415)]||_0x4f56c0===_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x403)]&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum'][_0x3f3abf(0x403)])&&_0x55e2ac>=_0x5583fa&&_0x3fef3f['updateValuePosition'](_0x28bb45,_0x55e2ac+0x1);const _0x2d1bdb=_0x3fef3f[_0x3f3abf(0x293)](),_0x1854ad=_0x3fef3f['isEmpty'](),_0x1a3d64=_0x3fef3f['endCollectChangeset']();_0xcdaef4['movePivotField']={'view':_0x2d1bdb[_0x3f3abf(0x3ff)](),'changesets':_0x1a3d64,'isEmpty':_0x1854ad,'pivotTableConfig':_0x419d71};}break;case _0x5370e2[_0x3f3abf(0x32f)]:{const _0x3b97e4=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x3ac)];if(!_0x3b97e4)return;const _0x572483=_0x3b97e4[_0x3f3abf(0x1f7)],_0x2f62fd=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x2f62fd)return!0x1;const _0x1ff947=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x202)](_0x42b7b1);if(!_0x1ff947)return!0x1;_0x1ff947['startCollectChangeset']();for(const _0x3e3b8c of _0x572483){const {area:_0x4e09f2}=_0x1ff947[_0x3f3abf(0x23c)](_0x3e3b8c);_0x4e09f2===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x444)]&&_0x1ff947[_0x3f3abf(0x1ec)](_0x3e3b8c),(_0x4e09f2===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]||_0x4e09f2===_0x2eef51[_0x3f3abf(0x329)]['Column'])&&_0x1ff947['removeValueFilterInfo'](_0x3e3b8c),_0x1ff947['removeField'](_0x3e3b8c);}const _0x45990c=_0x1ff947[_0x3f3abf(0x475)](),_0x331db9=_0x1ff947[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x33e77b=_0x1ff947[_0x3f3abf(0x3b4)]();_0xcdaef4['removePivotField']={'changesets':_0x33e77b,'pivotTableConfig':_0x2f62fd,'isEmpty':_0x45990c,'view':_0x331db9};}break;case _0x5370e2['SetPivotFilter']:{const _0x533543=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x2f3)];if(!_0x533543)return;const {tableFieldId:_0xe4318f,items:_0x5d113c,isAll:_0x18d44c}=_0x533543,_0x881e21=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x411c55=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x881e21||!_0x411c55)return;_0x881e21[_0x3f3abf(0x1c6)](),_0x881e21[_0x3f3abf(0x3e2)](_0xe4318f,{'type':_0x2eef51[_0x3f3abf(0x349)]['ManualFilter'],'list':_0x5d113c,'isAll':_0x18d44c});const _0x403324=_0x881e21[_0x3f3abf(0x475)](),_0x96d4aa=_0x881e21['query']()[_0x3f3abf(0x3ff)](),_0x33e638=_0x881e21['endCollectChangeset']();_0xcdaef4[_0x3f3abf(0x2f3)]={'view':_0x96d4aa,'changesets':_0x33e638,'isEmpty':_0x403324,'pivotTableConfig':_0x411c55};}break;case _0x5370e2[_0x3f3abf(0x47d)]:{const _0x39dfb4=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x426)];if(!_0x39dfb4)return;const {tableFieldId:_0x18265c,filterInfo:_0x31ce87}=_0x39dfb4,_0x3e1997=this[_0x3f3abf(0x1a4)]['getPivotTableInstance'](_0x42b7b1),_0x335340=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x3e1997||!_0x335340)return;_0x3e1997[_0x3f3abf(0x1c6)](),_0x3e1997[_0x3f3abf(0x1e7)](_0x18265c,_0x31ce87);const _0x47b5a9=_0x3e1997[_0x3f3abf(0x475)](),_0x6e0f91=_0x3e1997[_0x3f3abf(0x293)]()['toJSON'](),_0x3f0bd7=_0x3e1997[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x426)]={'view':_0x6e0f91,'changesets':_0x3f0bd7,'isEmpty':_0x47b5a9,'pivotTableConfig':_0x335340};}break;case _0x5370e2[_0x3f3abf(0x334)]:{const _0x38f07f=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x3ec)];if(!_0x38f07f)return;const {tableFieldId:_0x13ab64,info:_0xae3118}=_0x38f07f,_0x5687e0=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x1795cd=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x5687e0||!_0x1795cd)return;_0x5687e0[_0x3f3abf(0x1c6)](),_0x5687e0['setSortInfo'](_0x13ab64,_0xae3118);const _0x261cc3=_0x5687e0[_0x3f3abf(0x475)](),_0x358a8c=_0x5687e0['query']()[_0x3f3abf(0x3ff)](),_0x1135a1=_0x5687e0[_0x3f3abf(0x3b4)]();_0xcdaef4['setPivotSort']={'view':_0x358a8c,'changesets':_0x1135a1,'isEmpty':_0x261cc3,'pivotTableConfig':_0x1795cd};}break;case _0x5370e2[_0x3f3abf(0x46b)]:{const _0x2da2e0=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x289)];if(!_0x2da2e0)return;const {tableFieldId:_0x33b0ae,displayName:_0x30b381,subtotalType:_0x30d0bf,format:_0x7f97b5}=_0x2da2e0,_0x7f0d9e=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x468086=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x7f0d9e||!_0x468086)return;_0x7f0d9e[_0x3f3abf(0x1c6)](),_0x30b381!==void 0x0&&_0x7f0d9e[_0x3f3abf(0x18a)](_0x33b0ae,_0x30b381),_0x30d0bf!==void 0x0&&_0x7f0d9e[_0x3f3abf(0x3ad)](_0x33b0ae,_0x30d0bf),_0x7f97b5!==void 0x0&&_0x7f0d9e['setFieldFormat'](_0x33b0ae,_0x7f97b5);const _0x1205e0=_0x7f0d9e[_0x3f3abf(0x475)](),_0x2c0585=_0x7f0d9e['query']()[_0x3f3abf(0x3ff)](),_0x17e7e9=_0x7f0d9e[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x289)]={'changesets':_0x17e7e9,'pivotTableConfig':_0x468086,'isEmpty':_0x1205e0,'view':_0x2c0585};}break;case _0x5370e2[_0x3f3abf(0x18d)]:{const _0xf2332b=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x26e)];if(!_0xf2332b)return;const {dataRangeInfo:_0x7b66c6,unitId:_0xdd2c59,subUnitId:_0x30e77a}=_0xf2332b,_0x208c01=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0xdd2c59,_0x30e77a,_0x42b7b1),_0x21136f=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x202)](_0x42b7b1);if(!this['_sheetsPivotDataSourceModel']['getCollection'](_0xdd2c59,_0x42b7b1)||!_0x21136f||!_0x208c01)return;const _0x377803=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x368)](_0xdd2c59,_0x42b7b1,_0x7b66c6),_0x21cc7c=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x43d)](_0xdd2c59,_0x42b7b1)[_0x3f3abf(0x3ff)](),{collection:_0x542c04}=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x27c)]({'unitId':_0x7b66c6[_0x3f3abf(0x29a)],'sheetName':_0x7b66c6[_0x3f3abf(0x376)],'subUnitId':_0x7b66c6['subUnitId'],'range':_0x7b66c6[_0x3f3abf(0x3ee)]}),_0x495e36=_0x542c04[_0x3f3abf(0x3ff)]();_0x21136f['startCollectChangeset']();const _0xa7d24e=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x367)](_0xdd2c59)['getAutoDisplayNameFunction']()||_0x2eef51[_0x3f3abf(0x41b)];_0x21136f[_0x3f3abf(0x1c4)](_0x2d7ce6=>{const _0x202d50=_0x3f3abf,_0x561aee=_0x2d7ce6['getDataFieldId']();if(!_0x542c04[_0x202d50(0x46c)](_0x561aee)){const _0x4a68aa=_0x542c04[_0x202d50(0x2ed)](_0x2d7ce6[_0x202d50(0x269)]());if(_0x4a68aa){_0x21136f['updateFieldSourceInfo'](_0x2d7ce6['getId'](),_0x4a68aa[_0x202d50(0x353)](),_0x4a68aa[_0x202d50(0x470)]());const {area:_0x4f7d4b}=_0x21136f['getFieldPositionInfoById'](_0x2d7ce6[_0x202d50(0x470)]());let _0x119838=_0x2d7ce6[_0x202d50(0x269)]();const _0x5a4cc3=_0x2d7ce6[_0x202d50(0x263)]();if(_0x4f7d4b===_0x2eef51[_0x202d50(0x329)]['Value']){const _0x3e0c30=_0x2d7ce6[_0x202d50(0x3c2)]();_0x119838=_0xa7d24e(_0x4a68aa[_0x202d50(0x353)](),_0x3e0c30);}_0x5a4cc3!==_0x119838&&_0x21136f['renameField'](_0x2d7ce6[_0x202d50(0x470)](),_0x119838);}else _0x21136f[_0x202d50(0x37e)](_0x2d7ce6['getId']());}});const _0x5d3577=_0x21136f[_0x3f3abf(0x475)](),_0x9f7a60=_0x21136f[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x1d4477=_0x21136f[_0x3f3abf(0x3b4)]();_0xcdaef4['updatePivotSource']={'view':_0x9f7a60,'changesets':_0x1d4477,'isEmpty':_0x5d3577,'pivotTableConfig':_0x208c01,'collectionConfig':_0x495e36,'oldCollectionConfig':_0x21cc7c,'deleteIds':_0x377803};}break;case _0x5370e2[_0x3f3abf(0x228)]:{const _0x3d7aa3=_0x471fac[_0x3f3abf(0x3aa)]['updateValuePosition'];if(!_0x3d7aa3)return;const {position:_0x1fb60f,index:_0xb6be}=_0x3d7aa3,_0x2498fd=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x2498fd)return!0x1;const _0x41c83f=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1);if(!_0x41c83f)return!0x1;_0x41c83f['startCollectChangeset'](),_0x41c83f[_0x3f3abf(0x3ed)](_0x1fb60f,_0xb6be);const _0x4f3bfe=_0x41c83f[_0x3f3abf(0x475)](),_0x2d2e48=_0x41c83f[_0x3f3abf(0x293)]()['toJSON'](),_0x1a6778=_0x41c83f[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x3ed)]={'changesets':_0x1a6778,'pivotTableConfig':_0x2498fd,'isEmpty':_0x4f3bfe,'view':_0x2d2e48};}break;case _0x5370e2[_0x3f3abf(0x2f6)]:{const _0xaf6e88=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x2b9)];if(!_0xaf6e88)return;const {tableFieldId:_0x2f008d,collapse:_0x40122a,item:_0x47d2dd}=_0xaf6e88,_0x5d5bf0=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x5ad48c=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x5d5bf0||!_0x5ad48c)return;_0x5d5bf0[_0x3f3abf(0x1c6)](),_0x5d5bf0[_0x3f3abf(0x472)](_0x2f008d,_0x40122a,_0x47d2dd);const _0x355d1d=_0x5d5bf0['isEmpty'](),_0x4191e3=_0x5d5bf0[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x21e274=_0x5d5bf0[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x2b9)]={'view':_0x4191e3,'isEmpty':_0x355d1d,'pivotTableConfig':_0x5ad48c,'changesets':_0x21e274};}break;case _0x5370e2[_0x3f3abf(0x267)]:{const _0x26d60b=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x47b)];if(!_0x26d60b)return;const {pivotTableConfig:_0x27c728}=_0x26d60b,_0x1b291f=this[_0x3f3abf(0x1a4)]['getPivotTableInstance'](_0x42b7b1),_0x4971d1=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x1b291f||!_0x4971d1)return;_0x1b291f['startCollectChangeset'](),_0x5bb8f1(_0x1b291f,_0x27c728);const _0x199049=_0x1b291f[_0x3f3abf(0x475)](),_0x466dbf=_0x1b291f[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x276004=_0x1b291f[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x47b)]={'view':_0x466dbf,'isEmpty':_0x199049,'pivotTableConfig':{..._0x4971d1,'fieldsConfig':_0x1b291f[_0x3f3abf(0x3ff)]()},'changesets':_0x276004};}break;case _0x5370e2[_0x3f3abf(0x305)]:{const _0x3791a3=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x29f)];if(!_0x3791a3)return;const _0x4f4d01=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x42b7b1),_0x236f8b=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x4f4d01||!_0x236f8b)return;_0x4f4d01[_0x3f3abf(0x1c6)](),_0x1f01f2(_0x4f4d01,_0x3791a3[_0x3f3abf(0x1b0)]);const _0x38ca43=_0x4f4d01[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x5b76da=_0x4f4d01[_0x3f3abf(0x3b4)]();_0xcdaef4['resetPivotTable']={'view':_0x38ca43,'isEmpty':!0x0,'pivotTableConfig':{..._0x236f8b,'fieldsConfig':_0x4f4d01[_0x3f3abf(0x3ff)]()},'changesets':_0x5b76da};}break;case _0x5370e2[_0x3f3abf(0x231)]:{const _0x1ce8c5=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x24c)];if(!_0x1ce8c5)return;const _0x6aa0ac=_0x1ce8c5[_0x3f3abf(0x1d7)],_0x136bfa=_0x1ce8c5[_0x3f3abf(0x280)],{collection:_0xa54a4a}=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x27c)]({'unitId':_0x6aa0ac[_0x3f3abf(0x29a)],'sheetName':_0x6aa0ac[_0x3f3abf(0x376)],'subUnitId':_0x6aa0ac[_0x3f3abf(0x294)],'range':_0x6aa0ac[_0x3f3abf(0x3ee)]}),_0x206b51=new _0x2eef51['PivotTable'](_0xa54a4a,void 0x0,_0x136bfa),_0x31207d=_0xa54a4a[_0x3f3abf(0x324)](),{rows:_0x16a07d,columns:_0x302af7,filters:_0x2f3016,values:_0x4a7f2d}=_0x1ce8c5[_0x3f3abf(0x478)];_0x206b51[_0x3f3abf(0x1c6)]();for(const {field:_0xd5d87a,selectedItems:_0x1a51f9}of _0x16a07d||[]){const _0x5837aa=_0x31207d[_0xd5d87a];if(_0x5837aa){const _0x349239=_0x206b51[_0x3f3abf(0x327)](_0x5837aa,_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]);_0x1a51f9&&_0x349239&&_0x206b51[_0x3f3abf(0x3e2)](_0x349239[_0x3f3abf(0x470)](),{'type':_0x2eef51[_0x3f3abf(0x349)][_0x3f3abf(0x285)],'list':_0x1a51f9,'isAll':!0x1});}}for(const {field:_0x357ab8,selectedItems:_0x279d2f}of _0x302af7||[]){const _0x4e65a7=_0x31207d[_0x357ab8];if(_0x4e65a7){const _0x284e12=_0x206b51[_0x3f3abf(0x327)](_0x4e65a7,_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x403)]);_0x279d2f&&_0x284e12&&_0x206b51[_0x3f3abf(0x3e2)](_0x284e12['getId'](),{'type':_0x2eef51[_0x3f3abf(0x349)][_0x3f3abf(0x285)],'list':_0x279d2f,'isAll':!0x1});}}for(const {field:_0x1f574f,selectedItems:_0xec0f06}of _0x2f3016||[]){const _0x69f32f=_0x31207d[_0x1f574f];if(_0x69f32f){const _0x5abf35=_0x206b51[_0x3f3abf(0x327)](_0x69f32f,_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x2f1)]);_0xec0f06&&_0x5abf35&&_0x206b51[_0x3f3abf(0x3e2)](_0x5abf35[_0x3f3abf(0x470)](),{'type':_0x2eef51[_0x3f3abf(0x349)][_0x3f3abf(0x285)],'list':_0xec0f06,'isAll':!0x1});}}for(const {field:_0x1a9563,subTotalType:_0x3b3e78,formatString:_0x1e536f}of _0x4a7f2d||[]){const _0x462c96=_0xa54a4a['getFieldById'](_0x31207d[_0x1a9563]);if(!_0x462c96)continue;const _0x3c49eb=_0x31207d[_0x1a9563];if(_0x3c49eb){const _0x5ec012=_0x206b51['addFieldWithSourceId'](_0x3c49eb,_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x444)]);if(_0x5ec012){if(_0x3b3e78!==void 0x0){_0x206b51[_0x3f3abf(0x3ad)](_0x5ec012[_0x3f3abf(0x470)](),_0x3b3e78);const _0xd51d3b=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x367)](_0x6aa0ac[_0x3f3abf(0x29a)])[_0x3f3abf(0x477)]()||_0x2eef51[_0x3f3abf(0x41b)],_0xc275fc=_0xa54a4a[_0x3f3abf(0x263)](_0x3c49eb),_0x394948=_0xd51d3b(_0xc275fc,_0x3b3e78);_0x206b51[_0x3f3abf(0x18a)](_0x5ec012[_0x3f3abf(0x470)](),_0x394948);}else{if(_0x462c96){const _0x2575e6=_0x462c96==null?void 0x0:_0x462c96[_0x3f3abf(0x20b)]();_0x206b51[_0x3f3abf(0x3ad)](_0x5ec012['getId'](),_0x2575e6===_0x2eef51[_0x3f3abf(0x3fb)][_0x3f3abf(0x41e)]?_0x2eef51[_0x3f3abf(0x227)][_0x3f3abf(0x25d)]:_0x2eef51[_0x3f3abf(0x227)][_0x3f3abf(0x1a5)]);}}_0x1e536f&&_0x206b51[_0x3f3abf(0x3a3)](_0x5ec012['getId'](),_0x1e536f);}}}const _0x1de4d9=_0x206b51['query'](),_0x58b0ca=_0x206b51[_0x3f3abf(0x3ff)](),_0x402a79=_0x206b51[_0x3f3abf(0x475)](),_0x1e366d=_0x206b51[_0x3f3abf(0x3b4)](),_0x175715=_0xa54a4a['toJSON']();_0xcdaef4[_0x3f3abf(0x24c)]={'view':_0x1de4d9,'fieldsConfig':_0x58b0ca,'collectionConfig':_0x175715,'isEmpty':_0x402a79,'changesets':_0x1e366d};}break;case _0x5370e2[_0x3f3abf(0x42f)]:{const _0x1f4772=_0xaa3adf(this[_0x3f3abf(0x42a)],_0x471fac);if(!_0x1f4772)return;const {range:_0x40c72e,sourceSubUnitId:_0x4b65bd,sourceUnitId:_0x2ceb78,formatMap:_0x3cc7cc,indexes:_0x345d14}=_0x1f4772;_0xcdaef4[_0x3f3abf(0x2d8)]={'range':_0x40c72e,'sourceSubUnitId':_0x4b65bd,'sourceUnitId':_0x2ceb78,'formatMap':_0x3cc7cc,'indexes':_0x345d14};}break;}this[_0x3f3abf(0x454)][_0x3f3abf(0x17c)](_0x38eba3['id'],{'version':_0x471fac[_0x3f3abf(0x383)],'result':_0xcdaef4},{'onlyLocal':!0x0});}));}[_0x5d1072(0x355)](){const _0x4accc3=_0x5d1072;this[_0x4accc3(0x372)](this['_commandService']['onCommandExecuted'](_0x5d8bd4=>{const _0x49f7b8=_0x4accc3;if(_0x5d8bd4['id']!==_0x4a9d2d['id'])return;const _0x586fef=_0x5d8bd4['params'];return this[_0x49f7b8(0x1a4)][_0x49f7b8(0x340)](_0x586fef[_0x49f7b8(0x2da)]),!0x0;}));}[_0x5d1072(0x1b6)](){const _0x466139=_0x5d1072;this[_0x466139(0x1a4)]['collectionChange$'][_0x466139(0x47a)](_0x3d3bb3=>{const _0x7cd285=_0x466139;switch(_0x3d3bb3[_0x7cd285(0x1fd)]){case _0x5493f6[_0x7cd285(0x346)]:_0x3d3bb3[_0x7cd285(0x311)]&&_0x3d3bb3[_0x7cd285(0x357)]&&this[_0x7cd285(0x2b2)](_0x3d3bb3[_0x7cd285(0x33d)],_0x3d3bb3[_0x7cd285(0x311)],_0x3d3bb3[_0x7cd285(0x357)]);break;case _0x5493f6[_0x7cd285(0x2af)]:{const {unitId:_0x5233f7,subUnitId:_0x2a52fa,token:_0x2c5fa9}=_0x3d3bb3;_0x5233f7&&_0x2a52fa&&_0x2c5fa9&&this['removeSourceRangeChange'](_0x5233f7,_0x2a52fa,_0x2c5fa9);}break;case _0x5493f6[_0x7cd285(0x33f)]:{const {token:_0xeda355,oldSourceRangeInfo:_0x404ac0,dataRangeInfo:_0x235352,targetCellInfo:_0x49cbfb}=_0x3d3bb3,{unitId:_0x309c01,subUnitId:_0x5eec4b}=_0x404ac0||{};_0x309c01&&_0x5eec4b&&_0xeda355&&this[_0x7cd285(0x3f2)](_0x309c01,_0x5eec4b,_0xeda355),_0x235352&&_0x49cbfb&&this[_0x7cd285(0x2b2)](_0xeda355,_0x235352,_0x49cbfb);}break;}});}[_0x5d1072(0x3e0)](){const _0xb6f021=_0x5d1072;this[_0xb6f021(0x1a4)][_0xb6f021(0x34e)][_0xb6f021(0x47a)](_0x48dca7=>{const _0x530428=_0xb6f021;Object['keys'](_0x48dca7)[_0x530428(0x274)](_0x428c22=>{const _0x5a99b2=_0x530428,_0x39ea09=this[_0x5a99b2(0x1a4)][_0x5a99b2(0x1c8)](_0x428c22);if(_0x39ea09){const _0x8ebd36=this[_0x5a99b2(0x1a4)][_0x5a99b2(0x458)](_0x39ea09==null?void 0x0:_0x39ea09[_0x5a99b2(0x29a)],_0x39ea09==null?void 0x0:_0x39ea09['subUnitId'],_0x428c22);_0x8ebd36&&(this[_0x5a99b2(0x2b2)](_0x428c22,_0x8ebd36['sourceRangeInfo'],_0x8ebd36[_0x5a99b2(0x357)]),this[_0x5a99b2(0x38f)]([{'unitId':_0x39ea09[_0x5a99b2(0x29a)],'subUnitId':_0x39ea09[_0x5a99b2(0x294)],'token':_0x428c22}]));}});});}[_0x5d1072(0x314)](){const _0x96a950=_0x5d1072;this[_0x96a950(0x1a4)][_0x96a950(0x279)]['subscribe'](_0x4a81aa=>{const {unitId:_0x5b3314,subUnitId:_0x40408b,pivotTableId:_0x5c5380}=_0x4a81aa;_0x5b3314&&_0x40408b&&_0x5c5380&&this['triggerDirtyFeature']([{'unitId':_0x5b3314,'subUnitId':_0x40408b,'token':_0x5c5380}]);});}[_0x5d1072(0x38f)](_0x3fd9ab){const _0x510639=_0x5d1072,_0x23db0a={};_0x3fd9ab[_0x510639(0x274)](_0x4d92a1=>{var _0x4ec8be,_0xeeb316;const {unitId:_0x5025eb,subUnitId:_0x34b39a,token:_0x98f8fe}=_0x4d92a1;_0x23db0a[_0x5025eb]=(_0x4ec8be=_0x23db0a[_0x5025eb])!=null?_0x4ec8be:{},_0x23db0a[_0x5025eb][_0x34b39a]=(_0xeeb316=_0x23db0a[_0x5025eb][_0x34b39a])!=null?_0xeeb316:{},_0x23db0a[_0x5025eb][_0x34b39a][_0x98f8fe]=!0x0;}),this[_0x510639(0x454)][_0x510639(0x17c)](_0x2daf6b['id'],_0x23db0a);}[_0x5d1072(0x3f2)](_0x550cd3,_0x163e09,_0x4e899e){const _0x393afa=_0x5d1072;this[_0x393afa(0x479)][_0x393afa(0x26f)](_0x550cd3,_0x163e09,[_0x4e899e]);}[_0x5d1072(0x2b2)](_0xe90557,_0x74ebb,_0x1de8c9){const _0x25c154=_0x5d1072,{unitId:_0x38468a,subUnitId:_0x59027f}=_0x74ebb;this[_0x25c154(0x479)][_0x25c154(0x1b5)](_0x1de8c9['unitId'],_0x1de8c9['subUnitId'],_0xe90557)&&this[_0x25c154(0x3f2)](_0x38468a,_0x59027f,_0xe90557);const _0x1f4e80={'sheetId':_0x59027f,..._0x74ebb};this['_featureCalculationManagerService'][_0x25c154(0x3f0)](_0x1de8c9[_0x25c154(0x29a)],_0x1de8c9[_0x25c154(0x294)],_0xe90557,{'unitId':_0x1de8c9['unitId'],'subUnitId':_0x1de8c9['subUnitId'],'dependencyRanges':[_0x1f4e80],'getDirtyData':(_0x3e42b4,_0x9de1e4)=>{const _0x4ad218=_0x25c154,_0x479ce7=this[_0x4ad218(0x1a4)],_0x2368bc=_0x479ce7[_0x4ad218(0x1c8)](_0xe90557);if(!_0x2368bc)return _0x3b8943();const {unitId:_0x42c6ff,subUnitId:_0x5a65df}=_0x2368bc,_0x176c77=_0x3455a3(_0x3e42b4,_0x9de1e4,_0x74ebb);if(_0x176c77[_0x4ad218(0x468)]>0x0){const _0x364e7b=_0x479ce7[_0x4ad218(0x43d)](_0x38468a,_0xe90557),_0x51b761=_0x364e7b[_0x4ad218(0x324)](),_0x57ad3d=this['getMatrixFromRunTimeData'](_0x74ebb[_0x4ad218(0x29a)],_0x74ebb[_0x4ad218(0x294)],_0x9de1e4),_0x31ca94={},_0x13b9b0=this[_0x4ad218(0x1a4)]['getDataFieldManager'](_0x42c6ff)[_0x4ad218(0x477)]()||_0x2eef51[_0x4ad218(0x41b)],_0x20bbb0=[];for(const _0x32f711 of _0x176c77){const _0x3c407a=_0x32f711-(_0x74ebb[_0x4ad218(0x3ee)][_0x4ad218(0x3b9)]||0x0),_0x232986=_0x51b761[_0x3c407a];_0x20bbb0[_0x4ad218(0x27b)](_0x232986),_0x31ca94[_0x232986]=_0x364e7b[_0x4ad218(0x35d)](_0x232986)[_0x4ad218(0x353)](),_0x479ce7[_0x4ad218(0x367)](_0x38468a)['refreshDataField'](_0x232986,_0x74ebb,_0x3c407a,_0x57ad3d);}_0x364e7b['getGroupFieldsInfoByIds'](_0x20bbb0)[_0x4ad218(0x274)](_0xef4b53=>{const _0x5d934e=_0x4ad218,[_0x1f9895,_0x550c99]=_0xef4b53,_0x23685c=_0x364e7b[_0x5d934e(0x35d)](_0x1f9895),_0x2968f1=_0x364e7b['getFieldById'](_0x550c99);_0x23685c&&_0x2968f1&&_0x23685c[_0x5d934e(0x302)](_0x2968f1);}),_0x364e7b[_0x4ad218(0x18e)]();const _0x1c7030=_0x479ce7['getPivotTableInstance'](_0xe90557);if(_0x1c7030){_0xc94a9b(_0x1c7030,_0x31ca94,_0x13b9b0),_0x1c7030[_0x4ad218(0x211)](!0x0);const _0x2eb490=_0x1c7030[_0x4ad218(0x293)](),_0x5cf861=_0x479ce7[_0x4ad218(0x458)](_0x42c6ff,_0x5a65df,_0xe90557),_0x390c7a=_0x479ce7[_0x4ad218(0x367)](_0x38468a)[_0x4ad218(0x3ff)]();_0x479ce7[_0x4ad218(0x427)](_0x42c6ff,_0x5a65df,_0x5ae422[_0x4ad218(0x332)],_0xe90557,_0x2eb490,_0x5cf861,_0x390c7a,!0x0);}}return this[_0x4ad218(0x433)](_0x42c6ff,_0x5a65df,_0xe90557);}});}[_0x5d1072(0x19b)](_0x17ca2f,_0x33735d,_0xb505ef){var _0x17a5fe,_0x30b251;const {arrayFormulaCellData:_0x5000f7,unitData:_0x4f02f9}=_0xb505ef,_0x2317e9=(_0x17a5fe=_0x5000f7==null?void 0x0:_0x5000f7[_0x17ca2f])==null?void 0x0:_0x17a5fe[_0x33735d],_0x4e6116=(_0x30b251=_0x4f02f9==null?void 0x0:_0x4f02f9[_0x17ca2f])==null?void 0x0:_0x30b251[_0x33735d];return{'arrayFormulaCellDataMatrix':_0x2317e9,'unitDataMatrix':_0x4e6116};}['getDirtyInfo'](_0x273654,_0x3c710a,_0x98a30e){const _0x10a451=_0x5d1072,_0x6ba43c=this['_sheetsPivotDataSourceModel']['getViewData'](_0x273654,_0x3c710a,_0x98a30e),_0x5256e8=[],_0x44ee7c=new _0x374f23[(_0x10a451(0x33b))]();if(_0x6ba43c){const {rangeCache:_0x40b320,matrix:_0x5e3255,oldRangeCache:_0x3e863c,oldMatrix:_0x35ad08}=_0x6ba43c,_0x2de45b=_0x17e537(_0x3e863c),_0x4977f3=_0x17e537(_0x40b320);_0x5256e8[_0x10a451(0x27b)](..._0x4977f3,..._0x2de45b),_0x35ad08&&_0x3e863c&&_0x2de45b[_0x10a451(0x274)](_0x1f1556=>{const _0x9286ab=_0x10a451;for(let _0x439768=_0x1f1556[_0x9286ab(0x378)];_0x439768<=_0x1f1556[_0x9286ab(0x3a2)];_0x439768++)for(let _0x3c150c=_0x1f1556[_0x9286ab(0x3b9)];_0x3c150c<=_0x1f1556[_0x9286ab(0x217)];_0x3c150c++)_0x44ee7c['realDeleteValue'](_0x439768,_0x3c150c);}),_0x5e3255&&_0x4977f3&&_0x4977f3[_0x10a451(0x274)](_0x3ddfa5=>{const _0x143e6d=_0x10a451;for(let _0x25877e=_0x3ddfa5['startRow'];_0x25877e<=_0x3ddfa5[_0x143e6d(0x3a2)];_0x25877e++)for(let _0x4dd792=_0x3ddfa5[_0x143e6d(0x3b9)];_0x4dd792<=_0x3ddfa5[_0x143e6d(0x217)];_0x4dd792++)_0x44ee7c[_0x143e6d(0x388)](_0x25877e,_0x4dd792,_0x5e3255[_0x143e6d(0x216)](_0x25877e,_0x4dd792));});}const _0x486433={};return _0x486433[_0x273654]={[_0x3c710a]:_0xc5da59(_0x5256e8)},{'runtimeCellData':{[_0x273654]:{[_0x3c710a]:_0x44ee7c}},'dirtyRanges':_0x486433};}[_0x5d1072(0x259)](){}};_0x5d6160=_0xd1ae08([_0x3e00f9(0x0,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotDataSourceModel'])),_0x3e00f9(0x1,_0x374f23[_0x5d1072(0x465)](_0x925485[_0x5d1072(0x1e3)])),_0x3e00f9(0x2,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x386)])),_0x3e00f9(0x3,_0x374f23[_0x5d1072(0x465)](_0x925485[_0x5d1072(0x30f)])),_0x3e00f9(0x4,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector']))],_0x5d6160);var _0x47c224=Object[_0x5d1072(0x2c5)],_0x3ac94b=(_0x3fb98d,_0x4f1cd8,_0x56881e,_0x26f651)=>{const _0x18b31f=_0x5d1072;for(var _0x246fe7=_0x26f651>0x1?void 0x0:_0x26f651?_0x47c224(_0x4f1cd8,_0x56881e):_0x4f1cd8,_0x7f9da8=_0x3fb98d[_0x18b31f(0x468)]-0x1,_0x5ccf29;_0x7f9da8>=0x0;_0x7f9da8--)(_0x5ccf29=_0x3fb98d[_0x7f9da8])&&(_0x246fe7=_0x5ccf29(_0x246fe7)||_0x246fe7);return _0x246fe7;},_0x1cbdf9=(_0x1de89c,_0x16a56a)=>(_0xea5fb4,_0x56d9d6)=>_0x16a56a(_0xea5fb4,_0x56d9d6,_0x1de89c);let _0x31eb78=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x4748e4,_0x265b31,_0x119777,_0xb15bb9){const _0x430074=_0x5d1072;super(),_0x1e0b19(this,'disposableCollection',new _0x374f23[(_0x430074(0x218))]()),(this[_0x430074(0x443)]=_0x4748e4,this[_0x430074(0x420)]=_0x265b31,this[_0x430074(0x1de)]=_0x119777,this[_0x430074(0x1be)]=_0xb15bb9,this[_0x430074(0x31a)]());}['_initClearSelectionCommandInterceptor'](){const _0xb6c7f8=_0x5d1072;this[_0xb6c7f8(0x372)](this[_0xb6c7f8(0x420)][_0xb6c7f8(0x238)]({'getMutations':_0x10760b=>{const _0x1a574f=_0xb6c7f8;if(_0x10760b['id']===_0x24a2a7[_0x1a574f(0x209)]['id']||_0x10760b['id']===_0x24a2a7['ClearSelectionAllCommand']['id']){const _0x107793=[],_0x57fa5e=[],_0x3401d0=this[_0x1a574f(0x1de)]['getCurrentSelections']()['map'](_0x5aae3b=>_0x5aae3b[_0x1a574f(0x3ee)]),_0x59c2e0=_0x24a2a7[_0x1a574f(0x1db)](this['_univerInstanceService']);if(!_0x59c2e0)return{'redos':[],'undos':[]};const {unitId:_0x70202e,subUnitId:_0x3f55b2}=_0x59c2e0,_0x1f46d8={},_0x27a4cc=this['_sheetsPivotTableConfigModel'][_0x1a574f(0x239)](_0x70202e,_0x3f55b2);if(_0x27a4cc!=null&&_0x27a4cc[_0x1a574f(0x249)])for(const [_0x1947f1,_0x42e66f]of _0x27a4cc){const {unitId:_0x52db7f,subUnitId:_0x38d0c9,row:_0x52f86f,col:_0x37d20b}=_0x42e66f[_0x1a574f(0x357)];_0x52db7f===_0x59c2e0[_0x1a574f(0x29a)]&&_0x38d0c9===_0x59c2e0['subUnitId']&&(_0x1f46d8[_0x52f86f+'-'+_0x37d20b]=_0x1947f1);}return _0x3401d0&&_0x59c2e0&&_0x3401d0['forEach'](_0xdba913=>{_0x374f23['Range']['foreach'](_0xdba913,(_0x5cb4d4,_0x37b55d)=>{const _0x59d4b9=_0x1019,_0x4fe930=_0x5cb4d4+'-'+_0x37b55d;if(_0x1f46d8[_0x4fe930]){const _0x110a43=_0x1f46d8[_0x4fe930];_0x107793['push']({'id':_0x2f23f0['id'],'params':{'unitId':_0x70202e,'subUnitId':_0x3f55b2,'pivotTableId':_0x110a43}});const _0x2f5dc6=this[_0x59d4b9(0x1be)][_0x59d4b9(0x43d)](_0x70202e,_0x110a43),_0x1ae7b9=this[_0x59d4b9(0x1be)][_0x59d4b9(0x458)](_0x70202e,_0x3f55b2,_0x110a43);_0x57fa5e[_0x59d4b9(0x27b)]({'id':_0x1a650d['id'],'params':{'unitId':_0x70202e,'subUnitId':_0x3f55b2,'pivotTableId':_0x110a43,'pivotTableConfig':_0x1ae7b9,'collectionConfig':_0x2f5dc6}});}});}),{'redos':_0x107793,'undos':_0x57fa5e};}return{'redos':[],'undos':[]};}}));}};_0x31eb78=_0x3ac94b([_0x1cbdf9(0x0,_0x374f23[_0x5d1072(0x1d8)]),_0x1cbdf9(0x1,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x446)])),_0x1cbdf9(0x2,_0x374f23[_0x5d1072(0x465)](_0x24a2a7[_0x5d1072(0x2d7)])),_0x1cbdf9(0x3,_0x374f23['Inject'](_0x1cc2c4[_0x5d1072(0x1ea)]))],_0x31eb78);var _0x6a2bcc=Object[_0x5d1072(0x2c5)],_0x1498fc=(_0x33c15b,_0x3d345e,_0x39dca9,_0xfb0949)=>{const _0x3b165e=_0x5d1072;for(var _0x54d7d2=_0xfb0949>0x1?void 0x0:_0xfb0949?_0x6a2bcc(_0x3d345e,_0x39dca9):_0x3d345e,_0x167e4c=_0x33c15b[_0x3b165e(0x468)]-0x1,_0x53be06;_0x167e4c>=0x0;_0x167e4c--)(_0x53be06=_0x33c15b[_0x167e4c])&&(_0x54d7d2=_0x53be06(_0x54d7d2)||_0x54d7d2);return _0x54d7d2;},_0x3a831a=(_0x3f0092,_0x19cb94)=>(_0xe0ab8d,_0x1c31b4)=>_0x19cb94(_0xe0ab8d,_0x1c31b4,_0x3f0092);let _0x4d352a=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x279b25,_0x147c8a,_0x57ade5,_0x450ceb,_0x487084){const _0x7741ef=_0x5d1072;super(),this[_0x7741ef(0x420)]=_0x279b25,this['_injector']=_0x147c8a,this[_0x7741ef(0x443)]=_0x57ade5,this['_sheetsPivotTableConfigModel']=_0x450ceb,this[_0x7741ef(0x2b6)]=_0x487084,this[_0x7741ef(0x397)]();}[_0x5d1072(0x1ae)](_0x42eb94,_0x5b7872,_0x2031f2){const _0x56a31d=_0x5d1072,{pageView:_0x22e819,cornerView:_0xcaed85,rowView:_0x1c71ca,colView:_0x4ee27a,dataView:_0x361a96}=_0x5b7872,_0x445810=_0x42eb94;let _0x487f36;if(_0x2031f2)_0x487f36=[..._0x4dfe41(_0x445810)];else{const _0x3d4087=_0x227f31(_0x445810,_0x22e819,!0x0),_0x4444cf=_0x22e819[_0x56a31d(0x18f)]>=0x0?_0x22e819[_0x56a31d(0x18f)]+0x1:0x0,_0x4cbfd1=_0xcaed85[_0x56a31d(0x215)],_0x1e3d20=_0xcaed85[_0x56a31d(0x392)],_0x5437fe=_0x3d4087['length']>0x0?_0x9545db:0x0,_0x58e4d0=_0x227f31({'row':_0x445810[_0x56a31d(0x23e)]+_0x4444cf+_0x5437fe,'col':_0x445810['col']},_0xcaed85,!0x1,!0x1),_0x35926a=_0x227f31({'row':_0x445810[_0x56a31d(0x23e)]+_0x4444cf+_0x5437fe+_0x4cbfd1,'col':_0x445810[_0x56a31d(0x434)]},_0x1c71ca,!0x1,!0x0),_0x24ddf8=_0x227f31({'row':_0x445810['row']+_0x4444cf+_0x5437fe,'col':_0x445810[_0x56a31d(0x434)]+_0x1e3d20},_0x4ee27a,!0x1,!0x0),_0x3b8f8c=_0x227f31({'row':_0x445810['row']+_0x4444cf+_0x5437fe+_0x4cbfd1,'col':_0x445810[_0x56a31d(0x434)]+_0x1e3d20},_0x361a96,!0x1,!0x0);_0x487f36=[..._0x3d4087,..._0x58e4d0,..._0x35926a,..._0x24ddf8,..._0x3b8f8c];}return _0x487f36;}[_0x5d1072(0x397)](){const _0x19b3da=_0x5d1072;this[_0x19b3da(0x372)](this['_sheetsPivotTableService'][_0x19b3da(0x199)][_0x19b3da(0x2bf)](this[_0x19b3da(0x2b6)][_0x19b3da(0x199)][_0x19b3da(0x1da)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x2f3e72,_0x54e228)=>{const _0x1aec42=_0x19b3da,{cellInfo:_0x149557,view:_0xd3ebac,isEmpty:_0x5b2e04}=_0x54e228,_0x38205f=_0x149557,{unitId:_0x4596c6,subUnitId:_0x18b286}=_0x38205f,_0x46cead=this['_getPivotAppliedRanges'](_0x149557,_0xd3ebac,_0x5b2e04),_0x31ca75=this[_0x1aec42(0x420)][_0x1aec42(0x2f5)]({'unitId':_0x4596c6,'subUnitId':_0x18b286,'ranges':_0x46cead}),_0x368adb=_0x347fea(this[_0x1aec42(0x42a)],_0x4596c6,_0x18b286,_0x46cead);_0x368adb['shouldClear']&&(_0x31ca75[_0x1aec42(0x451)][_0x1aec42(0x27b)](_0x368adb[_0x1aec42(0x3cb)]),_0x31ca75[_0x1aec42(0x252)][_0x1aec42(0x27b)](_0x368adb[_0x1aec42(0x354)]));const _0x385113=this[_0x1aec42(0x45d)](_0xd3ebac,_0x149557);return _0x31ca75[_0x1aec42(0x451)]['push'](..._0x385113[_0x1aec42(0x451)]),_0x31ca75[_0x1aec42(0x252)][_0x1aec42(0x27b)](..._0x385113[_0x1aec42(0x252)]),{'redos':_0x31ca75[_0x1aec42(0x451)],'undos':_0x31ca75[_0x1aec42(0x252)]};}}));}[_0x5d1072(0x45d)](_0x35e5e3,_0x45d94f){const _0x535976=_0x5d1072,{col:_0x5df1a2,unitId:_0x6a867b,subUnitId:_0x936c0}=_0x45d94f,_0x354385=[],_0x435a64=[],_0x4794d3=_0x24a2a7['getSheetCommandTarget'](this['_univerInstanceService'],{'unitId':_0x6a867b,'subUnitId':_0x936c0});if(!_0x45d94f||!_0x35e5e3||!_0x4794d3)return{'undos':_0x435a64,'redos':_0x354385};const _0x24946c=this[_0x535976(0x1be)][_0x535976(0x277)](),{colView:_0x597e33,dataView:_0x434b3e,cornerView:_0x510ded,rowView:_0x574b0f,formatMap:_0x236566}=_0x35e5e3,_0x4dd915=_0x21df27(_0x597e33,_0x24946c,!0x0,_0x236566),_0x3896be=_0x21df27(_0x574b0f,_0x24946c,!0x1,_0x236566),_0x93f89e=_0x59b274(_0x434b3e),_0x44a39f=_0x10a3cc(_0x510ded),{worksheet:_0xedcff6}=_0x4794d3;if(typeof window<'u'&&window[_0x535976(0x485)]){const _0x34320e=_0x132b06['getFontStyleString']({..._0x1ed179['colStyle']}),_0x4944f3=_0x132b06[_0x535976(0x35b)][_0x535976(0x301)](_0x4dd915,_0x34320e)['width']+0x10,_0x50297b=_0x132b06['FontCache'][_0x535976(0x301)](_0x93f89e,_0x34320e)[_0x535976(0x229)],_0x18b500=Math[_0x535976(0x3dd)](Math[_0x535976(0x275)](_0x4944f3,_0x50297b))+0x10,_0xce583=Math[_0x535976(0x3dd)](_0x132b06[_0x535976(0x35b)][_0x535976(0x301)](_0x3896be,_0x34320e)[_0x535976(0x229)]),_0x4cfe3c=Math[_0x535976(0x3dd)](_0x132b06[_0x535976(0x35b)]['getTextSize'](_0x44a39f,_0x34320e)[_0x535976(0x229)]),_0x1d4b71=Math[_0x535976(0x275)](_0xce583,_0x4cfe3c,0x28)+0xc,_0x19d416=_0x597e33[_0x535976(0x392)]+_0x510ded['colCount'],_0x3104c4={},_0x28123e={};for(let _0x41e58f=_0x5df1a2;_0x41e58f<_0x5df1a2+_0x19d416;_0x41e58f++){const _0x22622d=_0xedcff6[_0x535976(0x2c9)](_0x41e58f);_0x3104c4[_0x41e58f]=_0x22622d,_0x41e58f-_0x5df1a2<_0x510ded[_0x535976(0x392)]?_0x28123e[_0x41e58f-_0x5df1a2]=_0x1d4b71:_0x28123e[_0x41e58f-_0x5df1a2]=_0x18b500;}_0x354385['push']({'id':_0x24a2a7[_0x535976(0x460)]['id'],'params':{'subUnitId':_0x936c0,'unitId':_0x6a867b,'ranges':[{'startColumn':_0x5df1a2,'endColumn':_0x5df1a2+_0x19d416-0x1,'startRow':0x0,'endRow':_0xedcff6[_0x535976(0x46e)]()-0x1}],'colWidth':_0x28123e}}),_0x435a64[_0x535976(0x27b)]({'id':_0x24a2a7[_0x535976(0x460)]['id'],'params':{'subUnitId':_0x936c0,'unitId':_0x6a867b,'ranges':[{'startColumn':_0x5df1a2,'endColumn':_0x5df1a2+_0x19d416-0x1,'startRow':0x0,'endRow':_0xedcff6[_0x535976(0x46e)]()-0x1}],'colWidth':_0x3104c4}});}return{'undos':_0x435a64,'redos':_0x354385};}};_0x4d352a=_0x1498fc([_0x3a831a(0x0,_0x374f23[_0x5d1072(0x465)](_0x24a2a7[_0x5d1072(0x446)])),_0x3a831a(0x1,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x3cf)])),_0x3a831a(0x2,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x1d8)])),_0x3a831a(0x3,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotTableConfigModel'])),_0x3a831a(0x4,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotTableService']))],_0x4d352a);var _0x14f5cd=Object['getOwnPropertyDescriptor'],_0x8ec257=(_0x4e334a,_0x334a6a,_0x1c5e4d,_0x5683b5)=>{const _0x4f4f5e=_0x5d1072;for(var _0x29a345=_0x5683b5>0x1?void 0x0:_0x5683b5?_0x14f5cd(_0x334a6a,_0x1c5e4d):_0x334a6a,_0x163db9=_0x4e334a[_0x4f4f5e(0x468)]-0x1,_0x4ff64d;_0x163db9>=0x0;_0x163db9--)(_0x4ff64d=_0x4e334a[_0x163db9])&&(_0x29a345=_0x4ff64d(_0x29a345)||_0x29a345);return _0x29a345;},_0x4f04aa=(_0x104f4d,_0x20fb2a)=>(_0x5cc1c5,_0xe84ecb)=>_0x20fb2a(_0x5cc1c5,_0xe84ecb,_0x104f4d);let _0x7206cc=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x5e1334,_0x1524f9,_0x218b1c,_0x54a4f8,_0x34c1fd,_0x18afce,_0x31013c){const _0x2f7b54=_0x5d1072;super(),_0x1e0b19(this,_0x2f7b54(0x410),new _0x374f23[(_0x2f7b54(0x218))]()),(this[_0x2f7b54(0x42a)]=_0x5e1334,this[_0x2f7b54(0x2e6)]=_0x1524f9,this[_0x2f7b54(0x454)]=_0x218b1c,this[_0x2f7b54(0x443)]=_0x54a4f8,this[_0x2f7b54(0x1be)]=_0x34c1fd,this[_0x2f7b54(0x2d0)]=_0x18afce,this['_sheetInterceptorService']=_0x31013c,this[_0x2f7b54(0x2cc)]());}[_0x5d1072(0x2cc)](){const _0x27e63d=_0x5d1072,_0xb896dd=(_0x50f992,_0x32ff07)=>{const _0x446d32=_0x1019,_0x39b316=this[_0x446d32(0x443)][_0x446d32(0x2fb)](_0x374f23[_0x446d32(0x1e8)][_0x446d32(0x2eb)]);if(!_0x39b316||!(_0x39b316==null?void 0x0:_0x39b316[_0x446d32(0x317)](_0x32ff07)))return;this['disposableCollection'][_0x446d32(0x259)]();const _0x5c6b73=_0x3c208e=>this['_refRangeHandle'](_0x3c208e,_0x50f992,_0x32ff07),_0x49d6a2=this[_0x446d32(0x1be)]['getSubUnitPivotConfigs'](_0x50f992,_0x32ff07);if(!(_0x49d6a2!=null&&_0x49d6a2[_0x446d32(0x249)]))return;Array[_0x446d32(0x2d9)](_0x49d6a2[_0x446d32(0x39c)]())[_0x446d32(0x36c)](_0x55af4f=>{const _0x5f53ee=_0x446d32,{row:_0x1715d6,col:_0x1681e7}=_0x55af4f[_0x5f53ee(0x357)];return _0x374f23[_0x5f53ee(0x3d6)](_0x1715d6,_0x1681e7);})[_0x446d32(0x274)](_0x57c39f=>{const _0x1a7cf3=_0x446d32;this[_0x1a7cf3(0x410)][_0x1a7cf3(0x346)](this['_refRangeService'][_0x1a7cf3(0x26b)](_0x57c39f,_0x5c6b73,_0x50f992,_0x32ff07));});},_0x596a6b=()=>{const _0x8c8843=_0x1019,_0x231a86=this[_0x8c8843(0x443)][_0x8c8843(0x2fb)](_0x374f23[_0x8c8843(0x1e8)][_0x8c8843(0x2eb)]);if(_0x231a86){const _0xf448ba=_0x231a86['getActiveSheet']();if(!_0xf448ba)return;_0xb896dd(_0x231a86[_0x8c8843(0x1e1)](),_0xf448ba[_0x8c8843(0x300)]());}};this['disposeWithMe'](this[_0x27e63d(0x454)][_0x27e63d(0x44f)](_0x560ae2=>{const _0x228a46=_0x27e63d;if(_0x560ae2['id']===_0x24a2a7['SetWorksheetActiveOperation']['id']){const _0x3c0a37=_0x560ae2['params'],_0x3f23de=_0x3c0a37[_0x228a46(0x294)],_0x4cf54f=_0x3c0a37[_0x228a46(0x29a)];if(!_0x3f23de||!_0x4cf54f)return;_0xb896dd(_0x4cf54f,_0x3f23de);}})),this['disposeWithMe'](this[_0x27e63d(0x1be)][_0x27e63d(0x25c)][_0x27e63d(0x47a)](_0xd8470a=>{_0xd8470a&&_0x596a6b();})),this[_0x27e63d(0x372)](this['_sheetsPivotTableConfigModel'][_0x27e63d(0x2b7)][_0x27e63d(0x47a)](_0x1f1d77=>{const _0x1b5357=_0x27e63d,_0x2b531d=_0x24a2a7[_0x1b5357(0x1db)](this[_0x1b5357(0x443)]);if(!_0x2b531d)return;const {unitId:_0x5cdc34,subUnitId:_0x312ecd}=_0x2b531d,{unitId:_0x577bb7,subUnitId:_0x50eab8}=_0x1f1d77;_0x5cdc34!==_0x577bb7||_0x312ecd!==_0x50eab8||_0xb896dd(_0x5cdc34,_0x312ecd);})),_0x596a6b();}[_0x5d1072(0x41c)](_0x106d35,_0xc9800e,_0x27303f){const _0x4d59f4=_0x5d1072;switch(_0x106d35['id']){case _0x24a2a7[_0x4d59f4(0x489)]['id']:return this[_0x4d59f4(0x2be)](_0x106d35[_0x4d59f4(0x3aa)],_0xc9800e,_0x27303f);}return{'redos':[],'undos':[]};}[_0x5d1072(0x2be)](_0x5ca152,_0x355aa2,_0x2689c4){const _0x4c2138=_0x5d1072,{fromRange:_0x4e69d1,toRange:_0x6f7025}=_0x5ca152,_0x35c509=[],_0xabe977=[],_0x228145=_0x24a2a7[_0x4c2138(0x1db)](this[_0x4c2138(0x443)]);if(!_0x228145)return{'undos':_0xabe977,'redos':_0x35c509};if(_0x355aa2!==_0x228145[_0x4c2138(0x29a)]||_0x2689c4!==_0x228145[_0x4c2138(0x294)])return{'undos':_0xabe977,'redos':_0x35c509};const _0xc3306f=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x355aa2,_0x2689c4);if(_0xc3306f!=null&&_0xc3306f[_0x4c2138(0x249)])for(const [_0x171e5d,_0x4fd839]of _0xc3306f){const {unitId:_0x4c4815,subUnitId:_0x5080f9,row:_0x3bf9d2,col:_0x481d41}=_0x4fd839[_0x4c2138(0x357)];if(_0x4c4815===_0x228145[_0x4c2138(0x29a)]&&_0x5080f9===_0x228145[_0x4c2138(0x294)]){const _0x2e4d4d=_0x374f23[_0x4c2138(0x3d6)](_0x3bf9d2,_0x481d41);if(_0x374f23[_0x4c2138(0x236)][_0x4c2138(0x1c1)](_0x2e4d4d,_0x4e69d1)){const _0x4f35b9=_0x3bf9d2-_0x4e69d1[_0x4c2138(0x378)],_0x32e4c1=_0x481d41-_0x4e69d1[_0x4c2138(0x3b9)],_0x792197={'row':_0x6f7025[_0x4c2138(0x378)]+_0x4f35b9,'col':_0x6f7025[_0x4c2138(0x3b9)]+_0x32e4c1};_0x35c509[_0x4c2138(0x27b)]({'id':_0x24c983['id'],'params':{'unitId':_0x4c4815,'subUnitId':_0x5080f9,'pivotTableId':_0x171e5d,'targetCellPosition':_0x792197}}),_0xabe977[_0x4c2138(0x27b)]({'id':_0x24c983['id'],'params':{'unitId':_0x4c4815,'subUnitId':_0x5080f9,'pivotTableId':_0x171e5d,'targetCellPosition':{'row':_0x3bf9d2,'col':_0x481d41}}});const _0x47cc42=_0x792197[_0x4c2138(0x23e)]-_0x3bf9d2,_0x199e1f=_0x792197[_0x4c2138(0x434)]-_0x481d41,_0x134439=[],_0x37599a=this[_0x4c2138(0x2d0)][_0x4c2138(0x1b9)](_0x4c4815,_0x5080f9,_0x171e5d),_0x5efa16=_0x37599a==null?void 0x0:_0x37599a[_0x4c2138(0x1bc)];if(_0x5efa16){Object[_0x4c2138(0x3d8)](_0x5efa16)[_0x4c2138(0x274)](_0x591ec7=>{_0x5efa16[_0x591ec7]['forEach'](_0x1e268d=>{const _0x4736c5=_0x1019,_0x3412b9={..._0x1e268d};_0x3412b9[_0x4736c5(0x378)]=_0x1e268d[_0x4736c5(0x378)]+_0x47cc42,_0x3412b9[_0x4736c5(0x3a2)]=_0x1e268d[_0x4736c5(0x3a2)]+_0x47cc42,_0x3412b9[_0x4736c5(0x3b9)]=_0x1e268d[_0x4736c5(0x3b9)]+_0x199e1f,_0x3412b9['endColumn']=_0x1e268d[_0x4736c5(0x217)]+_0x199e1f,_0x134439['push'](_0x3412b9);});});const _0x325720=this[_0x4c2138(0x420)][_0x4c2138(0x2f5)]({'unitId':_0x4c4815,'subUnitId':_0x5080f9,'ranges':_0x134439});_0x35c509[_0x4c2138(0x27b)](..._0x325720[_0x4c2138(0x451)]),_0xabe977[_0x4c2138(0x27b)](..._0x325720[_0x4c2138(0x252)]);const _0x31742e=_0x347fea(this[_0x4c2138(0x42a)],_0x4c4815,_0x5080f9,_0x134439);_0x31742e[_0x4c2138(0x1ad)]&&(_0x35c509[_0x4c2138(0x27b)](_0x31742e[_0x4c2138(0x3cb)]),_0xabe977['push'](_0x31742e[_0x4c2138(0x354)]));}}}}return{'redos':_0x35c509,'undos':_0xabe977};}};_0x7206cc=_0x8ec257([_0x4f04aa(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector'])),_0x4f04aa(0x1,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x448)])),_0x4f04aa(0x2,_0x374f23[_0x5d1072(0x386)]),_0x4f04aa(0x3,_0x374f23[_0x5d1072(0x1d8)]),_0x4f04aa(0x4,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4[_0x5d1072(0x1ea)])),_0x4f04aa(0x5,_0x374f23['Inject'](_0x1cc2c4[_0x5d1072(0x3ba)])),_0x4f04aa(0x6,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x446)]))],_0x7206cc);var _0x4e6dfe=Object[_0x5d1072(0x2c5)],_0x4fb090=(_0x3137aa,_0x5add03,_0x197447,_0x42e6d8)=>{const _0x21be0d=_0x5d1072;for(var _0x761133=_0x42e6d8>0x1?void 0x0:_0x42e6d8?_0x4e6dfe(_0x5add03,_0x197447):_0x5add03,_0x33fbd4=_0x3137aa[_0x21be0d(0x468)]-0x1,_0x4eb8d3;_0x33fbd4>=0x0;_0x33fbd4--)(_0x4eb8d3=_0x3137aa[_0x33fbd4])&&(_0x761133=_0x4eb8d3(_0x761133)||_0x761133);return _0x761133;},_0x503092=(_0x247676,_0x527590)=>(_0x5c4406,_0x6a1a4b)=>_0x527590(_0x5c4406,_0x6a1a4b,_0x247676);let _0x5be276=class extends _0x374f23['Disposable']{constructor(_0x5931e8,_0x13f4da){const _0x292e6a=_0x5d1072;super(),this['_sheetInterceptorService']=_0x5931e8,this['_sheetsPivotTableConfigModel']=_0x13f4da,this[_0x292e6a(0x2ec)]();}[_0x5d1072(0x2ec)](){const _0x1394a5=_0x5d1072;this[_0x1394a5(0x372)](this[_0x1394a5(0x420)][_0x1394a5(0x238)]({'getMutations':_0x235abc=>{const _0x9cece2=_0x1394a5;if(_0x235abc['id']===_0x24a2a7['RemoveSheetCommand']['id']){const _0x48ecb0=[],_0x4d8572=[],_0x3f3cfc=_0x235abc['params'],{unitId:_0x4646fa,subUnitId:_0x535c1d}=_0x3f3cfc;if(!_0x4646fa||!_0x535c1d)return{'undos':_0x4d8572,'redos':_0x48ecb0};const _0x3489ab=this['_sheetsPivotTableConfigModel'][_0x9cece2(0x239)](_0x4646fa,_0x535c1d);if(_0x3489ab!=null&&_0x3489ab['size'])for(const [_0x2bfd2c,_0xba6a42]of _0x3489ab){_0x48ecb0[_0x9cece2(0x27b)]({'id':_0x2f23f0['id'],'params':{'unitId':_0x4646fa,'subUnitId':_0x535c1d,'pivotTableId':_0x2bfd2c}});const _0x507304={...this[_0x9cece2(0x1be)]['getCollection'](_0x4646fa,_0x2bfd2c)};_0x4d8572[_0x9cece2(0x27b)]({'id':_0x1a650d['id'],'params':{'unitId':_0x4646fa,'subUnitId':_0x535c1d,'pivotTableId':_0x2bfd2c,'pivotTableConfig':_0xba6a42,'collectionConfig':_0x507304}});}return{'redos':_0x48ecb0,'undos':_0x4d8572};}return{'redos':[],'undos':[]};}}));}};_0x5be276=_0x4fb090([_0x503092(0x0,_0x374f23[_0x5d1072(0x465)](_0x24a2a7[_0x5d1072(0x446)])),_0x503092(0x1,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotTableConfigModel']))],_0x5be276);var _0x4a8062=Object[_0x5d1072(0x2c5)],_0x277434=(_0x545ce5,_0x382b79,_0x4e4a8e,_0xcc175f)=>{const _0x570d24=_0x5d1072;for(var _0x317111=_0xcc175f>0x1?void 0x0:_0xcc175f?_0x4a8062(_0x382b79,_0x4e4a8e):_0x382b79,_0x41fd81=_0x545ce5[_0x570d24(0x468)]-0x1,_0x179adc;_0x41fd81>=0x0;_0x41fd81--)(_0x179adc=_0x545ce5[_0x41fd81])&&(_0x317111=_0x179adc(_0x317111)||_0x317111);return _0x317111;},_0x3d601a=(_0x36a147,_0x8cd1e0)=>(_0x51834e,_0x581afd)=>_0x8cd1e0(_0x51834e,_0x581afd,_0x36a147);let _0x21e85a=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x489bc7,_0x294362,_0x3b9852,_0x4c85a8,_0x43a1fa,_0x588183){const _0x489466=_0x5d1072;super(),this[_0x489466(0x454)]=_0x489bc7,this[_0x489466(0x24b)]=_0x294362,this[_0x489466(0x2d0)]=_0x3b9852,this[_0x489466(0x1be)]=_0x4c85a8,this[_0x489466(0x443)]=_0x43a1fa,this[_0x489466(0x1aa)]=_0x588183,this['_initDataSendListener'](),this[_0x489466(0x22d)]();}[_0x5d1072(0x3ca)](){const _0x5369bd=_0x5d1072;this[_0x5369bd(0x372)](this[_0x5369bd(0x454)]['onCommandExecuted'](_0x411052=>{const _0x47d39f=_0x5369bd;if(_0x411052['id']!==_0x38eba3['id'])return;const _0x379f00=_0x411052['params'];this[_0x47d39f(0x24b)]['handleAsyncResponse'](_0x379f00);})),this[_0x5369bd(0x372)](this['_commandService'][_0x5369bd(0x44f)](_0x4b2084=>{const _0x567464=_0x5369bd;if(_0x4b2084['id']===_0x306833['id']){const _0x537eef=_0x4b2084['params'];if(_0x537eef){const {unitId:_0x4f4bf6,subUnitId:_0x4e62ed,oldSubUnitId:_0x56846b,pivotTableId:_0x179fd3,pivotTableConfig:_0x4cc9ae,collectionConfig:_0x1a7029}=_0x537eef;this[_0x567464(0x1be)][_0x567464(0x37c)](_0x4f4bf6,_0x56846b,_0x537eef[_0x567464(0x280)],null),this[_0x567464(0x1be)]['updateConfigCache'](_0x4f4bf6,_0x4e62ed,_0x179fd3,_0x4cc9ae),this[_0x567464(0x1be)][_0x567464(0x3e5)](_0x4f4bf6,_0x1a7029);}}})),this[_0x5369bd(0x372)](this[_0x5369bd(0x454)]['onCommandExecuted'](_0x8d1067=>{const _0x76534c=_0x5369bd;if(_0x8d1067['id']!==_0x4d7335['id'])return;const _0x5f82ae=_0x24a2a7[_0x76534c(0x1db)](this['_univerInstanceService']);if(!_0x5f82ae)return;const {unitId:_0xb321d6,subUnitId:_0x23d10d}=_0x5f82ae,_0x41cf7d=_0x8d1067[_0x76534c(0x3aa)];if(_0x41cf7d[_0x76534c(0x3e4)]&&Object[_0x76534c(0x3d8)](_0x41cf7d[_0x76534c(0x3e4)])[_0x76534c(0x274)](_0x28d91f=>{const _0x4fd5b9=_0x76534c;var _0x43bebb;(_0x43bebb=_0x41cf7d[_0x4fd5b9(0x3e4)])!=null&&_0x43bebb[_0x28d91f]&&this[_0x4fd5b9(0x1be)][_0x4fd5b9(0x3e5)](_0x28d91f,_0x41cf7d[_0x4fd5b9(0x3e4)][_0x28d91f]);}),_0x41cf7d[_0x76534c(0x2c6)]){const _0x46232e=_0x41cf7d[_0x76534c(0x2c6)],{unitId:_0x2b45ed,subUnitId:_0x4ed2ed,view:_0x498ee1,pivotTableId:_0x3cb383,type:_0x2c7609,pivotConfig:_0x3b308f}=_0x46232e;if(_0x2c7609===_0x5ae422['Delete'])this[_0x76534c(0x2d0)][_0x76534c(0x425)]({'unitId':_0x2b45ed,'subUnitId':_0x4ed2ed,'pivotTableId':_0x3cb383,'type':_0x2c7609}),this['_sheetsPivotTableConfigModel'][_0x76534c(0x37c)](_0x2b45ed,_0x4ed2ed,_0x3cb383,null);else{const _0x1fe673=new _0x2eef51['PivotView']();_0x1fe673['formJSON'](_0x498ee1),this[_0x76534c(0x1be)][_0x76534c(0x37c)](_0x2b45ed,_0x4ed2ed,_0x3cb383,_0x3b308f),this[_0x76534c(0x2d0)]['clearRenderCache']({'unitId':_0x2b45ed,'subUnitId':_0x4ed2ed,'pivotTableId':_0x3cb383,'type':_0x2c7609,'view':_0x1fe673}),this[_0x76534c(0x2d0)][_0x76534c(0x389)]({'unitId':_0x2b45ed,'subUnitId':_0x4ed2ed,'view':_0x1fe673,'pivotTableId':_0x3cb383,'type':_0x2c7609});}}else _0x41cf7d[_0x76534c(0x39b)]&&(_0x41cf7d[_0x76534c(0x39b)][_0x76534c(0x274)](_0x4af471=>{const _0x1aef14=_0x76534c,{unitId:_0x8d73be,subUnitId:_0xd9ffd9,view:_0x4468e7,pivotTableId:_0x42c642,type:_0x11736f,pivotConfig:_0x3a9a19}=_0x4af471,_0x487e39=new _0x2eef51[(_0x1aef14(0x28f))]();_0x487e39['formJSON'](_0x4468e7),this['_sheetsPivotTableConfigModel'][_0x1aef14(0x37c)](_0x8d73be,_0xd9ffd9,_0x42c642,_0x3a9a19),this[_0x1aef14(0x2d0)]['updateRenderCache']({'unitId':_0x8d73be,'subUnitId':_0xd9ffd9,'view':_0x487e39,'pivotTableId':_0x42c642,'type':_0x11736f});}),this['_sheetsPivotTableConfigModel'][_0x76534c(0x3d3)]());this['_sheetsPivotTableAdaptorModel'][_0x76534c(0x43a)](_0xb321d6,_0x23d10d);}));}[_0x5d1072(0x22d)](){const _0x3b5e53=_0x5d1072;this[_0x3b5e53(0x1aa)]['register'](_0x2daf6b['id'],{'commandId':_0x2daf6b['id'],'getDirtyData'(_0x319e33){const _0x41085b=_0x3b5e53;return{'dirtyUnitFeatureMap':_0x319e33[_0x41085b(0x3aa)]};}});}};_0x21e85a=_0x277434([_0x3d601a(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x386)])),_0x3d601a(0x1,_0x374f23['Inject'](_0x1cc2c4['SheetsPivotRPCService'])),_0x3d601a(0x2,_0x374f23['Inject'](_0x1cc2c4[_0x5d1072(0x3ba)])),_0x3d601a(0x3,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4[_0x5d1072(0x1ea)])),_0x3d601a(0x4,_0x374f23['Inject'](_0x374f23['IUniverInstanceService'])),_0x3d601a(0x5,_0x925485[_0x5d1072(0x192)])],_0x21e85a);var _0x3d181a=Object[_0x5d1072(0x46f)],_0x3af6cb=Object[_0x5d1072(0x2c5)],_0x4af3e5=(_0x28d3b4,_0x4b449c,_0x2e0252)=>_0x4b449c in _0x28d3b4?_0x3d181a(_0x28d3b4,_0x4b449c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e0252}):_0x28d3b4[_0x4b449c]=_0x2e0252,_0x497c72=(_0x1141ad,_0x1375bf,_0x3360bb,_0x12d98c)=>{const _0x1f875f=_0x5d1072;for(var _0x50e287=_0x12d98c>0x1?void 0x0:_0x12d98c?_0x3af6cb(_0x1375bf,_0x3360bb):_0x1375bf,_0x4ce5b7=_0x1141ad[_0x1f875f(0x468)]-0x1,_0x970e21;_0x4ce5b7>=0x0;_0x4ce5b7--)(_0x970e21=_0x1141ad[_0x4ce5b7])&&(_0x50e287=_0x970e21(_0x50e287)||_0x50e287);return _0x50e287;},_0x1aac74=(_0x1c43be,_0xd010be)=>(_0x3ef25a,_0x4eb8ee)=>_0xd010be(_0x3ef25a,_0x4eb8ee,_0x1c43be),_0x49dc87=(_0x4586e9,_0x5dd6eb,_0x16ceec)=>_0x4af3e5(_0x4586e9,typeof _0x5dd6eb!=_0x5d1072(0x430)?_0x5dd6eb+'':_0x5dd6eb,_0x16ceec);_0x1cc2c4[_0x5d1072(0x40c)]=class extends _0x374f23['Plugin']{constructor(_0x14cd1d=_0x28efdf,_0x2ef5a0,_0x596dab,_0x125116,_0x340fbf){const _0x360806=_0x5d1072;super(),this[_0x360806(0x38b)]=_0x14cd1d,this[_0x360806(0x42a)]=_0x2ef5a0,this[_0x360806(0x454)]=_0x596dab,this[_0x360806(0x40f)]=_0x125116,this[_0x360806(0x41a)]=_0x340fbf;const {..._0x5e0a08}=_0x374f23[_0x360806(0x22e)]({},_0x28efdf,this[_0x360806(0x38b)]);this['_configService'][_0x360806(0x21b)](_0x339ccc,_0x5e0a08),this['_initRegisterCommand'](),this[_0x360806(0x1ab)]();}['_initConfig'](){const _0x1f10cd=_0x5d1072;var _0x3052e9;const _0x1464f=(_0x3052e9=this[_0x1f10cd(0x38b)])==null?void 0x0:_0x3052e9[_0x1f10cd(0x186)];this[_0x1f10cd(0x40f)]['setConfig'](_0x1e657c,_0x1464f===!0x0);}['onStarting'](){const _0x1b5aba=_0x5d1072;var _0x23044b;let _0x4a7282=[];const _0x305496=(_0x23044b=this[_0x1b5aba(0x38b)])==null?void 0x0:_0x23044b[_0x1b5aba(0x186)];_0x305496===!0x0?_0x4a7282=[[_0x1cc2c4['SheetsPivotTableService']],[_0x1cc2c4['SheetsPivotRPCService']],[_0x21e85a],[_0x1cc2c4[_0x1b5aba(0x3ba)]],[_0x1cc2c4[_0x1b5aba(0x1ea)]],[_0x5be276],[_0x31eb78],[_0x7206cc],[_0x4d352a]]:_0x305496===!0x1?_0x4a7282=[[_0x1cc2c4[_0x1b5aba(0x38e)]],[_0x5d6160]]:_0x305496===void 0x0&&(_0x4a7282=[[_0x1cc2c4[_0x1b5aba(0x38e)]],[_0x5d6160],[_0x1cc2c4[_0x1b5aba(0x3f9)]],[_0x1cc2c4[_0x1b5aba(0x333)]],[_0x21e85a],[_0x1cc2c4[_0x1b5aba(0x3ba)]],[_0x1cc2c4[_0x1b5aba(0x1ea)]],[_0x5be276],[_0x31eb78],[_0x7206cc],[_0x4d352a]]),_0x4a7282[_0x1b5aba(0x274)](_0x12fbe6=>this['_injector'][_0x1b5aba(0x346)](_0x12fbe6)),[_0x5d6160,_0x21e85a,_0x1cc2c4[_0x1b5aba(0x3f9)],_0x31eb78,_0x5be276,_0x7206cc,_0x4d352a][_0x1b5aba(0x274)](_0x365657=>{const _0xb1fe1=_0x1b5aba;this['_injector'][_0xb1fe1(0x1b5)](_0x365657)&&this[_0xb1fe1(0x42a)][_0xb1fe1(0x411)](_0x365657);});}[_0x5d1072(0x303)](){const _0xbc26ea=_0x5d1072;[_0x1cee8d,_0x54fb2d,_0x4bfc01,_0x225bd3,_0x490c7c,_0x2c9eb9,_0x1206a2,_0xc6bcab,_0x39e618,_0x3d55a3,_0x1ebb0c,_0x5784b7,_0x4007f1,_0x1b9cf3,_0x1a650d,_0x48a40f,_0x2f23f0,_0x33b47c,_0x2dc301,_0x1b4e8f,_0xd9e8fb,_0x1c531a,_0x3a7b5e,_0x4b3e58,_0x138786,_0x6566df,_0x24c983,_0x23d358,_0x38eba3,_0x4d7335,_0x5703ce,_0x96a821,_0x55c967,_0x9f6240,_0x4a9d2d,_0x1708ad,_0x23bfb9,_0x2daf6b,_0x306833,_0x58248d,_0x58f9b7,_0x1a16fb,_0x1e91f0][_0xbc26ea(0x274)](_0x187466=>{const _0xe77477=_0xbc26ea;var _0x57413b;(_0x57413b=this[_0xe77477(0x41a)])==null||_0x57413b[_0xe77477(0x35f)](_0x187466),this[_0xe77477(0x454)][_0xe77477(0x265)](_0x187466);});}},_0x49dc87(_0x1cc2c4['UniverSheetsPivotTablePlugin'],_0x5d1072(0x205),_0xcaa86f),_0x49dc87(_0x1cc2c4[_0x5d1072(0x40c)],'type',_0x374f23['UniverInstanceType'][_0x5d1072(0x2eb)]),_0x1cc2c4[_0x5d1072(0x40c)]=_0x497c72([_0x374f23[_0x5d1072(0x457)](_0x2169aa[_0x5d1072(0x234)]),_0x1aac74(0x1,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x3cf)])),_0x1aac74(0x2,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x386)])),_0x1aac74(0x3,_0x374f23[_0x5d1072(0x224)]),_0x1aac74(0x4,_0x374f23['Optional'](_0x37f267[_0x5d1072(0x417)]))],_0x1cc2c4[_0x5d1072(0x40c)]),_0x1cc2c4[_0x5d1072(0x399)]=_0x4bfc01,_0x1cc2c4[_0x5d1072(0x2ff)]=_0x33b47c,_0x1cc2c4[_0x5d1072(0x2dd)]=_0x54fb2d,_0x1cc2c4[_0x5d1072(0x3d4)]=_0x1a650d,_0x1cc2c4[_0x5d1072(0x2f7)]=_0x1cee8d,_0x1cc2c4['BLANK_ROW_COUNT']=_0x9545db,_0x1cc2c4['DEFAULT_PIVOT_NUMBER']=_0x5639c4,_0x1cc2c4[_0x5d1072(0x30a)]=_0x225bd3,_0x1cc2c4['MovePivotTableCommand']=_0x4007f1,_0x1cc2c4[_0x5d1072(0x1d4)]=_0x5370e2,_0x1cc2c4[_0x5d1072(0x36b)]=_0x1b9cf3,_0x1cc2c4['PivotTableOperationEnum']=_0x5ae422,_0x1cc2c4['PivotTableViewDirtyMarkOperation']=_0x2daf6b,_0x1cc2c4[_0x5d1072(0x326)]=_0x55d455,_0x1cc2c4[_0x5d1072(0x2a9)]=_0x490c7c,_0x1cc2c4[_0x5d1072(0x2db)]=_0x1c531a,_0x1cc2c4['RemovePivotTableMutation']=_0x2f23f0,_0x1cc2c4[_0x5d1072(0x3eb)]=_0x3a7b5e,_0x1cc2c4[_0x5d1072(0x299)]=_0x1e91f0,_0x1cc2c4[_0x5d1072(0x47f)]=_0x339ccc,_0x1cc2c4[_0x5d1072(0x304)]=_0xcaa86f,_0x1cc2c4['SetPivotCollapseCommand']=_0xc6bcab,_0x1cc2c4[_0x5d1072(0x1fa)]=_0x4b3e58,_0x1cc2c4[_0x5d1072(0x2a5)]=_0x9f6240,_0x1cc2c4[_0x5d1072(0x272)]=_0x1a16fb,_0x1cc2c4[_0x5d1072(0x283)]=_0x3d55a3,_0x1cc2c4['SetPivotFilterMutation']=_0xd9e8fb,_0x1cc2c4['SetPivotOptionMutation']=_0x6566df,_0x1cc2c4['SetPivotPositionMutation']=_0x24c983,_0x1cc2c4[_0x5d1072(0x2f4)]=_0x39e618,_0x1cc2c4['SetPivotSortMutation']=_0x138786,_0x1cc2c4[_0x5d1072(0x3c8)]=_0x55c967,_0x1cc2c4[_0x5d1072(0x320)]=_0x58248d,_0x1cc2c4[_0x5d1072(0x195)]=_0x58f9b7,_0x1cc2c4[_0x5d1072(0x1f1)]=_0x1206a2,_0x1cc2c4[_0x5d1072(0x3ce)]=_0x5703ce,_0x1cc2c4[_0x5d1072(0x371)]=_0x1ebb0c,_0x1cc2c4[_0x5d1072(0x3bc)]=_0x23bfb9,_0x1cc2c4[_0x5d1072(0x1a0)]=_0x5784b7,_0x1cc2c4['UpdatePivotTableSourceRangeMutation']=_0x1708ad,_0x1cc2c4[_0x5d1072(0x2a4)]=_0x2c9eb9,_0x1cc2c4[_0x5d1072(0x1bb)]=_0x96a821,_0x1cc2c4[_0x5d1072(0x226)]=_0x93d0f,_0x1cc2c4[_0x5d1072(0x416)]=_0x122880,_0x1cc2c4[_0x5d1072(0x3f5)]=_0x1ed179,_0x1cc2c4['generateSetRangeValueMutations']=_0x347fea,_0x1cc2c4[_0x5d1072(0x225)]=_0x227f31,_0x1cc2c4[_0x5d1072(0x437)]=_0x4dfe41,_0x1cc2c4['getFieldListByArea']=_0x424751,_0x1cc2c4['getInsertRowColMutations']=_0x20a5db,_0x1cc2c4['getPivotCellInfo']=_0x21a2ff,_0x1cc2c4[_0x5d1072(0x309)]=_0x43fd63,_0x1cc2c4['getPivotTableInfo']=_0xb9c753,_0x1cc2c4[_0x5d1072(0x3a4)]=_0x99791,_0x1cc2c4[_0x5d1072(0x41f)]=_0x17e537,Object[_0x5d1072(0x46f)](_0x1cc2c4,Symbol[_0x5d1072(0x2fc)],{'value':_0x5d1072(0x21f)});}));function _0x2db2(){const _0x549b6a=['sheet.mutation.set-pivot-sort-info','UpdatePivotValuePositionCommand','SetPivotFieldFormatMutation','_ensureViewDataMap','INTERCEPTOR_POINT','valueFields','RemovePivotFieldCommand','Count\x20of\x20','parse','Subject','colRanges','Quarter','delete','SetCollapse','PivotTableValuePositionEnum','handleSourceRangeChange','Disposable','addCollectionByJSON','sideEffectUpdateWorkerCache','_sheetsPivotTableService','pivotConfigChange$','fontRenderExtension','setPivotCollapse','ptn','cornerRanges','_pivotConfigChange$','splice','getRefRangeMutationsByMoveRange','intercept','@univerjs/core','SetSubtotalType','Column\x20','MoveRangeMutation','level','getOwnPropertyDescriptor','single','pushUndoRedo','updatePivotTableRangeInfo','getColumnWidth','exports','isNaN','_onRefRangeChange','getRangeStartEndInfo','limit\x20pivot','sheets-pivot.dateGroup.year','_sheetsPivotTableAdaptorModel','_resourceManagerService','RemoveSheetMutation','sheets-pivot.countNumsName','pbt','numberToABC','_deleteModelCache','SheetsSelectionsService','drillDown','from','textInfo','RemovePivotFieldMutation','_localeService','AddPivotTableCommand','sheets-pivot.productName','sheet.command.add-pivot-table-with-config','AddField','Sum\x20of\x20','dataFieldManagerConfig','pageStyle','InterceptorManager','setPivotTable','_refRangeService','Date','sheet.mutation.rename-pivot-field','_viewUpdate$','getDataFieldId','UNIVER_SHEET','_initRemoveSheetCommandInterceptor','getDataFieldBySourceName','prefix','sheets-pivot.emptyPivot.column','getRangeData','Filter','getUnit','setPivotFilter','SetPivotSortCommand','generateMutationsByRanges','SetPivotCollapse','AddPivotTableWithConfigCommand','handleMoveRange','SHEET_PIVOT_IN_MAIN_THREAD','UniverCore','getCurrentUnitForType','toStringTag','sheets-pivot.cellDateGroupDisplay.year','COMMAND','AddPivotFieldMutation','getSheetId','getTextSize','refreshGroupField','_initRegisterCommand','SHEET_PIVOT_TABLE_PLUGIN','ResetPivotTable','value','find','_pivotTableMatrixInfo','getPivotInfoByLicense','MovePivotFieldCommand','IResourceManagerService','getFieldCountByArea','sheets-pivot.blank','rowInfo','GlobalComputingStatusService','dateType','dataRangeInfo','sheet.command.pivot-drill-down','panel','_subjectViewChange','getLastRow','777800rGIgKS','getSheetBySheetId','_ensurePivotTableRangeInfo','Month','_initClearSelectionCommandInterceptor','getIntersectsPivotTable','unshift','_createExclusiveRange','CommandType','varp','SetPivotValueFilterCommand','SetFilterInfo','sheets-pivot.cellDateGroupDisplay.hour','_requestResolvers','getFieldIds','CELL_CONTENT','PositionType','addFieldWithSourceId','fromJSON','PivotTableFiledAreaEnum','getNoUsedDataFieldIds','sheets-pivot.stdDevpName','Grand\x20Total','InsertSheetUndoMutationFactory','@univerjs/rpc','RemovePivotField','registerCallbackWithEvent','sheet.command.add-pivot-table','Set','SheetsPivotRPCService','SetPivotSort','getTargetByPivotTableId','_pivotTableRangeInfo','90033iwkZPh','getPivotDirtyViewInfo','SetOptions','refreshData','ObjectMatrix','sheets-pivot.dateGroup.yearMonth','token','HourMinute','update','setTextInfo','filter','@univerjs-pro/license','sourceName','sheets-pivot.cellDateGroupDisplay.date','SetRangeValuesUndoMutationFactory','add','UniverSheetsFilter','_initSnapshot','PivotFilterTypeEnum','createAsyncInterceptorKey','addField','info','deleteDataField','fieldsCollectionChange$','FieldsCollection','countNums','getHeaderMapItem','column','getName','setRangeValueUndoMutation','_initPivotTextInfo','UniverProEnginePivot','targetCellInfo','AddPivotTable','LifecycleService','options','FontCache','AddPivotField','getFieldById','Existing','registerSyncingMutations','getPivotTableCellData','concat','sheets-pivot.emptyPivot.filter','valid','sheet.mutation.remove-pivot-field','sheets.tabs.sheet','sheet.mutation.set-pivot-option','getDataFieldManager','getUpdateRangeDeleteIds','sheets-pivot.stdDevName','Delete','PivotDrillDownCommand','map','sheet.mutation.set-pivot-position','pushComputingStatusSubject','excelDateToUnixMilliseconds','realDeleteValue','UpdatePivotFieldSettingCommand','disposeWithMe','getDataFieldByRangeKey','leafStyle','Varp\x20of\x20','sheetName','measure','startRow','InsertSheetCommand','sheets-pivot.value','NORMAL','updateConfigCache','isBottomTotal','removeField','getColCount','isDate','custom','#FFFFFF','version','function','_pivotRenderValueMatrixCache','ICommandService','addDataFieldWithoutUnitInfo','setValue','updateRenderCache','removeCollectionImp','_config','needSameDeleteModel','entries','SheetsPivotDataSourceModel','triggerDirtyFeature','sheets-pivot.dateGroup.quarter','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','colCount','sheet.operation.pivot-table-view-formula-mark-dirty','body','Add','36UngsXJ','_initCommandInterceptListener','Div0','AddPivotFieldCommand','displayName','batch','values','generateHexNumber','YearMonth','sheets-pivot.cellDateGroupDisplay.yearQuarter','MovePivotField','columnFields','endRow','setFieldFormat','transFromCellValue','fetchThroughAsyncInterceptors','#f4f4f5','error','updateViewData','_toJSON','params','movePivotField','removePivotField','setSubtotalType','paths','rxjs','setDisplayName','min','_init','data','endCollectChangeset','set','fieldsConfig','originalFieldId','_globalComputedStartHelpFunc','startColumn','SheetsPivotTableAdaptorModel','setOptions','UpdatePivotFieldSourceInfoMutation','sheet.mutation.send-pivot-data-local','getDataFieldItemInfo','IExclusiveRangeService','getformat','Tools','getSubtotal','SHEET_PIVOT_EXCLUSIVE_ID','some','getTableFieldById','53724aajuOy','substring','SetPivotSubtotalTypeMutation','sortInfo','_initDataSendListener','setRangeValueRedoMutation','DEFAULT_WORKSHEET_COLUMN_COUNT','LocaleService','UpdateFieldPositionMutation','Injector','_globalSubject','dataFields','rowRanges','setPivotInitCompleted','AddPivotTableMutation','getDate','cellToRange','_ensurePivotMap','keys','isArray','versions','areaInfo','sheet.command.set-pivot-field-setting','floor','result','rangeKeyMap','_subjectFieldsCollectionChange','_exclusiveRangeService','setLabelFilterInfo','PivotViewCellValueTypeEnum','collectionConfig','updateCollectionConfig','_configVersion$','addPivotField','MIN_SAFE_INTEGER','initDataRanges','fetchThroughInterceptors','RenamePivotFieldMutation','setPivotSort','updateValuePosition','range','sheets-pivot.cellDateGroupDisplay.minute','register','None','removeSourceRangeChange','filterInfo','asObservable','defaultThemeStyle','sheets-pivot.countName','subtotal','next','SheetsPivotTableService','\x20-\x20','PivotDataFieldDataTypeEnum','leftOffset','DateGroupField','Style','toJSON','broadcastCollectionChange','getSheets','sheet.mutation.set-pivot-value-filter','Column','getSheetBySheetName','colHeaderMap','setRange','generateRandomId','1614084XrAyeV','reset','BadReference','186557CoxJXO','UniverSheetsPivotTablePlugin','sheets-pivot.cellDateGroupDisplay.month','isValue','_configService','disposableCollection','get','getRangeKeyList','SetFieldFormat','DIV_BY_ZERO','Row','canUsePivot','DataSyncPrimaryController','sheets-pivot.sumName','_collectionConfigModel','_dataSyncPrimaryController','getAutoDisplayName','_refRangeHandle','call','number','unionPivotViewRange','_sheetInterceptorService','PivotCellStyleTypeEnum','sheet.command.update-pivot-table-source-range','dataFieldId','_pivotRenderInfoCache','clearRenderCache','setValuePivotFilter','updateView','getValueIndex','format','_injector','_ensurePivotItemRenderValueMatrixCache','addPivotTable','includes','SetValueFilter','DrillDown','symbol','CustomCommandExecutionError','name','getDirtyInfo','col','removeDataField','string','getEmptyPivotRanges','#eceeff','sheet.command.set-pivot-value-filter','markDirty','unshiftString','isFeatureAuthorizedWithinTime','getCollection','addRecord','sheet.mutation.add-pivot-table','sheet.command.set-pivot-sort','getFormat','LS_CONFIG_KEY','_univerInstanceService','Value','getPivotTableIdByCell','SheetInterceptorService','contains','RefRangeService','bind','New','tableFieldId','generateNewSheetName','other','isBaseGroupField','onCommandExecuted','UniverEngineFormula','redos','rowHeaderMap','sheets-pivot.dateGroup.yearQuarter','_commandService','dimension','removeCollections','DependentOn','getPivotTableConfig','collections','SetSortInfo','sheets-pivot.config','fields','getAutoFitColumnsMutations','sheet.command.set-pivot-collapse','#b2b2b2','SetWorksheetColWidthMutation','viewUpdate$','PivotTableChangeTypeEnum','Average\x20of\x20','3666890zsomHw','Inject','ErrorType','isDateGroupField','length','getMatrix','getTypeOfUnitDisposed$','SetPivotSetting','hasField','removePivotTable','getRowCount','defineProperty','getId','STRING','setCollapse','lastCol','node','isEmpty','_pivotTableInstanceCache','getAutoDisplayNameFunction','pivotTableIndexConfig','_featureCalculationManagerService','subscribe','setPivotTableConfig','_initGlobalComputed','SetValuePivotFilter','rowStyle','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','pivotPerformCheck','updateViewInfo','_initViewModelBySheetInterceptor','subTotalStyle','serializeRangeWithSpreadsheet','document','registerPluginResource','NotName','isText','MoveRangeCommand','workbook\x20is\x20not\x20found','_dataFieldManagerCollection','_updateRenderEmptyCache','YearQuarter','8FKgtZG','executeCommand','sheets-pivot.subTotal','Year','toString','@univerjs/engine-formula','getCellRaw','_host','updateDirtyPivotTable','sheet.mutation.remove-group-collection','getValuePosition','notExecuteFormula','_textInfo','sheet.mutation.pivot-update-field-position','_ensurePivotItemRenderInfoCache','renameField','_initLocale','getSubUnitPivotRenderCache','UpdatePivotSource','updateAllDisplayName','lastRow','maxDate','deepClone','IActiveDirtyManagerService','_model','getSubUnitPivotMatrix','SetPivotValueFilterMutation','UniverEngineRender','dataStyle','NAME','interceptor','_deletePivotTableInstanceCache','getMatrixFromRunTimeData','getConfig','getIntersects','ReleaseType','forRow','UpdatePivotTableSourceRangeCommand','sheet.mutation.add-pivot-field','getPivotTableMatrixInfo','MAX_SAFE_INTEGER','_sheetsPivotDataSourceModel','count','createDataFieldId','var','formJSON','DataField','_activeDirtyManagerService','_initConfig','rangeCache','shouldClear','_getPivotAppliedRanges','getMonth','resetArea','getFilterFieldIdByIndex','getCellMatrix','UniverSheets','updateConfig','has','_subjectCollectionChange','blank','sheet.mutation.add-group-collection','getPivotItemRenderInfoCache','_pivotInitCompleted$','UpdateValuePositionMutation','rangesInfo','oldRangeInfo','_sheetsPivotTableConfigModel','_updateModelCache','setName','intersects','sheet.command.remove-pivot-field','pivotTableConfigs','iterateField','RemoveColMutation','startCollectChangeset','Hour','getTargetByPivotId','numfmt','sheets-pivot.columnName','getFullYear','cornerStyle','sheets-pivot.varName','StdDev\x20of\x20','PivotDateGroupFieldDateTypeEnum','FORCE_STRING','forValue','markDirty$','SetRangeValuesMutation','PivotDisplayDataType','queryDirtyPivotTable','addCollection','sourceRangeInfo','IUniverInstanceService','object','getInterceptPoints','getSheetCommandTarget','PivotTable','Minute','_sheetsSelectionsService','PivotErrorTypeEnum','originTargetInfo','getUnitId','generateNullCell','IFeatureCalculationManagerService','updatePivotTableMatrixInfo','dateGroupField','RANGE_TYPE','setValueFilterInfo','UniverInstanceType','_updatePivotTableInstanceCache','SheetsPivotTableConfigModel','sheet.mutation.update-pivot-table-source-range','removeValueFilterInfoByValueFieldId','getDataFieldByTableId','new','message','createLabelField','UpdateDateGroupCommand','valueFilter','mergeWorksheetSnapshotWithDefault','NUMBER','SetPivotFilter','getFieldFormat','fieldIds','createInterceptorKey','amd','SetPivotCollapseMutation','getPivotTableModelConfig','addExclusiveRange','type','addDirtyPivotTable','collection','setSortInfo','_viewData','getPivotTableInstance','sequenceExecute','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','pluginName','rowFields','setSourceName','sheet.mutation.remove-pivot-table','ClearSelectionContentCommand','COLUMN','getFieldDataType','_queryingMap','oldMatrix','getSheetFeatureLimit','getLastCol','isDateGroupFieldJSON','setDirty','_initUnitDisposed','@univerjs/sheets-filter','#e6ebfa','rowCount','getValue','endColumn','DisposableCollection','getSortInfo','sheets-pivot.grandTotal','setConfig','SetSheetsFilterRangeMutation','#1d32e9','UpdateSource','Module','@univerjs-pro/engine-pivot','sheet.command.update-pivot-value-position','return\x20','_ensurePivotTableMatrixInfo','IConfigService','getAdjustRangesPosition','applyChangeSet','PivotSubtotalTypeEnum','UpdateValuePosition','width','sheets-pivot.dateGroup.minute','setRangeKeyMap','stringify','registerDirtyService','merge','updateRangeKeyMap','product','AddPivotTableWithConfig','Panel','updateFieldPosition','UniverLicensePlugin','fieldId','Rectangle','filterId','interceptCommand','getSubUnitPivotConfigs','slice','getRangeKey','getFieldPositionInfoById','collapseInfo','row','YearMonthDate','sheet.mutation.send-pivot-config-local','Expand','_getAutoName','grandTotal','sheet.command.update-date-group','DataFieldManager','refreshDataField','sheets-pivot.maxName','deleteField','size','valuePosition','_sheetsPivotRpcService','addPivotTableWithConfig','asyncInterceptor','Subtotal','getFilterInfo','getPivotTableRangeInfo','StdDevp\x20of\x20','undos','_fieldsCollectionChange$','average','removeValueFilterInfo','isColMultiMeasure','getDataFieldByDataFieldId','sheets-pivot.other','dispose','_globalComputedEndHelpFunc','adjustSheetCellData','pivotInitCompleted$','sum','NotFunction','_lifecycleService','getIndexesByPathStr','sheet.mutation.update-date-group','rangeKey','getDisplayName','xRMco3zM\x20ZUcqIeo3zM(t3cUM1U,\x20eRbt3cmUI)\x20{\x20\x20\x20\x20oqI\x20{\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20t3cUM1UfMxzp5qoYqq5I\x20=\x20t3cUM1U.1et3o(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20zq3K3MVU115KU\x20=\x20N9Ay.e5q1U(5ozb(t3cUM1UfMxzp5qoYqq5I[u]));\x20\x20\x20\x20\x20\x20\x20\x203x\x20(!zq3K3MVU115KU.RZ)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20zq3K3MVU115KU.RZ\x20=\x20yRgbUq(t3cUM1UfMxzp5qoYqq5I[X]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2031EzqPUq\x20=\x20oIeUzx\x20EzqPUqatzb5t9czeU\x20!==\x20\x27RMZUx3MUZ\x27\x20&&\x201Utx\x203M1o5McUzx\x20EzqPUqatzb5t9czeU;\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20czMoUso\x20=\x2031EzqPUq\x20?\x201Utx\x20:\x2003MZz0;\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20gU115KUEzqZ\x20=\x20czMoUso.__W51UTX__.e5q1U(t3cUM1UfMxzp5qoYqq5I[u]);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20gU115KU\x20=\x20czMoUso.__DUs__.1oq3MK3xI(gU115KUEzqZ);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2013KM5oRqUEzqZ\x20=\x20czMoUso.__W51UTX__.e5q1U(t3cUM1UfMxzp5qoYqq5I[l]);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2013KM5oRqU\x20=\x20czMoUso.__DUs__.1oq3MK3xI(13KM5oRqUEzqZ);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2013KMk5t3Z\x20=\x20czMoUso.__wUq3xI__(13KM5oRqU,\x20gU115KU,\x20eRbt3cmUI);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20Zzg53M\x20=\x20zq3K3MVU115KU.Zg;\x20\x20\x20\x20\x20\x20\x20\x20xRMco3zM\x20318zg53MV5oc63MK(zp5ooUqM,\x20zDz1o)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20e5ooUqM\x20=\x20zp5ooUqM.qUet5cU(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x206z1o\x20=\x20zDz1o.qUet5cU(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20e5ooUqMp5qo1\x20=\x20e5ooUqM.1et3o(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x206z1op5qo1\x20=\x206z1o.1et3o(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x203x\x20(!e5ooUqM.3MctRZU1(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20e5ooUqM\x20===\x206z1o;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x203x\x20(e5ooUqMp5qo1.tUMKo6\x20<\x20u\x20||\x20e5ooUqMp5qo1[C]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20x5t1U;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20e5ooUqM9Rxx3s\x20=\x20e5ooUqMp5qo1.1t3cU(7).hz3M(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x206z1o9Rxx3s\x20=\x206z1op5qo1.1t3cU(-e5ooUqMp5qo1.tUMKo6\x20+\x207).hz3M(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20e5ooUqM9Rxx3s\x20===\x206z1o9Rxx3s;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20tUo\x20Zzg53Mk5t3Z\x20=\x20(Zzg53M\x20&&\x20Zzg53M.tUMKo6)\x20?\x20Zzg53M.1zgU((ZgfoUg)\x20=>\x20318zg53MV5oc63MK(ZgfoUg,\x20tzc5o3zM.6z1oM5gU))\x20:\x20oqRU;\x20\x20\x20\x20\x20\x20\x20\x203x\x20(tzc5o3zM.6z1oM5gU\x20===\x20\x27tzc5t6z1o\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Zzg53Mk5t3Z\x20=\x20oqRU;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20w5t3Z\x20=\x2013KMk5t3Z\x20&&\x20Zzg53Mk5t3Z;\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20w5t3Z,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gU115KU:\x20zq3K3MVU115KU,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20c5oc6\x20(Uqqzq)\x20{\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20w5t3Z:\x20x5t1U,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gU115KU:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','registerCommand','_collectionChange$','SetPivotTableConfig','colStyle','getSourceName','getStyles','registerRefRange','MUTATION','_viewData$','updatePivotSource','remove','InterceptorEffectEnum','headerMap','SetPivotFieldsConfigCommand','uniqueDataFieldName','forEach','max','colInfo','getTextInfo','CellValueType','viewData$','onQueryEnd','push','createCollectionWithDataRange','Max\x20of\x20','pivotMutationGenerate','@univerjs/engine-render','pivotTableId','getColumnCount','deleteUnitId','SetPivotFilterCommand','IUndoRedoService','ManualFilter','sheets-pivot.emptyPivot.values','PivotCallbackEnum','getFieldInfo','setPivotSetting','collectionChange$','16430823JgRChf','sheets-pivot.varpName','charCodeAt','isDateValue','PivotView','RemoveRowMutation','getPivotDisplayConfig','getMatrixValue','query','subUnitId','sheets-pivot.dateGroup.hourMinute','iterateFieldDim','sheets-pivot.cellDateGroupDisplay.yearMonthDate','sheets-pivot.dateGroup.yearMonthDate','ResetPivotFieldsConfigCommand','unitId','iterateFieldByArea','valueIndex','dataFieldsCollection','RenameField','resetPivotTable','MonthDate','NUM','minDate'];_0x2db2=function(){return _0x549b6a;};return _0x2db2();}
1
+ (function(_0x3d5060,_0x50b257){const _0x4da5c2=_0x3343,_0x209643=_0x3d5060();while(!![]){try{const _0x22f6c5=-parseInt(_0x4da5c2(0x220))/0x1*(parseInt(_0x4da5c2(0x376))/0x2)+-parseInt(_0x4da5c2(0x2d8))/0x3*(-parseInt(_0x4da5c2(0x222))/0x4)+-parseInt(_0x4da5c2(0x227))/0x5*(parseInt(_0x4da5c2(0x279))/0x6)+parseInt(_0x4da5c2(0x302))/0x7+-parseInt(_0x4da5c2(0x3f4))/0x8+parseInt(_0x4da5c2(0x288))/0x9*(-parseInt(_0x4da5c2(0x38e))/0xa)+-parseInt(_0x4da5c2(0x239))/0xb*(-parseInt(_0x4da5c2(0x2ce))/0xc);if(_0x22f6c5===_0x50b257)break;else _0x209643['push'](_0x209643['shift']());}catch(_0x490e7e){_0x209643['push'](_0x209643['shift']());}}}(_0x4e05,0xb6316),function(_0x4765b3,_0x2cfb58){const _0x2024ba=_0x3343;typeof exports=='object'&&typeof module<'u'?_0x2cfb58(exports,require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license'),require('@univerjs/sheets-filter'),require('@univerjs/rpc'),require('@univerjs/engine-render')):typeof define==_0x2024ba(0x335)&&define[_0x2024ba(0x341)]?define([_0x2024ba(0x2e8),_0x2024ba(0x1c6),_0x2024ba(0x1ff),_0x2024ba(0x1e5),_0x2024ba(0x3a7),_0x2024ba(0x462),_0x2024ba(0x1e7),_0x2024ba(0x287),_0x2024ba(0x38c),_0x2024ba(0x2f2)],_0x2cfb58):(_0x4765b3=typeof globalThis<'u'?globalThis:_0x4765b3||self,_0x2cfb58(_0x4765b3[_0x2024ba(0x2b8)]={},_0x4765b3[_0x2024ba(0x2f1)],_0x4765b3['UniverCore'],_0x4765b3[_0x2024ba(0x26a)],_0x4765b3[_0x2024ba(0x3d0)],_0x4765b3[_0x2024ba(0x462)],_0x4765b3['UniverProLicense'],_0x4765b3[_0x2024ba(0x1f2)],_0x4765b3[_0x2024ba(0x340)],_0x4765b3[_0x2024ba(0x3b2)]));}(this,function(_0x28dbf0,_0x2444f4,_0x5cf8ff,_0x1683c2,_0x3d008a,_0x12702c,_0x556295,_0x1074c0,_0x224436,_0xcb82fe){'use strict';const _0x217abe=_0x3343;var _0x3daf8b=Object[_0x217abe(0x2a7)],_0x55c373=(_0x760e3d,_0x23ffea,_0x56bfef)=>_0x23ffea in _0x760e3d?_0x3daf8b(_0x760e3d,_0x23ffea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56bfef}):_0x760e3d[_0x23ffea]=_0x56bfef,_0x4cbd74=(_0x364284,_0x398d9b,_0x1196c8)=>_0x55c373(_0x364284,typeof _0x398d9b!=_0x217abe(0x229)?_0x398d9b+'':_0x398d9b,_0x1196c8);const _0x28d6a7=Number['parseInt'](0x68fcbdc5),_0x1c52de=0x10,_0x45e71b=0x1,_0x5690d9=_0x217abe(0x331),_0x491659=0x1,_0x40cc01='rgb(240,241,243)',_0xd91a59=_0x217abe(0x35c),_0xc28f5e='#b2b2b2',_0xbc889d='#f4f4f5',_0x4902ae='#f4f4f5',_0x35f028=_0x217abe(0x164),_0x58e641=_0x217abe(0x359),_0x257964=_0x217abe(0x3c1),_0x51f0f2='#e6ebfa',_0x2970e1='#1d32e9',_0x133a31='#FFFFFF',_0x57a124='#e6ebfb',_0x3a4d69=0xe,_0x19b256=0x6;var _0x59cdf6=(_0x385a22=>(_0x385a22[_0x217abe(0x15a)]=_0x217abe(0x2fd),_0x385a22['New']=_0x217abe(0x2d7),_0x385a22))(_0x59cdf6||{});const _0x1eacb1={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','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':''}}},_0x356658=0x1e,_0x2f2c49={'b':{'s':0x1,'cl':{'rgb':_0xc28f5e}},'l':{'s':0x1,'cl':{'rgb':_0xc28f5e}},'r':{'s':0x1,'cl':{'rgb':_0xc28f5e}},'t':{'s':0x1,'cl':{'rgb':_0xc28f5e}}},_0x1d17ab={'bg':{'rgb':_0x40cc01},'ht':0x2,'vt':0x2,'tb':0x1},_0x1f5220={'bg':{'rgb':_0xd91a59},'ht':0x2,'vt':0x2,'tb':0x1},_0x564739={'rowStyle':{'bg':{'rgb':_0x57a124},'bd':_0x2f2c49,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x2970e1},'bd':null,'cl':{'rgb':_0x133a31},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x2f2c49,'bg':{'rgb':_0x51f0f2},'vt':0x2},'cornerStyle':{'bd':_0x2f2c49,'bg':{'rgb':_0x35f028},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x2f2c49,'bg':{'rgb':_0xbc889d},'vt':0x2},'leafStyle':{'bd':_0x2f2c49,'bg':{'rgb':_0x4902ae},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x58e641},'cl':{'rgb':_0x257964},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x2f2c49,'vt':0x2}};function _0x15efc1(_0x169752,_0x22ebbd,_0x5cf32e){const _0x2ff187=_0x217abe,_0x1e08f4=_0x169752['get'](_0x5cf8ff[_0x2ff187(0x28e)]),_0x2371ed=_0x5cf32e[_0x2ff187(0x31e)]('_');switch(_0x22ebbd){case _0x2444f4[_0x2ff187(0x261)][_0x2ff187(0x27a)]:return _0x1e08f4['t'](_0x2ff187(0x2a8),..._0x2371ed);case _0x2444f4[_0x2ff187(0x261)][_0x2ff187(0x412)]:return _0x1e08f4['t']('sheets-pivot.cellDateGroupDisplay.minute',..._0x2371ed);case _0x2444f4['PivotDateGroupFieldDateTypeEnum'][_0x2ff187(0x1c3)]:return _0x1e08f4['t']('sheets-pivot.cellDateGroupDisplay.hour',..._0x2371ed);case _0x2444f4['PivotDateGroupFieldDateTypeEnum']['HourMinute']:return _0x1e08f4['t'](_0x2ff187(0x2e7),..._0x2371ed);case _0x2444f4['PivotDateGroupFieldDateTypeEnum'][_0x2ff187(0x218)]:return _0x1e08f4['t'](_0x2ff187(0x1f1),..._0x2371ed);case _0x2444f4[_0x2ff187(0x261)][_0x2ff187(0x28b)]:return _0x1e08f4['t'](_0x2ff187(0x18d),..._0x2371ed);case _0x2444f4[_0x2ff187(0x261)]['Quarter']:return _0x1e08f4['t'](_0x2ff187(0x384),..._0x2371ed);case _0x2444f4[_0x2ff187(0x261)][_0x2ff187(0x1aa)]:return _0x1e08f4['t']('sheets-pivot.cellDateGroupDisplay.yearMonth',..._0x2371ed);case _0x2444f4[_0x2ff187(0x261)][_0x2ff187(0x407)]:return _0x1e08f4['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x2371ed);case _0x2444f4['PivotDateGroupFieldDateTypeEnum']['YearQuarter']:return _0x1e08f4['t'](_0x2ff187(0x28c),..._0x2371ed);}return'';}const _0x359990=(_0x23fd89,_0x385eb7,_0x39dbd6,_0x508ef9)=>{const _0x2d17f5=_0x217abe;let _0x1f8d26;const _0x26b1d8=_0x23fd89[_0x2d17f5(0x191)](_0x5cf8ff[_0x2d17f5(0x198)])['getCurrentUnitForType'](_0x5cf8ff[_0x2d17f5(0x32d)]['UNIVER_SHEET']);if(!_0x26b1d8)return null;const _0x1ddf30=_0x26b1d8[_0x2d17f5(0x42f)]();let _0x3f90b5;if(_0x39dbd6&&(_0x3f90b5=_0x1ddf30[_0x2d17f5(0x364)](_0x39dbd6)),_0x385eb7!=null&&_0x385eb7['v']||(_0x385eb7==null?void 0x0:_0x385eb7['v'])===0x0){_0x1f8d26||(_0x1f8d26={});const _0x4d0355=_0x3d9aa9(_0x385eb7['v']);typeof _0x4d0355==_0x2d17f5(0x207)?_0x1f8d26['t']=_0x5cf8ff[_0x2d17f5(0x3ff)][_0x2d17f5(0x224)]:typeof _0x4d0355=='string'&&(_0x1f8d26['t']=_0x5cf8ff[_0x2d17f5(0x3ff)]['STRING']),_0x1f8d26['v']=_0x4d0355;}if((_0x385eb7!=null&&_0x385eb7['i']||(_0x385eb7==null?void 0x0:_0x385eb7['i'])===0x0)&&(_0x1f8d26||(_0x1f8d26={}),_0x1f8d26['fi']=_0x385eb7['i']),_0x385eb7!=null&&_0x385eb7['s']&&(_0x1f8d26||(_0x1f8d26={}),_0x1f8d26['pbt']=_0x385eb7['s']),_0x39dbd6&&(_0x1f8d26||(_0x1f8d26={}),_0x1f8d26['s']=_0x3f90b5),_0x508ef9&&_0x1f8d26!=null&&_0x1f8d26['v']&&_0x1f8d26[_0x2d17f5(0x192)]!==_0x2444f4[_0x2d17f5(0x34e)]['GrandTotal']&&_0x1f8d26[_0x2d17f5(0x192)]!==_0x2444f4[_0x2d17f5(0x34e)][_0x2d17f5(0x204)]){const _0x5cbaba=String(_0x1f8d26['v']),{dateType:_0x57fe71}=_0x508ef9;_0x1f8d26['v']=_0x15efc1(_0x23fd89,_0x57fe71,_0x5cbaba),_0x1f8d26['t']=_0x5cf8ff['CellValueType'][_0x2d17f5(0x457)];}return _0x1f8d26;},_0x1b0d96=(_0x2e1e82,_0x5b5b22,_0x57e8d7,_0x14da70)=>{const _0x32662a=_0x217abe;var _0x562519,_0x18a18d,_0x3cea68,_0x24b377,_0x29c6ac,_0x3deb73,_0x3b5668,_0x55c356,_0x1e3a66,_0x2dde28,_0x44e27f,_0x51820d,_0x54a431,_0x4dc371;const _0x135948=_0x57e8d7['targetCellInfo'],{cornerView:_0x48af17,rowView:_0x2fb309,colView:_0x3a3bca,dataView:_0x14ff50,pageView:_0x138171,formatMap:_0x29cc96,groupInfo:_0x56b663}=_0x5b5b22,{row:_0x1ca602,col:_0x3cb89a}=_0x135948,_0x20be21=new _0x5cf8ff[(_0x32662a(0x27d))](),_0x152039={},_0x368941={},_0x486e95={},_0x1e7011={},_0x3e5a29={};let _0x574e14=_0x1ca602,_0x5cc369=_0x3cb89a;Object[_0x32662a(0x16c)](_0x138171[_0x32662a(0x179)])[_0x32662a(0x22c)](_0x27da75=>{const _0x53c91c=_0x32662a;Object[_0x53c91c(0x16c)](_0x138171[_0x53c91c(0x179)][Number(_0x27da75)])[_0x53c91c(0x22c)](_0x4d123d=>{const _0x5808c8=_0x53c91c,_0x1ac559={..._0x138171[_0x5808c8(0x179)][Number(_0x27da75)][Number(_0x4d123d)]};_0x20be21[_0x5808c8(0x364)](Number(_0x27da75)+_0x574e14,Number(_0x4d123d)+_0x5cc369,_0x359990(_0x2e1e82,_0x1ac559,_0x564739[_0x5808c8(0x1f9)]));});});const _0x4f5119=Object['keys'](_0x138171[_0x32662a(0x179)])[_0x32662a(0x31a)];_0x574e14+=_0x4f5119+(_0x4f5119?_0x491659:0x0);const _0x45aa78=_0x48af17[_0x32662a(0x1a4)](),_0x1587bf=_0x48af17[_0x32662a(0x299)]();for(let _0x3e000b=0x0;_0x3e000b<_0x45aa78;_0x3e000b++)for(let _0x4c978b=0x0;_0x4c978b<_0x1587bf;_0x4c978b++){const _0x5e80da={...(_0x18a18d=(_0x562519=_0x48af17[_0x32662a(0x179)])==null?void 0x0:_0x562519[_0x3e000b])==null?void 0x0:_0x18a18d[_0x4c978b]};_0x5e80da&&((_0x3cea68=_0x2fb309['headerMap'][_0x4c978b])!=null&&_0x3cea68['isValue'])&&_0x4c978b===_0x1587bf-0x1&&_0x3e000b===_0x45aa78-0x1&&(_0x5e80da['v']=''+_0x14da70['sheets-pivot.value']),_0x20be21['setValue'](_0x3e000b+_0x574e14,_0x4c978b+_0x5cc369,_0x359990(_0x2e1e82,_0x5e80da,_0x564739['cornerStyle']));}for(let _0x548551=0x0;_0x548551<_0x48af17[_0x32662a(0x3cc)][_0x32662a(0x31a)];_0x548551++)_0x48af17['info'][_0x548551]&&(_0x486e95[''+(_0x548551+_0x5cc369)]=_0x48af17[_0x32662a(0x3cc)][_0x548551]);_0x5cc369+=_0x1587bf;const _0x4a05cd=_0x3a3bca['headerMap'],_0x1a7890=_0x3a3bca[_0x32662a(0x1bb)]()>=0x0?_0x3a3bca[_0x32662a(0x1bb)]()+0x1:0x0,_0x46d3b0=_0x3a3bca[_0x32662a(0x46b)]()>=0x0?_0x3a3bca[_0x32662a(0x46b)]()+0x1:0x0;for(let _0x492cab=0x0;_0x492cab<_0x46d3b0;_0x492cab++){for(let _0x40e67e=0x0;_0x40e67e<_0x1a7890;_0x40e67e++){const _0x5c7555={...(_0x29c6ac=(_0x24b377=_0x3a3bca[_0x32662a(0x179)])==null?void 0x0:_0x24b377[_0x40e67e])==null?void 0x0:_0x29c6ac[_0x492cab]},_0xb15509=(_0x3deb73=_0x4a05cd[_0x40e67e])==null?void 0x0:_0x3deb73['tableFieldId'],_0x524990=_0x29cc96[_0xb15509],_0x2495b8=_0x56b663[_0xb15509];_0x5c7555&&(_0x5c7555['v']=_0x462fdf(_0x5c7555,_0x40e67e===0x0&&((_0x3b5668=_0x3a3bca[_0x32662a(0x1c8)](_0x492cab+0x1))==null?void 0x0:_0x3b5668[_0x32662a(0x2ad)]),_0x524990,_0x14da70));let _0x5eae74;_0x524990?_0x5eae74={..._0x564739[_0x32662a(0x1d6)],'n':{'pattern':_0x524990}}:_0x5eae74={..._0x564739[_0x32662a(0x1d6)]},_0x20be21[_0x32662a(0x364)](_0x40e67e+_0x574e14,_0x492cab+_0x5cc369,_0x359990(_0x2e1e82,_0x5c7555,_0x5eae74,_0x2495b8));}_0x3a3bca[_0x32662a(0x3cc)][_0x492cab]&&(_0x368941[''+(_0x492cab+_0x5cc369)]=_0x3a3bca[_0x32662a(0x3cc)][_0x492cab]),_0x3a3bca[_0x32662a(0x387)][_0x492cab+0x1]&&(_0x3e5a29[''+(_0x492cab+_0x574e14+0x1)]=_0x3a3bca[_0x32662a(0x387)][_0x492cab+0x1]);}_0x574e14+=_0x45aa78;const _0x51fb57=_0x2fb309[_0x32662a(0x387)],_0xa7cc19=_0x2fb309[_0x32662a(0x1bb)]()>=0x0?_0x2fb309[_0x32662a(0x1bb)]()+0x1:0x0,_0x39bf06=_0x2fb309[_0x32662a(0x46b)]()>=0x0?_0x2fb309[_0x32662a(0x46b)]()+0x1:0x0;for(let _0x1ea2f1=0x0;_0x1ea2f1<_0xa7cc19;_0x1ea2f1++){for(let _0x317bca=0x0;_0x317bca<_0x39bf06;_0x317bca++){const _0x3e6413={...(_0x1e3a66=(_0x55c356=_0x2fb309[_0x32662a(0x179)])==null?void 0x0:_0x55c356[_0x1ea2f1])==null?void 0x0:_0x1e3a66[_0x317bca]},_0x30bbcd=(_0x2dde28=_0x51fb57[_0x317bca])==null?void 0x0:_0x2dde28[_0x32662a(0x18c)],_0xdb292d=_0x29cc96[_0x30bbcd],_0x156c5c=_0x56b663[_0x30bbcd];_0x3e6413&&(_0x3e6413['v']=_0x462fdf(_0x3e6413,!0x1,_0xdb292d,_0x14da70));let _0x2535c9;_0x2fb309[_0x32662a(0x3cc)][_0x1ea2f1][_0x32662a(0x402)]===_0x2fb309['getColCount']()?_0x2535c9=_0x564739[_0x32662a(0x391)]:_0x2fb309['info'][_0x1ea2f1]['isBottomTotal']?_0x2535c9=_0x2fb309[_0x32662a(0x3cc)][_0x1ea2f1]['level']===0x0?_0x564739[_0x32662a(0x285)]:_0x564739[_0x32662a(0x268)]:_0x2535c9=_0x564739[_0x32662a(0x367)],_0xdb292d&&(_0x2535c9={..._0x2535c9,'n':{'pattern':_0xdb292d}}),_0x20be21['setValue'](_0x1ea2f1+_0x574e14,_0x317bca+_0x3cb89a,_0x359990(_0x2e1e82,_0x3e6413,_0x2535c9,_0x156c5c));}_0x2fb309[_0x32662a(0x3cc)][_0x1ea2f1]&&(_0x152039[''+(_0x1ea2f1+_0x574e14)]=_0x2fb309[_0x32662a(0x3cc)][_0x1ea2f1]),_0x2fb309[_0x32662a(0x387)][_0x1ea2f1]&&(_0x1e7011[''+(_0x1ea2f1+_0x3cb89a)]=_0x2fb309['headerMap'][_0x1ea2f1]);}const _0x3b60b0=_0x14ff50[_0x32662a(0x1a4)](),_0x3b9d58=_0x14ff50[_0x32662a(0x299)]();for(let _0x1610ad=0x0;_0x1610ad<_0x3b60b0;_0x1610ad++)for(let _0x5e7ba4=0x0;_0x5e7ba4<_0x3b9d58;_0x5e7ba4++){const _0x39624e={...(_0x51820d=(_0x44e27f=_0x14ff50[_0x32662a(0x179)])==null?void 0x0:_0x44e27f[_0x1610ad])==null?void 0x0:_0x51820d[_0x5e7ba4]};let _0x1655e8;_0x2fb309[_0x32662a(0x3cc)][_0x1610ad][_0x32662a(0x1a1)]?_0x1655e8=_0x2fb309['info'][_0x1610ad]['level']===0x0?_0x564739['grandTotal']:_0x564739[_0x32662a(0x268)]:_0x1655e8=_0x564739['dataStyle'];const _0x729c6e=_0x2fb309[_0x32662a(0x3cc)][_0x1610ad][_0x32662a(0x201)],_0x3eda8c=_0x3a3bca[_0x32662a(0x3cc)][_0x5e7ba4][_0x32662a(0x201)],_0x31b9ec=Math['max'](_0x729c6e,_0x3eda8c),_0x3b129b=_0x57e8d7[_0x32662a(0x24f)][_0x32662a(0x22a)][_0x32662a(0x1a0)]();let _0x3839bf='';_0x31b9ec<0x0?_0x3839bf=(_0x54a431=_0x3b129b[0x0])!=null?_0x54a431:'':_0x3839bf=(_0x4dc371=_0x3b129b[_0x31b9ec])!=null?_0x4dc371:'';const _0x2ce46f=_0x29cc96[_0x3839bf];_0x2ce46f&&(_0x1655e8={..._0x1655e8,'n':{'pattern':_0x2ce46f}}),_0x20be21[_0x32662a(0x364)](_0x1610ad+_0x574e14,_0x5e7ba4+_0x5cc369,_0x359990(_0x2e1e82,_0x39624e,_0x1655e8));}return{'valueMatrix':_0x20be21,'rowInfo':_0x152039,'colInfo':_0x368941,'cornerInfo':_0x486e95,'rowHeaderMap':_0x1e7011,'colHeaderMap':_0x3e5a29};};function _0x462fdf(_0x5e2a55,_0x2fe7c3,_0x3a8edf,_0x5a3529){const _0x3c7f74=_0x217abe;let _0xfc17db=_0x5e2a55['v'];_0x2fe7c3&&(_0xfc17db=''+_0x5a3529[_0x3c7f74(0x46d)]);const _0x1dfd1b=_0x5e2a55['t']&&(_0x5e2a55['t']&_0x2444f4[_0x3c7f74(0x212)][_0x3c7f74(0x36e)])>0x0;_0x1dfd1b&&(_0xfc17db=''+_0x5a3529['sheets-pivot.blank']);const _0x5778ab=_0x5e2a55['t']&&(_0x5e2a55['t']&_0x2444f4[_0x3c7f74(0x212)][_0x3c7f74(0x336)])>0x0;if(_0x5778ab&&(_0xfc17db=''+_0x5a3529[_0x3c7f74(0x2c7)]),_0x5e2a55['s']===_0x2444f4[_0x3c7f74(0x34e)][_0x3c7f74(0x204)]){let _0x4f414e=_0xfc17db,_0x55991d='';_0x2444f4[_0x3c7f74(0x2ed)](_0xfc17db)&&(_0x4f414e=_0xfc17db['prefix'],_0x55991d=_0xfc17db[_0x3c7f74(0x2dd)]);const _0x2bbbd7=_0x3a8edf&&!_0x1dfd1b&&!_0x5778ab?_0x5cf8ff[_0x3c7f74(0x1cc)][_0x3c7f74(0x1e8)](_0x3a8edf,Number(_0x4f414e)):_0x4f414e;_0x55991d?_0xfc17db=_0x2bbbd7+'\x20'+_0x55991d:_0xfc17db=_0x2bbbd7+'\x20'+_0x5a3529[_0x3c7f74(0x337)];}else _0x5e2a55['s']===_0x2444f4[_0x3c7f74(0x34e)][_0x3c7f74(0x430)]&&(_0xfc17db=_0xfc17db+'\x20'+_0x5a3529[_0x3c7f74(0x233)]);return _0xfc17db;}function _0x3d9aa9(_0x3a43ed){const _0x5201f3=_0x217abe;if(_0x2444f4['isErrorValue'](_0x3a43ed)){const {errorType:_0x1b0af1}=_0x3a43ed;switch(_0x1b0af1){case _0x2444f4['PivotErrorTypeEnum'][_0x5201f3(0x43f)]:return _0x1683c2[_0x5201f3(0x1b9)][_0x5201f3(0x21e)];case _0x2444f4[_0x5201f3(0x2e3)][_0x5201f3(0x2e0)]:return _0x1683c2[_0x5201f3(0x1b9)]['NUM'];case _0x2444f4[_0x5201f3(0x2e3)]['NotFunction']:return _0x1683c2['ErrorType'][_0x5201f3(0x1c2)];case _0x2444f4['PivotErrorTypeEnum']['NotName']:return _0x1683c2['ErrorType']['NAME'];case _0x2444f4['PivotErrorTypeEnum'][_0x5201f3(0x300)]:return _0x1683c2[_0x5201f3(0x1b9)][_0x5201f3(0x298)];}}return _0x3a43ed;}function _0x3e0b54(_0x56f68c,_0x526fb7,_0x4f0879=!0x1,_0x10b4a8=!0x1){const _0x1da69a=_0x217abe,{data:_0x274b16}=_0x526fb7,_0x5b9e2a=_0x526fb7[_0x1da69a(0x1a4)](),_0x38a857=_0x526fb7[_0x1da69a(0x299)]();if(_0x5b9e2a<=0x0||_0x38a857<=0x0)return[];const _0x5a88d7=_0x526fb7['getLastCol'](),_0x6f2408=_0x526fb7['getLastRow'](),_0x6ff388=_0x10b4a8?_0x6f2408>=0x0?_0x6f2408+0x1:0x0:_0x5b9e2a,_0x22f280=_0x10b4a8?_0x5a88d7>=0x0?_0x5a88d7+0x1:0x0:_0x38a857,{row:_0x5b0220,col:_0x46675a}=_0x56f68c,_0x3cd1e4=_0x5b0220,_0x1d0cba=_0x46675a;if(_0x4f0879){const _0x1f121b=[];for(const [_0xee715,_0x44f95c]of Object[_0x1da69a(0x3ca)](_0x274b16))for(const [_0xc010c4,_0x4b9891]of Object['entries'](_0x44f95c))_0x1f121b['push'](_0x5cf8ff[_0x1da69a(0x396)](_0x3cd1e4+Number(_0xee715),_0x1d0cba+Number(_0xc010c4)));return _0x1f121b;}else{const _0x12233a=_0x10b4a8?_0x6ff388>0x0?0x1:0x0:0x1,_0x2cc395=_0x10b4a8?_0x22f280>0x0?0x1:0x0:0x1,_0x4e4b4e=_0x5b0220+_0x6ff388-_0x12233a,_0x12c7af=_0x46675a+_0x22f280-_0x2cc395;return[{'startRow':_0x3cd1e4,'startColumn':_0x1d0cba,'endRow':_0x4e4b4e,'endColumn':_0x12c7af}];}}const _0x243383='SHEET_PIVOT_IN_MAIN_THREAD',_0x4b224b=_0x217abe(0x281);var _0x5b1b05=(_0x3827bc=>(_0x3827bc[_0x217abe(0x419)]='filter',_0x3827bc['Panel']=_0x217abe(0x3ed),_0x3827bc['AddPivotField']=_0x217abe(0x234),_0x3827bc[_0x217abe(0x241)]='AddPivotTableWithConfig',_0x3827bc[_0x217abe(0x202)]=_0x217abe(0x348),_0x3827bc['MovePivotField']=_0x217abe(0x20d),_0x3827bc[_0x217abe(0x32a)]=_0x217abe(0x1e1),_0x3827bc[_0x217abe(0x2d4)]='setPivotCollapse',_0x3827bc[_0x217abe(0x1b4)]='setPivotFilter',_0x3827bc[_0x217abe(0x448)]=_0x217abe(0x1cd),_0x3827bc[_0x217abe(0x399)]=_0x217abe(0x242),_0x3827bc[_0x217abe(0x3fb)]=_0x217abe(0x39a),_0x3827bc[_0x217abe(0x1b5)]='updateValuePosition',_0x3827bc['DrillDown']=_0x217abe(0x1ef),_0x3827bc[_0x217abe(0x424)]='setValuePivotFilter',_0x3827bc[_0x217abe(0x40e)]=_0x217abe(0x22f),_0x3827bc[_0x217abe(0x41b)]='resetPivotTable',_0x3827bc))(_0x5b1b05||{});const _0x56a7da={'sheets-pivot.blankValue':_0x217abe(0x17d),'sheets-pivot.columnName':_0x217abe(0x2cd),'sheets-pivot.subTotalText':_0x217abe(0x1e6),'sheets-pivot.grandTotalText':_0x217abe(0x3e5),'sheets-pivot.valueText':_0x217abe(0x1e4),'sheets-pivot.averageName':'Average\x20of\x20','sheets-pivot.countName':_0x217abe(0x187),'sheets-pivot.countNumsName':_0x217abe(0x187),'sheets-pivot.maxName':'Max\x20of\x20','sheets-pivot.minName':'Min\x20of\x20','sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':'Sum\x20of\x20','sheets-pivot.varName':_0x217abe(0x1e2),'sheets-pivot.varpName':_0x217abe(0x41f),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x217abe(0x2dd),'sheets-pivot.blank':'blank','sheets-pivot.other':_0x217abe(0x336),'sheets-pivot.emptyPivot.filter':_0x217abe(0x419),'sheets-pivot.emptyPivot.row':_0x217abe(0x413),'sheets-pivot.emptyPivot.column':_0x217abe(0x2e2),'sheets-pivot.emptyPivot.values':_0x217abe(0x41e)},_0x9615d7={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x42699f=_0x5cf8ff[_0x217abe(0x460)](_0x217abe(0x2f7)),_0x744bc6=_0x5cf8ff[_0x217abe(0x311)]('pivotMutationGenerate');var _0x1a94bb=(_0x4dcdfa=>(_0x4dcdfa['add']=_0x217abe(0x219),_0x4dcdfa['delete']=_0x217abe(0x168),_0x4dcdfa['update']=_0x217abe(0x1fd),_0x4dcdfa))(_0x1a94bb||{}),_0x5da69e=(_0x59f0cc=>(_0x59f0cc['Add']=_0x217abe(0x219),_0x59f0cc[_0x217abe(0x45d)]=_0x217abe(0x444),_0x59f0cc[_0x217abe(0x284)]=_0x217abe(0x168),_0x59f0cc))(_0x5da69e||{});const _0x4d48bb={'type':_0x5cf8ff['CommandType']['MUTATION'],'id':_0x217abe(0x378),'handler':()=>!0x0},_0x5d5a76={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'id':_0x217abe(0x344),'handler':()=>!0x0},_0x572c85={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'id':_0x217abe(0x37b),'handler':()=>!0x0},_0x3db269={'type':_0x5cf8ff['CommandType']['MUTATION'],'id':_0x217abe(0x465),'handler':()=>!0x0},_0x5d77fb={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'id':_0x217abe(0x24b),'handler':()=>!0x0};var _0x26d219=Object[_0x217abe(0x17a)],_0x3dc8cb=(_0x443384,_0x24c38c,_0x5f212d,_0x401f37)=>{for(var _0x24e695=_0x401f37>0x1?void 0x0:_0x401f37?_0x26d219(_0x24c38c,_0x5f212d):_0x24c38c,_0xba37ea=_0x443384['length']-0x1,_0x436891;_0xba37ea>=0x0;_0xba37ea--)(_0x436891=_0x443384[_0xba37ea])&&(_0x24e695=_0x436891(_0x24e695)||_0x24e695);return _0x24e695;},_0x23a758=(_0x4290a0,_0x3db6d8)=>(_0x168fd8,_0x36d4e3)=>_0x3db6d8(_0x168fd8,_0x36d4e3,_0x4290a0);_0x28dbf0[_0x217abe(0x1c9)]=class extends _0x5cf8ff['Disposable']{constructor(_0x2fd554){const _0xf65f54=_0x217abe;super(),_0x4cbd74(this,'_requestResolvers',new Map()),this[_0xf65f54(0x36f)]=_0x2fd554;}[_0x217abe(0x466)](_0x5b29fb){const _0xb16088=_0x217abe,{version:_0x52713b}=_0x5b29fb,_0x37837a=this[_0xb16088(0x171)][_0xb16088(0x191)](_0x52713b);_0x37837a&&(_0x37837a(_0x5b29fb),this['_requestResolvers'][_0xb16088(0x168)](_0x52713b));}[_0x217abe(0x338)](_0x10953a){return new Promise((_0x2c4121,_0x34c182)=>{const _0x233053=_0x3343,_0x110507=this[_0x233053(0x31f)]();this[_0x233053(0x171)][_0x233053(0x444)](_0x110507,_0x2c4121),this[_0x233053(0x36f)][_0x233053(0x355)](_0x4d48bb['id'],{'version':_0x110507,..._0x10953a},{'onlyLocal':!0x0});});}['_generateUniqueVersion'](){const _0x51fbd2=_0x217abe;return Math['random']()['toString'](0x24)[_0x51fbd2(0x2f0)](0x2,0x10);}},_0x28dbf0[_0x217abe(0x1c9)]=_0x3dc8cb([_0x23a758(0x0,_0x5cf8ff['Inject'](_0x5cf8ff[_0x217abe(0x20e)]))],_0x28dbf0[_0x217abe(0x1c9)]);const _0x34e601={0x0:'R',0x1:'b',0x2:'3',0x3:'W',0x4:'K',0x5:'B',0x6:'z',0x7:'A',0x8:'F',0x9:'v','D':'0','W':'1','G':'2','v':'4','s':'5','Y':'6','C':'7','S':'8','O':'9','g':'a','d':'c','J':'d','X':'e','n':'f','p':'g','c':'h','f':'i','H':'j','B':'k','l':'l','t':'m','V':'n','I':'o','Z':'p','m':'q','y':'r','F':'s','a':'t','R':'u','Q':'w','b':'x','N':'y','P':'C','E':'D','L':'E','h':'G','r':'H','q':'I','j':'J','K':'L','U':'M','M':'N','u':'O','T':'P','i':'Q','x':'S','o':'T','A':'U','e':'V','w':'X','z':'Y','k':'Z'},_0x37a490='nRVdafIV\x20JXdyNZafIV(lfdXVFX,\x20ZR1lfd4XN)\x20{\x20\x20\x20\x20ayN\x20{\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20lfdXVFXqVnITgya7yygN\x20=\x20lfdXVFX.FZlfa(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20IyfpfVUXFFgpX\x20=\x20jxuM.ZgyFX(gaI1(lfdXVFXqVnITgya7yygN[G]));\x20\x20\x20\x20\x20\x20\x20\x20fn\x20(!IyfpfVUXFFgpX.RJ)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20IyfpfVUXFFgpX.RJ\x20=\x20MRt1Xy(lfdXVFXqVnITgya7yygN[v]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20fF3IyBXy\x20=\x20aNZXIn\x203IyBXyhlI1glxdIZX\x20!==\x20\x27RVJXnfVXJ\x27\x20&&\x20FXln\x20fVFagVdXIn\x203IyBXyhlI1glxdIZX;\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20dIVaXba\x20=\x20fF3IyBXy\x20?\x20FXln\x20:\x20QfVJIQ;\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20tXFFgpX3IyJ\x20=\x20dIVaXba.__5gFXYv__.ZgyFX(lfdXVFXqVnITgya7yygN[G]);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20tXFFgpX\x20=\x20dIVaXba.__rXb__.FayfVpfnN(tXFFgpX3IyJ);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20FfpVgaRyX3IyJ\x20=\x20dIVaXba.__5gFXYv__.ZgyFX(lfdXVFXqVnITgya7yygN[2]);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20FfpVgaRyX\x20=\x20dIVaXba.__rXb__.FayfVpfnN(FfpVgaRyX3IyJ);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20FfpVeglfJ\x20=\x20dIVaXba.__9XyfnN__(FfpVgaRyX,\x20tXFFgpX,\x20ZR1lfd4XN);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20JItgfV\x20=\x20IyfpfVUXFFgpX.Jt;\x20\x20\x20\x20\x20\x20\x20\x20nRVdafIV\x20fFEItgfVUgadcfVp(ITgaaXyV,\x20IrIFa)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20ZgaaXyV\x20=\x20ITgaaXyV.yXZlgdX(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20cIFa\x20=\x20IrIFa.yXZlgdX(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20ZgaaXyVTgyaF\x20=\x20ZgaaXyV.FZlfa(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20cIFaTgyaF\x20=\x20cIFa.FZlfa(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fn\x20(!ZgaaXyV.fVdlRJXF(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yXaRyV\x20ZgaaXyV\x20===\x20cIFa;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fn\x20(ZgaaXyVTgyaF.lXVpac\x20<\x20G\x20||\x20ZgaaXyVTgyaF[D]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yXaRyV\x20nglFX;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20ZgaaXyVxRnnfb\x20=\x20ZgaaXyVTgyaF.FlfdX(W).HIfV(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20cIFaxRnnfb\x20=\x20cIFaTgyaF.FlfdX(-ZgaaXyVTgyaF.lXVpac\x20+\x20W).HIfV(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yXaRyV\x20ZgaaXyVxRnnfb\x20===\x20cIFaxRnnfb;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20lXa\x20JItgfVeglfJ\x20=\x20(JItgfV\x20&&\x20JItgfV.lXVpac)\x20?\x20JItgfV.FItX((JtqaXt)\x20=>\x20fFEItgfVUgadcfVp(JtqaXt,\x20lIdgafIV.cIFaVgtX))\x20:\x20ayRX;\x20\x20\x20\x20\x20\x20\x20\x20fn\x20(lIdgafIV.cIFaVgtX\x20===\x20\x27lIdglcIFa\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JItgfVeglfJ\x20=\x20ayRX;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x209glfJ\x20=\x20FfpVeglfJ\x20&&\x20JItgfVeglfJ;\x20\x20\x20\x20\x20\x20\x20\x20yXaRyV\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209glfJ,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tXFFgpX:\x20IyfpfVUXFFgpX,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20dgadc\x20(XyyIy)\x20{\x20\x20\x20\x20\x20\x20\x20\x20yXaRyV\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209glfJ:\x20nglFX,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tXFFgpX:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}',_0x3e9d55=_0x31eb87=>{const _0x2d1830=_0x217abe;var _0x41631c;return((_0x41631c=_0x31eb87[_0x2d1830(0x15c)])==null?void 0x0:_0x41631c[_0x2d1830(0x31b)][_0x2d1830(0x3bb)](/\r\n$/,''))||'';};class _0x47d88b extends _0x2444f4['DataFieldManager']{constructor(_0x586678,_0x50e5f1){const _0x1b9978=_0x217abe;super(),_0x4cbd74(this,_0x1b9978(0x34d),{}),_0x4cbd74(this,'_univerInstanceService'),_0x4cbd74(this,_0x1b9978(0x36a)),(this[_0x1b9978(0x172)]=_0x50e5f1,this['_host']=_0x586678);}[_0x217abe(0x215)](){const _0x1bf16e=_0x217abe;for(const _0xe9a3a9 in this['dataFields']){const _0x484708=this[_0x1bf16e(0x385)][_0xe9a3a9],_0x333df0=_0x484708[_0x1bf16e(0x304)]();this[_0x1bf16e(0x34d)][_0x333df0]=_0x484708[_0x1bf16e(0x30c)]();}}[_0x217abe(0x177)](){const _0x402289=_0x217abe,_0x231656=this[_0x402289(0x36a)];return _0x320f90[_0x402289(0x393)](_0x231656);}['deleteDataField'](_0x3869d6){const _0x2a6780=_0x217abe,_0x817537=this[_0x2a6780(0x385)][_0x3869d6][_0x2a6780(0x2c3)];delete this[_0x2a6780(0x385)][_0x3869d6],delete this[_0x2a6780(0x34d)][_0x817537];}[_0x217abe(0x1be)](_0x545339){const _0x21d2d6=_0x217abe;this['dataFields'][_0x545339[_0x21d2d6(0x30c)]()]=_0x545339;}['removeCollectionImp'](_0x2a71ca){const _0x439c84=_0x217abe;var _0x54c9b0,_0xedcb6b;const _0x9d5c50=this[_0x439c84(0x36a)][_0x439c84(0x183)](_0x2a71ca);if(_0x9d5c50){const {unitId:_0x5f4fc4,subUnitId:_0x3f86cd}=_0x9d5c50,_0x294fff=(_0x54c9b0=this[_0x439c84(0x36a)]['getPivotTableConfig'](_0x5f4fc4,_0x3f86cd,_0x2a71ca))==null?void 0x0:_0x54c9b0[_0x439c84(0x434)];this[_0x439c84(0x36a)]['broadcastCollectionChange']({'token':_0x2a71ca,'type':_0x1a94bb[_0x439c84(0x168)],'dataRangeInfo':_0x294fff});}(_0xedcb6b=this['getCollection'](_0x2a71ca))==null||_0xedcb6b[_0x439c84(0x3f3)](),delete this[_0x439c84(0x2bb)][_0x2a71ca];}[_0x217abe(0x304)](_0x2537db,_0x2907a6){const {sheetName:_0x15b524,unitId:_0x573b1a,range:_0x3eaa2e}=_0x2537db,{startRow:_0x39be6a,endRow:_0x3183bb}=_0x3eaa2e;return _0x1683c2['serializeRangeWithSpreadsheet'](_0x573b1a,_0x15b524,{'startRow':_0x39be6a,'endRow':_0x3183bb,'startColumn':_0x2907a6,'endColumn':_0x2907a6});}[_0x217abe(0x18b)](_0x2b5693){const _0x639248=_0x217abe;return this[_0x639248(0x385)][this[_0x639248(0x34d)][_0x2b5693]];}[_0x217abe(0x28d)](_0xfb3c98,_0x5d2772){const _0x1572cd=_0x217abe;this[_0x1572cd(0x34d)][_0xfb3c98]=_0x5d2772;}[_0x217abe(0x21a)](_0x33df09,_0x5bd294){const _0x5c7f08=_0x217abe;this[_0x5c7f08(0x34d)][_0x5bd294]=this[_0x5c7f08(0x34d)][_0x33df09],delete this[_0x5c7f08(0x34d)][_0x33df09];}['addCollectionByJSON'](_0x3b0b3d,_0x260a21,_0x1ceffd,_0x36ecdc){const _0x637e05=_0x217abe,_0x171154=new _0x2444f4[(_0x637e05(0x1a5))](this);_0x171154[_0x637e05(0x163)](_0x260a21);const _0x47404d=[];let _0x25278a=0x0;for(const _0xed3405 of _0x171154['fieldIds']){const _0x489871=this[_0x637e05(0x304)](_0x1ceffd,_0x25278a),_0x22ccfd=this[_0x637e05(0x385)][_0xed3405];_0x22ccfd&&(_0x22ccfd['rangeKey']=_0x489871,this[_0x637e05(0x28d)](_0x489871,_0xed3405),_0x47404d['push']({'index':_0x25278a,'dataField':_0x22ccfd})),_0x25278a++;}return this[_0x637e05(0x247)](_0x3b0b3d,_0x171154,_0x1ceffd,_0x36ecdc),{'collection':_0x171154,'updateDataFieldList':_0x47404d};}[_0x217abe(0x2c5)](_0x289efd,_0x537825){const _0x343b22=_0x217abe;return _0x289efd['rangeType']===_0x5cf8ff[_0x343b22(0x3b4)][_0x343b22(0x1c4)]?{'startRow':0x0,'startColumn':_0x289efd[_0x343b22(0x38b)],'endRow':_0x537825[_0x343b22(0x1a4)]()-0x1,'endColumn':_0x289efd['endColumn']}:{'startRow':_0x289efd['startRow'],'startColumn':_0x289efd[_0x343b22(0x38b)],'endRow':_0x289efd[_0x343b22(0x46c)],'endColumn':_0x289efd['endColumn']};}[_0x217abe(0x189)](_0x585302){const _0xfd8946=_0x217abe,{sheetName:_0x50ba55,range:_0x29628c}=_0x585302,_0x3b1b34=this[_0xfd8946(0x172)][_0xfd8946(0x425)](_0x5cf8ff[_0xfd8946(0x32d)]['UNIVER_SHEET']),_0x55b6bf=_0x3b1b34[_0xfd8946(0x442)](_0x50ba55),_0x17449b=_0x55b6bf['getCellMatrix'](),{startColumn:_0x58088c,startRow:_0x9d73c4,endColumn:_0x56d4fc}=this[_0xfd8946(0x2c5)](_0x29628c,_0x55b6bf),_0x184b87=_0x3b1b34[_0xfd8946(0x42f)](),_0x10af3d=new _0x2444f4[(_0xfd8946(0x1a5))](this);_0x10af3d[_0xfd8946(0x3c0)](_0x585302);const _0x4e274f=[],_0x2693c5={};for(let _0x4e5213=_0x58088c;_0x4e5213<=_0x56d4fc;_0x4e5213++){const _0x3a4731=_0x17449b[_0xfd8946(0x2bd)](_0x9d73c4,_0x4e5213),_0x113116=this[_0xfd8946(0x304)](_0x585302,_0x4e5213),_0x852e22=this[_0xfd8946(0x18b)](_0x113116);if(_0x852e22)_0x10af3d[_0xfd8946(0x29e)](_0x852e22['getId'](),_0x852e22[_0xfd8946(0x2e5)]());else{const _0x3c6d61=this[_0xfd8946(0x2cb)]();let _0x1a2f3f=this[_0xfd8946(0x1b7)](_0x3a4731,_0x184b87,_0x2693c5);_0x2444f4[_0xfd8946(0x263)](_0x1a2f3f)&&(_0x1a2f3f=_0x5cf8ff[_0xfd8946(0x1cc)][_0xfd8946(0x1e8)](_0x1a2f3f['f'],Number(_0x1a2f3f['v'])));const _0xac46ed=this[_0xfd8946(0x291)](_0x1a2f3f,_0x4e5213),_0x1ac05c=new _0x2444f4[(_0xfd8946(0x2a3))](_0x3c6d61,_0xac46ed,_0x2444f4[_0xfd8946(0x1d2)](0x3));_0x1ac05c['rangeKey']=_0x113116,this[_0xfd8946(0x385)][_0x3c6d61]=_0x1ac05c,_0x10af3d[_0xfd8946(0x29e)](_0x3c6d61,_0xac46ed),_0x4e274f['push']({'index':_0x4e5213,'dataField':_0x1ac05c});}}return{'updateDataFieldList':_0x4e274f,'collection':_0x10af3d};}[_0x217abe(0x213)](_0x2b3451){const _0x5046f7=_0x217abe;return this[_0x5046f7(0x36a)][_0x5046f7(0x41a)]()[_0x5046f7(0x373)]+'\x20'+_0x5cf8ff[_0x5046f7(0x225)](_0x2b3451);}[_0x217abe(0x291)](_0x4f38a7,_0x14cd14){const _0x6c8de9=_0x217abe;return _0x4f38a7==null||_0x4f38a7===''?this[_0x6c8de9(0x213)](_0x14cd14):String(_0x4f38a7);}[_0x217abe(0x371)](_0x4b1a69){const _0x1d3ec4=_0x217abe;return this[_0x1d3ec4(0x2bb)][_0x4b1a69];}[_0x217abe(0x247)](_0x4ab788,_0x176b8d,_0x4a467c,_0x1b3413){const _0x3d72d5=_0x217abe;this[_0x3d72d5(0x2bb)][_0x4ab788]=_0x176b8d,_0x176b8d[_0x3d72d5(0x3c0)](_0x4a467c),this[_0x3d72d5(0x36a)][_0x3d72d5(0x44e)]({'token':_0x4ab788,'type':_0x1a94bb[_0x3d72d5(0x219)],'dataRangeInfo':_0x4a467c,'targetCellInfo':_0x1b3413});}[_0x217abe(0x432)](_0xf2c399,_0x4d655a){const _0x51db59=_0x217abe,_0x5cb254=this[_0x51db59(0x371)](_0xf2c399),_0x1bce4a=_0x5cb254[_0x51db59(0x3af)]();let _0x55f0d4=0x0;for(const _0x3594de of _0x1bce4a){const _0x20f420=_0x5cb254[_0x51db59(0x426)](_0x3594de),_0x56b7e2=this[_0x51db59(0x304)](_0x4d655a,_0x55f0d4);this['updateRangeKeyMap'](_0x20f420[_0x51db59(0x2c3)],_0x56b7e2),_0x55f0d4++;}}[_0x217abe(0x37c)](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x3e4f77,_0x430e2f){const _0x2e6083=_0x217abe;if(this['getCollection'](_0x3e4f77)){const _0x4214dc=this[_0x2e6083(0x1d3)](_0x430e2f),_0xecade2=[];for(const _0x3e5682 of _0x4214dc)this[_0x2e6083(0x34d)][_0x3e5682]!==void 0x0&&_0xecade2[_0x2e6083(0x3d3)](this[_0x2e6083(0x34d)][_0x3e5682]);const _0x47d70c=this[_0x2e6083(0x27b)](_0x3e4f77),_0x171350=[],_0x218c0c=new Set(_0xecade2);for(const _0x21ef02 of _0x47d70c)_0x218c0c['has'](_0x21ef02)||_0x171350[_0x2e6083(0x3d3)](_0x21ef02);return _0x171350;}}[_0x217abe(0x221)](_0x97b72d,_0x3f9567,_0xa482b4,_0x3b8424,_0x52d3cb){const _0x3f3207=_0x217abe;return _0x3f9567&&_0x3f9567[_0x3f3207(0x2bd)](_0x3b8424,_0x52d3cb)?_0x3f9567[_0x3f3207(0x2bd)](_0x3b8424,_0x52d3cb):_0xa482b4&&_0xa482b4[_0x3f3207(0x2bd)](_0x3b8424,_0x52d3cb)?_0xa482b4[_0x3f3207(0x2bd)](_0x3b8424,_0x52d3cb):_0x97b72d[_0x3f3207(0x2bd)](_0x3b8424,_0x52d3cb);}[_0x217abe(0x2c6)](_0x551397,_0x3af911,_0x3a3576,_0x5ec4fc){const _0x4f9512=_0x217abe,_0x30dcca=this[_0x4f9512(0x385)][_0x551397];if(!_0x30dcca)return;const {subUnitId:_0x40d870,range:_0x3e7b98,unitId:_0x3a99b6}=_0x3af911,_0x37dfe9=this[_0x4f9512(0x172)][_0x4f9512(0x3da)](_0x3a99b6);if(!_0x37dfe9){console['error'](_0x4f9512(0x3a9));return;}const _0x452b8b=_0x37dfe9[_0x4f9512(0x3db)](_0x40d870),_0x579d07=_0x452b8b[_0x4f9512(0x2fa)](),{arrayFormulaCellDataMatrix:_0x48ab6d,unitDataMatrix:_0x15ae38}=_0x5ec4fc||{},{startRow:_0x125ea0,startColumn:_0x371b43,endRow:_0x2b5b4c}=this[_0x4f9512(0x2c5)](_0x3e7b98,_0x452b8b);_0x30dcca[_0x4f9512(0x34c)]();const _0x7c8c02=_0x37dfe9[_0x4f9512(0x42f)](),_0x419eb5={},_0x32bc0c=this[_0x4f9512(0x221)](_0x579d07,_0x48ab6d,_0x15ae38,_0x125ea0,_0x371b43+_0x3a3576);let _0x2d384e=this[_0x4f9512(0x1b7)](_0x32bc0c,_0x7c8c02,_0x419eb5);_0x2444f4[_0x4f9512(0x263)](_0x2d384e)&&(_0x2d384e=_0x5cf8ff['numfmt']['format'](_0x2d384e['f'],Number(_0x2d384e['v'])));const _0x4ab88f=this[_0x4f9512(0x291)](_0x2d384e,_0x371b43+_0x3a3576);_0x30dcca[_0x4f9512(0x3ae)](_0x4ab88f);for(let _0x4d2b83=_0x125ea0+0x1;_0x4d2b83<=_0x2b5b4c;_0x4d2b83++){const _0x128d63=this[_0x4f9512(0x221)](_0x579d07,_0x48ab6d,_0x15ae38,_0x4d2b83,_0x371b43+_0x3a3576);_0x30dcca[_0x4f9512(0x3ce)](this[_0x4f9512(0x1b7)](_0x128d63,_0x7c8c02,_0x419eb5),_0x4d2b83-0x1-_0x125ea0);}}[_0x217abe(0x286)](_0x40c131,_0x41cd78,_0x45c051){const _0x5b941d=_0x217abe,{subUnitId:_0x31af36,range:_0x3446f1,unitId:_0x3d3986}=_0x45c051,_0x4f2558=this[_0x5b941d(0x172)]['getUnit'](_0x3d3986);if(!_0x4f2558){console[_0x5b941d(0x1c0)](_0x5b941d(0x3a9));return;}const _0x2ace01=_0x4f2558[_0x5b941d(0x3db)](_0x31af36),_0x32ee6b=_0x2ace01[_0x5b941d(0x2fa)](),{startRow:_0x844ac3,startColumn:_0x37796c,endRow:_0x3b7188}=this[_0x5b941d(0x2c5)](_0x3446f1,_0x2ace01),_0x38cc5f=_0x4f2558['getStyles'](),_0x5b2ddc={};for(const {dataField:_0x56b4d5,index:_0x3845b6}of _0x41cd78){_0x56b4d5[_0x5b941d(0x34c)]();const _0x2be0bd=this[_0x5b941d(0x221)](_0x32ee6b,void 0x0,void 0x0,_0x844ac3,_0x37796c+_0x3845b6);let _0x3529ef=this[_0x5b941d(0x1b7)](_0x2be0bd,_0x38cc5f,_0x5b2ddc);_0x2444f4[_0x5b941d(0x263)](_0x3529ef)&&(_0x3529ef=_0x5cf8ff[_0x5b941d(0x1cc)][_0x5b941d(0x1e8)](_0x3529ef['f'],Number(_0x3529ef['v'])));const _0x3add5b=this['uniqueDataFieldName'](_0x3529ef,_0x37796c+_0x3845b6);_0x56b4d5[_0x5b941d(0x3ae)](_0x3add5b);}_0x40c131[_0x5b941d(0x356)]();for(let _0xd49a6e=_0x844ac3+0x1;_0xd49a6e<=_0x3b7188;_0xd49a6e++)for(const {index:_0x2e0760,dataField:_0x34bf15}of _0x41cd78){const _0x2970d6=_0x32ee6b[_0x5b941d(0x2bd)](_0xd49a6e,_0x37796c+_0x2e0760);_0x34bf15[_0x5b941d(0x3ce)](this[_0x5b941d(0x1b7)](_0x2970d6,_0x38cc5f,_0x5b2ddc),_0xd49a6e-0x1-_0x844ac3);}_0x40c131[_0x5b941d(0x185)](_0x3b7188-_0x844ac3);}['getRangeKeyList'](_0x4ac1b5){const _0x32f886=_0x217abe,{range:_0x49fb39}=_0x4ac1b5,{startColumn:_0x5554f5,endColumn:_0x1c0785}=_0x49fb39,_0x56e4e4=[];for(let _0x2fd7e3=_0x5554f5;_0x2fd7e3<=_0x1c0785;_0x2fd7e3++)_0x56e4e4[_0x32f886(0x3d3)](this[_0x32f886(0x304)](_0x4ac1b5,_0x2fd7e3));return _0x56e4e4;}[_0x217abe(0x1b7)](_0x3f4226,_0x250136,_0x402d38){const _0x451131=_0x217abe;if(_0x3f4226){const {s:_0x3a0940,v:_0x4b0fc2,t:_0x38ca63,p:_0x32ed45}=_0x3f4226;if(_0x32ed45)return _0x3e9d55(_0x32ed45);const _0x17b5d6=_0x250136[_0x451131(0x191)](_0x3a0940);if(_0x17b5d6&&_0x38ca63===_0x5cf8ff[_0x451131(0x3ff)][_0x451131(0x224)]&&_0x17b5d6['n']){const {pattern:_0x1c0edc}=_0x17b5d6['n'];_0x402d38[_0x1c0edc]||(_0x402d38[_0x1c0edc]=_0x5cf8ff[_0x451131(0x1cc)][_0x451131(0x38a)](_0x1c0edc));const _0x544f57=_0x402d38[_0x1c0edc],_0x29359e=_0x544f57[_0x451131(0x2bf)];if(_0x544f57[_0x451131(0x313)])return String(_0x4b0fc2);if(_0x29359e)return{'v':_0x4b0fc2,'f':_0x1c0edc};}if(_0x38ca63===_0x5cf8ff[_0x451131(0x3ff)][_0x451131(0x224)])return Number(_0x4b0fc2);if(_0x38ca63===_0x5cf8ff[_0x451131(0x3ff)][_0x451131(0x457)]||_0x38ca63===_0x5cf8ff[_0x451131(0x3ff)][_0x451131(0x409)])return String(_0x4b0fc2);if(_0x38ca63===void 0x0){const _0x11433a=Number(_0x4b0fc2);if(!Number[_0x451131(0x29a)](_0x11433a)&&String(_0x11433a)===_0x4b0fc2)return _0x11433a;}return _0x4b0fc2!=null?_0x4b0fc2:null;}else return null;}[_0x217abe(0x1af)](_0x5c197f){const _0x283ecf=_0x217abe,{sheetName:_0x1efe5a,range:_0xeef58,unitId:_0x32b378}=_0x5c197f,_0x3e208d=this[_0x283ecf(0x172)][_0x283ecf(0x3da)](_0x32b378);if(!_0x3e208d)return console[_0x283ecf(0x1c0)](_0x283ecf(0x3a9)),{'header':[],'data':[]};const _0x213cb0=_0x3e208d[_0x283ecf(0x442)](_0x1efe5a),_0x3dd126=_0x213cb0[_0x283ecf(0x2fa)](),{startRow:_0x511042,startColumn:_0xbad573,endRow:_0x506c95,endColumn:_0x2850f6}=this[_0x283ecf(0x2c5)](_0xeef58,_0x213cb0),_0x266a55=_0x3e208d['getStyles'](),_0x103564=[],_0x2d58a8=[],_0x3ec562={};for(let _0xe85ae8=_0x511042;_0xe85ae8<=_0x506c95;_0xe85ae8++){const _0x4d66ef=[];for(let _0x5098f9=_0xbad573;_0x5098f9<=_0x2850f6;_0x5098f9++){const _0x1a79e5=_0x3dd126[_0x283ecf(0x2bd)](_0xe85ae8,_0x5098f9);_0xe85ae8===_0x511042?_0x103564['push'](_0x1a79e5==null?null:String(_0x1a79e5['v'])):_0x4d66ef[_0x283ecf(0x3d3)](this[_0x283ecf(0x1b7)](_0x1a79e5,_0x266a55,_0x3ec562));}_0x2d58a8[_0x283ecf(0x3d3)](_0x4d66ef);}return{'header':_0x103564,'data':_0x2d58a8};}['toJSON'](){const _0x23b73b=_0x217abe;return super[_0x23b73b(0x327)]();}[_0x217abe(0x163)](_0x272d96){const _0x7686e5=_0x217abe;super[_0x7686e5(0x163)](_0x272d96),this['initDataRanges']();}[_0x217abe(0x3f3)](){const _0xcc785d=_0x217abe;super['dispose'](),this[_0xcc785d(0x34d)]={},this[_0xcc785d(0x36a)]=null;}}const _0xd13469=_0x5c2431=>{const _0x21f2d2=_0x217abe,{targetCellInfo:_0x1a0ccb}=_0x5c2431,{matrixCache:_0x5825ed,rangesCache:_0x4d3f57}=_0x399209({'filter':_0x21f2d2(0x419),'row':'Row','column':'Column','values':_0x21f2d2(0x41e)},_0x1a0ccb),_0x4e9699=new _0x5cf8ff[(_0x21f2d2(0x27d))]();return _0x5825ed[_0x21f2d2(0x470)]((_0xfa6071,_0x460a12,_0x591304)=>{const _0x50e876=_0x21f2d2;_0x4e9699[_0x50e876(0x364)](_0xfa6071,_0x460a12,_0x591304);}),{'matrix':_0x4e9699,'rangesCache':_0x4d3f57};},_0x4fea35=_0x4b9daf=>{const _0x194c3d=_0x217abe;let _0x346a60;if(_0x4b9daf!=null&&_0x4b9daf['v']||(_0x4b9daf==null?void 0x0:_0x4b9daf['v'])===0x0){_0x346a60||(_0x346a60={});const _0x20af2c=_0x3d9aa9(_0x4b9daf['v']);typeof _0x20af2c==_0x194c3d(0x207)?_0x346a60['t']=_0x5cf8ff[_0x194c3d(0x3ff)][_0x194c3d(0x224)]:typeof _0x20af2c==_0x194c3d(0x211)&&(_0x346a60['t']=_0x5cf8ff[_0x194c3d(0x3ff)][_0x194c3d(0x457)]),_0x346a60['v']=_0x20af2c;}return _0x346a60;},_0x11982d=(_0x53ff6a,_0x19708c,_0x13d9d2)=>{const _0xb94c40=_0x217abe;var _0x2c0ca7,_0x494343,_0x213278,_0x544e77,_0x5ebc28,_0x2d00bb,_0x483220,_0x56ef5c,_0x3e76df,_0x3cbfa0,_0x15b06f,_0x2a09ac;const {cornerView:_0x3480b2,rowView:_0x42704c,colView:_0x19562b,dataView:_0x3ba71c,pageView:_0x444f80,formatMap:_0x12b860}=_0x53ff6a,{row:_0x16f2e6,col:_0x124d73}=_0x19708c,_0x2e2106=new _0x5cf8ff[(_0xb94c40(0x27d))]();let _0x5d9d79=_0x16f2e6,_0xdc0a5e=_0x124d73;Object['keys'](_0x444f80['data'])['forEach'](_0x37a9a=>{const _0x36a924=_0xb94c40;Object['keys'](_0x444f80[_0x36a924(0x179)][Number(_0x37a9a)])['forEach'](_0x4cbb98=>{const _0x2b14a3=_0x36a924,_0x13d39e={..._0x444f80[_0x2b14a3(0x179)][Number(_0x37a9a)][Number(_0x4cbb98)]};_0x2e2106[_0x2b14a3(0x364)](Number(_0x37a9a)+_0x5d9d79,Number(_0x4cbb98)+_0xdc0a5e,_0x4fea35(_0x13d39e));});});const _0x47a430=Object[_0xb94c40(0x16c)](_0x444f80[_0xb94c40(0x179)])[_0xb94c40(0x31a)];_0x5d9d79+=_0x47a430+(_0x47a430?_0x491659:0x0);const _0x58776d=_0x3480b2[_0xb94c40(0x1a4)](),_0x402d7a=_0x3480b2[_0xb94c40(0x299)]();for(let _0x53c8db=0x0;_0x53c8db<_0x58776d;_0x53c8db++)for(let _0x5c57a3=0x0;_0x5c57a3<_0x402d7a;_0x5c57a3++){const _0x3a6be8={...(_0x494343=(_0x2c0ca7=_0x3480b2[_0xb94c40(0x179)])==null?void 0x0:_0x2c0ca7[_0x53c8db])==null?void 0x0:_0x494343[_0x5c57a3]};_0x3a6be8&&((_0x213278=_0x42704c[_0xb94c40(0x387)][_0x5c57a3])!=null&&_0x213278[_0xb94c40(0x2ad)])&&_0x5c57a3===_0x402d7a-0x1&&_0x53c8db===_0x58776d-0x1&&(_0x3a6be8['v']=''+_0x13d9d2[_0xb94c40(0x46d)]),_0x2e2106[_0xb94c40(0x364)](_0x53c8db+_0x5d9d79,_0x5c57a3+_0xdc0a5e,_0x4fea35(_0x3a6be8));}_0xdc0a5e+=_0x402d7a;const _0x58ab2e=_0x19562b[_0xb94c40(0x387)],_0x27106a=_0x19562b[_0xb94c40(0x1bb)]()>=0x0?_0x19562b['getLastRow']()+0x1:0x0,_0xf7578a=_0x19562b['getLastCol']()>=0x0?_0x19562b[_0xb94c40(0x46b)]()+0x1:0x0;for(let _0x573afb=0x0;_0x573afb<_0xf7578a;_0x573afb++)for(let _0x4b0c2f=0x0;_0x4b0c2f<_0x27106a;_0x4b0c2f++){const _0x54d9fd={...(_0x5ebc28=(_0x544e77=_0x19562b[_0xb94c40(0x179)])==null?void 0x0:_0x544e77[_0x573afb])==null?void 0x0:_0x5ebc28[_0x4b0c2f]},_0xb986e5=(_0x2d00bb=_0x58ab2e[_0x573afb])==null?void 0x0:_0x2d00bb['tableFieldId'],_0x1ca80f=_0x12b860[_0xb986e5];_0x54d9fd&&(_0x54d9fd['v']=_0x462fdf(_0x54d9fd,_0x573afb===0x0&&((_0x483220=_0x19562b[_0xb94c40(0x1c8)](_0x4b0c2f+0x1))==null?void 0x0:_0x483220[_0xb94c40(0x2ad)]),_0x1ca80f,_0x13d9d2)),_0x2e2106['setValue'](_0x573afb+_0x5d9d79,_0x4b0c2f+_0xdc0a5e,_0x4fea35(_0x54d9fd));}_0x5d9d79+=_0x58776d;const _0x284209=_0x42704c['headerMap'],_0x1b156d=_0x42704c[_0xb94c40(0x1bb)]()>=0x0?_0x42704c[_0xb94c40(0x1bb)]()+0x1:0x0,_0x597a52=_0x42704c[_0xb94c40(0x46b)]()>=0x0?_0x42704c[_0xb94c40(0x46b)]()+0x1:0x0;for(let _0x50bf65=0x0;_0x50bf65<_0x1b156d;_0x50bf65++)for(let _0x53c747=0x0;_0x53c747<_0x597a52;_0x53c747++){const _0x24a4d9={...(_0x3e76df=(_0x56ef5c=_0x42704c['data'])==null?void 0x0:_0x56ef5c[_0x50bf65])==null?void 0x0:_0x3e76df[_0x53c747]},_0x968528=(_0x3cbfa0=_0x284209[_0x53c747])==null?void 0x0:_0x3cbfa0[_0xb94c40(0x18c)],_0x35ff51=_0x12b860[_0x968528];_0x24a4d9&&(_0x24a4d9['v']=_0x462fdf(_0x24a4d9,!0x1,_0x35ff51,_0x13d9d2)),_0x2e2106[_0xb94c40(0x364)](_0x50bf65+_0x5d9d79,_0x53c747+_0x124d73,_0x4fea35(_0x24a4d9));}const _0x42f339=_0x3ba71c[_0xb94c40(0x1a4)](),_0x19e5cf=_0x3ba71c[_0xb94c40(0x299)]();for(let _0x49ec6b=0x0;_0x49ec6b<_0x42f339;_0x49ec6b++)for(let _0x5314c3=0x0;_0x5314c3<_0x19e5cf;_0x5314c3++){const _0x5d1fcd={...(_0x2a09ac=(_0x15b06f=_0x3ba71c[_0xb94c40(0x179)])==null?void 0x0:_0x15b06f[_0x49ec6b])==null?void 0x0:_0x2a09ac[_0x5314c3]};_0x2e2106[_0xb94c40(0x364)](_0x49ec6b+_0x5d9d79,_0x5314c3+_0xdc0a5e,_0x4fea35(_0x5d1fcd));}return _0x2e2106;},_0x5917c4=_0x823a56=>{const _0xf98546=_0x217abe,{view:_0x413bcd,targetCellInfo:_0x5819d4,isEmpty:_0x431a18,textInfo:_0x2b82bc}=_0x823a56;if(_0x431a18)return _0xd13469(_0x823a56);const {pageView:_0x1a3b65,cornerView:_0x4cd0d0,rowView:_0x3f0b71,colView:_0x1aead5,dataView:_0x1b37e4}=_0x413bcd,_0x5b36fc=_0x3e0b54(_0x5819d4,_0x1a3b65,!0x0),_0x370c1c=_0x1a3b65[_0xf98546(0x178)]>=0x0?_0x1a3b65[_0xf98546(0x178)]+0x1:0x0,_0x195e6b=_0x4cd0d0[_0xf98546(0x1a4)](),_0x34f550=_0x4cd0d0['getColCount'](),_0x216e9f=_0x5b36fc[_0xf98546(0x31a)]>0x0?_0x491659:0x0,_0x16a588=_0x3e0b54({'row':_0x5819d4['row']+_0x370c1c+_0x216e9f,'col':_0x5819d4[_0xf98546(0x1b1)]},_0x4cd0d0,!0x1,!0x1),_0xaa43c7=_0x3e0b54({'row':_0x5819d4[_0xf98546(0x2aa)]+_0x370c1c+_0x216e9f+_0x195e6b,'col':_0x5819d4[_0xf98546(0x1b1)]},_0x3f0b71,!0x1,!0x0),_0x5af26d=_0x3e0b54({'row':_0x5819d4[_0xf98546(0x2aa)]+_0x370c1c+_0x216e9f,'col':_0x5819d4[_0xf98546(0x1b1)]+_0x34f550},_0x1aead5,!0x1,!0x0),_0x5b0eed=_0x3e0b54({'row':_0x5819d4[_0xf98546(0x2aa)]+_0x370c1c+_0x216e9f+_0x195e6b,'col':_0x5819d4[_0xf98546(0x1b1)]+_0x34f550},_0x1b37e4,!0x1,!0x1),_0x392504={'rowRanges':_0xaa43c7,'colRanges':_0x5af26d,'cornerRanges':_0x16a588,'dataRanges':_0x5b0eed,'pageRanges':_0x5b36fc};return{'matrix':_0x11982d(_0x413bcd,_0x5819d4,_0x2b82bc),'rangesCache':_0x392504};};var _0x522630=Object[_0x217abe(0x17a)],_0xee9e41=(_0x54416b,_0x20df8d,_0x2be42c,_0xe31b44)=>{const _0xf6cd76=_0x217abe;for(var _0x13e761=_0xe31b44>0x1?void 0x0:_0xe31b44?_0x522630(_0x20df8d,_0x2be42c):_0x20df8d,_0x13aaf0=_0x54416b[_0xf6cd76(0x31a)]-0x1,_0xf99d71;_0x13aaf0>=0x0;_0x13aaf0--)(_0xf99d71=_0x54416b[_0x13aaf0])&&(_0x13e761=_0xf99d71(_0x13e761)||_0x13e761);return _0x13e761;},_0x12ccff=(_0x5a9704,_0x17f2e5)=>(_0x33aed2,_0x53b251)=>_0x17f2e5(_0x33aed2,_0x53b251,_0x5a9704);_0x28dbf0[_0x217abe(0x3f2)]=class extends _0x5cf8ff[_0x217abe(0x374)]{constructor(_0x69adf8,_0x346c08,_0x5b8a78,_0x1b9ac6,_0x1bfec7){const _0x3b7f9c=_0x217abe;super(),_0x4cbd74(this,_0x3b7f9c(0x22b),new Map()),_0x4cbd74(this,_0x3b7f9c(0x383),new Map()),_0x4cbd74(this,'_viewData',new Map()),_0x4cbd74(this,'_textInfo'),_0x4cbd74(this,'_collectionChange$',new _0x12702c[(_0x3b7f9c(0x1fb))]()),_0x4cbd74(this,_0x3b7f9c(0x1bc),this[_0x3b7f9c(0x2f8)][_0x3b7f9c(0x29b)]()),_0x4cbd74(this,_0x3b7f9c(0x2d3),new _0x12702c[(_0x3b7f9c(0x1fb))]()),_0x4cbd74(this,_0x3b7f9c(0x3e7),this[_0x3b7f9c(0x2d3)][_0x3b7f9c(0x29b)]()),_0x4cbd74(this,_0x3b7f9c(0x362),new _0x12702c[(_0x3b7f9c(0x1fb))]()),_0x4cbd74(this,'fieldsCollectionChange$',this['_fieldsCollectionChange$'][_0x3b7f9c(0x29b)]()),_0x4cbd74(this,_0x3b7f9c(0x41c),new Map()),_0x4cbd74(this,'needSameDeleteModel',[]),_0x4cbd74(this,_0x3b7f9c(0x2f9),new Map()),(this['_injector']=_0x69adf8,this[_0x3b7f9c(0x172)]=_0x346c08,this[_0x3b7f9c(0x35e)]=_0x5b8a78,this[_0x3b7f9c(0x36f)]=_0x1b9ac6,this[_0x3b7f9c(0x167)]=_0x1bfec7,this[_0x3b7f9c(0x40a)]());}[_0x217abe(0x41a)](){const _0x44d45b=_0x217abe;return this[_0x44d45b(0x438)]?this[_0x44d45b(0x438)]:_0x56a7da;}[_0x217abe(0x3b0)](_0x5ba689){const _0xaf1202=_0x217abe;this[_0xaf1202(0x438)]=_0x5ba689;}[_0x217abe(0x432)](_0x51ea75){const _0x208efe=_0x217abe;var _0x1422e7;const {from:_0x4d8dd3,to:_0x4ab9d0,unitId:_0x6114c7,fromRange:_0x5b0524,toRange:_0x57b935}=_0x51ea75;if(_0x4d8dd3&&_0x4ab9d0){const _0x484715=this[_0x208efe(0x33e)](_0x6114c7),_0x1c7d3b=this[_0x208efe(0x22b)][_0x208efe(0x191)](_0x6114c7),_0x26607e=(_0x1422e7=this[_0x208efe(0x172)][_0x208efe(0x3da)](_0x6114c7))==null?void 0x0:_0x1422e7['getSheetBySheetId'](_0x4ab9d0['subUnitId']);if(!_0x1c7d3b||!_0x26607e)return;const _0x6b999a=_0x26607e==null?void 0x0:_0x26607e[_0x208efe(0x2e5)]();for(const [_0x35e685,_0x4de367]of _0x1c7d3b['entries']())for(const [_0x25156d,_0x205ca9]of _0x4de367[_0x208efe(0x3ca)]()){const {sourceRangeInfo:_0x4c482f}=_0x205ca9;if(_0x4c482f[_0x208efe(0x26d)]===_0x6114c7&&_0x4c482f[_0x208efe(0x1d0)]===_0x4d8dd3['subUnitId']&&_0x5cf8ff['Rectangle']['contains'](_0x5b0524,_0x4c482f['range'])){const _0x4441b9={'row':_0x4c482f[_0x208efe(0x42e)][_0x208efe(0x1f3)]-_0x5b0524[_0x208efe(0x1f3)],'col':_0x4c482f[_0x208efe(0x42e)][_0x208efe(0x38b)]-_0x5b0524[_0x208efe(0x38b)]},_0x44a247={'unitId':_0x6114c7,'subUnitId':_0x4ab9d0[_0x208efe(0x1d0)],'sheetName':_0x6b999a,'range':{'startRow':_0x57b935[_0x208efe(0x1f3)]+_0x4441b9[_0x208efe(0x2aa)],'endRow':_0x57b935[_0x208efe(0x1f3)]+_0x4441b9[_0x208efe(0x2aa)]+_0x4c482f[_0x208efe(0x42e)]['endRow']-_0x4c482f[_0x208efe(0x42e)][_0x208efe(0x1f3)],'startColumn':_0x57b935[_0x208efe(0x38b)]+_0x4441b9[_0x208efe(0x1b1)],'endColumn':_0x57b935[_0x208efe(0x38b)]+_0x4441b9[_0x208efe(0x1b1)]+_0x4c482f[_0x208efe(0x42e)][_0x208efe(0x3ab)]-_0x4c482f[_0x208efe(0x42e)][_0x208efe(0x38b)]}};_0x484715[_0x208efe(0x432)](_0x25156d,_0x44a247);const _0x40a7f8={..._0x205ca9,'sourceRangeInfo':_0x44a247};this['_updateModelCache'](_0x6114c7,_0x4ab9d0[_0x208efe(0x1d0)],_0x25156d,_0x40a7f8),this[_0x208efe(0x44e)]({'unitId':_0x6114c7,'token':_0x25156d,'type':_0x1a94bb[_0x208efe(0x1fd)],'oldSourceRangeInfo':_0x4c482f,'dataRangeInfo':_0x44a247,'targetCellInfo':_0x205ca9[_0x208efe(0x25b)]}),this[_0x208efe(0x193)]({'unitId':_0x6114c7,'subUnitId':_0x4ab9d0[_0x208efe(0x1d0)],'oldSubUnitId':_0x35e685,'pivotTableId':_0x25156d,'pivotTableConfig':_0x40a7f8,'collectionConfig':_0x484715[_0x208efe(0x327)]()});}}}}[_0x217abe(0x44e)](_0x398244){const _0x3a603b=_0x217abe;this[_0x3a603b(0x2f8)][_0x3a603b(0x377)](_0x398244);}[_0x217abe(0x33e)](_0x518412){const _0x348f4e=_0x217abe;let _0x51f9b2=this['_dataFieldManagerCollection'][_0x348f4e(0x191)](_0x518412);return _0x51f9b2||(_0x51f9b2=new _0x47d88b(this,this['_univerInstanceService']),this['_dataFieldManagerCollection'][_0x348f4e(0x444)](_0x518412,_0x51f9b2)),_0x51f9b2;}['getCollection'](_0x2ad442,_0x5290bb){const _0x1b7f0f=_0x217abe;return this['getDataFieldManager'](_0x2ad442)[_0x1b7f0f(0x2bb)][_0x5290bb];}[_0x217abe(0x317)](_0x26789a,_0x54c5ef,_0x504ed8){const _0x4556d0=_0x217abe;return this[_0x4556d0(0x33e)](_0x26789a)[_0x4556d0(0x317)](_0x54c5ef,_0x504ed8);}['_ensurePivotMap'](_0x1958d5,_0x4377e5){const _0x2e1a7a=_0x217abe;let _0x1f515f=this[_0x2e1a7a(0x22b)][_0x2e1a7a(0x191)](_0x1958d5);_0x1f515f||(_0x1f515f=new Map(),this[_0x2e1a7a(0x22b)]['set'](_0x1958d5,_0x1f515f));let _0x3c0cad=_0x1f515f[_0x2e1a7a(0x191)](_0x4377e5);return _0x3c0cad||(_0x3c0cad=new Map(),_0x1f515f[_0x2e1a7a(0x444)](_0x4377e5,_0x3c0cad)),_0x3c0cad;}['_updateModelCache'](_0x345617,_0x577941,_0x2cad14,_0x550b5e){const _0x2df079=_0x217abe;this[_0x2df079(0x29d)](_0x345617,_0x577941)[_0x2df079(0x444)](_0x2cad14,_0x550b5e);}[_0x217abe(0x347)](_0x4b7be2,_0x5e297c,_0x429638){const _0x5f2082=_0x217abe;var _0x34af49,_0x22b178,_0xe5d782,_0x26d84b;((_0x22b178=(_0x34af49=this['_model'][_0x5f2082(0x191)](_0x4b7be2))==null?void 0x0:_0x34af49[_0x5f2082(0x191)](_0x5e297c))==null?void 0x0:_0x22b178[_0x5f2082(0x191)](_0x429638))&&((_0x26d84b=(_0xe5d782=this[_0x5f2082(0x22b)][_0x5f2082(0x191)](_0x4b7be2))==null?void 0x0:_0xe5d782['get'](_0x5e297c))==null||_0x26d84b[_0x5f2082(0x168)](_0x429638));}[_0x217abe(0x333)](_0x11cbff,_0x585d56){const _0x101260=_0x217abe;this[_0x101260(0x383)][_0x101260(0x444)](_0x11cbff,_0x585d56);}[_0x217abe(0x24e)](_0x1e5374){const _0x21e055=_0x217abe;this[_0x21e055(0x383)]['delete'](_0x1e5374);}['_ensureViewDataMap'](_0x5b6f21,_0x24ff2f){const _0x68151a=_0x217abe;let _0x3b583b=this['_viewData']['get'](_0x5b6f21);_0x3b583b||(_0x3b583b=new Map(),this['_viewData']['set'](_0x5b6f21,_0x3b583b));let _0x3d0702=_0x3b583b[_0x68151a(0x191)](_0x24ff2f);return _0x3d0702||(_0x3d0702=new Map(),_0x3b583b[_0x68151a(0x444)](_0x24ff2f,_0x3d0702)),_0x3d0702;}[_0x217abe(0x193)](_0x57b0e7){const _0x11db21=_0x217abe,{unitId:_0x1fb072,subUnitId:_0x264808,pivotTableId:_0x7ca921,pivotTableConfig:_0x828840,collectionConfig:_0x13949f}=_0x57b0e7,_0x3ffdbf={'unitId':_0x1fb072,'subUnitId':_0x264808,'oldSubUnitId':_0x264808,'pivotTableId':_0x7ca921,'pivotTableConfig':_0x828840,'collectionConfig':_0x13949f};this[_0x11db21(0x36f)][_0x11db21(0x355)](_0x3db269['id'],_0x3ffdbf,{'onlyLocal':!0x0});}[_0x217abe(0x2b6)](_0x435f63,_0x31fe04,_0x200b78,_0x16dd7e,_0x360c8e,_0x219aa4,_0x57636e,_0x4bbb4b=!0x1){const _0x10e138=_0x217abe;var _0x5a8bb3;this['_commandService']['executeCommand'](_0x572c85['id'],{'single':{'unitId':_0x435f63,'subUnitId':_0x31fe04,'type':_0x200b78,'pivotTableId':_0x16dd7e,'view':_0x360c8e,'pivotConfig':_0x219aa4},'collectionConfig':{[_0x435f63]:_0x57636e}},{'onlyLocal':!0x0});const _0x1ee0fa=!!((_0x5a8bb3=this[_0x10e138(0x45b)](_0x16dd7e))!=null&&_0x5a8bb3[_0x10e138(0x447)]()),_0x501024=this[_0x10e138(0x19a)](_0x435f63,_0x31fe04,_0x16dd7e);_0x501024&&this['updateViewData']({'view':_0x360c8e,'pivotTableId':_0x16dd7e,'textInfo':this[_0x10e138(0x41a)](),'isEmpty':_0x1ee0fa,'targetCellInfo':_0x501024['targetCellInfo']},_0x4bbb4b);}[_0x217abe(0x314)](_0x2f2706,_0x43546b){const _0x105d4e=_0x217abe,{targetCellInfo:_0xf862f2,pivotTableId:_0x3a2997}=_0x2f2706,{unitId:_0x2ce617,subUnitId:_0x3386b8}=_0xf862f2,_0x33f06b=this[_0x105d4e(0x19c)](_0x2ce617,_0x3386b8),_0x10781f=_0x33f06b['get'](_0x3a2997);let _0x46ce49,_0x113bbe;_0x10781f&&(_0x46ce49=_0x10781f[_0x105d4e(0x1ca)],_0x113bbe=_0x10781f[_0x105d4e(0x3e4)]);const {rangesCache:_0x25cd4a,matrix:_0x2f39ed}=_0x5917c4(_0x2f2706);_0x33f06b['set'](_0x3a2997,{'rangeCache':_0x25cd4a,'matrix':_0x2f39ed,'oldMatrix':_0x113bbe,'oldRangeCache':_0x46ce49}),_0x43546b||this[_0x105d4e(0x2d3)][_0x105d4e(0x377)]({'unitId':_0x2ce617,'subUnitId':_0x3386b8,'pivotTableId':_0x3a2997});}[_0x217abe(0x348)](_0x417c30,_0x1dbc0d,_0x14f422,_0x5f31d2,_0x50893b){const _0x425d81=_0x217abe;this['_updateModelCache'](_0x417c30,_0x1dbc0d,_0x14f422,_0x50893b),this[_0x425d81(0x333)](_0x14f422,_0x5f31d2);}[_0x217abe(0x380)](_0x362d10,_0x136425,_0x38893f){const _0x5eff2c=_0x217abe,_0x4a2e24=this[_0x5eff2c(0x33e)](_0x362d10);_0x4a2e24[_0x5eff2c(0x27b)](_0x38893f)[_0x5eff2c(0x22c)](_0x415a77=>{_0x4a2e24['deleteDataField'](_0x415a77);}),this[_0x5eff2c(0x3d1)](_0x362d10,_0x38893f),this[_0x5eff2c(0x347)](_0x362d10,_0x136425,_0x38893f),this[_0x5eff2c(0x24e)](_0x38893f);}[_0x217abe(0x176)](_0x3ad7d9,_0x1bd173,_0x323766,_0x3f1325){const _0x54ed69=_0x217abe;this[_0x54ed69(0x3d7)](_0x3ad7d9,_0x1bd173,_0x323766,_0x3f1325);}[_0x217abe(0x19a)](_0x505b77,_0x20c59a,_0x5d1d5f){const _0x4fa222=_0x217abe;var _0x5dda35,_0x72c45d;const _0x27438c=(_0x72c45d=(_0x5dda35=this[_0x4fa222(0x22b)]['get'](_0x505b77))==null?void 0x0:_0x5dda35[_0x4fa222(0x191)](_0x20c59a))==null?void 0x0:_0x72c45d[_0x4fa222(0x191)](_0x5d1d5f);if(_0x27438c)return _0x27438c;}[_0x217abe(0x267)](_0x3d2c9b,_0x2e9ab5,_0x4467a2){const _0x47713c=_0x217abe;var _0x231e37,_0x474c1a;const _0x1059a2=(_0x474c1a=(_0x231e37=this['_model'][_0x47713c(0x191)](_0x3d2c9b))==null?void 0x0:_0x231e37[_0x47713c(0x191)](_0x2e9ab5))==null?void 0x0:_0x474c1a[_0x47713c(0x191)](_0x4467a2);if(_0x1059a2)return _0x1059a2[_0x47713c(0x24f)];}[_0x217abe(0x45b)](_0x1d2d7c){const _0xf9f9c9=_0x217abe;return this['_pivotTableInstanceCache'][_0xf9f9c9(0x191)](_0x1d2d7c);}[_0x217abe(0x392)](_0x412b85){const _0x22b171=_0x217abe;this[_0x22b171(0x22b)][_0x22b171(0x168)](_0x412b85);const _0x2f4181=this[_0x22b171(0x41c)][_0x22b171(0x191)](_0x412b85);_0x2f4181&&(_0x2f4181[_0x22b171(0x3f3)](),this['_dataFieldManagerCollection'][_0x22b171(0x168)](_0x412b85)),this[_0x22b171(0x3fa)][_0x22b171(0x168)](_0x412b85),this['needSameDeleteModel'][_0x22b171(0x22c)](_0x15a30c=>{const _0x1962f6=_0x22b171;_0x15a30c[_0x1962f6(0x392)](_0x412b85);});}['addCollectionByJSON'](_0x59b364,_0x1e8495,_0xaf2cb2,_0x100fc0){const _0x2e32b8=_0x217abe;return this[_0x2e32b8(0x33e)](_0xaf2cb2[_0x2e32b8(0x26d)])['addCollectionByJSON'](_0x59b364,_0x1e8495,_0xaf2cb2,_0x100fc0);}[_0x217abe(0x189)](_0x5033ae){const _0x5ee560=_0x217abe;return this['getDataFieldManager'](_0x5033ae[_0x5ee560(0x26d)])[_0x5ee560(0x189)](_0x5033ae);}[_0x217abe(0x286)](_0x4b5b19,_0x3f4b37,_0x3e80f9){const _0x4d4797=_0x217abe;this[_0x4d4797(0x33e)](_0x3e80f9['unitId'])[_0x4d4797(0x286)](_0x4b5b19,_0x3f4b37,_0x3e80f9);}[_0x217abe(0x17c)](_0x32c9a7,_0x21f0fb){const _0x2bffed=_0x217abe;this[_0x2bffed(0x33e)](_0x32c9a7)[_0x2bffed(0x375)](_0x21f0fb);}[_0x217abe(0x3d1)](_0x45060f,_0x5ccac2){const _0x4e39e9=_0x217abe;this[_0x4e39e9(0x33e)](_0x45060f)['removeCollectionImp'](_0x5ccac2);}[_0x217abe(0x456)](_0x514d5f,_0x563286){const _0x29004d=_0x217abe;var _0x129228;return(_0x129228=this[_0x29004d(0x22b)][_0x29004d(0x191)](_0x514d5f))==null?void 0x0:_0x129228[_0x29004d(0x191)](_0x563286);}[_0x217abe(0x183)](_0x54fbcc){const _0x6f536e=_0x217abe;for(const [_0x2821af,_0x2fc76c]of this[_0x6f536e(0x22b)]['entries']())for(const [_0x76f7b2,_0x28c377]of _0x2fc76c[_0x6f536e(0x3ca)]())if(_0x28c377['has'](_0x54fbcc))return{'unitId':_0x2821af,'subUnitId':_0x76f7b2};return null;}[_0x217abe(0x3c6)](_0x47aace,_0x2f55b9,_0x74783f,_0x3ca522){const _0x19f281=_0x217abe,_0x161c08=this['_ensureViewDataMap'](_0x47aace,_0x2f55b9);_0x3ca522?_0x161c08['set'](_0x74783f,_0x3ca522):_0x161c08[_0x19f281(0x168)](_0x74783f),this[_0x19f281(0x2d3)][_0x19f281(0x377)]({'unitId':_0x47aace,'subUnitId':_0x2f55b9,'pivotTableId':_0x74783f});}[_0x217abe(0x3f3)](){const _0xc98bcc=_0x217abe;super[_0xc98bcc(0x3f3)]();}[_0x217abe(0x420)](_0x2b1d34,_0x2119ae,_0x4e9892){const _0x6b8f64=_0x217abe;var _0x4e5c0c,_0x15351f;const _0x1397fa=(_0x15351f=(_0x4e5c0c=this[_0x6b8f64(0x3fa)][_0x6b8f64(0x191)](_0x2b1d34))==null?void 0x0:_0x4e5c0c[_0x6b8f64(0x191)](_0x2119ae))==null?void 0x0:_0x15351f[_0x6b8f64(0x191)](_0x4e9892);return _0x1397fa||null;}['addDirtyPivotTable'](_0x3b7c28){const _0x4df899=_0x217abe;this[_0x4df899(0x323)](_0x3b7c28);}[_0x217abe(0x323)](_0x34525c){const _0x4ff844=_0x217abe,{token:_0x59c921,unitId:_0x814332,subUnitId:_0x58c66d}=_0x34525c,_0x27a90e=_0x814332+'-'+_0x58c66d+'-'+_0x59c921;this[_0x4ff844(0x2f9)]['get'](_0x27a90e)&&clearTimeout(this[_0x4ff844(0x2f9)][_0x4ff844(0x191)](_0x27a90e));const _0x41cd1e=setTimeout(()=>{const _0x43eddc=_0x4ff844;this[_0x43eddc(0x1ce)](_0x34525c),this[_0x43eddc(0x2f9)][_0x43eddc(0x168)](_0x27a90e);},_0x356658);this[_0x4ff844(0x2f9)][_0x4ff844(0x444)](_0x27a90e,_0x41cd1e);}['queryDirtyPivotTable'](_0x53a6df){const _0x23389e=_0x217abe,{unitId:_0x100687,subUnitId:_0x4e0899,token:_0x473dd0,type:_0x19235e,pivotConfig:_0x3da41e}=_0x53a6df,_0x5d1e87=this[_0x23389e(0x45b)](_0x473dd0),_0x33ac30=_0x5d1e87==null?void 0x0:_0x5d1e87[_0x23389e(0x33a)](),_0x3d3c1c=_0x3da41e!=null?_0x3da41e:this[_0x23389e(0x19a)](_0x100687,_0x4e0899,_0x473dd0);_0x3d3c1c&&(_0x3d3c1c['isEmpty']=!!(_0x5d1e87!=null&&_0x5d1e87[_0x23389e(0x447)]())),(_0x33ac30||_0x19235e===_0x5da69e[_0x23389e(0x284)])&&this[_0x23389e(0x2b6)](_0x100687,_0x4e0899,_0x19235e,_0x473dd0,_0x33ac30,_0x3d3c1c,this[_0x23389e(0x33e)](_0x100687)[_0x23389e(0x327)]());}['toJSON'](_0x5c4a88){const _0x551c7b=_0x217abe,_0x67db30={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x551c7b(0x33e)](_0x5c4a88)&&(_0x67db30['dataFieldManagerConfig'][_0x5c4a88]=this[_0x551c7b(0x33e)](_0x5c4a88)[_0x551c7b(0x327)]()),this['_model'][_0x551c7b(0x191)](_0x5c4a88)){_0x67db30['pivotTableConfigs'][_0x5c4a88]={};const _0x305149=this[_0x551c7b(0x22b)][_0x551c7b(0x191)](_0x5c4a88);_0x305149!=null&&_0x305149['size']&&[..._0x305149['keys']()][_0x551c7b(0x22c)](_0xa562b1=>{const _0x561ec9=_0x551c7b,_0xf5a94f=_0x305149[_0x561ec9(0x191)](_0xa562b1);_0xf5a94f!=null&&_0xf5a94f[_0x561ec9(0x1da)]&&(_0x67db30[_0x561ec9(0x33d)][_0x5c4a88][_0xa562b1]={},[..._0xf5a94f['keys']()][_0x561ec9(0x22c)](_0x539d40=>{const _0x4af83c=_0x561ec9,_0x5edce3=_0xf5a94f[_0x4af83c(0x191)](_0x539d40);_0x5edce3&&(_0x67db30[_0x4af83c(0x33d)][_0x5c4a88][_0xa562b1][_0x539d40]=_0x5edce3);}));});}return _0x67db30;}[_0x217abe(0x163)](_0x380f67){const _0x2a7ede=_0x217abe;var _0x5e7f9f;const {dataFieldManagerConfig:_0x3b7dfc,pivotTableConfigs:_0x54e633}=_0x380f67;_0x3b7dfc&&Object[_0x2a7ede(0x16c)](_0x3b7dfc)[_0x2a7ede(0x22c)](_0x527b02=>{const _0x4345f7=_0x2a7ede;this[_0x4345f7(0x33e)](_0x527b02)[_0x4345f7(0x163)](_0x3b7dfc[_0x527b02]);});const _0x23deb5=[];if(_0x54e633){const _0xe8a6cf=(_0x5e7f9f=this[_0x2a7ede(0x43c)][_0x2a7ede(0x191)](_0x5cf8ff[_0x2a7ede(0x1b0)])['getConfig'](_0x556295['LS_CONFIG_KEY']))!=null?_0x5e7f9f:{},{ls:_0x249153,pbk:_0x5d9602}=_0xe8a6cf,_0x600269=_0x1d765d(_0x45e71b,_0x249153,_0x5d9602)['count'];Object[_0x2a7ede(0x16c)](_0x54e633)['forEach'](_0x53ffab=>{const _0x4c7019=_0x2a7ede;let _0x2bb731=0x0;const _0x34564d=_0x54e633[_0x53ffab];Object['keys'](_0x34564d)[_0x4c7019(0x22c)](_0x291a90=>{const _0x32ca2d=_0x4c7019,_0x1e1433=_0x34564d[_0x291a90];Object[_0x32ca2d(0x16c)](_0x1e1433)[_0x32ca2d(0x22c)](_0x3b5afc=>{const _0xd1313d=_0x32ca2d,_0x38e3bd=_0x1e1433[_0x3b5afc];if(_0x38e3bd){if(_0x2bb731>=_0x600269)return;_0x2bb731++;const _0x132990=this[_0xd1313d(0x33e)](_0x53ffab),_0x364ddc=_0x132990[_0xd1313d(0x2bb)][_0x3b5afc],_0x310340=_0x364ddc['getFieldIds']();let _0x4ea7aa=0x0;const _0x2432ad=[];for(const _0x51559f of _0x310340){const _0x297f96=_0x364ddc['getFieldById'](_0x51559f);if(_0x2444f4['isBaseGroupField'](_0x297f96)){const _0x3c3e5e=_0x297f96[_0xd1313d(0x441)](),_0x1ded78=_0x364ddc[_0xd1313d(0x426)](_0x3c3e5e);_0x1ded78&&_0x2432ad['push']([_0x297f96,_0x1ded78]);continue;}_0x132990['refreshDataField'](_0x51559f,_0x38e3bd[_0xd1313d(0x434)],_0x4ea7aa),_0x4ea7aa++;}_0x2432ad[_0xd1313d(0x22c)](([_0x571569,_0x5e1b30])=>{const _0x46f1d7=_0xd1313d;_0x571569[_0x46f1d7(0x472)](_0x5e1b30);});const _0x7c1dcf=new _0x2444f4[(_0xd1313d(0x2cc))](_0x364ddc);_0x7c1dcf['fromJSON'](_0x38e3bd[_0xd1313d(0x24f)]),this[_0xd1313d(0x348)](_0x53ffab,_0x291a90,_0x3b5afc,_0x7c1dcf,_0x38e3bd);const _0x30c45d=_0x7c1dcf[_0xd1313d(0x33a)]();_0x23deb5[_0xd1313d(0x3d3)]({'unitId':_0x53ffab,'subUnitId':_0x291a90,'pivotTableId':_0x3b5afc,'view':_0x30c45d[_0xd1313d(0x327)](),'pivotConfig':_0x38e3bd,'type':_0x5da69e[_0xd1313d(0x3e3)]});const _0x4c0b6b=!!_0x7c1dcf['isEmpty'](),_0x17857f={'view':_0x30c45d,'pivotTableId':_0x3b5afc,'textInfo':this[_0xd1313d(0x41a)](),'isEmpty':_0x4c0b6b,'targetCellInfo':_0x38e3bd[_0xd1313d(0x25b)]};this[_0xd1313d(0x314)](_0x17857f,!0x1);}});});});}_0x3b7dfc&&Object[_0x2a7ede(0x16c)](_0x3b7dfc)[_0x2a7ede(0x22c)](_0x5b01ac=>{const _0x1ebeca=_0x2a7ede,_0x17da7c=this['getDataFieldManager'](_0x5b01ac);this[_0x1ebeca(0x362)][_0x1ebeca(0x377)](_0x17da7c['collections']);}),this['_commandService'][_0x2a7ede(0x355)](_0x572c85['id'],{'batch':_0x23deb5,'collectionConfig':_0x3b7dfc},{'onlyLocal':!0x0});}[_0x217abe(0x40a)](){const _0xd2de83=_0x217abe;this['disposeWithMe'](this['_resourceManagerService'][_0xd2de83(0x1fc)]({'toJson':_0x6730ea=>JSON[_0xd2de83(0x210)](this[_0xd2de83(0x327)](_0x6730ea)),'parseJson':_0x1c8683=>{const _0x4b2f65=_0xd2de83;if(!_0x1c8683)return{};try{return JSON[_0x4b2f65(0x1a9)](_0x1c8683);}catch{return{};}},'businesses':[_0x5cf8ff[_0xd2de83(0x32d)]['UNIVER_SHEET']],'pluginName':_0x5690d9,'onLoad':(_0x3e0fbe,_0x2f6b9a)=>{this['fromJSON'](_0x2f6b9a);},'onUnLoad':_0x1c0c3d=>{this['deleteUnitId'](_0x1c0c3d);}}));}},_0x28dbf0[_0x217abe(0x3f2)]=_0xee9e41([_0x12ccff(0x0,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x3e6)])),_0x12ccff(0x1,_0x5cf8ff[_0x217abe(0x198)]),_0x12ccff(0x2,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x32c)])),_0x12ccff(0x3,_0x5cf8ff['ICommandService']),_0x12ccff(0x4,_0x5cf8ff['Inject'](_0x5cf8ff['IResourceManagerService']))],_0x28dbf0[_0x217abe(0x3f2)]);const _0x5d984c={0x0:{0x0:{'v':'filter','s':_0x1d17ab}},0x2:{0x1:{'v':'','s':_0x1d17ab},0x2:{'v':'','s':_0x1d17ab},0x3:{'v':_0x217abe(0x260),'s':_0x1d17ab},0x4:{'v':'','s':_0x1d17ab},0x5:{'v':'','s':_0x1d17ab}},0x3:{0x0:{'v':'','s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':'','s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}},0x4:{0x0:{'v':'','s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':'','s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}},0x5:{0x0:{'v':'','s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':'','s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}},0x6:{0x0:{'v':'','s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':'','s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}},0x7:{0x0:{'v':'','s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':'','s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}},0x8:{0x0:{'v':_0x217abe(0x2aa),'s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':_0x217abe(0x258),'s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}},0x9:{0x0:{'v':'','s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':'','s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}},0xa:{0x0:{'v':'','s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':'','s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}},0xb:{0x0:{'v':'','s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':'','s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}},0xc:{0x0:{'v':'','s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':'','s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}},0xd:{0x0:{'v':'','s':_0x1d17ab},0x1:{'v':'','s':_0x1f5220},0x2:{'v':'','s':_0x1f5220},0x3:{'v':'','s':_0x1f5220},0x4:{'v':'','s':_0x1f5220},0x5:{'v':'','s':_0x1f5220}}},_0x19e5c9={'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':[]},_0x399209=(_0x3d5415,_0x2d5c8e)=>{const _0x182c3a=_0x217abe,_0x3c09fa=new _0x5cf8ff[(_0x182c3a(0x27d))](),_0x3aab82=new _0x5cf8ff[(_0x182c3a(0x27d))](_0x5d984c),{row:_0x2a58be,col:_0x114def}=_0x2d5c8e;_0x3aab82[_0x182c3a(0x470)]((_0x4e512e,_0x2e5b11,_0x2a04a5)=>{const _0x3b9e51=_0x182c3a;let _0x25e0f5='';_0x2a04a5['v']==='filter'?_0x25e0f5=_0x3d5415[_0x3b9e51(0x372)]:_0x2a04a5['v']===_0x3b9e51(0x2aa)?_0x25e0f5=_0x3d5415[_0x3b9e51(0x2aa)]:_0x2a04a5['v']===_0x3b9e51(0x260)?_0x25e0f5=_0x3d5415[_0x3b9e51(0x260)]:_0x2a04a5['v']===_0x3b9e51(0x258)&&(_0x25e0f5=_0x3d5415['values']),_0x3c09fa[_0x3b9e51(0x364)](_0x4e512e+_0x2a58be,_0x2e5b11+_0x114def,{..._0x2a04a5,'v':_0x25e0f5});});const _0x8a19d2=_0x5cf8ff['Tools'][_0x182c3a(0x1dc)](_0x19e5c9);return Object['keys'](_0x19e5c9)[_0x182c3a(0x22c)](_0x5de9c7=>{const _0x5005c7=_0x182c3a;_0x8a19d2[_0x5de9c7]=_0x19e5c9[_0x5de9c7][_0x5005c7(0x44b)](_0x4e47fc=>({..._0x4e47fc,'startRow':_0x4e47fc[_0x5005c7(0x1f3)]+_0x2a58be,'endRow':_0x4e47fc[_0x5005c7(0x46c)]+_0x2a58be,'startColumn':_0x4e47fc['startColumn']+_0x114def,'endColumn':_0x4e47fc['endColumn']+_0x114def}));}),{'matrixCache':_0x3c09fa,'rangesCache':_0x8a19d2};};function _0x320f90(_0x41bdf7,_0x6c5b1d){const _0x3be116=_0x217abe;let _0x41818c='';const _0x3c36db=this[_0x3be116(0x41a)]();switch(_0x6c5b1d){case _0x2444f4['PivotSubtotalTypeEnum'][_0x3be116(0x166)]:_0x41818c=_0x3c36db['sheets-pivot.averageName']+_0x41bdf7;break;case _0x2444f4[_0x3be116(0x34b)][_0x3be116(0x200)]:_0x41818c=_0x3c36db[_0x3be116(0x1bf)]+_0x41bdf7;break;case _0x2444f4[_0x3be116(0x34b)]['countNums']:_0x41818c=_0x3c36db[_0x3be116(0x36b)]+_0x41bdf7;break;case _0x2444f4['PivotSubtotalTypeEnum']['max']:_0x41818c=_0x3c36db[_0x3be116(0x388)]+_0x41bdf7;break;case _0x2444f4[_0x3be116(0x34b)]['min']:_0x41818c=_0x3c36db[_0x3be116(0x43b)]+_0x41bdf7;break;case _0x2444f4[_0x3be116(0x34b)][_0x3be116(0x321)]:_0x41818c=_0x3c36db['sheets-pivot.productName']+_0x41bdf7;break;case _0x2444f4['PivotSubtotalTypeEnum'][_0x3be116(0x173)]:_0x41818c=_0x3c36db[_0x3be116(0x2da)]+_0x41bdf7;break;case _0x2444f4[_0x3be116(0x34b)][_0x3be116(0x274)]:_0x41818c=_0x3c36db[_0x3be116(0x35d)]+_0x41bdf7;break;case _0x2444f4[_0x3be116(0x34b)][_0x3be116(0x3aa)]:_0x41818c=_0x3c36db[_0x3be116(0x25e)]+_0x41bdf7;break;case _0x2444f4[_0x3be116(0x34b)][_0x3be116(0x30f)]:_0x41818c=_0x3c36db[_0x3be116(0x32f)]+_0x41bdf7;break;case _0x2444f4[_0x3be116(0x34b)][_0x3be116(0x305)]:_0x41818c=_0x3c36db['sheets-pivot.varpName']+_0x41bdf7;break;default:_0x41818c=_0x41bdf7;break;}return _0x41818c;}function _0x42016b(_0x3e6c79,_0x48d23f,_0xca58e4,_0x42c8eb,_0x379f4a){const _0x6ee194=_0x217abe;var _0x4df6f6,_0x584e9c,_0x36a24b,_0x25f533,_0x11852a;const _0x4fcdc3=_0x5cf8ff[_0x6ee194(0x396)](_0x3e6c79,_0x48d23f),{rangesInfo:_0xcd8bda,areaInfo:_0x15ca65,headerMap:_0x275693}=_0x379f4a;if(!_0xcd8bda||!_0x15ca65||!_0x275693)return;const _0x531421=Object['keys'](_0xcd8bda)[_0x6ee194(0x3a6)](_0x40d2af=>_0xcd8bda[_0x40d2af]['some'](_0x403cab=>_0x5cf8ff[_0x6ee194(0x1d8)][_0x6ee194(0x381)](_0x403cab,_0x4fcdc3))),_0x1dc532=_0x15ca65;let _0x1f94f4,_0x3e8a85,_0x48bfe8;if(_0x531421===_0x6ee194(0x2b0))_0x1f94f4=(_0x4df6f6=_0x1dc532==null?void 0x0:_0x1dc532[_0x6ee194(0x361)])==null?void 0x0:_0x4df6f6[_0x3e6c79],_0x3e8a85=(_0x584e9c=_0x275693==null?void 0x0:_0x275693[_0x6ee194(0x34f)])==null?void 0x0:_0x584e9c[_0x48d23f],_0x48bfe8=_0x3e8a85==null?void 0x0:_0x3e8a85[_0x6ee194(0x18c)];else{if(_0x531421==='colRanges')_0x1f94f4=(_0x36a24b=_0x1dc532==null?void 0x0:_0x1dc532[_0x6ee194(0x205)])==null?void 0x0:_0x36a24b[_0x48d23f],_0x3e8a85=(_0x25f533=_0x275693[_0x6ee194(0x262)])==null?void 0x0:_0x25f533[_0x3e6c79+0x1+_0x48d23f-_0xcd8bda[_0x6ee194(0x253)][0x0][_0x6ee194(0x38b)]],_0x48bfe8=_0x3e8a85==null?void 0x0:_0x3e8a85[_0x6ee194(0x18c)];else{if(_0x531421==='cornerRanges')_0x1f94f4=(_0x11852a=_0x1dc532==null?void 0x0:_0x1dc532[_0x6ee194(0x433)])==null?void 0x0:_0x11852a[_0x48d23f],_0x48bfe8=_0x1f94f4==null?void 0x0:_0x1f94f4[_0x6ee194(0x18c)];else{if(_0x531421===_0x6ee194(0x414)){const _0xc96a55=_0xca58e4==null?void 0x0:_0xca58e4['fi'];_0xc96a55!==void 0x0&&(_0x48bfe8=_0x42c8eb[_0x6ee194(0x25c)](_0xc96a55));}}}}return{'filterId':_0x48bfe8,'info':_0x1f94f4,'data':_0xca58e4,'headerInfo':_0x3e8a85};}function _0xa37ac2(_0x62943f,_0x2b50c7,_0x1ac46f){const _0x5ea371=_0x217abe,_0x1abc52=_0x62943f[_0x5ea371(0x41d)],_0xc40d47=_0x1abc52[_0x5ea371(0x3af)](),_0x304d4d=new Set();_0x62943f[_0x5ea371(0x421)](_0xdd07a6=>{const _0x2095ed=_0x5ea371;_0x304d4d[_0x2095ed(0x219)](_0xdd07a6[_0x2095ed(0x312)]);});const _0x54e813=_0xc40d47['map'](_0xed5529=>{const _0xaa3d33=_0x5ea371,_0x34e560=_0x1abc52[_0xaa3d33(0x426)](_0xed5529);return{'checked':_0x304d4d[_0xaa3d33(0x2fb)](_0xed5529),'dataFieldId':_0x34e560['id'],'id':_0x34e560['id'],'name':_0x1abc52['getDisplayName'](_0x34e560['id']),'type':_0x34e560[_0xaa3d33(0x3b7)](),'pivotTableId':_0x2b50c7};}),_0x211f82=[];_0x62943f[_0x5ea371(0x25f)](_0x2444f4['PivotTableFiledAreaEnum']['Row'],_0x209d82=>{const _0x3692e5=_0x5ea371;_0x211f82[_0x3692e5(0x3d3)]({'dataFieldId':_0x209d82['dataFieldId'],'tableFieldId':_0x209d82[_0x3692e5(0x30c)](),'displayName':_0x209d82[_0x3692e5(0x405)]()});});const _0x492d92=[];_0x62943f[_0x5ea371(0x25f)](_0x2444f4['PivotTableFiledAreaEnum'][_0x5ea371(0x2e2)],_0x4e5e8b=>{const _0x23acd0=_0x5ea371;_0x492d92['push']({'dataFieldId':_0x4e5e8b['dataFieldId'],'tableFieldId':_0x4e5e8b[_0x23acd0(0x30c)](),'displayName':_0x4e5e8b[_0x23acd0(0x405)]()});});const _0x1a5d09=[];if(_0x62943f['iterateFieldByArea'](_0x2444f4[_0x5ea371(0x270)][_0x5ea371(0x1e4)],_0x5b1f10=>{const _0x1e66df=_0x5ea371;_0x1a5d09[_0x1e66df(0x3d3)]({'dataFieldId':_0x5b1f10[_0x1e66df(0x312)],'tableFieldId':_0x5b1f10[_0x1e66df(0x30c)](),'displayName':_0x5b1f10[_0x1e66df(0x405)](),'format':_0x5b1f10[_0x1e66df(0x216)](),'subTotalType':_0x5b1f10[_0x1e66df(0x43e)]()});}),_0x1a5d09['length']>0x1){const _0x1a446c=_0x62943f[_0x5ea371(0x40f)]();(_0x62943f['isColMultiMeasure']()?_0x492d92:_0x211f82)[_0x5ea371(0x3c8)](_0x1a446c,0x0,{'dataFieldId':'','tableFieldId':_0x5ea371(0x423),'displayName':'ΣValue'});}const _0x441572=[];_0x62943f[_0x5ea371(0x25f)](_0x2444f4[_0x5ea371(0x270)][_0x5ea371(0x419)],_0x2e2c64=>{const _0x5631e1=_0x5ea371;_0x441572[_0x5631e1(0x3d3)]({'dataFieldId':_0x2e2c64[_0x5631e1(0x312)],'tableFieldId':_0x2e2c64['getId'](),'displayName':_0x2e2c64[_0x5631e1(0x405)]()});});const _0x4aa62c=_0x1ac46f[_0x5ea371(0x434)];return{'sourceList':_0x54e813,'sourceRange':_0x4aa62c,'rowFields':_0x211f82,'columnFields':_0x492d92,'valueFields':_0x1a5d09,'filterFields':_0x441572,'positionInfo':_0x1ac46f[_0x5ea371(0x25b)]};}function _0x3b5642(_0x56f914,_0x41575e,_0x5d06a2='',_0x31cb30={}){const _0x5d2028=_0x217abe,_0x19f9a1=_0x56f914[_0x5d2028(0x191)](_0x5cf8ff[_0x5d2028(0x28e)]);for(const _0x430f19 in _0x41575e)if(Object['prototype'][_0x5d2028(0x2d0)][_0x5d2028(0x297)](_0x41575e,_0x430f19)){const _0x331dc6=_0x5d06a2?_0x5d06a2+'.'+_0x430f19:_0x430f19;typeof _0x41575e[_0x430f19]==_0x5d2028(0x3b3)&&_0x41575e[_0x430f19]!==null&&!Array[_0x5d2028(0x15d)](_0x41575e[_0x430f19])?_0x3b5642(_0x56f914,_0x41575e[_0x430f19],_0x331dc6,_0x31cb30):_0x31cb30[_0x331dc6]=_0x19f9a1['t'](_0x331dc6);}return _0x31cb30;}const _0x54f967=_0x87405f=>{const _0x552a2b=_0x217abe;if(!_0x87405f)return[];const {rowRanges:_0x4ec441,colRanges:_0x8d9d4b,cornerRanges:_0x42d5a6,dataRanges:_0xbbaaa4,pageRanges:_0x776915}=_0x87405f,_0xff3123=[..._0x8d9d4b,..._0x4ec441,..._0xbbaaa4,..._0x42d5a6][_0x552a2b(0x372)](_0xca1a81=>_0xca1a81[_0x552a2b(0x1f3)]>=0x0&&_0xca1a81[_0x552a2b(0x38b)]>=0x0&&_0xca1a81['endRow']>=0x0&&_0xca1a81[_0x552a2b(0x3ab)]>=0x0);let _0x1a98bf=Number[_0x552a2b(0x468)],_0x40ad29=Number[_0x552a2b(0x473)],_0x2b88f9=Number['MAX_SAFE_INTEGER'],_0x5732d6=Number[_0x552a2b(0x473)];for(let _0x358ff8=0x0;_0x358ff8<_0xff3123[_0x552a2b(0x31a)];_0x358ff8++)_0x1a98bf=Math[_0x552a2b(0x3c9)](_0x1a98bf,_0xff3123[_0x358ff8][_0x552a2b(0x1f3)]),_0x40ad29=Math[_0x552a2b(0x3bc)](_0x40ad29,_0xff3123[_0x358ff8]['endRow']),_0x2b88f9=Math[_0x552a2b(0x3c9)](_0x2b88f9,_0xff3123[_0x358ff8][_0x552a2b(0x38b)]),_0x5732d6=Math[_0x552a2b(0x3bc)](_0x5732d6,_0xff3123[_0x358ff8]['endColumn']);return[..._0x776915,{'startRow':_0x1a98bf,'endRow':_0x40ad29,'startColumn':_0x2b88f9,'endColumn':_0x5732d6}];};function _0x3a5a93(_0x274a6c,_0x4d02c5){const _0x12537a=_0x217abe,_0xd787ff=_0x4d02c5[_0x12537a(0x1b8)][_0x12537a(0x1ef)],{pivotTableId:_0x3bf4ce,unitId:_0x31a800,subUnitId:_0x3651b9}=_0x4d02c5;if(!_0xd787ff)return;const _0xe7d8e1=_0x274a6c[_0x12537a(0x191)](_0x28dbf0['SheetsPivotDataSourceModel']),_0x362f46=_0xe7d8e1['getPivotTableInstance'](_0x3bf4ce),_0x16b990=_0xe7d8e1['getPivotTableConfig'](_0x31a800,_0x3651b9,_0x3bf4ce);if(!_0x362f46||!_0x16b990)return;const _0x4eb02a=_0x362f46[_0x12537a(0x20f)](_0xd787ff[_0x12537a(0x439)]);if(!(_0x4eb02a!=null&&_0x4eb02a[_0x12537a(0x31a)]))return;const _0x523867=_0x16b990['sourceRangeInfo'],{unitId:_0x8c7ef4,subUnitId:_0x54acba,range:_0x18d72e}=_0x523867;let _0x2e1ce2=0x0;const _0x1f5858=_0x362f46[_0x12537a(0x41d)]['getFieldIds']()[_0x12537a(0x196)]((_0x57022a,_0x45ee2f)=>{const _0x3687c4=_0x12537a;var _0x1ac423;const _0x43d5de=(_0x1ac423=_0x362f46[_0x3687c4(0x27e)](_0x45ee2f))==null?void 0x0:_0x1ac423[_0x3687c4(0x3c2)]();return _0x43d5de&&(_0x57022a[String(_0x2e1ce2)]=_0x43d5de),_0x2e1ce2++,_0x57022a;},{});return{'indexes':_0x4eb02a,'range':_0x18d72e,'sourceUnitId':_0x8c7ef4,'sourceSubUnitId':_0x54acba,'formatMap':_0x1f5858};}function _0x4842f8(_0x4d247a,_0x5d252b){const _0x128de3=_0x217abe;if(!_0x4d247a||!_0x5d252b)return!0x0;const _0x20c1ef=_0x556295[_0x128de3(0x223)](_0x37a490,_0x34e601),_0x5234b8=new Function(_0x128de3(0x237)+_0x20c1ef)()(_0x4d247a,_0x5d252b)['message'],_0x25cdb7=_0x556295[_0x128de3(0x29f)](_0x5234b8,'sf',_0x28d6a7);return!((_0x5234b8==null?void 0x0:_0x5234b8['rt'])===_0x556295[_0x128de3(0x249)][_0x128de3(0x40c)]&&!_0x25cdb7);}function _0x1d765d(_0x46b690,_0x2892bc,_0xce09ed){const _0x5c6072=_0x217abe,_0x50bc2c={'count':_0x46b690,'timeValid':!0x1};if(!_0x2892bc||!_0xce09ed)return _0x50bc2c;const _0x2f9aeb=_0x556295[_0x5c6072(0x223)](_0x37a490,_0x34e601),_0x2481e3=new Function(_0x5c6072(0x237)+_0x2f9aeb)()(_0x2892bc,_0xce09ed);if(_0x2481e3!=null&&_0x2481e3['valid']){const _0xfe4386=_0x2481e3[_0x5c6072(0x19e)],_0x455ad8=_0x556295[_0x5c6072(0x29f)](_0xfe4386,'sf',_0x28d6a7);return{'count':_0x556295[_0x5c6072(0x2d9)](_0xfe4386,_0x455ad8,'ptn',_0x46b690,_0x46b690,0x0),'timeValid':_0x455ad8};}return _0x50bc2c;}function _0x5450c0(_0x44146b,_0x37ee81,_0x32d085,_0x19616c){const _0x5c3793=_0x217abe,_0x111959={'subUnitId':_0x32d085,'unitId':_0x37ee81,'cellValue':_0x3d008a[_0x5c3793(0x2bc)](_0x19616c)},_0x3d7a5a=_0x3d008a[_0x5c3793(0x2f4)](_0x44146b,_0x111959);let _0x46f8be=!0x1;return new _0x5cf8ff['ObjectMatrix'](_0x3d7a5a['cellValue'])[_0x5c3793(0x470)]((_0x3d6ea9,_0xfef9b1,_0x203b91)=>{const _0x5a4faf=_0x5c3793;if(!_0x46f8be&&_0x203b91&&(_0x203b91[_0x5a4faf(0x417)]||_0x203b91['f']||_0x203b91['p']||_0x203b91['s']||_0x203b91['si']||_0x203b91['t']||_0x203b91['v']))return _0x46f8be=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x3d008a[_0x5c3793(0x2ea)]['id'],'params':_0x3d7a5a},'setRangeValueRedoMutation':{'id':_0x3d008a['SetRangeValuesMutation']['id'],'params':_0x111959},'shouldClear':_0x46f8be};}function _0x1d91b2(_0x3aa7c3){const {row:_0x536431,col:_0x565e52}=_0x3aa7c3,_0x53c212={'startRow':_0x536431,'endRow':_0x536431,'startColumn':_0x565e52,'endColumn':_0x565e52},_0x373a18={'startRow':_0x536431+0x2,'endRow':_0x536431+0xe,'startColumn':_0x565e52,'endColumn':_0x565e52+0x6};return[_0x53c212,_0x373a18];}function _0x49031a(_0xb3c748,_0x425a8e,_0x509179){const _0x2b0c4f=_0x217abe,{cornerView:_0x5d8a53,rowView:_0x973c29,colView:_0x434480,pageView:_0x2d1817}=_0xb3c748,{row:_0x2cf6dc,col:_0x1959fd}=_0x425a8e;if(_0x509179)return{'rowCount':_0x3a4d69+_0x2cf6dc,'colCount':_0x19b256+_0x1959fd};const _0x2ff216=_0x2d1817['lastRow']>-0x1?_0x2d1817[_0x2b0c4f(0x178)]+0x1:0x0,_0x18903e=_0x2d1817[_0x2b0c4f(0x3a8)]>-0x1?_0x2d1817[_0x2b0c4f(0x3a8)]:0x0,_0x25e253=_0x2cf6dc+_0x2ff216+(_0x2ff216?0x1:0x0)+_0x5d8a53[_0x2b0c4f(0x2eb)]+_0x973c29[_0x2b0c4f(0x2eb)],_0x1209d1=_0x1959fd+_0x18903e,_0x2d287f=_0x1959fd+_0x5d8a53[_0x2b0c4f(0x3d2)]+_0x434480[_0x2b0c4f(0x3d2)],_0x4d4802=Math[_0x2b0c4f(0x3bc)](_0x1209d1,_0x2d287f);return{'rowCount':_0x25e253,'colCount':_0x4d4802};}function _0x39b7a0(_0x15ac2d,_0x2fdfc0,_0x58172f,_0x9234cf){const _0x266e3a=_0x217abe,{row:_0x2a35b7,col:_0x47bd4f,unitId:_0x3c5e65,subUnitId:_0x1e450f}=_0x58172f,_0x740ae8=_0x49031a(_0x2fdfc0,{'row':_0x2a35b7,'col':_0x47bd4f},_0x9234cf),_0x556cd1=_0x15ac2d[_0x266e3a(0x191)](_0x5cf8ff['IUniverInstanceService']),_0x65863e=_0x3d008a['getSheetCommandTarget'](_0x556cd1,{'unitId':_0x3c5e65,'subUnitId':_0x1e450f}),_0x46286a=[],_0x24bd34=[];if(!_0x65863e)return{'undos':_0x24bd34,'redos':_0x46286a};const {worksheet:_0x111b62}=_0x65863e,_0x2e93a0=_0x111b62[_0x266e3a(0x1a4)](),_0x2754c7=_0x111b62['getColumnCount']();return _0x2e93a0<_0x740ae8[_0x266e3a(0x2eb)]&&(_0x46286a['push']({'id':_0x3d008a[_0x266e3a(0x2b2)]['id'],'params':{'unitId':_0x3c5e65,'subUnitId':_0x1e450f,'range':{'startRow':_0x2e93a0,'endRow':_0x740ae8[_0x266e3a(0x2eb)]-0x1,'startColumn':0x0,'endColumn':_0x2754c7-0x1}}}),_0x24bd34[_0x266e3a(0x3d3)]({'id':_0x3d008a[_0x266e3a(0x3fd)]['id'],'params':{'unitId':_0x3c5e65,'subUnitId':_0x1e450f,'range':{'startRow':_0x2e93a0,'endRow':_0x740ae8[_0x266e3a(0x2eb)]-0x1,'startColumn':0x0,'endColumn':_0x2754c7-0x1}}})),_0x2754c7<_0x740ae8[_0x266e3a(0x3d2)]&&(_0x46286a[_0x266e3a(0x3d3)]({'id':_0x3d008a[_0x266e3a(0x3a3)]['id'],'params':{'unitId':_0x3c5e65,'subUnitId':_0x1e450f,'range':{'startRow':0x0,'endRow':_0x2e93a0-0x1,'startColumn':_0x2754c7,'endColumn':_0x740ae8[_0x266e3a(0x3d2)]-0x1}}}),_0x24bd34[_0x266e3a(0x3d3)]({'id':_0x3d008a[_0x266e3a(0x3b5)]['id'],'params':{'unitId':_0x3c5e65,'subUnitId':_0x1e450f,'range':{'startRow':0x0,'endRow':_0x2e93a0-0x1,'startColumn':_0x2754c7,'endColumn':_0x740ae8[_0x266e3a(0x3d2)]-0x1}}})),{'undos':_0x24bd34,'redos':_0x46286a};}function _0x236cc8(_0x10d6d6){const _0x1f6b4e=_0x217abe;let _0x6ad025=0x0;for(let _0xedd5df=0x0;_0xedd5df<_0x10d6d6['length'];_0xedd5df++){const _0x316995=_0x10d6d6[_0x1f6b4e(0x186)](_0xedd5df);_0x316995>=0x4e00&&_0x316995<=0x9fff||_0x316995>=0x3000&&_0x316995<=0x303f||_0x316995>=0xff00&&_0x316995<=0xffef?_0x6ad025+=0x2:_0x6ad025+=0x1;}return _0x6ad025;}function _0xb3be21(_0x47c017,_0x4bacfb,_0x5b5f58,_0x512d04){const _0x345efc=_0x217abe;var _0x4f4733,_0x46ea70,_0x1b9e89,_0x1b7ba7;const {rowCount:_0x2e2757,colCount:_0x3adadd,headerMap:_0x322b1c}=_0x47c017,_0x5cacc2=0x64,_0x226037=Math[_0x345efc(0x3c9)](_0x2e2757,_0x5cacc2),_0x7adbf8=Math['min'](_0x3adadd,_0x5cacc2);let _0x32a31c='',_0x2c5962=0x0;for(let _0xb063ec=0x0;_0xb063ec<_0x226037;_0xb063ec++)for(let _0x41acec=0x0;_0x41acec<_0x7adbf8;_0x41acec++){const _0x3599b9={...(_0x46ea70=(_0x4f4733=_0x47c017[_0x345efc(0x179)])==null?void 0x0:_0x4f4733[_0xb063ec])==null?void 0x0:_0x46ea70[_0x41acec]},_0x71c0d1=(_0x1b9e89=_0x322b1c[_0xb063ec])==null?void 0x0:_0x1b9e89[_0x345efc(0x18c)],_0x59b546=_0x512d04[_0x71c0d1];let _0x2cbb5e=_0x47c017[_0x345efc(0x2bd)](_0xb063ec,_0x41acec);if(_0x3599b9){const _0x4afd14=_0x5b5f58?_0x41acec===0x0&&((_0x1b7ba7=_0x47c017[_0x345efc(0x1c8)](_0x41acec+0x1))==null?void 0x0:_0x1b7ba7[_0x345efc(0x2ad)]):!0x1;_0x2cbb5e=_0x462fdf(_0x3599b9,_0x4afd14,_0x59b546,_0x4bacfb);}if(_0x2cbb5e!==void 0x0){const _0x534736=_0x236cc8(String(_0x2cbb5e));_0x2c5962<_0x534736&&(_0x32a31c=String(_0x2cbb5e),_0x2c5962=_0x534736);}}return _0x32a31c;}function _0x53688f(_0xcc0ea5){const _0x28dfe3=_0x217abe,{rowCount:_0x48ccf9,colCount:_0x578032}=_0xcc0ea5;let _0x201b0a='',_0x1d2da7=0x0;for(let _0x4ab32a=_0x48ccf9-0x1;_0x4ab32a>0x0&&_0x4ab32a>_0x48ccf9-0x3;_0x4ab32a--)for(let _0xed776=0x0;_0xed776<_0x578032;_0xed776++){const _0x29fb60=_0xcc0ea5[_0x28dfe3(0x2bd)](_0x4ab32a,_0xed776);if(_0x29fb60!==void 0x0){const _0xd5565a=String(_0x29fb60)[_0x28dfe3(0x31a)];_0x1d2da7<_0xd5565a&&(_0x201b0a=String(_0x29fb60),_0x1d2da7=_0xd5565a);}}return _0x201b0a;}function _0x42755e(_0x383690){const _0x4b409a=_0x217abe,{rowCount:_0x1f82b9,colCount:_0x5df665}=_0x383690;let _0x18d819='',_0x5137f6=0x0;for(let _0x2860f3=0x0;_0x2860f3<_0x1f82b9;_0x2860f3++)for(let _0x130c2e=0x0;_0x130c2e<_0x5df665;_0x130c2e++){const _0x11a1cf=_0x383690[_0x4b409a(0x2bd)](_0x2860f3,_0x130c2e);if(_0x11a1cf!==void 0x0){const _0x8e57b6=String(_0x11a1cf)[_0x4b409a(0x31a)];_0x5137f6<_0x8e57b6&&(_0x18d819=String(_0x11a1cf),_0x5137f6=_0x8e57b6);}}return _0x18d819;}function _0x43799f(_0x212a96,_0x4597d7){const _0x2bf2bc=_0x217abe,{rowFields:_0x2bf323,columnFields:_0x28ed75,valueFields:_0x3feac4,filterFields:_0x2a4ab7,dimension:_0x46ecf4,measure:_0x5368e2}=_0x4597d7;for(const _0x5e679c of _0x2bf323){const _0x3fe073=_0x46ecf4[_0x5e679c];_0x3fe073&&_0x212a96[_0x2bf2bc(0x27e)](_0x3fe073[_0x2bf2bc(0x312)])&&(_0x212a96[_0x2bf2bc(0x2a6)](_0x3fe073[_0x2bf2bc(0x312)],_0x2444f4[_0x2bf2bc(0x270)][_0x2bf2bc(0x413)],void 0x0,_0x5e679c),_0x3fe073[_0x2bf2bc(0x3bf)]&&_0x212a96['renameField'](_0x3fe073['id'],_0x3fe073[_0x2bf2bc(0x3bf)]),_0x3fe073[_0x2bf2bc(0x16d)]&&_0x212a96[_0x2bf2bc(0x32e)](_0x3fe073['id'],_0x3fe073['sortInfo']),_0x3fe073[_0x2bf2bc(0x16f)]&&_0x212a96[_0x2bf2bc(0x289)](_0x3fe073['id'],_0x3fe073[_0x2bf2bc(0x16f)]));}for(const _0x6184cc of _0x28ed75){const _0x291544=_0x46ecf4[_0x6184cc];_0x291544&&_0x212a96[_0x2bf2bc(0x27e)](_0x291544[_0x2bf2bc(0x312)])&&(_0x212a96[_0x2bf2bc(0x2a6)](_0x291544[_0x2bf2bc(0x312)],_0x2444f4[_0x2bf2bc(0x270)]['Column'],void 0x0,_0x6184cc),_0x291544[_0x2bf2bc(0x16d)]&&_0x212a96[_0x2bf2bc(0x32e)](_0x291544['id'],_0x291544[_0x2bf2bc(0x16d)]),_0x291544[_0x2bf2bc(0x16f)]&&_0x212a96[_0x2bf2bc(0x289)](_0x291544['id'],_0x291544['filterInfo']),_0x291544['displayName']&&_0x212a96[_0x2bf2bc(0x1db)](_0x291544['id'],_0x291544[_0x2bf2bc(0x3bf)]));}for(const _0x4afcc1 of _0x2a4ab7){const _0x25b926=_0x46ecf4[_0x4afcc1];_0x25b926&&_0x212a96['getDataFieldByDataFieldId'](_0x25b926[_0x2bf2bc(0x312)])&&(_0x212a96[_0x2bf2bc(0x2a6)](_0x25b926[_0x2bf2bc(0x312)],_0x2444f4[_0x2bf2bc(0x270)][_0x2bf2bc(0x419)],void 0x0,_0x4afcc1),_0x25b926[_0x2bf2bc(0x16d)]&&_0x212a96['setSortInfo'](_0x25b926['id'],_0x25b926['sortInfo']),_0x25b926[_0x2bf2bc(0x16f)]&&_0x212a96[_0x2bf2bc(0x289)](_0x25b926['id'],_0x25b926[_0x2bf2bc(0x16f)]),_0x25b926['displayName']&&_0x212a96['renameField'](_0x25b926['id'],_0x25b926['displayName']));}for(const _0x6d04c of _0x3feac4){const _0x2d9cac=_0x5368e2[_0x6d04c];_0x2d9cac&&_0x212a96[_0x2bf2bc(0x27e)](_0x2d9cac[_0x2bf2bc(0x312)])&&(_0x212a96[_0x2bf2bc(0x2a6)](_0x2d9cac[_0x2bf2bc(0x312)],_0x2444f4['PivotTableFiledAreaEnum'][_0x2bf2bc(0x1e4)],void 0x0,_0x6d04c),_0x2d9cac[_0x2bf2bc(0x44d)]!==void 0x0&&_0x212a96['setSubtotalType'](_0x6d04c,_0x2d9cac[_0x2bf2bc(0x44d)]),_0x2d9cac[_0x2bf2bc(0x1e8)]&&_0x212a96[_0x2bf2bc(0x3e8)](_0x6d04c,_0x2d9cac[_0x2bf2bc(0x1e8)]),_0x2d9cac[_0x2bf2bc(0x3bf)]&&_0x212a96[_0x2bf2bc(0x1db)](_0x2d9cac['id'],_0x2d9cac[_0x2bf2bc(0x3bf)]));}const _0x2e069b=_0x4597d7[_0x2bf2bc(0x269)];for(const {fieldId:_0x568ed1,filterInfo:_0x1e08a5}of _0x2e069b)_0x212a96[_0x2bf2bc(0x45a)](_0x568ed1,_0x1e08a5);}function _0x1b5341(_0x4bf2ca,_0xdc664a){const _0x452004=_0x217abe,_0x505540=[];_0xdc664a===_0x2444f4[_0x452004(0x270)]['Row']&&_0x4bf2ca[_0x452004(0x25f)](_0x2444f4[_0x452004(0x270)][_0x452004(0x413)],_0x48c544=>{const _0x11cd3f=_0x452004;_0x505540[_0x11cd3f(0x3d3)](_0x48c544[_0x11cd3f(0x30c)]());}),_0xdc664a===_0x2444f4['PivotTableFiledAreaEnum'][_0x452004(0x2e2)]&&_0x4bf2ca[_0x452004(0x25f)](_0x2444f4[_0x452004(0x270)][_0x452004(0x2e2)],_0x47501d=>{const _0x2f8e53=_0x452004;_0x505540[_0x2f8e53(0x3d3)](_0x47501d[_0x2f8e53(0x30c)]());}),_0xdc664a===_0x2444f4['PivotTableFiledAreaEnum'][_0x452004(0x419)]&&_0x4bf2ca[_0x452004(0x25f)](_0x2444f4[_0x452004(0x270)][_0x452004(0x419)],_0x5610ee=>{const _0x103a4e=_0x452004;_0x505540[_0x103a4e(0x3d3)](_0x5610ee[_0x103a4e(0x30c)]());}),_0xdc664a===_0x2444f4[_0x452004(0x270)]['Value']&&_0x4bf2ca['iterateFieldByArea'](_0x2444f4[_0x452004(0x270)]['Value'],_0x3e6866=>{const _0x440adf=_0x452004;_0x505540[_0x440adf(0x3d3)](_0x3e6866[_0x440adf(0x30c)]());}),_0xdc664a===void 0x0&&_0x4bf2ca[_0x452004(0x421)](_0x32c9a2=>{const _0x2d929b=_0x452004;_0x505540[_0x2d929b(0x3d3)](_0x32c9a2[_0x2d929b(0x30c)]());});const _0x30e9f5=_0x505540[_0x452004(0x31a)];for(let _0x2dddaa=_0x30e9f5-0x1;_0x2dddaa>=0x0;_0x2dddaa--)_0x4bf2ca[_0x452004(0x2db)](_0x505540[_0x2dddaa]);const _0x360dd1=_0x4bf2ca['getValueFilterInfos']();for(const _0x5cb596 in _0x360dd1)_0x4bf2ca[_0x452004(0x206)](_0x5cb596);}function _0x59d383(_0x2ddd1e,_0x530adc){const _0x44a65b=_0x217abe,_0x579179=new Date(_0x2444f4[_0x44a65b(0x24a)](_0x530adc)),_0x525dac=new Date(_0x2444f4[_0x44a65b(0x24a)](_0x2ddd1e)),_0x43b877=_0x579179[_0x44a65b(0x1e3)](),_0x59c25d=_0x525dac[_0x44a65b(0x1e3)](),_0x28a2fe=_0x579179['getMonth'](),_0x49e7f7=_0x525dac[_0x44a65b(0x395)](),_0x163586=_0x579179[_0x44a65b(0x351)](),_0x2f5fbc=_0x525dac[_0x44a65b(0x351)](),_0x3c70f3=_0x43b877===_0x59c25d,_0x3158d9=_0x3c70f3&&_0x28a2fe===_0x49e7f7;return _0x3c70f3&&_0x3158d9&&!(_0x3158d9&&_0x163586===_0x2f5fbc)?_0x2444f4[_0x44a65b(0x261)][_0x44a65b(0x407)]:_0x3c70f3&&!_0x3158d9?_0x2444f4['PivotDateGroupFieldDateTypeEnum'][_0x44a65b(0x1aa)]:_0x2444f4[_0x44a65b(0x261)][_0x44a65b(0x27a)];}function _0xdfdb9a(_0x5a9fc8,_0xb52448){const _0x278edd=_0x217abe,_0x2ec794=_0x5a9fc8[_0x278edd(0x191)](_0x28dbf0[_0x278edd(0x3f2)])[_0x278edd(0x41a)]();let _0x5cdd5b='';switch(_0xb52448){case _0x2444f4[_0x278edd(0x261)][_0x278edd(0x407)]:_0x5cdd5b=_0x2ec794[_0x278edd(0x20a)];break;case _0x2444f4['PivotDateGroupFieldDateTypeEnum'][_0x278edd(0x1aa)]:_0x5cdd5b=_0x2ec794[_0x278edd(0x250)];break;case _0x2444f4[_0x278edd(0x261)][_0x278edd(0x27a)]:_0x5cdd5b=_0x2ec794['sheets-pivot.dateGroup.year'];break;case _0x2444f4[_0x278edd(0x261)]['Month']:_0x5cdd5b=_0x2ec794['sheets-pivot.dateGroup.month'];break;case _0x2444f4[_0x278edd(0x261)]['Quarter']:_0x5cdd5b=_0x2ec794['sheets-pivot.dateGroup.quarter'];break;case _0x2444f4[_0x278edd(0x261)][_0x278edd(0x218)]:_0x5cdd5b=_0x2ec794[_0x278edd(0x2d1)];break;case _0x2444f4['PivotDateGroupFieldDateTypeEnum']['HourMinute']:_0x5cdd5b=_0x2ec794[_0x278edd(0x1f6)];break;case _0x2444f4[_0x278edd(0x261)][_0x278edd(0x1c3)]:_0x5cdd5b=_0x2ec794[_0x278edd(0x1b3)];break;case _0x2444f4[_0x278edd(0x261)][_0x278edd(0x412)]:_0x5cdd5b=_0x2ec794[_0x278edd(0x203)];break;case _0x2444f4[_0x278edd(0x261)][_0x278edd(0x40b)]:_0x5cdd5b=_0x2ec794[_0x278edd(0x21c)];break;case _0x2444f4[_0x278edd(0x261)][_0x278edd(0x1a3)]:_0x5cdd5b=_0x2ec794[_0x278edd(0x32b)];break;default:_0x5cdd5b='';break;}return _0x5cdd5b;}const _0x1919ce='sheets-pivot.config',_0x123fd7={};var _0x31132e=Object[_0x217abe(0x17a)],_0x5e1a77=(_0x2c1c57,_0x253df3,_0x169b94,_0x55118a)=>{const _0x32e43d=_0x217abe;for(var _0x5a139a=_0x55118a>0x1?void 0x0:_0x55118a?_0x31132e(_0x253df3,_0x169b94):_0x253df3,_0x3d7fc1=_0x2c1c57[_0x32e43d(0x31a)]-0x1,_0x2d6332;_0x3d7fc1>=0x0;_0x3d7fc1--)(_0x2d6332=_0x2c1c57[_0x3d7fc1])&&(_0x5a139a=_0x2d6332(_0x5a139a)||_0x5a139a);return _0x5a139a;},_0x5adb9d=(_0x78e187,_0x2c4faa)=>(_0x3e4760,_0x2ace49)=>_0x2c4faa(_0x3e4760,_0x2ace49,_0x78e187);_0x28dbf0[_0x217abe(0x390)]=class extends _0x5cf8ff[_0x217abe(0x374)]{constructor(_0x5b0ea6,_0x5ac854,_0x558f16,_0x30198f,_0x3a73a4){const _0x45e5ce=_0x217abe;super(),_0x4cbd74(this,'_model',new Map()),_0x4cbd74(this,'_collectionConfigModel',new Map()),_0x4cbd74(this,_0x45e5ce(0x303),new Map()),_0x4cbd74(this,_0x45e5ce(0x1ad),new Map()),_0x4cbd74(this,'_configVersion$',new _0x12702c[(_0x45e5ce(0x1fb))]()),_0x4cbd74(this,_0x45e5ce(0x243),new _0x12702c['Subject']()),_0x4cbd74(this,_0x45e5ce(0x418),this[_0x45e5ce(0x243)]['asObservable']()),_0x4cbd74(this,_0x45e5ce(0x3ba),new _0x12702c[(_0x45e5ce(0x1fb))]()),_0x4cbd74(this,'pivotConfigChange$',this[_0x45e5ce(0x3ba)][_0x45e5ce(0x29b)]()),_0x4cbd74(this,_0x45e5ce(0x438),{}),_0x4cbd74(this,'configVersion$',this['_configVersion$']['asObservable']()),(this[_0x45e5ce(0x43c)]=_0x5b0ea6,this[_0x45e5ce(0x36f)]=_0x5ac854,this[_0x45e5ce(0x172)]=_0x558f16,this['_resourceManagerService']=_0x30198f,this[_0x45e5ce(0x1bd)]=_0x3a73a4,this[_0x45e5ce(0x3f0)](),this[_0x45e5ce(0x307)]());const _0xddaac5=this[_0x45e5ce(0x1bd)][_0x45e5ce(0x2ec)](_0x1919ce);(_0xddaac5==null?void 0x0:_0xddaac5[_0x45e5ce(0x2c8)])===!0x0&&this[_0x45e5ce(0x40a)]();}[_0x217abe(0x307)](){const _0x21158e=_0x217abe;this['disposeWithMe'](this[_0x21158e(0x172)][_0x21158e(0x326)](_0x5cf8ff[_0x21158e(0x32d)][_0x21158e(0x36c)])[_0x21158e(0x1de)](_0x499184=>{const _0x2792f8=_0x21158e;this[_0x2792f8(0x392)](_0x499184['getUnitId']());}));}[_0x217abe(0x26c)](){const _0x4f21f2=_0x217abe;this[_0x4f21f2(0x243)]['next'](!0x0);}[_0x217abe(0x3f0)](){const _0x460ffd=_0x217abe,_0x400db0=_0x3b5642(this[_0x460ffd(0x43c)],_0x1eacb1,'',{});this[_0x460ffd(0x438)]=_0x400db0,this[_0x460ffd(0x36f)][_0x460ffd(0x355)](_0x5d77fb['id'],{'textInfo':_0x400db0},{'onlyLocal':!0x0});}[_0x217abe(0x41a)](){const _0x121cc6=_0x217abe;return this[_0x121cc6(0x438)];}[_0x217abe(0x169)](_0x528c54,_0x4268b4,_0x1c1080,_0xfeae59,_0x3c1f37){const _0x24dcb6=_0x217abe;this[_0x24dcb6(0x160)](_0x528c54,_0x4268b4,_0x1c1080,_0xfeae59),this[_0x24dcb6(0x20c)](_0x528c54,_0x4268b4,_0x1c1080,_0x3c1f37);}[_0x217abe(0x19a)](_0xdd66fb,_0x4e1fff,_0x44be86){const _0x3cc364=_0x217abe;var _0x38e568;const _0x4aff6f=(_0x38e568=this[_0x3cc364(0x22b)][_0x3cc364(0x191)](_0xdd66fb))==null?void 0x0:_0x38e568['get'](_0x4e1fff);if(_0x4aff6f)return _0x4aff6f[_0x3cc364(0x191)](_0x44be86);}['getTargetByPivotTableId'](_0x432c39,_0x19ca78){const _0x469f00=_0x217abe,_0x3eb280=this[_0x469f00(0x22b)][_0x469f00(0x191)](_0x432c39);if(_0x3eb280){for(const [_0x3fe592,_0xb98056]of _0x3eb280['entries']())for(const [_0x463e64,_0x5c1530]of _0xb98056[_0x469f00(0x3ca)]())if(_0x463e64===_0x19ca78)return _0x5c1530['targetCellInfo'];}}[_0x217abe(0x183)](_0x4ba403,_0x341fc4,_0x47e62c){const _0x54b3fb=_0x217abe,_0x5f0faf=this['getPivotTableConfig'](_0x4ba403,_0x341fc4,_0x47e62c);return _0x5f0faf==null?void 0x0:_0x5f0faf[_0x54b3fb(0x25b)];}[_0x217abe(0x456)](_0x181a02,_0x106030){const _0x3fad85=_0x217abe;var _0x200110;return(_0x200110=this[_0x3fad85(0x22b)][_0x3fad85(0x191)](_0x181a02))==null?void 0x0:_0x200110[_0x3fad85(0x191)](_0x106030);}[_0x217abe(0x19b)](_0x33f6ac,_0x339992,_0x5072a5,_0x44ea17){const _0x181232=_0x217abe,_0x2e3a78=this[_0x181232(0x29d)](_0x33f6ac,_0x339992);_0x44ea17?_0x2e3a78[_0x181232(0x444)](_0x5072a5,_0x44ea17):_0x2e3a78[_0x181232(0x168)](_0x5072a5),this['_pivotConfigChange$'][_0x181232(0x377)]({'unitId':_0x33f6ac,'subUnitId':_0x339992,'pivotTableId':_0x5072a5,'pivotTableConfig':_0x44ea17});}[_0x217abe(0x371)](_0x1373ec,_0x1d97e9){const _0x2f8e42=_0x217abe;var _0x5a1ed0;return(_0x5a1ed0=this[_0x2f8e42(0x1f4)]['get'](_0x1373ec))==null?void 0x0:_0x5a1ed0[_0x2f8e42(0x2bb)][_0x1d97e9];}[_0x217abe(0x471)](_0x3b7ba4,_0x192ad6){const _0x3040f0=_0x217abe;this[_0x3040f0(0x1f4)][_0x3040f0(0x444)](_0x3b7ba4,_0x192ad6),this[_0x3040f0(0x2ba)][_0x3040f0(0x377)](Math[_0x3040f0(0x37d)]());}[_0x217abe(0x29d)](_0x10110e,_0x2fb9fe){const _0x49f4b7=_0x217abe;let _0x5e42f6=this['_model'][_0x49f4b7(0x191)](_0x10110e);_0x5e42f6||(_0x5e42f6=new Map(),this['_model'][_0x49f4b7(0x444)](_0x10110e,_0x5e42f6));let _0x97a0e6=_0x5e42f6['get'](_0x2fb9fe);return _0x97a0e6||(_0x97a0e6=new Map(),_0x5e42f6['set'](_0x2fb9fe,_0x97a0e6)),_0x97a0e6;}[_0x217abe(0x406)](_0x59ba9f,_0x1955ce){const _0x3e3f75=_0x217abe;let _0x14f078=this[_0x3e3f75(0x303)][_0x3e3f75(0x191)](_0x59ba9f);_0x14f078||(_0x14f078=new Map(),this['_pivotTableRangeInfo'][_0x3e3f75(0x444)](_0x59ba9f,_0x14f078));let _0x438374=_0x14f078['get'](_0x1955ce);return _0x438374||(_0x438374=new Map(),_0x14f078[_0x3e3f75(0x444)](_0x1955ce,_0x438374)),_0x438374;}[_0x217abe(0x294)](_0x2bc296,_0x589775){const _0x4f4065=_0x217abe;let _0x3ae079=this[_0x4f4065(0x1ad)]['get'](_0x2bc296);_0x3ae079||(_0x3ae079=new Map(),this[_0x4f4065(0x1ad)][_0x4f4065(0x444)](_0x2bc296,_0x3ae079));let _0x72332e=_0x3ae079[_0x4f4065(0x191)](_0x589775);return _0x72332e||(_0x72332e=new Map(),_0x3ae079['set'](_0x589775,_0x72332e)),_0x72332e;}[_0x217abe(0x20c)](_0x33010a,_0x50190e,_0x2545ee,_0x290b39){const _0x442a6e=_0x217abe;var _0x4f6f3f;const _0x5d960f=this[_0x442a6e(0x406)](_0x33010a,_0x50190e),_0x13d8ac=(_0x4f6f3f=_0x5d960f[_0x442a6e(0x191)](_0x2545ee))==null?void 0x0:_0x4f6f3f[_0x442a6e(0x352)];_0x5d960f[_0x442a6e(0x444)](_0x2545ee,{'oldRangeInfo':_0x13d8ac,'rangeInfo':_0x290b39});}['updatePivotTableMatrixInfo'](_0x1c0a2,_0x139afd,_0x5bed4d,_0x3e7f7b){const _0x4ef99c=_0x217abe;var _0x368cf8;const _0x14ab26=this[_0x4ef99c(0x294)](_0x1c0a2,_0x139afd),_0x3d4cb3=(_0x368cf8=_0x14ab26[_0x4ef99c(0x191)](_0x5bed4d))==null?void 0x0:_0x368cf8[_0x4ef99c(0x23f)];_0x14ab26[_0x4ef99c(0x444)](_0x5bed4d,{'oldMatrix':_0x3d4cb3,'matrix':_0x3e7f7b});}[_0x217abe(0x2de)](_0x1d084c,_0x4be67f,_0xf20322){const _0x933c5a=_0x217abe;var _0x243113,_0x17d306;return(_0x17d306=(_0x243113=this['_pivotTableRangeInfo'][_0x933c5a(0x191)](_0x1d084c))==null?void 0x0:_0x243113[_0x933c5a(0x191)](_0x4be67f))==null?void 0x0:_0x17d306[_0x933c5a(0x191)](_0xf20322);}[_0x217abe(0x1fe)](_0x4900f3,_0x1c75f9,_0x22d319){const _0x45bfa6=_0x217abe;var _0x477c2c,_0xb22964;return(_0xb22964=(_0x477c2c=this[_0x45bfa6(0x1ad)]['get'](_0x4900f3))==null?void 0x0:_0x477c2c['get'](_0x1c75f9))==null?void 0x0:_0xb22964[_0x45bfa6(0x191)](_0x22d319);}['deleteUnitId'](_0x4e6a12){const _0x3ed2d3=_0x217abe;this[_0x3ed2d3(0x22b)][_0x3ed2d3(0x168)](_0x4e6a12),this[_0x3ed2d3(0x1f4)][_0x3ed2d3(0x168)](_0x4e6a12);}['_toJSON'](_0x3f32f6){const _0x3d946b=_0x217abe,_0x4e2a34={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['_collectionConfigModel'][_0x3d946b(0x191)](_0x3f32f6)&&(_0x4e2a34[_0x3d946b(0x3cf)][_0x3f32f6]=this['_collectionConfigModel'][_0x3d946b(0x191)](_0x3f32f6)),this[_0x3d946b(0x22b)][_0x3d946b(0x191)](_0x3f32f6)){_0x4e2a34[_0x3d946b(0x33d)][_0x3f32f6]={};const _0x52b3fe=this[_0x3d946b(0x22b)][_0x3d946b(0x191)](_0x3f32f6);_0x52b3fe!=null&&_0x52b3fe['size']&&[..._0x52b3fe[_0x3d946b(0x16c)]()][_0x3d946b(0x22c)](_0x3ed07c=>{const _0x1d7e69=_0x3d946b,_0x205744=_0x52b3fe['get'](_0x3ed07c);_0x205744!=null&&_0x205744[_0x1d7e69(0x1da)]&&(_0x4e2a34[_0x1d7e69(0x33d)][_0x3f32f6][_0x3ed07c]={},[..._0x205744['keys']()][_0x1d7e69(0x22c)](_0xe9e92c=>{const _0x39a855=_0x1d7e69,_0x3d9eca=_0x205744[_0x39a855(0x191)](_0xe9e92c);_0x3d9eca&&(_0x4e2a34[_0x39a855(0x33d)][_0x3f32f6][_0x3ed07c][_0xe9e92c]=_0x3d9eca);}));});}return _0x4e2a34;}[_0x217abe(0x40a)](){const _0x4cf4db=_0x217abe;this[_0x4cf4db(0x3e2)](this[_0x4cf4db(0x167)]['registerPluginResource']({'toJson':_0x4d7970=>JSON[_0x4cf4db(0x210)](this[_0x4cf4db(0x264)](_0x4d7970)),'parseJson':_0x1780cc=>({}),'businesses':[_0x5cf8ff['UniverInstanceType'][_0x4cf4db(0x36c)]],'pluginName':_0x5690d9,'onLoad':(_0x43e21a,_0x500ea1)=>{},'onUnLoad':_0xe3f66c=>{const _0x37fc62=_0x4cf4db;this[_0x37fc62(0x392)](_0xe3f66c);}}));}},_0x28dbf0[_0x217abe(0x390)]=_0x5e1a77([_0x5adb9d(0x0,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x3e6)])),_0x5adb9d(0x1,_0x5cf8ff['Inject'](_0x5cf8ff[_0x217abe(0x20e)])),_0x5adb9d(0x2,_0x5cf8ff['Inject'](_0x5cf8ff[_0x217abe(0x198)])),_0x5adb9d(0x3,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff['IResourceManagerService'])),_0x5adb9d(0x4,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x1b0)]))],_0x28dbf0[_0x217abe(0x390)]);var _0x1362ce=Object[_0x217abe(0x17a)],_0x3a8a53=(_0x35eb3c,_0x704388,_0x2c2156,_0x5de6c3)=>{const _0x50094b=_0x217abe;for(var _0xd71f35=_0x5de6c3>0x1?void 0x0:_0x5de6c3?_0x1362ce(_0x704388,_0x2c2156):_0x704388,_0x4e2245=_0x35eb3c[_0x50094b(0x31a)]-0x1,_0xd61db1;_0x4e2245>=0x0;_0x4e2245--)(_0xd61db1=_0x35eb3c[_0x4e2245])&&(_0xd71f35=_0xd61db1(_0xd71f35)||_0xd71f35);return _0xd71f35;},_0x4ddfa9=(_0x1617cf,_0x2526f1)=>(_0x392e5c,_0x356a22)=>_0x2526f1(_0x392e5c,_0x356a22,_0x1617cf);_0x28dbf0[_0x217abe(0x3eb)]=class extends _0x5cf8ff[_0x217abe(0x374)]{constructor(_0x4c5f44,_0x54e2b0,_0x1b0b5a,_0x3692ba,_0x5392c2){const _0x4ed9e7=_0x217abe;super(),_0x4cbd74(this,_0x4ed9e7(0x3d4),new Map()),_0x4cbd74(this,_0x4ed9e7(0x437),new Map()),_0x4cbd74(this,_0x4ed9e7(0x228),new _0x12702c[(_0x4ed9e7(0x1fb))]()),_0x4cbd74(this,_0x4ed9e7(0x3dd),this[_0x4ed9e7(0x228)][_0x4ed9e7(0x29b)]()),_0x4cbd74(this,_0x4ed9e7(0x19d),new _0x12702c['Subject']()),_0x4cbd74(this,'viewUpdate$',this[_0x4ed9e7(0x19d)][_0x4ed9e7(0x29b)]()),_0x4cbd74(this,_0x4ed9e7(0x438)),(this[_0x4ed9e7(0x346)]=_0x4c5f44,this[_0x4ed9e7(0x43c)]=_0x54e2b0,this[_0x4ed9e7(0x296)]=_0x1b0b5a,this[_0x4ed9e7(0x172)]=_0x3692ba,this[_0x4ed9e7(0x170)]=_0x5392c2,this[_0x4ed9e7(0x3f0)](),this[_0x4ed9e7(0x307)]());}['_initUnitDisposed'](){const _0x5195e3=_0x217abe;this[_0x5195e3(0x3e2)](this[_0x5195e3(0x172)][_0x5195e3(0x326)](_0x5cf8ff[_0x5195e3(0x32d)][_0x5195e3(0x36c)])[_0x5195e3(0x1de)](_0x4015b0=>{const _0x28911f=_0x5195e3;this[_0x28911f(0x392)](_0x4015b0[_0x28911f(0x443)]());}));}[_0x217abe(0x3f0)](){const _0x14f4b9=_0x217abe;this['_textInfo']=_0x3b5642(this[_0x14f4b9(0x43c)],_0x1eacb1,'',{});}['updateRenderCache'](_0x1be13e){const _0x7093cc=_0x217abe,{view:_0xa77fc,unitId:_0x576daa,subUnitId:_0x1e1ba8,pivotTableId:_0x5cb5ad,type:_0x1188b6}=_0x1be13e,_0x56f619=this[_0x7093cc(0x296)][_0x7093cc(0x19a)](_0x576daa,_0x1e1ba8,_0x5cb5ad);if(!_0xa77fc||!_0x56f619||_0x1188b6===_0x5da69e['Delete'])return;const {pageView:_0x69628d,cornerView:_0x410e8a,rowView:_0x5adbb3,colView:_0x2e85c3,dataView:_0x464a9b}=_0xa77fc,_0x2eec36=_0x56f619[_0x7093cc(0x25b)],_0x3e1efe=_0x56f619[_0x7093cc(0x447)],_0x26f659=this['_ensurePivotItemRenderValueMatrixCache'](_0x576daa,_0x1e1ba8),_0x45dac0=this[_0x7093cc(0x43a)](_0x576daa,_0x1e1ba8,_0x5cb5ad);if(_0x3e1efe)return this[_0x7093cc(0x197)](_0x1be13e,_0x26f659,_0x2eec36,_0x45dac0);{const _0x3e403b=_0x3e0b54(_0x2eec36,_0x69628d,!0x0),_0x1d6ca0=_0x69628d['lastRow']>=0x0?_0x69628d['lastRow']+0x1:0x0,_0x149cfe=_0x410e8a['getRowCount'](),_0x24b87f=_0x410e8a[_0x7093cc(0x299)](),_0x5611dc=_0x3e403b['length']>0x0?_0x491659:0x0,_0x10f53a=_0x3e0b54({'row':_0x2eec36[_0x7093cc(0x2aa)]+_0x1d6ca0+_0x5611dc,'col':_0x2eec36[_0x7093cc(0x1b1)]},_0x410e8a,!0x1,!0x1),_0x342d76=_0x3e0b54({'row':_0x2eec36[_0x7093cc(0x2aa)]+_0x1d6ca0+_0x5611dc+_0x149cfe,'col':_0x2eec36[_0x7093cc(0x1b1)]},_0x5adbb3,!0x1,!0x0),_0x1b0f0f=_0x3e0b54({'row':_0x2eec36['row']+_0x1d6ca0+_0x5611dc,'col':_0x2eec36[_0x7093cc(0x1b1)]+_0x24b87f},_0x2e85c3,!0x1,!0x0),_0x47b93d=_0x3e0b54({'row':_0x2eec36[_0x7093cc(0x2aa)]+_0x1d6ca0+_0x5611dc+_0x149cfe,'col':_0x2eec36[_0x7093cc(0x1b1)]+_0x24b87f},_0x464a9b,!0x1,!0x1);_0x45dac0[_0x7093cc(0x1dd)]={'rowRanges':_0x342d76,'colRanges':_0x1b0f0f,'cornerRanges':_0x10f53a,'dataRanges':_0x47b93d,'pageRanges':_0x3e403b};const _0xd51fc7=_0x1b0d96(this[_0x7093cc(0x43c)],_0xa77fc,_0x56f619,this[_0x7093cc(0x438)]),{valueMatrix:_0x41ecfd,rowInfo:_0x2afd44,colInfo:_0x570ad4,cornerInfo:_0xedd2e7,rowHeaderMap:_0x33d668,colHeaderMap:_0x1327c8}=_0xd51fc7;return _0x45dac0[_0x7093cc(0x416)]={'rowInfo':_0x2afd44,'colInfo':_0x570ad4,'cornerInfo':_0xedd2e7},_0x45dac0['headerMap']={'rowHeaderMap':_0x33d668,'colHeaderMap':_0x1327c8},_0x41ecfd[_0x7093cc(0x22c)]((_0x1c25c8,_0x4bf73e)=>{const _0x4417b6=_0x7093cc;Object[_0x4417b6(0x16c)](_0x4bf73e)[_0x4417b6(0x22c)](_0x399c1a=>{const _0x21c3b8=_0x4417b6,_0x220238=+_0x399c1a,_0x2b1af8=_0x41ecfd[_0x21c3b8(0x2bd)](_0x1c25c8,_0x220238);_0x26f659['setValue'](_0x1c25c8,_0x220238,_0x2b1af8);});}),this[_0x7093cc(0x19d)][_0x7093cc(0x377)]({'unitId':_0x576daa,'subUnitId':_0x1e1ba8,'valueMatrix':_0x26f659,'rangesCache':_0x45dac0[_0x7093cc(0x1dd)],'pivotTableId':_0x5cb5ad,'type':_0x1be13e[_0x7093cc(0x2a1)]}),this[_0x7093cc(0x296)][_0x7093cc(0x169)](_0x576daa,_0x1e1ba8,_0x5cb5ad,_0x26f659,_0x45dac0[_0x7093cc(0x1dd)]),this[_0x7093cc(0x170)][_0x7093cc(0x1b6)](_0x576daa,_0x1e1ba8,_0x4b224b,this[_0x7093cc(0x20b)](_0x45dac0[_0x7093cc(0x1dd)],_0x5cb5ad)),{'rangeCache':_0x45dac0['rangesInfo'],'matrix':_0x26f659};}}[_0x217abe(0x197)](_0x257310,_0x3ce0a6,_0x14fb0f,_0x22a31f){const _0x656057=_0x217abe,_0x2e12cd=this[_0x656057(0x346)]['t'],{unitId:_0x3f8622,subUnitId:_0x2efae8,pivotTableId:_0x359503}=_0x257310,_0x430ea9={'filter':_0x2e12cd('sheets-pivot.emptyPivot.filter'),'row':_0x2e12cd(_0x656057(0x463)),'column':_0x2e12cd(_0x656057(0x318)),'values':_0x2e12cd(_0x656057(0x24c))},{matrixCache:_0x5a6ef8,rangesCache:_0x5c2e40}=_0x399209(_0x430ea9,_0x14fb0f);return _0x5a6ef8['forValue']((_0x41956f,_0x3ada85,_0x538962)=>{_0x3ce0a6['setValue'](_0x41956f,_0x3ada85,_0x538962);}),_0x22a31f[_0x656057(0x1dd)]=_0x5c2e40,this['_viewUpdate$'][_0x656057(0x377)]({'unitId':_0x3f8622,'subUnitId':_0x2efae8,'valueMatrix':_0x3ce0a6,'rangesCache':_0x5c2e40,'pivotTableId':_0x359503,'type':_0x257310['type'],'isEmpty':!0x0}),this[_0x656057(0x296)][_0x656057(0x169)](_0x3f8622,_0x2efae8,_0x359503,_0x3ce0a6,_0x5c2e40),this[_0x656057(0x170)][_0x656057(0x1b6)](_0x3f8622,_0x2efae8,_0x4b224b,this['_createExclusiveRange'](_0x5c2e40,_0x359503)),{'rangeCache':_0x22a31f[_0x656057(0x1dd)],'matrix':_0x3ce0a6};}[_0x217abe(0x20b)](_0x2868cf,_0x36ca15){const _0x4b0ab2=_0x217abe,_0x5138fd=[],_0x12944e=_0x54f967(_0x2868cf);for(const _0x2c7f76 of _0x12944e)_0x5138fd[_0x4b0ab2(0x3d3)]({'groupId':_0x36ca15,'range':_0x2c7f76});return _0x5138fd;}[_0x217abe(0x16b)](_0x1708fc){const _0x54b660=_0x217abe;var _0xcc0d1f,_0x4907fa,_0x38b1ed,_0x1a624d;const {pivotTableId:_0x1b42f0,unitId:_0x920d9,subUnitId:_0x54c4f6}=_0x1708fc;if(!_0x1b42f0||!_0x920d9||!_0x54c4f6)return;const _0x39d8ff=this[_0x54b660(0x2c2)](_0x920d9,_0x54c4f6),_0x5f0059=(_0x4907fa=(_0xcc0d1f=this[_0x54b660(0x3d4)][_0x54b660(0x191)](_0x920d9))==null?void 0x0:_0xcc0d1f['get'](_0x54c4f6))==null?void 0x0:_0x4907fa[_0x54b660(0x191)](_0x1b42f0);if(_0x5f0059!=null&&_0x5f0059[_0x54b660(0x1dd)]){for(const _0x5cec3f of Object[_0x54b660(0x16c)](_0x5f0059['rangesInfo']))_0x5f0059[_0x54b660(0x1dd)][_0x5cec3f][_0x54b660(0x22c)](_0x31b16b=>{const _0x172ed3=_0x54b660;for(let _0x3ca291=_0x31b16b[_0x172ed3(0x1f3)];_0x3ca291<=_0x31b16b[_0x172ed3(0x46c)];_0x3ca291++)for(let _0x21ddd8=_0x31b16b[_0x172ed3(0x38b)];_0x21ddd8<=_0x31b16b[_0x172ed3(0x3ab)];_0x21ddd8++)_0x39d8ff[_0x172ed3(0x1df)](_0x3ca291,_0x21ddd8);});}_0x5f0059&&((_0x1a624d=(_0x38b1ed=this[_0x54b660(0x3d4)][_0x54b660(0x191)](_0x920d9))==null?void 0x0:_0x38b1ed[_0x54b660(0x191)](_0x54c4f6))==null||_0x1a624d[_0x54b660(0x168)](_0x1b42f0)),this['_viewUpdate$']['next']({'unitId':_0x920d9,'subUnitId':_0x54c4f6,'valueMatrix':_0x39d8ff,'pivotTableId':_0x1b42f0,'rangesCache':void 0x0,'type':_0x1708fc[_0x54b660(0x2a1)]}),this['_exclusiveRangeService']['clearExclusiveRangesByGroupId'](_0x920d9,_0x54c4f6,_0x4b224b,_0x1b42f0);}['_ensurePivotItemRenderInfoCache'](_0x5a9540,_0x2b5cc2,_0x21fec8){const _0x4f2c76=_0x217abe;var _0x172d4c,_0x1d2ba7,_0x5be282,_0x141ea0,_0x3011c8,_0xacc0b9;return this[_0x4f2c76(0x3d4)][_0x4f2c76(0x2fb)](_0x5a9540)||this[_0x4f2c76(0x3d4)][_0x4f2c76(0x444)](_0x5a9540,new Map()),(_0x172d4c=this[_0x4f2c76(0x3d4)][_0x4f2c76(0x191)](_0x5a9540))!=null&&_0x172d4c[_0x4f2c76(0x2fb)](_0x2b5cc2)||(_0x1d2ba7=this['_pivotRenderInfoCache'][_0x4f2c76(0x191)](_0x5a9540))==null||_0x1d2ba7['set'](_0x2b5cc2,new Map()),(_0x141ea0=(_0x5be282=this['_pivotRenderInfoCache']['get'](_0x5a9540))==null?void 0x0:_0x5be282[_0x4f2c76(0x191)](_0x2b5cc2))!=null&&_0x141ea0[_0x4f2c76(0x2fb)](_0x21fec8)||(_0xacc0b9=(_0x3011c8=this[_0x4f2c76(0x3d4)][_0x4f2c76(0x191)](_0x5a9540))==null?void 0x0:_0x3011c8[_0x4f2c76(0x191)](_0x2b5cc2))==null||_0xacc0b9['set'](_0x21fec8,{}),this[_0x4f2c76(0x3d4)][_0x4f2c76(0x191)](_0x5a9540)[_0x4f2c76(0x191)](_0x2b5cc2)[_0x4f2c76(0x191)](_0x21fec8);}[_0x217abe(0x2c2)](_0x408eec,_0x113a85){const _0x22ac89=_0x217abe;var _0x5bb6d9,_0x1f6a33;return this[_0x22ac89(0x437)][_0x22ac89(0x2fb)](_0x408eec)||this[_0x22ac89(0x437)][_0x22ac89(0x444)](_0x408eec,new Map()),(_0x5bb6d9=this[_0x22ac89(0x437)]['get'](_0x408eec))!=null&&_0x5bb6d9[_0x22ac89(0x2fb)](_0x113a85)||(_0x1f6a33=this[_0x22ac89(0x437)][_0x22ac89(0x191)](_0x408eec))==null||_0x1f6a33['set'](_0x113a85,new _0x5cf8ff[(_0x22ac89(0x27d))]()),this['_pivotRenderValueMatrixCache'][_0x22ac89(0x191)](_0x408eec)[_0x22ac89(0x191)](_0x113a85);}[_0x217abe(0x436)](_0x4fef73,_0x3c8b09,_0xa270b2,_0x1f6571){const _0x560316=_0x217abe;var _0xa29fd8,_0x158c1f;const _0x4ac047=(_0x158c1f=(_0xa29fd8=this[_0x560316(0x437)]['get'](_0x4fef73))==null?void 0x0:_0xa29fd8[_0x560316(0x191)](_0x3c8b09))==null?void 0x0:_0x158c1f[_0x560316(0x2bd)](_0xa270b2,_0x1f6571);if(_0x4ac047!=null)return _0x4ac047;}['getPivotTableIdByCell'](_0x4a66d8,_0x1d7572,_0x36291e,_0x5324d8){const _0x53bef3=_0x217abe;var _0x575cdb;const _0x24c80c=_0x5cf8ff[_0x53bef3(0x396)](_0x36291e,_0x5324d8),_0x1c46b4=(_0x575cdb=this[_0x53bef3(0x3d4)][_0x53bef3(0x191)](_0x4a66d8))==null?void 0x0:_0x575cdb[_0x53bef3(0x191)](_0x1d7572);return _0x1c46b4?Array[_0x53bef3(0x440)](_0x1c46b4['keys']())[_0x53bef3(0x3a6)](_0x39be3f=>{const _0xa62946=_0x53bef3,_0x4f52f9=_0x1c46b4['get'](_0x39be3f),_0x517832=_0x4f52f9==null?void 0x0:_0x4f52f9['rangesInfo'];return _0x517832?Object[_0xa62946(0x16c)](_0x517832)['some'](_0xe15935=>_0x517832[_0xe15935][_0xa62946(0x3ad)](_0x401607=>_0x5cf8ff['Rectangle']['contains'](_0x401607,_0x24c80c))):!0x1;}):void 0x0;}[_0x217abe(0x39b)](_0x3cacc8,_0x15dbd6,_0x150032){const _0x764d68=_0x217abe;var _0x4a65bb;const _0x1ce9d7=(_0x4a65bb=this[_0x764d68(0x3d4)]['get'](_0x3cacc8))==null?void 0x0:_0x4a65bb['get'](_0x15dbd6),_0x284a1d=[];return _0x1ce9d7&&Array['from'](_0x1ce9d7['keys']())[_0x764d68(0x22c)](_0x6f1b7a=>{const _0x2b5dd8=_0x764d68,_0x43ed0b=_0x1ce9d7['get'](_0x6f1b7a),_0x43333c=_0x43ed0b==null?void 0x0:_0x43ed0b[_0x2b5dd8(0x1dd)];if(_0x43333c)for(const _0x395f98 of Object[_0x2b5dd8(0x258)](_0x43333c)){let _0x5ea4c8=!0x1;for(const _0x2b4866 of _0x395f98)if(_0x5cf8ff[_0x2b5dd8(0x1d8)][_0x2b5dd8(0x2ab)](_0x2b4866,_0x150032)){_0x284a1d[_0x2b5dd8(0x3d3)](_0x6f1b7a),_0x5ea4c8=!0x0;break;}if(_0x5ea4c8)break;}}),_0x284a1d;}[_0x217abe(0x2ca)](_0x5ef383,_0x25488a){const _0x3753e5=_0x217abe;var _0x44d98c,_0x38ba5c;return(_0x38ba5c=(_0x44d98c=this[_0x3753e5(0x437)]['get'](_0x5ef383))==null?void 0x0:_0x44d98c[_0x3753e5(0x191)](_0x25488a))!=null?_0x38ba5c:new _0x5cf8ff['ObjectMatrix']();}[_0x217abe(0x248)](_0x1702f1,_0x45a61d){const _0x24f3be=_0x217abe;var _0xa6fb5a;return(_0xa6fb5a=this[_0x24f3be(0x3d4)][_0x24f3be(0x191)](_0x1702f1))==null?void 0x0:_0xa6fb5a['get'](_0x45a61d);}['getPivotItemRenderInfoCache'](_0xe8b75d,_0x4cb8d1,_0x3fbc29){const _0x5ab368=_0x217abe;var _0x39a65b,_0x5b5a6e;return(_0x5b5a6e=(_0x39a65b=this[_0x5ab368(0x3d4)]['get'](_0xe8b75d))==null?void 0x0:_0x39a65b[_0x5ab368(0x191)](_0x4cb8d1))==null?void 0x0:_0x5b5a6e[_0x5ab368(0x191)](_0x3fbc29);}[_0x217abe(0x392)](_0x184b8e){const _0x29b8e2=_0x217abe;this[_0x29b8e2(0x3d4)][_0x29b8e2(0x168)](_0x184b8e),this[_0x29b8e2(0x437)][_0x29b8e2(0x168)](_0x184b8e);}[_0x217abe(0x1c7)](_0x58875e,_0x461a04){const _0x1fd411=_0x217abe;this[_0x1fd411(0x228)][_0x1fd411(0x377)]({'unitId':_0x58875e,'subUnitId':_0x461a04});}},_0x28dbf0[_0x217abe(0x3eb)]=_0x3a8a53([_0x4ddfa9(0x0,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x28e)])),_0x4ddfa9(0x1,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff['Injector'])),_0x4ddfa9(0x2,_0x5cf8ff[_0x217abe(0x306)](_0x28dbf0[_0x217abe(0x390)])),_0x4ddfa9(0x3,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x198)])),_0x4ddfa9(0x4,_0x5cf8ff[_0x217abe(0x306)](_0x3d008a[_0x217abe(0x1e9)]))],_0x28dbf0['SheetsPivotTableAdaptorModel']);var _0x2dab21=Object[_0x217abe(0x17a)],_0x1ba280=(_0xfccf17,_0x4de2c3,_0x20d686,_0xdedbdd)=>{const _0x4747ab=_0x217abe;for(var _0x527263=_0xdedbdd>0x1?void 0x0:_0xdedbdd?_0x2dab21(_0x4de2c3,_0x20d686):_0x4de2c3,_0x549ecb=_0xfccf17[_0x4747ab(0x31a)]-0x1,_0x1f94e9;_0x549ecb>=0x0;_0x549ecb--)(_0x1f94e9=_0xfccf17[_0x549ecb])&&(_0x527263=_0x1f94e9(_0x527263)||_0x527263);return _0x527263;},_0x1b2507=(_0x3ac775,_0x49d1a2)=>(_0x3b2e2f,_0x2d562)=>_0x49d1a2(_0x3b2e2f,_0x2d562,_0x3ac775);_0x28dbf0[_0x217abe(0x368)]=class extends _0x5cf8ff['Disposable']{constructor(_0x56f5bc,_0x324fa1){const _0x47f340=_0x217abe;super(),_0x4cbd74(this,'asyncInterceptor',new _0x5cf8ff[(_0x47f340(0x42a))]({'PIVOT_PERFORM_CHECK':_0x42699f})),_0x4cbd74(this,'interceptor',new _0x5cf8ff[(_0x47f340(0x3b1))]({'PIVOT_MUTATION_GENERATE':_0x744bc6})),(this['_sheetInterceptorService']=_0x56f5bc,this[_0x47f340(0x2e9)]=_0x324fa1,this['_init']());}[_0x217abe(0x37a)](){this['_initViewModelBySheetInterceptor']();}[_0x217abe(0x1a7)](_0x41f86c){const _0xffdff2=_0x217abe;return this[_0xffdff2(0x342)][_0xffdff2(0x1d1)](_0x42699f)(!0x1,_0x41f86c);}[_0x217abe(0x1ac)](){const _0x4bcc67=_0x217abe;this['disposeWithMe'](this[_0x4bcc67(0x292)][_0x4bcc67(0x345)](_0x3d008a[_0x4bcc67(0x310)]['CELL_CONTENT'],{'priority':0xc8,'effect':_0x5cf8ff[_0x4bcc67(0x1eb)][_0x4bcc67(0x1e4)]|_0x5cf8ff[_0x4bcc67(0x1eb)]['Style'],'handler':(_0x2de823,_0x55da9b,_0x4498b6)=>{const _0x44da9e=_0x4bcc67,{row:_0x519d6d,col:_0x3f79b0,unitId:_0x5a15b0,subUnitId:_0x1a41ee,workbook:_0x519f8f}=_0x55da9b,_0x3af120=this[_0x44da9e(0x2e9)][_0x44da9e(0x436)](_0x5a15b0,_0x1a41ee,_0x519d6d,_0x3f79b0);if(!_0x3af120)return _0x4498b6(_0x2de823);const _0xdd0e0a={..._0x2de823};(_0x3af120['v']||_0x3af120['v']===0x0)&&(_0xdd0e0a['v']=_0x3af120['v']),_0x3af120['t']&&(_0xdd0e0a['t']=_0x3af120['t']);const _0x6f2f31=(typeof(_0x2de823==null?void 0x0:_0x2de823['s'])==_0x44da9e(0x211)?_0x519f8f[_0x44da9e(0x42f)]()[_0x44da9e(0x191)](_0x2de823==null?void 0x0:_0x2de823['s']):_0x2de823==null?void 0x0:_0x2de823['s'])||{},_0x22ddbb=_0x519f8f['getStyles']()[_0x44da9e(0x191)](_0x3af120['s']),_0x202eee={..._0x22ddbb,..._0x6f2f31};_0x22ddbb!=null&&_0x22ddbb['n']&&(_0x202eee['n']=_0x22ddbb['n']);const _0x3a4c6b=_0x519f8f[_0x44da9e(0x42f)]()[_0x44da9e(0x364)](_0x202eee);return _0xdd0e0a['s']=_0x3a4c6b,(_0x3af120[_0x44da9e(0x192)]===_0x2444f4[_0x44da9e(0x34e)][_0x44da9e(0x308)]||_0x3af120[_0x44da9e(0x192)]===_0x2444f4[_0x44da9e(0x34e)]['Expand'])&&(_0xdd0e0a['fontRenderExtension']={},_0xdd0e0a['fontRenderExtension'][_0x44da9e(0x17e)]=_0x1c52de),_0x4498b6(_0xdd0e0a);}}));}},_0x28dbf0[_0x217abe(0x368)]=_0x1ba280([_0x1b2507(0x0,_0x5cf8ff['Inject'](_0x3d008a['SheetInterceptorService'])),_0x1b2507(0x1,_0x5cf8ff[_0x217abe(0x306)](_0x28dbf0[_0x217abe(0x3eb)]))],_0x28dbf0[_0x217abe(0x368)]);const _0x49b05c={'id':_0x217abe(0x2f6),'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'handler':(_0x39f53b,_0x2f1890)=>{const _0x5f3e8a=_0x217abe;if(!_0x2f1890)return!0x1;if(!!_0x39f53b[_0x5f3e8a(0x191)](_0x5cf8ff[_0x5f3e8a(0x1b0)])[_0x5f3e8a(0x2ec)](_0x243383))return!0x0;const {pivotTableId:_0x36b38b,fieldJSON:_0x1afaa4,unitId:_0x4ebeac,subUnitId:_0x3d2f23}=_0x2f1890;let _0x1ff88d;const {dataFieldType:_0x103723,id:_0x136871,name:_0x4b21b9,hexCode:_0x404f87,originalFieldId:_0x18344a}=_0x1afaa4;if(_0x103723===_0x2444f4[_0x5f3e8a(0x38f)]['dateGroupField']&&(_0x1ff88d=new _0x2444f4[(_0x5f3e8a(0x389))](_0x136871,_0x4b21b9,_0x404f87,_0x18344a)),!_0x1ff88d)return!0x1;const _0x5da02a=_0x39f53b['get'](_0x28dbf0['SheetsPivotDataSourceModel']),_0x3f606f=_0x5da02a[_0x5f3e8a(0x33e)](_0x4ebeac),_0x210093=_0x3f606f[_0x5f3e8a(0x371)](_0x36b38b);_0x3f606f[_0x5f3e8a(0x1be)](_0x1ff88d),_0x210093[_0x5f3e8a(0x29e)](_0x1ff88d['getId'](),_0x1ff88d[_0x5f3e8a(0x2e5)]());const _0x2cfc6b=_0x210093[_0x5f3e8a(0x426)](_0x1ff88d[_0x5f3e8a(0x441)]());_0x2cfc6b&&_0x1ff88d[_0x5f3e8a(0x472)](_0x2cfc6b);const _0x70ae99=_0x5da02a[_0x5f3e8a(0x19a)](_0x4ebeac,_0x3d2f23,_0x36b38b);return _0x5da02a[_0x5f3e8a(0x235)]({'unitId':_0x4ebeac,'subUnitId':_0x3d2f23,'token':_0x36b38b,'type':_0x5da69e[_0x5f3e8a(0x45d)],'pivotConfig':_0x70ae99}),!0x0;}},_0x266174={'id':'sheet.mutation.remove-group-collection','type':_0x5cf8ff['CommandType'][_0x217abe(0x240)],'handler':(_0x22f05a,_0x5a8511)=>{const _0x41e709=_0x217abe;if(!_0x5a8511)return!0x1;if(!!_0x22f05a[_0x41e709(0x191)](_0x5cf8ff[_0x41e709(0x1b0)])[_0x41e709(0x2ec)](_0x243383))return!0x0;const {pivotTableId:_0x5655d8,dataFieldId:_0x3e44a6,unitId:_0x9126d3,subUnitId:_0x497d34}=_0x5a8511,_0x24098a=_0x22f05a['get'](_0x28dbf0[_0x41e709(0x3f2)]),_0x3dd546=_0x24098a['getDataFieldManager'](_0x9126d3);_0x3dd546[_0x41e709(0x371)](_0x5655d8)[_0x41e709(0x230)](_0x3e44a6);let _0x2d2187=!0x0;for(const _0x44ffe2 in _0x3dd546[_0x41e709(0x2bb)])if(_0x3dd546['collections'][_0x44ffe2][_0x41e709(0x3af)]()['includes'](_0x3e44a6)){_0x2d2187=!0x1;break;}_0x2d2187&&_0x3dd546[_0x41e709(0x375)](_0x3e44a6);const _0x396973=_0x24098a[_0x41e709(0x19a)](_0x9126d3,_0x497d34,_0x5655d8);return _0x24098a[_0x41e709(0x235)]({'unitId':_0x9126d3,'subUnitId':_0x497d34,'token':_0x5655d8,'type':_0x5da69e[_0x41e709(0x45d)],'pivotConfig':_0x396973}),!0x0;}};function _0x1a03de(_0x5db34a,_0x167bfc){const _0x3b32b6=_0x217abe;switch(_0x167bfc){case _0x2444f4[_0x3b32b6(0x270)][_0x3b32b6(0x1e4)]:return _0x5db34a[_0x3b32b6(0x22a)];case _0x2444f4[_0x3b32b6(0x270)][_0x3b32b6(0x419)]:return _0x5db34a[_0x3b32b6(0x39e)];case _0x2444f4[_0x3b32b6(0x270)][_0x3b32b6(0x413)]:return _0x5db34a['rowFields'];case _0x2444f4[_0x3b32b6(0x270)]['Column']:return _0x5db34a[_0x3b32b6(0x21b)];default:return[];}}function _0x231ef5(_0x21d991,_0x52f661){const _0x419095=_0x217abe;return _0x21d991[_0x419095(0x1e0)][_0x52f661]||_0x21d991[_0x419095(0x15e)][_0x52f661];}function _0x3fff95(_0x294ce8,_0x2187e7){const _0x251b02=_0x217abe,{area:_0x4cc9cf,fieldJson:_0x327133,index:_0x18f6e1}=_0x2187e7;_0x4cc9cf===_0x2444f4[_0x251b02(0x270)]['Value']?_0x294ce8['measure'][_0x327133['id']]=_0x327133:_0x294ce8[_0x251b02(0x15e)][_0x327133['id']]=_0x327133,_0x1a03de(_0x294ce8,_0x4cc9cf)[_0x251b02(0x3c8)](_0x18f6e1,0x0,_0x327133['id']);}function _0x541eef(_0x531901,_0x3a60a2){const _0x436c00=_0x217abe,{area:_0x438627,fieldId:_0x214651,index:_0x400fcf}=_0x3a60a2;_0x438627===_0x2444f4[_0x436c00(0x270)][_0x436c00(0x1e4)]?delete _0x531901[_0x436c00(0x1e0)][_0x214651]:delete _0x531901[_0x436c00(0x15e)][_0x214651],_0x1a03de(_0x531901,_0x438627)['splice'](_0x400fcf,0x1);}function _0x3a61d2(_0x2799d7,_0x4993a4){const _0x857196=_0x217abe,{fieldId:_0x3aeac9,name:_0x34b8b4}=_0x4993a4,_0x20066f=_0x231ef5(_0x2799d7,_0x3aeac9);_0x20066f&&(_0x20066f[_0x857196(0x3bf)]=_0x34b8b4);}function _0x4ef933(_0x1f1b94,_0x26acb3){const _0xd622e=_0x217abe,{fieldId:_0x2b7fdb,collapse:_0x5063f1,item:_0x4b4315}=_0x26acb3;_0x4b4315!==void 0x0?(_0x1f1b94[_0xd622e(0x174)][_0x2b7fdb]=_0x1f1b94['collapseInfo'][_0x2b7fdb]||{},_0x1f1b94['collapseInfo'][_0x2b7fdb][_0x4b4315]=_0x5063f1):_0x1f1b94[_0xd622e(0x174)][_0x2b7fdb]=_0x5063f1;}function _0x199ee6(_0xedbe66,_0x1508bb){const _0x150c25=_0x217abe,{fieldId:_0x186b48,format:_0x27476d}=_0x1508bb,_0x25bf3c=_0x231ef5(_0xedbe66,_0x186b48);_0x25bf3c&&(_0x25bf3c[_0x150c25(0x1e8)]=_0x27476d);}function _0x1ffc14(_0x3bff14,_0x3c940d){const {fieldId:_0x4a4d7f,filterInfo:_0x12b6d9}=_0x3c940d,_0x45da1f=_0x231ef5(_0x3bff14,_0x4a4d7f);_0x45da1f&&(_0x45da1f['filterInfo']=_0x12b6d9);}function _0x50c200(_0xa5c516,_0x3d52d7){const _0xda36c2=_0x217abe,{fieldId:_0x4efa9b,filterInfo:_0x1b691f}=_0x3d52d7,_0x34870a=_0xa5c516[_0xda36c2(0x269)][_0xda36c2(0x372)](_0x478ab5=>_0x478ab5[_0xda36c2(0x379)]!==_0x4efa9b);_0x1b691f&&_0x34870a[_0xda36c2(0x3d3)]({'fieldId':_0x4efa9b,'filterInfo':_0x1b691f}),_0xa5c516['valueFilter']=_0x34870a;}function _0x1350c8(_0x878615,_0x5585b3){const {fieldId:_0x308fe7,subtotalType:_0x4647ec}=_0x5585b3,_0x50d78f=_0x231ef5(_0x878615,_0x308fe7);_0x50d78f&&(_0x50d78f['subtotal']=_0x4647ec);}function _0x353fcc(_0x112a2e,_0x4f70e3){const _0x704e46=_0x217abe,{fieldId:_0x39a13b,oldArea:_0x333c77,area:_0x569471,oldIndex:_0x45ad64,index:_0x104777}=_0x4f70e3,_0x3c6754=_0x333c77!==_0x2444f4['PivotTableFiledAreaEnum'][_0x704e46(0x1e4)]&&_0x569471===_0x2444f4['PivotTableFiledAreaEnum']['Value'],_0x1f9229=_0x333c77===_0x2444f4[_0x704e46(0x270)]['Value']&&_0x569471!==_0x2444f4['PivotTableFiledAreaEnum'][_0x704e46(0x1e4)];if(_0x3c6754||_0x1f9229){const _0x5acc70=_0x231ef5(_0x112a2e,_0x39a13b);_0x5acc70&&(_0x3c6754?(delete _0x112a2e[_0x704e46(0x15e)][_0x39a13b],_0x112a2e[_0x704e46(0x1e0)][_0x39a13b]=_0x5acc70):(delete _0x112a2e[_0x704e46(0x1e0)][_0x39a13b],_0x112a2e[_0x704e46(0x15e)][_0x39a13b]=_0x5acc70));}const _0x1c4088=_0x1a03de(_0x112a2e,_0x333c77),_0x1d1cfa=_0x1a03de(_0x112a2e,_0x569471);_0x1c4088[_0x704e46(0x3c8)](_0x45ad64,0x1),_0x1d1cfa[_0x704e46(0x3c8)](_0x104777,0x0,_0x39a13b);}function _0x311d49(_0x20d79d,_0x603a1f){const _0x30d6f5=_0x217abe,{valuePosition:_0x1c4125,index:_0x8a322e}=_0x603a1f;_0x20d79d['valuePosition']=_0x1c4125,_0x20d79d[_0x30d6f5(0x201)]=_0x8a322e;}function _0x15436f(_0x309812,_0x3e4bd2){const _0x55307a=_0x217abe,{tableFieldId:_0x2485ee,sourceName:_0xfa8282,dataFieldId:_0x598eb6}=_0x3e4bd2,_0x1b809f=_0x231ef5(_0x309812,_0x2485ee);_0x1b809f&&(_0x1b809f[_0x55307a(0x2a9)]=_0xfa8282,_0x1b809f[_0x55307a(0x312)]=_0x598eb6);}function _0x6b1350(_0xfb3299,_0x30c38a){const _0x42c9cf=_0x217abe,{fieldId:_0x455a3c,sortInfo:_0x212e44}=_0x30c38a,_0x3e1bc6=_0x231ef5(_0xfb3299,_0x455a3c);_0x3e1bc6&&(_0x3e1bc6[_0x42c9cf(0x16d)]=_0x212e44);}function _0x16b022(_0x416c3e,_0x409354){const _0x5239c9=_0x217abe,{options:_0x5e860d}=_0x409354;_0x416c3e['options']={..._0x416c3e[_0x5239c9(0x408)],..._0x5e860d};}const _0xeed0a6={'type':_0x5cf8ff['CommandType'][_0x217abe(0x240)],'id':_0x217abe(0x398),'handler'(_0x427a10,_0x40d67b){const _0xfcd6cb=_0x217abe;if(!_0x40d67b)return!0x1;if(!!_0x427a10['get'](_0x5cf8ff['IConfigService'])[_0xfcd6cb(0x2ec)](_0x243383))return!0x0;const _0x1a4847=_0x427a10[_0xfcd6cb(0x191)](_0x28dbf0['SheetsPivotDataSourceModel']),{pivotTableId:_0x4679cf,fieldJson:_0x166b36,area:_0x3421fb,index:_0x242b87,unitId:_0x255e82,subUnitId:_0x1dffaa}=_0x40d67b,_0x1d2d1d=_0x1a4847[_0xfcd6cb(0x45b)](_0x4679cf);if(!_0x1d2d1d)return!0x1;let _0x53b2fc;_0x3421fb===_0x2444f4[_0xfcd6cb(0x270)][_0xfcd6cb(0x1e4)]?_0x53b2fc=_0x2444f4['createValueField'](_0x166b36):_0x53b2fc=_0x2444f4['createLabelField'](_0x166b36),_0x1d2d1d[_0xfcd6cb(0x29e)](_0x53b2fc,_0x3421fb,_0x242b87);const _0x14b8b1=_0x1a4847['getPivotTableModelConfig'](_0x255e82,_0x1dffaa,_0x4679cf);_0x3fff95(_0x14b8b1,_0x40d67b);const _0x2dd601=_0x1a4847[_0xfcd6cb(0x19a)](_0x255e82,_0x1dffaa,_0x4679cf);return _0x1a4847['addDirtyPivotTable']({'unitId':_0x255e82,'subUnitId':_0x1dffaa,'token':_0x4679cf,'type':_0x5da69e[_0xfcd6cb(0x45d)],'pivotConfig':_0x2dd601}),!0x0;}},_0x369aad={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x240996,_0x44f797){const _0x2da38c=_0x217abe;if(!_0x44f797)return!0x1;if(!!_0x240996[_0x2da38c(0x191)](_0x5cf8ff[_0x2da38c(0x1b0)])[_0x2da38c(0x2ec)](_0x243383))return!0x0;const _0x2a6689=_0x240996['get'](_0x28dbf0['SheetsPivotDataSourceModel']),{pivotTableId:_0x4a3561,fieldId:_0x8455c8,unitId:_0x39f743,subUnitId:_0x2e2ccf}=_0x44f797,_0x5018ae=_0x2a6689['getPivotTableInstance'](_0x4a3561);if(!_0x5018ae)return!0x1;_0x5018ae['removeField'](_0x8455c8);const _0x5d7a8b=_0x2a6689[_0x2da38c(0x267)](_0x39f743,_0x2e2ccf,_0x4a3561);_0x541eef(_0x5d7a8b,_0x44f797);const _0x18f799=_0x2a6689['getPivotTableConfig'](_0x39f743,_0x2e2ccf,_0x4a3561);return _0x2a6689[_0x2da38c(0x235)]({'unitId':_0x39f743,'subUnitId':_0x2e2ccf,'token':_0x4a3561,'type':_0x5da69e[_0x2da38c(0x45d)],'pivotConfig':_0x18f799}),!0x0;}},_0x22cb31={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'id':_0x217abe(0x23b),'handler'(_0x4d386b,_0x1c1fca){const _0x5496e4=_0x217abe;if(!_0x1c1fca)return!0x1;if(!!_0x4d386b[_0x5496e4(0x191)](_0x5cf8ff[_0x5496e4(0x1b0)])[_0x5496e4(0x2ec)](_0x243383))return!0x0;const _0x1c0e01=_0x4d386b[_0x5496e4(0x191)](_0x28dbf0[_0x5496e4(0x3f2)]),{unitId:_0x3751ff,subUnitId:_0x5a2dca,pivotTableId:_0x227cc9,fieldId:_0x2c092f,name:_0x580203}=_0x1c1fca,_0x5bfe35=_0x1c0e01[_0x5496e4(0x45b)](_0x227cc9);if(!_0x5bfe35)return!0x1;_0x5bfe35[_0x5496e4(0x1db)](_0x2c092f,_0x580203);const _0x5d9032=_0x1c0e01[_0x5496e4(0x267)](_0x3751ff,_0x5a2dca,_0x227cc9);return _0x3a61d2(_0x5d9032,_0x1c1fca),_0x1c0e01[_0x5496e4(0x235)]({'unitId':_0x3751ff,'subUnitId':_0x5a2dca,'token':_0x227cc9,'type':_0x5da69e[_0x5496e4(0x45d)]}),!0x0;}},_0x3ffb58={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'id':_0x217abe(0x16a),'handler'(_0x250ade,_0x4abbc2){const _0x2af5c1=_0x217abe;if(!_0x4abbc2)return!0x1;if(!!_0x250ade[_0x2af5c1(0x191)](_0x5cf8ff[_0x2af5c1(0x1b0)])[_0x2af5c1(0x2ec)](_0x243383))return!0x0;const _0x9f3677=_0x250ade[_0x2af5c1(0x191)](_0x28dbf0['SheetsPivotDataSourceModel']),{unitId:_0xb4c08b,subUnitId:_0x34c5e9,pivotTableId:_0x119d2f,fieldId:_0x343982,collapse:_0x44504b,item:_0x2ca60d}=_0x4abbc2,_0x3d22ed=_0x9f3677[_0x2af5c1(0x45b)](_0x119d2f);if(!_0x3d22ed)return!0x1;_0x3d22ed[_0x2af5c1(0x266)](_0x343982,_0x44504b,_0x2ca60d);const _0x47ae3b=_0x9f3677[_0x2af5c1(0x267)](_0xb4c08b,_0x34c5e9,_0x119d2f);return _0x4ef933(_0x47ae3b,_0x4abbc2),_0x9f3677[_0x2af5c1(0x235)]({'unitId':_0xb4c08b,'subUnitId':_0x34c5e9,'token':_0x119d2f,'type':_0x5da69e[_0x2af5c1(0x45d)]}),!0x0;}},_0x2b7b2c={'type':_0x5cf8ff[_0x217abe(0x3ee)]['MUTATION'],'id':'sheet.mutation.set-pivot-format','handler'(_0x2ae8c1,_0x249bae){const _0x1caf74=_0x217abe;if(!_0x249bae)return!0x1;if(!!_0x2ae8c1['get'](_0x5cf8ff['IConfigService'])[_0x1caf74(0x2ec)](_0x243383))return!0x0;const _0x52c1c0=_0x2ae8c1[_0x1caf74(0x191)](_0x28dbf0['SheetsPivotDataSourceModel']),{unitId:_0x520383,subUnitId:_0x307937,pivotTableId:_0x477240,fieldId:_0x4466a4,format:_0x2cf2b1}=_0x249bae,_0x2aeb52=_0x52c1c0[_0x1caf74(0x45b)](_0x477240);if(!_0x2aeb52)return!0x1;_0x2aeb52[_0x1caf74(0x3e8)](_0x4466a4,_0x2cf2b1);const _0x2eecee=_0x52c1c0[_0x1caf74(0x267)](_0x520383,_0x307937,_0x477240);return _0x199ee6(_0x2eecee,_0x249bae),_0x52c1c0['addDirtyPivotTable']({'unitId':_0x520383,'subUnitId':_0x307937,'token':_0x477240,'type':_0x5da69e[_0x1caf74(0x45d)]}),!0x0;}},_0x599b06={'type':_0x5cf8ff['CommandType'][_0x217abe(0x240)],'id':_0x217abe(0x2e1),'handler'(_0x44a10b,_0x1c12f6){const _0x57b2aa=_0x217abe;if(!_0x1c12f6)return!0x1;if(!!_0x44a10b[_0x57b2aa(0x191)](_0x5cf8ff[_0x57b2aa(0x1b0)])['getConfig'](_0x243383))return!0x0;const _0x82f3ff=_0x44a10b[_0x57b2aa(0x191)](_0x28dbf0['SheetsPivotDataSourceModel']),{unitId:_0xaa39e9,subUnitId:_0x1e600f,pivotTableId:_0x3be5cc,fieldId:_0x2c8adb,filterInfo:_0x1e521b}=_0x1c12f6,_0x452346=_0x82f3ff[_0x57b2aa(0x45b)](_0x3be5cc);if(!_0x452346)return!0x1;_0x452346[_0x57b2aa(0x289)](_0x2c8adb,_0x1e521b);const _0x4764d9=_0x82f3ff[_0x57b2aa(0x267)](_0xaa39e9,_0x1e600f,_0x3be5cc);return _0x1ffc14(_0x4764d9,_0x1c12f6),_0x82f3ff[_0x57b2aa(0x235)]({'unitId':_0xaa39e9,'subUnitId':_0x1e600f,'token':_0x3be5cc,'type':_0x5da69e[_0x57b2aa(0x45d)]}),!0x0;}},_0xbcc3cc={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'id':'sheet.mutation.set-pivot-option','handler'(_0x479689,_0xe58434){const _0x16889a=_0x217abe;if(!_0xe58434)return!0x1;if(!!_0x479689[_0x16889a(0x191)](_0x5cf8ff[_0x16889a(0x1b0)])[_0x16889a(0x2ec)](_0x243383))return!0x0;const _0x3bec83=_0x479689[_0x16889a(0x191)](_0x28dbf0[_0x16889a(0x3f2)]),{unitId:_0x553c27,subUnitId:_0x17c252,pivotTableId:_0x1f0441,options:_0x30392b}=_0xe58434,_0x5a57c2=_0x3bec83[_0x16889a(0x45b)](_0x1f0441);if(!_0x5a57c2)return!0x1;_0x5a57c2[_0x16889a(0x30b)](_0x30392b);const _0x311739=_0x3bec83[_0x16889a(0x267)](_0x553c27,_0x17c252,_0x1f0441);return _0x16b022(_0x311739,_0xe58434),_0x3bec83[_0x16889a(0x235)]({'unitId':_0x553c27,'subUnitId':_0x17c252,'token':_0x1f0441,'type':_0x5da69e['Set']}),!0x0;}},_0x426986={'type':_0x5cf8ff['CommandType'][_0x217abe(0x240)],'id':_0x217abe(0x397),'handler'(_0x17ecd3,_0x210e1f){const _0x54d9f2=_0x217abe;if(!_0x210e1f)return!0x1;if(!!_0x17ecd3['get'](_0x5cf8ff[_0x54d9f2(0x1b0)])[_0x54d9f2(0x2ec)](_0x243383))return!0x0;const _0x341e16=_0x17ecd3['get'](_0x28dbf0['SheetsPivotDataSourceModel']),{unitId:_0x4e2252,subUnitId:_0x483652,pivotTableId:_0x225d0a,sortInfo:_0xb85749,fieldId:_0x329b06}=_0x210e1f,_0x576c08=_0x341e16[_0x54d9f2(0x45b)](_0x225d0a);if(!_0x576c08)return!0x1;_0x576c08[_0x54d9f2(0x32e)](_0x329b06,_0xb85749);const _0x3e0046=_0x341e16[_0x54d9f2(0x267)](_0x4e2252,_0x483652,_0x225d0a);return _0x6b1350(_0x3e0046,_0x210e1f),_0x341e16[_0x54d9f2(0x235)]({'unitId':_0x4e2252,'subUnitId':_0x483652,'token':_0x225d0a,'type':_0x5da69e[_0x54d9f2(0x45d)]}),!0x0;}},_0x35c653={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'id':_0x217abe(0x332),'handler'(_0x21458b,_0x94bf72){const _0x1338d1=_0x217abe;if(!_0x94bf72)return!0x1;if(!!_0x21458b[_0x1338d1(0x191)](_0x5cf8ff[_0x1338d1(0x1b0)])[_0x1338d1(0x2ec)](_0x243383))return!0x0;const _0x1ee35f=_0x21458b[_0x1338d1(0x191)](_0x28dbf0[_0x1338d1(0x3f2)]),{unitId:_0x3c0b3f,subUnitId:_0x28449f,pivotTableId:_0x4421ad,fieldId:_0x5e7fae,subtotalType:_0x54c3bc}=_0x94bf72,_0x2b4c9a=_0x1ee35f[_0x1338d1(0x45b)](_0x4421ad);if(!_0x2b4c9a)return!0x1;_0x2b4c9a[_0x1338d1(0x370)](_0x5e7fae,_0x54c3bc);const _0x19c4d7=_0x1ee35f[_0x1338d1(0x267)](_0x3c0b3f,_0x28449f,_0x4421ad);return _0x1350c8(_0x19c4d7,_0x94bf72),_0x1ee35f[_0x1338d1(0x235)]({'unitId':_0x3c0b3f,'subUnitId':_0x28449f,'token':_0x4421ad,'type':_0x5da69e[_0x1338d1(0x45d)]}),!0x0;}},_0x569b93={'type':_0x5cf8ff[_0x217abe(0x3ee)]['MUTATION'],'id':_0x217abe(0x3c5),'handler'(_0x35ec0a,_0x4ac030){const _0x7339db=_0x217abe;if(!_0x4ac030)return!0x1;if(!!_0x35ec0a['get'](_0x5cf8ff[_0x7339db(0x1b0)])[_0x7339db(0x2ec)](_0x243383))return!0x0;const _0x1bda05=_0x35ec0a[_0x7339db(0x191)](_0x28dbf0[_0x7339db(0x3f2)]),{unitId:_0x1ee3dd,subUnitId:_0x97213c,pivotTableId:_0x5b86ea,fieldId:_0x2bb05f,filterInfo:_0x37fa61}=_0x4ac030,_0x18af6a=_0x1bda05[_0x7339db(0x45b)](_0x5b86ea);if(!_0x18af6a)return!0x1;_0x18af6a[_0x7339db(0x45a)](_0x2bb05f,_0x37fa61);const _0x1694c7=_0x1bda05[_0x7339db(0x267)](_0x1ee3dd,_0x97213c,_0x5b86ea);return _0x50c200(_0x1694c7,_0x4ac030),_0x1bda05['addDirtyPivotTable']({'unitId':_0x1ee3dd,'subUnitId':_0x97213c,'token':_0x5b86ea,'type':_0x5da69e['Set']}),!0x0;}},_0x50bc5e={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'id':_0x217abe(0x411),'handler'(_0x11f03e,_0x2d8470){const _0x3cd7d3=_0x217abe;if(!_0x2d8470)return!0x1;if(!!_0x11f03e[_0x3cd7d3(0x191)](_0x5cf8ff[_0x3cd7d3(0x1b0)])[_0x3cd7d3(0x2ec)](_0x243383))return!0x0;const _0x1c6aea=_0x11f03e[_0x3cd7d3(0x191)](_0x28dbf0[_0x3cd7d3(0x3f2)]),{unitId:_0x55e71c,subUnitId:_0x13cd05,pivotTableId:_0x512bf3,area:_0x11cda8,index:_0x4d8714,fieldId:_0x424b41}=_0x2d8470,_0x58e538=_0x1c6aea[_0x3cd7d3(0x45b)](_0x512bf3);if(!_0x58e538)return!0x1;_0x58e538[_0x3cd7d3(0x1ea)](_0x424b41,_0x11cda8,_0x4d8714);const _0x34b420=_0x1c6aea[_0x3cd7d3(0x267)](_0x55e71c,_0x13cd05,_0x512bf3);return _0x353fcc(_0x34b420,_0x2d8470),_0x1c6aea[_0x3cd7d3(0x235)]({'unitId':_0x55e71c,'subUnitId':_0x13cd05,'token':_0x512bf3,'type':_0x5da69e[_0x3cd7d3(0x45d)]}),!0x0;}},_0x2f22f7={'type':_0x5cf8ff[_0x217abe(0x3ee)]['MUTATION'],'id':_0x217abe(0x22d),'handler'(_0x3c0acb,_0x4d51af){const _0xcad53c=_0x217abe;if(!_0x4d51af)return!0x1;if(!!_0x3c0acb[_0xcad53c(0x191)](_0x5cf8ff[_0xcad53c(0x1b0)])[_0xcad53c(0x2ec)](_0x243383))return!0x0;const _0x3271cc=_0x3c0acb['get'](_0x28dbf0[_0xcad53c(0x3f2)]),{unitId:_0x296991,subUnitId:_0x52dbbc,pivotTableId:_0xf2a0ae,sourceName:_0x166526,dataFieldId:_0x5c2f0f,tableFieldId:_0x51d748}=_0x4d51af,_0x27e6f3=_0x3271cc['getPivotTableInstance'](_0xf2a0ae);if(!_0x27e6f3)return!0x1;_0x27e6f3[_0xcad53c(0x3fc)](_0x51d748,_0x166526,_0x5c2f0f);const _0xf9f9b7=_0x3271cc[_0xcad53c(0x267)](_0x296991,_0x52dbbc,_0xf2a0ae);return _0x15436f(_0xf9f9b7,_0x4d51af),_0x3271cc['addDirtyPivotTable']({'unitId':_0x296991,'subUnitId':_0x52dbbc,'token':_0xf2a0ae,'type':_0x5da69e[_0xcad53c(0x45d)]}),!0x0;}},_0x3951ca={'type':_0x5cf8ff['CommandType'][_0x217abe(0x240)],'id':_0x217abe(0x2c0),'handler'(_0x16f1b5,_0x140b68){const _0x5b261f=_0x217abe;if(!_0x140b68)return!0x1;if(!!_0x16f1b5['get'](_0x5cf8ff[_0x5b261f(0x1b0)])['getConfig'](_0x243383))return!0x0;const _0x167bab=_0x16f1b5[_0x5b261f(0x191)](_0x28dbf0[_0x5b261f(0x3f2)]),{unitId:_0x25de4f,subUnitId:_0x1fff2b,pivotTableId:_0x301390,valuePosition:_0x4159a5,index:_0x284726}=_0x140b68,_0xf9ce6d=_0x167bab[_0x5b261f(0x45b)](_0x301390);if(!_0xf9ce6d)return!0x1;_0xf9ce6d[_0x5b261f(0x2ef)](_0x4159a5,_0x284726);const _0x58347e=_0x167bab['getPivotTableModelConfig'](_0x25de4f,_0x1fff2b,_0x301390);return _0x311d49(_0x58347e,_0x140b68),_0x167bab['addDirtyPivotTable']({'unitId':_0x25de4f,'subUnitId':_0x1fff2b,'token':_0x301390,'type':_0x5da69e[_0x5b261f(0x45d)]}),!0x0;}};function _0x45171b(_0x5ddd0b,_0x3e0765,_0x2dc571){const _0x2431da=_0x217abe,{pivotTableId:_0x1e88bd,unitId:_0x5674b9,subUnitId:_0x2b8a57}=_0x3e0765,_0x202843=[],_0x118ca1=[];for(const _0x122e7b of _0x2dc571)switch(_0x122e7b[_0x2431da(0x2a1)]){case _0x2444f4[_0x2431da(0x450)]['AddField']:{const {fieldJson:_0x6dd6be,area:_0x348988,index:_0x25d8ea}=_0x122e7b,_0xae6153={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldJson':_0x6dd6be,'area':_0x348988,'index':_0x25d8ea},_0x150c2d={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x6dd6be['id'],'area':_0x348988,'index':_0x25d8ea};_0x202843[_0x2431da(0x3d3)]({'id':_0xeed0a6['id'],'params':_0xae6153}),_0x118ca1['unshift']({'id':_0x369aad['id'],'params':_0x150c2d});}break;case _0x2444f4[_0x2431da(0x450)][_0x2431da(0x386)]:{const {fieldId:_0x57bc11,newSubtotalType:_0x49bf25,oldSubtotalType:_0x48bc8b}=_0x122e7b,_0x3072f3={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x57bc11,'subtotalType':_0x49bf25};_0x202843['push']({'id':_0x35c653['id'],'params':_0x3072f3});const _0x26a1b8={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x57bc11,'subtotalType':_0x48bc8b};_0x118ca1[_0x2431da(0x3f9)]({'id':_0x35c653['id'],'params':_0x26a1b8});}break;case _0x2444f4[_0x2431da(0x450)][_0x2431da(0x293)]:{const {fieldId:_0x7e1333,fieldJson:_0x1fa7df,area:_0x354d0f,index:_0x37a032}=_0x122e7b,_0x5319c3={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x7e1333,'index':_0x37a032,'area':_0x354d0f};_0x202843['push']({'id':_0x369aad['id'],'params':_0x5319c3});const _0x4b8ef0={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldJson':_0x1fa7df,'area':_0x354d0f,'index':_0x37a032};_0x118ca1[_0x2431da(0x3f9)]({'id':_0xeed0a6['id'],'params':_0x4b8ef0});}break;case _0x2444f4['PivotTableChangeTypeEnum'][_0x2431da(0x1ba)]:{const {fieldId:_0x2bb429,oldName:_0x965c59,newName:_0x30b86e}=_0x122e7b,_0x148170={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x2bb429,'name':_0x30b86e};_0x202843[_0x2431da(0x3d3)]({'id':_0x22cb31['id'],'params':_0x148170});const _0x41b633={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x2bb429,'name':_0x965c59};_0x118ca1[_0x2431da(0x3f9)]({'id':_0x22cb31['id'],'params':_0x41b633});}break;case _0x2444f4['PivotTableChangeTypeEnum'][_0x2431da(0x23a)]:{const {fieldId:_0x581205,oldFilterInfo:_0x57699d,newFilterInfo:_0x1c88a3}=_0x122e7b,_0x543b99={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x581205,'filterInfo':_0x1c88a3};_0x202843['push']({'id':_0x599b06['id'],'params':_0x543b99});const _0x108023={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x581205,'filterInfo':_0x57699d};_0x118ca1[_0x2431da(0x3f9)]({'id':_0x599b06['id'],'params':_0x108023});}break;case _0x2444f4[_0x2431da(0x450)][_0x2431da(0x382)]:{const {fieldId:_0x8af270,oldSortInfo:_0x4453a5,newSortInfo:_0x548994}=_0x122e7b,_0x26db4f={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x8af270,'sortInfo':_0x548994};_0x202843[_0x2431da(0x3d3)]({'id':_0x426986['id'],'params':_0x26db4f});const _0x23ac9f={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x8af270,'sortInfo':_0x4453a5};_0x118ca1['unshift']({'id':_0x426986['id'],'params':_0x23ac9f});}break;case _0x2444f4[_0x2431da(0x450)][_0x2431da(0x42d)]:{const {oldOptions:_0x2266a5,newOptions:_0x4404ba}=_0x122e7b,_0x2d2ba5={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'options':_0x4404ba};_0x202843[_0x2431da(0x3d3)]({'id':_0xbcc3cc['id'],'params':_0x2d2ba5});const _0x3d1238={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'options':_0x2266a5};_0x118ca1['unshift']({'id':_0xbcc3cc['id'],'params':_0x3d1238});}break;case _0x2444f4[_0x2431da(0x450)]['UpdateFieldPosition']:{const {oldArea:_0x30c293,newArea:_0x345234,oldIndex:_0x1a5457,newIndex:_0x14beb0,fieldId:_0xe51e8e}=_0x122e7b,_0x55e504={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0xe51e8e,'area':_0x345234,'index':_0x14beb0,'oldArea':_0x30c293,'oldIndex':_0x1a5457};_0x202843['push']({'id':_0x50bc5e['id'],'params':_0x55e504});const _0x236194={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0xe51e8e,'area':_0x30c293,'index':_0x1a5457,'oldArea':_0x345234,'oldIndex':_0x14beb0};_0x118ca1['unshift']({'id':_0x50bc5e['id'],'params':_0x236194});}break;case _0x2444f4[_0x2431da(0x450)][_0x2431da(0x1b5)]:{const {oldValuePosition:_0x3917e3,newValuePosition:_0x3e25fe,oldIndex:_0x552a18,newIndex:_0x59b74f}=_0x122e7b,_0x1bc174={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'valuePosition':_0x3e25fe,'index':_0x59b74f};_0x202843[_0x2431da(0x3d3)]({'id':_0x3951ca['id'],'params':_0x1bc174});const _0x9a1f8={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'valuePosition':_0x3917e3,'index':_0x552a18};_0x118ca1[_0x2431da(0x3f9)]({'id':_0x3951ca['id'],'params':_0x9a1f8});}break;case _0x2444f4[_0x2431da(0x450)][_0x2431da(0x451)]:{const {fieldId:_0x580210,collapse:_0x30e4cf,item:_0xe45d28}=_0x122e7b,_0xdbe2ae={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x580210,'collapse':_0x30e4cf,'item':_0xe45d28};_0x202843[_0x2431da(0x3d3)]({'id':_0x3ffb58['id'],'params':_0xdbe2ae});const _0x15b3d1={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x580210,'collapse':!_0x30e4cf,'item':_0xe45d28};_0x118ca1[_0x2431da(0x3f9)]({'id':_0x3ffb58['id'],'params':_0x15b3d1});}break;case _0x2444f4[_0x2431da(0x450)]['SetFieldFormat']:{const {newFormat:_0x10f350,oldFormat:_0x52f3c2,fieldId:_0x4ca9ca}=_0x122e7b,_0x390eb9={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x4ca9ca,'format':_0x10f350};_0x202843[_0x2431da(0x3d3)]({'id':_0x2b7b2c['id'],'params':_0x390eb9});const _0x31abe6={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x4ca9ca,'format':_0x52f3c2};_0x118ca1[_0x2431da(0x3f9)]({'id':_0x2b7b2c['id'],'params':_0x31abe6});}break;case _0x2444f4[_0x2431da(0x450)][_0x2431da(0x316)]:{const {tableFieldId:_0x99c24d,oldSourceName:_0x26c693,newSourceName:_0x23e573,oldDataFieldId:_0x27e1b2,newDataFieldId:_0x531566}=_0x122e7b,_0x3eefc6={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'tableFieldId':_0x99c24d,'sourceName':_0x23e573,'dataFieldId':_0x531566};_0x202843['push']({'id':_0x2f22f7['id'],'params':_0x3eefc6});const _0x6180a7={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'tableFieldId':_0x99c24d,'sourceName':_0x26c693,'dataFieldId':_0x27e1b2};_0x118ca1['unshift']({'id':_0x2f22f7['id'],'params':_0x6180a7});}break;case _0x2444f4[_0x2431da(0x450)][_0x2431da(0x3ac)]:{const {fieldId:_0x3ba3cc,filterInfo:_0x525703,oldFilterInfo:_0x5f0073}=_0x122e7b,_0x145ab8={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x3ba3cc,'filterInfo':_0x525703};_0x202843[_0x2431da(0x3d3)]({'id':_0x569b93['id'],'params':_0x145ab8});const _0x12123d={'unitId':_0x5674b9,'subUnitId':_0x2b8a57,'pivotTableId':_0x1e88bd,'fieldId':_0x3ba3cc,'filterInfo':_0x5f0073};_0x118ca1['unshift']({'id':_0x569b93['id'],'params':_0x12123d});}}return{'redos':_0x202843,'undos':_0x118ca1};}function _0x453490(_0x2cb0a8,_0x382be9){const _0x4d1a3d=_0x217abe;var _0x1f9b9a;const _0x549b7d=_0x2cb0a8['get'](_0x28dbf0['SheetsPivotTableService']),{cellInfo:_0x2479d9,view:_0x22bd86,isEmpty:_0x1f3abd}=_0x382be9;return(_0x1f9b9a=_0x549b7d['interceptor'][_0x4d1a3d(0x46e)](_0x744bc6)(_0x9615d7,{'cellInfo':_0x2479d9,'view':_0x22bd86,'isEmpty':_0x1f3abd}))!=null?_0x1f9b9a:_0x9615d7;}const _0x361035={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x26f)],'id':_0x217abe(0x365),async 'handler'(_0x27e4b4,_0x545aed){const _0xc87900=_0x217abe;if(!_0x545aed)return!0x1;const _0x428150=_0x27e4b4[_0xc87900(0x191)](_0x5cf8ff['ICommandService']),_0x48f2ff=_0x27e4b4[_0xc87900(0x191)](_0x28dbf0['SheetsPivotRPCService']),_0x28a6ef=_0x27e4b4[_0xc87900(0x191)](_0x5cf8ff['IUndoRedoService']),{pivotTableId:_0x1aeaf1,dataFieldId:_0x2920d1,fieldArea:_0x13e170,index:_0x207af9,unitId:_0x14661c,subUnitId:_0x567c9e}=_0x545aed,_0x14ba35=(await _0x48f2ff[_0xc87900(0x338)]({'unitId':_0x14661c,'subUnitId':_0x567c9e,'pivotTableId':_0x1aeaf1,'params':{'type':_0x5b1b05[_0xc87900(0x26b)],'addPivotField':{'dataFieldId':_0x2920d1,'fieldArea':_0x13e170,'index':_0x207af9}}}))[_0xc87900(0x401)][_0xc87900(0x234)];if(!_0x14ba35)return!0x1;const {view:_0x4bde7d,changesets:_0x576676,isEmpty:_0x12753b,pivotTableConfig:_0x4c3d66,shouldBeAddedGroupJSON:_0x37eea8}=_0x14ba35,_0x38911d=_0x4c3d66['targetCellInfo'],_0x45e427=new _0x2444f4[(_0xc87900(0x2d2))]();_0x45e427[_0xc87900(0x3e9)](_0x4bde7d);const _0x3109f1={'cellInfo':_0x38911d,'view':_0x45e427,'isEmpty':_0x12753b};if(!await _0x27e4b4[_0xc87900(0x191)](_0x28dbf0[_0xc87900(0x368)])[_0xc87900(0x342)][_0xc87900(0x1d1)](_0x42699f)(!0x0,_0x3109f1))return!0x1;const _0x4002f3=_0x39b7a0(_0x27e4b4,_0x45e427,_0x38911d,_0x12753b),_0x340270=_0x453490(_0x27e4b4,_0x3109f1),{undos:_0x152613,redos:_0x3260b1}=_0x45171b(_0x428150,{'pivotTableId':_0x1aeaf1,'unitId':_0x14661c,'subUnitId':_0x567c9e},_0x576676);return _0x37eea8&&(_0x3260b1[_0xc87900(0x3f9)]({'id':_0x49b05c['id'],'params':{'pivotTableId':_0x1aeaf1,'fieldJSON':_0x37eea8,'unitId':_0x14661c,'subUnitId':_0x567c9e}}),_0x152613[_0xc87900(0x3d3)]({'id':_0x266174['id'],'params':{'pivotTableId':_0x1aeaf1,'dataFieldId':_0x37eea8['id'],'unitId':_0x14661c,'subUnitId':_0x567c9e}})),_0x5cf8ff[_0xc87900(0x33f)]([..._0x4002f3[_0xc87900(0x3ea)],..._0x340270[_0xc87900(0x3ea)],..._0x3260b1],_0x428150),_0x28a6ef[_0xc87900(0x30d)]({'unitID':_0x14661c,'redoMutations':[..._0x4002f3['redos'],..._0x340270[_0xc87900(0x3ea)],..._0x3260b1],'undoMutations':[..._0x4002f3['undos'],..._0x340270['undos'],..._0x152613]}),!0x0;}},_0x16cea4=()=>typeof process<'u'&&process[_0x217abe(0x27f)]!=null&&process[_0x217abe(0x27f)][_0x217abe(0x1fa)]!=null,_0x55ee20={'type':_0x5cf8ff['CommandType']['MUTATION'],'id':_0x217abe(0x2fc),'handler'(_0x52f2d8,_0x32dcd4){const _0x552096=_0x217abe;var _0x1ca91e;if(!_0x32dcd4)return!0x1;const _0x3a527b=_0x52f2d8['get'](_0x5cf8ff['IConfigService']);if(!!_0x3a527b[_0x552096(0x2ec)](_0x243383))return!0x0;const _0x5af968=_0x52f2d8[_0x552096(0x191)](_0x5cf8ff[_0x552096(0x198)]),_0x17e25f=_0x52f2d8[_0x552096(0x191)](_0x28dbf0[_0x552096(0x3f2)]),{pivotTableId:_0x1d860a,pivotTableConfig:_0x2786ca,collectionConfig:_0x4cb72e,unitId:_0x1487d0,subUnitId:_0x46cbd0}=_0x32dcd4,{sourceRangeInfo:_0x6232ad,fieldsConfig:_0x5efc0f,targetCellInfo:_0x4403da}=_0x2786ca,_0x3797ed=_0x5af968['getUnit'](_0x1487d0);if(!_0x3797ed||!_0x3797ed[_0x552096(0x3db)](_0x46cbd0))return!0x1;if(!_0x16cea4()){let _0x47ae47=0x0;_0x3797ed[_0x552096(0x400)]()['forEach'](_0x2db953=>{const _0x10665a=_0x552096;var _0x30a8e8,_0x196089;_0x47ae47+=(_0x196089=(_0x30a8e8=_0x17e25f[_0x10665a(0x456)](_0x1487d0,_0x2db953[_0x10665a(0x404)]()))==null?void 0x0:_0x30a8e8[_0x10665a(0x1da)])!=null?_0x196089:0x0;});const _0x33f2de=(_0x1ca91e=_0x3a527b[_0x552096(0x2ec)](_0x556295[_0x552096(0x181)]))!=null?_0x1ca91e:{},{ls:_0x2a85a3,pbk:_0x4b93cd}=_0x33f2de;if(!_0x4842f8(_0x2a85a3,_0x4b93cd))throw new _0x5cf8ff[(_0x552096(0x349))](_0x552096(0x252));const _0xbb9bd4=_0x1d765d(_0x45e71b,_0x2a85a3,_0x4b93cd)[_0x552096(0x200)];if(_0x47ae47>=_0xbb9bd4)throw new _0x5cf8ff[(_0x552096(0x349))](_0x552096(0x252));}if(!_0x4cb72e||!_0x5efc0f)return!0x1;const {collection:_0x3b6e2f,updateDataFieldList:_0x49440c}=_0x17e25f['addCollectionByJSON'](_0x1d860a,_0x4cb72e,_0x6232ad,_0x4403da);_0x17e25f[_0x552096(0x286)](_0x3b6e2f,_0x49440c,_0x6232ad);const _0x5c559e=new _0x2444f4[(_0x552096(0x2cc))](_0x3b6e2f,void 0x0,_0x1d860a);_0x5c559e['fromJSON'](_0x5efc0f);const _0x3b0202=JSON[_0x552096(0x1a9)](JSON['stringify'](_0x2786ca));return _0x17e25f['addPivotTable'](_0x1487d0,_0x46cbd0,_0x1d860a,_0x5c559e,_0x3b0202),_0x17e25f[_0x552096(0x235)]({'unitId':_0x1487d0,'subUnitId':_0x46cbd0,'token':_0x1d860a,'type':_0x5da69e['Add'],'pivotConfig':_0x3b0202}),!0x0;}},_0x5f00d2={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x26f)],'id':'sheet.command.add-pivot-table-with-config',async 'handler'(_0x22dc9c,_0x3d162c){const _0x595581=_0x217abe;if(!_0x3d162c)return!0x1;const {sourceDataInfo:_0x391b26,pivotTableConfig:_0x145b3b}=_0x3d162c;if(!_0x391b26||!_0x145b3b)return!0x1;const {unitId:_0x37f622,subUnitId:_0x3be4f6,range:_0x16fb62}=_0x391b26,_0x477de2=_0x22dc9c[_0x595581(0x191)](_0x5cf8ff[_0x595581(0x198)]),_0x4c4a00=_0x22dc9c[_0x595581(0x191)](_0x28dbf0['SheetsPivotRPCService']),_0x3bddd7=_0x22dc9c[_0x595581(0x191)](_0x5cf8ff[_0x595581(0x28e)]),_0x4cbe28=_0x22dc9c[_0x595581(0x191)](_0x5cf8ff[_0x595581(0x20e)]),_0x193dfb=_0x477de2[_0x595581(0x3da)](_0x37f622);if(!_0x193dfb)return!0x1;const _0x112a98=_0x193dfb[_0x595581(0x3db)](_0x3be4f6);if(!_0x112a98)return!0x1;const _0x1ac00c=_0x2444f4['generateHexNumber'](0x8),_0x2f719d=_0x16fb62||{'startRow':0x0,'startColumn':0x0,'endRow':_0x112a98[_0x595581(0x1a4)]()-0x1,'endColumn':_0x112a98[_0x595581(0x3b8)]()-0x1};_0x2f719d[_0x595581(0x182)]=_0x5cf8ff['RANGE_TYPE']['NORMAL'];const _0x43e16a=(await _0x4c4a00[_0x595581(0x338)]({'unitId':_0x37f622,'subUnitId':_0x3be4f6,'pivotTableId':_0x1ac00c,'params':{'type':_0x5b1b05['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x37f622,'sheetName':_0x112a98['getName'](),'subUnitId':_0x3be4f6,'range':_0x2f719d},'pivotTableId':_0x1ac00c,'pivotTableIndexConfig':_0x145b3b}}}))[_0x595581(0x401)][_0x595581(0x358)];if(!_0x43e16a)return!0x1;const {isEmpty:_0x1feb47,fieldsConfig:_0x16061e,collectionConfig:_0xb88f0b,changesets:_0x35e662}=_0x43e16a,_0x194b44=_0x193dfb[_0x595581(0x400)]()[_0x595581(0x31a)],_0x3395a7=_0x5cf8ff['mergeWorksheetSnapshotWithDefault']({'rowCount':_0x112a98[_0x595581(0x1a4)]()-0x1,'columnCount':_0x112a98[_0x595581(0x3b8)]()-0x1});_0x3395a7['id']=_0x5cf8ff[_0x595581(0x445)](),_0x3395a7[_0x595581(0x455)]=_0x193dfb[_0x595581(0x3be)](''+_0x3bddd7['t'](_0x595581(0x429)));const _0x40f7eb={'index':_0x194b44,'sheet':_0x3395a7,'unitId':_0x37f622},{redos:_0x2590f4}=_0x45171b(_0x4cbe28,{'pivotTableId':_0x1ac00c,'unitId':_0x37f622,'subUnitId':_0x3395a7['id']},_0x35e662),_0x12b031=[{'id':_0x3d008a[_0x595581(0x1c1)]['id'],'params':_0x40f7eb},{'id':_0x55ee20['id'],'params':{'unitId':_0x37f622,'subUnitId':_0x3395a7['id'],'pivotTableId':_0x1ac00c,'pivotTableConfig':{'isEmpty':_0x1feb47,'fieldsConfig':_0x16061e,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x37f622,'subUnitId':_0x3395a7['id']},'sourceRangeInfo':{'subUnitId':_0x3be4f6,'unitId':_0x37f622,'range':_0x2f719d,'sheetName':_0x112a98['getName']()}},'collectionConfig':_0xb88f0b}},..._0x2590f4];return _0x5cf8ff[_0x595581(0x33f)](_0x12b031,_0x4cbe28),!0x0;}},_0x5a7c3a={'type':_0x5cf8ff['CommandType'][_0x217abe(0x240)],'id':'sheet.mutation.remove-pivot-table','handler'(_0x52566e,_0x35abcc){const _0x3f2bbf=_0x217abe;if(!_0x35abcc)return!0x1;if(!!_0x52566e[_0x3f2bbf(0x191)](_0x5cf8ff[_0x3f2bbf(0x1b0)])[_0x3f2bbf(0x2ec)](_0x243383))return!0x0;const {pivotTableId:_0xdad0b2,unitId:_0x2b6dd2,subUnitId:_0x10ce12}=_0x35abcc,_0x23b6ea=_0x52566e[_0x3f2bbf(0x191)](_0x28dbf0[_0x3f2bbf(0x3f2)]);return _0x23b6ea[_0x3f2bbf(0x19a)](_0x2b6dd2,_0x10ce12,_0xdad0b2)?(_0x23b6ea[_0x3f2bbf(0x235)]({'unitId':_0x2b6dd2,'subUnitId':_0x10ce12,'token':_0xdad0b2,'type':_0x5da69e[_0x3f2bbf(0x284)]}),_0x23b6ea[_0x3f2bbf(0x380)](_0x2b6dd2,_0x10ce12,_0xdad0b2),!0x0):!0x1;}},_0x4d02a6={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x26f)],'id':_0x217abe(0x194),async 'handler'(_0x311a16,_0x4beb17){const _0x5da844=_0x217abe;var _0x455e33,_0x41ca71;const _0x5cfc56=_0x311a16[_0x5da844(0x191)](_0x5cf8ff['ICommandService']),_0x4267d7=_0x311a16[_0x5da844(0x191)](_0x5cf8ff[_0x5da844(0x198)]),_0xff551f=_0x311a16['get'](_0x5cf8ff[_0x5da844(0x28e)]),_0x148de5=_0x311a16[_0x5da844(0x191)](_0x28dbf0[_0x5da844(0x1c9)]),_0x478d73=_0x311a16['get'](_0x5cf8ff[_0x5da844(0x158)]),_0x415f70=_0x311a16[_0x5da844(0x191)](_0x28dbf0['SheetsPivotTableConfigModel']),_0x4173fd=_0x311a16[_0x5da844(0x191)](_0x5cf8ff[_0x5da844(0x1b0)]);if(!_0x4beb17)return!0x1;const {pivotTableConfig:_0x4006a2,positionType:_0xbe5843}=_0x4beb17,{targetCellInfo:_0x31ef83,sourceRangeInfo:_0x4b426b}=_0x4006a2,{unitId:_0x38bf2d,subUnitId:_0x359188}=_0x31ef83,_0x1d1760=_0x4267d7[_0x5da844(0x3da)](_0x38bf2d);if(!_0x1d1760)return!0x1;let _0x215594=0x0;_0x1d1760['getSheets']()[_0x5da844(0x22c)](_0x2c34b5=>{const _0x1fb0fb=_0x5da844;var _0x368769,_0x504f8f;_0x215594+=(_0x504f8f=(_0x368769=_0x415f70[_0x1fb0fb(0x456)](_0x38bf2d,_0x2c34b5[_0x1fb0fb(0x404)]()))==null?void 0x0:_0x368769['size'])!=null?_0x504f8f:0x0;});const _0x32e9c1=(_0x455e33=_0x4173fd['getConfig'](_0x556295[_0x5da844(0x181)]))!=null?_0x455e33:{},{ls:_0xc7c5d,pbk:_0x5a4cb4}=_0x32e9c1;if(!_0x4842f8(_0xc7c5d,_0x5a4cb4))return!0x1;const _0x504649=_0x1d765d(_0x45e71b,_0xc7c5d,_0x5a4cb4)[_0x5da844(0x200)];if(_0x215594>=_0x504649)return!0x1;const _0x5b42cd=_0x4beb17[_0x5da844(0x40d)]||_0x2444f4[_0x5da844(0x1d2)](0x8),_0x2b86ad=(await _0x148de5[_0x5da844(0x338)]({'unitId':_0x38bf2d,'subUnitId':_0x359188,'pivotTableId':_0x5b42cd,'params':{'type':_0x5b1b05[_0x5da844(0x202)],'addPivotTable':{'sourceRangeInfo':_0x4b426b,'pivotTableId':_0x5b42cd}}}))['result']['addPivotTable'];if(!_0x2b86ad)return!0x1;const {view:_0x4bd4c3,isEmpty:_0x51ea7f,fieldsConfig:_0x2832f0,collectionConfig:_0x20b95b}=_0x2b86ad,_0x3dde61=[],_0x1de95f=[];if(_0xbe5843===_0x59cdf6[_0x5da844(0x19f)]){const _0xa5d06c=_0x1d1760[_0x5da844(0x400)]()[_0x5da844(0x31a)],_0x408367=_0x5cf8ff[_0x5da844(0x363)]({});_0x408367['id']=_0x4006a2[_0x5da844(0x25b)][_0x5da844(0x1d0)],_0x408367[_0x5da844(0x455)]=(_0x41ca71=_0x4006a2[_0x5da844(0x25b)][_0x5da844(0x328)])!=null?_0x41ca71:_0x1d1760[_0x5da844(0x3be)](''+_0xff551f['t']('sheets.tabs.sheet'));const _0x37479a={'index':_0xa5d06c,'sheet':_0x408367,'unitId':_0x38bf2d},_0x5ed1a5=_0x3d008a['InsertSheetUndoMutationFactory'](_0x311a16,_0x37479a);_0x3dde61[_0x5da844(0x3d3)]({'id':_0x3d008a[_0x5da844(0x37e)]['id'],'params':_0x5ed1a5}),_0x1de95f[_0x5da844(0x3d3)]({'id':_0x3d008a[_0x5da844(0x165)]['id'],'params':_0x37479a});}else{if(!_0x1d1760[_0x5da844(0x3db)](_0x359188))return!0x1;const _0x20d47c=_0x39b7a0(_0x311a16,new _0x2444f4['PivotView'](),_0x31ef83,!0x0);_0x1de95f[_0x5da844(0x3d3)](..._0x20d47c[_0x5da844(0x3ea)]),_0x3dde61[_0x5da844(0x3d3)](..._0x20d47c[_0x5da844(0x3c3)]);const _0x23ed52={'cellInfo':_0x31ef83,'view':_0x4bd4c3,'isEmpty':_0x51ea7f};if(!await _0x311a16[_0x5da844(0x191)](_0x28dbf0[_0x5da844(0x368)])[_0x5da844(0x342)]['fetchThroughAsyncInterceptors'](_0x42699f)(!0x0,_0x23ed52))return!0x1;const _0x1bcda1=_0x453490(_0x311a16,_0x23ed52);_0x1de95f[_0x5da844(0x3d3)](..._0x1bcda1[_0x5da844(0x3ea)]),_0x3dde61['push'](..._0x1bcda1['undos']);}return _0x1de95f[_0x5da844(0x3d3)]({'id':_0x55ee20['id'],'params':{'unitId':_0x31ef83[_0x5da844(0x26d)],'subUnitId':_0x31ef83['subUnitId'],'pivotTableId':_0x5b42cd,'pivotTableConfig':{'targetCellInfo':_0x31ef83,'sourceRangeInfo':_0x4b426b,'fieldsConfig':_0x2832f0},'collectionConfig':_0x20b95b}}),_0x3dde61[_0x5da844(0x3f9)]({'id':_0x5a7c3a['id'],'params':{'unitId':_0x38bf2d,'subUnitId':_0x359188,'pivotTableId':_0x5b42cd}}),_0x5cf8ff['sequenceExecute'](_0x1de95f,_0x5cfc56)&&_0x478d73[_0x5da844(0x30d)]({'unitID':_0x38bf2d,'undoMutations':_0x3dde61,'redoMutations':_0x1de95f}),!0x0;}},_0x2f4a42={'type':_0x5cf8ff[_0x217abe(0x3ee)]['COMMAND'],'id':_0x217abe(0x2f3),async 'handler'(_0x2805a1,_0x4f272a){const _0x3b0ef4=_0x217abe;if(!_0x4f272a)return!0x1;const _0xf671dc=_0x2805a1[_0x3b0ef4(0x191)](_0x5cf8ff['ICommandService']),_0xf007c2=_0x2805a1[_0x3b0ef4(0x191)](_0x28dbf0['SheetsPivotRPCService']),_0x71da80=_0x2805a1[_0x3b0ef4(0x191)](_0x5cf8ff[_0x3b0ef4(0x158)]),{pivotTableId:_0x26d367,fieldId:_0x272b13,area:_0xc56fa8,index:_0x3889c7,unitId:_0xaabb98,subUnitId:_0x450242}=_0x4f272a,_0x5b54f1=(await _0xf007c2[_0x3b0ef4(0x338)]({'unitId':_0xaabb98,'subUnitId':_0x450242,'pivotTableId':_0x26d367,'params':{'type':_0x5b1b05[_0x3b0ef4(0x21f)],'movePivotField':{'fieldId':_0x272b13,'area':_0xc56fa8,'index':_0x3889c7}}}))[_0x3b0ef4(0x401)][_0x3b0ef4(0x20d)];if(!_0x5b54f1)return!0x1;const {changesets:_0x127f74,view:_0x51032e,isEmpty:_0x45a3d6,pivotTableConfig:_0x2e7c7f}=_0x5b54f1,_0x126922=_0x2e7c7f['targetCellInfo'],_0x301633=new _0x2444f4[(_0x3b0ef4(0x2d2))]();_0x301633[_0x3b0ef4(0x3e9)](_0x51032e);const _0x44cf6a={'cellInfo':_0x126922,'view':_0x301633,'isEmpty':_0x45a3d6};if(!await _0x2805a1['get'](_0x28dbf0['SheetsPivotTableService'])[_0x3b0ef4(0x342)][_0x3b0ef4(0x1d1)](_0x42699f)(!0x0,_0x44cf6a))return!0x1;const _0x26ee60=_0x39b7a0(_0x2805a1,_0x301633,_0x126922,_0x45a3d6),_0x34e038=_0x453490(_0x2805a1,_0x44cf6a),{redos:_0x5ce396,undos:_0x2499d0}=_0x45171b(_0xf671dc,{'pivotTableId':_0x26d367,'unitId':_0xaabb98,'subUnitId':_0x450242},_0x127f74);return _0x5cf8ff[_0x3b0ef4(0x33f)]([..._0x26ee60['redos'],..._0x34e038[_0x3b0ef4(0x3ea)],..._0x5ce396],_0xf671dc),_0x71da80[_0x3b0ef4(0x30d)]({'unitID':_0xaabb98,'redoMutations':[..._0x26ee60[_0x3b0ef4(0x3ea)],..._0x34e038[_0x3b0ef4(0x3ea)],..._0x5ce396],'undoMutations':[..._0x26ee60[_0x3b0ef4(0x3c3)],..._0x34e038[_0x3b0ef4(0x3c3)],..._0x2499d0]}),!0x0;}},_0x7a70ac={'type':_0x5cf8ff['CommandType'][_0x217abe(0x240)],'id':_0x217abe(0x366),'handler'(_0x3b72f1,_0x59e1b9){const _0x45927d=_0x217abe;if(!_0x59e1b9)return!0x1;if(!!_0x3b72f1['get'](_0x5cf8ff['IConfigService'])[_0x45927d(0x2ec)](_0x243383))return!0x0;const {pivotTableId:_0x353324,targetCellPosition:_0x497963,unitId:_0x36185e,subUnitId:_0x1c95fd}=_0x59e1b9,_0x5c4b70=_0x3b72f1[_0x45927d(0x191)](_0x28dbf0[_0x45927d(0x3f2)]);if(!_0x5c4b70[_0x45927d(0x45b)](_0x59e1b9[_0x45927d(0x40d)]))return!0x1;const _0x5cf278=_0x5c4b70[_0x45927d(0x183)](_0x353324);if(!_0x5cf278)return!0x1;const _0x28e405=_0x5c4b70[_0x45927d(0x371)](_0x5cf278['unitId'],_0x59e1b9[_0x45927d(0x40d)]);if(!_0x28e405)return!0x1;const _0x252cd9=_0x5c4b70['getPivotTableConfig'](_0x5cf278[_0x45927d(0x26d)],_0x5cf278['subUnitId'],_0x353324);if(!_0x252cd9)return!0x1;const _0x2ca2d5=_0x5cf8ff[_0x45927d(0x2c1)][_0x45927d(0x1dc)](_0x252cd9);_0x2ca2d5['targetCellInfo']={'unitId':_0x36185e,'subUnitId':_0x1c95fd,'row':_0x497963[_0x45927d(0x2aa)],'col':_0x497963['col']};const _0xc22e5a=_0x28e405[_0x45927d(0x327)]();if(_0x5cf278[_0x45927d(0x1d0)]===_0x1c95fd&&_0x5cf278[_0x45927d(0x26d)]===_0x36185e)_0x5c4b70['setPivotTable'](_0x36185e,_0x1c95fd,_0x353324,_0x2ca2d5),_0x5c4b70[_0x45927d(0x235)]({'unitId':_0x36185e,'subUnitId':_0x1c95fd,'token':_0x353324,'type':_0x5da69e[_0x45927d(0x45d)]});else{_0x5c4b70['addDirtyPivotTable']({'unitId':_0x5cf278['unitId'],'subUnitId':_0x5cf278[_0x45927d(0x1d0)],'token':_0x353324,'type':_0x5da69e[_0x45927d(0x284)]}),_0x5c4b70[_0x45927d(0x380)](_0x5cf278['unitId'],_0x5cf278[_0x45927d(0x1d0)],_0x353324);const _0x4a1995=_0x5c4b70[_0x45927d(0x44c)](_0x353324,_0xc22e5a,_0x252cd9[_0x45927d(0x434)],_0x2ca2d5[_0x45927d(0x25b)]),_0xf9fdd6=new _0x2444f4[(_0x45927d(0x2cc))](_0x4a1995[_0x45927d(0x30a)],void 0x0,_0x353324);_0xf9fdd6['fromJSON'](_0x2ca2d5[_0x45927d(0x24f)]),_0x5c4b70[_0x45927d(0x348)](_0x36185e,_0x1c95fd,_0x353324,_0xf9fdd6,_0x2ca2d5),_0x5c4b70[_0x45927d(0x235)]({'unitId':_0x36185e,'subUnitId':_0x1c95fd,'token':_0x353324,'type':_0x5da69e[_0x45927d(0x3e3)],'pivotConfig':_0x2ca2d5});}return!0x0;}},_0x1d14e1={'type':_0x5cf8ff['CommandType'][_0x217abe(0x26f)],'id':_0x217abe(0x2ee),'handler':(_0x28917b,_0x582257)=>{const _0x513398=_0x217abe,_0x16d936=_0x28917b[_0x513398(0x191)](_0x5cf8ff[_0x513398(0x20e)]),_0xeb6ad1=_0x28917b[_0x513398(0x191)](_0x5cf8ff[_0x513398(0x158)]),_0x3fdfba=_0x28917b['get'](_0x28dbf0[_0x513398(0x390)]),_0x38feda=_0x28917b[_0x513398(0x191)](_0x5cf8ff['IUniverInstanceService']);if(!_0x582257)return!0x1;const _0x3f2f60=_0x3d008a[_0x513398(0x1cb)](_0x38feda);if(!_0x3f2f60)return!0x1;const {unitId:_0x1eece0,subUnitId:_0x387250,workbook:_0x54fe02}=_0x3f2f60,_0x36cab4=_0x3fdfba[_0x513398(0x19a)](_0x582257['originTargetInfo'][_0x513398(0x26d)],_0x582257['originTargetInfo'][_0x513398(0x1d0)],_0x582257[_0x513398(0x40d)]);if(!_0x36cab4)return!0x1;const _0x111ad7=_0x54fe02[_0x513398(0x3db)](_0x582257[_0x513398(0x25b)][_0x513398(0x1d0)]);if(!_0x111ad7)throw new Error(_0x513398(0x301));const _0x2f1077=_0x111ad7['getRowCount'](),_0x38870b=_0x111ad7[_0x513398(0x3b8)]();if(_0x582257['targetCellInfo'][_0x513398(0x2aa)]>_0x2f1077||_0x582257[_0x513398(0x25b)][_0x513398(0x1b1)]>_0x38870b)throw new Error(_0x513398(0x1ab));const _0xd40a5c=[{'id':_0x7a70ac['id'],'params':{'unitId':_0x1eece0,'subUnitId':_0x582257[_0x513398(0x25b)][_0x513398(0x1d0)],'pivotTableId':_0x582257['pivotTableId'],'targetCellPosition':{'row':_0x582257['targetCellInfo'][_0x513398(0x2aa)],'col':_0x582257[_0x513398(0x25b)][_0x513398(0x1b1)]}}}],_0x71f20c=[{'id':_0x7a70ac['id'],'params':{'unitId':_0x1eece0,'subUnitId':_0x387250,'pivotTableId':_0x582257[_0x513398(0x40d)],'targetCellPosition':{'row':_0x36cab4[_0x513398(0x25b)][_0x513398(0x2aa)],'col':_0x36cab4[_0x513398(0x25b)][_0x513398(0x1b1)]}}}];return _0x5cf8ff[_0x513398(0x33f)](_0xd40a5c,_0x16d936)&&_0xeb6ad1[_0x513398(0x30d)]({'unitID':_0x1eece0,'undoMutations':_0x71f20c,'redoMutations':_0xd40a5c}),!0x0;}},_0x27f768={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x26f)],'id':_0x217abe(0x3d6),async 'handler'(_0xda0f4e,_0x50373b){const _0x152d00=_0x217abe;var _0x311f7e;if(!_0x50373b)return!0x1;const _0x1ca912=_0xda0f4e[_0x152d00(0x191)](_0x5cf8ff['IUniverInstanceService']),_0x4a1a4a=_0x3d008a[_0x152d00(0x1cb)](_0x1ca912);if(!_0x4a1a4a)return!0x1;const {unitId:_0x1cc73a,subUnitId:_0x21b60e,workbook:_0x294620}=_0x4a1a4a,{row:_0x272612,col:_0x59173e}=_0x50373b,_0x58d051=_0xda0f4e[_0x152d00(0x191)](_0x28dbf0[_0x152d00(0x3eb)]),_0x241a33=_0x58d051[_0x152d00(0x3c7)](_0x1cc73a,_0x21b60e,_0x272612,_0x59173e);if(!_0x241a33)return!0x1;const _0x4afc18=(_0x311f7e=_0x58d051['getPivotItemRenderInfoCache'](_0x1cc73a,_0x21b60e,_0x241a33))==null?void 0x0:_0x311f7e[_0x152d00(0x416)];if(!_0x4afc18)return!0x1;const _0x424fa9=_0xda0f4e[_0x152d00(0x191)](_0x28dbf0['SheetsPivotTableConfigModel'])['getPivotTableConfig'](_0x1cc73a,_0x21b60e,_0x241a33);if(!_0x424fa9)return!0x1;const {rowInfo:_0x1441f5,colInfo:_0x51385e}=_0x4afc18,_0x5140ad=_0x1441f5[_0x272612][_0x152d00(0x334)],_0x1d3940=_0x51385e[_0x59173e]['paths'],_0x3ba790=_0x1441f5[_0x272612][_0x152d00(0x402)],_0x2efd17=_0x51385e[_0x59173e][_0x152d00(0x402)],_0x3a91c7=_0x5140ad['concat'](_0x1d3940),_0x118fe4=_0x424fa9[_0x152d00(0x24f)][_0x152d00(0x44a)][_0x152d00(0x2cf)](0x0,_0x3ba790),_0x905e43=_0x424fa9[_0x152d00(0x24f)][_0x152d00(0x21b)][_0x152d00(0x2cf)](0x0,_0x2efd17),_0x7f9c93=_0x118fe4[_0x152d00(0x1a0)](_0x905e43),_0x48eb20=_0x3a91c7['map']((_0x2e8908,_0x16ae13)=>[_0x2e8908,_0x7f9c93[_0x16ae13]]),_0x177b7e=(await _0xda0f4e[_0x152d00(0x191)](_0x28dbf0[_0x152d00(0x1c9)])['getPivotDisplayConfig']({'unitId':_0x1cc73a,'subUnitId':_0x21b60e,'pivotTableId':_0x241a33,'params':{'type':_0x5b1b05[_0x152d00(0x3d5)],'drillDown':{'tuple':_0x48eb20}}}))[_0x152d00(0x401)]['drillDown'];if(!_0x177b7e)return!0x1;const {indexes:_0x4a2efc,range:_0x5be6d2,sourceUnitId:_0x59e921,sourceSubUnitId:_0x1bee70,formatMap:_0x1c57f5}=_0x177b7e,{startRow:_0x45279a,endRow:_0xde06fe,startColumn:_0x142cc7,endColumn:_0xcf3b3a}=_0x5be6d2,_0x166245=new _0x5cf8ff['ObjectMatrix'](),_0x7e4b82=_0xde06fe-_0x45279a,_0x1893d8=_0xcf3b3a-_0x142cc7,_0x1cb330={},_0x361695=_0x3d008a[_0x152d00(0x1cb)](_0x1ca912,{'unitId':_0x59e921,'subUnitId':_0x1bee70});if(!_0x361695)return!0x1;const _0x4f83e1=_0x564739[_0x152d00(0x1d6)],_0xabb4fc=_0x564739[_0x152d00(0x268)],_0x47aa47=_0x564739[_0x152d00(0x268)],_0x503221=_0x294620['getStyles']()[_0x152d00(0x364)](_0x4f83e1),_0x384914=_0x294620[_0x152d00(0x42f)]()['setValue'](_0xabb4fc),_0x5ebb45=_0x294620[_0x152d00(0x42f)]()[_0x152d00(0x364)](_0x47aa47),{worksheet:_0x50e4a9}=_0x361695;let _0x882f97=0x0;const _0x59d3a0=0x1;_0x4a2efc[_0x152d00(0x22c)](_0x565f27=>{const _0x2e044a=_0x152d00;for(let _0x418913=0x0;_0x418913<=_0xcf3b3a-_0x142cc7;_0x418913++)_0x166245[_0x2e044a(0x364)](_0x882f97,_0x418913,_0x50e4a9['getCellRaw'](_0x565f27+_0x5be6d2[_0x2e044a(0x1f3)]+_0x59d3a0,_0x418913));_0x882f97++;});for(let _0x27b2f5=_0x142cc7;_0x27b2f5<=_0xcf3b3a;_0x27b2f5++){const _0x4010f3=_0x50e4a9['getCellRaw'](_0x45279a,_0x27b2f5);_0x1cb330[_0x45279a]||(_0x1cb330[_0x45279a]={}),_0x1cb330[_0x45279a][_0x27b2f5]={..._0x4010f3,'s':_0x503221};}let _0x1ce366=0x1;const _0x13c4af={},_0x3b53b2={};_0x166245[_0x152d00(0x175)]((_0x4b8b02,_0x52cff5)=>{const _0x44d5af=_0x152d00;_0x52cff5[_0x44d5af(0x22c)](_0x1cbc9d=>{const _0x290866=_0x44d5af,_0x554c4f=_0x166245[_0x290866(0x2bd)](_0x4b8b02,_0x1cbc9d);if(_0x1cb330[_0x1ce366]||(_0x1cb330[_0x1ce366]={}),_0x1cb330[_0x1ce366][_0x1cbc9d]={..._0x554c4f,'s':_0x1ce366%0x2===0x0?_0x5ebb45:_0x384914},_0x1c57f5[_0x1cbc9d]&&_0x4b8b02>=0x0){const _0x5b6e52=_0x1ce366%0x2===0x0;let _0x122295=_0x5b6e52?_0x3b53b2[_0x1cbc9d]:_0x13c4af[_0x1cbc9d];_0x122295||(_0x122295=_0x294620['getStyles']()[_0x290866(0x364)]({..._0x5b6e52?_0x47aa47:_0xabb4fc,'n':{'pattern':_0x1c57f5[_0x1cbc9d]}}),_0x5b6e52?_0x3b53b2[_0x1cbc9d]=_0x122295:_0x13c4af[_0x1cbc9d]=_0x122295),_0x1cb330[_0x1ce366][_0x1cbc9d]['s']=_0x122295;}}),_0x1ce366++;});const _0x5e5128=new _0x5cf8ff[(_0x152d00(0x27d))](_0x1cb330),_0x5eccd9={};_0x5e5128[_0x152d00(0x470)]((_0x1f4383,_0x179ae9,_0x39f9b8)=>{_0x5eccd9[_0x1f4383]||(_0x5eccd9[_0x1f4383]={}),_0x5eccd9[_0x1f4383][_0x179ae9]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x11c48b=[],_0x4797a2=[],_0x21272c=_0x294620['getSheets']()['length'],_0x9dd4a6=_0x5cf8ff[_0x152d00(0x363)]({'rowCount':Math[_0x152d00(0x3bc)](_0x5cf8ff[_0x152d00(0x17b)],_0x7e4b82+0xa),'columnCount':Math[_0x152d00(0x3bc)](_0x5cf8ff[_0x152d00(0x238)],_0x1893d8+0x5)}),_0x174880=_0xda0f4e[_0x152d00(0x191)](_0x5cf8ff['LocaleService']);_0x9dd4a6['id']=_0x5cf8ff['generateRandomId'](),_0x9dd4a6[_0x152d00(0x455)]=_0x294620['generateNewSheetName'](''+_0x174880['t'](_0x152d00(0x429)));const _0x3986f9={'index':_0x21272c,'sheet':_0x9dd4a6,'unitId':_0x1cc73a},_0x161098=_0x3d008a[_0x152d00(0x39f)](_0xda0f4e,_0x3986f9);_0x4797a2[_0x152d00(0x3d3)]({'id':_0x3d008a[_0x152d00(0x165)]['id'],'params':_0x3986f9}),_0x11c48b['push']({'id':_0x3d008a[_0x152d00(0x37e)]['id'],'params':_0x161098}),_0x4797a2[_0x152d00(0x3d3)]({'id':_0x3d008a[_0x152d00(0x2ea)]['id'],'params':{'unitId':_0x1cc73a,'subUnitId':_0x9dd4a6['id'],'cellValue':_0x1cb330}}),_0x11c48b[_0x152d00(0x3f9)]({'id':_0x3d008a['SetRangeValuesMutation']['id'],'params':{'unitId':_0x1cc73a,'subUnitId':_0x9dd4a6['id'],'cellValue':_0x5eccd9}});const _0xbab867={'startRow':0x0,'startColumn':0x0,'endRow':_0x1ce366-0x1,'endColumn':_0xcf3b3a};_0x4797a2[_0x152d00(0x3d3)]({'id':_0x1074c0[_0x152d00(0x33b)]['id'],'params':{'unitId':_0x1cc73a,'subUnitId':_0x9dd4a6['id'],'range':_0xbab867}}),_0x11c48b[_0x152d00(0x3f9)]({'id':_0x1074c0[_0x152d00(0x1d5)]['id'],'params':{'unitId':_0x1cc73a,'subUnitId':_0x9dd4a6['id']}});const _0x11adfd=_0xda0f4e['get'](_0x5cf8ff['ICommandService']);return _0x5cf8ff[_0x152d00(0x33f)](_0x4797a2,_0x11adfd)&&_0xda0f4e[_0x152d00(0x191)](_0x5cf8ff[_0x152d00(0x158)])[_0x152d00(0x30d)]({'unitID':_0x1cc73a,'undoMutations':_0x11c48b,'redoMutations':_0x4797a2}),!0x0;}},_0x2f77da={'type':_0x5cf8ff['CommandType'][_0x217abe(0x26f)],'id':'sheet.command.remove-pivot-field',async 'handler'(_0x126567,_0x3801a0){const _0x1d516e=_0x217abe;if(!_0x3801a0)return!0x1;const _0x1205d5=_0x126567[_0x1d516e(0x191)](_0x5cf8ff[_0x1d516e(0x20e)]),_0x4cfd35=_0x126567['get'](_0x28dbf0['SheetsPivotRPCService']),_0x3384d7=_0x126567[_0x1d516e(0x191)](_0x5cf8ff[_0x1d516e(0x158)]),{pivotTableId:_0x3c1206,fieldIds:_0x4ca30b,unitId:_0x236546,subUnitId:_0x535a43}=_0x3801a0,_0x2318cf=(await _0x4cfd35[_0x1d516e(0x338)]({'unitId':_0x236546,'subUnitId':_0x535a43,'pivotTableId':_0x3c1206,'params':{'type':_0x5b1b05[_0x1d516e(0x32a)],'removePivotField':{'fieldIds':_0x4ca30b}}}))[_0x1d516e(0x401)]['removePivotField'];if(!_0x2318cf)return!0x1;const {view:_0x2e47c2,changesets:_0x4e69f7,isEmpty:_0x297105,pivotTableConfig:_0x57dfda}=_0x2318cf,_0x14b24e=_0x57dfda[_0x1d516e(0x25b)],_0x58b223=new _0x2444f4[(_0x1d516e(0x2d2))]();_0x58b223[_0x1d516e(0x3e9)](_0x2e47c2);const _0x17487e={'cellInfo':_0x14b24e,'view':_0x58b223,'isEmpty':_0x297105};if(!await _0x126567[_0x1d516e(0x191)](_0x28dbf0[_0x1d516e(0x368)])[_0x1d516e(0x342)]['fetchThroughAsyncInterceptors'](_0x42699f)(!0x0,_0x17487e))return!0x1;const _0x3ac28b=_0x39b7a0(_0x126567,_0x58b223,_0x14b24e,_0x297105),_0x24d8c4=_0x453490(_0x126567,_0x17487e),{redos:_0x5e7c47,undos:_0x13613f}=_0x45171b(_0x1205d5,{'pivotTableId':_0x3c1206,'unitId':_0x236546,'subUnitId':_0x535a43},_0x4e69f7);return _0x5cf8ff['sequenceExecute']([..._0x3ac28b[_0x1d516e(0x3ea)],..._0x24d8c4[_0x1d516e(0x3ea)],..._0x5e7c47],_0x1205d5),_0x3384d7[_0x1d516e(0x30d)]({'unitID':_0x236546,'redoMutations':[..._0x3ac28b['redos'],..._0x24d8c4['redos'],..._0x5e7c47],'undoMutations':[..._0x3ac28b[_0x1d516e(0x3c3)],..._0x24d8c4[_0x1d516e(0x3c3)],..._0x13613f]}),!0x0;}},_0x15803c={'type':_0x5cf8ff['CommandType'][_0x217abe(0x26f)],'id':_0x217abe(0x453),async 'handler'(_0x148bac,_0x89653f){const _0x31ac36=_0x217abe;if(!_0x89653f)return!0x1;const _0x38cae8=_0x148bac[_0x31ac36(0x191)](_0x5cf8ff[_0x31ac36(0x20e)]),_0x5f47b0=_0x148bac[_0x31ac36(0x191)](_0x5cf8ff['IUndoRedoService']),_0x474f07=_0x148bac[_0x31ac36(0x191)](_0x28dbf0['SheetsPivotRPCService']),{resetArea:_0x14a0ca,pivotTableId:_0xd7aa77,unitId:_0x207d65,subUnitId:_0x5c625e}=_0x89653f,_0xe881f8=(await _0x474f07[_0x31ac36(0x338)]({'unitId':_0x207d65,'subUnitId':_0x5c625e,'pivotTableId':_0xd7aa77,'params':{'type':_0x5b1b05['ResetPivotTable'],'resetPivotTable':{'pivotTableId':_0xd7aa77,'resetArea':_0x14a0ca}}}))[_0x31ac36(0x401)][_0x31ac36(0x217)];if(!_0xe881f8)return!0x1;const {changesets:_0x30addf}=_0xe881f8,{redos:_0x3b5de7,undos:_0xc51f13}=_0x45171b(_0x38cae8,{'pivotTableId':_0xd7aa77,'unitId':_0x207d65,'subUnitId':_0x5c625e},_0x30addf);return _0x5cf8ff['sequenceExecute'](_0x3b5de7,_0x38cae8),_0x5f47b0[_0x31ac36(0x30d)]({'unitID':_0x207d65,'redoMutations':_0x3b5de7,'undoMutations':_0xc51f13}),!0x0;}},_0xaf7849={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x26f)],'id':_0x217abe(0x353),async 'handler'(_0x2b6619,_0x1b78b4){const _0x7196c7=_0x217abe,_0x50c1c5=_0x2b6619[_0x7196c7(0x191)](_0x5cf8ff['ICommandService']),_0x5d9c93=_0x2b6619[_0x7196c7(0x191)](_0x28dbf0[_0x7196c7(0x1c9)]),_0x5a47bc=_0x2b6619[_0x7196c7(0x191)](_0x28dbf0[_0x7196c7(0x3eb)]),_0x30fa7d=_0x2b6619['get'](_0x5cf8ff[_0x7196c7(0x198)]),_0x16d1c6=_0x2b6619[_0x7196c7(0x191)](_0x5cf8ff[_0x7196c7(0x28e)]),_0x38cabc=_0x2b6619[_0x7196c7(0x191)](_0x5cf8ff[_0x7196c7(0x158)]);if(!_0x1b78b4)return!0x1;const {unitId:_0x26587f,subUnitId:_0x42c345,row:_0x5c7317,col:_0x3689ea,collapse:_0x2e0759}=_0x1b78b4,_0x27a9d0=_0x30fa7d['getUnit'](_0x26587f);if(!_0x27a9d0||!_0x27a9d0[_0x7196c7(0x3db)](_0x42c345))return!0x1;const _0x29aa7d=_0x5a47bc['getPivotTableIdByCell'](_0x26587f,_0x42c345,_0x5c7317,_0x3689ea);if(!_0x29aa7d)return!0x1;const _0x4798e2=_0x5a47bc['getPivotItemRenderInfoCache'](_0x26587f,_0x42c345,_0x29aa7d);if(!_0x4798e2)return!0x1;const _0x30a098=_0x5cf8ff[_0x7196c7(0x396)](_0x5c7317,_0x3689ea),{rangesInfo:_0x2ae301,areaInfo:_0x1bc32f,headerMap:_0x46bb72}=_0x4798e2;if(!_0x2ae301||!_0x1bc32f||!_0x46bb72)return!0x1;const _0x512796=Object['keys'](_0x2ae301)[_0x7196c7(0x3a6)](_0x428ffe=>_0x2ae301[_0x428ffe][_0x7196c7(0x3ad)](_0x17caed=>_0x5cf8ff[_0x7196c7(0x1d8)][_0x7196c7(0x381)](_0x17caed,_0x30a098)));let _0x59c8b6;_0x512796===_0x7196c7(0x2b0)?_0x59c8b6=_0x46bb72[_0x7196c7(0x34f)][_0x3689ea]:_0x512796===_0x7196c7(0x253)&&(_0x59c8b6=_0x46bb72['colHeaderMap'][_0x5c7317]);const _0xa524f2=_0x59c8b6==null?void 0x0:_0x59c8b6['tableFieldId'],_0x2d94c2=_0x5a47bc[_0x7196c7(0x436)](_0x26587f,_0x42c345,_0x5c7317,_0x3689ea);let _0x2e7813=_0x2d94c2==null?void 0x0:_0x2d94c2['v'];if(_0x2e7813===_0x16d1c6['t'](_0x7196c7(0x161))&&(_0x2e7813=_0x2444f4['GlobalConfig'][_0x7196c7(0x35b)]),_0x2e7813==null||!_0x29aa7d||!_0xa524f2)return!0x1;const _0xa3f1b6=await _0x5d9c93[_0x7196c7(0x338)]({'unitId':_0x26587f,'subUnitId':_0x42c345,'pivotTableId':_0x29aa7d,'params':{'type':_0x5b1b05[_0x7196c7(0x2d4)],'setPivotCollapse':{'tableFieldId':_0xa524f2,'collapse':_0x2e0759,'item':_0x2e7813}}}),_0x43d686=_0xa3f1b6==null?void 0x0:_0xa3f1b6[_0x7196c7(0x401)][_0x7196c7(0x39c)];if(!_0x43d686)return!0x1;const {view:_0x3cb6e3,pivotTableConfig:_0x257ea1,isEmpty:_0x4502af,changesets:_0x43fbf3}=_0x43d686,_0x217c5d=new _0x2444f4[(_0x7196c7(0x2d2))]();_0x217c5d[_0x7196c7(0x3e9)](_0x3cb6e3);const _0x310a7a=_0x257ea1['targetCellInfo'],_0x234513={'cellInfo':_0x310a7a,'view':_0x217c5d,'isEmpty':_0x4502af};if(!await _0x2b6619[_0x7196c7(0x191)](_0x28dbf0[_0x7196c7(0x368)])[_0x7196c7(0x342)][_0x7196c7(0x1d1)](_0x42699f)(!0x0,_0x234513))return!0x1;const _0x1a9627=_0x39b7a0(_0x2b6619,_0x217c5d,_0x310a7a,_0x4502af),_0x4ec54f=_0x453490(_0x2b6619,_0x234513),{redos:_0x1c84ef,undos:_0xf90959}=_0x45171b(_0x50c1c5,{'pivotTableId':_0x29aa7d,'unitId':_0x26587f,'subUnitId':_0x42c345},_0x43fbf3);return _0x5cf8ff[_0x7196c7(0x33f)]([..._0x1a9627[_0x7196c7(0x3ea)],..._0x4ec54f[_0x7196c7(0x3ea)],..._0x1c84ef],_0x50c1c5),_0x38cabc[_0x7196c7(0x30d)]({'unitID':_0x26587f,'redoMutations':[..._0x1a9627[_0x7196c7(0x3ea)],..._0x4ec54f[_0x7196c7(0x3ea)],..._0x1c84ef],'undoMutations':[..._0x1a9627[_0x7196c7(0x3c3)],..._0x4ec54f[_0x7196c7(0x3c3)],..._0xf90959]}),!0x0;}},_0x3f7d9a={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x26f)],'id':_0x217abe(0x435),async 'handler'(_0x534df7,_0x5e75f0){const _0x2903db=_0x217abe;if(!_0x5e75f0)return!0x1;const _0x573402=_0x534df7[_0x2903db(0x191)](_0x5cf8ff['ICommandService']),_0x3f15f3=_0x534df7[_0x2903db(0x191)](_0x5cf8ff[_0x2903db(0x158)]),_0x279c49=_0x534df7[_0x2903db(0x191)](_0x28dbf0['SheetsPivotRPCService']),{pivotTableConfig:_0x43da0e,pivotTableId:_0x1cc231,unitId:_0x269624,subUnitId:_0x3b3793}=_0x5e75f0,_0x230dab=(await _0x279c49['getPivotDisplayConfig']({'unitId':_0x269624,'subUnitId':_0x3b3793,'pivotTableId':_0x1cc231,'params':{'type':_0x5b1b05[_0x2903db(0x40e)],'setPivotTableConfig':{'pivotTableId':_0x1cc231,'pivotTableConfig':_0x43da0e}}}))['result'][_0x2903db(0x22f)];if(!_0x230dab)return!0x1;const {changesets:_0x733193}=_0x230dab,{redos:_0x289ac5,undos:_0x57230c}=_0x45171b(_0x573402,{'pivotTableId':_0x1cc231,'unitId':_0x269624,'subUnitId':_0x3b3793},_0x733193);return _0x5cf8ff[_0x2903db(0x33f)](_0x289ac5,_0x573402),_0x3f15f3[_0x2903db(0x30d)]({'unitID':_0x269624,'redoMutations':_0x289ac5,'undoMutations':_0x57230c}),!0x0;}},_0xacc2d7={'type':_0x5cf8ff[_0x217abe(0x3ee)]['COMMAND'],'id':_0x217abe(0x350),async 'handler'(_0x1f696e,_0x3a81e5){const _0x263ba0=_0x217abe;if(!_0x3a81e5)return!0x1;const _0x8223e2=_0x1f696e[_0x263ba0(0x191)](_0x5cf8ff[_0x263ba0(0x20e)]),{pivotTableId:_0x45a066,tableFieldId:_0x1fb81c,items:_0x4a2e4f,unitId:_0x2c21ff,subUnitId:_0x4451de,isAll:_0x49ee2e}=_0x3a81e5,_0x56dd8a=_0x1f696e[_0x263ba0(0x191)](_0x28dbf0[_0x263ba0(0x1c9)]),_0x31c726=_0x1f696e[_0x263ba0(0x191)](_0x5cf8ff[_0x263ba0(0x158)]),_0x3b7926=(await _0x56dd8a[_0x263ba0(0x338)]({'unitId':_0x2c21ff,'subUnitId':_0x4451de,'pivotTableId':_0x45a066,'params':{'type':_0x5b1b05[_0x263ba0(0x1b4)],'setPivotFilter':{'tableFieldId':_0x1fb81c,'items':_0x4a2e4f,'isAll':_0x49ee2e}}}))[_0x263ba0(0x401)][_0x263ba0(0x2b3)];if(!_0x3b7926)return!0x1;const {changesets:_0x2122ef,pivotTableConfig:_0x2054db,isEmpty:_0x1883b4,view:_0xae1d8e}=_0x3b7926,_0x55f049=_0x2054db[_0x263ba0(0x25b)],_0x5629f8=new _0x2444f4[(_0x263ba0(0x2d2))]();_0x5629f8[_0x263ba0(0x3e9)](_0xae1d8e);const _0x201ff2={'cellInfo':_0x55f049,'view':_0x5629f8,'isEmpty':_0x1883b4};if(!await _0x1f696e[_0x263ba0(0x191)](_0x28dbf0['SheetsPivotTableService'])['asyncInterceptor'][_0x263ba0(0x1d1)](_0x42699f)(!0x0,_0x201ff2))return!0x1;const _0x542468=_0x39b7a0(_0x1f696e,_0x5629f8,_0x55f049,_0x1883b4),_0x2e51c5=_0x453490(_0x1f696e,_0x201ff2),{undos:_0x5ddfc5,redos:_0x5aa944}=_0x45171b(_0x8223e2,{'pivotTableId':_0x45a066,'unitId':_0x2c21ff,'subUnitId':_0x4451de},_0x2122ef);return _0x5cf8ff[_0x263ba0(0x33f)]([..._0x542468[_0x263ba0(0x3ea)],..._0x2e51c5[_0x263ba0(0x3ea)],..._0x5aa944],_0x8223e2),_0x31c726[_0x263ba0(0x30d)]({'unitID':_0x2c21ff,'redoMutations':[..._0x542468[_0x263ba0(0x3ea)],..._0x2e51c5[_0x263ba0(0x3ea)],..._0x5aa944],'undoMutations':[..._0x542468['undos'],..._0x2e51c5[_0x263ba0(0x3c3)],..._0x5ddfc5]}),!0x0;}},_0x1e3a37={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x26f)],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x57d9b0,_0x2d11c8){const _0x3e26c0=_0x217abe;if(!_0x2d11c8)return!0x1;const _0x1c8b14=_0x57d9b0[_0x3e26c0(0x191)](_0x5cf8ff[_0x3e26c0(0x20e)]),_0xae293c=_0x57d9b0[_0x3e26c0(0x191)](_0x5cf8ff['IUndoRedoService']),_0xe39903=_0x57d9b0['get'](_0x28dbf0[_0x3e26c0(0x1c9)]),{info:_0x388dac,tableFieldId:_0xee076a,pivotTableId:_0x5107ed,unitId:_0x3e80d2,subUnitId:_0x44291b}=_0x2d11c8,_0x583c75=(await _0xe39903[_0x3e26c0(0x338)]({'unitId':_0x3e80d2,'subUnitId':_0x44291b,'pivotTableId':_0x5107ed,'params':{'type':_0x5b1b05[_0x3e26c0(0x448)],'setPivotSort':{'tableFieldId':_0xee076a,'info':_0x388dac}}}))[_0x3e26c0(0x401)]['setPivotSort'];if(!_0x583c75)return!0x1;const {changesets:_0x4fd621}=_0x583c75,{redos:_0x33a4b5,undos:_0x3d20ee}=_0x45171b(_0x1c8b14,{'pivotTableId':_0x5107ed,'unitId':_0x3e80d2,'subUnitId':_0x44291b},_0x4fd621);return _0x5cf8ff[_0x3e26c0(0x33f)](_0x33a4b5,_0x1c8b14),_0xae293c[_0x3e26c0(0x30d)]({'unitID':_0x3e80d2,'redoMutations':_0x33a4b5,'undoMutations':_0x3d20ee}),!0x0;}},_0x26a432={'type':_0x5cf8ff['CommandType'][_0x217abe(0x26f)],'id':_0x217abe(0x278),async 'handler'(_0x303d50,_0x43d888){const _0x2b2b61=_0x217abe;if(!_0x43d888)return!0x1;const _0x3fe35d=_0x303d50[_0x2b2b61(0x191)](_0x5cf8ff['ICommandService']),{pivotTableId:_0x276e77,fieldId:_0x14e093,valueFilterInfo:_0x43634d,unitId:_0x2df7ea,subUnitId:_0x56df48}=_0x43d888,_0x26e763=_0x303d50[_0x2b2b61(0x191)](_0x28dbf0[_0x2b2b61(0x1c9)]),_0x2a4473=_0x303d50[_0x2b2b61(0x191)](_0x5cf8ff[_0x2b2b61(0x158)]),_0x50d3cb=(await _0x26e763[_0x2b2b61(0x338)]({'unitId':_0x2df7ea,'subUnitId':_0x56df48,'pivotTableId':_0x276e77,'params':{'type':_0x5b1b05[_0x2b2b61(0x424)],'setValuePivotFilter':{'tableFieldId':_0x14e093,'filterInfo':_0x43634d}}}))[_0x2b2b61(0x401)][_0x2b2b61(0x31d)];if(!_0x50d3cb)return!0x1;const {changesets:_0x2024c8,pivotTableConfig:_0x56279c,isEmpty:_0x17515a,view:_0x5b00ef}=_0x50d3cb,_0x8f651f=_0x56279c['targetCellInfo'],_0x5947b8=new _0x2444f4['PivotView']();_0x5947b8[_0x2b2b61(0x3e9)](_0x5b00ef);const _0x360034={'cellInfo':_0x8f651f,'view':_0x5947b8,'isEmpty':_0x17515a};if(!await _0x303d50[_0x2b2b61(0x191)](_0x28dbf0[_0x2b2b61(0x368)])[_0x2b2b61(0x342)][_0x2b2b61(0x1d1)](_0x42699f)(!0x0,_0x360034))return!0x1;const _0xc6d53e=_0x39b7a0(_0x303d50,_0x5947b8,_0x8f651f,_0x17515a),_0x4a4ee2=_0x453490(_0x303d50,_0x360034),{undos:_0x8cb6c1,redos:_0x4abd73}=_0x45171b(_0x3fe35d,{'pivotTableId':_0x276e77,'unitId':_0x2df7ea,'subUnitId':_0x56df48},_0x2024c8);return _0x5cf8ff[_0x2b2b61(0x33f)]([..._0xc6d53e['redos'],..._0x4a4ee2[_0x2b2b61(0x3ea)],..._0x4abd73],_0x3fe35d),_0x2a4473['pushUndoRedo']({'unitID':_0x2df7ea,'redoMutations':[..._0xc6d53e[_0x2b2b61(0x3ea)],..._0x4a4ee2[_0x2b2b61(0x3ea)],..._0x4abd73],'undoMutations':[..._0xc6d53e[_0x2b2b61(0x3c3)],..._0x4a4ee2['undos'],..._0x8cb6c1]}),!0x0;}},_0x4cad42={'id':_0x217abe(0x3a0),'type':_0x5cf8ff['CommandType'][_0x217abe(0x240)],'handler':(_0x397b97,_0x117241)=>{const _0x5140ed=_0x217abe;if(!_0x117241)return!0x1;if(!!_0x397b97['get'](_0x5cf8ff[_0x5140ed(0x1b0)])[_0x5140ed(0x2ec)](_0x243383))return!0x0;const {unitId:_0x388497,subUnitId:_0x34141e,pivotTableId:_0x10bd20,tableFieldId:_0x4bae27,dateType:_0x2ef777}=_0x117241,_0x25752d=_0x397b97[_0x5140ed(0x191)](_0x28dbf0[_0x5140ed(0x3f2)]),_0x2de217=_0x25752d['getPivotTableInstance'](_0x10bd20);if(!_0x2de217)return!0x1;const _0xbf52e4=_0x2de217['getDataFieldByTableId'](_0x4bae27);if(!_0xbf52e4)return!0x1;const _0x42725c=_0xbf52e4[_0x5140ed(0x441)](),_0x4ba6bb=_0x2de217[_0x5140ed(0x27e)](_0x42725c),_0x31ad76=(_0x4ba6bb==null?void 0x0:_0x4ba6bb[_0x5140ed(0x2e5)]())+'\x20'+_0xdfdb9a(_0x397b97,_0x2ef777);_0x25752d['getCollection'](_0x388497,_0x10bd20)[_0x5140ed(0x469)](_0xbf52e4['id'],_0x31ad76);const _0x39cbc3=_0x2de217[_0x5140ed(0x330)](_0x4bae27);if(!_0x39cbc3)return!0x1;_0x2de217[_0x5140ed(0x1db)](_0x39cbc3[_0x5140ed(0x30c)](),_0x31ad76),_0xbf52e4[_0x5140ed(0x3bd)](_0x2ef777);const _0x40852b=_0x25752d[_0x5140ed(0x19a)](_0x388497,_0x34141e,_0x10bd20);return _0x25752d['addDirtyPivotTable']({'unitId':_0x388497,'subUnitId':_0x34141e,'token':_0x10bd20,'type':_0x5da69e[_0x5140ed(0x45d)],'pivotConfig':_0x40852b}),!0x0;}},_0x536085={'id':_0x217abe(0x290),'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x26f)],'handler':(_0x48eb44,_0x2b8bdc)=>{const _0x407a57=_0x217abe;if(!_0x2b8bdc)return!0x1;const _0x124d05=_0x48eb44[_0x407a57(0x191)](_0x5cf8ff[_0x407a57(0x158)]),{unitId:_0x50a028,subUnitId:_0x22b16b,pivotTableId:_0x526c21,tableFieldId:_0xcbd86d}=_0x2b8bdc,_0x550f93=[],_0x90f93e=[],_0x1073e1=_0x48eb44[_0x407a57(0x191)](_0x28dbf0[_0x407a57(0x390)]),_0x21df04=_0x1073e1[_0x407a57(0x371)](_0x50a028,_0x526c21),_0xc4893a=_0x1073e1[_0x407a57(0x19a)](_0x50a028,_0x22b16b,_0x526c21);if(!(_0xc4893a!=null&&_0xc4893a[_0x407a57(0x24f)][_0x407a57(0x15e)]))return!0x1;const _0x53f6e6=Object[_0x407a57(0x258)](_0xc4893a[_0x407a57(0x24f)][_0x407a57(0x15e)])[_0x407a57(0x3a6)](_0x288f61=>_0x288f61['id']===_0xcbd86d);if(!_0x53f6e6)return!0x1;const _0x3b56be=_0x53f6e6['dataFieldId'];if(!(_0x21df04!=null&&_0x21df04[_0x407a57(0x357)]))return!0x1;const _0x22bfa0=Object[_0x407a57(0x258)](_0x21df04==null?void 0x0:_0x21df04[_0x407a57(0x357)])[_0x407a57(0x3a6)](_0x2ddd63=>_0x2ddd63['id']===_0x3b56be);if(!_0x22bfa0)return!0x1;_0x2444f4['isDateGroupFieldJSON'](_0x22bfa0)&&_0x550f93[_0x407a57(0x3d3)]({'id':_0x4cad42['id'],'params':{..._0x2b8bdc,'dateType':_0x22bfa0[_0x407a57(0x410)]}}),_0x90f93e[_0x407a57(0x3d3)]({'id':_0x4cad42['id'],'params':{..._0x2b8bdc}});const _0x57ffb7=_0x48eb44[_0x407a57(0x191)](_0x5cf8ff[_0x407a57(0x20e)]);return _0x5cf8ff[_0x407a57(0x33f)](_0x90f93e,_0x57ffb7)&&_0x124d05[_0x407a57(0x30d)]({'unitID':_0x50a028,'undoMutations':_0x550f93,'redoMutations':_0x90f93e}),!0x0;}},_0x417def={'type':_0x5cf8ff['CommandType']['COMMAND'],'id':_0x217abe(0x315),async 'handler'(_0x44ab79,_0x58f2b3){const _0x5e4e51=_0x217abe;if(!_0x58f2b3)return!0x1;const _0x2305db=_0x44ab79[_0x5e4e51(0x191)](_0x5cf8ff[_0x5e4e51(0x20e)]),_0x4fb156=_0x44ab79[_0x5e4e51(0x191)](_0x5cf8ff[_0x5e4e51(0x158)]),_0x368589=_0x44ab79['get'](_0x28dbf0[_0x5e4e51(0x1c9)]),{displayName:_0x2e029e,subtotalType:_0x3cd152,format:_0x3d84d0,tableFieldId:_0x45a27a,pivotTableId:_0x46aa9b,unitId:_0x56f403,subUnitId:_0x511e58}=_0x58f2b3,_0x34087b=(await _0x368589['getPivotDisplayConfig']({'unitId':_0x56f403,'subUnitId':_0x511e58,'pivotTableId':_0x46aa9b,'params':{'type':_0x5b1b05[_0x5e4e51(0x399)],'setPivotSetting':{'tableFieldId':_0x45a27a,'displayName':_0x2e029e,'subtotalType':_0x3cd152,'format':_0x3d84d0}}}))[_0x5e4e51(0x401)][_0x5e4e51(0x242)];if(!_0x34087b)return!0x1;const {changesets:_0x52981f,view:_0x17697b,pivotTableConfig:_0x52727a,isEmpty:_0x24c9a7}=_0x34087b,_0x53b73b=_0x52727a[_0x5e4e51(0x25b)],_0x54bb43=new _0x2444f4[(_0x5e4e51(0x2d2))]();_0x54bb43[_0x5e4e51(0x3e9)](_0x17697b);const _0x4aea98={'cellInfo':_0x53b73b,'view':_0x54bb43,'isEmpty':_0x24c9a7};if(!await _0x44ab79['get'](_0x28dbf0['SheetsPivotTableService'])[_0x5e4e51(0x342)][_0x5e4e51(0x1d1)](_0x42699f)(!0x0,_0x4aea98))return!0x1;const _0x32801a=_0x39b7a0(_0x44ab79,_0x54bb43,_0x53b73b,_0x24c9a7),_0x530b64=_0x453490(_0x44ab79,_0x4aea98),{undos:_0x528f88,redos:_0x14066c}=_0x45171b(_0x2305db,{'pivotTableId':_0x46aa9b,'unitId':_0x56f403,'subUnitId':_0x511e58},_0x52981f);return _0x5cf8ff[_0x5e4e51(0x33f)]([..._0x32801a[_0x5e4e51(0x3ea)],..._0x530b64['redos'],..._0x14066c],_0x2305db),_0x4fb156['pushUndoRedo']({'unitID':_0x56f403,'redoMutations':[..._0x32801a[_0x5e4e51(0x3ea)],..._0x530b64['redos'],..._0x14066c],'undoMutations':[..._0x32801a[_0x5e4e51(0x3c3)],..._0x530b64[_0x5e4e51(0x3c3)],..._0x528f88]}),!0x0;}},_0x4763a0={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x240)],'id':_0x217abe(0x28a),'handler'(_0x5e3cd6,_0x4d6488){const _0x1545a6=_0x217abe;if(!_0x4d6488)return!0x1;if(!!_0x5e3cd6[_0x1545a6(0x191)](_0x5cf8ff[_0x1545a6(0x1b0)])[_0x1545a6(0x2ec)](_0x243383))return!0x0;const _0x58e68d=_0x5e3cd6[_0x1545a6(0x191)](_0x28dbf0[_0x1545a6(0x3f2)]),{pivotTableId:_0x3a2297,deleteIds:_0xd0b08c,collectionJSON:_0x1a6a90,dataRangeInfo:_0x57cd14,unitId:_0x58d006,subUnitId:_0x520514}=_0x4d6488,_0x14ab7d=_0x58e68d[_0x1545a6(0x45b)](_0x3a2297),_0x5e4596=_0x58e68d[_0x1545a6(0x19a)](_0x58d006,_0x520514,_0x3a2297);if(!_0x14ab7d||!_0x5e4596)return!0x1;const {collection:_0x49e000,updateDataFieldList:_0x418a29}=_0x58e68d[_0x1545a6(0x44c)](_0x3a2297,_0x1a6a90,_0x57cd14,_0x5e4596[_0x1545a6(0x25b)]);_0x58e68d['refreshData'](_0x49e000,_0x418a29,_0x57cd14),_0x14ab7d[_0x1545a6(0x1c5)](_0x49e000);for(const _0x2d4fd4 of _0xd0b08c)_0x58e68d[_0x1545a6(0x17c)](_0x57cd14[_0x1545a6(0x26d)],_0x2d4fd4);const _0x565fa9=_0x58e68d[_0x1545a6(0x19a)](_0x58d006,_0x520514,_0x3a2297);return _0x565fa9[_0x1545a6(0x434)]=JSON[_0x1545a6(0x1a9)](JSON[_0x1545a6(0x210)](_0x57cd14)),_0x58e68d[_0x1545a6(0x235)]({'unitId':_0x58d006,'subUnitId':_0x520514,'token':_0x3a2297,'type':_0x5da69e[_0x1545a6(0x45d)]}),!0x0;}},_0x550533={'type':_0x5cf8ff['CommandType'][_0x217abe(0x26f)],'id':_0x217abe(0x3cb),async 'handler'(_0x5d53c1,_0x36809b){const _0x5d34a4=_0x217abe,_0x3a764f=_0x5d53c1[_0x5d34a4(0x191)](_0x5cf8ff[_0x5d34a4(0x20e)]),_0x3a034e=_0x5d53c1[_0x5d34a4(0x191)](_0x28dbf0[_0x5d34a4(0x1c9)]),_0xdd7578=_0x5d53c1['get'](_0x5cf8ff[_0x5d34a4(0x158)]);if(!_0x36809b)return!0x1;const {token:_0x24f362,dataRangeInfo:_0xccc944,unitId:_0x240808,subUnitId:_0x50f648}=_0x36809b,_0x5edcaa=[],_0x2b6b2d=[],_0x4d729f=(await _0x3a034e[_0x5d34a4(0x338)]({'unitId':_0x240808,'subUnitId':_0x50f648,'pivotTableId':_0x24f362,'params':{'type':_0x5b1b05[_0x5d34a4(0x3fb)],'updatePivotSource':{'dataRangeInfo':_0xccc944,'unitId':_0x240808,'subUnitId':_0x50f648}}}))[_0x5d34a4(0x401)][_0x5d34a4(0x39a)];if(!_0x4d729f)return!0x1;const {changesets:_0x1b79ac,deleteIds:_0x473c73,collectionConfig:_0x322bff,oldCollectionConfig:_0x3b85f6,view:_0x53e3ca,isEmpty:_0x32ad26,pivotTableConfig:_0xce7f6d}=_0x4d729f;_0x2b6b2d[_0x5d34a4(0x3d3)]({'id':_0x4763a0['id'],'params':{'pivotTableId':_0x24f362,'deleteIds':_0x473c73,'collectionJSON':_0x322bff,'dataRangeInfo':_0xccc944,'unitId':_0x240808,'subUnitId':_0x50f648}}),_0x5edcaa['unshift']({'id':_0x4763a0['id'],'params':{'pivotTableId':_0x24f362,'deleteIds':[],'collectionJSON':_0x3b85f6,'dataRangeInfo':_0xce7f6d[_0x5d34a4(0x434)],'unitId':_0x240808,'subUnitId':_0x50f648}});const _0x15a4b1=_0xce7f6d[_0x5d34a4(0x25b)],_0x305466=new _0x2444f4['PivotView']();_0x305466[_0x5d34a4(0x3e9)](_0x53e3ca);const _0x398c13={'cellInfo':_0x15a4b1,'view':_0x305466,'isEmpty':_0x32ad26};if(!await _0x5d53c1[_0x5d34a4(0x191)](_0x28dbf0[_0x5d34a4(0x368)])[_0x5d34a4(0x342)][_0x5d34a4(0x1d1)](_0x42699f)(!0x0,_0x398c13))return!0x1;const _0x286a30=_0x39b7a0(_0x5d53c1,_0x305466,_0x15a4b1,_0x32ad26),_0x2a7141=_0x453490(_0x5d53c1,_0x398c13),{undos:_0x4199f2,redos:_0x49948c}=_0x45171b(_0x3a764f,{'pivotTableId':_0x24f362,'unitId':_0x240808,'subUnitId':_0x50f648},_0x1b79ac);return _0x5cf8ff[_0x5d34a4(0x33f)]([..._0x286a30[_0x5d34a4(0x3ea)],..._0x2a7141[_0x5d34a4(0x3ea)],..._0x2b6b2d,..._0x4199f2],_0x3a764f),_0xdd7578['pushUndoRedo']({'unitID':_0x240808,'redoMutations':[..._0x286a30[_0x5d34a4(0x3ea)],..._0x2a7141[_0x5d34a4(0x3ea)],..._0x2b6b2d,..._0x4199f2],'undoMutations':[..._0x286a30[_0x5d34a4(0x3c3)],..._0x2a7141[_0x5d34a4(0x3c3)],..._0x5edcaa,..._0x49948c]}),!0x0;}},_0x5564c0={'type':_0x5cf8ff[_0x217abe(0x3ee)][_0x217abe(0x26f)],'id':'sheet.command.update-pivot-value-position',async 'handler'(_0x15c9c2,_0x182bdf){const _0x5a670f=_0x217abe;if(!_0x182bdf)return!0x1;const _0x8cd0be=_0x15c9c2[_0x5a670f(0x191)](_0x5cf8ff[_0x5a670f(0x20e)]),_0x1e74ab=_0x15c9c2['get'](_0x28dbf0[_0x5a670f(0x1c9)]),_0x486365=_0x15c9c2[_0x5a670f(0x191)](_0x5cf8ff[_0x5a670f(0x198)]),_0x27f225=_0x15c9c2['get'](_0x5cf8ff[_0x5a670f(0x158)]),{pivotTableId:_0x34a7d5,position:_0x47b6c9,index:_0x2a49dc}=_0x182bdf,_0x4eab00=_0x3d008a[_0x5a670f(0x1cb)](_0x486365);if(!_0x4eab00)return!0x1;const {unitId:_0x25485f,subUnitId:_0x4df058}=_0x4eab00,_0x4aa727=(await _0x1e74ab[_0x5a670f(0x338)]({'unitId':_0x25485f,'subUnitId':_0x4df058,'pivotTableId':_0x34a7d5,'params':{'type':_0x5b1b05[_0x5a670f(0x1b5)],'updateValuePosition':{'position':_0x47b6c9,'index':_0x2a49dc}}}))[_0x5a670f(0x401)][_0x5a670f(0x2ef)];if(!_0x4aa727)return!0x1;const {changesets:_0x17df17,view:_0x595365,isEmpty:_0x2fb120,pivotTableConfig:_0x4245e6}=_0x4aa727,_0xeb35d8=_0x4245e6[_0x5a670f(0x25b)],_0x11718c=new _0x2444f4[(_0x5a670f(0x2d2))]();_0x11718c[_0x5a670f(0x3e9)](_0x595365);const _0x3a3673=_0x15c9c2[_0x5a670f(0x191)](_0x28dbf0[_0x5a670f(0x368)]),_0x48c9d2={'cellInfo':_0xeb35d8,'view':_0x11718c,'isEmpty':_0x2fb120};if(!await _0x3a3673[_0x5a670f(0x342)]['fetchThroughAsyncInterceptors'](_0x42699f)(!0x0,_0x48c9d2))return!0x1;const _0x466c52=_0x39b7a0(_0x15c9c2,_0x11718c,_0xeb35d8,_0x2fb120),_0x209b43=_0x453490(_0x15c9c2,_0x48c9d2),{undos:_0x42a562,redos:_0x547d44}=_0x45171b(_0x8cd0be,{'pivotTableId':_0x34a7d5,'unitId':_0x25485f,'subUnitId':_0x4df058},_0x17df17);return _0x5cf8ff['sequenceExecute']([..._0x466c52[_0x5a670f(0x3ea)],..._0x209b43[_0x5a670f(0x3ea)],..._0x547d44],_0x8cd0be),_0x27f225[_0x5a670f(0x30d)]({'unitID':_0x25485f,'redoMutations':[..._0x466c52[_0x5a670f(0x3ea)],..._0x209b43[_0x5a670f(0x3ea)],..._0x547d44],'undoMutations':[..._0x466c52[_0x5a670f(0x3c3)],..._0x209b43[_0x5a670f(0x3c3)],..._0x42a562]}),!0x0;}},_0x2fc9ea={'type':_0x5cf8ff[_0x217abe(0x3ee)]['MUTATION'],'id':_0x217abe(0x458),'handler'(){return!0x0;}};var _0x12a387=Object[_0x217abe(0x17a)],_0x4ddbe5=(_0x597cfe,_0x33808d,_0x5ef83e,_0x303570)=>{const _0x43c1a5=_0x217abe;for(var _0x44eaa3=_0x303570>0x1?void 0x0:_0x303570?_0x12a387(_0x33808d,_0x5ef83e):_0x33808d,_0x3efe59=_0x597cfe[_0x43c1a5(0x31a)]-0x1,_0x5112c1;_0x3efe59>=0x0;_0x3efe59--)(_0x5112c1=_0x597cfe[_0x3efe59])&&(_0x44eaa3=_0x5112c1(_0x44eaa3)||_0x44eaa3);return _0x44eaa3;},_0x1cafcc=(_0xeed40b,_0xf512f5)=>(_0x23382d,_0x27acbf)=>_0xf512f5(_0x23382d,_0x27acbf,_0xeed40b);const _0x13c210=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x4811e8=(_0x3efa64,_0x5bd3cf,_0x444710)=>{const _0x4839b0=_0x217abe,_0x2a0f28=_0x3efa64[_0x4839b0(0x41d)];_0x3efa64[_0x4839b0(0x3b6)](_0xcc9348=>{const _0x352a52=_0x4839b0,_0x3e3c4b=_0xcc9348['getId'](),_0x3042e6=_0xcc9348['getDataFieldId'](),_0x4eb046=_0xcc9348[_0x352a52(0x209)](),_0x1a01a2=_0xcc9348[_0x352a52(0x405)]();_0x5bd3cf[_0x3042e6]&&_0x5bd3cf[_0x3042e6]===_0x1a01a2&&_0x4eb046===_0x1a01a2&&(_0x3efa64[_0x352a52(0x1db)](_0x3e3c4b,_0x2a0f28[_0x352a52(0x405)](_0x3042e6)),_0xcc9348[_0x352a52(0x282)](_0x2a0f28['getDisplayName'](_0x3042e6)));}),_0x3efa64[_0x4839b0(0x25f)](_0x2444f4[_0x4839b0(0x270)][_0x4839b0(0x1e4)],_0x5c6fee=>{const _0x5998ac=_0x4839b0,_0x5c313c=_0x5c6fee[_0x5998ac(0x30c)](),_0x519dc9=_0x5c6fee[_0x5998ac(0x2ae)](),_0x340a65=_0x5c6fee[_0x5998ac(0x209)](),_0x4e116b=_0x5c6fee[_0x5998ac(0x405)](),_0x24e714=_0x5c6fee[_0x5998ac(0x43e)](),_0x59f640=_0x444710(_0x340a65,_0x24e714);_0x5bd3cf[_0x519dc9]&&_0x5bd3cf[_0x519dc9]===_0x340a65&&_0x59f640===_0x4e116b&&(_0x3efa64['renameField'](_0x5c313c,_0x444710(_0x2a0f28['getDisplayName'](_0x519dc9),_0x24e714)),_0x5c6fee[_0x5998ac(0x282)](_0x2a0f28[_0x5998ac(0x405)](_0x519dc9)));});},_0x1ed8b2=(_0x51db09,_0x333e8a,_0x5d59d2)=>{const _0x3d7828=_0x217abe;var _0x12a377,_0x4640ad;const {arrayFormulaCellData:_0x310b18,unitData:_0x333244}=_0x333e8a,{unitId:_0x50bf39,subUnitId:_0x8a62df}=_0x5d59d2,_0x318e01=_0x5d59d2['range'],{startColumn:_0x17ac0b,endColumn:_0x270c23}=_0x318e01,_0x5b52a8=(_0x12a377=_0x310b18==null?void 0x0:_0x310b18[_0x50bf39])==null?void 0x0:_0x12a377[_0x8a62df],_0x43e057=(_0x4640ad=_0x333244==null?void 0x0:_0x333244[_0x50bf39])==null?void 0x0:_0x4640ad[_0x8a62df],_0x53a10e=new Set(),_0x572907=_0x270c23-_0x17ac0b+0x1,{dirtyRanges:_0x3d03c6}=_0x51db09;if(_0x3d03c6)for(const {range:_0x28eea1,sheetId:_0x299df7,unitId:_0x50cf42}of _0x3d03c6){if(_0x299df7!==_0x8a62df||_0x50bf39!==_0x50cf42)continue;const _0xd5c24b=_0x5cf8ff['Rectangle'][_0x3d7828(0x45f)](_0x28eea1,_0x318e01);if(_0xd5c24b){const {startColumn:_0x256f0e,endColumn:_0xfb94a7}=_0xd5c24b;for(let _0x15fd4c=_0x256f0e;_0x15fd4c<=_0xfb94a7;_0x15fd4c++)_0x53a10e['add'](_0x15fd4c);}}if(_0x53a10e[_0x3d7828(0x1da)]===_0x572907||_0x53a10e[_0x3d7828(0x1da)]===_0x572907)return Array[_0x3d7828(0x440)](_0x53a10e);if(_0x43e057){const _0xc0507=_0x43e057[_0x3d7828(0x2a0)](),_0x516544=Object[_0x3d7828(0x16c)](_0xc0507);for(const _0x21cbe1 of _0x516544){const _0xa27b66=Number(_0x21cbe1),_0x227da8=_0xc0507[_0xa27b66];if(_0x53a10e[_0x3d7828(0x1da)]===_0x572907)break;for(const _0x4a3c45 in _0x227da8){const _0x3a49fc=Number(_0x4a3c45);_0x3a49fc<_0x17ac0b||_0x3a49fc>_0x270c23||_0x53a10e[_0x3d7828(0x219)](_0x3a49fc);}}}if(_0x5b52a8){const _0x1d25fa=_0x5b52a8[_0x3d7828(0x2a0)](),_0x4b3fa2=Object[_0x3d7828(0x16c)](_0x1d25fa);for(const _0x394682 of _0x4b3fa2){const _0x27fb2a=Number(_0x394682),_0x8c4210=_0x1d25fa[_0x27fb2a];if(_0x53a10e['size']===_0x572907)break;for(const _0x21fc96 in _0x8c4210){const _0x30c9c0=Number(_0x21fc96);_0x30c9c0<_0x17ac0b||_0x30c9c0>_0x270c23||_0x53a10e[_0x3d7828(0x219)](_0x30c9c0);}}}return Array[_0x3d7828(0x440)](_0x53a10e);},_0x1aeae4=_0x223c8d=>{const _0x38c891=_0x217abe,_0x22b2db=new Set(),_0x1379e3=[];for(const _0x559481 of _0x223c8d){const _0x58c0f7=_0x559481[_0x38c891(0x1f3)]+','+_0x559481[_0x38c891(0x46c)]+','+_0x559481['startColumn']+','+_0x559481[_0x38c891(0x3ab)];_0x22b2db[_0x38c891(0x2fb)](_0x58c0f7)||(_0x22b2db[_0x38c891(0x219)](_0x58c0f7),_0x1379e3[_0x38c891(0x3d3)](_0x559481));}return _0x1379e3;};let _0x1903dc=class extends _0x5cf8ff['Disposable']{constructor(_0x3a9f35,_0x528444,_0x23f0cc,_0x5cc380,_0x281432){const _0x3ee5b8=_0x217abe;super(),_0x4cbd74(this,_0x3ee5b8(0x226),new _0x12702c['BehaviorSubject'](!0x0)),_0x4cbd74(this,_0x3ee5b8(0x2c4),_0x418933=>{const _0x4d2ccf=_0x3ee5b8;this['_globalSubject'][_0x4d2ccf(0x377)](!0x1);}),_0x4cbd74(this,_0x3ee5b8(0x2e4),_0x4b3825=>{const _0x5039bd=_0x3ee5b8;this[_0x5039bd(0x226)]['next'](!0x0);}),(this[_0x3ee5b8(0x27c)]=_0x3a9f35,this[_0x3ee5b8(0x3a2)]=_0x528444,this[_0x3ee5b8(0x36f)]=_0x23f0cc,this[_0x3ee5b8(0x184)]=_0x5cc380,this[_0x3ee5b8(0x43c)]=_0x281432,this[_0x3ee5b8(0x37a)](),this['_initPivotDataGetListener']());}[_0x217abe(0x37a)](){const _0x14be06=_0x217abe;this[_0x14be06(0x2b5)](),this[_0x14be06(0x459)](),this[_0x14be06(0x324)](),this['_subjectFieldsCollectionChange']();}[_0x217abe(0x275)](){const _0x23fe88=_0x217abe;this[_0x23fe88(0x184)][_0x23fe88(0x427)](this[_0x23fe88(0x226)]),_0x2444f4[_0x23fe88(0x2cc)][_0x23fe88(0x2ac)](_0x2444f4[_0x23fe88(0x17f)][_0x23fe88(0x3cd)],this[_0x23fe88(0x2c4)]),_0x2444f4[_0x23fe88(0x2cc)][_0x23fe88(0x2ac)](_0x2444f4['PivotCallbackEnum'][_0x23fe88(0x446)],this[_0x23fe88(0x2e4)]);}[_0x217abe(0x403)](){const _0x3fc27f=_0x217abe;this[_0x3fc27f(0x3e2)](this[_0x3fc27f(0x36f)][_0x3fc27f(0x259)](_0x55793e=>{const _0x2a439a=_0x3fc27f;_0x55793e['id']===_0x3d008a[_0x2a439a(0x3df)]['id']&&this[_0x2a439a(0x27c)][_0x2a439a(0x432)](_0x55793e[_0x2a439a(0x1b8)]);})),this[_0x3fc27f(0x3e2)](this[_0x3fc27f(0x36f)][_0x3fc27f(0x259)](_0x47b9c9=>{const _0x3ec03b=_0x3fc27f;if(_0x47b9c9['id']!==_0x4d48bb['id'])return;const _0x15e3c9=_0x47b9c9[_0x3ec03b(0x1b8)],{unitId:_0x359852,subUnitId:_0x380a33,pivotTableId:_0x138af4}=_0x15e3c9,_0x2394cd=_0x15e3c9[_0x3ec03b(0x1b8)][_0x3ec03b(0x2a1)],_0xda0283={};switch(_0x2394cd){case _0x5b1b05[_0x3ec03b(0x419)]:{const _0x43f5bd=_0x15e3c9[_0x3ec03b(0x1b8)][_0x3ec03b(0x372)];if(!_0x43f5bd)return;const {row:_0x307717,col:_0x4adeca,cellData:_0x34a51b,pivotItemRenderInfoCache:_0x45e8a6,tableFieldId:_0x5cb50c}=_0x43f5bd,_0x489729=this[_0x3ec03b(0x27c)][_0x3ec03b(0x45b)](_0x15e3c9[_0x3ec03b(0x40d)]);if(!_0x489729||!_0x45e8a6)return;if(_0x5cb50c){const _0x43bc0b=_0x489729[_0x3ec03b(0x256)](_0x5cb50c);if(!_0x43bc0b)return;_0xda0283['filter']={..._0x489729['getDataFieldItemInfo'](_0x43bc0b),'tableFieldId':_0x5cb50c,'pivotTableId':_0x15e3c9[_0x3ec03b(0x40d)],'filterInfo':_0x489729[_0x3ec03b(0x214)](_0x5cb50c),'sortInfo':_0x489729[_0x3ec03b(0x2a4)](_0x5cb50c),'format':_0x489729['getFieldFormat'](_0x5cb50c)};}else{const _0x565e17=_0x42016b(_0x307717,_0x4adeca,_0x34a51b,_0x489729,_0x45e8a6),_0x110f18=_0x565e17==null?void 0x0:_0x565e17[_0x3ec03b(0x271)];if(!_0x110f18)return;const _0x3c4392=_0x489729[_0x3ec03b(0x256)](_0x110f18);if(!_0x3c4392)return;_0xda0283['filter']={..._0x489729[_0x3ec03b(0x246)](_0x3c4392),'tableFieldId':_0x110f18,'pivotTableId':_0x15e3c9[_0x3ec03b(0x40d)],'filterInfo':_0x489729[_0x3ec03b(0x214)](_0x110f18),'sortInfo':_0x489729[_0x3ec03b(0x2a4)](_0x110f18),'format':_0x489729['getFieldFormat'](_0x110f18)};}}break;case _0x5b1b05[_0x3ec03b(0x1f0)]:{const _0x7f6c62=_0x15e3c9['params'][_0x3ec03b(0x3ed)];if(!_0x7f6c62)return;const {pivotTableId:_0x57c31}=_0x7f6c62,_0x41624c=this['_sheetsPivotDataSourceModel'][_0x3ec03b(0x45b)](_0x57c31);if(!_0x41624c)return;const _0x25d239=this[_0x3ec03b(0x27c)][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x57c31),_0x7be2e7=_0xa37ac2(_0x41624c,_0x57c31,_0x25d239);_0xda0283[_0x3ec03b(0x3ed)]=_0x7be2e7;}break;case _0x5b1b05['AddPivotField']:{const _0x9bc29a=this[_0x3ec03b(0x27c)][_0x3ec03b(0x45b)](_0x138af4),_0x255b95=this[_0x3ec03b(0x27c)][_0x3ec03b(0x33e)](_0x359852),_0x39f7ff=_0x255b95[_0x3ec03b(0x371)](_0x138af4);let _0x1fcbc7=null;const _0x573b67=this['_sheetsPivotDataSourceModel'][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x138af4),_0x2b6065=_0x15e3c9[_0x3ec03b(0x1b8)][_0x3ec03b(0x234)];if(!_0x9bc29a||!_0x573b67||!_0x2b6065)return!0x1;const {dataFieldId:_0x291b25,fieldArea:_0x26dac1,index:_0x254341}=_0x2b6065;_0x9bc29a['startCollectChangeset']();const _0x2d849=_0x9bc29a[_0x3ec03b(0x2a6)](_0x291b25,_0x26dac1,_0x254341);if(_0x2d849&&_0x26dac1===_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x1e4)]){const _0x2588bf=_0x2d849[_0x3ec03b(0x30c)](),_0x11352c=_0x9bc29a[_0x3ec03b(0x256)](_0x2588bf);if(_0x11352c){const _0x3d14bb=_0x11352c==null?void 0x0:_0x11352c[_0x3ec03b(0x3b7)]();_0x9bc29a[_0x3ec03b(0x370)](_0x2d849[_0x3ec03b(0x30c)](),_0x3d14bb===_0x2444f4[_0x3ec03b(0x46f)][_0x3ec03b(0x207)]?_0x2444f4[_0x3ec03b(0x34b)][_0x3ec03b(0x3aa)]:_0x2444f4[_0x3ec03b(0x34b)][_0x3ec03b(0x200)]);}const _0x3f5833=_0x9bc29a[_0x3ec03b(0x40f)](),_0x458506=_0x9bc29a[_0x3ec03b(0x38d)](),_0x178128=_0x9bc29a['getFieldCountByArea'](_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x1e4)]);if(_0x3f5833===-0x1&&_0x178128>0x1){const _0x299508=_0x458506===_0x2444f4[_0x3ec03b(0x2df)][_0x3ec03b(0x232)]?_0x2444f4[_0x3ec03b(0x2df)][_0x3ec03b(0x2e2)]:_0x458506,_0x551500=_0x299508===_0x2444f4[_0x3ec03b(0x2df)][_0x3ec03b(0x413)]?_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x413)]:_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x2e2)];_0x9bc29a[_0x3ec03b(0x2ef)](_0x299508,_0x9bc29a[_0x3ec03b(0x21d)](_0x551500));}}else{if(_0x2d849&&(_0x26dac1===_0x2444f4['PivotTableFiledAreaEnum'][_0x3ec03b(0x413)]||_0x26dac1===_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x2e2)])){const _0x318df2=_0x2d849['getId'](),_0x4391fe=_0x9bc29a[_0x3ec03b(0x256)](_0x318df2);if(_0x4391fe&&(_0x4391fe==null?void 0x0:_0x4391fe['getFieldDataType']())===_0x2444f4[_0x3ec03b(0x46f)][_0x3ec03b(0x45c)]){const _0x4cc87a=_0x4391fe[_0x3ec03b(0x3c2)]();if(_0x4cc87a&&_0x9bc29a[_0x3ec03b(0x3e8)](_0x2d849[_0x3ec03b(0x30c)](),_0x4cc87a),!_0x39f7ff['getFieldIds']()[_0x3ec03b(0x3ad)](_0x276de4=>{const _0x3bae09=_0x3ec03b,_0x2fc6da=_0x39f7ff[_0x3bae09(0x426)](_0x276de4);return _0x2444f4[_0x3bae09(0x2b4)](_0x2fc6da)?_0x2fc6da[_0x3bae09(0x15f)]()[_0x3bae09(0x3f1)]===_0x291b25:!0x1;})){const _0x46b5ec=_0x255b95[_0x3ec03b(0x2cb)](),_0x487062=_0x59d383(_0x4391fe[_0x3ec03b(0x360)],_0x4391fe[_0x3ec03b(0x3b9)]),_0x1adbbe=_0x4391fe['getName']()+_0x3ec03b(0x2b1)+_0xdfdb9a(this[_0x3ec03b(0x43c)],_0x487062),_0x3a569d=new _0x2444f4[(_0x3ec03b(0x389))](_0x46b5ec,_0x1adbbe,_0x2444f4[_0x3ec03b(0x1d2)](0x3),_0x4391fe[_0x3ec03b(0x30c)](),_0x487062);_0x255b95[_0x3ec03b(0x1be)](_0x3a569d),_0x39f7ff[_0x3ec03b(0x29e)](_0x46b5ec,_0x1adbbe),_0x9bc29a[_0x3ec03b(0x2a6)](_0x46b5ec,_0x26dac1,(_0x254341!=null?_0x254341:0x0)+0x1),_0x1fcbc7=_0x3a569d;}}}}const _0x44f026=_0x9bc29a[_0x3ec03b(0x447)](),_0x18aa29=_0x9bc29a[_0x3ec03b(0x33a)]()[_0x3ec03b(0x327)]();let _0x120e61;if(_0x1fcbc7){_0x120e61=_0x1fcbc7[_0x3ec03b(0x327)]();const _0x16e6ca=_0x1fcbc7[_0x3ec03b(0x30c)]();_0x39f7ff[_0x3ec03b(0x230)](_0x16e6ca);let _0x53097a=!0x0;for(const _0x393a95 in _0x255b95[_0x3ec03b(0x2bb)])if(_0x255b95[_0x3ec03b(0x2bb)][_0x393a95][_0x3ec03b(0x3af)]()['includes'](_0x16e6ca)){_0x53097a=!0x1;break;}_0x53097a&&_0x255b95[_0x3ec03b(0x375)](_0x16e6ca);}const _0x58c4b2=_0x9bc29a[_0x3ec03b(0x15b)]();_0xda0283[_0x3ec03b(0x234)]={'view':_0x18aa29,'changesets':_0x58c4b2,'isEmpty':_0x44f026,'pivotTableConfig':_0x573b67,'shouldBeAddedGroupJSON':_0x120e61};}break;case _0x5b1b05[_0x3ec03b(0x202)]:{const _0x757a42=_0x15e3c9[_0x3ec03b(0x1b8)][_0x3ec03b(0x348)];if(!_0x757a42)return;const _0x302dc6=_0x757a42[_0x3ec03b(0x434)],_0x245541=_0x757a42[_0x3ec03b(0x40d)],{collection:_0x23d077}=this[_0x3ec03b(0x27c)][_0x3ec03b(0x189)]({'unitId':_0x302dc6['unitId'],'sheetName':_0x302dc6[_0x3ec03b(0x328)],'subUnitId':_0x302dc6[_0x3ec03b(0x1d0)],'range':_0x302dc6[_0x3ec03b(0x42e)]}),_0x44dbc6=new _0x2444f4[(_0x3ec03b(0x2cc))](_0x23d077,void 0x0,_0x245541),_0x3a25c3=_0x44dbc6[_0x3ec03b(0x33a)](),_0x49946e=_0x44dbc6['toJSON'](),_0x2a9f1f=_0x23d077[_0x3ec03b(0x327)]();_0xda0283['addPivotTable']={'view':_0x3a25c3,'fieldsConfig':_0x49946e,'collectionConfig':_0x2a9f1f,'isEmpty':_0x44dbc6[_0x3ec03b(0x447)]()};}break;case _0x5b1b05[_0x3ec03b(0x21f)]:{const _0x794c98=_0x15e3c9[_0x3ec03b(0x1b8)][_0x3ec03b(0x20d)];if(!_0x794c98)return;const {fieldId:_0x3686cf,area:_0x5ee2cd,index:_0x36d60d}=_0x794c98,_0x4dd245=this[_0x3ec03b(0x27c)][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x138af4);if(!_0x4dd245)return;const _0x46effd=this[_0x3ec03b(0x27c)][_0x3ec03b(0x45b)](_0x138af4);if(!_0x46effd)return;_0x46effd[_0x3ec03b(0x25d)]();const {area:_0xfedcd0,index:_0x1755d5}=_0x46effd[_0x3ec03b(0x33c)](_0x3686cf);if(_0x46effd[_0x3ec03b(0x1ea)](_0x3686cf,_0x5ee2cd,_0x36d60d),_0x5ee2cd===_0x2444f4['PivotTableFiledAreaEnum'][_0x3ec03b(0x1e4)]&&_0x46effd[_0x3ec03b(0x330)](_0x3686cf)[_0x3ec03b(0x43e)]()===void 0x0){const _0x1fb7a7=_0x46effd[_0x3ec03b(0x330)](_0x3686cf);if(_0x1fb7a7&&_0x1fb7a7['getSubtotal']()===void 0x0){const _0x59461b=_0x46effd[_0x3ec03b(0x256)](_0x3686cf);if(_0x59461b){const _0x2dfbfd=_0x59461b==null?void 0x0:_0x59461b[_0x3ec03b(0x3b7)]();_0x46effd['setSubtotalType'](_0x3686cf,_0x2dfbfd===_0x2444f4['PivotDataFieldDataTypeEnum'][_0x3ec03b(0x207)]?_0x2444f4['PivotSubtotalTypeEnum'][_0x3ec03b(0x3aa)]:_0x2444f4['PivotSubtotalTypeEnum'][_0x3ec03b(0x200)]);}}}const _0x477075=_0x46effd['getValuePosition'](),_0x476cbe=_0x46effd[_0x3ec03b(0x40f)](),_0x3b3cf7=_0x46effd[_0x3ec03b(0x21d)](_0x2444f4['PivotTableFiledAreaEnum'][_0x3ec03b(0x1e4)])>0x1;if(_0x3b3cf7&&_0xfedcd0===_0x5ee2cd&&(_0x5ee2cd===_0x2444f4[_0x3ec03b(0x270)]['Row']&&_0x477075===_0x2444f4[_0x3ec03b(0x2df)][_0x3ec03b(0x413)]||_0x5ee2cd===_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x2e2)]&&_0x477075===_0x2444f4[_0x3ec03b(0x2df)][_0x3ec03b(0x2e2)])){let _0x200e7c=_0x476cbe;_0x1755d5<=_0x476cbe&&_0x200e7c--,_0x36d60d<=_0x476cbe&&_0x200e7c++,_0x46effd['updateValuePosition'](_0x477075,_0x200e7c);}else _0x3b3cf7&&(_0xfedcd0===_0x2444f4['PivotTableFiledAreaEnum'][_0x3ec03b(0x413)]&&_0x477075===_0x2444f4['PivotTableValuePositionEnum'][_0x3ec03b(0x413)]||_0xfedcd0===_0x2444f4['PivotTableFiledAreaEnum'][_0x3ec03b(0x2e2)]&&_0x477075===_0x2444f4[_0x3ec03b(0x2df)][_0x3ec03b(0x2e2)])&&_0x476cbe>=_0x1755d5&&_0x46effd[_0x3ec03b(0x2ef)](_0x477075,_0x476cbe-0x1),_0x3b3cf7&&(_0x5ee2cd===_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x413)]&&_0x477075===_0x2444f4[_0x3ec03b(0x2df)]['Row']||_0x5ee2cd===_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x2e2)]&&_0x477075===_0x2444f4['PivotTableValuePositionEnum'][_0x3ec03b(0x2e2)])&&_0x476cbe>=_0x36d60d&&_0x46effd['updateValuePosition'](_0x477075,_0x476cbe+0x1);const _0x1e26a1=_0x46effd['query'](),_0x392f7f=_0x46effd['isEmpty'](),_0x56004e=_0x46effd[_0x3ec03b(0x15b)]();_0xda0283['movePivotField']={'view':_0x1e26a1[_0x3ec03b(0x327)](),'changesets':_0x56004e,'isEmpty':_0x392f7f,'pivotTableConfig':_0x4dd245};}break;case _0x5b1b05[_0x3ec03b(0x32a)]:{const _0x50d7ad=_0x15e3c9[_0x3ec03b(0x1b8)]['removePivotField'];if(!_0x50d7ad)return;const _0x154de9=_0x50d7ad[_0x3ec03b(0x431)],_0x3fee7b=this['_sheetsPivotDataSourceModel'][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x138af4);if(!_0x3fee7b)return!0x1;const _0x24c9ab=this[_0x3ec03b(0x27c)]['getPivotTableInstance'](_0x138af4);if(!_0x24c9ab)return!0x1;_0x24c9ab[_0x3ec03b(0x25d)]();for(const _0x50dab3 of _0x154de9){const {area:_0x3f557a}=_0x24c9ab['getFieldPositionInfoById'](_0x50dab3);_0x3f557a===_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x1e4)]&&_0x24c9ab['removeValueFilterInfoByValueFieldId'](_0x50dab3),(_0x3f557a===_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x413)]||_0x3f557a===_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x2e2)])&&_0x24c9ab[_0x3ec03b(0x206)](_0x50dab3),_0x24c9ab[_0x3ec03b(0x2db)](_0x50dab3);}const _0x38846d=_0x24c9ab['isEmpty'](),_0x2dfd59=_0x24c9ab['query']()['toJSON'](),_0x790ebe=_0x24c9ab[_0x3ec03b(0x15b)]();_0xda0283[_0x3ec03b(0x1e1)]={'changesets':_0x790ebe,'pivotTableConfig':_0x3fee7b,'isEmpty':_0x38846d,'view':_0x2dfd59};}break;case _0x5b1b05[_0x3ec03b(0x1b4)]:{const _0x3c602b=_0x15e3c9[_0x3ec03b(0x1b8)][_0x3ec03b(0x2b3)];if(!_0x3c602b)return;const {tableFieldId:_0x494ad4,items:_0x1d352c,isAll:_0x5241ae}=_0x3c602b,_0x20e008=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x138af4),_0x353a76=this[_0x3ec03b(0x27c)][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x138af4);if(!_0x20e008||!_0x353a76)return;_0x20e008[_0x3ec03b(0x25d)](),_0x20e008[_0x3ec03b(0x289)](_0x494ad4,{'type':_0x2444f4[_0x3ec03b(0x276)][_0x3ec03b(0x277)],'list':_0x1d352c,'isAll':_0x5241ae});const _0x3641ab=_0x20e008[_0x3ec03b(0x447)](),_0x5a6c70=_0x20e008[_0x3ec03b(0x33a)]()['toJSON'](),_0x52344a=_0x20e008[_0x3ec03b(0x15b)]();_0xda0283[_0x3ec03b(0x2b3)]={'view':_0x5a6c70,'changesets':_0x52344a,'isEmpty':_0x3641ab,'pivotTableConfig':_0x353a76};}break;case _0x5b1b05[_0x3ec03b(0x424)]:{const _0xd7d567=_0x15e3c9[_0x3ec03b(0x1b8)]['setValuePivotFilter'];if(!_0xd7d567)return;const {tableFieldId:_0x2f21ff,filterInfo:_0x19bb5c}=_0xd7d567,_0x47038b=this[_0x3ec03b(0x27c)][_0x3ec03b(0x45b)](_0x138af4),_0x535fac=this['_sheetsPivotDataSourceModel'][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x138af4);if(!_0x47038b||!_0x535fac)return;_0x47038b['startCollectChangeset'](),_0x47038b[_0x3ec03b(0x45a)](_0x2f21ff,_0x19bb5c);const _0x375d9f=_0x47038b['isEmpty'](),_0x5bd5b0=_0x47038b[_0x3ec03b(0x33a)]()[_0x3ec03b(0x327)](),_0x39c15f=_0x47038b['endCollectChangeset']();_0xda0283[_0x3ec03b(0x31d)]={'view':_0x5bd5b0,'changesets':_0x39c15f,'isEmpty':_0x375d9f,'pivotTableConfig':_0x535fac};}break;case _0x5b1b05[_0x3ec03b(0x448)]:{const _0x48dae8=_0x15e3c9['params'][_0x3ec03b(0x1cd)];if(!_0x48dae8)return;const {tableFieldId:_0x37a20d,info:_0x9c26ba}=_0x48dae8,_0x2703cf=this['_sheetsPivotDataSourceModel'][_0x3ec03b(0x45b)](_0x138af4),_0x31f406=this[_0x3ec03b(0x27c)][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x138af4);if(!_0x2703cf||!_0x31f406)return;_0x2703cf[_0x3ec03b(0x25d)](),_0x2703cf[_0x3ec03b(0x32e)](_0x37a20d,_0x9c26ba);const _0x15f9d7=_0x2703cf[_0x3ec03b(0x447)](),_0xca8f2d=_0x2703cf[_0x3ec03b(0x33a)]()[_0x3ec03b(0x327)](),_0x430bf3=_0x2703cf[_0x3ec03b(0x15b)]();_0xda0283['setPivotSort']={'view':_0xca8f2d,'changesets':_0x430bf3,'isEmpty':_0x15f9d7,'pivotTableConfig':_0x31f406};}break;case _0x5b1b05[_0x3ec03b(0x399)]:{const _0x481941=_0x15e3c9[_0x3ec03b(0x1b8)]['setPivotSetting'];if(!_0x481941)return;const {tableFieldId:_0x3b43d6,displayName:_0x1f6c47,subtotalType:_0x5b3616,format:_0x3ff312}=_0x481941,_0x5e5cf8=this[_0x3ec03b(0x27c)]['getPivotTableInstance'](_0x138af4),_0x1e826c=this['_sheetsPivotDataSourceModel'][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x138af4);if(!_0x5e5cf8||!_0x1e826c)return;_0x5e5cf8[_0x3ec03b(0x25d)](),_0x1f6c47!==void 0x0&&_0x5e5cf8[_0x3ec03b(0x1db)](_0x3b43d6,_0x1f6c47),_0x5b3616!==void 0x0&&_0x5e5cf8[_0x3ec03b(0x370)](_0x3b43d6,_0x5b3616),_0x3ff312!==void 0x0&&_0x5e5cf8['setFieldFormat'](_0x3b43d6,_0x3ff312);const _0x375534=_0x5e5cf8[_0x3ec03b(0x447)](),_0x19f1dc=_0x5e5cf8[_0x3ec03b(0x33a)]()['toJSON'](),_0x32a2e8=_0x5e5cf8[_0x3ec03b(0x15b)]();_0xda0283[_0x3ec03b(0x242)]={'changesets':_0x32a2e8,'pivotTableConfig':_0x1e826c,'isEmpty':_0x375534,'view':_0x19f1dc};}break;case _0x5b1b05['UpdatePivotSource']:{const _0x30cafd=_0x15e3c9['params'][_0x3ec03b(0x39a)];if(!_0x30cafd)return;const {dataRangeInfo:_0x736563,unitId:_0x563e31,subUnitId:_0x4818b9}=_0x30cafd,_0x1e80b2=this[_0x3ec03b(0x27c)][_0x3ec03b(0x19a)](_0x563e31,_0x4818b9,_0x138af4),_0x113bd7=this['_sheetsPivotDataSourceModel'][_0x3ec03b(0x45b)](_0x138af4);if(!this[_0x3ec03b(0x27c)][_0x3ec03b(0x371)](_0x563e31,_0x138af4)||!_0x113bd7||!_0x1e80b2)return;const _0x2b1090=this[_0x3ec03b(0x27c)]['getUpdateRangeDeleteIds'](_0x563e31,_0x138af4,_0x736563),_0x239082=this[_0x3ec03b(0x27c)][_0x3ec03b(0x371)](_0x563e31,_0x138af4)[_0x3ec03b(0x327)](),{collection:_0x196456}=this[_0x3ec03b(0x27c)]['createCollectionWithDataRange']({'unitId':_0x736563['unitId'],'sheetName':_0x736563['sheetName'],'subUnitId':_0x736563[_0x3ec03b(0x1d0)],'range':_0x736563[_0x3ec03b(0x42e)]}),_0x2bfd29=_0x196456[_0x3ec03b(0x327)]();_0x113bd7[_0x3ec03b(0x25d)]();const _0x5b8c73=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x563e31)[_0x3ec03b(0x177)]()||_0x2444f4[_0x3ec03b(0x1d7)];_0x113bd7['iterateField'](_0x3f44a0=>{const _0x645a7d=_0x3ec03b,_0x453ef0=_0x3f44a0[_0x645a7d(0x2ae)]();if(!_0x196456[_0x645a7d(0x39d)](_0x453ef0)){const _0x2ea6e3=_0x196456[_0x645a7d(0x199)](_0x3f44a0['getSourceName']());if(_0x2ea6e3){_0x113bd7['updateFieldSourceInfo'](_0x3f44a0[_0x645a7d(0x30c)](),_0x2ea6e3[_0x645a7d(0x2e5)](),_0x2ea6e3[_0x645a7d(0x30c)]());const {area:_0x520cd8}=_0x113bd7[_0x645a7d(0x33c)](_0x3f44a0[_0x645a7d(0x30c)]());let _0x9c237c=_0x3f44a0[_0x645a7d(0x209)]();const _0x3f47b5=_0x3f44a0[_0x645a7d(0x405)]();if(_0x520cd8===_0x2444f4[_0x645a7d(0x270)]['Value']){const _0x340c4d=_0x3f44a0[_0x645a7d(0x43e)]();_0x9c237c=_0x5b8c73(_0x2ea6e3['getName'](),_0x340c4d);}_0x3f47b5!==_0x9c237c&&_0x113bd7['renameField'](_0x3f44a0[_0x645a7d(0x30c)](),_0x9c237c);}else _0x113bd7[_0x645a7d(0x2db)](_0x3f44a0['getId']());}});const _0x422f04=_0x113bd7[_0x3ec03b(0x447)](),_0x3c2ee0=_0x113bd7[_0x3ec03b(0x33a)]()[_0x3ec03b(0x327)](),_0x3e4c89=_0x113bd7[_0x3ec03b(0x15b)]();_0xda0283[_0x3ec03b(0x39a)]={'view':_0x3c2ee0,'changesets':_0x3e4c89,'isEmpty':_0x422f04,'pivotTableConfig':_0x1e80b2,'collectionConfig':_0x2bfd29,'oldCollectionConfig':_0x239082,'deleteIds':_0x2b1090};}break;case _0x5b1b05['UpdateValuePosition']:{const _0x4fcaa1=_0x15e3c9[_0x3ec03b(0x1b8)][_0x3ec03b(0x2ef)];if(!_0x4fcaa1)return;const {position:_0x1069db,index:_0x219def}=_0x4fcaa1,_0xe8bfab=this[_0x3ec03b(0x27c)]['getPivotTableConfig'](_0x359852,_0x380a33,_0x138af4);if(!_0xe8bfab)return!0x1;const _0x121234=this[_0x3ec03b(0x27c)][_0x3ec03b(0x45b)](_0x138af4);if(!_0x121234)return!0x1;_0x121234[_0x3ec03b(0x25d)](),_0x121234['updateValuePosition'](_0x1069db,_0x219def);const _0x7efa52=_0x121234[_0x3ec03b(0x447)](),_0xb6d1be=_0x121234[_0x3ec03b(0x33a)]()[_0x3ec03b(0x327)](),_0x4e8f0e=_0x121234[_0x3ec03b(0x15b)]();_0xda0283[_0x3ec03b(0x2ef)]={'changesets':_0x4e8f0e,'pivotTableConfig':_0xe8bfab,'isEmpty':_0x7efa52,'view':_0xb6d1be};}break;case _0x5b1b05[_0x3ec03b(0x2d4)]:{const _0x2728d4=_0x15e3c9[_0x3ec03b(0x1b8)][_0x3ec03b(0x39c)];if(!_0x2728d4)return;const {tableFieldId:_0x39fa01,collapse:_0x35df17,item:_0x5980e2}=_0x2728d4,_0x48932e=this['_sheetsPivotDataSourceModel'][_0x3ec03b(0x45b)](_0x138af4),_0x4502d1=this[_0x3ec03b(0x27c)][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x138af4);if(!_0x48932e||!_0x4502d1)return;_0x48932e['startCollectChangeset'](),_0x48932e['setCollapse'](_0x39fa01,_0x35df17,_0x5980e2);const _0x292e61=_0x48932e['isEmpty'](),_0x5a3686=_0x48932e[_0x3ec03b(0x33a)]()[_0x3ec03b(0x327)](),_0x5d7173=_0x48932e[_0x3ec03b(0x15b)]();_0xda0283[_0x3ec03b(0x39c)]={'view':_0x5a3686,'isEmpty':_0x292e61,'pivotTableConfig':_0x4502d1,'changesets':_0x5d7173};}break;case _0x5b1b05[_0x3ec03b(0x40e)]:{const _0x3fe42d=_0x15e3c9[_0x3ec03b(0x1b8)][_0x3ec03b(0x22f)];if(!_0x3fe42d)return;const {pivotTableConfig:_0x1da069}=_0x3fe42d,_0x72bddb=this[_0x3ec03b(0x27c)][_0x3ec03b(0x45b)](_0x138af4),_0x11f40c=this[_0x3ec03b(0x27c)][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x138af4);if(!_0x72bddb||!_0x11f40c)return;_0x72bddb[_0x3ec03b(0x25d)](),_0x43799f(_0x72bddb,_0x1da069);const _0x6eccfe=_0x72bddb[_0x3ec03b(0x447)](),_0x4d59a8=_0x72bddb[_0x3ec03b(0x33a)]()[_0x3ec03b(0x327)](),_0x4602e9=_0x72bddb[_0x3ec03b(0x15b)]();_0xda0283[_0x3ec03b(0x22f)]={'view':_0x4d59a8,'isEmpty':_0x6eccfe,'pivotTableConfig':{..._0x11f40c,'fieldsConfig':_0x72bddb[_0x3ec03b(0x327)]()},'changesets':_0x4602e9};}break;case _0x5b1b05['ResetPivotTable']:{const _0x238bdf=_0x15e3c9[_0x3ec03b(0x1b8)][_0x3ec03b(0x217)];if(!_0x238bdf)return;const _0x125a3d=this['_sheetsPivotDataSourceModel'][_0x3ec03b(0x45b)](_0x138af4),_0x361722=this[_0x3ec03b(0x27c)][_0x3ec03b(0x19a)](_0x359852,_0x380a33,_0x138af4);if(!_0x125a3d||!_0x361722)return;_0x125a3d[_0x3ec03b(0x25d)](),_0x1b5341(_0x125a3d,_0x238bdf[_0x3ec03b(0x1ee)]);const _0x558375=_0x125a3d[_0x3ec03b(0x33a)]()[_0x3ec03b(0x327)](),_0x514060=_0x125a3d['endCollectChangeset']();_0xda0283[_0x3ec03b(0x217)]={'view':_0x558375,'isEmpty':!0x0,'pivotTableConfig':{..._0x361722,'fieldsConfig':_0x125a3d[_0x3ec03b(0x327)]()},'changesets':_0x514060};}break;case _0x5b1b05['AddPivotTableWithConfig']:{const _0x505bc5=_0x15e3c9[_0x3ec03b(0x1b8)]['addPivotTableWithConfig'];if(!_0x505bc5)return;const _0x5f58f0=_0x505bc5[_0x3ec03b(0x434)],_0x2042e4=_0x505bc5['pivotTableId'],{collection:_0xe3ec7}=this[_0x3ec03b(0x27c)][_0x3ec03b(0x189)]({'unitId':_0x5f58f0[_0x3ec03b(0x26d)],'sheetName':_0x5f58f0[_0x3ec03b(0x328)],'subUnitId':_0x5f58f0['subUnitId'],'range':_0x5f58f0[_0x3ec03b(0x42e)]}),_0xae41b5=new _0x2444f4[(_0x3ec03b(0x2cc))](_0xe3ec7,void 0x0,_0x2042e4),_0x5e0940=_0xe3ec7['getFieldIds'](),{rows:_0x484162,columns:_0x4d6ae7,filters:_0x3e5b31,values:_0x5a3477}=_0x505bc5[_0x3ec03b(0x2ff)];_0xae41b5[_0x3ec03b(0x25d)]();for(const {field:_0x31ccf2,selectedItems:_0x1bc02a}of _0x484162||[]){const _0x3506ef=_0x5e0940[_0x31ccf2];if(_0x3506ef){const _0x2a0361=_0xae41b5[_0x3ec03b(0x2a6)](_0x3506ef,_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x413)]);_0x1bc02a&&_0x2a0361&&_0xae41b5[_0x3ec03b(0x289)](_0x2a0361[_0x3ec03b(0x30c)](),{'type':_0x2444f4[_0x3ec03b(0x276)]['ManualFilter'],'list':_0x1bc02a,'isAll':!0x1});}}for(const {field:_0x387681,selectedItems:_0x2bd9ac}of _0x4d6ae7||[]){const _0x3f682b=_0x5e0940[_0x387681];if(_0x3f682b){const _0x55e958=_0xae41b5[_0x3ec03b(0x2a6)](_0x3f682b,_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x2e2)]);_0x2bd9ac&&_0x55e958&&_0xae41b5[_0x3ec03b(0x289)](_0x55e958[_0x3ec03b(0x30c)](),{'type':_0x2444f4[_0x3ec03b(0x276)]['ManualFilter'],'list':_0x2bd9ac,'isAll':!0x1});}}for(const {field:_0x15ba45,selectedItems:_0x271422}of _0x3e5b31||[]){const _0x2d89c7=_0x5e0940[_0x15ba45];if(_0x2d89c7){const _0x4a94b5=_0xae41b5[_0x3ec03b(0x2a6)](_0x2d89c7,_0x2444f4[_0x3ec03b(0x270)][_0x3ec03b(0x419)]);_0x271422&&_0x4a94b5&&_0xae41b5[_0x3ec03b(0x289)](_0x4a94b5[_0x3ec03b(0x30c)](),{'type':_0x2444f4[_0x3ec03b(0x276)][_0x3ec03b(0x277)],'list':_0x271422,'isAll':!0x1});}}for(const {field:_0x4c4013,subTotalType:_0x49eb7c,formatString:_0x364377}of _0x5a3477||[]){const _0xc78e66=_0xe3ec7[_0x3ec03b(0x426)](_0x5e0940[_0x4c4013]);if(!_0xc78e66)continue;const _0x3a1923=_0x5e0940[_0x4c4013];if(_0x3a1923){const _0x443454=_0xae41b5[_0x3ec03b(0x2a6)](_0x3a1923,_0x2444f4['PivotTableFiledAreaEnum'][_0x3ec03b(0x1e4)]);if(_0x443454){if(_0x49eb7c!==void 0x0){_0xae41b5[_0x3ec03b(0x370)](_0x443454[_0x3ec03b(0x30c)](),_0x49eb7c);const _0x56f60e=this['_sheetsPivotDataSourceModel'][_0x3ec03b(0x33e)](_0x5f58f0['unitId'])[_0x3ec03b(0x177)]()||_0x2444f4[_0x3ec03b(0x1d7)],_0x5a1a78=_0xe3ec7[_0x3ec03b(0x405)](_0x3a1923),_0x44ff18=_0x56f60e(_0x5a1a78,_0x49eb7c);_0xae41b5[_0x3ec03b(0x1db)](_0x443454['getId'](),_0x44ff18);}else{if(_0xc78e66){const _0x22d7ae=_0xc78e66==null?void 0x0:_0xc78e66[_0x3ec03b(0x3b7)]();_0xae41b5[_0x3ec03b(0x370)](_0x443454[_0x3ec03b(0x30c)](),_0x22d7ae===_0x2444f4[_0x3ec03b(0x46f)][_0x3ec03b(0x207)]?_0x2444f4[_0x3ec03b(0x34b)][_0x3ec03b(0x3aa)]:_0x2444f4[_0x3ec03b(0x34b)][_0x3ec03b(0x200)]);}}_0x364377&&_0xae41b5[_0x3ec03b(0x3e8)](_0x443454[_0x3ec03b(0x30c)](),_0x364377);}}}const _0x506b86=_0xae41b5[_0x3ec03b(0x33a)](),_0x1b1d09=_0xae41b5[_0x3ec03b(0x327)](),_0x27772c=_0xae41b5[_0x3ec03b(0x447)](),_0x34574a=_0xae41b5['endCollectChangeset'](),_0x14ad48=_0xe3ec7[_0x3ec03b(0x327)]();_0xda0283[_0x3ec03b(0x358)]={'view':_0x506b86,'fieldsConfig':_0x1b1d09,'collectionConfig':_0x14ad48,'isEmpty':_0x27772c,'changesets':_0x34574a};}break;case _0x5b1b05[_0x3ec03b(0x3d5)]:{const _0x24a7f=_0x3a5a93(this['_injector'],_0x15e3c9);if(!_0x24a7f)return;const {range:_0x5dc9e6,sourceSubUnitId:_0x292cbf,sourceUnitId:_0x41c208,formatMap:_0x3e0851,indexes:_0x19b276}=_0x24a7f;_0xda0283[_0x3ec03b(0x1ef)]={'range':_0x5dc9e6,'sourceSubUnitId':_0x292cbf,'sourceUnitId':_0x41c208,'formatMap':_0x3e0851,'indexes':_0x19b276};}break;}this[_0x3ec03b(0x36f)][_0x3ec03b(0x355)](_0x5d5a76['id'],{'version':_0x15e3c9[_0x3ec03b(0x1f7)],'result':_0xda0283},{'onlyLocal':!0x0});}));}[_0x217abe(0x324)](){const _0x26dc89=_0x217abe;this[_0x26dc89(0x3e2)](this[_0x26dc89(0x36f)][_0x26dc89(0x259)](_0xee6c7b=>{const _0xd43159=_0x26dc89;if(_0xee6c7b['id']!==_0x5d77fb['id'])return;const _0xe9e6ea=_0xee6c7b[_0xd43159(0x1b8)];return this['_sheetsPivotDataSourceModel'][_0xd43159(0x3b0)](_0xe9e6ea[_0xd43159(0x254)]),!0x0;}));}[_0x217abe(0x2b5)](){const _0x14d885=_0x217abe;this[_0x14d885(0x27c)][_0x14d885(0x1bc)][_0x14d885(0x1de)](_0x3b4f1b=>{const _0x44a792=_0x14d885;switch(_0x3b4f1b['type']){case _0x1a94bb[_0x44a792(0x219)]:_0x3b4f1b[_0x44a792(0x295)]&&_0x3b4f1b['targetCellInfo']&&this[_0x44a792(0x43d)](_0x3b4f1b[_0x44a792(0x26e)],_0x3b4f1b[_0x44a792(0x295)],_0x3b4f1b[_0x44a792(0x25b)]);break;case _0x1a94bb[_0x44a792(0x168)]:{const {unitId:_0x4ad56a,subUnitId:_0x26e83d,token:_0x131036}=_0x3b4f1b;_0x4ad56a&&_0x26e83d&&_0x131036&&this['removeSourceRangeChange'](_0x4ad56a,_0x26e83d,_0x131036);}break;case _0x1a94bb[_0x44a792(0x1fd)]:{const {token:_0x5c6532,oldSourceRangeInfo:_0x86dcfe,dataRangeInfo:_0x563fdc,targetCellInfo:_0xaec8cf}=_0x3b4f1b,{unitId:_0x15ca9b,subUnitId:_0x196133}=_0x86dcfe||{};_0x15ca9b&&_0x196133&&_0x5c6532&&this[_0x44a792(0x1ed)](_0x15ca9b,_0x196133,_0x5c6532),_0x563fdc&&_0xaec8cf&&this[_0x44a792(0x43d)](_0x5c6532,_0x563fdc,_0xaec8cf);}break;}});}[_0x217abe(0x283)](){const _0x16e481=_0x217abe;this['_sheetsPivotDataSourceModel'][_0x16e481(0x3e0)][_0x16e481(0x1de)](_0x3f746a=>{const _0x55f18e=_0x16e481;Object[_0x55f18e(0x16c)](_0x3f746a)['forEach'](_0x33ea9a=>{const _0x54d616=_0x55f18e,_0xff106c=this['_sheetsPivotDataSourceModel'][_0x54d616(0x183)](_0x33ea9a);if(_0xff106c){const _0x371057=this[_0x54d616(0x27c)][_0x54d616(0x19a)](_0xff106c==null?void 0x0:_0xff106c[_0x54d616(0x26d)],_0xff106c==null?void 0x0:_0xff106c[_0x54d616(0x1d0)],_0x33ea9a);_0x371057&&(this[_0x54d616(0x43d)](_0x33ea9a,_0x371057[_0x54d616(0x434)],_0x371057[_0x54d616(0x25b)]),this[_0x54d616(0x23d)]([{'unitId':_0xff106c[_0x54d616(0x26d)],'subUnitId':_0xff106c['subUnitId'],'token':_0x33ea9a}]));}});});}[_0x217abe(0x459)](){const _0xf62e41=_0x217abe;this['_sheetsPivotDataSourceModel']['viewData$'][_0xf62e41(0x1de)](_0x47f550=>{const {unitId:_0x513ecf,subUnitId:_0x56078c,pivotTableId:_0x5cb342}=_0x47f550;_0x513ecf&&_0x56078c&&_0x5cb342&&this['triggerDirtyFeature']([{'unitId':_0x513ecf,'subUnitId':_0x56078c,'token':_0x5cb342}]);});}[_0x217abe(0x23d)](_0x48b67e){const _0x395991=_0x217abe,_0x1c6407={};_0x48b67e[_0x395991(0x22c)](_0x5be141=>{var _0x2abf92,_0x5d23b9;const {unitId:_0x5d77b,subUnitId:_0x16df1c,token:_0x13e6d4}=_0x5be141;_0x1c6407[_0x5d77b]=(_0x2abf92=_0x1c6407[_0x5d77b])!=null?_0x2abf92:{},_0x1c6407[_0x5d77b][_0x16df1c]=(_0x5d23b9=_0x1c6407[_0x5d77b][_0x16df1c])!=null?_0x5d23b9:{},_0x1c6407[_0x5d77b][_0x16df1c][_0x13e6d4]=!0x0;}),this[_0x395991(0x36f)][_0x395991(0x355)](_0x2fc9ea['id'],_0x1c6407);}[_0x217abe(0x1ed)](_0x458ed3,_0x302718,_0xbba46){const _0x5322da=_0x217abe;this[_0x5322da(0x3a2)][_0x5322da(0x190)](_0x458ed3,_0x302718,[_0xbba46]);}[_0x217abe(0x43d)](_0x1bf7b0,_0x4eb8e1,_0x300077){const _0x393c2d=_0x217abe,{unitId:_0x4a2068,subUnitId:_0xd75b2f}=_0x4eb8e1;this[_0x393c2d(0x3a2)][_0x393c2d(0x2fb)](_0x300077[_0x393c2d(0x26d)],_0x300077[_0x393c2d(0x1d0)],_0x1bf7b0)&&this[_0x393c2d(0x1ed)](_0x4a2068,_0xd75b2f,_0x1bf7b0);const _0x34a162={'sheetId':_0xd75b2f,..._0x4eb8e1};this[_0x393c2d(0x3a2)][_0x393c2d(0x16e)](_0x300077[_0x393c2d(0x26d)],_0x300077[_0x393c2d(0x1d0)],_0x1bf7b0,{'unitId':_0x300077['unitId'],'subUnitId':_0x300077['subUnitId'],'dependencyRanges':[_0x34a162],'getDirtyData':(_0x356eaf,_0x208f54)=>{const _0x294f09=_0x393c2d,_0x297a4e=this[_0x294f09(0x27c)],_0x1b854d=_0x297a4e[_0x294f09(0x183)](_0x1bf7b0);if(!_0x1b854d)return _0x13c210();const {unitId:_0x2b4b28,subUnitId:_0x490d1c}=_0x1b854d,_0x310889=_0x1ed8b2(_0x356eaf,_0x208f54,_0x4eb8e1);if(_0x310889['length']>0x0){const _0x207533=_0x297a4e[_0x294f09(0x371)](_0x4a2068,_0x1bf7b0),_0x1966d8=_0x207533['getFieldIds'](),_0xe10afe=this['getMatrixFromRunTimeData'](_0x4eb8e1['unitId'],_0x4eb8e1['subUnitId'],_0x208f54),_0xae4d29={},_0x47b04b=this['_sheetsPivotDataSourceModel'][_0x294f09(0x33e)](_0x2b4b28)[_0x294f09(0x177)]()||_0x2444f4[_0x294f09(0x1d7)],_0x7031ed=[];for(const _0x4eba05 of _0x310889){const _0x4e91b8=_0x4eba05-(_0x4eb8e1[_0x294f09(0x42e)]['startColumn']||0x0),_0x335ec0=_0x1966d8[_0x4e91b8];_0x7031ed[_0x294f09(0x3d3)](_0x335ec0),_0xae4d29[_0x335ec0]=_0x207533['getFieldById'](_0x335ec0)[_0x294f09(0x2e5)](),_0x297a4e['getDataFieldManager'](_0x4a2068)[_0x294f09(0x2c6)](_0x335ec0,_0x4eb8e1,_0x4e91b8,_0xe10afe);}_0x207533['getGroupFieldsInfoByIds'](_0x7031ed)['forEach'](_0x321d43=>{const _0x12fcf4=_0x294f09,[_0x37bd80,_0x15eeb0]=_0x321d43,_0x1c6679=_0x207533[_0x12fcf4(0x426)](_0x37bd80),_0x10da7b=_0x207533[_0x12fcf4(0x426)](_0x15eeb0);_0x1c6679&&_0x10da7b&&_0x1c6679[_0x12fcf4(0x472)](_0x10da7b);}),_0x207533[_0x294f09(0x356)]();const _0x36584d=_0x297a4e[_0x294f09(0x45b)](_0x1bf7b0);if(_0x36584d){_0x4811e8(_0x36584d,_0xae4d29,_0x47b04b),_0x36584d['setDirty'](!0x0);const _0x449267=_0x36584d['query'](),_0x23d467=_0x297a4e[_0x294f09(0x19a)](_0x2b4b28,_0x490d1c,_0x1bf7b0),_0x20bd9b=_0x297a4e[_0x294f09(0x33e)](_0x4a2068)[_0x294f09(0x327)]();_0x297a4e[_0x294f09(0x2b6)](_0x2b4b28,_0x490d1c,_0x5da69e['Set'],_0x1bf7b0,_0x449267,_0x23d467,_0x20bd9b,!0x0);}}return this[_0x294f09(0x42c)](_0x2b4b28,_0x490d1c,_0x1bf7b0);}});}[_0x217abe(0x422)](_0x2576e2,_0x160b90,_0x3b2e13){var _0x1a2e86,_0x32a3f5;const {arrayFormulaCellData:_0x3f2bd1,unitData:_0x59d79f}=_0x3b2e13,_0x3dae54=(_0x1a2e86=_0x3f2bd1==null?void 0x0:_0x3f2bd1[_0x2576e2])==null?void 0x0:_0x1a2e86[_0x160b90],_0x31508a=(_0x32a3f5=_0x59d79f==null?void 0x0:_0x59d79f[_0x2576e2])==null?void 0x0:_0x32a3f5[_0x160b90];return{'arrayFormulaCellDataMatrix':_0x3dae54,'unitDataMatrix':_0x31508a};}[_0x217abe(0x42c)](_0x447fe0,_0x355d8f,_0x3a2a74){const _0x19c88a=_0x217abe,_0x51bbcb=this[_0x19c88a(0x27c)]['getViewData'](_0x447fe0,_0x355d8f,_0x3a2a74),_0x254966=[],_0xa33aaf=new _0x5cf8ff['ObjectMatrix']();if(_0x51bbcb){const {rangeCache:_0x4576e6,matrix:_0x33ad9c,oldRangeCache:_0x3aa127,oldMatrix:_0x3a3611}=_0x51bbcb,_0x360f98=_0x54f967(_0x3aa127),_0x41f1ea=_0x54f967(_0x4576e6);_0x254966[_0x19c88a(0x3d3)](..._0x41f1ea,..._0x360f98),_0x3a3611&&_0x3aa127&&_0x360f98['forEach'](_0x20883e=>{const _0x29e892=_0x19c88a;for(let _0x163fed=_0x20883e[_0x29e892(0x1f3)];_0x163fed<=_0x20883e[_0x29e892(0x46c)];_0x163fed++)for(let _0x2eac84=_0x20883e['startColumn'];_0x2eac84<=_0x20883e[_0x29e892(0x3ab)];_0x2eac84++)_0xa33aaf[_0x29e892(0x1df)](_0x163fed,_0x2eac84);}),_0x33ad9c&&_0x41f1ea&&_0x41f1ea[_0x19c88a(0x22c)](_0x294cb7=>{const _0x1c14c6=_0x19c88a;for(let _0x54f944=_0x294cb7[_0x1c14c6(0x1f3)];_0x54f944<=_0x294cb7[_0x1c14c6(0x46c)];_0x54f944++)for(let _0x5e3166=_0x294cb7[_0x1c14c6(0x38b)];_0x5e3166<=_0x294cb7['endColumn'];_0x5e3166++)_0xa33aaf[_0x1c14c6(0x364)](_0x54f944,_0x5e3166,_0x33ad9c[_0x1c14c6(0x2bd)](_0x54f944,_0x5e3166));});}const _0x226833={};return _0x226833[_0x447fe0]={[_0x355d8f]:_0x1aeae4(_0x254966)},{'runtimeCellData':{[_0x447fe0]:{[_0x355d8f]:_0xa33aaf}},'dirtyRanges':_0x226833};}['dispose'](){}};_0x1903dc=_0x4ddbe5([_0x1cafcc(0x0,_0x5cf8ff[_0x217abe(0x306)](_0x28dbf0[_0x217abe(0x3f2)])),_0x1cafcc(0x1,_0x5cf8ff[_0x217abe(0x306)](_0x1683c2[_0x217abe(0x180)])),_0x1cafcc(0x2,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x20e)])),_0x1cafcc(0x3,_0x5cf8ff[_0x217abe(0x306)](_0x1683c2[_0x217abe(0x2b9)])),_0x1cafcc(0x4,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x3e6)]))],_0x1903dc);var _0x1fb3df=Object[_0x217abe(0x17a)],_0x123f42=(_0x2fe87a,_0x2e6316,_0xbaf03a,_0x1407a5)=>{const _0x298bbb=_0x217abe;for(var _0x215e73=_0x1407a5>0x1?void 0x0:_0x1407a5?_0x1fb3df(_0x2e6316,_0xbaf03a):_0x2e6316,_0x5ccd17=_0x2fe87a[_0x298bbb(0x31a)]-0x1,_0x2c9e5f;_0x5ccd17>=0x0;_0x5ccd17--)(_0x2c9e5f=_0x2fe87a[_0x5ccd17])&&(_0x215e73=_0x2c9e5f(_0x215e73)||_0x215e73);return _0x215e73;},_0x2e4488=(_0xaa5005,_0x51a60e)=>(_0x51081d,_0x51185d)=>_0x51a60e(_0x51081d,_0x51185d,_0xaa5005);let _0x57699a=class extends _0x5cf8ff[_0x217abe(0x374)]{constructor(_0x3bff1d,_0x45fc9a,_0x490b05,_0x149816){const _0x20cadc=_0x217abe;super(),_0x4cbd74(this,_0x20cadc(0x208),new _0x5cf8ff[(_0x20cadc(0x2a5))]()),(this[_0x20cadc(0x172)]=_0x3bff1d,this[_0x20cadc(0x292)]=_0x45fc9a,this[_0x20cadc(0x3a4)]=_0x490b05,this[_0x20cadc(0x296)]=_0x149816,this[_0x20cadc(0x1f8)]());}[_0x217abe(0x1f8)](){const _0x1c7303=_0x217abe;this[_0x1c7303(0x3e2)](this[_0x1c7303(0x292)][_0x1c7303(0x329)]({'getMutations':_0x42ce24=>{const _0x233511=_0x1c7303;if(_0x42ce24['id']===_0x3d008a[_0x233511(0x28f)]['id']||_0x42ce24['id']===_0x3d008a['ClearSelectionAllCommand']['id']){const _0x16b064=[],_0x3090a9=[],_0x52862b=this[_0x233511(0x3a4)][_0x233511(0x3d9)]()[_0x233511(0x44b)](_0x269090=>_0x269090[_0x233511(0x42e)]),_0x383555=_0x3d008a['getSheetCommandTarget'](this[_0x233511(0x172)]);if(!_0x383555)return{'redos':[],'undos':[]};const {unitId:_0x2d0ff7,subUnitId:_0x37a99d}=_0x383555,_0x19f8d6={},_0x15dab8=this['_sheetsPivotTableConfigModel'][_0x233511(0x456)](_0x2d0ff7,_0x37a99d);if(_0x15dab8!=null&&_0x15dab8[_0x233511(0x1da)])for(const [_0x4945f8,_0x443c88]of _0x15dab8){const {unitId:_0x3f3c62,subUnitId:_0x5b7757,row:_0x3b253e,col:_0x37caf2}=_0x443c88['targetCellInfo'];_0x3f3c62===_0x383555[_0x233511(0x26d)]&&_0x5b7757===_0x383555[_0x233511(0x1d0)]&&(_0x19f8d6[_0x3b253e+'-'+_0x37caf2]=_0x4945f8);}return _0x52862b&&_0x383555&&_0x52862b['forEach'](_0x3b4103=>{const _0x2b76b3=_0x233511;_0x5cf8ff[_0x2b76b3(0x273)][_0x2b76b3(0x18a)](_0x3b4103,(_0x29b258,_0x188c05)=>{const _0x23c7eb=_0x2b76b3,_0x217466=_0x29b258+'-'+_0x188c05;if(_0x19f8d6[_0x217466]){const _0x44ce8d=_0x19f8d6[_0x217466];_0x16b064[_0x23c7eb(0x3d3)]({'id':_0x5a7c3a['id'],'params':{'unitId':_0x2d0ff7,'subUnitId':_0x37a99d,'pivotTableId':_0x44ce8d}});const _0x5379a0=this[_0x23c7eb(0x296)][_0x23c7eb(0x371)](_0x2d0ff7,_0x44ce8d),_0x1e60f6=this[_0x23c7eb(0x296)]['getPivotTableConfig'](_0x2d0ff7,_0x37a99d,_0x44ce8d);_0x3090a9[_0x23c7eb(0x3d3)]({'id':_0x55ee20['id'],'params':{'unitId':_0x2d0ff7,'subUnitId':_0x37a99d,'pivotTableId':_0x44ce8d,'pivotTableConfig':_0x1e60f6,'collectionConfig':_0x5379a0}});}});}),{'redos':_0x16b064,'undos':_0x3090a9};}return{'redos':[],'undos':[]};}}));}};_0x57699a=_0x123f42([_0x2e4488(0x0,_0x5cf8ff['IUniverInstanceService']),_0x2e4488(0x1,_0x5cf8ff['Inject'](_0x3d008a['SheetInterceptorService'])),_0x2e4488(0x2,_0x5cf8ff[_0x217abe(0x306)](_0x3d008a[_0x217abe(0x1a6)])),_0x2e4488(0x3,_0x5cf8ff[_0x217abe(0x306)](_0x28dbf0[_0x217abe(0x390)]))],_0x57699a);var _0x1d4158=Object[_0x217abe(0x17a)],_0x3f1875=(_0x596985,_0x2de179,_0x105335,_0x4dedfb)=>{const _0x796a2d=_0x217abe;for(var _0x89e63a=_0x4dedfb>0x1?void 0x0:_0x4dedfb?_0x1d4158(_0x2de179,_0x105335):_0x2de179,_0x6299b2=_0x596985[_0x796a2d(0x31a)]-0x1,_0x35ddf4;_0x6299b2>=0x0;_0x6299b2--)(_0x35ddf4=_0x596985[_0x6299b2])&&(_0x89e63a=_0x35ddf4(_0x89e63a)||_0x89e63a);return _0x89e63a;},_0x48f2e3=(_0x1d61bf,_0xb766a8)=>(_0x11f508,_0x5aa613)=>_0xb766a8(_0x11f508,_0x5aa613,_0x1d61bf);let _0x16c7a6=class extends _0x5cf8ff['Disposable']{constructor(_0x2e01f8,_0x51e24f,_0x169b9d,_0x3c3015,_0x162b1b){const _0x3b719f=_0x217abe;super(),this[_0x3b719f(0x292)]=_0x2e01f8,this[_0x3b719f(0x43c)]=_0x51e24f,this[_0x3b719f(0x172)]=_0x169b9d,this[_0x3b719f(0x296)]=_0x3c3015,this['_sheetsPivotTableService']=_0x162b1b,this[_0x3b719f(0x257)]();}[_0x217abe(0x2be)](_0x375766,_0x744f53,_0x3df070){const _0x148c25=_0x217abe,{pageView:_0x50c54f,cornerView:_0x10a4f6,rowView:_0x365d33,colView:_0x3d29f3,dataView:_0x5a642c}=_0x744f53,_0x58f295=_0x375766;let _0x55881f;if(_0x3df070)_0x55881f=[..._0x1d91b2(_0x58f295)];else{const _0x20dbd1=_0x3e0b54(_0x58f295,_0x50c54f,!0x0),_0x4f15d1=_0x50c54f['lastRow']>=0x0?_0x50c54f[_0x148c25(0x178)]+0x1:0x0,_0x494e54=_0x10a4f6[_0x148c25(0x2eb)],_0x1ccdd3=_0x10a4f6[_0x148c25(0x3d2)],_0x47e6e6=_0x20dbd1['length']>0x0?_0x491659:0x0,_0x5a5c7b=_0x3e0b54({'row':_0x58f295[_0x148c25(0x2aa)]+_0x4f15d1+_0x47e6e6,'col':_0x58f295[_0x148c25(0x1b1)]},_0x10a4f6,!0x1,!0x1),_0x5e5234=_0x3e0b54({'row':_0x58f295['row']+_0x4f15d1+_0x47e6e6+_0x494e54,'col':_0x58f295['col']},_0x365d33,!0x1,!0x0),_0x43b207=_0x3e0b54({'row':_0x58f295[_0x148c25(0x2aa)]+_0x4f15d1+_0x47e6e6,'col':_0x58f295[_0x148c25(0x1b1)]+_0x1ccdd3},_0x3d29f3,!0x1,!0x0),_0x1569bc=_0x3e0b54({'row':_0x58f295['row']+_0x4f15d1+_0x47e6e6+_0x494e54,'col':_0x58f295[_0x148c25(0x1b1)]+_0x1ccdd3},_0x5a642c,!0x1,!0x0);_0x55881f=[..._0x20dbd1,..._0x5a5c7b,..._0x5e5234,..._0x43b207,..._0x1569bc];}return _0x55881f;}[_0x217abe(0x257)](){const _0x4b31b4=_0x217abe;this['disposeWithMe'](this[_0x4b31b4(0x195)]['interceptor']['intercept'](this[_0x4b31b4(0x195)]['interceptor'][_0x4b31b4(0x428)]()[_0x4b31b4(0x309)],{'handler':(_0x242c6e,_0x176ecc)=>{const _0x499aef=_0x4b31b4,{cellInfo:_0xce6591,view:_0x3bd009,isEmpty:_0x1aee10}=_0x176ecc,_0x18e9ab=_0xce6591,{unitId:_0x5eb277,subUnitId:_0x1ee10b}=_0x18e9ab,_0x2764d0=this[_0x499aef(0x2be)](_0xce6591,_0x3bd009,_0x1aee10),_0x25ac61=this[_0x499aef(0x292)]['generateMutationsByRanges']({'unitId':_0x5eb277,'subUnitId':_0x1ee10b,'ranges':_0x2764d0}),_0x4ca179=_0x5450c0(this[_0x499aef(0x43c)],_0x5eb277,_0x1ee10b,_0x2764d0);_0x4ca179[_0x499aef(0x1b2)]&&(_0x25ac61[_0x499aef(0x3ea)][_0x499aef(0x3d3)](_0x4ca179['setRangeValueRedoMutation']),_0x25ac61[_0x499aef(0x3c3)][_0x499aef(0x3d3)](_0x4ca179[_0x499aef(0x35f)]));const _0x462d76=this[_0x499aef(0x3f5)](_0x3bd009,_0xce6591);return _0x25ac61[_0x499aef(0x3ea)][_0x499aef(0x3d3)](..._0x462d76['redos']),_0x25ac61[_0x499aef(0x3c3)][_0x499aef(0x3d3)](..._0x462d76[_0x499aef(0x3c3)]),{'redos':_0x25ac61[_0x499aef(0x3ea)],'undos':_0x25ac61[_0x499aef(0x3c3)]};}}));}[_0x217abe(0x3f5)](_0x19d2d7,_0x4b2078){const _0x11ef71=_0x217abe,{col:_0x116f5c,unitId:_0x41858c,subUnitId:_0x10fdae}=_0x4b2078,_0x2075d8=[],_0x36b398=[],_0x59a0ed=_0x3d008a[_0x11ef71(0x1cb)](this[_0x11ef71(0x172)],{'unitId':_0x41858c,'subUnitId':_0x10fdae});if(!_0x4b2078||!_0x19d2d7||!_0x59a0ed)return{'undos':_0x36b398,'redos':_0x2075d8};const _0x3f9b54=this[_0x11ef71(0x296)][_0x11ef71(0x41a)](),{colView:_0x55fea5,dataView:_0x58ffee,cornerView:_0x59f07e,rowView:_0x5be34d,formatMap:_0xc7edb2}=_0x19d2d7,_0x354ac4=_0xb3be21(_0x55fea5,_0x3f9b54,!0x0,_0xc7edb2),_0x43875a=_0xb3be21(_0x5be34d,_0x3f9b54,!0x1,_0xc7edb2),_0x58a454=_0x53688f(_0x58ffee),_0x29e524=_0x42755e(_0x59f07e),{worksheet:_0x4d7b73}=_0x59a0ed;if(typeof window<'u'&&window[_0x11ef71(0x280)]){const _0x54b886=_0xcb82fe[_0x11ef71(0x3f7)]({..._0x564739['colStyle']}),_0x5ebeb8=_0xcb82fe[_0x11ef71(0x35a)]['getTextSize'](_0x354ac4,_0x54b886)['width']+0x10,_0x4184fd=_0xcb82fe['FontCache'][_0x11ef71(0x42b)](_0x58a454,_0x54b886)[_0x11ef71(0x244)],_0x1b1408=Math[_0x11ef71(0x464)](Math[_0x11ef71(0x3bc)](_0x5ebeb8,_0x4184fd))+0x10,_0x10726b=Math[_0x11ef71(0x464)](_0xcb82fe[_0x11ef71(0x35a)][_0x11ef71(0x42b)](_0x43875a,_0x54b886)[_0x11ef71(0x244)]),_0xd5549d=Math[_0x11ef71(0x464)](_0xcb82fe[_0x11ef71(0x35a)][_0x11ef71(0x42b)](_0x29e524,_0x54b886)[_0x11ef71(0x244)]),_0x452a97=Math[_0x11ef71(0x3bc)](_0x10726b,_0xd5549d,0x28)+0xc,_0x2ededc=_0x55fea5['colCount']+_0x59f07e[_0x11ef71(0x3d2)],_0x47fec2={},_0x4f5f14={};for(let _0x1bd7ce=_0x116f5c;_0x1bd7ce<_0x116f5c+_0x2ededc;_0x1bd7ce++){const _0x475de1=_0x4d7b73[_0x11ef71(0x37f)](_0x1bd7ce);_0x47fec2[_0x1bd7ce]=_0x475de1,_0x1bd7ce-_0x116f5c<_0x59f07e[_0x11ef71(0x3d2)]?_0x4f5f14[_0x1bd7ce-_0x116f5c]=_0x452a97:_0x4f5f14[_0x1bd7ce-_0x116f5c]=_0x1b1408;}_0x2075d8[_0x11ef71(0x3d3)]({'id':_0x3d008a['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x10fdae,'unitId':_0x41858c,'ranges':[{'startColumn':_0x116f5c,'endColumn':_0x116f5c+_0x2ededc-0x1,'startRow':0x0,'endRow':_0x4d7b73[_0x11ef71(0x1a4)]()-0x1}],'colWidth':_0x4f5f14}}),_0x36b398[_0x11ef71(0x3d3)]({'id':_0x3d008a[_0x11ef71(0x3dc)]['id'],'params':{'subUnitId':_0x10fdae,'unitId':_0x41858c,'ranges':[{'startColumn':_0x116f5c,'endColumn':_0x116f5c+_0x2ededc-0x1,'startRow':0x0,'endRow':_0x4d7b73['getRowCount']()-0x1}],'colWidth':_0x47fec2}});}return{'undos':_0x36b398,'redos':_0x2075d8};}};_0x16c7a6=_0x3f1875([_0x48f2e3(0x0,_0x5cf8ff[_0x217abe(0x306)](_0x3d008a[_0x217abe(0x2af)])),_0x48f2e3(0x1,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x3e6)])),_0x48f2e3(0x2,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x198)])),_0x48f2e3(0x3,_0x5cf8ff['Inject'](_0x28dbf0['SheetsPivotTableConfigModel'])),_0x48f2e3(0x4,_0x5cf8ff[_0x217abe(0x306)](_0x28dbf0[_0x217abe(0x368)]))],_0x16c7a6);var _0x41de8b=Object[_0x217abe(0x17a)],_0x263b92=(_0x3279fc,_0x190650,_0x54d3b0,_0x4143f9)=>{const _0x3c695d=_0x217abe;for(var _0x910604=_0x4143f9>0x1?void 0x0:_0x4143f9?_0x41de8b(_0x190650,_0x54d3b0):_0x190650,_0xb6d6fb=_0x3279fc[_0x3c695d(0x31a)]-0x1,_0x12befb;_0xb6d6fb>=0x0;_0xb6d6fb--)(_0x12befb=_0x3279fc[_0xb6d6fb])&&(_0x910604=_0x12befb(_0x910604)||_0x910604);return _0x910604;},_0x4885f6=(_0x285b97,_0x503af7)=>(_0x1d1537,_0x4772e8)=>_0x503af7(_0x1d1537,_0x4772e8,_0x285b97);let _0xca9d6c=class extends _0x5cf8ff['Disposable']{constructor(_0x11309e,_0x2bfe99,_0x372d2b,_0x3352cb,_0xe4903f,_0x587080,_0x45eb2d){const _0x25c781=_0x217abe;super(),_0x4cbd74(this,_0x25c781(0x208),new _0x5cf8ff['DisposableCollection']()),(this[_0x25c781(0x43c)]=_0x11309e,this[_0x25c781(0x45e)]=_0x2bfe99,this[_0x25c781(0x36f)]=_0x372d2b,this['_univerInstanceService']=_0x3352cb,this[_0x25c781(0x296)]=_0xe4903f,this[_0x25c781(0x2e9)]=_0x587080,this[_0x25c781(0x292)]=_0x45eb2d,this['_onRefRangeChange']());}[_0x217abe(0x231)](){const _0x5c66d1=_0x217abe,_0x4eb0cc=(_0x185477,_0x23d778)=>{const _0x22aead=_0x3343,_0x3dd65a=this[_0x22aead(0x172)][_0x22aead(0x425)](_0x5cf8ff['UniverInstanceType'][_0x22aead(0x36c)]);if(!_0x3dd65a||!(_0x3dd65a==null?void 0x0:_0x3dd65a[_0x22aead(0x3db)](_0x23d778)))return;this[_0x22aead(0x208)]['dispose']();const _0x15b9e0=_0xe63350=>this[_0x22aead(0x449)](_0xe63350,_0x185477,_0x23d778),_0x251581=this[_0x22aead(0x296)][_0x22aead(0x456)](_0x185477,_0x23d778);if(!(_0x251581!=null&&_0x251581[_0x22aead(0x1da)]))return;Array[_0x22aead(0x440)](_0x251581['values']())['map'](_0x52e3a6=>{const _0xa67417=_0x22aead,{row:_0x50ed8b,col:_0x5426ec}=_0x52e3a6['targetCellInfo'];return _0x5cf8ff[_0xa67417(0x396)](_0x50ed8b,_0x5426ec);})[_0x22aead(0x22c)](_0xf65562=>{const _0x37fb79=_0x22aead;this[_0x37fb79(0x208)][_0x37fb79(0x219)](this[_0x37fb79(0x45e)][_0x37fb79(0x1ae)](_0xf65562,_0x15b9e0,_0x185477,_0x23d778));});},_0x242cb9=()=>{const _0x43507d=_0x3343,_0x16c740=this[_0x43507d(0x172)]['getCurrentUnitForType'](_0x5cf8ff[_0x43507d(0x32d)][_0x43507d(0x36c)]);if(_0x16c740){const _0x1736a7=_0x16c740['getActiveSheet']();if(!_0x1736a7)return;_0x4eb0cc(_0x16c740['getUnitId'](),_0x1736a7[_0x43507d(0x404)]());}};this[_0x5c66d1(0x3e2)](this[_0x5c66d1(0x36f)][_0x5c66d1(0x259)](_0x37ca22=>{const _0x1a6c46=_0x5c66d1;if(_0x37ca22['id']===_0x3d008a[_0x1a6c46(0x18f)]['id']){const _0xa9c028=_0x37ca22[_0x1a6c46(0x1b8)],_0x400e91=_0xa9c028[_0x1a6c46(0x1d0)],_0x1f7178=_0xa9c028['unitId'];if(!_0x400e91||!_0x1f7178)return;_0x4eb0cc(_0x1f7178,_0x400e91);}})),this[_0x5c66d1(0x3e2)](this['_sheetsPivotTableConfigModel'][_0x5c66d1(0x418)]['subscribe'](_0x5af45e=>{_0x5af45e&&_0x242cb9();})),this[_0x5c66d1(0x3e2)](this[_0x5c66d1(0x296)]['pivotConfigChange$'][_0x5c66d1(0x1de)](_0x1f07ef=>{const _0x23ca9f=_0x5c66d1,_0xbb8806=_0x3d008a[_0x23ca9f(0x1cb)](this[_0x23ca9f(0x172)]);if(!_0xbb8806)return;const {unitId:_0x3df8d2,subUnitId:_0x1e39e3}=_0xbb8806,{unitId:_0x264758,subUnitId:_0x46d072}=_0x1f07ef;_0x3df8d2!==_0x264758||_0x1e39e3!==_0x46d072||_0x4eb0cc(_0x3df8d2,_0x1e39e3);})),_0x242cb9();}[_0x217abe(0x449)](_0x5a5af5,_0x4e367c,_0x8520e5){const _0x36d536=_0x217abe;switch(_0x5a5af5['id']){case _0x3d008a[_0x36d536(0x251)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x5a5af5[_0x36d536(0x1b8)],_0x4e367c,_0x8520e5);}return{'redos':[],'undos':[]};}['getRefRangeMutationsByMoveRange'](_0x3a2410,_0x5570ac,_0x508c88){const _0x5e29b6=_0x217abe,{fromRange:_0x262b31,toRange:_0x1332aa}=_0x3a2410,_0x589472=[],_0x4f3ec4=[],_0x234c72=_0x3d008a[_0x5e29b6(0x1cb)](this[_0x5e29b6(0x172)]);if(!_0x234c72)return{'undos':_0x4f3ec4,'redos':_0x589472};if(_0x5570ac!==_0x234c72[_0x5e29b6(0x26d)]||_0x508c88!==_0x234c72[_0x5e29b6(0x1d0)])return{'undos':_0x4f3ec4,'redos':_0x589472};const _0x4fd00d=this[_0x5e29b6(0x296)][_0x5e29b6(0x456)](_0x5570ac,_0x508c88);if(_0x4fd00d!=null&&_0x4fd00d['size'])for(const [_0x4a99f5,_0xb2186f]of _0x4fd00d){const {unitId:_0x1fdb75,subUnitId:_0x46bbd8,row:_0x7ee53c,col:_0x1c1fb9}=_0xb2186f[_0x5e29b6(0x25b)];if(_0x1fdb75===_0x234c72['unitId']&&_0x46bbd8===_0x234c72[_0x5e29b6(0x1d0)]){const _0x40fc7d=_0x5cf8ff[_0x5e29b6(0x396)](_0x7ee53c,_0x1c1fb9);if(_0x5cf8ff[_0x5e29b6(0x1d8)][_0x5e29b6(0x2ab)](_0x40fc7d,_0x262b31)){const _0x505e08=_0x7ee53c-_0x262b31[_0x5e29b6(0x1f3)],_0x34f999=_0x1c1fb9-_0x262b31[_0x5e29b6(0x38b)],_0xf3695e={'row':_0x1332aa['startRow']+_0x505e08,'col':_0x1332aa['startColumn']+_0x34f999};_0x589472[_0x5e29b6(0x3d3)]({'id':_0x7a70ac['id'],'params':{'unitId':_0x1fdb75,'subUnitId':_0x46bbd8,'pivotTableId':_0x4a99f5,'targetCellPosition':_0xf3695e}}),_0x4f3ec4['push']({'id':_0x7a70ac['id'],'params':{'unitId':_0x1fdb75,'subUnitId':_0x46bbd8,'pivotTableId':_0x4a99f5,'targetCellPosition':{'row':_0x7ee53c,'col':_0x1c1fb9}}});const _0x10cdde=_0xf3695e[_0x5e29b6(0x2aa)]-_0x7ee53c,_0x4ec3f3=_0xf3695e[_0x5e29b6(0x1b1)]-_0x1c1fb9,_0x45bd24=[],_0x1499c7=this['_sheetsPivotTableAdaptorModel'][_0x5e29b6(0x2d6)](_0x1fdb75,_0x46bbd8,_0x4a99f5),_0x12909e=_0x1499c7==null?void 0x0:_0x1499c7[_0x5e29b6(0x1dd)];if(_0x12909e){Object['keys'](_0x12909e)[_0x5e29b6(0x22c)](_0x45b0d9=>{const _0x15827e=_0x5e29b6;_0x12909e[_0x45b0d9][_0x15827e(0x22c)](_0x14d033=>{const _0x5af618=_0x15827e,_0x52bbbe={..._0x14d033};_0x52bbbe[_0x5af618(0x1f3)]=_0x14d033['startRow']+_0x10cdde,_0x52bbbe['endRow']=_0x14d033[_0x5af618(0x46c)]+_0x10cdde,_0x52bbbe['startColumn']=_0x14d033[_0x5af618(0x38b)]+_0x4ec3f3,_0x52bbbe['endColumn']=_0x14d033['endColumn']+_0x4ec3f3,_0x45bd24[_0x5af618(0x3d3)](_0x52bbbe);});});const _0x56f5ee=this['_sheetInterceptorService'][_0x5e29b6(0x3e1)]({'unitId':_0x1fdb75,'subUnitId':_0x46bbd8,'ranges':_0x45bd24});_0x589472[_0x5e29b6(0x3d3)](..._0x56f5ee[_0x5e29b6(0x3ea)]),_0x4f3ec4[_0x5e29b6(0x3d3)](..._0x56f5ee[_0x5e29b6(0x3c3)]);const _0x4cd35e=_0x5450c0(this[_0x5e29b6(0x43c)],_0x1fdb75,_0x46bbd8,_0x45bd24);_0x4cd35e[_0x5e29b6(0x1b2)]&&(_0x589472['push'](_0x4cd35e[_0x5e29b6(0x3f6)]),_0x4f3ec4['push'](_0x4cd35e[_0x5e29b6(0x35f)]));}}}}return{'redos':_0x589472,'undos':_0x4f3ec4};}};_0xca9d6c=_0x263b92([_0x4885f6(0x0,_0x5cf8ff['Inject'](_0x5cf8ff[_0x217abe(0x3e6)])),_0x4885f6(0x1,_0x5cf8ff[_0x217abe(0x306)](_0x3d008a['RefRangeService'])),_0x4885f6(0x2,_0x5cf8ff['ICommandService']),_0x4885f6(0x3,_0x5cf8ff[_0x217abe(0x198)]),_0x4885f6(0x4,_0x5cf8ff[_0x217abe(0x306)](_0x28dbf0[_0x217abe(0x390)])),_0x4885f6(0x5,_0x5cf8ff['Inject'](_0x28dbf0['SheetsPivotTableAdaptorModel'])),_0x4885f6(0x6,_0x5cf8ff[_0x217abe(0x306)](_0x3d008a[_0x217abe(0x2af)]))],_0xca9d6c);var _0x303d91=Object[_0x217abe(0x17a)],_0x4d36ce=(_0x4831a2,_0x4e8f0d,_0x2d21ed,_0x16d61a)=>{for(var _0x3baaf3=_0x16d61a>0x1?void 0x0:_0x16d61a?_0x303d91(_0x4e8f0d,_0x2d21ed):_0x4e8f0d,_0x2e67c1=_0x4831a2['length']-0x1,_0x5d660c;_0x2e67c1>=0x0;_0x2e67c1--)(_0x5d660c=_0x4831a2[_0x2e67c1])&&(_0x3baaf3=_0x5d660c(_0x3baaf3)||_0x3baaf3);return _0x3baaf3;},_0x3d8196=(_0x46adec,_0xdbc32b)=>(_0x4d0622,_0x520ebf)=>_0xdbc32b(_0x4d0622,_0x520ebf,_0x46adec);let _0x52de26=class extends _0x5cf8ff[_0x217abe(0x374)]{constructor(_0x1f2964,_0x3f9e1f){const _0x14cddc=_0x217abe;super(),this[_0x14cddc(0x292)]=_0x1f2964,this[_0x14cddc(0x296)]=_0x3f9e1f,this[_0x14cddc(0x3a5)]();}[_0x217abe(0x3a5)](){const _0x23b497=_0x217abe;this[_0x23b497(0x3e2)](this['_sheetInterceptorService'][_0x23b497(0x329)]({'getMutations':_0x525200=>{const _0x5c40d6=_0x23b497;if(_0x525200['id']===_0x3d008a[_0x5c40d6(0x2a2)]['id']){const _0x34674f=[],_0x2b0b0d=[],_0x6e8712=_0x525200[_0x5c40d6(0x1b8)],{unitId:_0xde7b90,subUnitId:_0x559463}=_0x6e8712;if(!_0xde7b90||!_0x559463)return{'undos':_0x2b0b0d,'redos':_0x34674f};const _0x276760=this[_0x5c40d6(0x296)][_0x5c40d6(0x456)](_0xde7b90,_0x559463);if(_0x276760!=null&&_0x276760[_0x5c40d6(0x1da)])for(const [_0x36a15c,_0x464178]of _0x276760){_0x34674f[_0x5c40d6(0x3d3)]({'id':_0x5a7c3a['id'],'params':{'unitId':_0xde7b90,'subUnitId':_0x559463,'pivotTableId':_0x36a15c}});const _0x419d09={...this[_0x5c40d6(0x296)][_0x5c40d6(0x371)](_0xde7b90,_0x36a15c)};_0x2b0b0d[_0x5c40d6(0x3d3)]({'id':_0x55ee20['id'],'params':{'unitId':_0xde7b90,'subUnitId':_0x559463,'pivotTableId':_0x36a15c,'pivotTableConfig':_0x464178,'collectionConfig':_0x419d09}});}return{'redos':_0x34674f,'undos':_0x2b0b0d};}return{'redos':[],'undos':[]};}}));}};_0x52de26=_0x4d36ce([_0x3d8196(0x0,_0x5cf8ff[_0x217abe(0x306)](_0x3d008a[_0x217abe(0x2af)])),_0x3d8196(0x1,_0x5cf8ff[_0x217abe(0x306)](_0x28dbf0['SheetsPivotTableConfigModel']))],_0x52de26);var _0x1e325f=Object['getOwnPropertyDescriptor'],_0x438c2f=(_0x486fc6,_0x52af6d,_0x42db3b,_0x50c947)=>{const _0x44cefd=_0x217abe;for(var _0x515f37=_0x50c947>0x1?void 0x0:_0x50c947?_0x1e325f(_0x52af6d,_0x42db3b):_0x52af6d,_0x5810f0=_0x486fc6[_0x44cefd(0x31a)]-0x1,_0x2b104a;_0x5810f0>=0x0;_0x5810f0--)(_0x2b104a=_0x486fc6[_0x5810f0])&&(_0x515f37=_0x2b104a(_0x515f37)||_0x515f37);return _0x515f37;},_0x4a974d=(_0x4a43c1,_0x333d58)=>(_0x2ab73c,_0x435dab)=>_0x333d58(_0x2ab73c,_0x435dab,_0x4a43c1);let _0x1c7bef=class extends _0x5cf8ff[_0x217abe(0x374)]{constructor(_0x2d4bda,_0x5c8e2f,_0x121c5e,_0x3abb25,_0x547d25,_0x45ad4d){const _0x244f01=_0x217abe;super(),this[_0x244f01(0x36f)]=_0x2d4bda,this['_sheetsPivotRpcService']=_0x5c8e2f,this['_sheetsPivotTableAdaptorModel']=_0x121c5e,this[_0x244f01(0x296)]=_0x3abb25,this[_0x244f01(0x172)]=_0x547d25,this[_0x244f01(0x461)]=_0x45ad4d,this[_0x244f01(0x467)](),this[_0x244f01(0x322)]();}['_initDataSendListener'](){const _0x159c9f=_0x217abe;this[_0x159c9f(0x3e2)](this['_commandService']['onCommandExecuted'](_0x3c4dc3=>{const _0xb86ee6=_0x159c9f;if(_0x3c4dc3['id']!==_0x5d5a76['id'])return;const _0x35dffa=_0x3c4dc3[_0xb86ee6(0x1b8)];this['_sheetsPivotRpcService'][_0xb86ee6(0x466)](_0x35dffa);})),this[_0x159c9f(0x3e2)](this[_0x159c9f(0x36f)][_0x159c9f(0x259)](_0x5e118a=>{const _0x113564=_0x159c9f;if(_0x5e118a['id']===_0x3db269['id']){const _0x5daf64=_0x5e118a[_0x113564(0x1b8)];if(_0x5daf64){const {unitId:_0x15f76c,subUnitId:_0x5e76f7,oldSubUnitId:_0x59b5cc,pivotTableId:_0x5676fa,pivotTableConfig:_0x4c440f,collectionConfig:_0x30cb9f}=_0x5daf64;this[_0x113564(0x296)][_0x113564(0x19b)](_0x15f76c,_0x59b5cc,_0x5daf64['pivotTableId'],null),this[_0x113564(0x296)][_0x113564(0x19b)](_0x15f76c,_0x5e76f7,_0x5676fa,_0x4c440f),this[_0x113564(0x296)][_0x113564(0x471)](_0x15f76c,_0x30cb9f);}}})),this[_0x159c9f(0x3e2)](this[_0x159c9f(0x36f)][_0x159c9f(0x259)](_0x2fcfc3=>{const _0x3b9aa2=_0x159c9f;if(_0x2fcfc3['id']!==_0x572c85['id'])return;const _0x411306=_0x3d008a[_0x3b9aa2(0x1cb)](this[_0x3b9aa2(0x172)]);if(!_0x411306)return;const {unitId:_0x56532b,subUnitId:_0x254a69}=_0x411306,_0x4664de=_0x2fcfc3[_0x3b9aa2(0x1b8)];if(_0x4664de[_0x3b9aa2(0x2e6)]&&Object[_0x3b9aa2(0x16c)](_0x4664de[_0x3b9aa2(0x2e6)])[_0x3b9aa2(0x22c)](_0x5c0584=>{const _0xd74a80=_0x3b9aa2;var _0x59ac9d;(_0x59ac9d=_0x4664de[_0xd74a80(0x2e6)])!=null&&_0x59ac9d[_0x5c0584]&&this[_0xd74a80(0x296)][_0xd74a80(0x471)](_0x5c0584,_0x4664de[_0xd74a80(0x2e6)][_0x5c0584]);}),_0x4664de[_0x3b9aa2(0x245)]){const _0x149a06=_0x4664de[_0x3b9aa2(0x245)],{unitId:_0x233a09,subUnitId:_0xf42a32,view:_0x52452b,pivotTableId:_0x1020f4,type:_0x268750,pivotConfig:_0x1f0a7c}=_0x149a06;if(_0x268750===_0x5da69e[_0x3b9aa2(0x284)])this[_0x3b9aa2(0x2e9)][_0x3b9aa2(0x16b)]({'unitId':_0x233a09,'subUnitId':_0xf42a32,'pivotTableId':_0x1020f4,'type':_0x268750}),this[_0x3b9aa2(0x296)][_0x3b9aa2(0x19b)](_0x233a09,_0xf42a32,_0x1020f4,null);else{const _0x4265f4=new _0x2444f4[(_0x3b9aa2(0x2d2))]();_0x4265f4[_0x3b9aa2(0x3e9)](_0x52452b),this[_0x3b9aa2(0x296)]['updateConfigCache'](_0x233a09,_0xf42a32,_0x1020f4,_0x1f0a7c),this[_0x3b9aa2(0x2e9)][_0x3b9aa2(0x16b)]({'unitId':_0x233a09,'subUnitId':_0xf42a32,'pivotTableId':_0x1020f4,'type':_0x268750,'view':_0x4265f4}),this[_0x3b9aa2(0x2e9)][_0x3b9aa2(0x1d9)]({'unitId':_0x233a09,'subUnitId':_0xf42a32,'view':_0x4265f4,'pivotTableId':_0x1020f4,'type':_0x268750});}}else _0x4664de['batch']&&(_0x4664de[_0x3b9aa2(0x162)][_0x3b9aa2(0x22c)](_0xc4d27d=>{const _0x19bead=_0x3b9aa2,{unitId:_0x5362ce,subUnitId:_0x3ca2ff,view:_0x49c1e9,pivotTableId:_0x36667f,type:_0x56d851,pivotConfig:_0x59a3ec}=_0xc4d27d,_0x25f9c5=new _0x2444f4[(_0x19bead(0x2d2))]();_0x25f9c5['formJSON'](_0x49c1e9),this[_0x19bead(0x296)]['updateConfigCache'](_0x5362ce,_0x3ca2ff,_0x36667f,_0x59a3ec),this[_0x19bead(0x2e9)]['updateRenderCache']({'unitId':_0x5362ce,'subUnitId':_0x3ca2ff,'view':_0x25f9c5,'pivotTableId':_0x36667f,'type':_0x56d851});}),this['_sheetsPivotTableConfigModel'][_0x3b9aa2(0x26c)]());this['_sheetsPivotTableAdaptorModel'][_0x3b9aa2(0x1c7)](_0x56532b,_0x254a69);}));}[_0x217abe(0x322)](){const _0x2bf750=_0x217abe;this[_0x2bf750(0x461)][_0x2bf750(0x16e)](_0x2fc9ea['id'],{'commandId':_0x2fc9ea['id'],'getDirtyData'(_0x7afdd9){const _0x17e969=_0x2bf750;return{'dirtyUnitFeatureMap':_0x7afdd9[_0x17e969(0x1b8)]};}});}};_0x1c7bef=_0x438c2f([_0x4a974d(0x0,_0x5cf8ff['Inject'](_0x5cf8ff['ICommandService'])),_0x4a974d(0x1,_0x5cf8ff[_0x217abe(0x306)](_0x28dbf0[_0x217abe(0x1c9)])),_0x4a974d(0x2,_0x5cf8ff[_0x217abe(0x306)](_0x28dbf0[_0x217abe(0x3eb)])),_0x4a974d(0x3,_0x5cf8ff[_0x217abe(0x306)](_0x28dbf0['SheetsPivotTableConfigModel'])),_0x4a974d(0x4,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x198)])),_0x4a974d(0x5,_0x1683c2['IActiveDirtyManagerService'])],_0x1c7bef);var _0x46c44f=Object[_0x217abe(0x2a7)],_0x35afd3=Object[_0x217abe(0x17a)],_0x2f7e88=(_0x1308c6,_0x61700f,_0x18ce5f)=>_0x61700f in _0x1308c6?_0x46c44f(_0x1308c6,_0x61700f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18ce5f}):_0x1308c6[_0x61700f]=_0x18ce5f,_0x4942ff=(_0x5966df,_0x398cf9,_0x41fd80,_0x205211)=>{const _0x5dcb44=_0x217abe;for(var _0x305e50=_0x205211>0x1?void 0x0:_0x205211?_0x35afd3(_0x398cf9,_0x41fd80):_0x398cf9,_0x50f7a6=_0x5966df[_0x5dcb44(0x31a)]-0x1,_0x317f12;_0x50f7a6>=0x0;_0x50f7a6--)(_0x317f12=_0x5966df[_0x50f7a6])&&(_0x305e50=_0x317f12(_0x305e50)||_0x305e50);return _0x305e50;},_0x4dcc88=(_0x31e817,_0x210475)=>(_0x348299,_0x5be685)=>_0x210475(_0x348299,_0x5be685,_0x31e817),_0x4a077e=(_0x265b6b,_0x310f1b,_0x3f9e0a)=>_0x2f7e88(_0x265b6b,typeof _0x310f1b!=_0x217abe(0x229)?_0x310f1b+'':_0x310f1b,_0x3f9e0a);_0x28dbf0[_0x217abe(0x3ef)]=class extends _0x5cf8ff[_0x217abe(0x23e)]{constructor(_0x5c642f=_0x123fd7,_0x527a35,_0x46d49e,_0x8ca9e4,_0x503705){const _0x2fe25d=_0x217abe;super(),this[_0x2fe25d(0x3ec)]=_0x5c642f,this[_0x2fe25d(0x43c)]=_0x527a35,this['_commandService']=_0x46d49e,this[_0x2fe25d(0x1bd)]=_0x8ca9e4,this[_0x2fe25d(0x3a1)]=_0x503705;const {..._0x570b7e}=_0x5cf8ff['merge']({},_0x123fd7,this[_0x2fe25d(0x3ec)]);this['_configService'][_0x2fe25d(0x2fe)](_0x1919ce,_0x570b7e),this['_initRegisterCommand'](),this['_initConfig']();}[_0x217abe(0x369)](){const _0x3256a2=_0x217abe;var _0x2eccd6;const _0x5615fd=(_0x2eccd6=this[_0x3256a2(0x3ec)])==null?void 0x0:_0x2eccd6[_0x3256a2(0x2c8)];this[_0x3256a2(0x1bd)][_0x3256a2(0x2fe)](_0x243383,_0x5615fd===!0x0);}[_0x217abe(0x188)](){const _0x720df4=_0x217abe;var _0x32362a;let _0x81c1d4=[];const _0x416e9f=(_0x32362a=this[_0x720df4(0x3ec)])==null?void 0x0:_0x32362a[_0x720df4(0x2c8)];_0x416e9f===!0x0?_0x81c1d4=[[_0x28dbf0[_0x720df4(0x368)]],[_0x28dbf0['SheetsPivotRPCService']],[_0x1c7bef],[_0x28dbf0[_0x720df4(0x3eb)]],[_0x28dbf0['SheetsPivotTableConfigModel']],[_0x52de26],[_0x57699a],[_0xca9d6c],[_0x16c7a6]]:_0x416e9f===!0x1?_0x81c1d4=[[_0x28dbf0[_0x720df4(0x3f2)]],[_0x1903dc]]:_0x416e9f===void 0x0&&(_0x81c1d4=[[_0x28dbf0['SheetsPivotDataSourceModel']],[_0x1903dc],[_0x28dbf0['SheetsPivotTableService']],[_0x28dbf0[_0x720df4(0x1c9)]],[_0x1c7bef],[_0x28dbf0['SheetsPivotTableAdaptorModel']],[_0x28dbf0[_0x720df4(0x390)]],[_0x52de26],[_0x57699a],[_0xca9d6c],[_0x16c7a6]]),_0x81c1d4['forEach'](_0x4bba5c=>this[_0x720df4(0x43c)]['add'](_0x4bba5c)),[_0x1903dc,_0x1c7bef,_0x28dbf0['SheetsPivotTableService'],_0x57699a,_0x52de26,_0xca9d6c,_0x16c7a6][_0x720df4(0x22c)](_0x44f703=>{const _0x4ced3e=_0x720df4;this[_0x4ced3e(0x43c)][_0x4ced3e(0x2fb)](_0x44f703)&&this['_injector'][_0x4ced3e(0x191)](_0x44f703);});}['_initRegisterCommand'](){[_0x5f00d2,_0x4d02a6,_0x361035,_0x2f4a42,_0x2f77da,_0x5564c0,_0x536085,_0xaf7849,_0x1e3a37,_0xacc2d7,_0x417def,_0x550533,_0x1d14e1,_0x27f768,_0x55ee20,_0x4cad42,_0x5a7c3a,_0xeed0a6,_0x49b05c,_0x266174,_0x599b06,_0x369aad,_0x22cb31,_0x3ffb58,_0x426986,_0xbcc3cc,_0x7a70ac,_0x4d48bb,_0x5d5a76,_0x572c85,_0x50bc5e,_0x3951ca,_0x35c653,_0x2b7b2c,_0x5d77fb,_0x4763a0,_0x2f22f7,_0x2fc9ea,_0x3db269,_0x26a432,_0x569b93,_0x3f7d9a,_0x15803c]['forEach'](_0x34d36=>{const _0x5b8739=_0x3343;var _0x5f549d;(_0x5f549d=this[_0x5b8739(0x3a1)])==null||_0x5f549d[_0x5b8739(0x22e)](_0x34d36),this[_0x5b8739(0x36f)][_0x5b8739(0x31c)](_0x34d36);});}},_0x4a077e(_0x28dbf0[_0x217abe(0x3ef)],'pluginName',_0x5690d9),_0x4a077e(_0x28dbf0[_0x217abe(0x3ef)],'type',_0x5cf8ff[_0x217abe(0x32d)]['UNIVER_SHEET']),_0x28dbf0[_0x217abe(0x3ef)]=_0x4942ff([_0x5cf8ff['DependentOn'](_0x556295['UniverLicensePlugin']),_0x4dcc88(0x1,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff['Injector'])),_0x4dcc88(0x2,_0x5cf8ff[_0x217abe(0x306)](_0x5cf8ff[_0x217abe(0x20e)])),_0x4dcc88(0x3,_0x5cf8ff[_0x217abe(0x1b0)]),_0x4dcc88(0x4,_0x5cf8ff[_0x217abe(0x1ec)](_0x224436[_0x217abe(0x29c)]))],_0x28dbf0[_0x217abe(0x3ef)]),_0x28dbf0[_0x217abe(0x2d5)]=_0x361035,_0x28dbf0[_0x217abe(0x3de)]=_0xeed0a6,_0x28dbf0[_0x217abe(0x1d4)]=_0x4d02a6,_0x28dbf0[_0x217abe(0x3c4)]=_0x55ee20,_0x28dbf0['AddPivotTableWithConfigCommand']=_0x5f00d2,_0x28dbf0['BLANK_ROW_COUNT']=_0x491659,_0x28dbf0[_0x217abe(0x25a)]=_0x45e71b,_0x28dbf0['MovePivotFieldCommand']=_0x2f4a42,_0x28dbf0[_0x217abe(0x415)]=_0x1d14e1,_0x28dbf0[_0x217abe(0x265)]=_0x5b1b05,_0x28dbf0[_0x217abe(0x236)]=_0x27f768,_0x28dbf0['PivotTableOperationEnum']=_0x5da69e,_0x28dbf0['PivotTableViewDirtyMarkOperation']=_0x2fc9ea,_0x28dbf0['PositionType']=_0x59cdf6,_0x28dbf0[_0x217abe(0x1a2)]=_0x2f77da,_0x28dbf0[_0x217abe(0x18e)]=_0x369aad,_0x28dbf0[_0x217abe(0x320)]=_0x5a7c3a,_0x28dbf0[_0x217abe(0x319)]=_0x22cb31,_0x28dbf0[_0x217abe(0x3f8)]=_0x15803c,_0x28dbf0[_0x217abe(0x159)]=_0x1919ce,_0x28dbf0[_0x217abe(0x331)]=_0x5690d9,_0x28dbf0['SetPivotCollapseCommand']=_0xaf7849,_0x28dbf0[_0x217abe(0x454)]=_0x3ffb58,_0x28dbf0[_0x217abe(0x354)]=_0x2b7b2c,_0x28dbf0[_0x217abe(0x46a)]=_0x3f7d9a,_0x28dbf0['SetPivotFilterCommand']=_0xacc2d7,_0x28dbf0['SetPivotFilterMutation']=_0x599b06,_0x28dbf0[_0x217abe(0x452)]=_0xbcc3cc,_0x28dbf0['SetPivotPositionMutation']=_0x7a70ac,_0x28dbf0[_0x217abe(0x1f5)]=_0x1e3a37,_0x28dbf0[_0x217abe(0x325)]=_0x426986,_0x28dbf0[_0x217abe(0x24d)]=_0x35c653,_0x28dbf0[_0x217abe(0x34a)]=_0x26a432,_0x28dbf0[_0x217abe(0x2f5)]=_0x569b93,_0x28dbf0[_0x217abe(0x23c)]=_0x536085,_0x28dbf0[_0x217abe(0x339)]=_0x50bc5e,_0x28dbf0['UpdatePivotFieldSettingCommand']=_0x417def,_0x28dbf0['UpdatePivotFieldSourceInfoMutation']=_0x2f22f7,_0x28dbf0[_0x217abe(0x394)]=_0x550533,_0x28dbf0[_0x217abe(0x3d8)]=_0x4763a0,_0x28dbf0[_0x217abe(0x36d)]=_0x5564c0,_0x28dbf0[_0x217abe(0x1a8)]=_0x3951ca,_0x28dbf0['applyChangeSet']=_0x45171b,_0x28dbf0[_0x217abe(0x2dc)]=_0x4842f8,_0x28dbf0[_0x217abe(0x2c9)]=_0x564739,_0x28dbf0['generateSetRangeValueMutations']=_0x5450c0,_0x28dbf0[_0x217abe(0x255)]=_0x3e0b54,_0x28dbf0['getEmptyPivotRanges']=_0x1d91b2,_0x28dbf0[_0x217abe(0x343)]=_0x1a03de,_0x28dbf0['getInsertRowColMutations']=_0x39b7a0,_0x28dbf0[_0x217abe(0x2b7)]=_0x42016b,_0x28dbf0[_0x217abe(0x3fe)]=_0x1d765d,_0x28dbf0['getPivotTableInfo']=_0xa37ac2,_0x28dbf0[_0x217abe(0x44f)]=_0x462fdf,_0x28dbf0[_0x217abe(0x1cf)]=_0x54f967,Object['defineProperty'](_0x28dbf0,Symbol[_0x217abe(0x272)],{'value':_0x217abe(0x30e)});}));function _0x3343(_0x3bfc27,_0x212018){const _0x4e05d5=_0x4e05();return _0x3343=function(_0x33438b,_0x4c7656){_0x33438b=_0x33438b-0x158;let _0xcf0467=_0x4e05d5[_0x33438b];return _0xcf0467;},_0x3343(_0x3bfc27,_0x212018);}function _0x4e05(){const _0x1c9299=['isFeatureAuthorizedWithinTime','getMatrix','type','RemoveSheetCommand','DataField','getSortInfo','DisposableCollection','addFieldWithSourceId','defineProperty','sheets-pivot.cellDateGroupDisplay.year','sourceName','row','intersects','registerCallbackWithEvent','isValue','getDataFieldId','SheetInterceptorService','rowRanges','\x20-\x20','InsertRowMutation','setPivotFilter','isDateGroupField','_subjectCollectionChange','updateView','getPivotCellInfo','UniverProSheetsPivot','GlobalComputingStatusService','_configVersion$','collections','generateNullCell','getValue','_getPivotAppliedRanges','isDate','sheet.mutation.pivot-update-value-position','Tools','_ensurePivotItemRenderValueMatrixCache','rangeKey','_globalComputedStartHelpFunc','getRangeStartEndInfo','refreshDataField','sheets-pivot.other','notExecuteFormula','defaultThemeStyle','getSubUnitPivotMatrix','createDataFieldId','PivotTable','Column\x20','27285804GHOocj','slice','hasOwnProperty','sheets-pivot.dateGroup.date','PivotView','_viewData$','SetPivotCollapse','AddPivotFieldCommand','getPivotItemRenderInfoCache','new','3CNosDL','getSheetFeatureLimit','sheets-pivot.stdDevName','removeField','canUsePivot','value','getPivotTableRangeInfo','PivotTableValuePositionEnum','NotNumber','sheet.mutation.set-pivot-filter','Column','PivotErrorTypeEnum','_globalComputedEndHelpFunc','getName','collectionConfig','sheets-pivot.cellDateGroupDisplay.hourMinute','exports','_sheetsPivotTableAdaptorModel','SetRangeValuesMutation','rowCount','getConfig','isPrefixValue','sheet.command.move-pivot-table','updateValuePosition','substring','UniverProEnginePivot','@univerjs/engine-render','sheet.command.move-pivot-field','SetRangeValuesUndoMutationFactory','SetPivotValueFilterMutation','sheet.mutation.add-group-collection','pivotPerformCheck','_collectionChange$','_queryingMap','getCellMatrix','has','sheet.mutation.add-pivot-table','existing','setConfig','pivotTableIndexConfig','BadReference','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','8443386yytIKe','_pivotTableRangeInfo','getRangeKey','varp','Inject','_initUnitDisposed','Collapse','PIVOT_MUTATION_GENERATE','collection','setOptions','getId','pushUndoRedo','Module','var','INTERCEPTOR_POINT','createInterceptorKey','dataFieldId','isText','updateViewData','sheet.command.set-pivot-field-setting','UpdateSource','getUpdateRangeDeleteIds','sheets-pivot.emptyPivot.column','RenamePivotFieldMutation','length','dataStream','registerCommand','setValuePivotFilter','split','_generateUniqueVersion','RemovePivotTableMutation','product','registerDirtyService','updateDirtyPivotTable','_initPivotTextInfo','SetPivotSortMutation','getTypeOfUnitDisposed$','toJSON','sheetName','interceptCommand','RemovePivotField','sheets-pivot.dateGroup.yearQuarter','LifecycleService','UniverInstanceType','setSortInfo','sheets-pivot.varName','getTableFieldById','SHEET_PIVOT_TABLE_PLUGIN','sheet.mutation.set-pivot-field-subtotal-type','_updatePivotTableInstanceCache','paths','function','other','sheets-pivot.subTotal','getPivotDisplayConfig','UpdateFieldPositionMutation','query','SetSheetsFilterRangeMutation','getFieldPositionInfoById','pivotTableConfigs','getDataFieldManager','sequenceExecute','UniverRpc','amd','asyncInterceptor','getFieldListByArea','sheet.mutation.send-pivot-data-local','intercept','_localeService','_deleteModelCache','addPivotTable','CustomCommandExecutionError','SetPivotValueFilterCommand','PivotSubtotalTypeEnum','reset','rangeKeyMap','PivotCellStyleTypeEnum','rowHeaderMap','sheet.command.set-pivot-filter','getDate','oldRangeInfo','sheet.command.set-pivot-collapse','SetPivotFieldFormatMutation','executeCommand','updateAllDisplayName','fields','addPivotTableWithConfig','#1d32e9','FontCache','BLANK_PLACEHOLDER','rgb(255,255,255)','sheets-pivot.stdDevpName','_lifecycleService','setRangeValueUndoMutation','maxDate','rowInfo','_fieldsCollectionChange$','mergeWorksheetSnapshotWithDefault','setValue','sheet.command.add-pivot-field','sheet.mutation.set-pivot-position','rowStyle','SheetsPivotTableService','_initConfig','_host','sheets-pivot.countNumsName','UNIVER_SHEET','UpdatePivotValuePositionCommand','blank','_commandService','setSubtotalType','getCollection','filter','sheets-pivot.columnName','Disposable','deleteDataField','2cNabHd','next','sheet.mutation.get-pivot-data-local','fieldId','_init','sheet.mutation.send-pivot-view-local','getPivotDirtyViewInfo','random','RemoveSheetMutation','getColumnWidth','removePivotTable','contains','SetSortInfo','_pivotTableInstanceCache','sheets-pivot.cellDateGroupDisplay.quarter','dataFields','SetSubtotalType','headerMap','sheets-pivot.maxName','DateGroupField','getFormatInfo','startColumn','@univerjs/rpc','getValuePosition','10760IFWsls','PivotDataFieldTypeEnum','SheetsPivotTableConfigModel','leafStyle','deleteUnitId','bind','UpdatePivotTableSourceRangeCommand','getMonth','cellToRange','sheet.mutation.set-pivot-sort-info','sheet.mutation.add-pivot-field','SetPivotSetting','updatePivotSource','getIntersectsPivotTable','setPivotCollapse','hasField','filterFields','InsertSheetUndoMutationFactory','sheet.mutation.update-date-group','_dataSyncPrimaryController','_featureCalculationManagerService','InsertColMutation','_sheetsSelectionsService','_initRemoveSheetCommandInterceptor','find','@univerjs/sheets','lastCol','workbook\x20is\x20not\x20found','sum','endColumn','SetValueFilter','some','setName','getFieldIds','setTextInfo','InterceptorManager','UniverEngineRender','object','RANGE_TYPE','RemoveColMutation','iterateFieldDim','getFieldDataType','getColumnCount','minDate','_pivotConfigChange$','replace','max','setDateType','generateNewSheetName','displayName','setRange','#FFFFFF','getformat','undos','AddPivotTableMutation','sheet.mutation.set-pivot-value-filter','sideEffectUpdateWorkerCache','getPivotTableIdByCell','splice','min','entries','sheet.command.update-pivot-table-source-range','info','onQueryStart','addRecord','dataFieldManagerConfig','UniverSheets','removeCollections','colCount','push','_pivotRenderInfoCache','DrillDown','sheet.command.pivot-drill-down','_updateModelCache','UpdatePivotTableSourceRangeMutation','getCurrentSelections','getUnit','getSheetBySheetId','SetWorksheetColWidthMutation','markDirty$','AddPivotFieldMutation','MoveRangeMutation','fieldsCollectionChange$','generateMutationsByRanges','disposeWithMe','Add','matrix','Grand\x20Total','Injector','viewData$','setFieldFormat','formJSON','redos','SheetsPivotTableAdaptorModel','_config','panel','CommandType','UniverSheetsPivotTablePlugin','_initLocale','originalFieldId','SheetsPivotDataSourceModel','dispose','8593000pgOhFK','getAutoFitColumnsMutations','setRangeValueRedoMutation','getFontStyleString','ResetPivotFieldsConfigCommand','unshift','_viewData','UpdatePivotSource','updateFieldSourceInfo','RemoveRowMutation','getPivotInfoByLicense','CellValueType','getSheets','result','level','_initPivotDataGetListener','getSheetId','getDisplayName','_ensurePivotTableRangeInfo','YearMonthDate','options','FORCE_STRING','_initSnapshot','MonthDate','NO_COMMERCIAL','pivotTableId','SetPivotTableConfig','getValueIndex','dateType','sheet.mutation.pivot-update-field-position','Minute','Row','pageRanges','MovePivotTableCommand','areaInfo','custom','pivotInitCompleted$','Filter','getTextInfo','ResetPivotTable','_dataFieldManagerCollection','dataFieldsCollection','Values','Varp\x20of\x20','getViewData','iterateField','getMatrixFromRunTimeData','PivotMultipleValueId','SetValuePivotFilter','getCurrentUnitForType','getFieldById','pushComputingStatusSubject','getInterceptPoints','sheets.tabs.sheet','AsyncInterceptorManager','getTextSize','getDirtyInfo','SetOptions','range','getStyles','GrandTotal','fieldIds','handleMoveRange','cornerInfo','sourceRangeInfo','sheet.command.set-pivot-fields-config','getPivotTableCellData','_pivotRenderValueMatrixCache','_textInfo','tuple','_ensurePivotItemRenderInfoCache','sheets-pivot.minName','_injector','handleSourceRangeChange','getSubtotal','Div0','from','getOriginFieldId','getSheetBySheetName','getUnitId','set','generateRandomId','onQueryEnd','isEmpty','SetPivotSort','_refRangeHandle','rowFields','map','addCollectionByJSON','subtotal','broadcastCollectionChange','transFromCellValue','PivotTableChangeTypeEnum','SetCollapse','SetPivotOptionMutation','sheet.command.reset-pivot-fields-config','SetPivotCollapseMutation','name','getSubUnitPivotConfigs','STRING','sheet.operation.pivot-table-view-formula-mark-dirty','_subjectViewChange','setValueFilterInfo','getPivotTableInstance','date','Set','_refRangeService','getIntersects','createAsyncInterceptorKey','_activeDirtyManagerService','rxjs','sheets-pivot.emptyPivot.row','floor','sheet.mutation.send-pivot-config-local','handleAsyncResponse','_initDataSendListener','MAX_SAFE_INTEGER','setDisplayName','SetPivotFieldsConfigCommand','getLastCol','endRow','sheets-pivot.value','fetchThroughInterceptors','PivotDataFieldDataTypeEnum','forValue','updateCollectionConfig','refreshGroupField','MIN_SAFE_INTEGER','IUndoRedoService','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','Existing','endCollectChangeset','body','isArray','dimension','getFieldInfo','updatePivotTableMatrixInfo','sheets-pivot.blank','batch','fromJSON','#eceeff','InsertSheetMutation','average','_resourceManagerService','delete','updateViewInfo','sheet.mutation.set-pivot-collapse','clearRenderCache','keys','sortInfo','register','filterInfo','_exclusiveRangeService','_requestResolvers','_univerInstanceService','stdDev','collapseInfo','forRow','setPivotTable','getAutoDisplayNameFunction','lastRow','data','getOwnPropertyDescriptor','DEFAULT_WORKSHEET_ROW_COUNT','removeDataField','(Blank)','leftOffset','PivotCallbackEnum','IFeatureCalculationManagerService','LS_CONFIG_KEY','rangeType','getTargetByPivotId','_globalComputingSrv','setDataRecordCount','charCodeAt','Count\x20of\x20','onStarting','createCollectionWithDataRange','foreach','getDataFieldByRangeKey','tableFieldId','sheets-pivot.cellDateGroupDisplay.month','RemovePivotFieldMutation','SetWorksheetActiveOperation','remove','get','pbt','updateConfig','sheet.command.add-pivot-table','_sheetsPivotTableService','reduce','_updateRenderEmptyCache','IUniverInstanceService','getDataFieldBySourceName','getPivotTableConfig','updateConfigCache','_ensureViewDataMap','_viewUpdate$','message','New','concat','isBottomTotal','RemovePivotFieldCommand','YearQuarter','getRowCount','FieldsCollection','SheetsSelectionsService','getPivotPerformCheck','UpdateValuePositionMutation','parse','YearMonth','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','_initViewModelBySheetInterceptor','_pivotTableMatrixInfo','registerRefRange','getRangeData','IConfigService','col','shouldClear','sheets-pivot.dateGroup.hour','SetPivotFilter','UpdateValuePosition','addExclusiveRange','adjustSheetCellData','params','ErrorType','RenameField','getLastRow','collectionChange$','_configService','addDataFieldWithoutUnitInfo','sheets-pivot.countName','error','InsertSheetCommand','NAME','Hour','COLUMN','updateDataFieldsCollection','@univerjs-pro/engine-pivot','markDirty','getHeaderMapItem','SheetsPivotRPCService','rangeCache','getSheetCommandTarget','numfmt','setPivotSort','queryDirtyPivotTable','unionPivotViewRange','subUnitId','fetchThroughAsyncInterceptors','generateHexNumber','getRangeKeyList','AddPivotTableCommand','RemoveSheetsFilterMutation','colStyle','getAutoDisplayName','Rectangle','updateRenderCache','size','renameField','deepClone','rangesInfo','subscribe','realDeleteValue','measure','removePivotField','Var\x20of\x20','getFullYear','Value','@univerjs/engine-formula','Total','@univerjs-pro/license','format','IExclusiveRangeService','updateFieldPosition','InterceptorEffectEnum','Optional','removeSourceRangeChange','resetArea','drillDown','Panel','sheets-pivot.cellDateGroupDisplay.date','UniverSheetsFilter','startRow','_collectionConfigModel','SetPivotSortCommand','sheets-pivot.dateGroup.hourMinute','version','_initClearSelectionCommandInterceptor','pageStyle','node','Subject','registerPluginResource','update','getPivotTableMatrixInfo','@univerjs/core','count','valueIndex','AddPivotTable','sheets-pivot.dateGroup.minute','Subtotal','colInfo','removeValueFilterInfo','number','disposableCollection','getSourceName','sheets-pivot.dateGroup.yearMonthDate','_createExclusiveRange','updatePivotTableRangeInfo','movePivotField','ICommandService','getIndexesByPathStr','stringify','string','PivotViewCellValueTypeEnum','_getAutoName','getFilterInfo','initDataRanges','getFormat','resetPivotTable','Date','add','updateRangeKeyMap','columnFields','sheets-pivot.dateGroup.monthDate','getFieldCountByArea','DIV_BY_ZERO','MovePivotField','1153456jaEwCp','getMatrixValue','3159284iePtWt','unshiftString','NUMBER','numberToABC','_globalSubject','5rrEwOf','_markDirty$','symbol','valueFields','_model','forEach','sheet.mutation.pivot-update-field-source-info','registerSyncingMutations','setPivotTableConfig','deleteField','_onRefRangeChange','None','sheets-pivot.grandTotal','addPivotField','addDirtyPivotTable','PivotDrillDownCommand','return\x20','DEFAULT_WORKSHEET_COLUMN_COUNT','11lOJwQM','SetFilterInfo','sheet.mutation.rename-pivot-field','UpdateDateGroupCommand','triggerDirtyFeature','Plugin','oldMatrix','MUTATION','AddPivotTableWithConfig','setPivotSetting','_pivotInitCompleted$','width','single','getDataFieldItemInfo','addCollection','getSubUnitPivotRenderCache','ReleaseType','excelDateToUnixMilliseconds','sheet.mutation.send-init-pivot-text-local','sheets-pivot.emptyPivot.values','SetPivotSubtotalTypeMutation','_deletePivotTableInstanceCache','fieldsConfig','sheets-pivot.dateGroup.yearMonth','MoveRangeCommand','limit\x20pivot','colRanges','textInfo','getAdjustRangesPosition','getDataFieldByTableId','_initCommandInterceptListener','values','onCommandExecuted','DEFAULT_PIVOT_NUMBER','targetCellInfo','getFilterFieldIdByIndex','startCollectChangeset','sheets-pivot.sumName','iterateFieldByArea','column','PivotDateGroupFieldDateTypeEnum','colHeaderMap','isDateValue','_toJSON','PivotDisplayDataType','setCollapse','getPivotTableModelConfig','subTotalStyle','valueFilter','UniverEngineFormula','AddPivotField','setPivotInitCompleted','unitId','token','COMMAND','PivotTableFiledAreaEnum','filterId','toStringTag','Range','stdDevp','_initGlobalComputed','PivotFilterTypeEnum','ManualFilter','sheet.command.set-pivot-value-filter','5032158PJgHuG','Year','getNoUsedDataFieldIds','_sheetsPivotDataSourceModel','ObjectMatrix','getDataFieldByDataFieldId','versions','document','SHEET_PIVOT_EXCLUSIVE_ID','setSourceName','_subjectFieldsCollectionChange','Delete','grandTotal','refreshData','@univerjs/sheets-filter','3825xOQQHe','setLabelFilterInfo','sheet.mutation.update-pivot-table-source-range','Month','sheets-pivot.cellDateGroupDisplay.yearQuarter','setRangeKeyMap','LocaleService','ClearSelectionContentCommand','sheet.command.update-date-group','uniqueDataFieldName','_sheetInterceptorService','RemoveField','_ensurePivotTableMatrixInfo','dataRangeInfo','_sheetsPivotTableConfigModel','call','REF','getColCount','isNaN','asObservable','DataSyncPrimaryController','_ensurePivotMap','addField'];_0x4e05=function(){return _0x1c9299;};return _0x4e05();}