@univerjs-pro/sheets-pivot 0.9.2 → 0.9.3-nightly.202507250819

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 (54) 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 -0
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -0
  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 -0
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -0
  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 -0
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -0
  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 +42 -42
  38. package/lib/types/controllers/const.d.ts +1 -1
  39. package/lib/types/locale/ca-ES.d.ts +3 -0
  40. package/lib/types/locale/es-ES.d.ts +3 -0
  41. package/lib/types/locale/fa-IR.d.ts +2 -2
  42. package/lib/umd/facade.js +1 -1
  43. package/lib/umd/index.js +1 -1
  44. package/lib/umd/locale/ca-ES.js +1 -0
  45. package/lib/umd/locale/en-US.js +1 -1
  46. package/lib/umd/locale/es-ES.js +1 -0
  47. package/lib/umd/locale/fa-IR.js +1 -1
  48. package/lib/umd/locale/fr-FR.js +1 -1
  49. package/lib/umd/locale/ko-KR.js +1 -1
  50. package/lib/umd/locale/ru-RU.js +1 -1
  51. package/lib/umd/locale/vi-VN.js +1 -1
  52. package/lib/umd/locale/zh-CN.js +1 -1
  53. package/lib/umd/locale/zh-TW.js +1 -1
  54. package/package.json +11 -11
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x464d(_0x4a7299,_0x31ee3a){const _0x4e3008=_0x4e30();return _0x464d=function(_0x464de9,_0x1bc050){_0x464de9=_0x464de9-0x1b3;let _0x37d19f=_0x4e3008[_0x464de9];return _0x37d19f;},_0x464d(_0x4a7299,_0x31ee3a);}(function(_0x4e4d31,_0x1d3c4a){const _0x1c23d0=_0x464d,_0x57d384=_0x4e4d31();while(!![]){try{const _0x43236=-parseInt(_0x1c23d0(0x4a4))/0x1+-parseInt(_0x1c23d0(0x1d3))/0x2+parseInt(_0x1c23d0(0x2fe))/0x3*(-parseInt(_0x1c23d0(0x305))/0x4)+-parseInt(_0x1c23d0(0x284))/0x5+parseInt(_0x1c23d0(0x413))/0x6+parseInt(_0x1c23d0(0x275))/0x7*(-parseInt(_0x1c23d0(0x478))/0x8)+parseInt(_0x1c23d0(0x418))/0x9;if(_0x43236===_0x1d3c4a)break;else _0x57d384['push'](_0x57d384['shift']());}catch(_0x903952){_0x57d384['push'](_0x57d384['shift']());}}}(_0x4e30,0xba604),function(_0x1d3db6,_0x46dbf5){const _0x423c44=_0x464d;typeof exports==_0x423c44(0x4a6)&&typeof module<'u'?_0x46dbf5(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==_0x423c44(0x2c1)&&define[_0x423c44(0x4bc)]?define([_0x423c44(0x1cd),_0x423c44(0x32d),_0x423c44(0x1d7),_0x423c44(0x4b1),_0x423c44(0x2b5),_0x423c44(0x1f9),'@univerjs-pro/license','@univerjs/sheets-filter',_0x423c44(0x47c),_0x423c44(0x3e2)],_0x46dbf5):(_0x1d3db6=typeof globalThis<'u'?globalThis:_0x1d3db6||self,_0x46dbf5(_0x1d3db6[_0x423c44(0x3bb)]={},_0x1d3db6[_0x423c44(0x2fb)],_0x1d3db6[_0x423c44(0x1b4)],_0x1d3db6[_0x423c44(0x4c0)],_0x1d3db6[_0x423c44(0x2d5)],_0x1d3db6[_0x423c44(0x1f9)],_0x1d3db6['UniverProLicense'],_0x1d3db6[_0x423c44(0x4b9)],_0x1d3db6[_0x423c44(0x485)],_0x1d3db6[_0x423c44(0x4a2)]));}(this,function(_0x38ffc1,_0x3ccc66,_0x497af0,_0x1fe373,_0x5c4707,_0x5dbc97,_0xacc9cf,_0x58165f,_0x5f430b,_0x4257a0){'use strict';const _0x58458d=_0x464d;var _0x5af101=Object[_0x58458d(0x43b)],_0x35790e=(_0x24cd15,_0x232bec,_0x55747d)=>_0x232bec in _0x24cd15?_0x5af101(_0x24cd15,_0x232bec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55747d}):_0x24cd15[_0x232bec]=_0x55747d,_0x5ebdc4=(_0x56ba3e,_0x4b6771,_0x4d2507)=>_0x35790e(_0x56ba3e,typeof _0x4b6771!=_0x58458d(0x306)?_0x4b6771+'':_0x4b6771,_0x4d2507);const _0x3b243d=Number['parseInt'](0x6870da12),_0xc5f28c=0x10,_0x2404e8=0x1,_0x1a8d1f='SHEET_PIVOT_TABLE_PLUGIN',_0x133e7e=0x1,_0x1f95b7=_0x58458d(0x215),_0xf60beb=_0x58458d(0x445),_0xf16539=_0x58458d(0x1f0),_0x560ab3=_0x58458d(0x2bb),_0x2a22a9=_0x58458d(0x2bb),_0x595013=_0x58458d(0x493),_0x257a9a='#1d32e9',_0x473337=_0x58458d(0x49a),_0x2ceeba=_0x58458d(0x214),_0x15a8b9=_0x58458d(0x3aa),_0x1a7b17=_0x58458d(0x49a),_0x1ca38d=_0x58458d(0x438),_0x48ab3b=0xe,_0x151195=0x6;var _0xe6815f=(_0x362c24=>(_0x362c24[_0x58458d(0x23a)]=_0x58458d(0x382),_0x362c24[_0x58458d(0x439)]=_0x58458d(0x22a),_0x362c24))(_0xe6815f||{});const _0x552964={'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':''}}},_0x1c943c=0x1e,_0x56979c={'b':{'s':0x1,'cl':{'rgb':_0xf16539}},'l':{'s':0x1,'cl':{'rgb':_0xf16539}},'r':{'s':0x1,'cl':{'rgb':_0xf16539}},'t':{'s':0x1,'cl':{'rgb':_0xf16539}}},_0x373724={'bg':{'rgb':_0x1f95b7},'ht':0x2,'vt':0x2,'tb':0x1},_0x2badcf={'bg':{'rgb':_0xf60beb},'ht':0x2,'vt':0x2,'tb':0x1},_0x14f4ab={'rowStyle':{'bg':{'rgb':_0x1ca38d},'bd':_0x56979c,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x15a8b9},'bd':null,'cl':{'rgb':_0x1a7b17},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x56979c,'bg':{'rgb':_0x2ceeba},'vt':0x2},'cornerStyle':{'bd':_0x56979c,'bg':{'rgb':_0x595013},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x56979c,'bg':{'rgb':_0x560ab3},'vt':0x2},'leafStyle':{'bd':_0x56979c,'bg':{'rgb':_0x2a22a9},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x257a9a},'cl':{'rgb':_0x473337},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x56979c,'vt':0x2}};function _0xa29963(_0x56e599,_0x441148,_0x1351c1){const _0x246343=_0x58458d,_0x205569=_0x56e599[_0x246343(0x263)](_0x497af0[_0x246343(0x4d6)]),_0x46d0d7=_0x1351c1[_0x246343(0x2d0)]('_');switch(_0x441148){case _0x3ccc66[_0x246343(0x4a9)][_0x246343(0x3d2)]:return _0x205569['t'](_0x246343(0x286),..._0x46d0d7);case _0x3ccc66['PivotDateGroupFieldDateTypeEnum'][_0x246343(0x327)]:return _0x205569['t'](_0x246343(0x30a),..._0x46d0d7);case _0x3ccc66['PivotDateGroupFieldDateTypeEnum'][_0x246343(0x3d1)]:return _0x205569['t'](_0x246343(0x363),..._0x46d0d7);case _0x3ccc66[_0x246343(0x4a9)][_0x246343(0x429)]:return _0x205569['t'](_0x246343(0x2c2),..._0x46d0d7);case _0x3ccc66[_0x246343(0x4a9)]['Date']:return _0x205569['t'](_0x246343(0x47a),..._0x46d0d7);case _0x3ccc66[_0x246343(0x4a9)]['Month']:return _0x205569['t'](_0x246343(0x33c),..._0x46d0d7);case _0x3ccc66[_0x246343(0x4a9)]['Quarter']:return _0x205569['t'](_0x246343(0x4d3),..._0x46d0d7);case _0x3ccc66[_0x246343(0x4a9)][_0x246343(0x25f)]:return _0x205569['t'](_0x246343(0x4c9),..._0x46d0d7);case _0x3ccc66[_0x246343(0x4a9)][_0x246343(0x2f4)]:return _0x205569['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x46d0d7);case _0x3ccc66[_0x246343(0x4a9)][_0x246343(0x2ac)]:return _0x205569['t'](_0x246343(0x3e9),..._0x46d0d7);}return'';}const _0x1b19a0=(_0x554903,_0xb4916d,_0x39e437,_0x2636bc)=>{const _0x3f624d=_0x58458d;let _0x182706;const _0x21c2d9=_0x554903[_0x3f624d(0x263)](_0x497af0['IUniverInstanceService'])[_0x3f624d(0x3db)](_0x497af0['UniverInstanceType'][_0x3f624d(0x346)]);if(!_0x21c2d9)return null;const _0x5421c4=_0x21c2d9[_0x3f624d(0x331)]();let _0x17fce6;if(_0x39e437&&(_0x17fce6=_0x5421c4[_0x3f624d(0x412)](_0x39e437)),_0xb4916d!=null&&_0xb4916d['v']||(_0xb4916d==null?void 0x0:_0xb4916d['v'])===0x0){_0x182706||(_0x182706={});const _0x2040f7=_0x232c4f(_0xb4916d['v']);typeof _0x2040f7==_0x3f624d(0x3c7)?_0x182706['t']=_0x497af0[_0x3f624d(0x1bd)]['NUMBER']:typeof _0x2040f7==_0x3f624d(0x48b)&&(_0x182706['t']=_0x497af0[_0x3f624d(0x1bd)][_0x3f624d(0x246)]),_0x182706['v']=_0x2040f7;}if((_0xb4916d!=null&&_0xb4916d['i']||(_0xb4916d==null?void 0x0:_0xb4916d['i'])===0x0)&&(_0x182706||(_0x182706={}),_0x182706['fi']=_0xb4916d['i']),_0xb4916d!=null&&_0xb4916d['s']&&(_0x182706||(_0x182706={}),_0x182706[_0x3f624d(0x21f)]=_0xb4916d['s']),_0x39e437&&(_0x182706||(_0x182706={}),_0x182706['s']=_0x17fce6),_0x2636bc&&_0x182706!=null&&_0x182706['v']&&_0x182706['pbt']!==_0x3ccc66[_0x3f624d(0x3da)][_0x3f624d(0x23c)]&&_0x182706[_0x3f624d(0x21f)]!==_0x3ccc66[_0x3f624d(0x3da)]['Subtotal']){const _0x598940=String(_0x182706['v']),{dateType:_0x24b8a6}=_0x2636bc;_0x182706['v']=_0xa29963(_0x554903,_0x24b8a6,_0x598940),_0x182706['t']=_0x497af0[_0x3f624d(0x1bd)][_0x3f624d(0x246)];}return _0x182706;},_0x5ba39b=(_0x510e9c,_0x57cb8d,_0x34879c,_0x35e4b6)=>{const _0x5db7b3=_0x58458d;var _0x5e21eb,_0x2d4c25,_0x5a553c,_0x13a54c,_0x12f0bc,_0x4df566,_0x1e9e8e,_0x2a5df0,_0x58c8f5,_0x1cd209,_0x4a7f4e,_0x2461e0,_0x5c7598,_0xb5587c;const _0x3610e3=_0x34879c[_0x5db7b3(0x301)],{cornerView:_0x4ed8a3,rowView:_0xc31dbc,colView:_0x43166a,dataView:_0x264be8,pageView:_0x526f5c,formatMap:_0x3d0a6e,groupInfo:_0x33fd1b}=_0x57cb8d,{row:_0x196e81,col:_0x2e0dde}=_0x3610e3,_0x11b4f1=new _0x497af0['ObjectMatrix'](),_0x20990d={},_0x5b59e9={},_0x5a3c42={},_0x566ab5={},_0x4636ec={};let _0x1324b3=_0x196e81,_0x457bae=_0x2e0dde;Object['keys'](_0x526f5c[_0x5db7b3(0x4b0)])['forEach'](_0x439530=>{const _0x21f1c2=_0x5db7b3;Object['keys'](_0x526f5c['data'][Number(_0x439530)])[_0x21f1c2(0x466)](_0x165b16=>{const _0x10ecf3=_0x21f1c2,_0x4f8f01={..._0x526f5c[_0x10ecf3(0x4b0)][Number(_0x439530)][Number(_0x165b16)]};_0x11b4f1[_0x10ecf3(0x412)](Number(_0x439530)+_0x1324b3,Number(_0x165b16)+_0x457bae,_0x1b19a0(_0x510e9c,_0x4f8f01,_0x14f4ab[_0x10ecf3(0x315)]));});});const _0x43f337=Object[_0x5db7b3(0x302)](_0x526f5c[_0x5db7b3(0x4b0)])[_0x5db7b3(0x24e)];_0x1324b3+=_0x43f337+(_0x43f337?_0x133e7e:0x0);const _0x4672e1=_0x4ed8a3[_0x5db7b3(0x392)](),_0x2bd698=_0x4ed8a3[_0x5db7b3(0x3e3)]();for(let _0x446e67=0x0;_0x446e67<_0x4672e1;_0x446e67++)for(let _0x1bcb73=0x0;_0x1bcb73<_0x2bd698;_0x1bcb73++){const _0x23f086={...(_0x2d4c25=(_0x5e21eb=_0x4ed8a3[_0x5db7b3(0x4b0)])==null?void 0x0:_0x5e21eb[_0x446e67])==null?void 0x0:_0x2d4c25[_0x1bcb73]};_0x23f086&&((_0x5a553c=_0xc31dbc['headerMap'][_0x1bcb73])!=null&&_0x5a553c[_0x5db7b3(0x27e)])&&_0x1bcb73===_0x2bd698-0x1&&_0x446e67===_0x4672e1-0x1&&(_0x23f086['v']=''+_0x35e4b6[_0x5db7b3(0x2f3)]),_0x11b4f1[_0x5db7b3(0x412)](_0x446e67+_0x1324b3,_0x1bcb73+_0x457bae,_0x1b19a0(_0x510e9c,_0x23f086,_0x14f4ab[_0x5db7b3(0x20a)]));}for(let _0x220bf1=0x0;_0x220bf1<_0x4ed8a3[_0x5db7b3(0x1fd)]['length'];_0x220bf1++)_0x4ed8a3[_0x5db7b3(0x1fd)][_0x220bf1]&&(_0x5a3c42[''+(_0x220bf1+_0x457bae)]=_0x4ed8a3[_0x5db7b3(0x1fd)][_0x220bf1]);_0x457bae+=_0x2bd698;const _0x5851d8=_0x43166a[_0x5db7b3(0x463)],_0x3b4e63=_0x43166a[_0x5db7b3(0x1c3)]()>=0x0?_0x43166a[_0x5db7b3(0x1c3)]()+0x1:0x0,_0x46fcbb=_0x43166a['getLastCol']()>=0x0?_0x43166a[_0x5db7b3(0x2be)]()+0x1:0x0;for(let _0x551dce=0x0;_0x551dce<_0x46fcbb;_0x551dce++){for(let _0x1b988c=0x0;_0x1b988c<_0x3b4e63;_0x1b988c++){const _0x1092eb={...(_0x12f0bc=(_0x13a54c=_0x43166a[_0x5db7b3(0x4b0)])==null?void 0x0:_0x13a54c[_0x1b988c])==null?void 0x0:_0x12f0bc[_0x551dce]},_0x1153bb=(_0x4df566=_0x5851d8[_0x1b988c])==null?void 0x0:_0x4df566[_0x5db7b3(0x2f5)],_0x2daa50=_0x3d0a6e[_0x1153bb],_0x56ae45=_0x33fd1b[_0x1153bb];_0x1092eb&&(_0x1092eb['v']=_0x301b46(_0x1092eb,_0x1b988c===0x0&&((_0x1e9e8e=_0x43166a[_0x5db7b3(0x270)](_0x551dce+0x1))==null?void 0x0:_0x1e9e8e['isValue']),_0x2daa50,_0x35e4b6));let _0x5b3a96;_0x2daa50?_0x5b3a96={..._0x14f4ab[_0x5db7b3(0x368)],'n':{'pattern':_0x2daa50}}:_0x5b3a96={..._0x14f4ab['colStyle']},_0x11b4f1[_0x5db7b3(0x412)](_0x1b988c+_0x1324b3,_0x551dce+_0x457bae,_0x1b19a0(_0x510e9c,_0x1092eb,_0x5b3a96,_0x56ae45));}_0x43166a['info'][_0x551dce]&&(_0x5b59e9[''+(_0x551dce+_0x457bae)]=_0x43166a['info'][_0x551dce]),_0x43166a['headerMap'][_0x551dce+0x1]&&(_0x4636ec[''+(_0x551dce+_0x1324b3+0x1)]=_0x43166a[_0x5db7b3(0x463)][_0x551dce+0x1]);}_0x1324b3+=_0x4672e1;const _0x5dbd07=_0xc31dbc['headerMap'],_0xb3312a=_0xc31dbc[_0x5db7b3(0x1c3)]()>=0x0?_0xc31dbc[_0x5db7b3(0x1c3)]()+0x1:0x0,_0x5f28a7=_0xc31dbc[_0x5db7b3(0x2be)]()>=0x0?_0xc31dbc[_0x5db7b3(0x2be)]()+0x1:0x0;for(let _0x35f009=0x0;_0x35f009<_0xb3312a;_0x35f009++){for(let _0x57f1ff=0x0;_0x57f1ff<_0x5f28a7;_0x57f1ff++){const _0x3a50c9={...(_0x58c8f5=(_0x2a5df0=_0xc31dbc[_0x5db7b3(0x4b0)])==null?void 0x0:_0x2a5df0[_0x35f009])==null?void 0x0:_0x58c8f5[_0x57f1ff]},_0x3c5f3f=(_0x1cd209=_0x5dbd07[_0x57f1ff])==null?void 0x0:_0x1cd209[_0x5db7b3(0x2f5)],_0x29d6d6=_0x3d0a6e[_0x3c5f3f],_0x1722cb=_0x33fd1b[_0x3c5f3f];_0x3a50c9&&(_0x3a50c9['v']=_0x301b46(_0x3a50c9,!0x1,_0x29d6d6,_0x35e4b6));let _0x1c569c;_0xc31dbc['info'][_0x35f009][_0x5db7b3(0x4ce)]===_0xc31dbc['getColCount']()?_0x1c569c=_0x14f4ab[_0x5db7b3(0x4a1)]:_0xc31dbc[_0x5db7b3(0x1fd)][_0x35f009][_0x5db7b3(0x255)]?_0x1c569c=_0xc31dbc[_0x5db7b3(0x1fd)][_0x35f009][_0x5db7b3(0x4ce)]===0x0?_0x14f4ab[_0x5db7b3(0x2c5)]:_0x14f4ab[_0x5db7b3(0x4ad)]:_0x1c569c=_0x14f4ab[_0x5db7b3(0x37b)],_0x29d6d6&&(_0x1c569c={..._0x1c569c,'n':{'pattern':_0x29d6d6}}),_0x11b4f1['setValue'](_0x35f009+_0x1324b3,_0x57f1ff+_0x2e0dde,_0x1b19a0(_0x510e9c,_0x3a50c9,_0x1c569c,_0x1722cb));}_0xc31dbc[_0x5db7b3(0x1fd)][_0x35f009]&&(_0x20990d[''+(_0x35f009+_0x1324b3)]=_0xc31dbc[_0x5db7b3(0x1fd)][_0x35f009]),_0xc31dbc[_0x5db7b3(0x463)][_0x35f009]&&(_0x566ab5[''+(_0x35f009+_0x2e0dde)]=_0xc31dbc['headerMap'][_0x35f009]);}const _0x361394=_0x264be8[_0x5db7b3(0x392)](),_0x21640d=_0x264be8[_0x5db7b3(0x3e3)]();for(let _0x16d04e=0x0;_0x16d04e<_0x361394;_0x16d04e++)for(let _0x1fb38d=0x0;_0x1fb38d<_0x21640d;_0x1fb38d++){const _0x591be4={...(_0x2461e0=(_0x4a7f4e=_0x264be8['data'])==null?void 0x0:_0x4a7f4e[_0x16d04e])==null?void 0x0:_0x2461e0[_0x1fb38d]};let _0x159bbd;_0xc31dbc[_0x5db7b3(0x1fd)][_0x16d04e][_0x5db7b3(0x255)]?_0x159bbd=_0xc31dbc[_0x5db7b3(0x1fd)][_0x16d04e][_0x5db7b3(0x4ce)]===0x0?_0x14f4ab['grandTotal']:_0x14f4ab[_0x5db7b3(0x4ad)]:_0x159bbd=_0x14f4ab[_0x5db7b3(0x2e4)];const _0x15a418=_0xc31dbc['info'][_0x16d04e]['valueIndex'],_0x90528=_0x43166a[_0x5db7b3(0x1fd)][_0x1fb38d]['valueIndex'],_0x3495df=Math[_0x5db7b3(0x489)](_0x15a418,_0x90528),_0x47cc2f=_0x34879c[_0x5db7b3(0x473)][_0x5db7b3(0x3b9)][_0x5db7b3(0x207)]();let _0x35319b='';_0x3495df<0x0?_0x35319b=(_0x5c7598=_0x47cc2f[0x0])!=null?_0x5c7598:'':_0x35319b=(_0xb5587c=_0x47cc2f[_0x3495df])!=null?_0xb5587c:'';const _0x343191=_0x3d0a6e[_0x35319b];_0x343191&&(_0x159bbd={..._0x159bbd,'n':{'pattern':_0x343191}}),_0x11b4f1[_0x5db7b3(0x412)](_0x16d04e+_0x1324b3,_0x1fb38d+_0x457bae,_0x1b19a0(_0x510e9c,_0x591be4,_0x159bbd));}return{'valueMatrix':_0x11b4f1,'rowInfo':_0x20990d,'colInfo':_0x5b59e9,'cornerInfo':_0x5a3c42,'rowHeaderMap':_0x566ab5,'colHeaderMap':_0x4636ec};};function _0x301b46(_0x1ac15a,_0x137502,_0x196057,_0xb5a1ba){const _0x268454=_0x58458d;let _0x152f11=_0x1ac15a['v'];_0x137502&&(_0x152f11=''+_0xb5a1ba[_0x268454(0x2f3)]);const _0x29dc5e=_0x1ac15a['t']&&(_0x1ac15a['t']&_0x3ccc66[_0x268454(0x3a6)][_0x268454(0x21e)])>0x0;if(_0x29dc5e&&(_0x152f11=''+_0xb5a1ba['sheets-pivot.blank']),_0x1ac15a['s']===_0x3ccc66[_0x268454(0x3da)][_0x268454(0x2df)]){let _0x12dcb0=_0x152f11,_0x4f4d1d='';_0x3ccc66[_0x268454(0x383)](_0x152f11)&&(_0x12dcb0=_0x152f11[_0x268454(0x242)],_0x4f4d1d=_0x152f11[_0x268454(0x40c)]);const _0x5e6e30=_0x196057&&!_0x29dc5e?_0x497af0[_0x268454(0x38b)][_0x268454(0x3c5)](_0x196057,Number(_0x12dcb0)):_0x12dcb0;_0x4f4d1d?_0x152f11=_0x5e6e30+'\x20'+_0x4f4d1d:_0x152f11=_0x5e6e30+'\x20'+_0xb5a1ba[_0x268454(0x467)];}else _0x1ac15a['s']===_0x3ccc66[_0x268454(0x3da)][_0x268454(0x23c)]&&(_0x152f11=_0x152f11+'\x20'+_0xb5a1ba['sheets-pivot.grandTotal']);return _0x152f11;}function _0x232c4f(_0x4db47a){const _0x57beec=_0x58458d;if(_0x3ccc66['isErrorValue'](_0x4db47a)){const {errorType:_0x696310}=_0x4db47a;switch(_0x696310){case _0x3ccc66[_0x57beec(0x460)]['Div0']:return _0x1fe373[_0x57beec(0x3fe)][_0x57beec(0x3c0)];case _0x3ccc66[_0x57beec(0x460)]['NotNumber']:return _0x1fe373[_0x57beec(0x3fe)][_0x57beec(0x3ee)];case _0x3ccc66['PivotErrorTypeEnum'][_0x57beec(0x3f1)]:return _0x1fe373[_0x57beec(0x3fe)][_0x57beec(0x48d)];case _0x3ccc66['PivotErrorTypeEnum'][_0x57beec(0x45e)]:return _0x1fe373[_0x57beec(0x3fe)][_0x57beec(0x48d)];case _0x3ccc66[_0x57beec(0x460)][_0x57beec(0x2b8)]:return _0x1fe373[_0x57beec(0x3fe)][_0x57beec(0x281)];}}return _0x4db47a;}function _0x2ea9fe(_0x2e2162,_0x229107,_0x2a60fc=!0x1,_0x2a0b11=!0x1){const _0x4a87f5=_0x58458d,{data:_0x5da866}=_0x229107,_0x4d472a=_0x229107['getRowCount'](),_0x441d6a=_0x229107['getColCount']();if(_0x4d472a<=0x0||_0x441d6a<=0x0)return[];const _0x247329=_0x229107[_0x4a87f5(0x2be)](),_0x47fb6d=_0x229107[_0x4a87f5(0x1c3)](),_0x41c923=_0x2a0b11?_0x47fb6d>=0x0?_0x47fb6d+0x1:0x0:_0x4d472a,_0x59848f=_0x2a0b11?_0x247329>=0x0?_0x247329+0x1:0x0:_0x441d6a,{row:_0x428bd8,col:_0x33008e}=_0x2e2162,_0x5dd4a1=_0x428bd8,_0xe357e0=_0x33008e;if(_0x2a60fc){const _0x374b84=[];for(const [_0x1bc77f,_0x51041f]of Object[_0x4a87f5(0x20b)](_0x5da866))for(const [_0x18154a,_0x21ef11]of Object[_0x4a87f5(0x20b)](_0x51041f))_0x374b84['push'](_0x497af0['cellToRange'](_0x5dd4a1+Number(_0x1bc77f),_0xe357e0+Number(_0x18154a)));return _0x374b84;}else{const _0x429a81=_0x2a0b11?_0x41c923>0x0?0x1:0x0:0x1,_0x59f0ab=_0x2a0b11?_0x59848f>0x0?0x1:0x0:0x1,_0x14c27b=_0x428bd8+_0x41c923-_0x429a81,_0xfde3a3=_0x33008e+_0x59848f-_0x59f0ab;return[{'startRow':_0x5dd4a1,'startColumn':_0xe357e0,'endRow':_0x14c27b,'endColumn':_0xfde3a3}];}}const _0x3213d0=_0x58458d(0x424),_0x3cd3ad='SHEET_PIVOT_EXCLUSIVE_ID';var _0x34f406=(_0x58974f=>(_0x58974f[_0x58458d(0x2e7)]=_0x58458d(0x40d),_0x58974f[_0x58458d(0x37d)]=_0x58458d(0x3e8),_0x58974f[_0x58458d(0x223)]=_0x58458d(0x3bf),_0x58974f['AddPivotTableWithConfig']='AddPivotTableWithConfig',_0x58974f[_0x58458d(0x40a)]=_0x58458d(0x367),_0x58974f[_0x58458d(0x26c)]=_0x58458d(0x341),_0x58974f[_0x58458d(0x41c)]='removePivotField',_0x58974f[_0x58458d(0x403)]=_0x58458d(0x36f),_0x58974f[_0x58458d(0x454)]='setPivotFilter',_0x58974f[_0x58458d(0x408)]='setPivotSort',_0x58974f['SetPivotSetting']=_0x58458d(0x1e4),_0x58974f[_0x58458d(0x449)]=_0x58458d(0x29d),_0x58974f[_0x58458d(0x23b)]=_0x58458d(0x1be),_0x58974f[_0x58458d(0x2a8)]='drillDown',_0x58974f[_0x58458d(0x30d)]=_0x58458d(0x443),_0x58974f[_0x58458d(0x262)]=_0x58458d(0x23e),_0x58974f[_0x58458d(0x3bd)]='resetPivotTable',_0x58974f))(_0x34f406||{});const _0x16120b={'sheets-pivot.blankValue':_0x58458d(0x499),'sheets-pivot.columnName':_0x58458d(0x237),'sheets-pivot.subTotalText':_0x58458d(0x476),'sheets-pivot.grandTotalText':_0x58458d(0x457),'sheets-pivot.valueText':_0x58458d(0x1ca),'sheets-pivot.averageName':'Average\x20of\x20','sheets-pivot.countName':_0x58458d(0x2da),'sheets-pivot.countNumsName':_0x58458d(0x2da),'sheets-pivot.maxName':_0x58458d(0x23d),'sheets-pivot.minName':_0x58458d(0x32f),'sheets-pivot.productName':_0x58458d(0x24c),'sheets-pivot.stdDevName':_0x58458d(0x32c),'sheets-pivot.stdDevpName':_0x58458d(0x2a9),'sheets-pivot.sumName':'Sum\x20of\x20','sheets-pivot.varName':_0x58458d(0x404),'sheets-pivot.varpName':_0x58458d(0x252),'sheets-pivot.subTotal':_0x58458d(0x2df),'sheets-pivot.grandTotal':_0x58458d(0x457),'sheets-pivot.value':'value','sheets-pivot.blank':'blank','sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':_0x58458d(0x321),'sheets-pivot.emptyPivot.column':_0x58458d(0x3b5),'sheets-pivot.emptyPivot.values':_0x58458d(0x401)},_0x2a427f={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x2518b2=_0x497af0[_0x58458d(0x35a)](_0x58458d(0x4bb)),_0xab1420=_0x497af0[_0x58458d(0x266)]('pivotMutationGenerate');var _0x3ebc51=(_0x23da02=>(_0x23da02[_0x58458d(0x46d)]=_0x58458d(0x46d),_0x23da02[_0x58458d(0x336)]=_0x58458d(0x336),_0x23da02[_0x58458d(0x440)]=_0x58458d(0x440),_0x23da02))(_0x3ebc51||{}),_0x1d1e60=(_0x41dac4=>(_0x41dac4['Add']=_0x58458d(0x46d),_0x41dac4[_0x58458d(0x1b9)]=_0x58458d(0x202),_0x41dac4[_0x58458d(0x312)]=_0x58458d(0x336),_0x41dac4))(_0x1d1e60||{});const _0x5bab91={0x0:'Q',0x1:'b',0x2:'h',0x3:'x',0x4:'m',0x5:'y',0x6:'E',0x7:'w',0x8:'9',0x9:'7','k':'0','r':'1','d':'2','l':'3','w':'4','Z':'5','y':'6','e':'8','h':'a','i':'c','C':'d','N':'e','a':'f','I':'g','t':'i','b':'j','v':'k','L':'l','j':'n','n':'o','g':'p','D':'q','H':'r','S':'s','Q':'t','p':'u','X':'v','P':'z','Y':'A','o':'B','M':'C','A':'D','T':'F','F':'G','s':'H','G':'I','U':'J','q':'K','O':'L','J':'M','K':'N','B':'O','E':'P','z':'R','m':'S','R':'T','W':'U','f':'V','x':'W','c':'X','u':'Y','V':'Z'},_0x3c9e2a=_0x58458d(0x361),_0x3c24cc={'type':_0x497af0['CommandType'][_0x58458d(0x1db)],'id':_0x58458d(0x22c),'handler':()=>!0x0},_0x3fe3ea={'type':_0x497af0['CommandType'][_0x58458d(0x1db)],'id':'sheet.mutation.send-pivot-data-local','handler':()=>!0x0},_0x460118={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},_0x2489ce={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':'sheet.mutation.send-pivot-config-local','handler':()=>!0x0},_0x1dd4e2={'type':_0x497af0['CommandType']['MUTATION'],'id':'sheet.mutation.send-init-pivot-text-local','handler':()=>!0x0},_0x1a8e6b=_0x23ef8c=>{const _0x1e654f=_0x58458d;var _0x3a46d2;return((_0x3a46d2=_0x23ef8c['body'])==null?void 0x0:_0x3a46d2[_0x1e654f(0x3eb)][_0x1e654f(0x375)](/\r\n$/,''))||'';};class _0x1c1428 extends _0x3ccc66['DataFieldManager']{constructor(_0x15ed81,_0x54eb97){const _0x20d075=_0x58458d;super(),_0x5ebdc4(this,'rangeKeyMap',{}),_0x5ebdc4(this,_0x20d075(0x1ff)),_0x5ebdc4(this,'_host'),(this[_0x20d075(0x1ff)]=_0x54eb97,this[_0x20d075(0x4d1)]=_0x15ed81);}['initDataRanges'](){const _0x1773d7=_0x58458d;for(const _0xb2d6b8 in this[_0x1773d7(0x29a)]){const _0x487a26=this[_0x1773d7(0x29a)][_0xb2d6b8],_0x4b6bcf=_0x487a26[_0x1773d7(0x48e)]();this['rangeKeyMap'][_0x4b6bcf]=_0x487a26['getId']();}}['getAutoDisplayNameFunction'](){const _0xdca186=_0x58458d,_0x14b7cc=this['_host'];return _0x104d4f[_0xdca186(0x35c)](_0x14b7cc);}[_0x58458d(0x49e)](_0x5e44e5){const _0x194a59=this['dataFields'][_0x5e44e5]['rangeKey'];delete this['dataFields'][_0x5e44e5],delete this['rangeKeyMap'][_0x194a59];}[_0x58458d(0x1d2)](_0x4bd699){const _0x53f726=_0x58458d;this[_0x53f726(0x29a)][_0x4bd699['getId']()]=_0x4bd699;}[_0x58458d(0x3ff)](_0x25bb01){const _0x1a67fd=_0x58458d;var _0x17f3f3,_0x7aa57b;const _0x215111=this[_0x1a67fd(0x4d1)][_0x1a67fd(0x3ab)](_0x25bb01);if(_0x215111){const {unitId:_0x20ece8,subUnitId:_0x31db70}=_0x215111,_0x4c3dc8=(_0x17f3f3=this[_0x1a67fd(0x4d1)][_0x1a67fd(0x2ef)](_0x20ece8,_0x31db70,_0x25bb01))==null?void 0x0:_0x17f3f3[_0x1a67fd(0x4cc)];this['_host']['broadcastCollectionChange']({'token':_0x25bb01,'type':_0x3ebc51['delete'],'dataRangeInfo':_0x4c3dc8});}(_0x7aa57b=this[_0x1a67fd(0x278)](_0x25bb01))==null||_0x7aa57b[_0x1a67fd(0x222)](),delete this[_0x1a67fd(0x4b7)][_0x25bb01];}[_0x58458d(0x48e)](_0x399d84,_0x520337){const {sheetName:_0xa8723b,unitId:_0x476822,range:_0x4f6191}=_0x399d84,{startRow:_0x1ff79d,endRow:_0x36a08f}=_0x4f6191;return _0x1fe373['serializeRangeWithSpreadsheet'](_0x476822,_0xa8723b,{'startRow':_0x1ff79d,'endRow':_0x36a08f,'startColumn':_0x520337,'endColumn':_0x520337});}[_0x58458d(0x29b)](_0x36d479){const _0x3946e4=_0x58458d;return this[_0x3946e4(0x29a)][this[_0x3946e4(0x43e)][_0x36d479]];}[_0x58458d(0x2fa)](_0x1bf070,_0x118795){const _0x4dff0e=_0x58458d;this[_0x4dff0e(0x43e)][_0x1bf070]=_0x118795;}[_0x58458d(0x23f)](_0x3ad64c,_0x266414){const _0x4e1c81=_0x58458d;this[_0x4e1c81(0x43e)][_0x266414]=this['rangeKeyMap'][_0x3ad64c],delete this[_0x4e1c81(0x43e)][_0x3ad64c];}[_0x58458d(0x3b3)](_0x11dc3b,_0x2fafdf,_0x56f7df,_0x1b69eb){const _0x5106c7=_0x58458d,_0x2aaeb1=new _0x3ccc66[(_0x5106c7(0x20c))](this);_0x2aaeb1['fromJSON'](_0x2fafdf);const _0x4bb210=[];let _0x47e3d8=0x0;for(const _0x382470 of _0x2aaeb1[_0x5106c7(0x216)]){const _0x495294=this['getRangeKey'](_0x56f7df,_0x47e3d8),_0x32117c=this['dataFields'][_0x382470];_0x32117c&&(_0x32117c[_0x5106c7(0x225)]=_0x495294,this[_0x5106c7(0x2fa)](_0x495294,_0x382470),_0x4bb210[_0x5106c7(0x384)]({'index':_0x47e3d8,'dataField':_0x32117c})),_0x47e3d8++;}return this['addCollection'](_0x11dc3b,_0x2aaeb1,_0x56f7df,_0x1b69eb),{'collection':_0x2aaeb1,'updateDataFieldList':_0x4bb210};}[_0x58458d(0x39c)](_0x3082c4,_0x1ee7f0){const _0x16f262=_0x58458d;return _0x3082c4[_0x16f262(0x3e0)]===_0x497af0[_0x16f262(0x2fc)][_0x16f262(0x487)]?{'startRow':0x0,'startColumn':_0x3082c4[_0x16f262(0x274)],'endRow':_0x1ee7f0[_0x16f262(0x392)]()-0x1,'endColumn':_0x3082c4[_0x16f262(0x300)]}:{'startRow':_0x3082c4[_0x16f262(0x280)],'startColumn':_0x3082c4['startColumn'],'endRow':_0x3082c4[_0x16f262(0x33d)],'endColumn':_0x3082c4[_0x16f262(0x300)]};}['createCollectionWithDataRange'](_0x251d2c){const _0x2f1466=_0x58458d,{sheetName:_0x4238d7,range:_0x75ef79}=_0x251d2c,_0xc31789=this[_0x2f1466(0x1ff)][_0x2f1466(0x3db)](_0x497af0[_0x2f1466(0x318)]['UNIVER_SHEET']),_0x559de2=_0xc31789['getSheetBySheetName'](_0x4238d7),_0x36c791=_0x559de2['getCellMatrix'](),{startColumn:_0x57dbe3,startRow:_0x12bbd7,endColumn:_0x4834b6}=this[_0x2f1466(0x39c)](_0x75ef79,_0x559de2),_0x19716c=_0xc31789[_0x2f1466(0x331)](),_0x487a2e=new _0x3ccc66['FieldsCollection'](this);_0x487a2e[_0x2f1466(0x3ac)](_0x251d2c);const _0x1f4031=[],_0x5f58df={};for(let _0x4c829c=_0x57dbe3;_0x4c829c<=_0x4834b6;_0x4c829c++){const _0x4ddbf1=_0x36c791[_0x2f1466(0x323)](_0x12bbd7,_0x4c829c),_0x1f16e7=this[_0x2f1466(0x48e)](_0x251d2c,_0x4c829c),_0x15c5af=this[_0x2f1466(0x29b)](_0x1f16e7);if(_0x15c5af)_0x487a2e[_0x2f1466(0x3bc)](_0x15c5af[_0x2f1466(0x204)](),_0x15c5af[_0x2f1466(0x36c)]());else{const _0x5afd47=this[_0x2f1466(0x3f6)]();let _0x2ebc38=this['adjustSheetCellData'](_0x4ddbf1,_0x19716c,_0x5f58df);_0x3ccc66['isDateValue'](_0x2ebc38)&&(_0x2ebc38=_0x497af0[_0x2f1466(0x38b)][_0x2f1466(0x3c5)](_0x2ebc38['f'],Number(_0x2ebc38['v'])));const _0x2658bd=this[_0x2f1466(0x421)](_0x2ebc38,_0x4c829c),_0x4bf3af=new _0x3ccc66[(_0x2f1466(0x374))](_0x5afd47,_0x2658bd,_0x3ccc66[_0x2f1466(0x27c)](0x3));_0x4bf3af[_0x2f1466(0x225)]=_0x1f16e7,this[_0x2f1466(0x29a)][_0x5afd47]=_0x4bf3af,_0x487a2e[_0x2f1466(0x3bc)](_0x5afd47,_0x2658bd),_0x1f4031[_0x2f1466(0x384)]({'index':_0x4c829c,'dataField':_0x4bf3af});}}return{'updateDataFieldList':_0x1f4031,'collection':_0x487a2e};}[_0x58458d(0x27f)](_0x453493){const _0x4dd53b=_0x58458d;return this[_0x4dd53b(0x4d1)][_0x4dd53b(0x344)]()[_0x4dd53b(0x264)]+'\x20'+_0x497af0['numberToABC'](_0x453493);}[_0x58458d(0x421)](_0x3b9ae1,_0x4d01c8){const _0x49c056=_0x58458d;return _0x3b9ae1==null||_0x3b9ae1===''?this[_0x49c056(0x27f)](_0x4d01c8):String(_0x3b9ae1);}[_0x58458d(0x278)](_0x485c8c){return this['collections'][_0x485c8c];}[_0x58458d(0x2a2)](_0x8f07c7,_0x3884de,_0x4a0ddb,_0x297af1){const _0x40456c=_0x58458d;this['collections'][_0x8f07c7]=_0x3884de,_0x3884de[_0x40456c(0x3ac)](_0x4a0ddb),this['_host'][_0x40456c(0x25b)]({'token':_0x8f07c7,'type':_0x3ebc51['add'],'dataRangeInfo':_0x4a0ddb,'targetCellInfo':_0x297af1});}[_0x58458d(0x441)](_0x1e47d8,_0x4acbba){const _0x2af20d=_0x58458d,_0x4145cd=this[_0x2af20d(0x278)](_0x1e47d8),_0x5c921c=_0x4145cd[_0x2af20d(0x2d3)]();let _0x193db4=0x0;for(const _0x8c725d of _0x5c921c){const _0x462204=_0x4145cd[_0x2af20d(0x22e)](_0x8c725d),_0x561b50=this[_0x2af20d(0x48e)](_0x4acbba,_0x193db4);this[_0x2af20d(0x23f)](_0x462204[_0x2af20d(0x225)],_0x561b50),_0x193db4++;}}[_0x58458d(0x29c)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x58458d(0x4ca)](_0xcd2939,_0x4da6c1){const _0x734b35=_0x58458d;if(this[_0x734b35(0x278)](_0xcd2939)){const _0x108f26=this[_0x734b35(0x470)](_0x4da6c1),_0x1aaec9=[];for(const _0x4b7941 of _0x108f26)this[_0x734b35(0x43e)][_0x4b7941]!==void 0x0&&_0x1aaec9['push'](this['rangeKeyMap'][_0x4b7941]);const _0x2b1170=this[_0x734b35(0x1c5)](_0xcd2939),_0x383e3e=[],_0x43f3cb=new Set(_0x1aaec9);for(const _0x5382e1 of _0x2b1170)_0x43f3cb[_0x734b35(0x2ec)](_0x5382e1)||_0x383e3e['push'](_0x5382e1);return _0x383e3e;}}[_0x58458d(0x1ce)](_0x1d5c26,_0x4cd2a8,_0x14fd15,_0x3a0db5,_0x3a9a2a){const _0x1bc29f=_0x58458d;return _0x4cd2a8&&_0x4cd2a8[_0x1bc29f(0x323)](_0x3a0db5,_0x3a9a2a)?_0x4cd2a8[_0x1bc29f(0x323)](_0x3a0db5,_0x3a9a2a):_0x14fd15&&_0x14fd15[_0x1bc29f(0x323)](_0x3a0db5,_0x3a9a2a)?_0x14fd15[_0x1bc29f(0x323)](_0x3a0db5,_0x3a9a2a):_0x1d5c26[_0x1bc29f(0x323)](_0x3a0db5,_0x3a9a2a);}['refreshDataField'](_0x59090e,_0x4f2edc,_0x39adf5,_0x49fb96){const _0x3e46db=_0x58458d,_0x57eba4=this[_0x3e46db(0x29a)][_0x59090e];if(!_0x57eba4)return;const {subUnitId:_0x333163,range:_0x24ee17,unitId:_0x3e219f}=_0x4f2edc,_0x3207b0=this['_univerInstanceService'][_0x3e46db(0x33f)](_0x3e219f);if(!_0x3207b0){console['error'](_0x3e46db(0x32e));return;}const _0x2f8c88=_0x3207b0[_0x3e46db(0x2ba)](_0x333163),_0x2cfb20=_0x2f8c88['getCellMatrix'](),{arrayFormulaCellDataMatrix:_0x1667f8,unitDataMatrix:_0x4a3d6e}=_0x49fb96||{},{startRow:_0x223a42,startColumn:_0x24761e,endRow:_0x3f1799}=this[_0x3e46db(0x39c)](_0x24ee17,_0x2f8c88);_0x57eba4[_0x3e46db(0x433)]();const _0x2165bc=_0x3207b0[_0x3e46db(0x331)](),_0x1acb1c={},_0x55bfd9=this['getMatrixValue'](_0x2cfb20,_0x1667f8,_0x4a3d6e,_0x223a42,_0x24761e+_0x39adf5);let _0x857b96=this[_0x3e46db(0x221)](_0x55bfd9,_0x2165bc,_0x1acb1c);_0x3ccc66['isDateValue'](_0x857b96)&&(_0x857b96=_0x497af0['numfmt'][_0x3e46db(0x3c5)](_0x857b96['f'],Number(_0x857b96['v'])));const _0x32714e=this['uniqueDataFieldName'](_0x857b96,_0x24761e+_0x39adf5);_0x57eba4[_0x3e46db(0x1f2)](_0x32714e);for(let _0x1da342=_0x223a42+0x1;_0x1da342<=_0x3f1799;_0x1da342++){const _0xb9c706=this[_0x3e46db(0x1ce)](_0x2cfb20,_0x1667f8,_0x4a3d6e,_0x1da342,_0x24761e+_0x39adf5);_0x57eba4[_0x3e46db(0x1ea)](this[_0x3e46db(0x221)](_0xb9c706,_0x2165bc,_0x1acb1c),_0x1da342-0x1-_0x223a42);}}[_0x58458d(0x400)](_0x2ad31b,_0x12141e,_0x147265){const _0x57b03f=_0x58458d,{subUnitId:_0x4256d0,range:_0xb1ebd2,unitId:_0x9f6ddd}=_0x147265,_0x462cf2=this['_univerInstanceService'][_0x57b03f(0x33f)](_0x9f6ddd);if(!_0x462cf2){console['error'](_0x57b03f(0x32e));return;}const _0x51d209=_0x462cf2[_0x57b03f(0x2ba)](_0x4256d0),_0x1ee407=_0x51d209[_0x57b03f(0x33b)](),{startRow:_0x10f2e6,startColumn:_0x1c564b,endRow:_0x1b27db}=this[_0x57b03f(0x39c)](_0xb1ebd2,_0x51d209),_0x4b20c1=_0x462cf2[_0x57b03f(0x331)](),_0x4a080f={};for(const {dataField:_0x2f3e78,index:_0x3f81d3}of _0x12141e){_0x2f3e78['reset']();const _0x4e0b56=this[_0x57b03f(0x1ce)](_0x1ee407,void 0x0,void 0x0,_0x10f2e6,_0x1c564b+_0x3f81d3);let _0x59e977=this[_0x57b03f(0x221)](_0x4e0b56,_0x4b20c1,_0x4a080f);_0x3ccc66[_0x57b03f(0x3d9)](_0x59e977)&&(_0x59e977=_0x497af0[_0x57b03f(0x38b)][_0x57b03f(0x3c5)](_0x59e977['f'],Number(_0x59e977['v'])));const _0x44b8da=this[_0x57b03f(0x421)](_0x59e977,_0x1c564b+_0x3f81d3);_0x2f3e78[_0x57b03f(0x1f2)](_0x44b8da);}_0x2ad31b[_0x57b03f(0x1d9)]();for(let _0x2597be=_0x10f2e6+0x1;_0x2597be<=_0x1b27db;_0x2597be++)for(const {index:_0x7d651d,dataField:_0xf6a4b}of _0x12141e){const _0x18a252=_0x1ee407['getValue'](_0x2597be,_0x1c564b+_0x7d651d);_0xf6a4b['addRecord'](this[_0x57b03f(0x221)](_0x18a252,_0x4b20c1,_0x4a080f),_0x2597be-0x1-_0x10f2e6);}_0x2ad31b['setDataRecordCount'](_0x1b27db-_0x10f2e6);}[_0x58458d(0x470)](_0x3e7587){const _0x1ce0e9=_0x58458d,{range:_0x2d9f11}=_0x3e7587,{startColumn:_0x2c4527,endColumn:_0x411c73}=_0x2d9f11,_0x322e24=[];for(let _0x8c1e10=_0x2c4527;_0x8c1e10<=_0x411c73;_0x8c1e10++)_0x322e24[_0x1ce0e9(0x384)](this[_0x1ce0e9(0x48e)](_0x3e7587,_0x8c1e10));return _0x322e24;}[_0x58458d(0x221)](_0x5228f8,_0x4ab12b,_0x2c0ce7){const _0x3ba6be=_0x58458d;if(_0x5228f8){const {s:_0x55cd2f,v:_0x34070b,t:_0x1cfd83,p:_0x4f23e6}=_0x5228f8;if(_0x4f23e6)return _0x1a8e6b(_0x4f23e6);const _0x2e9404=_0x4ab12b[_0x3ba6be(0x263)](_0x55cd2f);if(_0x2e9404&&_0x1cfd83===_0x497af0[_0x3ba6be(0x1bd)][_0x3ba6be(0x2c3)]&&_0x2e9404['n']){const {pattern:_0xa1ae40}=_0x2e9404['n'];_0x2c0ce7[_0xa1ae40]||(_0x2c0ce7[_0xa1ae40]=_0x497af0[_0x3ba6be(0x38b)]['getFormatInfo'](_0xa1ae40));const _0x264be4=_0x2c0ce7[_0xa1ae40],_0x2f0ab8=_0x264be4[_0x3ba6be(0x30b)];if(_0x264be4['isText'])return String(_0x34070b);if(_0x2f0ab8)return{'v':_0x34070b,'f':_0xa1ae40};}if(_0x1cfd83===_0x497af0[_0x3ba6be(0x1bd)][_0x3ba6be(0x2c3)])return Number(_0x34070b);if(_0x1cfd83===_0x497af0[_0x3ba6be(0x1bd)][_0x3ba6be(0x246)]||_0x1cfd83===_0x497af0['CellValueType'][_0x3ba6be(0x238)])return String(_0x34070b);if(_0x1cfd83===void 0x0){const _0x29ea64=Number(_0x34070b);if(!Number['isNaN'](_0x29ea64)&&String(_0x29ea64)===_0x34070b)return _0x29ea64;}return _0x34070b!=null?_0x34070b:null;}else return null;}[_0x58458d(0x292)](_0x409f09){const _0x4fbad5=_0x58458d,{sheetName:_0x47a76b,range:_0x19f874,unitId:_0x47f0df}=_0x409f09,_0x5d11a7=this[_0x4fbad5(0x1ff)][_0x4fbad5(0x33f)](_0x47f0df);if(!_0x5d11a7)return console[_0x4fbad5(0x4c6)](_0x4fbad5(0x32e)),{'header':[],'data':[]};const _0x9e3016=_0x5d11a7[_0x4fbad5(0x299)](_0x47a76b),_0xd85445=_0x9e3016[_0x4fbad5(0x33b)](),{startRow:_0x28f06f,startColumn:_0x464e90,endRow:_0x53563b,endColumn:_0x2be4ce}=this[_0x4fbad5(0x39c)](_0x19f874,_0x9e3016),_0x5859fa=_0x5d11a7[_0x4fbad5(0x331)](),_0x5762cf=[],_0x18cabe=[],_0x491ce0={};for(let _0x50cdf1=_0x28f06f;_0x50cdf1<=_0x53563b;_0x50cdf1++){const _0x20dafb=[];for(let _0x30701d=_0x464e90;_0x30701d<=_0x2be4ce;_0x30701d++){const _0x4f4c40=_0xd85445[_0x4fbad5(0x323)](_0x50cdf1,_0x30701d);_0x50cdf1===_0x28f06f?_0x5762cf[_0x4fbad5(0x384)](_0x4f4c40==null?null:String(_0x4f4c40['v'])):_0x20dafb[_0x4fbad5(0x384)](this['adjustSheetCellData'](_0x4f4c40,_0x5859fa,_0x491ce0));}_0x18cabe[_0x4fbad5(0x384)](_0x20dafb);}return{'header':_0x5762cf,'data':_0x18cabe};}[_0x58458d(0x314)](){const _0x587356=_0x58458d;return super[_0x587356(0x314)]();}[_0x58458d(0x4c2)](_0x4dd049){const _0x4f0022=_0x58458d;super[_0x4f0022(0x4c2)](_0x4dd049),this[_0x4f0022(0x34f)]();}[_0x58458d(0x222)](){const _0x255d24=_0x58458d;super[_0x255d24(0x222)](),this[_0x255d24(0x43e)]={},this['_host']=null;}}const _0x212c28=_0x4f0f39=>{const _0x1f433b=_0x58458d,{targetCellInfo:_0x3cbf92}=_0x4f0f39,{matrixCache:_0x1e42f5,rangesCache:_0x2501bb}=_0x31ab7b({'filter':_0x1f433b(0x2e7),'row':_0x1f433b(0x321),'column':'Column','values':'Values'},_0x3cbf92),_0x60dd17=new _0x497af0[(_0x1f433b(0x2a0))]();return _0x1e42f5['forValue']((_0x136e91,_0x358a73,_0x3adf04)=>{const _0x51aec3=_0x1f433b;_0x60dd17[_0x51aec3(0x412)](_0x136e91,_0x358a73,_0x3adf04);}),{'matrix':_0x60dd17,'rangesCache':_0x2501bb};},_0x10a7d1=_0x226125=>{const _0x50394b=_0x58458d;let _0x164dd7;if(_0x226125!=null&&_0x226125['v']||(_0x226125==null?void 0x0:_0x226125['v'])===0x0){_0x164dd7||(_0x164dd7={});const _0x577422=_0x232c4f(_0x226125['v']);typeof _0x577422=='number'?_0x164dd7['t']=_0x497af0[_0x50394b(0x1bd)][_0x50394b(0x2c3)]:typeof _0x577422==_0x50394b(0x48b)&&(_0x164dd7['t']=_0x497af0[_0x50394b(0x1bd)][_0x50394b(0x246)]),_0x164dd7['v']=_0x577422;}return _0x164dd7;},_0x31298e=(_0xaccb4d,_0x5bd760,_0x316787)=>{const _0x5dbea8=_0x58458d;var _0x7cd0b2,_0x1812e8,_0x846185,_0x18dbd6,_0x2d9d29,_0x9607ae,_0x78656d,_0x1d4436,_0x4e339d,_0xac6c2b,_0x538af2,_0xe3c677;const {cornerView:_0x423fc6,rowView:_0x10b9a0,colView:_0x2a81b9,dataView:_0x387b98,pageView:_0xf8cf7e,formatMap:_0x3e8a84}=_0xaccb4d,{row:_0x4373ea,col:_0x5bc62f}=_0x5bd760,_0x436bfa=new _0x497af0[(_0x5dbea8(0x2a0))]();let _0x49a4dd=_0x4373ea,_0x4e41f8=_0x5bc62f;Object[_0x5dbea8(0x302)](_0xf8cf7e[_0x5dbea8(0x4b0)])[_0x5dbea8(0x466)](_0x8d6dc8=>{const _0x2a91e2=_0x5dbea8;Object[_0x2a91e2(0x302)](_0xf8cf7e[_0x2a91e2(0x4b0)][Number(_0x8d6dc8)])['forEach'](_0x345be1=>{const _0x5d0f92={..._0xf8cf7e['data'][Number(_0x8d6dc8)][Number(_0x345be1)]};_0x436bfa['setValue'](Number(_0x8d6dc8)+_0x49a4dd,Number(_0x345be1)+_0x4e41f8,_0x10a7d1(_0x5d0f92));});});const _0x209e94=Object[_0x5dbea8(0x302)](_0xf8cf7e[_0x5dbea8(0x4b0)])[_0x5dbea8(0x24e)];_0x49a4dd+=_0x209e94+(_0x209e94?_0x133e7e:0x0);const _0x372adf=_0x423fc6[_0x5dbea8(0x392)](),_0x7b1dcc=_0x423fc6[_0x5dbea8(0x3e3)]();for(let _0x4600a8=0x0;_0x4600a8<_0x372adf;_0x4600a8++)for(let _0x5bacc3=0x0;_0x5bacc3<_0x7b1dcc;_0x5bacc3++){const _0xa24227={...(_0x1812e8=(_0x7cd0b2=_0x423fc6[_0x5dbea8(0x4b0)])==null?void 0x0:_0x7cd0b2[_0x4600a8])==null?void 0x0:_0x1812e8[_0x5bacc3]};_0xa24227&&((_0x846185=_0x10b9a0[_0x5dbea8(0x463)][_0x5bacc3])!=null&&_0x846185['isValue'])&&_0x5bacc3===_0x7b1dcc-0x1&&_0x4600a8===_0x372adf-0x1&&(_0xa24227['v']=''+_0x316787[_0x5dbea8(0x2f3)]),_0x436bfa['setValue'](_0x4600a8+_0x49a4dd,_0x5bacc3+_0x4e41f8,_0x10a7d1(_0xa24227));}_0x4e41f8+=_0x7b1dcc;const _0x2a252a=_0x2a81b9[_0x5dbea8(0x463)],_0x35c108=_0x2a81b9[_0x5dbea8(0x1c3)]()>=0x0?_0x2a81b9[_0x5dbea8(0x1c3)]()+0x1:0x0,_0x201751=_0x2a81b9[_0x5dbea8(0x2be)]()>=0x0?_0x2a81b9[_0x5dbea8(0x2be)]()+0x1:0x0;for(let _0x2d1876=0x0;_0x2d1876<_0x201751;_0x2d1876++)for(let _0x12ddae=0x0;_0x12ddae<_0x35c108;_0x12ddae++){const _0x1c64fb={...(_0x2d9d29=(_0x18dbd6=_0x2a81b9[_0x5dbea8(0x4b0)])==null?void 0x0:_0x18dbd6[_0x2d1876])==null?void 0x0:_0x2d9d29[_0x12ddae]},_0x2b4efa=(_0x9607ae=_0x2a252a[_0x2d1876])==null?void 0x0:_0x9607ae['tableFieldId'],_0x95054e=_0x3e8a84[_0x2b4efa];_0x1c64fb&&(_0x1c64fb['v']=_0x301b46(_0x1c64fb,_0x2d1876===0x0&&((_0x78656d=_0x2a81b9[_0x5dbea8(0x270)](_0x12ddae+0x1))==null?void 0x0:_0x78656d[_0x5dbea8(0x27e)]),_0x95054e,_0x316787)),_0x436bfa['setValue'](_0x2d1876+_0x49a4dd,_0x12ddae+_0x4e41f8,_0x10a7d1(_0x1c64fb));}_0x49a4dd+=_0x372adf;const _0x2241d4=_0x10b9a0[_0x5dbea8(0x463)],_0x2e4e2a=_0x10b9a0[_0x5dbea8(0x1c3)]()>=0x0?_0x10b9a0['getLastRow']()+0x1:0x0,_0xd4a618=_0x10b9a0['getLastCol']()>=0x0?_0x10b9a0[_0x5dbea8(0x2be)]()+0x1:0x0;for(let _0x2c5dfd=0x0;_0x2c5dfd<_0x2e4e2a;_0x2c5dfd++)for(let _0x6bfd15=0x0;_0x6bfd15<_0xd4a618;_0x6bfd15++){const _0x2a54a9={...(_0x4e339d=(_0x1d4436=_0x10b9a0[_0x5dbea8(0x4b0)])==null?void 0x0:_0x1d4436[_0x2c5dfd])==null?void 0x0:_0x4e339d[_0x6bfd15]},_0x4f7552=(_0xac6c2b=_0x2241d4[_0x6bfd15])==null?void 0x0:_0xac6c2b['tableFieldId'],_0x4fe819=_0x3e8a84[_0x4f7552];_0x2a54a9&&(_0x2a54a9['v']=_0x301b46(_0x2a54a9,!0x1,_0x4fe819,_0x316787)),_0x436bfa[_0x5dbea8(0x412)](_0x2c5dfd+_0x49a4dd,_0x6bfd15+_0x5bc62f,_0x10a7d1(_0x2a54a9));}const _0x163112=_0x387b98[_0x5dbea8(0x392)](),_0x3b5b59=_0x387b98[_0x5dbea8(0x3e3)]();for(let _0x59331d=0x0;_0x59331d<_0x163112;_0x59331d++)for(let _0x214cd6=0x0;_0x214cd6<_0x3b5b59;_0x214cd6++){const _0x76d85c={...(_0xe3c677=(_0x538af2=_0x387b98[_0x5dbea8(0x4b0)])==null?void 0x0:_0x538af2[_0x59331d])==null?void 0x0:_0xe3c677[_0x214cd6]};_0x436bfa[_0x5dbea8(0x412)](_0x59331d+_0x49a4dd,_0x214cd6+_0x4e41f8,_0x10a7d1(_0x76d85c));}return _0x436bfa;},_0x58665a=_0x3b9f03=>{const _0x6b2d81=_0x58458d,{view:_0x5a2a8f,targetCellInfo:_0x25ef81,isEmpty:_0x2487a4,textInfo:_0x55f7ab}=_0x3b9f03;if(_0x2487a4)return _0x212c28(_0x3b9f03);const {pageView:_0x20aa8f,cornerView:_0x43ab1f,rowView:_0x23c0e1,colView:_0x317317,dataView:_0x378cb8}=_0x5a2a8f,_0x3cd6da=_0x2ea9fe(_0x25ef81,_0x20aa8f,!0x0),_0x2bb096=_0x20aa8f['lastRow']>=0x0?_0x20aa8f[_0x6b2d81(0x211)]+0x1:0x0,_0x50b207=_0x43ab1f[_0x6b2d81(0x392)](),_0x1e13f7=_0x43ab1f[_0x6b2d81(0x3e3)](),_0x6e3f19=_0x3cd6da[_0x6b2d81(0x24e)]>0x0?_0x133e7e:0x0,_0x3e5355=_0x2ea9fe({'row':_0x25ef81[_0x6b2d81(0x329)]+_0x2bb096+_0x6e3f19,'col':_0x25ef81[_0x6b2d81(0x3e4)]},_0x43ab1f,!0x1,!0x1),_0x28853b=_0x2ea9fe({'row':_0x25ef81[_0x6b2d81(0x329)]+_0x2bb096+_0x6e3f19+_0x50b207,'col':_0x25ef81['col']},_0x23c0e1,!0x1,!0x0),_0x46b34f=_0x2ea9fe({'row':_0x25ef81[_0x6b2d81(0x329)]+_0x2bb096+_0x6e3f19,'col':_0x25ef81['col']+_0x1e13f7},_0x317317,!0x1,!0x0),_0x1849b=_0x2ea9fe({'row':_0x25ef81[_0x6b2d81(0x329)]+_0x2bb096+_0x6e3f19+_0x50b207,'col':_0x25ef81['col']+_0x1e13f7},_0x378cb8,!0x1,!0x1),_0xedd525={'rowRanges':_0x28853b,'colRanges':_0x46b34f,'cornerRanges':_0x3e5355,'dataRanges':_0x1849b,'pageRanges':_0x3cd6da};return{'matrix':_0x31298e(_0x5a2a8f,_0x25ef81,_0x55f7ab),'rangesCache':_0xedd525};};var _0xbb8a7c=Object[_0x58458d(0x1f7)],_0x485831=(_0x19833a,_0x6b6f91,_0x28542e,_0x57a03f)=>{const _0x243565=_0x58458d;for(var _0x2066a2=_0x57a03f>0x1?void 0x0:_0x57a03f?_0xbb8a7c(_0x6b6f91,_0x28542e):_0x6b6f91,_0x2b9637=_0x19833a[_0x243565(0x24e)]-0x1,_0x1a47f3;_0x2b9637>=0x0;_0x2b9637--)(_0x1a47f3=_0x19833a[_0x2b9637])&&(_0x2066a2=_0x1a47f3(_0x2066a2)||_0x2066a2);return _0x2066a2;},_0x2fc120=(_0x3037e8,_0x3af8b8)=>(_0x39b14d,_0x1af073)=>_0x3af8b8(_0x39b14d,_0x1af073,_0x3037e8);_0x38ffc1['SheetsPivotDataSourceModel']=class extends _0x497af0[_0x58458d(0x28c)]{constructor(_0x135082,_0x37da4b,_0x300786,_0x5b1d10,_0xd1ae7d,_0x3d637f){const _0x4b687c=_0x58458d;super(),_0x5ebdc4(this,_0x4b687c(0x261),new Map()),_0x5ebdc4(this,'_pivotTableInstanceCache',new Map()),_0x5ebdc4(this,_0x4b687c(0x326),new Map()),_0x5ebdc4(this,_0x4b687c(0x4c8)),_0x5ebdc4(this,_0x4b687c(0x39a),new _0x5dbc97[(_0x4b687c(0x26a))]()),_0x5ebdc4(this,_0x4b687c(0x34e),this['_collectionChange$']['asObservable']()),_0x5ebdc4(this,_0x4b687c(0x43d),new _0x5dbc97[(_0x4b687c(0x26a))]()),_0x5ebdc4(this,_0x4b687c(0x2ce),this[_0x4b687c(0x43d)][_0x4b687c(0x42e)]()),_0x5ebdc4(this,_0x4b687c(0x2a3),new _0x5dbc97[(_0x4b687c(0x26a))]()),_0x5ebdc4(this,_0x4b687c(0x1bf),this[_0x4b687c(0x2a3)][_0x4b687c(0x42e)]()),_0x5ebdc4(this,'_dataFieldManagerCollection',new Map()),_0x5ebdc4(this,_0x4b687c(0x2f1),[]),_0x5ebdc4(this,'_queryingMap',new Map()),(this['_injector']=_0x135082,this[_0x4b687c(0x1ff)]=_0x37da4b,this[_0x4b687c(0x250)]=_0x300786,this['_configService']=_0x5b1d10,this[_0x4b687c(0x257)]=_0xd1ae7d,this[_0x4b687c(0x31d)]=_0x3d637f,this[_0x4b687c(0x491)]());}[_0x58458d(0x344)](){const _0x53373a=_0x58458d;return this[_0x53373a(0x4c8)]?this[_0x53373a(0x4c8)]:_0x16120b;}['setTextInfo'](_0x4ca28b){const _0x31c891=_0x58458d;this[_0x31c891(0x4c8)]=_0x4ca28b;}[_0x58458d(0x441)](_0x160d22){const _0x1e7014=_0x58458d;var _0x2fdfac;const {from:_0xaafba0,to:_0x80e9aa,unitId:_0x324ca2,fromRange:_0x1d809e,toRange:_0x5ad138}=_0x160d22;if(_0xaafba0&&_0x80e9aa){const _0xffd8d4=this['getDataFieldManager'](_0x324ca2),_0x220b7f=this[_0x1e7014(0x261)][_0x1e7014(0x263)](_0x324ca2),_0x237317=(_0x2fdfac=this[_0x1e7014(0x1ff)][_0x1e7014(0x33f)](_0x324ca2))==null?void 0x0:_0x2fdfac['getSheetBySheetId'](_0x80e9aa[_0x1e7014(0x239)]);if(!_0x220b7f||!_0x237317)return;const _0x2779fc=_0x237317==null?void 0x0:_0x237317[_0x1e7014(0x36c)]();for(const [_0x523205,_0x8836b]of _0x220b7f[_0x1e7014(0x20b)]())for(const [_0x98e58e,_0x17b784]of _0x8836b[_0x1e7014(0x20b)]()){const {sourceRangeInfo:_0x28da7f}=_0x17b784;if(_0x28da7f['unitId']===_0x324ca2&&_0x28da7f[_0x1e7014(0x239)]===_0xaafba0['subUnitId']&&_0x497af0['Rectangle'][_0x1e7014(0x44e)](_0x1d809e,_0x28da7f[_0x1e7014(0x1c8)])){const _0x4eebd1={'row':_0x28da7f[_0x1e7014(0x1c8)][_0x1e7014(0x280)]-_0x1d809e[_0x1e7014(0x280)],'col':_0x28da7f[_0x1e7014(0x1c8)]['startColumn']-_0x1d809e[_0x1e7014(0x274)]},_0x2a16f6={'unitId':_0x324ca2,'subUnitId':_0x80e9aa[_0x1e7014(0x239)],'sheetName':_0x2779fc,'range':{'startRow':_0x5ad138[_0x1e7014(0x280)]+_0x4eebd1[_0x1e7014(0x329)],'endRow':_0x5ad138[_0x1e7014(0x280)]+_0x4eebd1[_0x1e7014(0x329)]+_0x28da7f[_0x1e7014(0x1c8)][_0x1e7014(0x33d)]-_0x28da7f['range'][_0x1e7014(0x280)],'startColumn':_0x5ad138[_0x1e7014(0x274)]+_0x4eebd1[_0x1e7014(0x3e4)],'endColumn':_0x5ad138['startColumn']+_0x4eebd1[_0x1e7014(0x3e4)]+_0x28da7f[_0x1e7014(0x1c8)][_0x1e7014(0x300)]-_0x28da7f[_0x1e7014(0x1c8)][_0x1e7014(0x274)]}};_0xffd8d4[_0x1e7014(0x441)](_0x98e58e,_0x2a16f6);const _0x4547c3={..._0x17b784,'sourceRangeInfo':_0x2a16f6};this[_0x1e7014(0x4be)](_0x324ca2,_0x80e9aa[_0x1e7014(0x239)],_0x98e58e,_0x4547c3),this[_0x1e7014(0x25b)]({'unitId':_0x324ca2,'token':_0x98e58e,'type':_0x3ebc51['update'],'oldSourceRangeInfo':_0x28da7f,'dataRangeInfo':_0x2a16f6,'targetCellInfo':_0x17b784['targetCellInfo']}),this[_0x1e7014(0x4ac)]({'unitId':_0x324ca2,'subUnitId':_0x80e9aa[_0x1e7014(0x239)],'oldSubUnitId':_0x523205,'pivotTableId':_0x98e58e,'pivotTableConfig':_0x4547c3,'collectionConfig':_0xffd8d4[_0x1e7014(0x314)]()});}}}}[_0x58458d(0x25b)](_0x164917){const _0x2b34bc=_0x58458d;this[_0x2b34bc(0x39a)]['next'](_0x164917);}[_0x58458d(0x276)](_0x5034dd){const _0x46ecdb=_0x58458d;let _0x1ecf11=this[_0x46ecdb(0x4b5)][_0x46ecdb(0x263)](_0x5034dd);return _0x1ecf11||(_0x1ecf11=new _0x1c1428(this,this['_univerInstanceService']),this[_0x46ecdb(0x4b5)][_0x46ecdb(0x202)](_0x5034dd,_0x1ecf11)),_0x1ecf11;}[_0x58458d(0x278)](_0x2f65fb,_0x111959){const _0x102936=_0x58458d;return this[_0x102936(0x276)](_0x2f65fb)[_0x102936(0x4b7)][_0x111959];}[_0x58458d(0x4ca)](_0x2a0bea,_0x52521,_0x12e193){const _0x54b866=_0x58458d;return this[_0x54b866(0x276)](_0x2a0bea)[_0x54b866(0x4ca)](_0x52521,_0x12e193);}['_ensurePivotMap'](_0x34a1dd,_0x22f4ae){const _0x924d6c=_0x58458d;let _0x39523b=this['_model']['get'](_0x34a1dd);_0x39523b||(_0x39523b=new Map(),this[_0x924d6c(0x261)][_0x924d6c(0x202)](_0x34a1dd,_0x39523b));let _0x27d7ee=_0x39523b[_0x924d6c(0x263)](_0x22f4ae);return _0x27d7ee||(_0x27d7ee=new Map(),_0x39523b[_0x924d6c(0x202)](_0x22f4ae,_0x27d7ee)),_0x27d7ee;}[_0x58458d(0x4be)](_0x48fb51,_0x57a9fd,_0x2c78ae,_0x401ef2){const _0x2eddaa=_0x58458d;this['_ensurePivotMap'](_0x48fb51,_0x57a9fd)[_0x2eddaa(0x202)](_0x2c78ae,_0x401ef2);}[_0x58458d(0x2e5)](_0x101fc2,_0x236bda,_0x21aece){const _0x19f6bb=_0x58458d;var _0x103693,_0x586d33,_0x6ab87e,_0x361894;((_0x586d33=(_0x103693=this['_model'][_0x19f6bb(0x263)](_0x101fc2))==null?void 0x0:_0x103693[_0x19f6bb(0x263)](_0x236bda))==null?void 0x0:_0x586d33[_0x19f6bb(0x263)](_0x21aece))&&((_0x361894=(_0x6ab87e=this['_model'][_0x19f6bb(0x263)](_0x101fc2))==null?void 0x0:_0x6ab87e[_0x19f6bb(0x263)](_0x236bda))==null||_0x361894['delete'](_0x21aece));}[_0x58458d(0x2a5)](_0x1b2377,_0xf472b1){const _0x34c6ff=_0x58458d;this[_0x34c6ff(0x2b7)][_0x34c6ff(0x202)](_0x1b2377,_0xf472b1);}[_0x58458d(0x2ea)](_0x38d716){const _0x1b9988=_0x58458d;this[_0x1b9988(0x2b7)]['delete'](_0x38d716);}[_0x58458d(0x39b)](_0x8d13b,_0x5d886c){const _0x5f04f9=_0x58458d;let _0x16889d=this[_0x5f04f9(0x326)][_0x5f04f9(0x263)](_0x8d13b);_0x16889d||(_0x16889d=new Map(),this[_0x5f04f9(0x326)][_0x5f04f9(0x202)](_0x8d13b,_0x16889d));let _0x1df05a=_0x16889d[_0x5f04f9(0x263)](_0x5d886c);return _0x1df05a||(_0x1df05a=new Map(),_0x16889d[_0x5f04f9(0x202)](_0x5d886c,_0x1df05a)),_0x1df05a;}[_0x58458d(0x4ac)](_0x25b7d1){const _0x1e1dba=_0x58458d,{unitId:_0x6f18fe,subUnitId:_0x3c8ef0,pivotTableId:_0x3e6ddb,pivotTableConfig:_0x4a53cf,collectionConfig:_0x47ae16}=_0x25b7d1,_0x3709c6={'unitId':_0x6f18fe,'subUnitId':_0x3c8ef0,'oldSubUnitId':_0x3c8ef0,'pivotTableId':_0x3e6ddb,'pivotTableConfig':_0x4a53cf,'collectionConfig':_0x47ae16};this[_0x1e1dba(0x257)][_0x1e1dba(0x35e)](_0x2489ce['id'],_0x3709c6,{'onlyLocal':!0x0});}[_0x58458d(0x268)](_0xd33def,_0x3ea5d2,_0x74f28e,_0x251cc2,_0x3a5e6c,_0x65f709,_0xe56ae6,_0x154c49=!0x1){const _0x206808=_0x58458d;var _0x2d2808;this['_commandService']['executeCommand'](_0x460118['id'],{'single':{'unitId':_0xd33def,'subUnitId':_0x3ea5d2,'type':_0x74f28e,'pivotTableId':_0x251cc2,'view':_0x3a5e6c,'pivotConfig':_0x65f709},'collectionConfig':{[_0xd33def]:_0xe56ae6}},{'onlyLocal':!0x0});const _0x56da37=!!((_0x2d2808=this['getPivotTableInstance'](_0x251cc2))!=null&&_0x2d2808[_0x206808(0x2c4)]()),_0xa8e1f6=this['getPivotTableConfig'](_0xd33def,_0x3ea5d2,_0x251cc2);_0xa8e1f6&&this[_0x206808(0x24a)]({'view':_0x3a5e6c,'pivotTableId':_0x251cc2,'textInfo':this[_0x206808(0x344)](),'isEmpty':_0x56da37,'targetCellInfo':_0xa8e1f6[_0x206808(0x301)]},_0x154c49);}['updateViewData'](_0x2a81ac,_0x31e5c6){const _0x5d63d9=_0x58458d,{targetCellInfo:_0x142cf1,pivotTableId:_0x2f6804}=_0x2a81ac,{unitId:_0x1b94b0,subUnitId:_0x496655}=_0x142cf1,_0x523cfc=this[_0x5d63d9(0x39b)](_0x1b94b0,_0x496655),_0x3cdf00=_0x523cfc[_0x5d63d9(0x263)](_0x2f6804);let _0xd8d20e,_0x194c29;_0x3cdf00&&(_0xd8d20e=_0x3cdf00[_0x5d63d9(0x353)],_0x194c29=_0x3cdf00['matrix']);const {rangesCache:_0x49bd9c,matrix:_0x19ed09}=_0x58665a(_0x2a81ac);_0x523cfc[_0x5d63d9(0x202)](_0x2f6804,{'rangeCache':_0x49bd9c,'matrix':_0x19ed09,'oldMatrix':_0x194c29,'oldRangeCache':_0xd8d20e}),_0x31e5c6||this[_0x5d63d9(0x43d)][_0x5d63d9(0x3be)]({'unitId':_0x1b94b0,'subUnitId':_0x496655,'pivotTableId':_0x2f6804});}['addPivotTable'](_0x4279b3,_0x50552f,_0x3beae2,_0x294fbc,_0x1c20dc){const _0x3dc2bf=_0x58458d;this[_0x3dc2bf(0x4be)](_0x4279b3,_0x50552f,_0x3beae2,_0x1c20dc),this[_0x3dc2bf(0x2a5)](_0x3beae2,_0x294fbc);}[_0x58458d(0x256)](_0x3ae64c,_0x2e4120,_0x355051){const _0x4dfdc8=_0x58458d,_0x36afcf=this[_0x4dfdc8(0x276)](_0x3ae64c);_0x36afcf[_0x4dfdc8(0x1c5)](_0x355051)[_0x4dfdc8(0x466)](_0x3b3da1=>{const _0x33cc1f=_0x4dfdc8;_0x36afcf[_0x33cc1f(0x49e)](_0x3b3da1);}),this[_0x4dfdc8(0x4cd)](_0x3ae64c,_0x355051),this[_0x4dfdc8(0x2e5)](_0x3ae64c,_0x2e4120,_0x355051),this['_deletePivotTableInstanceCache'](_0x355051);}['setPivotTable'](_0x4d55b0,_0x76c6c,_0x59072b,_0x16c51f){const _0x2ec61b=_0x58458d;this[_0x2ec61b(0x4be)](_0x4d55b0,_0x76c6c,_0x59072b,_0x16c51f);}[_0x58458d(0x2ef)](_0x512666,_0x494e41,_0x1f20d3){const _0xe0b05e=_0x58458d;var _0x1eee7c,_0x16d065;const _0x4855c7=(_0x16d065=(_0x1eee7c=this['_model'][_0xe0b05e(0x263)](_0x512666))==null?void 0x0:_0x1eee7c['get'](_0x494e41))==null?void 0x0:_0x16d065['get'](_0x1f20d3);if(_0x4855c7)return _0x4855c7;}[_0x58458d(0x448)](_0x33ea04,_0x1512f1,_0x12eda5){const _0x595e14=_0x58458d;var _0x116b9e,_0x196064;const _0x5ec96d=(_0x196064=(_0x116b9e=this[_0x595e14(0x261)][_0x595e14(0x263)](_0x33ea04))==null?void 0x0:_0x116b9e[_0x595e14(0x263)](_0x1512f1))==null?void 0x0:_0x196064['get'](_0x12eda5);if(_0x5ec96d)return _0x5ec96d['fieldsConfig'];}[_0x58458d(0x354)](_0x32cece){const _0x83f818=_0x58458d;return this[_0x83f818(0x2b7)]['get'](_0x32cece);}[_0x58458d(0x2c6)](_0x277ce8){const _0x5e34d7=_0x58458d;this[_0x5e34d7(0x261)][_0x5e34d7(0x336)](_0x277ce8);const _0x16eea7=this[_0x5e34d7(0x4b5)][_0x5e34d7(0x263)](_0x277ce8);_0x16eea7&&(_0x16eea7[_0x5e34d7(0x222)](),this[_0x5e34d7(0x4b5)][_0x5e34d7(0x336)](_0x277ce8)),this[_0x5e34d7(0x326)][_0x5e34d7(0x336)](_0x277ce8),this[_0x5e34d7(0x2f1)][_0x5e34d7(0x466)](_0x1eb4e6=>{const _0x59ebd2=_0x5e34d7;_0x1eb4e6[_0x59ebd2(0x2c6)](_0x277ce8);});}['addCollectionByJSON'](_0x43be8a,_0x18b660,_0x5059cb,_0x35ad2b){const _0x4c5bc6=_0x58458d;return this[_0x4c5bc6(0x276)](_0x5059cb[_0x4c5bc6(0x469)])[_0x4c5bc6(0x3b3)](_0x43be8a,_0x18b660,_0x5059cb,_0x35ad2b);}['createCollectionWithDataRange'](_0x28aed6){const _0x450af8=_0x58458d;return this[_0x450af8(0x276)](_0x28aed6[_0x450af8(0x469)])[_0x450af8(0x3b8)](_0x28aed6);}[_0x58458d(0x400)](_0x59ea51,_0x13f548,_0x5f1b90){const _0x27619c=_0x58458d;this[_0x27619c(0x276)](_0x5f1b90[_0x27619c(0x469)])[_0x27619c(0x400)](_0x59ea51,_0x13f548,_0x5f1b90);}[_0x58458d(0x25a)](_0x49900f,_0x5ed09f){const _0x459481=_0x58458d;this[_0x459481(0x276)](_0x49900f)['deleteDataField'](_0x5ed09f);}['removeCollections'](_0x562c91,_0x300941){const _0x5b3898=_0x58458d;this[_0x5b3898(0x276)](_0x562c91)[_0x5b3898(0x3ff)](_0x300941);}[_0x58458d(0x1d4)](_0x4f68c7,_0x47cde8){const _0x1ac1d3=_0x58458d;var _0x25d66f;return(_0x25d66f=this['_model'][_0x1ac1d3(0x263)](_0x4f68c7))==null?void 0x0:_0x25d66f[_0x1ac1d3(0x263)](_0x47cde8);}[_0x58458d(0x3ab)](_0x1864c4){const _0x4a7959=_0x58458d;for(const [_0x55ec4a,_0x33ae9c]of this[_0x4a7959(0x261)][_0x4a7959(0x20b)]())for(const [_0x5e84df,_0x474cf3]of _0x33ae9c[_0x4a7959(0x20b)]())if(_0x474cf3[_0x4a7959(0x2ec)](_0x1864c4))return{'unitId':_0x55ec4a,'subUnitId':_0x5e84df};return null;}[_0x58458d(0x46e)](_0x211ebc,_0x4e6c7f,_0x27f118,_0x4ac05c){const _0x293f29=_0x58458d,_0x2fe35a=this[_0x293f29(0x39b)](_0x211ebc,_0x4e6c7f);_0x4ac05c?_0x2fe35a['set'](_0x27f118,_0x4ac05c):_0x2fe35a[_0x293f29(0x336)](_0x27f118),this[_0x293f29(0x43d)][_0x293f29(0x3be)]({'unitId':_0x211ebc,'subUnitId':_0x4e6c7f,'pivotTableId':_0x27f118});}[_0x58458d(0x222)](){super['dispose']();}[_0x58458d(0x468)](_0x5c64d2,_0x23c868,_0x42d00b){const _0x12dd5a=_0x58458d;var _0x4affe0,_0x3e6dff;const _0x16bef4=(_0x3e6dff=(_0x4affe0=this[_0x12dd5a(0x326)][_0x12dd5a(0x263)](_0x5c64d2))==null?void 0x0:_0x4affe0[_0x12dd5a(0x263)](_0x23c868))==null?void 0x0:_0x3e6dff[_0x12dd5a(0x263)](_0x42d00b);return _0x16bef4||null;}[_0x58458d(0x3d6)](_0x271d08){const _0xf9c78a=_0x58458d;this[_0xf9c78a(0x1fe)](_0x271d08);}['updateDirtyPivotTable'](_0x5ee866){const _0xba50bb=_0x58458d,{token:_0x5d5e0b,unitId:_0x12d4fe,subUnitId:_0x5e5635}=_0x5ee866,_0x52777d=_0x12d4fe+'-'+_0x5e5635+'-'+_0x5d5e0b;this[_0xba50bb(0x334)][_0xba50bb(0x263)](_0x52777d)&&clearTimeout(this[_0xba50bb(0x334)][_0xba50bb(0x263)](_0x52777d));const _0x510420=setTimeout(()=>{const _0xfbfd31=_0xba50bb;this[_0xfbfd31(0x4b8)](_0x5ee866),this[_0xfbfd31(0x334)][_0xfbfd31(0x336)](_0x52777d);},_0x1c943c);this[_0xba50bb(0x334)][_0xba50bb(0x202)](_0x52777d,_0x510420);}['queryDirtyPivotTable'](_0x5e21f7){const _0x47ce29=_0x58458d,{unitId:_0x5da64c,subUnitId:_0x51d973,token:_0x2237cb,type:_0x1c3948,pivotConfig:_0xad826e}=_0x5e21f7,_0x426fa2=this[_0x47ce29(0x354)](_0x2237cb),_0x3ebaf9=_0x426fa2==null?void 0x0:_0x426fa2[_0x47ce29(0x369)](),_0x3758f5=_0xad826e!=null?_0xad826e:this[_0x47ce29(0x2ef)](_0x5da64c,_0x51d973,_0x2237cb);_0x3758f5&&(_0x3758f5['isEmpty']=!!(_0x426fa2!=null&&_0x426fa2[_0x47ce29(0x2c4)]())),(_0x3ebaf9||_0x1c3948===_0x1d1e60['Delete'])&&this[_0x47ce29(0x268)](_0x5da64c,_0x51d973,_0x1c3948,_0x2237cb,_0x3ebaf9,_0x3758f5,this[_0x47ce29(0x276)](_0x5da64c)['toJSON']());}['toJSON'](_0x2a1c65){const _0x4e8c30=_0x58458d,_0x4f0346={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x4e8c30(0x276)](_0x2a1c65)&&(_0x4f0346['dataFieldManagerConfig'][_0x2a1c65]=this[_0x4e8c30(0x276)](_0x2a1c65)['toJSON']()),this[_0x4e8c30(0x261)][_0x4e8c30(0x263)](_0x2a1c65)){_0x4f0346[_0x4e8c30(0x371)][_0x2a1c65]={};const _0x3a2797=this[_0x4e8c30(0x261)]['get'](_0x2a1c65);_0x3a2797!=null&&_0x3a2797[_0x4e8c30(0x20f)]&&[..._0x3a2797['keys']()][_0x4e8c30(0x466)](_0x4c62a1=>{const _0x1ef43f=_0x4e8c30,_0x318cfe=_0x3a2797[_0x1ef43f(0x263)](_0x4c62a1);_0x318cfe!=null&&_0x318cfe[_0x1ef43f(0x20f)]&&(_0x4f0346[_0x1ef43f(0x371)][_0x2a1c65][_0x4c62a1]={},[..._0x318cfe[_0x1ef43f(0x302)]()][_0x1ef43f(0x466)](_0x471a44=>{const _0x37b6d3=_0x1ef43f,_0x2cc3a9=_0x318cfe[_0x37b6d3(0x263)](_0x471a44);_0x2cc3a9&&(_0x4f0346['pivotTableConfigs'][_0x2a1c65][_0x4c62a1][_0x471a44]=_0x2cc3a9);}));});}return _0x4f0346;}['fromJSON'](_0x2e4bcb){const _0x565faf=_0x58458d;var _0x41ea5b;const {dataFieldManagerConfig:_0x4b7a5e,pivotTableConfigs:_0x15372b}=_0x2e4bcb;_0x4b7a5e&&Object['keys'](_0x4b7a5e)[_0x565faf(0x466)](_0xeae269=>{const _0x270cdb=_0x565faf;this[_0x270cdb(0x276)](_0xeae269)[_0x270cdb(0x4c2)](_0x4b7a5e[_0xeae269]);});const _0x197b69=[];if(_0x15372b){const _0x4cb0e7=(_0x41ea5b=this['_injector'][_0x565faf(0x263)](_0x497af0[_0x565faf(0x35f)])[_0x565faf(0x3cf)](_0xacc9cf['LS_CONFIG_KEY']))!=null?_0x41ea5b:{},{ls:_0x621119,pbk:_0x38b42e}=_0x4cb0e7,_0x1f9555=_0x5d64e1(_0x2404e8,_0x621119,_0x38b42e)['count'];Object[_0x565faf(0x302)](_0x15372b)[_0x565faf(0x466)](_0x52651f=>{const _0x2c4e77=_0x565faf;let _0xe77311=0x0;const _0x55c7fe=_0x15372b[_0x52651f];Object[_0x2c4e77(0x302)](_0x55c7fe)[_0x2c4e77(0x466)](_0x2a5720=>{const _0x379e4b=_0x2c4e77,_0x1a8c38=_0x55c7fe[_0x2a5720];Object['keys'](_0x1a8c38)[_0x379e4b(0x466)](_0x28c981=>{const _0x3409ef=_0x379e4b,_0x2b9f0e=_0x1a8c38[_0x28c981];if(_0x2b9f0e){if(_0xe77311>=_0x1f9555)return;_0xe77311++;const _0x36d28d=this[_0x3409ef(0x276)](_0x52651f),_0x2d443b=_0x36d28d[_0x3409ef(0x4b7)][_0x28c981],_0x4e1aa0=_0x2d443b[_0x3409ef(0x2d3)]();let _0x4a1736=0x0;const _0x36d956=[];for(const _0x2f9ae7 of _0x4e1aa0){const _0x5088c0=_0x2d443b[_0x3409ef(0x22e)](_0x2f9ae7);if(_0x3ccc66[_0x3409ef(0x390)](_0x5088c0)){const _0x574b0f=_0x5088c0['getOriginFieldId'](),_0x1916a4=_0x2d443b[_0x3409ef(0x22e)](_0x574b0f);_0x1916a4&&_0x36d956['push']([_0x5088c0,_0x1916a4]);continue;}_0x36d28d[_0x3409ef(0x1bc)](_0x2f9ae7,_0x2b9f0e['sourceRangeInfo'],_0x4a1736),_0x4a1736++;}_0x36d956[_0x3409ef(0x466)](([_0x24aee6,_0x223703])=>{const _0x39c74b=_0x3409ef;_0x24aee6[_0x39c74b(0x42f)](_0x223703);});const _0x1f813c=new _0x3ccc66[(_0x3409ef(0x3a4))](_0x2d443b);_0x1f813c[_0x3409ef(0x4c2)](_0x2b9f0e[_0x3409ef(0x473)]),this['addPivotTable'](_0x52651f,_0x2a5720,_0x28c981,_0x1f813c,_0x2b9f0e);const _0x2bdcc0=_0x1f813c[_0x3409ef(0x369)]();_0x197b69[_0x3409ef(0x384)]({'unitId':_0x52651f,'subUnitId':_0x2a5720,'pivotTableId':_0x28c981,'view':_0x2bdcc0[_0x3409ef(0x314)](),'pivotConfig':_0x2b9f0e,'type':_0x1d1e60[_0x3409ef(0x28d)]});const _0x4dc25e=!!_0x1f813c[_0x3409ef(0x2c4)](),_0x466ec7={'view':_0x2bdcc0,'pivotTableId':_0x28c981,'textInfo':this['getTextInfo'](),'isEmpty':_0x4dc25e,'targetCellInfo':_0x2b9f0e[_0x3409ef(0x301)]};this[_0x3409ef(0x24a)](_0x466ec7,!0x1);}});});});}_0x4b7a5e&&Object[_0x565faf(0x302)](_0x4b7a5e)[_0x565faf(0x466)](_0x29a776=>{const _0x348f22=_0x565faf,_0x18bf10=this[_0x348f22(0x276)](_0x29a776);this[_0x348f22(0x2a3)][_0x348f22(0x3be)](_0x18bf10[_0x348f22(0x4b7)]);}),this[_0x565faf(0x257)]['executeCommand'](_0x460118['id'],{'batch':_0x197b69,'collectionConfig':_0x4b7a5e},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x379835=_0x58458d;this[_0x379835(0x3c8)](this[_0x379835(0x31d)][_0x379835(0x396)]({'toJson':_0x391053=>JSON[_0x379835(0x42c)](this[_0x379835(0x314)](_0x391053)),'parseJson':_0x2640fd=>{if(!_0x2640fd)return{};try{return JSON['parse'](_0x2640fd);}catch{return{};}},'businesses':[_0x497af0[_0x379835(0x318)]['UNIVER_SHEET']],'pluginName':_0x1a8d1f,'onLoad':(_0x42b752,_0x36b0cb)=>{const _0x44cb73=_0x379835;this[_0x44cb73(0x4c2)](_0x36b0cb);},'onUnLoad':_0x5418b1=>{const _0x5efc5b=_0x379835;this[_0x5efc5b(0x2c6)](_0x5418b1);}}));}},_0x38ffc1[_0x58458d(0x47f)]=_0x485831([_0x2fc120(0x0,_0x497af0['Inject'](_0x497af0[_0x58458d(0x450)])),_0x2fc120(0x1,_0x497af0[_0x58458d(0x36d)]),_0x2fc120(0x2,_0x497af0['Inject'](_0x497af0['LifecycleService'])),_0x2fc120(0x3,_0x497af0[_0x58458d(0x35f)]),_0x2fc120(0x4,_0x497af0[_0x58458d(0x231)]),_0x2fc120(0x5,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x2cf)]))],_0x38ffc1[_0x58458d(0x47f)]);const _0x3a1984={0x0:{0x0:{'v':_0x58458d(0x40d),'s':_0x373724}},0x2:{0x1:{'v':'','s':_0x373724},0x2:{'v':'','s':_0x373724},0x3:{'v':_0x58458d(0x364),'s':_0x373724},0x4:{'v':'','s':_0x373724},0x5:{'v':'','s':_0x373724}},0x3:{0x0:{'v':'','s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}},0x4:{0x0:{'v':'','s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}},0x5:{0x0:{'v':'','s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}},0x6:{0x0:{'v':'','s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}},0x7:{0x0:{'v':'','s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}},0x8:{0x0:{'v':_0x58458d(0x329),'s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'values','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}},0x9:{0x0:{'v':'','s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}},0xa:{0x0:{'v':'','s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}},0xb:{0x0:{'v':'','s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}},0xc:{0x0:{'v':'','s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}},0xd:{0x0:{'v':'','s':_0x373724},0x1:{'v':'','s':_0x2badcf},0x2:{'v':'','s':_0x2badcf},0x3:{'v':'','s':_0x2badcf},0x4:{'v':'','s':_0x2badcf},0x5:{'v':'','s':_0x2badcf}}},_0x290688={'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':[]},_0x31ab7b=(_0x384b82,_0x366e7f)=>{const _0x24c216=_0x58458d,_0x3485ac=new _0x497af0[(_0x24c216(0x2a0))](),_0x513081=new _0x497af0[(_0x24c216(0x2a0))](_0x3a1984),{row:_0x23ee6f,col:_0x4e2d62}=_0x366e7f;_0x513081[_0x24c216(0x447)]((_0x27476f,_0xf446cf,_0x15307a)=>{const _0x4b133c=_0x24c216;let _0x5aa36d='';_0x15307a['v']==='filter'?_0x5aa36d=_0x384b82[_0x4b133c(0x40d)]:_0x15307a['v']===_0x4b133c(0x329)?_0x5aa36d=_0x384b82[_0x4b133c(0x329)]:_0x15307a['v']==='column'?_0x5aa36d=_0x384b82[_0x4b133c(0x364)]:_0x15307a['v']===_0x4b133c(0x43c)&&(_0x5aa36d=_0x384b82[_0x4b133c(0x43c)]),_0x3485ac[_0x4b133c(0x412)](_0x27476f+_0x23ee6f,_0xf446cf+_0x4e2d62,{..._0x15307a,'v':_0x5aa36d});});const _0x74d6c=_0x497af0[_0x24c216(0x45b)][_0x24c216(0x427)](_0x290688);return Object['keys'](_0x290688)[_0x24c216(0x466)](_0x24e032=>{const _0x392d45=_0x24c216;_0x74d6c[_0x24e032]=_0x290688[_0x24e032][_0x392d45(0x1e9)](_0x81443a=>({..._0x81443a,'startRow':_0x81443a[_0x392d45(0x280)]+_0x23ee6f,'endRow':_0x81443a['endRow']+_0x23ee6f,'startColumn':_0x81443a[_0x392d45(0x274)]+_0x4e2d62,'endColumn':_0x81443a['endColumn']+_0x4e2d62}));}),{'matrixCache':_0x3485ac,'rangesCache':_0x74d6c};};function _0x104d4f(_0x3d347f,_0x4f1fcf){const _0x259486=_0x58458d;let _0x405e0f='';const _0x40c9a7=this[_0x259486(0x344)]();switch(_0x4f1fcf){case _0x3ccc66[_0x259486(0x2ad)]['average']:_0x405e0f=_0x40c9a7[_0x259486(0x2e2)]+_0x3d347f;break;case _0x3ccc66[_0x259486(0x2ad)][_0x259486(0x3ad)]:_0x405e0f=_0x40c9a7[_0x259486(0x428)]+_0x3d347f;break;case _0x3ccc66[_0x259486(0x2ad)][_0x259486(0x4c1)]:_0x405e0f=_0x40c9a7[_0x259486(0x495)]+_0x3d347f;break;case _0x3ccc66[_0x259486(0x2ad)][_0x259486(0x489)]:_0x405e0f=_0x40c9a7[_0x259486(0x2bd)]+_0x3d347f;break;case _0x3ccc66[_0x259486(0x2ad)]['min']:_0x405e0f=_0x40c9a7[_0x259486(0x462)]+_0x3d347f;break;case _0x3ccc66[_0x259486(0x2ad)]['product']:_0x405e0f=_0x40c9a7[_0x259486(0x1bb)]+_0x3d347f;break;case _0x3ccc66[_0x259486(0x2ad)][_0x259486(0x232)]:_0x405e0f=_0x40c9a7[_0x259486(0x2b9)]+_0x3d347f;break;case _0x3ccc66[_0x259486(0x2ad)][_0x259486(0x410)]:_0x405e0f=_0x40c9a7['sheets-pivot.stdDevpName']+_0x3d347f;break;case _0x3ccc66[_0x259486(0x2ad)][_0x259486(0x2e3)]:_0x405e0f=_0x40c9a7['sheets-pivot.sumName']+_0x3d347f;break;case _0x3ccc66[_0x259486(0x2ad)][_0x259486(0x475)]:_0x405e0f=_0x40c9a7[_0x259486(0x350)]+_0x3d347f;break;case _0x3ccc66[_0x259486(0x2ad)][_0x259486(0x3ca)]:_0x405e0f=_0x40c9a7['sheets-pivot.varpName']+_0x3d347f;break;default:_0x405e0f=_0x3d347f;break;}return _0x405e0f;}function _0x363d3a(_0x5c3b7d,_0x26cfce,_0x3bcdf0,_0x234f18,_0x554c7d){const _0x1f01e4=_0x58458d;var _0x455e43,_0x523da6,_0x569e4a,_0x2121a3,_0x45db0f;const _0x2bc300=_0x497af0[_0x1f01e4(0x272)](_0x5c3b7d,_0x26cfce),{rangesInfo:_0x1e8916,areaInfo:_0x514a59,headerMap:_0x3c2b00}=_0x554c7d;if(!_0x1e8916||!_0x514a59||!_0x3c2b00)return;const _0x171e51=Object[_0x1f01e4(0x302)](_0x1e8916)[_0x1f01e4(0x496)](_0x1e9496=>_0x1e8916[_0x1e9496][_0x1f01e4(0x1c1)](_0x365c8e=>_0x497af0['Rectangle'][_0x1f01e4(0x44e)](_0x365c8e,_0x2bc300))),_0x345a6a=_0x514a59;let _0x18efba,_0x4ba0bc,_0x37a490;if(_0x171e51===_0x1f01e4(0x4d5))_0x18efba=(_0x455e43=_0x345a6a==null?void 0x0:_0x345a6a[_0x1f01e4(0x1e6)])==null?void 0x0:_0x455e43[_0x5c3b7d],_0x4ba0bc=(_0x523da6=_0x3c2b00==null?void 0x0:_0x3c2b00[_0x1f01e4(0x359)])==null?void 0x0:_0x523da6[_0x26cfce],_0x37a490=_0x4ba0bc==null?void 0x0:_0x4ba0bc[_0x1f01e4(0x2f5)];else{if(_0x171e51===_0x1f01e4(0x42d))_0x18efba=(_0x569e4a=_0x345a6a==null?void 0x0:_0x345a6a[_0x1f01e4(0x205)])==null?void 0x0:_0x569e4a[_0x26cfce],_0x4ba0bc=(_0x2121a3=_0x3c2b00[_0x1f01e4(0x42a)])==null?void 0x0:_0x2121a3[_0x5c3b7d+0x1+_0x26cfce-_0x1e8916[_0x1f01e4(0x42d)][0x0][_0x1f01e4(0x274)]],_0x37a490=_0x4ba0bc==null?void 0x0:_0x4ba0bc[_0x1f01e4(0x2f5)];else{if(_0x171e51===_0x1f01e4(0x3cd))_0x18efba=(_0x45db0f=_0x345a6a==null?void 0x0:_0x345a6a[_0x1f01e4(0x4a3)])==null?void 0x0:_0x45db0f[_0x26cfce],_0x37a490=_0x18efba==null?void 0x0:_0x18efba['tableFieldId'];else{if(_0x171e51===_0x1f01e4(0x3cb)){const _0x39314d=_0x3bcdf0==null?void 0x0:_0x3bcdf0['fi'];_0x39314d!==void 0x0&&(_0x37a490=_0x234f18[_0x1f01e4(0x377)](_0x39314d));}}}}return{'filterId':_0x37a490,'info':_0x18efba,'data':_0x3bcdf0,'headerInfo':_0x4ba0bc};}function _0x10514c(_0x416204,_0x3dee87,_0x4b863c){const _0x3f5bdb=_0x58458d,_0x213dbe=_0x416204['dataFieldsCollection'],_0x1f9c01=_0x213dbe[_0x3f5bdb(0x2d3)](),_0x262357=new Set();_0x416204[_0x3f5bdb(0x358)](_0x4d865f=>{const _0x3b80b0=_0x3f5bdb;_0x262357[_0x3b80b0(0x46d)](_0x4d865f[_0x3b80b0(0x2ca)]);});const _0x4777af=_0x1f9c01[_0x3f5bdb(0x1e9)](_0x51bf93=>{const _0x1fc84c=_0x3f5bdb,_0x2aeb7a=_0x213dbe[_0x1fc84c(0x22e)](_0x51bf93);return{'checked':_0x262357[_0x1fc84c(0x2ec)](_0x51bf93),'dataFieldId':_0x2aeb7a['id'],'id':_0x2aeb7a['id'],'name':_0x213dbe[_0x1fc84c(0x416)](_0x2aeb7a['id']),'type':_0x2aeb7a[_0x1fc84c(0x2f7)](),'pivotTableId':_0x3dee87};}),_0x445adc=[];_0x416204[_0x3f5bdb(0x4a0)](_0x3ccc66['PivotTableFiledAreaEnum']['Row'],_0x5461e4=>{const _0xe3848b=_0x3f5bdb;_0x445adc[_0xe3848b(0x384)]({'dataFieldId':_0x5461e4[_0xe3848b(0x2ca)],'tableFieldId':_0x5461e4[_0xe3848b(0x204)](),'displayName':_0x5461e4[_0xe3848b(0x416)]()});});const _0x2c5296=[];_0x416204[_0x3f5bdb(0x4a0)](_0x3ccc66['PivotTableFiledAreaEnum'][_0x3f5bdb(0x3b5)],_0x373ddf=>{const _0x3194c9=_0x3f5bdb;_0x2c5296[_0x3194c9(0x384)]({'dataFieldId':_0x373ddf[_0x3194c9(0x2ca)],'tableFieldId':_0x373ddf[_0x3194c9(0x204)](),'displayName':_0x373ddf[_0x3194c9(0x416)]()});});const _0x5bc4d7=[];if(_0x416204[_0x3f5bdb(0x4a0)](_0x3ccc66[_0x3f5bdb(0x41f)][_0x3f5bdb(0x1ca)],_0x44b149=>{const _0x2b857c=_0x3f5bdb;_0x5bc4d7[_0x2b857c(0x384)]({'dataFieldId':_0x44b149[_0x2b857c(0x2ca)],'tableFieldId':_0x44b149['getId'](),'displayName':_0x44b149[_0x2b857c(0x416)](),'format':_0x44b149[_0x2b857c(0x417)](),'subTotalType':_0x44b149['getSubtotal']()});}),_0x5bc4d7[_0x3f5bdb(0x24e)]>0x1){const _0x4f32a4=_0x416204['getValueIndex']();(_0x416204[_0x3f5bdb(0x4ba)]()?_0x2c5296:_0x445adc)[_0x3f5bdb(0x479)](_0x4f32a4,0x0,{'dataFieldId':'','tableFieldId':_0x3f5bdb(0x3f0),'displayName':'ΣValue'});}const _0x39906c=[];_0x416204['iterateFieldByArea'](_0x3ccc66[_0x3f5bdb(0x41f)][_0x3f5bdb(0x2e7)],_0x86d4f5=>{const _0x388ff6=_0x3f5bdb;_0x39906c[_0x388ff6(0x384)]({'dataFieldId':_0x86d4f5[_0x388ff6(0x2ca)],'tableFieldId':_0x86d4f5[_0x388ff6(0x204)](),'displayName':_0x86d4f5[_0x388ff6(0x416)]()});});const _0x3437ff=_0x4b863c[_0x3f5bdb(0x4cc)];return{'sourceList':_0x4777af,'sourceRange':_0x3437ff,'rowFields':_0x445adc,'columnFields':_0x2c5296,'valueFields':_0x5bc4d7,'filterFields':_0x39906c,'positionInfo':_0x4b863c[_0x3f5bdb(0x301)]};}function _0x5f4bf3(_0x214b14,_0x221f2f,_0x21459d='',_0x44f487={}){const _0x2db66f=_0x58458d,_0xfd3e46=_0x214b14[_0x2db66f(0x263)](_0x497af0[_0x2db66f(0x4d6)]);for(const _0x27140c in _0x221f2f)if(Object[_0x2db66f(0x3b6)][_0x2db66f(0x1df)][_0x2db66f(0x3b0)](_0x221f2f,_0x27140c)){const _0x2aff94=_0x21459d?_0x21459d+'.'+_0x27140c:_0x27140c;typeof _0x221f2f[_0x27140c]=='object'&&_0x221f2f[_0x27140c]!==null&&!Array[_0x2db66f(0x236)](_0x221f2f[_0x27140c])?_0x5f4bf3(_0x214b14,_0x221f2f[_0x27140c],_0x2aff94,_0x44f487):_0x44f487[_0x2aff94]=_0xfd3e46['t'](_0x2aff94);}return _0x44f487;}const _0x478f3c=_0xe7ef2e=>{const _0x593ba5=_0x58458d;if(!_0xe7ef2e)return[];const {rowRanges:_0x1868e2,colRanges:_0x443fde,cornerRanges:_0x485e21,dataRanges:_0x2dfe32,pageRanges:_0x35bef2}=_0xe7ef2e,_0x36b1db=[..._0x443fde,..._0x1868e2,..._0x2dfe32,..._0x485e21][_0x593ba5(0x40d)](_0x11591b=>_0x11591b[_0x593ba5(0x280)]>=0x0&&_0x11591b['startColumn']>=0x0&&_0x11591b['endRow']>=0x0&&_0x11591b['endColumn']>=0x0);let _0x126a68=Number[_0x593ba5(0x348)],_0x222fa8=Number[_0x593ba5(0x3fc)],_0x3291e3=Number[_0x593ba5(0x348)],_0x3c42a5=Number[_0x593ba5(0x3fc)];for(let _0x3db033=0x0;_0x3db033<_0x36b1db[_0x593ba5(0x24e)];_0x3db033++)_0x126a68=Math[_0x593ba5(0x4b6)](_0x126a68,_0x36b1db[_0x3db033][_0x593ba5(0x280)]),_0x222fa8=Math['max'](_0x222fa8,_0x36b1db[_0x3db033][_0x593ba5(0x33d)]),_0x3291e3=Math[_0x593ba5(0x4b6)](_0x3291e3,_0x36b1db[_0x3db033]['startColumn']),_0x3c42a5=Math[_0x593ba5(0x489)](_0x3c42a5,_0x36b1db[_0x3db033][_0x593ba5(0x300)]);return[..._0x35bef2,{'startRow':_0x126a68,'endRow':_0x222fa8,'startColumn':_0x3291e3,'endColumn':_0x3c42a5}];};function _0x2c0aff(_0x2d2ab6,_0x3e87e0){const _0x15c903=_0x58458d,_0x3baa14=_0x3e87e0[_0x15c903(0x406)][_0x15c903(0x219)],{pivotTableId:_0x25e43f,unitId:_0x11e55c,subUnitId:_0x126cc1}=_0x3e87e0;if(!_0x3baa14)return;const _0x1075ab=_0x2d2ab6[_0x15c903(0x263)](_0x38ffc1[_0x15c903(0x47f)]),_0x1590d2=_0x1075ab[_0x15c903(0x354)](_0x25e43f),_0x4d788d=_0x1075ab[_0x15c903(0x2ef)](_0x11e55c,_0x126cc1,_0x25e43f);if(!_0x1590d2||!_0x4d788d)return;const _0x5b3db6=_0x1590d2['getIndexesByPathStr'](_0x3baa14[_0x15c903(0x244)]);if(!(_0x5b3db6!=null&&_0x5b3db6[_0x15c903(0x24e)]))return;const _0x3237ff=_0x4d788d[_0x15c903(0x4cc)],{unitId:_0x162414,subUnitId:_0x427f3c,range:_0x2e9db9}=_0x3237ff;let _0x3e717d=0x0;const _0x462321=_0x1590d2[_0x15c903(0x39d)][_0x15c903(0x2d3)]()[_0x15c903(0x34a)]((_0x246c37,_0xefdb2)=>{const _0x284627=_0x15c903;var _0x5bdbf2;const _0x2c75a3=(_0x5bdbf2=_0x1590d2[_0x284627(0x455)](_0xefdb2))==null?void 0x0:_0x5bdbf2[_0x284627(0x2b1)]();return _0x2c75a3&&(_0x246c37[String(_0x3e717d)]=_0x2c75a3),_0x3e717d++,_0x246c37;},{});return{'indexes':_0x5b3db6,'range':_0x2e9db9,'sourceUnitId':_0x162414,'sourceSubUnitId':_0x427f3c,'formatMap':_0x462321};}function _0x47e9f4(_0x2a16fc,_0x5bd6c7){const _0x4d2af9=_0x58458d;if(!_0x2a16fc||!_0x5bd6c7)return!0x0;const _0x29b26f=_0xacc9cf[_0x4d2af9(0x398)](_0x3c9e2a,_0x5bab91),_0x371325=new Function(_0x4d2af9(0x32b)+_0x29b26f)()(_0x2a16fc,_0x5bd6c7)['message'],_0x24634d=_0xacc9cf[_0x4d2af9(0x34d)](_0x371325,'sf',_0x3b243d);return!((_0x371325==null?void 0x0:_0x371325['rt'])===_0xacc9cf['ReleaseType']['NO_COMMERCIAL']&&!_0x24634d);}function _0x5d64e1(_0x120f0e,_0x1f469a,_0x3adccb){const _0x9d74a4=_0x58458d,_0x2e41fa={'count':_0x120f0e,'timeValid':!0x1};if(!_0x1f469a||!_0x3adccb)return _0x2e41fa;const _0x385f45=_0xacc9cf['unshiftString'](_0x3c9e2a,_0x5bab91),_0x34c1d8=new Function(_0x9d74a4(0x32b)+_0x385f45)()(_0x1f469a,_0x3adccb);if(_0x34c1d8!=null&&_0x34c1d8[_0x9d74a4(0x294)]){const _0x12cd06=_0x34c1d8['message'],_0x19914e=_0xacc9cf[_0x9d74a4(0x34d)](_0x12cd06,'sf',_0x3b243d);return{'count':_0xacc9cf[_0x9d74a4(0x355)](_0x12cd06,_0x19914e,_0x9d74a4(0x210),_0x120f0e,_0x120f0e,0x0),'timeValid':_0x19914e};}return _0x2e41fa;}function _0x4d8ed2(_0x6e9e9c,_0x3e67aa,_0x318d98,_0x9be1f5){const _0x55ede0=_0x58458d,_0x10a839={'subUnitId':_0x318d98,'unitId':_0x3e67aa,'cellValue':_0x5c4707['generateNullCell'](_0x9be1f5)},_0x136b66=_0x5c4707[_0x55ede0(0x39e)](_0x6e9e9c,_0x10a839);let _0x57980e=!0x1;return new _0x497af0[(_0x55ede0(0x2a0))](_0x136b66[_0x55ede0(0x4db)])[_0x55ede0(0x447)]((_0x3ee373,_0x340376,_0x25b25a)=>{const _0x1a3232=_0x55ede0;if(!_0x57980e&&_0x25b25a&&(_0x25b25a[_0x1a3232(0x425)]||_0x25b25a['f']||_0x25b25a['p']||_0x25b25a['s']||_0x25b25a['si']||_0x25b25a['t']||_0x25b25a['v']))return _0x57980e=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x5c4707[_0x55ede0(0x2f8)]['id'],'params':_0x136b66},'setRangeValueRedoMutation':{'id':_0x5c4707['SetRangeValuesMutation']['id'],'params':_0x10a839},'shouldClear':_0x57980e};}function _0x2fc32a(_0x5547a0){const {row:_0x281748,col:_0x31d794}=_0x5547a0,_0x443099={'startRow':_0x281748,'endRow':_0x281748,'startColumn':_0x31d794,'endColumn':_0x31d794},_0x279bbf={'startRow':_0x281748+0x2,'endRow':_0x281748+0xe,'startColumn':_0x31d794,'endColumn':_0x31d794+0x6};return[_0x443099,_0x279bbf];}function _0x8a71ea(_0x1a3227,_0x21b798,_0x173d65){const _0x253a05=_0x58458d,{cornerView:_0x3f4d29,rowView:_0x299856,colView:_0x49f58f,pageView:_0x32fb81}=_0x1a3227,{row:_0x1e7a79,col:_0x4b37e0}=_0x21b798;if(_0x173d65)return{'rowCount':_0x48ab3b+_0x1e7a79,'colCount':_0x151195+_0x4b37e0};const _0x134e06=_0x32fb81[_0x253a05(0x211)]>-0x1?_0x32fb81[_0x253a05(0x211)]+0x1:0x0,_0x51f920=_0x32fb81[_0x253a05(0x488)]>-0x1?_0x32fb81['lastCol']:0x0,_0x8dc3bd=_0x1e7a79+_0x134e06+(_0x134e06?0x1:0x0)+_0x3f4d29[_0x253a05(0x25e)]+_0x299856['rowCount'],_0x3b5bb6=_0x4b37e0+_0x51f920,_0x342177=_0x4b37e0+_0x3f4d29['colCount']+_0x49f58f['colCount'],_0x468f1c=Math[_0x253a05(0x489)](_0x3b5bb6,_0x342177);return{'rowCount':_0x8dc3bd,'colCount':_0x468f1c};}function _0x30a1dd(_0x1c66dd,_0x89c481,_0x3e3b37,_0x2e6438){const _0xd7130b=_0x58458d,{row:_0x522242,col:_0x106212,unitId:_0x29ba1b,subUnitId:_0xe67d26}=_0x3e3b37,_0xbe1134=_0x8a71ea(_0x89c481,{'row':_0x522242,'col':_0x106212},_0x2e6438),_0x3ab339=_0x1c66dd[_0xd7130b(0x263)](_0x497af0[_0xd7130b(0x36d)]),_0x193624=_0x5c4707[_0xd7130b(0x409)](_0x3ab339,{'unitId':_0x29ba1b,'subUnitId':_0xe67d26}),_0x375e04=[],_0x218e17=[];if(!_0x193624)return{'undos':_0x218e17,'redos':_0x375e04};const {worksheet:_0x262d26}=_0x193624,_0x46c5e7=_0x262d26['getRowCount'](),_0x27f775=_0x262d26[_0xd7130b(0x245)]();return _0x46c5e7<_0xbe1134[_0xd7130b(0x25e)]&&(_0x375e04[_0xd7130b(0x384)]({'id':_0x5c4707[_0xd7130b(0x338)]['id'],'params':{'unitId':_0x29ba1b,'subUnitId':_0xe67d26,'range':{'startRow':_0x46c5e7,'endRow':_0xbe1134[_0xd7130b(0x25e)]-0x1,'startColumn':0x0,'endColumn':_0x27f775-0x1}}}),_0x218e17[_0xd7130b(0x384)]({'id':_0x5c4707['RemoveRowMutation']['id'],'params':{'unitId':_0x29ba1b,'subUnitId':_0xe67d26,'range':{'startRow':_0x46c5e7,'endRow':_0xbe1134[_0xd7130b(0x25e)]-0x1,'startColumn':0x0,'endColumn':_0x27f775-0x1}}})),_0x27f775<_0xbe1134[_0xd7130b(0x296)]&&(_0x375e04['push']({'id':_0x5c4707[_0xd7130b(0x405)]['id'],'params':{'unitId':_0x29ba1b,'subUnitId':_0xe67d26,'range':{'startRow':0x0,'endRow':_0x46c5e7-0x1,'startColumn':_0x27f775,'endColumn':_0xbe1134['colCount']-0x1}}}),_0x218e17['push']({'id':_0x5c4707[_0xd7130b(0x2ab)]['id'],'params':{'unitId':_0x29ba1b,'subUnitId':_0xe67d26,'range':{'startRow':0x0,'endRow':_0x46c5e7-0x1,'startColumn':_0x27f775,'endColumn':_0xbe1134[_0xd7130b(0x296)]-0x1}}})),{'undos':_0x218e17,'redos':_0x375e04};}function _0x1404ef(_0x3acc20){const _0x35f70a=_0x58458d;let _0x592f67=0x0;for(let _0x16c635=0x0;_0x16c635<_0x3acc20['length'];_0x16c635++){const _0x36db4c=_0x3acc20[_0x35f70a(0x30f)](_0x16c635);_0x36db4c>=0x4e00&&_0x36db4c<=0x9fff||_0x36db4c>=0x3000&&_0x36db4c<=0x303f||_0x36db4c>=0xff00&&_0x36db4c<=0xffef?_0x592f67+=0x2:_0x592f67+=0x1;}return _0x592f67;}function _0x239bef(_0x512fa4,_0x1d0a15,_0x51bff8,_0x559865){const _0x39d8b7=_0x58458d;var _0x32a981,_0x12c19b,_0x50bd0b,_0xa2736a;const {rowCount:_0x449c8a,colCount:_0x5df770,headerMap:_0x283d63}=_0x512fa4,_0x54bfad=0x64,_0x13ae96=Math[_0x39d8b7(0x4b6)](_0x449c8a,_0x54bfad),_0x297530=Math[_0x39d8b7(0x4b6)](_0x5df770,_0x54bfad);let _0x3436f9='',_0x6ee13f=0x0;for(let _0x563944=0x0;_0x563944<_0x13ae96;_0x563944++)for(let _0x8e887d=0x0;_0x8e887d<_0x297530;_0x8e887d++){const _0x2e9815={...(_0x12c19b=(_0x32a981=_0x512fa4[_0x39d8b7(0x4b0)])==null?void 0x0:_0x32a981[_0x563944])==null?void 0x0:_0x12c19b[_0x8e887d]},_0x2ab039=(_0x50bd0b=_0x283d63[_0x563944])==null?void 0x0:_0x50bd0b[_0x39d8b7(0x2f5)],_0x2104a7=_0x559865[_0x2ab039];let _0xc650da=_0x512fa4[_0x39d8b7(0x323)](_0x563944,_0x8e887d);if(_0x2e9815){const _0x52e5e6=_0x51bff8?_0x8e887d===0x0&&((_0xa2736a=_0x512fa4['getHeaderMapItem'](_0x8e887d+0x1))==null?void 0x0:_0xa2736a['isValue']):!0x1;_0xc650da=_0x301b46(_0x2e9815,_0x52e5e6,_0x2104a7,_0x1d0a15);}if(_0xc650da!==void 0x0){const _0x37f951=_0x1404ef(String(_0xc650da));_0x6ee13f<_0x37f951&&(_0x3436f9=String(_0xc650da),_0x6ee13f=_0x37f951);}}return _0x3436f9;}function _0x427960(_0xfebe6b){const _0x500162=_0x58458d,{rowCount:_0x1a7927,colCount:_0x1e1099}=_0xfebe6b;let _0x5cfc8d='',_0x4269fc=0x0;for(let _0x1b7169=_0x1a7927-0x1;_0x1b7169>0x0&&_0x1b7169>_0x1a7927-0x3;_0x1b7169--)for(let _0x44ae8e=0x0;_0x44ae8e<_0x1e1099;_0x44ae8e++){const _0x1e6653=_0xfebe6b[_0x500162(0x323)](_0x1b7169,_0x44ae8e);if(_0x1e6653!==void 0x0){const _0x203438=String(_0x1e6653)[_0x500162(0x24e)];_0x4269fc<_0x203438&&(_0x5cfc8d=String(_0x1e6653),_0x4269fc=_0x203438);}}return _0x5cfc8d;}function _0x5d6d87(_0x393e6b){const _0x133f85=_0x58458d,{rowCount:_0x1bdaa1,colCount:_0x46974c}=_0x393e6b;let _0x1adc55='',_0x4d86c0=0x0;for(let _0x2f5b46=0x0;_0x2f5b46<_0x1bdaa1;_0x2f5b46++)for(let _0x1591e3=0x0;_0x1591e3<_0x46974c;_0x1591e3++){const _0x18f10d=_0x393e6b[_0x133f85(0x323)](_0x2f5b46,_0x1591e3);if(_0x18f10d!==void 0x0){const _0x536142=String(_0x18f10d)[_0x133f85(0x24e)];_0x4d86c0<_0x536142&&(_0x1adc55=String(_0x18f10d),_0x4d86c0=_0x536142);}}return _0x1adc55;}function _0x4f27ce(_0x12b39a,_0x545320){const _0x35f1aa=_0x58458d,{rowFields:_0x4b66c9,columnFields:_0xdedd38,valueFields:_0x48089b,filterFields:_0x17943d,dimension:_0xd3c7c0,measure:_0x4f1947}=_0x545320;for(const _0x526174 of _0x4b66c9){const _0x441be3=_0xd3c7c0[_0x526174];_0x441be3&&_0x12b39a[_0x35f1aa(0x455)](_0x441be3[_0x35f1aa(0x2ca)])&&(_0x12b39a[_0x35f1aa(0x4d2)](_0x441be3[_0x35f1aa(0x2ca)],_0x3ccc66[_0x35f1aa(0x41f)]['Row'],void 0x0,_0x526174),_0x441be3['displayName']&&_0x12b39a[_0x35f1aa(0x483)](_0x441be3['id'],_0x441be3[_0x35f1aa(0x4bf)]),_0x441be3[_0x35f1aa(0x337)]&&_0x12b39a['setSortInfo'](_0x441be3['id'],_0x441be3[_0x35f1aa(0x337)]),_0x441be3[_0x35f1aa(0x343)]&&_0x12b39a[_0x35f1aa(0x360)](_0x441be3['id'],_0x441be3[_0x35f1aa(0x343)]));}for(const _0x5b6e0e of _0xdedd38){const _0x261350=_0xd3c7c0[_0x5b6e0e];_0x261350&&_0x12b39a[_0x35f1aa(0x455)](_0x261350[_0x35f1aa(0x2ca)])&&(_0x12b39a[_0x35f1aa(0x4d2)](_0x261350[_0x35f1aa(0x2ca)],_0x3ccc66[_0x35f1aa(0x41f)][_0x35f1aa(0x3b5)],void 0x0,_0x5b6e0e),_0x261350[_0x35f1aa(0x337)]&&_0x12b39a['setSortInfo'](_0x261350['id'],_0x261350[_0x35f1aa(0x337)]),_0x261350[_0x35f1aa(0x343)]&&_0x12b39a[_0x35f1aa(0x360)](_0x261350['id'],_0x261350['filterInfo']),_0x261350['displayName']&&_0x12b39a[_0x35f1aa(0x483)](_0x261350['id'],_0x261350[_0x35f1aa(0x4bf)]));}for(const _0x476245 of _0x17943d){const _0x35f42d=_0xd3c7c0[_0x476245];_0x35f42d&&_0x12b39a[_0x35f1aa(0x455)](_0x35f42d[_0x35f1aa(0x2ca)])&&(_0x12b39a['addFieldWithSourceId'](_0x35f42d['dataFieldId'],_0x3ccc66['PivotTableFiledAreaEnum'][_0x35f1aa(0x2e7)],void 0x0,_0x476245),_0x35f42d[_0x35f1aa(0x337)]&&_0x12b39a['setSortInfo'](_0x35f42d['id'],_0x35f42d['sortInfo']),_0x35f42d['filterInfo']&&_0x12b39a['setLabelFilterInfo'](_0x35f42d['id'],_0x35f42d[_0x35f1aa(0x343)]),_0x35f42d[_0x35f1aa(0x4bf)]&&_0x12b39a[_0x35f1aa(0x483)](_0x35f42d['id'],_0x35f42d[_0x35f1aa(0x4bf)]));}for(const _0x56f84a of _0x48089b){const _0x2e061e=_0x4f1947[_0x56f84a];_0x2e061e&&_0x12b39a[_0x35f1aa(0x455)](_0x2e061e[_0x35f1aa(0x2ca)])&&(_0x12b39a['addFieldWithSourceId'](_0x2e061e[_0x35f1aa(0x2ca)],_0x3ccc66[_0x35f1aa(0x41f)][_0x35f1aa(0x1ca)],void 0x0,_0x56f84a),_0x2e061e[_0x35f1aa(0x31c)]!==void 0x0&&_0x12b39a['setSubtotalType'](_0x56f84a,_0x2e061e[_0x35f1aa(0x31c)]),_0x2e061e[_0x35f1aa(0x3c5)]&&_0x12b39a[_0x35f1aa(0x380)](_0x56f84a,_0x2e061e[_0x35f1aa(0x3c5)]),_0x2e061e['displayName']&&_0x12b39a[_0x35f1aa(0x483)](_0x2e061e['id'],_0x2e061e[_0x35f1aa(0x4bf)]));}const _0x1ff149=_0x545320['valueFilter'];for(const {fieldId:_0x1f371c,filterInfo:_0x3a5e1a}of _0x1ff149)_0x12b39a['setValueFilterInfo'](_0x1f371c,_0x3a5e1a);}function _0xc24439(_0x1aeccc,_0x101b6e){const _0x485e2c=_0x58458d,_0x2b2863=[];_0x101b6e===_0x3ccc66[_0x485e2c(0x41f)][_0x485e2c(0x321)]&&_0x1aeccc[_0x485e2c(0x4a0)](_0x3ccc66[_0x485e2c(0x41f)][_0x485e2c(0x321)],_0x5084da=>{const _0x2309da=_0x485e2c;_0x2b2863[_0x2309da(0x384)](_0x5084da[_0x2309da(0x204)]());}),_0x101b6e===_0x3ccc66[_0x485e2c(0x41f)][_0x485e2c(0x3b5)]&&_0x1aeccc['iterateFieldByArea'](_0x3ccc66[_0x485e2c(0x41f)][_0x485e2c(0x3b5)],_0x17a5c1=>{const _0x5515c8=_0x485e2c;_0x2b2863[_0x5515c8(0x384)](_0x17a5c1[_0x5515c8(0x204)]());}),_0x101b6e===_0x3ccc66[_0x485e2c(0x41f)][_0x485e2c(0x2e7)]&&_0x1aeccc[_0x485e2c(0x4a0)](_0x3ccc66['PivotTableFiledAreaEnum']['Filter'],_0x2eeb89=>{const _0x3af574=_0x485e2c;_0x2b2863[_0x3af574(0x384)](_0x2eeb89[_0x3af574(0x204)]());}),_0x101b6e===_0x3ccc66[_0x485e2c(0x41f)][_0x485e2c(0x1ca)]&&_0x1aeccc[_0x485e2c(0x4a0)](_0x3ccc66[_0x485e2c(0x41f)]['Value'],_0x1532e2=>{const _0x386827=_0x485e2c;_0x2b2863[_0x386827(0x384)](_0x1532e2['getId']());}),_0x101b6e===void 0x0&&_0x1aeccc['iterateField'](_0x302bc8=>{const _0x428e9a=_0x485e2c;_0x2b2863['push'](_0x302bc8[_0x428e9a(0x204)]());});const _0x530476=_0x2b2863[_0x485e2c(0x24e)];for(let _0x2a7719=_0x530476-0x1;_0x2a7719>=0x0;_0x2a7719--)_0x1aeccc['removeField'](_0x2b2863[_0x2a7719]);const _0x51178e=_0x1aeccc[_0x485e2c(0x3a1)]();for(const _0x37d998 in _0x51178e)_0x1aeccc[_0x485e2c(0x290)](_0x37d998);}function _0x1b6715(_0x59a597,_0x4795dc){const _0x590f8d=_0x58458d,_0x5c9214=new Date(_0x3ccc66[_0x590f8d(0x24d)](_0x4795dc)),_0x71dd79=new Date(_0x3ccc66[_0x590f8d(0x24d)](_0x59a597)),_0xd3a026=_0x5c9214[_0x590f8d(0x2b2)](),_0x344fe4=_0x71dd79['getFullYear'](),_0xd2f08d=_0x5c9214[_0x590f8d(0x26d)](),_0x188678=_0x71dd79[_0x590f8d(0x26d)](),_0x27917b=_0x5c9214[_0x590f8d(0x2d2)](),_0x4c7958=_0x71dd79[_0x590f8d(0x2d2)](),_0x3aad62=_0xd3a026===_0x344fe4,_0x3b373a=_0x3aad62&&_0xd2f08d===_0x188678;return _0x3aad62&&_0x3b373a&&!(_0x3b373a&&_0x27917b===_0x4c7958)?_0x3ccc66[_0x590f8d(0x4a9)][_0x590f8d(0x2f4)]:_0x3aad62&&!_0x3b373a?_0x3ccc66[_0x590f8d(0x4a9)][_0x590f8d(0x25f)]:_0x3ccc66[_0x590f8d(0x4a9)][_0x590f8d(0x3d2)];}function _0x5475e8(_0x1cf3ba,_0x5af1ac){const _0x5ec4fb=_0x58458d,_0x4553f5=_0x1cf3ba[_0x5ec4fb(0x263)](_0x38ffc1['SheetsPivotDataSourceModel'])[_0x5ec4fb(0x344)]();let _0x51fec2='';switch(_0x5af1ac){case _0x3ccc66['PivotDateGroupFieldDateTypeEnum']['YearMonthDate']:_0x51fec2=_0x4553f5[_0x5ec4fb(0x45a)];break;case _0x3ccc66[_0x5ec4fb(0x4a9)][_0x5ec4fb(0x25f)]:_0x51fec2=_0x4553f5[_0x5ec4fb(0x265)];break;case _0x3ccc66['PivotDateGroupFieldDateTypeEnum'][_0x5ec4fb(0x3d2)]:_0x51fec2=_0x4553f5['sheets-pivot.dateGroup.year'];break;case _0x3ccc66[_0x5ec4fb(0x4a9)][_0x5ec4fb(0x1e7)]:_0x51fec2=_0x4553f5[_0x5ec4fb(0x4d4)];break;case _0x3ccc66[_0x5ec4fb(0x4a9)]['Quarter']:_0x51fec2=_0x4553f5[_0x5ec4fb(0x20d)];break;case _0x3ccc66[_0x5ec4fb(0x4a9)]['Date']:_0x51fec2=_0x4553f5['sheets-pivot.dateGroup.date'];break;case _0x3ccc66[_0x5ec4fb(0x4a9)]['HourMinute']:_0x51fec2=_0x4553f5['sheets-pivot.dateGroup.hourMinute'];break;case _0x3ccc66[_0x5ec4fb(0x4a9)][_0x5ec4fb(0x3d1)]:_0x51fec2=_0x4553f5[_0x5ec4fb(0x287)];break;case _0x3ccc66[_0x5ec4fb(0x4a9)][_0x5ec4fb(0x327)]:_0x51fec2=_0x4553f5['sheets-pivot.dateGroup.minute'];break;case _0x3ccc66[_0x5ec4fb(0x4a9)]['MonthDate']:_0x51fec2=_0x4553f5[_0x5ec4fb(0x304)];break;case _0x3ccc66[_0x5ec4fb(0x4a9)][_0x5ec4fb(0x2ac)]:_0x51fec2=_0x4553f5['sheets-pivot.dateGroup.yearQuarter'];break;default:_0x51fec2='';break;}return _0x51fec2;}const _0x36aea4=_0x58458d(0x1f6),_0x174cc1={};var _0x8bebfc=Object[_0x58458d(0x1f7)],_0x3ba4b4=(_0x643242,_0x398897,_0x6fde49,_0x5a5270)=>{const _0x3875db=_0x58458d;for(var _0x4108b4=_0x5a5270>0x1?void 0x0:_0x5a5270?_0x8bebfc(_0x398897,_0x6fde49):_0x398897,_0xb03bf6=_0x643242[_0x3875db(0x24e)]-0x1,_0x1d8ed5;_0xb03bf6>=0x0;_0xb03bf6--)(_0x1d8ed5=_0x643242[_0xb03bf6])&&(_0x4108b4=_0x1d8ed5(_0x4108b4)||_0x4108b4);return _0x4108b4;},_0x4d8485=(_0x17077a,_0x6fabaa)=>(_0x370bea,_0x5885af)=>_0x6fabaa(_0x370bea,_0x5885af,_0x17077a);_0x38ffc1[_0x58458d(0x27d)]=class extends _0x497af0['Disposable']{constructor(_0x45452c,_0x4d3347,_0x2bebe7,_0x4d099a,_0x10cfc6){const _0x4987e2=_0x58458d;super(),_0x5ebdc4(this,_0x4987e2(0x261),new Map()),_0x5ebdc4(this,'_collectionConfigModel',new Map()),_0x5ebdc4(this,_0x4987e2(0x203),new Map()),_0x5ebdc4(this,_0x4987e2(0x3a0),new Map()),_0x5ebdc4(this,_0x4987e2(0x1b6),new _0x5dbc97[(_0x4987e2(0x26a))]()),_0x5ebdc4(this,'_pivotInitCompleted$',new _0x5dbc97['Subject']()),_0x5ebdc4(this,_0x4987e2(0x3d8),this[_0x4987e2(0x235)][_0x4987e2(0x42e)]()),_0x5ebdc4(this,'_pivotConfigChange$',new _0x5dbc97[(_0x4987e2(0x26a))]()),_0x5ebdc4(this,_0x4987e2(0x1fb),this['_pivotConfigChange$']['asObservable']()),_0x5ebdc4(this,_0x4987e2(0x4c8),{}),_0x5ebdc4(this,_0x4987e2(0x1de),this[_0x4987e2(0x1b6)][_0x4987e2(0x42e)]()),(this[_0x4987e2(0x273)]=_0x45452c,this['_commandService']=_0x4d3347,this[_0x4987e2(0x1ff)]=_0x2bebe7,this[_0x4987e2(0x31d)]=_0x4d099a,this[_0x4987e2(0x29f)]=_0x10cfc6,this[_0x4987e2(0x3f3)](),this[_0x4987e2(0x490)]());const _0x4e9d2f=this[_0x4987e2(0x29f)][_0x4987e2(0x3cf)](_0x36aea4);(_0x4e9d2f==null?void 0x0:_0x4e9d2f[_0x4987e2(0x3cc)])===!0x0&&this[_0x4987e2(0x491)]();}[_0x58458d(0x490)](){const _0x79b902=_0x58458d;this['disposeWithMe'](this[_0x79b902(0x1ff)]['getTypeOfUnitDisposed$'](_0x497af0['UniverInstanceType']['UNIVER_SHEET'])['subscribe'](_0x4d0824=>{const _0xce12fa=_0x79b902;this[_0xce12fa(0x2c6)](_0x4d0824[_0xce12fa(0x389)]());}));}[_0x58458d(0x357)](){const _0xc4a336=_0x58458d;this[_0xc4a336(0x235)][_0xc4a336(0x3be)](!0x0);}[_0x58458d(0x3f3)](){const _0x3ce6c9=_0x58458d,_0xd0b121=_0x5f4bf3(this[_0x3ce6c9(0x273)],_0x552964,'',{});this[_0x3ce6c9(0x4c8)]=_0xd0b121,this['_commandService'][_0x3ce6c9(0x35e)](_0x1dd4e2['id'],{'textInfo':_0xd0b121},{'onlyLocal':!0x0});}['getTextInfo'](){const _0x1090fe=_0x58458d;return this[_0x1090fe(0x4c8)];}[_0x58458d(0x2f2)](_0x28b337,_0xc95681,_0x2151bc,_0x2db58c,_0x19e810){const _0x4d7a56=_0x58458d;this[_0x4d7a56(0x21a)](_0x28b337,_0xc95681,_0x2151bc,_0x2db58c),this[_0x4d7a56(0x4af)](_0x28b337,_0xc95681,_0x2151bc,_0x19e810);}[_0x58458d(0x2ef)](_0x4e4c83,_0x4e267c,_0x3b7b91){const _0x45f86e=_0x58458d;var _0x2d0ecc;const _0x49d027=(_0x2d0ecc=this[_0x45f86e(0x261)]['get'](_0x4e4c83))==null?void 0x0:_0x2d0ecc[_0x45f86e(0x263)](_0x4e267c);if(_0x49d027)return _0x49d027[_0x45f86e(0x263)](_0x3b7b91);}[_0x58458d(0x465)](_0x153c9e,_0xdc799d){const _0x145950=_0x58458d,_0x20464d=this['_model'][_0x145950(0x263)](_0x153c9e);if(_0x20464d){for(const [_0x410e10,_0x5b85fe]of _0x20464d[_0x145950(0x20b)]())for(const [_0x1628ad,_0x25de7a]of _0x5b85fe[_0x145950(0x20b)]())if(_0x1628ad===_0xdc799d)return _0x25de7a[_0x145950(0x301)];}}[_0x58458d(0x3ab)](_0x19726d,_0x13be26,_0x58b61e){const _0xee63e7=_0x58458d,_0x502f62=this[_0xee63e7(0x2ef)](_0x19726d,_0x13be26,_0x58b61e);return _0x502f62==null?void 0x0:_0x502f62[_0xee63e7(0x301)];}['getSubUnitPivotConfigs'](_0x19992f,_0x1a2c85){const _0x46da77=_0x58458d;var _0x12f937;return(_0x12f937=this[_0x46da77(0x261)]['get'](_0x19992f))==null?void 0x0:_0x12f937[_0x46da77(0x263)](_0x1a2c85);}['updateConfigCache'](_0x4aee56,_0x4c17e6,_0x55f87f,_0x2f67a4){const _0x518ffc=_0x58458d,_0x466e03=this[_0x518ffc(0x38c)](_0x4aee56,_0x4c17e6);_0x2f67a4?_0x466e03[_0x518ffc(0x202)](_0x55f87f,_0x2f67a4):_0x466e03[_0x518ffc(0x336)](_0x55f87f),this[_0x518ffc(0x40f)][_0x518ffc(0x3be)]({'unitId':_0x4aee56,'subUnitId':_0x4c17e6,'pivotTableId':_0x55f87f,'pivotTableConfig':_0x2f67a4});}['getCollection'](_0x4d2316,_0x365a38){const _0x54a99f=_0x58458d;var _0x14b531;return(_0x14b531=this[_0x54a99f(0x471)][_0x54a99f(0x263)](_0x4d2316))==null?void 0x0:_0x14b531[_0x54a99f(0x4b7)][_0x365a38];}[_0x58458d(0x4d0)](_0x5e8fa1,_0x3b7453){const _0x3de402=_0x58458d;this['_collectionConfigModel'][_0x3de402(0x202)](_0x5e8fa1,_0x3b7453),this['_configVersion$']['next'](Math[_0x3de402(0x310)]());}['_ensurePivotMap'](_0x4ed2,_0x127da0){const _0x2038e4=_0x58458d;let _0x5ce951=this[_0x2038e4(0x261)]['get'](_0x4ed2);_0x5ce951||(_0x5ce951=new Map(),this['_model'][_0x2038e4(0x202)](_0x4ed2,_0x5ce951));let _0x1a7fba=_0x5ce951[_0x2038e4(0x263)](_0x127da0);return _0x1a7fba||(_0x1a7fba=new Map(),_0x5ce951[_0x2038e4(0x202)](_0x127da0,_0x1a7fba)),_0x1a7fba;}[_0x58458d(0x27a)](_0x8249e5,_0x5bb30a){const _0x111c90=_0x58458d;let _0x3d2e28=this[_0x111c90(0x203)][_0x111c90(0x263)](_0x8249e5);_0x3d2e28||(_0x3d2e28=new Map(),this[_0x111c90(0x203)][_0x111c90(0x202)](_0x8249e5,_0x3d2e28));let _0x4cb690=_0x3d2e28['get'](_0x5bb30a);return _0x4cb690||(_0x4cb690=new Map(),_0x3d2e28[_0x111c90(0x202)](_0x5bb30a,_0x4cb690)),_0x4cb690;}['_ensurePivotTableMatrixInfo'](_0x26f28a,_0x5dc7fe){const _0x122c70=_0x58458d;let _0x3d85c8=this['_pivotTableMatrixInfo'][_0x122c70(0x263)](_0x26f28a);_0x3d85c8||(_0x3d85c8=new Map(),this['_pivotTableMatrixInfo'][_0x122c70(0x202)](_0x26f28a,_0x3d85c8));let _0x5f0d14=_0x3d85c8[_0x122c70(0x263)](_0x5dc7fe);return _0x5f0d14||(_0x5f0d14=new Map(),_0x3d85c8[_0x122c70(0x202)](_0x5dc7fe,_0x5f0d14)),_0x5f0d14;}[_0x58458d(0x4af)](_0x959ebf,_0x22f208,_0x12f036,_0x30c908){const _0x483b6e=_0x58458d;var _0x3a9347;const _0x166f35=this[_0x483b6e(0x27a)](_0x959ebf,_0x22f208),_0x1a0229=(_0x3a9347=_0x166f35[_0x483b6e(0x263)](_0x12f036))==null?void 0x0:_0x3a9347['oldRangeInfo'];_0x166f35[_0x483b6e(0x202)](_0x12f036,{'oldRangeInfo':_0x1a0229,'rangeInfo':_0x30c908});}['updatePivotTableMatrixInfo'](_0x162332,_0x217707,_0x1cc91b,_0x446da9){const _0x2f506d=_0x58458d;var _0x31cae3;const _0x225bb5=this[_0x2f506d(0x46f)](_0x162332,_0x217707),_0x34e2f4=(_0x31cae3=_0x225bb5[_0x2f506d(0x263)](_0x1cc91b))==null?void 0x0:_0x31cae3['oldMatrix'];_0x225bb5[_0x2f506d(0x202)](_0x1cc91b,{'oldMatrix':_0x34e2f4,'matrix':_0x446da9});}['getPivotTableRangeInfo'](_0x57a11b,_0x3e1b2a,_0x4d880b){const _0x1c14e5=_0x58458d;var _0x1e51f2,_0x35ddb5;return(_0x35ddb5=(_0x1e51f2=this[_0x1c14e5(0x203)][_0x1c14e5(0x263)](_0x57a11b))==null?void 0x0:_0x1e51f2[_0x1c14e5(0x263)](_0x3e1b2a))==null?void 0x0:_0x35ddb5[_0x1c14e5(0x263)](_0x4d880b);}[_0x58458d(0x1ec)](_0x295f2e,_0x299459,_0x45c8d4){const _0x3aeda4=_0x58458d;var _0x280111,_0x1dfa5c;return(_0x1dfa5c=(_0x280111=this[_0x3aeda4(0x3a0)][_0x3aeda4(0x263)](_0x295f2e))==null?void 0x0:_0x280111[_0x3aeda4(0x263)](_0x299459))==null?void 0x0:_0x1dfa5c['get'](_0x45c8d4);}[_0x58458d(0x2c6)](_0x13634c){const _0x2e054e=_0x58458d;this[_0x2e054e(0x261)][_0x2e054e(0x336)](_0x13634c),this['_collectionConfigModel'][_0x2e054e(0x336)](_0x13634c);}['_toJSON'](_0x33c186){const _0x2f4d88=_0x58458d,_0x2f9faa={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x2f4d88(0x471)]['get'](_0x33c186)&&(_0x2f9faa['dataFieldManagerConfig'][_0x33c186]=this[_0x2f4d88(0x471)]['get'](_0x33c186)),this[_0x2f4d88(0x261)][_0x2f4d88(0x263)](_0x33c186)){_0x2f9faa[_0x2f4d88(0x371)][_0x33c186]={};const _0x959f0=this['_model']['get'](_0x33c186);_0x959f0!=null&&_0x959f0[_0x2f4d88(0x20f)]&&[..._0x959f0[_0x2f4d88(0x302)]()][_0x2f4d88(0x466)](_0x1964fa=>{const _0x495f10=_0x2f4d88,_0x558f4e=_0x959f0[_0x495f10(0x263)](_0x1964fa);_0x558f4e!=null&&_0x558f4e[_0x495f10(0x20f)]&&(_0x2f9faa['pivotTableConfigs'][_0x33c186][_0x1964fa]={},[..._0x558f4e[_0x495f10(0x302)]()][_0x495f10(0x466)](_0x5918a8=>{const _0x5b1935=_0x495f10,_0x10da36=_0x558f4e['get'](_0x5918a8);_0x10da36&&(_0x2f9faa[_0x5b1935(0x371)][_0x33c186][_0x1964fa][_0x5918a8]=_0x10da36);}));});}return _0x2f9faa;}[_0x58458d(0x491)](){const _0x3f0ae6=_0x58458d;this[_0x3f0ae6(0x3c8)](this[_0x3f0ae6(0x31d)][_0x3f0ae6(0x396)]({'toJson':_0x1b2642=>JSON[_0x3f0ae6(0x42c)](this[_0x3f0ae6(0x27b)](_0x1b2642)),'parseJson':_0x2ab530=>({}),'businesses':[_0x497af0['UniverInstanceType'][_0x3f0ae6(0x346)]],'pluginName':_0x1a8d1f,'onLoad':(_0xbcfc9a,_0x2a44ed)=>{},'onUnLoad':_0x207464=>{const _0x33d2d3=_0x3f0ae6;this[_0x33d2d3(0x2c6)](_0x207464);}}));}},_0x38ffc1[_0x58458d(0x27d)]=_0x3ba4b4([_0x4d8485(0x0,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x450)])),_0x4d8485(0x1,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x231)])),_0x4d8485(0x2,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x36d)])),_0x4d8485(0x3,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x2cf)])),_0x4d8485(0x4,_0x497af0[_0x58458d(0x41d)](_0x497af0['IConfigService']))],_0x38ffc1[_0x58458d(0x27d)]);var _0x578bfc=Object['getOwnPropertyDescriptor'],_0x4bee30=(_0x12a9ee,_0x2059f7,_0x1253f7,_0x49f6a9)=>{const _0x578f67=_0x58458d;for(var _0x2bf19a=_0x49f6a9>0x1?void 0x0:_0x49f6a9?_0x578bfc(_0x2059f7,_0x1253f7):_0x2059f7,_0x3a3e35=_0x12a9ee[_0x578f67(0x24e)]-0x1,_0x4f1edd;_0x3a3e35>=0x0;_0x3a3e35--)(_0x4f1edd=_0x12a9ee[_0x3a3e35])&&(_0x2bf19a=_0x4f1edd(_0x2bf19a)||_0x2bf19a);return _0x2bf19a;},_0x108ce1=(_0x1eaf25,_0x3e9ff0)=>(_0x2101ba,_0x4ded3d)=>_0x3e9ff0(_0x2101ba,_0x4ded3d,_0x1eaf25);_0x38ffc1[_0x58458d(0x3dc)]=class extends _0x497af0['Disposable']{constructor(_0x343838,_0x56b4ba,_0x1682cf,_0x4214bd,_0x75fb69){const _0x2ef90a=_0x58458d;super(),_0x5ebdc4(this,_0x2ef90a(0x31b),new Map()),_0x5ebdc4(this,_0x2ef90a(0x2c8),new Map()),_0x5ebdc4(this,_0x2ef90a(0x259),new _0x5dbc97[(_0x2ef90a(0x26a))]()),_0x5ebdc4(this,_0x2ef90a(0x3ba),this[_0x2ef90a(0x259)][_0x2ef90a(0x42e)]()),_0x5ebdc4(this,_0x2ef90a(0x498),new _0x5dbc97[(_0x2ef90a(0x26a))]()),_0x5ebdc4(this,'viewUpdate$',this[_0x2ef90a(0x498)][_0x2ef90a(0x42e)]()),_0x5ebdc4(this,'_textInfo'),(this[_0x2ef90a(0x339)]=_0x343838,this[_0x2ef90a(0x273)]=_0x56b4ba,this[_0x2ef90a(0x38d)]=_0x1682cf,this[_0x2ef90a(0x1ff)]=_0x4214bd,this['_exclusiveRangeService']=_0x75fb69,this['_initLocale'](),this[_0x2ef90a(0x490)]());}[_0x58458d(0x490)](){const _0x54ac48=_0x58458d;this[_0x54ac48(0x3c8)](this[_0x54ac48(0x1ff)]['getTypeOfUnitDisposed$'](_0x497af0[_0x54ac48(0x318)][_0x54ac48(0x346)])[_0x54ac48(0x320)](_0x13a0f0=>{const _0x15415b=_0x54ac48;this[_0x15415b(0x2c6)](_0x13a0f0[_0x15415b(0x389)]());}));}[_0x58458d(0x3f3)](){const _0x417e12=_0x58458d;this[_0x417e12(0x4c8)]=_0x5f4bf3(this['_injector'],_0x552964,'',{});}[_0x58458d(0x20e)](_0x239f13){const _0x37c19=_0x58458d,{view:_0x5cb8fd,unitId:_0x40860a,subUnitId:_0x3025dc,pivotTableId:_0x3a6bc4,type:_0x3f2988}=_0x239f13,_0x2624bb=this['_sheetsPivotTableConfigModel']['getPivotTableConfig'](_0x40860a,_0x3025dc,_0x3a6bc4);if(!_0x5cb8fd||!_0x2624bb||_0x3f2988===_0x1d1e60[_0x37c19(0x312)])return;const {pageView:_0x533c40,cornerView:_0x378ac2,rowView:_0x36ec54,colView:_0x2c910b,dataView:_0x17e395}=_0x5cb8fd,_0x57800d=_0x2624bb[_0x37c19(0x301)],_0x5475a6=_0x2624bb['isEmpty'],_0x861496=this[_0x37c19(0x2f0)](_0x40860a,_0x3025dc),_0x2d4915=this[_0x37c19(0x3ae)](_0x40860a,_0x3025dc,_0x3a6bc4);if(_0x5475a6)return this[_0x37c19(0x26f)](_0x239f13,_0x861496,_0x57800d,_0x2d4915);{const _0x414570=_0x2ea9fe(_0x57800d,_0x533c40,!0x0),_0x4a85cb=_0x533c40[_0x37c19(0x211)]>=0x0?_0x533c40['lastRow']+0x1:0x0,_0x332ca8=_0x378ac2[_0x37c19(0x392)](),_0x1b67c8=_0x378ac2[_0x37c19(0x3e3)](),_0x57450b=_0x414570['length']>0x0?_0x133e7e:0x0,_0x2a9af3=_0x2ea9fe({'row':_0x57800d[_0x37c19(0x329)]+_0x4a85cb+_0x57450b,'col':_0x57800d['col']},_0x378ac2,!0x1,!0x1),_0xca1a6e=_0x2ea9fe({'row':_0x57800d['row']+_0x4a85cb+_0x57450b+_0x332ca8,'col':_0x57800d[_0x37c19(0x3e4)]},_0x36ec54,!0x1,!0x0),_0x54b5b9=_0x2ea9fe({'row':_0x57800d[_0x37c19(0x329)]+_0x4a85cb+_0x57450b,'col':_0x57800d['col']+_0x1b67c8},_0x2c910b,!0x1,!0x0),_0x80acbf=_0x2ea9fe({'row':_0x57800d[_0x37c19(0x329)]+_0x4a85cb+_0x57450b+_0x332ca8,'col':_0x57800d[_0x37c19(0x3e4)]+_0x1b67c8},_0x17e395,!0x1,!0x1);_0x2d4915[_0x37c19(0x260)]={'rowRanges':_0xca1a6e,'colRanges':_0x54b5b9,'cornerRanges':_0x2a9af3,'dataRanges':_0x80acbf,'pageRanges':_0x414570};const _0x5182a0=_0x5ba39b(this['_injector'],_0x5cb8fd,_0x2624bb,this[_0x37c19(0x4c8)]),{valueMatrix:_0x429de3,rowInfo:_0x1e0287,colInfo:_0x108431,cornerInfo:_0x486411,rowHeaderMap:_0x28e8d5,colHeaderMap:_0x3fa73d}=_0x5182a0;return _0x2d4915[_0x37c19(0x2e6)]={'rowInfo':_0x1e0287,'colInfo':_0x108431,'cornerInfo':_0x486411},_0x2d4915['headerMap']={'rowHeaderMap':_0x28e8d5,'colHeaderMap':_0x3fa73d},_0x429de3[_0x37c19(0x466)]((_0x3c28d1,_0x24d282)=>{const _0x44855f=_0x37c19;Object['keys'](_0x24d282)[_0x44855f(0x466)](_0x5bd510=>{const _0x43def0=_0x44855f,_0xa9bb78=+_0x5bd510,_0x2fc92e=_0x429de3[_0x43def0(0x323)](_0x3c28d1,_0xa9bb78);_0x861496[_0x43def0(0x412)](_0x3c28d1,_0xa9bb78,_0x2fc92e);});}),this['_viewUpdate$'][_0x37c19(0x3be)]({'unitId':_0x40860a,'subUnitId':_0x3025dc,'valueMatrix':_0x861496,'rangesCache':_0x2d4915['rangesInfo'],'pivotTableId':_0x3a6bc4,'type':_0x239f13[_0x37c19(0x423)]}),this[_0x37c19(0x38d)][_0x37c19(0x2f2)](_0x40860a,_0x3025dc,_0x3a6bc4,_0x861496,_0x2d4915[_0x37c19(0x260)]),this[_0x37c19(0x32a)][_0x37c19(0x251)](_0x40860a,_0x3025dc,_0x3cd3ad,this[_0x37c19(0x2a7)](_0x2d4915[_0x37c19(0x260)],_0x3a6bc4)),{'rangeCache':_0x2d4915[_0x37c19(0x260)],'matrix':_0x861496};}}[_0x58458d(0x26f)](_0x49a166,_0x309e2b,_0x538fbe,_0x26d917){const _0x748a60=_0x58458d,_0x26566f=this['_localeService']['t'],{unitId:_0x297d79,subUnitId:_0x450a48,pivotTableId:_0xf3d363}=_0x49a166,_0x2861bd={'filter':_0x26566f(_0x748a60(0x461)),'row':_0x26566f(_0x748a60(0x2d1)),'column':_0x26566f(_0x748a60(0x411)),'values':_0x26566f(_0x748a60(0x41e))},{matrixCache:_0x2f205c,rangesCache:_0x159598}=_0x31ab7b(_0x2861bd,_0x538fbe);return _0x2f205c[_0x748a60(0x447)]((_0x5bf3c5,_0xf2f936,_0x2c0052)=>{_0x309e2b['setValue'](_0x5bf3c5,_0xf2f936,_0x2c0052);}),_0x26d917[_0x748a60(0x260)]=_0x159598,this[_0x748a60(0x498)]['next']({'unitId':_0x297d79,'subUnitId':_0x450a48,'valueMatrix':_0x309e2b,'rangesCache':_0x159598,'pivotTableId':_0xf3d363,'type':_0x49a166[_0x748a60(0x423)],'isEmpty':!0x0}),this['_sheetsPivotTableConfigModel'][_0x748a60(0x2f2)](_0x297d79,_0x450a48,_0xf3d363,_0x309e2b,_0x159598),this[_0x748a60(0x32a)]['addExclusiveRange'](_0x297d79,_0x450a48,_0x3cd3ad,this[_0x748a60(0x2a7)](_0x159598,_0xf3d363)),{'rangeCache':_0x26d917[_0x748a60(0x260)],'matrix':_0x309e2b};}[_0x58458d(0x2a7)](_0x512d48,_0x27705c){const _0x453518=_0x58458d,_0x292206=[],_0x25f916=_0x478f3c(_0x512d48);for(const _0x28ee79 of _0x25f916)_0x292206[_0x453518(0x384)]({'groupId':_0x27705c,'range':_0x28ee79});return _0x292206;}['clearRenderCache'](_0x1d47b8){const _0x39a2d5=_0x58458d;var _0x1afa36,_0x4cf669,_0x2fa4dd,_0x4c5334;const {pivotTableId:_0x3a564f,unitId:_0x16e8a3,subUnitId:_0x303689}=_0x1d47b8;if(!_0x3a564f||!_0x16e8a3||!_0x303689)return;const _0x2807aa=this[_0x39a2d5(0x2f0)](_0x16e8a3,_0x303689),_0x2fa86a=(_0x4cf669=(_0x1afa36=this['_pivotRenderInfoCache'][_0x39a2d5(0x263)](_0x16e8a3))==null?void 0x0:_0x1afa36[_0x39a2d5(0x263)](_0x303689))==null?void 0x0:_0x4cf669[_0x39a2d5(0x263)](_0x3a564f);if(_0x2fa86a!=null&&_0x2fa86a[_0x39a2d5(0x260)]){for(const _0xd350a5 of Object[_0x39a2d5(0x302)](_0x2fa86a[_0x39a2d5(0x260)]))_0x2fa86a[_0x39a2d5(0x260)][_0xd350a5][_0x39a2d5(0x466)](_0x401b0d=>{const _0x574061=_0x39a2d5;for(let _0x22f4dc=_0x401b0d[_0x574061(0x280)];_0x22f4dc<=_0x401b0d['endRow'];_0x22f4dc++)for(let _0x5ef47a=_0x401b0d['startColumn'];_0x5ef47a<=_0x401b0d[_0x574061(0x300)];_0x5ef47a++)_0x2807aa[_0x574061(0x28a)](_0x22f4dc,_0x5ef47a);});}_0x2fa86a&&((_0x4c5334=(_0x2fa4dd=this[_0x39a2d5(0x31b)][_0x39a2d5(0x263)](_0x16e8a3))==null?void 0x0:_0x2fa4dd[_0x39a2d5(0x263)](_0x303689))==null||_0x4c5334[_0x39a2d5(0x336)](_0x3a564f)),this[_0x39a2d5(0x498)]['next']({'unitId':_0x16e8a3,'subUnitId':_0x303689,'valueMatrix':_0x2807aa,'pivotTableId':_0x3a564f,'rangesCache':void 0x0,'type':_0x1d47b8[_0x39a2d5(0x423)]}),this[_0x39a2d5(0x32a)]['clearExclusiveRangesByGroupId'](_0x16e8a3,_0x303689,_0x3cd3ad,_0x3a564f);}[_0x58458d(0x3ae)](_0x452fdb,_0x2f44f1,_0x46d680){const _0x48ee21=_0x58458d;var _0x2f3aa6,_0x3b0f08,_0x4fb2e6,_0x2472f8,_0x385b8f,_0x141e03;return this[_0x48ee21(0x31b)][_0x48ee21(0x2ec)](_0x452fdb)||this[_0x48ee21(0x31b)][_0x48ee21(0x202)](_0x452fdb,new Map()),(_0x2f3aa6=this['_pivotRenderInfoCache'][_0x48ee21(0x263)](_0x452fdb))!=null&&_0x2f3aa6[_0x48ee21(0x2ec)](_0x2f44f1)||(_0x3b0f08=this[_0x48ee21(0x31b)]['get'](_0x452fdb))==null||_0x3b0f08[_0x48ee21(0x202)](_0x2f44f1,new Map()),(_0x2472f8=(_0x4fb2e6=this['_pivotRenderInfoCache']['get'](_0x452fdb))==null?void 0x0:_0x4fb2e6['get'](_0x2f44f1))!=null&&_0x2472f8['has'](_0x46d680)||(_0x141e03=(_0x385b8f=this[_0x48ee21(0x31b)]['get'](_0x452fdb))==null?void 0x0:_0x385b8f[_0x48ee21(0x263)](_0x2f44f1))==null||_0x141e03[_0x48ee21(0x202)](_0x46d680,{}),this[_0x48ee21(0x31b)][_0x48ee21(0x263)](_0x452fdb)['get'](_0x2f44f1)['get'](_0x46d680);}[_0x58458d(0x2f0)](_0x3476d9,_0x5d9c67){const _0x3a35ea=_0x58458d;var _0x4b9a8e,_0x53376f;return this[_0x3a35ea(0x2c8)][_0x3a35ea(0x2ec)](_0x3476d9)||this[_0x3a35ea(0x2c8)]['set'](_0x3476d9,new Map()),(_0x4b9a8e=this[_0x3a35ea(0x2c8)][_0x3a35ea(0x263)](_0x3476d9))!=null&&_0x4b9a8e[_0x3a35ea(0x2ec)](_0x5d9c67)||(_0x53376f=this[_0x3a35ea(0x2c8)][_0x3a35ea(0x263)](_0x3476d9))==null||_0x53376f['set'](_0x5d9c67,new _0x497af0[(_0x3a35ea(0x2a0))]()),this[_0x3a35ea(0x2c8)][_0x3a35ea(0x263)](_0x3476d9)[_0x3a35ea(0x263)](_0x5d9c67);}[_0x58458d(0x282)](_0x5033f1,_0x4506ac,_0x246b7f,_0x9bcb81){const _0xa102ed=_0x58458d;var _0x474fab,_0x46866f;const _0x2f3d08=(_0x46866f=(_0x474fab=this[_0xa102ed(0x2c8)][_0xa102ed(0x263)](_0x5033f1))==null?void 0x0:_0x474fab[_0xa102ed(0x263)](_0x4506ac))==null?void 0x0:_0x46866f[_0xa102ed(0x323)](_0x246b7f,_0x9bcb81);if(_0x2f3d08!=null)return _0x2f3d08;}[_0x58458d(0x28f)](_0x228542,_0x30b7b4,_0x3132b3,_0x16d501){const _0x15a582=_0x58458d;var _0x2a5279;const _0x132da4=_0x497af0['cellToRange'](_0x3132b3,_0x16d501),_0x5431b7=(_0x2a5279=this[_0x15a582(0x31b)]['get'](_0x228542))==null?void 0x0:_0x2a5279[_0x15a582(0x263)](_0x30b7b4);return _0x5431b7?Array[_0x15a582(0x47b)](_0x5431b7[_0x15a582(0x302)]())[_0x15a582(0x496)](_0x3c6300=>{const _0xc5e24=_0x15a582,_0x327f86=_0x5431b7['get'](_0x3c6300),_0x27f7ba=_0x327f86==null?void 0x0:_0x327f86[_0xc5e24(0x260)];return _0x27f7ba?Object[_0xc5e24(0x302)](_0x27f7ba)[_0xc5e24(0x1c1)](_0x399d0c=>_0x27f7ba[_0x399d0c][_0xc5e24(0x1c1)](_0x3b78d2=>_0x497af0[_0xc5e24(0x388)]['contains'](_0x3b78d2,_0x132da4))):!0x1;}):void 0x0;}[_0x58458d(0x3fb)](_0x38fb1b,_0x5a2995,_0xde2aa1){const _0x490895=_0x58458d;var _0x570eeb;const _0x2caf81=(_0x570eeb=this['_pivotRenderInfoCache'][_0x490895(0x263)](_0x38fb1b))==null?void 0x0:_0x570eeb[_0x490895(0x263)](_0x5a2995),_0x4c777b=[];return _0x2caf81&&Array[_0x490895(0x47b)](_0x2caf81[_0x490895(0x302)]())[_0x490895(0x466)](_0x474ac2=>{const _0x459bc2=_0x490895,_0x5307da=_0x2caf81[_0x459bc2(0x263)](_0x474ac2),_0x4b7060=_0x5307da==null?void 0x0:_0x5307da['rangesInfo'];if(_0x4b7060)for(const _0x3913f1 of Object[_0x459bc2(0x43c)](_0x4b7060)){let _0x306f03=!0x1;for(const _0x58299b of _0x3913f1)if(_0x497af0[_0x459bc2(0x388)]['intersects'](_0x58299b,_0xde2aa1)){_0x4c777b[_0x459bc2(0x384)](_0x474ac2),_0x306f03=!0x0;break;}if(_0x306f03)break;}}),_0x4c777b;}[_0x58458d(0x366)](_0x1520ce,_0xbfe243){const _0x4a4988=_0x58458d;var _0x537bad,_0x291efc;return(_0x291efc=(_0x537bad=this['_pivotRenderValueMatrixCache'][_0x4a4988(0x263)](_0x1520ce))==null?void 0x0:_0x537bad[_0x4a4988(0x263)](_0xbfe243))!=null?_0x291efc:new _0x497af0[(_0x4a4988(0x2a0))]();}['getSubUnitPivotRenderCache'](_0x330084,_0x4d0a2a){const _0x534e42=_0x58458d;var _0x4cc923;return(_0x4cc923=this[_0x534e42(0x31b)][_0x534e42(0x263)](_0x330084))==null?void 0x0:_0x4cc923[_0x534e42(0x263)](_0x4d0a2a);}[_0x58458d(0x209)](_0x4dca01,_0xf6a909,_0x7bc4b2){const _0x1937fb=_0x58458d;var _0x48871a,_0x418db9;return(_0x418db9=(_0x48871a=this[_0x1937fb(0x31b)][_0x1937fb(0x263)](_0x4dca01))==null?void 0x0:_0x48871a['get'](_0xf6a909))==null?void 0x0:_0x418db9['get'](_0x7bc4b2);}['deleteUnitId'](_0x495042){const _0x2d0c7f=_0x58458d;this[_0x2d0c7f(0x31b)][_0x2d0c7f(0x336)](_0x495042),this[_0x2d0c7f(0x2c8)]['delete'](_0x495042);}[_0x58458d(0x4b4)](_0x59b8ef,_0x151c5e){const _0xa2a3fd=_0x58458d;this[_0xa2a3fd(0x259)]['next']({'unitId':_0x59b8ef,'subUnitId':_0x151c5e});}},_0x38ffc1[_0x58458d(0x3dc)]=_0x4bee30([_0x108ce1(0x0,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x4d6)])),_0x108ce1(0x1,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x450)])),_0x108ce1(0x2,_0x497af0[_0x58458d(0x41d)](_0x38ffc1[_0x58458d(0x27d)])),_0x108ce1(0x3,_0x497af0[_0x58458d(0x41d)](_0x497af0['IUniverInstanceService'])),_0x108ce1(0x4,_0x497af0[_0x58458d(0x41d)](_0x5c4707['IExclusiveRangeService']))],_0x38ffc1[_0x58458d(0x3dc)]);var _0x4e85e5=Object[_0x58458d(0x1f7)],_0x194c8a=(_0x2ad86d,_0x221d28,_0x186a3b,_0x2ca01e)=>{const _0x10fbb3=_0x58458d;for(var _0x2ea259=_0x2ca01e>0x1?void 0x0:_0x2ca01e?_0x4e85e5(_0x221d28,_0x186a3b):_0x221d28,_0x2e69d2=_0x2ad86d[_0x10fbb3(0x24e)]-0x1,_0x6fb184;_0x2e69d2>=0x0;_0x2e69d2--)(_0x6fb184=_0x2ad86d[_0x2e69d2])&&(_0x2ea259=_0x6fb184(_0x2ea259)||_0x2ea259);return _0x2ea259;},_0x3ada01=(_0x3c16fd,_0x296900)=>(_0x2808de,_0x19fe74)=>_0x296900(_0x2808de,_0x19fe74,_0x3c16fd);_0x38ffc1[_0x58458d(0x3c6)]=class extends _0x497af0[_0x58458d(0x28c)]{constructor(_0x503675,_0x436f01){const _0x40c1af=_0x58458d;super(),_0x5ebdc4(this,'asyncInterceptor',new _0x497af0[(_0x40c1af(0x229))]({'PIVOT_PERFORM_CHECK':_0x2518b2})),_0x5ebdc4(this,_0x40c1af(0x472),new _0x497af0[(_0x40c1af(0x365))]({'PIVOT_MUTATION_GENERATE':_0xab1420})),(this['_sheetInterceptorService']=_0x503675,this[_0x40c1af(0x4a5)]=_0x436f01,this[_0x40c1af(0x2ed)]());}['_init'](){const _0xc403bf=_0x58458d;this[_0xc403bf(0x4c3)]();}[_0x58458d(0x317)](_0x20d832){const _0x30b8ff=_0x58458d;return this[_0x30b8ff(0x2ae)][_0x30b8ff(0x4ae)](_0x2518b2)(!0x1,_0x20d832);}[_0x58458d(0x4c3)](){const _0x2cb881=_0x58458d;this[_0x2cb881(0x3c8)](this[_0x2cb881(0x49b)][_0x2cb881(0x46c)](_0x5c4707[_0x2cb881(0x1da)][_0x2cb881(0x397)],{'priority':0xc8,'effect':_0x497af0[_0x2cb881(0x309)][_0x2cb881(0x1ca)]|_0x497af0[_0x2cb881(0x309)][_0x2cb881(0x38a)],'handler':(_0x1128eb,_0x4b0a9d,_0xe9b926)=>{const _0x5761c6=_0x2cb881,{row:_0x4927ee,col:_0x2c2874,unitId:_0x5efd2d,subUnitId:_0x48f076,workbook:_0x37982d}=_0x4b0a9d,_0x293ae4=this[_0x5761c6(0x4a5)][_0x5761c6(0x282)](_0x5efd2d,_0x48f076,_0x4927ee,_0x2c2874);if(!_0x293ae4)return _0xe9b926(_0x1128eb);const _0x3581df={..._0x1128eb};(_0x293ae4['v']||_0x293ae4['v']===0x0)&&(_0x3581df['v']=_0x293ae4['v']),_0x293ae4['t']&&(_0x3581df['t']=_0x293ae4['t']);const _0x5a4e0d=(typeof(_0x1128eb==null?void 0x0:_0x1128eb['s'])==_0x5761c6(0x48b)?_0x37982d[_0x5761c6(0x331)]()[_0x5761c6(0x263)](_0x1128eb==null?void 0x0:_0x1128eb['s']):_0x1128eb==null?void 0x0:_0x1128eb['s'])||{},_0x15c48c=_0x37982d[_0x5761c6(0x331)]()[_0x5761c6(0x263)](_0x293ae4['s']),_0x57f44f={..._0x15c48c,..._0x5a4e0d};_0x15c48c!=null&&_0x15c48c['n']&&(_0x57f44f['n']=_0x15c48c['n']);const _0x1d36f9=_0x37982d['getStyles']()[_0x5761c6(0x412)](_0x57f44f);return _0x3581df['s']=_0x1d36f9,(_0x293ae4[_0x5761c6(0x21f)]===_0x3ccc66[_0x5761c6(0x3da)][_0x5761c6(0x24f)]||_0x293ae4[_0x5761c6(0x21f)]===_0x3ccc66[_0x5761c6(0x3da)][_0x5761c6(0x44d)])&&(_0x3581df['fontRenderExtension']={},_0x3581df[_0x5761c6(0x2dc)][_0x5761c6(0x1b7)]=_0xc5f28c),_0xe9b926(_0x3581df);}}));}},_0x38ffc1[_0x58458d(0x3c6)]=_0x194c8a([_0x3ada01(0x0,_0x497af0['Inject'](_0x5c4707['SheetInterceptorService'])),_0x3ada01(0x1,_0x497af0[_0x58458d(0x41d)](_0x38ffc1[_0x58458d(0x3dc)]))],_0x38ffc1[_0x58458d(0x3c6)]);function _0x423719(_0x3e7f9d,_0x4fe410){const _0x3bdaaf=_0x58458d;switch(_0x4fe410){case _0x3ccc66[_0x3bdaaf(0x41f)]['Value']:return _0x3e7f9d[_0x3bdaaf(0x3b9)];case _0x3ccc66['PivotTableFiledAreaEnum'][_0x3bdaaf(0x2e7)]:return _0x3e7f9d[_0x3bdaaf(0x3fa)];case _0x3ccc66[_0x3bdaaf(0x41f)][_0x3bdaaf(0x321)]:return _0x3e7f9d[_0x3bdaaf(0x2c0)];case _0x3ccc66[_0x3bdaaf(0x41f)]['Column']:return _0x3e7f9d['columnFields'];default:return[];}}function _0x285c24(_0x2ca682,_0x19fbbf){const _0x48d839=_0x58458d;return _0x2ca682[_0x48d839(0x426)][_0x19fbbf]||_0x2ca682[_0x48d839(0x31f)][_0x19fbbf];}function _0x6da880(_0x25c807,_0x5ef917){const _0x2771e5=_0x58458d,{area:_0x585f8e,fieldJson:_0x2067e6,index:_0x5b90d4}=_0x5ef917;_0x585f8e===_0x3ccc66[_0x2771e5(0x41f)][_0x2771e5(0x1ca)]?_0x25c807[_0x2771e5(0x426)][_0x2067e6['id']]=_0x2067e6:_0x25c807[_0x2771e5(0x31f)][_0x2067e6['id']]=_0x2067e6,_0x423719(_0x25c807,_0x585f8e)[_0x2771e5(0x479)](_0x5b90d4,0x0,_0x2067e6['id']);}function _0x2aee8d(_0x1d2a15,_0x10c266){const _0x48a4bb=_0x58458d,{area:_0x3c7fb4,fieldId:_0x910dac,index:_0x25002a}=_0x10c266;_0x3c7fb4===_0x3ccc66[_0x48a4bb(0x41f)][_0x48a4bb(0x1ca)]?delete _0x1d2a15[_0x48a4bb(0x426)][_0x910dac]:delete _0x1d2a15['dimension'][_0x910dac],_0x423719(_0x1d2a15,_0x3c7fb4)[_0x48a4bb(0x479)](_0x25002a,0x1);}function _0x2e0928(_0x46f660,_0x3cba87){const _0xa489d3=_0x58458d,{fieldId:_0x31b57a,name:_0x12dc36}=_0x3cba87,_0x493eb8=_0x285c24(_0x46f660,_0x31b57a);_0x493eb8&&(_0x493eb8[_0xa489d3(0x4bf)]=_0x12dc36);}function _0x303c4c(_0x2cd79d,_0x409ae0){const _0x320945=_0x58458d,{fieldId:_0x30821e,collapse:_0x1ecd11,item:_0x35f575}=_0x409ae0;_0x35f575!==void 0x0?(_0x2cd79d[_0x320945(0x1cc)][_0x30821e]=_0x2cd79d['collapseInfo'][_0x30821e]||{},_0x2cd79d[_0x320945(0x1cc)][_0x30821e][_0x35f575]=_0x1ecd11):_0x2cd79d[_0x320945(0x1cc)][_0x30821e]=_0x1ecd11;}function _0x479b1b(_0x34e772,_0x1b5c35){const {fieldId:_0x15f7f0,format:_0x95eb70}=_0x1b5c35,_0x35d988=_0x285c24(_0x34e772,_0x15f7f0);_0x35d988&&(_0x35d988['format']=_0x95eb70);}function _0x2162d9(_0x126f03,_0x2970e4){const {fieldId:_0x4d5731,filterInfo:_0x39a133}=_0x2970e4,_0x292672=_0x285c24(_0x126f03,_0x4d5731);_0x292672&&(_0x292672['filterInfo']=_0x39a133);}function _0x17c8b4(_0x30e54f,_0x4432c8){const _0x442a9a=_0x58458d,{fieldId:_0x7f7128,filterInfo:_0x3b6c70}=_0x4432c8,_0x3a56c9=_0x30e54f['valueFilter']['filter'](_0x5a0da7=>_0x5a0da7[_0x442a9a(0x1b8)]!==_0x7f7128);_0x3b6c70&&_0x3a56c9[_0x442a9a(0x384)]({'fieldId':_0x7f7128,'filterInfo':_0x3b6c70}),_0x30e54f[_0x442a9a(0x41b)]=_0x3a56c9;}function _0x5823aa(_0x474cfc,_0x5acb74){const _0x4a9da6=_0x58458d,{fieldId:_0x2ff3f9,subtotalType:_0x3d8a4d}=_0x5acb74,_0x2b9993=_0x285c24(_0x474cfc,_0x2ff3f9);_0x2b9993&&(_0x2b9993[_0x4a9da6(0x31c)]=_0x3d8a4d);}function _0x7f90f9(_0x241221,_0x390e7d){const _0x35846a=_0x58458d,{fieldId:_0x4104d1,oldArea:_0x4bd8e7,area:_0x3425d9,oldIndex:_0x6d189d,index:_0x582763}=_0x390e7d,_0x45a768=_0x4bd8e7!==_0x3ccc66[_0x35846a(0x41f)][_0x35846a(0x1ca)]&&_0x3425d9===_0x3ccc66[_0x35846a(0x41f)][_0x35846a(0x1ca)],_0x22cd91=_0x4bd8e7===_0x3ccc66[_0x35846a(0x41f)][_0x35846a(0x1ca)]&&_0x3425d9!==_0x3ccc66[_0x35846a(0x41f)][_0x35846a(0x1ca)];if(_0x45a768||_0x22cd91){const _0x1cf831=_0x285c24(_0x241221,_0x4104d1);_0x1cf831&&(_0x45a768?(delete _0x241221['dimension'][_0x4104d1],_0x241221[_0x35846a(0x426)][_0x4104d1]=_0x1cf831):(delete _0x241221[_0x35846a(0x426)][_0x4104d1],_0x241221[_0x35846a(0x31f)][_0x4104d1]=_0x1cf831));}const _0x5a2a51=_0x423719(_0x241221,_0x4bd8e7),_0x2ddbf4=_0x423719(_0x241221,_0x3425d9);_0x5a2a51['splice'](_0x6d189d,0x1),_0x2ddbf4[_0x35846a(0x479)](_0x582763,0x0,_0x4104d1);}function _0xa42d1b(_0x29bff6,_0x4a8826){const _0x1d57a3=_0x58458d,{valuePosition:_0x523d74,index:_0xf1920b}=_0x4a8826;_0x29bff6[_0x1d57a3(0x40b)]=_0x523d74,_0x29bff6[_0x1d57a3(0x243)]=_0xf1920b;}function _0x479fdb(_0x35e13d,_0x3f197a){const _0x1ffc8d=_0x58458d,{tableFieldId:_0x2405cd,sourceName:_0x1da2ed,dataFieldId:_0x695d9e}=_0x3f197a,_0x20f771=_0x285c24(_0x35e13d,_0x2405cd);_0x20f771&&(_0x20f771[_0x1ffc8d(0x2dd)]=_0x1da2ed,_0x20f771['dataFieldId']=_0x695d9e);}function _0x43b4fb(_0x58e5db,_0x538675){const _0x376707=_0x58458d,{fieldId:_0x42d22a,sortInfo:_0x3adade}=_0x538675,_0x4afc6c=_0x285c24(_0x58e5db,_0x42d22a);_0x4afc6c&&(_0x4afc6c[_0x376707(0x337)]=_0x3adade);}function _0x348f39(_0x5cc986,_0x2802b6){const _0x223922=_0x58458d,{options:_0x550c3c}=_0x2802b6;_0x5cc986[_0x223922(0x226)]={..._0x5cc986[_0x223922(0x226)],..._0x550c3c};}const _0x907d37={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':'sheet.mutation.add-pivot-field','handler'(_0x525bdb,_0x302dab){const _0x30b742=_0x58458d;if(!_0x302dab)return!0x1;if(!!_0x525bdb[_0x30b742(0x263)](_0x497af0[_0x30b742(0x35f)])['getConfig'](_0x3213d0))return!0x0;const _0x77c43=_0x525bdb[_0x30b742(0x263)](_0x38ffc1['SheetsPivotDataSourceModel']),{pivotTableId:_0x11bf75,fieldJson:_0x1c6002,area:_0x4d908f,index:_0x52ea14,unitId:_0x35bb04,subUnitId:_0x1b519e}=_0x302dab,_0x2610c2=_0x77c43[_0x30b742(0x354)](_0x11bf75);if(!_0x2610c2)return!0x1;let _0x4da928;_0x4d908f===_0x3ccc66[_0x30b742(0x41f)][_0x30b742(0x1ca)]?_0x4da928=_0x3ccc66[_0x30b742(0x3c2)](_0x1c6002):_0x4da928=_0x3ccc66[_0x30b742(0x2b4)](_0x1c6002),_0x2610c2[_0x30b742(0x3bc)](_0x4da928,_0x4d908f,_0x52ea14);const _0x2b43a4=_0x77c43[_0x30b742(0x448)](_0x35bb04,_0x1b519e,_0x11bf75);_0x6da880(_0x2b43a4,_0x302dab);const _0x4b5f0f=_0x77c43[_0x30b742(0x2ef)](_0x35bb04,_0x1b519e,_0x11bf75);return _0x77c43['addDirtyPivotTable']({'unitId':_0x35bb04,'subUnitId':_0x1b519e,'token':_0x11bf75,'type':_0x1d1e60[_0x30b742(0x1b9)],'pivotConfig':_0x4b5f0f}),!0x0;}},_0x30c3c6={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x4957e2,_0x5c2647){const _0x452d50=_0x58458d;if(!_0x5c2647)return!0x1;if(!!_0x4957e2[_0x452d50(0x263)](_0x497af0[_0x452d50(0x35f)])[_0x452d50(0x3cf)](_0x3213d0))return!0x0;const _0x3e6874=_0x4957e2['get'](_0x38ffc1[_0x452d50(0x47f)]),{pivotTableId:_0x56422d,fieldId:_0x4da4d8,unitId:_0x4ef235,subUnitId:_0x2b3da8}=_0x5c2647,_0x1e5e38=_0x3e6874[_0x452d50(0x354)](_0x56422d);if(!_0x1e5e38)return!0x1;_0x1e5e38['removeField'](_0x4da4d8);const _0x30d745=_0x3e6874[_0x452d50(0x448)](_0x4ef235,_0x2b3da8,_0x56422d);_0x2aee8d(_0x30d745,_0x5c2647);const _0x2a6ab4=_0x3e6874[_0x452d50(0x2ef)](_0x4ef235,_0x2b3da8,_0x56422d);return _0x3e6874['addDirtyPivotTable']({'unitId':_0x4ef235,'subUnitId':_0x2b3da8,'token':_0x56422d,'type':_0x1d1e60[_0x452d50(0x1b9)],'pivotConfig':_0x2a6ab4}),!0x0;}},_0x1886c8={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':_0x58458d(0x313),'handler'(_0x558a16,_0x536fcc){const _0x51c166=_0x58458d;if(!_0x536fcc)return!0x1;if(!!_0x558a16['get'](_0x497af0[_0x51c166(0x35f)])[_0x51c166(0x3cf)](_0x3213d0))return!0x0;const _0x57b2db=_0x558a16[_0x51c166(0x263)](_0x38ffc1[_0x51c166(0x47f)]),{unitId:_0x3ce57b,subUnitId:_0x196408,pivotTableId:_0x2f8882,fieldId:_0xff972,name:_0x2ea271}=_0x536fcc,_0x5163e3=_0x57b2db[_0x51c166(0x354)](_0x2f8882);if(!_0x5163e3)return!0x1;_0x5163e3[_0x51c166(0x483)](_0xff972,_0x2ea271);const _0x2b3187=_0x57b2db[_0x51c166(0x448)](_0x3ce57b,_0x196408,_0x2f8882);return _0x2e0928(_0x2b3187,_0x536fcc),_0x57b2db['addDirtyPivotTable']({'unitId':_0x3ce57b,'subUnitId':_0x196408,'token':_0x2f8882,'type':_0x1d1e60[_0x51c166(0x1b9)]}),!0x0;}},_0x3531ef={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':_0x58458d(0x422),'handler'(_0x588e11,_0x227ddd){const _0xd26c7d=_0x58458d;if(!_0x227ddd)return!0x1;if(!!_0x588e11[_0xd26c7d(0x263)](_0x497af0[_0xd26c7d(0x35f)])[_0xd26c7d(0x3cf)](_0x3213d0))return!0x0;const _0x4ef844=_0x588e11[_0xd26c7d(0x263)](_0x38ffc1[_0xd26c7d(0x47f)]),{unitId:_0x514d65,subUnitId:_0x49ef08,pivotTableId:_0x2544fa,fieldId:_0x237f86,collapse:_0x9baade,item:_0x5ad106}=_0x227ddd,_0x1d64ca=_0x4ef844[_0xd26c7d(0x354)](_0x2544fa);if(!_0x1d64ca)return!0x1;_0x1d64ca[_0xd26c7d(0x46b)](_0x237f86,_0x9baade,_0x5ad106);const _0x18bbf9=_0x4ef844[_0xd26c7d(0x448)](_0x514d65,_0x49ef08,_0x2544fa);return _0x303c4c(_0x18bbf9,_0x227ddd),_0x4ef844['addDirtyPivotTable']({'unitId':_0x514d65,'subUnitId':_0x49ef08,'token':_0x2544fa,'type':_0x1d1e60[_0xd26c7d(0x1b9)]}),!0x0;}},_0x4a9c94={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':_0x58458d(0x288),'handler'(_0x1f36cf,_0x2bb142){const _0x1ae901=_0x58458d;if(!_0x2bb142)return!0x1;if(!!_0x1f36cf[_0x1ae901(0x263)](_0x497af0[_0x1ae901(0x35f)])['getConfig'](_0x3213d0))return!0x0;const _0x4b1712=_0x1f36cf['get'](_0x38ffc1['SheetsPivotDataSourceModel']),{unitId:_0x499154,subUnitId:_0x5dd064,pivotTableId:_0x25cee0,fieldId:_0x544f3e,format:_0x203480}=_0x2bb142,_0x5da847=_0x4b1712[_0x1ae901(0x354)](_0x25cee0);if(!_0x5da847)return!0x1;_0x5da847[_0x1ae901(0x380)](_0x544f3e,_0x203480);const _0x153f42=_0x4b1712[_0x1ae901(0x448)](_0x499154,_0x5dd064,_0x25cee0);return _0x479b1b(_0x153f42,_0x2bb142),_0x4b1712[_0x1ae901(0x3d6)]({'unitId':_0x499154,'subUnitId':_0x5dd064,'token':_0x25cee0,'type':_0x1d1e60[_0x1ae901(0x1b9)]}),!0x0;}},_0x193193={'type':_0x497af0[_0x58458d(0x26b)]['MUTATION'],'id':_0x58458d(0x330),'handler'(_0x3528f5,_0x37760b){const _0x1b0ac1=_0x58458d;if(!_0x37760b)return!0x1;if(!!_0x3528f5[_0x1b0ac1(0x263)](_0x497af0[_0x1b0ac1(0x35f)])[_0x1b0ac1(0x3cf)](_0x3213d0))return!0x0;const _0x6fcef6=_0x3528f5[_0x1b0ac1(0x263)](_0x38ffc1[_0x1b0ac1(0x47f)]),{unitId:_0x10bbbf,subUnitId:_0x5f577e,pivotTableId:_0x326f8d,fieldId:_0x41a86d,filterInfo:_0x47a75f}=_0x37760b,_0x43db16=_0x6fcef6[_0x1b0ac1(0x354)](_0x326f8d);if(!_0x43db16)return!0x1;_0x43db16[_0x1b0ac1(0x360)](_0x41a86d,_0x47a75f);const _0x43c11d=_0x6fcef6[_0x1b0ac1(0x448)](_0x10bbbf,_0x5f577e,_0x326f8d);return _0x2162d9(_0x43c11d,_0x37760b),_0x6fcef6[_0x1b0ac1(0x3d6)]({'unitId':_0x10bbbf,'subUnitId':_0x5f577e,'token':_0x326f8d,'type':_0x1d1e60['Set']}),!0x0;}},_0x525c75={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':_0x58458d(0x3f4),'handler'(_0x1b4924,_0x3bce23){const _0x381d71=_0x58458d;if(!_0x3bce23)return!0x1;if(!!_0x1b4924['get'](_0x497af0[_0x381d71(0x35f)])[_0x381d71(0x3cf)](_0x3213d0))return!0x0;const _0x35f358=_0x1b4924[_0x381d71(0x263)](_0x38ffc1[_0x381d71(0x47f)]),{unitId:_0x5df474,subUnitId:_0x479f63,pivotTableId:_0x37d03d,options:_0x28f1ab}=_0x3bce23,_0x475101=_0x35f358[_0x381d71(0x354)](_0x37d03d);if(!_0x475101)return!0x1;_0x475101[_0x381d71(0x3a3)](_0x28f1ab);const _0x4fdd76=_0x35f358[_0x381d71(0x448)](_0x5df474,_0x479f63,_0x37d03d);return _0x348f39(_0x4fdd76,_0x3bce23),_0x35f358[_0x381d71(0x3d6)]({'unitId':_0x5df474,'subUnitId':_0x479f63,'token':_0x37d03d,'type':_0x1d1e60['Set']}),!0x0;}},_0x223175={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':_0x58458d(0x4bd),'handler'(_0x3bd846,_0xe726da){const _0xa133d8=_0x58458d;if(!_0xe726da)return!0x1;if(!!_0x3bd846[_0xa133d8(0x263)](_0x497af0['IConfigService'])['getConfig'](_0x3213d0))return!0x0;const _0x4f433c=_0x3bd846[_0xa133d8(0x263)](_0x38ffc1[_0xa133d8(0x47f)]),{unitId:_0xd44642,subUnitId:_0x21abc2,pivotTableId:_0x151082,sortInfo:_0x41d27e,fieldId:_0x2c72c2}=_0xe726da,_0x4e7675=_0x4f433c['getPivotTableInstance'](_0x151082);if(!_0x4e7675)return!0x1;_0x4e7675[_0xa133d8(0x26e)](_0x2c72c2,_0x41d27e);const _0x143cbd=_0x4f433c[_0xa133d8(0x448)](_0xd44642,_0x21abc2,_0x151082);return _0x43b4fb(_0x143cbd,_0xe726da),_0x4f433c[_0xa133d8(0x3d6)]({'unitId':_0xd44642,'subUnitId':_0x21abc2,'token':_0x151082,'type':_0x1d1e60['Set']}),!0x0;}},_0x5607b1={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':_0x58458d(0x4c7),'handler'(_0x1acd74,_0x20b786){const _0x5dc03c=_0x58458d;if(!_0x20b786)return!0x1;if(!!_0x1acd74[_0x5dc03c(0x263)](_0x497af0[_0x5dc03c(0x35f)])['getConfig'](_0x3213d0))return!0x0;const _0x20ee74=_0x1acd74[_0x5dc03c(0x263)](_0x38ffc1[_0x5dc03c(0x47f)]),{unitId:_0x1fd95e,subUnitId:_0x54317a,pivotTableId:_0x35b09a,fieldId:_0x4eeeb8,subtotalType:_0x61014}=_0x20b786,_0x6e7a30=_0x20ee74['getPivotTableInstance'](_0x35b09a);if(!_0x6e7a30)return!0x1;_0x6e7a30['setSubtotalType'](_0x4eeeb8,_0x61014);const _0x42b2e1=_0x20ee74[_0x5dc03c(0x448)](_0x1fd95e,_0x54317a,_0x35b09a);return _0x5823aa(_0x42b2e1,_0x20b786),_0x20ee74[_0x5dc03c(0x3d6)]({'unitId':_0x1fd95e,'subUnitId':_0x54317a,'token':_0x35b09a,'type':_0x1d1e60[_0x5dc03c(0x1b9)]}),!0x0;}},_0x261858={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x25601f,_0xae446f){const _0x1e26a6=_0x58458d;if(!_0xae446f)return!0x1;if(!!_0x25601f['get'](_0x497af0[_0x1e26a6(0x35f)])[_0x1e26a6(0x3cf)](_0x3213d0))return!0x0;const _0xa0cf66=_0x25601f[_0x1e26a6(0x263)](_0x38ffc1['SheetsPivotDataSourceModel']),{unitId:_0x2b9c31,subUnitId:_0x40fc27,pivotTableId:_0x13fa4c,fieldId:_0xfbda0d,filterInfo:_0x428d08}=_0xae446f,_0x316a8d=_0xa0cf66[_0x1e26a6(0x354)](_0x13fa4c);if(!_0x316a8d)return!0x1;_0x316a8d[_0x1e26a6(0x362)](_0xfbda0d,_0x428d08);const _0x3957d9=_0xa0cf66['getPivotTableModelConfig'](_0x2b9c31,_0x40fc27,_0x13fa4c);return _0x17c8b4(_0x3957d9,_0xae446f),_0xa0cf66[_0x1e26a6(0x3d6)]({'unitId':_0x2b9c31,'subUnitId':_0x40fc27,'token':_0x13fa4c,'type':_0x1d1e60['Set']}),!0x0;}},_0x588963={'type':_0x497af0[_0x58458d(0x26b)]['MUTATION'],'id':_0x58458d(0x356),'handler'(_0x5e64c6,_0x1ce175){const _0xefaaf=_0x58458d;if(!_0x1ce175)return!0x1;if(!!_0x5e64c6[_0xefaaf(0x263)](_0x497af0[_0xefaaf(0x35f)])[_0xefaaf(0x3cf)](_0x3213d0))return!0x0;const _0x4e5c8a=_0x5e64c6['get'](_0x38ffc1[_0xefaaf(0x47f)]),{unitId:_0x112bcc,subUnitId:_0x224dcb,pivotTableId:_0x202f76,area:_0x144de0,index:_0x2e5d,fieldId:_0x436c4d}=_0x1ce175,_0x501cda=_0x4e5c8a['getPivotTableInstance'](_0x202f76);if(!_0x501cda)return!0x1;_0x501cda[_0xefaaf(0x340)](_0x436c4d,_0x144de0,_0x2e5d);const _0x3a6018=_0x4e5c8a[_0xefaaf(0x448)](_0x112bcc,_0x224dcb,_0x202f76);return _0x7f90f9(_0x3a6018,_0x1ce175),_0x4e5c8a[_0xefaaf(0x3d6)]({'unitId':_0x112bcc,'subUnitId':_0x224dcb,'token':_0x202f76,'type':_0x1d1e60[_0xefaaf(0x1b9)]}),!0x0;}},_0xb32551={'type':_0x497af0[_0x58458d(0x26b)]['MUTATION'],'id':_0x58458d(0x33e),'handler'(_0x410f6c,_0x3cfe37){const _0x234b58=_0x58458d;if(!_0x3cfe37)return!0x1;if(!!_0x410f6c['get'](_0x497af0[_0x234b58(0x35f)])[_0x234b58(0x3cf)](_0x3213d0))return!0x0;const _0x5be729=_0x410f6c[_0x234b58(0x263)](_0x38ffc1[_0x234b58(0x47f)]),{unitId:_0x2c7426,subUnitId:_0x44dede,pivotTableId:_0x55836e,sourceName:_0x19f106,dataFieldId:_0x4edfaa,tableFieldId:_0xd49194}=_0x3cfe37,_0xdf6a51=_0x5be729[_0x234b58(0x354)](_0x55836e);if(!_0xdf6a51)return!0x1;_0xdf6a51[_0x234b58(0x1e8)](_0xd49194,_0x19f106,_0x4edfaa);const _0x303264=_0x5be729[_0x234b58(0x448)](_0x2c7426,_0x44dede,_0x55836e);return _0x479fdb(_0x303264,_0x3cfe37),_0x5be729[_0x234b58(0x3d6)]({'unitId':_0x2c7426,'subUnitId':_0x44dede,'token':_0x55836e,'type':_0x1d1e60['Set']}),!0x0;}},_0x4eb20d={'type':_0x497af0[_0x58458d(0x26b)]['MUTATION'],'id':_0x58458d(0x3a7),'handler'(_0x355fae,_0x30cd4a){const _0x3b5d12=_0x58458d;if(!_0x30cd4a)return!0x1;if(!!_0x355fae['get'](_0x497af0[_0x3b5d12(0x35f)])[_0x3b5d12(0x3cf)](_0x3213d0))return!0x0;const _0x10ed06=_0x355fae['get'](_0x38ffc1[_0x3b5d12(0x47f)]),{unitId:_0x3932f2,subUnitId:_0x7eaca4,pivotTableId:_0x3d4b83,valuePosition:_0x1e2e90,index:_0x56bc2e}=_0x30cd4a,_0x4c4fa7=_0x10ed06[_0x3b5d12(0x354)](_0x3d4b83);if(!_0x4c4fa7)return!0x1;_0x4c4fa7[_0x3b5d12(0x1be)](_0x1e2e90,_0x56bc2e);const _0xd2adff=_0x10ed06[_0x3b5d12(0x448)](_0x3932f2,_0x7eaca4,_0x3d4b83);return _0xa42d1b(_0xd2adff,_0x30cd4a),_0x10ed06[_0x3b5d12(0x3d6)]({'unitId':_0x3932f2,'subUnitId':_0x7eaca4,'token':_0x3d4b83,'type':_0x1d1e60[_0x3b5d12(0x1b9)]}),!0x0;}};function _0x1218bd(_0x49fe9e,_0x1bb8d3,_0x52c5b1){const _0x1de56e=_0x58458d,{pivotTableId:_0x2f635a,unitId:_0x5c977c,subUnitId:_0x1d32b0}=_0x1bb8d3,_0x93ae56=[],_0x2bf83a=[];for(const _0x43c476 of _0x52c5b1)switch(_0x43c476[_0x1de56e(0x423)]){case _0x3ccc66[_0x1de56e(0x247)][_0x1de56e(0x1e2)]:{const {fieldJson:_0x3ea9be,area:_0x3f828c,index:_0x12488b}=_0x43c476,_0x26ece3={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldJson':_0x3ea9be,'area':_0x3f828c,'index':_0x12488b},_0x47de14={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x3ea9be['id'],'area':_0x3f828c,'index':_0x12488b};_0x93ae56[_0x1de56e(0x384)]({'id':_0x907d37['id'],'params':_0x26ece3}),_0x2bf83a['unshift']({'id':_0x30c3c6['id'],'params':_0x47de14});}break;case _0x3ccc66[_0x1de56e(0x247)][_0x1de56e(0x1d8)]:{const {fieldId:_0xad3af,newSubtotalType:_0x52623c,oldSubtotalType:_0x6257c6}=_0x43c476,_0x71bfc9={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0xad3af,'subtotalType':_0x52623c};_0x93ae56['push']({'id':_0x5607b1['id'],'params':_0x71bfc9});const _0x403e40={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0xad3af,'subtotalType':_0x6257c6};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0x5607b1['id'],'params':_0x403e40});}break;case _0x3ccc66[_0x1de56e(0x247)][_0x1de56e(0x2bf)]:{const {fieldId:_0x5c45e3,fieldJson:_0x3f7b44,area:_0x2c264d,index:_0x591f3b}=_0x43c476,_0x14205f={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x5c45e3,'index':_0x591f3b,'area':_0x2c264d};_0x93ae56[_0x1de56e(0x384)]({'id':_0x30c3c6['id'],'params':_0x14205f});const _0x67143c={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldJson':_0x3f7b44,'area':_0x2c264d,'index':_0x591f3b};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0x907d37['id'],'params':_0x67143c});}break;case _0x3ccc66[_0x1de56e(0x247)][_0x1de56e(0x1e1)]:{const {fieldId:_0xaefa0b,oldName:_0x29d3af,newName:_0xe51353}=_0x43c476,_0x5bc783={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0xaefa0b,'name':_0xe51353};_0x93ae56[_0x1de56e(0x384)]({'id':_0x1886c8['id'],'params':_0x5bc783});const _0x3a5c27={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0xaefa0b,'name':_0x29d3af};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0x1886c8['id'],'params':_0x3a5c27});}break;case _0x3ccc66[_0x1de56e(0x247)][_0x1de56e(0x37c)]:{const {fieldId:_0x13026c,oldFilterInfo:_0x1bfccb,newFilterInfo:_0x1e6187}=_0x43c476,_0x4c6eee={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x13026c,'filterInfo':_0x1e6187};_0x93ae56[_0x1de56e(0x384)]({'id':_0x193193['id'],'params':_0x4c6eee});const _0xc3db6b={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x13026c,'filterInfo':_0x1bfccb};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0x193193['id'],'params':_0xc3db6b});}break;case _0x3ccc66['PivotTableChangeTypeEnum'][_0x1de56e(0x1eb)]:{const {fieldId:_0x1a716d,oldSortInfo:_0x54a0e4,newSortInfo:_0x5d7c8d}=_0x43c476,_0x9ea893={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x1a716d,'sortInfo':_0x5d7c8d};_0x93ae56[_0x1de56e(0x384)]({'id':_0x223175['id'],'params':_0x9ea893});const _0x4e0c6d={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x1a716d,'sortInfo':_0x54a0e4};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0x223175['id'],'params':_0x4e0c6d});}break;case _0x3ccc66[_0x1de56e(0x247)][_0x1de56e(0x283)]:{const {oldOptions:_0xb9f0d8,newOptions:_0x4a6fe6}=_0x43c476,_0x3b3224={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'options':_0x4a6fe6};_0x93ae56[_0x1de56e(0x384)]({'id':_0x525c75['id'],'params':_0x3b3224});const _0x549cbd={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'options':_0xb9f0d8};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0x525c75['id'],'params':_0x549cbd});}break;case _0x3ccc66[_0x1de56e(0x247)][_0x1de56e(0x2d7)]:{const {oldArea:_0x3d40b2,newArea:_0x2ad008,oldIndex:_0x9b6041,newIndex:_0x23c5ad,fieldId:_0x126544}=_0x43c476,_0x6d367={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x126544,'area':_0x2ad008,'index':_0x23c5ad,'oldArea':_0x3d40b2,'oldIndex':_0x9b6041};_0x93ae56[_0x1de56e(0x384)]({'id':_0x588963['id'],'params':_0x6d367});const _0x3e1be3={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x126544,'area':_0x3d40b2,'index':_0x9b6041,'oldArea':_0x2ad008,'oldIndex':_0x23c5ad};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0x588963['id'],'params':_0x3e1be3});}break;case _0x3ccc66[_0x1de56e(0x247)]['UpdateValuePosition']:{const {oldValuePosition:_0x48ffef,newValuePosition:_0xfea1ae,oldIndex:_0x3c2444,newIndex:_0x4bd48e}=_0x43c476,_0x33f94b={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'valuePosition':_0xfea1ae,'index':_0x4bd48e};_0x93ae56[_0x1de56e(0x384)]({'id':_0x4eb20d['id'],'params':_0x33f94b});const _0x5ab6b9={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'valuePosition':_0x48ffef,'index':_0x3c2444};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0x4eb20d['id'],'params':_0x5ab6b9});}break;case _0x3ccc66[_0x1de56e(0x247)]['SetCollapse']:{const {fieldId:_0x2631f2,collapse:_0x4d3b23,item:_0x2993b4}=_0x43c476,_0x4e70ec={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x2631f2,'collapse':_0x4d3b23,'item':_0x2993b4};_0x93ae56[_0x1de56e(0x384)]({'id':_0x3531ef['id'],'params':_0x4e70ec});const _0x11d0d7={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x2631f2,'collapse':!_0x4d3b23,'item':_0x2993b4};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0x3531ef['id'],'params':_0x11d0d7});}break;case _0x3ccc66[_0x1de56e(0x247)][_0x1de56e(0x3c3)]:{const {newFormat:_0x6bcb65,oldFormat:_0x369e02,fieldId:_0x4f82db}=_0x43c476,_0x3538ff={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x4f82db,'format':_0x6bcb65};_0x93ae56[_0x1de56e(0x384)]({'id':_0x4a9c94['id'],'params':_0x3538ff});const _0x11e559={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x4f82db,'format':_0x369e02};_0x2bf83a['unshift']({'id':_0x4a9c94['id'],'params':_0x11e559});}break;case _0x3ccc66[_0x1de56e(0x247)][_0x1de56e(0x234)]:{const {tableFieldId:_0x3cfac1,oldSourceName:_0x1ee16a,newSourceName:_0x2f1928,oldDataFieldId:_0xb093ff,newDataFieldId:_0x483207}=_0x43c476,_0x4b0163={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'tableFieldId':_0x3cfac1,'sourceName':_0x2f1928,'dataFieldId':_0x483207};_0x93ae56[_0x1de56e(0x384)]({'id':_0xb32551['id'],'params':_0x4b0163});const _0x2dd63b={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'tableFieldId':_0x3cfac1,'sourceName':_0x1ee16a,'dataFieldId':_0xb093ff};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0xb32551['id'],'params':_0x2dd63b});}break;case _0x3ccc66[_0x1de56e(0x247)][_0x1de56e(0x1d0)]:{const {fieldId:_0x3da8a7,filterInfo:_0x1fd3b4,oldFilterInfo:_0x3ddd9a}=_0x43c476,_0x409c67={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x3da8a7,'filterInfo':_0x1fd3b4};_0x93ae56[_0x1de56e(0x384)]({'id':_0x261858['id'],'params':_0x409c67});const _0x27e50e={'unitId':_0x5c977c,'subUnitId':_0x1d32b0,'pivotTableId':_0x2f635a,'fieldId':_0x3da8a7,'filterInfo':_0x3ddd9a};_0x2bf83a[_0x1de56e(0x36e)]({'id':_0x261858['id'],'params':_0x27e50e});}}return{'redos':_0x93ae56,'undos':_0x2bf83a};}function _0x327c67(_0x56c488,_0x495049){const _0x233cd1=_0x58458d;var _0x39c1a4;const _0x50b01c=_0x56c488[_0x233cd1(0x263)](_0x38ffc1[_0x233cd1(0x3c6)]),{cellInfo:_0x26031a,view:_0x2e06e8,isEmpty:_0x76463b}=_0x495049;return(_0x39c1a4=_0x50b01c[_0x233cd1(0x472)]['fetchThroughInterceptors'](_0xab1420)(_0x2a427f,{'cellInfo':_0x26031a,'view':_0x2e06e8,'isEmpty':_0x76463b}))!=null?_0x39c1a4:_0x2a427f;}const _0x37ebb5=()=>typeof process<'u'&&process[_0x58458d(0x28b)]!=null&&process[_0x58458d(0x28b)][_0x58458d(0x2fd)]!=null,_0x4dac71={'type':_0x497af0['CommandType'][_0x58458d(0x1db)],'id':'sheet.mutation.add-pivot-table','handler'(_0x2f23e5,_0x3ddd04){const _0x2321ed=_0x58458d;var _0x4dbc16;if(!_0x3ddd04)return!0x1;const _0x269027=_0x2f23e5[_0x2321ed(0x263)](_0x497af0[_0x2321ed(0x35f)]);if(!!_0x269027[_0x2321ed(0x3cf)](_0x3213d0))return!0x0;const _0x5d5337=_0x2f23e5[_0x2321ed(0x263)](_0x497af0[_0x2321ed(0x36d)]),_0x9d2a52=_0x2f23e5['get'](_0x38ffc1[_0x2321ed(0x47f)]),{pivotTableId:_0x2211e8,pivotTableConfig:_0x342419,collectionConfig:_0x3f4c89,unitId:_0x41d821,subUnitId:_0x144497}=_0x3ddd04,{sourceRangeInfo:_0x358e92,fieldsConfig:_0x220b97,targetCellInfo:_0x4611f1}=_0x342419,_0x226eed=_0x5d5337[_0x2321ed(0x33f)](_0x41d821);if(!_0x226eed||!_0x226eed[_0x2321ed(0x2ba)](_0x144497))return!0x1;if(!_0x37ebb5()){let _0x5d12bd=0x0;_0x226eed['getSheets']()[_0x2321ed(0x466)](_0x1f1bc8=>{const _0x1f3c5c=_0x2321ed;var _0xb01b68,_0x3c4cbf;_0x5d12bd+=(_0x3c4cbf=(_0xb01b68=_0x9d2a52[_0x1f3c5c(0x1d4)](_0x41d821,_0x1f1bc8['getSheetId']()))==null?void 0x0:_0xb01b68[_0x1f3c5c(0x20f)])!=null?_0x3c4cbf:0x0;});const _0xc6601=(_0x4dbc16=_0x269027[_0x2321ed(0x3cf)](_0xacc9cf[_0x2321ed(0x1d1)]))!=null?_0x4dbc16:{},{ls:_0x328fa8,pbk:_0x15bb2d}=_0xc6601;if(!_0x47e9f4(_0x328fa8,_0x15bb2d))throw new _0x497af0[(_0x2321ed(0x271))]('limit\x20pivot');const _0x4b7c09=_0x5d64e1(_0x2404e8,_0x328fa8,_0x15bb2d)[_0x2321ed(0x3ad)];if(_0x5d12bd>=_0x4b7c09)throw new _0x497af0[(_0x2321ed(0x271))](_0x2321ed(0x420));}if(!_0x3f4c89||!_0x220b97)return!0x1;const {collection:_0x488939,updateDataFieldList:_0x3b0c02}=_0x9d2a52[_0x2321ed(0x3b3)](_0x2211e8,_0x3f4c89,_0x358e92,_0x4611f1);_0x9d2a52[_0x2321ed(0x400)](_0x488939,_0x3b0c02,_0x358e92);const _0x3905c0=new _0x3ccc66['PivotTable'](_0x488939,void 0x0,_0x2211e8);_0x3905c0[_0x2321ed(0x4c2)](_0x220b97);const _0x52edd4=JSON['parse'](JSON[_0x2321ed(0x42c)](_0x342419));return _0x9d2a52['addPivotTable'](_0x41d821,_0x144497,_0x2211e8,_0x3905c0,_0x52edd4),_0x9d2a52[_0x2321ed(0x3d6)]({'unitId':_0x41d821,'subUnitId':_0x144497,'token':_0x2211e8,'type':_0x1d1e60[_0x2321ed(0x28d)],'pivotConfig':_0x52edd4}),!0x0;}},_0x2fb8ee={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':_0x58458d(0x3ed),'handler'(_0xf58e41,_0x1f06fe){const _0x306cb8=_0x58458d;if(!_0x1f06fe)return!0x1;if(!!_0xf58e41[_0x306cb8(0x263)](_0x497af0[_0x306cb8(0x35f)])[_0x306cb8(0x3cf)](_0x3213d0))return!0x0;const {pivotTableId:_0x4d5c71,unitId:_0x17f17c,subUnitId:_0x4420f4}=_0x1f06fe,_0x79f4d=_0xf58e41[_0x306cb8(0x263)](_0x38ffc1['SheetsPivotDataSourceModel']);return _0x79f4d[_0x306cb8(0x2ef)](_0x17f17c,_0x4420f4,_0x4d5c71)?(_0x79f4d[_0x306cb8(0x3d6)]({'unitId':_0x17f17c,'subUnitId':_0x4420f4,'token':_0x4d5c71,'type':_0x1d1e60[_0x306cb8(0x312)]}),_0x79f4d[_0x306cb8(0x256)](_0x17f17c,_0x4420f4,_0x4d5c71),!0x0):!0x1;}},_0x152ac4={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':_0x58458d(0x3d5),'handler'(_0x4df19a,_0x573c93){const _0x5a8865=_0x58458d;if(!_0x573c93)return!0x1;if(!!_0x4df19a[_0x5a8865(0x263)](_0x497af0[_0x5a8865(0x35f)])[_0x5a8865(0x3cf)](_0x3213d0))return!0x0;const {pivotTableId:_0x4be615,targetCellPosition:_0x3109da,unitId:_0xe518a1,subUnitId:_0x1aa0b7}=_0x573c93,_0x57e7e2=_0x4df19a['get'](_0x38ffc1['SheetsPivotDataSourceModel']);if(!_0x57e7e2[_0x5a8865(0x354)](_0x573c93[_0x5a8865(0x2a1)]))return!0x1;const _0x5e01f0=_0x57e7e2['getTargetByPivotId'](_0x4be615);if(!_0x5e01f0)return!0x1;const _0x2f6641=_0x57e7e2[_0x5a8865(0x278)](_0x5e01f0[_0x5a8865(0x469)],_0x573c93[_0x5a8865(0x2a1)]);if(!_0x2f6641)return!0x1;const _0x551c24=_0x57e7e2[_0x5a8865(0x2ef)](_0x5e01f0['unitId'],_0x5e01f0['subUnitId'],_0x4be615);if(!_0x551c24)return!0x1;const _0x4c5c0b=_0x497af0[_0x5a8865(0x45b)]['deepClone'](_0x551c24);_0x4c5c0b[_0x5a8865(0x301)]={'unitId':_0xe518a1,'subUnitId':_0x1aa0b7,'row':_0x3109da[_0x5a8865(0x329)],'col':_0x3109da['col']};const _0x4067db=_0x2f6641[_0x5a8865(0x314)]();if(_0x5e01f0['subUnitId']===_0x1aa0b7&&_0x5e01f0[_0x5a8865(0x469)]===_0xe518a1)_0x57e7e2[_0x5a8865(0x279)](_0xe518a1,_0x1aa0b7,_0x4be615,_0x4c5c0b),_0x57e7e2[_0x5a8865(0x3d6)]({'unitId':_0xe518a1,'subUnitId':_0x1aa0b7,'token':_0x4be615,'type':_0x1d1e60[_0x5a8865(0x1b9)]});else{_0x57e7e2[_0x5a8865(0x3d6)]({'unitId':_0x5e01f0[_0x5a8865(0x469)],'subUnitId':_0x5e01f0[_0x5a8865(0x239)],'token':_0x4be615,'type':_0x1d1e60['Delete']}),_0x57e7e2[_0x5a8865(0x256)](_0x5e01f0[_0x5a8865(0x469)],_0x5e01f0[_0x5a8865(0x239)],_0x4be615);const _0x394cfc=_0x57e7e2[_0x5a8865(0x3b3)](_0x4be615,_0x4067db,_0x551c24['sourceRangeInfo'],_0x4c5c0b[_0x5a8865(0x301)]),_0x2fe0fb=new _0x3ccc66[(_0x5a8865(0x3a4))](_0x394cfc[_0x5a8865(0x1f8)],void 0x0,_0x4be615);_0x2fe0fb['fromJSON'](_0x4c5c0b[_0x5a8865(0x473)]),_0x57e7e2['addPivotTable'](_0xe518a1,_0x1aa0b7,_0x4be615,_0x2fe0fb,_0x4c5c0b),_0x57e7e2['addDirtyPivotTable']({'unitId':_0xe518a1,'subUnitId':_0x1aa0b7,'token':_0x4be615,'type':_0x1d1e60['Add'],'pivotConfig':_0x4c5c0b});}return!0x0;}},_0x859d49={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':_0x58458d(0x21c),'handler'(_0x1d9fd1,_0x3300a6){const _0x3a7dc7=_0x58458d;if(!_0x3300a6)return!0x1;if(!!_0x1d9fd1[_0x3a7dc7(0x263)](_0x497af0[_0x3a7dc7(0x35f)])[_0x3a7dc7(0x3cf)](_0x3213d0))return!0x0;const _0x1f1998=_0x1d9fd1[_0x3a7dc7(0x263)](_0x38ffc1[_0x3a7dc7(0x47f)]),{pivotTableId:_0x383e3c,deleteIds:_0x572daf,collectionJSON:_0xbb42b1,dataRangeInfo:_0x260ff1,unitId:_0x99e1c9,subUnitId:_0x1ab979}=_0x3300a6,_0x22a078=_0x1f1998[_0x3a7dc7(0x354)](_0x383e3c),_0x3eba67=_0x1f1998[_0x3a7dc7(0x2ef)](_0x99e1c9,_0x1ab979,_0x383e3c);if(!_0x22a078||!_0x3eba67)return!0x1;const {collection:_0x43720b,updateDataFieldList:_0x5912c2}=_0x1f1998[_0x3a7dc7(0x3b3)](_0x383e3c,_0xbb42b1,_0x260ff1,_0x3eba67[_0x3a7dc7(0x301)]);_0x1f1998['refreshData'](_0x43720b,_0x5912c2,_0x260ff1),_0x22a078['updateDataFieldsCollection'](_0x43720b);for(const _0xf6917d of _0x572daf)_0x1f1998['removeDataField'](_0x260ff1['unitId'],_0xf6917d);const _0x27a5fb=_0x1f1998['getPivotTableConfig'](_0x99e1c9,_0x1ab979,_0x383e3c);return _0x27a5fb[_0x3a7dc7(0x4cc)]=JSON[_0x3a7dc7(0x395)](JSON[_0x3a7dc7(0x42c)](_0x260ff1)),_0x1f1998['addDirtyPivotTable']({'unitId':_0x99e1c9,'subUnitId':_0x1ab979,'token':_0x383e3c,'type':_0x1d1e60[_0x3a7dc7(0x1b9)]}),!0x0;}},_0x59502f={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'id':_0x58458d(0x2f9),'handler'(){return!0x0;}};var _0x284b56=Object[_0x58458d(0x1f7)],_0x396082=(_0x3f78c5,_0x20851b,_0x13ee3c,_0x2759a0)=>{const _0x55459f=_0x58458d;for(var _0x367bf6=_0x2759a0>0x1?void 0x0:_0x2759a0?_0x284b56(_0x20851b,_0x13ee3c):_0x20851b,_0x270ff8=_0x3f78c5[_0x55459f(0x24e)]-0x1,_0x1011ff;_0x270ff8>=0x0;_0x270ff8--)(_0x1011ff=_0x3f78c5[_0x270ff8])&&(_0x367bf6=_0x1011ff(_0x367bf6)||_0x367bf6);return _0x367bf6;},_0x55fce0=(_0x52ebc6,_0x264082)=>(_0x5b7712,_0x2e05d8)=>_0x264082(_0x5b7712,_0x2e05d8,_0x52ebc6);_0x38ffc1[_0x58458d(0x39f)]=class extends _0x497af0[_0x58458d(0x28c)]{constructor(_0x1da5af,_0x9a3edb){const _0x5c7f2e=_0x58458d;super(),_0x5ebdc4(this,_0x5c7f2e(0x349),new Map()),(this['_injector']=_0x1da5af,this['_commandService']=_0x9a3edb);}['handleAsyncResponse'](_0x3c31f8){const _0xfc2d06=_0x58458d,{version:_0x76f639}=_0x3c31f8,_0x47510f=this[_0xfc2d06(0x349)][_0xfc2d06(0x263)](_0x76f639);_0x47510f&&(_0x47510f(_0x3c31f8),this[_0xfc2d06(0x349)][_0xfc2d06(0x336)](_0x76f639));}['getPivotDisplayConfig'](_0xac8133){return new Promise((_0x58a78e,_0x4331b2)=>{const _0x22f1c0=_0x464d,_0x3608c6=this[_0x22f1c0(0x2db)]();this['_requestResolvers'][_0x22f1c0(0x202)](_0x3608c6,_0x58a78e),this[_0x22f1c0(0x257)][_0x22f1c0(0x35e)](_0x3c24cc['id'],{'version':_0x3608c6,..._0xac8133},{'onlyLocal':!0x0});});}[_0x58458d(0x2db)](){const _0x2bd595=_0x58458d;return Math[_0x2bd595(0x310)]()[_0x2bd595(0x3d4)](0x24)[_0x2bd595(0x370)](0x2,0x10);}},_0x38ffc1[_0x58458d(0x39f)]=_0x396082([_0x55fce0(0x0,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x450)])),_0x55fce0(0x1,_0x497af0['Inject'](_0x497af0[_0x58458d(0x231)]))],_0x38ffc1['SheetsPivotRPCService']);const _0x4d43ee={'id':_0x58458d(0x212),'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'handler':(_0x206fd5,_0x137310)=>{const _0x2ca046=_0x58458d;if(!_0x137310)return!0x1;if(!!_0x206fd5[_0x2ca046(0x263)](_0x497af0[_0x2ca046(0x35f)])['getConfig'](_0x3213d0))return!0x0;const {pivotTableId:_0x2adbca,fieldJSON:_0x955da0,unitId:_0x10547d,subUnitId:_0x1a5103}=_0x137310,_0x3d767c=_0x3ccc66[_0x2ca046(0x3e1)][_0x2ca046(0x4c2)](_0x955da0);if(!_0x3d767c)return!0x1;const _0x5bb8d2=_0x206fd5[_0x2ca046(0x263)](_0x38ffc1[_0x2ca046(0x47f)]),_0x3ddd8f=_0x5bb8d2[_0x2ca046(0x276)](_0x10547d),_0x34279a=_0x3ddd8f['getCollection'](_0x2adbca);_0x3ddd8f[_0x2ca046(0x1d2)](_0x3d767c),_0x34279a[_0x2ca046(0x3bc)](_0x3d767c[_0x2ca046(0x204)](),_0x3d767c[_0x2ca046(0x36c)]());const _0x1cae2f=_0x34279a[_0x2ca046(0x22e)](_0x3d767c[_0x2ca046(0x480)]());_0x1cae2f&&_0x3d767c[_0x2ca046(0x42f)](_0x1cae2f);const _0x933e06=_0x5bb8d2['getPivotTableConfig'](_0x10547d,_0x1a5103,_0x2adbca);return _0x5bb8d2[_0x2ca046(0x3d6)]({'unitId':_0x10547d,'subUnitId':_0x1a5103,'token':_0x2adbca,'type':_0x1d1e60['Set'],'pivotConfig':_0x933e06}),!0x0;}},_0x39c7c0={'id':_0x58458d(0x308),'type':_0x497af0[_0x58458d(0x26b)]['MUTATION'],'handler':(_0x4e3c90,_0x572ac3)=>{const _0x3d1bf7=_0x58458d;if(!_0x572ac3)return!0x1;if(!!_0x4e3c90['get'](_0x497af0[_0x3d1bf7(0x35f)])['getConfig'](_0x3213d0))return!0x0;const {pivotTableId:_0x4e1aed,dataFieldId:_0x5aacef,unitId:_0x39b46c,subUnitId:_0x5e6d10}=_0x572ac3,_0x19339d=_0x4e3c90[_0x3d1bf7(0x263)](_0x38ffc1[_0x3d1bf7(0x47f)]),_0x5cb6d3=_0x19339d[_0x3d1bf7(0x276)](_0x39b46c);_0x5cb6d3[_0x3d1bf7(0x278)](_0x4e1aed)[_0x3d1bf7(0x38f)](_0x5aacef);let _0x4e9199=!0x0;for(const _0x4a83ad in _0x5cb6d3[_0x3d1bf7(0x4b7)])if(_0x5cb6d3[_0x3d1bf7(0x4b7)][_0x4a83ad][_0x3d1bf7(0x2d3)]()[_0x3d1bf7(0x442)](_0x5aacef)){_0x4e9199=!0x1;break;}_0x4e9199&&_0x5cb6d3[_0x3d1bf7(0x49e)](_0x5aacef);const _0x424ded=_0x19339d[_0x3d1bf7(0x2ef)](_0x39b46c,_0x5e6d10,_0x4e1aed);return _0x19339d[_0x3d1bf7(0x3d6)]({'unitId':_0x39b46c,'subUnitId':_0x5e6d10,'token':_0x4e1aed,'type':_0x1d1e60[_0x3d1bf7(0x1b9)],'pivotConfig':_0x424ded}),!0x0;}},_0x40f935={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'id':_0x58458d(0x2e9),async 'handler'(_0x56d353,_0x524dce){const _0x4e9840=_0x58458d;if(!_0x524dce)return!0x1;const _0x3dfd1f=_0x56d353[_0x4e9840(0x263)](_0x497af0[_0x4e9840(0x231)]),_0x358b93=_0x56d353[_0x4e9840(0x263)](_0x38ffc1['SheetsPivotRPCService']),_0x3014c6=_0x56d353['get'](_0x497af0[_0x4e9840(0x46a)]),{pivotTableId:_0x581203,dataFieldId:_0x40583a,fieldArea:_0xc46f43,index:_0x15fa90,unitId:_0x5043d7,subUnitId:_0x1b3a88}=_0x524dce,_0x2754c2=(await _0x358b93[_0x4e9840(0x34c)]({'unitId':_0x5043d7,'subUnitId':_0x1b3a88,'pivotTableId':_0x581203,'params':{'type':_0x34f406[_0x4e9840(0x223)],'addPivotField':{'dataFieldId':_0x40583a,'fieldArea':_0xc46f43,'index':_0x15fa90}}}))[_0x4e9840(0x4c4)]['addPivotField'];if(!_0x2754c2)return!0x1;const {view:_0x450bc6,changesets:_0x5b9288,isEmpty:_0x3f0ce7,pivotTableConfig:_0x27d707,shouldBeAddedGroupJSON:_0x3cb602}=_0x2754c2,_0x40f4b9=_0x27d707[_0x4e9840(0x301)],_0x173c38=new _0x3ccc66[(_0x4e9840(0x2ff))]();_0x173c38[_0x4e9840(0x201)](_0x450bc6);const _0x28f282={'cellInfo':_0x40f4b9,'view':_0x173c38,'isEmpty':_0x3f0ce7};if(!await _0x56d353['get'](_0x38ffc1[_0x4e9840(0x3c6)])[_0x4e9840(0x2ae)][_0x4e9840(0x4ae)](_0x2518b2)(!0x0,_0x28f282))return!0x1;const _0x5d7cdc=_0x30a1dd(_0x56d353,_0x173c38,_0x40f4b9,_0x3f0ce7),_0x1848a6=_0x327c67(_0x56d353,_0x28f282),{undos:_0x51d8f9,redos:_0x1268ab}=_0x1218bd(_0x3dfd1f,{'pivotTableId':_0x581203,'unitId':_0x5043d7,'subUnitId':_0x1b3a88},_0x5b9288);return _0x3cb602&&(_0x1268ab['unshift']({'id':_0x4d43ee['id'],'params':{'pivotTableId':_0x581203,'fieldJSON':_0x3cb602,'unitId':_0x5043d7,'subUnitId':_0x1b3a88}}),_0x51d8f9[_0x4e9840(0x384)]({'id':_0x39c7c0['id'],'params':{'pivotTableId':_0x581203,'dataFieldId':_0x3cb602['id'],'unitId':_0x5043d7,'subUnitId':_0x1b3a88}})),_0x497af0[_0x4e9840(0x1c9)]([..._0x5d7cdc[_0x4e9840(0x44a)],..._0x1848a6[_0x4e9840(0x44a)],..._0x1268ab],_0x3dfd1f),_0x3014c6['pushUndoRedo']({'unitID':_0x5043d7,'redoMutations':[..._0x5d7cdc[_0x4e9840(0x44a)],..._0x1848a6[_0x4e9840(0x44a)],..._0x1268ab],'undoMutations':[..._0x5d7cdc[_0x4e9840(0x44f)],..._0x1848a6['undos'],..._0x51d8f9]}),!0x0;}},_0x5e7cea={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'id':'sheet.command.add-pivot-table-with-config',async 'handler'(_0x2ac077,_0x9ff2df){const _0x5eada1=_0x58458d;if(!_0x9ff2df)return!0x1;const {sourceDataInfo:_0x40d6f3,pivotTableConfig:_0x120a75}=_0x9ff2df;if(!_0x40d6f3||!_0x120a75)return!0x1;const {unitId:_0x3b6992,subUnitId:_0x4b9181,range:_0x44f3cd}=_0x40d6f3,_0x2fe7af=_0x2ac077[_0x5eada1(0x263)](_0x497af0[_0x5eada1(0x36d)]),_0x1983dd=_0x2ac077[_0x5eada1(0x263)](_0x38ffc1[_0x5eada1(0x39f)]),_0x248ae5=_0x2ac077[_0x5eada1(0x263)](_0x497af0[_0x5eada1(0x4d6)]),_0x34b2f8=_0x2ac077[_0x5eada1(0x263)](_0x497af0[_0x5eada1(0x231)]),_0x248051=_0x2fe7af['getUnit'](_0x3b6992);if(!_0x248051)return!0x1;const _0x2f4bca=_0x248051[_0x5eada1(0x2ba)](_0x4b9181);if(!_0x2f4bca)return!0x1;const _0x575589=_0x3ccc66[_0x5eada1(0x27c)](0x8),_0x2dea30=_0x44f3cd||{'startRow':0x0,'startColumn':0x0,'endRow':_0x2f4bca[_0x5eada1(0x392)]()-0x1,'endColumn':_0x2f4bca[_0x5eada1(0x245)]()-0x1};_0x2dea30[_0x5eada1(0x3e0)]=_0x497af0['RANGE_TYPE'][_0x5eada1(0x4cb)];const _0x356993=(await _0x1983dd[_0x5eada1(0x34c)]({'unitId':_0x3b6992,'subUnitId':_0x4b9181,'pivotTableId':_0x575589,'params':{'type':_0x34f406[_0x5eada1(0x333)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x3b6992,'sheetName':_0x2f4bca[_0x5eada1(0x36c)](),'subUnitId':_0x4b9181,'range':_0x2dea30},'pivotTableId':_0x575589,'pivotTableIndexConfig':_0x120a75}}}))[_0x5eada1(0x4c4)][_0x5eada1(0x3c9)];if(!_0x356993)return!0x1;const {isEmpty:_0x17ab11,fieldsConfig:_0x4df72e,collectionConfig:_0x4da5c7,changesets:_0x2eba37}=_0x356993,_0x54f8ab=_0x248051[_0x5eada1(0x458)]()['length'],_0x1b8175=_0x497af0['mergeWorksheetSnapshotWithDefault']({'rowCount':_0x2f4bca[_0x5eada1(0x392)]()-0x1,'columnCount':_0x2f4bca[_0x5eada1(0x245)]()-0x1});_0x1b8175['id']=_0x497af0[_0x5eada1(0x3df)](),_0x1b8175['name']=_0x248051[_0x5eada1(0x1cf)](''+_0x248ae5['t'](_0x5eada1(0x1c4)));const _0x4ea472={'index':_0x54f8ab,'sheet':_0x1b8175,'unitId':_0x3b6992},{redos:_0x20e201}=_0x1218bd(_0x34b2f8,{'pivotTableId':_0x575589,'unitId':_0x3b6992,'subUnitId':_0x1b8175['id']},_0x2eba37),_0x52b249=[{'id':_0x5c4707[_0x5eada1(0x399)]['id'],'params':_0x4ea472},{'id':_0x4dac71['id'],'params':{'unitId':_0x3b6992,'subUnitId':_0x1b8175['id'],'pivotTableId':_0x575589,'pivotTableConfig':{'isEmpty':_0x17ab11,'fieldsConfig':_0x4df72e,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x3b6992,'subUnitId':_0x1b8175['id']},'sourceRangeInfo':{'subUnitId':_0x4b9181,'unitId':_0x3b6992,'range':_0x2dea30,'sheetName':_0x2f4bca[_0x5eada1(0x36c)]()}},'collectionConfig':_0x4da5c7}},..._0x20e201];return _0x497af0[_0x5eada1(0x1c9)](_0x52b249,_0x34b2f8),!0x0;}},_0x12edfd={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'id':_0x58458d(0x322),async 'handler'(_0xc2f34a,_0x3cc2cc){const _0x426068=_0x58458d;var _0x18b8f8,_0x386fab;const _0x41c5be=_0xc2f34a[_0x426068(0x263)](_0x497af0[_0x426068(0x231)]),_0x100896=_0xc2f34a[_0x426068(0x263)](_0x497af0[_0x426068(0x36d)]),_0x285fd9=_0xc2f34a['get'](_0x497af0[_0x426068(0x4d6)]),_0x47016a=_0xc2f34a[_0x426068(0x263)](_0x38ffc1[_0x426068(0x39f)]),_0x51e154=_0xc2f34a['get'](_0x497af0[_0x426068(0x46a)]),_0x5c5bd3=_0xc2f34a[_0x426068(0x263)](_0x38ffc1[_0x426068(0x27d)]),_0x2e8381=_0xc2f34a[_0x426068(0x263)](_0x497af0[_0x426068(0x35f)]);if(!_0x3cc2cc)return!0x1;const {pivotTableConfig:_0x39efa2,positionType:_0x1d7ec5}=_0x3cc2cc,{targetCellInfo:_0x35df35,sourceRangeInfo:_0x21f648}=_0x39efa2,{unitId:_0x150df7,subUnitId:_0x392de8}=_0x35df35,_0x5921f1=_0x100896['getUnit'](_0x150df7);if(!_0x5921f1)return!0x1;let _0x5b3aaa=0x0;_0x5921f1[_0x426068(0x458)]()['forEach'](_0x5cee64=>{const _0xb06e11=_0x426068;var _0x3bfddd,_0x13d178;_0x5b3aaa+=(_0x13d178=(_0x3bfddd=_0x5c5bd3['getSubUnitPivotConfigs'](_0x150df7,_0x5cee64[_0xb06e11(0x297)]()))==null?void 0x0:_0x3bfddd[_0xb06e11(0x20f)])!=null?_0x13d178:0x0;});const _0x2812d9=(_0x18b8f8=_0x2e8381['getConfig'](_0xacc9cf[_0x426068(0x1d1)]))!=null?_0x18b8f8:{},{ls:_0x191d34,pbk:_0x3afb18}=_0x2812d9;if(!_0x47e9f4(_0x191d34,_0x3afb18))return!0x1;const _0x2e2915=_0x5d64e1(_0x2404e8,_0x191d34,_0x3afb18)[_0x426068(0x3ad)];if(_0x5b3aaa>=_0x2e2915)return!0x1;const _0x1b5a83=_0x3cc2cc['pivotTableId']||_0x3ccc66[_0x426068(0x27c)](0x8),_0x38a431=(await _0x47016a[_0x426068(0x34c)]({'unitId':_0x150df7,'subUnitId':_0x392de8,'pivotTableId':_0x1b5a83,'params':{'type':_0x34f406[_0x426068(0x40a)],'addPivotTable':{'sourceRangeInfo':_0x21f648,'pivotTableId':_0x1b5a83}}}))[_0x426068(0x4c4)][_0x426068(0x367)];if(!_0x38a431)return!0x1;const {view:_0x1d86f1,isEmpty:_0xbbe434,fieldsConfig:_0x279ad7,collectionConfig:_0x1378a0}=_0x38a431,_0x253870=[],_0x35dbf7=[];if(_0x1d7ec5===_0xe6815f['New']){const _0x35da3d=_0x5921f1[_0x426068(0x458)]()['length'],_0x457ad1=_0x497af0['mergeWorksheetSnapshotWithDefault']({});_0x457ad1['id']=_0x39efa2[_0x426068(0x301)][_0x426068(0x239)],_0x457ad1['name']=(_0x386fab=_0x39efa2['targetCellInfo'][_0x426068(0x254)])!=null?_0x386fab:_0x5921f1['generateNewSheetName'](''+_0x285fd9['t'](_0x426068(0x1c4)));const _0x17ba02={'index':_0x35da3d,'sheet':_0x457ad1,'unitId':_0x150df7},_0x179d5e=_0x5c4707[_0x426068(0x2d8)](_0xc2f34a,_0x17ba02);_0x253870[_0x426068(0x384)]({'id':_0x5c4707[_0x426068(0x253)]['id'],'params':_0x179d5e}),_0x35dbf7[_0x426068(0x384)]({'id':_0x5c4707[_0x426068(0x200)]['id'],'params':_0x17ba02});}else{if(!_0x5921f1[_0x426068(0x2ba)](_0x392de8))return!0x1;const _0x5944ce=_0x30a1dd(_0xc2f34a,new _0x3ccc66[(_0x426068(0x2ff))](),_0x35df35,!0x0);_0x35dbf7['push'](..._0x5944ce[_0x426068(0x44a)]),_0x253870['push'](..._0x5944ce[_0x426068(0x44f)]);const _0x554df5={'cellInfo':_0x35df35,'view':_0x1d86f1,'isEmpty':_0xbbe434};if(!await _0xc2f34a[_0x426068(0x263)](_0x38ffc1[_0x426068(0x3c6)])[_0x426068(0x2ae)][_0x426068(0x4ae)](_0x2518b2)(!0x0,_0x554df5))return!0x1;const _0x2dcf57=_0x327c67(_0xc2f34a,_0x554df5);_0x35dbf7['push'](..._0x2dcf57[_0x426068(0x44a)]),_0x253870[_0x426068(0x384)](..._0x2dcf57[_0x426068(0x44f)]);}return _0x35dbf7[_0x426068(0x384)]({'id':_0x4dac71['id'],'params':{'unitId':_0x35df35[_0x426068(0x469)],'subUnitId':_0x35df35['subUnitId'],'pivotTableId':_0x1b5a83,'pivotTableConfig':{'targetCellInfo':_0x35df35,'sourceRangeInfo':_0x21f648,'fieldsConfig':_0x279ad7},'collectionConfig':_0x1378a0}}),_0x253870[_0x426068(0x36e)]({'id':_0x2fb8ee['id'],'params':{'unitId':_0x150df7,'subUnitId':_0x392de8,'pivotTableId':_0x1b5a83}}),_0x497af0[_0x426068(0x1c9)](_0x35dbf7,_0x41c5be)&&_0x51e154[_0x426068(0x49c)]({'unitID':_0x150df7,'undoMutations':_0x253870,'redoMutations':_0x35dbf7}),!0x0;}},_0x25a2f0={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'id':_0x58458d(0x22b),async 'handler'(_0x1a7efe,_0x303820){const _0x4d50ba=_0x58458d;if(!_0x303820)return!0x1;const _0x90e0b4=_0x1a7efe['get'](_0x497af0[_0x4d50ba(0x231)]),_0x29dce6=_0x1a7efe[_0x4d50ba(0x263)](_0x38ffc1[_0x4d50ba(0x39f)]),_0x5d4f67=_0x1a7efe[_0x4d50ba(0x263)](_0x497af0[_0x4d50ba(0x46a)]),{pivotTableId:_0x190503,fieldId:_0x388da3,area:_0x354711,index:_0x188f3d,unitId:_0xf1b398,subUnitId:_0x7fd77f}=_0x303820,_0x7b97c=(await _0x29dce6['getPivotDisplayConfig']({'unitId':_0xf1b398,'subUnitId':_0x7fd77f,'pivotTableId':_0x190503,'params':{'type':_0x34f406[_0x4d50ba(0x26c)],'movePivotField':{'fieldId':_0x388da3,'area':_0x354711,'index':_0x188f3d}}}))[_0x4d50ba(0x4c4)][_0x4d50ba(0x341)];if(!_0x7b97c)return!0x1;const {changesets:_0x4b85ed,view:_0x2f81eb,isEmpty:_0x28c546,pivotTableConfig:_0x16e628}=_0x7b97c,_0xf4a128=_0x16e628['targetCellInfo'],_0x33dd3d=new _0x3ccc66[(_0x4d50ba(0x2ff))]();_0x33dd3d[_0x4d50ba(0x201)](_0x2f81eb);const _0x289bda={'cellInfo':_0xf4a128,'view':_0x33dd3d,'isEmpty':_0x28c546};if(!await _0x1a7efe[_0x4d50ba(0x263)](_0x38ffc1[_0x4d50ba(0x3c6)])['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x2518b2)(!0x0,_0x289bda))return!0x1;const _0x157029=_0x30a1dd(_0x1a7efe,_0x33dd3d,_0xf4a128,_0x28c546),_0x2d1fba=_0x327c67(_0x1a7efe,_0x289bda),{redos:_0x4d0195,undos:_0x2dc264}=_0x1218bd(_0x90e0b4,{'pivotTableId':_0x190503,'unitId':_0xf1b398,'subUnitId':_0x7fd77f},_0x4b85ed);return _0x497af0['sequenceExecute']([..._0x157029[_0x4d50ba(0x44a)],..._0x2d1fba['redos'],..._0x4d0195],_0x90e0b4),_0x5d4f67[_0x4d50ba(0x49c)]({'unitID':_0xf1b398,'redoMutations':[..._0x157029[_0x4d50ba(0x44a)],..._0x2d1fba[_0x4d50ba(0x44a)],..._0x4d0195],'undoMutations':[..._0x157029[_0x4d50ba(0x44f)],..._0x2d1fba[_0x4d50ba(0x44f)],..._0x2dc264]}),!0x0;}},_0x3511ad={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x132759,_0x249c1f){const _0x1f3b0f=_0x58458d;var _0x400288;if(!_0x249c1f)return!0x1;const _0x1b70a6=_0x132759[_0x1f3b0f(0x263)](_0x497af0[_0x1f3b0f(0x36d)]),_0x237e75=_0x5c4707[_0x1f3b0f(0x409)](_0x1b70a6);if(!_0x237e75)return!0x1;const {unitId:_0x109eac,subUnitId:_0x3cea03,workbook:_0x127c46}=_0x237e75,{row:_0x2910bb,col:_0x31b5b9}=_0x249c1f,_0x3f8a15=_0x132759[_0x1f3b0f(0x263)](_0x38ffc1[_0x1f3b0f(0x3dc)]),_0xee4261=_0x3f8a15[_0x1f3b0f(0x28f)](_0x109eac,_0x3cea03,_0x2910bb,_0x31b5b9);if(!_0xee4261)return!0x1;const _0x1965f3=(_0x400288=_0x3f8a15[_0x1f3b0f(0x209)](_0x109eac,_0x3cea03,_0xee4261))==null?void 0x0:_0x400288[_0x1f3b0f(0x2e6)];if(!_0x1965f3)return!0x1;const _0x4f8bd9=_0x132759['get'](_0x38ffc1[_0x1f3b0f(0x27d)])[_0x1f3b0f(0x2ef)](_0x109eac,_0x3cea03,_0xee4261);if(!_0x4f8bd9)return!0x1;const {rowInfo:_0x5a051c,colInfo:_0xa9be66}=_0x1965f3,_0x12e85c=_0x5a051c[_0x2910bb][_0x1f3b0f(0x41a)],_0x3fc570=_0xa9be66[_0x31b5b9][_0x1f3b0f(0x41a)],_0x317ce3=_0x5a051c[_0x2910bb][_0x1f3b0f(0x4ce)],_0x23ad48=_0xa9be66[_0x31b5b9][_0x1f3b0f(0x4ce)],_0x3db9cb=_0x12e85c[_0x1f3b0f(0x207)](_0x3fc570),_0x771ebb=_0x4f8bd9[_0x1f3b0f(0x473)][_0x1f3b0f(0x2c0)][_0x1f3b0f(0x3b7)](0x0,_0x317ce3),_0x2371bb=_0x4f8bd9[_0x1f3b0f(0x473)]['columnFields'][_0x1f3b0f(0x3b7)](0x0,_0x23ad48),_0x324361=_0x771ebb[_0x1f3b0f(0x207)](_0x2371bb),_0x213350=_0x3db9cb[_0x1f3b0f(0x1e9)]((_0x50ddc7,_0xf8792f)=>[_0x50ddc7,_0x324361[_0xf8792f]]),_0x1b535d=(await _0x132759[_0x1f3b0f(0x263)](_0x38ffc1[_0x1f3b0f(0x39f)])[_0x1f3b0f(0x34c)]({'unitId':_0x109eac,'subUnitId':_0x3cea03,'pivotTableId':_0xee4261,'params':{'type':_0x34f406[_0x1f3b0f(0x2a8)],'drillDown':{'tuple':_0x213350}}}))['result'][_0x1f3b0f(0x219)];if(!_0x1b535d)return!0x1;const {indexes:_0x1f0585,range:_0x22abc9,sourceUnitId:_0x49a8b3,sourceSubUnitId:_0x27fbb8,formatMap:_0x24fdb2}=_0x1b535d,{startRow:_0x1992c8,endRow:_0x19c6fd,startColumn:_0x1f7984,endColumn:_0x5019ec}=_0x22abc9,_0x39f432=new _0x497af0[(_0x1f3b0f(0x2a0))](),_0xfec30a=_0x19c6fd-_0x1992c8,_0x28c1e9=_0x5019ec-_0x1f7984,_0x57b8e1={},_0x2f9754=_0x5c4707[_0x1f3b0f(0x409)](_0x1b70a6,{'unitId':_0x49a8b3,'subUnitId':_0x27fbb8});if(!_0x2f9754)return!0x1;const _0x47d6d2=_0x14f4ab[_0x1f3b0f(0x368)],_0x1f6554=_0x14f4ab[_0x1f3b0f(0x4ad)],_0x3fea04=_0x14f4ab['subTotalStyle'],_0x1e4684=_0x127c46[_0x1f3b0f(0x331)]()[_0x1f3b0f(0x412)](_0x47d6d2),_0x4cd230=_0x127c46[_0x1f3b0f(0x331)]()[_0x1f3b0f(0x412)](_0x1f6554),_0x50638c=_0x127c46[_0x1f3b0f(0x331)]()[_0x1f3b0f(0x412)](_0x3fea04),{worksheet:_0xbd8e7}=_0x2f9754;let _0x2514eb=0x0;const _0x34b6c7=0x1;_0x1f0585['forEach'](_0x44f5f5=>{const _0x40f3c3=_0x1f3b0f;for(let _0x12c5fd=0x0;_0x12c5fd<=_0x5019ec-_0x1f7984;_0x12c5fd++)_0x39f432[_0x40f3c3(0x412)](_0x2514eb,_0x12c5fd,_0xbd8e7[_0x40f3c3(0x1dc)](_0x44f5f5+_0x22abc9[_0x40f3c3(0x280)]+_0x34b6c7,_0x12c5fd));_0x2514eb++;});for(let _0x407334=_0x1f7984;_0x407334<=_0x5019ec;_0x407334++){const _0x56026a=_0xbd8e7[_0x1f3b0f(0x1dc)](_0x1992c8,_0x407334);_0x57b8e1[_0x1992c8]||(_0x57b8e1[_0x1992c8]={}),_0x57b8e1[_0x1992c8][_0x407334]={..._0x56026a,'s':_0x1e4684};}let _0x4ef859=0x1;const _0x5eed68={},_0x2cd597={};_0x39f432[_0x1f3b0f(0x2d4)]((_0x3b518b,_0x29d67b)=>{const _0x58747c=_0x1f3b0f;_0x29d67b[_0x58747c(0x466)](_0x533a8b=>{const _0x5023b5=_0x58747c,_0x210371=_0x39f432[_0x5023b5(0x323)](_0x3b518b,_0x533a8b);if(_0x57b8e1[_0x4ef859]||(_0x57b8e1[_0x4ef859]={}),_0x57b8e1[_0x4ef859][_0x533a8b]={..._0x210371,'s':_0x4ef859%0x2===0x0?_0x50638c:_0x4cd230},_0x24fdb2[_0x533a8b]&&_0x3b518b>=0x0){const _0x1139eb=_0x4ef859%0x2===0x0;let _0x44b748=_0x1139eb?_0x2cd597[_0x533a8b]:_0x5eed68[_0x533a8b];_0x44b748||(_0x44b748=_0x127c46[_0x5023b5(0x331)]()['setValue']({..._0x1139eb?_0x3fea04:_0x1f6554,'n':{'pattern':_0x24fdb2[_0x533a8b]}}),_0x1139eb?_0x2cd597[_0x533a8b]=_0x44b748:_0x5eed68[_0x533a8b]=_0x44b748),_0x57b8e1[_0x4ef859][_0x533a8b]['s']=_0x44b748;}}),_0x4ef859++;});const _0x8056fb=new _0x497af0[(_0x1f3b0f(0x2a0))](_0x57b8e1),_0xf3a013={};_0x8056fb[_0x1f3b0f(0x447)]((_0x521a4e,_0x154278,_0x23f2ed)=>{_0xf3a013[_0x521a4e]||(_0xf3a013[_0x521a4e]={}),_0xf3a013[_0x521a4e][_0x154278]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x1cb01d=[],_0x616a01=[],_0x4fd374=_0x127c46[_0x1f3b0f(0x458)]()[_0x1f3b0f(0x24e)],_0x116ed8=_0x497af0[_0x1f3b0f(0x37a)]({'rowCount':Math[_0x1f3b0f(0x489)](_0x497af0[_0x1f3b0f(0x452)],_0xfec30a+0xa),'columnCount':Math['max'](_0x497af0[_0x1f3b0f(0x45d)],_0x28c1e9+0x5)}),_0x20777b=_0x132759[_0x1f3b0f(0x263)](_0x497af0[_0x1f3b0f(0x4d6)]);_0x116ed8['id']=_0x497af0['generateRandomId'](),_0x116ed8[_0x1f3b0f(0x1ef)]=_0x127c46['generateNewSheetName'](''+_0x20777b['t'](_0x1f3b0f(0x1c4)));const _0x3d456b={'index':_0x4fd374,'sheet':_0x116ed8,'unitId':_0x109eac},_0x451405=_0x5c4707['InsertSheetUndoMutationFactory'](_0x132759,_0x3d456b);_0x616a01[_0x1f3b0f(0x384)]({'id':_0x5c4707[_0x1f3b0f(0x200)]['id'],'params':_0x3d456b}),_0x1cb01d[_0x1f3b0f(0x384)]({'id':_0x5c4707['RemoveSheetMutation']['id'],'params':_0x451405}),_0x616a01['push']({'id':_0x5c4707['SetRangeValuesMutation']['id'],'params':{'unitId':_0x109eac,'subUnitId':_0x116ed8['id'],'cellValue':_0x57b8e1}}),_0x1cb01d[_0x1f3b0f(0x36e)]({'id':_0x5c4707[_0x1f3b0f(0x2f8)]['id'],'params':{'unitId':_0x109eac,'subUnitId':_0x116ed8['id'],'cellValue':_0xf3a013}});const _0xb16c49={'startRow':0x0,'startColumn':0x0,'endRow':_0x4ef859-0x1,'endColumn':_0x5019ec};_0x616a01[_0x1f3b0f(0x384)]({'id':_0x58165f[_0x1f3b0f(0x3d7)]['id'],'params':{'unitId':_0x109eac,'subUnitId':_0x116ed8['id'],'range':_0xb16c49}}),_0x1cb01d[_0x1f3b0f(0x36e)]({'id':_0x58165f[_0x1f3b0f(0x249)]['id'],'params':{'unitId':_0x109eac,'subUnitId':_0x116ed8['id']}});const _0x338c7a=_0x132759[_0x1f3b0f(0x263)](_0x497af0[_0x1f3b0f(0x231)]);return _0x497af0['sequenceExecute'](_0x616a01,_0x338c7a)&&_0x132759[_0x1f3b0f(0x263)](_0x497af0[_0x1f3b0f(0x46a)])['pushUndoRedo']({'unitID':_0x109eac,'undoMutations':_0x1cb01d,'redoMutations':_0x616a01}),!0x0;}},_0x140850={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'id':_0x58458d(0x484),async 'handler'(_0x33997d,_0xb39947){const _0x402eeb=_0x58458d;if(!_0xb39947)return!0x1;const _0x86635e=_0x33997d[_0x402eeb(0x263)](_0x497af0[_0x402eeb(0x231)]),_0x1692e1=_0x33997d[_0x402eeb(0x263)](_0x38ffc1[_0x402eeb(0x39f)]),_0x179eef=_0x33997d[_0x402eeb(0x263)](_0x497af0['IUndoRedoService']),{pivotTableId:_0x422ea6,fieldIds:_0x221d5e,unitId:_0x557532,subUnitId:_0x109b40}=_0xb39947,_0x3c0100=(await _0x1692e1[_0x402eeb(0x34c)]({'unitId':_0x557532,'subUnitId':_0x109b40,'pivotTableId':_0x422ea6,'params':{'type':_0x34f406['RemovePivotField'],'removePivotField':{'fieldIds':_0x221d5e}}}))[_0x402eeb(0x4c4)]['removePivotField'];if(!_0x3c0100)return!0x1;const {view:_0x284265,changesets:_0x4ad28a,isEmpty:_0x108742,pivotTableConfig:_0x245210}=_0x3c0100,_0x271ce1=_0x245210[_0x402eeb(0x301)],_0x3eb084=new _0x3ccc66['PivotView']();_0x3eb084[_0x402eeb(0x201)](_0x284265);const _0x2c39d7={'cellInfo':_0x271ce1,'view':_0x3eb084,'isEmpty':_0x108742};if(!await _0x33997d[_0x402eeb(0x263)](_0x38ffc1[_0x402eeb(0x3c6)])[_0x402eeb(0x2ae)][_0x402eeb(0x4ae)](_0x2518b2)(!0x0,_0x2c39d7))return!0x1;const _0x48f4ee=_0x30a1dd(_0x33997d,_0x3eb084,_0x271ce1,_0x108742),_0xd2c096=_0x327c67(_0x33997d,_0x2c39d7),{redos:_0x358a0f,undos:_0x111528}=_0x1218bd(_0x86635e,{'pivotTableId':_0x422ea6,'unitId':_0x557532,'subUnitId':_0x109b40},_0x4ad28a);return _0x497af0[_0x402eeb(0x1c9)]([..._0x48f4ee[_0x402eeb(0x44a)],..._0xd2c096[_0x402eeb(0x44a)],..._0x358a0f],_0x86635e),_0x179eef[_0x402eeb(0x49c)]({'unitID':_0x557532,'redoMutations':[..._0x48f4ee[_0x402eeb(0x44a)],..._0xd2c096['redos'],..._0x358a0f],'undoMutations':[..._0x48f4ee['undos'],..._0xd2c096[_0x402eeb(0x44f)],..._0x111528]}),!0x0;}},_0x1c6788={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'id':_0x58458d(0x285),async 'handler'(_0x1f973e,_0x31f8ad){const _0x305938=_0x58458d;var _0x4156d0;const _0x10efef=_0x1f973e[_0x305938(0x263)](_0x497af0[_0x305938(0x231)]),_0x2c719f=_0x1f973e['get'](_0x38ffc1[_0x305938(0x39f)]),_0x2e463e=_0x1f973e['get'](_0x38ffc1[_0x305938(0x3dc)]),_0xb17230=_0x1f973e[_0x305938(0x263)](_0x497af0[_0x305938(0x36d)]),_0x5853d3=_0x1f973e[_0x305938(0x263)](_0x497af0[_0x305938(0x46a)]);if(!_0x31f8ad)return!0x1;const {unitId:_0x50e4c4,subUnitId:_0x2f5f6f,row:_0x2c2d6b,col:_0x15a02e,collapse:_0x5956fd}=_0x31f8ad,_0x1b6276=_0xb17230[_0x305938(0x33f)](_0x50e4c4);if(!_0x1b6276||!_0x1b6276[_0x305938(0x2ba)](_0x2f5f6f))return!0x1;const _0x3ccc02=_0x2e463e[_0x305938(0x28f)](_0x50e4c4,_0x2f5f6f,_0x2c2d6b,_0x15a02e);if(!_0x3ccc02)return!0x1;const _0x436fda=_0x2e463e[_0x305938(0x209)](_0x50e4c4,_0x2f5f6f,_0x3ccc02);if(!_0x436fda)return!0x1;const _0x34b68b=_0x497af0['cellToRange'](_0x2c2d6b,_0x15a02e),{rangesInfo:_0x4cb1ac,areaInfo:_0x2a5a86,headerMap:_0x4d28ca}=_0x436fda;if(!_0x4cb1ac||!_0x2a5a86||!_0x4d28ca)return!0x1;const _0x55b3d6=Object[_0x305938(0x302)](_0x4cb1ac)[_0x305938(0x496)](_0x33604d=>_0x4cb1ac[_0x33604d][_0x305938(0x1c1)](_0x1f8715=>_0x497af0[_0x305938(0x388)]['contains'](_0x1f8715,_0x34b68b)));let _0x4d06f7;_0x55b3d6===_0x305938(0x4d5)?_0x4d06f7=_0x4d28ca[_0x305938(0x359)][_0x15a02e]:_0x55b3d6===_0x305938(0x42d)&&(_0x4d06f7=_0x4d28ca['colHeaderMap'][_0x2c2d6b]);const _0x1e4518=_0x4d06f7==null?void 0x0:_0x4d06f7['tableFieldId'],_0x1d5ef2=(_0x4156d0=_0x2e463e[_0x305938(0x282)](_0x50e4c4,_0x2f5f6f,_0x2c2d6b,_0x15a02e))==null?void 0x0:_0x4156d0['v'];if(_0x1d5ef2==null||!_0x3ccc02||!_0x1e4518)return!0x1;const _0x29ae64=await _0x2c719f[_0x305938(0x34c)]({'unitId':_0x50e4c4,'subUnitId':_0x2f5f6f,'pivotTableId':_0x3ccc02,'params':{'type':_0x34f406[_0x305938(0x403)],'setPivotCollapse':{'tableFieldId':_0x1e4518,'collapse':_0x5956fd,'item':_0x1d5ef2}}}),_0x40a73e=_0x29ae64==null?void 0x0:_0x29ae64[_0x305938(0x4c4)][_0x305938(0x36f)];if(!_0x40a73e)return!0x1;const {view:_0x266ca0,pivotTableConfig:_0x1005e7,isEmpty:_0x25a167,changesets:_0x3498a3}=_0x40a73e,_0x5ac963=new _0x3ccc66[(_0x305938(0x2ff))]();_0x5ac963[_0x305938(0x201)](_0x266ca0);const _0x114787=_0x1005e7[_0x305938(0x301)],_0x4c06c7={'cellInfo':_0x114787,'view':_0x5ac963,'isEmpty':_0x25a167};if(!await _0x1f973e[_0x305938(0x263)](_0x38ffc1[_0x305938(0x3c6)])[_0x305938(0x2ae)][_0x305938(0x4ae)](_0x2518b2)(!0x0,_0x4c06c7))return!0x1;const _0xa5d467=_0x30a1dd(_0x1f973e,_0x5ac963,_0x114787,_0x25a167),_0x5bfafa=_0x327c67(_0x1f973e,_0x4c06c7),{redos:_0x38d14b,undos:_0x46165e}=_0x1218bd(_0x10efef,{'pivotTableId':_0x3ccc02,'unitId':_0x50e4c4,'subUnitId':_0x2f5f6f},_0x3498a3);return _0x497af0[_0x305938(0x1c9)]([..._0xa5d467[_0x305938(0x44a)],..._0x5bfafa['redos'],..._0x38d14b],_0x10efef),_0x5853d3[_0x305938(0x49c)]({'unitID':_0x50e4c4,'redoMutations':[..._0xa5d467[_0x305938(0x44a)],..._0x5bfafa['redos'],..._0x38d14b],'undoMutations':[..._0xa5d467[_0x305938(0x44f)],..._0x5bfafa['undos'],..._0x46165e]}),!0x0;}},_0xdcf1e7={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'id':_0x58458d(0x474),async 'handler'(_0x1f9847,_0x11de00){const _0x2b99e4=_0x58458d;if(!_0x11de00)return!0x1;const _0x53b480=_0x1f9847[_0x2b99e4(0x263)](_0x497af0[_0x2b99e4(0x231)]),{pivotTableId:_0x2fac29,tableFieldId:_0x70ab81,items:_0x1dd4b5,unitId:_0x82c6b0,subUnitId:_0x435985,isAll:_0x30050b}=_0x11de00,_0x3e32d1=_0x1f9847[_0x2b99e4(0x263)](_0x38ffc1['SheetsPivotRPCService']),_0x3b6bb6=_0x1f9847['get'](_0x497af0[_0x2b99e4(0x46a)]),_0x9f2c4a=(await _0x3e32d1[_0x2b99e4(0x34c)]({'unitId':_0x82c6b0,'subUnitId':_0x435985,'pivotTableId':_0x2fac29,'params':{'type':_0x34f406[_0x2b99e4(0x454)],'setPivotFilter':{'tableFieldId':_0x70ab81,'items':_0x1dd4b5,'isAll':_0x30050b}}}))[_0x2b99e4(0x4c4)][_0x2b99e4(0x4ab)];if(!_0x9f2c4a)return!0x1;const {changesets:_0x50af6b,pivotTableConfig:_0x52f582,isEmpty:_0x424ab6,view:_0x20847d}=_0x9f2c4a,_0x3e284e=_0x52f582[_0x2b99e4(0x301)],_0x514b73=new _0x3ccc66['PivotView']();_0x514b73[_0x2b99e4(0x201)](_0x20847d);const _0x345e70={'cellInfo':_0x3e284e,'view':_0x514b73,'isEmpty':_0x424ab6};if(!await _0x1f9847[_0x2b99e4(0x263)](_0x38ffc1['SheetsPivotTableService'])[_0x2b99e4(0x2ae)][_0x2b99e4(0x4ae)](_0x2518b2)(!0x0,_0x345e70))return!0x1;const _0x2f5ea0=_0x30a1dd(_0x1f9847,_0x514b73,_0x3e284e,_0x424ab6),_0x48ed8b=_0x327c67(_0x1f9847,_0x345e70),{undos:_0x554327,redos:_0x24855d}=_0x1218bd(_0x53b480,{'pivotTableId':_0x2fac29,'unitId':_0x82c6b0,'subUnitId':_0x435985},_0x50af6b);return _0x497af0[_0x2b99e4(0x1c9)]([..._0x2f5ea0[_0x2b99e4(0x44a)],..._0x48ed8b[_0x2b99e4(0x44a)],..._0x24855d],_0x53b480),_0x3b6bb6['pushUndoRedo']({'unitID':_0x82c6b0,'redoMutations':[..._0x2f5ea0['redos'],..._0x48ed8b['redos'],..._0x24855d],'undoMutations':[..._0x2f5ea0['undos'],..._0x48ed8b['undos'],..._0x554327]}),!0x0;}},_0x743714={'type':_0x497af0['CommandType'][_0x58458d(0x277)],'id':_0x58458d(0x342),async 'handler'(_0x68855e,_0x7537c3){const _0x44a7dc=_0x58458d;if(!_0x7537c3)return!0x1;const _0x552161=_0x68855e[_0x44a7dc(0x263)](_0x497af0[_0x44a7dc(0x231)]),_0x22ac19=_0x68855e['get'](_0x497af0['IUndoRedoService']),_0x4dacf8=_0x68855e[_0x44a7dc(0x263)](_0x38ffc1[_0x44a7dc(0x39f)]),{info:_0x1ee257,tableFieldId:_0x4a4ef3,pivotTableId:_0x14d885,unitId:_0x31fb94,subUnitId:_0x39b8d2}=_0x7537c3,_0xb06a00=(await _0x4dacf8['getPivotDisplayConfig']({'unitId':_0x31fb94,'subUnitId':_0x39b8d2,'pivotTableId':_0x14d885,'params':{'type':_0x34f406[_0x44a7dc(0x408)],'setPivotSort':{'tableFieldId':_0x4a4ef3,'info':_0x1ee257}}}))[_0x44a7dc(0x4c4)]['setPivotSort'];if(!_0xb06a00)return!0x1;const {changesets:_0x13f2e5}=_0xb06a00,{redos:_0x536b99,undos:_0x149974}=_0x1218bd(_0x552161,{'pivotTableId':_0x14d885,'unitId':_0x31fb94,'subUnitId':_0x39b8d2},_0x13f2e5);return _0x497af0[_0x44a7dc(0x1c9)](_0x536b99,_0x552161),_0x22ac19[_0x44a7dc(0x49c)]({'unitID':_0x31fb94,'redoMutations':_0x536b99,'undoMutations':_0x149974}),!0x0;}},_0x1b72a3={'type':_0x497af0[_0x58458d(0x26b)]['COMMAND'],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0x3dd5ee,_0x1d6c0c){const _0x5ce545=_0x58458d;if(!_0x1d6c0c)return!0x1;const _0xe5732b=_0x3dd5ee[_0x5ce545(0x263)](_0x497af0[_0x5ce545(0x231)]),_0x59b08e=_0x3dd5ee[_0x5ce545(0x263)](_0x497af0[_0x5ce545(0x46a)]),_0x24ab4c=_0x3dd5ee['get'](_0x38ffc1[_0x5ce545(0x39f)]),{displayName:_0x17f3bd,subtotalType:_0x3ce7bd,format:_0x520fe4,tableFieldId:_0x3fb7ab,pivotTableId:_0x534e3d,unitId:_0x1e12fa,subUnitId:_0x334218}=_0x1d6c0c,_0x348537=(await _0x24ab4c[_0x5ce545(0x34c)]({'unitId':_0x1e12fa,'subUnitId':_0x334218,'pivotTableId':_0x534e3d,'params':{'type':_0x34f406[_0x5ce545(0x459)],'setPivotSetting':{'tableFieldId':_0x3fb7ab,'displayName':_0x17f3bd,'subtotalType':_0x3ce7bd,'format':_0x520fe4}}}))[_0x5ce545(0x4c4)][_0x5ce545(0x1e4)];if(!_0x348537)return!0x1;const {changesets:_0x440e1b,view:_0x17a177,pivotTableConfig:_0x59ad9e,isEmpty:_0x11111e}=_0x348537,_0x41dc59=_0x59ad9e[_0x5ce545(0x301)],_0x5ba5f0=new _0x3ccc66[(_0x5ce545(0x2ff))]();_0x5ba5f0[_0x5ce545(0x201)](_0x17a177);const _0x4e9a22={'cellInfo':_0x41dc59,'view':_0x5ba5f0,'isEmpty':_0x11111e};if(!await _0x3dd5ee[_0x5ce545(0x263)](_0x38ffc1[_0x5ce545(0x3c6)])[_0x5ce545(0x2ae)][_0x5ce545(0x4ae)](_0x2518b2)(!0x0,_0x4e9a22))return!0x1;const _0x3b814f=_0x30a1dd(_0x3dd5ee,_0x5ba5f0,_0x41dc59,_0x11111e),_0x33964b=_0x327c67(_0x3dd5ee,_0x4e9a22),{undos:_0x2be11d,redos:_0x5e857f}=_0x1218bd(_0xe5732b,{'pivotTableId':_0x534e3d,'unitId':_0x1e12fa,'subUnitId':_0x334218},_0x440e1b);return _0x497af0[_0x5ce545(0x1c9)]([..._0x3b814f[_0x5ce545(0x44a)],..._0x33964b[_0x5ce545(0x44a)],..._0x5e857f],_0xe5732b),_0x59b08e[_0x5ce545(0x49c)]({'unitID':_0x1e12fa,'redoMutations':[..._0x3b814f[_0x5ce545(0x44a)],..._0x33964b[_0x5ce545(0x44a)],..._0x5e857f],'undoMutations':[..._0x3b814f['undos'],..._0x33964b[_0x5ce545(0x44f)],..._0x2be11d]}),!0x0;}},_0x4c4a1e={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'id':_0x58458d(0x2ee),async 'handler'(_0x1f3039,_0x53cd7b){const _0x1bad8d=_0x58458d,_0x34ca7a=_0x1f3039[_0x1bad8d(0x263)](_0x497af0['ICommandService']),_0x36d386=_0x1f3039[_0x1bad8d(0x263)](_0x38ffc1[_0x1bad8d(0x39f)]),_0x379174=_0x1f3039[_0x1bad8d(0x263)](_0x497af0[_0x1bad8d(0x46a)]);if(!_0x53cd7b)return!0x1;const {token:_0x156b7c,dataRangeInfo:_0x359f37,unitId:_0x434f43,subUnitId:_0xfa2ea1}=_0x53cd7b,_0x4af9cf=[],_0x3efb2e=[],_0x444857=(await _0x36d386[_0x1bad8d(0x34c)]({'unitId':_0x434f43,'subUnitId':_0xfa2ea1,'pivotTableId':_0x156b7c,'params':{'type':_0x34f406[_0x1bad8d(0x449)],'updatePivotSource':{'dataRangeInfo':_0x359f37,'unitId':_0x434f43,'subUnitId':_0xfa2ea1}}}))[_0x1bad8d(0x4c4)][_0x1bad8d(0x29d)];if(!_0x444857)return!0x1;const {changesets:_0x248ab8,deleteIds:_0x230385,collectionConfig:_0x48ecdf,oldCollectionConfig:_0x427d5b,view:_0xea9667,isEmpty:_0x26a4a8,pivotTableConfig:_0xa318f1}=_0x444857;_0x3efb2e[_0x1bad8d(0x384)]({'id':_0x859d49['id'],'params':{'pivotTableId':_0x156b7c,'deleteIds':_0x230385,'collectionJSON':_0x48ecdf,'dataRangeInfo':_0x359f37,'unitId':_0x434f43,'subUnitId':_0xfa2ea1}}),_0x4af9cf[_0x1bad8d(0x36e)]({'id':_0x859d49['id'],'params':{'pivotTableId':_0x156b7c,'deleteIds':[],'collectionJSON':_0x427d5b,'dataRangeInfo':_0xa318f1[_0x1bad8d(0x4cc)],'unitId':_0x434f43,'subUnitId':_0xfa2ea1}});const _0x223cc5=_0xa318f1[_0x1bad8d(0x301)],_0x1e2c31=new _0x3ccc66[(_0x1bad8d(0x2ff))]();_0x1e2c31[_0x1bad8d(0x201)](_0xea9667);const _0x11eafe={'cellInfo':_0x223cc5,'view':_0x1e2c31,'isEmpty':_0x26a4a8};if(!await _0x1f3039['get'](_0x38ffc1[_0x1bad8d(0x3c6)])[_0x1bad8d(0x2ae)][_0x1bad8d(0x4ae)](_0x2518b2)(!0x0,_0x11eafe))return!0x1;const _0x5bd95c=_0x30a1dd(_0x1f3039,_0x1e2c31,_0x223cc5,_0x26a4a8),_0x323be5=_0x327c67(_0x1f3039,_0x11eafe),{undos:_0x1b79ab,redos:_0x561661}=_0x1218bd(_0x34ca7a,{'pivotTableId':_0x156b7c,'unitId':_0x434f43,'subUnitId':_0xfa2ea1},_0x248ab8);return _0x497af0[_0x1bad8d(0x1c9)]([..._0x5bd95c[_0x1bad8d(0x44a)],..._0x323be5[_0x1bad8d(0x44a)],..._0x3efb2e,..._0x1b79ab],_0x34ca7a),_0x379174[_0x1bad8d(0x49c)]({'unitID':_0x434f43,'redoMutations':[..._0x5bd95c[_0x1bad8d(0x44a)],..._0x323be5[_0x1bad8d(0x44a)],..._0x3efb2e,..._0x1b79ab],'undoMutations':[..._0x5bd95c[_0x1bad8d(0x44f)],..._0x323be5[_0x1bad8d(0x44f)],..._0x4af9cf,..._0x561661]}),!0x0;}},_0x394b18={'type':_0x497af0[_0x58458d(0x26b)]['COMMAND'],'id':_0x58458d(0x372),async 'handler'(_0x3c0802,_0x356477){const _0x3506e9=_0x58458d;if(!_0x356477)return!0x1;const _0x2fd52b=_0x3c0802[_0x3506e9(0x263)](_0x497af0[_0x3506e9(0x231)]),_0x205ef5=_0x3c0802['get'](_0x38ffc1[_0x3506e9(0x39f)]),_0xd26a31=_0x3c0802[_0x3506e9(0x263)](_0x497af0[_0x3506e9(0x36d)]),_0x434dfa=_0x3c0802[_0x3506e9(0x263)](_0x497af0['IUndoRedoService']),{pivotTableId:_0x1d7a2a,position:_0xa5a308,index:_0x21a056}=_0x356477,_0x33b78d=_0x5c4707['getSheetCommandTarget'](_0xd26a31);if(!_0x33b78d)return!0x1;const {unitId:_0xa2ca6,subUnitId:_0x2eca88}=_0x33b78d,_0x4c5c5c=(await _0x205ef5[_0x3506e9(0x34c)]({'unitId':_0xa2ca6,'subUnitId':_0x2eca88,'pivotTableId':_0x1d7a2a,'params':{'type':_0x34f406['UpdateValuePosition'],'updateValuePosition':{'position':_0xa5a308,'index':_0x21a056}}}))[_0x3506e9(0x4c4)][_0x3506e9(0x1be)];if(!_0x4c5c5c)return!0x1;const {changesets:_0xcf9355,view:_0x1afdd5,isEmpty:_0x3199e1,pivotTableConfig:_0x46c705}=_0x4c5c5c,_0x4d7591=_0x46c705[_0x3506e9(0x301)],_0x1012ad=new _0x3ccc66[(_0x3506e9(0x2ff))]();_0x1012ad['formJSON'](_0x1afdd5);const _0x282e4f=_0x3c0802[_0x3506e9(0x263)](_0x38ffc1[_0x3506e9(0x3c6)]),_0x55220b={'cellInfo':_0x4d7591,'view':_0x1012ad,'isEmpty':_0x3199e1};if(!await _0x282e4f[_0x3506e9(0x2ae)][_0x3506e9(0x4ae)](_0x2518b2)(!0x0,_0x55220b))return!0x1;const _0x2276d2=_0x30a1dd(_0x3c0802,_0x1012ad,_0x4d7591,_0x3199e1),_0x259f01=_0x327c67(_0x3c0802,_0x55220b),{undos:_0x3d922f,redos:_0x51752b}=_0x1218bd(_0x2fd52b,{'pivotTableId':_0x1d7a2a,'unitId':_0xa2ca6,'subUnitId':_0x2eca88},_0xcf9355);return _0x497af0[_0x3506e9(0x1c9)]([..._0x2276d2[_0x3506e9(0x44a)],..._0x259f01[_0x3506e9(0x44a)],..._0x51752b],_0x2fd52b),_0x434dfa[_0x3506e9(0x49c)]({'unitID':_0xa2ca6,'redoMutations':[..._0x2276d2[_0x3506e9(0x44a)],..._0x259f01[_0x3506e9(0x44a)],..._0x51752b],'undoMutations':[..._0x2276d2[_0x3506e9(0x44f)],..._0x259f01[_0x3506e9(0x44f)],..._0x3d922f]}),!0x0;}},_0x4d2a68={'type':_0x497af0[_0x58458d(0x26b)]['COMMAND'],'id':_0x58458d(0x2e8),'handler':(_0x11c90d,_0x3df449)=>{const _0x156c3e=_0x58458d,_0x145594=_0x11c90d['get'](_0x497af0['ICommandService']),_0x5d7f87=_0x11c90d[_0x156c3e(0x263)](_0x497af0[_0x156c3e(0x46a)]),_0x70c128=_0x11c90d[_0x156c3e(0x263)](_0x38ffc1['SheetsPivotTableConfigModel']),_0x38b4ae=_0x11c90d[_0x156c3e(0x263)](_0x497af0[_0x156c3e(0x36d)]);if(!_0x3df449)return!0x1;const _0x31c6fa=_0x5c4707[_0x156c3e(0x409)](_0x38b4ae);if(!_0x31c6fa)return!0x1;const {unitId:_0x5c0e30,subUnitId:_0x30a659,workbook:_0x22705e}=_0x31c6fa,_0x2dfcde=_0x70c128['getPivotTableConfig'](_0x3df449['originTargetInfo'][_0x156c3e(0x469)],_0x3df449[_0x156c3e(0x4a8)]['subUnitId'],_0x3df449[_0x156c3e(0x2a1)]);if(!_0x2dfcde)return!0x1;const _0x2b5cbc=_0x22705e['getSheetBySheetId'](_0x3df449['targetCellInfo']['subUnitId']);if(!_0x2b5cbc)throw new Error(_0x156c3e(0x319));const _0xd42b2e=_0x2b5cbc[_0x156c3e(0x392)](),_0x2cf48d=_0x2b5cbc[_0x156c3e(0x245)]();if(_0x3df449[_0x156c3e(0x301)]['row']>_0xd42b2e||_0x3df449[_0x156c3e(0x301)][_0x156c3e(0x3e4)]>_0x2cf48d)throw new Error(_0x156c3e(0x2c7));const _0x26d6ae=[{'id':_0x152ac4['id'],'params':{'unitId':_0x5c0e30,'subUnitId':_0x3df449[_0x156c3e(0x301)]['subUnitId'],'pivotTableId':_0x3df449[_0x156c3e(0x2a1)],'targetCellPosition':{'row':_0x3df449[_0x156c3e(0x301)][_0x156c3e(0x329)],'col':_0x3df449['targetCellInfo']['col']}}}],_0x31cf95=[{'id':_0x152ac4['id'],'params':{'unitId':_0x5c0e30,'subUnitId':_0x30a659,'pivotTableId':_0x3df449[_0x156c3e(0x2a1)],'targetCellPosition':{'row':_0x2dfcde['targetCellInfo'][_0x156c3e(0x329)],'col':_0x2dfcde[_0x156c3e(0x301)][_0x156c3e(0x3e4)]}}}];return _0x497af0[_0x156c3e(0x1c9)](_0x26d6ae,_0x145594)&&_0x5d7f87['pushUndoRedo']({'unitID':_0x5c0e30,'undoMutations':_0x31cf95,'redoMutations':_0x26d6ae}),!0x0;}},_0x26e26f={'type':_0x497af0[_0x58458d(0x26b)]['COMMAND'],'id':'sheet.command.set-pivot-value-filter',async 'handler'(_0x469dea,_0x3db72b){const _0x1cfb20=_0x58458d;if(!_0x3db72b)return!0x1;const _0x1e5860=_0x469dea[_0x1cfb20(0x263)](_0x497af0['ICommandService']),{pivotTableId:_0x4ac923,fieldId:_0x2df1fe,valueFilterInfo:_0x11ce90,unitId:_0x50095e,subUnitId:_0x426f71}=_0x3db72b,_0xae8273=_0x469dea[_0x1cfb20(0x263)](_0x38ffc1[_0x1cfb20(0x39f)]),_0x5f2530=_0x469dea['get'](_0x497af0[_0x1cfb20(0x46a)]),_0x506e4e=(await _0xae8273[_0x1cfb20(0x34c)]({'unitId':_0x50095e,'subUnitId':_0x426f71,'pivotTableId':_0x4ac923,'params':{'type':_0x34f406[_0x1cfb20(0x30d)],'setValuePivotFilter':{'tableFieldId':_0x2df1fe,'filterInfo':_0x11ce90}}}))[_0x1cfb20(0x4c4)][_0x1cfb20(0x443)];if(!_0x506e4e)return!0x1;const {changesets:_0x53a41e,pivotTableConfig:_0x5635a5,isEmpty:_0x295547,view:_0x3275bc}=_0x506e4e,_0x55cdf5=_0x5635a5[_0x1cfb20(0x301)],_0x297326=new _0x3ccc66[(_0x1cfb20(0x2ff))]();_0x297326[_0x1cfb20(0x201)](_0x3275bc);const _0x20fc02={'cellInfo':_0x55cdf5,'view':_0x297326,'isEmpty':_0x295547};if(!await _0x469dea[_0x1cfb20(0x263)](_0x38ffc1[_0x1cfb20(0x3c6)])[_0x1cfb20(0x2ae)][_0x1cfb20(0x4ae)](_0x2518b2)(!0x0,_0x20fc02))return!0x1;const _0x528b37=_0x30a1dd(_0x469dea,_0x297326,_0x55cdf5,_0x295547),_0x4c422b=_0x327c67(_0x469dea,_0x20fc02),{undos:_0x1bda47,redos:_0x1b4357}=_0x1218bd(_0x1e5860,{'pivotTableId':_0x4ac923,'unitId':_0x50095e,'subUnitId':_0x426f71},_0x53a41e);return _0x497af0[_0x1cfb20(0x1c9)]([..._0x528b37[_0x1cfb20(0x44a)],..._0x4c422b[_0x1cfb20(0x44a)],..._0x1b4357],_0x1e5860),_0x5f2530['pushUndoRedo']({'unitID':_0x50095e,'redoMutations':[..._0x528b37[_0x1cfb20(0x44a)],..._0x4c422b['redos'],..._0x1b4357],'undoMutations':[..._0x528b37['undos'],..._0x4c422b['undos'],..._0x1bda47]}),!0x0;}},_0x2f3c55={'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'id':_0x58458d(0x3e5),async 'handler'(_0x266d52,_0x579844){const _0x1fdabb=_0x58458d;if(!_0x579844)return!0x1;const _0x3815bb=_0x266d52[_0x1fdabb(0x263)](_0x497af0['ICommandService']),_0x2250cf=_0x266d52[_0x1fdabb(0x263)](_0x497af0['IUndoRedoService']),_0x1a9499=_0x266d52[_0x1fdabb(0x263)](_0x38ffc1[_0x1fdabb(0x39f)]),{pivotTableConfig:_0x17ea56,pivotTableId:_0x1e5fb8,unitId:_0x486736,subUnitId:_0x5bc1e0}=_0x579844,_0x2fd057=(await _0x1a9499['getPivotDisplayConfig']({'unitId':_0x486736,'subUnitId':_0x5bc1e0,'pivotTableId':_0x1e5fb8,'params':{'type':_0x34f406[_0x1fdabb(0x262)],'setPivotTableConfig':{'pivotTableId':_0x1e5fb8,'pivotTableConfig':_0x17ea56}}}))[_0x1fdabb(0x4c4)][_0x1fdabb(0x23e)];if(!_0x2fd057)return!0x1;const {changesets:_0x157286}=_0x2fd057,{redos:_0x2b685e,undos:_0x458df1}=_0x1218bd(_0x3815bb,{'pivotTableId':_0x1e5fb8,'unitId':_0x486736,'subUnitId':_0x5bc1e0},_0x157286);return _0x497af0['sequenceExecute'](_0x2b685e,_0x3815bb),_0x2250cf['pushUndoRedo']({'unitID':_0x486736,'redoMutations':_0x2b685e,'undoMutations':_0x458df1}),!0x0;}},_0x2aa50c={'type':_0x497af0[_0x58458d(0x26b)]['COMMAND'],'id':_0x58458d(0x3fd),async 'handler'(_0x417902,_0x3492cf){const _0x2ecd3b=_0x58458d;if(!_0x3492cf)return!0x1;const _0x323a4b=_0x417902[_0x2ecd3b(0x263)](_0x497af0[_0x2ecd3b(0x231)]),_0x30c321=_0x417902['get'](_0x497af0[_0x2ecd3b(0x46a)]),_0x582316=_0x417902['get'](_0x38ffc1[_0x2ecd3b(0x39f)]),{resetArea:_0x5a7709,pivotTableId:_0x395bbf,unitId:_0x462be6,subUnitId:_0x349c72}=_0x3492cf,_0x27707e=(await _0x582316[_0x2ecd3b(0x34c)]({'unitId':_0x462be6,'subUnitId':_0x349c72,'pivotTableId':_0x395bbf,'params':{'type':_0x34f406[_0x2ecd3b(0x3bd)],'resetPivotTable':{'pivotTableId':_0x395bbf,'resetArea':_0x5a7709}}}))['result']['resetPivotTable'];if(!_0x27707e)return!0x1;const {changesets:_0x5bda8d}=_0x27707e,{redos:_0x156ad2,undos:_0x57e26d}=_0x1218bd(_0x323a4b,{'pivotTableId':_0x395bbf,'unitId':_0x462be6,'subUnitId':_0x349c72},_0x5bda8d);return _0x497af0['sequenceExecute'](_0x156ad2,_0x323a4b),_0x30c321[_0x2ecd3b(0x49c)]({'unitID':_0x462be6,'redoMutations':_0x156ad2,'undoMutations':_0x57e26d}),!0x0;}},_0x3ee326={'id':_0x58458d(0x49f),'type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x1db)],'handler':(_0x4ec754,_0x59050a)=>{const _0x3349ff=_0x58458d;if(!_0x59050a)return!0x1;if(!!_0x4ec754[_0x3349ff(0x263)](_0x497af0[_0x3349ff(0x35f)])[_0x3349ff(0x3cf)](_0x3213d0))return!0x0;const {unitId:_0xe26623,subUnitId:_0x33cfd2,pivotTableId:_0x59b809,tableFieldId:_0x292ffa,dateType:_0x32cb4b}=_0x59050a,_0x47a11c=_0x4ec754[_0x3349ff(0x263)](_0x38ffc1[_0x3349ff(0x47f)]),_0x160a56=_0x47a11c['getPivotTableInstance'](_0x59b809);if(!_0x160a56)return!0x1;const _0x1eb49a=_0x160a56[_0x3349ff(0x248)](_0x292ffa);if(!_0x1eb49a)return!0x1;const _0x271dfb=_0x1eb49a[_0x3349ff(0x480)](),_0x521183=_0x160a56['getDataFieldByDataFieldId'](_0x271dfb),_0x5d186e=(_0x521183==null?void 0x0:_0x521183[_0x3349ff(0x36c)]())+'\x20'+_0x5475e8(_0x4ec754,_0x32cb4b);_0x47a11c[_0x3349ff(0x278)](_0xe26623,_0x59b809)['setDisplayName'](_0x1eb49a['id'],_0x5d186e);const _0x55d013=_0x160a56[_0x3349ff(0x35b)](_0x292ffa);if(!_0x55d013)return!0x1;_0x160a56[_0x3349ff(0x483)](_0x55d013[_0x3349ff(0x204)](),_0x5d186e),_0x1eb49a['setDateType'](_0x32cb4b);const _0x4699e6=_0x47a11c['getPivotTableConfig'](_0xe26623,_0x33cfd2,_0x59b809);return _0x47a11c[_0x3349ff(0x3d6)]({'unitId':_0xe26623,'subUnitId':_0x33cfd2,'token':_0x59b809,'type':_0x1d1e60['Set'],'pivotConfig':_0x4699e6}),!0x0;}},_0x4052a1={'id':'sheet.command.update-date-group','type':_0x497af0[_0x58458d(0x26b)][_0x58458d(0x277)],'handler':(_0x569211,_0x5ea278)=>{const _0x58b86e=_0x58458d;if(!_0x5ea278)return!0x1;const _0x469084=_0x569211[_0x58b86e(0x263)](_0x497af0[_0x58b86e(0x46a)]),{unitId:_0x40d017,subUnitId:_0x7b1f3c,pivotTableId:_0x422ef2,tableFieldId:_0x5644f8}=_0x5ea278,_0x1ef6a6=[],_0x59e73c=[],_0x3a336a=_0x569211[_0x58b86e(0x263)](_0x38ffc1[_0x58b86e(0x27d)]),_0x27f7f5=_0x3a336a[_0x58b86e(0x278)](_0x40d017,_0x422ef2),_0x282a90=_0x3a336a['getPivotTableConfig'](_0x40d017,_0x7b1f3c,_0x422ef2);if(!(_0x282a90!=null&&_0x282a90['fieldsConfig'][_0x58b86e(0x31f)]))return!0x1;const _0x429589=Object[_0x58b86e(0x43c)](_0x282a90['fieldsConfig'][_0x58b86e(0x31f)])[_0x58b86e(0x496)](_0x2bb0c5=>_0x2bb0c5['id']===_0x5644f8);if(!_0x429589)return!0x1;const _0x3bee6d=_0x429589[_0x58b86e(0x2ca)];if(!(_0x27f7f5!=null&&_0x27f7f5[_0x58b86e(0x325)]))return!0x1;const _0x26e130=Object[_0x58b86e(0x43c)](_0x27f7f5==null?void 0x0:_0x27f7f5[_0x58b86e(0x325)])['find'](_0x2852be=>_0x2852be['id']===_0x3bee6d);if(!_0x26e130)return!0x1;_0x3ccc66[_0x58b86e(0x217)](_0x26e130)&&_0x1ef6a6[_0x58b86e(0x384)]({'id':_0x3ee326['id'],'params':{..._0x5ea278,'dateType':_0x26e130['dateType']}}),_0x59e73c[_0x58b86e(0x384)]({'id':_0x3ee326['id'],'params':{..._0x5ea278}});const _0xc96e08=_0x569211[_0x58b86e(0x263)](_0x497af0[_0x58b86e(0x231)]);return _0x497af0['sequenceExecute'](_0x59e73c,_0xc96e08)&&_0x469084[_0x58b86e(0x49c)]({'unitID':_0x40d017,'undoMutations':_0x1ef6a6,'redoMutations':_0x59e73c}),!0x0;}};var _0x2896f2=Object['getOwnPropertyDescriptor'],_0x345779=(_0x51fd05,_0x53a7c2,_0x5b9fa1,_0x2c85f9)=>{const _0x39fea3=_0x58458d;for(var _0x336817=_0x2c85f9>0x1?void 0x0:_0x2c85f9?_0x2896f2(_0x53a7c2,_0x5b9fa1):_0x53a7c2,_0x20d61b=_0x51fd05[_0x39fea3(0x24e)]-0x1,_0x55fdb9;_0x20d61b>=0x0;_0x20d61b--)(_0x55fdb9=_0x51fd05[_0x20d61b])&&(_0x336817=_0x55fdb9(_0x336817)||_0x336817);return _0x336817;},_0x30fd5a=(_0xcfa7fa,_0x48ceac)=>(_0x29e4a5,_0x1c7779)=>_0x48ceac(_0x29e4a5,_0x1c7779,_0xcfa7fa);const _0x3b6a4e=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x21f00b=(_0x3d64c4,_0x1efbc5,_0x45e527)=>{const _0x32f831=_0x58458d,_0xe57575=_0x3d64c4['dataFieldsCollection'];_0x3d64c4[_0x32f831(0x1b5)](_0x1017fd=>{const _0x1126e8=_0x32f831,_0x20dd6d=_0x1017fd['getId'](),_0x5de66c=_0x1017fd[_0x1126e8(0x456)](),_0x27651c=_0x1017fd[_0x1126e8(0x24b)](),_0x5cc5b3=_0x1017fd[_0x1126e8(0x416)]();_0x1efbc5[_0x5de66c]&&_0x1efbc5[_0x5de66c]===_0x5cc5b3&&_0x27651c===_0x5cc5b3&&(_0x3d64c4[_0x1126e8(0x483)](_0x20dd6d,_0xe57575['getDisplayName'](_0x5de66c)),_0x1017fd[_0x1126e8(0x482)](_0xe57575[_0x1126e8(0x416)](_0x5de66c)));}),_0x3d64c4[_0x32f831(0x4a0)](_0x3ccc66[_0x32f831(0x41f)]['Value'],_0x4cd872=>{const _0x516e8c=_0x32f831,_0x4700da=_0x4cd872[_0x516e8c(0x204)](),_0x43f3c=_0x4cd872['getDataFieldId'](),_0x51483e=_0x4cd872[_0x516e8c(0x24b)](),_0x351dad=_0x4cd872[_0x516e8c(0x416)](),_0x4779d5=_0x4cd872[_0x516e8c(0x3de)](),_0x23db75=_0x45e527(_0x51483e,_0x4779d5);_0x1efbc5[_0x43f3c]&&_0x1efbc5[_0x43f3c]===_0x51483e&&_0x23db75===_0x351dad&&(_0x3d64c4[_0x516e8c(0x483)](_0x4700da,_0x45e527(_0xe57575[_0x516e8c(0x416)](_0x43f3c),_0x4779d5)),_0x4cd872[_0x516e8c(0x482)](_0xe57575[_0x516e8c(0x416)](_0x43f3c)));});},_0x4d2701=(_0xed0f2,_0x5c7f47,_0x2a49e7)=>{const _0x104ee3=_0x58458d;var _0x39b40a,_0x193703;const {arrayFormulaCellData:_0x37f819,unitData:_0x38e880}=_0x5c7f47,{unitId:_0x13a871,subUnitId:_0x4562cc}=_0x2a49e7,_0xcb5c4d=_0x2a49e7['range'],{startColumn:_0x5b14ac,endColumn:_0x22442c}=_0xcb5c4d,_0x34bb70=(_0x39b40a=_0x37f819==null?void 0x0:_0x37f819[_0x13a871])==null?void 0x0:_0x39b40a[_0x4562cc],_0x4b748a=(_0x193703=_0x38e880==null?void 0x0:_0x38e880[_0x13a871])==null?void 0x0:_0x193703[_0x4562cc],_0x53587d=new Set(),_0x52515b=_0x22442c-_0x5b14ac+0x1,{dirtyRanges:_0x12d4ba}=_0xed0f2;if(_0x12d4ba)for(const {range:_0x15697f,sheetId:_0x43df7e,unitId:_0x497ba2}of _0x12d4ba){if(_0x43df7e!==_0x4562cc||_0x13a871!==_0x497ba2)continue;const _0x217d42=_0x497af0[_0x104ee3(0x388)]['getIntersects'](_0x15697f,_0xcb5c4d);if(_0x217d42){const {startColumn:_0x18b233,endColumn:_0x46bbd9}=_0x217d42;for(let _0x39a90=_0x18b233;_0x39a90<=_0x46bbd9;_0x39a90++)_0x53587d[_0x104ee3(0x46d)](_0x39a90);}}if(_0x53587d[_0x104ee3(0x20f)]===_0x52515b||_0x53587d[_0x104ee3(0x20f)]===_0x52515b)return Array[_0x104ee3(0x47b)](_0x53587d);if(_0x4b748a){const _0x5b1f7a=_0x4b748a['getMatrix'](),_0xbfd462=Object[_0x104ee3(0x302)](_0x5b1f7a);for(const _0x25d69c of _0xbfd462){const _0xd4514d=Number(_0x25d69c),_0x1dcfe2=_0x5b1f7a[_0xd4514d];if(_0x53587d['size']===_0x52515b)break;for(const _0x16af8a in _0x1dcfe2){const _0x162ec7=Number(_0x16af8a);_0x162ec7<_0x5b14ac||_0x162ec7>_0x22442c||_0x53587d[_0x104ee3(0x46d)](_0x162ec7);}}}if(_0x34bb70){const _0x322f6a=_0x34bb70[_0x104ee3(0x29e)](),_0x320dae=Object['keys'](_0x322f6a);for(const _0x3f8acb of _0x320dae){const _0x475de5=Number(_0x3f8acb),_0x5e8a6d=_0x322f6a[_0x475de5];if(_0x53587d[_0x104ee3(0x20f)]===_0x52515b)break;for(const _0x4ccbb8 in _0x5e8a6d){const _0x58bc8f=Number(_0x4ccbb8);_0x58bc8f<_0x5b14ac||_0x58bc8f>_0x22442c||_0x53587d[_0x104ee3(0x46d)](_0x58bc8f);}}}return Array[_0x104ee3(0x47b)](_0x53587d);},_0x1549c8=_0x43dab2=>{const _0x4cec9a=_0x58458d,_0x4c0037=new Set(),_0x17822a=[];for(const _0x545e94 of _0x43dab2){const _0x5e2a50=_0x545e94[_0x4cec9a(0x280)]+','+_0x545e94[_0x4cec9a(0x33d)]+','+_0x545e94[_0x4cec9a(0x274)]+','+_0x545e94[_0x4cec9a(0x300)];_0x4c0037[_0x4cec9a(0x2ec)](_0x5e2a50)||(_0x4c0037[_0x4cec9a(0x46d)](_0x5e2a50),_0x17822a[_0x4cec9a(0x384)](_0x545e94));}return _0x17822a;};let _0x445ddd=class extends _0x497af0[_0x58458d(0x28c)]{constructor(_0x1b35f3,_0x2c5519,_0x9cb7ee,_0x5355c7,_0x1b28dc,_0x499b3d){const _0x2baacc=_0x58458d;super(),_0x5ebdc4(this,'_globalSubject',new _0x5dbc97[(_0x2baacc(0x293))](!0x0)),_0x5ebdc4(this,_0x2baacc(0x1f4),_0x30349b=>{const _0x1a8fa0=_0x2baacc;this[_0x1a8fa0(0x3f5)][_0x1a8fa0(0x3be)](!0x1);}),_0x5ebdc4(this,_0x2baacc(0x21b),_0x4926e9=>{const _0x1d05cc=_0x2baacc;this[_0x1d05cc(0x3f5)]['next'](!0x0);}),(this[_0x2baacc(0x379)]=_0x1b35f3,this[_0x2baacc(0x29f)]=_0x2c5519,this[_0x2baacc(0x4c5)]=_0x9cb7ee,this[_0x2baacc(0x257)]=_0x5355c7,this[_0x2baacc(0x45f)]=_0x1b28dc,this[_0x2baacc(0x273)]=_0x499b3d,this[_0x2baacc(0x2ed)](),this['_initPivotDataGetListener']());}['_init'](){const _0x48bcd4=_0x58458d;this[_0x48bcd4(0x2cb)](),this[_0x48bcd4(0x267)](),this[_0x48bcd4(0x2af)](),this['_subjectFieldsCollectionChange']();}[_0x58458d(0x4da)](){const _0x4ec2a5=_0x58458d;this['_globalComputingSrv'][_0x4ec2a5(0x303)](this[_0x4ec2a5(0x3f5)]),_0x3ccc66[_0x4ec2a5(0x3a4)][_0x4ec2a5(0x1d6)](_0x3ccc66[_0x4ec2a5(0x3ef)][_0x4ec2a5(0x220)],this[_0x4ec2a5(0x1f4)]),_0x3ccc66[_0x4ec2a5(0x3a4)][_0x4ec2a5(0x1d6)](_0x3ccc66['PivotCallbackEnum'][_0x4ec2a5(0x35d)],this[_0x4ec2a5(0x21b)]);}[_0x58458d(0x373)](){const _0x5b5c69=_0x58458d;this[_0x5b5c69(0x3c8)](this['_commandService']['onCommandExecuted'](_0x3cd9ab=>{const _0x361ca6=_0x5b5c69;_0x3cd9ab['id']===_0x5c4707[_0x361ca6(0x307)]['id']&&this[_0x361ca6(0x379)][_0x361ca6(0x441)](_0x3cd9ab[_0x361ca6(0x406)]);})),this[_0x5b5c69(0x3c8)](this[_0x5b5c69(0x257)][_0x5b5c69(0x407)](_0x3fd086=>{const _0x15ff10=_0x5b5c69;if(_0x3fd086['id']!==_0x3c24cc['id'])return;const _0x5850b7=_0x3fd086[_0x15ff10(0x406)],{unitId:_0x493cc4,subUnitId:_0x5174d6,pivotTableId:_0x1b9238}=_0x5850b7,_0x490068=_0x5850b7[_0x15ff10(0x406)][_0x15ff10(0x423)],_0x5dac21={};switch(_0x490068){case _0x34f406[_0x15ff10(0x2e7)]:{const _0x1017fb=_0x5850b7[_0x15ff10(0x406)]['filter'];if(!_0x1017fb)return;const {row:_0x611b87,col:_0x3d0b65,cellData:_0x6f0786,pivotItemRenderInfoCache:_0x332ba0,tableFieldId:_0x1fe04e}=_0x1017fb,_0x210ca5=this[_0x15ff10(0x379)][_0x15ff10(0x354)](_0x5850b7[_0x15ff10(0x2a1)]);if(!_0x210ca5||!_0x332ba0)return;if(_0x1fe04e){const _0x437373=_0x210ca5[_0x15ff10(0x248)](_0x1fe04e);if(!_0x437373)return;_0x5dac21['filter']={..._0x210ca5[_0x15ff10(0x3f8)](_0x437373),'tableFieldId':_0x1fe04e,'pivotTableId':_0x5850b7[_0x15ff10(0x2a1)],'filterInfo':_0x210ca5[_0x15ff10(0x3f7)](_0x1fe04e),'sortInfo':_0x210ca5[_0x15ff10(0x431)](_0x1fe04e),'format':_0x210ca5[_0x15ff10(0x3b1)](_0x1fe04e)};}else{const _0x19f3bb=_0x363d3a(_0x611b87,_0x3d0b65,_0x6f0786,_0x210ca5,_0x332ba0),_0x3d5ce6=_0x19f3bb==null?void 0x0:_0x19f3bb[_0x15ff10(0x1f1)];if(!_0x3d5ce6)return;const _0x55e2ba=_0x210ca5[_0x15ff10(0x248)](_0x3d5ce6);if(!_0x55e2ba)return;_0x5dac21[_0x15ff10(0x40d)]={..._0x210ca5[_0x15ff10(0x3f8)](_0x55e2ba),'tableFieldId':_0x3d5ce6,'pivotTableId':_0x5850b7[_0x15ff10(0x2a1)],'filterInfo':_0x210ca5['getFilterInfo'](_0x3d5ce6),'sortInfo':_0x210ca5['getSortInfo'](_0x3d5ce6),'format':_0x210ca5[_0x15ff10(0x3b1)](_0x3d5ce6)};}}break;case _0x34f406['Panel']:{const _0x346d18=_0x5850b7['params'][_0x15ff10(0x3e8)];if(!_0x346d18)return;const {pivotTableId:_0x4aedfe}=_0x346d18,_0x1471b2=this[_0x15ff10(0x379)][_0x15ff10(0x354)](_0x4aedfe);if(!_0x1471b2)return;const _0x2e3910=this[_0x15ff10(0x379)]['getPivotTableConfig'](_0x493cc4,_0x5174d6,_0x4aedfe),_0x50cbc0=_0x10514c(_0x1471b2,_0x4aedfe,_0x2e3910);_0x5dac21[_0x15ff10(0x3e8)]=_0x50cbc0;}break;case _0x34f406[_0x15ff10(0x223)]:{const _0x4fc9ea=this[_0x15ff10(0x379)][_0x15ff10(0x354)](_0x1b9238),_0x4b99d4=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x493cc4),_0x20c0b7=_0x4b99d4[_0x15ff10(0x278)](_0x1b9238);let _0x3cca9a=null;const _0x3a8081=this[_0x15ff10(0x379)][_0x15ff10(0x2ef)](_0x493cc4,_0x5174d6,_0x1b9238),_0x246af8=_0x5850b7[_0x15ff10(0x406)][_0x15ff10(0x3bf)];if(!_0x4fc9ea||!_0x3a8081||!_0x246af8)return!0x1;const {dataFieldId:_0x5bbe37,fieldArea:_0x2efa18,index:_0x2d3e6d}=_0x246af8;_0x4fc9ea[_0x15ff10(0x25c)]();const _0x1b9721=_0x4fc9ea[_0x15ff10(0x4d2)](_0x5bbe37,_0x2efa18,_0x2d3e6d);if(_0x1b9721&&_0x2efa18===_0x3ccc66['PivotTableFiledAreaEnum']['Value']){const _0x19c1f0=_0x1b9721['getId'](),_0x4e6886=_0x4fc9ea[_0x15ff10(0x248)](_0x19c1f0);if(_0x4e6886){const _0x2d71cb=_0x4e6886==null?void 0x0:_0x4e6886[_0x15ff10(0x2f7)]();_0x4fc9ea['setSubtotalType'](_0x1b9721[_0x15ff10(0x204)](),_0x2d71cb===_0x3ccc66['PivotDataFieldDataTypeEnum'][_0x15ff10(0x3c7)]?_0x3ccc66[_0x15ff10(0x2ad)][_0x15ff10(0x2e3)]:_0x3ccc66['PivotSubtotalTypeEnum']['count']);}const _0x2376c7=_0x4fc9ea[_0x15ff10(0x436)](),_0xc9426d=_0x4fc9ea[_0x15ff10(0x2d6)](),_0x1e3526=_0x4fc9ea['getFieldCountByArea'](_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x1ca)]);if(_0x2376c7===-0x1&&_0x1e3526>0x1){const _0x793df9=_0xc9426d===_0x3ccc66[_0x15ff10(0x393)][_0x15ff10(0x1e3)]?_0x3ccc66[_0x15ff10(0x393)]['Column']:_0xc9426d,_0xc9cff5=_0x793df9===_0x3ccc66[_0x15ff10(0x393)][_0x15ff10(0x321)]?_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x321)]:_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x3b5)];_0x4fc9ea['updateValuePosition'](_0x793df9,_0x4fc9ea[_0x15ff10(0x4b3)](_0xc9cff5));}}else{if(_0x1b9721&&(_0x2efa18===_0x3ccc66['PivotTableFiledAreaEnum'][_0x15ff10(0x321)]||_0x2efa18===_0x3ccc66['PivotTableFiledAreaEnum'][_0x15ff10(0x3b5)])){const _0x33219a=_0x1b9721['getId'](),_0x4ad76b=_0x4fc9ea[_0x15ff10(0x248)](_0x33219a);if(_0x4ad76b&&(_0x4ad76b==null?void 0x0:_0x4ad76b[_0x15ff10(0x2f7)]())===_0x3ccc66[_0x15ff10(0x30c)][_0x15ff10(0x378)]){const _0x32ac44=_0x4ad76b[_0x15ff10(0x2b1)]();if(_0x32ac44&&_0x4fc9ea[_0x15ff10(0x380)](_0x1b9721[_0x15ff10(0x204)](),_0x32ac44),!_0x20c0b7['getFieldIds']()['some'](_0x45f5dc=>{const _0x51cb00=_0x15ff10,_0x7cc826=_0x20c0b7[_0x51cb00(0x22e)](_0x45f5dc);return _0x3ccc66['isDateGroupField'](_0x7cc826)?_0x7cc826[_0x51cb00(0x311)]()[_0x51cb00(0x48f)]===_0x5bbe37:!0x1;})){const _0x4d639e=_0x4b99d4[_0x15ff10(0x3f6)](),_0x526ac4=_0x1b6715(_0x4ad76b['maxDate'],_0x4ad76b[_0x15ff10(0x415)]),_0x1ac553=_0x4ad76b[_0x15ff10(0x36c)]()+'\x20-\x20'+_0x5475e8(this[_0x15ff10(0x273)],_0x526ac4),_0x3eb5c2=new _0x3ccc66[(_0x15ff10(0x31e))](_0x4d639e,_0x1ac553,_0x3ccc66[_0x15ff10(0x27c)](0x3),_0x4ad76b[_0x15ff10(0x204)](),_0x526ac4);_0x4b99d4[_0x15ff10(0x1d2)](_0x3eb5c2),_0x20c0b7['addField'](_0x4d639e,_0x1ac553),_0x4fc9ea['addFieldWithSourceId'](_0x4d639e,_0x2efa18,(_0x2d3e6d!=null?_0x2d3e6d:0x0)+0x1),_0x3cca9a=_0x3eb5c2;}}}}const _0x385f51=_0x4fc9ea['isEmpty'](),_0x5480db=_0x4fc9ea['query']()['toJSON']();let _0x1130f2;if(_0x3cca9a){_0x1130f2=_0x3cca9a[_0x15ff10(0x314)]();const _0x145d6b=_0x3cca9a[_0x15ff10(0x204)]();_0x20c0b7[_0x15ff10(0x38f)](_0x145d6b);let _0x190096=!0x0;for(const _0xdf65d5 in _0x4b99d4[_0x15ff10(0x4b7)])if(_0x4b99d4['collections'][_0xdf65d5]['getFieldIds']()['includes'](_0x145d6b)){_0x190096=!0x1;break;}_0x190096&&_0x4b99d4[_0x15ff10(0x49e)](_0x145d6b);}const _0x521414=_0x4fc9ea[_0x15ff10(0x36a)]();_0x5dac21['addPivotField']={'view':_0x5480db,'changesets':_0x521414,'isEmpty':_0x385f51,'pivotTableConfig':_0x3a8081,'shouldBeAddedGroupJSON':_0x1130f2};}break;case _0x34f406['AddPivotTable']:{const _0xd5c37d=_0x5850b7[_0x15ff10(0x406)][_0x15ff10(0x367)];if(!_0xd5c37d)return;const _0x569bf0=_0xd5c37d[_0x15ff10(0x4cc)],_0x598716=_0xd5c37d[_0x15ff10(0x2a1)],{collection:_0x32020d}=this[_0x15ff10(0x379)][_0x15ff10(0x3b8)]({'unitId':_0x569bf0['unitId'],'sheetName':_0x569bf0[_0x15ff10(0x254)],'subUnitId':_0x569bf0[_0x15ff10(0x239)],'range':_0x569bf0['range']}),_0x1f86d9=new _0x3ccc66[(_0x15ff10(0x3a4))](_0x32020d,void 0x0,_0x598716),_0xa7f458=_0x1f86d9[_0x15ff10(0x369)](),_0x4e8737=_0x1f86d9[_0x15ff10(0x314)](),_0x416555=_0x32020d[_0x15ff10(0x314)]();_0x5dac21['addPivotTable']={'view':_0xa7f458,'fieldsConfig':_0x4e8737,'collectionConfig':_0x416555,'isEmpty':_0x1f86d9[_0x15ff10(0x2c4)]()};}break;case _0x34f406[_0x15ff10(0x26c)]:{const _0xa604bf=_0x5850b7['params'][_0x15ff10(0x341)];if(!_0xa604bf)return;const {fieldId:_0x2ddbc0,area:_0x3b3625,index:_0x2b14f3}=_0xa604bf,_0x2f4c8a=this['_sheetsPivotDataSourceModel'][_0x15ff10(0x2ef)](_0x493cc4,_0x5174d6,_0x1b9238);if(!_0x2f4c8a)return;const _0x511fa7=this['_sheetsPivotDataSourceModel'][_0x15ff10(0x354)](_0x1b9238);if(!_0x511fa7)return;_0x511fa7[_0x15ff10(0x25c)]();const {area:_0x74a22f,index:_0x54f61b}=_0x511fa7[_0x15ff10(0x430)](_0x2ddbc0);if(_0x511fa7['updateFieldPosition'](_0x2ddbc0,_0x3b3625,_0x2b14f3),_0x3b3625===_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x1ca)]&&_0x511fa7[_0x15ff10(0x35b)](_0x2ddbc0)[_0x15ff10(0x3de)]()===void 0x0){const _0x31d9bd=_0x511fa7['getTableFieldById'](_0x2ddbc0);if(_0x31d9bd&&_0x31d9bd['getSubtotal']()===void 0x0){const _0x57e437=_0x511fa7[_0x15ff10(0x248)](_0x2ddbc0);if(_0x57e437){const _0x57a4fa=_0x57e437==null?void 0x0:_0x57e437[_0x15ff10(0x2f7)]();_0x511fa7[_0x15ff10(0x1b3)](_0x2ddbc0,_0x57a4fa===_0x3ccc66['PivotDataFieldDataTypeEnum']['number']?_0x3ccc66['PivotSubtotalTypeEnum']['sum']:_0x3ccc66[_0x15ff10(0x2ad)][_0x15ff10(0x3ad)]);}}}const _0x3049cd=_0x511fa7[_0x15ff10(0x2d6)](),_0x5b651b=_0x511fa7['getValueIndex'](),_0x14bfbe=_0x511fa7['getFieldCountByArea'](_0x3ccc66['PivotTableFiledAreaEnum'][_0x15ff10(0x1ca)])>0x1;if(_0x14bfbe&&_0x74a22f===_0x3b3625&&(_0x3b3625===_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x321)]&&_0x3049cd===_0x3ccc66[_0x15ff10(0x393)]['Row']||_0x3b3625===_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x3b5)]&&_0x3049cd===_0x3ccc66[_0x15ff10(0x393)][_0x15ff10(0x3b5)])){let _0x333550=_0x5b651b;_0x54f61b<=_0x5b651b&&_0x333550--,_0x2b14f3<=_0x5b651b&&_0x333550++,_0x511fa7[_0x15ff10(0x1be)](_0x3049cd,_0x333550);}else _0x14bfbe&&(_0x74a22f===_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x321)]&&_0x3049cd===_0x3ccc66[_0x15ff10(0x393)]['Row']||_0x74a22f===_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x3b5)]&&_0x3049cd===_0x3ccc66[_0x15ff10(0x393)][_0x15ff10(0x3b5)])&&_0x5b651b>=_0x54f61b&&_0x511fa7[_0x15ff10(0x1be)](_0x3049cd,_0x5b651b-0x1),_0x14bfbe&&(_0x3b3625===_0x3ccc66[_0x15ff10(0x41f)]['Row']&&_0x3049cd===_0x3ccc66[_0x15ff10(0x393)][_0x15ff10(0x321)]||_0x3b3625===_0x3ccc66['PivotTableFiledAreaEnum'][_0x15ff10(0x3b5)]&&_0x3049cd===_0x3ccc66[_0x15ff10(0x393)]['Column'])&&_0x5b651b>=_0x2b14f3&&_0x511fa7[_0x15ff10(0x1be)](_0x3049cd,_0x5b651b+0x1);const _0x3df5da=_0x511fa7[_0x15ff10(0x369)](),_0xa26d6d=_0x511fa7[_0x15ff10(0x2c4)](),_0x404065=_0x511fa7['endCollectChangeset']();_0x5dac21[_0x15ff10(0x341)]={'view':_0x3df5da[_0x15ff10(0x314)](),'changesets':_0x404065,'isEmpty':_0xa26d6d,'pivotTableConfig':_0x2f4c8a};}break;case _0x34f406[_0x15ff10(0x41c)]:{const _0x269ab0=_0x5850b7[_0x15ff10(0x406)][_0x15ff10(0x48c)];if(!_0x269ab0)return;const _0x593e68=_0x269ab0[_0x15ff10(0x216)],_0x3b1387=this[_0x15ff10(0x379)]['getPivotTableConfig'](_0x493cc4,_0x5174d6,_0x1b9238);if(!_0x3b1387)return!0x1;const _0x16dd23=this['_sheetsPivotDataSourceModel'][_0x15ff10(0x354)](_0x1b9238);if(!_0x16dd23)return!0x1;_0x16dd23['startCollectChangeset']();for(const _0x3f4825 of _0x593e68){const {area:_0x268380}=_0x16dd23[_0x15ff10(0x430)](_0x3f4825);_0x268380===_0x3ccc66['PivotTableFiledAreaEnum']['Value']&&_0x16dd23[_0x15ff10(0x1ed)](_0x3f4825),(_0x268380===_0x3ccc66[_0x15ff10(0x41f)]['Row']||_0x268380===_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x3b5)])&&_0x16dd23[_0x15ff10(0x290)](_0x3f4825),_0x16dd23[_0x15ff10(0x3b2)](_0x3f4825);}const _0x3025fb=_0x16dd23[_0x15ff10(0x2c4)](),_0x18fc65=_0x16dd23[_0x15ff10(0x369)]()[_0x15ff10(0x314)](),_0x1e98ad=_0x16dd23['endCollectChangeset']();_0x5dac21[_0x15ff10(0x48c)]={'changesets':_0x1e98ad,'pivotTableConfig':_0x3b1387,'isEmpty':_0x3025fb,'view':_0x18fc65};}break;case _0x34f406['SetPivotFilter']:{const _0x3732e1=_0x5850b7['params']['setPivotFilter'];if(!_0x3732e1)return;const {tableFieldId:_0x4b1d01,items:_0x3e50e2,isAll:_0xcf94c2}=_0x3732e1,_0x370186=this[_0x15ff10(0x379)][_0x15ff10(0x354)](_0x1b9238),_0x402c02=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x493cc4,_0x5174d6,_0x1b9238);if(!_0x370186||!_0x402c02)return;_0x370186['startCollectChangeset'](),_0x370186[_0x15ff10(0x360)](_0x4b1d01,{'type':_0x3ccc66[_0x15ff10(0x3a5)][_0x15ff10(0x486)],'list':_0x3e50e2,'isAll':_0xcf94c2});const _0x5dc6c3=_0x370186[_0x15ff10(0x2c4)](),_0x3d4782=_0x370186[_0x15ff10(0x369)]()['toJSON'](),_0x22e3ec=_0x370186[_0x15ff10(0x36a)]();_0x5dac21[_0x15ff10(0x4ab)]={'view':_0x3d4782,'changesets':_0x22e3ec,'isEmpty':_0x5dc6c3,'pivotTableConfig':_0x402c02};}break;case _0x34f406['SetValuePivotFilter']:{const _0x34841e=_0x5850b7[_0x15ff10(0x406)]['setValuePivotFilter'];if(!_0x34841e)return;const {tableFieldId:_0x3f5979,filterInfo:_0x12e410}=_0x34841e,_0x55922a=this['_sheetsPivotDataSourceModel'][_0x15ff10(0x354)](_0x1b9238),_0x4ef4f3=this[_0x15ff10(0x379)][_0x15ff10(0x2ef)](_0x493cc4,_0x5174d6,_0x1b9238);if(!_0x55922a||!_0x4ef4f3)return;_0x55922a[_0x15ff10(0x25c)](),_0x55922a[_0x15ff10(0x362)](_0x3f5979,_0x12e410);const _0x46cf09=_0x55922a['isEmpty'](),_0x191c6d=_0x55922a[_0x15ff10(0x369)]()[_0x15ff10(0x314)](),_0x15855c=_0x55922a['endCollectChangeset']();_0x5dac21[_0x15ff10(0x443)]={'view':_0x191c6d,'changesets':_0x15855c,'isEmpty':_0x46cf09,'pivotTableConfig':_0x4ef4f3};}break;case _0x34f406[_0x15ff10(0x408)]:{const _0x428928=_0x5850b7[_0x15ff10(0x406)][_0x15ff10(0x1e0)];if(!_0x428928)return;const {tableFieldId:_0x2aa0ee,info:_0x595891}=_0x428928,_0x203789=this['_sheetsPivotDataSourceModel'][_0x15ff10(0x354)](_0x1b9238),_0x1dcb6f=this[_0x15ff10(0x379)][_0x15ff10(0x2ef)](_0x493cc4,_0x5174d6,_0x1b9238);if(!_0x203789||!_0x1dcb6f)return;_0x203789[_0x15ff10(0x25c)](),_0x203789[_0x15ff10(0x26e)](_0x2aa0ee,_0x595891);const _0x1a79ec=_0x203789[_0x15ff10(0x2c4)](),_0x52db25=_0x203789[_0x15ff10(0x369)]()[_0x15ff10(0x314)](),_0x5d3852=_0x203789[_0x15ff10(0x36a)]();_0x5dac21[_0x15ff10(0x1e0)]={'view':_0x52db25,'changesets':_0x5d3852,'isEmpty':_0x1a79ec,'pivotTableConfig':_0x1dcb6f};}break;case _0x34f406['SetPivotSetting']:{const _0x1effc0=_0x5850b7[_0x15ff10(0x406)][_0x15ff10(0x1e4)];if(!_0x1effc0)return;const {tableFieldId:_0x5adea5,displayName:_0x2dfc51,subtotalType:_0xef3ab9,format:_0x2997d5}=_0x1effc0,_0x3770e9=this['_sheetsPivotDataSourceModel'][_0x15ff10(0x354)](_0x1b9238),_0x2e8c28=this[_0x15ff10(0x379)][_0x15ff10(0x2ef)](_0x493cc4,_0x5174d6,_0x1b9238);if(!_0x3770e9||!_0x2e8c28)return;_0x3770e9[_0x15ff10(0x25c)](),_0x2dfc51!==void 0x0&&_0x3770e9[_0x15ff10(0x483)](_0x5adea5,_0x2dfc51),_0xef3ab9!==void 0x0&&_0x3770e9[_0x15ff10(0x1b3)](_0x5adea5,_0xef3ab9),_0x2997d5!==void 0x0&&_0x3770e9[_0x15ff10(0x380)](_0x5adea5,_0x2997d5);const _0x49ecef=_0x3770e9['isEmpty'](),_0x23a6b=_0x3770e9[_0x15ff10(0x369)]()[_0x15ff10(0x314)](),_0x2181ff=_0x3770e9[_0x15ff10(0x36a)]();_0x5dac21[_0x15ff10(0x1e4)]={'changesets':_0x2181ff,'pivotTableConfig':_0x2e8c28,'isEmpty':_0x49ecef,'view':_0x23a6b};}break;case _0x34f406['UpdatePivotSource']:{const _0x1b0b0a=_0x5850b7[_0x15ff10(0x406)][_0x15ff10(0x29d)];if(!_0x1b0b0a)return;const {dataRangeInfo:_0x12320a,unitId:_0x4162a5,subUnitId:_0x153f22}=_0x1b0b0a,_0x59d8f8=this[_0x15ff10(0x379)]['getPivotTableConfig'](_0x4162a5,_0x153f22,_0x1b9238),_0x32dbbf=this['_sheetsPivotDataSourceModel'][_0x15ff10(0x354)](_0x1b9238);if(!this['_sheetsPivotDataSourceModel'][_0x15ff10(0x278)](_0x4162a5,_0x1b9238)||!_0x32dbbf||!_0x59d8f8)return;const _0x81307f=this[_0x15ff10(0x379)][_0x15ff10(0x4ca)](_0x4162a5,_0x1b9238,_0x12320a),_0x2a9baf=this['_sheetsPivotDataSourceModel'][_0x15ff10(0x278)](_0x4162a5,_0x1b9238)[_0x15ff10(0x314)](),{collection:_0x3de072}=this[_0x15ff10(0x379)][_0x15ff10(0x3b8)]({'unitId':_0x12320a['unitId'],'sheetName':_0x12320a['sheetName'],'subUnitId':_0x12320a['subUnitId'],'range':_0x12320a[_0x15ff10(0x1c8)]}),_0xa104d7=_0x3de072['toJSON']();_0x32dbbf[_0x15ff10(0x25c)]();const _0x4f781c=this[_0x15ff10(0x379)][_0x15ff10(0x276)](_0x4162a5)[_0x15ff10(0x4b2)]()||_0x3ccc66[_0x15ff10(0x345)];_0x32dbbf[_0x15ff10(0x358)](_0x5e0a4c=>{const _0x225bf1=_0x15ff10,_0x1eee6b=_0x5e0a4c['getDataFieldId']();if(!_0x3de072['hasField'](_0x1eee6b)){const _0x13fcc1=_0x3de072['getDataFieldBySourceName'](_0x5e0a4c[_0x225bf1(0x24b)]());if(_0x13fcc1){_0x32dbbf[_0x225bf1(0x1e8)](_0x5e0a4c[_0x225bf1(0x204)](),_0x13fcc1[_0x225bf1(0x36c)](),_0x13fcc1[_0x225bf1(0x204)]());const {area:_0x4d922c}=_0x32dbbf[_0x225bf1(0x430)](_0x5e0a4c[_0x225bf1(0x204)]());let _0x42ab8d=_0x5e0a4c[_0x225bf1(0x24b)]();const _0x1dc411=_0x5e0a4c[_0x225bf1(0x416)]();if(_0x4d922c===_0x3ccc66[_0x225bf1(0x41f)][_0x225bf1(0x1ca)]){const _0x57144d=_0x5e0a4c[_0x225bf1(0x3de)]();_0x42ab8d=_0x4f781c(_0x13fcc1[_0x225bf1(0x36c)](),_0x57144d);}_0x1dc411!==_0x42ab8d&&_0x32dbbf[_0x225bf1(0x483)](_0x5e0a4c[_0x225bf1(0x204)](),_0x42ab8d);}else _0x32dbbf[_0x225bf1(0x3b2)](_0x5e0a4c[_0x225bf1(0x204)]());}});const _0x2cdd5e=_0x32dbbf[_0x15ff10(0x2c4)](),_0x10e736=_0x32dbbf['query']()[_0x15ff10(0x314)](),_0x2e93bd=_0x32dbbf['endCollectChangeset']();_0x5dac21[_0x15ff10(0x29d)]={'view':_0x10e736,'changesets':_0x2e93bd,'isEmpty':_0x2cdd5e,'pivotTableConfig':_0x59d8f8,'collectionConfig':_0xa104d7,'oldCollectionConfig':_0x2a9baf,'deleteIds':_0x81307f};}break;case _0x34f406[_0x15ff10(0x23b)]:{const _0x5bd532=_0x5850b7[_0x15ff10(0x406)][_0x15ff10(0x1be)];if(!_0x5bd532)return;const {position:_0x10bb19,index:_0xc0d0ca}=_0x5bd532,_0x439af3=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x493cc4,_0x5174d6,_0x1b9238);if(!_0x439af3)return!0x1;const _0x22da39=this[_0x15ff10(0x379)][_0x15ff10(0x354)](_0x1b9238);if(!_0x22da39)return!0x1;_0x22da39['startCollectChangeset'](),_0x22da39[_0x15ff10(0x1be)](_0x10bb19,_0xc0d0ca);const _0x5c33fa=_0x22da39['isEmpty'](),_0x4e808c=_0x22da39['query']()[_0x15ff10(0x314)](),_0x2af620=_0x22da39['endCollectChangeset']();_0x5dac21[_0x15ff10(0x1be)]={'changesets':_0x2af620,'pivotTableConfig':_0x439af3,'isEmpty':_0x5c33fa,'view':_0x4e808c};}break;case _0x34f406[_0x15ff10(0x403)]:{const _0x3c0df6=_0x5850b7['params'][_0x15ff10(0x36f)];if(!_0x3c0df6)return;const {tableFieldId:_0x30c999,collapse:_0x38dc2d,item:_0x2ce548}=_0x3c0df6,_0x353c06=this[_0x15ff10(0x379)][_0x15ff10(0x354)](_0x1b9238),_0x304a8=this[_0x15ff10(0x379)][_0x15ff10(0x2ef)](_0x493cc4,_0x5174d6,_0x1b9238);if(!_0x353c06||!_0x304a8)return;_0x353c06[_0x15ff10(0x25c)](),_0x353c06[_0x15ff10(0x46b)](_0x30c999,_0x38dc2d,_0x2ce548);const _0xe44c15=_0x353c06[_0x15ff10(0x2c4)](),_0x77cc29=_0x353c06['query']()[_0x15ff10(0x314)](),_0xa6e941=_0x353c06[_0x15ff10(0x36a)]();_0x5dac21['setPivotCollapse']={'view':_0x77cc29,'isEmpty':_0xe44c15,'pivotTableConfig':_0x304a8,'changesets':_0xa6e941};}break;case _0x34f406[_0x15ff10(0x262)]:{const _0x5ca806=_0x5850b7[_0x15ff10(0x406)][_0x15ff10(0x23e)];if(!_0x5ca806)return;const {pivotTableConfig:_0x39aee6}=_0x5ca806,_0x5c1363=this[_0x15ff10(0x379)]['getPivotTableInstance'](_0x1b9238),_0x6e4ea6=this[_0x15ff10(0x379)][_0x15ff10(0x2ef)](_0x493cc4,_0x5174d6,_0x1b9238);if(!_0x5c1363||!_0x6e4ea6)return;_0x5c1363[_0x15ff10(0x25c)](),_0x4f27ce(_0x5c1363,_0x39aee6);const _0x4352df=_0x5c1363[_0x15ff10(0x2c4)](),_0x5f8f98=_0x5c1363['query']()[_0x15ff10(0x314)](),_0x493e90=_0x5c1363[_0x15ff10(0x36a)]();_0x5dac21[_0x15ff10(0x23e)]={'view':_0x5f8f98,'isEmpty':_0x4352df,'pivotTableConfig':{..._0x6e4ea6,'fieldsConfig':_0x5c1363['toJSON']()},'changesets':_0x493e90};}break;case _0x34f406[_0x15ff10(0x3bd)]:{const _0xa7e918=_0x5850b7[_0x15ff10(0x406)][_0x15ff10(0x3f2)];if(!_0xa7e918)return;const _0xa57a71=this[_0x15ff10(0x379)][_0x15ff10(0x354)](_0x1b9238),_0x58f5d9=this[_0x15ff10(0x379)][_0x15ff10(0x2ef)](_0x493cc4,_0x5174d6,_0x1b9238);if(!_0xa57a71||!_0x58f5d9)return;_0xa57a71[_0x15ff10(0x25c)](),_0xc24439(_0xa57a71,_0xa7e918[_0x15ff10(0x435)]);const _0x549426=_0xa57a71['query']()['toJSON'](),_0x15d30b=_0xa57a71['endCollectChangeset']();_0x5dac21[_0x15ff10(0x3f2)]={'view':_0x549426,'isEmpty':!0x0,'pivotTableConfig':{..._0x58f5d9,'fieldsConfig':_0xa57a71[_0x15ff10(0x314)]()},'changesets':_0x15d30b};}break;case _0x34f406['AddPivotTableWithConfig']:{const _0x5165de=_0x5850b7['params'][_0x15ff10(0x3c9)];if(!_0x5165de)return;const _0x3adc53=_0x5165de[_0x15ff10(0x4cc)],_0x488976=_0x5165de[_0x15ff10(0x2a1)],{collection:_0x13d66f}=this[_0x15ff10(0x379)]['createCollectionWithDataRange']({'unitId':_0x3adc53['unitId'],'sheetName':_0x3adc53[_0x15ff10(0x254)],'subUnitId':_0x3adc53[_0x15ff10(0x239)],'range':_0x3adc53[_0x15ff10(0x1c8)]}),_0x5dbf83=new _0x3ccc66[(_0x15ff10(0x3a4))](_0x13d66f,void 0x0,_0x488976),_0x3043d3=_0x13d66f[_0x15ff10(0x2d3)](),{rows:_0x2248b8,columns:_0x493548,filters:_0x1a28ba,values:_0x4c8d78}=_0x5165de[_0x15ff10(0x40e)];_0x5dbf83['startCollectChangeset']();for(const {field:_0x257af8,selectedItems:_0x57f891}of _0x2248b8||[]){const _0x5e09d1=_0x3043d3[_0x257af8];if(_0x5e09d1){const _0x524eac=_0x5dbf83[_0x15ff10(0x4d2)](_0x5e09d1,_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x321)]);_0x57f891&&_0x524eac&&_0x5dbf83['setLabelFilterInfo'](_0x524eac[_0x15ff10(0x204)](),{'type':_0x3ccc66[_0x15ff10(0x3a5)][_0x15ff10(0x486)],'list':_0x57f891,'isAll':!0x1});}}for(const {field:_0x23c774,selectedItems:_0x2f759b}of _0x493548||[]){const _0x40aab9=_0x3043d3[_0x23c774];if(_0x40aab9){const _0x3ab207=_0x5dbf83['addFieldWithSourceId'](_0x40aab9,_0x3ccc66[_0x15ff10(0x41f)]['Column']);_0x2f759b&&_0x3ab207&&_0x5dbf83[_0x15ff10(0x360)](_0x3ab207[_0x15ff10(0x204)](),{'type':_0x3ccc66[_0x15ff10(0x3a5)][_0x15ff10(0x486)],'list':_0x2f759b,'isAll':!0x1});}}for(const {field:_0x5c67c0,selectedItems:_0x4bb03d}of _0x1a28ba||[]){const _0x5d6f17=_0x3043d3[_0x5c67c0];if(_0x5d6f17){const _0x1e8410=_0x5dbf83[_0x15ff10(0x4d2)](_0x5d6f17,_0x3ccc66[_0x15ff10(0x41f)][_0x15ff10(0x2e7)]);_0x4bb03d&&_0x1e8410&&_0x5dbf83[_0x15ff10(0x360)](_0x1e8410[_0x15ff10(0x204)](),{'type':_0x3ccc66['PivotFilterTypeEnum'][_0x15ff10(0x486)],'list':_0x4bb03d,'isAll':!0x1});}}for(const {field:_0x232263,subTotalType:_0x3283f7,formatString:_0x4122af}of _0x4c8d78||[]){const _0x1c211c=_0x13d66f[_0x15ff10(0x22e)](_0x3043d3[_0x232263]);if(!_0x1c211c)continue;const _0x31c5bf=_0x3043d3[_0x232263];if(_0x31c5bf){const _0x47da5a=_0x5dbf83['addFieldWithSourceId'](_0x31c5bf,_0x3ccc66[_0x15ff10(0x41f)]['Value']);if(_0x47da5a){if(_0x3283f7!==void 0x0){_0x5dbf83['setSubtotalType'](_0x47da5a[_0x15ff10(0x204)](),_0x3283f7);const _0x1f3db6=this[_0x15ff10(0x379)][_0x15ff10(0x276)](_0x3adc53[_0x15ff10(0x469)])[_0x15ff10(0x4b2)]()||_0x3ccc66['getAutoDisplayName'],_0x167f29=_0x13d66f['getDisplayName'](_0x31c5bf),_0x42021e=_0x1f3db6(_0x167f29,_0x3283f7);_0x5dbf83[_0x15ff10(0x483)](_0x47da5a[_0x15ff10(0x204)](),_0x42021e);}else{if(_0x1c211c){const _0xc8d4bb=_0x1c211c==null?void 0x0:_0x1c211c[_0x15ff10(0x2f7)]();_0x5dbf83[_0x15ff10(0x1b3)](_0x47da5a[_0x15ff10(0x204)](),_0xc8d4bb===_0x3ccc66['PivotDataFieldDataTypeEnum'][_0x15ff10(0x3c7)]?_0x3ccc66['PivotSubtotalTypeEnum']['sum']:_0x3ccc66[_0x15ff10(0x2ad)][_0x15ff10(0x3ad)]);}}_0x4122af&&_0x5dbf83[_0x15ff10(0x380)](_0x47da5a[_0x15ff10(0x204)](),_0x4122af);}}}const _0x20cb8e=_0x5dbf83['query'](),_0x52ff8c=_0x5dbf83['toJSON'](),_0x5da6c3=_0x5dbf83[_0x15ff10(0x2c4)](),_0x2b07bd=_0x5dbf83[_0x15ff10(0x36a)](),_0x17b958=_0x13d66f[_0x15ff10(0x314)]();_0x5dac21[_0x15ff10(0x3c9)]={'view':_0x20cb8e,'fieldsConfig':_0x52ff8c,'collectionConfig':_0x17b958,'isEmpty':_0x5da6c3,'changesets':_0x2b07bd};}break;case _0x34f406[_0x15ff10(0x2a8)]:{const _0x17e192=_0x2c0aff(this[_0x15ff10(0x273)],_0x5850b7);if(!_0x17e192)return;const {range:_0x158a47,sourceSubUnitId:_0x3b713e,sourceUnitId:_0x39ff42,formatMap:_0x4d7bc2,indexes:_0x142f98}=_0x17e192;_0x5dac21[_0x15ff10(0x219)]={'range':_0x158a47,'sourceSubUnitId':_0x3b713e,'sourceUnitId':_0x39ff42,'formatMap':_0x4d7bc2,'indexes':_0x142f98};}break;}this['_commandService'][_0x15ff10(0x35e)](_0x3fe3ea['id'],{'version':_0x5850b7['version'],'result':_0x5dac21},{'onlyLocal':!0x0});}));}['_initPivotTextInfo'](){const _0x160193=_0x58458d;this[_0x160193(0x3c8)](this['_commandService'][_0x160193(0x407)](_0x41126d=>{const _0x5cb9f1=_0x160193;if(_0x41126d['id']!==_0x1dd4e2['id'])return;const _0xf100b9=_0x41126d[_0x5cb9f1(0x406)];return this[_0x5cb9f1(0x379)]['setTextInfo'](_0xf100b9[_0x5cb9f1(0x1dd)]),!0x0;}));}[_0x58458d(0x2cb)](){const _0x5e5980=_0x58458d;this['_sheetsPivotDataSourceModel'][_0x5e5980(0x34e)]['subscribe'](_0x51ab9f=>{const _0x21ab06=_0x5e5980;switch(_0x51ab9f[_0x21ab06(0x423)]){case _0x3ebc51[_0x21ab06(0x46d)]:_0x51ab9f[_0x21ab06(0x2eb)]&&_0x51ab9f[_0x21ab06(0x301)]&&this['handleSourceRangeChange'](_0x51ab9f[_0x21ab06(0x3ec)],_0x51ab9f[_0x21ab06(0x2eb)],_0x51ab9f[_0x21ab06(0x301)]);break;case _0x3ebc51['delete']:{const {unitId:_0x22c996,subUnitId:_0x501b2e,token:_0x279bcb}=_0x51ab9f;_0x22c996&&_0x501b2e&&_0x279bcb&&this[_0x21ab06(0x43a)](_0x22c996,_0x501b2e,_0x279bcb);}break;case _0x3ebc51['update']:{const {token:_0x1d0338,oldSourceRangeInfo:_0x4920b3,dataRangeInfo:_0x1cf251,targetCellInfo:_0x146f15}=_0x51ab9f,{unitId:_0x1679f9,subUnitId:_0x10ac9c}=_0x4920b3||{};_0x1679f9&&_0x10ac9c&&_0x1d0338&&this[_0x21ab06(0x43a)](_0x1679f9,_0x10ac9c,_0x1d0338),_0x1cf251&&_0x146f15&&this[_0x21ab06(0x481)](_0x1d0338,_0x1cf251,_0x146f15);}break;}});}[_0x58458d(0x1e5)](){const _0x1d6509=_0x58458d;this['_sheetsPivotDataSourceModel']['fieldsCollectionChange$'][_0x1d6509(0x320)](_0xd70c87=>{const _0x519fc1=_0x1d6509;Object[_0x519fc1(0x302)](_0xd70c87)[_0x519fc1(0x466)](_0x4517b1=>{const _0x2e2c77=_0x519fc1,_0x420341=this[_0x2e2c77(0x379)][_0x2e2c77(0x3ab)](_0x4517b1);if(_0x420341){const _0x56b1cf=this[_0x2e2c77(0x379)]['getPivotTableConfig'](_0x420341==null?void 0x0:_0x420341[_0x2e2c77(0x469)],_0x420341==null?void 0x0:_0x420341[_0x2e2c77(0x239)],_0x4517b1);_0x56b1cf&&(this[_0x2e2c77(0x481)](_0x4517b1,_0x56b1cf[_0x2e2c77(0x4cc)],_0x56b1cf['targetCellInfo']),this['triggerDirtyFeature']([{'unitId':_0x420341[_0x2e2c77(0x469)],'subUnitId':_0x420341[_0x2e2c77(0x239)],'token':_0x4517b1}]));}});});}[_0x58458d(0x267)](){const _0x1452d9=_0x58458d;this[_0x1452d9(0x379)][_0x1452d9(0x2ce)][_0x1452d9(0x320)](_0x275531=>{const _0x28099e=_0x1452d9,{unitId:_0x2bc033,subUnitId:_0x1814fc,pivotTableId:_0x37f8d3}=_0x275531;_0x2bc033&&_0x1814fc&&_0x37f8d3&&this[_0x28099e(0x2aa)]([{'unitId':_0x2bc033,'subUnitId':_0x1814fc,'token':_0x37f8d3}]);});}[_0x58458d(0x2aa)](_0x5f09a6){const _0x11abad=_0x58458d,_0x88ba3b={};_0x5f09a6[_0x11abad(0x466)](_0x1dbf8a=>{var _0x1b25b3,_0x4af409;const {unitId:_0x1b59eb,subUnitId:_0x4b27eb,token:_0x479298}=_0x1dbf8a;_0x88ba3b[_0x1b59eb]=(_0x1b25b3=_0x88ba3b[_0x1b59eb])!=null?_0x1b25b3:{},_0x88ba3b[_0x1b59eb][_0x4b27eb]=(_0x4af409=_0x88ba3b[_0x1b59eb][_0x4b27eb])!=null?_0x4af409:{},_0x88ba3b[_0x1b59eb][_0x4b27eb][_0x479298]=!0x0;}),this['_commandService'][_0x11abad(0x35e)](_0x59502f['id'],_0x88ba3b);}[_0x58458d(0x43a)](_0x3be652,_0x2bfa83,_0x17ed9e){const _0x2dfe7b=_0x58458d;this[_0x2dfe7b(0x4c5)][_0x2dfe7b(0x332)](_0x3be652,_0x2bfa83,[_0x17ed9e]);}[_0x58458d(0x481)](_0xa98ed,_0x1f4503,_0x39cb7d){const _0x4ecf21=_0x58458d,{unitId:_0x3240eb,subUnitId:_0x40f708}=_0x1f4503;this[_0x4ecf21(0x4c5)]['has'](_0x39cb7d[_0x4ecf21(0x469)],_0x39cb7d[_0x4ecf21(0x239)],_0xa98ed)&&this[_0x4ecf21(0x43a)](_0x3240eb,_0x40f708,_0xa98ed);const _0x5a1eaa={'sheetId':_0x40f708,..._0x1f4503};this[_0x4ecf21(0x4c5)]['register'](_0x39cb7d[_0x4ecf21(0x469)],_0x39cb7d[_0x4ecf21(0x239)],_0xa98ed,{'unitId':_0x39cb7d[_0x4ecf21(0x469)],'subUnitId':_0x39cb7d[_0x4ecf21(0x239)],'dependencyRanges':[_0x5a1eaa],'getDirtyData':(_0x12585f,_0x149aa3)=>{const _0x1131de=_0x4ecf21,_0x2e01e8=this[_0x1131de(0x379)],_0x3053fc=_0x2e01e8[_0x1131de(0x3ab)](_0xa98ed);if(!_0x3053fc)return _0x3b6a4e();const {unitId:_0x4cf8a5,subUnitId:_0x2457fe}=_0x3053fc,_0x3bbd25=_0x4d2701(_0x12585f,_0x149aa3,_0x1f4503);if(_0x3bbd25[_0x1131de(0x24e)]>0x0){const _0x4812c0=_0x2e01e8[_0x1131de(0x278)](_0x3240eb,_0xa98ed),_0x223462=_0x4812c0[_0x1131de(0x2d3)](),_0x4b8950=this['getMatrixFromRunTimeData'](_0x1f4503[_0x1131de(0x469)],_0x1f4503['subUnitId'],_0x149aa3),_0x382a2c={},_0x2cb80b=this[_0x1131de(0x379)][_0x1131de(0x276)](_0x4cf8a5)[_0x1131de(0x4b2)]()||_0x3ccc66[_0x1131de(0x345)],_0x12e1ae=[];for(const _0x57a45e of _0x3bbd25){const _0xd9b5ab=_0x57a45e-(_0x1f4503[_0x1131de(0x1c8)]['startColumn']||0x0),_0x5eb1af=_0x223462[_0xd9b5ab];_0x12e1ae[_0x1131de(0x384)](_0x5eb1af),_0x382a2c[_0x5eb1af]=_0x4812c0[_0x1131de(0x22e)](_0x5eb1af)[_0x1131de(0x36c)](),_0x2e01e8[_0x1131de(0x276)](_0x3240eb)[_0x1131de(0x1bc)](_0x5eb1af,_0x1f4503,_0xd9b5ab,_0x4b8950);}_0x4812c0[_0x1131de(0x44b)](_0x12e1ae)['forEach'](_0x106a74=>{const _0xbaeb8c=_0x1131de,[_0x1fce24,_0x407653]=_0x106a74,_0x30063f=_0x4812c0[_0xbaeb8c(0x22e)](_0x1fce24),_0x28db4f=_0x4812c0[_0xbaeb8c(0x22e)](_0x407653);_0x30063f&&_0x28db4f&&_0x30063f[_0xbaeb8c(0x42f)](_0x28db4f);}),_0x4812c0[_0x1131de(0x1d9)]();const _0x3729d9=_0x2e01e8[_0x1131de(0x354)](_0xa98ed);if(_0x3729d9){_0x21f00b(_0x3729d9,_0x382a2c,_0x2cb80b),_0x3729d9[_0x1131de(0x492)](!0x0);const _0x2f7d50=_0x3729d9[_0x1131de(0x369)](),_0x20c771=_0x2e01e8['getPivotTableConfig'](_0x4cf8a5,_0x2457fe,_0xa98ed),_0x1dd5b6=_0x2e01e8[_0x1131de(0x276)](_0x3240eb)[_0x1131de(0x314)]();_0x2e01e8[_0x1131de(0x268)](_0x4cf8a5,_0x2457fe,_0x1d1e60['Set'],_0xa98ed,_0x2f7d50,_0x20c771,_0x1dd5b6,!0x0);}}return this[_0x1131de(0x230)](_0x4cf8a5,_0x2457fe,_0xa98ed);}});}['getMatrixFromRunTimeData'](_0x38a5fe,_0x5b7de9,_0x5cf0d6){var _0x19f18f,_0x228d0e;const {arrayFormulaCellData:_0x485fb2,unitData:_0x8b76dd}=_0x5cf0d6,_0x378513=(_0x19f18f=_0x485fb2==null?void 0x0:_0x485fb2[_0x38a5fe])==null?void 0x0:_0x19f18f[_0x5b7de9],_0x4ba8cb=(_0x228d0e=_0x8b76dd==null?void 0x0:_0x8b76dd[_0x38a5fe])==null?void 0x0:_0x228d0e[_0x5b7de9];return{'arrayFormulaCellDataMatrix':_0x378513,'unitDataMatrix':_0x4ba8cb};}[_0x58458d(0x230)](_0xeb3fb9,_0x25f265,_0x553248){const _0x3bbec6=_0x58458d,_0x5b556a=this[_0x3bbec6(0x379)][_0x3bbec6(0x468)](_0xeb3fb9,_0x25f265,_0x553248),_0x461f3e=[],_0x4bbdcc=new _0x497af0[(_0x3bbec6(0x2a0))]();if(_0x5b556a){const {rangeCache:_0x169324,matrix:_0x2d01a6,oldRangeCache:_0x2e55ad,oldMatrix:_0x44045c}=_0x5b556a,_0x1108f6=_0x478f3c(_0x2e55ad),_0x39e2a9=_0x478f3c(_0x169324);_0x461f3e[_0x3bbec6(0x384)](..._0x39e2a9,..._0x1108f6),_0x44045c&&_0x2e55ad&&_0x1108f6[_0x3bbec6(0x466)](_0x597c50=>{const _0x11f709=_0x3bbec6;for(let _0x5b182a=_0x597c50[_0x11f709(0x280)];_0x5b182a<=_0x597c50['endRow'];_0x5b182a++)for(let _0x18c39a=_0x597c50[_0x11f709(0x274)];_0x18c39a<=_0x597c50[_0x11f709(0x300)];_0x18c39a++)_0x4bbdcc[_0x11f709(0x28a)](_0x5b182a,_0x18c39a);}),_0x2d01a6&&_0x39e2a9&&_0x39e2a9[_0x3bbec6(0x466)](_0x230398=>{const _0x21d6f3=_0x3bbec6;for(let _0x1de9a6=_0x230398[_0x21d6f3(0x280)];_0x1de9a6<=_0x230398[_0x21d6f3(0x33d)];_0x1de9a6++)for(let _0x31e3ab=_0x230398[_0x21d6f3(0x274)];_0x31e3ab<=_0x230398[_0x21d6f3(0x300)];_0x31e3ab++)_0x4bbdcc[_0x21d6f3(0x412)](_0x1de9a6,_0x31e3ab,_0x2d01a6[_0x21d6f3(0x323)](_0x1de9a6,_0x31e3ab));});}const _0x3c3632={};return _0x3c3632[_0xeb3fb9]={[_0x25f265]:_0x1549c8(_0x461f3e)},{'runtimeCellData':{[_0xeb3fb9]:{[_0x25f265]:_0x4bbdcc}},'dirtyRanges':_0x3c3632};}[_0x58458d(0x222)](){}};_0x445ddd=_0x345779([_0x30fd5a(0x0,_0x497af0[_0x58458d(0x41d)](_0x38ffc1['SheetsPivotDataSourceModel'])),_0x30fd5a(0x1,_0x497af0[_0x58458d(0x35f)]),_0x30fd5a(0x2,_0x497af0['Inject'](_0x1fe373[_0x58458d(0x2b0)])),_0x30fd5a(0x3,_0x497af0['Inject'](_0x497af0[_0x58458d(0x231)])),_0x30fd5a(0x4,_0x497af0['Inject'](_0x1fe373[_0x58458d(0x414)])),_0x30fd5a(0x5,_0x497af0['Inject'](_0x497af0[_0x58458d(0x450)]))],_0x445ddd);var _0x1101d5=Object[_0x58458d(0x1f7)],_0x419ea5=(_0x53def3,_0x544e85,_0x5b6677,_0x3f776f)=>{const _0x3e9d72=_0x58458d;for(var _0x22cbf9=_0x3f776f>0x1?void 0x0:_0x3f776f?_0x1101d5(_0x544e85,_0x5b6677):_0x544e85,_0x453d38=_0x53def3[_0x3e9d72(0x24e)]-0x1,_0x475154;_0x453d38>=0x0;_0x453d38--)(_0x475154=_0x53def3[_0x453d38])&&(_0x22cbf9=_0x475154(_0x22cbf9)||_0x22cbf9);return _0x22cbf9;},_0x5cdfb7=(_0x455304,_0x5a7fcf)=>(_0x37a092,_0x446091)=>_0x5a7fcf(_0x37a092,_0x446091,_0x455304);let _0x250bb2=class extends _0x497af0['Disposable']{constructor(_0x1ec8e0,_0x54035b,_0x594348,_0x1b26bb){const _0x5ca23f=_0x58458d;super(),_0x5ebdc4(this,_0x5ca23f(0x2c9),new _0x497af0[(_0x5ca23f(0x2f6))]()),(this[_0x5ca23f(0x1ff)]=_0x1ec8e0,this[_0x5ca23f(0x49b)]=_0x54035b,this[_0x5ca23f(0x28e)]=_0x594348,this['_sheetsPivotTableConfigModel']=_0x1b26bb,this['_initClearSelectionCommandInterceptor']());}[_0x58458d(0x1c0)](){const _0x358d10=_0x58458d;this[_0x358d10(0x3c8)](this[_0x358d10(0x49b)]['interceptCommand']({'getMutations':_0x2a274a=>{const _0x1e3935=_0x358d10;if(_0x2a274a['id']===_0x5c4707[_0x1e3935(0x37e)]['id']||_0x2a274a['id']===_0x5c4707['ClearSelectionAllCommand']['id']){const _0x403574=[],_0x111f1c=[],_0x269da9=this['_sheetsSelectionsService']['getCurrentSelections']()['map'](_0x264658=>_0x264658[_0x1e3935(0x1c8)]),_0x3a5935=_0x5c4707[_0x1e3935(0x409)](this[_0x1e3935(0x1ff)]);if(!_0x3a5935)return{'redos':[],'undos':[]};const {unitId:_0x5b8eea,subUnitId:_0x4e8249}=_0x3a5935,_0x20534e={},_0x3b08e1=this['_sheetsPivotTableConfigModel'][_0x1e3935(0x1d4)](_0x5b8eea,_0x4e8249);if(_0x3b08e1!=null&&_0x3b08e1[_0x1e3935(0x20f)])for(const [_0x3f0250,_0x28b64d]of _0x3b08e1){const {unitId:_0x3cad23,subUnitId:_0x26282c,row:_0x5d9756,col:_0x468719}=_0x28b64d[_0x1e3935(0x301)];_0x3cad23===_0x3a5935[_0x1e3935(0x469)]&&_0x26282c===_0x3a5935[_0x1e3935(0x239)]&&(_0x20534e[_0x5d9756+'-'+_0x468719]=_0x3f0250);}return _0x269da9&&_0x3a5935&&_0x269da9[_0x1e3935(0x466)](_0x1447e4=>{const _0x4aa359=_0x1e3935;_0x497af0[_0x4aa359(0x2a4)][_0x4aa359(0x21d)](_0x1447e4,(_0x38b1ba,_0x55ad1f)=>{const _0x429d4e=_0x4aa359,_0x2e14aa=_0x38b1ba+'-'+_0x55ad1f;if(_0x20534e[_0x2e14aa]){const _0x5c61e2=_0x20534e[_0x2e14aa];_0x403574['push']({'id':_0x2fb8ee['id'],'params':{'unitId':_0x5b8eea,'subUnitId':_0x4e8249,'pivotTableId':_0x5c61e2}});const _0x5eec14=this[_0x429d4e(0x38d)]['getCollection'](_0x5b8eea,_0x5c61e2),_0x271b7f=this[_0x429d4e(0x38d)][_0x429d4e(0x2ef)](_0x5b8eea,_0x4e8249,_0x5c61e2);_0x111f1c[_0x429d4e(0x384)]({'id':_0x4dac71['id'],'params':{'unitId':_0x5b8eea,'subUnitId':_0x4e8249,'pivotTableId':_0x5c61e2,'pivotTableConfig':_0x271b7f,'collectionConfig':_0x5eec14}});}});}),{'redos':_0x403574,'undos':_0x111f1c};}return{'redos':[],'undos':[]};}}));}};_0x250bb2=_0x419ea5([_0x5cdfb7(0x0,_0x497af0[_0x58458d(0x36d)]),_0x5cdfb7(0x1,_0x497af0[_0x58458d(0x41d)](_0x5c4707[_0x58458d(0x45c)])),_0x5cdfb7(0x2,_0x497af0[_0x58458d(0x41d)](_0x5c4707['SheetsSelectionsService'])),_0x5cdfb7(0x3,_0x497af0[_0x58458d(0x41d)](_0x38ffc1[_0x58458d(0x27d)]))],_0x250bb2);var _0x1b0551=Object[_0x58458d(0x1f7)],_0x533c70=(_0x5e51e2,_0x3c0ea6,_0x4e591c,_0x3a3a75)=>{for(var _0x3de906=_0x3a3a75>0x1?void 0x0:_0x3a3a75?_0x1b0551(_0x3c0ea6,_0x4e591c):_0x3c0ea6,_0x5830fb=_0x5e51e2['length']-0x1,_0x20a71e;_0x5830fb>=0x0;_0x5830fb--)(_0x20a71e=_0x5e51e2[_0x5830fb])&&(_0x3de906=_0x20a71e(_0x3de906)||_0x3de906);return _0x3de906;},_0x43761d=(_0x2f3d7e,_0xc244e0)=>(_0x4fe8fc,_0x112447)=>_0xc244e0(_0x4fe8fc,_0x112447,_0x2f3d7e);let _0xf93fbd=class extends _0x497af0[_0x58458d(0x28c)]{constructor(_0x1df13f,_0x58dbbd,_0x421c68,_0x1fe133,_0x330806,_0x5d85b2){const _0xa99e5d=_0x58458d;super(),this[_0xa99e5d(0x339)]=_0x1df13f,this[_0xa99e5d(0x49b)]=_0x58dbbd,this[_0xa99e5d(0x273)]=_0x421c68,this[_0xa99e5d(0x1ff)]=_0x1fe133,this[_0xa99e5d(0x38d)]=_0x330806,this[_0xa99e5d(0x328)]=_0x5d85b2,this[_0xa99e5d(0x1c2)]();}[_0x58458d(0x4aa)](_0x35b120,_0x4a45d1,_0x4d2977){const _0x10795f=_0x58458d,{pageView:_0x4a1704,cornerView:_0x829276,rowView:_0x3165c1,colView:_0x4a6314,dataView:_0xa82e59}=_0x4a45d1,_0x319fb0=_0x35b120;let _0x44f377;if(_0x4d2977)_0x44f377=[..._0x2fc32a(_0x319fb0)];else{const _0x49329f=_0x2ea9fe(_0x319fb0,_0x4a1704,!0x0),_0x471793=_0x4a1704[_0x10795f(0x211)]>=0x0?_0x4a1704['lastRow']+0x1:0x0,_0x33ed12=_0x829276['rowCount'],_0x8c16d7=_0x829276['colCount'],_0xeabed1=_0x49329f[_0x10795f(0x24e)]>0x0?_0x133e7e:0x0,_0x3a0fb9=_0x2ea9fe({'row':_0x319fb0[_0x10795f(0x329)]+_0x471793+_0xeabed1,'col':_0x319fb0['col']},_0x829276,!0x1,!0x1),_0x391dcc=_0x2ea9fe({'row':_0x319fb0[_0x10795f(0x329)]+_0x471793+_0xeabed1+_0x33ed12,'col':_0x319fb0[_0x10795f(0x3e4)]},_0x3165c1,!0x1,!0x0),_0x24b1d9=_0x2ea9fe({'row':_0x319fb0[_0x10795f(0x329)]+_0x471793+_0xeabed1,'col':_0x319fb0['col']+_0x8c16d7},_0x4a6314,!0x1,!0x0),_0x53f9b4=_0x2ea9fe({'row':_0x319fb0[_0x10795f(0x329)]+_0x471793+_0xeabed1+_0x33ed12,'col':_0x319fb0['col']+_0x8c16d7},_0xa82e59,!0x1,!0x0);_0x44f377=[..._0x49329f,..._0x3a0fb9,..._0x391dcc,..._0x24b1d9,..._0x53f9b4];}return _0x44f377;}[_0x58458d(0x1c2)](){const _0x12f62b=_0x58458d;this[_0x12f62b(0x3c8)](this[_0x12f62b(0x328)][_0x12f62b(0x472)][_0x12f62b(0x46c)](this[_0x12f62b(0x328)]['interceptor'][_0x12f62b(0x42b)]()[_0x12f62b(0x258)],{'handler':(_0x56912c,_0xb0da1f)=>{const _0x2b1cf1=_0x12f62b,{cellInfo:_0x32b187,view:_0x555420,isEmpty:_0xc6a053}=_0xb0da1f,_0x9540be=_0x32b187,{unitId:_0x135b05,subUnitId:_0x48ff1d}=_0x9540be,_0x437d40=this[_0x2b1cf1(0x4aa)](_0x32b187,_0x555420,_0xc6a053),_0x2162bb=this['_sheetInterceptorService'][_0x2b1cf1(0x47d)]({'unitId':_0x135b05,'subUnitId':_0x48ff1d,'ranges':_0x437d40}),_0xc86009=_0x4d8ed2(this['_injector'],_0x135b05,_0x48ff1d,_0x437d40);_0xc86009[_0x2b1cf1(0x208)]&&(_0x2162bb[_0x2b1cf1(0x44a)][_0x2b1cf1(0x384)](_0xc86009[_0x2b1cf1(0x3d0)]),_0x2162bb[_0x2b1cf1(0x44f)]['push'](_0xc86009[_0x2b1cf1(0x2bc)]));const _0x24c3c3=this[_0x2b1cf1(0x289)](_0x555420,_0x32b187);return _0x2162bb[_0x2b1cf1(0x44a)][_0x2b1cf1(0x384)](..._0x24c3c3[_0x2b1cf1(0x44a)]),_0x2162bb[_0x2b1cf1(0x44f)][_0x2b1cf1(0x384)](..._0x24c3c3['undos']),{'redos':_0x2162bb['redos'],'undos':_0x2162bb[_0x2b1cf1(0x44f)]};}}));}[_0x58458d(0x289)](_0x2e6655,_0x44ec86){const _0x514971=_0x58458d,{col:_0x47f0bb,unitId:_0x47c502,subUnitId:_0x5cd0c5}=_0x44ec86,_0x3a23e9=[],_0x2fa967=[],_0x485768=_0x5c4707[_0x514971(0x409)](this['_univerInstanceService'],{'unitId':_0x47c502,'subUnitId':_0x5cd0c5});if(!_0x44ec86||!_0x2e6655||!_0x485768)return{'undos':_0x2fa967,'redos':_0x3a23e9};const _0x23d87b=this[_0x514971(0x38d)]['getTextInfo'](),{colView:_0x1a68a2,dataView:_0x560068,cornerView:_0x4f0146,rowView:_0x3facf9,formatMap:_0x2d4f4f}=_0x2e6655,_0x385c74=_0x239bef(_0x1a68a2,_0x23d87b,!0x0,_0x2d4f4f),_0x5c8e8e=_0x239bef(_0x3facf9,_0x23d87b,!0x1,_0x2d4f4f),_0x48f7a7=_0x427960(_0x560068),_0x437768=_0x5d6d87(_0x4f0146),{worksheet:_0x1d9a85}=_0x485768;if(typeof window<'u'&&window['document']){const _0x4f3c17=_0x4257a0[_0x514971(0x3c1)]({..._0x14f4ab[_0x514971(0x368)]}),_0x4f422c=_0x4257a0[_0x514971(0x49d)][_0x514971(0x47e)](_0x385c74,_0x4f3c17)['width']+0x10,_0x3bf060=_0x4257a0[_0x514971(0x49d)]['getTextSize'](_0x48f7a7,_0x4f3c17)[_0x514971(0x1d5)],_0x26a1af=Math[_0x514971(0x437)](Math[_0x514971(0x489)](_0x4f422c,_0x3bf060))+0x10,_0x38d537=Math[_0x514971(0x437)](_0x4257a0['FontCache'][_0x514971(0x47e)](_0x5c8e8e,_0x4f3c17)[_0x514971(0x1d5)]),_0x5a9b65=Math[_0x514971(0x437)](_0x4257a0[_0x514971(0x49d)][_0x514971(0x47e)](_0x437768,_0x4f3c17)[_0x514971(0x1d5)]),_0x2afbe6=Math[_0x514971(0x489)](_0x38d537,_0x5a9b65,0x28)+0xc,_0x13f457=_0x1a68a2[_0x514971(0x296)]+_0x4f0146[_0x514971(0x296)],_0xa10378={},_0x1ca237={};for(let _0x432d16=_0x47f0bb;_0x432d16<_0x47f0bb+_0x13f457;_0x432d16++){const _0x39b13f=_0x1d9a85[_0x514971(0x387)](_0x432d16);_0xa10378[_0x432d16]=_0x39b13f,_0x432d16-_0x47f0bb<_0x4f0146[_0x514971(0x296)]?_0x1ca237[_0x432d16-_0x47f0bb]=_0x2afbe6:_0x1ca237[_0x432d16-_0x47f0bb]=_0x26a1af;}_0x3a23e9[_0x514971(0x384)]({'id':_0x5c4707[_0x514971(0x3a8)]['id'],'params':{'subUnitId':_0x5cd0c5,'unitId':_0x47c502,'ranges':[{'startColumn':_0x47f0bb,'endColumn':_0x47f0bb+_0x13f457-0x1,'startRow':0x0,'endRow':_0x1d9a85[_0x514971(0x392)]()-0x1}],'colWidth':_0x1ca237}}),_0x2fa967['push']({'id':_0x5c4707['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x5cd0c5,'unitId':_0x47c502,'ranges':[{'startColumn':_0x47f0bb,'endColumn':_0x47f0bb+_0x13f457-0x1,'startRow':0x0,'endRow':_0x1d9a85[_0x514971(0x392)]()-0x1}],'colWidth':_0xa10378}});}return{'undos':_0x2fa967,'redos':_0x3a23e9};}};_0xf93fbd=_0x533c70([_0x43761d(0x0,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x4d6)])),_0x43761d(0x1,_0x497af0[_0x58458d(0x41d)](_0x5c4707[_0x58458d(0x45c)])),_0x43761d(0x2,_0x497af0['Inject'](_0x497af0[_0x58458d(0x450)])),_0x43761d(0x3,_0x497af0[_0x58458d(0x41d)](_0x497af0['IUniverInstanceService'])),_0x43761d(0x4,_0x497af0['Inject'](_0x38ffc1[_0x58458d(0x27d)])),_0x43761d(0x5,_0x497af0[_0x58458d(0x41d)](_0x38ffc1[_0x58458d(0x3c6)]))],_0xf93fbd);var _0x579395=Object['getOwnPropertyDescriptor'],_0xc88070=(_0x11feee,_0x4cc7b1,_0x3a0193,_0x179fbc)=>{for(var _0x379154=_0x179fbc>0x1?void 0x0:_0x179fbc?_0x579395(_0x4cc7b1,_0x3a0193):_0x4cc7b1,_0x26c48f=_0x11feee['length']-0x1,_0x506f31;_0x26c48f>=0x0;_0x26c48f--)(_0x506f31=_0x11feee[_0x26c48f])&&(_0x379154=_0x506f31(_0x379154)||_0x379154);return _0x379154;},_0x4ca5f8=(_0x3314ae,_0x441142)=>(_0x1eedc7,_0x12c7cf)=>_0x441142(_0x1eedc7,_0x12c7cf,_0x3314ae);let _0x2bb112=class extends _0x497af0[_0x58458d(0x28c)]{constructor(_0x4ece63,_0x4571e1,_0x236170,_0xe94c0,_0x3e3b6b,_0xf2ff0e,_0x844423){const _0x21eb49=_0x58458d;super(),_0x5ebdc4(this,'disposableCollection',new _0x497af0[(_0x21eb49(0x2f6))]()),(this[_0x21eb49(0x273)]=_0x4ece63,this[_0x21eb49(0x3dd)]=_0x4571e1,this[_0x21eb49(0x257)]=_0x236170,this['_univerInstanceService']=_0xe94c0,this['_sheetsPivotTableConfigModel']=_0x3e3b6b,this[_0x21eb49(0x4a5)]=_0xf2ff0e,this['_sheetInterceptorService']=_0x844423,this['_onRefRangeChange']());}[_0x58458d(0x497)](){const _0x5b009b=_0x58458d,_0x6e4ec5=(_0x505a92,_0x2d671d)=>{const _0x48c829=_0x464d,_0x2b0f19=this[_0x48c829(0x1ff)][_0x48c829(0x3db)](_0x497af0[_0x48c829(0x318)][_0x48c829(0x346)]);if(!_0x2b0f19||!(_0x2b0f19==null?void 0x0:_0x2b0f19[_0x48c829(0x2ba)](_0x2d671d)))return;this[_0x48c829(0x2c9)][_0x48c829(0x222)]();const _0x31ea47=_0xed3dd0=>this[_0x48c829(0x269)](_0xed3dd0,_0x505a92,_0x2d671d),_0x58dd4a=this['_sheetsPivotTableConfigModel'][_0x48c829(0x1d4)](_0x505a92,_0x2d671d);if(!(_0x58dd4a!=null&&_0x58dd4a[_0x48c829(0x20f)]))return;Array[_0x48c829(0x47b)](_0x58dd4a[_0x48c829(0x43c)]())[_0x48c829(0x1e9)](_0x40df0e=>{const _0x4db503=_0x48c829,{row:_0x3c0740,col:_0x448bae}=_0x40df0e[_0x4db503(0x301)];return _0x497af0[_0x4db503(0x272)](_0x3c0740,_0x448bae);})[_0x48c829(0x466)](_0x2cc117=>{const _0x206add=_0x48c829;this[_0x206add(0x2c9)][_0x206add(0x46d)](this['_refRangeService'][_0x206add(0x434)](_0x2cc117,_0x31ea47,_0x505a92,_0x2d671d));});},_0x1d3d33=()=>{const _0x1d0f5d=_0x464d,_0x118f89=this['_univerInstanceService'][_0x1d0f5d(0x3db)](_0x497af0[_0x1d0f5d(0x318)]['UNIVER_SHEET']);if(_0x118f89){const _0x1e98c0=_0x118f89[_0x1d0f5d(0x324)]();if(!_0x1e98c0)return;_0x6e4ec5(_0x118f89[_0x1d0f5d(0x389)](),_0x1e98c0[_0x1d0f5d(0x297)]());}};this[_0x5b009b(0x3c8)](this[_0x5b009b(0x257)][_0x5b009b(0x407)](_0x50be29=>{const _0x336bcd=_0x5b009b;if(_0x50be29['id']===_0x5c4707[_0x336bcd(0x298)]['id']){const _0x375a57=_0x50be29['params'],_0x4c719e=_0x375a57[_0x336bcd(0x239)],_0x446cb9=_0x375a57[_0x336bcd(0x469)];if(!_0x4c719e||!_0x446cb9)return;_0x6e4ec5(_0x446cb9,_0x4c719e);}})),this['disposeWithMe'](this[_0x5b009b(0x38d)][_0x5b009b(0x3d8)]['subscribe'](_0x4784fc=>{_0x4784fc&&_0x1d3d33();})),this['disposeWithMe'](this[_0x5b009b(0x38d)][_0x5b009b(0x1fb)][_0x5b009b(0x320)](_0x314146=>{const _0x452050=_0x5b009b,_0x4e5a52=_0x5c4707[_0x452050(0x409)](this[_0x452050(0x1ff)]);if(!_0x4e5a52)return;const {unitId:_0x49ac2a,subUnitId:_0x1ee8b6}=_0x4e5a52,{unitId:_0x416375,subUnitId:_0x3a7c41}=_0x314146;_0x49ac2a!==_0x416375||_0x1ee8b6!==_0x3a7c41||_0x6e4ec5(_0x49ac2a,_0x1ee8b6);})),_0x1d3d33();}['_refRangeHandle'](_0x113e5f,_0x4a5f86,_0x23d199){const _0x8ce1c7=_0x58458d;switch(_0x113e5f['id']){case _0x5c4707[_0x8ce1c7(0x335)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x113e5f[_0x8ce1c7(0x406)],_0x4a5f86,_0x23d199);}return{'redos':[],'undos':[]};}[_0x58458d(0x228)](_0x57dcc7,_0x485200,_0x4b367b){const _0xd03d5d=_0x58458d,{fromRange:_0x43fa5a,toRange:_0x18b8eb}=_0x57dcc7,_0x1af2c4=[],_0x4694fe=[],_0x53bbb1=_0x5c4707['getSheetCommandTarget'](this[_0xd03d5d(0x1ff)]);if(!_0x53bbb1)return{'undos':_0x4694fe,'redos':_0x1af2c4};if(_0x485200!==_0x53bbb1[_0xd03d5d(0x469)]||_0x4b367b!==_0x53bbb1['subUnitId'])return{'undos':_0x4694fe,'redos':_0x1af2c4};const _0x2fef2e=this[_0xd03d5d(0x38d)]['getSubUnitPivotConfigs'](_0x485200,_0x4b367b);if(_0x2fef2e!=null&&_0x2fef2e[_0xd03d5d(0x20f)])for(const [_0x3b13d6,_0x17d3ed]of _0x2fef2e){const {unitId:_0x3c4a47,subUnitId:_0x59fdcf,row:_0x598918,col:_0x55b07d}=_0x17d3ed[_0xd03d5d(0x301)];if(_0x3c4a47===_0x53bbb1[_0xd03d5d(0x469)]&&_0x59fdcf===_0x53bbb1[_0xd03d5d(0x239)]){const _0x2a2c21=_0x497af0[_0xd03d5d(0x272)](_0x598918,_0x55b07d);if(_0x497af0[_0xd03d5d(0x388)][_0xd03d5d(0x36b)](_0x2a2c21,_0x43fa5a)){const _0x2337aa=_0x598918-_0x43fa5a[_0xd03d5d(0x280)],_0x48974d=_0x55b07d-_0x43fa5a[_0xd03d5d(0x274)],_0x22c0db={'row':_0x18b8eb[_0xd03d5d(0x280)]+_0x2337aa,'col':_0x18b8eb[_0xd03d5d(0x274)]+_0x48974d};_0x1af2c4[_0xd03d5d(0x384)]({'id':_0x152ac4['id'],'params':{'unitId':_0x3c4a47,'subUnitId':_0x59fdcf,'pivotTableId':_0x3b13d6,'targetCellPosition':_0x22c0db}}),_0x4694fe[_0xd03d5d(0x384)]({'id':_0x152ac4['id'],'params':{'unitId':_0x3c4a47,'subUnitId':_0x59fdcf,'pivotTableId':_0x3b13d6,'targetCellPosition':{'row':_0x598918,'col':_0x55b07d}}});const _0xefd014=_0x22c0db[_0xd03d5d(0x329)]-_0x598918,_0x225feb=_0x22c0db[_0xd03d5d(0x3e4)]-_0x55b07d,_0xd36dc0=[],_0x13f4d1=this['_sheetsPivotTableAdaptorModel'][_0xd03d5d(0x209)](_0x3c4a47,_0x59fdcf,_0x3b13d6),_0x2be7ad=_0x13f4d1==null?void 0x0:_0x13f4d1[_0xd03d5d(0x260)];if(_0x2be7ad){Object[_0xd03d5d(0x302)](_0x2be7ad)[_0xd03d5d(0x466)](_0xde2457=>{_0x2be7ad[_0xde2457]['forEach'](_0x333664=>{const _0xc5cd1e=_0x464d,_0x424e19={..._0x333664};_0x424e19[_0xc5cd1e(0x280)]=_0x333664[_0xc5cd1e(0x280)]+_0xefd014,_0x424e19[_0xc5cd1e(0x33d)]=_0x333664['endRow']+_0xefd014,_0x424e19[_0xc5cd1e(0x274)]=_0x333664[_0xc5cd1e(0x274)]+_0x225feb,_0x424e19[_0xc5cd1e(0x300)]=_0x333664[_0xc5cd1e(0x300)]+_0x225feb,_0xd36dc0[_0xc5cd1e(0x384)](_0x424e19);});});const _0x29a241=this[_0xd03d5d(0x49b)]['generateMutationsByRanges']({'unitId':_0x3c4a47,'subUnitId':_0x59fdcf,'ranges':_0xd36dc0});_0x1af2c4[_0xd03d5d(0x384)](..._0x29a241[_0xd03d5d(0x44a)]),_0x4694fe[_0xd03d5d(0x384)](..._0x29a241[_0xd03d5d(0x44f)]);const _0x3f4fb9=_0x4d8ed2(this[_0xd03d5d(0x273)],_0x3c4a47,_0x59fdcf,_0xd36dc0);_0x3f4fb9[_0xd03d5d(0x208)]&&(_0x1af2c4['push'](_0x3f4fb9[_0xd03d5d(0x3d0)]),_0x4694fe[_0xd03d5d(0x384)](_0x3f4fb9[_0xd03d5d(0x2bc)]));}}}}return{'redos':_0x1af2c4,'undos':_0x4694fe};}};_0x2bb112=_0xc88070([_0x4ca5f8(0x0,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x450)])),_0x4ca5f8(0x1,_0x497af0[_0x58458d(0x41d)](_0x5c4707[_0x58458d(0x43f)])),_0x4ca5f8(0x2,_0x497af0['ICommandService']),_0x4ca5f8(0x3,_0x497af0[_0x58458d(0x36d)]),_0x4ca5f8(0x4,_0x497af0[_0x58458d(0x41d)](_0x38ffc1['SheetsPivotTableConfigModel'])),_0x4ca5f8(0x5,_0x497af0['Inject'](_0x38ffc1[_0x58458d(0x3dc)])),_0x4ca5f8(0x6,_0x497af0[_0x58458d(0x41d)](_0x5c4707['SheetInterceptorService']))],_0x2bb112);var _0x33027d=Object[_0x58458d(0x1f7)],_0x399f16=(_0x2b91d6,_0x57bcad,_0x50166d,_0x578a55)=>{const _0x58598d=_0x58458d;for(var _0x570001=_0x578a55>0x1?void 0x0:_0x578a55?_0x33027d(_0x57bcad,_0x50166d):_0x57bcad,_0x4fd370=_0x2b91d6[_0x58598d(0x24e)]-0x1,_0x4b7ff1;_0x4fd370>=0x0;_0x4fd370--)(_0x4b7ff1=_0x2b91d6[_0x4fd370])&&(_0x570001=_0x4b7ff1(_0x570001)||_0x570001);return _0x570001;},_0x5a0388=(_0x3b78ec,_0x380da2)=>(_0x504310,_0x415c81)=>_0x380da2(_0x504310,_0x415c81,_0x3b78ec);let _0x1566ac=class extends _0x497af0['Disposable']{constructor(_0x45f854,_0x4b058f){const _0x58e8c6=_0x58458d;super(),this[_0x58e8c6(0x49b)]=_0x45f854,this[_0x58e8c6(0x38d)]=_0x4b058f,this[_0x58e8c6(0x446)]();}[_0x58458d(0x446)](){const _0x1418b1=_0x58458d;this[_0x1418b1(0x3c8)](this[_0x1418b1(0x49b)][_0x1418b1(0x1ba)]({'getMutations':_0x4800c2=>{const _0x570ff3=_0x1418b1;if(_0x4800c2['id']===_0x5c4707['RemoveSheetCommand']['id']){const _0x348c87=[],_0x225ec6=[],_0x132cd5=_0x4800c2[_0x570ff3(0x406)],{unitId:_0x382980,subUnitId:_0xecb2f3}=_0x132cd5;if(!_0x382980||!_0xecb2f3)return{'undos':_0x225ec6,'redos':_0x348c87};const _0x4f56e7=this['_sheetsPivotTableConfigModel'][_0x570ff3(0x1d4)](_0x382980,_0xecb2f3);if(_0x4f56e7!=null&&_0x4f56e7[_0x570ff3(0x20f)])for(const [_0x1ac8d7,_0x3fae1b]of _0x4f56e7){_0x348c87['push']({'id':_0x2fb8ee['id'],'params':{'unitId':_0x382980,'subUnitId':_0xecb2f3,'pivotTableId':_0x1ac8d7}});const _0x440e12={...this[_0x570ff3(0x38d)][_0x570ff3(0x278)](_0x382980,_0x1ac8d7)};_0x225ec6[_0x570ff3(0x384)]({'id':_0x4dac71['id'],'params':{'unitId':_0x382980,'subUnitId':_0xecb2f3,'pivotTableId':_0x1ac8d7,'pivotTableConfig':_0x3fae1b,'collectionConfig':_0x440e12}});}return{'redos':_0x348c87,'undos':_0x225ec6};}return{'redos':[],'undos':[]};}}));}};_0x1566ac=_0x399f16([_0x5a0388(0x0,_0x497af0[_0x58458d(0x41d)](_0x5c4707[_0x58458d(0x45c)])),_0x5a0388(0x1,_0x497af0[_0x58458d(0x41d)](_0x38ffc1[_0x58458d(0x27d)]))],_0x1566ac);var _0x1a6a33=Object[_0x58458d(0x1f7)],_0x4ce033=(_0x5ae08c,_0x362c5a,_0x59580b,_0x561403)=>{const _0xae48f0=_0x58458d;for(var _0x4a6754=_0x561403>0x1?void 0x0:_0x561403?_0x1a6a33(_0x362c5a,_0x59580b):_0x362c5a,_0x453486=_0x5ae08c[_0xae48f0(0x24e)]-0x1,_0x33995a;_0x453486>=0x0;_0x453486--)(_0x33995a=_0x5ae08c[_0x453486])&&(_0x4a6754=_0x33995a(_0x4a6754)||_0x4a6754);return _0x4a6754;},_0x3928a=(_0x1e1bc6,_0x5ec001)=>(_0x2bb84b,_0x5bc087)=>_0x5ec001(_0x2bb84b,_0x5bc087,_0x1e1bc6);let _0x34dcfc=class extends _0x497af0['Disposable']{constructor(_0x48eb96,_0x507f27,_0x4a0d19,_0x2ef22b,_0x108660,_0x910a14){const _0x51f03e=_0x58458d;super(),this['_commandService']=_0x48eb96,this[_0x51f03e(0x1cb)]=_0x507f27,this[_0x51f03e(0x4a5)]=_0x4a0d19,this[_0x51f03e(0x38d)]=_0x2ef22b,this[_0x51f03e(0x1ff)]=_0x108660,this['_activeDirtyManagerService']=_0x910a14,this[_0x51f03e(0x1f5)](),this[_0x51f03e(0x37f)]();}[_0x58458d(0x1f5)](){const _0x216ac5=_0x58458d;this[_0x216ac5(0x3c8)](this[_0x216ac5(0x257)][_0x216ac5(0x407)](_0x758b64=>{const _0x37e1bb=_0x216ac5;if(_0x758b64['id']!==_0x3fe3ea['id'])return;const _0x21b60f=_0x758b64[_0x37e1bb(0x406)];this[_0x37e1bb(0x1cb)][_0x37e1bb(0x347)](_0x21b60f);})),this[_0x216ac5(0x3c8)](this['_commandService'][_0x216ac5(0x407)](_0x229eab=>{const _0x3f724f=_0x216ac5;if(_0x229eab['id']===_0x2489ce['id']){const _0x5685d1=_0x229eab[_0x3f724f(0x406)];if(_0x5685d1){const {unitId:_0x4d2194,subUnitId:_0x3e7273,oldSubUnitId:_0x3162a1,pivotTableId:_0x41b835,pivotTableConfig:_0x2a67b9,collectionConfig:_0x21d1b7}=_0x5685d1;this[_0x3f724f(0x38d)]['updateConfigCache'](_0x4d2194,_0x3162a1,_0x5685d1[_0x3f724f(0x2a1)],null),this[_0x3f724f(0x38d)][_0x3f724f(0x3a9)](_0x4d2194,_0x3e7273,_0x41b835,_0x2a67b9),this[_0x3f724f(0x38d)][_0x3f724f(0x4d0)](_0x4d2194,_0x21d1b7);}}})),this[_0x216ac5(0x3c8)](this[_0x216ac5(0x257)][_0x216ac5(0x407)](_0x7bcabc=>{const _0x4ad188=_0x216ac5;if(_0x7bcabc['id']!==_0x460118['id'])return;const _0x18e1bc=_0x5c4707[_0x4ad188(0x409)](this['_univerInstanceService']);if(!_0x18e1bc)return;const {unitId:_0x4369ba,subUnitId:_0x2f6444}=_0x18e1bc,_0x55275d=_0x7bcabc[_0x4ad188(0x406)];if(_0x55275d['collectionConfig']&&Object[_0x4ad188(0x302)](_0x55275d[_0x4ad188(0x2b6)])[_0x4ad188(0x466)](_0x590a09=>{const _0x51d06b=_0x4ad188;var _0x321a6e;(_0x321a6e=_0x55275d['collectionConfig'])!=null&&_0x321a6e[_0x590a09]&&this[_0x51d06b(0x38d)][_0x51d06b(0x4d0)](_0x590a09,_0x55275d[_0x51d06b(0x2b6)][_0x590a09]);}),_0x55275d['single']){const _0x27b167=_0x55275d[_0x4ad188(0x453)],{unitId:_0x2a803a,subUnitId:_0x548305,view:_0x1b5deb,pivotTableId:_0x32e21a,type:_0x3bd19d,pivotConfig:_0x23fc3c}=_0x27b167;if(_0x3bd19d===_0x1d1e60[_0x4ad188(0x312)])this[_0x4ad188(0x4a5)][_0x4ad188(0x295)]({'unitId':_0x2a803a,'subUnitId':_0x548305,'pivotTableId':_0x32e21a,'type':_0x3bd19d}),this[_0x4ad188(0x38d)][_0x4ad188(0x3a9)](_0x2a803a,_0x548305,_0x32e21a,null);else{const _0x49518f=new _0x3ccc66['PivotView']();_0x49518f[_0x4ad188(0x201)](_0x1b5deb),this[_0x4ad188(0x38d)][_0x4ad188(0x3a9)](_0x2a803a,_0x548305,_0x32e21a,_0x23fc3c),this[_0x4ad188(0x4a5)][_0x4ad188(0x295)]({'unitId':_0x2a803a,'subUnitId':_0x548305,'pivotTableId':_0x32e21a,'type':_0x3bd19d,'view':_0x49518f}),this['_sheetsPivotTableAdaptorModel']['updateRenderCache']({'unitId':_0x2a803a,'subUnitId':_0x548305,'view':_0x49518f,'pivotTableId':_0x32e21a,'type':_0x3bd19d});}}else _0x55275d[_0x4ad188(0x4d8)]&&(_0x55275d[_0x4ad188(0x4d8)]['forEach'](_0x10fd0f=>{const _0x52001d=_0x4ad188,{unitId:_0x51d3f8,subUnitId:_0xfecc23,view:_0xcf9f68,pivotTableId:_0x103c75,type:_0x5eb113,pivotConfig:_0x1b8f95}=_0x10fd0f,_0x496515=new _0x3ccc66[(_0x52001d(0x2ff))]();_0x496515[_0x52001d(0x201)](_0xcf9f68),this[_0x52001d(0x38d)][_0x52001d(0x3a9)](_0x51d3f8,_0xfecc23,_0x103c75,_0x1b8f95),this[_0x52001d(0x4a5)][_0x52001d(0x20e)]({'unitId':_0x51d3f8,'subUnitId':_0xfecc23,'view':_0x496515,'pivotTableId':_0x103c75,'type':_0x5eb113});}),this[_0x4ad188(0x38d)][_0x4ad188(0x357)]());this[_0x4ad188(0x4a5)][_0x4ad188(0x4b4)](_0x4369ba,_0x2f6444);}));}[_0x58458d(0x37f)](){const _0x31f3fc=_0x58458d;this[_0x31f3fc(0x233)][_0x31f3fc(0x241)](_0x59502f['id'],{'commandId':_0x59502f['id'],'getDirtyData'(_0x294b07){return{'dirtyUnitFeatureMap':_0x294b07['params']};}});}};_0x34dcfc=_0x4ce033([_0x3928a(0x0,_0x497af0[_0x58458d(0x41d)](_0x497af0['ICommandService'])),_0x3928a(0x1,_0x497af0[_0x58458d(0x41d)](_0x38ffc1['SheetsPivotRPCService'])),_0x3928a(0x2,_0x497af0['Inject'](_0x38ffc1[_0x58458d(0x3dc)])),_0x3928a(0x3,_0x497af0[_0x58458d(0x41d)](_0x38ffc1['SheetsPivotTableConfigModel'])),_0x3928a(0x4,_0x497af0['Inject'](_0x497af0[_0x58458d(0x36d)])),_0x3928a(0x5,_0x1fe373['IActiveDirtyManagerService'])],_0x34dcfc);var _0x44de77=Object[_0x58458d(0x43b)],_0x1ca2c6=Object[_0x58458d(0x1f7)],_0x4d6cdc=(_0x283d30,_0x5428ab,_0x562b12)=>_0x5428ab in _0x283d30?_0x44de77(_0x283d30,_0x5428ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x562b12}):_0x283d30[_0x5428ab]=_0x562b12,_0x2af5a7=(_0x17568a,_0x53e812,_0x5bec7a,_0x5a89f7)=>{const _0x277e2a=_0x58458d;for(var _0x45262e=_0x5a89f7>0x1?void 0x0:_0x5a89f7?_0x1ca2c6(_0x53e812,_0x5bec7a):_0x53e812,_0xfce3f2=_0x17568a[_0x277e2a(0x24e)]-0x1,_0x249a1c;_0xfce3f2>=0x0;_0xfce3f2--)(_0x249a1c=_0x17568a[_0xfce3f2])&&(_0x45262e=_0x249a1c(_0x45262e)||_0x45262e);return _0x45262e;},_0xe56a53=(_0x5df299,_0x521cd1)=>(_0x5ee4c0,_0x4c96a0)=>_0x521cd1(_0x5ee4c0,_0x4c96a0,_0x5df299),_0x39403f=(_0x5cb827,_0x1c9544,_0x59abfc)=>_0x4d6cdc(_0x5cb827,typeof _0x1c9544!=_0x58458d(0x306)?_0x1c9544+'':_0x1c9544,_0x59abfc);_0x38ffc1[_0x58458d(0x206)]=class extends _0x497af0[_0x58458d(0x477)]{constructor(_0x16071e=_0x174cc1,_0x417488,_0x376054,_0x4dd229,_0x533073){const _0x34c48d=_0x58458d;super(),this[_0x34c48d(0x4cf)]=_0x16071e,this[_0x34c48d(0x273)]=_0x417488,this[_0x34c48d(0x257)]=_0x376054,this[_0x34c48d(0x29f)]=_0x4dd229,this[_0x34c48d(0x3d3)]=_0x533073;const {..._0x48b2d8}=_0x497af0[_0x34c48d(0x240)]({},_0x174cc1,this[_0x34c48d(0x4cf)]);this[_0x34c48d(0x29f)][_0x34c48d(0x48a)](_0x36aea4,_0x48b2d8),this[_0x34c48d(0x2de)](),this['_initConfig']();}[_0x58458d(0x224)](){const _0x248aae=_0x58458d;var _0x1b43a5;const _0x352e84=(_0x1b43a5=this['_config'])==null?void 0x0:_0x1b43a5['notExecuteFormula'];this['_configService'][_0x248aae(0x48a)](_0x3213d0,_0x352e84===!0x0);}['onStarting'](){const _0x1ad922=_0x58458d;var _0xa42d34;let _0xd7a553=[];const _0x28a108=(_0xa42d34=this[_0x1ad922(0x4cf)])==null?void 0x0:_0xa42d34[_0x1ad922(0x3cc)];_0x28a108===!0x0?_0xd7a553=[[_0x38ffc1[_0x1ad922(0x3c6)]],[_0x38ffc1[_0x1ad922(0x39f)]],[_0x34dcfc],[_0x38ffc1[_0x1ad922(0x3dc)]],[_0x38ffc1[_0x1ad922(0x27d)]],[_0x1566ac],[_0x250bb2],[_0x2bb112],[_0xf93fbd]]:_0x28a108===!0x1?_0xd7a553=[[_0x38ffc1['SheetsPivotDataSourceModel']],[_0x445ddd]]:_0x28a108===void 0x0&&(_0xd7a553=[[_0x38ffc1[_0x1ad922(0x47f)]],[_0x445ddd],[_0x38ffc1[_0x1ad922(0x3c6)]],[_0x38ffc1[_0x1ad922(0x39f)]],[_0x34dcfc],[_0x38ffc1['SheetsPivotTableAdaptorModel']],[_0x38ffc1[_0x1ad922(0x27d)]],[_0x1566ac],[_0x250bb2],[_0x2bb112],[_0xf93fbd]]),_0xd7a553[_0x1ad922(0x466)](_0x15b0d6=>this[_0x1ad922(0x273)][_0x1ad922(0x46d)](_0x15b0d6)),[_0x445ddd,_0x34dcfc,_0x38ffc1[_0x1ad922(0x3c6)],_0x250bb2,_0x1566ac,_0x2bb112,_0xf93fbd][_0x1ad922(0x466)](_0x8b0a85=>{const _0xf79744=_0x1ad922;this[_0xf79744(0x273)][_0xf79744(0x2ec)](_0x8b0a85)&&this['_injector'][_0xf79744(0x263)](_0x8b0a85);});}[_0x58458d(0x2de)](){const _0x18105c=_0x58458d;[_0x5e7cea,_0x12edfd,_0x40f935,_0x25a2f0,_0x140850,_0x394b18,_0x4052a1,_0x1c6788,_0x743714,_0xdcf1e7,_0x1b72a3,_0x4c4a1e,_0x4d2a68,_0x3511ad,_0x4dac71,_0x3ee326,_0x2fb8ee,_0x907d37,_0x4d43ee,_0x39c7c0,_0x193193,_0x30c3c6,_0x1886c8,_0x3531ef,_0x223175,_0x525c75,_0x152ac4,_0x3c24cc,_0x3fe3ea,_0x460118,_0x588963,_0x4eb20d,_0x5607b1,_0x4a9c94,_0x1dd4e2,_0x859d49,_0xb32551,_0x59502f,_0x2489ce,_0x26e26f,_0x261858,_0x2f3c55,_0x2aa50c][_0x18105c(0x466)](_0x4148f9=>{const _0x54f510=_0x18105c;var _0x407f8e;(_0x407f8e=this[_0x54f510(0x3d3)])==null||_0x407f8e[_0x54f510(0x213)](_0x4148f9),this[_0x54f510(0x257)][_0x54f510(0x1c7)](_0x4148f9);});}},_0x39403f(_0x38ffc1[_0x58458d(0x206)],'pluginName',_0x1a8d1f),_0x39403f(_0x38ffc1['UniverSheetsPivotTablePlugin'],_0x58458d(0x423),_0x497af0['UniverInstanceType']['UNIVER_SHEET']),_0x38ffc1[_0x58458d(0x206)]=_0x2af5a7([_0x497af0[_0x58458d(0x218)](_0xacc9cf[_0x58458d(0x3b4)]),_0xe56a53(0x1,_0x497af0[_0x58458d(0x41d)](_0x497af0[_0x58458d(0x450)])),_0xe56a53(0x2,_0x497af0['Inject'](_0x497af0[_0x58458d(0x231)])),_0xe56a53(0x3,_0x497af0[_0x58458d(0x35f)]),_0xe56a53(0x4,_0x497af0[_0x58458d(0x2e1)](_0x5f430b[_0x58458d(0x494)]))],_0x38ffc1['UniverSheetsPivotTablePlugin']),_0x38ffc1[_0x58458d(0x444)]=_0x40f935,_0x38ffc1['AddPivotFieldMutation']=_0x907d37,_0x38ffc1[_0x58458d(0x2d9)]=_0x12edfd,_0x38ffc1[_0x58458d(0x1c6)]=_0x4dac71,_0x38ffc1[_0x58458d(0x4d7)]=_0x5e7cea,_0x38ffc1[_0x58458d(0x3a2)]=_0x133e7e,_0x38ffc1[_0x58458d(0x385)]=_0x2404e8,_0x38ffc1[_0x58458d(0x22f)]=_0x25a2f0,_0x38ffc1[_0x58458d(0x30e)]=_0x4d2a68,_0x38ffc1['PivotDisplayDataType']=_0x34f406,_0x38ffc1[_0x58458d(0x38e)]=_0x3511ad,_0x38ffc1[_0x58458d(0x3ce)]=_0x1d1e60,_0x38ffc1['PivotTableViewDirtyMarkOperation']=_0x59502f,_0x38ffc1[_0x58458d(0x2cc)]=_0xe6815f,_0x38ffc1[_0x58458d(0x1f3)]=_0x140850,_0x38ffc1[_0x58458d(0x34b)]=_0x30c3c6,_0x38ffc1[_0x58458d(0x44c)]=_0x2fb8ee,_0x38ffc1[_0x58458d(0x1fc)]=_0x1886c8,_0x38ffc1[_0x58458d(0x227)]=_0x2aa50c,_0x38ffc1[_0x58458d(0x386)]=_0x36aea4,_0x38ffc1[_0x58458d(0x351)]=_0x1a8d1f,_0x38ffc1[_0x58458d(0x4d9)]=_0x1c6788,_0x38ffc1['SetPivotCollapseMutation']=_0x3531ef,_0x38ffc1[_0x58458d(0x1fa)]=_0x4a9c94,_0x38ffc1['SetPivotFieldsConfigCommand']=_0x2f3c55,_0x38ffc1['SetPivotFilterCommand']=_0xdcf1e7,_0x38ffc1[_0x58458d(0x25d)]=_0x193193,_0x38ffc1[_0x58458d(0x22d)]=_0x525c75,_0x38ffc1[_0x58458d(0x391)]=_0x152ac4,_0x38ffc1[_0x58458d(0x2e0)]=_0x743714,_0x38ffc1[_0x58458d(0x352)]=_0x223175,_0x38ffc1[_0x58458d(0x33a)]=_0x5607b1,_0x38ffc1[_0x58458d(0x381)]=_0x26e26f,_0x38ffc1[_0x58458d(0x2a6)]=_0x261858,_0x38ffc1[_0x58458d(0x451)]=_0x4052a1,_0x38ffc1[_0x58458d(0x291)]=_0x588963,_0x38ffc1[_0x58458d(0x3af)]=_0x1b72a3,_0x38ffc1[_0x58458d(0x3c4)]=_0xb32551,_0x38ffc1[_0x58458d(0x3e7)]=_0x4c4a1e,_0x38ffc1[_0x58458d(0x2cd)]=_0x859d49,_0x38ffc1[_0x58458d(0x3ea)]=_0x394b18,_0x38ffc1[_0x58458d(0x31a)]=_0x4eb20d,_0x38ffc1[_0x58458d(0x2b3)]=_0x1218bd,_0x38ffc1[_0x58458d(0x432)]=_0x47e9f4,_0x38ffc1[_0x58458d(0x4a7)]=_0x14f4ab,_0x38ffc1[_0x58458d(0x394)]=_0x4d8ed2,_0x38ffc1[_0x58458d(0x3e6)]=_0x2ea9fe,_0x38ffc1['getEmptyPivotRanges']=_0x2fc32a,_0x38ffc1[_0x58458d(0x376)]=_0x423719,_0x38ffc1[_0x58458d(0x464)]=_0x30a1dd,_0x38ffc1[_0x58458d(0x316)]=_0x363d3a,_0x38ffc1['getPivotInfoByLicense']=_0x5d64e1,_0x38ffc1[_0x58458d(0x402)]=_0x10514c,_0x38ffc1[_0x58458d(0x419)]=_0x301b46,_0x38ffc1[_0x58458d(0x1ee)]=_0x478f3c,Object['defineProperty'](_0x38ffc1,Symbol['toStringTag'],{'value':_0x58458d(0x3f9)});}));function _0x4e30(){const _0x378314=['pageRanges','notExecuteFormula','cornerRanges','PivotTableOperationEnum','getConfig','setRangeValueRedoMutation','Hour','Year','_dataSyncPrimaryController','toString','sheet.mutation.set-pivot-position','addDirtyPivotTable','SetSheetsFilterRangeMutation','pivotInitCompleted$','isDateValue','PivotCellStyleTypeEnum','getCurrentUnitForType','SheetsPivotTableAdaptorModel','_refRangeService','getSubtotal','generateRandomId','rangeType','BaseGroupField','@univerjs/engine-render','getColCount','col','sheet.command.set-pivot-fields-config','getAdjustRangesPosition','UpdatePivotTableSourceRangeCommand','panel','sheets-pivot.cellDateGroupDisplay.yearQuarter','UpdatePivotValuePositionCommand','dataStream','token','sheet.mutation.remove-pivot-table','NUM','PivotCallbackEnum','PivotMultipleValueId','NotFunction','resetPivotTable','_initLocale','sheet.mutation.set-pivot-option','_globalSubject','createDataFieldId','getFilterInfo','getDataFieldItemInfo','Module','filterFields','getIntersectsPivotTable','MIN_SAFE_INTEGER','sheet.command.reset-pivot-fields-config','ErrorType','removeCollectionImp','refreshData','Values','getPivotTableInfo','SetPivotCollapse','Var\x20of\x20','InsertColMutation','params','onCommandExecuted','SetPivotSort','getSheetCommandTarget','AddPivotTable','valuePosition','value','filter','pivotTableIndexConfig','_pivotConfigChange$','stdDevp','sheets-pivot.emptyPivot.column','setValue','7197516ZaQhEn','GlobalComputingStatusService','minDate','getDisplayName','getFormat','25363404ecQaTm','transFromCellValue','paths','valueFilter','RemovePivotField','Inject','sheets-pivot.emptyPivot.values','PivotTableFiledAreaEnum','limit\x20pivot','uniqueDataFieldName','sheet.mutation.set-pivot-collapse','type','SHEET_PIVOT_IN_MAIN_THREAD','custom','measure','deepClone','sheets-pivot.countName','HourMinute','colHeaderMap','getInterceptPoints','stringify','colRanges','asObservable','refreshGroupField','getFieldPositionInfoById','getSortInfo','canUsePivot','reset','registerRefRange','resetArea','getValueIndex','floor','#e6ebfb','New','removeSourceRangeChange','defineProperty','values','_viewData$','rangeKeyMap','RefRangeService','update','handleMoveRange','includes','setValuePivotFilter','AddPivotFieldCommand','rgb(255,255,255)','_initRemoveSheetCommandInterceptor','forValue','getPivotTableModelConfig','UpdatePivotSource','redos','getGroupFieldsInfoByIds','RemovePivotTableMutation','Expand','contains','undos','Injector','UpdateDateGroupCommand','DEFAULT_WORKSHEET_ROW_COUNT','single','SetPivotFilter','getDataFieldByDataFieldId','getDataFieldId','Grand\x20Total','getSheets','SetPivotSetting','sheets-pivot.dateGroup.yearMonthDate','Tools','SheetInterceptorService','DEFAULT_WORKSHEET_COLUMN_COUNT','NotName','_globalComputingSrv','PivotErrorTypeEnum','sheets-pivot.emptyPivot.filter','sheets-pivot.minName','headerMap','getInsertRowColMutations','getTargetByPivotTableId','forEach','sheets-pivot.subTotal','getViewData','unitId','IUndoRedoService','setCollapse','intercept','add','sideEffectUpdateWorkerCache','_ensurePivotTableMatrixInfo','getRangeKeyList','_collectionConfigModel','interceptor','fieldsConfig','sheet.command.set-pivot-filter','var','Total','Plugin','13824tzDRgn','splice','sheets-pivot.cellDateGroupDisplay.date','from','@univerjs/rpc','generateMutationsByRanges','getTextSize','SheetsPivotDataSourceModel','getOriginFieldId','handleSourceRangeChange','setSourceName','renameField','sheet.command.remove-pivot-field','UniverRpc','ManualFilter','COLUMN','lastCol','max','setConfig','string','removePivotField','NAME','getRangeKey','originalFieldId','_initUnitDisposed','_initSnapshot','setDirty','#eceeff','DataSyncPrimaryController','sheets-pivot.countNumsName','find','_onRefRangeChange','_viewUpdate$','(Blank)','#FFFFFF','_sheetInterceptorService','pushUndoRedo','FontCache','deleteDataField','sheet.mutation.update-date-group','iterateFieldByArea','leafStyle','UniverEngineRender','cornerInfo','839769islcML','_sheetsPivotTableAdaptorModel','object','defaultThemeStyle','originTargetInfo','PivotDateGroupFieldDateTypeEnum','_getPivotAppliedRanges','setPivotFilter','updateConfig','subTotalStyle','fetchThroughAsyncInterceptors','updatePivotTableRangeInfo','data','@univerjs/engine-formula','getAutoDisplayNameFunction','getFieldCountByArea','markDirty','_dataFieldManagerCollection','min','collections','queryDirtyPivotTable','UniverSheetsFilter','isColMultiMeasure','pivotPerformCheck','amd','sheet.mutation.set-pivot-sort-info','_updateModelCache','displayName','UniverEngineFormula','countNums','fromJSON','_initViewModelBySheetInterceptor','result','_featureCalculationManagerService','error','sheet.mutation.set-pivot-field-subtotal-type','_textInfo','sheets-pivot.cellDateGroupDisplay.yearMonth','getUpdateRangeDeleteIds','NORMAL','sourceRangeInfo','removeCollections','level','_config','updateCollectionConfig','_host','addFieldWithSourceId','sheets-pivot.cellDateGroupDisplay.quarter','sheets-pivot.dateGroup.month','rowRanges','LocaleService','AddPivotTableWithConfigCommand','batch','SetPivotCollapseCommand','_initGlobalComputed','cellValue','setSubtotalType','UniverCore','iterateFieldDim','_configVersion$','leftOffset','fieldId','Set','interceptCommand','sheets-pivot.productName','refreshDataField','CellValueType','updateValuePosition','fieldsCollectionChange$','_initClearSelectionCommandInterceptor','some','_initCommandInterceptListener','getLastRow','sheets.tabs.sheet','getNoUsedDataFieldIds','AddPivotTableMutation','registerCommand','range','sequenceExecute','Value','_sheetsPivotRpcService','collapseInfo','exports','getMatrixValue','generateNewSheetName','SetValueFilter','LS_CONFIG_KEY','addDataFieldWithoutUnitInfo','1333170baQCpH','getSubUnitPivotConfigs','width','registerCallbackWithEvent','@univerjs/core','SetSubtotalType','updateAllDisplayName','INTERCEPTOR_POINT','MUTATION','getCellRaw','textInfo','configVersion$','hasOwnProperty','setPivotSort','RenameField','AddField','None','setPivotSetting','_subjectFieldsCollectionChange','rowInfo','Month','updateFieldSourceInfo','map','addRecord','SetSortInfo','getPivotTableMatrixInfo','removeValueFilterInfoByValueFieldId','unionPivotViewRange','name','#b2b2b2','filterId','setName','RemovePivotFieldCommand','_globalComputedStartHelpFunc','_initDataSendListener','sheets-pivot.config','getOwnPropertyDescriptor','collection','rxjs','SetPivotFieldFormatMutation','pivotConfigChange$','RenamePivotFieldMutation','info','updateDirtyPivotTable','_univerInstanceService','InsertSheetMutation','formJSON','set','_pivotTableRangeInfo','getId','colInfo','UniverSheetsPivotTablePlugin','concat','shouldClear','getPivotItemRenderInfoCache','cornerStyle','entries','FieldsCollection','sheets-pivot.dateGroup.quarter','updateRenderCache','size','ptn','lastRow','sheet.mutation.add-group-collection','registerSyncingMutations','#e6ebfa','rgb(240,241,243)','fieldIds','isDateGroupFieldJSON','DependentOn','drillDown','updatePivotTableMatrixInfo','_globalComputedEndHelpFunc','sheet.mutation.update-pivot-table-source-range','foreach','blank','pbt','onQueryStart','adjustSheetCellData','dispose','AddPivotField','_initConfig','rangeKey','options','ResetPivotFieldsConfigCommand','getRefRangeMutationsByMoveRange','AsyncInterceptorManager','new','sheet.command.move-pivot-field','sheet.mutation.get-pivot-data-local','SetPivotOptionMutation','getFieldById','MovePivotFieldCommand','getDirtyInfo','ICommandService','stdDev','_activeDirtyManagerService','UpdateSource','_pivotInitCompleted$','isArray','Column\x20','FORCE_STRING','subUnitId','Existing','UpdateValuePosition','GrandTotal','Max\x20of\x20','setPivotTableConfig','updateRangeKeyMap','merge','register','prefix','valueIndex','tuple','getColumnCount','STRING','PivotTableChangeTypeEnum','getDataFieldByTableId','RemoveSheetsFilterMutation','updateViewData','getSourceName','Product\x20of\x20','excelDateToUnixMilliseconds','length','Collapse','_lifecycleService','addExclusiveRange','Varp\x20of\x20','RemoveSheetMutation','sheetName','isBottomTotal','removePivotTable','_commandService','PIVOT_MUTATION_GENERATE','_markDirty$','removeDataField','broadcastCollectionChange','startCollectChangeset','SetPivotFilterMutation','rowCount','YearMonth','rangesInfo','_model','SetPivotTableConfig','get','sheets-pivot.columnName','sheets-pivot.dateGroup.yearMonth','createInterceptorKey','_subjectViewChange','updateView','_refRangeHandle','Subject','CommandType','MovePivotField','getMonth','setSortInfo','_updateRenderEmptyCache','getHeaderMapItem','CustomCommandExecutionError','cellToRange','_injector','startColumn','1029cpYiue','getDataFieldManager','COMMAND','getCollection','setPivotTable','_ensurePivotTableRangeInfo','_toJSON','generateHexNumber','SheetsPivotTableConfigModel','isValue','_getAutoName','startRow','REF','getPivotTableCellData','SetOptions','1155355PIzSqr','sheet.command.set-pivot-collapse','sheets-pivot.cellDateGroupDisplay.year','sheets-pivot.dateGroup.hour','sheet.mutation.set-pivot-format','getAutoFitColumnsMutations','realDeleteValue','versions','Disposable','Add','_sheetsSelectionsService','getPivotTableIdByCell','removeValueFilterInfo','UpdateFieldPositionMutation','getRangeData','BehaviorSubject','valid','clearRenderCache','colCount','getSheetId','SetWorksheetActiveOperation','getSheetBySheetName','dataFields','getDataFieldByRangeKey','getPivotDirtyViewInfo','updatePivotSource','getMatrix','_configService','ObjectMatrix','pivotTableId','addCollection','_fieldsCollectionChange$','Range','_updatePivotTableInstanceCache','SetPivotValueFilterMutation','_createExclusiveRange','DrillDown','StdDevp\x20of\x20','triggerDirtyFeature','RemoveColMutation','YearQuarter','PivotSubtotalTypeEnum','asyncInterceptor','_initPivotTextInfo','IFeatureCalculationManagerService','getformat','getFullYear','applyChangeSet','createLabelField','@univerjs/sheets','collectionConfig','_pivotTableInstanceCache','BadReference','sheets-pivot.stdDevName','getSheetBySheetId','#f4f4f5','setRangeValueUndoMutation','sheets-pivot.maxName','getLastCol','RemoveField','rowFields','function','sheets-pivot.cellDateGroupDisplay.hourMinute','NUMBER','isEmpty','grandTotal','deleteUnitId','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','_pivotRenderValueMatrixCache','disposableCollection','dataFieldId','_subjectCollectionChange','PositionType','UpdatePivotTableSourceRangeMutation','viewData$','IResourceManagerService','split','sheets-pivot.emptyPivot.row','getDate','getFieldIds','forRow','UniverSheets','getValuePosition','UpdateFieldPosition','InsertSheetUndoMutationFactory','AddPivotTableCommand','Count\x20of\x20','_generateUniqueVersion','fontRenderExtension','sourceName','_initRegisterCommand','Subtotal','SetPivotSortCommand','Optional','sheets-pivot.averageName','sum','dataStyle','_deleteModelCache','areaInfo','Filter','sheet.command.move-pivot-table','sheet.command.add-pivot-field','_deletePivotTableInstanceCache','dataRangeInfo','has','_init','sheet.command.update-pivot-table-source-range','getPivotTableConfig','_ensurePivotItemRenderValueMatrixCache','needSameDeleteModel','updateViewInfo','sheets-pivot.value','YearMonthDate','tableFieldId','DisposableCollection','getFieldDataType','SetRangeValuesMutation','sheet.operation.pivot-table-view-formula-mark-dirty','setRangeKeyMap','UniverProEnginePivot','RANGE_TYPE','node','757743pCSdub','PivotView','endColumn','targetCellInfo','keys','pushComputingStatusSubject','sheets-pivot.dateGroup.monthDate','20MUIvtB','symbol','MoveRangeMutation','sheet.mutation.remove-group-collection','InterceptorEffectEnum','sheets-pivot.cellDateGroupDisplay.minute','isDate','PivotDataFieldDataTypeEnum','SetValuePivotFilter','MovePivotTableCommand','charCodeAt','random','getFieldInfo','Delete','sheet.mutation.rename-pivot-field','toJSON','pageStyle','getPivotCellInfo','getPivotPerformCheck','UniverInstanceType','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','UpdateValuePositionMutation','_pivotRenderInfoCache','subtotal','_resourceManagerService','DateGroupField','dimension','subscribe','Row','sheet.command.add-pivot-table','getValue','getActiveSheet','fields','_viewData','Minute','_sheetsPivotTableService','row','_exclusiveRangeService','return\x20','StdDev\x20of\x20','@univerjs-pro/engine-pivot','workbook\x20is\x20not\x20found','Min\x20of\x20','sheet.mutation.set-pivot-filter','getStyles','remove','AddPivotTableWithConfig','_queryingMap','MoveRangeCommand','delete','sortInfo','InsertRowMutation','_localeService','SetPivotSubtotalTypeMutation','getCellMatrix','sheets-pivot.cellDateGroupDisplay.month','endRow','sheet.mutation.pivot-update-field-source-info','getUnit','updateFieldPosition','movePivotField','sheet.command.set-pivot-sort','filterInfo','getTextInfo','getAutoDisplayName','UNIVER_SHEET','handleAsyncResponse','MAX_SAFE_INTEGER','_requestResolvers','reduce','RemovePivotFieldMutation','getPivotDisplayConfig','isFeatureAuthorizedWithinTime','collectionChange$','initDataRanges','sheets-pivot.varName','SHEET_PIVOT_TABLE_PLUGIN','SetPivotSortMutation','rangeCache','getPivotTableInstance','getSheetFeatureLimit','sheet.mutation.pivot-update-field-position','setPivotInitCompleted','iterateField','rowHeaderMap','createAsyncInterceptorKey','getTableFieldById','bind','onQueryEnd','executeCommand','IConfigService','setLabelFilterInfo','apjiQtnj\x20CNiH5gQtnj(LtiNjSN,\x20gp1LtiqN5)\x20{\x20\x20\x20\x20QH5\x20{\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20LtiNjSNGjanEhHQYHHh5\x20=\x20LtiNjSN.SgLtQ(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20nHtItjJNSShIN\x20=\x20UmBK.ghHSN(hQn1(LtiNjSNGjanEhHQYHHh5[d]));\x20\x20\x20\x20\x20\x20\x20\x20ta\x20(!nHtItjJNSShIN.pC)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20nHtItjJNSShIN.pC\x20=\x20Kp41NH(LtiNjSNGjanEhHQYHHh5[w]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20tSxnHvNH\x20=\x20Q5gNna\x20xnHvNHFLn1hLmingN\x20!==\x20\x27pjCNatjNC\x27\x20&&\x20SNLa\x20tjSQhjiNna\x20xnHvNHFLn1hLmingN;\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20injQN3Q\x20=\x20tSxnHvNH\x20?\x20SNLa\x20:\x207tjCn7;\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x204NSShINxnHC\x20=\x20injQN3Q.__ohSNyw__.ghHSN(LtiNjSNGjanEhHQYHHh5[d]);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x204NSShIN\x20=\x20injQN3Q.__sN3__.SQHtjIta5(4NSShINxnHC);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20StIjhQpHNxnHC\x20=\x20injQN3Q.__ohSNyw__.ghHSN(LtiNjSNGjanEhHQYHHh5[l]);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20StIjhQpHN\x20=\x20injQN3Q.__sN3__.SQHtjIta5(StIjhQpHNxnHC);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20StIjfhLtC\x20=\x20injQN3Q.__XNHta5__(StIjhQpHN,\x204NSShIN,\x20gp1LtiqN5);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20Cn4htj\x20=\x20nHtItjJNSShIN.C4;\x20\x20\x20\x20\x20\x20\x20\x20apjiQtnj\x20tSAn4htjJhQi2tjI(nEhQQNHj,\x20nsnSQ)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20ghQQNHj\x20=\x20nEhQQNHj.HNgLhiN(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x202nSQ\x20=\x20nsnSQ.HNgLhiN(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20ghQQNHjEhHQS\x20=\x20ghQQNHj.SgLtQ(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x202nSQEhHQS\x20=\x202nSQ.SgLtQ(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ta\x20(!ghQQNHj.tjiLpCNS(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HNQpHj\x20ghQQNHj\x20===\x202nSQ;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ta\x20(ghQQNHjEhHQS.LNjIQ2\x20<\x20d\x20||\x20ghQQNHjEhHQS[k]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HNQpHj\x20ahLSN;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20ghQQNHjmpaat3\x20=\x20ghQQNHjEhHQS.SLtiN(r).bntj(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x202nSQmpaat3\x20=\x202nSQEhHQS.SLtiN(-ghQQNHjEhHQS.LNjIQ2\x20+\x20r).bntj(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HNQpHj\x20ghQQNHjmpaat3\x20===\x202nSQmpaat3;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20LNQ\x20Cn4htjfhLtC\x20=\x20(Cn4htj\x20&&\x20Cn4htj.LNjIQ2)\x20?\x20Cn4htj.Sn4N((C4GQN4)\x20=>\x20tSAn4htjJhQi2tjI(C4GQN4,\x20LnihQtnj.2nSQjh4N))\x20:\x20QHpN;\x20\x20\x20\x20\x20\x20\x20\x20ta\x20(LnihQtnj.2nSQjh4N\x20===\x20\x27LnihL2nSQ\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cn4htjfhLtC\x20=\x20QHpN;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20XhLtC\x20=\x20StIjfhLtC\x20&&\x20Cn4htjfhLtC;\x20\x20\x20\x20\x20\x20\x20\x20HNQpHj\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XhLtC,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204NSShIN:\x20nHtItjJNSShIN,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20ihQi2\x20(NHHnH)\x20{\x20\x20\x20\x20\x20\x20\x20\x20HNQpHj\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XhLtC:\x20ahLSN,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204NSShIN:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','setValueFilterInfo','sheets-pivot.cellDateGroupDisplay.hour','column','InterceptorManager','getSubUnitPivotMatrix','addPivotTable','colStyle','query','endCollectChangeset','intersects','getName','IUniverInstanceService','unshift','setPivotCollapse','substring','pivotTableConfigs','sheet.command.update-pivot-value-position','_initPivotDataGetListener','DataField','replace','getFieldListByArea','getFilterFieldIdByIndex','date','_sheetsPivotDataSourceModel','mergeWorksheetSnapshotWithDefault','rowStyle','SetFilterInfo','Panel','ClearSelectionContentCommand','registerDirtyService','setFieldFormat','SetPivotValueFilterCommand','existing','isPrefixValue','push','DEFAULT_PIVOT_NUMBER','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','getColumnWidth','Rectangle','getUnitId','Style','numfmt','_ensurePivotMap','_sheetsPivotTableConfigModel','PivotDrillDownCommand','deleteField','isBaseGroupField','SetPivotPositionMutation','getRowCount','PivotTableValuePositionEnum','generateSetRangeValueMutations','parse','registerPluginResource','CELL_CONTENT','unshiftString','InsertSheetCommand','_collectionChange$','_ensureViewDataMap','getRangeStartEndInfo','dataFieldsCollection','SetRangeValuesUndoMutationFactory','SheetsPivotRPCService','_pivotTableMatrixInfo','getValueFilterInfos','BLANK_ROW_COUNT','setOptions','PivotTable','PivotFilterTypeEnum','PivotViewCellValueTypeEnum','sheet.mutation.pivot-update-value-position','SetWorksheetColWidthMutation','updateConfigCache','#1d32e9','getTargetByPivotId','setRange','count','_ensurePivotItemRenderInfoCache','UpdatePivotFieldSettingCommand','call','getFieldFormat','removeField','addCollectionByJSON','UniverLicensePlugin','Column','prototype','slice','createCollectionWithDataRange','valueFields','markDirty$','UniverProSheetsPivot','addField','ResetPivotTable','next','addPivotField','DIV_BY_ZERO','getFontStyleString','createValueField','SetFieldFormat','UpdatePivotFieldSourceInfoMutation','format','SheetsPivotTableService','number','disposeWithMe','addPivotTableWithConfig','varp'];_0x4e30=function(){return _0x378314;};return _0x4e30();}
1
+ (function(_0x3fd337,_0xa26bfb){const _0x30e0ea=_0x2e3d,_0x307b50=_0x3fd337();while(!![]){try{const _0x2035b3=parseInt(_0x30e0ea(0x149))/0x1*(parseInt(_0x30e0ea(0x3d4))/0x2)+parseInt(_0x30e0ea(0x1ca))/0x3+-parseInt(_0x30e0ea(0x3a0))/0x4+-parseInt(_0x30e0ea(0x3ac))/0x5+parseInt(_0x30e0ea(0x32d))/0x6*(parseInt(_0x30e0ea(0x315))/0x7)+parseInt(_0x30e0ea(0x23c))/0x8+parseInt(_0x30e0ea(0x179))/0x9*(parseInt(_0x30e0ea(0x118))/0xa);if(_0x2035b3===_0xa26bfb)break;else _0x307b50['push'](_0x307b50['shift']());}catch(_0x376043){_0x307b50['push'](_0x307b50['shift']());}}}(_0x4327,0x65eee),function(_0x465608,_0x2e31cf){const _0x2f35b7=_0x2e3d;typeof exports==_0x2f35b7(0x3c5)&&typeof module<'u'?_0x2e31cf(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==_0x2f35b7(0x276)&&define[_0x2f35b7(0x3fd)]?define([_0x2f35b7(0x1c8),_0x2f35b7(0x23b),_0x2f35b7(0x104),_0x2f35b7(0x173),_0x2f35b7(0x284),'rxjs','@univerjs-pro/license',_0x2f35b7(0x209),_0x2f35b7(0x2fc),_0x2f35b7(0x2cb)],_0x2e31cf):(_0x465608=typeof globalThis<'u'?globalThis:_0x465608||self,_0x2e31cf(_0x465608[_0x2f35b7(0x328)]={},_0x465608[_0x2f35b7(0x178)],_0x465608['UniverCore'],_0x465608['UniverEngineFormula'],_0x465608[_0x2f35b7(0x2b9)],_0x465608[_0x2f35b7(0x34d)],_0x465608['UniverProLicense'],_0x465608[_0x2f35b7(0x204)],_0x465608[_0x2f35b7(0x338)],_0x465608[_0x2f35b7(0x1ce)]));}(this,function(_0x3e9a4b,_0x1978cb,_0x71e749,_0x19b6b3,_0x2a18e2,_0x11b8a8,_0x53e420,_0x5b4ef3,_0x5b6293,_0x30b91d){'use strict';const _0x952e9f=_0x2e3d;var _0x329d94=Object[_0x952e9f(0x26e)],_0x537b04=(_0x52b8d8,_0x34d94e,_0xdf6c4e)=>_0x34d94e in _0x52b8d8?_0x329d94(_0x52b8d8,_0x34d94e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdf6c4e}):_0x52b8d8[_0x34d94e]=_0xdf6c4e,_0x59bac0=(_0x2cf1a1,_0x3ed382,_0x392075)=>_0x537b04(_0x2cf1a1,typeof _0x3ed382!=_0x952e9f(0x193)?_0x3ed382+'':_0x3ed382,_0x392075);const _0x1354fd=Number[_0x952e9f(0x346)](0x68833ed2),_0x7261e6=0x10,_0x1a1b40=0x1,_0x510c58=_0x952e9f(0x141),_0x18e791=0x1,_0x1f655b='rgb(240,241,243)',_0x4e5e21=_0x952e9f(0x3af),_0x28b5e4=_0x952e9f(0x304),_0x2d9a0b=_0x952e9f(0x350),_0x32ce49=_0x952e9f(0x350),_0x49380c=_0x952e9f(0x397),_0x3eef65=_0x952e9f(0x20b),_0x2c4591='#FFFFFF',_0x50ab88=_0x952e9f(0x1e2),_0x2f9650=_0x952e9f(0x20b),_0x64004a=_0x952e9f(0x391),_0x48da6e=_0x952e9f(0x268),_0x51cb5e=0xe,_0x267e4c=0x6;var _0x17cb1b=(_0x236ee2=>(_0x236ee2['Existing']=_0x952e9f(0x291),_0x236ee2[_0x952e9f(0x365)]=_0x952e9f(0x1fc),_0x236ee2))(_0x17cb1b||{});const _0x478a78={'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':''}}},_0x5650cd=0x1e,_0x44b194={'b':{'s':0x1,'cl':{'rgb':_0x28b5e4}},'l':{'s':0x1,'cl':{'rgb':_0x28b5e4}},'r':{'s':0x1,'cl':{'rgb':_0x28b5e4}},'t':{'s':0x1,'cl':{'rgb':_0x28b5e4}}},_0x14db19={'bg':{'rgb':_0x1f655b},'ht':0x2,'vt':0x2,'tb':0x1},_0x19a4fc={'bg':{'rgb':_0x4e5e21},'ht':0x2,'vt':0x2,'tb':0x1},_0x4f9185={'rowStyle':{'bg':{'rgb':_0x48da6e},'bd':_0x44b194,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x2f9650},'bd':null,'cl':{'rgb':_0x64004a},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x44b194,'bg':{'rgb':_0x50ab88},'vt':0x2},'cornerStyle':{'bd':_0x44b194,'bg':{'rgb':_0x49380c},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x44b194,'bg':{'rgb':_0x2d9a0b},'vt':0x2},'leafStyle':{'bd':_0x44b194,'bg':{'rgb':_0x32ce49},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x3eef65},'cl':{'rgb':_0x2c4591},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x44b194,'vt':0x2}};function _0x36911b(_0xc4af44,_0x50a8a7,_0x3401a8){const _0x50901b=_0x952e9f,_0x225402=_0xc4af44[_0x50901b(0x3dc)](_0x71e749['LocaleService']),_0x15db8d=_0x3401a8[_0x50901b(0x3d2)]('_');switch(_0x50a8a7){case _0x1978cb['PivotDateGroupFieldDateTypeEnum']['Year']:return _0x225402['t'](_0x50901b(0x15b),..._0x15db8d);case _0x1978cb['PivotDateGroupFieldDateTypeEnum'][_0x50901b(0x176)]:return _0x225402['t']('sheets-pivot.cellDateGroupDisplay.minute',..._0x15db8d);case _0x1978cb['PivotDateGroupFieldDateTypeEnum'][_0x50901b(0x38b)]:return _0x225402['t'](_0x50901b(0x1f6),..._0x15db8d);case _0x1978cb[_0x50901b(0x243)][_0x50901b(0x332)]:return _0x225402['t']('sheets-pivot.cellDateGroupDisplay.hourMinute',..._0x15db8d);case _0x1978cb[_0x50901b(0x243)][_0x50901b(0x2d7)]:return _0x225402['t']('sheets-pivot.cellDateGroupDisplay.date',..._0x15db8d);case _0x1978cb['PivotDateGroupFieldDateTypeEnum'][_0x50901b(0x29b)]:return _0x225402['t'](_0x50901b(0x39c),..._0x15db8d);case _0x1978cb[_0x50901b(0x243)][_0x50901b(0x253)]:return _0x225402['t'](_0x50901b(0x1ac),..._0x15db8d);case _0x1978cb[_0x50901b(0x243)][_0x50901b(0x21c)]:return _0x225402['t'](_0x50901b(0x3cc),..._0x15db8d);case _0x1978cb[_0x50901b(0x243)][_0x50901b(0x198)]:return _0x225402['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x15db8d);case _0x1978cb[_0x50901b(0x243)]['YearQuarter']:return _0x225402['t']('sheets-pivot.cellDateGroupDisplay.yearQuarter',..._0x15db8d);}return'';}const _0x466485=(_0x178371,_0x4dfaa8,_0x44bb79,_0x20c603)=>{const _0x5942b8=_0x952e9f;let _0x59df3f;const _0x1d92d=_0x178371['get'](_0x71e749[_0x5942b8(0x168)])[_0x5942b8(0x137)](_0x71e749[_0x5942b8(0x21f)][_0x5942b8(0xfe)]);if(!_0x1d92d)return null;const _0x338071=_0x1d92d[_0x5942b8(0x3a1)]();let _0x5e8c1c;if(_0x44bb79&&(_0x5e8c1c=_0x338071[_0x5942b8(0x183)](_0x44bb79)),_0x4dfaa8!=null&&_0x4dfaa8['v']||(_0x4dfaa8==null?void 0x0:_0x4dfaa8['v'])===0x0){_0x59df3f||(_0x59df3f={});const _0x4c1db1=_0x422930(_0x4dfaa8['v']);typeof _0x4c1db1==_0x5942b8(0x3d3)?_0x59df3f['t']=_0x71e749[_0x5942b8(0x1c9)][_0x5942b8(0x1d2)]:typeof _0x4c1db1==_0x5942b8(0x282)&&(_0x59df3f['t']=_0x71e749[_0x5942b8(0x1c9)][_0x5942b8(0x1c5)]),_0x59df3f['v']=_0x4c1db1;}if((_0x4dfaa8!=null&&_0x4dfaa8['i']||(_0x4dfaa8==null?void 0x0:_0x4dfaa8['i'])===0x0)&&(_0x59df3f||(_0x59df3f={}),_0x59df3f['fi']=_0x4dfaa8['i']),_0x4dfaa8!=null&&_0x4dfaa8['s']&&(_0x59df3f||(_0x59df3f={}),_0x59df3f['pbt']=_0x4dfaa8['s']),_0x44bb79&&(_0x59df3f||(_0x59df3f={}),_0x59df3f['s']=_0x5e8c1c),_0x20c603&&_0x59df3f!=null&&_0x59df3f['v']&&_0x59df3f[_0x5942b8(0x18f)]!==_0x1978cb[_0x5942b8(0x2f3)][_0x5942b8(0x2b5)]&&_0x59df3f['pbt']!==_0x1978cb['PivotCellStyleTypeEnum'][_0x5942b8(0xf9)]){const _0x324f84=String(_0x59df3f['v']),{dateType:_0x33774e}=_0x20c603;_0x59df3f['v']=_0x36911b(_0x178371,_0x33774e,_0x324f84),_0x59df3f['t']=_0x71e749['CellValueType'][_0x5942b8(0x1c5)];}return _0x59df3f;},_0x5dcea6=(_0x27e704,_0x4336c1,_0x5596c2,_0x9c1bad)=>{const _0x1c69ad=_0x952e9f;var _0x4a329a,_0x373abc,_0x32a920,_0x143d12,_0x1b3291,_0x30aa54,_0x2d4da9,_0x1d5564,_0x4ce601,_0x3054d7,_0x40ed0d,_0x2227b2,_0xa846ea,_0x2eef23;const _0x1302ac=_0x5596c2[_0x1c69ad(0x354)],{cornerView:_0x166683,rowView:_0x527dae,colView:_0x1c2ff0,dataView:_0x26d902,pageView:_0x338f9b,formatMap:_0x5dfa14,groupInfo:_0x403c91}=_0x4336c1,{row:_0x4cd425,col:_0x321022}=_0x1302ac,_0x5f5783=new _0x71e749['ObjectMatrix'](),_0x5c0fae={},_0x5eaffa={},_0x24e667={},_0x148f3b={},_0x488b3f={};let _0x40bb0e=_0x4cd425,_0x3cf711=_0x321022;Object[_0x1c69ad(0x111)](_0x338f9b['data'])[_0x1c69ad(0x1fb)](_0x1b5ca8=>{const _0x58c4d1=_0x1c69ad;Object['keys'](_0x338f9b[_0x58c4d1(0x2ac)][Number(_0x1b5ca8)])['forEach'](_0x243bc2=>{const _0xfbf888=_0x58c4d1,_0x21d628={..._0x338f9b['data'][Number(_0x1b5ca8)][Number(_0x243bc2)]};_0x5f5783[_0xfbf888(0x183)](Number(_0x1b5ca8)+_0x40bb0e,Number(_0x243bc2)+_0x3cf711,_0x466485(_0x27e704,_0x21d628,_0x4f9185[_0xfbf888(0x1e3)]));});});const _0x285007=Object['keys'](_0x338f9b[_0x1c69ad(0x2ac)])[_0x1c69ad(0x278)];_0x40bb0e+=_0x285007+(_0x285007?_0x18e791:0x0);const _0x486d82=_0x166683['getRowCount'](),_0x23a7ad=_0x166683[_0x1c69ad(0x3b7)]();for(let _0x34e34b=0x0;_0x34e34b<_0x486d82;_0x34e34b++)for(let _0x5673fc=0x0;_0x5673fc<_0x23a7ad;_0x5673fc++){const _0xdf09a0={...(_0x373abc=(_0x4a329a=_0x166683[_0x1c69ad(0x2ac)])==null?void 0x0:_0x4a329a[_0x34e34b])==null?void 0x0:_0x373abc[_0x5673fc]};_0xdf09a0&&((_0x32a920=_0x527dae[_0x1c69ad(0x130)][_0x5673fc])!=null&&_0x32a920['isValue'])&&_0x5673fc===_0x23a7ad-0x1&&_0x34e34b===_0x486d82-0x1&&(_0xdf09a0['v']=''+_0x9c1bad['sheets-pivot.value']),_0x5f5783['setValue'](_0x34e34b+_0x40bb0e,_0x5673fc+_0x3cf711,_0x466485(_0x27e704,_0xdf09a0,_0x4f9185[_0x1c69ad(0x18d)]));}for(let _0x487c79=0x0;_0x487c79<_0x166683['info'][_0x1c69ad(0x278)];_0x487c79++)_0x166683[_0x1c69ad(0x1fd)][_0x487c79]&&(_0x24e667[''+(_0x487c79+_0x3cf711)]=_0x166683[_0x1c69ad(0x1fd)][_0x487c79]);_0x3cf711+=_0x23a7ad;const _0x30aa6b=_0x1c2ff0[_0x1c69ad(0x130)],_0x46697a=_0x1c2ff0[_0x1c69ad(0x339)]()>=0x0?_0x1c2ff0['getLastRow']()+0x1:0x0,_0x548451=_0x1c2ff0['getLastCol']()>=0x0?_0x1c2ff0[_0x1c69ad(0x195)]()+0x1:0x0;for(let _0x445a3d=0x0;_0x445a3d<_0x548451;_0x445a3d++){for(let _0xfda6ad=0x0;_0xfda6ad<_0x46697a;_0xfda6ad++){const _0x5b5b01={...(_0x1b3291=(_0x143d12=_0x1c2ff0[_0x1c69ad(0x2ac)])==null?void 0x0:_0x143d12[_0xfda6ad])==null?void 0x0:_0x1b3291[_0x445a3d]},_0x3f7c23=(_0x30aa54=_0x30aa6b[_0xfda6ad])==null?void 0x0:_0x30aa54[_0x1c69ad(0x295)],_0x2b9cb9=_0x5dfa14[_0x3f7c23],_0x1effac=_0x403c91[_0x3f7c23];_0x5b5b01&&(_0x5b5b01['v']=_0x2d2a3c(_0x5b5b01,_0xfda6ad===0x0&&((_0x2d4da9=_0x1c2ff0[_0x1c69ad(0x166)](_0x445a3d+0x1))==null?void 0x0:_0x2d4da9[_0x1c69ad(0x255)]),_0x2b9cb9,_0x9c1bad));let _0x358179;_0x2b9cb9?_0x358179={..._0x4f9185['colStyle'],'n':{'pattern':_0x2b9cb9}}:_0x358179={..._0x4f9185[_0x1c69ad(0x1dc)]},_0x5f5783[_0x1c69ad(0x183)](_0xfda6ad+_0x40bb0e,_0x445a3d+_0x3cf711,_0x466485(_0x27e704,_0x5b5b01,_0x358179,_0x1effac));}_0x1c2ff0[_0x1c69ad(0x1fd)][_0x445a3d]&&(_0x5eaffa[''+(_0x445a3d+_0x3cf711)]=_0x1c2ff0['info'][_0x445a3d]),_0x1c2ff0[_0x1c69ad(0x130)][_0x445a3d+0x1]&&(_0x488b3f[''+(_0x445a3d+_0x40bb0e+0x1)]=_0x1c2ff0[_0x1c69ad(0x130)][_0x445a3d+0x1]);}_0x40bb0e+=_0x486d82;const _0x1643f0=_0x527dae[_0x1c69ad(0x130)],_0x45c041=_0x527dae['getLastRow']()>=0x0?_0x527dae[_0x1c69ad(0x339)]()+0x1:0x0,_0x1c245e=_0x527dae[_0x1c69ad(0x195)]()>=0x0?_0x527dae[_0x1c69ad(0x195)]()+0x1:0x0;for(let _0x35aa10=0x0;_0x35aa10<_0x45c041;_0x35aa10++){for(let _0x591d55=0x0;_0x591d55<_0x1c245e;_0x591d55++){const _0x52ca54={...(_0x4ce601=(_0x1d5564=_0x527dae[_0x1c69ad(0x2ac)])==null?void 0x0:_0x1d5564[_0x35aa10])==null?void 0x0:_0x4ce601[_0x591d55]},_0x2bea3d=(_0x3054d7=_0x1643f0[_0x591d55])==null?void 0x0:_0x3054d7[_0x1c69ad(0x295)],_0x1d3630=_0x5dfa14[_0x2bea3d],_0x4143a3=_0x403c91[_0x2bea3d];_0x52ca54&&(_0x52ca54['v']=_0x2d2a3c(_0x52ca54,!0x1,_0x1d3630,_0x9c1bad));let _0x479a08;_0x527dae[_0x1c69ad(0x1fd)][_0x35aa10][_0x1c69ad(0x146)]===_0x527dae[_0x1c69ad(0x3b7)]()?_0x479a08=_0x4f9185[_0x1c69ad(0x3d9)]:_0x527dae['info'][_0x35aa10]['isBottomTotal']?_0x479a08=_0x527dae['info'][_0x35aa10][_0x1c69ad(0x146)]===0x0?_0x4f9185[_0x1c69ad(0x1f4)]:_0x4f9185[_0x1c69ad(0x2bd)]:_0x479a08=_0x4f9185['rowStyle'],_0x1d3630&&(_0x479a08={..._0x479a08,'n':{'pattern':_0x1d3630}}),_0x5f5783[_0x1c69ad(0x183)](_0x35aa10+_0x40bb0e,_0x591d55+_0x321022,_0x466485(_0x27e704,_0x52ca54,_0x479a08,_0x4143a3));}_0x527dae[_0x1c69ad(0x1fd)][_0x35aa10]&&(_0x5c0fae[''+(_0x35aa10+_0x40bb0e)]=_0x527dae[_0x1c69ad(0x1fd)][_0x35aa10]),_0x527dae['headerMap'][_0x35aa10]&&(_0x148f3b[''+(_0x35aa10+_0x321022)]=_0x527dae[_0x1c69ad(0x130)][_0x35aa10]);}const _0x21cb65=_0x26d902[_0x1c69ad(0x1bd)](),_0x5284da=_0x26d902[_0x1c69ad(0x3b7)]();for(let _0x145d4a=0x0;_0x145d4a<_0x21cb65;_0x145d4a++)for(let _0x451b2e=0x0;_0x451b2e<_0x5284da;_0x451b2e++){const _0x1ebf2b={...(_0x2227b2=(_0x40ed0d=_0x26d902['data'])==null?void 0x0:_0x40ed0d[_0x145d4a])==null?void 0x0:_0x2227b2[_0x451b2e]};let _0x486dbe;_0x527dae['info'][_0x145d4a][_0x1c69ad(0x13f)]?_0x486dbe=_0x527dae[_0x1c69ad(0x1fd)][_0x145d4a][_0x1c69ad(0x146)]===0x0?_0x4f9185['grandTotal']:_0x4f9185[_0x1c69ad(0x2bd)]:_0x486dbe=_0x4f9185['dataStyle'];const _0x3b09f7=_0x527dae[_0x1c69ad(0x1fd)][_0x145d4a][_0x1c69ad(0x289)],_0x41a104=_0x1c2ff0[_0x1c69ad(0x1fd)][_0x451b2e][_0x1c69ad(0x289)],_0xfbc872=Math['max'](_0x3b09f7,_0x41a104),_0x26e282=_0x5596c2['fieldsConfig'][_0x1c69ad(0x114)]['concat']();let _0x3ed954='';_0xfbc872<0x0?_0x3ed954=(_0xa846ea=_0x26e282[0x0])!=null?_0xa846ea:'':_0x3ed954=(_0x2eef23=_0x26e282[_0xfbc872])!=null?_0x2eef23:'';const _0x58c9a5=_0x5dfa14[_0x3ed954];_0x58c9a5&&(_0x486dbe={..._0x486dbe,'n':{'pattern':_0x58c9a5}}),_0x5f5783['setValue'](_0x145d4a+_0x40bb0e,_0x451b2e+_0x3cf711,_0x466485(_0x27e704,_0x1ebf2b,_0x486dbe));}return{'valueMatrix':_0x5f5783,'rowInfo':_0x5c0fae,'colInfo':_0x5eaffa,'cornerInfo':_0x24e667,'rowHeaderMap':_0x148f3b,'colHeaderMap':_0x488b3f};};function _0x2d2a3c(_0x1b569f,_0x955237,_0x41321c,_0x10f3a2){const _0x47ab80=_0x952e9f;let _0x1d51ab=_0x1b569f['v'];_0x955237&&(_0x1d51ab=''+_0x10f3a2[_0x47ab80(0x305)]);const _0x39de1e=_0x1b569f['t']&&(_0x1b569f['t']&_0x1978cb[_0x47ab80(0x35b)][_0x47ab80(0x32f)])>0x0;if(_0x39de1e&&(_0x1d51ab=''+_0x10f3a2['sheets-pivot.blank']),_0x1b569f['s']===_0x1978cb['PivotCellStyleTypeEnum'][_0x47ab80(0xf9)]){let _0x346dc7=_0x1d51ab,_0x471f00='';_0x1978cb[_0x47ab80(0x274)](_0x1d51ab)&&(_0x346dc7=_0x1d51ab[_0x47ab80(0x3b1)],_0x471f00=_0x1d51ab[_0x47ab80(0x101)]);const _0x366ed8=_0x41321c&&!_0x39de1e?_0x71e749[_0x47ab80(0x122)][_0x47ab80(0x21e)](_0x41321c,Number(_0x346dc7)):_0x346dc7;_0x471f00?_0x1d51ab=_0x366ed8+'\x20'+_0x471f00:_0x1d51ab=_0x366ed8+'\x20'+_0x10f3a2[_0x47ab80(0x3b6)];}else _0x1b569f['s']===_0x1978cb[_0x47ab80(0x2f3)]['GrandTotal']&&(_0x1d51ab=_0x1d51ab+'\x20'+_0x10f3a2[_0x47ab80(0x2a4)]);return _0x1d51ab;}function _0x422930(_0x117dfd){const _0x40d303=_0x952e9f;if(_0x1978cb[_0x40d303(0x31d)](_0x117dfd)){const {errorType:_0x2aeb83}=_0x117dfd;switch(_0x2aeb83){case _0x1978cb['PivotErrorTypeEnum']['Div0']:return _0x19b6b3[_0x40d303(0x1fa)][_0x40d303(0x301)];case _0x1978cb[_0x40d303(0x3ec)]['NotNumber']:return _0x19b6b3['ErrorType'][_0x40d303(0x1b7)];case _0x1978cb[_0x40d303(0x3ec)]['NotFunction']:return _0x19b6b3[_0x40d303(0x1fa)][_0x40d303(0x1ad)];case _0x1978cb[_0x40d303(0x3ec)][_0x40d303(0x380)]:return _0x19b6b3[_0x40d303(0x1fa)][_0x40d303(0x1ad)];case _0x1978cb['PivotErrorTypeEnum']['BadReference']:return _0x19b6b3['ErrorType'][_0x40d303(0x28f)];}}return _0x117dfd;}function _0x3f4101(_0x13cc73,_0x106ca3,_0x1c5156=!0x1,_0x3f8f55=!0x1){const _0x536d14=_0x952e9f,{data:_0x1a5a84}=_0x106ca3,_0x14d8dd=_0x106ca3[_0x536d14(0x1bd)](),_0x51a0fe=_0x106ca3[_0x536d14(0x3b7)]();if(_0x14d8dd<=0x0||_0x51a0fe<=0x0)return[];const _0x179313=_0x106ca3[_0x536d14(0x195)](),_0x462add=_0x106ca3[_0x536d14(0x339)](),_0x2cc942=_0x3f8f55?_0x462add>=0x0?_0x462add+0x1:0x0:_0x14d8dd,_0x306ccb=_0x3f8f55?_0x179313>=0x0?_0x179313+0x1:0x0:_0x51a0fe,{row:_0x4ef4b6,col:_0x5bb3b1}=_0x13cc73,_0x51b649=_0x4ef4b6,_0x2890bf=_0x5bb3b1;if(_0x1c5156){const _0x523de8=[];for(const [_0x3cd1fa,_0x342aaf]of Object['entries'](_0x1a5a84))for(const [_0xaee2,_0x2dd21b]of Object[_0x536d14(0x3c9)](_0x342aaf))_0x523de8[_0x536d14(0x2b7)](_0x71e749[_0x536d14(0x1a0)](_0x51b649+Number(_0x3cd1fa),_0x2890bf+Number(_0xaee2)));return _0x523de8;}else{const _0x43b1c5=_0x3f8f55?_0x2cc942>0x0?0x1:0x0:0x1,_0x1ed0cf=_0x3f8f55?_0x306ccb>0x0?0x1:0x0:0x1,_0xf6fe94=_0x4ef4b6+_0x2cc942-_0x43b1c5,_0x7ba15c=_0x5bb3b1+_0x306ccb-_0x1ed0cf;return[{'startRow':_0x51b649,'startColumn':_0x2890bf,'endRow':_0xf6fe94,'endColumn':_0x7ba15c}];}}const _0xf9ba23='SHEET_PIVOT_IN_MAIN_THREAD',_0x30ef77=_0x952e9f(0x3d6);var _0x2dff37=(_0x988911=>(_0x988911[_0x952e9f(0x341)]='filter',_0x988911[_0x952e9f(0x17f)]=_0x952e9f(0x388),_0x988911[_0x952e9f(0x400)]='addPivotField',_0x988911['AddPivotTableWithConfig']=_0x952e9f(0x3bc),_0x988911[_0x952e9f(0x3a2)]=_0x952e9f(0x261),_0x988911[_0x952e9f(0x20a)]=_0x952e9f(0x232),_0x988911[_0x952e9f(0x24c)]=_0x952e9f(0x395),_0x988911[_0x952e9f(0x3ee)]=_0x952e9f(0x16b),_0x988911[_0x952e9f(0xf0)]='setPivotFilter',_0x988911['SetPivotSort']=_0x952e9f(0x125),_0x988911[_0x952e9f(0x191)]='setPivotSetting',_0x988911[_0x952e9f(0x13a)]='updatePivotSource',_0x988911[_0x952e9f(0x26f)]=_0x952e9f(0x12b),_0x988911['DrillDown']=_0x952e9f(0x16f),_0x988911[_0x952e9f(0x2d3)]='setValuePivotFilter',_0x988911['SetPivotTableConfig']='setPivotTableConfig',_0x988911[_0x952e9f(0x2ef)]=_0x952e9f(0x152),_0x988911))(_0x2dff37||{});const _0x3328ed={'sheets-pivot.blankValue':_0x952e9f(0x115),'sheets-pivot.columnName':_0x952e9f(0x32c),'sheets-pivot.subTotalText':_0x952e9f(0x1c2),'sheets-pivot.grandTotalText':_0x952e9f(0x266),'sheets-pivot.valueText':_0x952e9f(0x2f0),'sheets-pivot.averageName':_0x952e9f(0x220),'sheets-pivot.countName':_0x952e9f(0x1f5),'sheets-pivot.countNumsName':'Count\x20of\x20','sheets-pivot.maxName':_0x952e9f(0x2ed),'sheets-pivot.minName':_0x952e9f(0x2e8),'sheets-pivot.productName':_0x952e9f(0x205),'sheets-pivot.stdDevName':_0x952e9f(0x22f),'sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x952e9f(0x298),'sheets-pivot.varName':'Var\x20of\x20','sheets-pivot.varpName':_0x952e9f(0x174),'sheets-pivot.subTotal':_0x952e9f(0xf9),'sheets-pivot.grandTotal':_0x952e9f(0x266),'sheets-pivot.value':_0x952e9f(0x101),'sheets-pivot.blank':_0x952e9f(0x32f),'sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':'Row','sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':'Values'},_0xd6d385={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x178140=_0x71e749['createAsyncInterceptorKey'](_0x952e9f(0x34e)),_0x2f3b0c=_0x71e749[_0x952e9f(0x185)](_0x952e9f(0x139));var _0x2c797b=(_0x107c03=>(_0x107c03[_0x952e9f(0x249)]='add',_0x107c03['delete']='delete',_0x107c03[_0x952e9f(0x311)]=_0x952e9f(0x311),_0x107c03))(_0x2c797b||{}),_0x5cfd72=(_0x6ef3de=>(_0x6ef3de['Add']=_0x952e9f(0x249),_0x6ef3de[_0x952e9f(0x15c)]=_0x952e9f(0x23d),_0x6ef3de['Delete']=_0x952e9f(0x366),_0x6ef3de))(_0x5cfd72||{});const _0x3a0815={0x0:'w',0x1:'Y',0x2:'I',0x3:'a',0x4:'s',0x5:'8',0x6:'k',0x7:'M',0x8:'x',0x9:'l','K':'0','L':'1','b':'2','U':'3','w':'4','X':'5','a':'6','V':'7','p':'9','Q':'b','y':'c','n':'d','W':'e','F':'f','G':'g','q':'h','k':'i','D':'j','m':'m','d':'n','z':'o','H':'p','A':'q','h':'r','R':'t','Y':'u','u':'v','j':'y','c':'z','T':'A','M':'B','l':'C','B':'D','S':'E','C':'F','g':'G','P':'H','J':'J','E':'K','o':'L','O':'N','t':'O','x':'P','v':'Q','i':'R','e':'S','r':'T','I':'U','Z':'V','f':'W','N':'X','s':'Z'},_0x3dfaa6=_0x952e9f(0x3f4),_0x1efe7b={'type':_0x71e749[_0x952e9f(0x1ff)]['MUTATION'],'id':_0x952e9f(0x2c7),'handler':()=>!0x0},_0x42f08c={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'id':_0x952e9f(0x214),'handler':()=>!0x0},_0x13964a={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'id':_0x952e9f(0x189),'handler':()=>!0x0},_0x4c06b7={'type':_0x71e749['CommandType'][_0x952e9f(0x334)],'id':_0x952e9f(0x29c),'handler':()=>!0x0},_0x4e58e8={'type':_0x71e749['CommandType'][_0x952e9f(0x334)],'id':_0x952e9f(0x172),'handler':()=>!0x0},_0x3c5b0f=_0xe3f63=>{const _0x122967=_0x952e9f;var _0x149f11;return((_0x149f11=_0xe3f63[_0x122967(0x13e)])==null?void 0x0:_0x149f11[_0x122967(0x3ce)][_0x122967(0x345)](/\r\n$/,''))||'';};class _0x56de34 extends _0x1978cb[_0x952e9f(0xef)]{constructor(_0x3c3c47,_0x416200){const _0x2afe7b=_0x952e9f;super(),_0x59bac0(this,_0x2afe7b(0x100),{}),_0x59bac0(this,_0x2afe7b(0x2ba)),_0x59bac0(this,'_host'),(this[_0x2afe7b(0x2ba)]=_0x416200,this[_0x2afe7b(0x256)]=_0x3c3c47);}[_0x952e9f(0xea)](){const _0x5d9df5=_0x952e9f;for(const _0x23d939 in this[_0x5d9df5(0x108)]){const _0x32fe74=this['dataFields'][_0x23d939],_0x345d34=_0x32fe74[_0x5d9df5(0x1d1)]();this['rangeKeyMap'][_0x345d34]=_0x32fe74[_0x5d9df5(0x1ed)]();}}[_0x952e9f(0x194)](){const _0x3f0434=_0x952e9f,_0x29af60=this[_0x3f0434(0x256)];return _0x5d9b48[_0x3f0434(0xfc)](_0x29af60);}['deleteDataField'](_0x18f2f0){const _0x541cc4=_0x952e9f,_0xc60558=this[_0x541cc4(0x108)][_0x18f2f0][_0x541cc4(0x1c7)];delete this[_0x541cc4(0x108)][_0x18f2f0],delete this[_0x541cc4(0x100)][_0xc60558];}[_0x952e9f(0x10b)](_0x343a34){const _0x5a12c8=_0x952e9f;this[_0x5a12c8(0x108)][_0x343a34[_0x5a12c8(0x1ed)]()]=_0x343a34;}[_0x952e9f(0x2de)](_0x2598dd){const _0x3558c2=_0x952e9f;var _0x57b90b,_0x6b2dff;const _0x495b83=this[_0x3558c2(0x256)][_0x3558c2(0x1cd)](_0x2598dd);if(_0x495b83){const {unitId:_0x52a272,subUnitId:_0x5b8507}=_0x495b83,_0x3ae300=(_0x57b90b=this[_0x3558c2(0x256)][_0x3558c2(0x405)](_0x52a272,_0x5b8507,_0x2598dd))==null?void 0x0:_0x57b90b[_0x3558c2(0x3a8)];this[_0x3558c2(0x256)][_0x3558c2(0x1c3)]({'token':_0x2598dd,'type':_0x2c797b['delete'],'dataRangeInfo':_0x3ae300});}(_0x6b2dff=this[_0x3558c2(0x3b3)](_0x2598dd))==null||_0x6b2dff['dispose'](),delete this[_0x3558c2(0x3d8)][_0x2598dd];}[_0x952e9f(0x1d1)](_0x5d9883,_0x45e461){const _0x107a1f=_0x952e9f,{sheetName:_0x42947a,unitId:_0x4c98d2,range:_0x55d607}=_0x5d9883,{startRow:_0x4a5bc8,endRow:_0x49f3f1}=_0x55d607;return _0x19b6b3[_0x107a1f(0x25d)](_0x4c98d2,_0x42947a,{'startRow':_0x4a5bc8,'endRow':_0x49f3f1,'startColumn':_0x45e461,'endColumn':_0x45e461});}[_0x952e9f(0x37c)](_0x20dfee){const _0x1fb028=_0x952e9f;return this[_0x1fb028(0x108)][this['rangeKeyMap'][_0x20dfee]];}[_0x952e9f(0xfa)](_0x50d3ef,_0x4dd323){this['rangeKeyMap'][_0x50d3ef]=_0x4dd323;}['updateRangeKeyMap'](_0x3d8ebc,_0x2c7f07){const _0x2a86bf=_0x952e9f;this[_0x2a86bf(0x100)][_0x2c7f07]=this[_0x2a86bf(0x100)][_0x3d8ebc],delete this[_0x2a86bf(0x100)][_0x3d8ebc];}[_0x952e9f(0x132)](_0x6e4ccb,_0x594706,_0x25ca08,_0x186f88){const _0x5d3fce=_0x952e9f,_0x19350a=new _0x1978cb[(_0x5d3fce(0x10f))](this);_0x19350a['fromJSON'](_0x594706);const _0x339da0=[];let _0x3da699=0x0;for(const _0x100ad1 of _0x19350a[_0x5d3fce(0x3a5)]){const _0x335cb5=this['getRangeKey'](_0x25ca08,_0x3da699),_0x550f7e=this[_0x5d3fce(0x108)][_0x100ad1];_0x550f7e&&(_0x550f7e[_0x5d3fce(0x1c7)]=_0x335cb5,this[_0x5d3fce(0xfa)](_0x335cb5,_0x100ad1),_0x339da0['push']({'index':_0x3da699,'dataField':_0x550f7e})),_0x3da699++;}return this[_0x5d3fce(0x19d)](_0x6e4ccb,_0x19350a,_0x25ca08,_0x186f88),{'collection':_0x19350a,'updateDataFieldList':_0x339da0};}[_0x952e9f(0x404)](_0x420857,_0x570965){const _0x16cf4f=_0x952e9f;return _0x420857[_0x16cf4f(0x396)]===_0x71e749[_0x16cf4f(0x28c)][_0x16cf4f(0x382)]?{'startRow':0x0,'startColumn':_0x420857[_0x16cf4f(0x3a9)],'endRow':_0x570965[_0x16cf4f(0x1bd)]()-0x1,'endColumn':_0x420857['endColumn']}:{'startRow':_0x420857[_0x16cf4f(0x2fd)],'startColumn':_0x420857[_0x16cf4f(0x3a9)],'endRow':_0x420857['endRow'],'endColumn':_0x420857[_0x16cf4f(0x317)]};}[_0x952e9f(0x252)](_0x33af4c){const _0x8cac3b=_0x952e9f,{sheetName:_0x6f3b1c,range:_0x29de0b}=_0x33af4c,_0x386fa0=this[_0x8cac3b(0x2ba)]['getCurrentUnitForType'](_0x71e749[_0x8cac3b(0x21f)][_0x8cac3b(0xfe)]),_0x199d31=_0x386fa0['getSheetBySheetName'](_0x6f3b1c),_0x2abf41=_0x199d31['getCellMatrix'](),{startColumn:_0x4d452d,startRow:_0x35087d,endColumn:_0x39c8a3}=this[_0x8cac3b(0x404)](_0x29de0b,_0x199d31),_0x5816e1=_0x386fa0[_0x8cac3b(0x3a1)](),_0x3704b3=new _0x1978cb['FieldsCollection'](this);_0x3704b3[_0x8cac3b(0xe6)](_0x33af4c);const _0xc7d604=[],_0xa8f8c7={};for(let _0x507fe6=_0x4d452d;_0x507fe6<=_0x39c8a3;_0x507fe6++){const _0x4f9c41=_0x2abf41[_0x8cac3b(0x3ea)](_0x35087d,_0x507fe6),_0x20f188=this[_0x8cac3b(0x1d1)](_0x33af4c,_0x507fe6),_0x28eadf=this['getDataFieldByRangeKey'](_0x20f188);if(_0x28eadf)_0x3704b3[_0x8cac3b(0x1de)](_0x28eadf['getId'](),_0x28eadf[_0x8cac3b(0x134)]());else{const _0x58949d=this[_0x8cac3b(0x196)]();let _0x127df1=this[_0x8cac3b(0x3c7)](_0x4f9c41,_0x5816e1,_0xa8f8c7);_0x1978cb[_0x8cac3b(0x2b8)](_0x127df1)&&(_0x127df1=_0x71e749[_0x8cac3b(0x122)]['format'](_0x127df1['f'],Number(_0x127df1['v'])));const _0x35fc18=this[_0x8cac3b(0x35a)](_0x127df1,_0x507fe6),_0xa71dfe=new _0x1978cb[(_0x8cac3b(0x3db))](_0x58949d,_0x35fc18,_0x1978cb[_0x8cac3b(0x24d)](0x3));_0xa71dfe[_0x8cac3b(0x1c7)]=_0x20f188,this[_0x8cac3b(0x108)][_0x58949d]=_0xa71dfe,_0x3704b3[_0x8cac3b(0x1de)](_0x58949d,_0x35fc18),_0xc7d604['push']({'index':_0x507fe6,'dataField':_0xa71dfe});}}return{'updateDataFieldList':_0xc7d604,'collection':_0x3704b3};}[_0x952e9f(0x206)](_0xd3eba4){const _0x158101=_0x952e9f;return this['_host'][_0x158101(0x2a1)]()[_0x158101(0x3cb)]+'\x20'+_0x71e749[_0x158101(0x151)](_0xd3eba4);}[_0x952e9f(0x35a)](_0x2adc57,_0xc3d96){const _0x164e29=_0x952e9f;return _0x2adc57==null||_0x2adc57===''?this[_0x164e29(0x206)](_0xc3d96):String(_0x2adc57);}[_0x952e9f(0x3b3)](_0x4e9f07){const _0x2b7d46=_0x952e9f;return this[_0x2b7d46(0x3d8)][_0x4e9f07];}['addCollection'](_0x3b1def,_0x13bb53,_0x3ffca6,_0x97b80e){const _0x4416cc=_0x952e9f;this[_0x4416cc(0x3d8)][_0x3b1def]=_0x13bb53,_0x13bb53['setRange'](_0x3ffca6),this[_0x4416cc(0x256)][_0x4416cc(0x1c3)]({'token':_0x3b1def,'type':_0x2c797b[_0x4416cc(0x249)],'dataRangeInfo':_0x3ffca6,'targetCellInfo':_0x97b80e});}[_0x952e9f(0x12d)](_0x5f9466,_0x1f52e7){const _0x616bc9=_0x952e9f,_0x163ba0=this[_0x616bc9(0x3b3)](_0x5f9466),_0x458b13=_0x163ba0['getFieldIds']();let _0xed58a9=0x0;for(const _0x28433b of _0x458b13){const _0x370a03=_0x163ba0[_0x616bc9(0x17d)](_0x28433b),_0x10f4ec=this[_0x616bc9(0x1d1)](_0x1f52e7,_0xed58a9);this[_0x616bc9(0x3e7)](_0x370a03['rangeKey'],_0x10f4ec),_0xed58a9++;}}[_0x952e9f(0x160)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x952e9f(0x3bb)](_0x3acc83,_0x10f0b1){const _0x48e508=_0x952e9f;if(this[_0x48e508(0x3b3)](_0x3acc83)){const _0x55a4cf=this[_0x48e508(0x3ca)](_0x10f0b1),_0x3277d9=[];for(const _0x1b67a1 of _0x55a4cf)this[_0x48e508(0x100)][_0x1b67a1]!==void 0x0&&_0x3277d9[_0x48e508(0x2b7)](this[_0x48e508(0x100)][_0x1b67a1]);const _0x4861ba=this[_0x48e508(0x25f)](_0x3acc83),_0x4c76b5=[],_0x598b95=new Set(_0x3277d9);for(const _0x141a49 of _0x4861ba)_0x598b95['has'](_0x141a49)||_0x4c76b5[_0x48e508(0x2b7)](_0x141a49);return _0x4c76b5;}}['getMatrixValue'](_0x5478ee,_0x177558,_0x185c42,_0x1d3cd1,_0x1371db){const _0x3f4b42=_0x952e9f;return _0x177558&&_0x177558[_0x3f4b42(0x3ea)](_0x1d3cd1,_0x1371db)?_0x177558[_0x3f4b42(0x3ea)](_0x1d3cd1,_0x1371db):_0x185c42&&_0x185c42['getValue'](_0x1d3cd1,_0x1371db)?_0x185c42[_0x3f4b42(0x3ea)](_0x1d3cd1,_0x1371db):_0x5478ee[_0x3f4b42(0x3ea)](_0x1d3cd1,_0x1371db);}[_0x952e9f(0x3e9)](_0x31cd93,_0x2d9d97,_0x3cc1d4,_0x2403ed){const _0x5a1b24=_0x952e9f,_0x567cd6=this[_0x5a1b24(0x108)][_0x31cd93];if(!_0x567cd6)return;const {subUnitId:_0x3a1730,range:_0x15b588,unitId:_0x20372}=_0x2d9d97,_0xe8006a=this['_univerInstanceService'][_0x5a1b24(0x38c)](_0x20372);if(!_0xe8006a){console[_0x5a1b24(0x1c0)](_0x5a1b24(0x2d8));return;}const _0x5a8c4d=_0xe8006a[_0x5a1b24(0x216)](_0x3a1730),_0x4e8896=_0x5a8c4d[_0x5a1b24(0x23f)](),{arrayFormulaCellDataMatrix:_0x2d4aff,unitDataMatrix:_0x5c986e}=_0x2403ed||{},{startRow:_0x233dc6,startColumn:_0x382771,endRow:_0x501963}=this[_0x5a1b24(0x404)](_0x15b588,_0x5a8c4d);_0x567cd6[_0x5a1b24(0x356)]();const _0x2d1538=_0xe8006a[_0x5a1b24(0x3a1)](),_0x26c44={},_0x1b53b4=this[_0x5a1b24(0x3b4)](_0x4e8896,_0x2d4aff,_0x5c986e,_0x233dc6,_0x382771+_0x3cc1d4);let _0x4f502e=this[_0x5a1b24(0x3c7)](_0x1b53b4,_0x2d1538,_0x26c44);_0x1978cb[_0x5a1b24(0x2b8)](_0x4f502e)&&(_0x4f502e=_0x71e749['numfmt']['format'](_0x4f502e['f'],Number(_0x4f502e['v'])));const _0x3ec2c8=this['uniqueDataFieldName'](_0x4f502e,_0x382771+_0x3cc1d4);_0x567cd6['setName'](_0x3ec2c8);for(let _0x4b5046=_0x233dc6+0x1;_0x4b5046<=_0x501963;_0x4b5046++){const _0x457c49=this[_0x5a1b24(0x3b4)](_0x4e8896,_0x2d4aff,_0x5c986e,_0x4b5046,_0x382771+_0x3cc1d4);_0x567cd6['addRecord'](this['adjustSheetCellData'](_0x457c49,_0x2d1538,_0x26c44),_0x4b5046-0x1-_0x233dc6);}}[_0x952e9f(0x16d)](_0x2f370e,_0x1dbeb4,_0x2e6357){const _0x41d1b0=_0x952e9f,{subUnitId:_0x4a3185,range:_0x5eae52,unitId:_0x26dddb}=_0x2e6357,_0x7ff002=this[_0x41d1b0(0x2ba)][_0x41d1b0(0x38c)](_0x26dddb);if(!_0x7ff002){console['error'](_0x41d1b0(0x2d8));return;}const _0x6da34e=_0x7ff002[_0x41d1b0(0x216)](_0x4a3185),_0x11a1c7=_0x6da34e[_0x41d1b0(0x23f)](),{startRow:_0x55b763,startColumn:_0x40ac87,endRow:_0x4ed487}=this[_0x41d1b0(0x404)](_0x5eae52,_0x6da34e),_0x56c1c8=_0x7ff002['getStyles'](),_0x3ba1eb={};for(const {dataField:_0x4cf341,index:_0xc85461}of _0x1dbeb4){_0x4cf341[_0x41d1b0(0x356)]();const _0x5c62c2=this[_0x41d1b0(0x3b4)](_0x11a1c7,void 0x0,void 0x0,_0x55b763,_0x40ac87+_0xc85461);let _0x93f2d9=this['adjustSheetCellData'](_0x5c62c2,_0x56c1c8,_0x3ba1eb);_0x1978cb[_0x41d1b0(0x2b8)](_0x93f2d9)&&(_0x93f2d9=_0x71e749[_0x41d1b0(0x122)]['format'](_0x93f2d9['f'],Number(_0x93f2d9['v'])));const _0x4829e3=this[_0x41d1b0(0x35a)](_0x93f2d9,_0x40ac87+_0xc85461);_0x4cf341[_0x41d1b0(0x34b)](_0x4829e3);}_0x2f370e[_0x41d1b0(0x15a)]();for(let _0x4ee69a=_0x55b763+0x1;_0x4ee69a<=_0x4ed487;_0x4ee69a++)for(const {index:_0x25b0ce,dataField:_0x2be866}of _0x1dbeb4){const _0x161a70=_0x11a1c7['getValue'](_0x4ee69a,_0x40ac87+_0x25b0ce);_0x2be866[_0x41d1b0(0x1f1)](this[_0x41d1b0(0x3c7)](_0x161a70,_0x56c1c8,_0x3ba1eb),_0x4ee69a-0x1-_0x55b763);}_0x2f370e[_0x41d1b0(0x161)](_0x4ed487-_0x55b763);}[_0x952e9f(0x3ca)](_0x302213){const _0x28f1f2=_0x952e9f,{range:_0x2ddf90}=_0x302213,{startColumn:_0x5c00da,endColumn:_0x887fb9}=_0x2ddf90,_0x269022=[];for(let _0x3938b9=_0x5c00da;_0x3938b9<=_0x887fb9;_0x3938b9++)_0x269022[_0x28f1f2(0x2b7)](this[_0x28f1f2(0x1d1)](_0x302213,_0x3938b9));return _0x269022;}[_0x952e9f(0x3c7)](_0x3998ae,_0x48186c,_0xd49422){const _0x3a6514=_0x952e9f;if(_0x3998ae){const {s:_0x42640c,v:_0xe265f4,t:_0x538cf6,p:_0x1894bf}=_0x3998ae;if(_0x1894bf)return _0x3c5b0f(_0x1894bf);const _0x5afc05=_0x48186c[_0x3a6514(0x3dc)](_0x42640c);if(_0x5afc05&&_0x538cf6===_0x71e749[_0x3a6514(0x1c9)][_0x3a6514(0x1d2)]&&_0x5afc05['n']){const {pattern:_0x33918b}=_0x5afc05['n'];_0xd49422[_0x33918b]||(_0xd49422[_0x33918b]=_0x71e749[_0x3a6514(0x122)][_0x3a6514(0x2d9)](_0x33918b));const _0x589e81=_0xd49422[_0x33918b],_0x232f68=_0x589e81[_0x3a6514(0x1b8)];if(_0x589e81[_0x3a6514(0x175)])return String(_0xe265f4);if(_0x232f68)return{'v':_0xe265f4,'f':_0x33918b};}if(_0x538cf6===_0x71e749['CellValueType']['NUMBER'])return Number(_0xe265f4);if(_0x538cf6===_0x71e749[_0x3a6514(0x1c9)][_0x3a6514(0x1c5)]||_0x538cf6===_0x71e749[_0x3a6514(0x1c9)]['FORCE_STRING'])return String(_0xe265f4);if(_0x538cf6===void 0x0){const _0x1d4405=Number(_0xe265f4);if(!Number[_0x3a6514(0x3fa)](_0x1d4405)&&String(_0x1d4405)===_0xe265f4)return _0x1d4405;}return _0xe265f4!=null?_0xe265f4:null;}else return null;}[_0x952e9f(0x2db)](_0x5c2fe5){const _0x2f466f=_0x952e9f,{sheetName:_0x4692d4,range:_0x4bec34,unitId:_0x5e9f2d}=_0x5c2fe5,_0x4aca5a=this[_0x2f466f(0x2ba)][_0x2f466f(0x38c)](_0x5e9f2d);if(!_0x4aca5a)return console[_0x2f466f(0x1c0)]('workbook\x20is\x20not\x20found'),{'header':[],'data':[]};const _0x30775e=_0x4aca5a[_0x2f466f(0x17a)](_0x4692d4),_0x5b6406=_0x30775e[_0x2f466f(0x23f)](),{startRow:_0x492f5a,startColumn:_0x9f1e19,endRow:_0x3d690e,endColumn:_0x547ee5}=this[_0x2f466f(0x404)](_0x4bec34,_0x30775e),_0x17dd69=_0x4aca5a[_0x2f466f(0x3a1)](),_0x3735d1=[],_0xff398c=[],_0x44b5af={};for(let _0x4ad96e=_0x492f5a;_0x4ad96e<=_0x3d690e;_0x4ad96e++){const _0x3780f7=[];for(let _0x556014=_0x9f1e19;_0x556014<=_0x547ee5;_0x556014++){const _0x41ee84=_0x5b6406['getValue'](_0x4ad96e,_0x556014);_0x4ad96e===_0x492f5a?_0x3735d1[_0x2f466f(0x2b7)](_0x41ee84==null?null:String(_0x41ee84['v'])):_0x3780f7[_0x2f466f(0x2b7)](this[_0x2f466f(0x3c7)](_0x41ee84,_0x17dd69,_0x44b5af));}_0xff398c['push'](_0x3780f7);}return{'header':_0x3735d1,'data':_0xff398c};}[_0x952e9f(0x117)](){const _0x107497=_0x952e9f;return super[_0x107497(0x117)]();}[_0x952e9f(0x136)](_0x365bd7){const _0x4c00f0=_0x952e9f;super[_0x4c00f0(0x136)](_0x365bd7),this[_0x4c00f0(0xea)]();}[_0x952e9f(0x3e3)](){const _0x561a91=_0x952e9f;super[_0x561a91(0x3e3)](),this['rangeKeyMap']={},this['_host']=null;}}const _0x1c782e=_0x590dbd=>{const _0x3ba1c8=_0x952e9f,{targetCellInfo:_0x279684}=_0x590dbd,{matrixCache:_0x125caa,rangesCache:_0x330ec9}=_0x59b07e({'filter':_0x3ba1c8(0x341),'row':_0x3ba1c8(0x3b9),'column':_0x3ba1c8(0x3f0),'values':_0x3ba1c8(0x23e)},_0x279684),_0x1c9ec1=new _0x71e749[(_0x3ba1c8(0x3f8))]();return _0x125caa[_0x3ba1c8(0x2c5)]((_0x2f7318,_0x2cbffa,_0x4dd5ac)=>{const _0x5ee94c=_0x3ba1c8;_0x1c9ec1[_0x5ee94c(0x183)](_0x2f7318,_0x2cbffa,_0x4dd5ac);}),{'matrix':_0x1c9ec1,'rangesCache':_0x330ec9};},_0x435feb=_0x4c1755=>{const _0x4696d3=_0x952e9f;let _0x2d3b88;if(_0x4c1755!=null&&_0x4c1755['v']||(_0x4c1755==null?void 0x0:_0x4c1755['v'])===0x0){_0x2d3b88||(_0x2d3b88={});const _0xc9274b=_0x422930(_0x4c1755['v']);typeof _0xc9274b==_0x4696d3(0x3d3)?_0x2d3b88['t']=_0x71e749['CellValueType']['NUMBER']:typeof _0xc9274b==_0x4696d3(0x282)&&(_0x2d3b88['t']=_0x71e749[_0x4696d3(0x1c9)][_0x4696d3(0x1c5)]),_0x2d3b88['v']=_0xc9274b;}return _0x2d3b88;},_0x30dda7=(_0x5c0da6,_0x31f560,_0x293eec)=>{const _0x1d8eff=_0x952e9f;var _0x1c7b5c,_0x201d0d,_0x5468e3,_0x10838b,_0x502aa5,_0x339a6f,_0x3030a1,_0x58d623,_0x1e3a08,_0x586b28,_0x57ac90,_0x411b99;const {cornerView:_0x290c9e,rowView:_0x551844,colView:_0x23507d,dataView:_0x7b4263,pageView:_0x2ea392,formatMap:_0x36e6e7}=_0x5c0da6,{row:_0x43a087,col:_0x18fde0}=_0x31f560,_0x2c96f3=new _0x71e749[(_0x1d8eff(0x3f8))]();let _0x3ce95f=_0x43a087,_0x1cf38b=_0x18fde0;Object[_0x1d8eff(0x111)](_0x2ea392[_0x1d8eff(0x2ac)])[_0x1d8eff(0x1fb)](_0x1d1f03=>{const _0x4d55a6=_0x1d8eff;Object[_0x4d55a6(0x111)](_0x2ea392[_0x4d55a6(0x2ac)][Number(_0x1d1f03)])[_0x4d55a6(0x1fb)](_0x13e14f=>{const _0x1118dd=_0x4d55a6,_0x1e8e92={..._0x2ea392[_0x1118dd(0x2ac)][Number(_0x1d1f03)][Number(_0x13e14f)]};_0x2c96f3[_0x1118dd(0x183)](Number(_0x1d1f03)+_0x3ce95f,Number(_0x13e14f)+_0x1cf38b,_0x435feb(_0x1e8e92));});});const _0x23f04d=Object['keys'](_0x2ea392[_0x1d8eff(0x2ac)])[_0x1d8eff(0x278)];_0x3ce95f+=_0x23f04d+(_0x23f04d?_0x18e791:0x0);const _0x40710e=_0x290c9e[_0x1d8eff(0x1bd)](),_0x509821=_0x290c9e[_0x1d8eff(0x3b7)]();for(let _0x1ba962=0x0;_0x1ba962<_0x40710e;_0x1ba962++)for(let _0xbcc576=0x0;_0xbcc576<_0x509821;_0xbcc576++){const _0x54436b={...(_0x201d0d=(_0x1c7b5c=_0x290c9e[_0x1d8eff(0x2ac)])==null?void 0x0:_0x1c7b5c[_0x1ba962])==null?void 0x0:_0x201d0d[_0xbcc576]};_0x54436b&&((_0x5468e3=_0x551844[_0x1d8eff(0x130)][_0xbcc576])!=null&&_0x5468e3[_0x1d8eff(0x255)])&&_0xbcc576===_0x509821-0x1&&_0x1ba962===_0x40710e-0x1&&(_0x54436b['v']=''+_0x293eec[_0x1d8eff(0x305)]),_0x2c96f3['setValue'](_0x1ba962+_0x3ce95f,_0xbcc576+_0x1cf38b,_0x435feb(_0x54436b));}_0x1cf38b+=_0x509821;const _0x2a417d=_0x23507d['headerMap'],_0x5686a7=_0x23507d[_0x1d8eff(0x339)]()>=0x0?_0x23507d[_0x1d8eff(0x339)]()+0x1:0x0,_0x4301ce=_0x23507d[_0x1d8eff(0x195)]()>=0x0?_0x23507d[_0x1d8eff(0x195)]()+0x1:0x0;for(let _0x495843=0x0;_0x495843<_0x4301ce;_0x495843++)for(let _0x811c42=0x0;_0x811c42<_0x5686a7;_0x811c42++){const _0x6558c8={...(_0x502aa5=(_0x10838b=_0x23507d[_0x1d8eff(0x2ac)])==null?void 0x0:_0x10838b[_0x495843])==null?void 0x0:_0x502aa5[_0x811c42]},_0x323963=(_0x339a6f=_0x2a417d[_0x495843])==null?void 0x0:_0x339a6f[_0x1d8eff(0x295)],_0x45e180=_0x36e6e7[_0x323963];_0x6558c8&&(_0x6558c8['v']=_0x2d2a3c(_0x6558c8,_0x495843===0x0&&((_0x3030a1=_0x23507d[_0x1d8eff(0x166)](_0x811c42+0x1))==null?void 0x0:_0x3030a1['isValue']),_0x45e180,_0x293eec)),_0x2c96f3['setValue'](_0x495843+_0x3ce95f,_0x811c42+_0x1cf38b,_0x435feb(_0x6558c8));}_0x3ce95f+=_0x40710e;const _0x35a4bd=_0x551844[_0x1d8eff(0x130)],_0x3326a5=_0x551844[_0x1d8eff(0x339)]()>=0x0?_0x551844[_0x1d8eff(0x339)]()+0x1:0x0,_0x325fb7=_0x551844[_0x1d8eff(0x195)]()>=0x0?_0x551844[_0x1d8eff(0x195)]()+0x1:0x0;for(let _0x47256a=0x0;_0x47256a<_0x3326a5;_0x47256a++)for(let _0x1569eb=0x0;_0x1569eb<_0x325fb7;_0x1569eb++){const _0x370df9={...(_0x1e3a08=(_0x58d623=_0x551844[_0x1d8eff(0x2ac)])==null?void 0x0:_0x58d623[_0x47256a])==null?void 0x0:_0x1e3a08[_0x1569eb]},_0x41c91b=(_0x586b28=_0x35a4bd[_0x1569eb])==null?void 0x0:_0x586b28[_0x1d8eff(0x295)],_0x587cfd=_0x36e6e7[_0x41c91b];_0x370df9&&(_0x370df9['v']=_0x2d2a3c(_0x370df9,!0x1,_0x587cfd,_0x293eec)),_0x2c96f3['setValue'](_0x47256a+_0x3ce95f,_0x1569eb+_0x18fde0,_0x435feb(_0x370df9));}const _0x14f43f=_0x7b4263[_0x1d8eff(0x1bd)](),_0x4a9338=_0x7b4263[_0x1d8eff(0x3b7)]();for(let _0x3de074=0x0;_0x3de074<_0x14f43f;_0x3de074++)for(let _0x4654a5=0x0;_0x4654a5<_0x4a9338;_0x4654a5++){const _0x3755e4={...(_0x411b99=(_0x57ac90=_0x7b4263[_0x1d8eff(0x2ac)])==null?void 0x0:_0x57ac90[_0x3de074])==null?void 0x0:_0x411b99[_0x4654a5]};_0x2c96f3[_0x1d8eff(0x183)](_0x3de074+_0x3ce95f,_0x4654a5+_0x1cf38b,_0x435feb(_0x3755e4));}return _0x2c96f3;},_0x5cbcb0=_0x5e0ca1=>{const _0x5dca0b=_0x952e9f,{view:_0x3a9840,targetCellInfo:_0x148534,isEmpty:_0x12c0f2,textInfo:_0x36037c}=_0x5e0ca1;if(_0x12c0f2)return _0x1c782e(_0x5e0ca1);const {pageView:_0x6611bd,cornerView:_0x1a79a3,rowView:_0xda84f1,colView:_0x591a91,dataView:_0xe8a4c6}=_0x3a9840,_0x5956cd=_0x3f4101(_0x148534,_0x6611bd,!0x0),_0x57ab15=_0x6611bd[_0x5dca0b(0x337)]>=0x0?_0x6611bd[_0x5dca0b(0x337)]+0x1:0x0,_0x2b878=_0x1a79a3[_0x5dca0b(0x1bd)](),_0x54ddb7=_0x1a79a3[_0x5dca0b(0x3b7)](),_0x3072d7=_0x5956cd[_0x5dca0b(0x278)]>0x0?_0x18e791:0x0,_0x42f20a=_0x3f4101({'row':_0x148534[_0x5dca0b(0x2f4)]+_0x57ab15+_0x3072d7,'col':_0x148534['col']},_0x1a79a3,!0x1,!0x1),_0xc8c818=_0x3f4101({'row':_0x148534[_0x5dca0b(0x2f4)]+_0x57ab15+_0x3072d7+_0x2b878,'col':_0x148534['col']},_0xda84f1,!0x1,!0x0),_0x1c63d1=_0x3f4101({'row':_0x148534[_0x5dca0b(0x2f4)]+_0x57ab15+_0x3072d7,'col':_0x148534[_0x5dca0b(0x320)]+_0x54ddb7},_0x591a91,!0x1,!0x0),_0x146621=_0x3f4101({'row':_0x148534[_0x5dca0b(0x2f4)]+_0x57ab15+_0x3072d7+_0x2b878,'col':_0x148534[_0x5dca0b(0x320)]+_0x54ddb7},_0xe8a4c6,!0x1,!0x1),_0x5d5714={'rowRanges':_0xc8c818,'colRanges':_0x1c63d1,'cornerRanges':_0x42f20a,'dataRanges':_0x146621,'pageRanges':_0x5956cd};return{'matrix':_0x30dda7(_0x3a9840,_0x148534,_0x36037c),'rangesCache':_0x5d5714};};var _0x531b5a=Object[_0x952e9f(0x169)],_0x3691ac=(_0x40b958,_0x24e429,_0x4176d1,_0xcb71ae)=>{for(var _0x1d9233=_0xcb71ae>0x1?void 0x0:_0xcb71ae?_0x531b5a(_0x24e429,_0x4176d1):_0x24e429,_0x58c151=_0x40b958['length']-0x1,_0xb26485;_0x58c151>=0x0;_0x58c151--)(_0xb26485=_0x40b958[_0x58c151])&&(_0x1d9233=_0xb26485(_0x1d9233)||_0x1d9233);return _0x1d9233;},_0x1a0722=(_0x34bad9,_0x3bc170)=>(_0x291f67,_0x315be5)=>_0x3bc170(_0x291f67,_0x315be5,_0x34bad9);_0x3e9a4b[_0x952e9f(0x386)]=class extends _0x71e749['Disposable']{constructor(_0x40df00,_0x561371,_0x273d81,_0x55ddfd,_0x49f6c4,_0x20ee40){const _0x1d36fd=_0x952e9f;super(),_0x59bac0(this,'_model',new Map()),_0x59bac0(this,_0x1d36fd(0x263),new Map()),_0x59bac0(this,'_viewData',new Map()),_0x59bac0(this,_0x1d36fd(0x1e0)),_0x59bac0(this,_0x1d36fd(0x38f),new _0x11b8a8[(_0x1d36fd(0x384))]()),_0x59bac0(this,_0x1d36fd(0x3f3),this['_collectionChange$'][_0x1d36fd(0x2c1)]()),_0x59bac0(this,_0x1d36fd(0x336),new _0x11b8a8[(_0x1d36fd(0x384))]()),_0x59bac0(this,_0x1d36fd(0x2ff),this['_viewData$'][_0x1d36fd(0x2c1)]()),_0x59bac0(this,_0x1d36fd(0x138),new _0x11b8a8[(_0x1d36fd(0x384))]()),_0x59bac0(this,'fieldsCollectionChange$',this[_0x1d36fd(0x138)][_0x1d36fd(0x2c1)]()),_0x59bac0(this,_0x1d36fd(0x347),new Map()),_0x59bac0(this,_0x1d36fd(0xe1),[]),_0x59bac0(this,_0x1d36fd(0x377),new Map()),(this[_0x1d36fd(0x170)]=_0x40df00,this[_0x1d36fd(0x2ba)]=_0x561371,this[_0x1d36fd(0x11f)]=_0x273d81,this['_configService']=_0x55ddfd,this[_0x1d36fd(0x107)]=_0x49f6c4,this['_resourceManagerService']=_0x20ee40,this['_initSnapshot']());}['getTextInfo'](){const _0x4595be=_0x952e9f;return this[_0x4595be(0x1e0)]?this['_textInfo']:_0x3328ed;}[_0x952e9f(0x2d5)](_0xd84425){const _0x46738b=_0x952e9f;this[_0x46738b(0x1e0)]=_0xd84425;}[_0x952e9f(0x12d)](_0x361d22){const _0x492e09=_0x952e9f;var _0x37e7c5;const {from:_0x23f494,to:_0x463744,unitId:_0xd2e62e,fromRange:_0x5b3459,toRange:_0x3bac00}=_0x361d22;if(_0x23f494&&_0x463744){const _0x371df7=this[_0x492e09(0x351)](_0xd2e62e),_0x4d4600=this['_model'][_0x492e09(0x3dc)](_0xd2e62e),_0x65bde9=(_0x37e7c5=this[_0x492e09(0x2ba)]['getUnit'](_0xd2e62e))==null?void 0x0:_0x37e7c5[_0x492e09(0x216)](_0x463744[_0x492e09(0x277)]);if(!_0x4d4600||!_0x65bde9)return;const _0x5e2a7a=_0x65bde9==null?void 0x0:_0x65bde9[_0x492e09(0x134)]();for(const [_0x31ec65,_0x4483da]of _0x4d4600[_0x492e09(0x3c9)]())for(const [_0x3c3bb6,_0x58ffd2]of _0x4483da[_0x492e09(0x3c9)]()){const {sourceRangeInfo:_0x24aaf5}=_0x58ffd2;if(_0x24aaf5[_0x492e09(0x27e)]===_0xd2e62e&&_0x24aaf5['subUnitId']===_0x23f494[_0x492e09(0x277)]&&_0x71e749['Rectangle']['contains'](_0x5b3459,_0x24aaf5[_0x492e09(0x145)])){const _0x46f407={'row':_0x24aaf5[_0x492e09(0x145)][_0x492e09(0x2fd)]-_0x5b3459[_0x492e09(0x2fd)],'col':_0x24aaf5['range'][_0x492e09(0x3a9)]-_0x5b3459['startColumn']},_0x94a60c={'unitId':_0xd2e62e,'subUnitId':_0x463744[_0x492e09(0x277)],'sheetName':_0x5e2a7a,'range':{'startRow':_0x3bac00[_0x492e09(0x2fd)]+_0x46f407[_0x492e09(0x2f4)],'endRow':_0x3bac00[_0x492e09(0x2fd)]+_0x46f407['row']+_0x24aaf5[_0x492e09(0x145)][_0x492e09(0x22a)]-_0x24aaf5[_0x492e09(0x145)][_0x492e09(0x2fd)],'startColumn':_0x3bac00[_0x492e09(0x3a9)]+_0x46f407[_0x492e09(0x320)],'endColumn':_0x3bac00[_0x492e09(0x3a9)]+_0x46f407[_0x492e09(0x320)]+_0x24aaf5[_0x492e09(0x145)][_0x492e09(0x317)]-_0x24aaf5[_0x492e09(0x145)][_0x492e09(0x3a9)]}};_0x371df7[_0x492e09(0x12d)](_0x3c3bb6,_0x94a60c);const _0x59b0f7={..._0x58ffd2,'sourceRangeInfo':_0x94a60c};this[_0x492e09(0x38a)](_0xd2e62e,_0x463744['subUnitId'],_0x3c3bb6,_0x59b0f7),this['broadcastCollectionChange']({'unitId':_0xd2e62e,'token':_0x3c3bb6,'type':_0x2c797b[_0x492e09(0x311)],'oldSourceRangeInfo':_0x24aaf5,'dataRangeInfo':_0x94a60c,'targetCellInfo':_0x58ffd2[_0x492e09(0x354)]}),this[_0x492e09(0x207)]({'unitId':_0xd2e62e,'subUnitId':_0x463744[_0x492e09(0x277)],'oldSubUnitId':_0x31ec65,'pivotTableId':_0x3c3bb6,'pivotTableConfig':_0x59b0f7,'collectionConfig':_0x371df7['toJSON']()});}}}}[_0x952e9f(0x1c3)](_0x100af1){const _0x1e429f=_0x952e9f;this[_0x1e429f(0x38f)][_0x1e429f(0x348)](_0x100af1);}[_0x952e9f(0x351)](_0x5c393d){const _0x22d9d9=_0x952e9f;let _0x7447a2=this[_0x22d9d9(0x347)][_0x22d9d9(0x3dc)](_0x5c393d);return _0x7447a2||(_0x7447a2=new _0x56de34(this,this[_0x22d9d9(0x2ba)]),this[_0x22d9d9(0x347)][_0x22d9d9(0x23d)](_0x5c393d,_0x7447a2)),_0x7447a2;}['getCollection'](_0x3d9765,_0x4251d6){const _0x1aace7=_0x952e9f;return this[_0x1aace7(0x351)](_0x3d9765)[_0x1aace7(0x3d8)][_0x4251d6];}[_0x952e9f(0x3bb)](_0x4b2998,_0x278582,_0x3520d7){const _0x3e95c0=_0x952e9f;return this[_0x3e95c0(0x351)](_0x4b2998)['getUpdateRangeDeleteIds'](_0x278582,_0x3520d7);}[_0x952e9f(0x372)](_0x138f0,_0x34745a){const _0x10a793=_0x952e9f;let _0x11b59a=this[_0x10a793(0xe2)][_0x10a793(0x3dc)](_0x138f0);_0x11b59a||(_0x11b59a=new Map(),this[_0x10a793(0xe2)][_0x10a793(0x23d)](_0x138f0,_0x11b59a));let _0x54e3c4=_0x11b59a['get'](_0x34745a);return _0x54e3c4||(_0x54e3c4=new Map(),_0x11b59a[_0x10a793(0x23d)](_0x34745a,_0x54e3c4)),_0x54e3c4;}['_updateModelCache'](_0x258302,_0x320141,_0xb33830,_0x5b611e){const _0x1655ab=_0x952e9f;this[_0x1655ab(0x372)](_0x258302,_0x320141)['set'](_0xb33830,_0x5b611e);}[_0x952e9f(0x251)](_0x3145e2,_0x2760fe,_0x5df309){const _0x3aca3c=_0x952e9f;var _0x1b79b3,_0x2af758,_0x51f24f,_0xe9d5bf;((_0x2af758=(_0x1b79b3=this[_0x3aca3c(0xe2)][_0x3aca3c(0x3dc)](_0x3145e2))==null?void 0x0:_0x1b79b3[_0x3aca3c(0x3dc)](_0x2760fe))==null?void 0x0:_0x2af758['get'](_0x5df309))&&((_0xe9d5bf=(_0x51f24f=this[_0x3aca3c(0xe2)][_0x3aca3c(0x3dc)](_0x3145e2))==null?void 0x0:_0x51f24f[_0x3aca3c(0x3dc)](_0x2760fe))==null||_0xe9d5bf['delete'](_0x5df309));}['_updatePivotTableInstanceCache'](_0x56d903,_0x310afd){const _0x3a8997=_0x952e9f;this[_0x3a8997(0x263)][_0x3a8997(0x23d)](_0x56d903,_0x310afd);}[_0x952e9f(0x2e1)](_0x445784){const _0x4a615a=_0x952e9f;this['_pivotTableInstanceCache'][_0x4a615a(0x366)](_0x445784);}[_0x952e9f(0x239)](_0x3639ef,_0x471ae3){const _0xf4d473=_0x952e9f;let _0x57a472=this[_0xf4d473(0x308)]['get'](_0x3639ef);_0x57a472||(_0x57a472=new Map(),this[_0xf4d473(0x308)][_0xf4d473(0x23d)](_0x3639ef,_0x57a472));let _0x2b0fe2=_0x57a472['get'](_0x471ae3);return _0x2b0fe2||(_0x2b0fe2=new Map(),_0x57a472[_0xf4d473(0x23d)](_0x471ae3,_0x2b0fe2)),_0x2b0fe2;}['updateConfig'](_0x5ace58){const _0xd32185=_0x952e9f,{unitId:_0x271e6e,subUnitId:_0x567db1,pivotTableId:_0x594834,pivotTableConfig:_0xa7e9aa,collectionConfig:_0x12f524}=_0x5ace58,_0x55c461={'unitId':_0x271e6e,'subUnitId':_0x567db1,'oldSubUnitId':_0x567db1,'pivotTableId':_0x594834,'pivotTableConfig':_0xa7e9aa,'collectionConfig':_0x12f524};this[_0xd32185(0x107)][_0xd32185(0xfd)](_0x4c06b7['id'],_0x55c461,{'onlyLocal':!0x0});}[_0x952e9f(0x39a)](_0x1b9244,_0x43fb96,_0x5345ff,_0x3462df,_0x316bbb,_0x57279e,_0x4e3edc,_0x5a5f8b=!0x1){const _0x1e2334=_0x952e9f;var _0x521272;this[_0x1e2334(0x107)]['executeCommand'](_0x13964a['id'],{'single':{'unitId':_0x1b9244,'subUnitId':_0x43fb96,'type':_0x5345ff,'pivotTableId':_0x3462df,'view':_0x316bbb,'pivotConfig':_0x57279e},'collectionConfig':{[_0x1b9244]:_0x4e3edc}},{'onlyLocal':!0x0});const _0x3a40af=!!((_0x521272=this[_0x1e2334(0x123)](_0x3462df))!=null&&_0x521272[_0x1e2334(0x36b)]()),_0x566635=this[_0x1e2334(0x405)](_0x1b9244,_0x43fb96,_0x3462df);_0x566635&&this[_0x1e2334(0x12a)]({'view':_0x316bbb,'pivotTableId':_0x3462df,'textInfo':this['getTextInfo'](),'isEmpty':_0x3a40af,'targetCellInfo':_0x566635['targetCellInfo']},_0x5a5f8b);}[_0x952e9f(0x12a)](_0x15d512,_0x5259f7){const _0x1a7ed6=_0x952e9f,{targetCellInfo:_0x53f137,pivotTableId:_0x4830fb}=_0x15d512,{unitId:_0x5193b9,subUnitId:_0x5d4b68}=_0x53f137,_0x259e54=this[_0x1a7ed6(0x239)](_0x5193b9,_0x5d4b68),_0x4c5d5f=_0x259e54[_0x1a7ed6(0x3dc)](_0x4830fb);let _0x41d174,_0x13286c;_0x4c5d5f&&(_0x41d174=_0x4c5d5f['rangeCache'],_0x13286c=_0x4c5d5f[_0x1a7ed6(0x3ed)]);const {rangesCache:_0x63ea66,matrix:_0x453d45}=_0x5cbcb0(_0x15d512);_0x259e54[_0x1a7ed6(0x23d)](_0x4830fb,{'rangeCache':_0x63ea66,'matrix':_0x453d45,'oldMatrix':_0x13286c,'oldRangeCache':_0x41d174}),_0x5259f7||this[_0x1a7ed6(0x336)][_0x1a7ed6(0x348)]({'unitId':_0x5193b9,'subUnitId':_0x5d4b68,'pivotTableId':_0x4830fb});}[_0x952e9f(0x261)](_0x4d9db6,_0x24e669,_0x2d9b26,_0x1586bc,_0x403a47){const _0x5a53ba=_0x952e9f;this['_updateModelCache'](_0x4d9db6,_0x24e669,_0x2d9b26,_0x403a47),this[_0x5a53ba(0x1e9)](_0x2d9b26,_0x1586bc);}[_0x952e9f(0x3a4)](_0x300286,_0x415349,_0x21f0fe){const _0x380ed7=_0x952e9f,_0x276b9b=this[_0x380ed7(0x351)](_0x300286);_0x276b9b[_0x380ed7(0x25f)](_0x21f0fe)[_0x380ed7(0x1fb)](_0x19a69b=>{const _0x8d52b5=_0x380ed7;_0x276b9b[_0x8d52b5(0x1eb)](_0x19a69b);}),this['removeCollections'](_0x300286,_0x21f0fe),this[_0x380ed7(0x251)](_0x300286,_0x415349,_0x21f0fe),this['_deletePivotTableInstanceCache'](_0x21f0fe);}[_0x952e9f(0x2a0)](_0x1f1c07,_0x46b6be,_0x2d3617,_0x109a63){this['_updateModelCache'](_0x1f1c07,_0x46b6be,_0x2d3617,_0x109a63);}[_0x952e9f(0x405)](_0x5caded,_0x2680b7,_0x44e854){const _0x898546=_0x952e9f;var _0x1b0c04,_0x415f4d;const _0x39bb57=(_0x415f4d=(_0x1b0c04=this[_0x898546(0xe2)][_0x898546(0x3dc)](_0x5caded))==null?void 0x0:_0x1b0c04[_0x898546(0x3dc)](_0x2680b7))==null?void 0x0:_0x415f4d[_0x898546(0x3dc)](_0x44e854);if(_0x39bb57)return _0x39bb57;}[_0x952e9f(0x3d7)](_0x195302,_0x2eeb0f,_0x509673){const _0x1747db=_0x952e9f;var _0xc87d29,_0xcd669d;const _0x30fb2f=(_0xcd669d=(_0xc87d29=this[_0x1747db(0xe2)][_0x1747db(0x3dc)](_0x195302))==null?void 0x0:_0xc87d29[_0x1747db(0x3dc)](_0x2eeb0f))==null?void 0x0:_0xcd669d[_0x1747db(0x3dc)](_0x509673);if(_0x30fb2f)return _0x30fb2f[_0x1747db(0x13c)];}[_0x952e9f(0x123)](_0x5d882c){const _0x21ffb7=_0x952e9f;return this[_0x21ffb7(0x263)][_0x21ffb7(0x3dc)](_0x5d882c);}[_0x952e9f(0x262)](_0x1f5bbf){const _0xfebde0=_0x952e9f;this[_0xfebde0(0xe2)][_0xfebde0(0x366)](_0x1f5bbf);const _0x56551b=this[_0xfebde0(0x347)]['get'](_0x1f5bbf);_0x56551b&&(_0x56551b[_0xfebde0(0x3e3)](),this[_0xfebde0(0x347)][_0xfebde0(0x366)](_0x1f5bbf)),this[_0xfebde0(0x308)][_0xfebde0(0x366)](_0x1f5bbf),this['needSameDeleteModel']['forEach'](_0x1dc86a=>{_0x1dc86a['deleteUnitId'](_0x1f5bbf);});}[_0x952e9f(0x132)](_0x4570cc,_0x5b070c,_0x388f79,_0x202be4){const _0x3691c6=_0x952e9f;return this[_0x3691c6(0x351)](_0x388f79[_0x3691c6(0x27e)])['addCollectionByJSON'](_0x4570cc,_0x5b070c,_0x388f79,_0x202be4);}[_0x952e9f(0x252)](_0x236f72){const _0x278d6f=_0x952e9f;return this[_0x278d6f(0x351)](_0x236f72['unitId'])[_0x278d6f(0x252)](_0x236f72);}[_0x952e9f(0x16d)](_0xc072be,_0x160de8,_0x2dac4b){const _0x4c6a5f=_0x952e9f;this[_0x4c6a5f(0x351)](_0x2dac4b[_0x4c6a5f(0x27e)])[_0x4c6a5f(0x16d)](_0xc072be,_0x160de8,_0x2dac4b);}['removeDataField'](_0x116207,_0x83cb26){const _0x33cb48=_0x952e9f;this[_0x33cb48(0x351)](_0x116207)[_0x33cb48(0x1eb)](_0x83cb26);}[_0x952e9f(0x3dd)](_0x5b2a08,_0x523e47){this['getDataFieldManager'](_0x5b2a08)['removeCollectionImp'](_0x523e47);}[_0x952e9f(0x329)](_0x9821ab,_0x4d7fee){const _0x2b9f2e=_0x952e9f;var _0x3ee25d;return(_0x3ee25d=this[_0x2b9f2e(0xe2)][_0x2b9f2e(0x3dc)](_0x9821ab))==null?void 0x0:_0x3ee25d['get'](_0x4d7fee);}[_0x952e9f(0x1cd)](_0x37c2c3){const _0x41d993=_0x952e9f;for(const [_0x5473c0,_0x447a4c]of this[_0x41d993(0xe2)][_0x41d993(0x3c9)]())for(const [_0x1a7064,_0x460fb3]of _0x447a4c[_0x41d993(0x3c9)]())if(_0x460fb3[_0x41d993(0x2cc)](_0x37c2c3))return{'unitId':_0x5473c0,'subUnitId':_0x1a7064};return null;}[_0x952e9f(0x113)](_0x5118f4,_0x526a24,_0x59cc0f,_0x58f62b){const _0x222262=_0x952e9f,_0x5a9dde=this[_0x222262(0x239)](_0x5118f4,_0x526a24);_0x58f62b?_0x5a9dde[_0x222262(0x23d)](_0x59cc0f,_0x58f62b):_0x5a9dde[_0x222262(0x366)](_0x59cc0f),this[_0x222262(0x336)][_0x222262(0x348)]({'unitId':_0x5118f4,'subUnitId':_0x526a24,'pivotTableId':_0x59cc0f});}[_0x952e9f(0x3e3)](){super['dispose']();}[_0x952e9f(0x327)](_0x2a9f21,_0x155d05,_0x5e01e4){const _0x303162=_0x952e9f;var _0x803c5b,_0xb5fd80;const _0x577484=(_0xb5fd80=(_0x803c5b=this[_0x303162(0x308)]['get'](_0x2a9f21))==null?void 0x0:_0x803c5b['get'](_0x155d05))==null?void 0x0:_0xb5fd80[_0x303162(0x3dc)](_0x5e01e4);return _0x577484||null;}['addDirtyPivotTable'](_0x3ffd02){const _0x52a0a6=_0x952e9f;this[_0x52a0a6(0x197)](_0x3ffd02);}[_0x952e9f(0x197)](_0x186f0d){const _0x110f28=_0x952e9f,{token:_0x51c045,unitId:_0x39135f,subUnitId:_0x286f64}=_0x186f0d,_0x56b236=_0x39135f+'-'+_0x286f64+'-'+_0x51c045;this[_0x110f28(0x377)][_0x110f28(0x3dc)](_0x56b236)&&clearTimeout(this[_0x110f28(0x377)]['get'](_0x56b236));const _0x12708a=setTimeout(()=>{const _0x446489=_0x110f28;this[_0x446489(0x20c)](_0x186f0d),this[_0x446489(0x377)]['delete'](_0x56b236);},_0x5650cd);this[_0x110f28(0x377)][_0x110f28(0x23d)](_0x56b236,_0x12708a);}[_0x952e9f(0x20c)](_0x3470ce){const _0x2b9f6c=_0x952e9f,{unitId:_0x5eed52,subUnitId:_0x277f57,token:_0x41c51b,type:_0x7ffa04,pivotConfig:_0x270353}=_0x3470ce,_0x39ca22=this[_0x2b9f6c(0x123)](_0x41c51b),_0x58f21a=_0x39ca22==null?void 0x0:_0x39ca22[_0x2b9f6c(0x393)](),_0x18b905=_0x270353!=null?_0x270353:this['getPivotTableConfig'](_0x5eed52,_0x277f57,_0x41c51b);_0x18b905&&(_0x18b905[_0x2b9f6c(0x36b)]=!!(_0x39ca22!=null&&_0x39ca22[_0x2b9f6c(0x36b)]())),(_0x58f21a||_0x7ffa04===_0x5cfd72[_0x2b9f6c(0x22c)])&&this['updateView'](_0x5eed52,_0x277f57,_0x7ffa04,_0x41c51b,_0x58f21a,_0x18b905,this[_0x2b9f6c(0x351)](_0x5eed52)[_0x2b9f6c(0x117)]());}[_0x952e9f(0x117)](_0x173022){const _0x3a6f57=_0x952e9f,_0x68b35c={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x3a6f57(0x351)](_0x173022)&&(_0x68b35c['dataFieldManagerConfig'][_0x173022]=this[_0x3a6f57(0x351)](_0x173022)[_0x3a6f57(0x117)]()),this['_model'][_0x3a6f57(0x3dc)](_0x173022)){_0x68b35c[_0x3a6f57(0x26c)][_0x173022]={};const _0x3ea64e=this[_0x3a6f57(0xe2)]['get'](_0x173022);_0x3ea64e!=null&&_0x3ea64e['size']&&[..._0x3ea64e['keys']()][_0x3a6f57(0x1fb)](_0x222133=>{const _0x351710=_0x3a6f57,_0x2bb802=_0x3ea64e[_0x351710(0x3dc)](_0x222133);_0x2bb802!=null&&_0x2bb802[_0x351710(0x303)]&&(_0x68b35c[_0x351710(0x26c)][_0x173022][_0x222133]={},[..._0x2bb802['keys']()][_0x351710(0x1fb)](_0x1dfb47=>{const _0x52acf2=_0x351710,_0x5ec028=_0x2bb802[_0x52acf2(0x3dc)](_0x1dfb47);_0x5ec028&&(_0x68b35c['pivotTableConfigs'][_0x173022][_0x222133][_0x1dfb47]=_0x5ec028);}));});}return _0x68b35c;}[_0x952e9f(0x136)](_0x39d0cb){const _0x33e360=_0x952e9f;var _0x559798;const {dataFieldManagerConfig:_0x2efbbd,pivotTableConfigs:_0x4ccf77}=_0x39d0cb;_0x2efbbd&&Object[_0x33e360(0x111)](_0x2efbbd)['forEach'](_0x4713b0=>{const _0x47af3e=_0x33e360;this['getDataFieldManager'](_0x4713b0)[_0x47af3e(0x136)](_0x2efbbd[_0x4713b0]);});const _0x4155f6=[];if(_0x4ccf77){const _0x46d337=(_0x559798=this[_0x33e360(0x170)][_0x33e360(0x3dc)](_0x71e749['IConfigService'])['getConfig'](_0x53e420[_0x33e360(0xe5)]))!=null?_0x559798:{},{ls:_0x319e8a,pbk:_0x2c8055}=_0x46d337,_0x401c12=_0xfe1c71(_0x1a1b40,_0x319e8a,_0x2c8055)['count'];Object[_0x33e360(0x111)](_0x4ccf77)[_0x33e360(0x1fb)](_0x527ad3=>{const _0x2fdbc9=_0x33e360;let _0x58358a=0x0;const _0x5b835e=_0x4ccf77[_0x527ad3];Object[_0x2fdbc9(0x111)](_0x5b835e)[_0x2fdbc9(0x1fb)](_0x1fde82=>{const _0xbb6437=_0x2fdbc9,_0x4bc245=_0x5b835e[_0x1fde82];Object[_0xbb6437(0x111)](_0x4bc245)[_0xbb6437(0x1fb)](_0x46038d=>{const _0x4c1665=_0xbb6437,_0x391529=_0x4bc245[_0x46038d];if(_0x391529){if(_0x58358a>=_0x401c12)return;_0x58358a++;const _0x3e0a3a=this[_0x4c1665(0x351)](_0x527ad3),_0x3a2375=_0x3e0a3a[_0x4c1665(0x3d8)][_0x46038d],_0x32b006=_0x3a2375['getFieldIds']();let _0xf01a53=0x0;const _0x26a49f=[];for(const _0x10d5c8 of _0x32b006){const _0x5163b9=_0x3a2375[_0x4c1665(0x17d)](_0x10d5c8);if(_0x1978cb[_0x4c1665(0x26a)](_0x5163b9)){const _0x1e02c3=_0x5163b9[_0x4c1665(0x245)](),_0x378531=_0x3a2375[_0x4c1665(0x17d)](_0x1e02c3);_0x378531&&_0x26a49f[_0x4c1665(0x2b7)]([_0x5163b9,_0x378531]);continue;}_0x3e0a3a[_0x4c1665(0x3e9)](_0x10d5c8,_0x391529[_0x4c1665(0x3a8)],_0xf01a53),_0xf01a53++;}_0x26a49f[_0x4c1665(0x1fb)](([_0xd15262,_0x5a83d4])=>{const _0xa0f40d=_0x4c1665;_0xd15262[_0xa0f40d(0x2f1)](_0x5a83d4);});const _0x35826f=new _0x1978cb[(_0x4c1665(0x28e))](_0x3a2375);_0x35826f['fromJSON'](_0x391529['fieldsConfig']),this[_0x4c1665(0x261)](_0x527ad3,_0x1fde82,_0x46038d,_0x35826f,_0x391529);const _0x26b742=_0x35826f[_0x4c1665(0x393)]();_0x4155f6[_0x4c1665(0x2b7)]({'unitId':_0x527ad3,'subUnitId':_0x1fde82,'pivotTableId':_0x46038d,'view':_0x26b742[_0x4c1665(0x117)](),'pivotConfig':_0x391529,'type':_0x5cfd72[_0x4c1665(0x38e)]});const _0x5224db=!!_0x35826f[_0x4c1665(0x36b)](),_0x5d5c8d={'view':_0x26b742,'pivotTableId':_0x46038d,'textInfo':this[_0x4c1665(0x2a1)](),'isEmpty':_0x5224db,'targetCellInfo':_0x391529[_0x4c1665(0x354)]};this[_0x4c1665(0x12a)](_0x5d5c8d,!0x1);}});});});}_0x2efbbd&&Object[_0x33e360(0x111)](_0x2efbbd)[_0x33e360(0x1fb)](_0x58f505=>{const _0x379163=_0x33e360,_0x41e550=this[_0x379163(0x351)](_0x58f505);this[_0x379163(0x138)][_0x379163(0x348)](_0x41e550[_0x379163(0x3d8)]);}),this[_0x33e360(0x107)][_0x33e360(0xfd)](_0x13964a['id'],{'batch':_0x4155f6,'collectionConfig':_0x2efbbd},{'onlyLocal':!0x0});}[_0x952e9f(0x18a)](){const _0x85d937=_0x952e9f;this[_0x85d937(0x2fa)](this[_0x85d937(0x371)][_0x85d937(0x390)]({'toJson':_0x4bd922=>JSON['stringify'](this[_0x85d937(0x117)](_0x4bd922)),'parseJson':_0x340046=>{const _0x48a6e5=_0x85d937;if(!_0x340046)return{};try{return JSON[_0x48a6e5(0x2f8)](_0x340046);}catch{return{};}},'businesses':[_0x71e749[_0x85d937(0x21f)][_0x85d937(0xfe)]],'pluginName':_0x510c58,'onLoad':(_0x510ae2,_0x508b87)=>{const _0x54badf=_0x85d937;this[_0x54badf(0x136)](_0x508b87);},'onUnLoad':_0x3ae707=>{const _0x4652e9=_0x85d937;this[_0x4652e9(0x262)](_0x3ae707);}}));}},_0x3e9a4b[_0x952e9f(0x386)]=_0x3691ac([_0x1a0722(0x0,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x297)])),_0x1a0722(0x1,_0x71e749['IUniverInstanceService']),_0x1a0722(0x2,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x288)])),_0x1a0722(0x3,_0x71e749[_0x952e9f(0x225)]),_0x1a0722(0x4,_0x71e749['ICommandService']),_0x1a0722(0x5,_0x71e749['Inject'](_0x71e749[_0x952e9f(0x29e)]))],_0x3e9a4b[_0x952e9f(0x386)]);const _0x29033d={0x0:{0x0:{'v':_0x952e9f(0x279),'s':_0x14db19}},0x2:{0x1:{'v':'','s':_0x14db19},0x2:{'v':'','s':_0x14db19},0x3:{'v':_0x952e9f(0x192),'s':_0x14db19},0x4:{'v':'','s':_0x14db19},0x5:{'v':'','s':_0x14db19}},0x3:{0x0:{'v':'','s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':'','s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}},0x4:{0x0:{'v':'','s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':'','s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}},0x5:{0x0:{'v':'','s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':'','s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}},0x6:{0x0:{'v':'','s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':'','s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}},0x7:{0x0:{'v':'','s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':'','s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}},0x8:{0x0:{'v':_0x952e9f(0x2f4),'s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':_0x952e9f(0xed),'s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}},0x9:{0x0:{'v':'','s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':'','s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}},0xa:{0x0:{'v':'','s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':'','s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}},0xb:{0x0:{'v':'','s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':'','s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}},0xc:{0x0:{'v':'','s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':'','s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}},0xd:{0x0:{'v':'','s':_0x14db19},0x1:{'v':'','s':_0x19a4fc},0x2:{'v':'','s':_0x19a4fc},0x3:{'v':'','s':_0x19a4fc},0x4:{'v':'','s':_0x19a4fc},0x5:{'v':'','s':_0x19a4fc}}},_0x45f0f0={'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':[]},_0x59b07e=(_0x4f68f1,_0x389759)=>{const _0x265395=_0x952e9f,_0x2df0f1=new _0x71e749[(_0x265395(0x3f8))](),_0x26bcd0=new _0x71e749[(_0x265395(0x3f8))](_0x29033d),{row:_0x3f10b0,col:_0x585586}=_0x389759;_0x26bcd0[_0x265395(0x2c5)]((_0xa8fac9,_0x29e267,_0x269311)=>{const _0xddedf1=_0x265395;let _0xfe490c='';_0x269311['v']===_0xddedf1(0x279)?_0xfe490c=_0x4f68f1[_0xddedf1(0x279)]:_0x269311['v']===_0xddedf1(0x2f4)?_0xfe490c=_0x4f68f1[_0xddedf1(0x2f4)]:_0x269311['v']==='column'?_0xfe490c=_0x4f68f1['column']:_0x269311['v']===_0xddedf1(0xed)&&(_0xfe490c=_0x4f68f1[_0xddedf1(0xed)]),_0x2df0f1['setValue'](_0xa8fac9+_0x3f10b0,_0x29e267+_0x585586,{..._0x269311,'v':_0xfe490c});});const _0x52e602=_0x71e749[_0x265395(0x349)][_0x265395(0x2b1)](_0x45f0f0);return Object[_0x265395(0x111)](_0x45f0f0)[_0x265395(0x1fb)](_0xb6fa63=>{const _0x792759=_0x265395;_0x52e602[_0xb6fa63]=_0x45f0f0[_0xb6fa63]['map'](_0x51e544=>({..._0x51e544,'startRow':_0x51e544[_0x792759(0x2fd)]+_0x3f10b0,'endRow':_0x51e544[_0x792759(0x22a)]+_0x3f10b0,'startColumn':_0x51e544[_0x792759(0x3a9)]+_0x585586,'endColumn':_0x51e544[_0x792759(0x317)]+_0x585586}));}),{'matrixCache':_0x2df0f1,'rangesCache':_0x52e602};};function _0x5d9b48(_0x271b35,_0x3e2d43){const _0x394a5e=_0x952e9f;let _0x3ab969='';const _0x47967b=this[_0x394a5e(0x2a1)]();switch(_0x3e2d43){case _0x1978cb[_0x394a5e(0x33e)][_0x394a5e(0x330)]:_0x3ab969=_0x47967b[_0x394a5e(0xeb)]+_0x271b35;break;case _0x1978cb['PivotSubtotalTypeEnum'][_0x394a5e(0x165)]:_0x3ab969=_0x47967b[_0x394a5e(0x14c)]+_0x271b35;break;case _0x1978cb['PivotSubtotalTypeEnum'][_0x394a5e(0xf2)]:_0x3ab969=_0x47967b[_0x394a5e(0x224)]+_0x271b35;break;case _0x1978cb[_0x394a5e(0x33e)][_0x394a5e(0x368)]:_0x3ab969=_0x47967b['sheets-pivot.maxName']+_0x271b35;break;case _0x1978cb[_0x394a5e(0x33e)]['min']:_0x3ab969=_0x47967b[_0x394a5e(0x3c2)]+_0x271b35;break;case _0x1978cb[_0x394a5e(0x33e)][_0x394a5e(0x30c)]:_0x3ab969=_0x47967b['sheets-pivot.productName']+_0x271b35;break;case _0x1978cb[_0x394a5e(0x33e)][_0x394a5e(0x3bd)]:_0x3ab969=_0x47967b['sheets-pivot.stdDevName']+_0x271b35;break;case _0x1978cb[_0x394a5e(0x33e)][_0x394a5e(0x133)]:_0x3ab969=_0x47967b[_0x394a5e(0x235)]+_0x271b35;break;case _0x1978cb['PivotSubtotalTypeEnum'][_0x394a5e(0x242)]:_0x3ab969=_0x47967b['sheets-pivot.sumName']+_0x271b35;break;case _0x1978cb['PivotSubtotalTypeEnum'][_0x394a5e(0x3b0)]:_0x3ab969=_0x47967b[_0x394a5e(0x323)]+_0x271b35;break;case _0x1978cb['PivotSubtotalTypeEnum'][_0x394a5e(0x3d0)]:_0x3ab969=_0x47967b['sheets-pivot.varpName']+_0x271b35;break;default:_0x3ab969=_0x271b35;break;}return _0x3ab969;}function _0x45e11b(_0x28944e,_0x573324,_0x3bc0d2,_0x2281d6,_0xa31300){const _0x39b828=_0x952e9f;var _0x8d3d8,_0x4844e6,_0x2effac,_0x300a5a,_0x15c7e6;const _0x1b6207=_0x71e749[_0x39b828(0x1a0)](_0x28944e,_0x573324),{rangesInfo:_0x24c933,areaInfo:_0x43ad0d,headerMap:_0x57f70e}=_0xa31300;if(!_0x24c933||!_0x43ad0d||!_0x57f70e)return;const _0x5c4f03=Object[_0x39b828(0x111)](_0x24c933)[_0x39b828(0x2d4)](_0x53532d=>_0x24c933[_0x53532d][_0x39b828(0x131)](_0x46fc77=>_0x71e749[_0x39b828(0x28b)][_0x39b828(0x1b9)](_0x46fc77,_0x1b6207))),_0x4547b1=_0x43ad0d;let _0x11ea73,_0x580687,_0x5a8103;if(_0x5c4f03===_0x39b828(0x1b0))_0x11ea73=(_0x8d3d8=_0x4547b1==null?void 0x0:_0x4547b1[_0x39b828(0x109)])==null?void 0x0:_0x8d3d8[_0x28944e],_0x580687=(_0x4844e6=_0x57f70e==null?void 0x0:_0x57f70e['rowHeaderMap'])==null?void 0x0:_0x4844e6[_0x573324],_0x5a8103=_0x580687==null?void 0x0:_0x580687[_0x39b828(0x295)];else{if(_0x5c4f03===_0x39b828(0x2eb))_0x11ea73=(_0x2effac=_0x4547b1==null?void 0x0:_0x4547b1['colInfo'])==null?void 0x0:_0x2effac[_0x573324],_0x580687=(_0x300a5a=_0x57f70e[_0x39b828(0x12e)])==null?void 0x0:_0x300a5a[_0x28944e+0x1+_0x573324-_0x24c933[_0x39b828(0x2eb)][0x0][_0x39b828(0x3a9)]],_0x5a8103=_0x580687==null?void 0x0:_0x580687['tableFieldId'];else{if(_0x5c4f03===_0x39b828(0x2d1))_0x11ea73=(_0x15c7e6=_0x4547b1==null?void 0x0:_0x4547b1[_0x39b828(0x1e5)])==null?void 0x0:_0x15c7e6[_0x573324],_0x5a8103=_0x11ea73==null?void 0x0:_0x11ea73[_0x39b828(0x295)];else{if(_0x5c4f03===_0x39b828(0x3a7)){const _0xdc41f3=_0x3bc0d2==null?void 0x0:_0x3bc0d2['fi'];_0xdc41f3!==void 0x0&&(_0x5a8103=_0x2281d6[_0x39b828(0x385)](_0xdc41f3));}}}}return{'filterId':_0x5a8103,'info':_0x11ea73,'data':_0x3bc0d2,'headerInfo':_0x580687};}function _0x2f2bc4(_0x44c224,_0x240a3f,_0x178b3f){const _0x2263eb=_0x952e9f,_0x6ac414=_0x44c224[_0x2263eb(0x25b)],_0x3ad8da=_0x6ac414[_0x2263eb(0x31b)](),_0x2e4ac4=new Set();_0x44c224['iterateField'](_0x5d8277=>{const _0x4bc2ff=_0x2263eb;_0x2e4ac4[_0x4bc2ff(0x249)](_0x5d8277[_0x4bc2ff(0x3f2)]);});const _0x18b383=_0x3ad8da['map'](_0xa9e653=>{const _0x4e7fea=_0x2263eb,_0x40e33b=_0x6ac414[_0x4e7fea(0x17d)](_0xa9e653);return{'checked':_0x2e4ac4['has'](_0xa9e653),'dataFieldId':_0x40e33b['id'],'id':_0x40e33b['id'],'name':_0x6ac414['getDisplayName'](_0x40e33b['id']),'type':_0x40e33b[_0x4e7fea(0x222)](),'pivotTableId':_0x240a3f};}),_0x2d63db=[];_0x44c224[_0x2263eb(0x1e6)](_0x1978cb[_0x2263eb(0x3be)]['Row'],_0x4fa0fe=>{const _0x39d3ac=_0x2263eb;_0x2d63db['push']({'dataFieldId':_0x4fa0fe[_0x39d3ac(0x3f2)],'tableFieldId':_0x4fa0fe['getId'](),'displayName':_0x4fa0fe[_0x39d3ac(0x186)]()});});const _0x1105a5=[];_0x44c224['iterateFieldByArea'](_0x1978cb[_0x2263eb(0x3be)][_0x2263eb(0x3f0)],_0x5320d0=>{const _0x33d522=_0x2263eb;_0x1105a5[_0x33d522(0x2b7)]({'dataFieldId':_0x5320d0[_0x33d522(0x3f2)],'tableFieldId':_0x5320d0[_0x33d522(0x1ed)](),'displayName':_0x5320d0[_0x33d522(0x186)]()});});const _0xa63789=[];if(_0x44c224['iterateFieldByArea'](_0x1978cb[_0x2263eb(0x3be)][_0x2263eb(0x2f0)],_0x429d4c=>{const _0x2477eb=_0x2263eb;_0xa63789[_0x2477eb(0x2b7)]({'dataFieldId':_0x429d4c['dataFieldId'],'tableFieldId':_0x429d4c['getId'](),'displayName':_0x429d4c['getDisplayName'](),'format':_0x429d4c[_0x2477eb(0x29a)](),'subTotalType':_0x429d4c[_0x2477eb(0x1a3)]()});}),_0xa63789[_0x2263eb(0x278)]>0x1){const _0xe1090a=_0x44c224['getValueIndex']();(_0x44c224['isColMultiMeasure']()?_0x1105a5:_0x2d63db)['splice'](_0xe1090a,0x0,{'dataFieldId':'','tableFieldId':_0x2263eb(0x226),'displayName':'ΣValue'});}const _0x1e1df1=[];_0x44c224[_0x2263eb(0x1e6)](_0x1978cb[_0x2263eb(0x3be)][_0x2263eb(0x341)],_0x1084be=>{const _0xcd80c7=_0x2263eb;_0x1e1df1['push']({'dataFieldId':_0x1084be[_0xcd80c7(0x3f2)],'tableFieldId':_0x1084be['getId'](),'displayName':_0x1084be[_0xcd80c7(0x186)]()});});const _0x279592=_0x178b3f[_0x2263eb(0x3a8)];return{'sourceList':_0x18b383,'sourceRange':_0x279592,'rowFields':_0x2d63db,'columnFields':_0x1105a5,'valueFields':_0xa63789,'filterFields':_0x1e1df1,'positionInfo':_0x178b3f['targetCellInfo']};}function _0x15f1eb(_0x3cac73,_0x478a91,_0x430cb0='',_0x3a4350={}){const _0xdecd54=_0x952e9f,_0x5c748d=_0x3cac73[_0xdecd54(0x3dc)](_0x71e749[_0xdecd54(0x364)]);for(const _0x384baa in _0x478a91)if(Object[_0xdecd54(0x374)][_0xdecd54(0x120)][_0xdecd54(0x29f)](_0x478a91,_0x384baa)){const _0xd7378=_0x430cb0?_0x430cb0+'.'+_0x384baa:_0x384baa;typeof _0x478a91[_0x384baa]==_0xdecd54(0x3c5)&&_0x478a91[_0x384baa]!==null&&!Array[_0xdecd54(0x1a1)](_0x478a91[_0x384baa])?_0x15f1eb(_0x3cac73,_0x478a91[_0x384baa],_0xd7378,_0x3a4350):_0x3a4350[_0xd7378]=_0x5c748d['t'](_0xd7378);}return _0x3a4350;}const _0x3e9c2e=_0x28594f=>{const _0x2ff8b8=_0x952e9f;if(!_0x28594f)return[];const {rowRanges:_0x37756f,colRanges:_0xd3e39b,cornerRanges:_0x5c9e5a,dataRanges:_0x1fa373,pageRanges:_0x4e0a8d}=_0x28594f,_0x539464=[..._0xd3e39b,..._0x37756f,..._0x1fa373,..._0x5c9e5a][_0x2ff8b8(0x279)](_0x2e663e=>_0x2e663e[_0x2ff8b8(0x2fd)]>=0x0&&_0x2e663e[_0x2ff8b8(0x3a9)]>=0x0&&_0x2e663e[_0x2ff8b8(0x22a)]>=0x0&&_0x2e663e[_0x2ff8b8(0x317)]>=0x0);let _0x5cb1ea=Number[_0x2ff8b8(0x2ce)],_0x478de5=Number[_0x2ff8b8(0x36c)],_0x53ebe1=Number['MAX_SAFE_INTEGER'],_0x454cf4=Number[_0x2ff8b8(0x36c)];for(let _0x5a07f2=0x0;_0x5a07f2<_0x539464[_0x2ff8b8(0x278)];_0x5a07f2++)_0x5cb1ea=Math[_0x2ff8b8(0x34c)](_0x5cb1ea,_0x539464[_0x5a07f2]['startRow']),_0x478de5=Math[_0x2ff8b8(0x368)](_0x478de5,_0x539464[_0x5a07f2]['endRow']),_0x53ebe1=Math['min'](_0x53ebe1,_0x539464[_0x5a07f2][_0x2ff8b8(0x3a9)]),_0x454cf4=Math[_0x2ff8b8(0x368)](_0x454cf4,_0x539464[_0x5a07f2]['endColumn']);return[..._0x4e0a8d,{'startRow':_0x5cb1ea,'endRow':_0x478de5,'startColumn':_0x53ebe1,'endColumn':_0x454cf4}];};function _0x2edfac(_0xb57a77,_0x30577f){const _0x297980=_0x952e9f,_0x18edc7=_0x30577f['params'][_0x297980(0x16f)],{pivotTableId:_0x19612b,unitId:_0x1850cc,subUnitId:_0x1502ce}=_0x30577f;if(!_0x18edc7)return;const _0xde788d=_0xb57a77['get'](_0x3e9a4b[_0x297980(0x386)]),_0x3f9cbc=_0xde788d[_0x297980(0x123)](_0x19612b),_0x31439e=_0xde788d[_0x297980(0x405)](_0x1850cc,_0x1502ce,_0x19612b);if(!_0x3f9cbc||!_0x31439e)return;const _0x184ef9=_0x3f9cbc['getIndexesByPathStr'](_0x18edc7[_0x297980(0x2df)]);if(!(_0x184ef9!=null&&_0x184ef9[_0x297980(0x278)]))return;const _0x26df1f=_0x31439e[_0x297980(0x3a8)],{unitId:_0x3d67c3,subUnitId:_0x3db0bc,range:_0x3075ba}=_0x26df1f;let _0x50e634=0x0;const _0x26290e=_0x3f9cbc['dataFieldsCollection'][_0x297980(0x31b)]()['reduce']((_0x794efc,_0x469c11)=>{const _0x501440=_0x297980;var _0x144512;const _0x435a17=(_0x144512=_0x3f9cbc[_0x501440(0x36a)](_0x469c11))==null?void 0x0:_0x144512[_0x501440(0x27c)]();return _0x435a17&&(_0x794efc[String(_0x50e634)]=_0x435a17),_0x50e634++,_0x794efc;},{});return{'indexes':_0x184ef9,'range':_0x3075ba,'sourceUnitId':_0x3d67c3,'sourceSubUnitId':_0x3db0bc,'formatMap':_0x26290e};}function _0x4f39c8(_0x41b586,_0x362b88){const _0x402bbf=_0x952e9f;if(!_0x41b586||!_0x362b88)return!0x0;const _0x1e0234=_0x53e420[_0x402bbf(0xdf)](_0x3dfaa6,_0x3a0815),_0x2b6a31=new Function(_0x402bbf(0x156)+_0x1e0234)()(_0x41b586,_0x362b88)[_0x402bbf(0x1b3)],_0x21c073=_0x53e420[_0x402bbf(0x2bf)](_0x2b6a31,'sf',_0x1354fd);return!((_0x2b6a31==null?void 0x0:_0x2b6a31['rt'])===_0x53e420[_0x402bbf(0x1f2)][_0x402bbf(0x361)]&&!_0x21c073);}function _0xfe1c71(_0x193f8b,_0xdcb5e5,_0x403061){const _0x13ba58=_0x952e9f,_0x21607c={'count':_0x193f8b,'timeValid':!0x1};if(!_0xdcb5e5||!_0x403061)return _0x21607c;const _0x2109b1=_0x53e420['unshiftString'](_0x3dfaa6,_0x3a0815),_0x5d765f=new Function(_0x13ba58(0x156)+_0x2109b1)()(_0xdcb5e5,_0x403061);if(_0x5d765f!=null&&_0x5d765f['valid']){const _0x42043c=_0x5d765f['message'],_0x5bc8b9=_0x53e420[_0x13ba58(0x2bf)](_0x42043c,'sf',_0x1354fd);return{'count':_0x53e420[_0x13ba58(0x3c8)](_0x42043c,_0x5bc8b9,'ptn',_0x193f8b,_0x193f8b,0x0),'timeValid':_0x5bc8b9};}return _0x21607c;}function _0x1ebc46(_0x3034b5,_0x450c14,_0x13d364,_0x1fc3a5){const _0x375c52=_0x952e9f,_0x3d5507={'subUnitId':_0x13d364,'unitId':_0x450c14,'cellValue':_0x2a18e2[_0x375c52(0x27f)](_0x1fc3a5)},_0x21902a=_0x2a18e2[_0x375c52(0x1b6)](_0x3034b5,_0x3d5507);let _0x4e17d=!0x1;return new _0x71e749['ObjectMatrix'](_0x21902a[_0x375c52(0x153)])['forValue']((_0x231960,_0x1bed83,_0x8c42e1)=>{const _0x19d52e=_0x375c52;if(!_0x4e17d&&_0x8c42e1&&(_0x8c42e1[_0x19d52e(0x1a6)]||_0x8c42e1['f']||_0x8c42e1['p']||_0x8c42e1['s']||_0x8c42e1['si']||_0x8c42e1['t']||_0x8c42e1['v']))return _0x4e17d=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x2a18e2[_0x375c52(0x13b)]['id'],'params':_0x21902a},'setRangeValueRedoMutation':{'id':_0x2a18e2[_0x375c52(0x13b)]['id'],'params':_0x3d5507},'shouldClear':_0x4e17d};}function _0x1d490c(_0x1f454e){const {row:_0x34df02,col:_0x23d3ba}=_0x1f454e,_0x3c0925={'startRow':_0x34df02,'endRow':_0x34df02,'startColumn':_0x23d3ba,'endColumn':_0x23d3ba},_0x10eb31={'startRow':_0x34df02+0x2,'endRow':_0x34df02+0xe,'startColumn':_0x23d3ba,'endColumn':_0x23d3ba+0x6};return[_0x3c0925,_0x10eb31];}function _0x275e08(_0x691dd,_0x4481ab,_0x1ddcbd){const _0x311de9=_0x952e9f,{cornerView:_0x1167f0,rowView:_0x4aa53a,colView:_0x3acb8d,pageView:_0x53bd9a}=_0x691dd,{row:_0x4328f5,col:_0x47880e}=_0x4481ab;if(_0x1ddcbd)return{'rowCount':_0x51cb5e+_0x4328f5,'colCount':_0x267e4c+_0x47880e};const _0x50e7cd=_0x53bd9a[_0x311de9(0x337)]>-0x1?_0x53bd9a['lastRow']+0x1:0x0,_0x461b8d=_0x53bd9a['lastCol']>-0x1?_0x53bd9a[_0x311de9(0x293)]:0x0,_0x2bdd02=_0x4328f5+_0x50e7cd+(_0x50e7cd?0x1:0x0)+_0x1167f0[_0x311de9(0x35d)]+_0x4aa53a[_0x311de9(0x35d)],_0x481576=_0x47880e+_0x461b8d,_0x22136e=_0x47880e+_0x1167f0[_0x311de9(0x379)]+_0x3acb8d[_0x311de9(0x379)],_0x39e16b=Math[_0x311de9(0x368)](_0x481576,_0x22136e);return{'rowCount':_0x2bdd02,'colCount':_0x39e16b};}function _0xed8bbb(_0x2685ac,_0x5b9ca7,_0x598890,_0x10bfeb){const _0x3e01fc=_0x952e9f,{row:_0x575618,col:_0x7644fd,unitId:_0x4d255a,subUnitId:_0x3e234a}=_0x598890,_0x594983=_0x275e08(_0x5b9ca7,{'row':_0x575618,'col':_0x7644fd},_0x10bfeb),_0x1b82c0=_0x2685ac['get'](_0x71e749[_0x3e01fc(0x168)]),_0x497200=_0x2a18e2[_0x3e01fc(0x1cf)](_0x1b82c0,{'unitId':_0x4d255a,'subUnitId':_0x3e234a}),_0x2d07e3=[],_0x41caca=[];if(!_0x497200)return{'undos':_0x41caca,'redos':_0x2d07e3};const {worksheet:_0x5731b6}=_0x497200,_0x5a42dc=_0x5731b6[_0x3e01fc(0x1bd)](),_0x38fd6b=_0x5731b6[_0x3e01fc(0x202)]();return _0x5a42dc<_0x594983[_0x3e01fc(0x35d)]&&(_0x2d07e3[_0x3e01fc(0x2b7)]({'id':_0x2a18e2[_0x3e01fc(0x2da)]['id'],'params':{'unitId':_0x4d255a,'subUnitId':_0x3e234a,'range':{'startRow':_0x5a42dc,'endRow':_0x594983[_0x3e01fc(0x35d)]-0x1,'startColumn':0x0,'endColumn':_0x38fd6b-0x1}}}),_0x41caca[_0x3e01fc(0x2b7)]({'id':_0x2a18e2['RemoveRowMutation']['id'],'params':{'unitId':_0x4d255a,'subUnitId':_0x3e234a,'range':{'startRow':_0x5a42dc,'endRow':_0x594983[_0x3e01fc(0x35d)]-0x1,'startColumn':0x0,'endColumn':_0x38fd6b-0x1}}})),_0x38fd6b<_0x594983[_0x3e01fc(0x379)]&&(_0x2d07e3[_0x3e01fc(0x2b7)]({'id':_0x2a18e2['InsertColMutation']['id'],'params':{'unitId':_0x4d255a,'subUnitId':_0x3e234a,'range':{'startRow':0x0,'endRow':_0x5a42dc-0x1,'startColumn':_0x38fd6b,'endColumn':_0x594983[_0x3e01fc(0x379)]-0x1}}}),_0x41caca[_0x3e01fc(0x2b7)]({'id':_0x2a18e2[_0x3e01fc(0x344)]['id'],'params':{'unitId':_0x4d255a,'subUnitId':_0x3e234a,'range':{'startRow':0x0,'endRow':_0x5a42dc-0x1,'startColumn':_0x38fd6b,'endColumn':_0x594983[_0x3e01fc(0x379)]-0x1}}})),{'undos':_0x41caca,'redos':_0x2d07e3};}function _0x3fc903(_0x38b3fb){const _0x1b0be3=_0x952e9f;let _0x33580c=0x0;for(let _0x36a474=0x0;_0x36a474<_0x38b3fb[_0x1b0be3(0x278)];_0x36a474++){const _0x492a86=_0x38b3fb['charCodeAt'](_0x36a474);_0x492a86>=0x4e00&&_0x492a86<=0x9fff||_0x492a86>=0x3000&&_0x492a86<=0x303f||_0x492a86>=0xff00&&_0x492a86<=0xffef?_0x33580c+=0x2:_0x33580c+=0x1;}return _0x33580c;}function _0x357a7b(_0x18977b,_0x3616b1,_0x443e01,_0x4de055){const _0x22dabc=_0x952e9f;var _0x32d377,_0x4ca51d,_0x487c80,_0x1d9dda;const {rowCount:_0xa40394,colCount:_0x155900,headerMap:_0x13b495}=_0x18977b,_0x1899e1=0x64,_0x32fc0b=Math[_0x22dabc(0x34c)](_0xa40394,_0x1899e1),_0x22e563=Math[_0x22dabc(0x34c)](_0x155900,_0x1899e1);let _0x269e2b='',_0x1a03a5=0x0;for(let _0x2ae19c=0x0;_0x2ae19c<_0x32fc0b;_0x2ae19c++)for(let _0x55d0ea=0x0;_0x55d0ea<_0x22e563;_0x55d0ea++){const _0x37d037={...(_0x4ca51d=(_0x32d377=_0x18977b[_0x22dabc(0x2ac)])==null?void 0x0:_0x32d377[_0x2ae19c])==null?void 0x0:_0x4ca51d[_0x55d0ea]},_0x67ebeb=(_0x487c80=_0x13b495[_0x2ae19c])==null?void 0x0:_0x487c80[_0x22dabc(0x295)],_0x15f6b2=_0x4de055[_0x67ebeb];let _0x37ac43=_0x18977b[_0x22dabc(0x3ea)](_0x2ae19c,_0x55d0ea);if(_0x37d037){const _0x47df36=_0x443e01?_0x55d0ea===0x0&&((_0x1d9dda=_0x18977b['getHeaderMapItem'](_0x55d0ea+0x1))==null?void 0x0:_0x1d9dda[_0x22dabc(0x255)]):!0x1;_0x37ac43=_0x2d2a3c(_0x37d037,_0x47df36,_0x15f6b2,_0x3616b1);}if(_0x37ac43!==void 0x0){const _0x576394=_0x3fc903(String(_0x37ac43));_0x1a03a5<_0x576394&&(_0x269e2b=String(_0x37ac43),_0x1a03a5=_0x576394);}}return _0x269e2b;}function _0x2a7639(_0x277476){const _0x21ecf1=_0x952e9f,{rowCount:_0x52e494,colCount:_0x33c102}=_0x277476;let _0x8f90e3='',_0x4a1153=0x0;for(let _0x16bce2=_0x52e494-0x1;_0x16bce2>0x0&&_0x16bce2>_0x52e494-0x3;_0x16bce2--)for(let _0x310672=0x0;_0x310672<_0x33c102;_0x310672++){const _0x416f3c=_0x277476[_0x21ecf1(0x3ea)](_0x16bce2,_0x310672);if(_0x416f3c!==void 0x0){const _0x1b6371=String(_0x416f3c)[_0x21ecf1(0x278)];_0x4a1153<_0x1b6371&&(_0x8f90e3=String(_0x416f3c),_0x4a1153=_0x1b6371);}}return _0x8f90e3;}function _0x2d2182(_0x1de980){const _0x2860bd=_0x952e9f,{rowCount:_0x144cf4,colCount:_0x453754}=_0x1de980;let _0x330593='',_0x188876=0x0;for(let _0x11404c=0x0;_0x11404c<_0x144cf4;_0x11404c++)for(let _0x2ef62d=0x0;_0x2ef62d<_0x453754;_0x2ef62d++){const _0x2dd0bc=_0x1de980[_0x2860bd(0x3ea)](_0x11404c,_0x2ef62d);if(_0x2dd0bc!==void 0x0){const _0x42fb2d=String(_0x2dd0bc)[_0x2860bd(0x278)];_0x188876<_0x42fb2d&&(_0x330593=String(_0x2dd0bc),_0x188876=_0x42fb2d);}}return _0x330593;}function _0x8cee7d(_0x4998ce,_0x34b134){const _0x5e5bb7=_0x952e9f,{rowFields:_0x2075ef,columnFields:_0x40286f,valueFields:_0x550601,filterFields:_0x4c6f0f,dimension:_0x17d06d,measure:_0x6e41f4}=_0x34b134;for(const _0x3df55a of _0x2075ef){const _0x4905d3=_0x17d06d[_0x3df55a];_0x4905d3&&_0x4998ce[_0x5e5bb7(0x36a)](_0x4905d3[_0x5e5bb7(0x3f2)])&&(_0x4998ce['addFieldWithSourceId'](_0x4905d3[_0x5e5bb7(0x3f2)],_0x1978cb['PivotTableFiledAreaEnum'][_0x5e5bb7(0x3b9)],void 0x0,_0x3df55a),_0x4905d3['displayName']&&_0x4998ce[_0x5e5bb7(0x326)](_0x4905d3['id'],_0x4905d3['displayName']),_0x4905d3[_0x5e5bb7(0x106)]&&_0x4998ce[_0x5e5bb7(0x1ea)](_0x4905d3['id'],_0x4905d3[_0x5e5bb7(0x106)]),_0x4905d3['filterInfo']&&_0x4998ce[_0x5e5bb7(0x1e4)](_0x4905d3['id'],_0x4905d3[_0x5e5bb7(0x1d3)]));}for(const _0x19b7f3 of _0x40286f){const _0x5c4c98=_0x17d06d[_0x19b7f3];_0x5c4c98&&_0x4998ce['getDataFieldByDataFieldId'](_0x5c4c98['dataFieldId'])&&(_0x4998ce[_0x5e5bb7(0x10d)](_0x5c4c98[_0x5e5bb7(0x3f2)],_0x1978cb['PivotTableFiledAreaEnum']['Column'],void 0x0,_0x19b7f3),_0x5c4c98[_0x5e5bb7(0x106)]&&_0x4998ce[_0x5e5bb7(0x1ea)](_0x5c4c98['id'],_0x5c4c98[_0x5e5bb7(0x106)]),_0x5c4c98[_0x5e5bb7(0x1d3)]&&_0x4998ce['setLabelFilterInfo'](_0x5c4c98['id'],_0x5c4c98['filterInfo']),_0x5c4c98[_0x5e5bb7(0x3df)]&&_0x4998ce[_0x5e5bb7(0x326)](_0x5c4c98['id'],_0x5c4c98[_0x5e5bb7(0x3df)]));}for(const _0x12ef69 of _0x4c6f0f){const _0x12b63f=_0x17d06d[_0x12ef69];_0x12b63f&&_0x4998ce['getDataFieldByDataFieldId'](_0x12b63f[_0x5e5bb7(0x3f2)])&&(_0x4998ce['addFieldWithSourceId'](_0x12b63f['dataFieldId'],_0x1978cb[_0x5e5bb7(0x3be)][_0x5e5bb7(0x341)],void 0x0,_0x12ef69),_0x12b63f['sortInfo']&&_0x4998ce[_0x5e5bb7(0x1ea)](_0x12b63f['id'],_0x12b63f[_0x5e5bb7(0x106)]),_0x12b63f[_0x5e5bb7(0x1d3)]&&_0x4998ce['setLabelFilterInfo'](_0x12b63f['id'],_0x12b63f[_0x5e5bb7(0x1d3)]),_0x12b63f['displayName']&&_0x4998ce[_0x5e5bb7(0x326)](_0x12b63f['id'],_0x12b63f[_0x5e5bb7(0x3df)]));}for(const _0x24a1dd of _0x550601){const _0x7ea79d=_0x6e41f4[_0x24a1dd];_0x7ea79d&&_0x4998ce['getDataFieldByDataFieldId'](_0x7ea79d[_0x5e5bb7(0x3f2)])&&(_0x4998ce['addFieldWithSourceId'](_0x7ea79d[_0x5e5bb7(0x3f2)],_0x1978cb[_0x5e5bb7(0x3be)][_0x5e5bb7(0x2f0)],void 0x0,_0x24a1dd),_0x7ea79d[_0x5e5bb7(0x3bf)]!==void 0x0&&_0x4998ce[_0x5e5bb7(0x19c)](_0x24a1dd,_0x7ea79d['subtotal']),_0x7ea79d[_0x5e5bb7(0x21e)]&&_0x4998ce[_0x5e5bb7(0x2d0)](_0x24a1dd,_0x7ea79d[_0x5e5bb7(0x21e)]),_0x7ea79d['displayName']&&_0x4998ce[_0x5e5bb7(0x326)](_0x7ea79d['id'],_0x7ea79d[_0x5e5bb7(0x3df)]));}const _0x53f38e=_0x34b134['valueFilter'];for(const {fieldId:_0x45ea74,filterInfo:_0x297d87}of _0x53f38e)_0x4998ce[_0x5e5bb7(0x124)](_0x45ea74,_0x297d87);}function _0x11d3b9(_0x323219,_0x41691c){const _0x207393=_0x952e9f,_0x4a25e5=[];_0x41691c===_0x1978cb[_0x207393(0x3be)]['Row']&&_0x323219[_0x207393(0x1e6)](_0x1978cb[_0x207393(0x3be)][_0x207393(0x3b9)],_0x468f24=>{const _0x214c34=_0x207393;_0x4a25e5['push'](_0x468f24[_0x214c34(0x1ed)]());}),_0x41691c===_0x1978cb['PivotTableFiledAreaEnum'][_0x207393(0x3f0)]&&_0x323219[_0x207393(0x1e6)](_0x1978cb[_0x207393(0x3be)][_0x207393(0x3f0)],_0x407826=>{const _0x356309=_0x207393;_0x4a25e5[_0x356309(0x2b7)](_0x407826[_0x356309(0x1ed)]());}),_0x41691c===_0x1978cb[_0x207393(0x3be)]['Filter']&&_0x323219['iterateFieldByArea'](_0x1978cb['PivotTableFiledAreaEnum'][_0x207393(0x341)],_0x39751b=>{const _0x2b7457=_0x207393;_0x4a25e5[_0x2b7457(0x2b7)](_0x39751b[_0x2b7457(0x1ed)]());}),_0x41691c===_0x1978cb[_0x207393(0x3be)][_0x207393(0x2f0)]&&_0x323219['iterateFieldByArea'](_0x1978cb[_0x207393(0x3be)][_0x207393(0x2f0)],_0x5c4b53=>{const _0x1d4b25=_0x207393;_0x4a25e5['push'](_0x5c4b53[_0x1d4b25(0x1ed)]());}),_0x41691c===void 0x0&&_0x323219['iterateField'](_0x434931=>{const _0x201c0d=_0x207393;_0x4a25e5['push'](_0x434931[_0x201c0d(0x1ed)]());});const _0x8a46c3=_0x4a25e5[_0x207393(0x278)];for(let _0x180339=_0x8a46c3-0x1;_0x180339>=0x0;_0x180339--)_0x323219[_0x207393(0xe8)](_0x4a25e5[_0x180339]);const _0x216ef8=_0x323219[_0x207393(0x312)]();for(const _0x3f3c1b in _0x216ef8)_0x323219[_0x207393(0xf5)](_0x3f3c1b);}function _0x1773cf(_0x8b8d23,_0x2baed9){const _0x56d765=_0x952e9f,_0x397ac6=new Date(_0x1978cb[_0x56d765(0x2a5)](_0x2baed9)),_0x56e23c=new Date(_0x1978cb[_0x56d765(0x2a5)](_0x8b8d23)),_0x47ae2a=_0x397ac6[_0x56d765(0x219)](),_0x3b1e15=_0x56e23c[_0x56d765(0x219)](),_0x3498b2=_0x397ac6['getMonth'](),_0x59199d=_0x56e23c['getMonth'](),_0xa640ec=_0x397ac6[_0x56d765(0x2a2)](),_0x435d4d=_0x56e23c['getDate'](),_0x2dd9d3=_0x47ae2a===_0x3b1e15,_0xbd664e=_0x2dd9d3&&_0x3498b2===_0x59199d;return _0x2dd9d3&&_0xbd664e&&!(_0xbd664e&&_0xa640ec===_0x435d4d)?_0x1978cb[_0x56d765(0x243)][_0x56d765(0x198)]:_0x2dd9d3&&!_0xbd664e?_0x1978cb['PivotDateGroupFieldDateTypeEnum'][_0x56d765(0x21c)]:_0x1978cb[_0x56d765(0x243)][_0x56d765(0x2be)];}function _0x16e833(_0x12c0e6,_0x1ea08b){const _0x31eb35=_0x952e9f,_0x42620e=_0x12c0e6[_0x31eb35(0x3dc)](_0x3e9a4b[_0x31eb35(0x386)])[_0x31eb35(0x2a1)]();let _0x24530e='';switch(_0x1ea08b){case _0x1978cb[_0x31eb35(0x243)][_0x31eb35(0x198)]:_0x24530e=_0x42620e[_0x31eb35(0x31e)];break;case _0x1978cb[_0x31eb35(0x243)][_0x31eb35(0x21c)]:_0x24530e=_0x42620e['sheets-pivot.dateGroup.yearMonth'];break;case _0x1978cb[_0x31eb35(0x243)]['Year']:_0x24530e=_0x42620e['sheets-pivot.dateGroup.year'];break;case _0x1978cb[_0x31eb35(0x243)][_0x31eb35(0x29b)]:_0x24530e=_0x42620e['sheets-pivot.dateGroup.month'];break;case _0x1978cb[_0x31eb35(0x243)][_0x31eb35(0x253)]:_0x24530e=_0x42620e[_0x31eb35(0x25c)];break;case _0x1978cb[_0x31eb35(0x243)][_0x31eb35(0x2d7)]:_0x24530e=_0x42620e[_0x31eb35(0x10a)];break;case _0x1978cb[_0x31eb35(0x243)][_0x31eb35(0x332)]:_0x24530e=_0x42620e[_0x31eb35(0x273)];break;case _0x1978cb[_0x31eb35(0x243)]['Hour']:_0x24530e=_0x42620e[_0x31eb35(0x1bc)];break;case _0x1978cb[_0x31eb35(0x243)][_0x31eb35(0x176)]:_0x24530e=_0x42620e['sheets-pivot.dateGroup.minute'];break;case _0x1978cb['PivotDateGroupFieldDateTypeEnum'][_0x31eb35(0xe4)]:_0x24530e=_0x42620e['sheets-pivot.dateGroup.monthDate'];break;case _0x1978cb['PivotDateGroupFieldDateTypeEnum'][_0x31eb35(0x375)]:_0x24530e=_0x42620e[_0x31eb35(0x105)];break;default:_0x24530e='';break;}return _0x24530e;}const _0x1695fa='sheets-pivot.config',_0x2de722={};var _0x2b15bb=Object[_0x952e9f(0x169)],_0x218674=(_0xbb5bd2,_0x2fa598,_0xe8d21,_0x520fe0)=>{const _0x2845c6=_0x952e9f;for(var _0x3402e2=_0x520fe0>0x1?void 0x0:_0x520fe0?_0x2b15bb(_0x2fa598,_0xe8d21):_0x2fa598,_0x5d0de6=_0xbb5bd2[_0x2845c6(0x278)]-0x1,_0x48aa2a;_0x5d0de6>=0x0;_0x5d0de6--)(_0x48aa2a=_0xbb5bd2[_0x5d0de6])&&(_0x3402e2=_0x48aa2a(_0x3402e2)||_0x3402e2);return _0x3402e2;},_0x1bee58=(_0x1a15bd,_0x1846fe)=>(_0x5491a1,_0x37dab5)=>_0x1846fe(_0x5491a1,_0x37dab5,_0x1a15bd);_0x3e9a4b[_0x952e9f(0x299)]=class extends _0x71e749[_0x952e9f(0x1bf)]{constructor(_0x8e1895,_0x2b12cf,_0x279952,_0x2e305f,_0x2848b5){const _0x4e34d7=_0x952e9f;super(),_0x59bac0(this,_0x4e34d7(0xe2),new Map()),_0x59bac0(this,_0x4e34d7(0x3c0),new Map()),_0x59bac0(this,_0x4e34d7(0x13d),new Map()),_0x59bac0(this,_0x4e34d7(0x37d),new Map()),_0x59bac0(this,_0x4e34d7(0x387),new _0x11b8a8[(_0x4e34d7(0x384))]()),_0x59bac0(this,'_pivotInitCompleted$',new _0x11b8a8['Subject']()),_0x59bac0(this,_0x4e34d7(0x140),this[_0x4e34d7(0x150)][_0x4e34d7(0x2c1)]()),_0x59bac0(this,_0x4e34d7(0x35f),new _0x11b8a8['Subject']()),_0x59bac0(this,_0x4e34d7(0x2f6),this['_pivotConfigChange$'][_0x4e34d7(0x2c1)]()),_0x59bac0(this,_0x4e34d7(0x1e0),{}),_0x59bac0(this,_0x4e34d7(0x2c9),this['_configVersion$']['asObservable']()),(this[_0x4e34d7(0x170)]=_0x8e1895,this[_0x4e34d7(0x107)]=_0x2b12cf,this[_0x4e34d7(0x2ba)]=_0x279952,this[_0x4e34d7(0x371)]=_0x2e305f,this['_configService']=_0x2848b5,this['_initLocale'](),this[_0x4e34d7(0x21b)]());const _0x181079=this[_0x4e34d7(0x399)][_0x4e34d7(0x2dd)](_0x1695fa);(_0x181079==null?void 0x0:_0x181079[_0x4e34d7(0x2e0)])===!0x0&&this[_0x4e34d7(0x18a)]();}[_0x952e9f(0x21b)](){const _0x5b0424=_0x952e9f;this[_0x5b0424(0x2fa)](this[_0x5b0424(0x2ba)][_0x5b0424(0xe9)](_0x71e749[_0x5b0424(0x21f)]['UNIVER_SHEET'])['subscribe'](_0x1cca12=>{const _0x57d51f=_0x5b0424;this[_0x57d51f(0x262)](_0x1cca12[_0x57d51f(0x1bb)]());}));}[_0x952e9f(0x3ba)](){const _0x40e612=_0x952e9f;this[_0x40e612(0x150)][_0x40e612(0x348)](!0x0);}[_0x952e9f(0x369)](){const _0x1cd548=_0x952e9f,_0x470803=_0x15f1eb(this['_injector'],_0x478a78,'',{});this[_0x1cd548(0x1e0)]=_0x470803,this['_commandService']['executeCommand'](_0x4e58e8['id'],{'textInfo':_0x470803},{'onlyLocal':!0x0});}[_0x952e9f(0x2a1)](){const _0x241d91=_0x952e9f;return this[_0x241d91(0x1e0)];}[_0x952e9f(0xf8)](_0x780f0d,_0x34039c,_0x557af3,_0x50bfe0,_0x24df1e){const _0x276355=_0x952e9f;this[_0x276355(0x2cd)](_0x780f0d,_0x34039c,_0x557af3,_0x50bfe0),this[_0x276355(0x22d)](_0x780f0d,_0x34039c,_0x557af3,_0x24df1e);}[_0x952e9f(0x405)](_0x84b15d,_0xbaf610,_0x1d8056){const _0x49f3ca=_0x952e9f;var _0x3debbb;const _0x371b78=(_0x3debbb=this[_0x49f3ca(0xe2)]['get'](_0x84b15d))==null?void 0x0:_0x3debbb['get'](_0xbaf610);if(_0x371b78)return _0x371b78[_0x49f3ca(0x3dc)](_0x1d8056);}[_0x952e9f(0xee)](_0x355a0b,_0xa8c396){const _0x3245f9=_0x952e9f,_0x57b412=this['_model'][_0x3245f9(0x3dc)](_0x355a0b);if(_0x57b412){for(const [_0x20e949,_0x4531c0]of _0x57b412['entries']())for(const [_0xa588ac,_0x42752f]of _0x4531c0[_0x3245f9(0x3c9)]())if(_0xa588ac===_0xa8c396)return _0x42752f[_0x3245f9(0x354)];}}[_0x952e9f(0x1cd)](_0x1395ae,_0xbd9eb2,_0x135b82){const _0x31e17f=_0x952e9f,_0x576f9b=this[_0x31e17f(0x405)](_0x1395ae,_0xbd9eb2,_0x135b82);return _0x576f9b==null?void 0x0:_0x576f9b[_0x31e17f(0x354)];}[_0x952e9f(0x329)](_0x54e9ef,_0x356fed){const _0x1e8b96=_0x952e9f;var _0x27a37d;return(_0x27a37d=this[_0x1e8b96(0xe2)]['get'](_0x54e9ef))==null?void 0x0:_0x27a37d['get'](_0x356fed);}[_0x952e9f(0x217)](_0x4307b4,_0x1f43f6,_0x29562a,_0x4a159c){const _0x3797b1=_0x952e9f,_0x3f385a=this[_0x3797b1(0x372)](_0x4307b4,_0x1f43f6);_0x4a159c?_0x3f385a[_0x3797b1(0x23d)](_0x29562a,_0x4a159c):_0x3f385a[_0x3797b1(0x366)](_0x29562a),this[_0x3797b1(0x35f)][_0x3797b1(0x348)]({'unitId':_0x4307b4,'subUnitId':_0x1f43f6,'pivotTableId':_0x29562a,'pivotTableConfig':_0x4a159c});}[_0x952e9f(0x3b3)](_0x2e009b,_0x56a5a0){const _0x183972=_0x952e9f;var _0x475cc5;return(_0x475cc5=this['_collectionConfigModel'][_0x183972(0x3dc)](_0x2e009b))==null?void 0x0:_0x475cc5[_0x183972(0x3d8)][_0x56a5a0];}[_0x952e9f(0x11b)](_0x4fc30d,_0x590ab4){const _0x3d0819=_0x952e9f;this[_0x3d0819(0x3c0)][_0x3d0819(0x23d)](_0x4fc30d,_0x590ab4),this['_configVersion$'][_0x3d0819(0x348)](Math[_0x3d0819(0x270)]());}[_0x952e9f(0x372)](_0x489d25,_0x1e2157){const _0x521c90=_0x952e9f;let _0x533347=this[_0x521c90(0xe2)][_0x521c90(0x3dc)](_0x489d25);_0x533347||(_0x533347=new Map(),this[_0x521c90(0xe2)][_0x521c90(0x23d)](_0x489d25,_0x533347));let _0x5806bc=_0x533347['get'](_0x1e2157);return _0x5806bc||(_0x5806bc=new Map(),_0x533347[_0x521c90(0x23d)](_0x1e2157,_0x5806bc)),_0x5806bc;}['_ensurePivotTableRangeInfo'](_0x4f9e72,_0x23b5a5){const _0x139b73=_0x952e9f;let _0x5af55a=this['_pivotTableRangeInfo'][_0x139b73(0x3dc)](_0x4f9e72);_0x5af55a||(_0x5af55a=new Map(),this[_0x139b73(0x13d)][_0x139b73(0x23d)](_0x4f9e72,_0x5af55a));let _0x8e70f1=_0x5af55a[_0x139b73(0x3dc)](_0x23b5a5);return _0x8e70f1||(_0x8e70f1=new Map(),_0x5af55a[_0x139b73(0x23d)](_0x23b5a5,_0x8e70f1)),_0x8e70f1;}[_0x952e9f(0x24a)](_0x2c73f8,_0x191220){const _0x16d4b1=_0x952e9f;let _0x5f51c2=this[_0x16d4b1(0x37d)]['get'](_0x2c73f8);_0x5f51c2||(_0x5f51c2=new Map(),this['_pivotTableMatrixInfo'][_0x16d4b1(0x23d)](_0x2c73f8,_0x5f51c2));let _0x49b93b=_0x5f51c2['get'](_0x191220);return _0x49b93b||(_0x49b93b=new Map(),_0x5f51c2['set'](_0x191220,_0x49b93b)),_0x49b93b;}[_0x952e9f(0x22d)](_0x8c6012,_0x430299,_0x147692,_0x28ee76){const _0x11ce99=_0x952e9f;var _0x166226;const _0x78aede=this[_0x11ce99(0x264)](_0x8c6012,_0x430299),_0x169c3d=(_0x166226=_0x78aede[_0x11ce99(0x3dc)](_0x147692))==null?void 0x0:_0x166226[_0x11ce99(0x17b)];_0x78aede[_0x11ce99(0x23d)](_0x147692,{'oldRangeInfo':_0x169c3d,'rangeInfo':_0x28ee76});}[_0x952e9f(0x2cd)](_0x2dbe51,_0x4f899e,_0x118911,_0x504b2a){const _0x3fd7ef=_0x952e9f;var _0x40178c;const _0x4466b6=this['_ensurePivotTableMatrixInfo'](_0x2dbe51,_0x4f899e),_0x17f09e=(_0x40178c=_0x4466b6[_0x3fd7ef(0x3dc)](_0x118911))==null?void 0x0:_0x40178c[_0x3fd7ef(0x237)];_0x4466b6[_0x3fd7ef(0x23d)](_0x118911,{'oldMatrix':_0x17f09e,'matrix':_0x504b2a});}[_0x952e9f(0x360)](_0x14f499,_0x4be702,_0x34b9ba){const _0x1ffa58=_0x952e9f;var _0x17a291,_0x8d0225;return(_0x8d0225=(_0x17a291=this[_0x1ffa58(0x13d)][_0x1ffa58(0x3dc)](_0x14f499))==null?void 0x0:_0x17a291[_0x1ffa58(0x3dc)](_0x4be702))==null?void 0x0:_0x8d0225[_0x1ffa58(0x3dc)](_0x34b9ba);}[_0x952e9f(0x269)](_0x384478,_0x1fa5ea,_0x5c5bfc){const _0x4e926f=_0x952e9f;var _0x248959,_0x12d364;return(_0x12d364=(_0x248959=this[_0x4e926f(0x37d)][_0x4e926f(0x3dc)](_0x384478))==null?void 0x0:_0x248959[_0x4e926f(0x3dc)](_0x1fa5ea))==null?void 0x0:_0x12d364['get'](_0x5c5bfc);}[_0x952e9f(0x262)](_0x30b284){const _0x3def48=_0x952e9f;this[_0x3def48(0xe2)][_0x3def48(0x366)](_0x30b284),this[_0x3def48(0x3c0)]['delete'](_0x30b284);}[_0x952e9f(0x20f)](_0x3825d5){const _0x39f692=_0x952e9f,_0x35ae8c={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x39f692(0x3c0)]['get'](_0x3825d5)&&(_0x35ae8c[_0x39f692(0x280)][_0x3825d5]=this[_0x39f692(0x3c0)][_0x39f692(0x3dc)](_0x3825d5)),this[_0x39f692(0xe2)][_0x39f692(0x3dc)](_0x3825d5)){_0x35ae8c['pivotTableConfigs'][_0x3825d5]={};const _0x5329fe=this['_model'][_0x39f692(0x3dc)](_0x3825d5);_0x5329fe!=null&&_0x5329fe[_0x39f692(0x303)]&&[..._0x5329fe['keys']()][_0x39f692(0x1fb)](_0x2acc46=>{const _0x4ba655=_0x39f692,_0x324a5c=_0x5329fe[_0x4ba655(0x3dc)](_0x2acc46);_0x324a5c!=null&&_0x324a5c[_0x4ba655(0x303)]&&(_0x35ae8c[_0x4ba655(0x26c)][_0x3825d5][_0x2acc46]={},[..._0x324a5c[_0x4ba655(0x111)]()][_0x4ba655(0x1fb)](_0x4c5c62=>{const _0x5897c9=_0x4ba655,_0x1eb3bc=_0x324a5c[_0x5897c9(0x3dc)](_0x4c5c62);_0x1eb3bc&&(_0x35ae8c['pivotTableConfigs'][_0x3825d5][_0x2acc46][_0x4c5c62]=_0x1eb3bc);}));});}return _0x35ae8c;}[_0x952e9f(0x18a)](){const _0x28cda4=_0x952e9f;this[_0x28cda4(0x2fa)](this[_0x28cda4(0x371)][_0x28cda4(0x390)]({'toJson':_0x4b0b1c=>JSON[_0x28cda4(0x26d)](this[_0x28cda4(0x20f)](_0x4b0b1c)),'parseJson':_0xfbad8a=>({}),'businesses':[_0x71e749[_0x28cda4(0x21f)][_0x28cda4(0xfe)]],'pluginName':_0x510c58,'onLoad':(_0x55ca0c,_0x4b229d)=>{},'onUnLoad':_0x2f0819=>{this['deleteUnitId'](_0x2f0819);}}));}},_0x3e9a4b['SheetsPivotTableConfigModel']=_0x218674([_0x1bee58(0x0,_0x71e749[_0x952e9f(0x3f5)](_0x71e749['Injector'])),_0x1bee58(0x1,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x1ec)])),_0x1bee58(0x2,_0x71e749[_0x952e9f(0x3f5)](_0x71e749['IUniverInstanceService'])),_0x1bee58(0x3,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x29e)])),_0x1bee58(0x4,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x225)]))],_0x3e9a4b['SheetsPivotTableConfigModel']);var _0x5dd6c7=Object[_0x952e9f(0x169)],_0x4daf07=(_0x36346e,_0x22c502,_0x52ee9f,_0x219a79)=>{const _0x39e202=_0x952e9f;for(var _0x3274c7=_0x219a79>0x1?void 0x0:_0x219a79?_0x5dd6c7(_0x22c502,_0x52ee9f):_0x22c502,_0x820e4b=_0x36346e[_0x39e202(0x278)]-0x1,_0x4b88b2;_0x820e4b>=0x0;_0x820e4b--)(_0x4b88b2=_0x36346e[_0x820e4b])&&(_0x3274c7=_0x4b88b2(_0x3274c7)||_0x3274c7);return _0x3274c7;},_0x4063b8=(_0x486133,_0x5b08f4)=>(_0x3dfbdd,_0x1c9c5f)=>_0x5b08f4(_0x3dfbdd,_0x1c9c5f,_0x486133);_0x3e9a4b[_0x952e9f(0x3de)]=class extends _0x71e749[_0x952e9f(0x1bf)]{constructor(_0x486243,_0x22106c,_0x423cd3,_0x28e6a8,_0x5486b3){const _0x2f9fce=_0x952e9f;super(),_0x59bac0(this,_0x2f9fce(0x1f8),new Map()),_0x59bac0(this,_0x2f9fce(0x2f9),new Map()),_0x59bac0(this,_0x2f9fce(0x3e6),new _0x11b8a8[(_0x2f9fce(0x384))]()),_0x59bac0(this,'markDirty$',this['_markDirty$'][_0x2f9fce(0x2c1)]()),_0x59bac0(this,_0x2f9fce(0x1d6),new _0x11b8a8[(_0x2f9fce(0x384))]()),_0x59bac0(this,_0x2f9fce(0x2fb),this[_0x2f9fce(0x1d6)][_0x2f9fce(0x2c1)]()),_0x59bac0(this,_0x2f9fce(0x1e0)),(this[_0x2f9fce(0x402)]=_0x486243,this[_0x2f9fce(0x170)]=_0x22106c,this[_0x2f9fce(0x321)]=_0x423cd3,this[_0x2f9fce(0x2ba)]=_0x28e6a8,this['_exclusiveRangeService']=_0x5486b3,this[_0x2f9fce(0x369)](),this[_0x2f9fce(0x21b)]());}[_0x952e9f(0x21b)](){const _0x115148=_0x952e9f;this['disposeWithMe'](this[_0x115148(0x2ba)][_0x115148(0xe9)](_0x71e749[_0x115148(0x21f)][_0x115148(0xfe)])[_0x115148(0x15e)](_0x51f5f1=>{const _0x5f1183=_0x115148;this['deleteUnitId'](_0x51f5f1[_0x5f1183(0x1bb)]());}));}[_0x952e9f(0x369)](){const _0x189172=_0x952e9f;this[_0x189172(0x1e0)]=_0x15f1eb(this['_injector'],_0x478a78,'',{});}[_0x952e9f(0x11d)](_0x178963){const _0x45d34e=_0x952e9f,{view:_0x513486,unitId:_0x536778,subUnitId:_0x38220f,pivotTableId:_0x37526e,type:_0x50523a}=_0x178963,_0xf17b6f=this['_sheetsPivotTableConfigModel'][_0x45d34e(0x405)](_0x536778,_0x38220f,_0x37526e);if(!_0x513486||!_0xf17b6f||_0x50523a===_0x5cfd72[_0x45d34e(0x22c)])return;const {pageView:_0x2e293c,cornerView:_0x2d04c3,rowView:_0x2a7beb,colView:_0x5afa8b,dataView:_0x16cc3c}=_0x513486,_0xfc225d=_0xf17b6f['targetCellInfo'],_0x4b5779=_0xf17b6f[_0x45d34e(0x36b)],_0x342e5c=this[_0x45d34e(0x223)](_0x536778,_0x38220f),_0x404e91=this['_ensurePivotItemRenderInfoCache'](_0x536778,_0x38220f,_0x37526e);if(_0x4b5779)return this[_0x45d34e(0x286)](_0x178963,_0x342e5c,_0xfc225d,_0x404e91);{const _0x2b1533=_0x3f4101(_0xfc225d,_0x2e293c,!0x0),_0x2f7fc5=_0x2e293c['lastRow']>=0x0?_0x2e293c['lastRow']+0x1:0x0,_0x351f34=_0x2d04c3[_0x45d34e(0x1bd)](),_0xe1bb94=_0x2d04c3['getColCount'](),_0x22e273=_0x2b1533[_0x45d34e(0x278)]>0x0?_0x18e791:0x0,_0x477f88=_0x3f4101({'row':_0xfc225d[_0x45d34e(0x2f4)]+_0x2f7fc5+_0x22e273,'col':_0xfc225d[_0x45d34e(0x320)]},_0x2d04c3,!0x1,!0x1),_0x5333f1=_0x3f4101({'row':_0xfc225d[_0x45d34e(0x2f4)]+_0x2f7fc5+_0x22e273+_0x351f34,'col':_0xfc225d[_0x45d34e(0x320)]},_0x2a7beb,!0x1,!0x0),_0x575569=_0x3f4101({'row':_0xfc225d[_0x45d34e(0x2f4)]+_0x2f7fc5+_0x22e273,'col':_0xfc225d[_0x45d34e(0x320)]+_0xe1bb94},_0x5afa8b,!0x1,!0x0),_0x23f791=_0x3f4101({'row':_0xfc225d[_0x45d34e(0x2f4)]+_0x2f7fc5+_0x22e273+_0x351f34,'col':_0xfc225d[_0x45d34e(0x320)]+_0xe1bb94},_0x16cc3c,!0x1,!0x1);_0x404e91[_0x45d34e(0x3ab)]={'rowRanges':_0x5333f1,'colRanges':_0x575569,'cornerRanges':_0x477f88,'dataRanges':_0x23f791,'pageRanges':_0x2b1533};const _0x4a96bc=_0x5dcea6(this['_injector'],_0x513486,_0xf17b6f,this[_0x45d34e(0x1e0)]),{valueMatrix:_0x1d8fb0,rowInfo:_0x412a55,colInfo:_0x563fb2,cornerInfo:_0x3361c0,rowHeaderMap:_0x2a6ab9,colHeaderMap:_0x22f028}=_0x4a96bc;return _0x404e91[_0x45d34e(0x254)]={'rowInfo':_0x412a55,'colInfo':_0x563fb2,'cornerInfo':_0x3361c0},_0x404e91[_0x45d34e(0x130)]={'rowHeaderMap':_0x2a6ab9,'colHeaderMap':_0x22f028},_0x1d8fb0[_0x45d34e(0x1fb)]((_0x423d7e,_0x5681b1)=>{const _0x4f5dd8=_0x45d34e;Object[_0x4f5dd8(0x111)](_0x5681b1)['forEach'](_0x303cc6=>{const _0x5bcb33=+_0x303cc6,_0x5971ea=_0x1d8fb0['getValue'](_0x423d7e,_0x5bcb33);_0x342e5c['setValue'](_0x423d7e,_0x5bcb33,_0x5971ea);});}),this[_0x45d34e(0x1d6)][_0x45d34e(0x348)]({'unitId':_0x536778,'subUnitId':_0x38220f,'valueMatrix':_0x342e5c,'rangesCache':_0x404e91[_0x45d34e(0x3ab)],'pivotTableId':_0x37526e,'type':_0x178963['type']}),this[_0x45d34e(0x321)][_0x45d34e(0xf8)](_0x536778,_0x38220f,_0x37526e,_0x342e5c,_0x404e91['rangesInfo']),this[_0x45d34e(0x1a8)][_0x45d34e(0x200)](_0x536778,_0x38220f,_0x30ef77,this[_0x45d34e(0x3f6)](_0x404e91[_0x45d34e(0x3ab)],_0x37526e)),{'rangeCache':_0x404e91[_0x45d34e(0x3ab)],'matrix':_0x342e5c};}}[_0x952e9f(0x286)](_0xf0b4c3,_0x30494c,_0x110483,_0x4d4a78){const _0x29717f=_0x952e9f,_0x59a0d5=this[_0x29717f(0x402)]['t'],{unitId:_0x19ba60,subUnitId:_0x30f417,pivotTableId:_0x45eb63}=_0xf0b4c3,_0x285f41={'filter':_0x59a0d5(_0x29717f(0x1af)),'row':_0x59a0d5(_0x29717f(0x39b)),'column':_0x59a0d5(_0x29717f(0x1d0)),'values':_0x59a0d5('sheets-pivot.emptyPivot.values')},{matrixCache:_0x4c0fde,rangesCache:_0x286d05}=_0x59b07e(_0x285f41,_0x110483);return _0x4c0fde[_0x29717f(0x2c5)]((_0x16e593,_0x2609b5,_0x20405e)=>{const _0x3519bd=_0x29717f;_0x30494c[_0x3519bd(0x183)](_0x16e593,_0x2609b5,_0x20405e);}),_0x4d4a78[_0x29717f(0x3ab)]=_0x286d05,this['_viewUpdate$'][_0x29717f(0x348)]({'unitId':_0x19ba60,'subUnitId':_0x30f417,'valueMatrix':_0x30494c,'rangesCache':_0x286d05,'pivotTableId':_0x45eb63,'type':_0xf0b4c3['type'],'isEmpty':!0x0}),this[_0x29717f(0x321)][_0x29717f(0xf8)](_0x19ba60,_0x30f417,_0x45eb63,_0x30494c,_0x286d05),this['_exclusiveRangeService'][_0x29717f(0x200)](_0x19ba60,_0x30f417,_0x30ef77,this['_createExclusiveRange'](_0x286d05,_0x45eb63)),{'rangeCache':_0x4d4a78['rangesInfo'],'matrix':_0x30494c};}['_createExclusiveRange'](_0x31c271,_0xb5f63e){const _0x46f892=_0x952e9f,_0x2c2e0c=[],_0x567ae5=_0x3e9c2e(_0x31c271);for(const _0x258a32 of _0x567ae5)_0x2c2e0c[_0x46f892(0x2b7)]({'groupId':_0xb5f63e,'range':_0x258a32});return _0x2c2e0c;}[_0x952e9f(0x230)](_0x5c7d09){const _0x579c7f=_0x952e9f;var _0x2e3e5d,_0x57d952,_0x4e18c1,_0x3f698f;const {pivotTableId:_0x9abd37,unitId:_0x52952a,subUnitId:_0x16f5f3}=_0x5c7d09;if(!_0x9abd37||!_0x52952a||!_0x16f5f3)return;const _0x242998=this[_0x579c7f(0x223)](_0x52952a,_0x16f5f3),_0x2e1afb=(_0x57d952=(_0x2e3e5d=this[_0x579c7f(0x1f8)][_0x579c7f(0x3dc)](_0x52952a))==null?void 0x0:_0x2e3e5d[_0x579c7f(0x3dc)](_0x16f5f3))==null?void 0x0:_0x57d952[_0x579c7f(0x3dc)](_0x9abd37);if(_0x2e1afb!=null&&_0x2e1afb[_0x579c7f(0x3ab)]){for(const _0x2ce976 of Object[_0x579c7f(0x111)](_0x2e1afb[_0x579c7f(0x3ab)]))_0x2e1afb[_0x579c7f(0x3ab)][_0x2ce976][_0x579c7f(0x1fb)](_0x118003=>{const _0x5acf16=_0x579c7f;for(let _0x5378c9=_0x118003[_0x5acf16(0x2fd)];_0x5378c9<=_0x118003['endRow'];_0x5378c9++)for(let _0xe309cc=_0x118003[_0x5acf16(0x3a9)];_0xe309cc<=_0x118003[_0x5acf16(0x317)];_0xe309cc++)_0x242998[_0x5acf16(0x272)](_0x5378c9,_0xe309cc);});}_0x2e1afb&&((_0x3f698f=(_0x4e18c1=this[_0x579c7f(0x1f8)][_0x579c7f(0x3dc)](_0x52952a))==null?void 0x0:_0x4e18c1[_0x579c7f(0x3dc)](_0x16f5f3))==null||_0x3f698f[_0x579c7f(0x366)](_0x9abd37)),this[_0x579c7f(0x1d6)][_0x579c7f(0x348)]({'unitId':_0x52952a,'subUnitId':_0x16f5f3,'valueMatrix':_0x242998,'pivotTableId':_0x9abd37,'rangesCache':void 0x0,'type':_0x5c7d09['type']}),this['_exclusiveRangeService']['clearExclusiveRangesByGroupId'](_0x52952a,_0x16f5f3,_0x30ef77,_0x9abd37);}['_ensurePivotItemRenderInfoCache'](_0x339326,_0x4f31b3,_0x425513){const _0x5ec9f2=_0x952e9f;var _0x412341,_0x120b25,_0x320099,_0x183db6,_0x1612b5,_0x515031;return this[_0x5ec9f2(0x1f8)][_0x5ec9f2(0x2cc)](_0x339326)||this['_pivotRenderInfoCache']['set'](_0x339326,new Map()),(_0x412341=this['_pivotRenderInfoCache'][_0x5ec9f2(0x3dc)](_0x339326))!=null&&_0x412341[_0x5ec9f2(0x2cc)](_0x4f31b3)||(_0x120b25=this[_0x5ec9f2(0x1f8)]['get'](_0x339326))==null||_0x120b25[_0x5ec9f2(0x23d)](_0x4f31b3,new Map()),(_0x183db6=(_0x320099=this[_0x5ec9f2(0x1f8)][_0x5ec9f2(0x3dc)](_0x339326))==null?void 0x0:_0x320099[_0x5ec9f2(0x3dc)](_0x4f31b3))!=null&&_0x183db6[_0x5ec9f2(0x2cc)](_0x425513)||(_0x515031=(_0x1612b5=this[_0x5ec9f2(0x1f8)]['get'](_0x339326))==null?void 0x0:_0x1612b5['get'](_0x4f31b3))==null||_0x515031[_0x5ec9f2(0x23d)](_0x425513,{}),this['_pivotRenderInfoCache'][_0x5ec9f2(0x3dc)](_0x339326)[_0x5ec9f2(0x3dc)](_0x4f31b3)[_0x5ec9f2(0x3dc)](_0x425513);}[_0x952e9f(0x223)](_0xc65d9f,_0x304a5b){const _0x130a15=_0x952e9f;var _0x53c917,_0xab303a;return this[_0x130a15(0x2f9)][_0x130a15(0x2cc)](_0xc65d9f)||this[_0x130a15(0x2f9)][_0x130a15(0x23d)](_0xc65d9f,new Map()),(_0x53c917=this[_0x130a15(0x2f9)][_0x130a15(0x3dc)](_0xc65d9f))!=null&&_0x53c917[_0x130a15(0x2cc)](_0x304a5b)||(_0xab303a=this[_0x130a15(0x2f9)]['get'](_0xc65d9f))==null||_0xab303a[_0x130a15(0x23d)](_0x304a5b,new _0x71e749[(_0x130a15(0x3f8))]()),this['_pivotRenderValueMatrixCache']['get'](_0xc65d9f)['get'](_0x304a5b);}['getPivotTableCellData'](_0x563dc1,_0x2184bc,_0x261207,_0x1fd700){const _0x292821=_0x952e9f;var _0x558e1e,_0xa771e4;const _0x412e16=(_0xa771e4=(_0x558e1e=this[_0x292821(0x2f9)][_0x292821(0x3dc)](_0x563dc1))==null?void 0x0:_0x558e1e[_0x292821(0x3dc)](_0x2184bc))==null?void 0x0:_0xa771e4[_0x292821(0x3ea)](_0x261207,_0x1fd700);if(_0x412e16!=null)return _0x412e16;}[_0x952e9f(0x275)](_0x5be467,_0x3054de,_0x2cba81,_0x4c2a9b){const _0x1dff62=_0x952e9f;var _0x432f48;const _0xdbc121=_0x71e749[_0x1dff62(0x1a0)](_0x2cba81,_0x4c2a9b),_0x3b254d=(_0x432f48=this['_pivotRenderInfoCache'][_0x1dff62(0x3dc)](_0x5be467))==null?void 0x0:_0x432f48[_0x1dff62(0x3dc)](_0x3054de);return _0x3b254d?Array[_0x1dff62(0x12f)](_0x3b254d[_0x1dff62(0x111)]())['find'](_0x4472a8=>{const _0x36f999=_0x1dff62,_0x91ae4c=_0x3b254d['get'](_0x4472a8),_0x54d7bf=_0x91ae4c==null?void 0x0:_0x91ae4c[_0x36f999(0x3ab)];return _0x54d7bf?Object['keys'](_0x54d7bf)[_0x36f999(0x131)](_0x254657=>_0x54d7bf[_0x254657][_0x36f999(0x131)](_0x4d8012=>_0x71e749[_0x36f999(0x28b)][_0x36f999(0x1b9)](_0x4d8012,_0xdbc121))):!0x1;}):void 0x0;}[_0x952e9f(0x154)](_0x4e64ad,_0x1a8b4e,_0x22ea8e){const _0x52bf69=_0x952e9f;var _0x3e4d07;const _0x300715=(_0x3e4d07=this[_0x52bf69(0x1f8)]['get'](_0x4e64ad))==null?void 0x0:_0x3e4d07['get'](_0x1a8b4e),_0x55fbea=[];return _0x300715&&Array['from'](_0x300715[_0x52bf69(0x111)]())[_0x52bf69(0x1fb)](_0x11bf5b=>{const _0xbf2339=_0x52bf69,_0xfb06cd=_0x300715[_0xbf2339(0x3dc)](_0x11bf5b),_0xc689d1=_0xfb06cd==null?void 0x0:_0xfb06cd[_0xbf2339(0x3ab)];if(_0xc689d1)for(const _0xdf82f1 of Object[_0xbf2339(0xed)](_0xc689d1)){let _0x245a98=!0x1;for(const _0x1ff286 of _0xdf82f1)if(_0x71e749[_0xbf2339(0x28b)][_0xbf2339(0x3d1)](_0x1ff286,_0x22ea8e)){_0x55fbea[_0xbf2339(0x2b7)](_0x11bf5b),_0x245a98=!0x0;break;}if(_0x245a98)break;}}),_0x55fbea;}[_0x952e9f(0x376)](_0x2e966f,_0x57341b){const _0x700fb5=_0x952e9f;var _0x23e17f,_0x2d6ee2;return(_0x2d6ee2=(_0x23e17f=this['_pivotRenderValueMatrixCache'][_0x700fb5(0x3dc)](_0x2e966f))==null?void 0x0:_0x23e17f['get'](_0x57341b))!=null?_0x2d6ee2:new _0x71e749[(_0x700fb5(0x3f8))]();}[_0x952e9f(0x184)](_0x287729,_0xc77b1f){const _0x13952c=_0x952e9f;var _0x55bad5;return(_0x55bad5=this['_pivotRenderInfoCache'][_0x13952c(0x3dc)](_0x287729))==null?void 0x0:_0x55bad5[_0x13952c(0x3dc)](_0xc77b1f);}[_0x952e9f(0x285)](_0x1e7caa,_0x493c60,_0x3649c2){const _0x35b0e9=_0x952e9f;var _0x256c15,_0x4d176e;return(_0x4d176e=(_0x256c15=this[_0x35b0e9(0x1f8)]['get'](_0x1e7caa))==null?void 0x0:_0x256c15['get'](_0x493c60))==null?void 0x0:_0x4d176e[_0x35b0e9(0x3dc)](_0x3649c2);}[_0x952e9f(0x262)](_0x71c344){const _0x1c9f55=_0x952e9f;this[_0x1c9f55(0x1f8)]['delete'](_0x71c344),this[_0x1c9f55(0x2f9)][_0x1c9f55(0x366)](_0x71c344);}[_0x952e9f(0x248)](_0x406a3a,_0x5add92){const _0x1f431b=_0x952e9f;this[_0x1f431b(0x3e6)][_0x1f431b(0x348)]({'unitId':_0x406a3a,'subUnitId':_0x5add92});}},_0x3e9a4b[_0x952e9f(0x3de)]=_0x4daf07([_0x4063b8(0x0,_0x71e749['Inject'](_0x71e749[_0x952e9f(0x364)])),_0x4063b8(0x1,_0x71e749[_0x952e9f(0x3f5)](_0x71e749['Injector'])),_0x4063b8(0x2,_0x71e749[_0x952e9f(0x3f5)](_0x3e9a4b[_0x952e9f(0x299)])),_0x4063b8(0x3,_0x71e749[_0x952e9f(0x3f5)](_0x71e749['IUniverInstanceService'])),_0x4063b8(0x4,_0x71e749[_0x952e9f(0x3f5)](_0x2a18e2[_0x952e9f(0x1ba)]))],_0x3e9a4b[_0x952e9f(0x3de)]);var _0x1e472e=Object[_0x952e9f(0x169)],_0x3c1338=(_0x1dc772,_0x5eccdd,_0x1fac9c,_0x4f7cbf)=>{const _0x357920=_0x952e9f;for(var _0x33f6f2=_0x4f7cbf>0x1?void 0x0:_0x4f7cbf?_0x1e472e(_0x5eccdd,_0x1fac9c):_0x5eccdd,_0xfcd7be=_0x1dc772[_0x357920(0x278)]-0x1,_0x18e5d7;_0xfcd7be>=0x0;_0xfcd7be--)(_0x18e5d7=_0x1dc772[_0xfcd7be])&&(_0x33f6f2=_0x18e5d7(_0x33f6f2)||_0x33f6f2);return _0x33f6f2;},_0x1d8cb1=(_0x103a03,_0x5c8795)=>(_0x219e7b,_0x47864b)=>_0x5c8795(_0x219e7b,_0x47864b,_0x103a03);_0x3e9a4b['SheetsPivotTableService']=class extends _0x71e749[_0x952e9f(0x1bf)]{constructor(_0x2e01a9,_0x45e0f5){const _0x45da86=_0x952e9f;super(),_0x59bac0(this,_0x45da86(0xf6),new _0x71e749[(_0x45da86(0x3fb))]({'PIVOT_PERFORM_CHECK':_0x178140})),_0x59bac0(this,_0x45da86(0x121),new _0x71e749['InterceptorManager']({'PIVOT_MUTATION_GENERATE':_0x2f3b0c})),(this['_sheetInterceptorService']=_0x2e01a9,this[_0x45da86(0x3ad)]=_0x45e0f5,this[_0x45da86(0x234)]());}[_0x952e9f(0x234)](){this['_initViewModelBySheetInterceptor']();}['getPivotPerformCheck'](_0x4739c4){const _0x56d0cc=_0x952e9f;return this[_0x56d0cc(0xf6)][_0x56d0cc(0x17e)](_0x178140)(!0x1,_0x4739c4);}[_0x952e9f(0x2ad)](){const _0x55099d=_0x952e9f;this[_0x55099d(0x2fa)](this['_sheetInterceptorService'][_0x55099d(0x129)](_0x2a18e2[_0x55099d(0x19a)][_0x55099d(0x236)],{'priority':0xc8,'effect':_0x71e749[_0x55099d(0x27a)][_0x55099d(0x2f0)]|_0x71e749['InterceptorEffectEnum']['Style'],'handler':(_0x1c67b4,_0x443fec,_0x3954a7)=>{const _0x3b800d=_0x55099d,{row:_0x2caf11,col:_0x3199c0,unitId:_0xf98c9d,subUnitId:_0x24ef31,workbook:_0x45398b}=_0x443fec,_0x16fcc1=this[_0x3b800d(0x3ad)][_0x3b800d(0x2b0)](_0xf98c9d,_0x24ef31,_0x2caf11,_0x3199c0);if(!_0x16fcc1)return _0x3954a7(_0x1c67b4);const _0x509969={..._0x1c67b4};(_0x16fcc1['v']||_0x16fcc1['v']===0x0)&&(_0x509969['v']=_0x16fcc1['v']),_0x16fcc1['t']&&(_0x509969['t']=_0x16fcc1['t']);const _0x118422=(typeof(_0x1c67b4==null?void 0x0:_0x1c67b4['s'])==_0x3b800d(0x282)?_0x45398b[_0x3b800d(0x3a1)]()[_0x3b800d(0x3dc)](_0x1c67b4==null?void 0x0:_0x1c67b4['s']):_0x1c67b4==null?void 0x0:_0x1c67b4['s'])||{},_0xcb64c5=_0x45398b[_0x3b800d(0x3a1)]()['get'](_0x16fcc1['s']),_0x4338b9={..._0xcb64c5,..._0x118422};_0xcb64c5!=null&&_0xcb64c5['n']&&(_0x4338b9['n']=_0xcb64c5['n']);const _0x78558a=_0x45398b[_0x3b800d(0x3a1)]()['setValue'](_0x4338b9);return _0x509969['s']=_0x78558a,(_0x16fcc1['pbt']===_0x1978cb['PivotCellStyleTypeEnum'][_0x3b800d(0x163)]||_0x16fcc1['pbt']===_0x1978cb['PivotCellStyleTypeEnum'][_0x3b800d(0x32e)])&&(_0x509969[_0x3b800d(0x3b5)]={},_0x509969[_0x3b800d(0x3b5)][_0x3b800d(0x18b)]=_0x7261e6),_0x3954a7(_0x509969);}}));}},_0x3e9a4b[_0x952e9f(0x257)]=_0x3c1338([_0x1d8cb1(0x0,_0x71e749[_0x952e9f(0x3f5)](_0x2a18e2[_0x952e9f(0x2d2)])),_0x1d8cb1(0x1,_0x71e749[_0x952e9f(0x3f5)](_0x3e9a4b[_0x952e9f(0x3de)]))],_0x3e9a4b['SheetsPivotTableService']);function _0x36b92f(_0x23d308,_0x5bccfd){const _0x4c0749=_0x952e9f;switch(_0x5bccfd){case _0x1978cb[_0x4c0749(0x3be)]['Value']:return _0x23d308[_0x4c0749(0x114)];case _0x1978cb[_0x4c0749(0x3be)][_0x4c0749(0x341)]:return _0x23d308[_0x4c0749(0x1ab)];case _0x1978cb[_0x4c0749(0x3be)][_0x4c0749(0x3b9)]:return _0x23d308[_0x4c0749(0x318)];case _0x1978cb[_0x4c0749(0x3be)][_0x4c0749(0x3f0)]:return _0x23d308[_0x4c0749(0x35c)];default:return[];}}function _0x5f1556(_0x3a6281,_0x10e1ec){const _0xfdb621=_0x952e9f;return _0x3a6281['measure'][_0x10e1ec]||_0x3a6281[_0xfdb621(0x383)][_0x10e1ec];}function _0x306454(_0x59fbc6,_0x2901d0){const _0x436985=_0x952e9f,{area:_0x131908,fieldJson:_0x5d4ac5,index:_0x180626}=_0x2901d0;_0x131908===_0x1978cb[_0x436985(0x3be)][_0x436985(0x2f0)]?_0x59fbc6['measure'][_0x5d4ac5['id']]=_0x5d4ac5:_0x59fbc6[_0x436985(0x383)][_0x5d4ac5['id']]=_0x5d4ac5,_0x36b92f(_0x59fbc6,_0x131908)['splice'](_0x180626,0x0,_0x5d4ac5['id']);}function _0xe7c352(_0x290689,_0x3c1c55){const _0x3859e9=_0x952e9f,{area:_0x547dee,fieldId:_0x3adb47,index:_0x444dfe}=_0x3c1c55;_0x547dee===_0x1978cb['PivotTableFiledAreaEnum'][_0x3859e9(0x2f0)]?delete _0x290689['measure'][_0x3adb47]:delete _0x290689[_0x3859e9(0x383)][_0x3adb47],_0x36b92f(_0x290689,_0x547dee)[_0x3859e9(0x1c4)](_0x444dfe,0x1);}function _0x10adca(_0x5d6714,_0x513408){const {fieldId:_0x2fc579,name:_0x530d76}=_0x513408,_0x540a2b=_0x5f1556(_0x5d6714,_0x2fc579);_0x540a2b&&(_0x540a2b['displayName']=_0x530d76);}function _0x2b7d08(_0x47700d,_0x5298f6){const _0x2a3b2f=_0x952e9f,{fieldId:_0x4daa5d,collapse:_0x527ab0,item:_0x4b3349}=_0x5298f6;_0x4b3349!==void 0x0?(_0x47700d[_0x2a3b2f(0x2ec)][_0x4daa5d]=_0x47700d[_0x2a3b2f(0x2ec)][_0x4daa5d]||{},_0x47700d['collapseInfo'][_0x4daa5d][_0x4b3349]=_0x527ab0):_0x47700d['collapseInfo'][_0x4daa5d]=_0x527ab0;}function _0x3d549b(_0x403766,_0x1e6752){const _0x6efe81=_0x952e9f,{fieldId:_0x3ddd80,format:_0x419449}=_0x1e6752,_0x4e2eea=_0x5f1556(_0x403766,_0x3ddd80);_0x4e2eea&&(_0x4e2eea[_0x6efe81(0x21e)]=_0x419449);}function _0x5b9de4(_0x465103,_0x253c57){const {fieldId:_0x4a6140,filterInfo:_0x16d84f}=_0x253c57,_0x428783=_0x5f1556(_0x465103,_0x4a6140);_0x428783&&(_0x428783['filterInfo']=_0x16d84f);}function _0x54f67a(_0x1f8acf,_0x241f2a){const _0x21d442=_0x952e9f,{fieldId:_0x24d9b9,filterInfo:_0x5596a0}=_0x241f2a,_0x2e0c50=_0x1f8acf[_0x21d442(0x1a9)][_0x21d442(0x279)](_0x108a9c=>_0x108a9c[_0x21d442(0x126)]!==_0x24d9b9);_0x5596a0&&_0x2e0c50['push']({'fieldId':_0x24d9b9,'filterInfo':_0x5596a0}),_0x1f8acf[_0x21d442(0x1a9)]=_0x2e0c50;}function _0x4d6722(_0x475339,_0x34f4e7){const _0x413462=_0x952e9f,{fieldId:_0x266fc5,subtotalType:_0x446b49}=_0x34f4e7,_0x5c2715=_0x5f1556(_0x475339,_0x266fc5);_0x5c2715&&(_0x5c2715[_0x413462(0x3bf)]=_0x446b49);}function _0x26dab0(_0xcf6e7e,_0x5e6a88){const _0x45313c=_0x952e9f,{fieldId:_0x4a7ed2,oldArea:_0x2bc4b3,area:_0x4578b8,oldIndex:_0x3f3a2e,index:_0x15cbf3}=_0x5e6a88,_0x24c417=_0x2bc4b3!==_0x1978cb['PivotTableFiledAreaEnum']['Value']&&_0x4578b8===_0x1978cb[_0x45313c(0x3be)]['Value'],_0x1aed4a=_0x2bc4b3===_0x1978cb[_0x45313c(0x3be)][_0x45313c(0x2f0)]&&_0x4578b8!==_0x1978cb[_0x45313c(0x3be)]['Value'];if(_0x24c417||_0x1aed4a){const _0x38960f=_0x5f1556(_0xcf6e7e,_0x4a7ed2);_0x38960f&&(_0x24c417?(delete _0xcf6e7e[_0x45313c(0x383)][_0x4a7ed2],_0xcf6e7e['measure'][_0x4a7ed2]=_0x38960f):(delete _0xcf6e7e[_0x45313c(0x3d5)][_0x4a7ed2],_0xcf6e7e[_0x45313c(0x383)][_0x4a7ed2]=_0x38960f));}const _0x592584=_0x36b92f(_0xcf6e7e,_0x2bc4b3),_0x179f87=_0x36b92f(_0xcf6e7e,_0x4578b8);_0x592584[_0x45313c(0x1c4)](_0x3f3a2e,0x1),_0x179f87[_0x45313c(0x1c4)](_0x15cbf3,0x0,_0x4a7ed2);}function _0x549fad(_0x10cf34,_0xe30736){const _0x504d82=_0x952e9f,{valuePosition:_0x58c2d0,index:_0x542d07}=_0xe30736;_0x10cf34[_0x504d82(0x335)]=_0x58c2d0,_0x10cf34[_0x504d82(0x289)]=_0x542d07;}function _0x424aa8(_0x5b0e99,_0x25082f){const _0x37678b=_0x952e9f,{tableFieldId:_0x20816b,sourceName:_0x278930,dataFieldId:_0x4c135a}=_0x25082f,_0x3d5d08=_0x5f1556(_0x5b0e99,_0x20816b);_0x3d5d08&&(_0x3d5d08[_0x37678b(0x11a)]=_0x278930,_0x3d5d08[_0x37678b(0x3f2)]=_0x4c135a);}function _0x46e5a0(_0x5ee096,_0x10ca02){const _0x1b5c3f=_0x952e9f,{fieldId:_0x2a08c5,sortInfo:_0x2cea73}=_0x10ca02,_0x416a57=_0x5f1556(_0x5ee096,_0x2a08c5);_0x416a57&&(_0x416a57[_0x1b5c3f(0x106)]=_0x2cea73);}function _0x298a69(_0x40407f,_0x339e6a){const _0x16d1d5=_0x952e9f,{options:_0x27fd33}=_0x339e6a;_0x40407f[_0x16d1d5(0x28d)]={..._0x40407f['options'],..._0x27fd33};}const _0x4f9dee={'type':_0x71e749[_0x952e9f(0x1ff)]['MUTATION'],'id':'sheet.mutation.add-pivot-field','handler'(_0x23e195,_0x4d454f){const _0x5dbc18=_0x952e9f;if(!_0x4d454f)return!0x1;if(!!_0x23e195[_0x5dbc18(0x3dc)](_0x71e749[_0x5dbc18(0x225)])[_0x5dbc18(0x2dd)](_0xf9ba23))return!0x0;const _0x5c220f=_0x23e195[_0x5dbc18(0x3dc)](_0x3e9a4b['SheetsPivotDataSourceModel']),{pivotTableId:_0x307f17,fieldJson:_0x201341,area:_0x180782,index:_0x99de66,unitId:_0xf13571,subUnitId:_0x23fc60}=_0x4d454f,_0x414061=_0x5c220f[_0x5dbc18(0x123)](_0x307f17);if(!_0x414061)return!0x1;let _0x6c5f37;_0x180782===_0x1978cb['PivotTableFiledAreaEnum']['Value']?_0x6c5f37=_0x1978cb['createValueField'](_0x201341):_0x6c5f37=_0x1978cb[_0x5dbc18(0x37f)](_0x201341),_0x414061['addField'](_0x6c5f37,_0x180782,_0x99de66);const _0x4f4268=_0x5c220f['getPivotTableModelConfig'](_0xf13571,_0x23fc60,_0x307f17);_0x306454(_0x4f4268,_0x4d454f);const _0x4a3038=_0x5c220f[_0x5dbc18(0x405)](_0xf13571,_0x23fc60,_0x307f17);return _0x5c220f['addDirtyPivotTable']({'unitId':_0xf13571,'subUnitId':_0x23fc60,'token':_0x307f17,'type':_0x5cfd72['Set'],'pivotConfig':_0x4a3038}),!0x0;}},_0x314e34={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'id':_0x952e9f(0x10c),'handler'(_0x3df073,_0x5908b4){const _0xa9c261=_0x952e9f;if(!_0x5908b4)return!0x1;if(!!_0x3df073[_0xa9c261(0x3dc)](_0x71e749[_0xa9c261(0x225)])[_0xa9c261(0x2dd)](_0xf9ba23))return!0x0;const _0x3ab9db=_0x3df073['get'](_0x3e9a4b[_0xa9c261(0x386)]),{pivotTableId:_0x5c4d31,fieldId:_0x56db20,unitId:_0x21074b,subUnitId:_0x1ef2db}=_0x5908b4,_0x40ef6c=_0x3ab9db[_0xa9c261(0x123)](_0x5c4d31);if(!_0x40ef6c)return!0x1;_0x40ef6c[_0xa9c261(0xe8)](_0x56db20);const _0x19a2b5=_0x3ab9db[_0xa9c261(0x3d7)](_0x21074b,_0x1ef2db,_0x5c4d31);_0xe7c352(_0x19a2b5,_0x5908b4);const _0x1363f7=_0x3ab9db[_0xa9c261(0x405)](_0x21074b,_0x1ef2db,_0x5c4d31);return _0x3ab9db['addDirtyPivotTable']({'unitId':_0x21074b,'subUnitId':_0x1ef2db,'token':_0x5c4d31,'type':_0x5cfd72['Set'],'pivotConfig':_0x1363f7}),!0x0;}},_0x15f90a={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'id':'sheet.mutation.rename-pivot-field','handler'(_0x4e286e,_0x283d9e){const _0x42d997=_0x952e9f;if(!_0x283d9e)return!0x1;if(!!_0x4e286e[_0x42d997(0x3dc)](_0x71e749[_0x42d997(0x225)])['getConfig'](_0xf9ba23))return!0x0;const _0x1f4ad6=_0x4e286e[_0x42d997(0x3dc)](_0x3e9a4b[_0x42d997(0x386)]),{unitId:_0x6b8a77,subUnitId:_0x48c514,pivotTableId:_0xeeb0d3,fieldId:_0x5ba237,name:_0x736011}=_0x283d9e,_0x556ee7=_0x1f4ad6[_0x42d997(0x123)](_0xeeb0d3);if(!_0x556ee7)return!0x1;_0x556ee7[_0x42d997(0x326)](_0x5ba237,_0x736011);const _0x5e72ec=_0x1f4ad6['getPivotTableModelConfig'](_0x6b8a77,_0x48c514,_0xeeb0d3);return _0x10adca(_0x5e72ec,_0x283d9e),_0x1f4ad6[_0x42d997(0x1e1)]({'unitId':_0x6b8a77,'subUnitId':_0x48c514,'token':_0xeeb0d3,'type':_0x5cfd72[_0x42d997(0x15c)]}),!0x0;}},_0x3d16f6={'type':_0x71e749['CommandType'][_0x952e9f(0x334)],'id':'sheet.mutation.set-pivot-collapse','handler'(_0x5f3f24,_0x3a059f){const _0x17afdf=_0x952e9f;if(!_0x3a059f)return!0x1;if(!!_0x5f3f24[_0x17afdf(0x3dc)](_0x71e749[_0x17afdf(0x225)])[_0x17afdf(0x2dd)](_0xf9ba23))return!0x0;const _0x50d658=_0x5f3f24[_0x17afdf(0x3dc)](_0x3e9a4b[_0x17afdf(0x386)]),{unitId:_0x116bc7,subUnitId:_0x30cbce,pivotTableId:_0x55e5b0,fieldId:_0x33cc13,collapse:_0x448555,item:_0x486e80}=_0x3a059f,_0x1f4910=_0x50d658[_0x17afdf(0x123)](_0x55e5b0);if(!_0x1f4910)return!0x1;_0x1f4910[_0x17afdf(0x401)](_0x33cc13,_0x448555,_0x486e80);const _0x3585d5=_0x50d658[_0x17afdf(0x3d7)](_0x116bc7,_0x30cbce,_0x55e5b0);return _0x2b7d08(_0x3585d5,_0x3a059f),_0x50d658[_0x17afdf(0x1e1)]({'unitId':_0x116bc7,'subUnitId':_0x30cbce,'token':_0x55e5b0,'type':_0x5cfd72[_0x17afdf(0x15c)]}),!0x0;}},_0x3af33e={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'id':_0x952e9f(0xf1),'handler'(_0x4ec2a1,_0x52d6cf){const _0xffb853=_0x952e9f;if(!_0x52d6cf)return!0x1;if(!!_0x4ec2a1[_0xffb853(0x3dc)](_0x71e749[_0xffb853(0x225)])[_0xffb853(0x2dd)](_0xf9ba23))return!0x0;const _0x39bb60=_0x4ec2a1[_0xffb853(0x3dc)](_0x3e9a4b[_0xffb853(0x386)]),{unitId:_0x9352c0,subUnitId:_0x44fc99,pivotTableId:_0x50da19,fieldId:_0x39fa02,format:_0xaf105b}=_0x52d6cf,_0x554160=_0x39bb60[_0xffb853(0x123)](_0x50da19);if(!_0x554160)return!0x1;_0x554160[_0xffb853(0x2d0)](_0x39fa02,_0xaf105b);const _0x4e4f8b=_0x39bb60[_0xffb853(0x3d7)](_0x9352c0,_0x44fc99,_0x50da19);return _0x3d549b(_0x4e4f8b,_0x52d6cf),_0x39bb60[_0xffb853(0x1e1)]({'unitId':_0x9352c0,'subUnitId':_0x44fc99,'token':_0x50da19,'type':_0x5cfd72[_0xffb853(0x15c)]}),!0x0;}},_0x25b050={'type':_0x71e749['CommandType']['MUTATION'],'id':_0x952e9f(0x1d9),'handler'(_0x283efc,_0x898d5f){const _0x2be0ab=_0x952e9f;if(!_0x898d5f)return!0x1;if(!!_0x283efc[_0x2be0ab(0x3dc)](_0x71e749['IConfigService'])['getConfig'](_0xf9ba23))return!0x0;const _0x262ca8=_0x283efc[_0x2be0ab(0x3dc)](_0x3e9a4b[_0x2be0ab(0x386)]),{unitId:_0x3f36e2,subUnitId:_0x8fae0d,pivotTableId:_0x1301b2,fieldId:_0x19b51b,filterInfo:_0x393950}=_0x898d5f,_0x67f8f6=_0x262ca8[_0x2be0ab(0x123)](_0x1301b2);if(!_0x67f8f6)return!0x1;_0x67f8f6[_0x2be0ab(0x1e4)](_0x19b51b,_0x393950);const _0x18f541=_0x262ca8[_0x2be0ab(0x3d7)](_0x3f36e2,_0x8fae0d,_0x1301b2);return _0x5b9de4(_0x18f541,_0x898d5f),_0x262ca8[_0x2be0ab(0x1e1)]({'unitId':_0x3f36e2,'subUnitId':_0x8fae0d,'token':_0x1301b2,'type':_0x5cfd72[_0x2be0ab(0x15c)]}),!0x0;}},_0x377fce={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'id':'sheet.mutation.set-pivot-option','handler'(_0x23067b,_0x27e46c){const _0x4fd4bf=_0x952e9f;if(!_0x27e46c)return!0x1;if(!!_0x23067b[_0x4fd4bf(0x3dc)](_0x71e749['IConfigService'])[_0x4fd4bf(0x2dd)](_0xf9ba23))return!0x0;const _0x50cd0e=_0x23067b[_0x4fd4bf(0x3dc)](_0x3e9a4b[_0x4fd4bf(0x386)]),{unitId:_0x244db4,subUnitId:_0x9025d,pivotTableId:_0x21c8a6,options:_0x2497cd}=_0x27e46c,_0x25b7e0=_0x50cd0e[_0x4fd4bf(0x123)](_0x21c8a6);if(!_0x25b7e0)return!0x1;_0x25b7e0[_0x4fd4bf(0x14d)](_0x2497cd);const _0x59cb49=_0x50cd0e[_0x4fd4bf(0x3d7)](_0x244db4,_0x9025d,_0x21c8a6);return _0x298a69(_0x59cb49,_0x27e46c),_0x50cd0e[_0x4fd4bf(0x1e1)]({'unitId':_0x244db4,'subUnitId':_0x9025d,'token':_0x21c8a6,'type':_0x5cfd72[_0x4fd4bf(0x15c)]}),!0x0;}},_0x37f93b={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'id':_0x952e9f(0x258),'handler'(_0x1c7c7f,_0x62f9fb){const _0x5864fd=_0x952e9f;if(!_0x62f9fb)return!0x1;if(!!_0x1c7c7f[_0x5864fd(0x3dc)](_0x71e749[_0x5864fd(0x225)])[_0x5864fd(0x2dd)](_0xf9ba23))return!0x0;const _0xbc5fdc=_0x1c7c7f[_0x5864fd(0x3dc)](_0x3e9a4b[_0x5864fd(0x386)]),{unitId:_0x363ee8,subUnitId:_0x2a7e33,pivotTableId:_0x5d1697,sortInfo:_0x24f70a,fieldId:_0x3efd51}=_0x62f9fb,_0x521a72=_0xbc5fdc[_0x5864fd(0x123)](_0x5d1697);if(!_0x521a72)return!0x1;_0x521a72[_0x5864fd(0x1ea)](_0x3efd51,_0x24f70a);const _0xd40a01=_0xbc5fdc[_0x5864fd(0x3d7)](_0x363ee8,_0x2a7e33,_0x5d1697);return _0x46e5a0(_0xd40a01,_0x62f9fb),_0xbc5fdc[_0x5864fd(0x1e1)]({'unitId':_0x363ee8,'subUnitId':_0x2a7e33,'token':_0x5d1697,'type':_0x5cfd72[_0x5864fd(0x15c)]}),!0x0;}},_0x4d3daa={'type':_0x71e749['CommandType'][_0x952e9f(0x334)],'id':_0x952e9f(0x352),'handler'(_0x460b0c,_0x4bf060){const _0x292257=_0x952e9f;if(!_0x4bf060)return!0x1;if(!!_0x460b0c['get'](_0x71e749[_0x292257(0x225)])[_0x292257(0x2dd)](_0xf9ba23))return!0x0;const _0x2161ab=_0x460b0c[_0x292257(0x3dc)](_0x3e9a4b['SheetsPivotDataSourceModel']),{unitId:_0x485b9a,subUnitId:_0x43b09c,pivotTableId:_0x27cb2c,fieldId:_0x99f60d,subtotalType:_0x5b5fdd}=_0x4bf060,_0x13634b=_0x2161ab[_0x292257(0x123)](_0x27cb2c);if(!_0x13634b)return!0x1;_0x13634b['setSubtotalType'](_0x99f60d,_0x5b5fdd);const _0x153131=_0x2161ab[_0x292257(0x3d7)](_0x485b9a,_0x43b09c,_0x27cb2c);return _0x4d6722(_0x153131,_0x4bf060),_0x2161ab[_0x292257(0x1e1)]({'unitId':_0x485b9a,'subUnitId':_0x43b09c,'token':_0x27cb2c,'type':_0x5cfd72[_0x292257(0x15c)]}),!0x0;}},_0x4b00fe={'type':_0x71e749['CommandType']['MUTATION'],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x50920b,_0x101448){const _0x4386bf=_0x952e9f;if(!_0x101448)return!0x1;if(!!_0x50920b[_0x4386bf(0x3dc)](_0x71e749['IConfigService'])[_0x4386bf(0x2dd)](_0xf9ba23))return!0x0;const _0x388314=_0x50920b[_0x4386bf(0x3dc)](_0x3e9a4b['SheetsPivotDataSourceModel']),{unitId:_0x503ea3,subUnitId:_0x425055,pivotTableId:_0x201233,fieldId:_0x27e6bb,filterInfo:_0x5bc94f}=_0x101448,_0x416964=_0x388314[_0x4386bf(0x123)](_0x201233);if(!_0x416964)return!0x1;_0x416964[_0x4386bf(0x124)](_0x27e6bb,_0x5bc94f);const _0x59103c=_0x388314[_0x4386bf(0x3d7)](_0x503ea3,_0x425055,_0x201233);return _0x54f67a(_0x59103c,_0x101448),_0x388314[_0x4386bf(0x1e1)]({'unitId':_0x503ea3,'subUnitId':_0x425055,'token':_0x201233,'type':_0x5cfd72[_0x4386bf(0x15c)]}),!0x0;}},_0x2d0f45={'type':_0x71e749['CommandType'][_0x952e9f(0x334)],'id':_0x952e9f(0x306),'handler'(_0x10c827,_0x47efc1){const _0x3260a9=_0x952e9f;if(!_0x47efc1)return!0x1;if(!!_0x10c827[_0x3260a9(0x3dc)](_0x71e749[_0x3260a9(0x225)])[_0x3260a9(0x2dd)](_0xf9ba23))return!0x0;const _0x522b59=_0x10c827[_0x3260a9(0x3dc)](_0x3e9a4b[_0x3260a9(0x386)]),{unitId:_0x3d9354,subUnitId:_0x7b6120,pivotTableId:_0xf82c8c,area:_0x3559ce,index:_0x93c093,fieldId:_0x5b0e5f}=_0x47efc1,_0x47ddfc=_0x522b59[_0x3260a9(0x123)](_0xf82c8c);if(!_0x47ddfc)return!0x1;_0x47ddfc['updateFieldPosition'](_0x5b0e5f,_0x3559ce,_0x93c093);const _0xe0e383=_0x522b59[_0x3260a9(0x3d7)](_0x3d9354,_0x7b6120,_0xf82c8c);return _0x26dab0(_0xe0e383,_0x47efc1),_0x522b59['addDirtyPivotTable']({'unitId':_0x3d9354,'subUnitId':_0x7b6120,'token':_0xf82c8c,'type':_0x5cfd72['Set']}),!0x0;}},_0x2da68e={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'id':_0x952e9f(0x1b1),'handler'(_0x202d93,_0x28fd0e){const _0x439caf=_0x952e9f;if(!_0x28fd0e)return!0x1;if(!!_0x202d93[_0x439caf(0x3dc)](_0x71e749[_0x439caf(0x225)])[_0x439caf(0x2dd)](_0xf9ba23))return!0x0;const _0x44bf14=_0x202d93[_0x439caf(0x3dc)](_0x3e9a4b[_0x439caf(0x386)]),{unitId:_0x4aaade,subUnitId:_0x46b1b5,pivotTableId:_0x4a7899,sourceName:_0x2fd6cb,dataFieldId:_0x122f21,tableFieldId:_0x3e2826}=_0x28fd0e,_0x281637=_0x44bf14[_0x439caf(0x123)](_0x4a7899);if(!_0x281637)return!0x1;_0x281637['updateFieldSourceInfo'](_0x3e2826,_0x2fd6cb,_0x122f21);const _0x37b4c1=_0x44bf14[_0x439caf(0x3d7)](_0x4aaade,_0x46b1b5,_0x4a7899);return _0x424aa8(_0x37b4c1,_0x28fd0e),_0x44bf14[_0x439caf(0x1e1)]({'unitId':_0x4aaade,'subUnitId':_0x46b1b5,'token':_0x4a7899,'type':_0x5cfd72['Set']}),!0x0;}},_0x27db08={'type':_0x71e749['CommandType'][_0x952e9f(0x334)],'id':'sheet.mutation.pivot-update-value-position','handler'(_0xbb9ff3,_0x3afa26){const _0x563a8e=_0x952e9f;if(!_0x3afa26)return!0x1;if(!!_0xbb9ff3['get'](_0x71e749['IConfigService'])[_0x563a8e(0x2dd)](_0xf9ba23))return!0x0;const _0x54b0de=_0xbb9ff3[_0x563a8e(0x3dc)](_0x3e9a4b[_0x563a8e(0x386)]),{unitId:_0x546f7f,subUnitId:_0x35ca88,pivotTableId:_0x43e422,valuePosition:_0x3f7c34,index:_0x2ea42e}=_0x3afa26,_0x1c826b=_0x54b0de[_0x563a8e(0x123)](_0x43e422);if(!_0x1c826b)return!0x1;_0x1c826b[_0x563a8e(0x12b)](_0x3f7c34,_0x2ea42e);const _0x1a537d=_0x54b0de[_0x563a8e(0x3d7)](_0x546f7f,_0x35ca88,_0x43e422);return _0x549fad(_0x1a537d,_0x3afa26),_0x54b0de[_0x563a8e(0x1e1)]({'unitId':_0x546f7f,'subUnitId':_0x35ca88,'token':_0x43e422,'type':_0x5cfd72[_0x563a8e(0x15c)]}),!0x0;}};function _0x2dd215(_0x2f950c,_0x16495f,_0x11d4ab){const _0x2acecf=_0x952e9f,{pivotTableId:_0xa4d6fa,unitId:_0x1ba7af,subUnitId:_0x3314f8}=_0x16495f,_0x4415a3=[],_0xa79cf0=[];for(const _0x5b9c4b of _0x11d4ab)switch(_0x5b9c4b[_0x2acecf(0x2e2)]){case _0x1978cb[_0x2acecf(0x406)][_0x2acecf(0x2e7)]:{const {fieldJson:_0x578520,area:_0x5355a0,index:_0x145f0b}=_0x5b9c4b,_0x4c9286={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldJson':_0x578520,'area':_0x5355a0,'index':_0x145f0b},_0x1affa4={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x578520['id'],'area':_0x5355a0,'index':_0x145f0b};_0x4415a3['push']({'id':_0x4f9dee['id'],'params':_0x4c9286}),_0xa79cf0[_0x2acecf(0x271)]({'id':_0x314e34['id'],'params':_0x1affa4});}break;case _0x1978cb['PivotTableChangeTypeEnum'][_0x2acecf(0x322)]:{const {fieldId:_0x87efb7,newSubtotalType:_0x42b247,oldSubtotalType:_0xf8cf72}=_0x5b9c4b,_0x3c9496={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x87efb7,'subtotalType':_0x42b247};_0x4415a3[_0x2acecf(0x2b7)]({'id':_0x4d3daa['id'],'params':_0x3c9496});const _0x3484a4={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x87efb7,'subtotalType':_0xf8cf72};_0xa79cf0[_0x2acecf(0x271)]({'id':_0x4d3daa['id'],'params':_0x3484a4});}break;case _0x1978cb[_0x2acecf(0x406)][_0x2acecf(0xe7)]:{const {fieldId:_0x2d77da,fieldJson:_0x34ede9,area:_0x1f1db1,index:_0x42cdee}=_0x5b9c4b,_0xe93397={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x2d77da,'index':_0x42cdee,'area':_0x1f1db1};_0x4415a3[_0x2acecf(0x2b7)]({'id':_0x314e34['id'],'params':_0xe93397});const _0xcc3756={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldJson':_0x34ede9,'area':_0x1f1db1,'index':_0x42cdee};_0xa79cf0[_0x2acecf(0x271)]({'id':_0x4f9dee['id'],'params':_0xcc3756});}break;case _0x1978cb[_0x2acecf(0x406)][_0x2acecf(0x2dc)]:{const {fieldId:_0x102dab,oldName:_0x86af8f,newName:_0x34a36a}=_0x5b9c4b,_0x1ddb9d={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x102dab,'name':_0x34a36a};_0x4415a3[_0x2acecf(0x2b7)]({'id':_0x15f90a['id'],'params':_0x1ddb9d});const _0x3c7572={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x102dab,'name':_0x86af8f};_0xa79cf0[_0x2acecf(0x271)]({'id':_0x15f90a['id'],'params':_0x3c7572});}break;case _0x1978cb[_0x2acecf(0x406)]['SetFilterInfo']:{const {fieldId:_0x522ca3,oldFilterInfo:_0x143c8b,newFilterInfo:_0x3eca05}=_0x5b9c4b,_0x253737={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x522ca3,'filterInfo':_0x3eca05};_0x4415a3[_0x2acecf(0x2b7)]({'id':_0x25b050['id'],'params':_0x253737});const _0x3a55c9={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x522ca3,'filterInfo':_0x143c8b};_0xa79cf0[_0x2acecf(0x271)]({'id':_0x25b050['id'],'params':_0x3a55c9});}break;case _0x1978cb[_0x2acecf(0x406)][_0x2acecf(0x27b)]:{const {fieldId:_0x14f3e7,oldSortInfo:_0x43d812,newSortInfo:_0x45ada5}=_0x5b9c4b,_0x55f169={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x14f3e7,'sortInfo':_0x45ada5};_0x4415a3[_0x2acecf(0x2b7)]({'id':_0x37f93b['id'],'params':_0x55f169});const _0x217202={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x14f3e7,'sortInfo':_0x43d812};_0xa79cf0[_0x2acecf(0x271)]({'id':_0x37f93b['id'],'params':_0x217202});}break;case _0x1978cb[_0x2acecf(0x406)][_0x2acecf(0x37b)]:{const {oldOptions:_0xb1c9cf,newOptions:_0x2c4671}=_0x5b9c4b,_0x797c51={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'options':_0x2c4671};_0x4415a3['push']({'id':_0x377fce['id'],'params':_0x797c51});const _0x15904b={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'options':_0xb1c9cf};_0xa79cf0[_0x2acecf(0x271)]({'id':_0x377fce['id'],'params':_0x15904b});}break;case _0x1978cb[_0x2acecf(0x406)][_0x2acecf(0x2e3)]:{const {oldArea:_0x3de880,newArea:_0x412ce5,oldIndex:_0x2a553b,newIndex:_0x3ef5fe,fieldId:_0xad96e1}=_0x5b9c4b,_0x330cad={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0xad96e1,'area':_0x412ce5,'index':_0x3ef5fe,'oldArea':_0x3de880,'oldIndex':_0x2a553b};_0x4415a3['push']({'id':_0x2d0f45['id'],'params':_0x330cad});const _0x40b17b={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0xad96e1,'area':_0x3de880,'index':_0x2a553b,'oldArea':_0x412ce5,'oldIndex':_0x3ef5fe};_0xa79cf0['unshift']({'id':_0x2d0f45['id'],'params':_0x40b17b});}break;case _0x1978cb[_0x2acecf(0x406)][_0x2acecf(0x26f)]:{const {oldValuePosition:_0x754eb2,newValuePosition:_0x3ec132,oldIndex:_0x447998,newIndex:_0x394d49}=_0x5b9c4b,_0x4b3efd={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'valuePosition':_0x3ec132,'index':_0x394d49};_0x4415a3[_0x2acecf(0x2b7)]({'id':_0x27db08['id'],'params':_0x4b3efd});const _0x13bfda={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'valuePosition':_0x754eb2,'index':_0x447998};_0xa79cf0[_0x2acecf(0x271)]({'id':_0x27db08['id'],'params':_0x13bfda});}break;case _0x1978cb['PivotTableChangeTypeEnum'][_0x2acecf(0x2fe)]:{const {fieldId:_0x291a7c,collapse:_0x3a5ebb,item:_0x1fb762}=_0x5b9c4b,_0x261c51={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x291a7c,'collapse':_0x3a5ebb,'item':_0x1fb762};_0x4415a3[_0x2acecf(0x2b7)]({'id':_0x3d16f6['id'],'params':_0x261c51});const _0x522b75={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x291a7c,'collapse':!_0x3a5ebb,'item':_0x1fb762};_0xa79cf0['unshift']({'id':_0x3d16f6['id'],'params':_0x522b75});}break;case _0x1978cb['PivotTableChangeTypeEnum'][_0x2acecf(0x1d8)]:{const {newFormat:_0x41c4eb,oldFormat:_0x12f6b1,fieldId:_0x34805c}=_0x5b9c4b,_0x43ef05={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x34805c,'format':_0x41c4eb};_0x4415a3[_0x2acecf(0x2b7)]({'id':_0x3af33e['id'],'params':_0x43ef05});const _0x4a64bb={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x34805c,'format':_0x12f6b1};_0xa79cf0[_0x2acecf(0x271)]({'id':_0x3af33e['id'],'params':_0x4a64bb});}break;case _0x1978cb['PivotTableChangeTypeEnum'][_0x2acecf(0x228)]:{const {tableFieldId:_0x28bf5f,oldSourceName:_0x535455,newSourceName:_0x4ec6a3,oldDataFieldId:_0x112a21,newDataFieldId:_0x473ec6}=_0x5b9c4b,_0x57193c={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'tableFieldId':_0x28bf5f,'sourceName':_0x4ec6a3,'dataFieldId':_0x473ec6};_0x4415a3[_0x2acecf(0x2b7)]({'id':_0x2da68e['id'],'params':_0x57193c});const _0x50cd4e={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'tableFieldId':_0x28bf5f,'sourceName':_0x535455,'dataFieldId':_0x112a21};_0xa79cf0[_0x2acecf(0x271)]({'id':_0x2da68e['id'],'params':_0x50cd4e});}break;case _0x1978cb[_0x2acecf(0x406)]['SetValueFilter']:{const {fieldId:_0x5a9ec3,filterInfo:_0x41b779,oldFilterInfo:_0x42ca18}=_0x5b9c4b,_0x505ad4={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x5a9ec3,'filterInfo':_0x41b779};_0x4415a3[_0x2acecf(0x2b7)]({'id':_0x4b00fe['id'],'params':_0x505ad4});const _0x1c04d0={'unitId':_0x1ba7af,'subUnitId':_0x3314f8,'pivotTableId':_0xa4d6fa,'fieldId':_0x5a9ec3,'filterInfo':_0x42ca18};_0xa79cf0[_0x2acecf(0x271)]({'id':_0x4b00fe['id'],'params':_0x1c04d0});}}return{'redos':_0x4415a3,'undos':_0xa79cf0};}function _0xdc7318(_0x47d0af,_0x13eb20){const _0x4d1dd5=_0x952e9f;var _0x5d8bea;const _0x426f4a=_0x47d0af['get'](_0x3e9a4b[_0x4d1dd5(0x257)]),{cellInfo:_0x25d99e,view:_0x187840,isEmpty:_0xf28da0}=_0x13eb20;return(_0x5d8bea=_0x426f4a[_0x4d1dd5(0x121)][_0x4d1dd5(0x38d)](_0x2f3b0c)(_0xd6d385,{'cellInfo':_0x25d99e,'view':_0x187840,'isEmpty':_0xf28da0}))!=null?_0x5d8bea:_0xd6d385;}const _0x4eb7ba=()=>typeof process<'u'&&process['versions']!=null&&process[_0x952e9f(0x3e1)]['node']!=null,_0x191981={'type':_0x71e749[_0x952e9f(0x1ff)]['MUTATION'],'id':'sheet.mutation.add-pivot-table','handler'(_0x3b7172,_0x591274){const _0x2d9844=_0x952e9f;var _0x1a4466;if(!_0x591274)return!0x1;const _0x221eda=_0x3b7172[_0x2d9844(0x3dc)](_0x71e749['IConfigService']);if(!!_0x221eda['getConfig'](_0xf9ba23))return!0x0;const _0x3d9589=_0x3b7172[_0x2d9844(0x3dc)](_0x71e749[_0x2d9844(0x168)]),_0x229139=_0x3b7172[_0x2d9844(0x3dc)](_0x3e9a4b[_0x2d9844(0x386)]),{pivotTableId:_0x5a2682,pivotTableConfig:_0x39fe1f,collectionConfig:_0x1a8470,unitId:_0x475458,subUnitId:_0x5508f8}=_0x591274,{sourceRangeInfo:_0x4c62a5,fieldsConfig:_0x150135,targetCellInfo:_0x40fe0f}=_0x39fe1f,_0x5ef819=_0x3d9589[_0x2d9844(0x38c)](_0x475458);if(!_0x5ef819||!_0x5ef819['getSheetBySheetId'](_0x5508f8))return!0x1;if(!_0x4eb7ba()){let _0x2d3e0f=0x0;_0x5ef819[_0x2d9844(0x342)]()[_0x2d9844(0x1fb)](_0x54e4e3=>{const _0x5beaf3=_0x2d9844;var _0x44cf62,_0x1d3939;_0x2d3e0f+=(_0x1d3939=(_0x44cf62=_0x229139['getSubUnitPivotConfigs'](_0x475458,_0x54e4e3[_0x5beaf3(0x20e)]()))==null?void 0x0:_0x44cf62[_0x5beaf3(0x303)])!=null?_0x1d3939:0x0;});const _0x5d4412=(_0x1a4466=_0x221eda[_0x2d9844(0x2dd)](_0x53e420[_0x2d9844(0xe5)]))!=null?_0x1a4466:{},{ls:_0x36701e,pbk:_0x8d6187}=_0x5d4412;if(!_0x4f39c8(_0x36701e,_0x8d6187))throw new _0x71e749['CustomCommandExecutionError'](_0x2d9844(0x1da));const _0x257e8e=_0xfe1c71(_0x1a1b40,_0x36701e,_0x8d6187)[_0x2d9844(0x165)];if(_0x2d3e0f>=_0x257e8e)throw new _0x71e749[(_0x2d9844(0x27d))]('limit\x20pivot');}if(!_0x1a8470||!_0x150135)return!0x1;const {collection:_0x4e5fec,updateDataFieldList:_0x39fcd2}=_0x229139[_0x2d9844(0x132)](_0x5a2682,_0x1a8470,_0x4c62a5,_0x40fe0f);_0x229139['refreshData'](_0x4e5fec,_0x39fcd2,_0x4c62a5);const _0x238ec1=new _0x1978cb[(_0x2d9844(0x28e))](_0x4e5fec,void 0x0,_0x5a2682);_0x238ec1[_0x2d9844(0x136)](_0x150135);const _0x2e2da7=JSON[_0x2d9844(0x2f8)](JSON[_0x2d9844(0x26d)](_0x39fe1f));return _0x229139[_0x2d9844(0x261)](_0x475458,_0x5508f8,_0x5a2682,_0x238ec1,_0x2e2da7),_0x229139[_0x2d9844(0x1e1)]({'unitId':_0x475458,'subUnitId':_0x5508f8,'token':_0x5a2682,'type':_0x5cfd72[_0x2d9844(0x38e)],'pivotConfig':_0x2e2da7}),!0x0;}},_0x5f2bbe={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'id':_0x952e9f(0x2cf),'handler'(_0x3a819c,_0x7eb95){const _0x4eedce=_0x952e9f;if(!_0x7eb95)return!0x1;if(!!_0x3a819c[_0x4eedce(0x3dc)](_0x71e749['IConfigService'])[_0x4eedce(0x2dd)](_0xf9ba23))return!0x0;const {pivotTableId:_0x233d64,unitId:_0x51035f,subUnitId:_0x162934}=_0x7eb95,_0x4ea2fa=_0x3a819c[_0x4eedce(0x3dc)](_0x3e9a4b['SheetsPivotDataSourceModel']);return _0x4ea2fa[_0x4eedce(0x405)](_0x51035f,_0x162934,_0x233d64)?(_0x4ea2fa[_0x4eedce(0x1e1)]({'unitId':_0x51035f,'subUnitId':_0x162934,'token':_0x233d64,'type':_0x5cfd72[_0x4eedce(0x22c)]}),_0x4ea2fa['removePivotTable'](_0x51035f,_0x162934,_0x233d64),!0x0):!0x1;}},_0x140124={'type':_0x71e749[_0x952e9f(0x1ff)]['MUTATION'],'id':_0x952e9f(0x241),'handler'(_0x3861de,_0x5d0019){const _0x340f91=_0x952e9f;if(!_0x5d0019)return!0x1;if(!!_0x3861de['get'](_0x71e749['IConfigService'])[_0x340f91(0x2dd)](_0xf9ba23))return!0x0;const {pivotTableId:_0x5a4ce3,targetCellPosition:_0x2d8472,unitId:_0x168fef,subUnitId:_0x50f375}=_0x5d0019,_0x126ebb=_0x3861de[_0x340f91(0x3dc)](_0x3e9a4b[_0x340f91(0x386)]);if(!_0x126ebb[_0x340f91(0x123)](_0x5d0019[_0x340f91(0x1a5)]))return!0x1;const _0x2d8a06=_0x126ebb[_0x340f91(0x1cd)](_0x5a4ce3);if(!_0x2d8a06)return!0x1;const _0xab9d1f=_0x126ebb[_0x340f91(0x3b3)](_0x2d8a06[_0x340f91(0x27e)],_0x5d0019['pivotTableId']);if(!_0xab9d1f)return!0x1;const _0x2dca84=_0x126ebb[_0x340f91(0x405)](_0x2d8a06[_0x340f91(0x27e)],_0x2d8a06['subUnitId'],_0x5a4ce3);if(!_0x2dca84)return!0x1;const _0x1076cb=_0x71e749[_0x340f91(0x349)][_0x340f91(0x2b1)](_0x2dca84);_0x1076cb[_0x340f91(0x354)]={'unitId':_0x168fef,'subUnitId':_0x50f375,'row':_0x2d8472[_0x340f91(0x2f4)],'col':_0x2d8472['col']};const _0x18f2ed=_0xab9d1f['toJSON']();if(_0x2d8a06[_0x340f91(0x277)]===_0x50f375&&_0x2d8a06['unitId']===_0x168fef)_0x126ebb['setPivotTable'](_0x168fef,_0x50f375,_0x5a4ce3,_0x1076cb),_0x126ebb[_0x340f91(0x1e1)]({'unitId':_0x168fef,'subUnitId':_0x50f375,'token':_0x5a4ce3,'type':_0x5cfd72[_0x340f91(0x15c)]});else{_0x126ebb[_0x340f91(0x1e1)]({'unitId':_0x2d8a06[_0x340f91(0x27e)],'subUnitId':_0x2d8a06['subUnitId'],'token':_0x5a4ce3,'type':_0x5cfd72['Delete']}),_0x126ebb['removePivotTable'](_0x2d8a06[_0x340f91(0x27e)],_0x2d8a06[_0x340f91(0x277)],_0x5a4ce3);const _0x36b3b6=_0x126ebb[_0x340f91(0x132)](_0x5a4ce3,_0x18f2ed,_0x2dca84[_0x340f91(0x3a8)],_0x1076cb['targetCellInfo']),_0x20ffe7=new _0x1978cb[(_0x340f91(0x28e))](_0x36b3b6[_0x340f91(0x3c4)],void 0x0,_0x5a4ce3);_0x20ffe7['fromJSON'](_0x1076cb[_0x340f91(0x13c)]),_0x126ebb[_0x340f91(0x261)](_0x168fef,_0x50f375,_0x5a4ce3,_0x20ffe7,_0x1076cb),_0x126ebb['addDirtyPivotTable']({'unitId':_0x168fef,'subUnitId':_0x50f375,'token':_0x5a4ce3,'type':_0x5cfd72['Add'],'pivotConfig':_0x1076cb});}return!0x0;}},_0x3f6e25={'type':_0x71e749['CommandType'][_0x952e9f(0x334)],'id':_0x952e9f(0x3c6),'handler'(_0x4ddad1,_0x541f30){const _0x1c7787=_0x952e9f;if(!_0x541f30)return!0x1;if(!!_0x4ddad1[_0x1c7787(0x3dc)](_0x71e749[_0x1c7787(0x225)])[_0x1c7787(0x2dd)](_0xf9ba23))return!0x0;const _0x59bccc=_0x4ddad1[_0x1c7787(0x3dc)](_0x3e9a4b[_0x1c7787(0x386)]),{pivotTableId:_0x49e216,deleteIds:_0x258210,collectionJSON:_0x5a0e30,dataRangeInfo:_0x1e7186,unitId:_0x1d378b,subUnitId:_0x5ec030}=_0x541f30,_0x209f15=_0x59bccc[_0x1c7787(0x123)](_0x49e216),_0x3734ae=_0x59bccc['getPivotTableConfig'](_0x1d378b,_0x5ec030,_0x49e216);if(!_0x209f15||!_0x3734ae)return!0x1;const {collection:_0x541117,updateDataFieldList:_0x3621f4}=_0x59bccc[_0x1c7787(0x132)](_0x49e216,_0x5a0e30,_0x1e7186,_0x3734ae['targetCellInfo']);_0x59bccc['refreshData'](_0x541117,_0x3621f4,_0x1e7186),_0x209f15['updateDataFieldsCollection'](_0x541117);for(const _0x4e88a3 of _0x258210)_0x59bccc[_0x1c7787(0x238)](_0x1e7186[_0x1c7787(0x27e)],_0x4e88a3);const _0x5cceef=_0x59bccc[_0x1c7787(0x405)](_0x1d378b,_0x5ec030,_0x49e216);return _0x5cceef[_0x1c7787(0x3a8)]=JSON[_0x1c7787(0x2f8)](JSON[_0x1c7787(0x26d)](_0x1e7186)),_0x59bccc[_0x1c7787(0x1e1)]({'unitId':_0x1d378b,'subUnitId':_0x5ec030,'token':_0x49e216,'type':_0x5cfd72[_0x1c7787(0x15c)]}),!0x0;}},_0x4c380b={'type':_0x71e749['CommandType'][_0x952e9f(0x334)],'id':_0x952e9f(0x358),'handler'(){return!0x0;}};var _0x5418e5=Object[_0x952e9f(0x169)],_0x20344f=(_0x59b0ea,_0x35e3bc,_0xf33d74,_0x2c2ff3)=>{for(var _0x5b7328=_0x2c2ff3>0x1?void 0x0:_0x2c2ff3?_0x5418e5(_0x35e3bc,_0xf33d74):_0x35e3bc,_0x27dd01=_0x59b0ea['length']-0x1,_0x9b3be;_0x27dd01>=0x0;_0x27dd01--)(_0x9b3be=_0x59b0ea[_0x27dd01])&&(_0x5b7328=_0x9b3be(_0x5b7328)||_0x5b7328);return _0x5b7328;},_0x5cf7ba=(_0x4da91b,_0x15fa7e)=>(_0xd92874,_0x53c1ee)=>_0x15fa7e(_0xd92874,_0x53c1ee,_0x4da91b);_0x3e9a4b['SheetsPivotRPCService']=class extends _0x71e749[_0x952e9f(0x1bf)]{constructor(_0x10e60a,_0x25f6eb){const _0x389bc6=_0x952e9f;super(),_0x59bac0(this,'_requestResolvers',new Map()),(this[_0x389bc6(0x170)]=_0x10e60a,this[_0x389bc6(0x107)]=_0x25f6eb);}[_0x952e9f(0x30a)](_0x5bab64){const _0x1a7818=_0x952e9f,{version:_0x15d47b}=_0x5bab64,_0x8f2e69=this[_0x1a7818(0x208)][_0x1a7818(0x3dc)](_0x15d47b);_0x8f2e69&&(_0x8f2e69(_0x5bab64),this[_0x1a7818(0x208)][_0x1a7818(0x366)](_0x15d47b));}[_0x952e9f(0x1c1)](_0x28ae31){return new Promise((_0x197c61,_0xa8ae60)=>{const _0x16b23f=_0x2e3d,_0x3f4f14=this[_0x16b23f(0x283)]();this[_0x16b23f(0x208)]['set'](_0x3f4f14,_0x197c61),this[_0x16b23f(0x107)][_0x16b23f(0xfd)](_0x1efe7b['id'],{'version':_0x3f4f14,..._0x28ae31},{'onlyLocal':!0x0});});}[_0x952e9f(0x283)](){const _0x278965=_0x952e9f;return Math[_0x278965(0x270)]()[_0x278965(0x2d6)](0x24)[_0x278965(0x3fe)](0x2,0x10);}},_0x3e9a4b['SheetsPivotRPCService']=_0x20344f([_0x5cf7ba(0x0,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x297)])),_0x5cf7ba(0x1,_0x71e749[_0x952e9f(0x3f5)](_0x71e749['ICommandService']))],_0x3e9a4b[_0x952e9f(0x211)]);const _0x5e9fc0={'id':_0x952e9f(0x2b3),'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'handler':(_0x22dba0,_0x4313cb)=>{const _0x501b65=_0x952e9f;if(!_0x4313cb)return!0x1;if(!!_0x22dba0['get'](_0x71e749[_0x501b65(0x225)])[_0x501b65(0x2dd)](_0xf9ba23))return!0x0;const {pivotTableId:_0x10d211,fieldJSON:_0x500e6b,unitId:_0x4de381,subUnitId:_0x516609}=_0x4313cb,_0xe88cd0=_0x1978cb['BaseGroupField'][_0x501b65(0x136)](_0x500e6b);if(!_0xe88cd0)return!0x1;const _0x54675e=_0x22dba0[_0x501b65(0x3dc)](_0x3e9a4b[_0x501b65(0x386)]),_0x107188=_0x54675e['getDataFieldManager'](_0x4de381),_0x24ee10=_0x107188[_0x501b65(0x3b3)](_0x10d211);_0x107188[_0x501b65(0x10b)](_0xe88cd0),_0x24ee10[_0x501b65(0x1de)](_0xe88cd0['getId'](),_0xe88cd0['getName']());const _0x592cd5=_0x24ee10[_0x501b65(0x17d)](_0xe88cd0[_0x501b65(0x245)]());_0x592cd5&&_0xe88cd0[_0x501b65(0x2f1)](_0x592cd5);const _0x1e79d0=_0x54675e[_0x501b65(0x405)](_0x4de381,_0x516609,_0x10d211);return _0x54675e[_0x501b65(0x1e1)]({'unitId':_0x4de381,'subUnitId':_0x516609,'token':_0x10d211,'type':_0x5cfd72['Set'],'pivotConfig':_0x1e79d0}),!0x0;}},_0x9a9807={'id':_0x952e9f(0x407),'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0x334)],'handler':(_0x23636f,_0x273031)=>{const _0x543898=_0x952e9f;if(!_0x273031)return!0x1;if(!!_0x23636f[_0x543898(0x3dc)](_0x71e749[_0x543898(0x225)])[_0x543898(0x2dd)](_0xf9ba23))return!0x0;const {pivotTableId:_0x3a33ed,dataFieldId:_0x11fff1,unitId:_0x2bb5f5,subUnitId:_0x5877b0}=_0x273031,_0x52daef=_0x23636f[_0x543898(0x3dc)](_0x3e9a4b['SheetsPivotDataSourceModel']),_0x2a26e6=_0x52daef[_0x543898(0x351)](_0x2bb5f5);_0x2a26e6['getCollection'](_0x3a33ed)[_0x543898(0x3cf)](_0x11fff1);let _0x43d70a=!0x0;for(const _0x4fff69 in _0x2a26e6[_0x543898(0x3d8)])if(_0x2a26e6['collections'][_0x4fff69]['getFieldIds']()[_0x543898(0x302)](_0x11fff1)){_0x43d70a=!0x1;break;}_0x43d70a&&_0x2a26e6[_0x543898(0x1eb)](_0x11fff1);const _0xb07419=_0x52daef['getPivotTableConfig'](_0x2bb5f5,_0x5877b0,_0x3a33ed);return _0x52daef[_0x543898(0x1e1)]({'unitId':_0x2bb5f5,'subUnitId':_0x5877b0,'token':_0x3a33ed,'type':_0x5cfd72[_0x543898(0x15c)],'pivotConfig':_0xb07419}),!0x0;}},_0x1515c8={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0xf7)],'id':'sheet.command.add-pivot-field',async 'handler'(_0x405265,_0x29859d){const _0x1a7d3f=_0x952e9f;if(!_0x29859d)return!0x1;const _0x1121f0=_0x405265[_0x1a7d3f(0x3dc)](_0x71e749[_0x1a7d3f(0x1ec)]),_0x47dcea=_0x405265[_0x1a7d3f(0x3dc)](_0x3e9a4b['SheetsPivotRPCService']),_0x5dc0b4=_0x405265['get'](_0x71e749[_0x1a7d3f(0x1e7)]),{pivotTableId:_0x40be22,dataFieldId:_0x503ff1,fieldArea:_0xaad9bf,index:_0x3f15be,unitId:_0x47ab07,subUnitId:_0x445616}=_0x29859d,_0x2ab123=(await _0x47dcea[_0x1a7d3f(0x1c1)]({'unitId':_0x47ab07,'subUnitId':_0x445616,'pivotTableId':_0x40be22,'params':{'type':_0x2dff37[_0x1a7d3f(0x400)],'addPivotField':{'dataFieldId':_0x503ff1,'fieldArea':_0xaad9bf,'index':_0x3f15be}}}))[_0x1a7d3f(0x144)][_0x1a7d3f(0xec)];if(!_0x2ab123)return!0x1;const {view:_0x409a52,changesets:_0x292144,isEmpty:_0x382a5a,pivotTableConfig:_0x8eaa8,shouldBeAddedGroupJSON:_0x2cd2c8}=_0x2ab123,_0x3506e1=_0x8eaa8[_0x1a7d3f(0x354)],_0x47d5db=new _0x1978cb[(_0x1a7d3f(0x26b))]();_0x47d5db['formJSON'](_0x409a52);const _0x21f83d={'cellInfo':_0x3506e1,'view':_0x47d5db,'isEmpty':_0x382a5a};if(!await _0x405265[_0x1a7d3f(0x3dc)](_0x3e9a4b['SheetsPivotTableService'])[_0x1a7d3f(0xf6)]['fetchThroughAsyncInterceptors'](_0x178140)(!0x0,_0x21f83d))return!0x1;const _0x4de947=_0xed8bbb(_0x405265,_0x47d5db,_0x3506e1,_0x382a5a),_0x4d5743=_0xdc7318(_0x405265,_0x21f83d),{undos:_0x1750be,redos:_0x550f97}=_0x2dd215(_0x1121f0,{'pivotTableId':_0x40be22,'unitId':_0x47ab07,'subUnitId':_0x445616},_0x292144);return _0x2cd2c8&&(_0x550f97[_0x1a7d3f(0x271)]({'id':_0x5e9fc0['id'],'params':{'pivotTableId':_0x40be22,'fieldJSON':_0x2cd2c8,'unitId':_0x47ab07,'subUnitId':_0x445616}}),_0x1750be[_0x1a7d3f(0x2b7)]({'id':_0x9a9807['id'],'params':{'pivotTableId':_0x40be22,'dataFieldId':_0x2cd2c8['id'],'unitId':_0x47ab07,'subUnitId':_0x445616}})),_0x71e749['sequenceExecute']([..._0x4de947[_0x1a7d3f(0x1ae)],..._0x4d5743[_0x1a7d3f(0x1ae)],..._0x550f97],_0x1121f0),_0x5dc0b4[_0x1a7d3f(0x23a)]({'unitID':_0x47ab07,'redoMutations':[..._0x4de947[_0x1a7d3f(0x1ae)],..._0x4d5743[_0x1a7d3f(0x1ae)],..._0x550f97],'undoMutations':[..._0x4de947[_0x1a7d3f(0x233)],..._0x4d5743['undos'],..._0x1750be]}),!0x0;}},_0x5f392f={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0xf7)],'id':_0x952e9f(0x1d4),async 'handler'(_0x14f7cb,_0x2ee910){const _0x236484=_0x952e9f;if(!_0x2ee910)return!0x1;const {sourceDataInfo:_0x16a25f,pivotTableConfig:_0x121b6d}=_0x2ee910;if(!_0x16a25f||!_0x121b6d)return!0x1;const {unitId:_0x45fa1e,subUnitId:_0x4f9938,range:_0x4b7495}=_0x16a25f,_0x5cd166=_0x14f7cb[_0x236484(0x3dc)](_0x71e749[_0x236484(0x168)]),_0x516f2a=_0x14f7cb[_0x236484(0x3dc)](_0x3e9a4b[_0x236484(0x211)]),_0x443306=_0x14f7cb[_0x236484(0x3dc)](_0x71e749[_0x236484(0x364)]),_0x12106d=_0x14f7cb[_0x236484(0x3dc)](_0x71e749['ICommandService']),_0x87bd4c=_0x5cd166[_0x236484(0x38c)](_0x45fa1e);if(!_0x87bd4c)return!0x1;const _0x107971=_0x87bd4c[_0x236484(0x216)](_0x4f9938);if(!_0x107971)return!0x1;const _0x466dbe=_0x1978cb[_0x236484(0x24d)](0x8),_0xc10ffe=_0x4b7495||{'startRow':0x0,'startColumn':0x0,'endRow':_0x107971['getRowCount']()-0x1,'endColumn':_0x107971[_0x236484(0x202)]()-0x1};_0xc10ffe[_0x236484(0x396)]=_0x71e749[_0x236484(0x28c)][_0x236484(0x3c3)];const _0x4edb2f=(await _0x516f2a[_0x236484(0x1c1)]({'unitId':_0x45fa1e,'subUnitId':_0x4f9938,'pivotTableId':_0x466dbe,'params':{'type':_0x2dff37[_0x236484(0x3bc)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x45fa1e,'sheetName':_0x107971[_0x236484(0x134)](),'subUnitId':_0x4f9938,'range':_0xc10ffe},'pivotTableId':_0x466dbe,'pivotTableIndexConfig':_0x121b6d}}}))[_0x236484(0x144)][_0x236484(0x127)];if(!_0x4edb2f)return!0x1;const {isEmpty:_0x9795e9,fieldsConfig:_0x531c23,collectionConfig:_0x209ae6,changesets:_0x5d45dd}=_0x4edb2f,_0x3c37db=_0x87bd4c[_0x236484(0x342)]()[_0x236484(0x278)],_0x5c55e1=_0x71e749[_0x236484(0x187)]({'rowCount':_0x107971[_0x236484(0x1bd)]()-0x1,'columnCount':_0x107971[_0x236484(0x202)]()-0x1});_0x5c55e1['id']=_0x71e749[_0x236484(0x343)](),_0x5c55e1[_0x236484(0x218)]=_0x87bd4c[_0x236484(0x3eb)](''+_0x443306['t'](_0x236484(0x1cb)));const _0x34128c={'index':_0x3c37db,'sheet':_0x5c55e1,'unitId':_0x45fa1e},{redos:_0x24ba2e}=_0x2dd215(_0x12106d,{'pivotTableId':_0x466dbe,'unitId':_0x45fa1e,'subUnitId':_0x5c55e1['id']},_0x5d45dd),_0x52e7a4=[{'id':_0x2a18e2[_0x236484(0x182)]['id'],'params':_0x34128c},{'id':_0x191981['id'],'params':{'unitId':_0x45fa1e,'subUnitId':_0x5c55e1['id'],'pivotTableId':_0x466dbe,'pivotTableConfig':{'isEmpty':_0x9795e9,'fieldsConfig':_0x531c23,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x45fa1e,'subUnitId':_0x5c55e1['id']},'sourceRangeInfo':{'subUnitId':_0x4f9938,'unitId':_0x45fa1e,'range':_0xc10ffe,'sheetName':_0x107971[_0x236484(0x134)]()}},'collectionConfig':_0x209ae6}},..._0x24ba2e];return _0x71e749[_0x236484(0x296)](_0x52e7a4,_0x12106d),!0x0;}},_0x38b0a9={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0xf7)],'id':_0x952e9f(0x331),async 'handler'(_0x3e1f6b,_0x148a5c){const _0x4b8c1e=_0x952e9f;var _0xb1e43d,_0x1f3eff;const _0x2cb5e1=_0x3e1f6b[_0x4b8c1e(0x3dc)](_0x71e749['ICommandService']),_0x5a11a9=_0x3e1f6b[_0x4b8c1e(0x3dc)](_0x71e749[_0x4b8c1e(0x168)]),_0x523bb2=_0x3e1f6b[_0x4b8c1e(0x3dc)](_0x71e749[_0x4b8c1e(0x364)]),_0x44cd13=_0x3e1f6b['get'](_0x3e9a4b[_0x4b8c1e(0x211)]),_0x576bfa=_0x3e1f6b[_0x4b8c1e(0x3dc)](_0x71e749[_0x4b8c1e(0x1e7)]),_0x52c856=_0x3e1f6b[_0x4b8c1e(0x3dc)](_0x3e9a4b[_0x4b8c1e(0x299)]),_0x2018c1=_0x3e1f6b['get'](_0x71e749[_0x4b8c1e(0x225)]);if(!_0x148a5c)return!0x1;const {pivotTableConfig:_0x2209d1,positionType:_0x2e89b8}=_0x148a5c,{targetCellInfo:_0x2d3321,sourceRangeInfo:_0x892022}=_0x2209d1,{unitId:_0x42cd4e,subUnitId:_0x54fe64}=_0x2d3321,_0x7ebce9=_0x5a11a9[_0x4b8c1e(0x38c)](_0x42cd4e);if(!_0x7ebce9)return!0x1;let _0x10feca=0x0;_0x7ebce9[_0x4b8c1e(0x342)]()[_0x4b8c1e(0x1fb)](_0x4631a4=>{const _0x145a62=_0x4b8c1e;var _0x34e5e9,_0x184ed4;_0x10feca+=(_0x184ed4=(_0x34e5e9=_0x52c856['getSubUnitPivotConfigs'](_0x42cd4e,_0x4631a4[_0x145a62(0x20e)]()))==null?void 0x0:_0x34e5e9[_0x145a62(0x303)])!=null?_0x184ed4:0x0;});const _0xa531ef=(_0xb1e43d=_0x2018c1['getConfig'](_0x53e420[_0x4b8c1e(0xe5)]))!=null?_0xb1e43d:{},{ls:_0x242940,pbk:_0x4d451c}=_0xa531ef;if(!_0x4f39c8(_0x242940,_0x4d451c))return!0x1;const _0x17672f=_0xfe1c71(_0x1a1b40,_0x242940,_0x4d451c)[_0x4b8c1e(0x165)];if(_0x10feca>=_0x17672f)return!0x1;const _0xb336f=_0x148a5c[_0x4b8c1e(0x1a5)]||_0x1978cb[_0x4b8c1e(0x24d)](0x8),_0x14c1ed=(await _0x44cd13[_0x4b8c1e(0x1c1)]({'unitId':_0x42cd4e,'subUnitId':_0x54fe64,'pivotTableId':_0xb336f,'params':{'type':_0x2dff37[_0x4b8c1e(0x3a2)],'addPivotTable':{'sourceRangeInfo':_0x892022,'pivotTableId':_0xb336f}}}))[_0x4b8c1e(0x144)][_0x4b8c1e(0x261)];if(!_0x14c1ed)return!0x1;const {view:_0x484b2f,isEmpty:_0x176b97,fieldsConfig:_0x114610,collectionConfig:_0x2b9c15}=_0x14c1ed,_0x5e9996=[],_0x543fe7=[];if(_0x2e89b8===_0x17cb1b[_0x4b8c1e(0x365)]){const _0x35c4e5=_0x7ebce9[_0x4b8c1e(0x342)]()[_0x4b8c1e(0x278)],_0x142fb7=_0x71e749[_0x4b8c1e(0x187)]({});_0x142fb7['id']=_0x2209d1[_0x4b8c1e(0x354)][_0x4b8c1e(0x277)],_0x142fb7[_0x4b8c1e(0x218)]=(_0x1f3eff=_0x2209d1['targetCellInfo'][_0x4b8c1e(0x1db)])!=null?_0x1f3eff:_0x7ebce9[_0x4b8c1e(0x3eb)](''+_0x523bb2['t'](_0x4b8c1e(0x1cb)));const _0x22f9fa={'index':_0x35c4e5,'sheet':_0x142fb7,'unitId':_0x42cd4e},_0x37ffd5=_0x2a18e2[_0x4b8c1e(0x2c8)](_0x3e1f6b,_0x22f9fa);_0x5e9996['push']({'id':_0x2a18e2[_0x4b8c1e(0x36d)]['id'],'params':_0x37ffd5}),_0x543fe7[_0x4b8c1e(0x2b7)]({'id':_0x2a18e2[_0x4b8c1e(0x203)]['id'],'params':_0x22f9fa});}else{if(!_0x7ebce9['getSheetBySheetId'](_0x54fe64))return!0x1;const _0x52365c=_0xed8bbb(_0x3e1f6b,new _0x1978cb[(_0x4b8c1e(0x26b))](),_0x2d3321,!0x0);_0x543fe7['push'](..._0x52365c[_0x4b8c1e(0x1ae)]),_0x5e9996[_0x4b8c1e(0x2b7)](..._0x52365c[_0x4b8c1e(0x233)]);const _0x3e958b={'cellInfo':_0x2d3321,'view':_0x484b2f,'isEmpty':_0x176b97};if(!await _0x3e1f6b[_0x4b8c1e(0x3dc)](_0x3e9a4b[_0x4b8c1e(0x257)])['asyncInterceptor'][_0x4b8c1e(0x17e)](_0x178140)(!0x0,_0x3e958b))return!0x1;const _0x541726=_0xdc7318(_0x3e1f6b,_0x3e958b);_0x543fe7['push'](..._0x541726[_0x4b8c1e(0x1ae)]),_0x5e9996[_0x4b8c1e(0x2b7)](..._0x541726['undos']);}return _0x543fe7[_0x4b8c1e(0x2b7)]({'id':_0x191981['id'],'params':{'unitId':_0x2d3321[_0x4b8c1e(0x27e)],'subUnitId':_0x2d3321[_0x4b8c1e(0x277)],'pivotTableId':_0xb336f,'pivotTableConfig':{'targetCellInfo':_0x2d3321,'sourceRangeInfo':_0x892022,'fieldsConfig':_0x114610},'collectionConfig':_0x2b9c15}}),_0x5e9996[_0x4b8c1e(0x271)]({'id':_0x5f2bbe['id'],'params':{'unitId':_0x42cd4e,'subUnitId':_0x54fe64,'pivotTableId':_0xb336f}}),_0x71e749['sequenceExecute'](_0x543fe7,_0x2cb5e1)&&_0x576bfa[_0x4b8c1e(0x23a)]({'unitID':_0x42cd4e,'undoMutations':_0x5e9996,'redoMutations':_0x543fe7}),!0x0;}},_0x2f6a17={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0xf7)],'id':'sheet.command.move-pivot-field',async 'handler'(_0x4b39fc,_0x503b52){const _0x3be36a=_0x952e9f;if(!_0x503b52)return!0x1;const _0x1eafda=_0x4b39fc[_0x3be36a(0x3dc)](_0x71e749[_0x3be36a(0x1ec)]),_0x44202b=_0x4b39fc[_0x3be36a(0x3dc)](_0x3e9a4b[_0x3be36a(0x211)]),_0x19114f=_0x4b39fc[_0x3be36a(0x3dc)](_0x71e749[_0x3be36a(0x1e7)]),{pivotTableId:_0x5ddf9f,fieldId:_0x1dd58b,area:_0x450156,index:_0x5bad34,unitId:_0x3720e3,subUnitId:_0x2fcabe}=_0x503b52,_0x472467=(await _0x44202b[_0x3be36a(0x1c1)]({'unitId':_0x3720e3,'subUnitId':_0x2fcabe,'pivotTableId':_0x5ddf9f,'params':{'type':_0x2dff37[_0x3be36a(0x20a)],'movePivotField':{'fieldId':_0x1dd58b,'area':_0x450156,'index':_0x5bad34}}}))['result'][_0x3be36a(0x232)];if(!_0x472467)return!0x1;const {changesets:_0x16c78f,view:_0x47477b,isEmpty:_0x1bf846,pivotTableConfig:_0x3e69a0}=_0x472467,_0x2cedea=_0x3e69a0['targetCellInfo'],_0x59a9dc=new _0x1978cb[(_0x3be36a(0x26b))]();_0x59a9dc[_0x3be36a(0x15d)](_0x47477b);const _0x3da50d={'cellInfo':_0x2cedea,'view':_0x59a9dc,'isEmpty':_0x1bf846};if(!await _0x4b39fc[_0x3be36a(0x3dc)](_0x3e9a4b[_0x3be36a(0x257)])['asyncInterceptor'][_0x3be36a(0x17e)](_0x178140)(!0x0,_0x3da50d))return!0x1;const _0x3e8728=_0xed8bbb(_0x4b39fc,_0x59a9dc,_0x2cedea,_0x1bf846),_0x27240a=_0xdc7318(_0x4b39fc,_0x3da50d),{redos:_0x4bc0ee,undos:_0xf115e}=_0x2dd215(_0x1eafda,{'pivotTableId':_0x5ddf9f,'unitId':_0x3720e3,'subUnitId':_0x2fcabe},_0x16c78f);return _0x71e749[_0x3be36a(0x296)]([..._0x3e8728['redos'],..._0x27240a[_0x3be36a(0x1ae)],..._0x4bc0ee],_0x1eafda),_0x19114f['pushUndoRedo']({'unitID':_0x3720e3,'redoMutations':[..._0x3e8728['redos'],..._0x27240a['redos'],..._0x4bc0ee],'undoMutations':[..._0x3e8728[_0x3be36a(0x233)],..._0x27240a['undos'],..._0xf115e]}),!0x0;}},_0x27a793={'type':_0x71e749['CommandType'][_0x952e9f(0xf7)],'id':_0x952e9f(0x240),async 'handler'(_0x287c9e,_0x3f3191){const _0x4fe962=_0x952e9f;var _0x9ceecc;if(!_0x3f3191)return!0x1;const _0x36cdd6=_0x287c9e[_0x4fe962(0x3dc)](_0x71e749['IUniverInstanceService']),_0x11e0db=_0x2a18e2[_0x4fe962(0x1cf)](_0x36cdd6);if(!_0x11e0db)return!0x1;const {unitId:_0x4ef721,subUnitId:_0x4e0de3,workbook:_0x2692fe}=_0x11e0db,{row:_0x53c783,col:_0x4d0376}=_0x3f3191,_0x3fd1ba=_0x287c9e['get'](_0x3e9a4b[_0x4fe962(0x3de)]),_0x27ff2e=_0x3fd1ba[_0x4fe962(0x275)](_0x4ef721,_0x4e0de3,_0x53c783,_0x4d0376);if(!_0x27ff2e)return!0x1;const _0xf3c290=(_0x9ceecc=_0x3fd1ba[_0x4fe962(0x285)](_0x4ef721,_0x4e0de3,_0x27ff2e))==null?void 0x0:_0x9ceecc[_0x4fe962(0x254)];if(!_0xf3c290)return!0x1;const _0x3ee529=_0x287c9e[_0x4fe962(0x3dc)](_0x3e9a4b[_0x4fe962(0x299)])['getPivotTableConfig'](_0x4ef721,_0x4e0de3,_0x27ff2e);if(!_0x3ee529)return!0x1;const {rowInfo:_0x38b787,colInfo:_0x506497}=_0xf3c290,_0x1ecbd9=_0x38b787[_0x53c783][_0x4fe962(0x324)],_0x26a78=_0x506497[_0x4d0376][_0x4fe962(0x324)],_0x17abe8=_0x38b787[_0x53c783]['level'],_0x9f4b6e=_0x506497[_0x4d0376][_0x4fe962(0x146)],_0x49a6f2=_0x1ecbd9[_0x4fe962(0x3b2)](_0x26a78),_0x206d67=_0x3ee529[_0x4fe962(0x13c)][_0x4fe962(0x318)][_0x4fe962(0x171)](0x0,_0x17abe8),_0x484490=_0x3ee529['fieldsConfig'][_0x4fe962(0x35c)][_0x4fe962(0x171)](0x0,_0x9f4b6e),_0x32af74=_0x206d67[_0x4fe962(0x3b2)](_0x484490),_0xf1a9e4=_0x49a6f2[_0x4fe962(0x2c3)]((_0x30f863,_0x4ee797)=>[_0x30f863,_0x32af74[_0x4ee797]]),_0x51d178=(await _0x287c9e['get'](_0x3e9a4b[_0x4fe962(0x211)])[_0x4fe962(0x1c1)]({'unitId':_0x4ef721,'subUnitId':_0x4e0de3,'pivotTableId':_0x27ff2e,'params':{'type':_0x2dff37['DrillDown'],'drillDown':{'tuple':_0xf1a9e4}}}))['result'][_0x4fe962(0x16f)];if(!_0x51d178)return!0x1;const {indexes:_0x529d89,range:_0x1b78d2,sourceUnitId:_0x686cb8,sourceSubUnitId:_0x21251e,formatMap:_0x49f071}=_0x51d178,{startRow:_0x1ed92c,endRow:_0x1ff6af,startColumn:_0x437361,endColumn:_0x1284e7}=_0x1b78d2,_0x590c22=new _0x71e749[(_0x4fe962(0x3f8))](),_0x4fadfc=_0x1ff6af-_0x1ed92c,_0x166140=_0x1284e7-_0x437361,_0x3616a0={},_0x513fcd=_0x2a18e2[_0x4fe962(0x1cf)](_0x36cdd6,{'unitId':_0x686cb8,'subUnitId':_0x21251e});if(!_0x513fcd)return!0x1;const _0x33286d=_0x4f9185[_0x4fe962(0x1dc)],_0x186a15=_0x4f9185[_0x4fe962(0x2bd)],_0x1e7a2d=_0x4f9185[_0x4fe962(0x2bd)],_0x18da0a=_0x2692fe[_0x4fe962(0x3a1)]()['setValue'](_0x33286d),_0x2ba761=_0x2692fe[_0x4fe962(0x3a1)]()[_0x4fe962(0x183)](_0x186a15),_0x2573ea=_0x2692fe['getStyles']()['setValue'](_0x1e7a2d),{worksheet:_0x248984}=_0x513fcd;let _0x34ee7c=0x0;const _0x2d0acd=0x1;_0x529d89[_0x4fe962(0x1fb)](_0xb22674=>{const _0x256389=_0x4fe962;for(let _0x479bb3=0x0;_0x479bb3<=_0x1284e7-_0x437361;_0x479bb3++)_0x590c22['setValue'](_0x34ee7c,_0x479bb3,_0x248984[_0x256389(0x24e)](_0xb22674+_0x1b78d2['startRow']+_0x2d0acd,_0x479bb3));_0x34ee7c++;});for(let _0xbc1e0c=_0x437361;_0xbc1e0c<=_0x1284e7;_0xbc1e0c++){const _0x7c6b39=_0x248984[_0x4fe962(0x24e)](_0x1ed92c,_0xbc1e0c);_0x3616a0[_0x1ed92c]||(_0x3616a0[_0x1ed92c]={}),_0x3616a0[_0x1ed92c][_0xbc1e0c]={..._0x7c6b39,'s':_0x18da0a};}let _0x3474c3=0x1;const _0x4856ca={},_0x117a21={};_0x590c22[_0x4fe962(0x14f)]((_0x464418,_0x16a93e)=>{const _0x5ee85a=_0x4fe962;_0x16a93e[_0x5ee85a(0x1fb)](_0x4d8bf4=>{const _0x4b730b=_0x5ee85a,_0x49e7d5=_0x590c22[_0x4b730b(0x3ea)](_0x464418,_0x4d8bf4);if(_0x3616a0[_0x3474c3]||(_0x3616a0[_0x3474c3]={}),_0x3616a0[_0x3474c3][_0x4d8bf4]={..._0x49e7d5,'s':_0x3474c3%0x2===0x0?_0x2573ea:_0x2ba761},_0x49f071[_0x4d8bf4]&&_0x464418>=0x0){const _0x3fa785=_0x3474c3%0x2===0x0;let _0x124f36=_0x3fa785?_0x117a21[_0x4d8bf4]:_0x4856ca[_0x4d8bf4];_0x124f36||(_0x124f36=_0x2692fe[_0x4b730b(0x3a1)]()[_0x4b730b(0x183)]({..._0x3fa785?_0x1e7a2d:_0x186a15,'n':{'pattern':_0x49f071[_0x4d8bf4]}}),_0x3fa785?_0x117a21[_0x4d8bf4]=_0x124f36:_0x4856ca[_0x4d8bf4]=_0x124f36),_0x3616a0[_0x3474c3][_0x4d8bf4]['s']=_0x124f36;}}),_0x3474c3++;});const _0x82cdfd=new _0x71e749[(_0x4fe962(0x3f8))](_0x3616a0),_0x37c32e={};_0x82cdfd[_0x4fe962(0x2c5)]((_0x149bf9,_0x2918d1,_0x44e869)=>{_0x37c32e[_0x149bf9]||(_0x37c32e[_0x149bf9]={}),_0x37c32e[_0x149bf9][_0x2918d1]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x4f81ac=[],_0x3c162c=[],_0x1bc0a7=_0x2692fe[_0x4fe962(0x342)]()[_0x4fe962(0x278)],_0x50111e=_0x71e749[_0x4fe962(0x187)]({'rowCount':Math[_0x4fe962(0x368)](_0x71e749[_0x4fe962(0x30f)],_0x4fadfc+0xa),'columnCount':Math[_0x4fe962(0x368)](_0x71e749[_0x4fe962(0x201)],_0x166140+0x5)}),_0x4bcfab=_0x287c9e[_0x4fe962(0x3dc)](_0x71e749[_0x4fe962(0x364)]);_0x50111e['id']=_0x71e749[_0x4fe962(0x343)](),_0x50111e[_0x4fe962(0x218)]=_0x2692fe[_0x4fe962(0x3eb)](''+_0x4bcfab['t'](_0x4fe962(0x1cb)));const _0x2319cd={'index':_0x1bc0a7,'sheet':_0x50111e,'unitId':_0x4ef721},_0x4e1737=_0x2a18e2['InsertSheetUndoMutationFactory'](_0x287c9e,_0x2319cd);_0x3c162c['push']({'id':_0x2a18e2[_0x4fe962(0x203)]['id'],'params':_0x2319cd}),_0x4f81ac[_0x4fe962(0x2b7)]({'id':_0x2a18e2[_0x4fe962(0x36d)]['id'],'params':_0x4e1737}),_0x3c162c[_0x4fe962(0x2b7)]({'id':_0x2a18e2['SetRangeValuesMutation']['id'],'params':{'unitId':_0x4ef721,'subUnitId':_0x50111e['id'],'cellValue':_0x3616a0}}),_0x4f81ac['unshift']({'id':_0x2a18e2[_0x4fe962(0x13b)]['id'],'params':{'unitId':_0x4ef721,'subUnitId':_0x50111e['id'],'cellValue':_0x37c32e}});const _0x9dcf07={'startRow':0x0,'startColumn':0x0,'endRow':_0x3474c3-0x1,'endColumn':_0x1284e7};_0x3c162c[_0x4fe962(0x2b7)]({'id':_0x5b4ef3[_0x4fe962(0x2a6)]['id'],'params':{'unitId':_0x4ef721,'subUnitId':_0x50111e['id'],'range':_0x9dcf07}}),_0x4f81ac[_0x4fe962(0x271)]({'id':_0x5b4ef3['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x4ef721,'subUnitId':_0x50111e['id']}});const _0x6dc018=_0x287c9e[_0x4fe962(0x3dc)](_0x71e749[_0x4fe962(0x1ec)]);return _0x71e749['sequenceExecute'](_0x3c162c,_0x6dc018)&&_0x287c9e[_0x4fe962(0x3dc)](_0x71e749[_0x4fe962(0x1e7)])[_0x4fe962(0x23a)]({'unitID':_0x4ef721,'undoMutations':_0x4f81ac,'redoMutations':_0x3c162c}),!0x0;}},_0x2565f1={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0xf7)],'id':_0x952e9f(0x2af),async 'handler'(_0x15a7a5,_0x2422cf){const _0x34390c=_0x952e9f;if(!_0x2422cf)return!0x1;const _0x51a9f2=_0x15a7a5[_0x34390c(0x3dc)](_0x71e749[_0x34390c(0x1ec)]),_0x2f3f8c=_0x15a7a5[_0x34390c(0x3dc)](_0x3e9a4b[_0x34390c(0x211)]),_0x136fe4=_0x15a7a5[_0x34390c(0x3dc)](_0x71e749[_0x34390c(0x1e7)]),{pivotTableId:_0x4ee466,fieldIds:_0x2df255,unitId:_0x4adc54,subUnitId:_0x4b2b10}=_0x2422cf,_0x33595a=(await _0x2f3f8c['getPivotDisplayConfig']({'unitId':_0x4adc54,'subUnitId':_0x4b2b10,'pivotTableId':_0x4ee466,'params':{'type':_0x2dff37['RemovePivotField'],'removePivotField':{'fieldIds':_0x2df255}}}))[_0x34390c(0x144)][_0x34390c(0x395)];if(!_0x33595a)return!0x1;const {view:_0x29cef1,changesets:_0xfd762b,isEmpty:_0xb576db,pivotTableConfig:_0x28c3fd}=_0x33595a,_0xd9df8e=_0x28c3fd[_0x34390c(0x354)],_0x30ff2b=new _0x1978cb[(_0x34390c(0x26b))]();_0x30ff2b[_0x34390c(0x15d)](_0x29cef1);const _0x16c62b={'cellInfo':_0xd9df8e,'view':_0x30ff2b,'isEmpty':_0xb576db};if(!await _0x15a7a5[_0x34390c(0x3dc)](_0x3e9a4b[_0x34390c(0x257)])['asyncInterceptor'][_0x34390c(0x17e)](_0x178140)(!0x0,_0x16c62b))return!0x1;const _0xe9239d=_0xed8bbb(_0x15a7a5,_0x30ff2b,_0xd9df8e,_0xb576db),_0x50bb53=_0xdc7318(_0x15a7a5,_0x16c62b),{redos:_0x9cafc2,undos:_0x5794fc}=_0x2dd215(_0x51a9f2,{'pivotTableId':_0x4ee466,'unitId':_0x4adc54,'subUnitId':_0x4b2b10},_0xfd762b);return _0x71e749[_0x34390c(0x296)]([..._0xe9239d[_0x34390c(0x1ae)],..._0x50bb53[_0x34390c(0x1ae)],..._0x9cafc2],_0x51a9f2),_0x136fe4['pushUndoRedo']({'unitID':_0x4adc54,'redoMutations':[..._0xe9239d['redos'],..._0x50bb53[_0x34390c(0x1ae)],..._0x9cafc2],'undoMutations':[..._0xe9239d[_0x34390c(0x233)],..._0x50bb53[_0x34390c(0x233)],..._0x5794fc]}),!0x0;}},_0x1751a7={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0xf7)],'id':'sheet.command.set-pivot-collapse',async 'handler'(_0x342807,_0x205142){const _0x5bd9fc=_0x952e9f;var _0x10ee38;const _0x20b83b=_0x342807[_0x5bd9fc(0x3dc)](_0x71e749[_0x5bd9fc(0x1ec)]),_0x108671=_0x342807['get'](_0x3e9a4b[_0x5bd9fc(0x211)]),_0x5b8ba9=_0x342807['get'](_0x3e9a4b['SheetsPivotTableAdaptorModel']),_0x49b392=_0x342807[_0x5bd9fc(0x3dc)](_0x71e749[_0x5bd9fc(0x168)]),_0x74582=_0x342807[_0x5bd9fc(0x3dc)](_0x71e749[_0x5bd9fc(0x1e7)]);if(!_0x205142)return!0x1;const {unitId:_0x397d64,subUnitId:_0x44aba6,row:_0x33cecd,col:_0x36e815,collapse:_0x2271dd}=_0x205142,_0x2cc428=_0x49b392[_0x5bd9fc(0x38c)](_0x397d64);if(!_0x2cc428||!_0x2cc428[_0x5bd9fc(0x216)](_0x44aba6))return!0x1;const _0x21b436=_0x5b8ba9['getPivotTableIdByCell'](_0x397d64,_0x44aba6,_0x33cecd,_0x36e815);if(!_0x21b436)return!0x1;const _0x76f2bc=_0x5b8ba9[_0x5bd9fc(0x285)](_0x397d64,_0x44aba6,_0x21b436);if(!_0x76f2bc)return!0x1;const _0x4777cf=_0x71e749['cellToRange'](_0x33cecd,_0x36e815),{rangesInfo:_0xb448ac,areaInfo:_0x3c0d83,headerMap:_0x514dbe}=_0x76f2bc;if(!_0xb448ac||!_0x3c0d83||!_0x514dbe)return!0x1;const _0x988b50=Object[_0x5bd9fc(0x111)](_0xb448ac)[_0x5bd9fc(0x2d4)](_0x485c36=>_0xb448ac[_0x485c36][_0x5bd9fc(0x131)](_0x5d2022=>_0x71e749['Rectangle'][_0x5bd9fc(0x1b9)](_0x5d2022,_0x4777cf)));let _0x36fae5;_0x988b50===_0x5bd9fc(0x1b0)?_0x36fae5=_0x514dbe[_0x5bd9fc(0x3c1)][_0x36e815]:_0x988b50===_0x5bd9fc(0x2eb)&&(_0x36fae5=_0x514dbe[_0x5bd9fc(0x12e)][_0x33cecd]);const _0x1671a8=_0x36fae5==null?void 0x0:_0x36fae5[_0x5bd9fc(0x295)],_0x58cfde=(_0x10ee38=_0x5b8ba9['getPivotTableCellData'](_0x397d64,_0x44aba6,_0x33cecd,_0x36e815))==null?void 0x0:_0x10ee38['v'];if(_0x58cfde==null||!_0x21b436||!_0x1671a8)return!0x1;const _0x14c76d=await _0x108671[_0x5bd9fc(0x1c1)]({'unitId':_0x397d64,'subUnitId':_0x44aba6,'pivotTableId':_0x21b436,'params':{'type':_0x2dff37[_0x5bd9fc(0x3ee)],'setPivotCollapse':{'tableFieldId':_0x1671a8,'collapse':_0x2271dd,'item':_0x58cfde}}}),_0x43fdd2=_0x14c76d==null?void 0x0:_0x14c76d['result'][_0x5bd9fc(0x16b)];if(!_0x43fdd2)return!0x1;const {view:_0x1e5c96,pivotTableConfig:_0x31f5ec,isEmpty:_0x3ef98e,changesets:_0x13896b}=_0x43fdd2,_0x3064af=new _0x1978cb[(_0x5bd9fc(0x26b))]();_0x3064af[_0x5bd9fc(0x15d)](_0x1e5c96);const _0xea9d64=_0x31f5ec[_0x5bd9fc(0x354)],_0x1d86b1={'cellInfo':_0xea9d64,'view':_0x3064af,'isEmpty':_0x3ef98e};if(!await _0x342807[_0x5bd9fc(0x3dc)](_0x3e9a4b[_0x5bd9fc(0x257)])[_0x5bd9fc(0xf6)][_0x5bd9fc(0x17e)](_0x178140)(!0x0,_0x1d86b1))return!0x1;const _0xe062c0=_0xed8bbb(_0x342807,_0x3064af,_0xea9d64,_0x3ef98e),_0x1a3618=_0xdc7318(_0x342807,_0x1d86b1),{redos:_0x14b9de,undos:_0x30e363}=_0x2dd215(_0x20b83b,{'pivotTableId':_0x21b436,'unitId':_0x397d64,'subUnitId':_0x44aba6},_0x13896b);return _0x71e749[_0x5bd9fc(0x296)]([..._0xe062c0[_0x5bd9fc(0x1ae)],..._0x1a3618['redos'],..._0x14b9de],_0x20b83b),_0x74582[_0x5bd9fc(0x23a)]({'unitID':_0x397d64,'redoMutations':[..._0xe062c0[_0x5bd9fc(0x1ae)],..._0x1a3618[_0x5bd9fc(0x1ae)],..._0x14b9de],'undoMutations':[..._0xe062c0['undos'],..._0x1a3618[_0x5bd9fc(0x233)],..._0x30e363]}),!0x0;}},_0x4cc07e={'type':_0x71e749[_0x952e9f(0x1ff)]['COMMAND'],'id':_0x952e9f(0x12c),async 'handler'(_0x496c04,_0x33578e){const _0x2c8eca=_0x952e9f;if(!_0x33578e)return!0x1;const _0x29ed19=_0x496c04[_0x2c8eca(0x3dc)](_0x71e749[_0x2c8eca(0x1ec)]),{pivotTableId:_0x3b84f7,tableFieldId:_0x4e2610,items:_0x466aa1,unitId:_0x35be36,subUnitId:_0x357bab,isAll:_0x3fa0c6}=_0x33578e,_0x4f8dd6=_0x496c04[_0x2c8eca(0x3dc)](_0x3e9a4b[_0x2c8eca(0x211)]),_0x40e805=_0x496c04[_0x2c8eca(0x3dc)](_0x71e749[_0x2c8eca(0x1e7)]),_0xf4c33d=(await _0x4f8dd6['getPivotDisplayConfig']({'unitId':_0x35be36,'subUnitId':_0x357bab,'pivotTableId':_0x3b84f7,'params':{'type':_0x2dff37[_0x2c8eca(0xf0)],'setPivotFilter':{'tableFieldId':_0x4e2610,'items':_0x466aa1,'isAll':_0x3fa0c6}}}))[_0x2c8eca(0x144)]['setPivotFilter'];if(!_0xf4c33d)return!0x1;const {changesets:_0x46f63d,pivotTableConfig:_0x7a604,isEmpty:_0x10de68,view:_0xb36ee5}=_0xf4c33d,_0x34c272=_0x7a604[_0x2c8eca(0x354)],_0x28b61c=new _0x1978cb['PivotView']();_0x28b61c['formJSON'](_0xb36ee5);const _0x192bb4={'cellInfo':_0x34c272,'view':_0x28b61c,'isEmpty':_0x10de68};if(!await _0x496c04[_0x2c8eca(0x3dc)](_0x3e9a4b['SheetsPivotTableService'])[_0x2c8eca(0xf6)]['fetchThroughAsyncInterceptors'](_0x178140)(!0x0,_0x192bb4))return!0x1;const _0x247f1d=_0xed8bbb(_0x496c04,_0x28b61c,_0x34c272,_0x10de68),_0x39e48f=_0xdc7318(_0x496c04,_0x192bb4),{undos:_0x3297b7,redos:_0x26edd9}=_0x2dd215(_0x29ed19,{'pivotTableId':_0x3b84f7,'unitId':_0x35be36,'subUnitId':_0x357bab},_0x46f63d);return _0x71e749[_0x2c8eca(0x296)]([..._0x247f1d[_0x2c8eca(0x1ae)],..._0x39e48f[_0x2c8eca(0x1ae)],..._0x26edd9],_0x29ed19),_0x40e805[_0x2c8eca(0x23a)]({'unitID':_0x35be36,'redoMutations':[..._0x247f1d['redos'],..._0x39e48f[_0x2c8eca(0x1ae)],..._0x26edd9],'undoMutations':[..._0x247f1d[_0x2c8eca(0x233)],..._0x39e48f[_0x2c8eca(0x233)],..._0x3297b7]}),!0x0;}},_0x223ceb={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0xf7)],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x2413d0,_0x5e4ea9){const _0x44324c=_0x952e9f;if(!_0x5e4ea9)return!0x1;const _0x13b45b=_0x2413d0[_0x44324c(0x3dc)](_0x71e749['ICommandService']),_0x3f8d4c=_0x2413d0[_0x44324c(0x3dc)](_0x71e749[_0x44324c(0x1e7)]),_0x3f9106=_0x2413d0[_0x44324c(0x3dc)](_0x3e9a4b[_0x44324c(0x211)]),{info:_0xd6f0fb,tableFieldId:_0x34a824,pivotTableId:_0x4b89b4,unitId:_0x478d2e,subUnitId:_0x3100b}=_0x5e4ea9,_0x166b3a=(await _0x3f9106['getPivotDisplayConfig']({'unitId':_0x478d2e,'subUnitId':_0x3100b,'pivotTableId':_0x4b89b4,'params':{'type':_0x2dff37[_0x44324c(0xf4)],'setPivotSort':{'tableFieldId':_0x34a824,'info':_0xd6f0fb}}}))[_0x44324c(0x144)][_0x44324c(0x125)];if(!_0x166b3a)return!0x1;const {changesets:_0x458538}=_0x166b3a,{redos:_0x5b8c71,undos:_0x499fc2}=_0x2dd215(_0x13b45b,{'pivotTableId':_0x4b89b4,'unitId':_0x478d2e,'subUnitId':_0x3100b},_0x458538);return _0x71e749[_0x44324c(0x296)](_0x5b8c71,_0x13b45b),_0x3f8d4c[_0x44324c(0x23a)]({'unitID':_0x478d2e,'redoMutations':_0x5b8c71,'undoMutations':_0x499fc2}),!0x0;}},_0x3b940b={'type':_0x71e749[_0x952e9f(0x1ff)]['COMMAND'],'id':_0x952e9f(0x307),async 'handler'(_0x23d203,_0x53fd2d){const _0x40d06e=_0x952e9f;if(!_0x53fd2d)return!0x1;const _0x4f472f=_0x23d203[_0x40d06e(0x3dc)](_0x71e749[_0x40d06e(0x1ec)]),_0x34ae19=_0x23d203['get'](_0x71e749['IUndoRedoService']),_0x859916=_0x23d203['get'](_0x3e9a4b['SheetsPivotRPCService']),{displayName:_0xcbbc54,subtotalType:_0x43f7c2,format:_0x33b49a,tableFieldId:_0x8f2747,pivotTableId:_0x57e5a7,unitId:_0x2b48b9,subUnitId:_0x131db2}=_0x53fd2d,_0x250846=(await _0x859916[_0x40d06e(0x1c1)]({'unitId':_0x2b48b9,'subUnitId':_0x131db2,'pivotTableId':_0x57e5a7,'params':{'type':_0x2dff37[_0x40d06e(0x191)],'setPivotSetting':{'tableFieldId':_0x8f2747,'displayName':_0xcbbc54,'subtotalType':_0x43f7c2,'format':_0x33b49a}}}))[_0x40d06e(0x144)][_0x40d06e(0x29d)];if(!_0x250846)return!0x1;const {changesets:_0x34abfc,view:_0x230d06,pivotTableConfig:_0x5b07d6,isEmpty:_0xfbf6bd}=_0x250846,_0x4dae7a=_0x5b07d6[_0x40d06e(0x354)],_0x5cb922=new _0x1978cb['PivotView']();_0x5cb922['formJSON'](_0x230d06);const _0x1ea989={'cellInfo':_0x4dae7a,'view':_0x5cb922,'isEmpty':_0xfbf6bd};if(!await _0x23d203[_0x40d06e(0x3dc)](_0x3e9a4b['SheetsPivotTableService'])[_0x40d06e(0xf6)][_0x40d06e(0x17e)](_0x178140)(!0x0,_0x1ea989))return!0x1;const _0x5957cf=_0xed8bbb(_0x23d203,_0x5cb922,_0x4dae7a,_0xfbf6bd),_0xe6a014=_0xdc7318(_0x23d203,_0x1ea989),{undos:_0x206c2a,redos:_0x2188f4}=_0x2dd215(_0x4f472f,{'pivotTableId':_0x57e5a7,'unitId':_0x2b48b9,'subUnitId':_0x131db2},_0x34abfc);return _0x71e749[_0x40d06e(0x296)]([..._0x5957cf[_0x40d06e(0x1ae)],..._0xe6a014[_0x40d06e(0x1ae)],..._0x2188f4],_0x4f472f),_0x34ae19[_0x40d06e(0x23a)]({'unitID':_0x2b48b9,'redoMutations':[..._0x5957cf[_0x40d06e(0x1ae)],..._0xe6a014[_0x40d06e(0x1ae)],..._0x2188f4],'undoMutations':[..._0x5957cf[_0x40d06e(0x233)],..._0xe6a014[_0x40d06e(0x233)],..._0x206c2a]}),!0x0;}},_0x8cc147={'type':_0x71e749['CommandType'][_0x952e9f(0xf7)],'id':_0x952e9f(0x1cc),async 'handler'(_0x42c5e6,_0x55561e){const _0x3ab271=_0x952e9f,_0x5cc8a7=_0x42c5e6[_0x3ab271(0x3dc)](_0x71e749[_0x3ab271(0x1ec)]),_0xa5489f=_0x42c5e6[_0x3ab271(0x3dc)](_0x3e9a4b[_0x3ab271(0x211)]),_0x6f8267=_0x42c5e6[_0x3ab271(0x3dc)](_0x71e749[_0x3ab271(0x1e7)]);if(!_0x55561e)return!0x1;const {token:_0x4b07aa,dataRangeInfo:_0x121710,unitId:_0x1b8054,subUnitId:_0x2a48a8}=_0x55561e,_0x51e806=[],_0x1771c5=[],_0x15f6bd=(await _0xa5489f[_0x3ab271(0x1c1)]({'unitId':_0x1b8054,'subUnitId':_0x2a48a8,'pivotTableId':_0x4b07aa,'params':{'type':_0x2dff37[_0x3ab271(0x13a)],'updatePivotSource':{'dataRangeInfo':_0x121710,'unitId':_0x1b8054,'subUnitId':_0x2a48a8}}}))[_0x3ab271(0x144)][_0x3ab271(0x3e2)];if(!_0x15f6bd)return!0x1;const {changesets:_0x1c0828,deleteIds:_0x4be9de,collectionConfig:_0x189daf,oldCollectionConfig:_0x334f65,view:_0x4707af,isEmpty:_0x41c286,pivotTableConfig:_0x1a9eb0}=_0x15f6bd;_0x1771c5[_0x3ab271(0x2b7)]({'id':_0x3f6e25['id'],'params':{'pivotTableId':_0x4b07aa,'deleteIds':_0x4be9de,'collectionJSON':_0x189daf,'dataRangeInfo':_0x121710,'unitId':_0x1b8054,'subUnitId':_0x2a48a8}}),_0x51e806[_0x3ab271(0x271)]({'id':_0x3f6e25['id'],'params':{'pivotTableId':_0x4b07aa,'deleteIds':[],'collectionJSON':_0x334f65,'dataRangeInfo':_0x1a9eb0[_0x3ab271(0x3a8)],'unitId':_0x1b8054,'subUnitId':_0x2a48a8}});const _0x147e75=_0x1a9eb0['targetCellInfo'],_0x226200=new _0x1978cb[(_0x3ab271(0x26b))]();_0x226200[_0x3ab271(0x15d)](_0x4707af);const _0x2cf712={'cellInfo':_0x147e75,'view':_0x226200,'isEmpty':_0x41c286};if(!await _0x42c5e6[_0x3ab271(0x3dc)](_0x3e9a4b[_0x3ab271(0x257)])[_0x3ab271(0xf6)]['fetchThroughAsyncInterceptors'](_0x178140)(!0x0,_0x2cf712))return!0x1;const _0x1f755a=_0xed8bbb(_0x42c5e6,_0x226200,_0x147e75,_0x41c286),_0x6354fa=_0xdc7318(_0x42c5e6,_0x2cf712),{undos:_0x5753c6,redos:_0x2cc9c0}=_0x2dd215(_0x5cc8a7,{'pivotTableId':_0x4b07aa,'unitId':_0x1b8054,'subUnitId':_0x2a48a8},_0x1c0828);return _0x71e749[_0x3ab271(0x296)]([..._0x1f755a[_0x3ab271(0x1ae)],..._0x6354fa[_0x3ab271(0x1ae)],..._0x1771c5,..._0x5753c6],_0x5cc8a7),_0x6f8267[_0x3ab271(0x23a)]({'unitID':_0x1b8054,'redoMutations':[..._0x1f755a['redos'],..._0x6354fa['redos'],..._0x1771c5,..._0x5753c6],'undoMutations':[..._0x1f755a['undos'],..._0x6354fa[_0x3ab271(0x233)],..._0x51e806,..._0x2cc9c0]}),!0x0;}},_0x59c1c6={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0xf7)],'id':_0x952e9f(0x367),async 'handler'(_0x3f692f,_0x511169){const _0x14f063=_0x952e9f;if(!_0x511169)return!0x1;const _0x698190=_0x3f692f[_0x14f063(0x3dc)](_0x71e749[_0x14f063(0x1ec)]),_0x393177=_0x3f692f['get'](_0x3e9a4b['SheetsPivotRPCService']),_0x75834f=_0x3f692f[_0x14f063(0x3dc)](_0x71e749[_0x14f063(0x168)]),_0x10f72f=_0x3f692f['get'](_0x71e749[_0x14f063(0x1e7)]),{pivotTableId:_0x3d1357,position:_0x3f2edb,index:_0xb402d0}=_0x511169,_0x1ba8f4=_0x2a18e2['getSheetCommandTarget'](_0x75834f);if(!_0x1ba8f4)return!0x1;const {unitId:_0x17779a,subUnitId:_0xaaf9f}=_0x1ba8f4,_0x4f5b4c=(await _0x393177[_0x14f063(0x1c1)]({'unitId':_0x17779a,'subUnitId':_0xaaf9f,'pivotTableId':_0x3d1357,'params':{'type':_0x2dff37[_0x14f063(0x26f)],'updateValuePosition':{'position':_0x3f2edb,'index':_0xb402d0}}}))['result'][_0x14f063(0x12b)];if(!_0x4f5b4c)return!0x1;const {changesets:_0x1a938f,view:_0x75d14d,isEmpty:_0x16a5b8,pivotTableConfig:_0x1a915b}=_0x4f5b4c,_0x4aba56=_0x1a915b[_0x14f063(0x354)],_0x3f675e=new _0x1978cb[(_0x14f063(0x26b))]();_0x3f675e['formJSON'](_0x75d14d);const _0x3bed7d=_0x3f692f[_0x14f063(0x3dc)](_0x3e9a4b['SheetsPivotTableService']),_0x3d82cd={'cellInfo':_0x4aba56,'view':_0x3f675e,'isEmpty':_0x16a5b8};if(!await _0x3bed7d[_0x14f063(0xf6)][_0x14f063(0x17e)](_0x178140)(!0x0,_0x3d82cd))return!0x1;const _0x17ba85=_0xed8bbb(_0x3f692f,_0x3f675e,_0x4aba56,_0x16a5b8),_0x3783af=_0xdc7318(_0x3f692f,_0x3d82cd),{undos:_0x332b3e,redos:_0x4d5c0f}=_0x2dd215(_0x698190,{'pivotTableId':_0x3d1357,'unitId':_0x17779a,'subUnitId':_0xaaf9f},_0x1a938f);return _0x71e749[_0x14f063(0x296)]([..._0x17ba85[_0x14f063(0x1ae)],..._0x3783af['redos'],..._0x4d5c0f],_0x698190),_0x10f72f[_0x14f063(0x23a)]({'unitID':_0x17779a,'redoMutations':[..._0x17ba85['redos'],..._0x3783af[_0x14f063(0x1ae)],..._0x4d5c0f],'undoMutations':[..._0x17ba85[_0x14f063(0x233)],..._0x3783af['undos'],..._0x332b3e]}),!0x0;}},_0x53619c={'type':_0x71e749[_0x952e9f(0x1ff)]['COMMAND'],'id':_0x952e9f(0x24b),'handler':(_0x42ed6f,_0x3f7e00)=>{const _0x22a47d=_0x952e9f,_0x554175=_0x42ed6f[_0x22a47d(0x3dc)](_0x71e749[_0x22a47d(0x1ec)]),_0x1e8306=_0x42ed6f[_0x22a47d(0x3dc)](_0x71e749['IUndoRedoService']),_0x191eb6=_0x42ed6f['get'](_0x3e9a4b[_0x22a47d(0x299)]),_0x9247f0=_0x42ed6f[_0x22a47d(0x3dc)](_0x71e749[_0x22a47d(0x168)]);if(!_0x3f7e00)return!0x1;const _0x2a2be0=_0x2a18e2[_0x22a47d(0x1cf)](_0x9247f0);if(!_0x2a2be0)return!0x1;const {unitId:_0x227ee0,subUnitId:_0x1b6c36,workbook:_0x3ed885}=_0x2a2be0,_0x18e8b3=_0x191eb6[_0x22a47d(0x405)](_0x3f7e00[_0x22a47d(0x319)][_0x22a47d(0x27e)],_0x3f7e00['originTargetInfo']['subUnitId'],_0x3f7e00[_0x22a47d(0x1a5)]);if(!_0x18e8b3)return!0x1;const _0x3cc873=_0x3ed885['getSheetBySheetId'](_0x3f7e00[_0x22a47d(0x354)][_0x22a47d(0x277)]);if(!_0x3cc873)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');const _0x30047f=_0x3cc873[_0x22a47d(0x1bd)](),_0x42df04=_0x3cc873[_0x22a47d(0x202)]();if(_0x3f7e00['targetCellInfo'][_0x22a47d(0x2f4)]>_0x30047f||_0x3f7e00[_0x22a47d(0x354)]['col']>_0x42df04)throw new Error(_0x22a47d(0x34a));const _0x176a4d=[{'id':_0x140124['id'],'params':{'unitId':_0x227ee0,'subUnitId':_0x3f7e00[_0x22a47d(0x354)]['subUnitId'],'pivotTableId':_0x3f7e00[_0x22a47d(0x1a5)],'targetCellPosition':{'row':_0x3f7e00['targetCellInfo'][_0x22a47d(0x2f4)],'col':_0x3f7e00[_0x22a47d(0x354)][_0x22a47d(0x320)]}}}],_0x356352=[{'id':_0x140124['id'],'params':{'unitId':_0x227ee0,'subUnitId':_0x1b6c36,'pivotTableId':_0x3f7e00['pivotTableId'],'targetCellPosition':{'row':_0x18e8b3['targetCellInfo'][_0x22a47d(0x2f4)],'col':_0x18e8b3[_0x22a47d(0x354)][_0x22a47d(0x320)]}}}];return _0x71e749['sequenceExecute'](_0x176a4d,_0x554175)&&_0x1e8306[_0x22a47d(0x23a)]({'unitID':_0x227ee0,'undoMutations':_0x356352,'redoMutations':_0x176a4d}),!0x0;}},_0x19db14={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0xf7)],'id':_0x952e9f(0x167),async 'handler'(_0x4667f2,_0x401c28){const _0x3b69d2=_0x952e9f;if(!_0x401c28)return!0x1;const _0x1b07d6=_0x4667f2[_0x3b69d2(0x3dc)](_0x71e749['ICommandService']),{pivotTableId:_0x539371,fieldId:_0x20acd2,valueFilterInfo:_0x20e4d1,unitId:_0x18c84d,subUnitId:_0x2e98b6}=_0x401c28,_0x2fde7b=_0x4667f2['get'](_0x3e9a4b[_0x3b69d2(0x211)]),_0x27dc42=_0x4667f2[_0x3b69d2(0x3dc)](_0x71e749[_0x3b69d2(0x1e7)]),_0x6f76e3=(await _0x2fde7b[_0x3b69d2(0x1c1)]({'unitId':_0x18c84d,'subUnitId':_0x2e98b6,'pivotTableId':_0x539371,'params':{'type':_0x2dff37[_0x3b69d2(0x2d3)],'setValuePivotFilter':{'tableFieldId':_0x20acd2,'filterInfo':_0x20e4d1}}}))[_0x3b69d2(0x144)][_0x3b69d2(0x14b)];if(!_0x6f76e3)return!0x1;const {changesets:_0x2d0780,pivotTableConfig:_0x10bce6,isEmpty:_0x4d6150,view:_0x17ccff}=_0x6f76e3,_0x3c0302=_0x10bce6[_0x3b69d2(0x354)],_0x11e773=new _0x1978cb['PivotView']();_0x11e773['formJSON'](_0x17ccff);const _0x5da106={'cellInfo':_0x3c0302,'view':_0x11e773,'isEmpty':_0x4d6150};if(!await _0x4667f2['get'](_0x3e9a4b['SheetsPivotTableService'])[_0x3b69d2(0xf6)][_0x3b69d2(0x17e)](_0x178140)(!0x0,_0x5da106))return!0x1;const _0x67b686=_0xed8bbb(_0x4667f2,_0x11e773,_0x3c0302,_0x4d6150),_0x28b64a=_0xdc7318(_0x4667f2,_0x5da106),{undos:_0x492cf4,redos:_0x772f3e}=_0x2dd215(_0x1b07d6,{'pivotTableId':_0x539371,'unitId':_0x18c84d,'subUnitId':_0x2e98b6},_0x2d0780);return _0x71e749[_0x3b69d2(0x296)]([..._0x67b686[_0x3b69d2(0x1ae)],..._0x28b64a[_0x3b69d2(0x1ae)],..._0x772f3e],_0x1b07d6),_0x27dc42[_0x3b69d2(0x23a)]({'unitID':_0x18c84d,'redoMutations':[..._0x67b686[_0x3b69d2(0x1ae)],..._0x28b64a['redos'],..._0x772f3e],'undoMutations':[..._0x67b686['undos'],..._0x28b64a['undos'],..._0x492cf4]}),!0x0;}},_0x44cc22={'type':_0x71e749[_0x952e9f(0x1ff)][_0x952e9f(0xf7)],'id':_0x952e9f(0x1b4),async 'handler'(_0x3cc5bb,_0xfdbe29){const _0x1ed627=_0x952e9f;if(!_0xfdbe29)return!0x1;const _0x4fcff0=_0x3cc5bb['get'](_0x71e749[_0x1ed627(0x1ec)]),_0x266f9f=_0x3cc5bb[_0x1ed627(0x3dc)](_0x71e749[_0x1ed627(0x1e7)]),_0x207963=_0x3cc5bb[_0x1ed627(0x3dc)](_0x3e9a4b[_0x1ed627(0x211)]),{pivotTableConfig:_0x204ed9,pivotTableId:_0x10adcc,unitId:_0xefdb21,subUnitId:_0x2af085}=_0xfdbe29,_0x55c6bf=(await _0x207963[_0x1ed627(0x1c1)]({'unitId':_0xefdb21,'subUnitId':_0x2af085,'pivotTableId':_0x10adcc,'params':{'type':_0x2dff37[_0x1ed627(0x14e)],'setPivotTableConfig':{'pivotTableId':_0x10adcc,'pivotTableConfig':_0x204ed9}}}))[_0x1ed627(0x144)]['setPivotTableConfig'];if(!_0x55c6bf)return!0x1;const {changesets:_0x919894}=_0x55c6bf,{redos:_0xc78f1d,undos:_0x5e3fee}=_0x2dd215(_0x4fcff0,{'pivotTableId':_0x10adcc,'unitId':_0xefdb21,'subUnitId':_0x2af085},_0x919894);return _0x71e749[_0x1ed627(0x296)](_0xc78f1d,_0x4fcff0),_0x266f9f[_0x1ed627(0x23a)]({'unitID':_0xefdb21,'redoMutations':_0xc78f1d,'undoMutations':_0x5e3fee}),!0x0;}},_0x5c5c64={'type':_0x71e749['CommandType']['COMMAND'],'id':_0x952e9f(0x1ef),async 'handler'(_0x1df5f7,_0x42b510){const _0x5c264f=_0x952e9f;if(!_0x42b510)return!0x1;const _0x178571=_0x1df5f7[_0x5c264f(0x3dc)](_0x71e749[_0x5c264f(0x1ec)]),_0x1ec4bb=_0x1df5f7[_0x5c264f(0x3dc)](_0x71e749[_0x5c264f(0x1e7)]),_0x252a77=_0x1df5f7[_0x5c264f(0x3dc)](_0x3e9a4b[_0x5c264f(0x211)]),{resetArea:_0x2cc6ce,pivotTableId:_0x541937,unitId:_0x5e91ce,subUnitId:_0x5555dc}=_0x42b510,_0x4ff997=(await _0x252a77[_0x5c264f(0x1c1)]({'unitId':_0x5e91ce,'subUnitId':_0x5555dc,'pivotTableId':_0x541937,'params':{'type':_0x2dff37['ResetPivotTable'],'resetPivotTable':{'pivotTableId':_0x541937,'resetArea':_0x2cc6ce}}}))[_0x5c264f(0x144)][_0x5c264f(0x152)];if(!_0x4ff997)return!0x1;const {changesets:_0x45d478}=_0x4ff997,{redos:_0x31e6a7,undos:_0x2eeacc}=_0x2dd215(_0x178571,{'pivotTableId':_0x541937,'unitId':_0x5e91ce,'subUnitId':_0x5555dc},_0x45d478);return _0x71e749[_0x5c264f(0x296)](_0x31e6a7,_0x178571),_0x1ec4bb['pushUndoRedo']({'unitID':_0x5e91ce,'redoMutations':_0x31e6a7,'undoMutations':_0x2eeacc}),!0x0;}},_0x3f31b7={'id':_0x952e9f(0x1ee),'type':_0x71e749['CommandType'][_0x952e9f(0x334)],'handler':(_0x521e6e,_0x3fbf05)=>{const _0x1081f5=_0x952e9f;if(!_0x3fbf05)return!0x1;if(!!_0x521e6e[_0x1081f5(0x3dc)](_0x71e749[_0x1081f5(0x225)])[_0x1081f5(0x2dd)](_0xf9ba23))return!0x0;const {unitId:_0x5a8f52,subUnitId:_0x48178f,pivotTableId:_0x1f7fc3,tableFieldId:_0x5bd120,dateType:_0x2b7100}=_0x3fbf05,_0xde1602=_0x521e6e[_0x1081f5(0x3dc)](_0x3e9a4b[_0x1081f5(0x386)]),_0x293412=_0xde1602['getPivotTableInstance'](_0x1f7fc3);if(!_0x293412)return!0x1;const _0x4fe7c0=_0x293412[_0x1081f5(0x147)](_0x5bd120);if(!_0x4fe7c0)return!0x1;const _0x5947a8=_0x4fe7c0[_0x1081f5(0x245)](),_0x1db3f6=_0x293412[_0x1081f5(0x36a)](_0x5947a8),_0x34428d=(_0x1db3f6==null?void 0x0:_0x1db3f6[_0x1081f5(0x134)]())+'\x20'+_0x16e833(_0x521e6e,_0x2b7100);_0xde1602[_0x1081f5(0x3b3)](_0x5a8f52,_0x1f7fc3)[_0x1081f5(0x148)](_0x4fe7c0['id'],_0x34428d);const _0xa06ccc=_0x293412[_0x1081f5(0x24f)](_0x5bd120);if(!_0xa06ccc)return!0x1;_0x293412[_0x1081f5(0x326)](_0xa06ccc['getId'](),_0x34428d),_0x4fe7c0[_0x1081f5(0x30d)](_0x2b7100);const _0x2fb7ea=_0xde1602[_0x1081f5(0x405)](_0x5a8f52,_0x48178f,_0x1f7fc3);return _0xde1602[_0x1081f5(0x1e1)]({'unitId':_0x5a8f52,'subUnitId':_0x48178f,'token':_0x1f7fc3,'type':_0x5cfd72[_0x1081f5(0x15c)],'pivotConfig':_0x2fb7ea}),!0x0;}},_0x13d7ff={'id':_0x952e9f(0x3ef),'type':_0x71e749['CommandType']['COMMAND'],'handler':(_0x259e83,_0x18e17a)=>{const _0x39ec00=_0x952e9f;if(!_0x18e17a)return!0x1;const _0x54707b=_0x259e83[_0x39ec00(0x3dc)](_0x71e749[_0x39ec00(0x1e7)]),{unitId:_0x44426c,subUnitId:_0x479999,pivotTableId:_0x46020e,tableFieldId:_0x57d89f}=_0x18e17a,_0x3abf9e=[],_0x258f48=[],_0x5960da=_0x259e83[_0x39ec00(0x3dc)](_0x3e9a4b[_0x39ec00(0x299)]),_0x344e12=_0x5960da[_0x39ec00(0x3b3)](_0x44426c,_0x46020e),_0x12930f=_0x5960da[_0x39ec00(0x405)](_0x44426c,_0x479999,_0x46020e);if(!(_0x12930f!=null&&_0x12930f[_0x39ec00(0x13c)][_0x39ec00(0x383)]))return!0x1;const _0x57e566=Object['values'](_0x12930f[_0x39ec00(0x13c)][_0x39ec00(0x383)])[_0x39ec00(0x2d4)](_0x58bb38=>_0x58bb38['id']===_0x57d89f);if(!_0x57e566)return!0x1;const _0xf4bb20=_0x57e566[_0x39ec00(0x3f2)];if(!(_0x344e12!=null&&_0x344e12[_0x39ec00(0x1fe)]))return!0x1;const _0x3a2401=Object['values'](_0x344e12==null?void 0x0:_0x344e12[_0x39ec00(0x1fe)])[_0x39ec00(0x2d4)](_0x30e45d=>_0x30e45d['id']===_0xf4bb20);if(!_0x3a2401)return!0x1;_0x1978cb[_0x39ec00(0x403)](_0x3a2401)&&_0x3abf9e['push']({'id':_0x3f31b7['id'],'params':{..._0x18e17a,'dateType':_0x3a2401[_0x39ec00(0x21a)]}}),_0x258f48[_0x39ec00(0x2b7)]({'id':_0x3f31b7['id'],'params':{..._0x18e17a}});const _0xf3de24=_0x259e83[_0x39ec00(0x3dc)](_0x71e749[_0x39ec00(0x1ec)]);return _0x71e749[_0x39ec00(0x296)](_0x258f48,_0xf3de24)&&_0x54707b['pushUndoRedo']({'unitID':_0x44426c,'undoMutations':_0x3abf9e,'redoMutations':_0x258f48}),!0x0;}};var _0x33e577=Object[_0x952e9f(0x169)],_0x4db938=(_0x29eee4,_0x120509,_0x477995,_0x541866)=>{const _0x13049d=_0x952e9f;for(var _0x3a8a7f=_0x541866>0x1?void 0x0:_0x541866?_0x33e577(_0x120509,_0x477995):_0x120509,_0x1c4890=_0x29eee4[_0x13049d(0x278)]-0x1,_0x5611f1;_0x1c4890>=0x0;_0x1c4890--)(_0x5611f1=_0x29eee4[_0x1c4890])&&(_0x3a8a7f=_0x5611f1(_0x3a8a7f)||_0x3a8a7f);return _0x3a8a7f;},_0x348f0e=(_0x1b5b6d,_0x2a0d84)=>(_0x416f98,_0x1d1cc5)=>_0x2a0d84(_0x416f98,_0x1d1cc5,_0x1b5b6d);const _0x5b8854=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x504c93=(_0x166661,_0x49bb31,_0x314dbd)=>{const _0x899525=_0x952e9f,_0x151459=_0x166661[_0x899525(0x25b)];_0x166661[_0x899525(0x3ff)](_0x50d30e=>{const _0x3e47f1=_0x899525,_0xd5e807=_0x50d30e[_0x3e47f1(0x1ed)](),_0x5a1623=_0x50d30e['getDataFieldId'](),_0x16b267=_0x50d30e[_0x3e47f1(0x36f)](),_0x446c75=_0x50d30e[_0x3e47f1(0x186)]();_0x49bb31[_0x5a1623]&&_0x49bb31[_0x5a1623]===_0x446c75&&_0x16b267===_0x446c75&&(_0x166661[_0x3e47f1(0x326)](_0xd5e807,_0x151459[_0x3e47f1(0x186)](_0x5a1623)),_0x50d30e[_0x3e47f1(0x103)](_0x151459[_0x3e47f1(0x186)](_0x5a1623)));}),_0x166661['iterateFieldByArea'](_0x1978cb['PivotTableFiledAreaEnum'][_0x899525(0x2f0)],_0x22fc45=>{const _0x15c23b=_0x899525,_0x3709e1=_0x22fc45[_0x15c23b(0x1ed)](),_0x42b07e=_0x22fc45[_0x15c23b(0x25e)](),_0x1c4681=_0x22fc45[_0x15c23b(0x36f)](),_0x56f5c4=_0x22fc45[_0x15c23b(0x186)](),_0x3093db=_0x22fc45['getSubtotal'](),_0x28aa9f=_0x314dbd(_0x1c4681,_0x3093db);_0x49bb31[_0x42b07e]&&_0x49bb31[_0x42b07e]===_0x1c4681&&_0x28aa9f===_0x56f5c4&&(_0x166661[_0x15c23b(0x326)](_0x3709e1,_0x314dbd(_0x151459[_0x15c23b(0x186)](_0x42b07e),_0x3093db)),_0x22fc45[_0x15c23b(0x103)](_0x151459[_0x15c23b(0x186)](_0x42b07e)));});},_0x3e6df8=(_0x3b8569,_0x5459a2,_0x31ad19)=>{const _0x22f7f1=_0x952e9f;var _0xab9392,_0x10836d;const {arrayFormulaCellData:_0x2b6cae,unitData:_0x3b9831}=_0x5459a2,{unitId:_0x12bab7,subUnitId:_0x135b9d}=_0x31ad19,_0x27ad6b=_0x31ad19[_0x22f7f1(0x145)],{startColumn:_0x14a6df,endColumn:_0x1c453c}=_0x27ad6b,_0x5a77a3=(_0xab9392=_0x2b6cae==null?void 0x0:_0x2b6cae[_0x12bab7])==null?void 0x0:_0xab9392[_0x135b9d],_0x562fe3=(_0x10836d=_0x3b9831==null?void 0x0:_0x3b9831[_0x12bab7])==null?void 0x0:_0x10836d[_0x135b9d],_0x223478=new Set(),_0x24f115=_0x1c453c-_0x14a6df+0x1,{dirtyRanges:_0x1844f6}=_0x3b8569;if(_0x1844f6)for(const {range:_0x3118a4,sheetId:_0x3602f5,unitId:_0x437b6d}of _0x1844f6){if(_0x3602f5!==_0x135b9d||_0x12bab7!==_0x437b6d)continue;const _0x3ad843=_0x71e749[_0x22f7f1(0x28b)]['getIntersects'](_0x3118a4,_0x27ad6b);if(_0x3ad843){const {startColumn:_0xd478e8,endColumn:_0x18a486}=_0x3ad843;for(let _0x20a643=_0xd478e8;_0x20a643<=_0x18a486;_0x20a643++)_0x223478[_0x22f7f1(0x249)](_0x20a643);}}if(_0x223478[_0x22f7f1(0x303)]===_0x24f115||_0x223478[_0x22f7f1(0x303)]===_0x24f115)return Array['from'](_0x223478);if(_0x562fe3){const _0x579272=_0x562fe3[_0x22f7f1(0x300)](),_0x3d3535=Object[_0x22f7f1(0x111)](_0x579272);for(const _0x202d97 of _0x3d3535){const _0x5e60d2=Number(_0x202d97),_0x53fafd=_0x579272[_0x5e60d2];if(_0x223478[_0x22f7f1(0x303)]===_0x24f115)break;for(const _0x1593ea in _0x53fafd){const _0x3f78ee=Number(_0x1593ea);_0x3f78ee<_0x14a6df||_0x3f78ee>_0x1c453c||_0x223478[_0x22f7f1(0x249)](_0x3f78ee);}}}if(_0x5a77a3){const _0x8be8f4=_0x5a77a3[_0x22f7f1(0x300)](),_0x4876f3=Object[_0x22f7f1(0x111)](_0x8be8f4);for(const _0x52793e of _0x4876f3){const _0x454968=Number(_0x52793e),_0x2755b1=_0x8be8f4[_0x454968];if(_0x223478[_0x22f7f1(0x303)]===_0x24f115)break;for(const _0x3cff5e in _0x2755b1){const _0x27e676=Number(_0x3cff5e);_0x27e676<_0x14a6df||_0x27e676>_0x1c453c||_0x223478[_0x22f7f1(0x249)](_0x27e676);}}}return Array[_0x22f7f1(0x12f)](_0x223478);},_0x3dd879=_0x3a0d17=>{const _0x354438=_0x952e9f,_0x12a8eb=new Set(),_0x5d2ef4=[];for(const _0x1db51c of _0x3a0d17){const _0x39ac56=_0x1db51c[_0x354438(0x2fd)]+','+_0x1db51c['endRow']+','+_0x1db51c['startColumn']+','+_0x1db51c[_0x354438(0x317)];_0x12a8eb[_0x354438(0x2cc)](_0x39ac56)||(_0x12a8eb[_0x354438(0x249)](_0x39ac56),_0x5d2ef4[_0x354438(0x2b7)](_0x1db51c));}return _0x5d2ef4;};let _0x11d712=class extends _0x71e749[_0x952e9f(0x1bf)]{constructor(_0x4fcc18,_0x836531,_0xc2d499,_0x4dad79,_0xc83e58,_0x59ce94){const _0x5d76c9=_0x952e9f;super(),_0x59bac0(this,_0x5d76c9(0x1be),new _0x11b8a8[(_0x5d76c9(0x316))](!0x0)),_0x59bac0(this,_0x5d76c9(0x340),_0x4fc1e5=>{const _0x5254fc=_0x5d76c9;this['_globalSubject'][_0x5254fc(0x348)](!0x1);}),_0x59bac0(this,'_globalComputedEndHelpFunc',_0xc65552=>{const _0x25cf4a=_0x5d76c9;this[_0x25cf4a(0x1be)][_0x25cf4a(0x348)](!0x0);}),(this[_0x5d76c9(0x2b2)]=_0x4fcc18,this[_0x5d76c9(0x399)]=_0x836531,this['_featureCalculationManagerService']=_0xc2d499,this[_0x5d76c9(0x107)]=_0x4dad79,this['_globalComputingSrv']=_0xc83e58,this['_injector']=_0x59ce94,this[_0x5d76c9(0x234)](),this['_initPivotDataGetListener']());}[_0x952e9f(0x234)](){const _0x3a8870=_0x952e9f;this['_subjectCollectionChange'](),this[_0x3a8870(0xf3)](),this[_0x3a8870(0x2e6)](),this[_0x3a8870(0x142)]();}[_0x952e9f(0x34f)](){const _0x1606cc=_0x952e9f;this[_0x1606cc(0x31f)][_0x1606cc(0x267)](this['_globalSubject']),_0x1978cb[_0x1606cc(0x28e)][_0x1606cc(0x30e)](_0x1978cb[_0x1606cc(0x2f7)][_0x1606cc(0x16c)],this['_globalComputedStartHelpFunc']),_0x1978cb[_0x1606cc(0x28e)][_0x1606cc(0x30e)](_0x1978cb[_0x1606cc(0x2f7)][_0x1606cc(0x181)],this[_0x1606cc(0x2bb)]);}[_0x952e9f(0x2e4)](){const _0x2f9fdd=_0x952e9f;this[_0x2f9fdd(0x2fa)](this[_0x2f9fdd(0x107)]['onCommandExecuted'](_0x359a85=>{const _0x36dc2c=_0x2f9fdd;_0x359a85['id']===_0x2a18e2[_0x36dc2c(0x17c)]['id']&&this[_0x36dc2c(0x2b2)]['handleMoveRange'](_0x359a85[_0x36dc2c(0x35e)]);})),this[_0x2f9fdd(0x2fa)](this[_0x2f9fdd(0x107)][_0x2f9fdd(0x260)](_0x2c023f=>{const _0x3dcb1a=_0x2f9fdd;if(_0x2c023f['id']!==_0x1efe7b['id'])return;const _0x1dc62a=_0x2c023f['params'],{unitId:_0x5855b7,subUnitId:_0xa6c44,pivotTableId:_0x215be9}=_0x1dc62a,_0x5c015e=_0x1dc62a[_0x3dcb1a(0x35e)]['type'],_0x2c9778={};switch(_0x5c015e){case _0x2dff37['Filter']:{const _0x1d49cc=_0x1dc62a[_0x3dcb1a(0x35e)][_0x3dcb1a(0x279)];if(!_0x1d49cc)return;const {row:_0x98923c,col:_0x523389,cellData:_0x32be33,pivotItemRenderInfoCache:_0x3027e5,tableFieldId:_0x325d3a}=_0x1d49cc,_0x25d8ae=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x123)](_0x1dc62a['pivotTableId']);if(!_0x25d8ae||!_0x3027e5)return;if(_0x325d3a){const _0x334761=_0x25d8ae[_0x3dcb1a(0x147)](_0x325d3a);if(!_0x334761)return;_0x2c9778['filter']={..._0x25d8ae[_0x3dcb1a(0x2c0)](_0x334761),'tableFieldId':_0x325d3a,'pivotTableId':_0x1dc62a['pivotTableId'],'filterInfo':_0x25d8ae[_0x3dcb1a(0x3aa)](_0x325d3a),'sortInfo':_0x25d8ae['getSortInfo'](_0x325d3a),'format':_0x25d8ae['getFieldFormat'](_0x325d3a)};}else{const _0x1c8880=_0x45e11b(_0x98923c,_0x523389,_0x32be33,_0x25d8ae,_0x3027e5),_0x185263=_0x1c8880==null?void 0x0:_0x1c8880[_0x3dcb1a(0x39e)];if(!_0x185263)return;const _0x460aff=_0x25d8ae[_0x3dcb1a(0x147)](_0x185263);if(!_0x460aff)return;_0x2c9778[_0x3dcb1a(0x279)]={..._0x25d8ae['getDataFieldItemInfo'](_0x460aff),'tableFieldId':_0x185263,'pivotTableId':_0x1dc62a[_0x3dcb1a(0x1a5)],'filterInfo':_0x25d8ae['getFilterInfo'](_0x185263),'sortInfo':_0x25d8ae[_0x3dcb1a(0x213)](_0x185263),'format':_0x25d8ae['getFieldFormat'](_0x185263)};}}break;case _0x2dff37[_0x3dcb1a(0x17f)]:{const _0x33b947=_0x1dc62a['params'][_0x3dcb1a(0x388)];if(!_0x33b947)return;const {pivotTableId:_0x56f91c}=_0x33b947,_0x2559ac=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x56f91c);if(!_0x2559ac)return;const _0x2e74d8=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x405)](_0x5855b7,_0xa6c44,_0x56f91c),_0x7cd289=_0x2f2bc4(_0x2559ac,_0x56f91c,_0x2e74d8);_0x2c9778['panel']=_0x7cd289;}break;case _0x2dff37[_0x3dcb1a(0x400)]:{const _0x11d70d=this[_0x3dcb1a(0x2b2)]['getPivotTableInstance'](_0x215be9),_0x5b4f55=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x351)](_0x5855b7),_0x17a9c8=_0x5b4f55[_0x3dcb1a(0x3b3)](_0x215be9);let _0x3681ae=null;const _0x344ab0=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x405)](_0x5855b7,_0xa6c44,_0x215be9),_0x50d715=_0x1dc62a[_0x3dcb1a(0x35e)][_0x3dcb1a(0xec)];if(!_0x11d70d||!_0x344ab0||!_0x50d715)return!0x1;const {dataFieldId:_0x15ffd3,fieldArea:_0xe5ba28,index:_0x31cb38}=_0x50d715;_0x11d70d[_0x3dcb1a(0x1a7)]();const _0x328586=_0x11d70d['addFieldWithSourceId'](_0x15ffd3,_0xe5ba28,_0x31cb38);if(_0x328586&&_0xe5ba28===_0x1978cb['PivotTableFiledAreaEnum'][_0x3dcb1a(0x2f0)]){const _0x468db6=_0x328586[_0x3dcb1a(0x1ed)](),_0x5be9ad=_0x11d70d[_0x3dcb1a(0x147)](_0x468db6);if(_0x5be9ad){const _0x158716=_0x5be9ad==null?void 0x0:_0x5be9ad['getFieldDataType']();_0x11d70d[_0x3dcb1a(0x19c)](_0x328586[_0x3dcb1a(0x1ed)](),_0x158716===_0x1978cb[_0x3dcb1a(0x110)]['number']?_0x1978cb[_0x3dcb1a(0x33e)]['sum']:_0x1978cb['PivotSubtotalTypeEnum'][_0x3dcb1a(0x165)]);}const _0x2124fe=_0x11d70d[_0x3dcb1a(0x36e)](),_0x395b53=_0x11d70d[_0x3dcb1a(0x102)](),_0x266b3d=_0x11d70d['getFieldCountByArea'](_0x1978cb['PivotTableFiledAreaEnum'][_0x3dcb1a(0x2f0)]);if(_0x2124fe===-0x1&&_0x266b3d>0x1){const _0x127948=_0x395b53===_0x1978cb[_0x3dcb1a(0x362)][_0x3dcb1a(0x2ee)]?_0x1978cb['PivotTableValuePositionEnum'][_0x3dcb1a(0x3f0)]:_0x395b53,_0x468330=_0x127948===_0x1978cb['PivotTableValuePositionEnum']['Row']?_0x1978cb['PivotTableFiledAreaEnum'][_0x3dcb1a(0x3b9)]:_0x1978cb[_0x3dcb1a(0x3be)]['Column'];_0x11d70d[_0x3dcb1a(0x12b)](_0x127948,_0x11d70d['getFieldCountByArea'](_0x468330));}}else{if(_0x328586&&(_0xe5ba28===_0x1978cb['PivotTableFiledAreaEnum'][_0x3dcb1a(0x3b9)]||_0xe5ba28===_0x1978cb[_0x3dcb1a(0x3be)][_0x3dcb1a(0x3f0)])){const _0x28ec1d=_0x328586[_0x3dcb1a(0x1ed)](),_0x5d98fd=_0x11d70d['getDataFieldByTableId'](_0x28ec1d);if(_0x5d98fd&&(_0x5d98fd==null?void 0x0:_0x5d98fd[_0x3dcb1a(0x222)]())===_0x1978cb[_0x3dcb1a(0x110)][_0x3dcb1a(0x15f)]){const _0x34bcf0=_0x5d98fd[_0x3dcb1a(0x27c)]();if(_0x34bcf0&&_0x11d70d[_0x3dcb1a(0x2d0)](_0x328586[_0x3dcb1a(0x1ed)](),_0x34bcf0),!_0x17a9c8[_0x3dcb1a(0x31b)]()['some'](_0x14a84a=>{const _0x3dcbe4=_0x3dcb1a,_0x2b4217=_0x17a9c8[_0x3dcbe4(0x17d)](_0x14a84a);return _0x1978cb[_0x3dcbe4(0x21d)](_0x2b4217)?_0x2b4217[_0x3dcbe4(0x355)]()[_0x3dcbe4(0x357)]===_0x15ffd3:!0x1;})){const _0x4b1ce8=_0x5b4f55[_0x3dcb1a(0x196)](),_0x373905=_0x1773cf(_0x5d98fd['maxDate'],_0x5d98fd[_0x3dcb1a(0x3e4)]),_0x46c5b1=_0x5d98fd[_0x3dcb1a(0x134)]()+_0x3dcb1a(0x190)+_0x16e833(this['_injector'],_0x373905),_0x2b0e9d=new _0x1978cb['DateGroupField'](_0x4b1ce8,_0x46c5b1,_0x1978cb[_0x3dcb1a(0x24d)](0x3),_0x5d98fd['getId'](),_0x373905);_0x5b4f55[_0x3dcb1a(0x10b)](_0x2b0e9d),_0x17a9c8['addField'](_0x4b1ce8,_0x46c5b1),_0x11d70d['addFieldWithSourceId'](_0x4b1ce8,_0xe5ba28,(_0x31cb38!=null?_0x31cb38:0x0)+0x1),_0x3681ae=_0x2b0e9d;}}}}const _0x1468ff=_0x11d70d['isEmpty'](),_0x30c0c9=_0x11d70d[_0x3dcb1a(0x393)]()[_0x3dcb1a(0x117)]();let _0x1a39d2;if(_0x3681ae){_0x1a39d2=_0x3681ae[_0x3dcb1a(0x117)]();const _0x2241da=_0x3681ae[_0x3dcb1a(0x1ed)]();_0x17a9c8['deleteField'](_0x2241da);let _0x455864=!0x0;for(const _0x1b13c3 in _0x5b4f55['collections'])if(_0x5b4f55[_0x3dcb1a(0x3d8)][_0x1b13c3]['getFieldIds']()[_0x3dcb1a(0x302)](_0x2241da)){_0x455864=!0x1;break;}_0x455864&&_0x5b4f55[_0x3dcb1a(0x1eb)](_0x2241da);}const _0x302a1a=_0x11d70d[_0x3dcb1a(0x159)]();_0x2c9778['addPivotField']={'view':_0x30c0c9,'changesets':_0x302a1a,'isEmpty':_0x1468ff,'pivotTableConfig':_0x344ab0,'shouldBeAddedGroupJSON':_0x1a39d2};}break;case _0x2dff37['AddPivotTable']:{const _0x2f168c=_0x1dc62a['params'][_0x3dcb1a(0x261)];if(!_0x2f168c)return;const _0x4431d0=_0x2f168c['sourceRangeInfo'],_0x30df1c=_0x2f168c[_0x3dcb1a(0x1a5)],{collection:_0x504731}=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x252)]({'unitId':_0x4431d0[_0x3dcb1a(0x27e)],'sheetName':_0x4431d0['sheetName'],'subUnitId':_0x4431d0['subUnitId'],'range':_0x4431d0[_0x3dcb1a(0x145)]}),_0x2bd0ea=new _0x1978cb[(_0x3dcb1a(0x28e))](_0x504731,void 0x0,_0x30df1c),_0x10c0ed=_0x2bd0ea[_0x3dcb1a(0x393)](),_0x153042=_0x2bd0ea[_0x3dcb1a(0x117)](),_0x3f6c8b=_0x504731['toJSON']();_0x2c9778[_0x3dcb1a(0x261)]={'view':_0x10c0ed,'fieldsConfig':_0x153042,'collectionConfig':_0x3f6c8b,'isEmpty':_0x2bd0ea[_0x3dcb1a(0x36b)]()};}break;case _0x2dff37[_0x3dcb1a(0x20a)]:{const _0x3f4a75=_0x1dc62a[_0x3dcb1a(0x35e)][_0x3dcb1a(0x232)];if(!_0x3f4a75)return;const {fieldId:_0x313de9,area:_0x4c621f,index:_0xc7cbe8}=_0x3f4a75,_0x35046c=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x5855b7,_0xa6c44,_0x215be9);if(!_0x35046c)return;const _0x2a98d3=this['_sheetsPivotDataSourceModel'][_0x3dcb1a(0x123)](_0x215be9);if(!_0x2a98d3)return;_0x2a98d3['startCollectChangeset']();const {area:_0x13f7d8,index:_0x345543}=_0x2a98d3[_0x3dcb1a(0x3a6)](_0x313de9);if(_0x2a98d3[_0x3dcb1a(0x10e)](_0x313de9,_0x4c621f,_0xc7cbe8),_0x4c621f===_0x1978cb[_0x3dcb1a(0x3be)]['Value']&&_0x2a98d3[_0x3dcb1a(0x24f)](_0x313de9)[_0x3dcb1a(0x1a3)]()===void 0x0){const _0x69be67=_0x2a98d3[_0x3dcb1a(0x24f)](_0x313de9);if(_0x69be67&&_0x69be67[_0x3dcb1a(0x1a3)]()===void 0x0){const _0x5c8d1f=_0x2a98d3[_0x3dcb1a(0x147)](_0x313de9);if(_0x5c8d1f){const _0x5857e6=_0x5c8d1f==null?void 0x0:_0x5c8d1f[_0x3dcb1a(0x222)]();_0x2a98d3[_0x3dcb1a(0x19c)](_0x313de9,_0x5857e6===_0x1978cb[_0x3dcb1a(0x110)][_0x3dcb1a(0x3d3)]?_0x1978cb[_0x3dcb1a(0x33e)][_0x3dcb1a(0x242)]:_0x1978cb[_0x3dcb1a(0x33e)][_0x3dcb1a(0x165)]);}}}const _0x5b9517=_0x2a98d3[_0x3dcb1a(0x102)](),_0x38c8cf=_0x2a98d3[_0x3dcb1a(0x36e)](),_0x56c490=_0x2a98d3[_0x3dcb1a(0x28a)](_0x1978cb[_0x3dcb1a(0x3be)][_0x3dcb1a(0x2f0)])>0x1;if(_0x56c490&&_0x13f7d8===_0x4c621f&&(_0x4c621f===_0x1978cb[_0x3dcb1a(0x3be)][_0x3dcb1a(0x3b9)]&&_0x5b9517===_0x1978cb['PivotTableValuePositionEnum'][_0x3dcb1a(0x3b9)]||_0x4c621f===_0x1978cb[_0x3dcb1a(0x3be)]['Column']&&_0x5b9517===_0x1978cb['PivotTableValuePositionEnum'][_0x3dcb1a(0x3f0)])){let _0x46b8bf=_0x38c8cf;_0x345543<=_0x38c8cf&&_0x46b8bf--,_0xc7cbe8<=_0x38c8cf&&_0x46b8bf++,_0x2a98d3[_0x3dcb1a(0x12b)](_0x5b9517,_0x46b8bf);}else _0x56c490&&(_0x13f7d8===_0x1978cb[_0x3dcb1a(0x3be)]['Row']&&_0x5b9517===_0x1978cb['PivotTableValuePositionEnum'][_0x3dcb1a(0x3b9)]||_0x13f7d8===_0x1978cb[_0x3dcb1a(0x3be)][_0x3dcb1a(0x3f0)]&&_0x5b9517===_0x1978cb[_0x3dcb1a(0x362)]['Column'])&&_0x38c8cf>=_0x345543&&_0x2a98d3[_0x3dcb1a(0x12b)](_0x5b9517,_0x38c8cf-0x1),_0x56c490&&(_0x4c621f===_0x1978cb[_0x3dcb1a(0x3be)][_0x3dcb1a(0x3b9)]&&_0x5b9517===_0x1978cb['PivotTableValuePositionEnum'][_0x3dcb1a(0x3b9)]||_0x4c621f===_0x1978cb[_0x3dcb1a(0x3be)][_0x3dcb1a(0x3f0)]&&_0x5b9517===_0x1978cb['PivotTableValuePositionEnum'][_0x3dcb1a(0x3f0)])&&_0x38c8cf>=_0xc7cbe8&&_0x2a98d3[_0x3dcb1a(0x12b)](_0x5b9517,_0x38c8cf+0x1);const _0x5a106e=_0x2a98d3[_0x3dcb1a(0x393)](),_0x35bb59=_0x2a98d3[_0x3dcb1a(0x36b)](),_0x4151ad=_0x2a98d3[_0x3dcb1a(0x159)]();_0x2c9778[_0x3dcb1a(0x232)]={'view':_0x5a106e[_0x3dcb1a(0x117)](),'changesets':_0x4151ad,'isEmpty':_0x35bb59,'pivotTableConfig':_0x35046c};}break;case _0x2dff37[_0x3dcb1a(0x24c)]:{const _0x54713e=_0x1dc62a[_0x3dcb1a(0x35e)]['removePivotField'];if(!_0x54713e)return;const _0x5f5973=_0x54713e[_0x3dcb1a(0x3a5)],_0x517e79=this[_0x3dcb1a(0x2b2)]['getPivotTableConfig'](_0x5855b7,_0xa6c44,_0x215be9);if(!_0x517e79)return!0x1;const _0x28d3fd=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x123)](_0x215be9);if(!_0x28d3fd)return!0x1;_0x28d3fd[_0x3dcb1a(0x1a7)]();for(const _0x355c01 of _0x5f5973){const {area:_0x4532e5}=_0x28d3fd[_0x3dcb1a(0x3a6)](_0x355c01);_0x4532e5===_0x1978cb['PivotTableFiledAreaEnum'][_0x3dcb1a(0x2f0)]&&_0x28d3fd['removeValueFilterInfoByValueFieldId'](_0x355c01),(_0x4532e5===_0x1978cb[_0x3dcb1a(0x3be)]['Row']||_0x4532e5===_0x1978cb['PivotTableFiledAreaEnum'][_0x3dcb1a(0x3f0)])&&_0x28d3fd[_0x3dcb1a(0xf5)](_0x355c01),_0x28d3fd[_0x3dcb1a(0xe8)](_0x355c01);}const _0x3abea6=_0x28d3fd[_0x3dcb1a(0x36b)](),_0x4cd7bb=_0x28d3fd[_0x3dcb1a(0x393)]()['toJSON'](),_0x5efded=_0x28d3fd[_0x3dcb1a(0x159)]();_0x2c9778[_0x3dcb1a(0x395)]={'changesets':_0x5efded,'pivotTableConfig':_0x517e79,'isEmpty':_0x3abea6,'view':_0x4cd7bb};}break;case _0x2dff37[_0x3dcb1a(0xf0)]:{const _0x163967=_0x1dc62a['params'][_0x3dcb1a(0x310)];if(!_0x163967)return;const {tableFieldId:_0x2046a1,items:_0x53e6b9,isAll:_0x645228}=_0x163967,_0x2672f6=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x123)](_0x215be9),_0x33222d=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x405)](_0x5855b7,_0xa6c44,_0x215be9);if(!_0x2672f6||!_0x33222d)return;_0x2672f6[_0x3dcb1a(0x1a7)](),_0x2672f6['setLabelFilterInfo'](_0x2046a1,{'type':_0x1978cb[_0x3dcb1a(0x215)]['ManualFilter'],'list':_0x53e6b9,'isAll':_0x645228});const _0x5a3b73=_0x2672f6[_0x3dcb1a(0x36b)](),_0x65e0a=_0x2672f6[_0x3dcb1a(0x393)]()['toJSON'](),_0x208941=_0x2672f6[_0x3dcb1a(0x159)]();_0x2c9778[_0x3dcb1a(0x310)]={'view':_0x65e0a,'changesets':_0x208941,'isEmpty':_0x5a3b73,'pivotTableConfig':_0x33222d};}break;case _0x2dff37[_0x3dcb1a(0x2d3)]:{const _0x1a4ec4=_0x1dc62a[_0x3dcb1a(0x35e)][_0x3dcb1a(0x14b)];if(!_0x1a4ec4)return;const {tableFieldId:_0x16ba89,filterInfo:_0x5ccbde}=_0x1a4ec4,_0x53551f=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x123)](_0x215be9),_0x47816c=this[_0x3dcb1a(0x2b2)]['getPivotTableConfig'](_0x5855b7,_0xa6c44,_0x215be9);if(!_0x53551f||!_0x47816c)return;_0x53551f[_0x3dcb1a(0x1a7)](),_0x53551f[_0x3dcb1a(0x124)](_0x16ba89,_0x5ccbde);const _0x2871ad=_0x53551f['isEmpty'](),_0x157565=_0x53551f[_0x3dcb1a(0x393)]()[_0x3dcb1a(0x117)](),_0x257c0a=_0x53551f[_0x3dcb1a(0x159)]();_0x2c9778[_0x3dcb1a(0x14b)]={'view':_0x157565,'changesets':_0x257c0a,'isEmpty':_0x2871ad,'pivotTableConfig':_0x47816c};}break;case _0x2dff37[_0x3dcb1a(0xf4)]:{const _0x303f75=_0x1dc62a[_0x3dcb1a(0x35e)]['setPivotSort'];if(!_0x303f75)return;const {tableFieldId:_0x1b01a3,info:_0x8cea4e}=_0x303f75,_0x580210=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x123)](_0x215be9),_0x15a4b6=this['_sheetsPivotDataSourceModel'][_0x3dcb1a(0x405)](_0x5855b7,_0xa6c44,_0x215be9);if(!_0x580210||!_0x15a4b6)return;_0x580210[_0x3dcb1a(0x1a7)](),_0x580210[_0x3dcb1a(0x1ea)](_0x1b01a3,_0x8cea4e);const _0x3ba0de=_0x580210['isEmpty'](),_0x399772=_0x580210[_0x3dcb1a(0x393)]()[_0x3dcb1a(0x117)](),_0xeba221=_0x580210[_0x3dcb1a(0x159)]();_0x2c9778[_0x3dcb1a(0x125)]={'view':_0x399772,'changesets':_0xeba221,'isEmpty':_0x3ba0de,'pivotTableConfig':_0x15a4b6};}break;case _0x2dff37[_0x3dcb1a(0x191)]:{const _0x24cd14=_0x1dc62a[_0x3dcb1a(0x35e)][_0x3dcb1a(0x29d)];if(!_0x24cd14)return;const {tableFieldId:_0x1e086c,displayName:_0xc3a713,subtotalType:_0x19c70c,format:_0xd0cc1e}=_0x24cd14,_0x2bb047=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x215be9),_0x1c41d7=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x405)](_0x5855b7,_0xa6c44,_0x215be9);if(!_0x2bb047||!_0x1c41d7)return;_0x2bb047[_0x3dcb1a(0x1a7)](),_0xc3a713!==void 0x0&&_0x2bb047[_0x3dcb1a(0x326)](_0x1e086c,_0xc3a713),_0x19c70c!==void 0x0&&_0x2bb047[_0x3dcb1a(0x19c)](_0x1e086c,_0x19c70c),_0xd0cc1e!==void 0x0&&_0x2bb047[_0x3dcb1a(0x2d0)](_0x1e086c,_0xd0cc1e);const _0x78abfb=_0x2bb047[_0x3dcb1a(0x36b)](),_0x39148d=_0x2bb047['query']()[_0x3dcb1a(0x117)](),_0x26b44a=_0x2bb047[_0x3dcb1a(0x159)]();_0x2c9778[_0x3dcb1a(0x29d)]={'changesets':_0x26b44a,'pivotTableConfig':_0x1c41d7,'isEmpty':_0x78abfb,'view':_0x39148d};}break;case _0x2dff37['UpdatePivotSource']:{const _0x3d422d=_0x1dc62a['params'][_0x3dcb1a(0x3e2)];if(!_0x3d422d)return;const {dataRangeInfo:_0xf7794d,unitId:_0x370b83,subUnitId:_0xa24d7d}=_0x3d422d,_0x4d047b=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x405)](_0x370b83,_0xa24d7d,_0x215be9),_0x58c460=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x215be9);if(!this['_sheetsPivotDataSourceModel'][_0x3dcb1a(0x3b3)](_0x370b83,_0x215be9)||!_0x58c460||!_0x4d047b)return;const _0x441282=this['_sheetsPivotDataSourceModel'][_0x3dcb1a(0x3bb)](_0x370b83,_0x215be9,_0xf7794d),_0x4d015f=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x3b3)](_0x370b83,_0x215be9)[_0x3dcb1a(0x117)](),{collection:_0x1831d7}=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x252)]({'unitId':_0xf7794d[_0x3dcb1a(0x27e)],'sheetName':_0xf7794d['sheetName'],'subUnitId':_0xf7794d[_0x3dcb1a(0x277)],'range':_0xf7794d[_0x3dcb1a(0x145)]}),_0x32dfca=_0x1831d7['toJSON']();_0x58c460[_0x3dcb1a(0x1a7)]();const _0x46adcb=this[_0x3dcb1a(0x2b2)]['getDataFieldManager'](_0x370b83)[_0x3dcb1a(0x194)]()||_0x1978cb[_0x3dcb1a(0x2ab)];_0x58c460[_0x3dcb1a(0x32a)](_0x46d25d=>{const _0x204f51=_0x3dcb1a,_0x587453=_0x46d25d['getDataFieldId']();if(!_0x1831d7[_0x204f51(0x155)](_0x587453)){const _0x1f5a35=_0x1831d7['getDataFieldBySourceName'](_0x46d25d[_0x204f51(0x36f)]());if(_0x1f5a35){_0x58c460['updateFieldSourceInfo'](_0x46d25d[_0x204f51(0x1ed)](),_0x1f5a35['getName'](),_0x1f5a35[_0x204f51(0x1ed)]());const {area:_0x1a1916}=_0x58c460['getFieldPositionInfoById'](_0x46d25d[_0x204f51(0x1ed)]());let _0x22274b=_0x46d25d[_0x204f51(0x36f)]();const _0x5e7e14=_0x46d25d[_0x204f51(0x186)]();if(_0x1a1916===_0x1978cb[_0x204f51(0x3be)][_0x204f51(0x2f0)]){const _0x18e88a=_0x46d25d[_0x204f51(0x1a3)]();_0x22274b=_0x46adcb(_0x1f5a35[_0x204f51(0x134)](),_0x18e88a);}_0x5e7e14!==_0x22274b&&_0x58c460[_0x204f51(0x326)](_0x46d25d[_0x204f51(0x1ed)](),_0x22274b);}else _0x58c460[_0x204f51(0xe8)](_0x46d25d[_0x204f51(0x1ed)]());}});const _0x3c2bd9=_0x58c460[_0x3dcb1a(0x36b)](),_0x364110=_0x58c460['query']()[_0x3dcb1a(0x117)](),_0x751313=_0x58c460[_0x3dcb1a(0x159)]();_0x2c9778[_0x3dcb1a(0x3e2)]={'view':_0x364110,'changesets':_0x751313,'isEmpty':_0x3c2bd9,'pivotTableConfig':_0x4d047b,'collectionConfig':_0x32dfca,'oldCollectionConfig':_0x4d015f,'deleteIds':_0x441282};}break;case _0x2dff37[_0x3dcb1a(0x26f)]:{const _0x5955c4=_0x1dc62a[_0x3dcb1a(0x35e)][_0x3dcb1a(0x12b)];if(!_0x5955c4)return;const {position:_0x209a7f,index:_0x357c84}=_0x5955c4,_0x569895=this[_0x3dcb1a(0x2b2)]['getPivotTableConfig'](_0x5855b7,_0xa6c44,_0x215be9);if(!_0x569895)return!0x1;const _0xa8ab96=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x215be9);if(!_0xa8ab96)return!0x1;_0xa8ab96[_0x3dcb1a(0x1a7)](),_0xa8ab96[_0x3dcb1a(0x12b)](_0x209a7f,_0x357c84);const _0x13479a=_0xa8ab96[_0x3dcb1a(0x36b)](),_0x748ff4=_0xa8ab96[_0x3dcb1a(0x393)]()[_0x3dcb1a(0x117)](),_0x4f912c=_0xa8ab96[_0x3dcb1a(0x159)]();_0x2c9778['updateValuePosition']={'changesets':_0x4f912c,'pivotTableConfig':_0x569895,'isEmpty':_0x13479a,'view':_0x748ff4};}break;case _0x2dff37[_0x3dcb1a(0x3ee)]:{const _0x3ae721=_0x1dc62a[_0x3dcb1a(0x35e)][_0x3dcb1a(0x16b)];if(!_0x3ae721)return;const {tableFieldId:_0x2719c0,collapse:_0x2e34e0,item:_0x18ffec}=_0x3ae721,_0x4f1ebc=this['_sheetsPivotDataSourceModel'][_0x3dcb1a(0x123)](_0x215be9),_0x18e7f4=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x405)](_0x5855b7,_0xa6c44,_0x215be9);if(!_0x4f1ebc||!_0x18e7f4)return;_0x4f1ebc[_0x3dcb1a(0x1a7)](),_0x4f1ebc['setCollapse'](_0x2719c0,_0x2e34e0,_0x18ffec);const _0x246725=_0x4f1ebc['isEmpty'](),_0xa6e9ca=_0x4f1ebc[_0x3dcb1a(0x393)]()[_0x3dcb1a(0x117)](),_0x26f148=_0x4f1ebc[_0x3dcb1a(0x159)]();_0x2c9778[_0x3dcb1a(0x16b)]={'view':_0xa6e9ca,'isEmpty':_0x246725,'pivotTableConfig':_0x18e7f4,'changesets':_0x26f148};}break;case _0x2dff37[_0x3dcb1a(0x14e)]:{const _0x4785c9=_0x1dc62a[_0x3dcb1a(0x35e)][_0x3dcb1a(0x325)];if(!_0x4785c9)return;const {pivotTableConfig:_0x1a3887}=_0x4785c9,_0x2fc555=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x215be9),_0x428892=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x405)](_0x5855b7,_0xa6c44,_0x215be9);if(!_0x2fc555||!_0x428892)return;_0x2fc555[_0x3dcb1a(0x1a7)](),_0x8cee7d(_0x2fc555,_0x1a3887);const _0x1f57c9=_0x2fc555[_0x3dcb1a(0x36b)](),_0x4808e3=_0x2fc555[_0x3dcb1a(0x393)]()[_0x3dcb1a(0x117)](),_0x3a5e64=_0x2fc555['endCollectChangeset']();_0x2c9778[_0x3dcb1a(0x325)]={'view':_0x4808e3,'isEmpty':_0x1f57c9,'pivotTableConfig':{..._0x428892,'fieldsConfig':_0x2fc555['toJSON']()},'changesets':_0x3a5e64};}break;case _0x2dff37[_0x3dcb1a(0x2ef)]:{const _0xbc731e=_0x1dc62a['params'][_0x3dcb1a(0x152)];if(!_0xbc731e)return;const _0x62f88e=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x123)](_0x215be9),_0x5112a7=this['_sheetsPivotDataSourceModel'][_0x3dcb1a(0x405)](_0x5855b7,_0xa6c44,_0x215be9);if(!_0x62f88e||!_0x5112a7)return;_0x62f88e[_0x3dcb1a(0x1a7)](),_0x11d3b9(_0x62f88e,_0xbc731e[_0x3dcb1a(0x2b4)]);const _0x586258=_0x62f88e[_0x3dcb1a(0x393)]()[_0x3dcb1a(0x117)](),_0x33df00=_0x62f88e[_0x3dcb1a(0x159)]();_0x2c9778[_0x3dcb1a(0x152)]={'view':_0x586258,'isEmpty':!0x0,'pivotTableConfig':{..._0x5112a7,'fieldsConfig':_0x62f88e[_0x3dcb1a(0x117)]()},'changesets':_0x33df00};}break;case _0x2dff37[_0x3dcb1a(0x3bc)]:{const _0x76274f=_0x1dc62a['params']['addPivotTableWithConfig'];if(!_0x76274f)return;const _0x30c096=_0x76274f['sourceRangeInfo'],_0x53a9c1=_0x76274f['pivotTableId'],{collection:_0x511835}=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x252)]({'unitId':_0x30c096['unitId'],'sheetName':_0x30c096[_0x3dcb1a(0x1db)],'subUnitId':_0x30c096[_0x3dcb1a(0x277)],'range':_0x30c096[_0x3dcb1a(0x145)]}),_0x3b00e5=new _0x1978cb[(_0x3dcb1a(0x28e))](_0x511835,void 0x0,_0x53a9c1),_0x2b8b60=_0x511835[_0x3dcb1a(0x31b)](),{rows:_0x19c0d6,columns:_0x355ab4,filters:_0x38ecbc,values:_0x17db32}=_0x76274f[_0x3dcb1a(0x135)];_0x3b00e5[_0x3dcb1a(0x1a7)]();for(const {field:_0x5a08bc,selectedItems:_0x2399f5}of _0x19c0d6||[]){const _0x34af24=_0x2b8b60[_0x5a08bc];if(_0x34af24){const _0x4e4873=_0x3b00e5[_0x3dcb1a(0x10d)](_0x34af24,_0x1978cb[_0x3dcb1a(0x3be)][_0x3dcb1a(0x3b9)]);_0x2399f5&&_0x4e4873&&_0x3b00e5[_0x3dcb1a(0x1e4)](_0x4e4873[_0x3dcb1a(0x1ed)](),{'type':_0x1978cb[_0x3dcb1a(0x215)]['ManualFilter'],'list':_0x2399f5,'isAll':!0x1});}}for(const {field:_0x23c63e,selectedItems:_0x48a8bc}of _0x355ab4||[]){const _0xfcf7ab=_0x2b8b60[_0x23c63e];if(_0xfcf7ab){const _0x88c63f=_0x3b00e5['addFieldWithSourceId'](_0xfcf7ab,_0x1978cb['PivotTableFiledAreaEnum'][_0x3dcb1a(0x3f0)]);_0x48a8bc&&_0x88c63f&&_0x3b00e5[_0x3dcb1a(0x1e4)](_0x88c63f[_0x3dcb1a(0x1ed)](),{'type':_0x1978cb[_0x3dcb1a(0x215)][_0x3dcb1a(0x378)],'list':_0x48a8bc,'isAll':!0x1});}}for(const {field:_0xc6312d,selectedItems:_0x33cf08}of _0x38ecbc||[]){const _0x2dca80=_0x2b8b60[_0xc6312d];if(_0x2dca80){const _0x495983=_0x3b00e5[_0x3dcb1a(0x10d)](_0x2dca80,_0x1978cb['PivotTableFiledAreaEnum'][_0x3dcb1a(0x341)]);_0x33cf08&&_0x495983&&_0x3b00e5['setLabelFilterInfo'](_0x495983['getId'](),{'type':_0x1978cb[_0x3dcb1a(0x215)][_0x3dcb1a(0x378)],'list':_0x33cf08,'isAll':!0x1});}}for(const {field:_0x481fa1,subTotalType:_0x21a796,formatString:_0x2a3bf2}of _0x17db32||[]){const _0x59e048=_0x511835[_0x3dcb1a(0x17d)](_0x2b8b60[_0x481fa1]);if(!_0x59e048)continue;const _0x17ccb6=_0x2b8b60[_0x481fa1];if(_0x17ccb6){const _0x4991ab=_0x3b00e5['addFieldWithSourceId'](_0x17ccb6,_0x1978cb[_0x3dcb1a(0x3be)]['Value']);if(_0x4991ab){if(_0x21a796!==void 0x0){_0x3b00e5[_0x3dcb1a(0x19c)](_0x4991ab[_0x3dcb1a(0x1ed)](),_0x21a796);const _0x28103b=this[_0x3dcb1a(0x2b2)][_0x3dcb1a(0x351)](_0x30c096[_0x3dcb1a(0x27e)])['getAutoDisplayNameFunction']()||_0x1978cb[_0x3dcb1a(0x2ab)],_0x984c15=_0x511835[_0x3dcb1a(0x186)](_0x17ccb6),_0x478ece=_0x28103b(_0x984c15,_0x21a796);_0x3b00e5[_0x3dcb1a(0x326)](_0x4991ab['getId'](),_0x478ece);}else{if(_0x59e048){const _0x1901d7=_0x59e048==null?void 0x0:_0x59e048[_0x3dcb1a(0x222)]();_0x3b00e5[_0x3dcb1a(0x19c)](_0x4991ab['getId'](),_0x1901d7===_0x1978cb[_0x3dcb1a(0x110)][_0x3dcb1a(0x3d3)]?_0x1978cb[_0x3dcb1a(0x33e)][_0x3dcb1a(0x242)]:_0x1978cb[_0x3dcb1a(0x33e)][_0x3dcb1a(0x165)]);}}_0x2a3bf2&&_0x3b00e5[_0x3dcb1a(0x2d0)](_0x4991ab[_0x3dcb1a(0x1ed)](),_0x2a3bf2);}}}const _0x5e5f4b=_0x3b00e5[_0x3dcb1a(0x393)](),_0x2e041a=_0x3b00e5[_0x3dcb1a(0x117)](),_0x49593c=_0x3b00e5[_0x3dcb1a(0x36b)](),_0x454c9f=_0x3b00e5[_0x3dcb1a(0x159)](),_0x1a3a63=_0x511835[_0x3dcb1a(0x117)]();_0x2c9778[_0x3dcb1a(0x127)]={'view':_0x5e5f4b,'fieldsConfig':_0x2e041a,'collectionConfig':_0x1a3a63,'isEmpty':_0x49593c,'changesets':_0x454c9f};}break;case _0x2dff37[_0x3dcb1a(0x11c)]:{const _0x4a855b=_0x2edfac(this['_injector'],_0x1dc62a);if(!_0x4a855b)return;const {range:_0x22b070,sourceSubUnitId:_0x3fabf8,sourceUnitId:_0x385bf2,formatMap:_0x306cda,indexes:_0x888024}=_0x4a855b;_0x2c9778[_0x3dcb1a(0x16f)]={'range':_0x22b070,'sourceSubUnitId':_0x3fabf8,'sourceUnitId':_0x385bf2,'formatMap':_0x306cda,'indexes':_0x888024};}break;}this[_0x3dcb1a(0x107)][_0x3dcb1a(0xfd)](_0x42f08c['id'],{'version':_0x1dc62a[_0x3dcb1a(0x3da)],'result':_0x2c9778},{'onlyLocal':!0x0});}));}[_0x952e9f(0x2e6)](){const _0x169e33=_0x952e9f;this[_0x169e33(0x2fa)](this[_0x169e33(0x107)][_0x169e33(0x260)](_0x94f9ec=>{const _0x303c9c=_0x169e33;if(_0x94f9ec['id']!==_0x4e58e8['id'])return;const _0x5a22de=_0x94f9ec[_0x303c9c(0x35e)];return this[_0x303c9c(0x2b2)][_0x303c9c(0x2d5)](_0x5a22de[_0x303c9c(0x31a)]),!0x0;}));}['_subjectCollectionChange'](){const _0x322b5f=_0x952e9f;this['_sheetsPivotDataSourceModel'][_0x322b5f(0x3f3)][_0x322b5f(0x15e)](_0x1039e5=>{const _0x5dec8c=_0x322b5f;switch(_0x1039e5[_0x5dec8c(0x2e2)]){case _0x2c797b['add']:_0x1039e5[_0x5dec8c(0x157)]&&_0x1039e5['targetCellInfo']&&this[_0x5dec8c(0x290)](_0x1039e5[_0x5dec8c(0xde)],_0x1039e5[_0x5dec8c(0x157)],_0x1039e5[_0x5dec8c(0x354)]);break;case _0x2c797b[_0x5dec8c(0x366)]:{const {unitId:_0x25bab8,subUnitId:_0x85cf12,token:_0x49dc}=_0x1039e5;_0x25bab8&&_0x85cf12&&_0x49dc&&this[_0x5dec8c(0x3b8)](_0x25bab8,_0x85cf12,_0x49dc);}break;case _0x2c797b['update']:{const {token:_0xac54bd,oldSourceRangeInfo:_0x45c876,dataRangeInfo:_0x15df10,targetCellInfo:_0xbb4bf9}=_0x1039e5,{unitId:_0x2906a6,subUnitId:_0x44ad0f}=_0x45c876||{};_0x2906a6&&_0x44ad0f&&_0xac54bd&&this[_0x5dec8c(0x3b8)](_0x2906a6,_0x44ad0f,_0xac54bd),_0x15df10&&_0xbb4bf9&&this[_0x5dec8c(0x290)](_0xac54bd,_0x15df10,_0xbb4bf9);}break;}});}[_0x952e9f(0x142)](){const _0x4c8de0=_0x952e9f;this[_0x4c8de0(0x2b2)][_0x4c8de0(0x3f7)][_0x4c8de0(0x15e)](_0x3ef23f=>{const _0x5d4a37=_0x4c8de0;Object[_0x5d4a37(0x111)](_0x3ef23f)[_0x5d4a37(0x1fb)](_0x495b31=>{const _0x193aa8=_0x5d4a37,_0x33b364=this['_sheetsPivotDataSourceModel']['getTargetByPivotId'](_0x495b31);if(_0x33b364){const _0x2c8e0d=this[_0x193aa8(0x2b2)][_0x193aa8(0x405)](_0x33b364==null?void 0x0:_0x33b364['unitId'],_0x33b364==null?void 0x0:_0x33b364[_0x193aa8(0x277)],_0x495b31);_0x2c8e0d&&(this[_0x193aa8(0x290)](_0x495b31,_0x2c8e0d[_0x193aa8(0x3a8)],_0x2c8e0d[_0x193aa8(0x354)]),this['triggerDirtyFeature']([{'unitId':_0x33b364[_0x193aa8(0x27e)],'subUnitId':_0x33b364['subUnitId'],'token':_0x495b31}]));}});});}[_0x952e9f(0xf3)](){const _0x5430b2=_0x952e9f;this['_sheetsPivotDataSourceModel'][_0x5430b2(0x2ff)][_0x5430b2(0x15e)](_0x2ddafa=>{const _0x404809=_0x5430b2,{unitId:_0x4ed6f2,subUnitId:_0x28f866,pivotTableId:_0x3b5cd3}=_0x2ddafa;_0x4ed6f2&&_0x28f866&&_0x3b5cd3&&this[_0x404809(0x32b)]([{'unitId':_0x4ed6f2,'subUnitId':_0x28f866,'token':_0x3b5cd3}]);});}[_0x952e9f(0x32b)](_0x3acea1){const _0x2ec5e3=_0x952e9f,_0x5bd6c6={};_0x3acea1[_0x2ec5e3(0x1fb)](_0x24a683=>{var _0x2ee2a6,_0x216bbd;const {unitId:_0x112f40,subUnitId:_0x16efaf,token:_0x4980ed}=_0x24a683;_0x5bd6c6[_0x112f40]=(_0x2ee2a6=_0x5bd6c6[_0x112f40])!=null?_0x2ee2a6:{},_0x5bd6c6[_0x112f40][_0x16efaf]=(_0x216bbd=_0x5bd6c6[_0x112f40][_0x16efaf])!=null?_0x216bbd:{},_0x5bd6c6[_0x112f40][_0x16efaf][_0x4980ed]=!0x0;}),this[_0x2ec5e3(0x107)][_0x2ec5e3(0xfd)](_0x4c380b['id'],_0x5bd6c6);}[_0x952e9f(0x3b8)](_0x17e08f,_0x401f42,_0xe4547d){const _0x8a629b=_0x952e9f;this[_0x8a629b(0x33f)][_0x8a629b(0x2a3)](_0x17e08f,_0x401f42,[_0xe4547d]);}[_0x952e9f(0x290)](_0x50b4f8,_0x22a522,_0x5ed15b){const _0x3d8ab9=_0x952e9f,{unitId:_0x1f4133,subUnitId:_0x4f018f}=_0x22a522;this[_0x3d8ab9(0x33f)][_0x3d8ab9(0x2cc)](_0x5ed15b[_0x3d8ab9(0x27e)],_0x5ed15b[_0x3d8ab9(0x277)],_0x50b4f8)&&this[_0x3d8ab9(0x3b8)](_0x1f4133,_0x4f018f,_0x50b4f8);const _0x5ed863={'sheetId':_0x4f018f,..._0x22a522};this[_0x3d8ab9(0x33f)][_0x3d8ab9(0x2ea)](_0x5ed15b['unitId'],_0x5ed15b['subUnitId'],_0x50b4f8,{'unitId':_0x5ed15b[_0x3d8ab9(0x27e)],'subUnitId':_0x5ed15b['subUnitId'],'dependencyRanges':[_0x5ed863],'getDirtyData':(_0xa48ff9,_0x21fec3)=>{const _0x10381c=_0x3d8ab9,_0x16d024=this['_sheetsPivotDataSourceModel'],_0x1c9032=_0x16d024['getTargetByPivotId'](_0x50b4f8);if(!_0x1c9032)return _0x5b8854();const {unitId:_0x4bd2bd,subUnitId:_0x38d7be}=_0x1c9032,_0x2b5a99=_0x3e6df8(_0xa48ff9,_0x21fec3,_0x22a522);if(_0x2b5a99[_0x10381c(0x278)]>0x0){const _0x212b25=_0x16d024[_0x10381c(0x3b3)](_0x1f4133,_0x50b4f8),_0x50b58b=_0x212b25[_0x10381c(0x31b)](),_0xd0edfc=this[_0x10381c(0x2a9)](_0x22a522[_0x10381c(0x27e)],_0x22a522[_0x10381c(0x277)],_0x21fec3),_0x51062d={},_0x458ff4=this[_0x10381c(0x2b2)]['getDataFieldManager'](_0x4bd2bd)['getAutoDisplayNameFunction']()||_0x1978cb[_0x10381c(0x2ab)],_0x33b969=[];for(const _0x5728bc of _0x2b5a99){const _0x1efa9c=_0x5728bc-(_0x22a522[_0x10381c(0x145)][_0x10381c(0x3a9)]||0x0),_0x5dfe45=_0x50b58b[_0x1efa9c];_0x33b969[_0x10381c(0x2b7)](_0x5dfe45),_0x51062d[_0x5dfe45]=_0x212b25[_0x10381c(0x17d)](_0x5dfe45)['getName'](),_0x16d024['getDataFieldManager'](_0x1f4133)['refreshDataField'](_0x5dfe45,_0x22a522,_0x1efa9c,_0xd0edfc);}_0x212b25[_0x10381c(0x143)](_0x33b969)[_0x10381c(0x1fb)](_0x576969=>{const _0x4ea0e3=_0x10381c,[_0xf123ab,_0xbe5e47]=_0x576969,_0x316891=_0x212b25[_0x4ea0e3(0x17d)](_0xf123ab),_0x5cf7ae=_0x212b25[_0x4ea0e3(0x17d)](_0xbe5e47);_0x316891&&_0x5cf7ae&&_0x316891[_0x4ea0e3(0x2f1)](_0x5cf7ae);}),_0x212b25['updateAllDisplayName']();const _0x54256b=_0x16d024[_0x10381c(0x123)](_0x50b4f8);if(_0x54256b){_0x504c93(_0x54256b,_0x51062d,_0x458ff4),_0x54256b['setDirty'](!0x0);const _0x2aeaff=_0x54256b[_0x10381c(0x393)](),_0x3a5f38=_0x16d024['getPivotTableConfig'](_0x4bd2bd,_0x38d7be,_0x50b4f8),_0x5b499d=_0x16d024[_0x10381c(0x351)](_0x1f4133)[_0x10381c(0x117)]();_0x16d024[_0x10381c(0x39a)](_0x4bd2bd,_0x38d7be,_0x5cfd72[_0x10381c(0x15c)],_0x50b4f8,_0x2aeaff,_0x3a5f38,_0x5b499d,!0x0);}}return this[_0x10381c(0x359)](_0x4bd2bd,_0x38d7be,_0x50b4f8);}});}[_0x952e9f(0x2a9)](_0x69a168,_0x273a7a,_0x29f7b6){var _0x81ba25,_0x173bf5;const {arrayFormulaCellData:_0x17134a,unitData:_0x4ed3d3}=_0x29f7b6,_0x46f5f9=(_0x81ba25=_0x17134a==null?void 0x0:_0x17134a[_0x69a168])==null?void 0x0:_0x81ba25[_0x273a7a],_0x1e3544=(_0x173bf5=_0x4ed3d3==null?void 0x0:_0x4ed3d3[_0x69a168])==null?void 0x0:_0x173bf5[_0x273a7a];return{'arrayFormulaCellDataMatrix':_0x46f5f9,'unitDataMatrix':_0x1e3544};}[_0x952e9f(0x359)](_0x56b6fd,_0xd4264c,_0x495dc2){const _0x94ed60=_0x952e9f,_0x4f04a3=this['_sheetsPivotDataSourceModel']['getViewData'](_0x56b6fd,_0xd4264c,_0x495dc2),_0x55a372=[],_0x27fbad=new _0x71e749[(_0x94ed60(0x3f8))]();if(_0x4f04a3){const {rangeCache:_0x49baeb,matrix:_0x290784,oldRangeCache:_0x454a9d,oldMatrix:_0x4d08fc}=_0x4f04a3,_0xa7a519=_0x3e9c2e(_0x454a9d),_0x1d8b79=_0x3e9c2e(_0x49baeb);_0x55a372[_0x94ed60(0x2b7)](..._0x1d8b79,..._0xa7a519),_0x4d08fc&&_0x454a9d&&_0xa7a519[_0x94ed60(0x1fb)](_0x56563f=>{const _0x5057a9=_0x94ed60;for(let _0x4eaf7c=_0x56563f[_0x5057a9(0x2fd)];_0x4eaf7c<=_0x56563f['endRow'];_0x4eaf7c++)for(let _0x12fb12=_0x56563f[_0x5057a9(0x3a9)];_0x12fb12<=_0x56563f[_0x5057a9(0x317)];_0x12fb12++)_0x27fbad[_0x5057a9(0x272)](_0x4eaf7c,_0x12fb12);}),_0x290784&&_0x1d8b79&&_0x1d8b79['forEach'](_0x6d1ba1=>{const _0x2b62e6=_0x94ed60;for(let _0x111963=_0x6d1ba1['startRow'];_0x111963<=_0x6d1ba1[_0x2b62e6(0x22a)];_0x111963++)for(let _0x61bf79=_0x6d1ba1['startColumn'];_0x61bf79<=_0x6d1ba1['endColumn'];_0x61bf79++)_0x27fbad[_0x2b62e6(0x183)](_0x111963,_0x61bf79,_0x290784[_0x2b62e6(0x3ea)](_0x111963,_0x61bf79));});}const _0x4a6a9a={};return _0x4a6a9a[_0x56b6fd]={[_0xd4264c]:_0x3dd879(_0x55a372)},{'runtimeCellData':{[_0x56b6fd]:{[_0xd4264c]:_0x27fbad}},'dirtyRanges':_0x4a6a9a};}['dispose'](){}};_0x11d712=_0x4db938([_0x348f0e(0x0,_0x71e749[_0x952e9f(0x3f5)](_0x3e9a4b[_0x952e9f(0x386)])),_0x348f0e(0x1,_0x71e749[_0x952e9f(0x225)]),_0x348f0e(0x2,_0x71e749[_0x952e9f(0x3f5)](_0x19b6b3[_0x952e9f(0x128)])),_0x348f0e(0x3,_0x71e749['Inject'](_0x71e749[_0x952e9f(0x1ec)])),_0x348f0e(0x4,_0x71e749[_0x952e9f(0x3f5)](_0x19b6b3[_0x952e9f(0x265)])),_0x348f0e(0x5,_0x71e749['Inject'](_0x71e749[_0x952e9f(0x297)]))],_0x11d712);var _0x15f854=Object['getOwnPropertyDescriptor'],_0x2e0ce1=(_0x1f0b55,_0x1f1ff3,_0x55e8b6,_0x1bf45e)=>{for(var _0x129d9a=_0x1bf45e>0x1?void 0x0:_0x1bf45e?_0x15f854(_0x1f1ff3,_0x55e8b6):_0x1f1ff3,_0x44e614=_0x1f0b55['length']-0x1,_0x1735bb;_0x44e614>=0x0;_0x44e614--)(_0x1735bb=_0x1f0b55[_0x44e614])&&(_0x129d9a=_0x1735bb(_0x129d9a)||_0x129d9a);return _0x129d9a;},_0x4aff24=(_0xe289d5,_0x2e44d2)=>(_0xcaaee9,_0x5b7880)=>_0x2e44d2(_0xcaaee9,_0x5b7880,_0xe289d5);let _0x3f4d61=class extends _0x71e749[_0x952e9f(0x1bf)]{constructor(_0x5647bb,_0xbcfe50,_0x193d4c,_0x34adcd){const _0x597584=_0x952e9f;super(),_0x59bac0(this,_0x597584(0x33c),new _0x71e749[(_0x597584(0x250))]()),(this[_0x597584(0x2ba)]=_0x5647bb,this[_0x597584(0x158)]=_0xbcfe50,this[_0x597584(0x221)]=_0x193d4c,this['_sheetsPivotTableConfigModel']=_0x34adcd,this[_0x597584(0x370)]());}[_0x952e9f(0x370)](){const _0x1cfb20=_0x952e9f;this[_0x1cfb20(0x2fa)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0xdaa438=>{const _0x1f59ab=_0x1cfb20;if(_0xdaa438['id']===_0x2a18e2['ClearSelectionContentCommand']['id']||_0xdaa438['id']===_0x2a18e2[_0x1f59ab(0x37e)]['id']){const _0x4163da=[],_0x4f1a25=[],_0x19669d=this[_0x1f59ab(0x221)][_0x1f59ab(0x18c)]()['map'](_0x4965c5=>_0x4965c5[_0x1f59ab(0x145)]),_0x4ccac5=_0x2a18e2['getSheetCommandTarget'](this[_0x1f59ab(0x2ba)]);if(!_0x4ccac5)return{'redos':[],'undos':[]};const {unitId:_0x3db418,subUnitId:_0x303ed0}=_0x4ccac5,_0x2fe04d={},_0x3dcca9=this[_0x1f59ab(0x321)][_0x1f59ab(0x329)](_0x3db418,_0x303ed0);if(_0x3dcca9!=null&&_0x3dcca9['size'])for(const [_0x404cbe,_0x13c570]of _0x3dcca9){const {unitId:_0x4b59d9,subUnitId:_0x1c22ec,row:_0x14d6bc,col:_0x1c3b12}=_0x13c570[_0x1f59ab(0x354)];_0x4b59d9===_0x4ccac5[_0x1f59ab(0x27e)]&&_0x1c22ec===_0x4ccac5[_0x1f59ab(0x277)]&&(_0x2fe04d[_0x14d6bc+'-'+_0x1c3b12]=_0x404cbe);}return _0x19669d&&_0x4ccac5&&_0x19669d[_0x1f59ab(0x1fb)](_0xd1b975=>{const _0xe4657d=_0x1f59ab;_0x71e749[_0xe4657d(0x20d)][_0xe4657d(0x244)](_0xd1b975,(_0x204725,_0x412b3d)=>{const _0x33b70f=_0xe4657d,_0x4a9bba=_0x204725+'-'+_0x412b3d;if(_0x2fe04d[_0x4a9bba]){const _0x1cbe16=_0x2fe04d[_0x4a9bba];_0x4163da[_0x33b70f(0x2b7)]({'id':_0x5f2bbe['id'],'params':{'unitId':_0x3db418,'subUnitId':_0x303ed0,'pivotTableId':_0x1cbe16}});const _0x1fc68d=this['_sheetsPivotTableConfigModel'][_0x33b70f(0x3b3)](_0x3db418,_0x1cbe16),_0x512893=this['_sheetsPivotTableConfigModel'][_0x33b70f(0x405)](_0x3db418,_0x303ed0,_0x1cbe16);_0x4f1a25[_0x33b70f(0x2b7)]({'id':_0x191981['id'],'params':{'unitId':_0x3db418,'subUnitId':_0x303ed0,'pivotTableId':_0x1cbe16,'pivotTableConfig':_0x512893,'collectionConfig':_0x1fc68d}});}});}),{'redos':_0x4163da,'undos':_0x4f1a25};}return{'redos':[],'undos':[]};}}));}};_0x3f4d61=_0x2e0ce1([_0x4aff24(0x0,_0x71e749[_0x952e9f(0x168)]),_0x4aff24(0x1,_0x71e749[_0x952e9f(0x3f5)](_0x2a18e2['SheetInterceptorService'])),_0x4aff24(0x2,_0x71e749[_0x952e9f(0x3f5)](_0x2a18e2[_0x952e9f(0x363)])),_0x4aff24(0x3,_0x71e749[_0x952e9f(0x3f5)](_0x3e9a4b[_0x952e9f(0x299)]))],_0x3f4d61);var _0x2602c1=Object[_0x952e9f(0x169)],_0x448322=(_0x1089b8,_0x11d7a5,_0x5f4bca,_0x2bbbd8)=>{const _0x3da84c=_0x952e9f;for(var _0x549824=_0x2bbbd8>0x1?void 0x0:_0x2bbbd8?_0x2602c1(_0x11d7a5,_0x5f4bca):_0x11d7a5,_0x20f184=_0x1089b8[_0x3da84c(0x278)]-0x1,_0x91ad50;_0x20f184>=0x0;_0x20f184--)(_0x91ad50=_0x1089b8[_0x20f184])&&(_0x549824=_0x91ad50(_0x549824)||_0x549824);return _0x549824;},_0x5bb5c9=(_0x385b29,_0x3ca6ab)=>(_0x14fe22,_0x39132d)=>_0x3ca6ab(_0x14fe22,_0x39132d,_0x385b29);let _0x2215fd=class extends _0x71e749['Disposable']{constructor(_0x286584,_0x52df37,_0x4afcdd,_0x239322,_0x43a10d,_0x129338){const _0x4ac03b=_0x952e9f;super(),this[_0x4ac03b(0x402)]=_0x286584,this[_0x4ac03b(0x158)]=_0x52df37,this[_0x4ac03b(0x170)]=_0x4afcdd,this['_univerInstanceService']=_0x239322,this[_0x4ac03b(0x321)]=_0x43a10d,this['_sheetsPivotTableService']=_0x129338,this['_initCommandInterceptListener']();}[_0x952e9f(0x373)](_0x677b1d,_0x52d18c,_0x2fe5de){const _0x16e251=_0x952e9f,{pageView:_0x48d36a,cornerView:_0x2247e1,rowView:_0x4f3347,colView:_0xdfc434,dataView:_0x279e9b}=_0x52d18c,_0x3fea74=_0x677b1d;let _0x7a9dda;if(_0x2fe5de)_0x7a9dda=[..._0x1d490c(_0x3fea74)];else{const _0x11917c=_0x3f4101(_0x3fea74,_0x48d36a,!0x0),_0x38faa4=_0x48d36a['lastRow']>=0x0?_0x48d36a[_0x16e251(0x337)]+0x1:0x0,_0x47e26f=_0x2247e1[_0x16e251(0x35d)],_0x19b573=_0x2247e1[_0x16e251(0x379)],_0x1e8014=_0x11917c[_0x16e251(0x278)]>0x0?_0x18e791:0x0,_0x3da6bf=_0x3f4101({'row':_0x3fea74[_0x16e251(0x2f4)]+_0x38faa4+_0x1e8014,'col':_0x3fea74[_0x16e251(0x320)]},_0x2247e1,!0x1,!0x1),_0xdf3c76=_0x3f4101({'row':_0x3fea74['row']+_0x38faa4+_0x1e8014+_0x47e26f,'col':_0x3fea74[_0x16e251(0x320)]},_0x4f3347,!0x1,!0x0),_0x20241b=_0x3f4101({'row':_0x3fea74['row']+_0x38faa4+_0x1e8014,'col':_0x3fea74[_0x16e251(0x320)]+_0x19b573},_0xdfc434,!0x1,!0x0),_0x578c32=_0x3f4101({'row':_0x3fea74[_0x16e251(0x2f4)]+_0x38faa4+_0x1e8014+_0x47e26f,'col':_0x3fea74['col']+_0x19b573},_0x279e9b,!0x1,!0x0);_0x7a9dda=[..._0x11917c,..._0x3da6bf,..._0xdf3c76,..._0x20241b,..._0x578c32];}return _0x7a9dda;}[_0x952e9f(0x3f1)](){const _0x38534d=_0x952e9f;this[_0x38534d(0x2fa)](this[_0x38534d(0x18e)][_0x38534d(0x121)]['intercept'](this[_0x38534d(0x18e)]['interceptor'][_0x38534d(0x112)]()[_0x38534d(0x3e5)],{'handler':(_0x1367a5,_0x5f1bca)=>{const _0x3a454a=_0x38534d,{cellInfo:_0x274c73,view:_0x1c0c57,isEmpty:_0x476d00}=_0x5f1bca,_0x16c126=_0x274c73,{unitId:_0x25d3b7,subUnitId:_0x10faaf}=_0x16c126,_0x387bb0=this['_getPivotAppliedRanges'](_0x274c73,_0x1c0c57,_0x476d00),_0x3008a4=this[_0x3a454a(0x158)][_0x3a454a(0x31c)]({'unitId':_0x25d3b7,'subUnitId':_0x10faaf,'ranges':_0x387bb0}),_0x157db7=_0x1ebc46(this['_injector'],_0x25d3b7,_0x10faaf,_0x387bb0);_0x157db7[_0x3a454a(0x2f5)]&&(_0x3008a4[_0x3a454a(0x1ae)][_0x3a454a(0x2b7)](_0x157db7[_0x3a454a(0x199)]),_0x3008a4[_0x3a454a(0x233)][_0x3a454a(0x2b7)](_0x157db7['setRangeValueUndoMutation']));const _0x1d2a0f=this[_0x3a454a(0x119)](_0x1c0c57,_0x274c73);return _0x3008a4['redos'][_0x3a454a(0x2b7)](..._0x1d2a0f[_0x3a454a(0x1ae)]),_0x3008a4['undos'][_0x3a454a(0x2b7)](..._0x1d2a0f[_0x3a454a(0x233)]),{'redos':_0x3008a4[_0x3a454a(0x1ae)],'undos':_0x3008a4[_0x3a454a(0x233)]};}}));}[_0x952e9f(0x119)](_0x4b04b5,_0x403efe){const _0x1e7079=_0x952e9f,{col:_0x27f64a,unitId:_0x2e9812,subUnitId:_0xc7eb3}=_0x403efe,_0x4dab03=[],_0x1c3416=[],_0x48e671=_0x2a18e2[_0x1e7079(0x1cf)](this['_univerInstanceService'],{'unitId':_0x2e9812,'subUnitId':_0xc7eb3});if(!_0x403efe||!_0x4b04b5||!_0x48e671)return{'undos':_0x1c3416,'redos':_0x4dab03};const _0x4f71b8=this[_0x1e7079(0x321)][_0x1e7079(0x2a1)](),{colView:_0x282ad1,dataView:_0x265ec0,cornerView:_0x47db01,rowView:_0x2cb7b5,formatMap:_0x209648}=_0x4b04b5,_0x48205f=_0x357a7b(_0x282ad1,_0x4f71b8,!0x0,_0x209648),_0x509e0d=_0x357a7b(_0x2cb7b5,_0x4f71b8,!0x1,_0x209648),_0x2801b6=_0x2a7639(_0x265ec0),_0x102a2d=_0x2d2182(_0x47db01),{worksheet:_0x50db6f}=_0x48e671;if(typeof window<'u'&&window[_0x1e7079(0x227)]){const _0x4fa8c3=_0x30b91d[_0x1e7079(0x1f0)]({..._0x4f9185[_0x1e7079(0x1dc)]}),_0x2741de=_0x30b91d[_0x1e7079(0x37a)][_0x1e7079(0x3a3)](_0x48205f,_0x4fa8c3)['width']+0x10,_0x3395e5=_0x30b91d[_0x1e7079(0x37a)][_0x1e7079(0x3a3)](_0x2801b6,_0x4fa8c3)[_0x1e7079(0x1a2)],_0xdae887=Math['floor'](Math[_0x1e7079(0x368)](_0x2741de,_0x3395e5))+0x10,_0x473308=Math['floor'](_0x30b91d['FontCache'][_0x1e7079(0x3a3)](_0x509e0d,_0x4fa8c3)[_0x1e7079(0x1a2)]),_0x2a6d77=Math['floor'](_0x30b91d[_0x1e7079(0x37a)][_0x1e7079(0x3a3)](_0x102a2d,_0x4fa8c3)[_0x1e7079(0x1a2)]),_0x532ad0=Math['max'](_0x473308,_0x2a6d77,0x28)+0xc,_0x314a11=_0x282ad1['colCount']+_0x47db01[_0x1e7079(0x379)],_0x9db234={},_0x204489={};for(let _0x2e16ff=_0x27f64a;_0x2e16ff<_0x27f64a+_0x314a11;_0x2e16ff++){const _0x1dcbd2=_0x50db6f['getColumnWidth'](_0x2e16ff);_0x9db234[_0x2e16ff]=_0x1dcbd2,_0x2e16ff-_0x27f64a<_0x47db01[_0x1e7079(0x379)]?_0x204489[_0x2e16ff-_0x27f64a]=_0x532ad0:_0x204489[_0x2e16ff-_0x27f64a]=_0xdae887;}_0x4dab03['push']({'id':_0x2a18e2[_0x1e7079(0x309)]['id'],'params':{'subUnitId':_0xc7eb3,'unitId':_0x2e9812,'ranges':[{'startColumn':_0x27f64a,'endColumn':_0x27f64a+_0x314a11-0x1,'startRow':0x0,'endRow':_0x50db6f['getRowCount']()-0x1}],'colWidth':_0x204489}}),_0x1c3416[_0x1e7079(0x2b7)]({'id':_0x2a18e2[_0x1e7079(0x309)]['id'],'params':{'subUnitId':_0xc7eb3,'unitId':_0x2e9812,'ranges':[{'startColumn':_0x27f64a,'endColumn':_0x27f64a+_0x314a11-0x1,'startRow':0x0,'endRow':_0x50db6f['getRowCount']()-0x1}],'colWidth':_0x9db234}});}return{'undos':_0x1c3416,'redos':_0x4dab03};}};_0x2215fd=_0x448322([_0x5bb5c9(0x0,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x364)])),_0x5bb5c9(0x1,_0x71e749['Inject'](_0x2a18e2['SheetInterceptorService'])),_0x5bb5c9(0x2,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x297)])),_0x5bb5c9(0x3,_0x71e749['Inject'](_0x71e749['IUniverInstanceService'])),_0x5bb5c9(0x4,_0x71e749[_0x952e9f(0x3f5)](_0x3e9a4b[_0x952e9f(0x299)])),_0x5bb5c9(0x5,_0x71e749['Inject'](_0x3e9a4b[_0x952e9f(0x257)]))],_0x2215fd);var _0x1a99b8=Object[_0x952e9f(0x169)],_0x2945ad=(_0xbc681b,_0xdb38ee,_0x2279fc,_0x3521cb)=>{const _0x4fa7d9=_0x952e9f;for(var _0x28dc41=_0x3521cb>0x1?void 0x0:_0x3521cb?_0x1a99b8(_0xdb38ee,_0x2279fc):_0xdb38ee,_0x5b2a5c=_0xbc681b[_0x4fa7d9(0x278)]-0x1,_0x444bd1;_0x5b2a5c>=0x0;_0x5b2a5c--)(_0x444bd1=_0xbc681b[_0x5b2a5c])&&(_0x28dc41=_0x444bd1(_0x28dc41)||_0x28dc41);return _0x28dc41;},_0x29d1b4=(_0x2e8a84,_0x3601ae)=>(_0x22416f,_0x5d3f97)=>_0x3601ae(_0x22416f,_0x5d3f97,_0x2e8a84);let _0x4cd8ef=class extends _0x71e749[_0x952e9f(0x1bf)]{constructor(_0x1f25a6,_0x3db35f,_0x5610ac,_0x154009,_0x2b36e4,_0xb465f7,_0x227b5b){const _0x1c4e4c=_0x952e9f;super(),_0x59bac0(this,'disposableCollection',new _0x71e749[(_0x1c4e4c(0x250))]()),(this['_injector']=_0x1f25a6,this['_refRangeService']=_0x3db35f,this[_0x1c4e4c(0x107)]=_0x5610ac,this[_0x1c4e4c(0x2ba)]=_0x154009,this[_0x1c4e4c(0x321)]=_0x2b36e4,this[_0x1c4e4c(0x3ad)]=_0xb465f7,this['_sheetInterceptorService']=_0x227b5b,this['_onRefRangeChange']());}['_onRefRangeChange'](){const _0xe3321c=_0x952e9f,_0x2b4466=(_0x46a861,_0x2cfb8a)=>{const _0x368d4c=_0x2e3d,_0x58c59f=this[_0x368d4c(0x2ba)]['getCurrentUnitForType'](_0x71e749[_0x368d4c(0x21f)][_0x368d4c(0xfe)]);if(!_0x58c59f||!(_0x58c59f==null?void 0x0:_0x58c59f[_0x368d4c(0x216)](_0x2cfb8a)))return;this[_0x368d4c(0x33c)][_0x368d4c(0x3e3)]();const _0x104aa2=_0x40163a=>this[_0x368d4c(0x19b)](_0x40163a,_0x46a861,_0x2cfb8a),_0x15ea8c=this['_sheetsPivotTableConfigModel'][_0x368d4c(0x329)](_0x46a861,_0x2cfb8a);if(!(_0x15ea8c!=null&&_0x15ea8c[_0x368d4c(0x303)]))return;Array[_0x368d4c(0x12f)](_0x15ea8c[_0x368d4c(0xed)]())[_0x368d4c(0x2c3)](_0x3bd6bc=>{const _0xaf2f1d=_0x368d4c,{row:_0x3e632d,col:_0x2c319c}=_0x3bd6bc[_0xaf2f1d(0x354)];return _0x71e749[_0xaf2f1d(0x1a0)](_0x3e632d,_0x2c319c);})['forEach'](_0x49881b=>{const _0x611cf6=_0x368d4c;this[_0x611cf6(0x33c)]['add'](this[_0x611cf6(0x188)][_0x611cf6(0x2ae)](_0x49881b,_0x104aa2,_0x46a861,_0x2cfb8a));});},_0x48b458=()=>{const _0x373350=_0x2e3d,_0x596990=this[_0x373350(0x2ba)][_0x373350(0x137)](_0x71e749[_0x373350(0x21f)]['UNIVER_SHEET']);if(_0x596990){const _0xd24d2=_0x596990[_0x373350(0x1dd)]();if(!_0xd24d2)return;_0x2b4466(_0x596990[_0x373350(0x1bb)](),_0xd24d2['getSheetId']());}};this[_0xe3321c(0x2fa)](this[_0xe3321c(0x107)][_0xe3321c(0x260)](_0x487992=>{const _0x4d5c31=_0xe3321c;if(_0x487992['id']===_0x2a18e2[_0x4d5c31(0x1f7)]['id']){const _0x41fddc=_0x487992[_0x4d5c31(0x35e)],_0x51b599=_0x41fddc[_0x4d5c31(0x277)],_0x5b6751=_0x41fddc[_0x4d5c31(0x27e)];if(!_0x51b599||!_0x5b6751)return;_0x2b4466(_0x5b6751,_0x51b599);}})),this[_0xe3321c(0x2fa)](this[_0xe3321c(0x321)][_0xe3321c(0x140)][_0xe3321c(0x15e)](_0x28849a=>{_0x28849a&&_0x48b458();})),this[_0xe3321c(0x2fa)](this[_0xe3321c(0x321)][_0xe3321c(0x2f6)][_0xe3321c(0x15e)](_0x5546a5=>{const _0x5ad711=_0xe3321c,_0x424775=_0x2a18e2[_0x5ad711(0x1cf)](this[_0x5ad711(0x2ba)]);if(!_0x424775)return;const {unitId:_0x2ce0f9,subUnitId:_0x3d658a}=_0x424775,{unitId:_0x4f16eb,subUnitId:_0x50dd75}=_0x5546a5;_0x2ce0f9!==_0x4f16eb||_0x3d658a!==_0x50dd75||_0x2b4466(_0x2ce0f9,_0x3d658a);})),_0x48b458();}['_refRangeHandle'](_0x1956e3,_0x244885,_0x175e70){const _0x100079=_0x952e9f;switch(_0x1956e3['id']){case _0x2a18e2[_0x100079(0x3f9)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x1956e3[_0x100079(0x35e)],_0x244885,_0x175e70);}return{'redos':[],'undos':[]};}['getRefRangeMutationsByMoveRange'](_0x40c13a,_0x359661,_0x1fa093){const _0x1b99f2=_0x952e9f,{fromRange:_0x2af55e,toRange:_0x30d630}=_0x40c13a,_0x5da71f=[],_0x530526=[],_0x242d48=_0x2a18e2[_0x1b99f2(0x1cf)](this['_univerInstanceService']);if(!_0x242d48)return{'undos':_0x530526,'redos':_0x5da71f};if(_0x359661!==_0x242d48[_0x1b99f2(0x27e)]||_0x1fa093!==_0x242d48[_0x1b99f2(0x277)])return{'undos':_0x530526,'redos':_0x5da71f};const _0x321acc=this[_0x1b99f2(0x321)]['getSubUnitPivotConfigs'](_0x359661,_0x1fa093);if(_0x321acc!=null&&_0x321acc[_0x1b99f2(0x303)])for(const [_0x42fd54,_0x3ec5dd]of _0x321acc){const {unitId:_0x24f2ed,subUnitId:_0x47dc85,row:_0x6df331,col:_0x456e43}=_0x3ec5dd[_0x1b99f2(0x354)];if(_0x24f2ed===_0x242d48[_0x1b99f2(0x27e)]&&_0x47dc85===_0x242d48[_0x1b99f2(0x277)]){const _0x52f60a=_0x71e749[_0x1b99f2(0x1a0)](_0x6df331,_0x456e43);if(_0x71e749[_0x1b99f2(0x28b)][_0x1b99f2(0x3d1)](_0x52f60a,_0x2af55e)){const _0x5dba79=_0x6df331-_0x2af55e[_0x1b99f2(0x2fd)],_0x1c7142=_0x456e43-_0x2af55e[_0x1b99f2(0x3a9)],_0x2f87be={'row':_0x30d630[_0x1b99f2(0x2fd)]+_0x5dba79,'col':_0x30d630[_0x1b99f2(0x3a9)]+_0x1c7142};_0x5da71f[_0x1b99f2(0x2b7)]({'id':_0x140124['id'],'params':{'unitId':_0x24f2ed,'subUnitId':_0x47dc85,'pivotTableId':_0x42fd54,'targetCellPosition':_0x2f87be}}),_0x530526[_0x1b99f2(0x2b7)]({'id':_0x140124['id'],'params':{'unitId':_0x24f2ed,'subUnitId':_0x47dc85,'pivotTableId':_0x42fd54,'targetCellPosition':{'row':_0x6df331,'col':_0x456e43}}});const _0x4b20ff=_0x2f87be['row']-_0x6df331,_0x917ae1=_0x2f87be['col']-_0x456e43,_0x22d2b1=[],_0x3a9f20=this['_sheetsPivotTableAdaptorModel']['getPivotItemRenderInfoCache'](_0x24f2ed,_0x47dc85,_0x42fd54),_0x240592=_0x3a9f20==null?void 0x0:_0x3a9f20[_0x1b99f2(0x3ab)];if(_0x240592){Object[_0x1b99f2(0x111)](_0x240592)['forEach'](_0x362880=>{_0x240592[_0x362880]['forEach'](_0x75dc51=>{const _0x4ce6a9=_0x2e3d,_0x15629d={..._0x75dc51};_0x15629d[_0x4ce6a9(0x2fd)]=_0x75dc51[_0x4ce6a9(0x2fd)]+_0x4b20ff,_0x15629d[_0x4ce6a9(0x22a)]=_0x75dc51[_0x4ce6a9(0x22a)]+_0x4b20ff,_0x15629d[_0x4ce6a9(0x3a9)]=_0x75dc51[_0x4ce6a9(0x3a9)]+_0x917ae1,_0x15629d[_0x4ce6a9(0x317)]=_0x75dc51[_0x4ce6a9(0x317)]+_0x917ae1,_0x22d2b1[_0x4ce6a9(0x2b7)](_0x15629d);});});const _0x18579e=this['_sheetInterceptorService']['generateMutationsByRanges']({'unitId':_0x24f2ed,'subUnitId':_0x47dc85,'ranges':_0x22d2b1});_0x5da71f[_0x1b99f2(0x2b7)](..._0x18579e[_0x1b99f2(0x1ae)]),_0x530526[_0x1b99f2(0x2b7)](..._0x18579e['undos']);const _0x1e7ae7=_0x1ebc46(this[_0x1b99f2(0x170)],_0x24f2ed,_0x47dc85,_0x22d2b1);_0x1e7ae7[_0x1b99f2(0x2f5)]&&(_0x5da71f['push'](_0x1e7ae7[_0x1b99f2(0x199)]),_0x530526['push'](_0x1e7ae7[_0x1b99f2(0x180)]));}}}}return{'redos':_0x5da71f,'undos':_0x530526};}};_0x4cd8ef=_0x2945ad([_0x29d1b4(0x0,_0x71e749[_0x952e9f(0x3f5)](_0x71e749['Injector'])),_0x29d1b4(0x1,_0x71e749[_0x952e9f(0x3f5)](_0x2a18e2[_0x952e9f(0x2c2)])),_0x29d1b4(0x2,_0x71e749[_0x952e9f(0x1ec)]),_0x29d1b4(0x3,_0x71e749['IUniverInstanceService']),_0x29d1b4(0x4,_0x71e749[_0x952e9f(0x3f5)](_0x3e9a4b[_0x952e9f(0x299)])),_0x29d1b4(0x5,_0x71e749[_0x952e9f(0x3f5)](_0x3e9a4b[_0x952e9f(0x3de)])),_0x29d1b4(0x6,_0x71e749[_0x952e9f(0x3f5)](_0x2a18e2['SheetInterceptorService']))],_0x4cd8ef);var _0x28247f=Object[_0x952e9f(0x169)],_0x58da42=(_0x2d76f6,_0x46ea56,_0x20035f,_0x2d992c)=>{const _0x22d380=_0x952e9f;for(var _0x5983e7=_0x2d992c>0x1?void 0x0:_0x2d992c?_0x28247f(_0x46ea56,_0x20035f):_0x46ea56,_0x35d76a=_0x2d76f6[_0x22d380(0x278)]-0x1,_0x124a70;_0x35d76a>=0x0;_0x35d76a--)(_0x124a70=_0x2d76f6[_0x35d76a])&&(_0x5983e7=_0x124a70(_0x5983e7)||_0x5983e7);return _0x5983e7;},_0xe16a0a=(_0xea1149,_0x2d4e2c)=>(_0x5d9884,_0x3aee67)=>_0x2d4e2c(_0x5d9884,_0x3aee67,_0xea1149);let _0x30aa35=class extends _0x71e749[_0x952e9f(0x1bf)]{constructor(_0x550dce,_0x202014){const _0xde08ea=_0x952e9f;super(),this[_0xde08ea(0x158)]=_0x550dce,this['_sheetsPivotTableConfigModel']=_0x202014,this[_0xde08ea(0x292)]();}[_0x952e9f(0x292)](){const _0x1a2fa1=_0x952e9f;this['disposeWithMe'](this[_0x1a2fa1(0x158)]['interceptCommand']({'getMutations':_0x8a985=>{const _0x5f4c74=_0x1a2fa1;if(_0x8a985['id']===_0x2a18e2[_0x5f4c74(0x2bc)]['id']){const _0x24083c=[],_0x1c5366=[],_0x18cc89=_0x8a985[_0x5f4c74(0x35e)],{unitId:_0xed82a9,subUnitId:_0xe4fd5f}=_0x18cc89;if(!_0xed82a9||!_0xe4fd5f)return{'undos':_0x1c5366,'redos':_0x24083c};const _0x36ae69=this[_0x5f4c74(0x321)][_0x5f4c74(0x329)](_0xed82a9,_0xe4fd5f);if(_0x36ae69!=null&&_0x36ae69[_0x5f4c74(0x303)])for(const [_0x3c01b6,_0x58ca38]of _0x36ae69){_0x24083c[_0x5f4c74(0x2b7)]({'id':_0x5f2bbe['id'],'params':{'unitId':_0xed82a9,'subUnitId':_0xe4fd5f,'pivotTableId':_0x3c01b6}});const _0xba28bf={...this['_sheetsPivotTableConfigModel'][_0x5f4c74(0x3b3)](_0xed82a9,_0x3c01b6)};_0x1c5366[_0x5f4c74(0x2b7)]({'id':_0x191981['id'],'params':{'unitId':_0xed82a9,'subUnitId':_0xe4fd5f,'pivotTableId':_0x3c01b6,'pivotTableConfig':_0x58ca38,'collectionConfig':_0xba28bf}});}return{'redos':_0x24083c,'undos':_0x1c5366};}return{'redos':[],'undos':[]};}}));}};_0x30aa35=_0x58da42([_0xe16a0a(0x0,_0x71e749[_0x952e9f(0x3f5)](_0x2a18e2['SheetInterceptorService'])),_0xe16a0a(0x1,_0x71e749[_0x952e9f(0x3f5)](_0x3e9a4b['SheetsPivotTableConfigModel']))],_0x30aa35);var _0x1aece9=Object[_0x952e9f(0x169)],_0x4d4f19=(_0x4d68d2,_0x519b1,_0x46a632,_0x268b56)=>{const _0x21b5fe=_0x952e9f;for(var _0x381177=_0x268b56>0x1?void 0x0:_0x268b56?_0x1aece9(_0x519b1,_0x46a632):_0x519b1,_0x82e99b=_0x4d68d2[_0x21b5fe(0x278)]-0x1,_0x2cbc58;_0x82e99b>=0x0;_0x82e99b--)(_0x2cbc58=_0x4d68d2[_0x82e99b])&&(_0x381177=_0x2cbc58(_0x381177)||_0x381177);return _0x381177;},_0x2311c4=(_0x2b3f96,_0x515c0f)=>(_0x123308,_0x3db1bc)=>_0x515c0f(_0x123308,_0x3db1bc,_0x2b3f96);let _0x569e5f=class extends _0x71e749['Disposable']{constructor(_0x5883da,_0x484f6f,_0xb6186d,_0x274112,_0x1b1584,_0x256579){const _0x4a5c88=_0x952e9f;super(),this[_0x4a5c88(0x107)]=_0x5883da,this[_0x4a5c88(0xe3)]=_0x484f6f,this[_0x4a5c88(0x3ad)]=_0xb6186d,this['_sheetsPivotTableConfigModel']=_0x274112,this[_0x4a5c88(0x2ba)]=_0x1b1584,this['_activeDirtyManagerService']=_0x256579,this[_0x4a5c88(0x3e0)](),this[_0x4a5c88(0x30b)]();}[_0x952e9f(0x3e0)](){const _0x2baad2=_0x952e9f;this[_0x2baad2(0x2fa)](this[_0x2baad2(0x107)][_0x2baad2(0x260)](_0x1b3437=>{const _0x2a5ccf=_0x2baad2;if(_0x1b3437['id']!==_0x42f08c['id'])return;const _0x2765f=_0x1b3437['params'];this['_sheetsPivotRpcService'][_0x2a5ccf(0x30a)](_0x2765f);})),this[_0x2baad2(0x2fa)](this[_0x2baad2(0x107)]['onCommandExecuted'](_0x154abd=>{const _0x9b3097=_0x2baad2;if(_0x154abd['id']===_0x4c06b7['id']){const _0x392b67=_0x154abd[_0x9b3097(0x35e)];if(_0x392b67){const {unitId:_0xf688f9,subUnitId:_0x2b474c,oldSubUnitId:_0x2d28f4,pivotTableId:_0x55cc38,pivotTableConfig:_0xf07bee,collectionConfig:_0xf343b3}=_0x392b67;this['_sheetsPivotTableConfigModel'][_0x9b3097(0x217)](_0xf688f9,_0x2d28f4,_0x392b67[_0x9b3097(0x1a5)],null),this[_0x9b3097(0x321)][_0x9b3097(0x217)](_0xf688f9,_0x2b474c,_0x55cc38,_0xf07bee),this[_0x9b3097(0x321)]['updateCollectionConfig'](_0xf688f9,_0xf343b3);}}})),this[_0x2baad2(0x2fa)](this[_0x2baad2(0x107)][_0x2baad2(0x260)](_0x8dcb23=>{const _0x694d1f=_0x2baad2;if(_0x8dcb23['id']!==_0x13964a['id'])return;const _0x35afd4=_0x2a18e2[_0x694d1f(0x1cf)](this[_0x694d1f(0x2ba)]);if(!_0x35afd4)return;const {unitId:_0x19997b,subUnitId:_0x514599}=_0x35afd4,_0x426307=_0x8dcb23['params'];if(_0x426307[_0x694d1f(0x398)]&&Object[_0x694d1f(0x111)](_0x426307[_0x694d1f(0x398)])['forEach'](_0x5c1c14=>{const _0x2920dd=_0x694d1f;var _0x5ce334;(_0x5ce334=_0x426307[_0x2920dd(0x398)])!=null&&_0x5ce334[_0x5c1c14]&&this[_0x2920dd(0x321)][_0x2920dd(0x11b)](_0x5c1c14,_0x426307['collectionConfig'][_0x5c1c14]);}),_0x426307[_0x694d1f(0x1f3)]){const _0x1d38ca=_0x426307[_0x694d1f(0x1f3)],{unitId:_0x4e7b34,subUnitId:_0x129c87,view:_0x3d0ff4,pivotTableId:_0x234d51,type:_0x1dbdfb,pivotConfig:_0x46b024}=_0x1d38ca;if(_0x1dbdfb===_0x5cfd72['Delete'])this['_sheetsPivotTableAdaptorModel'][_0x694d1f(0x230)]({'unitId':_0x4e7b34,'subUnitId':_0x129c87,'pivotTableId':_0x234d51,'type':_0x1dbdfb}),this[_0x694d1f(0x321)][_0x694d1f(0x217)](_0x4e7b34,_0x129c87,_0x234d51,null);else{const _0x1b2332=new _0x1978cb['PivotView']();_0x1b2332[_0x694d1f(0x15d)](_0x3d0ff4),this[_0x694d1f(0x321)][_0x694d1f(0x217)](_0x4e7b34,_0x129c87,_0x234d51,_0x46b024),this[_0x694d1f(0x3ad)][_0x694d1f(0x230)]({'unitId':_0x4e7b34,'subUnitId':_0x129c87,'pivotTableId':_0x234d51,'type':_0x1dbdfb,'view':_0x1b2332}),this['_sheetsPivotTableAdaptorModel'][_0x694d1f(0x11d)]({'unitId':_0x4e7b34,'subUnitId':_0x129c87,'view':_0x1b2332,'pivotTableId':_0x234d51,'type':_0x1dbdfb});}}else _0x426307[_0x694d1f(0x25a)]&&(_0x426307[_0x694d1f(0x25a)][_0x694d1f(0x1fb)](_0x241276=>{const _0x42faee=_0x694d1f,{unitId:_0x210a0a,subUnitId:_0xd0c030,view:_0x1dbfa6,pivotTableId:_0xad3bc8,type:_0x1730ae,pivotConfig:_0x4d4bf8}=_0x241276,_0x1d931a=new _0x1978cb[(_0x42faee(0x26b))]();_0x1d931a[_0x42faee(0x15d)](_0x1dbfa6),this['_sheetsPivotTableConfigModel']['updateConfigCache'](_0x210a0a,_0xd0c030,_0xad3bc8,_0x4d4bf8),this[_0x42faee(0x3ad)][_0x42faee(0x11d)]({'unitId':_0x210a0a,'subUnitId':_0xd0c030,'view':_0x1d931a,'pivotTableId':_0xad3bc8,'type':_0x1730ae});}),this['_sheetsPivotTableConfigModel']['setPivotInitCompleted']());this[_0x694d1f(0x3ad)][_0x694d1f(0x248)](_0x19997b,_0x514599);}));}[_0x952e9f(0x30b)](){const _0x16829=_0x952e9f;this[_0x16829(0x212)]['register'](_0x4c380b['id'],{'commandId':_0x4c380b['id'],'getDirtyData'(_0x372dbe){return{'dirtyUnitFeatureMap':_0x372dbe['params']};}});}};_0x569e5f=_0x4d4f19([_0x2311c4(0x0,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x1ec)])),_0x2311c4(0x1,_0x71e749['Inject'](_0x3e9a4b[_0x952e9f(0x211)])),_0x2311c4(0x2,_0x71e749[_0x952e9f(0x3f5)](_0x3e9a4b[_0x952e9f(0x3de)])),_0x2311c4(0x3,_0x71e749[_0x952e9f(0x3f5)](_0x3e9a4b[_0x952e9f(0x299)])),_0x2311c4(0x4,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x168)])),_0x2311c4(0x5,_0x19b6b3[_0x952e9f(0x313)])],_0x569e5f);var _0x27dcdf=Object['defineProperty'],_0x3953a2=Object[_0x952e9f(0x169)],_0x2a1a5d=(_0x38a939,_0x573be1,_0x9a58c9)=>_0x573be1 in _0x38a939?_0x27dcdf(_0x38a939,_0x573be1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9a58c9}):_0x38a939[_0x573be1]=_0x9a58c9,_0x3545f6=(_0x46e822,_0x3c4d28,_0x450255,_0x2197c4)=>{const _0x3805b1=_0x952e9f;for(var _0x535212=_0x2197c4>0x1?void 0x0:_0x2197c4?_0x3953a2(_0x3c4d28,_0x450255):_0x3c4d28,_0x3dc0df=_0x46e822[_0x3805b1(0x278)]-0x1,_0x55aace;_0x3dc0df>=0x0;_0x3dc0df--)(_0x55aace=_0x46e822[_0x3dc0df])&&(_0x535212=_0x55aace(_0x535212)||_0x535212);return _0x535212;},_0x1e42fa=(_0x10e007,_0x35fd41)=>(_0x4548b6,_0x577990)=>_0x35fd41(_0x4548b6,_0x577990,_0x10e007),_0x4978c7=(_0x4b7702,_0xd5a217,_0x1e6236)=>_0x2a1a5d(_0x4b7702,typeof _0xd5a217!=_0x952e9f(0x193)?_0xd5a217+'':_0xd5a217,_0x1e6236);_0x3e9a4b[_0x952e9f(0x210)]=class extends _0x71e749[_0x952e9f(0x1f9)]{constructor(_0x4119ed=_0x2de722,_0x2d5ef7,_0x20e695,_0x4d21c2,_0x360bab){const _0x1863ea=_0x952e9f;super(),this[_0x1863ea(0x247)]=_0x4119ed,this[_0x1863ea(0x170)]=_0x2d5ef7,this[_0x1863ea(0x107)]=_0x20e695,this[_0x1863ea(0x399)]=_0x4d21c2,this['_dataSyncPrimaryController']=_0x360bab;const {..._0x1da300}=_0x71e749['merge']({},_0x2de722,this[_0x1863ea(0x247)]);this['_configService'][_0x1863ea(0x177)](_0x1695fa,_0x1da300),this[_0x1863ea(0x389)](),this['_initConfig']();}[_0x952e9f(0x2f2)](){const _0x56ba62=_0x952e9f;var _0x3edf5f;const _0x53c95d=(_0x3edf5f=this[_0x56ba62(0x247)])==null?void 0x0:_0x3edf5f[_0x56ba62(0x2e0)];this[_0x56ba62(0x399)][_0x56ba62(0x177)](_0xf9ba23,_0x53c95d===!0x0);}[_0x952e9f(0x287)](){const _0x56f41d=_0x952e9f;var _0x1d5c0b;let _0xf1905f=[];const _0x4ae19f=(_0x1d5c0b=this[_0x56f41d(0x247)])==null?void 0x0:_0x1d5c0b['notExecuteFormula'];_0x4ae19f===!0x0?_0xf1905f=[[_0x3e9a4b['SheetsPivotTableService']],[_0x3e9a4b[_0x56f41d(0x211)]],[_0x569e5f],[_0x3e9a4b[_0x56f41d(0x3de)]],[_0x3e9a4b['SheetsPivotTableConfigModel']],[_0x30aa35],[_0x3f4d61],[_0x4cd8ef],[_0x2215fd]]:_0x4ae19f===!0x1?_0xf1905f=[[_0x3e9a4b['SheetsPivotDataSourceModel']],[_0x11d712]]:_0x4ae19f===void 0x0&&(_0xf1905f=[[_0x3e9a4b[_0x56f41d(0x386)]],[_0x11d712],[_0x3e9a4b[_0x56f41d(0x257)]],[_0x3e9a4b[_0x56f41d(0x211)]],[_0x569e5f],[_0x3e9a4b[_0x56f41d(0x3de)]],[_0x3e9a4b[_0x56f41d(0x299)]],[_0x30aa35],[_0x3f4d61],[_0x4cd8ef],[_0x2215fd]]),_0xf1905f[_0x56f41d(0x1fb)](_0x2b9af9=>this['_injector'][_0x56f41d(0x249)](_0x2b9af9)),[_0x11d712,_0x569e5f,_0x3e9a4b[_0x56f41d(0x257)],_0x3f4d61,_0x30aa35,_0x4cd8ef,_0x2215fd][_0x56f41d(0x1fb)](_0x4d11e7=>{const _0x2298df=_0x56f41d;this[_0x2298df(0x170)][_0x2298df(0x2cc)](_0x4d11e7)&&this[_0x2298df(0x170)][_0x2298df(0x3dc)](_0x4d11e7);});}['_initRegisterCommand'](){const _0x182fef=_0x952e9f;[_0x5f392f,_0x38b0a9,_0x1515c8,_0x2f6a17,_0x2565f1,_0x59c1c6,_0x13d7ff,_0x1751a7,_0x223ceb,_0x4cc07e,_0x3b940b,_0x8cc147,_0x53619c,_0x27a793,_0x191981,_0x3f31b7,_0x5f2bbe,_0x4f9dee,_0x5e9fc0,_0x9a9807,_0x25b050,_0x314e34,_0x15f90a,_0x3d16f6,_0x37f93b,_0x377fce,_0x140124,_0x1efe7b,_0x42f08c,_0x13964a,_0x2d0f45,_0x27db08,_0x4d3daa,_0x3af33e,_0x4e58e8,_0x3f6e25,_0x2da68e,_0x4c380b,_0x4c06b7,_0x19db14,_0x4b00fe,_0x44cc22,_0x5c5c64][_0x182fef(0x1fb)](_0x49f164=>{const _0x517ec7=_0x182fef;var _0x431f06;(_0x431f06=this['_dataSyncPrimaryController'])==null||_0x431f06[_0x517ec7(0x19f)](_0x49f164),this[_0x517ec7(0x107)][_0x517ec7(0x164)](_0x49f164);});}},_0x4978c7(_0x3e9a4b[_0x952e9f(0x210)],_0x952e9f(0x2aa),_0x510c58),_0x4978c7(_0x3e9a4b[_0x952e9f(0x210)],_0x952e9f(0x2e2),_0x71e749[_0x952e9f(0x21f)][_0x952e9f(0xfe)]),_0x3e9a4b['UniverSheetsPivotTablePlugin']=_0x3545f6([_0x71e749[_0x952e9f(0x231)](_0x53e420['UniverLicensePlugin']),_0x1e42fa(0x1,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x297)])),_0x1e42fa(0x2,_0x71e749[_0x952e9f(0x3f5)](_0x71e749[_0x952e9f(0x1ec)])),_0x1e42fa(0x3,_0x71e749[_0x952e9f(0x225)]),_0x1e42fa(0x4,_0x71e749[_0x952e9f(0xe0)](_0x5b6293['DataSyncPrimaryController']))],_0x3e9a4b[_0x952e9f(0x210)]),_0x3e9a4b[_0x952e9f(0x3e8)]=_0x1515c8,_0x3e9a4b[_0x952e9f(0x2b6)]=_0x4f9dee,_0x3e9a4b[_0x952e9f(0x16a)]=_0x38b0a9,_0x3e9a4b[_0x952e9f(0x1d5)]=_0x191981,_0x3e9a4b[_0x952e9f(0x1aa)]=_0x5f392f,_0x3e9a4b[_0x952e9f(0x1d7)]=_0x18e791,_0x3e9a4b[_0x952e9f(0x294)]=_0x1a1b40,_0x3e9a4b[_0x952e9f(0x281)]=_0x2f6a17,_0x3e9a4b[_0x952e9f(0x2e9)]=_0x53619c,_0x3e9a4b[_0x952e9f(0x2a7)]=_0x2dff37,_0x3e9a4b[_0x952e9f(0x392)]=_0x27a793,_0x3e9a4b[_0x952e9f(0x333)]=_0x5cfd72,_0x3e9a4b[_0x952e9f(0x314)]=_0x4c380b,_0x3e9a4b[_0x952e9f(0x1e8)]=_0x17cb1b,_0x3e9a4b[_0x952e9f(0x39f)]=_0x2565f1,_0x3e9a4b[_0x952e9f(0x1b2)]=_0x314e34,_0x3e9a4b[_0x952e9f(0x381)]=_0x5f2bbe,_0x3e9a4b[_0x952e9f(0x22b)]=_0x15f90a,_0x3e9a4b[_0x952e9f(0x2ca)]=_0x5c5c64,_0x3e9a4b['SHEETS_PIVOT_PLUGIN_CONFIG_KEY']=_0x1695fa,_0x3e9a4b[_0x952e9f(0x141)]=_0x510c58,_0x3e9a4b[_0x952e9f(0x16e)]=_0x1751a7,_0x3e9a4b['SetPivotCollapseMutation']=_0x3d16f6,_0x3e9a4b[_0x952e9f(0x14a)]=_0x3af33e,_0x3e9a4b[_0x952e9f(0xfb)]=_0x44cc22,_0x3e9a4b[_0x952e9f(0x22e)]=_0x4cc07e,_0x3e9a4b[_0x952e9f(0x1df)]=_0x25b050,_0x3e9a4b[_0x952e9f(0x162)]=_0x377fce,_0x3e9a4b[_0x952e9f(0x246)]=_0x140124,_0x3e9a4b[_0x952e9f(0x39d)]=_0x223ceb,_0x3e9a4b[_0x952e9f(0x394)]=_0x37f93b,_0x3e9a4b[_0x952e9f(0x1b5)]=_0x4d3daa,_0x3e9a4b[_0x952e9f(0x116)]=_0x19db14,_0x3e9a4b[_0x952e9f(0x353)]=_0x4b00fe,_0x3e9a4b['UpdateDateGroupCommand']=_0x13d7ff,_0x3e9a4b['UpdateFieldPositionMutation']=_0x2d0f45,_0x3e9a4b[_0x952e9f(0x11e)]=_0x3b940b,_0x3e9a4b['UpdatePivotFieldSourceInfoMutation']=_0x2da68e,_0x3e9a4b[_0x952e9f(0x2e5)]=_0x8cc147,_0x3e9a4b[_0x952e9f(0x1c6)]=_0x3f6e25,_0x3e9a4b[_0x952e9f(0x19e)]=_0x59c1c6,_0x3e9a4b[_0x952e9f(0xff)]=_0x27db08,_0x3e9a4b[_0x952e9f(0x33d)]=_0x2dd215,_0x3e9a4b[_0x952e9f(0x33b)]=_0x4f39c8,_0x3e9a4b['defaultThemeStyle']=_0x4f9185,_0x3e9a4b['generateSetRangeValueMutations']=_0x1ebc46,_0x3e9a4b['getAdjustRangesPosition']=_0x3f4101,_0x3e9a4b[_0x952e9f(0x2c6)]=_0x1d490c,_0x3e9a4b[_0x952e9f(0x3cd)]=_0x36b92f,_0x3e9a4b[_0x952e9f(0x1a4)]=_0xed8bbb,_0x3e9a4b[_0x952e9f(0x2a8)]=_0x45e11b,_0x3e9a4b[_0x952e9f(0x3ae)]=_0xfe1c71,_0x3e9a4b[_0x952e9f(0x2c4)]=_0x2f2bc4,_0x3e9a4b[_0x952e9f(0x33a)]=_0x2d2a3c,_0x3e9a4b[_0x952e9f(0x259)]=_0x3e9c2e,Object[_0x952e9f(0x26e)](_0x3e9a4b,Symbol[_0x952e9f(0x3fc)],{'value':_0x952e9f(0x229)});}));function _0x2e3d(_0x2a2417,_0x383fc4){const _0x43279b=_0x4327();return _0x2e3d=function(_0x2e3dca,_0x169c88){_0x2e3dca=_0x2e3dca-0xde;let _0x1931e5=_0x43279b[_0x2e3dca];return _0x1931e5;},_0x2e3d(_0x2a2417,_0x383fc4);}function _0x4327(){const _0x43191f=['getConfig','removeCollectionImp','tuple','notExecuteFormula','_deletePivotTableInstanceCache','type','UpdateFieldPosition','_initPivotDataGetListener','UpdatePivotTableSourceRangeCommand','_initPivotTextInfo','AddField','Min\x20of\x20','MovePivotTableCommand','register','colRanges','collapseInfo','Max\x20of\x20','None','ResetPivotTable','Value','refreshGroupField','_initConfig','PivotCellStyleTypeEnum','row','shouldClear','pivotConfigChange$','PivotCallbackEnum','parse','_pivotRenderValueMatrixCache','disposeWithMe','viewUpdate$','@univerjs/rpc','startRow','SetCollapse','viewData$','getMatrix','DIV_BY_ZERO','includes','size','#b2b2b2','sheets-pivot.value','sheet.mutation.pivot-update-field-position','sheet.command.set-pivot-field-setting','_viewData','SetWorksheetColWidthMutation','handleAsyncResponse','registerDirtyService','product','setDateType','registerCallbackWithEvent','DEFAULT_WORKSHEET_ROW_COUNT','setPivotFilter','update','getValueFilterInfos','IActiveDirtyManagerService','PivotTableViewDirtyMarkOperation','34993btirzk','BehaviorSubject','endColumn','rowFields','originTargetInfo','textInfo','getFieldIds','generateMutationsByRanges','isErrorValue','sheets-pivot.dateGroup.yearMonthDate','_globalComputingSrv','col','_sheetsPivotTableConfigModel','SetSubtotalType','sheets-pivot.varName','paths','setPivotTableConfig','renameField','getViewData','UniverProSheetsPivot','getSubUnitPivotConfigs','iterateField','triggerDirtyFeature','Column\x20','390ZioqMq','Expand','blank','average','sheet.command.add-pivot-table','HourMinute','PivotTableOperationEnum','MUTATION','valuePosition','_viewData$','lastRow','UniverRpc','getLastRow','transFromCellValue','canUsePivot','disposableCollection','applyChangeSet','PivotSubtotalTypeEnum','_featureCalculationManagerService','_globalComputedStartHelpFunc','Filter','getSheets','generateRandomId','RemoveColMutation','replace','parseInt','_dataFieldManagerCollection','next','Tools','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','setName','min','rxjs','pivotPerformCheck','_initGlobalComputed','#f4f4f5','getDataFieldManager','sheet.mutation.set-pivot-field-subtotal-type','SetPivotValueFilterMutation','targetCellInfo','getFieldInfo','reset','originalFieldId','sheet.operation.pivot-table-view-formula-mark-dirty','getDirtyInfo','uniqueDataFieldName','PivotViewCellValueTypeEnum','columnFields','rowCount','params','_pivotConfigChange$','getPivotTableRangeInfo','NO_COMMERCIAL','PivotTableValuePositionEnum','SheetsSelectionsService','LocaleService','New','delete','sheet.command.update-pivot-value-position','max','_initLocale','getDataFieldByDataFieldId','isEmpty','MIN_SAFE_INTEGER','RemoveSheetMutation','getValueIndex','getSourceName','_initClearSelectionCommandInterceptor','_resourceManagerService','_ensurePivotMap','_getPivotAppliedRanges','prototype','YearQuarter','getSubUnitPivotMatrix','_queryingMap','ManualFilter','colCount','FontCache','SetOptions','getDataFieldByRangeKey','_pivotTableMatrixInfo','ClearSelectionAllCommand','createLabelField','NotName','RemovePivotTableMutation','COLUMN','dimension','Subject','getFilterFieldIdByIndex','SheetsPivotDataSourceModel','_configVersion$','panel','_initRegisterCommand','_updateModelCache','Hour','getUnit','fetchThroughInterceptors','Add','_collectionChange$','registerPluginResource','#FFFFFF','PivotDrillDownCommand','query','SetPivotSortMutation','removePivotField','rangeType','#eceeff','collectionConfig','_configService','updateView','sheets-pivot.emptyPivot.row','sheets-pivot.cellDateGroupDisplay.month','SetPivotSortCommand','filterId','RemovePivotFieldCommand','2280824eqVGTY','getStyles','AddPivotTable','getTextSize','removePivotTable','fieldIds','getFieldPositionInfoById','pageRanges','sourceRangeInfo','startColumn','getFilterInfo','rangesInfo','3947410pzEfTm','_sheetsPivotTableAdaptorModel','getPivotInfoByLicense','rgb(255,255,255)','var','prefix','concat','getCollection','getMatrixValue','fontRenderExtension','sheets-pivot.subTotal','getColCount','removeSourceRangeChange','Row','setPivotInitCompleted','getUpdateRangeDeleteIds','AddPivotTableWithConfig','stdDev','PivotTableFiledAreaEnum','subtotal','_collectionConfigModel','rowHeaderMap','sheets-pivot.minName','NORMAL','collection','object','sheet.mutation.update-pivot-table-source-range','adjustSheetCellData','getSheetFeatureLimit','entries','getRangeKeyList','sheets-pivot.columnName','sheets-pivot.cellDateGroupDisplay.yearMonth','getFieldListByArea','dataStream','deleteField','varp','intersects','split','number','4792nfVNRD','measure','SHEET_PIVOT_EXCLUSIVE_ID','getPivotTableModelConfig','collections','leafStyle','version','DataField','get','removeCollections','SheetsPivotTableAdaptorModel','displayName','_initDataSendListener','versions','updatePivotSource','dispose','minDate','PIVOT_MUTATION_GENERATE','_markDirty$','updateRangeKeyMap','AddPivotFieldCommand','refreshDataField','getValue','generateNewSheetName','PivotErrorTypeEnum','matrix','SetPivotCollapse','sheet.command.update-date-group','Column','_initCommandInterceptListener','dataFieldId','collectionChange$','FYdyRkzd\x20nWyhjHRkzd(9kyWd4W,\x20HYQ9kyEWj)\x20{\x20\x20\x20\x20Rhj\x20{\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x209kyWd4W2dFzx3hRThh3j\x20=\x209kyWd4W.4H9kR(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20zhkGkd7W443GW\x20=\x20JetO.H3h4W(3RzQ(9kyWd4W2dFzx3hRThh3j[b]));\x20\x20\x20\x20\x20\x20\x20\x20kF\x20(!zhkGkd7W443GW.Yn)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20zhkGkd7W443GW.Yn\x20=\x20OYmQWh(9kyWd4W2dFzx3hRThh3j[w]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20k4fzh6Wh\x20=\x20RjHWzF\x20fzh6Whg9zQ39eyzHW\x20!==\x20\x27YdnWFkdWn\x27\x20&&\x204W9F\x20kd4R3dyWzF\x20fzh6Whg9zQ39eyzHW;\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20yzdRW8R\x20=\x20k4fzh6Wh\x20?\x204W9F\x20:\x200kdnz0;\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20mW443GWfzhn\x20=\x20yzdRW8R.__M34Waw__.H3h4W(9kyWd4W2dFzx3hRThh3j[b]);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20mW443GW\x20=\x20yzdRW8R.__PW8__.4RhkdGkFj(mW443GWfzhn);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x204kGd3RYhWfzhn\x20=\x20yzdRW8R.__M34Waw__.H3h4W(9kyWd4W2dFzx3hRThh3j[U]);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x204kGd3RYhW\x20=\x20yzdRW8R.__PW8__.4RhkdGkFj(4kGd3RYhWfzhn);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x204kGdZ39kn\x20=\x20yzdRW8R.__uWhkFj__(4kGd3RYhW,\x20mW443GW,\x20HYQ9kyEWj);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20nzm3kd\x20=\x20zhkGkd7W443GW.nm;\x20\x20\x20\x20\x20\x20\x20\x20FYdyRkzd\x20k4Bzm3kd73RyqkdG(zx3RRWhd,\x20zPz4R)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20H3RRWhd\x20=\x20zx3RRWhd.hWH93yW(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20qz4R\x20=\x20zPz4R.hWH93yW(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20H3RRWhdx3hR4\x20=\x20H3RRWhd.4H9kR(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20qz4Rx3hR4\x20=\x20qz4R.4H9kR(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kF\x20(!H3RRWhd.kdy9YnW4(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hWRYhd\x20H3RRWhd\x20===\x20qz4R;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kF\x20(H3RRWhdx3hR4.9WdGRq\x20<\x20b\x20||\x20H3RRWhdx3hR4[K]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hWRYhd\x20F394W;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20H3RRWhdeYFFk8\x20=\x20H3RRWhdx3hR4.49kyW(L).Dzkd(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20qz4ReYFFk8\x20=\x20qz4Rx3hR4.49kyW(-H3RRWhdx3hR4.9WdGRq\x20+\x20L).Dzkd(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hWRYhd\x20H3RRWhdeYFFk8\x20===\x20qz4ReYFFk8;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x209WR\x20nzm3kdZ39kn\x20=\x20(nzm3kd\x20&&\x20nzm3kd.9WdGRq)\x20?\x20nzm3kd.4zmW((nm2RWm)\x20=>\x20k4Bzm3kd73RyqkdG(nm2RWm,\x209zy3Rkzd.qz4Rd3mW))\x20:\x20RhYW;\x20\x20\x20\x20\x20\x20\x20\x20kF\x20(9zy3Rkzd.qz4Rd3mW\x20===\x20\x279zy39qz4R\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20nzm3kdZ39kn\x20=\x20RhYW;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20u39kn\x20=\x204kGdZ39kn\x20&&\x20nzm3kdZ39kn;\x20\x20\x20\x20\x20\x20\x20\x20hWRYhd\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20u39kn,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mW443GW:\x20zhkGkd7W443GW,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20y3Ryq\x20(Whhzh)\x20{\x20\x20\x20\x20\x20\x20\x20\x20hWRYhd\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20u39kn:\x20F394W,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mW443GW:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','Inject','_createExclusiveRange','fieldsCollectionChange$','ObjectMatrix','MoveRangeCommand','isNaN','AsyncInterceptorManager','toStringTag','amd','substring','iterateFieldDim','AddPivotField','setCollapse','_localeService','isDateGroupFieldJSON','getRangeStartEndInfo','getPivotTableConfig','PivotTableChangeTypeEnum','sheet.mutation.remove-group-collection','token','unshiftString','Optional','needSameDeleteModel','_model','_sheetsPivotRpcService','MonthDate','LS_CONFIG_KEY','setRange','RemoveField','removeField','getTypeOfUnitDisposed$','initDataRanges','sheets-pivot.averageName','addPivotField','values','getTargetByPivotTableId','DataFieldManager','SetPivotFilter','sheet.mutation.set-pivot-format','countNums','_subjectViewChange','SetPivotSort','removeValueFilterInfo','asyncInterceptor','COMMAND','updateViewInfo','Subtotal','setRangeKeyMap','SetPivotFieldsConfigCommand','bind','executeCommand','UNIVER_SHEET','UpdateValuePositionMutation','rangeKeyMap','value','getValuePosition','setSourceName','@univerjs/core','sheets-pivot.dateGroup.yearQuarter','sortInfo','_commandService','dataFields','rowInfo','sheets-pivot.dateGroup.date','addDataFieldWithoutUnitInfo','sheet.mutation.remove-pivot-field','addFieldWithSourceId','updateFieldPosition','FieldsCollection','PivotDataFieldDataTypeEnum','keys','getInterceptPoints','sideEffectUpdateWorkerCache','valueFields','(Blank)','SetPivotValueFilterCommand','toJSON','183070GtWzWE','getAutoFitColumnsMutations','sourceName','updateCollectionConfig','DrillDown','updateRenderCache','UpdatePivotFieldSettingCommand','_lifecycleService','hasOwnProperty','interceptor','numfmt','getPivotTableInstance','setValueFilterInfo','setPivotSort','fieldId','addPivotTableWithConfig','IFeatureCalculationManagerService','intercept','updateViewData','updateValuePosition','sheet.command.set-pivot-filter','handleMoveRange','colHeaderMap','from','headerMap','some','addCollectionByJSON','stdDevp','getName','pivotTableIndexConfig','fromJSON','getCurrentUnitForType','_fieldsCollectionChange$','pivotMutationGenerate','UpdatePivotSource','SetRangeValuesMutation','fieldsConfig','_pivotTableRangeInfo','body','isBottomTotal','pivotInitCompleted$','SHEET_PIVOT_TABLE_PLUGIN','_subjectFieldsCollectionChange','getGroupFieldsInfoByIds','result','range','level','getDataFieldByTableId','setDisplayName','283QUbEFE','SetPivotFieldFormatMutation','setValuePivotFilter','sheets-pivot.countName','setOptions','SetPivotTableConfig','forRow','_pivotInitCompleted$','numberToABC','resetPivotTable','cellValue','getIntersectsPivotTable','hasField','return\x20','dataRangeInfo','_sheetInterceptorService','endCollectChangeset','updateAllDisplayName','sheets-pivot.cellDateGroupDisplay.year','Set','formJSON','subscribe','date','getPivotDirtyViewInfo','setDataRecordCount','SetPivotOptionMutation','Collapse','registerCommand','count','getHeaderMapItem','sheet.command.set-pivot-value-filter','IUniverInstanceService','getOwnPropertyDescriptor','AddPivotTableCommand','setPivotCollapse','onQueryStart','refreshData','SetPivotCollapseCommand','drillDown','_injector','slice','sheet.mutation.send-init-pivot-text-local','@univerjs/engine-formula','Varp\x20of\x20','isText','Minute','setConfig','UniverProEnginePivot','243mkPoOq','getSheetBySheetName','oldRangeInfo','MoveRangeMutation','getFieldById','fetchThroughAsyncInterceptors','Panel','setRangeValueUndoMutation','onQueryEnd','InsertSheetCommand','setValue','getSubUnitPivotRenderCache','createInterceptorKey','getDisplayName','mergeWorksheetSnapshotWithDefault','_refRangeService','sheet.mutation.send-pivot-view-local','_initSnapshot','leftOffset','getCurrentSelections','cornerStyle','_sheetsPivotTableService','pbt','\x20-\x20','SetPivotSetting','column','symbol','getAutoDisplayNameFunction','getLastCol','createDataFieldId','updateDirtyPivotTable','YearMonthDate','setRangeValueRedoMutation','INTERCEPTOR_POINT','_refRangeHandle','setSubtotalType','addCollection','UpdatePivotValuePositionCommand','registerSyncingMutations','cellToRange','isArray','width','getSubtotal','getInsertRowColMutations','pivotTableId','custom','startCollectChangeset','_exclusiveRangeService','valueFilter','AddPivotTableWithConfigCommand','filterFields','sheets-pivot.cellDateGroupDisplay.quarter','NAME','redos','sheets-pivot.emptyPivot.filter','rowRanges','sheet.mutation.pivot-update-field-source-info','RemovePivotFieldMutation','message','sheet.command.set-pivot-fields-config','SetPivotSubtotalTypeMutation','SetRangeValuesUndoMutationFactory','NUM','isDate','contains','IExclusiveRangeService','getUnitId','sheets-pivot.dateGroup.hour','getRowCount','_globalSubject','Disposable','error','getPivotDisplayConfig','Total','broadcastCollectionChange','splice','STRING','UpdatePivotTableSourceRangeMutation','rangeKey','exports','CellValueType','310890hPYVGT','sheets.tabs.sheet','sheet.command.update-pivot-table-source-range','getTargetByPivotId','UniverEngineRender','getSheetCommandTarget','sheets-pivot.emptyPivot.column','getRangeKey','NUMBER','filterInfo','sheet.command.add-pivot-table-with-config','AddPivotTableMutation','_viewUpdate$','BLANK_ROW_COUNT','SetFieldFormat','sheet.mutation.set-pivot-filter','limit\x20pivot','sheetName','colStyle','getActiveSheet','addField','SetPivotFilterMutation','_textInfo','addDirtyPivotTable','#e6ebfa','pageStyle','setLabelFilterInfo','cornerInfo','iterateFieldByArea','IUndoRedoService','PositionType','_updatePivotTableInstanceCache','setSortInfo','deleteDataField','ICommandService','getId','sheet.mutation.update-date-group','sheet.command.reset-pivot-fields-config','getFontStyleString','addRecord','ReleaseType','single','grandTotal','Count\x20of\x20','sheets-pivot.cellDateGroupDisplay.hour','SetWorksheetActiveOperation','_pivotRenderInfoCache','Plugin','ErrorType','forEach','new','info','fields','CommandType','addExclusiveRange','DEFAULT_WORKSHEET_COLUMN_COUNT','getColumnCount','InsertSheetMutation','UniverSheetsFilter','Product\x20of\x20','_getAutoName','updateConfig','_requestResolvers','@univerjs/sheets-filter','MovePivotField','#1d32e9','queryDirtyPivotTable','Range','getSheetId','_toJSON','UniverSheetsPivotTablePlugin','SheetsPivotRPCService','_activeDirtyManagerService','getSortInfo','sheet.mutation.send-pivot-data-local','PivotFilterTypeEnum','getSheetBySheetId','updateConfigCache','name','getFullYear','dateType','_initUnitDisposed','YearMonth','isDateGroupField','format','UniverInstanceType','Average\x20of\x20','_sheetsSelectionsService','getFieldDataType','_ensurePivotItemRenderValueMatrixCache','sheets-pivot.countNumsName','IConfigService','PivotMultipleValueId','document','UpdateSource','Module','endRow','RenamePivotFieldMutation','Delete','updatePivotTableRangeInfo','SetPivotFilterCommand','StdDev\x20of\x20','clearRenderCache','DependentOn','movePivotField','undos','_init','sheets-pivot.stdDevpName','CELL_CONTENT','oldMatrix','removeDataField','_ensureViewDataMap','pushUndoRedo','@univerjs-pro/engine-pivot','1410272bwBANr','set','Values','getCellMatrix','sheet.command.pivot-drill-down','sheet.mutation.set-pivot-position','sum','PivotDateGroupFieldDateTypeEnum','foreach','getOriginFieldId','SetPivotPositionMutation','_config','markDirty','add','_ensurePivotTableMatrixInfo','sheet.command.move-pivot-table','RemovePivotField','generateHexNumber','getCellRaw','getTableFieldById','DisposableCollection','_deleteModelCache','createCollectionWithDataRange','Quarter','areaInfo','isValue','_host','SheetsPivotTableService','sheet.mutation.set-pivot-sort-info','unionPivotViewRange','batch','dataFieldsCollection','sheets-pivot.dateGroup.quarter','serializeRangeWithSpreadsheet','getDataFieldId','getNoUsedDataFieldIds','onCommandExecuted','addPivotTable','deleteUnitId','_pivotTableInstanceCache','_ensurePivotTableRangeInfo','GlobalComputingStatusService','Grand\x20Total','pushComputingStatusSubject','#e6ebfb','getPivotTableMatrixInfo','isBaseGroupField','PivotView','pivotTableConfigs','stringify','defineProperty','UpdateValuePosition','random','unshift','realDeleteValue','sheets-pivot.dateGroup.hourMinute','isPrefixValue','getPivotTableIdByCell','function','subUnitId','length','filter','InterceptorEffectEnum','SetSortInfo','getformat','CustomCommandExecutionError','unitId','generateNullCell','dataFieldManagerConfig','MovePivotFieldCommand','string','_generateUniqueVersion','@univerjs/sheets','getPivotItemRenderInfoCache','_updateRenderEmptyCache','onStarting','LifecycleService','valueIndex','getFieldCountByArea','Rectangle','RANGE_TYPE','options','PivotTable','REF','handleSourceRangeChange','existing','_initRemoveSheetCommandInterceptor','lastCol','DEFAULT_PIVOT_NUMBER','tableFieldId','sequenceExecute','Injector','Sum\x20of\x20','SheetsPivotTableConfigModel','getFormat','Month','sheet.mutation.send-pivot-config-local','setPivotSetting','IResourceManagerService','call','setPivotTable','getTextInfo','getDate','remove','sheets-pivot.grandTotal','excelDateToUnixMilliseconds','SetSheetsFilterRangeMutation','PivotDisplayDataType','getPivotCellInfo','getMatrixFromRunTimeData','pluginName','getAutoDisplayName','data','_initViewModelBySheetInterceptor','registerRefRange','sheet.command.remove-pivot-field','getPivotTableCellData','deepClone','_sheetsPivotDataSourceModel','sheet.mutation.add-group-collection','resetArea','GrandTotal','AddPivotFieldMutation','push','isDateValue','UniverSheets','_univerInstanceService','_globalComputedEndHelpFunc','RemoveSheetCommand','subTotalStyle','Year','isFeatureAuthorizedWithinTime','getDataFieldItemInfo','asObservable','RefRangeService','map','getPivotTableInfo','forValue','getEmptyPivotRanges','sheet.mutation.get-pivot-data-local','InsertSheetUndoMutationFactory','configVersion$','ResetPivotFieldsConfigCommand','@univerjs/engine-render','has','updatePivotTableMatrixInfo','MAX_SAFE_INTEGER','sheet.mutation.remove-pivot-table','setFieldFormat','cornerRanges','SheetInterceptorService','SetValuePivotFilter','find','setTextInfo','toString','Date','workbook\x20is\x20not\x20found','getFormatInfo','InsertRowMutation','getRangeData','RenameField'];_0x4327=function(){return _0x43191f;};return _0x4327();}