@univerjs-pro/sheets-pivot 0.10.6-experimental.20250904-9591d16 → 0.10.6-nightly.202509060724

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 +40 -40
  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 +9 -9
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4298(_0x170114,_0x546127){const _0x262a39=_0x262a();return _0x4298=function(_0x4298c0,_0x185dc6){_0x4298c0=_0x4298c0-0x9c;let _0x33de61=_0x262a39[_0x4298c0];return _0x33de61;},_0x4298(_0x170114,_0x546127);}(function(_0x2c197f,_0x45cb68){const _0x415627=_0x4298,_0x2c691f=_0x2c197f();while(!![]){try{const _0x471b0a=parseInt(_0x415627(0x1b9))/0x1*(parseInt(_0x415627(0x2a6))/0x2)+-parseInt(_0x415627(0x38e))/0x3*(parseInt(_0x415627(0x2ee))/0x4)+-parseInt(_0x415627(0x27f))/0x5+-parseInt(_0x415627(0x375))/0x6+-parseInt(_0x415627(0x32a))/0x7+-parseInt(_0x415627(0x2c1))/0x8*(-parseInt(_0x415627(0xea))/0x9)+parseInt(_0x415627(0x32e))/0xa*(parseInt(_0x415627(0x193))/0xb);if(_0x471b0a===_0x45cb68)break;else _0x2c691f['push'](_0x2c691f['shift']());}catch(_0x5b7312){_0x2c691f['push'](_0x2c691f['shift']());}}}(_0x262a,0xe97d8),function(_0x3b7200,_0x54433d){const _0x4045b4=_0x4298;typeof exports=='object'&&typeof module<'u'?_0x54433d(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==_0x4045b4(0x373)&&define[_0x4045b4(0x248)]?define(['exports',_0x4045b4(0x2fa),_0x4045b4(0x2df),_0x4045b4(0x2f2),'@univerjs/sheets','rxjs',_0x4045b4(0x35d),'@univerjs/sheets-filter',_0x4045b4(0x30c),_0x4045b4(0x2c5)],_0x54433d):(_0x3b7200=typeof globalThis<'u'?globalThis:_0x3b7200||self,_0x54433d(_0x3b7200[_0x4045b4(0xb0)]={},_0x3b7200['UniverProEnginePivot'],_0x3b7200[_0x4045b4(0x27c)],_0x3b7200[_0x4045b4(0x1e9)],_0x3b7200[_0x4045b4(0x217)],_0x3b7200[_0x4045b4(0x282)],_0x3b7200[_0x4045b4(0x19c)],_0x3b7200[_0x4045b4(0x384)],_0x3b7200[_0x4045b4(0xba)],_0x3b7200[_0x4045b4(0x119)]));}(this,function(_0x24d96c,_0x3e0737,_0x282877,_0x3b2497,_0x5698b3,_0x2b003b,_0x5b0681,_0x18c1ef,_0x129259,_0x1c6860){'use strict';const _0x2b16d4=_0x4298;var _0x12f1d8=Object[_0x2b16d4(0x2ae)],_0x2f1f6a=(_0x4307d2,_0x580e8b,_0xb13330)=>_0x580e8b in _0x4307d2?_0x12f1d8(_0x4307d2,_0x580e8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb13330}):_0x4307d2[_0x580e8b]=_0xb13330,_0x2e1abd=(_0x5ee3f1,_0x58c7d2,_0x1bd411)=>_0x2f1f6a(_0x5ee3f1,typeof _0x58c7d2!=_0x2b16d4(0x2f8)?_0x58c7d2+'':_0x58c7d2,_0x1bd411);const _0x12de9f=Number[_0x2b16d4(0x134)](0x68b95346),_0x2ba735=0x10,_0x1e520c=0x1,_0x2734d4=_0x2b16d4(0x177),_0x44f3d5=0x1,_0x42197c='rgb(240,241,243)',_0x2b798c=_0x2b16d4(0x136),_0x3c4d7a=_0x2b16d4(0x252),_0xc9b406='#f4f4f5',_0x181e11=_0x2b16d4(0x15c),_0x253874=_0x2b16d4(0x266),_0xa62e23=_0x2b16d4(0x141),_0x5c0bc6=_0x2b16d4(0x32c),_0x1db627=_0x2b16d4(0x298),_0x21a794=_0x2b16d4(0x141),_0x4acdef=_0x2b16d4(0x32c),_0xde1a41=_0x2b16d4(0x2b2),_0x25665a=0xe,_0x14a81c=0x6;var _0x220706=(_0x154091=>(_0x154091[_0x2b16d4(0xb4)]='existing',_0x154091[_0x2b16d4(0x37c)]='new',_0x154091))(_0x220706||{});const _0x40592d={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},_0x167bb3=0x1e,_0xf42351={'b':{'s':0x1,'cl':{'rgb':_0x3c4d7a}},'l':{'s':0x1,'cl':{'rgb':_0x3c4d7a}},'r':{'s':0x1,'cl':{'rgb':_0x3c4d7a}},'t':{'s':0x1,'cl':{'rgb':_0x3c4d7a}}},_0x421682={'bg':{'rgb':_0x42197c},'ht':0x2,'vt':0x2,'tb':0x1},_0x458c13={'bg':{'rgb':_0x2b798c},'ht':0x2,'vt':0x2,'tb':0x1},_0x433375={'rowStyle':{'bg':{'rgb':_0xde1a41},'bd':_0xf42351,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x21a794},'bd':null,'cl':{'rgb':_0x4acdef},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0xf42351,'bg':{'rgb':_0x1db627},'vt':0x2},'cornerStyle':{'bd':_0xf42351,'bg':{'rgb':_0x253874},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0xf42351,'bg':{'rgb':_0xc9b406},'vt':0x2},'leafStyle':{'bd':_0xf42351,'bg':{'rgb':_0x181e11},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0xa62e23},'cl':{'rgb':_0x5c0bc6},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0xf42351,'vt':0x2}};function _0x4d0341(_0x3d3ea7,_0x15e3a7,_0x3b58a8){const _0x503511=_0x2b16d4,_0x5bee1b=_0x3d3ea7['get'](_0x282877['LocaleService']),_0x65b253=_0x3b58a8[_0x503511(0x1a4)]('_');switch(_0x15e3a7){case _0x3e0737[_0x503511(0x22c)][_0x503511(0x20e)]:return _0x5bee1b['t'](_0x503511(0x2aa),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x1f3)]:return _0x5bee1b['t'](_0x503511(0x382),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x357)]:return _0x5bee1b['t'](_0x503511(0x2ff),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x162)]:return _0x5bee1b['t'](_0x503511(0x118),..._0x65b253);case _0x3e0737[_0x503511(0x22c)]['Date']:return _0x5bee1b['t'](_0x503511(0x11b),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x228)]:return _0x5bee1b['t']('sheets-pivot.cellDateGroupDisplay.month',..._0x65b253);case _0x3e0737['PivotDateGroupFieldDateTypeEnum'][_0x503511(0x232)]:return _0x5bee1b['t'](_0x503511(0x26e),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x221)]:return _0x5bee1b['t'](_0x503511(0x237),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x27d)]:return _0x5bee1b['t'](_0x503511(0x356),..._0x65b253);case _0x3e0737[_0x503511(0x22c)]['YearQuarter']:return _0x5bee1b['t'](_0x503511(0x264),..._0x65b253);}return'';}const _0x44c03b=(_0x80effc,_0x4074c1,_0x5ed799,_0x38e169)=>{const _0x3c6414=_0x2b16d4;let _0x432032;const _0x15bc30=_0x80effc[_0x3c6414(0x1a9)](_0x282877['IUniverInstanceService'])[_0x3c6414(0xd3)](_0x282877['UniverInstanceType'][_0x3c6414(0x328)]);if(!_0x15bc30)return null;const _0x259d71=_0x15bc30['getStyles']();let _0x4008ae;if(_0x5ed799&&(_0x4008ae=_0x259d71['setValue'](_0x5ed799)),_0x4074c1!=null&&_0x4074c1['v']||(_0x4074c1==null?void 0x0:_0x4074c1['v'])===0x0){_0x432032||(_0x432032={});const _0x28f31d=_0x55f875(_0x4074c1['v']);typeof _0x28f31d==_0x3c6414(0xa5)?_0x432032['t']=_0x282877['CellValueType'][_0x3c6414(0xec)]:typeof _0x28f31d==_0x3c6414(0x168)&&(_0x432032['t']=_0x282877[_0x3c6414(0x1a8)][_0x3c6414(0x226)]),_0x432032['v']=_0x28f31d;}if((_0x4074c1!=null&&_0x4074c1['i']||(_0x4074c1==null?void 0x0:_0x4074c1['i'])===0x0)&&(_0x432032||(_0x432032={}),_0x432032['fi']=_0x4074c1['i']),_0x4074c1!=null&&_0x4074c1['s']&&(_0x432032||(_0x432032={}),_0x432032[_0x3c6414(0x280)]=_0x4074c1['s']),_0x5ed799&&(_0x432032||(_0x432032={}),_0x432032['s']=_0x4008ae),_0x38e169&&_0x432032!=null&&_0x432032['v']&&_0x432032['pbt']!==_0x3e0737[_0x3c6414(0x2e3)][_0x3c6414(0x386)]&&_0x432032[_0x3c6414(0x280)]!==_0x3e0737['PivotCellStyleTypeEnum'][_0x3c6414(0x1f5)]){const _0x418620=String(_0x432032['v']),{dateType:_0x2ed3c3}=_0x38e169;_0x432032['v']=_0x4d0341(_0x80effc,_0x2ed3c3,_0x418620),_0x432032['t']=_0x282877['CellValueType'][_0x3c6414(0x226)];}return _0x432032;},_0x4a1770=(_0x2891ce,_0x3857f0,_0xaf57dd,_0x11dabc)=>{const _0x1e8e40=_0x2b16d4;var _0x374b5e,_0x1b9038,_0x17edd2,_0x3023b4,_0x160311,_0x529dda,_0xbd89c7,_0x38da44,_0x4e987a,_0x5c9ec4,_0x2bf1f2,_0x12ba7d,_0x3bbb59,_0x112fee;const _0x410bbe=_0xaf57dd[_0x1e8e40(0x360)],{cornerView:_0x31279e,rowView:_0x1ec718,colView:_0x4318b2,dataView:_0x7eed51,pageView:_0x1fc2d3,formatMap:_0x522c3f,groupInfo:_0xf0d44e}=_0x3857f0,{row:_0x3ba3a9,col:_0x3e8e46}=_0x410bbe,_0x559b5e=new _0x282877['ObjectMatrix'](),_0x1a4837={},_0x54bdfc={},_0x4c83d7={},_0x4caa1c={},_0x2c33dc={};let _0x306993=_0x3ba3a9,_0xab6a1b=_0x3e8e46;Object[_0x1e8e40(0x12a)](_0x1fc2d3[_0x1e8e40(0x17f)])[_0x1e8e40(0xff)](_0x4f6614=>{const _0x48bfe7=_0x1e8e40;Object[_0x48bfe7(0x12a)](_0x1fc2d3[_0x48bfe7(0x17f)][Number(_0x4f6614)])[_0x48bfe7(0xff)](_0x2a1b8e=>{const _0x4d1bd1=_0x48bfe7,_0x108002={..._0x1fc2d3['data'][Number(_0x4f6614)][Number(_0x2a1b8e)]};_0x559b5e[_0x4d1bd1(0x39a)](Number(_0x4f6614)+_0x306993,Number(_0x2a1b8e)+_0xab6a1b,_0x44c03b(_0x2891ce,_0x108002,_0x433375[_0x4d1bd1(0x1f2)]));});});const _0xf97654=Object[_0x1e8e40(0x12a)](_0x1fc2d3['data'])[_0x1e8e40(0x27b)];_0x306993+=_0xf97654+(_0xf97654?_0x44f3d5:0x0);const _0x51b5b6=_0x31279e[_0x1e8e40(0x2d2)](),_0x115d61=_0x31279e[_0x1e8e40(0xd4)]();for(let _0x4ca334=0x0;_0x4ca334<_0x51b5b6;_0x4ca334++)for(let _0x27816c=0x0;_0x27816c<_0x115d61;_0x27816c++){const _0x209eb9={...(_0x1b9038=(_0x374b5e=_0x31279e[_0x1e8e40(0x17f)])==null?void 0x0:_0x374b5e[_0x4ca334])==null?void 0x0:_0x1b9038[_0x27816c]};_0x209eb9&&((_0x17edd2=_0x1ec718[_0x1e8e40(0x1a1)][_0x27816c])!=null&&_0x17edd2[_0x1e8e40(0x380)])&&_0x27816c===_0x115d61-0x1&&_0x4ca334===_0x51b5b6-0x1&&(_0x209eb9['v']=''+_0x11dabc['sheets-pivot.value']),_0x559b5e['setValue'](_0x4ca334+_0x306993,_0x27816c+_0xab6a1b,_0x44c03b(_0x2891ce,_0x209eb9,_0x433375['cornerStyle']));}for(let _0x42c0a0=0x0;_0x42c0a0<_0x31279e[_0x1e8e40(0x37f)][_0x1e8e40(0x27b)];_0x42c0a0++)_0x31279e[_0x1e8e40(0x37f)][_0x42c0a0]&&(_0x4c83d7[''+(_0x42c0a0+_0xab6a1b)]=_0x31279e[_0x1e8e40(0x37f)][_0x42c0a0]);_0xab6a1b+=_0x115d61;const _0x35524f=_0x4318b2[_0x1e8e40(0x1a1)],_0x4c44f9=_0x4318b2[_0x1e8e40(0x2f4)]()>=0x0?_0x4318b2[_0x1e8e40(0x2f4)]()+0x1:0x0,_0xec956d=_0x4318b2['getLastCol']()>=0x0?_0x4318b2[_0x1e8e40(0x21f)]()+0x1:0x0;for(let _0x470c84=0x0;_0x470c84<_0xec956d;_0x470c84++){for(let _0x344207=0x0;_0x344207<_0x4c44f9;_0x344207++){const _0x369f9d={...(_0x160311=(_0x3023b4=_0x4318b2[_0x1e8e40(0x17f)])==null?void 0x0:_0x3023b4[_0x344207])==null?void 0x0:_0x160311[_0x470c84]},_0x43352b=(_0x529dda=_0x35524f[_0x344207])==null?void 0x0:_0x529dda[_0x1e8e40(0x19a)],_0x383c1b=_0x522c3f[_0x43352b],_0xcd09d6=_0xf0d44e[_0x43352b];_0x369f9d&&(_0x369f9d['v']=_0x22656d(_0x369f9d,_0x344207===0x0&&((_0xbd89c7=_0x4318b2['getHeaderMapItem'](_0x470c84+0x1))==null?void 0x0:_0xbd89c7[_0x1e8e40(0x380)]),_0x383c1b,_0x11dabc));let _0x25c764;_0x383c1b?_0x25c764={..._0x433375[_0x1e8e40(0xe8)],'n':{'pattern':_0x383c1b}}:_0x25c764={..._0x433375['colStyle']},_0x559b5e[_0x1e8e40(0x39a)](_0x344207+_0x306993,_0x470c84+_0xab6a1b,_0x44c03b(_0x2891ce,_0x369f9d,_0x25c764,_0xcd09d6));}_0x4318b2['info'][_0x470c84]&&(_0x54bdfc[''+(_0x470c84+_0xab6a1b)]=_0x4318b2[_0x1e8e40(0x37f)][_0x470c84]),_0x4318b2[_0x1e8e40(0x1a1)][_0x470c84+0x1]&&(_0x2c33dc[''+(_0x470c84+_0x306993+0x1)]=_0x4318b2['headerMap'][_0x470c84+0x1]);}_0x306993+=_0x51b5b6;const _0x50f086=_0x1ec718[_0x1e8e40(0x1a1)],_0x16fd2d=_0x1ec718[_0x1e8e40(0x2f4)]()>=0x0?_0x1ec718[_0x1e8e40(0x2f4)]()+0x1:0x0,_0x371ead=_0x1ec718[_0x1e8e40(0x21f)]()>=0x0?_0x1ec718['getLastCol']()+0x1:0x0;for(let _0x4a4952=0x0;_0x4a4952<_0x16fd2d;_0x4a4952++){for(let _0x30a01f=0x0;_0x30a01f<_0x371ead;_0x30a01f++){const _0x354bd8={...(_0x4e987a=(_0x38da44=_0x1ec718[_0x1e8e40(0x17f)])==null?void 0x0:_0x38da44[_0x4a4952])==null?void 0x0:_0x4e987a[_0x30a01f]},_0x37bd45=(_0x5c9ec4=_0x50f086[_0x30a01f])==null?void 0x0:_0x5c9ec4[_0x1e8e40(0x19a)],_0x51b444=_0x522c3f[_0x37bd45],_0x422a4e=_0xf0d44e[_0x37bd45];_0x354bd8&&(_0x354bd8['v']=_0x22656d(_0x354bd8,!0x1,_0x51b444,_0x11dabc));let _0x26c860;_0x1ec718['info'][_0x4a4952][_0x1e8e40(0x1ef)]===_0x1ec718['getColCount']()?_0x26c860=_0x433375[_0x1e8e40(0x209)]:_0x1ec718['info'][_0x4a4952][_0x1e8e40(0x276)]?_0x26c860=_0x1ec718[_0x1e8e40(0x37f)][_0x4a4952][_0x1e8e40(0x1ef)]===0x0?_0x433375['grandTotal']:_0x433375['subTotalStyle']:_0x26c860=_0x433375[_0x1e8e40(0x182)],_0x51b444&&(_0x26c860={..._0x26c860,'n':{'pattern':_0x51b444}}),_0x559b5e[_0x1e8e40(0x39a)](_0x4a4952+_0x306993,_0x30a01f+_0x3e8e46,_0x44c03b(_0x2891ce,_0x354bd8,_0x26c860,_0x422a4e));}_0x1ec718[_0x1e8e40(0x37f)][_0x4a4952]&&(_0x1a4837[''+(_0x4a4952+_0x306993)]=_0x1ec718['info'][_0x4a4952]),_0x1ec718[_0x1e8e40(0x1a1)][_0x4a4952]&&(_0x4caa1c[''+(_0x4a4952+_0x3e8e46)]=_0x1ec718[_0x1e8e40(0x1a1)][_0x4a4952]);}const _0x2decbb=_0x7eed51[_0x1e8e40(0x2d2)](),_0x212f62=_0x7eed51[_0x1e8e40(0xd4)]();for(let _0x40620b=0x0;_0x40620b<_0x2decbb;_0x40620b++)for(let _0xd83f22=0x0;_0xd83f22<_0x212f62;_0xd83f22++){const _0x2d7e98={...(_0x12ba7d=(_0x2bf1f2=_0x7eed51[_0x1e8e40(0x17f)])==null?void 0x0:_0x2bf1f2[_0x40620b])==null?void 0x0:_0x12ba7d[_0xd83f22]};let _0x57d420;_0x1ec718['info'][_0x40620b][_0x1e8e40(0x276)]?_0x57d420=_0x1ec718[_0x1e8e40(0x37f)][_0x40620b][_0x1e8e40(0x1ef)]===0x0?_0x433375[_0x1e8e40(0x3a1)]:_0x433375[_0x1e8e40(0x1be)]:_0x57d420=_0x433375[_0x1e8e40(0x2a7)];const _0x280852=_0x1ec718['info'][_0x40620b][_0x1e8e40(0x117)],_0x239703=_0x4318b2[_0x1e8e40(0x37f)][_0xd83f22][_0x1e8e40(0x117)],_0x31d122=Math[_0x1e8e40(0x24d)](_0x280852,_0x239703),_0x568de0=_0xaf57dd[_0x1e8e40(0x348)][_0x1e8e40(0x16d)][_0x1e8e40(0x350)]();let _0x39ccca='';_0x31d122<0x0?_0x39ccca=(_0x3bbb59=_0x568de0[0x0])!=null?_0x3bbb59:'':_0x39ccca=(_0x112fee=_0x568de0[_0x31d122])!=null?_0x112fee:'';const _0x51c744=_0x522c3f[_0x39ccca];_0x51c744&&(_0x57d420={..._0x57d420,'n':{'pattern':_0x51c744}}),_0x559b5e['setValue'](_0x40620b+_0x306993,_0xd83f22+_0xab6a1b,_0x44c03b(_0x2891ce,_0x2d7e98,_0x57d420));}return{'valueMatrix':_0x559b5e,'rowInfo':_0x1a4837,'colInfo':_0x54bdfc,'cornerInfo':_0x4c83d7,'rowHeaderMap':_0x4caa1c,'colHeaderMap':_0x2c33dc};};function _0x22656d(_0x527caf,_0x426618,_0x14bcb9,_0x300bd6){const _0x3f29a0=_0x2b16d4;let _0x5dd18c=_0x527caf['v'];_0x426618&&(_0x5dd18c=''+_0x300bd6[_0x3f29a0(0x2ba)]);const _0x91b6b0=_0x527caf['t']&&(_0x527caf['t']&_0x3e0737[_0x3f29a0(0x1d2)][_0x3f29a0(0x17d)])>0x0;if(_0x91b6b0&&(_0x5dd18c=''+_0x300bd6[_0x3f29a0(0x291)]),_0x527caf['s']===_0x3e0737[_0x3f29a0(0x2e3)][_0x3f29a0(0x1f5)]){let _0x9d3a55=_0x5dd18c,_0x4c045a='';_0x3e0737['isPrefixValue'](_0x5dd18c)&&(_0x9d3a55=_0x5dd18c['prefix'],_0x4c045a=_0x5dd18c[_0x3f29a0(0x2a4)]);const _0x151581=_0x14bcb9&&!_0x91b6b0?_0x282877[_0x3f29a0(0x274)]['format'](_0x14bcb9,Number(_0x9d3a55)):_0x9d3a55;_0x4c045a?_0x5dd18c=_0x151581+'\x20'+_0x4c045a:_0x5dd18c=_0x151581+'\x20'+_0x300bd6[_0x3f29a0(0x13f)];}else _0x527caf['s']===_0x3e0737['PivotCellStyleTypeEnum'][_0x3f29a0(0x386)]&&(_0x5dd18c=_0x5dd18c+'\x20'+_0x300bd6['sheets-pivot.grandTotal']);return _0x5dd18c;}function _0x55f875(_0x465d64){const _0x2411cf=_0x2b16d4;if(_0x3e0737[_0x2411cf(0xb9)](_0x465d64)){const {errorType:_0x493e94}=_0x465d64;switch(_0x493e94){case _0x3e0737[_0x2411cf(0x35e)][_0x2411cf(0xe1)]:return _0x3b2497['ErrorType'][_0x2411cf(0x18d)];case _0x3e0737[_0x2411cf(0x35e)][_0x2411cf(0x326)]:return _0x3b2497[_0x2411cf(0x287)][_0x2411cf(0x11c)];case _0x3e0737['PivotErrorTypeEnum'][_0x2411cf(0x253)]:return _0x3b2497[_0x2411cf(0x287)][_0x2411cf(0x289)];case _0x3e0737[_0x2411cf(0x35e)]['NotName']:return _0x3b2497[_0x2411cf(0x287)][_0x2411cf(0x289)];case _0x3e0737['PivotErrorTypeEnum'][_0x2411cf(0x1ce)]:return _0x3b2497['ErrorType'][_0x2411cf(0xc2)];}}return _0x465d64;}function _0x37a9a3(_0x496b77,_0x3339ed,_0x20234c=!0x1,_0x34e134=!0x1){const _0x33cbb9=_0x2b16d4,{data:_0x4018c7}=_0x3339ed,_0x432c8e=_0x3339ed[_0x33cbb9(0x2d2)](),_0x1a7b01=_0x3339ed['getColCount']();if(_0x432c8e<=0x0||_0x1a7b01<=0x0)return[];const _0x244674=_0x3339ed[_0x33cbb9(0x21f)](),_0x2971d5=_0x3339ed[_0x33cbb9(0x2f4)](),_0x5790b3=_0x34e134?_0x2971d5>=0x0?_0x2971d5+0x1:0x0:_0x432c8e,_0xf86ecf=_0x34e134?_0x244674>=0x0?_0x244674+0x1:0x0:_0x1a7b01,{row:_0xfc7691,col:_0x33e747}=_0x496b77,_0x1ce345=_0xfc7691,_0x4d267c=_0x33e747;if(_0x20234c){const _0x24b9c6=[];for(const [_0x35a792,_0x5a7fad]of Object[_0x33cbb9(0x2d8)](_0x4018c7))for(const [_0x4d9d5e,_0x251dd2]of Object[_0x33cbb9(0x2d8)](_0x5a7fad))_0x24b9c6[_0x33cbb9(0x338)](_0x282877[_0x33cbb9(0x29f)](_0x1ce345+Number(_0x35a792),_0x4d267c+Number(_0x4d9d5e)));return _0x24b9c6;}else{const _0x3026cc=_0x34e134?_0x5790b3>0x0?0x1:0x0:0x1,_0x460adf=_0x34e134?_0xf86ecf>0x0?0x1:0x0:0x1,_0x9c8621=_0xfc7691+_0x5790b3-_0x3026cc,_0x203414=_0x33e747+_0xf86ecf-_0x460adf;return[{'startRow':_0x1ce345,'startColumn':_0x4d267c,'endRow':_0x9c8621,'endColumn':_0x203414}];}}const _0x3ecd37=_0x2b16d4(0x2b5),_0x15c051=_0x2b16d4(0x33c);var _0x15dd40=(_0x21cc52=>(_0x21cc52['Filter']='filter',_0x21cc52[_0x2b16d4(0x13d)]=_0x2b16d4(0x161),_0x21cc52['AddPivotField']='addPivotField',_0x21cc52['AddPivotTableWithConfig']=_0x2b16d4(0x2db),_0x21cc52[_0x2b16d4(0x145)]='addPivotTable',_0x21cc52[_0x2b16d4(0x1bd)]=_0x2b16d4(0x9c),_0x21cc52[_0x2b16d4(0x17a)]=_0x2b16d4(0x33b),_0x21cc52['SetPivotCollapse']=_0x2b16d4(0xae),_0x21cc52[_0x2b16d4(0x21e)]='setPivotFilter',_0x21cc52['SetPivotSort']='setPivotSort',_0x21cc52[_0x2b16d4(0x14a)]='setPivotSetting',_0x21cc52[_0x2b16d4(0x1c6)]=_0x2b16d4(0x2fe),_0x21cc52[_0x2b16d4(0x230)]=_0x2b16d4(0x1df),_0x21cc52['DrillDown']=_0x2b16d4(0x109),_0x21cc52['SetValuePivotFilter']=_0x2b16d4(0x213),_0x21cc52['SetPivotTableConfig']=_0x2b16d4(0x281),_0x21cc52[_0x2b16d4(0x38a)]=_0x2b16d4(0x3ac),_0x21cc52))(_0x15dd40||{});const _0xf69c2b={'sheets-pivot.blankValue':_0x2b16d4(0x1e8),'sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':_0x2b16d4(0x188),'sheets-pivot.grandTotalText':'Grand\x20Total','sheets-pivot.valueText':_0x2b16d4(0xbb),'sheets-pivot.averageName':_0x2b16d4(0x30a),'sheets-pivot.countName':_0x2b16d4(0x275),'sheets-pivot.countNumsName':_0x2b16d4(0x275),'sheets-pivot.maxName':_0x2b16d4(0x100),'sheets-pivot.minName':_0x2b16d4(0x307),'sheets-pivot.productName':_0x2b16d4(0x163),'sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':_0x2b16d4(0x1c4),'sheets-pivot.sumName':_0x2b16d4(0x14b),'sheets-pivot.varName':_0x2b16d4(0x37b),'sheets-pivot.varpName':_0x2b16d4(0xb2),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':_0x2b16d4(0x220),'sheets-pivot.value':'value','sheets-pivot.blank':_0x2b16d4(0x17d),'sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':_0x2b16d4(0x2ef),'sheets-pivot.emptyPivot.column':_0x2b16d4(0x211),'sheets-pivot.emptyPivot.values':_0x2b16d4(0x15f)},_0x5ac153={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x387164=_0x282877[_0x2b16d4(0x2f7)]('pivotPerformCheck'),_0x3c85f0=_0x282877[_0x2b16d4(0x3a9)](_0x2b16d4(0x1a7));var _0xa08ad4=(_0x32b6db=>(_0x32b6db[_0x2b16d4(0x183)]=_0x2b16d4(0x183),_0x32b6db[_0x2b16d4(0x1c1)]=_0x2b16d4(0x1c1),_0x32b6db[_0x2b16d4(0x1e6)]=_0x2b16d4(0x1e6),_0x32b6db))(_0xa08ad4||{}),_0xa5664b=(_0x1e5583=>(_0x1e5583[_0x2b16d4(0x28e)]=_0x2b16d4(0x183),_0x1e5583[_0x2b16d4(0x127)]=_0x2b16d4(0x28f),_0x1e5583['Delete']=_0x2b16d4(0x1c1),_0x1e5583))(_0xa5664b||{});const _0x19037a={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},_0x391749={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x29e),'handler':()=>!0x0},_0x22de79={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},_0x5554ef={'type':_0x282877['CommandType'][_0x2b16d4(0x156)],'id':_0x2b16d4(0x23c),'handler':()=>!0x0},_0x4c3710={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.send-init-pivot-text-local','handler':()=>!0x0};var _0x1fc1af=Object[_0x2b16d4(0x34b)],_0x3f4ed9=(_0x38496c,_0xd684cc,_0x5dae3c,_0x4666c0)=>{const _0x3e3464=_0x2b16d4;for(var _0x5d438d=_0x4666c0>0x1?void 0x0:_0x4666c0?_0x1fc1af(_0xd684cc,_0x5dae3c):_0xd684cc,_0x2c6613=_0x38496c[_0x3e3464(0x27b)]-0x1,_0x3a8a8d;_0x2c6613>=0x0;_0x2c6613--)(_0x3a8a8d=_0x38496c[_0x2c6613])&&(_0x5d438d=_0x3a8a8d(_0x5d438d)||_0x5d438d);return _0x5d438d;},_0x528ca9=(_0x42d268,_0x396f03)=>(_0x5775d8,_0x3ac5d3)=>_0x396f03(_0x5775d8,_0x3ac5d3,_0x42d268);_0x24d96c['SheetsPivotRPCService']=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x4a22e3){const _0x4d91c8=_0x2b16d4;super(),_0x2e1abd(this,_0x4d91c8(0x2bf),new Map()),this[_0x4d91c8(0x2e0)]=_0x4a22e3;}['handleAsyncResponse'](_0x1e8c86){const _0x39ecfc=_0x2b16d4,{version:_0x7893df}=_0x1e8c86,_0x4b3689=this[_0x39ecfc(0x2bf)][_0x39ecfc(0x1a9)](_0x7893df);_0x4b3689&&(_0x4b3689(_0x1e8c86),this['_requestResolvers']['delete'](_0x7893df));}['getPivotDisplayConfig'](_0x130493){return new Promise((_0x4105f4,_0x5035ee)=>{const _0xf79f8d=_0x4298,_0x5267cb=this[_0xf79f8d(0x322)]();this[_0xf79f8d(0x2bf)][_0xf79f8d(0x28f)](_0x5267cb,_0x4105f4),this[_0xf79f8d(0x2e0)][_0xf79f8d(0xe0)](_0x19037a['id'],{'version':_0x5267cb,..._0x130493},{'onlyLocal':!0x0});});}[_0x2b16d4(0x322)](){const _0x42c986=_0x2b16d4;return Math['random']()[_0x42c986(0x260)](0x24)[_0x42c986(0x39b)](0x2,0x10);}},_0x24d96c[_0x2b16d4(0xde)]=_0x3f4ed9([_0x528ca9(0x0,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x240)]))],_0x24d96c[_0x2b16d4(0xde)]);const _0x3caff5={0x0:'X',0x1:'h',0x2:'l',0x3:'I',0x4:'y',0x5:'2',0x6:'x',0x7:'A',0x8:'q',0x9:'U','v':'0','B':'1','N':'3','w':'4','j':'5','W':'6','x':'7','U':'8','u':'9','A':'a','J':'b','a':'c','b':'d','l':'e','y':'f','e':'g','r':'i','p':'j','Q':'k','c':'m','V':'n','g':'o','R':'p','s':'r','i':'s','L':'t','I':'u','d':'v','T':'w','X':'z','Z':'B','q':'C','F':'D','O':'E','f':'F','m':'G','D':'H','k':'J','z':'K','H':'L','h':'M','o':'N','Y':'O','G':'P','E':'Q','n':'R','S':'S','M':'T','t':'V','K':'W','P':'Y','C':'Z'},_0x402916='yIVaLrgV\x20blas4RLrgV(2ralVil,\x20RIJ2razl4)\x20{\x20\x20\x20\x20Ls4\x20{\x20\x20\x20\x20\x20\x20\x20\x20agViL\x202ralVil3VygGAsL7ssA4\x20=\x202ralVil.iR2rL(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20gsrerVhliiAel\x20=\x20kSYo.RAsil(ALgJ(2ralVil3VygGAsL7ssA4[5]));\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(!gsrerVhliiAel.Ib)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gsrerVhliiAel.Ib\x20=\x20oIcJls(2ralVil3VygGAsL7ssA4[w]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20riKgsQls\x20=\x20L4Rlgy\x20KgsQlsm2gJA2SagRl\x20!==\x20\x27IVblyrVlb\x27\x20&&\x20il2y\x20rViLAValgy\x20KgsQlsm2gJA2SagRl;\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20agVLl6L\x20=\x20riKgsQls\x20?\x20il2y\x20:\x20TrVbgT;\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20cliiAelKgsb\x20=\x20agVLl6L.__ZAilWw__.RAsil(2ralVil3VygGAsL7ssA4[5]);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20cliiAel\x20=\x20agVLl6L.__Dl6__.iLsrVery4(cliiAelKgsb);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20ireVALIslKgsb\x20=\x20agVLl6L.__ZAilWw__.RAsil(2ralVil3VygGAsL7ssA4[N]);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20ireVALIsl\x20=\x20agVLl6L.__Dl6__.iLsrVery4(ireVALIslKgsb);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20ireVtA2rb\x20=\x20agVLl6L.__dlsry4__(ireVALIsl,\x20cliiAel,\x20RIJ2razl4);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20bgcArV\x20=\x20gsrerVhliiAel.bc;\x20\x20\x20\x20\x20\x20\x20\x20yIVaLrgV\x20riFgcArVhALa1rVe(gGALLlsV,\x20gDgiL)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20RALLlsV\x20=\x20gGALLlsV.slR2Aal(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x201giL\x20=\x20gDgiL.slR2Aal(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20RALLlsVGAsLi\x20=\x20RALLlsV.iR2rL(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x201giLGAsLi\x20=\x201giL.iR2rL(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(!RALLlsV.rVa2Ibli(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20slLIsV\x20RALLlsV\x20===\x201giL;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(RALLlsVGAsLi.2lVeL1\x20<\x205\x20||\x20RALLlsVGAsLi[v]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20slLIsV\x20yA2il;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20RALLlsVSIyyr6\x20=\x20RALLlsVGAsLi.i2ral(B).pgrV(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x201giLSIyyr6\x20=\x201giLGAsLi.i2ral(-RALLlsVGAsLi.2lVeL1\x20+\x20B).pgrV(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20slLIsV\x20RALLlsVSIyyr6\x20===\x201giLSIyyr6;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x202lL\x20bgcArVtA2rb\x20=\x20(bgcArV\x20&&\x20bgcArV.2lVeL1)\x20?\x20bgcArV.igcl((bc3Llc)\x20=>\x20riFgcArVhALa1rVe(bc3Llc,\x202gaALrgV.1giLVAcl))\x20:\x20LsIl;\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(2gaALrgV.1giLVAcl\x20===\x20\x272gaA21giL\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bgcArVtA2rb\x20=\x20LsIl;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20dA2rb\x20=\x20ireVtA2rb\x20&&\x20bgcArVtA2rb;\x20\x20\x20\x20\x20\x20\x20\x20slLIsV\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dA2rb,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cliiAel:\x20gsrerVhliiAel,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20aALa1\x20(lssgs)\x20{\x20\x20\x20\x20\x20\x20\x20\x20slLIsV\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dA2rb:\x20yA2il,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cliiAel:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}',_0x12ccd5=_0x7761ca=>{const _0x43e325=_0x2b16d4;var _0x34f161;return((_0x34f161=_0x7761ca[_0x43e325(0x1ba)])==null?void 0x0:_0x34f161[_0x43e325(0x1f0)][_0x43e325(0x398)](/\r\n$/,''))||'';};class _0xe67c3c extends _0x3e0737[_0x2b16d4(0x383)]{constructor(_0x112e58,_0x2edea1){const _0x468fd6=_0x2b16d4;super(),_0x2e1abd(this,_0x468fd6(0x129),{}),_0x2e1abd(this,_0x468fd6(0x12c)),_0x2e1abd(this,_0x468fd6(0x351)),(this[_0x468fd6(0x12c)]=_0x2edea1,this['_host']=_0x112e58);}[_0x2b16d4(0xdc)](){const _0x162d8b=_0x2b16d4;for(const _0x112543 in this[_0x162d8b(0xbc)]){const _0x4cb265=this[_0x162d8b(0xbc)][_0x112543],_0x6dd5a8=_0x4cb265['getRangeKey']();this[_0x162d8b(0x129)][_0x6dd5a8]=_0x4cb265[_0x162d8b(0x149)]();}}['getAutoDisplayNameFunction'](){const _0x53f3c9=_0x2b16d4,_0x41e32d=this[_0x53f3c9(0x351)];return _0x4ce654['bind'](_0x41e32d);}[_0x2b16d4(0x2ea)](_0x510510){const _0x46e10a=_0x2b16d4,_0xb8d620=this[_0x46e10a(0xbc)][_0x510510]['rangeKey'];delete this['dataFields'][_0x510510],delete this['rangeKeyMap'][_0xb8d620];}[_0x2b16d4(0x1e0)](_0x300746){const _0x46f71e=_0x2b16d4;this[_0x46f71e(0xbc)][_0x300746[_0x46f71e(0x149)]()]=_0x300746;}['removeCollectionImp'](_0x441827){const _0x172b1d=_0x2b16d4;var _0x5453e7,_0x3edcdb;const _0x53e5a2=this['_host'][_0x172b1d(0x31f)](_0x441827);if(_0x53e5a2){const {unitId:_0x42cb9a,subUnitId:_0x442657}=_0x53e5a2,_0x2d17aa=(_0x5453e7=this['_host']['getPivotTableConfig'](_0x42cb9a,_0x442657,_0x441827))==null?void 0x0:_0x5453e7['sourceRangeInfo'];this[_0x172b1d(0x351)][_0x172b1d(0x152)]({'token':_0x441827,'type':_0xa08ad4[_0x172b1d(0x1c1)],'dataRangeInfo':_0x2d17aa});}(_0x3edcdb=this[_0x172b1d(0xd9)](_0x441827))==null||_0x3edcdb[_0x172b1d(0x2be)](),delete this[_0x172b1d(0x256)][_0x441827];}[_0x2b16d4(0x2d6)](_0x5dd534,_0x106b84){const _0x21518e=_0x2b16d4,{sheetName:_0x4146f9,unitId:_0x34a382,range:_0x414fe6}=_0x5dd534,{startRow:_0xdf527f,endRow:_0x598630}=_0x414fe6;return _0x3b2497[_0x21518e(0x13b)](_0x34a382,_0x4146f9,{'startRow':_0xdf527f,'endRow':_0x598630,'startColumn':_0x106b84,'endColumn':_0x106b84});}[_0x2b16d4(0x269)](_0x1d93f3){const _0x1700d7=_0x2b16d4;return this[_0x1700d7(0xbc)][this[_0x1700d7(0x129)][_0x1d93f3]];}[_0x2b16d4(0x29a)](_0xc3ac1b,_0x35aa95){const _0x46eff8=_0x2b16d4;this[_0x46eff8(0x129)][_0xc3ac1b]=_0x35aa95;}['updateRangeKeyMap'](_0x56f699,_0x5bf7f4){const _0x24c6ed=_0x2b16d4;this['rangeKeyMap'][_0x5bf7f4]=this[_0x24c6ed(0x129)][_0x56f699],delete this['rangeKeyMap'][_0x56f699];}[_0x2b16d4(0x1de)](_0x37f49e,_0x33d745,_0x3b0a43,_0x994b83){const _0x3cc7dd=_0x2b16d4,_0x16b884=new _0x3e0737[(_0x3cc7dd(0xf1))](this);_0x16b884[_0x3cc7dd(0x39c)](_0x33d745);const _0x3182f5=[];let _0x1c74a2=0x0;for(const _0x1e7be6 of _0x16b884[_0x3cc7dd(0x216)]){const _0x2dd37a=this[_0x3cc7dd(0x2d6)](_0x3b0a43,_0x1c74a2),_0x2a4a55=this[_0x3cc7dd(0xbc)][_0x1e7be6];_0x2a4a55&&(_0x2a4a55[_0x3cc7dd(0xf7)]=_0x2dd37a,this[_0x3cc7dd(0x29a)](_0x2dd37a,_0x1e7be6),_0x3182f5['push']({'index':_0x1c74a2,'dataField':_0x2a4a55})),_0x1c74a2++;}return this[_0x3cc7dd(0x18e)](_0x37f49e,_0x16b884,_0x3b0a43,_0x994b83),{'collection':_0x16b884,'updateDataFieldList':_0x3182f5};}[_0x2b16d4(0xfc)](_0xf9d8e1,_0x168731){const _0x39cfa6=_0x2b16d4;return _0xf9d8e1[_0x39cfa6(0x2b1)]===_0x282877['RANGE_TYPE'][_0x39cfa6(0x2d3)]?{'startRow':0x0,'startColumn':_0xf9d8e1[_0x39cfa6(0x254)],'endRow':_0x168731[_0x39cfa6(0x2d2)]()-0x1,'endColumn':_0xf9d8e1['endColumn']}:{'startRow':_0xf9d8e1['startRow'],'startColumn':_0xf9d8e1['startColumn'],'endRow':_0xf9d8e1['endRow'],'endColumn':_0xf9d8e1[_0x39cfa6(0x244)]};}[_0x2b16d4(0x39d)](_0x4e3367){const _0x447c6e=_0x2b16d4,{sheetName:_0x49895c,range:_0x471e86}=_0x4e3367,_0x501563=this[_0x447c6e(0x12c)][_0x447c6e(0xd3)](_0x282877['UniverInstanceType'][_0x447c6e(0x328)]),_0xf3fa61=_0x501563[_0x447c6e(0x239)](_0x49895c),_0x18778a=_0xf3fa61[_0x447c6e(0x2d9)](),{startColumn:_0x402080,startRow:_0x2da619,endColumn:_0x1d3259}=this[_0x447c6e(0xfc)](_0x471e86,_0xf3fa61),_0x468ce5=_0x501563['getStyles'](),_0x2f7a59=new _0x3e0737[(_0x447c6e(0xf1))](this);_0x2f7a59[_0x447c6e(0xc6)](_0x4e3367);const _0x307f5a=[],_0x330943={};for(let _0x11cc7f=_0x402080;_0x11cc7f<=_0x1d3259;_0x11cc7f++){const _0x34c662=_0x18778a[_0x447c6e(0x1e3)](_0x2da619,_0x11cc7f),_0x524f40=this['getRangeKey'](_0x4e3367,_0x11cc7f),_0x4e87d4=this['getDataFieldByRangeKey'](_0x524f40);if(_0x4e87d4)_0x2f7a59[_0x447c6e(0x38f)](_0x4e87d4[_0x447c6e(0x149)](),_0x4e87d4[_0x447c6e(0x241)]());else{const _0x54b0f0=this['createDataFieldId']();let _0x5a606e=this['adjustSheetCellData'](_0x34c662,_0x468ce5,_0x330943);_0x3e0737[_0x447c6e(0x9d)](_0x5a606e)&&(_0x5a606e=_0x282877[_0x447c6e(0x274)][_0x447c6e(0x251)](_0x5a606e['f'],Number(_0x5a606e['v'])));const _0x5a00f6=this['uniqueDataFieldName'](_0x5a606e,_0x11cc7f),_0x35c1aa=new _0x3e0737['DataField'](_0x54b0f0,_0x5a00f6,_0x3e0737[_0x447c6e(0x150)](0x3));_0x35c1aa['rangeKey']=_0x524f40,this[_0x447c6e(0xbc)][_0x54b0f0]=_0x35c1aa,_0x2f7a59[_0x447c6e(0x38f)](_0x54b0f0,_0x5a00f6),_0x307f5a['push']({'index':_0x11cc7f,'dataField':_0x35c1aa});}}return{'updateDataFieldList':_0x307f5a,'collection':_0x2f7a59};}[_0x2b16d4(0x2a1)](_0x2b6b11){const _0x56ab89=_0x2b16d4;return this[_0x56ab89(0x351)][_0x56ab89(0x123)]()[_0x56ab89(0x10b)]+'\x20'+_0x282877['numberToABC'](_0x2b6b11);}[_0x2b16d4(0x284)](_0x4abbd8,_0x19a6ed){return _0x4abbd8==null||_0x4abbd8===''?this['_getAutoName'](_0x19a6ed):String(_0x4abbd8);}['getCollection'](_0x1aa64b){const _0x2e5ec2=_0x2b16d4;return this[_0x2e5ec2(0x256)][_0x1aa64b];}['addCollection'](_0x51b42a,_0x564188,_0x4d5f2d,_0x31fe51){const _0x25b695=_0x2b16d4;this[_0x25b695(0x256)][_0x51b42a]=_0x564188,_0x564188[_0x25b695(0xc6)](_0x4d5f2d),this['_host'][_0x25b695(0x152)]({'token':_0x51b42a,'type':_0xa08ad4[_0x25b695(0x183)],'dataRangeInfo':_0x4d5f2d,'targetCellInfo':_0x31fe51});}[_0x2b16d4(0x128)](_0x8d5cee,_0x2acaaf){const _0x3249c6=_0x2b16d4,_0x35b5ed=this[_0x3249c6(0xd9)](_0x8d5cee),_0x8995f3=_0x35b5ed[_0x3249c6(0x1b3)]();let _0x19cab1=0x0;for(const _0x4d415d of _0x8995f3){const _0x22a60a=_0x35b5ed[_0x3249c6(0x158)](_0x4d415d),_0x3cbdb0=this[_0x3249c6(0x2d6)](_0x2acaaf,_0x19cab1);this[_0x3249c6(0x155)](_0x22a60a[_0x3249c6(0xf7)],_0x3cbdb0),_0x19cab1++;}}['getPivotDirtyViewInfo'](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x571127,_0x458257){const _0x338887=_0x2b16d4;if(this[_0x338887(0xd9)](_0x571127)){const _0x1264d8=this[_0x338887(0xaf)](_0x458257),_0x14b898=[];for(const _0x3ae779 of _0x1264d8)this[_0x338887(0x129)][_0x3ae779]!==void 0x0&&_0x14b898['push'](this['rangeKeyMap'][_0x3ae779]);const _0x961fa5=this[_0x338887(0xab)](_0x571127),_0xecc38c=[],_0x32a8c8=new Set(_0x14b898);for(const _0x2c3d65 of _0x961fa5)_0x32a8c8[_0x338887(0x105)](_0x2c3d65)||_0xecc38c['push'](_0x2c3d65);return _0xecc38c;}}['getMatrixValue'](_0x3736a7,_0x457ff7,_0x1b3877,_0x179a6b,_0x1757bc){const _0x567d9c=_0x2b16d4;return _0x457ff7&&_0x457ff7[_0x567d9c(0x1e3)](_0x179a6b,_0x1757bc)?_0x457ff7[_0x567d9c(0x1e3)](_0x179a6b,_0x1757bc):_0x1b3877&&_0x1b3877['getValue'](_0x179a6b,_0x1757bc)?_0x1b3877[_0x567d9c(0x1e3)](_0x179a6b,_0x1757bc):_0x3736a7[_0x567d9c(0x1e3)](_0x179a6b,_0x1757bc);}[_0x2b16d4(0x2c9)](_0x1f5ebf,_0x4a531d,_0x33105a,_0x35e2c4){const _0x57ce44=_0x2b16d4,_0x33078c=this['dataFields'][_0x1f5ebf];if(!_0x33078c)return;const {subUnitId:_0x5b8afb,range:_0xeaaf40,unitId:_0x47952b}=_0x4a531d,_0x443960=this['_univerInstanceService'][_0x57ce44(0x352)](_0x47952b);if(!_0x443960){console['error'](_0x57ce44(0xe3));return;}const _0x423b4c=_0x443960[_0x57ce44(0x374)](_0x5b8afb),_0x360a50=_0x423b4c[_0x57ce44(0x2d9)](),{arrayFormulaCellDataMatrix:_0x34feab,unitDataMatrix:_0x399d2d}=_0x35e2c4||{},{startRow:_0x47fef2,startColumn:_0x6fdea1,endRow:_0x420837}=this[_0x57ce44(0xfc)](_0xeaaf40,_0x423b4c);_0x33078c[_0x57ce44(0x173)]();const _0x32284c=_0x443960[_0x57ce44(0x30b)](),_0x2ac544={},_0x3886c9=this['getMatrixValue'](_0x360a50,_0x34feab,_0x399d2d,_0x47fef2,_0x6fdea1+_0x33105a);let _0x3f2680=this[_0x57ce44(0xa9)](_0x3886c9,_0x32284c,_0x2ac544);_0x3e0737[_0x57ce44(0x9d)](_0x3f2680)&&(_0x3f2680=_0x282877[_0x57ce44(0x274)][_0x57ce44(0x251)](_0x3f2680['f'],Number(_0x3f2680['v'])));const _0x2dcade=this[_0x57ce44(0x284)](_0x3f2680,_0x6fdea1+_0x33105a);_0x33078c[_0x57ce44(0x112)](_0x2dcade);for(let _0x245f59=_0x47fef2+0x1;_0x245f59<=_0x420837;_0x245f59++){const _0x4bb01d=this['getMatrixValue'](_0x360a50,_0x34feab,_0x399d2d,_0x245f59,_0x6fdea1+_0x33105a);_0x33078c[_0x57ce44(0xca)](this[_0x57ce44(0xa9)](_0x4bb01d,_0x32284c,_0x2ac544),_0x245f59-0x1-_0x47fef2);}}[_0x2b16d4(0x265)](_0x20e35c,_0x75a18,_0x241495){const _0x4ab988=_0x2b16d4,{subUnitId:_0x2053b1,range:_0x5974be,unitId:_0x1d337b}=_0x241495,_0x5d1beb=this[_0x4ab988(0x12c)]['getUnit'](_0x1d337b);if(!_0x5d1beb){console[_0x4ab988(0x18b)](_0x4ab988(0xe3));return;}const _0x20b734=_0x5d1beb['getSheetBySheetId'](_0x2053b1),_0x3085f1=_0x20b734[_0x4ab988(0x2d9)](),{startRow:_0x41baca,startColumn:_0xe9a5cf,endRow:_0x515913}=this[_0x4ab988(0xfc)](_0x5974be,_0x20b734),_0x13761e=_0x5d1beb[_0x4ab988(0x30b)](),_0x9fc322={};for(const {dataField:_0x2808c4,index:_0x92ae5e}of _0x75a18){_0x2808c4['reset']();const _0x251a60=this['getMatrixValue'](_0x3085f1,void 0x0,void 0x0,_0x41baca,_0xe9a5cf+_0x92ae5e);let _0x3343ce=this[_0x4ab988(0xa9)](_0x251a60,_0x13761e,_0x9fc322);_0x3e0737[_0x4ab988(0x9d)](_0x3343ce)&&(_0x3343ce=_0x282877['numfmt'][_0x4ab988(0x251)](_0x3343ce['f'],Number(_0x3343ce['v'])));const _0x438d4c=this['uniqueDataFieldName'](_0x3343ce,_0xe9a5cf+_0x92ae5e);_0x2808c4['setName'](_0x438d4c);}_0x20e35c[_0x4ab988(0x26f)]();for(let _0x271a15=_0x41baca+0x1;_0x271a15<=_0x515913;_0x271a15++)for(const {index:_0x1a3227,dataField:_0x2f46fe}of _0x75a18){const _0x3e7178=_0x3085f1['getValue'](_0x271a15,_0xe9a5cf+_0x1a3227);_0x2f46fe[_0x4ab988(0xca)](this[_0x4ab988(0xa9)](_0x3e7178,_0x13761e,_0x9fc322),_0x271a15-0x1-_0x41baca);}_0x20e35c[_0x4ab988(0x25b)](_0x515913-_0x41baca);}[_0x2b16d4(0xaf)](_0x4601d6){const _0x3198b0=_0x2b16d4,{range:_0x5420f4}=_0x4601d6,{startColumn:_0x4cd2d2,endColumn:_0x213901}=_0x5420f4,_0x34125e=[];for(let _0x33ac8a=_0x4cd2d2;_0x33ac8a<=_0x213901;_0x33ac8a++)_0x34125e['push'](this[_0x3198b0(0x2d6)](_0x4601d6,_0x33ac8a));return _0x34125e;}[_0x2b16d4(0xa9)](_0x33ba57,_0x49cad2,_0x2df411){const _0x5c9550=_0x2b16d4;if(_0x33ba57){const {s:_0x3becfe,v:_0x484ab4,t:_0x548069,p:_0x3a145c}=_0x33ba57;if(_0x3a145c)return _0x12ccd5(_0x3a145c);const _0x4e36e3=_0x49cad2[_0x5c9550(0x1a9)](_0x3becfe);if(_0x4e36e3&&_0x548069===_0x282877[_0x5c9550(0x1a8)][_0x5c9550(0xec)]&&_0x4e36e3['n']){const {pattern:_0x35bc6c}=_0x4e36e3['n'];_0x2df411[_0x35bc6c]||(_0x2df411[_0x35bc6c]=_0x282877[_0x5c9550(0x274)][_0x5c9550(0x1b5)](_0x35bc6c));const _0x1b7fb6=_0x2df411[_0x35bc6c],_0x2a3243=_0x1b7fb6[_0x5c9550(0x110)];if(_0x1b7fb6[_0x5c9550(0x376)])return String(_0x484ab4);if(_0x2a3243)return{'v':_0x484ab4,'f':_0x35bc6c};}if(_0x548069===_0x282877[_0x5c9550(0x1a8)][_0x5c9550(0xec)])return Number(_0x484ab4);if(_0x548069===_0x282877[_0x5c9550(0x1a8)][_0x5c9550(0x226)]||_0x548069===_0x282877['CellValueType'][_0x5c9550(0xcb)])return String(_0x484ab4);if(_0x548069===void 0x0){const _0x3fded9=Number(_0x484ab4);if(!Number['isNaN'](_0x3fded9)&&String(_0x3fded9)===_0x484ab4)return _0x3fded9;}return _0x484ab4!=null?_0x484ab4:null;}else return null;}[_0x2b16d4(0x167)](_0x128ee4){const _0x138e1d=_0x2b16d4,{sheetName:_0x30cf9d,range:_0x3a3d2b,unitId:_0x404849}=_0x128ee4,_0x4a934b=this[_0x138e1d(0x12c)][_0x138e1d(0x352)](_0x404849);if(!_0x4a934b)return console['error']('workbook\x20is\x20not\x20found'),{'header':[],'data':[]};const _0x5789a8=_0x4a934b['getSheetBySheetName'](_0x30cf9d),_0x271ecd=_0x5789a8[_0x138e1d(0x2d9)](),{startRow:_0xc35d69,startColumn:_0x129527,endRow:_0x4575cb,endColumn:_0x185762}=this[_0x138e1d(0xfc)](_0x3a3d2b,_0x5789a8),_0x552326=_0x4a934b['getStyles'](),_0x4f77e9=[],_0x461977=[],_0x15d253={};for(let _0x32207e=_0xc35d69;_0x32207e<=_0x4575cb;_0x32207e++){const _0xbb9f9e=[];for(let _0x16d1af=_0x129527;_0x16d1af<=_0x185762;_0x16d1af++){const _0x5c2983=_0x271ecd[_0x138e1d(0x1e3)](_0x32207e,_0x16d1af);_0x32207e===_0xc35d69?_0x4f77e9[_0x138e1d(0x338)](_0x5c2983==null?null:String(_0x5c2983['v'])):_0xbb9f9e[_0x138e1d(0x338)](this[_0x138e1d(0xa9)](_0x5c2983,_0x552326,_0x15d253));}_0x461977[_0x138e1d(0x338)](_0xbb9f9e);}return{'header':_0x4f77e9,'data':_0x461977};}['toJSON'](){const _0x1d0b3f=_0x2b16d4;return super[_0x1d0b3f(0x316)]();}[_0x2b16d4(0x39c)](_0xda9034){const _0x3af392=_0x2b16d4;super['fromJSON'](_0xda9034),this[_0x3af392(0xdc)]();}['dispose'](){const _0x476904=_0x2b16d4;super[_0x476904(0x2be)](),this['rangeKeyMap']={},this[_0x476904(0x351)]=null;}}const _0x226bb9=_0x56fba0=>{const _0x86ad12=_0x2b16d4,{targetCellInfo:_0x21b190}=_0x56fba0,{matrixCache:_0xa44448,rangesCache:_0x14e697}=_0x943949({'filter':_0x86ad12(0x395),'row':_0x86ad12(0x2ef),'column':'Column','values':_0x86ad12(0x15f)},_0x21b190),_0x342a7f=new _0x282877['ObjectMatrix']();return _0xa44448['forValue']((_0x368b4e,_0x1e19ee,_0x574611)=>{const _0x22f2eb=_0x86ad12;_0x342a7f[_0x22f2eb(0x39a)](_0x368b4e,_0x1e19ee,_0x574611);}),{'matrix':_0x342a7f,'rangesCache':_0x14e697};},_0x33694f=_0x1f9377=>{const _0x132bc2=_0x2b16d4;let _0x40a3eb;if(_0x1f9377!=null&&_0x1f9377['v']||(_0x1f9377==null?void 0x0:_0x1f9377['v'])===0x0){_0x40a3eb||(_0x40a3eb={});const _0x5317ab=_0x55f875(_0x1f9377['v']);typeof _0x5317ab=='number'?_0x40a3eb['t']=_0x282877[_0x132bc2(0x1a8)][_0x132bc2(0xec)]:typeof _0x5317ab==_0x132bc2(0x168)&&(_0x40a3eb['t']=_0x282877[_0x132bc2(0x1a8)]['STRING']),_0x40a3eb['v']=_0x5317ab;}return _0x40a3eb;},_0x1ba75d=(_0x306e39,_0x11fe68,_0x107a36)=>{const _0x186277=_0x2b16d4;var _0x4071ab,_0x2be47c,_0x43db7d,_0x3df8d5,_0x28674f,_0x9363a9,_0x4a5ed9,_0x173b79,_0x2b24d5,_0x230b34,_0x1991c7,_0x2f8851;const {cornerView:_0x5c8f92,rowView:_0x34ca94,colView:_0x23f293,dataView:_0x363790,pageView:_0x5e70e0,formatMap:_0x45a55c}=_0x306e39,{row:_0xf01a1,col:_0x33eb65}=_0x11fe68,_0x23a841=new _0x282877[(_0x186277(0x184))]();let _0x4ffc80=_0xf01a1,_0x2c48af=_0x33eb65;Object[_0x186277(0x12a)](_0x5e70e0[_0x186277(0x17f)])[_0x186277(0xff)](_0x15f4ef=>{const _0x1d3732=_0x186277;Object[_0x1d3732(0x12a)](_0x5e70e0['data'][Number(_0x15f4ef)])[_0x1d3732(0xff)](_0x1efda1=>{const _0x40c18b=_0x1d3732,_0x12576b={..._0x5e70e0[_0x40c18b(0x17f)][Number(_0x15f4ef)][Number(_0x1efda1)]};_0x23a841[_0x40c18b(0x39a)](Number(_0x15f4ef)+_0x4ffc80,Number(_0x1efda1)+_0x2c48af,_0x33694f(_0x12576b));});});const _0x5c1899=Object[_0x186277(0x12a)](_0x5e70e0[_0x186277(0x17f)])[_0x186277(0x27b)];_0x4ffc80+=_0x5c1899+(_0x5c1899?_0x44f3d5:0x0);const _0x402a35=_0x5c8f92['getRowCount'](),_0x745ed0=_0x5c8f92[_0x186277(0xd4)]();for(let _0x352244=0x0;_0x352244<_0x402a35;_0x352244++)for(let _0x585b3a=0x0;_0x585b3a<_0x745ed0;_0x585b3a++){const _0x24e091={...(_0x2be47c=(_0x4071ab=_0x5c8f92['data'])==null?void 0x0:_0x4071ab[_0x352244])==null?void 0x0:_0x2be47c[_0x585b3a]};_0x24e091&&((_0x43db7d=_0x34ca94[_0x186277(0x1a1)][_0x585b3a])!=null&&_0x43db7d['isValue'])&&_0x585b3a===_0x745ed0-0x1&&_0x352244===_0x402a35-0x1&&(_0x24e091['v']=''+_0x107a36[_0x186277(0x2ba)]),_0x23a841[_0x186277(0x39a)](_0x352244+_0x4ffc80,_0x585b3a+_0x2c48af,_0x33694f(_0x24e091));}_0x2c48af+=_0x745ed0;const _0x1f7434=_0x23f293['headerMap'],_0x583916=_0x23f293[_0x186277(0x2f4)]()>=0x0?_0x23f293[_0x186277(0x2f4)]()+0x1:0x0,_0x1de568=_0x23f293[_0x186277(0x21f)]()>=0x0?_0x23f293[_0x186277(0x21f)]()+0x1:0x0;for(let _0x1e265c=0x0;_0x1e265c<_0x1de568;_0x1e265c++)for(let _0x126dfd=0x0;_0x126dfd<_0x583916;_0x126dfd++){const _0x27c7cf={...(_0x28674f=(_0x3df8d5=_0x23f293[_0x186277(0x17f)])==null?void 0x0:_0x3df8d5[_0x1e265c])==null?void 0x0:_0x28674f[_0x126dfd]},_0x43b9d4=(_0x9363a9=_0x1f7434[_0x1e265c])==null?void 0x0:_0x9363a9[_0x186277(0x19a)],_0x2faf2d=_0x45a55c[_0x43b9d4];_0x27c7cf&&(_0x27c7cf['v']=_0x22656d(_0x27c7cf,_0x1e265c===0x0&&((_0x4a5ed9=_0x23f293[_0x186277(0x106)](_0x126dfd+0x1))==null?void 0x0:_0x4a5ed9['isValue']),_0x2faf2d,_0x107a36)),_0x23a841[_0x186277(0x39a)](_0x1e265c+_0x4ffc80,_0x126dfd+_0x2c48af,_0x33694f(_0x27c7cf));}_0x4ffc80+=_0x402a35;const _0x2e74c2=_0x34ca94[_0x186277(0x1a1)],_0x54046b=_0x34ca94[_0x186277(0x2f4)]()>=0x0?_0x34ca94['getLastRow']()+0x1:0x0,_0x3d1c84=_0x34ca94[_0x186277(0x21f)]()>=0x0?_0x34ca94['getLastCol']()+0x1:0x0;for(let _0x3781db=0x0;_0x3781db<_0x54046b;_0x3781db++)for(let _0x3ad85d=0x0;_0x3ad85d<_0x3d1c84;_0x3ad85d++){const _0x11f311={...(_0x2b24d5=(_0x173b79=_0x34ca94['data'])==null?void 0x0:_0x173b79[_0x3781db])==null?void 0x0:_0x2b24d5[_0x3ad85d]},_0x974f6c=(_0x230b34=_0x2e74c2[_0x3ad85d])==null?void 0x0:_0x230b34[_0x186277(0x19a)],_0x1f6515=_0x45a55c[_0x974f6c];_0x11f311&&(_0x11f311['v']=_0x22656d(_0x11f311,!0x1,_0x1f6515,_0x107a36)),_0x23a841[_0x186277(0x39a)](_0x3781db+_0x4ffc80,_0x3ad85d+_0x33eb65,_0x33694f(_0x11f311));}const _0x173aa7=_0x363790['getRowCount'](),_0x4fc72d=_0x363790[_0x186277(0xd4)]();for(let _0x49622a=0x0;_0x49622a<_0x173aa7;_0x49622a++)for(let _0x2c53fe=0x0;_0x2c53fe<_0x4fc72d;_0x2c53fe++){const _0x48a82f={...(_0x2f8851=(_0x1991c7=_0x363790[_0x186277(0x17f)])==null?void 0x0:_0x1991c7[_0x49622a])==null?void 0x0:_0x2f8851[_0x2c53fe]};_0x23a841[_0x186277(0x39a)](_0x49622a+_0x4ffc80,_0x2c53fe+_0x2c48af,_0x33694f(_0x48a82f));}return _0x23a841;},_0x3fd1d0=_0x24ffd7=>{const _0x5d9e18=_0x2b16d4,{view:_0x188c10,targetCellInfo:_0x5d8040,isEmpty:_0x13e3d0,textInfo:_0x3efef0}=_0x24ffd7;if(_0x13e3d0)return _0x226bb9(_0x24ffd7);const {pageView:_0x104cf5,cornerView:_0x36ef4e,rowView:_0x39049c,colView:_0x180eca,dataView:_0x324fb6}=_0x188c10,_0x5b2b95=_0x37a9a3(_0x5d8040,_0x104cf5,!0x0),_0x40f164=_0x104cf5[_0x5d9e18(0xcf)]>=0x0?_0x104cf5[_0x5d9e18(0xcf)]+0x1:0x0,_0x387dcd=_0x36ef4e[_0x5d9e18(0x2d2)](),_0x36f3b4=_0x36ef4e[_0x5d9e18(0xd4)](),_0x235d32=_0x5b2b95[_0x5d9e18(0x27b)]>0x0?_0x44f3d5:0x0,_0x50eeba=_0x37a9a3({'row':_0x5d8040[_0x5d9e18(0x303)]+_0x40f164+_0x235d32,'col':_0x5d8040[_0x5d9e18(0x1da)]},_0x36ef4e,!0x1,!0x1),_0x27c5dc=_0x37a9a3({'row':_0x5d8040['row']+_0x40f164+_0x235d32+_0x387dcd,'col':_0x5d8040[_0x5d9e18(0x1da)]},_0x39049c,!0x1,!0x0),_0x2ea5e0=_0x37a9a3({'row':_0x5d8040[_0x5d9e18(0x303)]+_0x40f164+_0x235d32,'col':_0x5d8040[_0x5d9e18(0x1da)]+_0x36f3b4},_0x180eca,!0x1,!0x0),_0x3067fa=_0x37a9a3({'row':_0x5d8040['row']+_0x40f164+_0x235d32+_0x387dcd,'col':_0x5d8040[_0x5d9e18(0x1da)]+_0x36f3b4},_0x324fb6,!0x1,!0x1),_0x2cda47={'rowRanges':_0x27c5dc,'colRanges':_0x2ea5e0,'cornerRanges':_0x50eeba,'dataRanges':_0x3067fa,'pageRanges':_0x5b2b95};return{'matrix':_0x1ba75d(_0x188c10,_0x5d8040,_0x3efef0),'rangesCache':_0x2cda47};};var _0x279e8c=Object[_0x2b16d4(0x34b)],_0x1e132e=(_0x33cdec,_0x284e20,_0x2650dd,_0x397aba)=>{const _0x572d60=_0x2b16d4;for(var _0x2432e4=_0x397aba>0x1?void 0x0:_0x397aba?_0x279e8c(_0x284e20,_0x2650dd):_0x284e20,_0x1a9ce4=_0x33cdec[_0x572d60(0x27b)]-0x1,_0x1cab90;_0x1a9ce4>=0x0;_0x1a9ce4--)(_0x1cab90=_0x33cdec[_0x1a9ce4])&&(_0x2432e4=_0x1cab90(_0x2432e4)||_0x2432e4);return _0x2432e4;},_0x5aa427=(_0x3f86d3,_0x599fc4)=>(_0x4f7fa7,_0x409448)=>_0x599fc4(_0x4f7fa7,_0x409448,_0x3f86d3);_0x24d96c[_0x2b16d4(0x1b4)]=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x16a86b,_0x143122,_0x39d639,_0x4f92c7,_0x431dd6){const _0x122583=_0x2b16d4;super(),_0x2e1abd(this,_0x122583(0xed),new Map()),_0x2e1abd(this,_0x122583(0x25f),new Map()),_0x2e1abd(this,_0x122583(0x1ac),new Map()),_0x2e1abd(this,_0x122583(0x3a4)),_0x2e1abd(this,_0x122583(0xe6),new _0x2b003b[(_0x122583(0x35c))]()),_0x2e1abd(this,_0x122583(0x1f1),this['_collectionChange$'][_0x122583(0x259)]()),_0x2e1abd(this,'_viewData$',new _0x2b003b['Subject']()),_0x2e1abd(this,'viewData$',this['_viewData$']['asObservable']()),_0x2e1abd(this,_0x122583(0x268),new _0x2b003b[(_0x122583(0x35c))]()),_0x2e1abd(this,_0x122583(0x334),this['_fieldsCollectionChange$'][_0x122583(0x259)]()),_0x2e1abd(this,_0x122583(0x111),new Map()),_0x2e1abd(this,_0x122583(0xdf),[]),_0x2e1abd(this,_0x122583(0x263),new Map()),(this[_0x122583(0x1fe)]=_0x16a86b,this[_0x122583(0x12c)]=_0x143122,this['_lifecycleService']=_0x39d639,this[_0x122583(0x2e0)]=_0x4f92c7,this[_0x122583(0x30e)]=_0x431dd6,this[_0x122583(0x1a2)]());}[_0x2b16d4(0x123)](){const _0x1a56e5=_0x2b16d4;return this[_0x1a56e5(0x3a4)]?this[_0x1a56e5(0x3a4)]:_0xf69c2b;}['setTextInfo'](_0x59c03e){const _0x2557d5=_0x2b16d4;this[_0x2557d5(0x3a4)]=_0x59c03e;}['handleMoveRange'](_0x3ec158){const _0x456ac3=_0x2b16d4;var _0x57c1d8;const {from:_0x3ea79d,to:_0x25eb35,unitId:_0x1ddff7,fromRange:_0x280ab5,toRange:_0x50b95c}=_0x3ec158;if(_0x3ea79d&&_0x25eb35){const _0x524d0c=this[_0x456ac3(0xc9)](_0x1ddff7),_0x4bfeb1=this[_0x456ac3(0xed)][_0x456ac3(0x1a9)](_0x1ddff7),_0x3f7fbc=(_0x57c1d8=this[_0x456ac3(0x12c)][_0x456ac3(0x352)](_0x1ddff7))==null?void 0x0:_0x57c1d8['getSheetBySheetId'](_0x25eb35[_0x456ac3(0x204)]);if(!_0x4bfeb1||!_0x3f7fbc)return;const _0x235b3c=_0x3f7fbc==null?void 0x0:_0x3f7fbc[_0x456ac3(0x241)]();for(const [_0x5e314b,_0x1de526]of _0x4bfeb1[_0x456ac3(0x2d8)]())for(const [_0x42a0ec,_0x251fb9]of _0x1de526[_0x456ac3(0x2d8)]()){const {sourceRangeInfo:_0x40be1f}=_0x251fb9;if(_0x40be1f[_0x456ac3(0x1bc)]===_0x1ddff7&&_0x40be1f[_0x456ac3(0x204)]===_0x3ea79d['subUnitId']&&_0x282877['Rectangle'][_0x456ac3(0x235)](_0x280ab5,_0x40be1f['range'])){const _0x4d196c={'row':_0x40be1f['range'][_0x456ac3(0x19f)]-_0x280ab5[_0x456ac3(0x19f)],'col':_0x40be1f[_0x456ac3(0x345)]['startColumn']-_0x280ab5['startColumn']},_0x7487e6={'unitId':_0x1ddff7,'subUnitId':_0x25eb35[_0x456ac3(0x204)],'sheetName':_0x235b3c,'range':{'startRow':_0x50b95c[_0x456ac3(0x19f)]+_0x4d196c[_0x456ac3(0x303)],'endRow':_0x50b95c[_0x456ac3(0x19f)]+_0x4d196c['row']+_0x40be1f[_0x456ac3(0x345)][_0x456ac3(0x39e)]-_0x40be1f[_0x456ac3(0x345)][_0x456ac3(0x19f)],'startColumn':_0x50b95c[_0x456ac3(0x254)]+_0x4d196c[_0x456ac3(0x1da)],'endColumn':_0x50b95c[_0x456ac3(0x254)]+_0x4d196c['col']+_0x40be1f[_0x456ac3(0x345)][_0x456ac3(0x244)]-_0x40be1f[_0x456ac3(0x345)][_0x456ac3(0x254)]}};_0x524d0c[_0x456ac3(0x128)](_0x42a0ec,_0x7487e6);const _0x168fcc={..._0x251fb9,'sourceRangeInfo':_0x7487e6};this[_0x456ac3(0x2c2)](_0x1ddff7,_0x25eb35['subUnitId'],_0x42a0ec,_0x168fcc),this[_0x456ac3(0x152)]({'unitId':_0x1ddff7,'token':_0x42a0ec,'type':_0xa08ad4[_0x456ac3(0x1e6)],'oldSourceRangeInfo':_0x40be1f,'dataRangeInfo':_0x7487e6,'targetCellInfo':_0x251fb9['targetCellInfo']}),this['updateConfig']({'unitId':_0x1ddff7,'subUnitId':_0x25eb35[_0x456ac3(0x204)],'oldSubUnitId':_0x5e314b,'pivotTableId':_0x42a0ec,'pivotTableConfig':_0x168fcc,'collectionConfig':_0x524d0c['toJSON']()});}}}}[_0x2b16d4(0x152)](_0x21a4a6){const _0x8e7c47=_0x2b16d4;this[_0x8e7c47(0xe6)][_0x8e7c47(0x23b)](_0x21a4a6);}[_0x2b16d4(0xc9)](_0x42b324){const _0x1015b5=_0x2b16d4;let _0x240e53=this[_0x1015b5(0x111)][_0x1015b5(0x1a9)](_0x42b324);return _0x240e53||(_0x240e53=new _0xe67c3c(this,this['_univerInstanceService']),this['_dataFieldManagerCollection'][_0x1015b5(0x28f)](_0x42b324,_0x240e53)),_0x240e53;}[_0x2b16d4(0xd9)](_0x45623f,_0x5af23b){const _0x357570=_0x2b16d4;return this[_0x357570(0xc9)](_0x45623f)[_0x357570(0x256)][_0x5af23b];}[_0x2b16d4(0x171)](_0x4c74dd,_0x54f73a,_0x1b7d66){const _0x1436bf=_0x2b16d4;return this[_0x1436bf(0xc9)](_0x4c74dd)[_0x1436bf(0x171)](_0x54f73a,_0x1b7d66);}[_0x2b16d4(0x28c)](_0x297656,_0x1048bd){const _0x308d4f=_0x2b16d4;let _0x464f71=this[_0x308d4f(0xed)][_0x308d4f(0x1a9)](_0x297656);_0x464f71||(_0x464f71=new Map(),this[_0x308d4f(0xed)][_0x308d4f(0x28f)](_0x297656,_0x464f71));let _0x279592=_0x464f71[_0x308d4f(0x1a9)](_0x1048bd);return _0x279592||(_0x279592=new Map(),_0x464f71['set'](_0x1048bd,_0x279592)),_0x279592;}[_0x2b16d4(0x2c2)](_0x520afb,_0x2723b4,_0x906397,_0x5ce8c7){const _0xc470fa=_0x2b16d4;this['_ensurePivotMap'](_0x520afb,_0x2723b4)[_0xc470fa(0x28f)](_0x906397,_0x5ce8c7);}[_0x2b16d4(0x146)](_0x5a39ea,_0x26e917,_0xa19859){const _0x2e6ab3=_0x2b16d4;var _0x1bf342,_0x444e8b,_0xed82d8,_0x4b47e6;((_0x444e8b=(_0x1bf342=this[_0x2e6ab3(0xed)]['get'](_0x5a39ea))==null?void 0x0:_0x1bf342['get'](_0x26e917))==null?void 0x0:_0x444e8b[_0x2e6ab3(0x1a9)](_0xa19859))&&((_0x4b47e6=(_0xed82d8=this['_model']['get'](_0x5a39ea))==null?void 0x0:_0xed82d8['get'](_0x26e917))==null||_0x4b47e6[_0x2e6ab3(0x1c1)](_0xa19859));}[_0x2b16d4(0x1e5)](_0x379618,_0x8663ed){this['_pivotTableInstanceCache']['set'](_0x379618,_0x8663ed);}[_0x2b16d4(0x1d0)](_0x2e5767){const _0x57bd17=_0x2b16d4;this['_pivotTableInstanceCache'][_0x57bd17(0x1c1)](_0x2e5767);}[_0x2b16d4(0x2cd)](_0xe3d5b5,_0x47f009){const _0x546f8e=_0x2b16d4;let _0x143846=this[_0x546f8e(0x1ac)]['get'](_0xe3d5b5);_0x143846||(_0x143846=new Map(),this[_0x546f8e(0x1ac)][_0x546f8e(0x28f)](_0xe3d5b5,_0x143846));let _0x14eb3e=_0x143846[_0x546f8e(0x1a9)](_0x47f009);return _0x14eb3e||(_0x14eb3e=new Map(),_0x143846[_0x546f8e(0x28f)](_0x47f009,_0x14eb3e)),_0x14eb3e;}[_0x2b16d4(0x20d)](_0x11bdb8){const _0x197b45=_0x2b16d4,{unitId:_0x4ab223,subUnitId:_0x106509,pivotTableId:_0x28b44b,pivotTableConfig:_0x4277f8,collectionConfig:_0x2946bc}=_0x11bdb8,_0x40fa79={'unitId':_0x4ab223,'subUnitId':_0x106509,'oldSubUnitId':_0x106509,'pivotTableId':_0x28b44b,'pivotTableConfig':_0x4277f8,'collectionConfig':_0x2946bc};this[_0x197b45(0x2e0)]['executeCommand'](_0x5554ef['id'],_0x40fa79,{'onlyLocal':!0x0});}[_0x2b16d4(0xa3)](_0xdd66cc,_0x29e62d,_0x2429df,_0x102070,_0x1ea208,_0x5b982f,_0x8f6dee,_0x57c950=!0x1){const _0x1ad59=_0x2b16d4;var _0x54cecc;this[_0x1ad59(0x2e0)][_0x1ad59(0xe0)](_0x22de79['id'],{'single':{'unitId':_0xdd66cc,'subUnitId':_0x29e62d,'type':_0x2429df,'pivotTableId':_0x102070,'view':_0x1ea208,'pivotConfig':_0x5b982f},'collectionConfig':{[_0xdd66cc]:_0x8f6dee}},{'onlyLocal':!0x0});const _0x3e1960=!!((_0x54cecc=this[_0x1ad59(0x185)](_0x102070))!=null&&_0x54cecc[_0x1ad59(0xa8)]()),_0x4b0622=this[_0x1ad59(0x13c)](_0xdd66cc,_0x29e62d,_0x102070);_0x4b0622&&this['updateViewData']({'view':_0x1ea208,'pivotTableId':_0x102070,'textInfo':this[_0x1ad59(0x123)](),'isEmpty':_0x3e1960,'targetCellInfo':_0x4b0622[_0x1ad59(0x360)]},_0x57c950);}[_0x2b16d4(0x1ff)](_0xda4f1,_0x1695ce){const _0x3dd3d5=_0x2b16d4,{targetCellInfo:_0xec903b,pivotTableId:_0x5438e0}=_0xda4f1,{unitId:_0x2907d9,subUnitId:_0x434eaa}=_0xec903b,_0x2ba863=this['_ensureViewDataMap'](_0x2907d9,_0x434eaa),_0xd1258=_0x2ba863[_0x3dd3d5(0x1a9)](_0x5438e0);let _0x1bad09,_0x3a2752;_0xd1258&&(_0x1bad09=_0xd1258[_0x3dd3d5(0xc7)],_0x3a2752=_0xd1258[_0x3dd3d5(0x310)]);const {rangesCache:_0x41e73b,matrix:_0x3bd7a1}=_0x3fd1d0(_0xda4f1);_0x2ba863[_0x3dd3d5(0x28f)](_0x5438e0,{'rangeCache':_0x41e73b,'matrix':_0x3bd7a1,'oldMatrix':_0x3a2752,'oldRangeCache':_0x1bad09}),_0x1695ce||this[_0x3dd3d5(0xb3)][_0x3dd3d5(0x23b)]({'unitId':_0x2907d9,'subUnitId':_0x434eaa,'pivotTableId':_0x5438e0});}[_0x2b16d4(0x11d)](_0x18f14b,_0x21ae9f,_0x1e92c5,_0x207ea6,_0x5b71dc){this['_updateModelCache'](_0x18f14b,_0x21ae9f,_0x1e92c5,_0x5b71dc),this['_updatePivotTableInstanceCache'](_0x1e92c5,_0x207ea6);}[_0x2b16d4(0x258)](_0x2ce6a6,_0x248c09,_0x221be8){const _0x5a68ac=_0x2b16d4,_0x28af79=this[_0x5a68ac(0xc9)](_0x2ce6a6);_0x28af79[_0x5a68ac(0xab)](_0x221be8)[_0x5a68ac(0xff)](_0xffa966=>{_0x28af79['deleteDataField'](_0xffa966);}),this[_0x5a68ac(0x12b)](_0x2ce6a6,_0x221be8),this[_0x5a68ac(0x146)](_0x2ce6a6,_0x248c09,_0x221be8),this[_0x5a68ac(0x1d0)](_0x221be8);}[_0x2b16d4(0x27e)](_0x5609d2,_0x43d35a,_0x4d7420,_0x254ad9){const _0x24dd07=_0x2b16d4;this[_0x24dd07(0x2c2)](_0x5609d2,_0x43d35a,_0x4d7420,_0x254ad9);}[_0x2b16d4(0x13c)](_0x2f0561,_0x4fec6b,_0xb5b53e){const _0xbe18c5=_0x2b16d4;var _0x2690c9,_0xe985ba;const _0x2ae96a=(_0xe985ba=(_0x2690c9=this[_0xbe18c5(0xed)]['get'](_0x2f0561))==null?void 0x0:_0x2690c9['get'](_0x4fec6b))==null?void 0x0:_0xe985ba['get'](_0xb5b53e);if(_0x2ae96a)return _0x2ae96a;}[_0x2b16d4(0x2d1)](_0x5af2f5,_0x312f73,_0x5177d5){const _0x22cfaf=_0x2b16d4;var _0x125615,_0x274e50;const _0x37d9e2=(_0x274e50=(_0x125615=this[_0x22cfaf(0xed)][_0x22cfaf(0x1a9)](_0x5af2f5))==null?void 0x0:_0x125615[_0x22cfaf(0x1a9)](_0x312f73))==null?void 0x0:_0x274e50[_0x22cfaf(0x1a9)](_0x5177d5);if(_0x37d9e2)return _0x37d9e2[_0x22cfaf(0x348)];}['getPivotTableInstance'](_0x1d7e18){const _0x5f2313=_0x2b16d4;return this[_0x5f2313(0x25f)][_0x5f2313(0x1a9)](_0x1d7e18);}[_0x2b16d4(0x28d)](_0x1530a4){const _0x35c06f=_0x2b16d4;this[_0x35c06f(0xed)]['delete'](_0x1530a4);const _0x31061d=this['_dataFieldManagerCollection'][_0x35c06f(0x1a9)](_0x1530a4);_0x31061d&&(_0x31061d[_0x35c06f(0x2be)](),this[_0x35c06f(0x111)][_0x35c06f(0x1c1)](_0x1530a4)),this[_0x35c06f(0x1ac)][_0x35c06f(0x1c1)](_0x1530a4),this['needSameDeleteModel']['forEach'](_0x401779=>{const _0x1c3a02=_0x35c06f;_0x401779[_0x1c3a02(0x28d)](_0x1530a4);});}['addCollectionByJSON'](_0x3ebde5,_0x309012,_0xa1bd29,_0x261748){const _0xbea482=_0x2b16d4;return this[_0xbea482(0xc9)](_0xa1bd29[_0xbea482(0x1bc)])['addCollectionByJSON'](_0x3ebde5,_0x309012,_0xa1bd29,_0x261748);}[_0x2b16d4(0x39d)](_0x20247f){const _0x32107f=_0x2b16d4;return this[_0x32107f(0xc9)](_0x20247f[_0x32107f(0x1bc)])[_0x32107f(0x39d)](_0x20247f);}[_0x2b16d4(0x265)](_0x2e3392,_0x2c92e9,_0x40658f){const _0x52b4dc=_0x2b16d4;this[_0x52b4dc(0xc9)](_0x40658f[_0x52b4dc(0x1bc)])[_0x52b4dc(0x265)](_0x2e3392,_0x2c92e9,_0x40658f);}['removeDataField'](_0x26a313,_0x42541a){this['getDataFieldManager'](_0x26a313)['deleteDataField'](_0x42541a);}['removeCollections'](_0x1c0a19,_0x3f9896){const _0x534be4=_0x2b16d4;this[_0x534be4(0xc9)](_0x1c0a19)['removeCollectionImp'](_0x3f9896);}[_0x2b16d4(0x231)](_0x2ea26d,_0x1df63d){const _0x312483=_0x2b16d4;var _0x4e7f3f;return(_0x4e7f3f=this['_model'][_0x312483(0x1a9)](_0x2ea26d))==null?void 0x0:_0x4e7f3f['get'](_0x1df63d);}['getTargetByPivotId'](_0x59ebf1){const _0x221f24=_0x2b16d4;for(const [_0x15655a,_0x5bf62c]of this[_0x221f24(0xed)][_0x221f24(0x2d8)]())for(const [_0x5ea5ce,_0x38b3b5]of _0x5bf62c[_0x221f24(0x2d8)]())if(_0x38b3b5[_0x221f24(0x105)](_0x59ebf1))return{'unitId':_0x15655a,'subUnitId':_0x5ea5ce};return null;}['sideEffectUpdateWorkerCache'](_0x27dfc4,_0x569de4,_0x254bd0,_0x2f8474){const _0x51a7c0=_0x2b16d4,_0x3232ef=this[_0x51a7c0(0x2cd)](_0x27dfc4,_0x569de4);_0x2f8474?_0x3232ef[_0x51a7c0(0x28f)](_0x254bd0,_0x2f8474):_0x3232ef[_0x51a7c0(0x1c1)](_0x254bd0),this[_0x51a7c0(0xb3)][_0x51a7c0(0x23b)]({'unitId':_0x27dfc4,'subUnitId':_0x569de4,'pivotTableId':_0x254bd0});}['dispose'](){super['dispose']();}[_0x2b16d4(0xfa)](_0x161e67,_0x366359,_0x80a953){const _0x50305c=_0x2b16d4;var _0x164425,_0x11f6e3;const _0x27ff76=(_0x11f6e3=(_0x164425=this[_0x50305c(0x1ac)][_0x50305c(0x1a9)](_0x161e67))==null?void 0x0:_0x164425[_0x50305c(0x1a9)](_0x366359))==null?void 0x0:_0x11f6e3[_0x50305c(0x1a9)](_0x80a953);return _0x27ff76||null;}[_0x2b16d4(0x224)](_0x43df31){const _0x3994ae=_0x2b16d4;this[_0x3994ae(0x236)](_0x43df31);}['updateDirtyPivotTable'](_0x2b80f7){const _0x2461fe=_0x2b16d4,{token:_0x139884,unitId:_0x2ad03c,subUnitId:_0x239ebc}=_0x2b80f7,_0x2e00a5=_0x2ad03c+'-'+_0x239ebc+'-'+_0x139884;this[_0x2461fe(0x263)]['get'](_0x2e00a5)&&clearTimeout(this[_0x2461fe(0x263)]['get'](_0x2e00a5));const _0x9c413a=setTimeout(()=>{const _0x24a2a5=_0x2461fe;this[_0x24a2a5(0x17c)](_0x2b80f7),this['_queryingMap'][_0x24a2a5(0x1c1)](_0x2e00a5);},_0x167bb3);this[_0x2461fe(0x263)][_0x2461fe(0x28f)](_0x2e00a5,_0x9c413a);}['queryDirtyPivotTable'](_0x513d5f){const _0x23a9bd=_0x2b16d4,{unitId:_0x547ce7,subUnitId:_0x50518c,token:_0xfffd8f,type:_0xec0363,pivotConfig:_0x6aca46}=_0x513d5f,_0x381e33=this[_0x23a9bd(0x185)](_0xfffd8f),_0x4d32e3=_0x381e33==null?void 0x0:_0x381e33[_0x23a9bd(0x341)](),_0x35ab78=_0x6aca46!=null?_0x6aca46:this['getPivotTableConfig'](_0x547ce7,_0x50518c,_0xfffd8f);_0x35ab78&&(_0x35ab78[_0x23a9bd(0xa8)]=!!(_0x381e33!=null&&_0x381e33[_0x23a9bd(0xa8)]())),(_0x4d32e3||_0xec0363===_0xa5664b['Delete'])&&this[_0x23a9bd(0xa3)](_0x547ce7,_0x50518c,_0xec0363,_0xfffd8f,_0x4d32e3,_0x35ab78,this['getDataFieldManager'](_0x547ce7)[_0x23a9bd(0x316)]());}[_0x2b16d4(0x316)](_0x16a08a){const _0x3777d6=_0x2b16d4,_0x419f56={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['getDataFieldManager'](_0x16a08a)&&(_0x419f56[_0x3777d6(0x1e1)][_0x16a08a]=this['getDataFieldManager'](_0x16a08a)['toJSON']()),this[_0x3777d6(0xed)][_0x3777d6(0x1a9)](_0x16a08a)){_0x419f56[_0x3777d6(0x15e)][_0x16a08a]={};const _0x3a9422=this[_0x3777d6(0xed)][_0x3777d6(0x1a9)](_0x16a08a);_0x3a9422!=null&&_0x3a9422[_0x3777d6(0x1a5)]&&[..._0x3a9422[_0x3777d6(0x12a)]()][_0x3777d6(0xff)](_0x4494e3=>{const _0xc14ca6=_0x3777d6,_0x216703=_0x3a9422[_0xc14ca6(0x1a9)](_0x4494e3);_0x216703!=null&&_0x216703[_0xc14ca6(0x1a5)]&&(_0x419f56['pivotTableConfigs'][_0x16a08a][_0x4494e3]={},[..._0x216703[_0xc14ca6(0x12a)]()][_0xc14ca6(0xff)](_0x3ed6ae=>{const _0x30b969=_0xc14ca6,_0x55bfa2=_0x216703[_0x30b969(0x1a9)](_0x3ed6ae);_0x55bfa2&&(_0x419f56[_0x30b969(0x15e)][_0x16a08a][_0x4494e3][_0x3ed6ae]=_0x55bfa2);}));});}return _0x419f56;}['fromJSON'](_0x2c5350){const _0x318564=_0x2b16d4;var _0x23aadb;const {dataFieldManagerConfig:_0x41ae3,pivotTableConfigs:_0x10a81b}=_0x2c5350;_0x41ae3&&Object[_0x318564(0x12a)](_0x41ae3)[_0x318564(0xff)](_0x23a604=>{const _0x7df962=_0x318564;this[_0x7df962(0xc9)](_0x23a604)[_0x7df962(0x39c)](_0x41ae3[_0x23a604]);});const _0xa70be5=[];if(_0x10a81b){const _0x31f5d3=(_0x23aadb=this['_injector'][_0x318564(0x1a9)](_0x282877[_0x318564(0xc1)])['getConfig'](_0x5b0681[_0x318564(0x1e4)]))!=null?_0x23aadb:{},{ls:_0x54ba54,pbk:_0x1f72c1}=_0x31f5d3,_0x2135e3=_0x9a8ebd(_0x1e520c,_0x54ba54,_0x1f72c1)[_0x318564(0x208)];Object[_0x318564(0x12a)](_0x10a81b)[_0x318564(0xff)](_0x5f57a3=>{const _0x5b09a5=_0x318564;let _0x3d6e53=0x0;const _0x5e4cdf=_0x10a81b[_0x5f57a3];Object[_0x5b09a5(0x12a)](_0x5e4cdf)['forEach'](_0x143a74=>{const _0x4410bc=_0x5e4cdf[_0x143a74];Object['keys'](_0x4410bc)['forEach'](_0x2cef01=>{const _0x3c5699=_0x4298,_0x4d552c=_0x4410bc[_0x2cef01];if(_0x4d552c){if(_0x3d6e53>=_0x2135e3)return;_0x3d6e53++;const _0x19d2af=this[_0x3c5699(0xc9)](_0x5f57a3),_0x1a7c45=_0x19d2af[_0x3c5699(0x256)][_0x2cef01],_0x12b7b8=_0x1a7c45[_0x3c5699(0x1b3)]();let _0x124606=0x0;const _0x41881d=[];for(const _0x3410fe of _0x12b7b8){const _0x5b77bc=_0x1a7c45[_0x3c5699(0x158)](_0x3410fe);if(_0x3e0737[_0x3c5699(0x1b7)](_0x5b77bc)){const _0x17d890=_0x5b77bc[_0x3c5699(0x295)](),_0x183351=_0x1a7c45[_0x3c5699(0x158)](_0x17d890);_0x183351&&_0x41881d[_0x3c5699(0x338)]([_0x5b77bc,_0x183351]);continue;}_0x19d2af[_0x3c5699(0x2c9)](_0x3410fe,_0x4d552c[_0x3c5699(0x2ab)],_0x124606),_0x124606++;}_0x41881d['forEach'](([_0x5e4cec,_0x5e692c])=>{const _0xd54208=_0x3c5699;_0x5e4cec[_0xd54208(0xd6)](_0x5e692c);});const _0x174b7f=new _0x3e0737[(_0x3c5699(0x277))](_0x1a7c45);_0x174b7f[_0x3c5699(0x39c)](_0x4d552c[_0x3c5699(0x348)]),this[_0x3c5699(0x11d)](_0x5f57a3,_0x143a74,_0x2cef01,_0x174b7f,_0x4d552c);const _0x2b5d59=_0x174b7f[_0x3c5699(0x341)]();_0xa70be5[_0x3c5699(0x338)]({'unitId':_0x5f57a3,'subUnitId':_0x143a74,'pivotTableId':_0x2cef01,'view':_0x2b5d59[_0x3c5699(0x316)](),'pivotConfig':_0x4d552c,'type':_0xa5664b[_0x3c5699(0x28e)]});const _0x41d6bc=!!_0x174b7f[_0x3c5699(0xa8)](),_0x48667a={'view':_0x2b5d59,'pivotTableId':_0x2cef01,'textInfo':this[_0x3c5699(0x123)](),'isEmpty':_0x41d6bc,'targetCellInfo':_0x4d552c[_0x3c5699(0x360)]};this[_0x3c5699(0x1ff)](_0x48667a,!0x1);}});});});}_0x41ae3&&Object[_0x318564(0x12a)](_0x41ae3)[_0x318564(0xff)](_0x22d533=>{const _0x43333b=_0x318564,_0xc68564=this[_0x43333b(0xc9)](_0x22d533);this[_0x43333b(0x268)][_0x43333b(0x23b)](_0xc68564[_0x43333b(0x256)]);}),this[_0x318564(0x2e0)]['executeCommand'](_0x22de79['id'],{'batch':_0xa70be5,'collectionConfig':_0x41ae3},{'onlyLocal':!0x0});}[_0x2b16d4(0x1a2)](){const _0x24db55=_0x2b16d4;this['disposeWithMe'](this[_0x24db55(0x30e)][_0x24db55(0x9f)]({'toJson':_0x467879=>JSON[_0x24db55(0x11f)](this[_0x24db55(0x316)](_0x467879)),'parseJson':_0x1b2224=>{const _0x6ebfcb=_0x24db55;if(!_0x1b2224)return{};try{return JSON[_0x6ebfcb(0x1ed)](_0x1b2224);}catch{return{};}},'businesses':[_0x282877[_0x24db55(0x20b)][_0x24db55(0x328)]],'pluginName':_0x2734d4,'onLoad':(_0x12aab0,_0x3c754e)=>{const _0x2d920c=_0x24db55;this[_0x2d920c(0x39c)](_0x3c754e);},'onUnLoad':_0x210037=>{const _0x1db5ba=_0x24db55;this[_0x1db5ba(0x28d)](_0x210037);}}));}},_0x24d96c[_0x2b16d4(0x1b4)]=_0x1e132e([_0x5aa427(0x0,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x33a)])),_0x5aa427(0x1,_0x282877[_0x2b16d4(0x165)]),_0x5aa427(0x2,_0x282877['Inject'](_0x282877['LifecycleService'])),_0x5aa427(0x3,_0x282877[_0x2b16d4(0x240)]),_0x5aa427(0x4,_0x282877[_0x2b16d4(0x120)](_0x282877['IResourceManagerService']))],_0x24d96c[_0x2b16d4(0x1b4)]);const _0x5051e7={0x0:{0x0:{'v':_0x2b16d4(0x179),'s':_0x421682}},0x2:{0x1:{'v':'','s':_0x421682},0x2:{'v':'','s':_0x421682},0x3:{'v':_0x2b16d4(0x2a2),'s':_0x421682},0x4:{'v':'','s':_0x421682},0x5:{'v':'','s':_0x421682}},0x3:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x4:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x5:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x6:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x7:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x8:{0x0:{'v':'row','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':_0x2b16d4(0x369),'s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x9:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0xa:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0xb:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0xc:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0xd:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}}},_0xc9fbe4={'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':[]},_0x943949=(_0x32f23a,_0x554042)=>{const _0x1557cd=_0x2b16d4,_0x39489d=new _0x282877[(_0x1557cd(0x184))](),_0x2494d1=new _0x282877['ObjectMatrix'](_0x5051e7),{row:_0x4116e4,col:_0x383a84}=_0x554042;_0x2494d1[_0x1557cd(0x308)]((_0x5e5a86,_0x50c639,_0x547ed4)=>{const _0x481f73=_0x1557cd;let _0x5e34db='';_0x547ed4['v']===_0x481f73(0x179)?_0x5e34db=_0x32f23a['filter']:_0x547ed4['v']===_0x481f73(0x303)?_0x5e34db=_0x32f23a['row']:_0x547ed4['v']===_0x481f73(0x2a2)?_0x5e34db=_0x32f23a[_0x481f73(0x2a2)]:_0x547ed4['v']===_0x481f73(0x369)&&(_0x5e34db=_0x32f23a['values']),_0x39489d['setValue'](_0x5e5a86+_0x4116e4,_0x50c639+_0x383a84,{..._0x547ed4,'v':_0x5e34db});});const _0x34336c=_0x282877[_0x1557cd(0x325)]['deepClone'](_0xc9fbe4);return Object[_0x1557cd(0x12a)](_0xc9fbe4)[_0x1557cd(0xff)](_0x455bd9=>{const _0x1d7c3e=_0x1557cd;_0x34336c[_0x455bd9]=_0xc9fbe4[_0x455bd9]['map'](_0x1387bb=>({..._0x1387bb,'startRow':_0x1387bb[_0x1d7c3e(0x19f)]+_0x4116e4,'endRow':_0x1387bb[_0x1d7c3e(0x39e)]+_0x4116e4,'startColumn':_0x1387bb[_0x1d7c3e(0x254)]+_0x383a84,'endColumn':_0x1387bb[_0x1d7c3e(0x244)]+_0x383a84}));}),{'matrixCache':_0x39489d,'rangesCache':_0x34336c};};function _0x4ce654(_0x49e5ab,_0x1dd64c){const _0x102cda=_0x2b16d4;let _0x2fc78d='';const _0x25ae8c=this[_0x102cda(0x123)]();switch(_0x1dd64c){case _0x3e0737[_0x102cda(0x2c6)]['average']:_0x2fc78d=_0x25ae8c['sheets-pivot.averageName']+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)]['count']:_0x2fc78d=_0x25ae8c['sheets-pivot.countName']+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)]['countNums']:_0x2fc78d=_0x25ae8c[_0x102cda(0x33f)]+_0x49e5ab;break;case _0x3e0737['PivotSubtotalTypeEnum'][_0x102cda(0x24d)]:_0x2fc78d=_0x25ae8c['sheets-pivot.maxName']+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)]['min']:_0x2fc78d=_0x25ae8c[_0x102cda(0x1b6)]+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)]['product']:_0x2fc78d=_0x25ae8c[_0x102cda(0x1f9)]+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)][_0x102cda(0x271)]:_0x2fc78d=_0x25ae8c[_0x102cda(0xc3)]+_0x49e5ab;break;case _0x3e0737['PivotSubtotalTypeEnum'][_0x102cda(0x108)]:_0x2fc78d=_0x25ae8c[_0x102cda(0x189)]+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)][_0x102cda(0x35a)]:_0x2fc78d=_0x25ae8c[_0x102cda(0x29b)]+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)]['var']:_0x2fc78d=_0x25ae8c[_0x102cda(0xb6)]+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)][_0x102cda(0x1d7)]:_0x2fc78d=_0x25ae8c[_0x102cda(0x2f0)]+_0x49e5ab;break;default:_0x2fc78d=_0x49e5ab;break;}return _0x2fc78d;}function _0x5e8aa7(_0x2bf791,_0x310adc,_0x17c3f5,_0x26ce2f,_0x3e54c8){const _0x153543=_0x2b16d4;var _0x2dc48f,_0x161910,_0xc55511,_0x249a61,_0x49282a;const _0x252b51=_0x282877[_0x153543(0x29f)](_0x2bf791,_0x310adc),{rangesInfo:_0x222a39,areaInfo:_0x1fcae5,headerMap:_0x5c6345}=_0x3e54c8;if(!_0x222a39||!_0x1fcae5||!_0x5c6345)return;const _0x133e60=Object[_0x153543(0x12a)](_0x222a39)[_0x153543(0x1a6)](_0x5d117d=>_0x222a39[_0x5d117d][_0x153543(0x151)](_0x34a73d=>_0x282877[_0x153543(0x2e7)][_0x153543(0x235)](_0x34a73d,_0x252b51))),_0xe42c94=_0x1fcae5;let _0x22873f,_0x948763,_0x51e67f;if(_0x133e60===_0x153543(0x196))_0x22873f=(_0x2dc48f=_0xe42c94==null?void 0x0:_0xe42c94[_0x153543(0x200)])==null?void 0x0:_0x2dc48f[_0x2bf791],_0x948763=(_0x161910=_0x5c6345==null?void 0x0:_0x5c6345[_0x153543(0xd8)])==null?void 0x0:_0x161910[_0x310adc],_0x51e67f=_0x948763==null?void 0x0:_0x948763['tableFieldId'];else{if(_0x133e60==='colRanges')_0x22873f=(_0xc55511=_0xe42c94==null?void 0x0:_0xe42c94[_0x153543(0x27a)])==null?void 0x0:_0xc55511[_0x310adc],_0x948763=(_0x249a61=_0x5c6345[_0x153543(0x174)])==null?void 0x0:_0x249a61[_0x2bf791+0x1+_0x310adc-_0x222a39[_0x153543(0x1b0)][0x0][_0x153543(0x254)]],_0x51e67f=_0x948763==null?void 0x0:_0x948763[_0x153543(0x19a)];else{if(_0x133e60==='cornerRanges')_0x22873f=(_0x49282a=_0xe42c94==null?void 0x0:_0xe42c94[_0x153543(0x17e)])==null?void 0x0:_0x49282a[_0x310adc],_0x51e67f=_0x22873f==null?void 0x0:_0x22873f['tableFieldId'];else{if(_0x133e60===_0x153543(0x166)){const _0xa2372=_0x17c3f5==null?void 0x0:_0x17c3f5['fi'];_0xa2372!==void 0x0&&(_0x51e67f=_0x26ce2f['getFilterFieldIdByIndex'](_0xa2372));}}}}return{'filterId':_0x51e67f,'info':_0x22873f,'data':_0x17c3f5,'headerInfo':_0x948763};}function _0x2e8fa2(_0x11a01a,_0x44faf9,_0x2ce770){const _0x22fa73=_0x2b16d4,_0x59d756=_0x11a01a[_0x22fa73(0x381)],_0x4bfc83=_0x59d756['getFieldIds'](),_0x3f9993=new Set();_0x11a01a['iterateField'](_0x5afda2=>{const _0x381d20=_0x22fa73;_0x3f9993['add'](_0x5afda2[_0x381d20(0x1d8)]);});const _0x56bb3c=_0x4bfc83[_0x22fa73(0x279)](_0x126c3c=>{const _0x302d8d=_0x22fa73,_0x111196=_0x59d756[_0x302d8d(0x158)](_0x126c3c);return{'checked':_0x3f9993[_0x302d8d(0x105)](_0x126c3c),'dataFieldId':_0x111196['id'],'id':_0x111196['id'],'name':_0x59d756[_0x302d8d(0x115)](_0x111196['id']),'type':_0x111196['getFieldDataType'](),'pivotTableId':_0x44faf9};}),_0x33f005=[];_0x11a01a['iterateFieldByArea'](_0x3e0737['PivotTableFiledAreaEnum']['Row'],_0x3b258d=>{const _0x41c6c6=_0x22fa73;_0x33f005[_0x41c6c6(0x338)]({'dataFieldId':_0x3b258d[_0x41c6c6(0x1d8)],'tableFieldId':_0x3b258d[_0x41c6c6(0x149)](),'displayName':_0x3b258d['getDisplayName']()});});const _0x559f32=[];_0x11a01a[_0x22fa73(0xf3)](_0x3e0737[_0x22fa73(0x372)][_0x22fa73(0x211)],_0x582e19=>{const _0x4e143e=_0x22fa73;_0x559f32[_0x4e143e(0x338)]({'dataFieldId':_0x582e19[_0x4e143e(0x1d8)],'tableFieldId':_0x582e19[_0x4e143e(0x149)](),'displayName':_0x582e19['getDisplayName']()});});const _0x12ca0a=[];if(_0x11a01a['iterateFieldByArea'](_0x3e0737['PivotTableFiledAreaEnum'][_0x22fa73(0xbb)],_0x313a54=>{const _0x3fd5b7=_0x22fa73;_0x12ca0a['push']({'dataFieldId':_0x313a54[_0x3fd5b7(0x1d8)],'tableFieldId':_0x313a54[_0x3fd5b7(0x149)](),'displayName':_0x313a54[_0x3fd5b7(0x115)](),'format':_0x313a54['getFormat'](),'subTotalType':_0x313a54['getSubtotal']()});}),_0x12ca0a['length']>0x1){const _0x39cd3f=_0x11a01a[_0x22fa73(0x20c)]();(_0x11a01a['isColMultiMeasure']()?_0x559f32:_0x33f005)['splice'](_0x39cd3f,0x0,{'dataFieldId':'','tableFieldId':_0x22fa73(0x34d),'displayName':_0x22fa73(0x347)});}const _0x51c138=[];_0x11a01a[_0x22fa73(0xf3)](_0x3e0737[_0x22fa73(0x372)][_0x22fa73(0x395)],_0x51098b=>{const _0x140f37=_0x22fa73;_0x51c138[_0x140f37(0x338)]({'dataFieldId':_0x51098b[_0x140f37(0x1d8)],'tableFieldId':_0x51098b['getId'](),'displayName':_0x51098b[_0x140f37(0x115)]()});});const _0x1a5fb2=_0x2ce770['sourceRangeInfo'];return{'sourceList':_0x56bb3c,'sourceRange':_0x1a5fb2,'rowFields':_0x33f005,'columnFields':_0x559f32,'valueFields':_0x12ca0a,'filterFields':_0x51c138,'positionInfo':_0x2ce770[_0x22fa73(0x360)]};}function _0x1727a7(_0x45d5c1,_0x57986f,_0x4adfac='',_0x132280={}){const _0x1eaf5b=_0x2b16d4,_0x26865e=_0x45d5c1[_0x1eaf5b(0x1a9)](_0x282877[_0x1eaf5b(0x2cb)]);for(const _0x33bc66 in _0x57986f)if(Object['prototype']['hasOwnProperty'][_0x1eaf5b(0x1dc)](_0x57986f,_0x33bc66)){const _0x8e7e4a=_0x4adfac?_0x4adfac+'.'+_0x33bc66:_0x33bc66;typeof _0x57986f[_0x33bc66]=='object'&&_0x57986f[_0x33bc66]!==null&&!Array[_0x1eaf5b(0x3a0)](_0x57986f[_0x33bc66])?_0x1727a7(_0x45d5c1,_0x57986f[_0x33bc66],_0x8e7e4a,_0x132280):_0x132280[_0x8e7e4a]=_0x26865e['t'](_0x8e7e4a);}return _0x132280;}const _0x56a3ee=_0x39eb13=>{const _0x2a631d=_0x2b16d4;if(!_0x39eb13)return[];const {rowRanges:_0x110f77,colRanges:_0x253f10,cornerRanges:_0x24b1ca,dataRanges:_0x5dffd4,pageRanges:_0x26c051}=_0x39eb13,_0x39e894=[..._0x253f10,..._0x110f77,..._0x5dffd4,..._0x24b1ca][_0x2a631d(0x179)](_0xe8c25a=>_0xe8c25a[_0x2a631d(0x19f)]>=0x0&&_0xe8c25a[_0x2a631d(0x254)]>=0x0&&_0xe8c25a[_0x2a631d(0x39e)]>=0x0&&_0xe8c25a[_0x2a631d(0x244)]>=0x0);let _0x23c14c=Number[_0x2a631d(0x116)],_0x2573b2=Number[_0x2a631d(0x31e)],_0x4dea4e=Number[_0x2a631d(0x116)],_0x194641=Number[_0x2a631d(0x31e)];for(let _0x36c57c=0x0;_0x36c57c<_0x39e894[_0x2a631d(0x27b)];_0x36c57c++)_0x23c14c=Math['min'](_0x23c14c,_0x39e894[_0x36c57c][_0x2a631d(0x19f)]),_0x2573b2=Math[_0x2a631d(0x24d)](_0x2573b2,_0x39e894[_0x36c57c][_0x2a631d(0x39e)]),_0x4dea4e=Math[_0x2a631d(0x3a6)](_0x4dea4e,_0x39e894[_0x36c57c]['startColumn']),_0x194641=Math[_0x2a631d(0x24d)](_0x194641,_0x39e894[_0x36c57c][_0x2a631d(0x244)]);return[..._0x26c051,{'startRow':_0x23c14c,'endRow':_0x2573b2,'startColumn':_0x4dea4e,'endColumn':_0x194641}];};function _0x458a75(_0x573f86,_0x57b36c){const _0x4f6dcd=_0x2b16d4,_0xacabf9=_0x57b36c['params']['drillDown'],{pivotTableId:_0x51ed2a,unitId:_0xbee441,subUnitId:_0x5e082b}=_0x57b36c;if(!_0xacabf9)return;const _0x274ce0=_0x573f86[_0x4f6dcd(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),_0x547583=_0x274ce0['getPivotTableInstance'](_0x51ed2a),_0x1efe3c=_0x274ce0[_0x4f6dcd(0x13c)](_0xbee441,_0x5e082b,_0x51ed2a);if(!_0x547583||!_0x1efe3c)return;const _0x45a22a=_0x547583[_0x4f6dcd(0x2d4)](_0xacabf9[_0x4f6dcd(0x288)]);if(!(_0x45a22a!=null&&_0x45a22a[_0x4f6dcd(0x27b)]))return;const _0x531a03=_0x1efe3c[_0x4f6dcd(0x2ab)],{unitId:_0x4af522,subUnitId:_0x2ccb95,range:_0x700639}=_0x531a03;let _0x5bcc96=0x0;const _0x474342=_0x547583[_0x4f6dcd(0x381)][_0x4f6dcd(0x1b3)]()[_0x4f6dcd(0x2bd)]((_0x2cf26d,_0x17e329)=>{const _0x33b51f=_0x4f6dcd;var _0x183736;const _0x9a71f1=(_0x183736=_0x547583['getDataFieldByDataFieldId'](_0x17e329))==null?void 0x0:_0x183736[_0x33b51f(0x30d)]();return _0x9a71f1&&(_0x2cf26d[String(_0x5bcc96)]=_0x9a71f1),_0x5bcc96++,_0x2cf26d;},{});return{'indexes':_0x45a22a,'range':_0x700639,'sourceUnitId':_0x4af522,'sourceSubUnitId':_0x2ccb95,'formatMap':_0x474342};}function _0x49a50c(_0x5b90d5,_0x53c24c){const _0x50854f=_0x2b16d4;if(!_0x5b90d5||!_0x53c24c)return!0x0;const _0x2f10c5=_0x5b0681[_0x50854f(0x153)](_0x402916,_0x3caff5),_0x3dfc27=new Function(_0x50854f(0x11a)+_0x2f10c5)()(_0x5b90d5,_0x53c24c)['message'],_0x49a083=_0x5b0681[_0x50854f(0x304)](_0x3dfc27,'sf',_0x12de9f);return!((_0x3dfc27==null?void 0x0:_0x3dfc27['rt'])===_0x5b0681[_0x50854f(0x1c7)]['NO_COMMERCIAL']&&!_0x49a083);}function _0x9a8ebd(_0x4c9d96,_0x2966da,_0x240bab){const _0x18dcfd=_0x2b16d4,_0x423bb0={'count':_0x4c9d96,'timeValid':!0x1};if(!_0x2966da||!_0x240bab)return _0x423bb0;const _0x1c3f66=_0x5b0681['unshiftString'](_0x402916,_0x3caff5),_0x5f16e9=new Function(_0x18dcfd(0x11a)+_0x1c3f66)()(_0x2966da,_0x240bab);if(_0x5f16e9!=null&&_0x5f16e9['valid']){const _0x27b1e6=_0x5f16e9['message'],_0x3ae8ab=_0x5b0681[_0x18dcfd(0x304)](_0x27b1e6,'sf',_0x12de9f);return{'count':_0x5b0681[_0x18dcfd(0x219)](_0x27b1e6,_0x3ae8ab,'ptn',_0x4c9d96,_0x4c9d96,0x0),'timeValid':_0x3ae8ab};}return _0x423bb0;}function _0x1fac4a(_0x5c97a4,_0x52f993,_0x2a778f,_0x236dfe){const _0x43ed31=_0x2b16d4,_0x22cda8={'subUnitId':_0x2a778f,'unitId':_0x52f993,'cellValue':_0x5698b3[_0x43ed31(0x10c)](_0x236dfe)},_0x3fe01d=_0x5698b3['SetRangeValuesUndoMutationFactory'](_0x5c97a4,_0x22cda8);let _0x2c7605=!0x1;return new _0x282877[(_0x43ed31(0x184))](_0x3fe01d['cellValue'])[_0x43ed31(0x308)]((_0x4b5c5a,_0x41612f,_0x29d88e)=>{const _0x4023c5=_0x43ed31;if(!_0x2c7605&&_0x29d88e&&(_0x29d88e[_0x4023c5(0x385)]||_0x29d88e['f']||_0x29d88e['p']||_0x29d88e['s']||_0x29d88e['si']||_0x29d88e['t']||_0x29d88e['v']))return _0x2c7605=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x5698b3[_0x43ed31(0x157)]['id'],'params':_0x3fe01d},'setRangeValueRedoMutation':{'id':_0x5698b3[_0x43ed31(0x157)]['id'],'params':_0x22cda8},'shouldClear':_0x2c7605};}function _0x4bbd29(_0x4cfeff){const {row:_0x516af7,col:_0x405305}=_0x4cfeff,_0x581e2f={'startRow':_0x516af7,'endRow':_0x516af7,'startColumn':_0x405305,'endColumn':_0x405305},_0x4415c0={'startRow':_0x516af7+0x2,'endRow':_0x516af7+0xe,'startColumn':_0x405305,'endColumn':_0x405305+0x6};return[_0x581e2f,_0x4415c0];}function _0x111a06(_0x3c8dae,_0x213e70,_0x9ea2b3){const _0x27e5ce=_0x2b16d4,{cornerView:_0x4b1b63,rowView:_0x384785,colView:_0x116dfc,pageView:_0x134fba}=_0x3c8dae,{row:_0x1db0fb,col:_0x42dccd}=_0x213e70;if(_0x9ea2b3)return{'rowCount':_0x25665a+_0x1db0fb,'colCount':_0x14a81c+_0x42dccd};const _0x2a8bc6=_0x134fba[_0x27e5ce(0xcf)]>-0x1?_0x134fba['lastRow']+0x1:0x0,_0x34b57a=_0x134fba[_0x27e5ce(0x137)]>-0x1?_0x134fba[_0x27e5ce(0x137)]:0x0,_0x2a2fa2=_0x1db0fb+_0x2a8bc6+(_0x2a8bc6?0x1:0x0)+_0x4b1b63['rowCount']+_0x384785[_0x27e5ce(0x2cc)],_0x26c697=_0x42dccd+_0x34b57a,_0x5806cb=_0x42dccd+_0x4b1b63[_0x27e5ce(0x2eb)]+_0x116dfc[_0x27e5ce(0x2eb)],_0xca6301=Math[_0x27e5ce(0x24d)](_0x26c697,_0x5806cb);return{'rowCount':_0x2a2fa2,'colCount':_0xca6301};}function _0x43927d(_0x6c2d3e,_0x166643,_0x1da3b4,_0x2b0ab2){const _0x911248=_0x2b16d4,{row:_0x5c77f6,col:_0x196841,unitId:_0x4c9f00,subUnitId:_0x1ebaba}=_0x1da3b4,_0x25927e=_0x111a06(_0x166643,{'row':_0x5c77f6,'col':_0x196841},_0x2b0ab2),_0x514aa0=_0x6c2d3e[_0x911248(0x1a9)](_0x282877['IUniverInstanceService']),_0x42bd77=_0x5698b3['getSheetCommandTarget'](_0x514aa0,{'unitId':_0x4c9f00,'subUnitId':_0x1ebaba}),_0x5e574f=[],_0x1a1a36=[];if(!_0x42bd77)return{'undos':_0x1a1a36,'redos':_0x5e574f};const {worksheet:_0x2bb518}=_0x42bd77,_0x225f56=_0x2bb518[_0x911248(0x2d2)](),_0x59c1a9=_0x2bb518[_0x911248(0x246)]();return _0x225f56<_0x25927e[_0x911248(0x2cc)]&&(_0x5e574f['push']({'id':_0x5698b3[_0x911248(0x270)]['id'],'params':{'unitId':_0x4c9f00,'subUnitId':_0x1ebaba,'range':{'startRow':_0x225f56,'endRow':_0x25927e[_0x911248(0x2cc)]-0x1,'startColumn':0x0,'endColumn':_0x59c1a9-0x1}}}),_0x1a1a36[_0x911248(0x338)]({'id':_0x5698b3['RemoveRowMutation']['id'],'params':{'unitId':_0x4c9f00,'subUnitId':_0x1ebaba,'range':{'startRow':_0x225f56,'endRow':_0x25927e['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x59c1a9-0x1}}})),_0x59c1a9<_0x25927e[_0x911248(0x2eb)]&&(_0x5e574f[_0x911248(0x338)]({'id':_0x5698b3[_0x911248(0x138)]['id'],'params':{'unitId':_0x4c9f00,'subUnitId':_0x1ebaba,'range':{'startRow':0x0,'endRow':_0x225f56-0x1,'startColumn':_0x59c1a9,'endColumn':_0x25927e[_0x911248(0x2eb)]-0x1}}}),_0x1a1a36[_0x911248(0x338)]({'id':_0x5698b3['RemoveColMutation']['id'],'params':{'unitId':_0x4c9f00,'subUnitId':_0x1ebaba,'range':{'startRow':0x0,'endRow':_0x225f56-0x1,'startColumn':_0x59c1a9,'endColumn':_0x25927e[_0x911248(0x2eb)]-0x1}}})),{'undos':_0x1a1a36,'redos':_0x5e574f};}function _0x5366c8(_0xd996d9){const _0x3c05c7=_0x2b16d4;let _0x329f66=0x0;for(let _0xa02ed4=0x0;_0xa02ed4<_0xd996d9[_0x3c05c7(0x27b)];_0xa02ed4++){const _0x4358ca=_0xd996d9[_0x3c05c7(0x1b1)](_0xa02ed4);_0x4358ca>=0x4e00&&_0x4358ca<=0x9fff||_0x4358ca>=0x3000&&_0x4358ca<=0x303f||_0x4358ca>=0xff00&&_0x4358ca<=0xffef?_0x329f66+=0x2:_0x329f66+=0x1;}return _0x329f66;}function _0x52c202(_0x1bad88,_0x3a139e,_0x2d5e98,_0x24027c){const _0x55c9b2=_0x2b16d4;var _0x1882de,_0x38c2c9,_0x314508,_0x3cee67;const {rowCount:_0x595130,colCount:_0x3dc4ae,headerMap:_0xbdb8ff}=_0x1bad88,_0x2fc6fc=0x64,_0xdc9bb6=Math['min'](_0x595130,_0x2fc6fc),_0xce9c97=Math['min'](_0x3dc4ae,_0x2fc6fc);let _0x5a2431='',_0x474829=0x0;for(let _0x304a36=0x0;_0x304a36<_0xdc9bb6;_0x304a36++)for(let _0x960f60=0x0;_0x960f60<_0xce9c97;_0x960f60++){const _0x5db8f4={...(_0x38c2c9=(_0x1882de=_0x1bad88['data'])==null?void 0x0:_0x1882de[_0x304a36])==null?void 0x0:_0x38c2c9[_0x960f60]},_0x37ad2f=(_0x314508=_0xbdb8ff[_0x304a36])==null?void 0x0:_0x314508[_0x55c9b2(0x19a)],_0x40ac75=_0x24027c[_0x37ad2f];let _0x168e4e=_0x1bad88['getValue'](_0x304a36,_0x960f60);if(_0x5db8f4){const _0x525ebb=_0x2d5e98?_0x960f60===0x0&&((_0x3cee67=_0x1bad88[_0x55c9b2(0x106)](_0x960f60+0x1))==null?void 0x0:_0x3cee67['isValue']):!0x1;_0x168e4e=_0x22656d(_0x5db8f4,_0x525ebb,_0x40ac75,_0x3a139e);}if(_0x168e4e!==void 0x0){const _0x19d99d=_0x5366c8(String(_0x168e4e));_0x474829<_0x19d99d&&(_0x5a2431=String(_0x168e4e),_0x474829=_0x19d99d);}}return _0x5a2431;}function _0x2e7059(_0x584c33){const _0x25d021=_0x2b16d4,{rowCount:_0x20054f,colCount:_0x20e491}=_0x584c33;let _0x2fb567='',_0x133571=0x0;for(let _0x24e3f1=_0x20054f-0x1;_0x24e3f1>0x0&&_0x24e3f1>_0x20054f-0x3;_0x24e3f1--)for(let _0x2ed412=0x0;_0x2ed412<_0x20e491;_0x2ed412++){const _0x2a8c87=_0x584c33[_0x25d021(0x1e3)](_0x24e3f1,_0x2ed412);if(_0x2a8c87!==void 0x0){const _0x3c00c1=String(_0x2a8c87)[_0x25d021(0x27b)];_0x133571<_0x3c00c1&&(_0x2fb567=String(_0x2a8c87),_0x133571=_0x3c00c1);}}return _0x2fb567;}function _0x41cf33(_0x497035){const _0x275b5c=_0x2b16d4,{rowCount:_0x3a7eea,colCount:_0x26bdb3}=_0x497035;let _0x39f9a6='',_0x2ca297=0x0;for(let _0xb9dd59=0x0;_0xb9dd59<_0x3a7eea;_0xb9dd59++)for(let _0x1a17a7=0x0;_0x1a17a7<_0x26bdb3;_0x1a17a7++){const _0x47f53b=_0x497035[_0x275b5c(0x1e3)](_0xb9dd59,_0x1a17a7);if(_0x47f53b!==void 0x0){const _0x524d87=String(_0x47f53b)[_0x275b5c(0x27b)];_0x2ca297<_0x524d87&&(_0x39f9a6=String(_0x47f53b),_0x2ca297=_0x524d87);}}return _0x39f9a6;}function _0x47fec1(_0x4c322e,_0x199ed1){const _0x56f570=_0x2b16d4,{rowFields:_0x54e879,columnFields:_0x50c4d5,valueFields:_0x6a1d94,filterFields:_0x3fb694,dimension:_0xdc1bf9,measure:_0x437ea1}=_0x199ed1;for(const _0xa0e112 of _0x54e879){const _0x342a05=_0xdc1bf9[_0xa0e112];_0x342a05&&_0x4c322e['getDataFieldByDataFieldId'](_0x342a05['dataFieldId'])&&(_0x4c322e[_0x56f570(0x2ac)](_0x342a05[_0x56f570(0x1d8)],_0x3e0737[_0x56f570(0x372)]['Row'],void 0x0,_0xa0e112),_0x342a05['displayName']&&_0x4c322e[_0x56f570(0x32b)](_0x342a05['id'],_0x342a05[_0x56f570(0x38c)]),_0x342a05[_0x56f570(0x227)]&&_0x4c322e['setSortInfo'](_0x342a05['id'],_0x342a05[_0x56f570(0x227)]),_0x342a05[_0x56f570(0x361)]&&_0x4c322e['setLabelFilterInfo'](_0x342a05['id'],_0x342a05['filterInfo']));}for(const _0x3c5654 of _0x50c4d5){const _0x3aef35=_0xdc1bf9[_0x3c5654];_0x3aef35&&_0x4c322e[_0x56f570(0xd0)](_0x3aef35[_0x56f570(0x1d8)])&&(_0x4c322e['addFieldWithSourceId'](_0x3aef35[_0x56f570(0x1d8)],_0x3e0737[_0x56f570(0x372)][_0x56f570(0x211)],void 0x0,_0x3c5654),_0x3aef35[_0x56f570(0x227)]&&_0x4c322e[_0x56f570(0x399)](_0x3aef35['id'],_0x3aef35[_0x56f570(0x227)]),_0x3aef35[_0x56f570(0x361)]&&_0x4c322e['setLabelFilterInfo'](_0x3aef35['id'],_0x3aef35[_0x56f570(0x361)]),_0x3aef35['displayName']&&_0x4c322e[_0x56f570(0x32b)](_0x3aef35['id'],_0x3aef35['displayName']));}for(const _0x169347 of _0x3fb694){const _0x573454=_0xdc1bf9[_0x169347];_0x573454&&_0x4c322e[_0x56f570(0xd0)](_0x573454[_0x56f570(0x1d8)])&&(_0x4c322e[_0x56f570(0x2ac)](_0x573454[_0x56f570(0x1d8)],_0x3e0737[_0x56f570(0x372)][_0x56f570(0x395)],void 0x0,_0x169347),_0x573454['sortInfo']&&_0x4c322e[_0x56f570(0x399)](_0x573454['id'],_0x573454[_0x56f570(0x227)]),_0x573454[_0x56f570(0x361)]&&_0x4c322e['setLabelFilterInfo'](_0x573454['id'],_0x573454['filterInfo']),_0x573454[_0x56f570(0x38c)]&&_0x4c322e['renameField'](_0x573454['id'],_0x573454[_0x56f570(0x38c)]));}for(const _0x58fbcb of _0x6a1d94){const _0x3efd56=_0x437ea1[_0x58fbcb];_0x3efd56&&_0x4c322e[_0x56f570(0xd0)](_0x3efd56[_0x56f570(0x1d8)])&&(_0x4c322e[_0x56f570(0x2ac)](_0x3efd56[_0x56f570(0x1d8)],_0x3e0737[_0x56f570(0x372)][_0x56f570(0xbb)],void 0x0,_0x58fbcb),_0x3efd56[_0x56f570(0x250)]!==void 0x0&&_0x4c322e['setSubtotalType'](_0x58fbcb,_0x3efd56[_0x56f570(0x250)]),_0x3efd56['format']&&_0x4c322e[_0x56f570(0x1e2)](_0x58fbcb,_0x3efd56[_0x56f570(0x251)]),_0x3efd56[_0x56f570(0x38c)]&&_0x4c322e['renameField'](_0x3efd56['id'],_0x3efd56[_0x56f570(0x38c)]));}const _0x6f20b2=_0x199ed1[_0x56f570(0x306)];for(const {fieldId:_0x264762,filterInfo:_0x260b7d}of _0x6f20b2)_0x4c322e[_0x56f570(0x2c8)](_0x264762,_0x260b7d);}function _0x2b026f(_0xe42df5,_0x1ea5e4){const _0x192e08=_0x2b16d4,_0x33284d=[];_0x1ea5e4===_0x3e0737[_0x192e08(0x372)]['Row']&&_0xe42df5[_0x192e08(0xf3)](_0x3e0737[_0x192e08(0x372)][_0x192e08(0x2ef)],_0x4c2b07=>{const _0x37cec9=_0x192e08;_0x33284d['push'](_0x4c2b07[_0x37cec9(0x149)]());}),_0x1ea5e4===_0x3e0737[_0x192e08(0x372)][_0x192e08(0x211)]&&_0xe42df5[_0x192e08(0xf3)](_0x3e0737['PivotTableFiledAreaEnum'][_0x192e08(0x211)],_0x859acb=>{const _0x5dc9f7=_0x192e08;_0x33284d[_0x5dc9f7(0x338)](_0x859acb[_0x5dc9f7(0x149)]());}),_0x1ea5e4===_0x3e0737['PivotTableFiledAreaEnum'][_0x192e08(0x395)]&&_0xe42df5[_0x192e08(0xf3)](_0x3e0737[_0x192e08(0x372)]['Filter'],_0x62d044=>{const _0x47c342=_0x192e08;_0x33284d[_0x47c342(0x338)](_0x62d044[_0x47c342(0x149)]());}),_0x1ea5e4===_0x3e0737['PivotTableFiledAreaEnum'][_0x192e08(0xbb)]&&_0xe42df5[_0x192e08(0xf3)](_0x3e0737[_0x192e08(0x372)][_0x192e08(0xbb)],_0x4c1351=>{const _0x168244=_0x192e08;_0x33284d[_0x168244(0x338)](_0x4c1351['getId']());}),_0x1ea5e4===void 0x0&&_0xe42df5[_0x192e08(0x1b8)](_0x570f8b=>{const _0x196fcd=_0x192e08;_0x33284d[_0x196fcd(0x338)](_0x570f8b[_0x196fcd(0x149)]());});const _0x1e7fe6=_0x33284d[_0x192e08(0x27b)];for(let _0x19f257=_0x1e7fe6-0x1;_0x19f257>=0x0;_0x19f257--)_0xe42df5[_0x192e08(0x218)](_0x33284d[_0x19f257]);const _0x523a33=_0xe42df5[_0x192e08(0x2e9)]();for(const _0x59a734 in _0x523a33)_0xe42df5[_0x192e08(0x390)](_0x59a734);}function _0x4b5bca(_0x46977e,_0x4bbb99){const _0x4c1b2f=_0x2b16d4,_0x31539e=new Date(_0x3e0737[_0x4c1b2f(0x206)](_0x4bbb99)),_0x2b8817=new Date(_0x3e0737['excelDateToUnixMilliseconds'](_0x46977e)),_0x2f32e5=_0x31539e['getFullYear'](),_0x20ad0b=_0x2b8817[_0x4c1b2f(0x14c)](),_0x1ee2ba=_0x31539e[_0x4c1b2f(0x2e8)](),_0x5b27a0=_0x2b8817[_0x4c1b2f(0x2e8)](),_0x1ee5e5=_0x31539e['getDate'](),_0x1c6d8e=_0x2b8817[_0x4c1b2f(0x15b)](),_0x3f0b7d=_0x2f32e5===_0x20ad0b,_0xb46d45=_0x3f0b7d&&_0x1ee2ba===_0x5b27a0;return _0x3f0b7d&&_0xb46d45&&!(_0xb46d45&&_0x1ee5e5===_0x1c6d8e)?_0x3e0737[_0x4c1b2f(0x22c)]['YearMonthDate']:_0x3f0b7d&&!_0xb46d45?_0x3e0737[_0x4c1b2f(0x22c)][_0x4c1b2f(0x221)]:_0x3e0737[_0x4c1b2f(0x22c)][_0x4c1b2f(0x20e)];}function _0x4df91d(_0x515a03,_0x189523){const _0x29270e=_0x2b16d4,_0x1fbd77=_0x515a03[_0x29270e(0x1a9)](_0x24d96c[_0x29270e(0x1b4)])[_0x29270e(0x123)]();let _0x35411f='';switch(_0x189523){case _0x3e0737[_0x29270e(0x22c)]['YearMonthDate']:_0x35411f=_0x1fbd77['sheets-pivot.dateGroup.yearMonthDate'];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x221)]:_0x35411f=_0x1fbd77['sheets-pivot.dateGroup.yearMonth'];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x20e)]:_0x35411f=_0x1fbd77[_0x29270e(0x2cf)];break;case _0x3e0737[_0x29270e(0x22c)]['Month']:_0x35411f=_0x1fbd77[_0x29270e(0x335)];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x232)]:_0x35411f=_0x1fbd77['sheets-pivot.dateGroup.quarter'];break;case _0x3e0737['PivotDateGroupFieldDateTypeEnum'][_0x29270e(0x283)]:_0x35411f=_0x1fbd77[_0x29270e(0x2bc)];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x162)]:_0x35411f=_0x1fbd77[_0x29270e(0x1cb)];break;case _0x3e0737[_0x29270e(0x22c)]['Hour']:_0x35411f=_0x1fbd77['sheets-pivot.dateGroup.hour'];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x1f3)]:_0x35411f=_0x1fbd77[_0x29270e(0xd2)];break;case _0x3e0737[_0x29270e(0x22c)]['MonthDate']:_0x35411f=_0x1fbd77[_0x29270e(0x36e)];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x301)]:_0x35411f=_0x1fbd77[_0x29270e(0x344)];break;default:_0x35411f='';break;}return _0x35411f;}const _0x539a40='sheets-pivot.config',_0x96e365={};var _0x102943=Object['getOwnPropertyDescriptor'],_0x14226c=(_0x5904e9,_0x3cda8a,_0x2a7c33,_0x2e0764)=>{const _0x36c97a=_0x2b16d4;for(var _0x108f88=_0x2e0764>0x1?void 0x0:_0x2e0764?_0x102943(_0x3cda8a,_0x2a7c33):_0x3cda8a,_0x553487=_0x5904e9[_0x36c97a(0x27b)]-0x1,_0x4c3bbe;_0x553487>=0x0;_0x553487--)(_0x4c3bbe=_0x5904e9[_0x553487])&&(_0x108f88=_0x4c3bbe(_0x108f88)||_0x108f88);return _0x108f88;},_0xeab076=(_0x1e935c,_0x5d2eef)=>(_0x152360,_0x585c3d)=>_0x5d2eef(_0x152360,_0x585c3d,_0x1e935c);_0x24d96c[_0x2b16d4(0x15d)]=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x1805ef,_0x204c09,_0x483773,_0x598e62,_0x40e8ab){const _0x2cd9a2=_0x2b16d4;super(),_0x2e1abd(this,_0x2cd9a2(0xed),new Map()),_0x2e1abd(this,_0x2cd9a2(0x194),new Map()),_0x2e1abd(this,_0x2cd9a2(0x25a),new Map()),_0x2e1abd(this,_0x2cd9a2(0x2b9),new Map()),_0x2e1abd(this,_0x2cd9a2(0xe9),new _0x2b003b[(_0x2cd9a2(0x35c))]()),_0x2e1abd(this,'_pivotInitCompleted$',new _0x2b003b[(_0x2cd9a2(0x35c))]()),_0x2e1abd(this,_0x2cd9a2(0x294),this['_pivotInitCompleted$'][_0x2cd9a2(0x259)]()),_0x2e1abd(this,_0x2cd9a2(0xb5),new _0x2b003b[(_0x2cd9a2(0x35c))]()),_0x2e1abd(this,_0x2cd9a2(0x364),this['_pivotConfigChange$'][_0x2cd9a2(0x259)]()),_0x2e1abd(this,_0x2cd9a2(0x3a4),{}),_0x2e1abd(this,'configVersion$',this[_0x2cd9a2(0xe9)][_0x2cd9a2(0x259)]()),(this[_0x2cd9a2(0x1fe)]=_0x1805ef,this[_0x2cd9a2(0x2e0)]=_0x204c09,this[_0x2cd9a2(0x12c)]=_0x483773,this['_resourceManagerService']=_0x598e62,this[_0x2cd9a2(0x2de)]=_0x40e8ab,this[_0x2cd9a2(0x355)](),this[_0x2cd9a2(0x378)]());const _0x3ea109=this[_0x2cd9a2(0x2de)]['getConfig'](_0x539a40);(_0x3ea109==null?void 0x0:_0x3ea109['notExecuteFormula'])===!0x0&&this[_0x2cd9a2(0x1a2)]();}[_0x2b16d4(0x378)](){const _0x538a9b=_0x2b16d4;this['disposeWithMe'](this[_0x538a9b(0x12c)][_0x538a9b(0x340)](_0x282877[_0x538a9b(0x20b)][_0x538a9b(0x328)])[_0x538a9b(0x223)](_0x5e09d8=>{const _0x291dc1=_0x538a9b;this[_0x291dc1(0x28d)](_0x5e09d8['getUnitId']());}));}[_0x2b16d4(0x393)](){const _0x362e60=_0x2b16d4;this[_0x362e60(0x234)][_0x362e60(0x23b)](!0x0);}[_0x2b16d4(0x355)](){const _0x13abc7=_0x2b16d4,_0x576349=_0x1727a7(this[_0x13abc7(0x1fe)],_0x40592d,'',{});this['_textInfo']=_0x576349,this[_0x13abc7(0x2e0)][_0x13abc7(0xe0)](_0x4c3710['id'],{'textInfo':_0x576349},{'onlyLocal':!0x0});}['getTextInfo'](){return this['_textInfo'];}[_0x2b16d4(0x2c0)](_0x3f9666,_0x400864,_0x206ab2,_0x5ad1f4,_0xeb5100){const _0x3742af=_0x2b16d4;this[_0x3742af(0x36d)](_0x3f9666,_0x400864,_0x206ab2,_0x5ad1f4),this[_0x3742af(0x321)](_0x3f9666,_0x400864,_0x206ab2,_0xeb5100);}[_0x2b16d4(0x13c)](_0x4b4e51,_0x5844d3,_0x539d1f){const _0x26dba8=_0x2b16d4;var _0x19d262;const _0x1a8817=(_0x19d262=this[_0x26dba8(0xed)][_0x26dba8(0x1a9)](_0x4b4e51))==null?void 0x0:_0x19d262[_0x26dba8(0x1a9)](_0x5844d3);if(_0x1a8817)return _0x1a8817['get'](_0x539d1f);}['getTargetByPivotTableId'](_0x4bee2a,_0x107e20){const _0x2e5dd5=_0x2b16d4,_0x57d25c=this['_model'][_0x2e5dd5(0x1a9)](_0x4bee2a);if(_0x57d25c){for(const [_0x39b944,_0x384114]of _0x57d25c[_0x2e5dd5(0x2d8)]())for(const [_0x5b38dd,_0x2e0770]of _0x384114['entries']())if(_0x5b38dd===_0x107e20)return _0x2e0770[_0x2e5dd5(0x360)];}}['getTargetByPivotId'](_0x30e1da,_0x5dca84,_0x3ae924){const _0x50b299=_0x2b16d4,_0x2e18b8=this[_0x50b299(0x13c)](_0x30e1da,_0x5dca84,_0x3ae924);return _0x2e18b8==null?void 0x0:_0x2e18b8[_0x50b299(0x360)];}['getSubUnitPivotConfigs'](_0x4a2fc7,_0x37cd8e){const _0x28631f=_0x2b16d4;var _0x472e7f;return(_0x472e7f=this[_0x28631f(0xed)]['get'](_0x4a2fc7))==null?void 0x0:_0x472e7f[_0x28631f(0x1a9)](_0x37cd8e);}['updateConfigCache'](_0x3bb1bf,_0x4250c6,_0x474fbb,_0x423ee7){const _0x3013e1=_0x2b16d4,_0x20e9a5=this[_0x3013e1(0x28c)](_0x3bb1bf,_0x4250c6);_0x423ee7?_0x20e9a5[_0x3013e1(0x28f)](_0x474fbb,_0x423ee7):_0x20e9a5[_0x3013e1(0x1c1)](_0x474fbb),this[_0x3013e1(0xb5)][_0x3013e1(0x23b)]({'unitId':_0x3bb1bf,'subUnitId':_0x4250c6,'pivotTableId':_0x474fbb,'pivotTableConfig':_0x423ee7});}[_0x2b16d4(0xd9)](_0x48edb2,_0x52cc8f){const _0xfc8e32=_0x2b16d4;var _0x10b231;return(_0x10b231=this[_0xfc8e32(0x194)][_0xfc8e32(0x1a9)](_0x48edb2))==null?void 0x0:_0x10b231[_0xfc8e32(0x256)][_0x52cc8f];}[_0x2b16d4(0x1a3)](_0x3d5e44,_0x279be1){const _0x4b3b12=_0x2b16d4;this[_0x4b3b12(0x194)]['set'](_0x3d5e44,_0x279be1),this[_0x4b3b12(0xe9)]['next'](Math[_0x4b3b12(0x3a5)]());}[_0x2b16d4(0x28c)](_0x2e4df9,_0x5142cb){const _0x291e63=_0x2b16d4;let _0x3d5c4b=this[_0x291e63(0xed)][_0x291e63(0x1a9)](_0x2e4df9);_0x3d5c4b||(_0x3d5c4b=new Map(),this['_model'][_0x291e63(0x28f)](_0x2e4df9,_0x3d5c4b));let _0x139b20=_0x3d5c4b[_0x291e63(0x1a9)](_0x5142cb);return _0x139b20||(_0x139b20=new Map(),_0x3d5c4b['set'](_0x5142cb,_0x139b20)),_0x139b20;}[_0x2b16d4(0x13a)](_0x418a4e,_0x12c6c3){const _0x33871b=_0x2b16d4;let _0x3c34b6=this['_pivotTableRangeInfo']['get'](_0x418a4e);_0x3c34b6||(_0x3c34b6=new Map(),this[_0x33871b(0x25a)][_0x33871b(0x28f)](_0x418a4e,_0x3c34b6));let _0x15fda4=_0x3c34b6['get'](_0x12c6c3);return _0x15fda4||(_0x15fda4=new Map(),_0x3c34b6[_0x33871b(0x28f)](_0x12c6c3,_0x15fda4)),_0x15fda4;}[_0x2b16d4(0x139)](_0x15c7d3,_0x39858e){const _0x74e8fd=_0x2b16d4;let _0x156795=this['_pivotTableMatrixInfo'][_0x74e8fd(0x1a9)](_0x15c7d3);_0x156795||(_0x156795=new Map(),this[_0x74e8fd(0x2b9)][_0x74e8fd(0x28f)](_0x15c7d3,_0x156795));let _0x46ced3=_0x156795[_0x74e8fd(0x1a9)](_0x39858e);return _0x46ced3||(_0x46ced3=new Map(),_0x156795[_0x74e8fd(0x28f)](_0x39858e,_0x46ced3)),_0x46ced3;}[_0x2b16d4(0x321)](_0x5e3949,_0x5ab846,_0x434d6c,_0x5db570){const _0x1ed984=_0x2b16d4;var _0x436f7c;const _0x3d4fc3=this[_0x1ed984(0x13a)](_0x5e3949,_0x5ab846),_0x1a0605=(_0x436f7c=_0x3d4fc3[_0x1ed984(0x1a9)](_0x434d6c))==null?void 0x0:_0x436f7c[_0x1ed984(0x143)];_0x3d4fc3[_0x1ed984(0x28f)](_0x434d6c,{'oldRangeInfo':_0x1a0605,'rangeInfo':_0x5db570});}[_0x2b16d4(0x36d)](_0x7b0c,_0x2680a4,_0x430bc7,_0x4279db){const _0x390b19=_0x2b16d4;var _0x4a4f96;const _0x5384c5=this['_ensurePivotTableMatrixInfo'](_0x7b0c,_0x2680a4),_0xd1b4c3=(_0x4a4f96=_0x5384c5['get'](_0x430bc7))==null?void 0x0:_0x4a4f96[_0x390b19(0x285)];_0x5384c5[_0x390b19(0x28f)](_0x430bc7,{'oldMatrix':_0xd1b4c3,'matrix':_0x4279db});}['getPivotTableRangeInfo'](_0x485c93,_0x34c4c3,_0x591693){const _0x1cea57=_0x2b16d4;var _0x582d1f,_0x37363f;return(_0x37363f=(_0x582d1f=this[_0x1cea57(0x25a)][_0x1cea57(0x1a9)](_0x485c93))==null?void 0x0:_0x582d1f['get'](_0x34c4c3))==null?void 0x0:_0x37363f[_0x1cea57(0x1a9)](_0x591693);}[_0x2b16d4(0x10d)](_0x2e9765,_0x143c80,_0x113319){const _0x1b2714=_0x2b16d4;var _0x5b7560,_0x45b2e5;return(_0x45b2e5=(_0x5b7560=this['_pivotTableMatrixInfo'][_0x1b2714(0x1a9)](_0x2e9765))==null?void 0x0:_0x5b7560[_0x1b2714(0x1a9)](_0x143c80))==null?void 0x0:_0x45b2e5[_0x1b2714(0x1a9)](_0x113319);}[_0x2b16d4(0x28d)](_0x3f6d3f){const _0x56ea8c=_0x2b16d4;this[_0x56ea8c(0xed)]['delete'](_0x3f6d3f),this['_collectionConfigModel']['delete'](_0x3f6d3f);}[_0x2b16d4(0x1f8)](_0x6bb784){const _0x6fe650=_0x2b16d4,_0x2b3aa8={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x6fe650(0x194)]['get'](_0x6bb784)&&(_0x2b3aa8[_0x6fe650(0x1e1)][_0x6bb784]=this['_collectionConfigModel'][_0x6fe650(0x1a9)](_0x6bb784)),this[_0x6fe650(0xed)]['get'](_0x6bb784)){_0x2b3aa8[_0x6fe650(0x15e)][_0x6bb784]={};const _0x1f5a35=this[_0x6fe650(0xed)][_0x6fe650(0x1a9)](_0x6bb784);_0x1f5a35!=null&&_0x1f5a35[_0x6fe650(0x1a5)]&&[..._0x1f5a35[_0x6fe650(0x12a)]()]['forEach'](_0x220247=>{const _0x46bac3=_0x6fe650,_0x343ee7=_0x1f5a35[_0x46bac3(0x1a9)](_0x220247);_0x343ee7!=null&&_0x343ee7['size']&&(_0x2b3aa8[_0x46bac3(0x15e)][_0x6bb784][_0x220247]={},[..._0x343ee7['keys']()][_0x46bac3(0xff)](_0x106f8e=>{const _0x2ea2f4=_0x46bac3,_0x56eba3=_0x343ee7[_0x2ea2f4(0x1a9)](_0x106f8e);_0x56eba3&&(_0x2b3aa8[_0x2ea2f4(0x15e)][_0x6bb784][_0x220247][_0x106f8e]=_0x56eba3);}));});}return _0x2b3aa8;}['_initSnapshot'](){const _0x12337f=_0x2b16d4;this[_0x12337f(0x324)](this[_0x12337f(0x30e)][_0x12337f(0x9f)]({'toJson':_0x24a409=>JSON['stringify'](this[_0x12337f(0x1f8)](_0x24a409)),'parseJson':_0x530cbf=>({}),'businesses':[_0x282877[_0x12337f(0x20b)][_0x12337f(0x328)]],'pluginName':_0x2734d4,'onLoad':(_0x4d309f,_0x26ab21)=>{},'onUnLoad':_0x2ef2e3=>{this['deleteUnitId'](_0x2ef2e3);}}));}},_0x24d96c[_0x2b16d4(0x15d)]=_0x14226c([_0xeab076(0x0,_0x282877[_0x2b16d4(0x120)](_0x282877['Injector'])),_0xeab076(0x1,_0x282877['Inject'](_0x282877['ICommandService'])),_0xeab076(0x2,_0x282877['Inject'](_0x282877[_0x2b16d4(0x165)])),_0xeab076(0x3,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x397)])),_0xeab076(0x4,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0xc1)]))],_0x24d96c['SheetsPivotTableConfigModel']);var _0x1316cf=Object[_0x2b16d4(0x34b)],_0xc14f40=(_0x1d0285,_0x1d00dd,_0x327ff7,_0x49fac7)=>{const _0x22858a=_0x2b16d4;for(var _0x36014d=_0x49fac7>0x1?void 0x0:_0x49fac7?_0x1316cf(_0x1d00dd,_0x327ff7):_0x1d00dd,_0x2e62a1=_0x1d0285[_0x22858a(0x27b)]-0x1,_0x3c4fa4;_0x2e62a1>=0x0;_0x2e62a1--)(_0x3c4fa4=_0x1d0285[_0x2e62a1])&&(_0x36014d=_0x3c4fa4(_0x36014d)||_0x36014d);return _0x36014d;},_0x48c3ef=(_0x3453e2,_0x32acc2)=>(_0x16fa79,_0x5ddcdd)=>_0x32acc2(_0x16fa79,_0x5ddcdd,_0x3453e2);_0x24d96c[_0x2b16d4(0x389)]=class extends _0x282877['Disposable']{constructor(_0x477fc6,_0x2cbce7,_0xfe9646,_0x23b50e,_0xa9a065){const _0x2e3801=_0x2b16d4;super(),_0x2e1abd(this,_0x2e3801(0x1f6),new Map()),_0x2e1abd(this,_0x2e3801(0x2fd),new Map()),_0x2e1abd(this,'_markDirty$',new _0x2b003b[(_0x2e3801(0x35c))]()),_0x2e1abd(this,_0x2e3801(0x387),this[_0x2e3801(0x2bb)][_0x2e3801(0x259)]()),_0x2e1abd(this,_0x2e3801(0x25c),new _0x2b003b[(_0x2e3801(0x35c))]()),_0x2e1abd(this,_0x2e3801(0x1ad),this['_viewUpdate$']['asObservable']()),_0x2e1abd(this,_0x2e3801(0x3a4)),(this['_localeService']=_0x477fc6,this[_0x2e3801(0x1fe)]=_0x2cbce7,this[_0x2e3801(0xc5)]=_0xfe9646,this[_0x2e3801(0x12c)]=_0x23b50e,this[_0x2e3801(0x366)]=_0xa9a065,this['_initLocale'](),this[_0x2e3801(0x378)]());}[_0x2b16d4(0x378)](){const _0x4b7f9d=_0x2b16d4;this[_0x4b7f9d(0x324)](this[_0x4b7f9d(0x12c)]['getTypeOfUnitDisposed$'](_0x282877['UniverInstanceType']['UNIVER_SHEET'])[_0x4b7f9d(0x223)](_0x5baf05=>{const _0x2be9fa=_0x4b7f9d;this['deleteUnitId'](_0x5baf05[_0x2be9fa(0x255)]());}));}[_0x2b16d4(0x355)](){const _0x496cd9=_0x2b16d4;this[_0x496cd9(0x3a4)]=_0x1727a7(this[_0x496cd9(0x1fe)],_0x40592d,'',{});}[_0x2b16d4(0x215)](_0x36191a){const _0x47f49f=_0x2b16d4,{view:_0x15c0ce,unitId:_0x553719,subUnitId:_0x7f503d,pivotTableId:_0x21754a,type:_0x6a212e}=_0x36191a,_0x31fa48=this[_0x47f49f(0xc5)]['getPivotTableConfig'](_0x553719,_0x7f503d,_0x21754a);if(!_0x15c0ce||!_0x31fa48||_0x6a212e===_0xa5664b[_0x47f49f(0x3aa)])return;const {pageView:_0x28e3ce,cornerView:_0x4746d0,rowView:_0x46a9fa,colView:_0x361462,dataView:_0x539b95}=_0x15c0ce,_0x290420=_0x31fa48[_0x47f49f(0x360)],_0x53de7e=_0x31fa48[_0x47f49f(0xa8)],_0x32fda0=this[_0x47f49f(0x332)](_0x553719,_0x7f503d),_0x489562=this[_0x47f49f(0xa7)](_0x553719,_0x7f503d,_0x21754a);if(_0x53de7e)return this[_0x47f49f(0x101)](_0x36191a,_0x32fda0,_0x290420,_0x489562);{const _0x5a97c0=_0x37a9a3(_0x290420,_0x28e3ce,!0x0),_0x3ebc62=_0x28e3ce['lastRow']>=0x0?_0x28e3ce['lastRow']+0x1:0x0,_0x231906=_0x4746d0['getRowCount'](),_0x2a8441=_0x4746d0['getColCount'](),_0x50fb59=_0x5a97c0[_0x47f49f(0x27b)]>0x0?_0x44f3d5:0x0,_0x34ac2c=_0x37a9a3({'row':_0x290420['row']+_0x3ebc62+_0x50fb59,'col':_0x290420[_0x47f49f(0x1da)]},_0x4746d0,!0x1,!0x1),_0x2b5f30=_0x37a9a3({'row':_0x290420[_0x47f49f(0x303)]+_0x3ebc62+_0x50fb59+_0x231906,'col':_0x290420[_0x47f49f(0x1da)]},_0x46a9fa,!0x1,!0x0),_0x2680eb=_0x37a9a3({'row':_0x290420['row']+_0x3ebc62+_0x50fb59,'col':_0x290420[_0x47f49f(0x1da)]+_0x2a8441},_0x361462,!0x1,!0x0),_0x2dadb8=_0x37a9a3({'row':_0x290420[_0x47f49f(0x303)]+_0x3ebc62+_0x50fb59+_0x231906,'col':_0x290420[_0x47f49f(0x1da)]+_0x2a8441},_0x539b95,!0x1,!0x1);_0x489562['rangesInfo']={'rowRanges':_0x2b5f30,'colRanges':_0x2680eb,'cornerRanges':_0x34ac2c,'dataRanges':_0x2dadb8,'pageRanges':_0x5a97c0};const _0x367b72=_0x4a1770(this[_0x47f49f(0x1fe)],_0x15c0ce,_0x31fa48,this['_textInfo']),{valueMatrix:_0x5c4c7e,rowInfo:_0x537f7e,colInfo:_0x33fe99,cornerInfo:_0x4234bc,rowHeaderMap:_0x1d9cd9,colHeaderMap:_0x4d35be}=_0x367b72;return _0x489562['areaInfo']={'rowInfo':_0x537f7e,'colInfo':_0x33fe99,'cornerInfo':_0x4234bc},_0x489562[_0x47f49f(0x1a1)]={'rowHeaderMap':_0x1d9cd9,'colHeaderMap':_0x4d35be},_0x5c4c7e['forEach']((_0x17d89d,_0x1d1422)=>{const _0x2f0d2f=_0x47f49f;Object['keys'](_0x1d1422)[_0x2f0d2f(0xff)](_0x44aad7=>{const _0x52f991=_0x2f0d2f,_0x5607c3=+_0x44aad7,_0x4d6f7c=_0x5c4c7e[_0x52f991(0x1e3)](_0x17d89d,_0x5607c3);_0x32fda0[_0x52f991(0x39a)](_0x17d89d,_0x5607c3,_0x4d6f7c);});}),this['_viewUpdate$'][_0x47f49f(0x23b)]({'unitId':_0x553719,'subUnitId':_0x7f503d,'valueMatrix':_0x32fda0,'rangesCache':_0x489562[_0x47f49f(0x2b4)],'pivotTableId':_0x21754a,'type':_0x36191a[_0x47f49f(0x1e7)]}),this[_0x47f49f(0xc5)]['updateViewInfo'](_0x553719,_0x7f503d,_0x21754a,_0x32fda0,_0x489562['rangesInfo']),this[_0x47f49f(0x366)][_0x47f49f(0x1f4)](_0x553719,_0x7f503d,_0x15c051,this[_0x47f49f(0x18f)](_0x489562['rangesInfo'],_0x21754a)),{'rangeCache':_0x489562['rangesInfo'],'matrix':_0x32fda0};}}[_0x2b16d4(0x101)](_0x37150a,_0x10bead,_0x5512b2,_0x5f3d7e){const _0xe0dd09=_0x2b16d4,_0x3288f9=this[_0xe0dd09(0x121)]['t'],{unitId:_0x40a2c2,subUnitId:_0x236204,pivotTableId:_0x4dcb4b}=_0x37150a,_0x444bfa={'filter':_0x3288f9('sheets-pivot.emptyPivot.filter'),'row':_0x3288f9(_0xe0dd09(0x23e)),'column':_0x3288f9(_0xe0dd09(0x24b)),'values':_0x3288f9(_0xe0dd09(0x20f))},{matrixCache:_0x5c44a5,rangesCache:_0x274b02}=_0x943949(_0x444bfa,_0x5512b2);return _0x5c44a5['forValue']((_0x240373,_0x536339,_0xe81af0)=>{const _0x38f9ff=_0xe0dd09;_0x10bead[_0x38f9ff(0x39a)](_0x240373,_0x536339,_0xe81af0);}),_0x5f3d7e[_0xe0dd09(0x2b4)]=_0x274b02,this['_viewUpdate$'][_0xe0dd09(0x23b)]({'unitId':_0x40a2c2,'subUnitId':_0x236204,'valueMatrix':_0x10bead,'rangesCache':_0x274b02,'pivotTableId':_0x4dcb4b,'type':_0x37150a[_0xe0dd09(0x1e7)],'isEmpty':!0x0}),this['_sheetsPivotTableConfigModel'][_0xe0dd09(0x2c0)](_0x40a2c2,_0x236204,_0x4dcb4b,_0x10bead,_0x274b02),this[_0xe0dd09(0x366)][_0xe0dd09(0x1f4)](_0x40a2c2,_0x236204,_0x15c051,this[_0xe0dd09(0x18f)](_0x274b02,_0x4dcb4b)),{'rangeCache':_0x5f3d7e[_0xe0dd09(0x2b4)],'matrix':_0x10bead};}['_createExclusiveRange'](_0x26a0c8,_0x570050){const _0x1310b9=_0x2b16d4,_0x1bf932=[],_0x1c1ec2=_0x56a3ee(_0x26a0c8);for(const _0x311a77 of _0x1c1ec2)_0x1bf932[_0x1310b9(0x338)]({'groupId':_0x570050,'range':_0x311a77});return _0x1bf932;}['clearRenderCache'](_0x1bc677){const _0x2f4046=_0x2b16d4;var _0x470082,_0xc61f93,_0x150db6,_0x3efe23;const {pivotTableId:_0x2a8c93,unitId:_0x230214,subUnitId:_0xdcd730}=_0x1bc677;if(!_0x2a8c93||!_0x230214||!_0xdcd730)return;const _0x402189=this['_ensurePivotItemRenderValueMatrixCache'](_0x230214,_0xdcd730),_0x134eda=(_0xc61f93=(_0x470082=this[_0x2f4046(0x1f6)][_0x2f4046(0x1a9)](_0x230214))==null?void 0x0:_0x470082['get'](_0xdcd730))==null?void 0x0:_0xc61f93[_0x2f4046(0x1a9)](_0x2a8c93);if(_0x134eda!=null&&_0x134eda[_0x2f4046(0x2b4)]){for(const _0x37224b of Object[_0x2f4046(0x12a)](_0x134eda[_0x2f4046(0x2b4)]))_0x134eda['rangesInfo'][_0x37224b][_0x2f4046(0xff)](_0x1327e4=>{const _0x546186=_0x2f4046;for(let _0x36f936=_0x1327e4[_0x546186(0x19f)];_0x36f936<=_0x1327e4[_0x546186(0x39e)];_0x36f936++)for(let _0x399e7d=_0x1327e4[_0x546186(0x254)];_0x399e7d<=_0x1327e4['endColumn'];_0x399e7d++)_0x402189['realDeleteValue'](_0x36f936,_0x399e7d);});}_0x134eda&&((_0x3efe23=(_0x150db6=this[_0x2f4046(0x1f6)][_0x2f4046(0x1a9)](_0x230214))==null?void 0x0:_0x150db6[_0x2f4046(0x1a9)](_0xdcd730))==null||_0x3efe23[_0x2f4046(0x1c1)](_0x2a8c93)),this[_0x2f4046(0x25c)][_0x2f4046(0x23b)]({'unitId':_0x230214,'subUnitId':_0xdcd730,'valueMatrix':_0x402189,'pivotTableId':_0x2a8c93,'rangesCache':void 0x0,'type':_0x1bc677[_0x2f4046(0x1e7)]}),this[_0x2f4046(0x366)][_0x2f4046(0x122)](_0x230214,_0xdcd730,_0x15c051,_0x2a8c93);}[_0x2b16d4(0xa7)](_0x7c7733,_0x5546fd,_0x40d394){const _0x39bbb3=_0x2b16d4;var _0xf10b42,_0x1ddfad,_0x427867,_0x46c608,_0xd60918,_0x1defed;return this[_0x39bbb3(0x1f6)][_0x39bbb3(0x105)](_0x7c7733)||this[_0x39bbb3(0x1f6)][_0x39bbb3(0x28f)](_0x7c7733,new Map()),(_0xf10b42=this[_0x39bbb3(0x1f6)][_0x39bbb3(0x1a9)](_0x7c7733))!=null&&_0xf10b42[_0x39bbb3(0x105)](_0x5546fd)||(_0x1ddfad=this[_0x39bbb3(0x1f6)][_0x39bbb3(0x1a9)](_0x7c7733))==null||_0x1ddfad[_0x39bbb3(0x28f)](_0x5546fd,new Map()),(_0x46c608=(_0x427867=this[_0x39bbb3(0x1f6)]['get'](_0x7c7733))==null?void 0x0:_0x427867[_0x39bbb3(0x1a9)](_0x5546fd))!=null&&_0x46c608[_0x39bbb3(0x105)](_0x40d394)||(_0x1defed=(_0xd60918=this['_pivotRenderInfoCache'][_0x39bbb3(0x1a9)](_0x7c7733))==null?void 0x0:_0xd60918[_0x39bbb3(0x1a9)](_0x5546fd))==null||_0x1defed[_0x39bbb3(0x28f)](_0x40d394,{}),this[_0x39bbb3(0x1f6)][_0x39bbb3(0x1a9)](_0x7c7733)['get'](_0x5546fd)[_0x39bbb3(0x1a9)](_0x40d394);}['_ensurePivotItemRenderValueMatrixCache'](_0x5228bf,_0x41501c){const _0xb401ce=_0x2b16d4;var _0x5e0f9f,_0x2d06b5;return this['_pivotRenderValueMatrixCache'][_0xb401ce(0x105)](_0x5228bf)||this['_pivotRenderValueMatrixCache']['set'](_0x5228bf,new Map()),(_0x5e0f9f=this[_0xb401ce(0x2fd)][_0xb401ce(0x1a9)](_0x5228bf))!=null&&_0x5e0f9f['has'](_0x41501c)||(_0x2d06b5=this[_0xb401ce(0x2fd)][_0xb401ce(0x1a9)](_0x5228bf))==null||_0x2d06b5['set'](_0x41501c,new _0x282877[(_0xb401ce(0x184))]()),this[_0xb401ce(0x2fd)][_0xb401ce(0x1a9)](_0x5228bf)[_0xb401ce(0x1a9)](_0x41501c);}[_0x2b16d4(0x169)](_0x2cb6ce,_0x56b627,_0x210ef3,_0x1304e5){const _0x96bf88=_0x2b16d4;var _0x23af13,_0x184587;const _0xf91204=(_0x184587=(_0x23af13=this[_0x96bf88(0x2fd)][_0x96bf88(0x1a9)](_0x2cb6ce))==null?void 0x0:_0x23af13[_0x96bf88(0x1a9)](_0x56b627))==null?void 0x0:_0x184587[_0x96bf88(0x1e3)](_0x210ef3,_0x1304e5);if(_0xf91204!=null)return _0xf91204;}['getPivotTableIdByCell'](_0x39467e,_0x38be23,_0x14be8e,_0xa1eed1){const _0x524f41=_0x2b16d4;var _0x6eccf7;const _0x54f02a=_0x282877[_0x524f41(0x29f)](_0x14be8e,_0xa1eed1),_0x4ea0e2=(_0x6eccf7=this[_0x524f41(0x1f6)][_0x524f41(0x1a9)](_0x39467e))==null?void 0x0:_0x6eccf7[_0x524f41(0x1a9)](_0x38be23);return _0x4ea0e2?Array[_0x524f41(0xa4)](_0x4ea0e2[_0x524f41(0x12a)]())[_0x524f41(0x1a6)](_0x413fbc=>{const _0x13a39e=_0x524f41,_0x43bad5=_0x4ea0e2[_0x13a39e(0x1a9)](_0x413fbc),_0x19eff7=_0x43bad5==null?void 0x0:_0x43bad5[_0x13a39e(0x2b4)];return _0x19eff7?Object[_0x13a39e(0x12a)](_0x19eff7)[_0x13a39e(0x151)](_0x17356d=>_0x19eff7[_0x17356d][_0x13a39e(0x151)](_0x302d7c=>_0x282877[_0x13a39e(0x2e7)][_0x13a39e(0x235)](_0x302d7c,_0x54f02a))):!0x1;}):void 0x0;}[_0x2b16d4(0x175)](_0x45b181,_0x57cf39,_0x330b89){const _0x2bd21d=_0x2b16d4;var _0x4957ef;const _0x1ee562=(_0x4957ef=this['_pivotRenderInfoCache']['get'](_0x45b181))==null?void 0x0:_0x4957ef[_0x2bd21d(0x1a9)](_0x57cf39),_0xc085b5=[];return _0x1ee562&&Array[_0x2bd21d(0xa4)](_0x1ee562['keys']())['forEach'](_0x547d9e=>{const _0xeff2f7=_0x2bd21d,_0xb18618=_0x1ee562[_0xeff2f7(0x1a9)](_0x547d9e),_0x287825=_0xb18618==null?void 0x0:_0xb18618[_0xeff2f7(0x2b4)];if(_0x287825)for(const _0x96886f of Object[_0xeff2f7(0x369)](_0x287825)){let _0x2d4a22=!0x1;for(const _0x55ab8f of _0x96886f)if(_0x282877['Rectangle'][_0xeff2f7(0x2f5)](_0x55ab8f,_0x330b89)){_0xc085b5[_0xeff2f7(0x338)](_0x547d9e),_0x2d4a22=!0x0;break;}if(_0x2d4a22)break;}}),_0xc085b5;}['getSubUnitPivotMatrix'](_0x202098,_0x4398e4){const _0x48912a=_0x2b16d4;var _0xaf4a72,_0x4bdc9f;return(_0x4bdc9f=(_0xaf4a72=this['_pivotRenderValueMatrixCache'][_0x48912a(0x1a9)](_0x202098))==null?void 0x0:_0xaf4a72['get'](_0x4398e4))!=null?_0x4bdc9f:new _0x282877[(_0x48912a(0x184))]();}[_0x2b16d4(0x37d)](_0x37c32a,_0x46907d){const _0x3dd93a=_0x2b16d4;var _0x53b075;return(_0x53b075=this[_0x3dd93a(0x1f6)][_0x3dd93a(0x1a9)](_0x37c32a))==null?void 0x0:_0x53b075[_0x3dd93a(0x1a9)](_0x46907d);}['getPivotItemRenderInfoCache'](_0x515a1f,_0x1c365b,_0x162e57){const _0x565155=_0x2b16d4;var _0x3e16a5,_0x418462;return(_0x418462=(_0x3e16a5=this[_0x565155(0x1f6)][_0x565155(0x1a9)](_0x515a1f))==null?void 0x0:_0x3e16a5[_0x565155(0x1a9)](_0x1c365b))==null?void 0x0:_0x418462[_0x565155(0x1a9)](_0x162e57);}[_0x2b16d4(0x28d)](_0x4e4cf2){const _0x13f589=_0x2b16d4;this[_0x13f589(0x1f6)]['delete'](_0x4e4cf2),this[_0x13f589(0x2fd)][_0x13f589(0x1c1)](_0x4e4cf2);}['markDirty'](_0x43d34f,_0x4b0a43){const _0x1e5c5f=_0x2b16d4;this[_0x1e5c5f(0x2bb)][_0x1e5c5f(0x23b)]({'unitId':_0x43d34f,'subUnitId':_0x4b0a43});}},_0x24d96c[_0x2b16d4(0x389)]=_0xc14f40([_0x48c3ef(0x0,_0x282877['Inject'](_0x282877['LocaleService'])),_0x48c3ef(0x1,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x33a)])),_0x48c3ef(0x2,_0x282877[_0x2b16d4(0x120)](_0x24d96c['SheetsPivotTableConfigModel'])),_0x48c3ef(0x3,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x165)])),_0x48c3ef(0x4,_0x282877['Inject'](_0x5698b3[_0x2b16d4(0x1ab)]))],_0x24d96c[_0x2b16d4(0x389)]);var _0x3d72e6=Object['getOwnPropertyDescriptor'],_0x406c1b=(_0x3c06c4,_0x43e351,_0xe5a1a9,_0x219d60)=>{const _0x4cce65=_0x2b16d4;for(var _0x2363fb=_0x219d60>0x1?void 0x0:_0x219d60?_0x3d72e6(_0x43e351,_0xe5a1a9):_0x43e351,_0x376616=_0x3c06c4[_0x4cce65(0x27b)]-0x1,_0x360598;_0x376616>=0x0;_0x376616--)(_0x360598=_0x3c06c4[_0x376616])&&(_0x2363fb=_0x360598(_0x2363fb)||_0x2363fb);return _0x2363fb;},_0x31c887=(_0x329508,_0x5f26c0)=>(_0xdd9183,_0x24a1f3)=>_0x5f26c0(_0xdd9183,_0x24a1f3,_0x329508);_0x24d96c[_0x2b16d4(0x199)]=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x5eff39,_0x1d65df){const _0x401fac=_0x2b16d4;super(),_0x2e1abd(this,_0x401fac(0x29c),new _0x282877[(_0x401fac(0x187))]({'PIVOT_PERFORM_CHECK':_0x387164})),_0x2e1abd(this,_0x401fac(0x388),new _0x282877[(_0x401fac(0x15a))]({'PIVOT_MUTATION_GENERATE':_0x3c85f0})),(this[_0x401fac(0x31a)]=_0x5eff39,this[_0x401fac(0x14f)]=_0x1d65df,this[_0x401fac(0x261)]());}[_0x2b16d4(0x261)](){const _0x44d902=_0x2b16d4;this[_0x44d902(0x318)]();}[_0x2b16d4(0x1d6)](_0x56b070){const _0x20479b=_0x2b16d4;return this[_0x20479b(0x29c)][_0x20479b(0x3a7)](_0x387164)(!0x1,_0x56b070);}['_initViewModelBySheetInterceptor'](){const _0x1ae187=_0x2b16d4;this['disposeWithMe'](this[_0x1ae187(0x31a)]['intercept'](_0x5698b3['INTERCEPTOR_POINT'][_0x1ae187(0xf6)],{'priority':0xc8,'effect':_0x282877['InterceptorEffectEnum'][_0x1ae187(0xbb)]|_0x282877['InterceptorEffectEnum'][_0x1ae187(0x229)],'handler':(_0x72c499,_0x56f155,_0x299fc8)=>{const _0xa555d3=_0x1ae187,{row:_0x1fa6bb,col:_0x338a69,unitId:_0x355a35,subUnitId:_0x275d35,workbook:_0x1d1abb}=_0x56f155,_0x5829cf=this[_0xa555d3(0x14f)]['getPivotTableCellData'](_0x355a35,_0x275d35,_0x1fa6bb,_0x338a69);if(!_0x5829cf)return _0x299fc8(_0x72c499);const _0x38c11b={..._0x72c499};(_0x5829cf['v']||_0x5829cf['v']===0x0)&&(_0x38c11b['v']=_0x5829cf['v']),_0x5829cf['t']&&(_0x38c11b['t']=_0x5829cf['t']);const _0x17032f=(typeof(_0x72c499==null?void 0x0:_0x72c499['s'])==_0xa555d3(0x168)?_0x1d1abb['getStyles']()[_0xa555d3(0x1a9)](_0x72c499==null?void 0x0:_0x72c499['s']):_0x72c499==null?void 0x0:_0x72c499['s'])||{},_0x545ed3=_0x1d1abb[_0xa555d3(0x30b)]()[_0xa555d3(0x1a9)](_0x5829cf['s']),_0x42d941={..._0x545ed3,..._0x17032f};_0x545ed3!=null&&_0x545ed3['n']&&(_0x42d941['n']=_0x545ed3['n']);const _0x2115c7=_0x1d1abb[_0xa555d3(0x30b)]()[_0xa555d3(0x39a)](_0x42d941);return _0x38c11b['s']=_0x2115c7,(_0x5829cf[_0xa555d3(0x280)]===_0x3e0737['PivotCellStyleTypeEnum']['Collapse']||_0x5829cf[_0xa555d3(0x280)]===_0x3e0737['PivotCellStyleTypeEnum'][_0xa555d3(0x2fb)])&&(_0x38c11b[_0xa555d3(0xaa)]={},_0x38c11b[_0xa555d3(0xaa)][_0xa555d3(0x133)]=_0x2ba735),_0x299fc8(_0x38c11b);}}));}},_0x24d96c[_0x2b16d4(0x199)]=_0x406c1b([_0x31c887(0x0,_0x282877[_0x2b16d4(0x120)](_0x5698b3['SheetInterceptorService'])),_0x31c887(0x1,_0x282877['Inject'](_0x24d96c[_0x2b16d4(0x389)]))],_0x24d96c[_0x2b16d4(0x199)]);const _0x2025a4={'id':'sheet.mutation.add-group-collection','type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'handler':(_0x2284cd,_0x297d0f)=>{const _0x3806bb=_0x2b16d4;if(!_0x297d0f)return!0x1;if(!!_0x2284cd[_0x3806bb(0x1a9)](_0x282877[_0x3806bb(0xc1)])[_0x3806bb(0xf8)](_0x3ecd37))return!0x0;const {pivotTableId:_0x242376,fieldJSON:_0x458661,unitId:_0x4cd300,subUnitId:_0x53e888}=_0x297d0f;let _0x2edd28;const {dataFieldType:_0x12e08a,id:_0x2e5de8,name:_0x41e396,hexCode:_0x30b080,originalFieldId:_0x3eceae}=_0x458661;if(_0x12e08a===_0x3e0737[_0x3806bb(0x278)][_0x3806bb(0x2e6)]&&(_0x2edd28=new _0x3e0737[(_0x3806bb(0x346))](_0x2e5de8,_0x41e396,_0x30b080,_0x3eceae)),!_0x2edd28)return!0x1;const _0x2a5702=_0x2284cd[_0x3806bb(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),_0x3f5f2b=_0x2a5702[_0x3806bb(0xc9)](_0x4cd300),_0x1e81b5=_0x3f5f2b[_0x3806bb(0xd9)](_0x242376);_0x3f5f2b[_0x3806bb(0x1e0)](_0x2edd28),_0x1e81b5[_0x3806bb(0x38f)](_0x2edd28[_0x3806bb(0x149)](),_0x2edd28[_0x3806bb(0x241)]());const _0x2eb2d5=_0x1e81b5[_0x3806bb(0x158)](_0x2edd28[_0x3806bb(0x295)]());_0x2eb2d5&&_0x2edd28[_0x3806bb(0xd6)](_0x2eb2d5);const _0x5774d0=_0x2a5702[_0x3806bb(0x13c)](_0x4cd300,_0x53e888,_0x242376);return _0x2a5702['addDirtyPivotTable']({'unitId':_0x4cd300,'subUnitId':_0x53e888,'token':_0x242376,'type':_0xa5664b[_0x3806bb(0x127)],'pivotConfig':_0x5774d0}),!0x0;}},_0x38013c={'id':_0x2b16d4(0x1db),'type':_0x282877['CommandType'][_0x2b16d4(0x156)],'handler':(_0x44efad,_0x369ed9)=>{const _0x95525a=_0x2b16d4;if(!_0x369ed9)return!0x1;if(!!_0x44efad[_0x95525a(0x1a9)](_0x282877['IConfigService'])[_0x95525a(0xf8)](_0x3ecd37))return!0x0;const {pivotTableId:_0x3c6e6e,dataFieldId:_0x3994c8,unitId:_0x662f8b,subUnitId:_0x5f444e}=_0x369ed9,_0x947e0a=_0x44efad[_0x95525a(0x1a9)](_0x24d96c[_0x95525a(0x1b4)]),_0x2d9031=_0x947e0a['getDataFieldManager'](_0x662f8b);_0x2d9031['getCollection'](_0x3c6e6e)[_0x95525a(0x144)](_0x3994c8);let _0x2c878=!0x0;for(const _0x40cae0 in _0x2d9031[_0x95525a(0x256)])if(_0x2d9031[_0x95525a(0x256)][_0x40cae0]['getFieldIds']()[_0x95525a(0x339)](_0x3994c8)){_0x2c878=!0x1;break;}_0x2c878&&_0x2d9031[_0x95525a(0x2ea)](_0x3994c8);const _0x2238f0=_0x947e0a[_0x95525a(0x13c)](_0x662f8b,_0x5f444e,_0x3c6e6e);return _0x947e0a[_0x95525a(0x224)]({'unitId':_0x662f8b,'subUnitId':_0x5f444e,'token':_0x3c6e6e,'type':_0xa5664b['Set'],'pivotConfig':_0x2238f0}),!0x0;}};function _0x38e2b7(_0x1954aa,_0x53c254){const _0x472c49=_0x2b16d4;switch(_0x53c254){case _0x3e0737[_0x472c49(0x372)]['Value']:return _0x1954aa[_0x472c49(0x16d)];case _0x3e0737[_0x472c49(0x372)][_0x472c49(0x395)]:return _0x1954aa[_0x472c49(0x2af)];case _0x3e0737[_0x472c49(0x372)]['Row']:return _0x1954aa[_0x472c49(0x170)];case _0x3e0737[_0x472c49(0x372)]['Column']:return _0x1954aa['columnFields'];default:return[];}}function _0x228875(_0x543f95,_0xf86350){const _0x3a0a39=_0x2b16d4;return _0x543f95[_0x3a0a39(0xee)][_0xf86350]||_0x543f95[_0x3a0a39(0x3a3)][_0xf86350];}function _0x5d15e7(_0xbfbda,_0x273941){const _0x21914b=_0x2b16d4,{area:_0x18d296,fieldJson:_0x58b5f3,index:_0x2d6228}=_0x273941;_0x18d296===_0x3e0737[_0x21914b(0x372)][_0x21914b(0xbb)]?_0xbfbda[_0x21914b(0xee)][_0x58b5f3['id']]=_0x58b5f3:_0xbfbda[_0x21914b(0x3a3)][_0x58b5f3['id']]=_0x58b5f3,_0x38e2b7(_0xbfbda,_0x18d296)[_0x21914b(0xb1)](_0x2d6228,0x0,_0x58b5f3['id']);}function _0xa753c8(_0x23ac0c,_0x291fd6){const _0x57f36f=_0x2b16d4,{area:_0x547d78,fieldId:_0x5a0311,index:_0x2d957b}=_0x291fd6;_0x547d78===_0x3e0737[_0x57f36f(0x372)][_0x57f36f(0xbb)]?delete _0x23ac0c['measure'][_0x5a0311]:delete _0x23ac0c[_0x57f36f(0x3a3)][_0x5a0311],_0x38e2b7(_0x23ac0c,_0x547d78)[_0x57f36f(0xb1)](_0x2d957b,0x1);}function _0x66d0fc(_0xc1d724,_0x11471f){const _0x1a575b=_0x2b16d4,{fieldId:_0x1ba007,name:_0x483b75}=_0x11471f,_0x35bf22=_0x228875(_0xc1d724,_0x1ba007);_0x35bf22&&(_0x35bf22[_0x1a575b(0x38c)]=_0x483b75);}function _0x2cd3b1(_0x20b573,_0x2cfd20){const _0x2c5e26=_0x2b16d4,{fieldId:_0x4147ec,collapse:_0x5dc478,item:_0x540435}=_0x2cfd20;_0x540435!==void 0x0?(_0x20b573[_0x2c5e26(0x222)][_0x4147ec]=_0x20b573[_0x2c5e26(0x222)][_0x4147ec]||{},_0x20b573[_0x2c5e26(0x222)][_0x4147ec][_0x540435]=_0x5dc478):_0x20b573[_0x2c5e26(0x222)][_0x4147ec]=_0x5dc478;}function _0x229054(_0x20e761,_0xeb2cc1){const _0x1b8249=_0x2b16d4,{fieldId:_0x50b5c4,format:_0x4f41de}=_0xeb2cc1,_0x569a8a=_0x228875(_0x20e761,_0x50b5c4);_0x569a8a&&(_0x569a8a[_0x1b8249(0x251)]=_0x4f41de);}function _0x5a9108(_0x27467d,_0x4fe12b){const _0x2d984e=_0x2b16d4,{fieldId:_0x3b16c5,filterInfo:_0x538d31}=_0x4fe12b,_0x11e32e=_0x228875(_0x27467d,_0x3b16c5);_0x11e32e&&(_0x11e32e[_0x2d984e(0x361)]=_0x538d31);}function _0x48a926(_0x2f13f2,_0x1a9763){const _0x257e0e=_0x2b16d4,{fieldId:_0x335197,filterInfo:_0x48e039}=_0x1a9763,_0x3e100b=_0x2f13f2[_0x257e0e(0x306)][_0x257e0e(0x179)](_0x4956ce=>_0x4956ce[_0x257e0e(0x131)]!==_0x335197);_0x48e039&&_0x3e100b[_0x257e0e(0x338)]({'fieldId':_0x335197,'filterInfo':_0x48e039}),_0x2f13f2[_0x257e0e(0x306)]=_0x3e100b;}function _0xb85e22(_0x560cab,_0x48cfc6){const _0x4f39f7=_0x2b16d4,{fieldId:_0x4b1a49,subtotalType:_0x4958f3}=_0x48cfc6,_0x1263b7=_0x228875(_0x560cab,_0x4b1a49);_0x1263b7&&(_0x1263b7[_0x4f39f7(0x250)]=_0x4958f3);}function _0x3daf9f(_0x3273ca,_0x39f64c){const _0x3e3174=_0x2b16d4,{fieldId:_0x34a2ce,oldArea:_0x10affd,area:_0x3589ca,oldIndex:_0x1006e5,index:_0x5a450e}=_0x39f64c,_0x251f84=_0x10affd!==_0x3e0737[_0x3e3174(0x372)]['Value']&&_0x3589ca===_0x3e0737[_0x3e3174(0x372)]['Value'],_0x5017c3=_0x10affd===_0x3e0737[_0x3e3174(0x372)]['Value']&&_0x3589ca!==_0x3e0737[_0x3e3174(0x372)][_0x3e3174(0xbb)];if(_0x251f84||_0x5017c3){const _0x1d1397=_0x228875(_0x3273ca,_0x34a2ce);_0x1d1397&&(_0x251f84?(delete _0x3273ca[_0x3e3174(0x3a3)][_0x34a2ce],_0x3273ca['measure'][_0x34a2ce]=_0x1d1397):(delete _0x3273ca[_0x3e3174(0xee)][_0x34a2ce],_0x3273ca[_0x3e3174(0x3a3)][_0x34a2ce]=_0x1d1397));}const _0x2ba9b6=_0x38e2b7(_0x3273ca,_0x10affd),_0xeeb266=_0x38e2b7(_0x3273ca,_0x3589ca);_0x2ba9b6[_0x3e3174(0xb1)](_0x1006e5,0x1),_0xeeb266['splice'](_0x5a450e,0x0,_0x34a2ce);}function _0x4a00b0(_0x149a04,_0x4dfd1f){const _0x3e992c=_0x2b16d4,{valuePosition:_0x4748ce,index:_0x2539c1}=_0x4dfd1f;_0x149a04[_0x3e992c(0x32f)]=_0x4748ce,_0x149a04[_0x3e992c(0x117)]=_0x2539c1;}function _0xffa9fd(_0x4699c1,_0x4ad196){const _0x27f82b=_0x2b16d4,{tableFieldId:_0x32c910,sourceName:_0x1ad71a,dataFieldId:_0xeadf1c}=_0x4ad196,_0xb30da3=_0x228875(_0x4699c1,_0x32c910);_0xb30da3&&(_0xb30da3[_0x27f82b(0x1fa)]=_0x1ad71a,_0xb30da3['dataFieldId']=_0xeadf1c);}function _0x56ad45(_0x3096b3,_0x24736c){const _0x237e8a=_0x2b16d4,{fieldId:_0x2a2bb3,sortInfo:_0xde9cd2}=_0x24736c,_0x2657a1=_0x228875(_0x3096b3,_0x2a2bb3);_0x2657a1&&(_0x2657a1[_0x237e8a(0x227)]=_0xde9cd2);}function _0x23b563(_0x56fbde,_0x5a0781){const _0x50de76=_0x2b16d4,{options:_0xf16421}=_0x5a0781;_0x56fbde['options']={..._0x56fbde[_0x50de76(0x1bb)],..._0xf16421};}const _0x5ab80d={'type':_0x282877['CommandType'][_0x2b16d4(0x156)],'id':_0x2b16d4(0x135),'handler'(_0x27dea1,_0x49190f){const _0x4b5789=_0x2b16d4;if(!_0x49190f)return!0x1;if(!!_0x27dea1[_0x4b5789(0x1a9)](_0x282877[_0x4b5789(0xc1)])[_0x4b5789(0xf8)](_0x3ecd37))return!0x0;const _0x480e80=_0x27dea1['get'](_0x24d96c[_0x4b5789(0x1b4)]),{pivotTableId:_0x1f4afb,fieldJson:_0x4acfce,area:_0x1e5f07,index:_0x261597,unitId:_0x3dcb78,subUnitId:_0x195b40}=_0x49190f,_0x4900b0=_0x480e80[_0x4b5789(0x185)](_0x1f4afb);if(!_0x4900b0)return!0x1;let _0x2d5f5f;_0x1e5f07===_0x3e0737[_0x4b5789(0x372)]['Value']?_0x2d5f5f=_0x3e0737['createValueField'](_0x4acfce):_0x2d5f5f=_0x3e0737[_0x4b5789(0x39f)](_0x4acfce),_0x4900b0[_0x4b5789(0x38f)](_0x2d5f5f,_0x1e5f07,_0x261597);const _0x1b0049=_0x480e80[_0x4b5789(0x2d1)](_0x3dcb78,_0x195b40,_0x1f4afb);_0x5d15e7(_0x1b0049,_0x49190f);const _0x2d7331=_0x480e80[_0x4b5789(0x13c)](_0x3dcb78,_0x195b40,_0x1f4afb);return _0x480e80[_0x4b5789(0x224)]({'unitId':_0x3dcb78,'subUnitId':_0x195b40,'token':_0x1f4afb,'type':_0xa5664b[_0x4b5789(0x127)],'pivotConfig':_0x2d7331}),!0x0;}},_0x422578={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x1bc775,_0x5345fd){const _0x1375b2=_0x2b16d4;if(!_0x5345fd)return!0x1;if(!!_0x1bc775[_0x1375b2(0x1a9)](_0x282877[_0x1375b2(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const _0xaa0a10=_0x1bc775[_0x1375b2(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),{pivotTableId:_0x4a8e3a,fieldId:_0x24b2b5,unitId:_0x10608a,subUnitId:_0x3d5116}=_0x5345fd,_0x2baba6=_0xaa0a10[_0x1375b2(0x185)](_0x4a8e3a);if(!_0x2baba6)return!0x1;_0x2baba6[_0x1375b2(0x218)](_0x24b2b5);const _0x1f838b=_0xaa0a10[_0x1375b2(0x2d1)](_0x10608a,_0x3d5116,_0x4a8e3a);_0xa753c8(_0x1f838b,_0x5345fd);const _0x299e32=_0xaa0a10[_0x1375b2(0x13c)](_0x10608a,_0x3d5116,_0x4a8e3a);return _0xaa0a10['addDirtyPivotTable']({'unitId':_0x10608a,'subUnitId':_0x3d5116,'token':_0x4a8e3a,'type':_0xa5664b['Set'],'pivotConfig':_0x299e32}),!0x0;}},_0x406f56={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.rename-pivot-field','handler'(_0xc70ed8,_0x25ae5f){const _0x592755=_0x2b16d4;if(!_0x25ae5f)return!0x1;if(!!_0xc70ed8[_0x592755(0x1a9)](_0x282877['IConfigService'])[_0x592755(0xf8)](_0x3ecd37))return!0x0;const _0x181f5f=_0xc70ed8[_0x592755(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),{unitId:_0x3b2689,subUnitId:_0x8b57a4,pivotTableId:_0x308ba7,fieldId:_0x1ee313,name:_0x44e8db}=_0x25ae5f,_0x22739c=_0x181f5f[_0x592755(0x185)](_0x308ba7);if(!_0x22739c)return!0x1;_0x22739c[_0x592755(0x32b)](_0x1ee313,_0x44e8db);const _0x332cf8=_0x181f5f[_0x592755(0x2d1)](_0x3b2689,_0x8b57a4,_0x308ba7);return _0x66d0fc(_0x332cf8,_0x25ae5f),_0x181f5f[_0x592755(0x224)]({'unitId':_0x3b2689,'subUnitId':_0x8b57a4,'token':_0x308ba7,'type':_0xa5664b['Set']}),!0x0;}},_0x42179c={'type':_0x282877[_0x2b16d4(0x205)]['MUTATION'],'id':_0x2b16d4(0x159),'handler'(_0x54be75,_0x877a09){const _0x1dc172=_0x2b16d4;if(!_0x877a09)return!0x1;if(!!_0x54be75[_0x1dc172(0x1a9)](_0x282877[_0x1dc172(0xc1)])[_0x1dc172(0xf8)](_0x3ecd37))return!0x0;const _0x4d9606=_0x54be75[_0x1dc172(0x1a9)](_0x24d96c[_0x1dc172(0x1b4)]),{unitId:_0x374e1f,subUnitId:_0x2c9547,pivotTableId:_0x50bc8,fieldId:_0x285fa5,collapse:_0x338c2f,item:_0x370b31}=_0x877a09,_0x122b8c=_0x4d9606['getPivotTableInstance'](_0x50bc8);if(!_0x122b8c)return!0x1;_0x122b8c['setCollapse'](_0x285fa5,_0x338c2f,_0x370b31);const _0x266125=_0x4d9606[_0x1dc172(0x2d1)](_0x374e1f,_0x2c9547,_0x50bc8);return _0x2cd3b1(_0x266125,_0x877a09),_0x4d9606[_0x1dc172(0x224)]({'unitId':_0x374e1f,'subUnitId':_0x2c9547,'token':_0x50bc8,'type':_0xa5664b['Set']}),!0x0;}},_0x233cb2={'type':_0x282877[_0x2b16d4(0x205)]['MUTATION'],'id':_0x2b16d4(0x336),'handler'(_0x323754,_0x2a203c){const _0x2b9584=_0x2b16d4;if(!_0x2a203c)return!0x1;if(!!_0x323754[_0x2b9584(0x1a9)](_0x282877[_0x2b9584(0xc1)])[_0x2b9584(0xf8)](_0x3ecd37))return!0x0;const _0x36e917=_0x323754[_0x2b9584(0x1a9)](_0x24d96c[_0x2b9584(0x1b4)]),{unitId:_0x48d63d,subUnitId:_0x2ba41c,pivotTableId:_0x2286de,fieldId:_0x184473,format:_0x471276}=_0x2a203c,_0x52a0d6=_0x36e917[_0x2b9584(0x185)](_0x2286de);if(!_0x52a0d6)return!0x1;_0x52a0d6['setFieldFormat'](_0x184473,_0x471276);const _0x357526=_0x36e917['getPivotTableModelConfig'](_0x48d63d,_0x2ba41c,_0x2286de);return _0x229054(_0x357526,_0x2a203c),_0x36e917[_0x2b9584(0x224)]({'unitId':_0x48d63d,'subUnitId':_0x2ba41c,'token':_0x2286de,'type':_0xa5664b[_0x2b9584(0x127)]}),!0x0;}},_0x59b12d={'type':_0x282877[_0x2b16d4(0x205)]['MUTATION'],'id':_0x2b16d4(0x18c),'handler'(_0x1452ad,_0x227c4a){const _0x30bc94=_0x2b16d4;if(!_0x227c4a)return!0x1;if(!!_0x1452ad['get'](_0x282877[_0x30bc94(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const _0x3b7389=_0x1452ad[_0x30bc94(0x1a9)](_0x24d96c[_0x30bc94(0x1b4)]),{unitId:_0x123596,subUnitId:_0x282c7a,pivotTableId:_0x57270b,fieldId:_0x2589ae,filterInfo:_0xd85002}=_0x227c4a,_0xf786cf=_0x3b7389[_0x30bc94(0x185)](_0x57270b);if(!_0xf786cf)return!0x1;_0xf786cf[_0x30bc94(0x317)](_0x2589ae,_0xd85002);const _0x539ed2=_0x3b7389[_0x30bc94(0x2d1)](_0x123596,_0x282c7a,_0x57270b);return _0x5a9108(_0x539ed2,_0x227c4a),_0x3b7389['addDirtyPivotTable']({'unitId':_0x123596,'subUnitId':_0x282c7a,'token':_0x57270b,'type':_0xa5664b[_0x30bc94(0x127)]}),!0x0;}},_0x2dd0f8={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0xc8),'handler'(_0x489c96,_0x3f10b6){const _0x43ac45=_0x2b16d4;if(!_0x3f10b6)return!0x1;if(!!_0x489c96[_0x43ac45(0x1a9)](_0x282877[_0x43ac45(0xc1)])[_0x43ac45(0xf8)](_0x3ecd37))return!0x0;const _0x259b4b=_0x489c96['get'](_0x24d96c[_0x43ac45(0x1b4)]),{unitId:_0x3e79fb,subUnitId:_0x38fb91,pivotTableId:_0x33ca0b,options:_0x133c23}=_0x3f10b6,_0x22b800=_0x259b4b[_0x43ac45(0x185)](_0x33ca0b);if(!_0x22b800)return!0x1;_0x22b800['setOptions'](_0x133c23);const _0x6c10f5=_0x259b4b[_0x43ac45(0x2d1)](_0x3e79fb,_0x38fb91,_0x33ca0b);return _0x23b563(_0x6c10f5,_0x3f10b6),_0x259b4b[_0x43ac45(0x224)]({'unitId':_0x3e79fb,'subUnitId':_0x38fb91,'token':_0x33ca0b,'type':_0xa5664b[_0x43ac45(0x127)]}),!0x0;}},_0x948cfc={'type':_0x282877['CommandType'][_0x2b16d4(0x156)],'id':_0x2b16d4(0x1cc),'handler'(_0x355e91,_0x1c4c90){const _0x65e6ec=_0x2b16d4;if(!_0x1c4c90)return!0x1;if(!!_0x355e91[_0x65e6ec(0x1a9)](_0x282877[_0x65e6ec(0xc1)])[_0x65e6ec(0xf8)](_0x3ecd37))return!0x0;const _0x43b89f=_0x355e91[_0x65e6ec(0x1a9)](_0x24d96c[_0x65e6ec(0x1b4)]),{unitId:_0xe7bfa6,subUnitId:_0x2e361d,pivotTableId:_0xb14cb2,sortInfo:_0x4111b6,fieldId:_0x2498be}=_0x1c4c90,_0x4ccd41=_0x43b89f[_0x65e6ec(0x185)](_0xb14cb2);if(!_0x4ccd41)return!0x1;_0x4ccd41[_0x65e6ec(0x399)](_0x2498be,_0x4111b6);const _0x4cc86f=_0x43b89f['getPivotTableModelConfig'](_0xe7bfa6,_0x2e361d,_0xb14cb2);return _0x56ad45(_0x4cc86f,_0x1c4c90),_0x43b89f['addDirtyPivotTable']({'unitId':_0xe7bfa6,'subUnitId':_0x2e361d,'token':_0xb14cb2,'type':_0xa5664b[_0x65e6ec(0x127)]}),!0x0;}},_0x2ec070={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x1c5),'handler'(_0x38f6f2,_0x5c7e30){const _0x4b6546=_0x2b16d4;if(!_0x5c7e30)return!0x1;if(!!_0x38f6f2[_0x4b6546(0x1a9)](_0x282877[_0x4b6546(0xc1)])[_0x4b6546(0xf8)](_0x3ecd37))return!0x0;const _0x45dcb3=_0x38f6f2[_0x4b6546(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),{unitId:_0x1b7f91,subUnitId:_0x48da92,pivotTableId:_0x46faa6,fieldId:_0x28b1f2,subtotalType:_0x11781c}=_0x5c7e30,_0x3b7db2=_0x45dcb3['getPivotTableInstance'](_0x46faa6);if(!_0x3b7db2)return!0x1;_0x3b7db2['setSubtotalType'](_0x28b1f2,_0x11781c);const _0x5b227c=_0x45dcb3[_0x4b6546(0x2d1)](_0x1b7f91,_0x48da92,_0x46faa6);return _0xb85e22(_0x5b227c,_0x5c7e30),_0x45dcb3[_0x4b6546(0x224)]({'unitId':_0x1b7f91,'subUnitId':_0x48da92,'token':_0x46faa6,'type':_0xa5664b['Set']}),!0x0;}},_0x2d2d96={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x360736,_0x319add){const _0x1cddea=_0x2b16d4;if(!_0x319add)return!0x1;if(!!_0x360736[_0x1cddea(0x1a9)](_0x282877[_0x1cddea(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const _0xb8f6ae=_0x360736[_0x1cddea(0x1a9)](_0x24d96c[_0x1cddea(0x1b4)]),{unitId:_0x539cd6,subUnitId:_0x36c217,pivotTableId:_0x1d9e4c,fieldId:_0x56a9dc,filterInfo:_0x27b429}=_0x319add,_0x327a16=_0xb8f6ae['getPivotTableInstance'](_0x1d9e4c);if(!_0x327a16)return!0x1;_0x327a16[_0x1cddea(0x2c8)](_0x56a9dc,_0x27b429);const _0x45dee6=_0xb8f6ae['getPivotTableModelConfig'](_0x539cd6,_0x36c217,_0x1d9e4c);return _0x48a926(_0x45dee6,_0x319add),_0xb8f6ae['addDirtyPivotTable']({'unitId':_0x539cd6,'subUnitId':_0x36c217,'token':_0x1d9e4c,'type':_0xa5664b[_0x1cddea(0x127)]}),!0x0;}},_0x2a81cb={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x22a),'handler'(_0x32e8ac,_0x162084){const _0x5d093c=_0x2b16d4;if(!_0x162084)return!0x1;if(!!_0x32e8ac['get'](_0x282877[_0x5d093c(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const _0xe92e74=_0x32e8ac[_0x5d093c(0x1a9)](_0x24d96c[_0x5d093c(0x1b4)]),{unitId:_0x4b2e7c,subUnitId:_0x52544c,pivotTableId:_0x22bb9a,area:_0x25062f,index:_0x1dbb7e,fieldId:_0x1592fa}=_0x162084,_0x50b4ad=_0xe92e74['getPivotTableInstance'](_0x22bb9a);if(!_0x50b4ad)return!0x1;_0x50b4ad[_0x5d093c(0x31d)](_0x1592fa,_0x25062f,_0x1dbb7e);const _0x11e509=_0xe92e74[_0x5d093c(0x2d1)](_0x4b2e7c,_0x52544c,_0x22bb9a);return _0x3daf9f(_0x11e509,_0x162084),_0xe92e74['addDirtyPivotTable']({'unitId':_0x4b2e7c,'subUnitId':_0x52544c,'token':_0x22bb9a,'type':_0xa5664b['Set']}),!0x0;}},_0x595fcf={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0xa1),'handler'(_0x18b0cc,_0x17fc88){const _0x46ed1d=_0x2b16d4;if(!_0x17fc88)return!0x1;if(!!_0x18b0cc[_0x46ed1d(0x1a9)](_0x282877[_0x46ed1d(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const _0x4638c8=_0x18b0cc[_0x46ed1d(0x1a9)](_0x24d96c[_0x46ed1d(0x1b4)]),{unitId:_0x2ba0ae,subUnitId:_0x54854e,pivotTableId:_0x2d3be3,sourceName:_0x14ebac,dataFieldId:_0x46a3fb,tableFieldId:_0x584483}=_0x17fc88,_0x26143e=_0x4638c8[_0x46ed1d(0x185)](_0x2d3be3);if(!_0x26143e)return!0x1;_0x26143e[_0x46ed1d(0x114)](_0x584483,_0x14ebac,_0x46a3fb);const _0x5eae78=_0x4638c8[_0x46ed1d(0x2d1)](_0x2ba0ae,_0x54854e,_0x2d3be3);return _0xffa9fd(_0x5eae78,_0x17fc88),_0x4638c8[_0x46ed1d(0x224)]({'unitId':_0x2ba0ae,'subUnitId':_0x54854e,'token':_0x2d3be3,'type':_0xa5664b[_0x46ed1d(0x127)]}),!0x0;}},_0x2647c7={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x22e),'handler'(_0x1e5091,_0x12a13a){const _0x413497=_0x2b16d4;if(!_0x12a13a)return!0x1;if(!!_0x1e5091['get'](_0x282877[_0x413497(0xc1)])[_0x413497(0xf8)](_0x3ecd37))return!0x0;const _0x58d2f8=_0x1e5091[_0x413497(0x1a9)](_0x24d96c[_0x413497(0x1b4)]),{unitId:_0x2b705c,subUnitId:_0x51be11,pivotTableId:_0x5a40bc,valuePosition:_0x12e89e,index:_0x4292a5}=_0x12a13a,_0x3a30c7=_0x58d2f8[_0x413497(0x185)](_0x5a40bc);if(!_0x3a30c7)return!0x1;_0x3a30c7[_0x413497(0x1df)](_0x12e89e,_0x4292a5);const _0x38b052=_0x58d2f8[_0x413497(0x2d1)](_0x2b705c,_0x51be11,_0x5a40bc);return _0x4a00b0(_0x38b052,_0x12a13a),_0x58d2f8[_0x413497(0x224)]({'unitId':_0x2b705c,'subUnitId':_0x51be11,'token':_0x5a40bc,'type':_0xa5664b[_0x413497(0x127)]}),!0x0;}};function _0x14e595(_0x8af065,_0x1bdefd,_0x3b3a14){const _0x3ac9be=_0x2b16d4,{pivotTableId:_0x12b206,unitId:_0x6665b7,subUnitId:_0x54b16b}=_0x1bdefd,_0x838345=[],_0x4353e7=[];for(const _0x5a17ef of _0x3b3a14)switch(_0x5a17ef[_0x3ac9be(0x1e7)]){case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x197)]:{const {fieldJson:_0xce6ee3,area:_0x9c61f3,index:_0x2bb362}=_0x5a17ef,_0x2c2ecd={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldJson':_0xce6ee3,'area':_0x9c61f3,'index':_0x2bb362},_0x473f9d={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0xce6ee3['id'],'area':_0x9c61f3,'index':_0x2bb362};_0x838345[_0x3ac9be(0x338)]({'id':_0x5ab80d['id'],'params':_0x2c2ecd}),_0x4353e7['unshift']({'id':_0x422578['id'],'params':_0x473f9d});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x2dd)]:{const {fieldId:_0x4de92b,newSubtotalType:_0x3f4adf,oldSubtotalType:_0x6c4700}=_0x5a17ef,_0x2aaa06={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x4de92b,'subtotalType':_0x3f4adf};_0x838345[_0x3ac9be(0x338)]({'id':_0x2ec070['id'],'params':_0x2aaa06});const _0x2d7116={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x4de92b,'subtotalType':_0x6c4700};_0x4353e7['unshift']({'id':_0x2ec070['id'],'params':_0x2d7116});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x358)]:{const {fieldId:_0x1bd275,fieldJson:_0x27e784,area:_0x4950ca,index:_0x2e4364}=_0x5a17ef,_0x4098bd={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x1bd275,'index':_0x2e4364,'area':_0x4950ca};_0x838345[_0x3ac9be(0x338)]({'id':_0x422578['id'],'params':_0x4098bd});const _0x19eb07={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldJson':_0x27e784,'area':_0x4950ca,'index':_0x2e4364};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x5ab80d['id'],'params':_0x19eb07});}break;case _0x3e0737['PivotTableChangeTypeEnum'][_0x3ac9be(0x2dc)]:{const {fieldId:_0x57ff7c,oldName:_0x18853f,newName:_0x4f6ed3}=_0x5a17ef,_0x487ac9={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x57ff7c,'name':_0x4f6ed3};_0x838345[_0x3ac9be(0x338)]({'id':_0x406f56['id'],'params':_0x487ac9});const _0x28e969={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x57ff7c,'name':_0x18853f};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x406f56['id'],'params':_0x28e969});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x233)]:{const {fieldId:_0x555d1e,oldFilterInfo:_0x4c94bf,newFilterInfo:_0x4ead9f}=_0x5a17ef,_0x367b0c={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x555d1e,'filterInfo':_0x4ead9f};_0x838345['push']({'id':_0x59b12d['id'],'params':_0x367b0c});const _0xd8fd98={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x555d1e,'filterInfo':_0x4c94bf};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x59b12d['id'],'params':_0xd8fd98});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x195)]:{const {fieldId:_0x44456a,oldSortInfo:_0x34c05f,newSortInfo:_0xc4fb04}=_0x5a17ef,_0x376b52={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x44456a,'sortInfo':_0xc4fb04};_0x838345[_0x3ac9be(0x338)]({'id':_0x948cfc['id'],'params':_0x376b52});const _0x39f4b7={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x44456a,'sortInfo':_0x34c05f};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x948cfc['id'],'params':_0x39f4b7});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x371)]:{const {oldOptions:_0x3952c1,newOptions:_0x1979cb}=_0x5a17ef,_0x3f4bbd={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'options':_0x1979cb};_0x838345[_0x3ac9be(0x338)]({'id':_0x2dd0f8['id'],'params':_0x3f4bbd});const _0x2a0efe={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'options':_0x3952c1};_0x4353e7['unshift']({'id':_0x2dd0f8['id'],'params':_0x2a0efe});}break;case _0x3e0737[_0x3ac9be(0x2c4)]['UpdateFieldPosition']:{const {oldArea:_0x550e1b,newArea:_0x45d0e,oldIndex:_0x29127c,newIndex:_0x337454,fieldId:_0x275725}=_0x5a17ef,_0x1d7d8f={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x275725,'area':_0x45d0e,'index':_0x337454,'oldArea':_0x550e1b,'oldIndex':_0x29127c};_0x838345['push']({'id':_0x2a81cb['id'],'params':_0x1d7d8f});const _0x29e190={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x275725,'area':_0x550e1b,'index':_0x29127c,'oldArea':_0x45d0e,'oldIndex':_0x337454};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x2a81cb['id'],'params':_0x29e190});}break;case _0x3e0737[_0x3ac9be(0x2c4)]['UpdateValuePosition']:{const {oldValuePosition:_0x4e22e0,newValuePosition:_0x156b19,oldIndex:_0xed51ab,newIndex:_0xbef667}=_0x5a17ef,_0x3adb01={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'valuePosition':_0x156b19,'index':_0xbef667};_0x838345[_0x3ac9be(0x338)]({'id':_0x2647c7['id'],'params':_0x3adb01});const _0x35e788={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'valuePosition':_0x4e22e0,'index':_0xed51ab};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x2647c7['id'],'params':_0x35e788});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x132)]:{const {fieldId:_0x18e493,collapse:_0x2b015a,item:_0x4a8ddf}=_0x5a17ef,_0x4d6cd7={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x18e493,'collapse':_0x2b015a,'item':_0x4a8ddf};_0x838345[_0x3ac9be(0x338)]({'id':_0x42179c['id'],'params':_0x4d6cd7});const _0x478284={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x18e493,'collapse':!_0x2b015a,'item':_0x4a8ddf};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x42179c['id'],'params':_0x478284});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x2d5)]:{const {newFormat:_0x12497b,oldFormat:_0x1401f9,fieldId:_0xdab1f2}=_0x5a17ef,_0x1dfbf0={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0xdab1f2,'format':_0x12497b};_0x838345['push']({'id':_0x233cb2['id'],'params':_0x1dfbf0});const _0x58dd5f={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0xdab1f2,'format':_0x1401f9};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x233cb2['id'],'params':_0x58dd5f});}break;case _0x3e0737[_0x3ac9be(0x2c4)]['UpdateSource']:{const {tableFieldId:_0x33abb7,oldSourceName:_0x4ad89a,newSourceName:_0x412d59,oldDataFieldId:_0x34ff2a,newDataFieldId:_0x39c5bf}=_0x5a17ef,_0x1c2ad7={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'tableFieldId':_0x33abb7,'sourceName':_0x412d59,'dataFieldId':_0x39c5bf};_0x838345['push']({'id':_0x595fcf['id'],'params':_0x1c2ad7});const _0x16f58c={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'tableFieldId':_0x33abb7,'sourceName':_0x4ad89a,'dataFieldId':_0x34ff2a};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x595fcf['id'],'params':_0x16f58c});}break;case _0x3e0737[_0x3ac9be(0x2c4)]['SetValueFilter']:{const {fieldId:_0x1997c,filterInfo:_0x43d115,oldFilterInfo:_0x41bad7}=_0x5a17ef,_0x20da24={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x1997c,'filterInfo':_0x43d115};_0x838345[_0x3ac9be(0x338)]({'id':_0x2d2d96['id'],'params':_0x20da24});const _0x361e83={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x1997c,'filterInfo':_0x41bad7};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x2d2d96['id'],'params':_0x361e83});}}return{'redos':_0x838345,'undos':_0x4353e7};}function _0x41310d(_0x1ccf46,_0x31464e){const _0x276490=_0x2b16d4;var _0x3a19a8;const _0x57131b=_0x1ccf46[_0x276490(0x1a9)](_0x24d96c[_0x276490(0x199)]),{cellInfo:_0x354253,view:_0x12cf08,isEmpty:_0x58eadd}=_0x31464e;return(_0x3a19a8=_0x57131b[_0x276490(0x388)][_0x276490(0x1d5)](_0x3c85f0)(_0x5ac153,{'cellInfo':_0x354253,'view':_0x12cf08,'isEmpty':_0x58eadd}))!=null?_0x3a19a8:_0x5ac153;}const _0x3e5b81={'type':_0x282877['CommandType']['COMMAND'],'id':_0x2b16d4(0x293),async 'handler'(_0x2f5df5,_0xb16534){const _0x207ba1=_0x2b16d4;if(!_0xb16534)return!0x1;const _0x62ef64=_0x2f5df5[_0x207ba1(0x1a9)](_0x282877[_0x207ba1(0x240)]),_0x52ec3e=_0x2f5df5[_0x207ba1(0x1a9)](_0x24d96c[_0x207ba1(0xde)]),_0x223813=_0x2f5df5[_0x207ba1(0x1a9)](_0x282877[_0x207ba1(0xfb)]),{pivotTableId:_0x54db02,dataFieldId:_0x10afe7,fieldArea:_0x1b9ca7,index:_0x44c52c,unitId:_0xb951c1,subUnitId:_0x1cc5ec}=_0xb16534,_0x48d79a=(await _0x52ec3e['getPivotDisplayConfig']({'unitId':_0xb951c1,'subUnitId':_0x1cc5ec,'pivotTableId':_0x54db02,'params':{'type':_0x15dd40[_0x207ba1(0xa2)],'addPivotField':{'dataFieldId':_0x10afe7,'fieldArea':_0x1b9ca7,'index':_0x44c52c}}}))[_0x207ba1(0xf5)][_0x207ba1(0xda)];if(!_0x48d79a)return!0x1;const {view:_0x2e1ee8,changesets:_0x3cf309,isEmpty:_0x1c1a8f,pivotTableConfig:_0x4e4b2b,shouldBeAddedGroupJSON:_0xe74275}=_0x48d79a,_0xbe40aa=_0x4e4b2b[_0x207ba1(0x360)],_0x4b08aa=new _0x3e0737[(_0x207ba1(0xe5))]();_0x4b08aa[_0x207ba1(0x38d)](_0x2e1ee8);const _0x1bbe7e={'cellInfo':_0xbe40aa,'view':_0x4b08aa,'isEmpty':_0x1c1a8f};if(!await _0x2f5df5[_0x207ba1(0x1a9)](_0x24d96c[_0x207ba1(0x199)])[_0x207ba1(0x29c)]['fetchThroughAsyncInterceptors'](_0x387164)(!0x0,_0x1bbe7e))return!0x1;const _0x10144a=_0x43927d(_0x2f5df5,_0x4b08aa,_0xbe40aa,_0x1c1a8f),_0x30206f=_0x41310d(_0x2f5df5,_0x1bbe7e),{undos:_0x364a39,redos:_0x440270}=_0x14e595(_0x62ef64,{'pivotTableId':_0x54db02,'unitId':_0xb951c1,'subUnitId':_0x1cc5ec},_0x3cf309);return _0xe74275&&(_0x440270[_0x207ba1(0x36f)]({'id':_0x2025a4['id'],'params':{'pivotTableId':_0x54db02,'fieldJSON':_0xe74275,'unitId':_0xb951c1,'subUnitId':_0x1cc5ec}}),_0x364a39[_0x207ba1(0x338)]({'id':_0x38013c['id'],'params':{'pivotTableId':_0x54db02,'dataFieldId':_0xe74275['id'],'unitId':_0xb951c1,'subUnitId':_0x1cc5ec}})),_0x282877['sequenceExecute']([..._0x10144a[_0x207ba1(0x2a3)],..._0x30206f[_0x207ba1(0x2a3)],..._0x440270],_0x62ef64),_0x223813[_0x207ba1(0x249)]({'unitID':_0xb951c1,'redoMutations':[..._0x10144a[_0x207ba1(0x2a3)],..._0x30206f['redos'],..._0x440270],'undoMutations':[..._0x10144a[_0x207ba1(0x1cd)],..._0x30206f[_0x207ba1(0x1cd)],..._0x364a39]}),!0x0;}},_0x1ef885=()=>typeof process<'u'&&process[_0x2b16d4(0x181)]!=null&&process[_0x2b16d4(0x181)][_0x2b16d4(0x24a)]!=null,_0x1e563e={'type':_0x282877[_0x2b16d4(0x205)]['MUTATION'],'id':_0x2b16d4(0x140),'handler'(_0x2b9a22,_0x17611e){const _0x59f717=_0x2b16d4;var _0x106717;if(!_0x17611e)return!0x1;const _0x4ee693=_0x2b9a22['get'](_0x282877[_0x59f717(0xc1)]);if(!!_0x4ee693[_0x59f717(0xf8)](_0x3ecd37))return!0x0;const _0x1af387=_0x2b9a22[_0x59f717(0x1a9)](_0x282877['IUniverInstanceService']),_0x53cd5d=_0x2b9a22[_0x59f717(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),{pivotTableId:_0x4a643b,pivotTableConfig:_0x27bac2,collectionConfig:_0x3d542a,unitId:_0x3206da,subUnitId:_0x4e70c1}=_0x17611e,{sourceRangeInfo:_0x274267,fieldsConfig:_0x2b30ea,targetCellInfo:_0x59d415}=_0x27bac2,_0xa1d262=_0x1af387[_0x59f717(0x352)](_0x3206da);if(!_0xa1d262||!_0xa1d262[_0x59f717(0x374)](_0x4e70c1))return!0x1;if(!_0x1ef885()){let _0x2aa5f6=0x0;_0xa1d262[_0x59f717(0xbe)]()[_0x59f717(0xff)](_0x2ba598=>{const _0x23a13a=_0x59f717;var _0x2baea7,_0x46bfda;_0x2aa5f6+=(_0x46bfda=(_0x2baea7=_0x53cd5d[_0x23a13a(0x231)](_0x3206da,_0x2ba598[_0x23a13a(0x2a9)]()))==null?void 0x0:_0x2baea7[_0x23a13a(0x1a5)])!=null?_0x46bfda:0x0;});const _0x58b9b2=(_0x106717=_0x4ee693[_0x59f717(0xf8)](_0x5b0681[_0x59f717(0x1e4)]))!=null?_0x106717:{},{ls:_0x245006,pbk:_0x2fa26c}=_0x58b9b2;if(!_0x49a50c(_0x245006,_0x2fa26c))throw new _0x282877[(_0x59f717(0xad))](_0x59f717(0x19b));const _0x692462=_0x9a8ebd(_0x1e520c,_0x245006,_0x2fa26c)[_0x59f717(0x208)];if(_0x2aa5f6>=_0x692462)throw new _0x282877[(_0x59f717(0xad))](_0x59f717(0x19b));}if(!_0x3d542a||!_0x2b30ea)return!0x1;const {collection:_0x1288ce,updateDataFieldList:_0x469080}=_0x53cd5d[_0x59f717(0x1de)](_0x4a643b,_0x3d542a,_0x274267,_0x59d415);_0x53cd5d[_0x59f717(0x265)](_0x1288ce,_0x469080,_0x274267);const _0x29ab7e=new _0x3e0737[(_0x59f717(0x277))](_0x1288ce,void 0x0,_0x4a643b);_0x29ab7e[_0x59f717(0x39c)](_0x2b30ea);const _0x45f813=JSON[_0x59f717(0x1ed)](JSON[_0x59f717(0x11f)](_0x27bac2));return _0x53cd5d[_0x59f717(0x11d)](_0x3206da,_0x4e70c1,_0x4a643b,_0x29ab7e,_0x45f813),_0x53cd5d['addDirtyPivotTable']({'unitId':_0x3206da,'subUnitId':_0x4e70c1,'token':_0x4a643b,'type':_0xa5664b[_0x59f717(0x28e)],'pivotConfig':_0x45f813}),!0x0;}},_0x51c1da={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x16b),async 'handler'(_0x5371d5,_0xd4b248){const _0x26a7bf=_0x2b16d4;if(!_0xd4b248)return!0x1;const {sourceDataInfo:_0x51907a,pivotTableConfig:_0x5f0517}=_0xd4b248;if(!_0x51907a||!_0x5f0517)return!0x1;const {unitId:_0x3eace2,subUnitId:_0x425aa1,range:_0x4132f7}=_0x51907a,_0xcc8bd3=_0x5371d5[_0x26a7bf(0x1a9)](_0x282877[_0x26a7bf(0x165)]),_0x403a03=_0x5371d5[_0x26a7bf(0x1a9)](_0x24d96c[_0x26a7bf(0xde)]),_0x2ad8d9=_0x5371d5['get'](_0x282877['LocaleService']),_0x1a8eb6=_0x5371d5['get'](_0x282877[_0x26a7bf(0x240)]),_0x522ef9=_0xcc8bd3[_0x26a7bf(0x352)](_0x3eace2);if(!_0x522ef9)return!0x1;const _0x24dbbe=_0x522ef9['getSheetBySheetId'](_0x425aa1);if(!_0x24dbbe)return!0x1;const _0x30b261=_0x3e0737[_0x26a7bf(0x150)](0x8),_0x42f78b=_0x4132f7||{'startRow':0x0,'startColumn':0x0,'endRow':_0x24dbbe[_0x26a7bf(0x2d2)]()-0x1,'endColumn':_0x24dbbe[_0x26a7bf(0x246)]()-0x1};_0x42f78b['rangeType']=_0x282877['RANGE_TYPE'][_0x26a7bf(0x103)];const _0x39cd83=(await _0x403a03[_0x26a7bf(0x2f9)]({'unitId':_0x3eace2,'subUnitId':_0x425aa1,'pivotTableId':_0x30b261,'params':{'type':_0x15dd40['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x3eace2,'sheetName':_0x24dbbe[_0x26a7bf(0x241)](),'subUnitId':_0x425aa1,'range':_0x42f78b},'pivotTableId':_0x30b261,'pivotTableIndexConfig':_0x5f0517}}}))[_0x26a7bf(0xf5)]['addPivotTableWithConfig'];if(!_0x39cd83)return!0x1;const {isEmpty:_0x28bb07,fieldsConfig:_0x1aba49,collectionConfig:_0xe1d3d,changesets:_0xdc8909}=_0x39cd83,_0x245995=_0x522ef9[_0x26a7bf(0xbe)]()['length'],_0x18a8d5=_0x282877['mergeWorksheetSnapshotWithDefault']({'rowCount':_0x24dbbe[_0x26a7bf(0x2d2)]()-0x1,'columnCount':_0x24dbbe[_0x26a7bf(0x246)]()-0x1});_0x18a8d5['id']=_0x282877[_0x26a7bf(0x247)](),_0x18a8d5[_0x26a7bf(0x314)]=_0x522ef9[_0x26a7bf(0x1fc)](''+_0x2ad8d9['t']('sheets.tabs.sheet'));const _0x1b59cc={'index':_0x245995,'sheet':_0x18a8d5,'unitId':_0x3eace2},{redos:_0x1031f2}=_0x14e595(_0x1a8eb6,{'pivotTableId':_0x30b261,'unitId':_0x3eace2,'subUnitId':_0x18a8d5['id']},_0xdc8909),_0x11297a=[{'id':_0x5698b3['InsertSheetCommand']['id'],'params':_0x1b59cc},{'id':_0x1e563e['id'],'params':{'unitId':_0x3eace2,'subUnitId':_0x18a8d5['id'],'pivotTableId':_0x30b261,'pivotTableConfig':{'isEmpty':_0x28bb07,'fieldsConfig':_0x1aba49,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x3eace2,'subUnitId':_0x18a8d5['id']},'sourceRangeInfo':{'subUnitId':_0x425aa1,'unitId':_0x3eace2,'range':_0x42f78b,'sheetName':_0x24dbbe[_0x26a7bf(0x241)]()}},'collectionConfig':_0xe1d3d}},..._0x1031f2];return _0x282877[_0x26a7bf(0x1aa)](_0x11297a,_0x1a8eb6),!0x0;}},_0x3307ac={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x2da),'handler'(_0x56f58d,_0xb86653){const _0x267188=_0x2b16d4;if(!_0xb86653)return!0x1;if(!!_0x56f58d[_0x267188(0x1a9)](_0x282877[_0x267188(0xc1)])[_0x267188(0xf8)](_0x3ecd37))return!0x0;const {pivotTableId:_0x444c44,unitId:_0x3815b9,subUnitId:_0x767483}=_0xb86653,_0x1c20b7=_0x56f58d[_0x267188(0x1a9)](_0x24d96c[_0x267188(0x1b4)]);return _0x1c20b7[_0x267188(0x13c)](_0x3815b9,_0x767483,_0x444c44)?(_0x1c20b7[_0x267188(0x224)]({'unitId':_0x3815b9,'subUnitId':_0x767483,'token':_0x444c44,'type':_0xa5664b[_0x267188(0x3aa)]}),_0x1c20b7[_0x267188(0x258)](_0x3815b9,_0x767483,_0x444c44),!0x0):!0x1;}},_0x237a57={'type':_0x282877['CommandType'][_0x2b16d4(0xf2)],'id':'sheet.command.add-pivot-table',async 'handler'(_0x274213,_0x5a9bda){const _0x2dd7ad=_0x2b16d4;var _0xb6305,_0x34f769;const _0x1ea8fc=_0x274213[_0x2dd7ad(0x1a9)](_0x282877[_0x2dd7ad(0x240)]),_0x4b3e58=_0x274213[_0x2dd7ad(0x1a9)](_0x282877[_0x2dd7ad(0x165)]),_0x24fe16=_0x274213[_0x2dd7ad(0x1a9)](_0x282877[_0x2dd7ad(0x2cb)]),_0x571ba6=_0x274213['get'](_0x24d96c[_0x2dd7ad(0xde)]),_0x4ebd17=_0x274213[_0x2dd7ad(0x1a9)](_0x282877[_0x2dd7ad(0xfb)]),_0x189cf1=_0x274213[_0x2dd7ad(0x1a9)](_0x24d96c[_0x2dd7ad(0x15d)]),_0x25ea26=_0x274213[_0x2dd7ad(0x1a9)](_0x282877[_0x2dd7ad(0xc1)]);if(!_0x5a9bda)return!0x1;const {pivotTableConfig:_0x1ccf53,positionType:_0x36bbcb}=_0x5a9bda,{targetCellInfo:_0x2f7f1b,sourceRangeInfo:_0x314a98}=_0x1ccf53,{unitId:_0x71b7b5,subUnitId:_0x44713e}=_0x2f7f1b,_0x39c523=_0x4b3e58['getUnit'](_0x71b7b5);if(!_0x39c523)return!0x1;let _0x34cd0e=0x0;_0x39c523[_0x2dd7ad(0xbe)]()[_0x2dd7ad(0xff)](_0x4f275d=>{const _0x4713d2=_0x2dd7ad;var _0x439543,_0x57c8bb;_0x34cd0e+=(_0x57c8bb=(_0x439543=_0x189cf1[_0x4713d2(0x231)](_0x71b7b5,_0x4f275d['getSheetId']()))==null?void 0x0:_0x439543[_0x4713d2(0x1a5)])!=null?_0x57c8bb:0x0;});const _0x8b0d24=(_0xb6305=_0x25ea26[_0x2dd7ad(0xf8)](_0x5b0681[_0x2dd7ad(0x1e4)]))!=null?_0xb6305:{},{ls:_0x3a03af,pbk:_0x28fa1d}=_0x8b0d24;if(!_0x49a50c(_0x3a03af,_0x28fa1d))return!0x1;const _0x4267f5=_0x9a8ebd(_0x1e520c,_0x3a03af,_0x28fa1d)[_0x2dd7ad(0x208)];if(_0x34cd0e>=_0x4267f5)return!0x1;const _0x12f455=_0x5a9bda[_0x2dd7ad(0x359)]||_0x3e0737[_0x2dd7ad(0x150)](0x8),_0x5ea25d=(await _0x571ba6['getPivotDisplayConfig']({'unitId':_0x71b7b5,'subUnitId':_0x44713e,'pivotTableId':_0x12f455,'params':{'type':_0x15dd40[_0x2dd7ad(0x145)],'addPivotTable':{'sourceRangeInfo':_0x314a98,'pivotTableId':_0x12f455}}}))['result']['addPivotTable'];if(!_0x5ea25d)return!0x1;const {view:_0x4a3c61,isEmpty:_0x130451,fieldsConfig:_0x363585,collectionConfig:_0x367d91}=_0x5ea25d,_0x18063e=[],_0x1faa66=[];if(_0x36bbcb===_0x220706[_0x2dd7ad(0x37c)]){const _0x4a2036=_0x39c523[_0x2dd7ad(0xbe)]()['length'],_0x14611c=_0x282877[_0x2dd7ad(0xa6)]({});_0x14611c['id']=_0x1ccf53[_0x2dd7ad(0x360)][_0x2dd7ad(0x204)],_0x14611c[_0x2dd7ad(0x314)]=(_0x34f769=_0x1ccf53[_0x2dd7ad(0x360)][_0x2dd7ad(0x34f)])!=null?_0x34f769:_0x39c523[_0x2dd7ad(0x1fc)](''+_0x24fe16['t']('sheets.tabs.sheet'));const _0x51d862={'index':_0x4a2036,'sheet':_0x14611c,'unitId':_0x71b7b5},_0x18c893=_0x5698b3['InsertSheetUndoMutationFactory'](_0x274213,_0x51d862);_0x18063e['push']({'id':_0x5698b3[_0x2dd7ad(0x1fb)]['id'],'params':_0x18c893}),_0x1faa66[_0x2dd7ad(0x338)]({'id':_0x5698b3[_0x2dd7ad(0x1d4)]['id'],'params':_0x51d862});}else{if(!_0x39c523['getSheetBySheetId'](_0x44713e))return!0x1;const _0x51d678=_0x43927d(_0x274213,new _0x3e0737[(_0x2dd7ad(0xe5))](),_0x2f7f1b,!0x0);_0x1faa66[_0x2dd7ad(0x338)](..._0x51d678[_0x2dd7ad(0x2a3)]),_0x18063e[_0x2dd7ad(0x338)](..._0x51d678[_0x2dd7ad(0x1cd)]);const _0x3e1498={'cellInfo':_0x2f7f1b,'view':_0x4a3c61,'isEmpty':_0x130451};if(!await _0x274213[_0x2dd7ad(0x1a9)](_0x24d96c[_0x2dd7ad(0x199)])[_0x2dd7ad(0x29c)][_0x2dd7ad(0x3a7)](_0x387164)(!0x0,_0x3e1498))return!0x1;const _0x50ac53=_0x41310d(_0x274213,_0x3e1498);_0x1faa66[_0x2dd7ad(0x338)](..._0x50ac53[_0x2dd7ad(0x2a3)]),_0x18063e['push'](..._0x50ac53['undos']);}return _0x1faa66[_0x2dd7ad(0x338)]({'id':_0x1e563e['id'],'params':{'unitId':_0x2f7f1b[_0x2dd7ad(0x1bc)],'subUnitId':_0x2f7f1b[_0x2dd7ad(0x204)],'pivotTableId':_0x12f455,'pivotTableConfig':{'targetCellInfo':_0x2f7f1b,'sourceRangeInfo':_0x314a98,'fieldsConfig':_0x363585},'collectionConfig':_0x367d91}}),_0x18063e[_0x2dd7ad(0x36f)]({'id':_0x3307ac['id'],'params':{'unitId':_0x71b7b5,'subUnitId':_0x44713e,'pivotTableId':_0x12f455}}),_0x282877[_0x2dd7ad(0x1aa)](_0x1faa66,_0x1ea8fc)&&_0x4ebd17[_0x2dd7ad(0x249)]({'unitID':_0x71b7b5,'undoMutations':_0x18063e,'redoMutations':_0x1faa66}),!0x0;}},_0x515143={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x32d),async 'handler'(_0x387fda,_0x4f84c9){const _0x3a6786=_0x2b16d4;if(!_0x4f84c9)return!0x1;const _0x5a3b2e=_0x387fda[_0x3a6786(0x1a9)](_0x282877[_0x3a6786(0x240)]),_0x22451e=_0x387fda[_0x3a6786(0x1a9)](_0x24d96c['SheetsPivotRPCService']),_0x305948=_0x387fda[_0x3a6786(0x1a9)](_0x282877[_0x3a6786(0xfb)]),{pivotTableId:_0x50662e,fieldId:_0x9aaeda,area:_0x967753,index:_0x14b4b7,unitId:_0x1169e6,subUnitId:_0x470628}=_0x4f84c9,_0x26f431=(await _0x22451e[_0x3a6786(0x2f9)]({'unitId':_0x1169e6,'subUnitId':_0x470628,'pivotTableId':_0x50662e,'params':{'type':_0x15dd40[_0x3a6786(0x1bd)],'movePivotField':{'fieldId':_0x9aaeda,'area':_0x967753,'index':_0x14b4b7}}}))[_0x3a6786(0xf5)][_0x3a6786(0x9c)];if(!_0x26f431)return!0x1;const {changesets:_0xd02383,view:_0x2e2afc,isEmpty:_0x8463be,pivotTableConfig:_0x37b2a2}=_0x26f431,_0x38709c=_0x37b2a2['targetCellInfo'],_0x10bd5a=new _0x3e0737['PivotView']();_0x10bd5a['formJSON'](_0x2e2afc);const _0x14ddb9={'cellInfo':_0x38709c,'view':_0x10bd5a,'isEmpty':_0x8463be};if(!await _0x387fda['get'](_0x24d96c['SheetsPivotTableService'])[_0x3a6786(0x29c)][_0x3a6786(0x3a7)](_0x387164)(!0x0,_0x14ddb9))return!0x1;const _0x1e41b0=_0x43927d(_0x387fda,_0x10bd5a,_0x38709c,_0x8463be),_0x57de09=_0x41310d(_0x387fda,_0x14ddb9),{redos:_0x34cc3a,undos:_0x25a94e}=_0x14e595(_0x5a3b2e,{'pivotTableId':_0x50662e,'unitId':_0x1169e6,'subUnitId':_0x470628},_0xd02383);return _0x282877['sequenceExecute']([..._0x1e41b0[_0x3a6786(0x2a3)],..._0x57de09['redos'],..._0x34cc3a],_0x5a3b2e),_0x305948[_0x3a6786(0x249)]({'unitID':_0x1169e6,'redoMutations':[..._0x1e41b0[_0x3a6786(0x2a3)],..._0x57de09[_0x3a6786(0x2a3)],..._0x34cc3a],'undoMutations':[..._0x1e41b0[_0x3a6786(0x1cd)],..._0x57de09[_0x3a6786(0x1cd)],..._0x25a94e]}),!0x0;}},_0x353964={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.set-pivot-position','handler'(_0x20472d,_0x5c9017){const _0x942e93=_0x2b16d4;if(!_0x5c9017)return!0x1;if(!!_0x20472d[_0x942e93(0x1a9)](_0x282877[_0x942e93(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const {pivotTableId:_0x54b36c,targetCellPosition:_0xd6972a,unitId:_0x3666e3,subUnitId:_0x4fc1d8}=_0x5c9017,_0x501b9d=_0x20472d[_0x942e93(0x1a9)](_0x24d96c[_0x942e93(0x1b4)]);if(!_0x501b9d[_0x942e93(0x185)](_0x5c9017[_0x942e93(0x359)]))return!0x1;const _0x3984a2=_0x501b9d[_0x942e93(0x31f)](_0x54b36c);if(!_0x3984a2)return!0x1;const _0x4b169b=_0x501b9d['getCollection'](_0x3984a2['unitId'],_0x5c9017[_0x942e93(0x359)]);if(!_0x4b169b)return!0x1;const _0x21a4c9=_0x501b9d['getPivotTableConfig'](_0x3984a2['unitId'],_0x3984a2[_0x942e93(0x204)],_0x54b36c);if(!_0x21a4c9)return!0x1;const _0x249a60=_0x282877[_0x942e93(0x325)][_0x942e93(0x1bf)](_0x21a4c9);_0x249a60[_0x942e93(0x360)]={'unitId':_0x3666e3,'subUnitId':_0x4fc1d8,'row':_0xd6972a[_0x942e93(0x303)],'col':_0xd6972a['col']};const _0x2b1ca7=_0x4b169b['toJSON']();if(_0x3984a2['subUnitId']===_0x4fc1d8&&_0x3984a2[_0x942e93(0x1bc)]===_0x3666e3)_0x501b9d['setPivotTable'](_0x3666e3,_0x4fc1d8,_0x54b36c,_0x249a60),_0x501b9d[_0x942e93(0x224)]({'unitId':_0x3666e3,'subUnitId':_0x4fc1d8,'token':_0x54b36c,'type':_0xa5664b[_0x942e93(0x127)]});else{_0x501b9d[_0x942e93(0x224)]({'unitId':_0x3984a2[_0x942e93(0x1bc)],'subUnitId':_0x3984a2[_0x942e93(0x204)],'token':_0x54b36c,'type':_0xa5664b[_0x942e93(0x3aa)]}),_0x501b9d['removePivotTable'](_0x3984a2['unitId'],_0x3984a2[_0x942e93(0x204)],_0x54b36c);const _0x51c1d9=_0x501b9d['addCollectionByJSON'](_0x54b36c,_0x2b1ca7,_0x21a4c9['sourceRangeInfo'],_0x249a60[_0x942e93(0x360)]),_0x3cef10=new _0x3e0737[(_0x942e93(0x277))](_0x51c1d9['collection'],void 0x0,_0x54b36c);_0x3cef10['fromJSON'](_0x249a60[_0x942e93(0x348)]),_0x501b9d[_0x942e93(0x11d)](_0x3666e3,_0x4fc1d8,_0x54b36c,_0x3cef10,_0x249a60),_0x501b9d[_0x942e93(0x224)]({'unitId':_0x3666e3,'subUnitId':_0x4fc1d8,'token':_0x54b36c,'type':_0xa5664b['Add'],'pivotConfig':_0x249a60});}return!0x0;}},_0xcca7af={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0xb7),'handler':(_0x892fb3,_0x1f7140)=>{const _0x194c68=_0x2b16d4,_0x3abdfb=_0x892fb3[_0x194c68(0x1a9)](_0x282877[_0x194c68(0x240)]),_0x4f85b3=_0x892fb3['get'](_0x282877['IUndoRedoService']),_0x1c5e9d=_0x892fb3[_0x194c68(0x1a9)](_0x24d96c[_0x194c68(0x15d)]),_0x34710c=_0x892fb3[_0x194c68(0x1a9)](_0x282877[_0x194c68(0x165)]);if(!_0x1f7140)return!0x1;const _0x407e1e=_0x5698b3[_0x194c68(0x2e1)](_0x34710c);if(!_0x407e1e)return!0x1;const {unitId:_0x309c38,subUnitId:_0x26cd8a,workbook:_0x5429ca}=_0x407e1e,_0x825f75=_0x1c5e9d[_0x194c68(0x13c)](_0x1f7140['originTargetInfo'][_0x194c68(0x1bc)],_0x1f7140['originTargetInfo'][_0x194c68(0x204)],_0x1f7140[_0x194c68(0x359)]);if(!_0x825f75)return!0x1;const _0x4a316e=_0x5429ca['getSheetBySheetId'](_0x1f7140[_0x194c68(0x360)][_0x194c68(0x204)]);if(!_0x4a316e)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');const _0x7bd4e0=_0x4a316e[_0x194c68(0x2d2)](),_0x3a21c1=_0x4a316e[_0x194c68(0x246)]();if(_0x1f7140[_0x194c68(0x360)]['row']>_0x7bd4e0||_0x1f7140[_0x194c68(0x360)]['col']>_0x3a21c1)throw new Error(_0x194c68(0x330));const _0x37e0d9=[{'id':_0x353964['id'],'params':{'unitId':_0x309c38,'subUnitId':_0x1f7140[_0x194c68(0x360)][_0x194c68(0x204)],'pivotTableId':_0x1f7140[_0x194c68(0x359)],'targetCellPosition':{'row':_0x1f7140[_0x194c68(0x360)][_0x194c68(0x303)],'col':_0x1f7140[_0x194c68(0x360)]['col']}}}],_0x3d0747=[{'id':_0x353964['id'],'params':{'unitId':_0x309c38,'subUnitId':_0x26cd8a,'pivotTableId':_0x1f7140[_0x194c68(0x359)],'targetCellPosition':{'row':_0x825f75[_0x194c68(0x360)][_0x194c68(0x303)],'col':_0x825f75['targetCellInfo']['col']}}}];return _0x282877[_0x194c68(0x1aa)](_0x37e0d9,_0x3abdfb)&&_0x4f85b3[_0x194c68(0x249)]({'unitID':_0x309c38,'undoMutations':_0x3d0747,'redoMutations':_0x37e0d9}),!0x0;}},_0xf74539={'type':_0x282877[_0x2b16d4(0x205)]['COMMAND'],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x1a21f7,_0xb37f91){const _0x3dabec=_0x2b16d4;var _0x206e04;if(!_0xb37f91)return!0x1;const _0x534be6=_0x1a21f7[_0x3dabec(0x1a9)](_0x282877[_0x3dabec(0x165)]),_0x436240=_0x5698b3[_0x3dabec(0x2e1)](_0x534be6);if(!_0x436240)return!0x1;const {unitId:_0x35c00d,subUnitId:_0x23daba,workbook:_0x47cc45}=_0x436240,{row:_0xe5f1d4,col:_0x298a21}=_0xb37f91,_0x5c32ad=_0x1a21f7[_0x3dabec(0x1a9)](_0x24d96c[_0x3dabec(0x389)]),_0x48920e=_0x5c32ad[_0x3dabec(0x1c2)](_0x35c00d,_0x23daba,_0xe5f1d4,_0x298a21);if(!_0x48920e)return!0x1;const _0x3bbb23=(_0x206e04=_0x5c32ad[_0x3dabec(0x34c)](_0x35c00d,_0x23daba,_0x48920e))==null?void 0x0:_0x206e04[_0x3dabec(0x2ce)];if(!_0x3bbb23)return!0x1;const _0x2c6d4b=_0x1a21f7['get'](_0x24d96c[_0x3dabec(0x15d)])['getPivotTableConfig'](_0x35c00d,_0x23daba,_0x48920e);if(!_0x2c6d4b)return!0x1;const {rowInfo:_0x240403,colInfo:_0x553e0e}=_0x3bbb23,_0x51b9aa=_0x240403[_0xe5f1d4]['paths'],_0x3d90c2=_0x553e0e[_0x298a21][_0x3dabec(0x180)],_0x439dd9=_0x240403[_0xe5f1d4][_0x3dabec(0x1ef)],_0x575886=_0x553e0e[_0x298a21][_0x3dabec(0x1ef)],_0x4e6cec=_0x51b9aa['concat'](_0x3d90c2),_0x3046ea=_0x2c6d4b[_0x3dabec(0x348)][_0x3dabec(0x170)][_0x3dabec(0x286)](0x0,_0x439dd9),_0x70ae8c=_0x2c6d4b[_0x3dabec(0x348)][_0x3dabec(0x13e)][_0x3dabec(0x286)](0x0,_0x575886),_0x3163da=_0x3046ea[_0x3dabec(0x350)](_0x70ae8c),_0x340391=_0x4e6cec[_0x3dabec(0x279)]((_0x85250f,_0x44026d)=>[_0x85250f,_0x3163da[_0x44026d]]),_0x14d2bd=(await _0x1a21f7['get'](_0x24d96c[_0x3dabec(0xde)])[_0x3dabec(0x2f9)]({'unitId':_0x35c00d,'subUnitId':_0x23daba,'pivotTableId':_0x48920e,'params':{'type':_0x15dd40['DrillDown'],'drillDown':{'tuple':_0x340391}}}))[_0x3dabec(0xf5)][_0x3dabec(0x109)];if(!_0x14d2bd)return!0x1;const {indexes:_0x34903d,range:_0x3d4eb1,sourceUnitId:_0x32df48,sourceSubUnitId:_0xd2a9da,formatMap:_0x3e5157}=_0x14d2bd,{startRow:_0xaf3d7c,endRow:_0x29a93a,startColumn:_0x4b5c2c,endColumn:_0x2c688e}=_0x3d4eb1,_0x13e614=new _0x282877[(_0x3dabec(0x184))](),_0x5b8b6f=_0x29a93a-_0xaf3d7c,_0x559b2a=_0x2c688e-_0x4b5c2c,_0x3fe3b1={},_0x17f023=_0x5698b3[_0x3dabec(0x2e1)](_0x534be6,{'unitId':_0x32df48,'subUnitId':_0xd2a9da});if(!_0x17f023)return!0x1;const _0x295a09=_0x433375[_0x3dabec(0xe8)],_0x589cd0=_0x433375[_0x3dabec(0x1be)],_0x42d140=_0x433375['subTotalStyle'],_0xf63c9e=_0x47cc45[_0x3dabec(0x30b)]()[_0x3dabec(0x39a)](_0x295a09),_0xecae7e=_0x47cc45[_0x3dabec(0x30b)]()[_0x3dabec(0x39a)](_0x589cd0),_0x2a4407=_0x47cc45[_0x3dabec(0x30b)]()[_0x3dabec(0x39a)](_0x42d140),{worksheet:_0x9ecbcf}=_0x17f023;let _0x1950d5=0x0;const _0x4ac187=0x1;_0x34903d[_0x3dabec(0xff)](_0x528b67=>{const _0x30bafd=_0x3dabec;for(let _0x2e5d9c=0x0;_0x2e5d9c<=_0x2c688e-_0x4b5c2c;_0x2e5d9c++)_0x13e614[_0x30bafd(0x39a)](_0x1950d5,_0x2e5d9c,_0x9ecbcf[_0x30bafd(0x24c)](_0x528b67+_0x3d4eb1['startRow']+_0x4ac187,_0x2e5d9c));_0x1950d5++;});for(let _0x37b1f5=_0x4b5c2c;_0x37b1f5<=_0x2c688e;_0x37b1f5++){const _0x100b4c=_0x9ecbcf[_0x3dabec(0x24c)](_0xaf3d7c,_0x37b1f5);_0x3fe3b1[_0xaf3d7c]||(_0x3fe3b1[_0xaf3d7c]={}),_0x3fe3b1[_0xaf3d7c][_0x37b1f5]={..._0x100b4c,'s':_0xf63c9e};}let _0x474ed7=0x1;const _0x3143c3={},_0x3ec9cb={};_0x13e614[_0x3dabec(0x25d)]((_0x43d4ed,_0x538ad5)=>{const _0x5d291d=_0x3dabec;_0x538ad5[_0x5d291d(0xff)](_0x4fe04d=>{const _0x24b06b=_0x5d291d,_0x35500b=_0x13e614[_0x24b06b(0x1e3)](_0x43d4ed,_0x4fe04d);if(_0x3fe3b1[_0x474ed7]||(_0x3fe3b1[_0x474ed7]={}),_0x3fe3b1[_0x474ed7][_0x4fe04d]={..._0x35500b,'s':_0x474ed7%0x2===0x0?_0x2a4407:_0xecae7e},_0x3e5157[_0x4fe04d]&&_0x43d4ed>=0x0){const _0x2b2e1c=_0x474ed7%0x2===0x0;let _0x15e3f6=_0x2b2e1c?_0x3ec9cb[_0x4fe04d]:_0x3143c3[_0x4fe04d];_0x15e3f6||(_0x15e3f6=_0x47cc45[_0x24b06b(0x30b)]()['setValue']({..._0x2b2e1c?_0x42d140:_0x589cd0,'n':{'pattern':_0x3e5157[_0x4fe04d]}}),_0x2b2e1c?_0x3ec9cb[_0x4fe04d]=_0x15e3f6:_0x3143c3[_0x4fe04d]=_0x15e3f6),_0x3fe3b1[_0x474ed7][_0x4fe04d]['s']=_0x15e3f6;}}),_0x474ed7++;});const _0x5eef57=new _0x282877[(_0x3dabec(0x184))](_0x3fe3b1),_0x54ef0f={};_0x5eef57[_0x3dabec(0x308)]((_0x253194,_0x4c093e,_0x81bbe3)=>{_0x54ef0f[_0x253194]||(_0x54ef0f[_0x253194]={}),_0x54ef0f[_0x253194][_0x4c093e]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x5cef21=[],_0x522e55=[],_0x4a4ff4=_0x47cc45[_0x3dabec(0xbe)]()[_0x3dabec(0x27b)],_0x5e9ae2=_0x282877[_0x3dabec(0xa6)]({'rowCount':Math[_0x3dabec(0x24d)](_0x282877[_0x3dabec(0x370)],_0x5b8b6f+0xa),'columnCount':Math[_0x3dabec(0x24d)](_0x282877['DEFAULT_WORKSHEET_COLUMN_COUNT'],_0x559b2a+0x5)}),_0x3c41ce=_0x1a21f7[_0x3dabec(0x1a9)](_0x282877['LocaleService']);_0x5e9ae2['id']=_0x282877[_0x3dabec(0x247)](),_0x5e9ae2[_0x3dabec(0x314)]=_0x47cc45[_0x3dabec(0x1fc)](''+_0x3c41ce['t'](_0x3dabec(0x191)));const _0x334134={'index':_0x4a4ff4,'sheet':_0x5e9ae2,'unitId':_0x35c00d},_0x11b93b=_0x5698b3[_0x3dabec(0x125)](_0x1a21f7,_0x334134);_0x522e55[_0x3dabec(0x338)]({'id':_0x5698b3['InsertSheetMutation']['id'],'params':_0x334134}),_0x5cef21[_0x3dabec(0x338)]({'id':_0x5698b3[_0x3dabec(0x1fb)]['id'],'params':_0x11b93b}),_0x522e55[_0x3dabec(0x338)]({'id':_0x5698b3[_0x3dabec(0x157)]['id'],'params':{'unitId':_0x35c00d,'subUnitId':_0x5e9ae2['id'],'cellValue':_0x3fe3b1}}),_0x5cef21['unshift']({'id':_0x5698b3[_0x3dabec(0x157)]['id'],'params':{'unitId':_0x35c00d,'subUnitId':_0x5e9ae2['id'],'cellValue':_0x54ef0f}});const _0x3084ad={'startRow':0x0,'startColumn':0x0,'endRow':_0x474ed7-0x1,'endColumn':_0x2c688e};_0x522e55['push']({'id':_0x18c1ef[_0x3dabec(0x14e)]['id'],'params':{'unitId':_0x35c00d,'subUnitId':_0x5e9ae2['id'],'range':_0x3084ad}}),_0x5cef21[_0x3dabec(0x36f)]({'id':_0x18c1ef[_0x3dabec(0x320)]['id'],'params':{'unitId':_0x35c00d,'subUnitId':_0x5e9ae2['id']}});const _0x5723d6=_0x1a21f7['get'](_0x282877[_0x3dabec(0x240)]);return _0x282877[_0x3dabec(0x1aa)](_0x522e55,_0x5723d6)&&_0x1a21f7[_0x3dabec(0x1a9)](_0x282877[_0x3dabec(0xfb)])[_0x3dabec(0x249)]({'unitID':_0x35c00d,'undoMutations':_0x5cef21,'redoMutations':_0x522e55}),!0x0;}},_0x1a6979={'type':_0x282877['CommandType'][_0x2b16d4(0xf2)],'id':'sheet.command.remove-pivot-field',async 'handler'(_0x2b68a4,_0x547169){const _0x2cfc24=_0x2b16d4;if(!_0x547169)return!0x1;const _0x54a147=_0x2b68a4['get'](_0x282877[_0x2cfc24(0x240)]),_0xe4dad5=_0x2b68a4[_0x2cfc24(0x1a9)](_0x24d96c[_0x2cfc24(0xde)]),_0x4346e0=_0x2b68a4[_0x2cfc24(0x1a9)](_0x282877['IUndoRedoService']),{pivotTableId:_0x57315a,fieldIds:_0xb4b714,unitId:_0x25ffb6,subUnitId:_0x20d836}=_0x547169,_0x2d2fcc=(await _0xe4dad5[_0x2cfc24(0x2f9)]({'unitId':_0x25ffb6,'subUnitId':_0x20d836,'pivotTableId':_0x57315a,'params':{'type':_0x15dd40['RemovePivotField'],'removePivotField':{'fieldIds':_0xb4b714}}}))[_0x2cfc24(0xf5)][_0x2cfc24(0x33b)];if(!_0x2d2fcc)return!0x1;const {view:_0x28c055,changesets:_0x49c33d,isEmpty:_0x52c855,pivotTableConfig:_0x2ea2f1}=_0x2d2fcc,_0x5403f0=_0x2ea2f1['targetCellInfo'],_0x36a75e=new _0x3e0737[(_0x2cfc24(0xe5))]();_0x36a75e[_0x2cfc24(0x38d)](_0x28c055);const _0x103be9={'cellInfo':_0x5403f0,'view':_0x36a75e,'isEmpty':_0x52c855};if(!await _0x2b68a4[_0x2cfc24(0x1a9)](_0x24d96c['SheetsPivotTableService'])['asyncInterceptor'][_0x2cfc24(0x3a7)](_0x387164)(!0x0,_0x103be9))return!0x1;const _0x11be0b=_0x43927d(_0x2b68a4,_0x36a75e,_0x5403f0,_0x52c855),_0x1d0aa6=_0x41310d(_0x2b68a4,_0x103be9),{redos:_0x2084ec,undos:_0x1b2953}=_0x14e595(_0x54a147,{'pivotTableId':_0x57315a,'unitId':_0x25ffb6,'subUnitId':_0x20d836},_0x49c33d);return _0x282877[_0x2cfc24(0x1aa)]([..._0x11be0b[_0x2cfc24(0x2a3)],..._0x1d0aa6[_0x2cfc24(0x2a3)],..._0x2084ec],_0x54a147),_0x4346e0[_0x2cfc24(0x249)]({'unitID':_0x25ffb6,'redoMutations':[..._0x11be0b['redos'],..._0x1d0aa6[_0x2cfc24(0x2a3)],..._0x2084ec],'undoMutations':[..._0x11be0b['undos'],..._0x1d0aa6[_0x2cfc24(0x1cd)],..._0x1b2953]}),!0x0;}},_0x27055a={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x203),async 'handler'(_0x3e784a,_0x5cc44d){const _0x4aadd0=_0x2b16d4;if(!_0x5cc44d)return!0x1;const _0x51fa61=_0x3e784a[_0x4aadd0(0x1a9)](_0x282877['ICommandService']),_0x3c8773=_0x3e784a['get'](_0x282877['IUndoRedoService']),_0x10aa62=_0x3e784a[_0x4aadd0(0x1a9)](_0x24d96c[_0x4aadd0(0xde)]),{resetArea:_0xed7205,pivotTableId:_0x40d4ee,unitId:_0x356691,subUnitId:_0x45d50b}=_0x5cc44d,_0x1e6444=(await _0x10aa62[_0x4aadd0(0x2f9)]({'unitId':_0x356691,'subUnitId':_0x45d50b,'pivotTableId':_0x40d4ee,'params':{'type':_0x15dd40[_0x4aadd0(0x38a)],'resetPivotTable':{'pivotTableId':_0x40d4ee,'resetArea':_0xed7205}}}))[_0x4aadd0(0xf5)]['resetPivotTable'];if(!_0x1e6444)return!0x1;const {changesets:_0x4da11b}=_0x1e6444,{redos:_0x5a8e48,undos:_0x42f10e}=_0x14e595(_0x51fa61,{'pivotTableId':_0x40d4ee,'unitId':_0x356691,'subUnitId':_0x45d50b},_0x4da11b);return _0x282877[_0x4aadd0(0x1aa)](_0x5a8e48,_0x51fa61),_0x3c8773[_0x4aadd0(0x249)]({'unitID':_0x356691,'redoMutations':_0x5a8e48,'undoMutations':_0x42f10e}),!0x0;}},_0x25fba6={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x26c),async 'handler'(_0x1ac32a,_0x126ff5){const _0x5605a1=_0x2b16d4,_0xf6b5a8=_0x1ac32a[_0x5605a1(0x1a9)](_0x282877['ICommandService']),_0x355542=_0x1ac32a['get'](_0x24d96c[_0x5605a1(0xde)]),_0x2f0aca=_0x1ac32a['get'](_0x24d96c[_0x5605a1(0x389)]),_0x4487c0=_0x1ac32a['get'](_0x282877[_0x5605a1(0x165)]),_0x4a888d=_0x1ac32a[_0x5605a1(0x1a9)](_0x282877[_0x5605a1(0x2cb)]),_0x31e271=_0x1ac32a['get'](_0x282877[_0x5605a1(0xfb)]);if(!_0x126ff5)return!0x1;const {unitId:_0x1b5309,subUnitId:_0x562913,row:_0x26e542,col:_0xe7d6ed,collapse:_0x5841d9}=_0x126ff5,_0x3f26a9=_0x4487c0[_0x5605a1(0x352)](_0x1b5309);if(!_0x3f26a9||!_0x3f26a9[_0x5605a1(0x374)](_0x562913))return!0x1;const _0x5a65fc=_0x2f0aca[_0x5605a1(0x1c2)](_0x1b5309,_0x562913,_0x26e542,_0xe7d6ed);if(!_0x5a65fc)return!0x1;const _0x421d4b=_0x2f0aca[_0x5605a1(0x34c)](_0x1b5309,_0x562913,_0x5a65fc);if(!_0x421d4b)return!0x1;const _0x32a3e4=_0x282877[_0x5605a1(0x29f)](_0x26e542,_0xe7d6ed),{rangesInfo:_0x9a4985,areaInfo:_0x59c12e,headerMap:_0x187426}=_0x421d4b;if(!_0x9a4985||!_0x59c12e||!_0x187426)return!0x1;const _0x2bf651=Object[_0x5605a1(0x12a)](_0x9a4985)[_0x5605a1(0x1a6)](_0x3a9210=>_0x9a4985[_0x3a9210][_0x5605a1(0x151)](_0x3fa1e5=>_0x282877[_0x5605a1(0x2e7)]['contains'](_0x3fa1e5,_0x32a3e4)));let _0x31a78f;_0x2bf651===_0x5605a1(0x196)?_0x31a78f=_0x187426['rowHeaderMap'][_0xe7d6ed]:_0x2bf651===_0x5605a1(0x1b0)&&(_0x31a78f=_0x187426[_0x5605a1(0x174)][_0x26e542]);const _0x205f43=_0x31a78f==null?void 0x0:_0x31a78f[_0x5605a1(0x19a)],_0x42c323=_0x2f0aca[_0x5605a1(0x169)](_0x1b5309,_0x562913,_0x26e542,_0xe7d6ed);let _0xbbf6b0=_0x42c323==null?void 0x0:_0x42c323['v'];if(_0xbbf6b0===_0x4a888d['t']('sheets-pivot.blank')&&(_0xbbf6b0=_0x3e0737[_0x5605a1(0x1d3)][_0x5605a1(0xdb)]),_0xbbf6b0==null||!_0x5a65fc||!_0x205f43)return!0x1;const _0x4764db=await _0x355542[_0x5605a1(0x2f9)]({'unitId':_0x1b5309,'subUnitId':_0x562913,'pivotTableId':_0x5a65fc,'params':{'type':_0x15dd40[_0x5605a1(0x107)],'setPivotCollapse':{'tableFieldId':_0x205f43,'collapse':_0x5841d9,'item':_0xbbf6b0}}}),_0x4a7b65=_0x4764db==null?void 0x0:_0x4764db['result'][_0x5605a1(0xae)];if(!_0x4a7b65)return!0x1;const {view:_0x44c432,pivotTableConfig:_0x469dfc,isEmpty:_0x429468,changesets:_0x32b408}=_0x4a7b65,_0x92b689=new _0x3e0737[(_0x5605a1(0xe5))]();_0x92b689[_0x5605a1(0x38d)](_0x44c432);const _0x1c0135=_0x469dfc[_0x5605a1(0x360)],_0x594530={'cellInfo':_0x1c0135,'view':_0x92b689,'isEmpty':_0x429468};if(!await _0x1ac32a[_0x5605a1(0x1a9)](_0x24d96c['SheetsPivotTableService'])['asyncInterceptor'][_0x5605a1(0x3a7)](_0x387164)(!0x0,_0x594530))return!0x1;const _0x122821=_0x43927d(_0x1ac32a,_0x92b689,_0x1c0135,_0x429468),_0x28adc6=_0x41310d(_0x1ac32a,_0x594530),{redos:_0x43e9ee,undos:_0x172a47}=_0x14e595(_0xf6b5a8,{'pivotTableId':_0x5a65fc,'unitId':_0x1b5309,'subUnitId':_0x562913},_0x32b408);return _0x282877[_0x5605a1(0x1aa)]([..._0x122821[_0x5605a1(0x2a3)],..._0x28adc6[_0x5605a1(0x2a3)],..._0x43e9ee],_0xf6b5a8),_0x31e271[_0x5605a1(0x249)]({'unitID':_0x1b5309,'redoMutations':[..._0x122821['redos'],..._0x28adc6[_0x5605a1(0x2a3)],..._0x43e9ee],'undoMutations':[..._0x122821['undos'],..._0x28adc6[_0x5605a1(0x1cd)],..._0x172a47]}),!0x0;}},_0x3b1c8c={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x24f),async 'handler'(_0x5dbdc2,_0x2ce7ae){const _0x45b9d9=_0x2b16d4;if(!_0x2ce7ae)return!0x1;const _0x4b3eaf=_0x5dbdc2[_0x45b9d9(0x1a9)](_0x282877[_0x45b9d9(0x240)]),_0x2cb442=_0x5dbdc2[_0x45b9d9(0x1a9)](_0x282877[_0x45b9d9(0xfb)]),_0x906fbf=_0x5dbdc2[_0x45b9d9(0x1a9)](_0x24d96c[_0x45b9d9(0xde)]),{pivotTableConfig:_0x366100,pivotTableId:_0x5f095c,unitId:_0x582e65,subUnitId:_0x7a4ca}=_0x2ce7ae,_0x33920b=(await _0x906fbf[_0x45b9d9(0x2f9)]({'unitId':_0x582e65,'subUnitId':_0x7a4ca,'pivotTableId':_0x5f095c,'params':{'type':_0x15dd40[_0x45b9d9(0xa0)],'setPivotTableConfig':{'pivotTableId':_0x5f095c,'pivotTableConfig':_0x366100}}}))['result'][_0x45b9d9(0x281)];if(!_0x33920b)return!0x1;const {changesets:_0x5b07ea}=_0x33920b,{redos:_0x49d666,undos:_0x482511}=_0x14e595(_0x4b3eaf,{'pivotTableId':_0x5f095c,'unitId':_0x582e65,'subUnitId':_0x7a4ca},_0x5b07ea);return _0x282877[_0x45b9d9(0x1aa)](_0x49d666,_0x4b3eaf),_0x2cb442['pushUndoRedo']({'unitID':_0x582e65,'redoMutations':_0x49d666,'undoMutations':_0x482511}),!0x0;}},_0xe8105e={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0xbfff57,_0x5cad01){const _0x2bb7f5=_0x2b16d4;if(!_0x5cad01)return!0x1;const _0x50e2e0=_0xbfff57['get'](_0x282877[_0x2bb7f5(0x240)]),{pivotTableId:_0x10882b,tableFieldId:_0x38834c,items:_0x4a0494,unitId:_0x32990d,subUnitId:_0x427d35,isAll:_0x1f90ff}=_0x5cad01,_0x4735ca=_0xbfff57['get'](_0x24d96c['SheetsPivotRPCService']),_0x5d2021=_0xbfff57[_0x2bb7f5(0x1a9)](_0x282877[_0x2bb7f5(0xfb)]),_0x2049e7=(await _0x4735ca[_0x2bb7f5(0x2f9)]({'unitId':_0x32990d,'subUnitId':_0x427d35,'pivotTableId':_0x10882b,'params':{'type':_0x15dd40[_0x2bb7f5(0x21e)],'setPivotFilter':{'tableFieldId':_0x38834c,'items':_0x4a0494,'isAll':_0x1f90ff}}}))[_0x2bb7f5(0xf5)][_0x2bb7f5(0x23a)];if(!_0x2049e7)return!0x1;const {changesets:_0xff3392,pivotTableConfig:_0x3abea1,isEmpty:_0x1b7fe3,view:_0x93365}=_0x2049e7,_0x1b67bf=_0x3abea1[_0x2bb7f5(0x360)],_0x147ab1=new _0x3e0737[(_0x2bb7f5(0xe5))]();_0x147ab1[_0x2bb7f5(0x38d)](_0x93365);const _0x57ffb1={'cellInfo':_0x1b67bf,'view':_0x147ab1,'isEmpty':_0x1b7fe3};if(!await _0xbfff57[_0x2bb7f5(0x1a9)](_0x24d96c['SheetsPivotTableService'])[_0x2bb7f5(0x29c)][_0x2bb7f5(0x3a7)](_0x387164)(!0x0,_0x57ffb1))return!0x1;const _0x4534f6=_0x43927d(_0xbfff57,_0x147ab1,_0x1b67bf,_0x1b7fe3),_0x4233f8=_0x41310d(_0xbfff57,_0x57ffb1),{undos:_0x379a18,redos:_0x134621}=_0x14e595(_0x50e2e0,{'pivotTableId':_0x10882b,'unitId':_0x32990d,'subUnitId':_0x427d35},_0xff3392);return _0x282877[_0x2bb7f5(0x1aa)]([..._0x4534f6[_0x2bb7f5(0x2a3)],..._0x4233f8[_0x2bb7f5(0x2a3)],..._0x134621],_0x50e2e0),_0x5d2021['pushUndoRedo']({'unitID':_0x32990d,'redoMutations':[..._0x4534f6[_0x2bb7f5(0x2a3)],..._0x4233f8[_0x2bb7f5(0x2a3)],..._0x134621],'undoMutations':[..._0x4534f6[_0x2bb7f5(0x1cd)],..._0x4233f8[_0x2bb7f5(0x1cd)],..._0x379a18]}),!0x0;}},_0x503ea6={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0xbd),async 'handler'(_0xa4d5fb,_0x37b268){const _0x1555e2=_0x2b16d4;if(!_0x37b268)return!0x1;const _0x4918e9=_0xa4d5fb[_0x1555e2(0x1a9)](_0x282877[_0x1555e2(0x240)]),_0x3270e8=_0xa4d5fb[_0x1555e2(0x1a9)](_0x282877[_0x1555e2(0xfb)]),_0x2d73f5=_0xa4d5fb[_0x1555e2(0x1a9)](_0x24d96c[_0x1555e2(0xde)]),{info:_0x42902b,tableFieldId:_0x16285a,pivotTableId:_0x2e2b54,unitId:_0x21307b,subUnitId:_0x42cc4b}=_0x37b268,_0x52727b=(await _0x2d73f5[_0x1555e2(0x2f9)]({'unitId':_0x21307b,'subUnitId':_0x42cc4b,'pivotTableId':_0x2e2b54,'params':{'type':_0x15dd40[_0x1555e2(0x302)],'setPivotSort':{'tableFieldId':_0x16285a,'info':_0x42902b}}}))[_0x1555e2(0xf5)][_0x1555e2(0x160)];if(!_0x52727b)return!0x1;const {changesets:_0x1d0d72}=_0x52727b,{redos:_0x2275c6,undos:_0x319ea9}=_0x14e595(_0x4918e9,{'pivotTableId':_0x2e2b54,'unitId':_0x21307b,'subUnitId':_0x42cc4b},_0x1d0d72);return _0x282877[_0x1555e2(0x1aa)](_0x2275c6,_0x4918e9),_0x3270e8[_0x1555e2(0x249)]({'unitID':_0x21307b,'redoMutations':_0x2275c6,'undoMutations':_0x319ea9}),!0x0;}},_0x3b04ca={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0xf0),async 'handler'(_0x3ea38a,_0x5e2912){const _0x3d5ee0=_0x2b16d4;if(!_0x5e2912)return!0x1;const _0x1573be=_0x3ea38a[_0x3d5ee0(0x1a9)](_0x282877[_0x3d5ee0(0x240)]),{pivotTableId:_0x297d94,fieldId:_0xaa9577,valueFilterInfo:_0x48c255,unitId:_0x245a8d,subUnitId:_0x2e0a39}=_0x5e2912,_0x3e5a64=_0x3ea38a[_0x3d5ee0(0x1a9)](_0x24d96c[_0x3d5ee0(0xde)]),_0x152021=_0x3ea38a[_0x3d5ee0(0x1a9)](_0x282877[_0x3d5ee0(0xfb)]),_0x1e9fa8=(await _0x3e5a64['getPivotDisplayConfig']({'unitId':_0x245a8d,'subUnitId':_0x2e0a39,'pivotTableId':_0x297d94,'params':{'type':_0x15dd40[_0x3d5ee0(0x28a)],'setValuePivotFilter':{'tableFieldId':_0xaa9577,'filterInfo':_0x48c255}}}))['result'][_0x3d5ee0(0x213)];if(!_0x1e9fa8)return!0x1;const {changesets:_0x50aca2,pivotTableConfig:_0x33ff69,isEmpty:_0x496292,view:_0x1af0ec}=_0x1e9fa8,_0x3bd709=_0x33ff69[_0x3d5ee0(0x360)],_0x428e29=new _0x3e0737[(_0x3d5ee0(0xe5))]();_0x428e29[_0x3d5ee0(0x38d)](_0x1af0ec);const _0x110e52={'cellInfo':_0x3bd709,'view':_0x428e29,'isEmpty':_0x496292};if(!await _0x3ea38a['get'](_0x24d96c[_0x3d5ee0(0x199)])[_0x3d5ee0(0x29c)]['fetchThroughAsyncInterceptors'](_0x387164)(!0x0,_0x110e52))return!0x1;const _0x383e26=_0x43927d(_0x3ea38a,_0x428e29,_0x3bd709,_0x496292),_0x174af6=_0x41310d(_0x3ea38a,_0x110e52),{undos:_0xad12ea,redos:_0x1fd73f}=_0x14e595(_0x1573be,{'pivotTableId':_0x297d94,'unitId':_0x245a8d,'subUnitId':_0x2e0a39},_0x50aca2);return _0x282877['sequenceExecute']([..._0x383e26[_0x3d5ee0(0x2a3)],..._0x174af6[_0x3d5ee0(0x2a3)],..._0x1fd73f],_0x1573be),_0x152021[_0x3d5ee0(0x249)]({'unitID':_0x245a8d,'redoMutations':[..._0x383e26[_0x3d5ee0(0x2a3)],..._0x174af6[_0x3d5ee0(0x2a3)],..._0x1fd73f],'undoMutations':[..._0x383e26[_0x3d5ee0(0x1cd)],..._0x174af6[_0x3d5ee0(0x1cd)],..._0xad12ea]}),!0x0;}},_0x2ad5a3={'id':_0x2b16d4(0xac),'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'handler':(_0x11b652,_0x44ed0f)=>{const _0x1e5fbe=_0x2b16d4;if(!_0x44ed0f)return!0x1;if(!!_0x11b652[_0x1e5fbe(0x1a9)](_0x282877[_0x1e5fbe(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const {unitId:_0x6610b1,subUnitId:_0x20324f,pivotTableId:_0x43fbc7,tableFieldId:_0x5cdb81,dateType:_0x54139f}=_0x44ed0f,_0x506a2a=_0x11b652[_0x1e5fbe(0x1a9)](_0x24d96c[_0x1e5fbe(0x1b4)]),_0x8bc211=_0x506a2a[_0x1e5fbe(0x185)](_0x43fbc7);if(!_0x8bc211)return!0x1;const _0x5f49a2=_0x8bc211[_0x1e5fbe(0x323)](_0x5cdb81);if(!_0x5f49a2)return!0x1;const _0xdc5bec=_0x5f49a2[_0x1e5fbe(0x295)](),_0x184eeb=_0x8bc211[_0x1e5fbe(0xd0)](_0xdc5bec),_0x5ef0b5=(_0x184eeb==null?void 0x0:_0x184eeb[_0x1e5fbe(0x241)]())+'\x20'+_0x4df91d(_0x11b652,_0x54139f);_0x506a2a[_0x1e5fbe(0xd9)](_0x6610b1,_0x43fbc7)[_0x1e5fbe(0x23f)](_0x5f49a2['id'],_0x5ef0b5);const _0x5ed078=_0x8bc211[_0x1e5fbe(0x35f)](_0x5cdb81);if(!_0x5ed078)return!0x1;_0x8bc211[_0x1e5fbe(0x32b)](_0x5ed078[_0x1e5fbe(0x149)](),_0x5ef0b5),_0x5f49a2[_0x1e5fbe(0x353)](_0x54139f);const _0x114275=_0x506a2a[_0x1e5fbe(0x13c)](_0x6610b1,_0x20324f,_0x43fbc7);return _0x506a2a[_0x1e5fbe(0x224)]({'unitId':_0x6610b1,'subUnitId':_0x20324f,'token':_0x43fbc7,'type':_0xa5664b[_0x1e5fbe(0x127)],'pivotConfig':_0x114275}),!0x0;}},_0x3f98c7={'id':_0x2b16d4(0x36a),'type':_0x282877['CommandType'][_0x2b16d4(0xf2)],'handler':(_0x4db71f,_0x119834)=>{const _0x4f1029=_0x2b16d4;if(!_0x119834)return!0x1;const _0x2c2653=_0x4db71f[_0x4f1029(0x1a9)](_0x282877[_0x4f1029(0xfb)]),{unitId:_0x2b7b8e,subUnitId:_0x20d563,pivotTableId:_0x3f32c2,tableFieldId:_0x5bf18e}=_0x119834,_0x4815f9=[],_0x38a89b=[],_0x12173d=_0x4db71f[_0x4f1029(0x1a9)](_0x24d96c[_0x4f1029(0x15d)]),_0x1f25e7=_0x12173d[_0x4f1029(0xd9)](_0x2b7b8e,_0x3f32c2),_0x56e60f=_0x12173d[_0x4f1029(0x13c)](_0x2b7b8e,_0x20d563,_0x3f32c2);if(!(_0x56e60f!=null&&_0x56e60f[_0x4f1029(0x348)][_0x4f1029(0x3a3)]))return!0x1;const _0x3d4a36=Object['values'](_0x56e60f[_0x4f1029(0x348)][_0x4f1029(0x3a3)])[_0x4f1029(0x1a6)](_0x19001=>_0x19001['id']===_0x5bf18e);if(!_0x3d4a36)return!0x1;const _0xdcdc73=_0x3d4a36[_0x4f1029(0x1d8)];if(!(_0x1f25e7!=null&&_0x1f25e7[_0x4f1029(0x377)]))return!0x1;const _0x94420c=Object[_0x4f1029(0x369)](_0x1f25e7==null?void 0x0:_0x1f25e7['fields'])[_0x4f1029(0x1a6)](_0x3674cd=>_0x3674cd['id']===_0xdcdc73);if(!_0x94420c)return!0x1;_0x3e0737['isDateGroupFieldJSON'](_0x94420c)&&_0x4815f9[_0x4f1029(0x338)]({'id':_0x2ad5a3['id'],'params':{..._0x119834,'dateType':_0x94420c[_0x4f1029(0x33e)]}}),_0x38a89b[_0x4f1029(0x338)]({'id':_0x2ad5a3['id'],'params':{..._0x119834}});const _0x6b1507=_0x4db71f[_0x4f1029(0x1a9)](_0x282877['ICommandService']);return _0x282877[_0x4f1029(0x1aa)](_0x38a89b,_0x6b1507)&&_0x2c2653[_0x4f1029(0x249)]({'unitID':_0x2b7b8e,'undoMutations':_0x4815f9,'redoMutations':_0x38a89b}),!0x0;}},_0x29ffa8={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0xfd),async 'handler'(_0x32fbb6,_0xce8d0b){const _0x503113=_0x2b16d4;if(!_0xce8d0b)return!0x1;const _0x60ba34=_0x32fbb6[_0x503113(0x1a9)](_0x282877[_0x503113(0x240)]),_0x38c42e=_0x32fbb6[_0x503113(0x1a9)](_0x282877['IUndoRedoService']),_0x4fda68=_0x32fbb6['get'](_0x24d96c['SheetsPivotRPCService']),{displayName:_0x69764,subtotalType:_0x5a0ecb,format:_0x4eca48,tableFieldId:_0x1ff584,pivotTableId:_0x5c6b23,unitId:_0x5e715b,subUnitId:_0x46f2a4}=_0xce8d0b,_0x2473f8=(await _0x4fda68[_0x503113(0x2f9)]({'unitId':_0x5e715b,'subUnitId':_0x46f2a4,'pivotTableId':_0x5c6b23,'params':{'type':_0x15dd40[_0x503113(0x14a)],'setPivotSetting':{'tableFieldId':_0x1ff584,'displayName':_0x69764,'subtotalType':_0x5a0ecb,'format':_0x4eca48}}}))[_0x503113(0xf5)][_0x503113(0x142)];if(!_0x2473f8)return!0x1;const {changesets:_0x23504b,view:_0x1a773e,pivotTableConfig:_0x1afb1e,isEmpty:_0xb72292}=_0x2473f8,_0x1e4338=_0x1afb1e['targetCellInfo'],_0x165960=new _0x3e0737['PivotView']();_0x165960[_0x503113(0x38d)](_0x1a773e);const _0x245b49={'cellInfo':_0x1e4338,'view':_0x165960,'isEmpty':_0xb72292};if(!await _0x32fbb6[_0x503113(0x1a9)](_0x24d96c[_0x503113(0x199)])[_0x503113(0x29c)]['fetchThroughAsyncInterceptors'](_0x387164)(!0x0,_0x245b49))return!0x1;const _0x43fc22=_0x43927d(_0x32fbb6,_0x165960,_0x1e4338,_0xb72292),_0x2aa50e=_0x41310d(_0x32fbb6,_0x245b49),{undos:_0x2067c8,redos:_0x47aadf}=_0x14e595(_0x60ba34,{'pivotTableId':_0x5c6b23,'unitId':_0x5e715b,'subUnitId':_0x46f2a4},_0x23504b);return _0x282877[_0x503113(0x1aa)]([..._0x43fc22[_0x503113(0x2a3)],..._0x2aa50e[_0x503113(0x2a3)],..._0x47aadf],_0x60ba34),_0x38c42e[_0x503113(0x249)]({'unitID':_0x5e715b,'redoMutations':[..._0x43fc22[_0x503113(0x2a3)],..._0x2aa50e['redos'],..._0x47aadf],'undoMutations':[..._0x43fc22[_0x503113(0x1cd)],..._0x2aa50e[_0x503113(0x1cd)],..._0x2067c8]}),!0x0;}},_0x5d22e4={'type':_0x282877['CommandType'][_0x2b16d4(0x156)],'id':_0x2b16d4(0x2e5),'handler'(_0x7f68d6,_0x8f6322){const _0x2dc357=_0x2b16d4;if(!_0x8f6322)return!0x1;if(!!_0x7f68d6[_0x2dc357(0x1a9)](_0x282877[_0x2dc357(0xc1)])[_0x2dc357(0xf8)](_0x3ecd37))return!0x0;const _0x5a4dc3=_0x7f68d6[_0x2dc357(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),{pivotTableId:_0x20e4cf,deleteIds:_0x37fd69,collectionJSON:_0x2146db,dataRangeInfo:_0x459426,unitId:_0x3eb3be,subUnitId:_0x4d3a51}=_0x8f6322,_0x4a6f61=_0x5a4dc3[_0x2dc357(0x185)](_0x20e4cf),_0x4c26db=_0x5a4dc3[_0x2dc357(0x13c)](_0x3eb3be,_0x4d3a51,_0x20e4cf);if(!_0x4a6f61||!_0x4c26db)return!0x1;const {collection:_0x496d86,updateDataFieldList:_0x1bd44d}=_0x5a4dc3['addCollectionByJSON'](_0x20e4cf,_0x2146db,_0x459426,_0x4c26db['targetCellInfo']);_0x5a4dc3['refreshData'](_0x496d86,_0x1bd44d,_0x459426),_0x4a6f61[_0x2dc357(0x34e)](_0x496d86);for(const _0x52360a of _0x37fd69)_0x5a4dc3[_0x2dc357(0x126)](_0x459426[_0x2dc357(0x1bc)],_0x52360a);const _0x285c96=_0x5a4dc3['getPivotTableConfig'](_0x3eb3be,_0x4d3a51,_0x20e4cf);return _0x285c96[_0x2dc357(0x2ab)]=JSON[_0x2dc357(0x1ed)](JSON[_0x2dc357(0x11f)](_0x459426)),_0x5a4dc3[_0x2dc357(0x224)]({'unitId':_0x3eb3be,'subUnitId':_0x4d3a51,'token':_0x20e4cf,'type':_0xa5664b['Set']}),!0x0;}},_0x16a0b5={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x2b0),async 'handler'(_0x2124a6,_0x1eeed7){const _0x43a717=_0x2b16d4,_0x3975b5=_0x2124a6[_0x43a717(0x1a9)](_0x282877[_0x43a717(0x240)]),_0x33a218=_0x2124a6[_0x43a717(0x1a9)](_0x24d96c[_0x43a717(0xde)]),_0x16e403=_0x2124a6[_0x43a717(0x1a9)](_0x282877[_0x43a717(0xfb)]);if(!_0x1eeed7)return!0x1;const {token:_0x245676,dataRangeInfo:_0x129c77,unitId:_0x1da13c,subUnitId:_0x57ae20}=_0x1eeed7,_0x292566=[],_0x5b000a=[],_0x273e94=(await _0x33a218[_0x43a717(0x2f9)]({'unitId':_0x1da13c,'subUnitId':_0x57ae20,'pivotTableId':_0x245676,'params':{'type':_0x15dd40[_0x43a717(0x1c6)],'updatePivotSource':{'dataRangeInfo':_0x129c77,'unitId':_0x1da13c,'subUnitId':_0x57ae20}}}))['result']['updatePivotSource'];if(!_0x273e94)return!0x1;const {changesets:_0x4948e1,deleteIds:_0x41426c,collectionConfig:_0x334e07,oldCollectionConfig:_0x576df2,view:_0xbe2658,isEmpty:_0x56e802,pivotTableConfig:_0x32d6c6}=_0x273e94;_0x5b000a[_0x43a717(0x338)]({'id':_0x5d22e4['id'],'params':{'pivotTableId':_0x245676,'deleteIds':_0x41426c,'collectionJSON':_0x334e07,'dataRangeInfo':_0x129c77,'unitId':_0x1da13c,'subUnitId':_0x57ae20}}),_0x292566[_0x43a717(0x36f)]({'id':_0x5d22e4['id'],'params':{'pivotTableId':_0x245676,'deleteIds':[],'collectionJSON':_0x576df2,'dataRangeInfo':_0x32d6c6[_0x43a717(0x2ab)],'unitId':_0x1da13c,'subUnitId':_0x57ae20}});const _0x4966fb=_0x32d6c6[_0x43a717(0x360)],_0x3953f3=new _0x3e0737['PivotView']();_0x3953f3[_0x43a717(0x38d)](_0xbe2658);const _0x3d2c8f={'cellInfo':_0x4966fb,'view':_0x3953f3,'isEmpty':_0x56e802};if(!await _0x2124a6[_0x43a717(0x1a9)](_0x24d96c[_0x43a717(0x199)])['asyncInterceptor'][_0x43a717(0x3a7)](_0x387164)(!0x0,_0x3d2c8f))return!0x1;const _0x429c15=_0x43927d(_0x2124a6,_0x3953f3,_0x4966fb,_0x56e802),_0x220e60=_0x41310d(_0x2124a6,_0x3d2c8f),{undos:_0x324805,redos:_0x2c2b6b}=_0x14e595(_0x3975b5,{'pivotTableId':_0x245676,'unitId':_0x1da13c,'subUnitId':_0x57ae20},_0x4948e1);return _0x282877[_0x43a717(0x1aa)]([..._0x429c15['redos'],..._0x220e60['redos'],..._0x5b000a,..._0x324805],_0x3975b5),_0x16e403[_0x43a717(0x249)]({'unitID':_0x1da13c,'redoMutations':[..._0x429c15[_0x43a717(0x2a3)],..._0x220e60['redos'],..._0x5b000a,..._0x324805],'undoMutations':[..._0x429c15[_0x43a717(0x1cd)],..._0x220e60[_0x43a717(0x1cd)],..._0x292566,..._0x2c2b6b]}),!0x0;}},_0x15fd16={'type':_0x282877['CommandType'][_0x2b16d4(0xf2)],'id':'sheet.command.update-pivot-value-position',async 'handler'(_0x1bb83b,_0x4116e0){const _0x2d7a97=_0x2b16d4;if(!_0x4116e0)return!0x1;const _0x19993f=_0x1bb83b[_0x2d7a97(0x1a9)](_0x282877[_0x2d7a97(0x240)]),_0x4a577e=_0x1bb83b[_0x2d7a97(0x1a9)](_0x24d96c[_0x2d7a97(0xde)]),_0x3a082d=_0x1bb83b[_0x2d7a97(0x1a9)](_0x282877[_0x2d7a97(0x165)]),_0x4ea2e5=_0x1bb83b['get'](_0x282877['IUndoRedoService']),{pivotTableId:_0x28f90c,position:_0x18deac,index:_0x571aac}=_0x4116e0,_0x33aa1d=_0x5698b3[_0x2d7a97(0x2e1)](_0x3a082d);if(!_0x33aa1d)return!0x1;const {unitId:_0x418f18,subUnitId:_0x1a5896}=_0x33aa1d,_0x538556=(await _0x4a577e['getPivotDisplayConfig']({'unitId':_0x418f18,'subUnitId':_0x1a5896,'pivotTableId':_0x28f90c,'params':{'type':_0x15dd40[_0x2d7a97(0x230)],'updateValuePosition':{'position':_0x18deac,'index':_0x571aac}}}))[_0x2d7a97(0xf5)][_0x2d7a97(0x1df)];if(!_0x538556)return!0x1;const {changesets:_0x18aa01,view:_0x552627,isEmpty:_0x394dd5,pivotTableConfig:_0x29499d}=_0x538556,_0x170ec5=_0x29499d[_0x2d7a97(0x360)],_0x29b174=new _0x3e0737[(_0x2d7a97(0xe5))]();_0x29b174[_0x2d7a97(0x38d)](_0x552627);const _0x2898a6=_0x1bb83b['get'](_0x24d96c[_0x2d7a97(0x199)]),_0x50e6a9={'cellInfo':_0x170ec5,'view':_0x29b174,'isEmpty':_0x394dd5};if(!await _0x2898a6[_0x2d7a97(0x29c)][_0x2d7a97(0x3a7)](_0x387164)(!0x0,_0x50e6a9))return!0x1;const _0xd37048=_0x43927d(_0x1bb83b,_0x29b174,_0x170ec5,_0x394dd5),_0x50f7cd=_0x41310d(_0x1bb83b,_0x50e6a9),{undos:_0x57c84c,redos:_0x3d284b}=_0x14e595(_0x19993f,{'pivotTableId':_0x28f90c,'unitId':_0x418f18,'subUnitId':_0x1a5896},_0x18aa01);return _0x282877[_0x2d7a97(0x1aa)]([..._0xd37048[_0x2d7a97(0x2a3)],..._0x50f7cd['redos'],..._0x3d284b],_0x19993f),_0x4ea2e5['pushUndoRedo']({'unitID':_0x418f18,'redoMutations':[..._0xd37048['redos'],..._0x50f7cd[_0x2d7a97(0x2a3)],..._0x3d284b],'undoMutations':[..._0xd37048[_0x2d7a97(0x1cd)],..._0x50f7cd[_0x2d7a97(0x1cd)],..._0x57c84c]}),!0x0;}},_0x44990a={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x22d),'handler'(){return!0x0;}};var _0x4581af=Object[_0x2b16d4(0x34b)],_0x5f0ff4=(_0x1ecfa8,_0x578592,_0x182561,_0x35bde5)=>{const _0x59b776=_0x2b16d4;for(var _0x210d42=_0x35bde5>0x1?void 0x0:_0x35bde5?_0x4581af(_0x578592,_0x182561):_0x578592,_0x481278=_0x1ecfa8[_0x59b776(0x27b)]-0x1,_0x21ec96;_0x481278>=0x0;_0x481278--)(_0x21ec96=_0x1ecfa8[_0x481278])&&(_0x210d42=_0x21ec96(_0x210d42)||_0x210d42);return _0x210d42;},_0x597a43=(_0x2491b6,_0xc28c49)=>(_0x20e475,_0x2fc3f8)=>_0xc28c49(_0x20e475,_0x2fc3f8,_0x2491b6);const _0x2f18a1=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x31967d=(_0x16d062,_0x15b052,_0x2cafe4)=>{const _0x3cfc59=_0x2b16d4,_0x852f0c=_0x16d062[_0x3cfc59(0x381)];_0x16d062[_0x3cfc59(0x2b7)](_0x5cebd9=>{const _0x375166=_0x3cfc59,_0x33b0c3=_0x5cebd9['getId'](),_0x97802c=_0x5cebd9[_0x375166(0x19d)](),_0x4d3b20=_0x5cebd9[_0x375166(0x2f6)](),_0x313d0d=_0x5cebd9[_0x375166(0x115)]();_0x15b052[_0x97802c]&&_0x15b052[_0x97802c]===_0x313d0d&&_0x4d3b20===_0x313d0d&&(_0x16d062[_0x375166(0x32b)](_0x33b0c3,_0x852f0c[_0x375166(0x115)](_0x97802c)),_0x5cebd9['setSourceName'](_0x852f0c[_0x375166(0x115)](_0x97802c)));}),_0x16d062[_0x3cfc59(0xf3)](_0x3e0737[_0x3cfc59(0x372)]['Value'],_0x150dd3=>{const _0x312a7a=_0x3cfc59,_0x4f641f=_0x150dd3[_0x312a7a(0x149)](),_0x2badc7=_0x150dd3[_0x312a7a(0x19d)](),_0x4de8cb=_0x150dd3[_0x312a7a(0x2f6)](),_0x48b7c9=_0x150dd3[_0x312a7a(0x115)](),_0x17653e=_0x150dd3[_0x312a7a(0x1c9)](),_0x52c7da=_0x2cafe4(_0x4de8cb,_0x17653e);_0x15b052[_0x2badc7]&&_0x15b052[_0x2badc7]===_0x4de8cb&&_0x52c7da===_0x48b7c9&&(_0x16d062['renameField'](_0x4f641f,_0x2cafe4(_0x852f0c[_0x312a7a(0x115)](_0x2badc7),_0x17653e)),_0x150dd3[_0x312a7a(0xb8)](_0x852f0c['getDisplayName'](_0x2badc7)));});},_0x5c986e=(_0x469e52,_0x577335,_0x5f5cca)=>{const _0x1c9424=_0x2b16d4;var _0x30a6f7,_0x2c4c10;const {arrayFormulaCellData:_0x369559,unitData:_0x152f37}=_0x577335,{unitId:_0x5c8fd9,subUnitId:_0x347eda}=_0x5f5cca,_0x4debd1=_0x5f5cca[_0x1c9424(0x345)],{startColumn:_0x1ed93b,endColumn:_0x2d965e}=_0x4debd1,_0x313eb5=(_0x30a6f7=_0x369559==null?void 0x0:_0x369559[_0x5c8fd9])==null?void 0x0:_0x30a6f7[_0x347eda],_0x4c691c=(_0x2c4c10=_0x152f37==null?void 0x0:_0x152f37[_0x5c8fd9])==null?void 0x0:_0x2c4c10[_0x347eda],_0x438559=new Set(),_0xd4a2c6=_0x2d965e-_0x1ed93b+0x1,{dirtyRanges:_0x258b1e}=_0x469e52;if(_0x258b1e)for(const {range:_0x5c5155,sheetId:_0x1637ed,unitId:_0x447614}of _0x258b1e){if(_0x1637ed!==_0x347eda||_0x5c8fd9!==_0x447614)continue;const _0x25d285=_0x282877['Rectangle']['getIntersects'](_0x5c5155,_0x4debd1);if(_0x25d285){const {startColumn:_0x4865db,endColumn:_0x2a5144}=_0x25d285;for(let _0x3455ca=_0x4865db;_0x3455ca<=_0x2a5144;_0x3455ca++)_0x438559[_0x1c9424(0x183)](_0x3455ca);}}if(_0x438559[_0x1c9424(0x1a5)]===_0xd4a2c6||_0x438559[_0x1c9424(0x1a5)]===_0xd4a2c6)return Array[_0x1c9424(0xa4)](_0x438559);if(_0x4c691c){const _0x4c491f=_0x4c691c[_0x1c9424(0x315)](),_0xe6f476=Object[_0x1c9424(0x12a)](_0x4c491f);for(const _0x432ebb of _0xe6f476){const _0x1e6833=Number(_0x432ebb),_0x2ff037=_0x4c491f[_0x1e6833];if(_0x438559[_0x1c9424(0x1a5)]===_0xd4a2c6)break;for(const _0x9333ed in _0x2ff037){const _0x2bf84d=Number(_0x9333ed);_0x2bf84d<_0x1ed93b||_0x2bf84d>_0x2d965e||_0x438559[_0x1c9424(0x183)](_0x2bf84d);}}}if(_0x313eb5){const _0x550383=_0x313eb5[_0x1c9424(0x315)](),_0x3fc585=Object[_0x1c9424(0x12a)](_0x550383);for(const _0x2c0cc6 of _0x3fc585){const _0x3aa32f=Number(_0x2c0cc6),_0x124e0a=_0x550383[_0x3aa32f];if(_0x438559['size']===_0xd4a2c6)break;for(const _0x11ec3d in _0x124e0a){const _0x3b3b14=Number(_0x11ec3d);_0x3b3b14<_0x1ed93b||_0x3b3b14>_0x2d965e||_0x438559[_0x1c9424(0x183)](_0x3b3b14);}}}return Array[_0x1c9424(0xa4)](_0x438559);},_0x11ba6c=_0x3dfe80=>{const _0x2bdb80=_0x2b16d4,_0x32cf21=new Set(),_0x105b68=[];for(const _0x106010 of _0x3dfe80){const _0x291fe2=_0x106010[_0x2bdb80(0x19f)]+','+_0x106010[_0x2bdb80(0x39e)]+','+_0x106010[_0x2bdb80(0x254)]+','+_0x106010['endColumn'];_0x32cf21[_0x2bdb80(0x105)](_0x291fe2)||(_0x32cf21['add'](_0x291fe2),_0x105b68['push'](_0x106010));}return _0x105b68;};let _0x566683=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0xa97de6,_0x2da085,_0x4b9757,_0x3fae90,_0xc739f2){const _0x20a8bb=_0x2b16d4;super(),_0x2e1abd(this,_0x20a8bb(0x16a),new _0x2b003b[(_0x20a8bb(0xbf))](!0x0)),_0x2e1abd(this,_0x20a8bb(0x2d7),_0x3c8dea=>{const _0x58a97d=_0x20a8bb;this['_globalSubject'][_0x58a97d(0x23b)](!0x1);}),_0x2e1abd(this,_0x20a8bb(0x2b3),_0x1fc1ff=>{const _0x33ae4d=_0x20a8bb;this[_0x33ae4d(0x16a)]['next'](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0xa97de6,this[_0x20a8bb(0x297)]=_0x2da085,this[_0x20a8bb(0x2e0)]=_0x4b9757,this['_globalComputingSrv']=_0x3fae90,this[_0x20a8bb(0x1fe)]=_0xc739f2,this[_0x20a8bb(0x261)](),this[_0x20a8bb(0x16f)]());}[_0x2b16d4(0x261)](){const _0x45e48e=_0x2b16d4;this[_0x45e48e(0xe4)](),this['_subjectViewChange'](),this['_initPivotTextInfo'](),this[_0x45e48e(0x31c)]();}[_0x2b16d4(0x36b)](){const _0x18c673=_0x2b16d4;this[_0x18c673(0x1ee)][_0x18c673(0x12e)](this[_0x18c673(0x16a)]),_0x3e0737[_0x18c673(0x277)]['registerCallbackWithEvent'](_0x3e0737['PivotCallbackEnum']['onQueryStart'],this['_globalComputedStartHelpFunc']),_0x3e0737[_0x18c673(0x277)][_0x18c673(0xf4)](_0x3e0737[_0x18c673(0x36c)][_0x18c673(0xf9)],this[_0x18c673(0x2b3)]);}[_0x2b16d4(0x16f)](){const _0xd09480=_0x2b16d4;this['disposeWithMe'](this[_0xd09480(0x2e0)][_0xd09480(0x333)](_0x313c39=>{const _0x265f9e=_0xd09480;_0x313c39['id']===_0x5698b3['MoveRangeMutation']['id']&&this[_0x265f9e(0x329)]['handleMoveRange'](_0x313c39[_0x265f9e(0x14d)]);})),this[_0xd09480(0x324)](this['_commandService'][_0xd09480(0x333)](_0x29af8d=>{const _0x3afef7=_0xd09480;if(_0x29af8d['id']!==_0x19037a['id'])return;const _0x2d20f9=_0x29af8d[_0x3afef7(0x14d)],{unitId:_0x86e468,subUnitId:_0x5eb993,pivotTableId:_0x92da39}=_0x2d20f9,_0x2812c0=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x1e7)],_0x320db6={};switch(_0x2812c0){case _0x15dd40[_0x3afef7(0x395)]:{const _0x1b00fc=_0x2d20f9[_0x3afef7(0x14d)]['filter'];if(!_0x1b00fc)return;const {row:_0x3fb552,col:_0x36dc73,cellData:_0x3619c9,pivotItemRenderInfoCache:_0x3fa917,tableFieldId:_0xc0f831}=_0x1b00fc,_0x335462=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x2d20f9[_0x3afef7(0x359)]);if(!_0x335462||!_0x3fa917)return;if(_0xc0f831){const _0x1aabec=_0x335462['getDataFieldByTableId'](_0xc0f831);if(!_0x1aabec)return;_0x320db6[_0x3afef7(0x179)]={..._0x335462[_0x3afef7(0x2ca)](_0x1aabec),'tableFieldId':_0xc0f831,'pivotTableId':_0x2d20f9[_0x3afef7(0x359)],'filterInfo':_0x335462['getFilterInfo'](_0xc0f831),'sortInfo':_0x335462[_0x3afef7(0x292)](_0xc0f831),'format':_0x335462['getFieldFormat'](_0xc0f831)};}else{const _0x33cc37=_0x5e8aa7(_0x3fb552,_0x36dc73,_0x3619c9,_0x335462,_0x3fa917),_0x45fcdf=_0x33cc37==null?void 0x0:_0x33cc37[_0x3afef7(0x38b)];if(!_0x45fcdf)return;const _0x1e0d2f=_0x335462[_0x3afef7(0x323)](_0x45fcdf);if(!_0x1e0d2f)return;_0x320db6[_0x3afef7(0x179)]={..._0x335462[_0x3afef7(0x2ca)](_0x1e0d2f),'tableFieldId':_0x45fcdf,'pivotTableId':_0x2d20f9[_0x3afef7(0x359)],'filterInfo':_0x335462[_0x3afef7(0x3a2)](_0x45fcdf),'sortInfo':_0x335462['getSortInfo'](_0x45fcdf),'format':_0x335462[_0x3afef7(0x1dd)](_0x45fcdf)};}}break;case _0x15dd40[_0x3afef7(0x13d)]:{const _0x31b876=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x161)];if(!_0x31b876)return;const {pivotTableId:_0xa61372}=_0x31b876,_0x2916bf=this[_0x3afef7(0x329)]['getPivotTableInstance'](_0xa61372);if(!_0x2916bf)return;const _0x120616=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0xa61372),_0x4a0107=_0x2e8fa2(_0x2916bf,_0xa61372,_0x120616);_0x320db6['panel']=_0x4a0107;}break;case _0x15dd40['AddPivotField']:{const _0x2ebbad=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x185)](_0x92da39),_0x108811=this[_0x3afef7(0x329)][_0x3afef7(0xc9)](_0x86e468),_0xec968e=_0x108811[_0x3afef7(0xd9)](_0x92da39);let _0x2515b5=null;const _0x2a3827=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39),_0x2b0db9=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0xda)];if(!_0x2ebbad||!_0x2a3827||!_0x2b0db9)return!0x1;const {dataFieldId:_0x4fb475,fieldArea:_0x48e401,index:_0x2ab71a}=_0x2b0db9;_0x2ebbad[_0x3afef7(0x24e)]();const _0x2c3878=_0x2ebbad[_0x3afef7(0x2ac)](_0x4fb475,_0x48e401,_0x2ab71a);if(_0x2c3878&&_0x48e401===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0xbb)]){const _0x25eba7=_0x2c3878[_0x3afef7(0x149)](),_0x47a457=_0x2ebbad['getDataFieldByTableId'](_0x25eba7);if(_0x47a457){const _0x329b69=_0x47a457==null?void 0x0:_0x47a457[_0x3afef7(0x1a0)]();_0x2ebbad[_0x3afef7(0x186)](_0x2c3878[_0x3afef7(0x149)](),_0x329b69===_0x3e0737[_0x3afef7(0x1d9)][_0x3afef7(0xa5)]?_0x3e0737['PivotSubtotalTypeEnum']['sum']:_0x3e0737[_0x3afef7(0x2c6)]['count']);}const _0x16ae7c=_0x2ebbad[_0x3afef7(0x20c)](),_0x4f991c=_0x2ebbad[_0x3afef7(0x311)](),_0x289e82=_0x2ebbad['getFieldCountByArea'](_0x3e0737[_0x3afef7(0x372)]['Value']);if(_0x16ae7c===-0x1&&_0x289e82>0x1){const _0x3d0ebf=_0x4f991c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x2d0)]?_0x3e0737['PivotTableValuePositionEnum'][_0x3afef7(0x211)]:_0x4f991c,_0x2f9903=_0x3d0ebf===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x2ef)]?_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x2ef)]:_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x211)];_0x2ebbad[_0x3afef7(0x1df)](_0x3d0ebf,_0x2ebbad[_0x3afef7(0x394)](_0x2f9903));}}else{if(_0x2c3878&&(_0x48e401===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x2ef)]||_0x48e401===_0x3e0737['PivotTableFiledAreaEnum'][_0x3afef7(0x211)])){const _0x312e36=_0x2c3878[_0x3afef7(0x149)](),_0x4f2703=_0x2ebbad[_0x3afef7(0x323)](_0x312e36);if(_0x4f2703&&(_0x4f2703==null?void 0x0:_0x4f2703['getFieldDataType']())===_0x3e0737[_0x3afef7(0x1d9)][_0x3afef7(0x10a)]){const _0x3943b3=_0x4f2703[_0x3afef7(0x30d)]();if(_0x3943b3&&_0x2ebbad[_0x3afef7(0x1e2)](_0x2c3878[_0x3afef7(0x149)](),_0x3943b3),!_0xec968e[_0x3afef7(0x1b3)]()[_0x3afef7(0x151)](_0x3a53a4=>{const _0x3171d7=_0x3afef7,_0x3f00d3=_0xec968e[_0x3171d7(0x158)](_0x3a53a4);return _0x3e0737[_0x3171d7(0x2a0)](_0x3f00d3)?_0x3f00d3[_0x3171d7(0xe2)]()[_0x3171d7(0x2c3)]===_0x4fb475:!0x1;})){const _0xa5f320=_0x108811['createDataFieldId'](),_0x4d8f2b=_0x4b5bca(_0x4f2703[_0x3afef7(0x23d)],_0x4f2703[_0x3afef7(0x25e)]),_0x5abca7=_0x4f2703[_0x3afef7(0x241)]()+_0x3afef7(0x164)+_0x4df91d(this[_0x3afef7(0x1fe)],_0x4d8f2b),_0x13f051=new _0x3e0737[(_0x3afef7(0x346))](_0xa5f320,_0x5abca7,_0x3e0737[_0x3afef7(0x150)](0x3),_0x4f2703['getId'](),_0x4d8f2b);_0x108811[_0x3afef7(0x1e0)](_0x13f051),_0xec968e[_0x3afef7(0x38f)](_0xa5f320,_0x5abca7),_0x2ebbad[_0x3afef7(0x2ac)](_0xa5f320,_0x48e401,(_0x2ab71a!=null?_0x2ab71a:0x0)+0x1),_0x2515b5=_0x13f051;}}}}const _0x43f1a9=_0x2ebbad[_0x3afef7(0xa8)](),_0x176a76=_0x2ebbad[_0x3afef7(0x341)]()[_0x3afef7(0x316)]();let _0x5a261d;if(_0x2515b5){_0x5a261d=_0x2515b5[_0x3afef7(0x316)]();const _0x2e6ee3=_0x2515b5[_0x3afef7(0x149)]();_0xec968e['deleteField'](_0x2e6ee3);let _0x5a8da0=!0x0;for(const _0x3b0071 in _0x108811[_0x3afef7(0x256)])if(_0x108811[_0x3afef7(0x256)][_0x3b0071][_0x3afef7(0x1b3)]()[_0x3afef7(0x339)](_0x2e6ee3)){_0x5a8da0=!0x1;break;}_0x5a8da0&&_0x108811[_0x3afef7(0x2ea)](_0x2e6ee3);}const _0x579f48=_0x2ebbad[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0xda)]={'view':_0x176a76,'changesets':_0x579f48,'isEmpty':_0x43f1a9,'pivotTableConfig':_0x2a3827,'shouldBeAddedGroupJSON':_0x5a261d};}break;case _0x15dd40[_0x3afef7(0x145)]:{const _0x3170be=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x11d)];if(!_0x3170be)return;const _0x39e3f8=_0x3170be[_0x3afef7(0x2ab)],_0x40d550=_0x3170be[_0x3afef7(0x359)],{collection:_0x1df49d}=this[_0x3afef7(0x329)]['createCollectionWithDataRange']({'unitId':_0x39e3f8['unitId'],'sheetName':_0x39e3f8[_0x3afef7(0x34f)],'subUnitId':_0x39e3f8['subUnitId'],'range':_0x39e3f8[_0x3afef7(0x345)]}),_0x305524=new _0x3e0737[(_0x3afef7(0x277))](_0x1df49d,void 0x0,_0x40d550),_0x10fcd9=_0x305524[_0x3afef7(0x341)](),_0x147d30=_0x305524[_0x3afef7(0x316)](),_0x3e4004=_0x1df49d[_0x3afef7(0x316)]();_0x320db6['addPivotTable']={'view':_0x10fcd9,'fieldsConfig':_0x147d30,'collectionConfig':_0x3e4004,'isEmpty':_0x305524[_0x3afef7(0xa8)]()};}break;case _0x15dd40[_0x3afef7(0x1bd)]:{const _0x5668e0=_0x2d20f9['params']['movePivotField'];if(!_0x5668e0)return;const {fieldId:_0x1a30cb,area:_0x463104,index:_0x57a44}=_0x5668e0,_0x18113f=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x18113f)return;const _0x401468=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39);if(!_0x401468)return;_0x401468[_0x3afef7(0x24e)]();const {area:_0x2361c7,index:_0x40c822}=_0x401468[_0x3afef7(0x2ed)](_0x1a30cb);if(_0x401468[_0x3afef7(0x31d)](_0x1a30cb,_0x463104,_0x57a44),_0x463104===_0x3e0737[_0x3afef7(0x372)]['Value']&&_0x401468[_0x3afef7(0x35f)](_0x1a30cb)[_0x3afef7(0x1c9)]()===void 0x0){const _0x51cb7d=_0x401468[_0x3afef7(0x35f)](_0x1a30cb);if(_0x51cb7d&&_0x51cb7d['getSubtotal']()===void 0x0){const _0x58e4a0=_0x401468[_0x3afef7(0x323)](_0x1a30cb);if(_0x58e4a0){const _0x15222d=_0x58e4a0==null?void 0x0:_0x58e4a0['getFieldDataType']();_0x401468[_0x3afef7(0x186)](_0x1a30cb,_0x15222d===_0x3e0737[_0x3afef7(0x1d9)][_0x3afef7(0xa5)]?_0x3e0737[_0x3afef7(0x2c6)][_0x3afef7(0x35a)]:_0x3e0737[_0x3afef7(0x2c6)][_0x3afef7(0x208)]);}}}const _0x53de4c=_0x401468['getValuePosition'](),_0x303135=_0x401468[_0x3afef7(0x20c)](),_0x985880=_0x401468[_0x3afef7(0x394)](_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0xbb)])>0x1;if(_0x985880&&_0x2361c7===_0x463104&&(_0x463104===_0x3e0737['PivotTableFiledAreaEnum'][_0x3afef7(0x2ef)]&&_0x53de4c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x2ef)]||_0x463104===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x211)]&&_0x53de4c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x211)])){let _0x5f4141=_0x303135;_0x40c822<=_0x303135&&_0x5f4141--,_0x57a44<=_0x303135&&_0x5f4141++,_0x401468[_0x3afef7(0x1df)](_0x53de4c,_0x5f4141);}else _0x985880&&(_0x2361c7===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x2ef)]&&_0x53de4c===_0x3e0737['PivotTableValuePositionEnum'][_0x3afef7(0x2ef)]||_0x2361c7===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x211)]&&_0x53de4c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x211)])&&_0x303135>=_0x40c822&&_0x401468[_0x3afef7(0x1df)](_0x53de4c,_0x303135-0x1),_0x985880&&(_0x463104===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x2ef)]&&_0x53de4c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x2ef)]||_0x463104===_0x3e0737[_0x3afef7(0x372)]['Column']&&_0x53de4c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x211)])&&_0x303135>=_0x57a44&&_0x401468['updateValuePosition'](_0x53de4c,_0x303135+0x1);const _0x43f74a=_0x401468[_0x3afef7(0x341)](),_0x3421ae=_0x401468[_0x3afef7(0xa8)](),_0x281edd=_0x401468[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x9c)]={'view':_0x43f74a[_0x3afef7(0x316)](),'changesets':_0x281edd,'isEmpty':_0x3421ae,'pivotTableConfig':_0x18113f};}break;case _0x15dd40[_0x3afef7(0x17a)]:{const _0x31536e=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x33b)];if(!_0x31536e)return;const _0x1436ab=_0x31536e[_0x3afef7(0x216)],_0x1f93b6=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x1f93b6)return!0x1;const _0x3a7a46=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39);if(!_0x3a7a46)return!0x1;_0x3a7a46[_0x3afef7(0x24e)]();for(const _0xfbaeaa of _0x1436ab){const {area:_0x53b89d}=_0x3a7a46['getFieldPositionInfoById'](_0xfbaeaa);_0x53b89d===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0xbb)]&&_0x3a7a46[_0x3afef7(0x9e)](_0xfbaeaa),(_0x53b89d===_0x3e0737['PivotTableFiledAreaEnum'][_0x3afef7(0x2ef)]||_0x53b89d===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x211)])&&_0x3a7a46[_0x3afef7(0x390)](_0xfbaeaa),_0x3a7a46[_0x3afef7(0x218)](_0xfbaeaa);}const _0x303cb2=_0x3a7a46['isEmpty'](),_0x2011df=_0x3a7a46['query']()[_0x3afef7(0x316)](),_0x54ff94=_0x3a7a46[_0x3afef7(0x192)]();_0x320db6['removePivotField']={'changesets':_0x54ff94,'pivotTableConfig':_0x1f93b6,'isEmpty':_0x303cb2,'view':_0x2011df};}break;case _0x15dd40[_0x3afef7(0x21e)]:{const _0x1684a5=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x23a)];if(!_0x1684a5)return;const {tableFieldId:_0x40e9d2,items:_0x599d11,isAll:_0x5112e5}=_0x1684a5,_0x332d26=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39),_0x476b5a=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x332d26||!_0x476b5a)return;_0x332d26[_0x3afef7(0x24e)](),_0x332d26['setLabelFilterInfo'](_0x40e9d2,{'type':_0x3e0737[_0x3afef7(0x17b)][_0x3afef7(0xeb)],'list':_0x599d11,'isAll':_0x5112e5});const _0x38cfe5=_0x332d26[_0x3afef7(0xa8)](),_0x4e2579=_0x332d26[_0x3afef7(0x341)]()[_0x3afef7(0x316)](),_0x38af54=_0x332d26[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x23a)]={'view':_0x4e2579,'changesets':_0x38af54,'isEmpty':_0x38cfe5,'pivotTableConfig':_0x476b5a};}break;case _0x15dd40[_0x3afef7(0x28a)]:{const _0x4ddd9f=_0x2d20f9['params']['setValuePivotFilter'];if(!_0x4ddd9f)return;const {tableFieldId:_0x5c5481,filterInfo:_0x309e74}=_0x4ddd9f,_0x1e55c7=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39),_0x3429d5=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x1e55c7||!_0x3429d5)return;_0x1e55c7[_0x3afef7(0x24e)](),_0x1e55c7['setValueFilterInfo'](_0x5c5481,_0x309e74);const _0x4304e2=_0x1e55c7['isEmpty'](),_0x2e75ef=_0x1e55c7[_0x3afef7(0x341)]()[_0x3afef7(0x316)](),_0x3e0e25=_0x1e55c7[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x213)]={'view':_0x2e75ef,'changesets':_0x3e0e25,'isEmpty':_0x4304e2,'pivotTableConfig':_0x3429d5};}break;case _0x15dd40[_0x3afef7(0x302)]:{const _0x314c8b=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x160)];if(!_0x314c8b)return;const {tableFieldId:_0x20f8bb,info:_0x43f73c}=_0x314c8b,_0x1c5ff9=this[_0x3afef7(0x329)]['getPivotTableInstance'](_0x92da39),_0x4de981=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x1c5ff9||!_0x4de981)return;_0x1c5ff9[_0x3afef7(0x24e)](),_0x1c5ff9[_0x3afef7(0x399)](_0x20f8bb,_0x43f73c);const _0x328c3a=_0x1c5ff9[_0x3afef7(0xa8)](),_0x516e74=_0x1c5ff9[_0x3afef7(0x341)]()['toJSON'](),_0x274659=_0x1c5ff9[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x160)]={'view':_0x516e74,'changesets':_0x274659,'isEmpty':_0x328c3a,'pivotTableConfig':_0x4de981};}break;case _0x15dd40[_0x3afef7(0x14a)]:{const _0x54d255=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x142)];if(!_0x54d255)return;const {tableFieldId:_0x425f00,displayName:_0x49175c,subtotalType:_0x16f4d2,format:_0x576ece}=_0x54d255,_0x1e60f7=this[_0x3afef7(0x329)]['getPivotTableInstance'](_0x92da39),_0x4ef3f4=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x1e60f7||!_0x4ef3f4)return;_0x1e60f7['startCollectChangeset'](),_0x49175c!==void 0x0&&_0x1e60f7[_0x3afef7(0x32b)](_0x425f00,_0x49175c),_0x16f4d2!==void 0x0&&_0x1e60f7['setSubtotalType'](_0x425f00,_0x16f4d2),_0x576ece!==void 0x0&&_0x1e60f7[_0x3afef7(0x1e2)](_0x425f00,_0x576ece);const _0x35c11d=_0x1e60f7[_0x3afef7(0xa8)](),_0x376d64=_0x1e60f7[_0x3afef7(0x341)]()['toJSON'](),_0x23cfe2=_0x1e60f7[_0x3afef7(0x192)]();_0x320db6['setPivotSetting']={'changesets':_0x23cfe2,'pivotTableConfig':_0x4ef3f4,'isEmpty':_0x35c11d,'view':_0x376d64};}break;case _0x15dd40[_0x3afef7(0x1c6)]:{const _0x3e1409=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x2fe)];if(!_0x3e1409)return;const {dataRangeInfo:_0x249222,unitId:_0x3b4f0b,subUnitId:_0x15b213}=_0x3e1409,_0x320ce3=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x3b4f0b,_0x15b213,_0x92da39),_0x5da5f7=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39);if(!this[_0x3afef7(0x329)]['getCollection'](_0x3b4f0b,_0x92da39)||!_0x5da5f7||!_0x320ce3)return;const _0x4e334a=this[_0x3afef7(0x329)][_0x3afef7(0x171)](_0x3b4f0b,_0x92da39,_0x249222),_0x26ddf8=this[_0x3afef7(0x329)][_0x3afef7(0xd9)](_0x3b4f0b,_0x92da39)[_0x3afef7(0x316)](),{collection:_0x3d7b08}=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x39d)]({'unitId':_0x249222['unitId'],'sheetName':_0x249222[_0x3afef7(0x34f)],'subUnitId':_0x249222[_0x3afef7(0x204)],'range':_0x249222[_0x3afef7(0x345)]}),_0x4ce7be=_0x3d7b08[_0x3afef7(0x316)]();_0x5da5f7[_0x3afef7(0x24e)]();const _0x4cf9e6=this[_0x3afef7(0x329)]['getDataFieldManager'](_0x3b4f0b)[_0x3afef7(0xe7)]()||_0x3e0737['getAutoDisplayName'];_0x5da5f7[_0x3afef7(0x1b8)](_0x273db2=>{const _0x39cd9f=_0x3afef7,_0x27028d=_0x273db2['getDataFieldId']();if(!_0x3d7b08[_0x39cd9f(0x154)](_0x27028d)){const _0x5d3501=_0x3d7b08['getDataFieldBySourceName'](_0x273db2[_0x39cd9f(0x2f6)]());if(_0x5d3501){_0x5da5f7[_0x39cd9f(0x114)](_0x273db2[_0x39cd9f(0x149)](),_0x5d3501[_0x39cd9f(0x241)](),_0x5d3501['getId']());const {area:_0x3fd22c}=_0x5da5f7[_0x39cd9f(0x2ed)](_0x273db2[_0x39cd9f(0x149)]());let _0x2d2a09=_0x273db2[_0x39cd9f(0x2f6)]();const _0x5d8d99=_0x273db2[_0x39cd9f(0x115)]();if(_0x3fd22c===_0x3e0737[_0x39cd9f(0x372)][_0x39cd9f(0xbb)]){const _0x45e5f2=_0x273db2[_0x39cd9f(0x1c9)]();_0x2d2a09=_0x4cf9e6(_0x5d3501[_0x39cd9f(0x241)](),_0x45e5f2);}_0x5d8d99!==_0x2d2a09&&_0x5da5f7[_0x39cd9f(0x32b)](_0x273db2[_0x39cd9f(0x149)](),_0x2d2a09);}else _0x5da5f7[_0x39cd9f(0x218)](_0x273db2[_0x39cd9f(0x149)]());}});const _0x2e6c69=_0x5da5f7[_0x3afef7(0xa8)](),_0x59c52c=_0x5da5f7['query']()[_0x3afef7(0x316)](),_0x46fcf1=_0x5da5f7[_0x3afef7(0x192)]();_0x320db6['updatePivotSource']={'view':_0x59c52c,'changesets':_0x46fcf1,'isEmpty':_0x2e6c69,'pivotTableConfig':_0x320ce3,'collectionConfig':_0x4ce7be,'oldCollectionConfig':_0x26ddf8,'deleteIds':_0x4e334a};}break;case _0x15dd40[_0x3afef7(0x230)]:{const _0x1d1765=_0x2d20f9['params'][_0x3afef7(0x1df)];if(!_0x1d1765)return;const {position:_0x30e986,index:_0x41e674}=_0x1d1765,_0x532f22=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x532f22)return!0x1;const _0x28c8a4=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39);if(!_0x28c8a4)return!0x1;_0x28c8a4[_0x3afef7(0x24e)](),_0x28c8a4[_0x3afef7(0x1df)](_0x30e986,_0x41e674);const _0x59f9b1=_0x28c8a4[_0x3afef7(0xa8)](),_0x4ae2b5=_0x28c8a4[_0x3afef7(0x341)]()[_0x3afef7(0x316)](),_0x2f7319=_0x28c8a4[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x1df)]={'changesets':_0x2f7319,'pivotTableConfig':_0x532f22,'isEmpty':_0x59f9b1,'view':_0x4ae2b5};}break;case _0x15dd40[_0x3afef7(0x107)]:{const _0x2ea880=_0x2d20f9['params'][_0x3afef7(0xae)];if(!_0x2ea880)return;const {tableFieldId:_0x8c1e1f,collapse:_0x11619d,item:_0x50b130}=_0x2ea880,_0x98d206=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x92da39),_0x4ebc33=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x98d206||!_0x4ebc33)return;_0x98d206[_0x3afef7(0x24e)](),_0x98d206[_0x3afef7(0x214)](_0x8c1e1f,_0x11619d,_0x50b130);const _0x4ddd1c=_0x98d206[_0x3afef7(0xa8)](),_0x2bf388=_0x98d206[_0x3afef7(0x341)]()[_0x3afef7(0x316)](),_0x546753=_0x98d206[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0xae)]={'view':_0x2bf388,'isEmpty':_0x4ddd1c,'pivotTableConfig':_0x4ebc33,'changesets':_0x546753};}break;case _0x15dd40[_0x3afef7(0xa0)]:{const _0x45bf03=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x281)];if(!_0x45bf03)return;const {pivotTableConfig:_0x1a4d6a}=_0x45bf03,_0x44aecd=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x185)](_0x92da39),_0x2049c4=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x44aecd||!_0x2049c4)return;_0x44aecd[_0x3afef7(0x24e)](),_0x47fec1(_0x44aecd,_0x1a4d6a);const _0x518383=_0x44aecd[_0x3afef7(0xa8)](),_0x277f33=_0x44aecd[_0x3afef7(0x341)]()['toJSON'](),_0x31a1a5=_0x44aecd[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x281)]={'view':_0x277f33,'isEmpty':_0x518383,'pivotTableConfig':{..._0x2049c4,'fieldsConfig':_0x44aecd['toJSON']()},'changesets':_0x31a1a5};}break;case _0x15dd40[_0x3afef7(0x38a)]:{const _0x4e1416=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x3ac)];if(!_0x4e1416)return;const _0x328072=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39),_0x4f3391=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x328072||!_0x4f3391)return;_0x328072[_0x3afef7(0x24e)](),_0x2b026f(_0x328072,_0x4e1416[_0x3afef7(0x26a)]);const _0x300669=_0x328072['query']()[_0x3afef7(0x316)](),_0x250a2d=_0x328072['endCollectChangeset']();_0x320db6[_0x3afef7(0x3ac)]={'view':_0x300669,'isEmpty':!0x0,'pivotTableConfig':{..._0x4f3391,'fieldsConfig':_0x328072[_0x3afef7(0x316)]()},'changesets':_0x250a2d};}break;case _0x15dd40[_0x3afef7(0x2db)]:{const _0xc0d948=_0x2d20f9[_0x3afef7(0x14d)]['addPivotTableWithConfig'];if(!_0xc0d948)return;const _0x9b430e=_0xc0d948['sourceRangeInfo'],_0x1d246d=_0xc0d948[_0x3afef7(0x359)],{collection:_0x12a432}=this[_0x3afef7(0x329)]['createCollectionWithDataRange']({'unitId':_0x9b430e[_0x3afef7(0x1bc)],'sheetName':_0x9b430e[_0x3afef7(0x34f)],'subUnitId':_0x9b430e['subUnitId'],'range':_0x9b430e['range']}),_0x303f51=new _0x3e0737[(_0x3afef7(0x277))](_0x12a432,void 0x0,_0x1d246d),_0x2b7e6c=_0x12a432[_0x3afef7(0x1b3)](),{rows:_0xdf05f,columns:_0x4c6b08,filters:_0x3d913f,values:_0x2a9524}=_0xc0d948[_0x3afef7(0x2e4)];_0x303f51['startCollectChangeset']();for(const {field:_0x23ffec,selectedItems:_0x5a8319}of _0xdf05f||[]){const _0x27a6dc=_0x2b7e6c[_0x23ffec];if(_0x27a6dc){const _0xaeaae1=_0x303f51[_0x3afef7(0x2ac)](_0x27a6dc,_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x2ef)]);_0x5a8319&&_0xaeaae1&&_0x303f51['setLabelFilterInfo'](_0xaeaae1[_0x3afef7(0x149)](),{'type':_0x3e0737[_0x3afef7(0x17b)][_0x3afef7(0xeb)],'list':_0x5a8319,'isAll':!0x1});}}for(const {field:_0x4d44c2,selectedItems:_0x203164}of _0x4c6b08||[]){const _0x893dd1=_0x2b7e6c[_0x4d44c2];if(_0x893dd1){const _0x5e1f85=_0x303f51['addFieldWithSourceId'](_0x893dd1,_0x3e0737[_0x3afef7(0x372)]['Column']);_0x203164&&_0x5e1f85&&_0x303f51[_0x3afef7(0x317)](_0x5e1f85[_0x3afef7(0x149)](),{'type':_0x3e0737['PivotFilterTypeEnum'][_0x3afef7(0xeb)],'list':_0x203164,'isAll':!0x1});}}for(const {field:_0x4d8d70,selectedItems:_0x424b5f}of _0x3d913f||[]){const _0x3a9c0b=_0x2b7e6c[_0x4d8d70];if(_0x3a9c0b){const _0xc8a3f5=_0x303f51[_0x3afef7(0x2ac)](_0x3a9c0b,_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x395)]);_0x424b5f&&_0xc8a3f5&&_0x303f51['setLabelFilterInfo'](_0xc8a3f5['getId'](),{'type':_0x3e0737[_0x3afef7(0x17b)][_0x3afef7(0xeb)],'list':_0x424b5f,'isAll':!0x1});}}for(const {field:_0x567300,subTotalType:_0x4a0356,formatString:_0x282384}of _0x2a9524||[]){const _0x3f32e0=_0x12a432[_0x3afef7(0x158)](_0x2b7e6c[_0x567300]);if(!_0x3f32e0)continue;const _0x58c194=_0x2b7e6c[_0x567300];if(_0x58c194){const _0x90e4bc=_0x303f51['addFieldWithSourceId'](_0x58c194,_0x3e0737['PivotTableFiledAreaEnum'][_0x3afef7(0xbb)]);if(_0x90e4bc){if(_0x4a0356!==void 0x0){_0x303f51[_0x3afef7(0x186)](_0x90e4bc[_0x3afef7(0x149)](),_0x4a0356);const _0x503606=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x9b430e[_0x3afef7(0x1bc)])[_0x3afef7(0xe7)]()||_0x3e0737[_0x3afef7(0x21c)],_0x24b5ed=_0x12a432[_0x3afef7(0x115)](_0x58c194),_0x434513=_0x503606(_0x24b5ed,_0x4a0356);_0x303f51[_0x3afef7(0x32b)](_0x90e4bc[_0x3afef7(0x149)](),_0x434513);}else{if(_0x3f32e0){const _0x32f807=_0x3f32e0==null?void 0x0:_0x3f32e0[_0x3afef7(0x1a0)]();_0x303f51[_0x3afef7(0x186)](_0x90e4bc[_0x3afef7(0x149)](),_0x32f807===_0x3e0737[_0x3afef7(0x1d9)][_0x3afef7(0xa5)]?_0x3e0737[_0x3afef7(0x2c6)][_0x3afef7(0x35a)]:_0x3e0737[_0x3afef7(0x2c6)][_0x3afef7(0x208)]);}}_0x282384&&_0x303f51[_0x3afef7(0x1e2)](_0x90e4bc[_0x3afef7(0x149)](),_0x282384);}}}const _0x5895c6=_0x303f51['query'](),_0x1c1756=_0x303f51[_0x3afef7(0x316)](),_0x2facd2=_0x303f51['isEmpty'](),_0xe7df8d=_0x303f51['endCollectChangeset'](),_0x5c065e=_0x12a432[_0x3afef7(0x316)]();_0x320db6[_0x3afef7(0x26b)]={'view':_0x5895c6,'fieldsConfig':_0x1c1756,'collectionConfig':_0x5c065e,'isEmpty':_0x2facd2,'changesets':_0xe7df8d};}break;case _0x15dd40[_0x3afef7(0x10e)]:{const _0x406f77=_0x458a75(this['_injector'],_0x2d20f9);if(!_0x406f77)return;const {range:_0x7ee871,sourceSubUnitId:_0x1034d0,sourceUnitId:_0x1e6929,formatMap:_0x449a55,indexes:_0x10c6b6}=_0x406f77;_0x320db6['drillDown']={'range':_0x7ee871,'sourceSubUnitId':_0x1034d0,'sourceUnitId':_0x1e6929,'formatMap':_0x449a55,'indexes':_0x10c6b6};}break;}this[_0x3afef7(0x2e0)][_0x3afef7(0xe0)](_0x391749['id'],{'version':_0x2d20f9['version'],'result':_0x320db6},{'onlyLocal':!0x0});}));}[_0x2b16d4(0x396)](){const _0x108ed0=_0x2b16d4;this['disposeWithMe'](this[_0x108ed0(0x2e0)][_0x108ed0(0x333)](_0x1b6193=>{const _0x3d3edd=_0x108ed0;if(_0x1b6193['id']!==_0x4c3710['id'])return;const _0x211349=_0x1b6193['params'];return this['_sheetsPivotDataSourceModel'][_0x3d3edd(0x201)](_0x211349[_0x3d3edd(0xdd)]),!0x0;}));}[_0x2b16d4(0xe4)](){const _0x1aa13f=_0x2b16d4;this[_0x1aa13f(0x329)]['collectionChange$'][_0x1aa13f(0x223)](_0x30d6b8=>{const _0x2dc4ba=_0x1aa13f;switch(_0x30d6b8['type']){case _0xa08ad4[_0x2dc4ba(0x183)]:_0x30d6b8['dataRangeInfo']&&_0x30d6b8[_0x2dc4ba(0x360)]&&this[_0x2dc4ba(0x104)](_0x30d6b8[_0x2dc4ba(0x21a)],_0x30d6b8[_0x2dc4ba(0x331)],_0x30d6b8['targetCellInfo']);break;case _0xa08ad4[_0x2dc4ba(0x1c1)]:{const {unitId:_0x54aeb0,subUnitId:_0x518412,token:_0x53c1cb}=_0x30d6b8;_0x54aeb0&&_0x518412&&_0x53c1cb&&this[_0x2dc4ba(0x202)](_0x54aeb0,_0x518412,_0x53c1cb);}break;case _0xa08ad4[_0x2dc4ba(0x1e6)]:{const {token:_0x448820,oldSourceRangeInfo:_0x427e06,dataRangeInfo:_0x3f2b4a,targetCellInfo:_0x42e82f}=_0x30d6b8,{unitId:_0x399aa2,subUnitId:_0x52f6e6}=_0x427e06||{};_0x399aa2&&_0x52f6e6&&_0x448820&&this[_0x2dc4ba(0x202)](_0x399aa2,_0x52f6e6,_0x448820),_0x3f2b4a&&_0x42e82f&&this['handleSourceRangeChange'](_0x448820,_0x3f2b4a,_0x42e82f);}break;}});}[_0x2b16d4(0x31c)](){const _0x3fb509=_0x2b16d4;this[_0x3fb509(0x329)]['fieldsCollectionChange$'][_0x3fb509(0x223)](_0x5b3906=>{const _0x1d58a4=_0x3fb509;Object['keys'](_0x5b3906)[_0x1d58a4(0xff)](_0x2bdf66=>{const _0x4ff265=_0x1d58a4,_0x7f1188=this['_sheetsPivotDataSourceModel'][_0x4ff265(0x31f)](_0x2bdf66);if(_0x7f1188){const _0x37ba2e=this[_0x4ff265(0x329)][_0x4ff265(0x13c)](_0x7f1188==null?void 0x0:_0x7f1188[_0x4ff265(0x1bc)],_0x7f1188==null?void 0x0:_0x7f1188['subUnitId'],_0x2bdf66);_0x37ba2e&&(this[_0x4ff265(0x104)](_0x2bdf66,_0x37ba2e[_0x4ff265(0x2ab)],_0x37ba2e['targetCellInfo']),this['triggerDirtyFeature']([{'unitId':_0x7f1188[_0x4ff265(0x1bc)],'subUnitId':_0x7f1188['subUnitId'],'token':_0x2bdf66}]));}});});}['_subjectViewChange'](){const _0x375f30=_0x2b16d4;this[_0x375f30(0x329)][_0x375f30(0x2ec)][_0x375f30(0x223)](_0x397c25=>{const {unitId:_0x174a3a,subUnitId:_0x203893,pivotTableId:_0x2a954c}=_0x397c25;_0x174a3a&&_0x203893&&_0x2a954c&&this['triggerDirtyFeature']([{'unitId':_0x174a3a,'subUnitId':_0x203893,'token':_0x2a954c}]);});}[_0x2b16d4(0x337)](_0x43152b){const _0x336810=_0x2b16d4,_0x3bb4d={};_0x43152b[_0x336810(0xff)](_0x4af5df=>{var _0x4b1aaa,_0x4422b0;const {unitId:_0x7cc02,subUnitId:_0xb97772,token:_0x12a074}=_0x4af5df;_0x3bb4d[_0x7cc02]=(_0x4b1aaa=_0x3bb4d[_0x7cc02])!=null?_0x4b1aaa:{},_0x3bb4d[_0x7cc02][_0xb97772]=(_0x4422b0=_0x3bb4d[_0x7cc02][_0xb97772])!=null?_0x4422b0:{},_0x3bb4d[_0x7cc02][_0xb97772][_0x12a074]=!0x0;}),this[_0x336810(0x2e0)]['executeCommand'](_0x44990a['id'],_0x3bb4d);}[_0x2b16d4(0x202)](_0x1c3f1f,_0x1c72c3,_0xae24f0){const _0x4808cd=_0x2b16d4;this[_0x4808cd(0x297)][_0x4808cd(0x34a)](_0x1c3f1f,_0x1c72c3,[_0xae24f0]);}['handleSourceRangeChange'](_0x2df0b5,_0x99e72e,_0x231db8){const _0x811a22=_0x2b16d4,{unitId:_0x571750,subUnitId:_0x5009df}=_0x99e72e;this['_featureCalculationManagerService'][_0x811a22(0x105)](_0x231db8['unitId'],_0x231db8[_0x811a22(0x204)],_0x2df0b5)&&this[_0x811a22(0x202)](_0x571750,_0x5009df,_0x2df0b5);const _0x1aa399={'sheetId':_0x5009df,..._0x99e72e};this['_featureCalculationManagerService']['register'](_0x231db8[_0x811a22(0x1bc)],_0x231db8[_0x811a22(0x204)],_0x2df0b5,{'unitId':_0x231db8['unitId'],'subUnitId':_0x231db8[_0x811a22(0x204)],'dependencyRanges':[_0x1aa399],'getDirtyData':(_0x3fbac5,_0x2ab2ad)=>{const _0x546c75=_0x811a22,_0x4fbe87=this[_0x546c75(0x329)],_0x1e98c9=_0x4fbe87[_0x546c75(0x31f)](_0x2df0b5);if(!_0x1e98c9)return _0x2f18a1();const {unitId:_0x29c5f1,subUnitId:_0x573647}=_0x1e98c9,_0x4faa73=_0x5c986e(_0x3fbac5,_0x2ab2ad,_0x99e72e);if(_0x4faa73['length']>0x0){const _0x2c4b55=_0x4fbe87['getCollection'](_0x571750,_0x2df0b5),_0x3ba9ac=_0x2c4b55[_0x546c75(0x1b3)](),_0x3dc1ae=this['getMatrixFromRunTimeData'](_0x99e72e[_0x546c75(0x1bc)],_0x99e72e[_0x546c75(0x204)],_0x2ab2ad),_0x4a5209={},_0x4f1b20=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x29c5f1)[_0x546c75(0xe7)]()||_0x3e0737[_0x546c75(0x21c)],_0x5d4ee9=[];for(const _0x5d1fde of _0x4faa73){const _0x298afc=_0x5d1fde-(_0x99e72e[_0x546c75(0x345)][_0x546c75(0x254)]||0x0),_0x447cbe=_0x3ba9ac[_0x298afc];_0x5d4ee9['push'](_0x447cbe),_0x4a5209[_0x447cbe]=_0x2c4b55[_0x546c75(0x158)](_0x447cbe)[_0x546c75(0x241)](),_0x4fbe87['getDataFieldManager'](_0x571750)[_0x546c75(0x2c9)](_0x447cbe,_0x99e72e,_0x298afc,_0x3dc1ae);}_0x2c4b55[_0x546c75(0x319)](_0x5d4ee9)[_0x546c75(0xff)](_0x37c4fa=>{const _0x9bcff2=_0x546c75,[_0x275d3a,_0x42ead4]=_0x37c4fa,_0x5e5969=_0x2c4b55[_0x9bcff2(0x158)](_0x275d3a),_0x1c7afb=_0x2c4b55[_0x9bcff2(0x158)](_0x42ead4);_0x5e5969&&_0x1c7afb&&_0x5e5969[_0x9bcff2(0xd6)](_0x1c7afb);}),_0x2c4b55['updateAllDisplayName']();const _0x43b5d1=_0x4fbe87[_0x546c75(0x185)](_0x2df0b5);if(_0x43b5d1){_0x31967d(_0x43b5d1,_0x4a5209,_0x4f1b20),_0x43b5d1[_0x546c75(0x349)](!0x0);const _0x4f3620=_0x43b5d1[_0x546c75(0x341)](),_0x30a54c=_0x4fbe87[_0x546c75(0x13c)](_0x29c5f1,_0x573647,_0x2df0b5),_0x5db7f4=_0x4fbe87['getDataFieldManager'](_0x571750)['toJSON']();_0x4fbe87[_0x546c75(0xa3)](_0x29c5f1,_0x573647,_0xa5664b[_0x546c75(0x127)],_0x2df0b5,_0x4f3620,_0x30a54c,_0x5db7f4,!0x0);}}return this[_0x546c75(0xd5)](_0x29c5f1,_0x573647,_0x2df0b5);}});}['getMatrixFromRunTimeData'](_0x541304,_0x299d43,_0x40dcd3){var _0x525151,_0x494ccb;const {arrayFormulaCellData:_0x45e4ab,unitData:_0x55f6be}=_0x40dcd3,_0x20b1e0=(_0x525151=_0x45e4ab==null?void 0x0:_0x45e4ab[_0x541304])==null?void 0x0:_0x525151[_0x299d43],_0x2240fd=(_0x494ccb=_0x55f6be==null?void 0x0:_0x55f6be[_0x541304])==null?void 0x0:_0x494ccb[_0x299d43];return{'arrayFormulaCellDataMatrix':_0x20b1e0,'unitDataMatrix':_0x2240fd};}['getDirtyInfo'](_0x17b431,_0x5e66e6,_0x180ec1){const _0x360eec=_0x2b16d4,_0x137523=this[_0x360eec(0x329)][_0x360eec(0xfa)](_0x17b431,_0x5e66e6,_0x180ec1),_0x175812=[],_0x2d2e95=new _0x282877[(_0x360eec(0x184))]();if(_0x137523){const {rangeCache:_0x2a0908,matrix:_0x3c57e4,oldRangeCache:_0x53d4bf,oldMatrix:_0x2de6f5}=_0x137523,_0x2ae1b0=_0x56a3ee(_0x53d4bf),_0x5edb2d=_0x56a3ee(_0x2a0908);_0x175812['push'](..._0x5edb2d,..._0x2ae1b0),_0x2de6f5&&_0x53d4bf&&_0x2ae1b0[_0x360eec(0xff)](_0x1ae282=>{const _0x277857=_0x360eec;for(let _0x328f82=_0x1ae282[_0x277857(0x19f)];_0x328f82<=_0x1ae282[_0x277857(0x39e)];_0x328f82++)for(let _0x227186=_0x1ae282[_0x277857(0x254)];_0x227186<=_0x1ae282['endColumn'];_0x227186++)_0x2d2e95[_0x277857(0x243)](_0x328f82,_0x227186);}),_0x3c57e4&&_0x5edb2d&&_0x5edb2d[_0x360eec(0xff)](_0x1b74b2=>{const _0xd69102=_0x360eec;for(let _0x24a7c2=_0x1b74b2[_0xd69102(0x19f)];_0x24a7c2<=_0x1b74b2[_0xd69102(0x39e)];_0x24a7c2++)for(let _0x11a7ef=_0x1b74b2['startColumn'];_0x11a7ef<=_0x1b74b2[_0xd69102(0x244)];_0x11a7ef++)_0x2d2e95[_0xd69102(0x39a)](_0x24a7c2,_0x11a7ef,_0x3c57e4[_0xd69102(0x1e3)](_0x24a7c2,_0x11a7ef));});}const _0x56df0={};return _0x56df0[_0x17b431]={[_0x5e66e6]:_0x11ba6c(_0x175812)},{'runtimeCellData':{[_0x17b431]:{[_0x5e66e6]:_0x2d2e95}},'dirtyRanges':_0x56df0};}[_0x2b16d4(0x2be)](){}};_0x566683=_0x5f0ff4([_0x597a43(0x0,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0x1b4)])),_0x597a43(0x1,_0x282877[_0x2b16d4(0x120)](_0x3b2497[_0x2b16d4(0x33d)])),_0x597a43(0x2,_0x282877['Inject'](_0x282877[_0x2b16d4(0x240)])),_0x597a43(0x3,_0x282877[_0x2b16d4(0x120)](_0x3b2497['GlobalComputingStatusService'])),_0x597a43(0x4,_0x282877['Inject'](_0x282877['Injector']))],_0x566683);var _0x4a95e8=Object[_0x2b16d4(0x34b)],_0x6a210e=(_0x3902d3,_0x23e755,_0x26708f,_0x1e1951)=>{const _0x4fb061=_0x2b16d4;for(var _0x4b614b=_0x1e1951>0x1?void 0x0:_0x1e1951?_0x4a95e8(_0x23e755,_0x26708f):_0x23e755,_0x3183f1=_0x3902d3[_0x4fb061(0x27b)]-0x1,_0xe6ec80;_0x3183f1>=0x0;_0x3183f1--)(_0xe6ec80=_0x3902d3[_0x3183f1])&&(_0x4b614b=_0xe6ec80(_0x4b614b)||_0x4b614b);return _0x4b614b;},_0x470f2d=(_0xcf6fc3,_0x29cbef)=>(_0x43518f,_0x41fe22)=>_0x29cbef(_0x43518f,_0x41fe22,_0xcf6fc3);let _0x50b047=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x55f160,_0x5dc2d8,_0xc8375a,_0x844ebc){const _0x2376fd=_0x2b16d4;super(),_0x2e1abd(this,'disposableCollection',new _0x282877[(_0x2376fd(0x147))]()),(this[_0x2376fd(0x12c)]=_0x55f160,this[_0x2376fd(0x31a)]=_0x5dc2d8,this[_0x2376fd(0x392)]=_0xc8375a,this[_0x2376fd(0xc5)]=_0x844ebc,this['_initClearSelectionCommandInterceptor']());}[_0x2b16d4(0xd7)](){const _0x34d65a=_0x2b16d4;this[_0x34d65a(0x324)](this['_sheetInterceptorService'][_0x34d65a(0x207)]({'getMutations':_0x4e0521=>{const _0x119baf=_0x34d65a;if(_0x4e0521['id']===_0x5698b3['ClearSelectionContentCommand']['id']||_0x4e0521['id']===_0x5698b3[_0x119baf(0x2a5)]['id']){const _0x362f5b=[],_0x4da7cf=[],_0x338b3e=this['_sheetsSelectionsService']['getCurrentSelections']()['map'](_0x4ef2d6=>_0x4ef2d6[_0x119baf(0x345)]),_0x2507ff=_0x5698b3['getSheetCommandTarget'](this[_0x119baf(0x12c)]);if(!_0x2507ff)return{'redos':[],'undos':[]};const {unitId:_0x1a3805,subUnitId:_0x242cd5}=_0x2507ff,_0x236c15={},_0x14eaf2=this[_0x119baf(0xc5)][_0x119baf(0x231)](_0x1a3805,_0x242cd5);if(_0x14eaf2!=null&&_0x14eaf2[_0x119baf(0x1a5)])for(const [_0x3cb03f,_0x2ede49]of _0x14eaf2){const {unitId:_0xedd890,subUnitId:_0x1c8a51,row:_0x4b2455,col:_0x24b931}=_0x2ede49[_0x119baf(0x360)];_0xedd890===_0x2507ff['unitId']&&_0x1c8a51===_0x2507ff[_0x119baf(0x204)]&&(_0x236c15[_0x4b2455+'-'+_0x24b931]=_0x3cb03f);}return _0x338b3e&&_0x2507ff&&_0x338b3e[_0x119baf(0xff)](_0x11c119=>{_0x282877['Range']['foreach'](_0x11c119,(_0x23203c,_0x928744)=>{const _0x40e57d=_0x4298,_0x43a895=_0x23203c+'-'+_0x928744;if(_0x236c15[_0x43a895]){const _0xd6c69c=_0x236c15[_0x43a895];_0x362f5b[_0x40e57d(0x338)]({'id':_0x3307ac['id'],'params':{'unitId':_0x1a3805,'subUnitId':_0x242cd5,'pivotTableId':_0xd6c69c}});const _0x58aa02=this[_0x40e57d(0xc5)]['getCollection'](_0x1a3805,_0xd6c69c),_0x423d0e=this['_sheetsPivotTableConfigModel'][_0x40e57d(0x13c)](_0x1a3805,_0x242cd5,_0xd6c69c);_0x4da7cf[_0x40e57d(0x338)]({'id':_0x1e563e['id'],'params':{'unitId':_0x1a3805,'subUnitId':_0x242cd5,'pivotTableId':_0xd6c69c,'pivotTableConfig':_0x423d0e,'collectionConfig':_0x58aa02}});}});}),{'redos':_0x362f5b,'undos':_0x4da7cf};}return{'redos':[],'undos':[]};}}));}};_0x50b047=_0x6a210e([_0x470f2d(0x0,_0x282877[_0x2b16d4(0x165)]),_0x470f2d(0x1,_0x282877[_0x2b16d4(0x120)](_0x5698b3[_0x2b16d4(0x257)])),_0x470f2d(0x2,_0x282877[_0x2b16d4(0x120)](_0x5698b3['SheetsSelectionsService'])),_0x470f2d(0x3,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0x15d)]))],_0x50b047);var _0x4f5645=Object[_0x2b16d4(0x34b)],_0x3f157c=(_0x376dd5,_0x4e745e,_0x1e7392,_0x5b08d3)=>{for(var _0x1a3ba1=_0x5b08d3>0x1?void 0x0:_0x5b08d3?_0x4f5645(_0x4e745e,_0x1e7392):_0x4e745e,_0x4c61ce=_0x376dd5['length']-0x1,_0x3048f9;_0x4c61ce>=0x0;_0x4c61ce--)(_0x3048f9=_0x376dd5[_0x4c61ce])&&(_0x1a3ba1=_0x3048f9(_0x1a3ba1)||_0x1a3ba1);return _0x1a3ba1;},_0x245003=(_0x45c6bc,_0x26ebf9)=>(_0x394768,_0x2b592c)=>_0x26ebf9(_0x394768,_0x2b592c,_0x45c6bc);let _0x489cf9=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x146591,_0x57acd4,_0x185a57,_0x150c15,_0x25aee7){const _0x35e80a=_0x2b16d4;super(),this[_0x35e80a(0x31a)]=_0x146591,this[_0x35e80a(0x1fe)]=_0x57acd4,this[_0x35e80a(0x12c)]=_0x185a57,this[_0x35e80a(0xc5)]=_0x150c15,this['_sheetsPivotTableService']=_0x25aee7,this[_0x35e80a(0x18a)]();}[_0x2b16d4(0x130)](_0x29ee3f,_0x11b6a1,_0xda03b4){const _0x3a7a20=_0x2b16d4,{pageView:_0x116c1d,cornerView:_0x8efab9,rowView:_0x53f8ab,colView:_0x345202,dataView:_0x563735}=_0x11b6a1,_0x1aa9fc=_0x29ee3f;let _0x33995b;if(_0xda03b4)_0x33995b=[..._0x4bbd29(_0x1aa9fc)];else{const _0x38fe3f=_0x37a9a3(_0x1aa9fc,_0x116c1d,!0x0),_0x2efaaf=_0x116c1d[_0x3a7a20(0xcf)]>=0x0?_0x116c1d[_0x3a7a20(0xcf)]+0x1:0x0,_0x6b615b=_0x8efab9[_0x3a7a20(0x2cc)],_0x3d334e=_0x8efab9[_0x3a7a20(0x2eb)],_0x417a3f=_0x38fe3f[_0x3a7a20(0x27b)]>0x0?_0x44f3d5:0x0,_0x3a0c9f=_0x37a9a3({'row':_0x1aa9fc[_0x3a7a20(0x303)]+_0x2efaaf+_0x417a3f,'col':_0x1aa9fc[_0x3a7a20(0x1da)]},_0x8efab9,!0x1,!0x1),_0x491611=_0x37a9a3({'row':_0x1aa9fc[_0x3a7a20(0x303)]+_0x2efaaf+_0x417a3f+_0x6b615b,'col':_0x1aa9fc[_0x3a7a20(0x1da)]},_0x53f8ab,!0x1,!0x0),_0x12c90e=_0x37a9a3({'row':_0x1aa9fc[_0x3a7a20(0x303)]+_0x2efaaf+_0x417a3f,'col':_0x1aa9fc[_0x3a7a20(0x1da)]+_0x3d334e},_0x345202,!0x1,!0x0),_0x1cc5a5=_0x37a9a3({'row':_0x1aa9fc['row']+_0x2efaaf+_0x417a3f+_0x6b615b,'col':_0x1aa9fc[_0x3a7a20(0x1da)]+_0x3d334e},_0x563735,!0x1,!0x0);_0x33995b=[..._0x38fe3f,..._0x3a0c9f,..._0x491611,..._0x12c90e,..._0x1cc5a5];}return _0x33995b;}[_0x2b16d4(0x18a)](){const _0x17400e=_0x2b16d4;this['disposeWithMe'](this[_0x17400e(0x1f7)]['interceptor'][_0x17400e(0x1af)](this[_0x17400e(0x1f7)][_0x17400e(0x388)][_0x17400e(0x299)]()[_0x17400e(0x1ae)],{'handler':(_0x10edcc,_0x35b0ea)=>{const _0x2120d1=_0x17400e,{cellInfo:_0x41c103,view:_0x45a413,isEmpty:_0x56e66a}=_0x35b0ea,_0x6362ea=_0x41c103,{unitId:_0x3f00ab,subUnitId:_0x1b3639}=_0x6362ea,_0x455045=this['_getPivotAppliedRanges'](_0x41c103,_0x45a413,_0x56e66a),_0x3905f9=this[_0x2120d1(0x31a)]['generateMutationsByRanges']({'unitId':_0x3f00ab,'subUnitId':_0x1b3639,'ranges':_0x455045}),_0x455e20=_0x1fac4a(this[_0x2120d1(0x1fe)],_0x3f00ab,_0x1b3639,_0x455045);_0x455e20[_0x2120d1(0x1b2)]&&(_0x3905f9[_0x2120d1(0x2a3)][_0x2120d1(0x338)](_0x455e20[_0x2120d1(0x3a8)]),_0x3905f9['undos']['push'](_0x455e20['setRangeValueUndoMutation']));const _0x17f9ca=this[_0x2120d1(0x342)](_0x45a413,_0x41c103);return _0x3905f9[_0x2120d1(0x2a3)][_0x2120d1(0x338)](..._0x17f9ca[_0x2120d1(0x2a3)]),_0x3905f9[_0x2120d1(0x1cd)][_0x2120d1(0x338)](..._0x17f9ca['undos']),{'redos':_0x3905f9[_0x2120d1(0x2a3)],'undos':_0x3905f9[_0x2120d1(0x1cd)]};}}));}[_0x2b16d4(0x342)](_0x5c4f6d,_0x6e9eef){const _0x159c6a=_0x2b16d4,{col:_0x2082a8,unitId:_0x2a451e,subUnitId:_0x9a7c92}=_0x6e9eef,_0x286c26=[],_0xb737f0=[],_0x117376=_0x5698b3[_0x159c6a(0x2e1)](this[_0x159c6a(0x12c)],{'unitId':_0x2a451e,'subUnitId':_0x9a7c92});if(!_0x6e9eef||!_0x5c4f6d||!_0x117376)return{'undos':_0xb737f0,'redos':_0x286c26};const _0x6593a5=this['_sheetsPivotTableConfigModel'][_0x159c6a(0x123)](),{colView:_0x23eea3,dataView:_0x39471e,cornerView:_0x28baf8,rowView:_0x271e24,formatMap:_0x487bf0}=_0x5c4f6d,_0x2da436=_0x52c202(_0x23eea3,_0x6593a5,!0x0,_0x487bf0),_0x5d3f86=_0x52c202(_0x271e24,_0x6593a5,!0x1,_0x487bf0),_0x16f7d9=_0x2e7059(_0x39471e),_0x2913bd=_0x41cf33(_0x28baf8),{worksheet:_0x2b208a}=_0x117376;if(typeof window<'u'&&window[_0x159c6a(0x272)]){const _0x30bcdc=_0x1c6860[_0x159c6a(0x16e)]({..._0x433375[_0x159c6a(0xe8)]}),_0x1d0b15=_0x1c6860['FontCache']['getTextSize'](_0x2da436,_0x30bcdc)[_0x159c6a(0x2e2)]+0x10,_0xbbd562=_0x1c6860['FontCache'][_0x159c6a(0x1eb)](_0x16f7d9,_0x30bcdc)[_0x159c6a(0x2e2)],_0x182ff7=Math['floor'](Math['max'](_0x1d0b15,_0xbbd562))+0x10,_0x326d26=Math[_0x159c6a(0xce)](_0x1c6860[_0x159c6a(0x26d)][_0x159c6a(0x1eb)](_0x5d3f86,_0x30bcdc)[_0x159c6a(0x2e2)]),_0x2668cc=Math[_0x159c6a(0xce)](_0x1c6860[_0x159c6a(0x26d)][_0x159c6a(0x1eb)](_0x2913bd,_0x30bcdc)[_0x159c6a(0x2e2)]),_0x5188d8=Math[_0x159c6a(0x24d)](_0x326d26,_0x2668cc,0x28)+0xc,_0x5bf3d7=_0x23eea3[_0x159c6a(0x2eb)]+_0x28baf8[_0x159c6a(0x2eb)],_0x46564d={},_0x470584={};for(let _0x34477a=_0x2082a8;_0x34477a<_0x2082a8+_0x5bf3d7;_0x34477a++){const _0x2c5f5=_0x2b208a[_0x159c6a(0x2b6)](_0x34477a);_0x46564d[_0x34477a]=_0x2c5f5,_0x34477a-_0x2082a8<_0x28baf8[_0x159c6a(0x2eb)]?_0x470584[_0x34477a-_0x2082a8]=_0x5188d8:_0x470584[_0x34477a-_0x2082a8]=_0x182ff7;}_0x286c26[_0x159c6a(0x338)]({'id':_0x5698b3[_0x159c6a(0x31b)]['id'],'params':{'subUnitId':_0x9a7c92,'unitId':_0x2a451e,'ranges':[{'startColumn':_0x2082a8,'endColumn':_0x2082a8+_0x5bf3d7-0x1,'startRow':0x0,'endRow':_0x2b208a[_0x159c6a(0x2d2)]()-0x1}],'colWidth':_0x470584}}),_0xb737f0[_0x159c6a(0x338)]({'id':_0x5698b3[_0x159c6a(0x31b)]['id'],'params':{'subUnitId':_0x9a7c92,'unitId':_0x2a451e,'ranges':[{'startColumn':_0x2082a8,'endColumn':_0x2082a8+_0x5bf3d7-0x1,'startRow':0x0,'endRow':_0x2b208a[_0x159c6a(0x2d2)]()-0x1}],'colWidth':_0x46564d}});}return{'undos':_0xb737f0,'redos':_0x286c26};}};_0x489cf9=_0x3f157c([_0x245003(0x0,_0x282877['Inject'](_0x5698b3[_0x2b16d4(0x257)])),_0x245003(0x1,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x33a)])),_0x245003(0x2,_0x282877['Inject'](_0x282877[_0x2b16d4(0x165)])),_0x245003(0x3,_0x282877[_0x2b16d4(0x120)](_0x24d96c['SheetsPivotTableConfigModel'])),_0x245003(0x4,_0x282877['Inject'](_0x24d96c[_0x2b16d4(0x199)]))],_0x489cf9);var _0x54b89f=Object['getOwnPropertyDescriptor'],_0x4195d6=(_0x1c13d2,_0x444e9d,_0x1c5625,_0x280624)=>{const _0x31dbee=_0x2b16d4;for(var _0x5cb2b3=_0x280624>0x1?void 0x0:_0x280624?_0x54b89f(_0x444e9d,_0x1c5625):_0x444e9d,_0x490c58=_0x1c13d2[_0x31dbee(0x27b)]-0x1,_0x4038cd;_0x490c58>=0x0;_0x490c58--)(_0x4038cd=_0x1c13d2[_0x490c58])&&(_0x5cb2b3=_0x4038cd(_0x5cb2b3)||_0x5cb2b3);return _0x5cb2b3;},_0x3ec82d=(_0x3c2ed4,_0x1ee1af)=>(_0x2e63f1,_0x3cf845)=>_0x1ee1af(_0x2e63f1,_0x3cf845,_0x3c2ed4);let _0x1c208c=class extends _0x282877['Disposable']{constructor(_0x197193,_0x36fc64,_0x2a3a6c,_0x42cb9e,_0xf03c95,_0x15a416,_0x508034){const _0x1d9150=_0x2b16d4;super(),_0x2e1abd(this,_0x1d9150(0x22b),new _0x282877['DisposableCollection']()),(this['_injector']=_0x197193,this[_0x1d9150(0x2c7)]=_0x36fc64,this['_commandService']=_0x2a3a6c,this[_0x1d9150(0x12c)]=_0x42cb9e,this[_0x1d9150(0xc5)]=_0xf03c95,this['_sheetsPivotTableAdaptorModel']=_0x15a416,this[_0x1d9150(0x31a)]=_0x508034,this[_0x1d9150(0x354)]());}[_0x2b16d4(0x354)](){const _0x3c62b5=_0x2b16d4,_0x4026d5=(_0xefd9d6,_0x237f43)=>{const _0x40d9be=_0x4298,_0xcc49b3=this['_univerInstanceService'][_0x40d9be(0xd3)](_0x282877[_0x40d9be(0x20b)][_0x40d9be(0x328)]);if(!_0xcc49b3||!(_0xcc49b3==null?void 0x0:_0xcc49b3[_0x40d9be(0x374)](_0x237f43)))return;this[_0x40d9be(0x22b)][_0x40d9be(0x2be)]();const _0x21a0ea=_0x50192d=>this['_refRangeHandle'](_0x50192d,_0xefd9d6,_0x237f43),_0x1e22cc=this['_sheetsPivotTableConfigModel'][_0x40d9be(0x231)](_0xefd9d6,_0x237f43);if(!(_0x1e22cc!=null&&_0x1e22cc['size']))return;Array[_0x40d9be(0xa4)](_0x1e22cc[_0x40d9be(0x369)]())[_0x40d9be(0x279)](_0x4ede39=>{const _0x4bd8a7=_0x40d9be,{row:_0x1bd7c4,col:_0x1d237a}=_0x4ede39[_0x4bd8a7(0x360)];return _0x282877[_0x4bd8a7(0x29f)](_0x1bd7c4,_0x1d237a);})[_0x40d9be(0xff)](_0x10464c=>{const _0x1c4d94=_0x40d9be;this[_0x1c4d94(0x22b)][_0x1c4d94(0x183)](this[_0x1c4d94(0x2c7)]['registerRefRange'](_0x10464c,_0x21a0ea,_0xefd9d6,_0x237f43));});},_0xbd73bf=()=>{const _0x3543f1=_0x4298,_0x3dbff1=this['_univerInstanceService'][_0x3543f1(0xd3)](_0x282877[_0x3543f1(0x20b)][_0x3543f1(0x328)]);if(_0x3dbff1){const _0x515983=_0x3dbff1[_0x3543f1(0x2f1)]();if(!_0x515983)return;_0x4026d5(_0x3dbff1[_0x3543f1(0x255)](),_0x515983['getSheetId']());}};this[_0x3c62b5(0x324)](this[_0x3c62b5(0x2e0)][_0x3c62b5(0x333)](_0x271d52=>{const _0x41d9dd=_0x3c62b5;if(_0x271d52['id']===_0x5698b3['SetWorksheetActiveOperation']['id']){const _0x14417e=_0x271d52[_0x41d9dd(0x14d)],_0x1c314f=_0x14417e[_0x41d9dd(0x204)],_0x44bfd8=_0x14417e[_0x41d9dd(0x1bc)];if(!_0x1c314f||!_0x44bfd8)return;_0x4026d5(_0x44bfd8,_0x1c314f);}})),this[_0x3c62b5(0x324)](this['_sheetsPivotTableConfigModel'][_0x3c62b5(0x294)]['subscribe'](_0x174d71=>{_0x174d71&&_0xbd73bf();})),this[_0x3c62b5(0x324)](this[_0x3c62b5(0xc5)][_0x3c62b5(0x364)][_0x3c62b5(0x223)](_0x4bcfdb=>{const _0x461b95=_0x3c62b5,_0x3f90d6=_0x5698b3['getSheetCommandTarget'](this[_0x461b95(0x12c)]);if(!_0x3f90d6)return;const {unitId:_0x408ed0,subUnitId:_0x37c8d3}=_0x3f90d6,{unitId:_0x127f56,subUnitId:_0x363f09}=_0x4bcfdb;_0x408ed0!==_0x127f56||_0x37c8d3!==_0x363f09||_0x4026d5(_0x408ed0,_0x37c8d3);})),_0xbd73bf();}[_0x2b16d4(0xc4)](_0x39cbc5,_0x2ae8bf,_0x13f2b6){const _0x51900d=_0x2b16d4;switch(_0x39cbc5['id']){case _0x5698b3[_0x51900d(0xfe)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x39cbc5[_0x51900d(0x14d)],_0x2ae8bf,_0x13f2b6);}return{'redos':[],'undos':[]};}['getRefRangeMutationsByMoveRange'](_0x3e5474,_0xd7a152,_0x5f48a1){const _0x52a7df=_0x2b16d4,{fromRange:_0x1c58ff,toRange:_0x2f7e69}=_0x3e5474,_0x6bf60a=[],_0x1763aa=[],_0x4658d8=_0x5698b3['getSheetCommandTarget'](this['_univerInstanceService']);if(!_0x4658d8)return{'undos':_0x1763aa,'redos':_0x6bf60a};if(_0xd7a152!==_0x4658d8[_0x52a7df(0x1bc)]||_0x5f48a1!==_0x4658d8['subUnitId'])return{'undos':_0x1763aa,'redos':_0x6bf60a};const _0x4025ec=this[_0x52a7df(0xc5)][_0x52a7df(0x231)](_0xd7a152,_0x5f48a1);if(_0x4025ec!=null&&_0x4025ec[_0x52a7df(0x1a5)])for(const [_0x5f1ca7,_0x152a83]of _0x4025ec){const {unitId:_0x5ed74f,subUnitId:_0x25950e,row:_0x56518c,col:_0x2d650b}=_0x152a83[_0x52a7df(0x360)];if(_0x5ed74f===_0x4658d8[_0x52a7df(0x1bc)]&&_0x25950e===_0x4658d8[_0x52a7df(0x204)]){const _0x5effb9=_0x282877[_0x52a7df(0x29f)](_0x56518c,_0x2d650b);if(_0x282877['Rectangle'][_0x52a7df(0x2f5)](_0x5effb9,_0x1c58ff)){const _0x19a3c0=_0x56518c-_0x1c58ff[_0x52a7df(0x19f)],_0x1bd9e0=_0x2d650b-_0x1c58ff[_0x52a7df(0x254)],_0x14b732={'row':_0x2f7e69['startRow']+_0x19a3c0,'col':_0x2f7e69[_0x52a7df(0x254)]+_0x1bd9e0};_0x6bf60a[_0x52a7df(0x338)]({'id':_0x353964['id'],'params':{'unitId':_0x5ed74f,'subUnitId':_0x25950e,'pivotTableId':_0x5f1ca7,'targetCellPosition':_0x14b732}}),_0x1763aa[_0x52a7df(0x338)]({'id':_0x353964['id'],'params':{'unitId':_0x5ed74f,'subUnitId':_0x25950e,'pivotTableId':_0x5f1ca7,'targetCellPosition':{'row':_0x56518c,'col':_0x2d650b}}});const _0x19e368=_0x14b732[_0x52a7df(0x303)]-_0x56518c,_0x21e5a2=_0x14b732['col']-_0x2d650b,_0x4b3b6e=[],_0x345cf4=this[_0x52a7df(0x14f)][_0x52a7df(0x34c)](_0x5ed74f,_0x25950e,_0x5f1ca7),_0x2d76b5=_0x345cf4==null?void 0x0:_0x345cf4[_0x52a7df(0x2b4)];if(_0x2d76b5){Object['keys'](_0x2d76b5)['forEach'](_0x2f84e3=>{_0x2d76b5[_0x2f84e3]['forEach'](_0x4c79c4=>{const _0x222f15=_0x4298,_0x3f9b94={..._0x4c79c4};_0x3f9b94[_0x222f15(0x19f)]=_0x4c79c4[_0x222f15(0x19f)]+_0x19e368,_0x3f9b94['endRow']=_0x4c79c4[_0x222f15(0x39e)]+_0x19e368,_0x3f9b94[_0x222f15(0x254)]=_0x4c79c4[_0x222f15(0x254)]+_0x21e5a2,_0x3f9b94[_0x222f15(0x244)]=_0x4c79c4[_0x222f15(0x244)]+_0x21e5a2,_0x4b3b6e['push'](_0x3f9b94);});});const _0x3fae0a=this[_0x52a7df(0x31a)]['generateMutationsByRanges']({'unitId':_0x5ed74f,'subUnitId':_0x25950e,'ranges':_0x4b3b6e});_0x6bf60a[_0x52a7df(0x338)](..._0x3fae0a[_0x52a7df(0x2a3)]),_0x1763aa['push'](..._0x3fae0a['undos']);const _0x56b20b=_0x1fac4a(this['_injector'],_0x5ed74f,_0x25950e,_0x4b3b6e);_0x56b20b[_0x52a7df(0x1b2)]&&(_0x6bf60a[_0x52a7df(0x338)](_0x56b20b[_0x52a7df(0x3a8)]),_0x1763aa[_0x52a7df(0x338)](_0x56b20b[_0x52a7df(0x296)]));}}}}return{'redos':_0x6bf60a,'undos':_0x1763aa};}};_0x1c208c=_0x4195d6([_0x3ec82d(0x0,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x33a)])),_0x3ec82d(0x1,_0x282877[_0x2b16d4(0x120)](_0x5698b3[_0x2b16d4(0x238)])),_0x3ec82d(0x2,_0x282877[_0x2b16d4(0x240)]),_0x3ec82d(0x3,_0x282877[_0x2b16d4(0x165)]),_0x3ec82d(0x4,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0x15d)])),_0x3ec82d(0x5,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0x389)])),_0x3ec82d(0x6,_0x282877[_0x2b16d4(0x120)](_0x5698b3[_0x2b16d4(0x257)]))],_0x1c208c);var _0xb0f59f=Object[_0x2b16d4(0x34b)],_0x98dd34=(_0x2da8af,_0x29e9e8,_0x1b8237,_0x353c5d)=>{const _0xc45480=_0x2b16d4;for(var _0x5ef1f2=_0x353c5d>0x1?void 0x0:_0x353c5d?_0xb0f59f(_0x29e9e8,_0x1b8237):_0x29e9e8,_0x3f030b=_0x2da8af[_0xc45480(0x27b)]-0x1,_0x2e67e4;_0x3f030b>=0x0;_0x3f030b--)(_0x2e67e4=_0x2da8af[_0x3f030b])&&(_0x5ef1f2=_0x2e67e4(_0x5ef1f2)||_0x5ef1f2);return _0x5ef1f2;},_0x571328=(_0x21c819,_0x3ab639)=>(_0x32d697,_0x4ada0f)=>_0x3ab639(_0x32d697,_0x4ada0f,_0x21c819);let _0x57572c=class extends _0x282877['Disposable']{constructor(_0x11974e,_0x2c1caa){const _0x4b0327=_0x2b16d4;super(),this[_0x4b0327(0x31a)]=_0x11974e,this[_0x4b0327(0xc5)]=_0x2c1caa,this['_initRemoveSheetCommandInterceptor']();}['_initRemoveSheetCommandInterceptor'](){const _0x37871e=_0x2b16d4;this['disposeWithMe'](this[_0x37871e(0x31a)][_0x37871e(0x207)]({'getMutations':_0x51167c=>{const _0x11afbd=_0x37871e;if(_0x51167c['id']===_0x5698b3[_0x11afbd(0x28b)]['id']){const _0x3ac830=[],_0x54a69b=[],_0x3b4e36=_0x51167c['params'],{unitId:_0x1978c6,subUnitId:_0x3988cc}=_0x3b4e36;if(!_0x1978c6||!_0x3988cc)return{'undos':_0x54a69b,'redos':_0x3ac830};const _0x302221=this[_0x11afbd(0xc5)]['getSubUnitPivotConfigs'](_0x1978c6,_0x3988cc);if(_0x302221!=null&&_0x302221['size'])for(const [_0x279b1b,_0x42ec3a]of _0x302221){_0x3ac830[_0x11afbd(0x338)]({'id':_0x3307ac['id'],'params':{'unitId':_0x1978c6,'subUnitId':_0x3988cc,'pivotTableId':_0x279b1b}});const _0x4f9c66={...this['_sheetsPivotTableConfigModel'][_0x11afbd(0xd9)](_0x1978c6,_0x279b1b)};_0x54a69b[_0x11afbd(0x338)]({'id':_0x1e563e['id'],'params':{'unitId':_0x1978c6,'subUnitId':_0x3988cc,'pivotTableId':_0x279b1b,'pivotTableConfig':_0x42ec3a,'collectionConfig':_0x4f9c66}});}return{'redos':_0x3ac830,'undos':_0x54a69b};}return{'redos':[],'undos':[]};}}));}};_0x57572c=_0x98dd34([_0x571328(0x0,_0x282877[_0x2b16d4(0x120)](_0x5698b3[_0x2b16d4(0x257)])),_0x571328(0x1,_0x282877[_0x2b16d4(0x120)](_0x24d96c['SheetsPivotTableConfigModel']))],_0x57572c);var _0x5508e4=Object[_0x2b16d4(0x34b)],_0x41d43d=(_0x12b41b,_0x48612f,_0x408ad5,_0x1b25d7)=>{for(var _0x3f78f4=_0x1b25d7>0x1?void 0x0:_0x1b25d7?_0x5508e4(_0x48612f,_0x408ad5):_0x48612f,_0x261b14=_0x12b41b['length']-0x1,_0xcae3a9;_0x261b14>=0x0;_0x261b14--)(_0xcae3a9=_0x12b41b[_0x261b14])&&(_0x3f78f4=_0xcae3a9(_0x3f78f4)||_0x3f78f4);return _0x3f78f4;},_0x346db7=(_0x5701a3,_0x5f179e)=>(_0x138ede,_0x376c7d)=>_0x5f179e(_0x138ede,_0x376c7d,_0x5701a3);let _0x2563d5=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x9f89b7,_0x4e5879,_0x5e37ef,_0x56e50c,_0x55720e,_0x51ede9){const _0x2fe1e0=_0x2b16d4;super(),this[_0x2fe1e0(0x2e0)]=_0x9f89b7,this[_0x2fe1e0(0x10f)]=_0x4e5879,this[_0x2fe1e0(0x14f)]=_0x5e37ef,this[_0x2fe1e0(0xc5)]=_0x56e50c,this['_univerInstanceService']=_0x55720e,this[_0x2fe1e0(0x225)]=_0x51ede9,this[_0x2fe1e0(0x368)](),this[_0x2fe1e0(0x37a)]();}[_0x2b16d4(0x368)](){const _0xc2f9ad=_0x2b16d4;this['disposeWithMe'](this[_0xc2f9ad(0x2e0)][_0xc2f9ad(0x333)](_0x2f3d4b=>{const _0x5c4c00=_0xc2f9ad;if(_0x2f3d4b['id']!==_0x391749['id'])return;const _0x3cbb3e=_0x2f3d4b['params'];this[_0x5c4c00(0x10f)]['handleAsyncResponse'](_0x3cbb3e);})),this['disposeWithMe'](this[_0xc2f9ad(0x2e0)]['onCommandExecuted'](_0x2769fc=>{const _0x5bb1ee=_0xc2f9ad;if(_0x2769fc['id']===_0x5554ef['id']){const _0x4159b0=_0x2769fc[_0x5bb1ee(0x14d)];if(_0x4159b0){const {unitId:_0x1854f0,subUnitId:_0x2dba32,oldSubUnitId:_0xa39d80,pivotTableId:_0x5e889c,pivotTableConfig:_0x5c3e00,collectionConfig:_0x5a0bcf}=_0x4159b0;this[_0x5bb1ee(0xc5)][_0x5bb1ee(0x21d)](_0x1854f0,_0xa39d80,_0x4159b0[_0x5bb1ee(0x359)],null),this['_sheetsPivotTableConfigModel']['updateConfigCache'](_0x1854f0,_0x2dba32,_0x5e889c,_0x5c3e00),this['_sheetsPivotTableConfigModel'][_0x5bb1ee(0x1a3)](_0x1854f0,_0x5a0bcf);}}})),this[_0xc2f9ad(0x324)](this[_0xc2f9ad(0x2e0)][_0xc2f9ad(0x333)](_0x48e48d=>{const _0x1ee9e9=_0xc2f9ad;if(_0x48e48d['id']!==_0x22de79['id'])return;const _0x14b5df=_0x5698b3[_0x1ee9e9(0x2e1)](this['_univerInstanceService']);if(!_0x14b5df)return;const {unitId:_0x4700e7,subUnitId:_0x264d2d}=_0x14b5df,_0x73f8b4=_0x48e48d[_0x1ee9e9(0x14d)];if(_0x73f8b4[_0x1ee9e9(0x1c8)]&&Object[_0x1ee9e9(0x12a)](_0x73f8b4[_0x1ee9e9(0x1c8)])['forEach'](_0x26ca8e=>{const _0x43f95a=_0x1ee9e9;var _0x116f31;(_0x116f31=_0x73f8b4[_0x43f95a(0x1c8)])!=null&&_0x116f31[_0x26ca8e]&&this[_0x43f95a(0xc5)][_0x43f95a(0x1a3)](_0x26ca8e,_0x73f8b4[_0x43f95a(0x1c8)][_0x26ca8e]);}),_0x73f8b4[_0x1ee9e9(0x12f)]){const _0x5cefb0=_0x73f8b4[_0x1ee9e9(0x12f)],{unitId:_0x5eaf6a,subUnitId:_0x51907d,view:_0x325d87,pivotTableId:_0x438b36,type:_0x1808c1,pivotConfig:_0x391a84}=_0x5cefb0;if(_0x1808c1===_0xa5664b[_0x1ee9e9(0x3aa)])this[_0x1ee9e9(0x14f)][_0x1ee9e9(0x19e)]({'unitId':_0x5eaf6a,'subUnitId':_0x51907d,'pivotTableId':_0x438b36,'type':_0x1808c1}),this[_0x1ee9e9(0xc5)][_0x1ee9e9(0x21d)](_0x5eaf6a,_0x51907d,_0x438b36,null);else{const _0x15e0c5=new _0x3e0737[(_0x1ee9e9(0xe5))]();_0x15e0c5[_0x1ee9e9(0x38d)](_0x325d87),this['_sheetsPivotTableConfigModel']['updateConfigCache'](_0x5eaf6a,_0x51907d,_0x438b36,_0x391a84),this[_0x1ee9e9(0x14f)][_0x1ee9e9(0x19e)]({'unitId':_0x5eaf6a,'subUnitId':_0x51907d,'pivotTableId':_0x438b36,'type':_0x1808c1,'view':_0x15e0c5}),this[_0x1ee9e9(0x14f)][_0x1ee9e9(0x215)]({'unitId':_0x5eaf6a,'subUnitId':_0x51907d,'view':_0x15e0c5,'pivotTableId':_0x438b36,'type':_0x1808c1});}}else _0x73f8b4[_0x1ee9e9(0x1c0)]&&(_0x73f8b4[_0x1ee9e9(0x1c0)][_0x1ee9e9(0xff)](_0x53bd93=>{const _0x9b4139=_0x1ee9e9,{unitId:_0x2aee57,subUnitId:_0x1901ad,view:_0x500305,pivotTableId:_0x4452cc,type:_0x4d7eca,pivotConfig:_0x47d9f2}=_0x53bd93,_0xdb9f9d=new _0x3e0737['PivotView']();_0xdb9f9d[_0x9b4139(0x38d)](_0x500305),this['_sheetsPivotTableConfigModel'][_0x9b4139(0x21d)](_0x2aee57,_0x1901ad,_0x4452cc,_0x47d9f2),this[_0x9b4139(0x14f)][_0x9b4139(0x215)]({'unitId':_0x2aee57,'subUnitId':_0x1901ad,'view':_0xdb9f9d,'pivotTableId':_0x4452cc,'type':_0x4d7eca});}),this[_0x1ee9e9(0xc5)]['setPivotInitCompleted']());this[_0x1ee9e9(0x14f)][_0x1ee9e9(0x22f)](_0x4700e7,_0x264d2d);}));}[_0x2b16d4(0x37a)](){this['_activeDirtyManagerService']['register'](_0x44990a['id'],{'commandId':_0x44990a['id'],'getDirtyData'(_0x12659b){return{'dirtyUnitFeatureMap':_0x12659b['params']};}});}};_0x2563d5=_0x41d43d([_0x346db7(0x0,_0x282877['Inject'](_0x282877[_0x2b16d4(0x240)])),_0x346db7(0x1,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0xde)])),_0x346db7(0x2,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0x389)])),_0x346db7(0x3,_0x282877['Inject'](_0x24d96c[_0x2b16d4(0x15d)])),_0x346db7(0x4,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x165)])),_0x346db7(0x5,_0x3b2497[_0x2b16d4(0x212)])],_0x2563d5);var _0x5c7da5=Object[_0x2b16d4(0x2ae)],_0x5c4831=Object[_0x2b16d4(0x34b)],_0x1d1583=(_0x270208,_0x1ef79e,_0x3556ec)=>_0x1ef79e in _0x270208?_0x5c7da5(_0x270208,_0x1ef79e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3556ec}):_0x270208[_0x1ef79e]=_0x3556ec,_0x47f78e=(_0x1363e4,_0x26532a,_0x509b9b,_0x57429d)=>{for(var _0x4ce3b5=_0x57429d>0x1?void 0x0:_0x57429d?_0x5c4831(_0x26532a,_0x509b9b):_0x26532a,_0x3d2f4b=_0x1363e4['length']-0x1,_0x2d4502;_0x3d2f4b>=0x0;_0x3d2f4b--)(_0x2d4502=_0x1363e4[_0x3d2f4b])&&(_0x4ce3b5=_0x2d4502(_0x4ce3b5)||_0x4ce3b5);return _0x4ce3b5;},_0x18d682=(_0xd4e514,_0x554a53)=>(_0x4af48d,_0xaaf045)=>_0x554a53(_0x4af48d,_0xaaf045,_0xd4e514),_0x569b5c=(_0x3aae9c,_0x58ce46,_0x5837c4)=>_0x1d1583(_0x3aae9c,typeof _0x58ce46!=_0x2b16d4(0x2f8)?_0x58ce46+'':_0x58ce46,_0x5837c4);_0x24d96c[_0x2b16d4(0x16c)]=class extends _0x282877[_0x2b16d4(0x35b)]{constructor(_0x2f3422=_0x96e365,_0x167cb9,_0x264a39,_0x68b771,_0x5460ba){const _0x117977=_0x2b16d4;super(),this[_0x117977(0x29d)]=_0x2f3422,this[_0x117977(0x1fe)]=_0x167cb9,this[_0x117977(0x2e0)]=_0x264a39,this[_0x117977(0x2de)]=_0x68b771,this[_0x117977(0x190)]=_0x5460ba;const {..._0x45d5dc}=_0x282877[_0x117977(0x124)]({},_0x96e365,this[_0x117977(0x29d)]);this[_0x117977(0x2de)][_0x117977(0x262)](_0x539a40,_0x45d5dc),this['_initRegisterCommand'](),this[_0x117977(0x327)]();}[_0x2b16d4(0x327)](){const _0x15f230=_0x2b16d4;var _0x48dd32;const _0x7315a2=(_0x48dd32=this[_0x15f230(0x29d)])==null?void 0x0:_0x48dd32['notExecuteFormula'];this[_0x15f230(0x2de)][_0x15f230(0x262)](_0x3ecd37,_0x7315a2===!0x0);}[_0x2b16d4(0x391)](){const _0x4ce4d7=_0x2b16d4;var _0x2d5185;let _0x19b556=[];const _0x5b669e=(_0x2d5185=this[_0x4ce4d7(0x29d)])==null?void 0x0:_0x2d5185[_0x4ce4d7(0x172)];_0x5b669e===!0x0?_0x19b556=[[_0x24d96c[_0x4ce4d7(0x199)]],[_0x24d96c[_0x4ce4d7(0xde)]],[_0x2563d5],[_0x24d96c['SheetsPivotTableAdaptorModel']],[_0x24d96c[_0x4ce4d7(0x15d)]],[_0x57572c],[_0x50b047],[_0x1c208c],[_0x489cf9]]:_0x5b669e===!0x1?_0x19b556=[[_0x24d96c[_0x4ce4d7(0x1b4)]],[_0x566683]]:_0x5b669e===void 0x0&&(_0x19b556=[[_0x24d96c['SheetsPivotDataSourceModel']],[_0x566683],[_0x24d96c[_0x4ce4d7(0x199)]],[_0x24d96c['SheetsPivotRPCService']],[_0x2563d5],[_0x24d96c[_0x4ce4d7(0x389)]],[_0x24d96c[_0x4ce4d7(0x15d)]],[_0x57572c],[_0x50b047],[_0x1c208c],[_0x489cf9]]),_0x19b556[_0x4ce4d7(0xff)](_0x1d5c91=>this[_0x4ce4d7(0x1fe)][_0x4ce4d7(0x183)](_0x1d5c91)),[_0x566683,_0x2563d5,_0x24d96c[_0x4ce4d7(0x199)],_0x50b047,_0x57572c,_0x1c208c,_0x489cf9][_0x4ce4d7(0xff)](_0x1c6507=>{const _0x22dd68=_0x4ce4d7;this[_0x22dd68(0x1fe)]['has'](_0x1c6507)&&this[_0x22dd68(0x1fe)][_0x22dd68(0x1a9)](_0x1c6507);});}['_initRegisterCommand'](){const _0x5ebb6c=_0x2b16d4;[_0x51c1da,_0x237a57,_0x3e5b81,_0x515143,_0x1a6979,_0x15fd16,_0x3f98c7,_0x25fba6,_0x503ea6,_0xe8105e,_0x29ffa8,_0x16a0b5,_0xcca7af,_0xf74539,_0x1e563e,_0x2ad5a3,_0x3307ac,_0x5ab80d,_0x2025a4,_0x38013c,_0x59b12d,_0x422578,_0x406f56,_0x42179c,_0x948cfc,_0x2dd0f8,_0x353964,_0x19037a,_0x391749,_0x22de79,_0x2a81cb,_0x2647c7,_0x2ec070,_0x233cb2,_0x4c3710,_0x5d22e4,_0x595fcf,_0x44990a,_0x5554ef,_0x3b04ca,_0x2d2d96,_0x3b1c8c,_0x27055a][_0x5ebb6c(0xff)](_0x38d9d2=>{const _0x3b8461=_0x5ebb6c;var _0x38c3d1;(_0x38c3d1=this[_0x3b8461(0x190)])==null||_0x38c3d1['registerSyncingMutations'](_0x38d9d2),this[_0x3b8461(0x2e0)][_0x3b8461(0x1c3)](_0x38d9d2);});}},_0x569b5c(_0x24d96c[_0x2b16d4(0x16c)],_0x2b16d4(0x2ad),_0x2734d4),_0x569b5c(_0x24d96c[_0x2b16d4(0x16c)],'type',_0x282877[_0x2b16d4(0x20b)][_0x2b16d4(0x328)]),_0x24d96c['UniverSheetsPivotTablePlugin']=_0x47f78e([_0x282877[_0x2b16d4(0x290)](_0x5b0681['UniverLicensePlugin']),_0x18d682(0x1,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x33a)])),_0x18d682(0x2,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x240)])),_0x18d682(0x3,_0x282877['IConfigService']),_0x18d682(0x4,_0x282877['Optional'](_0x129259[_0x2b16d4(0x365)]))],_0x24d96c[_0x2b16d4(0x16c)]),_0x24d96c['AddPivotFieldCommand']=_0x3e5b81,_0x24d96c[_0x2b16d4(0x176)]=_0x5ab80d,_0x24d96c[_0x2b16d4(0x1fd)]=_0x237a57,_0x24d96c[_0x2b16d4(0x37e)]=_0x1e563e,_0x24d96c[_0x2b16d4(0x267)]=_0x51c1da,_0x24d96c['BLANK_ROW_COUNT']=_0x44f3d5,_0x24d96c[_0x2b16d4(0x12d)]=_0x1e520c,_0x24d96c[_0x2b16d4(0x1d1)]=_0x515143,_0x24d96c['MovePivotTableCommand']=_0xcca7af,_0x24d96c[_0x2b16d4(0x21b)]=_0x15dd40,_0x24d96c[_0x2b16d4(0x1cf)]=_0xf74539,_0x24d96c[_0x2b16d4(0x2a8)]=_0xa5664b,_0x24d96c[_0x2b16d4(0x1ec)]=_0x44990a,_0x24d96c[_0x2b16d4(0x11e)]=_0x220706,_0x24d96c[_0x2b16d4(0x102)]=_0x1a6979,_0x24d96c['RemovePivotFieldMutation']=_0x422578,_0x24d96c[_0x2b16d4(0x2b8)]=_0x3307ac,_0x24d96c['RenamePivotFieldMutation']=_0x406f56,_0x24d96c['ResetPivotFieldsConfigCommand']=_0x27055a,_0x24d96c[_0x2b16d4(0x273)]=_0x539a40,_0x24d96c['SHEET_PIVOT_TABLE_PLUGIN']=_0x2734d4,_0x24d96c['SetPivotCollapseCommand']=_0x25fba6,_0x24d96c['SetPivotCollapseMutation']=_0x42179c,_0x24d96c[_0x2b16d4(0xcd)]=_0x233cb2,_0x24d96c['SetPivotFieldsConfigCommand']=_0x3b1c8c,_0x24d96c[_0x2b16d4(0x363)]=_0xe8105e,_0x24d96c[_0x2b16d4(0x30f)]=_0x59b12d,_0x24d96c[_0x2b16d4(0x113)]=_0x2dd0f8,_0x24d96c[_0x2b16d4(0x362)]=_0x353964,_0x24d96c[_0x2b16d4(0x20a)]=_0x503ea6,_0x24d96c[_0x2b16d4(0x1ca)]=_0x948cfc,_0x24d96c[_0x2b16d4(0xef)]=_0x2ec070,_0x24d96c['SetPivotValueFilterCommand']=_0x3b04ca,_0x24d96c[_0x2b16d4(0x300)]=_0x2d2d96,_0x24d96c[_0x2b16d4(0x210)]=_0x3f98c7,_0x24d96c[_0x2b16d4(0x343)]=_0x2a81cb,_0x24d96c[_0x2b16d4(0xcc)]=_0x29ffa8,_0x24d96c[_0x2b16d4(0x312)]=_0x595fcf,_0x24d96c[_0x2b16d4(0x2f3)]=_0x16a0b5,_0x24d96c[_0x2b16d4(0x148)]=_0x5d22e4,_0x24d96c['UpdatePivotValuePositionCommand']=_0x15fd16,_0x24d96c[_0x2b16d4(0x2fc)]=_0x2647c7,_0x24d96c[_0x2b16d4(0xd1)]=_0x14e595,_0x24d96c[_0x2b16d4(0x379)]=_0x49a50c,_0x24d96c['defaultThemeStyle']=_0x433375,_0x24d96c[_0x2b16d4(0x305)]=_0x1fac4a,_0x24d96c['getAdjustRangesPosition']=_0x37a9a3,_0x24d96c['getEmptyPivotRanges']=_0x4bbd29,_0x24d96c[_0x2b16d4(0x245)]=_0x38e2b7,_0x24d96c[_0x2b16d4(0x242)]=_0x43927d,_0x24d96c[_0x2b16d4(0x178)]=_0x5e8aa7,_0x24d96c[_0x2b16d4(0x3ab)]=_0x9a8ebd,_0x24d96c[_0x2b16d4(0x313)]=_0x2e8fa2,_0x24d96c[_0x2b16d4(0x198)]=_0x22656d,_0x24d96c[_0x2b16d4(0x1ea)]=_0x56a3ee,Object['defineProperty'](_0x24d96c,Symbol['toStringTag'],{'value':_0x2b16d4(0x367)});}));function _0x262a(){const _0x14cd7b=['query','getAutoFitColumnsMutations','UpdateFieldPositionMutation','sheets-pivot.dateGroup.yearQuarter','range','DateGroupField','ΣValue','fieldsConfig','setDirty','remove','getOwnPropertyDescriptor','getPivotItemRenderInfoCache','PivotMultipleValueId','updateDataFieldsCollection','sheetName','concat','_host','getUnit','setDateType','_onRefRangeChange','_initLocale','sheets-pivot.cellDateGroupDisplay.yearMonthDate','Hour','RemoveField','pivotTableId','sum','Plugin','Subject','@univerjs-pro/license','PivotErrorTypeEnum','getTableFieldById','targetCellInfo','filterInfo','SetPivotPositionMutation','SetPivotFilterCommand','pivotConfigChange$','DataSyncPrimaryController','_exclusiveRangeService','Module','_initDataSendListener','values','sheet.command.update-date-group','_initGlobalComputed','PivotCallbackEnum','updatePivotTableMatrixInfo','sheets-pivot.dateGroup.monthDate','unshift','DEFAULT_WORKSHEET_ROW_COUNT','SetOptions','PivotTableFiledAreaEnum','function','getSheetBySheetId','10125990ZGcEaF','isText','fields','_initUnitDisposed','canUsePivot','registerDirtyService','Var\x20of\x20','New','getSubUnitPivotRenderCache','AddPivotTableMutation','info','isValue','dataFieldsCollection','sheets-pivot.cellDateGroupDisplay.minute','DataFieldManager','UniverSheetsFilter','custom','GrandTotal','markDirty$','interceptor','SheetsPivotTableAdaptorModel','ResetPivotTable','filterId','displayName','formJSON','750786AcgNPj','addField','removeValueFilterInfo','onStarting','_sheetsSelectionsService','setPivotInitCompleted','getFieldCountByArea','Filter','_initPivotTextInfo','IResourceManagerService','replace','setSortInfo','setValue','substring','fromJSON','createCollectionWithDataRange','endRow','createLabelField','isArray','grandTotal','getFilterInfo','dimension','_textInfo','random','min','fetchThroughAsyncInterceptors','setRangeValueRedoMutation','createInterceptorKey','Delete','getPivotInfoByLicense','resetPivotTable','movePivotField','isDateValue','removeValueFilterInfoByValueFieldId','registerPluginResource','SetPivotTableConfig','sheet.mutation.pivot-update-field-source-info','AddPivotField','updateView','from','number','mergeWorksheetSnapshotWithDefault','_ensurePivotItemRenderInfoCache','isEmpty','adjustSheetCellData','fontRenderExtension','getNoUsedDataFieldIds','sheet.mutation.update-date-group','CustomCommandExecutionError','setPivotCollapse','getRangeKeyList','UniverProSheetsPivot','splice','Varp\x20of\x20','_viewData$','Existing','_pivotConfigChange$','sheets-pivot.varName','sheet.command.move-pivot-table','setSourceName','isErrorValue','UniverRpc','Value','dataFields','sheet.command.set-pivot-sort','getSheets','BehaviorSubject','PivotTableValuePositionEnum','IConfigService','REF','sheets-pivot.stdDevName','_refRangeHandle','_sheetsPivotTableConfigModel','setRange','rangeCache','sheet.mutation.set-pivot-option','getDataFieldManager','addRecord','FORCE_STRING','UpdatePivotFieldSettingCommand','SetPivotFieldFormatMutation','floor','lastRow','getDataFieldByDataFieldId','applyChangeSet','sheets-pivot.dateGroup.minute','getCurrentUnitForType','getColCount','getDirtyInfo','refreshGroupField','_initClearSelectionCommandInterceptor','rowHeaderMap','getCollection','addPivotField','BLANK_PLACEHOLDER','initDataRanges','textInfo','SheetsPivotRPCService','needSameDeleteModel','executeCommand','Div0','getFieldInfo','workbook\x20is\x20not\x20found','_subjectCollectionChange','PivotView','_collectionChange$','getAutoDisplayNameFunction','colStyle','_configVersion$','4260456lNxRCB','ManualFilter','NUMBER','_model','measure','SetPivotSubtotalTypeMutation','sheet.command.set-pivot-value-filter','FieldsCollection','COMMAND','iterateFieldByArea','registerCallbackWithEvent','result','CELL_CONTENT','rangeKey','getConfig','onQueryEnd','getViewData','IUndoRedoService','getRangeStartEndInfo','sheet.command.set-pivot-field-setting','MoveRangeCommand','forEach','Max\x20of\x20','_updateRenderEmptyCache','RemovePivotFieldCommand','NORMAL','handleSourceRangeChange','has','getHeaderMapItem','SetPivotCollapse','stdDevp','drillDown','date','sheets-pivot.columnName','generateNullCell','getPivotTableMatrixInfo','DrillDown','_sheetsPivotRpcService','isDate','_dataFieldManagerCollection','setName','SetPivotOptionMutation','updateFieldSourceInfo','getDisplayName','MAX_SAFE_INTEGER','valueIndex','sheets-pivot.cellDateGroupDisplay.hourMinute','UniverEngineRender','return\x20','sheets-pivot.cellDateGroupDisplay.date','NUM','addPivotTable','PositionType','stringify','Inject','_localeService','clearExclusiveRangesByGroupId','getTextInfo','merge','InsertSheetUndoMutationFactory','removeDataField','Set','handleMoveRange','rangeKeyMap','keys','removeCollections','_univerInstanceService','DEFAULT_PIVOT_NUMBER','pushComputingStatusSubject','single','_getPivotAppliedRanges','fieldId','SetCollapse','leftOffset','parseInt','sheet.mutation.add-pivot-field','rgb(255,255,255)','lastCol','InsertColMutation','_ensurePivotTableMatrixInfo','_ensurePivotTableRangeInfo','serializeRangeWithSpreadsheet','getPivotTableConfig','Panel','columnFields','sheets-pivot.subTotal','sheet.mutation.add-pivot-table','#1d32e9','setPivotSetting','oldRangeInfo','deleteField','AddPivotTable','_deleteModelCache','DisposableCollection','UpdatePivotTableSourceRangeMutation','getId','SetPivotSetting','Sum\x20of\x20','getFullYear','params','SetSheetsFilterRangeMutation','_sheetsPivotTableAdaptorModel','generateHexNumber','some','broadcastCollectionChange','unshiftString','hasField','updateRangeKeyMap','MUTATION','SetRangeValuesMutation','getFieldById','sheet.mutation.set-pivot-collapse','InterceptorManager','getDate','#f4f4f5','SheetsPivotTableConfigModel','pivotTableConfigs','Values','setPivotSort','panel','HourMinute','Product\x20of\x20','\x20-\x20','IUniverInstanceService','pageRanges','getRangeData','string','getPivotTableCellData','_globalSubject','sheet.command.add-pivot-table-with-config','UniverSheetsPivotTablePlugin','valueFields','getFontStyleString','_initPivotDataGetListener','rowFields','getUpdateRangeDeleteIds','notExecuteFormula','reset','colHeaderMap','getIntersectsPivotTable','AddPivotFieldMutation','SHEET_PIVOT_TABLE_PLUGIN','getPivotCellInfo','filter','RemovePivotField','PivotFilterTypeEnum','queryDirtyPivotTable','blank','cornerInfo','data','paths','versions','rowStyle','add','ObjectMatrix','getPivotTableInstance','setSubtotalType','AsyncInterceptorManager','Total','sheets-pivot.stdDevpName','_initCommandInterceptListener','error','sheet.mutation.set-pivot-filter','DIV_BY_ZERO','addCollection','_createExclusiveRange','_dataSyncPrimaryController','sheets.tabs.sheet','endCollectChangeset','45289981HOlgYC','_collectionConfigModel','SetSortInfo','rowRanges','AddField','transFromCellValue','SheetsPivotTableService','tableFieldId','limit\x20pivot','UniverProLicense','getDataFieldId','clearRenderCache','startRow','getFieldDataType','headerMap','_initSnapshot','updateCollectionConfig','split','size','find','pivotMutationGenerate','CellValueType','get','sequenceExecute','IExclusiveRangeService','_viewData','viewUpdate$','PIVOT_MUTATION_GENERATE','intercept','colRanges','charCodeAt','shouldClear','getFieldIds','SheetsPivotDataSourceModel','getFormatInfo','sheets-pivot.minName','isBaseGroupField','iterateField','439JTHMbr','body','options','unitId','MovePivotField','subTotalStyle','deepClone','batch','delete','getPivotTableIdByCell','registerCommand','StdDevp\x20of\x20','sheet.mutation.set-pivot-field-subtotal-type','UpdatePivotSource','ReleaseType','collectionConfig','getSubtotal','SetPivotSortMutation','sheets-pivot.dateGroup.hourMinute','sheet.mutation.set-pivot-sort-info','undos','BadReference','PivotDrillDownCommand','_deletePivotTableInstanceCache','MovePivotFieldCommand','PivotViewCellValueTypeEnum','GlobalConfig','InsertSheetMutation','fetchThroughInterceptors','getPivotPerformCheck','varp','dataFieldId','PivotDataFieldDataTypeEnum','col','sheet.mutation.remove-group-collection','call','getFieldFormat','addCollectionByJSON','updateValuePosition','addDataFieldWithoutUnitInfo','dataFieldManagerConfig','setFieldFormat','getValue','LS_CONFIG_KEY','_updatePivotTableInstanceCache','update','type','(Blank)','UniverEngineFormula','unionPivotViewRange','getTextSize','PivotTableViewDirtyMarkOperation','parse','_globalComputingSrv','level','dataStream','collectionChange$','pageStyle','Minute','addExclusiveRange','Subtotal','_pivotRenderInfoCache','_sheetsPivotTableService','_toJSON','sheets-pivot.productName','sourceName','RemoveSheetMutation','generateNewSheetName','AddPivotTableCommand','_injector','updateViewData','rowInfo','setTextInfo','removeSourceRangeChange','sheet.command.reset-pivot-fields-config','subUnitId','CommandType','excelDateToUnixMilliseconds','interceptCommand','count','leafStyle','SetPivotSortCommand','UniverInstanceType','getValueIndex','updateConfig','Year','sheets-pivot.emptyPivot.values','UpdateDateGroupCommand','Column','IActiveDirtyManagerService','setValuePivotFilter','setCollapse','updateRenderCache','fieldIds','UniverSheets','removeField','getSheetFeatureLimit','token','PivotDisplayDataType','getAutoDisplayName','updateConfigCache','SetPivotFilter','getLastCol','Grand\x20Total','YearMonth','collapseInfo','subscribe','addDirtyPivotTable','_activeDirtyManagerService','STRING','sortInfo','Month','Style','sheet.mutation.pivot-update-field-position','disposableCollection','PivotDateGroupFieldDateTypeEnum','sheet.operation.pivot-table-view-formula-mark-dirty','sheet.mutation.pivot-update-value-position','markDirty','UpdateValuePosition','getSubUnitPivotConfigs','Quarter','SetFilterInfo','_pivotInitCompleted$','contains','updateDirtyPivotTable','sheets-pivot.cellDateGroupDisplay.yearMonth','RefRangeService','getSheetBySheetName','setPivotFilter','next','sheet.mutation.send-pivot-config-local','maxDate','sheets-pivot.emptyPivot.row','setDisplayName','ICommandService','getName','getInsertRowColMutations','realDeleteValue','endColumn','getFieldListByArea','getColumnCount','generateRandomId','amd','pushUndoRedo','node','sheets-pivot.emptyPivot.column','getCellRaw','max','startCollectChangeset','sheet.command.set-pivot-fields-config','subtotal','format','#b2b2b2','NotFunction','startColumn','getUnitId','collections','SheetInterceptorService','removePivotTable','asObservable','_pivotTableRangeInfo','setDataRecordCount','_viewUpdate$','forRow','minDate','_pivotTableInstanceCache','toString','_init','setConfig','_queryingMap','sheets-pivot.cellDateGroupDisplay.yearQuarter','refreshData','#eceeff','AddPivotTableWithConfigCommand','_fieldsCollectionChange$','getDataFieldByRangeKey','resetArea','addPivotTableWithConfig','sheet.command.set-pivot-collapse','FontCache','sheets-pivot.cellDateGroupDisplay.quarter','updateAllDisplayName','InsertRowMutation','stdDev','document','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','numfmt','Count\x20of\x20','isBottomTotal','PivotTable','PivotDataFieldTypeEnum','map','colInfo','length','UniverCore','YearMonthDate','setPivotTable','1450090kpjKBy','pbt','setPivotTableConfig','rxjs','Date','uniqueDataFieldName','oldMatrix','slice','ErrorType','tuple','NAME','SetValuePivotFilter','RemoveSheetCommand','_ensurePivotMap','deleteUnitId','Add','set','DependentOn','sheets-pivot.blank','getSortInfo','sheet.command.add-pivot-field','pivotInitCompleted$','getOriginFieldId','setRangeValueUndoMutation','_featureCalculationManagerService','#e6ebfa','getInterceptPoints','setRangeKeyMap','sheets-pivot.sumName','asyncInterceptor','_config','sheet.mutation.send-pivot-data-local','cellToRange','isDateGroupField','_getAutoName','column','redos','value','ClearSelectionAllCommand','4044QesYfb','dataStyle','PivotTableOperationEnum','getSheetId','sheets-pivot.cellDateGroupDisplay.year','sourceRangeInfo','addFieldWithSourceId','pluginName','defineProperty','filterFields','sheet.command.update-pivot-table-source-range','rangeType','#e6ebfb','_globalComputedEndHelpFunc','rangesInfo','SHEET_PIVOT_IN_MAIN_THREAD','getColumnWidth','iterateFieldDim','RemovePivotTableMutation','_pivotTableMatrixInfo','sheets-pivot.value','_markDirty$','sheets-pivot.dateGroup.date','reduce','dispose','_requestResolvers','updateViewInfo','8njTdRH','_updateModelCache','originalFieldId','PivotTableChangeTypeEnum','@univerjs/engine-render','PivotSubtotalTypeEnum','_refRangeService','setValueFilterInfo','refreshDataField','getDataFieldItemInfo','LocaleService','rowCount','_ensureViewDataMap','areaInfo','sheets-pivot.dateGroup.year','None','getPivotTableModelConfig','getRowCount','COLUMN','getIndexesByPathStr','SetFieldFormat','getRangeKey','_globalComputedStartHelpFunc','entries','getCellMatrix','sheet.mutation.remove-pivot-table','AddPivotTableWithConfig','RenameField','SetSubtotalType','_configService','@univerjs/core','_commandService','getSheetCommandTarget','width','PivotCellStyleTypeEnum','pivotTableIndexConfig','sheet.mutation.update-pivot-table-source-range','dateGroupField','Rectangle','getMonth','getValueFilterInfos','deleteDataField','colCount','viewData$','getFieldPositionInfoById','20uURfYP','Row','sheets-pivot.varpName','getActiveSheet','@univerjs/engine-formula','UpdatePivotTableSourceRangeCommand','getLastRow','intersects','getSourceName','createAsyncInterceptorKey','symbol','getPivotDisplayConfig','@univerjs-pro/engine-pivot','Expand','UpdateValuePositionMutation','_pivotRenderValueMatrixCache','updatePivotSource','sheets-pivot.cellDateGroupDisplay.hour','SetPivotValueFilterMutation','YearQuarter','SetPivotSort','row','isFeatureAuthorizedWithinTime','generateSetRangeValueMutations','valueFilter','Min\x20of\x20','forValue','Disposable','Average\x20of\x20','getStyles','@univerjs/rpc','getformat','_resourceManagerService','SetPivotFilterMutation','matrix','getValuePosition','UpdatePivotFieldSourceInfoMutation','getPivotTableInfo','name','getMatrix','toJSON','setLabelFilterInfo','_initViewModelBySheetInterceptor','getGroupFieldsInfoByIds','_sheetInterceptorService','SetWorksheetColWidthMutation','_subjectFieldsCollectionChange','updateFieldPosition','MIN_SAFE_INTEGER','getTargetByPivotId','RemoveSheetsFilterMutation','updatePivotTableRangeInfo','_generateUniqueVersion','getDataFieldByTableId','disposeWithMe','Tools','NotNumber','_initConfig','UNIVER_SHEET','_sheetsPivotDataSourceModel','9050608YwNwju','renameField','#FFFFFF','sheet.command.move-pivot-field','10rvZCnT','valuePosition','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','dataRangeInfo','_ensurePivotItemRenderValueMatrixCache','onCommandExecuted','fieldsCollectionChange$','sheets-pivot.dateGroup.month','sheet.mutation.set-pivot-format','triggerDirtyFeature','push','includes','Injector','removePivotField','SHEET_PIVOT_EXCLUSIVE_ID','IFeatureCalculationManagerService','dateType','sheets-pivot.countNumsName','getTypeOfUnitDisposed$'];_0x262a=function(){return _0x14cd7b;};return _0x262a();}
1
+ (function(_0x979f3a,_0x4b956d){const _0x42e2c8=_0x10c7,_0x1456e9=_0x979f3a();while(!![]){try{const _0x4737b5=parseInt(_0x42e2c8(0x33c))/0x1+parseInt(_0x42e2c8(0x338))/0x2*(parseInt(_0x42e2c8(0x2f2))/0x3)+parseInt(_0x42e2c8(0x20e))/0x4+parseInt(_0x42e2c8(0x2a2))/0x5+parseInt(_0x42e2c8(0x238))/0x6*(-parseInt(_0x42e2c8(0x32a))/0x7)+parseInt(_0x42e2c8(0x428))/0x8*(parseInt(_0x42e2c8(0x361))/0x9)+-parseInt(_0x42e2c8(0x3e2))/0xa;if(_0x4737b5===_0x4b956d)break;else _0x1456e9['push'](_0x1456e9['shift']());}catch(_0x4ecfce){_0x1456e9['push'](_0x1456e9['shift']());}}}(_0x2487,0x7516b),function(_0x4e068b,_0x5021f6){const _0x2b5e1f=_0x10c7;typeof exports==_0x2b5e1f(0x324)&&typeof module<'u'?_0x5021f6(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==_0x2b5e1f(0x377)&&define[_0x2b5e1f(0x12a)]?define([_0x2b5e1f(0x285),_0x2b5e1f(0x398),_0x2b5e1f(0x131),_0x2b5e1f(0x346),_0x2b5e1f(0x29c),_0x2b5e1f(0x293),_0x2b5e1f(0x125),_0x2b5e1f(0x42f),_0x2b5e1f(0x3f4),_0x2b5e1f(0x1f8)],_0x5021f6):(_0x4e068b=typeof globalThis<'u'?globalThis:_0x4e068b||self,_0x5021f6(_0x4e068b[_0x2b5e1f(0x30c)]={},_0x4e068b[_0x2b5e1f(0x124)],_0x4e068b['UniverCore'],_0x4e068b[_0x2b5e1f(0x39d)],_0x4e068b[_0x2b5e1f(0x33d)],_0x4e068b[_0x2b5e1f(0x293)],_0x4e068b[_0x2b5e1f(0x1a7)],_0x4e068b[_0x2b5e1f(0x386)],_0x4e068b['UniverRpc'],_0x4e068b[_0x2b5e1f(0x31e)]));}(this,function(_0x1aec1a,_0x2c142,_0x194133,_0x32f36e,_0x131b3b,_0x2935a3,_0x3e96f2,_0xbcfe7b,_0x3e4021,_0x334047){'use strict';const _0x269f30=_0x10c7;var _0x2cf53a=Object[_0x269f30(0x2da)],_0x3bf663=(_0x21ea6f,_0x3ab633,_0x3f263f)=>_0x3ab633 in _0x21ea6f?_0x2cf53a(_0x21ea6f,_0x3ab633,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f263f}):_0x21ea6f[_0x3ab633]=_0x3f263f,_0x327454=(_0x237df2,_0x495e00,_0x4ddefb)=>_0x3bf663(_0x237df2,typeof _0x495e00!=_0x269f30(0x216)?_0x495e00+'':_0x495e00,_0x4ddefb);const _0x38049c=Number[_0x269f30(0x15e)](0x68bbe2f4),_0x2c4f05=0x10,_0xb0e95d=0x1,_0x468904=_0x269f30(0x408),_0x4f4430=0x1,_0xfa8d94=_0x269f30(0x3d7),_0x1b5516='rgb(255,255,255)',_0x7406f0=_0x269f30(0x175),_0xab41f3=_0x269f30(0x29e),_0x1cca03=_0x269f30(0x29e),_0x15e2aa='#eceeff',_0x65dbd2=_0x269f30(0x1d2),_0x1552f3='#FFFFFF',_0x420bc8=_0x269f30(0x2e9),_0x28f905=_0x269f30(0x1d2),_0x57bf5d='#FFFFFF',_0x163fc3=_0x269f30(0x122),_0x3fb947=0xe,_0x16a7e7=0x6;var _0x1e0476=(_0x3caaac=>(_0x3caaac['Existing']=_0x269f30(0x28a),_0x3caaac['New']=_0x269f30(0x36a),_0x3caaac))(_0x1e0476||{});const _0x40907e={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},_0x475711=0x1e,_0x376669={'b':{'s':0x1,'cl':{'rgb':_0x7406f0}},'l':{'s':0x1,'cl':{'rgb':_0x7406f0}},'r':{'s':0x1,'cl':{'rgb':_0x7406f0}},'t':{'s':0x1,'cl':{'rgb':_0x7406f0}}},_0x1db44c={'bg':{'rgb':_0xfa8d94},'ht':0x2,'vt':0x2,'tb':0x1},_0x546698={'bg':{'rgb':_0x1b5516},'ht':0x2,'vt':0x2,'tb':0x1},_0x3b3f2c={'rowStyle':{'bg':{'rgb':_0x163fc3},'bd':_0x376669,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x28f905},'bd':null,'cl':{'rgb':_0x57bf5d},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x376669,'bg':{'rgb':_0x420bc8},'vt':0x2},'cornerStyle':{'bd':_0x376669,'bg':{'rgb':_0x15e2aa},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x376669,'bg':{'rgb':_0xab41f3},'vt':0x2},'leafStyle':{'bd':_0x376669,'bg':{'rgb':_0x1cca03},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x65dbd2},'cl':{'rgb':_0x1552f3},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x376669,'vt':0x2}};function _0x334ca3(_0x2faead,_0x38246e,_0x4f388b){const _0xd215e3=_0x269f30,_0x38c810=_0x2faead[_0xd215e3(0x33f)](_0x194133['LocaleService']),_0x2c0bda=_0x4f388b['split']('_');switch(_0x38246e){case _0x2c142[_0xd215e3(0x225)][_0xd215e3(0x2df)]:return _0x38c810['t'](_0xd215e3(0x223),..._0x2c0bda);case _0x2c142[_0xd215e3(0x225)][_0xd215e3(0x248)]:return _0x38c810['t'](_0xd215e3(0x406),..._0x2c0bda);case _0x2c142[_0xd215e3(0x225)][_0xd215e3(0x3e5)]:return _0x38c810['t']('sheets-pivot.cellDateGroupDisplay.hour',..._0x2c0bda);case _0x2c142[_0xd215e3(0x225)]['HourMinute']:return _0x38c810['t'](_0xd215e3(0x199),..._0x2c0bda);case _0x2c142[_0xd215e3(0x225)][_0xd215e3(0x270)]:return _0x38c810['t'](_0xd215e3(0x251),..._0x2c0bda);case _0x2c142[_0xd215e3(0x225)][_0xd215e3(0x231)]:return _0x38c810['t']('sheets-pivot.cellDateGroupDisplay.month',..._0x2c0bda);case _0x2c142[_0xd215e3(0x225)][_0xd215e3(0x1fb)]:return _0x38c810['t'](_0xd215e3(0x2fc),..._0x2c0bda);case _0x2c142[_0xd215e3(0x225)][_0xd215e3(0x281)]:return _0x38c810['t'](_0xd215e3(0x3db),..._0x2c0bda);case _0x2c142[_0xd215e3(0x225)]['YearMonthDate']:return _0x38c810['t'](_0xd215e3(0x2d9),..._0x2c0bda);case _0x2c142[_0xd215e3(0x225)][_0xd215e3(0x1b2)]:return _0x38c810['t'](_0xd215e3(0x1af),..._0x2c0bda);}return'';}const _0x3dc0ef=(_0x512fcf,_0x4cefc6,_0x2ec56c,_0xfd1173)=>{const _0xebaefc=_0x269f30;let _0x121d5;const _0x1eac58=_0x512fcf[_0xebaefc(0x33f)](_0x194133[_0xebaefc(0x137)])['getCurrentUnitForType'](_0x194133[_0xebaefc(0x1c8)][_0xebaefc(0x3c4)]);if(!_0x1eac58)return null;const _0x4d1065=_0x1eac58['getStyles']();let _0x48578a;if(_0x2ec56c&&(_0x48578a=_0x4d1065[_0xebaefc(0x26e)](_0x2ec56c)),_0x4cefc6!=null&&_0x4cefc6['v']||(_0x4cefc6==null?void 0x0:_0x4cefc6['v'])===0x0){_0x121d5||(_0x121d5={});const _0x21a0ba=_0x3b3acc(_0x4cefc6['v']);typeof _0x21a0ba==_0xebaefc(0x264)?_0x121d5['t']=_0x194133['CellValueType'][_0xebaefc(0x28f)]:typeof _0x21a0ba==_0xebaefc(0x174)&&(_0x121d5['t']=_0x194133[_0xebaefc(0x2f6)]['STRING']),_0x121d5['v']=_0x21a0ba;}if((_0x4cefc6!=null&&_0x4cefc6['i']||(_0x4cefc6==null?void 0x0:_0x4cefc6['i'])===0x0)&&(_0x121d5||(_0x121d5={}),_0x121d5['fi']=_0x4cefc6['i']),_0x4cefc6!=null&&_0x4cefc6['s']&&(_0x121d5||(_0x121d5={}),_0x121d5[_0xebaefc(0x1c9)]=_0x4cefc6['s']),_0x2ec56c&&(_0x121d5||(_0x121d5={}),_0x121d5['s']=_0x48578a),_0xfd1173&&_0x121d5!=null&&_0x121d5['v']&&_0x121d5[_0xebaefc(0x1c9)]!==_0x2c142[_0xebaefc(0x3b7)][_0xebaefc(0x2dd)]&&_0x121d5[_0xebaefc(0x1c9)]!==_0x2c142[_0xebaefc(0x3b7)]['Subtotal']){const _0x1b126c=String(_0x121d5['v']),{dateType:_0x22919c}=_0xfd1173;_0x121d5['v']=_0x334ca3(_0x512fcf,_0x22919c,_0x1b126c),_0x121d5['t']=_0x194133[_0xebaefc(0x2f6)]['STRING'];}return _0x121d5;},_0x51f9ce=(_0x4acfca,_0x1b160b,_0x439281,_0xeb67f3)=>{const _0x533790=_0x269f30;var _0x3a3b32,_0x5a1f6f,_0x560ca4,_0x99bae4,_0x2c86d0,_0x2d8a05,_0x7eadef,_0x443e01,_0x14dced,_0x3248ad,_0x5939f4,_0x5c0cc9,_0x1a65b4,_0x1662d4;const _0x399e7e=_0x439281[_0x533790(0x1e6)],{cornerView:_0xc69a74,rowView:_0x4804a9,colView:_0x2f3fdf,dataView:_0x3d8c3d,pageView:_0xa1274c,formatMap:_0x43320a,groupInfo:_0x1e2d42}=_0x1b160b,{row:_0x1500ed,col:_0x38146e}=_0x399e7e,_0x311c0c=new _0x194133[(_0x533790(0x1c4))](),_0x194c45={},_0x588112={},_0x2a5bd6={},_0x435928={},_0x2a4e27={};let _0x511a70=_0x1500ed,_0x394c42=_0x38146e;Object[_0x533790(0x243)](_0xa1274c['data'])[_0x533790(0x2cd)](_0x9d6439=>{const _0x11db2a=_0x533790;Object[_0x11db2a(0x243)](_0xa1274c['data'][Number(_0x9d6439)])['forEach'](_0x38cc21=>{const _0x3b9de2=_0x11db2a,_0x456377={..._0xa1274c[_0x3b9de2(0x3e8)][Number(_0x9d6439)][Number(_0x38cc21)]};_0x311c0c['setValue'](Number(_0x9d6439)+_0x511a70,Number(_0x38cc21)+_0x394c42,_0x3dc0ef(_0x4acfca,_0x456377,_0x3b3f2c[_0x3b9de2(0x38d)]));});});const _0x3ebf8e=Object['keys'](_0xa1274c['data'])['length'];_0x511a70+=_0x3ebf8e+(_0x3ebf8e?_0x4f4430:0x0);const _0x4ccea6=_0xc69a74['getRowCount'](),_0x5eb66b=_0xc69a74[_0x533790(0x25c)]();for(let _0x4debdb=0x0;_0x4debdb<_0x4ccea6;_0x4debdb++)for(let _0x2d9955=0x0;_0x2d9955<_0x5eb66b;_0x2d9955++){const _0x559ff6={...(_0x5a1f6f=(_0x3a3b32=_0xc69a74[_0x533790(0x3e8)])==null?void 0x0:_0x3a3b32[_0x4debdb])==null?void 0x0:_0x5a1f6f[_0x2d9955]};_0x559ff6&&((_0x560ca4=_0x4804a9[_0x533790(0x36f)][_0x2d9955])!=null&&_0x560ca4['isValue'])&&_0x2d9955===_0x5eb66b-0x1&&_0x4debdb===_0x4ccea6-0x1&&(_0x559ff6['v']=''+_0xeb67f3[_0x533790(0x21e)]),_0x311c0c['setValue'](_0x4debdb+_0x511a70,_0x2d9955+_0x394c42,_0x3dc0ef(_0x4acfca,_0x559ff6,_0x3b3f2c['cornerStyle']));}for(let _0x392f89=0x0;_0x392f89<_0xc69a74[_0x533790(0x322)][_0x533790(0x1ed)];_0x392f89++)_0xc69a74[_0x533790(0x322)][_0x392f89]&&(_0x2a5bd6[''+(_0x392f89+_0x394c42)]=_0xc69a74[_0x533790(0x322)][_0x392f89]);_0x394c42+=_0x5eb66b;const _0x422e17=_0x2f3fdf[_0x533790(0x36f)],_0x16d028=_0x2f3fdf['getLastRow']()>=0x0?_0x2f3fdf[_0x533790(0x401)]()+0x1:0x0,_0x2482ef=_0x2f3fdf[_0x533790(0x2db)]()>=0x0?_0x2f3fdf[_0x533790(0x2db)]()+0x1:0x0;for(let _0x17a4cf=0x0;_0x17a4cf<_0x2482ef;_0x17a4cf++){for(let _0x595696=0x0;_0x595696<_0x16d028;_0x595696++){const _0x2eec98={...(_0x2c86d0=(_0x99bae4=_0x2f3fdf[_0x533790(0x3e8)])==null?void 0x0:_0x99bae4[_0x595696])==null?void 0x0:_0x2c86d0[_0x17a4cf]},_0x5e0492=(_0x2d8a05=_0x422e17[_0x595696])==null?void 0x0:_0x2d8a05[_0x533790(0x2d3)],_0x3a23f3=_0x43320a[_0x5e0492],_0x597f51=_0x1e2d42[_0x5e0492];_0x2eec98&&(_0x2eec98['v']=_0x22213a(_0x2eec98,_0x595696===0x0&&((_0x7eadef=_0x2f3fdf[_0x533790(0x307)](_0x17a4cf+0x1))==null?void 0x0:_0x7eadef[_0x533790(0x209)]),_0x3a23f3,_0xeb67f3));let _0x2d4891;_0x3a23f3?_0x2d4891={..._0x3b3f2c['colStyle'],'n':{'pattern':_0x3a23f3}}:_0x2d4891={..._0x3b3f2c['colStyle']},_0x311c0c['setValue'](_0x595696+_0x511a70,_0x17a4cf+_0x394c42,_0x3dc0ef(_0x4acfca,_0x2eec98,_0x2d4891,_0x597f51));}_0x2f3fdf['info'][_0x17a4cf]&&(_0x588112[''+(_0x17a4cf+_0x394c42)]=_0x2f3fdf[_0x533790(0x322)][_0x17a4cf]),_0x2f3fdf[_0x533790(0x36f)][_0x17a4cf+0x1]&&(_0x2a4e27[''+(_0x17a4cf+_0x511a70+0x1)]=_0x2f3fdf[_0x533790(0x36f)][_0x17a4cf+0x1]);}_0x511a70+=_0x4ccea6;const _0x1ba86b=_0x4804a9[_0x533790(0x36f)],_0x235ac7=_0x4804a9['getLastRow']()>=0x0?_0x4804a9[_0x533790(0x401)]()+0x1:0x0,_0x573b1d=_0x4804a9[_0x533790(0x2db)]()>=0x0?_0x4804a9[_0x533790(0x2db)]()+0x1:0x0;for(let _0x226aee=0x0;_0x226aee<_0x235ac7;_0x226aee++){for(let _0x3bf2af=0x0;_0x3bf2af<_0x573b1d;_0x3bf2af++){const _0x38800a={...(_0x14dced=(_0x443e01=_0x4804a9[_0x533790(0x3e8)])==null?void 0x0:_0x443e01[_0x226aee])==null?void 0x0:_0x14dced[_0x3bf2af]},_0x1eb0d5=(_0x3248ad=_0x1ba86b[_0x3bf2af])==null?void 0x0:_0x3248ad[_0x533790(0x2d3)],_0x5adcc7=_0x43320a[_0x1eb0d5],_0xf4db93=_0x1e2d42[_0x1eb0d5];_0x38800a&&(_0x38800a['v']=_0x22213a(_0x38800a,!0x1,_0x5adcc7,_0xeb67f3));let _0x5713ad;_0x4804a9[_0x533790(0x322)][_0x226aee][_0x533790(0x300)]===_0x4804a9[_0x533790(0x25c)]()?_0x5713ad=_0x3b3f2c[_0x533790(0x311)]:_0x4804a9['info'][_0x226aee][_0x533790(0x3d4)]?_0x5713ad=_0x4804a9['info'][_0x226aee][_0x533790(0x300)]===0x0?_0x3b3f2c[_0x533790(0x213)]:_0x3b3f2c[_0x533790(0x37b)]:_0x5713ad=_0x3b3f2c[_0x533790(0x273)],_0x5adcc7&&(_0x5713ad={..._0x5713ad,'n':{'pattern':_0x5adcc7}}),_0x311c0c[_0x533790(0x26e)](_0x226aee+_0x511a70,_0x3bf2af+_0x38146e,_0x3dc0ef(_0x4acfca,_0x38800a,_0x5713ad,_0xf4db93));}_0x4804a9[_0x533790(0x322)][_0x226aee]&&(_0x194c45[''+(_0x226aee+_0x511a70)]=_0x4804a9['info'][_0x226aee]),_0x4804a9[_0x533790(0x36f)][_0x226aee]&&(_0x435928[''+(_0x226aee+_0x38146e)]=_0x4804a9['headerMap'][_0x226aee]);}const _0x28ac84=_0x3d8c3d['getRowCount'](),_0x5dcda7=_0x3d8c3d[_0x533790(0x25c)]();for(let _0x181588=0x0;_0x181588<_0x28ac84;_0x181588++)for(let _0x250546=0x0;_0x250546<_0x5dcda7;_0x250546++){const _0x10b0d7={...(_0x5c0cc9=(_0x5939f4=_0x3d8c3d['data'])==null?void 0x0:_0x5939f4[_0x181588])==null?void 0x0:_0x5c0cc9[_0x250546]};let _0x50ef0b;_0x4804a9[_0x533790(0x322)][_0x181588][_0x533790(0x3d4)]?_0x50ef0b=_0x4804a9[_0x533790(0x322)][_0x181588][_0x533790(0x300)]===0x0?_0x3b3f2c[_0x533790(0x213)]:_0x3b3f2c['subTotalStyle']:_0x50ef0b=_0x3b3f2c[_0x533790(0x297)];const _0x48883e=_0x4804a9[_0x533790(0x322)][_0x181588][_0x533790(0x3d9)],_0x112852=_0x2f3fdf['info'][_0x250546][_0x533790(0x3d9)],_0xaa9ad6=Math[_0x533790(0x412)](_0x48883e,_0x112852),_0x5b508f=_0x439281[_0x533790(0x30f)][_0x533790(0x242)][_0x533790(0x320)]();let _0x5d8a6d='';_0xaa9ad6<0x0?_0x5d8a6d=(_0x1a65b4=_0x5b508f[0x0])!=null?_0x1a65b4:'':_0x5d8a6d=(_0x1662d4=_0x5b508f[_0xaa9ad6])!=null?_0x1662d4:'';const _0x6a08bf=_0x43320a[_0x5d8a6d];_0x6a08bf&&(_0x50ef0b={..._0x50ef0b,'n':{'pattern':_0x6a08bf}}),_0x311c0c[_0x533790(0x26e)](_0x181588+_0x511a70,_0x250546+_0x394c42,_0x3dc0ef(_0x4acfca,_0x10b0d7,_0x50ef0b));}return{'valueMatrix':_0x311c0c,'rowInfo':_0x194c45,'colInfo':_0x588112,'cornerInfo':_0x2a5bd6,'rowHeaderMap':_0x435928,'colHeaderMap':_0x2a4e27};};function _0x22213a(_0x57cdc7,_0x51390e,_0x39d091,_0x43839e){const _0x3a5cd4=_0x269f30;let _0x318828=_0x57cdc7['v'];_0x51390e&&(_0x318828=''+_0x43839e[_0x3a5cd4(0x21e)]);const _0x32cfd6=_0x57cdc7['t']&&(_0x57cdc7['t']&_0x2c142[_0x3a5cd4(0x13c)][_0x3a5cd4(0x232)])>0x0;if(_0x32cfd6&&(_0x318828=''+_0x43839e['sheets-pivot.blank']),_0x57cdc7['s']===_0x2c142['PivotCellStyleTypeEnum'][_0x3a5cd4(0x207)]){let _0x49273b=_0x318828,_0x4b1e0d='';_0x2c142[_0x3a5cd4(0x378)](_0x318828)&&(_0x49273b=_0x318828['prefix'],_0x4b1e0d=_0x318828[_0x3a5cd4(0x2b7)]);const _0x505204=_0x39d091&&!_0x32cfd6?_0x194133['numfmt'][_0x3a5cd4(0x3dc)](_0x39d091,Number(_0x49273b)):_0x49273b;_0x4b1e0d?_0x318828=_0x505204+'\x20'+_0x4b1e0d:_0x318828=_0x505204+'\x20'+_0x43839e[_0x3a5cd4(0x1d5)];}else _0x57cdc7['s']===_0x2c142['PivotCellStyleTypeEnum']['GrandTotal']&&(_0x318828=_0x318828+'\x20'+_0x43839e[_0x3a5cd4(0x258)]);return _0x318828;}function _0x3b3acc(_0x47de01){const _0x49f749=_0x269f30;if(_0x2c142[_0x49f749(0x165)](_0x47de01)){const {errorType:_0x341419}=_0x47de01;switch(_0x341419){case _0x2c142['PivotErrorTypeEnum'][_0x49f749(0x3d6)]:return _0x32f36e[_0x49f749(0x1a1)][_0x49f749(0x23b)];case _0x2c142['PivotErrorTypeEnum']['NotNumber']:return _0x32f36e[_0x49f749(0x1a1)][_0x49f749(0x41d)];case _0x2c142[_0x49f749(0x2cf)]['NotFunction']:return _0x32f36e[_0x49f749(0x1a1)][_0x49f749(0x20d)];case _0x2c142[_0x49f749(0x2cf)][_0x49f749(0x1f2)]:return _0x32f36e['ErrorType'][_0x49f749(0x20d)];case _0x2c142[_0x49f749(0x2cf)][_0x49f749(0x1db)]:return _0x32f36e[_0x49f749(0x1a1)][_0x49f749(0x3a5)];}}return _0x47de01;}function _0x4c3feb(_0x93db3e,_0x531204,_0x547b81=!0x1,_0x4829c9=!0x1){const _0x3115a8=_0x269f30,{data:_0x3ed8e2}=_0x531204,_0x34a56d=_0x531204['getRowCount'](),_0x1c951b=_0x531204[_0x3115a8(0x25c)]();if(_0x34a56d<=0x0||_0x1c951b<=0x0)return[];const _0x1c8895=_0x531204[_0x3115a8(0x2db)](),_0x26d710=_0x531204[_0x3115a8(0x401)](),_0xd250e1=_0x4829c9?_0x26d710>=0x0?_0x26d710+0x1:0x0:_0x34a56d,_0x175b7d=_0x4829c9?_0x1c8895>=0x0?_0x1c8895+0x1:0x0:_0x1c951b,{row:_0x10745a,col:_0x3b8d8f}=_0x93db3e,_0x3db0e2=_0x10745a,_0x5243f2=_0x3b8d8f;if(_0x547b81){const _0x453473=[];for(const [_0x3afa1e,_0x34702e]of Object[_0x3115a8(0x305)](_0x3ed8e2))for(const [_0x49fef3,_0x432055]of Object[_0x3115a8(0x305)](_0x34702e))_0x453473[_0x3115a8(0x3fe)](_0x194133[_0x3115a8(0x42e)](_0x3db0e2+Number(_0x3afa1e),_0x5243f2+Number(_0x49fef3)));return _0x453473;}else{const _0x70f3d=_0x4829c9?_0xd250e1>0x0?0x1:0x0:0x1,_0x164aee=_0x4829c9?_0x175b7d>0x0?0x1:0x0:0x1,_0x3094e4=_0x10745a+_0xd250e1-_0x70f3d,_0x519869=_0x3b8d8f+_0x175b7d-_0x164aee;return[{'startRow':_0x3db0e2,'startColumn':_0x5243f2,'endRow':_0x3094e4,'endColumn':_0x519869}];}}const _0x3c25a9=_0x269f30(0x365),_0x222c74=_0x269f30(0x144);var _0x309bca=(_0x36be9b=>(_0x36be9b[_0x269f30(0x364)]=_0x269f30(0x29d),_0x36be9b['Panel']='panel',_0x36be9b[_0x269f30(0x261)]=_0x269f30(0x2c6),_0x36be9b[_0x269f30(0x416)]=_0x269f30(0x416),_0x36be9b[_0x269f30(0x2b0)]=_0x269f30(0x1aa),_0x36be9b[_0x269f30(0x2e5)]='movePivotField',_0x36be9b[_0x269f30(0x21b)]='removePivotField',_0x36be9b['SetPivotCollapse']='setPivotCollapse',_0x36be9b[_0x269f30(0x1dd)]=_0x269f30(0x411),_0x36be9b[_0x269f30(0x173)]='setPivotSort',_0x36be9b['SetPivotSetting']='setPivotSetting',_0x36be9b[_0x269f30(0x2ed)]=_0x269f30(0x1d9),_0x36be9b[_0x269f30(0x37d)]=_0x269f30(0x2f5),_0x36be9b[_0x269f30(0x1ea)]=_0x269f30(0x246),_0x36be9b[_0x269f30(0x12e)]=_0x269f30(0x367),_0x36be9b[_0x269f30(0x20a)]='setPivotTableConfig',_0x36be9b['ResetPivotTable']='resetPivotTable',_0x36be9b))(_0x309bca||{});const _0xe92215={'sheets-pivot.blankValue':_0x269f30(0x35a),'sheets-pivot.columnName':_0x269f30(0x22f),'sheets-pivot.subTotalText':_0x269f30(0x19a),'sheets-pivot.grandTotalText':_0x269f30(0x373),'sheets-pivot.valueText':_0x269f30(0x295),'sheets-pivot.averageName':_0x269f30(0x1d8),'sheets-pivot.countName':_0x269f30(0x3c7),'sheets-pivot.countNumsName':_0x269f30(0x3c7),'sheets-pivot.maxName':_0x269f30(0x3b2),'sheets-pivot.minName':'Min\x20of\x20','sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':_0x269f30(0x2d1),'sheets-pivot.stdDevpName':_0x269f30(0x1dc),'sheets-pivot.sumName':_0x269f30(0x1e3),'sheets-pivot.varName':'Var\x20of\x20','sheets-pivot.varpName':_0x269f30(0x3ee),'sheets-pivot.subTotal':_0x269f30(0x207),'sheets-pivot.grandTotal':_0x269f30(0x373),'sheets-pivot.value':_0x269f30(0x2b7),'sheets-pivot.blank':_0x269f30(0x232),'sheets-pivot.emptyPivot.filter':_0x269f30(0x364),'sheets-pivot.emptyPivot.row':_0x269f30(0x276),'sheets-pivot.emptyPivot.column':_0x269f30(0x291),'sheets-pivot.emptyPivot.values':_0x269f30(0x283)},_0x105c35={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x324296=_0x194133[_0x269f30(0x395)](_0x269f30(0x3a8)),_0x336322=_0x194133[_0x269f30(0x362)](_0x269f30(0x201));var _0x23380f=(_0x2e4763=>(_0x2e4763[_0x269f30(0x176)]=_0x269f30(0x176),_0x2e4763[_0x269f30(0x3bd)]=_0x269f30(0x3bd),_0x2e4763[_0x269f30(0x299)]=_0x269f30(0x299),_0x2e4763))(_0x23380f||{}),_0x12d3c2=(_0x46a1db=>(_0x46a1db[_0x269f30(0x3b6)]=_0x269f30(0x176),_0x46a1db[_0x269f30(0x310)]=_0x269f30(0x302),_0x46a1db[_0x269f30(0x1f6)]=_0x269f30(0x3bd),_0x46a1db))(_0x12d3c2||{});const _0x3e18a0={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x1ef),'handler':()=>!0x0},_0x315e2a={'type':_0x194133['CommandType'][_0x269f30(0x13b)],'id':_0x269f30(0x236),'handler':()=>!0x0},_0x13001c={'type':_0x194133['CommandType'][_0x269f30(0x13b)],'id':_0x269f30(0x1bb),'handler':()=>!0x0},_0x1b8224={'type':_0x194133[_0x269f30(0x43a)]['MUTATION'],'id':'sheet.mutation.send-pivot-config-local','handler':()=>!0x0},_0x397dda={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x319),'handler':()=>!0x0};var _0x9b161e=Object[_0x269f30(0x1a6)],_0x1a4ba6=(_0x38ef1a,_0x5afbfd,_0x38abca,_0xaaa4f7)=>{const _0x183aee=_0x269f30;for(var _0x113968=_0xaaa4f7>0x1?void 0x0:_0xaaa4f7?_0x9b161e(_0x5afbfd,_0x38abca):_0x5afbfd,_0x2180c3=_0x38ef1a[_0x183aee(0x1ed)]-0x1,_0x36b2fe;_0x2180c3>=0x0;_0x2180c3--)(_0x36b2fe=_0x38ef1a[_0x2180c3])&&(_0x113968=_0x36b2fe(_0x113968)||_0x113968);return _0x113968;},_0x3e3405=(_0x542945,_0x291637)=>(_0x1b9e6b,_0x400ce2)=>_0x291637(_0x1b9e6b,_0x400ce2,_0x542945);_0x1aec1a[_0x269f30(0x2e6)]=class extends _0x194133[_0x269f30(0x2a8)]{constructor(_0x2140df){const _0x389ba7=_0x269f30;super(),_0x327454(this,_0x389ba7(0x31d),new Map()),this['_commandService']=_0x2140df;}[_0x269f30(0x3f5)](_0xeba74b){const _0x52baa9=_0x269f30,{version:_0x347061}=_0xeba74b,_0xa9ff16=this[_0x52baa9(0x31d)][_0x52baa9(0x33f)](_0x347061);_0xa9ff16&&(_0xa9ff16(_0xeba74b),this[_0x52baa9(0x31d)]['delete'](_0x347061));}[_0x269f30(0x38b)](_0x225ff8){return new Promise((_0x3fea27,_0x49d005)=>{const _0x4c3650=_0x10c7,_0x59c7b5=this[_0x4c3650(0x376)]();this[_0x4c3650(0x31d)][_0x4c3650(0x302)](_0x59c7b5,_0x3fea27),this[_0x4c3650(0x394)][_0x4c3650(0x168)](_0x3e18a0['id'],{'version':_0x59c7b5,..._0x225ff8},{'onlyLocal':!0x0});});}[_0x269f30(0x376)](){const _0x27d50f=_0x269f30;return Math['random']()[_0x27d50f(0x380)](0x24)[_0x27d50f(0x259)](0x2,0x10);}},_0x1aec1a['SheetsPivotRPCService']=_0x1a4ba6([_0x3e3405(0x0,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x3a4)]))],_0x1aec1a['SheetsPivotRPCService']);const _0xeeca93={0x0:'G',0x1:'V',0x2:'0',0x3:'n',0x4:'D',0x5:'2',0x6:'L',0x7:'k',0x8:'v',0x9:'i','i':'1','C':'3','r':'4','y':'5','F':'6','R':'7','g':'8','S':'9','w':'a','a':'b','V':'c','p':'d','Z':'e','U':'f','E':'g','I':'h','q':'j','f':'l','X':'m','A':'o','O':'p','b':'q','k':'r','T':'s','J':'t','h':'u','c':'w','v':'x','d':'y','W':'z','L':'A','z':'B','o':'C','N':'E','D':'F','x':'H','l':'I','G':'J','B':'K','t':'M','P':'N','M':'O','n':'P','e':'Q','m':'R','Q':'S','H':'T','K':'U','u':'W','s':'X','Y':'Y','j':'Z'},_0x181ab1=_0x269f30(0x371),_0x915b6c=_0x163969=>{const _0x42b482=_0x269f30;var _0x5e205d;return((_0x5e205d=_0x163969[_0x42b482(0x39e)])==null?void 0x0:_0x5e205d[_0x42b482(0x222)][_0x42b482(0x260)](/\r\n$/,''))||'';};class _0xbb9afc extends _0x2c142[_0x269f30(0x25b)]{constructor(_0x59edb5,_0x47f2ae){const _0x106e21=_0x269f30;super(),_0x327454(this,_0x106e21(0x37f),{}),_0x327454(this,_0x106e21(0x1de)),_0x327454(this,_0x106e21(0x345)),(this[_0x106e21(0x1de)]=_0x47f2ae,this['_host']=_0x59edb5);}[_0x269f30(0x181)](){const _0x368438=_0x269f30;for(const _0x4b3045 in this[_0x368438(0x3cf)]){const _0x58a45c=this[_0x368438(0x3cf)][_0x4b3045],_0xc46484=_0x58a45c[_0x368438(0x12d)]();this[_0x368438(0x37f)][_0xc46484]=_0x58a45c['getId']();}}['getAutoDisplayNameFunction'](){const _0x32dadb=_0x269f30,_0x5eb9f7=this[_0x32dadb(0x345)];return _0x15c3f8[_0x32dadb(0x1fc)](_0x5eb9f7);}['deleteDataField'](_0x18ce7b){const _0x2046af=_0x269f30,_0x1d113b=this[_0x2046af(0x3cf)][_0x18ce7b]['rangeKey'];delete this[_0x2046af(0x3cf)][_0x18ce7b],delete this[_0x2046af(0x37f)][_0x1d113b];}['addDataFieldWithoutUnitInfo'](_0x2f7f83){const _0x428916=_0x269f30;this[_0x428916(0x3cf)][_0x2f7f83[_0x428916(0x3f3)]()]=_0x2f7f83;}[_0x269f30(0x2eb)](_0x7b39d7){const _0x2b944f=_0x269f30;var _0x12bf95,_0x153880;const _0x14a9d2=this[_0x2b944f(0x345)]['getTargetByPivotId'](_0x7b39d7);if(_0x14a9d2){const {unitId:_0xc04ed4,subUnitId:_0x2bbcf4}=_0x14a9d2,_0x4bc84a=(_0x12bf95=this[_0x2b944f(0x345)][_0x2b944f(0x189)](_0xc04ed4,_0x2bbcf4,_0x7b39d7))==null?void 0x0:_0x12bf95[_0x2b944f(0x42d)];this[_0x2b944f(0x345)][_0x2b944f(0x2ce)]({'token':_0x7b39d7,'type':_0x23380f[_0x2b944f(0x3bd)],'dataRangeInfo':_0x4bc84a});}(_0x153880=this[_0x2b944f(0x267)](_0x7b39d7))==null||_0x153880['dispose'](),delete this['collections'][_0x7b39d7];}[_0x269f30(0x12d)](_0x359051,_0x1e3aae){const _0x3788b4=_0x269f30,{sheetName:_0x53500c,unitId:_0x11b975,range:_0x354c41}=_0x359051,{startRow:_0x3bbcd0,endRow:_0xf99538}=_0x354c41;return _0x32f36e[_0x3788b4(0x2c8)](_0x11b975,_0x53500c,{'startRow':_0x3bbcd0,'endRow':_0xf99538,'startColumn':_0x1e3aae,'endColumn':_0x1e3aae});}[_0x269f30(0x166)](_0x1465d7){const _0x42674d=_0x269f30;return this[_0x42674d(0x3cf)][this[_0x42674d(0x37f)][_0x1465d7]];}[_0x269f30(0x20b)](_0x368ec1,_0x3c99ea){const _0x36adb=_0x269f30;this[_0x36adb(0x37f)][_0x368ec1]=_0x3c99ea;}[_0x269f30(0x284)](_0x7388e3,_0x5d4679){const _0x39e9fb=_0x269f30;this['rangeKeyMap'][_0x5d4679]=this[_0x39e9fb(0x37f)][_0x7388e3],delete this[_0x39e9fb(0x37f)][_0x7388e3];}[_0x269f30(0x2d8)](_0x2ac70c,_0x1447a5,_0x37855f,_0x370635){const _0x16ee01=_0x269f30,_0x363774=new _0x2c142['FieldsCollection'](this);_0x363774['fromJSON'](_0x1447a5);const _0x29a14b=[];let _0xd1051f=0x0;for(const _0x122ecd of _0x363774[_0x16ee01(0x1e5)]){const _0xeb7d37=this['getRangeKey'](_0x37855f,_0xd1051f),_0x4d66d1=this[_0x16ee01(0x3cf)][_0x122ecd];_0x4d66d1&&(_0x4d66d1['rangeKey']=_0xeb7d37,this[_0x16ee01(0x20b)](_0xeb7d37,_0x122ecd),_0x29a14b['push']({'index':_0xd1051f,'dataField':_0x4d66d1})),_0xd1051f++;}return this[_0x16ee01(0x1ff)](_0x2ac70c,_0x363774,_0x37855f,_0x370635),{'collection':_0x363774,'updateDataFieldList':_0x29a14b};}[_0x269f30(0x279)](_0xbfd0da,_0x4d288b){const _0x48ab27=_0x269f30;return _0xbfd0da[_0x48ab27(0x278)]===_0x194133[_0x48ab27(0x3b5)][_0x48ab27(0x390)]?{'startRow':0x0,'startColumn':_0xbfd0da[_0x48ab27(0x152)],'endRow':_0x4d288b[_0x48ab27(0x3d5)]()-0x1,'endColumn':_0xbfd0da[_0x48ab27(0x12c)]}:{'startRow':_0xbfd0da[_0x48ab27(0x159)],'startColumn':_0xbfd0da[_0x48ab27(0x152)],'endRow':_0xbfd0da[_0x48ab27(0x2a5)],'endColumn':_0xbfd0da[_0x48ab27(0x12c)]};}['createCollectionWithDataRange'](_0x4b7c5f){const _0x433251=_0x269f30,{sheetName:_0x21f09d,range:_0x50bdef}=_0x4b7c5f,_0x14b661=this[_0x433251(0x1de)][_0x433251(0x2a0)](_0x194133[_0x433251(0x1c8)]['UNIVER_SHEET']),_0x249815=_0x14b661[_0x433251(0x28c)](_0x21f09d),_0x279694=_0x249815[_0x433251(0x25f)](),{startColumn:_0x21ad45,startRow:_0x10ed2d,endColumn:_0x473a8f}=this[_0x433251(0x279)](_0x50bdef,_0x249815),_0x2963e6=_0x14b661[_0x433251(0x1ba)](),_0x10b53d=new _0x2c142['FieldsCollection'](this);_0x10b53d[_0x433251(0x1d6)](_0x4b7c5f);const _0x2a8b4d=[],_0x1b2788={};for(let _0x321e59=_0x21ad45;_0x321e59<=_0x473a8f;_0x321e59++){const _0x5f704c=_0x279694[_0x433251(0x1da)](_0x10ed2d,_0x321e59),_0x44507b=this[_0x433251(0x12d)](_0x4b7c5f,_0x321e59),_0x327e1c=this[_0x433251(0x166)](_0x44507b);if(_0x327e1c)_0x10b53d[_0x433251(0x3a0)](_0x327e1c['getId'](),_0x327e1c[_0x433251(0x2a1)]());else{const _0x56a3d6=this[_0x433251(0x169)]();let _0x57d808=this[_0x433251(0x1ab)](_0x5f704c,_0x2963e6,_0x1b2788);_0x2c142[_0x433251(0x24a)](_0x57d808)&&(_0x57d808=_0x194133[_0x433251(0x1df)][_0x433251(0x3dc)](_0x57d808['f'],Number(_0x57d808['v'])));const _0xeb047c=this['uniqueDataFieldName'](_0x57d808,_0x321e59),_0x575367=new _0x2c142[(_0x433251(0x215))](_0x56a3d6,_0xeb047c,_0x2c142['generateHexNumber'](0x3));_0x575367[_0x433251(0x413)]=_0x44507b,this[_0x433251(0x3cf)][_0x56a3d6]=_0x575367,_0x10b53d[_0x433251(0x3a0)](_0x56a3d6,_0xeb047c),_0x2a8b4d[_0x433251(0x3fe)]({'index':_0x321e59,'dataField':_0x575367});}}return{'updateDataFieldList':_0x2a8b4d,'collection':_0x10b53d};}['_getAutoName'](_0x591929){const _0x37cfca=_0x269f30;return this['_host'][_0x37cfca(0x429)]()[_0x37cfca(0x43b)]+'\x20'+_0x194133[_0x37cfca(0x1cf)](_0x591929);}[_0x269f30(0x1a2)](_0x59016d,_0x2e5b4a){const _0x5e7843=_0x269f30;return _0x59016d==null||_0x59016d===''?this[_0x5e7843(0x16c)](_0x2e5b4a):String(_0x59016d);}[_0x269f30(0x267)](_0x10b3c6){const _0x56ba0f=_0x269f30;return this[_0x56ba0f(0x303)][_0x10b3c6];}['addCollection'](_0x5d630e,_0x41ed55,_0x20198c,_0x5abaef){const _0x5249f5=_0x269f30;this[_0x5249f5(0x303)][_0x5d630e]=_0x41ed55,_0x41ed55[_0x5249f5(0x1d6)](_0x20198c),this[_0x5249f5(0x345)]['broadcastCollectionChange']({'token':_0x5d630e,'type':_0x23380f[_0x5249f5(0x176)],'dataRangeInfo':_0x20198c,'targetCellInfo':_0x5abaef});}[_0x269f30(0x129)](_0x1bc600,_0x5b0afa){const _0x2e46b4=_0x269f30,_0x4fa44a=this[_0x2e46b4(0x267)](_0x1bc600),_0x16ab84=_0x4fa44a[_0x2e46b4(0x2e2)]();let _0x55fa41=0x0;for(const _0x125ee6 of _0x16ab84){const _0x12281c=_0x4fa44a['getFieldById'](_0x125ee6),_0x187d7b=this[_0x2e46b4(0x12d)](_0x5b0afa,_0x55fa41);this[_0x2e46b4(0x284)](_0x12281c[_0x2e46b4(0x413)],_0x187d7b),_0x55fa41++;}}[_0x269f30(0x3a1)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x269f30(0x3d1)](_0x4f676d,_0x3195e5){const _0x541fcd=_0x269f30;if(this[_0x541fcd(0x267)](_0x4f676d)){const _0x8d87aa=this[_0x541fcd(0x1c5)](_0x3195e5),_0x2a6701=[];for(const _0x505879 of _0x8d87aa)this[_0x541fcd(0x37f)][_0x505879]!==void 0x0&&_0x2a6701['push'](this['rangeKeyMap'][_0x505879]);const _0x394030=this[_0x541fcd(0x274)](_0x4f676d),_0x5a3d0c=[],_0x46d8a2=new Set(_0x2a6701);for(const _0x4abc6a of _0x394030)_0x46d8a2[_0x541fcd(0x224)](_0x4abc6a)||_0x5a3d0c[_0x541fcd(0x3fe)](_0x4abc6a);return _0x5a3d0c;}}['getMatrixValue'](_0x24f9b9,_0x1b29f8,_0x260cd6,_0x4fa776,_0x75a86f){const _0x499cf4=_0x269f30;return _0x1b29f8&&_0x1b29f8[_0x499cf4(0x1da)](_0x4fa776,_0x75a86f)?_0x1b29f8['getValue'](_0x4fa776,_0x75a86f):_0x260cd6&&_0x260cd6[_0x499cf4(0x1da)](_0x4fa776,_0x75a86f)?_0x260cd6['getValue'](_0x4fa776,_0x75a86f):_0x24f9b9[_0x499cf4(0x1da)](_0x4fa776,_0x75a86f);}[_0x269f30(0x21f)](_0x267435,_0x297851,_0xabcdaa,_0x42e79f){const _0x5e9355=_0x269f30,_0x47649e=this[_0x5e9355(0x3cf)][_0x267435];if(!_0x47649e)return;const {subUnitId:_0x71e7a6,range:_0x41ba03,unitId:_0x14728d}=_0x297851,_0x1aa2c5=this[_0x5e9355(0x1de)][_0x5e9355(0x27f)](_0x14728d);if(!_0x1aa2c5){console['error'](_0x5e9355(0x133));return;}const _0x181437=_0x1aa2c5[_0x5e9355(0x290)](_0x71e7a6),_0x21f4bd=_0x181437[_0x5e9355(0x25f)](),{arrayFormulaCellDataMatrix:_0x36dca5,unitDataMatrix:_0x16c772}=_0x42e79f||{},{startRow:_0x3b2e5c,startColumn:_0x423d3e,endRow:_0x2f1204}=this['getRangeStartEndInfo'](_0x41ba03,_0x181437);_0x47649e['reset']();const _0x2b7d3c=_0x1aa2c5['getStyles'](),_0x752010={},_0x21c823=this[_0x5e9355(0x32f)](_0x21f4bd,_0x36dca5,_0x16c772,_0x3b2e5c,_0x423d3e+_0xabcdaa);let _0x18cf11=this[_0x5e9355(0x1ab)](_0x21c823,_0x2b7d3c,_0x752010);_0x2c142[_0x5e9355(0x24a)](_0x18cf11)&&(_0x18cf11=_0x194133[_0x5e9355(0x1df)][_0x5e9355(0x3dc)](_0x18cf11['f'],Number(_0x18cf11['v'])));const _0x4a5493=this[_0x5e9355(0x1a2)](_0x18cf11,_0x423d3e+_0xabcdaa);_0x47649e[_0x5e9355(0x3e6)](_0x4a5493);for(let _0x339db7=_0x3b2e5c+0x1;_0x339db7<=_0x2f1204;_0x339db7++){const _0x2bf48a=this['getMatrixValue'](_0x21f4bd,_0x36dca5,_0x16c772,_0x339db7,_0x423d3e+_0xabcdaa);_0x47649e['addRecord'](this[_0x5e9355(0x1ab)](_0x2bf48a,_0x2b7d3c,_0x752010),_0x339db7-0x1-_0x3b2e5c);}}[_0x269f30(0x329)](_0xfb8576,_0x319c31,_0x8a19cc){const _0x2177a1=_0x269f30,{subUnitId:_0x52c03e,range:_0x1e3d6d,unitId:_0x3aa916}=_0x8a19cc,_0x4313ad=this[_0x2177a1(0x1de)][_0x2177a1(0x27f)](_0x3aa916);if(!_0x4313ad){console[_0x2177a1(0x27b)](_0x2177a1(0x133));return;}const _0x1ca57a=_0x4313ad[_0x2177a1(0x290)](_0x52c03e),_0x4359fb=_0x1ca57a[_0x2177a1(0x25f)](),{startRow:_0x177277,startColumn:_0x23e5c4,endRow:_0x50a9c1}=this['getRangeStartEndInfo'](_0x1e3d6d,_0x1ca57a),_0x2a9877=_0x4313ad[_0x2177a1(0x1ba)](),_0x5526da={};for(const {dataField:_0x5569c8,index:_0x5e3e13}of _0x319c31){_0x5569c8[_0x2177a1(0x41a)]();const _0x5eb718=this[_0x2177a1(0x32f)](_0x4359fb,void 0x0,void 0x0,_0x177277,_0x23e5c4+_0x5e3e13);let _0xf68ce5=this['adjustSheetCellData'](_0x5eb718,_0x2a9877,_0x5526da);_0x2c142['isDateValue'](_0xf68ce5)&&(_0xf68ce5=_0x194133[_0x2177a1(0x1df)]['format'](_0xf68ce5['f'],Number(_0xf68ce5['v'])));const _0x206e8e=this[_0x2177a1(0x1a2)](_0xf68ce5,_0x23e5c4+_0x5e3e13);_0x5569c8[_0x2177a1(0x3e6)](_0x206e8e);}_0xfb8576[_0x2177a1(0x171)]();for(let _0x20f78d=_0x177277+0x1;_0x20f78d<=_0x50a9c1;_0x20f78d++)for(const {index:_0x1bc9dd,dataField:_0x5aa954}of _0x319c31){const _0x2eeb2f=_0x4359fb[_0x2177a1(0x1da)](_0x20f78d,_0x23e5c4+_0x1bc9dd);_0x5aa954[_0x2177a1(0x130)](this[_0x2177a1(0x1ab)](_0x2eeb2f,_0x2a9877,_0x5526da),_0x20f78d-0x1-_0x177277);}_0xfb8576['setDataRecordCount'](_0x50a9c1-_0x177277);}[_0x269f30(0x1c5)](_0xbcab3d){const _0x57fd9c=_0x269f30,{range:_0x596827}=_0xbcab3d,{startColumn:_0x4f8776,endColumn:_0xfbd03e}=_0x596827,_0x21f7c7=[];for(let _0x4d6af5=_0x4f8776;_0x4d6af5<=_0xfbd03e;_0x4d6af5++)_0x21f7c7[_0x57fd9c(0x3fe)](this['getRangeKey'](_0xbcab3d,_0x4d6af5));return _0x21f7c7;}['adjustSheetCellData'](_0x2cffc6,_0x79089c,_0x5ee5ee){const _0x511331=_0x269f30;if(_0x2cffc6){const {s:_0x496ed1,v:_0x574c3d,t:_0x2b6c28,p:_0x319a4e}=_0x2cffc6;if(_0x319a4e)return _0x915b6c(_0x319a4e);const _0x458357=_0x79089c[_0x511331(0x33f)](_0x496ed1);if(_0x458357&&_0x2b6c28===_0x194133[_0x511331(0x2f6)][_0x511331(0x28f)]&&_0x458357['n']){const {pattern:_0x5f50d7}=_0x458357['n'];_0x5ee5ee[_0x5f50d7]||(_0x5ee5ee[_0x5f50d7]=_0x194133[_0x511331(0x1df)]['getFormatInfo'](_0x5f50d7));const _0x31b8d5=_0x5ee5ee[_0x5f50d7],_0x3dcc9a=_0x31b8d5[_0x511331(0x363)];if(_0x31b8d5['isText'])return String(_0x574c3d);if(_0x3dcc9a)return{'v':_0x574c3d,'f':_0x5f50d7};}if(_0x2b6c28===_0x194133['CellValueType'][_0x511331(0x28f)])return Number(_0x574c3d);if(_0x2b6c28===_0x194133['CellValueType']['STRING']||_0x2b6c28===_0x194133['CellValueType'][_0x511331(0x393)])return String(_0x574c3d);if(_0x2b6c28===void 0x0){const _0x11775b=Number(_0x574c3d);if(!Number[_0x511331(0x347)](_0x11775b)&&String(_0x11775b)===_0x574c3d)return _0x11775b;}return _0x574c3d!=null?_0x574c3d:null;}else return null;}[_0x269f30(0x154)](_0x902bae){const _0x20970c=_0x269f30,{sheetName:_0x1c13a8,range:_0xd7c05e,unitId:_0x26e8d2}=_0x902bae,_0x47b632=this[_0x20970c(0x1de)][_0x20970c(0x27f)](_0x26e8d2);if(!_0x47b632)return console[_0x20970c(0x27b)](_0x20970c(0x133)),{'header':[],'data':[]};const _0x4e91f2=_0x47b632['getSheetBySheetName'](_0x1c13a8),_0x14d5b6=_0x4e91f2[_0x20970c(0x25f)](),{startRow:_0x409ad7,startColumn:_0x21c2df,endRow:_0x36a34d,endColumn:_0xd20f5e}=this[_0x20970c(0x279)](_0xd7c05e,_0x4e91f2),_0x2f8737=_0x47b632[_0x20970c(0x1ba)](),_0x302248=[],_0x2cb070=[],_0x214ae9={};for(let _0x3aa19a=_0x409ad7;_0x3aa19a<=_0x36a34d;_0x3aa19a++){const _0x5dfa20=[];for(let _0x3ca9ac=_0x21c2df;_0x3ca9ac<=_0xd20f5e;_0x3ca9ac++){const _0xc843b8=_0x14d5b6['getValue'](_0x3aa19a,_0x3ca9ac);_0x3aa19a===_0x409ad7?_0x302248[_0x20970c(0x3fe)](_0xc843b8==null?null:String(_0xc843b8['v'])):_0x5dfa20['push'](this[_0x20970c(0x1ab)](_0xc843b8,_0x2f8737,_0x214ae9));}_0x2cb070[_0x20970c(0x3fe)](_0x5dfa20);}return{'header':_0x302248,'data':_0x2cb070};}[_0x269f30(0x434)](){return super['toJSON']();}[_0x269f30(0x3ed)](_0xf240eb){const _0x1bd52a=_0x269f30;super['fromJSON'](_0xf240eb),this[_0x1bd52a(0x181)]();}[_0x269f30(0x157)](){const _0x1aaca2=_0x269f30;super[_0x1aaca2(0x157)](),this['rangeKeyMap']={},this[_0x1aaca2(0x345)]=null;}}const _0x538a93=_0x384fe7=>{const _0x101b4b=_0x269f30,{targetCellInfo:_0x74235b}=_0x384fe7,{matrixCache:_0x59a4b1,rangesCache:_0x3e2843}=_0x3656fa({'filter':_0x101b4b(0x364),'row':'Row','column':_0x101b4b(0x291),'values':_0x101b4b(0x283)},_0x74235b),_0x555c1a=new _0x194133[(_0x101b4b(0x1c4))]();return _0x59a4b1[_0x101b4b(0x421)]((_0x1b7987,_0x360ee3,_0x4b0ca7)=>{const _0x3a120f=_0x101b4b;_0x555c1a[_0x3a120f(0x26e)](_0x1b7987,_0x360ee3,_0x4b0ca7);}),{'matrix':_0x555c1a,'rangesCache':_0x3e2843};},_0x2ff397=_0x1724ea=>{const _0x37388f=_0x269f30;let _0x28894f;if(_0x1724ea!=null&&_0x1724ea['v']||(_0x1724ea==null?void 0x0:_0x1724ea['v'])===0x0){_0x28894f||(_0x28894f={});const _0x2bf86b=_0x3b3acc(_0x1724ea['v']);typeof _0x2bf86b==_0x37388f(0x264)?_0x28894f['t']=_0x194133[_0x37388f(0x2f6)][_0x37388f(0x28f)]:typeof _0x2bf86b==_0x37388f(0x174)&&(_0x28894f['t']=_0x194133[_0x37388f(0x2f6)][_0x37388f(0x3ec)]),_0x28894f['v']=_0x2bf86b;}return _0x28894f;},_0xdf484d=(_0x6b87b1,_0x68530a,_0x40e72f)=>{const _0xa84ea=_0x269f30;var _0x4ea13f,_0x294eac,_0x533c57,_0x3a9664,_0x27f23d,_0x454143,_0x58d99d,_0x4b6e27,_0x37a8d0,_0x1a73f4,_0x487ca6,_0x553e3c;const {cornerView:_0x14f239,rowView:_0x25157a,colView:_0xc929da,dataView:_0x518859,pageView:_0x418a1c,formatMap:_0x2793bc}=_0x6b87b1,{row:_0x417986,col:_0x47f67e}=_0x68530a,_0x567c60=new _0x194133[(_0xa84ea(0x1c4))]();let _0x5411f5=_0x417986,_0x21cecf=_0x47f67e;Object[_0xa84ea(0x243)](_0x418a1c[_0xa84ea(0x3e8)])['forEach'](_0x4c5808=>{const _0x2191b1=_0xa84ea;Object['keys'](_0x418a1c['data'][Number(_0x4c5808)])[_0x2191b1(0x2cd)](_0x2ea7c1=>{const _0x7b49ff=_0x2191b1,_0x5120cd={..._0x418a1c[_0x7b49ff(0x3e8)][Number(_0x4c5808)][Number(_0x2ea7c1)]};_0x567c60[_0x7b49ff(0x26e)](Number(_0x4c5808)+_0x5411f5,Number(_0x2ea7c1)+_0x21cecf,_0x2ff397(_0x5120cd));});});const _0x542380=Object[_0xa84ea(0x243)](_0x418a1c['data'])[_0xa84ea(0x1ed)];_0x5411f5+=_0x542380+(_0x542380?_0x4f4430:0x0);const _0x2b264f=_0x14f239[_0xa84ea(0x3d5)](),_0x217156=_0x14f239['getColCount']();for(let _0x36b167=0x0;_0x36b167<_0x2b264f;_0x36b167++)for(let _0x20b9bd=0x0;_0x20b9bd<_0x217156;_0x20b9bd++){const _0x56fd03={...(_0x294eac=(_0x4ea13f=_0x14f239['data'])==null?void 0x0:_0x4ea13f[_0x36b167])==null?void 0x0:_0x294eac[_0x20b9bd]};_0x56fd03&&((_0x533c57=_0x25157a['headerMap'][_0x20b9bd])!=null&&_0x533c57[_0xa84ea(0x209)])&&_0x20b9bd===_0x217156-0x1&&_0x36b167===_0x2b264f-0x1&&(_0x56fd03['v']=''+_0x40e72f['sheets-pivot.value']),_0x567c60[_0xa84ea(0x26e)](_0x36b167+_0x5411f5,_0x20b9bd+_0x21cecf,_0x2ff397(_0x56fd03));}_0x21cecf+=_0x217156;const _0x2821c0=_0xc929da[_0xa84ea(0x36f)],_0x389e4b=_0xc929da[_0xa84ea(0x401)]()>=0x0?_0xc929da[_0xa84ea(0x401)]()+0x1:0x0,_0x5dcd05=_0xc929da[_0xa84ea(0x2db)]()>=0x0?_0xc929da[_0xa84ea(0x2db)]()+0x1:0x0;for(let _0x34b4a6=0x0;_0x34b4a6<_0x5dcd05;_0x34b4a6++)for(let _0xf80aad=0x0;_0xf80aad<_0x389e4b;_0xf80aad++){const _0x127596={...(_0x27f23d=(_0x3a9664=_0xc929da[_0xa84ea(0x3e8)])==null?void 0x0:_0x3a9664[_0x34b4a6])==null?void 0x0:_0x27f23d[_0xf80aad]},_0x2089d4=(_0x454143=_0x2821c0[_0x34b4a6])==null?void 0x0:_0x454143['tableFieldId'],_0x5237fa=_0x2793bc[_0x2089d4];_0x127596&&(_0x127596['v']=_0x22213a(_0x127596,_0x34b4a6===0x0&&((_0x58d99d=_0xc929da['getHeaderMapItem'](_0xf80aad+0x1))==null?void 0x0:_0x58d99d[_0xa84ea(0x209)]),_0x5237fa,_0x40e72f)),_0x567c60[_0xa84ea(0x26e)](_0x34b4a6+_0x5411f5,_0xf80aad+_0x21cecf,_0x2ff397(_0x127596));}_0x5411f5+=_0x2b264f;const _0xa5879a=_0x25157a['headerMap'],_0x43eb19=_0x25157a[_0xa84ea(0x401)]()>=0x0?_0x25157a[_0xa84ea(0x401)]()+0x1:0x0,_0xe3d763=_0x25157a['getLastCol']()>=0x0?_0x25157a[_0xa84ea(0x2db)]()+0x1:0x0;for(let _0x4321ee=0x0;_0x4321ee<_0x43eb19;_0x4321ee++)for(let _0x27b410=0x0;_0x27b410<_0xe3d763;_0x27b410++){const _0x2aedc9={...(_0x37a8d0=(_0x4b6e27=_0x25157a[_0xa84ea(0x3e8)])==null?void 0x0:_0x4b6e27[_0x4321ee])==null?void 0x0:_0x37a8d0[_0x27b410]},_0x28fd4d=(_0x1a73f4=_0xa5879a[_0x27b410])==null?void 0x0:_0x1a73f4['tableFieldId'],_0x520ce5=_0x2793bc[_0x28fd4d];_0x2aedc9&&(_0x2aedc9['v']=_0x22213a(_0x2aedc9,!0x1,_0x520ce5,_0x40e72f)),_0x567c60[_0xa84ea(0x26e)](_0x4321ee+_0x5411f5,_0x27b410+_0x47f67e,_0x2ff397(_0x2aedc9));}const _0x1ce34b=_0x518859['getRowCount'](),_0x21a9e5=_0x518859[_0xa84ea(0x25c)]();for(let _0x4d6bab=0x0;_0x4d6bab<_0x1ce34b;_0x4d6bab++)for(let _0x150779=0x0;_0x150779<_0x21a9e5;_0x150779++){const _0x2c3682={...(_0x553e3c=(_0x487ca6=_0x518859[_0xa84ea(0x3e8)])==null?void 0x0:_0x487ca6[_0x4d6bab])==null?void 0x0:_0x553e3c[_0x150779]};_0x567c60[_0xa84ea(0x26e)](_0x4d6bab+_0x5411f5,_0x150779+_0x21cecf,_0x2ff397(_0x2c3682));}return _0x567c60;},_0x4fdb85=_0x5b7fe4=>{const _0x5b607f=_0x269f30,{view:_0x5e487e,targetCellInfo:_0x89089c,isEmpty:_0x241701,textInfo:_0x16084f}=_0x5b7fe4;if(_0x241701)return _0x538a93(_0x5b7fe4);const {pageView:_0x211c77,cornerView:_0x9d20d0,rowView:_0x2076e8,colView:_0xba0881,dataView:_0x57e77a}=_0x5e487e,_0x4d0945=_0x4c3feb(_0x89089c,_0x211c77,!0x0),_0x20ea5b=_0x211c77[_0x5b607f(0x2d7)]>=0x0?_0x211c77[_0x5b607f(0x2d7)]+0x1:0x0,_0xb23736=_0x9d20d0[_0x5b607f(0x3d5)](),_0x4067d7=_0x9d20d0[_0x5b607f(0x25c)](),_0x3dd3e2=_0x4d0945[_0x5b607f(0x1ed)]>0x0?_0x4f4430:0x0,_0x5602ba=_0x4c3feb({'row':_0x89089c[_0x5b607f(0x26d)]+_0x20ea5b+_0x3dd3e2,'col':_0x89089c['col']},_0x9d20d0,!0x1,!0x1),_0x273d28=_0x4c3feb({'row':_0x89089c[_0x5b607f(0x26d)]+_0x20ea5b+_0x3dd3e2+_0xb23736,'col':_0x89089c['col']},_0x2076e8,!0x1,!0x0),_0x1bcda4=_0x4c3feb({'row':_0x89089c['row']+_0x20ea5b+_0x3dd3e2,'col':_0x89089c[_0x5b607f(0x35b)]+_0x4067d7},_0xba0881,!0x1,!0x0),_0x5ea086=_0x4c3feb({'row':_0x89089c[_0x5b607f(0x26d)]+_0x20ea5b+_0x3dd3e2+_0xb23736,'col':_0x89089c['col']+_0x4067d7},_0x57e77a,!0x1,!0x1),_0x399aab={'rowRanges':_0x273d28,'colRanges':_0x1bcda4,'cornerRanges':_0x5602ba,'dataRanges':_0x5ea086,'pageRanges':_0x4d0945};return{'matrix':_0xdf484d(_0x5e487e,_0x89089c,_0x16084f),'rangesCache':_0x399aab};};var _0x5bbca4=Object['getOwnPropertyDescriptor'],_0xb02d33=(_0x2b16f5,_0x14e95b,_0x17d2e3,_0xb35131)=>{const _0x439ee5=_0x269f30;for(var _0x2ac4e9=_0xb35131>0x1?void 0x0:_0xb35131?_0x5bbca4(_0x14e95b,_0x17d2e3):_0x14e95b,_0x483484=_0x2b16f5[_0x439ee5(0x1ed)]-0x1,_0x53f61a;_0x483484>=0x0;_0x483484--)(_0x53f61a=_0x2b16f5[_0x483484])&&(_0x2ac4e9=_0x53f61a(_0x2ac4e9)||_0x2ac4e9);return _0x2ac4e9;},_0x168711=(_0x3a69de,_0x30d810)=>(_0x493e2d,_0x1886cf)=>_0x30d810(_0x493e2d,_0x1886cf,_0x3a69de);_0x1aec1a[_0x269f30(0x12b)]=class extends _0x194133[_0x269f30(0x2a8)]{constructor(_0x478138,_0x47a187,_0x2ba6f2,_0x27ea6b,_0x301707){const _0xd79de3=_0x269f30;super(),_0x327454(this,_0xd79de3(0x39a),new Map()),_0x327454(this,'_pivotTableInstanceCache',new Map()),_0x327454(this,'_viewData',new Map()),_0x327454(this,_0xd79de3(0x282)),_0x327454(this,'_collectionChange$',new _0x2935a3['Subject']()),_0x327454(this,_0xd79de3(0x39b),this[_0xd79de3(0x1e7)][_0xd79de3(0x1f3)]()),_0x327454(this,'_viewData$',new _0x2935a3['Subject']()),_0x327454(this,'viewData$',this['_viewData$']['asObservable']()),_0x327454(this,_0xd79de3(0x3c1),new _0x2935a3['Subject']()),_0x327454(this,_0xd79de3(0x134),this[_0xd79de3(0x3c1)][_0xd79de3(0x1f3)]()),_0x327454(this,'_dataFieldManagerCollection',new Map()),_0x327454(this,'needSameDeleteModel',[]),_0x327454(this,'_queryingMap',new Map()),(this['_injector']=_0x478138,this[_0xd79de3(0x1de)]=_0x47a187,this['_lifecycleService']=_0x2ba6f2,this[_0xd79de3(0x394)]=_0x27ea6b,this['_resourceManagerService']=_0x301707,this[_0xd79de3(0x12f)]());}[_0x269f30(0x429)](){const _0x4f1f84=_0x269f30;return this[_0x4f1f84(0x282)]?this[_0x4f1f84(0x282)]:_0xe92215;}['setTextInfo'](_0xa7c600){this['_textInfo']=_0xa7c600;}[_0x269f30(0x129)](_0x59ee16){const _0x1b1155=_0x269f30;var _0x37f23d;const {from:_0x1125a0,to:_0x4fc8d0,unitId:_0x5d1b6b,fromRange:_0x4211f2,toRange:_0xc9f4e}=_0x59ee16;if(_0x1125a0&&_0x4fc8d0){const _0x544417=this[_0x1b1155(0x2c3)](_0x5d1b6b),_0x342735=this['_model'][_0x1b1155(0x33f)](_0x5d1b6b),_0x2a242e=(_0x37f23d=this[_0x1b1155(0x1de)]['getUnit'](_0x5d1b6b))==null?void 0x0:_0x37f23d[_0x1b1155(0x290)](_0x4fc8d0[_0x1b1155(0x2fb)]);if(!_0x342735||!_0x2a242e)return;const _0x17ba76=_0x2a242e==null?void 0x0:_0x2a242e['getName']();for(const [_0x5b9411,_0x555155]of _0x342735['entries']())for(const [_0x1d4f03,_0x26625f]of _0x555155[_0x1b1155(0x305)]()){const {sourceRangeInfo:_0x1c9aac}=_0x26625f;if(_0x1c9aac[_0x1b1155(0x341)]===_0x5d1b6b&&_0x1c9aac[_0x1b1155(0x2fb)]===_0x1125a0[_0x1b1155(0x2fb)]&&_0x194133[_0x1b1155(0x1ac)]['contains'](_0x4211f2,_0x1c9aac[_0x1b1155(0x286)])){const _0x51e98b={'row':_0x1c9aac[_0x1b1155(0x286)][_0x1b1155(0x159)]-_0x4211f2['startRow'],'col':_0x1c9aac[_0x1b1155(0x286)][_0x1b1155(0x152)]-_0x4211f2[_0x1b1155(0x152)]},_0x556ac0={'unitId':_0x5d1b6b,'subUnitId':_0x4fc8d0['subUnitId'],'sheetName':_0x17ba76,'range':{'startRow':_0xc9f4e[_0x1b1155(0x159)]+_0x51e98b[_0x1b1155(0x26d)],'endRow':_0xc9f4e[_0x1b1155(0x159)]+_0x51e98b[_0x1b1155(0x26d)]+_0x1c9aac[_0x1b1155(0x286)]['endRow']-_0x1c9aac['range'][_0x1b1155(0x159)],'startColumn':_0xc9f4e['startColumn']+_0x51e98b['col'],'endColumn':_0xc9f4e[_0x1b1155(0x152)]+_0x51e98b[_0x1b1155(0x35b)]+_0x1c9aac[_0x1b1155(0x286)][_0x1b1155(0x12c)]-_0x1c9aac['range'][_0x1b1155(0x152)]}};_0x544417[_0x1b1155(0x129)](_0x1d4f03,_0x556ac0);const _0x347312={..._0x26625f,'sourceRangeInfo':_0x556ac0};this['_updateModelCache'](_0x5d1b6b,_0x4fc8d0[_0x1b1155(0x2fb)],_0x1d4f03,_0x347312),this[_0x1b1155(0x2ce)]({'unitId':_0x5d1b6b,'token':_0x1d4f03,'type':_0x23380f[_0x1b1155(0x299)],'oldSourceRangeInfo':_0x1c9aac,'dataRangeInfo':_0x556ac0,'targetCellInfo':_0x26625f['targetCellInfo']}),this[_0x1b1155(0x3b4)]({'unitId':_0x5d1b6b,'subUnitId':_0x4fc8d0['subUnitId'],'oldSubUnitId':_0x5b9411,'pivotTableId':_0x1d4f03,'pivotTableConfig':_0x347312,'collectionConfig':_0x544417[_0x1b1155(0x434)]()});}}}}[_0x269f30(0x2ce)](_0x369a60){const _0x1e5a8e=_0x269f30;this[_0x1e5a8e(0x1e7)]['next'](_0x369a60);}['getDataFieldManager'](_0x592cc2){const _0x10878c=_0x269f30;let _0x227988=this['_dataFieldManagerCollection'][_0x10878c(0x33f)](_0x592cc2);return _0x227988||(_0x227988=new _0xbb9afc(this,this['_univerInstanceService']),this[_0x10878c(0x437)][_0x10878c(0x302)](_0x592cc2,_0x227988)),_0x227988;}[_0x269f30(0x267)](_0x408e66,_0x86caf4){const _0x4896c9=_0x269f30;return this[_0x4896c9(0x2c3)](_0x408e66)[_0x4896c9(0x303)][_0x86caf4];}[_0x269f30(0x3d1)](_0x45ff59,_0x28738f,_0x4da444){const _0x1d5b1b=_0x269f30;return this[_0x1d5b1b(0x2c3)](_0x45ff59)['getUpdateRangeDeleteIds'](_0x28738f,_0x4da444);}[_0x269f30(0x294)](_0x2ed893,_0x5ae791){const _0x59a757=_0x269f30;let _0x46676f=this[_0x59a757(0x39a)][_0x59a757(0x33f)](_0x2ed893);_0x46676f||(_0x46676f=new Map(),this[_0x59a757(0x39a)][_0x59a757(0x302)](_0x2ed893,_0x46676f));let _0x2530a8=_0x46676f['get'](_0x5ae791);return _0x2530a8||(_0x2530a8=new Map(),_0x46676f['set'](_0x5ae791,_0x2530a8)),_0x2530a8;}[_0x269f30(0x356)](_0x42fe1c,_0x11ef1c,_0x279ead,_0x13bb97){const _0x5baf51=_0x269f30;this[_0x5baf51(0x294)](_0x42fe1c,_0x11ef1c)[_0x5baf51(0x302)](_0x279ead,_0x13bb97);}[_0x269f30(0x366)](_0x59dac6,_0x27e5dd,_0x35efb0){const _0x3187f0=_0x269f30;var _0x2fc519,_0x31a8e7,_0x5da994,_0x3dc933;((_0x31a8e7=(_0x2fc519=this[_0x3187f0(0x39a)][_0x3187f0(0x33f)](_0x59dac6))==null?void 0x0:_0x2fc519[_0x3187f0(0x33f)](_0x27e5dd))==null?void 0x0:_0x31a8e7[_0x3187f0(0x33f)](_0x35efb0))&&((_0x3dc933=(_0x5da994=this['_model'][_0x3187f0(0x33f)](_0x59dac6))==null?void 0x0:_0x5da994[_0x3187f0(0x33f)](_0x27e5dd))==null||_0x3dc933[_0x3187f0(0x3bd)](_0x35efb0));}['_updatePivotTableInstanceCache'](_0x364bd5,_0x596a75){const _0x2f453d=_0x269f30;this[_0x2f453d(0x206)][_0x2f453d(0x302)](_0x364bd5,_0x596a75);}[_0x269f30(0x30e)](_0x5ea816){const _0x3e264b=_0x269f30;this['_pivotTableInstanceCache'][_0x3e264b(0x3bd)](_0x5ea816);}[_0x269f30(0x2bf)](_0xef4d09,_0x504ec5){const _0x2e052c=_0x269f30;let _0x154c54=this[_0x2e052c(0x214)][_0x2e052c(0x33f)](_0xef4d09);_0x154c54||(_0x154c54=new Map(),this[_0x2e052c(0x214)][_0x2e052c(0x302)](_0xef4d09,_0x154c54));let _0x14b9ba=_0x154c54[_0x2e052c(0x33f)](_0x504ec5);return _0x14b9ba||(_0x14b9ba=new Map(),_0x154c54['set'](_0x504ec5,_0x14b9ba)),_0x14b9ba;}['updateConfig'](_0x4c37c1){const {unitId:_0x35ea6c,subUnitId:_0x35f1ed,pivotTableId:_0x1e1907,pivotTableConfig:_0x31ebcf,collectionConfig:_0x73412a}=_0x4c37c1,_0x337546={'unitId':_0x35ea6c,'subUnitId':_0x35f1ed,'oldSubUnitId':_0x35f1ed,'pivotTableId':_0x1e1907,'pivotTableConfig':_0x31ebcf,'collectionConfig':_0x73412a};this['_commandService']['executeCommand'](_0x1b8224['id'],_0x337546,{'onlyLocal':!0x0});}[_0x269f30(0x31f)](_0x35edf7,_0xea4c97,_0x29f44b,_0x26d506,_0x4c44c6,_0x2744e2,_0xd9b8a1,_0x5ad8d4=!0x1){const _0x40a22d=_0x269f30;var _0x5274e5;this[_0x40a22d(0x394)][_0x40a22d(0x168)](_0x13001c['id'],{'single':{'unitId':_0x35edf7,'subUnitId':_0xea4c97,'type':_0x29f44b,'pivotTableId':_0x26d506,'view':_0x4c44c6,'pivotConfig':_0x2744e2},'collectionConfig':{[_0x35edf7]:_0xd9b8a1}},{'onlyLocal':!0x0});const _0x378143=!!((_0x5274e5=this[_0x40a22d(0x41f)](_0x26d506))!=null&&_0x5274e5['isEmpty']()),_0x1d4191=this[_0x40a22d(0x189)](_0x35edf7,_0xea4c97,_0x26d506);_0x1d4191&&this['updateViewData']({'view':_0x4c44c6,'pivotTableId':_0x26d506,'textInfo':this[_0x40a22d(0x429)](),'isEmpty':_0x378143,'targetCellInfo':_0x1d4191[_0x40a22d(0x1e6)]},_0x5ad8d4);}[_0x269f30(0x1f9)](_0x509ed8,_0x3b3970){const _0x1609f9=_0x269f30,{targetCellInfo:_0x54f1cd,pivotTableId:_0x215d05}=_0x509ed8,{unitId:_0x33dd06,subUnitId:_0x9bdea9}=_0x54f1cd,_0x5d24e0=this[_0x1609f9(0x2bf)](_0x33dd06,_0x9bdea9),_0x4f0ce8=_0x5d24e0[_0x1609f9(0x33f)](_0x215d05);let _0x4e951f,_0x27603f;_0x4f0ce8&&(_0x4e951f=_0x4f0ce8['rangeCache'],_0x27603f=_0x4f0ce8[_0x1609f9(0x24d)]);const {rangesCache:_0x54a03b,matrix:_0xc4fa0c}=_0x4fdb85(_0x509ed8);_0x5d24e0[_0x1609f9(0x302)](_0x215d05,{'rangeCache':_0x54a03b,'matrix':_0xc4fa0c,'oldMatrix':_0x27603f,'oldRangeCache':_0x4e951f}),_0x3b3970||this[_0x1609f9(0x3a6)]['next']({'unitId':_0x33dd06,'subUnitId':_0x9bdea9,'pivotTableId':_0x215d05});}[_0x269f30(0x1aa)](_0x1c328a,_0x408557,_0x1553fb,_0xfd3c78,_0x677e5c){const _0x189b74=_0x269f30;this[_0x189b74(0x356)](_0x1c328a,_0x408557,_0x1553fb,_0x677e5c),this[_0x189b74(0x18a)](_0x1553fb,_0xfd3c78);}['removePivotTable'](_0x3591c1,_0x588a93,_0x22e71b){const _0xc78118=_0x269f30,_0x302722=this[_0xc78118(0x2c3)](_0x3591c1);_0x302722[_0xc78118(0x274)](_0x22e71b)[_0xc78118(0x2cd)](_0x4112b0=>{const _0x35e98c=_0xc78118;_0x302722[_0x35e98c(0x317)](_0x4112b0);}),this[_0xc78118(0x37a)](_0x3591c1,_0x22e71b),this[_0xc78118(0x366)](_0x3591c1,_0x588a93,_0x22e71b),this[_0xc78118(0x30e)](_0x22e71b);}[_0x269f30(0x3af)](_0x1f8803,_0x7519fd,_0x4cd4bd,_0x43082b){this['_updateModelCache'](_0x1f8803,_0x7519fd,_0x4cd4bd,_0x43082b);}[_0x269f30(0x189)](_0x1a8680,_0x17e261,_0x5ebfcb){const _0x572e78=_0x269f30;var _0x1c8cc6,_0x213c6d;const _0x301ba5=(_0x213c6d=(_0x1c8cc6=this[_0x572e78(0x39a)][_0x572e78(0x33f)](_0x1a8680))==null?void 0x0:_0x1c8cc6[_0x572e78(0x33f)](_0x17e261))==null?void 0x0:_0x213c6d[_0x572e78(0x33f)](_0x5ebfcb);if(_0x301ba5)return _0x301ba5;}[_0x269f30(0x266)](_0x2324f3,_0x538a4f,_0x3215e3){const _0x397ae1=_0x269f30;var _0x447b5d,_0x31de31;const _0x5b2537=(_0x31de31=(_0x447b5d=this[_0x397ae1(0x39a)][_0x397ae1(0x33f)](_0x2324f3))==null?void 0x0:_0x447b5d['get'](_0x538a4f))==null?void 0x0:_0x31de31[_0x397ae1(0x33f)](_0x3215e3);if(_0x5b2537)return _0x5b2537['fieldsConfig'];}[_0x269f30(0x41f)](_0x227b31){const _0x3749a=_0x269f30;return this[_0x3749a(0x206)][_0x3749a(0x33f)](_0x227b31);}[_0x269f30(0x385)](_0xbba5bc){const _0x4ee19c=_0x269f30;this[_0x4ee19c(0x39a)][_0x4ee19c(0x3bd)](_0xbba5bc);const _0x1f3159=this[_0x4ee19c(0x437)]['get'](_0xbba5bc);_0x1f3159&&(_0x1f3159['dispose'](),this[_0x4ee19c(0x437)]['delete'](_0xbba5bc)),this[_0x4ee19c(0x214)][_0x4ee19c(0x3bd)](_0xbba5bc),this['needSameDeleteModel'][_0x4ee19c(0x2cd)](_0x8e9516=>{const _0xc6e826=_0x4ee19c;_0x8e9516[_0xc6e826(0x385)](_0xbba5bc);});}[_0x269f30(0x2d8)](_0x38703a,_0x476e96,_0x924dc4,_0x4647a0){const _0x65ac3=_0x269f30;return this['getDataFieldManager'](_0x924dc4[_0x65ac3(0x341)])[_0x65ac3(0x2d8)](_0x38703a,_0x476e96,_0x924dc4,_0x4647a0);}['createCollectionWithDataRange'](_0x1808af){const _0x13a085=_0x269f30;return this[_0x13a085(0x2c3)](_0x1808af['unitId'])[_0x13a085(0x3c8)](_0x1808af);}[_0x269f30(0x329)](_0x2950b8,_0x2c0849,_0x11d8d5){const _0x3f036d=_0x269f30;this['getDataFieldManager'](_0x11d8d5[_0x3f036d(0x341)])[_0x3f036d(0x329)](_0x2950b8,_0x2c0849,_0x11d8d5);}[_0x269f30(0x1fa)](_0x2ff060,_0x402884){const _0x892c39=_0x269f30;this[_0x892c39(0x2c3)](_0x2ff060)[_0x892c39(0x317)](_0x402884);}[_0x269f30(0x37a)](_0x1fc8b3,_0x294421){const _0x39a261=_0x269f30;this['getDataFieldManager'](_0x1fc8b3)[_0x39a261(0x2eb)](_0x294421);}['getSubUnitPivotConfigs'](_0x45570a,_0x2eb0df){const _0x488672=_0x269f30;var _0x5d7bb0;return(_0x5d7bb0=this[_0x488672(0x39a)][_0x488672(0x33f)](_0x45570a))==null?void 0x0:_0x5d7bb0[_0x488672(0x33f)](_0x2eb0df);}[_0x269f30(0x126)](_0x2245f8){const _0x4df415=_0x269f30;for(const [_0x5d345b,_0x535534]of this['_model'][_0x4df415(0x305)]())for(const [_0xc55b75,_0x34b2d2]of _0x535534[_0x4df415(0x305)]())if(_0x34b2d2[_0x4df415(0x224)](_0x2245f8))return{'unitId':_0x5d345b,'subUnitId':_0xc55b75};return null;}[_0x269f30(0x1f7)](_0xbdb611,_0x29ab29,_0x4dbec2,_0x4939a9){const _0x37cb37=_0x269f30,_0x2cf044=this[_0x37cb37(0x2bf)](_0xbdb611,_0x29ab29);_0x4939a9?_0x2cf044[_0x37cb37(0x302)](_0x4dbec2,_0x4939a9):_0x2cf044[_0x37cb37(0x3bd)](_0x4dbec2),this[_0x37cb37(0x3a6)][_0x37cb37(0x2c7)]({'unitId':_0xbdb611,'subUnitId':_0x29ab29,'pivotTableId':_0x4dbec2});}['dispose'](){const _0x5d31b7=_0x269f30;super[_0x5d31b7(0x157)]();}[_0x269f30(0x1ae)](_0x424300,_0x555472,_0x9bd29){const _0x4933cc=_0x269f30;var _0x242964,_0x4cec37;const _0x25522a=(_0x4cec37=(_0x242964=this[_0x4933cc(0x214)][_0x4933cc(0x33f)](_0x424300))==null?void 0x0:_0x242964['get'](_0x555472))==null?void 0x0:_0x4cec37[_0x4933cc(0x33f)](_0x9bd29);return _0x25522a||null;}['addDirtyPivotTable'](_0x25c969){const _0xc9c2e8=_0x269f30;this[_0xc9c2e8(0x2e0)](_0x25c969);}[_0x269f30(0x2e0)](_0x57c797){const _0x55f852=_0x269f30,{token:_0xd23ec4,unitId:_0x4b4ffa,subUnitId:_0x3639bb}=_0x57c797,_0x1faefe=_0x4b4ffa+'-'+_0x3639bb+'-'+_0xd23ec4;this[_0x55f852(0x37c)][_0x55f852(0x33f)](_0x1faefe)&&clearTimeout(this[_0x55f852(0x37c)][_0x55f852(0x33f)](_0x1faefe));const _0x17c004=setTimeout(()=>{const _0x54b765=_0x55f852;this[_0x54b765(0x3fd)](_0x57c797),this[_0x54b765(0x37c)][_0x54b765(0x3bd)](_0x1faefe);},_0x475711);this['_queryingMap']['set'](_0x1faefe,_0x17c004);}['queryDirtyPivotTable'](_0x59daec){const _0x434db3=_0x269f30,{unitId:_0x4d3731,subUnitId:_0x52c668,token:_0x157e7b,type:_0x264c3e,pivotConfig:_0x2e8807}=_0x59daec,_0x37575f=this[_0x434db3(0x41f)](_0x157e7b),_0x52a318=_0x37575f==null?void 0x0:_0x37575f['query'](),_0x355e98=_0x2e8807!=null?_0x2e8807:this[_0x434db3(0x189)](_0x4d3731,_0x52c668,_0x157e7b);_0x355e98&&(_0x355e98[_0x434db3(0x1d1)]=!!(_0x37575f!=null&&_0x37575f['isEmpty']())),(_0x52a318||_0x264c3e===_0x12d3c2[_0x434db3(0x1f6)])&&this[_0x434db3(0x31f)](_0x4d3731,_0x52c668,_0x264c3e,_0x157e7b,_0x52a318,_0x355e98,this['getDataFieldManager'](_0x4d3731)['toJSON']());}[_0x269f30(0x434)](_0x13b5ed){const _0x52252b=_0x269f30,_0xbca5d6={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x52252b(0x2c3)](_0x13b5ed)&&(_0xbca5d6[_0x52252b(0x30a)][_0x13b5ed]=this[_0x52252b(0x2c3)](_0x13b5ed)[_0x52252b(0x434)]()),this[_0x52252b(0x39a)][_0x52252b(0x33f)](_0x13b5ed)){_0xbca5d6[_0x52252b(0x34a)][_0x13b5ed]={};const _0x1e8a0f=this[_0x52252b(0x39a)][_0x52252b(0x33f)](_0x13b5ed);_0x1e8a0f!=null&&_0x1e8a0f['size']&&[..._0x1e8a0f[_0x52252b(0x243)]()][_0x52252b(0x2cd)](_0x321627=>{const _0x3f0557=_0x52252b,_0x222d4a=_0x1e8a0f[_0x3f0557(0x33f)](_0x321627);_0x222d4a!=null&&_0x222d4a[_0x3f0557(0x3de)]&&(_0xbca5d6[_0x3f0557(0x34a)][_0x13b5ed][_0x321627]={},[..._0x222d4a['keys']()]['forEach'](_0x22a381=>{const _0x5d07d8=_0x3f0557,_0x33d70a=_0x222d4a[_0x5d07d8(0x33f)](_0x22a381);_0x33d70a&&(_0xbca5d6[_0x5d07d8(0x34a)][_0x13b5ed][_0x321627][_0x22a381]=_0x33d70a);}));});}return _0xbca5d6;}['fromJSON'](_0xbae9eb){const _0x330ca9=_0x269f30;var _0x2fac72;const {dataFieldManagerConfig:_0x24d0b1,pivotTableConfigs:_0x20cc7c}=_0xbae9eb;_0x24d0b1&&Object[_0x330ca9(0x243)](_0x24d0b1)[_0x330ca9(0x2cd)](_0x190a9b=>{this['getDataFieldManager'](_0x190a9b)['fromJSON'](_0x24d0b1[_0x190a9b]);});const _0xa22d43=[];if(_0x20cc7c){const _0x51be96=(_0x2fac72=this[_0x330ca9(0x150)]['get'](_0x194133[_0x330ca9(0x431)])[_0x330ca9(0x1cc)](_0x3e96f2[_0x330ca9(0x162)]))!=null?_0x2fac72:{},{ls:_0x28fcf9,pbk:_0x5458e1}=_0x51be96,_0x2d4671=_0x14a646(_0xb0e95d,_0x28fcf9,_0x5458e1)['count'];Object[_0x330ca9(0x243)](_0x20cc7c)[_0x330ca9(0x2cd)](_0x288511=>{const _0x1e65c3=_0x330ca9;let _0x473217=0x0;const _0x1f9a6e=_0x20cc7c[_0x288511];Object[_0x1e65c3(0x243)](_0x1f9a6e)[_0x1e65c3(0x2cd)](_0x54040a=>{const _0x2aaab7=_0x1e65c3,_0x3f06ae=_0x1f9a6e[_0x54040a];Object[_0x2aaab7(0x243)](_0x3f06ae)[_0x2aaab7(0x2cd)](_0x5f1f07=>{const _0x539e14=_0x2aaab7,_0x172cd6=_0x3f06ae[_0x5f1f07];if(_0x172cd6){if(_0x473217>=_0x2d4671)return;_0x473217++;const _0x621d15=this['getDataFieldManager'](_0x288511),_0x18a0ea=_0x621d15['collections'][_0x5f1f07],_0x49377c=_0x18a0ea['getFieldIds']();let _0x1bfdc9=0x0;const _0x33cb87=[];for(const _0x3bb516 of _0x49377c){const _0x351842=_0x18a0ea[_0x539e14(0x247)](_0x3bb516);if(_0x2c142[_0x539e14(0x2de)](_0x351842)){const _0x121bd7=_0x351842[_0x539e14(0x32b)](),_0x12ca7d=_0x18a0ea['getFieldById'](_0x121bd7);_0x12ca7d&&_0x33cb87[_0x539e14(0x3fe)]([_0x351842,_0x12ca7d]);continue;}_0x621d15[_0x539e14(0x21f)](_0x3bb516,_0x172cd6[_0x539e14(0x42d)],_0x1bfdc9),_0x1bfdc9++;}_0x33cb87['forEach'](([_0xb8d16,_0x447fe1])=>{const _0x5b2f3e=_0x539e14;_0xb8d16[_0x5b2f3e(0x2b1)](_0x447fe1);});const _0x2cc1a1=new _0x2c142['PivotTable'](_0x18a0ea);_0x2cc1a1[_0x539e14(0x3ed)](_0x172cd6[_0x539e14(0x30f)]),this[_0x539e14(0x1aa)](_0x288511,_0x54040a,_0x5f1f07,_0x2cc1a1,_0x172cd6);const _0x4c52ab=_0x2cc1a1['query']();_0xa22d43['push']({'unitId':_0x288511,'subUnitId':_0x54040a,'pivotTableId':_0x5f1f07,'view':_0x4c52ab[_0x539e14(0x434)](),'pivotConfig':_0x172cd6,'type':_0x12d3c2[_0x539e14(0x3b6)]});const _0x1f711d=!!_0x2cc1a1[_0x539e14(0x1d1)](),_0x3dd7c8={'view':_0x4c52ab,'pivotTableId':_0x5f1f07,'textInfo':this[_0x539e14(0x429)](),'isEmpty':_0x1f711d,'targetCellInfo':_0x172cd6[_0x539e14(0x1e6)]};this['updateViewData'](_0x3dd7c8,!0x1);}});});});}_0x24d0b1&&Object['keys'](_0x24d0b1)[_0x330ca9(0x2cd)](_0x1f5818=>{const _0x142095=_0x330ca9,_0x39de8d=this[_0x142095(0x2c3)](_0x1f5818);this[_0x142095(0x3c1)][_0x142095(0x2c7)](_0x39de8d[_0x142095(0x303)]);}),this[_0x330ca9(0x394)][_0x330ca9(0x168)](_0x13001c['id'],{'batch':_0xa22d43,'collectionConfig':_0x24d0b1},{'onlyLocal':!0x0});}[_0x269f30(0x12f)](){const _0x1dc58c=_0x269f30;this[_0x1dc58c(0x409)](this['_resourceManagerService']['registerPluginResource']({'toJson':_0x20c7bb=>JSON[_0x1dc58c(0x3ae)](this[_0x1dc58c(0x434)](_0x20c7bb)),'parseJson':_0x48ef4e=>{const _0x97921=_0x1dc58c;if(!_0x48ef4e)return{};try{return JSON[_0x97921(0x16b)](_0x48ef4e);}catch{return{};}},'businesses':[_0x194133[_0x1dc58c(0x1c8)][_0x1dc58c(0x3c4)]],'pluginName':_0x468904,'onLoad':(_0x1739f6,_0x5d2d77)=>{this['fromJSON'](_0x5d2d77);},'onUnLoad':_0x2588a2=>{const _0x3ae908=_0x1dc58c;this[_0x3ae908(0x385)](_0x2588a2);}}));}},_0x1aec1a[_0x269f30(0x12b)]=_0xb02d33([_0x168711(0x0,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x24c)])),_0x168711(0x1,_0x194133[_0x269f30(0x137)]),_0x168711(0x2,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x202)])),_0x168711(0x3,_0x194133[_0x269f30(0x3a4)]),_0x168711(0x4,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x397)]))],_0x1aec1a[_0x269f30(0x12b)]);const _0x5a5a9d={0x0:{0x0:{'v':_0x269f30(0x29d),'s':_0x1db44c}},0x2:{0x1:{'v':'','s':_0x1db44c},0x2:{'v':'','s':_0x1db44c},0x3:{'v':_0x269f30(0x433),'s':_0x1db44c},0x4:{'v':'','s':_0x1db44c},0x5:{'v':'','s':_0x1db44c}},0x3:{0x0:{'v':'','s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}},0x4:{0x0:{'v':'','s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}},0x5:{0x0:{'v':'','s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}},0x6:{0x0:{'v':'','s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}},0x7:{0x0:{'v':'','s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}},0x8:{0x0:{'v':_0x269f30(0x26d),'s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'values','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}},0x9:{0x0:{'v':'','s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}},0xa:{0x0:{'v':'','s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}},0xb:{0x0:{'v':'','s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}},0xc:{0x0:{'v':'','s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}},0xd:{0x0:{'v':'','s':_0x1db44c},0x1:{'v':'','s':_0x546698},0x2:{'v':'','s':_0x546698},0x3:{'v':'','s':_0x546698},0x4:{'v':'','s':_0x546698},0x5:{'v':'','s':_0x546698}}},_0x203378={'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':[]},_0x3656fa=(_0xe7dcb5,_0x483f36)=>{const _0x539c9f=_0x269f30,_0x359191=new _0x194133[(_0x539c9f(0x1c4))](),_0x58f89c=new _0x194133[(_0x539c9f(0x1c4))](_0x5a5a9d),{row:_0x4e6a20,col:_0x44846e}=_0x483f36;_0x58f89c[_0x539c9f(0x421)]((_0x30956b,_0x131fdd,_0x281e57)=>{const _0x289ae0=_0x539c9f;let _0x2702ac='';_0x281e57['v']===_0x289ae0(0x29d)?_0x2702ac=_0xe7dcb5[_0x289ae0(0x29d)]:_0x281e57['v']===_0x289ae0(0x26d)?_0x2702ac=_0xe7dcb5[_0x289ae0(0x26d)]:_0x281e57['v']==='column'?_0x2702ac=_0xe7dcb5[_0x289ae0(0x433)]:_0x281e57['v']===_0x289ae0(0x27a)&&(_0x2702ac=_0xe7dcb5[_0x289ae0(0x27a)]),_0x359191[_0x289ae0(0x26e)](_0x30956b+_0x4e6a20,_0x131fdd+_0x44846e,{..._0x281e57,'v':_0x2702ac});});const _0x392591=_0x194133[_0x539c9f(0x3ac)][_0x539c9f(0x240)](_0x203378);return Object['keys'](_0x203378)[_0x539c9f(0x2cd)](_0x21982a=>{const _0x5d714b=_0x539c9f;_0x392591[_0x21982a]=_0x203378[_0x21982a]['map'](_0x40843e=>({..._0x40843e,'startRow':_0x40843e[_0x5d714b(0x159)]+_0x4e6a20,'endRow':_0x40843e[_0x5d714b(0x2a5)]+_0x4e6a20,'startColumn':_0x40843e[_0x5d714b(0x152)]+_0x44846e,'endColumn':_0x40843e[_0x5d714b(0x12c)]+_0x44846e}));}),{'matrixCache':_0x359191,'rangesCache':_0x392591};};function _0x15c3f8(_0x3e8405,_0x2072b8){const _0x459ef3=_0x269f30;let _0x3e177d='';const _0x1968ab=this[_0x459ef3(0x429)]();switch(_0x2072b8){case _0x2c142[_0x459ef3(0x192)][_0x459ef3(0x2a6)]:_0x3e177d=_0x1968ab[_0x459ef3(0x2e7)]+_0x3e8405;break;case _0x2c142[_0x459ef3(0x192)][_0x459ef3(0x23a)]:_0x3e177d=_0x1968ab[_0x459ef3(0x197)]+_0x3e8405;break;case _0x2c142[_0x459ef3(0x192)][_0x459ef3(0x1ee)]:_0x3e177d=_0x1968ab['sheets-pivot.countNumsName']+_0x3e8405;break;case _0x2c142[_0x459ef3(0x192)][_0x459ef3(0x412)]:_0x3e177d=_0x1968ab[_0x459ef3(0x335)]+_0x3e8405;break;case _0x2c142[_0x459ef3(0x192)]['min']:_0x3e177d=_0x1968ab[_0x459ef3(0x3da)]+_0x3e8405;break;case _0x2c142['PivotSubtotalTypeEnum'][_0x459ef3(0x3eb)]:_0x3e177d=_0x1968ab[_0x459ef3(0x2c2)]+_0x3e8405;break;case _0x2c142['PivotSubtotalTypeEnum']['stdDev']:_0x3e177d=_0x1968ab[_0x459ef3(0x257)]+_0x3e8405;break;case _0x2c142[_0x459ef3(0x192)]['stdDevp']:_0x3e177d=_0x1968ab[_0x459ef3(0x3be)]+_0x3e8405;break;case _0x2c142[_0x459ef3(0x192)][_0x459ef3(0x1ec)]:_0x3e177d=_0x1968ab[_0x459ef3(0x212)]+_0x3e8405;break;case _0x2c142['PivotSubtotalTypeEnum'][_0x459ef3(0x16d)]:_0x3e177d=_0x1968ab[_0x459ef3(0x354)]+_0x3e8405;break;case _0x2c142[_0x459ef3(0x192)][_0x459ef3(0x3a7)]:_0x3e177d=_0x1968ab[_0x459ef3(0x28d)]+_0x3e8405;break;default:_0x3e177d=_0x3e8405;break;}return _0x3e177d;}function _0x46b939(_0x407d3e,_0xd1cd1e,_0x3728aa,_0xdc97de,_0x30c4bd){const _0xee307f=_0x269f30;var _0x542cf4,_0x7093fb,_0x1d7c89,_0xa335d9,_0x214957;const _0xfe8080=_0x194133[_0xee307f(0x42e)](_0x407d3e,_0xd1cd1e),{rangesInfo:_0x569d40,areaInfo:_0x4bbf57,headerMap:_0x1d671b}=_0x30c4bd;if(!_0x569d40||!_0x4bbf57||!_0x1d671b)return;const _0x352a2d=Object[_0xee307f(0x243)](_0x569d40)[_0xee307f(0x163)](_0x50ed91=>_0x569d40[_0x50ed91][_0xee307f(0x25d)](_0xe9d8b6=>_0x194133[_0xee307f(0x1ac)][_0xee307f(0x1c3)](_0xe9d8b6,_0xfe8080))),_0x2e6392=_0x4bbf57;let _0x212689,_0x256875,_0xafe0c8;if(_0x352a2d===_0xee307f(0x355))_0x212689=(_0x542cf4=_0x2e6392==null?void 0x0:_0x2e6392['rowInfo'])==null?void 0x0:_0x542cf4[_0x407d3e],_0x256875=(_0x7093fb=_0x1d671b==null?void 0x0:_0x1d671b[_0xee307f(0x306)])==null?void 0x0:_0x7093fb[_0xd1cd1e],_0xafe0c8=_0x256875==null?void 0x0:_0x256875['tableFieldId'];else{if(_0x352a2d===_0xee307f(0x3e7))_0x212689=(_0x1d7c89=_0x2e6392==null?void 0x0:_0x2e6392['colInfo'])==null?void 0x0:_0x1d7c89[_0xd1cd1e],_0x256875=(_0xa335d9=_0x1d671b['colHeaderMap'])==null?void 0x0:_0xa335d9[_0x407d3e+0x1+_0xd1cd1e-_0x569d40[_0xee307f(0x3e7)][0x0][_0xee307f(0x152)]],_0xafe0c8=_0x256875==null?void 0x0:_0x256875[_0xee307f(0x2d3)];else{if(_0x352a2d===_0xee307f(0x1c6))_0x212689=(_0x214957=_0x2e6392==null?void 0x0:_0x2e6392[_0xee307f(0x15d)])==null?void 0x0:_0x214957[_0xd1cd1e],_0xafe0c8=_0x212689==null?void 0x0:_0x212689[_0xee307f(0x2d3)];else{if(_0x352a2d===_0xee307f(0x160)){const _0x45c29e=_0x3728aa==null?void 0x0:_0x3728aa['fi'];_0x45c29e!==void 0x0&&(_0xafe0c8=_0xdc97de['getFilterFieldIdByIndex'](_0x45c29e));}}}}return{'filterId':_0xafe0c8,'info':_0x212689,'data':_0x3728aa,'headerInfo':_0x256875};}function _0x370658(_0x22c067,_0x34e18a,_0x501afe){const _0x505bc9=_0x269f30,_0x552d00=_0x22c067[_0x505bc9(0x147)],_0x1086b5=_0x552d00[_0x505bc9(0x2e2)](),_0x20525a=new Set();_0x22c067[_0x505bc9(0x18d)](_0x305680=>{const _0x3d2411=_0x505bc9;_0x20525a[_0x3d2411(0x176)](_0x305680[_0x3d2411(0x1c1)]);});const _0x4157e4=_0x1086b5['map'](_0x2950d6=>{const _0x20607b=_0x505bc9,_0x1ba4a5=_0x552d00['getFieldById'](_0x2950d6);return{'checked':_0x20525a['has'](_0x2950d6),'dataFieldId':_0x1ba4a5['id'],'id':_0x1ba4a5['id'],'name':_0x552d00[_0x20607b(0x1e9)](_0x1ba4a5['id']),'type':_0x1ba4a5[_0x20607b(0x36b)](),'pivotTableId':_0x34e18a};}),_0x23532e=[];_0x22c067['iterateFieldByArea'](_0x2c142[_0x505bc9(0x369)]['Row'],_0x2457aa=>{const _0x28e02b=_0x505bc9;_0x23532e[_0x28e02b(0x3fe)]({'dataFieldId':_0x2457aa['dataFieldId'],'tableFieldId':_0x2457aa[_0x28e02b(0x3f3)](),'displayName':_0x2457aa[_0x28e02b(0x1e9)]()});});const _0xd22bfa=[];_0x22c067[_0x505bc9(0x37e)](_0x2c142[_0x505bc9(0x369)][_0x505bc9(0x291)],_0x56818f=>{const _0x5a6dd4=_0x505bc9;_0xd22bfa[_0x5a6dd4(0x3fe)]({'dataFieldId':_0x56818f[_0x5a6dd4(0x1c1)],'tableFieldId':_0x56818f[_0x5a6dd4(0x3f3)](),'displayName':_0x56818f['getDisplayName']()});});const _0x39e829=[];if(_0x22c067['iterateFieldByArea'](_0x2c142[_0x505bc9(0x369)][_0x505bc9(0x295)],_0x277db5=>{const _0xe9586=_0x505bc9;_0x39e829[_0xe9586(0x3fe)]({'dataFieldId':_0x277db5['dataFieldId'],'tableFieldId':_0x277db5['getId'](),'displayName':_0x277db5[_0xe9586(0x1e9)](),'format':_0x277db5[_0xe9586(0x3a3)](),'subTotalType':_0x277db5['getSubtotal']()});}),_0x39e829[_0x505bc9(0x1ed)]>0x1){const _0x40918c=_0x22c067[_0x505bc9(0x407)]();(_0x22c067[_0x505bc9(0x427)]()?_0xd22bfa:_0x23532e)[_0x505bc9(0x31b)](_0x40918c,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':'ΣValue'});}const _0x3747d0=[];_0x22c067[_0x505bc9(0x37e)](_0x2c142[_0x505bc9(0x369)][_0x505bc9(0x364)],_0x4b2755=>{const _0x27f6ba=_0x505bc9;_0x3747d0[_0x27f6ba(0x3fe)]({'dataFieldId':_0x4b2755['dataFieldId'],'tableFieldId':_0x4b2755[_0x27f6ba(0x3f3)](),'displayName':_0x4b2755['getDisplayName']()});});const _0xfa4c65=_0x501afe[_0x505bc9(0x42d)];return{'sourceList':_0x4157e4,'sourceRange':_0xfa4c65,'rowFields':_0x23532e,'columnFields':_0xd22bfa,'valueFields':_0x39e829,'filterFields':_0x3747d0,'positionInfo':_0x501afe[_0x505bc9(0x1e6)]};}function _0x2cd7df(_0x2b38c0,_0x3f2a81,_0x5a3645='',_0x373112={}){const _0x4ec5e9=_0x269f30,_0x120cd3=_0x2b38c0[_0x4ec5e9(0x33f)](_0x194133[_0x4ec5e9(0x3b0)]);for(const _0x17a9ea in _0x3f2a81)if(Object['prototype'][_0x4ec5e9(0x38e)]['call'](_0x3f2a81,_0x17a9ea)){const _0x11fc1f=_0x5a3645?_0x5a3645+'.'+_0x17a9ea:_0x17a9ea;typeof _0x3f2a81[_0x17a9ea]=='object'&&_0x3f2a81[_0x17a9ea]!==null&&!Array[_0x4ec5e9(0x2d4)](_0x3f2a81[_0x17a9ea])?_0x2cd7df(_0x2b38c0,_0x3f2a81[_0x17a9ea],_0x11fc1f,_0x373112):_0x373112[_0x11fc1f]=_0x120cd3['t'](_0x11fc1f);}return _0x373112;}const _0x243b5e=_0x30383c=>{const _0x3fbbd8=_0x269f30;if(!_0x30383c)return[];const {rowRanges:_0x498b24,colRanges:_0x309875,cornerRanges:_0x35b5f7,dataRanges:_0x4f7104,pageRanges:_0x5c8133}=_0x30383c,_0x4c4a71=[..._0x309875,..._0x498b24,..._0x4f7104,..._0x35b5f7][_0x3fbbd8(0x29d)](_0x5033df=>_0x5033df[_0x3fbbd8(0x159)]>=0x0&&_0x5033df[_0x3fbbd8(0x152)]>=0x0&&_0x5033df[_0x3fbbd8(0x2a5)]>=0x0&&_0x5033df[_0x3fbbd8(0x12c)]>=0x0);let _0x42cd0c=Number[_0x3fbbd8(0x312)],_0x68e9e0=Number[_0x3fbbd8(0x38f)],_0x462c72=Number[_0x3fbbd8(0x312)],_0x475aee=Number[_0x3fbbd8(0x38f)];for(let _0x51d9f4=0x0;_0x51d9f4<_0x4c4a71[_0x3fbbd8(0x1ed)];_0x51d9f4++)_0x42cd0c=Math[_0x3fbbd8(0x292)](_0x42cd0c,_0x4c4a71[_0x51d9f4][_0x3fbbd8(0x159)]),_0x68e9e0=Math[_0x3fbbd8(0x412)](_0x68e9e0,_0x4c4a71[_0x51d9f4]['endRow']),_0x462c72=Math[_0x3fbbd8(0x292)](_0x462c72,_0x4c4a71[_0x51d9f4][_0x3fbbd8(0x152)]),_0x475aee=Math['max'](_0x475aee,_0x4c4a71[_0x51d9f4][_0x3fbbd8(0x12c)]);return[..._0x5c8133,{'startRow':_0x42cd0c,'endRow':_0x68e9e0,'startColumn':_0x462c72,'endColumn':_0x475aee}];};function _0x10068a(_0x4d218b,_0x32070f){const _0x1cfd27=_0x269f30,_0x4199b4=_0x32070f[_0x1cfd27(0x3ff)][_0x1cfd27(0x246)],{pivotTableId:_0xf92d08,unitId:_0x5e88a0,subUnitId:_0x590b2f}=_0x32070f;if(!_0x4199b4)return;const _0x497996=_0x4d218b[_0x1cfd27(0x33f)](_0x1aec1a['SheetsPivotDataSourceModel']),_0x458abb=_0x497996[_0x1cfd27(0x41f)](_0xf92d08),_0x127019=_0x497996[_0x1cfd27(0x189)](_0x5e88a0,_0x590b2f,_0xf92d08);if(!_0x458abb||!_0x127019)return;const _0x169764=_0x458abb[_0x1cfd27(0x167)](_0x4199b4[_0x1cfd27(0x14e)]);if(!(_0x169764!=null&&_0x169764[_0x1cfd27(0x1ed)]))return;const _0x1cc702=_0x127019[_0x1cfd27(0x42d)],{unitId:_0x507333,subUnitId:_0x451ffc,range:_0x3aedc1}=_0x1cc702;let _0x4117c2=0x0;const _0x2b8e0f=_0x458abb[_0x1cfd27(0x147)]['getFieldIds']()['reduce']((_0x217d0f,_0x1a0855)=>{const _0x4df9af=_0x1cfd27;var _0x4899ed;const _0x5503e4=(_0x4899ed=_0x458abb[_0x4df9af(0x1d4)](_0x1a0855))==null?void 0x0:_0x4899ed[_0x4df9af(0x1fe)]();return _0x5503e4&&(_0x217d0f[String(_0x4117c2)]=_0x5503e4),_0x4117c2++,_0x217d0f;},{});return{'indexes':_0x169764,'range':_0x3aedc1,'sourceUnitId':_0x507333,'sourceSubUnitId':_0x451ffc,'formatMap':_0x2b8e0f};}function _0x474944(_0x15399a,_0x38dd66){const _0x72ff2e=_0x269f30;if(!_0x15399a||!_0x38dd66)return!0x0;const _0x1e6068=_0x3e96f2[_0x72ff2e(0x151)](_0x181ab1,_0xeeca93),_0xebf3f1=new Function(_0x72ff2e(0x15c)+_0x1e6068)()(_0x15399a,_0x38dd66)[_0x72ff2e(0x172)],_0x25f9fc=_0x3e96f2[_0x72ff2e(0x352)](_0xebf3f1,'sf',_0x38049c);return!((_0xebf3f1==null?void 0x0:_0xebf3f1['rt'])===_0x3e96f2[_0x72ff2e(0x2cb)][_0x72ff2e(0x2e8)]&&!_0x25f9fc);}function _0x14a646(_0x3f3d1a,_0x474b79,_0x1fd7ab){const _0x43e3f7=_0x269f30,_0x55fe77={'count':_0x3f3d1a,'timeValid':!0x1};if(!_0x474b79||!_0x1fd7ab)return _0x55fe77;const _0x2364c8=_0x3e96f2[_0x43e3f7(0x151)](_0x181ab1,_0xeeca93),_0x41fb95=new Function('return\x20'+_0x2364c8)()(_0x474b79,_0x1fd7ab);if(_0x41fb95!=null&&_0x41fb95[_0x43e3f7(0x40b)]){const _0x35eaaf=_0x41fb95['message'],_0x338460=_0x3e96f2[_0x43e3f7(0x352)](_0x35eaaf,'sf',_0x38049c);return{'count':_0x3e96f2[_0x43e3f7(0x2f8)](_0x35eaaf,_0x338460,_0x43e3f7(0x1a8),_0x3f3d1a,_0x3f3d1a,0x0),'timeValid':_0x338460};}return _0x55fe77;}function _0x1091b0(_0x54c093,_0x106285,_0x39d457,_0x49c24){const _0x4b6689=_0x269f30,_0x235cd3={'subUnitId':_0x39d457,'unitId':_0x106285,'cellValue':_0x131b3b[_0x4b6689(0x17c)](_0x49c24)},_0x52f602=_0x131b3b[_0x4b6689(0x29b)](_0x54c093,_0x235cd3);let _0x49a72c=!0x1;return new _0x194133[(_0x4b6689(0x1c4))](_0x52f602['cellValue'])[_0x4b6689(0x421)]((_0x5e6c7a,_0x528248,_0x86fb79)=>{if(!_0x49a72c&&_0x86fb79&&(_0x86fb79['custom']||_0x86fb79['f']||_0x86fb79['p']||_0x86fb79['s']||_0x86fb79['si']||_0x86fb79['t']||_0x86fb79['v']))return _0x49a72c=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x131b3b[_0x4b6689(0x27c)]['id'],'params':_0x52f602},'setRangeValueRedoMutation':{'id':_0x131b3b[_0x4b6689(0x27c)]['id'],'params':_0x235cd3},'shouldClear':_0x49a72c};}function _0xe1c15e(_0x37c44c){const {row:_0xf2dc23,col:_0x4546fe}=_0x37c44c,_0x2cf2e5={'startRow':_0xf2dc23,'endRow':_0xf2dc23,'startColumn':_0x4546fe,'endColumn':_0x4546fe},_0xf96365={'startRow':_0xf2dc23+0x2,'endRow':_0xf2dc23+0xe,'startColumn':_0x4546fe,'endColumn':_0x4546fe+0x6};return[_0x2cf2e5,_0xf96365];}function _0x4ebe1e(_0xe96491,_0x50ce64,_0x5d4395){const _0x352720=_0x269f30,{cornerView:_0x5c205f,rowView:_0x16f477,colView:_0x4076b5,pageView:_0x11bac4}=_0xe96491,{row:_0x47dcb5,col:_0x36a429}=_0x50ce64;if(_0x5d4395)return{'rowCount':_0x3fb947+_0x47dcb5,'colCount':_0x16a7e7+_0x36a429};const _0x1797bc=_0x11bac4[_0x352720(0x2d7)]>-0x1?_0x11bac4['lastRow']+0x1:0x0,_0x498a51=_0x11bac4[_0x352720(0x333)]>-0x1?_0x11bac4[_0x352720(0x333)]:0x0,_0x25a23a=_0x47dcb5+_0x1797bc+(_0x1797bc?0x1:0x0)+_0x5c205f[_0x352720(0x3e3)]+_0x16f477[_0x352720(0x3e3)],_0x23178d=_0x36a429+_0x498a51,_0x26b6d7=_0x36a429+_0x5c205f['colCount']+_0x4076b5['colCount'],_0x53dc65=Math[_0x352720(0x412)](_0x23178d,_0x26b6d7);return{'rowCount':_0x25a23a,'colCount':_0x53dc65};}function _0x4b13ac(_0x2c6fec,_0x432305,_0x5dffd1,_0x46cd8f){const _0x5c8626=_0x269f30,{row:_0x585146,col:_0x12f48e,unitId:_0x4f8991,subUnitId:_0x104030}=_0x5dffd1,_0x48c397=_0x4ebe1e(_0x432305,{'row':_0x585146,'col':_0x12f48e},_0x46cd8f),_0x4ccd78=_0x2c6fec[_0x5c8626(0x33f)](_0x194133[_0x5c8626(0x137)]),_0x1d2cd7=_0x131b3b[_0x5c8626(0x2b9)](_0x4ccd78,{'unitId':_0x4f8991,'subUnitId':_0x104030}),_0x47d7c4=[],_0x4301fc=[];if(!_0x1d2cd7)return{'undos':_0x4301fc,'redos':_0x47d7c4};const {worksheet:_0x249d84}=_0x1d2cd7,_0x42f15e=_0x249d84[_0x5c8626(0x3d5)](),_0x1ab1dc=_0x249d84['getColumnCount']();return _0x42f15e<_0x48c397[_0x5c8626(0x3e3)]&&(_0x47d7c4[_0x5c8626(0x3fe)]({'id':_0x131b3b[_0x5c8626(0x14c)]['id'],'params':{'unitId':_0x4f8991,'subUnitId':_0x104030,'range':{'startRow':_0x42f15e,'endRow':_0x48c397['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x1ab1dc-0x1}}}),_0x4301fc[_0x5c8626(0x3fe)]({'id':_0x131b3b['RemoveRowMutation']['id'],'params':{'unitId':_0x4f8991,'subUnitId':_0x104030,'range':{'startRow':_0x42f15e,'endRow':_0x48c397[_0x5c8626(0x3e3)]-0x1,'startColumn':0x0,'endColumn':_0x1ab1dc-0x1}}})),_0x1ab1dc<_0x48c397[_0x5c8626(0x16e)]&&(_0x47d7c4[_0x5c8626(0x3fe)]({'id':_0x131b3b[_0x5c8626(0x309)]['id'],'params':{'unitId':_0x4f8991,'subUnitId':_0x104030,'range':{'startRow':0x0,'endRow':_0x42f15e-0x1,'startColumn':_0x1ab1dc,'endColumn':_0x48c397['colCount']-0x1}}}),_0x4301fc['push']({'id':_0x131b3b[_0x5c8626(0x2ef)]['id'],'params':{'unitId':_0x4f8991,'subUnitId':_0x104030,'range':{'startRow':0x0,'endRow':_0x42f15e-0x1,'startColumn':_0x1ab1dc,'endColumn':_0x48c397[_0x5c8626(0x16e)]-0x1}}})),{'undos':_0x4301fc,'redos':_0x47d7c4};}function _0x5d2e0d(_0x6ae5b0){const _0x291419=_0x269f30;let _0x40e9a8=0x0;for(let _0x62f1e3=0x0;_0x62f1e3<_0x6ae5b0[_0x291419(0x1ed)];_0x62f1e3++){const _0x5f235e=_0x6ae5b0[_0x291419(0x1fd)](_0x62f1e3);_0x5f235e>=0x4e00&&_0x5f235e<=0x9fff||_0x5f235e>=0x3000&&_0x5f235e<=0x303f||_0x5f235e>=0xff00&&_0x5f235e<=0xffef?_0x40e9a8+=0x2:_0x40e9a8+=0x1;}return _0x40e9a8;}function _0x5c57b6(_0x1fd341,_0xa966ff,_0xbb2db7,_0x2059d7){const _0x21589c=_0x269f30;var _0x1f1180,_0x34c039,_0xf4be71,_0x4c67bd;const {rowCount:_0x4f2556,colCount:_0x2ecdd8,headerMap:_0xf8cc10}=_0x1fd341,_0xf6396f=0x64,_0x3cec1e=Math[_0x21589c(0x292)](_0x4f2556,_0xf6396f),_0x30cd9c=Math[_0x21589c(0x292)](_0x2ecdd8,_0xf6396f);let _0x44f070='',_0x51d12a=0x0;for(let _0x351345=0x0;_0x351345<_0x3cec1e;_0x351345++)for(let _0x30fcdc=0x0;_0x30fcdc<_0x30cd9c;_0x30fcdc++){const _0x226dc1={...(_0x34c039=(_0x1f1180=_0x1fd341[_0x21589c(0x3e8)])==null?void 0x0:_0x1f1180[_0x351345])==null?void 0x0:_0x34c039[_0x30fcdc]},_0x5bbf75=(_0xf4be71=_0xf8cc10[_0x351345])==null?void 0x0:_0xf4be71[_0x21589c(0x2d3)],_0x1da0dc=_0x2059d7[_0x5bbf75];let _0x452a63=_0x1fd341[_0x21589c(0x1da)](_0x351345,_0x30fcdc);if(_0x226dc1){const _0x49bb75=_0xbb2db7?_0x30fcdc===0x0&&((_0x4c67bd=_0x1fd341[_0x21589c(0x307)](_0x30fcdc+0x1))==null?void 0x0:_0x4c67bd[_0x21589c(0x209)]):!0x1;_0x452a63=_0x22213a(_0x226dc1,_0x49bb75,_0x1da0dc,_0xa966ff);}if(_0x452a63!==void 0x0){const _0x4a1241=_0x5d2e0d(String(_0x452a63));_0x51d12a<_0x4a1241&&(_0x44f070=String(_0x452a63),_0x51d12a=_0x4a1241);}}return _0x44f070;}function _0x2f14a3(_0x3a7750){const _0x42cc77=_0x269f30,{rowCount:_0x1129d9,colCount:_0x4873a3}=_0x3a7750;let _0x347a59='',_0x2e6598=0x0;for(let _0x577702=_0x1129d9-0x1;_0x577702>0x0&&_0x577702>_0x1129d9-0x3;_0x577702--)for(let _0x34d6a0=0x0;_0x34d6a0<_0x4873a3;_0x34d6a0++){const _0x55db4d=_0x3a7750[_0x42cc77(0x1da)](_0x577702,_0x34d6a0);if(_0x55db4d!==void 0x0){const _0x20ee72=String(_0x55db4d)[_0x42cc77(0x1ed)];_0x2e6598<_0x20ee72&&(_0x347a59=String(_0x55db4d),_0x2e6598=_0x20ee72);}}return _0x347a59;}function _0x587ec6(_0x282a26){const {rowCount:_0xf633da,colCount:_0x537324}=_0x282a26;let _0x2ed5d4='',_0x1d0e79=0x0;for(let _0x19a28f=0x0;_0x19a28f<_0xf633da;_0x19a28f++)for(let _0x37b552=0x0;_0x37b552<_0x537324;_0x37b552++){const _0x455041=_0x282a26['getValue'](_0x19a28f,_0x37b552);if(_0x455041!==void 0x0){const _0x16d7a9=String(_0x455041)['length'];_0x1d0e79<_0x16d7a9&&(_0x2ed5d4=String(_0x455041),_0x1d0e79=_0x16d7a9);}}return _0x2ed5d4;}function _0x5a5bd0(_0x562403,_0x1d53ed){const _0x1d0b36=_0x269f30,{rowFields:_0x3112fd,columnFields:_0x196abf,valueFields:_0xb2e44e,filterFields:_0xec519d,dimension:_0x455e46,measure:_0x4409d4}=_0x1d53ed;for(const _0x422af5 of _0x3112fd){const _0x641fff=_0x455e46[_0x422af5];_0x641fff&&_0x562403[_0x1d0b36(0x1d4)](_0x641fff['dataFieldId'])&&(_0x562403[_0x1d0b36(0x2e4)](_0x641fff[_0x1d0b36(0x1c1)],_0x2c142[_0x1d0b36(0x369)][_0x1d0b36(0x276)],void 0x0,_0x422af5),_0x641fff[_0x1d0b36(0x14a)]&&_0x562403['renameField'](_0x641fff['id'],_0x641fff[_0x1d0b36(0x14a)]),_0x641fff[_0x1d0b36(0x33e)]&&_0x562403[_0x1d0b36(0x2c4)](_0x641fff['id'],_0x641fff[_0x1d0b36(0x33e)]),_0x641fff[_0x1d0b36(0x1b0)]&&_0x562403[_0x1d0b36(0x1a9)](_0x641fff['id'],_0x641fff['filterInfo']));}for(const _0x2f8831 of _0x196abf){const _0x8d115e=_0x455e46[_0x2f8831];_0x8d115e&&_0x562403[_0x1d0b36(0x1d4)](_0x8d115e[_0x1d0b36(0x1c1)])&&(_0x562403['addFieldWithSourceId'](_0x8d115e[_0x1d0b36(0x1c1)],_0x2c142[_0x1d0b36(0x369)][_0x1d0b36(0x291)],void 0x0,_0x2f8831),_0x8d115e[_0x1d0b36(0x33e)]&&_0x562403[_0x1d0b36(0x2c4)](_0x8d115e['id'],_0x8d115e['sortInfo']),_0x8d115e[_0x1d0b36(0x1b0)]&&_0x562403[_0x1d0b36(0x1a9)](_0x8d115e['id'],_0x8d115e[_0x1d0b36(0x1b0)]),_0x8d115e[_0x1d0b36(0x14a)]&&_0x562403[_0x1d0b36(0x2e3)](_0x8d115e['id'],_0x8d115e[_0x1d0b36(0x14a)]));}for(const _0x279790 of _0xec519d){const _0x4e6889=_0x455e46[_0x279790];_0x4e6889&&_0x562403['getDataFieldByDataFieldId'](_0x4e6889[_0x1d0b36(0x1c1)])&&(_0x562403[_0x1d0b36(0x2e4)](_0x4e6889[_0x1d0b36(0x1c1)],_0x2c142['PivotTableFiledAreaEnum'][_0x1d0b36(0x364)],void 0x0,_0x279790),_0x4e6889[_0x1d0b36(0x33e)]&&_0x562403[_0x1d0b36(0x2c4)](_0x4e6889['id'],_0x4e6889['sortInfo']),_0x4e6889[_0x1d0b36(0x1b0)]&&_0x562403[_0x1d0b36(0x1a9)](_0x4e6889['id'],_0x4e6889[_0x1d0b36(0x1b0)]),_0x4e6889[_0x1d0b36(0x14a)]&&_0x562403[_0x1d0b36(0x2e3)](_0x4e6889['id'],_0x4e6889[_0x1d0b36(0x14a)]));}for(const _0x170f23 of _0xb2e44e){const _0x43ce26=_0x4409d4[_0x170f23];_0x43ce26&&_0x562403[_0x1d0b36(0x1d4)](_0x43ce26['dataFieldId'])&&(_0x562403[_0x1d0b36(0x2e4)](_0x43ce26[_0x1d0b36(0x1c1)],_0x2c142[_0x1d0b36(0x369)][_0x1d0b36(0x295)],void 0x0,_0x170f23),_0x43ce26[_0x1d0b36(0x2fa)]!==void 0x0&&_0x562403['setSubtotalType'](_0x170f23,_0x43ce26[_0x1d0b36(0x2fa)]),_0x43ce26[_0x1d0b36(0x3dc)]&&_0x562403[_0x1d0b36(0x146)](_0x170f23,_0x43ce26[_0x1d0b36(0x3dc)]),_0x43ce26[_0x1d0b36(0x14a)]&&_0x562403['renameField'](_0x43ce26['id'],_0x43ce26[_0x1d0b36(0x14a)]));}const _0x1ca568=_0x1d53ed[_0x1d0b36(0x219)];for(const {fieldId:_0x55fd4b,filterInfo:_0x55ef63}of _0x1ca568)_0x562403[_0x1d0b36(0x3d2)](_0x55fd4b,_0x55ef63);}function _0x57b3a3(_0x4a7500,_0x238177){const _0x20d7b1=_0x269f30,_0x219ab7=[];_0x238177===_0x2c142[_0x20d7b1(0x369)][_0x20d7b1(0x276)]&&_0x4a7500['iterateFieldByArea'](_0x2c142['PivotTableFiledAreaEnum']['Row'],_0x468a14=>{const _0x24d404=_0x20d7b1;_0x219ab7[_0x24d404(0x3fe)](_0x468a14[_0x24d404(0x3f3)]());}),_0x238177===_0x2c142[_0x20d7b1(0x369)][_0x20d7b1(0x291)]&&_0x4a7500[_0x20d7b1(0x37e)](_0x2c142[_0x20d7b1(0x369)]['Column'],_0x4ec9b2=>{const _0x187512=_0x20d7b1;_0x219ab7[_0x187512(0x3fe)](_0x4ec9b2['getId']());}),_0x238177===_0x2c142[_0x20d7b1(0x369)][_0x20d7b1(0x364)]&&_0x4a7500['iterateFieldByArea'](_0x2c142[_0x20d7b1(0x369)][_0x20d7b1(0x364)],_0x6128fb=>{const _0xc87031=_0x20d7b1;_0x219ab7['push'](_0x6128fb[_0xc87031(0x3f3)]());}),_0x238177===_0x2c142[_0x20d7b1(0x369)][_0x20d7b1(0x295)]&&_0x4a7500[_0x20d7b1(0x37e)](_0x2c142[_0x20d7b1(0x369)]['Value'],_0x2579f3=>{const _0xacdb0d=_0x20d7b1;_0x219ab7[_0xacdb0d(0x3fe)](_0x2579f3[_0xacdb0d(0x3f3)]());}),_0x238177===void 0x0&&_0x4a7500[_0x20d7b1(0x18d)](_0x174dce=>{const _0x235a4d=_0x20d7b1;_0x219ab7[_0x235a4d(0x3fe)](_0x174dce[_0x235a4d(0x3f3)]());});const _0x5efb50=_0x219ab7[_0x20d7b1(0x1ed)];for(let _0x473fc3=_0x5efb50-0x1;_0x473fc3>=0x0;_0x473fc3--)_0x4a7500[_0x20d7b1(0x400)](_0x219ab7[_0x473fc3]);const _0xa9ea94=_0x4a7500[_0x20d7b1(0x432)]();for(const _0x3e0551 in _0xa9ea94)_0x4a7500[_0x20d7b1(0x296)](_0x3e0551);}function _0x5b170d(_0xf7134e,_0x4cff16){const _0x96abcb=_0x269f30,_0x55c2a2=new Date(_0x2c142['excelDateToUnixMilliseconds'](_0x4cff16)),_0x225af4=new Date(_0x2c142[_0x96abcb(0x2ac)](_0xf7134e)),_0x4570b0=_0x55c2a2['getFullYear'](),_0x770ae0=_0x225af4['getFullYear'](),_0x34a2cd=_0x55c2a2['getMonth'](),_0x4467fb=_0x225af4['getMonth'](),_0x11003e=_0x55c2a2[_0x96abcb(0x220)](),_0x2b9cdf=_0x225af4['getDate'](),_0x548c56=_0x4570b0===_0x770ae0,_0xb2f63f=_0x548c56&&_0x34a2cd===_0x4467fb;return _0x548c56&&_0xb2f63f&&!(_0xb2f63f&&_0x11003e===_0x2b9cdf)?_0x2c142['PivotDateGroupFieldDateTypeEnum']['YearMonthDate']:_0x548c56&&!_0xb2f63f?_0x2c142[_0x96abcb(0x225)]['YearMonth']:_0x2c142[_0x96abcb(0x225)][_0x96abcb(0x2df)];}function _0x2053fb(_0x4d512f,_0x1d82e8){const _0x488eb8=_0x269f30,_0x95b093=_0x4d512f[_0x488eb8(0x33f)](_0x1aec1a[_0x488eb8(0x12b)])[_0x488eb8(0x429)]();let _0x4aea57='';switch(_0x1d82e8){case _0x2c142[_0x488eb8(0x225)]['YearMonthDate']:_0x4aea57=_0x95b093['sheets-pivot.dateGroup.yearMonthDate'];break;case _0x2c142[_0x488eb8(0x225)][_0x488eb8(0x281)]:_0x4aea57=_0x95b093[_0x488eb8(0x13f)];break;case _0x2c142[_0x488eb8(0x225)][_0x488eb8(0x2df)]:_0x4aea57=_0x95b093['sheets-pivot.dateGroup.year'];break;case _0x2c142[_0x488eb8(0x225)]['Month']:_0x4aea57=_0x95b093[_0x488eb8(0x190)];break;case _0x2c142['PivotDateGroupFieldDateTypeEnum'][_0x488eb8(0x1fb)]:_0x4aea57=_0x95b093[_0x488eb8(0x374)];break;case _0x2c142[_0x488eb8(0x225)][_0x488eb8(0x270)]:_0x4aea57=_0x95b093[_0x488eb8(0x22a)];break;case _0x2c142[_0x488eb8(0x225)]['HourMinute']:_0x4aea57=_0x95b093['sheets-pivot.dateGroup.hourMinute'];break;case _0x2c142[_0x488eb8(0x225)][_0x488eb8(0x3e5)]:_0x4aea57=_0x95b093[_0x488eb8(0x3d0)];break;case _0x2c142[_0x488eb8(0x225)][_0x488eb8(0x248)]:_0x4aea57=_0x95b093[_0x488eb8(0x156)];break;case _0x2c142[_0x488eb8(0x225)][_0x488eb8(0x2c1)]:_0x4aea57=_0x95b093['sheets-pivot.dateGroup.monthDate'];break;case _0x2c142[_0x488eb8(0x225)][_0x488eb8(0x1b2)]:_0x4aea57=_0x95b093['sheets-pivot.dateGroup.yearQuarter'];break;default:_0x4aea57='';break;}return _0x4aea57;}const _0x307350='sheets-pivot.config',_0x43c08c={};var _0x371834=Object[_0x269f30(0x1a6)],_0x4dfc78=(_0x3b563c,_0x58bb56,_0x2403d8,_0x4cf9c6)=>{const _0x17c628=_0x269f30;for(var _0x2a94ab=_0x4cf9c6>0x1?void 0x0:_0x4cf9c6?_0x371834(_0x58bb56,_0x2403d8):_0x58bb56,_0x11bf57=_0x3b563c[_0x17c628(0x1ed)]-0x1,_0x2bdf62;_0x11bf57>=0x0;_0x11bf57--)(_0x2bdf62=_0x3b563c[_0x11bf57])&&(_0x2a94ab=_0x2bdf62(_0x2a94ab)||_0x2a94ab);return _0x2a94ab;},_0x157369=(_0xcac668,_0x4ec496)=>(_0x3ea8a8,_0x25554e)=>_0x4ec496(_0x3ea8a8,_0x25554e,_0xcac668);_0x1aec1a['SheetsPivotTableConfigModel']=class extends _0x194133[_0x269f30(0x2a8)]{constructor(_0x3cc9d6,_0x2103bc,_0x21427c,_0x59e3f1,_0x3f7d57){const _0x13468a=_0x269f30;super(),_0x327454(this,_0x13468a(0x39a),new Map()),_0x327454(this,_0x13468a(0x387),new Map()),_0x327454(this,'_pivotTableRangeInfo',new Map()),_0x327454(this,_0x13468a(0x22e),new Map()),_0x327454(this,_0x13468a(0x2b8),new _0x2935a3[(_0x13468a(0x2b3))]()),_0x327454(this,_0x13468a(0x1cb),new _0x2935a3[(_0x13468a(0x2b3))]()),_0x327454(this,_0x13468a(0x340),this[_0x13468a(0x1cb)][_0x13468a(0x1f3)]()),_0x327454(this,_0x13468a(0x349),new _0x2935a3[(_0x13468a(0x2b3))]()),_0x327454(this,'pivotConfigChange$',this[_0x13468a(0x349)][_0x13468a(0x1f3)]()),_0x327454(this,_0x13468a(0x282),{}),_0x327454(this,'configVersion$',this[_0x13468a(0x2b8)][_0x13468a(0x1f3)]()),(this[_0x13468a(0x150)]=_0x3cc9d6,this[_0x13468a(0x394)]=_0x2103bc,this[_0x13468a(0x1de)]=_0x21427c,this[_0x13468a(0x27e)]=_0x59e3f1,this[_0x13468a(0x41b)]=_0x3f7d57,this[_0x13468a(0x178)](),this[_0x13468a(0x358)]());const _0x9852b7=this[_0x13468a(0x41b)][_0x13468a(0x1cc)](_0x307350);(_0x9852b7==null?void 0x0:_0x9852b7[_0x13468a(0x15b)])===!0x0&&this[_0x13468a(0x12f)]();}[_0x269f30(0x358)](){const _0x1e528c=_0x269f30;this[_0x1e528c(0x409)](this['_univerInstanceService'][_0x1e528c(0x30b)](_0x194133['UniverInstanceType'][_0x1e528c(0x3c4)])[_0x1e528c(0x256)](_0x2985af=>{const _0x5b27d4=_0x1e528c;this[_0x5b27d4(0x385)](_0x2985af[_0x5b27d4(0x17d)]());}));}[_0x269f30(0x228)](){const _0x4404d2=_0x269f30;this['_pivotInitCompleted$'][_0x4404d2(0x2c7)](!0x0);}[_0x269f30(0x178)](){const _0x524b52=_0x269f30,_0x2589aa=_0x2cd7df(this[_0x524b52(0x150)],_0x40907e,'',{});this[_0x524b52(0x282)]=_0x2589aa,this['_commandService'][_0x524b52(0x168)](_0x397dda['id'],{'textInfo':_0x2589aa},{'onlyLocal':!0x0});}[_0x269f30(0x429)](){const _0x38cc23=_0x269f30;return this[_0x38cc23(0x282)];}[_0x269f30(0x42c)](_0x718ed8,_0x2b18ab,_0x1c09ac,_0x191f1c,_0x213617){const _0xe39eb9=_0x269f30;this['updatePivotTableMatrixInfo'](_0x718ed8,_0x2b18ab,_0x1c09ac,_0x191f1c),this[_0xe39eb9(0x30d)](_0x718ed8,_0x2b18ab,_0x1c09ac,_0x213617);}['getPivotTableConfig'](_0x2a5f48,_0x5b316f,_0x5d257b){const _0x30339d=_0x269f30;var _0x382610;const _0xa9f514=(_0x382610=this[_0x30339d(0x39a)][_0x30339d(0x33f)](_0x2a5f48))==null?void 0x0:_0x382610[_0x30339d(0x33f)](_0x5b316f);if(_0xa9f514)return _0xa9f514['get'](_0x5d257b);}[_0x269f30(0x15a)](_0x5bb02d,_0x2861e5){const _0x11145d=_0x269f30,_0x4de975=this['_model']['get'](_0x5bb02d);if(_0x4de975){for(const [_0x1b25ca,_0xcaa073]of _0x4de975[_0x11145d(0x305)]())for(const [_0x36c050,_0x54124c]of _0xcaa073[_0x11145d(0x305)]())if(_0x36c050===_0x2861e5)return _0x54124c[_0x11145d(0x1e6)];}}[_0x269f30(0x126)](_0x143816,_0x19df0d,_0x39d0f8){const _0x4a8218=_0x269f30,_0x4bc9ae=this[_0x4a8218(0x189)](_0x143816,_0x19df0d,_0x39d0f8);return _0x4bc9ae==null?void 0x0:_0x4bc9ae[_0x4a8218(0x1e6)];}[_0x269f30(0x205)](_0x1bc839,_0x33f01e){const _0x5f4224=_0x269f30;var _0x457b2e;return(_0x457b2e=this[_0x5f4224(0x39a)][_0x5f4224(0x33f)](_0x1bc839))==null?void 0x0:_0x457b2e[_0x5f4224(0x33f)](_0x33f01e);}[_0x269f30(0x20c)](_0x4fdf85,_0x2e166f,_0x1b4e7d,_0x17e5b6){const _0x5668d8=_0x269f30,_0x54699b=this['_ensurePivotMap'](_0x4fdf85,_0x2e166f);_0x17e5b6?_0x54699b[_0x5668d8(0x302)](_0x1b4e7d,_0x17e5b6):_0x54699b[_0x5668d8(0x3bd)](_0x1b4e7d),this['_pivotConfigChange$'][_0x5668d8(0x2c7)]({'unitId':_0x4fdf85,'subUnitId':_0x2e166f,'pivotTableId':_0x1b4e7d,'pivotTableConfig':_0x17e5b6});}[_0x269f30(0x267)](_0x23581e,_0x17522f){const _0x5a9f4d=_0x269f30;var _0x3c794b;return(_0x3c794b=this['_collectionConfigModel'][_0x5a9f4d(0x33f)](_0x23581e))==null?void 0x0:_0x3c794b[_0x5a9f4d(0x303)][_0x17522f];}['updateCollectionConfig'](_0x362c91,_0x2f69f6){const _0x2905a6=_0x269f30;this[_0x2905a6(0x387)][_0x2905a6(0x302)](_0x362c91,_0x2f69f6),this['_configVersion$'][_0x2905a6(0x2c7)](Math[_0x2905a6(0x314)]());}['_ensurePivotMap'](_0x7a367d,_0x1e0722){const _0x46039b=_0x269f30;let _0x1f8597=this[_0x46039b(0x39a)][_0x46039b(0x33f)](_0x7a367d);_0x1f8597||(_0x1f8597=new Map(),this[_0x46039b(0x39a)][_0x46039b(0x302)](_0x7a367d,_0x1f8597));let _0x4e3e9a=_0x1f8597['get'](_0x1e0722);return _0x4e3e9a||(_0x4e3e9a=new Map(),_0x1f8597[_0x46039b(0x302)](_0x1e0722,_0x4e3e9a)),_0x4e3e9a;}['_ensurePivotTableRangeInfo'](_0x30868c,_0x153816){const _0x438b4b=_0x269f30;let _0x36d70c=this['_pivotTableRangeInfo'][_0x438b4b(0x33f)](_0x30868c);_0x36d70c||(_0x36d70c=new Map(),this[_0x438b4b(0x381)][_0x438b4b(0x302)](_0x30868c,_0x36d70c));let _0x45eb32=_0x36d70c[_0x438b4b(0x33f)](_0x153816);return _0x45eb32||(_0x45eb32=new Map(),_0x36d70c[_0x438b4b(0x302)](_0x153816,_0x45eb32)),_0x45eb32;}[_0x269f30(0x211)](_0x282d7d,_0x6fc928){const _0x8145da=_0x269f30;let _0x42b41d=this[_0x8145da(0x22e)][_0x8145da(0x33f)](_0x282d7d);_0x42b41d||(_0x42b41d=new Map(),this[_0x8145da(0x22e)][_0x8145da(0x302)](_0x282d7d,_0x42b41d));let _0x5591ce=_0x42b41d[_0x8145da(0x33f)](_0x6fc928);return _0x5591ce||(_0x5591ce=new Map(),_0x42b41d[_0x8145da(0x302)](_0x6fc928,_0x5591ce)),_0x5591ce;}[_0x269f30(0x30d)](_0x333f8f,_0x5ab7e1,_0x2f0906,_0x2ab0d4){const _0x3d7027=_0x269f30;var _0x25ff40;const _0x418c50=this[_0x3d7027(0x3c2)](_0x333f8f,_0x5ab7e1),_0x5e0755=(_0x25ff40=_0x418c50[_0x3d7027(0x33f)](_0x2f0906))==null?void 0x0:_0x25ff40[_0x3d7027(0x23f)];_0x418c50['set'](_0x2f0906,{'oldRangeInfo':_0x5e0755,'rangeInfo':_0x2ab0d4});}[_0x269f30(0x40c)](_0x436e16,_0x3ca8ad,_0x57d046,_0x2e14dd){const _0x595434=_0x269f30;var _0x57b567;const _0x3ca327=this[_0x595434(0x211)](_0x436e16,_0x3ca8ad),_0x49c0e6=(_0x57b567=_0x3ca327['get'](_0x57d046))==null?void 0x0:_0x57b567[_0x595434(0x1eb)];_0x3ca327[_0x595434(0x302)](_0x57d046,{'oldMatrix':_0x49c0e6,'matrix':_0x2e14dd});}[_0x269f30(0x191)](_0x4a8199,_0x3c247c,_0x5b8f7e){const _0x4f2a2c=_0x269f30;var _0x5e2501,_0xfdb3c8;return(_0xfdb3c8=(_0x5e2501=this[_0x4f2a2c(0x381)][_0x4f2a2c(0x33f)](_0x4a8199))==null?void 0x0:_0x5e2501['get'](_0x3c247c))==null?void 0x0:_0xfdb3c8['get'](_0x5b8f7e);}[_0x269f30(0x298)](_0x51a601,_0x38672f,_0x3ab0c7){const _0x6fd7ae=_0x269f30;var _0x3cd6bb,_0x4aa764;return(_0x4aa764=(_0x3cd6bb=this['_pivotTableMatrixInfo']['get'](_0x51a601))==null?void 0x0:_0x3cd6bb[_0x6fd7ae(0x33f)](_0x38672f))==null?void 0x0:_0x4aa764[_0x6fd7ae(0x33f)](_0x3ab0c7);}[_0x269f30(0x385)](_0x5aa554){const _0x4a916e=_0x269f30;this[_0x4a916e(0x39a)][_0x4a916e(0x3bd)](_0x5aa554),this[_0x4a916e(0x387)]['delete'](_0x5aa554);}[_0x269f30(0x19b)](_0x45040d){const _0xf12732=_0x269f30,_0x1715ab={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0xf12732(0x387)][_0xf12732(0x33f)](_0x45040d)&&(_0x1715ab[_0xf12732(0x30a)][_0x45040d]=this[_0xf12732(0x387)]['get'](_0x45040d)),this[_0xf12732(0x39a)][_0xf12732(0x33f)](_0x45040d)){_0x1715ab['pivotTableConfigs'][_0x45040d]={};const _0x44b111=this[_0xf12732(0x39a)][_0xf12732(0x33f)](_0x45040d);_0x44b111!=null&&_0x44b111['size']&&[..._0x44b111[_0xf12732(0x243)]()]['forEach'](_0x5c5126=>{const _0x1015de=_0xf12732,_0x31feff=_0x44b111[_0x1015de(0x33f)](_0x5c5126);_0x31feff!=null&&_0x31feff[_0x1015de(0x3de)]&&(_0x1715ab[_0x1015de(0x34a)][_0x45040d][_0x5c5126]={},[..._0x31feff[_0x1015de(0x243)]()]['forEach'](_0x1f5460=>{const _0x8f4949=_0x1015de,_0x1c254b=_0x31feff[_0x8f4949(0x33f)](_0x1f5460);_0x1c254b&&(_0x1715ab[_0x8f4949(0x34a)][_0x45040d][_0x5c5126][_0x1f5460]=_0x1c254b);}));});}return _0x1715ab;}[_0x269f30(0x12f)](){const _0x220824=_0x269f30;this[_0x220824(0x409)](this[_0x220824(0x27e)][_0x220824(0x18e)]({'toJson':_0x1af02f=>JSON[_0x220824(0x3ae)](this['_toJSON'](_0x1af02f)),'parseJson':_0x57e8d4=>({}),'businesses':[_0x194133[_0x220824(0x1c8)][_0x220824(0x3c4)]],'pluginName':_0x468904,'onLoad':(_0x2c8241,_0x2e82b0)=>{},'onUnLoad':_0x312211=>{const _0x215817=_0x220824;this[_0x215817(0x385)](_0x312211);}}));}},_0x1aec1a[_0x269f30(0x323)]=_0x4dfc78([_0x157369(0x0,_0x194133['Inject'](_0x194133[_0x269f30(0x24c)])),_0x157369(0x1,_0x194133['Inject'](_0x194133[_0x269f30(0x3a4)])),_0x157369(0x2,_0x194133[_0x269f30(0x26b)](_0x194133['IUniverInstanceService'])),_0x157369(0x3,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x397)])),_0x157369(0x4,_0x194133['Inject'](_0x194133[_0x269f30(0x431)]))],_0x1aec1a[_0x269f30(0x323)]);var _0x334921=Object[_0x269f30(0x1a6)],_0x3c595b=(_0x4fe8f0,_0x594cd9,_0x84adef,_0x53978c)=>{for(var _0x1cc571=_0x53978c>0x1?void 0x0:_0x53978c?_0x334921(_0x594cd9,_0x84adef):_0x594cd9,_0x15f147=_0x4fe8f0['length']-0x1,_0x6ebcc0;_0x15f147>=0x0;_0x15f147--)(_0x6ebcc0=_0x4fe8f0[_0x15f147])&&(_0x1cc571=_0x6ebcc0(_0x1cc571)||_0x1cc571);return _0x1cc571;},_0x563806=(_0x1397b6,_0x5a2291)=>(_0x3aa519,_0x9ce2f5)=>_0x5a2291(_0x3aa519,_0x9ce2f5,_0x1397b6);_0x1aec1a[_0x269f30(0x328)]=class extends _0x194133[_0x269f30(0x2a8)]{constructor(_0x4421d3,_0x4980cd,_0x308a76,_0x3b3730,_0x3308e4){const _0x38a77b=_0x269f30;super(),_0x327454(this,_0x38a77b(0x3f2),new Map()),_0x327454(this,_0x38a77b(0x35c),new Map()),_0x327454(this,'_markDirty$',new _0x2935a3['Subject']()),_0x327454(this,_0x38a77b(0x16a),this['_markDirty$'][_0x38a77b(0x1f3)]()),_0x327454(this,'_viewUpdate$',new _0x2935a3[(_0x38a77b(0x2b3))]()),_0x327454(this,'viewUpdate$',this[_0x38a77b(0x2d6)][_0x38a77b(0x1f3)]()),_0x327454(this,_0x38a77b(0x282)),(this[_0x38a77b(0x2f0)]=_0x4421d3,this[_0x38a77b(0x150)]=_0x4980cd,this[_0x38a77b(0x325)]=_0x308a76,this[_0x38a77b(0x1de)]=_0x3b3730,this[_0x38a77b(0x353)]=_0x3308e4,this[_0x38a77b(0x178)](),this[_0x38a77b(0x358)]());}[_0x269f30(0x358)](){const _0x1c4a39=_0x269f30;this[_0x1c4a39(0x409)](this[_0x1c4a39(0x1de)][_0x1c4a39(0x30b)](_0x194133[_0x1c4a39(0x1c8)][_0x1c4a39(0x3c4)])['subscribe'](_0x3f43ff=>{const _0x32f7f8=_0x1c4a39;this[_0x32f7f8(0x385)](_0x3f43ff['getUnitId']());}));}[_0x269f30(0x178)](){const _0xe0edb1=_0x269f30;this[_0xe0edb1(0x282)]=_0x2cd7df(this[_0xe0edb1(0x150)],_0x40907e,'',{});}[_0x269f30(0x27d)](_0x1132d4){const _0x174c6a=_0x269f30,{view:_0x49def9,unitId:_0x2dfbcc,subUnitId:_0x1fc5b0,pivotTableId:_0x3ef2f8,type:_0x227017}=_0x1132d4,_0x159c0a=this['_sheetsPivotTableConfigModel'][_0x174c6a(0x189)](_0x2dfbcc,_0x1fc5b0,_0x3ef2f8);if(!_0x49def9||!_0x159c0a||_0x227017===_0x12d3c2['Delete'])return;const {pageView:_0x4f3782,cornerView:_0x4ab95f,rowView:_0x85b967,colView:_0x509752,dataView:_0x345041}=_0x49def9,_0x19b925=_0x159c0a['targetCellInfo'],_0x3db8cf=_0x159c0a[_0x174c6a(0x1d1)],_0x184136=this[_0x174c6a(0x226)](_0x2dfbcc,_0x1fc5b0),_0x3072e4=this['_ensurePivotItemRenderInfoCache'](_0x2dfbcc,_0x1fc5b0,_0x3ef2f8);if(_0x3db8cf)return this[_0x174c6a(0x1c7)](_0x1132d4,_0x184136,_0x19b925,_0x3072e4);{const _0x4b6c2b=_0x4c3feb(_0x19b925,_0x4f3782,!0x0),_0x58f0bd=_0x4f3782['lastRow']>=0x0?_0x4f3782[_0x174c6a(0x2d7)]+0x1:0x0,_0x4a1af1=_0x4ab95f['getRowCount'](),_0x59c55d=_0x4ab95f[_0x174c6a(0x25c)](),_0x667955=_0x4b6c2b[_0x174c6a(0x1ed)]>0x0?_0x4f4430:0x0,_0x1f4656=_0x4c3feb({'row':_0x19b925[_0x174c6a(0x26d)]+_0x58f0bd+_0x667955,'col':_0x19b925[_0x174c6a(0x35b)]},_0x4ab95f,!0x1,!0x1),_0x2f26cb=_0x4c3feb({'row':_0x19b925[_0x174c6a(0x26d)]+_0x58f0bd+_0x667955+_0x4a1af1,'col':_0x19b925['col']},_0x85b967,!0x1,!0x0),_0x4ab7aa=_0x4c3feb({'row':_0x19b925['row']+_0x58f0bd+_0x667955,'col':_0x19b925[_0x174c6a(0x35b)]+_0x59c55d},_0x509752,!0x1,!0x0),_0x5e9f7c=_0x4c3feb({'row':_0x19b925['row']+_0x58f0bd+_0x667955+_0x4a1af1,'col':_0x19b925[_0x174c6a(0x35b)]+_0x59c55d},_0x345041,!0x1,!0x1);_0x3072e4[_0x174c6a(0x331)]={'rowRanges':_0x2f26cb,'colRanges':_0x4ab7aa,'cornerRanges':_0x1f4656,'dataRanges':_0x5e9f7c,'pageRanges':_0x4b6c2b};const _0x876f8=_0x51f9ce(this[_0x174c6a(0x150)],_0x49def9,_0x159c0a,this[_0x174c6a(0x282)]),{valueMatrix:_0x185d9f,rowInfo:_0x55e3af,colInfo:_0x46dd24,cornerInfo:_0x482450,rowHeaderMap:_0x57e3d0,colHeaderMap:_0x700904}=_0x876f8;return _0x3072e4[_0x174c6a(0x253)]={'rowInfo':_0x55e3af,'colInfo':_0x46dd24,'cornerInfo':_0x482450},_0x3072e4[_0x174c6a(0x36f)]={'rowHeaderMap':_0x57e3d0,'colHeaderMap':_0x700904},_0x185d9f[_0x174c6a(0x2cd)]((_0x38115b,_0x70ca7f)=>{const _0x4f282c=_0x174c6a;Object[_0x4f282c(0x243)](_0x70ca7f)[_0x4f282c(0x2cd)](_0x596496=>{const _0x6279b6=_0x4f282c,_0x49bacf=+_0x596496,_0x101ba8=_0x185d9f[_0x6279b6(0x1da)](_0x38115b,_0x49bacf);_0x184136[_0x6279b6(0x26e)](_0x38115b,_0x49bacf,_0x101ba8);});}),this[_0x174c6a(0x2d6)][_0x174c6a(0x2c7)]({'unitId':_0x2dfbcc,'subUnitId':_0x1fc5b0,'valueMatrix':_0x184136,'rangesCache':_0x3072e4[_0x174c6a(0x331)],'pivotTableId':_0x3ef2f8,'type':_0x1132d4[_0x174c6a(0x389)]}),this[_0x174c6a(0x325)]['updateViewInfo'](_0x2dfbcc,_0x1fc5b0,_0x3ef2f8,_0x184136,_0x3072e4[_0x174c6a(0x331)]),this[_0x174c6a(0x353)]['addExclusiveRange'](_0x2dfbcc,_0x1fc5b0,_0x222c74,this[_0x174c6a(0x180)](_0x3072e4[_0x174c6a(0x331)],_0x3ef2f8)),{'rangeCache':_0x3072e4[_0x174c6a(0x331)],'matrix':_0x184136};}}[_0x269f30(0x1c7)](_0x4873d4,_0x507046,_0x15b774,_0x24bc90){const _0x4ab171=_0x269f30,_0x34d149=this[_0x4ab171(0x2f0)]['t'],{unitId:_0x5a2b98,subUnitId:_0x562085,pivotTableId:_0x49b8c1}=_0x4873d4,_0x56e09d={'filter':_0x34d149(_0x4ab171(0x3cb)),'row':_0x34d149(_0x4ab171(0x357)),'column':_0x34d149('sheets-pivot.emptyPivot.column'),'values':_0x34d149('sheets-pivot.emptyPivot.values')},{matrixCache:_0x5947ab,rangesCache:_0x525443}=_0x3656fa(_0x56e09d,_0x15b774);return _0x5947ab[_0x4ab171(0x421)]((_0x23328c,_0x1be409,_0x12dc3e)=>{const _0x3d45a3=_0x4ab171;_0x507046[_0x3d45a3(0x26e)](_0x23328c,_0x1be409,_0x12dc3e);}),_0x24bc90[_0x4ab171(0x331)]=_0x525443,this[_0x4ab171(0x2d6)][_0x4ab171(0x2c7)]({'unitId':_0x5a2b98,'subUnitId':_0x562085,'valueMatrix':_0x507046,'rangesCache':_0x525443,'pivotTableId':_0x49b8c1,'type':_0x4873d4[_0x4ab171(0x389)],'isEmpty':!0x0}),this[_0x4ab171(0x325)][_0x4ab171(0x42c)](_0x5a2b98,_0x562085,_0x49b8c1,_0x507046,_0x525443),this['_exclusiveRangeService'][_0x4ab171(0x23c)](_0x5a2b98,_0x562085,_0x222c74,this['_createExclusiveRange'](_0x525443,_0x49b8c1)),{'rangeCache':_0x24bc90[_0x4ab171(0x331)],'matrix':_0x507046};}[_0x269f30(0x180)](_0x21f3dc,_0x37d894){const _0x196cf3=_0x269f30,_0x2a726d=[],_0x318e7f=_0x243b5e(_0x21f3dc);for(const _0x3556c3 of _0x318e7f)_0x2a726d[_0x196cf3(0x3fe)]({'groupId':_0x37d894,'range':_0x3556c3});return _0x2a726d;}[_0x269f30(0x2ee)](_0x3c9256){const _0x4e3607=_0x269f30;var _0xe9caea,_0x3f2459,_0x51b14b,_0x5766b5;const {pivotTableId:_0x37eba4,unitId:_0x2d6ec8,subUnitId:_0x4283ad}=_0x3c9256;if(!_0x37eba4||!_0x2d6ec8||!_0x4283ad)return;const _0x1afb9d=this['_ensurePivotItemRenderValueMatrixCache'](_0x2d6ec8,_0x4283ad),_0x1a7eeb=(_0x3f2459=(_0xe9caea=this[_0x4e3607(0x3f2)]['get'](_0x2d6ec8))==null?void 0x0:_0xe9caea[_0x4e3607(0x33f)](_0x4283ad))==null?void 0x0:_0x3f2459[_0x4e3607(0x33f)](_0x37eba4);if(_0x1a7eeb!=null&&_0x1a7eeb[_0x4e3607(0x331)]){for(const _0x2a9fdd of Object[_0x4e3607(0x243)](_0x1a7eeb[_0x4e3607(0x331)]))_0x1a7eeb[_0x4e3607(0x331)][_0x2a9fdd][_0x4e3607(0x2cd)](_0x754c06=>{const _0x2593a0=_0x4e3607;for(let _0x5886d7=_0x754c06[_0x2593a0(0x159)];_0x5886d7<=_0x754c06[_0x2593a0(0x2a5)];_0x5886d7++)for(let _0x3c9c9a=_0x754c06[_0x2593a0(0x152)];_0x3c9c9a<=_0x754c06[_0x2593a0(0x12c)];_0x3c9c9a++)_0x1afb9d[_0x2593a0(0x193)](_0x5886d7,_0x3c9c9a);});}_0x1a7eeb&&((_0x5766b5=(_0x51b14b=this['_pivotRenderInfoCache'][_0x4e3607(0x33f)](_0x2d6ec8))==null?void 0x0:_0x51b14b[_0x4e3607(0x33f)](_0x4283ad))==null||_0x5766b5[_0x4e3607(0x3bd)](_0x37eba4)),this['_viewUpdate$'][_0x4e3607(0x2c7)]({'unitId':_0x2d6ec8,'subUnitId':_0x4283ad,'valueMatrix':_0x1afb9d,'pivotTableId':_0x37eba4,'rangesCache':void 0x0,'type':_0x3c9256[_0x4e3607(0x389)]}),this[_0x4e3607(0x353)]['clearExclusiveRangesByGroupId'](_0x2d6ec8,_0x4283ad,_0x222c74,_0x37eba4);}[_0x269f30(0x28b)](_0x9fa265,_0x56e8dc,_0x362b04){const _0x448b79=_0x269f30;var _0x2a54d5,_0x58b3eb,_0xc6a75a,_0x570215,_0x30331e,_0x5c0e9a;return this[_0x448b79(0x3f2)]['has'](_0x9fa265)||this[_0x448b79(0x3f2)]['set'](_0x9fa265,new Map()),(_0x2a54d5=this[_0x448b79(0x3f2)][_0x448b79(0x33f)](_0x9fa265))!=null&&_0x2a54d5[_0x448b79(0x224)](_0x56e8dc)||(_0x58b3eb=this['_pivotRenderInfoCache'][_0x448b79(0x33f)](_0x9fa265))==null||_0x58b3eb['set'](_0x56e8dc,new Map()),(_0x570215=(_0xc6a75a=this['_pivotRenderInfoCache']['get'](_0x9fa265))==null?void 0x0:_0xc6a75a[_0x448b79(0x33f)](_0x56e8dc))!=null&&_0x570215[_0x448b79(0x224)](_0x362b04)||(_0x5c0e9a=(_0x30331e=this['_pivotRenderInfoCache']['get'](_0x9fa265))==null?void 0x0:_0x30331e['get'](_0x56e8dc))==null||_0x5c0e9a['set'](_0x362b04,{}),this[_0x448b79(0x3f2)][_0x448b79(0x33f)](_0x9fa265)[_0x448b79(0x33f)](_0x56e8dc)[_0x448b79(0x33f)](_0x362b04);}[_0x269f30(0x226)](_0x5f02dc,_0x5b1884){const _0x4209c4=_0x269f30;var _0x9b8b2c,_0x3f6820;return this[_0x4209c4(0x35c)]['has'](_0x5f02dc)||this[_0x4209c4(0x35c)][_0x4209c4(0x302)](_0x5f02dc,new Map()),(_0x9b8b2c=this['_pivotRenderValueMatrixCache'][_0x4209c4(0x33f)](_0x5f02dc))!=null&&_0x9b8b2c[_0x4209c4(0x224)](_0x5b1884)||(_0x3f6820=this[_0x4209c4(0x35c)][_0x4209c4(0x33f)](_0x5f02dc))==null||_0x3f6820[_0x4209c4(0x302)](_0x5b1884,new _0x194133['ObjectMatrix']()),this[_0x4209c4(0x35c)][_0x4209c4(0x33f)](_0x5f02dc)[_0x4209c4(0x33f)](_0x5b1884);}[_0x269f30(0x2c9)](_0x3239af,_0x1ba5ce,_0x3443f7,_0x3215e4){const _0x4196ad=_0x269f30;var _0x110312,_0x36a8ee;const _0x3f5de1=(_0x36a8ee=(_0x110312=this['_pivotRenderValueMatrixCache'][_0x4196ad(0x33f)](_0x3239af))==null?void 0x0:_0x110312['get'](_0x1ba5ce))==null?void 0x0:_0x36a8ee['getValue'](_0x3443f7,_0x3215e4);if(_0x3f5de1!=null)return _0x3f5de1;}['getPivotTableIdByCell'](_0xec243b,_0x2948b4,_0x1672dc,_0x5843f8){const _0x58c532=_0x269f30;var _0x1c8403;const _0x32252b=_0x194133[_0x58c532(0x42e)](_0x1672dc,_0x5843f8),_0x4016fe=(_0x1c8403=this[_0x58c532(0x3f2)]['get'](_0xec243b))==null?void 0x0:_0x1c8403['get'](_0x2948b4);return _0x4016fe?Array['from'](_0x4016fe[_0x58c532(0x243)]())['find'](_0x3aa782=>{const _0x5bd6c2=_0x58c532,_0x420ead=_0x4016fe[_0x5bd6c2(0x33f)](_0x3aa782),_0x3cd7c4=_0x420ead==null?void 0x0:_0x420ead[_0x5bd6c2(0x331)];return _0x3cd7c4?Object[_0x5bd6c2(0x243)](_0x3cd7c4)[_0x5bd6c2(0x25d)](_0x1a6ebe=>_0x3cd7c4[_0x1a6ebe][_0x5bd6c2(0x25d)](_0x2a6f53=>_0x194133['Rectangle'][_0x5bd6c2(0x1c3)](_0x2a6f53,_0x32252b))):!0x1;}):void 0x0;}[_0x269f30(0x179)](_0x292aa2,_0x42a867,_0x5978de){const _0x1908df=_0x269f30;var _0x5e85f8;const _0x131e3e=(_0x5e85f8=this['_pivotRenderInfoCache'][_0x1908df(0x33f)](_0x292aa2))==null?void 0x0:_0x5e85f8[_0x1908df(0x33f)](_0x42a867),_0x5389a0=[];return _0x131e3e&&Array[_0x1908df(0x3b9)](_0x131e3e[_0x1908df(0x243)]())['forEach'](_0x38081d=>{const _0x4baf88=_0x1908df,_0x33ff43=_0x131e3e[_0x4baf88(0x33f)](_0x38081d),_0x584e11=_0x33ff43==null?void 0x0:_0x33ff43[_0x4baf88(0x331)];if(_0x584e11)for(const _0x2d5213 of Object[_0x4baf88(0x27a)](_0x584e11)){let _0x54eef1=!0x1;for(const _0xc51e94 of _0x2d5213)if(_0x194133[_0x4baf88(0x1ac)][_0x4baf88(0x399)](_0xc51e94,_0x5978de)){_0x5389a0[_0x4baf88(0x3fe)](_0x38081d),_0x54eef1=!0x0;break;}if(_0x54eef1)break;}}),_0x5389a0;}[_0x269f30(0x31c)](_0x1c8cac,_0x8d5167){const _0x579396=_0x269f30;var _0x43ed93,_0x304189;return(_0x304189=(_0x43ed93=this[_0x579396(0x35c)][_0x579396(0x33f)](_0x1c8cac))==null?void 0x0:_0x43ed93[_0x579396(0x33f)](_0x8d5167))!=null?_0x304189:new _0x194133[(_0x579396(0x1c4))]();}[_0x269f30(0x3ba)](_0xfda166,_0x4504b2){const _0x208bcf=_0x269f30;var _0x60e557;return(_0x60e557=this[_0x208bcf(0x3f2)]['get'](_0xfda166))==null?void 0x0:_0x60e557[_0x208bcf(0x33f)](_0x4504b2);}[_0x269f30(0x272)](_0x43adb9,_0x1868cb,_0x123b02){const _0x141248=_0x269f30;var _0x1386e2,_0x4e92e9;return(_0x4e92e9=(_0x1386e2=this[_0x141248(0x3f2)][_0x141248(0x33f)](_0x43adb9))==null?void 0x0:_0x1386e2['get'](_0x1868cb))==null?void 0x0:_0x4e92e9[_0x141248(0x33f)](_0x123b02);}[_0x269f30(0x385)](_0x114d39){const _0x358b7c=_0x269f30;this[_0x358b7c(0x3f2)][_0x358b7c(0x3bd)](_0x114d39),this[_0x358b7c(0x35c)][_0x358b7c(0x3bd)](_0x114d39);}[_0x269f30(0x17b)](_0xee86de,_0x176d61){const _0x473001=_0x269f30;this[_0x473001(0x2af)][_0x473001(0x2c7)]({'unitId':_0xee86de,'subUnitId':_0x176d61});}},_0x1aec1a[_0x269f30(0x328)]=_0x3c595b([_0x563806(0x0,_0x194133['Inject'](_0x194133[_0x269f30(0x3b0)])),_0x563806(0x1,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x24c)])),_0x563806(0x2,_0x194133[_0x269f30(0x26b)](_0x1aec1a['SheetsPivotTableConfigModel'])),_0x563806(0x3,_0x194133[_0x269f30(0x26b)](_0x194133['IUniverInstanceService'])),_0x563806(0x4,_0x194133[_0x269f30(0x26b)](_0x131b3b[_0x269f30(0x39c)]))],_0x1aec1a[_0x269f30(0x328)]);var _0x30983a=Object[_0x269f30(0x1a6)],_0x94752e=(_0x103301,_0x34377a,_0x3681bb,_0x4e6ecc)=>{for(var _0x27c45d=_0x4e6ecc>0x1?void 0x0:_0x4e6ecc?_0x30983a(_0x34377a,_0x3681bb):_0x34377a,_0x4abb63=_0x103301['length']-0x1,_0x835ad4;_0x4abb63>=0x0;_0x4abb63--)(_0x835ad4=_0x103301[_0x4abb63])&&(_0x27c45d=_0x835ad4(_0x27c45d)||_0x27c45d);return _0x27c45d;},_0x282cc3=(_0x15579c,_0x553396)=>(_0x3e70da,_0x2b7917)=>_0x553396(_0x3e70da,_0x2b7917,_0x15579c);_0x1aec1a[_0x269f30(0x3fc)]=class extends _0x194133[_0x269f30(0x2a8)]{constructor(_0x39e4be,_0x4f40b2){const _0x4d3601=_0x269f30;super(),_0x327454(this,_0x4d3601(0x3df),new _0x194133[(_0x4d3601(0x139))]({'PIVOT_PERFORM_CHECK':_0x324296})),_0x327454(this,_0x4d3601(0x1b4),new _0x194133['InterceptorManager']({'PIVOT_MUTATION_GENERATE':_0x336322})),(this[_0x4d3601(0x388)]=_0x39e4be,this[_0x4d3601(0x34b)]=_0x4f40b2,this[_0x4d3601(0x233)]());}[_0x269f30(0x233)](){this['_initViewModelBySheetInterceptor']();}[_0x269f30(0x3bb)](_0x441af6){const _0x4de3a3=_0x269f30;return this[_0x4de3a3(0x3df)][_0x4de3a3(0x1e8)](_0x324296)(!0x1,_0x441af6);}['_initViewModelBySheetInterceptor'](){const _0xccea39=_0x269f30;this['disposeWithMe'](this[_0xccea39(0x388)]['intercept'](_0x131b3b['INTERCEPTOR_POINT'][_0xccea39(0x370)],{'priority':0xc8,'effect':_0x194133[_0xccea39(0x161)][_0xccea39(0x295)]|_0x194133['InterceptorEffectEnum'][_0xccea39(0x40f)],'handler':(_0x3dad99,_0x31e3f9,_0x250165)=>{const _0x148f15=_0xccea39,{row:_0x50c216,col:_0x35659d,unitId:_0x3890c8,subUnitId:_0x1b422c,workbook:_0x5525f6}=_0x31e3f9,_0x3d59c5=this['_sheetsPivotTableAdaptorModel'][_0x148f15(0x2c9)](_0x3890c8,_0x1b422c,_0x50c216,_0x35659d);if(!_0x3d59c5)return _0x250165(_0x3dad99);const _0x5271b2={..._0x3dad99};(_0x3d59c5['v']||_0x3d59c5['v']===0x0)&&(_0x5271b2['v']=_0x3d59c5['v']),_0x3d59c5['t']&&(_0x5271b2['t']=_0x3d59c5['t']);const _0x40cdd6=(typeof(_0x3dad99==null?void 0x0:_0x3dad99['s'])==_0x148f15(0x174)?_0x5525f6[_0x148f15(0x1ba)]()['get'](_0x3dad99==null?void 0x0:_0x3dad99['s']):_0x3dad99==null?void 0x0:_0x3dad99['s'])||{},_0x11a401=_0x5525f6[_0x148f15(0x1ba)]()[_0x148f15(0x33f)](_0x3d59c5['s']),_0x106951={..._0x11a401,..._0x40cdd6};_0x11a401!=null&&_0x11a401['n']&&(_0x106951['n']=_0x11a401['n']);const _0x2a8155=_0x5525f6[_0x148f15(0x1ba)]()[_0x148f15(0x26e)](_0x106951);return _0x5271b2['s']=_0x2a8155,(_0x3d59c5[_0x148f15(0x1c9)]===_0x2c142['PivotCellStyleTypeEnum'][_0x148f15(0x268)]||_0x3d59c5['pbt']===_0x2c142[_0x148f15(0x3b7)][_0x148f15(0x14d)])&&(_0x5271b2[_0x148f15(0x1b3)]={},_0x5271b2[_0x148f15(0x1b3)][_0x148f15(0x2ea)]=_0x2c4f05),_0x250165(_0x5271b2);}}));}},_0x1aec1a[_0x269f30(0x3fc)]=_0x94752e([_0x282cc3(0x0,_0x194133[_0x269f30(0x26b)](_0x131b3b['SheetInterceptorService'])),_0x282cc3(0x1,_0x194133[_0x269f30(0x26b)](_0x1aec1a[_0x269f30(0x328)]))],_0x1aec1a[_0x269f30(0x3fc)]);const _0x2e8bdd={'id':_0x269f30(0x24b),'type':_0x194133['CommandType'][_0x269f30(0x13b)],'handler':(_0x3c03f5,_0x24c5a3)=>{const _0xa3a14f=_0x269f30;if(!_0x24c5a3)return!0x1;if(!!_0x3c03f5[_0xa3a14f(0x33f)](_0x194133[_0xa3a14f(0x431)])[_0xa3a14f(0x1cc)](_0x3c25a9))return!0x0;const {pivotTableId:_0x2bd7e,fieldJSON:_0x319aea,unitId:_0x2e144a,subUnitId:_0x5a982c}=_0x24c5a3;let _0x408d83;const {dataFieldType:_0x3cfb3b,id:_0x3ac2e5,name:_0x405ac3,hexCode:_0x18867a,originalFieldId:_0x3c6f2e}=_0x319aea;if(_0x3cfb3b===_0x2c142['PivotDataFieldTypeEnum'][_0xa3a14f(0x2ab)]&&(_0x408d83=new _0x2c142['DateGroupField'](_0x3ac2e5,_0x405ac3,_0x18867a,_0x3c6f2e)),!_0x408d83)return!0x1;const _0x527d45=_0x3c03f5[_0xa3a14f(0x33f)](_0x1aec1a[_0xa3a14f(0x12b)]),_0x4857b0=_0x527d45[_0xa3a14f(0x2c3)](_0x2e144a),_0x5766b0=_0x4857b0[_0xa3a14f(0x267)](_0x2bd7e);_0x4857b0[_0xa3a14f(0x34c)](_0x408d83),_0x5766b0[_0xa3a14f(0x3a0)](_0x408d83['getId'](),_0x408d83[_0xa3a14f(0x2a1)]());const _0xa84182=_0x5766b0[_0xa3a14f(0x247)](_0x408d83[_0xa3a14f(0x32b)]());_0xa84182&&_0x408d83['refreshGroupField'](_0xa84182);const _0x5ae48e=_0x527d45[_0xa3a14f(0x189)](_0x2e144a,_0x5a982c,_0x2bd7e);return _0x527d45[_0xa3a14f(0x2a7)]({'unitId':_0x2e144a,'subUnitId':_0x5a982c,'token':_0x2bd7e,'type':_0x12d3c2[_0xa3a14f(0x310)],'pivotConfig':_0x5ae48e}),!0x0;}},_0x5a69f8={'id':_0x269f30(0x2cc),'type':_0x194133['CommandType'][_0x269f30(0x13b)],'handler':(_0x276db1,_0x37b286)=>{const _0x3c6638=_0x269f30;if(!_0x37b286)return!0x1;if(!!_0x276db1[_0x3c6638(0x33f)](_0x194133['IConfigService'])[_0x3c6638(0x1cc)](_0x3c25a9))return!0x0;const {pivotTableId:_0x343316,dataFieldId:_0x2db975,unitId:_0x55b5b2,subUnitId:_0x5938db}=_0x37b286,_0x35ca49=_0x276db1['get'](_0x1aec1a['SheetsPivotDataSourceModel']),_0x4c2be4=_0x35ca49[_0x3c6638(0x2c3)](_0x55b5b2);_0x4c2be4[_0x3c6638(0x267)](_0x343316)[_0x3c6638(0x426)](_0x2db975);let _0x2c8b2d=!0x0;for(const _0xd1236 in _0x4c2be4[_0x3c6638(0x303)])if(_0x4c2be4[_0x3c6638(0x303)][_0xd1236][_0x3c6638(0x2e2)]()[_0x3c6638(0x2b6)](_0x2db975)){_0x2c8b2d=!0x1;break;}_0x2c8b2d&&_0x4c2be4['deleteDataField'](_0x2db975);const _0x1b4fb9=_0x35ca49[_0x3c6638(0x189)](_0x55b5b2,_0x5938db,_0x343316);return _0x35ca49[_0x3c6638(0x2a7)]({'unitId':_0x55b5b2,'subUnitId':_0x5938db,'token':_0x343316,'type':_0x12d3c2[_0x3c6638(0x310)],'pivotConfig':_0x1b4fb9}),!0x0;}};function _0x534ee6(_0x2b2349,_0x130d6c){const _0x1c0aff=_0x269f30;switch(_0x130d6c){case _0x2c142[_0x1c0aff(0x369)][_0x1c0aff(0x295)]:return _0x2b2349[_0x1c0aff(0x242)];case _0x2c142[_0x1c0aff(0x369)][_0x1c0aff(0x364)]:return _0x2b2349['filterFields'];case _0x2c142[_0x1c0aff(0x369)][_0x1c0aff(0x276)]:return _0x2b2349['rowFields'];case _0x2c142[_0x1c0aff(0x369)][_0x1c0aff(0x291)]:return _0x2b2349['columnFields'];default:return[];}}function _0x30422c(_0x33ccc2,_0xd83ace){const _0x6af807=_0x269f30;return _0x33ccc2[_0x6af807(0x1bc)][_0xd83ace]||_0x33ccc2['dimension'][_0xd83ace];}function _0x2dc411(_0x597503,_0x1f08b4){const _0x8a352a=_0x269f30,{area:_0x6c3c3,fieldJson:_0x15cc04,index:_0x851a41}=_0x1f08b4;_0x6c3c3===_0x2c142[_0x8a352a(0x369)]['Value']?_0x597503[_0x8a352a(0x1bc)][_0x15cc04['id']]=_0x15cc04:_0x597503[_0x8a352a(0x423)][_0x15cc04['id']]=_0x15cc04,_0x534ee6(_0x597503,_0x6c3c3)['splice'](_0x851a41,0x0,_0x15cc04['id']);}function _0x14abfe(_0xee3ff7,_0x47cbe9){const _0x1205f4=_0x269f30,{area:_0x33fb82,fieldId:_0x178333,index:_0x24526e}=_0x47cbe9;_0x33fb82===_0x2c142[_0x1205f4(0x369)][_0x1205f4(0x295)]?delete _0xee3ff7[_0x1205f4(0x1bc)][_0x178333]:delete _0xee3ff7[_0x1205f4(0x423)][_0x178333],_0x534ee6(_0xee3ff7,_0x33fb82)[_0x1205f4(0x31b)](_0x24526e,0x1);}function _0x35472f(_0x47ff72,_0x54f885){const {fieldId:_0x24f9c5,name:_0x55e75a}=_0x54f885,_0x5eb4b7=_0x30422c(_0x47ff72,_0x24f9c5);_0x5eb4b7&&(_0x5eb4b7['displayName']=_0x55e75a);}function _0xd02e89(_0x236acb,_0x3aa236){const _0x1ad533=_0x269f30,{fieldId:_0x9bf99f,collapse:_0x10814a,item:_0x447b5f}=_0x3aa236;_0x447b5f!==void 0x0?(_0x236acb[_0x1ad533(0x19e)][_0x9bf99f]=_0x236acb['collapseInfo'][_0x9bf99f]||{},_0x236acb[_0x1ad533(0x19e)][_0x9bf99f][_0x447b5f]=_0x10814a):_0x236acb[_0x1ad533(0x19e)][_0x9bf99f]=_0x10814a;}function _0x196d9e(_0x3414be,_0x508b8b){const _0x3337f4=_0x269f30,{fieldId:_0x491d82,format:_0x59f6dd}=_0x508b8b,_0x3e771f=_0x30422c(_0x3414be,_0x491d82);_0x3e771f&&(_0x3e771f[_0x3337f4(0x3dc)]=_0x59f6dd);}function _0x108e41(_0x2228ff,_0x33814a){const _0xddcded=_0x269f30,{fieldId:_0x1d7599,filterInfo:_0x372211}=_0x33814a,_0x5bcc2b=_0x30422c(_0x2228ff,_0x1d7599);_0x5bcc2b&&(_0x5bcc2b[_0xddcded(0x1b0)]=_0x372211);}function _0x4667a5(_0x1c2dd7,_0x18070c){const _0x4f1aa2=_0x269f30,{fieldId:_0xf38974,filterInfo:_0x49e5ce}=_0x18070c,_0xa53cf7=_0x1c2dd7[_0x4f1aa2(0x219)]['filter'](_0x271f6c=>_0x271f6c['fieldId']!==_0xf38974);_0x49e5ce&&_0xa53cf7[_0x4f1aa2(0x3fe)]({'fieldId':_0xf38974,'filterInfo':_0x49e5ce}),_0x1c2dd7[_0x4f1aa2(0x219)]=_0xa53cf7;}function _0x369eea(_0x3562c4,_0x35fd9b){const _0x40a0bd=_0x269f30,{fieldId:_0x4b9360,subtotalType:_0x4b44ab}=_0x35fd9b,_0x5a8600=_0x30422c(_0x3562c4,_0x4b9360);_0x5a8600&&(_0x5a8600[_0x40a0bd(0x2fa)]=_0x4b44ab);}function _0x5806ac(_0x11a7c3,_0x280415){const _0x4dd538=_0x269f30,{fieldId:_0x1e1331,oldArea:_0x54184a,area:_0x10580c,oldIndex:_0x30779d,index:_0x218c23}=_0x280415,_0x13657d=_0x54184a!==_0x2c142[_0x4dd538(0x369)]['Value']&&_0x10580c===_0x2c142[_0x4dd538(0x369)][_0x4dd538(0x295)],_0x15ba52=_0x54184a===_0x2c142[_0x4dd538(0x369)][_0x4dd538(0x295)]&&_0x10580c!==_0x2c142[_0x4dd538(0x369)][_0x4dd538(0x295)];if(_0x13657d||_0x15ba52){const _0x55ba7a=_0x30422c(_0x11a7c3,_0x1e1331);_0x55ba7a&&(_0x13657d?(delete _0x11a7c3[_0x4dd538(0x423)][_0x1e1331],_0x11a7c3[_0x4dd538(0x1bc)][_0x1e1331]=_0x55ba7a):(delete _0x11a7c3[_0x4dd538(0x1bc)][_0x1e1331],_0x11a7c3[_0x4dd538(0x423)][_0x1e1331]=_0x55ba7a));}const _0x31c272=_0x534ee6(_0x11a7c3,_0x54184a),_0x34f8e7=_0x534ee6(_0x11a7c3,_0x10580c);_0x31c272[_0x4dd538(0x31b)](_0x30779d,0x1),_0x34f8e7['splice'](_0x218c23,0x0,_0x1e1331);}function _0xb131f3(_0x53dbaa,_0x146041){const _0x2a174f=_0x269f30,{valuePosition:_0x5688b9,index:_0x38194e}=_0x146041;_0x53dbaa[_0x2a174f(0x2f9)]=_0x5688b9,_0x53dbaa[_0x2a174f(0x3d9)]=_0x38194e;}function _0x1a3221(_0x1b4e78,_0x364999){const _0x54577f=_0x269f30,{tableFieldId:_0x56a16b,sourceName:_0x5cd4f0,dataFieldId:_0x4c1c58}=_0x364999,_0xfd66b6=_0x30422c(_0x1b4e78,_0x56a16b);_0xfd66b6&&(_0xfd66b6[_0x54577f(0x3c9)]=_0x5cd4f0,_0xfd66b6['dataFieldId']=_0x4c1c58);}function _0x11088d(_0x56d180,_0x1fea70){const _0x1c593a=_0x269f30,{fieldId:_0x4ed587,sortInfo:_0x5edc1c}=_0x1fea70,_0x18e023=_0x30422c(_0x56d180,_0x4ed587);_0x18e023&&(_0x18e023[_0x1c593a(0x33e)]=_0x5edc1c);}function _0x557968(_0x34a20e,_0x70fccd){const {options:_0xf48dd3}=_0x70fccd;_0x34a20e['options']={..._0x34a20e['options'],..._0xf48dd3};}const _0x69a3a6={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':'sheet.mutation.add-pivot-field','handler'(_0x293d6a,_0x26452d){const _0x4335b4=_0x269f30;if(!_0x26452d)return!0x1;if(!!_0x293d6a[_0x4335b4(0x33f)](_0x194133[_0x4335b4(0x431)])[_0x4335b4(0x1cc)](_0x3c25a9))return!0x0;const _0x3ee650=_0x293d6a[_0x4335b4(0x33f)](_0x1aec1a[_0x4335b4(0x12b)]),{pivotTableId:_0x1b7cd7,fieldJson:_0x1e551b,area:_0x417853,index:_0xadf8d1,unitId:_0x21fc17,subUnitId:_0x3e6c55}=_0x26452d,_0x2d12db=_0x3ee650['getPivotTableInstance'](_0x1b7cd7);if(!_0x2d12db)return!0x1;let _0x2efc02;_0x417853===_0x2c142[_0x4335b4(0x369)]['Value']?_0x2efc02=_0x2c142[_0x4335b4(0x2f3)](_0x1e551b):_0x2efc02=_0x2c142[_0x4335b4(0x127)](_0x1e551b),_0x2d12db['addField'](_0x2efc02,_0x417853,_0xadf8d1);const _0x3233c6=_0x3ee650['getPivotTableModelConfig'](_0x21fc17,_0x3e6c55,_0x1b7cd7);_0x2dc411(_0x3233c6,_0x26452d);const _0x1ddf71=_0x3ee650[_0x4335b4(0x189)](_0x21fc17,_0x3e6c55,_0x1b7cd7);return _0x3ee650[_0x4335b4(0x2a7)]({'unitId':_0x21fc17,'subUnitId':_0x3e6c55,'token':_0x1b7cd7,'type':_0x12d3c2[_0x4335b4(0x310)],'pivotConfig':_0x1ddf71}),!0x0;}},_0x3426a2={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x316488,_0x25d23a){const _0x310e51=_0x269f30;if(!_0x25d23a)return!0x1;if(!!_0x316488[_0x310e51(0x33f)](_0x194133[_0x310e51(0x431)])[_0x310e51(0x1cc)](_0x3c25a9))return!0x0;const _0x2f12a3=_0x316488[_0x310e51(0x33f)](_0x1aec1a['SheetsPivotDataSourceModel']),{pivotTableId:_0x569b80,fieldId:_0x2063a9,unitId:_0x5a82ab,subUnitId:_0x161c45}=_0x25d23a,_0x5ad3b8=_0x2f12a3[_0x310e51(0x41f)](_0x569b80);if(!_0x5ad3b8)return!0x1;_0x5ad3b8['removeField'](_0x2063a9);const _0x2ac20e=_0x2f12a3['getPivotTableModelConfig'](_0x5a82ab,_0x161c45,_0x569b80);_0x14abfe(_0x2ac20e,_0x25d23a);const _0x2946b2=_0x2f12a3[_0x310e51(0x189)](_0x5a82ab,_0x161c45,_0x569b80);return _0x2f12a3['addDirtyPivotTable']({'unitId':_0x5a82ab,'subUnitId':_0x161c45,'token':_0x569b80,'type':_0x12d3c2[_0x310e51(0x310)],'pivotConfig':_0x2946b2}),!0x0;}},_0x21adc5={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x332),'handler'(_0x19c2b9,_0x675604){const _0x3154c7=_0x269f30;if(!_0x675604)return!0x1;if(!!_0x19c2b9['get'](_0x194133[_0x3154c7(0x431)])[_0x3154c7(0x1cc)](_0x3c25a9))return!0x0;const _0x26fab9=_0x19c2b9['get'](_0x1aec1a['SheetsPivotDataSourceModel']),{unitId:_0x3878cb,subUnitId:_0x1c54cc,pivotTableId:_0x47c5f0,fieldId:_0x28aa94,name:_0x1a3e57}=_0x675604,_0x16084a=_0x26fab9['getPivotTableInstance'](_0x47c5f0);if(!_0x16084a)return!0x1;_0x16084a[_0x3154c7(0x2e3)](_0x28aa94,_0x1a3e57);const _0x2711b5=_0x26fab9[_0x3154c7(0x266)](_0x3878cb,_0x1c54cc,_0x47c5f0);return _0x35472f(_0x2711b5,_0x675604),_0x26fab9[_0x3154c7(0x2a7)]({'unitId':_0x3878cb,'subUnitId':_0x1c54cc,'token':_0x47c5f0,'type':_0x12d3c2['Set']}),!0x0;}},_0x3f898b={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x36c),'handler'(_0x371165,_0x50b649){const _0xeee51=_0x269f30;if(!_0x50b649)return!0x1;if(!!_0x371165[_0xeee51(0x33f)](_0x194133[_0xeee51(0x431)])[_0xeee51(0x1cc)](_0x3c25a9))return!0x0;const _0x4e4091=_0x371165[_0xeee51(0x33f)](_0x1aec1a[_0xeee51(0x12b)]),{unitId:_0x5e483c,subUnitId:_0x36bda1,pivotTableId:_0x3a4cec,fieldId:_0x402dbd,collapse:_0x19507f,item:_0x5918fa}=_0x50b649,_0xab33d0=_0x4e4091[_0xeee51(0x41f)](_0x3a4cec);if(!_0xab33d0)return!0x1;_0xab33d0['setCollapse'](_0x402dbd,_0x19507f,_0x5918fa);const _0x6e712=_0x4e4091[_0xeee51(0x266)](_0x5e483c,_0x36bda1,_0x3a4cec);return _0xd02e89(_0x6e712,_0x50b649),_0x4e4091[_0xeee51(0x2a7)]({'unitId':_0x5e483c,'subUnitId':_0x36bda1,'token':_0x3a4cec,'type':_0x12d3c2[_0xeee51(0x310)]}),!0x0;}},_0x41c9cf={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x22b),'handler'(_0x12e663,_0x29dbec){const _0x297674=_0x269f30;if(!_0x29dbec)return!0x1;if(!!_0x12e663[_0x297674(0x33f)](_0x194133[_0x297674(0x431)])[_0x297674(0x1cc)](_0x3c25a9))return!0x0;const _0x232822=_0x12e663[_0x297674(0x33f)](_0x1aec1a[_0x297674(0x12b)]),{unitId:_0x1ab435,subUnitId:_0x35f764,pivotTableId:_0x1dc686,fieldId:_0x4fb7b1,format:_0x35fee3}=_0x29dbec,_0x38c7a1=_0x232822[_0x297674(0x41f)](_0x1dc686);if(!_0x38c7a1)return!0x1;_0x38c7a1[_0x297674(0x146)](_0x4fb7b1,_0x35fee3);const _0x52be77=_0x232822[_0x297674(0x266)](_0x1ab435,_0x35f764,_0x1dc686);return _0x196d9e(_0x52be77,_0x29dbec),_0x232822[_0x297674(0x2a7)]({'unitId':_0x1ab435,'subUnitId':_0x35f764,'token':_0x1dc686,'type':_0x12d3c2[_0x297674(0x310)]}),!0x0;}},_0x4f988c={'type':_0x194133['CommandType'][_0x269f30(0x13b)],'id':_0x269f30(0x2d5),'handler'(_0x11ad7e,_0x5b1c8d){const _0x901ed6=_0x269f30;if(!_0x5b1c8d)return!0x1;if(!!_0x11ad7e['get'](_0x194133['IConfigService'])[_0x901ed6(0x1cc)](_0x3c25a9))return!0x0;const _0x51bbd9=_0x11ad7e[_0x901ed6(0x33f)](_0x1aec1a[_0x901ed6(0x12b)]),{unitId:_0x4c5a0a,subUnitId:_0x279d00,pivotTableId:_0x4d87ab,fieldId:_0x517939,filterInfo:_0x5b05b6}=_0x5b1c8d,_0x5bcc1d=_0x51bbd9['getPivotTableInstance'](_0x4d87ab);if(!_0x5bcc1d)return!0x1;_0x5bcc1d[_0x901ed6(0x1a9)](_0x517939,_0x5b05b6);const _0x422d53=_0x51bbd9[_0x901ed6(0x266)](_0x4c5a0a,_0x279d00,_0x4d87ab);return _0x108e41(_0x422d53,_0x5b1c8d),_0x51bbd9[_0x901ed6(0x2a7)]({'unitId':_0x4c5a0a,'subUnitId':_0x279d00,'token':_0x4d87ab,'type':_0x12d3c2[_0x901ed6(0x310)]}),!0x0;}},_0x49d482={'type':_0x194133['CommandType'][_0x269f30(0x13b)],'id':_0x269f30(0x3b8),'handler'(_0x3e2ca7,_0x156ad2){const _0x3c33f7=_0x269f30;if(!_0x156ad2)return!0x1;if(!!_0x3e2ca7[_0x3c33f7(0x33f)](_0x194133[_0x3c33f7(0x431)])[_0x3c33f7(0x1cc)](_0x3c25a9))return!0x0;const _0x5060f3=_0x3e2ca7['get'](_0x1aec1a[_0x3c33f7(0x12b)]),{unitId:_0x5ab060,subUnitId:_0x3fcee2,pivotTableId:_0x1c6ccd,options:_0x2ca5b0}=_0x156ad2,_0x473cd3=_0x5060f3[_0x3c33f7(0x41f)](_0x1c6ccd);if(!_0x473cd3)return!0x1;_0x473cd3['setOptions'](_0x2ca5b0);const _0x32b32b=_0x5060f3[_0x3c33f7(0x266)](_0x5ab060,_0x3fcee2,_0x1c6ccd);return _0x557968(_0x32b32b,_0x156ad2),_0x5060f3[_0x3c33f7(0x2a7)]({'unitId':_0x5ab060,'subUnitId':_0x3fcee2,'token':_0x1c6ccd,'type':_0x12d3c2[_0x3c33f7(0x310)]}),!0x0;}},_0x52ce84={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x19f),'handler'(_0x3647af,_0x333f42){const _0x132585=_0x269f30;if(!_0x333f42)return!0x1;if(!!_0x3647af[_0x132585(0x33f)](_0x194133[_0x132585(0x431)])[_0x132585(0x1cc)](_0x3c25a9))return!0x0;const _0x8301c8=_0x3647af[_0x132585(0x33f)](_0x1aec1a['SheetsPivotDataSourceModel']),{unitId:_0x518503,subUnitId:_0x2ec875,pivotTableId:_0x468169,sortInfo:_0x293eec,fieldId:_0x3030b3}=_0x333f42,_0x51e773=_0x8301c8[_0x132585(0x41f)](_0x468169);if(!_0x51e773)return!0x1;_0x51e773[_0x132585(0x2c4)](_0x3030b3,_0x293eec);const _0x518a08=_0x8301c8[_0x132585(0x266)](_0x518503,_0x2ec875,_0x468169);return _0x11088d(_0x518a08,_0x333f42),_0x8301c8['addDirtyPivotTable']({'unitId':_0x518503,'subUnitId':_0x2ec875,'token':_0x468169,'type':_0x12d3c2[_0x132585(0x310)]}),!0x0;}},_0x27568f={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x29a),'handler'(_0x3ac268,_0x239303){const _0x3c1c90=_0x269f30;if(!_0x239303)return!0x1;if(!!_0x3ac268['get'](_0x194133[_0x3c1c90(0x431)])[_0x3c1c90(0x1cc)](_0x3c25a9))return!0x0;const _0x5bc3c2=_0x3ac268[_0x3c1c90(0x33f)](_0x1aec1a[_0x3c1c90(0x12b)]),{unitId:_0x4f0036,subUnitId:_0x33645a,pivotTableId:_0x4a4324,fieldId:_0x5f3eb1,subtotalType:_0x256d2f}=_0x239303,_0x54cc9e=_0x5bc3c2[_0x3c1c90(0x41f)](_0x4a4324);if(!_0x54cc9e)return!0x1;_0x54cc9e[_0x3c1c90(0x3b1)](_0x5f3eb1,_0x256d2f);const _0x581843=_0x5bc3c2[_0x3c1c90(0x266)](_0x4f0036,_0x33645a,_0x4a4324);return _0x369eea(_0x581843,_0x239303),_0x5bc3c2['addDirtyPivotTable']({'unitId':_0x4f0036,'subUnitId':_0x33645a,'token':_0x4a4324,'type':_0x12d3c2['Set']}),!0x0;}},_0x572304={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x301),'handler'(_0x4378a4,_0x41da2c){const _0x3b325b=_0x269f30;if(!_0x41da2c)return!0x1;if(!!_0x4378a4[_0x3b325b(0x33f)](_0x194133[_0x3b325b(0x431)])[_0x3b325b(0x1cc)](_0x3c25a9))return!0x0;const _0x41b4f1=_0x4378a4[_0x3b325b(0x33f)](_0x1aec1a[_0x3b325b(0x12b)]),{unitId:_0x496d84,subUnitId:_0x4b7290,pivotTableId:_0x1dca6d,fieldId:_0x13e1d1,filterInfo:_0x1b7f36}=_0x41da2c,_0x22b3f2=_0x41b4f1[_0x3b325b(0x41f)](_0x1dca6d);if(!_0x22b3f2)return!0x1;_0x22b3f2[_0x3b325b(0x3d2)](_0x13e1d1,_0x1b7f36);const _0x57031b=_0x41b4f1[_0x3b325b(0x266)](_0x496d84,_0x4b7290,_0x1dca6d);return _0x4667a5(_0x57031b,_0x41da2c),_0x41b4f1['addDirtyPivotTable']({'unitId':_0x496d84,'subUnitId':_0x4b7290,'token':_0x1dca6d,'type':_0x12d3c2['Set']}),!0x0;}},_0x19cd62={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x415),'handler'(_0xc66f9e,_0x3d1351){const _0x3f1d45=_0x269f30;if(!_0x3d1351)return!0x1;if(!!_0xc66f9e[_0x3f1d45(0x33f)](_0x194133[_0x3f1d45(0x431)])['getConfig'](_0x3c25a9))return!0x0;const _0x34e7e9=_0xc66f9e['get'](_0x1aec1a[_0x3f1d45(0x12b)]),{unitId:_0x30176e,subUnitId:_0x38d998,pivotTableId:_0x1da89f,area:_0xbdb441,index:_0x27c193,fieldId:_0x112f74}=_0x3d1351,_0x475c2f=_0x34e7e9[_0x3f1d45(0x41f)](_0x1da89f);if(!_0x475c2f)return!0x1;_0x475c2f[_0x3f1d45(0x405)](_0x112f74,_0xbdb441,_0x27c193);const _0x1c5af5=_0x34e7e9[_0x3f1d45(0x266)](_0x30176e,_0x38d998,_0x1da89f);return _0x5806ac(_0x1c5af5,_0x3d1351),_0x34e7e9[_0x3f1d45(0x2a7)]({'unitId':_0x30176e,'subUnitId':_0x38d998,'token':_0x1da89f,'type':_0x12d3c2[_0x3f1d45(0x310)]}),!0x0;}},_0x29200f={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x164),'handler'(_0x5b7f33,_0x561223){const _0xf2bcf4=_0x269f30;if(!_0x561223)return!0x1;if(!!_0x5b7f33[_0xf2bcf4(0x33f)](_0x194133[_0xf2bcf4(0x431)])['getConfig'](_0x3c25a9))return!0x0;const _0x35bc2d=_0x5b7f33['get'](_0x1aec1a[_0xf2bcf4(0x12b)]),{unitId:_0x135fe4,subUnitId:_0x21ab21,pivotTableId:_0x52a727,sourceName:_0x1d057e,dataFieldId:_0x579d15,tableFieldId:_0x2ed47b}=_0x561223,_0x2dea95=_0x35bc2d[_0xf2bcf4(0x41f)](_0x52a727);if(!_0x2dea95)return!0x1;_0x2dea95['updateFieldSourceInfo'](_0x2ed47b,_0x1d057e,_0x579d15);const _0x317f0f=_0x35bc2d[_0xf2bcf4(0x266)](_0x135fe4,_0x21ab21,_0x52a727);return _0x1a3221(_0x317f0f,_0x561223),_0x35bc2d[_0xf2bcf4(0x2a7)]({'unitId':_0x135fe4,'subUnitId':_0x21ab21,'token':_0x52a727,'type':_0x12d3c2[_0xf2bcf4(0x310)]}),!0x0;}},_0x2d6d73={'type':_0x194133[_0x269f30(0x43a)]['MUTATION'],'id':_0x269f30(0x35d),'handler'(_0x116410,_0xf922c0){const _0x3000ae=_0x269f30;if(!_0xf922c0)return!0x1;if(!!_0x116410[_0x3000ae(0x33f)](_0x194133[_0x3000ae(0x431)])[_0x3000ae(0x1cc)](_0x3c25a9))return!0x0;const _0x1833ea=_0x116410['get'](_0x1aec1a[_0x3000ae(0x12b)]),{unitId:_0x356e97,subUnitId:_0x2e9549,pivotTableId:_0x148e5a,valuePosition:_0x180dd2,index:_0xba1de6}=_0xf922c0,_0x2cb2ce=_0x1833ea[_0x3000ae(0x41f)](_0x148e5a);if(!_0x2cb2ce)return!0x1;_0x2cb2ce[_0x3000ae(0x2f5)](_0x180dd2,_0xba1de6);const _0x496681=_0x1833ea[_0x3000ae(0x266)](_0x356e97,_0x2e9549,_0x148e5a);return _0xb131f3(_0x496681,_0xf922c0),_0x1833ea['addDirtyPivotTable']({'unitId':_0x356e97,'subUnitId':_0x2e9549,'token':_0x148e5a,'type':_0x12d3c2[_0x3000ae(0x310)]}),!0x0;}};function _0x40ee7a(_0x21fa37,_0x453bc6,_0x2a4732){const _0x2c95de=_0x269f30,{pivotTableId:_0x5aca7d,unitId:_0x337fa9,subUnitId:_0x3e6c6c}=_0x453bc6,_0xf730a7=[],_0x412cea=[];for(const _0x85a7a0 of _0x2a4732)switch(_0x85a7a0[_0x2c95de(0x389)]){case _0x2c142['PivotTableChangeTypeEnum'][_0x2c95de(0x372)]:{const {fieldJson:_0x58f58e,area:_0x3f6f80,index:_0x2c8a8a}=_0x85a7a0,_0x42ca58={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldJson':_0x58f58e,'area':_0x3f6f80,'index':_0x2c8a8a},_0x4827a8={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x58f58e['id'],'area':_0x3f6f80,'index':_0x2c8a8a};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x69a3a6['id'],'params':_0x42ca58}),_0x412cea['unshift']({'id':_0x3426a2['id'],'params':_0x4827a8});}break;case _0x2c142[_0x2c95de(0x404)]['SetSubtotalType']:{const {fieldId:_0xe3ab7,newSubtotalType:_0x3ca064,oldSubtotalType:_0x1b5743}=_0x85a7a0,_0x1b303f={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0xe3ab7,'subtotalType':_0x3ca064};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x27568f['id'],'params':_0x1b303f});const _0x4edf0f={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0xe3ab7,'subtotalType':_0x1b5743};_0x412cea[_0x2c95de(0x200)]({'id':_0x27568f['id'],'params':_0x4edf0f});}break;case _0x2c142[_0x2c95de(0x404)][_0x2c95de(0x13a)]:{const {fieldId:_0x572711,fieldJson:_0xb8a4ac,area:_0x4a410e,index:_0x1bff96}=_0x85a7a0,_0x10a867={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x572711,'index':_0x1bff96,'area':_0x4a410e};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x3426a2['id'],'params':_0x10a867});const _0x6bea3={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldJson':_0xb8a4ac,'area':_0x4a410e,'index':_0x1bff96};_0x412cea['unshift']({'id':_0x69a3a6['id'],'params':_0x6bea3});}break;case _0x2c142['PivotTableChangeTypeEnum']['RenameField']:{const {fieldId:_0xa4da70,oldName:_0x36c1ef,newName:_0x2c6c54}=_0x85a7a0,_0xcba3b4={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0xa4da70,'name':_0x2c6c54};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x21adc5['id'],'params':_0xcba3b4});const _0x64ed79={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0xa4da70,'name':_0x36c1ef};_0x412cea[_0x2c95de(0x200)]({'id':_0x21adc5['id'],'params':_0x64ed79});}break;case _0x2c142['PivotTableChangeTypeEnum'][_0x2c95de(0x194)]:{const {fieldId:_0x1d2bd6,oldFilterInfo:_0x285dd1,newFilterInfo:_0x5e5158}=_0x85a7a0,_0x803c4a={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x1d2bd6,'filterInfo':_0x5e5158};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x4f988c['id'],'params':_0x803c4a});const _0x26b75e={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x1d2bd6,'filterInfo':_0x285dd1};_0x412cea['unshift']({'id':_0x4f988c['id'],'params':_0x26b75e});}break;case _0x2c142[_0x2c95de(0x404)]['SetSortInfo']:{const {fieldId:_0x506dd4,oldSortInfo:_0x37539e,newSortInfo:_0x4cf32a}=_0x85a7a0,_0x8d7770={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x506dd4,'sortInfo':_0x4cf32a};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x52ce84['id'],'params':_0x8d7770});const _0x2eb79f={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x506dd4,'sortInfo':_0x37539e};_0x412cea[_0x2c95de(0x200)]({'id':_0x52ce84['id'],'params':_0x2eb79f});}break;case _0x2c142[_0x2c95de(0x404)][_0x2c95de(0x1c2)]:{const {oldOptions:_0x522def,newOptions:_0x205342}=_0x85a7a0,_0x2b0dda={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'options':_0x205342};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x49d482['id'],'params':_0x2b0dda});const _0x40c085={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'options':_0x522def};_0x412cea[_0x2c95de(0x200)]({'id':_0x49d482['id'],'params':_0x40c085});}break;case _0x2c142[_0x2c95de(0x404)][_0x2c95de(0x22d)]:{const {oldArea:_0x429161,newArea:_0x3fae4f,oldIndex:_0x4e6fac,newIndex:_0x5702c8,fieldId:_0x13a3c0}=_0x85a7a0,_0x38cb9d={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x13a3c0,'area':_0x3fae4f,'index':_0x5702c8,'oldArea':_0x429161,'oldIndex':_0x4e6fac};_0xf730a7['push']({'id':_0x19cd62['id'],'params':_0x38cb9d});const _0x58fba4={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x13a3c0,'area':_0x429161,'index':_0x4e6fac,'oldArea':_0x3fae4f,'oldIndex':_0x5702c8};_0x412cea[_0x2c95de(0x200)]({'id':_0x19cd62['id'],'params':_0x58fba4});}break;case _0x2c142[_0x2c95de(0x404)][_0x2c95de(0x37d)]:{const {oldValuePosition:_0x18f0a8,newValuePosition:_0x14adc5,oldIndex:_0x5215ed,newIndex:_0x59d524}=_0x85a7a0,_0x2165fc={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'valuePosition':_0x14adc5,'index':_0x59d524};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x2d6d73['id'],'params':_0x2165fc});const _0xab7ee0={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'valuePosition':_0x18f0a8,'index':_0x5215ed};_0x412cea[_0x2c95de(0x200)]({'id':_0x2d6d73['id'],'params':_0xab7ee0});}break;case _0x2c142[_0x2c95de(0x404)]['SetCollapse']:{const {fieldId:_0x181f6a,collapse:_0x478019,item:_0xe2b7d6}=_0x85a7a0,_0x20012a={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x181f6a,'collapse':_0x478019,'item':_0xe2b7d6};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x3f898b['id'],'params':_0x20012a});const _0x355afd={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x181f6a,'collapse':!_0x478019,'item':_0xe2b7d6};_0x412cea[_0x2c95de(0x200)]({'id':_0x3f898b['id'],'params':_0x355afd});}break;case _0x2c142[_0x2c95de(0x404)][_0x2c95de(0x304)]:{const {newFormat:_0x268f61,oldFormat:_0x58c4e3,fieldId:_0x507f2f}=_0x85a7a0,_0x75b329={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x507f2f,'format':_0x268f61};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x41c9cf['id'],'params':_0x75b329});const _0x15ba91={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x507f2f,'format':_0x58c4e3};_0x412cea[_0x2c95de(0x200)]({'id':_0x41c9cf['id'],'params':_0x15ba91});}break;case _0x2c142[_0x2c95de(0x404)][_0x2c95de(0x2ae)]:{const {tableFieldId:_0x4d82a9,oldSourceName:_0x5f4a99,newSourceName:_0x4aa46a,oldDataFieldId:_0x9ac151,newDataFieldId:_0x4e9e16}=_0x85a7a0,_0x537b62={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'tableFieldId':_0x4d82a9,'sourceName':_0x4aa46a,'dataFieldId':_0x4e9e16};_0xf730a7[_0x2c95de(0x3fe)]({'id':_0x29200f['id'],'params':_0x537b62});const _0x303b20={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'tableFieldId':_0x4d82a9,'sourceName':_0x5f4a99,'dataFieldId':_0x9ac151};_0x412cea[_0x2c95de(0x200)]({'id':_0x29200f['id'],'params':_0x303b20});}break;case _0x2c142['PivotTableChangeTypeEnum'][_0x2c95de(0x2ba)]:{const {fieldId:_0x592d74,filterInfo:_0x2b66be,oldFilterInfo:_0x19c70d}=_0x85a7a0,_0x3c74d9={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x592d74,'filterInfo':_0x2b66be};_0xf730a7['push']({'id':_0x572304['id'],'params':_0x3c74d9});const _0x455785={'unitId':_0x337fa9,'subUnitId':_0x3e6c6c,'pivotTableId':_0x5aca7d,'fieldId':_0x592d74,'filterInfo':_0x19c70d};_0x412cea[_0x2c95de(0x200)]({'id':_0x572304['id'],'params':_0x455785});}}return{'redos':_0xf730a7,'undos':_0x412cea};}function _0x42f7d6(_0x1fa10a,_0x3b9531){const _0x149153=_0x269f30;var _0x7dbcae;const _0x521cc1=_0x1fa10a[_0x149153(0x33f)](_0x1aec1a[_0x149153(0x3fc)]),{cellInfo:_0xd25c8e,view:_0x31e2b6,isEmpty:_0x1c61d6}=_0x3b9531;return(_0x7dbcae=_0x521cc1[_0x149153(0x1b4)][_0x149153(0x422)](_0x336322)(_0x105c35,{'cellInfo':_0xd25c8e,'view':_0x31e2b6,'isEmpty':_0x1c61d6}))!=null?_0x7dbcae:_0x105c35;}const _0x4ce9d5={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x3dd)],'id':'sheet.command.add-pivot-field',async 'handler'(_0x20c74b,_0x555cbb){const _0x43697c=_0x269f30;if(!_0x555cbb)return!0x1;const _0x26668a=_0x20c74b[_0x43697c(0x33f)](_0x194133[_0x43697c(0x3a4)]),_0x55d275=_0x20c74b['get'](_0x1aec1a[_0x43697c(0x2e6)]),_0x3681ff=_0x20c74b[_0x43697c(0x33f)](_0x194133['IUndoRedoService']),{pivotTableId:_0x1d4687,dataFieldId:_0x111e0d,fieldArea:_0x412e6a,index:_0x28c596,unitId:_0x44a7b0,subUnitId:_0x481090}=_0x555cbb,_0x48715d=(await _0x55d275[_0x43697c(0x38b)]({'unitId':_0x44a7b0,'subUnitId':_0x481090,'pivotTableId':_0x1d4687,'params':{'type':_0x309bca[_0x43697c(0x261)],'addPivotField':{'dataFieldId':_0x111e0d,'fieldArea':_0x412e6a,'index':_0x28c596}}}))[_0x43697c(0x1e4)][_0x43697c(0x2c6)];if(!_0x48715d)return!0x1;const {view:_0x506150,changesets:_0x39c324,isEmpty:_0x35e8b0,pivotTableConfig:_0x4a2514,shouldBeAddedGroupJSON:_0x1cfc1a}=_0x48715d,_0x144c8d=_0x4a2514[_0x43697c(0x1e6)],_0x366728=new _0x2c142[(_0x43697c(0x265))]();_0x366728[_0x43697c(0x245)](_0x506150);const _0x3a0d41={'cellInfo':_0x144c8d,'view':_0x366728,'isEmpty':_0x35e8b0};if(!await _0x20c74b['get'](_0x1aec1a['SheetsPivotTableService'])[_0x43697c(0x3df)]['fetchThroughAsyncInterceptors'](_0x324296)(!0x0,_0x3a0d41))return!0x1;const _0x17b729=_0x4b13ac(_0x20c74b,_0x366728,_0x144c8d,_0x35e8b0),_0x1e10e8=_0x42f7d6(_0x20c74b,_0x3a0d41),{undos:_0x3c51d4,redos:_0x3239e5}=_0x40ee7a(_0x26668a,{'pivotTableId':_0x1d4687,'unitId':_0x44a7b0,'subUnitId':_0x481090},_0x39c324);return _0x1cfc1a&&(_0x3239e5[_0x43697c(0x200)]({'id':_0x2e8bdd['id'],'params':{'pivotTableId':_0x1d4687,'fieldJSON':_0x1cfc1a,'unitId':_0x44a7b0,'subUnitId':_0x481090}}),_0x3c51d4[_0x43697c(0x3fe)]({'id':_0x5a69f8['id'],'params':{'pivotTableId':_0x1d4687,'dataFieldId':_0x1cfc1a['id'],'unitId':_0x44a7b0,'subUnitId':_0x481090}})),_0x194133[_0x43697c(0x33b)]([..._0x17b729['redos'],..._0x1e10e8[_0x43697c(0x439)],..._0x3239e5],_0x26668a),_0x3681ff[_0x43697c(0x250)]({'unitID':_0x44a7b0,'redoMutations':[..._0x17b729[_0x43697c(0x439)],..._0x1e10e8[_0x43697c(0x439)],..._0x3239e5],'undoMutations':[..._0x17b729[_0x43697c(0x2b2)],..._0x1e10e8['undos'],..._0x3c51d4]}),!0x0;}},_0x5e8475=()=>typeof process<'u'&&process[_0x269f30(0x21d)]!=null&&process[_0x269f30(0x21d)][_0x269f30(0x2fd)]!=null,_0x51208c={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x2aa),'handler'(_0x44c47d,_0x1e6ee1){const _0x18b947=_0x269f30;var _0x54c258;if(!_0x1e6ee1)return!0x1;const _0x35476b=_0x44c47d[_0x18b947(0x33f)](_0x194133[_0x18b947(0x431)]);if(!!_0x35476b[_0x18b947(0x1cc)](_0x3c25a9))return!0x0;const _0x50b120=_0x44c47d[_0x18b947(0x33f)](_0x194133[_0x18b947(0x137)]),_0x56ab13=_0x44c47d[_0x18b947(0x33f)](_0x1aec1a[_0x18b947(0x12b)]),{pivotTableId:_0x18c203,pivotTableConfig:_0x3cece5,collectionConfig:_0x5b20ba,unitId:_0x148b43,subUnitId:_0x4b0c1e}=_0x1e6ee1,{sourceRangeInfo:_0x1cbbc9,fieldsConfig:_0x5b6f62,targetCellInfo:_0x41321b}=_0x3cece5,_0x4aff75=_0x50b120[_0x18b947(0x27f)](_0x148b43);if(!_0x4aff75||!_0x4aff75[_0x18b947(0x290)](_0x4b0c1e))return!0x1;if(!_0x5e8475()){let _0x256a61=0x0;_0x4aff75[_0x18b947(0x185)]()['forEach'](_0x276dc1=>{const _0x24da03=_0x18b947;var _0x5a0af4,_0x1548da;_0x256a61+=(_0x1548da=(_0x5a0af4=_0x56ab13[_0x24da03(0x205)](_0x148b43,_0x276dc1[_0x24da03(0x1d3)]()))==null?void 0x0:_0x5a0af4['size'])!=null?_0x1548da:0x0;});const _0x529b27=(_0x54c258=_0x35476b[_0x18b947(0x1cc)](_0x3e96f2[_0x18b947(0x162)]))!=null?_0x54c258:{},{ls:_0x5aef35,pbk:_0xf86f0}=_0x529b27;if(!_0x474944(_0x5aef35,_0xf86f0))throw new _0x194133[(_0x18b947(0x14f))](_0x18b947(0x2ff));const _0x4482c6=_0x14a646(_0xb0e95d,_0x5aef35,_0xf86f0)['count'];if(_0x256a61>=_0x4482c6)throw new _0x194133[(_0x18b947(0x14f))]('limit\x20pivot');}if(!_0x5b20ba||!_0x5b6f62)return!0x1;const {collection:_0x5c8f77,updateDataFieldList:_0x2899c3}=_0x56ab13[_0x18b947(0x2d8)](_0x18c203,_0x5b20ba,_0x1cbbc9,_0x41321b);_0x56ab13['refreshData'](_0x5c8f77,_0x2899c3,_0x1cbbc9);const _0x390890=new _0x2c142['PivotTable'](_0x5c8f77,void 0x0,_0x18c203);_0x390890[_0x18b947(0x3ed)](_0x5b6f62);const _0x3adcba=JSON[_0x18b947(0x16b)](JSON[_0x18b947(0x3ae)](_0x3cece5));return _0x56ab13[_0x18b947(0x1aa)](_0x148b43,_0x4b0c1e,_0x18c203,_0x390890,_0x3adcba),_0x56ab13[_0x18b947(0x2a7)]({'unitId':_0x148b43,'subUnitId':_0x4b0c1e,'token':_0x18c203,'type':_0x12d3c2['Add'],'pivotConfig':_0x3adcba}),!0x0;}},_0x445449={'type':_0x194133['CommandType'][_0x269f30(0x3dd)],'id':_0x269f30(0x254),async 'handler'(_0x204f4a,_0x46b978){const _0x48552f=_0x269f30;if(!_0x46b978)return!0x1;const {sourceDataInfo:_0x10c04f,pivotTableConfig:_0x5ea055}=_0x46b978;if(!_0x10c04f||!_0x5ea055)return!0x1;const {unitId:_0x3d19dc,subUnitId:_0x7b4b99,range:_0x466dd3}=_0x10c04f,_0x2a571f=_0x204f4a['get'](_0x194133['IUniverInstanceService']),_0x678ffc=_0x204f4a[_0x48552f(0x33f)](_0x1aec1a['SheetsPivotRPCService']),_0x336d81=_0x204f4a['get'](_0x194133[_0x48552f(0x3b0)]),_0x43a3c1=_0x204f4a[_0x48552f(0x33f)](_0x194133[_0x48552f(0x3a4)]),_0x180bb3=_0x2a571f[_0x48552f(0x27f)](_0x3d19dc);if(!_0x180bb3)return!0x1;const _0x13c813=_0x180bb3['getSheetBySheetId'](_0x7b4b99);if(!_0x13c813)return!0x1;const _0x15b2c4=_0x2c142[_0x48552f(0x19c)](0x8),_0x1886e5=_0x466dd3||{'startRow':0x0,'startColumn':0x0,'endRow':_0x13c813[_0x48552f(0x3d5)]()-0x1,'endColumn':_0x13c813[_0x48552f(0x419)]()-0x1};_0x1886e5[_0x48552f(0x278)]=_0x194133[_0x48552f(0x3b5)][_0x48552f(0x40e)];const _0x5e5a9c=(await _0x678ffc[_0x48552f(0x38b)]({'unitId':_0x3d19dc,'subUnitId':_0x7b4b99,'pivotTableId':_0x15b2c4,'params':{'type':_0x309bca[_0x48552f(0x416)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x3d19dc,'sheetName':_0x13c813['getName'](),'subUnitId':_0x7b4b99,'range':_0x1886e5},'pivotTableId':_0x15b2c4,'pivotTableIndexConfig':_0x5ea055}}}))[_0x48552f(0x1e4)][_0x48552f(0x359)];if(!_0x5e5a9c)return!0x1;const {isEmpty:_0xa9a370,fieldsConfig:_0x145332,collectionConfig:_0xc3e237,changesets:_0xb9945}=_0x5e5a9c,_0xb6a936=_0x180bb3['getSheets']()[_0x48552f(0x1ed)],_0x34576a=_0x194133[_0x48552f(0x342)]({'rowCount':_0x13c813['getRowCount']()-0x1,'columnCount':_0x13c813[_0x48552f(0x419)]()-0x1});_0x34576a['id']=_0x194133[_0x48552f(0x35e)](),_0x34576a['name']=_0x180bb3[_0x48552f(0x237)](''+_0x336d81['t']('sheets.tabs.sheet'));const _0x664f66={'index':_0xb6a936,'sheet':_0x34576a,'unitId':_0x3d19dc},{redos:_0x413207}=_0x40ee7a(_0x43a3c1,{'pivotTableId':_0x15b2c4,'unitId':_0x3d19dc,'subUnitId':_0x34576a['id']},_0xb9945),_0x369e44=[{'id':_0x131b3b['InsertSheetCommand']['id'],'params':_0x664f66},{'id':_0x51208c['id'],'params':{'unitId':_0x3d19dc,'subUnitId':_0x34576a['id'],'pivotTableId':_0x15b2c4,'pivotTableConfig':{'isEmpty':_0xa9a370,'fieldsConfig':_0x145332,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x3d19dc,'subUnitId':_0x34576a['id']},'sourceRangeInfo':{'subUnitId':_0x7b4b99,'unitId':_0x3d19dc,'range':_0x1886e5,'sheetName':_0x13c813[_0x48552f(0x2a1)]()}},'collectionConfig':_0xc3e237}},..._0x413207];return _0x194133['sequenceExecute'](_0x369e44,_0x43a3c1),!0x0;}},_0x5cb0ce={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':_0x269f30(0x1bd),'handler'(_0x5b4116,_0x1cf7cf){const _0x28194e=_0x269f30;if(!_0x1cf7cf)return!0x1;if(!!_0x5b4116['get'](_0x194133[_0x28194e(0x431)])['getConfig'](_0x3c25a9))return!0x0;const {pivotTableId:_0x4860aa,unitId:_0x524bdb,subUnitId:_0x4af3b1}=_0x1cf7cf,_0x2cf722=_0x5b4116[_0x28194e(0x33f)](_0x1aec1a[_0x28194e(0x12b)]);return _0x2cf722[_0x28194e(0x189)](_0x524bdb,_0x4af3b1,_0x4860aa)?(_0x2cf722[_0x28194e(0x2a7)]({'unitId':_0x524bdb,'subUnitId':_0x4af3b1,'token':_0x4860aa,'type':_0x12d3c2[_0x28194e(0x1f6)]}),_0x2cf722[_0x28194e(0x3f9)](_0x524bdb,_0x4af3b1,_0x4860aa),!0x0):!0x1;}},_0xf93e1e={'type':_0x194133['CommandType'][_0x269f30(0x3dd)],'id':_0x269f30(0x1a0),async 'handler'(_0x172be7,_0x3c98d7){const _0x192d53=_0x269f30;var _0x480716,_0x3c82e0;const _0x41ee02=_0x172be7[_0x192d53(0x33f)](_0x194133[_0x192d53(0x3a4)]),_0x5cf6c2=_0x172be7[_0x192d53(0x33f)](_0x194133[_0x192d53(0x137)]),_0xaf6c0c=_0x172be7['get'](_0x194133[_0x192d53(0x3b0)]),_0x4e98c2=_0x172be7['get'](_0x1aec1a[_0x192d53(0x2e6)]),_0x3014d5=_0x172be7['get'](_0x194133['IUndoRedoService']),_0x294040=_0x172be7[_0x192d53(0x33f)](_0x1aec1a[_0x192d53(0x323)]),_0x442298=_0x172be7[_0x192d53(0x33f)](_0x194133[_0x192d53(0x431)]);if(!_0x3c98d7)return!0x1;const {pivotTableConfig:_0x38dbd8,positionType:_0x376c6b}=_0x3c98d7,{targetCellInfo:_0x1adc93,sourceRangeInfo:_0x11bedc}=_0x38dbd8,{unitId:_0x2dd908,subUnitId:_0x122b23}=_0x1adc93,_0x247b85=_0x5cf6c2['getUnit'](_0x2dd908);if(!_0x247b85)return!0x1;let _0x43d5be=0x0;_0x247b85['getSheets']()['forEach'](_0x540011=>{const _0x33784f=_0x192d53;var _0xaca18b,_0x15b6d1;_0x43d5be+=(_0x15b6d1=(_0xaca18b=_0x294040[_0x33784f(0x205)](_0x2dd908,_0x540011[_0x33784f(0x1d3)]()))==null?void 0x0:_0xaca18b[_0x33784f(0x3de)])!=null?_0x15b6d1:0x0;});const _0x327235=(_0x480716=_0x442298[_0x192d53(0x1cc)](_0x3e96f2[_0x192d53(0x162)]))!=null?_0x480716:{},{ls:_0x3d243d,pbk:_0x2c1679}=_0x327235;if(!_0x474944(_0x3d243d,_0x2c1679))return!0x1;const _0x2a0daf=_0x14a646(_0xb0e95d,_0x3d243d,_0x2c1679)[_0x192d53(0x23a)];if(_0x43d5be>=_0x2a0daf)return!0x1;const _0xea1d62=_0x3c98d7[_0x192d53(0x25e)]||_0x2c142[_0x192d53(0x19c)](0x8),_0x11e87e=(await _0x4e98c2[_0x192d53(0x38b)]({'unitId':_0x2dd908,'subUnitId':_0x122b23,'pivotTableId':_0xea1d62,'params':{'type':_0x309bca[_0x192d53(0x2b0)],'addPivotTable':{'sourceRangeInfo':_0x11bedc,'pivotTableId':_0xea1d62}}}))['result'][_0x192d53(0x1aa)];if(!_0x11e87e)return!0x1;const {view:_0x1da0f2,isEmpty:_0x2a4d90,fieldsConfig:_0x12d655,collectionConfig:_0x4c937c}=_0x11e87e,_0x2bf12c=[],_0x468b2c=[];if(_0x376c6b===_0x1e0476[_0x192d53(0x438)]){const _0x2113eb=_0x247b85[_0x192d53(0x185)]()['length'],_0x4bbae0=_0x194133[_0x192d53(0x342)]({});_0x4bbae0['id']=_0x38dbd8[_0x192d53(0x1e6)][_0x192d53(0x2fb)],_0x4bbae0[_0x192d53(0x417)]=(_0x3c82e0=_0x38dbd8[_0x192d53(0x1e6)][_0x192d53(0x1e1)])!=null?_0x3c82e0:_0x247b85['generateNewSheetName'](''+_0xaf6c0c['t'](_0x192d53(0x184)));const _0x50c4e9={'index':_0x2113eb,'sheet':_0x4bbae0,'unitId':_0x2dd908},_0x4f37d1=_0x131b3b[_0x192d53(0x344)](_0x172be7,_0x50c4e9);_0x2bf12c['push']({'id':_0x131b3b['RemoveSheetMutation']['id'],'params':_0x4f37d1}),_0x468b2c[_0x192d53(0x3fe)]({'id':_0x131b3b[_0x192d53(0x239)]['id'],'params':_0x50c4e9});}else{if(!_0x247b85[_0x192d53(0x290)](_0x122b23))return!0x1;const _0x444e28=_0x4b13ac(_0x172be7,new _0x2c142['PivotView'](),_0x1adc93,!0x0);_0x468b2c[_0x192d53(0x3fe)](..._0x444e28[_0x192d53(0x439)]),_0x2bf12c[_0x192d53(0x3fe)](..._0x444e28['undos']);const _0x50a288={'cellInfo':_0x1adc93,'view':_0x1da0f2,'isEmpty':_0x2a4d90};if(!await _0x172be7[_0x192d53(0x33f)](_0x1aec1a[_0x192d53(0x3fc)])['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x324296)(!0x0,_0x50a288))return!0x1;const _0x301aa8=_0x42f7d6(_0x172be7,_0x50a288);_0x468b2c[_0x192d53(0x3fe)](..._0x301aa8[_0x192d53(0x439)]),_0x2bf12c[_0x192d53(0x3fe)](..._0x301aa8[_0x192d53(0x2b2)]);}return _0x468b2c[_0x192d53(0x3fe)]({'id':_0x51208c['id'],'params':{'unitId':_0x1adc93[_0x192d53(0x341)],'subUnitId':_0x1adc93[_0x192d53(0x2fb)],'pivotTableId':_0xea1d62,'pivotTableConfig':{'targetCellInfo':_0x1adc93,'sourceRangeInfo':_0x11bedc,'fieldsConfig':_0x12d655},'collectionConfig':_0x4c937c}}),_0x2bf12c[_0x192d53(0x200)]({'id':_0x5cb0ce['id'],'params':{'unitId':_0x2dd908,'subUnitId':_0x122b23,'pivotTableId':_0xea1d62}}),_0x194133['sequenceExecute'](_0x468b2c,_0x41ee02)&&_0x3014d5[_0x192d53(0x250)]({'unitID':_0x2dd908,'undoMutations':_0x2bf12c,'redoMutations':_0x468b2c}),!0x0;}},_0x264c75={'type':_0x194133['CommandType'][_0x269f30(0x3dd)],'id':_0x269f30(0x420),async 'handler'(_0x392af3,_0x57732f){const _0x3438ad=_0x269f30;if(!_0x57732f)return!0x1;const _0x56796d=_0x392af3[_0x3438ad(0x33f)](_0x194133[_0x3438ad(0x3a4)]),_0x4764d0=_0x392af3[_0x3438ad(0x33f)](_0x1aec1a[_0x3438ad(0x2e6)]),_0x57f043=_0x392af3[_0x3438ad(0x33f)](_0x194133[_0x3438ad(0x3e9)]),{pivotTableId:_0x49daff,fieldId:_0x1180bf,area:_0x1e5119,index:_0x2e781b,unitId:_0x8a3a02,subUnitId:_0x1ecff3}=_0x57732f,_0xb5be92=(await _0x4764d0['getPivotDisplayConfig']({'unitId':_0x8a3a02,'subUnitId':_0x1ecff3,'pivotTableId':_0x49daff,'params':{'type':_0x309bca[_0x3438ad(0x2e5)],'movePivotField':{'fieldId':_0x1180bf,'area':_0x1e5119,'index':_0x2e781b}}}))[_0x3438ad(0x1e4)][_0x3438ad(0x14b)];if(!_0xb5be92)return!0x1;const {changesets:_0x33acc9,view:_0x28da3b,isEmpty:_0x3de79e,pivotTableConfig:_0x2b4c3b}=_0xb5be92,_0x24d792=_0x2b4c3b[_0x3438ad(0x1e6)],_0xc1cd2d=new _0x2c142[(_0x3438ad(0x265))]();_0xc1cd2d[_0x3438ad(0x245)](_0x28da3b);const _0x44f0a2={'cellInfo':_0x24d792,'view':_0xc1cd2d,'isEmpty':_0x3de79e};if(!await _0x392af3['get'](_0x1aec1a['SheetsPivotTableService'])[_0x3438ad(0x3df)][_0x3438ad(0x1e8)](_0x324296)(!0x0,_0x44f0a2))return!0x1;const _0x42faef=_0x4b13ac(_0x392af3,_0xc1cd2d,_0x24d792,_0x3de79e),_0xaa9b0e=_0x42f7d6(_0x392af3,_0x44f0a2),{redos:_0x1510ce,undos:_0x14866e}=_0x40ee7a(_0x56796d,{'pivotTableId':_0x49daff,'unitId':_0x8a3a02,'subUnitId':_0x1ecff3},_0x33acc9);return _0x194133[_0x3438ad(0x33b)]([..._0x42faef[_0x3438ad(0x439)],..._0xaa9b0e[_0x3438ad(0x439)],..._0x1510ce],_0x56796d),_0x57f043[_0x3438ad(0x250)]({'unitID':_0x8a3a02,'redoMutations':[..._0x42faef['redos'],..._0xaa9b0e[_0x3438ad(0x439)],..._0x1510ce],'undoMutations':[..._0x42faef[_0x3438ad(0x2b2)],..._0xaa9b0e[_0x3438ad(0x2b2)],..._0x14866e]}),!0x0;}},_0x1742ee={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'id':'sheet.mutation.set-pivot-position','handler'(_0x246ae4,_0x6682c1){const _0x170df9=_0x269f30;if(!_0x6682c1)return!0x1;if(!!_0x246ae4['get'](_0x194133[_0x170df9(0x431)])['getConfig'](_0x3c25a9))return!0x0;const {pivotTableId:_0x54edcb,targetCellPosition:_0x34d0c3,unitId:_0x10d021,subUnitId:_0x13b557}=_0x6682c1,_0x4a83f3=_0x246ae4['get'](_0x1aec1a[_0x170df9(0x12b)]);if(!_0x4a83f3[_0x170df9(0x41f)](_0x6682c1['pivotTableId']))return!0x1;const _0x45a6c5=_0x4a83f3[_0x170df9(0x126)](_0x54edcb);if(!_0x45a6c5)return!0x1;const _0x48579e=_0x4a83f3[_0x170df9(0x267)](_0x45a6c5[_0x170df9(0x341)],_0x6682c1['pivotTableId']);if(!_0x48579e)return!0x1;const _0x9f16bd=_0x4a83f3[_0x170df9(0x189)](_0x45a6c5[_0x170df9(0x341)],_0x45a6c5['subUnitId'],_0x54edcb);if(!_0x9f16bd)return!0x1;const _0x50eae3=_0x194133[_0x170df9(0x3ac)][_0x170df9(0x240)](_0x9f16bd);_0x50eae3['targetCellInfo']={'unitId':_0x10d021,'subUnitId':_0x13b557,'row':_0x34d0c3[_0x170df9(0x26d)],'col':_0x34d0c3[_0x170df9(0x35b)]};const _0x27e199=_0x48579e[_0x170df9(0x434)]();if(_0x45a6c5['subUnitId']===_0x13b557&&_0x45a6c5[_0x170df9(0x341)]===_0x10d021)_0x4a83f3[_0x170df9(0x3af)](_0x10d021,_0x13b557,_0x54edcb,_0x50eae3),_0x4a83f3[_0x170df9(0x2a7)]({'unitId':_0x10d021,'subUnitId':_0x13b557,'token':_0x54edcb,'type':_0x12d3c2['Set']});else{_0x4a83f3[_0x170df9(0x2a7)]({'unitId':_0x45a6c5[_0x170df9(0x341)],'subUnitId':_0x45a6c5[_0x170df9(0x2fb)],'token':_0x54edcb,'type':_0x12d3c2[_0x170df9(0x1f6)]}),_0x4a83f3[_0x170df9(0x3f9)](_0x45a6c5['unitId'],_0x45a6c5['subUnitId'],_0x54edcb);const _0x3de772=_0x4a83f3[_0x170df9(0x2d8)](_0x54edcb,_0x27e199,_0x9f16bd[_0x170df9(0x42d)],_0x50eae3['targetCellInfo']),_0x387122=new _0x2c142[(_0x170df9(0x121))](_0x3de772[_0x170df9(0x1ca)],void 0x0,_0x54edcb);_0x387122[_0x170df9(0x3ed)](_0x50eae3[_0x170df9(0x30f)]),_0x4a83f3[_0x170df9(0x1aa)](_0x10d021,_0x13b557,_0x54edcb,_0x387122,_0x50eae3),_0x4a83f3[_0x170df9(0x2a7)]({'unitId':_0x10d021,'subUnitId':_0x13b557,'token':_0x54edcb,'type':_0x12d3c2['Add'],'pivotConfig':_0x50eae3});}return!0x0;}},_0x2087e0={'type':_0x194133['CommandType'][_0x269f30(0x3dd)],'id':_0x269f30(0x1c0),'handler':(_0xbf24c2,_0x4cafaf)=>{const _0x2ef6c6=_0x269f30,_0x16d2d5=_0xbf24c2[_0x2ef6c6(0x33f)](_0x194133['ICommandService']),_0x28a5d0=_0xbf24c2[_0x2ef6c6(0x33f)](_0x194133[_0x2ef6c6(0x3e9)]),_0x25b46e=_0xbf24c2[_0x2ef6c6(0x33f)](_0x1aec1a['SheetsPivotTableConfigModel']),_0x49a7ba=_0xbf24c2[_0x2ef6c6(0x33f)](_0x194133['IUniverInstanceService']);if(!_0x4cafaf)return!0x1;const _0x372919=_0x131b3b[_0x2ef6c6(0x2b9)](_0x49a7ba);if(!_0x372919)return!0x1;const {unitId:_0x4b434b,subUnitId:_0x2da79a,workbook:_0x1a9a86}=_0x372919,_0x221d3e=_0x25b46e[_0x2ef6c6(0x189)](_0x4cafaf[_0x2ef6c6(0x203)][_0x2ef6c6(0x341)],_0x4cafaf['originTargetInfo'][_0x2ef6c6(0x2fb)],_0x4cafaf[_0x2ef6c6(0x25e)]);if(!_0x221d3e)return!0x1;const _0xf5ce0f=_0x1a9a86[_0x2ef6c6(0x290)](_0x4cafaf[_0x2ef6c6(0x1e6)][_0x2ef6c6(0x2fb)]);if(!_0xf5ce0f)throw new Error(_0x2ef6c6(0x348));const _0x18f2d1=_0xf5ce0f['getRowCount'](),_0x28e153=_0xf5ce0f[_0x2ef6c6(0x419)]();if(_0x4cafaf['targetCellInfo']['row']>_0x18f2d1||_0x4cafaf['targetCellInfo'][_0x2ef6c6(0x35b)]>_0x28e153)throw new Error('[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range');const _0x58020b=[{'id':_0x1742ee['id'],'params':{'unitId':_0x4b434b,'subUnitId':_0x4cafaf[_0x2ef6c6(0x1e6)][_0x2ef6c6(0x2fb)],'pivotTableId':_0x4cafaf[_0x2ef6c6(0x25e)],'targetCellPosition':{'row':_0x4cafaf[_0x2ef6c6(0x1e6)][_0x2ef6c6(0x26d)],'col':_0x4cafaf[_0x2ef6c6(0x1e6)][_0x2ef6c6(0x35b)]}}}],_0x2a8c1c=[{'id':_0x1742ee['id'],'params':{'unitId':_0x4b434b,'subUnitId':_0x2da79a,'pivotTableId':_0x4cafaf[_0x2ef6c6(0x25e)],'targetCellPosition':{'row':_0x221d3e['targetCellInfo'][_0x2ef6c6(0x26d)],'col':_0x221d3e[_0x2ef6c6(0x1e6)][_0x2ef6c6(0x35b)]}}}];return _0x194133['sequenceExecute'](_0x58020b,_0x16d2d5)&&_0x28a5d0[_0x2ef6c6(0x250)]({'unitID':_0x4b434b,'undoMutations':_0x2a8c1c,'redoMutations':_0x58020b}),!0x0;}},_0x357ed9={'type':_0x194133[_0x269f30(0x43a)]['COMMAND'],'id':_0x269f30(0x195),async 'handler'(_0x49343b,_0xeb1f75){const _0x17c6dd=_0x269f30;var _0x2bbd79;if(!_0xeb1f75)return!0x1;const _0x280ff5=_0x49343b[_0x17c6dd(0x33f)](_0x194133[_0x17c6dd(0x137)]),_0xf4f95b=_0x131b3b[_0x17c6dd(0x2b9)](_0x280ff5);if(!_0xf4f95b)return!0x1;const {unitId:_0x4f195e,subUnitId:_0x5f1ca3,workbook:_0x2830c4}=_0xf4f95b,{row:_0x32b1b9,col:_0x1d2e06}=_0xeb1f75,_0x1d3fca=_0x49343b[_0x17c6dd(0x33f)](_0x1aec1a[_0x17c6dd(0x328)]),_0x22b8ad=_0x1d3fca[_0x17c6dd(0x2b4)](_0x4f195e,_0x5f1ca3,_0x32b1b9,_0x1d2e06);if(!_0x22b8ad)return!0x1;const _0x152e9d=(_0x2bbd79=_0x1d3fca[_0x17c6dd(0x272)](_0x4f195e,_0x5f1ca3,_0x22b8ad))==null?void 0x0:_0x2bbd79[_0x17c6dd(0x253)];if(!_0x152e9d)return!0x1;const _0x24b8ec=_0x49343b[_0x17c6dd(0x33f)](_0x1aec1a['SheetsPivotTableConfigModel'])[_0x17c6dd(0x189)](_0x4f195e,_0x5f1ca3,_0x22b8ad);if(!_0x24b8ec)return!0x1;const {rowInfo:_0x4b9fcd,colInfo:_0x39413f}=_0x152e9d,_0xd7b002=_0x4b9fcd[_0x32b1b9][_0x17c6dd(0x326)],_0xca29a5=_0x39413f[_0x1d2e06][_0x17c6dd(0x326)],_0x3b179f=_0x4b9fcd[_0x32b1b9][_0x17c6dd(0x300)],_0x57fd99=_0x39413f[_0x1d2e06][_0x17c6dd(0x300)],_0x3d8759=_0xd7b002[_0x17c6dd(0x320)](_0xca29a5),_0x35a264=_0x24b8ec[_0x17c6dd(0x30f)][_0x17c6dd(0x249)][_0x17c6dd(0x383)](0x0,_0x3b179f),_0x4f9167=_0x24b8ec['fieldsConfig']['columnFields'][_0x17c6dd(0x383)](0x0,_0x57fd99),_0x1caf09=_0x35a264[_0x17c6dd(0x320)](_0x4f9167),_0x2637f6=_0x3d8759['map']((_0x1c6e3e,_0xedc218)=>[_0x1c6e3e,_0x1caf09[_0xedc218]]),_0x198caa=(await _0x49343b[_0x17c6dd(0x33f)](_0x1aec1a[_0x17c6dd(0x2e6)])[_0x17c6dd(0x38b)]({'unitId':_0x4f195e,'subUnitId':_0x5f1ca3,'pivotTableId':_0x22b8ad,'params':{'type':_0x309bca[_0x17c6dd(0x1ea)],'drillDown':{'tuple':_0x2637f6}}}))[_0x17c6dd(0x1e4)][_0x17c6dd(0x246)];if(!_0x198caa)return!0x1;const {indexes:_0x342404,range:_0x3aa63b,sourceUnitId:_0x45330e,sourceSubUnitId:_0x11a4bd,formatMap:_0x12e85a}=_0x198caa,{startRow:_0x28d0d9,endRow:_0x47a59a,startColumn:_0x221157,endColumn:_0x369da1}=_0x3aa63b,_0x14df8e=new _0x194133[(_0x17c6dd(0x1c4))](),_0x273392=_0x47a59a-_0x28d0d9,_0x1e0cc5=_0x369da1-_0x221157,_0x1c4a58={},_0x303830=_0x131b3b[_0x17c6dd(0x2b9)](_0x280ff5,{'unitId':_0x45330e,'subUnitId':_0x11a4bd});if(!_0x303830)return!0x1;const _0x1fe8c0=_0x3b3f2c[_0x17c6dd(0x42a)],_0x19eaf5=_0x3b3f2c[_0x17c6dd(0x37b)],_0x37fe51=_0x3b3f2c['subTotalStyle'],_0x2fa780=_0x2830c4['getStyles']()[_0x17c6dd(0x26e)](_0x1fe8c0),_0x64eb83=_0x2830c4[_0x17c6dd(0x1ba)]()[_0x17c6dd(0x26e)](_0x19eaf5),_0xb46a3c=_0x2830c4[_0x17c6dd(0x1ba)]()['setValue'](_0x37fe51),{worksheet:_0xe1332}=_0x303830;let _0x5d6f91=0x0;const _0x454b45=0x1;_0x342404[_0x17c6dd(0x2cd)](_0x59de0e=>{const _0x3f769b=_0x17c6dd;for(let _0x5dab5f=0x0;_0x5dab5f<=_0x369da1-_0x221157;_0x5dab5f++)_0x14df8e['setValue'](_0x5d6f91,_0x5dab5f,_0xe1332[_0x3f769b(0x384)](_0x59de0e+_0x3aa63b['startRow']+_0x454b45,_0x5dab5f));_0x5d6f91++;});for(let _0x44558a=_0x221157;_0x44558a<=_0x369da1;_0x44558a++){const _0x28354d=_0xe1332['getCellRaw'](_0x28d0d9,_0x44558a);_0x1c4a58[_0x28d0d9]||(_0x1c4a58[_0x28d0d9]={}),_0x1c4a58[_0x28d0d9][_0x44558a]={..._0x28354d,'s':_0x2fa780};}let _0x271cff=0x1;const _0x372d17={},_0x4dfc9d={};_0x14df8e[_0x17c6dd(0x2bb)]((_0x19bc07,_0x3b8979)=>{_0x3b8979['forEach'](_0x50a619=>{const _0x136574=_0x10c7,_0xae26ad=_0x14df8e[_0x136574(0x1da)](_0x19bc07,_0x50a619);if(_0x1c4a58[_0x271cff]||(_0x1c4a58[_0x271cff]={}),_0x1c4a58[_0x271cff][_0x50a619]={..._0xae26ad,'s':_0x271cff%0x2===0x0?_0xb46a3c:_0x64eb83},_0x12e85a[_0x50a619]&&_0x19bc07>=0x0){const _0x55816b=_0x271cff%0x2===0x0;let _0x3d3c2=_0x55816b?_0x4dfc9d[_0x50a619]:_0x372d17[_0x50a619];_0x3d3c2||(_0x3d3c2=_0x2830c4[_0x136574(0x1ba)]()[_0x136574(0x26e)]({..._0x55816b?_0x37fe51:_0x19eaf5,'n':{'pattern':_0x12e85a[_0x50a619]}}),_0x55816b?_0x4dfc9d[_0x50a619]=_0x3d3c2:_0x372d17[_0x50a619]=_0x3d3c2),_0x1c4a58[_0x271cff][_0x50a619]['s']=_0x3d3c2;}}),_0x271cff++;});const _0x426f6f=new _0x194133[(_0x17c6dd(0x1c4))](_0x1c4a58),_0x431c83={};_0x426f6f[_0x17c6dd(0x421)]((_0x370275,_0x139a7f,_0x3b9dc0)=>{_0x431c83[_0x370275]||(_0x431c83[_0x370275]={}),_0x431c83[_0x370275][_0x139a7f]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x15916e=[],_0x500e0d=[],_0x4807b3=_0x2830c4[_0x17c6dd(0x185)]()[_0x17c6dd(0x1ed)],_0x10afbc=_0x194133['mergeWorksheetSnapshotWithDefault']({'rowCount':Math['max'](_0x194133[_0x17c6dd(0x186)],_0x273392+0xa),'columnCount':Math['max'](_0x194133[_0x17c6dd(0x155)],_0x1e0cc5+0x5)}),_0x3753b6=_0x49343b[_0x17c6dd(0x33f)](_0x194133[_0x17c6dd(0x3b0)]);_0x10afbc['id']=_0x194133['generateRandomId'](),_0x10afbc[_0x17c6dd(0x417)]=_0x2830c4['generateNewSheetName'](''+_0x3753b6['t'](_0x17c6dd(0x184)));const _0x480ca4={'index':_0x4807b3,'sheet':_0x10afbc,'unitId':_0x4f195e},_0x1dcd9e=_0x131b3b[_0x17c6dd(0x344)](_0x49343b,_0x480ca4);_0x500e0d[_0x17c6dd(0x3fe)]({'id':_0x131b3b[_0x17c6dd(0x239)]['id'],'params':_0x480ca4}),_0x15916e[_0x17c6dd(0x3fe)]({'id':_0x131b3b[_0x17c6dd(0x32e)]['id'],'params':_0x1dcd9e}),_0x500e0d[_0x17c6dd(0x3fe)]({'id':_0x131b3b['SetRangeValuesMutation']['id'],'params':{'unitId':_0x4f195e,'subUnitId':_0x10afbc['id'],'cellValue':_0x1c4a58}}),_0x15916e[_0x17c6dd(0x200)]({'id':_0x131b3b['SetRangeValuesMutation']['id'],'params':{'unitId':_0x4f195e,'subUnitId':_0x10afbc['id'],'cellValue':_0x431c83}});const _0x686c4d={'startRow':0x0,'startColumn':0x0,'endRow':_0x271cff-0x1,'endColumn':_0x369da1};_0x500e0d[_0x17c6dd(0x3fe)]({'id':_0xbcfe7b[_0x17c6dd(0x1b1)]['id'],'params':{'unitId':_0x4f195e,'subUnitId':_0x10afbc['id'],'range':_0x686c4d}}),_0x15916e[_0x17c6dd(0x200)]({'id':_0xbcfe7b['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x4f195e,'subUnitId':_0x10afbc['id']}});const _0x12ccb4=_0x49343b[_0x17c6dd(0x33f)](_0x194133[_0x17c6dd(0x3a4)]);return _0x194133[_0x17c6dd(0x33b)](_0x500e0d,_0x12ccb4)&&_0x49343b[_0x17c6dd(0x33f)](_0x194133[_0x17c6dd(0x3e9)])[_0x17c6dd(0x250)]({'unitID':_0x4f195e,'undoMutations':_0x15916e,'redoMutations':_0x500e0d}),!0x0;}},_0x3de05b={'type':_0x194133['CommandType']['COMMAND'],'id':'sheet.command.remove-pivot-field',async 'handler'(_0x3ef6b8,_0x4915e3){const _0x47c5f5=_0x269f30;if(!_0x4915e3)return!0x1;const _0x2de3dc=_0x3ef6b8[_0x47c5f5(0x33f)](_0x194133[_0x47c5f5(0x3a4)]),_0x502d58=_0x3ef6b8[_0x47c5f5(0x33f)](_0x1aec1a[_0x47c5f5(0x2e6)]),_0x58eb76=_0x3ef6b8[_0x47c5f5(0x33f)](_0x194133[_0x47c5f5(0x3e9)]),{pivotTableId:_0x1b74c8,fieldIds:_0xbc310b,unitId:_0x49c88e,subUnitId:_0x49059b}=_0x4915e3,_0xa61615=(await _0x502d58[_0x47c5f5(0x38b)]({'unitId':_0x49c88e,'subUnitId':_0x49059b,'pivotTableId':_0x1b74c8,'params':{'type':_0x309bca[_0x47c5f5(0x21b)],'removePivotField':{'fieldIds':_0xbc310b}}}))['result'][_0x47c5f5(0x368)];if(!_0xa61615)return!0x1;const {view:_0x4bf189,changesets:_0x33ad16,isEmpty:_0x5df226,pivotTableConfig:_0x393534}=_0xa61615,_0x338c3a=_0x393534[_0x47c5f5(0x1e6)],_0x2b871f=new _0x2c142[(_0x47c5f5(0x265))]();_0x2b871f[_0x47c5f5(0x245)](_0x4bf189);const _0x5354af={'cellInfo':_0x338c3a,'view':_0x2b871f,'isEmpty':_0x5df226};if(!await _0x3ef6b8[_0x47c5f5(0x33f)](_0x1aec1a['SheetsPivotTableService'])[_0x47c5f5(0x3df)][_0x47c5f5(0x1e8)](_0x324296)(!0x0,_0x5354af))return!0x1;const _0x4e1cf7=_0x4b13ac(_0x3ef6b8,_0x2b871f,_0x338c3a,_0x5df226),_0x4b1507=_0x42f7d6(_0x3ef6b8,_0x5354af),{redos:_0x2b37ed,undos:_0x586b78}=_0x40ee7a(_0x2de3dc,{'pivotTableId':_0x1b74c8,'unitId':_0x49c88e,'subUnitId':_0x49059b},_0x33ad16);return _0x194133['sequenceExecute']([..._0x4e1cf7['redos'],..._0x4b1507['redos'],..._0x2b37ed],_0x2de3dc),_0x58eb76[_0x47c5f5(0x250)]({'unitID':_0x49c88e,'redoMutations':[..._0x4e1cf7['redos'],..._0x4b1507[_0x47c5f5(0x439)],..._0x2b37ed],'undoMutations':[..._0x4e1cf7[_0x47c5f5(0x2b2)],..._0x4b1507[_0x47c5f5(0x2b2)],..._0x586b78]}),!0x0;}},_0x185ddb={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x3dd)],'id':_0x269f30(0x21c),async 'handler'(_0x496a67,_0x3b7746){const _0x3a854d=_0x269f30;if(!_0x3b7746)return!0x1;const _0x43b34d=_0x496a67[_0x3a854d(0x33f)](_0x194133['ICommandService']),_0xd775ef=_0x496a67[_0x3a854d(0x33f)](_0x194133[_0x3a854d(0x3e9)]),_0x54348b=_0x496a67[_0x3a854d(0x33f)](_0x1aec1a['SheetsPivotRPCService']),{resetArea:_0x2e50a3,pivotTableId:_0x472d70,unitId:_0x10af57,subUnitId:_0x571a00}=_0x3b7746,_0x27d8af=(await _0x54348b['getPivotDisplayConfig']({'unitId':_0x10af57,'subUnitId':_0x571a00,'pivotTableId':_0x472d70,'params':{'type':_0x309bca['ResetPivotTable'],'resetPivotTable':{'pivotTableId':_0x472d70,'resetArea':_0x2e50a3}}}))[_0x3a854d(0x1e4)][_0x3a854d(0x2fe)];if(!_0x27d8af)return!0x1;const {changesets:_0x3340a4}=_0x27d8af,{redos:_0x1ee330,undos:_0x59f31d}=_0x40ee7a(_0x43b34d,{'pivotTableId':_0x472d70,'unitId':_0x10af57,'subUnitId':_0x571a00},_0x3340a4);return _0x194133[_0x3a854d(0x33b)](_0x1ee330,_0x43b34d),_0xd775ef[_0x3a854d(0x250)]({'unitID':_0x10af57,'redoMutations':_0x1ee330,'undoMutations':_0x59f31d}),!0x0;}},_0x399c6a={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x3dd)],'id':_0x269f30(0x1d7),async 'handler'(_0x1bb0de,_0x377dd3){const _0x2e6565=_0x269f30,_0x4c5b52=_0x1bb0de['get'](_0x194133[_0x2e6565(0x3a4)]),_0x1855eb=_0x1bb0de[_0x2e6565(0x33f)](_0x1aec1a[_0x2e6565(0x2e6)]),_0xee42e9=_0x1bb0de['get'](_0x1aec1a[_0x2e6565(0x328)]),_0x520f92=_0x1bb0de[_0x2e6565(0x33f)](_0x194133[_0x2e6565(0x137)]),_0x54ca46=_0x1bb0de[_0x2e6565(0x33f)](_0x194133['LocaleService']),_0x45275a=_0x1bb0de[_0x2e6565(0x33f)](_0x194133['IUndoRedoService']);if(!_0x377dd3)return!0x1;const {unitId:_0x4cd177,subUnitId:_0x45b792,row:_0x51ad16,col:_0x294163,collapse:_0xb1a55f}=_0x377dd3,_0x2c5dff=_0x520f92[_0x2e6565(0x27f)](_0x4cd177);if(!_0x2c5dff||!_0x2c5dff['getSheetBySheetId'](_0x45b792))return!0x1;const _0x36624e=_0xee42e9[_0x2e6565(0x2b4)](_0x4cd177,_0x45b792,_0x51ad16,_0x294163);if(!_0x36624e)return!0x1;const _0x5b183d=_0xee42e9[_0x2e6565(0x272)](_0x4cd177,_0x45b792,_0x36624e);if(!_0x5b183d)return!0x1;const _0xb1e4e1=_0x194133['cellToRange'](_0x51ad16,_0x294163),{rangesInfo:_0xcc33ba,areaInfo:_0x438f2e,headerMap:_0x5db15d}=_0x5b183d;if(!_0xcc33ba||!_0x438f2e||!_0x5db15d)return!0x1;const _0x1b1b0c=Object[_0x2e6565(0x243)](_0xcc33ba)[_0x2e6565(0x163)](_0x2c3558=>_0xcc33ba[_0x2c3558][_0x2e6565(0x25d)](_0x3d179f=>_0x194133[_0x2e6565(0x1ac)][_0x2e6565(0x1c3)](_0x3d179f,_0xb1e4e1)));let _0x54c854;_0x1b1b0c==='rowRanges'?_0x54c854=_0x5db15d[_0x2e6565(0x306)][_0x294163]:_0x1b1b0c===_0x2e6565(0x3e7)&&(_0x54c854=_0x5db15d[_0x2e6565(0x34d)][_0x51ad16]);const _0x5c8ee0=_0x54c854==null?void 0x0:_0x54c854['tableFieldId'],_0xc30f0f=_0xee42e9[_0x2e6565(0x2c9)](_0x4cd177,_0x45b792,_0x51ad16,_0x294163);let _0x1fd4cd=_0xc30f0f==null?void 0x0:_0xc30f0f['v'];if(_0x1fd4cd===_0x54ca46['t'](_0x2e6565(0x2a3))&&(_0x1fd4cd=_0x2c142[_0x2e6565(0x148)][_0x2e6565(0x375)]),_0x1fd4cd==null||!_0x36624e||!_0x5c8ee0)return!0x1;const _0x52ed47=await _0x1855eb[_0x2e6565(0x38b)]({'unitId':_0x4cd177,'subUnitId':_0x45b792,'pivotTableId':_0x36624e,'params':{'type':_0x309bca[_0x2e6565(0x32c)],'setPivotCollapse':{'tableFieldId':_0x5c8ee0,'collapse':_0xb1a55f,'item':_0x1fd4cd}}}),_0x4dd892=_0x52ed47==null?void 0x0:_0x52ed47['result'][_0x2e6565(0x140)];if(!_0x4dd892)return!0x1;const {view:_0x2a59f2,pivotTableConfig:_0x551087,isEmpty:_0x42c7b3,changesets:_0x210f97}=_0x4dd892,_0x1e6de5=new _0x2c142[(_0x2e6565(0x265))]();_0x1e6de5[_0x2e6565(0x245)](_0x2a59f2);const _0x16fac8=_0x551087[_0x2e6565(0x1e6)],_0x286dd0={'cellInfo':_0x16fac8,'view':_0x1e6de5,'isEmpty':_0x42c7b3};if(!await _0x1bb0de[_0x2e6565(0x33f)](_0x1aec1a[_0x2e6565(0x3fc)])[_0x2e6565(0x3df)][_0x2e6565(0x1e8)](_0x324296)(!0x0,_0x286dd0))return!0x1;const _0x442ab7=_0x4b13ac(_0x1bb0de,_0x1e6de5,_0x16fac8,_0x42c7b3),_0x2be2ed=_0x42f7d6(_0x1bb0de,_0x286dd0),{redos:_0x4797c4,undos:_0x122efc}=_0x40ee7a(_0x4c5b52,{'pivotTableId':_0x36624e,'unitId':_0x4cd177,'subUnitId':_0x45b792},_0x210f97);return _0x194133[_0x2e6565(0x33b)]([..._0x442ab7[_0x2e6565(0x439)],..._0x2be2ed[_0x2e6565(0x439)],..._0x4797c4],_0x4c5b52),_0x45275a[_0x2e6565(0x250)]({'unitID':_0x4cd177,'redoMutations':[..._0x442ab7[_0x2e6565(0x439)],..._0x2be2ed['redos'],..._0x4797c4],'undoMutations':[..._0x442ab7[_0x2e6565(0x2b2)],..._0x2be2ed[_0x2e6565(0x2b2)],..._0x122efc]}),!0x0;}},_0x29fb04={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x3dd)],'id':_0x269f30(0x336),async 'handler'(_0x216d76,_0x14b949){const _0x1c2812=_0x269f30;if(!_0x14b949)return!0x1;const _0x56c0a5=_0x216d76[_0x1c2812(0x33f)](_0x194133['ICommandService']),_0x173171=_0x216d76[_0x1c2812(0x33f)](_0x194133[_0x1c2812(0x3e9)]),_0x462949=_0x216d76['get'](_0x1aec1a['SheetsPivotRPCService']),{pivotTableConfig:_0xc3015,pivotTableId:_0x527300,unitId:_0x156f1e,subUnitId:_0x264945}=_0x14b949,_0x2c8122=(await _0x462949[_0x1c2812(0x38b)]({'unitId':_0x156f1e,'subUnitId':_0x264945,'pivotTableId':_0x527300,'params':{'type':_0x309bca[_0x1c2812(0x20a)],'setPivotTableConfig':{'pivotTableId':_0x527300,'pivotTableConfig':_0xc3015}}}))['result'][_0x1c2812(0x1f1)];if(!_0x2c8122)return!0x1;const {changesets:_0x49d6d6}=_0x2c8122,{redos:_0x5891b1,undos:_0x2d6dea}=_0x40ee7a(_0x56c0a5,{'pivotTableId':_0x527300,'unitId':_0x156f1e,'subUnitId':_0x264945},_0x49d6d6);return _0x194133[_0x1c2812(0x33b)](_0x5891b1,_0x56c0a5),_0x173171[_0x1c2812(0x250)]({'unitID':_0x156f1e,'redoMutations':_0x5891b1,'undoMutations':_0x2d6dea}),!0x0;}},_0x319c7a={'type':_0x194133['CommandType']['COMMAND'],'id':_0x269f30(0x289),async 'handler'(_0x426c96,_0x343752){const _0x674332=_0x269f30;if(!_0x343752)return!0x1;const _0x165449=_0x426c96[_0x674332(0x33f)](_0x194133[_0x674332(0x3a4)]),{pivotTableId:_0x104691,tableFieldId:_0x5f1337,items:_0x51127e,unitId:_0x602be7,subUnitId:_0x41ffb2,isAll:_0x2ab4e0}=_0x343752,_0x446674=_0x426c96[_0x674332(0x33f)](_0x1aec1a[_0x674332(0x2e6)]),_0x5a384c=_0x426c96[_0x674332(0x33f)](_0x194133['IUndoRedoService']),_0x390a1c=(await _0x446674[_0x674332(0x38b)]({'unitId':_0x602be7,'subUnitId':_0x41ffb2,'pivotTableId':_0x104691,'params':{'type':_0x309bca[_0x674332(0x1dd)],'setPivotFilter':{'tableFieldId':_0x5f1337,'items':_0x51127e,'isAll':_0x2ab4e0}}}))[_0x674332(0x1e4)][_0x674332(0x411)];if(!_0x390a1c)return!0x1;const {changesets:_0x51085c,pivotTableConfig:_0x44422,isEmpty:_0xa2f08f,view:_0x4b6e3f}=_0x390a1c,_0x5825c7=_0x44422[_0x674332(0x1e6)],_0x4b316e=new _0x2c142[(_0x674332(0x265))]();_0x4b316e[_0x674332(0x245)](_0x4b6e3f);const _0x17f9ed={'cellInfo':_0x5825c7,'view':_0x4b316e,'isEmpty':_0xa2f08f};if(!await _0x426c96[_0x674332(0x33f)](_0x1aec1a[_0x674332(0x3fc)])[_0x674332(0x3df)][_0x674332(0x1e8)](_0x324296)(!0x0,_0x17f9ed))return!0x1;const _0x823979=_0x4b13ac(_0x426c96,_0x4b316e,_0x5825c7,_0xa2f08f),_0x56ae11=_0x42f7d6(_0x426c96,_0x17f9ed),{undos:_0x2b07e4,redos:_0x55618f}=_0x40ee7a(_0x165449,{'pivotTableId':_0x104691,'unitId':_0x602be7,'subUnitId':_0x41ffb2},_0x51085c);return _0x194133[_0x674332(0x33b)]([..._0x823979['redos'],..._0x56ae11[_0x674332(0x439)],..._0x55618f],_0x165449),_0x5a384c['pushUndoRedo']({'unitID':_0x602be7,'redoMutations':[..._0x823979[_0x674332(0x439)],..._0x56ae11['redos'],..._0x55618f],'undoMutations':[..._0x823979[_0x674332(0x2b2)],..._0x56ae11[_0x674332(0x2b2)],..._0x2b07e4]}),!0x0;}},_0x66af7e={'type':_0x194133['CommandType'][_0x269f30(0x3dd)],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x22ceac,_0x56e8af){const _0x13e260=_0x269f30;if(!_0x56e8af)return!0x1;const _0x2f08c0=_0x22ceac[_0x13e260(0x33f)](_0x194133['ICommandService']),_0x34e139=_0x22ceac[_0x13e260(0x33f)](_0x194133[_0x13e260(0x3e9)]),_0x3a1230=_0x22ceac[_0x13e260(0x33f)](_0x1aec1a[_0x13e260(0x2e6)]),{info:_0x502af4,tableFieldId:_0x4ac7bf,pivotTableId:_0x382eda,unitId:_0x360e71,subUnitId:_0x45ee22}=_0x56e8af,_0x4ed791=(await _0x3a1230[_0x13e260(0x38b)]({'unitId':_0x360e71,'subUnitId':_0x45ee22,'pivotTableId':_0x382eda,'params':{'type':_0x309bca[_0x13e260(0x173)],'setPivotSort':{'tableFieldId':_0x4ac7bf,'info':_0x502af4}}}))['result']['setPivotSort'];if(!_0x4ed791)return!0x1;const {changesets:_0x5c8fce}=_0x4ed791,{redos:_0x1c9485,undos:_0x1a66f0}=_0x40ee7a(_0x2f08c0,{'pivotTableId':_0x382eda,'unitId':_0x360e71,'subUnitId':_0x45ee22},_0x5c8fce);return _0x194133[_0x13e260(0x33b)](_0x1c9485,_0x2f08c0),_0x34e139[_0x13e260(0x250)]({'unitID':_0x360e71,'redoMutations':_0x1c9485,'undoMutations':_0x1a66f0}),!0x0;}},_0x289e33={'type':_0x194133[_0x269f30(0x43a)]['COMMAND'],'id':_0x269f30(0x414),async 'handler'(_0x598e56,_0x50c87e){const _0x5a02b0=_0x269f30;if(!_0x50c87e)return!0x1;const _0xe17c4d=_0x598e56[_0x5a02b0(0x33f)](_0x194133[_0x5a02b0(0x3a4)]),{pivotTableId:_0x5a3c63,fieldId:_0x11379b,valueFilterInfo:_0x1b06cd,unitId:_0x417a2a,subUnitId:_0x1b7027}=_0x50c87e,_0x1cf25f=_0x598e56[_0x5a02b0(0x33f)](_0x1aec1a[_0x5a02b0(0x2e6)]),_0x5cab93=_0x598e56[_0x5a02b0(0x33f)](_0x194133[_0x5a02b0(0x3e9)]),_0x1751f4=(await _0x1cf25f[_0x5a02b0(0x38b)]({'unitId':_0x417a2a,'subUnitId':_0x1b7027,'pivotTableId':_0x5a3c63,'params':{'type':_0x309bca[_0x5a02b0(0x12e)],'setValuePivotFilter':{'tableFieldId':_0x11379b,'filterInfo':_0x1b06cd}}}))['result'][_0x5a02b0(0x367)];if(!_0x1751f4)return!0x1;const {changesets:_0x3d5187,pivotTableConfig:_0x55436d,isEmpty:_0x3329ff,view:_0x26aa24}=_0x1751f4,_0x69696b=_0x55436d[_0x5a02b0(0x1e6)],_0x3763c9=new _0x2c142[(_0x5a02b0(0x265))]();_0x3763c9[_0x5a02b0(0x245)](_0x26aa24);const _0x11a3b2={'cellInfo':_0x69696b,'view':_0x3763c9,'isEmpty':_0x3329ff};if(!await _0x598e56['get'](_0x1aec1a[_0x5a02b0(0x3fc)])[_0x5a02b0(0x3df)][_0x5a02b0(0x1e8)](_0x324296)(!0x0,_0x11a3b2))return!0x1;const _0x3f78b6=_0x4b13ac(_0x598e56,_0x3763c9,_0x69696b,_0x3329ff),_0x310fb8=_0x42f7d6(_0x598e56,_0x11a3b2),{undos:_0x19b8ad,redos:_0xde7e76}=_0x40ee7a(_0xe17c4d,{'pivotTableId':_0x5a3c63,'unitId':_0x417a2a,'subUnitId':_0x1b7027},_0x3d5187);return _0x194133['sequenceExecute']([..._0x3f78b6[_0x5a02b0(0x439)],..._0x310fb8[_0x5a02b0(0x439)],..._0xde7e76],_0xe17c4d),_0x5cab93['pushUndoRedo']({'unitID':_0x417a2a,'redoMutations':[..._0x3f78b6[_0x5a02b0(0x439)],..._0x310fb8[_0x5a02b0(0x439)],..._0xde7e76],'undoMutations':[..._0x3f78b6['undos'],..._0x310fb8[_0x5a02b0(0x2b2)],..._0x19b8ad]}),!0x0;}},_0x3b9004={'id':_0x269f30(0x235),'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x13b)],'handler':(_0x33d333,_0xb61cfd)=>{const _0x4329ab=_0x269f30;if(!_0xb61cfd)return!0x1;if(!!_0x33d333[_0x4329ab(0x33f)](_0x194133['IConfigService'])['getConfig'](_0x3c25a9))return!0x0;const {unitId:_0x5253d4,subUnitId:_0x4d2f40,pivotTableId:_0x20cc8e,tableFieldId:_0x4ec5a7,dateType:_0x14c0cc}=_0xb61cfd,_0x70e754=_0x33d333[_0x4329ab(0x33f)](_0x1aec1a[_0x4329ab(0x12b)]),_0x26af23=_0x70e754[_0x4329ab(0x41f)](_0x20cc8e);if(!_0x26af23)return!0x1;const _0x29c930=_0x26af23[_0x4329ab(0x418)](_0x4ec5a7);if(!_0x29c930)return!0x1;const _0x149f2e=_0x29c930[_0x4329ab(0x32b)](),_0x40ca7a=_0x26af23[_0x4329ab(0x1d4)](_0x149f2e),_0x101301=(_0x40ca7a==null?void 0x0:_0x40ca7a['getName']())+'\x20'+_0x2053fb(_0x33d333,_0x14c0cc);_0x70e754['getCollection'](_0x5253d4,_0x20cc8e)[_0x4329ab(0x182)](_0x29c930['id'],_0x101301);const _0x26f6c5=_0x26af23[_0x4329ab(0x315)](_0x4ec5a7);if(!_0x26f6c5)return!0x1;_0x26af23[_0x4329ab(0x2e3)](_0x26f6c5[_0x4329ab(0x3f3)](),_0x101301),_0x29c930['setDateType'](_0x14c0cc);const _0x56e10c=_0x70e754[_0x4329ab(0x189)](_0x5253d4,_0x4d2f40,_0x20cc8e);return _0x70e754['addDirtyPivotTable']({'unitId':_0x5253d4,'subUnitId':_0x4d2f40,'token':_0x20cc8e,'type':_0x12d3c2['Set'],'pivotConfig':_0x56e10c}),!0x0;}},_0x4a91b8={'id':'sheet.command.update-date-group','type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x3dd)],'handler':(_0x332365,_0x389fcb)=>{const _0x179f0f=_0x269f30;if(!_0x389fcb)return!0x1;const _0x4f77b1=_0x332365['get'](_0x194133[_0x179f0f(0x3e9)]),{unitId:_0x7fb121,subUnitId:_0x1a55f5,pivotTableId:_0x50db8a,tableFieldId:_0x2331f6}=_0x389fcb,_0x41b136=[],_0x123de1=[],_0x1439a1=_0x332365[_0x179f0f(0x33f)](_0x1aec1a[_0x179f0f(0x323)]),_0x3a993c=_0x1439a1[_0x179f0f(0x267)](_0x7fb121,_0x50db8a),_0x4d502f=_0x1439a1[_0x179f0f(0x189)](_0x7fb121,_0x1a55f5,_0x50db8a);if(!(_0x4d502f!=null&&_0x4d502f['fieldsConfig']['dimension']))return!0x1;const _0x4ed35f=Object['values'](_0x4d502f[_0x179f0f(0x30f)][_0x179f0f(0x423)])['find'](_0x35ea19=>_0x35ea19['id']===_0x2331f6);if(!_0x4ed35f)return!0x1;const _0x3e6f3d=_0x4ed35f[_0x179f0f(0x1c1)];if(!(_0x3a993c!=null&&_0x3a993c[_0x179f0f(0x3c0)]))return!0x1;const _0x5a21c6=Object['values'](_0x3a993c==null?void 0x0:_0x3a993c['fields'])[_0x179f0f(0x163)](_0x458b8a=>_0x458b8a['id']===_0x3e6f3d);if(!_0x5a21c6)return!0x1;_0x2c142['isDateGroupFieldJSON'](_0x5a21c6)&&_0x41b136[_0x179f0f(0x3fe)]({'id':_0x3b9004['id'],'params':{..._0x389fcb,'dateType':_0x5a21c6['dateType']}}),_0x123de1[_0x179f0f(0x3fe)]({'id':_0x3b9004['id'],'params':{..._0x389fcb}});const _0x3fd95d=_0x332365[_0x179f0f(0x33f)](_0x194133[_0x179f0f(0x3a4)]);return _0x194133[_0x179f0f(0x33b)](_0x123de1,_0x3fd95d)&&_0x4f77b1[_0x179f0f(0x250)]({'unitID':_0x7fb121,'undoMutations':_0x41b136,'redoMutations':_0x123de1}),!0x0;}},_0x2d79d1={'type':_0x194133[_0x269f30(0x43a)]['COMMAND'],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0x5b3b83,_0x432ddf){const _0x45d2da=_0x269f30;if(!_0x432ddf)return!0x1;const _0x1881fe=_0x5b3b83[_0x45d2da(0x33f)](_0x194133[_0x45d2da(0x3a4)]),_0x169c04=_0x5b3b83[_0x45d2da(0x33f)](_0x194133[_0x45d2da(0x3e9)]),_0x1d4247=_0x5b3b83['get'](_0x1aec1a[_0x45d2da(0x2e6)]),{displayName:_0xe904b3,subtotalType:_0x1750fb,format:_0xd55325,tableFieldId:_0x35ebf7,pivotTableId:_0x2c4d63,unitId:_0x1ad1c5,subUnitId:_0x6addaf}=_0x432ddf,_0xb79180=(await _0x1d4247[_0x45d2da(0x38b)]({'unitId':_0x1ad1c5,'subUnitId':_0x6addaf,'pivotTableId':_0x2c4d63,'params':{'type':_0x309bca[_0x45d2da(0x17a)],'setPivotSetting':{'tableFieldId':_0x35ebf7,'displayName':_0xe904b3,'subtotalType':_0x1750fb,'format':_0xd55325}}}))[_0x45d2da(0x1e4)][_0x45d2da(0x149)];if(!_0xb79180)return!0x1;const {changesets:_0xa20417,view:_0x13a4b8,pivotTableConfig:_0x21d035,isEmpty:_0x413198}=_0xb79180,_0x115a43=_0x21d035[_0x45d2da(0x1e6)],_0x554bda=new _0x2c142[(_0x45d2da(0x265))]();_0x554bda['formJSON'](_0x13a4b8);const _0x7c7efd={'cellInfo':_0x115a43,'view':_0x554bda,'isEmpty':_0x413198};if(!await _0x5b3b83['get'](_0x1aec1a[_0x45d2da(0x3fc)])['asyncInterceptor'][_0x45d2da(0x1e8)](_0x324296)(!0x0,_0x7c7efd))return!0x1;const _0x374440=_0x4b13ac(_0x5b3b83,_0x554bda,_0x115a43,_0x413198),_0xa317f1=_0x42f7d6(_0x5b3b83,_0x7c7efd),{undos:_0x5085d4,redos:_0x4635ad}=_0x40ee7a(_0x1881fe,{'pivotTableId':_0x2c4d63,'unitId':_0x1ad1c5,'subUnitId':_0x6addaf},_0xa20417);return _0x194133[_0x45d2da(0x33b)]([..._0x374440[_0x45d2da(0x439)],..._0xa317f1['redos'],..._0x4635ad],_0x1881fe),_0x169c04[_0x45d2da(0x250)]({'unitID':_0x1ad1c5,'redoMutations':[..._0x374440[_0x45d2da(0x439)],..._0xa317f1[_0x45d2da(0x439)],..._0x4635ad],'undoMutations':[..._0x374440[_0x45d2da(0x2b2)],..._0xa317f1[_0x45d2da(0x2b2)],..._0x5085d4]}),!0x0;}},_0x4fbe02={'type':_0x194133[_0x269f30(0x43a)]['MUTATION'],'id':_0x269f30(0x3cd),'handler'(_0x26caf5,_0x19444f){const _0x1f79e3=_0x269f30;if(!_0x19444f)return!0x1;if(!!_0x26caf5[_0x1f79e3(0x33f)](_0x194133[_0x1f79e3(0x431)])[_0x1f79e3(0x1cc)](_0x3c25a9))return!0x0;const _0xe02013=_0x26caf5[_0x1f79e3(0x33f)](_0x1aec1a[_0x1f79e3(0x12b)]),{pivotTableId:_0x12bb59,deleteIds:_0x2d4016,collectionJSON:_0x32b0b8,dataRangeInfo:_0x58950e,unitId:_0x495543,subUnitId:_0x54fa15}=_0x19444f,_0x3a831c=_0xe02013['getPivotTableInstance'](_0x12bb59),_0x243697=_0xe02013['getPivotTableConfig'](_0x495543,_0x54fa15,_0x12bb59);if(!_0x3a831c||!_0x243697)return!0x1;const {collection:_0x26b403,updateDataFieldList:_0x26d704}=_0xe02013[_0x1f79e3(0x2d8)](_0x12bb59,_0x32b0b8,_0x58950e,_0x243697[_0x1f79e3(0x1e6)]);_0xe02013[_0x1f79e3(0x329)](_0x26b403,_0x26d704,_0x58950e),_0x3a831c[_0x1f79e3(0x280)](_0x26b403);for(const _0x941382 of _0x2d4016)_0xe02013[_0x1f79e3(0x1fa)](_0x58950e[_0x1f79e3(0x341)],_0x941382);const _0x22ba33=_0xe02013[_0x1f79e3(0x189)](_0x495543,_0x54fa15,_0x12bb59);return _0x22ba33['sourceRangeInfo']=JSON[_0x1f79e3(0x16b)](JSON[_0x1f79e3(0x3ae)](_0x58950e)),_0xe02013[_0x1f79e3(0x2a7)]({'unitId':_0x495543,'subUnitId':_0x54fa15,'token':_0x12bb59,'type':_0x12d3c2['Set']}),!0x0;}},_0x2e0b0f={'type':_0x194133['CommandType']['COMMAND'],'id':_0x269f30(0x3bf),async 'handler'(_0x1ebdf2,_0x404b20){const _0x53327c=_0x269f30,_0x3c2778=_0x1ebdf2[_0x53327c(0x33f)](_0x194133[_0x53327c(0x3a4)]),_0x293b26=_0x1ebdf2['get'](_0x1aec1a['SheetsPivotRPCService']),_0x276a49=_0x1ebdf2[_0x53327c(0x33f)](_0x194133['IUndoRedoService']);if(!_0x404b20)return!0x1;const {token:_0x3a1866,dataRangeInfo:_0xadcbd1,unitId:_0x3c703b,subUnitId:_0x3a6547}=_0x404b20,_0x5ebed0=[],_0x1aef46=[],_0x22d412=(await _0x293b26[_0x53327c(0x38b)]({'unitId':_0x3c703b,'subUnitId':_0x3a6547,'pivotTableId':_0x3a1866,'params':{'type':_0x309bca['UpdatePivotSource'],'updatePivotSource':{'dataRangeInfo':_0xadcbd1,'unitId':_0x3c703b,'subUnitId':_0x3a6547}}}))['result']['updatePivotSource'];if(!_0x22d412)return!0x1;const {changesets:_0x1aa138,deleteIds:_0x53d3a8,collectionConfig:_0x197d76,oldCollectionConfig:_0x517100,view:_0x2ffdfc,isEmpty:_0x3f932b,pivotTableConfig:_0x2d0176}=_0x22d412;_0x1aef46[_0x53327c(0x3fe)]({'id':_0x4fbe02['id'],'params':{'pivotTableId':_0x3a1866,'deleteIds':_0x53d3a8,'collectionJSON':_0x197d76,'dataRangeInfo':_0xadcbd1,'unitId':_0x3c703b,'subUnitId':_0x3a6547}}),_0x5ebed0[_0x53327c(0x200)]({'id':_0x4fbe02['id'],'params':{'pivotTableId':_0x3a1866,'deleteIds':[],'collectionJSON':_0x517100,'dataRangeInfo':_0x2d0176[_0x53327c(0x42d)],'unitId':_0x3c703b,'subUnitId':_0x3a6547}});const _0x3f49e4=_0x2d0176[_0x53327c(0x1e6)],_0x525cde=new _0x2c142[(_0x53327c(0x265))]();_0x525cde[_0x53327c(0x245)](_0x2ffdfc);const _0x2cc4e6={'cellInfo':_0x3f49e4,'view':_0x525cde,'isEmpty':_0x3f932b};if(!await _0x1ebdf2['get'](_0x1aec1a[_0x53327c(0x3fc)])[_0x53327c(0x3df)][_0x53327c(0x1e8)](_0x324296)(!0x0,_0x2cc4e6))return!0x1;const _0x567f04=_0x4b13ac(_0x1ebdf2,_0x525cde,_0x3f49e4,_0x3f932b),_0x1e252c=_0x42f7d6(_0x1ebdf2,_0x2cc4e6),{undos:_0x175d94,redos:_0xeab19b}=_0x40ee7a(_0x3c2778,{'pivotTableId':_0x3a1866,'unitId':_0x3c703b,'subUnitId':_0x3a6547},_0x1aa138);return _0x194133[_0x53327c(0x33b)]([..._0x567f04[_0x53327c(0x439)],..._0x1e252c[_0x53327c(0x439)],..._0x1aef46,..._0x175d94],_0x3c2778),_0x276a49['pushUndoRedo']({'unitID':_0x3c703b,'redoMutations':[..._0x567f04['redos'],..._0x1e252c[_0x53327c(0x439)],..._0x1aef46,..._0x175d94],'undoMutations':[..._0x567f04[_0x53327c(0x2b2)],..._0x1e252c['undos'],..._0x5ebed0,..._0xeab19b]}),!0x0;}},_0x4638d9={'type':_0x194133[_0x269f30(0x43a)][_0x269f30(0x3dd)],'id':_0x269f30(0x25a),async 'handler'(_0x4884c3,_0x170bea){const _0x4a37c2=_0x269f30;if(!_0x170bea)return!0x1;const _0x1dcd3d=_0x4884c3[_0x4a37c2(0x33f)](_0x194133[_0x4a37c2(0x3a4)]),_0x4914a7=_0x4884c3[_0x4a37c2(0x33f)](_0x1aec1a['SheetsPivotRPCService']),_0x468eaf=_0x4884c3[_0x4a37c2(0x33f)](_0x194133[_0x4a37c2(0x137)]),_0x3f1eea=_0x4884c3['get'](_0x194133[_0x4a37c2(0x3e9)]),{pivotTableId:_0x3b062c,position:_0x482015,index:_0x434bce}=_0x170bea,_0x465645=_0x131b3b[_0x4a37c2(0x2b9)](_0x468eaf);if(!_0x465645)return!0x1;const {unitId:_0x2b6ace,subUnitId:_0x17dc8b}=_0x465645,_0x455f88=(await _0x4914a7[_0x4a37c2(0x38b)]({'unitId':_0x2b6ace,'subUnitId':_0x17dc8b,'pivotTableId':_0x3b062c,'params':{'type':_0x309bca['UpdateValuePosition'],'updateValuePosition':{'position':_0x482015,'index':_0x434bce}}}))[_0x4a37c2(0x1e4)][_0x4a37c2(0x2f5)];if(!_0x455f88)return!0x1;const {changesets:_0x992fe9,view:_0x425609,isEmpty:_0x2e286c,pivotTableConfig:_0x5ba557}=_0x455f88,_0x2ce26d=_0x5ba557['targetCellInfo'],_0x27f741=new _0x2c142[(_0x4a37c2(0x265))]();_0x27f741[_0x4a37c2(0x245)](_0x425609);const _0x153662=_0x4884c3['get'](_0x1aec1a['SheetsPivotTableService']),_0x166c1d={'cellInfo':_0x2ce26d,'view':_0x27f741,'isEmpty':_0x2e286c};if(!await _0x153662[_0x4a37c2(0x3df)]['fetchThroughAsyncInterceptors'](_0x324296)(!0x0,_0x166c1d))return!0x1;const _0x458541=_0x4b13ac(_0x4884c3,_0x27f741,_0x2ce26d,_0x2e286c),_0x590f2d=_0x42f7d6(_0x4884c3,_0x166c1d),{undos:_0x406afe,redos:_0x5ae343}=_0x40ee7a(_0x1dcd3d,{'pivotTableId':_0x3b062c,'unitId':_0x2b6ace,'subUnitId':_0x17dc8b},_0x992fe9);return _0x194133[_0x4a37c2(0x33b)]([..._0x458541[_0x4a37c2(0x439)],..._0x590f2d['redos'],..._0x5ae343],_0x1dcd3d),_0x3f1eea[_0x4a37c2(0x250)]({'unitID':_0x2b6ace,'redoMutations':[..._0x458541['redos'],..._0x590f2d[_0x4a37c2(0x439)],..._0x5ae343],'undoMutations':[..._0x458541[_0x4a37c2(0x2b2)],..._0x590f2d['undos'],..._0x406afe]}),!0x0;}},_0x28cee8={'type':_0x194133[_0x269f30(0x43a)]['MUTATION'],'id':_0x269f30(0x22c),'handler'(){return!0x0;}};var _0x175d99=Object[_0x269f30(0x1a6)],_0x3540d4=(_0x142864,_0x5d3e42,_0x4fff53,_0x1703ac)=>{const _0x295fea=_0x269f30;for(var _0x2a6791=_0x1703ac>0x1?void 0x0:_0x1703ac?_0x175d99(_0x5d3e42,_0x4fff53):_0x5d3e42,_0x45ce2f=_0x142864[_0x295fea(0x1ed)]-0x1,_0x66e60c;_0x45ce2f>=0x0;_0x45ce2f--)(_0x66e60c=_0x142864[_0x45ce2f])&&(_0x2a6791=_0x66e60c(_0x2a6791)||_0x2a6791);return _0x2a6791;},_0x22a664=(_0x33786e,_0x581d96)=>(_0x5fca44,_0x4dd389)=>_0x581d96(_0x5fca44,_0x4dd389,_0x33786e);const _0x5bfe0e=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x38cdc8=(_0x4aea21,_0x11db70,_0x2640d1)=>{const _0x297a7e=_0x269f30,_0x45555a=_0x4aea21[_0x297a7e(0x147)];_0x4aea21[_0x297a7e(0x13d)](_0x442187=>{const _0x57da54=_0x297a7e,_0x38033f=_0x442187[_0x57da54(0x3f3)](),_0x4efaeb=_0x442187[_0x57da54(0x1a3)](),_0x28cab8=_0x442187[_0x57da54(0x28e)](),_0x568f00=_0x442187[_0x57da54(0x1e9)]();_0x11db70[_0x4efaeb]&&_0x11db70[_0x4efaeb]===_0x568f00&&_0x28cab8===_0x568f00&&(_0x4aea21[_0x57da54(0x2e3)](_0x38033f,_0x45555a[_0x57da54(0x1e9)](_0x4efaeb)),_0x442187[_0x57da54(0x208)](_0x45555a[_0x57da54(0x1e9)](_0x4efaeb)));}),_0x4aea21[_0x297a7e(0x37e)](_0x2c142['PivotTableFiledAreaEnum'][_0x297a7e(0x295)],_0x5acc85=>{const _0x116d44=_0x297a7e,_0x4e98f5=_0x5acc85[_0x116d44(0x3f3)](),_0x2ad1ee=_0x5acc85[_0x116d44(0x1a3)](),_0x5f3d5e=_0x5acc85[_0x116d44(0x28e)](),_0x50ed07=_0x5acc85[_0x116d44(0x1e9)](),_0x547bee=_0x5acc85[_0x116d44(0x308)](),_0x3b7a19=_0x2640d1(_0x5f3d5e,_0x547bee);_0x11db70[_0x2ad1ee]&&_0x11db70[_0x2ad1ee]===_0x5f3d5e&&_0x3b7a19===_0x50ed07&&(_0x4aea21['renameField'](_0x4e98f5,_0x2640d1(_0x45555a[_0x116d44(0x1e9)](_0x2ad1ee),_0x547bee)),_0x5acc85[_0x116d44(0x208)](_0x45555a[_0x116d44(0x1e9)](_0x2ad1ee)));});},_0xec4770=(_0x285750,_0x56eb9f,_0x1dc526)=>{const _0x20a29d=_0x269f30;var _0x4484d4,_0x179836;const {arrayFormulaCellData:_0x5d000e,unitData:_0x3a848e}=_0x56eb9f,{unitId:_0xf9c5b7,subUnitId:_0x74cf58}=_0x1dc526,_0xc2dd3f=_0x1dc526['range'],{startColumn:_0x48e142,endColumn:_0x51b368}=_0xc2dd3f,_0xed68db=(_0x4484d4=_0x5d000e==null?void 0x0:_0x5d000e[_0xf9c5b7])==null?void 0x0:_0x4484d4[_0x74cf58],_0x505aab=(_0x179836=_0x3a848e==null?void 0x0:_0x3a848e[_0xf9c5b7])==null?void 0x0:_0x179836[_0x74cf58],_0x376a1f=new Set(),_0x4197e0=_0x51b368-_0x48e142+0x1,{dirtyRanges:_0x17ebbe}=_0x285750;if(_0x17ebbe)for(const {range:_0x1d9c05,sheetId:_0x3f7da8,unitId:_0x274c61}of _0x17ebbe){if(_0x3f7da8!==_0x74cf58||_0xf9c5b7!==_0x274c61)continue;const _0x4212d6=_0x194133['Rectangle'][_0x20a29d(0x2c0)](_0x1d9c05,_0xc2dd3f);if(_0x4212d6){const {startColumn:_0x36e8a6,endColumn:_0x1ad971}=_0x4212d6;for(let _0x114f72=_0x36e8a6;_0x114f72<=_0x1ad971;_0x114f72++)_0x376a1f[_0x20a29d(0x176)](_0x114f72);}}if(_0x376a1f[_0x20a29d(0x3de)]===_0x4197e0||_0x376a1f[_0x20a29d(0x3de)]===_0x4197e0)return Array[_0x20a29d(0x3b9)](_0x376a1f);if(_0x505aab){const _0x21e843=_0x505aab[_0x20a29d(0x269)](),_0x5f5bc3=Object[_0x20a29d(0x243)](_0x21e843);for(const _0x2d88ff of _0x5f5bc3){const _0x2cf8d6=Number(_0x2d88ff),_0x540513=_0x21e843[_0x2cf8d6];if(_0x376a1f[_0x20a29d(0x3de)]===_0x4197e0)break;for(const _0x57ecc3 in _0x540513){const _0xc7bf15=Number(_0x57ecc3);_0xc7bf15<_0x48e142||_0xc7bf15>_0x51b368||_0x376a1f[_0x20a29d(0x176)](_0xc7bf15);}}}if(_0xed68db){const _0x23e2ba=_0xed68db['getMatrix'](),_0x42b33a=Object[_0x20a29d(0x243)](_0x23e2ba);for(const _0x26c9e6 of _0x42b33a){const _0x2509d8=Number(_0x26c9e6),_0x28ed6=_0x23e2ba[_0x2509d8];if(_0x376a1f['size']===_0x4197e0)break;for(const _0x39fb43 in _0x28ed6){const _0x2a60ab=Number(_0x39fb43);_0x2a60ab<_0x48e142||_0x2a60ab>_0x51b368||_0x376a1f[_0x20a29d(0x176)](_0x2a60ab);}}}return Array[_0x20a29d(0x3b9)](_0x376a1f);},_0x3c96a7=_0x595cb7=>{const _0x21d929=_0x269f30,_0x3f5157=new Set(),_0x55ed81=[];for(const _0x48c77b of _0x595cb7){const _0x50a626=_0x48c77b[_0x21d929(0x159)]+','+_0x48c77b[_0x21d929(0x2a5)]+','+_0x48c77b[_0x21d929(0x152)]+','+_0x48c77b['endColumn'];_0x3f5157[_0x21d929(0x224)](_0x50a626)||(_0x3f5157[_0x21d929(0x176)](_0x50a626),_0x55ed81['push'](_0x48c77b));}return _0x55ed81;};let _0xe836b9=class extends _0x194133[_0x269f30(0x2a8)]{constructor(_0x23472e,_0x4713e4,_0x381a2f,_0x2de604,_0x251998){const _0x395707=_0x269f30;super(),_0x327454(this,_0x395707(0x132),new _0x2935a3[(_0x395707(0x187))](!0x0)),_0x327454(this,'_globalComputedStartHelpFunc',_0x153dbf=>{this['_globalSubject']['next'](!0x1);}),_0x327454(this,_0x395707(0x2b5),_0x1b4883=>{const _0x52cedb=_0x395707;this[_0x52cedb(0x132)][_0x52cedb(0x2c7)](!0x0);}),(this[_0x395707(0x1ad)]=_0x23472e,this[_0x395707(0x40d)]=_0x4713e4,this[_0x395707(0x394)]=_0x381a2f,this[_0x395707(0x39f)]=_0x2de604,this['_injector']=_0x251998,this[_0x395707(0x233)](),this[_0x395707(0x17f)]());}[_0x269f30(0x233)](){const _0x450b19=_0x269f30;this[_0x450b19(0x24e)](),this['_subjectViewChange'](),this[_0x450b19(0x337)](),this['_subjectFieldsCollectionChange']();}[_0x269f30(0x170)](){const _0x19a46b=_0x269f30;this['_globalComputingSrv'][_0x19a46b(0x1d0)](this[_0x19a46b(0x132)]),_0x2c142[_0x19a46b(0x121)][_0x19a46b(0x123)](_0x2c142[_0x19a46b(0x221)][_0x19a46b(0x334)],this[_0x19a46b(0x2f1)]),_0x2c142[_0x19a46b(0x121)]['registerCallbackWithEvent'](_0x2c142['PivotCallbackEnum'][_0x19a46b(0x3a9)],this['_globalComputedEndHelpFunc']);}[_0x269f30(0x17f)](){const _0x288484=_0x269f30;this[_0x288484(0x409)](this[_0x288484(0x394)][_0x288484(0x204)](_0x2500ec=>{const _0x37408a=_0x288484;_0x2500ec['id']===_0x131b3b['MoveRangeMutation']['id']&&this[_0x37408a(0x1ad)][_0x37408a(0x129)](_0x2500ec[_0x37408a(0x3ff)]);})),this['disposeWithMe'](this[_0x288484(0x394)][_0x288484(0x204)](_0x1273c0=>{const _0x251ecb=_0x288484;if(_0x1273c0['id']!==_0x3e18a0['id'])return;const _0x5c0ad5=_0x1273c0[_0x251ecb(0x3ff)],{unitId:_0x2fb98d,subUnitId:_0xd95306,pivotTableId:_0x4f5612}=_0x5c0ad5,_0x951eb3=_0x5c0ad5[_0x251ecb(0x3ff)][_0x251ecb(0x389)],_0x18b50d={};switch(_0x951eb3){case _0x309bca[_0x251ecb(0x364)]:{const _0x2ce6f2=_0x5c0ad5[_0x251ecb(0x3ff)][_0x251ecb(0x29d)];if(!_0x2ce6f2)return;const {row:_0xcf3422,col:_0x428b7f,cellData:_0x31448b,pivotItemRenderInfoCache:_0x1160fb,tableFieldId:_0x5f5ed6}=_0x2ce6f2,_0x1fd671=this[_0x251ecb(0x1ad)][_0x251ecb(0x41f)](_0x5c0ad5[_0x251ecb(0x25e)]);if(!_0x1fd671||!_0x1160fb)return;if(_0x5f5ed6){const _0xd766cd=_0x1fd671[_0x251ecb(0x418)](_0x5f5ed6);if(!_0xd766cd)return;_0x18b50d[_0x251ecb(0x29d)]={..._0x1fd671[_0x251ecb(0x230)](_0xd766cd),'tableFieldId':_0x5f5ed6,'pivotTableId':_0x5c0ad5[_0x251ecb(0x25e)],'filterInfo':_0x1fd671['getFilterInfo'](_0x5f5ed6),'sortInfo':_0x1fd671['getSortInfo'](_0x5f5ed6),'format':_0x1fd671[_0x251ecb(0x318)](_0x5f5ed6)};}else{const _0x57e3c3=_0x46b939(_0xcf3422,_0x428b7f,_0x31448b,_0x1fd671,_0x1160fb),_0x2b88fd=_0x57e3c3==null?void 0x0:_0x57e3c3[_0x251ecb(0x3c3)];if(!_0x2b88fd)return;const _0x4978b5=_0x1fd671[_0x251ecb(0x418)](_0x2b88fd);if(!_0x4978b5)return;_0x18b50d[_0x251ecb(0x29d)]={..._0x1fd671[_0x251ecb(0x230)](_0x4978b5),'tableFieldId':_0x2b88fd,'pivotTableId':_0x5c0ad5[_0x251ecb(0x25e)],'filterInfo':_0x1fd671[_0x251ecb(0x135)](_0x2b88fd),'sortInfo':_0x1fd671[_0x251ecb(0x379)](_0x2b88fd),'format':_0x1fd671[_0x251ecb(0x318)](_0x2b88fd)};}}break;case _0x309bca[_0x251ecb(0x21a)]:{const _0x7babd4=_0x5c0ad5['params'][_0x251ecb(0x136)];if(!_0x7babd4)return;const {pivotTableId:_0x30c402}=_0x7babd4,_0x3868b0=this[_0x251ecb(0x1ad)][_0x251ecb(0x41f)](_0x30c402);if(!_0x3868b0)return;const _0x295cb3=this[_0x251ecb(0x1ad)][_0x251ecb(0x189)](_0x2fb98d,_0xd95306,_0x30c402),_0x436d30=_0x370658(_0x3868b0,_0x30c402,_0x295cb3);_0x18b50d[_0x251ecb(0x136)]=_0x436d30;}break;case _0x309bca[_0x251ecb(0x261)]:{const _0x44a764=this[_0x251ecb(0x1ad)][_0x251ecb(0x41f)](_0x4f5612),_0x19fe85=this[_0x251ecb(0x1ad)][_0x251ecb(0x2c3)](_0x2fb98d),_0x361390=_0x19fe85[_0x251ecb(0x267)](_0x4f5612);let _0x420620=null;const _0x10f73c=this['_sheetsPivotDataSourceModel'][_0x251ecb(0x189)](_0x2fb98d,_0xd95306,_0x4f5612),_0x34e6fc=_0x5c0ad5[_0x251ecb(0x3ff)]['addPivotField'];if(!_0x44a764||!_0x10f73c||!_0x34e6fc)return!0x1;const {dataFieldId:_0x1418a3,fieldArea:_0x15983f,index:_0x162fd2}=_0x34e6fc;_0x44a764['startCollectChangeset']();const _0x111a74=_0x44a764[_0x251ecb(0x2e4)](_0x1418a3,_0x15983f,_0x162fd2);if(_0x111a74&&_0x15983f===_0x2c142[_0x251ecb(0x369)][_0x251ecb(0x295)]){const _0x4d4289=_0x111a74[_0x251ecb(0x3f3)](),_0x2747d5=_0x44a764['getDataFieldByTableId'](_0x4d4289);if(_0x2747d5){const _0x20f28e=_0x2747d5==null?void 0x0:_0x2747d5[_0x251ecb(0x36b)]();_0x44a764['setSubtotalType'](_0x111a74['getId'](),_0x20f28e===_0x2c142['PivotDataFieldDataTypeEnum']['number']?_0x2c142[_0x251ecb(0x192)][_0x251ecb(0x1ec)]:_0x2c142['PivotSubtotalTypeEnum'][_0x251ecb(0x23a)]);}const _0x2bd15d=_0x44a764[_0x251ecb(0x407)](),_0x6aecea=_0x44a764[_0x251ecb(0x2a4)](),_0x1ea88c=_0x44a764[_0x251ecb(0x33a)](_0x2c142['PivotTableFiledAreaEnum'][_0x251ecb(0x295)]);if(_0x2bd15d===-0x1&&_0x1ea88c>0x1){const _0xa8822b=_0x6aecea===_0x2c142[_0x251ecb(0x1b8)]['None']?_0x2c142['PivotTableValuePositionEnum']['Column']:_0x6aecea,_0x2c0817=_0xa8822b===_0x2c142[_0x251ecb(0x1b8)]['Row']?_0x2c142[_0x251ecb(0x369)][_0x251ecb(0x276)]:_0x2c142['PivotTableFiledAreaEnum'][_0x251ecb(0x291)];_0x44a764[_0x251ecb(0x2f5)](_0xa8822b,_0x44a764[_0x251ecb(0x33a)](_0x2c0817));}}else{if(_0x111a74&&(_0x15983f===_0x2c142['PivotTableFiledAreaEnum']['Row']||_0x15983f===_0x2c142[_0x251ecb(0x369)][_0x251ecb(0x291)])){const _0x55b38a=_0x111a74[_0x251ecb(0x3f3)](),_0x1f54b5=_0x44a764[_0x251ecb(0x418)](_0x55b38a);if(_0x1f54b5&&(_0x1f54b5==null?void 0x0:_0x1f54b5[_0x251ecb(0x36b)]())===_0x2c142['PivotDataFieldDataTypeEnum'][_0x251ecb(0x217)]){const _0x4162a6=_0x1f54b5[_0x251ecb(0x1fe)]();if(_0x4162a6&&_0x44a764[_0x251ecb(0x146)](_0x111a74[_0x251ecb(0x3f3)](),_0x4162a6),!_0x361390['getFieldIds']()[_0x251ecb(0x25d)](_0x37d2d2=>{const _0x245234=_0x251ecb,_0x58c683=_0x361390[_0x245234(0x247)](_0x37d2d2);return _0x2c142['isDateGroupField'](_0x58c683)?_0x58c683[_0x245234(0x18b)]()['originalFieldId']===_0x1418a3:!0x1;})){const _0x5f370a=_0x19fe85[_0x251ecb(0x169)](),_0x392385=_0x5b170d(_0x1f54b5[_0x251ecb(0x19d)],_0x1f54b5[_0x251ecb(0x3e1)]),_0x3dbc64=_0x1f54b5['getName']()+_0x251ecb(0x36d)+_0x2053fb(this[_0x251ecb(0x150)],_0x392385),_0x17e356=new _0x2c142[(_0x251ecb(0x436))](_0x5f370a,_0x3dbc64,_0x2c142['generateHexNumber'](0x3),_0x1f54b5[_0x251ecb(0x3f3)](),_0x392385);_0x19fe85[_0x251ecb(0x34c)](_0x17e356),_0x361390[_0x251ecb(0x3a0)](_0x5f370a,_0x3dbc64),_0x44a764['addFieldWithSourceId'](_0x5f370a,_0x15983f,(_0x162fd2!=null?_0x162fd2:0x0)+0x1),_0x420620=_0x17e356;}}}}const _0x3e705f=_0x44a764[_0x251ecb(0x1d1)](),_0x49edbf=_0x44a764['query']()[_0x251ecb(0x434)]();let _0x364f7;if(_0x420620){_0x364f7=_0x420620[_0x251ecb(0x434)]();const _0x47c8ac=_0x420620['getId']();_0x361390['deleteField'](_0x47c8ac);let _0x596563=!0x0;for(const _0x233c94 in _0x19fe85[_0x251ecb(0x303)])if(_0x19fe85['collections'][_0x233c94][_0x251ecb(0x2e2)]()[_0x251ecb(0x2b6)](_0x47c8ac)){_0x596563=!0x1;break;}_0x596563&&_0x19fe85[_0x251ecb(0x317)](_0x47c8ac);}const _0x35f374=_0x44a764['endCollectChangeset']();_0x18b50d['addPivotField']={'view':_0x49edbf,'changesets':_0x35f374,'isEmpty':_0x3e705f,'pivotTableConfig':_0x10f73c,'shouldBeAddedGroupJSON':_0x364f7};}break;case _0x309bca['AddPivotTable']:{const _0xdc100d=_0x5c0ad5[_0x251ecb(0x3ff)][_0x251ecb(0x1aa)];if(!_0xdc100d)return;const _0x53b2d6=_0xdc100d[_0x251ecb(0x42d)],_0x48560d=_0xdc100d['pivotTableId'],{collection:_0x27e577}=this[_0x251ecb(0x1ad)][_0x251ecb(0x3c8)]({'unitId':_0x53b2d6['unitId'],'sheetName':_0x53b2d6[_0x251ecb(0x1e1)],'subUnitId':_0x53b2d6[_0x251ecb(0x2fb)],'range':_0x53b2d6[_0x251ecb(0x286)]}),_0x5e2b33=new _0x2c142[(_0x251ecb(0x121))](_0x27e577,void 0x0,_0x48560d),_0x21541b=_0x5e2b33[_0x251ecb(0x288)](),_0x3b098d=_0x5e2b33[_0x251ecb(0x434)](),_0x136ad0=_0x27e577[_0x251ecb(0x434)]();_0x18b50d[_0x251ecb(0x1aa)]={'view':_0x21541b,'fieldsConfig':_0x3b098d,'collectionConfig':_0x136ad0,'isEmpty':_0x5e2b33[_0x251ecb(0x1d1)]()};}break;case _0x309bca[_0x251ecb(0x2e5)]:{const _0x41125d=_0x5c0ad5[_0x251ecb(0x3ff)][_0x251ecb(0x14b)];if(!_0x41125d)return;const {fieldId:_0x46ebeb,area:_0x11aa2c,index:_0x592753}=_0x41125d,_0x10e630=this[_0x251ecb(0x1ad)][_0x251ecb(0x189)](_0x2fb98d,_0xd95306,_0x4f5612);if(!_0x10e630)return;const _0x1e3a32=this[_0x251ecb(0x1ad)][_0x251ecb(0x41f)](_0x4f5612);if(!_0x1e3a32)return;_0x1e3a32[_0x251ecb(0x1f4)]();const {area:_0x5edb26,index:_0x552a3a}=_0x1e3a32[_0x251ecb(0x360)](_0x46ebeb);if(_0x1e3a32[_0x251ecb(0x405)](_0x46ebeb,_0x11aa2c,_0x592753),_0x11aa2c===_0x2c142['PivotTableFiledAreaEnum'][_0x251ecb(0x295)]&&_0x1e3a32[_0x251ecb(0x315)](_0x46ebeb)[_0x251ecb(0x308)]()===void 0x0){const _0x4fcfa9=_0x1e3a32[_0x251ecb(0x315)](_0x46ebeb);if(_0x4fcfa9&&_0x4fcfa9[_0x251ecb(0x308)]()===void 0x0){const _0x3db702=_0x1e3a32['getDataFieldByTableId'](_0x46ebeb);if(_0x3db702){const _0x5ee3b2=_0x3db702==null?void 0x0:_0x3db702[_0x251ecb(0x36b)]();_0x1e3a32[_0x251ecb(0x3b1)](_0x46ebeb,_0x5ee3b2===_0x2c142['PivotDataFieldDataTypeEnum'][_0x251ecb(0x264)]?_0x2c142[_0x251ecb(0x192)][_0x251ecb(0x1ec)]:_0x2c142['PivotSubtotalTypeEnum'][_0x251ecb(0x23a)]);}}}const _0x16406b=_0x1e3a32['getValuePosition'](),_0x45ac43=_0x1e3a32[_0x251ecb(0x407)](),_0x11bd6d=_0x1e3a32[_0x251ecb(0x33a)](_0x2c142[_0x251ecb(0x369)]['Value'])>0x1;if(_0x11bd6d&&_0x5edb26===_0x11aa2c&&(_0x11aa2c===_0x2c142[_0x251ecb(0x369)]['Row']&&_0x16406b===_0x2c142[_0x251ecb(0x1b8)][_0x251ecb(0x276)]||_0x11aa2c===_0x2c142[_0x251ecb(0x369)][_0x251ecb(0x291)]&&_0x16406b===_0x2c142['PivotTableValuePositionEnum'][_0x251ecb(0x291)])){let _0x45e394=_0x45ac43;_0x552a3a<=_0x45ac43&&_0x45e394--,_0x592753<=_0x45ac43&&_0x45e394++,_0x1e3a32[_0x251ecb(0x2f5)](_0x16406b,_0x45e394);}else _0x11bd6d&&(_0x5edb26===_0x2c142[_0x251ecb(0x369)]['Row']&&_0x16406b===_0x2c142[_0x251ecb(0x1b8)]['Row']||_0x5edb26===_0x2c142[_0x251ecb(0x369)][_0x251ecb(0x291)]&&_0x16406b===_0x2c142['PivotTableValuePositionEnum']['Column'])&&_0x45ac43>=_0x552a3a&&_0x1e3a32['updateValuePosition'](_0x16406b,_0x45ac43-0x1),_0x11bd6d&&(_0x11aa2c===_0x2c142['PivotTableFiledAreaEnum'][_0x251ecb(0x276)]&&_0x16406b===_0x2c142[_0x251ecb(0x1b8)]['Row']||_0x11aa2c===_0x2c142['PivotTableFiledAreaEnum'][_0x251ecb(0x291)]&&_0x16406b===_0x2c142['PivotTableValuePositionEnum']['Column'])&&_0x45ac43>=_0x592753&&_0x1e3a32[_0x251ecb(0x2f5)](_0x16406b,_0x45ac43+0x1);const _0x15dfe4=_0x1e3a32[_0x251ecb(0x288)](),_0x5949a7=_0x1e3a32['isEmpty'](),_0x3c8511=_0x1e3a32['endCollectChangeset']();_0x18b50d[_0x251ecb(0x14b)]={'view':_0x15dfe4[_0x251ecb(0x434)](),'changesets':_0x3c8511,'isEmpty':_0x5949a7,'pivotTableConfig':_0x10e630};}break;case _0x309bca['RemovePivotField']:{const _0x876e40=_0x5c0ad5[_0x251ecb(0x3ff)][_0x251ecb(0x368)];if(!_0x876e40)return;const _0x35a005=_0x876e40[_0x251ecb(0x1e5)],_0x590b26=this[_0x251ecb(0x1ad)][_0x251ecb(0x189)](_0x2fb98d,_0xd95306,_0x4f5612);if(!_0x590b26)return!0x1;const _0x827b09=this['_sheetsPivotDataSourceModel'][_0x251ecb(0x41f)](_0x4f5612);if(!_0x827b09)return!0x1;_0x827b09[_0x251ecb(0x1f4)]();for(const _0x454f12 of _0x35a005){const {area:_0x3c1153}=_0x827b09[_0x251ecb(0x360)](_0x454f12);_0x3c1153===_0x2c142[_0x251ecb(0x369)][_0x251ecb(0x295)]&&_0x827b09['removeValueFilterInfoByValueFieldId'](_0x454f12),(_0x3c1153===_0x2c142[_0x251ecb(0x369)][_0x251ecb(0x276)]||_0x3c1153===_0x2c142[_0x251ecb(0x369)][_0x251ecb(0x291)])&&_0x827b09[_0x251ecb(0x296)](_0x454f12),_0x827b09['removeField'](_0x454f12);}const _0x1618f7=_0x827b09['isEmpty'](),_0x47e6d4=_0x827b09[_0x251ecb(0x288)]()[_0x251ecb(0x434)](),_0x4c23fe=_0x827b09['endCollectChangeset']();_0x18b50d['removePivotField']={'changesets':_0x4c23fe,'pivotTableConfig':_0x590b26,'isEmpty':_0x1618f7,'view':_0x47e6d4};}break;case _0x309bca['SetPivotFilter']:{const _0x344981=_0x5c0ad5[_0x251ecb(0x3ff)][_0x251ecb(0x411)];if(!_0x344981)return;const {tableFieldId:_0x458812,items:_0x106124,isAll:_0x496cb6}=_0x344981,_0x459d48=this[_0x251ecb(0x1ad)]['getPivotTableInstance'](_0x4f5612),_0x588fb0=this[_0x251ecb(0x1ad)][_0x251ecb(0x189)](_0x2fb98d,_0xd95306,_0x4f5612);if(!_0x459d48||!_0x588fb0)return;_0x459d48[_0x251ecb(0x1f4)](),_0x459d48[_0x251ecb(0x1a9)](_0x458812,{'type':_0x2c142[_0x251ecb(0x3ea)]['ManualFilter'],'list':_0x106124,'isAll':_0x496cb6});const _0x563f3c=_0x459d48['isEmpty'](),_0x492edc=_0x459d48[_0x251ecb(0x288)]()[_0x251ecb(0x434)](),_0x1a8fc4=_0x459d48[_0x251ecb(0x410)]();_0x18b50d[_0x251ecb(0x411)]={'view':_0x492edc,'changesets':_0x1a8fc4,'isEmpty':_0x563f3c,'pivotTableConfig':_0x588fb0};}break;case _0x309bca[_0x251ecb(0x12e)]:{const _0x433ebe=_0x5c0ad5[_0x251ecb(0x3ff)][_0x251ecb(0x367)];if(!_0x433ebe)return;const {tableFieldId:_0x13cfaa,filterInfo:_0x4bd85d}=_0x433ebe,_0x21aaec=this[_0x251ecb(0x1ad)][_0x251ecb(0x41f)](_0x4f5612),_0x523022=this['_sheetsPivotDataSourceModel'][_0x251ecb(0x189)](_0x2fb98d,_0xd95306,_0x4f5612);if(!_0x21aaec||!_0x523022)return;_0x21aaec['startCollectChangeset'](),_0x21aaec[_0x251ecb(0x3d2)](_0x13cfaa,_0x4bd85d);const _0x133134=_0x21aaec[_0x251ecb(0x1d1)](),_0x23ff18=_0x21aaec[_0x251ecb(0x288)]()[_0x251ecb(0x434)](),_0x119fa9=_0x21aaec[_0x251ecb(0x410)]();_0x18b50d[_0x251ecb(0x367)]={'view':_0x23ff18,'changesets':_0x119fa9,'isEmpty':_0x133134,'pivotTableConfig':_0x523022};}break;case _0x309bca[_0x251ecb(0x173)]:{const _0x37b444=_0x5c0ad5['params'][_0x251ecb(0x3f8)];if(!_0x37b444)return;const {tableFieldId:_0x857441,info:_0x551cea}=_0x37b444,_0x26100e=this[_0x251ecb(0x1ad)][_0x251ecb(0x41f)](_0x4f5612),_0xe387e6=this[_0x251ecb(0x1ad)]['getPivotTableConfig'](_0x2fb98d,_0xd95306,_0x4f5612);if(!_0x26100e||!_0xe387e6)return;_0x26100e[_0x251ecb(0x1f4)](),_0x26100e[_0x251ecb(0x2c4)](_0x857441,_0x551cea);const _0x3ff4d2=_0x26100e['isEmpty'](),_0x293bd3=_0x26100e[_0x251ecb(0x288)]()[_0x251ecb(0x434)](),_0x271a31=_0x26100e['endCollectChangeset']();_0x18b50d[_0x251ecb(0x3f8)]={'view':_0x293bd3,'changesets':_0x271a31,'isEmpty':_0x3ff4d2,'pivotTableConfig':_0xe387e6};}break;case _0x309bca[_0x251ecb(0x17a)]:{const _0x788c28=_0x5c0ad5[_0x251ecb(0x3ff)][_0x251ecb(0x149)];if(!_0x788c28)return;const {tableFieldId:_0x48abb2,displayName:_0x4dd139,subtotalType:_0x5a1d5b,format:_0x3e4e0a}=_0x788c28,_0x44749f=this['_sheetsPivotDataSourceModel'][_0x251ecb(0x41f)](_0x4f5612),_0x2d3b79=this[_0x251ecb(0x1ad)][_0x251ecb(0x189)](_0x2fb98d,_0xd95306,_0x4f5612);if(!_0x44749f||!_0x2d3b79)return;_0x44749f[_0x251ecb(0x1f4)](),_0x4dd139!==void 0x0&&_0x44749f[_0x251ecb(0x2e3)](_0x48abb2,_0x4dd139),_0x5a1d5b!==void 0x0&&_0x44749f[_0x251ecb(0x3b1)](_0x48abb2,_0x5a1d5b),_0x3e4e0a!==void 0x0&&_0x44749f[_0x251ecb(0x146)](_0x48abb2,_0x3e4e0a);const _0xfcb268=_0x44749f[_0x251ecb(0x1d1)](),_0xf4ff56=_0x44749f['query']()[_0x251ecb(0x434)](),_0x4f974d=_0x44749f['endCollectChangeset']();_0x18b50d[_0x251ecb(0x149)]={'changesets':_0x4f974d,'pivotTableConfig':_0x2d3b79,'isEmpty':_0xfcb268,'view':_0xf4ff56};}break;case _0x309bca[_0x251ecb(0x2ed)]:{const _0xd08e13=_0x5c0ad5[_0x251ecb(0x3ff)]['updatePivotSource'];if(!_0xd08e13)return;const {dataRangeInfo:_0x57080b,unitId:_0x3b7329,subUnitId:_0x5d54bc}=_0xd08e13,_0x5aad9a=this[_0x251ecb(0x1ad)][_0x251ecb(0x189)](_0x3b7329,_0x5d54bc,_0x4f5612),_0x9b5855=this['_sheetsPivotDataSourceModel'][_0x251ecb(0x41f)](_0x4f5612);if(!this['_sheetsPivotDataSourceModel'][_0x251ecb(0x267)](_0x3b7329,_0x4f5612)||!_0x9b5855||!_0x5aad9a)return;const _0x44176c=this[_0x251ecb(0x1ad)][_0x251ecb(0x3d1)](_0x3b7329,_0x4f5612,_0x57080b),_0x24191f=this[_0x251ecb(0x1ad)][_0x251ecb(0x267)](_0x3b7329,_0x4f5612)[_0x251ecb(0x434)](),{collection:_0x1a5f16}=this[_0x251ecb(0x1ad)]['createCollectionWithDataRange']({'unitId':_0x57080b[_0x251ecb(0x341)],'sheetName':_0x57080b[_0x251ecb(0x1e1)],'subUnitId':_0x57080b[_0x251ecb(0x2fb)],'range':_0x57080b[_0x251ecb(0x286)]}),_0x175e61=_0x1a5f16['toJSON']();_0x9b5855[_0x251ecb(0x1f4)]();const _0x2ab373=this['_sheetsPivotDataSourceModel'][_0x251ecb(0x2c3)](_0x3b7329)[_0x251ecb(0x3b3)]()||_0x2c142[_0x251ecb(0x188)];_0x9b5855[_0x251ecb(0x18d)](_0x57f14f=>{const _0x17f47a=_0x251ecb,_0x4b3606=_0x57f14f[_0x17f47a(0x1a3)]();if(!_0x1a5f16[_0x17f47a(0x244)](_0x4b3606)){const _0x584d9b=_0x1a5f16['getDataFieldBySourceName'](_0x57f14f[_0x17f47a(0x28e)]());if(_0x584d9b){_0x9b5855[_0x17f47a(0x435)](_0x57f14f[_0x17f47a(0x3f3)](),_0x584d9b[_0x17f47a(0x2a1)](),_0x584d9b[_0x17f47a(0x3f3)]());const {area:_0xe0d8ee}=_0x9b5855['getFieldPositionInfoById'](_0x57f14f[_0x17f47a(0x3f3)]());let _0x4e23db=_0x57f14f[_0x17f47a(0x28e)]();const _0x560b80=_0x57f14f[_0x17f47a(0x1e9)]();if(_0xe0d8ee===_0x2c142[_0x17f47a(0x369)]['Value']){const _0x5e9783=_0x57f14f[_0x17f47a(0x308)]();_0x4e23db=_0x2ab373(_0x584d9b[_0x17f47a(0x2a1)](),_0x5e9783);}_0x560b80!==_0x4e23db&&_0x9b5855[_0x17f47a(0x2e3)](_0x57f14f['getId'](),_0x4e23db);}else _0x9b5855[_0x17f47a(0x400)](_0x57f14f[_0x17f47a(0x3f3)]());}});const _0x5951ea=_0x9b5855[_0x251ecb(0x1d1)](),_0x1a83e7=_0x9b5855[_0x251ecb(0x288)]()['toJSON'](),_0x22799c=_0x9b5855[_0x251ecb(0x410)]();_0x18b50d[_0x251ecb(0x1d9)]={'view':_0x1a83e7,'changesets':_0x22799c,'isEmpty':_0x5951ea,'pivotTableConfig':_0x5aad9a,'collectionConfig':_0x175e61,'oldCollectionConfig':_0x24191f,'deleteIds':_0x44176c};}break;case _0x309bca[_0x251ecb(0x37d)]:{const _0x4b490b=_0x5c0ad5[_0x251ecb(0x3ff)][_0x251ecb(0x2f5)];if(!_0x4b490b)return;const {position:_0x5d2a06,index:_0x18e2dc}=_0x4b490b,_0x31e105=this[_0x251ecb(0x1ad)][_0x251ecb(0x189)](_0x2fb98d,_0xd95306,_0x4f5612);if(!_0x31e105)return!0x1;const _0x3e659f=this[_0x251ecb(0x1ad)]['getPivotTableInstance'](_0x4f5612);if(!_0x3e659f)return!0x1;_0x3e659f['startCollectChangeset'](),_0x3e659f[_0x251ecb(0x2f5)](_0x5d2a06,_0x18e2dc);const _0x18da04=_0x3e659f[_0x251ecb(0x1d1)](),_0x504d8a=_0x3e659f['query']()[_0x251ecb(0x434)](),_0x2754ae=_0x3e659f[_0x251ecb(0x410)]();_0x18b50d['updateValuePosition']={'changesets':_0x2754ae,'pivotTableConfig':_0x31e105,'isEmpty':_0x18da04,'view':_0x504d8a};}break;case _0x309bca[_0x251ecb(0x32c)]:{const _0x49143f=_0x5c0ad5[_0x251ecb(0x3ff)]['setPivotCollapse'];if(!_0x49143f)return;const {tableFieldId:_0x146060,collapse:_0x258dd7,item:_0x4e51cf}=_0x49143f,_0x1714de=this[_0x251ecb(0x1ad)][_0x251ecb(0x41f)](_0x4f5612),_0x42e028=this[_0x251ecb(0x1ad)]['getPivotTableConfig'](_0x2fb98d,_0xd95306,_0x4f5612);if(!_0x1714de||!_0x42e028)return;_0x1714de[_0x251ecb(0x1f4)](),_0x1714de[_0x251ecb(0x218)](_0x146060,_0x258dd7,_0x4e51cf);const _0x18f22b=_0x1714de[_0x251ecb(0x1d1)](),_0x2dc8c6=_0x1714de[_0x251ecb(0x288)]()[_0x251ecb(0x434)](),_0x4f1451=_0x1714de['endCollectChangeset']();_0x18b50d[_0x251ecb(0x140)]={'view':_0x2dc8c6,'isEmpty':_0x18f22b,'pivotTableConfig':_0x42e028,'changesets':_0x4f1451};}break;case _0x309bca[_0x251ecb(0x20a)]:{const _0x572c21=_0x5c0ad5[_0x251ecb(0x3ff)][_0x251ecb(0x1f1)];if(!_0x572c21)return;const {pivotTableConfig:_0xf54c68}=_0x572c21,_0xedb13b=this['_sheetsPivotDataSourceModel'][_0x251ecb(0x41f)](_0x4f5612),_0x17679e=this[_0x251ecb(0x1ad)][_0x251ecb(0x189)](_0x2fb98d,_0xd95306,_0x4f5612);if(!_0xedb13b||!_0x17679e)return;_0xedb13b[_0x251ecb(0x1f4)](),_0x5a5bd0(_0xedb13b,_0xf54c68);const _0x28adb4=_0xedb13b[_0x251ecb(0x1d1)](),_0x545f9c=_0xedb13b[_0x251ecb(0x288)]()['toJSON'](),_0x1f7413=_0xedb13b[_0x251ecb(0x410)]();_0x18b50d[_0x251ecb(0x1f1)]={'view':_0x545f9c,'isEmpty':_0x28adb4,'pivotTableConfig':{..._0x17679e,'fieldsConfig':_0xedb13b[_0x251ecb(0x434)]()},'changesets':_0x1f7413};}break;case _0x309bca[_0x251ecb(0x1ce)]:{const _0x56c725=_0x5c0ad5[_0x251ecb(0x3ff)]['resetPivotTable'];if(!_0x56c725)return;const _0x46cbdf=this[_0x251ecb(0x1ad)][_0x251ecb(0x41f)](_0x4f5612),_0x58565b=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x2fb98d,_0xd95306,_0x4f5612);if(!_0x46cbdf||!_0x58565b)return;_0x46cbdf[_0x251ecb(0x1f4)](),_0x57b3a3(_0x46cbdf,_0x56c725[_0x251ecb(0x1bf)]);const _0x55ac38=_0x46cbdf['query']()[_0x251ecb(0x434)](),_0x283bf3=_0x46cbdf[_0x251ecb(0x410)]();_0x18b50d[_0x251ecb(0x2fe)]={'view':_0x55ac38,'isEmpty':!0x0,'pivotTableConfig':{..._0x58565b,'fieldsConfig':_0x46cbdf[_0x251ecb(0x434)]()},'changesets':_0x283bf3};}break;case _0x309bca[_0x251ecb(0x416)]:{const _0x149d6a=_0x5c0ad5[_0x251ecb(0x3ff)]['addPivotTableWithConfig'];if(!_0x149d6a)return;const _0x3c46d2=_0x149d6a[_0x251ecb(0x42d)],_0x40d917=_0x149d6a[_0x251ecb(0x25e)],{collection:_0x318ad9}=this[_0x251ecb(0x1ad)][_0x251ecb(0x3c8)]({'unitId':_0x3c46d2[_0x251ecb(0x341)],'sheetName':_0x3c46d2[_0x251ecb(0x1e1)],'subUnitId':_0x3c46d2[_0x251ecb(0x2fb)],'range':_0x3c46d2[_0x251ecb(0x286)]}),_0x30c8dd=new _0x2c142['PivotTable'](_0x318ad9,void 0x0,_0x40d917),_0x8305e5=_0x318ad9[_0x251ecb(0x2e2)](),{rows:_0x2cf3ba,columns:_0x117602,filters:_0x4ba918,values:_0x390c5d}=_0x149d6a[_0x251ecb(0x158)];_0x30c8dd['startCollectChangeset']();for(const {field:_0x3c3628,selectedItems:_0xa8d368}of _0x2cf3ba||[]){const _0x284ebd=_0x8305e5[_0x3c3628];if(_0x284ebd){const _0x2968ba=_0x30c8dd[_0x251ecb(0x2e4)](_0x284ebd,_0x2c142['PivotTableFiledAreaEnum'][_0x251ecb(0x276)]);_0xa8d368&&_0x2968ba&&_0x30c8dd[_0x251ecb(0x1a9)](_0x2968ba['getId'](),{'type':_0x2c142[_0x251ecb(0x3ea)][_0x251ecb(0x1a4)],'list':_0xa8d368,'isAll':!0x1});}}for(const {field:_0x21ec72,selectedItems:_0x4984de}of _0x117602||[]){const _0x3000f6=_0x8305e5[_0x21ec72];if(_0x3000f6){const _0x419401=_0x30c8dd['addFieldWithSourceId'](_0x3000f6,_0x2c142[_0x251ecb(0x369)]['Column']);_0x4984de&&_0x419401&&_0x30c8dd['setLabelFilterInfo'](_0x419401[_0x251ecb(0x3f3)](),{'type':_0x2c142[_0x251ecb(0x3ea)][_0x251ecb(0x1a4)],'list':_0x4984de,'isAll':!0x1});}}for(const {field:_0x4e53c4,selectedItems:_0xb815c3}of _0x4ba918||[]){const _0x5808ec=_0x8305e5[_0x4e53c4];if(_0x5808ec){const _0x3d05ea=_0x30c8dd[_0x251ecb(0x2e4)](_0x5808ec,_0x2c142['PivotTableFiledAreaEnum'][_0x251ecb(0x364)]);_0xb815c3&&_0x3d05ea&&_0x30c8dd[_0x251ecb(0x1a9)](_0x3d05ea[_0x251ecb(0x3f3)](),{'type':_0x2c142['PivotFilterTypeEnum'][_0x251ecb(0x1a4)],'list':_0xb815c3,'isAll':!0x1});}}for(const {field:_0x111d6d,subTotalType:_0x2d941e,formatString:_0x363a06}of _0x390c5d||[]){const _0x5c4ccb=_0x318ad9[_0x251ecb(0x247)](_0x8305e5[_0x111d6d]);if(!_0x5c4ccb)continue;const _0x4c39c0=_0x8305e5[_0x111d6d];if(_0x4c39c0){const _0x57538e=_0x30c8dd[_0x251ecb(0x2e4)](_0x4c39c0,_0x2c142[_0x251ecb(0x369)]['Value']);if(_0x57538e){if(_0x2d941e!==void 0x0){_0x30c8dd[_0x251ecb(0x3b1)](_0x57538e[_0x251ecb(0x3f3)](),_0x2d941e);const _0x156e19=this[_0x251ecb(0x1ad)][_0x251ecb(0x2c3)](_0x3c46d2[_0x251ecb(0x341)])['getAutoDisplayNameFunction']()||_0x2c142['getAutoDisplayName'],_0x3d6e0c=_0x318ad9[_0x251ecb(0x1e9)](_0x4c39c0),_0x23cd3f=_0x156e19(_0x3d6e0c,_0x2d941e);_0x30c8dd['renameField'](_0x57538e['getId'](),_0x23cd3f);}else{if(_0x5c4ccb){const _0x4947fd=_0x5c4ccb==null?void 0x0:_0x5c4ccb['getFieldDataType']();_0x30c8dd[_0x251ecb(0x3b1)](_0x57538e[_0x251ecb(0x3f3)](),_0x4947fd===_0x2c142[_0x251ecb(0x42b)][_0x251ecb(0x264)]?_0x2c142[_0x251ecb(0x192)][_0x251ecb(0x1ec)]:_0x2c142[_0x251ecb(0x192)][_0x251ecb(0x23a)]);}}_0x363a06&&_0x30c8dd[_0x251ecb(0x146)](_0x57538e[_0x251ecb(0x3f3)](),_0x363a06);}}}const _0x4dc636=_0x30c8dd[_0x251ecb(0x288)](),_0x103417=_0x30c8dd[_0x251ecb(0x434)](),_0x104937=_0x30c8dd[_0x251ecb(0x1d1)](),_0x2a8c3a=_0x30c8dd[_0x251ecb(0x410)](),_0x5ef12c=_0x318ad9[_0x251ecb(0x434)]();_0x18b50d[_0x251ecb(0x359)]={'view':_0x4dc636,'fieldsConfig':_0x103417,'collectionConfig':_0x5ef12c,'isEmpty':_0x104937,'changesets':_0x2a8c3a};}break;case _0x309bca['DrillDown']:{const _0xdced9=_0x10068a(this[_0x251ecb(0x150)],_0x5c0ad5);if(!_0xdced9)return;const {range:_0x2f023a,sourceSubUnitId:_0x5eb98b,sourceUnitId:_0x33161a,formatMap:_0x3ffea4,indexes:_0x3c5dd5}=_0xdced9;_0x18b50d[_0x251ecb(0x246)]={'range':_0x2f023a,'sourceSubUnitId':_0x5eb98b,'sourceUnitId':_0x33161a,'formatMap':_0x3ffea4,'indexes':_0x3c5dd5};}break;}this[_0x251ecb(0x394)][_0x251ecb(0x168)](_0x315e2a['id'],{'version':_0x5c0ad5[_0x251ecb(0x3ce)],'result':_0x18b50d},{'onlyLocal':!0x0});}));}[_0x269f30(0x337)](){const _0x25df43=_0x269f30;this[_0x25df43(0x409)](this[_0x25df43(0x394)][_0x25df43(0x204)](_0x27e90f=>{const _0x52f3c6=_0x25df43;if(_0x27e90f['id']!==_0x397dda['id'])return;const _0x170703=_0x27e90f[_0x52f3c6(0x3ff)];return this[_0x52f3c6(0x1ad)]['setTextInfo'](_0x170703[_0x52f3c6(0x392)]),!0x0;}));}[_0x269f30(0x24e)](){const _0x1a9140=_0x269f30;this[_0x1a9140(0x1ad)]['collectionChange$'][_0x1a9140(0x256)](_0x55d639=>{const _0x15af1b=_0x1a9140;switch(_0x55d639[_0x15af1b(0x389)]){case _0x23380f['add']:_0x55d639[_0x15af1b(0x32d)]&&_0x55d639[_0x15af1b(0x1e6)]&&this[_0x15af1b(0x430)](_0x55d639['token'],_0x55d639['dataRangeInfo'],_0x55d639[_0x15af1b(0x1e6)]);break;case _0x23380f[_0x15af1b(0x3bd)]:{const {unitId:_0x1f1510,subUnitId:_0x197492,token:_0x6a560}=_0x55d639;_0x1f1510&&_0x197492&&_0x6a560&&this[_0x15af1b(0x40a)](_0x1f1510,_0x197492,_0x6a560);}break;case _0x23380f[_0x15af1b(0x299)]:{const {token:_0x36b797,oldSourceRangeInfo:_0x27ebd7,dataRangeInfo:_0x1497e8,targetCellInfo:_0x5efb41}=_0x55d639,{unitId:_0x52a6e9,subUnitId:_0x2a3428}=_0x27ebd7||{};_0x52a6e9&&_0x2a3428&&_0x36b797&&this[_0x15af1b(0x40a)](_0x52a6e9,_0x2a3428,_0x36b797),_0x1497e8&&_0x5efb41&&this['handleSourceRangeChange'](_0x36b797,_0x1497e8,_0x5efb41);}break;}});}[_0x269f30(0x1e2)](){const _0x5963ff=_0x269f30;this[_0x5963ff(0x1ad)][_0x5963ff(0x134)][_0x5963ff(0x256)](_0x1dda5c=>{const _0x353d78=_0x5963ff;Object[_0x353d78(0x243)](_0x1dda5c)['forEach'](_0x57e4ee=>{const _0x12838f=_0x353d78,_0x39d7a2=this[_0x12838f(0x1ad)][_0x12838f(0x126)](_0x57e4ee);if(_0x39d7a2){const _0x522e0b=this['_sheetsPivotDataSourceModel'][_0x12838f(0x189)](_0x39d7a2==null?void 0x0:_0x39d7a2['unitId'],_0x39d7a2==null?void 0x0:_0x39d7a2[_0x12838f(0x2fb)],_0x57e4ee);_0x522e0b&&(this[_0x12838f(0x430)](_0x57e4ee,_0x522e0b[_0x12838f(0x42d)],_0x522e0b['targetCellInfo']),this[_0x12838f(0x15f)]([{'unitId':_0x39d7a2[_0x12838f(0x341)],'subUnitId':_0x39d7a2[_0x12838f(0x2fb)],'token':_0x57e4ee}]));}});});}[_0x269f30(0x255)](){const _0x360421=_0x269f30;this[_0x360421(0x1ad)][_0x360421(0x196)][_0x360421(0x256)](_0x4fe3a3=>{const _0x36234b=_0x360421,{unitId:_0x5426a3,subUnitId:_0x142263,pivotTableId:_0x2d1436}=_0x4fe3a3;_0x5426a3&&_0x142263&&_0x2d1436&&this[_0x36234b(0x15f)]([{'unitId':_0x5426a3,'subUnitId':_0x142263,'token':_0x2d1436}]);});}[_0x269f30(0x15f)](_0x35cea7){const _0x1a5f59=_0x269f30,_0x8d09e8={};_0x35cea7[_0x1a5f59(0x2cd)](_0x55d5ff=>{var _0x53a387,_0x556894;const {unitId:_0x5633ce,subUnitId:_0x4f243b,token:_0x238384}=_0x55d5ff;_0x8d09e8[_0x5633ce]=(_0x53a387=_0x8d09e8[_0x5633ce])!=null?_0x53a387:{},_0x8d09e8[_0x5633ce][_0x4f243b]=(_0x556894=_0x8d09e8[_0x5633ce][_0x4f243b])!=null?_0x556894:{},_0x8d09e8[_0x5633ce][_0x4f243b][_0x238384]=!0x0;}),this['_commandService'][_0x1a5f59(0x168)](_0x28cee8['id'],_0x8d09e8);}[_0x269f30(0x40a)](_0x421600,_0x2ad199,_0x557f7b){const _0x535a2f=_0x269f30;this[_0x535a2f(0x40d)][_0x535a2f(0x402)](_0x421600,_0x2ad199,[_0x557f7b]);}[_0x269f30(0x430)](_0x448ff9,_0x172569,_0x12d7d5){const _0x33a0ea=_0x269f30,{unitId:_0x5603c1,subUnitId:_0x5d490e}=_0x172569;this[_0x33a0ea(0x40d)][_0x33a0ea(0x224)](_0x12d7d5[_0x33a0ea(0x341)],_0x12d7d5['subUnitId'],_0x448ff9)&&this[_0x33a0ea(0x40a)](_0x5603c1,_0x5d490e,_0x448ff9);const _0x38cde4={'sheetId':_0x5d490e,..._0x172569};this[_0x33a0ea(0x40d)][_0x33a0ea(0x391)](_0x12d7d5[_0x33a0ea(0x341)],_0x12d7d5[_0x33a0ea(0x2fb)],_0x448ff9,{'unitId':_0x12d7d5[_0x33a0ea(0x341)],'subUnitId':_0x12d7d5[_0x33a0ea(0x2fb)],'dependencyRanges':[_0x38cde4],'getDirtyData':(_0x44c663,_0xe9ea11)=>{const _0x23021b=_0x33a0ea,_0x1888ec=this[_0x23021b(0x1ad)],_0x42babf=_0x1888ec[_0x23021b(0x126)](_0x448ff9);if(!_0x42babf)return _0x5bfe0e();const {unitId:_0x527183,subUnitId:_0x2a4fa3}=_0x42babf,_0x1df558=_0xec4770(_0x44c663,_0xe9ea11,_0x172569);if(_0x1df558[_0x23021b(0x1ed)]>0x0){const _0x42937d=_0x1888ec[_0x23021b(0x267)](_0x5603c1,_0x448ff9),_0x58d5c3=_0x42937d[_0x23021b(0x2e2)](),_0x40600f=this[_0x23021b(0x3a2)](_0x172569[_0x23021b(0x341)],_0x172569[_0x23021b(0x2fb)],_0xe9ea11),_0x3802b5={},_0x19c761=this[_0x23021b(0x1ad)][_0x23021b(0x2c3)](_0x527183)['getAutoDisplayNameFunction']()||_0x2c142[_0x23021b(0x188)],_0x4ca16f=[];for(const _0x5b73e0 of _0x1df558){const _0x9ff946=_0x5b73e0-(_0x172569[_0x23021b(0x286)][_0x23021b(0x152)]||0x0),_0xc934cb=_0x58d5c3[_0x9ff946];_0x4ca16f[_0x23021b(0x3fe)](_0xc934cb),_0x3802b5[_0xc934cb]=_0x42937d[_0x23021b(0x247)](_0xc934cb)[_0x23021b(0x2a1)](),_0x1888ec['getDataFieldManager'](_0x5603c1)[_0x23021b(0x21f)](_0xc934cb,_0x172569,_0x9ff946,_0x40600f);}_0x42937d[_0x23021b(0x241)](_0x4ca16f)[_0x23021b(0x2cd)](_0x274817=>{const _0x47cbe6=_0x23021b,[_0x12d745,_0x5480ac]=_0x274817,_0x139c38=_0x42937d[_0x47cbe6(0x247)](_0x12d745),_0x14883e=_0x42937d[_0x47cbe6(0x247)](_0x5480ac);_0x139c38&&_0x14883e&&_0x139c38['refreshGroupField'](_0x14883e);}),_0x42937d[_0x23021b(0x171)]();const _0x47d1d5=_0x1888ec[_0x23021b(0x41f)](_0x448ff9);if(_0x47d1d5){_0x38cdc8(_0x47d1d5,_0x3802b5,_0x19c761),_0x47d1d5[_0x23021b(0x142)](!0x0);const _0x54b0c9=_0x47d1d5['query'](),_0x4e8fe7=_0x1888ec[_0x23021b(0x189)](_0x527183,_0x2a4fa3,_0x448ff9),_0x80aa3f=_0x1888ec[_0x23021b(0x2c3)](_0x5603c1)[_0x23021b(0x434)]();_0x1888ec[_0x23021b(0x31f)](_0x527183,_0x2a4fa3,_0x12d3c2[_0x23021b(0x310)],_0x448ff9,_0x54b0c9,_0x4e8fe7,_0x80aa3f,!0x0);}}return this[_0x23021b(0x29f)](_0x527183,_0x2a4fa3,_0x448ff9);}});}[_0x269f30(0x3a2)](_0x56f353,_0x4e3ddf,_0x17e2d5){var _0x4bce70,_0x4d04e8;const {arrayFormulaCellData:_0x5d2464,unitData:_0x435447}=_0x17e2d5,_0x3bd34b=(_0x4bce70=_0x5d2464==null?void 0x0:_0x5d2464[_0x56f353])==null?void 0x0:_0x4bce70[_0x4e3ddf],_0x5d2898=(_0x4d04e8=_0x435447==null?void 0x0:_0x435447[_0x56f353])==null?void 0x0:_0x4d04e8[_0x4e3ddf];return{'arrayFormulaCellDataMatrix':_0x3bd34b,'unitDataMatrix':_0x5d2898};}[_0x269f30(0x29f)](_0x555fdd,_0x56fd5a,_0x74f9a0){const _0x437d63=_0x269f30,_0x205913=this['_sheetsPivotDataSourceModel'][_0x437d63(0x1ae)](_0x555fdd,_0x56fd5a,_0x74f9a0),_0x5c3f92=[],_0x2bd014=new _0x194133[(_0x437d63(0x1c4))]();if(_0x205913){const {rangeCache:_0x9ab630,matrix:_0x1d7123,oldRangeCache:_0x4e2fcb,oldMatrix:_0x2795d9}=_0x205913,_0x279915=_0x243b5e(_0x4e2fcb),_0x58872d=_0x243b5e(_0x9ab630);_0x5c3f92['push'](..._0x58872d,..._0x279915),_0x2795d9&&_0x4e2fcb&&_0x279915[_0x437d63(0x2cd)](_0x54eaaa=>{const _0xd02e3d=_0x437d63;for(let _0x2eb692=_0x54eaaa['startRow'];_0x2eb692<=_0x54eaaa['endRow'];_0x2eb692++)for(let _0x156042=_0x54eaaa[_0xd02e3d(0x152)];_0x156042<=_0x54eaaa[_0xd02e3d(0x12c)];_0x156042++)_0x2bd014[_0xd02e3d(0x193)](_0x2eb692,_0x156042);}),_0x1d7123&&_0x58872d&&_0x58872d['forEach'](_0x1528e5=>{const _0x2f2151=_0x437d63;for(let _0xbb6920=_0x1528e5[_0x2f2151(0x159)];_0xbb6920<=_0x1528e5[_0x2f2151(0x2a5)];_0xbb6920++)for(let _0xae9da4=_0x1528e5[_0x2f2151(0x152)];_0xae9da4<=_0x1528e5['endColumn'];_0xae9da4++)_0x2bd014[_0x2f2151(0x26e)](_0xbb6920,_0xae9da4,_0x1d7123['getValue'](_0xbb6920,_0xae9da4));});}const _0xcf4ed7={};return _0xcf4ed7[_0x555fdd]={[_0x56fd5a]:_0x3c96a7(_0x5c3f92)},{'runtimeCellData':{[_0x555fdd]:{[_0x56fd5a]:_0x2bd014}},'dirtyRanges':_0xcf4ed7};}['dispose'](){}};_0xe836b9=_0x3540d4([_0x22a664(0x0,_0x194133['Inject'](_0x1aec1a[_0x269f30(0x12b)])),_0x22a664(0x1,_0x194133[_0x269f30(0x26b)](_0x32f36e['IFeatureCalculationManagerService'])),_0x22a664(0x2,_0x194133[_0x269f30(0x26b)](_0x194133['ICommandService'])),_0x22a664(0x3,_0x194133['Inject'](_0x32f36e[_0x269f30(0x327)])),_0x22a664(0x4,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x24c)]))],_0xe836b9);var _0x362a16=Object[_0x269f30(0x1a6)],_0x31976b=(_0x26a339,_0x5b6e21,_0x5804b9,_0x135acd)=>{const _0x185e9f=_0x269f30;for(var _0x1a6320=_0x135acd>0x1?void 0x0:_0x135acd?_0x362a16(_0x5b6e21,_0x5804b9):_0x5b6e21,_0x22a112=_0x26a339[_0x185e9f(0x1ed)]-0x1,_0x2810b7;_0x22a112>=0x0;_0x22a112--)(_0x2810b7=_0x26a339[_0x22a112])&&(_0x1a6320=_0x2810b7(_0x1a6320)||_0x1a6320);return _0x1a6320;},_0x49ea99=(_0xf8ed61,_0x277140)=>(_0x5025c3,_0x680f8f)=>_0x277140(_0x5025c3,_0x680f8f,_0xf8ed61);let _0x22f28b=class extends _0x194133[_0x269f30(0x2a8)]{constructor(_0x29e877,_0x4b1611,_0x4b78fa,_0x475571){const _0x4c58bd=_0x269f30;super(),_0x327454(this,'disposableCollection',new _0x194133[(_0x4c58bd(0x35f))]()),(this[_0x4c58bd(0x1de)]=_0x29e877,this[_0x4c58bd(0x388)]=_0x4b1611,this[_0x4c58bd(0x2be)]=_0x4b78fa,this[_0x4c58bd(0x325)]=_0x475571,this['_initClearSelectionCommandInterceptor']());}[_0x269f30(0x31a)](){const _0x3df93e=_0x269f30;this[_0x3df93e(0x409)](this[_0x3df93e(0x388)][_0x3df93e(0x26a)]({'getMutations':_0x81386=>{const _0x562c20=_0x3df93e;if(_0x81386['id']===_0x131b3b[_0x562c20(0x3e0)]['id']||_0x81386['id']===_0x131b3b[_0x562c20(0x2ca)]['id']){const _0x1d2d1c=[],_0x49ac6a=[],_0x125b74=this[_0x562c20(0x2be)]['getCurrentSelections']()[_0x562c20(0x2dc)](_0x5e565b=>_0x5e565b[_0x562c20(0x286)]),_0x9cd5f=_0x131b3b['getSheetCommandTarget'](this[_0x562c20(0x1de)]);if(!_0x9cd5f)return{'redos':[],'undos':[]};const {unitId:_0x1f9f2c,subUnitId:_0x305300}=_0x9cd5f,_0x412f0d={},_0xb21181=this['_sheetsPivotTableConfigModel'][_0x562c20(0x205)](_0x1f9f2c,_0x305300);if(_0xb21181!=null&&_0xb21181[_0x562c20(0x3de)])for(const [_0x3f44d8,_0x109131]of _0xb21181){const {unitId:_0x4cdf6c,subUnitId:_0x372a96,row:_0x1ba9ac,col:_0x4bfb9f}=_0x109131['targetCellInfo'];_0x4cdf6c===_0x9cd5f[_0x562c20(0x341)]&&_0x372a96===_0x9cd5f[_0x562c20(0x2fb)]&&(_0x412f0d[_0x1ba9ac+'-'+_0x4bfb9f]=_0x3f44d8);}return _0x125b74&&_0x9cd5f&&_0x125b74['forEach'](_0x1abf7c=>{const _0x2b0b34=_0x562c20;_0x194133[_0x2b0b34(0x262)][_0x2b0b34(0x2e1)](_0x1abf7c,(_0x419e89,_0x257fec)=>{const _0x36b537=_0x2b0b34,_0x53ccd3=_0x419e89+'-'+_0x257fec;if(_0x412f0d[_0x53ccd3]){const _0x1c43cc=_0x412f0d[_0x53ccd3];_0x1d2d1c[_0x36b537(0x3fe)]({'id':_0x5cb0ce['id'],'params':{'unitId':_0x1f9f2c,'subUnitId':_0x305300,'pivotTableId':_0x1c43cc}});const _0x17f650=this['_sheetsPivotTableConfigModel'][_0x36b537(0x267)](_0x1f9f2c,_0x1c43cc),_0x199cd0=this[_0x36b537(0x325)]['getPivotTableConfig'](_0x1f9f2c,_0x305300,_0x1c43cc);_0x49ac6a[_0x36b537(0x3fe)]({'id':_0x51208c['id'],'params':{'unitId':_0x1f9f2c,'subUnitId':_0x305300,'pivotTableId':_0x1c43cc,'pivotTableConfig':_0x199cd0,'collectionConfig':_0x17f650}});}});}),{'redos':_0x1d2d1c,'undos':_0x49ac6a};}return{'redos':[],'undos':[]};}}));}};_0x22f28b=_0x31976b([_0x49ea99(0x0,_0x194133[_0x269f30(0x137)]),_0x49ea99(0x1,_0x194133[_0x269f30(0x26b)](_0x131b3b[_0x269f30(0x128)])),_0x49ea99(0x2,_0x194133[_0x269f30(0x26b)](_0x131b3b[_0x269f30(0x3aa)])),_0x49ea99(0x3,_0x194133[_0x269f30(0x26b)](_0x1aec1a[_0x269f30(0x323)]))],_0x22f28b);var _0xa2a563=Object[_0x269f30(0x1a6)],_0x54bc5e=(_0x52b10f,_0x32423d,_0x1670db,_0x4ae4c8)=>{const _0x415afc=_0x269f30;for(var _0x1ad083=_0x4ae4c8>0x1?void 0x0:_0x4ae4c8?_0xa2a563(_0x32423d,_0x1670db):_0x32423d,_0x4facb4=_0x52b10f[_0x415afc(0x1ed)]-0x1,_0x5a38b1;_0x4facb4>=0x0;_0x4facb4--)(_0x5a38b1=_0x52b10f[_0x4facb4])&&(_0x1ad083=_0x5a38b1(_0x1ad083)||_0x1ad083);return _0x1ad083;},_0x2fc9ff=(_0x9cf44b,_0x530c9b)=>(_0x14dd4d,_0x2daebf)=>_0x530c9b(_0x14dd4d,_0x2daebf,_0x9cf44b);let _0x38c361=class extends _0x194133['Disposable']{constructor(_0x1c8b61,_0x11a910,_0x2c7402,_0x14b701,_0x3fe004){const _0x32c252=_0x269f30;super(),this['_sheetInterceptorService']=_0x1c8b61,this[_0x32c252(0x150)]=_0x11a910,this[_0x32c252(0x1de)]=_0x2c7402,this[_0x32c252(0x325)]=_0x14b701,this['_sheetsPivotTableService']=_0x3fe004,this['_initCommandInterceptListener']();}['_getPivotAppliedRanges'](_0x803e17,_0x41d5fe,_0x221690){const _0x289f70=_0x269f30,{pageView:_0x1076e8,cornerView:_0x43d01a,rowView:_0x56f2a7,colView:_0xffc624,dataView:_0x1ac0ab}=_0x41d5fe,_0x5b942d=_0x803e17;let _0x4556bf;if(_0x221690)_0x4556bf=[..._0xe1c15e(_0x5b942d)];else{const _0x1f9d50=_0x4c3feb(_0x5b942d,_0x1076e8,!0x0),_0x5295cd=_0x1076e8[_0x289f70(0x2d7)]>=0x0?_0x1076e8[_0x289f70(0x2d7)]+0x1:0x0,_0x324f66=_0x43d01a[_0x289f70(0x3e3)],_0x40c445=_0x43d01a[_0x289f70(0x16e)],_0x15b649=_0x1f9d50[_0x289f70(0x1ed)]>0x0?_0x4f4430:0x0,_0x63dba1=_0x4c3feb({'row':_0x5b942d[_0x289f70(0x26d)]+_0x5295cd+_0x15b649,'col':_0x5b942d[_0x289f70(0x35b)]},_0x43d01a,!0x1,!0x1),_0x270042=_0x4c3feb({'row':_0x5b942d[_0x289f70(0x26d)]+_0x5295cd+_0x15b649+_0x324f66,'col':_0x5b942d['col']},_0x56f2a7,!0x1,!0x0),_0x436537=_0x4c3feb({'row':_0x5b942d[_0x289f70(0x26d)]+_0x5295cd+_0x15b649,'col':_0x5b942d[_0x289f70(0x35b)]+_0x40c445},_0xffc624,!0x1,!0x0),_0x5e48f5=_0x4c3feb({'row':_0x5b942d[_0x289f70(0x26d)]+_0x5295cd+_0x15b649+_0x324f66,'col':_0x5b942d[_0x289f70(0x35b)]+_0x40c445},_0x1ac0ab,!0x1,!0x0);_0x4556bf=[..._0x1f9d50,..._0x63dba1,..._0x270042,..._0x436537,..._0x5e48f5];}return _0x4556bf;}['_initCommandInterceptListener'](){const _0x42cf9f=_0x269f30;this[_0x42cf9f(0x409)](this[_0x42cf9f(0x38a)][_0x42cf9f(0x1b4)]['intercept'](this[_0x42cf9f(0x38a)][_0x42cf9f(0x1b4)][_0x42cf9f(0x23e)]()[_0x42cf9f(0x26f)],{'handler':(_0x5e217d,_0x26226b)=>{const _0x250e7e=_0x42cf9f,{cellInfo:_0x448a96,view:_0x47c8a8,isEmpty:_0x1f9872}=_0x26226b,_0x39bddf=_0x448a96,{unitId:_0x907c18,subUnitId:_0x319e4e}=_0x39bddf,_0x51c93e=this['_getPivotAppliedRanges'](_0x448a96,_0x47c8a8,_0x1f9872),_0x33efaa=this[_0x250e7e(0x388)][_0x250e7e(0x351)]({'unitId':_0x907c18,'subUnitId':_0x319e4e,'ranges':_0x51c93e}),_0x8d8350=_0x1091b0(this['_injector'],_0x907c18,_0x319e4e,_0x51c93e);_0x8d8350['shouldClear']&&(_0x33efaa[_0x250e7e(0x439)][_0x250e7e(0x3fe)](_0x8d8350[_0x250e7e(0x3c6)]),_0x33efaa['undos']['push'](_0x8d8350[_0x250e7e(0x20f)]));const _0x5bedc2=this[_0x250e7e(0x41e)](_0x47c8a8,_0x448a96);return _0x33efaa[_0x250e7e(0x439)][_0x250e7e(0x3fe)](..._0x5bedc2[_0x250e7e(0x439)]),_0x33efaa[_0x250e7e(0x2b2)][_0x250e7e(0x3fe)](..._0x5bedc2[_0x250e7e(0x2b2)]),{'redos':_0x33efaa[_0x250e7e(0x439)],'undos':_0x33efaa['undos']};}}));}['getAutoFitColumnsMutations'](_0x2efdf6,_0x280c61){const _0x3f2184=_0x269f30,{col:_0x3d039c,unitId:_0x16eea0,subUnitId:_0x4c4070}=_0x280c61,_0x1d8712=[],_0xf54710=[],_0x4e779c=_0x131b3b[_0x3f2184(0x2b9)](this[_0x3f2184(0x1de)],{'unitId':_0x16eea0,'subUnitId':_0x4c4070});if(!_0x280c61||!_0x2efdf6||!_0x4e779c)return{'undos':_0xf54710,'redos':_0x1d8712};const _0x5c1a01=this['_sheetsPivotTableConfigModel']['getTextInfo'](),{colView:_0x2f73d6,dataView:_0x58a4ea,cornerView:_0x568934,rowView:_0x529149,formatMap:_0x11b968}=_0x2efdf6,_0x46f53f=_0x5c57b6(_0x2f73d6,_0x5c1a01,!0x0,_0x11b968),_0x5ba2a8=_0x5c57b6(_0x529149,_0x5c1a01,!0x1,_0x11b968),_0x22c129=_0x2f14a3(_0x58a4ea),_0x2fb69a=_0x587ec6(_0x568934),{worksheet:_0x48684c}=_0x4e779c;if(typeof window<'u'&&window['document']){const _0xe9b6fe=_0x334047[_0x3f2184(0x16f)]({..._0x3b3f2c['colStyle']}),_0x50f0ba=_0x334047[_0x3f2184(0x3fa)][_0x3f2184(0x339)](_0x46f53f,_0xe9b6fe)['width']+0x10,_0x4aa2a6=_0x334047[_0x3f2184(0x3fa)][_0x3f2184(0x339)](_0x22c129,_0xe9b6fe)[_0x3f2184(0x2bc)],_0x347170=Math[_0x3f2184(0x143)](Math[_0x3f2184(0x412)](_0x50f0ba,_0x4aa2a6))+0x10,_0x27fa18=Math[_0x3f2184(0x143)](_0x334047[_0x3f2184(0x3fa)][_0x3f2184(0x339)](_0x5ba2a8,_0xe9b6fe)[_0x3f2184(0x2bc)]),_0x48be6a=Math['floor'](_0x334047[_0x3f2184(0x3fa)]['getTextSize'](_0x2fb69a,_0xe9b6fe)[_0x3f2184(0x2bc)]),_0x5d6760=Math['max'](_0x27fa18,_0x48be6a,0x28)+0xc,_0x53c368=_0x2f73d6['colCount']+_0x568934[_0x3f2184(0x16e)],_0x466713={},_0x1f1414={};for(let _0x59cc19=_0x3d039c;_0x59cc19<_0x3d039c+_0x53c368;_0x59cc19++){const _0xd4bc2c=_0x48684c[_0x3f2184(0x198)](_0x59cc19);_0x466713[_0x59cc19]=_0xd4bc2c,_0x59cc19-_0x3d039c<_0x568934[_0x3f2184(0x16e)]?_0x1f1414[_0x59cc19-_0x3d039c]=_0x5d6760:_0x1f1414[_0x59cc19-_0x3d039c]=_0x347170;}_0x1d8712[_0x3f2184(0x3fe)]({'id':_0x131b3b[_0x3f2184(0x277)]['id'],'params':{'subUnitId':_0x4c4070,'unitId':_0x16eea0,'ranges':[{'startColumn':_0x3d039c,'endColumn':_0x3d039c+_0x53c368-0x1,'startRow':0x0,'endRow':_0x48684c[_0x3f2184(0x3d5)]()-0x1}],'colWidth':_0x1f1414}}),_0xf54710[_0x3f2184(0x3fe)]({'id':_0x131b3b['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x4c4070,'unitId':_0x16eea0,'ranges':[{'startColumn':_0x3d039c,'endColumn':_0x3d039c+_0x53c368-0x1,'startRow':0x0,'endRow':_0x48684c[_0x3f2184(0x3d5)]()-0x1}],'colWidth':_0x466713}});}return{'undos':_0xf54710,'redos':_0x1d8712};}};_0x38c361=_0x54bc5e([_0x2fc9ff(0x0,_0x194133[_0x269f30(0x26b)](_0x131b3b[_0x269f30(0x128)])),_0x2fc9ff(0x1,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x24c)])),_0x2fc9ff(0x2,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x137)])),_0x2fc9ff(0x3,_0x194133['Inject'](_0x1aec1a['SheetsPivotTableConfigModel'])),_0x2fc9ff(0x4,_0x194133[_0x269f30(0x26b)](_0x1aec1a['SheetsPivotTableService']))],_0x38c361);var _0x5e099a=Object['getOwnPropertyDescriptor'],_0x1ca8b2=(_0x53b846,_0x35d423,_0x113bef,_0x2d5187)=>{const _0x3c83e9=_0x269f30;for(var _0xdb857f=_0x2d5187>0x1?void 0x0:_0x2d5187?_0x5e099a(_0x35d423,_0x113bef):_0x35d423,_0x4939cc=_0x53b846[_0x3c83e9(0x1ed)]-0x1,_0x5489bd;_0x4939cc>=0x0;_0x4939cc--)(_0x5489bd=_0x53b846[_0x4939cc])&&(_0xdb857f=_0x5489bd(_0xdb857f)||_0xdb857f);return _0xdb857f;},_0x39de69=(_0x308b21,_0x4bd640)=>(_0x5d63d0,_0x54bea8)=>_0x4bd640(_0x5d63d0,_0x54bea8,_0x308b21);let _0x4d3431=class extends _0x194133[_0x269f30(0x2a8)]{constructor(_0x5d3e58,_0x952771,_0x500209,_0xf0006d,_0x240c38,_0x4e49d6,_0x90ecfa){const _0x33e5b4=_0x269f30;super(),_0x327454(this,_0x33e5b4(0x313),new _0x194133['DisposableCollection']()),(this[_0x33e5b4(0x150)]=_0x5d3e58,this[_0x33e5b4(0x227)]=_0x952771,this[_0x33e5b4(0x394)]=_0x500209,this['_univerInstanceService']=_0xf0006d,this['_sheetsPivotTableConfigModel']=_0x240c38,this[_0x33e5b4(0x34b)]=_0x4e49d6,this[_0x33e5b4(0x388)]=_0x90ecfa,this[_0x33e5b4(0x2bd)]());}[_0x269f30(0x2bd)](){const _0x427834=_0x269f30,_0x1cca37=(_0x43f258,_0x8bef3e)=>{const _0x24ea03=_0x10c7,_0x10adfc=this['_univerInstanceService']['getCurrentUnitForType'](_0x194133[_0x24ea03(0x1c8)][_0x24ea03(0x3c4)]);if(!_0x10adfc||!(_0x10adfc==null?void 0x0:_0x10adfc['getSheetBySheetId'](_0x8bef3e)))return;this[_0x24ea03(0x313)][_0x24ea03(0x157)]();const _0x47f1cb=_0x4b6d65=>this['_refRangeHandle'](_0x4b6d65,_0x43f258,_0x8bef3e),_0x6a95ea=this[_0x24ea03(0x325)]['getSubUnitPivotConfigs'](_0x43f258,_0x8bef3e);if(!(_0x6a95ea!=null&&_0x6a95ea['size']))return;Array[_0x24ea03(0x3b9)](_0x6a95ea[_0x24ea03(0x27a)]())[_0x24ea03(0x2dc)](_0x2bc7df=>{const _0x216b12=_0x24ea03,{row:_0x575988,col:_0x59f8f7}=_0x2bc7df[_0x216b12(0x1e6)];return _0x194133[_0x216b12(0x42e)](_0x575988,_0x59f8f7);})['forEach'](_0x3945bb=>{const _0x5420a9=_0x24ea03;this[_0x5420a9(0x313)]['add'](this[_0x5420a9(0x227)][_0x5420a9(0x3fb)](_0x3945bb,_0x47f1cb,_0x43f258,_0x8bef3e));});},_0x3f355c=()=>{const _0x2a5ab2=_0x10c7,_0x441972=this[_0x2a5ab2(0x1de)][_0x2a5ab2(0x2a0)](_0x194133[_0x2a5ab2(0x1c8)][_0x2a5ab2(0x3c4)]);if(_0x441972){const _0x24b119=_0x441972[_0x2a5ab2(0x17e)]();if(!_0x24b119)return;_0x1cca37(_0x441972[_0x2a5ab2(0x17d)](),_0x24b119[_0x2a5ab2(0x1d3)]());}};this['disposeWithMe'](this[_0x427834(0x394)]['onCommandExecuted'](_0x353cbb=>{const _0x5cbf88=_0x427834;if(_0x353cbb['id']===_0x131b3b[_0x5cbf88(0x210)]['id']){const _0x44bbe6=_0x353cbb['params'],_0x125a7b=_0x44bbe6[_0x5cbf88(0x2fb)],_0x29f528=_0x44bbe6[_0x5cbf88(0x341)];if(!_0x125a7b||!_0x29f528)return;_0x1cca37(_0x29f528,_0x125a7b);}})),this[_0x427834(0x409)](this[_0x427834(0x325)][_0x427834(0x340)]['subscribe'](_0x52e553=>{_0x52e553&&_0x3f355c();})),this[_0x427834(0x409)](this[_0x427834(0x325)]['pivotConfigChange$'][_0x427834(0x256)](_0x153a7b=>{const _0x403595=_0x427834,_0x41ebad=_0x131b3b['getSheetCommandTarget'](this[_0x403595(0x1de)]);if(!_0x41ebad)return;const {unitId:_0x2cd4d6,subUnitId:_0x3c7f3f}=_0x41ebad,{unitId:_0x704cc4,subUnitId:_0x834a96}=_0x153a7b;_0x2cd4d6!==_0x704cc4||_0x3c7f3f!==_0x834a96||_0x1cca37(_0x2cd4d6,_0x3c7f3f);})),_0x3f355c();}['_refRangeHandle'](_0x33433b,_0x2eadf5,_0x171cfd){const _0x33b014=_0x269f30;switch(_0x33433b['id']){case _0x131b3b[_0x33b014(0x18c)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x33433b[_0x33b014(0x3ff)],_0x2eadf5,_0x171cfd);}return{'redos':[],'undos':[]};}[_0x269f30(0x34f)](_0x40b031,_0x30ff11,_0x56bd88){const _0x14de55=_0x269f30,{fromRange:_0x3300cf,toRange:_0xf70a40}=_0x40b031,_0x3dc989=[],_0x430086=[],_0x2d992c=_0x131b3b['getSheetCommandTarget'](this['_univerInstanceService']);if(!_0x2d992c)return{'undos':_0x430086,'redos':_0x3dc989};if(_0x30ff11!==_0x2d992c[_0x14de55(0x341)]||_0x56bd88!==_0x2d992c[_0x14de55(0x2fb)])return{'undos':_0x430086,'redos':_0x3dc989};const _0x25f028=this[_0x14de55(0x325)]['getSubUnitPivotConfigs'](_0x30ff11,_0x56bd88);if(_0x25f028!=null&&_0x25f028['size'])for(const [_0x738996,_0x235209]of _0x25f028){const {unitId:_0x24f1ec,subUnitId:_0x1245bd,row:_0x101b0e,col:_0x2026f2}=_0x235209[_0x14de55(0x1e6)];if(_0x24f1ec===_0x2d992c[_0x14de55(0x341)]&&_0x1245bd===_0x2d992c[_0x14de55(0x2fb)]){const _0x4d30d0=_0x194133[_0x14de55(0x42e)](_0x101b0e,_0x2026f2);if(_0x194133[_0x14de55(0x1ac)][_0x14de55(0x399)](_0x4d30d0,_0x3300cf)){const _0x2093ce=_0x101b0e-_0x3300cf[_0x14de55(0x159)],_0x49fcd2=_0x2026f2-_0x3300cf[_0x14de55(0x152)],_0x4fbd8b={'row':_0xf70a40[_0x14de55(0x159)]+_0x2093ce,'col':_0xf70a40['startColumn']+_0x49fcd2};_0x3dc989[_0x14de55(0x3fe)]({'id':_0x1742ee['id'],'params':{'unitId':_0x24f1ec,'subUnitId':_0x1245bd,'pivotTableId':_0x738996,'targetCellPosition':_0x4fbd8b}}),_0x430086[_0x14de55(0x3fe)]({'id':_0x1742ee['id'],'params':{'unitId':_0x24f1ec,'subUnitId':_0x1245bd,'pivotTableId':_0x738996,'targetCellPosition':{'row':_0x101b0e,'col':_0x2026f2}}});const _0x1c6fa1=_0x4fbd8b[_0x14de55(0x26d)]-_0x101b0e,_0x3ac343=_0x4fbd8b[_0x14de55(0x35b)]-_0x2026f2,_0x7daf2c=[],_0x2b0f29=this['_sheetsPivotTableAdaptorModel'][_0x14de55(0x272)](_0x24f1ec,_0x1245bd,_0x738996),_0xc641cc=_0x2b0f29==null?void 0x0:_0x2b0f29[_0x14de55(0x331)];if(_0xc641cc){Object[_0x14de55(0x243)](_0xc641cc)[_0x14de55(0x2cd)](_0x32d623=>{const _0x4f8b96=_0x14de55;_0xc641cc[_0x32d623][_0x4f8b96(0x2cd)](_0x59a6f7=>{const _0x10b485=_0x4f8b96,_0x173478={..._0x59a6f7};_0x173478[_0x10b485(0x159)]=_0x59a6f7[_0x10b485(0x159)]+_0x1c6fa1,_0x173478[_0x10b485(0x2a5)]=_0x59a6f7['endRow']+_0x1c6fa1,_0x173478[_0x10b485(0x152)]=_0x59a6f7[_0x10b485(0x152)]+_0x3ac343,_0x173478[_0x10b485(0x12c)]=_0x59a6f7[_0x10b485(0x12c)]+_0x3ac343,_0x7daf2c[_0x10b485(0x3fe)](_0x173478);});});const _0x2d94c7=this[_0x14de55(0x388)][_0x14de55(0x351)]({'unitId':_0x24f1ec,'subUnitId':_0x1245bd,'ranges':_0x7daf2c});_0x3dc989[_0x14de55(0x3fe)](..._0x2d94c7[_0x14de55(0x439)]),_0x430086[_0x14de55(0x3fe)](..._0x2d94c7[_0x14de55(0x2b2)]);const _0x40e99d=_0x1091b0(this[_0x14de55(0x150)],_0x24f1ec,_0x1245bd,_0x7daf2c);_0x40e99d['shouldClear']&&(_0x3dc989[_0x14de55(0x3fe)](_0x40e99d[_0x14de55(0x3c6)]),_0x430086[_0x14de55(0x3fe)](_0x40e99d['setRangeValueUndoMutation']));}}}}return{'redos':_0x3dc989,'undos':_0x430086};}};_0x4d3431=_0x1ca8b2([_0x39de69(0x0,_0x194133[_0x269f30(0x26b)](_0x194133['Injector'])),_0x39de69(0x1,_0x194133[_0x269f30(0x26b)](_0x131b3b['RefRangeService'])),_0x39de69(0x2,_0x194133[_0x269f30(0x3a4)]),_0x39de69(0x3,_0x194133['IUniverInstanceService']),_0x39de69(0x4,_0x194133[_0x269f30(0x26b)](_0x1aec1a[_0x269f30(0x323)])),_0x39de69(0x5,_0x194133['Inject'](_0x1aec1a[_0x269f30(0x328)])),_0x39de69(0x6,_0x194133[_0x269f30(0x26b)](_0x131b3b[_0x269f30(0x128)]))],_0x4d3431);var _0x9deb74=Object[_0x269f30(0x1a6)],_0x3eab2b=(_0x5c8ef7,_0x517e97,_0x4c9082,_0x2d34f5)=>{const _0x437ecf=_0x269f30;for(var _0x26aa6c=_0x2d34f5>0x1?void 0x0:_0x2d34f5?_0x9deb74(_0x517e97,_0x4c9082):_0x517e97,_0x3eed16=_0x5c8ef7[_0x437ecf(0x1ed)]-0x1,_0x39e2ca;_0x3eed16>=0x0;_0x3eed16--)(_0x39e2ca=_0x5c8ef7[_0x3eed16])&&(_0x26aa6c=_0x39e2ca(_0x26aa6c)||_0x26aa6c);return _0x26aa6c;},_0x2559fa=(_0x3fa406,_0x344ef8)=>(_0x2ecce7,_0x450217)=>_0x344ef8(_0x2ecce7,_0x450217,_0x3fa406);let _0x102dbc=class extends _0x194133[_0x269f30(0x2a8)]{constructor(_0x7491c2,_0x44c8d9){const _0x1b7c8c=_0x269f30;super(),this[_0x1b7c8c(0x388)]=_0x7491c2,this[_0x1b7c8c(0x325)]=_0x44c8d9,this[_0x1b7c8c(0x153)]();}['_initRemoveSheetCommandInterceptor'](){const _0x127c22=_0x269f30;this[_0x127c22(0x409)](this[_0x127c22(0x388)][_0x127c22(0x26a)]({'getMutations':_0x86db79=>{const _0x407d71=_0x127c22;if(_0x86db79['id']===_0x131b3b[_0x407d71(0x234)]['id']){const _0x3ae831=[],_0x3b3f35=[],_0x13b3cd=_0x86db79[_0x407d71(0x3ff)],{unitId:_0x297b5f,subUnitId:_0x49e92e}=_0x13b3cd;if(!_0x297b5f||!_0x49e92e)return{'undos':_0x3b3f35,'redos':_0x3ae831};const _0x553c3a=this[_0x407d71(0x325)][_0x407d71(0x205)](_0x297b5f,_0x49e92e);if(_0x553c3a!=null&&_0x553c3a[_0x407d71(0x3de)])for(const [_0x1a429b,_0x36c661]of _0x553c3a){_0x3ae831[_0x407d71(0x3fe)]({'id':_0x5cb0ce['id'],'params':{'unitId':_0x297b5f,'subUnitId':_0x49e92e,'pivotTableId':_0x1a429b}});const _0x2750f7={...this[_0x407d71(0x325)]['getCollection'](_0x297b5f,_0x1a429b)};_0x3b3f35[_0x407d71(0x3fe)]({'id':_0x51208c['id'],'params':{'unitId':_0x297b5f,'subUnitId':_0x49e92e,'pivotTableId':_0x1a429b,'pivotTableConfig':_0x36c661,'collectionConfig':_0x2750f7}});}return{'redos':_0x3ae831,'undos':_0x3b3f35};}return{'redos':[],'undos':[]};}}));}};_0x102dbc=_0x3eab2b([_0x2559fa(0x0,_0x194133['Inject'](_0x131b3b[_0x269f30(0x128)])),_0x2559fa(0x1,_0x194133[_0x269f30(0x26b)](_0x1aec1a[_0x269f30(0x323)]))],_0x102dbc);var _0x48d3c1=Object[_0x269f30(0x1a6)],_0x72ac5e=(_0x236696,_0x3fd1b8,_0x118a63,_0x1fd765)=>{const _0x342ae2=_0x269f30;for(var _0x3850cb=_0x1fd765>0x1?void 0x0:_0x1fd765?_0x48d3c1(_0x3fd1b8,_0x118a63):_0x3fd1b8,_0x25f958=_0x236696[_0x342ae2(0x1ed)]-0x1,_0x452483;_0x25f958>=0x0;_0x25f958--)(_0x452483=_0x236696[_0x25f958])&&(_0x3850cb=_0x452483(_0x3850cb)||_0x3850cb);return _0x3850cb;},_0x116226=(_0x795f3,_0x4a08b4)=>(_0x48e058,_0x5226a5)=>_0x4a08b4(_0x48e058,_0x5226a5,_0x795f3);let _0x243959=class extends _0x194133[_0x269f30(0x2a8)]{constructor(_0x4868c1,_0xdc97ad,_0x1bc6ac,_0x4fc076,_0x3c4577,_0x156df7){const _0xded664=_0x269f30;super(),this[_0xded664(0x394)]=_0x4868c1,this['_sheetsPivotRpcService']=_0xdc97ad,this[_0xded664(0x34b)]=_0x1bc6ac,this[_0xded664(0x325)]=_0x4fc076,this['_univerInstanceService']=_0x3c4577,this[_0xded664(0x3f6)]=_0x156df7,this['_initDataSendListener'](),this['registerDirtyService']();}[_0x269f30(0x382)](){const _0x25bdaf=_0x269f30;this['disposeWithMe'](this[_0x25bdaf(0x394)][_0x25bdaf(0x204)](_0xdf384a=>{const _0x310fa7=_0x25bdaf;if(_0xdf384a['id']!==_0x315e2a['id'])return;const _0x504d10=_0xdf384a['params'];this[_0x310fa7(0x275)][_0x310fa7(0x3f5)](_0x504d10);})),this[_0x25bdaf(0x409)](this[_0x25bdaf(0x394)][_0x25bdaf(0x204)](_0xa8ad56=>{const _0x23522e=_0x25bdaf;if(_0xa8ad56['id']===_0x1b8224['id']){const _0x7e04cd=_0xa8ad56['params'];if(_0x7e04cd){const {unitId:_0x483c99,subUnitId:_0xa8ca10,oldSubUnitId:_0x5ce546,pivotTableId:_0xa63a93,pivotTableConfig:_0x2da0de,collectionConfig:_0x5a25a5}=_0x7e04cd;this[_0x23522e(0x325)][_0x23522e(0x20c)](_0x483c99,_0x5ce546,_0x7e04cd[_0x23522e(0x25e)],null),this['_sheetsPivotTableConfigModel'][_0x23522e(0x20c)](_0x483c99,_0xa8ca10,_0xa63a93,_0x2da0de),this['_sheetsPivotTableConfigModel'][_0x23522e(0x1b9)](_0x483c99,_0x5a25a5);}}})),this[_0x25bdaf(0x409)](this[_0x25bdaf(0x394)]['onCommandExecuted'](_0x3d1b3f=>{const _0x58ca4f=_0x25bdaf;if(_0x3d1b3f['id']!==_0x13001c['id'])return;const _0x385deb=_0x131b3b[_0x58ca4f(0x2b9)](this['_univerInstanceService']);if(!_0x385deb)return;const {unitId:_0x54f87b,subUnitId:_0x25e91b}=_0x385deb,_0x1fbc90=_0x3d1b3f[_0x58ca4f(0x3ff)];if(_0x1fbc90[_0x58ca4f(0x3f0)]&&Object[_0x58ca4f(0x243)](_0x1fbc90[_0x58ca4f(0x3f0)])[_0x58ca4f(0x2cd)](_0x3568ac=>{const _0x4e2676=_0x58ca4f;var _0x616e57;(_0x616e57=_0x1fbc90['collectionConfig'])!=null&&_0x616e57[_0x3568ac]&&this['_sheetsPivotTableConfigModel'][_0x4e2676(0x1b9)](_0x3568ac,_0x1fbc90['collectionConfig'][_0x3568ac]);}),_0x1fbc90[_0x58ca4f(0x3d3)]){const _0x29ab35=_0x1fbc90[_0x58ca4f(0x3d3)],{unitId:_0x392e8d,subUnitId:_0x4d6139,view:_0x5b1799,pivotTableId:_0x159111,type:_0xce613,pivotConfig:_0x1bf197}=_0x29ab35;if(_0xce613===_0x12d3c2[_0x58ca4f(0x1f6)])this[_0x58ca4f(0x34b)][_0x58ca4f(0x2ee)]({'unitId':_0x392e8d,'subUnitId':_0x4d6139,'pivotTableId':_0x159111,'type':_0xce613}),this[_0x58ca4f(0x325)][_0x58ca4f(0x20c)](_0x392e8d,_0x4d6139,_0x159111,null);else{const _0x1f69c4=new _0x2c142[(_0x58ca4f(0x265))]();_0x1f69c4['formJSON'](_0x5b1799),this[_0x58ca4f(0x325)][_0x58ca4f(0x20c)](_0x392e8d,_0x4d6139,_0x159111,_0x1bf197),this[_0x58ca4f(0x34b)][_0x58ca4f(0x2ee)]({'unitId':_0x392e8d,'subUnitId':_0x4d6139,'pivotTableId':_0x159111,'type':_0xce613,'view':_0x1f69c4}),this['_sheetsPivotTableAdaptorModel'][_0x58ca4f(0x27d)]({'unitId':_0x392e8d,'subUnitId':_0x4d6139,'view':_0x1f69c4,'pivotTableId':_0x159111,'type':_0xce613});}}else _0x1fbc90[_0x58ca4f(0x23d)]&&(_0x1fbc90[_0x58ca4f(0x23d)][_0x58ca4f(0x2cd)](_0x3ccfb6=>{const _0x4227d2=_0x58ca4f,{unitId:_0x50b0e1,subUnitId:_0x4af4d4,view:_0x4cc629,pivotTableId:_0x508647,type:_0x26359f,pivotConfig:_0x3b85c6}=_0x3ccfb6,_0x1c74a4=new _0x2c142[(_0x4227d2(0x265))]();_0x1c74a4[_0x4227d2(0x245)](_0x4cc629),this['_sheetsPivotTableConfigModel'][_0x4227d2(0x20c)](_0x50b0e1,_0x4af4d4,_0x508647,_0x3b85c6),this[_0x4227d2(0x34b)][_0x4227d2(0x27d)]({'unitId':_0x50b0e1,'subUnitId':_0x4af4d4,'view':_0x1c74a4,'pivotTableId':_0x508647,'type':_0x26359f});}),this[_0x58ca4f(0x325)][_0x58ca4f(0x228)]());this[_0x58ca4f(0x34b)][_0x58ca4f(0x17b)](_0x54f87b,_0x25e91b);}));}['registerDirtyService'](){const _0x3012f7=_0x269f30;this[_0x3012f7(0x3f6)]['register'](_0x28cee8['id'],{'commandId':_0x28cee8['id'],'getDirtyData'(_0x242db8){const _0xd20a36=_0x3012f7;return{'dirtyUnitFeatureMap':_0x242db8[_0xd20a36(0x3ff)]};}});}};_0x243959=_0x72ac5e([_0x116226(0x0,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x3a4)])),_0x116226(0x1,_0x194133[_0x269f30(0x26b)](_0x1aec1a['SheetsPivotRPCService'])),_0x116226(0x2,_0x194133[_0x269f30(0x26b)](_0x1aec1a[_0x269f30(0x328)])),_0x116226(0x3,_0x194133[_0x269f30(0x26b)](_0x1aec1a['SheetsPivotTableConfigModel'])),_0x116226(0x4,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x137)])),_0x116226(0x5,_0x32f36e[_0x269f30(0x183)])],_0x243959);var _0x348155=Object[_0x269f30(0x2da)],_0x49edc0=Object[_0x269f30(0x1a6)],_0xf1022=(_0x14aa74,_0x2a71a1,_0xa67a67)=>_0x2a71a1 in _0x14aa74?_0x348155(_0x14aa74,_0x2a71a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa67a67}):_0x14aa74[_0x2a71a1]=_0xa67a67,_0x3ca1f6=(_0x3705f6,_0xfa476a,_0x42e096,_0xa67d7c)=>{for(var _0xe7dd6f=_0xa67d7c>0x1?void 0x0:_0xa67d7c?_0x49edc0(_0xfa476a,_0x42e096):_0xfa476a,_0x5e6ea2=_0x3705f6['length']-0x1,_0x788dd0;_0x5e6ea2>=0x0;_0x5e6ea2--)(_0x788dd0=_0x3705f6[_0x5e6ea2])&&(_0xe7dd6f=_0x788dd0(_0xe7dd6f)||_0xe7dd6f);return _0xe7dd6f;},_0x555ed8=(_0x3eaa46,_0x1b6185)=>(_0x19ca53,_0x271e55)=>_0x1b6185(_0x19ca53,_0x271e55,_0x3eaa46),_0x5387c3=(_0xc6aec5,_0x5acc0e,_0x280047)=>_0xf1022(_0xc6aec5,typeof _0x5acc0e!=_0x269f30(0x216)?_0x5acc0e+'':_0x5acc0e,_0x280047);_0x1aec1a[_0x269f30(0x3bc)]=class extends _0x194133['Plugin']{constructor(_0x22e6b7=_0x43c08c,_0x406882,_0xc58df7,_0x3398d7,_0x3392de){const _0x8e8167=_0x269f30;super(),this[_0x8e8167(0x263)]=_0x22e6b7,this[_0x8e8167(0x150)]=_0x406882,this[_0x8e8167(0x394)]=_0xc58df7,this[_0x8e8167(0x41b)]=_0x3398d7,this[_0x8e8167(0x3e4)]=_0x3392de;const {..._0x463d69}=_0x194133[_0x8e8167(0x1b5)]({},_0x43c08c,this['_config']);this['_configService']['setConfig'](_0x307350,_0x463d69),this[_0x8e8167(0x145)](),this[_0x8e8167(0x1f5)]();}[_0x269f30(0x1f5)](){const _0x2ab69e=_0x269f30;var _0x429cb5;const _0x333919=(_0x429cb5=this[_0x2ab69e(0x263)])==null?void 0x0:_0x429cb5[_0x2ab69e(0x15b)];this['_configService']['setConfig'](_0x3c25a9,_0x333919===!0x0);}[_0x269f30(0x41c)](){const _0x30295f=_0x269f30;var _0x56c7c0;let _0x206ca0=[];const _0x264367=(_0x56c7c0=this[_0x30295f(0x263)])==null?void 0x0:_0x56c7c0[_0x30295f(0x15b)];_0x264367===!0x0?_0x206ca0=[[_0x1aec1a[_0x30295f(0x3fc)]],[_0x1aec1a[_0x30295f(0x2e6)]],[_0x243959],[_0x1aec1a[_0x30295f(0x328)]],[_0x1aec1a['SheetsPivotTableConfigModel']],[_0x102dbc],[_0x22f28b],[_0x4d3431],[_0x38c361]]:_0x264367===!0x1?_0x206ca0=[[_0x1aec1a[_0x30295f(0x12b)]],[_0xe836b9]]:_0x264367===void 0x0&&(_0x206ca0=[[_0x1aec1a['SheetsPivotDataSourceModel']],[_0xe836b9],[_0x1aec1a[_0x30295f(0x3fc)]],[_0x1aec1a['SheetsPivotRPCService']],[_0x243959],[_0x1aec1a['SheetsPivotTableAdaptorModel']],[_0x1aec1a[_0x30295f(0x323)]],[_0x102dbc],[_0x22f28b],[_0x4d3431],[_0x38c361]]),_0x206ca0[_0x30295f(0x2cd)](_0x160a53=>this[_0x30295f(0x150)][_0x30295f(0x176)](_0x160a53)),[_0xe836b9,_0x243959,_0x1aec1a[_0x30295f(0x3fc)],_0x22f28b,_0x102dbc,_0x4d3431,_0x38c361][_0x30295f(0x2cd)](_0x22cc4b=>{const _0x423f0c=_0x30295f;this[_0x423f0c(0x150)]['has'](_0x22cc4b)&&this[_0x423f0c(0x150)][_0x423f0c(0x33f)](_0x22cc4b);});}[_0x269f30(0x145)](){const _0x4bf6ff=_0x269f30;[_0x445449,_0xf93e1e,_0x4ce9d5,_0x264c75,_0x3de05b,_0x4638d9,_0x4a91b8,_0x399c6a,_0x66af7e,_0x319c7a,_0x2d79d1,_0x2e0b0f,_0x2087e0,_0x357ed9,_0x51208c,_0x3b9004,_0x5cb0ce,_0x69a3a6,_0x2e8bdd,_0x5a69f8,_0x4f988c,_0x3426a2,_0x21adc5,_0x3f898b,_0x52ce84,_0x49d482,_0x1742ee,_0x3e18a0,_0x315e2a,_0x13001c,_0x19cd62,_0x2d6d73,_0x27568f,_0x41c9cf,_0x397dda,_0x4fbe02,_0x29200f,_0x28cee8,_0x1b8224,_0x289e33,_0x572304,_0x29fb04,_0x185ddb][_0x4bf6ff(0x2cd)](_0x407e3f=>{const _0x1f63b0=_0x4bf6ff;var _0x233cb1;(_0x233cb1=this[_0x1f63b0(0x3e4)])==null||_0x233cb1[_0x1f63b0(0x26c)](_0x407e3f),this['_commandService'][_0x1f63b0(0x2d0)](_0x407e3f);});}},_0x5387c3(_0x1aec1a['UniverSheetsPivotTablePlugin'],_0x269f30(0x403),_0x468904),_0x5387c3(_0x1aec1a['UniverSheetsPivotTablePlugin'],_0x269f30(0x389),_0x194133[_0x269f30(0x1c8)][_0x269f30(0x3c4)]),_0x1aec1a[_0x269f30(0x3bc)]=_0x3ca1f6([_0x194133[_0x269f30(0x18f)](_0x3e96f2[_0x269f30(0x1cd)]),_0x555ed8(0x1,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x24c)])),_0x555ed8(0x2,_0x194133[_0x269f30(0x26b)](_0x194133[_0x269f30(0x3a4)])),_0x555ed8(0x3,_0x194133[_0x269f30(0x431)]),_0x555ed8(0x4,_0x194133[_0x269f30(0x3f7)](_0x3e4021[_0x269f30(0x24f)]))],_0x1aec1a['UniverSheetsPivotTablePlugin']),_0x1aec1a[_0x269f30(0x3ef)]=_0x4ce9d5,_0x1aec1a[_0x269f30(0x1b6)]=_0x69a3a6,_0x1aec1a[_0x269f30(0x1f0)]=_0xf93e1e,_0x1aec1a[_0x269f30(0x396)]=_0x51208c,_0x1aec1a[_0x269f30(0x1e0)]=_0x445449,_0x1aec1a[_0x269f30(0x350)]=_0x4f4430,_0x1aec1a[_0x269f30(0x1be)]=_0xb0e95d,_0x1aec1a[_0x269f30(0x343)]=_0x264c75,_0x1aec1a['MovePivotTableCommand']=_0x2087e0,_0x1aec1a['PivotDisplayDataType']=_0x309bca,_0x1aec1a['PivotDrillDownCommand']=_0x357ed9,_0x1aec1a[_0x269f30(0x330)]=_0x12d3c2,_0x1aec1a[_0x269f30(0x3ca)]=_0x28cee8,_0x1aec1a['PositionType']=_0x1e0476,_0x1aec1a[_0x269f30(0x3c5)]=_0x3de05b,_0x1aec1a[_0x269f30(0x2d2)]=_0x3426a2,_0x1aec1a[_0x269f30(0x3ab)]=_0x5cb0ce,_0x1aec1a[_0x269f30(0x34e)]=_0x21adc5,_0x1aec1a[_0x269f30(0x138)]=_0x185ddb,_0x1aec1a[_0x269f30(0x2ec)]=_0x307350,_0x1aec1a[_0x269f30(0x408)]=_0x468904,_0x1aec1a[_0x269f30(0x177)]=_0x399c6a,_0x1aec1a[_0x269f30(0x13e)]=_0x3f898b,_0x1aec1a[_0x269f30(0x3d8)]=_0x41c9cf,_0x1aec1a['SetPivotFieldsConfigCommand']=_0x29fb04,_0x1aec1a[_0x269f30(0x287)]=_0x319c7a,_0x1aec1a[_0x269f30(0x3ad)]=_0x4f988c,_0x1aec1a[_0x269f30(0x2c5)]=_0x49d482,_0x1aec1a[_0x269f30(0x316)]=_0x1742ee,_0x1aec1a['SetPivotSortCommand']=_0x66af7e,_0x1aec1a[_0x269f30(0x425)]=_0x52ce84,_0x1aec1a[_0x269f30(0x1b7)]=_0x27568f,_0x1aec1a['SetPivotValueFilterCommand']=_0x289e33,_0x1aec1a['SetPivotValueFilterMutation']=_0x572304,_0x1aec1a['UpdateDateGroupCommand']=_0x4a91b8,_0x1aec1a[_0x269f30(0x252)]=_0x19cd62,_0x1aec1a[_0x269f30(0x271)]=_0x2d79d1,_0x1aec1a[_0x269f30(0x321)]=_0x29200f,_0x1aec1a[_0x269f30(0x424)]=_0x2e0b0f,_0x1aec1a['UpdatePivotTableSourceRangeMutation']=_0x4fbe02,_0x1aec1a[_0x269f30(0x36e)]=_0x4638d9,_0x1aec1a['UpdateValuePositionMutation']=_0x2d6d73,_0x1aec1a[_0x269f30(0x2ad)]=_0x40ee7a,_0x1aec1a[_0x269f30(0x1a5)]=_0x474944,_0x1aec1a[_0x269f30(0x141)]=_0x3b3f2c,_0x1aec1a[_0x269f30(0x2f4)]=_0x1091b0,_0x1aec1a['getAdjustRangesPosition']=_0x4c3feb,_0x1aec1a['getEmptyPivotRanges']=_0xe1c15e,_0x1aec1a[_0x269f30(0x2f7)]=_0x534ee6,_0x1aec1a['getInsertRowColMutations']=_0x4b13ac,_0x1aec1a[_0x269f30(0x229)]=_0x46b939,_0x1aec1a['getPivotInfoByLicense']=_0x14a646,_0x1aec1a[_0x269f30(0x3f1)]=_0x370658,_0x1aec1a[_0x269f30(0x3cc)]=_0x22213a,_0x1aec1a['unionPivotViewRange']=_0x243b5e,Object[_0x269f30(0x2da)](_0x1aec1a,Symbol[_0x269f30(0x38c)],{'value':_0x269f30(0x2a9)});}));function _0x10c7(_0x2ce942,_0x4f8b03){const _0x2487f0=_0x2487();return _0x10c7=function(_0x10c7af,_0x6b2339){_0x10c7af=_0x10c7af-0x121;let _0x5d790=_0x2487f0[_0x10c7af];return _0x5d790;},_0x10c7(_0x2ce942,_0x4f8b03);}function _0x2487(){const _0x5c4f82=['_exclusiveRangeService','sheets-pivot.varName','rowRanges','_updateModelCache','sheets-pivot.emptyPivot.row','_initUnitDisposed','addPivotTableWithConfig','(Blank)','col','_pivotRenderValueMatrixCache','sheet.mutation.pivot-update-value-position','generateRandomId','DisposableCollection','getFieldPositionInfoById','3294fkqmgg','createInterceptorKey','isDate','Filter','SHEET_PIVOT_IN_MAIN_THREAD','_deleteModelCache','setValuePivotFilter','removePivotField','PivotTableFiledAreaEnum','new','getFieldDataType','sheet.mutation.set-pivot-collapse','\x20-\x20','UpdatePivotValuePositionCommand','headerMap','CELL_CONTENT','Uh3VJ9A3\x20pZVkdOJ9A3(f9VZ3TZ,\x20Ohaf9VBZd)\x20{\x20\x20\x20\x20Jkd\x20{\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20f9VZ3TZl3UAnwkJLkkwd\x20=\x20f9VZ3TZ.TOf9J(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20Ak9E93tZTTwEZ\x20=\x20GQMP.OwkTZ(wJAa(f9VZ3TZl3UAnwkJLkkwd[5]));\x20\x20\x20\x20\x20\x20\x20\x209U\x20(!Ak9E93tZTTwEZ.hp)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Ak9E93tZTTwEZ.hp\x20=\x20PhXaZk(f9VZ3TZl3UAnwkJLkkwd[r]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x209TuAk7Zk\x20=\x20JdOZAU\x20uAk7Zk0fAawfQVAOZ\x20!==\x20\x27h3pZU93Zp\x27\x20&&\x20TZfU\x2093TJw3VZAU\x20uAk7Zk0fAawfQVAOZ;\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20VA3JZvJ\x20=\x209TuAk7Zk\x20?\x20TZfU\x20:\x20c93pAc;\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20XZTTwEZuAkp\x20=\x20VA3JZvJ.__zwTZFr__.OwkTZ(f9VZ3TZl3UAnwkJLkkwd[5]);\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20XZTTwEZ\x20=\x20VA3JZvJ.__xZv__.TJk93E9Ud(XZTTwEZuAkp);\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20T9E3wJhkZuAkp\x20=\x20VA3JZvJ.__zwTZFr__.OwkTZ(f9VZ3TZl3UAnwkJLkkwd[C]);\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20T9E3wJhkZ\x20=\x20VA3JZvJ.__xZv__.TJk93E9Ud(T9E3wJhkZuAkp);\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20T9E31wf9p\x20=\x20VA3JZvJ.__8Zk9Ud__(T9E3wJhkZ,\x20XZTTwEZ,\x20Ohaf9VBZd);\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20pAXw93\x20=\x20Ak9E93tZTTwEZ.pX;\x20\x20\x20\x20\x20\x20\x20\x20Uh3VJ9A3\x209T4AXw93twJVI93E(AnwJJZk3,\x20AxATJ)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20OwJJZk3\x20=\x20AnwJJZk3.kZOfwVZ(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20IATJ\x20=\x20AxATJ.kZOfwVZ(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20OwJJZk3nwkJT\x20=\x20OwJJZk3.TOf9J(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20IATJnwkJT\x20=\x20IATJ.TOf9J(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209U\x20(!OwJJZk3.93VfhpZT(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kZJhk3\x20OwJJZk3\x20===\x20IATJ;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209U\x20(OwJJZk3nwkJT.fZ3EJI\x20<\x205\x20||\x20OwJJZk3nwkJT[2]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kZJhk3\x20UwfTZ;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20OwJJZk3QhUU9v\x20=\x20OwJJZk3nwkJT.Tf9VZ(i).qA93(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x20IATJQhUU9v\x20=\x20IATJnwkJT.Tf9VZ(-OwJJZk3nwkJT.fZ3EJI\x20+\x20i).qA93(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kZJhk3\x20OwJJZk3QhUU9v\x20===\x20IATJQhUU9v;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20fZJ\x20pAXw931wf9p\x20=\x20(pAXw93\x20&&\x20pAXw93.fZ3EJI)\x20?\x20pAXw93.TAXZ((pXlJZX)\x20=>\x209T4AXw93twJVI93E(pXlJZX,\x20fAVwJ9A3.IATJ3wXZ))\x20:\x20JkhZ;\x20\x20\x20\x20\x20\x20\x20\x209U\x20(fAVwJ9A3.IATJ3wXZ\x20===\x20\x27fAVwfIATJ\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pAXw931wf9p\x20=\x20JkhZ;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20VA3TJ\x208wf9p\x20=\x20T9E31wf9p\x20&&\x20pAXw931wf9p;\x20\x20\x20\x20\x20\x20\x20\x20kZJhk3\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x208wf9p,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XZTTwEZ:\x20Ak9E93tZTTwEZ,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20VwJVI\x20(ZkkAk)\x20{\x20\x20\x20\x20\x20\x20\x20\x20kZJhk3\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x208wf9p:\x20UwfTZ,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XZTTwEZ:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','AddField','Grand\x20Total','sheets-pivot.dateGroup.quarter','BLANK_PLACEHOLDER','_generateUniqueVersion','function','isPrefixValue','getSortInfo','removeCollections','subTotalStyle','_queryingMap','UpdateValuePosition','iterateFieldByArea','rangeKeyMap','toString','_pivotTableRangeInfo','_initDataSendListener','slice','getCellRaw','deleteUnitId','UniverSheetsFilter','_collectionConfigModel','_sheetInterceptorService','type','_sheetsPivotTableService','getPivotDisplayConfig','toStringTag','pageStyle','hasOwnProperty','MIN_SAFE_INTEGER','COLUMN','register','textInfo','FORCE_STRING','_commandService','createAsyncInterceptorKey','AddPivotTableMutation','IResourceManagerService','@univerjs-pro/engine-pivot','intersects','_model','collectionChange$','IExclusiveRangeService','UniverEngineFormula','body','_globalComputingSrv','addField','getPivotDirtyViewInfo','getMatrixFromRunTimeData','getFormat','ICommandService','REF','_viewData$','varp','pivotPerformCheck','onQueryEnd','SheetsSelectionsService','RemovePivotTableMutation','Tools','SetPivotFilterMutation','stringify','setPivotTable','LocaleService','setSubtotalType','Max\x20of\x20','getAutoDisplayNameFunction','updateConfig','RANGE_TYPE','Add','PivotCellStyleTypeEnum','sheet.mutation.set-pivot-option','from','getSubUnitPivotRenderCache','getPivotPerformCheck','UniverSheetsPivotTablePlugin','delete','sheets-pivot.stdDevpName','sheet.command.update-pivot-table-source-range','fields','_fieldsCollectionChange$','_ensurePivotTableRangeInfo','filterId','UNIVER_SHEET','RemovePivotFieldCommand','setRangeValueRedoMutation','Count\x20of\x20','createCollectionWithDataRange','sourceName','PivotTableViewDirtyMarkOperation','sheets-pivot.emptyPivot.filter','transFromCellValue','sheet.mutation.update-pivot-table-source-range','version','dataFields','sheets-pivot.dateGroup.hour','getUpdateRangeDeleteIds','setValueFilterInfo','single','isBottomTotal','getRowCount','Div0','rgb(240,241,243)','SetPivotFieldFormatMutation','valueIndex','sheets-pivot.minName','sheets-pivot.cellDateGroupDisplay.yearMonth','format','COMMAND','size','asyncInterceptor','ClearSelectionContentCommand','minDate','24144120biVjrK','rowCount','_dataSyncPrimaryController','Hour','setName','colRanges','data','IUndoRedoService','PivotFilterTypeEnum','product','STRING','fromJSON','Varp\x20of\x20','AddPivotFieldCommand','collectionConfig','getPivotTableInfo','_pivotRenderInfoCache','getId','@univerjs/rpc','handleAsyncResponse','_activeDirtyManagerService','Optional','setPivotSort','removePivotTable','FontCache','registerRefRange','SheetsPivotTableService','queryDirtyPivotTable','push','params','removeField','getLastRow','remove','pluginName','PivotTableChangeTypeEnum','updateFieldPosition','sheets-pivot.cellDateGroupDisplay.minute','getValueIndex','SHEET_PIVOT_TABLE_PLUGIN','disposeWithMe','removeSourceRangeChange','valid','updatePivotTableMatrixInfo','_featureCalculationManagerService','NORMAL','Style','endCollectChangeset','setPivotFilter','max','rangeKey','sheet.command.set-pivot-value-filter','sheet.mutation.pivot-update-field-position','AddPivotTableWithConfig','name','getDataFieldByTableId','getColumnCount','reset','_configService','onStarting','NUM','getAutoFitColumnsMutations','getPivotTableInstance','sheet.command.move-pivot-field','forValue','fetchThroughInterceptors','dimension','UpdatePivotTableSourceRangeCommand','SetPivotSortMutation','deleteField','isColMultiMeasure','16096lqLkrK','getTextInfo','colStyle','PivotDataFieldDataTypeEnum','updateViewInfo','sourceRangeInfo','cellToRange','@univerjs/sheets-filter','handleSourceRangeChange','IConfigService','getValueFilterInfos','column','toJSON','updateFieldSourceInfo','DateGroupField','_dataFieldManagerCollection','New','redos','CommandType','sheets-pivot.columnName','PivotTable','#e6ebfb','registerCallbackWithEvent','UniverProEnginePivot','@univerjs-pro/license','getTargetByPivotId','createLabelField','SheetInterceptorService','handleMoveRange','amd','SheetsPivotDataSourceModel','endColumn','getRangeKey','SetValuePivotFilter','_initSnapshot','addRecord','@univerjs/core','_globalSubject','workbook\x20is\x20not\x20found','fieldsCollectionChange$','getFilterInfo','panel','IUniverInstanceService','ResetPivotFieldsConfigCommand','AsyncInterceptorManager','RemoveField','MUTATION','PivotViewCellValueTypeEnum','iterateFieldDim','SetPivotCollapseMutation','sheets-pivot.dateGroup.yearMonth','setPivotCollapse','defaultThemeStyle','setDirty','floor','SHEET_PIVOT_EXCLUSIVE_ID','_initRegisterCommand','setFieldFormat','dataFieldsCollection','GlobalConfig','setPivotSetting','displayName','movePivotField','InsertRowMutation','Expand','tuple','CustomCommandExecutionError','_injector','unshiftString','startColumn','_initRemoveSheetCommandInterceptor','getRangeData','DEFAULT_WORKSHEET_COLUMN_COUNT','sheets-pivot.dateGroup.minute','dispose','pivotTableIndexConfig','startRow','getTargetByPivotTableId','notExecuteFormula','return\x20','cornerInfo','parseInt','triggerDirtyFeature','pageRanges','InterceptorEffectEnum','LS_CONFIG_KEY','find','sheet.mutation.pivot-update-field-source-info','isErrorValue','getDataFieldByRangeKey','getIndexesByPathStr','executeCommand','createDataFieldId','markDirty$','parse','_getAutoName','var','colCount','getFontStyleString','_initGlobalComputed','updateAllDisplayName','message','SetPivotSort','string','#b2b2b2','add','SetPivotCollapseCommand','_initLocale','getIntersectsPivotTable','SetPivotSetting','markDirty','generateNullCell','getUnitId','getActiveSheet','_initPivotDataGetListener','_createExclusiveRange','initDataRanges','setDisplayName','IActiveDirtyManagerService','sheets.tabs.sheet','getSheets','DEFAULT_WORKSHEET_ROW_COUNT','BehaviorSubject','getAutoDisplayName','getPivotTableConfig','_updatePivotTableInstanceCache','getFieldInfo','MoveRangeCommand','iterateField','registerPluginResource','DependentOn','sheets-pivot.dateGroup.month','getPivotTableRangeInfo','PivotSubtotalTypeEnum','realDeleteValue','SetFilterInfo','sheet.command.pivot-drill-down','viewData$','sheets-pivot.countName','getColumnWidth','sheets-pivot.cellDateGroupDisplay.hourMinute','Total','_toJSON','generateHexNumber','maxDate','collapseInfo','sheet.mutation.set-pivot-sort-info','sheet.command.add-pivot-table','ErrorType','uniqueDataFieldName','getDataFieldId','ManualFilter','canUsePivot','getOwnPropertyDescriptor','UniverProLicense','ptn','setLabelFilterInfo','addPivotTable','adjustSheetCellData','Rectangle','_sheetsPivotDataSourceModel','getViewData','sheets-pivot.cellDateGroupDisplay.yearQuarter','filterInfo','SetSheetsFilterRangeMutation','YearQuarter','fontRenderExtension','interceptor','merge','AddPivotFieldMutation','SetPivotSubtotalTypeMutation','PivotTableValuePositionEnum','updateCollectionConfig','getStyles','sheet.mutation.send-pivot-view-local','measure','sheet.mutation.remove-pivot-table','DEFAULT_PIVOT_NUMBER','resetArea','sheet.command.move-pivot-table','dataFieldId','SetOptions','contains','ObjectMatrix','getRangeKeyList','cornerRanges','_updateRenderEmptyCache','UniverInstanceType','pbt','collection','_pivotInitCompleted$','getConfig','UniverLicensePlugin','ResetPivotTable','numberToABC','pushComputingStatusSubject','isEmpty','#1d32e9','getSheetId','getDataFieldByDataFieldId','sheets-pivot.subTotal','setRange','sheet.command.set-pivot-collapse','Average\x20of\x20','updatePivotSource','getValue','BadReference','StdDevp\x20of\x20','SetPivotFilter','_univerInstanceService','numfmt','AddPivotTableWithConfigCommand','sheetName','_subjectFieldsCollectionChange','Sum\x20of\x20','result','fieldIds','targetCellInfo','_collectionChange$','fetchThroughAsyncInterceptors','getDisplayName','DrillDown','oldMatrix','sum','length','countNums','sheet.mutation.get-pivot-data-local','AddPivotTableCommand','setPivotTableConfig','NotName','asObservable','startCollectChangeset','_initConfig','Delete','sideEffectUpdateWorkerCache','@univerjs/engine-render','updateViewData','removeDataField','Quarter','bind','charCodeAt','getformat','addCollection','unshift','pivotMutationGenerate','LifecycleService','originTargetInfo','onCommandExecuted','getSubUnitPivotConfigs','_pivotTableInstanceCache','Subtotal','setSourceName','isValue','SetPivotTableConfig','setRangeKeyMap','updateConfigCache','NAME','1343784ohfuZq','setRangeValueUndoMutation','SetWorksheetActiveOperation','_ensurePivotTableMatrixInfo','sheets-pivot.sumName','grandTotal','_viewData','DataField','symbol','date','setCollapse','valueFilter','Panel','RemovePivotField','sheet.command.reset-pivot-fields-config','versions','sheets-pivot.value','refreshDataField','getDate','PivotCallbackEnum','dataStream','sheets-pivot.cellDateGroupDisplay.year','has','PivotDateGroupFieldDateTypeEnum','_ensurePivotItemRenderValueMatrixCache','_refRangeService','setPivotInitCompleted','getPivotCellInfo','sheets-pivot.dateGroup.date','sheet.mutation.set-pivot-format','sheet.operation.pivot-table-view-formula-mark-dirty','UpdateFieldPosition','_pivotTableMatrixInfo','Column\x20','getDataFieldItemInfo','Month','blank','_init','RemoveSheetCommand','sheet.mutation.update-date-group','sheet.mutation.send-pivot-data-local','generateNewSheetName','54WQwSNs','InsertSheetMutation','count','DIV_BY_ZERO','addExclusiveRange','batch','getInterceptPoints','oldRangeInfo','deepClone','getGroupFieldsInfoByIds','valueFields','keys','hasField','formJSON','drillDown','getFieldById','Minute','rowFields','isDateValue','sheet.mutation.add-group-collection','Injector','matrix','_subjectCollectionChange','DataSyncPrimaryController','pushUndoRedo','sheets-pivot.cellDateGroupDisplay.date','UpdateFieldPositionMutation','areaInfo','sheet.command.add-pivot-table-with-config','_subjectViewChange','subscribe','sheets-pivot.stdDevName','sheets-pivot.grandTotal','substring','sheet.command.update-pivot-value-position','DataFieldManager','getColCount','some','pivotTableId','getCellMatrix','replace','AddPivotField','Range','_config','number','PivotView','getPivotTableModelConfig','getCollection','Collapse','getMatrix','interceptCommand','Inject','registerSyncingMutations','row','setValue','PIVOT_MUTATION_GENERATE','Date','UpdatePivotFieldSettingCommand','getPivotItemRenderInfoCache','rowStyle','getNoUsedDataFieldIds','_sheetsPivotRpcService','Row','SetWorksheetColWidthMutation','rangeType','getRangeStartEndInfo','values','error','SetRangeValuesMutation','updateRenderCache','_resourceManagerService','getUnit','updateDataFieldsCollection','YearMonth','_textInfo','Values','updateRangeKeyMap','exports','range','SetPivotFilterCommand','query','sheet.command.set-pivot-filter','existing','_ensurePivotItemRenderInfoCache','getSheetBySheetName','sheets-pivot.varpName','getSourceName','NUMBER','getSheetBySheetId','Column','min','rxjs','_ensurePivotMap','Value','removeValueFilterInfo','dataStyle','getPivotTableMatrixInfo','update','sheet.mutation.set-pivot-field-subtotal-type','SetRangeValuesUndoMutationFactory','@univerjs/sheets','filter','#f4f4f5','getDirtyInfo','getCurrentUnitForType','getName','4646780QZfOJi','sheets-pivot.blank','getValuePosition','endRow','average','addDirtyPivotTable','Disposable','Module','sheet.mutation.add-pivot-table','dateGroupField','excelDateToUnixMilliseconds','applyChangeSet','UpdateSource','_markDirty$','AddPivotTable','refreshGroupField','undos','Subject','getPivotTableIdByCell','_globalComputedEndHelpFunc','includes','value','_configVersion$','getSheetCommandTarget','SetValueFilter','forRow','width','_onRefRangeChange','_sheetsSelectionsService','_ensureViewDataMap','getIntersects','MonthDate','sheets-pivot.productName','getDataFieldManager','setSortInfo','SetPivotOptionMutation','addPivotField','next','serializeRangeWithSpreadsheet','getPivotTableCellData','ClearSelectionAllCommand','ReleaseType','sheet.mutation.remove-group-collection','forEach','broadcastCollectionChange','PivotErrorTypeEnum','registerCommand','StdDev\x20of\x20','RemovePivotFieldMutation','tableFieldId','isArray','sheet.mutation.set-pivot-filter','_viewUpdate$','lastRow','addCollectionByJSON','sheets-pivot.cellDateGroupDisplay.yearMonthDate','defineProperty','getLastCol','map','GrandTotal','isBaseGroupField','Year','updateDirtyPivotTable','foreach','getFieldIds','renameField','addFieldWithSourceId','MovePivotField','SheetsPivotRPCService','sheets-pivot.averageName','NO_COMMERCIAL','#e6ebfa','leftOffset','removeCollectionImp','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','UpdatePivotSource','clearRenderCache','RemoveColMutation','_localeService','_globalComputedStartHelpFunc','140139iULayf','createValueField','generateSetRangeValueMutations','updateValuePosition','CellValueType','getFieldListByArea','getSheetFeatureLimit','valuePosition','subtotal','subUnitId','sheets-pivot.cellDateGroupDisplay.quarter','node','resetPivotTable','limit\x20pivot','level','sheet.mutation.set-pivot-value-filter','set','collections','SetFieldFormat','entries','rowHeaderMap','getHeaderMapItem','getSubtotal','InsertColMutation','dataFieldManagerConfig','getTypeOfUnitDisposed$','UniverProSheetsPivot','updatePivotTableRangeInfo','_deletePivotTableInstanceCache','fieldsConfig','Set','leafStyle','MAX_SAFE_INTEGER','disposableCollection','random','getTableFieldById','SetPivotPositionMutation','deleteDataField','getFieldFormat','sheet.mutation.send-init-pivot-text-local','_initClearSelectionCommandInterceptor','splice','getSubUnitPivotMatrix','_requestResolvers','UniverEngineRender','updateView','concat','UpdatePivotFieldSourceInfoMutation','info','SheetsPivotTableConfigModel','object','_sheetsPivotTableConfigModel','paths','GlobalComputingStatusService','SheetsPivotTableAdaptorModel','refreshData','700588DESGxO','getOriginFieldId','SetPivotCollapse','dataRangeInfo','RemoveSheetMutation','getMatrixValue','PivotTableOperationEnum','rangesInfo','sheet.mutation.rename-pivot-field','lastCol','onQueryStart','sheets-pivot.maxName','sheet.command.set-pivot-fields-config','_initPivotTextInfo','38LNGuuV','getTextSize','getFieldCountByArea','sequenceExecute','905522Eqenul','UniverSheets','sortInfo','get','pivotInitCompleted$','unitId','mergeWorksheetSnapshotWithDefault','MovePivotFieldCommand','InsertSheetUndoMutationFactory','_host','@univerjs/engine-formula','isNaN','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','_pivotConfigChange$','pivotTableConfigs','_sheetsPivotTableAdaptorModel','addDataFieldWithoutUnitInfo','colHeaderMap','RenamePivotFieldMutation','getRefRangeMutationsByMoveRange','BLANK_ROW_COUNT','generateMutationsByRanges','isFeatureAuthorizedWithinTime'];_0x2487=function(){return _0x5c4f82;};return _0x2487();}